DEFINE OBJECTS 389
DEFINE OBJECT SANNY BUILDER 4.0.0     
DEFINE OBJECT INFO                     // Object number -1
DEFINE OBJECT KEYCARD                  // Object number -2
DEFINE OBJECT AD_FLATDOOR              // Object number -3
DEFINE OBJECT KB_BANDIT_U              // Object number -4
DEFINE OBJECT ROULETTE_TBL             // Object number -5
DEFINE OBJECT OTB_MACHINE              // Object number -6
DEFINE OBJECT CJ_COIN_OP_3             // Object number -7
DEFINE OBJECT CJ_COIN_OP_2             // Object number -8
DEFINE OBJECT CJ_COIN_OP_1             // Object number -9
DEFINE OBJECT CJ_COIN_OP               // Object number -10
DEFINE OBJECT SWANK_CONSOLE            // Object number -11
DEFINE OBJECT SNESISH                  // Object number -12
DEFINE OBJECT LOW_CONSOLE              // Object number -13
DEFINE OBJECT VENDMACHFD               // Object number -14
DEFINE OBJECT VENDMACH                 // Object number -15
DEFINE OBJECT VENDIN3                  // Object number -16
DEFINE OBJECT CJ_SPRUNK1               // Object number -17
DEFINE OBJECT CJ_CANDYVENDOR           // Object number -18
DEFINE OBJECT CJ_EXT_CANDY             // Object number -19
DEFINE OBJECT CJ_EXT_SPRUNK            // Object number -20
DEFINE OBJECT ICESCART_PROP            // Object number -21
DEFINE OBJECT CHILLIDOGCART            // Object number -22
DEFINE OBJECT NOODLECART_PROP          // Object number -23
DEFINE OBJECT GATE_AUTOL               // Object number -24
DEFINE OBJECT GATE_AUTOR               // Object number -25
DEFINE OBJECT GYM_BIKE                 // Object number -26
DEFINE OBJECT GYM_BENCH1               // Object number -27
DEFINE OBJECT GYM_TREADMILL            // Object number -28
DEFINE OBJECT GYM_MAT1                 // Object number -29
DEFINE OBJECT BSKBALL_LAX              // Object number -30
DEFINE OBJECT BSKBALLHUB_LAX01         // Object number -31
DEFINE OBJECT VGSXREFBBALLNET          // Object number -32
DEFINE OBJECT VGSXREFBBALLNET2         // Object number -33
DEFINE OBJECT K_POOLTABLESM            // Object number -34
DEFINE OBJECT NEIL_SLOT                // Object number -35
DEFINE OBJECT CJ_SLOT_BANK             // Object number -36
DEFINE OBJECT BLCK_JACK                // Object number -37
DEFINE OBJECT WHEEL_O_FORTUNE          // Object number -38
DEFINE OBJECT CRACKFACT_SFS            // Object number -39
DEFINE OBJECT CF_EXT_DEM_SFS           // Object number -40
DEFINE OBJECT LODCRACKFACT_SFS         // Object number -41
DEFINE OBJECT LODEXT_DEM_SFS           // Object number -42
DEFINE OBJECT PICKUPSAVE               // Object number -43
DEFINE OBJECT WOODENBOX                // Object number -44
DEFINE OBJECT NF_BLACKBOARD            // Object number -45
DEFINE OBJECT NF_LIST_1                // Object number -46
DEFINE OBJECT NF_LIST_2                // Object number -47
DEFINE OBJECT NF_LIST_3                // Object number -48
DEFINE OBJECT WANTED_CROSS_OFF         // Object number -49
DEFINE OBJECT WS_APGATE                // Object number -50
DEFINE OBJECT GEN_DOOREXT03            // Object number -51
DEFINE OBJECT GEN_DOOREXT07            // Object number -52
DEFINE OBJECT GEN_DOORSHOP02           // Object number -53
DEFINE OBJECT GEN_DOOREXT04            // Object number -54
DEFINE OBJECT GEN_DOORSHOP3            // Object number -55
DEFINE OBJECT CUNTGIRLDOOR             // Object number -56
DEFINE OBJECT PIZZAHIGH                // Object number -57
DEFINE OBJECT CJ_PIZZA_1               // Object number -58
DEFINE OBJECT CJ_PIZZA_2               // Object number -59
DEFINE OBJECT BURGERHIGH               // Object number -60
DEFINE OBJECT CJ_BURG_1                // Object number -61
DEFINE OBJECT CJ_BURG_2                // Object number -62
DEFINE OBJECT CIGAR                    // Object number -63
DEFINE OBJECT TRDCSGRGDOOR_LVS         // Object number -64
DEFINE OBJECT MD_POSTER                // Object number -65
DEFINE OBJECT CR_DOOR_01               // Object number -66
DEFINE OBJECT CR_DOOR_03               // Object number -67
DEFINE OBJECT SHUTTER_VEGAS            // Object number -68
DEFINE OBJECT CR1_DOOR                 // Object number -69
DEFINE OBJECT CT_GATEXR                // Object number -70
DEFINE OBJECT A51_BLASTDOORR           // Object number -71
DEFINE OBJECT A51_BLASTDOORL           // Object number -72
DEFINE OBJECT A51_LABDOOR              // Object number -73
DEFINE OBJECT A51_JETDOOR              // Object number -74
DEFINE OBJECT PORTAKABIN               // Object number -75
DEFINE OBJECT FREIGHT_SFW_DOOR         // Object number -76
DEFINE OBJECT AB_CASDORLOK             // Object number -77
DEFINE OBJECT IMY_SHASH_WALL           // Object number -78
DEFINE OBJECT TWRCRANE_M_04            // Object number -79
DEFINE OBJECT TWRCRANE_M_01            // Object number -80
DEFINE OBJECT TWRCRANE_M_02            // Object number -81
DEFINE OBJECT LODCRANE_M_04            // Object number -82
DEFINE OBJECT LODCRANE_M_01            // Object number -83
DEFINE OBJECT MAGNOCRANE_01            // Object number -84
DEFINE OBJECT MAGNOCRANE_02            // Object number -85
DEFINE OBJECT MAGNOCRANE_03            // Object number -86
DEFINE OBJECT LODNOCRANE_01            // Object number -87
DEFINE OBJECT LODNOCRANE_02            // Object number -88
DEFINE OBJECT LODNOCRANE_03            // Object number -89
DEFINE OBJECT QUARRY_CRANEBASE         // Object number -90
DEFINE OBJECT QUARRY_CRANE             // Object number -91
DEFINE OBJECT QUARRY_CRANEARM          // Object number -92
DEFINE OBJECT BODYARMOUR               // Object number -93
DEFINE OBJECT BRIBE                    // Object number -94
DEFINE OBJECT A51_VENTCOVERB           // Object number -95
DEFINE OBJECT CARRIER_DOOR_SFSE        // Object number -96
DEFINE OBJECT CARRIER_LIFT2_SFSE       // Object number -97
DEFINE OBJECT CARRIER_LIFT1_SFSE       // Object number -98
DEFINE OBJECT GWFORUM1_LAE             // Object number -99
DEFINE OBJECT GANGSHOPS4_LAE2          // Object number -100
DEFINE OBJECT CE_HILLSEAST06           // Object number -101
DEFINE OBJECT CUNTEGROUND23            // Object number -102
DEFINE OBJECT HILLSEAST05_LAE          // Object number -103
DEFINE OBJECT K_POOLQ                  // Object number -104
DEFINE OBJECT K_POOLBALLCUE            // Object number -105
DEFINE OBJECT K_POOLBALLSPT01          // Object number -106
DEFINE OBJECT K_POOLBALLSPT02          // Object number -107
DEFINE OBJECT K_POOLBALLSPT03          // Object number -108
DEFINE OBJECT K_POOLBALLSPT04          // Object number -109
DEFINE OBJECT K_POOLBALLSPT05          // Object number -110
DEFINE OBJECT K_POOLBALLSPT06          // Object number -111
DEFINE OBJECT K_POOLBALLSPT07          // Object number -112
DEFINE OBJECT K_POOLBALL8              // Object number -113
DEFINE OBJECT K_POOLBALLSTP01          // Object number -114
DEFINE OBJECT K_POOLBALLSTP02          // Object number -115
DEFINE OBJECT K_POOLBALLSTP03          // Object number -116
DEFINE OBJECT K_POOLBALLSTP04          // Object number -117
DEFINE OBJECT K_POOLBALLSTP05          // Object number -118
DEFINE OBJECT K_POOLBALLSTP06          // Object number -119
DEFINE OBJECT K_POOLBALLSTP07          // Object number -120
DEFINE OBJECT K_POOLQ2                 // Object number -121
DEFINE OBJECT CIGAR_GLOW               // Object number -122
DEFINE OBJECT DYN_WINE_BIG             // Object number -123
DEFINE OBJECT KB_BEER                  // Object number -124
DEFINE OBJECT LAEROAD30                // Object number -125
DEFINE OBJECT CASKET_LAW               // Object number -126
DEFINE OBJECT LAEJEFFERSALPHA          // Object number -127
DEFINE OBJECT LAELODPARK02             // Object number -128
DEFINE OBJECT LAEMACPARK02             // Object number -129
DEFINE OBJECT BD_WINDOW                // Object number -130
DEFINE OBJECT BREAK_WALL_1B            // Object number -131
DEFINE OBJECT BREAK_WALL_2B            // Object number -132
DEFINE OBJECT BREAK_WALL_3B            // Object number -133
DEFINE OBJECT BD_FIRE1_O               // Object number -134
DEFINE OBJECT CR_AMMOBOX               // Object number -135
DEFINE OBJECT BREAK_WALL_1A            // Object number -136
DEFINE OBJECT BREAK_WALL_2A            // Object number -137
DEFINE OBJECT BREAK_WALL_3A            // Object number -138
DEFINE OBJECT BD_WINDOW_SHATTER        // Object number -139
DEFINE OBJECT SEC_KEYPAD               // Object number -140
DEFINE OBJECT KMB_RAMP                 // Object number -141
DEFINE OBJECT IMCMPTRKDRL_LAS          // Object number -142
DEFINE OBJECT IMCMPTRKDRR_LAS          // Object number -143
DEFINE OBJECT IMCOMPMOVEDR1_LAS        // Object number -144
DEFINE OBJECT BARREL4                  // Object number -145
DEFINE OBJECT HEALTH                   // Object number -146
DEFINE OBJECT IMY_BBOX                 // Object number -147
DEFINE OBJECT IMY_LA_DOOR              // Object number -148
DEFINE OBJECT DB_AMMO                  // Object number -149
DEFINE OBJECT MED_BED_8                // Object number -150
DEFINE OBJECT CR_GUNCRATE              // Object number -151
DEFINE OBJECT GUNBOX                   // Object number -152
DEFINE OBJECT TMP_BIN                  // Object number -153
DEFINE OBJECT AMMOTRN_OBJ              // Object number -154
DEFINE OBJECT KMB_FRONTGATE            // Object number -155
DEFINE OBJECT WAREHOUSE_DOOR2B         // Object number -156
DEFINE OBJECT WAREHOUSE_DOOR1          // Object number -157
DEFINE OBJECT CJ_CARDBRD_PICKUP        // Object number -158
DEFINE OBJECT NF_PED_COLL              // Object number -159
DEFINE OBJECT CM_BOX                   // Object number -160
DEFINE OBJECT FAKE_MULE_COL            // Object number -161
DEFINE OBJECT CARDBOARDBOX2            // Object number -162
DEFINE OBJECT LAE_SMOKECUTSCENE        // Object number -163
DEFINE OBJECT IMMMCRAN                 // Object number -164
DEFINE OBJECT TRNTRK8_LAS              // Object number -165
DEFINE OBJECT IMY_TRACK_BARRIER        // Object number -166
DEFINE OBJECT KMB_SKIP                 // Object number -167
DEFINE OBJECT STORM_DRAIN_COVER        // Object number -168
DEFINE OBJECT WHEEL_OR1                // Object number -169
DEFINE OBJECT DYN_WOODPILE2            // Object number -170
DEFINE OBJECT KMB_RHYMESBOOK           // Object number -171
DEFINE OBJECT CJ_JUICE_CAN             // Object number -172
DEFINE OBJECT DYN_ROADBARRIER_2        // Object number -173
DEFINE OBJECT KMB_GOFLAG               // Object number -174
DEFINE OBJECT IMY_SKYLIGHT             // Object number -175
DEFINE OBJECT KMB_TROLLEY              // Object number -176
DEFINE OBJECT LXR_MOTEL_DOORSIM        // Object number -177
DEFINE OBJECT LXR_MOTELVENT            // Object number -178
DEFINE OBJECT DYN_SCAFFOLD_4B          // Object number -179
DEFINE OBJECT MUNCH_DONUT              // Object number -180
DEFINE OBJECT CHOPCOP_ARMR             // Object number -181
DEFINE OBJECT CHOPCOP_LEGR             // Object number -182
DEFINE OBJECT CHOPCOP_HEAD             // Object number -183
DEFINE OBJECT CHOPCOP_TORSO            // Object number -184
DEFINE OBJECT WD_FENCE_ANIM            // Object number -185
DEFINE OBJECT CHOPCOP_ARML             // Object number -186
DEFINE OBJECT CHOPCOP_LEGL             // Object number -187
DEFINE OBJECT DYN_SCAFFOLD_3B          // Object number -188
DEFINE OBJECT ROADWORKBARRIER1         // Object number -189
DEFINE OBJECT BRIEFCASE                // Object number -190
DEFINE OBJECT KMB_ATM1                 // Object number -191
DEFINE OBJECT KMB_ATM2                 // Object number -192
DEFINE OBJECT KMB_ATM3                 // Object number -193
DEFINE OBJECT MTSAFE                   // Object number -194
DEFINE OBJECT CAT2_SAFE_COL            // Object number -195
DEFINE OBJECT MAN_SAFENEW              // Object number -196
DEFINE OBJECT KEV_SAFE                 // Object number -197
DEFINE OBJECT RIDER1_DOOR              // Object number -198
DEFINE OBJECT KMB_MARIJUANA            // Object number -199
DEFINE OBJECT SW_HAYBREAK02            // Object number -200
DEFINE OBJECT GRASSPLANT               // Object number -201
DEFINE OBJECT PARKBENCH1               // Object number -202
DEFINE OBJECT PORTALOO                 // Object number -203
DEFINE OBJECT HUBHOLE1_SFSE            // Object number -204
DEFINE OBJECT HUBHOLE2_SFSE            // Object number -205
DEFINE OBJECT HUBHOLE3_SFSE            // Object number -206
DEFINE OBJECT HUBHOLE4_SFSE            // Object number -207
DEFINE OBJECT CLOTHESP                 // Object number -208
DEFINE OBJECT LAMPPOST3                // Object number -209
DEFINE OBJECT CT_STALL1                // Object number -210
DEFINE OBJECT CT_TABLE                 // Object number -211
DEFINE OBJECT CHINATGARAGEDOOR         // Object number -212
DEFINE OBJECT CHINA_TOWN_GATEB         // Object number -213
DEFINE OBJECT A51_SPOTBASE             // Object number -214
DEFINE OBJECT A51_SPOTHOUSING          // Object number -215
DEFINE OBJECT A51_SPOTBULB             // Object number -216
DEFINE OBJECT KMB_CONTAINER_RED        // Object number -217
DEFINE OBJECT CJ_CHRIS_CRATE           // Object number -218
DEFINE OBJECT CJ_CHRIS_CRATE_LD        // Object number -219
DEFINE OBJECT CJ_CHRIS_CRATE_RD        // Object number -220
DEFINE OBJECT CJ_PADLOCK               // Object number -221
DEFINE OBJECT KATANA_ANIM              // Object number -222
DEFINE OBJECT KATANA_LHAND             // Object number -223
DEFINE OBJECT MOBILE1993B              // Object number -224
DEFINE OBJECT WONGS_GATE               // Object number -225
DEFINE OBJECT DYN_RAMP                 // Object number -226
DEFINE OBJECT SNIPER_ANIM              // Object number -227
DEFINE OBJECT KMB_PACKET               // Object number -228
DEFINE OBJECT NTO_B_S                  // Object number -229
DEFINE OBJECT CARDBOARDBOX             // Object number -230
DEFINE OBJECT DYN_ROADBARRIER_3        // Object number -231
DEFINE OBJECT DYN_ROADBARRIER_4        // Object number -232
DEFINE OBJECT DYN_DUMPSTER             // Object number -233
DEFINE OBJECT KMB_CONTAINER_BLUE       // Object number -234
DEFINE OBJECT KMB_CONTAINER_YEL        // Object number -235
DEFINE OBJECT KMB_CONTAINER_OPEN       // Object number -236
DEFINE OBJECT TEMP_STINGER2            // Object number -237
DEFINE OBJECT TRAFFICCONE              // Object number -238
DEFINE OBJECT AD_JUMP                  // Object number -239
DEFINE OBJECT GARYS_LUV_RAMP           // Object number -240
DEFINE OBJECT AD_ROADMARK1             // Object number -241
DEFINE OBJECT AD_ROADMARK2             // Object number -242
DEFINE OBJECT AD_FINISH                // Object number -243
DEFINE OBJECT MINIGUN_BASE             // Object number -244
DEFINE OBJECT WONGS_ERECTION           // Object number -245
DEFINE OBJECT WONGS_ERECTION2          // Object number -246
DEFINE OBJECT RCBOMB                   // Object number -247
DEFINE OBJECT BARREL2                  // Object number -248
DEFINE OBJECT MINI_MAGNET              // Object number -249
DEFINE OBJECT KMB_PLANK                // Object number -250
DEFINE OBJECT KMB_HOLDALL              // Object number -251
DEFINE OBJECT KMB_PARACHUTE            // Object number -252
DEFINE OBJECT AMMO_CAPSULE             // Object number -253
DEFINE OBJECT BARREL1                  // Object number -254
DEFINE OBJECT KB_BARREL                // Object number -255
DEFINE OBJECT CR_CRATESTACK            // Object number -256
DEFINE OBJECT D9_RUNWAY                // Object number -257
DEFINE OBJECT CARGO_TEST               // Object number -258
DEFINE OBJECT CARGO_STUFF              // Object number -259
DEFINE OBJECT CARGO_STORE              // Object number -260
DEFINE OBJECT KMILITARY_CRATE          // Object number -261
DEFINE OBJECT KMILITARY_BASE           // Object number -262
DEFINE OBJECT BLOCKPALLET              // Object number -263
DEFINE OBJECT TEMP_CRATE1              // Object number -264
DEFINE OBJECT K_SMASHBOXES             // Object number -265
DEFINE OBJECT K_CARGO1                 // Object number -266
DEFINE OBJECT K_CARGO4                 // Object number -267
DEFINE OBJECT GREEN_GLOOP              // Object number -268
DEFINE OBJECT BASEJUMP_TARGET          // Object number -269
DEFINE OBJECT DES_QUARRYGATE2          // Object number -270
DEFINE OBJECT DES_QUARRYGATE           // Object number -271
DEFINE OBJECT CJ_DYN_PLUNGE_1          // Object number -272
DEFINE OBJECT DYNAMITE                 // Object number -273
DEFINE OBJECT DYNO_BOX_A               // Object number -274
DEFINE OBJECT DYNO_BOX_B               // Object number -275
DEFINE OBJECT PRIVATESIGN3             // Object number -276
DEFINE OBJECT PRIVATESIGN1             // Object number -277
DEFINE OBJECT BARRIER_4ANDY            // Object number -278
DEFINE OBJECT CJ_CHIP_MAKER_BITS       // Object number -279
DEFINE OBJECT CJ_CHIP_MAKER            // Object number -280
DEFINE OBJECT CJ_WHEELCHAIR1           // Object number -281
DEFINE OBJECT AB_CARCASS               // Object number -282
DEFINE OBJECT AB_HOOK                  // Object number -283
DEFINE OBJECT FREEZER_DOOR             // Object number -284
DEFINE OBJECT CJ_MEAT_BAG_1            // Object number -285
DEFINE OBJECT CJ_MEAT_1                // Object number -286
DEFINE OBJECT CJ_MEAT_2                // Object number -287
DEFINE OBJECT JET_BAGGAGE_DOOR         // Object number -288
DEFINE OBJECT JET_INTERIOR             // Object number -289
DEFINE OBJECT SMLPLANE_DOOR            // Object number -290
DEFINE OBJECT JET_DOOR                 // Object number -291
DEFINE OBJECT SMASH_BOX_STAY           // Object number -292
DEFINE OBJECT SMASH_BOX_BRK            // Object number -293
DEFINE OBJECT SMASHBOXPILE             // Object number -294
DEFINE OBJECT ST_ARCH_PLAN             // Object number -295
DEFINE OBJECT GEN_DOORINT01            // Object number -296
DEFINE OBJECT KMB_LOCKEDDOOR           // Object number -297
DEFINE OBJECT DYN_AIRCON               // Object number -298
DEFINE OBJECT SW_BIT_09                // Object number -299
DEFINE OBJECT GENERATOR_BIG            // Object number -300
DEFINE OBJECT AB_VAULTDOOR             // Object number -301
DEFINE OBJECT GENERATOR_BIG_D          // Object number -302
DEFINE OBJECT CJ_MONEY_BAG             // Object number -303
DEFINE OBJECT PARA_PACK                // Object number -304
DEFINE OBJECT CARGO_REAR               // Object number -305
DEFINE OBJECT D9_RAMP                  // Object number -306
DEFINE OBJECT PARACHUTE                // Object number -307
DEFINE OBJECT OPMANS01_CUNTE           // Object number -308
DEFINE OBJECT CEHOLLYHIL06             // Object number -309
DEFINE OBJECT SUNSET22_LAWN            // Object number -310
DEFINE OBJECT DRG_NU_EXT               // Object number -311
DEFINE OBJECT MISSILE_07_SFXR          // Object number -312
DEFINE OBJECT KMB_KEYPAD               // Object number -313
DEFINE OBJECT WATERJUMPX2              // Object number -314
DEFINE OBJECT BBALL_INGAME             // Object number -315
DEFINE OBJECT CJ_WIN_POP2              // Object number -316
DEFINE OBJECT LA_FUCKCAR1              // Object number -317
DEFINE OBJECT LA_FUCKCAR2              // Object number -318
DEFINE OBJECT TARGET_FRAME             // Object number -319
DEFINE OBJECT TARGET_LLEG              // Object number -320
DEFINE OBJECT TARGET_RLEG              // Object number -321
DEFINE OBJECT TARGET_LTORSO            // Object number -322
DEFINE OBJECT TARGET_RTORSO            // Object number -323
DEFINE OBJECT TARGET_LARM              // Object number -324
DEFINE OBJECT TARGET_RARM              // Object number -325
DEFINE OBJECT TARGET_HEAD              // Object number -326
DEFINE OBJECT DEAD_TIED_COP            // Object number -327
DEFINE OBJECT DYN_QUARRYROCK03         // Object number -328
DEFINE OBJECT BLACKBAG2                // Object number -329
DEFINE OBJECT DYN_WOODPILE             // Object number -330
DEFINE OBJECT DYN_QUARRYROCK02         // Object number -331
DEFINE OBJECT BOUY                     // Object number -332
DEFINE OBJECT WATERJUMP1               // Object number -333
DEFINE OBJECT LANDJUMP2                // Object number -334
DEFINE OBJECT BB_PICKUP                // Object number -335
DEFINE OBJECT PARA_COLLISION           // Object number -336
DEFINE OBJECT CJ_WHEEL_1               // Object number -337
DEFINE OBJECT CJ_WHEEL_02              // Object number -338
DEFINE OBJECT CJ_WHEEL_03              // Object number -339
DEFINE OBJECT CHIP_STACK07             // Object number -340
DEFINE OBJECT CHIP_STACK08             // Object number -341
DEFINE OBJECT CHIP_STACK12             // Object number -342
DEFINE OBJECT CHIP_STACK09             // Object number -343
DEFINE OBJECT CHIP_STACK11             // Object number -344
DEFINE OBJECT WHEEL_WEE                // Object number -345
DEFINE OBJECT ROULETTE_MARKER          // Object number -346
DEFINE OBJECT PEDALS                   // Object number -347
DEFINE OBJECT BEACHTOWEL01             // Object number -348
DEFINE OBJECT KMB_BPRESS               // Object number -349
DEFINE OBJECT BEACHTOWEL03             // Object number -350
DEFINE OBJECT BEACHTOWEL04             // Object number -351
DEFINE OBJECT KMB_DUMBBELL_R           // Object number -352
DEFINE OBJECT KMB_DUMBBELL_L           // Object number -353
DEFINE OBJECT BBALL_COL                // Object number -354
DEFINE OBJECT KMB_ROCK                 // Object number -355
DEFINE OBJECT CHIP_STACK10             // Object number -356
DEFINE OBJECT CHIP_STACK13             // Object number -357
DEFINE OBJECT CHIP_STACK14             // Object number -358
DEFINE OBJECT WHEEL_SUPPORT            // Object number -359
DEFINE OBJECT WHEEL_TABLE              // Object number -360
DEFINE OBJECT CLICKER                  // Object number -361
DEFINE OBJECT MONEY                    // Object number -362
DEFINE OBJECT CJ_FF_TILL_QUE           // Object number -363
DEFINE OBJECT CJ_BURG_CHAIR            // Object number -364
DEFINE OBJECT CJ_PIZZA_CHAIR           // Object number -365
DEFINE OBJECT CJ_PIZZA_CHAIR2          // Object number -366
DEFINE OBJECT CJ_PIZZA_CHAIR3          // Object number -367
DEFINE OBJECT TATTOO_KIT               // Object number -368
DEFINE OBJECT CJ_BARSTOOL              // Object number -369
DEFINE OBJECT CJ_BINCO_DOOR            // Object number -370
DEFINE OBJECT CJ_SUBURB_DOOR_2         // Object number -371
DEFINE OBJECT CJ_PRO_DOOR_01           // Object number -372
DEFINE OBJECT CJ_GAP_DOOR_             // Object number -373
DEFINE OBJECT CJ_VICTIM_DOOR           // Object number -374
DEFINE OBJECT CJ_DS_DOOR               // Object number -375
DEFINE OBJECT PIZZALOW                 // Object number -376
DEFINE OBJECT PIZZAMED                 // Object number -377
DEFINE OBJECT PIZZA_HEALTHY            // Object number -378
DEFINE OBJECT CLUCKLOW                 // Object number -379
DEFINE OBJECT CLUCKMED                 // Object number -380
DEFINE OBJECT CLUCKHIGH                // Object number -381
DEFINE OBJECT CLUCK_HEALTHY            // Object number -382
DEFINE OBJECT BURGERLOW                // Object number -383
DEFINE OBJECT BURGERMED                // Object number -384
DEFINE OBJECT BURGER_HEALTHY           // Object number -385
DEFINE OBJECT POLICE_BARRIER           // Object number -386
DEFINE OBJECT KMB_SHUTTER              // Object number -387
DEFINE OBJECT SFCOPDR                  // Object number -388

DEFINE MISSIONS 135
DEFINE MISSION 0 AT @INITIAL           // Initial 1
DEFINE MISSION 1 AT @INITIL2           // Initial 2
DEFINE MISSION 2 AT @INTRO             // Intro
DEFINE MISSION 3 AT @NONE              // Video Game: They Crawled From Uranus
DEFINE MISSION 4 AT @DUAL              // Video Game: Duality
DEFINE MISSION 5 AT @SHTR              // Video Game: Go Go Space Monkey
DEFINE MISSION 6 AT @GRAV              // Video Game: Let's Get Ready To Bumble
DEFINE MISSION 7 AT @OTB               // Video Game: Inside Track Betting
DEFINE MISSION 8 AT @POOL2             // Pool
DEFINE MISSION 9 AT @LOWR              // Lowrider (Bet And Dance)
DEFINE MISSION 10 AT @ZERO5            // Beefy Baron
DEFINE MISSION 11 AT @INTRO1           // Big Smoke
DEFINE MISSION 12 AT @INTRO2           // Ryder
DEFINE MISSION 13 AT @SWEET1           // Tagging Up Turf
DEFINE MISSION 14 AT @SWEET1B          // Cleaning The Hood
DEFINE MISSION 15 AT @SWEET3           // Drive-Thru
DEFINE MISSION 16 AT @SWEET2           // Nines And AK's
DEFINE MISSION 17 AT @SWEET4           // Drive-By
DEFINE MISSION 18 AT @HOODS5           // Sweet's Girl
DEFINE MISSION 19 AT @SWEET6           // Cesar Vialpando
DEFINE MISSION 20 AT @SWEET7           // Los Sepulcros
DEFINE MISSION 21 AT @CRASH4           // Doberman
DEFINE MISSION 22 AT @CRASH1           // Burning Desire
DEFINE MISSION 23 AT @DRUGS3           // Gray Imports
DEFINE MISSION 24 AT @GUNS1            // Home Invasion
DEFINE MISSION 25 AT @RYDER3           // Catalyst
DEFINE MISSION 26 AT @RYDER2           // Robbing Uncle Sam
DEFINE MISSION 27 AT @TWAR7            // OG Loc
DEFINE MISSION 28 AT @SMOKE2           // Running Dog
DEFINE MISSION 29 AT @SMOKE3           // Wrong Side of the Tracks
DEFINE MISSION 30 AT @DRUGS1           // Just Business
DEFINE MISSION 31 AT @MUSIC1           // Life's a Beach
DEFINE MISSION 32 AT @MUSIC2           // Madd Dogg's Rhymes
DEFINE MISSION 33 AT @MUSIC3           // Management Issues
DEFINE MISSION 34 AT @MUSIC5           // House Party
DEFINE MISSION 35 AT @CPRACE           // Race Tournament / 8-track / Dirt Track
DEFINE MISSION 36 AT @CESAR1           // Lowrider (High Stakes)
DEFINE MISSION 37 AT @DRUGS4           // Reuniting The Families
DEFINE MISSION 38 AT @LA1FIN2          // The Green Sabre
DEFINE MISSION 39 AT @BCRASH1          // Badlands
DEFINE MISSION 40 AT @CATALIN          // First Date
DEFINE MISSION 41 AT @CAT1             // Local Liquor Store
DEFINE MISSION 42 AT @CAT2             // Small Town Bank
DEFINE MISSION 43 AT @CAT3             // Tanker Commander
DEFINE MISSION 44 AT @CAT4             // Against All Odds
DEFINE MISSION 45 AT @CATCUT           // King in Exile
DEFINE MISSION 46 AT @TRUTH1           // Body Harvest
DEFINE MISSION 47 AT @TRUTH2           // Are you going to San Fierro?
DEFINE MISSION 48 AT @BCESAR4          // Wu Zi Mu / Farewell, My Love...
DEFINE MISSION 49 AT @GARAG1           // Wear Flowers In Your Hair
DEFINE MISSION 50 AT @DECON            // Deconstruction
DEFINE MISSION 51 AT @SCRASH3          // 555 WE TIP
DEFINE MISSION 52 AT @SCRASH2          // Snail Trail
DEFINE MISSION 53 AT @WUZI1            // Mountain Cloud Boys
DEFINE MISSION 54 AT @FARLIE4          // Ran Fa Li
DEFINE MISSION 55 AT @DRIV6            // Lure
DEFINE MISSION 56 AT @WUZI2            // Amphibious Assault
DEFINE MISSION 57 AT @WUZI5            // The Da Nang Thang
DEFINE MISSION 58 AT @SYN1             // Photo Opportunity
DEFINE MISSION 59 AT @SYN2             // Jizzy
DEFINE MISSION 60 AT @SYN3             // Outrider
DEFINE MISSION 61 AT @SYND4            // Ice Cold Killa
DEFINE MISSION 62 AT @SYN6             // Toreno's Last Flight
DEFINE MISSION 63 AT @SYN7             // Yay Ka-Boom-Boom
DEFINE MISSION 64 AT @SYN5             // Pier 69
DEFINE MISSION 65 AT @DRIV2            // T-Bone Mendez
DEFINE MISSION 66 AT @DRIV3            // Mike Toreno
DEFINE MISSION 67 AT @STEAL1           // Zeroing In
DEFINE MISSION 68 AT @STEAL2           // Test Drive
DEFINE MISSION 69 AT @STEAL4           // Customs Fast Track
DEFINE MISSION 70 AT @STEAL5           // Puncture Wounds
DEFINE MISSION 71 AT @DSKOOL           // Back to School
DEFINE MISSION 72 AT @ZERO1            // Air Raid
DEFINE MISSION 73 AT @ZERO2            // Supply Lines...
DEFINE MISSION 74 AT @ZERO4            // New Model Army
DEFINE MISSION 75 AT @TORENO1          // Monster
DEFINE MISSION 76 AT @TORENO2          // Highjack
DEFINE MISSION 77 AT @DES3             // Interdiction
DEFINE MISSION 78 AT @DESERT4          // Verdant Meadows
DEFINE MISSION 79 AT @DESERT6          // N.O.E.
DEFINE MISSION 80 AT @DESERT9          // Stowaway
DEFINE MISSION 81 AT @MAF4             // Black Project
DEFINE MISSION 82 AT @DES10            // Green Goo
DEFINE MISSION 83 AT @DESERT5          // Learning to Fly
DEFINE MISSION 84 AT @CASINO1          // Fender Ketchup
DEFINE MISSION 85 AT @CASINO2          // Explosive Situation
DEFINE MISSION 86 AT @CASINO3          // You've Had Your Chips
DEFINE MISSION 87 AT @CASINO7          // Fish in a Barrel
DEFINE MISSION 88 AT @CASINO4          // Don Peyote
DEFINE MISSION 89 AT @CASINO5          // Intensive Care
DEFINE MISSION 90 AT @CASINO6          // The Meat Business
DEFINE MISSION 91 AT @CASINO9          // Freefall
DEFINE MISSION 92 AT @CASIN10          // Saint Mark's Bistro
DEFINE MISSION 93 AT @VCRASH1          // Misappropriation
DEFINE MISSION 94 AT @VCR2             // High Noon
DEFINE MISSION 95 AT @DOC2             // Madd Dogg
DEFINE MISSION 96 AT @HEIST1           // Architectural Espionage
DEFINE MISSION 97 AT @HEIST3           // Key To Her Heart
DEFINE MISSION 98 AT @HEIST2           // Dam And Blast
DEFINE MISSION 99 AT @HEIST4           // Cop Wheels
DEFINE MISSION 100 AT @HEIST5          // Up, Up and Away!
DEFINE MISSION 101 AT @HEIST9          // Breaking the Bank at Caligula's
DEFINE MISSION 102 AT @MANSIO1         // A Home In The Hills
DEFINE MISSION 103 AT @MANSIO2         // Vertical Bird
DEFINE MISSION 104 AT @MANSIO3         // Home Coming
DEFINE MISSION 105 AT @MANSON5         // Cut Throat Business
DEFINE MISSION 106 AT @GROVE1          // Beat Down on B Dup
DEFINE MISSION 107 AT @GROVE2          // Grove 4 Life
DEFINE MISSION 108 AT @RIOT1           // Riot
DEFINE MISSION 109 AT @RIOT2           // Los Desperados
DEFINE MISSION 110 AT @FINALEA         // End Of The Line (1)
DEFINE MISSION 111 AT @FINALEB         // End Of The Line (2)
DEFINE MISSION 112 AT @FINALEC         // End Of The Line (3)
DEFINE MISSION 113 AT @SHRANGE         // Shooting range
DEFINE MISSION 114 AT @GYMLS           // Los Santos Gym Fight School
DEFINE MISSION 115 AT @GYMSF           // San Fierro Gym Fight School
DEFINE MISSION 116 AT @GYMLV           // Las Venturas Gym Fight School
DEFINE MISSION 117 AT @TRUCK           // Trucking
DEFINE MISSION 118 AT @QUARRY          // Quarry
DEFINE MISSION 119 AT @BOAT            // Boat School
DEFINE MISSION 120 AT @BSKOOL          // Bike School
DEFINE MISSION 121 AT @TAXIODD         // Taxi-Driver Sub-Mission
DEFINE MISSION 122 AT @AMBULAN         // Paramedic Sub-Mission
DEFINE MISSION 123 AT @FIRETRU         // Firefighter Sub-Mission
DEFINE MISSION 124 AT @COPCAR          // Vigilante Sub-Mission
DEFINE MISSION 125 AT @BURGJB          // Burglary Sub-Mission
DEFINE MISSION 126 AT @FREIGHT         // Freight Train Sub-Mission
DEFINE MISSION 127 AT @PIMP            // Pimping Sub-Mission
DEFINE MISSION 128 AT @BLOOD           // Arena Mission: Blood Ring
DEFINE MISSION 129 AT @KICKSTA         // Arena Mission: Kickstart
DEFINE MISSION 130 AT @TRIA            // Beat the Cock!
DEFINE MISSION 131 AT @BCOUR           // Courier
DEFINE MISSION 132 AT @MTBIKER         // The Chiliad Challenge
DEFINE MISSION 133 AT @STUNT           // BMX / NRG-500 STUNT Mission
DEFINE MISSION 134 AT @BUYPRO1         // Buy Properties Mission

DEFINE EXTERNAL_SCRIPTS 78 // Use -1 in order not to compile AAA script
DEFINE SCRIPT PLAYER_PARACHUTE AT @PLCHUTE // 0
DEFINE SCRIPT PARACHUTE AT @PARACH     // 1
DEFINE SCRIPT BCESAR2 AT @BCESAR2      // 2
DEFINE SCRIPT BCESAR3 AT @COKEC        // 3
DEFINE SCRIPT SLOT_MACHINE AT @BANDIT  // 4
DEFINE SCRIPT ROULETTE AT @ROULETE     // 5
DEFINE SCRIPT OTB_SCRIPT AT @OTB_MSC   // 6
DEFINE SCRIPT ARCADE AT @ARCADE        // 7
DEFINE SCRIPT VENDING_MACHINE AT @VENDING // 8
DEFINE SCRIPT FOOD_VENDOR AT @FODVEND  // 9
DEFINE SCRIPT GATES_SCRIPT AT @GATEOS  // 10
DEFINE SCRIPT GYMBIKE AT @GYMBIKE      // 11
DEFINE SCRIPT GYMBENCH AT @GYMBENC     // 12
DEFINE SCRIPT GYMTREAD AT @GYMTREA     // 13
DEFINE SCRIPT GYMDUMB AT @GYMDUMB      // 14
DEFINE SCRIPT BASKETB AT @BBALL        // 15
DEFINE SCRIPT VIDPOK AT @VIDPOK        // 16
DEFINE SCRIPT BLACKJ AT @BLACKJ        // 17
DEFINE SCRIPT WHEELO AT @WOF           // 18
DEFINE SCRIPT DEALER AT @DEALER        // 19
DEFINE SCRIPT HOME_BRAINS AT @HMLES    // 20
DEFINE SCRIPT POOL_SCRIPT AT @POOL     // 21
DEFINE SCRIPT LOWR_CONT AT @LOWRCON    // 22
DEFINE SCRIPT BURG_BRAINS AT @BURGLAR  // 23
DEFINE SCRIPT GF_MEETING AT @GFMEET    // 24
DEFINE SCRIPT GF_DATE AT @GFDATE       // 25
DEFINE SCRIPT GF_SEX AT @GFSEX         // 26
DEFINE SCRIPT CASINO_AMBIENCE AT @CASAMB // 27
DEFINE SCRIPT BAR_AMBIENCE AT @BAR     // 28
DEFINE SCRIPT FOODBRAINS AT @PSHOP     // 29
DEFINE SCRIPT OTB_AMBIENCE AT @OTBSHP  // 30
DEFINE SCRIPT STRIP_AMBIENCE AT @STRIP // 31
DEFINE SCRIPT PLANES AT @PLANES        // 32
DEFINE SCRIPT TRAINS AT @TRAINS        // 33
DEFINE SCRIPT ZERO_AMBIENCE AT @RCSHOP // 34
DEFINE SCRIPT DANCE AT @DANCE          // 35
DEFINE SCRIPT SHOPKEEPER AT @SKBRAIN   // 36
DEFINE SCRIPT CUSTOMER_PANIC AT @FFPNC // 37
DEFINE SCRIPT BAR_STAFF AT @BARSTAF    // 38
DEFINE SCRIPT BOUNCER AT @BOUNCER      // 39
DEFINE SCRIPT OTB_STAFF AT @OTBSTAF    // 40
DEFINE SCRIPT PCHAIR AT @PCHAIR        // 41
DEFINE SCRIPT PCUSTOM AT @PCUSTOM      // 42
DEFINE SCRIPT OTBWTCH AT @OTBWTCH      // 43
DEFINE SCRIPT OTBSLP AT @OTBSLP        // 44
DEFINE SCRIPT OTBTILL AT @OTBTILL      // 45
DEFINE SCRIPT FBOOTHR AT @FBOOTHR      // 46
DEFINE SCRIPT FBOOTHL AT @FBOOTHL      // 47
DEFINE SCRIPT BARGUY AT @BARGUY        // 48
DEFINE SCRIPT PEDROUL AT @PEDROUL      // 49
DEFINE SCRIPT PEDCARD AT @PEDCARD      // 50
DEFINE SCRIPT PEDSLOT AT @PEDSLOT      // 51
DEFINE SCRIPT DANCER AT @DANCER        // 52
DEFINE SCRIPT STRIPW AT @STRIPW        // 53
DEFINE SCRIPT STRIPM AT @STRIPM        // 54
DEFINE SCRIPT BROWSE AT @BROWSE        // 55
DEFINE SCRIPT COPSIT AT @COPSIT        // 56
DEFINE SCRIPT COPLOOK AT @COPLOOK      // 57
DEFINE SCRIPT TICKET AT @TICKET        // 58
DEFINE SCRIPT SHOPPER AT @SHOPPER      // 59
DEFINE SCRIPT AMMU AT @AMUNAT          // 60
DEFINE SCRIPT TATTOO AT @TATTO         // 61
DEFINE SCRIPT BARBER AT @BARB          // 62
DEFINE SCRIPT WARDROBE AT @WARROBE     // 63
DEFINE SCRIPT CLOTHES AT @CLOTH        // 64
DEFINE SCRIPT JUNKFUD AT @JFUD         // 65
DEFINE SCRIPT CARMOD1 AT @CARMOD       // 66
DEFINE SCRIPT CRANE1 AT @CRANE1        // 67
DEFINE SCRIPT CRANE2 AT @CRANE2        // 68
DEFINE SCRIPT CRANE3 AT @CRANE3        // 69
DEFINE SCRIPT CARPARK1 AT @CARPRK1     // 70
DEFINE SCRIPT IMPOUND AT @IMPND        // 71
DEFINE SCRIPT VALET AT @VALET          // 72
DEFINE SCRIPT PHOTO AT @PHOTO          // 73
DEFINE SCRIPT PRISONR AT @PRISONR      // 74
DEFINE SCRIPT CAMERA AT @CAMERA        // 75
DEFINE SCRIPT DEBT AT @DEBT            // 76
DEFINE SCRIPT HOTDOG AT @HOTDOGV       // 77

DEFINE UNKNOWN_EMPTY_SEGMENT 0

DEFINE UNKNOWN_THREADS_MEMORY 574

{$USE debug}

//-------------MAIN---------------
script_name 'MAIN'
do_fade 0 {direction} Fade.Out
set_total_number_of_missions 147
set_progress_total 187
set_mission_respect_total 1339
set_max_wanted_level 6
set_deatharrest_state 0
set_time_of_day 8 {minutes} 0
request_collision 2488.562 {y} -1666.865
load_scene 2488.562 {y} -1666.865 {z} 13.3757
set_float_stat StatId.Energy {value} 800.0
set_float_stat StatId.BodyMuscle {value} 50.0
set_float_stat StatId.Fat {value} 200.0
set_float_stat StatId.DrivingSkill {value} 0.0
set_int_stat StatId.CitiesPassed {value} 0
set_int_stat StatId.Respect {value} 0
$player1 = create_player 0 {x} 2488.562 {y} -1666.865 {z} 12.8757
goto @MAIN_177
$player2 = create_player 1 {x} 2488.562 {y} -1666.865 {z} 12.8757

:MAIN_177
display_timer_bars 0
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang2 {toPedType} PedType.Gang1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang2 {toPedType} PedType.Gang3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang2 {toPedType} PedType.Gang8
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Gang2
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Gang3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Gang8
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang3 {toPedType} PedType.Player1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang3 {toPedType} PedType.Gang2
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang3 {toPedType} PedType.Gang1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang3 {toPedType} PedType.Gang8
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang8 {toPedType} PedType.Player1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang8 {toPedType} PedType.Gang2
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang8 {toPedType} PedType.Gang1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang8 {toPedType} PedType.Gang3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang4 {toPedType} PedType.Gang5
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang4 {toPedType} PedType.Gang7
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang5 {toPedType} PedType.Gang4
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang7 {toPedType} PedType.Gang4
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang7 {toPedType} PedType.Gang5
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang5 {toPedType} PedType.Gang7
$Players_Group = get_player_group $player1
$scplayer = get_player_char $player1
set_camera_behind_player 
set_char_heading $scplayer {heading} 262.0
load_and_launch_mission_internal 0 // Initial 1
wait 0
load_and_launch_mission_internal 1 // Initial 2
$show_race_selection = 0
$wasted_help1 = create_pickup #INFO {pickupType} PickupType.Once {x} 2027.77 {y} -1420.52 {z} 16.49
$wasted_help2 = create_pickup #INFO {pickupType} PickupType.Once {x} 1180.85 {y} -1325.5699 {z} 13.08
$busted_help1 = create_pickup #INFO {pickupType} PickupType.Once {x} 1550.6801 {y} -1675.49 {z} 15.01
$chat_help1 = create_pickup #INFO {pickupType} PickupType.Once {x} 2431.1699 {y} -1668.75 {z} 13.04
$LA_ShootX = 292.33
$LA_ShootY = -35.39
$LA_ShootZ = 1000.5
$race_debug = 0
$courier_type = 1
$courier_type = 2
$lowrider_mission_flag = 0
$lowrider_minigame_unlocked = 0
$race_selection = 0
declare_mission_flag $onmission
set_var_int_to_constant $intro_blip_icon = 15
set_var_int_to_constant $sweet_blip_icon = 38
set_var_int_to_constant $ryder_blip_icon = 34
set_var_int_to_constant $smoke_blip_icon = 8
set_var_int_to_constant $strap_blip_icon = 28
set_var_int_to_constant $crash_blip_icon = 16
set_var_int_to_constant $cesar_blip_icon = 13
set_var_int_to_constant $cat_blip_icon = 12
set_var_int_to_constant $truth_blip_icon = 40
set_var_int_to_constant $wuzi_blip_icon = 46
set_var_int_to_constant $synd_blip_icon = 23
set_var_int_to_constant $garage_blip_icon = 43
set_var_int_to_constant $steal_blip_icon = 13
set_var_int_to_constant $trace_blip_icon = 33
set_var_int_to_constant $zero_blip_icon = 47
set_var_int_to_constant $casino_blip_icon = 44
set_var_int_to_constant $heist_blip_icon = 25
set_var_int_to_constant $Theheist_blip_icon = 52
set_var_int_to_constant $doc_blip_icon = 24
set_var_int_to_constant $desert_blip_icon = 42
set_var_int_to_constant $desert2_blip_icon = 5
set_var_int_to_constant $mansion_blip_icon = 15
set_var_int_to_constant $pilot_blip_icon = 36
set_var_int_to_constant $grove_blip_icon = 38
goto @MAIN_1969
$emmets_shop_blip = add_short_range_sprite_blip_for_coord 2447.364 {y} -1974.496 {z} 12.5469 {sprite} RadarSprite.EmmetGun
$barber_shop1 = add_short_range_sprite_blip_for_coord 2070.27 {y} -1791.092 {z} 17.1484 {sprite} RadarSprite.Barbers
$food_shop1 = add_short_range_sprite_blip_for_coord 2107.624 {y} -1807.516 {z} 21.2114 {sprite} RadarSprite.Pizza
$clothes_shop1 = add_short_range_sprite_blip_for_coord 2243.8069 {y} -1668.567 {z} 20.0313 {sprite} RadarSprite.Tshirt
$intro_contact_blip = add_sprite_blip_for_contact_point $introX {y} $introY {z} $introZ {sprite} $intro_blip_icon
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$ryder_contact_blip = add_sprite_blip_for_contact_point $ryderX {y} $ryderY {z} $ryderZ {sprite} $ryder_blip_icon
$smoke_contact_blip = add_sprite_blip_for_contact_point $smokeX {y} $smokeY {z} $smokeZ {sprite} $smoke_blip_icon
$strap_contact_blip = add_sprite_blip_for_contact_point $strapX {y} $strapY {z} $strapZ {sprite} $strap_blip_icon
$crash_contact_blip = add_sprite_blip_for_contact_point $crashX {y} $crashY {z} $crashZ {sprite} $crash_blip_icon
$cesar_contact_blip = add_sprite_blip_for_contact_point $cesarX {y} $cesarY {z} $cesarZ {sprite} $cesar_blip_icon
$bcrash_contact_blip = add_sprite_blip_for_contact_point $bcrashX {y} $bcrashY {z} $bcrashZ {sprite} $crash_blip_icon
$cat_contact_blip = add_sprite_blip_for_contact_point $catX {y} $catY {z} $catZ {sprite} $cat_blip_icon
$truth_contact_blip = add_sprite_blip_for_contact_point $truthX {y} $truthY {z} $truthZ {sprite} $truth_blip_icon
$bcesar_contact_blip = add_sprite_blip_for_contact_point $bcesarX {y} $bcesarY {z} $bcesarZ {sprite} $cesar_blip_icon
$scrash_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $crash_blip_icon
$wuzi_contact_blip = add_sprite_blip_for_contact_point $wuziX {y} $wuziY {z} $wuziZ {sprite} $wuzi_blip_icon
$zero_contact_blip = add_sprite_blip_for_contact_point $zeroX {y} $zeroY {z} $zeroZ {sprite} $zero_blip_icon
$steal_contact_blip = add_sprite_blip_for_contact_point $stealX {y} $stealY {z} $stealZ {sprite} $steal_blip_icon
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
$synd_contact_blip = add_sprite_blip_for_contact_point $syndX {y} $syndY {z} $syndZ {sprite} $crash_blip_icon
$trace_contact_blip = add_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} $trace_blip_icon
$trace_contact_blip2 = add_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} $trace_blip_icon
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} $desert_blip_icon
$desert2_contact_blip = add_sprite_blip_for_contact_point $desert2X {y} $desert2Y {z} $desert2Z {sprite} $desert2_blip_icon
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
$doc_contact_blip = add_sprite_blip_for_contact_point $docX {y} $docY {z} $docZ {sprite} $doc_blip_icon
$vcrash_contact_blip = add_sprite_blip_for_contact_point $vcrashX {y} $vcrashY {z} $vcrashZ {sprite} $crash_blip_icon
$heist_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
$mansion_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon
$grove_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon
$pilot_contact_blip = add_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $pilot_blip_icon
$dschool_contact_blip = add_sprite_blip_for_contact_point -2031.2 {y} -118.0 {z} 34.3 {sprite} RadarSprite.School
$boat_school_blip = add_short_range_sprite_blip_for_contact_point $boatsX {y} $boatsY {z} $boatsZ {sprite} RadarSprite.School
$bike_school_blip = add_short_range_sprite_blip_for_contact_point $boatsX {y} $boatsY {z} $boatsZ {sprite} RadarSprite.School
$gym_contact_blip = add_sprite_blip_for_contact_point 2228.0 {y} -1722.811 {z} 12.5543 {sprite} $sweet_blip_icon
$1722 = add_short_range_sprite_blip_for_contact_point $save_pickupX[5] {y} $save_pickupY[5] {z} $save_pickupZ[5] {sprite} RadarSprite.SaveGame
$quarry_contact_blip = add_short_range_sprite_blip_for_contact_point $quarryX {y} $quarryY {z} $quarryZ {sprite} RadarSprite.Bulldozer
$mod_garage_blips = add_short_range_sprite_blip_for_coord -2728.5 {y} 212.2 {z} 3.4 {sprite} RadarSprite.ModGarage
$2589 = add_short_range_sprite_blip_for_coord -2728.5 {y} 212.2 {z} 3.4 {sprite} RadarSprite.ModGarage
$showroom_contact_blip = add_sprite_blip_for_contact_point $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {sprite} RadarSprite.PropertyG
$zero_contact_blip = add_sprite_blip_for_contact_point $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {sprite} RadarSprite.PropertyG
$airstrip_contact_blip = add_sprite_blip_for_contact_point $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {sprite} RadarSprite.PropertyG
$tucking_contact_blip = add_short_range_sprite_blip_for_coord $truckX {y} $truckY {z} $truckZ {sprite} RadarSprite.Truck
$territory_pickup = create_protection_pickup 2508.3589 {y} -1676.538 {z} 12.579 {revenueLimit} 10000 {revenueRate} $territory_cash
$millies_keycard_pickup = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 0.0 {y} 0.0 {z} 0.0
$Thekeycard_contact_blip = add_sprite_blip_for_contact_point 2035.724 {y} 2727.96 {z} 9.8281 {sprite} $Theheist_blip_icon
$save_housepickup[0] = create_locked_property_pickup $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {message} 'PROP_4'
$save_housepickup[1] = create_locked_property_pickup $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {message} 'PROP_4'
$save_housepickup[2] = create_locked_property_pickup $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {message} 'PROP_4'
$riot2_door = create_object #AD_FLATDOOR {x} 1833.36 {y} -1995.45 {z} 12.5
$2707 = create_object #AD_FLATDOOR {x} 1819.8101 {y} -1994.66 {z} 12.5
$2708 = create_object #AD_FLATDOOR {x} 1827.6801 {y} -1980.0 {z} 12.5
$2709 = create_object #AD_FLATDOOR {x} 1851.84 {y} -1990.67 {z} 12.5
$2710 = create_object #AD_FLATDOOR {x} 1867.29 {y} -1984.96 {z} 12.5
$2711 = create_object #AD_FLATDOOR {x} 1866.52 {y} -1998.53 {z} 12.5
$2712 = create_object #AD_FLATDOOR {x} 1899.75 {y} -1984.95 {z} 12.5
$2713 = create_object #AD_FLATDOOR {x} 1914.39 {y} -1992.8199 {z} 12.5
$2714 = create_object #AD_FLATDOOR {x} 1899.01 {y} -1998.5 {z} 12.5
$2715 = create_object #AD_FLATDOOR {x} 1900.89 {y} -2020.11 {z} 12.5
$2716 = create_object #AD_FLATDOOR {x} 1914.4 {y} -2020.91 {z} 12.5
$2717 = create_object #AD_FLATDOOR {x} 1906.54 {y} -2035.52 {z} 12.5
write_debug "AAAAAAAAA"

:MAIN_1969
switch_roads_off 2500.0 {leftBottomY} -1677.0 {leftBottomZ} 20.0 {rightTopX} 2430.0 {rightTopY} -1653.0 {rightTopZ} 0.0
$flag_store_day_food = 0
$total_food_bought_per_day_shops = 0
$iSetPizzaPanic = 0
$SHOPS_TEXT_SCALEX = 1.0
$SHOPS_TEXT_SCALEY = 1.6
$TEXT_COL_SELECT_R = 200
$TEXT_COL_SELECT_G = 200
$TEXT_COL_SELECT_B = 200
$TEXT_COL_SELECT_A = 255
$TEXT_COL_DULL_R = 100
$TEXT_COL_DULL_G = 100
$TEXT_COL_DULL_B = 100
$TEXT_COL_DULL_A = 255
$TEXT_COL_NA_R = 20
$TEXT_COL_NA_G = 20
$TEXT_COL_NA_B = 20
$TEXT_COL_NA_A = 255
$tank_gen1 = create_car_generator 2435.302 {y} -1671.848 {z} 12.8007 {heading} 90.0 {modelId} 432 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $tank_gen1 {amount} 0
$hyfra_gen1 = create_car_generator 2527.2 {y} -1677.1 {z} 19.2 {heading} 90.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $hyfra_gen1 {amount} 0
$load_and_launch_mission_if_poss = -1
register_streamed_script_internal 0
register_streamed_script_internal 1
register_streamed_script_internal 2
register_streamed_script_internal 3
register_streamed_script_internal 4
register_streamed_script_internal 5
register_streamed_script_internal 6
register_streamed_script_internal 7
register_streamed_script_internal 8
register_streamed_script_internal 9
register_streamed_script_internal 10
register_streamed_script_internal 11
register_streamed_script_internal 12
register_streamed_script_internal 13
register_streamed_script_internal 14
register_streamed_script_internal 15
register_streamed_script_internal 16
register_streamed_script_internal 17
register_streamed_script_internal 18
register_streamed_script_internal 19
register_streamed_script_internal 20
register_streamed_script_internal 21
register_streamed_script_internal 22
register_streamed_script_internal 23
register_streamed_script_internal 24
register_streamed_script_internal 25
register_streamed_script_internal 26
register_streamed_script_internal 27
register_streamed_script_internal 28
register_streamed_script_internal 29
register_streamed_script_internal 30
register_streamed_script_internal 31
register_streamed_script_internal 32
register_streamed_script_internal 33
register_streamed_script_internal 34
register_streamed_script_internal 35
register_streamed_script_internal 36
register_streamed_script_internal 37
register_streamed_script_internal 38
register_streamed_script_internal 39
register_streamed_script_internal 40
register_streamed_script_internal 41
register_streamed_script_internal 42
register_streamed_script_internal 43
register_streamed_script_internal 44
register_streamed_script_internal 45
register_streamed_script_internal 46
register_streamed_script_internal 47
register_streamed_script_internal 48
register_streamed_script_internal 49
register_streamed_script_internal 50
register_streamed_script_internal 51
register_streamed_script_internal 52
register_streamed_script_internal 53
register_streamed_script_internal 54
register_streamed_script_internal 55
register_streamed_script_internal 56
register_streamed_script_internal 57
register_streamed_script_internal 58
register_streamed_script_internal 59
register_streamed_script_internal 60
register_streamed_script_internal 61
register_streamed_script_internal 62
register_streamed_script_internal 63
register_streamed_script_internal 64
register_streamed_script_internal 65
register_streamed_script_internal 66
register_streamed_script_internal 67
register_streamed_script_internal 68
register_streamed_script_internal 69
register_streamed_script_internal 70
register_streamed_script_internal 71
register_streamed_script_internal 72
register_streamed_script_internal 73
register_streamed_script_internal 74
register_streamed_script_internal 75
register_streamed_script_internal 76
register_streamed_script_internal 77
allocate_streamed_script_to_object 4 {modelId} #KB_BANDIT_U {priority} 100 {radius} 6.0 {type} 1
allocate_streamed_script_to_object 5 {modelId} #ROULETTE_TBL {priority} 60 {radius} 50.0 {type} 1
allocate_streamed_script_to_object 6 {modelId} #OTB_MACHINE {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP_3 {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP_2 {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP_1 {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #CJ_COIN_OP {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #SWANK_CONSOLE {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #SNESISH {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 7 {modelId} #LOW_CONSOLE {priority} 100 {radius} 4.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #VENDMACHFD {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #VENDMACH {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #VENDIN3 {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_SPRUNK1 {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_CANDYVENDOR {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_EXT_CANDY {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 8 {modelId} #CJ_EXT_SPRUNK {priority} 100 {radius} 6.0 {type} -1
allocate_streamed_script_to_object 9 {modelId} #ICESCART_PROP {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 9 {modelId} #CHILLIDOGCART {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 9 {modelId} #NOODLECART_PROP {priority} 100 {radius} 70.0 {type} -1
$open_gate_now_flag = 0
allocate_streamed_script_to_object 10 {modelId} #GATE_AUTOL {priority} 100 {radius} 80.0 {type} -1
allocate_streamed_script_to_object 10 {modelId} #GATE_AUTOR {priority} 100 {radius} 80.0 {type} -1
allocate_streamed_script_to_object 11 {modelId} #GYM_BIKE {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 12 {modelId} #GYM_BENCH1 {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 13 {modelId} #GYM_TREADMILL {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 14 {modelId} #GYM_MAT1 {priority} 100 {radius} 20.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #BSKBALL_LAX {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #BSKBALLHUB_LAX01 {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #VGSXREFBBALLNET {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 15 {modelId} #VGSXREFBBALLNET2 {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 21 {modelId} #K_POOLTABLESM {priority} 100 {radius} 70.0 {type} -1
allocate_streamed_script_to_object 16 {modelId} #NEIL_SLOT {priority} 100 {radius} 4.0 {type} 1
allocate_streamed_script_to_object 16 {modelId} #CJ_SLOT_BANK {priority} 100 {radius} 4.0 {type} 1
allocate_streamed_script_to_object 17 {modelId} #BLCK_JACK {priority} 50 {radius} 70.0 {type} 1
allocate_streamed_script_to_object 18 {modelId} #WHEEL_O_FORTUNE {priority} 50 {radius} 70.0 {type} 1
$territory_cash = 1
register_script_brain_for_code_use 23 {_p2} 'HOUSE'
register_attractor_script_brain_for_code_use 52 {_p2} 'DANCER'
register_attractor_script_brain_for_code_use 41 {_p2} 'PCHAIR'
register_attractor_script_brain_for_code_use 42 {_p2} 'PCUSTOM'
register_attractor_script_brain_for_code_use 43 {_p2} 'OTBWTCH'
register_attractor_script_brain_for_code_use 44 {_p2} 'OTBSLP'
register_attractor_script_brain_for_code_use 45 {_p2} 'OTBTILL'
register_attractor_script_brain_for_code_use 46 {_p2} 'FBOOTHR'
register_attractor_script_brain_for_code_use 47 {_p2} 'FBOOTHL'
register_attractor_script_brain_for_code_use 48 {_p2} 'BARGUY'
register_attractor_script_brain_for_code_use 49 {_p2} 'PEDROUL'
register_attractor_script_brain_for_code_use 50 {_p2} 'PEDCARD'
register_attractor_script_brain_for_code_use 51 {_p2} 'PEDSLOT'
register_attractor_script_brain_for_code_use 53 {_p2} 'STRIPW'
register_attractor_script_brain_for_code_use 54 {_p2} 'STRIPM'
register_attractor_script_brain_for_code_use 55 {_p2} 'BROWSE'
register_attractor_script_brain_for_code_use 56 {_p2} 'COPSIT'
register_attractor_script_brain_for_code_use 57 {_p2} 'COPLOOK'
register_attractor_script_brain_for_code_use 58 {_p2} 'TICKET'
register_attractor_script_brain_for_code_use 59 {_p2} 'SHOPPER'
register_attractor_script_brain_for_code_use 73 {_p2} 'PHOTO'
register_attractor_script_brain_for_code_use 74 {_p2} 'PRISONR'
allocate_streamed_script_to_random_ped 19 {modelId} 28 {priority} 100
allocate_streamed_script_to_random_ped 19 {modelId} 29 {priority} 100
allocate_streamed_script_to_random_ped 19 {modelId} 30 {priority} 100
allocate_streamed_script_to_random_ped 19 {modelId} 254 {priority} 100
allocate_streamed_script_to_random_ped 77 {modelId} 168 {priority} 100
attach_anims_to_model 28 {animationFile} 'DEALER'
attach_anims_to_model 29 {animationFile} 'DEALER'
attach_anims_to_model 30 {animationFile} 'DEALER'
attach_anims_to_model 254 {animationFile} 'DEALER'
request_ipl "CRACK"
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #CRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #CF_EXT_DEM_SFS {state} False
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #LODCRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #LODEXT_DEM_SFS {state} False
start_new_script @ODDVEH 
start_new_script @R3 
start_new_script @GYM 
start_new_script @SHOOT 
start_new_script @BLOODR 
start_new_script @HOTR 
start_new_script @KICKS 
start_new_script @PSAVE1 
start_new_script @FLOW 
start_new_script @HELP 
start_new_script @COLLS 
start_new_script @CRANES 
start_new_script @BUY_PRO 
start_new_script @VALET_L 
start_new_script @ADPLANE 
start_new_script @TRAINSL 
start_new_script @IMPND_L 
start_new_script @OPENUP 
start_new_script @TRI 
launch_mission @Noname_1
launch_mission @Noname_2
launch_mission @Noname_3
launch_mission @Noname_4
launch_mission @Noname_5
launch_mission @Noname_6
launch_mission @APCHECK
launch_mission @GFINIT
launch_mission @Noname_7
launch_mission @Noname_8
launch_mission @HJ
launch_mission @CELLFON
do_fade 0 {direction} Fade.Out
display_zone_names False
wait 0
wait 0
switch_world_processing False
set_fading_colour 0 {g} 0 {b} 0
wait 2000
switch_world_processing True
set_max_wanted_level 4
if 
  is_player_playing $player1
goto_if_false @MAIN_4068
force_weather_now WeatherType.SunnyLa
give_player_clothes_outside_shop $player1 {textureName} "VEST" {modelName} "VEST" {bodyPart} BodyPart.Torso
give_player_clothes_outside_shop $player1 {textureName} "JEANSDENIM" {modelName} "JEANS" {bodyPart} BodyPart.Legs
give_player_clothes_outside_shop $player1 {textureName} "SNEAKERBINCBLK" {modelName} "SNEAKER" {bodyPart} BodyPart.Shoes
give_player_clothes_outside_shop $player1 {textureName} "PLAYER_FACE" {modelName} "HEAD" {bodyPart} BodyPart.Head
$flag_bought_from_binco = 1
build_player_model $player1
store_clothes_state 
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out
$game_starts_from_scratch = 0
load_and_launch_mission_internal 2 // Intro
$activate_mobile_phone = 1
if 
  is_player_playing $player1
goto_if_false @MAIN_4059
set_area_visible 0
set_player_control $player1 {state} True

:MAIN_4059
release_weather 
goto @MAIN_4075

:MAIN_4068
$number_of_instances_of_streamed_script = 0

:MAIN_4075
wait 0
if 
  is_player_playing $player1
goto_if_false @MAIN_5808
$main_visible_area = get_area_visible 
$Return_cities_passed = get_int_stat StatId.CitiesPassed
$weekday = get_current_day_of_week 
$current_Language = get_current_language 
$im_players_city = get_city_player_is_in $player1
$game_timer_wil = get_game_timer 
if 
  $flag_store_day_food == 1
goto_if_false @MAIN_4214
set_var_int_to_var_int $timer_wil = $game_timer_wil
sub_int_var_from_int_var $timer_wil -= $stored_shop_time
if 
  $timer_wil >= 180000
goto_if_false @MAIN_4214
$flag_store_day_food = 0
$total_food_bought_per_day_shops = 0
$timer_wil = 0
$flag_ate_too_much_food = 0

:MAIN_4214
if or
  is_garage_open 'BODLAWN'
  is_garage_open 'MODLAST'
  is_garage_open 'MDSSFSE'
  is_garage_open 'MDS1SFS'
  is_garage_open 'VECMOD'
goto_if_false @MAIN_4336
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 66
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4329
stream_script 66
if 
  has_streamed_script_loaded 66
goto_if_false @MAIN_4329
start_new_streamed_script 66

:MAIN_4329
goto @MAIN_4340

:MAIN_4336
mark_streamed_script_as_no_longer_needed 66

:MAIN_4340
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @MAIN_4414
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 0
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4407
stream_script 0
if 
  has_streamed_script_loaded 0
goto_if_false @MAIN_4407
start_new_streamed_script 0

:MAIN_4407
goto @MAIN_4418

:MAIN_4414
mark_streamed_script_as_no_longer_needed 0

:MAIN_4418
if and
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
  $onmission == 0
goto_if_false @MAIN_4499
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 75
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4492
stream_script 75
if 
  has_streamed_script_loaded 75
goto_if_false @MAIN_4492
start_new_streamed_script 75

:MAIN_4492
goto @MAIN_4503

:MAIN_4499
mark_streamed_script_as_no_longer_needed 75

:MAIN_4503
if 
  $onmission == 0
goto_if_false @MAIN_5495
if 
  10 > $flag_synd_mission_counter
goto_if_false @MAIN_4972
if 
  $cat_counter > 2
goto_if_false @MAIN_4972
if 
  $courier_timer > 400
goto_if_false @MAIN_4900
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 2
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4738
if 
  $bcesar3_mission_flag == 0
goto_if_false @MAIN_4738
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 3
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4738
$weekday = get_current_day_of_week 
$hours, $minutes = get_time_of_day 
if or
  $weekday == 4
  $weekday == 7
goto_if_false @MAIN_4738
if or
  $hours >= 19
  7 > $hours
goto_if_false @MAIN_4738
stream_script 3
if 
  has_streamed_script_loaded 3
goto_if_false @MAIN_4738
start_new_streamed_script 3
$bcesar3_mission_flag = 1

:MAIN_4738
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 3
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4900
if 
  $bcesar2_mission_flag == 0
goto_if_false @MAIN_4900
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 2
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_4900
$weekday = get_current_day_of_week 
$hours, $minutes = get_time_of_day 
if or
  $weekday == 2
  $weekday == 6
goto_if_false @MAIN_4900
if and
  $hours >= 5
  17 > $hours
goto_if_false @MAIN_4900
stream_script 2
if 
  has_streamed_script_loaded 2
goto_if_false @MAIN_4900
start_new_streamed_script 2
$bcesar2_mission_flag = 1

:MAIN_4900
$weekday = get_current_day_of_week 
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @MAIN_4965
$bcesar2_mission_flag = 0
$bcesar3_mission_flag = 0
$courier_timer = 0
goto @MAIN_4972

:MAIN_4965
$courier_timer += 1

:MAIN_4972
if and
  $lowrider_minigame_unlocked == 1
  $onmission == 0
goto_if_false @MAIN_5193
if 
  $lowrider_mission_flag == 0
goto_if_false @MAIN_5132
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 22
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_5125
if 
  is_player_playing $player1
goto_if_false @MAIN_5125
if 
  locate_char_any_means_2d $scplayer {x} 1812.369 {y} -1929.922 {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MAIN_5125
stream_script 22
if 
  has_streamed_script_loaded 22
goto_if_false @MAIN_5125
start_new_streamed_script 22
$lowrider_mission_flag = 1

:MAIN_5125
goto @MAIN_5193

:MAIN_5132
if 
  is_player_playing $player1
goto_if_false @MAIN_5193
if 
  not locate_char_any_means_2d $scplayer {x} 1812.369 {y} -1929.922 {xRadius} 500.0 {yRadius} 500.0 {drawSphere} False
goto_if_false @MAIN_5193
$lowrider_mission_flag = 0

:MAIN_5193
switch_start $load_and_launch_mission_if_poss {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MAIN_5488 {caseNum1} 0 {caseLabel1} @MAIN_5321 {caseNum2} 1 {caseLabel2} @MAIN_5339 {caseNum3} 2 {caseLabel3} @MAIN_5357 {caseNum4} 3 {caseLabel4} @MAIN_5375 {caseNum5} 4 {caseLabel5} @MAIN_5393 {caseNum6} 5 {caseLabel6} @MAIN_5411 {caseNum7} 6 {caseLabel7} @MAIN_5429
switch_continued 7 {caseLabel1} @MAIN_5447 {caseNum2} -1 {caseLabel2} @MAIN_5488 {caseNum3} -1 {caseLabel3} @MAIN_5488 {caseNum4} -1 {caseLabel4} @MAIN_5488 {caseNum5} -1 {caseLabel5} @MAIN_5488 {caseNum6} -1 {caseLabel6} @MAIN_5488 {caseNum7} -1 {caseLabel7} @MAIN_5488 {caseNum8} -1 {caseLabel8} @MAIN_5488 {caseNum9} -1 {caseLabel9} @MAIN_5488

:MAIN_5321
$onmission = 1
load_and_launch_mission_internal 3 // Video Game: They Crawled From Uranus
goto @MAIN_5488

:MAIN_5339
$onmission = 1
load_and_launch_mission_internal 4 // Video Game: Duality
goto @MAIN_5488

:MAIN_5357
$onmission = 1
load_and_launch_mission_internal 5 // Video Game: Go Go Space Monkey
goto @MAIN_5488

:MAIN_5375
$onmission = 1
load_and_launch_mission_internal 6 // Video Game: Let's Get Ready To Bumble
goto @MAIN_5488

:MAIN_5393
$onmission = 1
load_and_launch_mission_internal 7 // Video Game: Inside Track Betting
goto @MAIN_5488

:MAIN_5411
$onmission = 1
load_and_launch_mission_internal 8 // Pool
goto @MAIN_5488

:MAIN_5429
$onmission = 1
load_and_launch_mission_internal 9 // Lowrider (Bet And Dance)
goto @MAIN_5488

:MAIN_5447
$onmission = 1
print_big 'BEEFY' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 10 // Beefy Baron
goto @MAIN_5488

:MAIN_5488
goto @MAIN_5534

:MAIN_5495
if or
  $bcesar2_mission_flag == 1
  $bcesar3_mission_flag == 1
goto_if_false @MAIN_5527
$courier_timer = 0

:MAIN_5527
$load_and_launch_mission_if_poss = -1

:MAIN_5534
if 
  is_player_playing $player1
goto_if_false @MAIN_5808
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2037.536 {leftBottomY} 2365.373 {rightTopX} 2117.177 {rightTopY} 2483.9221 {drawSphere} False
goto_if_false @MAIN_5644
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 70
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MAIN_5637
stream_script 70
if 
  has_streamed_script_loaded 70
goto_if_false @MAIN_5637
start_new_streamed_script 70

:MAIN_5637
goto @MAIN_5648

:MAIN_5644
mark_streamed_script_as_no_longer_needed 70

:MAIN_5648
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @MAIN_5808
if 
  locate_char_any_means_3d $scplayer {x} 658.0068 {y} -1866.313 {z} 4.4537 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MAIN_5783
if 
  $gym_at_beach == 0
goto_if_false @MAIN_5776
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @MAIN_5769
$gym_day_fitness = 0.0

:MAIN_5769
$gym_at_beach = 1

:MAIN_5776
goto @MAIN_5808

:MAIN_5783
if 
  $gym_at_beach == 1
goto_if_false @MAIN_5808
$gym_at_beach = 0

:MAIN_5808
goto @MAIN_4075

:INT
script_name 'INT'

:INT_11
wait $mission_trigger_wait_time
if 
  $flag_intro_mission_counter == 2
goto_if_false @INT_36
terminate_this_script 

:INT_36
if 
  is_player_playing $player1
goto_if_false @INT_292
if 
  $onmission == 0
goto_if_false @INT_292
if 
  locate_char_on_foot_3d $scplayer {x} $introX {y} $introY {z} $introZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @INT_182
if 
  can_player_start_mission $player1
goto_if_false @INT_182
if 
  $flag_intro_mission_counter == 0
goto_if_false @INT_182
$onmission = 1
print_big 'INTRO_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1140
clear_help 
load_and_launch_mission_internal 11 // Big Smoke

:INT_182
if 
  locate_char_on_foot_3d $scplayer {x} $ryderX {y} $ryderY {z} $ryderZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @INT_292
if 
  can_player_start_mission $player1
goto_if_false @INT_292
if 
  $flag_intro_mission_counter == 1
goto_if_false @INT_292
$onmission = 1
print_big 'INTRO_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 12 // Ryder

:INT_292
goto @INT_11

:SWEET
script_name 'SWEET'

:SWEET_11
wait $mission_trigger_wait_time
if 
  $flag_sweet_mission_counter == 9
goto_if_false @SWEET_36
terminate_this_script 

:SWEET_36
if 
  is_player_playing $player1
goto_if_false @SWEET_807
if 
  $onmission == 0
goto_if_false @SWEET_807
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET_684
if 
  can_player_start_mission $player1
goto_if_false @SWEET_684
if 
  $flag_sweet_mission_counter == 0
goto_if_false @SWEET_180
$onmission = 1
print_big 'SWEET_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 13 // Tagging Up Turf

:SWEET_180
if 
  $flag_sweet_mission_counter == 1
goto_if_false @SWEET_232
$onmission = 1
print_big 'SWEET1B' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 14 // Cleaning The Hood

:SWEET_232
if 
  $flag_sweet_mission_counter == 2
goto_if_false @SWEET_284
$onmission = 1
print_big 'SWEET_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 15 // Drive-Thru

:SWEET_284
if 
  $flag_sweet_mission_counter == 3
goto_if_false @SWEET_336
$onmission = 1
print_big 'SWEET_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 16 // Nines And AK's

:SWEET_336
if 
  $flag_sweet_mission_counter == 4
goto_if_false @SWEET_388
$onmission = 1
print_big 'SWEET_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 17 // Drive-By

:SWEET_388
if 
  $flag_sweet_mission_counter == 5
goto_if_false @SWEET_440
$onmission = 1
print_big 'SWEET_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 18 // Sweet's Girl

:SWEET_440
if 
  $flag_sweet_mission_counter == 6
goto_if_false @SWEET_492
$onmission = 1
print_big 'SWEET_6' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 19 // Cesar Vialpando

:SWEET_492
if 
  $flag_sweet_mission_counter == 8
goto_if_false @SWEET_684
$returned_respect = find_max_number_of_group_members 
if 
  $returned_respect > 1
goto_if_false @SWEET_632
$hours, $minutes = get_time_of_day 
if and
  $hours >= 9
  17 > $hours
goto_if_false @SWEET_609
clear_prints 
$onmission = 1
print_big 'SWEET_7' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 20 // Los Sepulcros
goto @SWEET_625

:SWEET_609
print_now 'MTIME3' {time} 1000 {flag} 1

:SWEET_625
goto @SWEET_684

:SWEET_632
print_now 'MOREREP' {time} 1000 {flag} 1
if 
  $respect_help_played == 0
goto_if_false @SWEET_684
print_help 'HELP101'
$respect_help_played = 1

:SWEET_684
if 
  locate_char_on_foot_3d $scplayer {x} 1365.251 {y} -1280.12 {z} 12.5469 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET_807
if 
  can_player_start_mission $player1
goto_if_false @SWEET_807
if and
  $flag_sweet_mission_counter == 7
  $1346 == 1
goto_if_false @SWEET_807
$onmission = 1
print_big 'CRASH_2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 21 // Doberman

:SWEET_807
goto @SWEET_11

:CRASH
script_name 'CRASH'

:CRASH_11
wait $mission_trigger_wait_time
if 
  $flag_crash_mission_counter == 2
goto_if_false @CRASH_36
terminate_this_script 

:CRASH_36
if 
  is_player_playing $player1
goto_if_false @CRASH_232
if 
  $onmission == 0
goto_if_false @CRASH_232
if 
  locate_char_on_foot_3d $scplayer {x} $crashX {y} $crashY {z} $crashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CRASH_232
if 
  can_player_start_mission $player1
goto_if_false @CRASH_232
if 
  $flag_crash_mission_counter == 0
goto_if_false @CRASH_180
$onmission = 1
print_big 'CRASH_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1836
load_and_launch_mission_internal 22 // Burning Desire

:CRASH_180
if 
  $flag_crash_mission_counter == 1
goto_if_false @CRASH_232
$onmission = 1
print_big 'CRASH_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1836
load_and_launch_mission_internal 23 // Gray Imports

:CRASH_232
goto @CRASH_11

:RYDER
script_name 'RYDER'

:RYDER_11
wait $mission_trigger_wait_time
if 
  $flag_ryder_mission_counter == 3
goto_if_false @RYDER_36
terminate_this_script 

:RYDER_36
if 
  is_player_playing $player1
goto_if_false @RYDER_342
if 
  $onmission == 0
goto_if_false @RYDER_342
if 
  locate_char_on_foot_3d $scplayer {x} $ryderX {y} $ryderY {z} $ryderZ {xRadius} 1.6 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER_342
if 
  can_player_start_mission $player1
goto_if_false @RYDER_342
if 
  $flag_ryder_mission_counter == 0
goto_if_false @RYDER_238
$hours, $minutes = get_time_of_day 
if and
  $hours >= 12
  20 > $hours
goto_if_false @RYDER_222
clear_prints 
$onmission = 1
print_big 'RYDER_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 24 // Home Invasion
goto @RYDER_238

:RYDER_222
print_now 'MTIME6' {time} 1000 {flag} 1

:RYDER_238
if 
  $flag_ryder_mission_counter == 1
goto_if_false @RYDER_290
$onmission = 1
print_big 'RYDER_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 25 // Catalyst

:RYDER_290
if 
  $flag_ryder_mission_counter == 2
goto_if_false @RYDER_342
$onmission = 1
print_big 'RYDER_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1498
load_and_launch_mission_internal 26 // Robbing Uncle Sam

:RYDER_342
goto @RYDER_11

:SMOKE
script_name 'SMOKE'

:SMOKE_11
wait $mission_trigger_wait_time
if 
  $flag_smoke_mission_counter == 4
goto_if_false @SMOKE_36
terminate_this_script 

:SMOKE_36
if 
  is_player_playing $player1
goto_if_false @SMOKE_336
if 
  $onmission == 0
goto_if_false @SMOKE_336
if 
  locate_char_on_foot_3d $scplayer {x} $smokeX {y} $smokeY {z} $smokeZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE_336
if 
  can_player_start_mission $player1
goto_if_false @SMOKE_336
if 
  $flag_smoke_mission_counter == 0
goto_if_false @SMOKE_180
$onmission = 1
print_big 'SMOKE_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 27 // OG Loc

:SMOKE_180
if 
  $flag_smoke_mission_counter == 1
goto_if_false @SMOKE_232
$onmission = 1
print_big 'SMOKE_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 28 // Running Dog

:SMOKE_232
if 
  $flag_smoke_mission_counter == 2
goto_if_false @SMOKE_284
$onmission = 1
print_big 'SMOKE_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 29 // Wrong Side of the Tracks

:SMOKE_284
if 
  $flag_smoke_mission_counter == 3
goto_if_false @SMOKE_336
$onmission = 1
print_big 'SMOKE_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1676
load_and_launch_mission_internal 30 // Just Business

:SMOKE_336
goto @SMOKE_11

:STRAP
script_name 'STRAP'

:STRAP_11
wait $mission_trigger_wait_time
if 
  $flag_strap_mission_counter == 5
goto_if_false @STRAP_36
terminate_this_script 

:STRAP_36
if 
  is_player_playing $player1
goto_if_false @STRAP_620
if 
  $onmission == 0
goto_if_false @STRAP_620
if 
  locate_char_on_foot_3d $scplayer {x} $strapX {y} $strapY {z} $strapZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @STRAP_452
if 
  can_player_start_mission $player1
goto_if_false @STRAP_452
if 
  $flag_strap_mission_counter == 0
goto_if_false @STRAP_238
$hours, $minutes = get_time_of_day 
if or
  $hours >= 22
  6 > $hours
goto_if_false @STRAP_222
clear_prints 
$onmission = 1
print_big 'STRAP_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2014
load_and_launch_mission_internal 31 // Life's a Beach
goto @STRAP_238

:STRAP_222
print_now 'MTIME5' {time} 1000 {flag} 1

:STRAP_238
if 
  $flag_strap_mission_counter == 1
goto_if_false @STRAP_290
$onmission = 1
print_big 'STRAP_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2014
load_and_launch_mission_internal 32 // Madd Dogg's Rhymes

:STRAP_290
if 
  $flag_strap_mission_counter == 2
goto_if_false @STRAP_400
$hours, $minutes = get_time_of_day 
if or
  $hours >= 12
  5 > $hours
goto_if_false @STRAP_384
clear_prints 
$onmission = 1
print_big 'STRAP_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2014
load_and_launch_mission_internal 33 // Management Issues
goto @STRAP_400

:STRAP_384
print_now 'MTIME2' {time} 1000 {flag} 1

:STRAP_400
if 
  $flag_strap_mission_counter == 3
goto_if_false @STRAP_452
$onmission = 1
gosub @PSAVE1_2014
print_big 'STRAP_4' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 34 // House Party

:STRAP_452
if 
  locate_char_on_foot_3d $scplayer {x} $strap2X {y} $strap2Y {z} $strap2Z {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @STRAP_620
if 
  can_player_start_mission $player1
goto_if_false @STRAP_620
if 
  $flag_strap_mission_counter == 4
goto_if_false @STRAP_620
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @STRAP_604
clear_prints 
$onmission = 1
print_big 'STRAP_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2174
load_and_launch_mission_internal 34 // House Party
goto @STRAP_620

:STRAP_604
print_now 'MTIME1' {time} 1000 {flag} 1

:STRAP_620
goto @STRAP_11

:CESAR
script_name 'CESAR'

:CESAR_11
wait 0
if 
  $flag_cesar_mission_counter == 1
goto_if_false @CESAR_35
terminate_this_script 

:CESAR_35
if 
  is_player_playing $player1
goto_if_false @CESAR_344
if 
  $onmission == 0
goto_if_false @CESAR_130
if 
  $flag_cesar_mission_counter == 0
goto_if_false @CESAR_130
if 
  $cs1_race_is_go == 1
goto_if_false @CESAR_130
set_var_int_to_constant $race_selection = 0
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
$cs1_race_is_go = 2

:CESAR_130
if 
  $onmission == 0
goto_if_false @CESAR_344
if 
  $flag_cesar_mission_counter == 0
goto_if_false @CESAR_344
if 
  locate_char_any_means_3d $scplayer {x} $cesarX {y} $cesarY {z} $cesarZ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CESAR_344
if 
  is_char_in_any_car $scplayer
goto_if_false @CESAR_328
$cs1_player_car = store_car_char_is_in_no_save $scplayer
if 
  is_car_low_rider $cs1_player_car
goto_if_false @CESAR_305
if 
  can_player_start_mission $player1
goto_if_false @CESAR_298
$onmission = 1
print_big 'CESAR_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2334
load_and_launch_mission_internal 36 // Lowrider (High Stakes)

:CESAR_298
goto @CESAR_321

:CESAR_305
print_now 'CES_CK1' {time} 1000 {flag} 1

:CESAR_321
goto @CESAR_344

:CESAR_328
print_now 'CES_CK1' {time} 1000 {flag} 1

:CESAR_344
goto @CESAR_11

:LA1FIN
script_name 'LA1FIN'

:LA1FIN_11
wait $mission_trigger_wait_time
if 
  $flag_la1fin1_mission_counter == 2
goto_if_false @LA1FIN_36
terminate_this_script 

:LA1FIN_36
if 
  is_player_playing $player1
goto_if_false @LA1FIN_340
if 
  $onmission == 0
goto_if_false @LA1FIN_340
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @LA1FIN_340
if 
  $flag_sweet_mission_counter == 9
goto_if_false @LA1FIN_340
if 
  $flag_smoke_mission_counter == 4
goto_if_false @LA1FIN_340
if 
  $flag_strap_mission_counter == 5
goto_if_false @LA1FIN_340
if 
  $flag_ryder_mission_counter == 3
goto_if_false @LA1FIN_340
if 
  $flag_crash_mission_counter == 2
goto_if_false @LA1FIN_340
if 
  $flag_cesar_mission_counter == 1
goto_if_false @LA1FIN_340
if 
  can_player_start_mission $player1
goto_if_false @LA1FIN_340
if 
  $flag_la1fin1_mission_counter == 0
goto_if_false @LA1FIN_288
$onmission = 1
print_big 'LA1FIN1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 37 // Reuniting The Families

:LA1FIN_288
if 
  $flag_la1fin1_mission_counter == 1
goto_if_false @LA1FIN_340
$onmission = 1
print_big 'LA1FIN2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 38 // The Green Sabre

:LA1FIN_340
goto @LA1FIN_11

:BCRASH
script_name 'BCRASH'

:BCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_bcrash_mission_counter == 1
goto_if_false @BCRASH_36
terminate_this_script 

:BCRASH_36
if 
  is_player_playing $player1
goto_if_false @BCRASH_180
if 
  $onmission == 0
goto_if_false @BCRASH_180
if 
  locate_char_on_foot_3d $scplayer {x} $bcrashX {y} $bcrashY {z} $bcrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @BCRASH_180
if 
  can_player_start_mission $player1
goto_if_false @BCRASH_180
if 
  $flag_bcrash_mission_counter == 0
goto_if_false @BCRASH_180
$onmission = 1
print_big 'BCRASH1' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 39 // Badlands

:BCRASH_180
goto @BCRASH_11

:CAT
$load_and_launch_catalina_mission = -1
script_name 'CAT'

:CAT_18
wait 0
if 
  is_player_playing $player1
goto_if_false @CAT_634
if 
  $onmission == 0
goto_if_false @CAT_419
if 
  can_player_start_mission $player1
goto_if_false @CAT_412
if 
  $cat_counter == 0
goto_if_false @CAT_164
if 
  locate_char_on_foot_3d $scplayer {x} $511 {y} $517 {z} $523 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT_157
$onmission = 1
gosub @CAT_641
gosub @CAT_779
load_and_launch_mission_internal 40 // First Date

:CAT_157
goto @CAT_249

:CAT_164
if 
  $flag_trailor_cutscene == 1
goto_if_false @CAT_249
if 
  locate_char_on_foot_3d $scplayer {x} $catX {y} $catY {z} $catZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT_249
$onmission = 1
gosub @CAT_641
gosub @CAT_922
load_and_launch_mission_internal 40 // First Date

:CAT_249
switch_start $load_and_launch_catalina_mission {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT_412 {caseNum1} 0 {caseLabel1} @CAT_312 {caseNum2} 1 {caseLabel2} @CAT_337 {caseNum3} 2 {caseLabel3} @CAT_362 {caseNum4} 3 {caseLabel4} @CAT_387 {caseNum5} -1 {caseLabel5} @CAT_412 {caseNum6} -1 {caseLabel6} @CAT_412 {caseNum7} -1 {caseLabel7} @CAT_412

:CAT_312
$onmission = 1
load_and_launch_mission_internal 41 // Local Liquor Store
goto @CAT_18
goto @CAT_412

:CAT_337
$onmission = 1
load_and_launch_mission_internal 42 // Small Town Bank
goto @CAT_18
goto @CAT_412

:CAT_362
$onmission = 1
load_and_launch_mission_internal 43 // Tanker Commander
goto @CAT_18
goto @CAT_412

:CAT_387
$onmission = 1
load_and_launch_mission_internal 44 // Against All Odds
goto @CAT_18
goto @CAT_412

:CAT_412
goto @CAT_426

:CAT_419
$load_and_launch_catalina_mission = -1

:CAT_426
if 
  $flag_trigger_trailor_cut == 0
goto_if_false @CAT_474
if 
  $cat_counter == 1
goto_if_false @CAT_474
remove_blip $cat_contact_blip
$flag_trigger_trailor_cut = 1

:CAT_474
if 
  $flag_trigger_trailor_cut == 1
goto_if_false @CAT_609
if 
  $flag_truth_mission_counter == 1
goto_if_false @CAT_609
if 
  locate_char_on_foot_3d $scplayer {x} $bcrashX {y} $bcrashY {z} $bcrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT_609
if 
  can_player_start_mission $player1
goto_if_false @CAT_609
$onmission = 1
print_big 'TRAILER' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 45 // King in Exile
$flag_trigger_trailor_cut = 2

:CAT_609
if 
  $cat_counter > 3
goto_if_false @CAT_634
remove_blip $cat_contact_blip
terminate_this_script 

:CAT_634
goto @CAT_18

:CAT_641
if 
  $cat_counter == 0
goto_if_false @CAT_675
print_big 'CATCUT1' {time} 1000 {style} TextStyle.BottomRight

:CAT_675
if 
  $cat_counter == 1
goto_if_false @CAT_709
print_big 'CATCUT2' {time} 1000 {style} TextStyle.BottomRight

:CAT_709
if 
  $cat_counter == 2
goto_if_false @CAT_743
print_big 'CATCUT3' {time} 1000 {style} TextStyle.BottomRight

:CAT_743
if 
  $cat_counter == 3
goto_if_false @CAT_777
print_big 'CATCUT4' {time} 1000 {style} TextStyle.BottomRight

:CAT_777
return 

:CAT_779
if 
  is_player_playing $player1
goto_if_false @CAT_920
$onmission = 1
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 664.9277 {y} -479.6112 {z} 16.1668 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 665.8948 {y} -479.5685 {z} 16.4175 {switchStyle} SwitchType.JumpCut
clear_area 681.8004 {y} -474.1063 {z} 15.5363 {radius} 3.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 681.8004 {y} -474.1063 {z} 15.5363 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:CAT_920
return 

:CAT_922
if 
  is_player_playing $player1
goto_if_false @CAT_1063
$onmission = 1
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 856.9968 {y} -27.9584 {z} 63.7393 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 857.9943 {y} -28.0286 {z} 63.7295 {switchStyle} SwitchType.JumpCut
clear_area 870.1503 {y} -25.3395 {z} 62.9589 {radius} 3.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 870.1503 {y} -25.3395 {z} 62.9589 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:CAT_1063
return 

:TRU
script_name 'TRU'

:TRU_11
wait $mission_trigger_wait_time
if 
  $flag_truth_mission_counter == 2
goto_if_false @TRU_36
terminate_this_script 

:TRU_36
if 
  is_player_playing $player1
goto_if_false @TRU_281
if 
  $onmission == 0
goto_if_false @TRU_281
if 
  can_player_start_mission $player1
goto_if_false @TRU_281
if 
  $flag_truth_mission_counter == 0
goto_if_false @TRU_180
if 
  locate_char_on_foot_3d $scplayer {x} $truth2X {y} $truth2Y {z} $truth2Z {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRU_180
$onmission = 1
print_big 'TRUTH_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2445
load_and_launch_mission_internal 46 // Body Harvest

:TRU_180
if and
  $flag_truth_mission_counter == 1
  $flag_bcesar_mission_counter > 9
goto_if_false @TRU_281
if 
  locate_char_on_foot_3d $scplayer {x} $truthX {y} $truthY {z} $truthZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRU_281
$onmission = 1
print_big 'TRUTH_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2605
load_and_launch_mission_internal 47 // Are you going to San Fierro?

:TRU_281
goto @TRU_11

:BCESAR
script_name 'BCESAR'

:BCESAR_11
wait 0
if 
  $flag_bcesar_mission_counter == 10
goto_if_false @BCESAR_42
set_int_stat StatId.PassedBcesar4 {value} 1
terminate_this_script 

:BCESAR_42
if 
  is_player_playing $player1
goto_if_false @BCESAR_880
if 
  $onmission == 0
goto_if_false @BCESAR_880
if 
  $flag_bcesar_mission_counter == 2
goto_if_false @BCESAR_116
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_116
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_116
if 
  $flag_bcesar_mission_counter == 0
goto_if_false @BCESAR_382
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_382
if 
  locate_char_any_means_3d $scplayer {x} $bcesarX {y} $bcesarY {z} $bcesarZ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCESAR_382
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR_366
if 
  can_player_start_mission $player1
goto_if_false @BCESAR_359
$car = get_car_char_is_using $scplayer
$car_class = get_vehicle_class $car
if or
  is_int_var_equal_to_constant $car_class == 0
  is_int_var_equal_to_constant $car_class == 1
  is_int_var_equal_to_constant $car_class == 2
  is_int_var_equal_to_constant $car_class == 3
  is_int_var_equal_to_constant $car_class == 4
  is_int_var_equal_to_constant $car_class == 6
goto_if_false @BCESAR_343
$flag_bcesar_mission_counter = 0
$onmission = 1
print_big 'BCESAR4' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...
goto @BCESAR_359

:BCESAR_343
print_now 'BC4_7' {time} 1000 {flag} 1

:BCESAR_359
goto @BCESAR_382

:BCESAR_366
print_now 'BC4_2' {time} 1000 {flag} 1

:BCESAR_382
if 
  $flag_bcesar_mission_counter == 3
goto_if_false @BCESAR_425
$flag_bcesar_mission_counter = 4
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_425
if and
  $flag_stage_of_bcesar_race == 1
  4 > $cat_counter
goto_if_false @BCESAR_479
remove_blip $cat_contact_blip
$cat_contact_blip = add_sprite_blip_for_contact_point $catX {y} $catY {z} $catZ {sprite} $cat_blip_icon
$flag_stage_of_bcesar_race = 0

:BCESAR_479
if 
  $cat_counter > 3
goto_if_false @BCESAR_695
if 
  $start_the_bcesar_race == 0
goto_if_false @BCESAR_652
if or
  $flag_bcesar_mission_counter == 5
  $flag_bcesar_mission_counter == 6
  $flag_bcesar_mission_counter == 7
goto_if_false @BCESAR_652
if 
  locate_char_any_means_3d $scplayer {x} -513.9356 {y} -188.314 {z} 77.4599 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @BCESAR_652
if 
  can_player_start_mission $player1
goto_if_false @BCESAR_652
$flag_bcesar_mission_counter = 5
$onmission = 1
print_big 'BCES4_2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_652
if 
  $flag_bcesar_mission_counter == 8
goto_if_false @BCESAR_695
$flag_bcesar_mission_counter = 9
$onmission = 1
gosub @LITCAS_267
load_and_launch_mission_internal 48 // Wu Zi Mu / Farewell, My Love...

:BCESAR_695
if and
  $cat_counter == 4
  $flag_bcesar_mission_counter > 4
goto_if_false @BCESAR_755
remove_blip $bcesar_contact_blip
$bcesar_contact_blip = add_sprite_blip_for_contact_point -513.9356 {y} -188.314 {z} 77.4599 {sprite} $cesar_blip_icon
$cat_counter = 5

:BCESAR_755
if 
  $start_the_bcesar_race == 1
goto_if_false @BCESAR_880
if 
  $flag_bcesar_mission_counter == 1
goto_if_false @BCESAR_823
$flag_bcesar_mission_counter = 2
set_var_int_to_constant $race_selection = 7
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
$start_the_bcesar_race = 0

:BCESAR_823
if 
  $flag_bcesar_mission_counter == 6
goto_if_false @BCESAR_880
$flag_bcesar_mission_counter = 7
set_var_int_to_constant $race_selection = 8
$show_race_selection = 0
set_int_stat StatId.StartedCrash1 {value} 1
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
$start_the_bcesar_race = 0

:BCESAR_880
goto @BCESAR_11

:GARAGE
script_name 'GARAGE'

:GARAGE_11
wait $mission_trigger_wait_time
if 
  $flag_garage_mission_counter == 2
goto_if_false @GARAGE_36
terminate_this_script 

:GARAGE_36
if 
  is_player_playing $player1
goto_if_false @GARAGE_250
if 
  $onmission == 0
goto_if_false @GARAGE_250
if 
  locate_char_on_foot_3d $scplayer {x} $garageX {y} $garageY {z} $garageZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @GARAGE_250
if 
  can_player_start_mission $player1
goto_if_false @GARAGE_250
if 
  $flag_garage_mission_counter == 0
goto_if_false @GARAGE_180
$onmission = 1
print_big 'GAR_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 49 // Wear Flowers In Your Hair

:GARAGE_180
if 
  $flag_scrash_mission_counter == 1
goto_if_false @GARAGE_250
if 
  $flag_garage_mission_counter == 1
goto_if_false @GARAGE_250
$onmission = 1
print_big 'GAR_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 50 // Deconstruction

:GARAGE_250
goto @GARAGE_11

:SCRASH
script_name 'SCRASH'

:SCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_scrash_mission_counter == 2
goto_if_false @SCRASH_36
terminate_this_script 

:SCRASH_36
if 
  is_player_playing $player1
goto_if_false @SCRASH_239
if 
  $onmission == 0
goto_if_false @SCRASH_239
if 
  locate_char_on_foot_3d $scplayer {x} $scrashX {y} $scrashY {z} $scrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH_239
if 
  can_player_start_mission $player1
goto_if_false @SCRASH_239
if 
  $flag_scrash_mission_counter == 0
goto_if_false @SCRASH_180
$onmission = 1
print_big 'SCRA_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 51 // 555 WE TIP

:SCRASH_180
if and
  $flag_scrash_mission_counter == 1
  $flag_synd_mission_counter == 6
goto_if_false @SCRASH_239
$onmission = 1
print_big 'SCRA_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 52 // Snail Trail

:SCRASH_239
goto @SCRASH_11

:WUZI
script_name 'WUZI'

:WUZI_11
wait $mission_trigger_wait_time
if 
  $flag_wuzi_mission_counter == 5
goto_if_false @WUZI_36
terminate_this_script 

:WUZI_36
if 
  is_player_playing $player1
goto_if_false @WUZI_515
if 
  $onmission == 0
goto_if_false @WUZI_515
if 
  locate_char_on_foot_3d $scplayer {x} $wuziX {y} $wuziY {z} $wuziZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @WUZI_515
if 
  can_player_start_mission $player1
goto_if_false @WUZI_515
if 
  $flag_wuzi_mission_counter == 0
goto_if_false @WUZI_180
$onmission = 1
print_big 'WUZI_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 53 // Mountain Cloud Boys

:WUZI_180
if 
  $flag_wuzi_mission_counter == 1
goto_if_false @WUZI_232
$onmission = 1
print_big 'FAR_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 54 // Ran Fa Li

:WUZI_232
if 
  $flag_wuzi_mission_counter == 2
goto_if_false @WUZI_284
$onmission = 1
print_big 'FAR_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 55 // Lure

:WUZI_284
if 
  $flag_wuzi_mission_counter == 3
goto_if_false @WUZI_463
$swim_stamina_check_main = get_int_stat StatId.UnderwaterBreathStamina
if 
  $swim_stamina_check_main > 50
goto_if_false @WUZI_427
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @WUZI_404
clear_prints 
$onmission = 1
print_big 'WUZI_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 56 // Amphibious Assault
goto @WUZI_420

:WUZI_404
print_now 'MTIME1' {time} 1000 {flag} 1

:WUZI_420
goto @WUZI_463

:WUZI_427
clear_prints 
$onmission = 1
print_big 'WUZI_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 56 // Amphibious Assault

:WUZI_463
if 
  $flag_wuzi_mission_counter == 4
goto_if_false @WUZI_515
$onmission = 1
print_big 'WUZI_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3085
load_and_launch_mission_internal 57 // The Da Nang Thang

:WUZI_515
goto @WUZI_11

:SYND
script_name 'SYND'

:SYND_11
wait $mission_trigger_wait_time
if 
  $flag_synd_mission_counter == 10
goto_if_false @SYND_36
terminate_this_script 

:SYND_36
if 
  is_player_playing $player1
goto_if_false @SYND_874
if 
  $onmission == 0
goto_if_false @SYND_874
if 
  locate_char_on_foot_3d $scplayer {x} $garageX {y} $garageY {z} $garageZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYND_512
if 
  can_player_start_mission $player1
goto_if_false @SYND_512
if 
  $flag_synd_mission_counter == 0
goto_if_false @SYND_180
$onmission = 1
print_big 'SYND_1' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 58 // Photo Opportunity

:SYND_180
if 
  $flag_synd_mission_counter == 1
goto_if_false @SYND_232
$onmission = 1
print_big 'SYND_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 59 // Jizzy

:SYND_232
if 
  $flag_synd_mission_counter == 5
goto_if_false @SYND_284
$onmission = 1
print_big 'SYND_3' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 60 // Outrider

:SYND_284
if and
  $flag_synd_mission_counter == 6
  $flag_scrash_mission_counter == 2
goto_if_false @SYND_401
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @SYND_385
$onmission = 1
clear_prints 
print_big 'SYND_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 61 // Ice Cold Killa
goto @SYND_401

:SYND_385
print_now 'MTIME1' {time} 1000 {flag} 1

:SYND_401
if 
  $flag_synd_mission_counter == 8
goto_if_false @SYND_453
$onmission = 1
print_big 'SYND_6' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 62 // Toreno's Last Flight

:SYND_453
if and
  $flag_synd_mission_counter == 9
  $flag_wuzi_mission_counter == 5
goto_if_false @SYND_512
$onmission = 1
print_big 'SYND_7' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2765
load_and_launch_mission_internal 63 // Yay Ka-Boom-Boom

:SYND_512
if 
  is_player_playing $player1
goto_if_false @SYND_644
if 
  $flag_synd_mission_counter == 7
goto_if_false @SYND_644
if 
  locate_char_on_foot_3d $scplayer {x} -1717.05 {y} 1280.91 {z} 6.23 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.5 {drawSphere} False
goto_if_false @SYND_644
if 
  can_player_start_mission $player1
goto_if_false @SYND_644
$onmission = 1
print_big 'SYND_5' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 64 // Pier 69

:SYND_644
if 
  is_player_playing $player1
goto_if_false @SYND_874
if 
  locate_char_on_foot_3d $scplayer {x} $syndX {y} $syndY {z} $syndZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.5 {drawSphere} False
goto_if_false @SYND_874
if 
  can_player_start_mission $player1
goto_if_false @SYND_874
if 
  $flag_synd_mission_counter == 2
goto_if_false @SYND_770
$onmission = 1
print_big 'SYND_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3725
load_and_launch_mission_internal 59 // Jizzy

:SYND_770
if 
  $flag_synd_mission_counter == 3
goto_if_false @SYND_822
$onmission = 1
print_big 'FAR_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3725
load_and_launch_mission_internal 65 // T-Bone Mendez

:SYND_822
if 
  $flag_synd_mission_counter == 4
goto_if_false @SYND_874
$onmission = 1
print_big 'FAR_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3725
load_and_launch_mission_internal 66 // Mike Toreno

:SYND_874
goto @SYND_11

:STEAL
script_name 'STEAL'

:STEAL_11
wait $mission_trigger_wait_time
if 
  $flag_steal_mission_counter == 4
goto_if_false @STEAL_36
terminate_this_script 

:STEAL_36
if 
  is_player_playing $player1
goto_if_false @STEAL_336
if 
  $onmission == 0
goto_if_false @STEAL_336
if 
  locate_char_on_foot_3d $scplayer {x} $stealX {y} $stealY {z} $stealZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @STEAL_336
if 
  can_player_start_mission $player1
goto_if_false @STEAL_336
if 
  $flag_steal_mission_counter == 0
goto_if_false @STEAL_180
$onmission = 1
print_big 'STEAL_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 67 // Zeroing In

:STEAL_180
if 
  $flag_steal_mission_counter == 1
goto_if_false @STEAL_232
$onmission = 1
print_big 'STEAL_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 68 // Test Drive

:STEAL_232
if 
  $flag_steal_mission_counter == 2
goto_if_false @STEAL_284
$onmission = 1
print_big 'STEAL_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 69 // Customs Fast Track

:STEAL_284
if 
  $flag_steal_mission_counter == 3
goto_if_false @STEAL_336
$onmission = 1
print_big 'STEAL_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_2925
load_and_launch_mission_internal 70 // Puncture Wounds

:STEAL_336
goto @STEAL_11

:TRACE
script_name 'TRACE'

:TRACE_11
wait 0
if 
  is_player_playing $player1
goto_if_false @TRACE_805
if 
  $onmission == 0
goto_if_false @TRACE_805
if 
  locate_char_on_foot_3d $scplayer {x} $testsX {y} $testsY {z} $testsZ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @TRACE_395
$main_visible_area = get_area_visible 
if 
  $main_visible_area <> 0
goto_if_false @TRACE_395
if 
  $f1_scripted_cut == 0
goto_if_false @TRACE_270
if 
  locate_char_on_foot_3d $scplayer {x} -2031.4 {y} -116.5 {z} 1034.1 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @TRACE_263
if 
  can_player_start_mission $player1
goto_if_false @TRACE_263
if 
  $flag_garage_mission_counter > 0
goto_if_false @TRACE_263
$onmission = 1
set_fading_colour 0 {g} 0 {b} 0
print_big 'FAR_1' {time} 1000 {style} TextStyle.BottomRight
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 71 // Back to School

:TRACE_263
goto @TRACE_395

:TRACE_270
if 
  locate_char_on_foot_3d $scplayer {x} $testsX {y} $testsY {z} $testsZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @TRACE_395
if 
  can_player_start_mission $player1
goto_if_false @TRACE_395
if 
  $flag_garage_mission_counter > 0
goto_if_false @TRACE_395
$onmission = 1
set_fading_colour 0 {g} 0 {b} 0
print_big 'FAR_1' {time} 1000 {style} TextStyle.BottomRight
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 71 // Back to School

:TRACE_395
if 
  is_player_playing $player1
goto_if_false @TRACE_805
if 
  can_player_start_mission $player1
goto_if_false @TRACE_805
if 
  $1398 == 1
goto_if_false @TRACE_805
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[0] {y} $traceY[0] {z} $traceZ[0] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_535
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_535
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[1] {y} $traceY[1] {z} $traceZ[1] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_625
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 1
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_625
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[2] {y} $traceY[2] {z} $traceZ[2] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_715
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 2
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_715
if 
  locate_char_on_foot_3d $scplayer {x} $traceX[3] {y} $traceY[3] {z} $traceZ[3] {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @TRACE_805
$onmission = 1
set_player_control $player1 {state} False
print_big 'TRACE_1' {time} 1000 {style} TextStyle.BottomRight
$show_race_selection = 1
set_var_int_to_constant $menu_mode = 3
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:TRACE_805
goto @TRACE_11

:ZERO
script_name 'ZERO'

:ZERO_11
wait $mission_trigger_wait_time
if 
  $flag_zero_mission_counter == 3
goto_if_false @ZERO_36
terminate_this_script 

:ZERO_36
if 
  is_player_playing $player1
goto_if_false @ZERO_284
if 
  $onmission == 0
goto_if_false @ZERO_284
if 
  locate_char_on_foot_3d $scplayer {x} $zeroX {y} $zeroY {z} $zeroZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO_284
if 
  can_player_start_mission $player1
goto_if_false @ZERO_284
if 
  $flag_zero_mission_counter == 0
goto_if_false @ZERO_180
$onmission = 1
print_big 'ZERO_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4587
load_and_launch_mission_internal 72 // Air Raid

:ZERO_180
if 
  $flag_zero_mission_counter == 1
goto_if_false @ZERO_232
$onmission = 1
print_big 'ZERO_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4587
load_and_launch_mission_internal 73 // Supply Lines...

:ZERO_232
if 
  $flag_zero_mission_counter == 2
goto_if_false @ZERO_284
$onmission = 1
print_big 'ZERO_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4587
load_and_launch_mission_internal 74 // New Model Army

:ZERO_284
goto @ZERO_11

:DESERT
script_name 'DESERT'

:DESERT_11
wait $mission_trigger_wait_time
if 
  $flag_desert_mission_counter == 9
goto_if_false @DESERT_36
terminate_this_script 

:DESERT_36
if 
  is_player_playing $player1
goto_if_false @DESERT_721
if 
  $onmission == 0
goto_if_false @DESERT_721
if 
  locate_char_on_foot_3d $scplayer {x} $desertX {y} $desertY {z} $desertZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @DESERT_372
if 
  can_player_start_mission $player1
goto_if_false @DESERT_372
if 
  $flag_desert_mission_counter == 0
goto_if_false @DESERT_180
$onmission = 1
print_big 'DESERT1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 75 // Monster

:DESERT_180
if 
  $1400 == 1
goto_if_false @DESERT_250
if 
  $flag_desert_mission_counter == 1
goto_if_false @DESERT_250
$onmission = 1
print_big 'DESERT2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 76 // Highjack

:DESERT_250
if 
  $1402 == 1
goto_if_false @DESERT_320
if 
  $flag_desert_mission_counter == 2
goto_if_false @DESERT_320
$onmission = 1
print_big 'DESERT3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 77 // Interdiction

:DESERT_320
if 
  $flag_desert_mission_counter == 3
goto_if_false @DESERT_372
$onmission = 1
print_big 'DESERT4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3885
load_and_launch_mission_internal 78 // Verdant Meadows

:DESERT_372
if 
  locate_char_on_foot_3d $scplayer {x} $desert2X {y} $desert2Y {z} $desert2Z {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @DESERT_721
if 
  can_player_start_mission $player1
goto_if_false @DESERT_721
if 
  $pilot_test_passed == 1
goto_if_false @DESERT_500
if 
  $flag_desert_mission_counter == 5
goto_if_false @DESERT_500
$onmission = 1
print_big 'DESERT6' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 79 // N.O.E.

:DESERT_500
if 
  $flag_desert_mission_counter == 6
goto_if_false @DESERT_552
$onmission = 1
print_big 'DESERT9' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 80 // Stowaway

:DESERT_552
if 
  $flag_desert_mission_counter == 7
goto_if_false @DESERT_662
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @DESERT_646
clear_prints 
$onmission = 1
print_big 'DESERT8' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 81 // Black Project
goto @DESERT_662

:DESERT_646
print_now 'MTIME1' {time} 1000 {flag} 1

:DESERT_662
if and
  $flag_desert_mission_counter == 8
  $1389 == 1
goto_if_false @DESERT_721
$onmission = 1
print_big 'DESER10' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4156
load_and_launch_mission_internal 82 // Green Goo

:DESERT_721
goto @DESERT_11

:PSCH
script_name 'PSCH'

:PSCH_11
wait 0
if 
  is_player_playing $player1
goto_if_false @PSCH_239
if 
  $onmission == 0
goto_if_false @PSCH_239
if 
  locate_char_on_foot_3d $scplayer {x} $pilotx {y} $piloty {z} $pilotz {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @PSCH_239
if 
  can_player_start_mission $player1
goto_if_false @PSCH_239
if 
  $flag_desert_mission_counter > 3
goto_if_false @PSCH_239
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
if 
  $played_scipted_airscript_cut == 0
goto_if_false @PSCH_179
gosub @PSAVE1_4045
$played_scipted_airscript_cut = 1
goto @PSCH_235

:PSCH_179
set_fading_colour 0 {g} 0 {b} 0
if 
  $pilot_test_passed == 0
goto_if_false @PSCH_221
print_big 'DESERT5' {time} 1000 {style} TextStyle.BottomRight

:PSCH_221
set_player_control $player1 {state} False
gosub @LITCAS_267

:PSCH_235
load_and_launch_mission_internal 83 // Learning to Fly

:PSCH_239
goto @PSCH_11

:CASINO
script_name 'CASINO'

:CASINO_11
wait $mission_trigger_wait_time
if 
  $flag_casino_mission_counter == 9
goto_if_false @CASINO_36
terminate_this_script 

:CASINO_36
if 
  is_player_playing $player1
goto_if_false @CASINO_707
if 
  $onmission == 0
goto_if_false @CASINO_707
if 
  can_player_start_mission $player1
goto_if_false @CASINO_707
if 
  locate_char_on_foot_3d $scplayer {x} $casinoX {y} $casinoY {z} $casinoZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO_336
if 
  $flag_casino_mission_counter == 0
goto_if_false @CASINO_180
$onmission = 1
print_big 'CASINO1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 84 // Fender Ketchup

:CASINO_180
if 
  $flag_casino_mission_counter == 1
goto_if_false @CASINO_232
$onmission = 1
print_big 'CASEEN2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 85 // Explosive Situation

:CASINO_232
if 
  $flag_casino_mission_counter == 2
goto_if_false @CASINO_284
$onmission = 1
print_big 'CASINO3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 86 // You've Had Your Chips

:CASINO_284
if 
  $flag_casino_mission_counter == 6
goto_if_false @CASINO_336
$onmission = 1
print_big 'CASINO7' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 87 // Fish in a Barrel

:CASINO_336
if 
  locate_char_on_foot_3d $scplayer {x} 2026.603 {y} 1007.735 {z} 9.8127 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO_436
if 
  $flag_casino_mission_counter == 3
goto_if_false @CASINO_436
$onmission = 1
print_big 'CASINO4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3565
load_and_launch_mission_internal 88 // Don Peyote

:CASINO_436
if 
  locate_char_on_foot_3d $scplayer {x} $heistX {y} $heistY {z} $heistZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO_707
if and
  $flag_casino_mission_counter == 4
  $1380 == 1
goto_if_false @CASINO_537
$onmission = 1
print_big 'CASINO5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 89 // Intensive Care

:CASINO_537
if 
  $flag_casino_mission_counter == 5
goto_if_false @CASINO_589
$onmission = 1
print_big 'CASINO6' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 90 // The Meat Business

:CASINO_589
if and
  $flag_casino_mission_counter == 7
  $1381 == 1
goto_if_false @CASINO_648
$onmission = 1
print_big 'CASINO9' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 91 // Freefall

:CASINO_648
if and
  $flag_casino_mission_counter == 8
  $1382 == 1
goto_if_false @CASINO_707
$onmission = 1
print_big 'CASIN10' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4267
load_and_launch_mission_internal 92 // Saint Mark's Bistro

:CASINO_707
goto @CASINO_11

:VCRASH
script_name 'VCRASH'

:VCRASH_11
wait $mission_trigger_wait_time
if 
  $flag_vcrash_mission_counter == 2
goto_if_false @VCRASH_36
terminate_this_script 

:VCRASH_36
if 
  is_player_playing $player1
goto_if_false @VCRASH_287
if 
  $onmission == 0
goto_if_false @VCRASH_287
if 
  can_player_start_mission $player1
goto_if_false @VCRASH_287
if 
  locate_char_on_foot_3d $scplayer {x} $vcrashX {y} $vcrashY {z} $vcrashZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH_180
if 
  $flag_vcrash_mission_counter == 0
goto_if_false @VCRASH_180
$onmission = 1
print_big 'VCRASH1' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 93 // Misappropriation

:VCRASH_180
if and
  $flag_vcrash_mission_counter == 1
  $flag_mob_vegas == 1
goto_if_false @VCRASH_287
if 
  locate_char_on_foot_3d $scplayer {x} -378.75 {y} 2235.8501 {z} 41.42 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH_287
$onmission = 1
print_big 'VCRASH2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 94 // High Noon

:VCRASH_287
goto @VCRASH_11

:DOC
script_name 'DOC'

:DOC_11
wait $mission_trigger_wait_time
if 
  $flag_doc_mission_counter == 1
goto_if_false @DOC_36
terminate_this_script 

:DOC_36
if 
  is_player_playing $player1
goto_if_false @DOC_180
if 
  $onmission == 0
goto_if_false @DOC_180
if 
  locate_char_on_foot_3d $scplayer {x} $docX {y} $docY {z} $docZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @DOC_180
if 
  can_player_start_mission $player1
goto_if_false @DOC_180
if 
  $flag_doc_mission_counter == 0
goto_if_false @DOC_180
$onmission = 1
print_big 'DOC_2' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 95 // Madd Dogg

:DOC_180
goto @DOC_11

:HEIST
script_name 'HEIST'

:HEIST_11
wait $mission_trigger_wait_time
if 
  $flag_heist_mission_counter == 6
goto_if_false @HEIST_36
terminate_this_script 

:HEIST_36
if 
  is_player_playing $player1
goto_if_false @HEIST_546
if 
  $onmission == 0
goto_if_false @HEIST_546
if 
  locate_char_on_foot_3d $scplayer {x} $TheheistX {y} $TheheistY {z} $TheheistZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST_546
if 
  can_player_start_mission $player1
goto_if_false @HEIST_546
if 
  $flag_heist_mission_counter == 0
goto_if_false @HEIST_180
$onmission = 1
print_big 'HEIST_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 96 // Architectural Espionage

:HEIST_180
if 
  $flag_heist_mission_counter == 1
goto_if_false @HEIST_232
$onmission = 1
print_big 'HEIST_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 97 // Key To Her Heart

:HEIST_232
if 
  $flag_heist_mission_counter == 2
goto_if_false @HEIST_284
$onmission = 1
print_big 'HEIST_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 98 // Dam And Blast

:HEIST_284
if 
  $flag_heist_mission_counter == 3
goto_if_false @HEIST_336
$onmission = 1
print_big 'HEIST_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 99 // Cop Wheels

:HEIST_336
if 
  $flag_heist_mission_counter == 4
goto_if_false @HEIST_446
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @HEIST_430
$onmission = 1
clear_prints 
print_big 'HEIST_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 100 // Up, Up and Away!
goto @HEIST_446

:HEIST_430
print_now 'MTIME1' {time} 1000 {flag} 1

:HEIST_446
if and
  $flag_heist_mission_counter == 5
  $1384 == 1
goto_if_false @HEIST_546
if 
  $keycard_aquired_from_millie == 1
goto_if_false @HEIST_530
$onmission = 1
print_big 'HEIST_9' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3405
load_and_launch_mission_internal 101 // Breaking the Bank at Caligula's
goto @HEIST_546

:HEIST_530
print_now 'NEEDKEY' {time} 1000 {flag} 1

:HEIST_546
goto @HEIST_11

:MANSION
script_name 'MANSION'

:MANSION_11
wait $mission_trigger_wait_time
if 
  $flag_mansion_mission_counter == 4
goto_if_false @MANSION_36
terminate_this_script 

:MANSION_36
if 
  is_player_playing $player1
goto_if_false @MANSION_378
if 
  $onmission == 0
goto_if_false @MANSION_378
if 
  can_player_start_mission $player1
goto_if_false @MANSION_378
if 
  locate_char_on_foot_3d $scplayer {x} $casinoX {y} $casinoY {z} $casinoZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSION_180
if 
  $flag_mansion_mission_counter == 0
goto_if_false @MANSION_180
$onmission = 1
print_big 'MAN_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_3245
load_and_launch_mission_internal 102 // A Home In The Hills

:MANSION_180
if 
  locate_char_on_foot_3d $scplayer {x} $mansionX {y} $mansionY {z} $mansionZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSION_378
if 
  $flag_mansion_mission_counter == 1
goto_if_false @MANSION_274
$onmission = 1
print_big 'MAN_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 103 // Vertical Bird

:MANSION_274
if 
  $flag_mansion_mission_counter == 2
goto_if_false @MANSION_326
$onmission = 1
print_big 'MAN_3' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 104 // Home Coming

:MANSION_326
if 
  $flag_mansion_mission_counter == 3
goto_if_false @MANSION_378
$onmission = 1
print_big 'MAN_5' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 105 // Cut Throat Business

:MANSION_378
goto @MANSION_11

:GROVE
script_name 'GROVE'

:GROVE_11
wait $mission_trigger_wait_time
if 
  $flag_grove_mission_counter == 2
goto_if_false @GROVE_36
terminate_this_script 

:GROVE_36
if 
  is_player_playing $player1
goto_if_false @GROVE_274
if 
  $onmission == 0
goto_if_false @GROVE_274
if 
  can_player_start_mission $player1
goto_if_false @GROVE_274
if 
  locate_char_on_foot_3d $scplayer {x} $introX {y} $introY {z} $introZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @GROVE_180
if 
  $flag_grove_mission_counter == 0
goto_if_false @GROVE_180
$onmission = 1
print_big 'GROVE_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1140
load_and_launch_mission_internal 106 // Beat Down on B Dup

:GROVE_180
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @GROVE_274
if 
  $flag_grove_mission_counter == 1
goto_if_false @GROVE_274
$onmission = 1
print_big 'GROVE_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 107 // Grove 4 Life

:GROVE_274
goto @GROVE_11

:RIOT
script_name 'RIOT'

:RIOT_11
wait $mission_trigger_wait_time
if 
  $flag_riot_mission_counter == 5
goto_if_false @RIOT_36
terminate_this_script 

:RIOT_36
if 
  is_player_playing $player1
goto_if_false @RIOT_673
if 
  $onmission == 0
goto_if_false @RIOT_673
if 
  locate_char_on_foot_3d $scplayer {x} $mansionX {y} $mansionY {z} $mansionZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @RIOT_180
if 
  can_player_start_mission $player1
goto_if_false @RIOT_180
if 
  $flag_riot_mission_counter == 0
goto_if_false @RIOT_180
$onmission = 1
print_big 'RIOT_1' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_4427
load_and_launch_mission_internal 108 // Riot

:RIOT_180
if 
  locate_char_on_foot_3d $scplayer {x} $sweetX {y} $sweetY {z} $sweetZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @RIOT_587
if 
  can_player_start_mission $player1
goto_if_false @RIOT_587
if 
  $flag_riot_mission_counter == 1
goto_if_false @RIOT_372
$returned_respect = find_max_number_of_group_members 
if 
  $returned_respect > 1
goto_if_false @RIOT_320
$onmission = 1
print_big 'RIOT_2' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 109 // Los Desperados
goto @RIOT_372

:RIOT_320
print_now 'MOREREP' {time} 1000 {flag} 1
if 
  $respect_help_played == 0
goto_if_false @RIOT_372
print_help 'HELP101'
$respect_help_played = 1

:RIOT_372
if 
  $1355 == 1
goto_if_false @RIOT_483
if 
  $1354 == 1
goto_if_false @RIOT_467
if 
  $flag_riot_mission_counter == 2
goto_if_false @RIOT_460
$onmission = 1
print_big 'RIOT_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 110 // End Of The Line (1)

:RIOT_460
goto @RIOT_483

:RIOT_467
print_now 'MORTURF' {time} 2000 {flag} 1

:RIOT_483
if 
  $flag_riot_mission_counter == 3
goto_if_false @RIOT_535
$onmission = 1
print_big 'RIOT_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 111 // End Of The Line (2)

:RIOT_535
if 
  $flag_riot_mission_counter == 4
goto_if_false @RIOT_587
$onmission = 1
print_big 'RIOT_4' {time} 1000 {style} TextStyle.BottomRight
gosub @PSAVE1_1320
load_and_launch_mission_internal 112 // End Of The Line (3)

:RIOT_587
if and
  $flag_riot_mission_counter == 3
  $finaleB_played_first_time_round == 0
goto_if_false @RIOT_630
$finaleB_played_first_time_round = 1
$onmission = 1
load_and_launch_mission_internal 111 // End Of The Line (2)

:RIOT_630
if and
  $flag_riot_mission_counter == 4
  $finaleB_played_first_time_round == 1
goto_if_false @RIOT_673
$finaleB_played_first_time_round = 2
$onmission = 1
load_and_launch_mission_internal 112 // End Of The Line (3)

:RIOT_673
goto @RIOT_11

:SHOOT
script_name 'SHOOT'

:SHOOT_11
wait 125
if 
  is_player_playing $player1
goto_if_false @SHOOT_324
if 
  $onmission == 0
goto_if_false @SHOOT_238
if 
  $main_visible_area <> 0
goto_if_false @SHOOT_231
if 
  $flag_shooting_range_mission == 0
goto_if_false @SHOOT_231
if 
  $flag_dont_start_shooting_range == 0
goto_if_false @SHOOT_231
$sr_i = 0

:SHOOT_110
if 
  4 > $sr_i
goto_if_false @SHOOT_231
if 
  locate_char_on_foot_3d $scplayer {x} $Srange_X($sr_i,4f) {y} $Srange_Y($sr_i,4f) {z} $Srange_Z($sr_i,4f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SHOOT_217
if 
  can_player_start_mission $player1
goto_if_false @SHOOT_217
$onmission = 1
set_var_int_to_var_int $SR_range_id = $sr_i
load_and_launch_mission_internal 113 // Shooting range

:SHOOT_217
$sr_i += 1
goto @SHOOT_110

:SHOOT_231
goto @SHOOT_281

:SHOOT_238
if 
  $main_visible_area <> 0
goto_if_false @SHOOT_281
if 
  $flag_dont_start_shooting_range == 0
goto_if_false @SHOOT_281
$flag_dont_start_shooting_range = 1

:SHOOT_281
if 
  $flag_dont_start_shooting_range == 1
goto_if_false @SHOOT_324
if 
  $main_visible_area == 0
goto_if_false @SHOOT_324
$flag_dont_start_shooting_range = 0

:SHOOT_324
goto @SHOOT_11

:GYM
script_name 'GYM'

:GYM_11
wait 70
if 
  $onmission == 0
goto_if_false @GYM_388
if 
  $1348 == 1
goto_if_false @GYM_115
if 
  $switch_the_gym_interiors_off == 0
goto_if_false @GYM_115
switch_entry_exit 'GYM1' {state} True
switch_entry_exit 'GYM2' {state} True
switch_entry_exit 'GYM3' {state} True
$switch_the_gym_interiors_off = 1

:GYM_115
if 
  is_player_playing $player1
goto_if_false @GYM_381
if 
  can_player_start_mission $player1
goto_if_false @GYM_381
if 
  locate_char_on_foot_3d $scplayer {x} 767.1537 {y} 4.8323 {z} 999.7185 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GYM_225
$main_visible_area_char = get_char_area_visible $scplayer
if 
  $main_visible_area_char == 5
goto_if_false @GYM_225
load_and_launch_mission_internal 114 // Los Santos Gym Fight School

:GYM_225
if 
  locate_char_on_foot_3d $scplayer {x} 768.4777 {y} -37.1737 {z} 999.6865 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GYM_303
$main_visible_area_char = get_char_area_visible $scplayer
if 
  $main_visible_area_char == 6
goto_if_false @GYM_303
load_and_launch_mission_internal 115 // San Fierro Gym Fight School

:GYM_303
if 
  locate_char_on_foot_3d $scplayer {x} 766.5975 {y} -65.293 {z} 999.6562 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GYM_381
$main_visible_area_char = get_char_area_visible $scplayer
if 
  $main_visible_area_char == 7
goto_if_false @GYM_381
load_and_launch_mission_internal 116 // Las Venturas Gym Fight School

:GYM_381
goto @GYM_488

:GYM_388
if 
  $1348 == 1
goto_if_false @GYM_488
if 
  $main_visible_area == 0
goto_if_false @GYM_488
if 
  $switch_the_gym_interiors_off == 1
goto_if_false @GYM_488
switch_entry_exit 'GYM1' {state} False
switch_entry_exit 'GYM2' {state} False
switch_entry_exit 'GYM3' {state} False
$switch_the_gym_interiors_off = 0

:GYM_488
goto @GYM_11

:TRUCKS
script_name 'TRUCKS'

:TRUCKS_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @TRUCKS_146
if 
  is_player_playing $player1
goto_if_false @TRUCKS_146
if 
  locate_char_on_foot_3d $scplayer {x} $truckX {y} $truckY {z} $truckZ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @TRUCKS_146
if 
  can_player_start_mission $player1
goto_if_false @TRUCKS_146
set_player_control $player1 {state} False
draw_oddjob_title_before_fade False
print_big 'TRUCK' {time} 3000 {style} TextStyle.MiddleSmallerHigher
gosub @LITCAS_267
load_and_launch_mission_internal 117 // Trucking

:TRUCKS_146
goto @TRUCKS_11

:QUARRYS
script_name 'QUARRYS'

:QUARRYS_11
wait 0
if 
  $onmission == 0
goto_if_false @QUARRYS_145
if 
  is_player_playing $player1
goto_if_false @QUARRYS_145
if 
  locate_char_on_foot_3d $scplayer {x} $quarryX {y} $quarryY {z} $quarryZ {xRadius} 1.5 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRYS_145
if 
  can_player_start_mission $player1
goto_if_false @QUARRYS_145
set_player_control $player1 {state} False
draw_oddjob_title_before_fade False
print_big 'QUARRY' {time} 3000 {style} TextStyle.MiddleSmallerHigher
gosub @LITCAS_267
load_and_launch_mission_internal 118 // Quarry

:QUARRYS_145
goto @QUARRYS_11

:BSCHOO
script_name 'BSCHOO'

:BSCHOO_11
wait 0
if 
  $onmission == 0
goto_if_false @BSCHOO_125
if 
  is_player_playing $player1
goto_if_false @BSCHOO_125
if 
  locate_char_on_foot_3d $scplayer {x} $boatsX {y} $boatsY {z} $boatsZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @BSCHOO_125
if 
  can_player_start_mission $player1
goto_if_false @BSCHOO_125
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 119 // Boat School

:BSCHOO_125
goto @BSCHOO_11

:BIKES
script_name 'BIKES'

:BIKES_11
wait 0
if 
  $onmission == 0
goto_if_false @BIKES_125
if 
  is_player_playing $player1
goto_if_false @BIKES_125
if 
  locate_char_on_foot_3d $scplayer {x} $bikesX {y} $bikesY {z} $bikesZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} True
goto_if_false @BIKES_125
if 
  can_player_start_mission $player1
goto_if_false @BIKES_125
set_player_control $player1 {state} False
gosub @LITCAS_267
load_and_launch_mission_internal 120 // Bike School

:BIKES_125
goto @BIKES_11

:R3
script_name 'R3'

:R3_11
wait 70
if 
  $onmission == 0
goto_if_false @R3_4103
if 
  is_player_playing $player1
goto_if_false @R3_4103
if 
  is_char_in_any_car $scplayer
goto_if_false @R3_4001
if 
  not is_minigame_in_progress 
goto_if_false @R3_3994
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_110
goto @R3_4110
goto @R3_3994

:R3_110
if or
  is_char_in_taxi $scplayer
  is_char_in_model $scplayer {modelId} 416
  is_char_in_model $scplayer {modelId} 407
  is_char_in_model $scplayer {modelId} 425
  is_char_in_model $scplayer {modelId} 609
  is_char_in_any_police_vehicle $scplayer
goto_if_false @R3_2901
$R3_player_car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_in_water $R3_player_car
goto_if_false @R3_2901
if 
  is_char_in_taxi $scplayer
goto_if_false @R3_673
if 
  not is_player_in_shortcut_taxi $player1
goto_if_false @R3_673
if 
  $flag_taxiodd_mission_launched == 0
goto_if_false @R3_673
if 
  $R3_mission_help == 0
goto_if_false @R3_286
if 
  not is_help_message_being_displayed 
goto_if_false @R3_286
print_help 'TTUTOR'
$R3_mission_help = 1

:R3_286
if 
  $controlmode <> 3
goto_if_false @R3_492
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_485

:R3_321
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_447
wait 0
if 
  $onmission == 1
goto_if_false @R3_367
goto @R3_11

:R3_367
if or
  not is_player_playing $player1
  not is_char_in_taxi $scplayer
goto_if_false @R3_395
goto @R3_11

:R3_395
if 
  is_minigame_in_progress 
goto_if_false @R3_415
goto @R3_11

:R3_415
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_440
goto @R3_11

:R3_440
goto @R3_321

:R3_447
print_big 'TAXI_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 121 // Taxi-Driver Sub-Mission
$flag_taxiodd_mission_launched = 1
goto @R3_11

:R3_485
goto @R3_673

:R3_492
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_673

:R3_509
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_635
wait 0
if 
  $onmission == 1
goto_if_false @R3_555
goto @R3_11

:R3_555
if or
  not is_player_playing $player1
  not is_char_in_taxi $scplayer
goto_if_false @R3_583
goto @R3_11

:R3_583
if 
  is_minigame_in_progress 
goto_if_false @R3_603
goto @R3_11

:R3_603
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_628
goto @R3_11

:R3_628
goto @R3_509

:R3_635
print_big 'TAXI_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 121 // Taxi-Driver Sub-Mission
$flag_taxiodd_mission_launched = 1
goto @R3_11

:R3_673
if 
  is_char_in_model $scplayer {modelId} 416
goto_if_false @R3_1138
if 
  $flag_player_on_ambulance_mission == 0
goto_if_false @R3_1138
if 
  $R3_mission_help == 0
goto_if_false @R3_759
if 
  not is_help_message_being_displayed 
goto_if_false @R3_759
print_help 'ATUTOR'
$R3_mission_help = 1

:R3_759
if 
  $controlmode <> 3
goto_if_false @R3_961
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_954

:R3_794
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_923
wait 0
if 
  $onmission == 1
goto_if_false @R3_840
goto @R3_11

:R3_840
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @R3_871
goto @R3_11

:R3_871
if 
  is_minigame_in_progress 
goto_if_false @R3_891
goto @R3_11

:R3_891
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_916
goto @R3_11

:R3_916
goto @R3_794

:R3_923
print_big 'AMBUL_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 122 // Paramedic Sub-Mission
goto @R3_11

:R3_954
goto @R3_1138

:R3_961
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1138

:R3_978
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1107
wait 0
if 
  $onmission == 1
goto_if_false @R3_1024
goto @R3_11

:R3_1024
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @R3_1055
goto @R3_11

:R3_1055
if 
  is_minigame_in_progress 
goto_if_false @R3_1075
goto @R3_11

:R3_1075
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1100
goto @R3_11

:R3_1100
goto @R3_978

:R3_1107
print_big 'AMBUL_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 122 // Paramedic Sub-Mission
goto @R3_11

:R3_1138
if 
  is_char_in_model $scplayer {modelId} 407
goto_if_false @R3_1603
if 
  $flag_player_on_fire_mission == 0
goto_if_false @R3_1603
if 
  $R3_mission_help == 0
goto_if_false @R3_1224
if 
  not is_help_message_being_displayed 
goto_if_false @R3_1224
print_help 'FTUTOR'
$R3_mission_help = 1

:R3_1224
if 
  $controlmode <> 3
goto_if_false @R3_1426
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1419

:R3_1259
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1388
wait 0
if 
  $onmission == 1
goto_if_false @R3_1305
goto @R3_11

:R3_1305
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @R3_1336
goto @R3_11

:R3_1336
if 
  is_minigame_in_progress 
goto_if_false @R3_1356
goto @R3_11

:R3_1356
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1381
goto @R3_11

:R3_1381
goto @R3_1259

:R3_1388
print_big 'FIRE_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 123 // Firefighter Sub-Mission
goto @R3_11

:R3_1419
goto @R3_1603

:R3_1426
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1603

:R3_1443
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_1572
wait 0
if 
  $onmission == 1
goto_if_false @R3_1489
goto @R3_11

:R3_1489
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @R3_1520
goto @R3_11

:R3_1520
if 
  is_minigame_in_progress 
goto_if_false @R3_1540
goto @R3_11

:R3_1540
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1565
goto @R3_11

:R3_1565
goto @R3_1443

:R3_1572
print_big 'FIRE_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 123 // Firefighter Sub-Mission
goto @R3_11

:R3_1603
if or
  is_char_in_any_police_vehicle $scplayer
  is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_2269
if 
  $R3_mission_help == 0
goto_if_false @R3_1676
if 
  not is_help_message_being_displayed 
goto_if_false @R3_1676
print_help 'CTUTOR'
$R3_mission_help = 1

:R3_1676
if 
  $controlmode <> 3
goto_if_false @R3_1985
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1978

:R3_1711
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_1863
wait 0
if 
  $onmission == 1
goto_if_false @R3_1757
goto @R3_11

:R3_1757
if 
  not is_player_playing $player1
goto_if_false @R3_1780
goto @R3_11

:R3_1780
if and
  not is_char_in_any_police_vehicle $scplayer
  not is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_1811
goto @R3_11

:R3_1811
if 
  is_minigame_in_progress 
goto_if_false @R3_1831
goto @R3_11

:R3_1831
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_1856
goto @R3_11

:R3_1856
goto @R3_1711

:R3_1863
if 
  is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_1905
print_big 'COP_M3' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_1963

:R3_1905
if 
  is_char_in_model $scplayer {modelId} 415
goto_if_false @R3_1947
print_big 'COP_M2' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_1963

:R3_1947
print_big 'COP_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher

:R3_1963
wait 0
load_and_launch_mission_internal 124 // Vigilante Sub-Mission
goto @R3_11

:R3_1978
goto @R3_2269

:R3_1985
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2269

:R3_2002
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2154
wait 0
if 
  $onmission == 1
goto_if_false @R3_2048
goto @R3_11

:R3_2048
if 
  not is_player_playing $player1
goto_if_false @R3_2071
goto @R3_11

:R3_2071
if and
  not is_char_in_any_police_vehicle $scplayer
  not is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_2102
goto @R3_11

:R3_2102
if 
  is_minigame_in_progress 
goto_if_false @R3_2122
goto @R3_11

:R3_2122
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_2147
goto @R3_11

:R3_2147
goto @R3_2002

:R3_2154
if 
  is_char_in_model $scplayer {modelId} 425
goto_if_false @R3_2196
print_big 'COP_M3' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_2254

:R3_2196
if 
  is_char_in_model $scplayer {modelId} 415
goto_if_false @R3_2238
print_big 'COP_M2' {time} 6000 {style} TextStyle.MiddleSmallerHigher
goto @R3_2254

:R3_2238
print_big 'COP_M' {time} 6000 {style} TextStyle.MiddleSmallerHigher

:R3_2254
wait 0
load_and_launch_mission_internal 124 // Vigilante Sub-Mission
goto @R3_11

:R3_2269
if 
  is_char_in_model $scplayer {modelId} 609
goto_if_false @R3_2901
if 
  $flag_player_on_burglary_mission == 0
goto_if_false @R3_2901
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2388
if 
  $R3_mission_help == 0
goto_if_false @R3_2388
if 
  not is_help_message_being_displayed 
goto_if_false @R3_2388
print_help 'BTUTOR2'
$R3_mission_help = 1

:R3_2388
if 
  $controlmode <> 3
goto_if_false @R3_2657
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_2650
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2634

:R3_2456
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_2585
wait 0
if 
  $onmission == 1
goto_if_false @R3_2502
goto @R3_11

:R3_2502
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 609
goto_if_false @R3_2533
goto @R3_11

:R3_2533
if 
  is_minigame_in_progress 
goto_if_false @R3_2553
goto @R3_11

:R3_2553
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_2578
goto @R3_11

:R3_2578
goto @R3_2456

:R3_2585
draw_oddjob_title_before_fade False
print_big 'BURGLAR' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 125 // Burglary Sub-Mission
$flag_player_on_burglary_mission = 1
goto @R3_11
goto @R3_2650

:R3_2634
print_now 'BURGHEL' {time} 1000 {flag} 1

:R3_2650
goto @R3_2901

:R3_2657
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2901
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @R3_2885

:R3_2707
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_2836
wait 0
if 
  $onmission == 1
goto_if_false @R3_2753
goto @R3_11

:R3_2753
if or
  not is_player_playing $player1
  not is_char_in_model $scplayer {modelId} 609
goto_if_false @R3_2784
goto @R3_11

:R3_2784
if 
  is_minigame_in_progress 
goto_if_false @R3_2804
goto @R3_11

:R3_2804
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_2829
goto @R3_11

:R3_2829
goto @R3_2707

:R3_2836
draw_oddjob_title_before_fade False
print_big 'BURGLAR' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 125 // Burglary Sub-Mission
$flag_player_on_burglary_mission = 1
goto @R3_11
goto @R3_2901

:R3_2885
print_now 'BURGHEL' {time} 1000 {flag} 1

:R3_2901
if 
  $Return_cities_passed > 1
goto_if_false @R3_3455
if or
  is_char_in_model $scplayer {modelId} 537
  is_char_in_model $scplayer {modelId} 538
goto_if_false @R3_3455
$R3_player_car = store_car_char_is_in_no_save $scplayer
if and
  not is_car_in_water $R3_player_car
  not has_train_derailed $R3_player_car
goto_if_false @R3_3455
if 
  $flag_player_on_freight_mission == 0
goto_if_false @R3_3455
if 
  $R3_mission_help == 0
goto_if_false @R3_3042
if 
  not is_help_message_being_displayed 
goto_if_false @R3_3042
print_help 'FTUTORA'
$R3_mission_help = 1

:R3_3042
if 
  $controlmode <> 3
goto_if_false @R3_3261
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3254

:R3_3077
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3232
wait 0
if 
  $onmission == 1
goto_if_false @R3_3123
goto @R3_11

:R3_3123
if 
  not is_player_playing $player1
goto_if_false @R3_3146
goto @R3_11

:R3_3146
if and
  not is_char_in_model $scplayer {modelId} 537
  not is_char_in_model $scplayer {modelId} 538
goto_if_false @R3_3180
goto @R3_11

:R3_3180
if 
  is_minigame_in_progress 
goto_if_false @R3_3200
goto @R3_11

:R3_3200
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3225
goto @R3_11

:R3_3225
goto @R3_3077

:R3_3232
wait 0
load_and_launch_mission_internal 126 // Freight Train Sub-Mission
$been_in_freight_before = 1
goto @R3_11

:R3_3254
goto @R3_3455

:R3_3261
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3455

:R3_3278
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3433
wait 0
if 
  $onmission == 1
goto_if_false @R3_3324
goto @R3_11

:R3_3324
if 
  not is_player_playing $player1
goto_if_false @R3_3347
goto @R3_11

:R3_3347
if and
  not is_char_in_model $scplayer {modelId} 537
  not is_char_in_model $scplayer {modelId} 538
goto_if_false @R3_3381
goto @R3_11

:R3_3381
if 
  is_minigame_in_progress 
goto_if_false @R3_3401
goto @R3_11

:R3_3401
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3426
goto @R3_11

:R3_3426
goto @R3_3278

:R3_3433
wait 0
load_and_launch_mission_internal 126 // Freight Train Sub-Mission
$been_in_freight_before = 1
goto @R3_11

:R3_3455
if 
  is_char_in_model $scplayer {modelId} 575
goto_if_false @R3_3994
$R3_player_car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_in_water $R3_player_car
goto_if_false @R3_3994
if 
  $flag_player_on_pimp_mission == 0
goto_if_false @R3_3994
if 
  $R3_mission_help == 0
goto_if_false @R3_3565
if 
  not is_help_message_being_displayed 
goto_if_false @R3_3565
print_help 'PTUTORA'
$R3_mission_help = 1

:R3_3565
if 
  $controlmode <> 3
goto_if_false @R3_3792
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3785

:R3_3600
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @R3_3747
wait 0
if 
  $onmission == 1
goto_if_false @R3_3646
goto @R3_11

:R3_3646
if 
  not is_player_playing $player1
goto_if_false @R3_3669
goto @R3_11

:R3_3669
if 
  not is_char_in_model $scplayer {modelId} 575
goto_if_false @R3_3695
goto @R3_11

:R3_3695
if 
  is_minigame_in_progress 
goto_if_false @R3_3715
goto @R3_11

:R3_3715
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3740
goto @R3_11

:R3_3740
goto @R3_3600

:R3_3747
print_big 'PIMP' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 127 // Pimping Sub-Mission
$flag_pimping_trigger = 1
goto @R3_11

:R3_3785
goto @R3_3994

:R3_3792
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3994

:R3_3809
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @R3_3956
wait 0
if 
  $onmission == 1
goto_if_false @R3_3855
goto @R3_11

:R3_3855
if 
  not is_player_playing $player1
goto_if_false @R3_3878
goto @R3_11

:R3_3878
if 
  not is_char_in_model $scplayer {modelId} 575
goto_if_false @R3_3904
goto @R3_11

:R3_3904
if 
  is_minigame_in_progress 
goto_if_false @R3_3924
goto @R3_11

:R3_3924
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_3949
goto @R3_11

:R3_3949
goto @R3_3809

:R3_3956
print_big 'PIMP' {time} 6000 {style} TextStyle.MiddleSmallerHigher
wait 0
load_and_launch_mission_internal 127 // Pimping Sub-Mission
$flag_pimping_trigger = 1
goto @R3_11

:R3_3994
goto @R3_4103

:R3_4001
if 
  $R3_mission_help == 1
goto_if_false @R3_4103
clear_this_print 'TTUTOR'
clear_this_print 'ATUTOR'
clear_this_print 'FTUTOR'
clear_this_print 'CTUTOR'
clear_this_print 'BTUTOR2'
clear_this_print 'FTUTORA'
clear_this_print 'PTUTORA'
$R3_mission_help = 0

:R3_4103
goto @R3_11

:R3_4110
wait 70
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @R3_4144
wait 5000
goto @R3_11

:R3_4144
goto @R3_4110

:FRTEXT
script_name 'FRTEXT'
wait 5000
clear_help 
print_help 'FREI_16'
terminate_this_script 

:BLOODR
script_name 'BLOODR'

:BLOODR_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @BLOODR_136
if 
  is_player_playing $player1
goto_if_false @BLOODR_136
if 
  locate_char_on_foot_3d $scplayer {x} $bloodX {y} $bloodY {z} $bloodZ {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @BLOODR_136
if 
  can_player_start_mission $player1
goto_if_false @BLOODR_136
gosub @LITCAS_267
print_big 'STAD_04' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 128 // Arena Mission: Blood Ring

:BLOODR_136
goto @BLOODR_11

:HOTR
script_name 'HOTR'

:HOTR_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @HOTR_199
if 
  is_player_playing $player1
goto_if_false @HOTR_199
if 
  locate_char_on_foot_3d $scplayer {x} $hotringX {y} $hotringY {z} $hotringZ {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @HOTR_199
$stat = get_int_stat StatId.DrivingSkill
if 
  $stat > 199
goto_if_false @HOTR_183
if 
  can_player_start_mission $player1
goto_if_false @HOTR_176
print_big 'STAD_03' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
set_var_int_to_constant $race_selection = 25
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track

:HOTR_176
goto @HOTR_199

:HOTR_183
print_now 'STATCAR' {time} 500 {flag} 1

:HOTR_199
goto @HOTR_11

:KICKS
script_name 'KICKS'

:KICKS_11
wait $mission_trigger_wait_time
if 
  $onmission == 0
goto_if_false @KICKS_271
if 
  is_player_playing $player1
goto_if_false @KICKS_271
if 
  locate_char_on_foot_3d $scplayer {x} $kickX {y} $kickY {z} $kickZ {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} False
goto_if_false @KICKS_271
if 
  can_player_start_mission $player1
goto_if_false @KICKS_271
$weekday = get_current_day_of_week 
if or
  $weekday == 0
  $weekday == 2
  $weekday == 4
goto_if_false @KICKS_243
$stat = get_int_stat StatId.BikeSkill
if 
  $stat > 199
goto_if_false @KICKS_220
print_big 'STAD_01' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
set_var_int_to_constant $race_selection = 26
$show_race_selection = 0
load_and_launch_mission_internal 35 // Race Tournament / 8-track / Dirt Track
goto @KICKS_236

:KICKS_220
print_now 'STATBIK' {time} 500 {flag} 1

:KICKS_236
goto @KICKS_271

:KICKS_243
print_big 'STAD_02' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
load_and_launch_mission_internal 129 // Arena Mission: Kickstart

:KICKS_271
goto @KICKS_11

:TRI
script_name 'TRI'

:TRI_11
wait 0
if 
  $onmission == 0
goto_if_false @TRI_619
if 
  is_player_playing $player1
goto_if_false @TRI_619
if or
  $weekday == 1
  $weekday == 7
goto_if_false @TRI_619
if or
  locate_char_on_foot_3d $scplayer {x} 181.0 {y} -1878.0 {z} 2.0 {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} True
  locate_char_on_foot_3d $scplayer {x} 2135.4319 {y} -67.9555 {z} 1.8 {xRadius} 1.4 {yRadius} 1.8 {zRadius} 1.5 {drawSphere} True
goto_if_false @TRI_544
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed > 1
goto_if_false @TRI_501
$stat_read_skill_temp = get_int_stat StatId.CycleSkill
if 
  $stat_read_skill_temp >= 500
goto_if_false @TRI_458
$stat_stamina_temp = get_int_stat StatId.Stamina
if 
  $stat_stamina_temp >= 500
goto_if_false @TRI_415
if 
  can_player_start_mission $player1
goto_if_false @TRI_408
print_big 'BOTTY' {time} 1000 {style} TextStyle.BottomRight
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @TRI_403
if 
  locate_char_on_foot_3d $scplayer {x} 181.0 {y} -1878.0 {z} 2.0 {xRadius} 20.4 {yRadius} 20.8 {zRadius} 20.5 {drawSphere} False
goto_if_false @TRI_348
$triathalon_selection = 1

:TRI_348
if 
  locate_char_on_foot_3d $scplayer {x} 2135.4319 {y} -67.9555 {z} 20.8 {xRadius} 20.4 {yRadius} 20.8 {zRadius} 20.5 {drawSphere} False
goto_if_false @TRI_403
$triathalon_selection = 2

:TRI_403
load_and_launch_mission_internal 130 // Beat the Cock!

:TRI_408
goto @TRI_451

:TRI_415
if 
  $flag_stamina_skill_help_tri == 0
goto_if_false @TRI_451
print_help 'STASKIL'
$flag_stamina_skill_help_tri = 1

:TRI_451
goto @TRI_494

:TRI_458
if 
  $flag_cycling_skill_help_tri == 0
goto_if_false @TRI_494
print_help 'MTBSKIL'
$flag_cycling_skill_help_tri = 1

:TRI_494
goto @TRI_537

:TRI_501
if 
  $map_opened_tri == 0
goto_if_false @TRI_537
print_help 'NOCOCK'
$map_opened_tri = 1

:TRI_537
goto @TRI_619

:TRI_544
if 
  $flag_cycling_skill_help_tri == 1
goto_if_false @TRI_569
$flag_cycling_skill_help_tri = 0

:TRI_569
if 
  $flag_stamina_skill_help_tri == 1
goto_if_false @TRI_594
$flag_stamina_skill_help_tri = 0

:TRI_594
if 
  $map_opened_tri == 1
goto_if_false @TRI_619
$map_opened_tri = 0

:TRI_619
goto @TRI_11

:ODDVEH
script_name 'ODDVEH'

:ODDVEH_11
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @ODDVEH_1149
if 
  $onmission == 0
goto_if_false @ODDVEH_1149
if 
  is_char_in_any_car $scplayer
goto_if_false @ODDVEH_1114
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @ODDVEH_134
if 
  not locate_char_any_means_3d $scplayer {x} $cour1X {y} $cour1Y {z} $cour1Z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_134
$flag_courier_trigger = 1

:ODDVEH_134
if 
  is_char_in_model $scplayer {modelId} 463
goto_if_false @ODDVEH_202
if 
  not locate_char_any_means_3d $scplayer {x} $cour2X {y} $cour2Y {z} $cour2Z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_202
$flag_courier_trigger = 1

:ODDVEH_202
if 
  is_char_in_model $scplayer {modelId} 462
goto_if_false @ODDVEH_270
if 
  not locate_char_any_means_3d $scplayer {x} $cour3X {y} $cour3Y {z} $cour3Z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_270
$flag_courier_trigger = 1

:ODDVEH_270
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @ODDVEH_335
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_335
print_big 'COUR1' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 131 // Courier
$flag_courier_trigger = 1

:ODDVEH_335
if 
  is_char_in_model $scplayer {modelId} 463
goto_if_false @ODDVEH_400
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_400
print_big 'COUR1' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 131 // Courier
$flag_courier_trigger = 1

:ODDVEH_400
if 
  is_char_in_model $scplayer {modelId} 462
goto_if_false @ODDVEH_465
if 
  $flag_courier_trigger == 0
goto_if_false @ODDVEH_465
print_big 'COUR1' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 131 // Courier
$flag_courier_trigger = 1

:ODDVEH_465
if 
  is_char_in_model $scplayer {modelId} 510
goto_if_false @ODDVEH_533
if 
  not locate_char_any_means_3d $scplayer {x} $mountbX {y} $mountbY {z} $mountbZ {xRadius} 10.5 {yRadius} 10.5 {zRadius} 10.5 {drawSphere} False
goto_if_false @ODDVEH_533
$flag_mtbike_trigger = 1

:ODDVEH_533
if and
  is_char_in_model $scplayer {modelId} 510
  $flag_mtbike_trigger == 0
goto_if_false @ODDVEH_722
clear_prints 
$stat_read_skill_temp = get_int_stat StatId.CycleSkill
if 
  $stat_read_skill_temp >= 400
goto_if_false @ODDVEH_679
$hours, $minutes = get_time_of_day 
if and
  $hours >= 7
  18 > $hours
goto_if_false @ODDVEH_656
print_big 'MOUNTN' {time} 1000 {style} TextStyle.BottomRight
load_and_launch_mission_internal 132 // The Chiliad Challenge
$flag_mtbike_trigger = 1
goto @ODDVEH_672

:ODDVEH_656
print_now 'MTIME4' {time} 1000 {flag} 1

:ODDVEH_672
goto @ODDVEH_715

:ODDVEH_679
if 
  $flag_cycling_skill_help == 0
goto_if_false @ODDVEH_715
print_help 'MTBSKIL'
$flag_cycling_skill_help = 1

:ODDVEH_715
goto @ODDVEH_747

:ODDVEH_722
if 
  $flag_cycling_skill_help == 1
goto_if_false @ODDVEH_747
$flag_cycling_skill_help = 0

:ODDVEH_747
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @ODDVEH_815
if 
  not locate_char_any_means_3d $scplayer {x} $stunt_bmx1_x {y} $stunt_bmx1_y {z} $stunt_bmx1_z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_815
$flag_bmx_trigger = 1

:ODDVEH_815
if and
  is_char_in_model $scplayer {modelId} 481
  $flag_bmx_trigger == 0
goto_if_false @ODDVEH_953
$stat_read_skill_temp = get_int_stat StatId.CycleSkill
if 
  $stat_read_skill_temp >= 200
goto_if_false @ODDVEH_910
print_big 'BMX' {time} 1000 {style} TextStyle.BottomRight
$stunt_course = 0
load_and_launch_mission_internal 133 // BMX / NRG-500 STUNT Mission
$flag_bmx_trigger = 1
goto @ODDVEH_946

:ODDVEH_910
if 
  $flag_cycling_skill_help2 == 0
goto_if_false @ODDVEH_946
print_help 'MTBSKI2'
$flag_cycling_skill_help2 = 1

:ODDVEH_946
goto @ODDVEH_978

:ODDVEH_953
if 
  $flag_cycling_skill_help2 == 1
goto_if_false @ODDVEH_978
$flag_cycling_skill_help2 = 0

:ODDVEH_978
if 
  is_char_in_model $scplayer {modelId} 522
goto_if_false @ODDVEH_1046
if 
  not locate_char_any_means_3d $scplayer {x} $stunt_nrg500_x {y} $stunt_nrg500_y {z} $stunt_nrg500_z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ODDVEH_1046
$flag_nrg500_trigger = 1

:ODDVEH_1046
if and
  is_char_in_model $scplayer {modelId} 522
  $flag_nrg500_trigger == 0
goto_if_false @ODDVEH_1107
print_big 'NRG500' {time} 1000 {style} TextStyle.BottomRight
$stunt_course = 1
load_and_launch_mission_internal 133 // BMX / NRG-500 STUNT Mission
$flag_nrg500_trigger = 1

:ODDVEH_1107
goto @ODDVEH_1149

:ODDVEH_1114
$flag_hhiker_trigger = 0
$flag_courier_trigger = 0
$flag_mtbike_trigger = 0
$flag_bmx_trigger = 0
$flag_nrg500_trigger = 0

:ODDVEH_1149
goto @ODDVEH_11

:BUY1
script_name 'BUY1'
$save_houseprice = 50000
remove_pickup $save_housepickup[0]
$save_housepickup[0] = create_forsale_property_pickup $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {price} $save_houseprice {message} 'PROP_3'

:BUY1_52
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @BUY1_135
if 
  $onmission == 0
goto_if_false @BUY1_135
if 
  has_pickup_been_collected $save_housepickup[0]
goto_if_false @BUY1_135
set_var_int_to_constant $buying_property_switch = 0
report_mission_audio_event_at_position $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
terminate_this_script 

:BUY1_135
goto @BUY1_52

:BUY2
script_name 'BUY2'
$1654 = 30000
remove_pickup $save_housepickup[1]
$save_housepickup[1] = create_forsale_property_pickup $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {price} $1654 {message} 'PROP_3'

:BUY2_50
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @BUY2_133
if 
  $onmission == 0
goto_if_false @BUY2_133
if 
  has_pickup_been_collected $save_housepickup[1]
goto_if_false @BUY2_133
set_var_int_to_constant $buying_property_switch = 1
report_mission_audio_event_at_position $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
terminate_this_script 

:BUY2_133
goto @BUY2_50

:BUY3
script_name 'BUY3'
$1655 = 80000
remove_pickup $save_housepickup[2]
$save_housepickup[2] = create_forsale_property_pickup $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {price} $1655 {message} 'PROP_3'

:BUY3_52
wait $mission_trigger_wait_time
if 
  is_player_playing $player1
goto_if_false @BUY3_135
if 
  $onmission == 0
goto_if_false @BUY3_135
if 
  has_pickup_been_collected $save_housepickup[2]
goto_if_false @BUY3_135
set_var_int_to_constant $buying_property_switch = 2
report_mission_audio_event_at_position $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
terminate_this_script 

:BUY3_135
goto @BUY3_52

:BUY_PRO
script_name 'BUY_PRO'

:BUY_PRO_11
wait 0
if 
  is_player_playing $player1
goto_if_false @BUY_PRO_145
if 
  $onmission == 0
goto_if_false @BUY_PRO_145
if 
  $already_bought_house($save_house_index,32i) == 0
goto_if_false @BUY_PRO_145
if 
  has_pickup_been_collected $save_housepickup($save_house_index,32i)
goto_if_false @BUY_PRO_145
set_var_int_to_var_int $buying_property_switch = $prorerty_switch($save_house_index,32i)
report_mission_audio_event_at_position $propertyX($save_house_index,32f) {y} $propertyY($save_house_index,32f) {z} $propertyZ($save_house_index,32f) {soundId} ScriptSound.SoundPropertyPurchased
load_and_launch_mission_internal 134 // Buy Properties Mission
$already_bought_house($save_house_index,32i) = 1

:BUY_PRO_145
$save_house_index += 1
if 
  $save_house_index >= 32
goto_if_false @BUY_PRO_177
$save_house_index = 3

:BUY_PRO_177
goto @BUY_PRO_11

:IMPND_L
script_name 'IMPND_L'

:IMPND_L_11
wait 100
if 
  is_player_playing $player1
goto_if_false @IMPND_L_706
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_L_189
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_189
if 
  locate_char_any_means_3d $scplayer {x} 1579.425 {y} -1636.463 {z} 14.5812 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_160
$impound_area = 1
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_153
start_new_streamed_script 71

:IMPND_L_153
goto @IMPND_L_189

:IMPND_L_160
if 
  $impound_area == 1
goto_if_false @IMPND_L_189
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_189
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_L_390
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_390
if 
  locate_char_any_means_3d $scplayer {x} -1624.771 {y} 679.6637 {z} 8.569 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_336
if 
  $tlf_underway == 0
goto_if_false @IMPND_L_329
$impound_area = 2
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_329
start_new_streamed_script 71

:IMPND_L_329
goto @IMPND_L_390

:IMPND_L_336
if 
  $tlf_underway == 2
goto_if_false @IMPND_L_361
$tlf_underway = 0

:IMPND_L_361
if 
  $impound_area == 2
goto_if_false @IMPND_L_390
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_390
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_L_548
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_548
if 
  locate_char_any_means_3d $scplayer {x} -1624.771 {y} 679.6637 {z} 8.569 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_519
$impound_area = 2
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_512
start_new_streamed_script 71

:IMPND_L_512
goto @IMPND_L_548

:IMPND_L_519
if 
  $impound_area == 2
goto_if_false @IMPND_L_548
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_548
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_L_706
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 71
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @IMPND_L_706
if 
  locate_char_any_means_3d $scplayer {x} 2284.592 {y} 2466.8379 {z} 12.2306 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_L_677
$impound_area = 3
stream_script 71
if 
  has_streamed_script_loaded 71
goto_if_false @IMPND_L_670
start_new_streamed_script 71

:IMPND_L_670
goto @IMPND_L_706

:IMPND_L_677
if 
  $impound_area == 3
goto_if_false @IMPND_L_706
mark_streamed_script_as_no_longer_needed 71
$impound_area = 0

:IMPND_L_706
goto @IMPND_L_11

:VALET_L
script_name 'VALET_L'

:VALET_L_11
wait 0
if 
  $valet_unlocked == 1
goto_if_false @VALET_L_197
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @VALET_L_197
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 72
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @VALET_L_197
if 
  is_player_playing $player1
goto_if_false @VALET_L_197
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1893.4189 {leftBottomY} 1119.2271 {rightTopX} -1617.915 {rightTopY} 828.85 {drawSphere} False
goto_if_false @VALET_L_168
$val_Area = 2
stream_script 72
if 
  has_streamed_script_loaded 72
goto_if_false @VALET_L_161
start_new_streamed_script 72

:VALET_L_161
goto @VALET_L_197

:VALET_L_168
if 
  $val_Area == 2
goto_if_false @VALET_L_197
mark_streamed_script_as_no_longer_needed 72
$val_Area = 0

:VALET_L_197
goto @VALET_L_11

:TRAINSL
script_name 'TRAINSL'

:TRAINSL_11
wait 0
if 
  is_player_playing $player1
goto_if_false @TRAINSL_115
if 
  is_char_in_any_car $scplayer
goto_if_false @TRAINSL_115
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINSL_115
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 33
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @TRAINSL_115
stream_script 33
if 
  has_streamed_script_loaded 33
goto_if_false @TRAINSL_115
start_new_streamed_script 33

:TRAINSL_115
goto @TRAINSL_11

:ADPLANE
script_name 'ADPLANE'

:ADPLANE_11
wait 0
if 
  is_player_playing $player1
goto_if_false @ADPLANE_964
if 
  $onmission == 0
goto_if_false @ADPLANE_964
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @ADPLANE_324
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ADPLANE_287
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 32
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_280
if 
  $created_marker == 0
goto_if_false @ADPLANE_157
$airport_marker = create_user_3d_marker 1685.7 {y} -2238.8999 {z} 14.0 {color} HudColors.Yellow
$created_marker = 1

:ADPLANE_157
if 
  can_player_start_mission $player1
goto_if_false @ADPLANE_280
if 
  locate_char_on_foot_3d $scplayer {x} 1685.7 {y} -2238.8999 {z} 12.5 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @ADPLANE_246
set_player_control $player1 {state} False
gosub @LITCAS_267
stream_script 32
$flag_dozer_passed_1stime = 1

:ADPLANE_246
if and
  has_streamed_script_loaded 32
  $flag_dozer_passed_1stime == 1
goto_if_false @ADPLANE_280
start_new_streamed_script 32
$flag_dozer_passed_1stime = 0

:ADPLANE_280
goto @ADPLANE_317

:ADPLANE_287
if 
  $created_marker == 1
goto_if_false @ADPLANE_317
remove_user_3d_marker $airport_marker
$created_marker = 0

:ADPLANE_317
goto @ADPLANE_354

:ADPLANE_324
if 
  $created_marker == 1
goto_if_false @ADPLANE_354
remove_user_3d_marker $airport_marker
$created_marker = 0

:ADPLANE_354
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @ADPLANE_629
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ADPLANE_592
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 32
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_585
if 
  $793 == 0
goto_if_false @ADPLANE_462
$796 = create_user_3d_marker -1421.5 {y} -287.2 {z} 14.6 {color} HudColors.Yellow
$793 = 1

:ADPLANE_462
if 
  can_player_start_mission $player1
goto_if_false @ADPLANE_585
if 
  locate_char_on_foot_3d $scplayer {x} -1421.5 {y} -287.2 {z} 14.6 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @ADPLANE_551
set_player_control $player1 {state} False
gosub @LITCAS_267
stream_script 32
$flag_dozer_passed_1stime = 1

:ADPLANE_551
if and
  has_streamed_script_loaded 32
  $flag_dozer_passed_1stime == 1
goto_if_false @ADPLANE_585
start_new_streamed_script 32
$flag_dozer_passed_1stime = 0

:ADPLANE_585
goto @ADPLANE_622

:ADPLANE_592
if 
  $793 == 1
goto_if_false @ADPLANE_622
remove_user_3d_marker $796
$793 = 0

:ADPLANE_622
goto @ADPLANE_659

:ADPLANE_629
if 
  $793 == 1
goto_if_false @ADPLANE_659
remove_user_3d_marker $796
$793 = 0

:ADPLANE_659
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @ADPLANE_934
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ADPLANE_897
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 32
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @ADPLANE_890
if 
  $794 == 0
goto_if_false @ADPLANE_767
$797 = create_user_3d_marker 1663.0 {y} 1423.6 {z} 11.2 {color} HudColors.Yellow
$794 = 1

:ADPLANE_767
if 
  can_player_start_mission $player1
goto_if_false @ADPLANE_890
if 
  locate_char_on_foot_3d $scplayer {x} 1663.0 {y} 1423.6 {z} 11.2 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @ADPLANE_856
set_player_control $player1 {state} False
gosub @LITCAS_267
stream_script 32
$flag_dozer_passed_1stime = 1

:ADPLANE_856
if and
  has_streamed_script_loaded 32
  $flag_dozer_passed_1stime == 1
goto_if_false @ADPLANE_890
start_new_streamed_script 32
$flag_dozer_passed_1stime = 0

:ADPLANE_890
goto @ADPLANE_927

:ADPLANE_897
if 
  $794 == 1
goto_if_false @ADPLANE_927
remove_user_3d_marker $797
$794 = 0

:ADPLANE_927
goto @ADPLANE_964

:ADPLANE_934
if 
  $794 == 1
goto_if_false @ADPLANE_964
remove_user_3d_marker $797
$794 = 0

:ADPLANE_964
goto @ADPLANE_11

:COLLS
script_name 'COLLS'

:COLLS_11
wait 3000
$Return_progress_Percentage = get_progress_percentage 
if 
  $returned_oysters_flag == 0
goto_if_false @COLLS_285
$Returned_oysters = get_int_stat StatId.OystersCollected
if 
  $Returned_oysters == 50
goto_if_false @COLLS_285
play_mission_passed_tune 2
player_made_progress 1
set_int_stat StatId.UnderwaterBreathStamina {value} 1000
if 
  0 >= $iGFLikesPlayer[4]
goto_if_false @COLLS_106
$iGFLikesPlayer[4] = 45

:COLLS_106
if 
  0 >= $iGFLikesPlayer[1]
goto_if_false @COLLS_131
$iGFLikesPlayer[1] = 45

:COLLS_131
if 
  0 >= $iGFLikesPlayer[3]
goto_if_false @COLLS_156
$iGFLikesPlayer[3] = 45

:COLLS_156
if 
  0 >= $iGFLikesPlayer[2]
goto_if_false @COLLS_181
$iGFLikesPlayer[2] = 45

:COLLS_181
$iGFDesiredSexAppeal[0] = -100
$iGFDesiredSexAppeal[1] = -100
$iGFDesiredSexAppeal[3] = -100
$iGFDesiredSexAppeal[2] = -100
$iGFDesiredSexAppeal[4] = -100
$iGFDesiredSexAppeal[5] = -100
$iGFSelfRespect[0] = 1
$iGFSelfRespect[1] = 1
$iGFSelfRespect[3] = 1
$iGFSelfRespect[2] = 1
$iGFSelfRespect[4] = 1
$iGFSelfRespect[5] = 1
clear_help 
print_help 'OYST100'
$returned_oysters_flag = 1

:COLLS_285
if 
  $flag_returned_shoehorses == 0
goto_if_false @COLLS_465
$Returned_shoehorses = get_int_stat StatId.HorseshoesCollected
if 
  $Returned_shoehorses == 50
goto_if_false @COLLS_465
play_mission_passed_tune 2
player_made_progress 1
$all_horse_pickup1 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2021.879 {y} 1001.467 {z} 10.3203
$all_horse_pickup2 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2025.286 {y} 1001.496 {z} 10.3203
$all_horse_pickup3 = create_pickup_with_ammo 351 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2021.327 {y} 1013.349 {z} 10.3203
$all_horse_pickup4 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2023.775 {y} 1013.527 {z} 10.5203
clear_help 
print_help 'LUCK100'
$flag_returned_shoehorses = 1

:COLLS_465
if 
  $flag_returned_snapshots == 0
goto_if_false @COLLS_645
$Returned_snapshots = get_int_stat StatId.SnapshotsTaken
if 
  $Returned_snapshots == 50
goto_if_false @COLLS_645
play_mission_passed_tune 2
player_made_progress 1
$all_photos_pickup1 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -2035.7729 {y} 139.4337 {z} 28.3359
$all_photos_pickup2 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} -2038.4301 {y} 139.6281 {z} 28.3359
$all_photos_pickup3 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} -2038.6639 {y} 137.4694 {z} 28.3359
$all_photos_pickup4 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} -2035.474 {y} 137.2511 {z} 28.3359
clear_help 
print_help 'FOTO100'
$flag_returned_snapshots = 1

:COLLS_645
if 
  $flag_returned_tags == 0
goto_if_false @COLLS_832
$Returned_tags = find_number_tags_tagged 
if 
  $Returned_tags == 100
goto_if_false @COLLS_832
play_mission_passed_tune 2
player_made_progress 1
set_gang_weapons GangType.Grove {weaponType1} WeaponType.DesertEagle {weaponType2} WeaponType.Mp5 {weaponType3} WeaponType.Knife
$all_tags_pickup1 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2499.3899 {y} -1707.463 {z} 1014.25
$all_tags_pickup2 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 120 {x} 2499.5139 {y} -1709.64 {z} 1014.25
$all_tags_pickup3 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2493.491 {y} -1708.2371 {z} 1014.932
$all_tags_pickup4 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2493.553 {y} -1706.863 {z} 1015.132
clear_help 
print_help 'TAG_100'
$flag_returned_tags = 1

:COLLS_832
if 
  $game_complete == 0
goto_if_false @COLLS_994
if 
  $Return_progress_Percentage >= 100.0
goto_if_false @COLLS_994
if 
  is_player_playing $player1
goto_if_false @COLLS_994
switch_car_generator $tank_gen1 {amount} 101
switch_car_generator $hyfra_gen1 {amount} 101
add_score $player1 {money} 1000000
set_int_stat StatId.UnderwaterBreathStamina {value} 1000
set_int_stat StatId.Stamina {value} 1000
set_int_stat StatId.SexAppeal {value} 1000
set_int_stat StatId.SexAppealClothes {value} 1000
set_int_stat StatId.Respect {value} 1000
set_int_stat StatId.RespectGirlfriend {value} 1000
set_int_stat StatId.RespectClothes {value} 1000
set_int_stat StatId.CycleSkill {value} 1000
wait 2000
clear_help 
print_help 'GAME100'
$game_complete = 1

:COLLS_994
goto @COLLS_11

:TCASH
script_name 'TCASH'

:TCASH_11
wait 20000
if 
  $terminted_territory_pickup == 1
goto_if_false @TCASH_48
remove_pickup $territory_pickup
$terminted_territory_pickup = 0
terminate_this_script 

:TCASH_48
$player_territory_owned = get_territory_under_control_percentage 
if 
  $Return_cities_passed > 1
goto_if_false @TCASH_93
set_var_int_to_var_int $territory_cash = $player_territory_owned
$territory_cash *= 100
goto @TCASH_108

:TCASH_93
set_var_int_to_var_int $territory_cash = $player_territory_owned
$territory_cash *= 50

:TCASH_108
update_pickup_money_per_day $territory_pickup {value} $territory_cash
goto @TCASH_11

:KEYCARD
$millies_like_stat = get_int_stat StatId.GirlfriendMillie
if 
  $millies_like_stat >= 35
goto_if_false @KEYCARD_51
$millies_double_ender = create_pickup 321 {pickupType} PickupType.Once {x} 345.2063 {y} 308.9788 {z} 998.6484

:KEYCARD_51
set_closest_entry_exit_flag 345.5621 {y} 306.2212 {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$millie_marker = create_user_3d_marker 2037.349 {y} 2722.071 {z} 12.0281 {color} HudColors.Yellow
$822 = create_user_3d_marker 343.9969 {y} 305.104 {z} 999.6557 {color} HudColors.Yellow
script_name 'KEYCARD'

:KEYCARD_128
wait 0
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 0
goto_if_false @KEYCARD_169
$not_entered_millies_house = 0
goto @KEYCARD_176

:KEYCARD_169
$not_entered_millies_house = 1

:KEYCARD_176
if 
  is_player_playing $player1
goto_if_false @KEYCARD_630
if 
  $not_entered_millies_house == 0
goto_if_false @KEYCARD_421
if 
  locate_char_on_foot_3d $scplayer {x} 2037.349 {y} 2722.071 {z} 9.8281 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @KEYCARD_414
set_player_control $player1 {state} False
gosub @LITCAS_267
set_area_visible 6
request_collision 345.5621 {y} 306.2212
load_scene 345.5621 {y} 306.2212 {z} 998.1484
set_extra_colours 1 {fade} False
set_player_is_in_stadium True
if 
  is_player_playing $player1
goto_if_false @KEYCARD_372
set_char_area_visible $scplayer {areaId} 6
set_char_coordinates $scplayer {x} 345.5621 {y} 306.2212 {z} 998.4484
set_char_heading $scplayer {heading} 260.0
set_camera_behind_player 
restore_camera_jumpcut 

:KEYCARD_372
wait 1000
do_fade 500 {direction} Fade.In
if 
  is_player_playing $player1
goto_if_false @KEYCARD_407
set_player_control $player1 {state} True

:KEYCARD_407
$not_entered_millies_house = 1

:KEYCARD_414
goto @KEYCARD_623

:KEYCARD_421
if 
  locate_char_on_foot_3d $scplayer {x} 343.9969 {y} 305.104 {z} 998.1557 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @KEYCARD_623
set_player_control $player1 {state} False
gosub @LITCAS_267
set_area_visible 0
request_collision 2037.541 {y} 2727.687
load_scene 2037.541 {y} 2727.687 {z} 9.8281
clear_extra_colours False
set_player_is_in_stadium False
if 
  is_player_playing $player1
goto_if_false @KEYCARD_581
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates $scplayer {x} 2037.541 {y} 2727.687 {z} 9.8281
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
restore_camera_jumpcut 

:KEYCARD_581
wait 1000
do_fade 500 {direction} Fade.In
if 
  is_player_playing $player1
goto_if_false @KEYCARD_616
set_player_control $player1 {state} True

:KEYCARD_616
$not_entered_millies_house = 0

:KEYCARD_623
goto @KEYCARD_634

:KEYCARD_630
set_player_is_in_stadium False

:KEYCARD_634
if 
  has_pickup_been_collected $millies_keycard_pickup
goto_if_false @KEYCARD_703
if 
  $millies_keycard_pickup_flag == 0
goto_if_false @KEYCARD_703
print_now 'GOTKEY' {time} 6000 {flag} 1
remove_blip $Thekeycard_contact_blip
$keycard_aquired_from_millie = 1
$millies_keycard_pickup_flag = 1

:KEYCARD_703
$main_visible_area = get_area_visible 
if and
  $millies_keycard_pickup_flag == 1
  $main_visible_area == 0
goto_if_false @KEYCARD_745
remove_user_3d_marker $millie_marker
remove_user_3d_marker $822
terminate_this_script 

:KEYCARD_745
goto @KEYCARD_128

:PSAVE1
script_name 'PSAVE1'
$number_of_save_icons = 13

:PSAVE1_18
wait 0
if 
  is_player_playing $player1
goto_if_false @PSAVE1_824
if 
  $onmission == 0
goto_if_false @PSAVE1_759
if and
  $flag_on_courier_mission == 0
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @PSAVE1_720
if 
  $created_save_blips == 0
goto_if_false @PSAVE1_534
gosub @PSAVE1_831
$grove_save_pickup[0] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[0] {y} $save_pickupY[0] {z} $save_pickupZ[0]
$grove_save_pickup[1] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[1] {y} $save_pickupY[1] {z} $save_pickupZ[1]
$grove_save_pickup[2] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[2] {y} $save_pickupY[2] {z} $save_pickupZ[2]
$grove_save_pickup[3] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[3] {y} $save_pickupY[3] {z} $save_pickupZ[3]
$grove_save_pickup[4] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[4] {y} $save_pickupY[4] {z} $save_pickupZ[4]
$grove_save_pickup[5] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[5] {y} $save_pickupY[5] {z} $save_pickupZ[5]
$grove_save_pickup[6] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[6] {y} $save_pickupY[6] {z} $save_pickupZ[6]
$grove_save_pickup[7] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[7] {y} $save_pickupY[7] {z} $save_pickupZ[7]
$grove_save_pickup[8] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[8] {y} $save_pickupY[8] {z} $save_pickupZ[8]
$grove_save_pickup[9] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[9] {y} $save_pickupY[9] {z} $save_pickupZ[9]
$grove_save_pickup[10] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[10] {y} $save_pickupY[10] {z} $save_pickupZ[10]
$grove_save_pickup[11] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[11] {y} $save_pickupY[11] {z} $save_pickupZ[11]
$grove_save_pickup[12] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[12] {y} $save_pickupY[12] {z} $save_pickupZ[12]
if 
  $number_of_save_icons >= 14
goto_if_false @PSAVE1_383
$grove_save_pickup[13] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[13] {y} $save_pickupY[13] {z} $save_pickupZ[13]

:PSAVE1_383
if 
  $number_of_save_icons >= 15
goto_if_false @PSAVE1_419
$grove_save_pickup[14] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[14] {y} $save_pickupY[14] {z} $save_pickupZ[14]

:PSAVE1_419
if 
  $number_of_save_icons >= 16
goto_if_false @PSAVE1_455
$grove_save_pickup[15] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[15] {y} $save_pickupY[15] {z} $save_pickupZ[15]

:PSAVE1_455
if 
  $number_of_save_icons >= 17
goto_if_false @PSAVE1_491
$grove_save_pickup[16] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[16] {y} $save_pickupY[16] {z} $save_pickupZ[16]

:PSAVE1_491
if 
  $number_of_save_icons >= 18
goto_if_false @PSAVE1_527
$grove_save_pickup[17] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[17] {y} $save_pickupY[17] {z} $save_pickupZ[17]

:PSAVE1_527
$created_save_blips = 1

:PSAVE1_534
if 
  has_pickup_been_collected $grove_save_pickup($save_index,18i)
goto_if_false @PSAVE1_713
gosub @PSAVE1_923
if 
  is_player_playing $player1
goto_if_false @PSAVE1_699
remove_pickup $grove_save_pickup($save_index,18i)
create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX($save_index,18f) {y} $save_pickupY($save_index,18f) {z} $save_pickupZ($save_index,18f) {var_handle} $grove_save_pickup($save_index,18i)
clear_area $save_playerX($save_index,18f) {y} $save_playerY($save_index,18f) {z} $save_playerZ($save_index,18f) {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} $save_playerX($save_index,18f) {y} $save_playerY($save_index,18f) {z} $save_playerZ($save_index,18f)
set_char_heading $scplayer {heading} $save_playerH($save_index,18f)
wait 0
do_fade 1000 {direction} Fade.In

:PSAVE1_699
gosub @PSAVE1_1003
$created_save_blips = 0

:PSAVE1_713
goto @PSAVE1_752

:PSAVE1_720
if 
  $created_save_blips == 1
goto_if_false @PSAVE1_752
gosub @PSAVE1_831
$created_save_blips = 0

:PSAVE1_752
goto @PSAVE1_791

:PSAVE1_759
if 
  $created_save_blips == 1
goto_if_false @PSAVE1_791
gosub @PSAVE1_831
$created_save_blips = 0

:PSAVE1_791
$save_index += 1
if 
  is_int_var_greater_or_equal_to_int_var $save_index >= $number_of_save_icons
goto_if_false @PSAVE1_824
$save_index = 0

:PSAVE1_824
goto @PSAVE1_18

:PSAVE1_831
remove_pickup $grove_save_pickup[0]
remove_pickup $grove_save_pickup[1]
remove_pickup $grove_save_pickup[2]
remove_pickup $grove_save_pickup[3]
remove_pickup $grove_save_pickup[4]
remove_pickup $grove_save_pickup[5]
remove_pickup $grove_save_pickup[6]
remove_pickup $grove_save_pickup[7]
remove_pickup $grove_save_pickup[8]
remove_pickup $grove_save_pickup[9]
remove_pickup $grove_save_pickup[10]
remove_pickup $grove_save_pickup[11]
remove_pickup $grove_save_pickup[12]
remove_pickup $grove_save_pickup[13]
remove_pickup $grove_save_pickup[14]
remove_pickup $grove_save_pickup[15]
remove_pickup $grove_save_pickup[16]
remove_pickup $grove_save_pickup[17]
return 

:PSAVE1_923
$onmission = 1
set_player_control $player1 {state} False
activate_save_menu 

:PSAVE1_939
if 
  not has_save_game_finished 
goto_if_false @PSAVE1_963
wait 0
goto @PSAVE1_939

:PSAVE1_963
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1001
set_player_control $player1 {state} False

:PSAVE1_1001
return 

:PSAVE1_1003
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1023
restore_camera_jumpcut 
set_camera_behind_player 

:PSAVE1_1023
wait 500
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1058
set_player_control $player1 {state} True
$onmission = 0

:PSAVE1_1058
return 

:PSAVE1_1060
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:PSAVE1_1075
if 
  get_fading_status 
goto_if_false @PSAVE1_1103
wait 0
clear_prints 
clear_help 
goto @PSAVE1_1075

:PSAVE1_1103
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1138
do_fade 0 {direction} Fade.Out
restore_camera_jumpcut 
clear_char_tasks $scplayer
do_fade 0 {direction} Fade.Out

:PSAVE1_1138
return 

:PSAVE1_1140
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1318
clear_help 
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2503.6011 {y} -1676.787 {z} 13.9236 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2503.26 {y} -1677.718 {z} 14.0548 {switchStyle} SwitchType.JumpCut
clear_area 2495.365 {y} -1690.766 {z} 13.7734 {radius} 1.0 {clearParticles} True
clear_area 2503.26 {y} -1677.718 {z} 14.0548 {radius} 2.0 {clearParticles} True
clear_area $introX {y} $introY {z} $introZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2495.365 {y} -1690.766 {z} 13.7734 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1318
return 

:PSAVE1_1320
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1496
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2512.2329 {y} -1673.532 {z} 12.6635 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.1389 {y} -1673.825 {z} 12.9696 {switchStyle} SwitchType.JumpCut
clear_area 2513.1389 {y} -1673.825 {z} 12.9696 {radius} 2.0 {clearParticles} True
clear_area 2521.3501 {y} -1678.83 {z} 14.32 {radius} 1.0 {clearParticles} True
clear_area $sweetX {y} $sweetY {z} $sweetZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2521.3501 {y} -1678.83 {z} 14.32 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1496
return 

:PSAVE1_1498
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1674
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2451.1479 {y} -1677.786 {z} 16.3581 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2451.564 {y} -1678.677 {z} 16.1721 {switchStyle} SwitchType.JumpCut
clear_area 2451.564 {y} -1678.677 {z} 16.1721 {radius} 2.0 {clearParticles} True
clear_area 2459.4399 {y} -1691.58 {z} 12.58 {radius} 1.0 {clearParticles} True
clear_area $ryderX {y} $ryderY {z} $ryderZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2459.4399 {y} -1691.58 {z} 12.58 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1674
return 

:PSAVE1_1676
if 
  is_player_playing $player1
goto_if_false @PSAVE1_1834
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2075.7 {y} -1687.8781 {z} 16.0883 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2074.9839 {y} -1688.556 {z} 15.9215 {switchStyle} SwitchType.JumpCut
clear_area 2065.3999 {y} -1703.4 {z} 13.1 {radius} 1.0 {clearParticles} True
clear_area 2074.9839 {y} -1688.556 {z} 15.9215 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2065.3999 {y} -1703.4 {z} 13.1 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_1834
return 

:PSAVE1_1836
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2012
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1054.645 {y} -1312.281 {z} 14.9353 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1054.271 {y} -1313.2 {z} 15.0617 {switchStyle} SwitchType.JumpCut
clear_area 1038.04 {y} -1339.23 {z} 12.55 {radius} 1.0 {clearParticles} True
clear_area 1054.271 {y} -1313.2 {z} 15.0617 {radius} 2.0 {clearParticles} True
clear_area $crashX {y} $crashY {z} $crashZ {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1038.04 {y} -1339.23 {z} 12.55 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2012
return 

:PSAVE1_2014
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2172
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 825.1696 {y} -1636.572 {z} 23.1761 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 824.351 {y} -1636.051 {z} 22.9332 {switchStyle} SwitchType.JumpCut
clear_area 793.59 {y} -1625.0699 {z} 12.38 {radius} 1.0 {clearParticles} True
clear_area 824.351 {y} -1636.051 {z} 22.9332 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 793.59 {y} -1625.0699 {z} 12.38 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2172
return 

:PSAVE1_2174
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2332
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2486.8479 {y} -1660.327 {z} 12.5441 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2486.8459 {y} -1659.363 {z} 12.8073 {switchStyle} SwitchType.JumpCut
clear_area 2486.9399 {y} -1646.76 {z} 13.07 {radius} 1.0 {clearParticles} True
clear_area 2486.8459 {y} -1659.363 {z} 12.8073 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2486.9399 {y} -1646.76 {z} 13.07 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2332
return 

:PSAVE1_2334
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2443
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1792.877 {y} -2105.3679 {z} 17.6519 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.152 {y} -2106.301 {z} 17.4194 {switchStyle} SwitchType.JumpCut
clear_area 1793.152 {y} -2106.301 {z} 17.4194 {radius} 2.0 {clearParticles} True
gosub @PSAVE1_1060

:PSAVE1_2443
return 

:PSAVE1_2445
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2603
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2187.8701 {y} -2269.8081 {z} 29.4158 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2188.376 {y} -2269.021 {z} 29.7703 {switchStyle} SwitchType.JumpCut
clear_area -2194.3711 {y} -2256.498 {z} 29.6841 {radius} 1.0 {clearParticles} True
clear_area -2188.376 {y} -2269.021 {z} 29.7703 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2194.3711 {y} -2256.498 {z} 29.6841 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2603
return 

:PSAVE1_2605
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2763
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -919.0773 {y} -1715.624 {z} 78.4517 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -920.0563 {y} -1715.824 {z} 78.4112 {switchStyle} SwitchType.JumpCut
clear_area -932.2975 {y} -1718.891 {z} 76.5703 {radius} 1.0 {clearParticles} True
clear_area -920.0563 {y} -1715.824 {z} 78.4112 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -932.2975 {y} -1718.891 {z} 76.5703 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2763
return 

:PSAVE1_2765
if 
  is_player_playing $player1
goto_if_false @PSAVE1_2923
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2010.974 {y} 154.9329 {z} 33.4883 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2011.9659 {y} 154.9767 {z} 33.3685 {switchStyle} SwitchType.JumpCut
clear_area -2034.559 {y} 148.8178 {z} 27.8359 {radius} 1.0 {clearParticles} True
clear_area -2011.9659 {y} 154.9767 {z} 33.3685 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2034.559 {y} 148.8178 {z} 27.8359 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_2923
return 

:PSAVE1_2925
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3083
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2031.359 {y} 196.2776 {z} 34.812 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2031.639 {y} 195.3477 {z} 34.5735 {switchStyle} SwitchType.JumpCut
clear_area -2038.51 {y} 178.4871 {z} 27.8359 {radius} 1.0 {clearParticles} True
clear_area -2031.639 {y} 195.3477 {z} 34.5735 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2038.51 {y} 178.4871 {z} 27.8359 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3083
return 

:PSAVE1_3085
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3243
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2129.186 {y} 640.2543 {z} 72.0002 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2130.1021 {y} 640.2417 {z} 71.6005 {switchStyle} SwitchType.JumpCut
clear_area -2156.5601 {y} 645.08 {z} 51.35 {radius} 1.0 {clearParticles} True
clear_area -2130.1021 {y} 640.2417 {z} 71.6005 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2156.5601 {y} 645.08 {z} 51.35 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3243
return 

:PSAVE1_3245
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3403
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1979.02 {y} 1004.792 {z} 995.4213 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1978.566 {y} 1003.92 {z} 995.238 {switchStyle} SwitchType.JumpCut
clear_area 1963.4 {y} 972.2 {z} 993.4 {radius} 1.0 {clearParticles} True
clear_area 1979.02 {y} 1004.792 {z} 995.4213 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1963.4 {y} 972.2 {z} 993.4 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3403
return 

:PSAVE1_3405
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3563
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1954.571 {y} 1041.494 {z} 993.1794 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1954.962 {y} 1042.4139 {z} 993.1676 {switchStyle} SwitchType.JumpCut
clear_area 1963.5 {y} 1063.3 {z} 993.4 {radius} 1.0 {clearParticles} True
clear_area 1954.962 {y} 1042.4139 {z} 993.1676 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1963.5 {y} 1063.3 {z} 993.4 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3563
return 

:PSAVE1_3565
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3723
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2073.947 {y} 991.3126 {z} 17.4461 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2072.9529 {y} 991.4046 {z} 17.5078 {switchStyle} SwitchType.JumpCut
clear_area 2020.0 {y} 1008.83 {z} 9.82 {radius} 1.0 {clearParticles} True
clear_area 2072.9529 {y} 991.4046 {z} 17.5078 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2020.0 {y} 1008.83 {z} 9.82 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3723
return 

:PSAVE1_3725
if 
  is_player_playing $player1
goto_if_false @PSAVE1_3883
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2601.677 {y} 1386.132 {z} 6.8077 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2602.3279 {y} 1386.855 {z} 7.0409 {switchStyle} SwitchType.JumpCut
clear_area -2624.1951 {y} 1410.764 {z} 6.1015 {radius} 1.0 {clearParticles} True
clear_area -2602.3279 {y} 1386.855 {z} 7.0409 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2624.1951 {y} 1410.764 {z} 6.1015 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_3883
return 

:PSAVE1_3885
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4043
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -690.618 {y} 906.0824 {z} 13.0468 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -690.5204 {y} 907.0766 {z} 13.0919 {switchStyle} SwitchType.JumpCut
clear_area -684.982 {y} 927.3704 {z} 12.6293 {radius} 1.0 {clearParticles} True
clear_area -690.5204 {y} 907.0766 {z} 13.0919 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -684.982 {y} 927.3704 {z} 12.6293 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4043
return 

:PSAVE1_4045
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4154
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 427.1954 {y} 2527.6431 {z} 19.4052 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 426.2472 {y} 2527.9561 {z} 19.4635 {switchStyle} SwitchType.JumpCut
clear_area 426.2472 {y} 2527.9561 {z} 19.4635 {radius} 2.0 {clearParticles} True
gosub @PSAVE1_1060

:PSAVE1_4154
return 

:PSAVE1_4156
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4265
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 330.1037 {y} 2587.75 {z} 18.3215 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 330.0515 {y} 2586.7529 {z} 18.362 {switchStyle} SwitchType.JumpCut
clear_area 330.0515 {y} 2586.7529 {z} 18.362 {radius} 2.0 {clearParticles} True
gosub @PSAVE1_1060

:PSAVE1_4265
return 

:PSAVE1_4267
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4425
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2257.135 {y} 1587.1331 {z} 1010.035 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2257.2671 {y} 1588.119 {z} 1009.939 {switchStyle} SwitchType.JumpCut
clear_area 2270.6001 {y} 1637.9 {z} 1007.3 {radius} 1.0 {clearParticles} True
clear_area 2257.2671 {y} 1588.119 {z} 1009.939 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 2270.6001 {y} 1637.9 {z} 1007.3 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4425
return 

:PSAVE1_4427
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4585
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1278.0909 {y} -849.6337 {z} 90.7593 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1278.038 {y} -848.6531 {z} 90.5709 {switchStyle} SwitchType.JumpCut
clear_area 1258.158 {y} -785.2752 {z} 91.0302 {radius} 1.0 {clearParticles} True
clear_area 1278.038 {y} -848.6531 {z} 90.5709 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} 1258.158 {y} -785.2752 {z} 91.0302 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4585
return 

:PSAVE1_4587
if 
  is_player_playing $player1
goto_if_false @PSAVE1_4745
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2278.0039 {y} 134.334 {z} 39.606 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2277.0081 {y} 134.356 {z} 39.6897 {switchStyle} SwitchType.JumpCut
clear_area -2242.812 {y} 128.7572 {z} 34.3203 {radius} 1.0 {clearParticles} True
clear_area -2277.0081 {y} 134.356 {z} 39.6897 {radius} 2.0 {clearParticles} True
task_go_straight_to_coord $scplayer {x} -2242.812 {y} 128.7572 {z} 34.3203 {speed} MoveState.Walk {time} 3000
gosub @PSAVE1_1060

:PSAVE1_4745
return 

:HELP
script_name 'HELP'

:HELP_11
wait 70
if 
  is_player_playing $player1
goto_if_false @HELP_2194
if 
  $game_starts_from_scratch == 1
goto_if_false @HELP_2194
if 
  $wasted_help == 0
goto_if_false @HELP_451
if 
  has_pickup_been_collected $wasted_help1
goto_if_false @HELP_259
if 
  is_player_playing $player1
goto_if_false @HELP_110
set_player_control $player1 {state} False
switch_widescreen True

:HELP_110
set_fixed_camera_position 2022.613 {y} -1432.05 {z} 17.6541 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2022.989 {y} -1431.124 {z} 17.6552 {switchStyle} SwitchType.JumpCut
remove_pickup $wasted_help1
remove_pickup $wasted_help2
clear_help 
print_help_forever 'HOSP_1'
wait 8000
print_help_forever 'HOSP_2'
wait 8000
print_help_forever 'HOSP_3'
wait 8000
clear_help 
$wasted_help = 1
restore_camera_jumpcut 
if 
  is_player_playing $player1
goto_if_false @HELP_259
set_player_control $player1 {state} True
switch_widescreen False

:HELP_259
if 
  has_pickup_been_collected $wasted_help2
goto_if_false @HELP_451
if 
  is_player_playing $player1
goto_if_false @HELP_302
set_player_control $player1 {state} False
switch_widescreen True

:HELP_302
set_fixed_camera_position 1184.347 {y} -1313.489 {z} 19.7079 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1183.645 {y} -1314.089 {z} 19.3248 {switchStyle} SwitchType.JumpCut
remove_pickup $wasted_help1
remove_pickup $wasted_help2
clear_help 
print_help_forever 'HOSP_1'
wait 8000
print_help_forever 'HOSP_2'
wait 8000
print_help_forever 'HOSP_3'
wait 8000
clear_help 
restore_camera_jumpcut 
if 
  is_player_playing $player1
goto_if_false @HELP_444
set_player_control $player1 {state} True
switch_widescreen False

:HELP_444
$wasted_help = 1

:HELP_451
if 
  $busted_help == 0
goto_if_false @HELP_672
if 
  has_pickup_been_collected $busted_help1
goto_if_false @HELP_672
if 
  is_player_playing $player1
goto_if_false @HELP_512
set_player_control $player1 {state} False
switch_widescreen True

:HELP_512
set_fixed_camera_position 1536.577 {y} -1687.134 {z} 26.7069 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1537.295 {y} -1686.564 {z} 26.3081 {switchStyle} SwitchType.JumpCut
remove_pickup $busted_help1
clear_help 
print_help_forever 'BUST_1'
wait 8000
print_help_forever 'BUST_2'
wait 8000
print_help_forever 'BUST_3'
wait 8000
print_help_forever 'BUST_4'
wait 8000
clear_help 
restore_camera_jumpcut 
if 
  is_player_playing $player1
goto_if_false @HELP_665
set_player_control $player1 {state} True
switch_widescreen False

:HELP_665
$busted_help = 1

:HELP_672
if 
  $chat_help1_flag == 0
goto_if_false @HELP_724
if 
  has_pickup_been_collected $chat_help1
goto_if_false @HELP_724
print_help 'CHATBAK'
$chat_help1_flag = 1

:HELP_724
if 
  7 > $swimming_help
goto_if_false @HELP_1256
if 
  $swimming_help == 0
goto_if_false @HELP_815
if 
  is_player_playing $player1
goto_if_false @HELP_815
if 
  is_char_swimming $scplayer
goto_if_false @HELP_815
print_help 'WZI2_A0'
$swimming_help = 1
wait 5000

:HELP_815
if 
  $swimming_help == 1
goto_if_false @HELP_888
if 
  is_player_playing $player1
goto_if_false @HELP_888
if 
  is_char_swimming $scplayer
goto_if_false @HELP_888
print_help 'WZI2_A5'
$swimming_help = 2
wait 5000

:HELP_888
if 
  $swimming_help == 2
goto_if_false @HELP_961
if 
  is_player_playing $player1
goto_if_false @HELP_961
if 
  is_char_swimming $scplayer
goto_if_false @HELP_961
print_help 'WZI2_A6'
$swimming_help = 3
wait 5000

:HELP_961
if 
  $swimming_help == 3
goto_if_false @HELP_1034
if 
  is_player_playing $player1
goto_if_false @HELP_1034
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1034
print_help 'WZI2_A1'
$swimming_help = 4
wait 5000

:HELP_1034
if 
  $swimming_help == 4
goto_if_false @HELP_1115
if 
  is_player_playing $player1
goto_if_false @HELP_1115
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1115
print_help 'WZI2_A2'
flash_hud_object HudObject.Breathbar
wait 5000
$swimming_help = 5
flash_hud_object -1

:HELP_1115
if 
  $swimming_help == 5
goto_if_false @HELP_1188
if 
  is_player_playing $player1
goto_if_false @HELP_1188
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1188
print_help 'WZI2_A3'
$swimming_help = 6
wait 5000

:HELP_1188
if 
  $swimming_help == 6
goto_if_false @HELP_1256
if 
  is_player_playing $player1
goto_if_false @HELP_1256
if 
  is_char_swimming $scplayer
goto_if_false @HELP_1256
print_help 'WZI2_A7'
$swimming_help = 7

:HELP_1256
if 
  $print_first_help == 0
goto_if_false @HELP_1393
wait 2000
if 
  is_player_playing $player1
goto_if_false @HELP_1350
if 
  $been_in_a_bmx == 0
goto_if_false @HELP_1350
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @HELP_1350
print_help 'INTRO2F'
$been_in_a_bmx = 1

:HELP_1350
wait 5000
print_help 'HELP42'
flash_hud_object HudObject.Radar
wait 7000
flash_hud_object -1
$print_first_help = 1
goto @HELP_2120

:HELP_1393
if 
  $spray_help == 0
goto_if_false @HELP_1452
if 
  $flag_sweet_mission_counter == 1
goto_if_false @HELP_1452
wait 4000
print_help 'SPRAY_C'
$spray_help = 1

:HELP_1452
if 
  $voice_over_at_hub == 1
goto_if_false @HELP_1578
if 
  is_player_playing $player1
goto_if_false @HELP_1578
if 
  locate_char_any_means_3d $scplayer {x} $introX {y} $introY {z} $introZ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HELP_1578
if 
  is_char_in_any_car $scplayer
goto_if_false @HELP_1555
print_help 'HELP21B'

:HELP_1555
wait 5000
print_help 'HELP44'
$voice_over_at_hub = 2

:HELP_1578
if 
  is_player_playing $player1
goto_if_false @HELP_1670
if 
  $been_in_a_bmx == 0
goto_if_false @HELP_1670
if or
  is_char_in_model $scplayer {modelId} 481
  is_char_in_model $scplayer {modelId} 509
  is_char_in_model $scplayer {modelId} 510
goto_if_false @HELP_1670
wait 2000
print_help 'INTRO2F'
$been_in_a_bmx = 1

:HELP_1670
if 
  is_player_playing $player1
goto_if_false @HELP_2120
if 
  $bike_help == 0
goto_if_false @HELP_1808
if or
  is_char_in_model $scplayer {modelId} 481
  is_char_in_model $scplayer {modelId} 509
  is_char_in_model $scplayer {modelId} 510
goto_if_false @HELP_1808
if and
  $bike_help == 0
  $been_in_a_bmx == 1
goto_if_false @HELP_1808
wait 6000
print_help 'HELP5_A'
wait 8000
print_help 'HELP27'
wait 2000
$bike_help = 1

:HELP_1808
if 
  is_player_playing $player1
goto_if_false @HELP_2120
if 
  $flag_intro_mission_counter > 0
goto_if_false @HELP_2120
if 
  $car_help_played == 0
goto_if_false @HELP_1949
if 
  $main_visible_area == 0
goto_if_false @HELP_1949
if 
  not is_char_on_any_bike $scplayer
goto_if_false @HELP_1949
if 
  is_char_in_any_car $scplayer
goto_if_false @HELP_1949
wait 2000
print_help 'GF_RAD'
wait 5000
print_help 'HELP56'
$car_help_played = 1

:HELP_1949
if 
  $drive_by_help == 0
goto_if_false @HELP_2120
if 
  $car_help_played == 1
goto_if_false @HELP_2120
if 
  is_player_playing $player1
goto_if_false @HELP_2120
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 0
goto_if_false @HELP_2120
if and
  is_char_in_any_car $scplayer
  not is_char_on_any_bike $scplayer
goto_if_false @HELP_2120
if or
  is_current_char_weapon $scplayer {weaponType} WeaponType.MicroUzi
  is_current_char_weapon $scplayer {weaponType} WeaponType.Mp5
goto_if_false @HELP_2120
print_help 'HELP31'
wait 6000
print_help 'HELP32'
wait 6000
print_help 'HELP34'
$drive_by_help = 1

:HELP_2120
if 
  $drive_by_help == 1
goto_if_false @HELP_2194
if 
  $car_help_played == 1
goto_if_false @HELP_2194
if 
  $voice_over_at_hub == 1
goto_if_false @HELP_2194
if 
  $chat_help1_flag == 1
goto_if_false @HELP_2194
terminate_this_script 

:HELP_2194
goto @HELP_11

:INTROST
script_name 'INTROST'

:INTROST_11
wait 0
if 
  is_player_playing $player1
goto_if_false @INTROST_848
if 
  $onmission == 0
goto_if_false @INTROST_848
if 
  $voice_over_at_hub == 0
goto_if_false @INTROST_343
if 
  is_player_playing $player1
goto_if_false @INTROST_343
if 
  locate_char_any_means_3d $scplayer {x} 2471.7 {y} -1668.0 {z} 12.3 {xRadius} 90.0 {yRadius} 40.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @INTROST_343
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43205
load_mission_audio MissionAudioSlot.Slot2 {audioId} 43206

:INTROST_149
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTROST_198
wait 0
if 
  not is_player_playing $player1
goto_if_false @INTROST_191
goto @INTROST_336

:INTROST_191
goto @INTROST_149

:INTROST_198
print_now 'VO_AF' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:INTROST_218
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTROST_267
wait 0
if 
  not is_player_playing $player1
goto_if_false @INTROST_260
goto @INTROST_336

:INTROST_260
goto @INTROST_218

:INTROST_267
print_now 'VO_AG' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2

:INTROST_287
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTROST_336
wait 0
if 
  not is_player_playing $player1
goto_if_false @INTROST_329
goto @INTROST_336

:INTROST_329
goto @INTROST_287

:INTROST_336
$voice_over_at_hub = 1

:INTROST_343
if 
  $funeral_mission_finished == 0
goto_if_false @INTROST_407
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_407
wait 5000
print_now 'INT_CJ1' {time} 8000 {flag} 1
$funeral_mission_finished = 1

:INTROST_407
if 
  $funeral_mission_finished == 1
goto_if_false @INTROST_638
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_638
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 3
goto_if_false @INTROST_638
if 
  is_player_playing $player1
goto_if_false @INTROST_638
if 
  locate_char_any_means_3d $scplayer {x} 2496.051 {y} -1698.0129 {z} 1013.75 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @INTROST_638
set_player_control $player1 {state} False
clear_prints 
set_fixed_camera_position 2496.3799 {y} -1694.334 {z} 1015.431 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2496.3679 {y} -1695.325 {z} 1015.299 {switchStyle} SwitchType.JumpCut
print_help 'SAVE'
wait 5000
if 
  is_player_playing $player1
goto_if_false @INTROST_638
set_player_control $player1 {state} True
restore_camera_jumpcut 
$funeral_mission_finished = 2

:INTROST_638
if 
  $funeral_mission_finished == 2
goto_if_false @INTROST_848
if 
  $flag_intro_mission_counter == 1
goto_if_false @INTROST_848
$main_visible_area = get_area_visible 
if 
  $main_visible_area == 0
goto_if_false @INTROST_848
if 
  is_player_playing $player1
goto_if_false @INTROST_848
if 
  locate_char_any_means_3d $scplayer {x} 2495.3301 {y} -1689.183 {z} 13.2716 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @INTROST_848
terminate_all_scripts_with_this_name 'INT'
start_new_script @INT 
remove_blip $intro_contact_blip
$intro_contact_blip = add_sprite_blip_for_contact_point $ryderX {y} $ryderY {z} $ryderZ {sprite} $ryder_blip_icon
print_now 'INT2_1' {time} 8000 {flag} 1
wait 2000
print_help 'RYBLIP'
wait 4000
$funeral_mission_finished = 3
terminate_this_script 

:INTROST_848
goto @INTROST_11

:FLOW
script_name 'FLOW'

:FLOW_11
wait 1000
if 
  is_player_playing $player1
goto_if_false @FLOW_959
if 
  $onmission == 0
goto_if_false @FLOW_959
if 
  $girlfried_help_flag == 0
goto_if_false @FLOW_111
if 
  $flag_crash_mission_counter == 1
goto_if_false @FLOW_111
wait 5500
clear_help 
print_help 'GF_H000'
$girlfried_help_flag = 1

:FLOW_111
if 
  $oddjob_help_flag == 0
goto_if_false @FLOW_190
if 
  $flag_scrash_mission_counter == 1
goto_if_false @FLOW_190
wait 6000
clear_help 
print_help 'VAL_HLP'
wait 5000
clear_help 
print_help 'VAL_GOT'
$oddjob_help_flag = 1

:FLOW_190
if 
  $trucking_help_flag == 0
goto_if_false @FLOW_251
if 
  $flag_cat_mission3_passed == 1
goto_if_false @FLOW_251
wait 6000
clear_help 
print_help 'TRUCK_H'
$trucking_help_flag = 1

:FLOW_251
if 
  $stealth_help_flag == 0
goto_if_false @FLOW_312
if 
  $flag_strap_mission_counter > 1
goto_if_false @FLOW_312
wait 6000
clear_help 
print_help 'STELF'
$stealth_help_flag = 1

:FLOW_312
if 
  $got_gimp_suit == 0
goto_if_false @FLOW_373
if 
  $flag_heist_mission_counter == 2
goto_if_false @FLOW_373
wait 6000
clear_help 
print_help 'GIMPGOT'
$got_gimp_suit = 1

:FLOW_373
if 
  $camera_secret_help == 0
goto_if_false @FLOW_434
if 
  $flag_synd_mission_counter == 1
goto_if_false @FLOW_434
wait 6000
clear_help 
print_help 'SECRET'
$camera_secret_help = 1

:FLOW_434
if 
  $croupier_help == 0
goto_if_false @FLOW_495
if 
  $flag_heist_mission_counter == 6
goto_if_false @FLOW_495
wait 6000
clear_help 
print_help 'CRO_GOT'
$croupier_help = 1

:FLOW_495
if 
  $trigger_final_LA1_missions == 0
goto_if_false @FLOW_658
if 
  $flag_sweet_mission_counter == 9
goto_if_false @FLOW_658
if 
  $flag_smoke_mission_counter == 4
goto_if_false @FLOW_658
if 
  $flag_strap_mission_counter == 5
goto_if_false @FLOW_658
if 
  $flag_ryder_mission_counter == 3
goto_if_false @FLOW_658
if 
  $flag_crash_mission_counter == 2
goto_if_false @FLOW_658
if 
  $flag_cesar_mission_counter == 1
goto_if_false @FLOW_658
start_new_script @LA1FIN 
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$trigger_final_LA1_missions = 1

:FLOW_658
if 
  $trigger_scrash2_mission == 0
goto_if_false @FLOW_730
if and
  $flag_scrash_mission_counter == 1
  $flag_synd_mission_counter == 6
goto_if_false @FLOW_730
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $crash_blip_icon
$trigger_scrash2_mission = 1

:FLOW_730
if 
  $trigger_ice_cold_mission == 0
goto_if_false @FLOW_800
if 
  $flag_synd_mission_counter == 5
goto_if_false @FLOW_800
remove_blip $synd_contact_blip
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
$trigger_ice_cold_mission = 1

:FLOW_800
if 
  $trigger_final_synd_mission == 0
goto_if_false @FLOW_872
if and
  $flag_synd_mission_counter == 9
  $flag_wuzi_mission_counter == 5
goto_if_false @FLOW_872
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
$trigger_final_synd_mission = 1

:FLOW_872
if 
  $trigger_final_LA2_missions == 0
goto_if_false @FLOW_959
if and
  $flag_grove_mission_counter == 2
  $flag_mansion_mission_counter == 4
goto_if_false @FLOW_959
start_new_script @RIOT 
remove_blip $grove_contact_blip
remove_blip $mansion_contact_blip
$mansion_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon
$trigger_final_LA2_missions = 1
terminate_this_script 

:FLOW_959
goto @FLOW_11

:DOORS
script_name 'DOORS'
wait 0
  rotate_object $2709 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_165
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1852.0 {leftBottomY} -1990.7 {rightTopX} 1849.8 {rightTopY} -1989.6 {drawSphere} False
goto_if_false @DOORS_165
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_134
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1854.0 {y} -1990.0 {z} 12.5

:DOORS_134
do_fade 500 {direction} Fade.In

:DOORS_141
if 
  get_fading_status 
goto_if_false @DOORS_165
wait 0
goto @DOORS_141

:DOORS_165
  rotate_object $2710 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_315
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1867.3 {leftBottomY} -1985.2 {rightTopX} 1868.2 {rightTopY} -1982.7 {drawSphere} False
goto_if_false @DOORS_315
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_284
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1867.4 {y} -1987.1 {z} 12.5

:DOORS_284
do_fade 500 {direction} Fade.In

:DOORS_291
if 
  get_fading_status 
goto_if_false @DOORS_315
wait 0
goto @DOORS_291

:DOORS_315
  rotate_object $2711 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_465
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1866.5 {leftBottomY} -1998.3 {rightTopX} 1865.4 {rightTopY} -2000.4 {drawSphere} False
goto_if_false @DOORS_465
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_434
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1866.0 {y} -1996.7 {z} 12.5

:DOORS_434
do_fade 500 {direction} Fade.In

:DOORS_441
if 
  get_fading_status 
goto_if_false @DOORS_465
wait 0
goto @DOORS_441

:DOORS_465
  rotate_object $2712 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_615
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1899.6 {leftBottomY} -1985.2 {rightTopX} 1900.9 {rightTopY} -1982.7 {drawSphere} False
goto_if_false @DOORS_615
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_584
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1899.8 {y} -1986.7 {z} 12.5

:DOORS_584
do_fade 500 {direction} Fade.In

:DOORS_591
if 
  get_fading_status 
goto_if_false @DOORS_615
wait 0
goto @DOORS_591

:DOORS_615
  rotate_object $2713 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_765
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1914.1 {leftBottomY} -1992.7 {rightTopX} 1916.8 {rightTopY} -1994.2 {drawSphere} False
goto_if_false @DOORS_765
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_734
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1912.3 {y} -1993.2 {z} 12.5

:DOORS_734
do_fade 500 {direction} Fade.In

:DOORS_741
if 
  get_fading_status 
goto_if_false @DOORS_765
wait 0
goto @DOORS_741

:DOORS_765
  rotate_object $2714 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_915
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1899.0 {leftBottomY} -1998.1 {rightTopX} 1897.9 {rightTopY} -2000.4 {drawSphere} False
goto_if_false @DOORS_915
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_884
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1898.7 {y} -1996.1 {z} 12.5

:DOORS_884
do_fade 500 {direction} Fade.In

:DOORS_891
if 
  get_fading_status 
goto_if_false @DOORS_915
wait 0
goto @DOORS_891

:DOORS_915
  rotate_object $2715 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1065
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1901.0 {leftBottomY} -2020.1 {rightTopX} 1899.1 {rightTopY} -2019.1 {drawSphere} False
goto_if_false @DOORS_1065
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1034
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1902.7 {y} -2019.6 {z} 12.5

:DOORS_1034
do_fade 500 {direction} Fade.In

:DOORS_1041
if 
  get_fading_status 
goto_if_false @DOORS_1065
wait 0
goto @DOORS_1041

:DOORS_1065
  rotate_object $2716 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1215
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1914.1 {leftBottomY} -2020.8 {rightTopX} 1916.2 {rightTopY} -2021.8 {drawSphere} False
goto_if_false @DOORS_1215
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1184
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1912.4 {y} -2021.3 {z} 12.5

:DOORS_1184
do_fade 500 {direction} Fade.In

:DOORS_1191
if 
  get_fading_status 
goto_if_false @DOORS_1215
wait 0
goto @DOORS_1191

:DOORS_1215
  rotate_object $2717 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1365
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1906.5 {leftBottomY} -2035.3 {rightTopX} 1905.5 {rightTopY} -2037.2 {drawSphere} False
goto_if_false @DOORS_1365
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1334
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1905.8 {y} -2033.4 {z} 12.5

:DOORS_1334
do_fade 500 {direction} Fade.In

:DOORS_1341
if 
  get_fading_status 
goto_if_false @DOORS_1365
wait 0
goto @DOORS_1341

:DOORS_1365
  rotate_object $2718 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1515
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1852.0 {leftBottomY} -2020.1 {rightTopX} 1850.1 {rightTopY} -2019.2 {drawSphere} False
goto_if_false @DOORS_1515
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1484
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1853.7 {y} -2019.4 {z} 12.5

:DOORS_1484
do_fade 500 {direction} Fade.In

:DOORS_1491
if 
  get_fading_status 
goto_if_false @DOORS_1515
wait 0
goto @DOORS_1491

:DOORS_1515
  rotate_object $2719 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1665
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1865.0 {leftBottomY} -2020.7 {rightTopX} 1867.1 {rightTopY} -2021.8 {drawSphere} False
goto_if_false @DOORS_1665
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1634
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1863.0 {y} -2021.3 {z} 12.5

:DOORS_1634
do_fade 500 {direction} Fade.In

:DOORS_1641
if 
  get_fading_status 
goto_if_false @DOORS_1665
wait 0
goto @DOORS_1641

:DOORS_1665
  rotate_object $2720 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
if 
  is_player_playing $player1
goto_if_false @DOORS_1815
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1857.6 {leftBottomY} -2035.2 {rightTopX} 1856.5 {rightTopY} -2037.2 {drawSphere} False
goto_if_false @DOORS_1815
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @DOORS_1784
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1857.1 {y} -2033.3 {z} 12.5

:DOORS_1784
do_fade 500 {direction} Fade.In

:DOORS_1791
if 
  get_fading_status 
goto_if_false @DOORS_1815
wait 0
goto @DOORS_1791

:DOORS_1815
terminate_this_script 

:BACKON
script_name 'BACKON'
wait 5000
show_update_stats True
terminate_this_script 

:CASHWIN
script_name 'CASHWIN'
$game_timer = get_game_timer 
if 
  1@ == 0
goto_if_false @CASHWIN_57
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
goto @CASHWIN_73

:CASHWIN_57
set_lvar_int_to_var_int 3@ = $game_timer
add_int_lvar_to_int_lvar 3@ += 1@

:CASHWIN_73
wait 0
if 
  not is_player_playing $player1
goto_if_false @CASHWIN_95
terminate_this_script 

:CASHWIN_95
$game_timer = get_game_timer 
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @CASHWIN_121
terminate_this_script 

:CASHWIN_121
if 
  0@ == 0
goto_if_false @CASHWIN_234
gosub @CASHWIN_576
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
if 
  2@ == 69
goto_if_false @CASHWIN_206
display_text 320.0 {offsetTop} 180.333 {key} 'BJ_PUSH'
goto @CASHWIN_227

:CASHWIN_206
display_text 320.0 {offsetTop} 180.333 {key} 'NOWIN'

:CASHWIN_227
goto @CASHWIN_569

:CASHWIN_234
if 
  0@ > 0
goto_if_false @CASHWIN_422
gosub @CASHWIN_576
switch_start 2@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASHWIN_384 {caseNum1} 45 {caseLabel1} @CASHWIN_322 {caseNum2} 80 {caseLabel2} @CASHWIN_353 {caseNum3} -1 {caseLabel3} @CASHWIN_415 {caseNum4} -1 {caseLabel4} @CASHWIN_415 {caseNum5} -1 {caseLabel5} @CASHWIN_415 {caseNum6} -1 {caseLabel6} @CASHWIN_415 {caseNum7} -1 {caseLabel7} @CASHWIN_415

:CASHWIN_322
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'ALLRACE' {num} 0@
goto @CASHWIN_415

:CASHWIN_353
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'PL_07' {num} 0@
goto @CASHWIN_415

:CASHWIN_384
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'WINNER' {num} 0@
goto @CASHWIN_415

:CASHWIN_415
goto @CASHWIN_569

:CASHWIN_422
set_var_int_to_lvar_int $temp_integer_1 = 0@
$temp_integer_1 *= -1
gosub @CASHWIN_576
switch_start 2@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASHWIN_538 {caseNum1} 80 {caseLabel1} @CASHWIN_507 {caseNum2} -1 {caseLabel2} @CASHWIN_569 {caseNum3} -1 {caseLabel3} @CASHWIN_569 {caseNum4} -1 {caseLabel4} @CASHWIN_569 {caseNum5} -1 {caseLabel5} @CASHWIN_569 {caseNum6} -1 {caseLabel6} @CASHWIN_569 {caseNum7} -1 {caseLabel7} @CASHWIN_569

:CASHWIN_507
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'PL_10' {num} $temp_integer_1
goto @CASHWIN_569

:CASHWIN_538
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'LOSER' {num} $temp_integer_1
goto @CASHWIN_569

:CASHWIN_569
goto @CASHWIN_73

:CASHWIN_576
set_text_right_justify False
set_text_justify False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
$temp_integer_2, $temp_integer_3, $temp_integer_4, $an = get_hud_colour 6
set_text_colour $temp_integer_2 {green} $temp_integer_3 {blue} $temp_integer_4 {alpha} 255
return 

:CRANES
script_name 'CRANES'
goto @CRANES_40
$magno_base = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANES_40
wait 100
if 
  is_player_playing $player1
goto_if_false @CRANES_507
if 
  locate_char_any_means_2d $scplayer {x} -2080.4409 {y} 256.015 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANES_168
0@ = get_number_of_instances_of_streamed_script 67
if 
  0@ == 0
goto_if_false @CRANES_164
stream_script 67
if 
  has_streamed_script_loaded 67
goto_if_false @CRANES_157
start_new_streamed_script 67 {args} $sf_crane1_base 
0@ += 1

:CRANES_157
goto @CRANES_168

:CRANES_164
mark_streamed_script_as_no_longer_needed 67

:CRANES_168
if 
  locate_char_any_means_2d $scplayer {x} 2399.2019 {y} 1879.139 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANES_276
0@ = get_number_of_instances_of_streamed_script 67
if 
  0@ == 0
goto_if_false @CRANES_272
stream_script 67
if 
  has_streamed_script_loaded 67
goto_if_false @CRANES_265
start_new_streamed_script 67 {args} $lv_base 
0@ += 1

:CRANES_265
goto @CRANES_276

:CRANES_272
mark_streamed_script_as_no_longer_needed 67

:CRANES_276
if 
  does_object_exist $magno_base
goto_if_false @CRANES_393
if 
  locate_char_any_means_object_2d $scplayer {object} $magno_base {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @CRANES_393
0@ = get_number_of_instances_of_streamed_script 68
if 
  0@ == 0
goto_if_false @CRANES_389
stream_script 68
if 
  has_streamed_script_loaded 68
goto_if_false @CRANES_382
start_new_streamed_script 68 {args} $magno_base 
0@ += 1

:CRANES_382
goto @CRANES_393

:CRANES_389
mark_streamed_script_as_no_longer_needed 68

:CRANES_393
if 
  locate_char_any_means_2d $scplayer {x} 709.45 {y} 915.93 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANES_507
0@ = get_number_of_instances_of_streamed_script 69
if 
  0@ == 0
goto_if_false @CRANES_503
stream_script 69
if 
  has_streamed_script_loaded 69
goto_if_false @CRANES_496
start_new_streamed_script 69 {args} $quarry_base $quarry_stand $quarry_arm 
0@ += 1

:CRANES_496
goto @CRANES_507

:CRANES_503
mark_streamed_script_as_no_longer_needed 69

:CRANES_507
goto @CRANES_40

:ENTEXT
script_name 'ENTEXT'
0@ = -1

:ENTEXT_18
if 
  not is_int_lvar_equal_to_int_var 0@ == $entry_exit_area
goto_if_false @ENTEXT_53
wait 0
0@ = get_area_visible 
goto @ENTEXT_18

:ENTEXT_53
switch_entry_exit s$entry_exit_name {state} $entry_exit_status
terminate_this_script 

:ENTEXT_63
$player_is_completely_safe = 0
if 
  is_player_playing $player1
goto_if_false @ENTEXT_212
if 
  $main_visible_area == 0
goto_if_false @ENTEXT_212
if 
  $flag_cell_nation == 0
goto_if_false @ENTEXT_212
if 
  $player_fall_state == 0
goto_if_false @ENTEXT_212
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ENTEXT_212
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @ENTEXT_212
if 
  not is_minigame_in_progress 
goto_if_false @ENTEXT_212
if 
  can_player_start_mission $player1
goto_if_false @ENTEXT_212
$player_is_completely_safe = 1

:ENTEXT_212
return 

:ENTEXT_214
$player_is_completely_safe_for_mobile = 0
if 
  is_player_playing $player1
goto_if_false @ENTEXT_449
if 
  $onmission == 0
goto_if_false @ENTEXT_449
if 
  $main_visible_area == 0
goto_if_false @ENTEXT_449
if 
  $flag_cell_nation == 0
goto_if_false @ENTEXT_449
if 
  $player_fall_state == 0
goto_if_false @ENTEXT_449
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ENTEXT_449
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @ENTEXT_449
if 
  not is_minigame_in_progress 
goto_if_false @ENTEXT_449
if 
  can_player_start_mission $player1
goto_if_false @ENTEXT_449
if 
  is_char_on_foot $scplayer
goto_if_false @ENTEXT_449
if 
  not is_gang_war_fighting_going_on 
goto_if_false @ENTEXT_449
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @ENTEXT_449
$timer_mobile_now = get_game_timer 
set_var_int_to_var_int $timer_mobile_diff = $timer_mobile_now
sub_int_var_from_int_var $timer_mobile_diff -= $timer_mobile_start
$player_is_completely_safe_for_mobile = 1

:ENTEXT_449
return 

:OPENUP
script_name 'OPENUP'

:OPENUP_11
wait 2000
if 
  $Return_cities_passed > 0
goto_if_false @OPENUP_311
if 
  $opened_badlands_up == 0
goto_if_false @OPENUP_311
gosub @OPENUP_1660
$save_housepickup[8] = create_forsale_property_pickup $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {price} $1661 {message} 'PROP_3'
$1629 = add_short_range_sprite_blip_for_contact_point $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {sprite} RadarSprite.PropertyG
change_blip_display $1629 {display} BlipDisplay.BlipOnly
$save_housepickup[19] = create_forsale_property_pickup $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {price} $1672 {message} 'PROP_3'
$1640 = add_short_range_sprite_blip_for_contact_point $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {sprite} RadarSprite.PropertyG
change_blip_display $1640 {display} BlipDisplay.BlipOnly
$save_housepickup[22] = create_forsale_property_pickup $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {price} $1675 {message} 'PROP_3'
$1643 = add_short_range_sprite_blip_for_contact_point $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {sprite} RadarSprite.PropertyG
change_blip_display $1643 {display} BlipDisplay.BlipOnly
$save_housepickup[25] = create_forsale_property_pickup $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {price} $1678 {message} 'PROP_3'
$1646 = add_short_range_sprite_blip_for_contact_point $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {sprite} RadarSprite.PropertyG
change_blip_display $1646 {display} BlipDisplay.BlipOnly
$save_housepickup[31] = create_forsale_property_pickup $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {price} $1684 {message} 'PROP_3'
$1652 = add_short_range_sprite_blip_for_contact_point $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {sprite} RadarSprite.PropertyG
change_blip_display $1652 {display} BlipDisplay.BlipOnly
$opened_badlands_up = 1

:OPENUP_311
if 
  $Return_cities_passed > 0
goto_if_false @OPENUP_781
if or
  $flag_truth_mission_counter > 1
  $launch_shit_for_debug_build == 1
goto_if_false @OPENUP_781
if 
  $opened_sanfran_up == 0
goto_if_false @OPENUP_781
gosub @OPENUP_1712
$save_housepickup[11] = create_forsale_property_pickup $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {price} $1664 {message} 'PROP_3'
$1632 = add_short_range_sprite_blip_for_contact_point $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {sprite} RadarSprite.PropertyG
change_blip_display $1632 {display} BlipDisplay.BlipOnly
$save_housepickup[13] = create_forsale_property_pickup $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {price} $1666 {message} 'PROP_3'
$1634 = add_short_range_sprite_blip_for_contact_point $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {sprite} RadarSprite.PropertyG
change_blip_display $1634 {display} BlipDisplay.BlipOnly
$save_housepickup[14] = create_forsale_property_pickup $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {price} $1667 {message} 'PROP_3'
$1635 = add_short_range_sprite_blip_for_contact_point $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {sprite} RadarSprite.PropertyG
change_blip_display $1635 {display} BlipDisplay.BlipOnly
$save_housepickup[18] = create_forsale_property_pickup $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {price} $1671 {message} 'PROP_3'
$1639 = add_short_range_sprite_blip_for_contact_point $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {sprite} RadarSprite.PropertyG
change_blip_display $1639 {display} BlipDisplay.BlipOnly
$save_housepickup[20] = create_forsale_property_pickup $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {price} $1673 {message} 'PROP_3'
$1641 = add_short_range_sprite_blip_for_contact_point $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {sprite} RadarSprite.PropertyG
change_blip_display $1641 {display} BlipDisplay.BlipOnly
$save_housepickup[21] = create_forsale_property_pickup $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {price} $1674 {message} 'PROP_3'
$1642 = add_short_range_sprite_blip_for_contact_point $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {sprite} RadarSprite.PropertyG
change_blip_display $1642 {display} BlipDisplay.BlipOnly
$clothes_blips = add_short_range_sprite_blip_for_coord 1458.7 {y} -1140.0 {z} 24.2 {sprite} RadarSprite.Tshirt
$2633 = add_short_range_sprite_blip_for_coord -1886.1 {y} 862.4 {z} 35.2 {sprite} RadarSprite.Tshirt
$2634 = add_short_range_sprite_blip_for_coord 2574.3 {y} 1901.7 {z} 11.0 {sprite} RadarSprite.Tshirt
$2635 = add_short_range_sprite_blip_for_coord 2090.5 {y} 2221.0 {z} 11.0 {sprite} RadarSprite.Tshirt
switch_entry_exit 'CLOTHGP' {state} True
$opened_sanfran_up = 1

:OPENUP_781
if 
  $Return_cities_passed > 1
goto_if_false @OPENUP_978
if 
  $opened_desert_up == 0
goto_if_false @OPENUP_978
gosub @OPENUP_1774
$save_housepickup[5] = create_forsale_property_pickup $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {price} $1658 {message} 'PROP_3'
$1626 = add_short_range_sprite_blip_for_contact_point $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {sprite} RadarSprite.PropertyG
change_blip_display $1626 {display} BlipDisplay.BlipOnly
$save_housepickup[23] = create_forsale_property_pickup $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {price} $1676 {message} 'PROP_3'
$1644 = add_short_range_sprite_blip_for_contact_point $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {sprite} RadarSprite.PropertyG
change_blip_display $1644 {display} BlipDisplay.BlipOnly
$save_housepickup[24] = create_forsale_property_pickup $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {price} $1677 {message} 'PROP_3'
$1645 = add_short_range_sprite_blip_for_contact_point $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {sprite} RadarSprite.PropertyG
change_blip_display $1645 {display} BlipDisplay.BlipOnly
$opened_desert_up = 1

:OPENUP_978
if 
  $Return_cities_passed > 1
goto_if_false @OPENUP_1573
if or
  $1403 == 1
  $launch_shit_for_debug_build == 1
goto_if_false @OPENUP_1573
if 
  $opened_vegas_up == 0
goto_if_false @OPENUP_1573
gosub @OPENUP_1806
$save_housepickup[4] = create_forsale_property_pickup $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {price} $1657 {message} 'PROP_3'
$1625 = add_short_range_sprite_blip_for_contact_point $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {sprite} RadarSprite.PropertyG
change_blip_display $1625 {display} BlipDisplay.BlipOnly
$save_housepickup[6] = create_forsale_property_pickup $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {price} $1659 {message} 'PROP_3'
$1627 = add_short_range_sprite_blip_for_contact_point $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {sprite} RadarSprite.PropertyG
change_blip_display $1627 {display} BlipDisplay.BlipOnly
$save_housepickup[7] = create_forsale_property_pickup $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {price} $1660 {message} 'PROP_3'
$1628 = add_short_range_sprite_blip_for_contact_point $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {sprite} RadarSprite.PropertyG
change_blip_display $1628 {display} BlipDisplay.BlipOnly
$save_housepickup[9] = create_forsale_property_pickup $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {price} $1662 {message} 'PROP_3'
$1630 = add_short_range_sprite_blip_for_contact_point $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {sprite} RadarSprite.PropertyG
change_blip_display $1630 {display} BlipDisplay.BlipOnly
$save_housepickup[16] = create_forsale_property_pickup $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {price} $1669 {message} 'PROP_3'
$1637 = add_short_range_sprite_blip_for_contact_point $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {sprite} RadarSprite.PropertyG
change_blip_display $1637 {display} BlipDisplay.BlipOnly
$save_housepickup[17] = create_forsale_property_pickup $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {price} $1670 {message} 'PROP_3'
$1638 = add_short_range_sprite_blip_for_contact_point $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {sprite} RadarSprite.PropertyG
change_blip_display $1638 {display} BlipDisplay.BlipOnly
$save_housepickup[27] = create_forsale_property_pickup $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {price} $1680 {message} 'PROP_3'
$1648 = add_short_range_sprite_blip_for_contact_point $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {sprite} RadarSprite.PropertyG
change_blip_display $1648 {display} BlipDisplay.BlipOnly
$save_housepickup[28] = create_forsale_property_pickup $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {price} $1681 {message} 'PROP_3'
$1649 = add_short_range_sprite_blip_for_contact_point $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {sprite} RadarSprite.PropertyG
change_blip_display $1649 {display} BlipDisplay.BlipOnly
$save_housepickup[29] = create_forsale_property_pickup $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {price} $1682 {message} 'PROP_3'
$1650 = add_short_range_sprite_blip_for_contact_point $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {sprite} RadarSprite.PropertyG
change_blip_display $1650 {display} BlipDisplay.BlipOnly
$2643 = add_short_range_sprite_blip_for_coord 457.2 {y} -1500.7 {z} 31.3 {sprite} RadarSprite.Tshirt
$2644 = add_short_range_sprite_blip_for_coord 2795.2 {y} 2424.6001 {z} 11.0 {sprite} RadarSprite.Tshirt
$2647 = add_short_range_sprite_blip_for_coord -1692.9 {y} 952.8 {z} 26.3 {sprite} RadarSprite.Tshirt
switch_entry_exit 'CSDESGN' {state} True
$opened_vegas_up = 1

:OPENUP_1573
if 
  $Return_cities_passed > 2
goto_if_false @OPENUP_1653
if 
  $opened_la2_up == 0
goto_if_false @OPENUP_1653
$2645 = add_short_range_sprite_blip_for_coord 451.9 {y} -1480.0 {z} 30.9 {sprite} RadarSprite.Tshirt
switch_entry_exit 'CSEXL' {state} True
terminate_this_script 
$opened_la2_up = 1

:OPENUP_1653
goto @OPENUP_11

:OPENUP_1660
remove_blip $1629
remove_blip $1640
remove_blip $1643
remove_blip $1646
remove_blip $1652
remove_pickup $save_housepickup[8]
remove_pickup $save_housepickup[19]
remove_pickup $save_housepickup[22]
remove_pickup $save_housepickup[25]
remove_pickup $save_housepickup[31]
return 

:OPENUP_1712
remove_blip $1632
remove_blip $1634
remove_blip $1635
remove_blip $1639
remove_blip $1641
remove_blip $1642
remove_pickup $save_housepickup[11]
remove_pickup $save_housepickup[13]
remove_pickup $save_housepickup[14]
remove_pickup $save_housepickup[18]
remove_pickup $save_housepickup[20]
remove_pickup $save_housepickup[21]
return 

:OPENUP_1774
remove_blip $1626
remove_blip $1644
remove_blip $1645
remove_pickup $save_housepickup[5]
remove_pickup $save_housepickup[23]
remove_pickup $save_housepickup[24]
return 

:OPENUP_1806
remove_blip $1625
remove_blip $1627
remove_blip $1628
remove_blip $1630
remove_blip $1637
remove_blip $1638
remove_blip $1648
remove_blip $1649
remove_blip $1650
remove_pickup $save_housepickup[4]
remove_pickup $save_housepickup[6]
remove_pickup $save_housepickup[7]
remove_pickup $save_housepickup[9]
remove_pickup $save_housepickup[16]
remove_pickup $save_housepickup[17]
remove_pickup $save_housepickup[27]
remove_pickup $save_housepickup[28]
remove_pickup $save_housepickup[29]
return 

:LITCAS
script_name 'LITCAS'

:LITCAS_11
wait 100
if 
  is_player_playing $player1
goto_if_false @LITCAS_260
if 
  locate_char_any_means_3d $scplayer {x} 1941.146 {y} 997.5668 {z} 20.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @LITCAS_260
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @LITCAS_113
switch_widescreen True
set_player_control $player1 {state} False

:LITCAS_113
load_scene 2039.7321 {y} 1006.771 {z} 14.7353
set_fixed_camera_position 2040.725 {y} 1006.748 {z} 14.8482 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2039.7321 {y} 1006.771 {z} 14.7353 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
clear_prints 
print_now 'WUZ_HLP' {time} 5000 {flag} 1
wait 5000
gosub @LITCAS_267
if 
  is_player_playing $player1
goto_if_false @LITCAS_251
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
clear_prints 

:LITCAS_251
do_fade 500 {direction} Fade.In
terminate_this_script 

:LITCAS_260
goto @LITCAS_11

:LITCAS_267
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:LITCAS_282
if 
  get_fading_status 
goto_if_false @LITCAS_306
wait 0
goto @LITCAS_282

:LITCAS_306
return 

:Noname_1
terminate_this_script 

:PROJECT
script_name 'PROJECT'
10@ = 0
$points_scored = 0
$bball_throw_active = 1
if 
  10@ == -1
goto_if_false @PROJECT_94
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
9@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:PROJECT_94
wait 0
if 
  10@ == 0
goto_if_false @PROJECT_637
if 
  8@ == 1
goto_if_false @PROJECT_180
17@ = generate_random_float_in_range -0.2 {max} 0.2
add_float_lvar_to_float_lvar 4@ += 17@
17@ = generate_random_float_in_range -0.2 {max} 0.2
add_float_lvar_to_float_lvar 5@ += 17@

:PROJECT_180
6@ += 0.1
if 
  is_float_lvar_greater_than_float_lvar 3@ > 6@
goto_if_false @PROJECT_247
if 
  0.0 > 7@
goto_if_false @PROJECT_240
7@ = 0.0

:PROJECT_240
goto @PROJECT_334

:PROJECT_247
set_lvar_float_to_lvar_float 17@ = 3@
add_float_lvar_to_float_lvar 17@ += 7@
set_lvar_float_to_lvar_float 18@ = 17@
sub_float_lvar_from_float_lvar 18@ -= 6@
if 
  0.5 > 18@
goto_if_false @PROJECT_334
set_lvar_float_to_lvar_float 17@ = 6@
17@ += 0.5
set_lvar_float_to_lvar_float 7@ = 17@
sub_float_lvar_from_float_lvar 7@ -= 3@

:PROJECT_334
17@ = 0.5
17@ *= 9.8
set_lvar_float_to_lvar_float 18@ = 7@
div_float_lvar_by_float_lvar 18@ /= 17@
28@ = sqrt 18@
set_lvar_float_to_lvar_float 17@ = 3@
add_float_lvar_to_float_lvar 17@ += 7@
sub_float_lvar_from_float_lvar 17@ -= 6@
18@ = 0.5
18@ *= 9.8
set_lvar_float_to_lvar_float 19@ = 17@
div_float_lvar_by_float_lvar 19@ /= 18@
17@ = sqrt 19@
set_lvar_float_to_lvar_float 16@ = 28@
add_float_lvar_to_float_lvar 16@ += 17@
17@ = 0.0
sub_float_lvar_from_float_lvar 17@ -= 7@
set_lvar_float_to_lvar_float 18@ = 28@
mult_float_lvar_by_float_lvar 18@ *= 28@
set_lvar_float_to_lvar_float 29@ = 17@
div_float_lvar_by_float_lvar 29@ /= 18@
set_lvar_float_to_lvar_float 17@ = 28@
mult_float_lvar_by_float_lvar 17@ *= 29@
set_lvar_float_to_lvar_float 30@ = 17@
30@ *= -2.0
31@ = 0.0
set_lvar_float_to_lvar_float 26@ = 4@
sub_float_lvar_from_float_lvar 26@ -= 1@
set_lvar_float_to_lvar_float 27@ = 5@
sub_float_lvar_from_float_lvar 27@ -= 2@
11@ = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @PROJECT_630
set_object_records_collisions 0@ {state} True
set_object_collision 0@ {state} True
freeze_object_position 0@ {state} True

:PROJECT_630
10@ += 1

:PROJECT_637
if 
  10@ == 1
goto_if_false @PROJECT_1032
if 
  does_object_exist 0@
goto_if_false @PROJECT_1032
if 
  not has_object_collided_with_anything 0@
goto_if_false @PROJECT_954
12@ = get_game_timer 
set_lvar_int_to_lvar_int 13@ = 12@
sub_int_lvar_from_int_lvar 13@ -= 11@
cset_lvar_float_to_lvar_int 14@ =# 13@
14@ /= 1000.0
if 
  is_float_lvar_greater_than_float_lvar 16@ > 14@
goto_if_false @PROJECT_926
set_lvar_float_to_lvar_float 17@ = 14@
mult_float_lvar_by_float_lvar 17@ *= 14@
mult_float_lvar_by_float_lvar 17@ *= 29@
set_lvar_float_to_lvar_float 18@ = 30@
mult_float_lvar_by_float_lvar 18@ *= 14@
set_var_float_to_lvar_float $z = 17@
add_float_lvar_to_float_var $z += 18@
add_float_lvar_to_float_var $z += 31@
set_lvar_float_to_lvar_float 17@ = 14@
div_float_lvar_by_float_lvar 17@ /= 16@
set_var_float_to_lvar_float $x = 26@
mult_float_var_by_float_lvar $x *= 17@
set_var_float_to_lvar_float $y = 27@
mult_float_var_by_float_lvar $y *= 17@
set_lvar_float_to_lvar_float 20@ = 1@
add_float_var_to_float_lvar 20@ += $x
set_lvar_float_to_lvar_float 21@ = 2@
add_float_var_to_float_lvar 21@ += $y
set_lvar_float_to_lvar_float 22@ = 3@
add_float_var_to_float_lvar 22@ += $z
set_object_coordinates_and_velocity 0@ {x} 20@ {y} 21@ {z} 22@
goto @PROJECT_947

:PROJECT_926
set_object_coordinates_and_velocity 0@ {x} 4@ {y} 5@ {z} 6@
10@ += 1

:PROJECT_947
goto @PROJECT_1032

:PROJECT_954
gosub @PROJECT_1685
freeze_object_position 0@ {state} False
set_object_dynamic 0@ {state} True
set_object_collision 0@ {state} True
set_object_velocity 0@ {xSpeed} 23@ {ySpeed} 24@ {zSpeed} 25@
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1025
print_now 'BB_06' {time} 4000 {flag} 1

:PROJECT_1025
10@ = 99

:PROJECT_1032
if 
  10@ == 2
goto_if_false @PROJECT_1396
if 
  8@ == 1
goto_if_false @PROJECT_1208
if 
  does_object_exist 9@
goto_if_false @PROJECT_1179
15@ = get_object_model 9@
if 
  has_model_loaded 15@
goto_if_false @PROJECT_1179
gosub @PROJECT_1685
freeze_object_position 0@ {state} False
set_object_dynamic 0@ {state} True
set_object_collision 0@ {state} True
set_object_velocity 0@ {xSpeed} 23@ {ySpeed} 24@ {zSpeed} 25@
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1179
print_now 'BB_06' {time} 4000 {flag} 1

:PROJECT_1179
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundBasketballHitHoop
$points_scored = -1
10@ = 99
goto @PROJECT_1396

:PROJECT_1208
6@ += -0.5
if 
  6 > $bball_shot_dist
goto_if_false @PROJECT_1285
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1271
print_with_2_numbers_now 'BB_05' {num1} $bball_shot_dist {num2} $bball_shot_dist_decimal {duration} 5000 {style} TextStyle.Middle

:PROJECT_1271
$points_scored = 1
goto @PROJECT_1327

:PROJECT_1285
if 
  not is_message_being_displayed 
goto_if_false @PROJECT_1320
print_with_2_numbers_now 'BB_04' {num1} $bball_shot_dist {num2} $bball_shot_dist_decimal {duration} 5000 {style} TextStyle.Middle

:PROJECT_1320
$points_scored = 2

:PROJECT_1327
cset_lvar_float_to_var_int 17@ =# $bball_shot_dist
cset_lvar_float_to_var_int 18@ =# $bball_shot_dist_decimal
18@ *= 0.1
add_float_lvar_to_float_lvar 17@ += 18@
if 
  not are_measurements_in_metres 
goto_if_false @PROJECT_1382
convert_metres_to_feet 17@ {var_feet} 17@

:PROJECT_1382
register_float_stat StatId.LongestBasketball {value} 17@
10@ += 1

:PROJECT_1396
if 
  10@ == 3
goto_if_false @PROJECT_1651
$x, $y, $z = get_object_coordinates 0@
17@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 4@ {toY} 5@ {toZ} 6@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundBasketballScore
if 
  0.1 > 17@
goto_if_false @PROJECT_1535
freeze_object_position 0@ {state} False
set_object_collision 0@ {state} True
set_object_dynamic 0@ {state} True
set_object_velocity 0@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
10@ = 99
goto @PROJECT_1651

:PROJECT_1535
set_lvar_float_to_lvar_float 20@ = 4@
sub_float_var_from_float_lvar 20@ -= $x
set_lvar_float_to_lvar_float 21@ = 5@
sub_float_var_from_float_lvar 21@ -= $y
set_lvar_float_to_lvar_float 22@ = 6@
sub_float_var_from_float_lvar 22@ -= $z
20@ *= 0.3
21@ *= 0.3
22@ *= 0.3
add_float_lvar_to_float_var $x += 20@
add_float_lvar_to_float_var $y += 21@
add_float_lvar_to_float_var $z += 22@
set_object_coordinates 0@ {x} $x {y} $y {z} $z

:PROJECT_1651
if 
  10@ == 99
goto_if_false @PROJECT_1678
$bball_throw_active = 0
terminate_this_script 

:PROJECT_1678
goto @PROJECT_94

:PROJECT_1685
$x, $y, $z = get_object_coordinates 9@
17@ = generate_random_float_in_range -1.0 {max} 1.0
18@ = generate_random_float_in_range 0.2 {max} 1.0
19@ = generate_random_float_in_range 1.2 {max} 2.2
20@, 21@, 22@ = get_offset_from_object_in_world_coords 9@ {xOffset} 17@ {yOffset} 18@ {zOffset} 19@
set_lvar_float_to_lvar_float 23@ = 20@
sub_float_var_from_float_lvar 23@ -= $x
set_lvar_float_to_lvar_float 24@ = 21@
sub_float_var_from_float_lvar 24@ -= $y
set_lvar_float_to_lvar_float 25@ = 22@
sub_float_var_from_float_lvar 25@ -= $z
17@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 20@ {toY} 21@ {toZ} 22@
div_float_lvar_by_float_lvar 23@ /= 17@
div_float_lvar_by_float_lvar 24@ /= 17@
div_float_lvar_by_float_lvar 25@ /= 17@
set_lvar_float_to_lvar_float 17@ = 16@
17@ *= 5.0
mult_float_lvar_by_float_lvar 23@ *= 17@
mult_float_lvar_by_float_lvar 24@ *= 17@
mult_float_lvar_by_float_lvar 25@ *= 17@
return 

:Noname_2
terminate_this_script 

:BBCHAL
script_name 'BBCHAL'
19@ = 0
20@ = 0
21@ = 0
$bball_challenge_timer = 60500
$bball_challenge_score = 0
26@ = 0
27@ = 0
28@ = 0
29@ = 3000
30@ = 4.0
TIMERA = 0
TIMERB = 0
$bball_challenge_active = 1
if 
  19@ == -1
goto_if_false @BBCHAL_149
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:BBCHAL_149
wait 0
switch_start 19@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_244 {caseNum1} 0 {caseLabel1} @BBCHAL_216 {caseNum2} 1 {caseLabel2} @BBCHAL_230 {caseNum3} -1 {caseLabel3} @BBCHAL_244 {caseNum4} -1 {caseLabel4} @BBCHAL_244 {caseNum5} -1 {caseLabel5} @BBCHAL_244 {caseNum6} -1 {caseLabel6} @BBCHAL_244 {caseNum7} -1 {caseLabel7} @BBCHAL_244

:BBCHAL_216
gosub @BBCHAL_580
goto @BBCHAL_244

:BBCHAL_230
gosub @BBCHAL_916
goto @BBCHAL_244

:BBCHAL_244
if and
  $bball_active == 0
  $bball_throw_active == 0
goto_if_false @BBCHAL_276
gosub @BBCHAL_2538

:BBCHAL_276
gosub @BBCHAL_395
if 
  $bball_is_active == 0
goto_if_false @BBCHAL_308
gosub @BBCHAL_2538

:BBCHAL_308
if 
  $bball_r3_is_pressed == 0
goto_if_false @BBCHAL_364
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBCHAL_357
$bball_r3_is_pressed = 1
gosub @BBCHAL_2538

:BBCHAL_357
goto @BBCHAL_388

:BBCHAL_364
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBCHAL_388
$bball_r3_is_pressed = 0

:BBCHAL_388
goto @BBCHAL_149

:BBCHAL_395
switch_start 21@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_578 {caseNum1} 0 {caseLabel1} @BBCHAL_458 {caseNum2} 1 {caseLabel2} @BBCHAL_498 {caseNum3} 2 {caseLabel3} @BBCHAL_538 {caseNum4} -1 {caseLabel4} @BBCHAL_578 {caseNum5} -1 {caseLabel5} @BBCHAL_578 {caseNum6} -1 {caseLabel6} @BBCHAL_578 {caseNum7} -1 {caseLabel7} @BBCHAL_578

:BBCHAL_458
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @BBCHAL_491
print_help 'BB_11'
21@ += 1

:BBCHAL_491
goto @BBCHAL_578

:BBCHAL_498
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @BBCHAL_531
print_help 'BB_12'
21@ += 1

:BBCHAL_531
goto @BBCHAL_578

:BBCHAL_538
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @BBCHAL_571
print_help 'BB_10'
21@ += 1

:BBCHAL_571
goto @BBCHAL_578

:BBCHAL_578
return 

:BBCHAL_580
if 
  20@ == 0
goto_if_false @BBCHAL_628
print_now 'BB_13' {time} 5000 {flag} 1
TIMERA = 0
20@ += 1

:BBCHAL_628
if 
  20@ == 1
goto_if_false @BBCHAL_653
20@ += 1

:BBCHAL_653
if 
  20@ == 2
goto_if_false @BBCHAL_751
display_onscreen_timer_with_string $bball_challenge_timer {direction} TimerDirection.Down {text} 'BB_19'
display_nth_onscreen_counter_with_string $bball_challenge_score {display} CounterDisplay.Number {slot} 1 {text} 'BB_18'
display_nth_onscreen_counter_with_string $bball_challenge_high_score {display} CounterDisplay.Number {slot} 2 {text} 'BB_14'
gosub @BBCHAL_2396
1@ = add_blip_for_coord 14@ {y} 15@ {z} 16@
20@ += 1

:BBCHAL_751
if 
  20@ == 3
goto_if_false @BBCHAL_914
if 
  is_player_playing $player1
goto_if_false @BBCHAL_914
if 
  locate_char_on_foot_3d $scplayer {x} 14@ {y} 15@ {z} 16@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} True
goto_if_false @BBCHAL_904
if 
  $bball_throw_active == 1
goto_if_false @BBCHAL_887
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_866
remove_blip 1@

:BBCHAL_866
20@ = 1
19@ += 1
goto @BBCHAL_897

:BBCHAL_887
$bball_challenge_timer = 60500

:BBCHAL_897
goto @BBCHAL_914

:BBCHAL_904
$bball_challenge_timer = 60500

:BBCHAL_914
return 

:BBCHAL_916
if 
  20@ == 0
goto_if_false @BBCHAL_1135
if 
  $points_scored <> 0
goto_if_false @BBCHAL_1135
if 
  $points_scored > 0
goto_if_false @BBCHAL_1052
add_int_var_to_int_var $bball_challenge_score += $points_scored
add_int_lvar_to_int_var $bball_challenge_timer += 25@
30@ += 0.5
gosub @BBCHAL_2396
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_1024
remove_blip 1@

:BBCHAL_1024
1@ = add_blip_for_coord 14@ {y} 15@ {z} 16@
20@ += 1
goto @BBCHAL_1135

:BBCHAL_1052
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_1073
remove_blip 1@

:BBCHAL_1073
1@ = add_blip_for_coord 14@ {y} 15@ {z} 16@
if 
  27@ == 0
goto_if_false @BBCHAL_1128
print_now 'BB_20' {time} 5000 {flag} 1
27@ += 1

:BBCHAL_1128
20@ += 1

:BBCHAL_1135
if 
  20@ == 1
goto_if_false @BBCHAL_1380
if 
  is_player_playing $player1
goto_if_false @BBCHAL_1200
  locate_char_on_foot_3d $scplayer {x} 14@ {y} 15@ {z} 16@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} True

:BBCHAL_1200
if 
  $bball_throw_active == 1
goto_if_false @BBCHAL_1373
if 
  is_player_playing $player1
goto_if_false @BBCHAL_1366
if 
  locate_char_on_foot_3d $scplayer {x} 14@ {y} 15@ {z} 16@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} True
goto_if_false @BBCHAL_1318
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_1297
remove_blip 1@

:BBCHAL_1297
20@ = 0
$bball_throw_active = 0
goto @BBCHAL_1366

:BBCHAL_1318
if 
  28@ == 0
goto_if_false @BBCHAL_1359
print_now 'BB_16' {time} 5000 {flag} 1
28@ += 1

:BBCHAL_1359
$bball_throw_active = 0

:BBCHAL_1366
goto @BBCHAL_1380

:BBCHAL_1373
28@ = 0

:BBCHAL_1380
if 
  20@ == 3
goto_if_false @BBCHAL_1424
if 
  TIMERA > 5000
goto_if_false @BBCHAL_1424
gosub @BBCHAL_2538

:BBCHAL_1424
if 
  26@ == 0
goto_if_false @BBCHAL_1483
if 
  is_int_var_greater_than_int_var $bball_challenge_score > $bball_challenge_high_score
goto_if_false @BBCHAL_1476
set_var_int_to_var_int $bball_challenge_high_score = $bball_challenge_score
26@ += 1

:BBCHAL_1476
goto @BBCHAL_1510

:BBCHAL_1483
if 
  is_int_var_greater_than_int_var $bball_challenge_score > $bball_challenge_high_score
goto_if_false @BBCHAL_1510
set_var_int_to_var_int $bball_challenge_high_score = $bball_challenge_score

:BBCHAL_1510
if 
  0 >= $bball_challenge_timer
goto_if_false @BBCHAL_1576
if 
  3 > 20@
goto_if_false @BBCHAL_1569
print_now 'BB_17' {time} 5000 {flag} 1
TIMERA = 0

:BBCHAL_1569
20@ = 3

:BBCHAL_1576
return 

:BBCHAL_1578
if 
  does_object_exist 0@
goto_if_false @BBCHAL_2394
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
switch_start $hoop_direction {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBCHAL_1893 {caseNum1} 1 {caseLabel1} @BBCHAL_1705 {caseNum2} 2 {caseLabel2} @BBCHAL_1752 {caseNum3} 3 {caseLabel3} @BBCHAL_1799 {caseNum4} 4 {caseLabel4} @BBCHAL_1846 {caseNum5} -1 {caseLabel5} @BBCHAL_1893 {caseNum6} -1 {caseLabel6} @BBCHAL_1893 {caseNum7} -1 {caseLabel7} @BBCHAL_1893

:BBCHAL_1705
2@ += -1.5
3@ += 1.5
5@ += 1.5
6@ += -1.5
goto @BBCHAL_1893

:BBCHAL_1752
2@ += -1.5
3@ += -1.5
5@ += 1.5
6@ += 1.5
goto @BBCHAL_1893

:BBCHAL_1799
2@ += 1.5
3@ += -1.5
5@ += -1.5
6@ += 1.5
goto @BBCHAL_1893

:BBCHAL_1846
2@ += 1.5
3@ += 1.5
5@ += -1.5
6@ += -1.5
goto @BBCHAL_1893

:BBCHAL_1893
4@ += 5.0
16@ = get_ground_z_for_3d_coord 2@ {y} 3@ {z} 4@
if 
  is_float_lvar_greater_than_float_lvar 5@ > 2@
goto_if_false @BBCHAL_1954
14@ = generate_random_float_in_range 2@ {max} 5@
goto @BBCHAL_1965

:BBCHAL_1954
14@ = generate_random_float_in_range 5@ {max} 2@

:BBCHAL_1965
if 
  is_float_lvar_greater_than_float_lvar 6@ > 3@
goto_if_false @BBCHAL_2002
15@ = generate_random_float_in_range 3@ {max} 6@
goto @BBCHAL_2013

:BBCHAL_2002
15@ = generate_random_float_in_range 3@ {max} 6@

:BBCHAL_2013
set_lvar_float_to_lvar_float 8@ = 14@
sub_float_var_from_float_lvar 8@ -= $x
set_lvar_float_to_lvar_float 9@ = 15@
sub_float_var_from_float_lvar 9@ -= $y
17@ = get_distance_between_coords_2d $x {fromY} $y {toX} 14@ {toZ} 15@
div_float_lvar_by_float_lvar 8@ /= 17@
div_float_lvar_by_float_lvar 9@ /= 17@
mult_float_lvar_by_float_lvar 8@ *= 30@
mult_float_lvar_by_float_lvar 9@ *= 30@
set_lvar_float_to_var_float 14@ = $x
add_float_lvar_to_float_lvar 14@ += 8@
set_lvar_float_to_var_float 15@ = $y
add_float_lvar_to_float_lvar 15@ += 9@
if 
  is_float_lvar_greater_than_float_lvar 5@ > 2@
goto_if_false @BBCHAL_2206
if 
  is_float_lvar_greater_than_float_lvar 2@ > 14@
goto_if_false @BBCHAL_2172
set_lvar_float_to_lvar_float 14@ = 2@

:BBCHAL_2172
if 
  is_float_lvar_greater_than_float_lvar 14@ > 5@
goto_if_false @BBCHAL_2199
set_lvar_float_to_lvar_float 14@ = 5@

:BBCHAL_2199
goto @BBCHAL_2260

:BBCHAL_2206
if 
  is_float_lvar_greater_than_float_lvar 14@ > 2@
goto_if_false @BBCHAL_2233
set_lvar_float_to_lvar_float 14@ = 2@

:BBCHAL_2233
if 
  is_float_lvar_greater_than_float_lvar 5@ > 14@
goto_if_false @BBCHAL_2260
set_lvar_float_to_lvar_float 14@ = 5@

:BBCHAL_2260
if 
  is_float_lvar_greater_than_float_lvar 6@ > 3@
goto_if_false @BBCHAL_2340
if 
  is_float_lvar_greater_than_float_lvar 3@ > 15@
goto_if_false @BBCHAL_2306
set_lvar_float_to_lvar_float 15@ = 3@

:BBCHAL_2306
if 
  is_float_lvar_greater_than_float_lvar 15@ > 6@
goto_if_false @BBCHAL_2333
set_lvar_float_to_lvar_float 15@ = 6@

:BBCHAL_2333
goto @BBCHAL_2394

:BBCHAL_2340
if 
  is_float_lvar_greater_than_float_lvar 15@ > 3@
goto_if_false @BBCHAL_2367
set_lvar_float_to_lvar_float 15@ = 3@

:BBCHAL_2367
if 
  is_float_lvar_greater_than_float_lvar 6@ > 15@
goto_if_false @BBCHAL_2394
set_lvar_float_to_lvar_float 15@ = 6@

:BBCHAL_2394
return 

:BBCHAL_2396
gosub @BBCHAL_1578
if 
  does_object_exist 0@
goto_if_false @BBCHAL_2435
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0

:BBCHAL_2435
$distance = get_distance_between_coords_2d 14@ {fromY} 15@ {toX} $x {toZ} $y
cset_lvar_int_to_var_float 25@ =# $distance
mult_int_lvar_by_int_lvar 25@ *= 29@
cset_lvar_float_to_lvar_int 17@ =# 29@
17@ *= 0.1
cset_lvar_int_to_lvar_float 22@ =# 17@
22@ *= -1
add_int_lvar_to_int_lvar 29@ += 22@
if 
  500 > 29@
goto_if_false @BBCHAL_2536
29@ = 500

:BBCHAL_2536
return 

:BBCHAL_2538
clear_prints 
if 
  26@ <> 0
goto_if_false @BBCHAL_2589
print_with_number_big 'BB_15' {num} $bball_challenge_high_score {duration} 5000 {style} TextStyle.Middle
register_int_stat StatId.HighestScoreInBasketballChallenge {value} $bball_challenge_high_score
play_mission_passed_tune 1

:BBCHAL_2589
if 
  does_blip_exist 1@
goto_if_false @BBCHAL_2610
remove_blip 1@

:BBCHAL_2610
clear_onscreen_counter $bball_challenge_score
clear_onscreen_counter $bball_challenge_high_score
clear_onscreen_timer $bball_challenge_timer
$bball_challenge_active = 0
terminate_this_script 
return 

:Noname_3
terminate_this_script 

:LOWGAME
script_name 'LOWGAME'
12@ = 0.01
$lowrider_level = 0
13@ = 0
16@ = 0
$lowrider_pscore = 0
$lowrider_oscore = 0
18@ = 0
23@ = 0
24@ = 0
25@ = -1
27@ = 0
19@ = 0
if 
  13@ == -1
goto_if_false @LOWGAME_198
0@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
wait 0
wait 0

:LOWGAME_198
if 
  does_vehicle_exist 0@
goto_if_false @LOWGAME_244
if 
  is_car_dead 0@
goto_if_false @LOWGAME_237
goto @LOWGAME_8722

:LOWGAME_237
goto @LOWGAME_251

:LOWGAME_244
goto @LOWGAME_8722

:LOWGAME_251
if 
  does_vehicle_exist 1@
goto_if_false @LOWGAME_297
if 
  is_car_dead 1@
goto_if_false @LOWGAME_290
goto @LOWGAME_8722

:LOWGAME_290
goto @LOWGAME_304

:LOWGAME_297
goto @LOWGAME_8722

:LOWGAME_304
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWGAME_336
$lowrider_opposition_skill = 1
goto @LOWGAME_361

:LOWGAME_336
if 
  $lowrider_opposition_skill > 5
goto_if_false @LOWGAME_361
$lowrider_opposition_skill = 5

:LOWGAME_361
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_391
3@, 4@, 5@ = get_car_coordinates 0@

:LOWGAME_391
if 
  not is_car_dead 1@
goto_if_false @LOWGAME_421
6@, 7@, 8@ = get_car_coordinates 1@

:LOWGAME_421
$lowrider_game_is_active = 1

:LOWGAME_428
wait 0
if 
  5 > 13@
goto_if_false @LOWGAME_480
if 
  not does_vehicle_exist 0@
goto_if_false @LOWGAME_480
$bd_terminate_script = 1
13@ = 5

:LOWGAME_480
switch_start 13@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_7662 {caseNum1} 0 {caseLabel1} @LOWGAME_543 {caseNum2} 1 {caseLabel2} @LOWGAME_1319 {caseNum3} 2 {caseLabel3} @LOWGAME_1399 {caseNum4} 3 {caseLabel4} @LOWGAME_7512 {caseNum5} 4 {caseLabel5} @LOWGAME_7526 {caseNum6} 5 {caseLabel6} @LOWGAME_7601 {caseNum7} -1 {caseLabel7} @LOWGAME_7662

:LOWGAME_543
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 3@ {y} 4@ {z} 5@ {radius} 200.0 {clearParticles} True
request_animation "LOWRIDER"

:LOWGAME_587
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @LOWGAME_621
wait 0
goto @LOWGAME_587

:LOWGAME_621
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_696
lock_car_doors 0@ {lockStatus} CarLock.LockedPlayerInside
apply_brakes_to_players_car $player1 {state} True
set_car_proofs 0@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$x = 0.62
$y = 0.31
$z = -0.167

:LOWGAME_696
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 15@ {state} True
close_sequence_task 15@
if 
  not is_char_dead 2@
goto_if_false @LOWGAME_1068
if 
  is_char_attached_to_any_car 2@
goto_if_false @LOWGAME_1068
perform_sequence_task 2@ {sequence} 15@

:LOWGAME_1068
16@ = 0
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_1224
if or
  is_car_model 0@ {modelId} 534
  is_car_model 0@ {modelId} 535
  is_car_model 0@ {modelId} 576
goto_if_false @LOWGAME_1140
16@ = 1
goto @LOWGAME_1224

:LOWGAME_1140
if or
  is_car_model 0@ {modelId} 536
  is_car_model 0@ {modelId} 575
  is_car_model 0@ {modelId} 567
goto_if_false @LOWGAME_1217
17@ = get_current_car_mod 0@ {slot} ModSlot.Roof
if 
  17@ <> -1
goto_if_false @LOWGAME_1210
16@ = 1

:LOWGAME_1210
goto @LOWGAME_1224

:LOWGAME_1217
16@ = 1

:LOWGAME_1224
if 
  not is_char_dead 2@
goto_if_false @LOWGAME_1263
if 
  not is_char_attached_to_any_car 2@
goto_if_false @LOWGAME_1263
16@ = 1

:LOWGAME_1263
$lowr_perfect_beat_counter = 0
$lowr_good_beat_counter = 0
$lowr_bad_beat_counter = 0
$lowrider_pscore = 0
$lowr_overall_state = 0
$lowrider_oscore = 0
13@ += 1
goto @LOWGAME_7662

:LOWGAME_1319
17@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 17@ == 3
goto_if_false @LOWGAME_1392
display_nth_onscreen_counter_with_string $lowrider_pscore {display} CounterDisplay.Number {slot} 1 {text} 'LOWR1'
display_nth_onscreen_counter_with_string $lowrider_oscore {display} CounterDisplay.Number {slot} 2 {text} 'LOWR2'
13@ += 1
TIMERA = 0

:LOWGAME_1392
goto @LOWGAME_7662

:LOWGAME_1399
17@ = get_beat_track_status 
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @LOWGAME_1429
TIMERA = 90000

:LOWGAME_1429
20@, 21@, 22@ = get_beat_proximity -1
if 
  21@ <> 33
goto_if_false @LOWGAME_7491
force_big_message_and_counter True
gosub @LOWGAME_10566
20@, 21@, 22@ = get_beat_proximity 0
if 
  not is_int_lvar_equal_to_int_lvar 22@ == 25@
goto_if_false @LOWGAME_2071
28@ = -1
if 
  18@ <> 0
goto_if_false @LOWGAME_1984
if and
  20@ > -35
  35 > 20@
goto_if_false @LOWGAME_1607
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1586
28@ = 0
goto @LOWGAME_1600

:LOWGAME_1586
23@ = 1
28@ = 5

:LOWGAME_1600
goto @LOWGAME_1878

:LOWGAME_1607
if and
  20@ > -50
  50 > 20@
goto_if_false @LOWGAME_1686
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1665
28@ = 1
goto @LOWGAME_1679

:LOWGAME_1665
23@ = 1
28@ = 5

:LOWGAME_1679
goto @LOWGAME_1878

:LOWGAME_1686
if and
  20@ > -100
  100 > 20@
goto_if_false @LOWGAME_1765
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1744
28@ = 2
goto @LOWGAME_1758

:LOWGAME_1744
23@ = 1
28@ = 5

:LOWGAME_1758
goto @LOWGAME_1878

:LOWGAME_1765
if or
  20@ > -200
  200 > 20@
goto_if_false @LOWGAME_1878
if 
  is_int_lvar_equal_to_int_lvar 18@ == 21@
goto_if_false @LOWGAME_1864
23@ = 1
if 
  0 > 20@
goto_if_false @LOWGAME_1850
28@ = 3
goto @LOWGAME_1857

:LOWGAME_1850
28@ = 4

:LOWGAME_1857
goto @LOWGAME_1878

:LOWGAME_1864
23@ = 1
28@ = 5

:LOWGAME_1878
$BD_RenderHit = 1
if 
  28@ == 0
goto_if_false @LOWGAME_1924
set_var_int_to_constant $BD_RenderHit = 3
30@ += 1
goto @LOWGAME_1977

:LOWGAME_1924
if 
  28@ == 1
goto_if_false @LOWGAME_1963
set_var_int_to_constant $BD_RenderHit = 2
30@ += 1
goto @LOWGAME_1977

:LOWGAME_1963
set_var_int_to_constant $BD_RenderHit = 1
31@ += 1

:LOWGAME_1977
goto @LOWGAME_2024

:LOWGAME_1984
if 
  -200 > 20@
goto_if_false @LOWGAME_2024
23@ = 1
28@ = 3
31@ += 1

:LOWGAME_2024
if 
  28@ <> -1
goto_if_false @LOWGAME_2071
gosub @LOWGAME_9681
gosub @LOWGAME_10047
gosub @LOWGAME_8731
set_lvar_int_to_lvar_int 25@ = 22@

:LOWGAME_2071
if 
  0 > $lowrider_pscore
goto_if_false @LOWGAME_2096
$lowrider_pscore = 0

:LOWGAME_2096
if 
  not is_car_dead 0@
goto_if_false @LOWGAME_2239
if 
  not locate_car_2d 0@ {x} 3@ {y} 4@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @LOWGAME_2239
$x, $y, $z = get_car_coordinates 0@
set_lvar_float_to_lvar_float 9@ = 3@
sub_float_var_from_float_lvar 9@ -= $x
set_lvar_float_to_lvar_float 10@ = 4@
sub_float_var_from_float_lvar 10@ -= $y
mult_float_lvar_by_float_lvar 9@ *= 12@
mult_float_lvar_by_float_lvar 10@ *= 12@
apply_force_to_car 0@ {xOffset} 9@ {yOffset} 10@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWGAME_2239
if 
  not is_car_dead 1@
goto_if_false @LOWGAME_2382
if 
  not locate_car_2d 1@ {x} 6@ {y} 7@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @LOWGAME_2382
$x, $y, $z = get_car_coordinates 1@
set_lvar_float_to_lvar_float 9@ = 6@
sub_float_var_from_float_lvar 9@ -= $x
set_lvar_float_to_lvar_float 10@ = 7@
sub_float_var_from_float_lvar 10@ -= $y
mult_float_lvar_by_float_lvar 9@ *= 12@
mult_float_lvar_by_float_lvar 10@ *= 12@
apply_force_to_car 1@ {xOffset} 9@ {yOffset} 10@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWGAME_2382
if and
  100 > 20@
  20@ > -100
goto_if_false @LOWGAME_2912
if 
  21@ == 9
goto_if_false @LOWGAME_2465
$wheel_fl = 1.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2465
if 
  21@ == 10
goto_if_false @LOWGAME_2523
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 1.0

:LOWGAME_2523
if 
  21@ == 11
goto_if_false @LOWGAME_2581
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0

:LOWGAME_2581
if 
  21@ == 12
goto_if_false @LOWGAME_2639
$wheel_fl = 0.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2639
if 
  21@ == 13
goto_if_false @LOWGAME_2697
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0

:LOWGAME_2697
if 
  21@ == 14
goto_if_false @LOWGAME_2755
$wheel_fl = 0.0
$wheel_bl = 1.0
$wheel_fr = 0.0
$wheel_br = 1.0

:LOWGAME_2755
if 
  21@ == 15
goto_if_false @LOWGAME_2813
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2813
if 
  21@ == 16
goto_if_false @LOWGAME_2871
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 1.0

:LOWGAME_2871
if 
  not is_int_lvar_equal_to_int_lvar 22@ == 27@
goto_if_false @LOWGAME_2905
gosub @LOWGAME_7669
set_lvar_int_to_lvar_int 27@ = 22@

:LOWGAME_2905
goto @LOWGAME_2952

:LOWGAME_2912
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0

:LOWGAME_2952
if 
  not is_car_dead 1@
goto_if_false @LOWGAME_3001
if 
  does_car_have_hydraulics 1@
goto_if_false @LOWGAME_3001
control_car_hydraulics 1@ {_p2} $wheel_fl {_p3} $wheel_bl {_p4} $wheel_fr {_p5} $wheel_br

:LOWGAME_3001
if 
  16@ == 0
goto_if_false @LOWGAME_7453
if 
  $lowrider_level == -1
goto_if_false @LOWGAME_3062
if 
  18@ <> 0
goto_if_false @LOWGAME_3062
$lowrider_level = 0

:LOWGAME_3062
if 
  $lowrider_level == 0
goto_if_false @LOWGAME_3112
if 
  30@ > 5
goto_if_false @LOWGAME_3112
$lowrider_level += 1
30@ = 0

:LOWGAME_3112
if 
  $lowrider_level == 1
goto_if_false @LOWGAME_3169
if 
  30@ > 5
goto_if_false @LOWGAME_3169
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3169
if 
  $lowrider_level == 2
goto_if_false @LOWGAME_3258
if 
  30@ > 5
goto_if_false @LOWGAME_3226
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3226
if 
  31@ > 1
goto_if_false @LOWGAME_3258
$lowrider_level -= 1
31@ = 0

:LOWGAME_3258
if 
  $lowrider_level == 3
goto_if_false @LOWGAME_3347
if 
  30@ > 5
goto_if_false @LOWGAME_3315
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3315
if 
  31@ > 1
goto_if_false @LOWGAME_3347
$lowrider_level -= 1
31@ = 0

:LOWGAME_3347
if 
  $lowrider_level == 4
goto_if_false @LOWGAME_3436
if 
  30@ > 5
goto_if_false @LOWGAME_3404
$lowrider_level += 1
30@ = 0
31@ = 0

:LOWGAME_3404
if 
  31@ > 1
goto_if_false @LOWGAME_3436
$lowrider_level -= 1
31@ = 0

:LOWGAME_3436
if 
  $lowrider_level == 5
goto_if_false @LOWGAME_3493
if 
  31@ > 1
goto_if_false @LOWGAME_3493
$lowrider_level -= 1
30@ = 0
31@ = 0

:LOWGAME_3493
if 
  not is_char_dead 2@
goto_if_false @LOWGAME_7453
if 
  not is_int_var_equal_to_int_var $lowrider_last_level == $lowrider_level
goto_if_false @LOWGAME_5115
if 
  $lowrider_level == -1
goto_if_false @LOWGAME_3699
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_sequence_to_repeat 15@ {state} True
close_sequence_task 15@

:LOWGAME_3699
if and
  $lowrider_last_level == -1
  $lowrider_level == 0
goto_if_false @LOWGAME_3855
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLE_TO_L0" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_3855
if and
  $lowrider_last_level == 0
  $lowrider_level == 1
goto_if_false @LOWGAME_4009
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_TO_L1" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4009
if and
  $lowrider_last_level == 1
  $lowrider_level == 2
goto_if_false @LOWGAME_4163
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_TO_L2" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L2_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4163
if and
  $lowrider_last_level == 2
  $lowrider_level == 3
goto_if_false @LOWGAME_4317
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L2_TO_L3" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L3_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4317
if and
  $lowrider_last_level == 3
  $lowrider_level == 4
goto_if_false @LOWGAME_4471
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L3_TO_L4" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L4_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4471
if and
  $lowrider_last_level == 4
  $lowrider_level == 5
goto_if_false @LOWGAME_4625
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L4_TO_L5" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L5_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4625
if and
  $lowrider_last_level > 1
  $lowrider_level == 1
goto_if_false @LOWGAME_4781
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L345_TO_L1" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4781
if and
  $lowrider_last_level == 1
  $lowrider_level == 0
goto_if_false @LOWGAME_4936
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L12_TO_L0" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 15@
perform_sequence_task 2@ {sequence} 15@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_4936
if and
  $lowrider_last_level == 0
  $lowrider_level == -1
goto_if_false @LOWGAME_5107
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_IDLELOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_5107
set_var_int_to_var_int $lowrider_last_level = $lowrider_level

:LOWGAME_5115
if and
  not is_int_lvar_equal_to_int_lvar 19@ == 18@
  18@ <> 0
goto_if_false @LOWGAME_6256
17@ = 0
26@ = 1.0
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_IDLE_TO_L0"
goto_if_false @LOWGAME_5220
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_IDLE_TO_L0"

:LOWGAME_5220
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L12_TO_L0"
goto_if_false @LOWGAME_5280
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L12_TO_L0"

:LOWGAME_5280
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L345_TO_L1"
goto_if_false @LOWGAME_5342
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L345_TO_L1"

:LOWGAME_5342
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L0_TO_L1"
goto_if_false @LOWGAME_5400
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L0_TO_L1"

:LOWGAME_5400
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L1_TO_L2"
goto_if_false @LOWGAME_5458
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L1_TO_L2"

:LOWGAME_5458
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L2_TO_L3"
goto_if_false @LOWGAME_5516
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L2_TO_L3"

:LOWGAME_5516
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L3_TO_L4"
goto_if_false @LOWGAME_5574
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L3_TO_L4"

:LOWGAME_5574
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L4_TO_L5"
goto_if_false @LOWGAME_5632
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L4_TO_L5"

:LOWGAME_5632
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_BDBNCE"
goto_if_false @LOWGAME_5686
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_BDBNCE"

:LOWGAME_5686
if 
  0.9 > 26@
goto_if_false @LOWGAME_5714
17@ = 1

:LOWGAME_5714
if 
  17@ == 0
goto_if_false @LOWGAME_6248
if 
  $lowrider_level == 0
goto_if_false @LOWGAME_5818
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L0_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_5818
if 
  $lowrider_level == 1
goto_if_false @LOWGAME_5904
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_5904
if 
  $lowrider_level == 2
goto_if_false @LOWGAME_5990
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L2_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_5990
if 
  $lowrider_level == 3
goto_if_false @LOWGAME_6076
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L3_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_6076
if 
  $lowrider_level == 4
goto_if_false @LOWGAME_6162
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L4_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_6162
if 
  $lowrider_level == 5
goto_if_false @LOWGAME_6248
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L5_BNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@

:LOWGAME_6248
set_lvar_int_to_lvar_int 19@ = 18@

:LOWGAME_6256
if 
  23@ == 1
goto_if_false @LOWGAME_6489
if 
  18@ == 0
goto_if_false @LOWGAME_6482
if 
  $lowrider_level > 0
goto_if_false @LOWGAME_6482
if 
  not is_char_playing_anim 2@ {animationName} "LRGIRL_BDBNCE"
goto_if_false @LOWGAME_6468
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_BDBNCE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 14@
perform_sequence_task 2@ {sequence} 14@
clear_sequence_task 14@
clear_sequence_task 15@
15@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_L1_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 15@

:LOWGAME_6468
$lowrider_level = 1
$lowrider_last_level = 1

:LOWGAME_6482
23@ = 0

:LOWGAME_6489
17@ = 0
26@ = 1.0
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_BDBNCE"
goto_if_false @LOWGAME_6560
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_BDBNCE"

:LOWGAME_6560
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_IDLE_TO_L0"
goto_if_false @LOWGAME_6622
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_IDLE_TO_L0"

:LOWGAME_6622
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L12_TO_L0"
goto_if_false @LOWGAME_6682
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L12_TO_L0"

:LOWGAME_6682
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L345_TO_L1"
goto_if_false @LOWGAME_6744
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L345_TO_L1"

:LOWGAME_6744
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L0_BNCE"
goto_if_false @LOWGAME_6800
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L0_BNCE"

:LOWGAME_6800
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L0_TO_L1"
goto_if_false @LOWGAME_6858
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L0_TO_L1"

:LOWGAME_6858
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L1_TO_L2"
goto_if_false @LOWGAME_6916
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L1_TO_L2"

:LOWGAME_6916
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L2_TO_L3"
goto_if_false @LOWGAME_6974
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L2_TO_L3"

:LOWGAME_6974
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L3_TO_L4"
goto_if_false @LOWGAME_7032
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L3_TO_L4"

:LOWGAME_7032
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L4_TO_L5"
goto_if_false @LOWGAME_7090
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L4_TO_L5"

:LOWGAME_7090
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L1_BNCE"
goto_if_false @LOWGAME_7146
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L1_BNCE"

:LOWGAME_7146
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L2_BNCE"
goto_if_false @LOWGAME_7202
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L2_BNCE"

:LOWGAME_7202
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L3_BNCE"
goto_if_false @LOWGAME_7258
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L3_BNCE"

:LOWGAME_7258
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L4_BNCE"
goto_if_false @LOWGAME_7314
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L4_BNCE"

:LOWGAME_7314
if 
  is_char_playing_anim 2@ {animationName} "LRGIRL_L5_BNCE"
goto_if_false @LOWGAME_7370
26@ = get_char_anim_current_time 2@ {animationName} "LRGIRL_L5_BNCE"

:LOWGAME_7370
if 
  0.9 > 26@
goto_if_false @LOWGAME_7398
17@ = 1

:LOWGAME_7398
if 
  17@ == 0
goto_if_false @LOWGAME_7453
17@ = get_script_task_status 2@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 17@ == 7
goto_if_false @LOWGAME_7453
perform_sequence_task 2@ {sequence} 15@

:LOWGAME_7453
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @LOWGAME_7484
$lowrider_pscore = 0
13@ += 1

:LOWGAME_7484
goto @LOWGAME_7505

:LOWGAME_7491
13@ += 1
TIMERA = 0

:LOWGAME_7505
goto @LOWGAME_7662

:LOWGAME_7512
13@ += 1
goto @LOWGAME_7662

:LOWGAME_7526
if 
  is_player_playing $player1
goto_if_false @LOWGAME_7549
set_player_control $player1 {state} False

:LOWGAME_7549
do_fade 500 {direction} Fade.Out

:LOWGAME_7556
if 
  get_fading_status 
goto_if_false @LOWGAME_7580
wait 0
goto @LOWGAME_7556

:LOWGAME_7580
$bd_terminate_script = 1
13@ += 1
goto @LOWGAME_7662

:LOWGAME_7601
17@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 17@ == 3
goto_if_false @LOWGAME_7626
stop_beat_track 

:LOWGAME_7626
clear_onscreen_counter $lowrider_pscore
clear_onscreen_counter $lowrider_oscore
remove_animation "LOWRIDER"
goto @LOWGAME_8722
goto @LOWGAME_7662

:LOWGAME_7662
goto @LOWGAME_428

:LOWGAME_7669
17@ = generate_random_int_in_range 0 {max} 10
if or
  $lowrider_opposition_skill == 0
  $lowrider_opposition_skill == 1
goto_if_false @LOWGAME_7894
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_7887 {caseNum1} 0 {caseLabel1} @LOWGAME_7831 {caseNum2} 1 {caseLabel2} @LOWGAME_7831 {caseNum3} 2 {caseLabel3} @LOWGAME_7845 {caseNum4} 3 {caseLabel4} @LOWGAME_7845 {caseNum5} 4 {caseLabel5} @LOWGAME_7845 {caseNum6} 5 {caseLabel6} @LOWGAME_7845 {caseNum7} 6 {caseLabel7} @LOWGAME_7859
switch_continued 7 {caseLabel1} @LOWGAME_7859 {caseNum2} 8 {caseLabel2} @LOWGAME_7859 {caseNum3} 9 {caseLabel3} @LOWGAME_7873 {caseNum4} -1 {caseLabel4} @LOWGAME_7887 {caseNum5} -1 {caseLabel5} @LOWGAME_7887 {caseNum6} -1 {caseLabel6} @LOWGAME_7887 {caseNum7} -1 {caseLabel7} @LOWGAME_7887 {caseNum8} -1 {caseLabel8} @LOWGAME_7887 {caseNum9} -1 {caseLabel9} @LOWGAME_7887

:LOWGAME_7831
$lowrider_oscore += 0
goto @LOWGAME_7887

:LOWGAME_7845
$lowrider_oscore += 10
goto @LOWGAME_7887

:LOWGAME_7859
$lowrider_oscore += 20
goto @LOWGAME_7887

:LOWGAME_7873
$lowrider_oscore += 50
goto @LOWGAME_7887

:LOWGAME_7887
goto @LOWGAME_8695

:LOWGAME_7894
if 
  $lowrider_opposition_skill == 2
goto_if_false @LOWGAME_8103
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8096 {caseNum1} 0 {caseLabel1} @LOWGAME_8040 {caseNum2} 1 {caseLabel2} @LOWGAME_8054 {caseNum3} 2 {caseLabel3} @LOWGAME_8054 {caseNum4} 3 {caseLabel4} @LOWGAME_8054 {caseNum5} 4 {caseLabel5} @LOWGAME_8054 {caseNum6} 5 {caseLabel6} @LOWGAME_8068 {caseNum7} 6 {caseLabel7} @LOWGAME_8068
switch_continued 7 {caseLabel1} @LOWGAME_8068 {caseNum2} 8 {caseLabel2} @LOWGAME_8082 {caseNum3} 9 {caseLabel3} @LOWGAME_8082 {caseNum4} -1 {caseLabel4} @LOWGAME_8096 {caseNum5} -1 {caseLabel5} @LOWGAME_8096 {caseNum6} -1 {caseLabel6} @LOWGAME_8096 {caseNum7} -1 {caseLabel7} @LOWGAME_8096 {caseNum8} -1 {caseLabel8} @LOWGAME_8096 {caseNum9} -1 {caseLabel9} @LOWGAME_8096

:LOWGAME_8040
$lowrider_oscore += 0
goto @LOWGAME_8096

:LOWGAME_8054
$lowrider_oscore += 10
goto @LOWGAME_8096

:LOWGAME_8068
$lowrider_oscore += 20
goto @LOWGAME_8096

:LOWGAME_8082
$lowrider_oscore += 50
goto @LOWGAME_8096

:LOWGAME_8096
goto @LOWGAME_8695

:LOWGAME_8103
if 
  $lowrider_opposition_skill == 3
goto_if_false @LOWGAME_8312
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8305 {caseNum1} 0 {caseLabel1} @LOWGAME_8249 {caseNum2} 1 {caseLabel2} @LOWGAME_8263 {caseNum3} 2 {caseLabel3} @LOWGAME_8263 {caseNum4} 3 {caseLabel4} @LOWGAME_8263 {caseNum5} 4 {caseLabel5} @LOWGAME_8277 {caseNum6} 5 {caseLabel6} @LOWGAME_8277 {caseNum7} 6 {caseLabel7} @LOWGAME_8277
switch_continued 7 {caseLabel1} @LOWGAME_8291 {caseNum2} 8 {caseLabel2} @LOWGAME_8291 {caseNum3} 9 {caseLabel3} @LOWGAME_8291 {caseNum4} -1 {caseLabel4} @LOWGAME_8305 {caseNum5} -1 {caseLabel5} @LOWGAME_8305 {caseNum6} -1 {caseLabel6} @LOWGAME_8305 {caseNum7} -1 {caseLabel7} @LOWGAME_8305 {caseNum8} -1 {caseLabel8} @LOWGAME_8305 {caseNum9} -1 {caseLabel9} @LOWGAME_8305

:LOWGAME_8249
$lowrider_oscore += 0
goto @LOWGAME_8305

:LOWGAME_8263
$lowrider_oscore += 10
goto @LOWGAME_8305

:LOWGAME_8277
$lowrider_oscore += 20
goto @LOWGAME_8305

:LOWGAME_8291
$lowrider_oscore += 50
goto @LOWGAME_8305

:LOWGAME_8305
goto @LOWGAME_8695

:LOWGAME_8312
if 
  $lowrider_opposition_skill == 4
goto_if_false @LOWGAME_8507
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8500 {caseNum1} 0 {caseLabel1} @LOWGAME_8458 {caseNum2} 1 {caseLabel2} @LOWGAME_8458 {caseNum3} 2 {caseLabel3} @LOWGAME_8458 {caseNum4} 3 {caseLabel4} @LOWGAME_8472 {caseNum5} 4 {caseLabel5} @LOWGAME_8472 {caseNum6} 5 {caseLabel6} @LOWGAME_8472 {caseNum7} 6 {caseLabel7} @LOWGAME_8472
switch_continued 7 {caseLabel1} @LOWGAME_8486 {caseNum2} 8 {caseLabel2} @LOWGAME_8486 {caseNum3} 9 {caseLabel3} @LOWGAME_8486 {caseNum4} -1 {caseLabel4} @LOWGAME_8500 {caseNum5} -1 {caseLabel5} @LOWGAME_8500 {caseNum6} -1 {caseLabel6} @LOWGAME_8500 {caseNum7} -1 {caseLabel7} @LOWGAME_8500 {caseNum8} -1 {caseLabel8} @LOWGAME_8500 {caseNum9} -1 {caseLabel9} @LOWGAME_8500

:LOWGAME_8458
$lowrider_oscore += 10
goto @LOWGAME_8500

:LOWGAME_8472
$lowrider_oscore += 20
goto @LOWGAME_8500

:LOWGAME_8486
$lowrider_oscore += 50
goto @LOWGAME_8500

:LOWGAME_8500
goto @LOWGAME_8695

:LOWGAME_8507
if 
  $lowrider_opposition_skill == 5
goto_if_false @LOWGAME_8695
switch_start 17@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_8695 {caseNum1} 0 {caseLabel1} @LOWGAME_8653 {caseNum2} 1 {caseLabel2} @LOWGAME_8653 {caseNum3} 2 {caseLabel3} @LOWGAME_8667 {caseNum4} 3 {caseLabel4} @LOWGAME_8667 {caseNum5} 4 {caseLabel5} @LOWGAME_8667 {caseNum6} 5 {caseLabel6} @LOWGAME_8667 {caseNum7} 6 {caseLabel7} @LOWGAME_8681
switch_continued 7 {caseLabel1} @LOWGAME_8681 {caseNum2} 8 {caseLabel2} @LOWGAME_8681 {caseNum3} 9 {caseLabel3} @LOWGAME_8681 {caseNum4} -1 {caseLabel4} @LOWGAME_8695 {caseNum5} -1 {caseLabel5} @LOWGAME_8695 {caseNum6} -1 {caseLabel6} @LOWGAME_8695 {caseNum7} -1 {caseLabel7} @LOWGAME_8695 {caseNum8} -1 {caseLabel8} @LOWGAME_8695 {caseNum9} -1 {caseLabel9} @LOWGAME_8695

:LOWGAME_8653
$lowrider_oscore += 10
goto @LOWGAME_8695

:LOWGAME_8667
$lowrider_oscore += 20
goto @LOWGAME_8695

:LOWGAME_8681
$lowrider_oscore += 50
goto @LOWGAME_8695

:LOWGAME_8695
if 
  0 > $lowrider_oscore
goto_if_false @LOWGAME_8720
$lowrider_oscore = 0

:LOWGAME_8720
return 

:LOWGAME_8722
$lowrider_game_is_active = 0
terminate_this_script 

:LOWGAME_8731
switch_start 28@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @LOWGAME_8844 {caseNum1} 0 {caseLabel1} @LOWGAME_8794 {caseNum2} 1 {caseLabel2} @LOWGAME_8811 {caseNum3} 2 {caseLabel3} @LOWGAME_8828 {caseNum4} -1 {caseLabel4} @LOWGAME_8860 {caseNum5} -1 {caseLabel5} @LOWGAME_8860 {caseNum6} -1 {caseLabel6} @LOWGAME_8860 {caseNum7} -1 {caseLabel7} @LOWGAME_8860

:LOWGAME_8794
shake_pad PadId.Pad1 {time} 200 {intensity} 255
goto @LOWGAME_8860

:LOWGAME_8811
shake_pad PadId.Pad1 {time} 200 {intensity} 200
goto @LOWGAME_8860

:LOWGAME_8828
shake_pad PadId.Pad1 {time} 200 {intensity} 110
goto @LOWGAME_8860

:LOWGAME_8844
shake_pad PadId.Pad1 {time} 200 {intensity} 50
goto @LOWGAME_8860

:LOWGAME_8860
switch_start 29@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @LOWGAME_8923 {caseNum1} 2 {caseLabel1} @LOWGAME_9175 {caseNum2} 3 {caseLabel2} @LOWGAME_9427 {caseNum3} -1 {caseLabel3} @LOWGAME_9679 {caseNum4} -1 {caseLabel4} @LOWGAME_9679 {caseNum5} -1 {caseLabel5} @LOWGAME_9679 {caseNum6} -1 {caseLabel6} @LOWGAME_9679 {caseNum7} -1 {caseLabel7} @LOWGAME_9679

:LOWGAME_8923
if 
  28@ == 0
goto_if_false @LOWGAME_8957
print_big 'DNC_005' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_8957
if 
  28@ == 1
goto_if_false @LOWGAME_8991
print_big 'DNC_006' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_8991
if 
  28@ == 2
goto_if_false @LOWGAME_9025
print_big 'DNC_007' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9025
if 
  28@ == 3
goto_if_false @LOWGAME_9059
print_big 'DNC_008' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9059
if 
  28@ == 4
goto_if_false @LOWGAME_9093
print_big 'DNC_009' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9093
if 
  28@ == 5
goto_if_false @LOWGAME_9127
print_big 'DNC_010' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9127
if 
  28@ == 6
goto_if_false @LOWGAME_9161
print_big 'DNC_011' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9161
29@ = 2
goto @LOWGAME_9679

:LOWGAME_9175
if 
  28@ == 0
goto_if_false @LOWGAME_9209
print_big 'DNC_012' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9209
if 
  28@ == 1
goto_if_false @LOWGAME_9243
print_big 'DNC_013' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9243
if 
  28@ == 2
goto_if_false @LOWGAME_9277
print_big 'DNC_014' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9277
if 
  28@ == 3
goto_if_false @LOWGAME_9311
print_big 'DNC_015' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9311
if 
  28@ == 4
goto_if_false @LOWGAME_9345
print_big 'DNC_016' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9345
if 
  28@ == 5
goto_if_false @LOWGAME_9379
print_big 'DNC_017' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9379
if 
  28@ == 6
goto_if_false @LOWGAME_9413
print_big 'DNC_018' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9413
29@ += 1
goto @LOWGAME_9679

:LOWGAME_9427
if 
  28@ == 0
goto_if_false @LOWGAME_9461
print_big 'DNC_019' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9461
if 
  28@ == 1
goto_if_false @LOWGAME_9495
print_big 'DNC_020' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9495
if 
  28@ == 2
goto_if_false @LOWGAME_9529
print_big 'DNC_021' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9529
if 
  28@ == 3
goto_if_false @LOWGAME_9563
print_big 'DNC_022' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9563
if 
  28@ == 4
goto_if_false @LOWGAME_9597
print_big 'DNC_023' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9597
if 
  28@ == 5
goto_if_false @LOWGAME_9631
print_big 'DNC_024' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9631
if 
  28@ == 6
goto_if_false @LOWGAME_9665
print_big 'DNC_025' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:LOWGAME_9665
29@ += 1
goto @LOWGAME_9679

:LOWGAME_9679
return 

:LOWGAME_9681
set_lvar_int_to_var_int 17@ = $lowr_good_beat_counter
add_int_var_to_int_lvar 17@ += $lowr_bad_beat_counter
add_int_var_to_int_lvar 17@ += $lowr_perfect_beat_counter
if 
  17@ > 0
goto_if_false @LOWGAME_10045
if 
  17@ >= 4
goto_if_false @LOWGAME_10045
if 
  $lowr_perfect_beat_counter == 4
goto_if_false @LOWGAME_9848
if or
  $lowr_overall_state == 1
  $lowr_overall_state == 2
goto_if_false @LOWGAME_9816
print_big 'DNC_002' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 2
goto @LOWGAME_9841

:LOWGAME_9816
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 1

:LOWGAME_9841
goto @LOWGAME_10024

:LOWGAME_9848
if 
  is_int_var_greater_than_int_var $lowr_good_beat_counter > $lowr_bad_beat_counter
goto_if_false @LOWGAME_9899
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 1
goto @LOWGAME_10024

:LOWGAME_9899
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_9949
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 1
goto @LOWGAME_10024

:LOWGAME_9949
if 
  $lowr_overall_state == 1
goto_if_false @LOWGAME_9999
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 0
goto @LOWGAME_10024

:LOWGAME_9999
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
$lowr_overall_state = 0

:LOWGAME_10024
$lowr_perfect_beat_counter = 0
$lowr_good_beat_counter = 0
$lowr_bad_beat_counter = 0

:LOWGAME_10045
return 

:LOWGAME_10047
switch_start 28@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @LOWGAME_10533 {caseNum1} 0 {caseLabel1} @LOWGAME_10110 {caseNum2} 1 {caseLabel2} @LOWGAME_10199 {caseNum3} 2 {caseLabel3} @LOWGAME_10288 {caseNum4} 3 {caseLabel4} @LOWGAME_10377 {caseNum5} 4 {caseLabel5} @LOWGAME_10416 {caseNum6} 5 {caseLabel6} @LOWGAME_10455 {caseNum7} 6 {caseLabel7} @LOWGAME_10494

:LOWGAME_10110
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10185
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10178
17@ = 50
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10185

:LOWGAME_10178
$lowrider_pscore += 50

:LOWGAME_10185
$lowr_perfect_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10199
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10274
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10267
17@ = 20
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10274

:LOWGAME_10267
$lowrider_pscore += 20

:LOWGAME_10274
$lowr_good_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10288
if 
  999999 > $lowrider_pscore
goto_if_false @LOWGAME_10363
if 
  $lowr_overall_state == 2
goto_if_false @LOWGAME_10356
17@ = 10
17@ *= 10
add_int_lvar_to_int_var $lowrider_pscore += 17@
goto @LOWGAME_10363

:LOWGAME_10356
$lowrider_pscore += 10

:LOWGAME_10363
$lowr_good_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10377
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10402
$lowrider_pscore += 0

:LOWGAME_10402
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10416
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10441
$lowrider_pscore += 0

:LOWGAME_10441
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10455
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10480
$lowrider_pscore += 0

:LOWGAME_10480
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10494
if 
  $lowrider_pscore > 0
goto_if_false @LOWGAME_10519
$lowrider_pscore += 0

:LOWGAME_10519
$lowr_bad_beat_counter += 1
goto @LOWGAME_10533

:LOWGAME_10533
if 
  $lowrider_pscore > 999999
goto_if_false @LOWGAME_10564
$lowrider_pscore = 999999

:LOWGAME_10564
return 

:LOWGAME_10566
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 26@ =# $RStickX
set_lvar_float_to_lvar_float 9@ = 26@
cset_lvar_float_to_var_int 26@ =# $RStickY
set_lvar_float_to_lvar_float 10@ = 26@
26@ = get_distance_between_coords_2d 0.0 {fromY} 0.0 {toX} 9@ {toZ} 10@
18@ = 0
if 
  26@ > 64.0
goto_if_false @LOWGAME_10927
26@ = get_angle_between_2d_vectors 9@ {y1} 10@ {x2} 0.0 {y2} -1.0
if 
  15.0 > 26@
goto_if_false @LOWGAME_10719
18@ = 13
goto @LOWGAME_10927

:LOWGAME_10719
if 
  75.0 > 26@
goto_if_false @LOWGAME_10786
if 
  $RStickX > 0
goto_if_false @LOWGAME_10772
18@ = 11
goto @LOWGAME_10779

:LOWGAME_10772
18@ = 15

:LOWGAME_10779
goto @LOWGAME_10927

:LOWGAME_10786
if 
  105.0 > 26@
goto_if_false @LOWGAME_10853
if 
  $RStickX > 0
goto_if_false @LOWGAME_10839
18@ = 10
goto @LOWGAME_10846

:LOWGAME_10839
18@ = 9

:LOWGAME_10846
goto @LOWGAME_10927

:LOWGAME_10853
if 
  165.0 > 26@
goto_if_false @LOWGAME_10920
if 
  $RStickX > 0
goto_if_false @LOWGAME_10906
18@ = 16
goto @LOWGAME_10913

:LOWGAME_10906
18@ = 12

:LOWGAME_10913
goto @LOWGAME_10927

:LOWGAME_10920
18@ = 14

:LOWGAME_10927
return 

:Noname_4
terminate_this_script 

:AUDIOL
script_name 'AUDIOL'
8@ = 0
if 
  8@ == -1
goto_if_false @AUDIOL_60
0@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:AUDIOL_60
if 
  $audio_line_is_active <> 0
goto_if_false @AUDIOL_169
if 
  2@ == 1
goto_if_false @AUDIOL_162
clear_mission_audio 3@

:AUDIOL_101
if 
  $audio_line_is_active <> 0
goto_if_false @AUDIOL_155
if 
  $audio_line_terminate_all == 1
goto_if_false @AUDIOL_144
goto @AUDIOL_737

:AUDIOL_144
wait 0
goto @AUDIOL_101

:AUDIOL_155
goto @AUDIOL_169

:AUDIOL_162
goto @AUDIOL_737

:AUDIOL_169
set_lvar_text_label 5@s = s$audio_string
set_lvar_int_to_var_int 7@ = $audio_sound_file
$audio_line_is_active = 1

:AUDIOL_192
if 
  $audio_line_terminate_all == 1
goto_if_false @AUDIOL_217
goto @AUDIOL_662

:AUDIOL_217
switch_start 8@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @AUDIOL_651 {caseNum1} 0 {caseLabel1} @AUDIOL_280 {caseNum2} 1 {caseLabel2} @AUDIOL_362 {caseNum3} 2 {caseLabel3} @AUDIOL_531 {caseNum4} 3 {caseLabel4} @AUDIOL_637 {caseNum5} -1 {caseLabel5} @AUDIOL_651 {caseNum6} -1 {caseLabel6} @AUDIOL_651 {caseNum7} -1 {caseLabel7} @AUDIOL_651

:AUDIOL_280
if 
  4@ == 0
goto_if_false @AUDIOL_311
clear_mission_audio 3@
load_mission_audio 3@ {audioId} 7@

:AUDIOL_311
if 
  not is_char_dead 0@
goto_if_false @AUDIOL_341
disable_char_speech 0@ {stopNow} True
shut_char_up_for_scripted_speech 0@ {state} True

:AUDIOL_341
TIMERA = 0
8@ += 1
goto @AUDIOL_651

:AUDIOL_362
if 
  has_mission_audio_loaded 3@
goto_if_false @AUDIOL_498
if 
  not is_char_dead 0@
goto_if_false @AUDIOL_444
if 
  not is_char_talking 0@
goto_if_false @AUDIOL_436
if 
  1@ == 1
goto_if_false @AUDIOL_436
attach_mission_audio_to_char 3@ {handle} 0@

:AUDIOL_436
start_char_facial_talk 0@ {duration} 10000

:AUDIOL_444
play_mission_audio 3@
if 
  not is_lvar_text_label_equal_to_text_label 5@s == 'DUMMY'
goto_if_false @AUDIOL_484
print_now 5@s {time} 10000 {flag} 1

:AUDIOL_484
8@ += 1
goto @AUDIOL_524

:AUDIOL_498
if 
  TIMERA > 5000
goto_if_false @AUDIOL_524
8@ += 1

:AUDIOL_524
goto @AUDIOL_651

:AUDIOL_531
if 
  has_mission_audio_loaded 3@
goto_if_false @AUDIOL_623
if 
  has_mission_audio_finished 3@
goto_if_false @AUDIOL_577
8@ += 1
goto @AUDIOL_616

:AUDIOL_577
if 
  does_char_exist 0@
goto_if_false @AUDIOL_616
if 
  is_char_dead 0@
goto_if_false @AUDIOL_616
8@ += 1

:AUDIOL_616
goto @AUDIOL_630

:AUDIOL_623
8@ += 1

:AUDIOL_630
goto @AUDIOL_651

:AUDIOL_637
goto @AUDIOL_662
goto @AUDIOL_651

:AUDIOL_651
wait 0
goto @AUDIOL_192

:AUDIOL_662
if 
  not is_char_dead 0@
goto_if_false @AUDIOL_695
enable_char_speech 0@
shut_char_up_for_scripted_speech 0@ {state} False
stop_char_facial_talk 0@

:AUDIOL_695
clear_mission_audio 3@
if 
  not is_lvar_text_label_equal_to_text_label 5@s == 'DUMMY'
goto_if_false @AUDIOL_730
clear_this_print 5@s

:AUDIOL_730
$audio_line_is_active = 0

:AUDIOL_737
terminate_this_script 

:CLEANAU
script_name 'CLEANAU'
TIMERA = 0
$audio_line_terminate_all = 1

:CLEANAU_25
if 
  $audio_line_is_active <> 0
goto_if_false @CLEANAU_80
wait 0
if 
  TIMERA > 2000
goto_if_false @CLEANAU_73
$audio_line_is_active = 0

:CLEANAU_73
goto @CLEANAU_25

:CLEANAU_80
terminate_all_scripts_with_this_name 'AUDIOL'
$audio_line_terminate_all = 0
terminate_this_script 

:Noname_5
terminate_this_script 

:BDISPLY
script_name 'BDISPLY'
if 
  $beat_display_script_started == 0
goto_if_false @BDISPLY_43
$beat_display_script_started = 1
$bd_terminate_script = 0

:BDISPLY_43
use_text_commands True
load_texture_dictionary 'LD_BEAT'
load_sprite 1 {spriteName} "DOWN"
load_sprite 2 {spriteName} "LEFT"
load_sprite 3 {spriteName} "UP"
load_sprite 4 {spriteName} "RIGHT"
load_sprite 13 {spriteName} "UP"
load_sprite 14 {spriteName} "DOWN"
load_sprite 10 {spriteName} "RIGHT"
load_sprite 9 {spriteName} "LEFT"
load_sprite 11 {spriteName} "UPR"
load_sprite 16 {spriteName} "DOWNR"
load_sprite 12 {spriteName} "DOWNL"
load_sprite 15 {spriteName} "UPL"
load_sprite 17 {spriteName} "CRING"
load_sprite 18 {spriteName} "CHIT"
$bd_future_time_shown = 4500
$bd_past_time_shown = 800
$bd_x = 265.0
$bd_y = 390.0
$bd_width = 355.0
$bd_sprite_height = 32.0
$bd_sprite_width = 32.0
19@ = 64.0
20@ = 64.0
22@ = 64.0
21@ = 64.0
16@ = get_game_timer 
wait 1000

:BDISPLY_313
wait 0
if 
  has_game_just_returned_from_frontend 
goto_if_false @BDISPLY_344
$BD_RenderHit = 0
23@ = 0

:BDISPLY_344
0@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 0@ == 3
goto_if_false @BDISPLY_1198
15@ = get_game_timer 
set_lvar_int_to_lvar_int 17@ = 15@
sub_int_lvar_from_int_lvar 17@ -= 16@
set_lvar_int_to_lvar_int 16@ = 15@
set_lvar_int_to_var_int 0@ = $bd_past_time_shown
add_int_var_to_int_lvar 0@ += $bd_future_time_shown
cset_lvar_float_to_lvar_int 5@ =# 0@
cset_lvar_float_to_var_int 6@ =# $bd_past_time_shown
div_float_lvar_by_float_lvar 6@ /= 5@
mult_float_lvar_by_float_var 6@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 6@
set_var_float_to_var_float $y = $bd_y
set_sprites_draw_before_fade True
draw_sprite 17 {offsetLeft} $x {offsetTop} $y {width} 20@ {height} 19@ {r} 128 {g} 128 {b} 128 {a} 255
$time_since_first_beat = get_game_timer 
sub_int_var_from_int_var $time_since_first_beat -= $time_of_first_beat
0@ = 1

:BDISPLY_520
if 
  11 > 0@
goto_if_false @BDISPLY_846
8@, 10@, 12@ = get_beat_proximity 0@
if 
  10@ <> 0
goto_if_false @BDISPLY_832
if 
  is_int_var_greater_than_int_lvar $bd_future_time_shown > 8@
goto_if_false @BDISPLY_832
gosub @BDISPLY_1266
set_lvar_int_to_var_int 3@ = $bd_past_time_shown
add_int_var_to_int_lvar 3@ += $bd_future_time_shown
set_lvar_int_to_lvar_int 4@ = 8@
add_int_var_to_int_lvar 4@ += $bd_past_time_shown
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_lvar_int 6@ =# 3@
div_float_lvar_by_float_lvar 5@ /= 6@
mult_float_lvar_by_float_var 5@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 5@
set_var_float_to_var_float $y = $bd_y
cset_lvar_float_to_lvar_int 5@ =# 8@
cset_lvar_float_to_var_int 6@ =# $bd_future_time_shown
div_float_lvar_by_float_lvar 5@ /= 6@
5@ *= -1.0
5@ += 1.0
if 
  0 > 8@
goto_if_false @BDISPLY_756
5@ = 1.0

:BDISPLY_756
5@ *= 255.0
cset_lvar_int_to_lvar_float 4@ =# 5@
if 
  18@ <> 0
goto_if_false @BDISPLY_832
gosub @BDISPLY_1575
set_sprites_draw_before_fade True
draw_sprite 18@ {offsetLeft} $x {offsetTop} $y {width} $bd_sprite_width {height} $bd_sprite_height {r} 128 {g} 128 {b} 128 {a} 4@

:BDISPLY_832
0@ += 1
goto @BDISPLY_520

:BDISPLY_846
if 
  $debug_show_beat_position == 0
goto_if_false @BDISPLY_1191
0@ = -1

:BDISPLY_871
if 
  0@ > -11
goto_if_false @BDISPLY_1191
8@, 10@, 12@ = get_beat_proximity 0@
8@ *= -1
if 
  10@ <> 0
goto_if_false @BDISPLY_1177
if 
  is_int_var_greater_than_int_lvar $bd_past_time_shown > 8@
goto_if_false @BDISPLY_1177
gosub @BDISPLY_1266
set_lvar_int_to_lvar_int 4@ = 8@
4@ *= -1
add_int_var_to_int_lvar 4@ += $bd_past_time_shown
set_lvar_int_to_var_int 3@ = $bd_past_time_shown
add_int_var_to_int_lvar 3@ += $bd_future_time_shown
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_lvar_int 6@ =# 3@
div_float_lvar_by_float_lvar 5@ /= 6@
mult_float_lvar_by_float_var 5@ *= $bd_width
set_var_float_to_var_float $x = $bd_x
add_float_lvar_to_float_var $x += 5@
set_var_float_to_var_float $y = $bd_y
cset_lvar_float_to_lvar_int 5@ =# 4@
cset_lvar_float_to_var_int 6@ =# $bd_past_time_shown
div_float_lvar_by_float_lvar 5@ /= 6@
if 
  0 > 8@
goto_if_false @BDISPLY_1101
5@ = 1.0

:BDISPLY_1101
5@ *= 255.0
cset_lvar_int_to_lvar_float 4@ =# 5@
if 
  18@ <> 0
goto_if_false @BDISPLY_1177
gosub @BDISPLY_1575
set_sprites_draw_before_fade True
draw_sprite 18@ {offsetLeft} $x {offsetTop} $y {width} $bd_sprite_width {height} $bd_sprite_height {r} 128 {g} 128 {b} 128 {a} 4@

:BDISPLY_1177
0@ -= 1
goto @BDISPLY_871

:BDISPLY_1191
goto @BDISPLY_1205

:BDISPLY_1198
goto @BDISPLY_1244

:BDISPLY_1205
if 
  $bd_terminate_script == 0
goto_if_false @BDISPLY_1237
goto @BDISPLY_313
goto @BDISPLY_1244

:BDISPLY_1237
goto @BDISPLY_1244

:BDISPLY_1244
$bd_terminate_script = 0
$beat_display_script_started = 0
use_text_commands False
remove_texture_dictionary 
terminate_this_script 

:BDISPLY_1266
18@ = 0
if 
  10@ == 1
goto_if_false @BDISPLY_1298
18@ = 1

:BDISPLY_1298
if 
  10@ == 2
goto_if_false @BDISPLY_1323
18@ = 2

:BDISPLY_1323
if 
  10@ == 3
goto_if_false @BDISPLY_1348
18@ = 3

:BDISPLY_1348
if 
  10@ == 4
goto_if_false @BDISPLY_1373
18@ = 4

:BDISPLY_1373
if 
  10@ == 9
goto_if_false @BDISPLY_1398
18@ = 9

:BDISPLY_1398
if 
  10@ == 10
goto_if_false @BDISPLY_1423
18@ = 10

:BDISPLY_1423
if 
  10@ == 11
goto_if_false @BDISPLY_1448
18@ = 11

:BDISPLY_1448
if 
  10@ == 12
goto_if_false @BDISPLY_1473
18@ = 12

:BDISPLY_1473
if 
  10@ == 13
goto_if_false @BDISPLY_1498
18@ = 13

:BDISPLY_1498
if 
  10@ == 14
goto_if_false @BDISPLY_1523
18@ = 14

:BDISPLY_1523
if 
  10@ == 15
goto_if_false @BDISPLY_1548
18@ = 15

:BDISPLY_1548
if 
  10@ == 16
goto_if_false @BDISPLY_1573
18@ = 16

:BDISPLY_1573
return 

:BDISPLY_1575
if and
  $BD_RenderHit > 0
  23@ == 0
goto_if_false @BDISPLY_1627
1@, 1@, 25@ = get_beat_proximity 0
25@ += 1
23@ = 1

:BDISPLY_1627
set_lvar_int_to_lvar_int 13@ = 12@
add_int_lvar_to_int_lvar 13@ += 0@
if 
  0 > 0@
goto_if_false @BDISPLY_1675
8@ *= -1
13@ += 1

:BDISPLY_1675
if 
  is_int_lvar_equal_to_int_lvar 13@ == 25@
goto_if_false @BDISPLY_1756
if and
  3000 >= 8@
  8@ > -400
goto_if_false @BDISPLY_1735
gosub @BDISPLY_1765
goto @BDISPLY_1749

:BDISPLY_1735
23@ = 0
$BD_RenderHit = 0

:BDISPLY_1749
goto @BDISPLY_1763

:BDISPLY_1756
$BD_RenderHit = 0

:BDISPLY_1763
return 

:BDISPLY_1765
switch_start 23@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BDISPLY_2214 {caseNum1} 1 {caseLabel1} @BDISPLY_1828 {caseNum2} 2 {caseLabel2} @BDISPLY_2001 {caseNum3} 3 {caseLabel3} @BDISPLY_2105 {caseNum4} -1 {caseLabel4} @BDISPLY_2214 {caseNum5} -1 {caseLabel5} @BDISPLY_2214 {caseNum6} -1 {caseLabel6} @BDISPLY_2214 {caseNum7} -1 {caseLabel7} @BDISPLY_2214

:BDISPLY_1828
if 
  $BD_RenderHit == 1
goto_if_false @BDISPLY_1867
26@ = 90
27@ = 100
goto @BDISPLY_1940

:BDISPLY_1867
if 
  $BD_RenderHit == 2
goto_if_false @BDISPLY_1907
26@ = 190
27@ = 80
goto @BDISPLY_1940

:BDISPLY_1907
if 
  $BD_RenderHit == 3
goto_if_false @BDISPLY_1940
26@ = 255
27@ = 25

:BDISPLY_1940
set_lvar_int_to_lvar_int 24@ = 26@
TIMERB = 0
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
23@ += 1
goto @BDISPLY_2214

:BDISPLY_2001
if 
  is_int_lvar_greater_than_int_lvar 27@ > TIMERB
goto_if_false @BDISPLY_2059
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
goto @BDISPLY_2098

:BDISPLY_2059
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
23@ += 1

:BDISPLY_2098
goto @BDISPLY_2214

:BDISPLY_2105
set_lvar_int_to_lvar_int 1@ = 26@
div_int_lvar_by_int_lvar 1@ /= 17@
1@ *= 4
sub_int_lvar_from_int_lvar 24@ -= 1@
if 
  0 >= 24@
goto_if_false @BDISPLY_2175
24@ = 0
23@ = 0
$BD_RenderHit = 0

:BDISPLY_2175
set_sprites_draw_before_fade True
draw_sprite 18 {offsetLeft} $x {offsetTop} $y {width} 21@ {height} 22@ {r} 128 {g} 128 {b} 128 {a} 24@
goto @BDISPLY_2214

:BDISPLY_2214
return 

:Noname_6
terminate_this_script 

:IMPEXPM
script_name 'IMPEXPM'
if 
  $impexp_has_been_initialised <> 99
goto_if_false @IMPEXPM_484
if 
  $impexp_has_been_initialised == -1000
goto_if_false @IMPEXPM_123
27@ = create_object_no_offset #NF_BLACKBOARD {x} 0.0 {y} 0.0 {z} 0.0
$impexp_car_gen[0] = create_car_generator_with_plate 0.0 {y} 0.0 {z} 0.0 {heading} 180.0 {modelId} 587 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "IMPEXP__"

:IMPEXPM_123
if 
  not does_object_exist 27@
goto_if_false @IMPEXPM_190
27@ = create_object_no_offset #NF_BLACKBOARD {x} -1573.881 {y} 135.3845 {z} 2.535
set_object_heading 27@ {heading} 180.0
freeze_object_position 27@ {state} True
set_object_dynamic 27@ {state} False
dont_remove_object 27@

:IMPEXPM_190
$current_wanted_list = 0
set_var_int_to_constant $unlocked_import_cars[0] = 589
set_var_int_to_constant $unlocked_import_cars[1] = 404
set_var_int_to_constant $unlocked_import_cars[2] = 559
set_var_int_to_constant $unlocked_import_cars[3] = 589
set_var_int_to_constant $unlocked_import_cars[4] = 404
set_var_int_to_constant $unlocked_import_cars[5] = 559
4@ = 6

:IMPEXPM_252
if 
  42 > 4@
goto_if_false @IMPEXPM_295
$unlocked_import_cars(4@,42i) = -1
4@ += 1
goto @IMPEXPM_252

:IMPEXPM_295
set_var_text_label s$impexp_day[0] = 'IE16'
set_var_text_label s$impexp_day[1] = 'IE10'
set_var_text_label s$impexp_day[2] = 'IE11'
set_var_text_label s$impexp_day[3] = 'IE12'
set_var_text_label s$impexp_day[4] = 'IE13'
set_var_text_label s$impexp_day[5] = 'IE14'
set_var_text_label s$impexp_day[6] = 'IE15'
$explain_import_help = 0
$impexp_new_cars = 0
$impexp_is_complete = 0
$import_price_multiplier = 0.8
$export_price_multiplier = 1.0
$imported_cars[0] = -1
$imported_cars[1] = -1
$imported_cars[2] = -1
$imported_cars[3] = -1
$imported_cars[4] = -1
start_new_script @IMPEXPC 
$impexp_has_been_initialised = 99

:IMPEXPM_484
wait 0
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_563
if and
  locate_char_any_means_2d $scplayer {x} -1574.881 {y} 135.3845 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  $import_export_is_active == 1
goto_if_false @IMPEXPM_563
15@ = 0
goto @IMPEXPM_577

:IMPEXPM_563
goto @IMPEXPM_484
26@ = 0

:IMPEXPM_577
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_627
if 
  $activate_mobile_phone == 1
goto_if_false @IMPEXPM_627
$activate_mobile_phone = 0
$restore_mobile_for_filshie = 1

:IMPEXPM_627
gosub @IMPEXPM_11683
if 
  16@ == -1
goto_if_false @IMPEXPM_875
17@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
20@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
22@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
27@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$cross_out[0] = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$export_name[0] = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$import_name[0] = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
24@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$magno_arm = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$wanted_list_object = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:IMPEXPM_875
16@ = 0
20@ = -1
23@ = 0
$impexp_door_rotation = 0.0
28@ = 0
gosub @IMPEXPM_10064
gosub @IMPEXPM_10721
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_1185
if 
  does_object_exist $wanted_list_object
goto_if_false @IMPEXPM_966
delete_object $wanted_list_object

:IMPEXPM_966
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_1039
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$wanted_list_object = create_object_no_offset #NF_LIST_1 {x} $x {y} $y {z} $z
set_object_heading $wanted_list_object {heading} 180.0

:IMPEXPM_1039
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_1112
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$wanted_list_object = create_object_no_offset #NF_LIST_2 {x} $x {y} $y {z} $z
set_object_heading $wanted_list_object {heading} 180.0

:IMPEXPM_1112
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_1185
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$wanted_list_object = create_object_no_offset #NF_LIST_3 {x} $x {y} $y {z} $z
set_object_heading $wanted_list_object {heading} 180.0

:IMPEXPM_1185
gosub @IMPEXPM_11683
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPM_1559
4@ = 0

:IMPEXPM_1217
if 
  10 > 4@
goto_if_false @IMPEXPM_1559
if 
  does_object_exist $cross_out(4@,10i)
goto_if_false @IMPEXPM_1264
delete_object $cross_out(4@,10i)

:IMPEXPM_1264
$cross_out(4@,10i) = -1
if or
  $onmission == 0
  $steal4_flag == 1
goto_if_false @IMPEXPM_1545
if 
  $current_wanted_car_status(4@,10i) == 1
goto_if_false @IMPEXPM_1545
if 
  not does_object_exist $cross_out(4@,10i)
goto_if_false @IMPEXPM_1545
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
cset_lvar_float_to_lvar_int 12@ =# 4@
if 
  12@ > 4.0
goto_if_false @IMPEXPM_1410
12@ += -5.0

:IMPEXPM_1410
set_lvar_float_to_lvar_float 13@ = 12@
13@ *= -0.05
12@ *= -0.2355
add_float_lvar_to_float_lvar 12@ += 13@
add_float_lvar_to_float_var $z += 12@
if 
  5 > 4@
goto_if_false @IMPEXPM_1482
$x += 1.741

:IMPEXPM_1482
12@ *= -0.1
add_float_lvar_to_float_var $z += 12@
create_object_no_offset #WANTED_CROSS_OFF {x} $x {y} $y {z} $z {var_handle} $cross_out(4@,10i)
freeze_object_position $cross_out(4@,10i) {state} True
set_object_heading $cross_out(4@,10i) {heading} 180.0

:IMPEXPM_1545
4@ += 1
goto @IMPEXPM_1217

:IMPEXPM_1559
wait 0
if 
  $import_export_is_active == 0
goto_if_false @IMPEXPM_1588
goto @IMPEXPM_1559

:IMPEXPM_1588
if 
  26@ == 1
goto_if_false @IMPEXPM_1730
if 
  does_vehicle_exist 22@
goto_if_false @IMPEXPM_1730
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_1680
freeze_car_position 22@ {state} True
if 
  not is_car_on_screen 22@
goto_if_false @IMPEXPM_1673
delete_car 22@
26@ = 0

:IMPEXPM_1673
goto @IMPEXPM_1692

:IMPEXPM_1680
delete_car 22@
26@ = 0

:IMPEXPM_1692
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_arm
if 
  is_int_lvar_equal_to_int_lvar 17@ == 22@
goto_if_false @IMPEXPM_1730
release_entity_from_rope_for_object $magno_arm

:IMPEXPM_1730
if and
  $impexp_new_cars <> 0
  TIMERB > 5000
goto_if_false @IMPEXPM_1836
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @IMPEXPM_1836
if 
  $impexp_new_cars == 1
goto_if_false @IMPEXPM_1800
print_help 'IE25'

:IMPEXPM_1800
if 
  $impexp_new_cars == 2
goto_if_false @IMPEXPM_1829
print_help 'IE26'

:IMPEXPM_1829
$impexp_new_cars = 0

:IMPEXPM_1836
if 
  $explain_import_help == 0
goto_if_false @IMPEXPM_1941
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_1941
if 
  locate_char_any_means_2d $scplayer {x} -1574.881 {y} 135.3845 {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @IMPEXPM_1941
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @IMPEXPM_1941
print_help 'IE27'
$explain_import_help += 1

:IMPEXPM_1941
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_7119
if 
  locate_char_any_means_2d $scplayer {x} -1574.881 {y} 135.3845 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @IMPEXPM_7105
if 
  15@ == 0
goto_if_false @IMPEXPM_4301
if 
  $impexp_is_complete == 0
goto_if_false @IMPEXPM_4027
if 
  16@ == 0
goto_if_false @IMPEXPM_2826
gosub @IMPEXPM_10644
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2120
if 
  locate_char_any_means_3d $scplayer {x} -1577.942 {y} 52.6333 {z} 16.3281 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 6.0 {drawSphere} True
goto_if_false @IMPEXPM_2120

:IMPEXPM_2120
$car = get_random_car_in_sphere_no_save -1577.942 {y} 52.6333 {z} 16.3281 {radius} 4.0 {model} -1
if 
  does_vehicle_exist $car
goto_if_false @IMPEXPM_2533
if 
  not is_car_dead $car
goto_if_false @IMPEXPM_2533
if 
  is_car_stopped $car
goto_if_false @IMPEXPM_2533
if 
  not is_car_in_air_proper $car
goto_if_false @IMPEXPM_2533
if 
  not is_int_var_equal_to_int_lvar $car == 17@
goto_if_false @IMPEXPM_2533
6@ = get_car_model $car
4@ = 0
5@ = 0

:IMPEXPM_2252
if 
  10 > 4@
goto_if_false @IMPEXPM_2343
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_2329
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_2329
5@ = 1
4@ = 10

:IMPEXPM_2329
4@ += 1
goto @IMPEXPM_2252

:IMPEXPM_2343
if 
  5@ == 1
goto_if_false @IMPEXPM_2504
set_lvar_int_to_var_int 22@ = $car
if 
  is_car_passenger_seat_free $car {seat} SeatId.BikeRear
goto_if_false @IMPEXPM_2431
18@ = create_random_char -1576.88 {y} 55.26 {z} 8.57
warp_char_into_car_as_passenger 18@ {handle} $car {seat} SeatId.BikeRear
set_char_visible 18@ {state} False
goto @IMPEXPM_2483

:IMPEXPM_2431
18@ = get_char_in_car_passenger_seat $car {seat} SeatId.BikeRear
delete_char 18@
18@ = create_random_char -1576.88 {y} 55.26 {z} 8.57
warp_char_into_car_as_passenger 18@ {handle} $car {seat} SeatId.BikeRear
set_char_visible 18@ {state} False

:IMPEXPM_2483
16@ += 1
TIMERA = 0
goto @IMPEXPM_2533

:IMPEXPM_2504
if 
  not is_message_being_displayed 
goto_if_false @IMPEXPM_2533
print 'IE23' {time} 3000 {flag} 1

:IMPEXPM_2533
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2826
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPEXPM_2826
if 
  locate_stopped_char_in_car_3d $scplayer {x} -1577.942 {y} 52.6333 {z} 16.3281 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @IMPEXPM_2826
$car = store_car_char_is_in_no_save $scplayer
6@ = get_car_model $car
4@ = 0
5@ = 0

:IMPEXPM_2643
if 
  10 > 4@
goto_if_false @IMPEXPM_2734
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_2720
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_2720
5@ = 1
4@ = 10

:IMPEXPM_2720
4@ += 1
goto @IMPEXPM_2643

:IMPEXPM_2734
if 
  5@ == 1
goto_if_false @IMPEXPM_2797
set_lvar_int_to_var_int 22@ = $car
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_2776

:IMPEXPM_2776
16@ += 1
TIMERA = 0
goto @IMPEXPM_2826

:IMPEXPM_2797
if 
  not is_message_being_displayed 
goto_if_false @IMPEXPM_2826
print 'IE23' {time} 3000 {flag} 1

:IMPEXPM_2826
if 
  16@ == 1
goto_if_false @IMPEXPM_3536
if 
  does_object_exist $magno_arm
goto_if_false @IMPEXPM_2870
set_rope_height_for_object $magno_arm {height} 0.7

:IMPEXPM_2870
$disable_crane = 1
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2900
set_player_control $player1 {state} False

:IMPEXPM_2900
do_fade 250 {direction} Fade.Out

:IMPEXPM_2907
if 
  get_fading_status 
goto_if_false @IMPEXPM_2931
wait 0
goto @IMPEXPM_2907

:IMPEXPM_2931
if 
  does_vehicle_exist 22@
goto_if_false @IMPEXPM_3046
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_3046
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_2993
$x, $y, $z = get_char_coordinates $scplayer

:IMPEXPM_2993
set_car_coordinates 22@ {x} -1577.942 {y} 52.6333 {z} 40.0
freeze_car_position 22@ {state} True
4@ = get_car_health 22@
cset_var_float_to_lvar_int $export_damage_multiplier =# 4@
$export_damage_multiplier /= 1000.0

:IMPEXPM_3046
switch_widescreen True
set_fixed_camera_position -1573.4189 {y} 53.4591 {z} 17.9655 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1574.344 {y} 53.0835 {z} 17.9027 {switchStyle} SwitchType.JumpCut
clear_area -1577.942 {y} 52.6333 {z} 16.3281 {radius} 9.0 {clearParticles} True
wait 0
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_3325
4@ = get_car_model 22@
$x, $y, $z, 7@, 8@, 9@ = get_model_dimensions 4@
set_lvar_float_to_lvar_float 12@ = 8@
sub_float_var_from_float_lvar 12@ -= $y
12@ /= 2.0
12@ *= -1.0
14@ = sin 45.0
13@ = cos 45.0
mult_float_lvar_by_float_lvar 13@ *= 12@
mult_float_lvar_by_float_lvar 14@ *= 12@
$x = -1577.942
add_float_lvar_to_float_var $x += 14@
$y = 52.6333
add_float_lvar_to_float_var $y += 13@
$z = 16.3281
freeze_car_position 22@ {state} False
set_car_coordinates 22@ {x} $x {y} $y {z} $z
set_car_heading 22@ {heading} 315.0

:IMPEXPM_3325
do_fade 250 {direction} Fade.In

:IMPEXPM_3332
if 
  get_fading_status 
goto_if_false @IMPEXPM_3356
wait 0
goto @IMPEXPM_3332

:IMPEXPM_3356
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3482
if 
  not is_car_dead 22@
goto_if_false @IMPEXPM_3482
if 
  is_char_in_car $scplayer {vehicle} 22@
goto_if_false @IMPEXPM_3475
31@ = 1
30@ = open_sequence_task 
task_leave_car -1 {vehicle} 22@
task_go_straight_to_coord -1 {x} -1578.1639 {y} 63.7954 {z} 16.3281 {speed} MoveState.Walk {time} 10000
close_sequence_task 30@
perform_sequence_task $scplayer {sequence} 30@
clear_sequence_task 30@
goto @IMPEXPM_3482

:IMPEXPM_3475
31@ = 0

:IMPEXPM_3482
print_now 'IE24' {time} 5000 {flag} 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_3522
1@ = 1

:IMPEXPM_3522
TIMERA = 0
16@ += 1

:IMPEXPM_3536
if 
  16@ == 2
goto_if_false @IMPEXPM_3646
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_3604
if 
  1@ == 0
goto_if_false @IMPEXPM_3604
16@ += 1

:IMPEXPM_3604
if 
  1@ == 1
goto_if_false @IMPEXPM_3646
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_3646
1@ = 0

:IMPEXPM_3646
if 
  16@ == 3
goto_if_false @IMPEXPM_4027
do_fade 500 {direction} Fade.Out

:IMPEXPM_3671
if 
  get_fading_status 
goto_if_false @IMPEXPM_3695
wait 0
goto @IMPEXPM_3671

:IMPEXPM_3695
if 
  31@ <> 0
goto_if_false @IMPEXPM_3764
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3764
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1578.1639 {y} 63.7954 {z} 16.3281
set_char_heading $scplayer {heading} 0.8

:IMPEXPM_3764
gosub @IMPEXPM_9397
delete_car 22@
if 
  does_char_exist 18@
goto_if_false @IMPEXPM_3797
delete_char 18@

:IMPEXPM_3797
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
$disable_crane = 0
if 
  $player_is_in_crane == 2
goto_if_false @IMPEXPM_3837
$reset_crane_camera = 1

:IMPEXPM_3837
do_fade 500 {direction} Fade.In

:IMPEXPM_3844
if 
  get_fading_status 
goto_if_false @IMPEXPM_3868
wait 0
goto @IMPEXPM_3844

:IMPEXPM_3868
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3891
set_player_control $player1 {state} True

:IMPEXPM_3891
if 
  $impexp_is_complete == 1
goto_if_false @IMPEXPM_3950
print_big 'IE29' {time} 5000 {style} TextStyle.Middle
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
wait 5000

:IMPEXPM_3950
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_3974
add_score $player1 {money} 29@

:IMPEXPM_3974
print_with_number_big 'IE30' {num} 29@ {duration} 5000 {style} TextStyle.Middle
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
TIMERB = 0
goto @IMPEXPM_577

:IMPEXPM_4027
if 
  does_object_exist 27@
goto_if_false @IMPEXPM_4301
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_4301
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPEXPM_4267
if 
  23@ <> 1
goto_if_false @IMPEXPM_4166
print_help 'IE18'
23@ = 1

:IMPEXPM_4166
set_player_enter_car_button $player1 {enabled} False
if 
  0@ == 0
goto_if_false @IMPEXPM_4236
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4229
0@ = 1
15@ = 1
goto @IMPEXPM_577

:IMPEXPM_4229
goto @IMPEXPM_4260

:IMPEXPM_4236
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4260
0@ = 0

:IMPEXPM_4260
goto @IMPEXPM_4301

:IMPEXPM_4267
if 
  23@ == 1
goto_if_false @IMPEXPM_4294
clear_help 
23@ = 0

:IMPEXPM_4294
set_player_enter_car_button $player1 {enabled} True

:IMPEXPM_4301
if 
  15@ == 1
goto_if_false @IMPEXPM_7098

:IMPEXPM_4319
if 
  16@ == 0
goto_if_false @IMPEXPM_4596
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_4360
set_player_control $player1 {state} False

:IMPEXPM_4360
print_help_forever 'IE20'
display_radar False
$impexp_menu = create_menu 'IE09' {topLeftX} 29.0 {topLeftY} 170.0 {width} 180.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $impexp_menu {column} 0 {title} 'DUMMY' {row0} 'IE16' {row1} 'IE10' {row2} 'IE11' {row3} 'IE12' {row4} 'IE13' {row5} 'IE14' {row6} 'IE15' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
if 
  4@ == -69
goto_if_false @IMPEXPM_4569
set_active_menu_item $impexp_menu {row} $impexp_selected_day
goto @IMPEXPM_4589

:IMPEXPM_4569
4@ = get_current_day_of_week 
4@ += -1
set_active_menu_item $impexp_menu {row} 4@

:IMPEXPM_4589
16@ += 1

:IMPEXPM_4596
if 
  16@ == 1
goto_if_false @IMPEXPM_4870
if 
  1@ == 0
goto_if_false @IMPEXPM_4689
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_4682
$impexp_selected_day = get_menu_item_selected $impexp_menu
16@ += 1
1@ = 1
clear_this_print 'IE28'

:IMPEXPM_4682
goto @IMPEXPM_4713

:IMPEXPM_4689
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_4713
1@ = 0

:IMPEXPM_4713
if 
  0@ == 0
goto_if_false @IMPEXPM_4812
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4805
gosub @IMPEXPM_9031
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_4778
set_player_control $player1 {state} True

:IMPEXPM_4778
display_radar True
clear_help 
15@ = 0
16@ = 0
0@ = 1

:IMPEXPM_4805
goto @IMPEXPM_4836

:IMPEXPM_4812
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_4836
0@ = 0

:IMPEXPM_4836
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @IMPEXPM_4870
clear_this_print 'IE28'

:IMPEXPM_4870
if 
  16@ == 2
goto_if_false @IMPEXPM_5558
set_var_int_to_var_int $import_car_list_input = $impexp_selected_day
gosub @IMPEXPM_10721
4@ = 0
5@ = 0

:IMPEXPM_4917
if 
  6 > 4@
goto_if_false @IMPEXPM_4985
if 
  $current_import_car_list(4@,6i) <> -1
goto_if_false @IMPEXPM_4971
5@ = 1
4@ = 6

:IMPEXPM_4971
4@ += 1
goto @IMPEXPM_4917

:IMPEXPM_4985
if 
  5@ == 0
goto_if_false @IMPEXPM_5040
print_now 'IE28' {time} 5000 {flag} 1
16@ = 1
goto @IMPEXPM_4319
goto @IMPEXPM_5558

:IMPEXPM_5040
print_help_forever 'IE21'
delete_menu $impexp_menu
$impexp_panel = create_menu 'IE09' {topLeftX} 29.0 {topLeftY} 170.0 {width} 180.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Center
4@ = 0

:IMPEXPM_5100
if 
  6 > 4@
goto_if_false @IMPEXPM_5206
set_lvar_int_to_var_int 6@ = $current_import_car_list(4@,6i)
if 
  6@ <> -1
goto_if_false @IMPEXPM_5174
gosub @IMPEXPM_11874
set_var_text_label $impexp_menu_text_label(4@,6s) = s$impexp_text_label
goto @IMPEXPM_5192

:IMPEXPM_5174
set_var_text_label $impexp_menu_text_label(4@,6s) = 'DUMMY'

:IMPEXPM_5192
4@ += 1
goto @IMPEXPM_5100

:IMPEXPM_5206
set_lvar_int_to_var_int 4@ = $impexp_selected_day
set_menu_column $impexp_panel {column} 0 {title} $impexp_day(4@,7s) {row0} s$impexp_menu_text_label[0] {row1} s$impexp_menu_text_label[1] {row2} s$impexp_menu_text_label[2] {row3} s$impexp_menu_text_label[3] {row4} s$impexp_menu_text_label[4] {row5} s$impexp_menu_text_label[5] {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column $impexp_panel {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
4@ = 0

:IMPEXPM_5431
if 
  6 > 4@
goto_if_false @IMPEXPM_5551
set_lvar_int_to_var_int 6@ = $current_import_car_list(4@,6i)
if 
  6@ <> -1
goto_if_false @IMPEXPM_5537
$current_vehicle_cost = get_car_model_value $current_import_car_list(4@,6i)
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
set_menu_item_with_number $impexp_panel {column} 1 {row} 4@ {gxt} 'DOLLAR' {number} $current_vehicle_cost

:IMPEXPM_5537
4@ += 1
goto @IMPEXPM_5431

:IMPEXPM_5551
16@ += 1

:IMPEXPM_5558
if 
  16@ == 3
goto_if_false @IMPEXPM_5765
if 
  1@ == 0
goto_if_false @IMPEXPM_5640
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_5633
$impexp_selected_car = get_menu_item_selected $impexp_panel
16@ += 1
1@ = 1

:IMPEXPM_5633
goto @IMPEXPM_5664

:IMPEXPM_5640
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_5664
1@ = 0

:IMPEXPM_5664
if 
  0@ == 0
goto_if_false @IMPEXPM_5741
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_5734
gosub @IMPEXPM_9031
16@ = 0
0@ = 1
4@ = -69
goto @IMPEXPM_4319

:IMPEXPM_5734
goto @IMPEXPM_5765

:IMPEXPM_5741
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_5765
0@ = 0

:IMPEXPM_5765
if 
  16@ == 4
goto_if_false @IMPEXPM_6075
4@ = get_current_day_of_week 
4@ += -1
if 
  not is_int_lvar_equal_to_int_var 4@ == $impexp_selected_day
goto_if_false @IMPEXPM_5844
print_now 'IE19' {time} 5000 {flag} 1
gosub @IMPEXPM_5844
16@ = 0

:IMPEXPM_5844
$current_vehicle_cost = get_car_model_value $current_import_car_list(25@,6i)
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
4@ = store_score $player1
if 
  is_int_var_greater_than_int_lvar $current_vehicle_cost > 4@
goto_if_false @IMPEXPM_5937
print_now 'IE07' {time} 5000 {flag} 1
gosub @IMPEXPM_9031
16@ = 0

:IMPEXPM_5937
if 
  16@ <> 0
goto_if_false @IMPEXPM_5991
if 
  $current_import_car_list($impexp_selected_car,6i) == -1
goto_if_false @IMPEXPM_5991
gosub @IMPEXPM_9031
16@ = 0

:IMPEXPM_5991
if 
  16@ <> 0
goto_if_false @IMPEXPM_6075
$current_vehicle_cost = get_car_model_value $current_import_car_list(25@,6i)
cset_lvar_float_to_var_int 12@ =# $current_vehicle_cost
mult_float_lvar_by_float_var 12@ *= $import_price_multiplier
cset_var_int_to_lvar_float $current_vehicle_cost =# 12@
set_lvar_int_to_var_int 4@ = $current_vehicle_cost
4@ *= -1
add_score $player1 {money} 4@
16@ += 1

:IMPEXPM_6075
if 
  16@ == 5
goto_if_false @IMPEXPM_6548
if 
  not has_model_loaded $current_import_car_list($impexp_selected_car,6i)
goto_if_false @IMPEXPM_6153
request_model $current_import_car_list($impexp_selected_car,6i)

:IMPEXPM_6122
if 
  not has_model_loaded $current_import_car_list($impexp_selected_car,6i)
goto_if_false @IMPEXPM_6153
wait 0
goto @IMPEXPM_6122

:IMPEXPM_6153
clear_help 
gosub @IMPEXPM_9031
clear_area -1572.168 {y} 63.2853 {z} 16.3281 {radius} 20.0 {clearParticles} True
gosub @IMPEXPM_13123
$imported_car = create_car $current_import_car_list($impexp_selected_car,6i) {x} -1572.168 {y} 63.2853 {z} 16.3281
set_vehicle_dirt_level $imported_car {level} 0.0
set_car_heading $imported_car {heading} 315.0
mark_model_as_no_longer_needed $current_import_car_list($impexp_selected_car,6i)
if 
  is_int_var_equal_to_constant $current_import_car_list($impexp_selected_car,6i) == 589
goto_if_false @IMPEXPM_6281
change_car_colour $imported_car {color1} 11 {color2} 0

:IMPEXPM_6281
4@ = get_car_model $imported_car
$x, $y, $z, 7@, 8@, 9@ = get_model_dimensions 4@
set_lvar_float_to_lvar_float 12@ = 8@
sub_float_var_from_float_lvar 12@ -= $y
12@ /= 2.0
12@ *= -1.0
13@ = cos 45.0
14@ = sin 45.0
mult_float_lvar_by_float_lvar 13@ *= 12@
mult_float_lvar_by_float_lvar 14@ *= 12@
$x = -1572.168
add_float_lvar_to_float_var $x += 14@
$y = 63.2853
add_float_lvar_to_float_var $y += 13@
$z = 16.3281
set_car_coordinates $imported_car {x} $x {y} $y {z} $z
set_car_heading $imported_car {heading} 315.0
clear_prints 
switch_widescreen True
set_fixed_camera_position -1567.597 {y} 63.2567 {z} 17.7586 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1568.576 {y} 63.0585 {z} 17.7094 {switchStyle} SwitchType.JumpCut
print_now 'IE08' {time} 5000 {flag} 1
increment_int_stat StatId.VehiclesImported {value} 1
TIMERA = 0
16@ += 1

:IMPEXPM_6548
if 
  16@ == 6
goto_if_false @IMPEXPM_6672
if 
  TIMERA > 5000
goto_if_false @IMPEXPM_6599
16@ += 1
goto @IMPEXPM_6672

:IMPEXPM_6599
if 
  1@ == 0
goto_if_false @IMPEXPM_6648
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_6641
16@ += 1

:IMPEXPM_6641
goto @IMPEXPM_6672

:IMPEXPM_6648
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @IMPEXPM_6672
1@ = 0

:IMPEXPM_6672
if 
  16@ == 7
goto_if_false @IMPEXPM_6743
clear_prints 
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_6723
set_player_control $player1 {state} True

:IMPEXPM_6723
set_player_enter_car_button $player1 {enabled} True
display_radar True
clear_help 
16@ += 1

:IMPEXPM_6743
if 
  16@ == 8
goto_if_false @IMPEXPM_7098
if 
  not is_car_dead $imported_car
goto_if_false @IMPEXPM_6880
if and
  not locate_car_3d $imported_car {x} -1572.168 {y} 63.2853 {z} 16.3281 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 5.0 {drawSphere} False
  not is_point_on_screen -1572.168 {y} 63.2853 {z} 16.3281 {radius} 5.0
goto_if_false @IMPEXPM_6873
mark_car_as_no_longer_needed $imported_car
15@ = 0
16@ = 0
goto @IMPEXPM_577

:IMPEXPM_6873
goto @IMPEXPM_6906

:IMPEXPM_6880
mark_car_as_no_longer_needed $imported_car
15@ = 0
16@ = 0
goto @IMPEXPM_577

:IMPEXPM_6906
if 
  does_object_exist 27@
goto_if_false @IMPEXPM_7098
$x, $y, $z = get_offset_from_object_in_world_coords 27@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_7098
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPEXPM_7098
if 
  0@ == 0
goto_if_false @IMPEXPM_7074
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_7067
0@ = 1
print_now 'IE08' {time} 5000 {flag} 1

:IMPEXPM_7067
goto @IMPEXPM_7098

:IMPEXPM_7074
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @IMPEXPM_7098
0@ = 0

:IMPEXPM_7098
goto @IMPEXPM_7112

:IMPEXPM_7105
goto @IMPEXPM_9043

:IMPEXPM_7112
goto @IMPEXPM_7126

:IMPEXPM_7119
goto @IMPEXPM_9043

:IMPEXPM_7126
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @IMPEXPM_7235
4@ = 0

:IMPEXPM_7148
if 
  10 > 4@
goto_if_false @IMPEXPM_7221
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_7207
set_lvar_int_to_var_int 6@ = $current_wanted_car_list(4@,10i)
4@ = 10

:IMPEXPM_7207
4@ += 1
goto @IMPEXPM_7148

:IMPEXPM_7221
gosub @IMPEXPM_9397
goto @IMPEXPM_577

:IMPEXPM_7235
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @IMPEXPM_9024
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "CURRENT_WANTED_LIST = "
save_int_to_debug_file $current_wanted_list
save_newline_to_debug_file 
save_string_to_debug_file "MODID, STATUS, PAYOUT, EXP NAME,  CROSS OUT"
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_7530
if 
  10 > 4@
goto_if_false @IMPEXPM_8120
save_int_to_debug_file $current_wanted_car_list(4@,10i)
save_string_to_debug_file "        "
save_int_to_debug_file $current_wanted_car_status(4@,10i)
save_string_to_debug_file "        "
save_string_to_debug_file "        "
save_int_to_debug_file $export_name(4@,10i)
save_string_to_debug_file "        "
save_int_to_debug_file $cross_out(4@,10i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_7530

:IMPEXPM_8120
save_newline_to_debug_file 
save_string_to_debug_file "IMPORT DETAILS"
save_newline_to_debug_file 
save_string_to_debug_file "MODID, IMP NAME"
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_8393
if 
  6 > 4@
goto_if_false @IMPEXPM_8575
save_int_to_debug_file $current_import_car_list(4@,6i)
save_string_to_debug_file "         "
save_int_to_debug_file $import_name(4@,6i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_8393

:IMPEXPM_8575
save_newline_to_debug_file 
save_string_to_debug_file "UNLOCKED_IMPORT_CARS ARRAY"
save_newline_to_debug_file 
4@ = 0

:IMPEXPM_8716
if 
  42 > 4@
goto_if_false @IMPEXPM_9024
save_string_to_debug_file "UNLOCKED_IMPORT_CARS["
save_int_to_debug_file 4@
save_string_to_debug_file "] = "
save_int_to_debug_file $unlocked_import_cars(4@,42i)
save_newline_to_debug_file 
4@ += 1
goto @IMPEXPM_8716

:IMPEXPM_9024
goto @IMPEXPM_1559

:IMPEXPM_9031
delete_menu $impexp_menu
delete_menu $impexp_panel
return 

:IMPEXPM_9043
if 
  does_vehicle_exist 22@
goto_if_false @IMPEXPM_9113
if 
  does_object_exist $magno_arm
goto_if_false @IMPEXPM_9113
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_arm
if 
  not is_int_lvar_equal_to_int_lvar 17@ == 22@
goto_if_false @IMPEXPM_9113
mark_car_as_no_longer_needed 22@

:IMPEXPM_9113
if 
  does_vehicle_exist $imported_car
goto_if_false @IMPEXPM_9183
if 
  does_object_exist $magno_arm
goto_if_false @IMPEXPM_9183
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_arm
if 
  not is_int_lvar_equal_to_int_var 17@ == $imported_car
goto_if_false @IMPEXPM_9183
mark_car_as_no_longer_needed $imported_car

:IMPEXPM_9183
if 
  does_char_exist 18@
goto_if_false @IMPEXPM_9204
delete_char 18@

:IMPEXPM_9204
if 
  does_object_exist 24@
goto_if_false @IMPEXPM_9225
delete_object 24@

:IMPEXPM_9225
4@ = 0

:IMPEXPM_9232
if 
  10 > 4@
goto_if_false @IMPEXPM_9293
if 
  does_object_exist $cross_out(4@,10i)
goto_if_false @IMPEXPM_9279
delete_object $cross_out(4@,10i)

:IMPEXPM_9279
4@ += 1
goto @IMPEXPM_9232

:IMPEXPM_9293
if 
  does_object_exist $wanted_list_object
goto_if_false @IMPEXPM_9314
delete_object $wanted_list_object

:IMPEXPM_9314
if 
  $restore_mobile_for_filshie == 1
goto_if_false @IMPEXPM_9339
$activate_mobile_phone = 1

:IMPEXPM_9339
goto @IMPEXPM_484
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_9376
set_player_control $player1 {state} True
set_player_enter_car_button $player1 {enabled} True

:IMPEXPM_9376
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
0@ = 1
return 
return 

:IMPEXPM_9397
increment_int_stat StatId.VehiclesExported {value} 1
4@ = 0

:IMPEXPM_9411
if 
  10 > 4@
goto_if_false @IMPEXPM_9675
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(4@,10i) == 6@
goto_if_false @IMPEXPM_9661
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_9661
$current_wanted_car_status(4@,10i) = 1
29@ = get_car_model_value 6@
cset_lvar_float_to_lvar_int 12@ =# 29@
mult_float_lvar_by_float_var 12@ *= $export_price_multiplier
mult_float_lvar_by_float_var 12@ *= $export_damage_multiplier
cset_lvar_int_to_lvar_float 29@ =# 12@
4@ = get_int_stat StatId.VehiclesExported
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_9654 {caseNum1} 10 {caseLabel1} @IMPEXPM_9596 {caseNum2} 20 {caseLabel2} @IMPEXPM_9613 {caseNum3} 30 {caseLabel3} @IMPEXPM_9630 {caseNum4} -1 {caseLabel4} @IMPEXPM_9654 {caseNum5} -1 {caseLabel5} @IMPEXPM_9654 {caseNum6} -1 {caseLabel6} @IMPEXPM_9654 {caseNum7} -1 {caseLabel7} @IMPEXPM_9654

:IMPEXPM_9596
29@ += 50000
goto @IMPEXPM_9654

:IMPEXPM_9613
29@ += 100000
goto @IMPEXPM_9654

:IMPEXPM_9630
29@ += 200000
$impexp_is_complete = 1
goto @IMPEXPM_9654

:IMPEXPM_9654
4@ = 10

:IMPEXPM_9661
4@ += 1
goto @IMPEXPM_9411

:IMPEXPM_9675
gosub @IMPEXPM_11683
4@ = 0

:IMPEXPM_9689
if 
  42 > 4@
goto_if_false @IMPEXPM_9770
if 
  $unlocked_import_cars(4@,42i) == -1
goto_if_false @IMPEXPM_9756
set_var_int_to_lvar_int $unlocked_import_cars(4@,42i) = 6@
set_lvar_int_to_lvar_int 5@ = 4@
4@ = 42

:IMPEXPM_9756
4@ += 1
goto @IMPEXPM_9689

:IMPEXPM_9770
$impexp_new_cars = 1
switch_start 5@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_10062 {caseNum1} 10 {caseLabel1} @IMPEXPM_9840 {caseNum2} 16 {caseLabel2} @IMPEXPM_9873 {caseNum3} 22 {caseLabel3} @IMPEXPM_9914 {caseNum4} 28 {caseLabel4} @IMPEXPM_9947 {caseNum5} 34 {caseLabel5} @IMPEXPM_9988 {caseNum6} 40 {caseLabel6} @IMPEXPM_10021 {caseNum7} -1 {caseLabel7} @IMPEXPM_10062

:IMPEXPM_9840
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 444
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9873
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 555
player_made_progress 1
play_mission_passed_tune 2
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9914
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 568
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9947
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 451
player_made_progress 1
play_mission_passed_tune 2
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_9988
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 539
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_10021
5@ += 1
set_var_int_to_constant $unlocked_import_cars(5@,42i) = 541
player_made_progress 1
play_mission_passed_tune 2
$impexp_new_cars += 1
goto @IMPEXPM_10062

:IMPEXPM_10062
return 

:IMPEXPM_10064
if and
  $onmission == 1
  $steal4_flag <> 1
goto_if_false @IMPEXPM_10166
$current_wanted_car_list[0] = -1
$current_wanted_car_list[1] = -1
$current_wanted_car_list[2] = -1
$current_wanted_car_list[3] = -1
$current_wanted_car_list[4] = -1
$current_wanted_car_list[5] = -1
$current_wanted_car_list[6] = -1
$current_wanted_car_list[7] = -1
$current_wanted_car_list[8] = -1
$current_wanted_car_list[9] = -1
goto @IMPEXPM_10642

:IMPEXPM_10166
4@ = 0
5@ = 0

:IMPEXPM_10180
if 
  10 > 4@
goto_if_false @IMPEXPM_10241
if 
  $current_wanted_car_status(4@,10i) == 1
goto_if_false @IMPEXPM_10227
5@ += 1

:IMPEXPM_10227
4@ += 1
goto @IMPEXPM_10180

:IMPEXPM_10241
if 
  5@ == 10
goto_if_false @IMPEXPM_10348
if 
  2 > $current_wanted_list
goto_if_false @IMPEXPM_10341
$current_wanted_list += 1
4@ = 0

:IMPEXPM_10291
if 
  10 > 4@
goto_if_false @IMPEXPM_10334
$current_wanted_car_status(4@,10i) = 0
4@ += 1
goto @IMPEXPM_10291

:IMPEXPM_10334
goto @IMPEXPM_10348

:IMPEXPM_10341
$impexp_is_complete = 1

:IMPEXPM_10348
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_10446
set_var_int_to_constant $current_wanted_car_list[0] = 402
set_var_int_to_constant $current_wanted_car_list[1] = 405
set_var_int_to_constant $current_wanted_car_list[2] = 411
set_var_int_to_constant $current_wanted_car_list[3] = 483
set_var_int_to_constant $current_wanted_car_list[4] = 445
set_var_int_to_constant $current_wanted_car_list[5] = 470
set_var_int_to_constant $current_wanted_car_list[6] = 468
set_var_int_to_constant $current_wanted_car_list[7] = 409
set_var_int_to_constant $current_wanted_car_list[8] = 533
set_var_int_to_constant $current_wanted_car_list[9] = 534

:IMPEXPM_10446
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_10544
set_var_int_to_constant $current_wanted_car_list[0] = 415
set_var_int_to_constant $current_wanted_car_list[1] = 489
set_var_int_to_constant $current_wanted_car_list[2] = 439
set_var_int_to_constant $current_wanted_car_list[3] = 514
set_var_int_to_constant $current_wanted_car_list[4] = 480
set_var_int_to_constant $current_wanted_car_list[5] = 535
set_var_int_to_constant $current_wanted_car_list[6] = 496
set_var_int_to_constant $current_wanted_car_list[7] = 580
set_var_int_to_constant $current_wanted_car_list[8] = 475
set_var_int_to_constant $current_wanted_car_list[9] = 521

:IMPEXPM_10544
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_10642
set_var_int_to_constant $current_wanted_car_list[0] = 429
set_var_int_to_constant $current_wanted_car_list[1] = 506
set_var_int_to_constant $current_wanted_car_list[2] = 508
set_var_int_to_constant $current_wanted_car_list[3] = 579
set_var_int_to_constant $current_wanted_car_list[4] = 424
set_var_int_to_constant $current_wanted_car_list[5] = 536
set_var_int_to_constant $current_wanted_car_list[6] = 463
set_var_int_to_constant $current_wanted_car_list[7] = 500
set_var_int_to_constant $current_wanted_car_list[8] = 477
set_var_int_to_constant $current_wanted_car_list[9] = 587

:IMPEXPM_10642
return 

:IMPEXPM_10644
if 
  does_object_exist $magno_arm
goto_if_false @IMPEXPM_10719
17@, 18@, 19@ = grab_entity_on_rope_for_object $magno_arm
if 
  17@ <> -1
goto_if_false @IMPEXPM_10719
if 
  not is_int_lvar_equal_to_int_lvar 20@ == 17@
goto_if_false @IMPEXPM_10719
set_lvar_int_to_lvar_int 20@ = 17@

:IMPEXPM_10719
return 

:IMPEXPM_10721
4@ = 0

:IMPEXPM_10728
if 
  6 > 4@
goto_if_false @IMPEXPM_10771
$current_import_car_list(4@,6i) = -1
4@ += 1
goto @IMPEXPM_10728

:IMPEXPM_10771
switch_start $import_car_list_input {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_11219 {caseNum1} 0 {caseLabel1} @IMPEXPM_10834 {caseNum2} 1 {caseLabel2} @IMPEXPM_10889 {caseNum3} 2 {caseLabel3} @IMPEXPM_10944 {caseNum4} 3 {caseLabel4} @IMPEXPM_10999 {caseNum5} 4 {caseLabel5} @IMPEXPM_11054 {caseNum6} 5 {caseLabel6} @IMPEXPM_11109 {caseNum7} 6 {caseLabel7} @IMPEXPM_11164

:IMPEXPM_10834
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[0]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[7]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[14]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[21]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[28]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[35]
goto @IMPEXPM_11219

:IMPEXPM_10889
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[1]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[8]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[15]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[22]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[29]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[36]
goto @IMPEXPM_11219

:IMPEXPM_10944
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[2]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[9]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[16]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[23]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[30]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[37]
goto @IMPEXPM_11219

:IMPEXPM_10999
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[3]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[10]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[17]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[24]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[31]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[38]
goto @IMPEXPM_11219

:IMPEXPM_11054
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[4]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[11]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[18]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[25]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[32]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[39]
goto @IMPEXPM_11219

:IMPEXPM_11109
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[5]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[12]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[19]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[26]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[33]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[40]
goto @IMPEXPM_11219

:IMPEXPM_11164
set_var_int_to_var_int $current_import_car_list[0] = $unlocked_import_cars[6]
set_var_int_to_var_int $current_import_car_list[1] = $unlocked_import_cars[13]
set_var_int_to_var_int $current_import_car_list[2] = $unlocked_import_cars[20]
set_var_int_to_var_int $current_import_car_list[3] = $unlocked_import_cars[27]
set_var_int_to_var_int $current_import_car_list[4] = $unlocked_import_cars[34]
set_var_int_to_var_int $current_import_car_list[5] = $unlocked_import_cars[41]
goto @IMPEXPM_11219

:IMPEXPM_11219
return 

:IMPEXPM_11221
4@ = 0

:IMPEXPM_11228
if 
  5 > 4@
goto_if_false @IMPEXPM_11416
if 
  $imported_cars(4@,5i) == -1
goto_if_false @IMPEXPM_11294
set_var_int_to_var_int $imported_cars(4@,5i) = $imported_car
4@ = 10
goto @IMPEXPM_11409

:IMPEXPM_11294
if 
  does_vehicle_exist $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11382
if 
  is_car_dead $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11368
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1
goto @IMPEXPM_11221
goto @IMPEXPM_11375

:IMPEXPM_11368
4@ += 1

:IMPEXPM_11375
goto @IMPEXPM_11409

:IMPEXPM_11382
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1
goto @IMPEXPM_11221

:IMPEXPM_11409
goto @IMPEXPM_11228

:IMPEXPM_11416
if 
  4@ == 5
goto_if_false @IMPEXPM_11453
mark_car_as_no_longer_needed $imported_cars[4]
$imported_cars[4] = -1
goto @IMPEXPM_11221

:IMPEXPM_11453
return 
4@ = 0

:IMPEXPM_11462
if 
  5 > 4@
goto_if_false @IMPEXPM_11681
if 
  $imported_cars(4@,5i) <> -1
goto_if_false @IMPEXPM_11667
if 
  does_vehicle_exist $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11647
if 
  not is_car_dead $imported_cars(4@,5i)
goto_if_false @IMPEXPM_11620
if 
  is_player_playing $player1
goto_if_false @IMPEXPM_11613
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} $imported_cars(4@,5i) {xRadius} 500.0 {yRadius} 500.0 {drawSphere} False
goto_if_false @IMPEXPM_11613
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1

:IMPEXPM_11613
goto @IMPEXPM_11640

:IMPEXPM_11620
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1

:IMPEXPM_11640
goto @IMPEXPM_11667

:IMPEXPM_11647
mark_car_as_no_longer_needed $imported_cars(4@,5i)
$imported_cars(4@,5i) = -1

:IMPEXPM_11667
4@ += 1
goto @IMPEXPM_11462

:IMPEXPM_11681
return 

:IMPEXPM_11683
4@ = 0

:IMPEXPM_11690
if 
  10 > 4@
goto_if_false @IMPEXPM_11872
if 
  $current_wanted_list == 0
goto_if_false @IMPEXPM_11741
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 0

:IMPEXPM_11741
if 
  $current_wanted_list == 1
goto_if_false @IMPEXPM_11774
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 10

:IMPEXPM_11774
if 
  $current_wanted_list == 2
goto_if_false @IMPEXPM_11807
set_lvar_int_to_lvar_int 5@ = 4@
5@ += 20

:IMPEXPM_11807
if 
  $current_wanted_car_status(4@,10i) == 0
goto_if_false @IMPEXPM_11847
switch_car_generator $impexp_car_gen(5@,30i) {amount} 101
goto @IMPEXPM_11858

:IMPEXPM_11847
switch_car_generator $impexp_car_gen(5@,30i) {amount} 0

:IMPEXPM_11858
4@ += 1
goto @IMPEXPM_11690

:IMPEXPM_11872
return 

:IMPEXPM_11874
switch_start 6@ {numCases} 42 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_13121 {caseNum1} 402 {caseLabel1} @IMPEXPM_12281 {caseNum2} 404 {caseLabel2} @IMPEXPM_13100 {caseNum3} 405 {caseLabel3} @IMPEXPM_12302 {caseNum4} 409 {caseLabel4} @IMPEXPM_12428 {caseNum5} 411 {caseLabel5} @IMPEXPM_12323 {caseNum6} 415 {caseLabel6} @IMPEXPM_12554 {caseNum7} 424 {caseLabel7} @IMPEXPM_12911
switch_continued 429 {caseLabel1} @IMPEXPM_12827 {caseNum2} 434 {caseLabel2} @IMPEXPM_13016 {caseNum3} 439 {caseLabel3} @IMPEXPM_12596 {caseNum4} 444 {caseLabel4} @IMPEXPM_12491 {caseNum5} 445 {caseLabel5} @IMPEXPM_12365 {caseNum6} 451 {caseLabel6} @IMPEXPM_12848 {caseNum7} 463 {caseLabel7} @IMPEXPM_12953 {caseNum8} 468 {caseLabel8} @IMPEXPM_12407 {caseNum9} 470 {caseLabel9} @IMPEXPM_12386
switch_continued 475 {caseLabel1} @IMPEXPM_12722 {caseNum2} 477 {caseLabel2} @IMPEXPM_12995 {caseNum3} 480 {caseLabel3} @IMPEXPM_12638 {caseNum4} 483 {caseLabel4} @IMPEXPM_12344 {caseNum5} 489 {caseLabel5} @IMPEXPM_12575 {caseNum6} 496 {caseLabel6} @IMPEXPM_12680 {caseNum7} 500 {caseLabel7} @IMPEXPM_12974 {caseNum8} 506 {caseLabel8} @IMPEXPM_12806 {caseNum9} 508 {caseLabel9} @IMPEXPM_12869
switch_continued 514 {caseLabel1} @IMPEXPM_12617 {caseNum2} 521 {caseLabel2} @IMPEXPM_12743 {caseNum3} 522 {caseLabel3} @IMPEXPM_12512 {caseNum4} 533 {caseLabel4} @IMPEXPM_12449 {caseNum5} 534 {caseLabel5} @IMPEXPM_12470 {caseNum6} 535 {caseLabel6} @IMPEXPM_12659 {caseNum7} 536 {caseLabel7} @IMPEXPM_12932 {caseNum8} 539 {caseLabel8} @IMPEXPM_13058 {caseNum9} 541 {caseLabel9} @IMPEXPM_13079
switch_continued 555 {caseLabel1} @IMPEXPM_12533 {caseNum2} 559 {caseLabel2} @IMPEXPM_12260 {caseNum3} 568 {caseLabel3} @IMPEXPM_12785 {caseNum4} 573 {caseLabel4} @IMPEXPM_13037 {caseNum5} 579 {caseLabel5} @IMPEXPM_12890 {caseNum6} 580 {caseLabel6} @IMPEXPM_12701 {caseNum7} 587 {caseLabel7} @IMPEXPM_12764 {caseNum8} 589 {caseLabel8} @IMPEXPM_12239 {caseNum9} -1 {caseLabel9} @IMPEXPM_13121

:IMPEXPM_12239
set_var_text_label s$impexp_text_label = 'CLUB'
goto @IMPEXPM_13121

:IMPEXPM_12260
set_var_text_label s$impexp_text_label = 'JESTER'
goto @IMPEXPM_13121

:IMPEXPM_12281
set_var_text_label s$impexp_text_label = 'BUFFALO'
goto @IMPEXPM_13121

:IMPEXPM_12302
set_var_text_label s$impexp_text_label = 'SENTINL'
goto @IMPEXPM_13121

:IMPEXPM_12323
set_var_text_label s$impexp_text_label = 'INFERNU'
goto @IMPEXPM_13121

:IMPEXPM_12344
set_var_text_label s$impexp_text_label = 'CAMPER'
goto @IMPEXPM_13121

:IMPEXPM_12365
set_var_text_label s$impexp_text_label = 'ADMIRAL'
goto @IMPEXPM_13121

:IMPEXPM_12386
set_var_text_label s$impexp_text_label = 'PATRIOT'
goto @IMPEXPM_13121

:IMPEXPM_12407
set_var_text_label s$impexp_text_label = 'SANCHEZ'
goto @IMPEXPM_13121

:IMPEXPM_12428
set_var_text_label s$impexp_text_label = 'STRETCH'
goto @IMPEXPM_13121

:IMPEXPM_12449
set_var_text_label s$impexp_text_label = 'FELTZER'
goto @IMPEXPM_13121

:IMPEXPM_12470
set_var_text_label s$impexp_text_label = 'REMING'
goto @IMPEXPM_13121

:IMPEXPM_12491
set_var_text_label s$impexp_text_label = 'MONSTER'
goto @IMPEXPM_13121

:IMPEXPM_12512
set_var_text_label s$impexp_text_label = 'NRG500'
goto @IMPEXPM_13121

:IMPEXPM_12533
set_var_text_label s$impexp_text_label = 'WINDSOR'
goto @IMPEXPM_13121

:IMPEXPM_12554
set_var_text_label s$impexp_text_label = 'CHEETAH'
goto @IMPEXPM_13121

:IMPEXPM_12575
set_var_text_label s$impexp_text_label = 'RANCHER'
goto @IMPEXPM_13121

:IMPEXPM_12596
set_var_text_label s$impexp_text_label = 'STALION'
goto @IMPEXPM_13121

:IMPEXPM_12617
set_var_text_label s$impexp_text_label = 'PETROL'
goto @IMPEXPM_13121

:IMPEXPM_12638
set_var_text_label s$impexp_text_label = 'COMET'
goto @IMPEXPM_13121

:IMPEXPM_12659
set_var_text_label s$impexp_text_label = 'SLAMVAN'
goto @IMPEXPM_13121

:IMPEXPM_12680
set_var_text_label s$impexp_text_label = 'BLISTAC'
goto @IMPEXPM_13121

:IMPEXPM_12701
set_var_text_label s$impexp_text_label = 'STAFFRD'
goto @IMPEXPM_13121

:IMPEXPM_12722
set_var_text_label s$impexp_text_label = 'SABRE'
goto @IMPEXPM_13121

:IMPEXPM_12743
set_var_text_label s$impexp_text_label = 'FCR900'
goto @IMPEXPM_13121

:IMPEXPM_12764
set_var_text_label s$impexp_text_label = 'EUROS'
goto @IMPEXPM_13121

:IMPEXPM_12785
set_var_text_label s$impexp_text_label = 'BANDITO'
goto @IMPEXPM_13121

:IMPEXPM_12806
set_var_text_label s$impexp_text_label = 'SUPERGT'
goto @IMPEXPM_13121

:IMPEXPM_12827
set_var_text_label s$impexp_text_label = 'BANSHEE'
goto @IMPEXPM_13121

:IMPEXPM_12848
set_var_text_label s$impexp_text_label = 'TURISMO'
goto @IMPEXPM_13121

:IMPEXPM_12869
set_var_text_label s$impexp_text_label = 'JOURNEY'
goto @IMPEXPM_13121

:IMPEXPM_12890
set_var_text_label s$impexp_text_label = 'HUNTLEY'
goto @IMPEXPM_13121

:IMPEXPM_12911
set_var_text_label s$impexp_text_label = 'BFINJC'
goto @IMPEXPM_13121

:IMPEXPM_12932
set_var_text_label s$impexp_text_label = 'BLADE'
goto @IMPEXPM_13121

:IMPEXPM_12953
set_var_text_label s$impexp_text_label = 'FREEWAY'
goto @IMPEXPM_13121

:IMPEXPM_12974
set_var_text_label s$impexp_text_label = 'MESAA'
goto @IMPEXPM_13121

:IMPEXPM_12995
set_var_text_label s$impexp_text_label = 'ZR350'
goto @IMPEXPM_13121

:IMPEXPM_13016
set_var_text_label s$impexp_text_label = 'HOTKNIF'
goto @IMPEXPM_13121

:IMPEXPM_13037
set_var_text_label s$impexp_text_label = 'DUNE'
goto @IMPEXPM_13121

:IMPEXPM_13058
set_var_text_label s$impexp_text_label = 'VORTEX'
goto @IMPEXPM_13121

:IMPEXPM_13079
set_var_text_label s$impexp_text_label = 'BULLET'
goto @IMPEXPM_13121

:IMPEXPM_13100
set_var_text_label s$impexp_text_label = 'PEREN'
goto @IMPEXPM_13121

:IMPEXPM_13121
return 

:IMPEXPM_13123
switch_start $current_import_car_list($impexp_selected_car,6i) {numCases} 19 {hasDefaultCase} 1 {defaultLabel} @IMPEXPM_14444 {caseNum1} 405 {caseLabel1} @IMPEXPM_13560 {caseNum2} 411 {caseLabel2} @IMPEXPM_13917 {caseNum3} 415 {caseLabel3} @IMPEXPM_13865 {caseNum4} 424 {caseLabel4} @IMPEXPM_14175 {caseNum5} 429 {caseLabel5} @IMPEXPM_14048 {caseNum6} 470 {caseLabel6} @IMPEXPM_14201 {caseNum7} 475 {caseLabel7} @IMPEXPM_13839
switch_continued 480 {caseLabel1} @IMPEXPM_13891 {caseNum2} 483 {caseLabel2} @IMPEXPM_13687 {caseNum3} 489 {caseLabel3} @IMPEXPM_13943 {caseNum4} 496 {caseLabel4} @IMPEXPM_13969 {caseNum5} 506 {caseLabel5} @IMPEXPM_13391 {caseNum6} 533 {caseLabel6} @IMPEXPM_13712 {caseNum7} 536 {caseLabel7} @IMPEXPM_14365 {caseNum8} 541 {caseLabel8} @IMPEXPM_14391 {caseNum9} 555 {caseLabel9} @IMPEXPM_13417
switch_continued 559 {caseLabel1} @IMPEXPM_13470 {caseNum2} 587 {caseLabel2} @IMPEXPM_13365 {caseNum3} 589 {caseLabel3} @IMPEXPM_13339 {caseNum4} -1 {caseLabel4} @IMPEXPM_14458 {caseNum5} -1 {caseLabel5} @IMPEXPM_14458 {caseNum6} -1 {caseLabel6} @IMPEXPM_14458 {caseNum7} -1 {caseLabel7} @IMPEXPM_14458 {caseNum8} -1 {caseLabel8} @IMPEXPM_14458 {caseNum9} -1 {caseLabel9} @IMPEXPM_14458

:IMPEXPM_13339
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "N13_LLF_"
goto @IMPEXPM_14458

:IMPEXPM_13365
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_DS3MP__"
goto @IMPEXPM_14458

:IMPEXPM_13391
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_CMACD1_"
goto @IMPEXPM_14458

:IMPEXPM_13417
4@ = generate_random_int_in_range 0 {max} 3
if 
  4@ == 0
goto_if_false @IMPEXPM_13463
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "__C0S___"

:IMPEXPM_13463
goto @IMPEXPM_14458

:IMPEXPM_13470
4@ = generate_random_int_in_range 0 {max} 3
if 
  4@ == 1
goto_if_false @IMPEXPM_13516
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_X2_GAV_"

:IMPEXPM_13516
if 
  4@ == 2
goto_if_false @IMPEXPM_13553
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "__G3PO__"

:IMPEXPM_13553
goto @IMPEXPM_14458

:IMPEXPM_13560
4@ = generate_random_int_in_range 0 {max} 3
if 
  4@ == 0
goto_if_false @IMPEXPM_13606
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "D0N_D0N_"

:IMPEXPM_13606
if 
  4@ == 1
goto_if_false @IMPEXPM_13643
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_D0_NNY_"

:IMPEXPM_13643
if 
  4@ == 2
goto_if_false @IMPEXPM_13680
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "TH3_D0N_"

:IMPEXPM_13680
goto @IMPEXPM_14458

:IMPEXPM_13687
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "SJM1985"
goto @IMPEXPM_14458

:IMPEXPM_13712
4@ = generate_random_int_in_range 0 {max} 5
if 
  4@ == 1
goto_if_false @IMPEXPM_13758
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "433_ADF_"

:IMPEXPM_13758
if 
  4@ == 2
goto_if_false @IMPEXPM_13795
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "DR_F_MBE"

:IMPEXPM_13795
if 
  4@ == 3
goto_if_false @IMPEXPM_13832
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "ANN_F3RG"

:IMPEXPM_13832
goto @IMPEXPM_14458

:IMPEXPM_13839
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "__FR4Z__"
goto @IMPEXPM_14458

:IMPEXPM_13865
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_IMY_AK_"
goto @IMPEXPM_14458

:IMPEXPM_13891
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_L0LLY__"
goto @IMPEXPM_14458

:IMPEXPM_13917
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_J_L33S_"
goto @IMPEXPM_14458

:IMPEXPM_13943
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "S4_LIJON"
goto @IMPEXPM_14458

:IMPEXPM_13969
4@ = generate_random_int_in_range 0 {max} 2
if 
  4@ == 0
goto_if_false @IMPEXPM_14022
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "DI5CO5TU"
goto @IMPEXPM_14041

:IMPEXPM_14022
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "SM53_NUV"

:IMPEXPM_14041
goto @IMPEXPM_14458

:IMPEXPM_14048
4@ = generate_random_int_in_range 0 {max} 3
if 
  4@ == 0
goto_if_false @IMPEXPM_14094
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "J3NYTAL5"

:IMPEXPM_14094
if 
  4@ == 1
goto_if_false @IMPEXPM_14131
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_J3_NCF_"

:IMPEXPM_14131
if 
  4@ == 2
goto_if_false @IMPEXPM_14168
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "DD0_N4LD"

:IMPEXPM_14168
goto @IMPEXPM_14458

:IMPEXPM_14175
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "LA5H_L3Y"
goto @IMPEXPM_14458

:IMPEXPM_14201
4@ = generate_random_int_in_range 0 {max} 4
if 
  4@ == 0
goto_if_false @IMPEXPM_14247
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "AL3X_RES"

:IMPEXPM_14247
if 
  4@ == 1
goto_if_false @IMPEXPM_14284
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "R_F3RG1E"

:IMPEXPM_14284
if 
  4@ == 2
goto_if_false @IMPEXPM_14321
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "H4_NNAHF"

:IMPEXPM_14321
if 
  4@ == 3
goto_if_false @IMPEXPM_14358
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "CL41_RES"

:IMPEXPM_14358
goto @IMPEXPM_14458

:IMPEXPM_14365
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "R055_MCL"
goto @IMPEXPM_14458

:IMPEXPM_14391
4@ = generate_random_int_in_range 0 {max} 4
if 
  4@ == 0
goto_if_false @IMPEXPM_14437
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "T00_FAST"

:IMPEXPM_14437
goto @IMPEXPM_14458

:IMPEXPM_14444
gosub @IMPEXPM_14460
goto @IMPEXPM_14458

:IMPEXPM_14458
return 

:IMPEXPM_14460
4@ = generate_random_int_in_range 0 {max} 100
switch_start 4@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @IMPEXPM_14909 {caseNum1} 0 {caseLabel1} @IMPEXPM_14597 {caseNum2} 1 {caseLabel2} @IMPEXPM_14623 {caseNum3} 2 {caseLabel3} @IMPEXPM_14649 {caseNum4} 3 {caseLabel4} @IMPEXPM_14675 {caseNum5} 4 {caseLabel5} @IMPEXPM_14701 {caseNum6} 5 {caseLabel6} @IMPEXPM_14727 {caseNum7} 6 {caseLabel7} @IMPEXPM_14753
switch_continued 7 {caseLabel1} @IMPEXPM_14779 {caseNum2} 8 {caseLabel2} @IMPEXPM_14805 {caseNum3} 9 {caseLabel3} @IMPEXPM_14831 {caseNum4} 10 {caseLabel4} @IMPEXPM_14857 {caseNum5} 11 {caseLabel5} @IMPEXPM_14883 {caseNum6} -1 {caseLabel6} @IMPEXPM_14909 {caseNum7} -1 {caseLabel7} @IMPEXPM_14909 {caseNum8} -1 {caseLabel8} @IMPEXPM_14909 {caseNum9} -1 {caseLabel9} @IMPEXPM_14909

:IMPEXPM_14597
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "R4N_G3RS"
goto @IMPEXPM_14909

:IMPEXPM_14623
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "GL4S_G0W"
goto @IMPEXPM_14909

:IMPEXPM_14649
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_ARRAN__"
goto @IMPEXPM_14909

:IMPEXPM_14675
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "AM0_RUS0"
goto @IMPEXPM_14909

:IMPEXPM_14701
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_AMAT0__"
goto @IMPEXPM_14909

:IMPEXPM_14727
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "_GA_ZZA_"
goto @IMPEXPM_14909

:IMPEXPM_14753
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "ZID_ANE_"
goto @IMPEXPM_14909

:IMPEXPM_14779
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "MC_C01ST"
goto @IMPEXPM_14909

:IMPEXPM_14805
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "BAW_BAG_"
goto @IMPEXPM_14909

:IMPEXPM_14831
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "BR0_D1E_"
goto @IMPEXPM_14909

:IMPEXPM_14857
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "MR_J0BBY"
goto @IMPEXPM_14909

:IMPEXPM_14883
custom_plate_for_next_car $current_import_car_list($impexp_selected_car,6i) {text} "BR0_DICK"
goto @IMPEXPM_14909

:IMPEXPM_14909
return 

:IMPEXPC
script_name 'IMPEXPC'

:IMPEXPC_11
wait 5000
if 
  is_player_playing $player1
goto_if_false @IMPEXPC_306
if 
  $onmission == 0
goto_if_false @IMPEXPC_306
if 
  $import_export_is_active == 1
goto_if_false @IMPEXPC_306
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @IMPEXPC_306
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPEXPC_281
if 
  0@ == 0
goto_if_false @IMPEXPC_274
$car = store_car_char_is_in_no_save $scplayer
1@ = get_car_model $car
2@ = 0
3@ = 0

:IMPEXPC_147
if 
  10 > 2@
goto_if_false @IMPEXPC_238
if 
  is_int_var_equal_to_int_lvar $current_wanted_car_list(2@,10i) == 1@
goto_if_false @IMPEXPC_224
if 
  $current_wanted_car_status(2@,10i) == 0
goto_if_false @IMPEXPC_224
3@ = 1
2@ = 10

:IMPEXPC_224
2@ += 1
goto @IMPEXPC_147

:IMPEXPC_238
if 
  3@ == 1
goto_if_false @IMPEXPC_274
print_help 'IE22'
0@ = 1

:IMPEXPC_274
goto @IMPEXPC_306

:IMPEXPC_281
if 
  0@ == 1
goto_if_false @IMPEXPC_306
0@ = 0

:IMPEXPC_306
goto @IMPEXPC_11

:APCHECK
script_name 'APCHECK'
set_deatharrest_state 0
$iFlagOpenAirportGates = 0
$iAPgateSF1 = create_object_no_offset #WS_APGATE {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_heading $iAPgateSF1 {heading} -45.0
dont_remove_object $iAPgateSF1
$iAPgateSF2 = create_object_no_offset #WS_APGATE {x} -1547.625 {y} -428.82 {z} 6.039
set_object_heading $iAPgateSF2 {heading} -45.0
dont_remove_object $iAPgateSF2
$iAPgateSF1b = create_object_no_offset #WS_APGATE {x} -1222.953 {y} 53.826 {z} 14.134
set_object_heading $iAPgateSF1b {heading} -135.0
dont_remove_object $iAPgateSF1b
$iAPgateSF2b = create_object_no_offset #WS_APGATE {x} -1218.2061 {y} 68.883 {z} 14.134
set_object_heading $iAPgateSF2b {heading} -135.0
dont_remove_object $iAPgateSF2b
$iAPgateLA1 = create_object_no_offset #WS_APGATE {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_heading $iAPgateLA1 {heading} 180.0
dont_remove_object $iAPgateLA1
$iAPgateLA2 = create_object_no_offset #WS_APGATE {x} 1958.851 {y} -2189.7771 {z} 13.553
set_object_heading $iAPgateLA2 {heading} 180.0
dont_remove_object $iAPgateLA2
$iAPgateLV1 = create_object_no_offset #WS_APGATE {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_heading $iAPgateLV1 {heading} 73.0
dont_remove_object $iAPgateLV1
$iAPgateLV2 = create_object_no_offset #WS_APGATE {x} 1706.364 {y} 1610.422 {z} 10.058
set_object_heading $iAPgateLV2 {heading} 73.0
dont_remove_object $iAPgateLV2

:APCHECK_318
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_895
if 
  locate_char_any_means_3d $scplayer {x} -1540.66 {y} -435.786 {z} 6.039 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_537
if 
  $flag_is_farlie3_running == 1
goto_if_false @APCHECK_468
$iFlagOpenAirportGates = 1
start_new_script @APGUARD -1 
set_object_coordinates $iAPgateSF1 {x} -1540.66 {y} -435.786 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1550.709 {y} -425.736 {z} 6.039
goto @APCHECK_530

:APCHECK_468
start_new_script @APGUARD 1 
start_new_script @APGATE $iAPgateSF1 -1540.66 -435.786 6.039 
start_new_script @APGATE $iAPgateSF2 -1550.709 -425.736 6.039 

:APCHECK_530
goto @APCHECK_1087

:APCHECK_537
if 
  locate_char_any_means_3d $scplayer {x} 1968.697 {y} -2189.7759 {z} 13.553 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_654
start_new_script @APGUARD 2 
start_new_script @APGATE $iAPgateLA1 1968.697 -2189.7759 13.553 
start_new_script @APGATE $iAPgateLA2 1954.571 -2189.7771 13.553 
goto @APCHECK_1547

:APCHECK_654
if 
  locate_char_any_means_3d $scplayer {x} 1703.4 {y} 1600.5179 {z} 10.058 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_771
start_new_script @APGUARD 3 
start_new_script @APGATE $iAPgateLV1 1703.4 1600.5179 10.058 
start_new_script @APGATE $iAPgateLV2 1707.722 1614.937 10.058 
goto @APCHECK_1777

:APCHECK_771
if 
  locate_char_any_means_3d $scplayer {x} -1226.162 {y} 65.3807 {z} 13.0375 {xRadius} 65.0 {yRadius} 65.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_888
start_new_script @APGUARD 4 
start_new_script @APGATE $iAPgateSF1b -1226.59 50.189 14.134 
start_new_script @APGATE $iAPgateSF2b -1214.392 72.697 14.134 
goto @APCHECK_1317

:APCHECK_888
goto @APCHECK_1080

:APCHECK_895
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1 {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1547.625 {y} -428.82 {z} 6.039
set_object_coordinates $iAPgateSF1b {x} -1222.953 {y} 53.826 {z} 14.134
set_object_coordinates $iAPgateSF2b {x} -1218.2061 {y} 68.883 {z} 14.134
set_object_coordinates $iAPgateLA1 {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_coordinates $iAPgateLA2 {x} 1958.851 {y} -2189.7771 {z} 13.553
set_object_coordinates $iAPgateLV1 {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_coordinates $iAPgateLV2 {x} 1706.364 {y} 1610.422 {z} 10.058
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1080
goto @APCHECK_318

:APCHECK_1087
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1245
if 
  not locate_char_any_means_3d $scplayer {x} -1540.66 {y} -435.786 {z} 6.039 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1238
if 
  $onmission == 0
goto_if_false @APCHECK_1238
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1 {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1547.625 {y} -428.82 {z} 6.039
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1238
goto @APCHECK_1310

:APCHECK_1245
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1 {x} -1543.7419 {y} -432.703 {z} 6.039
set_object_coordinates $iAPgateSF2 {x} -1547.625 {y} -428.82 {z} 6.039
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1310
goto @APCHECK_1087

:APCHECK_1317
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1475
if 
  not locate_char_any_means_3d $scplayer {x} -1226.162 {y} 65.3807 {z} 13.0375 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1468
if 
  $onmission == 0
goto_if_false @APCHECK_1468
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1b {x} -1222.953 {y} 53.826 {z} 14.134
set_object_coordinates $iAPgateSF2b {x} -1218.2061 {y} 68.883 {z} 14.134
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1468
goto @APCHECK_1540

:APCHECK_1475
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateSF1b {x} -1222.953 {y} 53.826 {z} 14.134
set_object_coordinates $iAPgateSF2b {x} -1218.2061 {y} 68.883 {z} 14.134
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1540
goto @APCHECK_1317

:APCHECK_1547
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1705
if 
  not locate_char_any_means_3d $scplayer {x} 1968.697 {y} -2189.7759 {z} 13.553 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1698
if 
  $onmission == 0
goto_if_false @APCHECK_1698
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLA1 {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_coordinates $iAPgateLA2 {x} 1958.851 {y} -2189.7771 {z} 13.553
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1698
goto @APCHECK_1770

:APCHECK_1705
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLA1 {x} 1964.342 {y} -2189.7759 {z} 13.533
set_object_coordinates $iAPgateLA2 {x} 1958.851 {y} -2189.7771 {z} 13.553
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1770
goto @APCHECK_1547

:APCHECK_1777
wait 0
if 
  is_player_playing $player1
goto_if_false @APCHECK_1935
if 
  not locate_char_any_means_3d $scplayer {x} 1703.4 {y} 1600.5179 {z} 10.058 {xRadius} 66.0 {yRadius} 66.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APCHECK_1928
if 
  $onmission == 0
goto_if_false @APCHECK_1928
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLV1 {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_coordinates $iAPgateLV2 {x} 1706.364 {y} 1610.422 {z} 10.058
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_1928
goto @APCHECK_2000

:APCHECK_1935
terminate_all_scripts_with_this_name 'APGATE'
set_object_coordinates $iAPgateLV1 {x} 1704.777 {y} 1605.165 {z} 10.058
set_object_coordinates $iAPgateLV2 {x} 1706.364 {y} 1610.422 {z} 10.058
$iFlagOpenAirportGates = 0
goto @APCHECK_318

:APCHECK_2000
goto @APCHECK_1777
terminate_this_script 

:APGUARD
script_name 'APGUARD'
3@ = 0

:APGUARD_18
if 
  not has_model_loaded 71
goto_if_false @APGUARD_48
request_model 71
wait 0
goto @APGUARD_18

:APGUARD_48
switch_start 0@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @APGUARD_333 {caseNum1} -1 {caseLabel1} @APGUARD_111 {caseNum2} 1 {caseLabel2} @APGUARD_169 {caseNum3} 2 {caseLabel3} @APGUARD_210 {caseNum4} 3 {caseLabel4} @APGUARD_251 {caseNum5} 4 {caseLabel5} @APGUARD_292 {caseNum6} -1 {caseLabel6} @APGUARD_333 {caseNum7} -1 {caseLabel7} @APGUARD_333

:APGUARD_111
1@ = create_char PedType.CivMale {modelId} 71 {x} -1544.88 {y} -441.1089 {z} 5.0068
set_char_heading 1@ {heading} 7.3631
set_char_money 1@ {amount} 0
dont_remove_char 1@
task_dead 1@
goto @APGUARD_333

:APGUARD_169
1@ = create_char PedType.CivMale {modelId} 71 {x} -1544.396 {y} -443.2464 {z} 5.045
set_char_heading 1@ {heading} 54.6458
goto @APGUARD_333

:APGUARD_210
1@ = create_char PedType.CivMale {modelId} 71 {x} 1955.809 {y} -2181.541 {z} 12.5865
set_char_heading 1@ {heading} 272.1978
goto @APGUARD_333

:APGUARD_251
1@ = create_char PedType.CivMale {modelId} 71 {x} 1717.202 {y} 1617.376 {z} 9.1924
set_char_heading 1@ {heading} 186.0379
goto @APGUARD_333

:APGUARD_292
1@ = create_char PedType.CivMale {modelId} 71 {x} -1229.438 {y} 55.3906 {z} 13.2328
set_char_heading 1@ {heading} 301.4596
goto @APGUARD_333

:APGUARD_333
set_char_decision_maker 1@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
set_char_only_damaged_by_player 1@ {state} True
dont_remove_char 1@

:APGUARD_355
wait 0
if 
  is_player_playing $player1
goto_if_false @APGUARD_542
if 
  not is_char_dead 1@
goto_if_false @APGUARD_528
if 
  not locate_char_any_means_char_3d $scplayer {target} 1@ {xRadius} 67.0 {yRadius} 67.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @APGUARD_434
gosub @APGUARD_883

:APGUARD_434
if 
  not is_char_dead 1@
goto_if_false @APGUARD_493
if 
  locate_char_any_means_char_3d $scplayer {target} 1@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @APGUARD_493
gosub @APGUARD_556

:APGUARD_493
if 
  has_char_been_damaged_by_char 1@ {handle} $scplayer
goto_if_false @APGUARD_521
set_char_relationship 1@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:APGUARD_521
goto @APGUARD_535

:APGUARD_528
gosub @APGUARD_883

:APGUARD_535
goto @APGUARD_549

:APGUARD_542
gosub @APGUARD_883

:APGUARD_549
goto @APGUARD_355

:APGUARD_556
if 
  locate_char_any_means_char_3d $scplayer {target} 1@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @APGUARD_881
2@ = get_int_stat StatId.FlyingSkill
if and
  not is_char_responding_to_event 1@ {event} Event.AcquaintancePedHate
  is_int_lvar_greater_or_equal_to_constant 2@ >= 180
goto_if_false @APGUARD_757
if 
  3@ == 0
goto_if_false @APGUARD_750
3@ = generate_random_int_in_range 1 {max} 100
if 
  3@ > 50
goto_if_false @APGUARD_700
set_var_text_label s$audio_string = 'G_OPEN1'
set_var_int_to_constant $audio_sound_file = 16802
goto @APGUARD_722

:APGUARD_700
set_var_text_label s$audio_string = 'G_OPEN2'
set_var_int_to_constant $audio_sound_file = 16803

:APGUARD_722
start_new_script @AUDIOL 1@ 1 1 2 0 
3@ = 1
return 

:APGUARD_750
goto @APGUARD_881

:APGUARD_757
if 
  3@ == 0
goto_if_false @APGUARD_881
3@ = generate_random_int_in_range 1 {max} 100
if 
  3@ > 50
goto_if_false @APGUARD_831
set_var_text_label s$audio_string = 'G_CLOS1'
set_var_int_to_constant $audio_sound_file = 16800
goto @APGUARD_853

:APGUARD_831
set_var_text_label s$audio_string = 'G_CLOS2'
set_var_int_to_constant $audio_sound_file = 16801

:APGUARD_853
start_new_script @AUDIOL 1@ 1 1 2 0 
3@ = 1
return 

:APGUARD_881
return 

:APGUARD_883
if 
  is_player_playing $player1
goto_if_false @APGUARD_935
if 
  $onmission == 0
goto_if_false @APGUARD_928
delete_char 1@
mark_model_as_no_longer_needed 71
terminate_this_script 

:APGUARD_928
goto @APGUARD_946

:APGUARD_935
delete_char 1@
mark_model_as_no_longer_needed 71
terminate_this_script 

:APGUARD_946
return 

:APGATE
script_name 'APGATE'
5@ = 0
6@ = 0
4@ = 0
if 
  4@ > 0
goto_if_false @APGATE_72
0@ = create_object_no_offset #WS_APGATE {x} 0.0 {y} 0.0 {z} 0.0

:APGATE_72
wait 0
if and
  does_object_exist 0@
  is_player_playing $player1
goto_if_false @APGATE_104
gosub @APGATE_111

:APGATE_104
goto @APGATE_72

:APGATE_111
switch_start 5@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @APGATE_188 {caseNum1} 0 {caseLabel1} @APGATE_174 {caseNum2} -1 {caseLabel2} @APGATE_188 {caseNum3} -1 {caseLabel3} @APGATE_188 {caseNum4} -1 {caseLabel4} @APGATE_188 {caseNum5} -1 {caseLabel5} @APGATE_188 {caseNum6} -1 {caseLabel6} @APGATE_188 {caseNum7} -1 {caseLabel7} @APGATE_188

:APGATE_174
gosub @APGATE_190
goto @APGATE_188

:APGATE_188
return 

:APGATE_190
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @APGATE_1046 {caseNum1} 0 {caseLabel1} @APGATE_253 {caseNum2} 1 {caseLabel2} @APGATE_692 {caseNum3} 2 {caseLabel3} @APGATE_828 {caseNum4} 3 {caseLabel4} @APGATE_910 {caseNum5} -1 {caseLabel5} @APGATE_1046 {caseNum6} -1 {caseLabel6} @APGATE_1046 {caseNum7} -1 {caseLabel7} @APGATE_1046

:APGATE_253
10@ = get_int_stat StatId.FlyingSkill
if 
  is_int_lvar_greater_or_equal_to_constant 10@ >= 180
goto_if_false @APGATE_362
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @APGATE_355
11@, 14@, 17@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_348
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_348
6@ += 1

:APGATE_355
goto @APGATE_685

:APGATE_362
if 
  $iFlagOpenAirportGates > 0
goto_if_false @APGATE_462
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @APGATE_455
11@, 14@, 17@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_448
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_448
6@ += 1

:APGATE_455
goto @APGATE_685

:APGATE_462
11@, 14@, 17@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 5.2 {zOffset} 0.0
if 
  locate_char_any_means_3d $scplayer {x} 11@ {y} 14@ {z} 17@ {xRadius} 4.5 {yRadius} 4.5 {zRadius} 4.5 {drawSphere} False
goto_if_false @APGATE_584
11@, 14@, 17@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_570
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_570
6@ += 1
goto @APGATE_685

:APGATE_584
11@, 14@, 17@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 0.0
if and
  locate_char_any_means_3d $scplayer {x} 11@ {y} 14@ {z} 17@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  180 >= 10@
  not is_this_help_message_being_displayed 'AP_0003'
goto_if_false @APGATE_685
print_help 'AP_0003'

:APGATE_685
goto @APGATE_1046

:APGATE_692
gosub @APGATE_1048
if 
  slide_object 0@ {posX} 1@ {posY} 2@ {posZ} 3@ {speedX} 13@ {speedY} 16@ {speedZ} 19@ {collisionCheck} True
goto_if_false @APGATE_821
if 
  locate_object_3d 0@ {x} 1@ {y} 2@ {z} 3@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @APGATE_821
set_object_coordinates 0@ {x} 1@ {y} 2@ {z} 3@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_814
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop

:APGATE_814
6@ += 1

:APGATE_821
goto @APGATE_1046

:APGATE_828
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @APGATE_903
12@, 15@, 18@ = get_object_coordinates 0@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_896
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart

:APGATE_896
6@ += 1

:APGATE_903
goto @APGATE_1046

:APGATE_910
gosub @APGATE_1048
if 
  slide_object 0@ {posX} 11@ {posY} 14@ {posZ} 17@ {speedX} 13@ {speedY} 16@ {speedZ} 19@ {collisionCheck} True
goto_if_false @APGATE_1039
if 
  locate_object_3d 0@ {x} 11@ {y} 14@ {z} 17@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @APGATE_1039
set_object_coordinates 0@ {x} 11@ {y} 14@ {z} 17@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @APGATE_1032
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop

:APGATE_1032
6@ = 0

:APGATE_1039
goto @APGATE_1046

:APGATE_1046
return 

:APGATE_1048
13@ = get_object_heading 0@
if and
  13@ > 70.0
  75.0 > 13@
goto_if_false @APGATE_1124
13@ = 0.03
16@ = 0.1
19@ = 0.1
goto @APGATE_1154

:APGATE_1124
13@ = 0.1
16@ = 0.1
19@ = 0.1

:APGATE_1154
return 

:GFINIT
script_name 'GFINIT'
$iGFSelfRespect[0] = 30
$iGFLikesPlayer[0] = 15
$iGFDesiredSexAppeal[0] = -100
$iGFRespectGiven[0] = 200
$iGFLikesOnDate[0] = 0
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 1
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 3
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 11
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 16
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 17
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 21
set_global_var_bit_const $iGFLikesOnDate[0] {bitIndex} 27
$iGFLikesPlayerTraits[0] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[0] {bitIndex} 3
$iGFDiaryOfBusyHours[0] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[0] {bitIndex} 14
$iGFSelfRespect[1] = 45
$iGFLikesPlayer[1] = 0
$iGFDesiredSexAppeal[1] = 60
$iGFRespectGiven[1] = 500
$iGFLikesOnDate[1] = 0
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 3
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 11
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 12
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 16
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 17
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 27
set_global_var_bit_const $iGFLikesOnDate[1] {bitIndex} 22
$iGFLikesPlayerTraits[1] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[1] {bitIndex} 2
$iGFDiaryOfBusyHours[1] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 14
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 16
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 18
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 20
set_global_var_bit_const $iGFDiaryOfBusyHours[1] {bitIndex} 22
$iGFSelfRespect[2] = 70
$iGFLikesPlayer[2] = 0
$iGFDesiredSexAppeal[2] = 70
$iGFRespectGiven[2] = 700
$iGFLikesOnDate[2] = 0
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 5
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 14
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 15
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 18
set_global_var_bit_const $iGFLikesOnDate[2] {bitIndex} 28
$iGFLikesPlayerTraits[2] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[2] {bitIndex} 3
$iGFDiaryOfBusyHours[2] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[2] {bitIndex} 12
$iGFSelfRespect[3] = 60
$iGFLikesPlayer[3] = 0
$iGFDesiredSexAppeal[3] = 45
$iGFRespectGiven[3] = 400
$iGFLikesOnDate[3] = 0
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 2
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 18
set_global_var_bit_const $iGFLikesOnDate[3] {bitIndex} 20
$iGFLikesPlayerTraits[3] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[3] {bitIndex} 2
$iGFDiaryOfBusyHours[3] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 12
set_global_var_bit_const $iGFDiaryOfBusyHours[3] {bitIndex} 14
$iGFSelfRespect[4] = 50
$iGFLikesPlayer[4] = 0
$iGFDesiredSexAppeal[4] = 50
$iGFRespectGiven[4] = 300
$iGFLikesOnDate[4] = 0
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 2
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 19
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 17
set_global_var_bit_const $iGFLikesOnDate[4] {bitIndex} 24
$iGFLikesPlayerTraits[4] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[4] {bitIndex} 1
$iGFDiaryOfBusyHours[4] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 10
set_global_var_bit_const $iGFDiaryOfBusyHours[4] {bitIndex} 0
$iGFSelfRespect[5] = 45
$iGFLikesPlayer[5] = 20
$iGFDesiredSexAppeal[5] = 60
$iGFRespectGiven[5] = 400
$iGFLikesOnDate[5] = 0
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 5
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 3
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 13
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 14
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 15
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 19
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 20
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 27
set_global_var_bit_const $iGFLikesOnDate[5] {bitIndex} 23
$iGFLikesPlayerTraits[5] = 0
set_global_var_bit_const $iGFLikesPlayerTraits[5] {bitIndex} 1
$iGFDiaryOfBusyHours[5] = 0
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 22
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 0
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 2
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 4
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 6
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 8
set_global_var_bit_const $iGFDiaryOfBusyHours[5] {bitIndex} 10
$iGFdoor[0] = create_object_no_offset #GEN_DOOREXT03 {x} 2401.75 {y} -1714.4771 {z} 13.125
dont_remove_object $iGFdoor[0]
set_object_collision_damage_effect $iGFdoor[0] {state} False
set_object_proofs $iGFdoor[0] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[4] = create_object_no_offset #GEN_DOOREXT07 {x} -2574.4951 {y} 1153.0229 {z} 54.669
set_object_heading $iGFdoor[4] {heading} -19.444
dont_remove_object $iGFdoor[4]
set_object_collision_damage_effect $iGFdoor[4] {state} False
set_object_proofs $iGFdoor[4] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[1] = create_object_no_offset #GEN_DOORSHOP02 {x} -1800.7061 {y} 1201.041 {z} 24.12
dont_remove_object $iGFdoor[1]
set_object_collision_damage_effect $iGFdoor[1] {state} False
set_object_proofs $iGFdoor[1] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[2] = create_object_no_offset #GEN_DOOREXT04 {x} -383.46 {y} -1439.64 {z} 25.33
set_object_heading $iGFdoor[2] {heading} 90.0
dont_remove_object $iGFdoor[2]
set_object_collision_damage_effect $iGFdoor[2] {state} False
set_object_proofs $iGFdoor[2] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[3] = create_object_no_offset #GEN_DOORSHOP3 {x} -1390.79 {y} 2639.3301 {z} 54.973
dont_remove_object $iGFdoor[3]
set_object_collision_damage_effect $iGFdoor[3] {state} False
set_object_proofs $iGFdoor[3] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[5] = create_object_no_offset #GEN_DOOREXT03 {x} 2038.036 {y} 2721.3701 {z} 10.53
set_object_heading $iGFdoor[5] {heading} -180.0
dont_remove_object $iGFdoor[5]
set_object_collision_damage_effect $iGFdoor[5] {state} False
set_object_proofs $iGFdoor[5] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iGFdoor[6] = create_object_no_offset #CUNTGIRLDOOR {x} -371.4 {y} -1429.42 {z} 26.47
dont_remove_object $iGFdoor[6]
set_object_collision_damage_effect $iGFdoor[6] {state} False
set_object_proofs $iGFdoor[6] {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$iCensoredVersion = 1
start_new_script @GFAGNT 
terminate_this_script 

:GFAGNT
script_name 'GFAGNT'
$iGFTimeStep = 0
3@ = 0
4@ = 0
$iAgentFlags = 0
0@ = 0
1@ = 0
set_var_text_label16 v$GF_txtConsoleCheck = "NIL"
$iPhoneState = 20
$iGFidx = -1
8@ = -1
7@ = 1
if 
  3@ > 0
goto_if_false @GFAGNT_335
2@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[0] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[1] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[2] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[3] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[4] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFHomeBlips[5] = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$iGFLockedCarGenerator[0] = create_car_generator 0.0 {y} 0.0 {z} 0.0 {heading} 0.0 {modelId} 0 {primaryColor} 0 {secondaryColor} 0 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 0
$iGFUnlockedCarGenerator[0] = create_car_generator 0.0 {y} 0.0 {z} 0.0 {heading} 0.0 {modelId} 0 {primaryColor} 0 {secondaryColor} 0 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 0

:GFAGNT_335
wait $iGFTimeStep
if and
  is_player_playing $player1
  not is_char_dead $scplayer
  $onmission == 0
goto_if_false @GFAGNT_389
clear_global_var_bit_const $iAgentFlags {bitIndex} 31
gosub @GFAGNT_428
goto @GFAGNT_421

:GFAGNT_389
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 31
goto_if_false @GFAGNT_421
gosub @GFAGNT_11185
set_global_var_bit_const $iAgentFlags {bitIndex} 31

:GFAGNT_421
goto @GFAGNT_335

:GFAGNT_428
switch_start 0@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_561 {caseNum1} 0 {caseLabel1} @GFAGNT_491 {caseNum2} 1 {caseLabel2} @GFAGNT_505 {caseNum3} 2 {caseLabel3} @GFAGNT_519 {caseNum4} 3 {caseLabel4} @GFAGNT_533 {caseNum5} 4 {caseLabel5} @GFAGNT_547 {caseNum6} -1 {caseLabel6} @GFAGNT_561 {caseNum7} -1 {caseLabel7} @GFAGNT_561

:GFAGNT_491
gosub @GFAGNT_563
goto @GFAGNT_561

:GFAGNT_505
gosub @GFAGNT_1605
goto @GFAGNT_561

:GFAGNT_519
gosub @GFAGNT_2298
goto @GFAGNT_561

:GFAGNT_533
gosub @GFAGNT_2604
goto @GFAGNT_561

:GFAGNT_547
gosub @GFAGNT_2781
goto @GFAGNT_561

:GFAGNT_561
return 

:GFAGNT_563
gosub @GFAGNT_5005
if 
  is_global_var_bit_set_var $iActiveGF {var_bitIndex} $iGFidx
goto_if_false @GFAGNT_1167
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 25
goto_if_false @GFAGNT_621
3@ = 1
goto @GFAGNT_891

:GFAGNT_621
3@ = 0
4@ = get_city_player_is_in $player1
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_891 {caseNum1} 0 {caseLabel1} @GFAGNT_699 {caseNum2} 1 {caseLabel2} @GFAGNT_795 {caseNum3} 2 {caseLabel3} @GFAGNT_763 {caseNum4} 3 {caseLabel4} @GFAGNT_731 {caseNum5} 4 {caseLabel5} @GFAGNT_827 {caseNum6} 5 {caseLabel6} @GFAGNT_859 {caseNum7} -1 {caseLabel7} @GFAGNT_891

:GFAGNT_699
if 
  is_int_lvar_equal_to_constant 4@ == 1
goto_if_false @GFAGNT_724
3@ = 1

:GFAGNT_724
goto @GFAGNT_891

:GFAGNT_731
if 
  is_int_lvar_equal_to_constant 4@ == 0
goto_if_false @GFAGNT_756
3@ = 1

:GFAGNT_756
goto @GFAGNT_891

:GFAGNT_763
if 
  is_int_lvar_equal_to_constant 4@ == 0
goto_if_false @GFAGNT_788
3@ = 1

:GFAGNT_788
goto @GFAGNT_891

:GFAGNT_795
if 
  is_int_lvar_equal_to_constant 4@ == 2
goto_if_false @GFAGNT_820
3@ = 1

:GFAGNT_820
goto @GFAGNT_891

:GFAGNT_827
if 
  is_int_lvar_equal_to_constant 4@ == 2
goto_if_false @GFAGNT_852
3@ = 1

:GFAGNT_852
goto @GFAGNT_891

:GFAGNT_859
if 
  is_int_lvar_equal_to_constant 4@ == 3
goto_if_false @GFAGNT_884
3@ = 1

:GFAGNT_884
goto @GFAGNT_891

:GFAGNT_891
if 
  3@ == 1
goto_if_false @GFAGNT_1158
gosub @GFAGNT_2980
gosub @GFAGNT_5122
if 
  3@ > 0
goto_if_false @GFAGNT_1144
$iGFTimeStep = 250
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @GFAGNT_1137
gosub @GFAGNT_4358
gosub @GFAGNT_5333
if 
  3@ > 0
goto_if_false @GFAGNT_1044
$iGFTimeStep = 0
gosub @GFAGNT_5639
set_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
0@ = 4
1@ = 0
return 
goto @GFAGNT_1137

:GFAGNT_1044
clear_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
gosub @GFAGNT_5742
$iGFTimeStep = 250
if 
  locate_stopped_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @GFAGNT_1137
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @GFAGNT_1135
print_help 'GF_0048'

:GFAGNT_1135
return 

:GFAGNT_1137
goto @GFAGNT_1151

:GFAGNT_1144
gosub @GFAGNT_6114

:GFAGNT_1151
goto @GFAGNT_1160

:GFAGNT_1158
return 

:GFAGNT_1160
goto @GFAGNT_1603

:GFAGNT_1167
gosub @GFAGNT_3801
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @GFAGNT_1603
gosub @GFAGNT_5196
if 
  3@ > 0
goto_if_false @GFAGNT_1591
$iGFTimeStep = 250
if and
  $iGFidx == 2
  2 > $flag_la1fin1_mission_counter
goto_if_false @GFAGNT_1256
mark_streamed_script_as_no_longer_needed 24
return 

:GFAGNT_1256
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_1584
if 
  is_global_var_bit_set_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31
goto_if_false @GFAGNT_1460
3@ = get_current_day_of_week 
3@ += 22
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
goto_if_false @GFAGNT_1368
gosub @GFAGNT_9541
3@ = 1
goto @GFAGNT_1453

:GFAGNT_1368
3@ += 1
if 
  3@ > 29
goto_if_false @GFAGNT_1400
3@ = 23

:GFAGNT_1400
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
goto_if_false @GFAGNT_1439
3@ = -1
return 
goto @GFAGNT_1453

:GFAGNT_1439
gosub @GFAGNT_9541
3@ = 1

:GFAGNT_1453
goto @GFAGNT_1467

:GFAGNT_1460
3@ = 1

:GFAGNT_1467
if 
  3@ == 1
goto_if_false @GFAGNT_1584
gosub @GFAGNT_4705
3@ = get_number_of_instances_of_streamed_script 24
if 
  3@ == 0
goto_if_false @GFAGNT_1584
stream_script 24
if 
  has_streamed_script_loaded 24
goto_if_false @GFAGNT_1584
set_global_var_bit_const $iDateReport {bitIndex} 20
start_new_streamed_script 24 {args} $iGFidx 10@ 11@ 12@ 13@ 
$iGFTimeStep = 0
0@ = 3
1@ = 0

:GFAGNT_1584
goto @GFAGNT_1603

:GFAGNT_1591
$iGFTimeStep = 500
mark_streamed_script_as_no_longer_needed 24

:GFAGNT_1603
return 

:GFAGNT_1605
switch_start 1@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_2296 {caseNum1} 0 {caseLabel1} @GFAGNT_1668 {caseNum2} 1 {caseLabel2} @GFAGNT_1890 {caseNum3} 2 {caseLabel3} @GFAGNT_1942 {caseNum4} 3 {caseLabel4} @GFAGNT_2095 {caseNum5} 4 {caseLabel5} @GFAGNT_2218 {caseNum6} -1 {caseLabel6} @GFAGNT_2296 {caseNum7} -1 {caseLabel7} @GFAGNT_2296

:GFAGNT_1668
if 
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_1701
gosub @GFAGNT_7091
$iPhoneState = 20

:GFAGNT_1701
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iGFidx
gosub @GFAGNT_7457
if 
  is_player_playing $player1
goto_if_false @GFAGNT_1746
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
get_rid_of_player_prostitute 

:GFAGNT_1746
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 31
goto_if_false @GFAGNT_1771
$iDateReport = 0

:GFAGNT_1771
gosub @GFAGNT_9631
if and
  3@ == 1
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 23
goto_if_false @GFAGNT_1821
set_global_var_bit_const $iDateReport {bitIndex} 14
goto @GFAGNT_1872

:GFAGNT_1821
if 
  30 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_1857
set_global_var_bit_const $iDateReport {bitIndex} 11
goto @GFAGNT_1872

:GFAGNT_1857
gosub @GFAGNT_7115
set_global_var_bit_lvar $iDateReport {var_bitIndex} 3@

:GFAGNT_1872
stream_script 25
1@ += 1
goto @GFAGNT_2296

:GFAGNT_1890
if 
  has_streamed_script_loaded 25
goto_if_false @GFAGNT_1935
set_global_var_bit_const $iDateReport {bitIndex} 1
clear_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
start_new_streamed_script 25 {args} 2@ 
1@ += 1

:GFAGNT_1935
goto @GFAGNT_2296

:GFAGNT_1942
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @GFAGNT_2056
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 3
goto_if_false @GFAGNT_2028
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 5
goto_if_false @GFAGNT_2021
set_player_control $player1 {state} False
gosub @GFAGNT_9180
stream_script 26
1@ += 1

:GFAGNT_2021
goto @GFAGNT_2049

:GFAGNT_2028
do_fade 1000 {direction} Fade.In
0@ = 2
1@ = 0

:GFAGNT_2049
goto @GFAGNT_2088

:GFAGNT_2056
3@ = get_number_of_instances_of_streamed_script 25
if 
  3@ == 0
goto_if_false @GFAGNT_2088
clear_global_var_bit_const $iDateReport {bitIndex} 1

:GFAGNT_2088
goto @GFAGNT_2296

:GFAGNT_2095
if 
  has_streamed_script_loaded 26
goto_if_false @GFAGNT_2211
3@ = get_area_visible 
gosub @GFAGNT_4358
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFAGNT_2172
start_new_streamed_script 26 {args} $iGFidx 1 3@ 10@ 11@ 12@ 13@ 
goto @GFAGNT_2197

:GFAGNT_2172
start_new_streamed_script 26 {args} $iGFidx 0 3@ 10@ 11@ 12@ 13@ 

:GFAGNT_2197
set_global_var_bit_const $iDateReport {bitIndex} 5
1@ += 1

:GFAGNT_2211
goto @GFAGNT_2296

:GFAGNT_2218
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 5
goto_if_false @GFAGNT_2257
0@ = 2
1@ = 0
goto @GFAGNT_2289

:GFAGNT_2257
3@ = get_number_of_instances_of_streamed_script 26
if 
  3@ == 0
goto_if_false @GFAGNT_2289
clear_global_var_bit_const $iDateReport {bitIndex} 5

:GFAGNT_2289
goto @GFAGNT_2296

:GFAGNT_2296
return 

:GFAGNT_2298
switch_start 1@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_2602 {caseNum1} 0 {caseLabel1} @GFAGNT_2361 {caseNum2} 1 {caseLabel2} @GFAGNT_2477 {caseNum3} -1 {caseLabel3} @GFAGNT_2602 {caseNum4} -1 {caseLabel4} @GFAGNT_2602 {caseNum5} -1 {caseLabel5} @GFAGNT_2602 {caseNum6} -1 {caseLabel6} @GFAGNT_2602 {caseNum7} -1 {caseLabel7} @GFAGNT_2602

:GFAGNT_2361
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iGFidx
gosub @GFAGNT_9180
if 
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_2427
clear_help 
print_help 'GF_0039'
clear_global_var_bit_var $iActiveGF {var_bitIndex} $iGFidx
goto @GFAGNT_2463

:GFAGNT_2427
gosub @GFAGNT_8694
if 
  $iGFLikesPlayer($iGFidx,6i) >= 50
goto_if_false @GFAGNT_2463
gosub @GFAGNT_5791

:GFAGNT_2463
1@ += 1
goto @GFAGNT_2602

:GFAGNT_2477
if or
  $iGFLikesPlayer($iGFidx,6i) == -100
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_2539
gosub @GFAGNT_9697
0@ = 0
1@ = 0
goto @GFAGNT_2595

:GFAGNT_2539
if 
  not locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_2595
0@ = 0
1@ = 0

:GFAGNT_2595
goto @GFAGNT_2602

:GFAGNT_2602
return 

:GFAGNT_2604
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @GFAGNT_2747
gosub @GFAGNT_4705
if 
  not locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 65.0 {yRadius} 65.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @GFAGNT_2740
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 21
goto_if_false @GFAGNT_2726
7@ = get_current_day_of_week 
7@ += 1
if 
  7@ > 7
goto_if_false @GFAGNT_2726
7@ = 1

:GFAGNT_2726
0@ = 0
1@ = 0

:GFAGNT_2740
goto @GFAGNT_2779

:GFAGNT_2747
3@ = get_number_of_instances_of_streamed_script 24
if 
  3@ == 0
goto_if_false @GFAGNT_2779
clear_global_var_bit_const $iDateReport {bitIndex} 20

:GFAGNT_2779
return 

:GFAGNT_2781
if 
  locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 75.0 {yRadius} 75.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_2964
gosub @GFAGNT_5333
if 
  3@ > 0
goto_if_false @GFAGNT_2943
if 
  locate_stopped_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @GFAGNT_2936
if and
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
  can_player_start_mission $player1
goto_if_false @GFAGNT_2936
set_player_control $player1 {state} False
0@ = 1
1@ = 0
return 

:GFAGNT_2936
goto @GFAGNT_2957

:GFAGNT_2943
0@ = 0
1@ = 0

:GFAGNT_2957
goto @GFAGNT_2978

:GFAGNT_2964
0@ = 0
1@ = 0

:GFAGNT_2978
return 

:GFAGNT_2980
if 
  not does_blip_exist $iGFHomeBlips($iGFidx,6i)
goto_if_false @GFAGNT_3094
gosub @GFAGNT_4358
add_short_range_sprite_blip_for_coord 10@ {y} 11@ {z} 12@ {sprite} RadarSprite.Girlfriend {var_handle} $iGFHomeBlips($iGFidx,6i)
increment_int_stat StatId.CurrentGirlfriends {value} 1
increment_int_stat StatId.GirlsDated {value} 1
3@ = get_int_stat StatId.RespectGirlfriend
add_int_var_to_int_lvar 3@ += $iGFRespectGiven($iGFidx,6i)
if 
  3@ > 1000
goto_if_false @GFAGNT_3087
3@ = 1000

:GFAGNT_3087
set_int_stat StatId.RespectGirlfriend {value} 3@

:GFAGNT_3094
switch_start $iGFidx {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_3799 {caseNum1} 0 {caseLabel1} @GFAGNT_3157 {caseNum2} 1 {caseLabel2} @GFAGNT_3224 {caseNum3} 2 {caseLabel3} @GFAGNT_3342 {caseNum4} 3 {caseLabel4} @GFAGNT_3553 {caseNum5} 4 {caseLabel5} @GFAGNT_3676 {caseNum6} -1 {caseLabel6} @GFAGNT_3799 {caseNum7} -1 {caseLabel7} @GFAGNT_3799

:GFAGNT_3157
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_pimp_clothes == 0
goto_if_false @GFAGNT_3217
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3217
print_help 'GF_H006'
$flag_got_pimp_clothes = 1

:GFAGNT_3217
goto @GFAGNT_3799

:GFAGNT_3224
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_mechanic_clothes == 0
goto_if_false @GFAGNT_3284
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3284
print_help 'GF_H006'
$flag_got_mechanic_clothes = 1

:GFAGNT_3284
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 21
goto_if_false @GFAGNT_3335
change_garage_type 'MICHDR' {type} GarageType.Respray
set_garage_respray_free 'MICHDR' {state} True
set_global_var_bit_const $iActiveGF {bitIndex} 21

:GFAGNT_3335
goto @GFAGNT_3799

:GFAGNT_3342
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_player_got_country_clothes == 0
goto_if_false @GFAGNT_3402
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3402
print_help 'GF_H006'
$flag_player_got_country_clothes = 1

:GFAGNT_3402
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 22
goto_if_false @GFAGNT_3546
set_object_visible $iGFdoor[6] {state} False
set_object_collision $iGFdoor[6] {state} False
$iGFBonusPickupID = create_pickup 344 {pickupType} PickupType.OnStreetSlow {x} -366.2235 {y} -1429.088 {z} 25.5
$395 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -365.7906 {y} -1425.2531 {z} 25.5
$396 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 100 {x} -365.4774 {y} -1422.401 {z} 25.5
$397 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} -366.066 {y} -1418.683 {z} 25.5
set_global_var_bit_const $iActiveGF {bitIndex} 22

:GFAGNT_3546
goto @GFAGNT_3799

:GFAGNT_3553
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_player_got_police_uniform == 0
goto_if_false @GFAGNT_3613
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3613
print_help 'GF_H006'
$flag_player_got_police_uniform = 1

:GFAGNT_3613
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 23
goto_if_false @GFAGNT_3669
set_extra_police_station_restart_point -1379.843 {y} 2635.74 {z} 54.4315 {radius} 1500.0 {heading} 170.6194
switch_arrest_penalties False
set_global_var_bit_const $iActiveGF {bitIndex} 23

:GFAGNT_3669
goto @GFAGNT_3799

:GFAGNT_3676
if and
  $iGFLikesPlayer($iGFidx,6i) >= 100
  $flag_got_medic_clothes == 0
goto_if_false @GFAGNT_3736
if 
  not is_help_message_being_displayed 
goto_if_false @GFAGNT_3736
print_help 'GF_H006'
$flag_got_medic_clothes = 1

:GFAGNT_3736
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 24
goto_if_false @GFAGNT_3792
set_extra_hospital_restart_point -2570.511 {y} 1139.582 {z} 54.8547 {radius} 1500.0 {heading} 160.0
switch_death_penalties False
set_global_var_bit_const $iActiveGF {bitIndex} 24

:GFAGNT_3792
goto @GFAGNT_3799

:GFAGNT_3799
return 

:GFAGNT_3801
if 
  $Returned_oysters == 50
goto_if_false @GFAGNT_3866
if and
  0 > $iGFLikesPlayer($iGFidx,6i)
  $iGFidx <> 0
  $iGFidx <> 5
goto_if_false @GFAGNT_3866
$iGFLikesPlayer($iGFidx,6i) = 45

:GFAGNT_3866
if 
  does_blip_exist $iGFHomeBlips($iGFidx,6i)
goto_if_false @GFAGNT_3982
remove_blip $iGFHomeBlips($iGFidx,6i)
gosub @GFAGNT_9697
gosub @GFAGNT_5742
clear_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
decrement_int_stat StatId.CurrentGirlfriends {value} 1
increment_int_stat StatId.GirlsDumped {value} 1
3@ = get_int_stat StatId.RespectGirlfriend
sub_int_var_from_int_lvar 3@ -= $iGFRespectGiven($iGFidx,6i)
if 
  0 > 3@
goto_if_false @GFAGNT_3975
3@ = 0

:GFAGNT_3975
set_int_stat StatId.RespectGirlfriend {value} 3@

:GFAGNT_3982
set_lvar_int_to_var_int 3@ = $iGFidx
3@ += 20
if 
  is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 3@
goto_if_false @GFAGNT_4356
switch_start $iGFidx {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_4356 {caseNum1} 1 {caseLabel1} @GFAGNT_4079 {caseNum2} 2 {caseLabel2} @GFAGNT_4178 {caseNum3} 3 {caseLabel3} @GFAGNT_4274 {caseNum4} 4 {caseLabel4} @GFAGNT_4319 {caseNum5} -1 {caseLabel5} @GFAGNT_4356 {caseNum6} -1 {caseLabel6} @GFAGNT_4356 {caseNum7} -1 {caseLabel7} @GFAGNT_4356

:GFAGNT_4079
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1790.7 {leftBottomY} 1209.0 {leftBottomZ} 23.0 {rightTopX} -1784.0 {rightTopY} 1221.5 {rightTopZ} 27.5 {drawSphere} False
goto_if_false @GFAGNT_4171
set_garage_respray_free 'MICHDR' {state} False
change_garage_type 'MICHDR' {type} GarageType.ForScriptToOpenAndClose
close_garage 'MICHDR'
clear_global_var_bit_const $iActiveGF {bitIndex} 21

:GFAGNT_4171
goto @GFAGNT_4356

:GFAGNT_4178
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -361.0 {leftBottomY} -1417.0 {leftBottomZ} 23.0 {rightTopX} -372.0 {rightTopY} -1431.0 {rightTopZ} 30.0 {drawSphere} False
goto_if_false @GFAGNT_4267
remove_pickup $iGFBonusPickupID
remove_pickup $395
remove_pickup $396
remove_pickup $397
set_object_visible $iGFdoor[6] {state} True
set_object_collision $iGFdoor[6] {state} True
clear_global_var_bit_const $iActiveGF {bitIndex} 22

:GFAGNT_4267
goto @GFAGNT_4356

:GFAGNT_4274
set_extra_police_station_restart_point -1379.843 {y} 2635.74 {z} 54.4315 {radius} 0.0 {heading} 170.6194
switch_arrest_penalties True
clear_global_var_bit_const $iActiveGF {bitIndex} 23
goto @GFAGNT_4356

:GFAGNT_4319
set_extra_hospital_restart_point 10@ {y} 11@ {z} 12@ {radius} 0.0 {heading} 13@
switch_death_penalties True
clear_global_var_bit_const $iActiveGF {bitIndex} 24
goto @GFAGNT_4356

:GFAGNT_4356
return 

:GFAGNT_4358
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_4703 {caseNum1} 0 {caseLabel1} @GFAGNT_4421 {caseNum2} 1 {caseLabel2} @GFAGNT_4468 {caseNum3} 2 {caseLabel3} @GFAGNT_4515 {caseNum4} 3 {caseLabel4} @GFAGNT_4562 {caseNum5} 4 {caseLabel5} @GFAGNT_4609 {caseNum6} 5 {caseLabel6} @GFAGNT_4656 {caseNum7} -1 {caseLabel7} @GFAGNT_4703

:GFAGNT_4421
10@ = 2401.9651
11@ = -1723.22
12@ = 12.6005
13@ = 180.0
goto @GFAGNT_4703

:GFAGNT_4468
10@ = -1799.5
11@ = 1195.5
12@ = 24.1094
13@ = 180.0
goto @GFAGNT_4703

:GFAGNT_4515
10@ = -377.3978
11@ = -1438.692
12@ = 24.7209
13@ = 270.0
goto @GFAGNT_4703

:GFAGNT_4562
10@ = -1398.101
11@ = 2636.873
12@ = 54.7031
13@ = 75.0
goto @GFAGNT_4703

:GFAGNT_4609
10@ = -2576.8081
11@ = 1144.744
12@ = 54.7422
13@ = 164.0
goto @GFAGNT_4703

:GFAGNT_4656
10@ = 2035.3621
11@ = 2732.4109
12@ = 9.8203
13@ = 0.0
goto @GFAGNT_4703

:GFAGNT_4703
return 

:GFAGNT_4705
switch_start $iGFidx {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GFAGNT_4956 {caseNum1} 1 {caseLabel1} @GFAGNT_4768 {caseNum2} 2 {caseLabel2} @GFAGNT_4815 {caseNum3} 3 {caseLabel3} @GFAGNT_4862 {caseNum4} 4 {caseLabel4} @GFAGNT_4909 {caseNum5} -1 {caseLabel5} @GFAGNT_5003 {caseNum6} -1 {caseLabel6} @GFAGNT_5003 {caseNum7} -1 {caseLabel7} @GFAGNT_5003

:GFAGNT_4768
10@ = -2027.583
11@ = -118.7022
12@ = 1034.0
13@ = 3.4
goto @GFAGNT_5003

:GFAGNT_4815
10@ = 257.6682
11@ = -154.7475
12@ = 4.0786
13@ = 268.7731
goto @GFAGNT_5003

:GFAGNT_4862
10@ = -1410.1
11@ = 2648.731
12@ = 54.6875
13@ = 130.0
goto @GFAGNT_5003

:GFAGNT_4909
10@ = -2291.708
11@ = -233.0215
12@ = 41.7185
13@ = 360.0
goto @GFAGNT_5003

:GFAGNT_4956
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0.0
goto @GFAGNT_5003

:GFAGNT_5003
return 

:GFAGNT_5005
8@ += 1
if 
  8@ >= 6
goto_if_false @GFAGNT_5037
8@ = 0

:GFAGNT_5037
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 25
goto_if_false @GFAGNT_5088
if 
  is_int_lvar_equal_to_int_var 8@ == $iGFidx
goto_if_false @GFAGNT_5081
clear_global_var_bit_const $iAgentFlags {bitIndex} 25

:GFAGNT_5081
goto @GFAGNT_5120

:GFAGNT_5088
$iGFidx += 1
if 
  $iGFidx >= 6
goto_if_false @GFAGNT_5120
$iGFidx = 0

:GFAGNT_5120
return 

:GFAGNT_5122
gosub @GFAGNT_4358
if 
  locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 65.0 {yRadius} 65.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @GFAGNT_5187
set_global_var_bit_const $iAgentFlags {bitIndex} 25
3@ = 1
return 

:GFAGNT_5187
3@ = -1
return 

:GFAGNT_5196
gosub @GFAGNT_4705
if 
  10@ <> 0.0
goto_if_false @GFAGNT_5324
if 
  locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 80.0 {yRadius} 80.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_5324
if 
  not locate_char_any_means_3d $scplayer {x} 10@ {y} 11@ {z} 12@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @GFAGNT_5324
set_global_var_bit_const $iAgentFlags {bitIndex} 25
3@ = 1
return 

:GFAGNT_5324
3@ = -1
return 

:GFAGNT_5333
3@ = -1
if and
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_5375
3@ = 1
return 

:GFAGNT_5375
if and
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 10
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_5410
3@ = 1
return 

:GFAGNT_5410
if 
  is_global_var_bit_set_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31
goto_if_false @GFAGNT_5559
3@ = get_current_day_of_week 
3@ += 22
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
goto_if_false @GFAGNT_5481
gosub @GFAGNT_9541
goto @GFAGNT_5559

:GFAGNT_5481
3@ += 1
if 
  3@ > 29
goto_if_false @GFAGNT_5513
3@ = 23

:GFAGNT_5513
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
goto_if_false @GFAGNT_5552
3@ = -1
return 
goto @GFAGNT_5559

:GFAGNT_5552
gosub @GFAGNT_9541

:GFAGNT_5559
3@, 4@ = get_time_of_day 
set_lvar_int_to_lvar_int 4@ = 3@
4@ /= 2
4@ *= 2
if 
  is_global_var_bit_set_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 4@
goto_if_false @GFAGNT_5628
3@ = -1
return 
goto @GFAGNT_5637

:GFAGNT_5628
3@ = 1
return 

:GFAGNT_5637
return 

:GFAGNT_5639
if 
  $iGFLikesPlayer($iGFidx,6i) >= 50
goto_if_false @GFAGNT_5704
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 26
goto_if_false @GFAGNT_5697
switch_car_generator $iGFUnlockedCarGenerator($iGFidx,6i) {amount} 101
set_global_var_bit_const $iAgentFlags {bitIndex} 26

:GFAGNT_5697
goto @GFAGNT_5740

:GFAGNT_5704
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 26
goto_if_false @GFAGNT_5740
switch_car_generator $iGFLockedCarGenerator($iGFidx,6i) {amount} 101
set_global_var_bit_const $iAgentFlags {bitIndex} 26

:GFAGNT_5740
return 

:GFAGNT_5742
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 26
goto_if_false @GFAGNT_5789
switch_car_generator $iGFUnlockedCarGenerator($iGFidx,6i) {amount} 0
switch_car_generator $iGFLockedCarGenerator($iGFidx,6i) {amount} 0
clear_global_var_bit_const $iAgentFlags {bitIndex} 26

:GFAGNT_5789
return 

:GFAGNT_5791
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_6112 {caseNum1} 0 {caseLabel1} @GFAGNT_5854 {caseNum2} 1 {caseLabel2} @GFAGNT_5897 {caseNum3} 2 {caseLabel3} @GFAGNT_5940 {caseNum4} 3 {caseLabel4} @GFAGNT_5983 {caseNum5} 4 {caseLabel5} @GFAGNT_6026 {caseNum6} 5 {caseLabel6} @GFAGNT_6069 {caseNum7} -1 {caseLabel7} @GFAGNT_6112

:GFAGNT_5854
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 25
goto_if_false @GFAGNT_5890
print_help 'GF_H007'
set_global_var_bit_const $iActiveGF {bitIndex} 25

:GFAGNT_5890
goto @GFAGNT_6112

:GFAGNT_5897
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 26
goto_if_false @GFAGNT_5933
print_help 'GF_H008'
set_global_var_bit_const $iActiveGF {bitIndex} 26

:GFAGNT_5933
goto @GFAGNT_6112

:GFAGNT_5940
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 27
goto_if_false @GFAGNT_5976
print_help 'GF_H009'
set_global_var_bit_const $iActiveGF {bitIndex} 27

:GFAGNT_5976
goto @GFAGNT_6112

:GFAGNT_5983
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 28
goto_if_false @GFAGNT_6019
print_help 'GF_H010'
set_global_var_bit_const $iActiveGF {bitIndex} 28

:GFAGNT_6019
goto @GFAGNT_6112

:GFAGNT_6026
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 29
goto_if_false @GFAGNT_6062
print_help 'GF_H011'
set_global_var_bit_const $iActiveGF {bitIndex} 29

:GFAGNT_6062
goto @GFAGNT_6112

:GFAGNT_6069
if 
  not is_global_var_bit_set_const $iActiveGF {bitIndex} 30
goto_if_false @GFAGNT_6105
print_help 'GF_H012'
set_global_var_bit_const $iActiveGF {bitIndex} 30

:GFAGNT_6105
goto @GFAGNT_6112

:GFAGNT_6112
return 

:GFAGNT_6114
switch_start $iPhoneState {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_6636 {caseNum1} 20 {caseLabel1} @GFAGNT_6177 {caseNum2} 21 {caseLabel2} @GFAGNT_6205 {caseNum3} 22 {caseLabel3} @GFAGNT_6338 {caseNum4} 23 {caseLabel4} @GFAGNT_6434 {caseNum5} 24 {caseLabel5} @GFAGNT_6492 {caseNum6} -1 {caseLabel6} @GFAGNT_6636 {caseNum7} -1 {caseLabel7} @GFAGNT_6636

:GFAGNT_6177
gosub @GFAGNT_7091
gosub @GFAGNT_9070
gosub @GFAGNT_6638
goto @GFAGNT_6636

:GFAGNT_6205
3@ = get_minutes_to_time_of_day 5@ {minutes} 6@
if 
  5 >= 3@
goto_if_false @GFAGNT_6331
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
goto_if_false @GFAGNT_6331
if 
  is_int_var_equal_to_int_var $iCaller == $iGFidx
goto_if_false @GFAGNT_6298
start_new_script @MOB_GF $iGFidx 1 
$iPhoneState = 22
goto @GFAGNT_6331

:GFAGNT_6298
if 
  not is_global_var_bit_set_var $iActiveGF {var_bitIndex} $iCaller
goto_if_false @GFAGNT_6331
gosub @GFAGNT_7091
$iPhoneState = 20

:GFAGNT_6331
goto @GFAGNT_6636

:GFAGNT_6338
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
goto_if_false @GFAGNT_6427
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 10
goto_if_false @GFAGNT_6395
gosub @GFAGNT_6757
$iPhoneState = 23
goto @GFAGNT_6427

:GFAGNT_6395
$iGFLikesPlayer($iCaller,6i) -= 2
gosub @GFAGNT_9854
gosub @GFAGNT_7091
$iPhoneState = 20

:GFAGNT_6427
goto @GFAGNT_6636

:GFAGNT_6434
3@ = get_minutes_to_time_of_day 5@ {minutes} 6@
if 
  5 >= 3@
goto_if_false @GFAGNT_6485
set_var_int_to_var_int $iGFidx = $iCaller
gosub @GFAGNT_6829
$iPhoneState = 20

:GFAGNT_6485
goto @GFAGNT_6636

:GFAGNT_6492
if 
  not is_global_var_bit_set_const $iAgentFlags {bitIndex} 11
goto_if_false @GFAGNT_6629
if 
  is_global_var_bit_set_const $iAgentFlags {bitIndex} 10
goto_if_false @GFAGNT_6586
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6572
$iGFLikesPlayer($iCaller,6i) = -100
clear_global_var_bit_var $iActiveGF {var_bitIndex} $iCaller

:GFAGNT_6572
$iPhoneState = 20
goto @GFAGNT_6629

:GFAGNT_6586
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_6622
$iGFLikesPlayer($iCaller,6i) = -99

:GFAGNT_6622
$iPhoneState = 20

:GFAGNT_6629
goto @GFAGNT_6636

:GFAGNT_6636
return 

:GFAGNT_6638
3@ = generate_random_int_in_range 0 {max} 6
if 
  is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 3@
goto_if_false @GFAGNT_6755
if 
  $iGFLikesPlayer(3@,6i) > -15
goto_if_false @GFAGNT_6755
if and
  $iGFLikesPlayer(3@,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_6755
5@ = generate_random_int_in_range 1 {max} 23
6@ = generate_random_int_in_range 1 {max} 59
set_var_int_to_lvar_int $iCaller = 3@
$iPhoneState = 21

:GFAGNT_6755
return 

:GFAGNT_6757
5@, 6@ = get_time_of_day 
6@ = 31
5@ += 5
if 
  5@ > 23
goto_if_false @GFAGNT_6827
set_lvar_int_to_lvar_int 3@ = 5@
3@ -= 23
5@ = 0
add_int_lvar_to_int_lvar 5@ += 3@

:GFAGNT_6827
return 

:GFAGNT_6829
if and
  $iCaller > -1
  6 > $iCaller
goto_if_false @GFAGNT_7089
$iGFLikesPlayer($iCaller,6i) -= 3
gosub @GFAGNT_9854
if and
  not is_help_message_being_displayed 
  $iGFLikesPlayer($iCaller,6i) > -15
goto_if_false @GFAGNT_7089
switch_start $iCaller {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_7067 {caseNum1} 0 {caseLabel1} @GFAGNT_6959 {caseNum2} 1 {caseLabel2} @GFAGNT_6977 {caseNum3} 2 {caseLabel3} @GFAGNT_6995 {caseNum4} 3 {caseLabel4} @GFAGNT_7013 {caseNum5} 4 {caseLabel5} @GFAGNT_7031 {caseNum6} 5 {caseLabel6} @GFAGNT_7049 {caseNum7} -1 {caseLabel7} @GFAGNT_7067

:GFAGNT_6959
print_help 'GF_APP0'
goto @GFAGNT_7067

:GFAGNT_6977
print_help 'GF_APP1'
goto @GFAGNT_7067

:GFAGNT_6995
print_help 'GF_APP2'
goto @GFAGNT_7067

:GFAGNT_7013
print_help 'GF_APP3'
goto @GFAGNT_7067

:GFAGNT_7031
print_help 'GF_APP4'
goto @GFAGNT_7067

:GFAGNT_7049
print_help 'GF_APP5'
goto @GFAGNT_7067

:GFAGNT_7067
clear_global_var_bit_const $iAgentFlags {bitIndex} 10
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iCaller
$iCaller = -1

:GFAGNT_7089
return 

:GFAGNT_7091
$iCaller = -1
clear_global_var_bit_const $iAgentFlags {bitIndex} 10
clear_global_var_bit_var $iAgentFlags {var_bitIndex} $iGFidx
return 

:GFAGNT_7115
3@ = generate_random_int_in_range 0 {max} 45
if 
  3@ > 10
goto_if_false @GFAGNT_7288
if 
  3@ > 20
goto_if_false @GFAGNT_7274
if 
  3@ > 30
goto_if_false @GFAGNT_7260
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 22
goto_if_false @GFAGNT_7214
3@ = 15
goto @GFAGNT_7253

:GFAGNT_7214
if 
  3@ > 35
goto_if_false @GFAGNT_7246
3@ = 12
goto @GFAGNT_7253

:GFAGNT_7246
3@ = 13

:GFAGNT_7253
goto @GFAGNT_7267

:GFAGNT_7260
3@ = 13

:GFAGNT_7267
goto @GFAGNT_7281

:GFAGNT_7274
3@ = 12

:GFAGNT_7281
goto @GFAGNT_7295

:GFAGNT_7288
3@ = 11

:GFAGNT_7295
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 27
goto_if_false @GFAGNT_7327
3@ = 11
$iDateReport = 0

:GFAGNT_7327
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 28
goto_if_false @GFAGNT_7359
3@ = 12
$iDateReport = 0

:GFAGNT_7359
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 29
goto_if_false @GFAGNT_7391
3@ = 13
$iDateReport = 0

:GFAGNT_7391
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 30
goto_if_false @GFAGNT_7423
3@ = 14
$iDateReport = 0

:GFAGNT_7423
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 31
goto_if_false @GFAGNT_7455
3@ = 15
$iDateReport = 0

:GFAGNT_7455
return 

:GFAGNT_7457
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_8692 {caseNum1} 0 {caseLabel1} @GFAGNT_7520 {caseNum2} 1 {caseLabel2} @GFAGNT_7866 {caseNum3} 2 {caseLabel3} @GFAGNT_8006 {caseNum4} 3 {caseLabel4} @GFAGNT_8188 {caseNum5} 4 {caseLabel5} @GFAGNT_8370 {caseNum6} 5 {caseLabel6} @GFAGNT_8552 {caseNum7} -1 {caseLabel7} @GFAGNT_8692

:GFAGNT_7520
if or
  not has_model_loaded 195
  not has_model_loaded 352
goto_if_false @GFAGNT_7562
request_model 352
request_model 195
wait 0
goto @GFAGNT_7520

:GFAGNT_7562
2@ = create_char PedType.CivFemale {modelId} 195 {x} 2402.3899 {y} -1712.899 {z} 13.1402
set_char_heading 2@ {heading} 180.0
give_weapon_to_char 2@ {weaponType} WeaponType.MicroUzi {ammo} 60
set_current_char_weapon 2@ {weaponType} WeaponType.Unarmed
set_char_accuracy 2@ {accuracy} 75
$iGF_GlobalDM_Weak_Gang = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomWeak
add_char_decision_maker_event_response $iGF_GlobalDM_Weak_Gang {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response $iGF_GlobalDM_Weak_Gang {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response $iGF_GlobalDM_Weak_Gang {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Weak_Gang
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang1
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang3
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang4
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang5
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang6
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang7
set_char_relationship 2@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang8
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8692

:GFAGNT_7866
if 
  not has_model_loaded 192
goto_if_false @GFAGNT_7898
request_model 192
wait 0
goto @GFAGNT_7866

:GFAGNT_7898
2@ = create_char PedType.CivFemale {modelId} 192 {x} -1799.875 {y} 1202.057 {z} 24.1328
set_char_heading 2@ {heading} 180.0
set_char_decision_maker 2@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8692

:GFAGNT_8006
if 
  not has_model_loaded 191
goto_if_false @GFAGNT_8038
request_model 191
wait 0
goto @GFAGNT_8006

:GFAGNT_8038
2@ = create_char PedType.CivFemale {modelId} 191 {x} -384.6795 {y} -1438.84 {z} 25.3281
set_char_heading 2@ {heading} 268.2687
$iGF_GlobalDM_Tough = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
add_char_decision_maker_event_response $iGF_GlobalDM_Tough {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Tough
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8692

:GFAGNT_8188
if 
  not has_model_loaded 190
goto_if_false @GFAGNT_8220
request_model 190
wait 0
goto @GFAGNT_8188

:GFAGNT_8220
2@ = create_char PedType.CivFemale {modelId} 190 {x} -1390.303 {y} 2641.0659 {z} 54.9844
set_char_heading 2@ {heading} 187.2
$iGF_GlobalDM_Tough = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
add_char_decision_maker_event_response $iGF_GlobalDM_Tough {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Tough
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8692

:GFAGNT_8370
if 
  not has_model_loaded 193
goto_if_false @GFAGNT_8402
request_model 193
wait 0
goto @GFAGNT_8370

:GFAGNT_8402
2@ = create_char PedType.CivFemale {modelId} 193 {x} -2573.3569 {y} 1155.0909 {z} 54.7347
set_char_heading 2@ {heading} 167.8854
$iGF_GlobalDM_Tough = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
add_char_decision_maker_event_response $iGF_GlobalDM_Tough {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 50.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_decision_maker 2@ {handleOrTemplate} $iGF_GlobalDM_Tough
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8692

:GFAGNT_8552
if 
  not has_model_loaded 194
goto_if_false @GFAGNT_8584
request_model 194
wait 0
goto @GFAGNT_8552

:GFAGNT_8584
2@ = create_char PedType.CivFemale {modelId} 194 {x} 2037.476 {y} 2719.7939 {z} 10.5436
set_char_heading 2@ {heading} 9.2
set_char_decision_maker 2@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
set_char_stay_in_same_place 2@ {state} True
set_char_suffers_critical_hits 2@ {state} False
set_char_never_targetted 2@ {state} True
set_char_proofs 2@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 2@ {health} 500
dont_remove_char 2@
task_stand_still 2@ {time} -1
goto @GFAGNT_8692

:GFAGNT_8692
return 

:GFAGNT_8694
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 2
goto_if_false @GFAGNT_8806
if and
  0 >= $iGFLikesPlayer($iGFidx,6i)
  $iGFLikesPlayer($iGFidx,6i) > -15
goto_if_false @GFAGNT_8774
$iGFLikesPlayer($iGFidx,6i) = 0
$iGFLikesPlayer($iGFidx,6i) += 5
goto @GFAGNT_8785

:GFAGNT_8774
$iGFLikesPlayer($iGFidx,6i) += 5

:GFAGNT_8785
gosub @GFAGNT_9854
increment_int_stat StatId.Dates {value} 1
goto @GFAGNT_8908

:GFAGNT_8806
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 8
goto_if_false @GFAGNT_8883
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_8876
$iGFLikesPlayer($iGFidx,6i) -= 1
gosub @GFAGNT_9854

:GFAGNT_8876
goto @GFAGNT_8908

:GFAGNT_8883
$iGFLikesPlayer($iGFidx,6i) -= 5
gosub @GFAGNT_9854
increment_int_stat StatId.BadDates {value} 1

:GFAGNT_8908
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 4
goto_if_false @GFAGNT_8958
$iGFLikesPlayer($iGFidx,6i) += 5
gosub @GFAGNT_9854
increment_int_stat StatId.TimesScoredWithGirl {value} 1
goto @GFAGNT_8994

:GFAGNT_8958
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 3
goto_if_false @GFAGNT_8994
$iGFLikesPlayer($iGFidx,6i) -= 5
gosub @GFAGNT_9854

:GFAGNT_8994
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_9061
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_9061
$iGFLikesPlayer($iGFidx,6i) = -99

:GFAGNT_9061
$iDateReport = 0
return 

:GFAGNT_9070
if and
  $iGFLikesPlayer($iGFidx,6i) <> -100
  $iGFLikesPlayer($iGFidx,6i) <> -999
goto_if_false @GFAGNT_9178
if 
  $iGFLikesPlayer($iGFidx,6i) <> -99
goto_if_false @GFAGNT_9178
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFAGNT_9178
$iPhoneState = 24
set_var_int_to_var_int $iCaller = $iGFidx
start_new_script @MOB_GF $iCaller 2 
return 

:GFAGNT_9178
return 

:GFAGNT_9180
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_9340 {caseNum1} 0 {caseLabel1} @GFAGNT_9243 {caseNum2} 1 {caseLabel2} @GFAGNT_9265 {caseNum3} 2 {caseLabel3} @GFAGNT_9277 {caseNum4} 3 {caseLabel4} @GFAGNT_9294 {caseNum5} 4 {caseLabel5} @GFAGNT_9311 {caseNum6} 5 {caseLabel6} @GFAGNT_9328 {caseNum7} -1 {caseLabel7} @GFAGNT_9340

:GFAGNT_9243
mark_model_as_no_longer_needed 195
mark_model_as_no_longer_needed 352
remove_decision_maker $iGF_GlobalDM_Weak_Gang
goto @GFAGNT_9340

:GFAGNT_9265
mark_model_as_no_longer_needed 192
goto @GFAGNT_9340

:GFAGNT_9277
mark_model_as_no_longer_needed 191
remove_decision_maker $iGF_GlobalDM_Tough
goto @GFAGNT_9340

:GFAGNT_9294
mark_model_as_no_longer_needed 190
remove_decision_maker $iGF_GlobalDM_Tough
goto @GFAGNT_9340

:GFAGNT_9311
mark_model_as_no_longer_needed 193
remove_decision_maker $iGF_GlobalDM_Tough
goto @GFAGNT_9340

:GFAGNT_9328
mark_model_as_no_longer_needed 194
goto @GFAGNT_9340

:GFAGNT_9340
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 6
goto_if_false @GFAGNT_9370
delete_char 2@
goto @GFAGNT_9440

:GFAGNT_9370
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFAGNT_9400
delete_char 2@
goto @GFAGNT_9440

:GFAGNT_9400
if 
  $iGFLikesPlayer($iGFidx,6i) == -999
goto_if_false @GFAGNT_9435
mark_char_as_no_longer_needed 2@
goto @GFAGNT_9440

:GFAGNT_9435
remove_char_elegantly 2@

:GFAGNT_9440
$iDanceGirlfriend = 0
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 21
goto_if_false @GFAGNT_9539
3@ = get_current_day_of_week 
3@ += 1
if 
  3@ > 7
goto_if_false @GFAGNT_9502
3@ = 1

:GFAGNT_9502
gosub @GFAGNT_9541
3@ += 22
set_global_var_bit_lvar $iGFDiaryOfBusyHours($iGFidx,6i) {var_bitIndex} 3@
set_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31

:GFAGNT_9539
return 

:GFAGNT_9541
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 31
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 23
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 24
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 25
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 26
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 27
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 28
clear_global_var_bit_const $iGFDiaryOfBusyHours($iGFidx,6i) {bitIndex} 29
return 

:GFAGNT_9631
if 
  is_player_playing $player1
goto_if_false @GFAGNT_9695
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @GFAGNT_9688
3@ = 1
goto @GFAGNT_9695

:GFAGNT_9688
3@ = 0

:GFAGNT_9695
return 

:GFAGNT_9697
show_update_stats False
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_9848 {caseNum1} 0 {caseLabel1} @GFAGNT_9764 {caseNum2} 1 {caseLabel2} @GFAGNT_9778 {caseNum3} 2 {caseLabel3} @GFAGNT_9792 {caseNum4} 3 {caseLabel4} @GFAGNT_9806 {caseNum5} 4 {caseLabel5} @GFAGNT_9820 {caseNum6} 5 {caseLabel6} @GFAGNT_9834 {caseNum7} -1 {caseLabel7} @GFAGNT_9848

:GFAGNT_9764
set_int_stat StatId.GirlfriendDenise {value} 0
goto @GFAGNT_9848

:GFAGNT_9778
set_int_stat StatId.GirlfriendMichelle {value} 0
goto @GFAGNT_9848

:GFAGNT_9792
set_int_stat StatId.GirlfriendHelena {value} 0
goto @GFAGNT_9848

:GFAGNT_9806
set_int_stat StatId.GirlfriendBarbara {value} 0
goto @GFAGNT_9848

:GFAGNT_9820
set_int_stat StatId.GirlfriendKatie {value} 0
goto @GFAGNT_9848

:GFAGNT_9834
set_int_stat StatId.GirlfriendMillie {value} 0
goto @GFAGNT_9848

:GFAGNT_9848
show_update_stats True
return 

:GFAGNT_9854
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFAGNT_11183 {caseNum1} 0 {caseLabel1} @GFAGNT_9917 {caseNum2} 1 {caseLabel2} @GFAGNT_10128 {caseNum3} 2 {caseLabel3} @GFAGNT_10339 {caseNum4} 3 {caseLabel4} @GFAGNT_10550 {caseNum5} 4 {caseLabel5} @GFAGNT_10761 {caseNum6} 5 {caseLabel6} @GFAGNT_10972 {caseNum7} -1 {caseLabel7} @GFAGNT_11183

:GFAGNT_9917
9@ = get_int_stat StatId.GirlfriendDenise
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[0] > 9@
goto_if_false @GFAGNT_10029
if 
  $iGFLikesPlayer[0] > 100
goto_if_false @GFAGNT_9969
$iGFLikesPlayer[0] = 100

:GFAGNT_9969
if 
  0 > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_10001
set_int_stat StatId.GirlfriendDenise {value} 0
goto @GFAGNT_10022

:GFAGNT_10001
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[0]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendDenise {value} 9@

:GFAGNT_10022
goto @GFAGNT_10121

:GFAGNT_10029
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_10121
if 
  $iGFLikesPlayer[0] > 100
goto_if_false @GFAGNT_10073
$iGFLikesPlayer[0] = 100

:GFAGNT_10073
if 
  0 > $iGFLikesPlayer[0]
goto_if_false @GFAGNT_10105
set_int_stat StatId.GirlfriendDenise {value} 0
goto @GFAGNT_10121

:GFAGNT_10105
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[0]
decrement_int_stat StatId.GirlfriendDenise {value} 9@

:GFAGNT_10121
goto @GFAGNT_11183

:GFAGNT_10128
9@ = get_int_stat StatId.GirlfriendMichelle
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[1] > 9@
goto_if_false @GFAGNT_10240
if 
  $iGFLikesPlayer[1] > 100
goto_if_false @GFAGNT_10180
$iGFLikesPlayer[1] = 100

:GFAGNT_10180
if 
  0 > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_10212
set_int_stat StatId.GirlfriendMichelle {value} 0
goto @GFAGNT_10233

:GFAGNT_10212
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[1]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendMichelle {value} 9@

:GFAGNT_10233
goto @GFAGNT_10332

:GFAGNT_10240
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_10332
if 
  $iGFLikesPlayer[1] > 100
goto_if_false @GFAGNT_10284
$iGFLikesPlayer[1] = 100

:GFAGNT_10284
if 
  0 > $iGFLikesPlayer[1]
goto_if_false @GFAGNT_10316
set_int_stat StatId.GirlfriendMichelle {value} 0
goto @GFAGNT_10332

:GFAGNT_10316
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[1]
decrement_int_stat StatId.GirlfriendMichelle {value} 9@

:GFAGNT_10332
goto @GFAGNT_11183

:GFAGNT_10339
9@ = get_int_stat StatId.GirlfriendHelena
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[2] > 9@
goto_if_false @GFAGNT_10451
if 
  $iGFLikesPlayer[2] > 100
goto_if_false @GFAGNT_10391
$iGFLikesPlayer[2] = 100

:GFAGNT_10391
if 
  0 > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10423
set_int_stat StatId.GirlfriendHelena {value} 0
goto @GFAGNT_10444

:GFAGNT_10423
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[2]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendHelena {value} 9@

:GFAGNT_10444
goto @GFAGNT_10543

:GFAGNT_10451
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10543
if 
  $iGFLikesPlayer[2] > 100
goto_if_false @GFAGNT_10495
$iGFLikesPlayer[2] = 100

:GFAGNT_10495
if 
  0 > $iGFLikesPlayer[2]
goto_if_false @GFAGNT_10527
set_int_stat StatId.GirlfriendHelena {value} 0
goto @GFAGNT_10543

:GFAGNT_10527
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[2]
decrement_int_stat StatId.GirlfriendHelena {value} 9@

:GFAGNT_10543
goto @GFAGNT_11183

:GFAGNT_10550
9@ = get_int_stat StatId.GirlfriendBarbara
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[3] > 9@
goto_if_false @GFAGNT_10662
if 
  $iGFLikesPlayer[3] > 100
goto_if_false @GFAGNT_10602
$iGFLikesPlayer[3] = 100

:GFAGNT_10602
if 
  0 > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10634
set_int_stat StatId.GirlfriendBarbara {value} 0
goto @GFAGNT_10655

:GFAGNT_10634
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[3]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendBarbara {value} 9@

:GFAGNT_10655
goto @GFAGNT_10754

:GFAGNT_10662
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10754
if 
  $iGFLikesPlayer[3] > 100
goto_if_false @GFAGNT_10706
$iGFLikesPlayer[3] = 100

:GFAGNT_10706
if 
  0 > $iGFLikesPlayer[3]
goto_if_false @GFAGNT_10738
set_int_stat StatId.GirlfriendBarbara {value} 0
goto @GFAGNT_10754

:GFAGNT_10738
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[3]
decrement_int_stat StatId.GirlfriendBarbara {value} 9@

:GFAGNT_10754
goto @GFAGNT_11183

:GFAGNT_10761
9@ = get_int_stat StatId.GirlfriendKatie
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[4] > 9@
goto_if_false @GFAGNT_10873
if 
  $iGFLikesPlayer[4] > 100
goto_if_false @GFAGNT_10813
$iGFLikesPlayer[4] = 100

:GFAGNT_10813
if 
  0 > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10845
set_int_stat StatId.GirlfriendKatie {value} 0
goto @GFAGNT_10866

:GFAGNT_10845
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[4]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendKatie {value} 9@

:GFAGNT_10866
goto @GFAGNT_10965

:GFAGNT_10873
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10965
if 
  $iGFLikesPlayer[4] > 100
goto_if_false @GFAGNT_10917
$iGFLikesPlayer[4] = 100

:GFAGNT_10917
if 
  0 > $iGFLikesPlayer[4]
goto_if_false @GFAGNT_10949
set_int_stat StatId.GirlfriendKatie {value} 0
goto @GFAGNT_10965

:GFAGNT_10949
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[4]
decrement_int_stat StatId.GirlfriendKatie {value} 9@

:GFAGNT_10965
goto @GFAGNT_11183

:GFAGNT_10972
9@ = get_int_stat StatId.GirlfriendMillie
if 
  is_int_var_greater_than_int_lvar $iGFLikesPlayer[5] > 9@
goto_if_false @GFAGNT_11084
if 
  $iGFLikesPlayer[5] > 100
goto_if_false @GFAGNT_11024
$iGFLikesPlayer[5] = 100

:GFAGNT_11024
if 
  0 > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_11056
set_int_stat StatId.GirlfriendMillie {value} 0
goto @GFAGNT_11077

:GFAGNT_11056
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[5]
abs_lvar_int 9@
increment_int_stat StatId.GirlfriendMillie {value} 9@

:GFAGNT_11077
goto @GFAGNT_11176

:GFAGNT_11084
if 
  is_int_lvar_greater_than_int_var 9@ > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_11176
if 
  $iGFLikesPlayer[5] > 100
goto_if_false @GFAGNT_11128
$iGFLikesPlayer[5] = 100

:GFAGNT_11128
if 
  0 > $iGFLikesPlayer[5]
goto_if_false @GFAGNT_11160
set_int_stat StatId.GirlfriendMillie {value} 0
goto @GFAGNT_11176

:GFAGNT_11160
sub_int_var_from_int_lvar 9@ -= $iGFLikesPlayer[5]
decrement_int_stat StatId.GirlfriendMillie {value} 9@

:GFAGNT_11176
goto @GFAGNT_11183

:GFAGNT_11183
return 

:GFAGNT_11185
if 
  0@ == 1
goto_if_false @GFAGNT_11236
if 
  is_global_var_bit_set_var $iActiveGF {var_bitIndex} $iGFidx
goto_if_false @GFAGNT_11236
gosub @GFAGNT_9180
gosub @GFAGNT_8694

:GFAGNT_11236
0@ = 0
4@ = -1
3@ = 0

:GFAGNT_11257
if 
  is_global_var_bit_set_lvar $iAgentFlags {var_bitIndex} 3@
goto_if_false @GFAGNT_11284
clear_global_var_bit_lvar $iAgentFlags {var_bitIndex} 3@

:GFAGNT_11284
3@ += 1
  3@ >= 6
goto_if_false @GFAGNT_11257
show_update_stats True
$iGFTimeStep = 500
return 
get_latest_console_command v$GF_txtConsoleIn
if 
  not is_var_text_label16_empty v$GF_txtConsoleIn
goto_if_false @GFAGNT_13496
set_var_text_label16 v$GF_txtConsoleCheck = "DOCOOCHIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11386
set_global_var_bit_const $iActiveGF {bitIndex} 0
reset_latest_console_command 
return 

:GFAGNT_11386
set_var_text_label16 v$GF_txtConsoleCheck = "DOMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11433
set_global_var_bit_const $iActiveGF {bitIndex} 1
reset_latest_console_command 
return 

:GFAGNT_11433
set_var_text_label16 v$GF_txtConsoleCheck = "DOKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11477
set_global_var_bit_const $iActiveGF {bitIndex} 2
reset_latest_console_command 
return 

:GFAGNT_11477
set_var_text_label16 v$GF_txtConsoleCheck = "DOBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11523
set_global_var_bit_const $iActiveGF {bitIndex} 3
reset_latest_console_command 
return 

:GFAGNT_11523
set_var_text_label16 v$GF_txtConsoleCheck = "DOSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11567
set_global_var_bit_const $iActiveGF {bitIndex} 4
reset_latest_console_command 
return 

:GFAGNT_11567
set_var_text_label16 v$GF_txtConsoleCheck = "DOMILLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11612
set_global_var_bit_const $iActiveGF {bitIndex} 5
reset_latest_console_command 
return 

:GFAGNT_11612
set_var_text_label16 v$GF_txtConsoleCheck = "FASTDATE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11712
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_var_int_to_var_int $iGFLikesPlayer[0] = $iGFSelfRespect[0]
set_var_int_to_var_int $iGFLikesPlayer[1] = $iGFSelfRespect[1]
set_var_int_to_var_int $iGFLikesPlayer[3] = $iGFSelfRespect[3]
set_var_int_to_var_int $iGFLikesPlayer[2] = $iGFSelfRespect[2]
set_var_int_to_var_int $iGFLikesPlayer[4] = $iGFSelfRespect[4]
set_var_int_to_var_int $iGFLikesPlayer[5] = $iGFSelfRespect[5]
set_global_var_bit_const $iDateReport {bitIndex} 26
reset_latest_console_command 
return 

:GFAGNT_11712
set_var_text_label16 v$GF_txtConsoleCheck = "GOCOOCHIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11787
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11783
set_char_coordinates $scplayer {x} 2405.2119 {y} -1720.688 {z} 12.6365

:GFAGNT_11783
reset_latest_console_command 
return 

:GFAGNT_11787
set_var_text_label16 v$GF_txtConsoleCheck = "GOMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11863
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11859
set_char_coordinates $scplayer {x} -1788.0 {y} 1202.0 {z} 30.0

:GFAGNT_11859
reset_latest_console_command 
return 

:GFAGNT_11863
set_var_text_label16 v$GF_txtConsoleCheck = "GOKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_11936
if 
  is_player_playing $player1
goto_if_false @GFAGNT_11932
set_char_coordinates $scplayer {x} -371.4376 {y} -1440.072 {z} 24.7209

:GFAGNT_11932
reset_latest_console_command 
return 

:GFAGNT_11936
set_var_text_label16 v$GF_txtConsoleCheck = "GOBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12011
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12007
set_char_coordinates $scplayer {x} -1400.0 {y} 2640.0 {z} -100.0

:GFAGNT_12007
reset_latest_console_command 
return 

:GFAGNT_12011
set_var_text_label16 v$GF_txtConsoleCheck = "GOSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12084
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12080
set_char_coordinates $scplayer {x} -2570.511 {y} 1139.582 {z} 54.8547

:GFAGNT_12080
reset_latest_console_command 
return 

:GFAGNT_12084
set_var_text_label16 v$GF_txtConsoleCheck = "GOMILLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12158
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12154
set_char_coordinates $scplayer {x} 2028.347 {y} 2736.969 {z} 10.8603

:GFAGNT_12154
reset_latest_console_command 
return 

:GFAGNT_12158
set_var_text_label16 v$GF_txtConsoleCheck = "DATEFOOD"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12210
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_global_var_bit_const $iDateReport {bitIndex} 27
reset_latest_console_command 
return 

:GFAGNT_12210
set_var_text_label16 v$GF_txtConsoleCheck = "DATEDRIVE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12305
set_global_var_bit_const $iActiveGF {bitIndex} 31
$iGFLikesPlayer[0] = 50
$iGFLikesPlayer[1] = 50
$iGFLikesPlayer[3] = 50
$iGFLikesPlayer[2] = 50
$iGFLikesPlayer[4] = 50
$iGFLikesPlayer[5] = 50
set_global_var_bit_const $iDateReport {bitIndex} 28
reset_latest_console_command 
return 

:GFAGNT_12305
set_var_text_label16 v$GF_txtConsoleCheck = "DATEDANCE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12400
set_global_var_bit_const $iActiveGF {bitIndex} 31
$iGFLikesPlayer[0] = 50
$iGFLikesPlayer[1] = 50
$iGFLikesPlayer[3] = 50
$iGFLikesPlayer[2] = 50
$iGFLikesPlayer[4] = 50
$iGFLikesPlayer[5] = 50
set_global_var_bit_const $iDateReport {bitIndex} 29
reset_latest_console_command 
return 

:GFAGNT_12400
set_var_text_label16 v$GF_txtConsoleCheck = "DATESPANK"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12453
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_global_var_bit_const $iDateReport {bitIndex} 30
reset_latest_console_command 
return 

:GFAGNT_12453
set_var_text_label16 v$GF_txtConsoleCheck = "DATESHEDRIVES"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12517
set_global_var_bit_const $iActiveGF {bitIndex} 31
$iGFLikesPlayer[1] = 50
set_global_var_bit_const $iDateReport {bitIndex} 31
reset_latest_console_command 
return 

:GFAGNT_12517
set_var_text_label16 v$GF_txtConsoleCheck = "MEETMICHELLE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12605
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12601
set_char_coordinates $scplayer {x} -2026.92 {y} -99.9395 {z} 34.1641
set_char_heading $scplayer {heading} 180.0

:GFAGNT_12601
reset_latest_console_command 
return 

:GFAGNT_12605
set_var_text_label16 v$GF_txtConsoleCheck = "MEETKYLIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12697
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12693
$flag_la1fin1_mission_counter = 2
set_char_coordinates $scplayer {x} 243.9633 {y} -161.2493 {z} 0.5781
set_char_heading $scplayer {heading} 291.5735

:GFAGNT_12693
reset_latest_console_command 
return 

:GFAGNT_12697
set_var_text_label16 v$GF_txtConsoleCheck = "MEETBARBARA"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12784
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12780
set_char_coordinates $scplayer {x} -1411.2939 {y} 2637.6089 {z} 54.6875
set_char_heading $scplayer {heading} 348.9253

:GFAGNT_12780
reset_latest_console_command 
return 

:GFAGNT_12784
set_var_text_label16 v$GF_txtConsoleCheck = "MEETSUZIE"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12869
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12865
set_char_coordinates $scplayer {x} -2266.2529 {y} -155.7216 {z} 34.3125
set_char_heading $scplayer {heading} 85.0

:GFAGNT_12865
reset_latest_console_command 
return 

:GFAGNT_12869
set_var_text_label16 v$GF_txtConsoleCheck = "GIMPSUIT"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_12953
if 
  is_player_playing $player1
goto_if_false @GFAGNT_12949
give_player_clothes_outside_shop $player1 {textureName} "GIMPLEG" {modelName} "GIMPLEG" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GFAGNT_12949
reset_latest_console_command 
return 

:GFAGNT_12953
set_var_text_label16 v$GF_txtConsoleCheck = "TWOTIMING"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13006
set_global_var_bit_const $iActiveGF {bitIndex} 31
set_global_var_bit_const $iDateReport {bitIndex} 25
reset_latest_console_command 
return 

:GFAGNT_13006
set_var_text_label16 v$GF_txtConsoleCheck = "ELEGANTMAN"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13088
$iGFDesiredSexAppeal[0] = 0
$iGFDesiredSexAppeal[1] = 0
$iGFDesiredSexAppeal[3] = 0
$iGFDesiredSexAppeal[2] = 0
$iGFDesiredSexAppeal[4] = 0
$iGFDesiredSexAppeal[5] = 0
reset_latest_console_command 
return 

:GFAGNT_13088
set_var_text_label16 v$GF_txtConsoleCheck = "SHOWENTRY"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13192
switch_entry_exit 'FDREST1' {state} True
switch_entry_exit 'REST2' {state} True
switch_entry_exit 'DINER1' {state} True
switch_entry_exit 'DINER2' {state} True
switch_entry_exit 'TSDINER' {state} True
reset_latest_console_command 
return 

:GFAGNT_13192
set_var_text_label16 v$GF_txtConsoleCheck = "HIDEENTRY"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13283
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
reset_latest_console_command 
return 

:GFAGNT_13283
set_var_text_label16 v$GF_txtConsoleCheck = "UNCENSORED"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13330
$iCensoredVersion = 0
reset_latest_console_command 
return 

:GFAGNT_13330
set_var_text_label16 v$GF_txtConsoleCheck = "STATSUP"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13385
$iGFLikesPlayer($iGFidx,6i) += 10
gosub @GFAGNT_9854
reset_latest_console_command 
return 

:GFAGNT_13385
set_var_text_label16 v$GF_txtConsoleCheck = "STATSDOWN"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13442
$iGFLikesPlayer($iGFidx,6i) -= 10
gosub @GFAGNT_9854
reset_latest_console_command 
return 

:GFAGNT_13442
set_var_text_label16 v$GF_txtConsoleCheck = "DUMPME"
if 
  is_var_text_label16_equal_to_text_label v$GF_txtConsoleCheck == v$GF_txtConsoleIn
goto_if_false @GFAGNT_13496
$iGFLikesPlayer($iGFidx,6i) = -15
gosub @GFAGNT_9854
reset_latest_console_command 
return 

:GFAGNT_13496
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug "D"
write_debug s$txtCurrZone
write_debug_with_int "IGFIDX" {number} $iGFidx
switch_start 0@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFAGNT_13731 {caseNum1} 0 {caseLabel1} @GFAGNT_13636 {caseNum2} 1 {caseLabel2} @GFAGNT_13655 {caseNum3} 2 {caseLabel3} @GFAGNT_13674 {caseNum4} 3 {caseLabel4} @GFAGNT_13693 {caseNum5} 4 {caseLabel5} @GFAGNT_13712 {caseNum6} -1 {caseLabel6} @GFAGNT_13760 {caseNum7} -1 {caseLabel7} @GFAGNT_13760

:GFAGNT_13636
write_debug "STATE0__"
goto @GFAGNT_13760

:GFAGNT_13655
write_debug "STATE1__"
goto @GFAGNT_13760

:GFAGNT_13674
write_debug "STATE2__"
goto @GFAGNT_13760

:GFAGNT_13693
write_debug "STATE3__"
goto @GFAGNT_13760

:GFAGNT_13712
write_debug "STATE4__"
goto @GFAGNT_13760

:GFAGNT_13731
write_debug "UNTRAPPED_STATE___"
goto @GFAGNT_13760

:GFAGNT_13760
write_debug "I__________________________I"
return 

:Noname_7
start_new_script @INTMAN 
terminate_this_script 

:INTMAN
script_name 'INTMAN'
$iGlobalPedPanicDM = -1
if 
  $iGlobalPedPanicDM == 9999
goto_if_false @INTMAN_57
$iGlobalPedPanicDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors
$iGlobalShopkeeperDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors

:INTMAN_57
if 
  is_player_playing $player1
goto_if_false @INTMAN_80
gosub @INTMAN_91

:INTMAN_80
wait 0
goto @INTMAN_57

:INTMAN_91
switch_start 0@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTMAN_182 {caseNum1} 0 {caseLabel1} @INTMAN_154 {caseNum2} 1 {caseLabel2} @INTMAN_168 {caseNum3} -1 {caseLabel3} @INTMAN_182 {caseNum4} -1 {caseLabel4} @INTMAN_182 {caseNum5} -1 {caseLabel5} @INTMAN_182 {caseNum6} -1 {caseLabel6} @INTMAN_182 {caseNum7} -1 {caseLabel7} @INTMAN_182

:INTMAN_154
gosub @INTMAN_184
goto @INTMAN_182

:INTMAN_168
gosub @INTMAN_2976
goto @INTMAN_182

:INTMAN_182
return 

:INTMAN_184
$iAreaCode = get_char_area_visible $scplayer
if 
  $iAreaCode <> 0
goto_if_false @INTMAN_2974
v$txtEntryExit = get_name_of_entry_exit_char_used $scplayer
if 
  not is_var_text_label16_empty v$txtEntryExit
goto_if_false @INTMAN_2974
set_var_int_to_var_int $iStoredAreaCode = $iAreaCode
if 
  is_player_playing $player1
goto_if_false @INTMAN_266
$iWantedOnEntry = store_wanted_level $player1

:INTMAN_266
s$shop_name = get_loaded_shop 
$iCreateDecisionMakers = 0
$iTerminateAllAmbience = 0
2@ = 0
if 
  $onmission == 0
goto_if_false @INTMAN_359
$iSetBarPanic = 0
$iSetCasinoPanic = 0
$iBouncerAction = 0
$iSetPizzaPanic = 0
$iSetOTBPanic = 0
$iSetSTRIPPanic = 0
$iSetRCPanic = 0

:INTMAN_359
if and
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CHANGER"
  $iAreaCode == 14
goto_if_false @INTMAN_451
1@ = get_number_of_instances_of_streamed_script 63
if 
  1@ == 0
goto_if_false @INTMAN_451
stream_script 63
load_all_models_now 
if 
  has_streamed_script_loaded 63
goto_if_false @INTMAN_451
start_new_streamed_script 63
0@ += 1
return 

:INTMAN_451
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @INTMAN_818
1@ = get_number_of_instances_of_streamed_script 38
if 
  1@ == 0
goto_if_false @INTMAN_531
stream_script 38

:INTMAN_531
1@ = get_number_of_instances_of_streamed_script 39
if 
  1@ == 0
goto_if_false @INTMAN_560
stream_script 39

:INTMAN_560
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_589
stream_script 37

:INTMAN_589
1@ = get_number_of_instances_of_streamed_script 27
if 
  1@ == 0
goto_if_false @INTMAN_618
stream_script 27

:INTMAN_618
request_animation "BAR"
request_animation "CASINO"
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @INTMAN_676
request_model 124
request_model 126
request_model 125
request_model 214

:INTMAN_676
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @INTMAN_715
request_model 163
request_model 164
request_model 263

:INTMAN_715
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @INTMAN_755
request_model 163
request_model 164
request_model 172

:INTMAN_755
load_all_models_now 
if 
  has_streamed_script_loaded 27
goto_if_false @INTMAN_777
start_new_streamed_script 27

:INTMAN_777
if and
  has_streamed_script_loaded 38
  has_streamed_script_loaded 39
  has_streamed_script_loaded 37
  has_streamed_script_loaded 27
goto_if_false @INTMAN_818
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_818
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "UFOBAR"
goto_if_false @INTMAN_1088
1@ = get_number_of_instances_of_streamed_script 38
if 
  1@ == 0
goto_if_false @INTMAN_893
stream_script 38

:INTMAN_893
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_922
stream_script 37

:INTMAN_922
1@ = get_number_of_instances_of_streamed_script 28
if 
  1@ == 0
goto_if_false @INTMAN_951
stream_script 28

:INTMAN_951
1@ = get_number_of_instances_of_streamed_script 35
if 
  1@ == 0
goto_if_false @INTMAN_980
stream_script 35

:INTMAN_980
request_animation "BAR"
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @INTMAN_1020
request_animation "DANCING"

:INTMAN_1020
request_model 172
load_all_models_now 
if 
  has_streamed_script_loaded 28
goto_if_false @INTMAN_1047
start_new_streamed_script 28

:INTMAN_1047
if and
  has_streamed_script_loaded 38
  has_streamed_script_loaded 37
  has_streamed_script_loaded 28
  has_streamed_script_loaded 35
goto_if_false @INTMAN_1088
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1088
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "GENOTB"
goto_if_false @INTMAN_1286
1@ = get_number_of_instances_of_streamed_script 40
if 
  1@ == 0
goto_if_false @INTMAN_1141
stream_script 40

:INTMAN_1141
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_1170
stream_script 37

:INTMAN_1170
1@ = get_number_of_instances_of_streamed_script 30
if 
  1@ == 0
goto_if_false @INTMAN_1199
stream_script 30

:INTMAN_1199
request_animation "OTB"
request_animation "INT_SHOP"
request_model 11
request_model 172
load_all_models_now 
if 
  has_streamed_script_loaded 30
goto_if_false @INTMAN_1249
start_new_streamed_script 30

:INTMAN_1249
if and
  has_streamed_script_loaded 40
  has_streamed_script_loaded 37
  has_streamed_script_loaded 30
goto_if_false @INTMAN_1286
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1286
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "LASTRIP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "STRIP2"
goto_if_false @INTMAN_1534
1@ = get_number_of_instances_of_streamed_script 38
if 
  1@ == 0
goto_if_false @INTMAN_1353
stream_script 38

:INTMAN_1353
1@ = get_number_of_instances_of_streamed_script 39
if 
  1@ == 0
goto_if_false @INTMAN_1382
stream_script 39

:INTMAN_1382
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_1411
stream_script 37

:INTMAN_1411
1@ = get_number_of_instances_of_streamed_script 31
if 
  1@ == 0
goto_if_false @INTMAN_1440
stream_script 31

:INTMAN_1440
request_animation "BAR"
request_animation "STRIP"
request_model 163
request_model 164
request_model 172
load_all_models_now 
if 
  has_streamed_script_loaded 31
goto_if_false @INTMAN_1493
start_new_streamed_script 31

:INTMAN_1493
if and
  has_streamed_script_loaded 38
  has_streamed_script_loaded 39
  has_streamed_script_loaded 37
  has_streamed_script_loaded 31
goto_if_false @INTMAN_1534
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1534
if 
  $player_using_wardrobe == 0
goto_if_false @INTMAN_1724
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSCHP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSSPRT"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "LACS1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CLOTHGP"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSDESGN"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CSEXL"
goto_if_false @INTMAN_1724
1@ = get_number_of_instances_of_streamed_script 64
if 
  1@ == 0
goto_if_false @INTMAN_1669
stream_script 64

:INTMAN_1669
request_animation "INT_SHOP"
load_all_models_now 
if 
  has_streamed_script_loaded 64
goto_if_false @INTMAN_1724
$iSetClothesPanic = 0
start_new_streamed_script 64
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_1724
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_2221
1@ = get_number_of_instances_of_streamed_script 65
if 
  1@ == 0
goto_if_false @INTMAN_1804
stream_script 65

:INTMAN_1804
1@ = get_number_of_instances_of_streamed_script 29
if 
  1@ == 0
goto_if_false @INTMAN_1833
stream_script 29

:INTMAN_1833
1@ = get_number_of_instances_of_streamed_script 36
if 
  1@ == 0
goto_if_false @INTMAN_1862
stream_script 36

:INTMAN_1862
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_1891
stream_script 37

:INTMAN_1891
request_animation "FOOD"
request_animation "INT_SHOP"
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
goto_if_false @INTMAN_1952
request_model 155
request_model #PIZZAHIGH
request_model #CJ_PIZZA_1
request_model #CJ_PIZZA_2

:INTMAN_1952
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
goto_if_false @INTMAN_1994
request_model 167
request_model #BURGERHIGH
request_model #CJ_BURG_1
request_model #CJ_BURG_2

:INTMAN_1994
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_2035
request_model 205
request_model #BURGERHIGH
request_model #CJ_BURG_1
request_model #CJ_BURG_2

:INTMAN_2035
load_all_models_now 
if 
  has_streamed_script_loaded 65
goto_if_false @INTMAN_2057
start_new_streamed_script 65

:INTMAN_2057
if 
  has_streamed_script_loaded 29
goto_if_false @INTMAN_2180
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDPIZA"
goto_if_false @INTMAN_2110
start_new_streamed_script 29 {args} 0 
goto @INTMAN_2180

:INTMAN_2110
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDCHICK"
goto_if_false @INTMAN_2149
start_new_streamed_script 29 {args} 1 
goto @INTMAN_2180

:INTMAN_2149
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "FDBURG"
goto_if_false @INTMAN_2180
start_new_streamed_script 29 {args} 2 

:INTMAN_2180
if and
  has_streamed_script_loaded 65
  has_streamed_script_loaded 29
  has_streamed_script_loaded 36
  has_streamed_script_loaded 37
goto_if_false @INTMAN_2221
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2221
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBERS"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBER2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BARBER3"
goto_if_false @INTMAN_2339
1@ = get_number_of_instances_of_streamed_script 62
if 
  1@ == 0
goto_if_false @INTMAN_2339
stream_script 62
load_all_models_now 
if 
  has_streamed_script_loaded 62
goto_if_false @INTMAN_2339
start_new_streamed_script 62
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2339
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTOO"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTO2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TATTO3"
goto_if_false @INTMAN_2454
1@ = get_number_of_instances_of_streamed_script 61
if 
  1@ == 0
goto_if_false @INTMAN_2454
stream_script 61
load_all_models_now 
if 
  has_streamed_script_loaded 61
goto_if_false @INTMAN_2454
start_new_streamed_script 61
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2454
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "RCPLAY"
goto_if_false @INTMAN_2596
1@ = get_number_of_instances_of_streamed_script 34
if 
  1@ == 0
goto_if_false @INTMAN_2507
stream_script 34

:INTMAN_2507
1@ = get_number_of_instances_of_streamed_script 37
if 
  1@ == 0
goto_if_false @INTMAN_2536
stream_script 37

:INTMAN_2536
request_model 217
load_all_models_now 
if 
  has_streamed_script_loaded 34
goto_if_false @INTMAN_2563
start_new_streamed_script 34

:INTMAN_2563
if and
  has_streamed_script_loaded 34
  has_streamed_script_loaded 37
goto_if_false @INTMAN_2596
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2596
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE3"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "POLICE4"
goto_if_false @INTMAN_2728
$iCheckForWeapons = 1
$iCreateDecisionMakers = 1
request_animation "COP_AMBIENT"
request_animation "INT_OFFICE"
request_animation "GANGS"
request_model #CIGAR
load_all_models_now 
0@ += 1

:INTMAN_2728
if or
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN1"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN2"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN3"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN4"
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "AMMUN5"
goto_if_false @INTMAN_2869
1@ = get_number_of_instances_of_streamed_script 60
if 
  1@ == 0
goto_if_false @INTMAN_2869
stream_script 60
load_all_models_now 
if 
  has_streamed_script_loaded 60
goto_if_false @INTMAN_2869
start_new_streamed_script 60
$iCreateDecisionMakers = 1
0@ += 1

:INTMAN_2869
if 
  $iCreateDecisionMakers == 1
goto_if_false @INTMAN_2974
if 
  not does_decision_maker_exist $iGlobalPedPanicDM
goto_if_false @INTMAN_2927
$iGlobalPedPanicDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors
clear_char_decision_maker_event_response $iGlobalPedPanicDM {event} Event.Attractor
clear_char_decision_maker_event_response $iGlobalPedPanicDM {event} Event.ScriptedAttractor

:INTMAN_2927
if 
  not does_decision_maker_exist $iGlobalShopkeeperDM
goto_if_false @INTMAN_2974
$iGlobalShopkeeperDM = copy_char_decision_maker DecisionMakerCharTemplate.Indoors
clear_char_decision_maker_event_response $iGlobalShopkeeperDM {event} Event.Attractor
clear_char_decision_maker_event_response $iGlobalShopkeeperDM {event} Event.ScriptedAttractor
clear_char_decision_maker_event_response $iGlobalShopkeeperDM {event} Event.Damage

:INTMAN_2974
return 

:INTMAN_2976
$iAreaCode = get_char_area_visible $scplayer
if 
  not is_int_var_equal_to_int_var $iAreaCode == $iStoredAreaCode
goto_if_false @INTMAN_3052
gosub @INTMAN_3136
$iTerminateAllAmbience = 0
2@ = 0
$iCheckForWeapons = 0
s$shop_name = get_loaded_shop 
0@ -= 1
return 
goto @INTMAN_3134

:INTMAN_3052
if 
  $iCheckForWeapons == 1
goto_if_false @INTMAN_3095
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @INTMAN_3095
alter_wanted_level_no_drop $player1 {wantedLevel} 2

:INTMAN_3095
if and
  $iTerminateAllAmbience == 1
  2@ == 0
goto_if_false @INTMAN_3134
gosub @INTMAN_3136
2@ = 1

:INTMAN_3134
return 

:INTMAN_3136
remove_animation "BAR"
remove_animation "CASINO"
remove_animation "DANCING"
remove_animation "OTB"
remove_animation "INT_SHOP"
remove_animation "STRIP"
remove_animation "FOOD"
remove_animation "COP_AMBIENT"
remove_animation "INT_OFFICE"
remove_animation "GANGS"
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 214
mark_model_as_no_longer_needed 263
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed #PIZZAHIGH
mark_model_as_no_longer_needed #CJ_PIZZA_1
mark_model_as_no_longer_needed #CJ_PIZZA_2
mark_model_as_no_longer_needed 167
mark_model_as_no_longer_needed #BURGERHIGH
mark_model_as_no_longer_needed #CJ_BURG_1
mark_model_as_no_longer_needed #CJ_BURG_2
mark_model_as_no_longer_needed 205
mark_model_as_no_longer_needed 217
mark_streamed_script_as_no_longer_needed 63
mark_streamed_script_as_no_longer_needed 64
mark_streamed_script_as_no_longer_needed 65
mark_streamed_script_as_no_longer_needed 62
mark_streamed_script_as_no_longer_needed 61
mark_streamed_script_as_no_longer_needed 60
mark_streamed_script_as_no_longer_needed 27
mark_streamed_script_as_no_longer_needed 28
mark_streamed_script_as_no_longer_needed 30
mark_streamed_script_as_no_longer_needed 31
mark_streamed_script_as_no_longer_needed 29
mark_streamed_script_as_no_longer_needed 34
mark_streamed_script_as_no_longer_needed 35
mark_streamed_script_as_no_longer_needed 36
mark_streamed_script_as_no_longer_needed 37
mark_streamed_script_as_no_longer_needed 38
mark_streamed_script_as_no_longer_needed 39
mark_streamed_script_as_no_longer_needed 40
remove_decision_maker $iGlobalPedPanicDM
remove_decision_maker $iGlobalShopkeeperDM
$iGlobalPedPanicDM = -1
$iGlobalShopkeeperDM = -1
return 

:Noname_8
terminate_this_script 

:A_CONT
script_name 'A_CONT'
$actual_SLOT[0] = 1
$actual_SLOT[1] = 2
$SLOT_status[0] = -3
$SLOT_status[1] = -3
$SLOT_priority[0] = 0
$SLOT_priority[1] = 0
$SLOT_play_status[0] = 0
$SLOT_play_status[0] = 0
$current_slot = 0
$preload_slot = 1
set_var_int_to_var_int $SLOT_ped[0] = $scplayer
set_var_int_to_var_int $SLOT_ped[1] = $scplayer

:A_CONT_97
wait 0
0@ = 0
1@ = 1
if or
  $SLOT_status[0] >= -2
  $SLOT_status[1] >= -2
goto_if_false @A_CONT_1046

:A_CONT_140
if 
  2 > 0@
goto_if_false @A_CONT_1039
switch_start $SLOT_status(0@,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @A_CONT_1018 {caseNum1} -2 {caseLabel1} @A_CONT_893 {caseNum2} -1 {caseLabel2} @A_CONT_225 {caseNum3} 0 {caseLabel3} @A_CONT_254 {caseNum4} 1 {caseLabel4} @A_CONT_621 {caseNum5} 2 {caseLabel5} @A_CONT_775 {caseNum6} -1 {caseLabel6} @A_CONT_1018 {caseNum7} -1 {caseLabel7} @A_CONT_1018

:A_CONT_225
$SLOT_priority(0@,2i) = 0
$SLOT_status(0@,2i) = -3
goto @A_CONT_1018

:A_CONT_254
if 
  not has_mission_audio_loaded $actual_SLOT(0@,2i)
goto_if_false @A_CONT_281
goto @A_CONT_1018

:A_CONT_281
if 
  is_int_lvar_equal_to_int_var 0@ == $preload_slot
goto_if_false @A_CONT_486
if 
  is_int_var_greater_than_int_var $SLOT_priority(0@,2i) > $SLOT_priority(1@,2i)
goto_if_false @A_CONT_468
set_var_int_to_lvar_int $current_slot = 0@
set_var_int_to_lvar_int $preload_slot = 1@
clear_mission_audio $actual_SLOT($preload_slot,2i)
clear_this_print $SLOT_text($preload_slot,2s)
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_CONT_450
if 
  not is_char_dead $SLOT_ped($preload_slot,2i)
goto_if_false @A_CONT_450
stop_char_facial_talk $SLOT_ped($preload_slot,2i)
if 
  not is_int_var_equal_to_int_var $SLOT_ped($preload_slot,2i) == $SLOT_ped($current_slot,2i)
goto_if_false @A_CONT_450
shut_char_up_for_scripted_speech $SLOT_ped($preload_slot,2i) {state} False

:A_CONT_450
$SLOT_status($preload_slot,2i) = -1
goto @A_CONT_486

:A_CONT_468
$SLOT_status(0@,2i) = 1
goto @A_CONT_1018

:A_CONT_486
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_580
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_580
start_char_facial_talk $SLOT_ped(0@,2i) {duration} 999999
if 
  $SLOT_play_status(0@,2i) == 1
goto_if_false @A_CONT_580
attach_mission_audio_to_char $actual_SLOT(0@,2i) {handle} $SLOT_ped(0@,2i)

:A_CONT_580
play_mission_audio $actual_SLOT(0@,2i)
print_now $SLOT_text(0@,2s) {time} 10000 {flag} 1
$SLOT_status(0@,2i) = 2
goto @A_CONT_1018

:A_CONT_621
if 
  is_int_var_equal_to_int_lvar $current_slot == 0@
goto_if_false @A_CONT_768
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_734
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_734
start_char_facial_talk $SLOT_ped(0@,2i) {duration} 999999
if 
  $SLOT_play_status(0@,2i) == 1
goto_if_false @A_CONT_734
attach_mission_audio_to_char $actual_SLOT(0@,2i) {handle} $SLOT_ped(0@,2i)

:A_CONT_734
play_mission_audio $actual_SLOT(0@,2i)
print_now $SLOT_text(0@,2s) {time} 10000 {flag} 1
$SLOT_status(0@,2i) = 2

:A_CONT_768
goto @A_CONT_1018

:A_CONT_775
if 
  has_mission_audio_finished $actual_SLOT(0@,2i)
goto_if_false @A_CONT_837
if 
  is_int_var_equal_to_int_lvar $current_slot == 0@
goto_if_false @A_CONT_830
set_var_int_to_lvar_int $preload_slot = 0@
set_var_int_to_lvar_int $current_slot = 1@

:A_CONT_830
goto @A_CONT_893

:A_CONT_837
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_886
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_886
goto @A_CONT_1018

:A_CONT_886
goto @A_CONT_1018

:A_CONT_893
clear_mission_audio $actual_SLOT(0@,2i)
clear_this_print $SLOT_text(0@,2s)
if 
  $SLOT_play_status(0@,2i) <> 0
goto_if_false @A_CONT_1000
if 
  not is_char_dead $SLOT_ped(0@,2i)
goto_if_false @A_CONT_1000
stop_char_facial_talk $SLOT_ped(0@,2i)
if 
  not is_int_var_equal_to_int_var $SLOT_ped(0@,2i) == $SLOT_ped(1@,2i)
goto_if_false @A_CONT_1000
shut_char_up_for_scripted_speech $SLOT_ped(0@,2i) {state} False

:A_CONT_1000
$SLOT_status(0@,2i) = -1
goto @A_CONT_1018

:A_CONT_1018
0@ += 1
1@ -= 1
goto @A_CONT_140

:A_CONT_1039
goto @A_CONT_1060

:A_CONT_1046
$SLOT_status[0] = -4
$SLOT_status[1] = -4

:A_CONT_1060
goto @A_CONT_97

:A_ALAP
script_name 'A_ALAP'
if 
  is_int_lvar_greater_or_equal_to_int_var 1@ >= $SLOT_priority($preload_slot,2i)
goto_if_false @A_ALAP_317
set_var_int_to_var_int $SLOT_sample($preload_slot,2i) = $load_sample
set_var_text_label $SLOT_text($preload_slot,2s) = s$load_text
clear_mission_audio $actual_SLOT($preload_slot,2i)
load_mission_audio $actual_SLOT($preload_slot,2i) {audioId} $SLOT_sample($preload_slot,2i)
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_ALAP_159
if 
  not is_char_dead $SLOT_ped($preload_slot,2i)
goto_if_false @A_ALAP_159
if 
  not is_int_var_equal_to_int_lvar $SLOT_ped($preload_slot,2i) == 2@
goto_if_false @A_ALAP_159
shut_char_up_for_scripted_speech $SLOT_ped($preload_slot,2i) {state} False

:A_ALAP_159
$SLOT_status($preload_slot,2i) = 0
set_var_int_to_lvar_int $SLOT_play_status($preload_slot,2i) = 0@
if 
  $SLOT_play_status($preload_slot,2i) <> 0
goto_if_false @A_ALAP_293
if 
  $SLOT_play_status($preload_slot,2i) == 0
goto_if_false @A_ALAP_250
2@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:A_ALAP_250
set_var_int_to_lvar_int $SLOT_ped($preload_slot,2i) = 2@
if 
  not is_char_dead $SLOT_ped($preload_slot,2i)
goto_if_false @A_ALAP_293
shut_char_up_for_scripted_speech $SLOT_ped($preload_slot,2i) {state} True

:A_ALAP_293
set_var_int_to_lvar_int $SLOT_play_status($preload_slot,2i) = 0@
set_var_int_to_lvar_int $SLOT_priority($preload_slot,2i) = 1@

:A_ALAP_317
terminate_this_script 

:A_TERM
script_name 'A_TERM'
terminate_all_scripts_with_this_name 'A_CONT'
terminate_all_scripts_with_this_name 'A_ALAP'
terminate_this_script 

:HJ
set_deatharrest_state 0
script_name 'HJ'

:HJ_15
wait 0
if 
  not is_player_playing $player1
goto_if_false @HJ_42
goto @HJ_15

:HJ_42
if 
  are_any_car_cheats_activated 
goto_if_false @HJ_62
goto @HJ_15

:HJ_62
if 
  is_char_in_any_train $scplayer
goto_if_false @HJ_85
goto @HJ_15

:HJ_85
if 
  is_char_in_flying_vehicle $scplayer
goto_if_false @HJ_108
goto @HJ_15

:HJ_108
if 
  is_char_in_any_boat $scplayer
goto_if_false @HJ_131
goto @HJ_15

:HJ_131
if 
  is_char_in_model $scplayer {modelId} 539
goto_if_false @HJ_157
goto @HJ_15

:HJ_157
if 
  not is_player_control_on $player1
goto_if_false @HJ_180
goto @HJ_15

:HJ_180
if 
  is_char_in_any_car $scplayer
goto_if_false @HJ_1668
$car_player_is_in_hj = store_car_char_is_in_no_save $scplayer
$CarTwoWheelsTime, $CarTwoWheelsDistance, $BikeWheelieTime, $BikeWheelieDistance, $BikeStoppieTime, $BikeStoppieDistance = get_wheelie_stats $player1
if 
  $CarTwoWheelsDistance > 0.0
goto_if_false @HJ_426
$CarTwoWheelsTime /= 1000
cset_var_int_to_var_float $CarTwoWheelsDistanceMeterInt =# $CarTwoWheelsDistance
cset_var_float_to_var_int $CarTwoWheelsDistanceMeter =# $CarTwoWheelsDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $CarTwoWheelsDistance
sub_float_var_from_float_var $temp_float_hj -= $CarTwoWheelsDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $CarTwoWheelsDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $CarTwoWheelsTime
add_int_var_to_int_var $cash += $CarTwoWheelsDistanceMeterInt
$cash /= 2
add_score $player1 {money} $cash
if 
  are_measurements_in_metres 
goto_if_false @HJ_385
print_with_4_numbers 'WHEEL01' {num1} $cash {num2} $CarTwoWheelsDistanceMeterInt {num3} $CarTwoWheelsDistanceDecimalInt {num4} $CarTwoWheelsTime {duration} 3000 {style} TextStyle.Middle
goto @HJ_426

:HJ_385
convert_metres_to_feet $CarTwoWheelsDistance {var_feet} $CarTwoWheelsDistanceFeet
cset_var_int_to_var_float $CarTwoWheelsDistanceFeetInt =# $CarTwoWheelsDistanceFeet
print_with_3_numbers 'WHEEL02' {num1} $cash {num2} $CarTwoWheelsDistanceFeetInt {num3} $CarTwoWheelsTime {duration} 3000 {style} TextStyle.Middle

:HJ_426
if 
  $BikeWheelieDistance > 0.0
goto_if_false @HJ_631
$BikeWheelieTime /= 1000
cset_var_int_to_var_float $BikeWheelieDistanceMeterInt =# $BikeWheelieDistance
cset_var_float_to_var_int $BikeWheelieDistanceMeter =# $BikeWheelieDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $BikeWheelieDistance
sub_float_var_from_float_var $temp_float_hj -= $BikeWheelieDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $BikeWheelieDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $BikeWheelieDistanceMeterInt
$cash *= 2
$cash /= 5
$cash /= 2
add_score $player1 {money} $cash
if 
  are_measurements_in_metres 
goto_if_false @HJ_590
print_with_4_numbers 'WHEEL06' {num1} $cash {num2} $BikeWheelieDistanceMeterInt {num3} $BikeWheelieDistanceDecimalInt {num4} $BikeWheelieTime {duration} 3000 {style} TextStyle.Middle
goto @HJ_631

:HJ_590
convert_metres_to_feet $BikeWheelieDistance {var_feet} $BikeWheelieDistanceFeet
cset_var_int_to_var_float $BikeWheelieDistanceFeetInt =# $BikeWheelieDistanceFeet
print_with_3_numbers 'WHEEL07' {num1} $cash {num2} $BikeWheelieDistanceFeetInt {num3} $BikeWheelieTime {duration} 3000 {style} TextStyle.Middle

:HJ_631
if 
  $BikeStoppieDistance > 0.0
goto_if_false @HJ_822
$BikeStoppieTime /= 1000
cset_var_int_to_var_float $BikeStoppieDistanceMeterInt =# $BikeStoppieDistance
cset_var_float_to_var_int $BikeStoppieDistanceMeter =# $BikeStoppieDistanceMeterInt
set_var_float_to_var_float $temp_float_hj = $BikeStoppieDistance
sub_float_var_from_float_var $temp_float_hj -= $BikeStoppieDistanceMeter
$temp_float_hj *= 100.0
cset_var_int_to_var_float $BikeStoppieDistanceDecimalInt =# $temp_float_hj
set_var_int_to_var_int $cash = $BikeStoppieDistanceMeterInt
$cash /= 2
add_score $player1 {money} $cash
if 
  are_measurements_in_metres 
goto_if_false @HJ_781
print_with_4_numbers 'WHEEL11' {num1} $cash {num2} $BikeStoppieDistanceMeterInt {num3} $BikeStoppieDistanceDecimalInt {num4} $BikeStoppieTime {duration} 3000 {style} TextStyle.Middle
goto @HJ_822

:HJ_781
convert_metres_to_feet $BikeStoppieDistance {var_feet} $BikeStoppieDistanceFeet
cset_var_int_to_var_float $BikeStoppieDistanceFeetInt =# $BikeStoppieDistanceFeet
print_with_3_numbers 'WHEEL12' {num1} $cash {num2} $BikeStoppieDistanceFeetInt {num3} $BikeStoppieTime {duration} 3000 {style} TextStyle.Middle

:HJ_822
if 
  is_car_in_air_proper $car_player_is_in_hj
goto_if_false @HJ_1654
$total_rotation_int = 0
$heading_hj = 0.0
$flag_wheels_hj = 0
$counter_stunt_rolls_hj = 0
$flag_car_upsidedown_hj = 0
$stunt_flags_hj = 0
$flag_takeoff_hj = 0
$height_int_hj = 0
$height_float_hj = -100.0
$x_float_hj = 0.0
$y_float_hj = 0.0
$z_float_hj = 0.0
$takeoff_x_float_hj = 0.0
$takeoff_y_float_hj = 0.0
$takeoff_z_float_hj = 0.0
$jumpend_x_float_hj = 0.0
$jumpend_y_float_hj = 0.0
$jumpdistance_float_hj = 0.0
$jumpdistance_int_hj = 0
$distance_decimals_int_hj = 0
$height_decimals_int_hj = 0
$temp_float_hj = 0.0
$heading_difference = 0.0
$total_rotation = 0.0
$heading_difference_temp = 0.0
$old_heading_hj = 0.0
$collision_counter = 0
$passenger_said_jump = 0

:HJ_1082
if or
  is_car_in_air_proper $car_player_is_in_hj
  10 > $collision_counter
goto_if_false @HJ_1647
$collision_counter += 1
$x_float_hj, $y_float_hj, $z_float_hj = get_car_coordinates $car_player_is_in_hj
set_var_float_to_var_float $old_heading_hj = $heading_hj
if 
  $flag_takeoff_hj == 0
goto_if_false @HJ_1191
$old_heading_hj = get_car_heading $car_player_is_in_hj
set_var_float_to_var_float $takeoff_x_float_hj = $x_float_hj
set_var_float_to_var_float $takeoff_y_float_hj = $y_float_hj
set_var_float_to_var_float $takeoff_z_float_hj = $z_float_hj
$flag_takeoff_hj = 1

:HJ_1191
wait 0
if 
  is_car_dead $car_player_is_in_hj
goto_if_false @HJ_1218
goto @HJ_15

:HJ_1218
if 
  not is_player_playing $player1
goto_if_false @HJ_1241
goto @HJ_15

:HJ_1241
if 
  not is_char_in_any_car $scplayer
goto_if_false @HJ_1264
goto @HJ_15

:HJ_1264
if and
  not is_car_upright $car_player_is_in_hj
  $flag_car_upsidedown_hj == 0
goto_if_false @HJ_1294
$flag_car_upsidedown_hj = 1

:HJ_1294
if and
  is_car_upright $car_player_is_in_hj
  $flag_car_upsidedown_hj == 1
goto_if_false @HJ_1331
$counter_stunt_rolls_hj += 1
$flag_car_upsidedown_hj = 0

:HJ_1331
$heading_hj = get_car_heading $car_player_is_in_hj
set_var_float_to_var_float $heading_difference = $heading_hj
sub_float_var_from_float_var $heading_difference -= $old_heading_hj
if 
  $heading_difference > 180.0
goto_if_false @HJ_1409
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 360.0
sub_float_var_from_float_var $heading_difference -= $heading_difference_temp
goto @HJ_1456

:HJ_1409
if 
  -180.0 > $heading_difference
goto_if_false @HJ_1456
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 360.0
add_float_var_to_float_var $heading_difference += $heading_difference_temp

:HJ_1456
if 
  0.0 > $heading_difference
goto_if_false @HJ_1503
set_var_float_to_var_float $heading_difference_temp = $heading_difference
$heading_difference = 0.0
sub_float_var_from_float_var $heading_difference -= $heading_difference_temp

:HJ_1503
add_float_var_to_float_var $total_rotation += $heading_difference
cset_var_int_to_var_float $total_rotation_int =# $total_rotation
if 
  is_float_var_greater_than_float_var $z_float_hj > $height_float_hj
goto_if_false @HJ_1546
set_var_float_to_var_float $height_float_hj = $z_float_hj

:HJ_1546
$z_float_hj = 0.0
if 
  $passenger_said_jump == 0
goto_if_false @HJ_1640
$jumpend_x_float_hj, $jumpend_y_float_hj, $temp_float_hj = get_car_coordinates $car_player_is_in_hj
$temp_float_hj = get_distance_between_coords_2d $takeoff_x_float_hj {fromY} $takeoff_y_float_hj {toX} $jumpend_x_float_hj {toZ} $jumpend_y_float_hj
if 
  $temp_float_hj > 20.0
goto_if_false @HJ_1640
random_passenger_say $car_player_is_in_hj {phrase} SpeechId.CarJump
$passenger_said_jump = 1

:HJ_1640
goto @HJ_1082

:HJ_1647
goto @HJ_1661

:HJ_1654
goto @HJ_15

:HJ_1661
goto @HJ_1675

:HJ_1668
goto @HJ_15

:HJ_1675
if 
  $flag_takeoff_hj == 1
goto_if_false @HJ_1864
$jumpend_x_float_hj, $jumpend_y_float_hj, $temp_float_hj = get_car_coordinates $car_player_is_in_hj
$jumpdistance_float_hj = get_distance_between_coords_2d $takeoff_x_float_hj {fromY} $takeoff_y_float_hj {toX} $jumpend_x_float_hj {toZ} $jumpend_y_float_hj
register_float_stat StatId.MaxJumpDistance {value} $jumpdistance_float_hj
cset_var_int_to_var_float $jumpdistance_int_hj =# $jumpdistance_float_hj
sub_float_var_from_float_var $height_float_hj -= $takeoff_z_float_hj
register_float_stat StatId.MaxJumpHeight {value} $height_float_hj
cset_var_int_to_var_float $height_int_hj =# $height_float_hj
cset_var_float_to_var_int $temp_float_hj =# $jumpdistance_int_hj
sub_float_var_from_float_var $jumpdistance_float_hj -= $temp_float_hj
set_var_float_to_var_float $temp_float_hj = $jumpdistance_float_hj
$temp_float_hj *= 100.0
cset_var_int_to_var_float $distance_decimals_int_hj =# $temp_float_hj
cset_var_float_to_var_int $temp_float_hj =# $height_int_hj
sub_float_var_from_float_var $height_float_hj -= $temp_float_hj
set_var_float_to_var_float $temp_float_hj = $height_float_hj
$temp_float_hj *= 100.0
cset_var_int_to_var_float $height_decimals_int_hj =# $temp_float_hj
register_int_stat StatId.MaxJumpFlips {value} $counter_stunt_rolls_hj
register_int_stat StatId.MaxJumpSpins {value} $total_rotation_int

:HJ_1864
if 
  $height_float_hj > 4.0
goto_if_false @HJ_1892
$stunt_flags_hj += 1

:HJ_1892
if 
  $jumpdistance_int_hj > 40
goto_if_false @HJ_1917
$stunt_flags_hj += 1

:HJ_1917
if 
  $counter_stunt_rolls_hj > 1
goto_if_false @HJ_1942
$stunt_flags_hj += 1

:HJ_1942
if 
  $total_rotation_int > 360
goto_if_false @HJ_1968
$stunt_flags_hj += 1

:HJ_1968
if 
  $stunt_flags_hj > 0
goto_if_false @HJ_2385
set_var_int_to_var_int $cash_reward = $counter_stunt_rolls_hj
$cash_reward *= 180
add_int_var_to_int_var $cash_reward += $total_rotation_int
set_var_int_to_var_int $cash_reward_temp = $jumpdistance_int_hj
$cash_reward_temp *= 6
add_int_var_to_int_var $cash_reward += $cash_reward_temp
set_var_int_to_var_int $cash_reward_temp = $height_int_hj
$cash_reward_temp *= 45
add_int_var_to_int_var $cash_reward += $cash_reward_temp
if 
  $flag_wheels_hj == 1
goto_if_false @HJ_2081
$cash_reward *= 2

:HJ_2081
mult_int_var_by_int_var $cash_reward *= $stunt_flags_hj
$cash_reward /= 3
$cash_reward /= 5
add_score $player1 {money} $cash_reward
if 
  $stunt_flags_hj == 1
goto_if_false @HJ_2155
print_with_number 'HJ_IS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 1

:HJ_2155
if 
  $stunt_flags_hj == 2
goto_if_false @HJ_2199
print_with_number 'HJ_DIS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 3

:HJ_2199
if 
  $stunt_flags_hj == 3
goto_if_false @HJ_2243
print_with_number 'HJ_TIS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 5

:HJ_2243
if 
  $stunt_flags_hj == 4
goto_if_false @HJ_2287
print_with_number 'HJ_QIS' {num} $cash_reward {duration} 2000 {flag} 1
register_int_stat StatId.BestStunt {value} 7

:HJ_2287
if 
  are_measurements_in_metres 
goto_if_false @HJ_2341
print_with_6_numbers 'HJSTAT' {num1} $jumpdistance_int_hj {num2} $distance_decimals_int_hj {num3} $height_int_hj {num4} $height_decimals_int_hj {num5} $counter_stunt_rolls_hj {num6} $total_rotation_int {duration} 5000 {style} TextStyle.MiddleSmallerHigher
goto @HJ_2385

:HJ_2341
$jumpdistance_int_hj = convert_metres_to_feet_int $jumpdistance_int_hj
$height_int_hj = convert_metres_to_feet_int $height_int_hj
print_with_4_numbers 'HJSTATF' {num1} $jumpdistance_int_hj {num2} $height_int_hj {num3} $counter_stunt_rolls_hj {num4} $total_rotation_int {duration} 5000 {style} TextStyle.MiddleSmallerHigher

:HJ_2385
goto @HJ_15
terminate_this_script 

:CELLFON
script_name 'CELLFON'
$skip_the_mobile_call = 0
$terminate_cat_calls = 0
$flag_new_cont = 0
$flag_mobile_timer = 0
$flag_player_answered_phone = 0
$call_delay = 20000
set_deatharrest_state 0
terminate_this_script 

:CELLFON_60
if 
  70 > $call_number
goto_if_false @CELLFON_13265
switch_start $call_number {numCases} 67 {hasDefaultCase} 0 {defaultLabel} @CELLFON_13258 {caseNum1} 0 {caseLabel1} @CELLFON_2776 {caseNum2} 1 {caseLabel2} @CELLFON_2966 {caseNum3} 2 {caseLabel3} @CELLFON_3024 {caseNum4} 3 {caseLabel4} @CELLFON_3170 {caseNum5} 4 {caseLabel5} @CELLFON_3316 {caseNum6} 5 {caseLabel6} @CELLFON_3550 {caseNum7} 6 {caseLabel7} @CELLFON_3718
switch_continued 7 {caseLabel1} @CELLFON_3886 {caseNum2} 8 {caseLabel2} @CELLFON_4208 {caseNum3} 9 {caseLabel3} @CELLFON_5466 {caseNum4} 10 {caseLabel4} @CELLFON_4574 {caseNum5} 11 {caseLabel5} @CELLFON_4896 {caseNum6} 12 {caseLabel6} @CELLFON_5108 {caseNum7} 13 {caseLabel7} @CELLFON_5320 {caseNum8} 14 {caseLabel8} @CELLFON_5766 {caseNum9} 15 {caseLabel9} @CELLFON_6044
switch_continued 16 {caseLabel1} @CELLFON_6388 {caseNum2} 17 {caseLabel2} @CELLFON_6534 {caseNum3} 18 {caseLabel3} @CELLFON_596 {caseNum4} 19 {caseLabel4} @CELLFON_874 {caseNum5} 20 {caseLabel5} @CELLFON_1108 {caseNum6} 21 {caseLabel6} @CELLFON_1408 {caseNum7} 22 {caseLabel7} @CELLFON_1642 {caseNum8} 23 {caseLabel8} @CELLFON_1942 {caseNum9} 24 {caseLabel9} @CELLFON_2110
switch_continued 25 {caseLabel1} @CELLFON_2322 {caseNum2} 29 {caseLabel2} @CELLFON_11074 {caseNum3} 30 {caseLabel3} @CELLFON_11242 {caseNum4} 31 {caseLabel4} @CELLFON_11476 {caseNum5} 32 {caseLabel5} @CELLFON_11820 {caseNum6} 33 {caseLabel6} @CELLFON_12076 {caseNum7} 34 {caseLabel7} @CELLFON_6658 {caseNum8} 35 {caseLabel8} @CELLFON_6870 {caseNum9} 36 {caseLabel9} @CELLFON_7126
switch_continued 37 {caseLabel1} @CELLFON_7338 {caseNum2} 38 {caseLabel2} @CELLFON_7440 {caseNum3} 39 {caseLabel3} @CELLFON_7630 {caseNum4} 40 {caseLabel4} @CELLFON_7974 {caseNum5} 41 {caseLabel5} @CELLFON_8274 {caseNum6} 42 {caseLabel6} @CELLFON_8530 {caseNum7} 43 {caseLabel7} @CELLFON_8654 {caseNum8} 44 {caseLabel8} @CELLFON_8712 {caseNum9} 45 {caseLabel9} @CELLFON_8924
switch_continued 46 {caseLabel1} @CELLFON_9202 {caseNum2} 47 {caseLabel2} @CELLFON_9524 {caseNum3} 48 {caseLabel3} @CELLFON_9670 {caseNum4} 49 {caseLabel4} @CELLFON_9816 {caseNum5} 50 {caseLabel5} @CELLFON_9984 {caseNum6} 51 {caseLabel6} @CELLFON_10306 {caseNum7} 52 {caseLabel7} @CELLFON_10606 {caseNum8} 53 {caseLabel8} @CELLFON_10840 {caseNum9} 54 {caseLabel9} @CELLFON_12266
switch_continued 55 {caseLabel1} @CELLFON_12328 {caseNum2} 56 {caseLabel2} @CELLFON_12390 {caseNum3} 57 {caseLabel3} @CELLFON_12452 {caseNum4} 58 {caseLabel4} @CELLFON_12514 {caseNum5} 59 {caseLabel5} @CELLFON_12576 {caseNum6} 60 {caseLabel6} @CELLFON_12638 {caseNum7} 61 {caseLabel7} @CELLFON_12700 {caseNum8} 62 {caseLabel8} @CELLFON_12762 {caseNum9} 63 {caseLabel9} @CELLFON_12824
switch_continued 64 {caseLabel1} @CELLFON_12886 {caseNum2} 65 {caseLabel2} @CELLFON_12948 {caseNum3} 66 {caseLabel3} @CELLFON_13010 {caseNum4} 67 {caseLabel4} @CELLFON_13072 {caseNum5} 68 {caseLabel5} @CELLFON_13134 {caseNum6} 69 {caseLabel6} @CELLFON_13196 {caseNum7} -1 {caseLabel7} @CELLFON_13258 {caseNum8} -1 {caseLabel8} @CELLFON_13258 {caseNum9} -1 {caseLabel9} @CELLFON_13258

:CELLFON_596
set_var_text_label s$mobile_print_labels[0] = 'MSWE14A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE14B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE14C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE14D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE14E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE14F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE14G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE14H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE14J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE14K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE14L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE14N'
set_var_int_to_constant $mobile_audio_labels[0] = 29144
set_var_int_to_constant $mobile_audio_labels[1] = 29145
set_var_int_to_constant $mobile_audio_labels[2] = 29146
set_var_int_to_constant $mobile_audio_labels[3] = 29147
set_var_int_to_constant $mobile_audio_labels[4] = 29148
set_var_int_to_constant $mobile_audio_labels[5] = 29149
set_var_int_to_constant $mobile_audio_labels[6] = 29150
set_var_int_to_constant $mobile_audio_labels[7] = 29151
set_var_int_to_constant $mobile_audio_labels[8] = 29152
set_var_int_to_constant $mobile_audio_labels[9] = 29153
set_var_int_to_constant $mobile_audio_labels[10] = 29154
set_var_int_to_constant $mobile_audio_labels[11] = 29155
$cell_index_end = 11
goto @CELLFON_13258

:CELLFON_874
set_var_text_label s$mobile_print_labels[0] = 'MSWE10A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE10D'
set_var_text_label s$mobile_print_labels[2] = 'MSWE10C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE10E'
set_var_text_label s$mobile_print_labels[4] = 'MSWE10F'
set_var_text_label s$mobile_print_labels[5] = 'MSWE10G'
set_var_text_label s$mobile_print_labels[6] = 'MSWE10H'
set_var_text_label s$mobile_print_labels[7] = 'MSWE10K'
set_var_text_label s$mobile_print_labels[8] = 'MSWE10L'
set_var_text_label s$mobile_print_labels[9] = 'MSWE10N'
set_var_int_to_constant $mobile_audio_labels[0] = 29096
set_var_int_to_constant $mobile_audio_labels[1] = 29099
set_var_int_to_constant $mobile_audio_labels[2] = 29098
set_var_int_to_constant $mobile_audio_labels[3] = 29100
set_var_int_to_constant $mobile_audio_labels[4] = 29101
set_var_int_to_constant $mobile_audio_labels[5] = 29102
set_var_int_to_constant $mobile_audio_labels[6] = 29103
set_var_int_to_constant $mobile_audio_labels[7] = 29105
set_var_int_to_constant $mobile_audio_labels[8] = 29106
set_var_int_to_constant $mobile_audio_labels[9] = 29107
$cell_index_end = 9
goto @CELLFON_13258

:CELLFON_1108
set_var_text_label s$mobile_print_labels[0] = 'MSWE06A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE06B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE06C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE06D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE06E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE06F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE06G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE06H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE06J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE06K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE06L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE06N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE06M'
set_var_int_to_constant $mobile_audio_labels[0] = 29052
set_var_int_to_constant $mobile_audio_labels[1] = 29053
set_var_int_to_constant $mobile_audio_labels[2] = 29054
set_var_int_to_constant $mobile_audio_labels[3] = 29055
set_var_int_to_constant $mobile_audio_labels[4] = 29056
set_var_int_to_constant $mobile_audio_labels[5] = 29057
set_var_int_to_constant $mobile_audio_labels[6] = 29058
set_var_int_to_constant $mobile_audio_labels[7] = 29059
set_var_int_to_constant $mobile_audio_labels[8] = 29060
set_var_int_to_constant $mobile_audio_labels[9] = 29061
set_var_int_to_constant $mobile_audio_labels[10] = 29062
set_var_int_to_constant $mobile_audio_labels[11] = 29064
set_var_int_to_constant $mobile_audio_labels[12] = 29063
$cell_index_end = 12
goto @CELLFON_13258

:CELLFON_1408
set_var_text_label s$mobile_print_labels[0] = 'MSWE05A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE05B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE05C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE05D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE05E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE05F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE05G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE05H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE05J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE05K'
set_var_int_to_constant $mobile_audio_labels[0] = 29042
set_var_int_to_constant $mobile_audio_labels[1] = 29043
set_var_int_to_constant $mobile_audio_labels[2] = 29044
set_var_int_to_constant $mobile_audio_labels[3] = 29045
set_var_int_to_constant $mobile_audio_labels[4] = 29046
set_var_int_to_constant $mobile_audio_labels[5] = 29047
set_var_int_to_constant $mobile_audio_labels[6] = 29048
set_var_int_to_constant $mobile_audio_labels[7] = 29049
set_var_int_to_constant $mobile_audio_labels[8] = 29050
set_var_int_to_constant $mobile_audio_labels[9] = 29051
$cell_index_end = 9
goto @CELLFON_13258

:CELLFON_1642
set_var_text_label s$mobile_print_labels[0] = 'MSWE08A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE08B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE08C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE08D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE08E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE08F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE08G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE08H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE08J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE08K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE08L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE08N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE08M'
set_var_int_to_constant $mobile_audio_labels[0] = 29076
set_var_int_to_constant $mobile_audio_labels[1] = 29077
set_var_int_to_constant $mobile_audio_labels[2] = 29078
set_var_int_to_constant $mobile_audio_labels[3] = 29079
set_var_int_to_constant $mobile_audio_labels[4] = 29080
set_var_int_to_constant $mobile_audio_labels[5] = 29081
set_var_int_to_constant $mobile_audio_labels[6] = 29082
set_var_int_to_constant $mobile_audio_labels[7] = 29083
set_var_int_to_constant $mobile_audio_labels[8] = 29084
set_var_int_to_constant $mobile_audio_labels[9] = 29085
set_var_int_to_constant $mobile_audio_labels[10] = 29086
set_var_int_to_constant $mobile_audio_labels[11] = 29088
set_var_int_to_constant $mobile_audio_labels[12] = 29087
$cell_index_end = 12
goto @CELLFON_13258

:CELLFON_1942
set_var_text_label s$mobile_print_labels[0] = 'MSWE09A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE09B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE09C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE09E'
set_var_text_label s$mobile_print_labels[4] = 'MSWE09F'
set_var_text_label s$mobile_print_labels[5] = 'MSWE09G'
set_var_text_label s$mobile_print_labels[6] = 'MSWE09H'
set_var_int_to_constant $mobile_audio_labels[0] = 29089
set_var_int_to_constant $mobile_audio_labels[1] = 29090
set_var_int_to_constant $mobile_audio_labels[2] = 29091
set_var_int_to_constant $mobile_audio_labels[3] = 29092
set_var_int_to_constant $mobile_audio_labels[4] = 29093
set_var_int_to_constant $mobile_audio_labels[5] = 29094
set_var_int_to_constant $mobile_audio_labels[6] = 29095
$cell_index_end = 6
goto @CELLFON_13258

:CELLFON_2110
set_var_text_label s$mobile_print_labels[0] = 'MSWE11A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE11B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE11C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE11D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE11E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE11F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE11G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE11H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE11J'
set_var_int_to_constant $mobile_audio_labels[0] = 29108
set_var_int_to_constant $mobile_audio_labels[1] = 29109
set_var_int_to_constant $mobile_audio_labels[2] = 29110
set_var_int_to_constant $mobile_audio_labels[3] = 29111
set_var_int_to_constant $mobile_audio_labels[4] = 29112
set_var_int_to_constant $mobile_audio_labels[5] = 29113
set_var_int_to_constant $mobile_audio_labels[6] = 29114
set_var_int_to_constant $mobile_audio_labels[7] = 29115
set_var_int_to_constant $mobile_audio_labels[8] = 29116
$cell_index_end = 8
goto @CELLFON_13258

:CELLFON_2322
set_var_text_label s$mobile_print_labels[0] = 'MSWE12A'
set_var_text_label s$mobile_print_labels[1] = 'MSWE12B'
set_var_text_label s$mobile_print_labels[2] = 'MSWE12C'
set_var_text_label s$mobile_print_labels[3] = 'MSWE12D'
set_var_text_label s$mobile_print_labels[4] = 'MSWE12E'
set_var_text_label s$mobile_print_labels[5] = 'MSWE12F'
set_var_text_label s$mobile_print_labels[6] = 'MSWE12G'
set_var_text_label s$mobile_print_labels[7] = 'MSWE12H'
set_var_text_label s$mobile_print_labels[8] = 'MSWE12J'
set_var_text_label s$mobile_print_labels[9] = 'MSWE12K'
set_var_text_label s$mobile_print_labels[10] = 'MSWE12L'
set_var_text_label s$mobile_print_labels[11] = 'MSWE12N'
set_var_text_label s$mobile_print_labels[12] = 'MSWE12M'
set_var_text_label s$mobile_print_labels[13] = 'MSWE12O'
set_var_text_label s$mobile_print_labels[14] = 'MSWE12P'
set_var_text_label s$mobile_print_labels[15] = 'MSWE12Q'
set_var_text_label s$mobile_print_labels[16] = 'MSWE12R'
set_var_text_label s$mobile_print_labels[17] = 'MSWE12S'
set_var_text_label s$mobile_print_labels[18] = 'MSWE12T'
set_var_text_label s$mobile_print_labels[19] = 'MSWE12U'
set_var_int_to_constant $mobile_audio_labels[0] = 29117
set_var_int_to_constant $mobile_audio_labels[1] = 29118
set_var_int_to_constant $mobile_audio_labels[2] = 29119
set_var_int_to_constant $mobile_audio_labels[3] = 29120
set_var_int_to_constant $mobile_audio_labels[4] = 29121
set_var_int_to_constant $mobile_audio_labels[5] = 29122
set_var_int_to_constant $mobile_audio_labels[6] = 29123
set_var_int_to_constant $mobile_audio_labels[7] = 29124
set_var_int_to_constant $mobile_audio_labels[8] = 29125
set_var_int_to_constant $mobile_audio_labels[9] = 29126
set_var_int_to_constant $mobile_audio_labels[10] = 29127
set_var_int_to_constant $mobile_audio_labels[11] = 29129
set_var_int_to_constant $mobile_audio_labels[12] = 29128
set_var_int_to_constant $mobile_audio_labels[13] = 29130
set_var_int_to_constant $mobile_audio_labels[14] = 29131
set_var_int_to_constant $mobile_audio_labels[15] = 29132
set_var_int_to_constant $mobile_audio_labels[16] = 29133
set_var_int_to_constant $mobile_audio_labels[17] = 29134
set_var_int_to_constant $mobile_audio_labels[18] = 29135
set_var_int_to_constant $mobile_audio_labels[19] = 29136
$cell_index_end = 19
goto @CELLFON_13258

:CELLFON_2776
set_var_text_label s$mobile_print_labels[0] = 'MCAT02A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT02B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT02C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT02D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT02E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT02F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT02G'
set_var_text_label s$mobile_print_labels[7] = 'MCAT02H'
set_var_int_to_constant $mobile_audio_labels[0] = 25008
set_var_int_to_constant $mobile_audio_labels[1] = 25009
set_var_int_to_constant $mobile_audio_labels[2] = 25010
set_var_int_to_constant $mobile_audio_labels[3] = 25011
set_var_int_to_constant $mobile_audio_labels[4] = 25012
set_var_int_to_constant $mobile_audio_labels[5] = 25013
set_var_int_to_constant $mobile_audio_labels[6] = 25014
set_var_int_to_constant $mobile_audio_labels[7] = 25015
$cell_index_end = 7
goto @CELLFON_13258

:CELLFON_2966
set_var_text_label s$mobile_print_labels[0] = 'MCAT03A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT03B'
set_var_int_to_constant $mobile_audio_labels[0] = 25016
set_var_int_to_constant $mobile_audio_labels[1] = 25017
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_3024
set_var_text_label s$mobile_print_labels[0] = 'MCAT04A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT04B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT04C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT04D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT04E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT04F'
set_var_int_to_constant $mobile_audio_labels[0] = 25018
set_var_int_to_constant $mobile_audio_labels[1] = 25019
set_var_int_to_constant $mobile_audio_labels[2] = 25020
set_var_int_to_constant $mobile_audio_labels[3] = 25021
set_var_int_to_constant $mobile_audio_labels[4] = 25022
set_var_int_to_constant $mobile_audio_labels[5] = 25023
$cell_index_end = 5
goto @CELLFON_13258

:CELLFON_3170
set_var_text_label s$mobile_print_labels[0] = 'MCAT05B'
set_var_text_label s$mobile_print_labels[1] = 'MCAT05C'
set_var_text_label s$mobile_print_labels[2] = 'MCAT05D'
set_var_text_label s$mobile_print_labels[3] = 'MCAT05E'
set_var_text_label s$mobile_print_labels[4] = 'MCAT05F'
set_var_text_label s$mobile_print_labels[5] = 'MCAT05G'
set_var_int_to_constant $mobile_audio_labels[0] = 25025
set_var_int_to_constant $mobile_audio_labels[1] = 25026
set_var_int_to_constant $mobile_audio_labels[2] = 25027
set_var_int_to_constant $mobile_audio_labels[3] = 25028
set_var_int_to_constant $mobile_audio_labels[4] = 25029
set_var_int_to_constant $mobile_audio_labels[5] = 25030
$cell_index_end = 5
goto @CELLFON_13258

:CELLFON_3316
set_var_text_label s$mobile_print_labels[0] = 'MCAT06A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT06B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT06C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT06D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT06E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT06F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT06G'
set_var_text_label s$mobile_print_labels[7] = 'MCAT06H'
set_var_text_label s$mobile_print_labels[8] = 'MCAT06J'
set_var_text_label s$mobile_print_labels[9] = 'MCAT06K'
set_var_int_to_constant $mobile_audio_labels[0] = 25031
set_var_int_to_constant $mobile_audio_labels[1] = 25032
set_var_int_to_constant $mobile_audio_labels[2] = 25033
set_var_int_to_constant $mobile_audio_labels[3] = 25034
set_var_int_to_constant $mobile_audio_labels[4] = 25035
set_var_int_to_constant $mobile_audio_labels[5] = 25036
set_var_int_to_constant $mobile_audio_labels[6] = 25037
set_var_int_to_constant $mobile_audio_labels[7] = 25038
set_var_int_to_constant $mobile_audio_labels[8] = 25039
set_var_int_to_constant $mobile_audio_labels[9] = 25040
$cell_index_end = 9
goto @CELLFON_13258

:CELLFON_3550
set_var_text_label s$mobile_print_labels[0] = 'MCAT07A'
set_var_text_label s$mobile_print_labels[1] = 'MCAT07B'
set_var_text_label s$mobile_print_labels[2] = 'MCAT07C'
set_var_text_label s$mobile_print_labels[3] = 'MCAT07D'
set_var_text_label s$mobile_print_labels[4] = 'MCAT07E'
set_var_text_label s$mobile_print_labels[5] = 'MCAT07F'
set_var_text_label s$mobile_print_labels[6] = 'MCAT07G'
set_var_int_to_constant $mobile_audio_labels[0] = 25041
set_var_int_to_constant $mobile_audio_labels[1] = 25042
set_var_int_to_constant $mobile_audio_labels[2] = 25043
set_var_int_to_constant $mobile_audio_labels[3] = 25044
set_var_int_to_constant $mobile_audio_labels[4] = 25045
set_var_int_to_constant $mobile_audio_labels[5] = 25046
set_var_int_to_constant $mobile_audio_labels[6] = 25047
$cell_index_end = 6
goto @CELLFON_13258

:CELLFON_3718
set_var_text_label s$mobile_print_labels[0] = 'MLOC03A'
set_var_text_label s$mobile_print_labels[1] = 'MLOC03B'
set_var_text_label s$mobile_print_labels[2] = 'MLOC03C'
set_var_text_label s$mobile_print_labels[3] = 'MLOC03D'
set_var_text_label s$mobile_print_labels[4] = 'MLOC03E'
set_var_text_label s$mobile_print_labels[5] = 'MLOC03F'
set_var_text_label s$mobile_print_labels[6] = 'MLOC03H'
set_var_int_to_constant $mobile_audio_labels[0] = 27412
set_var_int_to_constant $mobile_audio_labels[1] = 27413
set_var_int_to_constant $mobile_audio_labels[2] = 27414
set_var_int_to_constant $mobile_audio_labels[3] = 27415
set_var_int_to_constant $mobile_audio_labels[4] = 27416
set_var_int_to_constant $mobile_audio_labels[5] = 27417
set_var_int_to_constant $mobile_audio_labels[6] = 27418
$cell_index_end = 6
goto @CELLFON_13258

:CELLFON_3886
set_var_text_label s$mobile_print_labels[0] = 'MCES01A'
set_var_text_label s$mobile_print_labels[1] = 'MCES01B'
set_var_text_label s$mobile_print_labels[2] = 'MCES01C'
set_var_text_label s$mobile_print_labels[3] = 'MCES01D'
set_var_text_label s$mobile_print_labels[4] = 'MCES01E'
set_var_text_label s$mobile_print_labels[5] = 'MCES01F'
set_var_text_label s$mobile_print_labels[6] = 'MCES01G'
set_var_text_label s$mobile_print_labels[7] = 'MCES01H'
set_var_text_label s$mobile_print_labels[8] = 'MCES01K'
set_var_text_label s$mobile_print_labels[9] = 'MCES01L'
set_var_text_label s$mobile_print_labels[10] = 'MCES01M'
set_var_text_label s$mobile_print_labels[11] = 'MCES01N'
set_var_text_label s$mobile_print_labels[12] = 'MCES01O'
set_var_text_label s$mobile_print_labels[13] = 'MCES01P'
set_var_int_to_constant $mobile_audio_labels[0] = 25200
set_var_int_to_constant $mobile_audio_labels[1] = 25201
set_var_int_to_constant $mobile_audio_labels[2] = 25202
set_var_int_to_constant $mobile_audio_labels[3] = 25203
set_var_int_to_constant $mobile_audio_labels[4] = 25204
set_var_int_to_constant $mobile_audio_labels[5] = 25205
set_var_int_to_constant $mobile_audio_labels[6] = 25206
set_var_int_to_constant $mobile_audio_labels[7] = 25207
set_var_int_to_constant $mobile_audio_labels[8] = 25208
set_var_int_to_constant $mobile_audio_labels[9] = 25209
set_var_int_to_constant $mobile_audio_labels[10] = 25210
set_var_int_to_constant $mobile_audio_labels[11] = 25211
set_var_int_to_constant $mobile_audio_labels[12] = 25212
set_var_int_to_constant $mobile_audio_labels[13] = 25213
$cell_index_end = 13
goto @CELLFON_13258

:CELLFON_4208
set_var_text_label s$mobile_print_labels[0] = 'MCES04A'
set_var_text_label s$mobile_print_labels[1] = 'MCES04B'
set_var_text_label s$mobile_print_labels[2] = 'MCES04C'
set_var_text_label s$mobile_print_labels[3] = 'MCES04D'
set_var_text_label s$mobile_print_labels[4] = 'MCES04E'
set_var_text_label s$mobile_print_labels[5] = 'MCES04F'
set_var_text_label s$mobile_print_labels[6] = 'MCES04G'
set_var_text_label s$mobile_print_labels[7] = 'MCES04H'
set_var_text_label s$mobile_print_labels[8] = 'MCES04J'
set_var_text_label s$mobile_print_labels[9] = 'MCES04L'
set_var_text_label s$mobile_print_labels[10] = 'MCES04M'
set_var_text_label s$mobile_print_labels[11] = 'MCES04N'
set_var_text_label s$mobile_print_labels[12] = 'MCES04O'
set_var_text_label s$mobile_print_labels[13] = 'MCES04P'
set_var_text_label s$mobile_print_labels[14] = 'MCES04Q'
set_var_text_label s$mobile_print_labels[15] = 'MCES04R'
set_var_int_to_constant $mobile_audio_labels[0] = 25240
set_var_int_to_constant $mobile_audio_labels[1] = 25241
set_var_int_to_constant $mobile_audio_labels[2] = 25242
set_var_int_to_constant $mobile_audio_labels[3] = 25243
set_var_int_to_constant $mobile_audio_labels[4] = 25244
set_var_int_to_constant $mobile_audio_labels[5] = 25245
set_var_int_to_constant $mobile_audio_labels[6] = 25246
set_var_int_to_constant $mobile_audio_labels[7] = 25247
set_var_int_to_constant $mobile_audio_labels[8] = 25248
set_var_int_to_constant $mobile_audio_labels[9] = 25249
set_var_int_to_constant $mobile_audio_labels[10] = 25250
set_var_int_to_constant $mobile_audio_labels[11] = 25251
set_var_int_to_constant $mobile_audio_labels[12] = 25252
set_var_int_to_constant $mobile_audio_labels[13] = 25253
set_var_int_to_constant $mobile_audio_labels[14] = 25254
set_var_int_to_constant $mobile_audio_labels[15] = 25255
$cell_index_end = 15
goto @CELLFON_13258

:CELLFON_4574
set_var_text_label s$mobile_print_labels[0] = 'MCES09A'
set_var_text_label s$mobile_print_labels[1] = 'MCES09B'
set_var_text_label s$mobile_print_labels[2] = 'MCES09C'
set_var_text_label s$mobile_print_labels[3] = 'MCES09D'
set_var_text_label s$mobile_print_labels[4] = 'MCES09E'
set_var_text_label s$mobile_print_labels[5] = 'MCES09F'
set_var_text_label s$mobile_print_labels[6] = 'MCES09G'
set_var_text_label s$mobile_print_labels[7] = 'MCES09H'
set_var_text_label s$mobile_print_labels[8] = 'MCES09K'
set_var_text_label s$mobile_print_labels[9] = 'MCES09L'
set_var_text_label s$mobile_print_labels[10] = 'MCES09M'
set_var_text_label s$mobile_print_labels[11] = 'MCES09N'
set_var_text_label s$mobile_print_labels[12] = 'MCES09O'
set_var_text_label s$mobile_print_labels[13] = 'MCES09P'
set_var_int_to_constant $mobile_audio_labels[0] = 25290
set_var_int_to_constant $mobile_audio_labels[1] = 25291
set_var_int_to_constant $mobile_audio_labels[2] = 25292
set_var_int_to_constant $mobile_audio_labels[3] = 25293
set_var_int_to_constant $mobile_audio_labels[4] = 25294
set_var_int_to_constant $mobile_audio_labels[5] = 25295
set_var_int_to_constant $mobile_audio_labels[6] = 25296
set_var_int_to_constant $mobile_audio_labels[7] = 25297
set_var_int_to_constant $mobile_audio_labels[8] = 25298
set_var_int_to_constant $mobile_audio_labels[9] = 25299
set_var_int_to_constant $mobile_audio_labels[10] = 25300
set_var_int_to_constant $mobile_audio_labels[11] = 25301
set_var_int_to_constant $mobile_audio_labels[12] = 25302
set_var_int_to_constant $mobile_audio_labels[13] = 25303
$cell_index_end = 13
goto @CELLFON_13258

:CELLFON_4896
set_var_text_label s$mobile_print_labels[0] = 'MKND01A'
set_var_text_label s$mobile_print_labels[1] = 'MKND01B'
set_var_text_label s$mobile_print_labels[2] = 'MKND01C'
set_var_text_label s$mobile_print_labels[3] = 'MKND01D'
set_var_text_label s$mobile_print_labels[4] = 'MKND01E'
set_var_text_label s$mobile_print_labels[5] = 'MKND01F'
set_var_text_label s$mobile_print_labels[6] = 'MKND01G'
set_var_text_label s$mobile_print_labels[7] = 'MKND01H'
set_var_text_label s$mobile_print_labels[8] = 'MKND01J'
set_var_int_to_constant $mobile_audio_labels[0] = 27000
set_var_int_to_constant $mobile_audio_labels[1] = 27001
set_var_int_to_constant $mobile_audio_labels[2] = 27002
set_var_int_to_constant $mobile_audio_labels[3] = 27003
set_var_int_to_constant $mobile_audio_labels[4] = 27004
set_var_int_to_constant $mobile_audio_labels[5] = 27005
set_var_int_to_constant $mobile_audio_labels[6] = 27006
set_var_int_to_constant $mobile_audio_labels[7] = 27007
set_var_int_to_constant $mobile_audio_labels[8] = 27008
$cell_index_end = 8
goto @CELLFON_13258

:CELLFON_5108
set_var_text_label s$mobile_print_labels[0] = 'MTEN01A'
set_var_text_label s$mobile_print_labels[1] = 'MTEN01B'
set_var_text_label s$mobile_print_labels[2] = 'MTEN01C'
set_var_text_label s$mobile_print_labels[3] = 'MTEN01D'
set_var_text_label s$mobile_print_labels[4] = 'MTEN01E'
set_var_text_label s$mobile_print_labels[5] = 'MTEN01F'
set_var_text_label s$mobile_print_labels[6] = 'MTEN01G'
set_var_text_label s$mobile_print_labels[7] = 'MTEN01H'
set_var_text_label s$mobile_print_labels[8] = 'MTEN01J'
set_var_int_to_constant $mobile_audio_labels[0] = 29200
set_var_int_to_constant $mobile_audio_labels[1] = 29201
set_var_int_to_constant $mobile_audio_labels[2] = 29202
set_var_int_to_constant $mobile_audio_labels[3] = 29203
set_var_int_to_constant $mobile_audio_labels[4] = 29204
set_var_int_to_constant $mobile_audio_labels[5] = 29205
set_var_int_to_constant $mobile_audio_labels[6] = 29206
set_var_int_to_constant $mobile_audio_labels[7] = 29207
set_var_int_to_constant $mobile_audio_labels[8] = 29208
$cell_index_end = 8
goto @CELLFON_13258

:CELLFON_5320
set_var_text_label s$mobile_print_labels[0] = 'MTEN02A'
set_var_text_label s$mobile_print_labels[1] = 'MTEN02B'
set_var_text_label s$mobile_print_labels[2] = 'MTEN02C'
set_var_text_label s$mobile_print_labels[3] = 'MTEN02D'
set_var_text_label s$mobile_print_labels[4] = 'MTEN02E'
set_var_text_label s$mobile_print_labels[5] = 'MTEN02F'
set_var_int_to_constant $mobile_audio_labels[0] = 29209
set_var_int_to_constant $mobile_audio_labels[1] = 29210
set_var_int_to_constant $mobile_audio_labels[2] = 29211
set_var_int_to_constant $mobile_audio_labels[3] = 29212
set_var_int_to_constant $mobile_audio_labels[4] = 29213
set_var_int_to_constant $mobile_audio_labels[5] = 29214
$cell_index_end = 5
goto @CELLFON_13258

:CELLFON_5466
set_var_text_label s$mobile_print_labels[0] = 'MHRZ01A'
set_var_text_label s$mobile_print_labels[1] = 'MHRZ01B'
set_var_text_label s$mobile_print_labels[2] = 'MHRZ01C'
set_var_text_label s$mobile_print_labels[3] = 'MHRZ01D'
set_var_text_label s$mobile_print_labels[4] = 'MHRZ01E'
set_var_text_label s$mobile_print_labels[5] = 'MHRZ01F'
set_var_text_label s$mobile_print_labels[6] = 'MHRZ01G'
set_var_text_label s$mobile_print_labels[7] = 'MHRZ01H'
set_var_text_label s$mobile_print_labels[8] = 'MHRZ01J'
set_var_text_label s$mobile_print_labels[9] = 'MHRZ01K'
set_var_text_label s$mobile_print_labels[10] = 'MHRZ01L'
set_var_text_label s$mobile_print_labels[11] = 'MHRZ01M'
set_var_text_label s$mobile_print_labels[12] = 'MHRZ01N'
set_var_int_to_constant $mobile_audio_labels[0] = 26400
set_var_int_to_constant $mobile_audio_labels[1] = 26401
set_var_int_to_constant $mobile_audio_labels[2] = 26402
set_var_int_to_constant $mobile_audio_labels[3] = 26403
set_var_int_to_constant $mobile_audio_labels[4] = 26404
set_var_int_to_constant $mobile_audio_labels[5] = 26405
set_var_int_to_constant $mobile_audio_labels[6] = 26406
set_var_int_to_constant $mobile_audio_labels[7] = 26407
set_var_int_to_constant $mobile_audio_labels[8] = 26408
set_var_int_to_constant $mobile_audio_labels[9] = 26409
set_var_int_to_constant $mobile_audio_labels[10] = 26410
set_var_int_to_constant $mobile_audio_labels[11] = 26411
set_var_int_to_constant $mobile_audio_labels[12] = 26412
$cell_index_end = 12
goto @CELLFON_13258

:CELLFON_5766
set_var_text_label s$mobile_print_labels[0] = 'MSMK01A'
set_var_text_label s$mobile_print_labels[1] = 'MSMK01B'
set_var_text_label s$mobile_print_labels[2] = 'MSMK01C'
set_var_text_label s$mobile_print_labels[3] = 'MSMK01D'
set_var_text_label s$mobile_print_labels[4] = 'MSMK01E'
set_var_text_label s$mobile_print_labels[5] = 'MSMK01F'
set_var_text_label s$mobile_print_labels[6] = 'MSMK01G'
set_var_text_label s$mobile_print_labels[7] = 'MSMK01H'
set_var_text_label s$mobile_print_labels[8] = 'MSMK01J'
set_var_text_label s$mobile_print_labels[9] = 'MSMK01K'
set_var_text_label s$mobile_print_labels[10] = 'MSMK01L'
set_var_text_label s$mobile_print_labels[11] = 'MSMK01M'
set_var_int_to_constant $mobile_audio_labels[0] = 28800
set_var_int_to_constant $mobile_audio_labels[1] = 28801
set_var_int_to_constant $mobile_audio_labels[2] = 28802
set_var_int_to_constant $mobile_audio_labels[3] = 28803
set_var_int_to_constant $mobile_audio_labels[4] = 28804
set_var_int_to_constant $mobile_audio_labels[5] = 28805
set_var_int_to_constant $mobile_audio_labels[6] = 28806
set_var_int_to_constant $mobile_audio_labels[7] = 28807
set_var_int_to_constant $mobile_audio_labels[8] = 28808
set_var_int_to_constant $mobile_audio_labels[9] = 28809
set_var_int_to_constant $mobile_audio_labels[10] = 28810
set_var_int_to_constant $mobile_audio_labels[11] = 28811
$cell_index_end = 11
goto @CELLFON_13258

:CELLFON_6044
set_var_text_label s$mobile_print_labels[0] = 'MTRU01A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU01B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU01C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU01D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU01E'
set_var_text_label s$mobile_print_labels[5] = 'MTRU01F'
set_var_text_label s$mobile_print_labels[6] = 'MTRU01G'
set_var_text_label s$mobile_print_labels[7] = 'MTRU01H'
set_var_text_label s$mobile_print_labels[8] = 'MTRU01J'
set_var_text_label s$mobile_print_labels[9] = 'MTRU01K'
set_var_text_label s$mobile_print_labels[10] = 'MTRU01L'
set_var_text_label s$mobile_print_labels[11] = 'MTRU01M'
set_var_text_label s$mobile_print_labels[12] = 'MTRU01N'
set_var_text_label s$mobile_print_labels[13] = 'MTRU01O'
set_var_text_label s$mobile_print_labels[14] = 'MTRU01P'
set_var_int_to_constant $mobile_audio_labels[0] = 29800
set_var_int_to_constant $mobile_audio_labels[1] = 29801
set_var_int_to_constant $mobile_audio_labels[2] = 29802
set_var_int_to_constant $mobile_audio_labels[3] = 29803
set_var_int_to_constant $mobile_audio_labels[4] = 29804
set_var_int_to_constant $mobile_audio_labels[5] = 29805
set_var_int_to_constant $mobile_audio_labels[6] = 29806
set_var_int_to_constant $mobile_audio_labels[7] = 29807
set_var_int_to_constant $mobile_audio_labels[8] = 29808
set_var_int_to_constant $mobile_audio_labels[9] = 29809
set_var_int_to_constant $mobile_audio_labels[10] = 29810
set_var_int_to_constant $mobile_audio_labels[11] = 29811
set_var_int_to_constant $mobile_audio_labels[12] = 29812
set_var_int_to_constant $mobile_audio_labels[13] = 29813
set_var_int_to_constant $mobile_audio_labels[14] = 29814
$cell_index_end = 14
goto @CELLFON_13258

:CELLFON_6388
set_var_text_label s$mobile_print_labels[0] = 'MTRU02A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU02B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU02C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU02D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU02E'
set_var_text_label s$mobile_print_labels[5] = 'MTRU02F'
set_var_int_to_constant $mobile_audio_labels[0] = 29815
set_var_int_to_constant $mobile_audio_labels[1] = 29816
set_var_int_to_constant $mobile_audio_labels[2] = 29817
set_var_int_to_constant $mobile_audio_labels[3] = 29818
set_var_int_to_constant $mobile_audio_labels[4] = 29819
set_var_int_to_constant $mobile_audio_labels[5] = 29820
$cell_index_end = 5
goto @CELLFON_13258

:CELLFON_6534
set_var_text_label s$mobile_print_labels[0] = 'MTRU03A'
set_var_text_label s$mobile_print_labels[1] = 'MTRU03B'
set_var_text_label s$mobile_print_labels[2] = 'MTRU03C'
set_var_text_label s$mobile_print_labels[3] = 'MTRU03D'
set_var_text_label s$mobile_print_labels[4] = 'MTRU03E'
set_var_int_to_constant $mobile_audio_labels[0] = 29821
set_var_int_to_constant $mobile_audio_labels[1] = 29822
set_var_int_to_constant $mobile_audio_labels[2] = 29823
set_var_int_to_constant $mobile_audio_labels[3] = 29824
set_var_int_to_constant $mobile_audio_labels[4] = 29825
$cell_index_end = 4
goto @CELLFON_13258

:CELLFON_6658
set_var_text_label s$mobile_print_labels[0] = 'MWUZ00A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ00B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ00C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ00D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ00E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ00F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ00G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ00H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ00J'
set_var_int_to_constant $mobile_audio_labels[0] = 30000
set_var_int_to_constant $mobile_audio_labels[1] = 30001
set_var_int_to_constant $mobile_audio_labels[2] = 30002
set_var_int_to_constant $mobile_audio_labels[3] = 30003
set_var_int_to_constant $mobile_audio_labels[4] = 30004
set_var_int_to_constant $mobile_audio_labels[5] = 30005
set_var_int_to_constant $mobile_audio_labels[6] = 30006
set_var_int_to_constant $mobile_audio_labels[7] = 30007
set_var_int_to_constant $mobile_audio_labels[8] = 30008
$cell_index_end = 8
goto @CELLFON_13258

:CELLFON_6870
set_var_text_label s$mobile_print_labels[0] = 'MWUZ03A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ03B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ03C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ03D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ03E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ03F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ03G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ03H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ03J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ03K'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ03L'
set_var_int_to_constant $mobile_audio_labels[0] = 30029
set_var_int_to_constant $mobile_audio_labels[1] = 30030
set_var_int_to_constant $mobile_audio_labels[2] = 30031
set_var_int_to_constant $mobile_audio_labels[3] = 30032
set_var_int_to_constant $mobile_audio_labels[4] = 30033
set_var_int_to_constant $mobile_audio_labels[5] = 30034
set_var_int_to_constant $mobile_audio_labels[6] = 30035
set_var_int_to_constant $mobile_audio_labels[7] = 30036
set_var_int_to_constant $mobile_audio_labels[8] = 30037
set_var_int_to_constant $mobile_audio_labels[9] = 30038
set_var_int_to_constant $mobile_audio_labels[10] = 30039
$cell_index_end = 10
goto @CELLFON_13258

:CELLFON_7126
set_var_text_label s$mobile_print_labels[0] = 'MWUZ03B'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ05B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ05C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ05D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ05E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ05F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ05G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ05H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ05J'
set_var_int_to_constant $mobile_audio_labels[0] = 30030
set_var_int_to_constant $mobile_audio_labels[1] = 30049
set_var_int_to_constant $mobile_audio_labels[2] = 30050
set_var_int_to_constant $mobile_audio_labels[3] = 30051
set_var_int_to_constant $mobile_audio_labels[4] = 30052
set_var_int_to_constant $mobile_audio_labels[5] = 30053
set_var_int_to_constant $mobile_audio_labels[6] = 30054
set_var_int_to_constant $mobile_audio_labels[7] = 30055
set_var_int_to_constant $mobile_audio_labels[8] = 30056
$cell_index_end = 8
goto @CELLFON_13258

:CELLFON_7338
set_var_text_label s$mobile_print_labels[0] = 'MWUZ07A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ07B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ07C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ07D'
set_var_int_to_constant $mobile_audio_labels[0] = 30070
set_var_int_to_constant $mobile_audio_labels[1] = 30071
set_var_int_to_constant $mobile_audio_labels[2] = 30072
set_var_int_to_constant $mobile_audio_labels[3] = 30073
$cell_index_end = 3
goto @CELLFON_13258

:CELLFON_7440
set_var_text_label s$mobile_print_labels[0] = 'MWUZ04A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ04B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ04C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ04D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ04E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ04F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ04G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ04H'
set_var_int_to_constant $mobile_audio_labels[0] = 30040
set_var_int_to_constant $mobile_audio_labels[1] = 30041
set_var_int_to_constant $mobile_audio_labels[2] = 30042
set_var_int_to_constant $mobile_audio_labels[3] = 30043
set_var_int_to_constant $mobile_audio_labels[4] = 30044
set_var_int_to_constant $mobile_audio_labels[5] = 30045
set_var_int_to_constant $mobile_audio_labels[6] = 30046
set_var_int_to_constant $mobile_audio_labels[7] = 30047
$cell_index_end = 7
goto @CELLFON_13258

:CELLFON_7630
set_var_text_label s$mobile_print_labels[0] = 'MWUZ06A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ06B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ06C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ06D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ09E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ09F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ06G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ06H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ06J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ09H'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ09J'
set_var_text_label s$mobile_print_labels[11] = 'MWUZ06K'
set_var_text_label s$mobile_print_labels[12] = 'MWUZ06L'
set_var_text_label s$mobile_print_labels[13] = 'MWUZ06M'
set_var_text_label s$mobile_print_labels[14] = 'MWUZ06N'
set_var_int_to_constant $mobile_audio_labels[0] = 30057
set_var_int_to_constant $mobile_audio_labels[1] = 30058
set_var_int_to_constant $mobile_audio_labels[2] = 30059
set_var_int_to_constant $mobile_audio_labels[3] = 30060
set_var_int_to_constant $mobile_audio_labels[4] = 30079
set_var_int_to_constant $mobile_audio_labels[5] = 30080
set_var_int_to_constant $mobile_audio_labels[6] = 30063
set_var_int_to_constant $mobile_audio_labels[7] = 30064
set_var_int_to_constant $mobile_audio_labels[8] = 30065
set_var_int_to_constant $mobile_audio_labels[9] = 30081
set_var_int_to_constant $mobile_audio_labels[10] = 30082
set_var_int_to_constant $mobile_audio_labels[11] = 30066
set_var_int_to_constant $mobile_audio_labels[12] = 30067
set_var_int_to_constant $mobile_audio_labels[13] = 30068
set_var_int_to_constant $mobile_audio_labels[14] = 30069
$cell_index_end = 14
goto @CELLFON_13258

:CELLFON_7974
set_var_text_label s$mobile_print_labels[0] = 'MWUZ06A'
set_var_text_label s$mobile_print_labels[1] = 'MWUZ06B'
set_var_text_label s$mobile_print_labels[2] = 'MWUZ06C'
set_var_text_label s$mobile_print_labels[3] = 'MWUZ06D'
set_var_text_label s$mobile_print_labels[4] = 'MWUZ06E'
set_var_text_label s$mobile_print_labels[5] = 'MWUZ06F'
set_var_text_label s$mobile_print_labels[6] = 'MWUZ06G'
set_var_text_label s$mobile_print_labels[7] = 'MWUZ06H'
set_var_text_label s$mobile_print_labels[8] = 'MWUZ06J'
set_var_text_label s$mobile_print_labels[9] = 'MWUZ06K'
set_var_text_label s$mobile_print_labels[10] = 'MWUZ06L'
set_var_text_label s$mobile_print_labels[11] = 'MWUZ06M'
set_var_text_label s$mobile_print_labels[12] = 'MWUZ06N'
set_var_int_to_constant $mobile_audio_labels[0] = 30057
set_var_int_to_constant $mobile_audio_labels[1] = 30058
set_var_int_to_constant $mobile_audio_labels[2] = 30059
set_var_int_to_constant $mobile_audio_labels[3] = 30060
set_var_int_to_constant $mobile_audio_labels[4] = 30061
set_var_int_to_constant $mobile_audio_labels[5] = 30062
set_var_int_to_constant $mobile_audio_labels[6] = 30063
set_var_int_to_constant $mobile_audio_labels[7] = 30064
set_var_int_to_constant $mobile_audio_labels[8] = 30065
set_var_int_to_constant $mobile_audio_labels[9] = 30066
set_var_int_to_constant $mobile_audio_labels[10] = 30067
set_var_int_to_constant $mobile_audio_labels[11] = 30068
set_var_int_to_constant $mobile_audio_labels[12] = 30069
$cell_index_end = 12
goto @CELLFON_13258

:CELLFON_8274
set_var_text_label s$mobile_print_labels[0] = 'MTOR01A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR01B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR01C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR01D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR01E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR01F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR01G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR01H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR01J'
set_var_text_label s$mobile_print_labels[9] = 'MTOR01K'
set_var_text_label s$mobile_print_labels[10] = 'MTOR01L'
set_var_int_to_constant $mobile_audio_labels[0] = 29600
set_var_int_to_constant $mobile_audio_labels[1] = 29601
set_var_int_to_constant $mobile_audio_labels[2] = 29602
set_var_int_to_constant $mobile_audio_labels[3] = 29603
set_var_int_to_constant $mobile_audio_labels[4] = 29604
set_var_int_to_constant $mobile_audio_labels[5] = 29605
set_var_int_to_constant $mobile_audio_labels[6] = 29606
set_var_int_to_constant $mobile_audio_labels[7] = 29607
set_var_int_to_constant $mobile_audio_labels[8] = 29608
set_var_int_to_constant $mobile_audio_labels[9] = 29609
set_var_int_to_constant $mobile_audio_labels[10] = 29610
$cell_index_end = 10
goto @CELLFON_13258

:CELLFON_8530
set_var_text_label s$mobile_print_labels[0] = 'MTOR02A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR02B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR02C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR02D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR02E'
set_var_int_to_constant $mobile_audio_labels[0] = 29611
set_var_int_to_constant $mobile_audio_labels[1] = 29612
set_var_int_to_constant $mobile_audio_labels[2] = 29613
set_var_int_to_constant $mobile_audio_labels[3] = 29614
set_var_int_to_constant $mobile_audio_labels[4] = 29615
$cell_index_end = 4
goto @CELLFON_13258

:CELLFON_8654
set_var_text_label s$mobile_print_labels[0] = 'MTOR03A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR03B'
set_var_int_to_constant $mobile_audio_labels[0] = 29616
set_var_int_to_constant $mobile_audio_labels[1] = 29617
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_8712
set_var_text_label s$mobile_print_labels[0] = 'MTOR05A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR05B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR05C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR05D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR05E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR05F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR05G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR05H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR05J'
set_var_int_to_constant $mobile_audio_labels[0] = 29630
set_var_int_to_constant $mobile_audio_labels[1] = 29631
set_var_int_to_constant $mobile_audio_labels[2] = 29632
set_var_int_to_constant $mobile_audio_labels[3] = 29633
set_var_int_to_constant $mobile_audio_labels[4] = 29634
set_var_int_to_constant $mobile_audio_labels[5] = 29635
set_var_int_to_constant $mobile_audio_labels[6] = 29636
set_var_int_to_constant $mobile_audio_labels[7] = 29637
set_var_int_to_constant $mobile_audio_labels[8] = 29638
$cell_index_end = 8
goto @CELLFON_13258

:CELLFON_8924
set_var_text_label s$mobile_print_labels[0] = 'MTOR06A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR06B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR06C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR06D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR06E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR06F'
set_var_text_label s$mobile_print_labels[6] = 'MTOR06G'
set_var_text_label s$mobile_print_labels[7] = 'MTOR06H'
set_var_text_label s$mobile_print_labels[8] = 'MTOR06J'
set_var_text_label s$mobile_print_labels[9] = 'MTOR06K'
set_var_text_label s$mobile_print_labels[10] = 'MTOR06L'
set_var_text_label s$mobile_print_labels[11] = 'MTOR06M'
set_var_int_to_constant $mobile_audio_labels[0] = 29639
set_var_int_to_constant $mobile_audio_labels[1] = 29640
set_var_int_to_constant $mobile_audio_labels[2] = 29641
set_var_int_to_constant $mobile_audio_labels[3] = 29642
set_var_int_to_constant $mobile_audio_labels[4] = 29643
set_var_int_to_constant $mobile_audio_labels[5] = 29644
set_var_int_to_constant $mobile_audio_labels[6] = 29645
set_var_int_to_constant $mobile_audio_labels[7] = 29646
set_var_int_to_constant $mobile_audio_labels[8] = 29647
set_var_int_to_constant $mobile_audio_labels[9] = 29648
set_var_int_to_constant $mobile_audio_labels[10] = 29649
set_var_int_to_constant $mobile_audio_labels[11] = 29650
$cell_index_end = 11
goto @CELLFON_13258

:CELLFON_9202
set_var_text_label s$mobile_print_labels[0] = 'MTOR07A'
set_var_text_label s$mobile_print_labels[1] = 'MTOR07B'
set_var_text_label s$mobile_print_labels[2] = 'MTOR07C'
set_var_text_label s$mobile_print_labels[3] = 'MTOR07D'
set_var_text_label s$mobile_print_labels[4] = 'MTOR07E'
set_var_text_label s$mobile_print_labels[5] = 'MTOR07L'
set_var_text_label s$mobile_print_labels[6] = 'MTOR07M'
set_var_text_label s$mobile_print_labels[7] = 'MTOR07F'
set_var_text_label s$mobile_print_labels[8] = 'MTOR07G'
set_var_text_label s$mobile_print_labels[9] = 'MTOR07N'
set_var_text_label s$mobile_print_labels[10] = 'MTOR07O'
set_var_text_label s$mobile_print_labels[11] = 'MTOR07H'
set_var_text_label s$mobile_print_labels[12] = 'MTOR07J'
set_var_text_label s$mobile_print_labels[13] = 'MTOR07K'
set_var_int_to_constant $mobile_audio_labels[0] = 29652
set_var_int_to_constant $mobile_audio_labels[1] = 29653
set_var_int_to_constant $mobile_audio_labels[2] = 29654
set_var_int_to_constant $mobile_audio_labels[3] = 29655
set_var_int_to_constant $mobile_audio_labels[4] = 29656
set_var_int_to_constant $mobile_audio_labels[5] = 29662
set_var_int_to_constant $mobile_audio_labels[6] = 29663
set_var_int_to_constant $mobile_audio_labels[7] = 29657
set_var_int_to_constant $mobile_audio_labels[8] = 29658
set_var_int_to_constant $mobile_audio_labels[9] = 29664
set_var_int_to_constant $mobile_audio_labels[10] = 29665
set_var_int_to_constant $mobile_audio_labels[11] = 29659
set_var_int_to_constant $mobile_audio_labels[12] = 29660
set_var_int_to_constant $mobile_audio_labels[13] = 29661
$cell_index_end = 13
goto @CELLFON_13258

:CELLFON_9524
set_var_text_label s$mobile_print_labels[0] = 'MKP01A'
set_var_text_label s$mobile_print_labels[1] = 'MKP01B'
set_var_text_label s$mobile_print_labels[2] = 'MKP01C'
set_var_text_label s$mobile_print_labels[3] = 'MKP01D'
set_var_text_label s$mobile_print_labels[4] = 'MKP01E'
set_var_text_label s$mobile_print_labels[5] = 'MKP01F'
set_var_int_to_constant $mobile_audio_labels[0] = 27200
set_var_int_to_constant $mobile_audio_labels[1] = 27201
set_var_int_to_constant $mobile_audio_labels[2] = 27202
set_var_int_to_constant $mobile_audio_labels[3] = 27203
set_var_int_to_constant $mobile_audio_labels[4] = 27204
set_var_int_to_constant $mobile_audio_labels[5] = 27205
$cell_index_end = 5
goto @CELLFON_13258

:CELLFON_9670
set_var_text_label s$mobile_print_labels[0] = 'MSAL01A'
set_var_text_label s$mobile_print_labels[1] = 'MROS01B'
set_var_text_label s$mobile_print_labels[2] = 'MROS01D'
set_var_text_label s$mobile_print_labels[3] = 'MROS01F'
set_var_text_label s$mobile_print_labels[4] = 'MROS01H'
set_var_text_label s$mobile_print_labels[5] = 'MROS01L'
set_var_int_to_constant $mobile_audio_labels[0] = 28600
set_var_int_to_constant $mobile_audio_labels[1] = 28400
set_var_int_to_constant $mobile_audio_labels[2] = 28401
set_var_int_to_constant $mobile_audio_labels[3] = 28403
set_var_int_to_constant $mobile_audio_labels[4] = 28404
set_var_int_to_constant $mobile_audio_labels[5] = 28405
$cell_index_end = 5
goto @CELLFON_13258

:CELLFON_9816
set_var_text_label s$mobile_print_labels[0] = 'MROS02A'
set_var_text_label s$mobile_print_labels[1] = 'MROS02B'
set_var_text_label s$mobile_print_labels[2] = 'MROS02C'
set_var_text_label s$mobile_print_labels[3] = 'MROS02D'
set_var_text_label s$mobile_print_labels[4] = 'MROS02E'
set_var_text_label s$mobile_print_labels[5] = 'MROS02F'
set_var_text_label s$mobile_print_labels[6] = 'MROS02G'
set_var_int_to_constant $mobile_audio_labels[0] = 28406
set_var_int_to_constant $mobile_audio_labels[1] = 28407
set_var_int_to_constant $mobile_audio_labels[2] = 28408
set_var_int_to_constant $mobile_audio_labels[3] = 28409
set_var_int_to_constant $mobile_audio_labels[4] = 28410
set_var_int_to_constant $mobile_audio_labels[5] = 28411
set_var_int_to_constant $mobile_audio_labels[6] = 28412
$cell_index_end = 6
goto @CELLFON_13258

:CELLFON_9984
set_var_text_label s$mobile_print_labels[0] = 'MROS03A'
set_var_text_label s$mobile_print_labels[1] = 'MROS03B'
set_var_text_label s$mobile_print_labels[2] = 'MROS03C'
set_var_text_label s$mobile_print_labels[3] = 'MROS03D'
set_var_text_label s$mobile_print_labels[4] = 'MROS03E'
set_var_text_label s$mobile_print_labels[5] = 'MROS03F'
set_var_text_label s$mobile_print_labels[6] = 'MROS03G'
set_var_text_label s$mobile_print_labels[7] = 'MROS03H'
set_var_text_label s$mobile_print_labels[8] = 'MROS03J'
set_var_text_label s$mobile_print_labels[9] = 'MROS03K'
set_var_text_label s$mobile_print_labels[10] = 'MROS03L'
set_var_text_label s$mobile_print_labels[11] = 'MROS03N'
set_var_text_label s$mobile_print_labels[12] = 'MROS03O'
set_var_text_label s$mobile_print_labels[13] = 'MROS03P'
set_var_int_to_constant $mobile_audio_labels[0] = 28413
set_var_int_to_constant $mobile_audio_labels[1] = 28414
set_var_int_to_constant $mobile_audio_labels[2] = 28415
set_var_int_to_constant $mobile_audio_labels[3] = 28416
set_var_int_to_constant $mobile_audio_labels[4] = 28417
set_var_int_to_constant $mobile_audio_labels[5] = 28418
set_var_int_to_constant $mobile_audio_labels[6] = 28419
set_var_int_to_constant $mobile_audio_labels[7] = 28420
set_var_int_to_constant $mobile_audio_labels[8] = 28421
set_var_int_to_constant $mobile_audio_labels[9] = 28422
set_var_int_to_constant $mobile_audio_labels[10] = 28423
set_var_int_to_constant $mobile_audio_labels[11] = 28424
set_var_int_to_constant $mobile_audio_labels[12] = 28425
set_var_int_to_constant $mobile_audio_labels[13] = 28426
$cell_index_end = 13
goto @CELLFON_13258

:CELLFON_10306
set_var_text_label s$mobile_print_labels[0] = 'MSAL01A'
set_var_text_label s$mobile_print_labels[1] = 'MSAL01B'
set_var_text_label s$mobile_print_labels[2] = 'MSAL01C'
set_var_text_label s$mobile_print_labels[3] = 'MSAL01D'
set_var_text_label s$mobile_print_labels[4] = 'MSAL01E'
set_var_text_label s$mobile_print_labels[5] = 'MSAL01F'
set_var_text_label s$mobile_print_labels[6] = 'MSAL01G'
set_var_text_label s$mobile_print_labels[7] = 'MSAL01H'
set_var_text_label s$mobile_print_labels[8] = 'MSAL01J'
set_var_text_label s$mobile_print_labels[9] = 'MSAL01K'
set_var_text_label s$mobile_print_labels[10] = 'MSAL01M'
set_var_text_label s$mobile_print_labels[11] = 'MSAL01N'
set_var_text_label s$mobile_print_labels[12] = 'MSAL01O'
set_var_int_to_constant $mobile_audio_labels[0] = 28600
set_var_int_to_constant $mobile_audio_labels[1] = 28601
set_var_int_to_constant $mobile_audio_labels[2] = 28602
set_var_int_to_constant $mobile_audio_labels[3] = 28603
set_var_int_to_constant $mobile_audio_labels[4] = 28604
set_var_int_to_constant $mobile_audio_labels[5] = 28605
set_var_int_to_constant $mobile_audio_labels[6] = 28606
set_var_int_to_constant $mobile_audio_labels[7] = 28607
set_var_int_to_constant $mobile_audio_labels[8] = 28608
set_var_int_to_constant $mobile_audio_labels[9] = 28609
set_var_int_to_constant $mobile_audio_labels[10] = 28610
set_var_int_to_constant $mobile_audio_labels[11] = 28611
set_var_int_to_constant $mobile_audio_labels[12] = 28612
$cell_index_end = 12
goto @CELLFON_13258

:CELLFON_10606
set_var_text_label s$mobile_print_labels[0] = 'MSAL02A'
set_var_text_label s$mobile_print_labels[1] = 'MSAL02B'
set_var_text_label s$mobile_print_labels[2] = 'MSAL02C'
set_var_text_label s$mobile_print_labels[3] = 'MSAL02D'
set_var_text_label s$mobile_print_labels[4] = 'MSAL02E'
set_var_text_label s$mobile_print_labels[5] = 'MSAL02F'
set_var_text_label s$mobile_print_labels[6] = 'MSAL02G'
set_var_text_label s$mobile_print_labels[7] = 'MSAL02H'
set_var_text_label s$mobile_print_labels[8] = 'MSAL02J'
set_var_text_label s$mobile_print_labels[9] = 'MSAL02K'
set_var_int_to_constant $mobile_audio_labels[0] = 28613
set_var_int_to_constant $mobile_audio_labels[1] = 28614
set_var_int_to_constant $mobile_audio_labels[2] = 28615
set_var_int_to_constant $mobile_audio_labels[3] = 28616
set_var_int_to_constant $mobile_audio_labels[4] = 28617
set_var_int_to_constant $mobile_audio_labels[5] = 28618
set_var_int_to_constant $mobile_audio_labels[6] = 28619
set_var_int_to_constant $mobile_audio_labels[7] = 28620
set_var_int_to_constant $mobile_audio_labels[8] = 28621
set_var_int_to_constant $mobile_audio_labels[9] = 28622
$cell_index_end = 9
goto @CELLFON_13258

:CELLFON_10840
set_var_text_label s$mobile_print_labels[0] = 'MMILL2A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL2B'
set_var_text_label s$mobile_print_labels[2] = 'MMILL2C'
set_var_text_label s$mobile_print_labels[3] = 'MMILL2D'
set_var_text_label s$mobile_print_labels[4] = 'MMILL2E'
set_var_text_label s$mobile_print_labels[5] = 'MMILL2F'
set_var_text_label s$mobile_print_labels[6] = 'MMILL2H'
set_var_text_label s$mobile_print_labels[7] = 'MMILL2J'
set_var_text_label s$mobile_print_labels[8] = 'MMILL2K'
set_var_text_label s$mobile_print_labels[9] = 'MMILL2L'
set_var_int_to_constant $mobile_audio_labels[0] = 27811
set_var_int_to_constant $mobile_audio_labels[1] = 27812
set_var_int_to_constant $mobile_audio_labels[2] = 27813
set_var_int_to_constant $mobile_audio_labels[3] = 27814
set_var_int_to_constant $mobile_audio_labels[4] = 27815
set_var_int_to_constant $mobile_audio_labels[5] = 27816
set_var_int_to_constant $mobile_audio_labels[6] = 27818
set_var_int_to_constant $mobile_audio_labels[7] = 27819
set_var_int_to_constant $mobile_audio_labels[8] = 27820
set_var_int_to_constant $mobile_audio_labels[9] = 27821
$cell_index_end = 9
goto @CELLFON_13258

:CELLFON_11074
set_var_text_label s$mobile_print_labels[0] = 'MZER01A'
set_var_text_label s$mobile_print_labels[1] = 'MZER01B'
set_var_text_label s$mobile_print_labels[2] = 'MZER01C'
set_var_text_label s$mobile_print_labels[3] = 'MZER01D'
set_var_text_label s$mobile_print_labels[4] = 'MZER01E'
set_var_text_label s$mobile_print_labels[5] = 'MZER01F'
set_var_text_label s$mobile_print_labels[6] = 'MZER01G'
set_var_int_to_constant $mobile_audio_labels[0] = 30400
set_var_int_to_constant $mobile_audio_labels[1] = 30401
set_var_int_to_constant $mobile_audio_labels[2] = 30402
set_var_int_to_constant $mobile_audio_labels[3] = 30403
set_var_int_to_constant $mobile_audio_labels[4] = 30404
set_var_int_to_constant $mobile_audio_labels[5] = 30405
set_var_int_to_constant $mobile_audio_labels[6] = 30406
$cell_index_end = 6
goto @CELLFON_13258

:CELLFON_11242
set_var_text_label s$mobile_print_labels[0] = 'MZER02A'
set_var_text_label s$mobile_print_labels[1] = 'MZER02B'
set_var_text_label s$mobile_print_labels[2] = 'MZER02C'
set_var_text_label s$mobile_print_labels[3] = 'MZER02D'
set_var_text_label s$mobile_print_labels[4] = 'MZER02E'
set_var_text_label s$mobile_print_labels[5] = 'MZER02F'
set_var_text_label s$mobile_print_labels[6] = 'MZER02G'
set_var_text_label s$mobile_print_labels[7] = 'MZER02H'
set_var_text_label s$mobile_print_labels[8] = 'MZER02J'
set_var_text_label s$mobile_print_labels[9] = 'MZER02K'
set_var_int_to_constant $mobile_audio_labels[0] = 30407
set_var_int_to_constant $mobile_audio_labels[1] = 30408
set_var_int_to_constant $mobile_audio_labels[2] = 30409
set_var_int_to_constant $mobile_audio_labels[3] = 30410
set_var_int_to_constant $mobile_audio_labels[4] = 30411
set_var_int_to_constant $mobile_audio_labels[5] = 30412
set_var_int_to_constant $mobile_audio_labels[6] = 30413
set_var_int_to_constant $mobile_audio_labels[7] = 30414
set_var_int_to_constant $mobile_audio_labels[8] = 30415
set_var_int_to_constant $mobile_audio_labels[9] = 30416
$cell_index_end = 9
goto @CELLFON_13258

:CELLFON_11476
set_var_text_label s$mobile_print_labels[0] = 'MJET_1A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_1B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_1C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_1D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_1E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_1F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_1G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_1H'
set_var_text_label s$mobile_print_labels[8] = 'MJET_1J'
set_var_text_label s$mobile_print_labels[9] = 'MJET_1K'
set_var_text_label s$mobile_print_labels[10] = 'MJET_1L'
set_var_text_label s$mobile_print_labels[11] = 'MJET_1M'
set_var_text_label s$mobile_print_labels[12] = 'MJET_1N'
set_var_text_label s$mobile_print_labels[13] = 'MJET_1O'
set_var_text_label s$mobile_print_labels[14] = 'MJET_1P'
set_var_int_to_constant $mobile_audio_labels[0] = 26600
set_var_int_to_constant $mobile_audio_labels[1] = 26601
set_var_int_to_constant $mobile_audio_labels[2] = 26602
set_var_int_to_constant $mobile_audio_labels[3] = 26603
set_var_int_to_constant $mobile_audio_labels[4] = 26604
set_var_int_to_constant $mobile_audio_labels[5] = 26605
set_var_int_to_constant $mobile_audio_labels[6] = 26606
set_var_int_to_constant $mobile_audio_labels[7] = 26607
set_var_int_to_constant $mobile_audio_labels[8] = 26608
set_var_int_to_constant $mobile_audio_labels[9] = 26609
set_var_int_to_constant $mobile_audio_labels[10] = 26610
set_var_int_to_constant $mobile_audio_labels[11] = 26611
set_var_int_to_constant $mobile_audio_labels[12] = 26612
set_var_int_to_constant $mobile_audio_labels[13] = 26613
set_var_int_to_constant $mobile_audio_labels[14] = 26614
$cell_index_end = 14
goto @CELLFON_13258

:CELLFON_11820
set_var_text_label s$mobile_print_labels[0] = 'MJET_2A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_2B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_2C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_2D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_2E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_2F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_2G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_2H'
set_var_text_label s$mobile_print_labels[8] = 'MJET_2J'
set_var_text_label s$mobile_print_labels[9] = 'MJET_2K'
set_var_text_label s$mobile_print_labels[10] = 'MJET_2L'
set_var_int_to_constant $mobile_audio_labels[0] = 26615
set_var_int_to_constant $mobile_audio_labels[1] = 26616
set_var_int_to_constant $mobile_audio_labels[2] = 26617
set_var_int_to_constant $mobile_audio_labels[3] = 26618
set_var_int_to_constant $mobile_audio_labels[4] = 26619
set_var_int_to_constant $mobile_audio_labels[5] = 26620
set_var_int_to_constant $mobile_audio_labels[6] = 26621
set_var_int_to_constant $mobile_audio_labels[7] = 26622
set_var_int_to_constant $mobile_audio_labels[8] = 26623
set_var_int_to_constant $mobile_audio_labels[9] = 26624
set_var_int_to_constant $mobile_audio_labels[10] = 26625
$cell_index_end = 10
goto @CELLFON_13258

:CELLFON_12076
set_var_text_label s$mobile_print_labels[0] = 'MJET_3A'
set_var_text_label s$mobile_print_labels[1] = 'MJET_3B'
set_var_text_label s$mobile_print_labels[2] = 'MJET_3C'
set_var_text_label s$mobile_print_labels[3] = 'MJET_3D'
set_var_text_label s$mobile_print_labels[4] = 'MJET_3E'
set_var_text_label s$mobile_print_labels[5] = 'MJET_3F'
set_var_text_label s$mobile_print_labels[6] = 'MJET_3G'
set_var_text_label s$mobile_print_labels[7] = 'MJET_3H'
set_var_int_to_constant $mobile_audio_labels[0] = 26626
set_var_int_to_constant $mobile_audio_labels[1] = 26627
set_var_int_to_constant $mobile_audio_labels[2] = 26628
set_var_int_to_constant $mobile_audio_labels[3] = 26629
set_var_int_to_constant $mobile_audio_labels[4] = 26630
set_var_int_to_constant $mobile_audio_labels[5] = 26631
set_var_int_to_constant $mobile_audio_labels[6] = 26632
set_var_int_to_constant $mobile_audio_labels[7] = 26633
$cell_index_end = 7
goto @CELLFON_13258

:CELLFON_12266
set_var_text_label s$mobile_print_labels[0] = 'SHRK_1A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_1B'
set_var_int_to_constant $mobile_audio_labels[0] = 34814
set_var_int_to_constant $mobile_audio_labels[1] = 34815
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12328
set_var_text_label s$mobile_print_labels[0] = 'SHRK_2A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 34816
set_var_int_to_constant $mobile_audio_labels[1] = 34817
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12390
set_var_text_label s$mobile_print_labels[0] = 'SHRK_3A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 34818
set_var_int_to_constant $mobile_audio_labels[1] = 34819
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12452
set_var_text_label s$mobile_print_labels[0] = 'SHRK_4A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 34820
set_var_int_to_constant $mobile_audio_labels[1] = 34821
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12514
set_var_text_label s$mobile_print_labels[0] = 'SHRK_5A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 34822
set_var_int_to_constant $mobile_audio_labels[1] = 34823
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12576
set_var_text_label s$mobile_print_labels[0] = 'SHRK_6A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_6B'
set_var_int_to_constant $mobile_audio_labels[0] = 34824
set_var_int_to_constant $mobile_audio_labels[1] = 34825
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12638
set_var_text_label s$mobile_print_labels[0] = 'SHRK_7A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_7B'
set_var_int_to_constant $mobile_audio_labels[0] = 34826
set_var_int_to_constant $mobile_audio_labels[1] = 34827
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12700
set_var_text_label s$mobile_print_labels[0] = 'SHRK_8A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_8B'
set_var_int_to_constant $mobile_audio_labels[0] = 34828
set_var_int_to_constant $mobile_audio_labels[1] = 34829
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12762
set_var_text_label s$mobile_print_labels[0] = 'SHRK_9A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK_9B'
set_var_int_to_constant $mobile_audio_labels[0] = 34830
set_var_int_to_constant $mobile_audio_labels[1] = 34831
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12824
set_var_text_label s$mobile_print_labels[0] = 'SHRK10A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK10B'
set_var_int_to_constant $mobile_audio_labels[0] = 34800
set_var_int_to_constant $mobile_audio_labels[1] = 34801
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12886
set_var_text_label s$mobile_print_labels[0] = 'SHRK11A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK11B'
set_var_int_to_constant $mobile_audio_labels[0] = 34802
set_var_int_to_constant $mobile_audio_labels[1] = 34803
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_12948
set_var_text_label s$mobile_print_labels[0] = 'SHRK12A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK12B'
set_var_int_to_constant $mobile_audio_labels[0] = 34804
set_var_int_to_constant $mobile_audio_labels[1] = 34805
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_13010
set_var_text_label s$mobile_print_labels[0] = 'SHRK13A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK13B'
set_var_int_to_constant $mobile_audio_labels[0] = 34806
set_var_int_to_constant $mobile_audio_labels[1] = 34807
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_13072
set_var_text_label s$mobile_print_labels[0] = 'SHRK14A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK14B'
set_var_int_to_constant $mobile_audio_labels[0] = 34808
set_var_int_to_constant $mobile_audio_labels[1] = 34809
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_13134
set_var_text_label s$mobile_print_labels[0] = 'SHRK15A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK15B'
set_var_int_to_constant $mobile_audio_labels[0] = 34810
set_var_int_to_constant $mobile_audio_labels[1] = 34811
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_13196
set_var_text_label s$mobile_print_labels[0] = 'SHRK16A'
set_var_text_label s$mobile_print_labels[1] = 'SHRK16B'
set_var_int_to_constant $mobile_audio_labels[0] = 34812
set_var_int_to_constant $mobile_audio_labels[1] = 34813
$cell_index_end = 1
goto @CELLFON_13258

:CELLFON_13258
goto @CELLFON_18044

:CELLFON_13265
switch_start $call_number {numCases} 54 {hasDefaultCase} 0 {defaultLabel} @CELLFON_18044 {caseNum1} 70 {caseLabel1} @CELLFON_13724 {caseNum2} 71 {caseLabel2} @CELLFON_13782 {caseNum3} 72 {caseLabel3} @CELLFON_13840 {caseNum4} 73 {caseLabel4} @CELLFON_13898 {caseNum5} 74 {caseLabel5} @CELLFON_13956 {caseNum6} 75 {caseLabel6} @CELLFON_14014 {caseNum7} 76 {caseLabel7} @CELLFON_14072
switch_continued 77 {caseLabel1} @CELLFON_14130 {caseNum2} 80 {caseLabel2} @CELLFON_14444 {caseNum3} 81 {caseLabel3} @CELLFON_14502 {caseNum4} 82 {caseLabel4} @CELLFON_14560 {caseNum5} 83 {caseLabel5} @CELLFON_14618 {caseNum6} 84 {caseLabel6} @CELLFON_14676 {caseNum7} 85 {caseLabel7} @CELLFON_14734 {caseNum8} 86 {caseLabel8} @CELLFON_14792 {caseNum9} 87 {caseLabel9} @CELLFON_14850
switch_continued 90 {caseLabel1} @CELLFON_15120 {caseNum2} 91 {caseLabel2} @CELLFON_15178 {caseNum3} 92 {caseLabel3} @CELLFON_15236 {caseNum4} 93 {caseLabel4} @CELLFON_15294 {caseNum5} 94 {caseLabel5} @CELLFON_15352 {caseNum6} 95 {caseLabel6} @CELLFON_15410 {caseNum7} 96 {caseLabel7} @CELLFON_15468 {caseNum8} 97 {caseLabel8} @CELLFON_15526 {caseNum9} 100 {caseLabel9} @CELLFON_15818
switch_continued 101 {caseLabel1} @CELLFON_15876 {caseNum2} 102 {caseLabel2} @CELLFON_15934 {caseNum3} 103 {caseLabel3} @CELLFON_15992 {caseNum4} 104 {caseLabel4} @CELLFON_16050 {caseNum5} 105 {caseLabel5} @CELLFON_16108 {caseNum6} 106 {caseLabel6} @CELLFON_16166 {caseNum7} 107 {caseLabel7} @CELLFON_16224 {caseNum8} 110 {caseLabel8} @CELLFON_16670 {caseNum9} 111 {caseLabel9} @CELLFON_16728
switch_continued 112 {caseLabel1} @CELLFON_16786 {caseNum2} 113 {caseLabel2} @CELLFON_16844 {caseNum3} 114 {caseLabel3} @CELLFON_16902 {caseNum4} 115 {caseLabel4} @CELLFON_16960 {caseNum5} 116 {caseLabel5} @CELLFON_17018 {caseNum6} 117 {caseLabel6} @CELLFON_17076 {caseNum7} 120 {caseLabel7} @CELLFON_17346 {caseNum8} 121 {caseLabel8} @CELLFON_17404 {caseNum9} 122 {caseLabel9} @CELLFON_17462
switch_continued 123 {caseLabel1} @CELLFON_17520 {caseNum2} 124 {caseLabel2} @CELLFON_17578 {caseNum3} 125 {caseLabel3} @CELLFON_17636 {caseNum4} 126 {caseLabel4} @CELLFON_17694 {caseNum5} 127 {caseLabel5} @CELLFON_17752 {caseNum6} 130 {caseLabel6} @CELLFON_14188 {caseNum7} 131 {caseLabel7} @CELLFON_14908 {caseNum8} 132 {caseLabel8} @CELLFON_15584 {caseNum9} 133 {caseLabel9} @CELLFON_16282
switch_continued 134 {caseLabel1} @CELLFON_17134 {caseNum2} 135 {caseLabel2} @CELLFON_17810 {caseNum3} -1 {caseLabel3} @CELLFON_18044 {caseNum4} -1 {caseLabel4} @CELLFON_18044 {caseNum5} -1 {caseLabel5} @CELLFON_18044 {caseNum6} -1 {caseLabel6} @CELLFON_18044 {caseNum7} -1 {caseLabel7} @CELLFON_18044 {caseNum8} -1 {caseLabel8} @CELLFON_18044 {caseNum9} -1 {caseLabel9} @CELLFON_18044

:CELLFON_13724
set_var_text_label s$mobile_print_labels[0] = 'MDEN_2A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_2D'
set_var_int_to_constant $mobile_audio_labels[0] = 25411
set_var_int_to_constant $mobile_audio_labels[1] = 25412
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_13782
set_var_text_label s$mobile_print_labels[0] = 'MDEN_3A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 25413
set_var_int_to_constant $mobile_audio_labels[1] = 25414
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_13840
set_var_text_label s$mobile_print_labels[0] = 'MDEN_4A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_4D'
set_var_int_to_constant $mobile_audio_labels[0] = 25415
set_var_int_to_constant $mobile_audio_labels[1] = 25416
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_13898
set_var_text_label s$mobile_print_labels[0] = 'MDEN_5A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 25417
set_var_int_to_constant $mobile_audio_labels[1] = 25418
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_13956
set_var_text_label s$mobile_print_labels[0] = 'MDEN_6A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_6D'
set_var_int_to_constant $mobile_audio_labels[0] = 25419
set_var_int_to_constant $mobile_audio_labels[1] = 25420
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14014
set_var_text_label s$mobile_print_labels[0] = 'MDEN_7D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_4D'
set_var_int_to_constant $mobile_audio_labels[0] = 25421
set_var_int_to_constant $mobile_audio_labels[1] = 25416
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14072
set_var_text_label s$mobile_print_labels[0] = 'MDEN_8D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_6D'
set_var_int_to_constant $mobile_audio_labels[0] = 25422
set_var_int_to_constant $mobile_audio_labels[1] = 25420
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14130
set_var_text_label s$mobile_print_labels[0] = 'MDEN_9D'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 25423
set_var_int_to_constant $mobile_audio_labels[1] = 25418
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14188
set_var_text_label s$mobile_print_labels[0] = 'MDEN_1A'
set_var_text_label s$mobile_print_labels[1] = 'MDEN_1B'
set_var_text_label s$mobile_print_labels[2] = 'MDEN_1C'
set_var_text_label s$mobile_print_labels[3] = 'MDEN_1D'
set_var_text_label s$mobile_print_labels[4] = 'MDEN_1E'
set_var_text_label s$mobile_print_labels[5] = 'MDEN_1F'
set_var_text_label s$mobile_print_labels[6] = 'MDEN_1G'
set_var_text_label s$mobile_print_labels[7] = 'MDEN_1H'
set_var_text_label s$mobile_print_labels[8] = 'MDEN_1J'
set_var_text_label s$mobile_print_labels[9] = 'MDEN_1K'
set_var_text_label s$mobile_print_labels[10] = 'MDEN_1L'
set_var_int_to_constant $mobile_audio_labels[0] = 25400
set_var_int_to_constant $mobile_audio_labels[1] = 25401
set_var_int_to_constant $mobile_audio_labels[2] = 25402
set_var_int_to_constant $mobile_audio_labels[3] = 25403
set_var_int_to_constant $mobile_audio_labels[4] = 25404
set_var_int_to_constant $mobile_audio_labels[5] = 25405
set_var_int_to_constant $mobile_audio_labels[6] = 25406
set_var_int_to_constant $mobile_audio_labels[7] = 25407
set_var_int_to_constant $mobile_audio_labels[8] = 25408
set_var_int_to_constant $mobile_audio_labels[9] = 25409
set_var_int_to_constant $mobile_audio_labels[10] = 25410
$cell_index_end = 10
goto @CELLFON_18044

:CELLFON_14444
set_var_text_label s$mobile_print_labels[0] = 'MMICH2A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH2B'
set_var_int_to_constant $mobile_audio_labels[0] = 27609
set_var_int_to_constant $mobile_audio_labels[1] = 27610
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14502
set_var_text_label s$mobile_print_labels[0] = 'MMICH3A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH3D'
set_var_int_to_constant $mobile_audio_labels[0] = 27611
set_var_int_to_constant $mobile_audio_labels[1] = 27612
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14560
set_var_text_label s$mobile_print_labels[0] = 'MMICH4A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH4B'
set_var_int_to_constant $mobile_audio_labels[0] = 27613
set_var_int_to_constant $mobile_audio_labels[1] = 27614
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14618
set_var_text_label s$mobile_print_labels[0] = 'MMICH5A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH5D'
set_var_int_to_constant $mobile_audio_labels[0] = 27615
set_var_int_to_constant $mobile_audio_labels[1] = 27616
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14676
set_var_text_label s$mobile_print_labels[0] = 'MMICH6A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH6D'
set_var_int_to_constant $mobile_audio_labels[0] = 27617
set_var_int_to_constant $mobile_audio_labels[1] = 27618
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14734
set_var_text_label s$mobile_print_labels[0] = 'MMICH7D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH3D'
set_var_int_to_constant $mobile_audio_labels[0] = 27619
set_var_int_to_constant $mobile_audio_labels[1] = 27612
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14792
set_var_text_label s$mobile_print_labels[0] = 'MMICH8D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH5D'
set_var_int_to_constant $mobile_audio_labels[0] = 27620
set_var_int_to_constant $mobile_audio_labels[1] = 27616
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14850
set_var_text_label s$mobile_print_labels[0] = 'MMICH9D'
set_var_text_label s$mobile_print_labels[1] = 'MMICH4B'
set_var_int_to_constant $mobile_audio_labels[0] = 27621
set_var_int_to_constant $mobile_audio_labels[1] = 27614
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_14908
set_var_text_label s$mobile_print_labels[0] = 'MMICH1A'
set_var_text_label s$mobile_print_labels[1] = 'MMICH1B'
set_var_text_label s$mobile_print_labels[2] = 'MMICH1C'
set_var_text_label s$mobile_print_labels[3] = 'MMICH1D'
set_var_text_label s$mobile_print_labels[4] = 'MMICH1E'
set_var_text_label s$mobile_print_labels[5] = 'MMICH1F'
set_var_text_label s$mobile_print_labels[6] = 'MMICH1G'
set_var_text_label s$mobile_print_labels[7] = 'MMICH1H'
set_var_text_label s$mobile_print_labels[8] = 'MMICH1J'
set_var_int_to_constant $mobile_audio_labels[0] = 27600
set_var_int_to_constant $mobile_audio_labels[1] = 27601
set_var_int_to_constant $mobile_audio_labels[2] = 27602
set_var_int_to_constant $mobile_audio_labels[3] = 27603
set_var_int_to_constant $mobile_audio_labels[4] = 27604
set_var_int_to_constant $mobile_audio_labels[5] = 27605
set_var_int_to_constant $mobile_audio_labels[6] = 27606
set_var_int_to_constant $mobile_audio_labels[7] = 27607
set_var_int_to_constant $mobile_audio_labels[8] = 27608
$cell_index_end = 8
goto @CELLFON_18044

:CELLFON_15120
set_var_text_label s$mobile_print_labels[0] = 'MHEL_2A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 26214
set_var_int_to_constant $mobile_audio_labels[1] = 26215
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15178
set_var_text_label s$mobile_print_labels[0] = 'MHEL_3A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 26216
set_var_int_to_constant $mobile_audio_labels[1] = 26217
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15236
set_var_text_label s$mobile_print_labels[0] = 'MHEL_4A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 26218
set_var_int_to_constant $mobile_audio_labels[1] = 26219
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15294
set_var_text_label s$mobile_print_labels[0] = 'MHEL_6A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_6B'
set_var_int_to_constant $mobile_audio_labels[0] = 26222
set_var_int_to_constant $mobile_audio_labels[1] = 26223
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15352
set_var_text_label s$mobile_print_labels[0] = 'MHEL_5A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_5B'
set_var_int_to_constant $mobile_audio_labels[0] = 26220
set_var_int_to_constant $mobile_audio_labels[1] = 26221
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15410
set_var_text_label s$mobile_print_labels[0] = 'MHELD7D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_2B'
set_var_int_to_constant $mobile_audio_labels[0] = 26200
set_var_int_to_constant $mobile_audio_labels[1] = 26215
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15468
set_var_text_label s$mobile_print_labels[0] = 'MHELD9D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_4B'
set_var_int_to_constant $mobile_audio_labels[0] = 26202
set_var_int_to_constant $mobile_audio_labels[1] = 26219
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15526
set_var_text_label s$mobile_print_labels[0] = 'MHELD8D'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_3B'
set_var_int_to_constant $mobile_audio_labels[0] = 26201
set_var_int_to_constant $mobile_audio_labels[1] = 26217
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15584
set_var_text_label s$mobile_print_labels[0] = 'MHEL_1A'
set_var_text_label s$mobile_print_labels[1] = 'MHEL_1B'
set_var_text_label s$mobile_print_labels[2] = 'MHEL_1C'
set_var_text_label s$mobile_print_labels[3] = 'MHEL_1D'
set_var_text_label s$mobile_print_labels[4] = 'MHEL_1E'
set_var_text_label s$mobile_print_labels[5] = 'MHEL_1F'
set_var_text_label s$mobile_print_labels[6] = 'MHEL_1G'
set_var_text_label s$mobile_print_labels[7] = 'MHEL_1H'
set_var_text_label s$mobile_print_labels[8] = 'MHEL_1J'
set_var_text_label s$mobile_print_labels[9] = 'MHEL_1K'
set_var_int_to_constant $mobile_audio_labels[0] = 26203
set_var_int_to_constant $mobile_audio_labels[1] = 26204
set_var_int_to_constant $mobile_audio_labels[2] = 26205
set_var_int_to_constant $mobile_audio_labels[3] = 26206
set_var_int_to_constant $mobile_audio_labels[4] = 26207
set_var_int_to_constant $mobile_audio_labels[5] = 26208
set_var_int_to_constant $mobile_audio_labels[6] = 26209
set_var_int_to_constant $mobile_audio_labels[7] = 26210
set_var_int_to_constant $mobile_audio_labels[8] = 26211
set_var_int_to_constant $mobile_audio_labels[9] = 26212
$cell_index_end = 9
goto @CELLFON_18044

:CELLFON_15818
set_var_text_label s$mobile_print_labels[0] = 'MBARB2A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB2D'
set_var_int_to_constant $mobile_audio_labels[0] = 24817
set_var_int_to_constant $mobile_audio_labels[1] = 24818
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15876
set_var_text_label s$mobile_print_labels[0] = 'MBARB3A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB3B'
set_var_int_to_constant $mobile_audio_labels[0] = 24819
set_var_int_to_constant $mobile_audio_labels[1] = 24820
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15934
set_var_text_label s$mobile_print_labels[0] = 'MBARB4A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB4D'
set_var_int_to_constant $mobile_audio_labels[0] = 24821
set_var_int_to_constant $mobile_audio_labels[1] = 24822
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_15992
set_var_text_label s$mobile_print_labels[0] = 'MBARB5A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB5D'
set_var_int_to_constant $mobile_audio_labels[0] = 24823
set_var_int_to_constant $mobile_audio_labels[1] = 24824
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16050
set_var_text_label s$mobile_print_labels[0] = 'MBARB6A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB6B'
set_var_int_to_constant $mobile_audio_labels[0] = 24825
set_var_int_to_constant $mobile_audio_labels[1] = 24826
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16108
set_var_text_label s$mobile_print_labels[0] = 'MBARB7D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB5D'
set_var_int_to_constant $mobile_audio_labels[0] = 24827
set_var_int_to_constant $mobile_audio_labels[1] = 24824
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16166
set_var_text_label s$mobile_print_labels[0] = 'MBARB8D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB3B'
set_var_int_to_constant $mobile_audio_labels[0] = 24828
set_var_int_to_constant $mobile_audio_labels[1] = 24820
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16224
set_var_text_label s$mobile_print_labels[0] = 'MBARB9D'
set_var_text_label s$mobile_print_labels[1] = 'MBARB6B'
set_var_int_to_constant $mobile_audio_labels[0] = 24829
set_var_int_to_constant $mobile_audio_labels[1] = 24826
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16282
set_var_text_label s$mobile_print_labels[0] = 'MBARB1A'
set_var_text_label s$mobile_print_labels[1] = 'MBARB1B'
set_var_text_label s$mobile_print_labels[2] = 'MBARB1C'
set_var_text_label s$mobile_print_labels[3] = 'MBARB1D'
set_var_text_label s$mobile_print_labels[4] = 'MBARB1E'
set_var_text_label s$mobile_print_labels[5] = 'MBARB1F'
set_var_text_label s$mobile_print_labels[6] = 'MBARB1G'
set_var_text_label s$mobile_print_labels[7] = 'MBARB1H'
set_var_text_label s$mobile_print_labels[8] = 'MBARB1J'
set_var_text_label s$mobile_print_labels[9] = 'MBARB1K'
set_var_text_label s$mobile_print_labels[10] = 'MBARB1L'
set_var_text_label s$mobile_print_labels[11] = 'MBARB1M'
set_var_text_label s$mobile_print_labels[12] = 'MBARB1N'
set_var_text_label s$mobile_print_labels[13] = 'MBARB1O'
set_var_text_label s$mobile_print_labels[14] = 'MBARB1P'
set_var_text_label s$mobile_print_labels[15] = 'MBARB1Q'
set_var_text_label s$mobile_print_labels[16] = 'MBARB1R'
set_var_int_to_constant $mobile_audio_labels[0] = 24800
set_var_int_to_constant $mobile_audio_labels[1] = 24801
set_var_int_to_constant $mobile_audio_labels[2] = 24802
set_var_int_to_constant $mobile_audio_labels[3] = 24803
set_var_int_to_constant $mobile_audio_labels[4] = 24804
set_var_int_to_constant $mobile_audio_labels[5] = 24805
set_var_int_to_constant $mobile_audio_labels[6] = 24806
set_var_int_to_constant $mobile_audio_labels[7] = 24807
set_var_int_to_constant $mobile_audio_labels[8] = 24808
set_var_int_to_constant $mobile_audio_labels[9] = 24809
set_var_int_to_constant $mobile_audio_labels[10] = 24810
set_var_int_to_constant $mobile_audio_labels[11] = 24811
set_var_int_to_constant $mobile_audio_labels[12] = 24812
set_var_int_to_constant $mobile_audio_labels[13] = 24813
set_var_int_to_constant $mobile_audio_labels[14] = 24814
set_var_int_to_constant $mobile_audio_labels[15] = 24815
set_var_int_to_constant $mobile_audio_labels[16] = 24816
$cell_index_end = 16
goto @CELLFON_18044

:CELLFON_16670
set_var_text_label s$mobile_print_labels[0] = 'MZAHN2A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN2D'
set_var_int_to_constant $mobile_audio_labels[0] = 30209
set_var_int_to_constant $mobile_audio_labels[1] = 30210
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16728
set_var_text_label s$mobile_print_labels[0] = 'MZAHN3A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN3B'
set_var_int_to_constant $mobile_audio_labels[0] = 30211
set_var_int_to_constant $mobile_audio_labels[1] = 30212
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16786
set_var_text_label s$mobile_print_labels[0] = 'MZAHN4A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN4D'
set_var_int_to_constant $mobile_audio_labels[0] = 30213
set_var_int_to_constant $mobile_audio_labels[1] = 30214
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16844
set_var_text_label s$mobile_print_labels[0] = 'MZAHN5A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN5B'
set_var_int_to_constant $mobile_audio_labels[0] = 30215
set_var_int_to_constant $mobile_audio_labels[1] = 30216
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16902
set_var_text_label s$mobile_print_labels[0] = 'MZAHN6A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN6D'
set_var_int_to_constant $mobile_audio_labels[0] = 30217
set_var_int_to_constant $mobile_audio_labels[1] = 30218
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_16960
set_var_text_label s$mobile_print_labels[0] = 'MZAHN7D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN2D'
set_var_int_to_constant $mobile_audio_labels[0] = 30219
set_var_int_to_constant $mobile_audio_labels[1] = 30210
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17018
set_var_text_label s$mobile_print_labels[0] = 'MZAHN9D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN4D'
set_var_int_to_constant $mobile_audio_labels[0] = 30221
set_var_int_to_constant $mobile_audio_labels[1] = 30214
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17076
set_var_text_label s$mobile_print_labels[0] = 'MZAHN8D'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN3B'
set_var_int_to_constant $mobile_audio_labels[0] = 30220
set_var_int_to_constant $mobile_audio_labels[1] = 30212
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17134
set_var_text_label s$mobile_print_labels[0] = 'MZAHN1A'
set_var_text_label s$mobile_print_labels[1] = 'MZAHN1B'
set_var_text_label s$mobile_print_labels[2] = 'MZAHN1C'
set_var_text_label s$mobile_print_labels[3] = 'MZAHN1D'
set_var_text_label s$mobile_print_labels[4] = 'MZAHN1E'
set_var_text_label s$mobile_print_labels[5] = 'MZAHN1F'
set_var_text_label s$mobile_print_labels[6] = 'MZAHN1G'
set_var_text_label s$mobile_print_labels[7] = 'MZAHN1H'
set_var_text_label s$mobile_print_labels[8] = 'MZAHN1J'
set_var_int_to_constant $mobile_audio_labels[0] = 30200
set_var_int_to_constant $mobile_audio_labels[1] = 30201
set_var_int_to_constant $mobile_audio_labels[2] = 30202
set_var_int_to_constant $mobile_audio_labels[3] = 30203
set_var_int_to_constant $mobile_audio_labels[4] = 30204
set_var_int_to_constant $mobile_audio_labels[5] = 30205
set_var_int_to_constant $mobile_audio_labels[6] = 30206
set_var_int_to_constant $mobile_audio_labels[7] = 30207
set_var_int_to_constant $mobile_audio_labels[8] = 30208
$cell_index_end = 8
goto @CELLFON_18044

:CELLFON_17346
set_var_text_label s$mobile_print_labels[0] = 'MMILL3A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL3B'
set_var_int_to_constant $mobile_audio_labels[0] = 27822
set_var_int_to_constant $mobile_audio_labels[1] = 27823
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17404
set_var_text_label s$mobile_print_labels[0] = 'MMILL4A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL4D'
set_var_int_to_constant $mobile_audio_labels[0] = 27824
set_var_int_to_constant $mobile_audio_labels[1] = 27825
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17462
set_var_text_label s$mobile_print_labels[0] = 'MMILL5A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL5D'
set_var_int_to_constant $mobile_audio_labels[0] = 27826
set_var_int_to_constant $mobile_audio_labels[1] = 27827
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17520
set_var_text_label s$mobile_print_labels[0] = 'MMILL6A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL6B'
set_var_int_to_constant $mobile_audio_labels[0] = 27828
set_var_int_to_constant $mobile_audio_labels[1] = 27829
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17578
set_var_text_label s$mobile_print_labels[0] = 'MMILL7A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL7D'
set_var_int_to_constant $mobile_audio_labels[0] = 27830
set_var_int_to_constant $mobile_audio_labels[1] = 27831
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17636
set_var_text_label s$mobile_print_labels[0] = 'MMILL8D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL3B'
set_var_int_to_constant $mobile_audio_labels[0] = 27832
set_var_int_to_constant $mobile_audio_labels[1] = 27823
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17694
set_var_text_label s$mobile_print_labels[0] = 'MMILL9D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL4D'
set_var_int_to_constant $mobile_audio_labels[0] = 27833
set_var_int_to_constant $mobile_audio_labels[1] = 27825
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17752
set_var_text_label s$mobile_print_labels[0] = 'MMIL10D'
set_var_text_label s$mobile_print_labels[1] = 'MMILL5D'
set_var_int_to_constant $mobile_audio_labels[0] = 27800
set_var_int_to_constant $mobile_audio_labels[1] = 27827
$cell_index_end = 1
goto @CELLFON_18044

:CELLFON_17810
set_var_text_label s$mobile_print_labels[0] = 'MMILL1A'
set_var_text_label s$mobile_print_labels[1] = 'MMILL1B'
set_var_text_label s$mobile_print_labels[2] = 'MMILL1C'
set_var_text_label s$mobile_print_labels[3] = 'MMILL1D'
set_var_text_label s$mobile_print_labels[4] = 'MMILL1E'
set_var_text_label s$mobile_print_labels[5] = 'MMILL1F'
set_var_text_label s$mobile_print_labels[6] = 'MMILL1G'
set_var_text_label s$mobile_print_labels[7] = 'MMILL1H'
set_var_text_label s$mobile_print_labels[8] = 'MMILL1J'
set_var_text_label s$mobile_print_labels[9] = 'MMILL1K'
set_var_int_to_constant $mobile_audio_labels[0] = 27801
set_var_int_to_constant $mobile_audio_labels[1] = 27802
set_var_int_to_constant $mobile_audio_labels[2] = 27803
set_var_int_to_constant $mobile_audio_labels[3] = 27804
set_var_int_to_constant $mobile_audio_labels[4] = 27805
set_var_int_to_constant $mobile_audio_labels[5] = 27806
set_var_int_to_constant $mobile_audio_labels[6] = 27807
set_var_int_to_constant $mobile_audio_labels[7] = 27808
set_var_int_to_constant $mobile_audio_labels[8] = 27809
set_var_int_to_constant $mobile_audio_labels[9] = 27810
$cell_index_end = 9
goto @CELLFON_18044

:CELLFON_18044
return 

:MOB_LA1
set_deatharrest_state 0
script_name 'MOB_LA1'

:MOB_LA1_15
wait 90
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_LA1_56
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_LA1_56
if 
  $Return_cities_passed > 0
goto_if_false @MOB_LA1_76
terminate_this_script 

:MOB_LA1_76
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_LA1_1712
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_LA1_1705
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_LA1_1705
if 
  $flag_intro_mission_counter > 0
goto_if_false @MOB_LA1_293
if 
  2 > $flag_sweet_mission_counter
goto_if_false @MOB_LA1_293
if 
  $funeral_mission_finished == 3
goto_if_false @MOB_LA1_293
if 
  $1347 == 0
goto_if_false @MOB_LA1_293
$call_number = 19
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_254
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA1_254
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_279
$1347 = 1

:MOB_LA1_279
gosub @MOB_GF_3168
goto @MOB_LA1_15

:MOB_LA1_293
if 
  $flag_sweet_mission_counter > 0
goto_if_false @MOB_LA1_414
if 
  $1349 == 0
goto_if_false @MOB_LA1_414
$call_number = 9
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_375
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA1_375
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_400
$1349 = 1

:MOB_LA1_400
gosub @MOB_GF_3168
goto @MOB_LA1_15

:MOB_LA1_414
if 
  $flag_strap_mission_counter == 4
goto_if_false @MOB_LA1_568
$hours, $minutes = get_time_of_day 
if or
  $hours >= 20
  6 > $hours
goto_if_false @MOB_LA1_568
if 
  $flag_mob_la1 == 0
goto_if_false @MOB_LA1_568
$call_number = 6
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_529
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA1_529
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_554
$flag_mob_la1 = 1

:MOB_LA1_554
gosub @MOB_GF_3168
goto @MOB_LA1_15

:MOB_LA1_568
if 
  $flag_sweet_mission_counter > 2
goto_if_false @MOB_LA1_1216
if 
  $1348 == 0
goto_if_false @MOB_LA1_1216
$Returnedfat = get_float_stat StatId.Fat
if 
  450.0 > $Returnedfat
goto_if_false @MOB_LA1_639
$call_number = 20

:MOB_LA1_639
if 
  $Returnedfat >= 450.0
goto_if_false @MOB_LA1_667
$call_number = 21

:MOB_LA1_667
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_706
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA1_706
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1202
$1348 = 1
do_fade 500 {direction} Fade.Out

:MOB_LA1_738
if 
  get_fading_status 
goto_if_false @MOB_LA1_762
wait 0
goto @MOB_LA1_738

:MOB_LA1_762
if 
  is_player_playing $player1
goto_if_false @MOB_LA1_819
set_player_control $player1 {state} False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} 2228.8911 {y} -1737.1281 {z} 12.3906

:MOB_LA1_819
clear_prints 
load_scene 2228.5171 {y} -1734.274 {z} 15.744
remove_blip $gym_contact_blip
$gym_contact_blip = add_short_range_sprite_blip_for_coord 2228.0 {y} -1722.811 {z} 12.5543 {sprite} RadarSprite.Gym
set_fixed_camera_position 2228.094 {y} -1735.179 {z} 15.6865 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2228.5171 {y} -1734.274 {z} 15.744 {switchStyle} SwitchType.JumpCut
wait 500
do_fade 1000 {direction} Fade.In
print_help 'GYMHELP'
wait 5000
print_help 'DUMBELL'
flash_hud_object HudObject.Radar
wait 5000
flash_hud_object -1
do_fade 500 {direction} Fade.Out

:MOB_LA1_975
if 
  get_fading_status 
goto_if_false @MOB_LA1_999
wait 0
goto @MOB_LA1_975

:MOB_LA1_999
if 
  is_player_playing $player1
goto_if_false @MOB_LA1_1059
$player_z -= 0.5
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} $player_z
load_scene $player_x {y} $player_y {z} $player_z
restore_camera_jumpcut 
set_player_control $player1 {state} True

:MOB_LA1_1059
switch_entry_exit 'GYM1' {state} True
switch_entry_exit 'GYM2' {state} True
switch_entry_exit 'GYM3' {state} True
remove_blip $gym_contact_blip
$gym_contact_blip = add_short_range_sprite_blip_for_contact_point 2228.0 {y} -1722.811 {z} 12.5543 {sprite} RadarSprite.Gym
change_blip_display $gym_contact_blip {display} BlipDisplay.BlipOnly
$gym_blips = add_short_range_sprite_blip_for_contact_point -2269.3999 {y} -155.6 {z} 35.3 {sprite} RadarSprite.Gym
change_blip_display $gym_blips {display} BlipDisplay.BlipOnly
$2631 = add_short_range_sprite_blip_for_contact_point 1968.6 {y} 2292.1001 {z} 16.4 {sprite} RadarSprite.Gym
change_blip_display $2631 {display} BlipDisplay.BlipOnly
wait 500
do_fade 1000 {direction} Fade.In

:MOB_LA1_1202
gosub @MOB_GF_3168
goto @MOB_LA1_15

:MOB_LA1_1216
if 
  $flag_strap_mission_counter > 1
goto_if_false @MOB_LA1_1367
if 
  $1343 == 0
goto_if_false @MOB_LA1_1367
$call_number = 12
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1298
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA1_1298
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1353
$1343 = 1
start_new_script @CRASH 
remove_blip $crash_contact_blip
$crash_contact_blip = add_sprite_blip_for_contact_point $crashX {y} $crashY {z} $crashZ {sprite} $crash_blip_icon

:MOB_LA1_1353
gosub @MOB_GF_3168
goto @MOB_LA1_15

:MOB_LA1_1367
if 
  $flag_sweet_mission_counter > 6
goto_if_false @MOB_LA1_1525
if 
  $1344 == 0
goto_if_false @MOB_LA1_1525
$call_number = 7
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1449
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA1_1449
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1511
$1344 = 1
start_new_script @CESAR 
remove_blip $cesar_contact_blip
$cesar_contact_blip = add_sprite_blip_for_contact_point $cesarX {y} $cesarY {z} $cesarZ {sprite} $cesar_blip_icon
change_blip_display $cesar_contact_blip {display} BlipDisplay.BlipOnly

:MOB_LA1_1511
gosub @MOB_GF_3168
goto @MOB_LA1_15

:MOB_LA1_1525
if 
  $flag_sweet_mission_counter > 6
goto_if_false @MOB_LA1_1705
if 
  $flag_crash_mission_counter > 0
goto_if_false @MOB_LA1_1705
if 
  $1346 == 0
goto_if_false @MOB_LA1_1705
$call_number = 18
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1625
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA1_1625
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA1_1691
$1346 = 1
switch_entry_exit 'AMMUN1' {state} False
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point 1365.251 {y} -1280.12 {z} 12.5469 {sprite} $sweet_blip_icon

:MOB_LA1_1691
gosub @MOB_GF_3168
goto @MOB_LA1_15

:MOB_LA1_1705
goto @MOB_LA1_1719

:MOB_LA1_1712
$flag_cell_nation = 0

:MOB_LA1_1719
goto @MOB_LA1_15

:MOB_CAT
set_deatharrest_state 0
script_name 'MOB_CAT'

:MOB_CAT_15
wait 120
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_CAT_56
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_CAT_56
if 
  $terminate_cat_calls == 1
goto_if_false @MOB_CAT_76
terminate_this_script 

:MOB_CAT_76
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_CAT_1215
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_CAT_1208
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_CAT_1208
if 
  $flag_bcrash_mission_counter > 0
goto_if_false @MOB_CAT_286
if 
  $flag_mob_cat == 0
goto_if_false @MOB_CAT_286
$call_number = 8
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_218
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_CAT_218
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_272
$flag_mob_cat = 1
start_new_script @CAT 
remove_blip $cat_contact_blip
$cat_contact_blip = add_sprite_blip_for_contact_point $511 {y} $517 {z} $523 {sprite} RadarSprite.Qmark

:MOB_CAT_272
gosub @MOB_GF_3168
goto @MOB_CAT_15

:MOB_CAT_286
if 
  $flag_bcrash_mission_counter > 0
goto_if_false @MOB_CAT_407
if 
  $1359 == 0
goto_if_false @MOB_CAT_407
$call_number = 24
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_368
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_CAT_368
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_393
$1359 = 1

:MOB_CAT_393
gosub @MOB_GF_3168
goto @MOB_CAT_15

:MOB_CAT_407
if and
  $flag_truth_mission_counter == 0
  $cat_counter == 1
goto_if_false @MOB_CAT_565
if 
  $1357 == 0
goto_if_false @MOB_CAT_565
$call_number = 15
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_496
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_CAT_496
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_551
$1357 = 1
start_new_script @TRU 
remove_blip $truth_contact_blip
$truth_contact_blip = add_sprite_blip_for_contact_point $truth2X {y} $truth2Y {z} $truth2Z {sprite} $truth_blip_icon

:MOB_CAT_551
gosub @MOB_GF_3168
goto @MOB_CAT_15

:MOB_CAT_565
if 
  $cat_counter == 3
goto_if_false @MOB_CAT_866
if 
  $1361 == 0
goto_if_false @MOB_CAT_866
$call_number = 0
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_647
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_CAT_647
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_852
$1361 = 1
set_zone_gang_strength 'ELCO1' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'ELCO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Grove {density} 0

:MOB_CAT_852
gosub @MOB_GF_3168
goto @MOB_CAT_15

:MOB_CAT_866
if and
  $cat_counter > 1
  $flag_bcesar_mission_counter == 0
goto_if_false @MOB_CAT_1047
if 
  $1362 == 0
goto_if_false @MOB_CAT_1047
$call_number = 10
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_955
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_CAT_955
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1033
$1362 = 1
start_new_script @BCESAR 
remove_blip $bcesar_contact_blip
$bcesar_contact_blip = add_sprite_blip_for_contact_point $bcesarX {y} $bcesarY {z} $bcesarZ {sprite} $cesar_blip_icon
change_blip_display $bcesar_contact_blip {display} BlipDisplay.BlipOnly
print 'BC4_1' {time} 8000 {flag} 1

:MOB_CAT_1033
gosub @MOB_GF_3168
goto @MOB_CAT_15

:MOB_CAT_1047
if and
  $cat_counter > 3
  $flag_bcesar_mission_counter > 9
goto_if_false @MOB_CAT_1208
if 
  $1363 == 0
goto_if_false @MOB_CAT_1208
$call_number = 16
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1136
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_CAT_1136
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_CAT_1194
$1363 = 1
remove_blip $truth_contact_blip
$truth_contact_blip = add_sprite_blip_for_contact_point $truthX {y} $truthY {z} $truthZ {sprite} $truth_blip_icon
set_max_wanted_level 5
$terminate_cat_calls = 1

:MOB_CAT_1194
gosub @MOB_GF_3168
goto @MOB_CAT_15

:MOB_CAT_1208
goto @MOB_CAT_1222

:MOB_CAT_1215
$flag_cell_nation = 0

:MOB_CAT_1222
goto @MOB_CAT_15

:MOB_SF
set_deatharrest_state 0
script_name 'MOB_SF'

:MOB_SF_15
wait 150
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_SF_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_SF_57
if 
  $1403 == 1
goto_if_false @MOB_SF_131
if 
  $1399 == 1
goto_if_false @MOB_SF_131
if 
  $1398 == 1
goto_if_false @MOB_SF_131
if 
  $1396 == 1
goto_if_false @MOB_SF_131
terminate_this_script 

:MOB_SF_131
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_SF_2048
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_SF_2041
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_SF_2041
if 
  $flag_synd_mission_counter > 2
goto_if_false @MOB_SF_342
if 
  $1401 == 0
goto_if_false @MOB_SF_342
$call_number = 34
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_273
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_273
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_328
$1401 = 1
start_new_script @WUZI 
remove_blip $wuzi_contact_blip
$wuzi_contact_blip = add_sprite_blip_for_contact_point $wuziX {y} $wuziY {z} $wuziZ {sprite} $wuzi_blip_icon

:MOB_SF_328
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_342
if 
  $flag_garage_mission_counter > 0
goto_if_false @MOB_SF_499
if 
  $flag_mob_sanfran == 0
goto_if_false @MOB_SF_499
$call_number = 29
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_424
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_424
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_485
$flag_mob_sanfran = 1
start_new_script @BUY2 
remove_blip $zero_contact_blip
$zero_contact_blip = add_sprite_blip_for_contact_point $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {sprite} RadarSprite.Zero
change_blip_display $zero_contact_blip {display} BlipDisplay.BlipOnly

:MOB_SF_485
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_499
if and
  $flag_garage_mission_counter > 0
  $zeros_property_bought == 1
goto_if_false @MOB_SF_657
if 
  $1396 == 0
goto_if_false @MOB_SF_657
$call_number = 30
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_588
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_588
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_643
$1396 = 1
start_new_script @ZERO 
remove_blip $zero_contact_blip
$zero_contact_blip = add_sprite_blip_for_contact_point $zeroX {y} $zeroY {z} $zeroZ {sprite} $zero_blip_icon

:MOB_SF_643
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_657
if 
  $flag_garage_mission_counter > 1
goto_if_false @MOB_SF_881
if 
  $1397 == 0
goto_if_false @MOB_SF_881
$call_number = 31
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_739
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_739
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_867
$1397 = 1
start_new_script @TRACE 
$dschool_contact_blip = add_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} RadarSprite.School
change_blip_display $dschool_contact_blip {display} BlipDisplay.BlipOnly
start_new_script @BSCHOO 
remove_blip $boat_school_blip
$boat_school_blip = add_short_range_sprite_blip_for_contact_point $boatsX {y} $boatsY {z} $boatsZ {sprite} RadarSprite.School
change_blip_display $boat_school_blip {display} BlipDisplay.BlipOnly
start_new_script @BIKES 
remove_blip $bike_school_blip
$bike_school_blip = add_short_range_sprite_blip_for_contact_point $bikesX {y} $bikesY {z} $bikesZ {sprite} RadarSprite.School
change_blip_display $bike_school_blip {display} BlipDisplay.BlipOnly

:MOB_SF_867
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_881
if and
  $driving_test_passed == 1
  $flag_desert_mission_counter > 3
goto_if_false @MOB_SF_1093
if 
  $1398 == 0
goto_if_false @MOB_SF_1093
$call_number = 32
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_970
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_970
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1079
$1398 = 1
remove_blip $trace_contact_blip
remove_blip $529
remove_blip $530
remove_blip $531
$trace_contact_blip = add_short_range_sprite_blip_for_contact_point $traceX[0] {y} $traceY[0] {z} $traceZ[0] {sprite} RadarSprite.Flag
$529 = add_short_range_sprite_blip_for_contact_point $traceX[1] {y} $traceY[1] {z} $traceZ[1] {sprite} RadarSprite.Flag
$530 = add_short_range_sprite_blip_for_contact_point $traceX[2] {y} $traceY[2] {z} $traceZ[2] {sprite} RadarSprite.Flag
$531 = add_short_range_sprite_blip_for_contact_point $traceX[3] {y} $traceY[3] {z} $traceZ[3] {sprite} RadarSprite.Flag

:MOB_SF_1079
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_1093
if and
  $1404 == 1
  $driving_test_passed == 1
goto_if_false @MOB_SF_1257
if 
  $1399 == 0
goto_if_false @MOB_SF_1257
$call_number = 33
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1182
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_1182
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1243
$1399 = 1
start_new_script @BUY1 
remove_blip $showroom_contact_blip
$showroom_contact_blip = add_sprite_blip_for_contact_point $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {sprite} RadarSprite.CesarViapando
change_blip_display $showroom_contact_blip {display} BlipDisplay.BlipOnly

:MOB_SF_1243
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_1257
if 
  $flag_synd_mission_counter == 10
goto_if_false @MOB_SF_1465
if 
  $1404 == 0
goto_if_false @MOB_SF_1465
$call_number = 41
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1339
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_1339
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1451
$1404 = 1
start_new_script @DESERT 
remove_blip $1733
remove_pickup $grove_save_pickup[16]
$grove_save_pickup[16] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[16] {y} $save_pickupY[16] {z} $save_pickupZ[16]
$number_of_save_icons = 17
$1733 = add_short_range_sprite_blip_for_contact_point $save_pickupX[16] {y} $save_pickupY[16] {z} $save_pickupZ[16] {sprite} RadarSprite.SaveGame
change_blip_display $1733 {display} BlipDisplay.BlipOnly
remove_blip $desert_contact_blip
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} RadarSprite.Qmark

:MOB_SF_1451
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_1465
if 
  $flag_desert_mission_counter > 0
goto_if_false @MOB_SF_1607
if 
  $1400 == 0
goto_if_false @MOB_SF_1607
$call_number = 42
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1547
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_1547
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1593
$1400 = 1
remove_blip $desert_contact_blip
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} RadarSprite.Qmark

:MOB_SF_1593
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_1607
if 
  $flag_desert_mission_counter > 1
goto_if_false @MOB_SF_1750
if 
  $1402 == 0
goto_if_false @MOB_SF_1750
$call_number = 43
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1689
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_1689
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1736
$1402 = 1
remove_blip $desert_contact_blip
$desert_contact_blip = add_sprite_blip_for_contact_point $desertX {y} $desertY {z} $desertZ {sprite} $desert_blip_icon

:MOB_SF_1736
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_1750
if 
  $pilot_test_passed > 0
goto_if_false @MOB_SF_2041
if 
  $1403 == 0
goto_if_false @MOB_SF_2041
$call_number = 35
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_1832
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_SF_1832
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_SF_2027
$1403 = 1
terminate_all_scripts_with_this_name 'MOB_VEG'
start_new_script @MOB_VEG 
start_new_script @CASINO 
remove_pickup $grove_save_pickup[17]
$grove_save_pickup[17] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[17] {y} $save_pickupY[17] {z} $save_pickupZ[17]
$number_of_save_icons = 18
$1734 = add_short_range_sprite_blip_for_contact_point $save_pickupX[17] {y} $save_pickupY[17] {z} $save_pickupZ[17] {sprite} RadarSprite.SaveGame
change_blip_display $1734 {display} BlipDisplay.BlipOnly
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2026.603 {y} 1007.735 {radius} 20.0
activate_garage 'VECMOD'
$2590 = add_short_range_sprite_blip_for_coord 2382.2 {y} 1044.0 {z} 9.8 {sprite} RadarSprite.ModGarage
set_int_stat StatId.PassedCasino3 {value} 1
start_new_script @LITCAS 

:MOB_SF_2027
gosub @MOB_GF_3168
goto @MOB_SF_15

:MOB_SF_2041
goto @MOB_SF_2055

:MOB_SF_2048
$flag_cell_nation = 0

:MOB_SF_2055
goto @MOB_SF_15

:MOB_VEG
set_deatharrest_state 0
script_name 'MOB_VEG'

:MOB_VEG_15
wait 180
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_VEG_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_VEG_57
if 
  $1386 == 1
goto_if_false @MOB_VEG_95
if 
  $1382 == 1
goto_if_false @MOB_VEG_95
terminate_this_script 

:MOB_VEG_95
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_VEG_2293
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_VEG_2286
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_VEG_2286
if 
  $flag_desert_mission_counter > 7
goto_if_false @MOB_VEG_298
if 
  $1389 == 0
goto_if_false @MOB_VEG_298
$call_number = 17
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_237
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_237
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_284
$1389 = 1
remove_blip $desert2_contact_blip
$desert2_contact_blip = add_sprite_blip_for_contact_point $desert2X {y} $desert2Y {z} $desert2Z {sprite} $desert2_blip_icon

:MOB_VEG_284
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_298
if and
  $flag_vcrash_mission_counter > 0
  $flag_casino_mission_counter > 7
goto_if_false @MOB_VEG_454
if 
  $flag_mob_vegas == 0
goto_if_false @MOB_VEG_454
$call_number = 13
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_387
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_387
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_440
$flag_mob_vegas = 1
remove_blip $vcrash_contact_blip
$vcrash_contact_blip = add_sprite_blip_for_contact_point -378.7596 {y} 2235.8589 {z} 41.4288 {sprite} $crash_blip_icon

:MOB_VEG_440
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_454
if 
  $flag_casino_mission_counter > 3
goto_if_false @MOB_VEG_617
if 
  $1380 == 0
goto_if_false @MOB_VEG_617
$call_number = 47
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_536
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_536
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_603
$1380 = 1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2187.2859 {y} 1678.4611 {radius} 20.0

:MOB_VEG_603
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_617
if 
  $flag_casino_mission_counter > 6
goto_if_false @MOB_VEG_780
if 
  $1381 == 0
goto_if_false @MOB_VEG_780
$call_number = 48
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_699
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_699
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_766
$1381 = 1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2187.2859 {y} 1678.4611 {radius} 20.0

:MOB_VEG_766
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_780
if 
  $flag_casino_mission_counter > 7
goto_if_false @MOB_VEG_997
if 
  $flag_vcrash_mission_counter > 1
goto_if_false @MOB_VEG_997
if 
  $flag_doc_mission_counter > 0
goto_if_false @MOB_VEG_997
if 
  $flag_desert_mission_counter > 8
goto_if_false @MOB_VEG_997
if 
  $1382 == 0
goto_if_false @MOB_VEG_997
$call_number = 49
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_916
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_916
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_983
$1382 = 1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $heistX {y} $heistY {z} $heistZ {sprite} $heist_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2187.2859 {y} 1678.4611 {radius} 20.0

:MOB_VEG_983
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_997
if 
  $flag_heist_mission_counter > 1
goto_if_false @MOB_VEG_1245
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @MOB_VEG_1245
$millies_like_stat = get_int_stat StatId.GirlfriendMillie
if 
  $millies_like_stat >= 35
goto_if_false @MOB_VEG_1245
if 
  $1379 == 0
goto_if_false @MOB_VEG_1245
$call_number = 53
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1123
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_1123
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1231
$millies_keycard_pickup = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 348.7857 {y} 306.1048 {z} 998.6557
start_new_script @KEYCARD 
remove_blip $Thekeycard_contact_blip
$Thekeycard_contact_blip = add_sprite_blip_for_contact_point 2037.349 {y} 2723.9709 {z} 9.8281 {sprite} $Theheist_blip_icon
change_blip_display $Thekeycard_contact_blip {display} BlipDisplay.BlipOnly
print_now 'GOODKEY' {time} 6000 {flag} 1
$1379 = 1

:MOB_VEG_1231
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_1245
if 
  $flag_heist_mission_counter > 1
goto_if_false @MOB_VEG_1537
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @MOB_VEG_1537
if or
  $iGFLikesPlayer[5] == -100
  $iGFLikesPlayer[5] == -999
goto_if_false @MOB_VEG_1537
if 
  $1379 == 0
goto_if_false @MOB_VEG_1537
if 
  $iGFLikesPlayer[5] == -999
goto_if_false @MOB_VEG_1351
$call_number = 40

:MOB_VEG_1351
if 
  $iGFLikesPlayer[5] == -100
goto_if_false @MOB_VEG_1376
$call_number = 39

:MOB_VEG_1376
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1415
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_1415
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1523
$millies_keycard_pickup = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 348.7857 {y} 306.1048 {z} 998.6557
start_new_script @KEYCARD 
remove_blip $Thekeycard_contact_blip
$Thekeycard_contact_blip = add_sprite_blip_for_contact_point 2037.349 {y} 2723.9709 {z} 9.8281 {sprite} $Theheist_blip_icon
change_blip_display $Thekeycard_contact_blip {display} BlipDisplay.BlipOnly
print_now 'BADKEY' {time} 6000 {flag} 1
$1379 = 1

:MOB_VEG_1523
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_1537
if and
  $flag_heist_mission_counter > 4
  $keycard_aquired_from_millie == 0
  $1384 == 0
goto_if_false @MOB_VEG_1672
if 
  $1383 == 0
goto_if_false @MOB_VEG_1672
$call_number = 36
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1633
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_1633
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1658
$1383 = 1

:MOB_VEG_1658
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_1672
if and
  $flag_casino_mission_counter > 8
  $flag_heist_mission_counter <> 6
goto_if_false @MOB_VEG_1800
if 
  $1385 == 0
goto_if_false @MOB_VEG_1800
$call_number = 51
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1761
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_1761
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1786
$1385 = 1

:MOB_VEG_1786
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_1800
if and
  $flag_casino_mission_counter > 8
  $1384 == 0
goto_if_false @MOB_VEG_1995
if 
  $1390 == 0
goto_if_false @MOB_VEG_1995
$call_number = 38
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1889
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_1889
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_1981
$1390 = 1
if 
  $keycard_aquired_from_millie == 1
goto_if_false @MOB_VEG_1981
remove_blip $Theheist_contact_blip
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
set_blip_entry_exit $Theheist_contact_blip {x} 2024.39 {y} 1008.62 {radius} 20.0
$1384 = 1

:MOB_VEG_1981
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_1995
if and
  $flag_casino_mission_counter > 8
  $keycard_aquired_from_millie == 1
goto_if_false @MOB_VEG_2165
if 
  $1384 == 0
goto_if_false @MOB_VEG_2165
$call_number = 37
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2084
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_2084
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2151
$1384 = 1
remove_blip $Theheist_contact_blip
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
set_blip_entry_exit $Theheist_contact_blip {x} 2024.39 {y} 1008.62 {radius} 20.0

:MOB_VEG_2151
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_2165
if 
  $flag_heist_mission_counter > 5
goto_if_false @MOB_VEG_2286
if 
  $1386 == 0
goto_if_false @MOB_VEG_2286
$call_number = 52
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2247
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_VEG_2247
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_VEG_2272
$1386 = 1

:MOB_VEG_2272
gosub @MOB_GF_3168
goto @MOB_VEG_15

:MOB_VEG_2286
goto @MOB_VEG_2300

:MOB_VEG_2293
$flag_cell_nation = 0

:MOB_VEG_2300
goto @MOB_VEG_15

:MOB_LA2
set_deatharrest_state 0
script_name 'MOB_LA2'

:MOB_LA2_15
wait 250
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_LA2_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_LA2_57
if 
  $1354 == 1
goto_if_false @MOB_LA2_77
terminate_this_script 

:MOB_LA2_77
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_LA2_763
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_LA2_756
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_LA2_756
if 
  $flag_mansion_mission_counter > 0
goto_if_false @MOB_LA2_280
if 
  $flag_mob_LA2 == 0
goto_if_false @MOB_LA2_280
$call_number = 50
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_219
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA2_219
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_266
$flag_mob_LA2 = 1
remove_blip $mansion_contact_blip
$mansion_contact_blip = add_sprite_blip_for_contact_point $mansionX {y} $mansionY {z} $mansionZ {sprite} $mansion_blip_icon

:MOB_LA2_266
gosub @MOB_GF_3168
goto @MOB_LA2_15

:MOB_LA2_280
if and
  $flag_casino_mission_counter > 2
  2 > $flag_mansion_mission_counter
goto_if_false @MOB_LA2_408
if 
  $1353 == 0
goto_if_false @MOB_LA2_408
$call_number = 25
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_369
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA2_369
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_394
$1353 = 1

:MOB_LA2_394
gosub @MOB_GF_3168
goto @MOB_LA2_15

:MOB_LA2_408
if 
  $flag_riot_mission_counter > 1
goto_if_false @MOB_LA2_590
if 
  $1355 == 0
goto_if_false @MOB_LA2_590
$call_number = 22
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_490
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA2_490
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_537
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$1355 = 1

:MOB_LA2_537
gosub @MOB_GF_3168
$player_territory_owned = get_territory_under_control_percentage 
if 
  34 >= $player_territory_owned
goto_if_false @MOB_LA2_583
print_now 'MORTURF' {time} 12000 {flag} 1

:MOB_LA2_583
goto @MOB_LA2_15

:MOB_LA2_590
if 
  $flag_riot_mission_counter > 1
goto_if_false @MOB_LA2_756
$player_territory_owned = get_territory_under_control_percentage 
if 
  $player_territory_owned > 34
goto_if_false @MOB_LA2_756
if 
  $1354 == 0
goto_if_false @MOB_LA2_756
$call_number = 23
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_695
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_LA2_695
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_LA2_742
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$1354 = 1

:MOB_LA2_742
gosub @MOB_GF_3168
goto @MOB_LA2_15

:MOB_LA2_756
goto @MOB_LA2_770

:MOB_LA2_763
$flag_cell_nation = 0

:MOB_LA2_770
goto @MOB_LA2_15

:MOB_RAN
set_deatharrest_state 0
script_name 'MOB_RAN'

:MOB_RAN_15
wait 1000
if and
  $onmission == 0
  $flag_mobile_timer == 0
goto_if_false @MOB_RAN_57
$timer_mobile_start = get_game_timer 
$flag_mobile_timer = 1

:MOB_RAN_57
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_RAN_2260
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_RAN_2253
if 
  $timer_mobile_diff > 60000
goto_if_false @MOB_RAN_2253
if and
  $failed_cesar_race == 1
  $flag_cesar_mission_counter == 0
goto_if_false @MOB_RAN_247
if 
  $1371 == 0
goto_if_false @MOB_RAN_247
$call_number = 11
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_208
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_208
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_233
$1371 = 1

:MOB_RAN_233
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_247
if and
  $trigger_phonecall_failed == 1
  $flag_smoke_mission_counter == 1
goto_if_false @MOB_RAN_403
$Returnedfat = get_float_stat StatId.Fat
if 
  $Returnedfat >= 500.0
goto_if_false @MOB_RAN_403
if 
  $1372 == 0
goto_if_false @MOB_RAN_403
$call_number = 14
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_364
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_364
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_389
$1372 = 1

:MOB_RAN_389
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_403
if 
  $flag_wuzi_mission_counter > 1
goto_if_false @MOB_RAN_524
if 
  $flag_mob_random == 0
goto_if_false @MOB_RAN_524
$call_number = 1
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_485
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_485
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_510
$flag_mob_random = 1

:MOB_RAN_510
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_524
if 
  $flag_desert_mission_counter > 5
goto_if_false @MOB_RAN_645
if 
  $1367 == 0
goto_if_false @MOB_RAN_645
$call_number = 2
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_606
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_606
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_631
$1367 = 1

:MOB_RAN_631
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_645
if 
  $flag_casino_mission_counter > 5
goto_if_false @MOB_RAN_766
if 
  $1368 == 0
goto_if_false @MOB_RAN_766
$call_number = 3
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_727
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_727
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_752
$1368 = 1

:MOB_RAN_752
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_766
if 
  $flag_mansion_mission_counter > 2
goto_if_false @MOB_RAN_887
if 
  $1369 == 0
goto_if_false @MOB_RAN_887
$call_number = 4
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_848
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_848
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_873
$1369 = 1

:MOB_RAN_873
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_887
if 
  $flag_riot_mission_counter > 4
goto_if_false @MOB_RAN_1008
if 
  $1370 == 0
goto_if_false @MOB_RAN_1008
$call_number = 5
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_969
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_969
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_994
$1370 = 1

:MOB_RAN_994
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_1008
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
goto_if_false @MOB_RAN_1136
if 
  $1373 == 0
goto_if_false @MOB_RAN_1136
$call_number = 44
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1097
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_1097
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1122
$1373 = 1

:MOB_RAN_1122
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_1136
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
  $1373 == 1
goto_if_false @MOB_RAN_1271
if 
  $1374 == 0
goto_if_false @MOB_RAN_1271
$call_number = 45
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1232
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_1232
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1257
$1374 = 1

:MOB_RAN_1257
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_1271
if and
  $d5_watched_first_cutscene == 1
  $pilot_test_passed == 0
  $1374 == 1
goto_if_false @MOB_RAN_1406
if 
  $1375 == 0
goto_if_false @MOB_RAN_1406
$call_number = 46
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1367
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_1367
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1392
$1375 = 1

:MOB_RAN_1392
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_1406
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 76
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @MOB_RAN_2253
if 
  not is_score_greater $player1 {money} -499
goto_if_false @MOB_RAN_2253
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @MOB_RAN_2253
if 
  $1376 == 0
goto_if_false @MOB_RAN_1834
if 
  $loan_shark_reminder == 7
goto_if_false @MOB_RAN_1518
$call_number = 61
$loan_shark_reminder = 0

:MOB_RAN_1518
if 
  $loan_shark_reminder == 6
goto_if_false @MOB_RAN_1550
$call_number = 60
$loan_shark_reminder = 7

:MOB_RAN_1550
if 
  $loan_shark_reminder == 5
goto_if_false @MOB_RAN_1582
$call_number = 59
$loan_shark_reminder = 6

:MOB_RAN_1582
if 
  $loan_shark_reminder == 4
goto_if_false @MOB_RAN_1614
$call_number = 58
$loan_shark_reminder = 5

:MOB_RAN_1614
if 
  $loan_shark_reminder == 3
goto_if_false @MOB_RAN_1646
$call_number = 57
$loan_shark_reminder = 4

:MOB_RAN_1646
if 
  $loan_shark_reminder == 2
goto_if_false @MOB_RAN_1678
$call_number = 56
$loan_shark_reminder = 3

:MOB_RAN_1678
if 
  $loan_shark_reminder == 1
goto_if_false @MOB_RAN_1710
$call_number = 55
$loan_shark_reminder = 2

:MOB_RAN_1710
if 
  $loan_shark_reminder == 0
goto_if_false @MOB_RAN_1742
$call_number = 54
$loan_shark_reminder = 1

:MOB_RAN_1742
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1781
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_1781
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_1820
$1376 = 1
$1377 = 0
$terminate_cat_calls = 1

:MOB_RAN_1820
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_1834
if 
  $1376 == 1
goto_if_false @MOB_RAN_2211
if 
  $1377 == 0
goto_if_false @MOB_RAN_2211
if 
  $loan_shark_hitmen == 7
goto_if_false @MOB_RAN_1902
$call_number = 69
$loan_shark_hitmen = 0

:MOB_RAN_1902
if 
  $loan_shark_hitmen == 6
goto_if_false @MOB_RAN_1934
$call_number = 68
$loan_shark_hitmen = 7

:MOB_RAN_1934
if 
  $loan_shark_hitmen == 5
goto_if_false @MOB_RAN_1966
$call_number = 67
$loan_shark_hitmen = 6

:MOB_RAN_1966
if 
  $loan_shark_hitmen == 4
goto_if_false @MOB_RAN_1998
$call_number = 66
$loan_shark_hitmen = 5

:MOB_RAN_1998
if 
  $loan_shark_hitmen == 3
goto_if_false @MOB_RAN_2030
$call_number = 65
$loan_shark_hitmen = 4

:MOB_RAN_2030
if 
  $loan_shark_hitmen == 2
goto_if_false @MOB_RAN_2062
$call_number = 64
$loan_shark_hitmen = 3

:MOB_RAN_2062
if 
  $loan_shark_hitmen == 1
goto_if_false @MOB_RAN_2094
$call_number = 63
$loan_shark_hitmen = 2

:MOB_RAN_2094
if 
  $loan_shark_hitmen == 0
goto_if_false @MOB_RAN_2126
$call_number = 62
$loan_shark_hitmen = 1

:MOB_RAN_2126
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_2165
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_RAN_2165
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_RAN_2197
$1377 = 1
$terminate_cat_calls = 1

:MOB_RAN_2197
gosub @MOB_GF_3168
goto @MOB_RAN_15

:MOB_RAN_2211
if 
  $1377 == 1
goto_if_false @MOB_RAN_2253
stream_script 76
if 
  has_streamed_script_loaded 76
goto_if_false @MOB_RAN_2253
start_new_streamed_script 76

:MOB_RAN_2253
goto @MOB_RAN_2267

:MOB_RAN_2260
$flag_cell_nation = 0

:MOB_RAN_2267
goto @MOB_RAN_15

:MOB_GF
script_name 'MOB_GF'
set_deatharrest_state 0
set_global_var_bit_const $iAgentFlags {bitIndex} 11
clear_global_var_bit_const $iAgentFlags {bitIndex} 10
2@ = generate_random_int_in_range 0 {max} 8

:MOB_GF_38
wait 150
gosub @ENTEXT_214
if 
  is_player_playing $player1
goto_if_false @MOB_GF_1073
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @MOB_GF_1050
if 
  is_int_var_greater_than_int_var $timer_mobile_diff > $call_delay
goto_if_false @MOB_GF_1043
if 
  0@ == 0
goto_if_false @MOB_GF_264
if 
  1@ == 1
goto_if_false @MOB_GF_186
$call_number = 70
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 77
goto_if_false @MOB_GF_179
$call_number = 77

:MOB_GF_179
goto @MOB_GF_194

:MOB_GF_186
$call_number = 130

:MOB_GF_194
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_248
set_global_var_bit_const $iAgentFlags {bitIndex} 10
set_global_var_bit_lvar $iAgentFlags {var_bitIndex} 0@
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_GF_248
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3168
terminate_this_script 

:MOB_GF_264
if 
  0@ == 1
goto_if_false @MOB_GF_417
if 
  1@ == 1
goto_if_false @MOB_GF_347
$call_number = 80
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 87
goto_if_false @MOB_GF_340
$call_number = 87

:MOB_GF_340
goto @MOB_GF_355

:MOB_GF_347
$call_number = 131

:MOB_GF_355
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_401
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_GF_401
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3168
terminate_this_script 

:MOB_GF_417
if 
  0@ == 2
goto_if_false @MOB_GF_570
if 
  1@ == 1
goto_if_false @MOB_GF_500
$call_number = 90
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 97
goto_if_false @MOB_GF_493
$call_number = 97

:MOB_GF_493
goto @MOB_GF_508

:MOB_GF_500
$call_number = 132

:MOB_GF_508
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_554
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_GF_554
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3168
terminate_this_script 

:MOB_GF_570
if 
  0@ == 3
goto_if_false @MOB_GF_730
if 
  1@ == 1
goto_if_false @MOB_GF_653
$call_number = 100
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 107
goto_if_false @MOB_GF_646
$call_number = 107

:MOB_GF_646
goto @MOB_GF_661

:MOB_GF_653
$call_number = 133

:MOB_GF_661
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_714
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3328
set_global_var_bit_const $iAgentFlags {bitIndex} 10

:MOB_GF_714
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3168
terminate_this_script 

:MOB_GF_730
if 
  0@ == 4
goto_if_false @MOB_GF_890
if 
  1@ == 1
goto_if_false @MOB_GF_813
$call_number = 110
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 117
goto_if_false @MOB_GF_806
$call_number = 117

:MOB_GF_806
goto @MOB_GF_821

:MOB_GF_813
$call_number = 134

:MOB_GF_821
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_874
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3328
set_global_var_bit_const $iAgentFlags {bitIndex} 10

:MOB_GF_874
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3168
terminate_this_script 

:MOB_GF_890
if 
  0@ == 5
goto_if_false @MOB_GF_1043
if 
  1@ == 1
goto_if_false @MOB_GF_973
$call_number = 120
add_int_lvar_to_int_var $call_number += 2@
if 
  $call_number > 127
goto_if_false @MOB_GF_966
$call_number = 127

:MOB_GF_966
goto @MOB_GF_981

:MOB_GF_973
$call_number = 135

:MOB_GF_981
gosub @MOB_GF_1087
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_1027
set_global_var_bit_const $iAgentFlags {bitIndex} 10
gosub @CELLFON_60
gosub @MOB_GF_3328

:MOB_GF_1027
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3168
terminate_this_script 

:MOB_GF_1043
goto @MOB_GF_1066

:MOB_GF_1050
clear_global_var_bit_const $iAgentFlags {bitIndex} 11
gosub @MOB_GF_3168
terminate_this_script 

:MOB_GF_1066
goto @MOB_GF_1080

:MOB_GF_1073
$flag_cell_nation = 0

:MOB_GF_1080
goto @MOB_GF_38

:MOB_GF_1087
$ring_a_ding_ding = 0
$onmission = 1
$flag_cell_nation = 1
$audio_slot_mobile = 1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000
$players_skipping_the_call = 0
switch_start $call_number {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @MOB_GF_1479 {caseNum1} 70 {caseLabel1} @MOB_GF_1263 {caseNum2} 80 {caseLabel2} @MOB_GF_1281 {caseNum3} 90 {caseLabel3} @MOB_GF_1299 {caseNum4} 100 {caseLabel4} @MOB_GF_1317 {caseNum5} 110 {caseLabel5} @MOB_GF_1335 {caseNum6} 120 {caseLabel6} @MOB_GF_1353 {caseNum7} 130 {caseLabel7} @MOB_GF_1371
switch_continued 131 {caseLabel1} @MOB_GF_1389 {caseNum2} 132 {caseLabel2} @MOB_GF_1407 {caseNum3} 133 {caseLabel3} @MOB_GF_1425 {caseNum4} 134 {caseLabel4} @MOB_GF_1443 {caseNum5} 135 {caseLabel5} @MOB_GF_1461 {caseNum6} -1 {caseLabel6} @MOB_GF_1497 {caseNum7} -1 {caseLabel7} @MOB_GF_1497 {caseNum8} -1 {caseLabel8} @MOB_GF_1497 {caseNum9} -1 {caseLabel9} @MOB_GF_1497

:MOB_GF_1263
print_help 'ANSWER0'
goto @MOB_GF_1497

:MOB_GF_1281
print_help 'ANSWER1'
goto @MOB_GF_1497

:MOB_GF_1299
print_help 'ANSWER2'
goto @MOB_GF_1497

:MOB_GF_1317
print_help 'ANSWER3'
goto @MOB_GF_1497

:MOB_GF_1335
print_help 'ANSWER4'
goto @MOB_GF_1497

:MOB_GF_1353
print_help 'ANSWER5'
goto @MOB_GF_1497

:MOB_GF_1371
print_help 'ANSWER0'
goto @MOB_GF_1497

:MOB_GF_1389
print_help 'ANSWER1'
goto @MOB_GF_1497

:MOB_GF_1407
print_help 'ANSWER2'
goto @MOB_GF_1497

:MOB_GF_1425
print_help 'ANSWER3'
goto @MOB_GF_1497

:MOB_GF_1443
print_help 'ANSWER4'
goto @MOB_GF_1497

:MOB_GF_1461
print_help 'ANSWER5'
goto @MOB_GF_1497

:MOB_GF_1479
print_help 'ANSWER'
goto @MOB_GF_1497

:MOB_GF_1497
if and
  7 > $ring_a_ding_ding
  2 > $flag_player_answered_phone
goto_if_false @MOB_GF_2068
wait 0
switch_start $call_number {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @MOB_GF_1876 {caseNum1} 70 {caseLabel1} @MOB_GF_1660 {caseNum2} 80 {caseLabel2} @MOB_GF_1678 {caseNum3} 90 {caseLabel3} @MOB_GF_1696 {caseNum4} 100 {caseLabel4} @MOB_GF_1714 {caseNum5} 110 {caseLabel5} @MOB_GF_1732 {caseNum6} 120 {caseLabel6} @MOB_GF_1750 {caseNum7} 130 {caseLabel7} @MOB_GF_1768
switch_continued 131 {caseLabel1} @MOB_GF_1786 {caseNum2} 132 {caseLabel2} @MOB_GF_1804 {caseNum3} 133 {caseLabel3} @MOB_GF_1822 {caseNum4} 134 {caseLabel4} @MOB_GF_1840 {caseNum5} 135 {caseLabel5} @MOB_GF_1858 {caseNum6} -1 {caseLabel6} @MOB_GF_1894 {caseNum7} -1 {caseLabel7} @MOB_GF_1894 {caseNum8} -1 {caseLabel8} @MOB_GF_1894 {caseNum9} -1 {caseLabel9} @MOB_GF_1894

:MOB_GF_1660
print_help_forever 'ANSWER0'
goto @MOB_GF_1894

:MOB_GF_1678
print_help_forever 'ANSWER1'
goto @MOB_GF_1894

:MOB_GF_1696
print_help_forever 'ANSWER2'
goto @MOB_GF_1894

:MOB_GF_1714
print_help_forever 'ANSWER3'
goto @MOB_GF_1894

:MOB_GF_1732
print_help_forever 'ANSWER4'
goto @MOB_GF_1894

:MOB_GF_1750
print_help_forever 'ANSWER5'
goto @MOB_GF_1894

:MOB_GF_1768
print_help_forever 'ANSWER0'
goto @MOB_GF_1894

:MOB_GF_1786
print_help_forever 'ANSWER1'
goto @MOB_GF_1894

:MOB_GF_1804
print_help_forever 'ANSWER2'
goto @MOB_GF_1894

:MOB_GF_1822
print_help_forever 'ANSWER3'
goto @MOB_GF_1894

:MOB_GF_1840
print_help_forever 'ANSWER4'
goto @MOB_GF_1894

:MOB_GF_1858
print_help_forever 'ANSWER5'
goto @MOB_GF_1894

:MOB_GF_1876
print_help_forever 'ANSWER'
goto @MOB_GF_1894

:MOB_GF_1894
$audio_slot_mobile = 3
gosub @MOB_GF_2311
$ring_a_ding_ding += 1
if and
  $flag_player_answered_phone == 1
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_1947
goto @MOB_GF_2075

:MOB_GF_1947
gosub @MOB_GF_2625
if and
  $flag_player_answered_phone == 1
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_1986
goto @MOB_GF_2075

:MOB_GF_1986
$mobile_pause = 0

:MOB_GF_1993
if 
  40 > $mobile_pause
goto_if_false @MOB_GF_2061
wait 0
gosub @MOB_GF_2902
if 
  $flag_player_answered_phone == 1
goto_if_false @MOB_GF_2047
goto @MOB_GF_2075

:MOB_GF_2047
$mobile_pause += 1
goto @MOB_GF_1993

:MOB_GF_2061
goto @MOB_GF_1497

:MOB_GF_2068
$timer_mobile_start = get_game_timer 
return 

:MOB_GF_2075
$players_skipping_the_call = 1
$timer_mobile_start = get_game_timer 

:MOB_GF_2087
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @MOB_GF_2140
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2133
$flag_player_answered_phone = 2
return 

:MOB_GF_2133
goto @MOB_GF_2087

:MOB_GF_2140
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
if 
  is_player_playing $player1
goto_if_false @MOB_GF_2309
set_everyone_ignore_player $player1 {state} True
shut_char_up $scplayer {state} True
request_model 330

:MOB_GF_2181
if 
  not has_model_loaded 330
goto_if_false @MOB_GF_2208
wait 0
goto @MOB_GF_2181

:MOB_GF_2208
gosub @MOB_GF_2902
if 
  $flag_player_answered_phone == 2
goto_if_false @MOB_GF_2240
mark_model_as_no_longer_needed 330
return 

:MOB_GF_2240
task_use_mobile_phone $scplayer {start} True
TIMERA = 0

:MOB_GF_2254
if 
  2000 > TIMERA
goto_if_false @MOB_GF_2309
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2302
$flag_player_answered_phone = 2
return 

:MOB_GF_2302
goto @MOB_GF_2254

:MOB_GF_2309
return 

:MOB_GF_2311
if 
  not has_mission_audio_loaded $audio_slot_mobile
goto_if_false @MOB_GF_2602
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2363
$flag_player_answered_phone = 2
return 
goto @MOB_GF_2595

:MOB_GF_2363
if or
  is_char_in_water $scplayer
  is_char_shooting $scplayer
  not is_char_on_foot $scplayer
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2421
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2421
if or
  is_gang_war_fighting_going_on 
  is_player_using_jetpack $player1
  is_minigame_in_progress 
goto_if_false @MOB_GF_2452
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2452
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_2524
if 
  not is_char_shooting $scplayer
goto_if_false @MOB_GF_2524
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  can_player_start_mission $player1
goto_if_false @MOB_GF_2524
$flag_player_answered_phone = 1
return 

:MOB_GF_2524
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_2568
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MOB_GF_2568
$players_skipping_the_call = 2
return 

:MOB_GF_2568
if 
  $onmission == 0
goto_if_false @MOB_GF_2595
$flag_player_answered_phone = 2
return 

:MOB_GF_2595
goto @MOB_GF_2311

:MOB_GF_2602
if 
  not is_char_in_water $scplayer
goto_if_false @MOB_GF_2623
play_mission_audio $audio_slot_mobile

:MOB_GF_2623
return 

:MOB_GF_2625
if 
  not has_mission_audio_finished $audio_slot_mobile
goto_if_false @MOB_GF_2900
wait 0
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2677
$flag_player_answered_phone = 2
return 
goto @MOB_GF_2893

:MOB_GF_2677
if or
  is_char_in_water $scplayer
  is_char_shooting $scplayer
  not is_char_on_foot $scplayer
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2735
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2735
if or
  is_gang_war_fighting_going_on 
  is_player_using_jetpack $player1
  is_minigame_in_progress 
goto_if_false @MOB_GF_2766
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2766
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_2822
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  can_player_start_mission $player1
goto_if_false @MOB_GF_2822
$flag_player_answered_phone = 1
return 

:MOB_GF_2822
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_2866
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MOB_GF_2866
$players_skipping_the_call = 2
return 

:MOB_GF_2866
if 
  $onmission == 0
goto_if_false @MOB_GF_2893
$flag_player_answered_phone = 2
return 

:MOB_GF_2893
goto @MOB_GF_2625

:MOB_GF_2900
return 

:MOB_GF_2902
if 
  not is_player_playing $player1
goto_if_false @MOB_GF_2934
$flag_player_answered_phone = 2
return 
goto @MOB_GF_3166

:MOB_GF_2934
if or
  is_char_in_water $scplayer
  is_char_shooting $scplayer
  not is_char_on_foot $scplayer
  $onmission == 0
  $main_visible_area <> 0
  $player_fall_state <> 0
goto_if_false @MOB_GF_2992
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_2992
if or
  is_gang_war_fighting_going_on 
  is_player_using_jetpack $player1
  is_minigame_in_progress 
goto_if_false @MOB_GF_3023
$flag_player_answered_phone = 2
clear_help 
return 

:MOB_GF_3023
if and
  $flag_player_answered_phone == 0
  $ring_a_ding_ding > 0
goto_if_false @MOB_GF_3095
if 
  not is_char_shooting $scplayer
goto_if_false @MOB_GF_3095
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  can_player_start_mission $player1
goto_if_false @MOB_GF_3095
$flag_player_answered_phone = 1
return 

:MOB_GF_3095
if 
  $players_skipping_the_call == 1
goto_if_false @MOB_GF_3139
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MOB_GF_3139
$players_skipping_the_call = 2
return 

:MOB_GF_3139
if 
  $onmission == 0
goto_if_false @MOB_GF_3166
$flag_player_answered_phone = 2
return 

:MOB_GF_3166
return 

:MOB_GF_3168
$flag_cell_nation = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
$flag_player_answered_phone = 0
$flag_mobile_timer = 0
if 
  is_player_playing $player1
goto_if_false @MOB_GF_3245
task_use_mobile_phone $scplayer {start} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
shut_char_up $scplayer {state} False

:MOB_GF_3245
$timer_mobile_start = get_game_timer 
$timer_mobile_diff = 0
$timer_mobile_now = get_game_timer 
set_var_int_to_var_int $timer_mobile_diff = $timer_mobile_now
sub_int_var_from_int_var $timer_mobile_diff -= $timer_mobile_start
clear_prints 
if 
  $flag_new_cont == 0
goto_if_false @MOB_GF_3307
clear_help 
goto @MOB_GF_3314

:MOB_GF_3307
$flag_new_cont = 0

:MOB_GF_3314
mark_model_as_no_longer_needed 330
$onmission = 0
return 

:MOB_GF_3328
$cell_index_start = 0

:MOB_GF_3335
load_mission_audio MissionAudioSlot.Slot1 {audioId} $mobile_audio_labels($cell_index_start,20i)
$cell_index_start += 1
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3383
load_mission_audio MissionAudioSlot.Slot2 {audioId} $mobile_audio_labels($cell_index_start,20i)

:MOB_GF_3383
$cell_index_start -= 1
$audio_slot_mobile = 1
gosub @MOB_GF_2311
print_now $mobile_print_labels($cell_index_start,20s) {time} 10000 {flag} 1
gosub @MOB_GF_2625
if 
  $players_skipping_the_call == 2
goto_if_false @MOB_GF_3445
return 

:MOB_GF_3445
$cell_index_start += 1
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3513
$audio_slot_mobile = 2
gosub @MOB_GF_2311
print_now $mobile_print_labels($cell_index_start,20s) {time} 10000 {flag} 1
gosub @MOB_GF_2625
goto @MOB_GF_3520

:MOB_GF_3513
$cell_index_start -= 1

:MOB_GF_3520
if 
  $players_skipping_the_call == 2
goto_if_false @MOB_GF_3540
return 

:MOB_GF_3540
$cell_index_start += 1
if 
  $skip_the_mobile_call == 0
goto_if_false @MOB_GF_3583
print_help 'CELSKIP'
$skip_the_mobile_call = 1

:MOB_GF_3583
if 
  is_int_var_greater_or_equal_to_int_var $cell_index_end >= $cell_index_start
goto_if_false @MOB_GF_3609
goto @MOB_GF_3335

:MOB_GF_3609
clear_prints 
return 

//-------------Mission 0---------------
// Originally: Initial 1

:INITIAL
script_name 'INITIAL'
set_la_riots False
$bcesar3_passed_mission = 0
$japcar_mod_garage_open = 0
$para_float_Vy = 5.0
$para_float_Vz = -5.0
$para_flare_Vy = 8.5
$para_flare_Vz = -1.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 32.0
$para_default_Vy = 0.0
$para_force_chute_open = 0
$player_fall_state = 0
$player_has_parachute = 0
$para_pickup_flag = 1
$trigger_final_synd_mission = 0
$trigger_scrash2_mission = 0
$trigger_ice_cold_mission = 0
$trigger_final_LA2_missions = 0
$trigger_final_LA1_missions = 0
$funeral_mission_finished = 0
$trucking_help_flag = 0
$oddjob_help_flag = 0
$girlfried_help_flag = 0
$trigger_phonecall_failed = 0
$flag_bcesar_mission_counter = 0
$played_scipted_airscript_cut = 0
$returned_oysters_flag = 0
$flag_returned_shoehorses = 0
$flag_returned_snapshots = 0
$flag_returned_tags = 0
$game_starts_from_scratch = 0
$print_first_help = 0
$voice_over_at_hub = 0
$bike_help = 0
$car_help_played = 0
$drive_by_help = 0
$can_skip_smoking_cutscene = 0
$launch_shit_for_debug_build = 0
$cat_getaway_dialogue = 0
$gate_stay_open = 0
$tlf_underway = 0
$total_roulette_tables = 0
$already_bought_house[0] = 0
$already_bought_house[1] = 0
$already_bought_house[2] = 0
$already_bought_house[3] = 0
$already_bought_house[4] = 0
$already_bought_house[5] = 0
$already_bought_house[6] = 0
$already_bought_house[7] = 0
$already_bought_house[8] = 0
$already_bought_house[9] = 0
$already_bought_house[10] = 0
$already_bought_house[11] = 0
$already_bought_house[12] = 0
$already_bought_house[13] = 0
$already_bought_house[14] = 0
$already_bought_house[15] = 0
$already_bought_house[16] = 0
$already_bought_house[17] = 0
$already_bought_house[18] = 0
$already_bought_house[19] = 0
$already_bought_house[20] = 0
$already_bought_house[21] = 0
$already_bought_house[22] = 0
$already_bought_house[23] = 0
$already_bought_house[24] = 0
$already_bought_house[25] = 0
$already_bought_house[26] = 0
$already_bought_house[27] = 0
$already_bought_house[28] = 0
$already_bought_house[29] = 0
$already_bought_house[30] = 0
$already_bought_house[31] = 0
$prorerty_switch[0] = 0
$prorerty_switch[1] = 1
$prorerty_switch[2] = 2
$prorerty_switch[3] = 3
$prorerty_switch[4] = 4
$prorerty_switch[5] = 5
$prorerty_switch[6] = 6
$prorerty_switch[7] = 7
$prorerty_switch[8] = 8
$prorerty_switch[9] = 9
$prorerty_switch[10] = 10
$prorerty_switch[11] = 11
$prorerty_switch[12] = 12
$prorerty_switch[13] = 13
$prorerty_switch[14] = 14
$prorerty_switch[15] = 15
$prorerty_switch[16] = 16
$prorerty_switch[17] = 17
$prorerty_switch[18] = 18
$prorerty_switch[19] = 19
$prorerty_switch[20] = 20
$prorerty_switch[21] = 21
$prorerty_switch[22] = 22
$prorerty_switch[23] = 23
$prorerty_switch[24] = 24
$prorerty_switch[25] = 25
$prorerty_switch[26] = 26
$prorerty_switch[27] = 27
$prorerty_switch[28] = 28
$prorerty_switch[29] = 29
$prorerty_switch[30] = 30
$prorerty_switch[31] = 31
$zeros_property_bought = 0
$propertyX[0] = -1969.27
$propertyY[0] = 282.47
$propertyZ[0] = 34.6
$propertyX[1] = -2243.6201
$propertyY[1] = 133.2
$propertyZ[1] = 34.8
$propertyX[2] = 426.4972
$propertyY[2] = 2530.689
$propertyZ[2] = 16.1
$save_housepickup[0] = create_locked_property_pickup $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {message} 'PROP_4'
$showroom_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[0] {y} $propertyY[0] {z} $propertyZ[0] {sprite} RadarSprite.PropertyR
change_blip_display $showroom_contact_blip {display} BlipDisplay.BlipOnly
$save_housepickup[1] = create_locked_property_pickup $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {message} 'PROP_4'
$zero_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[1] {y} $propertyY[1] {z} $propertyZ[1] {sprite} RadarSprite.PropertyR
change_blip_display $zero_contact_blip {display} BlipDisplay.BlipOnly
$save_housepickup[2] = create_locked_property_pickup $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {message} 'PROP_4'
$airstrip_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {sprite} RadarSprite.PropertyR
change_blip_display $airstrip_contact_blip {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[2] {y} $propertyY[2] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$propertyX[3] = 316.0696
$propertyY[3] = -1772.569
$propertyZ[3] = 4.1893
set_closest_entry_exit_flag $propertyX[3] {y} $propertyY[3] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1656 = 30000
$save_housepickup[3] = create_forsale_property_pickup $propertyX[3] {y} $propertyY[3] {z} $propertyZ[3] {price} $1656 {message} 'PROP_3'
$1624 = add_short_range_sprite_blip_for_contact_point $propertyX[3] {y} $propertyY[3] {z} $propertyZ[3] {sprite} RadarSprite.PropertyG
change_blip_display $1624 {display} BlipDisplay.BlipOnly
deactivate_garage 'BEACSV'
$propertyX[4] = 2441.002
$propertyY[4] = 695.1089
$propertyZ[4] = 10.6646
set_closest_entry_exit_flag $propertyX[4] {y} $propertyY[4] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1657 = 20000
$save_housepickup[4] = create_locked_property_pickup $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {message} 'PROP_4'
$1625 = add_short_range_sprite_blip_for_contact_point $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {sprite} RadarSprite.PropertyR
change_blip_display $1625 {display} BlipDisplay.BlipOnly
deactivate_garage 'VESVGRG'
$propertyX[5] = -366.1849
$propertyY[5] = 1166.031
$propertyZ[5] = 19.2422
set_closest_entry_exit_flag $propertyX[5] {y} $propertyY[5] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1658 = 30000
$save_housepickup[5] = create_locked_property_pickup $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {message} 'PROP_4'
$1626 = add_short_range_sprite_blip_for_contact_point $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {sprite} RadarSprite.PropertyR
change_blip_display $1626 {display} BlipDisplay.BlipOnly
deactivate_garage 'CN2GAR1'
$propertyX[6] = 1283.844
$propertyY[6] = 2528.7029
$propertyZ[6] = 10.3203
set_closest_entry_exit_flag $propertyX[6] {y} $propertyY[6] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1659 = 50000
$save_housepickup[6] = create_locked_property_pickup $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {message} 'PROP_4'
$1627 = add_short_range_sprite_blip_for_contact_point $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {sprite} RadarSprite.PropertyR
change_blip_display $1627 {display} BlipDisplay.BlipOnly
deactivate_garage 'BLOB69'
$propertyX[7] = 922.3647
$propertyY[7] = 2011.8979
$propertyZ[7] = 10.766
set_closest_entry_exit_flag $propertyX[7] {y} $propertyY[7] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1660 = 30000
$save_housepickup[7] = create_locked_property_pickup $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {message} 'PROP_4'
$1628 = add_short_range_sprite_blip_for_contact_point $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {sprite} RadarSprite.PropertyR
change_blip_display $1628 {display} BlipDisplay.BlipOnly
deactivate_garage 'BLOB7'
$propertyX[8] = 2236.928
$propertyY[8] = 162.8057
$propertyZ[8] = 26.8462
set_closest_entry_exit_flag $propertyX[8] {y} $propertyY[8] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1661 = 35000
$save_housepickup[8] = create_locked_property_pickup $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {message} 'PROP_4'
$1629 = add_short_range_sprite_blip_for_contact_point $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {sprite} RadarSprite.PropertyR
change_blip_display $1629 {display} BlipDisplay.BlipOnly
deactivate_garage 'BURBDOO'
$propertyX[9] = 1402.317
$propertyY[9] = 1901.978
$propertyZ[9] = 10.8449
set_closest_entry_exit_flag $propertyX[9] {y} $propertyY[9] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1662 = 30000
$save_housepickup[9] = create_locked_property_pickup $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {message} 'PROP_4'
$1630 = add_short_range_sprite_blip_for_contact_point $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {sprite} RadarSprite.PropertyR
change_blip_display $1630 {display} BlipDisplay.BlipOnly
deactivate_garage 'BLOB6'
$propertyX[10] = 1687.98
$propertyY[10] = -2100.6431
$propertyZ[10] = 13.3343
$1663 = 10000
set_closest_entry_exit_flag $propertyX[10] {y} $propertyY[10] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[10] = create_forsale_property_pickup $propertyX[10] {y} $propertyY[10] {z} $propertyZ[10] {price} $1663 {message} 'PROP_3'
$1631 = add_short_range_sprite_blip_for_contact_point $propertyX[10] {y} $propertyY[10] {z} $propertyZ[10] {sprite} RadarSprite.PropertyG
change_blip_display $1631 {display} BlipDisplay.BlipOnly
deactivate_garage 'CARLAS1'
$propertyX[11] = -2106.6389
$propertyY[11] = 900.5537
$propertyZ[11] = 76.2032
set_closest_entry_exit_flag $propertyX[11] {y} $propertyY[11] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1664 = 100000
$save_housepickup[11] = create_locked_property_pickup $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {message} 'PROP_4'
$1632 = add_short_range_sprite_blip_for_contact_point $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {sprite} RadarSprite.PropertyR
change_blip_display $1632 {display} BlipDisplay.BlipOnly
deactivate_garage 'CESAFE1'
$propertyX[12] = 1331.186
$propertyY[12] = -630.4962
$propertyZ[12] = 108.6349
set_closest_entry_exit_flag $propertyX[12] {y} $propertyY[12] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1665 = 120000
$save_housepickup[12] = create_forsale_property_pickup $propertyX[12] {y} $propertyY[12] {z} $propertyZ[12] {price} $1665 {message} 'PROP_3'
$1633 = add_short_range_sprite_blip_for_contact_point $propertyX[12] {y} $propertyY[12] {z} $propertyZ[12] {sprite} RadarSprite.PropertyG
change_blip_display $1633 {display} BlipDisplay.BlipOnly
deactivate_garage 'SAV1SFE'
$propertyX[13] = -2695.7451
$propertyY[13] = 818.4718
$propertyZ[13] = 49.4844
set_closest_entry_exit_flag $propertyX[13] {y} $propertyY[13] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1666 = 20000
$save_housepickup[13] = create_locked_property_pickup $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {message} 'PROP_4'
$1634 = add_short_range_sprite_blip_for_contact_point $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {sprite} RadarSprite.PropertyR
change_blip_display $1634 {display} BlipDisplay.BlipOnly
deactivate_garage 'SAV1SFW'
$propertyX[14] = -2456.926
$propertyY[14] = -131.3292
$propertyZ[14] = 25.5376
set_closest_entry_exit_flag $propertyX[14] {y} $propertyY[14] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$1667 = 40000
$save_housepickup[14] = create_locked_property_pickup $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {message} 'PROP_4'
$1635 = add_short_range_sprite_blip_for_contact_point $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {sprite} RadarSprite.PropertyR
change_blip_display $1635 {display} BlipDisplay.BlipOnly
deactivate_garage 'SVGSFS1'
$propertyX[15] = 892.6662
$propertyY[15] = -1639.714
$propertyZ[15] = 14.4567
$1668 = 10000
set_closest_entry_exit_flag $propertyX[15] {y} $propertyY[15] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[15] = create_forsale_property_pickup $propertyX[15] {y} $propertyY[15] {z} $propertyZ[15] {price} $1668 {message} 'PROP_3'
$1636 = add_short_range_sprite_blip_for_contact_point $propertyX[15] {y} $propertyY[15] {z} $propertyZ[15] {sprite} RadarSprite.PropertyG
change_blip_display $1636 {display} BlipDisplay.BlipOnly
$propertyX[16] = 1969.932
$propertyY[16] = 1623.243
$propertyZ[16] = 12.3619
$1669 = 6000
set_closest_entry_exit_flag $propertyX[16] {y} $propertyY[16] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[16] = create_locked_property_pickup $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {message} 'PROP_4'
$1637 = add_short_range_sprite_blip_for_contact_point $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {sprite} RadarSprite.PropertyR
change_blip_display $1637 {display} BlipDisplay.BlipOnly
$propertyX[17] = 2234.9089
$propertyY[17] = 1285.698
$propertyZ[17] = 10.3203
$1670 = 6000
set_closest_entry_exit_flag $propertyX[17] {y} $propertyY[17] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[17] = create_locked_property_pickup $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {message} 'PROP_4'
$1638 = add_short_range_sprite_blip_for_contact_point $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {sprite} RadarSprite.PropertyR
change_blip_display $1638 {display} BlipDisplay.BlipOnly
$propertyX[18] = -2213.864
$propertyY[18] = 723.5587
$propertyZ[18] = 48.914
$1671 = 20000
set_closest_entry_exit_flag $propertyX[18] {y} $propertyY[18] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[18] = create_locked_property_pickup $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {message} 'PROP_4'
$1639 = add_short_range_sprite_blip_for_contact_point $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {sprite} RadarSprite.PropertyR
change_blip_display $1639 {display} BlipDisplay.BlipOnly
$propertyX[19] = -1439.014
$propertyY[19] = -1540.59
$propertyZ[19] = 101.2579
$1672 = 100000
set_closest_entry_exit_flag $propertyX[19] {y} $propertyY[19] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[19] = create_locked_property_pickup $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {message} 'PROP_4'
$1640 = add_short_range_sprite_blip_for_contact_point $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {sprite} RadarSprite.PropertyR
change_blip_display $1640 {display} BlipDisplay.BlipOnly
$propertyX[20] = -2027.83
$propertyY[20] = -44.0454
$propertyZ[20] = 38.7692
$1673 = 20000
set_closest_entry_exit_flag $propertyX[20] {y} $propertyY[20] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[20] = create_locked_property_pickup $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {message} 'PROP_4'
$1641 = add_short_range_sprite_blip_for_contact_point $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {sprite} RadarSprite.PropertyR
change_blip_display $1641 {display} BlipDisplay.BlipOnly
$propertyX[21] = -2419.677
$propertyY[21] = 334.1621
$propertyZ[21] = 34.6796
$1674 = 50000
set_closest_entry_exit_flag $propertyX[21] {y} $propertyY[21] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[21] = create_locked_property_pickup $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {message} 'PROP_4'
$1642 = add_short_range_sprite_blip_for_contact_point $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {sprite} RadarSprite.PropertyR
change_blip_display $1642 {display} BlipDisplay.BlipOnly
$propertyX[22] = -2079.0969
$propertyY[22] = -2309.8989
$propertyZ[22] = 30.1172
$1675 = 20000
set_closest_entry_exit_flag $propertyX[22] {y} $propertyY[22] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[22] = create_locked_property_pickup $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {message} 'PROP_4'
$1643 = add_short_range_sprite_blip_for_contact_point $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {sprite} RadarSprite.PropertyR
change_blip_display $1643 {display} BlipDisplay.BlipOnly
$propertyX[23] = -1534.17
$propertyY[23] = 2650.3
$propertyZ[23] = 55.3437
$1676 = 20000
set_closest_entry_exit_flag $propertyX[23] {y} $propertyY[23] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[23] = create_locked_property_pickup $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {message} 'PROP_4'
$1644 = add_short_range_sprite_blip_for_contact_point $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {sprite} RadarSprite.PropertyR
change_blip_display $1644 {display} BlipDisplay.BlipOnly
$propertyX[24] = -1045.775
$propertyY[24] = 1552.976
$propertyZ[24] = 32.798
$1677 = 20000
set_closest_entry_exit_flag $propertyX[24] {y} $propertyY[24] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[24] = create_locked_property_pickup $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {message} 'PROP_4'
$1645 = add_short_range_sprite_blip_for_contact_point $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {sprite} RadarSprite.PropertyR
change_blip_display $1645 {display} BlipDisplay.BlipOnly
$propertyX[25] = 793.5623
$propertyY[25] = -514.4116
$propertyZ[25] = 16.3973
$1678 = 40000
set_closest_entry_exit_flag $propertyX[25] {y} $propertyY[25] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[25] = create_locked_property_pickup $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {message} 'PROP_4'
$1646 = add_short_range_sprite_blip_for_contact_point $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {sprite} RadarSprite.PropertyR
change_blip_display $1646 {display} BlipDisplay.BlipOnly
deactivate_garage 'BURBDO2'
$propertyX[26] = 2103.3459
$propertyY[26] = -1288.339
$propertyZ[26] = 23.8168
$1679 = 10000
set_closest_entry_exit_flag $propertyX[26] {y} $propertyY[26] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[26] = create_forsale_property_pickup $propertyX[26] {y} $propertyY[26] {z} $propertyZ[26] {price} $1679 {message} 'PROP_3'
$1647 = add_short_range_sprite_blip_for_contact_point $propertyX[26] {y} $propertyY[26] {z} $propertyZ[26] {sprite} RadarSprite.PropertyG
change_blip_display $1647 {display} BlipDisplay.BlipOnly
$propertyX[27] = 2370.4771
$propertyY[27] = 2165.4741
$propertyZ[27] = 10.3269
$1680 = 6000
set_closest_entry_exit_flag $propertyX[27] {y} $propertyY[27] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[27] = create_locked_property_pickup $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {message} 'PROP_4'
$1648 = add_short_range_sprite_blip_for_contact_point $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {sprite} RadarSprite.PropertyR
change_blip_display $1648 {display} BlipDisplay.BlipOnly
$propertyX[28] = 2220.626
$propertyY[28] = 1837.348
$propertyZ[28] = 10.3203
$1681 = 6000
set_closest_entry_exit_flag $propertyX[28] {y} $propertyY[28] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[28] = create_locked_property_pickup $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {message} 'PROP_4'
$1649 = add_short_range_sprite_blip_for_contact_point $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {sprite} RadarSprite.PropertyR
change_blip_display $1649 {display} BlipDisplay.BlipOnly
$propertyX[29] = 2819.125
$propertyY[29] = 2149.3721
$propertyZ[29] = 10.3203
$1682 = 10000
set_closest_entry_exit_flag $propertyX[29] {y} $propertyY[29] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[29] = create_locked_property_pickup $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {message} 'PROP_4'
$1650 = add_short_range_sprite_blip_for_contact_point $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {sprite} RadarSprite.PropertyR
change_blip_display $1650 {display} BlipDisplay.BlipOnly
$propertyX[30] = 2483.0239
$propertyY[30] = -2001.074
$propertyZ[30] = 13.054
$1683 = 10000
set_closest_entry_exit_flag $propertyX[30] {y} $propertyY[30] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[30] = create_forsale_property_pickup $propertyX[30] {y} $propertyY[30] {z} $propertyZ[30] {price} $1683 {message} 'PROP_3'
$1651 = add_short_range_sprite_blip_for_contact_point $propertyX[30] {y} $propertyY[30] {z} $propertyZ[30] {sprite} RadarSprite.PropertyG
change_blip_display $1651 {display} BlipDisplay.BlipOnly
$propertyX[31] = 206.8
$propertyY[31] = -112.1
$propertyZ[31] = 4.3965
$1684 = 10000
set_closest_entry_exit_flag $propertyX[31] {y} $propertyY[31] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} False
$save_housepickup[31] = create_locked_property_pickup $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {message} 'PROP_4'
$1652 = add_short_range_sprite_blip_for_contact_point $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {sprite} RadarSprite.PropertyR
change_blip_display $1652 {display} BlipDisplay.BlipOnly
$save_pickupX[0] = 2495.53
$save_pickupY[0] = -1711.88
$save_pickupZ[0] = 1014.24
$save_playerX[0] = 2495.8999
$save_playerY[0] = -1707.45
$save_playerZ[0] = 1013.26
$save_playerH[0] = 0.0
$remove_grove_pickup = 0
$save_pickupX[1] = 1263.05
$save_pickupY[1] = -773.67
$save_pickupZ[1] = 1091.39
$save_playerX[1] = 1263.76
$save_playerY[1] = -776.59
$save_playerZ[1] = 1090.89
$save_playerH[1] = 183.23
$848 = 0
$save_pickupX[2] = 416.9548
$save_pickupY[2] = 2538.813
$save_pickupZ[2] = 9.5077
$save_playerX[2] = 418.0759
$save_playerY[2] = 2536.771
$save_playerZ[2] = 9.0077
$save_playerH[2] = 269.2893
$849 = 0
$save_pickupX[3] = 2367.1919
$save_pickupY[3] = -1121.5179
$save_pickupZ[3] = 1050.382
$save_playerX[3] = 2367.072
$save_playerY[3] = -1123.715
$save_playerZ[3] = 1049.875
$save_playerH[3] = 183.259
$850 = 0
$save_pickupX[4] = 2320.103
$save_pickupY[4] = -1009.116
$save_pickupZ[4] = 1049.718
$save_playerX[4] = 2320.103
$save_playerY[4] = -1013.375
$save_playerZ[4] = 1049.2111
$save_playerH[4] = 181.7957
$851 = 0
$save_pickupX[5] = 2342.873
$save_pickupY[5] = -1063.939
$save_pickupZ[5] = 1048.5229
$save_playerX[5] = 2339.2539
$save_playerY[5] = -1063.86
$save_playerZ[5] = 1048.0229
$save_playerH[5] = 90.7733
$852 = 0
$save_pickupX[6] = 2186.0139
$save_pickupY[6] = -1203.834
$save_pickupZ[6] = 1048.5229
$save_playerX[6] = 2189.8181
$save_playerY[6] = -1203.83
$save_playerZ[6] = 1048.031
$save_playerH[6] = 268.6874
$853 = 0
$save_pickupX[7] = 2313.3689
$save_pickupY[7] = -1208.744
$save_pickupZ[7] = 1048.5229
$save_playerX[7] = 2310.853
$save_playerY[7] = -1210.975
$save_playerZ[7] = 1048.0229
$save_playerH[7] = 130.1776
$854 = 0
$save_pickupX[8] = 2249.397
$save_pickupY[8] = -1209.449
$save_pickupZ[8] = 1048.5229
$save_playerX[8] = 2252.7
$save_playerY[8] = -1209.3879
$save_playerZ[8] = 1048.0229
$save_playerH[8] = 270.3929
$855 = 0
$save_pickupX[9] = 2244.533
$save_pickupY[9] = -1077.663
$save_pickupZ[9] = 1048.5229
$save_playerX[9] = 2241.0691
$save_playerY[9] = -1077.736
$save_playerZ[9] = 1048.031
$save_playerH[9] = 88.0268
$856 = 0
$save_pickupX[10] = 2205.3821
$save_pickupY[10] = -1074.59
$save_pickupZ[10] = 1049.9771
$save_playerX[10] = 2207.8521
$save_playerY[10] = -1075.324
$save_playerZ[10] = 1049.4771
$save_playerH[10] = 261.7253
$857 = 0
$save_pickupX[11] = 2233.0239
$save_pickupY[11] = -1105.717
$save_pickupZ[11] = 1050.39
$save_playerX[11] = 2233.231
$save_playerY[11] = -1107.8521
$save_playerZ[11] = 1049.89
$save_playerH[11] = 182.2496
$858 = 0
$save_pickupX[12] = 2278.1389
$save_pickupY[12] = -1139.583
$save_pickupZ[12] = 1050.3979
$save_playerX[12] = 2281.5239
$save_playerY[12] = -1139.37
$save_playerZ[12] = 1049.8979
$save_playerH[12] = 273.5033
$859 = 0
$save_pickupX[13] = -2037.89
$save_pickupY[13] = -2526.96
$save_pickupZ[13] = 30.13
$save_playerX[13] = -2039.78
$save_playerY[13] = -2529.1001
$save_playerZ[13] = 29.63
$save_playerH[13] = 21.23
$860 = 0
$save_pickupX[14] = 877.81
$save_pickupY[14] = -26.91
$save_pickupZ[14] = 62.69
$save_playerX[14] = 877.04
$save_playerY[14] = -30.16
$save_playerZ[14] = 62.19
$save_playerH[14] = 66.85
$861 = 0
$save_pickupX[15] = -2026.481
$save_pickupY[15] = 156.8028
$save_pickupZ[15] = 28.5391
$save_playerX[15] = -2021.036
$save_playerY[15] = 156.0674
$save_playerZ[15] = 27.6521
$save_playerH[15] = 272.5815
$862 = 0
$save_pickupX[16] = -693.3776
$save_pickupY[16] = 957.824
$save_pickupZ[16] = 11.7829
$save_playerX[16] = -700.3663
$save_playerY[16] = 966.0852
$save_playerZ[16] = 11.3575
$save_playerH[16] = 90.0
$863 = 0
$save_pickupX[17] = 2024.564
$save_pickupY[17] = 996.4728
$save_pickupZ[17] = 10.3203
$save_playerX[17] = 2027.043
$save_playerY[17] = 996.0585
$save_playerZ[17] = 9.9203
$save_playerH[17] = 275.516
$864 = 0
$grove_save_pickup[0] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[0] {y} $save_pickupY[0] {z} $save_pickupZ[0]
$grove_save_pickup[1] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[1] {y} $save_pickupY[1] {z} $save_pickupZ[1]
$grove_save_pickup[2] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[2] {y} $save_pickupY[2] {z} $save_pickupZ[2]
$grove_save_pickup[3] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[3] {y} $save_pickupY[3] {z} $save_pickupZ[3]
$grove_save_pickup[4] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[4] {y} $save_pickupY[4] {z} $save_pickupZ[4]
$grove_save_pickup[5] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[5] {y} $save_pickupY[5] {z} $save_pickupZ[5]
$grove_save_pickup[6] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[6] {y} $save_pickupY[6] {z} $save_pickupZ[6]
$grove_save_pickup[7] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[7] {y} $save_pickupY[7] {z} $save_pickupZ[7]
$grove_save_pickup[8] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[8] {y} $save_pickupY[8] {z} $save_pickupZ[8]
$grove_save_pickup[9] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[9] {y} $save_pickupY[9] {z} $save_pickupZ[9]
$grove_save_pickup[10] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[10] {y} $save_pickupY[10] {z} $save_pickupZ[10]
$grove_save_pickup[11] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[11] {y} $save_pickupY[11] {z} $save_pickupZ[11]
$grove_save_pickup[12] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[12] {y} $save_pickupY[12] {z} $save_pickupZ[12]
$save_index = 0
$kickX = 1099.551
$kickY = 1601.4969
$kickZ = 11.5546
$bloodX = -2120.042
$bloodY = -444.2838
$bloodZ = 34.5312
$hotringX = 2695.624
$hotringY = -1704.688
$hotringZ = 10.8437
$stadium_blip1 = add_short_range_sprite_blip_for_contact_point $kickX {y} $kickY {z} $kickZ {sprite} RadarSprite.Race
$stadium_blip2 = add_short_range_sprite_blip_for_contact_point $bloodX {y} $bloodY {z} $bloodZ {sprite} RadarSprite.Race
$stadium_blip3 = add_short_range_sprite_blip_for_contact_point $hotringX {y} $hotringY {z} $hotringZ {sprite} RadarSprite.Race
$lowrideX = 2644.4409
$lowrideY = -2012.558
$lowrideZ = 12.5469
if 
  6 > $fire_temp_counter
goto_if_false @INITIAL_6005
$fire_la_levels_completed($fire_temp_counter,6i) = 0
$fire_sf_levels_completed($fire_temp_counter,6i) = 0
$fire_vg_levels_completed($fire_temp_counter,6i) = 0

:INITIAL_6005
$fire_total_la_completed = 0
$fire_total_sf_completed = 0
$fire_total_vg_completed = 0
$fire_total_levels_completed = 0
$fire_people_created = 0
$burglary_total_made = 0
$burglary_total_items = 0
$player_in_otb_flag = 0
$pros_active = 0
$flag_end_guy_audio_crash4 = 0
$triathalon_selection = 1
$flag_triathalon_passed_1stime = 0
$flag_cycling_skill_help = 0
$flag_mtbike_passed_1stime = 0
$flag_dozer_passed_1stime = 0
$flag_dumper_passed_1stime = 0
$current_highest_score_kickstart = 25
$flag_is_farlie3_running = 0
$mtbikerace_selection = 1
$failed_cesar_race = 0
$flag_stage_of_bcesar_race = 0
$flag_shooting_range_mission = 0
$Srange_X[0] = 292.33
$Srange_Y[0] = -35.39
$Srange_Z[0] = 1000.5
$Srange_X[1] = 289.4804
$Srange_Y[1] = -79.6619
$Srange_Z[1] = 1001.727
$Srange_X[2] = 309.9744
$Srange_Y[2] = -135.3927
$Srange_Z[2] = 1002.826
$Srange_X[3] = 306.8972
$Srange_Y[3] = -164.9947
$Srange_Z[3] = 1000.259
$val_Area = 0
$force_valet_cleanup = 0
$valet_mission_completed = 0
$bball_unlocked = 0
$zero_revenue = 5000
$import_export_is_active = 0
$player_is_in_crane = 0
$reset_crane_camera = 0
$disable_crane = 1
$disable_crane_exit = 0
$finish_crane_loading_script = 0
$remove_player_from_crane = 0
$disable_crane_slide = 0
$disable_crane_rotate = 0
$disable_manual_control = 0
$magno_camera_type = 0
$sw6_mission_attempts = 0
$g_Quarry_CashPickupValueKM = 2000
$g_Truck_CashPickupValueKM = 2000
$showroom_revenue = 8000
$strap4_mission_passed_once_flag = 0
$flag_had_taxi_jump_help = 0
$flag_catcutscene_counter = 0
$flag_otb_robbing_peds_panic = 0
$nascar_best_lap_time = 999999
$nascar_best_time = 999999
$best_nascar_result = 999999
$mission_trigger_wait_time = 250
$one_sixteenth = 0.0625
set_var_float_to_var_float $one_thirtysecond = $one_sixteenth
$one_thirtysecond /= 2.0
set_var_float_to_var_float $one_sixtyfourth = $one_thirtysecond
$one_sixtyfourth /= 2.0
$recording = 0
$stop_gargae_for_neil = 1
$bmx_1_x = -425.0
$bmx_1_y = 1410.0
$bmx_1_z = 10.0
$race1_best_position_airrace = 99999999
$race1_best_time_airrace = 99999999
$race2_best_position_airrace = 99999999
$race2_best_time_airrace = 99999999
$race3_best_position_airrace = 99999999
$race3_best_time_airrace = 99999999
$race4_best_position_airrace = 99999999
$race4_best_time_airrace = 99999999
$race5_best_position_airrace = 99999999
$race5_best_time_airrace = 99999999
$race6_best_position_airrace = 99999999
$race6_best_time_airrace = 99999999
$done_race1_progress_airrace = 0
$done_race2_progress_airrace = 0
$done_race3_progress_airrace = 0
$done_race4_progress_airrace = 0
$done_race5_progress_airrace = 0
$done_race6_progress_airrace = 0
$pilot_test_passed = 0
$driving_test_passed = 0
$f1_the360_best_score = 0
$f1_the180_best_score = 0
$f1_the90_best_score = 0
$f1_spinrightgo_best_score = 0
$f1_spinleftgo_best_score = 0
$f1_burnlapright_best_score = 0
$f1_burnlapleft_best_score = 0
$f1_popcontrol_best_score = 0
$f1_cityslicking_best_score = 0
$f1_whiprightterminate_best_score = 0
$f1_whipleftterminate_best_score = 0
$f1_alleyoop_best_score = 0
$f1_wheelieweave_best_score = 0
$f1_pittechnique_best_score = 0
$f1_conecoilright_best_score = 0
$f1_conecoilleft_best_score = 0
$f1_which_missions_are_open_flag = 0
$blood_attempt = 1
$blood_passed_once = 0
$d5_best_scores[0] = 0
$d5_best_scores[1] = 0
$d5_best_scores[2] = 0
$d5_best_scores[3] = 0
$d5_best_scores[4] = 0
$d5_best_scores[5] = 0
$d5_best_scores[6] = 0
$d5_best_scores[7] = 0
$d5_best_scores[8] = 0
$d5_best_scores[9] = 0
$d5_total_missions_open = 1
$d5_last_played = 1
$d5_watched_first_cutscene = 0
$d5_pilot_licence_obtained = 0
$d5_bronze_generator_unlocked = 0
$d5_silver_generator_unlocked = 0
$d5_gold_generator_unlocked = 0
$d5_bronze_generator = create_car_generator 325.12 {y} 2537.1001 {z} 17.52 {heading} 180.0 {modelId} 476 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$d5_silver_generator = create_car_generator 348.0 {y} 2537.1001 {z} 17.42 {heading} 180.0 {modelId} 513 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$d5_gold_generator = create_car_generator 365.51 {y} 2537.1001 {z} 17.42 {heading} 180.0 {modelId} 425 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $d5_bronze_generator {amount} 0
switch_car_generator $d5_silver_generator {amount} 0
switch_car_generator $d5_gold_generator {amount} 0
$boat_which_missions_are_open_flag = 1
$boat_accelerate_best_score = 60000
$boat_simplecircuit_best_score = 80000
$boat_slalom_best_score = 180000
$boat_skijump_best_score = 10
$boat_hover_best_score = 200000
$boat_cut_watched = 0
$boat_passed_once = 0
$boat_accelerate_bronzeachieved = 0
$boat_accelerate_silverachieved = 0
$boat_accelerate_goldachieved = 0
$boat_simplecircuit_bronzeachieved = 0
$boat_simplecircuit_silverachieved = 0
$boat_simplecircuit_goldachieved = 0
$boat_slalom_bronzeachieved = 0
$boat_slalom_silverachieved = 0
$boat_slalom_goldachieved = 0
$boat_skijump_bronzeachieved = 0
$boat_skijump_silverachieved = 0
$boat_skijump_goldachieved = 0
$boat_hover_bronzeachieved = 0
$boat_hover_silverachieved = 0
$boat_hover_goldachieved = 0
$boat_bronze_rewardgiven = 0
$boat_silver_rewardgiven = 0
$boat_gold_rewardgiven = 0
$boat_bronze_generator = create_car_generator -2227.104 {y} 2445.7759 {z} 0.0 {heading} 229.3771 {modelId} 484 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$boat_silver_generator = create_car_generator -2223.873 {y} 2409.866 {z} 0.0 {heading} 49.0555 {modelId} 446 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$boat_gold_generator = create_car_generator -2247.8359 {y} 2425.675 {z} 0.0 {heading} 220.2123 {modelId} 493 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $boat_bronze_generator {amount} 0
switch_car_generator $boat_silver_generator {amount} 0
switch_car_generator $boat_gold_generator {amount} 0
$pimp_passed_once = 0
$courierLA_passed_once = 0
$courierLV_passed_once = 0
$courierSF_passed_once = 0
$courierLA_revenue = 2000
$courierSF_revenue = 2000
$courierLV_revenue = 2000
$ca3_driven_to_factory = 0
$bs_passed = 0
$flag_trailor_cutscene = 0
$bs_open_tests = 0
$bs_wheelie_best_score = 0
$bs_stoppie_best_score = 0
$bs_the360_best_score = 0
$bs_the180_best_score = 0
$bs_jumpstop_best_score = 0
$bs_jumpstoppie_best_score = 0
$bs_the360_bronzeachieved = 0
$bs_the360_silverachieved = 0
$bs_the360_goldachieved = 0
$bs_the180_bronzeachieved = 0
$bs_the180_silverachieved = 0
$bs_the180_goldachieved = 0
$bs_wheelie_bronzeachieved = 0
$bs_wheelie_silverachieved = 0
$bs_wheelie_goldachieved = 0
$bs_jumpstop_bronzeachieved = 0
$bs_jumpstop_silverachieved = 0
$bs_jumpstop_goldachieved = 0
$bs_stoppie_bronzeachieved = 0
$bs_stoppie_silverachieved = 0
$bs_stoppie_goldachieved = 0
$bs_jumpstoppie_bronzeachieved = 0
$bs_jumpstoppie_silverachieved = 0
$bs_jumpstoppie_goldachieved = 0
$bs_bronze_rewardgiven = 0
$bs_silver_rewardgiven = 0
$bs_gold_rewardgiven = 0
$bs_bronze_generator = create_car_generator 1174.76 {y} 1364.832 {z} 10.1203 {heading} 280.0355 {modelId} 463 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$bs_silver_generator = create_car_generator 1174.999 {y} 1366.479 {z} 10.1203 {heading} 282.2258 {modelId} 521 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$bs_gold_generator = create_car_generator 1174.467 {y} 1368.359 {z} 10.1203 {heading} 283.0546 {modelId} 522 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $bs_bronze_generator {amount} 0
switch_car_generator $bs_silver_generator {amount} 0
switch_car_generator $bs_gold_generator {amount} 0
$bce2_played = 0
$recreate_tplay_pickup = 0
$start_the_bcesar_race = 0
$respect_help_played = 0
$flag_bce2_passed_1stime = 0
$flag_syn1_passed_1stime = 0
$flag_cas1_passed_1stime = 0
$flag_bikeschool_passed_1stime = 0
$flag_shtr_passed_1stime = 0
$flag_grav_passed_1stime = 0
$flag_on_courier_mission = 0
$flag_syn1_skip1 = 0
$flag_syn1_skip2 = 0
$flag_bcr1_skip = 0
$statbikestamina_ctr = 0.0
$statbikelowmuscle_ctr = 0.0
$statbike_temp = 0.0
$stattreadstamina_ctr = 0.0
$stattreadlowmuscle_ctr = 0.0
$stattread_temp = 0.0
$trigger_final_LA1_missions = 0
$on_footX = 1.5
$on_footY = 1.5
$on_footZ = 3.0
$in_carX = 4.0
$in_carY = 4.0
$in_carZ = 4.0
$traceX[0] = 1766.134
$traceY[0] = -1704.228
$traceZ[0] = 12.4731
$traceX[1] = -1922.922
$traceY[1] = 282.7151
$traceZ[1] = 40.0391
$traceX[2] = 1636.916
$traceY[2] = 912.9478
$traceZ[2] = 9.689
$traceX[3] = 1701.6899
$traceY[3] = 1649.193
$traceZ[3] = 9.6296
$menu_mode = 0
$cprace_best_position[0] = 999999999
$cprace_best_position[1] = 999999999
$cprace_best_position[2] = 999999999
$cprace_best_position[3] = 999999999
$cprace_best_position[4] = 999999999
$cprace_best_position[5] = 999999999
$cprace_best_position[6] = 999999999
$cprace_best_position[7] = 999999999
$cprace_best_position[8] = 999999999
$cprace_best_position[9] = 999999999
$cprace_best_position[10] = 999999999
$cprace_best_position[11] = 999999999
$cprace_best_position[12] = 999999999
$cprace_best_position[13] = 999999999
$cprace_best_position[14] = 999999999
$cprace_best_position[15] = 999999999
$cprace_best_position[16] = 999999999
$cprace_best_position[17] = 999999999
$cprace_best_position[18] = 999999999
$cprace_best_position[19] = 999999999
$cprace_best_position[20] = 999999999
$cprace_best_position[21] = 999999999
$cprace_best_position[22] = 999999999
$cprace_best_position[23] = 999999999
$cprace_best_position[24] = 999999999
$cprace_best_position[25] = 999999999
$cprace_best_position[26] = 999999999
$cprace_best_position[27] = 999999999
$cprace_best_position[28] = 999999999
$cprace_best_position[29] = 999999999
$cprace_best_times[0] = 999999999
$cprace_best_times[1] = 999999999
$cprace_best_times[2] = 999999999
$cprace_best_times[3] = 999999999
$cprace_best_times[4] = 999999999
$cprace_best_times[5] = 999999999
$cprace_best_times[6] = 999999999
$cprace_best_times[7] = 999999999
$cprace_best_times[8] = 999999999
$cprace_best_times[9] = 999999999
$cprace_best_times[10] = 999999999
$cprace_best_times[11] = 999999999
$cprace_best_times[12] = 999999999
$cprace_best_times[13] = 999999999
$cprace_best_times[14] = 999999999
$cprace_best_times[15] = 999999999
$cprace_best_times[16] = 999999999
$cprace_best_times[17] = 999999999
$cprace_best_times[18] = 999999999
$cprace_best_times[19] = 999999999
$cprace_best_times[20] = 999999999
$cprace_best_times[21] = 999999999
$cprace_best_times[22] = 999999999
$cprace_best_times[23] = 999999999
$cprace_best_times[24] = 999999999
$cprace_best_times[25] = 999999999
$cprace_best_times[26] = 999999999
$cprace_best_times[27] = 999999999
$cprace_best_times[28] = 999999999
$cprace_best_times[29] = 999999999
$cprace_best_lap_times[0] = 999999999
$cprace_best_lap_times[1] = 999999999
$cprace_best_lap_times[2] = 999999999
$cprace_best_lap_times[3] = 999999999
$cprace_best_lap_times[4] = 999999999
$cprace_best_lap_times[5] = 999999999
$cprace_best_lap_times[6] = 999999999
$cprace_best_lap_times[7] = 999999999
$cprace_best_lap_times[8] = 999999999
$cprace_best_lap_times[9] = 999999999
$cprace_best_lap_times[10] = 999999999
$cprace_best_lap_times[11] = 999999999
$cprace_best_lap_times[12] = 999999999
$cprace_best_lap_times[13] = 999999999
$cprace_best_lap_times[14] = 999999999
$cprace_best_lap_times[15] = 999999999
$cprace_best_lap_times[16] = 999999999
$cprace_best_lap_times[17] = 999999999
$cprace_best_lap_times[18] = 999999999
$cprace_best_lap_times[19] = 999999999
$cprace_best_lap_times[20] = 999999999
$cprace_best_lap_times[21] = 999999999
$cprace_best_lap_times[22] = 999999999
$cprace_best_lap_times[23] = 999999999
$cprace_best_lap_times[24] = 999999999
$cprace_best_lap_times[25] = 999999999
$cprace_best_lap_times[26] = 999999999
$cprace_best_lap_times[27] = 999999999
$cprace_best_lap_times[28] = 999999999
$cprace_best_lap_times[29] = 999999999
$got_race_made_progress[0] = 0
$got_race_made_progress[1] = 0
$got_race_made_progress[2] = 0
$got_race_made_progress[3] = 0
$got_race_made_progress[4] = 0
$got_race_made_progress[5] = 0
$got_race_made_progress[6] = 0
$got_race_made_progress[7] = 0
$got_race_made_progress[8] = 0
$got_race_made_progress[9] = 0
$got_race_made_progress[10] = 0
$got_race_made_progress[11] = 0
$got_race_made_progress[12] = 0
$got_race_made_progress[13] = 0
$got_race_made_progress[14] = 0
$got_race_made_progress[15] = 0
$got_race_made_progress[16] = 0
$got_race_made_progress[17] = 0
$got_race_made_progress[18] = 0
$got_race_made_progress[19] = 0
$got_race_made_progress[20] = 0
$got_race_made_progress[21] = 0
$got_race_made_progress[22] = 0
$got_race_made_progress[23] = 0
$got_race_made_progress[24] = 0
$got_race_made_progress[25] = 0
$got_race_made_progress[26] = 0
$got_race_made_progress[27] = 0
$got_race_made_progress[28] = 0
$got_race_made_progress[29] = 0
$total_races_completed = 0
$got_race_mission_complete = 0
$disable_mod_garage = 0
$flag_airrace_mission_passed = 0
$been_in_a_coastguard_before = 0
$flag_player_on_coastguard_mission = 0
$catX = 868.3358
$catY = -29.5529
$catZ = 62.3276
$507 = 257.5389
$513 = -77.23
$519 = 1.3678
$508 = 2297.78
$514 = -16.83
$520 = 26.29
$509 = 652.17
$515 = -559.75
$521 = 15.15
$510 = 1294.09
$516 = 267.78
$522 = 18.54
$511 = 681.595
$517 = -478.7909
$523 = 15.3281
$cat_liquor_banter = 0
$cat_otb_banter = 0
$cat_counter = 0
$flag_cat_mission1_passed = 0
$flag_cat_mission2_passed = 0
$flag_cat_mission3_passed = 0
$flag_cat_mission4_passed = 0
$pilotx = 415.55
$piloty = 2533.5701
$pilotz = 19.18
$hm5_car_gen = create_car_generator 383.178 {y} 2538.8911 {z} 16.53 {heading} 180.0 {modelId} 417 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $hm5_car_gen {amount} 0
$introX = 2495.2141
$introY = -1687.03
$introZ = 12.5144
$sweetX = 2515.0701
$sweetY = -1673.98
$sweetZ = 12.71
$ryderX = 2459.55
$ryderY = -1687.75
$ryderZ = 12.56
$smokeX = 2070.8701
$smokeY = -1703.01
$smokeZ = 12.55
$strapX = 790.54
$strapY = -1627.91
$strapZ = 12.39
$strap2X = 2486.6101
$strap2Y = -1649.42
$strap2Z = 12.48
$cesarX = 1801.08
$cesarY = -2117.9199
$cesarZ = 12.56
$crashX = 1042.85
$crashY = -1338.62
$crashZ = 12.55
$bcrashX = -2043.34
$bcrashY = -2525.99
$bcrashZ = 29.62
$truthX = -922.5121
$truthY = -1719.395
$truthZ = 76.5703
$truth2X = -2198.8701
$truth2Y = -2261.2019
$truth2Z = 29.6419
$bcesarX = 1552.78
$bcesarY = 39.3031
$bcesarZ = 23.1445
$wuziX = -2154.208
$wuziY = 645.3251
$wuziZ = 51.3516
$syndX = -2623.4971
$syndY = 1405.66
$syndZ = 6.1016
$stealX = -2031.261
$stealY = 179.2488
$stealZ = 27.8359
$zeroX = -2245.6631
$zeroY = 128.8889
$zeroZ = 34.3203
$scrashX = -2030.402
$scrashY = 148.8279
$scrashZ = 27.8359
$garageX = -2030.402
$garageY = 148.8279
$garageZ = 27.8359
$testsX = -2026.811
$testsY = -114.9093
$testsZ = 1034.179
$desertX = -685.2156
$desertY = 923.2191
$desertZ = 11.1531
$desert2X = 327.448
$desert2Y = 2530.095
$desert2Z = 15.8066
$casinoX = 1962.432
$casinoY = 974.675
$casinoZ = 993.4688
$TheheistX = 1962.3979
$TheheistY = 1060.962
$TheheistZ = 993.4688
$heistX = 2270.634
$heistY = 1635.599
$heistZ = 1007.367
$vcrashX = 1598.557
$vcrashY = 2667.8301
$vcrashZ = 9.8203
$docX = 2090.0
$docY = 1451.0
$docZ = 9.8
$mansionX = 1253.788
$mansionY = -785.2594
$mansionZ = 91.0313
$groveX = 2496.0601
$groveY = -1687.96
$groveZ = 12.53
$chickX = -299.6
$chickY = 1530.4
$chickZ = 74.7
$shooter1X = 1498.7
$shooter1Y = -1631.9
$shooter1Z = 14.0
$gravX = 1505.7
$gravY = -1631.9
$gravZ = 14.0
$spaceX = 1512.7
$spaceY = -1631.9
$spaceZ = 14.0
$RouletteX = 1960.8979
$RouletteY = 1008.406
$RouletteZ = 991.4745
$pimpX = 1918.988
$pimpY = -1789.324
$pimpZ = 12.5
$hitchX = -1563.7679
$hitchY = 2690.873
$hitchZ = 54.6985
$otbX = 828.77
$otbY = 4.71
$otbZ = 1003.17
$wheeloX = 1494.3
$wheeloY = -1644.6
$wheeloZ = 14.0
$blackjackX = 1489.5
$blackjackY = -1674.2
$blackjackZ = 12.5
$driving_schoolx = -2132.45
$driving_schooly = -47.0
$driving_schoolz = 35.3
$basketballx = 2323.97
$basketbally = -1517.04
$basketballz = 24.32
$limox = 1979.1
$limoy = -1996.1
$limoz = 12.4
$directorx = 862.9
$directory = -1154.8
$directorz = 23.0
$valetx = -1758.877
$valety = 952.744
$valetz = 23.7487
$banditx = 2258.5229
$bandity = 1613.25
$banditz = 1005.188
$flag_courier_mission_passed = 0
$flag_courier_trigger = 0
$cour1X = 1359.45
$cour1Y = -1755.0
$cour1Z = 12.85
$cour2X = -2590.4399
$cour2Y = 73.21
$cour2Z = 3.91
$cour3X = 1887.79
$cour3Y = 2087.3899
$cour3Z = 10.05
$quarryX = 823.6816
$quarryY = 854.1741
$quarryZ = 10.7949
$mountbX = -2309.23
$mountbY = -1651.22
$mountbZ = 483.09
$carcraneX = -1517.903
$carcraneY = 153.7578
$carcraneZ = 2.7813
$demoX = 2705.1721
$demoY = -1698.127
$demoZ = 10.8515
$poolX = 1134.0
$poolY = -7.0
$poolZ = 1001.0
$boatsX = -2187.3779
$boatsY = 2416.552
$boatsZ = 4.166
$bikesX = 1173.877
$bikesY = 1351.037
$bikesZ = 9.9219
$truckX = -77.6456
$truckY = -1136.401
$truckZ = 0.0781
$danceX = -2645.23
$danceY = 1413.3
$danceZ = -92.69
$kill2pX = -2325.3701
$kill2pY = -131.655
$kill2pZ = 34.3
$bike_2pX = 563.78
$bike_2pY = 2725.1399
$bike_2pZ = 60.49
$cars_2pX = 424.657
$cars_2pY = -1439.674
$cars_2pZ = 30.341
$heli_2pX = 1681.1899
$heli_2pY = -1433.3101
$heli_2pZ = 12.53
$peds_2pX = 1576.734
$peds_2pY = -1609.741
$peds_2pZ = 12.3828
$run_2pX = 2831.2429
$run_2pY = -1674.637
$run_2pZ = 8.9732
$demo_2pX = 2668.769
$demo_2pY = -1753.973
$demo_2pZ = 10.8515
$tagX = -2338.5
$tagY = -109.01
$tagZ = 34.36
$boxingX = 764.4572
$boxingY = 2.745
$boxingZ = 999.7153
$surviveX = 2747.0549
$surviveY = -1691.208
$surviveZ = 10.8515
$sumoX = 2694.2461
$sumoY = -1706.007
$sumoZ = 10.8556
$played_cut1_before_crash4 = 0
$played_cut2_before_crash4 = 0
$created_save_blips = 0
$switch_the_gym_interiors_off = 0
$area_to_look_at_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$price_counter = 0
$cost_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$area_looked_for_shops = 0
$item_no_shops = 0
$temp_var_shops = 0
$flag_on_neil_lowrider_mission = 0
$flag_bought_from_binco = 0
$flag_bought_from_prolapse = 0
$flag_bought_from_suburban = 0
$flag_bought_from_zip = 0
$flag_bought_from_victim = 0
$flag_bought_from_didiessachs = 0
$flag_player_got_gimp_suit = 0
$flag_player_got_valet_uniform = 0
$flag_player_got_casino_uniform = 0
$flag_player_got_police_uniform = 0
$flag_player_got_country_clothes = 0
$flag_got_mechanic_clothes = 0
$flag_got_medic_clothes = 0
$flag_got_pimp_clothes = 0
$flag_6weapons_open = 0
$flag_7weapons_open = 0
$flag_8weapons_open = 0
$flag_9weapons_open = 0
$flag_10weapons_open = 0
$flag_11weapons_open = 0
$flag_12weapons_open = 0
$flag_13weapons_open = 0
$flag_14weapons_open = 0
$flag_15weapons_open = 0
$flag_16weapons_open = 0
$flag_bought_gun_for_doberman = 0
$flag_on_doberman_mission = 0
$flag_gang_war_active = 0
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
$spray_shop4 = add_short_range_sprite_blip_for_coord 720.016 {y} -454.625 {z} 15.328 {sprite} RadarSprite.Spray
$spray_shop = add_short_range_sprite_blip_for_coord -1420.547 {y} 2583.9451 {z} 58.031 {sprite} RadarSprite.Spray
$2650 = add_short_range_sprite_blip_for_coord 1966.532 {y} 2162.6499 {z} 10.995 {sprite} RadarSprite.Spray
$2651 = add_short_range_sprite_blip_for_coord -2425.46 {y} 1020.83 {z} 49.39 {sprite} RadarSprite.Spray
$2652 = add_short_range_sprite_blip_for_coord 1021.8 {y} -1018.7 {z} 30.9 {sprite} RadarSprite.Spray
$2653 = add_short_range_sprite_blip_for_coord -1908.9 {y} 292.3 {z} 40.0 {sprite} RadarSprite.Spray
$2654 = add_short_range_sprite_blip_for_coord -103.6 {y} 1112.4 {z} 18.7 {sprite} RadarSprite.Spray
$added_all_food_blips_before = 0
$added_all_clothes_blips_before = 0
deactivate_garage 'CN2GAR2'
add_hospital_restart 2027.77 {y} -1420.52 {z} 15.99 {heading} 137.0 {citiesPassed} 0
add_hospital_restart 1180.85 {y} -1325.5699 {z} 12.58 {heading} 271.4 {citiesPassed} 0
add_police_restart 1550.6801 {y} -1675.49 {z} 14.51 {heading} 90.0 {citiesPassed} 0
add_hospital_restart 1244.437 {y} 331.2261 {z} 18.5547 {heading} 7.5465 {citiesPassed} 1
add_police_restart 632.2344 {y} -571.7104 {z} 15.3515 {heading} 267.2 {citiesPassed} 1
add_hospital_restart -2199.719 {y} -2308.075 {z} 29.6181 {heading} 322.8928 {citiesPassed} 1
add_police_restart -2163.8291 {y} -2387.8169 {z} 29.625 {heading} 134.2066 {citiesPassed} 1
add_hospital_restart -2670.2849 {y} 616.4364 {z} 13.4531 {heading} 183.1042 {citiesPassed} 1
add_police_restart -1605.792 {y} 716.8598 {z} 11.0241 {heading} 355.2978 {citiesPassed} 1
add_hospital_restart -316.3832 {y} 1056.045 {z} 18.7344 {heading} 1.6017 {citiesPassed} 2
add_police_restart -212.1889 {y} 979.4168 {z} 18.3219 {heading} 278.0478 {citiesPassed} 2
add_hospital_restart -1514.823 {y} 2527.1189 {z} 54.7443 {heading} 2.3546 {citiesPassed} 2
add_police_restart -1393.072 {y} 2633.116 {z} 54.9491 {heading} 86.0424 {citiesPassed} 2
add_hospital_restart 1578.446 {y} 1770.682 {z} 9.8358 {heading} 99.7567 {citiesPassed} 2
add_police_restart 2337.083 {y} 2453.802 {z} 13.9765 {heading} 90.7643 {citiesPassed} 2
add_stunt_jump 1939.136 {startY} -1968.052 {startZ} 17.6649 {startRadiusX} 2.5 {startRadiusY} 2.728 {startRadiusZ} 3.17 {finishX} 1989.958 {finishY} -1971.951 {finishZ} 28.7249 {finishRadiusX} 11.134 {finishRadiusY} 5.398 {finishRadiusZ} 7.23 {cameraX} 1960.545 {cameraY} -1963.571 {cameraZ} 25.3229 {reward} 500
add_stunt_jump 2209.2749 {startY} -1843.686 {startZ} 19.0964 {startRadiusX} 2.5 {startRadiusY} 4.28 {startRadiusZ} 3.83 {finishX} 2215.124 {finishY} -1889.359 {finishZ} 17.7864 {finishRadiusX} 15.36 {finishRadiusY} 7.01 {finishRadiusZ} 11.05 {cameraX} 2203.3401 {cameraY} -1861.524 {cameraZ} 21.8367 {reward} 500
add_stunt_jump 1177.215 {startY} -1696.761 {startZ} 21.368 {startRadiusX} 2.22 {startRadiusY} 2.5 {startRadiusZ} 5.1 {finishX} 1177.972 {finishY} -1626.719 {finishZ} 32.8079 {finishRadiusX} 18.2 {finishRadiusY} 7.23 {finishRadiusZ} 12.36 {cameraX} 1182.92 {cameraY} -1659.431 {cameraZ} 29.1115 {reward} 500
add_stunt_jump 2278.29 {startY} -1357.8571 {startZ} 31.3255 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 3.96 {finishX} 2275.2991 {finishY} -1310.756 {finishZ} 30.9555 {finishRadiusX} 10.69 {finishRadiusY} 2.5 {finishRadiusZ} 9.36 {cameraX} 2271.6809 {cameraY} -1331.282 {cameraZ} 32.6621 {reward} 500
add_stunt_jump 2335.3511 {startY} -2163.947 {startZ} 18.5147 {startRadiusX} 3.52 {startRadiusY} 2.5 {startRadiusZ} 3.44 {finishX} 2344.4189 {finishY} -2178.7029 {finishZ} 24.2546 {finishRadiusX} 15.64 {finishRadiusY} 3.05 {finishRadiusZ} 11.96 {cameraX} 2336.8899 {cameraY} -2190.321 {cameraZ} 22.4292 {reward} 500
add_stunt_jump 2825.9331 {startY} -1582.66 {startZ} 18.126 {startRadiusX} 2.5 {startRadiusY} 4.22 {startRadiusZ} 4.92 {finishX} 2787.5039 {finishY} -1569.318 {finishZ} 27.776 {finishRadiusX} 2.704 {finishRadiusY} 19.16 {finishRadiusZ} 14.15 {cameraX} 2805.1211 {cameraY} -1579.892 {cameraZ} 20.7985 {reward} 500
add_stunt_jump 2460.177 {startY} -2567.9109 {startZ} 18.8162 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 3.65 {finishX} 2464.2061 {finishY} -2597.4551 {finishZ} 25.8862 {finishRadiusX} 8.89 {finishRadiusY} 0.82 {finishRadiusZ} 6.26 {cameraX} 2454.8779 {cameraY} -2593.7871 {cameraZ} 23.9707 {reward} 500
add_stunt_jump 1832.453 {startY} -2386.8049 {startZ} 17.9247 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 3.01 {finishX} 1833.6121 {finishY} -2372.385 {finishZ} 17.9247 {finishRadiusX} 6.57 {finishRadiusY} 0.5 {finishRadiusZ} 6.65 {cameraX} 1840.288 {cameraY} -2367.095 {cameraZ} 19.4731 {reward} 500
add_stunt_jump 1839.745 {startY} -2514.4771 {startZ} 16.1769 {startRadiusX} 2.5 {startRadiusY} 2.34 {startRadiusZ} 2.77 {finishX} 1921.679 {finishY} -2517.896 {finishZ} 20.6069 {finishRadiusX} 2.512 {finishRadiusY} 6.42 {finishRadiusZ} 8.6999 {cameraX} 1879.752 {cameraY} -2529.894 {cameraZ} 22.7841 {reward} 500
add_stunt_jump 2634.397 {startY} -2107.9839 {startZ} 17.0887 {startRadiusX} 4.172 {startRadiusY} 2.5 {startRadiusZ} 5.06 {finishX} 2595.646 {finishY} -2109.0549 {finishZ} 25.7387 {finishRadiusX} 9.592 {finishRadiusY} 4.178 {finishRadiusZ} 6.1 {cameraX} 2608.7 {cameraY} -2117.1741 {cameraZ} 21.6272 {reward} 500
add_stunt_jump 2352.3 {startY} -1259.068 {startZ} 28.9962 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 2.76 {finishX} 2298.2041 {finishY} -1257.677 {finishZ} 28.7062 {finishRadiusX} 2.62 {finishRadiusY} 20.04 {finishRadiusZ} 9.96 {cameraX} 2312.8379 {cameraY} -1265.614 {cameraZ} 37.7793 {reward} 500
add_stunt_jump 1013.163 {startY} -1270.3621 {startZ} 24.4456 {startRadiusX} 2.0 {startRadiusY} 2.0 {startRadiusZ} 4.05 {finishX} 1045.359 {finishY} -1273.475 {finishZ} 32.9636 {finishRadiusX} 2.0 {finishRadiusY} 14.304 {finishRadiusZ} 13.14 {cameraX} 1037.356 {cameraY} -1264.502 {cameraZ} 25.3721 {reward} 500
add_stunt_jump -973.357 {startY} -223.2307 {startZ} 53.3717 {startRadiusX} 5.35 {startRadiusY} 29.1299 {startRadiusZ} 15.98 {finishX} -1116.028 {finishY} -211.0103 {finishZ} 30.6016 {finishRadiusX} 49.9398 {finishRadiusY} 32.2599 {finishRadiusZ} 27.0399 {cameraX} -1038.667 {cameraY} -187.1254 {cameraZ} 54.0 {reward} 500
add_stunt_jump -2637.0691 {startY} 780.3949 {startZ} 50.0166 {startRadiusX} 6.76 {startRadiusY} 2.52 {startRadiusZ} 9.29 {finishX} -2639.5769 {finishY} 733.2753 {finishZ} 44.1565 {finishRadiusX} 9.91 {finishRadiusY} 2.52 {finishRadiusZ} 9.29 {cameraX} -2633.3589 {cameraY} 757.9172 {cameraZ} 52.0809 {reward} 500
add_stunt_jump -2520.199 {startY} 1169.203 {startZ} 59.5525 {startRadiusX} 6.54 {startRadiusY} 3.09 {startRadiusZ} 5.97 {finishX} -2520.199 {finishY} 1202.12 {finishZ} 53.4025 {finishRadiusX} 33.5399 {finishRadiusY} 6.21 {finishRadiusZ} 17.66 {cameraX} -2513.7781 {cameraY} 1193.925 {cameraZ} 57.4115 {reward} 500
add_stunt_jump -1794.9821 {startY} 1211.6121 {startZ} 35.6794 {startRadiusX} 3.02 {startRadiusY} 2.58 {startRadiusZ} 4.75 {finishX} -1795.802 {finishY} 1258.197 {finishZ} 32.5394 {finishRadiusX} 19.51 {finishRadiusY} 5.13 {finishRadiusZ} 19.69 {cameraX} -1797.49 {cameraY} 1238.395 {cameraZ} 37.9679 {reward} 500
add_stunt_jump -2659.551 {startY} 1533.67 {startZ} 53.2004 {startRadiusX} 2.5 {startRadiusY} 2.62 {startRadiusZ} 4.73 {finishX} -2659.551 {finishY} 1551.645 {finishZ} 45.5003 {finishRadiusX} 7.26 {finishRadiusY} 11.79 {finishRadiusZ} 18.54 {cameraX} -2658.426 {cameraY} 1531.631 {cameraZ} 60.6476 {reward} 500
add_stunt_jump -1690.662 {startY} 1110.392 {startZ} 57.2776 {startRadiusX} 2.3 {startRadiusY} 2.98 {startRadiusZ} 5.08 {finishX} -1662.512 {finishY} 1110.392 {finishZ} 57.2776 {finishRadiusX} 2.3 {finishRadiusY} 18.12 {finishRadiusZ} 12.26 {cameraX} -1649.676 {cameraY} 1114.14 {cameraZ} 50.8559 {reward} 500
add_stunt_jump -2145.4609 {startY} -112.0259 {startZ} 44.3452 {startRadiusX} 7.24 {startRadiusY} 3.3 {startRadiusZ} 5.49 {finishX} -2146.8201 {finishY} -89.4659 {finishZ} 54.3752 {finishRadiusX} 4.36 {finishRadiusY} 3.3 {finishRadiusZ} 14.28 {cameraX} -2141.051 {cameraY} -89.1471 {cameraZ} 45.6462 {reward} 500
add_stunt_jump -267.7739 {startY} 2662.0359 {startZ} 68.7405 {startRadiusX} 3.53 {startRadiusY} 4.02 {startRadiusZ} 6.0 {finishX} -237.1135 {finishY} 2661.936 {finishZ} 79.7505 {finishRadiusX} 7.28 {finishRadiusY} 12.06 {finishRadiusZ} 8.14 {cameraX} -253.199 {cameraY} 2654.0161 {cameraZ} 72.7989 {reward} 500
add_stunt_jump -249.6904 {startY} 2590.8049 {startZ} 66.1194 {startRadiusX} 3.68 {startRadiusY} 2.96 {startRadiusZ} 3.96 {finishX} -249.6904 {finishY} 2575.325 {finishZ} 66.1194 {finishRadiusX} 12.66 {finishRadiusY} 5.21 {finishRadiusZ} 9.68 {cameraX} -256.2141 {cameraY} 2555.207 {cameraZ} 64.5246 {reward} 500
add_stunt_jump -871.5031 {startY} 2308.79 {startZ} 164.5739 {startRadiusX} 3.39 {startRadiusY} 2.87 {startRadiusZ} 4.86 {finishX} -981.079 {finishY} 2300.9131 {finishZ} 111.7538 {finishRadiusX} 18.77 {finishRadiusY} 40.02 {finishRadiusZ} 69.5898 {cameraX} -905.3314 {cameraY} 2315.064 {cameraZ} 163.7206 {reward} 500
add_stunt_jump 2073.7129 {startY} 2366.6531 {startZ} 50.8534 {startRadiusX} 5.54 {startRadiusY} 3.45 {startRadiusZ} 2.18 {finishX} 2050.73 {finishY} 2313.709 {finishZ} 31.8133 {finishRadiusX} 29.69 {finishRadiusY} 11.19 {finishRadiusZ} 26.09 {cameraX} 2077.4861 {cameraY} 2318.8721 {cameraZ} 26.9287 {reward} 500
add_stunt_jump 2170.947 {startY} 2402.6089 {startZ} 62.2905 {startRadiusX} 2.78 {startRadiusY} 3.59 {startRadiusZ} 3.62 {finishX} 2183.6699 {finishY} 2402.6089 {finishZ} 62.2905 {finishRadiusX} 4.92 {finishRadiusY} 9.2 {finishRadiusZ} 9.8 {cameraX} 2232.1101 {cameraY} 2387.5869 {cameraZ} 50.9115 {reward} 500
add_stunt_jump 2418.0559 {startY} 1353.234 {startZ} 12.3641 {startRadiusX} 2.2 {startRadiusY} 5.014 {startRadiusZ} 3.98 {finishX} 2481.9231 {finishY} 1346.354 {finishZ} 25.664 {finishRadiusX} 5.01 {finishRadiusY} 19.984 {finishRadiusZ} 11.63 {cameraX} 2462.313 {cameraY} 1362.702 {cameraZ} 19.7672 {reward} 500
add_stunt_jump 2407.3081 {startY} 1364.379 {startZ} 14.5734 {startRadiusX} 5.16 {startRadiusY} 2.72 {startRadiusZ} 6.0 {finishX} 2399.1201 {finishY} 1386.524 {finishZ} 25.4934 {finishRadiusX} 18.57 {finishRadiusY} 4.61 {finishRadiusZ} 11.62 {cameraX} 2412.772 {cameraY} 1392.431 {cameraZ} 22.3043 {reward} 500
add_stunt_jump 2784.7629 {startY} 2208.72 {startZ} 15.1934 {startRadiusX} 3.05 {startRadiusY} 1.76 {startRadiusZ} 4.33 {finishX} 2738.9839 {finishY} 2208.72 {finishZ} 21.8434 {finishRadiusX} 3.24 {finishRadiusY} 24.23 {finishRadiusZ} 16.15 {cameraX} 2758.656 {cameraY} 2201.665 {cameraZ} 18.3639 {reward} 500
add_stunt_jump 1482.3831 {startY} 2037.004 {startZ} 17.0576 {startRadiusX} 2.09 {startRadiusY} 2.69 {startRadiusZ} 5.58 {finishX} 1482.875 {finishY} 2077.978 {finishZ} 23.8776 {finishRadiusX} 3.284 {finishRadiusY} 4.09 {finishRadiusZ} 7.07 {cameraX} 1489.125 {cameraY} 2065.0239 {cameraZ} 20.6514 {reward} 500
add_stunt_jump 1976.397 {startY} 2593.686 {startZ} 17.2126 {startRadiusX} 3.67 {startRadiusY} 2.0 {startRadiusZ} 5.44 {finishX} 2041.191 {finishY} 2593.686 {finishZ} 30.4425 {finishRadiusX} 5.05 {finishRadiusY} 32.8 {finishRadiusZ} 20.5 {cameraX} 2007.676 {cameraY} 2596.314 {cameraZ} 28.1338 {reward} 500
add_stunt_jump 1636.264 {startY} 2399.7119 {startZ} 15.8903 {startRadiusX} 2.5 {startRadiusY} 2.5 {startRadiusZ} 5.08 {finishX} 1636.264 {finishY} 2449.071 {finishZ} 15.8903 {finishRadiusX} 21.33 {finishRadiusY} 2.0 {finishRadiusZ} 13.95 {cameraX} 1642.17 {cameraY} 2440.29 {cameraZ} 18.5118 {reward} 500
add_stunt_jump 2119.23 {startY} 2385.2129 {startZ} 33.7094 {startRadiusX} 2.1 {startRadiusY} 3.36 {startRadiusZ} 2.6 {finishX} 2151.8911 {finishY} 2385.6011 {finishZ} 30.8958 {finishRadiusX} 3.51 {finishRadiusY} 13.42 {finishRadiusZ} 9.04 {cameraX} 2128.1021 {cameraY} 2392.0481 {cameraZ} 32.2357 {reward} 500
add_stunt_jump -2082.5291 {startY} -2498.9319 {startZ} 33.9682 {startRadiusX} 2.34 {startRadiusY} 2.4 {startRadiusZ} 3.55 {finishX} -2110.031 {finishY} -2479.709 {finishZ} 40.8882 {finishRadiusX} 4.42 {finishRadiusY} 4.08 {finishRadiusZ} 5.94 {cameraX} -2101.418 {cameraY} -2496.468 {cameraZ} 37.1704 {reward} 500
add_stunt_jump 2112.408 {startY} 97.9 {startZ} 39.993 {startRadiusX} 5.64 {startRadiusY} 10.28 {startRadiusZ} 8.05 {finishX} 2152.1169 {finishY} 91.33 {finishZ} 39.993 {finishRadiusX} 14.95 {finishRadiusY} 26.95 {finishRadiusZ} 16.22 {cameraX} 2149.9331 {cameraY} 76.6566 {cameraZ} 44.9509 {reward} 500
add_stunt_jump -2100.4131 {startY} -1743.595 {startZ} 199.7312 {startRadiusX} 2.94 {startRadiusY} 4.27 {startRadiusZ} 4.96 {finishX} -2082.491 {finishY} -1718.923 {finishZ} 199.7312 {finishRadiusX} 10.8 {finishRadiusY} 9.39 {finishRadiusZ} 17.62 {cameraX} -2096.167 {cameraY} -1714.572 {cameraZ} 201.0246 {reward} 500
add_stunt_jump -2287.6709 {startY} -2800.7791 {startZ} 22.0541 {startRadiusX} 5.81 {startRadiusY} 13.66 {startRadiusZ} 5.57 {finishX} -2255.1331 {finishY} -2800.7791 {finishZ} 22.0541 {finishRadiusX} 12.56 {finishRadiusY} 28.68 {finishRadiusZ} 14.69 {cameraX} -2253.3191 {cameraY} -2814.645 {cameraZ} 22.8247 {reward} 500
add_stunt_jump 110.8902 {startY} 2428.0491 {startZ} 23.7936 {startRadiusX} 3.58 {startRadiusY} 3.15 {startRadiusZ} 4.2 {finishX} 132.64 {finishY} 2445.781 {finishZ} 32.7336 {finishRadiusX} 4.38 {finishRadiusY} 16.62 {finishRadiusZ} 15.35 {cameraX} 119.7758 {cameraY} 2449.6399 {cameraZ} 27.7167 {reward} 500
add_stunt_jump -894.4963 {startY} 2693.199 {startZ} 44.7303 {startRadiusX} 3.58 {startRadiusY} 2.63 {startRadiusZ} 2.44 {finishX} -941.4026 {finishY} 2662.939 {finishZ} 55.7302 {finishRadiusX} 29.14 {finishRadiusY} 16.02 {finishRadiusZ} 19.74 {cameraX} -931.5991 {cameraY} 2647.9951 {cameraZ} 51.4501 {reward} 500
add_stunt_jump 89.9936 {startY} -243.2046 {startZ} 7.5581 {startRadiusX} 3.96 {startRadiusY} 4.46 {startRadiusZ} 4.48 {finishX} 101.5435 {finishY} -255.4345 {finishZ} 7.5581 {finishRadiusX} 7.39 {finishRadiusY} 11.31 {finishRadiusZ} 14.99 {cameraX} 87.0604 {cameraY} -266.0403 {cameraZ} 9.8153 {reward} 500
add_stunt_jump 160.7991 {startY} -160.2479 {startZ} 6.1453 {startRadiusX} 2.12 {startRadiusY} 1.452 {startRadiusZ} 2.23 {finishX} 171.8147 {finishY} -162.405 {finishZ} 12.321 {finishRadiusX} 2.0 {finishRadiusY} 7.2 {finishRadiusZ} 7.18 {cameraX} 183.2545 {cameraY} -151.314 {cameraZ} 13.5961 {reward} 500
add_stunt_jump -72.3 {startY} 17.7 {startZ} 8.4132 {startRadiusX} 2.81 {startRadiusY} 2.4 {startRadiusZ} 4.48 {finishX} -65.1154 {finishY} 35.7188 {finishZ} 16.6432 {finishRadiusX} 7.71 {finishRadiusY} 2.0 {finishRadiusZ} 7.27 {cameraX} -70.4781 {cameraY} 55.8289 {cameraZ} 15.0868 {reward} 500
add_stunt_jump -39.7989 {startY} 53.3007 {startZ} 6.9223 {startRadiusX} 3.15 {startRadiusY} 2.76 {startRadiusZ} 2.35 {finishX} -36.4289 {finishY} 76.6106 {finishZ} 6.9223 {finishRadiusX} 12.51 {finishRadiusY} 4.48 {finishRadiusZ} 9.67 {cameraX} -42.5507 {cameraY} 77.3671 {cameraZ} 7.8899 {reward} 500
add_stunt_jump 638.7504 {startY} -520.0714 {startZ} 18.8519 {startRadiusX} 2.0 {startRadiusY} 2.15 {startRadiusZ} 2.34 {finishX} 639.8602 {finishY} -545.0903 {finishZ} 22.7619 {finishRadiusX} 10.97 {finishRadiusY} 3.01 {finishRadiusZ} 8.26 {cameraX} 629.1661 {cameraY} -542.9603 {cameraZ} 24.9594 {reward} 500
add_stunt_jump 1749.723 {startY} 779.6028 {startZ} 13.4757 {startRadiusX} 1.68 {startRadiusY} 2.616 {startRadiusZ} 2.164 {finishX} 1749.723 {finishY} 825.0914 {finishZ} 14.2657 {finishRadiusX} 10.718 {finishRadiusY} 2.616 {finishRadiusZ} 5.824 {cameraX} 1744.046 {cameraY} 799.4149 {cameraZ} 12.6554 {reward} 500
add_stunt_jump 110.2446 {startY} -257.9929 {startZ} 6.2739 {startRadiusX} 3.36 {startRadiusY} 3.32 {startRadiusZ} 2.93 {finishX} 92.4846 {finishY} -245.6928 {finishZ} 11.0439 {finishRadiusX} 8.43 {finishRadiusY} 6.92 {finishRadiusZ} 3.99 {cameraX} 92.9552 {cameraY} -254.6195 {cameraZ} 10.1539 {reward} 500
add_stunt_jump 2125.6421 {startY} 95.2542 {startZ} 37.3959 {startRadiusX} 3.83 {startRadiusY} 4.09 {startRadiusZ} 2.57 {finishX} 2098.51 {finishY} 99.5841 {finishZ} 35.8559 {finishRadiusX} 3.83 {finishRadiusY} 8.46 {finishRadiusZ} 5.72 {cameraX} 2116.3931 {cameraY} 88.0306 {cameraZ} 40.2113 {reward} 500
add_stunt_jump -344.6466 {startY} -9.8812 {startZ} 44.9609 {startRadiusX} 14.26 {startRadiusY} 3.45 {startRadiusZ} 3.8 {finishX} -336.1166 {finishY} 28.7688 {finishZ} 37.7609 {finishRadiusX} 16.09 {finishRadiusY} 4.55 {finishRadiusZ} 6.29 {cameraX} -358.2565 {cameraY} 15.6353 {cameraZ} 41.7241 {reward} 500
add_stunt_jump -2589.1799 {startY} 1164.37 {startZ} 59.8256 {startRadiusX} 2.84 {startRadiusY} 2.77 {startRadiusZ} 2.23 {finishX} -2567.125 {finishY} 1231.183 {finishZ} 47.0362 {finishRadiusX} 18.9 {finishRadiusY} 9.04 {finishRadiusZ} 6.05 {cameraX} -2576.0601 {cameraY} 1209.225 {cameraZ} 53.549 {reward} 500
add_stunt_jump -2292.0439 {startY} 1097.71 {startZ} 84.7347 {startRadiusX} 2.082 {startRadiusY} 2.074 {startRadiusZ} 2.02 {finishX} -2350.5911 {finishY} 1101.928 {finishZ} 64.1846 {finishRadiusX} 4.522 {finishRadiusY} 14.204 {finishRadiusZ} 9.03 {cameraX} -2323.731 {cameraY} 1106.665 {cameraZ} 77.177 {reward} 500
add_stunt_jump -2408.2849 {startY} 723.2977 {startZ} 38.6835 {startRadiusX} 2.62 {startRadiusY} 2.5 {startRadiusZ} 1.69 {finishX} -2408.2849 {finishY} 723.2977 {finishZ} 38.6835 {finishRadiusX} 22.41 {finishRadiusY} 2.58 {finishRadiusZ} 4.06 {cameraX} -2407.981 {cameraY} 716.5809 {cameraZ} 38.4334 {reward} 500
add_stunt_jump -2116.356 {startY} 925.6832 {startZ} 87.819 {startRadiusX} 2.68 {startRadiusY} 1.99 {startRadiusZ} 2.48 {finishX} -2069.5649 {finishY} 925.433 {finishZ} 76.689 {finishRadiusX} 2.68 {finishRadiusY} 15.26 {finishRadiusZ} 14.46 {cameraX} -2085.6289 {cameraY} 935.5674 {cameraZ} 85.4677 {reward} 500
add_stunt_jump -1903.192 {startY} 223.3468 {startZ} 37.7965 {startRadiusX} 1.75 {startRadiusY} 1.84 {startRadiusZ} 1.7 {finishX} -1874.382 {finishY} 223.3467 {finishZ} 42.4064 {finishRadiusX} 1.75 {finishRadiusY} 8.13 {finishRadiusZ} 4.67 {cameraX} -1897.0389 {cameraY} 219.1329 {cameraZ} 39.911 {reward} 500
add_stunt_jump -1687.323 {startY} -162.201 {startZ} 17.8603 {startRadiusX} 2.68 {startRadiusY} 3.19 {startRadiusZ} 2.2 {finishX} -1722.537 {finishY} -126.391 {finishZ} 14.9903 {finishRadiusX} 9.09 {finishRadiusY} 7.13 {finishRadiusZ} 13.07 {cameraX} -1716.8781 {cameraY} -142.6182 {cameraZ} 14.6114 {reward} 500
add_stunt_jump -1729.924 {startY} -364.5276 {startZ} 18.2246 {startRadiusX} 2.268 {startRadiusY} 2.51 {startRadiusZ} 2.148 {finishX} -1777.4871 {finishY} -364.2776 {finishZ} 17.9446 {finishRadiusX} 2.268 {finishRadiusY} 15.33 {finishRadiusZ} 7.068 {cameraX} -1745.84 {cameraY} -355.4089 {cameraZ} 14.2197 {reward} 500
add_stunt_jump -1972.099 {startY} -543.0899 {startZ} 38.9862 {startRadiusX} 1.96 {startRadiusY} 2.01 {startRadiusZ} 1.77 {finishX} -1912.318 {finishY} -543.0899 {finishZ} 45.3462 {finishRadiusX} 7.58 {finishRadiusY} 14.78 {finishRadiusZ} 8.69 {cameraX} -1942.915 {cameraY} -539.1157 {cameraZ} 40.2453 {reward} 500
add_stunt_jump 2770.2141 {startY} -1177.4771 {startZ} 70.7527 {startRadiusX} 2.344 {startRadiusY} 1.99 {startRadiusZ} 2.172 {finishX} 2814.468 {finishY} -1182.996 {finishZ} 55.7938 {finishRadiusX} 5.94 {finishRadiusY} 17.38 {finishRadiusZ} 31.52 {cameraX} 2766.031 {cameraY} -1184.692 {cameraZ} 74.9193 {reward} 500
add_stunt_jump 2248.8379 {startY} -2463.2581 {startZ} 15.1049 {startRadiusX} 5.18 {startRadiusY} 2.26 {startRadiusZ} 2.59 {finishX} 2247.468 {finishY} -2432.427 {finishZ} 21.8068 {finishRadiusX} 12.44 {finishRadiusY} 2.26 {finishRadiusZ} 9.32 {cameraX} 2240.7571 {cameraY} -2446.2009 {cameraZ} 16.8109 {reward} 500
add_stunt_jump 2248.832 {startY} -2627.623 {startZ} 15.1806 {startRadiusX} 4.862 {startRadiusY} 2.144 {startRadiusZ} 2.556 {finishX} 2248.832 {finishY} -2655.498 {finishZ} 21.2585 {finishRadiusX} 8.68 {finishRadiusY} 2.144 {finishRadiusZ} 8.498 {cameraX} 2237.6951 {cameraY} -2650.7681 {cameraZ} 16.3791 {reward} 500
add_stunt_jump 2326.1221 {startY} -1508.751 {startZ} 27.0066 {startRadiusX} 2.242 {startRadiusY} 1.728 {startRadiusZ} 2.08 {finishX} 2286.813 {finishY} -1508.7321 {finishZ} 30.3748 {finishRadiusX} 3.86 {finishRadiusY} 9.38 {finishRadiusZ} 8.99 {cameraX} 2299.4041 {cameraY} -1514.5959 {cameraZ} 29.8683 {reward} 500
add_stunt_jump 1623.574 {startY} -1110.9561 {startZ} 61.8178 {startRadiusX} 1.656 {startRadiusY} 2.014 {startRadiusZ} 1.836 {finishX} 1623.574 {finishY} -1079.265 {finishZ} 61.8178 {finishRadiusX} 17.246 {finishRadiusY} 2.014 {finishRadiusZ} 22.1459 {cameraX} 1615.6331 {cameraY} -1093.8 {cameraZ} 64.8724 {reward} 500
add_stunt_jump 1679.646 {startY} -962.2209 {startZ} 65.6737 {startRadiusX} 1.694 {startRadiusY} 2.49 {startRadiusZ} 1.94 {finishX} 1679.646 {finishY} -988.7401 {finishZ} 65.6737 {finishRadiusX} 13.124 {finishRadiusY} 2.49 {finishRadiusZ} 16.74 {cameraX} 1683.881 {cameraY} -977.1464 {cameraZ} 65.7485 {reward} 500
add_stunt_jump 1667.167 {startY} -992.8579 {startZ} 32.7591 {startRadiusX} 6.32 {startRadiusY} 3.768 {startRadiusZ} 2.48 {finishX} 1675.8051 {finishY} -1008.297 {finishZ} 32.7591 {finishRadiusX} 18.7479 {finishRadiusY} 2.438 {finishRadiusZ} 9.79 {cameraX} 1689.156 {cameraY} -1013.63 {cameraZ} 35.6715 {reward} 500
add_stunt_jump 347.0 {startY} -1662.299 {startZ} 35.8218 {startRadiusX} 3.12 {startRadiusY} 2.65 {startRadiusZ} 2.61 {finishX} 351.6596 {finishY} -1700.264 {finishZ} 35.8218 {finishRadiusX} 19.91 {finishRadiusY} 4.13 {finishRadiusZ} 29.76 {cameraX} 337.9746 {cameraY} -1676.993 {cameraZ} 36.7335 {reward} 500
add_stunt_jump 743.1525 {startY} -1132.819 {startZ} 25.7991 {startRadiusX} 1.834 {startRadiusY} 3.606 {startRadiusZ} 2.35 {finishX} 710.0014 {finishY} -1132.989 {finishZ} 25.7991 {finishRadiusX} 1.834 {finishRadiusY} 11.096 {finishRadiusZ} 10.0 {cameraX} 717.1129 {cameraY} -1136.549 {cameraZ} 25.5161 {reward} 500
add_stunt_jump 1395.562 {startY} -1460.566 {startZ} 12.3906 {startRadiusX} 1.672 {startRadiusY} 1.97 {startRadiusZ} 1.75 {finishX} 1402.96 {finishY} -1447.4659 {finishZ} 17.7266 {finishRadiusX} 10.062 {finishRadiusY} 1.97 {finishRadiusZ} 5.15 {cameraX} 1395.0229 {cameraY} -1450.8361 {cameraZ} 17.1621 {reward} 500
add_stunt_jump 1586.489 {startY} 312.8876 {startZ} 23.9965 {startRadiusX} 2.15 {startRadiusY} 6.38 {startRadiusZ} 1.99 {finishX} 1540.208 {finishY} 325.3573 {finishZ} 28.9665 {finishRadiusX} 2.15 {finishRadiusY} 32.8899 {finishRadiusZ} 11.37 {cameraX} 1562.912 {cameraY} 331.3251 {cameraZ} 23.6496 {reward} 500
add_stunt_jump 2058.1001 {startY} -2677.5171 {startZ} 15.4946 {startRadiusX} 3.1 {startRadiusY} 2.48 {startRadiusZ} 2.6 {finishX} 2009.261 {finishY} -2677.5171 {finishZ} 20.8946 {finishRadiusX} 1.93 {finishRadiusY} 16.5499 {finishRadiusZ} 11.26 {cameraX} 2036.566 {cameraY} -2685.281 {cameraZ} 13.2053 {reward} 500
add_stunt_jump 586.0102 {startY} -1773.769 {startZ} 15.2312 {startRadiusX} 2.0 {startRadiusY} 2.27 {startRadiusZ} 1.78 {finishX} 627.7189 {finishY} -1781.119 {finishZ} 22.6912 {finishRadiusX} 2.0 {finishRadiusY} 7.06 {finishRadiusZ} 9.94 {cameraX} 598.5319 {cameraY} -1778.481 {cameraZ} 17.0529 {reward} 500
add_stunt_jump 2172.0779 {startY} 2430.5071 {startZ} 61.747 {startRadiusX} 2.12 {startRadiusY} 3.3 {startRadiusZ} 2.35 {finishX} 2191.592 {finishY} 2436.304 {finishZ} 53.057 {finishRadiusX} 2.5 {finishRadiusY} 12.57 {finishRadiusZ} 25.22 {cameraX} 2227.2339 {cameraY} 2436.885 {cameraZ} 37.788 {reward} 500
add_stunt_jump 2176.1331 {startY} 2268.196 {startZ} 13.4683 {startRadiusX} 2.286 {startRadiusY} 1.934 {startRadiusZ} 1.938 {finishX} 2137.272 {finishY} 2268.2461 {finishZ} 16.7183 {finishRadiusX} 2.286 {finishRadiusY} 10.554 {finishRadiusZ} 6.458 {cameraX} 2148.6011 {cameraY} 2264.8921 {cameraZ} 13.6634 {reward} 500
add_stunt_jump -2213.7729 {startY} -311.0786 {startZ} 38.5339 {startRadiusX} 1.15 {startRadiusY} 3.04 {startRadiusZ} 2.59 {finishX} -2213.7729 {finishY} -327.8282 {finishZ} 44.6738 {finishRadiusX} 10.374 {finishRadiusY} 3.04 {finishRadiusZ} 5.93 {cameraX} -2215.9771 {cameraY} -325.7729 {cameraZ} 42.5119 {reward} 500
$init_ped_density = 50
$fourdragons_door = create_object_no_offset #TRDCSGRGDOOR_LVS {x} 1903.3831 {y} 967.62 {z} 11.438
set_object_heading $fourdragons_door {heading} 0.0
dont_remove_object $fourdragons_door
$advert_f1 = create_object_no_offset #MD_POSTER {x} 2167.8201 {y} -1518.193 {z} 20.237
set_object_heading $advert_f1 {heading} 0.0
dont_remove_object $advert_f1
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
set_object_collision_damage_effect $pc_door {state} False
freeze_object_position $pc_door {state} True
$2661 = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
set_object_heading $2661 {heading} 270.0
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
freeze_object_position $2662 {state} True
set_object_collision_damage_effect $2662 {state} False
$2663 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
freeze_object_position $2663 {state} True
set_object_heading $2663 {heading} 180.0
set_object_collision_damage_effect $2663 {state} False
$ca3_loadingbay = create_object_no_offset #SHUTTER_VEGAS {x} 1055.629 {y} 2087.6699 {z} 12.469
dont_remove_object $ca3_loadingbay
$g_BD_DOOR = create_object #CR1_DOOR {x} 2352.8511 {y} -1171.027 {z} 26.9669
set_object_heading $g_BD_DOOR {heading} 90.0
set_object_dynamic $g_BD_DOOR {state} False
set_object_collision_damage_effect $g_BD_DOOR {state} False
set_object_proofs $g_BD_DOOR {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_BD_DOOR
$china_town_gate = create_object_no_offset #CT_GATEXR {x} -2179.353 {y} 661.232 {z} 50.214
set_object_collision_damage_effect $china_town_gate {state} False
dont_remove_object $china_town_gate
$frontdoorr_a51 = create_object_no_offset #A51_BLASTDOORR {x} 215.941 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorr_a51 {heading} 0.0
$frontdoorl_a51 = create_object_no_offset #A51_BLASTDOORL {x} 211.842 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorl_a51 {heading} 0.0
dont_remove_object $frontdoorr_a51
dont_remove_object $frontdoorl_a51
$trapdoor_a51 = create_object_no_offset #A51_LABDOOR {x} 297.766 {y} 1842.618 {z} 6.764
dont_remove_object $trapdoor_a51
$launchdoor_a51 = create_object #A51_JETDOOR {x} 268.664 {y} 1884.0601 {z} 15.925
  rotate_object $launchdoor_a51 {fromAngle} 90.0 {toAngle} 90.0 {collisionCheck} False
dont_remove_object $launchdoor_a51
change_garage_type 'HBGDSFS' {type} GarageType.ForScriptToOpenAndClose
change_garage_type 'GHOSTDR' {type} GarageType.ForScriptToOpenAndClose
$init_portakabin_x[0] = -2108.0
$init_portakabin_y[0] = 155.0
$init_portakabin_z[0] = 34.0488
$init_portakabin_h[0] = 178.0
$init_portakabin_x[1] = -2089.0
$init_portakabin_y[1] = 172.0
$init_portakabin_z[1] = 34.0488
$init_portakabin_h[1] = 267.0
$init_portakabin_x[2] = -2069.0
$init_portakabin_y[2] = 229.0
$init_portakabin_z[2] = 35.0215
$init_portakabin_h[2] = 270.0
$init_portakabin_x[3] = -2077.0
$init_portakabin_y[3] = 271.0
$init_portakabin_z[3] = 33.7475
$init_portakabin_h[3] = 0.0
$init_portakabin_x[4] = -2096.0
$init_portakabin_y[4] = 261.0
$init_portakabin_z[4] = 34.5808
$init_portakabin_h[4] = 264.0
$init_portakabin_x[5] = -2129.0
$init_portakabin_y[5] = 306.0
$init_portakabin_z[5] = 33.7245
$init_portakabin_h[5] = 0.0
$portakabin_num = 0

:INITIAL_19059
if 
  6 > $portakabin_num
goto_if_false @INITIAL_19159
create_object #PORTAKABIN {x} $init_portakabin_x($portakabin_num,6f) {y} $init_portakabin_y($portakabin_num,6f) {z} $init_portakabin_z($portakabin_num,6f) {var_handle} $init_portakabin($portakabin_num,6i)
set_object_heading $init_portakabin($portakabin_num,6i) {heading} $init_portakabin_h($portakabin_num,6f)
set_object_dynamic $init_portakabin($portakabin_num,6i) {state} False
dont_remove_object $init_portakabin($portakabin_num,6i)
$portakabin_num += 1
goto @INITIAL_19059

:INITIAL_19159
$w5_storm_freighter_door = create_object #FREIGHT_SFW_DOOR {x} -2468.1411 {y} 1547.938 {z} 22.7
dont_remove_object $w5_storm_freighter_door
$h9_door_c = create_object_no_offset #AB_CASDORLOK {x} 2168.644 {y} 1619.4301 {z} 1000.3
set_object_area_visible $h9_door_c {areaId} 1
set_object_heading $h9_door_c {heading} 270.0
dont_remove_object $h9_door_c
$tw7_trip_skip_flag = 0
$2705 = 0
$riot2_door = create_object #AD_FLATDOOR {x} 1833.36 {y} -1995.45 {z} 12.5
set_object_heading $riot2_door {heading} 90.0
dont_remove_object $riot2_door
$2707 = create_object #AD_FLATDOOR {x} 1819.8101 {y} -1994.66 {z} 12.5
dont_remove_object $2707
$2708 = create_object #AD_FLATDOOR {x} 1827.6801 {y} -1980.0 {z} 12.5
set_object_heading $2708 {heading} 270.0
dont_remove_object $2708
$2709 = create_object #AD_FLATDOOR {x} 1851.84 {y} -1990.67 {z} 12.5
dont_remove_object $2709
$2710 = create_object #AD_FLATDOOR {x} 1867.29 {y} -1984.96 {z} 12.5
set_object_heading $2710 {heading} 270.0
dont_remove_object $2710
$2711 = create_object #AD_FLATDOOR {x} 1866.52 {y} -1998.53 {z} 12.5
set_object_heading $2711 {heading} 90.0
dont_remove_object $2711
$2712 = create_object #AD_FLATDOOR {x} 1899.75 {y} -1984.95 {z} 12.5
set_object_heading $2712 {heading} 270.0
dont_remove_object $2712
$2713 = create_object #AD_FLATDOOR {x} 1914.39 {y} -1992.8199 {z} 12.5
set_object_heading $2713 {heading} 180.0
dont_remove_object $2713
$2714 = create_object #AD_FLATDOOR {x} 1899.01 {y} -1998.5 {z} 12.5
set_object_heading $2714 {heading} 90.0
dont_remove_object $2714
$2715 = create_object #AD_FLATDOOR {x} 1900.89 {y} -2020.11 {z} 12.5
dont_remove_object $2715
$2716 = create_object #AD_FLATDOOR {x} 1914.4 {y} -2020.91 {z} 12.5
set_object_heading $2716 {heading} 180.0
dont_remove_object $2716
$2717 = create_object #AD_FLATDOOR {x} 1906.54 {y} -2035.52 {z} 12.5
set_object_heading $2717 {heading} 90.0
dont_remove_object $2717
$2718 = create_object #AD_FLATDOOR {x} 1851.86 {y} -2020.14 {z} 12.5
dont_remove_object $2718
$2719 = create_object #AD_FLATDOOR {x} 1865.42 {y} -2020.89 {z} 12.5
set_object_heading $2719 {heading} 180.0
dont_remove_object $2719
$2720 = create_object #AD_FLATDOOR {x} 1857.55 {y} -2035.52 {z} 12.5
set_object_heading $2720 {heading} 90.0
dont_remove_object $2720
$carterwall = create_object_no_offset #IMY_SHASH_WALL {x} 2522.0081 {y} -1272.9301 {z} 35.609
set_object_collision_damage_effect $carterwall {state} False
freeze_object_position $carterwall {state} True
dont_remove_object $carterwall
$sf_crane1_base = create_object_no_offset #TWRCRANE_M_04 {x} -2080.4409 {y} 256.015 {z} 66.869
dont_remove_object $sf_crane1_base
$sf_crane1_arm = create_object_no_offset #TWRCRANE_M_01 {x} -2080.4409 {y} 256.007 {z} 99.408
dont_remove_object $sf_crane1_arm
$sf_crane1_trolley = create_object_no_offset #TWRCRANE_M_02 {x} -2080.4409 {y} 296.46 {z} 102.861
dont_remove_object $sf_crane1_trolley
$x, $y, $z = get_object_coordinates $sf_crane1_base
$heading = get_object_heading $sf_crane1_base
$sf_crane1_base_LOD = create_object_no_offset #LODCRANE_M_04 {x} $x {y} $y {z} $z
set_object_heading $sf_crane1_base_LOD {heading} $heading
dont_remove_object $sf_crane1_base_LOD
$x, $y, $z = get_object_coordinates $sf_crane1_arm
$heading = get_object_heading $sf_crane1_arm
$sf_crane1_arm_LOD = create_object_no_offset #LODCRANE_M_01 {x} $x {y} $y {z} $z
set_object_heading $sf_crane1_arm_LOD {heading} $heading
dont_remove_object $sf_crane1_arm_LOD
connect_lods $sf_crane1_base {lodObject} $sf_crane1_base_LOD
connect_lods $sf_crane1_arm {lodObject} $sf_crane1_arm_LOD
$magno_base = create_object_no_offset #MAGNOCRANE_01 {x} -1547.978 {y} 123.9883 {z} 26.9332
set_object_heading $magno_base {heading} 45.0
dont_remove_object $magno_base
$x, $y, $z = get_offset_from_object_in_world_coords $magno_base {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$magno_cabin = create_object_no_offset #MAGNOCRANE_02 {x} $x {y} $y {z} $z
dont_remove_object $magno_cabin
set_object_heading $magno_cabin {heading} 140.0
$x, $y, $z = get_offset_from_object_in_world_coords $magno_cabin {xOffset} 0.0 {yOffset} -2.185 {zOffset} 8.51
$heading = get_object_heading $magno_cabin
$magno_arm = create_object_no_offset #MAGNOCRANE_03 {x} $x {y} $y {z} $z
set_object_rotation $magno_arm {x} 15.0 {y} 0.0 {z} $heading
dont_remove_object $magno_arm
$x, $y, $z = get_object_coordinates $magno_base
$heading = get_object_heading $magno_base
$magno_base_LOD = create_object_no_offset #LODNOCRANE_01 {x} $x {y} $y {z} $z
set_object_heading $magno_base_LOD {heading} $heading
dont_remove_object $magno_base_LOD
$x, $y, $z = get_object_coordinates $magno_cabin
$heading = get_object_heading $magno_cabin
$magno_cabin_LOD = create_object_no_offset #LODNOCRANE_02 {x} $x {y} $y {z} $z
set_object_heading $magno_cabin_LOD {heading} $heading
dont_remove_object $magno_cabin_LOD
$x, $y, $z = get_object_coordinates $magno_arm
$heading = get_object_heading $magno_arm
$magno_arm_LOD = create_object_no_offset #LODNOCRANE_03 {x} $x {y} $y {z} $z
set_object_heading $magno_arm_LOD {heading} $heading
set_object_rotation $magno_arm_LOD {x} 15.0 {y} 0.0 {z} $heading
dont_remove_object $magno_arm_LOD
connect_lods $magno_base {lodObject} $magno_base_LOD
connect_lods $magno_cabin {lodObject} $magno_cabin_LOD
connect_lods $magno_arm {lodObject} $magno_arm_LOD
$quarry_base = create_object_no_offset #QUARRY_CRANEBASE {x} 709.45 {y} 915.93 {z} -19.66
set_object_heading $quarry_base {heading} 135.0
dont_remove_object $quarry_base
$x, $y, $z = get_offset_from_object_in_world_coords $quarry_base {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0689
$heading = get_object_heading $quarry_base
$quarry_stand = create_object_no_offset #QUARRY_CRANE {x} $x {y} $y {z} $z
set_object_heading $quarry_stand {heading} $heading
dont_remove_object $quarry_stand
$x, $y, $z = get_offset_from_object_in_world_coords $quarry_stand {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0206
$heading = get_object_heading $quarry_stand
$quarry_arm = create_object_no_offset #QUARRY_CRANEARM {x} $x {y} $y {z} $z
set_object_heading $quarry_arm {heading} $heading
dont_remove_object $quarry_arm
$arm_rotate_y = 45.0
set_object_rotation $quarry_arm {x} 0.0 {y} $arm_rotate_y {z} $heading
$lv_base = create_object_no_offset #TWRCRANE_M_04 {x} 2399.2019 {y} 1879.139 {z} 37.55
set_object_heading $lv_base {heading} 0.0
dont_remove_object $lv_base
$x, $y, $z = get_offset_from_object_in_world_coords $lv_base {xOffset} 0.0 {yOffset} 0.0 {zOffset} 32.521
$heading = get_object_heading $lv_base
$lv_arm = create_object_no_offset #TWRCRANE_M_01 {x} $x {y} $y {z} $z
set_object_heading $lv_arm {heading} $heading
dont_remove_object $lv_arm
$x, $y, $z = get_offset_from_object_in_world_coords $lv_arm {xOffset} 0.0 {yOffset} 20.0 {zOffset} 3.789
$heading = get_object_heading $lv_arm
$lv_trolley = create_object_no_offset #TWRCRANE_M_02 {x} $x {y} $y {z} $z
set_object_heading $lv_trolley {heading} $heading
dont_remove_object $lv_trolley
$x, $y, $z = get_object_coordinates $lv_base
$heading = get_object_heading $lv_base
$lv_base_LOD = create_object_no_offset #LODCRANE_M_04 {x} $x {y} $y {z} $z
set_object_heading $lv_base_LOD {heading} $heading
dont_remove_object $lv_base_LOD
$x, $y, $z = get_object_coordinates $lv_arm
$heading = get_object_heading $lv_arm
$lv_arm_LOD = create_object_no_offset #LODCRANE_M_01 {x} $x {y} $y {z} $z
set_object_heading $lv_arm_LOD {heading} $heading
dont_remove_object $lv_arm_LOD
connect_lods $lv_base {lodObject} $lv_base_LOD
connect_lods $lv_arm {lodObject} $lv_arm_LOD
$temp_shopX = 0.0
$temp_shopY = 0.0
$temp_shopZ = 0.0
$players_money = 0
$flag_food_message = 0
$shop_item_price = 0
change_garage_type 'BODLAWN' {type} GarageType.Transfender
change_garage_type 'MODLAST' {type} GarageType.LocoLowCo
change_garage_type 'MDSSFSE' {type} GarageType.Transfender
change_garage_type 'MDS1SFS' {type} GarageType.WheelArchAngels
change_garage_type 'VECMOD' {type} GarageType.Transfender
$flag_1st_time_nitro_shop = 0
$sweet_carX = 2508.1599
$sweet_carY = -1666.47
$sweet_carZ = 13.0
$sweet_carH = 16.0
$ryder_carX = 2473.53
$ryder_carY = -1690.21
$ryder_carZ = 13.0
$ryder_carH = 0.0
$nascar_reward_cargen1 = create_car_generator 2692.0291 {y} -1674.024 {z} 9.4656 {heading} 178.8279 {modelId} 556 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $nascar_reward_cargen1 {state} True
switch_car_generator $nascar_reward_cargen1 {amount} 0
$nascar_reward_cargen2 = create_car_generator 2676.6951 {y} -1673.756 {z} 9.4038 {heading} 178.8279 {modelId} 494 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $nascar_reward_cargen2 {state} True
switch_car_generator $nascar_reward_cargen2 {amount} 0
$dirtrack_reward_cargen = create_car_generator 1104.932 {y} 1614.808 {z} 12.5546 {heading} 85.6435 {modelId} 424 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $dirtrack_reward_cargen {state} True
switch_car_generator $dirtrack_reward_cargen {amount} 0
$farm_gen1 = create_car_generator -1460.87 {y} -1566.7371 {z} 101.0579 {heading} 2.0 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $farm_gen1 {state} True
switch_car_generator $farm_gen1 {amount} 101
$farm_gen2 = create_car_generator -1446.239 {y} -1494.731 {z} 101.0514 {heading} 6.0 {modelId} 478 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $farm_gen2 {state} True
switch_car_generator $farm_gen2 {amount} 101
$farm_gen3 = create_car_generator -1439.6429 {y} -1576.823 {z} 101.0578 {heading} 264.1183 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $farm_gen3 {state} True
switch_car_generator $farm_gen3 {amount} 101
$gen_car6 = create_car_generator_with_plate $ryder_carX {y} $ryder_carY {z} $ryder_carZ {heading} $ryder_carH {modelId} 600 {primaryColor} 84 {secondaryColor} 84 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_SHERM__"
set_has_been_owned_for_car_generator $gen_car6 {state} True
switch_car_generator $gen_car6 {amount} 101
$gen_car7 = create_car_generator_with_plate $sweet_carX {y} $sweet_carY {z} $sweet_carZ {heading} $sweet_carH {modelId} 492 {primaryColor} 59 {secondaryColor} 34 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "GROVE4L_"
set_has_been_owned_for_car_generator $gen_car7 {state} True
switch_car_generator $gen_car7 {amount} 101
$gen_car9 = create_car_generator 2412.52 {y} -1326.49 {z} 23.74 {heading} 177.92 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
set_has_been_owned_for_car_generator $gen_car9 {state} True
switch_car_generator $gen_car9 {amount} 101
$gen_car8 = create_car_generator 2445.5 {y} -1340.8 {z} 23.5 {heading} 180.0 {modelId} 542 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car8 {amount} 101
$gen_car10 = create_car_generator 2499.1799 {y} -1648.26 {z} 13.0 {heading} 158.61 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car10 {amount} 101
$sw6_car_gen1 = create_car_generator 2685.981 {y} -2016.21 {z} 12.5501 {heading} 0.337 {modelId} 567 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $sw6_car_gen1 {amount} 0
$highstakes_car_gen = create_car_generator 1772.0959 {y} -2125.103 {z} 13.0469 {heading} 0.3441 {modelId} 536 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $highstakes_car_gen {amount} 101
$badlands_car_gen = create_car_generator -2048.856 {y} -2521.2759 {z} 31.125 {heading} 171.0232 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $badlands_car_gen {amount} 101
$steal_car_cargen1 = create_car_generator -1956.3 {y} 297.7 {z} 34.3 {heading} 64.8 {modelId} 558 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen2 = create_car_generator -1952.6 {y} 265.7 {z} 39.9 {heading} 292.8 {modelId} 562 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen3 = create_car_generator -1957.7 {y} 277.0 {z} 34.3 {heading} 133.4 {modelId} 560 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen4 = create_car_generator -1952.8 {y} 258.8 {z} 39.9 {heading} 259.1 {modelId} 567 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$steal_car_cargen5 = create_car_generator -1950.5 {y} 259.7 {z} 34.3 {heading} 53.8 {modelId} 561 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $steal_car_cargen1 {amount} 0
switch_car_generator $steal_car_cargen2 {amount} 0
switch_car_generator $steal_car_cargen3 {amount} 0
switch_car_generator $steal_car_cargen4 {amount} 0
switch_car_generator $steal_car_cargen5 {amount} 0
set_has_been_owned_for_car_generator $steal_car_cargen1 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen2 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen3 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen4 {state} True
set_has_been_owned_for_car_generator $steal_car_cargen5 {state} True
$done_bmx_stunt_progress = 0
$done_nrg500_stunt_progress = 0
$stunt_best_time[0] = 999999999
$stunt_best_time[1] = 999999999
$stunt_bmx1_x = 1946.09
$stunt_bmx1_y = -1380.72
$stunt_bmx1_z = 18.0
$stunt_bmx1_cargen = create_car_generator $stunt_bmx1_x {y} $stunt_bmx1_y {z} $stunt_bmx1_z {heading} 88.1761 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $stunt_bmx1_cargen {amount} 101
$stunt_nrg500_x = -1696.531
$stunt_nrg500_y = 77.7192
$stunt_nrg500_z = 3.5547
$stunt_nrg500_cargen = create_car_generator $stunt_nrg500_x {y} $stunt_nrg500_y {z} $stunt_nrg500_z {heading} 312.9365 {modelId} 522 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $stunt_nrg500_cargen {amount} 101
$fire_truck1 = create_car_generator -2057.0 {y} 58.0 {z} 28.0 {heading} 90.0 {modelId} 544 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck1 {amount} 101
$fire_truck1b = create_car_generator -2057.0 {y} 64.0 {z} 28.0 {heading} 90.0 {modelId} 407 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck1b {amount} 101
$fire_truck2 = create_car_generator 1763.824 {y} 2075.7571 {z} 9.9093 {heading} 179.4753 {modelId} 407 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck2 {amount} 101
$fire_truck3 = create_car_generator 1751.512 {y} -1455.1021 {z} 12.5547 {heading} 263.5589 {modelId} 407 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $fire_truck3 {amount} 101
$ambulance_1 = create_car_generator 2033.8879 {y} -1432.67 {z} 16.6453 {heading} 177.829 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_1 {amount} 101
$ambulance_2 = create_car_generator 1178.048 {y} -1338.175 {z} 13.405 {heading} 269.4923 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_2 {amount} 101
$ambulance_3 = create_car_generator -303.7814 {y} 1032.326 {z} 19.086 {heading} 268.5016 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_3 {amount} 101
$ambulance_4 = create_car_generator -1507.1639 {y} 2525.4551 {z} 55.1875 {heading} 358.5728 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_4 {amount} 101
$ambulance_5 = create_car_generator 1229.665 {y} 297.6883 {z} 19.0547 {heading} 154.9553 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_5 {amount} 101
$ambulance_6 = create_car_generator -2202.52 {y} -2315.9861 {z} 30.1172 {heading} 319.6815 {modelId} 416 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $ambulance_6 {amount} 101
$catalinas_cargen = create_car_generator 886.3782 {y} -25.6671 {z} 63.244 {heading} 157.6212 {modelId} 402 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $catalinas_cargen {amount} 101
$gen_car12 = create_car_generator $mountbX {y} $mountbY {z} $mountbZ {heading} 206.39 {modelId} 510 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car12 {amount} 101
$gen_car1 = create_car_generator 687.3733 {y} 890.67 {z} -40.4285 {heading} 35.14 {modelId} 406 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car1 {amount} 0
$gen_car2 = create_car_generator 620.882 {y} 861.2452 {z} -43.9534 {heading} 298.7428 {modelId} 486 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car2 {amount} 0
$gen_car51 = create_car_generator 623.3402 {y} 887.0944 {z} -43.5625 {heading} 347.2967 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car51 {amount} 101
$gen_car3 = create_car_generator -2486.0459 {y} 59.184 {z} 24.8284 {heading} 180.0 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car3 {amount} 101
$gen_car5 = create_car_generator $pimpX {y} $pimpY {z} $pimpZ {heading} 270.0 {modelId} 575 {primaryColor} 1 {secondaryColor} 5 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car5 {amount} 101
$gen_car4 = create_car_generator $hitchX {y} $hitchY {z} $hitchZ {heading} 180.0 {modelId} 543 {primaryColor} 51 {secondaryColor} 4 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car4 {amount} 101
$gen_car20 = create_car_generator $cour1X {y} $cour1Y {z} $cour1Z {heading} 53.1 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car20 {amount} 101
$gen_car21 = create_car_generator $cour2X {y} $cour2Y {z} $cour2Z {heading} 42.0 {modelId} 463 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car21 {amount} 101
$gen_car22 = create_car_generator $cour3X {y} $cour3Y {z} $cour3Z {heading} 183.4 {modelId} 462 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car22 {amount} 101
$gen_car13 = create_car_generator 2216.9021 {y} -1160.403 {z} 24.7265 {heading} 270.8013 {modelId} 492 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car14 = create_car_generator 2216.9021 {y} -1160.403 {z} 24.7265 {heading} 270.8013 {modelId} 492 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car15 = create_car_generator 2229.001 {y} -1173.798 {z} 24.7331 {heading} 90.5569 {modelId} 481 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car19 = create_car_generator 2251.0281 {y} -1788.661 {z} 12.7625 {heading} 358.9591 {modelId} 609 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car19 {amount} 101
$gen_car18 = create_car_generator -2118.1709 {y} -4.0948 {z} 35.0203 {heading} 270.142 {modelId} 609 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car18 {amount} 101
$gen_car17 = create_car_generator 2596.7471 {y} 1444.245 {z} 10.3203 {heading} 178.2712 {modelId} 609 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car17 {amount} 101
$iGFLockedCarGenerator[0] = create_car_generator 2408.156 {y} -1719.463 {z} 13.6665 {heading} 0.5881 {modelId} 545 {primaryColor} 83 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iGFLockedCarGenerator[1] = create_car_generator -1778.178 {y} 1207.074 {z} 25.1194 {heading} 91.9357 {modelId} 557 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iGFLockedCarGenerator[3] = create_car_generator -1399.717 {y} 2628.5901 {z} 55.7823 {heading} 271.7941 {modelId} 599 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iGFLockedCarGenerator[2] = create_car_generator -379.5 {y} -1443.115 {z} 25.7266 {heading} 88.9244 {modelId} 568 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iGFLockedCarGenerator[4] = create_car_generator -2572.04 {y} 1148.564 {z} 55.7333 {heading} 337.8434 {modelId} 442 {primaryColor} 1 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iGFLockedCarGenerator[5] = create_car_generator 2028.446 {y} 2731.1021 {z} 10.53 {heading} 268.994 {modelId} 589 {primaryColor} 126 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iGFUnlockedCarGenerator[0] = create_car_generator_with_plate 2408.156 {y} -1719.463 {z} 13.6665 {heading} 0.5881 {modelId} 545 {primaryColor} 83 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "HOMEGIRL"
$iGFUnlockedCarGenerator[1] = create_car_generator_with_plate -1778.178 {y} 1207.074 {z} 25.1194 {heading} 91.9357 {modelId} 557 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "__NOS___"
$iGFUnlockedCarGenerator[3] = create_car_generator_with_plate -1399.717 {y} 2628.5901 {z} 55.7823 {heading} 271.7941 {modelId} 599 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_CUFFS__"
$iGFUnlockedCarGenerator[2] = create_car_generator_with_plate -379.5 {y} -1443.115 {z} 25.7266 {heading} 88.9244 {modelId} 568 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "FULLAUTO"
$iGFUnlockedCarGenerator[4] = create_car_generator_with_plate -2572.04 {y} 1148.564 {z} 55.7333 {heading} 337.8434 {modelId} 442 {primaryColor} 1 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_TRAUMA_"
$iGFUnlockedCarGenerator[5] = create_car_generator_with_plate 2028.446 {y} 2731.1021 {z} 10.53 {heading} 268.994 {modelId} 589 {primaryColor} 126 {secondaryColor} 1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_SPANK__"
set_has_been_owned_for_car_generator $iGFUnlockedCarGenerator[0] {state} True
set_has_been_owned_for_car_generator $iGFUnlockedCarGenerator[1] {state} True
set_has_been_owned_for_car_generator $iGFUnlockedCarGenerator[3] {state} True
set_has_been_owned_for_car_generator $iGFUnlockedCarGenerator[2] {state} True
set_has_been_owned_for_car_generator $iGFUnlockedCarGenerator[4] {state} True
set_has_been_owned_for_car_generator $iGFUnlockedCarGenerator[5] {state} True
switch_car_generator $iGFLockedCarGenerator[0] {amount} 0
switch_car_generator $iGFLockedCarGenerator[1] {amount} 0
switch_car_generator $iGFLockedCarGenerator[3] {amount} 0
switch_car_generator $iGFLockedCarGenerator[2] {amount} 0
switch_car_generator $iGFLockedCarGenerator[4] {amount} 0
switch_car_generator $iGFLockedCarGenerator[5] {amount} 0
switch_car_generator $iGFUnlockedCarGenerator[0] {amount} 0
switch_car_generator $iGFUnlockedCarGenerator[1] {amount} 0
switch_car_generator $iGFUnlockedCarGenerator[3] {amount} 0
switch_car_generator $iGFUnlockedCarGenerator[2] {amount} 0
switch_car_generator $iGFUnlockedCarGenerator[4] {amount} 0
switch_car_generator $iGFUnlockedCarGenerator[5] {amount} 0
$impexp_car_gen[0] = create_car_generator -1673.9399 {y} 439.02 {z} 7.01 {heading} 136.0 {modelId} 402 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 70 {doorLockChance} 40 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[1] = create_car_generator 926.45 {y} -1292.29 {z} 13.6 {heading} 270.0 {modelId} 405 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 60 {doorLockChance} 30 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[2] = create_car_generator -2665.4399 {y} 990.77 {z} 64.45 {heading} 51.0 {modelId} 411 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 80 {doorLockChance} 50 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[3] = create_car_generator -2516.5979 {y} 1228.9189 {z} 36.4283 {heading} 211.5 {modelId} 483 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 30 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[4] = create_car_generator 1122.29 {y} -1699.76 {z} 13.43 {heading} 270.0 {modelId} 445 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[5] = create_car_generator -1006.41 {y} -628.27 {z} 32.0 {heading} 270.0 {modelId} 470 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[6] = create_car_generator -2085.23 {y} -2437.52 {z} 30.31 {heading} 142.0 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[7] = create_car_generator -1922.1899 {y} 288.34 {z} 40.84 {heading} 180.0 {modelId} 409 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[8] = create_car_generator -16.66 {y} -2521.1699 {z} 36.37 {heading} 210.0 {modelId} 533 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[9] = create_car_generator 1803.38 {y} -1931.05 {z} 13.66 {heading} 0.0 {modelId} 534 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[10] = create_car_generator 1272.24 {y} 2603.03 {z} 10.49 {heading} 117.0 {modelId} 415 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 90 {doorLockChance} 30 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[11] = create_car_generator -112.4 {y} -41.82 {z} 3.26 {heading} 160.0 {modelId} 489 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[12] = create_car_generator -2456.1001 {y} 741.65 {z} 34.92 {heading} 180.0 {modelId} 439 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[13] = create_car_generator -1951.8101 {y} 2393.8301 {z} 50.08 {heading} 292.0 {modelId} 514 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[14] = create_car_generator -2751.79 {y} -281.5 {z} 6.81 {heading} 0.0 {modelId} 480 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 90 {doorLockChance} 40 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[15] = create_car_generator 1923.9301 {y} -2118.8899 {z} 13.35 {heading} 0.0 {modelId} 535 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[16] = create_car_generator -1675.9399 {y} -618.74 {z} 13.86 {heading} 256.0 {modelId} 496 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[17] = create_car_generator -2430.22 {y} 320.84 {z} 34.97 {heading} 245.0 {modelId} 580 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[18] = create_car_generator -2265.3301 {y} 200.65 {z} 34.97 {heading} 270.0 {modelId} 475 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[19] = create_car_generator 2282.7 {y} 2535.8799 {z} 10.39 {heading} 180.0 {modelId} 521 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[20] = create_car_generator 2133.04 {y} 1009.75 {z} 10.49 {heading} 270.0 {modelId} 429 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 90 {doorLockChance} 50 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[21] = create_car_generator 2229.3 {y} 1402.99 {z} 10.82 {heading} 180.0 {modelId} 506 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 90 {doorLockChance} 50 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[22] = create_car_generator -1550.4 {y} 2687.54 {z} 56.22 {heading} 90.0 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[23] = create_car_generator -2068.6899 {y} -83.75 {z} 35.1 {heading} 0.0 {modelId} 579 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[24] = create_car_generator 682.17 {y} -1867.46 {z} 4.82 {heading} 180.0 {modelId} 424 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 70 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[25] = create_car_generator 1747.87 {y} -2098.03 {z} 13.28 {heading} 180.0 {modelId} 536 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 80 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[26] = create_car_generator 1144.46 {y} -1101.26 {z} 25.35 {heading} 300.0 {modelId} 463 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[27] = create_car_generator -2406.25 {y} -2180.8401 {z} 33.39 {heading} 180.0 {modelId} 500 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 70 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[28] = create_car_generator 2163.79 {y} 1810.23 {z} 10.58 {heading} 180.0 {modelId} 477 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 80 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
$impexp_car_gen[29] = create_car_generator 2207.4299 {y} 1286.13 {z} 10.57 {heading} 180.0 {modelId} 587 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 50 {doorLockChance} 10 {minDelay} 0 {maxDelay} 10000
switch_car_generator $impexp_car_gen[0] {amount} 0
switch_car_generator $impexp_car_gen[1] {amount} 0
switch_car_generator $impexp_car_gen[2] {amount} 0
switch_car_generator $impexp_car_gen[3] {amount} 0
switch_car_generator $impexp_car_gen[4] {amount} 0
switch_car_generator $impexp_car_gen[5] {amount} 0
switch_car_generator $impexp_car_gen[6] {amount} 0
switch_car_generator $impexp_car_gen[7] {amount} 0
switch_car_generator $impexp_car_gen[8] {amount} 0
switch_car_generator $impexp_car_gen[9] {amount} 0
switch_car_generator $impexp_car_gen[10] {amount} 0
switch_car_generator $impexp_car_gen[11] {amount} 0
switch_car_generator $impexp_car_gen[12] {amount} 0
switch_car_generator $impexp_car_gen[13] {amount} 0
switch_car_generator $impexp_car_gen[14] {amount} 0
switch_car_generator $impexp_car_gen[15] {amount} 0
switch_car_generator $impexp_car_gen[16] {amount} 0
switch_car_generator $impexp_car_gen[17] {amount} 0
switch_car_generator $impexp_car_gen[18] {amount} 0
switch_car_generator $impexp_car_gen[19] {amount} 0
switch_car_generator $impexp_car_gen[20] {amount} 0
switch_car_generator $impexp_car_gen[21] {amount} 0
switch_car_generator $impexp_car_gen[22] {amount} 0
switch_car_generator $impexp_car_gen[23] {amount} 0
switch_car_generator $impexp_car_gen[24] {amount} 0
switch_car_generator $impexp_car_gen[25] {amount} 0
switch_car_generator $impexp_car_gen[26] {amount} 0
switch_car_generator $impexp_car_gen[27] {amount} 0
switch_car_generator $impexp_car_gen[28] {amount} 0
switch_car_generator $impexp_car_gen[29] {amount} 0
$iFieldHarvester = create_car_generator -540.0441 {y} -1396.147 {z} 15.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2866 = create_car_generator -289.5517 {y} -1389.627 {z} 10.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2867 = create_car_generator -192.9 {y} -1331.307 {z} 21.5 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$iFieldTractor = create_car_generator -273.9629 {y} -1507.5959 {z} 5.0 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2861 = create_car_generator -395.1952 {y} -1293.1899 {z} 30.8 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2862 = create_car_generator -186.6494 {y} -1339.215 {z} 6.0 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2868 = create_car_generator -1030.249 {y} -1050.188 {z} 129.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2869 = create_car_generator -1169.425 {y} -989.6309 {z} 129.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2863 = create_car_generator -1110.79 {y} -947.7925 {z} 129.0 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2870 = create_car_generator 16.8768 {y} 49.991 {z} 3.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2871 = create_car_generator 81.051 {y} 3.3203 {z} 1.5 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2872 = create_car_generator -15.2986 {y} -84.6533 {z} 3.0 {heading} 0.0 {modelId} 532 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$2864 = create_car_generator 81.0533 {y} 3.3234 {z} 1.5 {heading} 0.0 {modelId} 531 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
switch_car_generator $iFieldHarvester {amount} 0
switch_car_generator $2866 {amount} 0
switch_car_generator $2867 {amount} 0
switch_car_generator $2868 {amount} 0
switch_car_generator $2869 {amount} 0
switch_car_generator $2870 {amount} 0
switch_car_generator $2871 {amount} 0
switch_car_generator $2872 {amount} 0
switch_car_generator $iFieldTractor {amount} 101
switch_car_generator $2861 {amount} 101
switch_car_generator $2862 {amount} 101
switch_car_generator $2863 {amount} 101
switch_car_generator $2864 {amount} 101
$hunter_created = 0
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
switch_entry_exit 'GF1' {state} False
switch_entry_exit 'GF2' {state} False
switch_entry_exit 'GF3' {state} False
switch_entry_exit 'GF4' {state} False
switch_entry_exit 'GF5' {state} False
switch_entry_exit 'GF6' {state} False
$played_casino4_before = 0
$played_vcrash1_before = 0
$played_ryder1_before = 0
$iSetOTBPanic = 0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2435.2 {fromY} -1741.0 {toX} 2454.8999 {toY} -1723.4 {spawnPoliceAAtX} 2481.0 {spawnPoliceAAtY} -1707.0 {headedTowardsAAtX} 2480.0 {headedTowardsAAtY} -1732.0 {spawnPoliceBAtX} 2481.0 {spawnPoliceBAtY} -1707.0 {headedTowardsBAtX} 2480.0 {headedTowardsBAtY} -1732.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2680.6001 {fromY} -1665.8 {toX} 2702.2 {toY} -1647.8 {spawnPoliceAAtX} 2724.7 {spawnPoliceAAtY} -1610.1 {headedTowardsAAtX} 2727.2 {headedTowardsAAtY} -1656.9 {spawnPoliceBAtX} 2724.0 {spawnPoliceBAtY} -1610.0 {headedTowardsBAtX} 2727.0 {headedTowardsBAtY} -1656.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2878.3999 {fromY} -1972.5 {toX} 2869.7 {toY} -1954.9 {spawnPoliceAAtX} 2890.0 {spawnPoliceAAtY} -1912.0 {headedTowardsAAtX} 2877.0 {headedTowardsAAtY} -1962.0 {spawnPoliceBAtX} 2893.0 {spawnPoliceBAtY} -2007.0 {headedTowardsBAtX} 2881.0 {headedTowardsBAtY} -1970.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2807.0 {fromY} -1152.0 {toX} 2822.0 {toY} -1135.0 {spawnPoliceAAtX} 2872.0 {spawnPoliceAAtY} -1105.0 {headedTowardsAAtX} 2874.0 {headedTowardsAAtY} -1133.0 {spawnPoliceBAtX} 2866.0 {spawnPoliceBAtY} -1111.0 {headedTowardsBAtX} 2864.0 {headedTowardsBAtY} -1138.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2261.0 {fromY} -1263.0 {toX} 2249.0 {toY} -1258.0 {spawnPoliceAAtX} 2173.0 {spawnPoliceAAtY} -1232.0 {headedTowardsAAtX} 2170.0 {headedTowardsAAtY} -1257.0 {spawnPoliceBAtX} 2184.0 {spawnPoliceBAtY} -1258.0 {headedTowardsBAtX} 2202.0 {headedTowardsBAtY} -1260.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2157.0 {fromY} -1500.0 {toX} 2173.0 {toY} -1495.0 {spawnPoliceAAtX} 2131.0 {spawnPoliceAAtY} -1461.0 {headedTowardsAAtX} 2131.0 {headedTowardsAAtY} -1495.0 {spawnPoliceBAtX} 2130.0 {spawnPoliceBAtY} -1460.0 {headedTowardsBAtX} 2131.0 {headedTowardsBAtY} -1494.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 2295.0 {fromY} -1772.0 {toX} 2302.0 {toY} -1761.0 {spawnPoliceAAtX} 2263.0 {spawnPoliceAAtY} -1780.0 {headedTowardsAAtX} 2263.0 {headedTowardsAAtY} -1809.0 {spawnPoliceBAtX} 2327.0 {spawnPoliceBAtY} -1821.0 {headedTowardsBAtX} 2303.0 {headedTowardsBAtY} -1817.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1518.0 {fromY} -1700.0 {toX} 1538.0 {toY} -1683.0 {spawnPoliceAAtX} 1564.0 {spawnPoliceAAtY} -1730.0 {headedTowardsAAtX} 1527.0 {headedTowardsAAtY} -1730.0 {spawnPoliceBAtX} 1565.0 {spawnPoliceBAtY} -1731.0 {headedTowardsBAtX} 1527.1 {headedTowardsBAtY} -1732.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2531.0 {fromY} -1861.0 {toX} 2547.0 {toY} -1839.0 {spawnPoliceAAtX} 2581.0 {spawnPoliceAAtY} -1911.0 {headedTowardsAAtX} 2578.0 {headedTowardsAAtY} -1865.0 {spawnPoliceBAtX} 2560.0 {spawnPoliceBAtY} -1896.0 {headedTowardsBAtX} 2561.0 {headedTowardsBAtY} -1848.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 1833.0 {fromY} -1617.0 {toX} 1854.0 {toY} -1608.0 {spawnPoliceAAtX} 1820.0 {spawnPoliceAAtY} -1590.0 {headedTowardsAAtX} 1818.0 {headedTowardsAAtY} -1605.0 {spawnPoliceBAtX} 1824.0 {spawnPoliceBAtY} -1641.0 {headedTowardsBAtX} 1824.0 {headedTowardsBAtY} -1619.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1694.0 {fromY} -1518.0 {toX} 1706.0 {toY} -1505.0 {spawnPoliceAAtX} 1720.0 {spawnPoliceAAtY} -1476.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} -1487.0 {spawnPoliceBAtX} 1718.0 {spawnPoliceBAtY} -1473.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} -1474.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1707.0 {fromY} -1467.0 {toX} 1711.0 {toY} -1457.0 {spawnPoliceAAtX} 1689.0 {spawnPoliceAAtY} -1443.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} -1444.0 {spawnPoliceBAtX} 1688.0 {spawnPoliceBAtY} -1443.0 {headedTowardsBAtX} -1709.0 {headedTowardsBAtY} -1444.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 1815.0 {fromY} -1406.0 {toX} 1829.0 {toY} -1388.0 {spawnPoliceAAtX} 1840.0 {spawnPoliceAAtY} -1410.0 {headedTowardsAAtX} 1835.0 {headedTowardsAAtY} -1402.0 {spawnPoliceBAtX} 1841.0 {spawnPoliceBAtY} -1411.0 {headedTowardsBAtX} 1836.0 {headedTowardsBAtY} -1403.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 1804.0 {fromY} -1353.0 {toX} 1807.0 {toY} -1342.0 {spawnPoliceAAtX} 1781.0 {spawnPoliceAAtY} -1366.0 {headedTowardsAAtX} 1784.0 {headedTowardsAAtY} -1352.0 {spawnPoliceBAtX} 1781.0 {spawnPoliceBAtY} -1366.0 {headedTowardsBAtX} 1784.0 {headedTowardsBAtY} -1352.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1710.0 {fromY} -1339.0 {toX} 1724.0 {toY} -1319.0 {spawnPoliceAAtX} 1684.0 {spawnPoliceAAtY} -1305.0 {headedTowardsAAtX} 1712.0 {headedTowardsAAtY} -1305.0 {spawnPoliceBAtX} 1684.0 {spawnPoliceBAtY} -1305.0 {headedTowardsBAtX} 1712.0 {headedTowardsBAtY} -1305.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1711.0 {fromY} -1204.0 {toX} 1720.0 {toY} -1194.0 {spawnPoliceAAtX} 1747.0 {spawnPoliceAAtY} -1160.0 {headedTowardsAAtX} 1712.0 {headedTowardsAAtY} -1159.0 {spawnPoliceBAtX} 1747.0 {spawnPoliceBAtY} -1160.0 {headedTowardsBAtX} 1712.0 {headedTowardsBAtY} -1159.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2389.0 {fromY} -1479.0 {toX} 2404.0 {toY} -1469.0 {spawnPoliceAAtX} 2429.0 {spawnPoliceAAtY} -1457.0 {headedTowardsAAtX} 2429.0 {headedTowardsAAtY} -1479.0 {spawnPoliceBAtX} 2428.0 {spawnPoliceBAtY} -1456.0 {headedTowardsBAtX} 2430.0 {headedTowardsBAtY} -1480.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2443.0 {fromY} -1221.0 {toX} 2457.0 {toY} -1209.0 {spawnPoliceAAtX} 2474.0 {spawnPoliceAAtY} -1253.0 {headedTowardsAAtX} 2447.0 {headedTowardsAAtY} -1255.0 {spawnPoliceBAtX} 2475.0 {spawnPoliceBAtY} -1254.0 {headedTowardsBAtX} 2448.0 {headedTowardsBAtY} -1256.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2627.0 {fromY} -1134.0 {toX} 2632.0 {toY} -1132.0 {spawnPoliceAAtX} 2649.0 {spawnPoliceAAtY} -1150.0 {headedTowardsAAtX} 2642.0 {headedTowardsAAtY} -1139.0 {spawnPoliceBAtX} 2650.0 {spawnPoliceBAtY} -1151.0 {headedTowardsBAtX} 2643.0 {headedTowardsBAtY} -1140.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2677.0 {fromY} -1095.0 {toX} 2697.0 {toY} -1060.0 {spawnPoliceAAtX} 2645.0 {spawnPoliceAAtY} -1106.0 {headedTowardsAAtX} 2646.0 {headedTowardsAAtY} -1077.0 {spawnPoliceBAtX} 2646.0 {spawnPoliceBAtY} -1107.0 {headedTowardsBAtX} 2647.0 {headedTowardsBAtY} -1078.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1947.0 {fromY} -1055.0 {toX} 1955.0 {toY} -1038.0 {spawnPoliceAAtX} 1989.0 {spawnPoliceAAtY} -1025.0 {headedTowardsAAtX} 1978.0 {headedTowardsAAtY} -1057.0 {spawnPoliceBAtX} 1990.0 {spawnPoliceBAtY} -1026.0 {headedTowardsBAtX} 1979.0 {headedTowardsBAtY} -1058.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1858.0 {fromY} -1123.0 {toX} 1876.0 {toY} -1113.0 {spawnPoliceAAtX} 1895.0 {spawnPoliceAAtY} -1133.0 {headedTowardsAAtX} 1865.0 {headedTowardsAAtY} -1133.0 {spawnPoliceBAtX} 1896.0 {spawnPoliceBAtY} -1134.0 {headedTowardsBAtX} 1866.0 {headedTowardsBAtY} -1134.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1977.0 {fromY} -1416.0 {toX} 1996.0 {toY} -1411.0 {spawnPoliceAAtX} 1966.0 {spawnPoliceAAtY} -1467.0 {headedTowardsAAtX} 1988.0 {headedTowardsAAtY} -1465.0 {spawnPoliceBAtX} 1967.0 {spawnPoliceBAtY} -1468.0 {headedTowardsBAtX} 1989.0 {headedTowardsBAtY} -1466.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2191.0 {fromY} -1345.0 {toX} 2202.0 {toY} -1338.0 {spawnPoliceAAtX} 2216.0 {spawnPoliceAAtY} -1355.0 {headedTowardsAAtX} 2216.0 {headedTowardsAAtY} -1343.0 {spawnPoliceBAtX} 2217.0 {spawnPoliceBAtY} -1356.0 {headedTowardsBAtX} 2217.0 {headedTowardsBAtY} -1344.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2339.0 {fromY} -1161.0 {toX} 2345.0 {toY} -1148.0 {spawnPoliceAAtX} 2372.0 {spawnPoliceAAtY} -1182.0 {headedTowardsAAtX} 2373.0 {headedTowardsAAtY} -1157.0 {spawnPoliceBAtX} 2373.0 {spawnPoliceBAtY} -1183.0 {headedTowardsBAtX} 2374.0 {headedTowardsBAtY} -1158.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2034.0 {fromY} -1271.0 {toX} 2049.0 {toY} -1251.0 {spawnPoliceAAtX} 2072.0 {spawnPoliceAAtY} -1281.0 {headedTowardsAAtX} 2070.0 {headedTowardsAAtY} -1261.0 {spawnPoliceBAtX} 2073.0 {spawnPoliceBAtY} -1282.0 {headedTowardsBAtX} 2070.0 {headedTowardsBAtY} -2074.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 1410.0 {fromY} -1250.0 {toX} 1427.0 {toY} -1233.0 {spawnPoliceAAtX} 1457.0 {spawnPoliceAAtY} -1263.0 {headedTowardsAAtX} 1456.0 {headedTowardsAAtY} -1243.0 {spawnPoliceBAtX} 1452.0 {spawnPoliceBAtY} -1211.0 {headedTowardsBAtX} 1453.0 {headedTowardsBAtY} -1238.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1427.0 {fromY} -1334.0 {toX} 1433.0 {toY} -1323.0 {spawnPoliceAAtX} 1419.0 {spawnPoliceAAtY} -1270.0 {headedTowardsAAtX} 1419.0 {headedTowardsAAtY} -1286.0 {spawnPoliceBAtX} 1420.0 {spawnPoliceBAtY} -1253.0 {headedTowardsBAtX} 1419.0 {headedTowardsBAtY} -1257.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1520.0 {fromY} -1655.0 {toX} 1538.0 {toY} -1642.0 {spawnPoliceAAtX} 1561.0 {spawnPoliceAAtY} -1626.0 {headedTowardsAAtX} 1530.0 {headedTowardsAAtY} -1627.0 {spawnPoliceBAtX} 1562.0 {spawnPoliceBAtY} -1620.0 {headedTowardsBAtX} 1531.0 {headedTowardsBAtY} -1622.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1129.0 {fromY} -1669.0 {toX} 1140.0 {toY} -1663.0 {spawnPoliceAAtX} 1095.0 {spawnPoliceAAtY} -1665.0 {headedTowardsAAtX} 1130.0 {headedTowardsAAtY} -1665.0 {spawnPoliceBAtX} 1117.0 {spawnPoliceBAtY} -1714.0 {headedTowardsBAtX} 1138.0 {headedTowardsBAtY} -1715.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1167.0 {fromY} -1782.0 {toX} 1190.0 {toY} -1769.0 {spawnPoliceAAtX} 1148.0 {spawnPoliceAAtY} -1744.0 {headedTowardsAAtX} 1176.0 {headedTowardsAAtY} -1743.0 {spawnPoliceBAtX} 1141.0 {spawnPoliceBAtY} -1739.0 {headedTowardsBAtX} 1175.0 {headedTowardsBAtY} -1737.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1207.0 {fromY} -1214.0 {toX} 1216.0 {toY} -1193.0 {spawnPoliceAAtX} 1175.0 {spawnPoliceAAtY} -1210.0 {headedTowardsAAtX} 1194.0 {headedTowardsAAtY} -1209.0 {spawnPoliceBAtX} 1179.0 {spawnPoliceBAtY} -1204.0 {headedTowardsBAtX} 1197.0 {headedTowardsBAtY} -1204.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 1261.0 {fromY} -1721.0 {toX} 1271.0 {toY} -1707.0 {spawnPoliceAAtX} 1295.0 {spawnPoliceAAtY} -1680.0 {headedTowardsAAtX} 1295.0 {headedTowardsAAtY} -1717.0 {spawnPoliceBAtX} 1300.0 {spawnPoliceBAtY} -1670.0 {headedTowardsBAtX} 1300.0 {headedTowardsBAtY} -1704.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1237.0 {fromY} -1290.0 {toX} 1257.0 {toY} -1271.0 {spawnPoliceAAtX} 1214.0 {spawnPoliceAAtY} -1253.0 {headedTowardsAAtX} 1215.0 {headedTowardsAAtY} -1281.0 {spawnPoliceBAtX} 1215.0 {spawnPoliceBAtY} -1215.0 {headedTowardsBAtX} -1215.0 {headedTowardsBAtY} -1281.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1013.0 {fromY} -1158.0 {toX} 1030.0 {toY} -1132.0 {spawnPoliceAAtX} 1060.0 {spawnPoliceAAtY} -1174.0 {headedTowardsAAtX} 1060.0 {headedTowardsAAtY} -1148.0 {spawnPoliceBAtX} 1060.0 {spawnPoliceBAtY} -1174.0 {headedTowardsBAtX} 1060.0 {headedTowardsBAtY} -1148.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1089.0 {fromY} -1212.0 {toX} 1076.0 {toY} -1204.0 {spawnPoliceAAtX} 1061.0 {spawnPoliceAAtY} -1223.0 {headedTowardsAAtX} 1064.0 {headedTowardsAAtY} -1205.0 {spawnPoliceBAtX} 1061.0 {spawnPoliceBAtY} -1223.0 {headedTowardsBAtX} 1064.0 {headedTowardsBAtY} -1205.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 953.0 {fromY} -1108.0 {toX} 945.0 {toY} -1097.0 {spawnPoliceAAtX} 928.0 {spawnPoliceAAtY} -1084.0 {headedTowardsAAtX} 937.0 {headedTowardsAAtY} -1099.0 {spawnPoliceBAtX} 928.0 {spawnPoliceBAtY} -1084.0 {headedTowardsBAtX} 937.0 {headedTowardsBAtY} -1099.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 829.0 {fromY} -1066.0 {toX} 830.0 {toY} -1057.0 {spawnPoliceAAtX} 837.0 {spawnPoliceAAtY} -1049.0 {headedTowardsAAtX} 828.0 {headedTowardsAAtY} -1055.0 {spawnPoliceBAtX} 837.0 {spawnPoliceBAtY} -1049.0 {headedTowardsBAtX} 828.0 {headedTowardsBAtY} -1055.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 816.0 {fromY} -1048.0 {toX} 840.0 {toY} -1030.0 {spawnPoliceAAtX} 793.0 {spawnPoliceAAtY} -1015.0 {headedTowardsAAtX} 791.0 {headedTowardsAAtY} -1055.0 {spawnPoliceBAtX} 793.0 {spawnPoliceBAtY} -1015.0 {headedTowardsBAtX} 791.0 {headedTowardsBAtY} -1055.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 642.0 {fromY} -1197.0 {toX} 676.0 {toY} -1187.0 {spawnPoliceAAtX} 597.0 {spawnPoliceAAtY} -1183.0 {headedTowardsAAtX} 616.0 {headedTowardsAAtY} -1211.0 {spawnPoliceBAtX} 597.0 {spawnPoliceBAtY} -1193.0 {headedTowardsBAtX} 616.0 {headedTowardsBAtY} -1211.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 618.0 {fromY} -1287.0 {toX} 647.0 {toY} -1272.0 {spawnPoliceAAtX} 665.0 {spawnPoliceAAtY} -1317.0 {headedTowardsAAtX} 632.0 {headedTowardsAAtY} -1317.0 {spawnPoliceBAtX} 662.0 {spawnPoliceBAtY} -1317.0 {headedTowardsBAtX} 632.0 {headedTowardsBAtY} -1317.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 457.0 {fromY} -1364.0 {toX} 487.0 {toY} -1357.0 {spawnPoliceAAtX} 493.0 {spawnPoliceAAtY} -1323.0 {headedTowardsAAtX} 501.0 {headedTowardsAAtY} -1340.0 {spawnPoliceBAtX} 498.0 {spawnPoliceBAtY} -1317.0 {headedTowardsBAtX} 513.0 {headedTowardsBAtY} -1350.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 523.0 {fromY} -1456.0 {toX} 555.0 {toY} -1442.0 {spawnPoliceAAtX} 569.0 {spawnPoliceAAtY} -1404.0 {headedTowardsAAtX} 532.0 {headedTowardsAAtY} -1413.0 {spawnPoliceBAtX} 567.0 {spawnPoliceBAtY} -1399.0 {headedTowardsBAtX} 525.0 {headedTowardsBAtY} -1407.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 478.0 {fromY} -1488.0 {toX} 496.0 {toY} -1472.0 {spawnPoliceAAtX} 491.0 {spawnPoliceAAtY} -1518.0 {headedTowardsAAtX} 490.0 {headedTowardsAAtY} -1501.0 {spawnPoliceBAtX} 490.0 {spawnPoliceBAtY} -1521.0 {headedTowardsBAtX} 487.0 {headedTowardsBAtY} -1497.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 470.0 {fromY} -1604.0 {toX} 490.0 {toY} -1573.0 {spawnPoliceAAtX} 540.0 {spawnPoliceAAtY} -1626.0 {headedTowardsAAtX} 540.0 {headedTowardsAAtY} -1583.0 {spawnPoliceBAtX} 540.0 {spawnPoliceBAtY} -1626.0 {headedTowardsBAtX} 540.0 {headedTowardsBAtY} -1583.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 519.0 {fromY} -1687.0 {toX} 544.0 {toY} -1676.0 {spawnPoliceAAtX} 486.0 {spawnPoliceAAtY} -1727.0 {headedTowardsAAtX} 534.0 {headedTowardsAAtY} -1734.0 {spawnPoliceBAtX} 486.0 {spawnPoliceBAtY} -1727.0 {headedTowardsBAtX} 534.0 {headedTowardsBAtY} -1734.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 380.0 {fromY} -1803.0 {toX} 394.0 {toY} -1798.0 {spawnPoliceAAtX} 363.0 {spawnPoliceAAtY} -1833.0 {headedTowardsAAtX} 373.0 {headedTowardsAAtY} -1819.0 {spawnPoliceBAtX} 385.0 {spawnPoliceBAtY} -1831.0 {headedTowardsBAtX} 373.0 {headedTowardsBAtY} -1819.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2134.0 {fromY} -1904.0 {toX} 2156.0 {toY} -1885.0 {spawnPoliceAAtX} 2105.0 {spawnPoliceAAtY} -1919.0 {headedTowardsAAtX} 2105.0 {headedTowardsAAtY} -1899.0 {spawnPoliceBAtX} 2079.0 {spawnPoliceBAtY} -1871.0 {headedTowardsBAtX} 2080.0 {headedTowardsBAtY} -1898.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1953.0 {fromY} -1988.0 {toX} 1971.0 {toY} -1966.0 {spawnPoliceAAtX} 1985.0 {spawnPoliceAAtY} -1930.0 {headedTowardsAAtX} 1967.0 {headedTowardsAAtY} -1929.0 {spawnPoliceBAtX} 1927.0 {spawnPoliceBAtY} -1935.0 {headedTowardsBAtX} 1953.0 {headedTowardsBAtY} -1935.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 2015.0 {fromY} -2064.0 {toX} 2026.0 {toY} -2052.0 {spawnPoliceAAtX} 2009.0 {spawnPoliceAAtY} -2010.0 {headedTowardsAAtX} 2007.0 {headedTowardsAAtY} -2033.0 {spawnPoliceBAtX} 1970.0 {spawnPoliceBAtY} -2059.0 {headedTowardsBAtX} 1988.0 {headedTowardsBAtY} -2058.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1997.0 {fromY} -2077.0 {toX} 2009.0 {toY} -2065.0 {spawnPoliceAAtX} 2041.0 {spawnPoliceAAtY} -2056.0 {headedTowardsAAtX} 2016.0 {headedTowardsAAtY} -2058.0 {spawnPoliceBAtX} 2027.0 {spawnPoliceBAtY} -2084.0 {headedTowardsBAtX} 2005.0 {headedTowardsBAtY} -2084.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1924.0 {fromY} -2108.0 {toX} 1935.0 {toY} -2096.0 {spawnPoliceAAtX} 1917.0 {spawnPoliceAAtY} -2074.0 {headedTowardsAAtX} 1917.0 {headedTowardsAAtY} -2094.0 {spawnPoliceBAtX} 1917.0 {spawnPoliceBAtY} -2138.0 {headedTowardsBAtX} 1917.0 {headedTowardsBAtY} -2116.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1847.0 {fromY} -2108.0 {toX} 1860.0 {toY} -2097.0 {spawnPoliceAAtX} 1821.0 {spawnPoliceAAtY} -2089.0 {headedTowardsAAtX} 1820.0 {headedTowardsAAtY} -2101.0 {spawnPoliceBAtX} 1903.0 {spawnPoliceBAtY} -2101.0 {headedTowardsBAtX} 1883.0 {headedTowardsBAtY} -2101.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} 1861.0 {fromY} -2010.0 {toX} 1870.0 {toY} -2005.0 {spawnPoliceAAtX} 1885.0 {spawnPoliceAAtY} -2041.0 {headedTowardsAAtX} 1886.0 {headedTowardsAAtY} -2021.0 {spawnPoliceBAtX} 1880.0 {spawnPoliceBAtY} -2044.0 {headedTowardsBAtX} 1878.0 {headedTowardsBAtY} -2016.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1751.0 {fromY} -2388.0 {toX} 1781.0 {toY} -2369.0 {spawnPoliceAAtX} 1799.0 {spawnPoliceAAtY} -2345.0 {headedTowardsAAtX} 1798.0 {headedTowardsAAtY} -2377.0 {spawnPoliceBAtX} 1799.0 {spawnPoliceBAtY} -2345.0 {headedTowardsBAtX} 1798.0 {headedTowardsBAtY} -2377.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1314.0 {fromY} -2423.0 {toX} 1325.0 {toY} -2410.0 {spawnPoliceAAtX} 1339.0 {spawnPoliceAAtY} -2446.0 {headedTowardsAAtX} 1317.0 {headedTowardsAAtY} -2446.0 {spawnPoliceBAtX} 1339.0 {spawnPoliceBAtY} -2446.0 {headedTowardsBAtX} 1317.0 {headedTowardsBAtY} -2446.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1551.0 {fromY} -1636.0 {toX} 1562.0 {toY} -1618.0 {spawnPoliceAAtX} 1531.0 {spawnPoliceAAtY} -1660.0 {headedTowardsAAtX} 1532.0 {headedTowardsAAtY} -1632.0 {spawnPoliceBAtX} 1531.0 {spawnPoliceBAtY} -1660.0 {headedTowardsBAtX} 1532.0 {headedTowardsBAtY} -1632.0
add_set_piece 8 {fromX} 1225.0 {fromY} -1880.0 {toX} 1237.0 {toY} -1866.0 {spawnPoliceAAtX} 1180.0 {spawnPoliceAAtY} -1884.0 {headedTowardsAAtX} 1213.0 {headedTowardsAAtY} -1885.0 {spawnPoliceBAtX} 1169.0 {spawnPoliceBAtY} -1887.0 {headedTowardsBAtX} 1194.0 {headedTowardsBAtY} -1888.0
add_set_piece 8 {fromX} 1076.0 {fromY} -1890.0 {toX} 1097.0 {toY} -1881.0 {spawnPoliceAAtX} 1161.0 {spawnPoliceAAtY} -1880.0 {headedTowardsAAtX} 1108.0 {headedTowardsAAtY} -1883.0 {spawnPoliceBAtX} 1050.0 {spawnPoliceBAtY} -1894.0 {headedTowardsBAtX} 1084.0 {headedTowardsBAtY} -1887.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1059.0 {fromY} -1721.0 {toX} 1090.0 {toY} -1703.0 {spawnPoliceAAtX} 1034.0 {spawnPoliceAAtY} -1674.0 {headedTowardsAAtX} 1039.0 {headedTowardsAAtY} -1713.0 {spawnPoliceBAtX} 1034.0 {spawnPoliceBAtY} -1674.0 {headedTowardsBAtX} 1039.0 {headedTowardsBAtY} -1713.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1028.0 {fromY} -1690.0 {toX} 1048.0 {toY} -1657.0 {spawnPoliceAAtX} 1079.0 {spawnPoliceAAtY} -1710.0 {headedTowardsAAtX} 1037.0 {headedTowardsAAtY} -1709.0 {spawnPoliceBAtX} 1079.0 {spawnPoliceBAtY} -1710.0 {headedTowardsBAtX} 1037.0 {headedTowardsBAtY} -1709.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 982.0 {fromY} -1913.0 {toX} 953.0 {toY} -1858.0 {spawnPoliceAAtX} 980.0 {spawnPoliceAAtY} -1852.0 {headedTowardsAAtX} 966.0 {headedTowardsAAtY} -1860.0 {spawnPoliceBAtX} 946.0 {spawnPoliceBAtY} -1846.0 {headedTowardsBAtX} 956.0 {headedTowardsBAtY} -1857.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 849.0 {fromY} -1899.0 {toX} 823.0 {toY} -1937.0 {spawnPoliceAAtX} 836.0 {spawnPoliceAAtY} -2017.0 {headedTowardsAAtX} 839.0 {headedTowardsAAtY} -1993.0 {spawnPoliceBAtX} 848.0 {spawnPoliceBAtY} -2020.0 {headedTowardsBAtX} 842.0 {headedTowardsBAtY} -1990.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 820.0 {fromY} -1844.0 {toX} 848.0 {toY} -1819.0 {spawnPoliceAAtX} 789.0 {spawnPoliceAAtY} -1786.0 {headedTowardsAAtX} 827.0 {headedTowardsAAtY} -1786.0 {spawnPoliceBAtX} 881.0 {spawnPoliceBAtY} -1772.0 {headedTowardsBAtX} 827.0 {headedTowardsBAtY} -1772.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 788.0 {fromY} -1816.0 {toX} 780.0 {toY} -1800.0 {spawnPoliceAAtX} 786.0 {spawnPoliceAAtY} -1835.0 {headedTowardsAAtX} 781.0 {headedTowardsAAtY} -1820.0 {spawnPoliceBAtX} 786.0 {spawnPoliceBAtY} -1835.0 {headedTowardsBAtX} 781.0 {headedTowardsBAtY} -1820.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 740.0 {fromY} -1815.0 {toX} 759.0 {toY} -1808.0 {spawnPoliceAAtX} 738.0 {spawnPoliceAAtY} -1790.0 {headedTowardsAAtX} 737.0 {headedTowardsAAtY} -1806.0 {spawnPoliceBAtX} 744.0 {spawnPoliceBAtY} -1836.0 {headedTowardsBAtX} 746.0 {headedTowardsBAtY} -1819.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 717.0 {fromY} -1819.0 {toX} 727.0 {toY} -1805.0 {spawnPoliceAAtX} 745.0 {spawnPoliceAAtY} -1827.0 {headedTowardsAAtX} 746.0 {headedTowardsAAtY} -1815.0 {spawnPoliceBAtX} 735.0 {spawnPoliceBAtY} -1792.0 {headedTowardsBAtX} 728.0 {headedTowardsBAtY} -1813.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 624.0 {fromY} -1786.0 {toX} 641.0 {toY} -1778.0 {spawnPoliceAAtX} 644.0 {spawnPoliceAAtY} -1799.0 {headedTowardsAAtX} 647.0 {headedTowardsAAtY} -1789.0 {spawnPoliceBAtX} 651.0 {spawnPoliceBAtY} -1767.0 {headedTowardsBAtX} 649.0 {headedTowardsBAtY} -1783.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 606.0 {fromY} -1786.0 {toX} 622.0 {toY} -1770.0 {spawnPoliceAAtX} 656.0 {spawnPoliceAAtY} -1759.0 {headedTowardsAAtX} 649.0 {headedTowardsAAtY} -1787.0 {spawnPoliceBAtX} 656.0 {spawnPoliceBAtY} -1759.0 {headedTowardsBAtX} 649.0 {headedTowardsBAtY} -1787.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 586.0 {fromY} -1868.0 {toX} 612.0 {toY} -1835.0 {spawnPoliceAAtX} 648.0 {spawnPoliceAAtY} -1818.0 {headedTowardsAAtX} 643.0 {headedTowardsAAtY} -1856.0 {spawnPoliceBAtX} 648.0 {spawnPoliceBAtY} -1818.0 {headedTowardsBAtX} 643.0 {headedTowardsBAtY} -1856.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 541.0 {fromY} -1778.0 {toX} 562.0 {toY} -1762.0 {spawnPoliceAAtX} 593.0 {spawnPoliceAAtY} -1775.0 {headedTowardsAAtX} 573.0 {headedTowardsAAtY} -1772.0 {spawnPoliceBAtX} 593.0 {spawnPoliceBAtY} -1772.0 {headedTowardsBAtX} 573.0 {headedTowardsBAtY} -1772.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 511.0 {fromY} -1777.0 {toX} 478.0 {toY} -1762.0 {spawnPoliceAAtX} 455.0 {spawnPoliceAAtY} -1737.0 {headedTowardsAAtX} 458.0 {headedTowardsAAtY} -1769.0 {spawnPoliceBAtX} 455.0 {spawnPoliceBAtY} -1737.0 {headedTowardsBAtX} 458.0 {headedTowardsBAtY} -1769.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 381.0 {fromY} -1806.0 {toX} 398.0 {toY} -1790.0 {spawnPoliceAAtX} 385.0 {spawnPoliceAAtY} -1825.0 {headedTowardsAAtX} 383.0 {headedTowardsAAtY} -1806.0 {spawnPoliceBAtX} 364.0 {spawnPoliceBAtY} -1831.0 {headedTowardsBAtX} 377.0 {headedTowardsBAtY} -1810.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 361.0 {fromY} -1689.0 {toX} 379.0 {toY} -1667.0 {spawnPoliceAAtX} 401.0 {spawnPoliceAAtY} -1650.0 {headedTowardsAAtX} 372.0 {headedTowardsAAtY} -1646.0 {spawnPoliceBAtX} 334.0 {spawnPoliceBAtY} -1646.0 {headedTowardsBAtX} 365.0 {headedTowardsBAtY} -1649.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 289.0 {fromY} -1647.0 {toX} 314.0 {toY} -1631.0 {spawnPoliceAAtX} 321.0 {spawnPoliceAAtY} -1597.0 {headedTowardsAAtX} 321.0 {headedTowardsAAtY} -1642.0 {spawnPoliceBAtX} 321.0 {spawnPoliceBAtY} -1597.0 {headedTowardsBAtX} 321.0 {headedTowardsBAtY} -1642.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 225.0 {fromY} -1610.0 {toX} 252.0 {toY} -1590.0 {spawnPoliceAAtX} 274.0 {spawnPoliceAAtY} -1576.0 {headedTowardsAAtX} 242.0 {headedTowardsAAtY} -1566.0 {spawnPoliceBAtX} 274.0 {spawnPoliceBAtY} -1576.0 {headedTowardsBAtX} 242.0 {headedTowardsBAtY} -1566.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 301.0 {fromY} -1472.0 {toX} 336.0 {toY} -1467.0 {spawnPoliceAAtX} 269.0 {spawnPoliceAAtY} -1476.0 {headedTowardsAAtX} 291.0 {headedTowardsAAtY} -1497.0 {spawnPoliceBAtX} 269.0 {spawnPoliceBAtY} -1476.0 {headedTowardsBAtX} 291.0 {headedTowardsBAtY} -1497.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 196.0 {fromY} -1528.0 {toX} 223.0 {toY} -1508.0 {spawnPoliceAAtX} 193.0 {spawnPoliceAAtY} -1489.0 {headedTowardsAAtX} 179.0 {headedTowardsAAtY} -1512.0 {spawnPoliceBAtX} 174.0 {spawnPoliceBAtY} -1579.0 {headedTowardsBAtX} 147.0 {headedTowardsBAtY} -1554.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 221.0 {fromY} -1367.0 {toX} 226.0 {toY} -1337.0 {spawnPoliceAAtX} 228.0 {spawnPoliceAAtY} -1310.0 {headedTowardsAAtX} 246.0 {headedTowardsAAtY} -1336.0 {spawnPoliceBAtX} 228.0 {spawnPoliceBAtY} -1310.0 {headedTowardsBAtX} 246.0 {headedTowardsBAtY} -1336.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 427.0 {fromY} -1238.0 {toX} 450.0 {toY} -1229.0 {spawnPoliceAAtX} 391.0 {spawnPoliceAAtY} -1225.0 {headedTowardsAAtX} 402.0 {headedTowardsAAtY} -1252.0 {spawnPoliceBAtX} 391.0 {spawnPoliceBAtY} -1225.0 {headedTowardsBAtX} 402.0 {headedTowardsBAtY} -1252.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 478.0 {fromY} -1257.0 {toX} 478.0 {toY} -1227.0 {spawnPoliceAAtX} 489.0 {spawnPoliceAAtY} -1281.0 {headedTowardsAAtX} 508.0 {headedTowardsAAtY} -1265.0 {spawnPoliceBAtX} 489.0 {spawnPoliceBAtY} -1281.0 {headedTowardsBAtX} 508.0 {headedTowardsBAtY} -1265.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 337.0 {fromY} -1176.0 {toX} 371.0 {toY} -1170.0 {spawnPoliceAAtX} 395.0 {spawnPoliceAAtY} -1169.0 {headedTowardsAAtX} 362.0 {headedTowardsAAtY} -1141.0 {spawnPoliceBAtX} 344.0 {spawnPoliceBAtY} -1131.0 {headedTowardsBAtX} 381.0 {headedTowardsBAtY} -1167.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1798.0 {fromY} 796.0 {toX} 1816.0 {toY} 823.0 {spawnPoliceAAtX} 1760.0 {spawnPoliceAAtY} 832.0 {headedTowardsAAtX} 1809.0 {headedTowardsAAtY} 834.0 {spawnPoliceBAtX} 1760.0 {spawnPoliceBAtY} 832.0 {headedTowardsBAtX} 1809.0 {headedTowardsBAtY} 834.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2032.0 {fromY} 892.0 {toX} 2056.0 {toY} 919.0 {spawnPoliceAAtX} 2086.0 {spawnPoliceAAtY} 856.0 {headedTowardsAAtX} 2047.0 {headedTowardsAAtY} 856.0 {spawnPoliceBAtX} 2086.0 {spawnPoliceBAtY} 856.0 {headedTowardsBAtX} 2047.0 {headedTowardsBAtY} 856.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2034.0 {fromY} 985.0 {toX} 2053.0 {toY} 1024.0 {spawnPoliceAAtX} 2074.0 {spawnPoliceAAtY} 975.0 {headedTowardsAAtX} 2044.0 {headedTowardsAAtY} 974.0 {spawnPoliceBAtX} 2074.0 {spawnPoliceBAtY} 975.0 {headedTowardsBAtX} 2044.0 {headedTowardsBAtY} 974.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2035.0 {fromY} 1228.0 {toX} 2056.0 {toY} 1254.0 {spawnPoliceAAtX} 2021.0 {spawnPoliceAAtY} 1275.0 {headedTowardsAAtX} 2051.0 {headedTowardsAAtY} 1277.0 {spawnPoliceBAtX} 2021.0 {spawnPoliceBAtY} 1275.0 {headedTowardsBAtX} 2051.0 {headedTowardsBAtY} 1277.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2114.0 {fromY} 2071.0 {toX} 2136.0 {toY} 2096.0 {spawnPoliceAAtX} 2098.0 {spawnPoliceAAtY} 2020.0 {headedTowardsAAtX} 2131.0 {headedTowardsAAtY} 2020.0 {spawnPoliceBAtX} 2098.0 {spawnPoliceBAtY} 2020.0 {headedTowardsBAtX} 2131.0 {headedTowardsBAtY} 2020.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1937.0 {fromY} 2104.0 {toX} 1954.0 {toY} 2122.0 {spawnPoliceAAtX} 1925.0 {spawnPoliceAAtY} 2139.0 {headedTowardsAAtX} 1926.0 {headedTowardsAAtY} 2110.0 {spawnPoliceBAtX} 1925.0 {spawnPoliceBAtY} 2139.0 {headedTowardsBAtX} 1926.0 {headedTowardsBAtY} 2110.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1836.0 {fromY} 2044.0 {toX} 1858.0 {toY} 2059.0 {spawnPoliceAAtX} 1815.0 {spawnPoliceAAtY} 2080.0 {headedTowardsAAtX} 1821.0 {headedTowardsAAtY} 2051.0 {spawnPoliceBAtX} 1815.0 {spawnPoliceBAtY} 2080.0 {headedTowardsBAtX} 1821.0 {headedTowardsBAtY} 2051.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1721.0 {fromY} 2044.0 {toX} 1739.0 {toY} 2063.0 {spawnPoliceAAtX} 1710.0 {spawnPoliceAAtY} 2023.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} 2051.0 {spawnPoliceBAtX} 1710.0 {spawnPoliceBAtY} 2023.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} 2051.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1699.0 {fromY} 2134.0 {toX} 1717.0 {toY} 2152.0 {spawnPoliceAAtX} 1734.0 {spawnPoliceAAtY} 2172.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} 2171.0 {spawnPoliceBAtX} 1729.0 {spawnPoliceBAtY} 2175.0 {headedTowardsBAtX} 1694.0 {headedTowardsBAtY} 2175.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1581.0 {fromY} 2164.0 {toX} 1600.0 {toY} 2182.0 {spawnPoliceAAtX} 1616.0 {spawnPoliceAAtY} 2143.0 {headedTowardsAAtX} 1615.0 {headedTowardsAAtY} 2170.0 {spawnPoliceBAtX} 1621.0 {spawnPoliceBAtY} 2146.0 {headedTowardsBAtX} 1622.0 {headedTowardsBAtY} 2182.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1522.0 {fromY} 2044.0 {toX} 1538.0 {toY} 2060.0 {spawnPoliceAAtX} 1529.0 {spawnPoliceAAtY} 2083.0 {headedTowardsAAtX} 1532.0 {headedTowardsAAtY} 2055.0 {spawnPoliceBAtX} 1525.0 {spawnPoliceBAtY} 2087.0 {headedTowardsBAtX} 1525.0 {headedTowardsBAtY} 2056.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1466.0 {fromY} 1989.0 {toX} 1490.0 {toY} 2003.0 {spawnPoliceAAtX} 1457.0 {spawnPoliceAAtY} 2024.0 {headedTowardsAAtX} 1476.0 {headedTowardsAAtY} 2009.0 {spawnPoliceBAtX} 1499.0 {spawnPoliceBAtY} 2027.0 {headedTowardsBAtX} 1483.0 {headedTowardsBAtY} 2006.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1429.0 {fromY} 2617.0 {toX} 1439.0 {toY} 2624.0 {spawnPoliceAAtX} 1422.0 {spawnPoliceAAtY} 2615.0 {headedTowardsAAtX} 1433.0 {headedTowardsAAtY} 2619.0 {spawnPoliceBAtX} 1446.0 {spawnPoliceBAtY} 2615.0 {headedTowardsBAtX} 1434.0 {headedTowardsBAtY} 2622.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1469.0 {fromY} 2545.0 {toX} 1487.0 {toY} 2568.0 {spawnPoliceAAtX} 1500.0 {spawnPoliceAAtY} 2592.0 {headedTowardsAAtX} 1474.0 {headedTowardsAAtY} 2591.0 {spawnPoliceBAtX} 1500.0 {spawnPoliceBAtY} 2592.0 {headedTowardsBAtX} 1474.0 {headedTowardsBAtY} 2591.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1300.0 {fromY} 2580.0 {toX} 1325.0 {toY} 2599.0 {spawnPoliceAAtX} 1291.0 {spawnPoliceAAtY} 2568.0 {headedTowardsAAtX} 1291.0 {headedTowardsAAtY} 2597.0 {spawnPoliceBAtX} 1291.0 {spawnPoliceBAtY} 2568.0 {headedTowardsBAtX} 1291.0 {headedTowardsBAtY} 2597.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2240.0 {fromY} 2460.0 {toX} 2246.0 {toY} 2449.0 {spawnPoliceAAtX} 2230.0 {spawnPoliceAAtY} 2433.0 {headedTowardsAAtX} 2231.0 {headedTowardsAAtY} 2451.0 {spawnPoliceBAtX} 2229.0 {spawnPoliceBAtY} 2476.0 {headedTowardsBAtX} 2231.0 {headedTowardsBAtY} 2456.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1238.0 {fromY} 2671.0 {toX} 1257.0 {toY} 2690.0 {spawnPoliceAAtX} 1276.0 {spawnPoliceAAtY} 2716.0 {headedTowardsAAtX} 1244.0 {headedTowardsAAtY} 2713.0 {spawnPoliceBAtX} 1276.0 {spawnPoliceBAtY} 2716.0 {headedTowardsBAtX} 1244.0 {headedTowardsBAtY} 2713.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1493.0 {fromY} 2580.0 {toX} 1512.0 {toY} 2599.0 {spawnPoliceAAtX} 1479.0 {spawnPoliceAAtY} 2562.0 {headedTowardsAAtX} 1480.0 {headedTowardsAAtY} 2588.0 {spawnPoliceBAtX} 1476.0 {spawnPoliceBAtY} 2555.0 {headedTowardsBAtX} 1475.0 {headedTowardsBAtY} 2585.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1469.0 {fromY} 2433.0 {toX} 1486.0 {toY} 2447.0 {spawnPoliceAAtX} 1449.0 {spawnPoliceAAtY} 2390.0 {headedTowardsAAtX} 1478.0 {headedTowardsAAtY} 2391.0 {spawnPoliceBAtX} 1449.0 {spawnPoliceBAtY} 2390.0 {headedTowardsBAtX} 1478.0 {headedTowardsBAtY} 2391.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1558.0 {fromY} 2283.0 {toX} 1577.0 {toY} 2305.0 {spawnPoliceAAtX} 1529.0 {spawnPoliceAAtY} 2311.0 {headedTowardsAAtX} 1565.0 {headedTowardsAAtY} 2310.0 {spawnPoliceBAtX} 1529.0 {spawnPoliceBAtY} 2311.0 {headedTowardsBAtX} 1565.0 {headedTowardsBAtY} 2310.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1397.0 {fromY} 2303.0 {toX} 1419.0 {toY} 2323.0 {spawnPoliceAAtX} 1385.0 {spawnPoliceAAtY} 2331.0 {headedTowardsAAtX} 1389.0 {headedTowardsAAtY} 2313.0 {spawnPoliceBAtX} 1385.0 {spawnPoliceBAtY} 2331.0 {headedTowardsBAtX} 1389.0 {headedTowardsBAtY} 2313.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1568.0 {fromY} 2114.0 {toX} 1578.0 {toY} 2140.0 {spawnPoliceAAtX} 1573.0 {spawnPoliceAAtY} 2078.0 {headedTowardsAAtX} 1573.0 {headedTowardsAAtY} 2118.0 {spawnPoliceBAtX} 1571.0 {spawnPoliceBAtY} 2088.0 {headedTowardsBAtX} 1571.0 {headedTowardsBAtY} 2106.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1660.0 {fromY} 2002.0 {toX} 1685.0 {toY} 2021.0 {spawnPoliceAAtX} 1710.0 {spawnPoliceAAtY} 1985.0 {headedTowardsAAtX} 1709.0 {headedTowardsAAtY} 2015.0 {spawnPoliceBAtX} 1710.0 {spawnPoliceBAtY} 1985.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} 2015.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1765.0 {fromY} 2044.0 {toX} 1788.0 {toY} 2063.0 {spawnPoliceAAtX} 1810.0 {spawnPoliceAAtY} 2083.0 {headedTowardsAAtX} 1827.0 {headedTowardsAAtY} 2056.0 {spawnPoliceBAtX} 1810.0 {spawnPoliceBAtY} 2083.0 {headedTowardsBAtX} 1827.0 {headedTowardsBAtY} 2056.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1948.0 {fromY} 2274.0 {toX} 1971.0 {toY} 2293.0 {spawnPoliceAAtX} 1930.0 {spawnPoliceAAtY} 2259.0 {headedTowardsAAtX} 1930.0 {headedTowardsAAtY} 2283.0 {spawnPoliceBAtX} 1930.0 {spawnPoliceBAtY} 2259.0 {headedTowardsBAtX} 1930.0 {headedTowardsBAtY} 2283.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1918.0 {fromY} 2309.0 {toX} 1938.0 {toY} 2328.0 {spawnPoliceAAtX} 1951.0 {spawnPoliceAAtY} 2338.0 {headedTowardsAAtX} 1929.0 {headedTowardsAAtY} 2338.0 {spawnPoliceBAtX} 1895.0 {spawnPoliceBAtY} 2333.0 {headedTowardsBAtX} 1926.0 {headedTowardsBAtY} 2337.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 1986.0 {fromY} 2384.0 {toX} 2006.0 {toY} 2403.0 {spawnPoliceAAtX} 2031.0 {spawnPoliceAAtY} 2367.0 {headedTowardsAAtX} 2024.0 {headedTowardsAAtY} 2392.0 {spawnPoliceBAtX} 2026.0 {spawnPoliceBAtY} 2433.0 {headedTowardsBAtX} 2025.0 {headedTowardsBAtY} 2395.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2011.0 {fromY} 2334.0 {toX} 2017.0 {toY} 2352.0 {spawnPoliceAAtX} 1995.0 {spawnPoliceAAtY} 2286.0 {headedTowardsAAtX} 2014.0 {headedTowardsAAtY} 2288.0 {spawnPoliceBAtX} 1995.0 {spawnPoliceBAtY} 2286.0 {headedTowardsBAtX} 2014.0 {headedTowardsBAtY} 2288.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2063.0 {fromY} 2274.0 {toX} 2090.0 {toY} 2293.0 {spawnPoliceAAtX} 2068.0 {spawnPoliceAAtY} 2313.0 {headedTowardsAAtX} 2096.0 {headedTowardsAAtY} 2292.0 {spawnPoliceBAtX} 2119.0 {spawnPoliceBAtY} 2260.0 {headedTowardsBAtX} 2104.0 {headedTowardsBAtY} 2282.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2171.0 {fromY} 2356.0 {toX} 2185.0 {toY} 2356.0 {spawnPoliceAAtX} 2214.0 {spawnPoliceAAtY} 2328.0 {headedTowardsAAtX} 2196.0 {headedTowardsAAtY} 2336.0 {spawnPoliceBAtX} 2217.0 {spawnPoliceBAtY} 2370.0 {headedTowardsBAtX} 2204.0 {headedTowardsBAtY} 2348.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2177.0 {fromY} 2302.0 {toX} 2185.0 {toY} 2325.0 {spawnPoliceAAtX} 2198.0 {spawnPoliceAAtY} 2286.0 {headedTowardsAAtX} 2161.0 {headedTowardsAAtY} 2288.0 {spawnPoliceBAtX} 2198.0 {spawnPoliceBAtY} 2286.0 {headedTowardsBAtX} 2161.0 {headedTowardsBAtY} 2288.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2256.0 {fromY} 2274.0 {toX} 2294.0 {toY} 2293.0 {spawnPoliceAAtX} 2288.0 {spawnPoliceAAtY} 2260.0 {headedTowardsAAtX} 2287.0 {headedTowardsAAtY} 2283.0 {spawnPoliceBAtX} 2288.0 {spawnPoliceBAtY} 2260.0 {headedTowardsBAtX} 2287.0 {headedTowardsBAtY} 2283.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2379.0 {fromY} 2404.0 {toX} 2395.0 {toY} 2423.0 {spawnPoliceAAtX} 2342.0 {spawnPoliceAAtY} 2436.0 {headedTowardsAAtX} 2353.0 {headedTowardsAAtY} 2415.0 {spawnPoliceBAtX} 2342.0 {spawnPoliceBAtY} 2436.0 {headedTowardsBAtX} 2353.0 {headedTowardsBAtY} 2415.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2218.0 {fromY} 2422.0 {toX} 2239.0 {toY} 2438.0 {spawnPoliceAAtX} 2257.0 {spawnPoliceAAtY} 2455.0 {headedTowardsAAtX} 2227.0 {headedTowardsAAtY} 2452.0 {spawnPoliceBAtX} 2257.0 {spawnPoliceBAtY} 2455.0 {headedTowardsBAtX} 2227.0 {headedTowardsBAtY} 2452.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2337.0 {fromY} 2504.0 {toX} 2354.0 {toY} 2522.0 {spawnPoliceAAtX} 2370.0 {spawnPoliceAAtY} 2482.0 {headedTowardsAAtX} 2370.0 {headedTowardsAAtY} 2513.0 {spawnPoliceBAtX} 2370.0 {spawnPoliceBAtY} 2482.0 {headedTowardsBAtX} 2370.0 {headedTowardsBAtY} 2513.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2490.0 {fromY} 2403.0 {toX} 2511.0 {toY} 2423.0 {spawnPoliceAAtX} 2524.0 {spawnPoliceAAtY} 2438.0 {headedTowardsAAtX} 2525.0 {headedTowardsAAtY} 2411.0 {spawnPoliceBAtX} 2524.0 {spawnPoliceBAtY} 2438.0 {headedTowardsBAtX} 2525.0 {headedTowardsBAtY} 2411.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2518.0 {fromY} 2255.0 {toX} 2537.0 {toY} 2274.0 {spawnPoliceAAtX} 2555.0 {spawnPoliceAAtY} 2236.0 {headedTowardsAAtX} 2528.0 {headedTowardsAAtY} 2237.0 {spawnPoliceBAtX} 2555.0 {spawnPoliceBAtY} 2236.0 {headedTowardsBAtX} 2528.0 {headedTowardsBAtY} 2237.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2518.0 {fromY} 2189.0 {toX} 2539.0 {toY} 2210.0 {spawnPoliceAAtX} 2558.0 {spawnPoliceAAtY} 2235.0 {headedTowardsAAtX} 2518.0 {headedTowardsAAtY} 2236.0 {spawnPoliceBAtX} 2498.0 {spawnPoliceBAtY} 2231.0 {headedTowardsBAtX} 2537.0 {headedTowardsBAtY} 2231.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2544.0 {fromY} 2222.0 {toX} 2566.0 {toY} 2243.0 {spawnPoliceAAtX} 2524.0 {spawnPoliceAAtY} 2265.0 {headedTowardsAAtX} 2525.0 {headedTowardsAAtY} 2234.0 {spawnPoliceBAtX} 2530.0 {spawnPoliceBAtY} 2271.0 {headedTowardsBAtX} 2531.0 {headedTowardsBAtY} 2226.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2363.0 {fromY} 2224.0 {toX} 2395.0 {toY} 2248.0 {spawnPoliceAAtX} 2352.0 {spawnPoliceAAtY} 2205.0 {headedTowardsAAtX} 2353.0 {headedTowardsAAtY} 2236.0 {spawnPoliceBAtX} 2346.0 {spawnPoliceBAtY} 2197.0 {headedTowardsBAtX} 2344.0 {headedTowardsBAtY} 2231.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2333.0 {fromY} 2173.0 {toX} 2369.0 {toY} 2190.0 {spawnPoliceAAtX} 2313.0 {spawnPoliceAAtY} 2138.0 {headedTowardsAAtX} 2349.0 {headedTowardsAAtY} 2140.0 {spawnPoliceBAtX} 2313.0 {spawnPoliceBAtY} 2138.0 {headedTowardsBAtX} 2349.0 {headedTowardsBAtY} 2140.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2380.0 {fromY} 2124.0 {toX} 2404.0 {toY} 2163.0 {spawnPoliceAAtX} 2346.0 {spawnPoliceAAtY} 2178.0 {headedTowardsAAtX} 2350.0 {headedTowardsAAtY} 2149.0 {spawnPoliceBAtX} 2346.0 {spawnPoliceBAtY} 2178.0 {headedTowardsBAtX} 2350.0 {headedTowardsBAtY} 2149.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2484.0 {fromY} 2124.0 {toX} 2513.0 {toY} 2163.0 {spawnPoliceAAtX} 2525.0 {spawnPoliceAAtY} 2179.0 {headedTowardsAAtX} 2525.0 {headedTowardsAAtY} 2151.0 {spawnPoliceBAtX} 2530.0 {spawnPoliceBAtY} 2184.0 {headedTowardsBAtX} 2530.0 {headedTowardsBAtY} 2136.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2713.0 {fromY} 2104.0 {toX} 2737.0 {toY} 2122.0 {spawnPoliceAAtX} 2793.0 {spawnPoliceAAtY} 2086.0 {headedTowardsAAtX} 2796.0 {headedTowardsAAtY} 2110.0 {spawnPoliceBAtX} 2796.0 {spawnPoliceBAtY} 2079.0 {headedTowardsBAtX} 2801.0 {headedTowardsBAtY} 2110.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} 2838.0 {fromY} 2127.0 {toX} 2857.0 {toY} 2159.0 {spawnPoliceAAtX} 2824.0 {spawnPoliceAAtY} 2111.0 {headedTowardsAAtX} 2846.0 {headedTowardsAAtY} 2111.0 {spawnPoliceBAtX} 2803.0 {spawnPoliceBAtY} 2111.0 {headedTowardsBAtX} 2845.0 {headedTowardsBAtY} 2112.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2789.0 {fromY} 1945.0 {toX} 2803.0 {toY} 1985.0 {spawnPoliceAAtX} 2745.0 {spawnPoliceAAtY} 1956.0 {headedTowardsAAtX} 2779.0 {headedTowardsAAtY} 1956.0 {spawnPoliceBAtX} 2739.0 {spawnPoliceBAtY} 1952.0 {headedTowardsBAtX} 2786.0 {headedTowardsBAtY} 1951.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2640.0 {fromY} 1944.0 {toX} 2660.0 {toY} 1965.0 {spawnPoliceAAtX} 2605.0 {spawnPoliceAAtY} 1982.0 {headedTowardsAAtX} 2605.0 {headedTowardsAAtY} 1953.0 {spawnPoliceBAtX} 2605.0 {spawnPoliceBAtY} 1982.0 {headedTowardsBAtX} 2605.0 {headedTowardsBAtY} 1953.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 2498.0 {fromY} 1921.0 {toX} 2517.0 {toY} 1938.0 {spawnPoliceAAtX} 2537.0 {spawnPoliceAAtY} 1955.0 {headedTowardsAAtX} 2507.0 {headedTowardsAAtY} 1956.0 {spawnPoliceBAtX} 2537.0 {spawnPoliceBAtY} 1955.0 {headedTowardsBAtX} 2507.0 {headedTowardsBAtY} 1956.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2408.0 {fromY} 2021.0 {toX} 2429.0 {toY} 2042.0 {spawnPoliceAAtX} 2398.0 {spawnPoliceAAtY} 2045.0 {headedTowardsAAtX} 2412.0 {headedTowardsAAtY} 2044.0 {spawnPoliceBAtX} 2398.0 {spawnPoliceBAtY} 2045.0 {headedTowardsBAtX} 2412.0 {headedTowardsBAtY} 2044.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2188.0 {fromY} 1826.0 {toX} 2205.0 {toY} 1851.0 {spawnPoliceAAtX} 2234.0 {spawnPoliceAAtY} 1867.0 {headedTowardsAAtX} 2212.0 {headedTowardsAAtY} 1851.0 {spawnPoliceBAtX} 2234.0 {spawnPoliceBAtY} 1867.0 {headedTowardsBAtX} 2212.0 {headedTowardsBAtY} 1851.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 2067.0 {fromY} 1863.0 {toX} 2082.0 {toY} 1894.0 {spawnPoliceAAtX} 2083.0 {spawnPoliceAAtY} 1843.0 {headedTowardsAAtX} 2095.0 {headedTowardsAAtY} 1865.0 {spawnPoliceBAtX} 2083.0 {spawnPoliceBAtY} 1843.0 {headedTowardsBAtX} 2095.0 {headedTowardsBAtY} 1865.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 2033.0 {fromY} 1894.0 {toX} 2048.0 {toY} 1936.0 {spawnPoliceAAtX} 2060.0 {spawnPoliceAAtY} 1951.0 {headedTowardsAAtX} 2041.0 {headedTowardsAAtY} 1943.0 {spawnPoliceBAtX} 2069.0 {spawnPoliceBAtY} 1865.0 {headedTowardsBAtX} 2063.0 {headedTowardsBAtY} 1878.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2069.0 {fromY} 1785.0 {toX} 2139.0 {toY} 1806.0 {spawnPoliceAAtX} 2147.0 {spawnPoliceAAtY} 1776.0 {headedTowardsAAtX} 2095.0 {headedTowardsAAtY} 1776.0 {spawnPoliceBAtX} 1975.0 {spawnPoliceBAtY} 1711.0 {headedTowardsBAtX} 2060.0 {headedTowardsBAtY} 1710.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 2094.0 {fromY} 1649.0 {toX} 2165.0 {toY} 1737.0 {spawnPoliceAAtX} 2177.0 {spawnPoliceAAtY} 1666.0 {headedTowardsAAtX} 2129.0 {headedTowardsAAtY} 1655.0 {spawnPoliceBAtX} 2151.0 {spawnPoliceBAtY} 1723.0 {headedTowardsBAtX} 2134.0 {headedTowardsBAtY} 1717.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} 2006.0 {fromY} 1541.0 {toX} 2021.0 {toY} 1550.0 {spawnPoliceAAtX} 2001.0 {spawnPoliceAAtY} 1564.0 {headedTowardsAAtX} 2004.0 {headedTowardsAAtY} 1553.0 {spawnPoliceBAtX} 2001.0 {spawnPoliceBAtY} 1564.0 {headedTowardsBAtX} 2004.0 {headedTowardsBAtY} 1553.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1931.0 {fromY} 1444.0 {toX} 1964.0 {toY} 1466.0 {spawnPoliceAAtX} 1989.0 {spawnPoliceAAtY} 1415.0 {headedTowardsAAtX} 1991.0 {headedTowardsAAtY} 1454.0 {spawnPoliceBAtX} 1989.0 {spawnPoliceBAtY} 1415.0 {headedTowardsBAtX} 1991.0 {headedTowardsBAtY} 1454.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1935.0 {fromY} 1299.0 {toX} 1958.0 {toY} 1322.0 {spawnPoliceAAtX} 1974.0 {spawnPoliceAAtY} 1276.0 {headedTowardsAAtX} 1949.0 {headedTowardsAAtY} 1277.0 {spawnPoliceBAtX} 1974.0 {spawnPoliceBAtY} 1276.0 {headedTowardsBAtX} 1949.0 {headedTowardsBAtY} 1277.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} 1756.0 {fromY} 1264.0 {toX} 1786.0 {toY} 1282.0 {spawnPoliceAAtX} 1730.0 {spawnPoliceAAtY} 1302.0 {headedTowardsAAtX} 1722.0 {headedTowardsAAtY} 1273.0 {spawnPoliceBAtX} 1730.0 {spawnPoliceBAtY} 1302.0 {headedTowardsBAtX} 1722.0 {headedTowardsBAtY} 1273.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} 1723.0 {fromY} 1182.0 {toX} 1736.0 {toY} 1205.0 {spawnPoliceAAtX} 1714.0 {spawnPoliceAAtY} 1234.0 {headedTowardsAAtX} 1714.0 {headedTowardsAAtY} 1217.0 {spawnPoliceBAtX} 1703.0 {spawnPoliceBAtY} 1229.0 {headedTowardsBAtX} 1709.0 {headedTowardsBAtY} 1219.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1583.0 {fromY} 1124.0 {toX} 1606.0 {toY} 1142.0 {spawnPoliceAAtX} 1570.0 {spawnPoliceAAtY} 1098.0 {headedTowardsAAtX} 1569.0 {headedTowardsAAtY} 1138.0 {spawnPoliceBAtX} 1570.0 {spawnPoliceBAtY} 1098.0 {headedTowardsBAtX} 1569.0 {headedTowardsBAtY} 1138.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} 1716.0 {fromY} 1585.0 {toX} 1744.0 {toY} 1605.0 {spawnPoliceAAtX} 1726.0 {spawnPoliceAAtY} 1663.0 {headedTowardsAAtX} 1745.0 {headedTowardsAAtY} 1637.0 {spawnPoliceBAtX} 1726.0 {spawnPoliceBAtY} 1663.0 {headedTowardsBAtX} 1745.0 {headedTowardsBAtY} 1637.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2349.0 {fromY} 2381.0 {toX} -2327.0 {toY} 2377.0 {spawnPoliceAAtX} -2349.0 {spawnPoliceAAtY} 2402.0 {headedTowardsAAtX} -2328.0 {headedTowardsAAtY} 2388.0 {spawnPoliceBAtX} -2349.0 {spawnPoliceBAtY} 2402.0 {headedTowardsBAtX} -2328.0 {headedTowardsBAtY} 2388.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2475.0 {fromY} 2299.0 {toX} -2456.0 {toY} 2315.0 {spawnPoliceAAtX} -2435.0 {spawnPoliceAAtY} 2337.0 {headedTowardsAAtX} -2466.0 {headedTowardsAAtY} 2334.0 {spawnPoliceBAtX} -2435.0 {spawnPoliceBAtY} 2337.0 {headedTowardsBAtX} -2466.0 {headedTowardsBAtY} 2334.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} -1591.0 {fromY} 656.0 {toX} -1574.0 {toY} 667.0 {spawnPoliceAAtX} -1561.0 {spawnPoliceAAtY} 690.0 {headedTowardsAAtX} -1562.0 {headedTowardsAAtY} 663.0 {spawnPoliceBAtX} -1557.0 {spawnPoliceBAtY} 692.0 {headedTowardsBAtX} -1556.0 {headedTowardsBAtY} 665.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1752.0 {fromY} 1317.0 {toX} -1726.0 {toY} 1323.0 {spawnPoliceAAtX} -1749.0 {spawnPoliceAAtY} 1269.0 {headedTowardsAAtX} -1714.0 {headedTowardsAAtY} 1299.0 {spawnPoliceBAtX} -1749.0 {spawnPoliceBAtY} 1269.0 {headedTowardsBAtX} -1714.0 {headedTowardsBAtY} 1299.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1715.0 {fromY} 1309.0 {toX} -1711.0 {toY} 1343.0 {spawnPoliceAAtX} -1710.0 {spawnPoliceAAtY} 1377.0 {headedTowardsAAtX} -1736.0 {headedTowardsAAtY} 1350.0 {spawnPoliceBAtX} -1710.0 {spawnPoliceBAtY} 1377.0 {headedTowardsBAtX} -1736.0 {headedTowardsBAtY} 1350.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -1673.0 {fromY} 1386.0 {toX} -1637.0 {toY} 1391.0 {spawnPoliceAAtX} -1624.0 {spawnPoliceAAtY} 1380.0 {headedTowardsAAtX} -1626.0 {headedTowardsAAtY} 1393.0 {spawnPoliceBAtX} -1662.0 {spawnPoliceBAtY} 1430.0 {headedTowardsBAtX} -1642.0 {headedTowardsBAtY} 1427.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2002.0 {fromY} 1273.0 {toX} -1967.0 {toY} 1299.0 {spawnPoliceAAtX} -1943.0 {spawnPoliceAAtY} 1258.0 {headedTowardsAAtX} -1944.0 {headedTowardsAAtY} 1293.0 {spawnPoliceBAtX} -1943.0 {spawnPoliceBAtY} 1258.0 {headedTowardsBAtX} -1944.0 {headedTowardsBAtY} 1293.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} -1946.0 {fromY} 1233.0 {toX} -1939.0 {toY} 1245.0 {spawnPoliceAAtX} -1943.0 {spawnPoliceAAtY} 1195.0 {headedTowardsAAtX} -1943.0 {headedTowardsAAtY} 1221.0 {spawnPoliceBAtX} -2021.0 {spawnPoliceBAtY} 1227.0 {headedTowardsBAtX} -1983.0 {headedTowardsBAtY} 1227.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} -1917.0 {fromY} 1253.0 {toX} -1904.0 {toY} 1259.0 {spawnPoliceAAtX} -1900.0 {spawnPoliceAAtY} 1242.0 {headedTowardsAAtX} -1900.0 {headedTowardsAAtY} 1256.0 {spawnPoliceBAtX} -1900.0 {spawnPoliceBAtY} 1242.0 {headedTowardsBAtX} -1900.0 {headedTowardsBAtY} 1256.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2041.0 {fromY} 1223.0 {toX} -2022.0 {toY} 1232.0 {spawnPoliceAAtX} -2010.0 {spawnPoliceAAtY} 1208.0 {headedTowardsAAtX} -2010.0 {headedTowardsAAtY} 1228.0 {spawnPoliceBAtX} -2010.0 {spawnPoliceBAtY} 1208.0 {headedTowardsBAtX} -2010.0 {headedTowardsBAtY} 1228.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1862.0 {fromY} 1166.0 {toX} -1836.0 {toY} 1191.0 {spawnPoliceAAtX} -1789.0 {spawnPoliceAAtY} 1147.0 {headedTowardsAAtX} -1790.0 {headedTowardsAAtY} 1187.0 {spawnPoliceBAtX} -1794.0 {spawnPoliceBAtY} 1148.0 {headedTowardsBAtX} -1794.0 {headedTowardsBAtY} 1186.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1728.0 {fromY} 1134.0 {toX} -1702.0 {toY} 1154.0 {spawnPoliceAAtX} -1747.0 {spawnPoliceAAtY} 1182.0 {headedTowardsAAtX} -1710.0 {headedTowardsAAtY} 1184.0 {spawnPoliceBAtX} -1747.0 {spawnPoliceBAtY} 1182.0 {headedTowardsBAtX} -1710.0 {headedTowardsBAtY} 1184.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1685.0 {fromY} 1173.0 {toX} -1663.0 {toY} 1201.0 {spawnPoliceAAtX} -1708.0 {spawnPoliceAAtY} 1151.0 {headedTowardsAAtX} -1712.0 {headedTowardsAAtY} 1186.0 {spawnPoliceBAtX} -1708.0 {spawnPoliceBAtY} 1151.0 {headedTowardsBAtX} -1712.0 {headedTowardsBAtY} 1186.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1678.0 {fromY} 1174.0 {toX} -1647.0 {toY} 1206.0 {spawnPoliceAAtX} -1644.0 {spawnPoliceAAtY} 1222.0 {headedTowardsAAtX} -1618.0 {headedTowardsAAtY} 1192.0 {spawnPoliceBAtX} -1606.0 {spawnPoliceBAtY} 1151.0 {headedTowardsBAtX} -1618.0 {headedTowardsBAtY} 1192.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1760.0 {fromY} 1083.0 {toX} -1736.0 {toY} 1115.0 {spawnPoliceAAtX} -1718.0 {spawnPoliceAAtY} 1068.0 {headedTowardsAAtX} -1718.0 {headedTowardsAAtY} 1105.0 {spawnPoliceBAtX} -1718.0 {spawnPoliceBAtY} 1068.0 {headedTowardsBAtX} -1718.0 {headedTowardsBAtY} 1105.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1726.0 {fromY} 1005.0 {toX} -1701.0 {toY} 986.0 {spawnPoliceAAtX} -1673.0 {spawnPoliceAAtY} 932.0 {headedTowardsAAtX} -1716.0 {headedTowardsAAtY} 933.0 {spawnPoliceBAtX} -1673.0 {spawnPoliceBAtY} 932.0 {headedTowardsBAtX} -1716.0 {headedTowardsBAtY} 933.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1769.0 {fromY} 963.0 {toX} -1749.0 {toY} 901.0 {spawnPoliceAAtX} -1710.0 {spawnPoliceAAtY} 886.0 {headedTowardsAAtX} -1711.0 {headedTowardsAAtY} 923.0 {spawnPoliceBAtX} -1710.0 {spawnPoliceBAtY} 886.0 {headedTowardsBAtX} -1711.0 {headedTowardsBAtY} 923.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1684.0 {fromY} 903.0 {toX} -1658.0 {toY} 944.0 {spawnPoliceAAtX} -1711.0 {spawnPoliceAAtY} 833.0 {headedTowardsAAtX} -1710.0 {headedTowardsAAtY} 912.0 {spawnPoliceBAtX} -1718.0 {spawnPoliceBAtY} 975.0 {headedTowardsBAtX} -1719.0 {headedTowardsBAtY} 926.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1806.0 {fromY} 954.0 {toX} -1782.0 {toY} 981.0 {spawnPoliceAAtX} -1753.0 {spawnPoliceAAtY} 935.0 {headedTowardsAAtX} -1795.0 {headedTowardsAAtY} 934.0 {spawnPoliceBAtX} -1842.0 {spawnPoliceBAtY} 916.0 {headedTowardsBAtX} -1793.0 {headedTowardsBAtY} 916.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1806.0 {fromY} 891.0 {toX} -1781.0 {toY} 867.0 {spawnPoliceAAtX} -1838.0 {spawnPoliceAAtY} 914.0 {headedTowardsAAtX} -1794.0 {headedTowardsAAtY} 915.0 {spawnPoliceBAtX} -1838.0 {spawnPoliceBAtY} 914.0 {headedTowardsBAtX} -1794.0 {headedTowardsBAtY} 915.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} -1614.0 {fromY} 943.0 {toX} -1589.0 {toY} 904.0 {spawnPoliceAAtX} -1563.0 {spawnPoliceAAtY} 880.0 {headedTowardsAAtX} -1561.0 {headedTowardsAAtY} 922.0 {spawnPoliceBAtX} -1563.0 {spawnPoliceBAtY} 966.0 {headedTowardsBAtX} -1556.0 {headedTowardsBAtY} 929.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1871.0 {fromY} 827.0 {toX} -1843.0 {toY} 864.0 {spawnPoliceAAtX} -1902.0 {spawnPoliceAAtY} 885.0 {headedTowardsAAtX} -1903.0 {headedTowardsAAtY} 837.0 {spawnPoliceBAtX} -1902.0 {spawnPoliceBAtY} 885.0 {headedTowardsBAtX} -1903.0 {headedTowardsBAtY} 837.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1912.0 {fromY} 954.0 {toX} -1880.0 {toY} 977.0 {spawnPoliceAAtX} -1936.0 {spawnPoliceAAtY} 934.0 {headedTowardsAAtX} -1896.0 {headedTowardsAAtY} 935.0 {spawnPoliceBAtX} -1936.0 {spawnPoliceBAtY} 934.0 {headedTowardsBAtX} -1896.0 {headedTowardsBAtY} 935.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1882.0 {fromY} 906.0 {toX} -1855.0 {toY} 943.0 {spawnPoliceAAtX} -1896.0 {spawnPoliceAAtY} 889.0 {headedTowardsAAtX} -1896.0 {headedTowardsAAtY} 924.0 {spawnPoliceBAtX} -1896.0 {spawnPoliceBAtY} 889.0 {headedTowardsBAtX} -1896.0 {headedTowardsBAtY} 924.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -1983.0 {fromY} 906.0 {toX} -1954.0 {toY} 943.0 {spawnPoliceAAtX} -1998.0 {spawnPoliceAAtY} 883.0 {headedTowardsAAtX} -1999.0 {headedTowardsAAtY} 924.0 {spawnPoliceBAtX} -1998.0 {spawnPoliceBAtY} 883.0 {headedTowardsBAtX} -1999.0 {headedTowardsBAtY} 924.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -2044.0 {fromY} 901.0 {toX} -2030.0 {toY} 907.0 {spawnPoliceAAtX} -2045.0 {spawnPoliceAAtY} 922.0 {headedTowardsAAtX} -2049.0 {headedTowardsAAtY} 907.0 {spawnPoliceBAtX} -2058.0 {spawnPoliceBAtY} 935.0 {headedTowardsBAtX} -2050.0 {headedTowardsBAtY} 912.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -2113.0 {fromY} 952.0 {toX} -2098.0 {toY} 961.0 {spawnPoliceAAtX} -2078.0 {spawnPoliceAAtY} 953.0 {headedTowardsAAtX} -2094.0 {headedTowardsAAtY} 954.0 {spawnPoliceBAtX} -2086.0 {spawnPoliceBAtY} 931.0 {headedTowardsBAtX} -2097.0 {headedTowardsBAtY} 948.0
add_set_piece 8 {fromX} -2034.0 {fromY} 957.0 {toX} -2019.0 {toY} 951.0 {spawnPoliceAAtX} -2010.0 {spawnPoliceAAtY} 981.0 {headedTowardsAAtX} -2010.0 {headedTowardsAAtY} 952.0 {spawnPoliceBAtX} -1965.0 {spawnPoliceBAtY} 933.0 {headedTowardsBAtX} -2000.0 {headedTowardsBAtY} 935.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2018.0 {fromY} 1017.0 {toX} -1992.0 {toY} 1038.0 {spawnPoliceAAtX} -1959.0 {spawnPoliceAAtY} 1053.0 {headedTowardsAAtX} -2002.0 {headedTowardsAAtY} 1052.0 {spawnPoliceBAtX} -1959.0 {spawnPoliceBAtY} 1053.0 {headedTowardsBAtX} -2002.0 {headedTowardsBAtY} 1052.0
add_set_piece SetPieceType.CreateCopperOnFoot {fromX} -2077.0 {fromY} 1038.0 {toX} -2072.0 {toY} 1045.0 {spawnPoliceAAtX} -2080.0 {spawnPoliceAAtY} 1078.0 {headedTowardsAAtX} -2079.0 {headedTowardsAAtY} 1053.0 {spawnPoliceBAtX} -2080.0 {spawnPoliceBAtY} 1078.0 {headedTowardsBAtX} -2079.0 {headedTowardsBAtY} 1053.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2301.0 {fromY} 1043.0 {toX} -2253.0 {toY} 1089.0 {spawnPoliceAAtX} -2350.0 {spawnPoliceAAtY} 1117.0 {headedTowardsAAtX} -2360.0 {headedTowardsAAtY} 1088.0 {spawnPoliceBAtX} -2350.0 {spawnPoliceBAtY} 1117.0 {headedTowardsBAtX} -2360.0 {headedTowardsBAtY} 1088.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2381.0 {fromY} 1030.0 {toX} -2375.0 {toY} 1061.0 {spawnPoliceAAtX} -2320.0 {spawnPoliceAAtY} 1074.0 {headedTowardsAAtX} -2356.0 {headedTowardsAAtY} 1085.0 {spawnPoliceBAtX} -2320.0 {spawnPoliceBAtY} 1074.0 {headedTowardsBAtX} -2356.0 {headedTowardsBAtY} 1085.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2399.0 {fromY} 965.0 {toX} -2374.0 {toY} 992.0 {spawnPoliceAAtX} -2344.0 {spawnPoliceAAtY} 961.0 {headedTowardsAAtX} -2385.0 {headedTowardsAAtY} 961.0 {spawnPoliceBAtX} -2344.0 {spawnPoliceBAtY} 961.0 {headedTowardsBAtX} -2385.0 {headedTowardsBAtY} 961.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2294.0 {fromY} 949.0 {toX} -2281.0 {toY} 969.0 {spawnPoliceAAtX} -2254.0 {spawnPoliceAAtY} 956.0 {headedTowardsAAtX} -2265.0 {headedTowardsAAtY} 960.0 {spawnPoliceBAtX} -2254.0 {spawnPoliceBAtY} 956.0 {headedTowardsBAtX} -2265.0 {headedTowardsBAtY} 960.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2282.0 {fromY} 992.0 {toX} -2239.0 {toY} 1017.0 {spawnPoliceAAtX} -2298.0 {spawnPoliceAAtY} 957.0 {headedTowardsAAtX} -2258.0 {headedTowardsAAtY} 955.0 {spawnPoliceBAtX} -2298.0 {spawnPoliceBAtY} 957.0 {headedTowardsBAtX} -2258.0 {headedTowardsBAtY} 955.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2206.0 {fromY} 903.0 {toX} -2171.0 {toY} 934.0 {spawnPoliceAAtX} -2254.0 {spawnPoliceAAtY} 943.0 {headedTowardsAAtX} -2253.0 {headedTowardsAAtY} 917.0 {spawnPoliceBAtX} -2254.0 {spawnPoliceBAtY} 943.0 {headedTowardsBAtX} -2253.0 {headedTowardsBAtY} 917.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2160.0 {fromY} 927.0 {toX} -2129.0 {toY} 954.0 {spawnPoliceAAtX} -2177.0 {spawnPoliceAAtY} 916.0 {headedTowardsAAtX} -2128.0 {headedTowardsAAtY} 916.0 {spawnPoliceBAtX} -2177.0 {spawnPoliceBAtY} 916.0 {headedTowardsBAtX} -2128.0 {headedTowardsBAtY} 916.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} -2104.0 {fromY} 853.0 {toX} -2088.0 {toY} 859.0 {spawnPoliceAAtX} -2082.0 {spawnPoliceAAtY} 816.0 {headedTowardsAAtX} -2082.0 {headedTowardsAAtY} 838.0 {spawnPoliceBAtX} -2101.0 {spawnPoliceBAtY} 806.0 {headedTowardsBAtX} -2079.0 {headedTowardsBAtY} 806.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2099.0 {fromY} 696.0 {toX} -2079.0 {toY} 710.0 {spawnPoliceAAtX} -2114.0 {spawnPoliceAAtY} 729.0 {headedTowardsAAtX} -2089.0 {headedTowardsAAtY} 729.0 {spawnPoliceBAtX} -2114.0 {spawnPoliceBAtY} 729.0 {headedTowardsBAtX} -2089.0 {headedTowardsBAtY} 729.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2045.0 {fromY} 720.0 {toX} -2028.0 {toY} 746.0 {spawnPoliceAAtX} -2008.0 {spawnPoliceAAtY} 758.0 {headedTowardsAAtX} -2009.0 {headedTowardsAAtY} 730.0 {spawnPoliceBAtX} -2001.0 {spawnPoliceBAtY} 773.0 {headedTowardsBAtX} -2001.0 {headedTowardsBAtY} 732.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -1989.0 {fromY} 719.0 {toX} -1965.0 {toY} 744.0 {spawnPoliceAAtX} -2000.0 {spawnPoliceAAtY} 691.0 {headedTowardsAAtX} -2001.0 {headedTowardsAAtY} 731.0 {spawnPoliceBAtX} -2007.0 {spawnPoliceBAtY} 765.0 {headedTowardsBAtX} -2008.0 {headedTowardsBAtY} 732.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2017.0 {fromY} 632.0 {toX} -1992.0 {toY} 657.0 {spawnPoliceAAtX} -1982.0 {spawnPoliceAAtY} 611.0 {headedTowardsAAtX} -2014.0 {headedTowardsAAtY} 611.0 {spawnPoliceBAtX} -1982.0 {spawnPoliceBAtY} 611.0 {headedTowardsBAtX} -2014.0 {headedTowardsBAtY} 611.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1979.0 {fromY} 596.0 {toX} -1955.0 {toY} 620.0 {spawnPoliceAAtX} -2015.0 {spawnPoliceAAtY} 643.0 {headedTowardsAAtX} -2013.0 {headedTowardsAAtY} 615.0 {spawnPoliceBAtX} -2015.0 {spawnPoliceBAtY} 643.0 {headedTowardsBAtX} -2013.0 {headedTowardsBAtY} 615.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2056.0 {fromY} 455.0 {toX} -2027.0 {toY} 477.0 {spawnPoliceAAtX} -2008.0 {spawnPoliceAAtY} 438.0 {headedTowardsAAtX} -2008.0 {headedTowardsAAtY} 457.0 {spawnPoliceBAtX} -2008.0 {spawnPoliceBAtY} 438.0 {headedTowardsBAtX} -2008.0 {headedTowardsBAtY} 457.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2136.0 {fromY} 347.0 {toX} -2130.0 {toY} 368.0 {spawnPoliceAAtX} -2117.0 {spawnPoliceAAtY} 386.0 {headedTowardsAAtX} -2135.0 {headedTowardsAAtY} 386.0 {spawnPoliceBAtX} -2117.0 {spawnPoliceBAtY} 386.0 {headedTowardsBAtX} -2135.0 {headedTowardsBAtY} 386.0
add_set_piece SetPieceType.TwoCopCarsInAlley {fromX} -2196.0 {fromY} 363.0 {toX} -2174.0 {toY} 369.0 {spawnPoliceAAtX} -2148.0 {spawnPoliceAAtY} 356.0 {headedTowardsAAtX} -2149.0 {headedTowardsAAtY} 374.0 {spawnPoliceBAtX} -2145.0 {spawnPoliceBAtY} 388.0 {headedTowardsBAtX} -2145.0 {headedTowardsBAtY} 367.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2176.0 {fromY} 451.0 {toX} -2164.0 {toY} 456.0 {spawnPoliceAAtX} -2148.0 {spawnPoliceAAtY} 469.0 {headedTowardsAAtX} -2149.0 {headedTowardsAAtY} 452.0 {spawnPoliceBAtX} -2148.0 {spawnPoliceBAtY} 469.0 {headedTowardsBAtX} -2149.0 {headedTowardsBAtY} 452.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2203.0 {fromY} 451.0 {toX} -2190.0 {toY} 456.0 {spawnPoliceAAtX} -2233.0 {spawnPoliceAAtY} 463.0 {headedTowardsAAtX} -2224.0 {headedTowardsAAtY} 462.0 {spawnPoliceBAtX} -2233.0 {spawnPoliceBAtY} 463.0 {headedTowardsBAtX} -2224.0 {headedTowardsBAtY} 462.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2280.0 {fromY} 590.0 {toX} -2243.0 {toY} 621.0 {spawnPoliceAAtX} -2221.0 {spawnPoliceAAtY} 568.0 {headedTowardsAAtX} -2260.0 {headedTowardsAAtY} 568.0 {spawnPoliceBAtX} -2221.0 {spawnPoliceBAtY} 568.0 {headedTowardsBAtX} -2260.0 {headedTowardsBAtY} 568.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2235.0 {fromY} 537.0 {toX} -2217.0 {toY} 552.0 {spawnPoliceAAtX} -2196.0 {spawnPoliceAAtY} 569.0 {headedTowardsAAtX} -2233.0 {headedTowardsAAtY} 569.0 {spawnPoliceBAtX} -2196.0 {spawnPoliceBAtY} 569.0 {headedTowardsBAtX} -2233.0 {headedTowardsBAtY} 569.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2327.0 {fromY} 391.0 {toX} -2326.0 {toY} 417.0 {spawnPoliceAAtX} -2332.0 {spawnPoliceAAtY} 439.0 {headedTowardsAAtX} -2310.0 {headedTowardsAAtY} 416.0 {spawnPoliceBAtX} -2332.0 {spawnPoliceBAtY} 439.0 {headedTowardsBAtX} -2310.0 {headedTowardsBAtY} 416.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2442.0 {fromY} 421.0 {toX} -2419.0 {toY} 424.0 {spawnPoliceAAtX} -2468.0 {spawnPoliceAAtY} 420.0 {headedTowardsAAtX} -2450.0 {headedTowardsAAtY} 403.0 {spawnPoliceBAtX} -2468.0 {spawnPoliceBAtY} 420.0 {headedTowardsBAtX} -2450.0 {headedTowardsBAtY} 403.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2488.0 {fromY} 427.0 {toX} -2458.0 {toY} 429.0 {spawnPoliceAAtX} -2517.0 {spawnPoliceAAtY} 434.0 {headedTowardsAAtX} -2496.0 {headedTowardsAAtY} 450.0 {spawnPoliceBAtX} -2517.0 {spawnPoliceBAtY} 434.0 {headedTowardsBAtX} -2496.0 {headedTowardsBAtY} 450.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2549.0 {fromY} 307.0 {toX} -2528.0 {toY} 329.0 {spawnPoliceAAtX} -2558.0 {spawnPoliceAAtY} 339.0 {headedTowardsAAtX} -2540.0 {headedTowardsAAtY} 339.0 {spawnPoliceBAtX} -2558.0 {spawnPoliceBAtY} 339.0 {headedTowardsBAtX} -2540.0 {headedTowardsBAtY} 339.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2592.0 {fromY} 379.0 {toX} -2577.0 {toY} 390.0 {spawnPoliceAAtX} -2610.0 {spawnPoliceAAtY} 407.0 {headedTowardsAAtX} -2608.0 {headedTowardsAAtY} 381.0 {spawnPoliceBAtX} -2610.0 {spawnPoliceBAtY} 407.0 {headedTowardsBAtX} -2608.0 {headedTowardsBAtY} 381.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2636.0 {fromY} 279.0 {toX} -2618.0 {toY} 307.0 {spawnPoliceAAtX} -2639.0 {spawnPoliceAAtY} 331.0 {headedTowardsAAtX} -2608.0 {headedTowardsAAtY} 324.0 {spawnPoliceBAtX} -2566.0 {spawnPoliceBAtY} 345.0 {headedTowardsBAtX} -2605.0 {headedTowardsBAtY} 351.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2651.0 {fromY} 326.0 {toX} -2630.0 {toY} 341.0 {spawnPoliceAAtX} -2661.0 {spawnPoliceAAtY} 359.0 {headedTowardsAAtX} -2660.0 {headedTowardsAAtY} 336.0 {spawnPoliceBAtX} -2665.0 {spawnPoliceBAtY} 362.0 {headedTowardsBAtX} -2665.0 {headedTowardsBAtY} 330.0
add_set_piece SetPieceType.CreateTwoCoppersOnFoot {fromX} -2741.0 {fromY} 361.0 {toX} -2697.0 {toY} 390.0 {spawnPoliceAAtX} -2714.0 {spawnPoliceAAtY} 342.0 {headedTowardsAAtX} -2708.0 {headedTowardsAAtY} 344.0 {spawnPoliceBAtX} -2711.0 {spawnPoliceBAtY} 347.0 {headedTowardsBAtX} -2706.0 {headedTowardsBAtY} 360.0
add_set_piece SetPieceType.TwoCarsBlockingPlayerFromSide {fromX} -2616.0 {fromY} 392.0 {toX} -2597.0 {toY} 416.0 {spawnPoliceAAtX} -2578.0 {spawnPoliceAAtY} 388.0 {headedTowardsAAtX} -2606.0 {headedTowardsAAtY} 386.0 {spawnPoliceBAtX} -2570.0 {spawnPoliceBAtY} 346.0 {headedTowardsBAtX} -2606.0 {headedTowardsBAtY} 350.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2653.0 {fromY} 326.0 {toX} -2634.0 {toY} 346.0 {spawnPoliceAAtX} -2609.0 {spawnPoliceAAtY} 359.0 {headedTowardsAAtX} -2609.0 {headedTowardsAAtY} 327.0 {spawnPoliceBAtX} -2609.0 {spawnPoliceBAtY} 359.0 {headedTowardsBAtX} -2609.0 {headedTowardsBAtY} 327.0
add_set_piece SetPieceType.CarRammingPlayerFromSide {fromX} -2779.0 {fromY} 279.0 {toX} -2777.0 {toY} 303.0 {spawnPoliceAAtX} -2806.0 {spawnPoliceAAtY} 256.0 {headedTowardsAAtX} -2807.0 {headedTowardsAAtY} 289.0 {spawnPoliceBAtX} -2806.0 {spawnPoliceBAtY} 256.0 {headedTowardsBAtX} -2807.0 {headedTowardsBAtY} 289.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2829.0 {fromY} -375.0 {toX} -2806.0 {toY} -347.0 {spawnPoliceAAtX} -2789.0 {spawnPoliceAAtY} -328.0 {headedTowardsAAtX} -2816.0 {headedTowardsAAtY} -327.0 {spawnPoliceBAtX} -2789.0 {spawnPoliceBAtY} -328.0 {headedTowardsBAtX} -2816.0 {headedTowardsBAtY} -327.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -2823.0 {fromY} -305.0 {toX} -2802.0 {toY} -283.0 {spawnPoliceAAtX} -2782.0 {spawnPoliceAAtY} -328.0 {headedTowardsAAtX} -2814.0 {headedTowardsAAtY} -327.0 {spawnPoliceBAtX} -2782.0 {spawnPoliceBAtY} -328.0 {headedTowardsBAtX} -2814.0 {headedTowardsBAtY} -327.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1555.0 {fromY} 2574.0 {toX} -1536.0 {toY} 2588.0 {spawnPoliceAAtX} -1524.0 {spawnPoliceAAtY} 2604.0 {headedTowardsAAtX} -1549.0 {headedTowardsAAtY} 2604.0 {spawnPoliceBAtX} -1524.0 {spawnPoliceBAtY} 2604.0 {headedTowardsBAtX} -1549.0 {headedTowardsBAtY} 2604.0
add_set_piece SetPieceType.CarBlockingPlayerFromSide {fromX} -1506.0 {fromY} 2616.0 {toX} -1486.0 {toY} 2625.0 {spawnPoliceAAtX} -1470.0 {spawnPoliceAAtY} 2604.0 {headedTowardsAAtX} -1496.0 {headedTowardsAAtY} 2604.0 {spawnPoliceBAtX} -1470.0 {spawnPoliceBAtY} 2604.0 {headedTowardsBAtX} -1496.0 {headedTowardsBAtY} 2604.0
add_set_piece SetPieceType.TwoCarsRammingPlayerFromSide {fromX} 2573.0 {fromY} 35.0 {toX} 2603.0 {toY} 49.0 {spawnPoliceAAtX} 2534.0 {spawnPoliceAAtY} 90.0 {headedTowardsAAtX} 2534.0 {headedTowardsAAtY} 46.0 {spawnPoliceBAtX} 2533.0 {spawnPoliceBAtY} 1.0 {headedTowardsBAtX} 2534.0 {headedTowardsBAtY} 40.0
init_zone_population_settings 
set_zone_population_type 'MARKST' {type} ZoneType.ShoppingPosh
set_zone_population_type 'UNITY' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LAIR1' {type} ZoneType.Airport
set_zone_population_type 'LAIR2A' {type} ZoneType.Airport
set_zone_population_type 'LAIR2B' {type} ZoneType.Airport
set_zone_population_type 'LBAG1' {type} ZoneType.AirportRunway
set_zone_population_type 'LBAG2' {type} ZoneType.AirportRunway
set_zone_population_type 'LBAG3' {type} ZoneType.AirportRunway
set_zone_population_type 'BLUF1A' {type} ZoneType.Park
set_zone_population_type 'BLUF2' {type} ZoneType.Park
set_zone_population_type 'SUN1' {type} ZoneType.Entertainment
set_zone_population_type 'SUN1' {type} ZoneType.Entertainment
set_zone_population_type 'SUN3A' {type} ZoneType.Entertainment
set_zone_population_type 'SUN3B' {type} ZoneType.Entertainment
set_zone_population_type 'SUN3C' {type} ZoneType.Entertainment
set_zone_population_type 'SUN4' {type} ZoneType.Entertainment
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN3A' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN3B' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN3C' {gangId} GangType.Grove {density} 30
set_zone_gang_strength 'SUN4' {gangId} GangType.Grove {density} 30
set_zone_population_type 'COM1A' {type} ZoneType.Shopping
set_zone_population_type 'COM1B' {type} ZoneType.Shopping
set_zone_population_type 'COM2' {type} ZoneType.Shopping
set_zone_population_type 'COM3' {type} ZoneType.Shopping
set_zone_population_type 'COM4' {type} ZoneType.Shopping
set_zone_population_type 'PER1' {type} ZoneType.Shopping
set_zone_population_type 'CHC1A' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC1B' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC2A' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC2B' {type} ZoneType.ResidentialPoor
set_zone_population_type 'CHC3' {type} ZoneType.Gangland
set_zone_population_type 'CHC4A' {type} ZoneType.Gangland
set_zone_population_type 'CHC4B' {type} ZoneType.Gangland
set_zone_population_race 'CHC1A' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC1B' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC2A' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC2B' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC3' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC4A' {races} RaceSet.BlackHispanic
set_zone_population_race 'CHC4B' {races} RaceSet.BlackHispanic
set_zone_gang_strength 'CHC1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC1B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC3' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4B' {gangId} GangType.Vagos {density} 40
set_zone_dealer_strength 'CHC1A' {strength} 4
set_zone_dealer_strength 'CHC1B' {strength} 4
set_zone_dealer_strength 'CHC2A' {strength} 4
set_zone_dealer_strength 'CHC2B' {strength} 4
set_zone_dealer_strength 'CHC3' {strength} 4
set_zone_dealer_strength 'CHC4A' {strength} 4
set_zone_dealer_strength 'CHC4B' {strength} 4
set_zone_population_type 'CONF1A' {type} ZoneType.Business
set_zone_population_type 'CONF1B' {type} ZoneType.Business
set_zone_population_type 'THALL1' {type} ZoneType.Business
set_zone_population_type 'LDOC1A' {type} ZoneType.Industry
set_zone_population_type 'LDOC1B' {type} ZoneType.Industry
set_zone_population_type 'LDOC2' {type} ZoneType.Industry
set_zone_population_type 'LDOC3A' {type} ZoneType.Industry
set_zone_population_type 'LDOC3B' {type} ZoneType.Industry
set_zone_population_type 'LDOC3C' {type} ZoneType.Industry
set_zone_population_type 'LDOC4' {type} ZoneType.Industry
set_zone_population_type 'LDT1A' {type} ZoneType.Business
set_zone_population_type 'LDT1B' {type} ZoneType.Business
set_zone_population_type 'LDT1C' {type} ZoneType.Business
set_zone_population_type 'LDT3' {type} ZoneType.Business
set_zone_population_type 'LDT4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LDT5' {type} ZoneType.Business
set_zone_population_type 'LDT6' {type} ZoneType.Business
set_zone_population_type 'LDT7' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE2A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE2B' {type} ZoneType.ResidentialAverage
set_zone_population_type 'EBE3C' {type} ZoneType.Beach
set_zone_gang_strength 'EBE1' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2A' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2B' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE3C' {gangId} GangType.Vagos {density} 30
set_zone_dealer_strength 'EBE1' {strength} 2
set_zone_dealer_strength 'EBE2A' {strength} 2
set_zone_dealer_strength 'EBE2B' {strength} 2
set_zone_dealer_strength 'EBE3C' {strength} 2
set_zone_population_type 'ELCO1' {type} ZoneType.ResidentialPoor
set_zone_population_type 'ELCO2' {type} ZoneType.Gangland
set_zone_population_race 'ELCO1' {races} RaceSet.BlackHispanic
set_zone_population_race 'ELCO2' {races} RaceSet.BlackHispanic
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 40
set_zone_population_type 'GAN1' {type} ZoneType.Gangland
set_zone_population_type 'GAN2' {type} ZoneType.Gangland
set_zone_population_race 'GAN1' {races} RaceSet.Black
set_zone_population_race 'GAN2' {races} RaceSet.Black
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 25
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 25
set_zone_no_cops 'GAN1' {state} True
set_zone_population_type 'GLN1' {type} ZoneType.Gangland
set_zone_population_type 'GLN2A' {type} ZoneType.Gangland
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN2A' {gangId} GangType.Ballas {density} 40
set_zone_dealer_strength 'GLN1' {strength} 6
set_zone_dealer_strength 'GLN2A' {strength} 2
set_zone_population_type 'LIND1A' {type} ZoneType.Gangland
set_zone_population_type 'LIND1B' {type} ZoneType.Industry
set_zone_population_type 'LIND2A' {type} ZoneType.Industry
set_zone_population_type 'LIND2B' {type} ZoneType.Industry
set_zone_population_type 'LIND3' {type} ZoneType.Industry
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 20
set_zone_population_type 'IWD1' {type} ZoneType.Gangland
set_zone_population_type 'IWD2' {type} ZoneType.Gangland
set_zone_population_type 'IWD3A' {type} ZoneType.Gangland
set_zone_population_type 'IWD3B' {type} ZoneType.Gangland
set_zone_population_type 'IWD4' {type} ZoneType.Gangland
set_zone_population_type 'IWD5' {type} ZoneType.Gangland
set_zone_population_race 'IWD1' {races} RaceSet.Black
set_zone_population_race 'IWD2' {races} RaceSet.Black
set_zone_population_race 'IWD3A' {races} RaceSet.Black
set_zone_population_race 'IWD3B' {races} RaceSet.Black
set_zone_population_race 'IWD4' {races} RaceSet.Black
set_zone_population_race 'IWD5' {races} RaceSet.Black
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 20
set_zone_dealer_strength 'IWD1' {strength} 2
set_zone_dealer_strength 'IWD2' {strength} 2
set_zone_dealer_strength 'IWD3A' {strength} 2
set_zone_dealer_strength 'IWD3B' {strength} 2
set_zone_dealer_strength 'IWD4' {strength} 2
set_zone_dealer_strength 'IWD5' {strength} 2
set_zone_population_type 'JEF1A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF1B' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF3A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF3B' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JEF3C' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'JEF1A' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF1B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF2' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3C' {gangId} GangType.Ballas {density} 40
set_zone_dealer_strength 'JEF1A' {strength} 6
set_zone_dealer_strength 'JEF1B' {strength} 6
set_zone_dealer_strength 'JEF2' {strength} 6
set_zone_dealer_strength 'JEF3B' {strength} 6
set_zone_dealer_strength 'JEF3C' {strength} 6
set_zone_population_type 'LFL1A' {type} ZoneType.Gangland
set_zone_population_type 'LFL1B' {type} ZoneType.Gangland
set_zone_population_race 'LFL1A' {races} RaceSet.BlackHispanic
set_zone_population_race 'LFL1B' {races} RaceSet.BlackHispanic
set_zone_gang_strength 'LFL1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'LFL1B' {gangId} GangType.Vagos {density} 40
set_zone_dealer_strength 'LFL1A' {strength} 4
set_zone_dealer_strength 'LFL1B' {strength} 4
set_zone_population_type 'LMEX1A' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LMEX1B' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 30
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 30
set_zone_population_type 'ELS1A' {type} ZoneType.Gangland
set_zone_population_type 'ELS1B' {type} ZoneType.Gangland
set_zone_population_type 'ELS2' {type} ZoneType.Gangland
set_zone_population_type 'ELS3A' {type} ZoneType.Gangland
set_zone_population_type 'ELS3B' {type} ZoneType.Gangland
set_zone_population_type 'ELS4' {type} ZoneType.Gangland
set_zone_population_race 'ELS1A' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS1B' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS2' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS3A' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS3B' {races} RaceSet.HispanicWhite
set_zone_population_race 'ELS4' {races} RaceSet.HispanicWhite
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
set_zone_dealer_strength 'ELS1A' {strength} 2
set_zone_dealer_strength 'ELS1B' {strength} 2
set_zone_dealer_strength 'ELS2' {strength} 2
set_zone_dealer_strength 'ELS3A' {strength} 2
set_zone_dealer_strength 'ELS3B' {strength} 2
set_zone_dealer_strength 'ELS4' {strength} 2
set_zone_population_type 'MAR1' {type} ZoneType.ResidentialRich
set_zone_population_type 'MAR2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'MAR3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'MKT1' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MKT2' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MKT3' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MKT4' {type} ZoneType.ShoppingPosh
set_zone_population_type 'MUL1A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL1B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL1C' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL2A' {type} ZoneType.Park
set_zone_population_type 'MUL2B' {type} ZoneType.Park
set_zone_population_type 'MUL3' {type} ZoneType.Park
set_zone_population_type 'MUL4' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL5A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL5B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL5C' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL6' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL7A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'MUL7B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'PLS' {type} ZoneType.Beach
set_zone_gang_strength 'PLS' {gangId} GangType.Grove {density} 10
set_zone_population_type 'RIH1A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH1B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH2' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH3A' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH3B' {type} ZoneType.ResidentialRichSecluded
set_zone_population_type 'RIH4' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH5A' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH6B' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH5A' {type} ZoneType.ResidentialRich
set_zone_population_type 'RIH6B' {type} ZoneType.ResidentialRich
set_zone_population_type 'ROD1A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD1B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD1C' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD2A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD2B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD3A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD3B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD4A' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD4B' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD4C' {type} ZoneType.ShoppingPosh
set_zone_population_type 'ROD5A' {type} ZoneType.ResidentialRich
set_zone_population_type 'ROD5B' {type} ZoneType.ResidentialRich
set_zone_population_type 'SMB1' {type} ZoneType.Beach
set_zone_population_type 'SMB2' {type} ZoneType.Beach
set_zone_gang_strength 'SMB1' {gangId} GangType.Grove {density} 10
set_zone_gang_strength 'SMB2' {gangId} GangType.Grove {density} 10
set_zone_population_type 'VIN2' {type} ZoneType.Entertainment
set_zone_population_type 'VIN3' {type} ZoneType.Entertainment
set_zone_population_type 'VIN1A' {type} ZoneType.Entertainment
set_zone_population_type 'VIN1B' {type} ZoneType.Entertainment
set_zone_gang_strength 'VIN2' {gangId} GangType.Grove {density} 10
set_zone_population_type 'VERO1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'VERO2' {type} ZoneType.Shopping
set_zone_population_type 'VERO3' {type} ZoneType.Shopping
set_zone_population_type 'VERO4A' {type} ZoneType.Beach
set_zone_population_type 'VERO4B' {type} ZoneType.Beach
set_zone_gang_strength 'VERO1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO3' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4B' {gangId} GangType.Ballas {density} 10
set_zone_dealer_strength 'VERO1' {strength} 2
set_zone_dealer_strength 'VERO2' {strength} 2
set_zone_dealer_strength 'VERO3' {strength} 2
set_zone_dealer_strength 'VERO4A' {strength} 2
set_zone_dealer_strength 'VERO4B' {strength} 2
set_zone_population_type 'CRANB' {type} ZoneType.ResidentialAverage
set_zone_population_type 'CALT' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'CALT' {gangId} GangType.Triad {density} 10
set_zone_population_type 'SUNMA' {type} ZoneType.ResidentialRich
set_zone_population_type 'SUNNN' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BATTP' {type} ZoneType.Entertainment
set_zone_gang_strength 'BATTP' {gangId} GangType.Rifa {density} 25
set_zone_population_type 'ESPN1' {type} ZoneType.Shopping
set_zone_population_type 'ESPN2' {type} ZoneType.Shopping
set_zone_population_type 'ESPN3' {type} ZoneType.Shopping
set_zone_gang_strength 'ESPN1' {gangId} GangType.DaNangBoys {density} 10
set_zone_gang_strength 'ESPN2' {gangId} GangType.DaNangBoys {density} 10
set_zone_gang_strength 'ESPN3' {gangId} GangType.DaNangBoys {density} 10
set_zone_population_type 'BAYV' {type} ZoneType.ResidentialAverage
set_zone_population_type 'PARA' {type} ZoneType.ResidentialRich
set_zone_population_type 'JUNIHO' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JUNIHI' {type} ZoneType.ResidentialAverage
set_zone_population_type 'CIVI' {type} ZoneType.ResidentialAverage
set_zone_population_type 'CHINA' {type} ZoneType.Shopping
set_zone_population_race 'CHINA' {races} RaceSet.OrientalWhite
set_zone_gang_strength 'CHINA' {gangId} GangType.Triad {density} 40
set_zone_population_type 'SFDWT1' {type} ZoneType.Business
set_zone_population_type 'SFDWT2' {type} ZoneType.Business
set_zone_population_type 'SFDWT3' {type} ZoneType.Business
set_zone_population_type 'SFDWT4' {type} ZoneType.Shopping
set_zone_population_type 'SFDWT5' {type} ZoneType.Shopping
set_zone_population_type 'SFDWT6' {type} ZoneType.Shopping
set_zone_population_type 'FINA' {type} ZoneType.Business
set_zone_population_type 'CITYS' {type} ZoneType.Business
set_zone_population_type 'WESTP1' {type} ZoneType.ResidentialRich
set_zone_population_type 'WESTP2' {type} ZoneType.ResidentialRich
set_zone_population_type 'WESTP3' {type} ZoneType.ResidentialRich
set_zone_population_type 'THEA1' {type} ZoneType.Entertainment
set_zone_population_type 'THEA2' {type} ZoneType.Entertainment
set_zone_population_type 'THEA3' {type} ZoneType.Entertainment
set_zone_gang_strength 'THEA1' {gangId} GangType.Triad {density} 10
set_zone_gang_strength 'THEA3' {gangId} GangType.Rifa {density} 10
set_zone_population_type 'GARC' {type} ZoneType.Gangland
set_zone_gang_strength 'GARC' {gangId} GangType.Rifa {density} 40
set_zone_population_type 'HASH' {type} ZoneType.ResidentialPoor
set_zone_population_type 'OCEAF1' {type} ZoneType.Beach
set_zone_population_type 'OCEAF2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'OCEAF3' {type} ZoneType.Beach
set_zone_population_type 'DOH1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'DOH2' {type} ZoneType.ResidentialAverage
set_zone_gang_strength 'DOH2' {gangId} GangType.Rifa {density} 10
set_zone_population_type 'CUNTC1' {type} ZoneType.ResidentialRich
set_zone_population_type 'CUNTC2' {type} ZoneType.ResidentialRich
set_zone_population_type 'CUNTC3' {type} ZoneType.ResidentialRich
set_zone_population_type 'SFGLF1' {type} ZoneType.GolfClub
set_zone_population_type 'SFGLF2' {type} ZoneType.GolfClub
set_zone_population_type 'SFGLF3' {type} ZoneType.GolfClub
set_zone_population_type 'SFGLF4' {type} ZoneType.GolfClub
set_zone_population_type 'HILLP' {type} ZoneType.Park
set_zone_population_type 'SILLY1' {type} ZoneType.Business
set_zone_population_type 'SILLY2' {type} ZoneType.Business
set_zone_population_type 'SILLY3' {type} ZoneType.Business
set_zone_population_type 'SILLY4' {type} ZoneType.Business
set_zone_population_type 'SFAIR1' {type} ZoneType.Airport
set_zone_population_type 'SFAIR2' {type} ZoneType.Airport
set_zone_population_type 'SFAIR3' {type} ZoneType.Airport
set_zone_population_type 'SFAIR4' {type} ZoneType.Airport
set_zone_population_type 'SFAIR5' {type} ZoneType.Airport
set_zone_population_type 'SFBAG1' {type} ZoneType.AirportRunway
set_zone_population_type 'SFBAG2' {type} ZoneType.AirportRunway
set_zone_population_type 'SFBAG3' {type} ZoneType.AirportRunway
set_zone_population_type 'EASB1' {type} ZoneType.Industry
set_zone_population_type 'EASB2' {type} ZoneType.Industry
set_zone_gang_strength 'EASB1' {gangId} GangType.DaNangBoys {density} 40
set_zone_gang_strength 'EASB2' {gangId} GangType.DaNangBoys {density} 40
set_zone_population_type 'ESPE1' {type} ZoneType.Shopping
set_zone_population_type 'ESPE2' {type} ZoneType.Shopping
set_zone_population_type 'ESPE3' {type} ZoneType.Shopping
set_zone_gang_strength 'EASB1' {gangId} GangType.DaNangBoys {density} 10
set_zone_gang_strength 'EASB2' {gangId} GangType.DaNangBoys {density} 10
set_zone_population_type 'LINDEN' {type} ZoneType.ResidentialAverage
set_zone_population_type 'YELLOW' {type} ZoneType.ResidentialRich
set_zone_population_type 'BFC1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BFC2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'RIE' {type} ZoneType.Business
set_zone_population_type 'LDM' {type} ZoneType.ResidentialPoor
set_zone_population_type 'RSW1' {type} ZoneType.ResidentialPoor
set_zone_population_type 'RSW2' {type} ZoneType.ResidentialPoor
set_zone_population_type 'RSE' {type} ZoneType.ResidentialPoor
set_zone_population_type 'LDS' {type} ZoneType.Industry
set_zone_population_type 'SRY' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTS1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTS2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'LVA1' {type} ZoneType.Industry
set_zone_population_type 'LVA2' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'LVA3' {type} ZoneType.Industry
set_zone_population_type 'LVA4' {type} ZoneType.Industry
set_zone_population_type 'VAIR1' {type} ZoneType.Airport
set_zone_population_type 'VAIR2' {type} ZoneType.Airport
set_zone_population_type 'VAIR3' {type} ZoneType.Airport
set_zone_population_type 'LVBAG' {type} ZoneType.AirportRunway
set_zone_population_type 'GGC1' {type} ZoneType.Park
set_zone_population_type 'GGC2' {type} ZoneType.Entertainment
set_zone_population_type 'BFLD1' {type} ZoneType.Park
set_zone_population_type 'BFLD2' {type} ZoneType.Entertainment
set_zone_population_type 'WWE' {type} ZoneType.ResidentialAverage
set_zone_population_type 'WWE1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'PINT' {type} ZoneType.ResidentialAverage
set_zone_population_type 'YBELL2' {type} ZoneType.ResidentialRich
set_zone_population_type 'YBELL1' {type} ZoneType.GolfClub
set_zone_population_type 'JTW1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTW2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN5' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN6' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN7' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTN8' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'JTE4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'HGP' {type} ZoneType.ResidentialRich
set_zone_population_type 'SPIN' {type} ZoneType.Industry
set_zone_population_type 'BINT1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BINT2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BINT3' {type} ZoneType.ResidentialAverage
set_zone_population_type 'BINT4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'PRP1' {type} ZoneType.ResidentialRich
set_zone_population_type 'PRP2' {type} ZoneType.ResidentialRich
set_zone_population_type 'PRP3' {type} ZoneType.ResidentialRich
set_zone_population_type 'PRP4' {type} ZoneType.ResidentialRich
set_zone_population_type 'REDE1' {type} ZoneType.Business
set_zone_population_type 'REDE2' {type} ZoneType.Business
set_zone_population_type 'REDE3' {type} ZoneType.Entertainment
set_zone_population_type 'REDW1' {type} ZoneType.ResidentialAverage
set_zone_population_type 'REDW2' {type} ZoneType.ResidentialAverage
set_zone_population_type 'REDW3' {type} ZoneType.Industry
set_zone_population_type 'REDW4' {type} ZoneType.ResidentialAverage
set_zone_population_type 'ROCE1' {type} ZoneType.Business
set_zone_population_type 'ROCE2' {type} ZoneType.Business
set_zone_population_type 'OVS' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CREE' {type} ZoneType.Shopping
set_zone_population_type 'STRIP1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STRIP2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STRIP3' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STRIP4' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'PILL1' {type} ZoneType.Shopping
set_zone_population_type 'PILL2' {type} ZoneType.Shopping
set_zone_population_type 'RING' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'ISLE' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STAR1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'STAR2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'ROY' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CAM' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'LOT' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'PIRA' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'VISA1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'VISA2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CALI1' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CALI2' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'DRAG' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'PINK' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'HIGH' {type} ZoneType.EntertainmentBusy
set_zone_population_type 'CONST1' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'ANGPI' {type} ZoneType.Countryside
set_zone_population_type 'SHACA' {type} ZoneType.Countryside
set_zone_population_type 'BACKO' {type} ZoneType.Countryside
set_zone_population_type 'BEACO' {type} ZoneType.Countryside
set_zone_population_type 'FARM' {type} ZoneType.Countryside
set_zone_population_type 'PALO' {type} ZoneType.Countryside
set_zone_population_type 'MONT' {type} ZoneType.Countryside
set_zone_population_type 'MONT1' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI1' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI2' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI3' {type} ZoneType.Countryside
set_zone_population_type 'MTCHI4' {type} ZoneType.Countryside
set_zone_population_type 'HBARNS' {type} ZoneType.Countryside
set_zone_population_type 'DILLI' {type} ZoneType.Countryside
set_zone_population_type 'TOPFA' {type} ZoneType.Countryside
set_zone_population_type 'BLUEB' {type} ZoneType.Countryside
set_zone_population_type 'BLUEB1' {type} ZoneType.Countryside
set_zone_population_type 'PANOP' {type} ZoneType.Countryside
set_zone_population_type 'BLUAC' {type} ZoneType.Countryside
set_zone_population_type 'CREEK' {type} ZoneType.Countryside
set_zone_population_type 'CREEK1' {type} ZoneType.Countryside
set_zone_population_type 'MAKO' {type} ZoneType.Countryside
set_zone_population_type 'TOPFA' {type} ZoneType.Countryside
set_zone_population_type 'FERN' {type} ZoneType.Countryside
set_zone_population_type 'NROCK' {type} ZoneType.Countryside
set_zone_population_type 'HANKY' {type} ZoneType.Countryside
set_zone_population_type 'LEAFY' {type} ZoneType.Countryside
set_zone_population_type 'RED' {type} ZoneType.Countryside
set_zone_population_type 'FLINTC' {type} ZoneType.Countryside
set_zone_population_type 'WHET' {type} ZoneType.Countryside
set_zone_population_type 'BIGE' {type} ZoneType.Desert
set_zone_population_type 'ELQUE' {type} ZoneType.Desert
set_zone_population_type 'BARRA' {type} ZoneType.Desert
set_zone_population_type 'CARSO' {type} ZoneType.Desert
set_zone_population_type 'PAYAS' {type} ZoneType.Desert
set_zone_population_type 'PROBE' {type} ZoneType.Desert
set_zone_population_type 'ELCA' {type} ZoneType.Desert
set_zone_population_type 'FLINTR' {type} ZoneType.Desert
set_zone_population_type 'ARCO' {type} ZoneType.Desert
set_zone_population_type 'VALLE' {type} ZoneType.Desert
set_zone_population_type 'FLINTI' {type} ZoneType.Desert
set_zone_population_type 'MONINT' {type} ZoneType.Desert
set_zone_population_type 'ROBINT' {type} ZoneType.Desert
set_zone_population_type 'TOM' {type} ZoneType.Desert
set_zone_population_type 'ALDEA' {type} ZoneType.Desert
set_zone_population_type 'BRUJA' {type} ZoneType.Desert
set_zone_population_type 'ROBAD' {type} ZoneType.Desert
set_zone_population_type 'BONE' {type} ZoneType.Desert
set_zone_population_type 'HAUL' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'QUARY' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'OCTAN' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'PALMS' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'EBAY' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'EBAY2' {type} ZoneType.OutOfTownFactory
set_zone_population_type 'DAM' {type} ZoneType.OutOfTownFactory
$pickup_horseshoe = create_horseshoe_pickup 1224.0 {y} 2617.0 {z} 11.0
$2883 = create_horseshoe_pickup 2323.0 {y} 1284.0 {z} 97.0
$2884 = create_horseshoe_pickup 2035.0 {y} 2305.0 {z} 18.0
$2885 = create_horseshoe_pickup 2491.0 {y} 2263.0 {z} 15.0
$2886 = create_horseshoe_pickup 1433.0 {y} 2796.0 {z} 20.0
$2887 = create_horseshoe_pickup 2071.0 {y} 712.0 {z} 11.0
$2888 = create_horseshoe_pickup 2239.0 {y} 1839.0 {z} 18.0
$2889 = create_horseshoe_pickup 2583.0 {y} 2387.0 {z} 16.0
$2890 = create_horseshoe_pickup 2864.0 {y} 857.0 {z} 13.0
$2891 = create_horseshoe_pickup 2612.0 {y} 2200.0 {z} -1.0
$2892 = create_horseshoe_pickup 2274.0 {y} 1507.0 {z} 24.0
$2893 = create_horseshoe_pickup 2184.0 {y} 2529.0 {z} 11.0
$2894 = create_horseshoe_pickup 1863.0 {y} 2314.0 {z} 15.0
$2895 = create_horseshoe_pickup 2054.0 {y} 2434.0 {z} 166.0
$2896 = create_horseshoe_pickup 1603.0 {y} 1435.0 {z} 11.0
$2897 = create_horseshoe_pickup 1362.92 {y} 1015.24 {z} 11.0
$2898 = create_horseshoe_pickup 2058.7 {y} 2159.1001 {z} 16.0
$2899 = create_horseshoe_pickup 2003.0 {y} 1672.0 {z} 12.0
$2900 = create_horseshoe_pickup 2238.0 {y} 1135.0 {z} 49.0
$2901 = create_horseshoe_pickup 1934.0601 {y} 988.79 {z} 22.0
$2902 = create_horseshoe_pickup 1768.0 {y} 2847.0 {z} 9.0
$2903 = create_horseshoe_pickup 1084.0 {y} 1076.0 {z} 11.0
$2904 = create_horseshoe_pickup 2879.0 {y} 2522.0 {z} 11.0
$2905 = create_horseshoe_pickup 2371.0 {y} 2009.0 {z} 15.0
$2906 = create_horseshoe_pickup 1521.0 {y} 1690.0 {z} 10.6
$2907 = create_horseshoe_pickup 2417.0 {y} 1281.0 {z} 21.0
$2908 = create_horseshoe_pickup 1376.0 {y} 2304.0 {z} 15.0
$2909 = create_horseshoe_pickup 1393.0 {y} 1832.0 {z} 12.34
$2910 = create_horseshoe_pickup 984.0 {y} 2563.0 {z} 12.0
$2911 = create_horseshoe_pickup 1767.0 {y} 601.0 {z} 13.0
$2912 = create_horseshoe_pickup 2108.0 {y} 1003.0 {z} 46.0
$2913 = create_horseshoe_pickup 2705.98 {y} 1862.52 {z} 24.41
$2914 = create_horseshoe_pickup 2493.0 {y} 922.0 {z} 16.0
$2915 = create_horseshoe_pickup 1881.0 {y} 2846.0 {z} 11.0
$2916 = create_horseshoe_pickup 2020.0 {y} 2352.0 {z} 11.0
$2917 = create_horseshoe_pickup 1680.3 {y} 2226.8601 {z} 16.11
$2918 = create_horseshoe_pickup 1462.0 {y} 936.0 {z} 10.0
$2919 = create_horseshoe_pickup 2125.5 {y} 789.23 {z} 11.45
$2920 = create_horseshoe_pickup 2588.0 {y} 1902.0 {z} 15.0
$2921 = create_horseshoe_pickup 919.0 {y} 2070.0 {z} 11.0
$2922 = create_horseshoe_pickup 2173.0 {y} 2465.0 {z} 11.0
$2923 = create_horseshoe_pickup 2031.25 {y} 2207.3301 {z} 11.0
$2924 = create_horseshoe_pickup 2509.0 {y} 1144.0 {z} 19.0
$2925 = create_horseshoe_pickup 2215.0 {y} 1968.0 {z} 11.0
$2926 = create_horseshoe_pickup 2626.0 {y} 2841.0 {z} 11.0
$2927 = create_horseshoe_pickup 2440.0801 {y} 2161.0701 {z} 20.0
$2928 = create_horseshoe_pickup 1582.0 {y} 2401.0 {z} 19.0
$2929 = create_horseshoe_pickup 2077.0 {y} 1912.0 {z} 14.0
$2930 = create_horseshoe_pickup 970.0 {y} 1787.0 {z} 11.0
$2931 = create_horseshoe_pickup 1526.22 {y} 751.0 {z} 29.04
$location_photo = create_snapshot_pickup -2511.28 {y} -672.99 {z} 195.75
$2933 = create_snapshot_pickup -2723.6299 {y} -314.72 {z} 55.79
$2934 = create_snapshot_pickup -1737.71 {y} -579.55 {z} 26.19
$2935 = create_snapshot_pickup -1486.08 {y} 920.04 {z} 41.37
$2936 = create_snapshot_pickup -1269.8199 {y} 963.63 {z} 130.37
$2937 = create_snapshot_pickup -1650.01 {y} 422.0 {z} 21.17
$2938 = create_snapshot_pickup -1851.72 {y} -96.73 {z} 24.37
$2939 = create_snapshot_pickup -2732.0 {y} -244.0 {z} 19.0
$2940 = create_snapshot_pickup -2802.75 {y} 375.47 {z} 36.59
$2941 = create_snapshot_pickup -2773.04 {y} 783.45 {z} 67.66
$2942 = create_snapshot_pickup -2680.0701 {y} 1590.8 {z} 143.53
$2943 = create_snapshot_pickup -2476.75 {y} 1543.4399 {z} 49.26
$2944 = create_snapshot_pickup -1879.04 {y} 1456.52 {z} 9.34
$2945 = create_snapshot_pickup -1561.55 {y} 655.19 {z} 56.52
$2946 = create_snapshot_pickup -1325.15 {y} 494.19 {z} 26.83
$2947 = create_snapshot_pickup -1941.41 {y} 137.72 {z} 37.83
$2948 = create_snapshot_pickup -2153.23 {y} 462.25 {z} 103.27
$2949 = create_snapshot_pickup -2243.96 {y} 577.76 {z} 49.0
$2950 = create_snapshot_pickup -2051.0 {y} 456.0 {z} 167.0
$2951 = create_snapshot_pickup -1951.0 {y} 659.0 {z} 81.0
$2952 = create_snapshot_pickup -2064.0 {y} 926.0 {z} 63.0
$2953 = create_snapshot_pickup -2357.3301 {y} 1017.01 {z} 59.76
$2954 = create_snapshot_pickup -2072.0 {y} 1066.0 {z} 74.0
$2955 = create_snapshot_pickup -1744.0 {y} 972.46 {z} 156.89
$2956 = create_snapshot_pickup -1941.0 {y} 883.0 {z} 68.0
$2957 = create_snapshot_pickup -1839.51 {y} 1086.88 {z} 101.29
$2958 = create_snapshot_pickup -1704.8 {y} 1338.0 {z} 14.0
$2959 = create_snapshot_pickup -2346.6201 {y} 536.85 {z} 86.02
$2960 = create_snapshot_pickup -2443.0 {y} 755.0 {z} 49.0
$2961 = create_snapshot_pickup -2765.0 {y} 375.0 {z} 15.0
$2962 = create_snapshot_pickup -2880.3101 {y} -935.83 {z} 40.82
$2963 = create_snapshot_pickup -2083.0 {y} -808.0 {z} 69.0
$2964 = create_snapshot_pickup -1954.0 {y} -760.0 {z} 53.0
$2965 = create_snapshot_pickup -964.53 {y} -331.59 {z} 47.16
$2966 = create_snapshot_pickup -1689.0 {y} 51.0 {z} 38.0
$2967 = create_snapshot_pickup -2080.0 {y} 256.05 {z} 107.0
$2968 = create_snapshot_pickup -2413.0 {y} 331.0 {z} 37.0
$2969 = create_snapshot_pickup -2244.4199 {y} 731.32 {z} 61.88
$2970 = create_snapshot_pickup -2462.0 {y} 369.0 {z} 59.0
$2971 = create_snapshot_pickup -1124.4399 {y} -153.15 {z} 18.5
$2972 = create_snapshot_pickup -1275.78 {y} 53.68 {z} 89.07
$2973 = create_snapshot_pickup -2430.0 {y} 38.0 {z} 51.0
$2974 = create_snapshot_pickup -2591.0 {y} 162.0 {z} 15.0
$2975 = create_snapshot_pickup -2591.0 {y} -16.0 {z} 17.0
$2976 = create_snapshot_pickup -2648.0 {y} -5.0 {z} 31.0
$2977 = create_snapshot_pickup -2593.0 {y} 56.0 {z} 16.0
$2978 = create_snapshot_pickup -1619.3101 {y} 1341.39 {z} 11.3
$2979 = create_snapshot_pickup -2307.0 {y} 207.0 {z} 42.0
$2980 = create_snapshot_pickup -2343.0 {y} -79.0 {z} 38.0
$2981 = create_snapshot_pickup -1906.66 {y} 518.58 {z} 61.71
$pickup_oyster = create_oyster_pickup 979.0 {y} -2210.0 {z} -3.0
$2983 = create_oyster_pickup 2750.0 {y} -2584.0 {z} -5.0
$2984 = create_oyster_pickup 1279.0 {y} -806.0 {z} 85.0
$2985 = create_oyster_pickup 2945.1299 {y} -2051.9299 {z} -3.0
$2986 = create_oyster_pickup 67.0 {y} -1018.0 {z} -5.0
$2987 = create_oyster_pickup 2327.0 {y} -2662.0 {z} -5.0
$2988 = create_oyster_pickup 2621.0 {y} -2506.0 {z} -5.0
$2989 = create_oyster_pickup 1249.0 {y} -2687.0 {z} -1.0
$2990 = create_oyster_pickup 725.0 {y} -1849.0 {z} -5.0
$2991 = create_oyster_pickup 723.0 {y} -1586.0 {z} -3.0
$2992 = create_oyster_pickup 155.0 {y} -1975.0 {z} -8.0
$2993 = create_oyster_pickup 1968.0 {y} -1203.0 {z} 17.0
$2994 = create_oyster_pickup -2657.0 {y} 1564.0 {z} -6.0
$2995 = create_oyster_pickup -1252.0 {y} 501.0 {z} -8.0
$2996 = create_oyster_pickup -1625.0 {y} 4.0 {z} -10.0
$2997 = create_oyster_pickup -1484.0 {y} 1489.0 {z} -10.0
$2998 = create_oyster_pickup -2505.406 {y} 1543.724 {z} -22.5553
$2999 = create_oyster_pickup -2727.0 {y} -469.0 {z} -5.0
$3000 = create_oyster_pickup -1266.0 {y} 966.0 {z} -10.0
$3001 = create_oyster_pickup -1013.0 {y} 478.0 {z} -7.0
$3002 = create_oyster_pickup -1364.0 {y} 390.0 {z} -5.0
$3003 = create_oyster_pickup 2578.0 {y} 2382.0 {z} 16.0
$3004 = create_oyster_pickup 2090.0 {y} 1898.0 {z} 8.0
$3005 = create_oyster_pickup 2130.0 {y} 1152.0 {z} 7.0
$3006 = create_oyster_pickup 2013.0 {y} 1670.0 {z} 7.0
$3007 = create_oyster_pickup 2531.0 {y} 1569.0 {z} 9.0
$3008 = create_oyster_pickup 2998.0 {y} 2998.0 {z} -10.0
$3009 = create_oyster_pickup -832.0 {y} 925.0 {z} -2.0
$3010 = create_oyster_pickup 486.0 {y} -253.0 {z} -4.0
$3011 = create_oyster_pickup -90.0 {y} -910.0 {z} -5.0
$3012 = create_oyster_pickup 26.43 {y} -1320.9399 {z} -10.04
$3013 = create_oyster_pickup -207.0 {y} -1682.0 {z} -8.0
$3014 = create_oyster_pickup -1672.0 {y} -1641.0 {z} -2.0
$3015 = create_oyster_pickup -1175.0 {y} -2639.0 {z} -2.5
$3016 = create_oyster_pickup -1097.0 {y} -2858.0 {z} -8.0
$3017 = create_oyster_pickup -2889.0 {y} -1042.0 {z} -9.0
$3018 = create_oyster_pickup -659.0 {y} 874.0 {z} -2.0
$3019 = create_oyster_pickup -955.0 {y} 2628.0 {z} 35.0
$3020 = create_oyster_pickup -1066.0 {y} 2197.0 {z} 32.0
$3021 = create_oyster_pickup 40.0 {y} -531.0 {z} -8.0
$3022 = create_oyster_pickup -765.0 {y} 247.0 {z} -8.0
$3023 = create_oyster_pickup 2098.0 {y} -108.0 {z} -2.0
$3024 = create_oyster_pickup 2767.0 {y} 470.0 {z} -8.0
$3025 = create_oyster_pickup -783.0 {y} 2116.0 {z} 35.0
$3026 = create_oyster_pickup -821.0 {y} 1374.0 {z} -8.0
$3027 = create_oyster_pickup -2110.5 {y} 2329.72 {z} -7.5
$3028 = create_oyster_pickup -1538.0 {y} 1708.0 {z} -3.27
$3029 = create_oyster_pickup -2685.0 {y} 2153.0 {z} -5.0
$3030 = create_oyster_pickup 796.0 {y} 2939.0 {z} -5.0
$3031 = create_oyster_pickup 2179.0 {y} 235.0 {z} -5.0
$pickup_weapon = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2832.0 {y} 2405.0 {z} 18.0
$3033 = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 500 {x} 2819.0 {y} 1663.0 {z} 11.0
$3034 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2725.0 {y} 2727.0 {z} 11.0
$3035 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} 2649.0 {y} 2733.0 {z} 11.0
$3036 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} 2148.0 {y} 2721.0 {z} 11.0
$3037 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1345.0 {y} 2367.0 {z} 11.0
$3038 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1625.0 {y} 1944.0 {z} 11.0
$3039 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 1569.0 {y} 2150.0 {z} 11.0
$3040 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2072.0 {y} 2370.0 {z} 61.0
$3041 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2225.0 {y} 2530.0 {z} 17.0
$3042 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2337.0 {y} 1806.0 {z} 72.0
$3043 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2575.0 {y} 1562.0 {z} 16.0
$3044 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2243.0 {y} 1132.0 {z} 11.0
$3045 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} 2676.0 {y} 836.0 {z} 22.0
$3046 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 1761.0 {y} 591.0 {z} 10.0
$3047 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2809.0 {y} 864.0 {z} 21.0
$3048 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1923.0 {y} 1011.0 {z} 22.0
$3049 = create_pickup_with_ammo 351 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 1407.0 {y} 1098.0 {z} 11.0
$3050 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1319.0 {y} 1636.0 {z} 10.6
$3051 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1446.35 {y} 1900.03 {z} 11.0
$3052 = create_pickup_with_ammo 347 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1098.0 {y} 1681.0 {z} 7.0
$3053 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 924.0 {y} 2138.0 {z} 11.0
$3054 = create_pickup_with_ammo 360 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1155.0 {y} 2341.0 {z} 17.0
$3055 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1646.0 {y} 1349.0 {z} 11.0
$3056 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1781.0 {y} 2072.0 {z} 11.0
$3057 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2478.0 {y} 1182.0 {z} 22.0
$3058 = create_pickup 338 {pickupType} PickupType.OnStreetSlow {x} 2854.0 {y} 944.0 {z} 11.0
$3059 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 2241.0 {y} 2425.0 {z} 11.0
$3060 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} 1418.0 {y} 2774.0 {z} 15.0
$3061 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 1393.0 {y} 2174.0 {z} 10.0
$3062 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 1061.0 {y} 2074.0 {z} 11.0
$3063 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} 2057.0 {y} 2434.0 {z} 166.0
$3064 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 2000.0 {y} 1526.0 {z} 15.0
$3065 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 1997.0 {y} 1658.0 {z} 12.0
$3066 = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 500 {x} 2510.0 {y} -1723.0 {z} 19.0
$3067 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 2538.0 {y} -1630.0 {z} 14.0
$3068 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2551.3301 {y} -1740.0 {z} 6.49
$3069 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 2428.0 {y} -1214.0 {z} 36.0
$3070 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 2766.0 {y} -2182.0 {z} 11.0
$3071 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2142.0 {y} -1804.0 {z} 16.0
$3072 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 1764.0 {y} -1930.0 {z} 14.0
$3073 = create_pickup_with_ammo 347 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1214.0 {y} -1816.0 {z} 17.0
$3074 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1740.0 {y} -1231.0 {z} 92.0
$3075 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2266.0 {y} -1028.0 {z} 59.0
$3076 = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 500 {x} 2463.0 {y} -1061.0 {z} 60.0
$3077 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2047.0 {y} -1406.0 {z} 68.0
$3078 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2213.0 {y} -2283.0 {z} 15.0
$3079 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 1463.0 {y} -1013.0 {z} 27.0
$3080 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 1308.97 {y} -874.4 {z} 40.0
$3081 = create_pickup_with_ammo 357 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 1102.0 {y} -661.0 {z} 114.0
$3082 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 899.8012 {y} -792.078 {z} 102.0
$3083 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 338.0 {y} -1875.0 {z} 4.0
$3084 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 397.0 {y} -1924.0 {z} 8.0
$3085 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 886.0 {y} -966.0 {z} 37.0
$3086 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 1408.0 {y} -2380.0 {z} 14.0
$3087 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 1379.0 {y} -2547.0 {z} 14.0
$3100 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2426.0 {y} -1416.0 {z} 24.0
$3088 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 259.0 {y} 80.0 {z} 1004.0
$3089 = create_pickup 321 {pickupType} PickupType.OnStreetSlow {x} 261.0 {y} 71.0 {z} 1003.0
$3090 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} 1457.0 {y} -792.0 {z} 90.0
$3091 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 2371.0 {y} -2543.0 {z} 3.0
$3092 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} 1124.0 {y} -1335.0 {z} 13.0
$3093 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2197.0 {y} -2475.0 {z} 14.0
$3094 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} 1528.222 {y} -1357.985 {z} 330.0371
$3095 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 1862.0 {y} -1862.0 {z} 14.0
$3096 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} 1339.0 {y} -1765.0 {z} 14.0
$3097 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 2192.2429 {y} -1988.751 {z} 13.4185
$3098 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 2459.0 {y} -1708.0 {z} 13.6
$3099 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2441.0 {y} -1013.0 {z} 54.0
$3101 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} -2678.0 {y} -128.0 {z} 4.0
$3102 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -2212.0 {y} 109.0 {z} 35.0
$3103 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} -2903.0 {y} 784.0 {z} 35.0
$3104 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2665.0 {y} 1452.0 {z} 7.0
$3105 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} -2754.0 {y} -400.0 {z} 7.0
$3106 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} -2206.0 {y} -23.0 {z} 35.0
$3107 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1841.106 {y} -74.2171 {z} 14.7606
$3108 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -1579.0 {y} 29.45 {z} 17.0
$3109 = create_pickup_with_ammo 357 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -2094.0 {y} -488.0 {z} 36.0
$3110 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -1968.0 {y} -923.0 {z} 32.0
$3111 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1945.0 {y} -1088.0 {z} 31.0
$3112 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} -1700.0 {y} 415.0 {z} 7.0
$3113 = create_pickup_with_ammo 343 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -1386.0 {y} 509.0 {z} 4.0
$3114 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -1679.0 {y} 1410.0 {z} 7.0
$3115 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -2132.52 {y} 189.2507 {z} 35.5379
$3116 = create_pickup_with_ammo 360 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -1126.6899 {y} -150.82 {z} 14.61
$3117 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} -1496.0 {y} 591.0 {z} 42.0
$3118 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} -2542.262 {y} 922.2401 {z} 67.1221
$3119 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2092.0 {y} 1121.0 {z} 54.0
$3120 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} -1629.0 {y} 1167.0 {z} 24.0
$3121 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -2083.0 {y} 298.0 {z} 42.0
$3122 = create_pickup 336 {pickupType} PickupType.OnStreetSlow {x} -2306.0 {y} 93.0 {z} 35.0
$3123 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} -2796.416 {y} 123.686 {z} 6.844
$3124 = create_pickup 338 {pickupType} PickupType.OnStreetSlow {x} -2135.0 {y} 197.0 {z} 35.0
$3125 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} -2208.0 {y} 696.0 {z} 50.0
$3126 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} -2206.0 {y} 961.0 {z} 80.0
$3127 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} -2222.0 {y} -302.0 {z} 43.0
$3128 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} -1871.0 {y} 351.0 {z} 26.0
$3129 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} -2715.0 {y} -314.0 {z} 7.0
$3130 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -2359.0 {y} -82.0 {z} 35.0
$3131 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1870.0 {y} -1625.0 {z} 22.0
$3132 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} -1627.0 {y} -2692.0 {z} 49.0
$3133 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -2038.0 {y} -2562.0 {z} 31.0
$3134 = create_pickup_with_ammo 357 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1035.0 {y} -2258.0 {z} 70.0
$3135 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 2366.0 {y} 23.0 {z} 28.0
$3136 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2255.0 {y} -74.0 {z} 32.0
$3137 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 1296.0 {y} 392.0 {z} 20.0
$3138 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 262.0 {y} 38.0 {z} 2.0
$3139 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -121.0 {y} -232.0 {z} 1.0
$3140 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} -532.0 {y} -106.0 {z} 63.0
$3141 = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 113.0 {y} 1811.0 {z} 18.0
$3142 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 36.0 {y} 1372.0 {z} 9.0
$3143 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 24.0 {y} 969.0 {z} 20.0
$3144 = create_pickup_with_ammo 344 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -170.0 {y} 1025.0 {z} 20.0
$3145 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} -639.0 {y} 1181.0 {z} 13.0
$3146 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} -585.0 {y} 2714.0 {z} 72.0
$3147 = create_pickup_with_ammo 366 {pickupType} PickupType.OnStreetSlow {ammo} 3000 {x} -742.0 {y} 2752.0 {z} 47.0
$3148 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -932.02 {y} 2649.9199 {z} 42.0
$3149 = create_pickup_with_ammo 360 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} -1317.0 {y} 2509.0 {z} 87.0
$3150 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} -1474.0 {y} 2577.0 {z} 56.0
$3151 = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -2352.0 {y} 2456.0 {z} 6.0
$3152 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} -2520.0 {y} 2293.0 {z} 5.0
$3153 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -1358.0 {y} -2115.0 {z} 30.0
$3154 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 119.0 {y} 2409.0 {z} 17.0
$3155 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} -1809.0 {y} -1662.0 {z} 24.0
$3156 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -2350.0 {y} -1586.0 {z} 485.0
$3157 = create_pickup 333 {pickupType} PickupType.OnStreetSlow {x} -2227.0 {y} -2401.0 {z} 31.4
$3158 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 2240.0 {y} -83.0 {z} 27.0
$3159 = create_pickup 338 {pickupType} PickupType.OnStreetSlow {x} 294.0 {y} -188.0 {z} 2.0
$3160 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -761.0 {y} -126.0 {z} 66.0
$3161 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} -1568.0 {y} 2718.0 {z} 56.0
$3162 = create_pickup 322 {pickupType} PickupType.OnStreetSlow {x} -2401.0 {y} 2360.0 {z} 5.0
$3163 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -2679.0 {y} 1933.0 {z} 217.0
$3164 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 637.0 {y} 832.0 {z} -43.0
$3165 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 680.0 {y} 826.0 {z} -39.0
$3166 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} 752.0 {y} 260.0 {z} 27.0
$3167 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} -246.0 {y} 2725.0 {z} 63.0
$3168 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} -23.0 {y} 2322.0 {z} 24.0
$3169 = create_pickup_with_ammo 363 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} 1284.894 {y} 278.5705 {z} 19.5547
$3171 = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2129.3999 {y} -2280.71 {z} 14.42
$3172 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -1542.8571 {y} 698.4825 {z} 139.2658
$3173 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 130 {x} 2198.1101 {y} -1170.22 {z} 33.5
$3174 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -225.6758 {y} 1394.256 {z} 172.0143
$3175 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -773.0379 {y} 2423.499 {z} 157.0856
$3176 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 935.744 {y} -926.0453 {z} 57.7642
$3177 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 842.9783 {y} -17.3791 {z} 64.2
$3178 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 255.0493 {y} 84.0615 {z} 1002.453
$3179 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 217.8 {y} 76.4 {z} 1005.047
$3180 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 223.8347 {y} 120.4458 {z} 1010.212
$3181 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 263.2531 {y} 109.7859 {z} 1004.625
$3182 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 228.3176 {y} 114.433 {z} 999.0215
$3183 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 247.4536 {y} 192.3085 {z} 1008.172
$3184 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 242.613 {y} 196.3202 {z} 1008.172
$3185 = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 240.7765 {y} 196.1124 {z} 1008.172
$3186 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 188.9769 {y} 158.218 {z} 1003.031
$3187 = create_pickup 371 {pickupType} PickupType.OnStreetSlow {x} -1753.418 {y} 885.3446 {z} 295.5166
$3188 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2539.918 {y} -598.6152 {z} 132.764
$3189 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2329.9839 {y} -165.3635 {z} 35.2389
$3190 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2721.241 {y} -318.8085 {z} 7.5246
$3191 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2677.1021 {y} 234.9912 {z} 4.1048
$3192 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2706.6919 {y} 375.8728 {z} 5.0525
$3193 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2550.106 {y} 657.286 {z} 14.7319
$3194 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2791.248 {y} 771.5468 {z} 51.0904
$3195 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1770.8149 {y} 903.2556 {z} 25.3894
$3196 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1713.006 {y} 1368.239 {z} 7.2664
$3197 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1851.317 {y} 1302.291 {z} 60.7553
$3198 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1635.026 {y} 604.4713 {z} 40.6377
$3199 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1976.483 {y} 670.5043 {z} 46.6039
$3200 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2038.4091 {y} 1111.406 {z} 53.7928
$3201 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2048.803 {y} 899.5274 {z} 53.8866
$3202 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -2292.47 {y} 722.5441 {z} 49.4265
$3203 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1977.916 {y} 113.8457 {z} 27.1096
$3204 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1528.144 {y} 160.0232 {z} 3.5142
$3205 = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} -1771.261 {y} -597.5884 {z} 16.6287
$special_camera = create_pickup_with_ammo 367 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 2495.8069 {y} -1700.637 {z} 1017.837
$3206 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2677.7261 {y} -192.3469 {z} 6.8518
$3207 = create_pickup 341 {pickupType} PickupType.OnStreetSlow {x} -2752.2429 {y} -272.2891 {z} 6.5956
$3208 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2617.4729 {y} -97.0801 {z} 4.003
$3209 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2777.1919 {y} -25.2984 {z} 6.8721
$3210 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2774.113 {y} 87.8845 {z} 6.7987
$3211 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2770.624 {y} 389.0772 {z} 4.2818
$3212 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} -2535.6311 {y} 51.7034 {z} 8.6512
$3213 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2530.958 {y} -34.1009 {z} 25.2855
$3214 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -1691.649 {y} 946.7679 {z} 24.8084
$3215 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -2664.5181 {y} 636.5673 {z} 14.2474
$3216 = create_pickup_with_ammo 361 {pickupType} PickupType.OnStreetSlow {ammo} 2000 {x} -601.4012 {y} -1068.6 {z} 23.6667
$3217 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -377.2184 {y} -1048.053 {z} 58.9125
$3218 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} -45.5928 {y} -1148.5291 {z} 1.3953
$3219 = create_pickup 331 {pickupType} PickupType.OnStreetSlow {x} 2428.499 {y} -1679.27 {z} 13.1633
$3220 = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2820.0129 {y} -1426.519 {z} 23.805
$3221 = create_pickup_with_ammo 352 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 2790.343 {y} -1427.489 {z} 39.6258
$3222 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 2574.0649 {y} -1134.201 {z} 64.6535
$3223 = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 35 {x} 2423.8921 {y} -1117.452 {z} 41.2464
$3224 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1296.155 {y} -1081.892 {z} 26.1502
$3225 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1390.611 {y} -800.4332 {z} 81.7795
$3226 = create_pickup 336 {pickupType} PickupType.OnStreetSlow {x} 1308.4659 {y} 2111.2891 {z} 10.7221
$3227 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 2183.116 {y} 2396.8269 {z} 10.7722
$3228 = create_pickup 336 {pickupType} PickupType.OnStreetSlow {x} 1081.1331 {y} 1603.697 {z} 5.6
$3229 = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} 777.8668 {y} 1948.123 {z} 5.3634
$3231 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 25 {x} 1706.3521 {y} 1242.019 {z} 34.2952
$3232 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} 2492.051 {y} 2398.377 {z} 4.5293
$3233 = create_pickup_with_ammo 359 {pickupType} PickupType.OnStreetSlow {ammo} 10 {x} 2055.355 {y} 2435.356 {z} 40.3684
$3234 = create_pickup 337 {pickupType} PickupType.OnStreetSlow {x} 1888.27 {y} 2877.262 {z} 10.1621
$3235 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1420.9449 {y} 2519.8821 {z} 10.6199
$3236 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 1372.996 {y} 2605.7581 {z} 10.8776
$3237 = create_pickup_with_ammo 353 {pickupType} PickupType.OnStreetSlow {ammo} 70 {x} 2293.686 {y} 1982.286 {z} 31.4335
$3238 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 2631.2629 {y} 1722.395 {z} 11.0312
$3239 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 2490.4971 {y} 1522.47 {z} 10.576
$3240 = create_pickup 326 {pickupType} PickupType.OnStreetSlow {x} 455.4583 {y} -1485.896 {z} 30.9717
$3241 = create_pickup_with_ammo 362 {pickupType} PickupType.OnStreetSlow {ammo} 200 {x} 244.98 {y} 1859.1851 {z} 14.08
$3244 = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 50 {x} 2529.7241 {y} -1678.563 {z} 19.4225
$3245 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 15 {x} 2254.3779 {y} -2261.689 {z} 14.3751
$3246 = create_pickup_with_ammo 358 {pickupType} PickupType.OnStreetSlow {ammo} 20 {x} 2015.744 {y} 1004.045 {z} 39.1
$3247 = create_pickup 339 {pickupType} PickupType.OnStreetSlow {x} 2002.2629 {y} 981.3947 {z} 10.5
$pickup_flowers = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1928.6801 {y} -1774.21 {z} 13.54
$3258 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1875.91 {y} -1917.1801 {z} 15.03
$3259 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2019.6 {y} -1214.15 {z} 21.47
$3260 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2209.77 {y} -1001.69 {z} 63.71
$3261 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1000.34 {y} -1858.58 {z} 12.3
$3263 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 911.11 {y} -1120.3101 {z} 24.03
$3264 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 929.0 {y} -750.0 {z} 105.82
$3265 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1129.09 {y} -2052.8201 {z} 69.0
$3266 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -92.74 {y} -1425.46 {z} 12.75
$3267 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -77.65 {y} -1167.1801 {z} 2.16
$3268 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 34.0 {y} -2649.0 {z} 40.73
$3269 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -739.0 {y} -1262.0 {z} 68.12
$3270 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2177.0 {y} -2423.0 {z} 30.63
$3271 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -615.0 {y} -861.0 {z} 105.72
$3272 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2051.0 {y} 948.0 {z} 55.4
$3273 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2658.0 {y} -187.0 {z} 4.18
$3274 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2649.0 {y} 734.97 {z} 27.96
$3275 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1791.0 {y} 481.0 {z} 25.68
$3276 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2797.0 {y} 1182.0 {z} 20.28
$3277 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2589.623 {y} -16.165 {z} 3.9662
$3278 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2865.0 {y} 690.0 {z} 23.43
$3279 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2339.0 {y} -453.0 {z} 80.24
$3280 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1955.0 {y} -748.0 {z} 36.22
$3281 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2420.03 {y} 987.59 {z} 45.3
$3282 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -326.56 {y} 2215.3701 {z} 43.57
$3283 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1319.0 {y} 2705.0 {z} 50.27
$3284 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -2474.9399 {y} 2443.52 {z} 16.03
$3285 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -1670.64 {y} 2590.49 {z} 81.37
$3286 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} -892.98 {y} 1971.66 {z} 60.61
$3287 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1576.86 {y} 2837.1399 {z} 10.83
$3288 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1492.72 {y} 2773.76 {z} 10.81
$3289 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2642.03 {y} 1125.74 {z} 11.03
$3290 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2025.24 {y} 661.6 {z} 10.93
$3291 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2181.8201 {y} 1484.97 {z} 11.36
$3292 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2197.02 {y} 2476.3301 {z} 11.0
$3293 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2212.0 {y} 2526.0 {z} 10.81
$3294 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2715.79 {y} 1109.47 {z} 6.7
$3295 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 2489.25 {y} 918.28 {z} 11.02
$3296 = create_pickup 325 {pickupType} PickupType.OnStreetSlow {x} 1472.08 {y} 1890.09 {z} 10.81
$pickup_armour = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2097.0 {y} 2154.0 {z} 14.0
$3298 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2435.0 {y} 1663.0 {z} 16.0
$3299 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2500.0 {y} 925.0 {z} 11.0
$3300 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2106.0 {y} 1004.0 {z} 11.0
$3301 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1531.0 {y} 925.0 {z} 11.0
$3302 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1433.0 {y} 1852.0 {z} 10.8
$3303 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1000.0 {y} 1068.0 {z} 11.0
$3304 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1269.0 {y} 1352.0 {z} 11.0
$3305 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2294.0 {y} 547.0 {z} 1.0
$3306 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2543.0 {y} -1625.0 {z} 12.0
$3307 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2339.0 {y} -1944.0 {z} 13.0
$3308 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2767.0 {y} -1192.0 {z} 69.0
$3309 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2112.0 {y} -1990.0 {z} 14.0
$3310 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2544.0 {y} -1120.0 {z} 62.0
$3311 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1562.0 {y} -1888.0 {z} 14.0
$3312 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1086.0 {y} -1806.0 {z} 17.0
$3313 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 253.0 {y} 80.0 {z} 1004.0
$3314 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1759.0 {y} -2242.0 {z} 1.0
$3315 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2650.0 {y} -198.0 {z} 4.0
$3316 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2285.0 {y} -24.0 {z} 35.0
$3317 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -1863.0 {y} 112.0 {z} 15.0
$3318 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -1574.0 {y} 1268.0 {z} 1.27
$3319 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2916.0 {y} 992.0 {z} 8.0
$3320 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2513.0 {y} 770.0 {z} 35.0
$3321 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -1394.0 {y} -373.0 {z} 6.0
$3322 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2303.0 {y} -1606.0 {z} 484.0
$3323 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2092.0 {y} -2330.0 {z} 31.0
$3324 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2260.0 {y} 2568.0 {z} 6.0
$3325 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -902.0 {y} 2689.0 {z} 42.0
$3326 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -317.0 {y} 2651.0 {z} 67.0
$3327 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1325.0 {y} 190.0 {z} 19.0
$3328 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2487.0 {y} 139.0 {z} 27.0
$3329 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 761.0 {y} 380.0 {z} 23.0
$3330 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -51.0 {y} -232.0 {z} 7.0
$3331 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 252.0 {y} 2616.0 {z} 17.0
$3332 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 212.0 {y} 1807.0 {z} 22.0
$3333 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1291.76 {y} -803.4566 {z} 1089.9301
$3334 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 1715.12 {y} -1673.51 {z} 20.22
$3335 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 943.012 {y} -939.8284 {z} 57.7345
$3336 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 275.169 {y} 1859.699 {z} 9.81
$3337 = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 1268.34 {y} -804.33 {z} 1084.01
$3338 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 263.52 {y} 83.14 {z} 1001.039
$3339 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 264.2632 {y} 117.0737 {z} 1008.813
$3340 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 245.0618 {y} 195.9429 {z} 1008.172
$3341 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 215.8489 {y} 126.0831 {z} 1003.226
$3342 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2125.4929 {y} -2275.0371 {z} 20.5202
$3344 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 2230.45 {y} -2286.0039 {z} 14.3751
$pickup_bribe = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2743.0 {y} 1316.0 {z} 8.0
$3346 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2168.6599 {y} 2267.96 {z} 15.34
$3347 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2408.0 {y} 1389.0 {z} 22.0
$3348 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2034.0 {y} 842.0 {z} 10.0
$3349 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2096.0 {y} 1287.0 {z} 10.8
$3350 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1987.0 {y} 1543.0 {z} 16.0
$3351 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1854.0 {y} 912.0 {z} 10.8
$3352 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2540.3799 {y} 2527.8501 {z} 10.39
$3353 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1548.02 {y} 1024.47 {z} 10.39
$3354 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1592.91 {y} 2053.8301 {z} 10.26
$3355 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1971.29 {y} 2330.26 {z} 10.41
$3356 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1700.74 {y} 1792.7 {z} 10.41
$3357 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2581.0 {y} -1491.0 {z} 24.0
$3358 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2296.0 {y} -1696.0 {z} 14.0
$3359 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2273.0 {y} -1099.0 {z} 38.0
$3360 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2716.0 {y} -1048.0 {z} 66.0
$3361 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2614.0 {y} -2496.0 {z} 33.0
$3362 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1183.85 {y} -1250.6801 {z} 14.7
$3363 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1970.0 {y} -1158.0 {z} 21.0
$3364 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 734.0 {y} -1137.0 {z} 18.0
$3365 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 2553.76 {y} -2464.3101 {z} 13.62
$3366 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1204.0601 {y} -1613.89 {z} 13.28
$3367 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 611.21 {y} -1459.63 {z} 14.01
$3368 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1116.67 {y} -719.91 {z} 100.17
$3369 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1903.1 {y} -466.44 {z} 25.18
$3370 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2657.0 {y} -144.0 {z} 4.0
$3371 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2454.0 {y} -166.0 {z} 35.0
$3372 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2009.0 {y} 1227.0 {z} 32.0
$3373 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2120.0 {y} 96.39 {z} 39.0
$3374 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2411.0 {y} -334.0 {z} 37.0
$3375 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1690.0 {y} 450.0 {z} 13.0
$3376 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1991.26 {y} -1144.13 {z} 29.69
$3377 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2636.1299 {y} -492.83 {z} 70.09
$3378 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2022.6801 {y} 345.98 {z} 35.17
$3379 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2683.2 {y} 784.13 {z} 49.98
$3380 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1820.67 {y} -154.12 {z} 9.4
$3381 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -736.0 {y} 66.0 {z} 24.0
$3382 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 262.33 {y} -149.12 {z} 1.58
$3383 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 1643.0 {y} 264.0 {z} 20.0
$3384 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 601.98 {y} 2150.3799 {z} 39.41
$3385 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -1407.0 {y} -2039.0 {z} 1.0
$3386 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2156.0 {y} -2371.0 {z} 31.0
$3387 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -419.25 {y} 1362.36 {z} 12.21
$3389 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 629.04 {y} 2842.8301 {z} 25.21
$3390 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 690.49 {y} -209.59 {z} 25.6
$3391 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 88.82 {y} -125.1 {z} 0.85
$3392 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} 215.69 {y} 1089.1 {z} 16.4
$3393 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -2305.24 {y} 2310.1101 {z} 4.98
$3394 = create_pickup #BRIBE {pickupType} PickupType.OnStreetSlow {x} -213.61 {y} 2717.4399 {z} 62.68
terminate_this_script 

//-------------Mission 1---------------
// Originally: Initial 2

:INITIL2
script_name 'INITIL2'
$cherry = 25
$grape = 100
$r_69 = 250
$bell = 500
$bar1_o = 1000
$bar2_o = 5000
set_var_int_to_var_int $reel1_winnings[0] = $bar2_o
set_var_int_to_var_int $reel1_winnings[1] = $r_69
set_var_int_to_var_int $reel1_winnings[2] = $bar1_o
set_var_int_to_var_int $reel1_winnings[3] = $bell
set_var_int_to_var_int $reel1_winnings[4] = $cherry
set_var_int_to_var_int $reel1_winnings[5] = $grape
set_var_int_to_var_int $reel1_winnings[6] = $cherry
set_var_int_to_var_int $reel1_winnings[7] = $grape
set_var_int_to_var_int $reel1_winnings[8] = $bell
set_var_int_to_var_int $reel1_winnings[9] = $r_69
set_var_int_to_var_int $reel1_winnings[10] = $bell
set_var_int_to_var_int $reel1_winnings[11] = $bar1_o
set_var_int_to_var_int $reel1_winnings[12] = $cherry
set_var_int_to_var_int $reel1_winnings[13] = $grape
set_var_int_to_var_int $reel1_winnings[14] = $r_69
set_var_int_to_var_int $reel1_winnings[15] = $grape
set_var_int_to_var_int $reel1_winnings[16] = $bell
set_var_int_to_var_int $reel1_winnings[17] = $cherry
set_var_int_to_var_int $reel2_winnings[0] = $r_69
set_var_int_to_var_int $reel2_winnings[1] = $bell
set_var_int_to_var_int $reel2_winnings[2] = $cherry
set_var_int_to_var_int $reel2_winnings[3] = $grape
set_var_int_to_var_int $reel2_winnings[4] = $bar2_o
set_var_int_to_var_int $reel2_winnings[5] = $bell
set_var_int_to_var_int $reel2_winnings[6] = $grape
set_var_int_to_var_int $reel2_winnings[7] = $cherry
set_var_int_to_var_int $reel2_winnings[8] = $bell
set_var_int_to_var_int $reel2_winnings[9] = $bar1_o
set_var_int_to_var_int $reel2_winnings[10] = $grape
set_var_int_to_var_int $reel2_winnings[11] = $r_69
set_var_int_to_var_int $reel2_winnings[12] = $cherry
set_var_int_to_var_int $reel2_winnings[13] = $bar1_o
set_var_int_to_var_int $reel2_winnings[14] = $cherry
set_var_int_to_var_int $reel2_winnings[15] = $r_69
set_var_int_to_var_int $reel2_winnings[16] = $bell
set_var_int_to_var_int $reel2_winnings[17] = $grape
set_var_int_to_var_int $reel3_winnings[0] = $grape
set_var_int_to_var_int $reel3_winnings[1] = $cherry
set_var_int_to_var_int $reel3_winnings[2] = $r_69
set_var_int_to_var_int $reel3_winnings[3] = $bell
set_var_int_to_var_int $reel3_winnings[4] = $grape
set_var_int_to_var_int $reel3_winnings[5] = $bell
set_var_int_to_var_int $reel3_winnings[6] = $r_69
set_var_int_to_var_int $reel3_winnings[7] = $grape
set_var_int_to_var_int $reel3_winnings[8] = $cherry
set_var_int_to_var_int $reel3_winnings[9] = $bar1_o
set_var_int_to_var_int $reel3_winnings[10] = $bar2_o
set_var_int_to_var_int $reel3_winnings[11] = $cherry
set_var_int_to_var_int $reel3_winnings[12] = $bell
set_var_int_to_var_int $reel3_winnings[13] = $r_69
set_var_int_to_var_int $reel3_winnings[14] = $grape
set_var_int_to_var_int $reel3_winnings[15] = $bar1_o
set_var_int_to_var_int $reel3_winnings[16] = $bell
set_var_int_to_var_int $reel3_winnings[17] = $cherry
$reel_sprite_x = 261.3555
$reel_sprite_y = 399.3732
$3468 = 219.0498
$3473 = 356.6364
$3469 = 431.2757
$3474 = 424.3356
$rou_text_x = 36.365
$rou_text_y = 240.157
$rou_x_scale = 0.4714
$rou_y_scale = 2.5077
$3478 = 29.3763
$3482 = 20.0589
$3486 = 0.6253
$3488 = 2.7876
$3479 = 28.5106
$3483 = 220.0782
$3480 = 157.2242
$3484 = 409.3602
$roulette_triggered = 0
$spot1_topleft_x = -0.316
$spot1_topleft_y = 0.497
$spot36_bottomright_x = 0.408
$spot36_bottomright_y = -1.342
set_var_float_to_var_float $x = $spot1_topleft_x
sub_float_var_from_float_var $x -= $spot36_bottomright_x
set_var_float_to_var_float $y = $spot1_topleft_y
sub_float_var_from_float_var $y -= $spot36_bottomright_y
set_var_float_to_var_float $spot_size_x = $x
$spot_size_x /= 6.0
set_var_float_to_var_float $spot_size_y = $y
$spot_size_y /= 24.0
set_var_float_to_var_float $spot1_x = $spot1_topleft_x
sub_float_var_from_float_var $spot1_x -= $spot_size_x
set_var_float_to_var_float $spot1_y = $spot1_topleft_y
sub_float_var_from_float_var $spot1_y -= $spot_size_y
$spot1_z = -0.176
$spot_selection_x = 0.0
$spot_selection_y = 0.0
$chip_position_x = 0.0
$chip_position_y = 0.0
$spot_increment_x = 0.0
$spot_increment_y = 0.0
$roulette_flag = 0
$wheel_rotation_timer = 0
$selected_spot_x[0] = -2.0
$selected_spot_y[0] = 2.0
$selected_spot_x[1] = 0.0
$selected_spot_y[1] = 0.0
$selected_spot_x[2] = -2.0
$selected_spot_y[2] = 0.0
$selected_spot_x[3] = -4.0
$selected_spot_y[3] = 0.0
$selected_spot_x[4] = 0.0
$selected_spot_y[4] = -2.0
$selected_spot_x[5] = -2.0
$selected_spot_y[5] = -2.0
$selected_spot_x[6] = -4.0
$selected_spot_y[6] = -2.0
$selected_spot_x[7] = 0.0
$selected_spot_y[7] = -4.0
$selected_spot_x[8] = -2.0
$selected_spot_y[8] = -4.0
$selected_spot_x[9] = -4.0
$selected_spot_y[9] = -4.0
$selected_spot_x[10] = 0.0
$selected_spot_y[10] = -6.0
$selected_spot_x[11] = -2.0
$selected_spot_y[11] = -6.0
$selected_spot_x[12] = -4.0
$selected_spot_y[12] = -6.0
$selected_spot_x[13] = 0.0
$selected_spot_y[13] = -8.0
$selected_spot_x[14] = -2.0
$selected_spot_y[14] = -8.0
$selected_spot_x[15] = -4.0
$selected_spot_y[15] = -8.0
$selected_spot_x[16] = 0.0
$selected_spot_y[16] = -10.0
$selected_spot_x[17] = -2.0
$selected_spot_y[17] = -10.0
$selected_spot_x[18] = -4.0
$selected_spot_y[18] = -10.0
$selected_spot_x[19] = 0.0
$selected_spot_y[19] = -12.0
$selected_spot_x[20] = -2.0
$selected_spot_y[20] = -12.0
$selected_spot_x[21] = -4.0
$selected_spot_y[21] = -12.0
$selected_spot_x[22] = 0.0
$selected_spot_y[22] = -14.0
$selected_spot_x[23] = -2.0
$selected_spot_y[23] = -14.0
$selected_spot_x[24] = -4.0
$selected_spot_y[24] = -14.0
$selected_spot_x[25] = 0.0
$selected_spot_y[25] = -16.0
$selected_spot_x[26] = -2.0
$selected_spot_y[26] = -16.0
$selected_spot_x[27] = -4.0
$selected_spot_y[27] = -16.0
$selected_spot_x[28] = 0.0
$selected_spot_y[28] = -18.0
$selected_spot_x[29] = -2.0
$selected_spot_y[29] = -18.0
$selected_spot_x[30] = -4.0
$selected_spot_y[30] = -18.0
$selected_spot_x[31] = 0.0
$selected_spot_y[31] = -20.0
$selected_spot_x[32] = -2.0
$selected_spot_y[32] = -20.0
$selected_spot_x[33] = -4.0
$selected_spot_y[33] = -20.0
$selected_spot_x[34] = 0.0
$selected_spot_y[34] = -22.0
$selected_spot_x[35] = -2.0
$selected_spot_y[35] = -22.0
$selected_spot_x[36] = -4.0
$selected_spot_y[36] = -22.0
$selected_spot_x[37] = -1.0
$selected_spot_y[37] = 0.0
$selected_spot_x[38] = -3.0
$selected_spot_y[38] = 0.0
$selected_spot_x[39] = -1.0
$selected_spot_y[39] = -2.0
$selected_spot_x[40] = -3.0
$selected_spot_y[40] = -2.0
$selected_spot_x[41] = -1.0
$selected_spot_y[41] = -4.0
$selected_spot_x[42] = -3.0
$selected_spot_y[42] = -4.0
$selected_spot_x[43] = -1.0
$selected_spot_y[43] = -6.0
$selected_spot_x[44] = -3.0
$selected_spot_y[44] = -6.0
$selected_spot_x[45] = -1.0
$selected_spot_y[45] = -8.0
$selected_spot_x[46] = -3.0
$selected_spot_y[46] = -8.0
$selected_spot_x[47] = -1.0
$selected_spot_y[47] = -10.0
$selected_spot_x[48] = -3.0
$selected_spot_y[48] = -10.0
$selected_spot_x[49] = -1.0
$selected_spot_y[49] = -12.0
$selected_spot_x[50] = -3.0
$selected_spot_y[50] = -12.0
$selected_spot_x[51] = -1.0
$selected_spot_y[51] = -14.0
$selected_spot_x[52] = -3.0
$selected_spot_y[52] = -14.0
$selected_spot_x[53] = -1.0
$selected_spot_y[53] = -16.0
$selected_spot_x[54] = -3.0
$selected_spot_y[54] = -16.0
$selected_spot_x[55] = -1.0
$selected_spot_y[55] = -18.0
$selected_spot_x[56] = -3.0
$selected_spot_y[56] = -18.0
$selected_spot_x[57] = -1.0
$selected_spot_y[57] = -20.0
$selected_spot_x[58] = -3.0
$selected_spot_y[58] = -20.0
$selected_spot_x[59] = -1.0
$selected_spot_y[59] = -22.0
$selected_spot_x[60] = -3.0
$selected_spot_y[60] = -22.0
$selected_spot_x[61] = 0.0
$selected_spot_y[61] = -1.0
$selected_spot_x[62] = -2.0
$selected_spot_y[62] = -1.0
$selected_spot_x[63] = -4.0
$selected_spot_y[63] = -1.0
$selected_spot_x[64] = 0.0
$selected_spot_y[64] = -3.0
$selected_spot_x[65] = -2.0
$selected_spot_y[65] = -3.0
$selected_spot_x[66] = -4.0
$selected_spot_y[66] = -3.0
$selected_spot_x[67] = 0.0
$selected_spot_y[67] = -5.0
$selected_spot_x[68] = -2.0
$selected_spot_y[68] = -5.0
$selected_spot_x[69] = -4.0
$selected_spot_y[69] = -5.0
$selected_spot_x[70] = 0.0
$selected_spot_y[70] = -7.0
$selected_spot_x[71] = -2.0
$selected_spot_y[71] = -7.0
$selected_spot_x[72] = -4.0
$selected_spot_y[72] = -7.0
$selected_spot_x[73] = 0.0
$selected_spot_y[73] = -9.0
$selected_spot_x[74] = -2.0
$selected_spot_y[74] = -9.0
$selected_spot_x[75] = -4.0
$selected_spot_y[75] = -9.0
$selected_spot_x[76] = 0.0
$selected_spot_y[76] = -11.0
$selected_spot_x[77] = -2.0
$selected_spot_y[77] = -11.0
$selected_spot_x[78] = -4.0
$selected_spot_y[78] = -11.0
$selected_spot_x[79] = 0.0
$selected_spot_y[79] = -13.0
$selected_spot_x[80] = -2.0
$selected_spot_y[80] = -13.0
$selected_spot_x[81] = -4.0
$selected_spot_y[81] = -13.0
$selected_spot_x[82] = 0.0
$selected_spot_y[82] = -15.0
$selected_spot_x[83] = -2.0
$selected_spot_y[83] = -15.0
$selected_spot_x[84] = -4.0
$selected_spot_y[84] = -15.0
$selected_spot_x[85] = 0.0
$selected_spot_y[85] = -17.0
$selected_spot_x[86] = -2.0
$selected_spot_y[86] = -17.0
$selected_spot_x[87] = -4.0
$selected_spot_y[87] = -17.0
$selected_spot_x[88] = 0.0
$selected_spot_y[88] = -19.0
$selected_spot_x[89] = -2.0
$selected_spot_y[89] = -19.0
$selected_spot_x[90] = -4.0
$selected_spot_y[90] = -19.0
$selected_spot_x[91] = 0.0
$selected_spot_y[91] = -21.0
$selected_spot_x[92] = -2.0
$selected_spot_y[92] = -21.0
$selected_spot_x[93] = -4.0
$selected_spot_y[93] = -21.0
$selected_spot_x[94] = -5.0
$selected_spot_y[94] = 0.0
$selected_spot_x[95] = -5.0
$selected_spot_y[95] = -2.0
$selected_spot_x[96] = -5.0
$selected_spot_y[96] = -4.0
$selected_spot_x[97] = -5.0
$selected_spot_y[97] = -6.0
$selected_spot_x[98] = -5.0
$selected_spot_y[98] = -8.0
$selected_spot_x[99] = -5.0
$selected_spot_y[99] = -10.0
$selected_spot_x[100] = -5.0
$selected_spot_y[100] = -12.0
$selected_spot_x[101] = -5.0
$selected_spot_y[101] = -14.0
$selected_spot_x[102] = -5.0
$selected_spot_y[102] = -16.0
$selected_spot_x[103] = -5.0
$selected_spot_y[103] = -18.0
$selected_spot_x[104] = -5.0
$selected_spot_y[104] = -20.0
$selected_spot_x[105] = -5.0
$selected_spot_y[105] = -22.0
$selected_spot_x[106] = -1.0
$selected_spot_y[106] = -1.0
$selected_spot_x[107] = -3.0
$selected_spot_y[107] = -1.0
$selected_spot_x[108] = -1.0
$selected_spot_y[108] = -3.0
$selected_spot_x[109] = -3.0
$selected_spot_y[109] = -3.0
$selected_spot_x[110] = -1.0
$selected_spot_y[110] = -5.0
$selected_spot_x[111] = -3.0
$selected_spot_y[111] = -5.0
$selected_spot_x[112] = -1.0
$selected_spot_y[112] = -7.0
$selected_spot_x[113] = -3.0
$selected_spot_y[113] = -7.0
$selected_spot_x[114] = -1.0
$selected_spot_y[114] = -9.0
$selected_spot_x[115] = -3.0
$selected_spot_y[115] = -9.0
$selected_spot_x[116] = -1.0
$selected_spot_y[116] = -11.0
$selected_spot_x[117] = -3.0
$selected_spot_y[117] = -11.0
$selected_spot_x[118] = -1.0
$selected_spot_y[118] = -13.0
$selected_spot_x[119] = -3.0
$selected_spot_y[119] = -13.0
$selected_spot_x[120] = -1.0
$selected_spot_y[120] = -15.0
$selected_spot_x[121] = -3.0
$selected_spot_y[121] = -15.0
$selected_spot_x[122] = -1.0
$selected_spot_y[122] = -17.0
$selected_spot_x[123] = -3.0
$selected_spot_y[123] = -17.0
$selected_spot_x[124] = -1.0
$selected_spot_y[124] = -19.0
$selected_spot_x[125] = -3.0
$selected_spot_y[125] = -19.0
$selected_spot_x[126] = -1.0
$selected_spot_y[126] = -21.0
$selected_spot_x[127] = -3.0
$selected_spot_y[127] = -21.0
$selected_spot_x[128] = 0.0
$selected_spot_y[128] = -24.0
$selected_spot_x[129] = -2.0
$selected_spot_y[129] = -24.0
$selected_spot_x[130] = -4.0
$selected_spot_y[130] = -24.0
$selected_spot_x[131] = 2.0
$selected_spot_y[131] = -3.0
$selected_spot_x[132] = 2.0
$selected_spot_y[132] = -11.0
$selected_spot_x[133] = 2.0
$selected_spot_y[133] = -19.0
$selected_spot_x[134] = 4.0
$selected_spot_y[134] = -1.0
$selected_spot_x[135] = 4.0
$selected_spot_y[135] = -21.0
$selected_spot_x[136] = 4.0
$selected_spot_y[136] = -5.0
$selected_spot_x[137] = 4.0
$selected_spot_y[137] = -17.0
$selected_spot_x[138] = 4.0
$selected_spot_y[138] = -9.0
$selected_spot_x[139] = 4.0
$selected_spot_y[139] = -13.0
$selected_spot_x[140] = -5.0
$selected_spot_y[140] = -1.0
$selected_spot_x[141] = -5.0
$selected_spot_y[141] = -3.0
$selected_spot_x[142] = -5.0
$selected_spot_y[142] = -5.0
$selected_spot_x[143] = -5.0
$selected_spot_y[143] = -7.0
$selected_spot_x[144] = -5.0
$selected_spot_y[144] = -9.0
$selected_spot_x[145] = -5.0
$selected_spot_y[145] = -11.0
$selected_spot_x[146] = -5.0
$selected_spot_y[146] = -13.0
$selected_spot_x[147] = -5.0
$selected_spot_y[147] = -15.0
$selected_spot_x[148] = -5.0
$selected_spot_y[148] = -17.0
$selected_spot_x[149] = -5.0
$selected_spot_y[149] = -19.0
$selected_spot_x[150] = -5.0
$selected_spot_y[150] = -21.0
$sprite_x = 345.3592
$sprite_y = 55.3183
set_var_int_to_constant $no_more_bets_b[0] = 5408
set_var_int_to_constant $no_more_bets_b[1] = 5409
set_var_int_to_constant $no_more_bets_b[2] = 5410
set_var_int_to_constant $no_money_b[0] = 5405
set_var_int_to_constant $no_money_b[1] = 5406
set_var_int_to_constant $no_money_b[2] = 5407
set_var_int_to_constant $gambling_stat_too_low_b[0] = 5451
set_var_int_to_constant $gambling_stat_too_low_b[1] = 5452
set_var_int_to_constant $player_wins_b[0] = 5448
set_var_int_to_constant $player_wins_b[1] = 5449
set_var_int_to_constant $player_wins_b[2] = 5450
set_var_int_to_constant $player_wins_b[3] = 5462
set_var_int_to_constant $player_wins_b[4] = 5463
set_var_int_to_constant $player_wins_b[5] = 5464
set_var_int_to_constant $player_leaves_b[0] = 5453
set_var_int_to_constant $player_leaves_b[1] = 5454
set_var_int_to_constant $place_bets_b[0] = 5400
set_var_int_to_constant $place_bets_b[1] = 5401
set_var_int_to_constant $roulette_result_b[0] = 5438
set_var_int_to_constant $roulette_result_b[1] = 5439
set_var_int_to_constant $roulette_result_b[2] = 5440
set_var_int_to_constant $roulette_result_b[3] = 5441
set_var_int_to_constant $roulette_result_b[4] = 5442
set_var_int_to_constant $roulette_result_b[5] = 5443
set_var_int_to_constant $roulette_result_b[6] = 5444
set_var_int_to_constant $roulette_result_b[7] = 5445
set_var_int_to_constant $roulette_result_b[8] = 5446
set_var_int_to_constant $roulette_result_b[9] = 5447
set_var_int_to_constant $roulette_result_b[10] = 5411
set_var_int_to_constant $roulette_result_b[11] = 5412
set_var_int_to_constant $roulette_result_b[12] = 5413
set_var_int_to_constant $roulette_result_b[13] = 5414
set_var_int_to_constant $roulette_result_b[14] = 5415
set_var_int_to_constant $roulette_result_b[15] = 5416
set_var_int_to_constant $roulette_result_b[16] = 5417
set_var_int_to_constant $roulette_result_b[17] = 5418
set_var_int_to_constant $roulette_result_b[18] = 5419
set_var_int_to_constant $roulette_result_b[19] = 5420
set_var_int_to_constant $roulette_result_b[20] = 5421
set_var_int_to_constant $roulette_result_b[21] = 5422
set_var_int_to_constant $roulette_result_b[22] = 5423
set_var_int_to_constant $roulette_result_b[23] = 5424
set_var_int_to_constant $roulette_result_b[24] = 5425
set_var_int_to_constant $roulette_result_b[25] = 5426
set_var_int_to_constant $roulette_result_b[26] = 5427
set_var_int_to_constant $roulette_result_b[27] = 5428
set_var_int_to_constant $roulette_result_b[28] = 5429
set_var_int_to_constant $roulette_result_b[29] = 5430
set_var_int_to_constant $roulette_result_b[30] = 5431
set_var_int_to_constant $roulette_result_b[31] = 5432
set_var_int_to_constant $roulette_result_b[32] = 5433
set_var_int_to_constant $roulette_result_b[33] = 5434
set_var_int_to_constant $roulette_result_b[34] = 5435
set_var_int_to_constant $roulette_result_b[35] = 5436
set_var_int_to_constant $roulette_result_b[36] = 5437
set_var_int_to_constant $player_gets_credit_b[0] = 5402
set_var_int_to_constant $player_gets_credit_b[1] = 5403
set_var_int_to_constant $player_gets_credit_b[2] = 5404
set_var_int_to_constant $no_more_bets_w[0] = 43608
set_var_int_to_constant $no_more_bets_w[1] = 43609
set_var_int_to_constant $no_more_bets_w[2] = 43610
set_var_int_to_constant $no_money_w[0] = 43605
set_var_int_to_constant $no_money_w[1] = 43606
set_var_int_to_constant $no_money_w[2] = 43607
set_var_int_to_constant $gambling_stat_too_low_w[0] = 43651
set_var_int_to_constant $gambling_stat_too_low_w[1] = 43652
set_var_int_to_constant $player_wins_w[0] = 43648
set_var_int_to_constant $player_wins_w[1] = 43649
set_var_int_to_constant $player_wins_w[2] = 43650
set_var_int_to_constant $player_wins_w[3] = 43662
set_var_int_to_constant $player_wins_w[4] = 43663
set_var_int_to_constant $player_wins_w[5] = 43664
set_var_int_to_constant $player_leaves_w[0] = 43653
set_var_int_to_constant $player_leaves_w[1] = 43654
set_var_int_to_constant $place_bets_w[0] = 43600
set_var_int_to_constant $place_bets_w[1] = 43601
set_var_int_to_constant $roulette_result_w[0] = 43638
set_var_int_to_constant $roulette_result_w[1] = 43639
set_var_int_to_constant $roulette_result_w[2] = 43640
set_var_int_to_constant $roulette_result_w[3] = 43641
set_var_int_to_constant $roulette_result_w[4] = 43642
set_var_int_to_constant $roulette_result_w[5] = 43643
set_var_int_to_constant $roulette_result_w[6] = 43644
set_var_int_to_constant $roulette_result_w[7] = 43645
set_var_int_to_constant $roulette_result_w[8] = 43646
set_var_int_to_constant $roulette_result_w[9] = 43647
set_var_int_to_constant $roulette_result_w[10] = 43611
set_var_int_to_constant $roulette_result_w[11] = 43612
set_var_int_to_constant $roulette_result_w[12] = 43613
set_var_int_to_constant $roulette_result_w[13] = 43614
set_var_int_to_constant $roulette_result_w[14] = 43615
set_var_int_to_constant $roulette_result_w[15] = 43616
set_var_int_to_constant $roulette_result_w[16] = 43617
set_var_int_to_constant $roulette_result_w[17] = 43618
set_var_int_to_constant $roulette_result_w[18] = 43619
set_var_int_to_constant $roulette_result_w[19] = 43620
set_var_int_to_constant $roulette_result_w[20] = 43621
set_var_int_to_constant $roulette_result_w[21] = 43622
set_var_int_to_constant $roulette_result_w[22] = 43623
set_var_int_to_constant $roulette_result_w[23] = 43624
set_var_int_to_constant $roulette_result_w[24] = 43625
set_var_int_to_constant $roulette_result_w[25] = 43626
set_var_int_to_constant $roulette_result_w[26] = 43627
set_var_int_to_constant $roulette_result_w[27] = 43628
set_var_int_to_constant $roulette_result_w[28] = 43629
set_var_int_to_constant $roulette_result_w[29] = 43630
set_var_int_to_constant $roulette_result_w[30] = 43631
set_var_int_to_constant $roulette_result_w[31] = 43632
set_var_int_to_constant $roulette_result_w[32] = 43633
set_var_int_to_constant $roulette_result_w[33] = 43634
set_var_int_to_constant $roulette_result_w[34] = 43635
set_var_int_to_constant $roulette_result_w[35] = 43636
set_var_int_to_constant $roulette_result_w[36] = 43637
set_var_int_to_constant $player_gets_credit_w[0] = 43602
set_var_int_to_constant $player_gets_credit_w[1] = 43603
set_var_int_to_constant $player_gets_credit_w[2] = 43604
$bce2_CHECKPOINTS_x[0] = -2307.7229
$bce2_CHECKPOINTS_y[0] = -2235.9661
$bce2_CHECKPOINTS_z[0] = 23.0204
$bce2_CHECKPOINTS_x[1] = -2276.635
$bce2_CHECKPOINTS_y[1] = -2220.0471
$bce2_CHECKPOINTS_z[1] = 28.716
$bce2_CHECKPOINTS_x[2] = -2199.3911
$bce2_CHECKPOINTS_y[2] = -2283.9519
$bce2_CHECKPOINTS_z[2] = 30.1494
$bce2_CHECKPOINTS_x[3] = -2105.437
$bce2_CHECKPOINTS_y[3] = -2354.4409
$bce2_CHECKPOINTS_z[3] = 30.1419
$bce2_CHECKPOINTS_x[4] = -2142.24
$bce2_CHECKPOINTS_y[4] = -2410.3201
$bce2_CHECKPOINTS_z[4] = 30.497
$bce2_CHECKPOINTS_x[5] = -2026.4041
$bce2_CHECKPOINTS_y[5] = -2507.761
$bce2_CHECKPOINTS_z[5] = 32.0519
$bce2_CHECKPOINTS_x[6] = -1938.526
$bce2_CHECKPOINTS_y[6] = -2456.146
$bce2_CHECKPOINTS_z[6] = 30.3298
$bce2_CHECKPOINTS_x[7] = -1900.394
$bce2_CHECKPOINTS_y[7] = -2424.6179
$bce2_CHECKPOINTS_z[7] = 31.9732
$bce2_CHECKPOINTS_x[8] = -1862.806
$bce2_CHECKPOINTS_y[8] = -2381.5381
$bce2_CHECKPOINTS_z[8] = 31.2712
$bce2_CHECKPOINTS_x[9] = -1800.629
$bce2_CHECKPOINTS_y[9] = -2319.6389
$bce2_CHECKPOINTS_z[9] = 40.2496
$bce2_CHECKPOINTS_x[10] = -1707.158
$bce2_CHECKPOINTS_y[10] = -2302.5791
$bce2_CHECKPOINTS_z[10] = 44.1806
$bce2_CHECKPOINTS_x[11] = -1662.639
$bce2_CHECKPOINTS_y[11] = -2186.958
$bce2_CHECKPOINTS_z[11] = 33.5305
$bce2_CHECKPOINTS_x[12] = -1688.256
$bce2_CHECKPOINTS_y[12] = -2115.5901
$bce2_CHECKPOINTS_z[12] = 37.4741
$bce2_CHECKPOINTS_x[13] = -1778.958
$bce2_CHECKPOINTS_y[13] = -2090.0979
$bce2_CHECKPOINTS_z[13] = 49.6459
$bce2_CHECKPOINTS_x[14] = -1868.425
$bce2_CHECKPOINTS_y[14] = -2088.3601
$bce2_CHECKPOINTS_z[14] = 58.5847
$bce2_CHECKPOINTS_x[15] = -1959.41
$bce2_CHECKPOINTS_y[15] = -2047.85
$bce2_CHECKPOINTS_z[15] = 71.8449
$bce2_CHECKPOINTS_x[16] = -1947.7889
$bce2_CHECKPOINTS_y[16] = -1948.4871
$bce2_CHECKPOINTS_z[16] = 77.4592
$bce2_CHECKPOINTS_x[17] = -1852.11
$bce2_CHECKPOINTS_y[17] = -1920.47
$bce2_CHECKPOINTS_z[17] = 87.5994
$bce2_CHECKPOINTS_x[18] = -1754.616
$bce2_CHECKPOINTS_y[18] = -1898.502
$bce2_CHECKPOINTS_z[18] = 96.5566
$bce2_CHECKPOINTS_x[19] = -1654.121
$bce2_CHECKPOINTS_y[19] = -1900.045
$bce2_CHECKPOINTS_z[19] = 90.8553
$bce2_CHECKPOINTS_x[20] = -1554.651
$bce2_CHECKPOINTS_y[20] = -1901.959
$bce2_CHECKPOINTS_z[20] = 81.5693
$bce2_CHECKPOINTS_x[21] = -1512.3781
$bce2_CHECKPOINTS_y[21] = -1807.028
$bce2_CHECKPOINTS_z[21] = 57.9597
$bce2_CHECKPOINTS_x[22] = -1433.233
$bce2_CHECKPOINTS_y[22] = -1860.032
$bce2_CHECKPOINTS_z[22] = 37.3383
$bce2_CHECKPOINTS_x[23] = -1425.812
$bce2_CHECKPOINTS_y[23] = -1962.0229
$bce2_CHECKPOINTS_z[23] = 15.8029
$bce2_CHECKPOINTS_x[24] = -1298.451
$bce2_CHECKPOINTS_y[24] = -2114.385
$bce2_CHECKPOINTS_z[24] = 24.1506
$bce2_CHECKPOINTS_x[25] = -1269.661
$bce2_CHECKPOINTS_y[25] = -2251.145
$bce2_CHECKPOINTS_z[25] = 21.2137
$bce2_CHECKPOINTS_x[26] = -1260.525
$bce2_CHECKPOINTS_y[26] = -2283.1221
$bce2_CHECKPOINTS_z[26] = 21.5858
$bce2_CHECKPOINTS_x[27] = -1255.2581
$bce2_CHECKPOINTS_y[27] = -2307.5359
$bce2_CHECKPOINTS_z[27] = 22.066
$bce2_CHECKPOINTS_x[28] = -1253.158
$bce2_CHECKPOINTS_y[28] = -2315.343
$bce2_CHECKPOINTS_z[28] = 22.5913
$bce2_CHECKPOINTS_x[29] = -1216.728
$bce2_CHECKPOINTS_y[29] = -2343.4971
$bce2_CHECKPOINTS_z[29] = 16.9383
$bce2_CHECKPOINTS_x[30] = -1193.944
$bce2_CHECKPOINTS_y[30] = -2355.9951
$bce2_CHECKPOINTS_z[30] = 18.7764
$bce2_CHECKPOINTS_x[31] = -1104.6801
$bce2_CHECKPOINTS_y[31] = -2377.1799
$bce2_CHECKPOINTS_z[31] = 36.3239
$bce2_CHECKPOINTS_x[32] = -1000.239
$bce2_CHECKPOINTS_y[32] = -2371.509
$bce2_CHECKPOINTS_z[32] = 64.5107
$bce2_CHECKPOINTS_x[33] = -958.5369
$bce2_CHECKPOINTS_y[33] = -2281.0549
$bce2_CHECKPOINTS_z[33] = 52.9462
$bce2_CHECKPOINTS_x[34] = -939.7041
$bce2_CHECKPOINTS_y[34] = -2187.095
$bce2_CHECKPOINTS_z[34] = 35.4659
$bce2_CHECKPOINTS_x[35] = -841.8345
$bce2_CHECKPOINTS_y[35] = -2181.3779
$bce2_CHECKPOINTS_z[35] = 23.7405
$bce2_CHECKPOINTS_x[36] = -790.3633
$bce2_CHECKPOINTS_y[36] = -2095.343
$bce2_CHECKPOINTS_z[36] = 25.4038
$bce2_CHECKPOINTS_x[37] = -844.4321
$bce2_CHECKPOINTS_y[37] = -2010.339
$bce2_CHECKPOINTS_z[37] = 20.3482
$bce2_CHECKPOINTS_x[38] = -809.238
$bce2_CHECKPOINTS_y[38] = -1902.54
$bce2_CHECKPOINTS_z[38] = 9.4239
$bce2_CHECKPOINTS_x[39] = -735.21
$bce2_CHECKPOINTS_y[39] = -1855.303
$bce2_CHECKPOINTS_z[39] = 13.5207
$bce2_CHECKPOINTS_x[40] = -641.8992
$bce2_CHECKPOINTS_y[40] = -1846.861
$bce2_CHECKPOINTS_z[40] = 21.7356
$bce2_CHECKPOINTS_x[41] = -546.9716
$bce2_CHECKPOINTS_y[41] = -1832.0959
$bce2_CHECKPOINTS_z[41] = 25.5599
$bce2_CHECKPOINTS_x[42] = -460.5018
$bce2_CHECKPOINTS_y[42] = -1800.012
$bce2_CHECKPOINTS_z[42] = 8.5607
$bce2_CHECKPOINTS_x[43] = -424.1711
$bce2_CHECKPOINTS_y[43] = -1704.1379
$bce2_CHECKPOINTS_z[43] = 10.8356
$bce2_CHECKPOINTS_x[44] = -410.4569
$bce2_CHECKPOINTS_y[44] = -1611.74
$bce2_CHECKPOINTS_z[44] = 20.2907
$bce2_CHECKPOINTS_x[45] = -358.7348
$bce2_CHECKPOINTS_y[45] = -1531.884
$bce2_CHECKPOINTS_z[45] = 19.0268
$bce2_CHECKPOINTS_x[46] = -342.9092
$bce2_CHECKPOINTS_y[46] = -1455.663
$bce2_CHECKPOINTS_z[46] = 17.8712
$bce2_CHECKPOINTS_x[47] = -243.4206
$bce2_CHECKPOINTS_y[47] = -1451.22
$bce2_CHECKPOINTS_z[47] = 4.3198
$bce2_CHECKPOINTS_x[48] = -193.0986
$bce2_CHECKPOINTS_y[48] = -1477.038
$bce2_CHECKPOINTS_z[48] = 7.9595
$bce2_CHECKPOINTS_x[49] = -68.0509
$bce2_CHECKPOINTS_y[49] = -1510.5129
$bce2_CHECKPOINTS_z[49] = 1.9303
$bce2_CHECKPOINTS_x[50] = 31.2142
$bce2_CHECKPOINTS_y[50] = -1526.881
$bce2_CHECKPOINTS_z[50] = 4.3931
$bce2_CHECKPOINTS_x[51] = 129.336
$bce2_CHECKPOINTS_y[51] = -1459.6121
$bce2_CHECKPOINTS_z[51] = 23.8768
$bce2_CHECKPOINTS_x[52] = 139.13
$bce2_CHECKPOINTS_y[52] = -1255.649
$bce2_CHECKPOINTS_z[52] = 44.9903
$bce2_CHECKPOINTS_x[53] = 266.63
$bce2_CHECKPOINTS_y[53] = -995.6493
$bce2_CHECKPOINTS_z[53] = 50.9903
$bce2_CHECKPOINTS_x[54] = 366.63
$bce2_CHECKPOINTS_y[54] = -757.6493
$bce2_CHECKPOINTS_z[54] = 16.4903
$bce2_CHECKPOINTS_x[55] = 424.13
$bce2_CHECKPOINTS_y[55] = -567.6493
$bce2_CHECKPOINTS_z[55] = 38.9903
$bce2_CHECKPOINTS_x[56] = 458.13
$bce2_CHECKPOINTS_y[56] = -448.1493
$bce2_CHECKPOINTS_z[56] = 30.9903
$bce2_CHECKPOINTS_x[57] = 338.13
$bce2_CHECKPOINTS_y[57] = -390.6493
$bce2_CHECKPOINTS_z[57] = 12.9903
$bce2_CHECKPOINTS_x[58] = 338.13
$bce2_CHECKPOINTS_y[58] = -342.1493
$bce2_CHECKPOINTS_z[58] = 8.9903
$bce2_CHECKPOINTS_x[59] = 475.13
$bce2_CHECKPOINTS_y[59] = -264.6493
$bce2_CHECKPOINTS_z[59] = 9.9903
$bce2_CHECKPOINTS_x[60] = 615.63
$bce2_CHECKPOINTS_y[60] = -197.1493
$bce2_CHECKPOINTS_z[60] = 9.9903
$bce2_CHECKPOINTS_x[61] = 757.13
$bce2_CHECKPOINTS_y[61] = -152.1493
$bce2_CHECKPOINTS_z[61] = 18.4903
$bce2_CHECKPOINTS_x[62] = 907.13
$bce2_CHECKPOINTS_y[62] = -92.1493
$bce2_CHECKPOINTS_z[62] = 19.9903
$bce2_CHECKPOINTS_x[63] = 1135.63
$bce2_CHECKPOINTS_y[63] = -63.6493
$bce2_CHECKPOINTS_z[63] = 22.9903
$bce2_CHECKPOINTS_x[64] = 1280.63
$bce2_CHECKPOINTS_y[64] = -170.6493
$bce2_CHECKPOINTS_z[64] = 32.4903
$bce2_CHECKPOINTS_x[65] = 1440.63
$bce2_CHECKPOINTS_y[65] = -214.6493
$bce2_CHECKPOINTS_z[65] = 7.9903
$bce2_CHECKPOINTS_x[66] = 1554.63
$bce2_CHECKPOINTS_y[66] = -124.6493
$bce2_CHECKPOINTS_z[66] = 17.9903
$bce2_CHECKPOINTS_x[67] = 1551.63
$bce2_CHECKPOINTS_y[67] = 46.8507
$bce2_CHECKPOINTS_z[67] = 23.9903
$bce2_CHECKPOINTS_x[68] = 1567.13
$bce2_CHECKPOINTS_y[68] = 122.3507
$bce2_CHECKPOINTS_z[68] = 28.9903
$bce2_CHECKPOINTS_x[69] = 1807.13
$bce2_CHECKPOINTS_y[69] = 75.3507
$bce2_CHECKPOINTS_z[69] = 34.4903
$bce2_CHECKPOINTS_x[70] = 2057.1299
$bce2_CHECKPOINTS_y[70] = 40.3507
$bce2_CHECKPOINTS_z[70] = 26.9903
$bce2_CHECKPOINTS_x[71] = 2275.6299
$bce2_CHECKPOINTS_y[71] = 41.8507
$bce2_CHECKPOINTS_z[71] = 25.4903
$bce2_CHECKPOINTS_x[72] = 2365.6299
$bce2_CHECKPOINTS_y[72] = 91.8507
$bce2_CHECKPOINTS_z[72] = 25.4903
$bce2_CHECKPOINTS_x[73] = 2435.6299
$bce2_CHECKPOINTS_y[73] = 41.8507
$bce2_CHECKPOINTS_z[73] = 25.4903
$bce2_CHECKPOINTS_x[74] = 2692.1299
$bce2_CHECKPOINTS_y[74] = 33.8507
$bce2_CHECKPOINTS_z[74] = 25.4903
$bce2_CHECKPOINTS_x[75] = 2737.6299
$bce2_CHECKPOINTS_y[75] = -156.1493
$bce2_CHECKPOINTS_z[75] = 31.4903
$bce2_CHECKPOINTS_x[76] = 2700.1299
$bce2_CHECKPOINTS_y[76] = -384.1493
$bce2_CHECKPOINTS_z[76] = 24.4903
$bce2_CHECKPOINTS_x[77] = 2820.1299
$bce2_CHECKPOINTS_y[77] = -554.1493
$bce2_CHECKPOINTS_z[77] = 9.9903
$bce2_CHECKPOINTS_x[78] = 2846.1299
$bce2_CHECKPOINTS_y[78] = -711.6493
$bce2_CHECKPOINTS_z[78] = 9.9903
$bce2_CHECKPOINTS_x[79] = 2841.6299
$bce2_CHECKPOINTS_y[79] = -929.1493
$bce2_CHECKPOINTS_z[79] = 13.9903
$bce2_CHECKPOINTS_x[80] = 2841.1299
$bce2_CHECKPOINTS_y[80] = -1182.649
$bce2_CHECKPOINTS_z[80] = 23.9903
$bce2_CHECKPOINTS_x[81] = 2873.1299
$bce2_CHECKPOINTS_y[81] = -1383.649
$bce2_CHECKPOINTS_z[81] = 10.4903
$bce2_CHECKPOINTS_x[82] = 2797.6299
$bce2_CHECKPOINTS_y[82] = -1380.649
$bce2_CHECKPOINTS_z[82] = 20.9903
$bce2_CHECKPOINTS_x[83] = 2795.1299
$bce2_CHECKPOINTS_y[83] = -1262.149
$bce2_CHECKPOINTS_z[83] = 45.9903
$bce2_CHECKPOINTS_x[84] = 2732.1299
$bce2_CHECKPOINTS_y[84] = -1257.649
$bce2_CHECKPOINTS_z[84] = 58.9903
$bce2_route1_x[0] = 2487.8459
$bce2_route1_y[0] = -1661.031
$bce2_route1_z[0] = 13.0886
$bce2_route1_x[1] = 2387.6389
$bce2_route1_y[1] = -1657.847
$bce2_route1_z[1] = 13.1425
$bce2_route1_x[2] = 2287.4861
$bce2_route1_y[2] = -1659.316
$bce2_route1_z[2] = 14.644
$bce2_route1_x[3] = 2188.2209
$bce2_route1_y[3] = -1639.707
$bce2_route1_z[3] = 15.0652
$bce2_route1_x[4] = 2091.6709
$bce2_route1_y[4] = -1612.541
$bce2_route1_z[4] = 13.1285
$bce2_route1_x[5] = 1990.505
$bce2_route1_y[5] = -1612.728
$bce2_route1_z[5] = 13.1392
$bce2_route1_x[6] = 1889.545
$bce2_route1_y[6] = -1612.92
$bce2_route1_z[6] = 13.1432
$bce2_route1_x[7] = 1788.509
$bce2_route1_y[7] = -1609.786
$bce2_route1_z[7] = 13.1208
$bce2_route1_x[8] = 1688.856
$bce2_route1_y[8] = -1592.988
$bce2_route1_z[8] = 13.1397
$bce2_route1_x[9] = 1587.913
$bce2_route1_y[9] = -1589.5699
$bce2_route1_z[9] = 13.1277
$bce2_route1_x[10] = 1487.483
$bce2_route1_y[10] = -1592.59
$bce2_route1_z[10] = 13.1511
$bce2_route1_x[11] = 1386.551
$bce2_route1_y[11] = -1586.947
$bce2_route1_z[11] = 13.1234
$bce2_route1_x[12] = 1286.662
$bce2_route1_y[12] = -1571.949
$bce2_route1_z[12] = 13.1273
$bce2_route1_x[13] = 1185.751
$bce2_route1_y[13] = -1570.8101
$bce2_route1_z[13] = 13.141
$bce2_route1_x[14] = 1084.5909
$bce2_route1_y[14] = -1571.387
$bce2_route1_z[14] = 13.1352
$bce2_route1_x[15] = 1057.109
$bce2_route1_y[15] = -1474.3879
$bce2_route1_z[15] = 13.1259
$bce2_route1_x[16] = 1061.076
$bce2_route1_y[16] = -1373.338
$bce2_route1_z[16] = 13.1525
$bce2_route1_x[17] = 1057.542
$bce2_route1_y[17] = -1273.05
$bce2_route1_z[17] = 13.1425
$bce2_route1_x[18] = 1058.531
$bce2_route1_y[18] = -1173.37
$bce2_route1_z[18] = 23.0197
$bce2_route1_x[19] = 963.0153
$bce2_route1_y[19] = -1141.863
$bce2_route1_z[19] = 23.4253
$bce2_route1_x[20] = 862.2285
$bce2_route1_y[20] = -1144.682
$bce2_route1_z[20] = 23.4156
$bce2_route1_x[21] = 796.4694
$bce2_route1_y[21] = -1069.208
$bce2_route1_z[21] = 24.2389
$bce2_route1_x[22] = 707.7682
$bce2_route1_y[22] = -1116.413
$bce2_route1_z[22] = 17.7387
$bce2_route1_x[23] = 648.3205
$bce2_route1_y[23] = -1197.1851
$bce2_route1_z[23] = 17.2365
$bce2_route1_x[24] = 641.5527
$bce2_route1_y[24] = -1199.744
$bce2_route1_z[24] = 17.7693
$bce2_route1_x[25] = 568.4156
$bce2_route1_y[25] = -1131.509
$bce2_route1_z[25] = 26.222
$bce2_route1_x[26] = 469.6543
$bce2_route1_y[26] = -1113.59
$bce2_route1_z[26] = 27.6279
$bce2_route1_x[27] = 370.4434
$bce2_route1_y[27] = -1129.382
$bce2_route1_z[27] = 25.3758
$bce2_route1_x[28] = 274.1698
$bce2_route1_y[28] = -1156.751
$bce2_route1_z[28] = 21.1352
$bce2_route1_x[29] = 181.3566
$bce2_route1_y[29] = -1195.782
$bce2_route1_z[29] = 17.3878
$bce2_route1_x[30] = 94.4232
$bce2_route1_y[30] = -1245.7321
$bce2_route1_z[30] = 14.5145
$bce2_route1_x[31] = 15.8414
$bce2_route1_y[31] = -1308.858
$bce2_route1_z[31] = 12.0496
$bce2_route1_x[32] = -62.2601
$bce2_route1_y[32] = -1372.58
$bce2_route1_z[32] = 11.3571
$bce2_route1_x[33] = -133.5467
$bce2_route1_y[33] = -1443.433
$bce2_route1_z[33] = 12.5484
$bce2_route1_x[34] = -201.4483
$bce2_route1_y[34] = -1518.152
$bce2_route1_z[34] = 14.3358
$bce2_route1_x[35] = -261.8274
$bce2_route1_y[35] = -1597.991
$bce2_route1_z[35] = 15.6199
$bce2_route1_x[36] = -295.7058
$bce2_route1_y[36] = -1693.1429
$bce2_route1_z[36] = 14.4603
$bce2_route1_x[37] = -331.9772
$bce2_route1_y[37] = -1786.496
$bce2_route1_z[37] = 17.6881
$bce2_route1_x[38] = -367.9241
$bce2_route1_y[38] = -1879.787
$bce2_route1_z[38] = 25.9672
$bce2_route1_x[39] = -367.5844
$bce2_route1_y[39] = -1980.193
$bce2_route1_z[39] = 27.9446
$bce2_route1_x[40] = -350.2859
$bce2_route1_y[40] = -2079.7229
$bce2_route1_z[40] = 28.0525
$bce2_route1_x[41] = -333.1001
$bce2_route1_y[41] = -2179.344
$bce2_route1_z[41] = 28.1703
$bce2_route1_x[42] = -297.5232
$bce2_route1_y[42] = -2273.428
$bce2_route1_z[42] = 29.7426
$bce2_route1_x[43] = -233.4477
$bce2_route1_y[43] = -2351.6931
$bce2_route1_z[43] = 31.5324
$bce2_route1_x[44] = -159.7139
$bce2_route1_y[44] = -2420.7949
$bce2_route1_z[44] = 35.957
$bce2_route1_x[45] = -92.2604
$bce2_route1_y[45] = -2496.009
$bce2_route1_z[45] = 38.2066
$bce2_route1_x[46] = -49.518
$bce2_route1_y[46] = -2586.4089
$bce2_route1_z[46] = 43.3945
$bce2_route1_x[47] = -39.0012
$bce2_route1_y[47] = -2686.408
$bce2_route1_z[47] = 42.5762
$bce2_route1_x[48] = -71.9678
$bce2_route1_y[48] = -2781.283
$bce2_route1_z[48] = 39.1346
$bce2_route1_x[49] = -162.2194
$bce2_route1_y[49] = -2824.728
$bce2_route1_z[49] = 40.6313
$bce2_route1_x[50] = -261.9651
$bce2_route1_y[50] = -2815.27
$bce2_route1_z[50] = 50.816
$bce2_route1_x[51] = -357.7323
$bce2_route1_y[51] = -2787.4031
$bce2_route1_z[51] = 61.6162
$bce2_route1_x[52] = -456.2191
$bce2_route1_y[52] = -2766.1841
$bce2_route1_z[52] = 66.2852
$bce2_route1_x[53] = -555.2378
$bce2_route1_y[53] = -2751.5491
$bce2_route1_z[53] = 65.7085
$bce2_route1_x[54] = -655.188
$bce2_route1_y[54] = -2748.9771
$bce2_route1_z[54] = 69.8092
$bce2_route1_x[55] = -753.9544
$bce2_route1_y[55] = -2764.895
$bce2_route1_z[55] = 74.469
$bce2_route1_x[56] = -847.778
$bce2_route1_y[56] = -2801.9629
$bce2_route1_z[56] = 70.6215
$bce2_route1_x[57] = -938.0959
$bce2_route1_y[57] = -2845.479
$bce2_route1_z[57] = 68.4226
$bce2_route1_x[58] = -1038.655
$bce2_route1_y[58] = -2853.158
$bce2_route1_z[58] = 67.4485
$bce2_route1_x[59] = -1139.4189
$bce2_route1_y[59] = -2855.438
$bce2_route1_z[59] = 67.466
$bce2_route1_x[60] = -1239.449
$bce2_route1_y[60] = -2860.8049
$bce2_route1_z[60] = 65.7173
$bce2_route1_x[61] = -1338.09
$bce2_route1_y[61] = -2878.668
$bce2_route1_z[61] = 55.5616
$bce2_route1_x[62] = -1435.335
$bce2_route1_y[62] = -2853.4099
$bce2_route1_z[62] = 48.3088
$bce2_route1_x[63] = -1520.402
$bce2_route1_y[63] = -2799.3149
$bce2_route1_z[63] = 46.6003
$bce2_route1_x[64] = -1600.969
$bce2_route1_y[64] = -2739.9761
$bce2_route1_z[64] = 48.7977
$bce2_route1_x[65] = -1681.4301
$bce2_route1_y[65] = -2679.7649
$bce2_route1_z[65] = 48.2789
$bce2_route1_x[66] = -1745.168
$bce2_route1_y[66] = -2601.553
$bce2_route1_z[66] = 49.447
$bce2_route1_x[67] = -1823.681
$bce2_route1_y[67] = -2538.1211
$bce2_route1_z[67] = 52.7491
$bce2_route1_x[68] = -1923.907
$bce2_route1_y[68] = -2539.927
$bce2_route1_z[68] = 38.6757
$bce2_route1_x[69] = -2019.306
$bce2_route1_y[69] = -2507.657
$bce2_route1_z[69] = 32.3084
$bce2_route1_x[70] = -2100.137
$bce2_route1_y[70] = -2446.7561
$bce2_route1_z[70] = 30.2321
$bce2_route1_x[71] = -2179.157
$bce2_route1_y[71] = -2383.9009
$bce2_route1_z[71] = 30.2293
$bce2_route1_x[72] = -2190.1731
$bce2_route1_y[72] = -2284.406
$bce2_route1_z[72] = 30.2286
$bce2_route1_x[73] = -2264.3401
$bce2_route1_y[73] = -2216.7771
$bce2_route1_z[73] = 30.8563
$bce2_route1_x[74] = -2182.781
$bce2_route1_y[74] = -2160.8921
$bce2_route1_z[74] = 47.4936
$bce2_route1_x[75] = -2110.8279
$bce2_route1_y[75] = -2092.427
$bce2_route1_z[75] = 61.5663
$bce2_route1_x[76] = -2078.4961
$bce2_route1_y[76] = -1997.306
$bce2_route1_z[76] = 60.012
$bce2_route1_x[77] = -2028.488
$bce2_route1_y[77] = -1910.774
$bce2_route1_z[77] = 48.5942
$bce2_route1_x[78] = -1971.902
$bce2_route1_y[78] = -1828.087
$bce2_route1_z[78] = 36.8357
$bce2_route1_x[79] = -1898.3459
$bce2_route1_y[79] = -1760.4561
$bce2_route1_z[79] = 29.4533
$bce2_route1_x[80] = -1808.7111
$bce2_route1_y[80] = -1715.568
$bce2_route1_z[80] = 28.8706
$bce2_route1_x[81] = -1724.839
$bce2_route1_y[81] = -1660.957
$bce2_route1_z[81] = 36.2003
$bce2_route1_x[82] = -1631.223
$bce2_route1_y[82] = -1624.267
$bce2_route1_z[82] = 36.0242
$bce2_route1_x[83] = -1546.374
$bce2_route1_y[83] = -1570.568
$bce2_route1_z[83] = 37.4867
$bce2_route1_x[84] = -1626.075
$bce2_route1_y[84] = -1510.0031
$bce2_route1_z[84] = 37.0858
$bce2_route1_x[85] = -1722.531
$bce2_route1_y[85] = -1483.55
$bce2_route1_z[85] = 34.2269
$bce2_route1_x[86] = -1807.41
$bce2_route1_y[86] = -1430.105
$bce2_route1_z[86] = 35.74
$bce2_route1_x[87] = -1894.584
$bce2_route1_y[87] = -1380.672
$bce2_route1_z[87] = 39.6104
$bce2_route1_x[88] = -1899.035
$bce2_route1_y[88] = -1280.731
$bce2_route1_z[88] = 39.2288
$bce2_route1_x[89] = -1896.879
$bce2_route1_y[89] = -1179.88
$bce2_route1_z[89] = 38.8035
$bce2_route1_x[90] = -1900.238
$bce2_route1_y[90] = -1078.988
$bce2_route1_z[90] = 37.9866
$bce2_route1_x[91] = -1896.756
$bce2_route1_y[91] = -978.951
$bce2_route1_z[91] = 41.2545
$bce2_route1_x[92] = -1896.016
$bce2_route1_y[92] = -878.1399
$bce2_route1_z[92] = 44.7055
$bce2_route1_x[93] = -1897.241
$bce2_route1_y[93] = -777.6757
$bce2_route1_z[93] = 44.692
$bce2_route1_x[94] = -1895.959
$bce2_route1_y[94] = -677.4996
$bce2_route1_z[94] = 41.0312
$bce2_route1_x[95] = -1894.7371
$bce2_route1_y[95] = -576.5858
$bce2_route1_z[95] = 38.0016
$bce2_route1_x[96] = -1897.71
$bce2_route1_y[96] = -476.4786
$bce2_route1_z[96] = 37.9914
$bce2_route1_x[97] = -1896.1541
$bce2_route1_y[97] = -376.3374
$bce2_route1_z[97] = 37.9879
$bce2_route1_x[98] = -1896.894
$bce2_route1_y[98] = -275.5032
$bce2_route1_z[98] = 37.9875
$bce2_route1_x[99] = -1895.73
$bce2_route1_y[99] = -174.2612
$bce2_route1_z[99] = 37.9884
$bce2_route1_x[100] = -1890.837
$bce2_route1_y[100] = -73.2693
$bce2_route1_z[100] = 38.0012
$bce2_route1_x[101] = -1890.615
$bce2_route1_y[101] = 27.5906
$bce2_route1_z[101] = 38.0035
$bce2_route1_x[102] = -1874.62
$bce2_route1_y[102] = 127.2809
$bce2_route1_z[102] = 37.9871
$bce2_route1_x[103] = -1842.755
$bce2_route1_y[103] = 222.3595
$bce2_route1_z[103] = 37.9736
$bce2_route1_x[104] = -1776.7371
$bce2_route1_y[104] = 296.302
$bce2_route1_z[104] = 23.6187
$bce2_route1_x[105] = -1687.562
$bce2_route1_y[105] = 341.3
$bce2_route1_z[105] = 13.5061
$bce2_route1_x[106] = -1620.406
$bce2_route1_y[106] = 416.143
$bce2_route1_z[106] = 7.1363
$bce2_route1_x[107] = -1574.644
$bce2_route1_y[107] = 506.4197
$bce2_route1_z[107] = 6.9799
$bce2_route1_x[108] = -1557.715
$bce2_route1_y[108] = 605.5936
$bce2_route1_z[108] = 6.9312
$bce2_route1_x[109] = -1550.603
$bce2_route1_y[109] = 705.7773
$bce2_route1_z[109] = 6.8277
$bce2_route1_x[110] = -1532.975
$bce2_route1_y[110] = 806.2415
$bce2_route1_z[110] = 6.8058
$bce2_route1_x[111] = -1525.152
$bce2_route1_y[111] = 906.8005
$bce2_route1_z[111] = 6.8066
$bce2_route1_x[112] = -1560.428
$bce2_route1_y[112] = 1000.395
$bce2_route1_z[112] = 6.8073
$bce2_route1_x[113] = -1580.528
$bce2_route1_y[113] = 1099.026
$bce2_route1_z[113] = 6.805
$bce2_route1_x[114] = -1593.106
$bce2_route1_y[114] = 1198.824
$bce2_route1_z[114] = 6.7993
$bce2_route1_x[115] = -1612.8
$bce2_route1_y[115] = 1284.908
$bce2_route1_z[115] = 6.9396
$bce2_route2_x[0] = 2480.5969
$bce2_route2_y[0] = -1659.156
$bce2_route2_z[0] = 13.0965
$bce2_route2_x[1] = 2379.8811
$bce2_route2_y[1] = -1658.193
$bce2_route2_z[1] = 13.1467
$bce2_route2_x[2] = 2344.3989
$bce2_route2_y[2] = -1564.4351
$bce2_route2_z[2] = 23.9333
$bce2_route2_x[3] = 2343.6721
$bce2_route2_y[3] = -1463.3199
$bce2_route2_z[3] = 23.6044
$bce2_route2_x[4] = 2305.2749
$bce2_route2_y[4] = -1370.793
$bce2_route2_z[4] = 23.6319
$bce2_route2_x[5] = 2303.4409
$bce2_route2_y[5] = -1269.606
$bce2_route2_z[5] = 23.5946
$bce2_route2_x[6] = 2306.217
$bce2_route2_y[6] = -1169.403
$bce2_route2_z[6] = 26.0798
$bce2_route2_x[7] = 2213.0701
$bce2_route2_y[7] = -1132.101
$bce2_route2_z[7] = 25.3774
$bce2_route2_x[8] = 2116.198
$bce2_route2_y[8] = -1104.905
$bce2_route2_z[8] = 24.8605
$bce2_route2_x[9] = 2022.478
$bce2_route2_y[9] = -1067.897
$bce2_route2_z[9] = 24.2557
$bce2_route2_x[10] = 1925.3051
$bce2_route2_y[10] = -1039.7679
$bce2_route2_z[10] = 23.612
$bce2_route2_x[11] = 1867.651
$bce2_route2_y[11] = -1121.554
$bce2_route2_z[11] = 23.4686
$bce2_route2_x[12] = 1777.408
$bce2_route2_y[12] = -1164.645
$bce2_route2_z[12] = 23.5025
$bce2_route2_x[13] = 1677.176
$bce2_route2_y[13] = -1162.405
$bce2_route2_z[13] = 23.4443
$bce2_route2_x[14] = 1576.553
$bce2_route2_y[14] = -1163.307
$bce2_route2_z[14] = 23.7111
$bce2_route2_x[15] = 1476.002
$bce2_route2_y[15] = -1159.845
$bce2_route2_z[15] = 23.6522
$bce2_route2_x[16] = 1376.964
$bce2_route2_y[16] = -1140.134
$bce2_route2_z[16] = 23.4968
$bce2_route2_x[17] = 1366.809
$bce2_route2_y[17] = -1040.218
$bce2_route2_z[17] = 26.2347
$bce2_route2_x[18] = 1371.418
$bce2_route2_y[18] = -940.2704
$bce2_route2_z[18] = 33.9599
$bce2_route2_x[19] = 1273.0291
$bce2_route2_y[19] = -922.0916
$bce2_route2_z[19] = 41.8145
$bce2_route2_x[20] = 1174.4041
$bce2_route2_y[20] = -940.6694
$bce2_route2_z[20] = 42.5196
$bce2_route2_x[21] = 1156.819
$bce2_route2_y[21] = -842.2726
$bce2_route2_z[21] = 49.739
$bce2_route2_x[22] = 1164.005
$bce2_route2_y[22] = -742.3879
$bce2_route2_z[22] = 60.319
$bce2_route2_x[23] = 1202.729
$bce2_route2_y[23] = -649.9714
$bce2_route2_z[23] = 59.6176
$bce2_route2_x[24] = 1231.2841
$bce2_route2_y[24] = -554.9558
$bce2_route2_z[24] = 40.3091
$bce2_route2_x[25] = 1257.225
$bce2_route2_y[25] = -462.3789
$bce2_route2_z[25] = 12.7939
$bce2_route2_x[26] = 1255.678
$bce2_route2_y[26] = -362.5274
$bce2_route2_z[26] = 2.989
$bce2_route2_x[27] = 1230.684
$bce2_route2_y[27] = -267.0266
$bce2_route2_z[27] = 18.9881
$bce2_route2_x[28] = 1188.9189
$bce2_route2_y[28] = -178.3956
$bce2_route2_z[28] = 40.7223
$bce2_route2_x[29] = 1088.5601
$bce2_route2_y[29] = -182.8582
$bce2_route2_z[29] = 39.859
$bce2_route2_x[30] = 989.9222
$bce2_route2_y[30] = -180.4384
$bce2_route2_z[30] = 17.6728
$bce2_route2_x[31] = 889.5374
$bce2_route2_y[31] = -173.0015
$bce2_route2_z[31] = 10.7641
$bce2_route2_x[32] = 788.8903
$bce2_route2_y[32] = -164.4205
$bce2_route2_z[32] = 16.4595
$bce2_route2_x[33] = 689.4522
$bce2_route2_y[33] = -155.3612
$bce2_route2_z[33] = 22.89
$bce2_route2_x[34] = 589.6461
$bce2_route2_y[34] = -146.5947
$bce2_route2_z[34] = 29.747
$bce2_route2_x[35] = 510.978
$bce2_route2_y[35] = -208.5235
$bce2_route2_z[35] = 37.1529
$bce2_route2_x[36] = 491.5316
$bce2_route2_y[36] = -306.6292
$bce2_route2_z[36] = 42.7684
$bce2_route2_x[37] = 464.9347
$bce2_route2_y[37] = -402.1279
$bce2_route2_z[37] = 32.6014
$bce2_route2_x[38] = 370.5219
$bce2_route2_y[38] = -393.0328
$bce2_route2_z[38] = 23.9504
$bce2_route2_x[39] = 272.6069
$bce2_route2_y[39] = -378.1253
$bce2_route2_z[39] = 2.4636
$bce2_route2_x[40] = 206.3447
$bce2_route2_y[40] = -301.5085
$bce2_route2_z[40] = 1.1901
$bce2_route2_x[41] = 157.5706
$bce2_route2_y[41] = -213.2552
$bce2_route2_z[41] = 1.196
$bce2_route2_x[42] = 57.3466
$bce2_route2_y[42] = -208.4595
$bce2_route2_z[42] = 1.2183
$bce2_route2_x[43] = -43.1581
$bce2_route2_y[43] = -203.3529
$bce2_route2_z[43] = 1.3731
$bce2_route2_x[44] = -142.4222
$bce2_route2_y[44] = -187.639
$bce2_route2_z[44] = 1.6178
$bce2_route2_x[45] = -241.4735
$bce2_route2_y[45] = -167.4589
$bce2_route2_z[45] = 2.0199
$bce2_route2_x[46] = -298.0107
$bce2_route2_y[46] = -84.8255
$bce2_route2_z[46] = 1.2111
$bce2_route2_x[47] = -284.5947
$bce2_route2_y[47] = 14.7808
$bce2_route2_z[47] = 0.8422
$bce2_route2_x[48] = -255.5891
$bce2_route2_y[48] = 111.3571
$bce2_route2_z[48] = 0.8426
$bce2_route2_x[49] = -213.1467
$bce2_route2_y[49] = 202.6102
$bce2_route2_z[49] = 1.8256
$bce2_route2_x[50] = -292.432
$bce2_route2_y[50] = 264.4556
$bce2_route2_z[50] = 1.8382
$bce2_route2_x[51] = -391.0918
$bce2_route2_y[51] = 282.886
$bce2_route2_z[51] = 1.8926
$bce2_route2_x[52] = -491.862
$bce2_route2_y[52] = 287.5233
$bce2_route2_z[52] = 1.8369
$bce2_route2_x[53] = -592.0175
$bce2_route2_y[53] = 284.7173
$bce2_route2_z[53] = 1.8298
$bce2_route2_x[54] = -686.3195
$bce2_route2_y[54] = 250.5801
$bce2_route2_z[54] = 1.8305
$bce2_route2_x[55] = -770.4146
$bce2_route2_y[55] = 194.5963
$bce2_route2_z[55] = 1.6198
$bce2_route2_x[56] = -713.9178
$bce2_route2_y[56] = 113.2328
$bce2_route2_z[56] = 15.6558
$bce2_route2_x[57] = -759.8053
$bce2_route2_y[57] = 26.0654
$bce2_route2_z[57] = 33.0027
$bce2_route2_x[58] = -856.795
$bce2_route2_y[58] = -0.6516
$bce2_route2_z[58] = 32.9974
$bce2_route2_x[59] = -759.7305
$bce2_route2_y[59] = -20.4226
$bce2_route2_z[59] = 47.2165
$bce2_route2_x[60] = -801.2752
$bce2_route2_y[60] = -110.4809
$bce2_route2_z[60] = 63.4186
$bce2_route2_x[61] = -898.1945
$bce2_route2_y[61] = -137.0961
$bce2_route2_z[61] = 56.3295
$bce2_route2_x[62] = -946.6151
$bce2_route2_y[62] = -223.724
$bce2_route2_z[62] = 38.9582
$bce2_route2_x[63] = -968.4164
$bce2_route2_y[63] = -321.7283
$bce2_route2_z[63] = 36.142
$bce2_route2_x[64] = -991.3627
$bce2_route2_y[64] = -419.309
$bce2_route2_z[64] = 36.0027
$bce2_route2_x[65] = -1077.7531
$bce2_route2_y[65] = -470.2693
$bce2_route2_z[65] = 33.7616
$bce2_route2_x[66] = -1136.252
$bce2_route2_y[66] = -551.6271
$bce2_route2_z[66] = 29.8955
$bce2_route2_x[67] = -1170.498
$bce2_route2_y[67] = -645.1342
$bce2_route2_z[67] = 42.4828
$bce2_route2_x[68] = -1205.1331
$bce2_route2_y[68] = -737.6744
$bce2_route2_z[68] = 59.3098
$bce2_route2_x[69] = -1284.4041
$bce2_route2_y[69] = -798.114
$bce2_route2_z[69] = 69.501
$bce2_route2_x[70] = -1381.958
$bce2_route2_y[70] = -817.3228
$bce2_route2_z[70] = 81.1519
$bce2_route2_x[71] = -1481.566
$bce2_route2_y[71] = -815.1219
$bce2_route2_z[71] = 66.9058
$bce2_route2_x[72] = -1579.51
$bce2_route2_y[72] = -800.5511
$bce2_route2_z[72] = 49.9587
$bce2_route2_x[73] = -1673.196
$bce2_route2_y[73] = -765.3336
$bce2_route2_z[73] = 41.5955
$bce2_route2_x[74] = -1754.994
$bce2_route2_y[74] = -708.9478
$bce2_route2_z[74] = 28.2593
$bce2_route2_x[75] = -1761.496
$bce2_route2_y[75] = -609.3593
$bce2_route2_z[75] = 15.9606
$bce2_route2_x[76] = -1820.37
$bce2_route2_y[76] = -528.3566
$bce2_route2_z[76] = 14.6995
$bce2_route2_x[77] = -1814.595
$bce2_route2_y[77] = -427.9472
$bce2_route2_z[77] = 14.7211
$bce2_route2_x[78] = -1803.963
$bce2_route2_y[78] = -328.1352
$bce2_route2_z[78] = 14.7287
$bce2_route2_x[79] = -1801.376
$bce2_route2_y[79] = -227.7857
$bce2_route2_z[79] = 14.7103
$bce2_route2_x[80] = -1801.019
$bce2_route2_y[80] = -126.9901
$bce2_route2_z[80] = 12.5775
$bce2_route2_x[81] = -1797.8409
$bce2_route2_y[81] = -25.8091
$bce2_route2_z[81] = 14.8934
$bce2_route2_x[82] = -1805.531
$bce2_route2_y[82] = 73.9609
$bce2_route2_z[82] = 14.7143
$bce2_route2_x[83] = -1807.149
$bce2_route2_y[83] = 174.5928
$bce2_route2_z[83] = 14.7138
$bce2_route2_x[84] = -1800.194
$bce2_route2_y[84] = 275.5728
$bce2_route2_z[84] = 10.6028
$bce2_route2_x[85] = -1810.287
$bce2_route2_y[85] = 375.14
$bce2_route2_z[85] = 9.7906
$bce2_route2_x[86] = -1814.4091
$bce2_route2_y[86] = 474.6516
$bce2_route2_z[86] = 23.4117
$bce2_route2_x[87] = -1877.944
$bce2_route2_y[87] = 551.0918
$bce2_route2_z[87] = 34.4247
$bce2_route2_x[88] = -1896.861
$bce2_route2_y[88] = 649.7911
$bce2_route2_z[88] = 37.0183
$bce2_route2_x[89] = -1895.051
$bce2_route2_y[89] = 750.2951
$bce2_route2_z[89] = 45.051
$bce2_route2_x[90] = -1893.937
$bce2_route2_y[90] = 850.3843
$bce2_route2_z[90] = 34.7833
$bce2_route2_x[91] = -1820.1429
$bce2_route2_y[91] = 917.2139
$bce2_route2_z[91] = 24.9892
$bce2_route2_x[92] = -1719.022
$bce2_route2_y[92] = 917.0076
$bce2_route2_z[92] = 24.4954
$bce2_route2_x[93] = -1619.303
$bce2_route2_y[93] = 916.6608
$bce2_route2_z[93] = 7.634
$bce2_route2_x[94] = -1555.825
$bce2_route2_y[94] = 994.0962
$bce2_route2_z[94] = 6.8065
$bce2_route2_x[95] = -1579.963
$bce2_route2_y[95] = 1091.548
$bce2_route2_z[95] = 6.807
$bce2_route2_x[96] = -1588.588
$bce2_route2_y[96] = 1191.306
$bce2_route2_z[96] = 6.798
$bce2_route2_x[97] = -1612.353
$bce2_route2_y[97] = 1281.671
$bce2_route2_z[97] = 6.9398
$bce2_route3_x[0] = 2488.2729
$bce2_route3_y[0] = -1659.969
$bce2_route3_z[0] = 13.0884
$bce2_route3_x[1] = 2387.719
$bce2_route3_y[1] = -1658.019
$bce2_route3_z[1] = 13.1467
$bce2_route3_x[2] = 2286.949
$bce2_route3_y[2] = -1658.583
$bce2_route3_z[2] = 14.6557
$bce2_route3_x[3] = 2187.4509
$bce2_route3_y[3] = -1638.533
$bce2_route3_z[3] = 15.0393
$bce2_route3_x[4] = 2090.335
$bce2_route3_y[4] = -1611.906
$bce2_route3_z[4] = 13.1306
$bce2_route3_x[5] = 1990.3311
$bce2_route3_y[5] = -1612.021
$bce2_route3_z[5] = 13.1388
$bce2_route3_x[6] = 1888.96
$bce2_route3_y[6] = -1614.385
$bce2_route3_z[6] = 13.1433
$bce2_route3_x[7] = 1787.243
$bce2_route3_y[7] = -1607.7679
$bce2_route3_z[7] = 13.1244
$bce2_route3_x[8] = 1687.135
$bce2_route3_y[8] = -1592.272
$bce2_route3_z[8] = 13.1375
$bce2_route3_x[9] = 1586.952
$bce2_route3_y[9] = -1591.001
$bce2_route3_z[9] = 13.1297
$bce2_route3_x[10] = 1486.726
$bce2_route3_y[10] = -1590.7791
$bce2_route3_z[10] = 13.152
$bce2_route3_x[11] = 1386.181
$bce2_route3_y[11] = -1585.6071
$bce2_route3_z[11] = 13.1003
$bce2_route3_x[12] = 1286.662
$bce2_route3_y[12] = -1572.978
$bce2_route3_z[12] = 13.1664
$bce2_route3_x[13] = 1186.3979
$bce2_route3_y[13] = -1571.876
$bce2_route3_z[13] = 13.1464
$bce2_route3_x[14] = 1085.49
$bce2_route3_y[14] = -1570.8571
$bce2_route3_z[14] = 13.1351
$bce2_route3_x[15] = 985.0605
$bce2_route3_y[15] = -1571.431
$bce2_route3_z[15] = 13.141
$bce2_route3_x[16] = 884.2
$bce2_route3_y[16] = -1577.365
$bce2_route3_z[16] = 13.13
$bce2_route3_x[17] = 815.0362
$bce2_route3_y[17] = -1650.267
$bce2_route3_z[17] = 13.1344
$bce2_route3_x[18] = 810.6691
$bce2_route3_y[18] = -1750.188
$bce2_route3_z[18] = 13.1276
$bce2_route3_x[19] = 710.2051
$bce2_route3_y[19] = -1749.9041
$bce2_route3_z[19] = 14.0481
$bce2_route3_x[20] = 612.0961
$bce2_route3_y[20] = -1727.222
$bce2_route3_z[20] = 13.6595
$bce2_route3_x[21] = 512.0588
$bce2_route3_y[21] = -1711.1071
$bce2_route3_z[21] = 11.9235
$bce2_route3_x[22] = 411.9842
$bce2_route3_y[22] = -1701.354
$bce2_route3_z[22] = 8.9795
$bce2_route3_x[23] = 310.8292
$bce2_route3_y[23] = -1701.127
$bce2_route3_z[23] = 6.3614
$bce2_route3_x[24] = 210.8359
$bce2_route3_y[24] = -1692.62
$bce2_route3_z[24] = 7.4032
$bce2_route3_x[25] = 162.6634
$bce2_route3_y[25] = -1604.718
$bce2_route3_z[25] = 15.512
$bce2_route3_x[26] = 96.6228
$bce2_route3_y[26] = -1530.2889
$bce2_route3_z[26] = 5.2206
$bce2_route3_x[27] = -4.3045
$bce2_route3_y[27] = -1520.765
$bce2_route3_z[27] = 1.3181
$bce2_route3_x[28] = -100.2442
$bce2_route3_y[28] = -1492.0179
$bce2_route3_z[28] = 2.444
$bce2_route3_x[29] = -150.6629
$bce2_route3_y[29] = -1404.912
$bce2_route3_z[29] = 2.4387
$bce2_route3_x[30] = -125.7253
$bce2_route3_y[30] = -1307.639
$bce2_route3_z[30] = 2.6123
$bce2_route3_x[31] = -85.3976
$bce2_route3_y[31] = -1398.901
$bce2_route3_z[31] = 11.9881
$bce2_route3_x[32] = -156.1722
$bce2_route3_y[32] = -1470.046
$bce2_route3_z[32] = 12.557
$bce2_route3_x[33] = -224.7423
$bce2_route3_y[33] = -1543.4399
$bce2_route3_z[33] = 15.2432
$bce2_route3_x[34] = -278.3897
$bce2_route3_y[34] = -1627.8361
$bce2_route3_z[34] = 15.4404
$bce2_route3_x[35] = -309.6147
$bce2_route3_y[35] = -1722.891
$bce2_route3_z[35] = 14.4331
$bce2_route3_x[36] = -347.4445
$bce2_route3_y[36] = -1815.8051
$bce2_route3_z[36] = 20.3824
$bce2_route3_x[37] = -375.8723
$bce2_route3_y[37] = -1911.975
$bce2_route3_z[37] = 27.4563
$bce2_route3_x[38] = -367.3835
$bce2_route3_y[38] = -2012.2581
$bce2_route3_z[38] = 27.9796
$bce2_route3_x[39] = -352.257
$bce2_route3_y[39] = -2111.5549
$bce2_route3_z[39] = 28.1054
$bce2_route3_x[40] = -325.2379
$bce2_route3_y[40] = -2208.2539
$bce2_route3_z[40] = 28.2795
$bce2_route3_x[41] = -411.8825
$bce2_route3_y[41] = -2256.126
$bce2_route3_z[41] = 43.9768
$bce2_route3_x[42] = -507.0649
$bce2_route3_y[42] = -2286.252
$bce2_route3_z[42] = 32.8761
$bce2_route3_x[43] = -579.3828
$bce2_route3_y[43] = -2355.2971
$bce2_route3_z[43] = 26.9589
$bce2_route3_x[44] = -678.7022
$bce2_route3_y[44] = -2358.3069
$bce2_route3_z[44] = 38.2611
$bce2_route3_x[45] = -752.1234
$bce2_route3_y[45] = -2421.5171
$bce2_route3_z[45] = 63.3924
$bce2_route3_x[46] = -819.2419
$bce2_route3_y[46] = -2493.365
$bce2_route3_z[46] = 82.6824
$bce2_route3_x[47] = -890.7695
$bce2_route3_y[47] = -2563.2791
$bce2_route3_z[47] = 90.2311
$bce2_route3_x[48] = -981.5709
$bce2_route3_y[48] = -2605.9619
$bce2_route3_z[48] = 86.4663
$bce2_route3_x[49] = -1080.225
$bce2_route3_y[49] = -2592.2151
$bce2_route3_z[49] = 76.2713
$bce2_route3_x[50] = -1161.929
$bce2_route3_y[50] = -2534.01
$bce2_route3_z[50] = 67.2918
$bce2_route3_x[51] = -1179.818
$bce2_route3_y[51] = -2436.012
$bce2_route3_z[51] = 53.4017
$bce2_route3_x[52] = -1164.983
$bce2_route3_y[52] = -2337.2429
$bce2_route3_z[52] = 41.315
$bce2_route3_x[53] = -1134.131
$bce2_route3_y[53] = -2242.25
$bce2_route3_z[53] = 33.4991
$bce2_route3_x[54] = -1097.972
$bce2_route3_y[54] = -2148.7361
$bce2_route3_z[54] = 35.7186
$bce2_route3_x[55] = -1047.998
$bce2_route3_y[55] = -2064.019
$bce2_route3_z[55] = 54.2015
$bce2_route3_x[56] = -998.8296
$bce2_route3_y[56] = -1979.083
$bce2_route3_z[56] = 73.7414
$bce2_route3_x[57] = -1062.2
$bce2_route3_y[57] = -1901.606
$bce2_route3_z[57] = 76.9899
$bce2_route3_x[58] = -1161.3781
$bce2_route3_y[58] = -1886.014
$bce2_route3_z[58] = 77.91
$bce2_route3_x[59] = -1206.338
$bce2_route3_y[59] = -1800.1639
$bce2_route3_z[59] = 51.1433
$bce2_route3_x[60] = -1271.566
$bce2_route3_y[60] = -1723.902
$bce2_route3_z[60] = 45.7799
$bce2_route3_x[61] = -1353.911
$bce2_route3_y[61] = -1666.739
$bce2_route3_z[61] = 45.1373
$bce2_route3_x[62] = -1446.1689
$bce2_route3_y[62] = -1627.665
$bce2_route3_z[62] = 44.393
$bce2_route3_x[63] = -1543.799
$bce2_route3_y[63] = -1605.511
$bce2_route3_z[63] = 37.4879
$bce2_route3_x[64] = -1583.0179
$bce2_route3_y[64] = -1513.157
$bce2_route3_z[64] = 37.4862
$bce2_route3_x[65] = -1681.619
$bce2_route3_y[65] = -1493.674
$bce2_route3_z[65] = 34.781
$bce2_route3_x[66] = -1771.401
$bce2_route3_y[66] = -1448.094
$bce2_route3_z[66] = 34.5515
$bce2_route3_x[67] = -1859.213
$bce2_route3_y[67] = -1399.6281
$bce2_route3_z[67] = 38.1758
$bce2_route3_x[68] = -1944.476
$bce2_route3_y[68] = -1347.2111
$bce2_route3_z[68] = 40.559
$bce2_route3_x[69] = -2006.201
$bce2_route3_y[69] = -1268.181
$bce2_route3_z[69] = 36.2375
$bce2_route3_x[70] = -2057.926
$bce2_route3_y[70] = -1182.2271
$bce2_route3_z[70] = 31.9717
$bce2_route3_x[71] = -2105.2439
$bce2_route3_y[71] = -1093.7581
$bce2_route3_z[71] = 29.8948
$bce2_route3_x[72] = -2169.4319
$bce2_route3_y[72] = -1016.588
$bce2_route3_z[72] = 33.6278
$bce2_route3_x[73] = -2214.3291
$bce2_route3_y[73] = -927.0612
$bce2_route3_z[73] = 42.1936
$bce2_route3_x[74] = -2196.7119
$bce2_route3_y[74] = -829.6929
$bce2_route3_z[74] = 58.5525
$bce2_route3_x[75] = -2261.177
$bce2_route3_y[75] = -755.0598
$bce2_route3_z[75] = 75.9781
$bce2_route3_x[76] = -2341.9609
$bce2_route3_y[76] = -707.3872
$bce2_route3_z[76] = 110.6889
$bce2_route3_x[77] = -2400.1819
$bce2_route3_y[77] = -628.3421
$bce2_route3_z[77] = 131.575
$bce2_route3_x[78] = -2453.6479
$bce2_route3_y[78] = -544.386
$bce2_route3_z[78] = 121.1835
$bce2_route3_x[79] = -2526.894
$bce2_route3_y[79] = -485.9847
$bce2_route3_z[79] = 85.0712
$bce2_route3_x[80] = -2446.844
$bce2_route3_y[80] = -425.2606
$bce2_route3_z[80] = 84.4373
$bce2_route3_x[81] = -2354.251
$bce2_route3_y[81] = -463.4032
$bce2_route3_z[81] = 79.948
$bce2_route3_x[82] = -2389.5659
$bce2_route3_y[82] = -369.9571
$bce2_route3_z[82] = 75.0462
$bce2_route3_x[83] = -2489.354
$bce2_route3_y[83] = -363.9357
$bce2_route3_z[83] = 63.4133
$bce2_route3_x[84] = -2588.571
$bce2_route3_y[84] = -366.5697
$bce2_route3_z[84] = 46.1223
$bce2_route3_x[85] = -2672.897
$bce2_route3_y[85] = -418.9947
$bce2_route3_z[85] = 31.9261
$bce2_route3_x[86] = -2681.2351
$bce2_route3_y[86] = -517.9654
$bce2_route3_z[86] = 17.1435
$bce2_route3_x[87] = -2777.1021
$bce2_route3_y[87] = -490.7432
$bce2_route3_z[87] = 6.9382
$bce2_route3_x[88] = -2818.1909
$bce2_route3_y[88] = -399.3717
$bce2_route3_z[88] = 6.8041
$bce2_route3_x[89] = -2811.5259
$bce2_route3_y[89] = -299.0307
$bce2_route3_z[89] = 6.8035
$bce2_route3_x[90] = -2805.668
$bce2_route3_y[90] = -198.8723
$bce2_route3_z[90] = 6.7879
$bce2_route3_x[91] = -2808.854
$bce2_route3_y[91] = -97.9767
$bce2_route3_z[91] = 6.7909
$bce2_route3_x[92] = -2809.093
$bce2_route3_y[92] = 2.2906
$bce2_route3_z[92] = 6.8002
$bce2_route3_x[93] = -2804.6851
$bce2_route3_y[93] = 102.3091
$bce2_route3_z[93] = 6.8277
$bce2_route3_x[94] = -2806.4741
$bce2_route3_y[94] = 202.4786
$bce2_route3_z[94] = 6.807
$bce2_route3_x[95] = -2807.9341
$bce2_route3_y[95] = 302.7264
$bce2_route3_z[95] = 6.3467
$bce2_route3_x[96] = -2849.5259
$bce2_route3_y[96] = 394.1544
$bce2_route3_z[96] = 4.1824
$bce2_route3_x[97] = -2843.374
$bce2_route3_y[97] = 494.5805
$bce2_route3_z[97] = 4.1463
$bce2_route3_x[98] = -2825.592
$bce2_route3_y[98] = 593.7442
$bce2_route3_z[98] = 5.2247
$bce2_route3_x[99] = -2830.803
$bce2_route3_y[99] = 692.401
$bce2_route3_z[99] = 22.7063
$bce2_route3_x[100] = -2856.0071
$bce2_route3_y[100] = 788.662
$bce2_route3_z[100] = 35.799
$bce2_route3_x[101] = -2817.792
$bce2_route3_y[101] = 880.8148
$bce2_route3_z[101] = 43.7304
$bce2_route3_x[102] = -2840.386
$bce2_route3_y[102] = 978.9179
$bce2_route3_z[102] = 43.2024
$bce2_route3_x[103] = -2876.457
$bce2_route3_y[103] = 1071.905
$bce2_route3_z[103] = 30.8111
$bce2_route3_x[104] = -2875.885
$bce2_route3_y[104] = 1169.952
$bce2_route3_z[104] = 11.0039
$bce2_route3_x[105] = -2826.6021
$bce2_route3_y[105] = 1257.501
$bce2_route3_z[105] = 5.3188
$bce2_route3_x[106] = -2728.8149
$bce2_route3_y[106] = 1280.354
$bce2_route3_z[106] = 6.828
$bce2_route3_x[107] = -2629.314
$bce2_route3_y[107] = 1297.9771
$bce2_route3_z[107] = 6.7957
$bce2_route3_x[108] = -2548.262
$bce2_route3_y[108] = 1358.467
$bce2_route3_z[108] = 7.3351
$bce2_route3_x[109] = -2448.6211
$bce2_route3_y[109] = 1370.2679
$bce2_route3_z[109] = 6.7969
$bce2_route3_x[110] = -2347.698
$bce2_route3_y[110] = 1366.408
$bce2_route3_z[110] = 6.9813
$bce2_route3_x[111] = -2253.1951
$bce2_route3_y[111] = 1333.593
$bce2_route3_z[111] = 6.801
$bce2_route3_x[112] = -2152.6421
$bce2_route3_y[112] = 1334.962
$bce2_route3_z[112] = 6.8483
$bce2_route3_x[113] = -2055.385
$bce2_route3_y[113] = 1309.631
$bce2_route3_z[113] = 6.9547
$bce2_route3_x[114] = -1957.98
$bce2_route3_y[114] = 1286.6379
$bce2_route3_z[114] = 6.9474
$bce2_route3_x[115] = -1868.502
$bce2_route3_y[115] = 1332.573
$bce2_route3_z[115] = 6.9476
$bce2_route3_x[116] = -1837.603
$bce2_route3_y[116] = 1425.719
$bce2_route3_z[116] = 6.9399
$a51ventcover = create_object #A51_VENTCOVERB {x} 245.968 {y} 1862.843 {z} 19.49
set_object_rotation $a51ventcover {x} 0.0 {y} 0.0 {z} -140.998
dont_remove_object $a51ventcover
$f1_bronze_car_gen = create_car_generator -2093.8999 {y} -83.7 {z} 33.9 {heading} 359.1 {modelId} 506 {primaryColor} 31 {secondaryColor} 0 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $f1_bronze_car_gen {amount} 0
$f1_silver_car_gen = create_car_generator -2076.8 {y} -84.0 {z} 33.7 {heading} 1.1 {modelId} 541 {primaryColor} 15 {secondaryColor} 15 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $f1_silver_car_gen {amount} 0
$f1_gold_car_gen = create_car_generator_with_plate -2064.3999 {y} -83.7 {z} 34.1 {heading} 0.0 {modelId} 434 {primaryColor} 15 {secondaryColor} 15 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "__GOLD__"
switch_car_generator $f1_gold_car_gen {amount} 0
$f1_dbp = create_car_generator_with_plate -2273.2 {y} -130.8 {z} 33.9 {heading} 270.4 {modelId} 429 {primaryColor} 79 {secondaryColor} 0 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "__DBP___"
switch_car_generator $f1_dbp {amount} 0
$f1_chunky = create_car_generator_with_plate -2354.6001 {y} 983.0 {z} 49.3 {heading} 189.4 {modelId} 541 {primaryColor} 24 {secondaryColor} 40 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000 {plateName} "_CHUNKY_"
switch_car_generator $f1_chunky {amount} 0
$f1_blood_car_gen = create_car_generator -2151.0 {y} -409.1 {z} 34.1 {heading} 307.2 {modelId} 504 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $f1_blood_car_gen {amount} 0
$gen_car_flying[0] = create_car_generator 1544.0 {y} -1352.0 {z} 329.0 {heading} 95.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[1] = create_car_generator -1963.0 {y} 628.0 {z} 151.0 {heading} 182.0 {modelId} 469 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[2] = create_car_generator -1681.0 {y} 705.0 {z} 31.0 {heading} 90.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[3] = create_car_generator -2630.0 {y} 684.0 {z} 72.0 {heading} 180.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[4] = create_car_generator -2726.0 {y} 682.0 {z} 72.0 {heading} 90.0 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[5] = create_car_generator -2227.0 {y} 2329.0 {z} 8.0 {heading} 180.0 {modelId} 447 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[6] = create_car_generator 2619.0 {y} 2721.0 {z} 37.0 {heading} 90.0 {modelId} 548 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[7] = create_car_generator 2092.0 {y} 2415.0 {z} 75.0 {heading} 260.0 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[8] = create_car_generator 292.0 {y} 2542.0 {z} 16.0 {heading} 180.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[9] = create_car_generator -1286.0 {y} 501.5 {z} 18.0 {heading} 270.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[10] = create_car_generator -959.0813 {y} 2629.2061 {z} 43.229 {heading} 110.0 {modelId} 460 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[11] = create_car_generator 273.0045 {y} -1876.038 {z} 5.2935 {heading} 271.51 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[12] = create_car_generator 1561.865 {y} -1701.953 {z} 27.948 {heading} 0.0015 {modelId} 497 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[13] = create_car_generator -637.1 {y} 1811.953 {z} 1.7 {heading} 180.0015 {modelId} 460 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[14] = create_car_generator -1443.0811 {y} -523.2058 {z} 13.9929 {heading} 267.0 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[15] = create_car_generator -1363.005 {y} -484.0377 {z} 13.9 {heading} 200.51 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[16] = create_car_generator -1180.865 {y} -351.9529 {z} 13.948 {heading} 0.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[17] = create_car_generator -1289.1 {y} -353.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[18] = create_car_generator -1253.1 {y} -347.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[19] = create_car_generator -1387.1 {y} -227.9529 {z} 13.9 {heading} 312.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[20] = create_car_generator -1220.1 {y} -150.9529 {z} 13.9 {heading} 519.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[21] = create_car_generator -1244.674 {y} -599.1741 {z} 13.9 {heading} 48.6377 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[22] = create_car_generator -1215.1 {y} -6.14 {z} 13.9 {heading} 95.0015 {modelId} 417 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[23] = create_car_generator -1190.1 {y} 22.14 {z} 13.9 {heading} 45.0015 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[24] = create_car_generator -1374.1 {y} -503.14 {z} 13.9 {heading} 249.0015 {modelId} 476 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[25] = create_car_generator -1608.724 {y} 286.14 {z} 6.22 {heading} 55.0015 {modelId} 425 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[26] = create_car_generator 1586.941 {y} 1190.642 {z} 10.863 {heading} 180.0 {modelId} 577 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$gen_car_flying[27] = create_car_generator -1629.28 {y} -236.14 {z} 13.9 {heading} 129.0015 {modelId} 511 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$area51_gen = create_car_generator 277.55 {y} 1989.35 {z} 17.21 {heading} 270.0 {modelId} 432 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5180 = create_car_generator 281.23 {y} 2022.33 {z} 17.21 {heading} 270.0 {modelId} 432 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5181 = create_car_generator 307.35 {y} 1990.25 {z} 17.21 {heading} 320.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5182 = create_car_generator 307.35 {y} 2031.36 {z} 17.21 {heading} 320.0 {modelId} 520 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $area51_gen {amount} 0
switch_car_generator $5180 {amount} 0
switch_car_generator $5181 {amount} 0
switch_car_generator $5182 {amount} 0
switch_car_generator $gen_car_flying[0] {amount} 0
switch_car_generator $gen_car_flying[1] {amount} 0
switch_car_generator $gen_car_flying[2] {amount} 0
switch_car_generator $gen_car_flying[3] {amount} 0
switch_car_generator $gen_car_flying[4] {amount} 0
switch_car_generator $gen_car_flying[5] {amount} 0
switch_car_generator $gen_car_flying[6] {amount} 0
switch_car_generator $gen_car_flying[7] {amount} 0
switch_car_generator $gen_car_flying[8] {amount} 0
switch_car_generator $gen_car_flying[9] {amount} 0
switch_car_generator $gen_car_flying[10] {amount} 0
switch_car_generator $gen_car_flying[11] {amount} 0
switch_car_generator $gen_car_flying[12] {amount} 0
switch_car_generator $gen_car_flying[13] {amount} 0
switch_car_generator $gen_car_flying[14] {amount} 0
switch_car_generator $gen_car_flying[15] {amount} 0
switch_car_generator $gen_car_flying[16] {amount} 0
switch_car_generator $gen_car_flying[17] {amount} 0
switch_car_generator $gen_car_flying[18] {amount} 0
switch_car_generator $gen_car_flying[19] {amount} 0
switch_car_generator $gen_car_flying[20] {amount} 0
switch_car_generator $gen_car_flying[21] {amount} 0
switch_car_generator $gen_car_flying[22] {amount} 0
switch_car_generator $gen_car_flying[23] {amount} 0
switch_car_generator $gen_car_flying[24] {amount} 0
switch_car_generator $gen_car_flying[25] {amount} 0
switch_car_generator $gen_car_flying[26] {amount} 101
switch_car_generator $gen_car_flying[27] {amount} 0
$car_gen_locked_sf_planes[0] = create_car_generator -1443.0811 {y} -523.2058 {z} 13.9929 {heading} 267.0 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[1] = create_car_generator -1363.005 {y} -484.0377 {z} 13.9 {heading} 200.51 {modelId} 593 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[2] = create_car_generator -1180.865 {y} -351.9529 {z} 13.948 {heading} 0.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[3] = create_car_generator -1289.1 {y} -353.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[4] = create_car_generator -1253.1 {y} -347.9529 {z} 13.9 {heading} 219.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[5] = create_car_generator -1387.1 {y} -227.9529 {z} 13.9 {heading} 312.0015 {modelId} 553 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[6] = create_car_generator -1220.1 {y} -150.9529 {z} 13.9 {heading} 519.0015 {modelId} 519 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[7] = create_car_generator -1244.674 {y} -599.1741 {z} 13.9 {heading} 48.6377 {modelId} 487 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 100 {maxDelay} 10000
$car_gen_locked_sf_planes[8] = create_car_generator -1215.1 {y} -6.14 {z} 13.9 {heading} 95.0015 {modelId} 417 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[9] = create_car_generator -1190.1 {y} 22.14 {z} 13.9 {heading} 45.0015 {modelId} 563 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[10] = create_car_generator -1374.1 {y} -503.14 {z} 13.9 {heading} 249.0015 {modelId} 476 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
$car_gen_locked_sf_planes[11] = create_car_generator -1629.28 {y} -236.14 {z} 13.9 {heading} 129.0015 {modelId} 511 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 100 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_locked_sf_planes[0] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[1] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[2] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[3] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[4] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[5] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[6] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[7] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[8] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[9] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[10] {amount} 101
switch_car_generator $car_gen_locked_sf_planes[11] {amount} 101
$gen_car_film_studio_LA = create_car_generator 927.7213 {y} -1185.042 {z} 16.5 {heading} 123.3055 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5230 = create_car_generator 927.5233 {y} -1182.365 {z} 16.5 {heading} 123.3055 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5231 = create_car_generator 926.9179 {y} -1178.95 {z} 16.5 {heading} 123.3055 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5232 = create_car_generator 861.3535 {y} -1240.759 {z} 14.5 {heading} 180.1308 {modelId} 457 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5233 = create_car_generator 837.7494 {y} -1206.574 {z} 16.5 {heading} 153.2632 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5234 = create_car_generator 897.5168 {y} -1207.991 {z} 16.5 {heading} 86.5989 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5235 = create_car_generator 736.2398 {y} -1334.1949 {z} 13.5411 {heading} 267.8109 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5236 = create_car_generator 736.9623 {y} -1343.907 {z} 13.5197 {heading} 273.7721 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $gen_car_film_studio_LA {amount} 101
switch_car_generator $5230 {amount} 101
switch_car_generator $5231 {amount} 101
switch_car_generator $5232 {amount} 101
switch_car_generator $5233 {amount} 101
switch_car_generator $5234 {amount} 101
switch_car_generator $5235 {amount} 101
switch_car_generator $5236 {amount} 101
$pickups_film_studio = create_pickup_with_ammo 355 {pickupType} PickupType.OnStreetSlow {ammo} 60 {x} 825.921 {y} -1165.813 {z} 17.8936
$5238 = create_pickup_with_ammo 350 {pickupType} PickupType.OnStreetSlow {ammo} 40 {x} 832.603 {y} -1273.861 {z} 14.4833
$5239 = create_pickup 334 {pickupType} PickupType.OnStreetSlow {x} 911.6486 {y} -1235.39 {z} 17.6802
$5240 = create_pickup 358 {pickupType} PickupType.OnStreetSlow {x} 733.4333 {y} -1356.47 {z} 23.5229
$car_gen_mtchiliad = create_car_generator -2408.511 {y} -2186.0239 {z} 32.89 {heading} 321.692 {modelId} 468 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5245 = create_car_generator -2407.606 {y} -2177.092 {z} 32.89 {heading} 321.692 {modelId} 510 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5246 = create_car_generator -2338.5649 {y} -1593.833 {z} 482.9451 {heading} 20.751 {modelId} 508 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5247 = create_car_generator -2343.3701 {y} -1613.943 {z} 482.9757 {heading} 105.53 {modelId} 483 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_mtchiliad {amount} 101
switch_car_generator $5245 {amount} 101
switch_car_generator $5246 {amount} 101
switch_car_generator $5247 {amount} 101
$car_gen_go_kart = create_car_generator -2213.5559 {y} 112.7671 {z} 34.9203 {heading} 88.472 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5249 = create_car_generator -2693.386 {y} -139.4564 {z} 3.9336 {heading} 90.0856 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5250 = create_car_generator -2796.468 {y} -94.1788 {z} 6.9875 {heading} 42.6945 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5251 = create_car_generator -2206.051 {y} 701.2161 {z} 48.9453 {heading} 183.4174 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5252 = create_car_generator -810.5599 {y} 2430.363 {z} 156.9649 {heading} 336.533 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5253 = create_car_generator -1693.441 {y} 432.2852 {z} 6.9914 {heading} 300.903 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5254 = create_car_generator -2116.1379 {y} 924.8068 {z} 85.9791 {heading} 94.9293 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5255 = create_car_generator -1483.6899 {y} 2614.835 {z} 58.2812 {heading} 337.9383 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5256 = create_car_generator 1419.698 {y} 1947.996 {z} 10.9531 {heading} 6.9689 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5257 = create_car_generator 1567.389 {y} 2691.1179 {z} 10.265 {heading} 279.9875 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5258 = create_car_generator -2087.3669 {y} -2519.0161 {z} 29.925 {heading} 90.9178 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5259 = create_car_generator 2615.3169 {y} 1939.701 {z} 10.129 {heading} 148.1757 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5260 = create_car_generator 1074.964 {y} 1395.418 {z} 5.303 {heading} 36.7673 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5261 = create_car_generator 2615.239 {y} -1731.225 {z} 5.9486 {heading} 140.8213 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5262 = create_car_generator 1305.176 {y} -796.6955 {z} 83.9477 {heading} 185.9911 {modelId} 571 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_go_kart {amount} 0
switch_car_generator $5249 {amount} 0
switch_car_generator $5250 {amount} 0
switch_car_generator $5251 {amount} 0
switch_car_generator $5252 {amount} 0
switch_car_generator $5253 {amount} 0
switch_car_generator $5254 {amount} 0
switch_car_generator $5255 {amount} 0
switch_car_generator $5256 {amount} 0
switch_car_generator $5257 {amount} 0
switch_car_generator $5258 {amount} 0
switch_car_generator $5259 {amount} 0
switch_car_generator $5260 {amount} 0
switch_car_generator $5261 {amount} 0
switch_car_generator $5262 {amount} 0
$car_gen_hover = create_car_generator -2294.926 {y} 2546.978 {z} 5.9175 {heading} 290.9339 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5264 = create_car_generator 714.3436 {y} -1488.2729 {z} 0.9343 {heading} 270.0 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5265 = create_car_generator -1426.412 {y} 506.8391 {z} 2.9463 {heading} 144.61 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5266 = create_car_generator 1971.92 {y} 1560.665 {z} 10.9635 {heading} 262.615 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5267 = create_car_generator -535.4126 {y} -60.8884 {z} 63.5922 {heading} 276.9756 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5268 = create_car_generator -910.27 {y} 2699.0601 {z} 42.8 {heading} 110.8738 {modelId} 539 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_hover {amount} 0
switch_car_generator $5264 {amount} 0
switch_car_generator $5265 {amount} 0
switch_car_generator $5266 {amount} 0
switch_car_generator $5267 {amount} 0
switch_car_generator $5268 {amount} 0
$car_gen_sparrow = create_car_generator 1291.5 {y} -787.5 {z} 95.4555 {heading} 180.0 {modelId} 469 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_sparrow {amount} 0
$car_gen_desert1_pcj = create_car_generator 435.2751 {y} 2527.5229 {z} 16.371 {heading} 90.0 {modelId} 461 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_desert1_pcj {amount} 101
$player_has_fast_reload = 0
$car_gen_duneride_kickstart = create_car_generator 1091.89 {y} 1612.63 {z} 13.0 {heading} 206.7583 {modelId} 573 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_duneride_kickstart {amount} 0
$car_gen_low_rider_near_cesars = create_car_generator 1772.66 {y} -2096.5901 {z} 13.99 {heading} 182.7583 {modelId} 412 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} True {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_low_rider_near_cesars {amount} 101
$car_gen_pine = create_car_generator -2151.303 {y} -2440.136 {z} 29.822 {heading} 324.7583 {modelId} -1 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5278 = create_car_generator -2147.0381 {y} -2443.752 {z} 29.822 {heading} 324.7583 {modelId} -1 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5279 = create_car_generator -2140.979 {y} -2448.7329 {z} 29.822 {heading} 144.7583 {modelId} -1 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $car_gen_pine {amount} 101
switch_car_generator $5278 {amount} 101
switch_car_generator $5279 {amount} 101
$5280 = create_car_generator -2000.2419 {y} -2415.509 {z} 29.767 {heading} -132.0 {modelId} 515 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5281 = create_car_generator -1969.806 {y} -2437.939 {z} 29.767 {heading} -82.5 {modelId} 578 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
$5282 = create_car_generator -1969.806 {y} -2443.908 {z} 29.767 {heading} -19.0 {modelId} 530 {primaryColor} -1 {secondaryColor} -1 {forceSpawn} False {alarmChance} 0 {doorLockChance} 0 {minDelay} 0 {maxDelay} 10000
switch_car_generator $5280 {amount} 101
switch_car_generator $5281 {amount} 101
switch_car_generator $5282 {amount} 101
$timer_wil = 0
$game_timer_wil = 0
$stored_shop_time = 0
$range_cuts_watched = 0
$displayed_sniper_help_text = 0
$g_VB_REAR_DOOR = create_object_no_offset #CARRIER_DOOR_SFSE {x} -1465.797 {y} 501.289 {z} 1.145
set_object_dynamic $g_VB_REAR_DOOR {state} False
set_object_collision_damage_effect $g_VB_REAR_DOOR {state} False
set_object_proofs $g_VB_REAR_DOOR {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_REAR_DOOR
$g_VB_SMALL_LIFT = create_object_no_offset #CARRIER_LIFT2_SFSE {x} -1414.453 {y} 516.453 {z} 16.688
set_object_dynamic $g_VB_SMALL_LIFT {state} False
set_object_collision_damage_effect $g_VB_SMALL_LIFT {state} False
set_object_proofs $g_VB_SMALL_LIFT {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_SMALL_LIFT
$g_VB_BIG_LIFT = create_object_no_offset #CARRIER_LIFT1_SFSE {x} -1456.719 {y} 501.297 {z} 16.953
set_object_dynamic $g_VB_BIG_LIFT {state} False
set_object_collision_damage_effect $g_VB_BIG_LIFT {state} False
set_object_proofs $g_VB_BIG_LIFT {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_BIG_LIFT
$burglary_player_stealth = 0
$d6_trip_skips_available = 0
$gym_day = -1
$gym_month = -1
$gym_final_day = -1
$gym_final_month = -1
$gym_day_fitness = 0.0
terminate_this_script 

//-------------Mission 2---------------
// Originally: Intro

:INTRO
script_name 'INTRO'
gosub @INTRO_47
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO_38
gosub @INTRO_9994

:INTRO_38
gosub @INTRO_9996
terminate_this_script 

:INTRO_47
$onmission = 1
display_zone_names False
if 
  $onmission == 0
goto_if_false @INTRO_129
149@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
148@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
write_debug "AA"

:INTRO_129
start_new_script @A_CONT 
load_mission_text 'INTRO1'
use_text_commands True
wait 0
set_text_draw_before_fade False
set_text_font Font.Subtitles
179@ = 0
178@ = 0
set_lvar_text_label 182@s = 'LOAD_01'

:INTRO_192
if 
  200 > 179@
goto_if_false @INTRO_229
wait 0
gosub @INTRO_10282
goto @INTRO_192

:INTRO_229
178@ = 2
TIMERA = 0

:INTRO_243
if 
  1000 > TIMERA
goto_if_false @INTRO_280
wait 0
gosub @INTRO_10282
goto @INTRO_243

:INTRO_280
set_area_visible 14
load_cutscene 'PROLOG1'

:INTRO_295
if 
  not has_cutscene_loaded 
goto_if_false @INTRO_326
wait 0
gosub @INTRO_10282
goto @INTRO_295

:INTRO_326
178@ = 1

:INTRO_333
if 
  179@ > 0
goto_if_false @INTRO_369
wait 0
gosub @INTRO_10282
goto @INTRO_333

:INTRO_369
178@ = 0
181@ = 1
set_lvar_text_label 182@s = 'LOAD_02'
180@ = 0
start_cutscene 
do_fade 0 {direction} Fade.Out

:INTRO_412
if 
  get_fading_status 
goto_if_false @INTRO_436
wait 0
goto @INTRO_412

:INTRO_436
do_fade 1000 {direction} Fade.In
TIMERA = 0

:INTRO_450
if 
  not has_cutscene_finished 
goto_if_false @INTRO_710
wait 0
if 
  TIMERA > 6800
goto_if_false @INTRO_703
switch_start 180@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @INTRO_703 {caseNum1} 0 {caseLabel1} @INTRO_549 {caseNum2} 1 {caseLabel2} @INTRO_603 {caseNum3} 2 {caseLabel3} @INTRO_657 {caseNum4} -1 {caseLabel4} @INTRO_703 {caseNum5} -1 {caseLabel5} @INTRO_703 {caseNum6} -1 {caseLabel6} @INTRO_703 {caseNum7} -1 {caseLabel7} @INTRO_703

:INTRO_549
if 
  200 > 179@
goto_if_false @INTRO_589
gosub @INTRO_10282
goto @INTRO_703
goto @INTRO_603

:INTRO_589
178@ = 2
180@ += 1

:INTRO_603
if 
  10000 > TIMERA
goto_if_false @INTRO_643
gosub @INTRO_10282
goto @INTRO_703
goto @INTRO_657

:INTRO_643
178@ = 1
180@ += 1

:INTRO_657
if 
  179@ > 0
goto_if_false @INTRO_696
gosub @INTRO_10282
goto @INTRO_703
goto @INTRO_703

:INTRO_696
180@ += 1

:INTRO_703
goto @INTRO_450

:INTRO_710
do_fade 0 {direction} Fade.Out

:INTRO_716
if 
  get_fading_status 
goto_if_false @INTRO_740
wait 0
goto @INTRO_716

:INTRO_740
clear_cutscene 
if 
  was_cutscene_skipped 
goto_if_false @INTRO_773
set_area_visible 0
$cutscene_skip_CUT = 1
goto @INTRO_6707

:INTRO_773
set_time_of_day 6 {minutes} 30
force_weather_now WeatherType.SunnyCountryside
set_area_visible 0
load_cutscene 'PROLOG3'

:INTRO_798
if 
  not has_cutscene_loaded 
goto_if_false @INTRO_822
wait 0
goto @INTRO_798

:INTRO_822
request_model #GWFORUM1_LAE

:INTRO_826
if 
  not has_model_loaded #GWFORUM1_LAE
goto_if_false @INTRO_852
wait 0
goto @INTRO_826

:INTRO_852
load_scene_in_direction 2493.3621 {y} -1734.295 {z} 12.3828 {heading} 258.7583
clear_area 2482.582 {y} -1729.642 {z} 12.3906 {radius} 500.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO_907
if 
  not has_cutscene_finished 
goto_if_false @INTRO_937
wait 0
set_time_of_day 6 {minutes} 30
goto @INTRO_907

:INTRO_937
do_fade 0 {direction} Fade.Out

:INTRO_943
if 
  get_fading_status 
goto_if_false @INTRO_967
wait 0
goto @INTRO_943

:INTRO_967
clear_cutscene 
mark_model_as_no_longer_needed #GWFORUM1_LAE
if 
  was_cutscene_skipped 
goto_if_false @INTRO_1000
$cutscene_skip_CUT = 1
goto @INTRO_6707

:INTRO_1000
request_model 596
request_model 537
request_model 569
request_model 481
request_model #GANGSHOPS4_LAE2
request_model #CE_HILLSEAST06
request_model #CUNTEGROUND23
request_model #HILLSEAST05_LAE
load_special_character 1 {modelName} 'TENPEN'
load_special_character 2 {modelName} 'PULASKI'
load_special_character 3 {modelName} 'HERN'
request_car_recording 706
request_car_recording 707

:INTRO_1085
if or
  not has_model_loaded 596
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 481
  not has_car_recording_been_loaded 706
  not has_car_recording_been_loaded 707
goto_if_false @INTRO_1137
wait 0
goto @INTRO_1085

:INTRO_1137
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @INTRO_1171
wait 0
goto @INTRO_1137

:INTRO_1171
if or
  not has_model_loaded #GANGSHOPS4_LAE2
  not has_model_loaded #CE_HILLSEAST06
  not has_model_loaded #CUNTEGROUND23
  not has_model_loaded #HILLSEAST05_LAE
goto_if_false @INTRO_1209
wait 0
goto @INTRO_1171

:INTRO_1209
request_collision 2431.6089 {y} -1254.061
load_scene 2358.656 {y} -1246.348 {z} 28.7884
preload_beat_track 10
38@ = 0

:INTRO_1249
if 
  38@ <> 2
goto_if_false @INTRO_1283
wait 0
38@ = get_beat_track_status 
goto @INTRO_1249

:INTRO_1283
if 
  are_subtitles_switched_on 
goto_if_false @INTRO_2113
93@ = 0
set_lvar_text_label 95@s = 'PRO@24'
43@ = 3050
68@ = 0
set_lvar_text_label 97@s = 'PRO@25'
44@ = 2530
69@ = 3150
set_lvar_text_label 99@s = 'PRO@26'
45@ = 1600
70@ = 6000
set_lvar_text_label 101@s = 'PRO@49'
46@ = 1530
71@ = 9190
set_lvar_text_label 103@s = 'PRO@27'
47@ = 5510
72@ = 10810
set_lvar_text_label 105@s = 'PRO@28'
48@ = 2560
73@ = 16600
set_lvar_text_label 107@s = 'PRO@29'
49@ = 1350
74@ = 21000
set_lvar_text_label 109@s = 'PRO@30'
50@ = 3760
75@ = 23500
set_lvar_text_label 111@s = 'PRO@30B'
51@ = 2450
set_lvar_int_to_lvar_int 76@ = 75@
add_int_lvar_to_int_lvar 76@ += 50@
set_lvar_text_label 113@s = 'PRO@31'
52@ = 3620
77@ = 30700
set_lvar_text_label 115@s = 'PRO@33'
53@ = 1440
78@ = 35000
set_lvar_text_label 117@s = 'PRO@32'
54@ = 1739
79@ = 36750
set_lvar_text_label 119@s = 'PRO@34'
55@ = 2450
set_lvar_int_to_lvar_int 80@ = 79@
add_int_lvar_to_int_lvar 80@ += 54@
set_lvar_text_label 121@s = 'PRO@35'
56@ = 971
set_lvar_int_to_lvar_int 81@ = 80@
add_int_lvar_to_int_lvar 81@ += 55@
set_lvar_text_label 123@s = 'PRO@36'
57@ = 1320
set_lvar_int_to_lvar_int 82@ = 81@
add_int_lvar_to_int_lvar 82@ += 56@
set_lvar_text_label 125@s = 'PRO@37'
58@ = 1342
set_lvar_int_to_lvar_int 83@ = 82@
add_int_lvar_to_int_lvar 83@ += 57@
set_lvar_text_label 127@s = 'PRO@38'
59@ = 1747
set_lvar_int_to_lvar_int 84@ = 83@
add_int_lvar_to_int_lvar 84@ += 58@
set_lvar_text_label 129@s = 'PRO@40'
60@ = 2355
85@ = 46700
set_lvar_text_label 131@s = 'PRO@41'
61@ = 4400
86@ = 49500
set_lvar_text_label 133@s = 'PRO@43'
62@ = 3111
87@ = 55900
set_lvar_text_label 135@s = 'PRO@44'
63@ = 3400
88@ = 59500
set_lvar_text_label 137@s = 'PRO@45'
64@ = 1180
set_lvar_int_to_lvar_int 89@ = 88@
add_int_lvar_to_int_lvar 89@ += 63@
set_lvar_text_label 139@s = 'PRO@47'
65@ = 1700
set_lvar_int_to_lvar_int 90@ = 89@
add_int_lvar_to_int_lvar 90@ += 64@
set_lvar_text_label 141@s = 'PRO@46'
66@ = 2500
set_lvar_int_to_lvar_int 91@ = 90@
add_int_lvar_to_int_lvar 91@ += 65@
goto @INTRO_2120

:INTRO_2113
93@ = 25

:INTRO_2120
set_car_density_multiplier 0.0
set_ped_density_multiplier 1.0
switch_random_trains False
37@ = 0
35@ = create_car 596 {x} 2431.6089 {y} -1254.061 {z} 22.8303
set_car_heading 35@ {heading} 89.5453
force_car_lights 35@ {lightMode} CarLights.ForceOn
warp_char_into_car_as_passenger $scplayer {handle} 35@ {seat} SeatId.RearRight
41@ = create_char_inside_car 35@ {pedType} PedType.Special {modelId} 291
40@ = create_char_as_passenger 35@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
42@ = create_char_as_passenger 35@ {pedType} PedType.Special {modelId} 292 {seat} SeatId.RearLeft
set_fixed_camera_position 2358.656 {y} -1246.348 {z} 28.7884 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2359.521 {y} -1246.843 {z} 28.7047 {switchStyle} SwitchType.JumpCut
set_time_of_day 6 {minutes} 30
force_weather_now WeatherType.SunnyCountryside
switch_ped_roads_off 2380.6819 {leftBottomY} -1274.528 {leftBottomZ} 22.0 {rightTopX} 2375.9451 {rightTopY} -1239.356 {rightTopZ} 26.0
switch_ped_roads_off 2358.3831 {leftBottomY} -1372.666 {leftBottomZ} 22.0 {rightTopX} 2382.969 {rightTopY} -1379.457 {rightTopZ} 25.0
switch_ped_roads_off 2151.603 {leftBottomY} -1380.375 {leftBottomZ} 22.0 {rightTopX} 2184.7041 {rightTopY} -1374.71 {rightTopZ} 26.0
switch_ped_roads_off 2180.731 {leftBottomY} -1286.328 {leftBottomZ} 22.0 {rightTopX} 2153.5271 {rightTopY} -1315.797 {rightTopZ} 26.0
TIMERA = 0

:INTRO_2434
if 
  500 > TIMERA
goto_if_false @INTRO_2464
wait 0
goto @INTRO_2434

:INTRO_2464
do_fade 500 {direction} Fade.In
switch_widescreen True
if 
  not is_car_dead 35@
goto_if_false @INTRO_2517
if 
  not is_playback_going_on_for_car 35@
goto_if_false @INTRO_2517
start_playback_recorded_car 35@ {path} 706
play_beat_track 

:INTRO_2517
if 
  is_player_playing $player1
goto_if_false @INTRO_2540
set_player_control $player1 {state} False

:INTRO_2540
36@ = create_mission_train 13 {x} 2285.1521 {y} -1257.5 {z} 23.0 {direction} True
set_train_speed 36@ {speed} 0.0
set_train_cruise_speed 36@ {speed} 0.0
$x = 2373.105
$y = -1281.969
$z = 22.833
$heading = 0.0
152@ = 2478.5591
153@ = -1258.541
154@ = 27.5958
gosub @INTRO_5867
TIMERA = 0
TIMERB = 0
$cutscene_skip_CUT = 2

:INTRO_2682
wait 0
set_time_of_day 6 {minutes} 30
if 
  not is_car_dead 35@
goto_if_false @INTRO_5860
switch_start 37@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @INTRO_3228 {caseNum1} 0 {caseLabel1} @INTRO_2771 {caseNum2} 1 {caseLabel2} @INTRO_2805 {caseNum3} 2 {caseLabel3} @INTRO_2874 {caseNum4} 3 {caseLabel4} @INTRO_2911 {caseNum5} 4 {caseLabel5} @INTRO_3030 {caseNum6} 5 {caseLabel6} @INTRO_3078 {caseNum7} -1 {caseLabel7} @INTRO_3228

:INTRO_2771
if 
  get_fading_status 
goto_if_false @INTRO_2791
goto @INTRO_3228

:INTRO_2791
skip_cutscene_start_internal @INTRO_3132
37@ += 1

:INTRO_2805
if 
  10000 > TIMERA
goto_if_false @INTRO_2831
goto @INTRO_3228

:INTRO_2831
if 
  not is_car_dead 36@
goto_if_false @INTRO_2867
set_train_speed 36@ {speed} 9.0
set_train_cruise_speed 36@ {speed} 9.0

:INTRO_2867
37@ += 1

:INTRO_2874
if 
  is_playback_going_on_for_car 35@
goto_if_false @INTRO_2897
goto @INTRO_3228

:INTRO_2897
TIMERA = 0
37@ += 1

:INTRO_2911
if 
  13000 > TIMERA
goto_if_false @INTRO_2937
goto @INTRO_3228

:INTRO_2937
TIMERA = 0
start_playback_recorded_car 35@ {path} 707
set_car_collision 35@ {state} False
clear_area 2246.5081 {y} -1263.087 {z} 22.9531 {radius} 500.0 {clearParticles} True
$intro_bmx = create_car 481 {x} 2246.5081 {y} -1263.087 {z} 22.9531
set_car_heading $intro_bmx {heading} 285.0
145@ = 1
37@ += 1

:INTRO_3030
if 
  26800 > TIMERA
goto_if_false @INTRO_3056
goto @INTRO_3228

:INTRO_3056
task_leave_car_immediately $scplayer {vehicle} 35@
37@ += 1
goto @INTRO_3228

:INTRO_3078
if 
  is_playback_going_on_for_car 35@
goto_if_false @INTRO_3101
goto @INTRO_3228

:INTRO_3101
task_go_straight_to_coord $scplayer {x} 2239.3301 {y} -1261.941 {z} 22.9375 {speed} MoveState.Walk {time} -2
$cutscene_skip_CUT = 0

:INTRO_3132
skip_cutscene_end 
if 
  $cutscene_skip_CUT == 2
goto_if_false @INTRO_3159
goto @INTRO_6707

:INTRO_3159
stop_beat_track 
delete_mission_trains 
switch_random_trains True
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
unload_special_character 1
unload_special_character 2
unload_special_character 3
delete_char 40@
delete_char 41@
delete_char 42@
delete_car 35@
$cutscene_skip_CUT = 3
goto @INTRO_5968

:INTRO_3228
switch_start 39@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @INTRO_5047 {caseNum1} 0 {caseLabel1} @INTRO_3356 {caseNum2} 1 {caseLabel2} @INTRO_3473 {caseNum3} 2 {caseLabel3} @INTRO_3590 {caseNum4} 3 {caseLabel4} @INTRO_3707 {caseNum5} 4 {caseLabel5} @INTRO_3809 {caseNum6} 5 {caseLabel6} @INTRO_3895 {caseNum7} 6 {caseLabel7} @INTRO_4012
switch_continued 7 {caseLabel1} @INTRO_4100 {caseNum2} 8 {caseLabel2} @INTRO_4219 {caseNum3} 9 {caseLabel3} @INTRO_4307 {caseNum4} 10 {caseLabel4} @INTRO_4426 {caseNum5} 11 {caseLabel5} @INTRO_4545 {caseNum6} 12 {caseLabel6} @INTRO_4633 {caseNum7} 13 {caseLabel7} @INTRO_4752 {caseNum8} 14 {caseLabel8} @INTRO_4840 {caseNum9} 15 {caseLabel9} @INTRO_4928

:INTRO_3356
if 
  1500 > TIMERB
goto_if_false @INTRO_3382
goto @INTRO_5047

:INTRO_3382
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2358.656 {fromY} -1246.348 {fromZ} 28.7884 {toX} 2358.656 {toY} -1246.348 {toZ} 28.7884 {time} 7000 {ease} True
camera_set_vector_track 2359.521 {fromY} -1246.843 {fromZ} 28.7047 {toX} 2359.2759 {toY} -1247.129 {toZ} 28.7047 {time} 7000 {ease} True
39@ += 1

:INTRO_3473
if 
  5500 > TIMERB
goto_if_false @INTRO_3499
goto @INTRO_5047

:INTRO_3499
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2362.03 {fromY} -1288.5 {fromZ} 23.8624 {toX} 2362.03 {toY} -1288.5 {toZ} 23.8624 {time} 5500 {ease} True
camera_set_vector_track 2362.592 {fromY} -1287.676 {fromZ} 23.9326 {toX} 2362.0471 {toY} -1289.4969 {toZ} 23.932 {time} 5500 {ease} True
39@ += 1

:INTRO_3590
if 
  9500 > TIMERB
goto_if_false @INTRO_3616
goto @INTRO_5047

:INTRO_3616
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2377.1631 {fromY} -1308.2469 {fromZ} 23.6193 {toX} 2380.6731 {toY} -1390.425 {toZ} 24.0771 {time} 6800 {ease} False
camera_set_vector_track 2376.469 {fromY} -1307.5341 {fromZ} 23.7249 {toX} 2379.811 {toY} -1389.922 {toZ} 24.1388 {time} 6800 {ease} False
39@ += 1

:INTRO_3707
if 
  16200 > TIMERB
goto_if_false @INTRO_3733
goto @INTRO_5047

:INTRO_3733
mark_model_as_no_longer_needed #GANGSHOPS4_LAE2
mark_model_as_no_longer_needed #CE_HILLSEAST06
mark_model_as_no_longer_needed #CUNTEGROUND23
mark_model_as_no_longer_needed #HILLSEAST05_LAE
set_fixed_camera_position 2316.988 {y} -1378.123 {z} 23.3054 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2317.908 {y} -1378.489 {z} 23.4404 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_3809
if 
  20500 > TIMERB
goto_if_false @INTRO_3835
goto @INTRO_5047

:INTRO_3835
set_fixed_camera_position 2271.75 {y} -1396.443 {z} 36.7292 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2272.4751 {y} -1395.894 {z} 36.3149 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_3895
if 
  32300 > TIMERB
goto_if_false @INTRO_3921
goto @INTRO_5047

:INTRO_3921
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2305.5359 {fromY} -1384.754 {fromZ} 23.2002 {toX} 2303.521 {toY} -1384.387 {toZ} 23.0641 {time} 5700 {ease} False
camera_set_vector_track 2304.708 {fromY} -1384.193 {fromZ} 23.1803 {toX} 2302.728 {toY} -1383.861 {toZ} 23.3722 {time} 5700 {ease} False
39@ += 1

:INTRO_4012
if 
  37589 > TIMERB
goto_if_false @INTRO_4040
goto @INTRO_5047

:INTRO_4040
set_fixed_camera_position 2265.2539 {y} -1388.5909 {z} 23.4001 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2266.1641 {y} -1388.202 {z} 23.4001 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4100
if 
  38500 > TIMERB
goto_if_false @INTRO_4128
goto @INTRO_5047

:INTRO_4128
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2265.2539 {fromY} -1388.5909 {fromZ} 23.4001 {toX} 2246.9099 {toY} -1388.5909 {toZ} 23.4001 {time} 7500 {ease} True
camera_set_vector_track 2266.1641 {fromY} -1388.202 {fromZ} 23.4001 {toX} 2245.9351 {toY} -1388.424 {toZ} 23.4001 {time} 7500 {ease} True
39@ += 1

:INTRO_4219
if 
  46000 > TIMERB
goto_if_false @INTRO_4247
goto @INTRO_5047

:INTRO_4247
set_fixed_camera_position 2163.084 {y} -1387.757 {z} 23.8438 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2163.946 {y} -1387.2679 {z} 23.9785 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4307
if 
  48000 > TIMERB
goto_if_false @INTRO_4335
goto @INTRO_5047

:INTRO_4335
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2163.084 {fromY} -1387.757 {fromZ} 23.8438 {toX} 2163.084 {toY} -1387.757 {toZ} 23.8438 {time} 5000 {ease} True
camera_set_vector_track 2163.946 {fromY} -1387.2679 {fromZ} 23.9785 {toX} 2163.4231 {toY} -1386.826 {toZ} 23.9785 {time} 5000 {ease} True
39@ += 1

:INTRO_4426
if 
  53000 > TIMERB
goto_if_false @INTRO_4454
goto @INTRO_5047

:INTRO_4454
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2156.551 {fromY} -1292.082 {fromZ} 39.2814 {toX} 2156.9741 {toY} -1288.564 {toZ} 36.9331 {time} 4000 {ease} True
camera_set_vector_track 2157.0249 {fromY} -1292.67 {fromZ} 38.6264 {toX} 2157.626 {toY} -1289.084 {toZ} 36.382 {time} 4000 {ease} True
39@ += 1

:INTRO_4545
if 
  57000 > TIMERB
goto_if_false @INTRO_4573
goto @INTRO_5047

:INTRO_4573
set_fixed_camera_position 2176.373 {y} -1252.759 {z} 23.4951 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2176.1179 {y} -1253.725 {z} 23.5115 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4633
if 
  59200 > TIMERB
goto_if_false @INTRO_4661
goto @INTRO_5047

:INTRO_4661
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2176.373 {fromY} -1252.759 {fromZ} 23.4951 {toX} 2176.373 {toY} -1252.759 {toZ} 23.4951 {time} 2500 {ease} True
camera_set_vector_track 2176.1179 {fromY} -1253.725 {fromZ} 23.5115 {toX} 2177.0791 {toY} -1253.467 {toZ} 23.5115 {time} 2500 {ease} True
39@ += 1

:INTRO_4752
if 
  61400 > TIMERB
goto_if_false @INTRO_4780
goto @INTRO_5047

:INTRO_4780
set_fixed_camera_position 2212.582 {y} -1262.756 {z} 25.8688 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2211.6809 {y} -1262.3929 {z} 25.633 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4840
if 
  63000 > TIMERB
goto_if_false @INTRO_4868
goto @INTRO_5047

:INTRO_4868
set_fixed_camera_position 2210.418 {y} -1263.121 {z} 23.1607 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2211.3989 {y} -1262.981 {z} 23.2985 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
39@ += 1

:INTRO_4928
if 
  64000 > TIMERB
goto_if_false @INTRO_4956
goto @INTRO_5047

:INTRO_4956
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2210.418 {fromY} -1263.121 {fromZ} 23.1607 {toX} 2217.615 {toY} -1262.761 {toZ} 24.45 {time} 6500 {ease} True
camera_set_vector_track 2211.3989 {fromY} -1262.981 {fromZ} 23.2985 {toX} 2218.606 {toY} -1262.886 {toZ} 24.4112 {time} 6500 {ease} True
39@ += 1

:INTRO_5047
if 
  24 > 93@
goto_if_false @INTRO_5241
switch_start 94@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_5241 {caseNum1} 0 {caseLabel1} @INTRO_5163 {caseNum2} 1 {caseLabel2} @INTRO_5128 {caseNum3} -1 {caseLabel3} @INTRO_5241 {caseNum4} -1 {caseLabel4} @INTRO_5241 {caseNum5} -1 {caseLabel5} @INTRO_5241 {caseNum6} -1 {caseLabel6} @INTRO_5241 {caseNum7} -1 {caseLabel7} @INTRO_5241

:INTRO_5128
if 
  is_int_lvar_greater_than_int_lvar 146@ > TIMERB
goto_if_false @INTRO_5154
goto @INTRO_5241

:INTRO_5154
clear_prints 
94@ -= 1

:INTRO_5163
if 
  is_int_lvar_greater_than_int_lvar 68@(93@,25i) > TIMERB
goto_if_false @INTRO_5193
goto @INTRO_5241

:INTRO_5193
print_now 95@(93@,25s) {time} 12000 {flag} 1
set_lvar_int_to_lvar_int 146@ = TIMERB
add_int_lvar_to_int_lvar 146@ += 43@(93@,25i)
93@ += 1
94@ += 1

:INTRO_5241
switch_start 147@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @INTRO_5860 {caseNum1} 0 {caseLabel1} @INTRO_5304 {caseNum2} 1 {caseLabel2} @INTRO_5414 {caseNum3} 2 {caseLabel3} @INTRO_5524 {caseNum4} 3 {caseLabel4} @INTRO_5636 {caseNum5} 4 {caseLabel5} @INTRO_5748 {caseNum6} -1 {caseLabel6} @INTRO_5860 {caseNum7} -1 {caseLabel7} @INTRO_5860

:INTRO_5304
if 
  8500 > TIMERB
goto_if_false @INTRO_5330
goto @INTRO_5860

:INTRO_5330
$x = 2345.4519
$y = -1303.926
$z = 22.9955
$heading = 270.0
152@ = 2368.437
153@ = -1202.752
154@ = 26.4297
gosub @INTRO_5867
147@ += 1

:INTRO_5414
if 
  15000 > TIMERB
goto_if_false @INTRO_5440
goto @INTRO_5860

:INTRO_5440
$x = 2346.3831
$y = -1420.5551
$z = 22.8281
$heading = 0.0
152@ = 2387.488
153@ = -1409.537
154@ = 22.8359
gosub @INTRO_5867
147@ += 1

:INTRO_5524
if 
  40000 > TIMERB
goto_if_false @INTRO_5552
goto @INTRO_5860

:INTRO_5552
$x = 2215.0879
$y = -1417.0861
$z = 22.8281
$heading = 0.0
152@ = 2255.4441
153@ = -1302.8
154@ = 22.8402
gosub @INTRO_5867
147@ += 1

:INTRO_5636
if 
  48000 > TIMERB
goto_if_false @INTRO_5664
goto @INTRO_5860

:INTRO_5664
$x = 2165.042
$y = -1353.0551
$z = 22.8281
$heading = 180.0
152@ = 2130.5791
153@ = -1381.478
154@ = 22.8281
gosub @INTRO_5867
147@ += 1

:INTRO_5748
if 
  52000 > TIMERB
goto_if_false @INTRO_5776
goto @INTRO_5860

:INTRO_5776
$x = 2201.3521
$y = -1298.165
$z = 22.8303
$heading = 90.0
152@ = 2121.0891
153@ = -1298.5699
154@ = 22.817
gosub @INTRO_5867
147@ += 1

:INTRO_5860
goto @INTRO_2682

:INTRO_5867
150@, 151@ = get_random_car_model_in_memory True
if 
  150@ <> -1
goto_if_false @INTRO_5966
mark_char_as_no_longer_needed 149@
mark_car_as_no_longer_needed 148@
148@ = create_car 150@ {x} $x {y} $y {z} $z
set_car_heading 148@ {heading} $heading
149@ = create_random_char_as_driver 148@
task_car_drive_to_coord 149@ {vehicle} 148@ {x} 152@ {y} 153@ {z} 154@ {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:INTRO_5966
return 

:INTRO_5968
155@ = 0
156@ = 0
set_lvar_text_label 164@s = 'VO_AA'
set_lvar_int_to_constant 157@ = 43200
set_lvar_text_label 166@s = 'VO_AB'
set_lvar_int_to_constant 158@ = 43201
set_lvar_text_label 168@s = 'VO_AC'
set_lvar_int_to_constant 159@ = 43202
set_lvar_text_label 170@s = 'VO_AD'
set_lvar_int_to_constant 160@ = 43203
set_lvar_text_label 172@s = 'VO_AE'
set_lvar_int_to_constant 161@ = 43204
set_lvar_text_label 174@s = 'VO_AF'
set_lvar_int_to_constant 162@ = 43205
set_lvar_text_label 176@s = 'VO_AG'
set_lvar_int_to_constant 163@ = 43206
restore_camera_jumpcut 
camera_reset_new_scriptables 
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2217.615 {fromY} -1262.761 {fromZ} 24.45 {toX} 2238.6411 {toY} -1261.329 {toZ} 24.6289 {time} 13500 {ease} False
camera_set_vector_track 2218.606 {fromY} -1262.886 {fromZ} 24.4112 {toX} 2239.6021 {toY} -1261.589 {toZ} 24.54 {time} 13500 {ease} False
camera_set_shake_simulation_simple 1 {timeInMs} 20000.0 {intensity} 3.0
39@ = 0
TIMERA = 0
skip_cutscene_start_internal @INTRO_6658

:INTRO_6273
wait 0
switch_start 155@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_6469 {caseNum1} 0 {caseLabel1} @INTRO_6340 {caseNum2} 1 {caseLabel2} @INTRO_6429 {caseNum3} -1 {caseLabel3} @INTRO_6469 {caseNum4} -1 {caseLabel4} @INTRO_6469 {caseNum5} -1 {caseLabel5} @INTRO_6469 {caseNum6} -1 {caseLabel6} @INTRO_6469 {caseNum7} -1 {caseLabel7} @INTRO_6469

:INTRO_6340
if 
  5 > 156@
goto_if_false @INTRO_6415
set_var_int_to_lvar_int $load_sample = 157@(156@,7i)
set_var_text_label s$load_text = 164@(156@,7s)
start_new_script @A_ALAP 1 100 
156@ += 1
155@ += 1
goto @INTRO_6429

:INTRO_6415
155@ = -1
goto @INTRO_6469

:INTRO_6429
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @INTRO_6469
155@ -= 1
$SLOT_status($preload_slot,2i) = -4

:INTRO_6469
switch_start 39@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @INTRO_6700 {caseNum1} 0 {caseLabel1} @INTRO_6532 {caseNum2} 1 {caseLabel2} @INTRO_6632 {caseNum3} -1 {caseLabel3} @INTRO_6700 {caseNum4} -1 {caseLabel4} @INTRO_6700 {caseNum5} -1 {caseLabel5} @INTRO_6700 {caseNum6} -1 {caseLabel6} @INTRO_6700 {caseNum7} -1 {caseLabel7} @INTRO_6700

:INTRO_6532
if 
  TIMERA > 13500
goto_if_false @INTRO_6625
set_fixed_camera_position 2238.6411 {y} -1261.329 {z} 24.6289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2239.6021 {y} -1261.589 {z} 24.54 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_set_shake_simulation_simple 1 {timeInMs} 2500.0 {intensity} 3.0
39@ += 1

:INTRO_6625
goto @INTRO_6700

:INTRO_6632
if 
  TIMERA > 16000
goto_if_false @INTRO_6700
$cutscene_skip_CUT = 0

:INTRO_6658
skip_cutscene_end 
if 
  $cutscene_skip_CUT == 0
goto_if_false @INTRO_6693
camera_reset_new_scriptables 
restore_camera 
switch_widescreen False
set_player_control $player1 {state} True

:INTRO_6693
goto @INTRO_6707

:INTRO_6700
goto @INTRO_6273

:INTRO_6707
switch_start $cutscene_skip_CUT {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @INTRO_7240 {caseNum1} 0 {caseLabel1} @INTRO_6770 {caseNum2} 1 {caseLabel2} @INTRO_6787 {caseNum3} 2 {caseLabel3} @INTRO_6787 {caseNum4} 3 {caseLabel4} @INTRO_6787 {caseNum5} -1 {caseLabel5} @INTRO_7240 {caseNum6} -1 {caseLabel6} @INTRO_7240 {caseNum7} -1 {caseLabel7} @INTRO_7240

:INTRO_6770
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
goto @INTRO_7240

:INTRO_6787
do_fade 0 {direction} Fade.Out

:INTRO_6793
if 
  get_fading_status 
goto_if_false @INTRO_6817
wait 0
goto @INTRO_6793

:INTRO_6817
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_time_of_day 6 {minutes} 30
force_weather_now WeatherType.SunnyCountryside
clear_char_tasks_immediately $scplayer
load_scene_in_direction 2239.3669 {y} -1261.939 {z} 22.9375 {heading} 272.5814
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_6907
warp_char_from_car_to_coord $scplayer {x} 2239.3669 {y} -1261.939 {z} 22.9375
goto @INTRO_6927

:INTRO_6907
set_char_coordinates $scplayer {x} 2239.3669 {y} -1261.939 {z} 22.9375

:INTRO_6927
set_char_heading $scplayer {heading} 272.5814
if 
  $cutscene_skip_CUT == 2
goto_if_false @INTRO_7031
stop_beat_track 
delete_mission_trains 
switch_random_trains True
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
unload_special_character 1
unload_special_character 2
unload_special_character 3
delete_char 40@
delete_char 41@
delete_char 42@
delete_car 35@
mark_model_as_no_longer_needed #GANGSHOPS4_LAE2
mark_model_as_no_longer_needed #CE_HILLSEAST06
mark_model_as_no_longer_needed #CUNTEGROUND23
mark_model_as_no_longer_needed #HILLSEAST05_LAE
clear_char_tasks $scplayer

:INTRO_7031
if 
  145@ == 0
goto_if_false @INTRO_7145
request_model 481

:INTRO_7054
if 
  not has_model_loaded 481
goto_if_false @INTRO_7081
wait 0
goto @INTRO_7054

:INTRO_7081
clear_area 2246.5081 {y} -1263.087 {z} 22.9531 {radius} 500.0 {clearParticles} True
$intro_bmx = create_car 481 {x} 2246.5081 {y} -1263.087 {z} 22.9531
set_car_heading $intro_bmx {heading} 285.0
145@ = 1

:INTRO_7145
restore_camera_jumpcut 
camera_reset_new_scriptables 
set_camera_behind_player 
switch_widescreen False
TIMERA = 0

:INTRO_7162
if 
  500 > TIMERA
goto_if_false @INTRO_7192
wait 0
goto @INTRO_7162

:INTRO_7192
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
do_fade 1500 {direction} Fade.In

:INTRO_7209
if 
  get_fading_status 
goto_if_false @INTRO_7233
wait 0
goto @INTRO_7209

:INTRO_7233
goto @INTRO_7240

:INTRO_7240
if 
  get_fading_status 
goto_if_false @INTRO_7264
wait 0
goto @INTRO_7240

:INTRO_7264
switch_widescreen False
set_player_control $player1 {state} True
start_new_script @A_TERM 
display_zone_names True
switch_ped_roads_back_to_original 2380.6819 {leftBottomY} -1274.528 {leftBottomZ} 22.0 {rightTopX} 2375.9451 {rightTopY} -1239.356 {rightTopZ} 26.0
switch_ped_roads_back_to_original 2358.3831 {leftBottomY} -1372.666 {leftBottomZ} 22.0 {rightTopX} 2382.969 {rightTopY} -1379.457 {rightTopZ} 25.0
switch_ped_roads_back_to_original 2151.603 {leftBottomY} -1380.375 {leftBottomZ} 22.0 {rightTopX} 2184.7041 {rightTopY} -1374.71 {rightTopZ} 26.0
switch_ped_roads_back_to_original 2180.731 {leftBottomY} -1286.328 {leftBottomZ} 22.0 {rightTopX} 2153.5271 {rightTopY} -1315.797 {rightTopZ} 26.0
release_weather 
use_text_commands False
set_int_stat StatId.CitiesPassed {value} 0
set_player_control $player1 {state} True
set_near_clip 0.1
set_area_visible 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 10
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 10
request_ipl "BARRIERS1"
request_ipl "BARRIERS2"
switch_roads_off -2696.4641 {leftBottomY} 1239.866 {leftBottomZ} 40.7599 {rightTopX} -2665.3589 {rightTopY} 2190.96 {rightTopZ} 70.8125
switch_roads_off -2740.6941 {leftBottomY} 2233.6179 {leftBottomZ} 40.8431 {rightTopX} -2720.9099 {rightTopY} 2338.2241 {rightTopZ} 80.4822
switch_roads_off -2695.584 {leftBottomY} 1237.981 {leftBottomZ} 40.7328 {rightTopX} -2664.417 {rightTopY} 1454.767 {rightTopZ} 60.8126
switch_roads_off -2670.1731 {leftBottomY} 1203.3311 {leftBottomZ} 50.4297 {rightTopX} -2662.6599 {rightTopY} 1237.707 {rightTopZ} 60.5781
switch_roads_off -995.0013 {leftBottomY} -416.2032 {leftBottomZ} 30.4207 {rightTopX} -940.5399 {rightTopY} -251.8564 {rightTopZ} 40.6762
switch_roads_off -205.8387 {leftBottomY} 250.7443 {leftBottomZ} 7.2472 {rightTopX} -131.0039 {rightTopY} 481.8496 {rightTopZ} 15.9152
switch_roads_off -100.7515 {leftBottomY} -927.8298 {leftBottomZ} 18.0 {rightTopX} -68.3752 {rightTopY} -891.9871 {rightTopZ} 14.0
switch_roads_off 609.7595 {leftBottomY} 327.3437 {leftBottomZ} 15.8783 {rightTopX} 429.8884 {rightTopY} 616.0168 {rightTopZ} 20.289
switch_roads_off 317.1688 {leftBottomY} 707.7672 {leftBottomZ} 7.0 {rightTopX} 437.5726 {rightTopY} 709.0657 {rightTopZ} 20.5578
switch_roads_off 391.1194 {leftBottomY} 640.015 {leftBottomZ} 7.0 {rightTopX} 402.2627 {rightTopY} 664.798 {rightTopZ} 18.5098
switch_roads_off 289.2904 {leftBottomY} 636.3991 {leftBottomZ} 7.8675 {rightTopX} 409.4943 {rightTopY} 702.3849 {rightTopZ} 20.0345
switch_roads_off 300.3153 {leftBottomY} 718.7909 {leftBottomZ} 7.7846 {rightTopX} 316.7906 {rightTopY} 781.0926 {rightTopZ} 14.0795
switch_roads_off 254.9982 {leftBottomY} 837.029 {leftBottomZ} 10.1731 {rightTopX} 270.7453 {rightTopY} 929.2404 {rightTopZ} 30.2553
switch_roads_off 210.7811 {leftBottomY} 939.2068 {leftBottomZ} 10.9062 {rightTopX} 249.4799 {rightTopY} 959.1111 {rightTopZ} 30.2141
switch_roads_off 230.4545 {leftBottomY} 946.0961 {leftBottomZ} 20.6674 {rightTopX} 255.9772 {rightTopY} 969.2755 {rightTopZ} 30.4776
switch_roads_off 249.4279 {leftBottomY} 899.7975 {leftBottomZ} 10.5871 {rightTopX} 268.6826 {rightTopY} 933.5995 {rightTopZ} 30.3975
switch_roads_off 312.1081 {leftBottomY} 694.1089 {leftBottomZ} 6.0 {rightTopX} 324.0811 {rightTopY} 733.0005 {rightTopZ} 10.0
switch_roads_off 324.4526 {leftBottomY} 804.9198 {leftBottomZ} 9.6186 {rightTopX} 332.8747 {rightTopY} 814.356 {rightTopZ} 14.3925
switch_roads_off 1690.819 {leftBottomY} 376.5103 {leftBottomZ} 28.1103 {rightTopX} 1730.223 {rightTopY} 445.2955 {rightTopZ} 30.8414
switch_roads_off 1643.536 {leftBottomY} 227.3723 {leftBottomZ} 27.4457 {rightTopX} 1673.062 {rightTopY} 295.5788 {rightTopZ} 30.0815
switch_roads_off 1673.765 {leftBottomY} 388.1013 {leftBottomZ} 40.2331 {rightTopX} 1815.8621 {rightTopY} 804.9291 {rightTopZ} 10.0
switch_roads_off 1705.156 {leftBottomY} 308.3448 {leftBottomZ} 20.0 {rightTopX} 1710.948 {rightTopY} 316.4094 {rightTopZ} 23.5612
switch_roads_off -12.7067 {leftBottomY} -1522.455 {leftBottomZ} 1.0 {rightTopX} 80.8463 {rightTopY} -1517.111 {rightTopZ} 5.0
switch_roads_off -16.3392 {leftBottomY} -1532.882 {leftBottomZ} 0.0394 {rightTopX} 69.3401 {rightTopY} -1523.771 {rightTopZ} 5.922
switch_roads_off 618.7253 {leftBottomY} -1189.606 {leftBottomZ} 18.0 {rightTopX} 623.5441 {rightTopY} -1161.981 {rightTopZ} 22.0
switch_roads_off -33.4208 {leftBottomY} -1341.84 {leftBottomZ} 9.0 {rightTopX} 35.3764 {rightTopY} -1303.948 {rightTopZ} 13.0
switch_roads_off -41.2393 {leftBottomY} -1385.87 {leftBottomZ} 8.0 {rightTopX} -3.5883 {rightTopY} -1368.856 {rightTopZ} 10.5
switch_roads_off -1690.705 {leftBottomY} 539.6102 {leftBottomZ} 30.3278 {rightTopX} -1100.567 {rightTopY} 1140.569 {rightTopZ} 50.735
switch_roads_off -1799.541 {leftBottomY} 379.7155 {leftBottomZ} 16.0 {rightTopX} -1780.199 {rightTopY} 392.2779 {rightTopZ} 18.0
switch_roads_off -1092.429 {leftBottomY} 1286.505 {leftBottomZ} 30.0 {rightTopX} -1077.038 {rightTopY} 1319.495 {rightTopZ} 35.0
switch_roads_off -1860.1331 {leftBottomY} 314.7891 {leftBottomZ} 38.0 {rightTopX} -1638.563 {rightTopY} 557.4354 {rightTopZ} 40.0
switch_roads_off -1737.333 {leftBottomY} 455.9431 {leftBottomZ} 30.3573 {rightTopX} -1710.363 {rightTopY} 500.6261 {rightTopZ} 40.4891
switch_roads_off -1689.229 {leftBottomY} 513.0995 {leftBottomZ} 30.2597 {rightTopX} -1679.124 {rightTopY} 524.8383 {rightTopZ} 40.25
switch_roads_off -1742.906 {leftBottomY} 500.7302 {leftBottomZ} 30.4679 {rightTopX} -1650.312 {rightTopY} 551.8201 {rightTopZ} 40.7455
clear_prints 
$intro_contact_blip = add_sprite_blip_for_coord $introX {y} $introY {z} $introZ {sprite} $intro_blip_icon
switch_entry_exit 'CARLS' {state} False
switch_entry_exit 'AMMUN1' {state} False
switch_entry_exit 'AMMUN2' {state} False
switch_entry_exit 'AMMUN3' {state} False
switch_entry_exit 'AMMUN4' {state} False
switch_entry_exit 'AMMUN5' {state} False
switch_entry_exit 'BARBERS' {state} False
switch_entry_exit 'BARBER2' {state} False
switch_entry_exit 'BARBER3' {state} False
switch_entry_exit 'FDPIZA' {state} False
switch_entry_exit 'FDCHICK' {state} False
switch_entry_exit 'FDBURG' {state} False
switch_entry_exit 'TATTOO' {state} False
switch_entry_exit 'CSCHP' {state} False
switch_entry_exit 'CSSPRT' {state} False
switch_entry_exit 'LACS1' {state} False
switch_entry_exit 'CLOTHGP' {state} False
switch_entry_exit 'CSDESGN' {state} False
switch_entry_exit 'CSEXL' {state} False
switch_entry_exit 'GYM1' {state} False
switch_entry_exit 'GYM2' {state} False
switch_entry_exit 'GYM3' {state} False
switch_entry_exit 'PDOMES' {state} False
switch_entry_exit 'PDOMES2' {state} False
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
switch_entry_exit 'GANG' {state} False
switch_entry_exit 'RCPLAY' {state} False
switch_entry_exit 'PAPER' {state} False
switch_entry_exit 'ABATOIR' {state} False
switch_entry_exit 'LACRAK' {state} False
deactivate_garage 'BODLAWN'
deactivate_garage 'MODLAST'
deactivate_garage 'MDSSFSE'
deactivate_garage 'MDS1SFS'
deactivate_garage 'VECMOD'
deactivate_garage 'DHANGAR'
clear_prints 
set_char_health $scplayer {health} 100
add_score $player1 {money} 350
set_player_never_gets_tired $player1 {state} False
remove_all_char_weapons $scplayer
$flag_intro_mission_counter = 0
$flag_sweet_mission_counter = 0
$flag_crash_mission_counter = 0
$flag_smoke_mission_counter = 0
$flag_strap_mission_counter = 0
$flag_ryder_mission_counter = 0
$flag_cesar_mission_counter = 0
$flag_la1fin1_mission_counter = 0
$drive_by_help = 0
$bike_help = 0
$wanted_star_help = 0
$car_help_played = 0
$print_first_help = 0
TIMERA = 0

:INTRO_9205
if 
  TIMERA <= 1000
goto_if_false @INTRO_9369
wait 0
gosub @INTRO_10144
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9306
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9306
goto @INTRO_9992

:INTRO_9306
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9362
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9992

:INTRO_9362
goto @INTRO_9205

:INTRO_9369
do_fade 1500 {direction} Fade.In

:INTRO_9376
if 
  get_fading_status 
goto_if_false @INTRO_9538
wait 0
clear_prints 
clear_help 
gosub @INTRO_10144
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9475
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9475
goto @INTRO_9992

:INTRO_9475
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9531
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9992

:INTRO_9531
goto @INTRO_9376

:INTRO_9538
print_help 'HELPMO'
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9587
$intro_bmx_blip = add_blip_for_car $intro_bmx
set_blip_as_friendly $intro_bmx_blip {state} True
change_blip_display $intro_bmx_blip {display} BlipDisplay.MarkerOnly

:INTRO_9587
TIMERA = 0

:INTRO_9594
if 
  TIMERA <= 5000
goto_if_false @INTRO_9763
wait 0
gosub @INTRO_10144
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9695
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9695
goto @INTRO_9992

:INTRO_9695
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9756
remove_blip $intro_bmx_blip
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9992

:INTRO_9756
goto @INTRO_9594

:INTRO_9763
print_now 'INTROB' {time} 4000 {flag} 1
TIMERA = 0

:INTRO_9786
if 
  TIMERA <= 5000
goto_if_false @INTRO_9823
wait 0
gosub @INTRO_10144
goto @INTRO_9786

:INTRO_9823
if 
  not is_char_in_car $scplayer {vehicle} $intro_bmx
goto_if_false @INTRO_9992
wait 0
gosub @INTRO_10144
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_9924
if 
  not locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO_9924
goto @INTRO_9992

:INTRO_9924
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO_9985
remove_blip $intro_bmx_blip
clear_this_print 'INTRO2E'
clear_this_print 'HELP21'
clear_this_print 'HELP26'
goto @INTRO_9992

:INTRO_9985
goto @INTRO_9823

:INTRO_9992
return 

:INTRO_9994
return 

:INTRO_9996
start_new_script @A_TERM 
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
start_new_script @INT 
start_new_script @MOB_LA1 
terminate_all_scripts_with_this_name 'MOB_RAN'
start_new_script @MOB_RAN 
terminate_all_scripts_with_this_name 'INTROST'
start_new_script @INTROST 
remove_blip $intro_contact_blip
$intro_contact_blip = add_sprite_blip_for_contact_point $introX {y} $introY {z} $introZ {sprite} $intro_blip_icon
mark_model_as_no_longer_needed 481
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_10126
mark_car_as_no_longer_needed $intro_bmx
remove_blip $intro_bmx_blip

:INTRO_10126
$onmission = 0
$game_starts_from_scratch = 1
mission_has_finished 
return 

:INTRO_10144
if 
  not is_car_dead $intro_bmx
goto_if_false @INTRO_10280
if 
  34@ == 0
goto_if_false @INTRO_10280
if 
  locate_char_any_means_3d $scplayer {x} 2246.5081 {y} -1263.087 {z} 22.9531 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @INTRO_10280
if 
  $controlmode == 2
goto_if_false @INTRO_10262
print_help 'HELP26'
goto @INTRO_10273

:INTRO_10262
print_help 'HELP21'

:INTRO_10273
34@ = 1

:INTRO_10280
return 

:INTRO_10282
switch_start 178@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @INTRO_10680 {caseNum1} 0 {caseLabel1} @INTRO_10345 {caseNum2} 1 {caseLabel2} @INTRO_10352 {caseNum3} 2 {caseLabel3} @INTRO_10377 {caseNum4} -1 {caseLabel4} @INTRO_10680 {caseNum5} -1 {caseLabel5} @INTRO_10680 {caseNum6} -1 {caseLabel6} @INTRO_10680 {caseNum7} -1 {caseLabel7} @INTRO_10680

:INTRO_10345
179@ += 10

:INTRO_10352
if 
  178@ == 1
goto_if_false @INTRO_10377
179@ -= 10

:INTRO_10377
if 
  181@ == 0
goto_if_false @INTRO_10615
set_text_scale 0.8 {heightScale} 1.8
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 255
display_text 320.0 {offsetTop} 180.0 {key} 'LOAD_01'
set_text_scale 0.8 {heightScale} 1.8
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 255
display_text 320.0 {offsetTop} 200.0 {key} 'LOAD_03'
set_text_scale 0.8 {heightScale} 1.8
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 255
display_text 320.0 {offsetTop} 220.0 {key} 'LOAD_04'
goto @INTRO_10680

:INTRO_10615
set_text_scale 0.6 {heightScale} 1.6
set_text_colour 255 {green} 255 {blue} 255 {alpha} 179@
set_text_centre True
set_text_wrapx 600.0
set_text_dropshadow 1 {red} 0 {green} 0 {blue} 0 {alpha} 179@
display_text 320.0 {offsetTop} 200.0 {key} 182@s

:INTRO_10680
return 

//-------------Mission 3---------------
// Originally: Video Game: They Crawled From Uranus

:NONE
gosub @NONE_16
gosub @NONE_12441
terminate_this_script 

:NONE_16
$onmission = 1
register_mission_given 
script_name 'NONE'
wait 0
load_mission_text 'DUAL'
shut_all_chars_up True
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
use_text_commands True
remove_texture_dictionary 
load_texture_dictionary 'LD_NONE'
load_sprite 1 {spriteName} "SHIP"
load_sprite 2 {spriteName} "TVCORN"
load_sprite 3 {spriteName} "SHOOT"
load_sprite 4 {spriteName} "LIGHT"
load_sprite 5 {spriteName} "EXPLM01"
load_sprite 6 {spriteName} "EXPLM02"
load_sprite 7 {spriteName} "EXPLM03"
load_sprite 8 {spriteName} "EXPLM04"
load_sprite 9 {spriteName} "EXPLM05"
load_sprite 10 {spriteName} "EXPLM06"
load_sprite 11 {spriteName} "EXPLM07"
load_sprite 12 {spriteName} "EXPLM08"
load_sprite 13 {spriteName} "EXPLM09"
load_sprite 14 {spriteName} "EXPLM10"
load_sprite 15 {spriteName} "EXPLM11"
load_sprite 16 {spriteName} "EXPLM12"
load_sprite 17 {spriteName} "FORCE"
load_sprite 18 {spriteName} "WARP"
load_sprite 19 {spriteName} "THRUST"
load_sprite 20 {spriteName} "SHPNORM"
load_sprite 21 {spriteName} "SHPWARP"
load_sprite 22 {spriteName} "SHIP2"
load_sprite 23 {spriteName} "SHIP3"
load_sprite 24 {spriteName} "TITLE"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1829

:NONE_403
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @NONE_429
wait 0
goto @NONE_403

:NONE_429
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestTrackStart
34@ = 3.0
35@ = 2.0
36@ = 1.0
37@ = 0.0
38@ = -1.0
39@ = -2.0
40@ = -3.0
41@ = -2.0
42@ = -1.0
43@ = -4.0
44@ = 4.0
45@ = 3.0
46@ = 2.0
47@ = -2.0
48@ = -4.0
49@ = -6.0
50@ = -3.0
51@ = -2.0
52@ = -7.0
53@ = -6.0
54@ = 300
55@ = 200
56@ = 400
57@ = 600
58@ = 400
59@ = 500
60@ = 200
61@ = 300
62@ = 400
63@ = 6000
64@ = 2.0
65@ = 3.0
66@ = 1.0
67@ = 0.0
68@ = 1.0
69@ = 3.0
70@ = -3.0
71@ = -3.0
72@ = 2.0
73@ = -5.0
74@ = 0.0
75@ = 3.0
76@ = 4.0
77@ = 5.0
78@ = 12.0
79@ = 6.0
80@ = 3.0
81@ = 0.0
82@ = -4.0
83@ = -6.0
84@ = 100
85@ = 400
86@ = 300
87@ = 500
88@ = 400
89@ = 200
90@ = 400
91@ = 400
92@ = 400
93@ = 6000
94@ = 5.0
95@ = -3.0
96@ = 6.0
97@ = -6.0
98@ = 3.0
99@ = -3.0
100@ = 3.0
101@ = -3.0
102@ = 3.0
103@ = -6.0
104@ = 4.0
105@ = 4.0
106@ = 4.0
107@ = 4.0
108@ = 4.0
109@ = 4.0
110@ = 4.0
111@ = 4.0
112@ = 4.0
113@ = 4.0
114@ = 300
115@ = 300
116@ = 300
117@ = 300
118@ = 300
119@ = 300
120@ = 300
121@ = 300
122@ = 300
123@ = 300
124@ = 0.0
132@ = 5.0
125@ = 5.0
133@ = 5.0
126@ = 5.0
134@ = 0.0
127@ = -5.0
135@ = 0.0
128@ = -5.0
136@ = -5.0
129@ = 0.0
137@ = -5.0
130@ = 5.0
138@ = -5.0
131@ = -5.0
139@ = 5.0
set_lvar_text_label 140@s = 'DUAL_0'
set_lvar_text_label 142@s = 'DUAL_1'
set_lvar_text_label 144@s = 'DUAL_2'
set_lvar_text_label 146@s = 'DUAL_3'
set_lvar_text_label 148@s = 'DUAL_4'
set_lvar_text_label 150@s = 'DUAL_5'
set_lvar_text_label 152@s = 'DUAL_6'
set_lvar_text_label 154@s = 'DUAL_7'
set_lvar_text_label 156@s = 'DUAL_8'
set_lvar_text_label 158@s = 'DUAL_9'
set_lvar_text_label 160@s = 'DUAL_AA'
set_lvar_text_label 162@s = 'DUAL_B'
set_lvar_text_label 164@s = 'DUAL_C'
set_lvar_text_label 166@s = 'DUAL_D'
set_lvar_text_label 168@s = 'DUAL_E'
set_lvar_text_label 170@s = 'DUAL_F'
set_lvar_text_label 172@s = 'DUAL_G'
set_lvar_text_label 174@s = 'DUAL_H'
set_lvar_text_label 176@s = 'DUAL_I'
set_lvar_text_label 178@s = 'DUAL_J'
set_lvar_text_label 180@s = 'DUAL_K'
set_lvar_text_label 182@s = 'DUAL_L'
set_lvar_text_label 184@s = 'DUAL_M'
set_lvar_text_label 186@s = 'DUAL_N'
set_lvar_text_label 188@s = 'DUAL_O'
set_lvar_text_label 190@s = 'DUAL_P'
set_lvar_text_label 192@s = 'DUAL_Q'
set_lvar_text_label 194@s = 'DUAL_R'
set_lvar_text_label 196@s = 'DUAL_S'
set_lvar_text_label 198@s = 'DUAL_T'
set_lvar_text_label 200@s = 'DUAL_U'
set_lvar_text_label 202@s = 'DUAL_V'
set_lvar_text_label 204@s = 'DUAL_W'
set_lvar_text_label 206@s = 'DUAL_X'
set_lvar_text_label 208@s = 'DUAL_Y'
set_lvar_text_label 210@s = 'DUAL_Z'
set_lvar_text_label 212@s = 'DUAL_FS'
if 
  $played_none_before == 0
goto_if_false @NONE_2319
$none_hiscore[0] = 250000
$none_hiscore[1] = 100000
$none_hiscore[2] = 75000
$none_hiscore[3] = 50000
$none_hiscore[4] = 25000
$none_hiscore[5] = 10000
$none_hiscore[6] = 7500
$none_hiscore[7] = 5000
$none_hiscore[8] = 2500
$none_hiscore[9] = 1000
set_var_text_label s$none_letter1[0] = 160@s
set_var_text_label s$none_letter2[0] = 166@s
set_var_text_label s$none_letter3[0] = 210@s
set_var_text_label s$none_letter1[1] = 164@s
set_var_text_label s$none_letter2[1] = 160@s
set_var_text_label s$none_letter3[1] = 186@s
set_var_text_label s$none_letter1[2] = 176@s
set_var_text_label s$none_letter2[2] = 184@s
set_var_text_label s$none_letter3[2] = 208@s
set_var_text_label s$none_letter1[3] = 204@s
set_var_text_label s$none_letter2[3] = 176@s
set_var_text_label s$none_letter3[3] = 182@s
set_var_text_label s$none_letter1[4] = 166@s
set_var_text_label s$none_letter2[4] = 162@s
set_var_text_label s$none_letter3[4] = 190@s
set_var_text_label s$none_letter1[5] = 166@s
set_var_text_label s$none_letter2[5] = 160@s
set_var_text_label s$none_letter3[5] = 202@s
set_var_text_label s$none_letter1[6] = 166@s
set_var_text_label s$none_letter2[6] = 188@s
set_var_text_label s$none_letter3[6] = 166@s
set_var_text_label s$none_letter1[7] = 186@s
set_var_text_label s$none_letter2[7] = 170@s
set_var_text_label s$none_letter3[7] = 212@s
set_var_text_label s$none_letter1[8] = 180@s
set_var_text_label s$none_letter2[8] = 184@s
set_var_text_label s$none_letter3[8] = 162@s
set_var_text_label s$none_letter1[9] = 196@s
set_var_text_label s$none_letter2[9] = 178@s
set_var_text_label s$none_letter3[9] = 182@s
$played_none_before = 1

:NONE_2319
214@ = 336.4137
215@ = 58.2432
216@ = 201.225
217@ = 88.9168
218@ = 29.78
219@ = 260.0
220@ = 28.5713
221@ = 0
222@ = 0
223@ = 0
224@ = 0
do_fade 0 {direction} Fade.In
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
225@ = 0
226@ = -1
227@ = 0

:NONE_2475
generate_random_float_in_range 0.0 {max} 300.0 {var_result} 290@(227@,60f)
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)
227@ += 1
  227@ >= 60
goto_if_false @NONE_2475
350@ = 8.0

:NONE_2544
wait 0
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
$game_timer = get_game_timer 
392@ = 0
422@, 423@, 424@, 424@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 423@
goto_if_false @NONE_2760
if 
  221@ == 0
goto_if_false @NONE_2746
if 
  225@ == 2
goto_if_false @NONE_2701
225@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight
goto @NONE_2746

:NONE_2701
if 
  225@ == 1
goto_if_false @NONE_2746
225@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight

:NONE_2746
221@ = 1
goto @NONE_2927

:NONE_2760
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  423@ > 100
goto_if_false @NONE_2913
if 
  222@ == 0
goto_if_false @NONE_2899
if 
  225@ == 0
goto_if_false @NONE_2854
225@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight
goto @NONE_2899

:NONE_2854
if 
  225@ == 1
goto_if_false @NONE_2899
225@ = 2
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestHighlight

:NONE_2899
222@ = 1
goto @NONE_2920

:NONE_2913
222@ = 0

:NONE_2920
221@ = 0

:NONE_2927
gosub @NONE_12369
if 
  225@ == 0
goto_if_false @NONE_2971
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
goto @NONE_2985

:NONE_2971
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:NONE_2985
set_text_scale 1.0 {heightScale} 3.0
display_text 320.0 {offsetTop} 250.0 {key} 'SPAC_04'
gosub @NONE_12369
if 
  225@ == 1
goto_if_false @NONE_3062
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
goto @NONE_3076

:NONE_3062
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:NONE_3076
set_text_scale 1.0 {heightScale} 3.0
display_text 320.0 {offsetTop} 300.0 {key} 'SPAC_06'
gosub @NONE_12369
if 
  225@ == 2
goto_if_false @NONE_3153
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
goto @NONE_3167

:NONE_3153
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:NONE_3167
set_text_scale 1.0 {heightScale} 3.0
display_text 320.0 {offsetTop} 350.0 {key} 'SPAC_05'
227@ = 0

:NONE_3207
set_lvar_float_to_lvar_float 425@ = 350@
425@ /= 2.0
add_timed_float_lvar_to_float_lvar 290@(227@,60f) +=@ 425@
$x = cos 230@(227@,60f)
$y = sin 230@(227@,60f)
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
draw_rect $x {y} $y {width} 1.0 {height} 1.0 {r} 255 {g} 255 {b} 255 {a} 255
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_3419
290@(227@,60f) = 10.0
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)

:NONE_3419
227@ += 1
  227@ >= 60
goto_if_false @NONE_3207
draw_sprite 24 {offsetLeft} 320.0 {offsetTop} 140.0 {width} 256.0 {height} 128.0 {r} 220 {g} 220 {b} 220 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @NONE_3785
if 
  223@ == 0
goto_if_false @NONE_3778
223@ += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestSelect
if 
  225@ == 0
goto_if_false @NONE_3707
goto @NONE_3799

:NONE_3707
if 
  225@ == 1
goto_if_false @NONE_3732
goto @NONE_10411

:NONE_3732
if 
  225@ == 2
goto_if_false @NONE_3778
remove_texture_dictionary 
set_player_control $player1 {state} True
do_fade 0 {direction} Fade.Out
wait 0
do_fade 500 {direction} Fade.In
return 

:NONE_3778
goto @NONE_3792

:NONE_3785
223@ = 0

:NONE_3792
goto @NONE_2544

:NONE_3799
351@ = 90.0
227@ = 0

:NONE_3816
352@(227@,10i) = 0
362@(227@,10i) = 0
372@(227@,10i) = 0
382@(227@,10i) = 0
227@ += 1
  227@ >= 10
goto_if_false @NONE_3816
392@ = 0
393@ = 0
394@ = 0
227@ = 0

:NONE_3909
395@(227@,8i) = 0
227@ += 1
  227@ >= 8
goto_if_false @NONE_3909
403@ = 0
404@ = 255
405@ = -50
406@ = 0
407@ = 100
set_lvar_int_to_lvar_int 408@ = 407@
409@ = 0
410@ = 0
411@ = 100
412@ = 3
413@ = 0
414@ = 0
415@ = 0
416@ = 0
417@ = 0
418@ = 0
419@ = 1
420@ = 0
421@ = 190.0
350@ = 8.0

:NONE_4089
wait 0
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
$game_timer = get_game_timer 
227@ = 0

:NONE_4136
set_lvar_float_to_lvar_float 425@ = 350@
425@ /= 2.0
add_timed_float_lvar_to_float_lvar 290@(227@,60f) +=@ 425@
$x = cos 230@(227@,60f)
$y = sin 230@(227@,60f)
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
draw_rect $x {y} $y {width} 1.0 {height} 1.0 {r} 255 {g} 255 {b} 255 {a} 255
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_4348
290@(227@,60f) = 10.0
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)

:NONE_4348
227@ += 1
  227@ >= 60
goto_if_false @NONE_4136
if 
  394@ == 0
goto_if_false @NONE_5395
if 
  2 > 418@
goto_if_false @NONE_4559
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @NONE_4447
add_timed_val_to_float_lvar 351@ +=@ -1.325
351@ = limit_angle 351@
goto @NONE_4559

:NONE_4447
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @NONE_4489
add_timed_val_to_float_lvar 351@ +=@ 1.325
351@ = limit_angle 351@
goto @NONE_4559

:NONE_4489
422@, 423@, 424@, 424@ = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_lvar_int 425@ =# 422@
425@ *= -1.0
425@ /= 25.0
425@ /= 2.0
add_timed_float_lvar_to_float_lvar 351@ +=@ 425@
351@ = limit_angle 351@

:NONE_4559
$x = cos 351@
$y = sin 351@
set_lvar_float_to_var_float 426@ = $y
426@ *= 22.0
if 
  0.0 > 426@
goto_if_false @NONE_4624
426@ *= -1.0

:NONE_4624
426@ += 26.0
set_lvar_float_to_var_float 427@ = $x
427@ *= 22.0
if 
  0.0 > 427@
goto_if_false @NONE_4683
427@ *= -1.0

:NONE_4683
427@ += 26.0
if 
  418@ == 2
goto_if_false @NONE_4766
sub_timed_val_from_float_lvar 421@ -=@ 1.0
350@ = 16.0
if 
  20.0 > 421@
goto_if_false @NONE_4759
418@ = 3

:NONE_4759
goto @NONE_4873

:NONE_4766
if 
  418@ == 3
goto_if_false @NONE_4853
add_timed_val_to_float_lvar 421@ +=@ 1.0
if 
  421@ > 190.0
goto_if_false @NONE_4846
421@ = 190.0
416@ = 0
419@ += 1
418@ = 0

:NONE_4846
goto @NONE_4873

:NONE_4853
350@ = 8.0
421@ = 190.0

:NONE_4873
mult_float_var_by_float_lvar $x *= 421@
mult_float_var_by_float_lvar $y *= 421@
set_lvar_float_to_var_float 428@ = $x
428@ += 320.0
set_lvar_float_to_var_float 429@ = $y
429@ += 224.0
if 
  is_int_lvar_greater_than_int_var 403@ > $game_timer
goto_if_false @NONE_5025
add_int_lvar_to_int_lvar 404@ += 405@
if 
  404@ > 255
goto_if_false @NONE_4986
404@ = 255
405@ = -50

:NONE_4986
if 
  0 > 404@
goto_if_false @NONE_5018
404@ = 0
405@ = 50

:NONE_5018
goto @NONE_5033

:NONE_5025
404@ = 255

:NONE_5033
set_lvar_float_to_lvar_float 431@ = 421@
431@ /= 5.9375
set_lvar_float_to_lvar_float 430@ = 431@
430@ *= 2.0
set_var_float_to_lvar_float $heading = 351@
$heading += 90.0
if 
  2 > 418@
goto_if_false @NONE_5143
draw_sprite_with_rotation 20 {offsetLeft} 428@ {offsetTop} 429@ {width} 430@ {height} 431@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 404@
goto @NONE_5174

:NONE_5143
draw_sprite_with_rotation 21 {offsetLeft} 428@ {offsetTop} 429@ {width} 430@ {height} 431@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 404@

:NONE_5174
if 
  2 > 418@
goto_if_false @NONE_5388
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @NONE_5381
if 
  224@ == 0
goto_if_false @NONE_5374
227@ = 0

:NONE_5234
if 
  352@(227@,10i) == 0
goto_if_false @NONE_5326
set_lvar_float_to_lvar_float 432@(227@,10f) = 351@
442@(227@,10f) = 190.0
352@(227@,10i) = 1
452@(227@,10f) = -12.0
set_lvar_float_to_var_float 462@(227@,10f) = $heading
227@ = 9

:NONE_5326
227@ += 1
  227@ >= 10
goto_if_false @NONE_5234
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPlayerShoot
224@ = 1

:NONE_5374
goto @NONE_5388

:NONE_5381
224@ = 0

:NONE_5388
goto @NONE_6019

:NONE_5395
if 
  394@ == 1
goto_if_false @NONE_5503
227@ = 0

:NONE_5420
395@(227@,8i) = 1
set_lvar_float_to_lvar_float 472@(227@,8f) = 428@
set_lvar_float_to_lvar_float 480@(227@,8f) = 429@
227@ += 1
  227@ >= 8
goto_if_false @NONE_5420
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestExplosion
394@ += 1

:NONE_5503
if 
  394@ == 2
goto_if_false @NONE_5940
227@ = 0

:NONE_5528
if 
  395@(227@,8i) > 0
goto_if_false @NONE_5711
if 
  395@(227@,8i) == 1
goto_if_false @NONE_5583
395@(227@,8i) = 5

:NONE_5583
add_float_lvar_to_float_lvar 472@(227@,8f) += 124@(227@,8f)
add_float_lvar_to_float_lvar 480@(227@,8f) += 132@(227@,8f)
395@(227@,8i) += 1
if 
  395@(227@,8i) > 16
goto_if_false @NONE_5666
395@(227@,8i) = 0
goto @NONE_5711

:NONE_5666
draw_sprite 395@(227@,8i) {offsetLeft} 472@(227@,8f) {offsetTop} 480@(227@,8f) {width} 32.0 {height} 32.0 {r} 220 {g} 220 {b} 220 {a} 255

:NONE_5711
227@ += 1
  227@ >= 8
goto_if_false @NONE_5528
424@ = 0
227@ = 0

:NONE_5746
add_int_lvar_to_int_lvar 424@ += 395@(227@,8i)
227@ += 1
  227@ >= 8
goto_if_false @NONE_5746
if 
  424@ == 0
goto_if_false @NONE_5940
351@ = 90.0
set_lvar_int_to_var_int 403@ = $game_timer
403@ += 2500
409@ = 0
410@ = 0
411@ = 100
408@ = 100
412@ -= 1
if 
  412@ > 0
goto_if_false @NONE_5897
394@ = 0
407@ = 100
goto @NONE_5940

:NONE_5897
set_lvar_int_to_var_int 488@ = $game_timer
488@ += 3000
394@ = 3
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestGameOver

:NONE_5940
if 
  394@ == 3
goto_if_false @NONE_6019
if 
  is_int_lvar_greater_than_int_var 488@ > $game_timer
goto_if_false @NONE_6012
gosub @NONE_12369
display_text 320.0 {offsetTop} 100.0 {key} 'SPAC_01'
goto @NONE_6019

:NONE_6012
406@ = 1

:NONE_6019
227@ = 0

:NONE_6026
if 
  352@(227@,10i) == 1
goto_if_false @NONE_6264
set_lvar_float_to_lvar_float 425@ = 452@(227@,10f)
425@ /= 2.0
add_timed_float_lvar_to_float_lvar 442@(227@,10f) +=@ 425@
$x = cos 432@(227@,10f)
$y = sin 432@(227@,10f)
mult_float_var_by_float_lvar $x *= 442@(227@,10f)
mult_float_var_by_float_lvar $y *= 442@(227@,10f)
set_lvar_float_to_var_float 489@(227@,10f) = $x
489@(227@,10f) += 320.0
set_lvar_float_to_var_float 499@(227@,10f) = $y
499@(227@,10f) += 224.0
draw_sprite_with_rotation 3 {offsetLeft} 489@(227@,10f) {offsetTop} 499@(227@,10f) {width} 8.0 {height} 8.0 {angle} 462@(227@,10f) {red} 52 {green} 183 {blue} 195 {alpha} 255
if 
  10.0 > 442@(227@,10f)
goto_if_false @NONE_6264
352@(227@,10i) = 0

:NONE_6264
227@ += 1
  227@ >= 10
goto_if_false @NONE_6026
if 
  418@ == 0
goto_if_false @NONE_6383
if 
  is_int_var_greater_than_int_lvar $game_timer > 509@
goto_if_false @NONE_6376
510@ = generate_random_float_in_range 0.0 {max} 360.0
511@ = generate_random_int_in_range 0 {max} 3
413@ = 0
512@ = 10
set_lvar_int_to_var_int 509@ = $game_timer
509@ += 8000

:NONE_6376
goto @NONE_6399

:NONE_6383
set_lvar_int_to_var_int 509@ = $game_timer
509@ += 1000

:NONE_6399
if 
  512@ > 0
goto_if_false @NONE_6644
if 
  is_int_var_greater_than_int_lvar $game_timer > 393@
goto_if_false @NONE_6644
227@ = 0

:NONE_6443
if 
  372@(227@,10i) == 0
goto_if_false @NONE_6623
set_lvar_float_to_lvar_float 513@(227@,10f) = 510@
523@(227@,10f) = 5.0
533@(227@,10f) = 3.0
543@(227@,10f) = 10.0
553@(227@,10i) = 0
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
563@(227@,10i) += 500
372@(227@,10i) = 1
593@(227@,10f) = 320.0
603@(227@,10f) = 224.0
set_lvar_int_to_var_int 393@ = $game_timer
393@ += 200
512@ -= 1
227@ = 9

:NONE_6623
227@ += 1
  227@ >= 10
goto_if_false @NONE_6443

:NONE_6644
420@ = 0
227@ = 0

:NONE_6658
if 
  372@(227@,10i) == 1
goto_if_false @NONE_8181
if 
  10 > 553@(227@,10i)
goto_if_false @NONE_6982
if 
  is_int_var_greater_than_int_lvar $game_timer > 563@(227@,10i)
goto_if_false @NONE_6982
set_lvar_int_to_lvar_int 424@ = 553@(227@,10i)
if 
  511@ == 0
goto_if_false @NONE_6815
set_lvar_float_to_lvar_float 533@(227@,10f) = 34@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 44@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 54@(424@,10i)

:NONE_6815
if 
  511@ == 1
goto_if_false @NONE_6893
set_lvar_float_to_lvar_float 533@(227@,10f) = 64@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 74@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 84@(424@,10i)

:NONE_6893
if 
  511@ == 2
goto_if_false @NONE_6971
set_lvar_float_to_lvar_float 533@(227@,10f) = 94@(424@,10f)
set_lvar_float_to_lvar_float 523@(227@,10f) = 104@(424@,10f)
set_lvar_int_to_var_int 563@(227@,10i) = $game_timer
add_int_lvar_to_int_lvar 563@(227@,10i) += 114@(424@,10i)

:NONE_6971
553@(227@,10i) += 1

:NONE_6982
420@ = 1
set_lvar_float_to_lvar_float 425@ = 533@(227@,10f)
425@ /= 2.0
add_timed_float_lvar_to_float_lvar 543@(227@,10f) +=@ 425@
set_lvar_float_to_lvar_float 425@ = 523@(227@,10f)
425@ /= 2.0
add_timed_float_lvar_to_float_lvar 513@(227@,10f) +=@ 425@
limit_angle 513@(227@,10f) {var_result} 513@(227@,10f)
$x = cos 513@(227@,10f)
$y = sin 513@(227@,10f)
mult_float_var_by_float_lvar $x *= 543@(227@,10f)
mult_float_var_by_float_lvar $y *= 543@(227@,10f)
set_lvar_float_to_lvar_float 593@(227@,10f) = 573@(227@,10f)
set_lvar_float_to_lvar_float 603@(227@,10f) = 583@(227@,10f)
set_lvar_float_to_var_float 573@(227@,10f) = $x
573@(227@,10f) += 320.0
set_lvar_float_to_var_float 583@(227@,10f) = $y
583@(227@,10f) += 224.0
set_lvar_float_to_lvar_float 613@ = 543@(227@,10f)
613@ /= 5.0
set_var_float_to_lvar_float $x = 573@(227@,10f)
sub_float_lvar_from_float_var $x -= 593@(227@,10f)
set_var_float_to_lvar_float $y = 583@(227@,10f)
sub_float_lvar_from_float_var $y -= 603@(227@,10f)
$heading = get_heading_from_vector_2d $x {y} $y
if 
  511@ == 0
goto_if_false @NONE_7350
draw_sprite_with_rotation 1 {offsetLeft} 573@(227@,10f) {offsetTop} 583@(227@,10f) {width} 613@ {height} 613@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 255
goto @NONE_7453

:NONE_7350
if 
  511@ == 1
goto_if_false @NONE_7414
draw_sprite_with_rotation 22 {offsetLeft} 573@(227@,10f) {offsetTop} 583@(227@,10f) {width} 613@ {height} 613@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 255
goto @NONE_7453

:NONE_7414
draw_sprite_with_rotation 23 {offsetLeft} 573@(227@,10f) {offsetTop} 583@(227@,10f) {width} 613@ {height} 613@ {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 255

:NONE_7453
set_var_float_to_lvar_float $x = 351@
$x += 10.0
set_var_float_to_lvar_float $y = 351@
$y -= 10.0
if and
  is_float_var_greater_than_float_lvar $x > 513@(227@,10f)
  is_float_lvar_greater_than_float_var 513@(227@,10f) > $y
goto_if_false @NONE_7726
424@ = 18
sub_int_lvar_from_int_lvar 424@ -= 419@
if 
  4 > 424@
goto_if_false @NONE_7564
424@ = 4

:NONE_7564
424@ = generate_random_int_in_range 0 {max} 424@
if 
  424@ == 0
goto_if_false @NONE_7726
228@ = 0

:NONE_7599
if 
  382@(228@,10i) == 0
goto_if_false @NONE_7705
set_lvar_float_to_lvar_float 614@(228@,10f) = 513@(227@,10f)
set_lvar_float_to_lvar_float 624@(228@,10f) = 543@(227@,10f)
382@(228@,10i) = 1
634@(228@,10f) = 6.0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestEnemyShoot
228@ = 9

:NONE_7705
228@ += 1
  228@ >= 10
goto_if_false @NONE_7599

:NONE_7726
if or
  543@(227@,10f) > 320.0
  10.0 > 543@(227@,10f)
goto_if_false @NONE_7776
372@(227@,10i) = 0

:NONE_7776
228@ = 0

:NONE_7783
if 
  352@(228@,10i) == 1
goto_if_false @NONE_8160
if 
  do_2d_rectangles_collide 489@(228@,10f) {rectangle1PositionY} 499@(228@,10f) {rectangle1SizeX} 12.0 {rectangle1SizeY} 12.0 {rectangle2PositionX} 573@(227@,10f) {rectangle2PositionY} 583@(227@,10f) {rectangle2SizeX} 613@ {rectangle2SizeY} 613@
goto_if_false @NONE_8160
372@(227@,10i) = 0
352@(228@,10i) = 0
413@ += 1
if 
  413@ == 10
goto_if_false @NONE_8010
set_lvar_float_to_lvar_float 644@ = 573@(227@,10f)
set_lvar_float_to_lvar_float 645@ = 583@(227@,10f)
set_lvar_int_to_var_int 415@ = $game_timer
415@ += 1500
set_lvar_float_to_lvar_float 646@ = 513@(227@,10f)
set_lvar_float_to_lvar_float 647@ = 543@(227@,10f)
417@ += 1
414@ = 100
mult_int_lvar_by_int_lvar 414@ *= 419@
add_int_lvar_to_int_lvar 392@ += 414@
goto @NONE_8033

:NONE_8010
424@ = 10
mult_int_lvar_by_int_lvar 424@ *= 419@
add_int_lvar_to_int_lvar 392@ += 424@

:NONE_8033
229@ = 0

:NONE_8040
if 
  362@(229@,10i) == 0
goto_if_false @NONE_8132
set_lvar_float_to_lvar_float 648@(229@,10f) = 573@(227@,10f)
set_lvar_float_to_lvar_float 658@(229@,10f) = 583@(227@,10f)
362@(229@,10i) += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestExplosion
229@ = 9

:NONE_8132
229@ += 1
  229@ >= 10
goto_if_false @NONE_8040
228@ = 9

:NONE_8160
228@ += 1
  228@ >= 10
goto_if_false @NONE_7783

:NONE_8181
227@ += 1
  227@ >= 10
goto_if_false @NONE_6658
if 
  418@ == 1
goto_if_false @NONE_8265
if 
  420@ == 0
goto_if_false @NONE_8265
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestWarp
418@ = 2

:NONE_8265
227@ = 0

:NONE_8272
if 
  382@(227@,10i) == 1
goto_if_false @NONE_8758
set_lvar_float_to_lvar_float 425@ = 634@(227@,10f)
425@ /= 2.0
add_timed_float_lvar_to_float_lvar 624@(227@,10f) +=@ 425@
$x = cos 614@(227@,10f)
$y = sin 614@(227@,10f)
mult_float_var_by_float_lvar $x *= 624@(227@,10f)
mult_float_var_by_float_lvar $y *= 624@(227@,10f)
set_lvar_float_to_var_float 668@(227@,10f) = $x
668@(227@,10f) += 320.0
set_lvar_float_to_var_float 678@(227@,10f) = $y
678@(227@,10f) += 224.0
draw_sprite 4 {offsetLeft} 668@(227@,10f) {offsetTop} 678@(227@,10f) {width} 8.0 {height} 8.0 {r} 244 {g} 0 {b} 0 {a} 255
if 
  not do_2d_rectangles_collide 668@(227@,10f) {rectangle1PositionY} 678@(227@,10f) {rectangle1SizeX} 8.0 {rectangle1SizeY} 8.0 {rectangle2PositionX} 320.0 {rectangle2PositionY} 224.0 {rectangle2SizeX} 640.0 {rectangle2SizeY} 448.0
goto_if_false @NONE_8534
382@(227@,10i) = 0

:NONE_8534
if 
  394@ == 0
goto_if_false @NONE_8758
if 
  do_2d_rectangles_collide 668@(227@,10f) {rectangle1PositionY} 678@(227@,10f) {rectangle1SizeX} 8.0 {rectangle1SizeY} 8.0 {rectangle2PositionX} 428@ {rectangle2PositionY} 429@ {rectangle2SizeX} 426@ {rectangle2SizeY} 427@
goto_if_false @NONE_8758
if 
  is_int_var_greater_than_int_lvar $game_timer > 403@
goto_if_false @NONE_8627
407@ -= 20

:NONE_8627
382@(227@,10i) = 0
229@ = 0

:NONE_8645
if 
  362@(229@,10i) == 0
goto_if_false @NONE_8737
set_lvar_float_to_lvar_float 648@(229@,10f) = 668@(227@,10f)
set_lvar_float_to_lvar_float 658@(229@,10f) = 678@(227@,10f)
362@(229@,10i) += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestExplosion
229@ = 9

:NONE_8737
229@ += 1
  229@ >= 10
goto_if_false @NONE_8645

:NONE_8758
227@ += 1
  227@ >= 10
goto_if_false @NONE_8272
if 
  394@ == 0
goto_if_false @NONE_9001
if 
  409@ > 0
goto_if_false @NONE_9001
if 
  409@ > 1
goto_if_false @NONE_8847
411@ = 100
409@ -= 1

:NONE_8847
add_int_lvar_to_int_lvar 410@ += 411@
if 
  410@ > 255
goto_if_false @NONE_8889
410@ = 255
411@ = -20

:NONE_8889
if 
  0 > 410@
goto_if_false @NONE_8928
410@ = 0
411@ = 100
409@ = 0

:NONE_8928
set_var_float_to_lvar_float $heading = 351@
$heading += 90.0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestShieldGlow
draw_sprite_with_rotation 17 {offsetLeft} 428@ {offsetTop} 429@ {width} 64.0 {height} 32.0 {angle} $heading {red} 220 {green} 220 {blue} 220 {alpha} 410@

:NONE_9001
227@ = 0

:NONE_9008
if 
  362@(227@,10i) > 0
goto_if_false @NONE_9159
if 
  362@(227@,10i) == 1
goto_if_false @NONE_9063
362@(227@,10i) = 5

:NONE_9063
362@(227@,10i) += 1
if 
  362@(227@,10i) > 16
goto_if_false @NONE_9114
362@(227@,10i) = 0
goto @NONE_9159

:NONE_9114
draw_sprite 362@(227@,10i) {offsetLeft} 648@(227@,10f) {offsetTop} 658@(227@,10f) {width} 32.0 {height} 32.0 {r} 220 {g} 220 {b} 220 {a} 255

:NONE_9159
227@ += 1
  227@ >= 10
goto_if_false @NONE_9008
if 
  417@ == 1
goto_if_false @NONE_9566
add_timed_val_to_float_lvar 647@ +=@ 1.0
646@ = limit_angle 646@
$x = cos 646@
$y = sin 646@
mult_float_var_by_float_lvar $x *= 647@
mult_float_var_by_float_lvar $y *= 647@
set_lvar_float_to_var_float 688@ = $x
688@ += 320.0
set_lvar_float_to_var_float 689@ = $y
689@ += 224.0
draw_sprite 18 {offsetLeft} 688@ {offsetTop} 689@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255
if 
  394@ == 0
goto_if_false @NONE_9510
if 
  do_2d_rectangles_collide 688@ {rectangle1PositionY} 689@ {rectangle1SizeX} 16.0 {rectangle1SizeY} 16.0 {rectangle2PositionX} 428@ {rectangle2PositionY} 429@ {rectangle2SizeX} 426@ {rectangle2SizeY} 427@
goto_if_false @NONE_9510
416@ += 1
if 
  416@ == 1
goto_if_false @NONE_9420
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPickup1

:NONE_9420
if 
  416@ == 2
goto_if_false @NONE_9458
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPickup2

:NONE_9458
if 
  416@ == 3
goto_if_false @NONE_9503
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestPickup3
418@ = 1

:NONE_9503
417@ = 0

:NONE_9510
if 
  not do_2d_rectangles_collide 688@ {rectangle1PositionY} 689@ {rectangle1SizeX} 16.0 {rectangle1SizeY} 16.0 {rectangle2PositionX} 320.0 {rectangle2PositionY} 224.0 {rectangle2SizeX} 640.0 {rectangle2SizeY} 448.0
goto_if_false @NONE_9566
417@ = 0

:NONE_9566
if or
  0 > 407@
  407@ == 0
goto_if_false @NONE_9623
407@ = 0
if 
  394@ == 0
goto_if_false @NONE_9623
394@ = 1

:NONE_9623
if 
  is_int_lvar_greater_than_int_lvar 408@ > 407@
goto_if_false @NONE_9657
set_lvar_int_to_lvar_int 408@ = 407@
409@ += 1

:NONE_9657
gosub @NONE_12369
set_text_scale 0.6 {heightScale} 2.6
display_text 95.0 {offsetTop} 45.0 {key} 'NONE_01'
gosub @NONE_12369
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 95.0 {offsetTop} 70.0 {key} 'NUMBER' {num} 392@
gosub @NONE_12369
set_text_scale 0.6 {heightScale} 2.6
display_text 550.0 {offsetTop} 45.0 {key} 'NONE_02'
draw_sprite 20 {offsetLeft} 527.2529 {offsetTop} 84.2723 {width} 48.0 {height} 24.0 {r} 220 {g} 220 {b} 220 {a} 255
gosub @NONE_12369
set_text_centre False
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 554.7283 {offsetTop} 70.0 {key} 'NONE_03' {num} 412@
gosub @NONE_12369
set_text_scale 0.6 {heightScale} 2.6
display_text 550.0 {offsetTop} 350.0 {key} 'NONE_04'
gosub @NONE_12369
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 550.0 {offsetTop} 375.0 {key} 'NONE_05' {num} 407@
gosub @NONE_12369
set_text_scale 0.6 {heightScale} 2.6
display_text 95.0 {offsetTop} 350.0 {key} 'NONE_07'
gosub @NONE_12369
set_text_scale 0.6 {heightScale} 2.6
display_text_with_number 95.0 {offsetTop} 375.0 {key} 'NUMBER' {num} 419@
if 
  is_int_lvar_greater_than_int_var 415@ > $game_timer
goto_if_false @NONE_10100
gosub @NONE_12369
set_text_colour 0 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.5 {heightScale} 1.5
display_text_with_number 644@ {offsetTop} 645@ {key} 'NUMBER' {num} 414@

:NONE_10100
if 
  394@ == 0
goto_if_false @NONE_10164
if 
  418@ > 0
goto_if_false @NONE_10164
gosub @NONE_12369
display_text 320.0 {offsetTop} 100.0 {key} 'NONE_06'

:NONE_10164
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @NONE_10332
406@ = 1

:NONE_10332
if 
  406@ == 1
goto_if_false @NONE_10404
if 
  is_int_lvar_greater_than_int_var 392@ > $none_hiscore[9]
goto_if_false @NONE_10397
690@ = 10
691@ = 0
goto @NONE_10411
goto @NONE_10404

:NONE_10397
goto @NONE_2544

:NONE_10404
goto @NONE_4089

:NONE_10411
wait 0
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255
$game_timer = get_game_timer 
227@ = 9

:NONE_10458
if 
  227@ > -1
goto_if_false @NONE_10705
if 
  is_int_lvar_greater_than_int_var 392@ > $none_hiscore(227@,10i)
goto_if_false @NONE_10684
if 
  227@ <> 9
goto_if_false @NONE_10596
set_lvar_int_to_lvar_int 228@ = 227@
228@ += 1
set_var_int_to_var_int $none_hiscore(228@,10i) = $none_hiscore(227@,10i)
set_var_text_label $none_letter1(228@,10s) = $none_letter1(227@,10s)
set_var_text_label $none_letter2(228@,10s) = $none_letter2(227@,10s)
set_var_text_label $none_letter3(228@,10s) = $none_letter3(227@,10s)

:NONE_10596
set_var_int_to_lvar_int $none_hiscore(227@,10i) = 392@
set_var_text_label $none_letter1(227@,10s) = 212@s
set_var_text_label $none_letter2(227@,10s) = 212@s
set_var_text_label $none_letter3(227@,10s) = 212@s
set_lvar_int_to_lvar_int 226@ = 227@
if 
  227@ == 0
goto_if_false @NONE_10677
392@ = 0

:NONE_10677
goto @NONE_10691

:NONE_10684
392@ = 0

:NONE_10691
227@ -= 1
goto @NONE_10458

:NONE_10705
if 
  226@ > -1
goto_if_false @NONE_11207
if 
  691@ == 0
goto_if_false @NONE_10781
set_var_text_label $none_letter1(226@,10s) = 140@(690@,37s)
set_var_text_label $none_letter2(226@,10s) = 212@s
set_var_text_label $none_letter3(226@,10s) = 212@s

:NONE_10781
if 
  691@ == 1
goto_if_false @NONE_10827
set_var_text_label $none_letter2(226@,10s) = 140@(690@,37s)
set_var_text_label $none_letter3(226@,10s) = 212@s

:NONE_10827
if 
  691@ == 2
goto_if_false @NONE_10861
set_var_text_label $none_letter3(226@,10s) = 140@(690@,37s)

:NONE_10861
422@, 423@, 424@, 424@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 423@
goto_if_false @NONE_10982
if 
  is_int_var_greater_than_int_lvar $game_timer > 221@
goto_if_false @NONE_10975
if 
  36 > 690@
goto_if_false @NONE_10952
690@ += 1
goto @NONE_10959

:NONE_10952
690@ = 0

:NONE_10959
set_lvar_int_to_var_int 221@ = $game_timer
221@ += 250

:NONE_10975
goto @NONE_10998

:NONE_10982
set_lvar_int_to_var_int 221@ = $game_timer
221@ -= 250

:NONE_10998
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  423@ > 100
goto_if_false @NONE_11103
if 
  is_int_var_greater_than_int_lvar $game_timer > 222@
goto_if_false @NONE_11096
if 
  690@ > 0
goto_if_false @NONE_11073
690@ -= 1
goto @NONE_11080

:NONE_11073
690@ = 36

:NONE_11080
set_lvar_int_to_var_int 222@ = $game_timer
222@ += 250

:NONE_11096
goto @NONE_11119

:NONE_11103
set_lvar_int_to_var_int 222@ = $game_timer
222@ -= 250

:NONE_11119
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @NONE_11200
if 
  223@ == 0
goto_if_false @NONE_11193
691@ += 1
223@ += 1
if 
  691@ == 3
goto_if_false @NONE_11193
226@ = -1

:NONE_11193
goto @NONE_11207

:NONE_11200
223@ = 0

:NONE_11207
227@ = 0

:NONE_11214
290@(227@,60f) += 8.0
$x = cos 230@(227@,60f)
$y = sin 230@(227@,60f)
mult_float_var_by_float_lvar $x *= 290@(227@,60f)
mult_float_var_by_float_lvar $y *= 290@(227@,60f)
$x += 320.0
$y += 224.0
draw_rect $x {y} $y {width} 1.0 {height} 1.0 {r} 255 {g} 255 {b} 255 {a} 255
if or
  $x > 640.0
  0.0 > $x
  0.0 > $y
  $y > 448.0
goto_if_false @NONE_11410
290@(227@,60f) = 10.0
generate_random_float_in_range 0.0 {max} 360.0 {var_result} 230@(227@,60f)

:NONE_11410
227@ += 1
  227@ >= 60
goto_if_false @NONE_11214
gosub @NONE_12369
set_text_font Font.Subtitles
display_text 214@ {offsetTop} 215@ {key} 'SPAC_06'
set_lvar_float_to_lvar_float 692@ = 216@
set_lvar_float_to_lvar_float 693@ = 217@
227@ = 0

:NONE_11482
if 
  10 > 227@
goto_if_false @NONE_12101
set_lvar_float_to_lvar_float 692@ = 216@
gosub @NONE_12369
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11558
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_11558
if or
  is_var_text_label_equal_to_text_label $none_letter1(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $none_letter1(227@,10s) == 176@s
goto_if_false @NONE_11603
692@ += 8.0

:NONE_11603
display_text 692@ {offsetTop} 693@ {key} $none_letter1(227@,10s)
if or
  is_var_text_label_equal_to_text_label $none_letter1(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $none_letter1(227@,10s) == 176@s
goto_if_false @NONE_11663
692@ -= 8.0

:NONE_11663
add_float_lvar_to_float_lvar 692@ += 218@
gosub @NONE_12369
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11721
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_11721
if or
  is_var_text_label_equal_to_text_label $none_letter2(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $none_letter2(227@,10s) == 176@s
goto_if_false @NONE_11766
692@ += 8.0

:NONE_11766
display_text 692@ {offsetTop} 693@ {key} $none_letter2(227@,10s)
if or
  is_var_text_label_equal_to_text_label $none_letter2(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $none_letter2(227@,10s) == 176@s
goto_if_false @NONE_11826
692@ -= 8.0

:NONE_11826
add_float_lvar_to_float_lvar 692@ += 218@
gosub @NONE_12369
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_11884
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_11884
if or
  is_var_text_label_equal_to_text_label $none_letter3(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $none_letter3(227@,10s) == 176@s
goto_if_false @NONE_11929
692@ += 8.0

:NONE_11929
display_text 692@ {offsetTop} 693@ {key} $none_letter3(227@,10s)
if or
  is_var_text_label_equal_to_text_label $none_letter3(227@,10s) == 142@s
  is_var_text_label_equal_to_text_label $none_letter3(227@,10s) == 176@s
goto_if_false @NONE_11989
692@ -= 8.0

:NONE_11989
set_lvar_float_to_lvar_float 692@ = 216@
add_float_lvar_to_float_lvar 692@ += 219@
gosub @NONE_12369
set_text_centre False
set_text_right_justify True
set_text_font Font.Subtitles
if 
  is_int_lvar_equal_to_int_lvar 226@ == 227@
goto_if_false @NONE_12055
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:NONE_12055
display_text_with_number 692@ {offsetTop} 693@ {key} 'NUMBER' {num} $none_hiscore(227@,10i)
add_float_lvar_to_float_lvar 693@ += 220@
227@ += 1
goto @NONE_11482

:NONE_12101
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  226@ == -1
goto_if_false @NONE_12362
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @NONE_12299
goto @NONE_2544

:NONE_12299
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @NONE_12355
if 
  223@ == 0
goto_if_false @NONE_12348
223@ += 1
goto @NONE_2544

:NONE_12348
goto @NONE_12362

:NONE_12355
223@ = 0

:NONE_12362
goto @NONE_10411

:NONE_12369
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 1.0 {heightScale} 3.0
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 180
set_text_font Font.Menu
return 

:NONE_12441
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundTempestTrackStop
clear_this_print 'BUSY'
shut_all_chars_up False
$onmission = 0
mission_has_finished 
return 

//-------------Mission 4---------------
// Originally: Video Game: Duality

:DUAL
gosub @DUAL_16
gosub @DUAL_15587
terminate_this_script 

:DUAL_16
$onmission = 1
script_name 'DUAL'
wait 0
load_mission_text 'DUAL'
use_text_commands True
remove_texture_dictionary 
load_texture_dictionary 'LD_SPAC'
shut_all_chars_up True
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
load_sprite 1 {spriteName} "BACKGND"
load_sprite 2 {spriteName} "LAYER"
load_sprite 3 {spriteName} "TVCORN"
load_sprite 4 {spriteName} "ROCKSHP"
load_sprite 5 {spriteName} "THRUSTG"
load_sprite 7 {spriteName} "DARK"
load_sprite 8 {spriteName} "LIGHT"
load_sprite 9 {spriteName} "EX1"
load_sprite 10 {spriteName} "EX2"
load_sprite 11 {spriteName} "EX3"
load_sprite 12 {spriteName} "EX4"
load_sprite 13 {spriteName} "WHITE"
load_sprite 14 {spriteName} "SHOOT"
load_sprite 15 {spriteName} "HEALTH"
load_sprite 16 {spriteName} "POWER"
load_sprite 17 {spriteName} "DUALITY"
load_sprite 18 {spriteName} "BLACK"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1807

:DUAL_297
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @DUAL_323
wait 0
goto @DUAL_297

:DUAL_323
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTrackStart
51@ = generate_random_int_in_range 0 {max} 3
switch_start 51@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DUAL_1516 {caseNum1} 0 {caseLabel1} @DUAL_415 {caseNum2} 1 {caseLabel2} @DUAL_782 {caseNum3} 2 {caseLabel3} @DUAL_1149 {caseNum4} -1 {caseLabel4} @DUAL_1516 {caseNum5} -1 {caseLabel5} @DUAL_1516 {caseNum6} -1 {caseLabel6} @DUAL_1516 {caseNum7} -1 {caseLabel7} @DUAL_1516

:DUAL_415
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 156.0
78@ = 256.0
90@ = 128.0
55@ = 452.2068
67@ = 90.0
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.6436
80@ = 32.0
92@ = 32.0
57@ = 262.0
69@ = 300.0
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 342.0
83@ = 320.0
95@ = 229.7492
60@ = 284.4967
72@ = 314.9901
84@ = 320.0
96@ = 320.0
61@ = 351.9814
73@ = 356.8015
goto @DUAL_1516

:DUAL_782
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 219.561
78@ = 256.0
90@ = 128.0
55@ = 452.2068
67@ = 215.0997
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.0905
80@ = 32.0
92@ = 32.0
57@ = 265.0504
69@ = 70.0389
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 342.0
83@ = 320.0
95@ = 91.233
60@ = 284.4967
72@ = 84.2511
84@ = 320.0
96@ = 296.2502
61@ = 351.9814
73@ = 356.8015
goto @DUAL_1516

:DUAL_1149
52@ = 160.0
64@ = 224.0
76@ = 320.0
88@ = 500.0
53@ = 480.0
65@ = 224.0
77@ = 320.0
89@ = 500.0
54@ = 320.0
66@ = 296.0475
78@ = 256.0
90@ = 128.0
55@ = 464.383
67@ = 354.7318
79@ = 32.0
91@ = 32.0
56@ = 166.5889
68@ = 216.0905
80@ = 32.0
92@ = 32.0
57@ = 265.0504
69@ = 70.0389
81@ = 1.0
93@ = 3.0
58@ = 370.0
82@ = 0.9
94@ = 3.0
71@ = 119.7153
83@ = 320.0
95@ = 135.5804
60@ = 284.4967
72@ = 84.2511
84@ = 320.0
96@ = 320.0
61@ = 351.9814
73@ = 134.4938
goto @DUAL_1516

:DUAL_1516
62@ = 33.8609
74@ = 18.1114
86@ = 230.0
98@ = 60.3475
63@ = 38.1753
75@ = 20.4681
87@ = 0.5014
99@ = 1.8889
100@ = 0
101@ = 1
102@ = 1
103@ = 1
104@ = 1
105@ = 1
set_lvar_text_label 106@s = 'DUAL_0'
set_lvar_text_label 108@s = 'DUAL_1'
set_lvar_text_label 110@s = 'DUAL_2'
set_lvar_text_label 112@s = 'DUAL_3'
set_lvar_text_label 114@s = 'DUAL_4'
set_lvar_text_label 116@s = 'DUAL_5'
set_lvar_text_label 118@s = 'DUAL_6'
set_lvar_text_label 120@s = 'DUAL_7'
set_lvar_text_label 122@s = 'DUAL_8'
set_lvar_text_label 124@s = 'DUAL_9'
set_lvar_text_label 126@s = 'DUAL_AA'
set_lvar_text_label 128@s = 'DUAL_B'
set_lvar_text_label 130@s = 'DUAL_C'
set_lvar_text_label 132@s = 'DUAL_D'
set_lvar_text_label 134@s = 'DUAL_E'
set_lvar_text_label 136@s = 'DUAL_F'
set_lvar_text_label 138@s = 'DUAL_G'
set_lvar_text_label 140@s = 'DUAL_H'
set_lvar_text_label 142@s = 'DUAL_I'
set_lvar_text_label 144@s = 'DUAL_J'
set_lvar_text_label 146@s = 'DUAL_K'
set_lvar_text_label 148@s = 'DUAL_L'
set_lvar_text_label 150@s = 'DUAL_M'
set_lvar_text_label 152@s = 'DUAL_N'
set_lvar_text_label 154@s = 'DUAL_O'
set_lvar_text_label 156@s = 'DUAL_P'
set_lvar_text_label 158@s = 'DUAL_Q'
set_lvar_text_label 160@s = 'DUAL_R'
set_lvar_text_label 162@s = 'DUAL_S'
set_lvar_text_label 164@s = 'DUAL_T'
set_lvar_text_label 166@s = 'DUAL_U'
set_lvar_text_label 168@s = 'DUAL_V'
set_lvar_text_label 170@s = 'DUAL_W'
set_lvar_text_label 172@s = 'DUAL_X'
set_lvar_text_label 174@s = 'DUAL_Y'
set_lvar_text_label 176@s = 'DUAL_Z'
set_lvar_text_label 178@s = 'DUAL_FS'
if 
  $played_dual_before == 0
goto_if_false @DUAL_2819
$dark_hiscore[0] = -10000
$dark_hiscore[1] = -7500
$dark_hiscore[2] = -5000
$dark_hiscore[3] = -2500
$dark_hiscore[4] = -1000
$dark_hiscore[5] = -750
$dark_hiscore[6] = -500
$dark_hiscore[7] = -250
$dark_hiscore[8] = -175
$dark_hiscore[9] = -100
$light_hiscore[0] = 10000
$light_hiscore[1] = 7500
$light_hiscore[2] = 5000
$light_hiscore[3] = 2500
$light_hiscore[4] = 1000
$light_hiscore[5] = 750
$light_hiscore[6] = 500
$light_hiscore[7] = 250
$light_hiscore[8] = 175
$light_hiscore[9] = 100
set_var_text_label s$dark_letter1[0] = 132@s
set_var_text_label s$dark_letter2[0] = 144@s
set_var_text_label s$dark_letter3[0] = 178@s
set_var_text_label s$dark_letter1[1] = 146@s
set_var_text_label s$dark_letter2[1] = 160@s
set_var_text_label s$dark_letter3[1] = 174@s
set_var_text_label s$dark_letter1[2] = 162@s
set_var_text_label s$dark_letter2[2] = 142@s
set_var_text_label s$dark_letter3[2] = 162@s
set_var_text_label s$dark_letter1[3] = 170@s
set_var_text_label s$dark_letter2[3] = 132@s
set_var_text_label s$dark_letter3[3] = 174@s
set_var_text_label s$dark_letter1[4] = 132@s
set_var_text_label s$dark_letter2[4] = 126@s
set_var_text_label s$dark_letter3[4] = 152@s
set_var_text_label s$dark_letter1[5] = 148@s
set_var_text_label s$dark_letter2[5] = 160@s
set_var_text_label s$dark_letter3[5] = 138@s
set_var_text_label s$dark_letter1[6] = 152@s
set_var_text_label s$dark_letter2[6] = 154@s
set_var_text_label s$dark_letter3[6] = 152@s
set_var_text_label s$dark_letter1[7] = 138@s
set_var_text_label s$dark_letter2[7] = 126@s
set_var_text_label s$dark_letter3[7] = 176@s
set_var_text_label s$dark_letter1[8] = 108@s
set_var_text_label s$dark_letter2[8] = 106@s
set_var_text_label s$dark_letter3[8] = 108@s
set_var_text_label s$dark_letter1[9] = 144@s
set_var_text_label s$dark_letter2[9] = 166@s
set_var_text_label s$dark_letter3[9] = 132@s
set_var_text_label s$light_letter1[0] = 126@s
set_var_text_label s$light_letter2[0] = 132@s
set_var_text_label s$light_letter3[0] = 176@s
set_var_text_label s$light_letter1[1] = 130@s
set_var_text_label s$light_letter2[1] = 126@s
set_var_text_label s$light_letter3[1] = 152@s
set_var_text_label s$light_letter1[2] = 142@s
set_var_text_label s$light_letter2[2] = 150@s
set_var_text_label s$light_letter3[2] = 174@s
set_var_text_label s$light_letter1[3] = 170@s
set_var_text_label s$light_letter2[3] = 142@s
set_var_text_label s$light_letter3[3] = 148@s
set_var_text_label s$light_letter1[4] = 132@s
set_var_text_label s$light_letter2[4] = 128@s
set_var_text_label s$light_letter3[4] = 156@s
set_var_text_label s$light_letter1[5] = 132@s
set_var_text_label s$light_letter2[5] = 126@s
set_var_text_label s$light_letter3[5] = 168@s
set_var_text_label s$light_letter1[6] = 132@s
set_var_text_label s$light_letter2[6] = 154@s
set_var_text_label s$light_letter3[6] = 132@s
set_var_text_label s$light_letter1[7] = 152@s
set_var_text_label s$light_letter2[7] = 136@s
set_var_text_label s$light_letter3[7] = 178@s
set_var_text_label s$light_letter1[8] = 146@s
set_var_text_label s$light_letter2[8] = 150@s
set_var_text_label s$light_letter3[8] = 128@s
set_var_text_label s$light_letter1[9] = 162@s
set_var_text_label s$light_letter2[9] = 144@s
set_var_text_label s$light_letter3[9] = 148@s
$played_dual_before = 1

:DUAL_2819
180@ = -1
181@ = 0
182@ = 321.4137
183@ = 58.2432
184@ = 201.225
185@ = 88.9168
186@ = 29.78
187@ = 230.5296
188@ = 28.5713

:DUAL_2903
wait 0
do_fade 0 {direction} Fade.In
$game_timer = get_game_timer 
300@ = 0
311@, 312@, 39@, 39@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  311@ > 100
goto_if_false @DUAL_3094
if 
  103@ == 0
goto_if_false @DUAL_3080
if 
  100@ == 0
goto_if_false @DUAL_3035
100@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3080

:DUAL_3035
if 
  100@ == 2
goto_if_false @DUAL_3080
100@ = 3
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3080
103@ = 1
goto @DUAL_3581

:DUAL_3094
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > 311@
goto_if_false @DUAL_3247
if 
  103@ == 0
goto_if_false @DUAL_3233
if 
  100@ == 1
goto_if_false @DUAL_3188
100@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3233

:DUAL_3188
if 
  100@ == 3
goto_if_false @DUAL_3233
100@ = 2
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3233
102@ = 1
goto @DUAL_3574

:DUAL_3247
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 312@
goto_if_false @DUAL_3400
if 
  104@ == 0
goto_if_false @DUAL_3386
if 
  100@ == 2
goto_if_false @DUAL_3341
100@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3386

:DUAL_3341
if 
  100@ == 3
goto_if_false @DUAL_3386
100@ = 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3386
104@ = 1
goto @DUAL_3567

:DUAL_3400
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  312@ > 100
goto_if_false @DUAL_3553
if 
  105@ == 0
goto_if_false @DUAL_3539
if 
  100@ == 0
goto_if_false @DUAL_3494
100@ = 2
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect
goto @DUAL_3539

:DUAL_3494
if 
  100@ == 1
goto_if_false @DUAL_3539
100@ = 3
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuDeselect

:DUAL_3539
105@ = 1
goto @DUAL_3560

:DUAL_3553
105@ = 0

:DUAL_3560
104@ = 0

:DUAL_3567
102@ = 0

:DUAL_3574
103@ = 0

:DUAL_3581
draw_sprite 18 {offsetLeft} 52@ {offsetTop} 64@ {width} 76@ {height} 88@ {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 13 {offsetLeft} 53@ {offsetTop} 65@ {width} 77@ {height} 89@ {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 17 {offsetLeft} 54@ {offsetTop} 66@ {width} 256.0 {height} 128.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 7 {offsetLeft} 55@ {offsetTop} 67@ {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 8 {offsetLeft} 56@ {offsetTop} 68@ {width} 32.0 {height} 32.0 {r} 255 {g} 255 {b} 255 {a} 255
gosub @DUAL_15515
set_text_centre False
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3795
set_text_scale 82@ {heightScale} 94@
goto @DUAL_3803

:DUAL_3795
set_text_scale 81@ {heightScale} 93@

:DUAL_3803
display_text 57@ {offsetTop} 69@ {key} 'SPAC_04'
gosub @DUAL_15515
set_text_centre False
set_text_justify True
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3879
set_text_scale 82@ {heightScale} 94@
goto @DUAL_3887

:DUAL_3879
set_text_scale 81@ {heightScale} 93@

:DUAL_3887
display_text 58@ {offsetTop} 69@ {key} 'SPAC_05'
gosub @DUAL_15515
set_text_centre False
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_3966
set_text_scale 82@ {heightScale} 94@
goto @DUAL_3974

:DUAL_3966
set_text_scale 81@ {heightScale} 93@

:DUAL_3974
display_text 57@ {offsetTop} 71@ {key} 'SPAC_06'
gosub @DUAL_15515
set_text_centre False
set_text_justify True
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DUAL_4050
set_text_scale 82@ {heightScale} 94@
goto @DUAL_4058

:DUAL_4050
set_text_scale 81@ {heightScale} 93@

:DUAL_4058
display_text 58@ {offsetTop} 71@ {key} 'SPAC_06'
if 
  100@ == 0
goto_if_false @DUAL_4125
draw_sprite 8 {offsetLeft} 60@ {offsetTop} 72@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4125
if 
  100@ == 1
goto_if_false @DUAL_4175
draw_sprite 7 {offsetLeft} 61@ {offsetTop} 72@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4175
if 
  100@ == 2
goto_if_false @DUAL_4225
draw_sprite 8 {offsetLeft} 60@ {offsetTop} 73@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4225
if 
  100@ == 3
goto_if_false @DUAL_4275
draw_sprite 7 {offsetLeft} 61@ {offsetTop} 73@ {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_4275
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_4755
if 
  101@ == 0
goto_if_false @DUAL_4748
101@ += 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualMenuSelect
if 
  100@ == 0
goto_if_false @DUAL_4506
goto @DUAL_4839

:DUAL_4506
if 
  100@ == 1
goto_if_false @DUAL_4552
remove_texture_dictionary 
set_player_control $player1 {state} True
do_fade 0 {direction} Fade.Out
wait 0
do_fade 500 {direction} Fade.In
return 

:DUAL_4552
if 
  100@ == 2
goto_if_false @DUAL_4650
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 205@ = 50@
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 206@ = 50@
199@ = 0.0
200@ = 0.0
181@ = 1
goto @DUAL_11763

:DUAL_4650
if 
  100@ == 3
goto_if_false @DUAL_4748
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 205@ = 50@
50@ = generate_random_float_in_range -15.0 {max} 15.0
set_lvar_float_to_lvar_float 206@ = 50@
199@ = 0.0
200@ = 0.0
181@ = 0
goto @DUAL_11763

:DUAL_4748
goto @DUAL_4762

:DUAL_4755
101@ = 0

:DUAL_4762
draw_window 62@ {leftTopY} 74@ {rightBottomX} 86@ {rightBottomY} 98@ {header} 'DUMMY' {zIndex} 0
gosub @DUAL_15515
set_text_centre False
set_text_wrapx 86@
set_text_font Font.Subtitles
set_text_scale 87@ {heightScale} 99@
display_text 63@ {offsetTop} 75@ {key} 'SPAC_10'
goto @DUAL_2903

:DUAL_4839
189@ = 0.0
193@ = 0.0
190@ = 0.0
194@ = 0.0
199@ = 0.0
200@ = 0.0
$ship_velocity_x = 0.0
$ship_velocity_y = 0.0
201@ = 0.0
202@ = 0.0
203@ = 0.1
204@ = 100.0
205@ = 0.0
206@ = 0.0
207@ = 0
208@ = -512.0
209@ = -256.0
210@ = 0.0
211@ = 256.0
212@ = 512.0
213@ = -384.0
214@ = -128.0
215@ = 128.0
216@ = 384.0
217@ = 200.0
227@ = 200.0
237@ = -199999995904.0
218@ = -300.0
228@ = -300.0
238@ = -199999995904.0
219@ = -300.0
229@ = 300.0
239@ = -199999995904.0
220@ = 300.0
230@ = -300.0
240@ = -199999995904.0
221@ = 0.1
231@ = 300.0
241@ = -199999995904.0
222@ = 0.1
232@ = -300.0
242@ = 199999995904.0
223@ = 300.0
233@ = 0.1
243@ = 199999995904.0
224@ = -300.0
234@ = 0.1
244@ = 199999995904.0
225@ = 0.1
235@ = 500.0
245@ = 199999995904.0
226@ = 0.1
236@ = -500.0
246@ = 199999995904.0
247@ = 10
248@ = 32.0
249@ = 6.6726
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
249@ *= 0.1
40@ = 0

:DUAL_5470
if 
  20 > 40@
goto_if_false @DUAL_5530
250@(40@,20f) = 1000.0
270@(40@,20f) = 1000.0
40@ += 1
goto @DUAL_5470

:DUAL_5530
40@ = 0

:DUAL_5537
if 
  10 > 40@
goto_if_false @DUAL_5580
290@(40@,10i) = 0
40@ += 1
goto @DUAL_5537

:DUAL_5580
300@ = 0
set_player_control $player1 {state} False
301@ = 100.0
302@ = 100.0
303@ = 256.0
304@ = 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 305@ = $game_timer
305@ += 4000
set_lvar_int_to_var_int 306@ = $game_timer
307@ = 0

:DUAL_5667
set_lvar_int_to_var_int 308@ = $game_timer
wait 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 309@ = $game_timer
sub_int_lvar_from_int_lvar 309@ -= 308@
cset_lvar_float_to_lvar_int 310@ =# 309@
310@ /= 1.5
310@ /= 1000.0
201@ = 0.0
202@ = 0.0
add_timed_val_to_float_lvar 301@ +=@ 0.06
if 
  301@ > 100.0
goto_if_false @DUAL_5789
301@ = 100.0

:DUAL_5789
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DUAL_5845
if 
  307@ == 1
goto_if_false @DUAL_5838
307@ = 0
304@ = 1

:DUAL_5838
goto @DUAL_5852

:DUAL_5845
307@ = 1

:DUAL_5852
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DUAL_5886
add_timed_val_to_float_lvar 203@ +=@ 5.0
goto @DUAL_5970

:DUAL_5886
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DUAL_5920
add_timed_val_to_float_lvar 203@ +=@ -5.0
goto @DUAL_5970

:DUAL_5920
311@, 312@, 39@, 39@ = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_lvar_int 50@ =# 311@
50@ /= 15.0
add_timed_float_lvar_to_float_lvar 203@ +=@ 50@
203@ = limit_angle 203@

:DUAL_5970
40@ = 0

:DUAL_5977
if 
  is_int_lvar_greater_than_int_lvar 247@ > 40@
goto_if_false @DUAL_7304
$distance = get_distance_between_coords_2d 199@ {fromY} 200@ {toX} 217@(40@,10f) {toZ} 227@(40@,10f)
313@ = 0
if 
  $distance > 700.0
goto_if_false @DUAL_6056
313@ = 1

:DUAL_6056
if 
  100.0 > $distance
goto_if_false @DUAL_6403
if 
  do_2d_rectangles_collide 199@ {rectangle1PositionY} 200@ {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} 217@(40@,10f) {rectangle2PositionY} 227@(40@,10f) {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @DUAL_6403
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_6342
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTouchDark
sub_timed_val_from_float_lvar 302@ -=@ 1.0
if 
  0.0 > 302@
goto_if_false @DUAL_6335
302@ = 0.0
41@ = 0

:DUAL_6223
if 
  10 > 41@
goto_if_false @DUAL_6319
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_6305
set_lvar_float_to_lvar_float 324@(41@,10f) = 199@
set_lvar_float_to_lvar_float 334@(41@,10f) = 200@
290@(41@,10i) += 1
41@ = 9

:DUAL_6305
41@ += 1
goto @DUAL_6223

:DUAL_6319
set_lvar_int_to_var_int 306@ = $game_timer
306@ += 3000

:DUAL_6335
goto @DUAL_6403

:DUAL_6342
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTouchLight
add_timed_val_to_float_lvar 302@ +=@ 1.0
if 
  302@ > 100.0
goto_if_false @DUAL_6403
302@ = 100.0

:DUAL_6403
41@ = 0

:DUAL_6410
if 
  10 > 41@
goto_if_false @DUAL_6605
if 
  is_int_lvar_greater_than_int_var 314@(41@,10i) > $game_timer
goto_if_false @DUAL_6591
if 
  do_2d_rectangles_collide 439@(41@,10f) {rectangle1PositionY} 449@(41@,10f) {rectangle1SizeX} 12.0 {rectangle1SizeY} 12.0 {rectangle2PositionX} 217@(40@,10f) {rectangle2PositionY} 227@(40@,10f) {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @DUAL_6591
313@ = 2
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_6584
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_6577
300@ += 10
goto @DUAL_6584

:DUAL_6577
300@ -= 10

:DUAL_6584
41@ = 9

:DUAL_6591
41@ += 1
goto @DUAL_6410

:DUAL_6605
if 
  313@ > 0
goto_if_false @DUAL_7000
if 
  313@ == 2
goto_if_false @DUAL_6752
41@ = 0

:DUAL_6648
if 
  10 > 41@
goto_if_false @DUAL_6752
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_6738
set_lvar_float_to_lvar_float 324@(41@,10f) = 217@(40@,10f)
set_lvar_float_to_lvar_float 334@(41@,10f) = 227@(40@,10f)
290@(41@,10i) += 1
41@ = 9

:DUAL_6738
41@ += 1
goto @DUAL_6648

:DUAL_6752
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_6853
$x = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_6831
$x *= -1.0

:DUAL_6831
$y = generate_random_float_in_range -700.0 {max} 700.0
goto @DUAL_6920

:DUAL_6853
$x = generate_random_float_in_range -700.0 {max} 700.0
$y = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_6920
$y *= -1.0

:DUAL_6920
set_lvar_float_to_lvar_float 217@(40@,10f) = 199@
add_float_var_to_float_lvar 217@(40@,10f) += $x
set_lvar_float_to_lvar_float 227@(40@,10f) = 200@
add_float_var_to_float_lvar 227@(40@,10f) += $y
$distance = get_distance_between_coords_2d 199@ {fromY} 200@ {toX} 217@(40@,10f) {toZ} 227@(40@,10f)
goto @DUAL_7290

:DUAL_7000
set_lvar_float_to_lvar_float 50@ = 237@(40@,10f)
mult_float_lvar_by_float_lvar 50@ *= 204@
mult_float_lvar_by_float_lvar 50@ *= 249@
set_var_float_to_var_float $z = $distance
mult_float_var_by_float_var $z *= $distance
div_float_lvar_by_float_var 50@ /= $z
set_lvar_float_to_lvar_float 344@ = 217@(40@,10f)
sub_float_lvar_from_float_lvar 344@ -= 199@
set_lvar_float_to_lvar_float 345@ = 227@(40@,10f)
sub_float_lvar_from_float_lvar 345@ -= 200@
div_float_lvar_by_float_var 344@ /= $distance
div_float_lvar_by_float_var 345@ /= $distance
set_lvar_float_to_lvar_float 43@ = 344@
mult_float_lvar_by_float_lvar 43@ *= 50@
set_lvar_float_to_lvar_float 44@ = 345@
mult_float_lvar_by_float_lvar 44@ *= 50@
248@ = 32.0
if 
  43@ > 50000.0
goto_if_false @DUAL_7181
43@ = 50000.0

:DUAL_7181
if 
  -50000.0 > 43@
goto_if_false @DUAL_7212
43@ = -50000.0

:DUAL_7212
if 
  44@ > 50000.0
goto_if_false @DUAL_7243
44@ = 50000.0

:DUAL_7243
if 
  -50000.0 > 44@
goto_if_false @DUAL_7274
44@ = -50000.0

:DUAL_7274
add_float_lvar_to_float_lvar 201@ += 43@
add_float_lvar_to_float_lvar 202@ += 44@

:DUAL_7290
40@ += 1
goto @DUAL_5977

:DUAL_7304
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_8043
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_7494
if or
  301@ > 0.2
  301@ == 0.2
goto_if_false @DUAL_7487
$x = sin 203@
$y = cos 203@
$x *= -20000.0
$y *= 20000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
207@ += 50
if 
  207@ > 200
goto_if_false @DUAL_7457
207@ = 200

:DUAL_7457
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualThrust
sub_timed_val_from_float_lvar 301@ -=@ 0.2

:DUAL_7487
goto @DUAL_7526

:DUAL_7494
207@ -= 20
if 
  0 > 207@
goto_if_false @DUAL_7526
207@ = 0

:DUAL_7526
if or
  301@ > 0.1
  301@ == 0.1
goto_if_false @DUAL_7662
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @DUAL_7662
set_lvar_float_to_lvar_float 50@ = 203@
50@ += 90.0
50@ = limit_angle 50@
$x = sin 50@
$y = cos 50@
$x *= -6000.0
$y *= 6000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
sub_timed_val_from_float_lvar 301@ -=@ 0.1

:DUAL_7662
if or
  301@ > 0.1
  301@ == 0.1
goto_if_false @DUAL_7798
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @DUAL_7798
set_lvar_float_to_lvar_float 50@ = 203@
50@ -= 90.0
50@ = limit_angle 50@
$x = sin 50@
$y = cos 50@
$x *= -6000.0
$y *= 6000.0
add_float_var_to_float_lvar 201@ += $x
add_float_var_to_float_lvar 202@ += $y
sub_timed_val_from_float_lvar 301@ -=@ 0.1

:DUAL_7798
set_lvar_float_to_var_float 346@ = $ship_velocity_x
346@ *= 40.0
set_lvar_float_to_var_float 347@ = $ship_velocity_y
347@ *= 40.0
sub_float_lvar_from_float_lvar 201@ -= 346@
sub_float_lvar_from_float_lvar 202@ -= 347@
div_float_lvar_by_float_lvar 201@ /= 204@
div_float_lvar_by_float_lvar 202@ /= 204@
mult_float_lvar_by_float_lvar 201@ *= 310@
mult_float_lvar_by_float_lvar 202@ *= 310@
add_float_lvar_to_float_var $ship_velocity_x += 201@
add_float_lvar_to_float_var $ship_velocity_y += 202@
if or
  301@ > 1.0
  301@ == 1.0
goto_if_false @DUAL_8043
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @DUAL_8043
if 
  is_int_var_greater_than_int_lvar $game_timer > 348@
goto_if_false @DUAL_8043
gosub @DUAL_15309
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualShoot
set_lvar_int_to_var_int 348@ = $game_timer
348@ += 250
sub_timed_val_from_float_lvar 301@ -=@ 1.0
if 
  300@ > 0
goto_if_false @DUAL_8043
300@ -= 1

:DUAL_8043
set_lvar_float_to_lvar_float 205@ = 199@
set_lvar_float_to_lvar_float 206@ = 200@
if 
  $ship_velocity_x > 300.0
goto_if_false @DUAL_8090
$ship_velocity_x = 300.0

:DUAL_8090
if 
  -300.0 > $ship_velocity_x
goto_if_false @DUAL_8121
$ship_velocity_x = -300.0

:DUAL_8121
if 
  $ship_velocity_y > 300.0
goto_if_false @DUAL_8152
$ship_velocity_y = 300.0

:DUAL_8152
if 
  -300.0 > $ship_velocity_y
goto_if_false @DUAL_8183
$ship_velocity_y = -300.0

:DUAL_8183
set_var_float_to_lvar_float $x = 310@
mult_float_var_by_float_var $x *= $ship_velocity_x
set_var_float_to_lvar_float $y = 310@
mult_float_var_by_float_var $y *= $ship_velocity_y
add_float_var_to_float_lvar 199@ += $x
add_float_var_to_float_lvar 200@ += $y
40@ = 0

:DUAL_8238
if 
  3 > 40@
goto_if_false @DUAL_9088
set_var_float_to_lvar_float $x = 205@
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 206@
sub_float_lvar_from_float_var $y -= 200@
$x *= 0.6
$y *= 0.6
cset_lvar_float_to_lvar_int 50@ =# 40@
50@ += 1.0
50@ *= 0.3
mult_float_var_by_float_lvar $x *= 50@
mult_float_var_by_float_lvar $y *= 50@
303@ = 512.0
mult_float_lvar_by_float_lvar 303@ *= 50@
if 
  40@ == 0
goto_if_false @DUAL_8439
$x /= 2.0
$y /= 2.0
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y
goto @DUAL_8463

:DUAL_8439
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y

:DUAL_8463
set_lvar_float_to_lvar_float 50@ = 303@
50@ /= 2.0
if 
  is_float_lvar_greater_than_float_lvar 189@(40@,4f) > 50@
goto_if_false @DUAL_8516
sub_float_lvar_from_float_lvar 189@(40@,4f) -= 303@

:DUAL_8516
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 189@(40@,4f)
goto_if_false @DUAL_8569
add_float_lvar_to_float_lvar 189@(40@,4f) += 303@

:DUAL_8569
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 193@(40@,4f) > 50@
goto_if_false @DUAL_8622
sub_float_lvar_from_float_lvar 193@(40@,4f) -= 303@

:DUAL_8622
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 193@(40@,4f)
goto_if_false @DUAL_8675
add_float_lvar_to_float_lvar 193@(40@,4f) += 303@

:DUAL_8675
50@ = 640.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 349@ = 50@
div_float_lvar_by_float_lvar 349@ /= 303@
cset_lvar_int_to_lvar_float 350@ =# 349@
cset_lvar_float_to_lvar_int 50@ =# 350@
sub_float_lvar_from_float_lvar 349@ -= 50@
if 
  349@ > 0.0
goto_if_false @DUAL_8761
350@ += 1

:DUAL_8761
50@ = 448.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 351@ = 50@
div_float_lvar_by_float_lvar 351@ /= 303@
cset_lvar_int_to_lvar_float 352@ =# 351@
cset_lvar_float_to_lvar_int 50@ =# 352@
sub_float_lvar_from_float_lvar 351@ -= 50@
if 
  351@ > 0.0
goto_if_false @DUAL_8847
352@ += 1

:DUAL_8847
350@ += 1
352@ += 1
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
set_lvar_float_to_lvar_float 198@ = 193@(40@,4f)
354@ = 0

:DUAL_8892
if 
  is_int_lvar_greater_than_int_lvar 352@ > 354@
goto_if_false @DUAL_9074
353@ = 0

:DUAL_8918
if 
  is_int_lvar_greater_than_int_lvar 350@ > 353@
goto_if_false @DUAL_9040
if 
  40@ == 0
goto_if_false @DUAL_8990
draw_sprite 1 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255
goto @DUAL_9018

:DUAL_8990
draw_sprite 2 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_9018
add_float_lvar_to_float_lvar 197@ += 303@
353@ += 1
goto @DUAL_8918

:DUAL_9040
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
add_float_lvar_to_float_lvar 198@ += 303@
354@ += 1
goto @DUAL_8892

:DUAL_9074
40@ += 1
goto @DUAL_8238

:DUAL_9088
40@ = 0

:DUAL_9095
if 
  is_int_lvar_greater_than_int_lvar 247@ > 40@
goto_if_false @DUAL_9284
set_var_float_to_lvar_float $x = 217@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 227@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  237@(40@,10f) > 0.0
goto_if_false @DUAL_9238
draw_sprite 7 {offsetLeft} $x {offsetTop} $y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
goto @DUAL_9270

:DUAL_9238
draw_sprite 8 {offsetLeft} $x {offsetTop} $y {width} 32.0 {height} 32.0 {r} 255 {g} 255 {b} 255 {a} 255

:DUAL_9270
40@ += 1
goto @DUAL_9095

:DUAL_9284
40@ = 0

:DUAL_9291
if 
  20 > 40@
goto_if_false @DUAL_9986
$distance = get_distance_between_coords_2d 199@ {fromY} 200@ {toX} 250@(40@,20f) {toZ} 270@(40@,20f)
if or
  $distance > 600.0
  do_2d_rectangles_collide 199@ {rectangle1PositionY} 200@ {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} 250@(40@,20f) {rectangle2PositionY} 270@(40@,20f) {rectangle2SizeX} 18.0 {rectangle2SizeY} 18.0
goto_if_false @DUAL_9823
if 
  do_2d_rectangles_collide 199@ {rectangle1PositionY} 200@ {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} 250@(40@,20f) {rectangle2PositionY} 270@(40@,20f) {rectangle2SizeX} 18.0 {rectangle2SizeY} 18.0
goto_if_false @DUAL_9589
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_9589
if 
  10 > 40@
goto_if_false @DUAL_9521
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualPickupLight
300@ += 5
goto @DUAL_9548

:DUAL_9521
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualPickupDark
300@ -= 5

:DUAL_9548
301@ += 25.0
if 
  301@ > 100.0
goto_if_false @DUAL_9589
301@ = 100.0

:DUAL_9589
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_9699
$x = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_9668
$x *= -1.0

:DUAL_9668
$y = generate_random_float_in_range -700.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
goto @DUAL_9775

:DUAL_9699
$x = generate_random_float_in_range -700.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
$y = generate_random_float_in_range 340.0 {max} 700.0
39@ = generate_random_int_in_range 0 {max} 2
if 
  39@ == 0
goto_if_false @DUAL_9775
$y *= -1.0

:DUAL_9775
set_lvar_float_to_lvar_float 250@(40@,20f) = 199@
add_float_var_to_float_lvar 250@(40@,20f) += $x
set_lvar_float_to_lvar_float 270@(40@,20f) = 200@
add_float_var_to_float_lvar 270@(40@,20f) += $y

:DUAL_9823
set_var_float_to_lvar_float $x = 250@(40@,20f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 270@(40@,20f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  10 > 40@
goto_if_false @DUAL_9940
draw_sprite 8 {offsetLeft} $x {offsetTop} $y {width} 16.0 {height} 16.0 {r} 255 {g} 255 {b} 255 {a} 255
goto @DUAL_9972

:DUAL_9940
draw_sprite 7 {offsetLeft} $x {offsetTop} $y {width} 16.0 {height} 16.0 {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_9972
40@ += 1
goto @DUAL_9291

:DUAL_9986
40@ = 0

:DUAL_9993
if 
  10 > 40@
goto_if_false @DUAL_10296
if 
  290@(40@,10i) > 0
goto_if_false @DUAL_10282
set_var_float_to_lvar_float $x = 324@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 334@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
if 
  290@(40@,10i) == 1
goto_if_false @DUAL_10170
set_lvar_int_to_var_int 355@(40@,10i) = $game_timer
355@(40@,10i) += 500
290@(40@,10i) = 9
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualExplosionShort

:DUAL_10170
set_lvar_int_to_var_int 355@(40@,10i) = $game_timer
355@(40@,10i) += 500
290@(40@,10i) += 1
if 
  290@(40@,10i) > 12
goto_if_false @DUAL_10245
290@(40@,10i) = 0
goto @DUAL_10282

:DUAL_10245
draw_sprite 290@(40@,10i) {offsetLeft} $x {offsetTop} $y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_10282
40@ += 1
goto @DUAL_9993

:DUAL_10296
40@ = 0

:DUAL_10303
if 
  10 > 40@
goto_if_false @DUAL_10522
if 
  is_int_lvar_greater_than_int_var 314@(40@,10i) > $game_timer
goto_if_false @DUAL_10508
set_var_float_to_lvar_float $x = 310@
mult_float_var_by_float_lvar $x *= 459@(40@,10f)
set_var_float_to_lvar_float $y = 310@
mult_float_var_by_float_lvar $y *= 469@(40@,10f)
add_float_var_to_float_lvar 439@(40@,10f) += $x
add_float_var_to_float_lvar 449@(40@,10f) += $y
set_var_float_to_lvar_float $x = 439@(40@,10f)
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 449@(40@,10f)
sub_float_lvar_from_float_var $y -= 200@
$x += 320.0
$y += 224.0
set_var_float_to_lvar_float $heading = 203@
draw_sprite 14 {offsetLeft} $x {offsetTop} $y {width} 8.0 {height} 8.0 {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_10508
40@ += 1
goto @DUAL_10303

:DUAL_10522
if 
  is_int_var_greater_than_int_lvar $game_timer > 306@
goto_if_false @DUAL_10953
draw_sprite_with_rotation 4 {offsetLeft} 320.0 {offsetTop} 224.0 {width} 248@ {height} 248@ {angle} 203@ {red} 150 {green} 150 {blue} 150 {alpha} 255
set_lvar_float_to_lvar_float 50@ = 302@
50@ /= 2.0
$y = 400.0
sub_float_lvar_from_float_var $y -= 50@
draw_sprite 13 {offsetLeft} 50.0 {offsetTop} 350.0 {width} 14.0 {height} 104.0 {r} 0 {g} 0 {b} 0 {a} 255
draw_sprite 15 {offsetLeft} 50.0 {offsetTop} $y {width} 10.0 {height} 302@ {r} 200 {g} 200 {b} 200 {a} 255
set_lvar_float_to_lvar_float 50@ = 301@
50@ /= 2.0
$y = 400.0
sub_float_lvar_from_float_var $y -= 50@
draw_sprite 13 {offsetLeft} 70.0 {offsetTop} 350.0 {width} 14.0 {height} 104.0 {r} 0 {g} 0 {b} 0 {a} 255
draw_sprite 16 {offsetLeft} 70.0 {offsetTop} $y {width} 10.0 {height} 301@ {r} 200 {g} 200 {b} 200 {a} 255
set_lvar_float_to_lvar_float 50@ = 203@
50@ += 180.0
if 
  50@ > 360.0
goto_if_false @DUAL_10827
50@ -= 360.0

:DUAL_10827
$x = sin 50@
$y = cos 50@
$x *= -1.0
$x *= 24.0
$y *= 24.0
$x += 320.0
$y += 224.0
if 
  207@ > 0
goto_if_false @DUAL_10946
draw_sprite_with_rotation 5 {offsetLeft} $x {offsetTop} $y {width} 16.0 {height} 16.0 {angle} 203@ {red} 207@ {green} 207@ {blue} 207@ {alpha} 255

:DUAL_10946
goto @DUAL_11146

:DUAL_10953
41@ = 0

:DUAL_10960
if 
  10 > 41@
goto_if_false @DUAL_11056
if 
  290@(41@,10i) == 0
goto_if_false @DUAL_11042
set_lvar_float_to_lvar_float 324@(41@,10f) = 199@
set_lvar_float_to_lvar_float 334@(41@,10f) = 200@
290@(41@,10i) += 1
41@ = 9

:DUAL_11042
41@ += 1
goto @DUAL_10960

:DUAL_11056
gosub @DUAL_15515
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualGameOver
display_text 320.0 {offsetTop} 100.0 {key} 'SPAC_01'
set_lvar_int_to_var_int 39@ = $game_timer
39@ += 1000
if 
  is_int_lvar_greater_than_int_lvar 39@ > 306@
goto_if_false @DUAL_11146
304@ = 1

:DUAL_11146
gosub @DUAL_15515
if 
  300@ > -1
goto_if_false @DUAL_11202
display_text_with_number 320.0 {offsetTop} 50.0 {key} 'SPAC_02' {num} 300@
goto @DUAL_11268

:DUAL_11202
set_lvar_int_to_lvar_int 39@ = 300@
39@ *= -1
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255
display_text_with_number 320.0 {offsetTop} 50.0 {key} 'SPAC_02' {num} 39@

:DUAL_11268
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_int_lvar_greater_than_int_var 305@ > $game_timer
goto_if_false @DUAL_11623
gosub @DUAL_15515
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DUAL_11506
draw_window 62@ {leftTopY} 74@ {rightBottomX} 175.1144 {rightBottomY} 94.8235 {header} 'DUMMY' {zIndex} 0
set_text_wrapx 175.1144
goto @DUAL_11542

:DUAL_11506
draw_window 62@ {leftTopY} 74@ {rightBottomX} 160.1144 {rightBottomY} 94.8235 {header} 'DUMMY' {zIndex} 0
set_text_wrapx 160.1144

:DUAL_11542
set_text_centre False
set_text_font Font.Subtitles
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DUAL_11594
set_text_scale 0.4 {heightScale} 1.8889
goto @DUAL_11606

:DUAL_11594
set_text_scale 0.5014 {heightScale} 1.8889

:DUAL_11606
display_text 63@ {offsetTop} 75@ {key} 'SPAC_11'

:DUAL_11623
if 
  304@ == 1
goto_if_false @DUAL_11756
if 
  is_int_lvar_greater_than_int_var 300@ > $light_hiscore[9]
goto_if_false @DUAL_11695
365@ = 10
366@ = 0
181@ = 1
goto @DUAL_11763
goto @DUAL_11756

:DUAL_11695
if 
  is_int_var_greater_than_int_lvar $dark_hiscore[9] > 300@
goto_if_false @DUAL_11749
365@ = 10
366@ = 0
181@ = 0
goto @DUAL_11763
goto @DUAL_11756

:DUAL_11749
goto @DUAL_2903

:DUAL_11756
goto @DUAL_5667

:DUAL_11763
wait 0
$game_timer = get_game_timer 
if 
  181@ == 0
goto_if_false @DUAL_12051
40@ = 9

:DUAL_11797
if 
  40@ > -1
goto_if_false @DUAL_12044
if 
  is_int_var_greater_than_int_lvar $dark_hiscore(40@,10i) > 300@
goto_if_false @DUAL_12023
if 
  40@ <> 9
goto_if_false @DUAL_11935
set_lvar_int_to_lvar_int 41@ = 40@
41@ += 1
set_var_int_to_var_int $dark_hiscore(41@,10i) = $dark_hiscore(40@,10i)
set_var_text_label $dark_letter1(41@,10s) = $dark_letter1(40@,10s)
set_var_text_label $dark_letter2(41@,10s) = $dark_letter2(40@,10s)
set_var_text_label $dark_letter3(41@,10s) = $dark_letter3(40@,10s)

:DUAL_11935
set_var_int_to_lvar_int $dark_hiscore(40@,10i) = 300@
set_var_text_label $dark_letter1(40@,10s) = 178@s
set_var_text_label $dark_letter2(40@,10s) = 178@s
set_var_text_label $dark_letter3(40@,10s) = 178@s
set_lvar_int_to_lvar_int 180@ = 40@
if 
  40@ == 0
goto_if_false @DUAL_12016
300@ = 0

:DUAL_12016
goto @DUAL_12030

:DUAL_12023
300@ = 0

:DUAL_12030
40@ -= 1
goto @DUAL_11797

:DUAL_12044
goto @DUAL_12305

:DUAL_12051
40@ = 9

:DUAL_12058
if 
  40@ > -1
goto_if_false @DUAL_12305
if 
  is_int_lvar_greater_than_int_var 300@ > $light_hiscore(40@,10i)
goto_if_false @DUAL_12284
if 
  40@ <> 9
goto_if_false @DUAL_12196
set_lvar_int_to_lvar_int 41@ = 40@
41@ += 1
set_var_int_to_var_int $light_hiscore(41@,10i) = $light_hiscore(40@,10i)
set_var_text_label $light_letter1(41@,10s) = $light_letter1(40@,10s)
set_var_text_label $light_letter2(41@,10s) = $light_letter2(40@,10s)
set_var_text_label $light_letter3(41@,10s) = $light_letter3(40@,10s)

:DUAL_12196
set_var_int_to_lvar_int $light_hiscore(40@,10i) = 300@
set_var_text_label $light_letter1(40@,10s) = 178@s
set_var_text_label $light_letter2(40@,10s) = 178@s
set_var_text_label $light_letter3(40@,10s) = 178@s
set_lvar_int_to_lvar_int 180@ = 40@
if 
  40@ == 0
goto_if_false @DUAL_12277
300@ = 0

:DUAL_12277
goto @DUAL_12291

:DUAL_12284
300@ = 0

:DUAL_12291
40@ -= 1
goto @DUAL_12058

:DUAL_12305
if 
  180@ > -1
goto_if_false @DUAL_12970
if 
  181@ == 0
goto_if_false @DUAL_12486
if 
  366@ == 0
goto_if_false @DUAL_12399
set_var_text_label $dark_letter1(180@,10s) = 106@(365@,37s)
set_var_text_label $dark_letter2(180@,10s) = 178@s
set_var_text_label $dark_letter3(180@,10s) = 178@s

:DUAL_12399
if 
  366@ == 1
goto_if_false @DUAL_12445
set_var_text_label $dark_letter2(180@,10s) = 106@(365@,37s)
set_var_text_label $dark_letter3(180@,10s) = 178@s

:DUAL_12445
if 
  366@ == 2
goto_if_false @DUAL_12479
set_var_text_label $dark_letter3(180@,10s) = 106@(365@,37s)

:DUAL_12479
goto @DUAL_12624

:DUAL_12486
if 
  366@ == 0
goto_if_false @DUAL_12544
set_var_text_label $light_letter1(180@,10s) = 106@(365@,37s)
set_var_text_label $light_letter2(180@,10s) = 178@s
set_var_text_label $light_letter3(180@,10s) = 178@s

:DUAL_12544
if 
  366@ == 1
goto_if_false @DUAL_12590
set_var_text_label $light_letter2(180@,10s) = 106@(365@,37s)
set_var_text_label $light_letter3(180@,10s) = 178@s

:DUAL_12590
if 
  366@ == 2
goto_if_false @DUAL_12624
set_var_text_label $light_letter3(180@,10s) = 106@(365@,37s)

:DUAL_12624
311@, 312@, 39@, 39@ = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > 312@
goto_if_false @DUAL_12745
if 
  is_int_var_greater_than_int_lvar $game_timer > 104@
goto_if_false @DUAL_12738
if 
  36 > 365@
goto_if_false @DUAL_12715
365@ += 1
goto @DUAL_12722

:DUAL_12715
365@ = 0

:DUAL_12722
set_lvar_int_to_var_int 104@ = $game_timer
104@ += 250

:DUAL_12738
goto @DUAL_12761

:DUAL_12745
set_lvar_int_to_var_int 104@ = $game_timer
104@ -= 250

:DUAL_12761
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  312@ > 100
goto_if_false @DUAL_12866
if 
  is_int_var_greater_than_int_lvar $game_timer > 105@
goto_if_false @DUAL_12859
if 
  365@ > 0
goto_if_false @DUAL_12836
365@ -= 1
goto @DUAL_12843

:DUAL_12836
365@ = 36

:DUAL_12843
set_lvar_int_to_var_int 105@ = $game_timer
105@ += 250

:DUAL_12859
goto @DUAL_12882

:DUAL_12866
set_lvar_int_to_var_int 105@ = $game_timer
105@ -= 250

:DUAL_12882
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_12963
if 
  101@ == 0
goto_if_false @DUAL_12956
366@ += 1
101@ += 1
if 
  366@ == 3
goto_if_false @DUAL_12956
180@ = -1

:DUAL_12956
goto @DUAL_12970

:DUAL_12963
101@ = 0

:DUAL_12970
if 
  181@ == 0
goto_if_false @DUAL_13109
40@ = 0

:DUAL_12995
if 
  10 > 40@
goto_if_false @DUAL_13102
set_lvar_int_to_var_int 367@(40@,10i) = $dark_hiscore(40@,10i)
367@(40@,10i) *= -1
set_lvar_text_label 377@(40@,10s) = $dark_letter1(40@,10s)
set_lvar_text_label 397@(40@,10s) = $dark_letter2(40@,10s)
set_lvar_text_label 417@(40@,10s) = $dark_letter3(40@,10s)
40@ += 1
goto @DUAL_12995

:DUAL_13102
goto @DUAL_13212

:DUAL_13109
40@ = 0

:DUAL_13116
if 
  10 > 40@
goto_if_false @DUAL_13212
set_lvar_int_to_var_int 367@(40@,10i) = $light_hiscore(40@,10i)
set_lvar_text_label 377@(40@,10s) = $light_letter1(40@,10s)
set_lvar_text_label 397@(40@,10s) = $light_letter2(40@,10s)
set_lvar_text_label 417@(40@,10s) = $light_letter3(40@,10s)
40@ += 1
goto @DUAL_13116

:DUAL_13212
40@ = 0

:DUAL_13219
if 
  3 > 40@
goto_if_false @DUAL_14069
set_var_float_to_lvar_float $x = 205@
sub_float_lvar_from_float_var $x -= 199@
set_var_float_to_lvar_float $y = 206@
sub_float_lvar_from_float_var $y -= 200@
$x *= 0.6
$y *= 0.6
cset_lvar_float_to_lvar_int 50@ =# 40@
50@ += 1.0
50@ *= 0.3
mult_float_var_by_float_lvar $x *= 50@
mult_float_var_by_float_lvar $y *= 50@
303@ = 512.0
mult_float_lvar_by_float_lvar 303@ *= 50@
if 
  40@ == 0
goto_if_false @DUAL_13420
$x /= 2.0
$y /= 2.0
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y
goto @DUAL_13444

:DUAL_13420
add_float_var_to_float_lvar 189@(40@,4f) += $x
add_float_var_to_float_lvar 193@(40@,4f) += $y

:DUAL_13444
set_lvar_float_to_lvar_float 50@ = 303@
50@ /= 2.0
if 
  is_float_lvar_greater_than_float_lvar 189@(40@,4f) > 50@
goto_if_false @DUAL_13497
sub_float_lvar_from_float_lvar 189@(40@,4f) -= 303@

:DUAL_13497
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 189@(40@,4f)
goto_if_false @DUAL_13550
add_float_lvar_to_float_lvar 189@(40@,4f) += 303@

:DUAL_13550
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 193@(40@,4f) > 50@
goto_if_false @DUAL_13603
sub_float_lvar_from_float_lvar 193@(40@,4f) -= 303@

:DUAL_13603
set_lvar_float_to_lvar_float 50@ = 303@
50@ *= -1.0
if 
  is_float_lvar_greater_than_float_lvar 50@ > 193@(40@,4f)
goto_if_false @DUAL_13656
add_float_lvar_to_float_lvar 193@(40@,4f) += 303@

:DUAL_13656
50@ = 640.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 349@ = 50@
div_float_lvar_by_float_lvar 349@ /= 303@
cset_lvar_int_to_lvar_float 350@ =# 349@
cset_lvar_float_to_lvar_int 50@ =# 350@
sub_float_lvar_from_float_lvar 349@ -= 50@
if 
  349@ > 0.0
goto_if_false @DUAL_13742
350@ += 1

:DUAL_13742
50@ = 448.0
add_float_lvar_to_float_lvar 50@ += 303@
set_lvar_float_to_lvar_float 351@ = 50@
div_float_lvar_by_float_lvar 351@ /= 303@
cset_lvar_int_to_lvar_float 352@ =# 351@
cset_lvar_float_to_lvar_int 50@ =# 352@
sub_float_lvar_from_float_lvar 351@ -= 50@
if 
  351@ > 0.0
goto_if_false @DUAL_13828
352@ += 1

:DUAL_13828
350@ += 1
352@ += 1
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
set_lvar_float_to_lvar_float 198@ = 193@(40@,4f)
354@ = 0

:DUAL_13873
if 
  is_int_lvar_greater_than_int_lvar 352@ > 354@
goto_if_false @DUAL_14055
353@ = 0

:DUAL_13899
if 
  is_int_lvar_greater_than_int_lvar 350@ > 353@
goto_if_false @DUAL_14021
if 
  40@ == 0
goto_if_false @DUAL_13971
draw_sprite 1 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255
goto @DUAL_13999

:DUAL_13971
draw_sprite 2 {offsetLeft} 197@ {offsetTop} 198@ {width} 303@ {height} 303@ {r} 150 {g} 150 {b} 150 {a} 255

:DUAL_13999
add_float_lvar_to_float_lvar 197@ += 303@
353@ += 1
goto @DUAL_13899

:DUAL_14021
set_lvar_float_to_lvar_float 197@ = 189@(40@,4f)
add_float_lvar_to_float_lvar 198@ += 303@
354@ += 1
goto @DUAL_13873

:DUAL_14055
40@ += 1
goto @DUAL_13219

:DUAL_14069
gosub @DUAL_15515
if 
  181@ == 0
goto_if_false @DUAL_14121
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14121
set_text_font Font.Subtitles
display_text 182@ {offsetTop} 183@ {key} 'SPAC_06'
set_lvar_float_to_lvar_float 437@ = 184@
set_lvar_float_to_lvar_float 438@ = 185@
40@ = 0

:DUAL_14165
if 
  10 > 40@
goto_if_false @DUAL_14964
set_lvar_float_to_lvar_float 437@ = 184@
gosub @DUAL_15515
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_14255
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14255
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14286
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_14286
if or
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 142@s
goto_if_false @DUAL_14331
437@ += 8.0

:DUAL_14331
display_text 437@ {offsetTop} 438@ {key} 377@(40@,10s)
if or
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 377@(40@,10s) == 142@s
goto_if_false @DUAL_14391
437@ -= 8.0

:DUAL_14391
add_float_lvar_to_float_lvar 437@ += 186@
gosub @DUAL_15515
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_14463
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14463
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14494
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_14494
if or
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 142@s
goto_if_false @DUAL_14539
437@ += 8.0

:DUAL_14539
display_text 437@ {offsetTop} 438@ {key} 397@(40@,10s)
if or
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 397@(40@,10s) == 142@s
goto_if_false @DUAL_14599
437@ -= 8.0

:DUAL_14599
add_float_lvar_to_float_lvar 437@ += 186@
gosub @DUAL_15515
set_text_centre False
set_text_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_14671
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14671
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14702
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_14702
if or
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 142@s
goto_if_false @DUAL_14747
437@ += 8.0

:DUAL_14747
display_text 437@ {offsetTop} 438@ {key} 417@(40@,10s)
if or
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 108@s
  is_lvar_text_label_equal_to_text_label 417@(40@,10s) == 142@s
goto_if_false @DUAL_14807
437@ -= 8.0

:DUAL_14807
set_lvar_float_to_lvar_float 437@ = 184@
add_float_lvar_to_float_lvar 437@ += 187@
gosub @DUAL_15515
set_text_centre False
set_text_right_justify True
set_text_font Font.Subtitles
if 
  181@ == 0
goto_if_false @DUAL_14887
set_text_colour 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 1 {red} 150 {green} 150 {blue} 150 {alpha} 255

:DUAL_14887
if 
  is_int_lvar_equal_to_int_lvar 180@ == 40@
goto_if_false @DUAL_14918
set_text_colour 0 {green} 155 {blue} 0 {alpha} 255

:DUAL_14918
display_text_with_number 437@ {offsetTop} 438@ {key} 'NUMBER' {num} 367@(40@,10i)
add_float_lvar_to_float_lvar 438@ += 188@
40@ += 1
goto @DUAL_14165

:DUAL_14964
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  180@ == -1
goto_if_false @DUAL_15232
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DUAL_15162
goto @DUAL_2903

:DUAL_15162
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DUAL_15218
if 
  101@ == 0
goto_if_false @DUAL_15211
101@ += 1
goto @DUAL_2903

:DUAL_15211
goto @DUAL_15225

:DUAL_15218
101@ = 0

:DUAL_15225
goto @DUAL_15302

:DUAL_15232
draw_window 62@ {leftTopY} 74@ {rightBottomX} 86@ {rightBottomY} 98@ {header} 'DUMMY' {zIndex} 0
gosub @DUAL_15515
set_text_centre False
set_text_wrapx 86@
set_text_font Font.Subtitles
set_text_scale 87@ {heightScale} 99@
display_text 63@ {offsetTop} 75@ {key} 'SPAC_13'

:DUAL_15302
goto @DUAL_11763

:DUAL_15309
40@ = 0

:DUAL_15316
if 
  10 > 40@
goto_if_false @DUAL_15513
if 
  is_int_var_greater_than_int_lvar $game_timer > 314@(40@,10i)
goto_if_false @DUAL_15499
set_lvar_float_to_lvar_float 50@ = 203@
$x = sin 50@
$y = cos 50@
set_lvar_float_to_lvar_float 439@(40@,10f) = 199@
set_lvar_float_to_lvar_float 449@(40@,10f) = 200@
$x *= -300.0
$y *= 300.0
set_lvar_float_to_var_float 459@(40@,10f) = $x
add_float_var_to_float_lvar 459@(40@,10f) += $ship_velocity_x
set_lvar_float_to_var_float 469@(40@,10f) = $y
add_float_var_to_float_lvar 469@(40@,10f) += $ship_velocity_y
set_lvar_int_to_var_int 314@(40@,10i) = $game_timer
314@(40@,10i) += 1600
return 

:DUAL_15499
40@ += 1
goto @DUAL_15316

:DUAL_15513
return 

:DUAL_15515
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 1.0 {heightScale} 3.0
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 0 {red} 0 {green} 0 {blue} 0 {alpha} 180
set_text_font Font.Menu
return 

:DUAL_15587
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDualTrackStop
if 
  is_player_playing $player1
goto_if_false @DUAL_15697
if 
  locate_char_on_foot_3d $scplayer {x} $spaceX {y} $spaceY {z} $spaceZ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @DUAL_15697
set_var_float_to_var_float $y = $spaceY
$y += 2.0
set_char_coordinates $scplayer {x} $spaceX {y} $y {z} $spaceZ

:DUAL_15697
shut_all_chars_up False
$onmission = 0
clear_this_print 'BUSY'
mission_has_finished 
return 

//-------------Mission 5---------------
// Originally: Video Game: Go Go Space Monkey

:SHTR
gosub @SHTR_67
if 
  has_deatharrest_been_executed 
goto_if_false @SHTR_27
gosub @SHTR_6767

:SHTR_27
do_fade 500 {direction} Fade.In

:SHTR_34
if 
  get_fading_status 
goto_if_false @SHTR_58
wait 0
goto @SHTR_34

:SHTR_58
gosub @SHTR_6787
terminate_this_script 

:SHTR_67
$onmission = 1
if 
  $flag_shtr_passed_1stime == 0
goto_if_false @SHTR_94
register_mission_given 

:SHTR_94
script_name 'SHTR'
wait 0
shut_all_chars_up True
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
set_music_does_fade False
load_mission_text 'SHTR'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1806

:SHTR_167
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @SHTR_193
wait 0
goto @SHTR_167

:SHTR_193
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} False
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 25.0 {clearParticles} True
use_text_commands True
load_texture_dictionary 'LD_SHTR'
load_sprite 1 {spriteName} "SPLSH"
load_sprite 2 {spriteName} "BSTARS"
load_sprite 3 {spriteName} "FSTAR"
load_sprite 4 {spriteName} "HI_A"
load_sprite 5 {spriteName} "HI_B"
load_sprite 6 {spriteName} "HI_C"
load_sprite 7 {spriteName} "UN_A"
load_sprite 8 {spriteName} "UN_B"
load_sprite 9 {spriteName} "UN_C"
load_sprite 10 {spriteName} "SHIP"
load_sprite 11 {spriteName} "FIRE"
load_sprite 12 {spriteName} "UFO"
load_sprite 13 {spriteName} "KAMI"
load_sprite 14 {spriteName} "NMEF"
load_sprite 15 {spriteName} "EX1"
load_sprite 16 {spriteName} "EX2"
load_sprite 17 {spriteName} "EX3"
load_sprite 18 {spriteName} "EX4"
load_sprite 19 {spriteName} "CBARL"
load_sprite 20 {spriteName} "CBARM"
load_sprite 21 {spriteName} "CBARR"
load_sprite 22 {spriteName} "HBARL"
load_sprite 23 {spriteName} "HBARM"
load_sprite 24 {spriteName} "HBARR"
load_sprite 25 {spriteName} "TVCORN"
load_sprite 26 {spriteName} "TVL"
load_sprite 27 {spriteName} "TVR"
load_sprite 28 {spriteName} "PA"
load_sprite 29 {spriteName} "PM2"
load_sprite 30 {spriteName} "PM3"
load_sprite 31 {spriteName} "PS1"
load_sprite 32 {spriteName} "PS2"
load_sprite 33 {spriteName} "PS3"

:SHTR_582
gosub @SHTR_17446
gosub @SHTR_15794
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
TIMERB = 0

:SHTR_761
wait 0
set_var_float_to_var_float $shtr_origin = $shtr_background_pos
$shtr_sprite = 2
$shtr_layer_scroll_speed_top = 1.0
gosub @SHTR_6986
$shtr_layer_scroll_speed_bottom = 1.0
gosub @SHTR_7229
set_var_float_to_var_float $shtr_background_pos = $shtr_origin
do_fade 0 {direction} Fade.In
$shtr_lstickx, $shtr_lsticky, $shtr_rstickx, $shtr_rsticky = get_position_of_analogue_sticks PadId.Pad1

:SHTR_844
if 
  $shtr_button_pressed == 1
goto_if_false @SHTR_899
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lsticky == 0
goto_if_false @SHTR_899
$shtr_button_pressed = 0

:SHTR_899
if 
  $shtr_front_end == 1
goto_if_false @SHTR_1135
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 164.0 {width} 386.0 {height} 192.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 4 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 9 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_1135
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoTrackStart
$shtr_reload_start = get_game_timer 
$shtr_help_start = get_game_timer 
$shtr_front_end = 0

:SHTR_1135
if 
  $shtr_front_end == 2
goto_if_false @SHTR_1353
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 164.0 {width} 386.0 {height} 192.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 5 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 9 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_1353
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept
$shtr_help_start = get_game_timer 
$shtr_on_table = 4
$shtr_front_end = 4

:SHTR_1353
if 
  $shtr_front_end == 3
goto_if_false @SHTR_1565
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 164.0 {width} 386.0 {height} 192.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_1565
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoDecline
do_fade 0 {direction} Fade.Out
goto @SHTR_27

:SHTR_1565
if 
  $shtr_button_pressed == 0
goto_if_false @SHTR_2027
if 
  $shtr_front_end == 1
goto_if_false @SHTR_1731
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $shtr_lsticky
goto_if_false @SHTR_1666
$shtr_front_end = 3
$shtr_button_pressed = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1666
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lsticky > 64
goto_if_false @SHTR_1731
$shtr_front_end = 2
$shtr_button_pressed = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1731
if 
  $shtr_front_end == 2
goto_if_false @SHTR_1879
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $shtr_lsticky
goto_if_false @SHTR_1814
$shtr_front_end = 1
$shtr_button_pressed = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1814
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lsticky > 64
goto_if_false @SHTR_1879
$shtr_front_end = 3
$shtr_button_pressed = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1879
if 
  $shtr_front_end == 3
goto_if_false @SHTR_2027
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $shtr_lsticky
goto_if_false @SHTR_1962
$shtr_front_end = 2
$shtr_button_pressed = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_1962
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $shtr_lsticky > 64
goto_if_false @SHTR_2027
$shtr_front_end = 1
$shtr_button_pressed = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
goto @SHTR_844

:SHTR_2027
if 
  $shtr_front_end == 0
goto_if_false @SHTR_5956
$shtr_lstickx, $shtr_lsticky, $shtr_rstickx, $shtr_rsticky = get_position_of_analogue_sticks PadId.Pad1
if 
  $shtr_player_alive == 0
goto_if_false @SHTR_2150
$shtr_start_time = get_game_timer 
if 
  $shtr_lives > 0
goto_if_false @SHTR_2150
$shtr_lives -= 1
$shtr_range_start = 2.0
$shtr_range_end = 4.0
$shtr_heat_bar = 5
$shtr_player_alive = 2
$shtr_fire_alive = 0

:SHTR_2150
if 
  $shtr_player_alive == 1
goto_if_false @SHTR_2200
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_2200
if or
  $shtr_player_alive == 1
  $shtr_player_alive == 3
goto_if_false @SHTR_2287
set_var_int_to_var_int $shtr_temp = $shtr_lstickx
$shtr_temp /= 20
cset_var_float_to_var_int $shtr_tempF =# $shtr_temp
add_timed_float_var_to_float_var $shtr_plyr_x +=@ $shtr_tempF
set_var_int_to_var_int $shtr_temp = $shtr_lsticky
$shtr_temp /= 20
cset_var_float_to_var_int $shtr_tempF =# $shtr_temp
add_timed_float_var_to_float_var $shtr_plyr_y +=@ $shtr_tempF

:SHTR_2287
if or
  $shtr_player_alive == 1
  $shtr_player_alive == 3
goto_if_false @SHTR_2420
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @SHTR_2339
sub_timed_val_from_float_var $shtr_plyr_y -=@ 6.0

:SHTR_2339
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @SHTR_2366
add_timed_val_to_float_var $shtr_plyr_y +=@ 6.0

:SHTR_2366
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @SHTR_2393
sub_timed_val_from_float_var $shtr_plyr_x -=@ 6.0

:SHTR_2393
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @SHTR_2420
add_timed_val_to_float_var $shtr_plyr_x +=@ 6.0

:SHTR_2420
if 
  80.0 > $shtr_plyr_x
goto_if_false @SHTR_2451
$shtr_plyr_x = 80.0

:SHTR_2451
if 
  $shtr_plyr_x > 560.0
goto_if_false @SHTR_2482
$shtr_plyr_x = 560.0

:SHTR_2482
if 
  80.0 > $shtr_plyr_y
goto_if_false @SHTR_2513
$shtr_plyr_y = 80.0

:SHTR_2513
if 
  $shtr_plyr_y > 368.0
goto_if_false @SHTR_2544
$shtr_plyr_y = 368.0

:SHTR_2544
if 
  $shtr_button1 == 1
goto_if_false @SHTR_2683
$shtr_reload_end = get_game_timer 
set_var_int_to_var_int $shtr_reload_diff = $shtr_reload_end
sub_int_var_from_int_var $shtr_reload_diff -= $shtr_reload_start
if 
  $shtr_auto_pickup == 0
goto_if_false @SHTR_2651
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_2644
if 
  is_int_var_greater_than_int_var $shtr_reload_diff > $shtr_speed_pickup
goto_if_false @SHTR_2644
$shtr_button1 = 0

:SHTR_2644
goto @SHTR_2683

:SHTR_2651
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_int_var_greater_than_int_var $shtr_reload_diff > $shtr_speed_pickup
goto_if_false @SHTR_2683
$shtr_button1 = 0

:SHTR_2683
if 
  7 > $shtr_heat_bar
goto_if_false @SHTR_2708
$shtr_heat_bar = 7

:SHTR_2708
$shtr_heat_bar -= 7
if or
  $shtr_player_alive == 1
  $shtr_player_alive == 3
goto_if_false @SHTR_3210
if 
  1000 > $shtr_heat_bar
goto_if_false @SHTR_3210
if 
  $shtr_button1 == 0
goto_if_false @SHTR_3210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_3210
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoPlayerFire
$shtr_cos_shot_angle = cos $shtr_shot_angle
set_var_float_to_var_float $shtr_x_add = $shtr_fire_speed
mult_float_var_by_float_var $shtr_x_add *= $shtr_cos_shot_angle
$shtr_sin_shot_angle = sin $shtr_shot_angle
set_var_float_to_var_float $shtr_y_add = $shtr_fire_speed
mult_float_var_by_float_var $shtr_y_add *= $shtr_sin_shot_angle
if 
  $shtr_projectile_alive($shtr_current_projectile_fired,16i) == 0
goto_if_false @SHTR_2949
set_var_float_to_var_float $shtr_projectile_origin($shtr_current_projectile_fired,16f) = $shtr_plyr_x
set_var_float_to_var_float $shtr_projectile_y($shtr_current_projectile_fired,16f) = $shtr_plyr_y
set_var_float_to_var_float $shtr_projectile_x($shtr_current_projectile_fired,16f) = $shtr_projectile_origin($shtr_current_projectile_fired,16f)
$shtr_projectile_x($shtr_current_projectile_fired,16f) += 16.0
$shtr_projectile_alive($shtr_current_projectile_fired,16i) = 1

:SHTR_2949
if or
  $shtr_multi_pickup == 1
  $shtr_multi_pickup == 2
goto_if_false @SHTR_3061
if 
  $shtr_up_projectile_alive($shtr_current_projectile_fired,16i) == 0
goto_if_false @SHTR_3061
set_var_float_to_var_float $shtr_up_projectile_origin($shtr_current_projectile_fired,16f) = $shtr_plyr_x
set_var_float_to_var_float $shtr_up_projectile_y($shtr_current_projectile_fired,16f) = $shtr_plyr_y
set_var_float_to_var_float $shtr_up_projectile_x($shtr_current_projectile_fired,16f) = $shtr_up_projectile_origin($shtr_current_projectile_fired,16f)
$shtr_up_projectile_x($shtr_current_projectile_fired,16f) += 16.0
$shtr_up_projectile_alive($shtr_current_projectile_fired,16i) = 1

:SHTR_3061
if 
  $shtr_multi_pickup == 2
goto_if_false @SHTR_3166
if 
  $shtr_down_projectile_alive($shtr_current_projectile_fired,16i) == 0
goto_if_false @SHTR_3166
set_var_float_to_var_float $shtr_down_projectile_origin($shtr_current_projectile_fired,16f) = $shtr_plyr_x
set_var_float_to_var_float $shtr_down_projectile_y($shtr_current_projectile_fired,16f) = $shtr_plyr_y
set_var_float_to_var_float $shtr_down_projectile_x($shtr_current_projectile_fired,16f) = $shtr_down_projectile_origin($shtr_current_projectile_fired,16f)
$shtr_down_projectile_x($shtr_current_projectile_fired,16f) += 16.0
$shtr_down_projectile_alive($shtr_current_projectile_fired,16i) = 1

:SHTR_3166
$shtr_reload_start = get_game_timer 
$shtr_current_projectile_fired += 1
$shtr_button1 = 1
if 
  $shtr_current_projectile_fired == 16
goto_if_false @SHTR_3210
$shtr_current_projectile_fired = 0

:SHTR_3210
gosub @SHTR_9211
gosub @SHTR_10139
if 
  $shtr_pickup_collected == 0
goto_if_false @SHTR_4076
draw_sprite $shtr_pickup_current {offsetLeft} $shtr_pickup_x {offsetTop} $shtr_pickup_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  $shtr_pickup_move_switch == 0
goto_if_false @SHTR_3360
if and
  368.0 > $shtr_pickup_y
  $shtr_pickup_x > 80.0
goto_if_false @SHTR_3351
$shtr_pickup_x += -1.0
$shtr_pickup_y += 1.0
goto @SHTR_3360

:SHTR_3351
$shtr_pickup_move_switch = generate_random_int_in_range 0 {max} 4

:SHTR_3360
if 
  $shtr_pickup_move_switch == 1
goto_if_false @SHTR_3445
if and
  $shtr_pickup_x > 80.0
  $shtr_pickup_y > 80.0
goto_if_false @SHTR_3436
$shtr_pickup_x += -1.0
$shtr_pickup_y += -1.0
goto @SHTR_3445

:SHTR_3436
$shtr_pickup_move_switch = generate_random_int_in_range 0 {max} 4

:SHTR_3445
if 
  $shtr_pickup_move_switch == 2
goto_if_false @SHTR_3530
if and
  $shtr_pickup_y > 80.0
  560.0 > $shtr_pickup_x
goto_if_false @SHTR_3521
$shtr_pickup_x += 1.0
$shtr_pickup_y += -1.0
goto @SHTR_3530

:SHTR_3521
$shtr_pickup_move_switch = generate_random_int_in_range 0 {max} 4

:SHTR_3530
if 
  $shtr_pickup_move_switch == 3
goto_if_false @SHTR_3615
if and
  560.0 > $shtr_pickup_x
  368.0 > $shtr_pickup_y
goto_if_false @SHTR_3606
$shtr_pickup_x += 1.0
$shtr_pickup_y += 1.0
goto @SHTR_3615

:SHTR_3606
$shtr_pickup_move_switch = generate_random_int_in_range 0 {max} 4

:SHTR_3615
if 
  do_2d_rectangles_collide $shtr_plyr_x {rectangle1PositionY} $shtr_plyr_y {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} $shtr_pickup_x {rectangle2PositionY} $shtr_pickup_y {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @SHTR_4076
if 
  6.5 > $shtr_range_end
goto_if_false @SHTR_3701
$shtr_range_start += 0.5
$shtr_range_end += 0.5

:SHTR_3701
$shtr_pickup_x = 0.0
$shtr_pickup_y = 0.0
$shtr_pickup_move_switch = 0
if 
  $shtr_pickup_current == 28
goto_if_false @SHTR_3780
$shtr_auto_pickup = 1
$shtr_pickup_collected = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3780
if 
  $shtr_pickup_current == 33
goto_if_false @SHTR_3839
$shtr_speed_pickup = 50
$shtr_pickup_current = 28
$shtr_pickup_collected = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3839
if 
  $shtr_pickup_current == 30
goto_if_false @SHTR_3898
$shtr_multi_pickup = 2
$shtr_pickup_current = 33
$shtr_pickup_collected = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3898
if 
  $shtr_pickup_current == 32
goto_if_false @SHTR_3957
$shtr_speed_pickup = 100
$shtr_pickup_current = 30
$shtr_pickup_collected = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_3957
if 
  $shtr_pickup_current == 29
goto_if_false @SHTR_4016
$shtr_multi_pickup = 1
$shtr_pickup_current = 32
$shtr_pickup_collected = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_4016
if 
  $shtr_pickup_current == 31
goto_if_false @SHTR_4076
$shtr_speed_pickup = 150
$shtr_pickup_current = 29
$shtr_pickup_collected = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_4076
if 
  $shtr_respawn == 0
goto_if_false @SHTR_4190
if 
  TIMERB > 500
goto_if_false @SHTR_4190
if 
  $shtr_enemy_alive[0] == 0
goto_if_false @SHTR_4190
$shtr_current_enemy = 0
if 
  60.0 > $shtr_amplitude
goto_if_false @SHTR_4169
$shtr_amplitude += 5.0

:SHTR_4169
gosub @SHTR_8027
TIMERB = 0
$shtr_respawn += 1

:SHTR_4190
if and
  $shtr_respawn > 0
  8 > $shtr_respawn
goto_if_false @SHTR_4230
set_var_int_to_var_int $shtr_current_enemy = $shtr_respawn
gosub @SHTR_7472

:SHTR_4230
if 
  $shtr_respawn == 8
goto_if_false @SHTR_4347
if and
  $shtr_enemy_alive[0] == 0
  $shtr_enemy_alive[1] == 0
  $shtr_enemy_alive[2] == 0
  $shtr_enemy_alive[3] == 0
goto_if_false @SHTR_4347
if and
  $shtr_enemy_alive[4] == 0
  $shtr_enemy_alive[5] == 0
  $shtr_enemy_alive[6] == 0
  $shtr_enemy_alive[7] == 0
goto_if_false @SHTR_4347
$shtr_pickup_counter = 0
$shtr_random = 0
$shtr_respawn = 0

:SHTR_4347
gosub @SHTR_8789
gosub @SHTR_7564
gosub @SHTR_9636
if 
  $shtr_player_alive == 2
goto_if_false @SHTR_5128
if 
  $shtr_fire_alive == 2
goto_if_false @SHTR_4773
$shtr_end_time = get_game_timer 
set_var_int_to_var_int $shtr_time_diff = $shtr_end_time
sub_int_var_from_int_var $shtr_time_diff -= $shtr_start_time
if and
  $shtr_time_diff >= 0
  100 > $shtr_time_diff
goto_if_false @SHTR_4482
draw_sprite 15 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4482
if and
  $shtr_time_diff >= 100
  200 > $shtr_time_diff
goto_if_false @SHTR_4540
draw_sprite 16 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4540
if and
  $shtr_time_diff >= 200
  300 > $shtr_time_diff
goto_if_false @SHTR_4599
draw_sprite 17 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4599
if and
  $shtr_time_diff >= 300
  400 > $shtr_time_diff
goto_if_false @SHTR_4658
draw_sprite 18 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4658
if 
  $shtr_time_diff > 499
goto_if_false @SHTR_4766
$shtr_plyr_x = 80.0
$shtr_plyr_y = 224.0
$shtr_player_alive = 3
$shtr_fire_alive = 0
$shtr_pickup_counter = 0
$shtr_pickup_collected = 1
$shtr_pickup_current = 31
$shtr_speed_pickup = 250
$shtr_auto_pickup = 0
$shtr_multi_pickup = 0
$shtr_pickup_move_switch = 0
$shtr_start_time = get_game_timer 

:SHTR_4766
goto @SHTR_5128

:SHTR_4773
$shtr_end_time = get_game_timer 
set_var_int_to_var_int $shtr_time_diff = $shtr_end_time
sub_int_var_from_int_var $shtr_time_diff -= $shtr_start_time
if and
  $shtr_time_diff >= 0
  100 > $shtr_time_diff
goto_if_false @SHTR_4851
draw_sprite 15 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4851
if and
  $shtr_time_diff >= 100
  200 > $shtr_time_diff
goto_if_false @SHTR_4909
draw_sprite 16 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4909
if and
  $shtr_time_diff >= 200
  300 > $shtr_time_diff
goto_if_false @SHTR_4968
draw_sprite 17 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_4968
if and
  $shtr_time_diff >= 300
  400 > $shtr_time_diff
goto_if_false @SHTR_5027
draw_sprite 18 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_5027
if 
  $shtr_time_diff > 499
goto_if_false @SHTR_5128
$shtr_start_time = get_game_timer 
$shtr_plyr_x = 80.0
$shtr_plyr_y = 224.0
$shtr_pickup_counter = 0
$shtr_pickup_collected = 1
$shtr_pickup_current = 31
$shtr_speed_pickup = 250
$shtr_auto_pickup = 0
$shtr_multi_pickup = 0
$shtr_pickup_move_switch = 0
$shtr_player_alive = 3

:SHTR_5128
if 
  $shtr_player_alive == 3
goto_if_false @SHTR_5781
$shtr_end_time = get_game_timer 
set_var_int_to_var_int $shtr_time_diff = $shtr_end_time
sub_int_var_from_int_var $shtr_time_diff -= $shtr_start_time
if and
  $shtr_time_diff >= 0
  100 > $shtr_time_diff
goto_if_false @SHTR_5224
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5224
if and
  $shtr_time_diff >= 200
  300 > $shtr_time_diff
goto_if_false @SHTR_5283
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5283
if and
  $shtr_time_diff >= 400
  500 > $shtr_time_diff
goto_if_false @SHTR_5342
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5342
if and
  $shtr_time_diff >= 600
  700 > $shtr_time_diff
goto_if_false @SHTR_5401
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5401
if and
  $shtr_time_diff >= 800
  900 > $shtr_time_diff
goto_if_false @SHTR_5460
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5460
if and
  $shtr_time_diff >= 1000
  1100 > $shtr_time_diff
goto_if_false @SHTR_5519
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5519
if and
  $shtr_time_diff >= 1200
  1300 > $shtr_time_diff
goto_if_false @SHTR_5578
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5578
if and
  $shtr_time_diff >= 1400
  1500 > $shtr_time_diff
goto_if_false @SHTR_5637
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5637
if and
  $shtr_time_diff >= 1600
  1700 > $shtr_time_diff
goto_if_false @SHTR_5696
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5696
if and
  $shtr_time_diff >= 1800
  1900 > $shtr_time_diff
goto_if_false @SHTR_5755
draw_sprite 10 {offsetLeft} $shtr_plyr_x {offsetTop} $shtr_plyr_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 150

:SHTR_5755
if 
  $shtr_time_diff >= 2000
goto_if_false @SHTR_5781
$shtr_player_alive = 1

:SHTR_5781
if 
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_score
goto_if_false @SHTR_5815
set_var_int_to_var_int $shtr_hi_score = $shtr_score
$unk_5566 = 1

:SHTR_5815
gosub @SHTR_6947
set_text_scale 0.6 {heightScale} 1.2
set_text_right_justify True
display_text_with_number 560.0 {offsetTop} 48.0 {key} 'SHTR_2B' {num} $shtr_lives
gosub @SHTR_6947
set_text_centre False
set_text_justify True
set_text_scale 0.6 {heightScale} 1.2
display_text_with_number 80.0 {offsetTop} 48.0 {key} 'SHTR_2D' {num} $shtr_score
gosub @SHTR_6947
set_text_scale 0.6 {heightScale} 1.2
display_text_with_number 320.0 {offsetTop} 48.0 {key} 'SHTR_2C' {num} $shtr_hi_score

:SHTR_5956
if 
  $shtr_front_end == 0
goto_if_false @SHTR_6064
if 
  $shtr_player_alive == 0
goto_if_false @SHTR_6064
if 
  $shtr_lives == 0
goto_if_false @SHTR_6064
$shtr_front_end = 4
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoTrackStop
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoGameOver
$shtr_on_table = 0

:SHTR_6064
if 
  $shtr_front_end == 4
goto_if_false @SHTR_6372
if 
  $shtr_on_table == 0
goto_if_false @SHTR_6152
gosub @SHTR_6947
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'SHTR_3B'
$shtr_start_time = get_game_timer 
$shtr_on_table = 1

:SHTR_6152
if 
  $shtr_on_table == 1
goto_if_false @SHTR_6257
gosub @SHTR_6947
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'SHTR_3B'
$shtr_end_time = get_game_timer 
set_var_int_to_var_int $shtr_time_diff = $shtr_end_time
sub_int_var_from_int_var $shtr_time_diff -= $shtr_start_time
if 
  $shtr_time_diff > 5000
goto_if_false @SHTR_6257
$shtr_on_table = 2

:SHTR_6257
if 
  $shtr_on_table == 2
goto_if_false @SHTR_6315
if 
  is_int_var_greater_than_int_var $shtr_hi_s[9] > $shtr_score
goto_if_false @SHTR_6308
$shtr_on_table = 4
goto @SHTR_6315

:SHTR_6308
gosub @SHTR_11097

:SHTR_6315
if 
  $shtr_on_table == 3
goto_if_false @SHTR_6347
gosub @SHTR_11414
gosub @SHTR_12477

:SHTR_6347
if 
  $shtr_on_table == 4
goto_if_false @SHTR_6372
gosub @SHTR_12477

:SHTR_6372
if 
  $shtr_front_end == 4
goto_if_false @SHTR_6441
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $shtr_on_table <> 1
goto_if_false @SHTR_6441
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoDecline
goto @SHTR_582

:SHTR_6441
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 25 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  $shtr_front_end == 0
goto_if_false @SHTR_6603

:SHTR_6603
if 
  $shtr_front_end == 4
goto_if_false @SHTR_6760
if 
  $shtr_on_table == 4
goto_if_false @SHTR_6760
$shtr_help_end = get_game_timer 
set_var_int_to_var_int $shtr_help_diff = $shtr_help_end
sub_int_var_from_int_var $shtr_help_diff -= $shtr_help_start
if 
  10000 > $shtr_help_diff
goto_if_false @SHTR_6760
draw_window 35.0 {leftTopY} 15.0 {rightBottomX} 200.0 {rightBottomY} 45.0 {header} 'DUMMY' {zIndex} 0
set_text_centre False
set_text_wrapx 230.0
set_text_font Font.Subtitles
set_text_scale 0.5 {heightScale} 1.8
display_text 40.0 {offsetTop} 20.0 {key} 'SH_BCK'

:SHTR_6760
goto @SHTR_761

:SHTR_6767
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
return 

:SHTR_6787
clear_this_print 'BUSY'
remove_texture_dictionary 
clear_mission_audio MissionAudioSlot.Slot4
shut_all_chars_up False
set_music_does_fade True
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoTrackStop
if 
  is_player_playing $player1
goto_if_false @SHTR_6936
if 
  locate_char_on_foot_3d $scplayer {x} $shooter1X {y} $shooter1Y {z} $shooter1Z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SHTR_6922
set_var_float_to_var_float $y = $shooter1Y
$y += 2.0
set_char_coordinates $scplayer {x} $shooter1X {y} $y {z} $shooter1Z

:SHTR_6922
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True

:SHTR_6936
$onmission = 0
mission_has_finished 
return 

:SHTR_6947
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
return 

:SHTR_6986
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
$shtr_layer_x -= 256.0
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
$shtr_layer_x += 256.0
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
$shtr_layer_x += 512.0
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 336.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
sub_timed_float_var_from_float_var $shtr_origin -=@ $shtr_layer_scroll_speed_top
if 
  0.0 > $shtr_origin
goto_if_false @SHTR_7227
$shtr_origin += 256.0

:SHTR_7227
return 

:SHTR_7229
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
$shtr_layer_x -= 256.0
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
$shtr_layer_x += 256.0
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_var_float_to_var_float $shtr_layer_x = $shtr_origin
$shtr_layer_x += 512.0
draw_sprite $shtr_sprite {offsetLeft} $shtr_layer_x {offsetTop} 112.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
sub_timed_float_var_from_float_var $shtr_origin -=@ $shtr_layer_scroll_speed_bottom
if 
  0.0 > $shtr_origin
goto_if_false @SHTR_7470
$shtr_origin += 256.0

:SHTR_7470
return 

:SHTR_7472
if 
  is_int_lvar_greater_than_int_var TIMERB > $shtr_respawn_time
goto_if_false @SHTR_7562
if 
  $shtr_enemy_alive($shtr_current_enemy,16i) == 0
goto_if_false @SHTR_7562
set_var_float_to_var_float $shtr_enemy_x($shtr_current_enemy,16f) = $shtr_enemy_origin
set_var_float_to_var_float $shtr_enemy_speed($shtr_current_enemy,16f) = $shtr_enemy_speed[0]
$shtr_enemy_alive($shtr_current_enemy,16i) = 1
TIMERB = 0
$shtr_respawn += 1

:SHTR_7562
return 

:SHTR_7564
$shtr_current_enemy = 0

:SHTR_7571
if 
  8 > $shtr_current_enemy
goto_if_false @SHTR_8025
if 
  $shtr_enemy_alive($shtr_current_enemy,16i) == 2
goto_if_false @SHTR_8011
get_game_timer $shtr_exp_end($shtr_current_enemy,16i)
set_var_int_to_var_int $shtr_exp_diff($shtr_current_enemy,16i) = $shtr_exp_end($shtr_current_enemy,16i)
sub_int_var_from_int_var $shtr_exp_diff($shtr_current_enemy,16i) -= $shtr_exp_start($shtr_current_enemy,16i)
if and
  $shtr_exp_diff($shtr_current_enemy,16i) >= 0
  100 > $shtr_exp_diff($shtr_current_enemy,16i)
goto_if_false @SHTR_7725
draw_sprite 15 {offsetLeft} $shtr_enemy_x($shtr_current_enemy,16f) {offsetTop} $shtr_enemy_y($shtr_current_enemy,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_7725
if and
  $shtr_exp_diff($shtr_current_enemy,16i) >= 100
  200 > $shtr_exp_diff($shtr_current_enemy,16i)
goto_if_false @SHTR_7799
draw_sprite 16 {offsetLeft} $shtr_enemy_x($shtr_current_enemy,16f) {offsetTop} $shtr_enemy_y($shtr_current_enemy,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_7799
if and
  $shtr_exp_diff($shtr_current_enemy,16i) >= 200
  300 > $shtr_exp_diff($shtr_current_enemy,16i)
goto_if_false @SHTR_7874
draw_sprite 17 {offsetLeft} $shtr_enemy_x($shtr_current_enemy,16f) {offsetTop} $shtr_enemy_y($shtr_current_enemy,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_7874
if and
  $shtr_exp_diff($shtr_current_enemy,16i) >= 300
  400 > $shtr_exp_diff($shtr_current_enemy,16i)
goto_if_false @SHTR_7949
draw_sprite 18 {offsetLeft} $shtr_enemy_x($shtr_current_enemy,16f) {offsetTop} $shtr_enemy_y($shtr_current_enemy,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:SHTR_7949
if 
  $shtr_exp_diff($shtr_current_enemy,16i) > 499
goto_if_false @SHTR_8011
$shtr_enemy_x($shtr_current_enemy,16f) = 0.0
$shtr_enemy_y($shtr_current_enemy,16f) = 0.0
$shtr_enemy_alive($shtr_current_enemy,16i) = 0

:SHTR_8011
$shtr_current_enemy += 1
goto @SHTR_7571

:SHTR_8025
return 

:SHTR_8027
if 
  $shtr_enemy_alive[0] == 0
goto_if_false @SHTR_8787
if 
  $shtr_random == 0
goto_if_false @SHTR_8787
$shtr_enemy_origin = generate_random_float_in_range 640.0 {max} 720.0
set_var_float_to_var_float $shtr_enemy_x[0] = $shtr_enemy_origin
$shtr_sin_cycle_range = generate_random_float_in_range 240.0 {max} 640.0
$shtr_gen_y = generate_random_float_in_range 80.0 {max} 368.0
set_var_float_to_var_float $shtr_gen_lo_y = $shtr_gen_y
sub_float_var_from_float_var $shtr_gen_lo_y -= $shtr_amplitude
if 
  80.0 > $shtr_gen_lo_y
goto_if_false @SHTR_8161
add_float_var_to_float_var $shtr_gen_y += $shtr_amplitude

:SHTR_8161
set_var_float_to_var_float $shtr_gen_hi_y = $shtr_gen_y
add_float_var_to_float_var $shtr_gen_hi_y += $shtr_amplitude
if 
  80.0 > $shtr_gen_hi_y
goto_if_false @SHTR_8206
sub_float_var_from_float_var $shtr_gen_y -= $shtr_amplitude

:SHTR_8206
$shtr_enemy_speed[0] = generate_random_float_in_range $shtr_range_start {max} $shtr_range_end
if and
  $shtr_enemy_speed[0] >= 1.0
  1.5 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8256
$shtr_respawn_time = 500

:SHTR_8256
if and
  $shtr_enemy_speed[0] >= 1.5
  2.0 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8295
$shtr_respawn_time = 475

:SHTR_8295
if and
  $shtr_enemy_speed[0] >= 2.0
  2.5 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8334
$shtr_respawn_time = 450

:SHTR_8334
if and
  $shtr_enemy_speed[0] >= 2.5
  3.0 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8373
$shtr_respawn_time = 425

:SHTR_8373
if and
  $shtr_enemy_speed[0] >= 3.0
  3.5 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8412
$shtr_respawn_time = 400

:SHTR_8412
if and
  $shtr_enemy_speed[0] >= 3.5
  4.0 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8451
$shtr_respawn_time = 375

:SHTR_8451
if and
  $shtr_enemy_speed[0] >= 4.0
  4.5 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8490
$shtr_respawn_time = 350

:SHTR_8490
if and
  $shtr_enemy_speed[0] >= 4.5
  5.0 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8529
$shtr_respawn_time = 325

:SHTR_8529
if and
  $shtr_enemy_speed[0] >= 5.0
  5.5 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8568
$shtr_respawn_time = 300

:SHTR_8568
if and
  $shtr_enemy_speed[0] >= 5.5
  6.0 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8607
$shtr_respawn_time = 275

:SHTR_8607
if and
  $shtr_enemy_speed[0] >= 6.0
  6.5 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8646
$shtr_respawn_time = 250

:SHTR_8646
if and
  $shtr_enemy_speed[0] >= 6.5
  7.0 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8685
$shtr_respawn_time = 225

:SHTR_8685
if and
  $shtr_enemy_speed[0] >= 7.0
  7.5 > $shtr_enemy_speed[0]
goto_if_false @SHTR_8724
$shtr_respawn_time = 200

:SHTR_8724
if and
  $shtr_enemy_speed[0] >= 7.5
  8.0 >= $shtr_enemy_speed[0]
goto_if_false @SHTR_8763
$shtr_respawn_time = 175

:SHTR_8763
$unk_5957 = generate_random_int_in_range 100 {max} 1500
$shtr_enemy_alive[0] = 1
$shtr_random = 1

:SHTR_8787
return 

:SHTR_8789
$shtr_current_enemy = 0

:SHTR_8796
if 
  8 > $shtr_current_enemy
goto_if_false @SHTR_9209
if 
  $shtr_enemy_alive($shtr_current_enemy,16i) == 1
goto_if_false @SHTR_9195
draw_sprite 12 {offsetLeft} $shtr_enemy_x($shtr_current_enemy,16f) {offsetTop} $shtr_enemy_y($shtr_current_enemy,16f) {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
sub_timed_float_var_from_float_var $shtr_enemy_x($shtr_current_enemy,16f) -=@ $shtr_enemy_speed($shtr_current_enemy,16f)
set_var_float_to_var_float $shtr_sin_multiplier = $shtr_enemy_x($shtr_current_enemy,16f)
div_float_var_by_float_var $shtr_sin_multiplier /= $shtr_sin_cycle_range
set_var_float_to_var_float $shtr_sin_degree_input = $shtr_sin_multiplier
$shtr_sin_degree_input *= 360.0
$shtr_sin_degree_output = sin $shtr_sin_degree_input
set_var_float_to_var_float $shtr_initial_y = $shtr_sin_degree_output
mult_float_var_by_float_var $shtr_initial_y *= $shtr_amplitude
set_var_float_to_var_float $shtr_enemy_y($shtr_current_enemy,16f) = $shtr_initial_y
add_float_var_to_float_var $shtr_enemy_y($shtr_current_enemy,16f) += $shtr_gen_y
if 
  0.0 > $shtr_enemy_x($shtr_current_enemy,16f)
goto_if_false @SHTR_9195
$shtr_enemy_x($shtr_current_enemy,16f) = 0.0
$shtr_enemy_y($shtr_current_enemy,16f) = 0.0
if 
  $shtr_score > 24
goto_if_false @SHTR_9184
if 
  is_int_var_equal_to_int_var $shtr_score == $shtr_hi_score
goto_if_false @SHTR_9177
if and
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[0]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[1]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[2]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[3]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[4]
goto_if_false @SHTR_9177
if and
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[5]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[6]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[7]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[8]
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s[9]
goto_if_false @SHTR_9177
$shtr_hi_score -= 25

:SHTR_9177
$shtr_score -= 25

:SHTR_9184
$shtr_enemy_alive($shtr_current_enemy,16i) = 0

:SHTR_9195
$shtr_current_enemy += 1
goto @SHTR_8796

:SHTR_9209
return 

:SHTR_9211
$shtr_current_projectile = 1

:SHTR_9218
if 
  16 > $shtr_current_projectile
goto_if_false @SHTR_9634
if 
  $shtr_projectile_alive($shtr_current_projectile,16i) == 1
goto_if_false @SHTR_9356
draw_sprite 11 {offsetLeft} $shtr_projectile_x($shtr_current_projectile,16f) {offsetTop} $shtr_projectile_y($shtr_current_projectile,16f) {width} $shtr_projectile_size {height} $shtr_projectile_size {r} 150 {g} 150 {b} 150 {a} 255
add_timed_float_var_to_float_var $shtr_projectile_x($shtr_current_projectile,16f) +=@ $shtr_fire_speed
if 
  $shtr_projectile_x($shtr_current_projectile,16f) > 639.0
goto_if_false @SHTR_9356
$shtr_projectile_y($shtr_current_projectile,16f) = 0.0
$shtr_projectile_alive($shtr_current_projectile,16i) = 0

:SHTR_9356
if 
  $shtr_up_projectile_alive($shtr_current_projectile,16i) == 1
goto_if_false @SHTR_9488
draw_sprite 11 {offsetLeft} $shtr_up_projectile_x($shtr_current_projectile,16f) {offsetTop} $shtr_up_projectile_y($shtr_current_projectile,16f) {width} $shtr_projectile_size {height} $shtr_projectile_size {r} 150 {g} 150 {b} 150 {a} 255
add_timed_float_var_to_float_var $shtr_up_projectile_x($shtr_current_projectile,16f) +=@ $shtr_x_add
sub_timed_float_var_from_float_var $shtr_up_projectile_y($shtr_current_projectile,16f) -=@ $shtr_y_add
if 
  $shtr_up_projectile_x($shtr_current_projectile,16f) > 639.0
goto_if_false @SHTR_9488
$shtr_up_projectile_y($shtr_current_projectile,16f) = 0.0
$shtr_up_projectile_alive($shtr_current_projectile,16i) = 0

:SHTR_9488
if 
  $shtr_down_projectile_alive($shtr_current_projectile,16i) == 1
goto_if_false @SHTR_9620
draw_sprite 11 {offsetLeft} $shtr_down_projectile_x($shtr_current_projectile,16f) {offsetTop} $shtr_down_projectile_y($shtr_current_projectile,16f) {width} $shtr_projectile_size {height} $shtr_projectile_size {r} 150 {g} 150 {b} 150 {a} 255
add_timed_float_var_to_float_var $shtr_down_projectile_x($shtr_current_projectile,16f) +=@ $shtr_x_add
add_timed_float_var_to_float_var $shtr_down_projectile_y($shtr_current_projectile,16f) +=@ $shtr_y_add
if 
  $shtr_down_projectile_x($shtr_current_projectile,16f) > 639.0
goto_if_false @SHTR_9620
$shtr_down_projectile_y($shtr_current_projectile,16f) = 0.0
$shtr_down_projectile_alive($shtr_current_projectile,16i) = 0

:SHTR_9620
$shtr_current_projectile += 1
goto @SHTR_9218

:SHTR_9634
return 

:SHTR_9636
$shtr_current_enemy = 0

:SHTR_9643
if 
  8 > $shtr_current_enemy
goto_if_false @SHTR_10137
if 
  $shtr_enemy_x($shtr_current_enemy,16f) > 320.0
goto_if_false @SHTR_9840
if 
  $shtr_shot == 0
goto_if_false @SHTR_9840
if 
  $shtr_enemy_alive($shtr_current_enemy,16i) == 1
goto_if_false @SHTR_9840
if 
  $shtr_enemy_shot_alive($shtr_current_enemy,8i) == 0
goto_if_false @SHTR_9840
set_var_float_to_var_float $shtr_enemy_shot_x($shtr_current_enemy,8f) = $shtr_enemy_x($shtr_current_enemy,16f)
set_var_float_to_var_float $shtr_enemy_shot_y($shtr_current_enemy,8f) = $shtr_enemy_y($shtr_current_enemy,16f)
$shtr_enemy_shot_alive($shtr_current_enemy,8i) = 1
$shtr_shot += 1
set_var_float_to_var_float $shtr_enemy_shot_speed = $shtr_enemy_speed($shtr_current_enemy,16f)
$shtr_enemy_shot_speed *= 1.5
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoEnemyFire

:SHTR_9840
if 
  $shtr_shot == 1
goto_if_false @SHTR_10123
if 
  $shtr_enemy_shot_alive($shtr_current_enemy,8i) == 1
goto_if_false @SHTR_10123
if 
  $shtr_player_alive == 1
goto_if_false @SHTR_10004
if 
  do_2d_rectangles_collide $shtr_plyr_x {rectangle1PositionY} $shtr_plyr_y {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} $shtr_enemy_shot_x($shtr_current_enemy,8f) {rectangle2PositionY} $shtr_enemy_shot_y($shtr_current_enemy,8f) {rectangle2SizeX} 8.0 {rectangle2SizeY} 8.0
goto_if_false @SHTR_10004
$shtr_enemy_shot_alive($shtr_current_enemy,8i) = 0
$shtr_enemy_shot_x($shtr_current_enemy,8f) = 0.0
$shtr_enemy_shot_y($shtr_current_enemy,8f) = 0.0
$shtr_shot = 0
$shtr_player_alive = 0

:SHTR_10004
draw_sprite 14 {offsetLeft} $shtr_enemy_shot_x($shtr_current_enemy,8f) {offsetTop} $shtr_enemy_shot_y($shtr_current_enemy,8f) {width} $shtr_projectile_size {height} $shtr_projectile_size {r} 150 {g} 150 {b} 150 {a} 255
sub_timed_float_var_from_float_var $shtr_enemy_shot_x($shtr_current_enemy,8f) -=@ $shtr_enemy_shot_speed
if 
  0.0 > $shtr_enemy_shot_x($shtr_current_enemy,8f)
goto_if_false @SHTR_10123
$shtr_enemy_shot_alive($shtr_current_enemy,8i) = 0
$shtr_enemy_shot_x($shtr_current_enemy,8f) = 0.0
$shtr_enemy_shot_y($shtr_current_enemy,8f) = 0.0
$shtr_shot = 0

:SHTR_10123
$shtr_current_enemy += 1
goto @SHTR_9643

:SHTR_10137
return 

:SHTR_10139
$shtr_current_enemy = 0

:SHTR_10146
if 
  8 > $shtr_current_enemy
goto_if_false @SHTR_11095
if 
  $shtr_enemy_alive($shtr_current_enemy,16i) == 1
goto_if_false @SHTR_10945
$shtr_current_projectile = 1

:SHTR_10193
if 
  16 > $shtr_current_projectile
goto_if_false @SHTR_10945
if 
  do_2d_rectangles_collide $shtr_projectile_x($shtr_current_projectile,16f) {rectangle1PositionY} $shtr_projectile_y($shtr_current_projectile,16f) {rectangle1SizeX} $shtr_projectile_col_x {rectangle1SizeY} $shtr_projectile_col_y {rectangle2PositionX} $shtr_enemy_x($shtr_current_enemy,16f) {rectangle2PositionY} $shtr_enemy_y($shtr_current_enemy,16f) {rectangle2SizeX} $shtr_enemy_col_x {rectangle2SizeY} $shtr_enemy_col_y
goto_if_false @SHTR_10451
$shtr_score += 100
$shtr_enemy_alive($shtr_current_enemy,16i) = 2
$shtr_projectile_alive($shtr_current_projectile,16i) = 0
$shtr_projectile_x($shtr_current_projectile,16f) = 0.0
$shtr_projectile_y($shtr_current_projectile,16f) = 0.0
get_game_timer $shtr_exp_start($shtr_current_enemy,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_pickup_counter += 1
if 
  $shtr_pickup_collected == 1
goto_if_false @SHTR_10451
if 
  $shtr_pickup_counter == 8
goto_if_false @SHTR_10431
set_var_float_to_var_float $shtr_pickup_x = $shtr_enemy_x($shtr_current_enemy,16f)
set_var_float_to_var_float $shtr_pickup_y = $shtr_enemy_y($shtr_current_enemy,16f)
$shtr_pickup_collected = 0
goto @SHTR_10451

:SHTR_10431
$shtr_pickup_x = 0.0
$shtr_pickup_y = 0.0

:SHTR_10451
if 
  do_2d_rectangles_collide $shtr_up_projectile_x($shtr_current_projectile,16f) {rectangle1PositionY} $shtr_up_projectile_y($shtr_current_projectile,16f) {rectangle1SizeX} $shtr_projectile_col_x {rectangle1SizeY} $shtr_projectile_col_y {rectangle2PositionX} $shtr_enemy_x($shtr_current_enemy,16f) {rectangle2PositionY} $shtr_enemy_y($shtr_current_enemy,16f) {rectangle2SizeX} $shtr_enemy_col_x {rectangle2SizeY} $shtr_enemy_col_y
goto_if_false @SHTR_10691
$shtr_score += 100
$shtr_enemy_alive($shtr_current_enemy,16i) = 2
$shtr_up_projectile_alive($shtr_current_projectile,16i) = 0
$shtr_up_projectile_x($shtr_current_projectile,16f) = 0.0
$shtr_up_projectile_y($shtr_current_projectile,16f) = 0.0
get_game_timer $shtr_exp_start($shtr_current_enemy,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_pickup_counter += 1
if 
  $shtr_pickup_collected == 1
goto_if_false @SHTR_10691
if 
  $shtr_pickup_counter == 8
goto_if_false @SHTR_10671
set_var_float_to_var_float $shtr_pickup_x = $shtr_enemy_x($shtr_current_enemy,16f)
set_var_float_to_var_float $shtr_pickup_y = $shtr_enemy_y($shtr_current_enemy,16f)
$shtr_pickup_collected = 0
goto @SHTR_10691

:SHTR_10671
$shtr_pickup_x = 0.0
$shtr_pickup_y = 0.0

:SHTR_10691
if 
  do_2d_rectangles_collide $shtr_down_projectile_x($shtr_current_projectile,16f) {rectangle1PositionY} $shtr_down_projectile_y($shtr_current_projectile,16f) {rectangle1SizeX} $shtr_projectile_col_x {rectangle1SizeY} $shtr_projectile_col_y {rectangle2PositionX} $shtr_enemy_x($shtr_current_enemy,16f) {rectangle2PositionY} $shtr_enemy_y($shtr_current_enemy,16f) {rectangle2SizeX} $shtr_enemy_col_x {rectangle2SizeY} $shtr_enemy_col_y
goto_if_false @SHTR_10931
$shtr_score += 100
$shtr_enemy_alive($shtr_current_enemy,16i) = 2
$shtr_down_projectile_alive($shtr_current_projectile,16i) = 0
$shtr_down_projectile_x($shtr_current_projectile,16f) = 0.0
$shtr_down_projectile_y($shtr_current_projectile,16f) = 0.0
get_game_timer $shtr_exp_start($shtr_current_enemy,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_pickup_counter += 1
if 
  $shtr_pickup_collected == 1
goto_if_false @SHTR_10931
if 
  $shtr_pickup_counter == 8
goto_if_false @SHTR_10911
set_var_float_to_var_float $shtr_pickup_x = $shtr_enemy_x($shtr_current_enemy,16f)
set_var_float_to_var_float $shtr_pickup_y = $shtr_enemy_y($shtr_current_enemy,16f)
$shtr_pickup_collected = 0
goto @SHTR_10931

:SHTR_10911
$shtr_pickup_x = 0.0
$shtr_pickup_y = 0.0

:SHTR_10931
$shtr_current_projectile += 1
goto @SHTR_10193

:SHTR_10945
if 
  $shtr_enemy_alive($shtr_current_enemy,16i) == 1
goto_if_false @SHTR_11081
if 
  $shtr_player_alive == 1
goto_if_false @SHTR_11081
if 
  do_2d_rectangles_collide $shtr_plyr_x {rectangle1PositionY} $shtr_plyr_y {rectangle1SizeX} 32.0 {rectangle1SizeY} 32.0 {rectangle2PositionX} $shtr_enemy_x($shtr_current_enemy,16f) {rectangle2PositionY} $shtr_enemy_y($shtr_current_enemy,16f) {rectangle2SizeX} $shtr_enemy_col_x {rectangle2SizeY} $shtr_enemy_col_y
goto_if_false @SHTR_11081
$shtr_enemy_alive($shtr_current_enemy,16i) = 2
get_game_timer $shtr_exp_start($shtr_current_enemy,16i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoExplosion
$shtr_player_alive = 0

:SHTR_11081
$shtr_current_enemy += 1
goto @SHTR_10146

:SHTR_11095
return 

:SHTR_11097
$shtr_ranking = 9
$shtr_score_update = 0
$shtr_score_check = 1

:SHTR_11118
if and
  $shtr_ranking >= 0
  $shtr_score_check == 1
goto_if_false @SHTR_11215
if 
  is_int_var_greater_than_int_var $shtr_score > $shtr_hi_s($shtr_ranking,10i)
goto_if_false @SHTR_11201
$shtr_ranking -= 1
$shtr_score_update = 1
$shtr_on_table = 3
$shtr_draw_highlight = 1
goto @SHTR_11208

:SHTR_11201
$shtr_score_check = 0

:SHTR_11208
goto @SHTR_11118

:SHTR_11215
if 
  $shtr_score_update == 1
goto_if_false @SHTR_11412
$shtr_ranking += 1
$shtr_destination_slot = 9
$shtr_source_slot = 8

:SHTR_11254
if 
  is_int_var_greater_or_equal_to_int_var $shtr_source_slot >= $shtr_ranking
goto_if_false @SHTR_11374
set_var_text_label $shtr_hi_1($shtr_destination_slot,10s) = $shtr_hi_1($shtr_source_slot,10s)
set_var_text_label $shtr_hi_2($shtr_destination_slot,10s) = $shtr_hi_2($shtr_source_slot,10s)
set_var_text_label $shtr_hi_3($shtr_destination_slot,10s) = $shtr_hi_3($shtr_source_slot,10s)
set_var_int_to_var_int $shtr_hi_l($shtr_destination_slot,10i) = $shtr_hi_l($shtr_source_slot,10i)
set_var_int_to_var_int $shtr_hi_s($shtr_destination_slot,10i) = $shtr_hi_s($shtr_source_slot,10i)
$shtr_destination_slot -= 1
$shtr_source_slot -= 1
goto @SHTR_11254

:SHTR_11374
set_var_int_to_var_int $shtr_hi_s($shtr_ranking,10i) = $shtr_score
set_var_int_to_var_int $shtr_hi_l($shtr_ranking,10i) = $shtr_level
$shtr_write = 0
$shtr_chars = 10

:SHTR_11412
return 

:SHTR_11414
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_11503
if and
  $LStickY == 0
  $LStickX == 0
goto_if_false @SHTR_11503
$shtr_press = 0

:SHTR_11503
if 
  $shtr_write == 0
goto_if_false @SHTR_11843
set_var_text_label $shtr_hi_1($shtr_ranking,10s) = $shtr_char($shtr_chars,37s)
set_var_text_label $shtr_hi_2($shtr_ranking,10s) = s$shtr_char[10]
set_var_text_label $shtr_hi_3($shtr_ranking,10s) = s$shtr_char[10]
if 
  $shtr_press == 0
goto_if_false @SHTR_11843
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_11682
if 
  36 > $shtr_chars
goto_if_false @SHTR_11648
$shtr_chars += 1
goto @SHTR_11655

:SHTR_11648
$shtr_chars = 0

:SHTR_11655
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_press = 1

:SHTR_11682
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_11785
if 
  $shtr_chars > 0
goto_if_false @SHTR_11751
$shtr_chars -= 1
goto @SHTR_11758

:SHTR_11751
$shtr_chars = 36

:SHTR_11758
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_press = 1

:SHTR_11785
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_11843
$shtr_chars = 10
$shtr_write = 1
$shtr_press = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_11843
if 
  $shtr_write == 1
goto_if_false @SHTR_12159
set_var_text_label $shtr_hi_2($shtr_ranking,10s) = $shtr_char($shtr_chars,37s)
if 
  $shtr_press == 0
goto_if_false @SHTR_12159
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_11998
if 
  36 > $shtr_chars
goto_if_false @SHTR_11964
$shtr_chars += 1
goto @SHTR_11971

:SHTR_11964
$shtr_chars = 0

:SHTR_11971
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_press = 1

:SHTR_11998
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_12101
if 
  $shtr_chars > 0
goto_if_false @SHTR_12067
$shtr_chars -= 1
goto @SHTR_12074

:SHTR_12067
$shtr_chars = 36

:SHTR_12074
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_press = 1

:SHTR_12101
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_12159
$shtr_chars = 10
$shtr_write = 2
$shtr_press = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_12159
if 
  $shtr_write == 2
goto_if_false @SHTR_12475
set_var_text_label $shtr_hi_3($shtr_ranking,10s) = $shtr_char($shtr_chars,37s)
if 
  $shtr_press == 0
goto_if_false @SHTR_12475
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @SHTR_12314
if 
  36 > $shtr_chars
goto_if_false @SHTR_12280
$shtr_chars += 1
goto @SHTR_12287

:SHTR_12280
$shtr_chars = 0

:SHTR_12287
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_press = 1

:SHTR_12314
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @SHTR_12417
if 
  $shtr_chars > 0
goto_if_false @SHTR_12383
$shtr_chars -= 1
goto @SHTR_12390

:SHTR_12383
$shtr_chars = 36

:SHTR_12390
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoSelect
$shtr_press = 1

:SHTR_12417
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SHTR_12475
$shtr_write = 3
$shtr_press = 1
$shtr_on_table = 4
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundGogoAccept

:SHTR_12475
return 

:SHTR_12477
$shtr_hi_loop = 0

:SHTR_12484
if 
  10 > $shtr_hi_loop
goto_if_false @SHTR_12649
gosub @SHTR_6947
display_text $shtr_hi_1_x($shtr_hi_loop,10f) {offsetTop} $shtr_hi_1_y($shtr_hi_loop,10f) {key} $shtr_hi_1($shtr_hi_loop,10s)
gosub @SHTR_6947
display_text $shtr_hi_2_x($shtr_hi_loop,10f) {offsetTop} $shtr_hi_2_y($shtr_hi_loop,10f) {key} $shtr_hi_2($shtr_hi_loop,10s)
gosub @SHTR_6947
display_text $shtr_hi_3_x($shtr_hi_loop,10f) {offsetTop} $shtr_hi_3_y($shtr_hi_loop,10f) {key} $shtr_hi_3($shtr_hi_loop,10s)
gosub @SHTR_6947
set_text_right_justify True
display_text_with_number $shtr_hi_4_x($shtr_hi_loop,10f) {offsetTop} $shtr_hi_4_y($shtr_hi_loop,10f) {key} 'SHTR_LV' {num} $shtr_hi_s($shtr_hi_loop,10i)
$shtr_hi_loop += 1
goto @SHTR_12484

:SHTR_12649
gosub @SHTR_6947
display_text 320.0 {offsetTop} 64.0 {key} 'SHTR_2F'
if and
  $shtr_lives == 0
  $shtr_draw_highlight == 1
goto_if_false @SHTR_13084
if 
  $shtr_write == 0
goto_if_false @SHTR_12769
gosub @SHTR_6947
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
display_text $shtr_hi_1_x($shtr_ranking,10f) {offsetTop} $shtr_hi_1_y($shtr_ranking,10f) {key} $shtr_hi_1($shtr_ranking,10s)
goto @SHTR_12811

:SHTR_12769
gosub @SHTR_6947
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
display_text $shtr_hi_1_x($shtr_ranking,10f) {offsetTop} $shtr_hi_1_y($shtr_ranking,10f) {key} $shtr_hi_1($shtr_ranking,10s)

:SHTR_12811
if 
  $shtr_write == 1
goto_if_false @SHTR_12878
gosub @SHTR_6947
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
display_text $shtr_hi_2_x($shtr_ranking,10f) {offsetTop} $shtr_hi_2_y($shtr_ranking,10f) {key} $shtr_hi_2($shtr_ranking,10s)
goto @SHTR_12920

:SHTR_12878
gosub @SHTR_6947
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
display_text $shtr_hi_2_x($shtr_ranking,10f) {offsetTop} $shtr_hi_2_y($shtr_ranking,10f) {key} $shtr_hi_2($shtr_ranking,10s)

:SHTR_12920
if 
  $shtr_write == 2
goto_if_false @SHTR_12987
gosub @SHTR_6947
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
display_text $shtr_hi_3_x($shtr_ranking,10f) {offsetTop} $shtr_hi_3_y($shtr_ranking,10f) {key} $shtr_hi_3($shtr_ranking,10s)
goto @SHTR_13029

:SHTR_12987
gosub @SHTR_6947
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
display_text $shtr_hi_3_x($shtr_ranking,10f) {offsetTop} $shtr_hi_3_y($shtr_ranking,10f) {key} $shtr_hi_3($shtr_ranking,10s)

:SHTR_13029
gosub @SHTR_6947
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_text_right_justify True
display_text_with_number $shtr_hi_4_x($shtr_ranking,10f) {offsetTop} $shtr_hi_4_y($shtr_ranking,10f) {key} 'SHTR_LV' {num} $shtr_hi_s($shtr_ranking,10i)

:SHTR_13084
return 

:SHTR_13086
$shtr_num_gen = generate_random_int_in_range 1 {max} 30
if 
  $shtr_num_gen == 1
goto_if_false @SHTR_13188
if 
  $6163 == 0
goto_if_false @SHTR_13181
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[23]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[15]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[36]
$6163 = 1
goto @SHTR_13188

:SHTR_13181
goto @SHTR_13086

:SHTR_13188
if 
  $shtr_num_gen == 2
goto_if_false @SHTR_13281
if 
  $6164 == 0
goto_if_false @SHTR_13274
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[18]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[22]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[34]
$6164 = 1
goto @SHTR_13281

:SHTR_13274
goto @SHTR_13086

:SHTR_13281
if 
  $shtr_num_gen == 3
goto_if_false @SHTR_13374
if 
  $6165 == 0
goto_if_false @SHTR_13367
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[32]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[18]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[21]
$6165 = 1
goto @SHTR_13374

:SHTR_13367
goto @SHTR_13086

:SHTR_13374
if 
  $shtr_num_gen == 4
goto_if_false @SHTR_13467
if 
  $6166 == 0
goto_if_false @SHTR_13460
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[12]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[20]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[27]
$6166 = 1
goto @SHTR_13467

:SHTR_13460
goto @SHTR_13086

:SHTR_13467
if 
  $shtr_num_gen == 5
goto_if_false @SHTR_13560
if 
  $6167 == 0
goto_if_false @SHTR_13553
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[13]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[11]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[25]
$6167 = 1
goto @SHTR_13560

:SHTR_13553
goto @SHTR_13086

:SHTR_13560
if 
  $shtr_num_gen == 6
goto_if_false @SHTR_13653
if 
  $6168 == 0
goto_if_false @SHTR_13646
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[13]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[10]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[31]
$6168 = 1
goto @SHTR_13653

:SHTR_13646
goto @SHTR_13086

:SHTR_13653
if 
  $shtr_num_gen == 7
goto_if_false @SHTR_13746
if 
  $6169 == 0
goto_if_false @SHTR_13739
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[13]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[24]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[13]
$6169 = 1
goto @SHTR_13746

:SHTR_13739
goto @SHTR_13086

:SHTR_13746
if 
  $shtr_num_gen == 8
goto_if_false @SHTR_13839
if 
  $6170 == 0
goto_if_false @SHTR_13832
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[28]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[19]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[21]
$6170 = 1
goto @SHTR_13839

:SHTR_13832
goto @SHTR_13086

:SHTR_13839
if 
  $shtr_num_gen == 9
goto_if_false @SHTR_13932
if 
  $6171 == 0
goto_if_false @SHTR_13925
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[28]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[29]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[14]
$6171 = 1
goto @SHTR_13932

:SHTR_13925
goto @SHTR_13086

:SHTR_13932
if 
  $shtr_num_gen == 10
goto_if_false @SHTR_14025
if 
  $6172 == 0
goto_if_false @SHTR_14018
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[19]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[30]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[13]
$6172 = 1
goto @SHTR_14025

:SHTR_14018
goto @SHTR_13086

:SHTR_14025
if 
  $shtr_num_gen == 11
goto_if_false @SHTR_14118
if 
  $6173 == 0
goto_if_false @SHTR_14111
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[20]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[22]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[11]
$6173 = 1
goto @SHTR_14118

:SHTR_14111
goto @SHTR_13086

:SHTR_14118
if 
  $shtr_num_gen == 12
goto_if_false @SHTR_14211
if 
  $6174 == 0
goto_if_false @SHTR_14204
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[16]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[28]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[32]
$6174 = 1
goto @SHTR_14211

:SHTR_14204
goto @SHTR_13086

:SHTR_14211
if 
  $shtr_num_gen == 13
goto_if_false @SHTR_14304
if 
  $6175 == 0
goto_if_false @SHTR_14297
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[13]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[28]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[32]
$6175 = 1
goto @SHTR_14304

:SHTR_14297
goto @SHTR_13086

:SHTR_14304
if 
  $shtr_num_gen == 14
goto_if_false @SHTR_14397
if 
  $6176 == 0
goto_if_false @SHTR_14390
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[32]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[13]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[34]
$6176 = 1
goto @SHTR_14397

:SHTR_14390
goto @SHTR_13086

:SHTR_14397
if 
  $shtr_num_gen == 15
goto_if_false @SHTR_14490
if 
  $6177 == 0
goto_if_false @SHTR_14483
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[16]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[10]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[35]
$6177 = 1
goto @SHTR_14490

:SHTR_14483
goto @SHTR_13086

:SHTR_14490
if 
  $shtr_num_gen == 16
goto_if_false @SHTR_14583
if 
  $6178 == 0
goto_if_false @SHTR_14576
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[32]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[10]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[35]
$6178 = 1
goto @SHTR_14583

:SHTR_14576
goto @SHTR_13086

:SHTR_14583
if 
  $shtr_num_gen == 17
goto_if_false @SHTR_14676
if 
  $6179 == 0
goto_if_false @SHTR_14669
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[20]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[18]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[23]
$6179 = 1
goto @SHTR_14676

:SHTR_14669
goto @SHTR_13086

:SHTR_14676
if 
  $shtr_num_gen == 18
goto_if_false @SHTR_14769
if 
  $6180 == 0
goto_if_false @SHTR_14762
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[11]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[14]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[10]
$6180 = 1
goto @SHTR_14769

:SHTR_14762
goto @SHTR_13086

:SHTR_14769
if 
  $shtr_num_gen == 19
goto_if_false @SHTR_14862
if 
  $6181 == 0
goto_if_false @SHTR_14855
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[11]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[10]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[33]
$6181 = 1
goto @SHTR_14862

:SHTR_14855
goto @SHTR_13086

:SHTR_14862
if 
  $shtr_num_gen == 20
goto_if_false @SHTR_14955
if 
  $6182 == 0
goto_if_false @SHTR_14948
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[21]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[24]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[30]
$6182 = 1
goto @SHTR_14955

:SHTR_14948
goto @SHTR_13086

:SHTR_14955
if 
  $shtr_num_gen == 21
goto_if_false @SHTR_15048
if 
  $6183 == 0
goto_if_false @SHTR_15041
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[19]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[23]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[24]
$6183 = 1
goto @SHTR_15048

:SHTR_15041
goto @SHTR_13086

:SHTR_15048
if 
  $shtr_num_gen == 22
goto_if_false @SHTR_15141
if 
  $6184 == 0
goto_if_false @SHTR_15134
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[22]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[34]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[29]
$6184 = 1
goto @SHTR_15141

:SHTR_15134
goto @SHTR_13086

:SHTR_15141
if 
  $shtr_num_gen == 23
goto_if_false @SHTR_15234
if 
  $6185 == 0
goto_if_false @SHTR_15227
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[13]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[14]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[15]
$6185 = 1
goto @SHTR_15234

:SHTR_15227
goto @SHTR_13086

:SHTR_15234
if 
  $shtr_num_gen == 24
goto_if_false @SHTR_15327
if 
  $6186 == 0
goto_if_false @SHTR_15320
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[20]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[17]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[35]
$6186 = 1
goto @SHTR_15327

:SHTR_15320
goto @SHTR_13086

:SHTR_15327
if 
  $shtr_num_gen == 25
goto_if_false @SHTR_15420
if 
  $6187 == 0
goto_if_false @SHTR_15413
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[22]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[14]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[24]
$6187 = 1
goto @SHTR_15420

:SHTR_15413
goto @SHTR_13086

:SHTR_15420
if 
  $shtr_num_gen == 26
goto_if_false @SHTR_15513
if 
  $6188 == 0
goto_if_false @SHTR_15506
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[16]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[15]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[32]
$6188 = 1
goto @SHTR_15513

:SHTR_15506
goto @SHTR_13086

:SHTR_15513
if 
  $shtr_num_gen == 27
goto_if_false @SHTR_15606
if 
  $6189 == 0
goto_if_false @SHTR_15599
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[32]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[27]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[22]
$6189 = 1
goto @SHTR_15606

:SHTR_15599
goto @SHTR_13086

:SHTR_15606
if 
  $shtr_num_gen == 28
goto_if_false @SHTR_15699
if 
  $6190 == 0
goto_if_false @SHTR_15692
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[10]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[36]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[32]
$6190 = 1
goto @SHTR_15699

:SHTR_15692
goto @SHTR_13086

:SHTR_15699
if 
  $shtr_num_gen == 29
goto_if_false @SHTR_15792
if 
  $6191 == 0
goto_if_false @SHTR_15785
set_var_text_label $shtr_hi_1($shtr_current,10s) = s$shtr_char[27]
set_var_text_label $shtr_hi_2($shtr_current,10s) = s$shtr_char[18]
set_var_text_label $shtr_hi_3($shtr_current,10s) = s$shtr_char[12]
$6191 = 1
goto @SHTR_15792

:SHTR_15785
goto @SHTR_13086

:SHTR_15792
return 

:SHTR_15794
set_var_text_label s$shtr_char[0] = 'SHTR_0'
set_var_text_label s$shtr_char[1] = 'SHTR_1'
set_var_text_label s$shtr_char[2] = 'SHTR_2'
set_var_text_label s$shtr_char[3] = 'SHTR_3'
set_var_text_label s$shtr_char[4] = 'SHTR_4'
set_var_text_label s$shtr_char[5] = 'SHTR_5'
set_var_text_label s$shtr_char[6] = 'SHTR_6'
set_var_text_label s$shtr_char[7] = 'SHTR_7'
set_var_text_label s$shtr_char[8] = 'SHTR_8'
set_var_text_label s$shtr_char[9] = 'SHTR_9'
set_var_text_label s$shtr_char[10] = 'SHTR_A'
set_var_text_label s$shtr_char[11] = 'SHTR_B'
set_var_text_label s$shtr_char[12] = 'SHTR_C'
set_var_text_label s$shtr_char[13] = 'SHTR_D'
set_var_text_label s$shtr_char[14] = 'SHTR_E'
set_var_text_label s$shtr_char[15] = 'SHTR_F'
set_var_text_label s$shtr_char[16] = 'SHTR_G'
set_var_text_label s$shtr_char[17] = 'SHTR_H'
set_var_text_label s$shtr_char[18] = 'SHTR_I'
set_var_text_label s$shtr_char[19] = 'SHTR_J'
set_var_text_label s$shtr_char[20] = 'SHTR_K'
set_var_text_label s$shtr_char[21] = 'SHTR_L'
set_var_text_label s$shtr_char[22] = 'SHTR_M'
set_var_text_label s$shtr_char[23] = 'SHTR_N'
set_var_text_label s$shtr_char[24] = 'SHTR_O'
set_var_text_label s$shtr_char[25] = 'SHTR_P'
set_var_text_label s$shtr_char[26] = 'SHTR_Q'
set_var_text_label s$shtr_char[27] = 'SHTR_R'
set_var_text_label s$shtr_char[28] = 'SHTR_S'
set_var_text_label s$shtr_char[29] = 'SHTR_T'
set_var_text_label s$shtr_char[30] = 'SHTR_U'
set_var_text_label s$shtr_char[31] = 'SHTR_V'
set_var_text_label s$shtr_char[32] = 'SHTR_W'
set_var_text_label s$shtr_char[33] = 'SHTR_X'
set_var_text_label s$shtr_char[34] = 'SHTR_Y'
set_var_text_label s$shtr_char[35] = 'SHTR_Z'
set_var_text_label s$shtr_char[36] = 'SHTR_PE'
$shtr_hi_1_x[0] = 176.0
$shtr_hi_1_y[0] = 96.0
$shtr_hi_2_x[0] = 224.0
$shtr_hi_2_y[0] = 96.0
$shtr_hi_3_x[0] = 272.0
$shtr_hi_3_y[0] = 96.0
$shtr_hi_4_x[0] = 464.0
$shtr_hi_4_y[0] = 96.0
$shtr_hi_1_x[1] = 176.0
$shtr_hi_1_y[1] = 128.0
$shtr_hi_2_x[1] = 224.0
$shtr_hi_2_y[1] = 128.0
$shtr_hi_3_x[1] = 272.0
$shtr_hi_3_y[1] = 128.0
$shtr_hi_4_x[1] = 464.0
$shtr_hi_4_y[1] = 128.0
$shtr_hi_1_x[2] = 176.0
$shtr_hi_1_y[2] = 160.0
$shtr_hi_2_x[2] = 224.0
$shtr_hi_2_y[2] = 160.0
$shtr_hi_3_x[2] = 272.0
$shtr_hi_3_y[2] = 160.0
$shtr_hi_4_x[2] = 464.0
$shtr_hi_4_y[2] = 160.0
$shtr_hi_1_x[3] = 176.0
$shtr_hi_1_y[3] = 192.0
$shtr_hi_2_x[3] = 224.0
$shtr_hi_2_y[3] = 192.0
$shtr_hi_3_x[3] = 272.0
$shtr_hi_3_y[3] = 192.0
$shtr_hi_4_x[3] = 464.0
$shtr_hi_4_y[3] = 192.0
$shtr_hi_1_x[4] = 176.0
$shtr_hi_1_y[4] = 224.0
$shtr_hi_2_x[4] = 224.0
$shtr_hi_2_y[4] = 224.0
$shtr_hi_3_x[4] = 272.0
$shtr_hi_3_y[4] = 224.0
$shtr_hi_4_x[4] = 464.0
$shtr_hi_4_y[4] = 224.0
$shtr_hi_1_x[5] = 176.0
$shtr_hi_1_y[5] = 256.0
$shtr_hi_2_x[5] = 224.0
$shtr_hi_2_y[5] = 256.0
$shtr_hi_3_x[5] = 272.0
$shtr_hi_3_y[5] = 256.0
$shtr_hi_4_x[5] = 464.0
$shtr_hi_4_y[5] = 256.0
$shtr_hi_1_x[6] = 176.0
$shtr_hi_1_y[6] = 288.0
$shtr_hi_2_x[6] = 224.0
$shtr_hi_2_y[6] = 288.0
$shtr_hi_3_x[6] = 272.0
$shtr_hi_3_y[6] = 288.0
$shtr_hi_4_x[6] = 464.0
$shtr_hi_4_y[6] = 288.0
$shtr_hi_1_x[7] = 176.0
$shtr_hi_1_y[7] = 320.0
$shtr_hi_2_x[7] = 224.0
$shtr_hi_2_y[7] = 320.0
$shtr_hi_3_x[7] = 272.0
$shtr_hi_3_y[7] = 320.0
$shtr_hi_4_x[7] = 464.0
$shtr_hi_4_y[7] = 320.0
$shtr_hi_1_x[8] = 176.0
$shtr_hi_1_y[8] = 352.0
$shtr_hi_2_x[8] = 224.0
$shtr_hi_2_y[8] = 352.0
$shtr_hi_3_x[8] = 272.0
$shtr_hi_3_y[8] = 352.0
$shtr_hi_4_x[8] = 464.0
$shtr_hi_4_y[8] = 352.0
$shtr_hi_1_x[9] = 176.0
$shtr_hi_1_y[9] = 384.0
$shtr_hi_2_x[9] = 224.0
$shtr_hi_2_y[9] = 384.0
$shtr_hi_3_x[9] = 272.0
$shtr_hi_3_y[9] = 384.0
$shtr_hi_4_x[9] = 464.0
$shtr_hi_4_y[9] = 384.0
if 
  $shtr_played_before == 0
goto_if_false @SHTR_17436
set_var_text_label s$shtr_hi_1[0] = s$shtr_char[12]
set_var_text_label s$shtr_hi_2[0] = s$shtr_char[36]
set_var_text_label s$shtr_hi_3[0] = s$shtr_char[36]
$shtr_hi_l[0] = 10
$shtr_hi_s[0] = 1000
$shtr_current = 1
gosub @SHTR_13086
$shtr_hi_l[1] = 9
$shtr_hi_s[1] = 900
$shtr_current = 2
gosub @SHTR_13086
$shtr_hi_l[2] = 8
$shtr_hi_s[2] = 800
$shtr_current = 3
gosub @SHTR_13086
$shtr_hi_l[3] = 7
$shtr_hi_s[3] = 700
$shtr_current = 4
gosub @SHTR_13086
$shtr_hi_l[4] = 6
$shtr_hi_s[4] = 600
$shtr_current = 5
gosub @SHTR_13086
$shtr_hi_l[5] = 5
$shtr_hi_s[5] = 500
$shtr_current = 6
gosub @SHTR_13086
$shtr_hi_l[6] = 4
$shtr_hi_s[6] = 400
$shtr_current = 7
gosub @SHTR_13086
$shtr_hi_l[7] = 3
$shtr_hi_s[7] = 300
$shtr_current = 8
gosub @SHTR_13086
$shtr_hi_l[8] = 2
$shtr_hi_s[8] = 200
$shtr_current = 9
gosub @SHTR_13086
$shtr_hi_l[9] = 1
$shtr_hi_s[9] = 100
$shtr_played_before = 1

:SHTR_17436
set_var_int_to_var_int $shtr_hi_score = $shtr_hi_s[0]
return 

:SHTR_17446
$shtr_button1 = 1
$shtr_player_alive = 1
$shtr_front_end = 1
$shtr_score = 0
$shtr_lives = 2
$shtr_button_pressed = 0
$shtr_fire_speed = 15.0
$shtr_plyr_x = 80.0
$shtr_plyr_y = 224.0
$shtr_projectile_size = 8.0
$shtr_shot_angle = 10.0
$shtr_range_start = 1.0
$shtr_range_end = 3.0
$shtr_fire_alive = 0
$unk_5962 = 7.0
$shtr_shot = 0
$shtr_pickup_counter = 0
$shtr_pickup_collected = 1
$shtr_pickup_current = 31
$shtr_speed_pickup = 250
$shtr_auto_pickup = 0
$shtr_multi_pickup = 0
$shtr_pickup_move_switch = 0
$shtr_write = 0
$shtr_draw_highlight = 0
$shtr_enemy_x[0] = 660.0
$shtr_enemy_x[1] = 660.0
$shtr_enemy_x[2] = 660.0
$shtr_enemy_x[3] = 660.0
$shtr_heat_bar = 0
$shtr_start_time = 0
$shtr_end_time = 0
$shtr_time_diff = 0
$shtr_start_time_hit = 0
$shtr_end_time_hit = 0
$shtr_time_diff_hit = 0
$shtr_current_projectile = 1
$shtr_projectile_alive[1] = 0
$shtr_projectile_alive[2] = 0
$shtr_projectile_alive[3] = 0
$shtr_projectile_alive[4] = 0
$shtr_projectile_alive[5] = 0
$shtr_projectile_alive[6] = 0
$shtr_projectile_alive[7] = 0
$shtr_projectile_alive[8] = 0
$shtr_up_projectile_alive[1] = 0
$shtr_up_projectile_alive[2] = 0
$shtr_up_projectile_alive[3] = 0
$shtr_up_projectile_alive[4] = 0
$shtr_up_projectile_alive[5] = 0
$shtr_up_projectile_alive[6] = 0
$shtr_up_projectile_alive[7] = 0
$shtr_up_projectile_alive[8] = 0
$shtr_down_projectile_alive[1] = 0
$shtr_down_projectile_alive[2] = 0
$shtr_down_projectile_alive[3] = 0
$shtr_down_projectile_alive[4] = 0
$shtr_down_projectile_alive[5] = 0
$shtr_down_projectile_alive[6] = 0
$shtr_down_projectile_alive[7] = 0
$shtr_down_projectile_alive[8] = 0
$shtr_enemy_alive[0] = 0
$shtr_enemy_alive[1] = 0
$shtr_enemy_alive[2] = 0
$shtr_enemy_alive[3] = 0
$shtr_enemy_alive[4] = 0
$shtr_enemy_alive[5] = 0
$shtr_enemy_alive[6] = 0
$shtr_enemy_alive[7] = 0
$shtr_enemy_shot_alive[0] = 0
$shtr_enemy_shot_alive[1] = 0
$shtr_enemy_shot_alive[2] = 0
$shtr_enemy_shot_alive[3] = 0
$shtr_enemy_shot_alive[4] = 0
$shtr_enemy_shot_alive[5] = 0
$shtr_enemy_shot_alive[6] = 0
$shtr_enemy_shot_alive[7] = 0
$shtr_respawn = 0
$shtr_random = 0
$shtr_enemy_col_x = 32.0
$shtr_enemy_col_y = 32.0
$shtr_projectile_col_x = 8.0
$shtr_projectile_col_y = 8.0
$shtr_plyr_col_x = 32.0
$shtr_plyr_col_y = 32.0
$shtr_amplitude = 0.0
return 

//-------------Mission 6---------------
// Originally: Video Game: Let's Get Ready To Bumble

:GRAV
gosub @GRAV_36
if 
  has_deatharrest_been_executed 
goto_if_false @GRAV_27
gosub @GRAV_6531

:GRAV_27
gosub @GRAV_6551
terminate_this_script 

:GRAV_36
$onmission = 1
register_mission_given 
script_name 'GRAV'
wait 0
load_mission_text 'GRAV'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1810

:GRAV_78
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GRAV_104
wait 0
goto @GRAV_78

:GRAV_104
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} False
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 50.0 {clearParticles} False
shut_all_chars_up True
use_text_commands True
set_text_centre True
set_text_scale 3.0 {heightScale} 3.0
load_texture_dictionary 'LD_GRAV'
load_sprite 1 {spriteName} "SKY"
load_sprite 2 {spriteName} "BEEA"
load_sprite 3 {spriteName} "FLWRA"
load_sprite 4 {spriteName} "GHOST"
load_sprite 5 {spriteName} "LEAF"
load_sprite 6 {spriteName} "FLWR"
load_sprite 7 {spriteName} "TVCORN"
load_sprite 8 {spriteName} "TVL"
load_sprite 9 {spriteName} "TVR"
load_sprite 10 {spriteName} "THORN"
load_sprite 11 {spriteName} "BEE2"
load_sprite 12 {spriteName} "BEE1"
load_sprite 13 {spriteName} "HIVE"
load_sprite 14 {spriteName} "TIMER"
load_sprite 15 {spriteName} "BUMBLE"
load_sprite 16 {spriteName} "PLAYW"
load_sprite 17 {spriteName} "PLAYY"
load_sprite 18 {spriteName} "HISCOREW"
load_sprite 19 {spriteName} "HISCOREY"
load_sprite 20 {spriteName} "EXITW"
load_sprite 21 {spriteName} "EXITY"
set_var_text_label s$grav_char[0] = 'GRAV_0'
set_var_text_label s$grav_char[1] = 'GRAV_1'
set_var_text_label s$grav_char[2] = 'GRAV_2'
set_var_text_label s$grav_char[3] = 'GRAV_3'
set_var_text_label s$grav_char[4] = 'GRAV_4'
set_var_text_label s$grav_char[5] = 'GRAV_5'
set_var_text_label s$grav_char[6] = 'GRAV_6'
set_var_text_label s$grav_char[7] = 'GRAV_7'
set_var_text_label s$grav_char[8] = 'GRAV_8'
set_var_text_label s$grav_char[9] = 'GRAV_9'
set_var_text_label s$grav_char[10] = 'GRAV_A'
set_var_text_label s$grav_char[11] = 'GRAV_B'
set_var_text_label s$grav_char[12] = 'GRAV_C'
set_var_text_label s$grav_char[13] = 'GRAV_D'
set_var_text_label s$grav_char[14] = 'GRAV_E'
set_var_text_label s$grav_char[15] = 'GRAV_F'
set_var_text_label s$grav_char[16] = 'GRAV_G'
set_var_text_label s$grav_char[17] = 'GRAV_H'
set_var_text_label s$grav_char[18] = 'GRAV_I'
set_var_text_label s$grav_char[19] = 'GRAV_J'
set_var_text_label s$grav_char[20] = 'GRAV_K'
set_var_text_label s$grav_char[21] = 'GRAV_L'
set_var_text_label s$grav_char[22] = 'GRAV_M'
set_var_text_label s$grav_char[23] = 'GRAV_N'
set_var_text_label s$grav_char[24] = 'GRAV_O'
set_var_text_label s$grav_char[25] = 'GRAV_P'
set_var_text_label s$grav_char[26] = 'GRAV_Q'
set_var_text_label s$grav_char[27] = 'GRAV_R'
set_var_text_label s$grav_char[28] = 'GRAV_S'
set_var_text_label s$grav_char[29] = 'GRAV_T'
set_var_text_label s$grav_char[30] = 'GRAV_U'
set_var_text_label s$grav_char[31] = 'GRAV_V'
set_var_text_label s$grav_char[32] = 'GRAV_W'
set_var_text_label s$grav_char[33] = 'GRAV_X'
set_var_text_label s$grav_char[34] = 'GRAV_Y'
set_var_text_label s$grav_char[35] = 'GRAV_Z'
set_var_text_label s$grav_char[36] = 'GRAV_PE'
$grav_hi_1_x[0] = 176.0
$grav_hi_1_y[0] = 96.0
$grav_hi_2_x[0] = 224.0
$grav_hi_2_y[0] = 96.0
$grav_hi_3_x[0] = 272.0
$grav_hi_3_y[0] = 96.0
$grav_hi_4_x[0] = 464.0
$grav_hi_4_y[0] = 96.0
$grav_hi_1_x[1] = 176.0
$grav_hi_1_y[1] = 128.0
$grav_hi_2_x[1] = 224.0
$grav_hi_2_y[1] = 128.0
$grav_hi_3_x[1] = 272.0
$grav_hi_3_y[1] = 128.0
$grav_hi_4_x[1] = 464.0
$grav_hi_4_y[1] = 128.0
$grav_hi_1_x[2] = 176.0
$grav_hi_1_y[2] = 160.0
$grav_hi_2_x[2] = 224.0
$grav_hi_2_y[2] = 160.0
$grav_hi_3_x[2] = 272.0
$grav_hi_3_y[2] = 160.0
$grav_hi_4_x[2] = 464.0
$grav_hi_4_y[2] = 160.0
$grav_hi_1_x[3] = 176.0
$grav_hi_1_y[3] = 192.0
$grav_hi_2_x[3] = 224.0
$grav_hi_2_y[3] = 192.0
$grav_hi_3_x[3] = 272.0
$grav_hi_3_y[3] = 192.0
$grav_hi_4_x[3] = 464.0
$grav_hi_4_y[3] = 192.0
$grav_hi_1_x[4] = 176.0
$grav_hi_1_y[4] = 224.0
$grav_hi_2_x[4] = 224.0
$grav_hi_2_y[4] = 224.0
$grav_hi_3_x[4] = 272.0
$grav_hi_3_y[4] = 224.0
$grav_hi_4_x[4] = 464.0
$grav_hi_4_y[4] = 224.0
$grav_hi_1_x[5] = 176.0
$grav_hi_1_y[5] = 256.0
$grav_hi_2_x[5] = 224.0
$grav_hi_2_y[5] = 256.0
$grav_hi_3_x[5] = 272.0
$grav_hi_3_y[5] = 256.0
$grav_hi_4_x[5] = 464.0
$grav_hi_4_y[5] = 256.0
$grav_hi_1_x[6] = 176.0
$grav_hi_1_y[6] = 288.0
$grav_hi_2_x[6] = 224.0
$grav_hi_2_y[6] = 288.0
$grav_hi_3_x[6] = 272.0
$grav_hi_3_y[6] = 288.0
$grav_hi_4_x[6] = 464.0
$grav_hi_4_y[6] = 288.0
$grav_hi_1_x[7] = 176.0
$grav_hi_1_y[7] = 320.0
$grav_hi_2_x[7] = 224.0
$grav_hi_2_y[7] = 320.0
$grav_hi_3_x[7] = 272.0
$grav_hi_3_y[7] = 320.0
$grav_hi_4_x[7] = 464.0
$grav_hi_4_y[7] = 320.0
$grav_hi_1_x[8] = 176.0
$grav_hi_1_y[8] = 352.0
$grav_hi_2_x[8] = 224.0
$grav_hi_2_y[8] = 352.0
$grav_hi_3_x[8] = 272.0
$grav_hi_3_y[8] = 352.0
$grav_hi_4_x[8] = 464.0
$grav_hi_4_y[8] = 352.0
$grav_hi_1_x[9] = 176.0
$grav_hi_1_y[9] = 384.0
$grav_hi_2_x[9] = 224.0
$grav_hi_2_y[9] = 384.0
$grav_hi_3_x[9] = 272.0
$grav_hi_3_y[9] = 384.0
$grav_hi_4_x[9] = 464.0
$grav_hi_4_y[9] = 384.0
if 
  $grav_played_before == 0
goto_if_false @GRAV_2054
set_var_text_label s$grav_hi_1[0] = s$grav_char[12]
set_var_text_label s$grav_hi_2[0] = s$grav_char[36]
set_var_text_label s$grav_hi_3[0] = s$grav_char[36]
$grav_hi_l[0] = 10
$grav_hi_s[0] = 1000
$grav_current = 1
gosub @GRAV_13469
$grav_hi_l[1] = 9
$grav_hi_s[1] = 900
$grav_current = 2
gosub @GRAV_13469
$grav_hi_l[2] = 8
$grav_hi_s[2] = 800
$grav_current = 3
gosub @GRAV_13469
$grav_hi_l[3] = 7
$grav_hi_s[3] = 700
$grav_current = 4
gosub @GRAV_13469
$grav_hi_l[4] = 6
$grav_hi_s[4] = 600
$grav_current = 5
gosub @GRAV_13469
$grav_hi_l[5] = 5
$grav_hi_s[5] = 500
$grav_current = 6
gosub @GRAV_13469
$grav_hi_l[6] = 4
$grav_hi_s[6] = 400
$grav_current = 7
gosub @GRAV_13469
$grav_hi_l[7] = 3
$grav_hi_s[7] = 300
$grav_current = 8
gosub @GRAV_13469
$grav_hi_l[8] = 2
$grav_hi_s[8] = 200
$grav_current = 9
gosub @GRAV_13469
$grav_hi_l[9] = 1
$grav_hi_s[9] = 100
$grav_played_before = 1

:GRAV_2054
set_lvar_int_to_var_int 57@ = $grav_hi_s[0]

:GRAV_2062
$grav_next_level = 1
54@ = 0
$grav_level = 0
$nGameState = 1
51@ = 2
47@ = 1
43@ = 180.0
44@ = 2.0
$grav_screen_y = 3648.0
$grav_plyr_dead_speed = 2.5
$grav_countdown_max = 120000
$grav_pickups = 0
$grav_speed_x = 0.0
$grav_speed_y = 0.0
56@ = 0
$grav_countdown_start = get_game_timer 
$grav_ground = 0

:GRAV_2200
wait 0
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
do_fade 0 {direction} Fade.In
34@, 35@, 36@, 37@ = get_position_of_analogue_sticks PadId.Pad1

:GRAV_2442
if 
  58@ == 1
goto_if_false @GRAV_2497
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ == 0
goto_if_false @GRAV_2497
58@ = 0

:GRAV_2497
if 
  $nGameState == 1
goto_if_false @GRAV_2735
draw_sprite 15 {offsetLeft} 320.0 {offsetTop} 196.0 {width} 256.0 {height} 128.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 17 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 18 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 20 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_2735
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeAccept
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStart
$grav_help_start = get_game_timer 
$nGameState = 0
TIMERA = 0

:GRAV_2735
if 
  $nGameState == 2
goto_if_false @GRAV_2953
draw_sprite 15 {offsetLeft} 320.0 {offsetTop} 196.0 {width} 256.0 {height} 128.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 16 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 19 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 20 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_2953
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeAccept
$grav_help_start = get_game_timer 
$grav_on_table = 4
$nGameState = 4

:GRAV_2953
if 
  $nGameState == 3
goto_if_false @GRAV_3165
draw_sprite 15 {offsetLeft} 320.0 {offsetTop} 196.0 {width} 256.0 {height} 128.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 16 {offsetLeft} 320.0 {offsetTop} 312.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 18 {offsetLeft} 320.0 {offsetTop} 344.0 {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 21 {offsetLeft} 320.0 {offsetTop} 376.0 {width} 64.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_3165
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeDecline
do_fade 0 {direction} Fade.Out
goto @GRAV_6551

:GRAV_3165
if 
  58@ == 0
goto_if_false @GRAV_3627
if 
  $nGameState == 1
goto_if_false @GRAV_3331
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > 35@
goto_if_false @GRAV_3266
$nGameState = 3
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2442

:GRAV_3266
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ > 64
goto_if_false @GRAV_3331
$nGameState = 2
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2442

:GRAV_3331
if 
  $nGameState == 2
goto_if_false @GRAV_3479
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > 35@
goto_if_false @GRAV_3414
$nGameState = 1
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2442

:GRAV_3414
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ > 64
goto_if_false @GRAV_3479
$nGameState = 3
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2442

:GRAV_3479
if 
  $nGameState == 3
goto_if_false @GRAV_3627
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > 35@
goto_if_false @GRAV_3562
$nGameState = 2
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2442

:GRAV_3562
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  35@ > 64
goto_if_false @GRAV_3627
$nGameState = 1
58@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeSelect
goto @GRAV_2442

:GRAV_3627
if 
  $nGameState == 0
goto_if_false @GRAV_5140
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @GRAV_3667
51@ += 1

:GRAV_3667
34@, 35@, 36@, 37@ = get_position_of_analogue_sticks PadId.Pad1
if 
  47@ == 1
goto_if_false @GRAV_4331
if 
  $grav_buzz == 12
goto_if_false @GRAV_3758
if 
  TIMERB > 10
goto_if_false @GRAV_3751
$grav_buzz = 11
TIMERB = 0

:GRAV_3751
goto @GRAV_3790

:GRAV_3758
if 
  TIMERB > 10
goto_if_false @GRAV_3790
$grav_buzz = 12
TIMERB = 0

:GRAV_3790
if 
  34@ == 0
goto_if_false @GRAV_3889
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GRAV_3889
if 
  43@ > 180.0
goto_if_false @GRAV_3860
sub_float_lvar_from_float_lvar 43@ -= 44@

:GRAV_3860
if 
  180.0 > 43@
goto_if_false @GRAV_3889
add_float_lvar_to_float_lvar 43@ += 44@

:GRAV_3889
if and
  34@ > 0
  64 > 34@
goto_if_false @GRAV_3943
if 
  195.0 > 43@
goto_if_false @GRAV_3943
add_float_lvar_to_float_lvar 43@ += 44@

:GRAV_3943
if and
  0 > 34@
  34@ > -64
goto_if_false @GRAV_3997
if 
  43@ > 165.0
goto_if_false @GRAV_3997
sub_float_lvar_from_float_lvar 43@ -= 44@

:GRAV_3997
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GRAV_4076
if 
  210.0 > 43@
goto_if_false @GRAV_4076
43@ += 4.0
if 
  180.0 > 43@
goto_if_false @GRAV_4076
43@ += 4.0

:GRAV_4076
if and
  34@ > 63
  130 > 34@
goto_if_false @GRAV_4164
if 
  210.0 > 43@
goto_if_false @GRAV_4164
43@ += 4.0
if 
  180.0 > 43@
goto_if_false @GRAV_4164
43@ += 4.0

:GRAV_4164
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GRAV_4243
if 
  43@ > 150.0
goto_if_false @GRAV_4243
43@ -= 4.0
if 
  43@ > 180.0
goto_if_false @GRAV_4243
43@ -= 4.0

:GRAV_4243
if and
  -63 > 34@
  34@ > -130
goto_if_false @GRAV_4331
if 
  43@ > 150.0
goto_if_false @GRAV_4331
43@ -= 4.0
if 
  43@ > 180.0
goto_if_false @GRAV_4331
43@ -= 4.0

:GRAV_4331
if 
  $grav_next_level == 1
goto_if_false @GRAV_4808
$grav_plyr_x = 300.0
$grav_plyr_y = 4096.0
gosub @GRAV_8566
gosub @GRAV_6741
set_var_float_to_var_float $grav_plyr_x = $grav_dead_x
set_var_float_to_var_float $grav_plyr_y = $grav_dead_y
$grav_next_level = 0
60@ = 1
do_fade 0 {direction} Fade.In

:GRAV_4419
if 
  get_fading_status 
goto_if_false @GRAV_4803
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_4419

:GRAV_4803
$grav_countdown_start = get_game_timer 

:GRAV_4808
if 
  $grav_next_level == 0
goto_if_false @GRAV_4872
gosub @GRAV_11542
if 
  47@ == 1
goto_if_false @GRAV_4865
gosub @GRAV_7557
gosub @GRAV_10265

:GRAV_4865
gosub @GRAV_10661

:GRAV_4872
if 
  47@ == 0
goto_if_false @GRAV_4936
if 
  51@ > 0
goto_if_false @GRAV_4936
TIMERA = 0
51@ -= 1
47@ = 2
gosub @GRAV_7179

:GRAV_4936
if 
  47@ == 2
goto_if_false @GRAV_5032
if 
  do_2d_rectangles_collide $grav_plyr_x {rectangle1PositionY} $grav_plyr_y {rectangle1SizeX} 4.0 {rectangle1SizeY} 4.0 {rectangle2PositionX} $grav_dead_x {rectangle2PositionY} $grav_dead_y {rectangle2SizeX} 4.0 {rectangle2SizeY} 4.0
goto_if_false @GRAV_5032
47@ = 1
43@ = 180.0
set_var_float_to_var_float $grav_plyr_x = $grav_dead_x
set_var_float_to_var_float $grav_plyr_y = $grav_dead_y

:GRAV_5032
if 
  $nGameState == 0
goto_if_false @GRAV_5140
if 
  47@ == 0
goto_if_false @GRAV_5140
if 
  51@ == 0
goto_if_false @GRAV_5140
$nGameState = 4
$grav_on_table = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStop
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeGameOver

:GRAV_5140
if 
  $nGameState == 4
goto_if_false @GRAV_5209
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $grav_on_table <> 1
goto_if_false @GRAV_5209
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStop
goto @GRAV_2062

:GRAV_5209
if 
  $nGameState == 4
goto_if_false @GRAV_5522
if 
  $grav_on_table == 0
goto_if_false @GRAV_5297
gosub @GRAV_6703
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'GR_A_5'
$grav_start_time = get_game_timer 
$grav_on_table = 1

:GRAV_5297
if 
  $grav_on_table == 1
goto_if_false @GRAV_5407
gosub @GRAV_6703
set_text_scale 2.0 {heightScale} 4.0
display_text 320.0 {offsetTop} 196.0 {key} 'GR_A_5'
$grav_end_time = get_game_timer 
$grav_end_time = get_game_timer 
set_var_int_to_var_int $grav_time_diff = $grav_end_time
sub_int_var_from_int_var $grav_time_diff -= $grav_start_time
if 
  $grav_time_diff > 5000
goto_if_false @GRAV_5407
$grav_on_table = 2

:GRAV_5407
if 
  $grav_on_table == 2
goto_if_false @GRAV_5465
if 
  is_int_var_greater_than_int_lvar $grav_hi_s[9] > 54@
goto_if_false @GRAV_5458
$grav_on_table = 4
goto @GRAV_5465

:GRAV_5458
gosub @GRAV_11656

:GRAV_5465
if 
  $grav_on_table == 3
goto_if_false @GRAV_5497
gosub @GRAV_11973
gosub @GRAV_12856

:GRAV_5497
if 
  $grav_on_table == 4
goto_if_false @GRAV_5522
gosub @GRAV_12856

:GRAV_5522
if 
  $nGameState == 0
goto_if_false @GRAV_6205
gosub @GRAV_6703
display_text_with_number 560.0 {offsetTop} 390.0 {key} 'VP15' {num} 51@
draw_sprite_with_rotation 2 {offsetLeft} 560.0 {offsetTop} 390.0 {width} 44.0 {height} 44.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
draw_sprite_with_rotation 12 {offsetLeft} 560.0 {offsetTop} 390.0 {width} 36.0 {height} 36.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
gosub @GRAV_6703
display_text_with_number 90.0 {offsetTop} 390.0 {key} 'VP15' {num} $grav_pickups_display
draw_sprite_with_rotation 3 {offsetLeft} 90.0 {offsetTop} 390.0 {width} 40.0 {height} 40.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
draw_sprite_with_rotation 6 {offsetLeft} 90.0 {offsetTop} 390.0 {width} 32.0 {height} 32.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
set_var_int_to_var_int $grav_countdown_secs = $grav_countdown
$grav_countdown_secs /= 1000
set_var_int_to_var_int $minutes = $grav_countdown_secs
$minutes /= 60
set_var_int_to_var_int $grav_countdown_temp = $minutes
$grav_countdown_temp *= 60
sub_int_var_from_int_var $grav_countdown_secs -= $grav_countdown_temp
gosub @GRAV_6703
if 
  $grav_countdown_secs > 9
goto_if_false @GRAV_5879
display_text_with_2_numbers 320.0 {offsetTop} 390.0 {key} 'TIME' {num1} $minutes {num2} $grav_countdown_secs
goto @GRAV_5906

:GRAV_5879
display_text_with_2_numbers 320.0 {offsetTop} 390.0 {key} 'TIME_0' {num1} $minutes {num2} $grav_countdown_secs

:GRAV_5906
draw_sprite_with_rotation 14 {offsetLeft} 320.0 {offsetTop} 390.0 {width} 40.0 {height} 40.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
gosub @GRAV_6703
display_text_with_number 320.0 {offsetTop} 70.0 {key} 'VP15' {num} 54@
draw_sprite_with_rotation 13 {offsetLeft} 320.0 {offsetTop} 70.0 {width} 40.0 {height} 40.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 150
$grav_countdown_end = get_game_timer 
set_var_int_to_var_int $grav_countdown_diff = $grav_countdown_end
sub_int_var_from_int_var $grav_countdown_diff -= $grav_countdown_start
if 
  is_int_var_greater_than_int_var $grav_countdown_max > $grav_countdown_diff
goto_if_false @GRAV_6082
set_var_int_to_var_int $grav_countdown = $grav_countdown_max
sub_int_var_from_int_var $grav_countdown -= $grav_countdown_diff
goto @GRAV_6205

:GRAV_6082
if 
  47@ == 1
goto_if_false @GRAV_6205
if 
  51@ > 0
goto_if_false @GRAV_6144
51@ -= 1
$grav_next_level = 1
$grav_countdown_start = get_game_timer 
goto @GRAV_6205

:GRAV_6144
47@ = 0
$nGameState = 4
$grav_on_table = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeTrackStop
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeGameOver

:GRAV_6205
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
if 
  $nGameState == 0
goto_if_false @GRAV_6367

:GRAV_6367
if 
  $nGameState == 4
goto_if_false @GRAV_6524
if 
  $grav_on_table == 4
goto_if_false @GRAV_6524
$grav_help_end = get_game_timer 
set_var_int_to_var_int $grav_help_diff = $grav_help_end
sub_int_var_from_int_var $grav_help_diff -= $grav_help_start
if 
  10000 > $grav_help_diff
goto_if_false @GRAV_6524
draw_window 35.0 {leftTopY} 15.0 {rightBottomX} 200.0 {rightBottomY} 45.0 {header} 'DUMMY' {zIndex} 0
set_text_centre False
set_text_wrapx 230.0
set_text_font Font.Subtitles
set_text_scale 0.5 {heightScale} 1.8
display_text 40.0 {offsetTop} 20.0 {key} 'GR_BCK'

:GRAV_6524
goto @GRAV_2200

:GRAV_6531
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 
return 

:GRAV_6551
clear_mission_audio MissionAudioSlot.Slot4
clear_this_print 'BUSY'
shut_all_chars_up False
clear_onscreen_counter $grav_countdown
if 
  is_player_playing $player1
goto_if_false @GRAV_6686
if 
  locate_char_on_foot_3d $scplayer {x} $gravX {y} $gravY {z} $gravZ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GRAV_6665
set_var_float_to_var_float $y = $gravY
$y += 2.0
set_char_coordinates $scplayer {x} $gravX {y} $y {z} $gravZ

:GRAV_6665
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In

:GRAV_6686
set_music_does_fade True
remove_texture_dictionary 
$onmission = 0
mission_has_finished 
return 

:GRAV_6703
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
return 

:GRAV_6741
674@ = 99999.8984
678@ = 0

:GRAV_6758
if and
  51 > 678@
  471@(678@,101f) <> 999.0
  0.1 <= 471@(678@,101f)
goto_if_false @GRAV_7177
set_var_float_to_var_float $grav_temp_y = $grav_plyr_y
if 
  $grav_temp_y > 3000.0
goto_if_false @GRAV_6940
if 
  4100.0 > $grav_temp_y
goto_if_false @GRAV_6940
673@ = get_distance_between_coords_2d $grav_plyr_x {fromY} $grav_plyr_y {toX} 471@(678@,101f) {toZ} 572@(678@,101f)
if 
  is_float_lvar_greater_than_float_lvar 674@ > 673@
goto_if_false @GRAV_6940
set_lvar_float_to_lvar_float 674@ = 673@
set_var_float_to_lvar_float $grav_dead_x = 471@(678@,101f)
set_var_float_to_lvar_float $grav_dead_y = 572@(678@,101f)
$grav_dead_y -= 32.0

:GRAV_6940
678@ += 1
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
set_lvar_int_to_var_int 59@ = $grav_level
59@ += 1
display_text_with_number 320.0 {offsetTop} 224.0 {key} 'GR_LVL' {num} 59@
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_6758

:GRAV_7177
return 

:GRAV_7179
674@ = 99999.8984
673@ = 0.0
678@ = 0

:GRAV_7206
if and
  51 > 678@
  471@(678@,101f) <> 999.0
  0.1 <= 471@(678@,101f)
goto_if_false @GRAV_7403
set_var_float_to_lvar_float $grav_temp_y = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if and
  $grav_temp_y > -200.0
  600.0 > $grav_temp_y
goto_if_false @GRAV_7389
673@ = get_distance_between_coords_2d $grav_plyr_x {fromY} $grav_plyr_y {toX} 471@(678@,101f) {toZ} 572@(678@,101f)
if 
  is_float_lvar_greater_than_float_lvar 674@ > 673@
goto_if_false @GRAV_7389
set_lvar_float_to_lvar_float 674@ = 673@
set_var_float_to_lvar_float $grav_dead_x = 471@(678@,101f)
set_var_float_to_lvar_float $grav_dead_y = 572@(678@,101f)
$grav_dead_y -= 32.0

:GRAV_7389
678@ += 1
goto @GRAV_7206

:GRAV_7403
set_var_float_to_var_float $grav_velocity_x = $grav_dead_x
sub_float_var_from_float_var $grav_velocity_x -= $grav_plyr_x
set_var_float_to_var_float $grav_velocity_y = $grav_dead_y
sub_float_var_from_float_var $grav_velocity_y -= $grav_plyr_y
set_var_float_to_var_float $grav_temp_1 = $grav_velocity_x
mult_float_var_by_float_var $grav_temp_1 *= $grav_velocity_x
set_var_float_to_var_float $grav_temp_2 = $grav_velocity_y
mult_float_var_by_float_var $grav_temp_2 *= $grav_velocity_y
set_var_float_to_var_float $grav_velocity_mag_sqr = $grav_temp_1
add_float_var_to_float_var $grav_velocity_mag_sqr += $grav_temp_2
$grav_velocity_mag = sqrt $grav_velocity_mag_sqr
set_var_float_to_var_float $grav_temp_1 = $grav_velocity_x
div_float_var_by_float_var $grav_temp_1 /= $grav_velocity_mag
set_var_float_to_var_float $grav_temp_2 = $grav_velocity_y
div_float_var_by_float_var $grav_temp_2 /= $grav_velocity_mag
set_var_float_to_var_float $grav_speed_x = $grav_plyr_dead_speed
mult_float_var_by_float_var $grav_speed_x *= $grav_temp_1
set_var_float_to_var_float $grav_speed_y = $grav_plyr_dead_speed
mult_float_var_by_float_var $grav_speed_y *= $grav_temp_2
return 

:GRAV_7557
678@ = 0

:GRAV_7564
if and
  51 > 678@
  269@(678@,101f) <> 999.0
goto_if_false @GRAV_7931
set_var_float_to_lvar_float $grav_temp_y = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if and
  $grav_temp_y > -64.0
  480.0 > $grav_temp_y
goto_if_false @GRAV_7917
if 
  do_2d_rectangles_collide $grav_plyr_x {rectangle1PositionY} $grav_plyr_y {rectangle1SizeX} 32.0 {rectangle1SizeY} 44.0 {rectangle2PositionX} 269@(678@,101f) {rectangle2PositionY} 370@(678@,101f) {rectangle2SizeX} 32.0 {rectangle2SizeY} 32.0
goto_if_false @GRAV_7917
269@(678@,101f) = 999.0
if 
  $grav_pickups_display <> 1
goto_if_false @GRAV_7780
54@ += 10
$grav_pickups += 1
$grav_pickups_display -= 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeePickup
goto @GRAV_7901

:GRAV_7780
add_int_var_to_int_lvar 54@ += $grav_pickups
$grav_countdown /= 100
add_int_var_to_int_lvar 54@ += $grav_countdown
$grav_pickups = 0
$grav_level += 1
set_lvar_int_to_lvar_int 55@ = 54@
sub_int_lvar_from_int_lvar 55@ -= 56@
set_lvar_int_to_lvar_int 56@ = 55@
if 
  55@ > 665
goto_if_false @GRAV_7887
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeAccept
51@ += 1

:GRAV_7887
$grav_next_level = 1
TIMERA = 0

:GRAV_7901
269@(678@,101f) = -999.0
return 

:GRAV_7917
678@ += 1
goto @GRAV_7564

:GRAV_7931
678@ = 0

:GRAV_7938
if and
  51 > 678@
  471@(678@,101f) <> 999.0
goto_if_false @GRAV_8366
set_var_float_to_lvar_float $grav_temp_y = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if and
  $grav_temp_y > -64.0
  480.0 > $grav_temp_y
goto_if_false @GRAV_8352
if 
  do_2d_rectangles_collide $grav_plyr_x {rectangle1PositionY} $grav_plyr_y {rectangle1SizeX} 32.0 {rectangle1SizeY} 44.0 {rectangle2PositionX} 471@(678@,101f) {rectangle2PositionY} 572@(678@,101f) {rectangle2SizeX} 96.0 {rectangle2SizeY} 32.0
goto_if_false @GRAV_8345
set_var_float_to_var_float $grav_temp_y = $grav_plyr_y
$grav_temp_y += 12.0
if 
  is_float_lvar_greater_than_float_var 572@(678@,101f) > $grav_temp_y
goto_if_false @GRAV_8288
if 
  $grav_ground == 0
goto_if_false @GRAV_8281
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  0.0 > $grav_speed_y
goto_if_false @GRAV_8281
set_var_float_to_lvar_float $grav_temp_x = 471@(678@,101f)
$grav_temp_x -= 52.0
if 
  not is_float_var_greater_than_float_var $grav_temp_x > $grav_plyr_x
goto_if_false @GRAV_8281
set_var_float_to_lvar_float $grav_temp_x = 471@(678@,101f)
$grav_temp_x += 52.0
if 
  not is_float_var_greater_than_float_var $grav_plyr_x > $grav_temp_x
goto_if_false @GRAV_8281
$grav_speed_y *= -0.1
set_var_float_to_lvar_float $grav_plyr_y = 572@(678@,101f)
$grav_plyr_y -= 38.0
$grav_ground = 1

:GRAV_8281
goto @GRAV_8338

:GRAV_8288
$grav_speed_x *= -0.5
$grav_speed_y *= -0.5
$grav_plyr_y += 4.0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeDrop

:GRAV_8338
goto @GRAV_8352

:GRAV_8345
$grav_ground = 0

:GRAV_8352
678@ += 1
goto @GRAV_7938

:GRAV_8366
678@ = 0

:GRAV_8373
if and
  100 > 678@
  67@(678@,101f) <> 999.0
goto_if_false @GRAV_8564
set_var_float_to_lvar_float $grav_temp_y = 168@(678@,101f)
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if and
  $grav_temp_y > -64.0
  480.0 > $grav_temp_y
goto_if_false @GRAV_8550
if 
  do_2d_rectangles_collide $grav_plyr_x {rectangle1PositionY} $grav_plyr_y {rectangle1SizeX} 32.0 {rectangle1SizeY} 44.0 {rectangle2PositionX} 67@(678@,101f) {rectangle2PositionY} 168@(678@,101f) {rectangle2SizeX} 128.0 {rectangle2SizeY} 40.0
goto_if_false @GRAV_8550
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeZap
60@ = 0
47@ = 0
TIMERA = 0

:GRAV_8550
678@ += 1
goto @GRAV_8373

:GRAV_8564
return 

:GRAV_8566
do_fade 0 {direction} Fade.Out

:GRAV_8572
if 
  get_fading_status 
goto_if_false @GRAV_8956
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_8572

:GRAV_8956
678@ = 0
set_var_int_to_var_int $grav_temp1 = $grav_level
$grav_temp1 += 1
$grav_temp1 *= 10
if 
  $grav_temp1 > 50
goto_if_false @GRAV_9010
$grav_temp1 = 50

:GRAV_9010
if 
  is_int_var_greater_than_int_lvar $grav_temp1 > 678@
goto_if_false @GRAV_9331
$grav_temp = generate_random_int_in_range 2 {max} 7
$grav_temp *= 80
cset_var_float_to_var_int $grav_temp_x =# $grav_temp
$grav_temp2 = generate_random_int_in_range 0 {max} 30
$grav_temp2 *= 128
set_lvar_float_to_var_float 67@(678@,101f) = $grav_temp_x
cset_lvar_float_to_var_int 168@(678@,101f) =# $grav_temp2
678@ += 1
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
set_lvar_int_to_var_int 59@ = $grav_level
59@ += 1
display_text_with_number 320.0 {offsetTop} 224.0 {key} 'GR_LVL' {num} 59@
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_9010

:GRAV_9331
67@(678@,101f) = 999.0
168@(678@,101f) = 999.0
678@ = 0

:GRAV_9366
if 
  is_int_var_greater_than_int_lvar $grav_temp1 > 678@
goto_if_false @GRAV_9735
$grav_temp = generate_random_int_in_range 2 {max} 7
$grav_temp *= 80
cset_var_float_to_var_int $grav_temp_x =# $grav_temp
$grav_temp2 = generate_random_int_in_range 0 {max} 32
$grav_temp2 *= 128
$grav_temp2 += 64
set_lvar_float_to_var_float 269@(678@,101f) = $grav_temp_x
cset_lvar_float_to_var_int 370@(678@,101f) =# $grav_temp2
$grav_temp_x -= 48.0
$grav_temp2 += 32
set_lvar_float_to_var_float 471@(678@,101f) = $grav_temp_x
cset_lvar_float_to_var_int 572@(678@,101f) =# $grav_temp2
678@ += 1
set_text_colour 168 {green} 142 {blue} 51 {alpha} 255
set_text_scale 1.0 {heightScale} 2.0
set_text_centre True
set_text_wrapx 640.0
set_lvar_int_to_var_int 59@ = $grav_level
59@ += 1
display_text_with_number 320.0 {offsetTop} 224.0 {key} 'GR_LVL' {num} 59@
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 7 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
wait 0
goto @GRAV_9366

:GRAV_9735
269@(678@,101f) = 999.0
370@(678@,101f) = 999.0
471@(678@,101f) = 999.0
572@(678@,101f) = 999.0
set_var_int_to_var_int $grav_total_pickups = $grav_temp1
set_var_int_to_var_int $grav_pickups_display = $grav_total_pickups
set_lvar_int_to_var_int 678@ = $grav_temp1
67@(678@,101f) = 52.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 164.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 268.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 372.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 476.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 580.0
168@(678@,101f) = 4096.0
678@ += 1
67@(678@,101f) = 52.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 164.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 268.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 372.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 476.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 580.0
168@(678@,101f) = 0.0
678@ += 1
67@(678@,101f) = 999.0
168@(678@,101f) = 999.0
return 

:GRAV_10265
if 
  47@ == 1
goto_if_false @GRAV_10659
if 
  50.0 > $grav_plyr_x
goto_if_false @GRAV_10314
$grav_plyr_x = 50.0

:GRAV_10314
if 
  $grav_plyr_x > 590.0
goto_if_false @GRAV_10345
$grav_plyr_x = 590.0

:GRAV_10345
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_10428
if 
  $grav_ground == 1
goto_if_false @GRAV_10397
$grav_ground = 0
add_timed_val_to_float_var $grav_speed_y +=@ 1.0

:GRAV_10397
if 
  20.0 > $grav_speed_y
goto_if_false @GRAV_10428
add_timed_val_to_float_var $grav_speed_y +=@ 0.1

:GRAV_10428
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @GRAV_10494
if 
  $grav_ground == 0
goto_if_false @GRAV_10494
if 
  $grav_speed_y > 0.0
goto_if_false @GRAV_10494
sub_timed_val_from_float_var $grav_speed_y -=@ 0.05

:GRAV_10494
set_var_float_to_var_float $grav_temp_x = $grav_speed_x
$grav_temp_x /= 16.0
sub_timed_float_var_from_float_var $grav_speed_x -=@ $grav_temp_x
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GRAV_10544
34@ = -127

:GRAV_10544
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GRAV_10568
34@ = 127

:GRAV_10568
cset_var_float_to_lvar_int $grav_temp_x =# 34@
$grav_temp_x /= 512.0
add_timed_float_var_to_float_var $grav_speed_x +=@ $grav_temp_x
add_timed_float_var_to_float_var $grav_plyr_x +=@ $grav_speed_x
if 
  $grav_ground == 0
goto_if_false @GRAV_10651
if 
  $grav_speed_y > -20.0
goto_if_false @GRAV_10651
sub_timed_val_from_float_var $grav_speed_y -=@ 0.05

:GRAV_10651
sub_timed_float_var_from_float_var $grav_plyr_y -=@ $grav_speed_y

:GRAV_10659
return 

:GRAV_10661
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 128.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 384.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 128.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 1 {offsetLeft} 640.0 {offsetTop} 384.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
678@ = 0

:GRAV_10884
if and
  100 > 678@
  67@(678@,101f) <> 999.0
goto_if_false @GRAV_11017
set_var_float_to_lvar_float $grav_temp_y = 168@(678@,101f)
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if and
  $grav_temp_y > -64.0
  480.0 > $grav_temp_y
goto_if_false @GRAV_11003
draw_sprite 10 {offsetLeft} 67@(678@,101f) {offsetTop} $grav_temp_y {width} 128.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:GRAV_11003
678@ += 1
goto @GRAV_10884

:GRAV_11017
678@ = 0

:GRAV_11024
if and
  100 > 678@
  269@(678@,101f) <> 999.0
goto_if_false @GRAV_11157
set_var_float_to_lvar_float $grav_temp_y = 370@(678@,101f)
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if and
  $grav_temp_y > -64.0
  480.0 > $grav_temp_y
goto_if_false @GRAV_11143
draw_sprite 6 {offsetLeft} 269@(678@,101f) {offsetTop} $grav_temp_y {width} 32.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:GRAV_11143
678@ += 1
goto @GRAV_11024

:GRAV_11157
678@ = 0

:GRAV_11164
if and
  100 > 678@
  471@(678@,101f) <> 999.0
goto_if_false @GRAV_11297
set_var_float_to_lvar_float $grav_temp_y = 572@(678@,101f)
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if and
  $grav_temp_y > -64.0
  480.0 > $grav_temp_y
goto_if_false @GRAV_11283
draw_sprite 5 {offsetLeft} 471@(678@,101f) {offsetTop} $grav_temp_y {width} 128.0 {height} 32.0 {r} 150 {g} 150 {b} 150 {a} 255

:GRAV_11283
678@ += 1
goto @GRAV_11164

:GRAV_11297
set_var_float_to_var_float $grav_temp_x = $grav_plyr_x
sub_float_var_from_float_var $grav_temp_x -= $grav_screen_x
set_var_float_to_var_float $grav_temp_y = $grav_plyr_y
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if 
  47@ == 1
goto_if_false @GRAV_11469
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_11406
draw_sprite_with_rotation 12 {offsetLeft} $grav_temp_x {offsetTop} $grav_temp_y {width} 48.0 {height} 48.0 {angle} 43@ {red} 150 {green} 150 {blue} 150 {alpha} 255
goto @GRAV_11462

:GRAV_11406
draw_sprite_with_rotation $grav_buzz {offsetLeft} $grav_temp_x {offsetTop} $grav_temp_y {width} 48.0 {height} 48.0 {angle} 43@ {red} 150 {green} 150 {blue} 150 {alpha} 255
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBeeBuzz

:GRAV_11462
goto @GRAV_11540

:GRAV_11469
if 
  47@ == 2
goto_if_false @GRAV_11540
draw_sprite_with_rotation 4 {offsetLeft} $grav_temp_x {offsetTop} $grav_temp_y {width} 48.0 {height} 48.0 {angle} 180.0 {red} 150 {green} 150 {blue} 150 {alpha} 255
add_timed_float_var_to_float_var $grav_plyr_x +=@ $grav_speed_x
add_timed_float_var_to_float_var $grav_plyr_y +=@ $grav_speed_y

:GRAV_11540
return 

:GRAV_11542
set_var_float_to_var_float $grav_temp_y = $grav_plyr_y
sub_float_var_from_float_var $grav_temp_y -= $grav_screen_y
if 
  200.0 > $grav_temp_y
goto_if_false @GRAV_11605
$grav_screen_temp_y = 200.0
sub_float_var_from_float_var $grav_screen_temp_y -= $grav_temp_y
sub_float_var_from_float_var $grav_screen_y -= $grav_screen_temp_y

:GRAV_11605
if 
  $grav_temp_y > 300.0
goto_if_false @GRAV_11652
set_var_float_to_var_float $grav_screen_temp_y = $grav_temp_y
$grav_screen_temp_y -= 300.0
add_float_var_to_float_var $grav_screen_y += $grav_screen_temp_y

:GRAV_11652
return 
return 

:GRAV_11656
$grav_ranking = 9
$grav_score_update = 0
$grav_score_check = 1

:GRAV_11677
if and
  $grav_ranking >= 0
  $grav_score_check == 1
goto_if_false @GRAV_11774
if 
  is_int_lvar_greater_than_int_var 54@ > $grav_hi_s($grav_ranking,10i)
goto_if_false @GRAV_11760
$grav_ranking -= 1
$grav_score_update = 1
$grav_on_table = 3
$grav_draw_highlight = 1
goto @GRAV_11767

:GRAV_11760
$grav_score_check = 0

:GRAV_11767
goto @GRAV_11677

:GRAV_11774
if 
  $grav_score_update == 1
goto_if_false @GRAV_11971
$grav_ranking += 1
$grav_destination_slot = 9
$grav_source_slot = 8

:GRAV_11813
if 
  is_int_var_greater_or_equal_to_int_var $grav_source_slot >= $grav_ranking
goto_if_false @GRAV_11933
set_var_text_label $grav_hi_1($grav_destination_slot,10s) = $grav_hi_1($grav_source_slot,10s)
set_var_text_label $grav_hi_2($grav_destination_slot,10s) = $grav_hi_2($grav_source_slot,10s)
set_var_text_label $grav_hi_3($grav_destination_slot,10s) = $grav_hi_3($grav_source_slot,10s)
set_var_int_to_var_int $grav_hi_l($grav_destination_slot,10i) = $grav_hi_l($grav_source_slot,10i)
set_var_int_to_var_int $grav_hi_s($grav_destination_slot,10i) = $grav_hi_s($grav_source_slot,10i)
$grav_destination_slot -= 1
$grav_source_slot -= 1
goto @GRAV_11813

:GRAV_11933
set_var_int_to_lvar_int $grav_hi_s($grav_ranking,10i) = 54@
set_var_int_to_var_int $grav_hi_l($grav_ranking,10i) = $grav_level
$grav_write = 0
$grav_chars = 10

:GRAV_11971
return 

:GRAV_11973
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12062
if and
  $LStickY == 0
  $LStickX == 0
goto_if_false @GRAV_12062
$grav_press = 0

:GRAV_12062
if 
  $grav_write == 0
goto_if_false @GRAV_12342
set_var_text_label $grav_hi_1($grav_ranking,10s) = $grav_char($grav_chars,37s)
set_var_text_label $grav_hi_2($grav_ranking,10s) = s$grav_char[10]
set_var_text_label $grav_hi_3($grav_ranking,10s) = s$grav_char[10]
if 
  $grav_press == 0
goto_if_false @GRAV_12342
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12221
if 
  36 > $grav_chars
goto_if_false @GRAV_12207
$grav_chars += 1
goto @GRAV_12214

:GRAV_12207
$grav_chars = 0

:GRAV_12214
$grav_press = 1

:GRAV_12221
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12304
if 
  $grav_chars > 0
goto_if_false @GRAV_12290
$grav_chars -= 1
goto @GRAV_12297

:GRAV_12290
$grav_chars = 36

:GRAV_12297
$grav_press = 1

:GRAV_12304
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12342
$grav_chars = 10
$grav_write = 1
$grav_press = 1

:GRAV_12342
if 
  $grav_write == 1
goto_if_false @GRAV_12598
set_var_text_label $grav_hi_2($grav_ranking,10s) = $grav_char($grav_chars,37s)
if 
  $grav_press == 0
goto_if_false @GRAV_12598
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12477
if 
  36 > $grav_chars
goto_if_false @GRAV_12463
$grav_chars += 1
goto @GRAV_12470

:GRAV_12463
$grav_chars = 0

:GRAV_12470
$grav_press = 1

:GRAV_12477
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12560
if 
  $grav_chars > 0
goto_if_false @GRAV_12546
$grav_chars -= 1
goto @GRAV_12553

:GRAV_12546
$grav_chars = 36

:GRAV_12553
$grav_press = 1

:GRAV_12560
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12598
$grav_chars = 10
$grav_write = 2
$grav_press = 1

:GRAV_12598
if 
  $grav_write == 2
goto_if_false @GRAV_12854
set_var_text_label $grav_hi_3($grav_ranking,10s) = $grav_char($grav_chars,37s)
if 
  $grav_press == 0
goto_if_false @GRAV_12854
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
  -100 > $LStickY
goto_if_false @GRAV_12733
if 
  36 > $grav_chars
goto_if_false @GRAV_12719
$grav_chars += 1
goto @GRAV_12726

:GRAV_12719
$grav_chars = 0

:GRAV_12726
$grav_press = 1

:GRAV_12733
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
  $LStickY > 100
goto_if_false @GRAV_12816
if 
  $grav_chars > 0
goto_if_false @GRAV_12802
$grav_chars -= 1
goto @GRAV_12809

:GRAV_12802
$grav_chars = 36

:GRAV_12809
$grav_press = 1

:GRAV_12816
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GRAV_12854
$grav_write = 3
$grav_press = 1
$grav_on_table = 4

:GRAV_12854
return 

:GRAV_12856
$grav_hi_loop = 0

:GRAV_12863
if 
  10 > $grav_hi_loop
goto_if_false @GRAV_13028
gosub @GRAV_6703
display_text $grav_hi_1_x($grav_hi_loop,10f) {offsetTop} $grav_hi_1_y($grav_hi_loop,10f) {key} $grav_hi_1($grav_hi_loop,10s)
gosub @GRAV_6703
display_text $grav_hi_2_x($grav_hi_loop,10f) {offsetTop} $grav_hi_2_y($grav_hi_loop,10f) {key} $grav_hi_2($grav_hi_loop,10s)
gosub @GRAV_6703
display_text $grav_hi_3_x($grav_hi_loop,10f) {offsetTop} $grav_hi_3_y($grav_hi_loop,10f) {key} $grav_hi_3($grav_hi_loop,10s)
gosub @GRAV_6703
set_text_right_justify True
display_text_with_number $grav_hi_4_x($grav_hi_loop,10f) {offsetTop} $grav_hi_4_y($grav_hi_loop,10f) {key} 'GRAV_LV' {num} $grav_hi_s($grav_hi_loop,10i)
$grav_hi_loop += 1
goto @GRAV_12863

:GRAV_13028
gosub @GRAV_6703
display_text 320.0 {offsetTop} 64.0 {key} 'GRAV_2F'
if and
  51@ == 0
  $grav_draw_highlight == 1
goto_if_false @GRAV_13467
if 
  $grav_write == 0
goto_if_false @GRAV_13148
gosub @GRAV_6703
set_text_colour 255 {green} 64 {blue} 0 {alpha} 255
display_text $grav_hi_1_x($grav_ranking,10f) {offsetTop} $grav_hi_1_y($grav_ranking,10f) {key} $grav_hi_1($grav_ranking,10s)
goto @GRAV_13191

:GRAV_13148
gosub @GRAV_6703
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text $grav_hi_1_x($grav_ranking,10f) {offsetTop} $grav_hi_1_y($grav_ranking,10f) {key} $grav_hi_1($grav_ranking,10s)

:GRAV_13191
if 
  $grav_write == 1
goto_if_false @GRAV_13258
gosub @GRAV_6703
set_text_colour 255 {green} 64 {blue} 0 {alpha} 255
display_text $grav_hi_2_x($grav_ranking,10f) {offsetTop} $grav_hi_2_y($grav_ranking,10f) {key} $grav_hi_2($grav_ranking,10s)
goto @GRAV_13301

:GRAV_13258
gosub @GRAV_6703
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text $grav_hi_2_x($grav_ranking,10f) {offsetTop} $grav_hi_2_y($grav_ranking,10f) {key} $grav_hi_2($grav_ranking,10s)

:GRAV_13301
if 
  $grav_write == 2
goto_if_false @GRAV_13368
gosub @GRAV_6703
set_text_colour 255 {green} 64 {blue} 0 {alpha} 255
display_text $grav_hi_3_x($grav_ranking,10f) {offsetTop} $grav_hi_3_y($grav_ranking,10f) {key} $grav_hi_3($grav_ranking,10s)
goto @GRAV_13411

:GRAV_13368
gosub @GRAV_6703
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text $grav_hi_3_x($grav_ranking,10f) {offsetTop} $grav_hi_3_y($grav_ranking,10f) {key} $grav_hi_3($grav_ranking,10s)

:GRAV_13411
gosub @GRAV_6703
set_text_right_justify True
set_text_colour 255 {green} 128 {blue} 0 {alpha} 255
display_text_with_number $grav_hi_4_x($grav_ranking,10f) {offsetTop} $grav_hi_4_y($grav_ranking,10f) {key} 'GRAV_LV' {num} $grav_hi_s($grav_ranking,10i)

:GRAV_13467
return 

:GRAV_13469
$grav_num_gen = generate_random_int_in_range 1 {max} 30
if 
  $grav_num_gen == 1
goto_if_false @GRAV_13571
if 
  $6409 == 0
goto_if_false @GRAV_13564
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[23]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[15]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[36]
$6409 = 1
goto @GRAV_13571

:GRAV_13564
goto @GRAV_13469

:GRAV_13571
if 
  $grav_num_gen == 2
goto_if_false @GRAV_13664
if 
  $6410 == 0
goto_if_false @GRAV_13657
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[18]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[22]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[34]
$6410 = 1
goto @GRAV_13664

:GRAV_13657
goto @GRAV_13469

:GRAV_13664
if 
  $grav_num_gen == 3
goto_if_false @GRAV_13757
if 
  $6411 == 0
goto_if_false @GRAV_13750
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[32]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[18]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[21]
$6411 = 1
goto @GRAV_13757

:GRAV_13750
goto @GRAV_13469

:GRAV_13757
if 
  $grav_num_gen == 4
goto_if_false @GRAV_13850
if 
  $6412 == 0
goto_if_false @GRAV_13843
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[12]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[20]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[27]
$6412 = 1
goto @GRAV_13850

:GRAV_13843
goto @GRAV_13469

:GRAV_13850
if 
  $grav_num_gen == 5
goto_if_false @GRAV_13943
if 
  $6413 == 0
goto_if_false @GRAV_13936
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[13]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[11]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[25]
$6413 = 1
goto @GRAV_13943

:GRAV_13936
goto @GRAV_13469

:GRAV_13943
if 
  $grav_num_gen == 6
goto_if_false @GRAV_14036
if 
  $6414 == 0
goto_if_false @GRAV_14029
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[13]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[10]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[31]
$6414 = 1
goto @GRAV_14036

:GRAV_14029
goto @GRAV_13469

:GRAV_14036
if 
  $grav_num_gen == 7
goto_if_false @GRAV_14129
if 
  $6415 == 0
goto_if_false @GRAV_14122
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[13]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[24]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[13]
$6415 = 1
goto @GRAV_14129

:GRAV_14122
goto @GRAV_13469

:GRAV_14129
if 
  $grav_num_gen == 8
goto_if_false @GRAV_14222
if 
  $6416 == 0
goto_if_false @GRAV_14215
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[28]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[19]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[21]
$6416 = 1
goto @GRAV_14222

:GRAV_14215
goto @GRAV_13469

:GRAV_14222
if 
  $grav_num_gen == 9
goto_if_false @GRAV_14315
if 
  $6417 == 0
goto_if_false @GRAV_14308
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[28]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[29]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[14]
$6417 = 1
goto @GRAV_14315

:GRAV_14308
goto @GRAV_13469

:GRAV_14315
if 
  $grav_num_gen == 10
goto_if_false @GRAV_14408
if 
  $6418 == 0
goto_if_false @GRAV_14401
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[19]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[30]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[13]
$6418 = 1
goto @GRAV_14408

:GRAV_14401
goto @GRAV_13469

:GRAV_14408
if 
  $grav_num_gen == 11
goto_if_false @GRAV_14501
if 
  $6419 == 0
goto_if_false @GRAV_14494
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[20]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[22]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[11]
$6419 = 1
goto @GRAV_14501

:GRAV_14494
goto @GRAV_13469

:GRAV_14501
if 
  $grav_num_gen == 12
goto_if_false @GRAV_14594
if 
  $6420 == 0
goto_if_false @GRAV_14587
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[16]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[28]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[32]
$6420 = 1
goto @GRAV_14594

:GRAV_14587
goto @GRAV_13469

:GRAV_14594
if 
  $grav_num_gen == 13
goto_if_false @GRAV_14687
if 
  $6421 == 0
goto_if_false @GRAV_14680
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[13]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[28]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[32]
$6421 = 1
goto @GRAV_14687

:GRAV_14680
goto @GRAV_13469

:GRAV_14687
if 
  $grav_num_gen == 14
goto_if_false @GRAV_14780
if 
  $6422 == 0
goto_if_false @GRAV_14773
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[32]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[13]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[34]
$6422 = 1
goto @GRAV_14780

:GRAV_14773
goto @GRAV_13469

:GRAV_14780
if 
  $grav_num_gen == 15
goto_if_false @GRAV_14873
if 
  $6423 == 0
goto_if_false @GRAV_14866
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[16]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[10]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[35]
$6423 = 1
goto @GRAV_14873

:GRAV_14866
goto @GRAV_13469

:GRAV_14873
if 
  $grav_num_gen == 16
goto_if_false @GRAV_14966
if 
  $6424 == 0
goto_if_false @GRAV_14959
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[32]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[10]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[35]
$6424 = 1
goto @GRAV_14966

:GRAV_14959
goto @GRAV_13469

:GRAV_14966
if 
  $grav_num_gen == 17
goto_if_false @GRAV_15059
if 
  $6425 == 0
goto_if_false @GRAV_15052
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[20]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[18]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[23]
$6425 = 1
goto @GRAV_15059

:GRAV_15052
goto @GRAV_13469

:GRAV_15059
if 
  $grav_num_gen == 18
goto_if_false @GRAV_15152
if 
  $6426 == 0
goto_if_false @GRAV_15145
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[11]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[14]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[10]
$6426 = 1
goto @GRAV_15152

:GRAV_15145
goto @GRAV_13469

:GRAV_15152
if 
  $grav_num_gen == 19
goto_if_false @GRAV_15245
if 
  $6427 == 0
goto_if_false @GRAV_15238
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[11]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[10]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[33]
$6427 = 1
goto @GRAV_15245

:GRAV_15238
goto @GRAV_13469

:GRAV_15245
if 
  $grav_num_gen == 20
goto_if_false @GRAV_15338
if 
  $6428 == 0
goto_if_false @GRAV_15331
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[21]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[24]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[30]
$6428 = 1
goto @GRAV_15338

:GRAV_15331
goto @GRAV_13469

:GRAV_15338
if 
  $grav_num_gen == 21
goto_if_false @GRAV_15431
if 
  $6429 == 0
goto_if_false @GRAV_15424
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[19]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[23]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[24]
$6429 = 1
goto @GRAV_15431

:GRAV_15424
goto @GRAV_13469

:GRAV_15431
if 
  $grav_num_gen == 22
goto_if_false @GRAV_15524
if 
  $6430 == 0
goto_if_false @GRAV_15517
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[22]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[34]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[29]
$6430 = 1
goto @GRAV_15524

:GRAV_15517
goto @GRAV_13469

:GRAV_15524
if 
  $grav_num_gen == 23
goto_if_false @GRAV_15617
if 
  $6431 == 0
goto_if_false @GRAV_15610
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[13]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[14]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[15]
$6431 = 1
goto @GRAV_15617

:GRAV_15610
goto @GRAV_13469

:GRAV_15617
if 
  $grav_num_gen == 24
goto_if_false @GRAV_15710
if 
  $6432 == 0
goto_if_false @GRAV_15703
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[20]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[17]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[35]
$6432 = 1
goto @GRAV_15710

:GRAV_15703
goto @GRAV_13469

:GRAV_15710
if 
  $grav_num_gen == 25
goto_if_false @GRAV_15803
if 
  $6433 == 0
goto_if_false @GRAV_15796
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[22]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[14]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[24]
$6433 = 1
goto @GRAV_15803

:GRAV_15796
goto @GRAV_13469

:GRAV_15803
if 
  $grav_num_gen == 26
goto_if_false @GRAV_15896
if 
  $6434 == 0
goto_if_false @GRAV_15889
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[16]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[15]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[32]
$6434 = 1
goto @GRAV_15896

:GRAV_15889
goto @GRAV_13469

:GRAV_15896
if 
  $grav_num_gen == 27
goto_if_false @GRAV_15989
if 
  $6435 == 0
goto_if_false @GRAV_15982
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[32]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[27]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[22]
$6435 = 1
goto @GRAV_15989

:GRAV_15982
goto @GRAV_13469

:GRAV_15989
if 
  $grav_num_gen == 28
goto_if_false @GRAV_16082
if 
  $6436 == 0
goto_if_false @GRAV_16075
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[10]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[36]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[32]
$6436 = 1
goto @GRAV_16082

:GRAV_16075
goto @GRAV_13469

:GRAV_16082
if 
  $grav_num_gen == 29
goto_if_false @GRAV_16175
if 
  $6437 == 0
goto_if_false @GRAV_16168
set_var_text_label $grav_hi_1($grav_current,10s) = s$grav_char[27]
set_var_text_label $grav_hi_2($grav_current,10s) = s$grav_char[18]
set_var_text_label $grav_hi_3($grav_current,10s) = s$grav_char[12]
$6437 = 1
goto @GRAV_16175

:GRAV_16168
goto @GRAV_13469

:GRAV_16175
return 

//-------------Mission 7---------------
// Originally: Video Game: Inside Track Betting

:OTB
gosub @OTB_16
gosub @OTB_13293
terminate_this_script 

:OTB_16
$onmission = 1
script_name 'OTB'
wait 0
load_mission_text 'OTB'
use_text_commands True
load_texture_dictionary 'LD_OTB2'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1821
load_sprite 1 {spriteName} "BUTNA"
load_sprite 2 {spriteName} "BUTNB"
load_sprite 3 {spriteName} "BUTNC"
load_sprite 4 {spriteName} "RIC1"
load_sprite 5 {spriteName} "RIC2"
load_sprite 6 {spriteName} "RIC3"
load_sprite 7 {spriteName} "RIC4"
load_sprite 8 {spriteName} "RIC5"
load_sprite 9 {spriteName} "BACKBET"
load_sprite 10 {spriteName} "BUTNAO"
load_sprite 11 {spriteName} "BUTNBO"
34@ = 58.8281
35@ = 225.0068
36@ = 131.5202
set_lvar_float_to_lvar_float 37@ = 36@
add_float_lvar_to_float_lvar 37@ += 34@
set_lvar_float_to_lvar_float 38@ = 37@
add_float_lvar_to_float_lvar 38@ += 34@
set_lvar_float_to_lvar_float 39@ = 38@
add_float_lvar_to_float_lvar 39@ += 34@
set_lvar_float_to_lvar_float 40@ = 39@
add_float_lvar_to_float_lvar 40@ += 34@
45@ = 93.8682
46@ = 42.34
47@ = 463.313
55@ = 191.6589
set_lvar_float_to_lvar_float 48@ = 47@
add_float_lvar_to_float_lvar 48@ += 45@
set_lvar_float_to_lvar_float 56@ = 55@
set_lvar_float_to_lvar_float 49@ = 47@
set_lvar_float_to_lvar_float 57@ = 55@
add_float_lvar_to_float_lvar 57@ += 46@
set_lvar_float_to_lvar_float 50@ = 47@
add_float_lvar_to_float_lvar 50@ += 45@
set_lvar_float_to_lvar_float 58@ = 55@
add_float_lvar_to_float_lvar 58@ += 46@
set_lvar_float_to_lvar_float 51@ = 49@
set_lvar_float_to_lvar_float 59@ = 57@
add_float_lvar_to_float_lvar 59@ += 46@
set_lvar_float_to_lvar_float 52@ = 51@
add_float_lvar_to_float_lvar 52@ += 45@
set_lvar_float_to_lvar_float 60@ = 59@
set_lvar_float_to_lvar_float 53@ = 51@
set_lvar_float_to_lvar_float 61@ = 59@
add_float_lvar_to_float_lvar 61@ += 46@
set_lvar_float_to_lvar_float 54@ = 51@
add_float_lvar_to_float_lvar 54@ += 45@
set_lvar_float_to_lvar_float 62@ = 59@
add_float_lvar_to_float_lvar 62@ += 46@
63@ = 510.0702
64@ = 385.0263
65@ = 1
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 1
71@ = 1
72@ = 1
73@ = 1
74@ = 1
75@ = 1
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 5
90@ = 25
91@ = 100
92@ = 250
93@ = 1000
94@ = 5000
95@ = 10000
set_lvar_text_label 97@s = 'HORS__1'
set_lvar_text_label 99@s = 'HORS__2'
set_lvar_text_label 101@s = 'HORS__3'
set_lvar_text_label 103@s = 'HORS__4'
set_lvar_text_label 105@s = 'HORS__5'
set_lvar_text_label 107@s = 'HORS__6'
set_lvar_text_label 109@s = 'HORS__7'
set_lvar_text_label 111@s = 'HORS__8'
set_lvar_text_label 113@s = 'HORS__9'
set_lvar_text_label 115@s = 'HORS_10'
set_lvar_text_label 117@s = 'HORS_11'
set_lvar_text_label 119@s = 'HORS_12'
set_lvar_text_label 121@s = 'HORS_13'
set_lvar_text_label 123@s = 'HORS_14'
set_lvar_text_label 125@s = 'HORS_15'
set_lvar_text_label 127@s = 'HORS_16'
set_lvar_text_label 129@s = 'HORS_17'
set_lvar_text_label 131@s = 'HORS_18'
set_lvar_text_label 133@s = 'HORS_19'
set_lvar_text_label 135@s = 'HORS_20'
set_lvar_text_label 137@s = 'HORS_21'
set_lvar_text_label 139@s = 'HORS_22'
set_lvar_text_label 141@s = 'HORS_23'
set_lvar_text_label 143@s = 'HORS_24'
set_lvar_text_label 145@s = 'HORS_25'
set_lvar_text_label 147@s = 'HORS_26'
set_lvar_text_label 149@s = 'HORS_27'
set_lvar_text_label 151@s = 'HORS_28'
set_lvar_text_label 153@s = 'HORS_29'
set_lvar_text_label 155@s = 'HORS_30'
set_lvar_text_label 157@s = 'HORS_31'
set_lvar_text_label 159@s = 'HORS_32'
set_lvar_text_label 161@s = 'HORS_33'
set_lvar_text_label 163@s = 'HORS_34'
set_lvar_text_label 165@s = 'HORS_35'
set_lvar_text_label 167@s = 'HORS_36'
set_lvar_text_label 169@s = 'HORS_37'
set_lvar_text_label 171@s = 'HORS_38'
set_lvar_text_label 173@s = 'HORS_39'
set_lvar_text_label 175@s = 'HORS_40'
set_lvar_text_label 177@s = 'HORS_41'
set_lvar_text_label 179@s = 'HORS_42'
set_lvar_text_label 181@s = 'HORS_43'
set_lvar_text_label 183@s = 'HORS_44'
set_lvar_text_label 185@s = 'HORS_45'
set_lvar_text_label 187@s = 'HORS_46'
set_lvar_text_label 189@s = 'HORS_47'
set_lvar_text_label 191@s = 'HORS_48'
set_lvar_text_label 193@s = 'HORS_49'
set_lvar_text_label 195@s = 'HORS_50'
set_lvar_text_label 197@s = 'HORS_51'
set_lvar_text_label 199@s = 'HORS_52'
set_lvar_text_label 201@s = 'HORS_53'
set_lvar_text_label 203@s = 'HORS_54'
set_lvar_text_label 205@s = 'HORS_55'
set_lvar_text_label 207@s = 'HORS_56'
set_lvar_text_label 209@s = 'HORS_57'
set_lvar_text_label 211@s = 'HORS_58'
set_lvar_text_label 213@s = 'HORS_59'
set_lvar_text_label 215@s = 'HORS_60'
set_lvar_text_label 217@s = 'HORS_61'
set_lvar_text_label 219@s = 'HORS_62'
set_lvar_text_label 221@s = 'HORS_63'
set_lvar_text_label 223@s = 'HORS_64'
set_lvar_text_label 225@s = 'HORS_65'
set_lvar_text_label 227@s = 'HORS_66'
set_lvar_text_label 229@s = 'HORS_67'
set_lvar_text_label 231@s = 'HORS_68'
set_lvar_text_label 233@s = 'HORS_69'
set_lvar_text_label 235@s = 'HORS_70'
set_lvar_text_label 237@s = 'HORS_71'
set_lvar_text_label 239@s = 'HORS_72'
set_lvar_text_label 241@s = 'HORS_73'
set_lvar_text_label 243@s = 'HORS_74'
set_lvar_text_label 245@s = 'HORS_75'
set_lvar_text_label 247@s = 'HORS_76'
set_lvar_text_label 249@s = 'HORS_77'
set_lvar_text_label 251@s = 'HORS_78'
set_lvar_text_label 253@s = 'HORS_79'
set_lvar_text_label 255@s = 'HORS_80'
set_lvar_text_label 257@s = 'HORS_81'
set_lvar_text_label 259@s = 'HORS_82'
set_lvar_text_label 261@s = 'HORS_83'
set_lvar_text_label 263@s = 'HORS_84'
set_lvar_text_label 265@s = 'HORS_85'
set_lvar_text_label 267@s = 'HORS_86'
set_lvar_text_label 269@s = 'HORS_87'
set_lvar_text_label 271@s = 'HORS_88'
set_lvar_text_label 273@s = 'HORS_89'
set_lvar_text_label 275@s = 'HORS_90'
set_lvar_text_label 277@s = 'HORS_91'
set_lvar_text_label 279@s = 'HORS_92'
set_lvar_text_label 281@s = 'HORS_93'
set_lvar_text_label 283@s = 'HORS_94'
set_lvar_text_label 285@s = 'HORS_95'
set_lvar_text_label 287@s = 'HORS_96'
set_lvar_text_label 289@s = 'HORS_97'
set_lvar_text_label 291@s = 'HORS_98'
set_lvar_text_label 293@s = 'HORS_99'
set_lvar_text_label 295@s = 'HORS100'
set_lvar_text_label 297@s = 'HORS101'
set_lvar_text_label 299@s = 'HORS102'
set_lvar_text_label 301@s = 'HORS103'
set_lvar_text_label 303@s = 'HORS104'
set_lvar_text_label 305@s = 'HORS105'
set_lvar_text_label 307@s = 'HORS106'
set_lvar_text_label 309@s = 'HORS107'
set_lvar_text_label 311@s = 'HORS108'
set_lvar_text_label 313@s = 'HORS109'
set_lvar_text_label 315@s = 'HORS110'
set_lvar_text_label 317@s = 'HORS111'
set_lvar_text_label 319@s = 'HORS112'
set_lvar_text_label 321@s = 'HORS113'
set_lvar_text_label 323@s = 'HORS114'
set_lvar_text_label 325@s = 'HORS115'
set_lvar_text_label 327@s = 'HORS116'
set_lvar_text_label 329@s = 'HORS117'
set_lvar_text_label 331@s = 'HORS118'
set_lvar_text_label 333@s = 'HORS119'
set_lvar_text_label 335@s = 'HORS120'
set_lvar_text_label 337@s = 'HORS121'
set_lvar_text_label 339@s = 'HORS122'
set_lvar_text_label 341@s = 'HORS123'
set_lvar_text_label 343@s = 'HORS124'
set_lvar_text_label 345@s = 'HORS125'
set_lvar_text_label 347@s = 'HORS126'
set_lvar_text_label 349@s = 'HORS127'
set_lvar_text_label 351@s = 'HORS128'
set_lvar_text_label 353@s = 'HORS129'
set_lvar_text_label 355@s = 'HORS130'
set_lvar_text_label 357@s = 'HORS131'
set_lvar_text_label 359@s = 'HORS132'
set_lvar_text_label 361@s = 'HORS133'
set_lvar_text_label 363@s = 'HORS134'
set_lvar_text_label 365@s = 'HORS135'
set_lvar_text_label 367@s = 'HORS136'
set_lvar_text_label 369@s = 'HORS137'
set_lvar_text_label 371@s = 'HORS138'
set_lvar_text_label 373@s = 'HORS139'
set_lvar_text_label 375@s = 'HORS140'
set_lvar_text_label 377@s = 'HORS141'
set_lvar_text_label 379@s = 'HORS142'
set_lvar_text_label 381@s = 'HORS143'
set_lvar_text_label 383@s = 'HORS144'
set_lvar_text_label 385@s = 'HORS145'
set_lvar_text_label 387@s = 'HORS146'
set_lvar_text_label 389@s = 'HORS147'
set_lvar_text_label 391@s = 'HORS148'
set_lvar_text_label 393@s = 'HORS149'
set_lvar_text_label 395@s = 'HORS150'
set_lvar_text_label 397@s = 'HORS151'
set_lvar_text_label 399@s = 'HORS152'
set_lvar_text_label 401@s = 'HORS153'
set_lvar_text_label 403@s = 'HORS154'
set_lvar_text_label 405@s = 'HORS155'
set_lvar_text_label 407@s = 'HORS156'
set_lvar_text_label 409@s = 'HORS157'
set_lvar_text_label 411@s = 'HORS158'
set_lvar_text_label 413@s = 'HORS159'
set_lvar_text_label 415@s = 'HORS160'
set_lvar_text_label 417@s = 'HORS161'
set_lvar_text_label 419@s = 'HORS162'
set_lvar_text_label 421@s = 'HORS163'
set_lvar_text_label 423@s = 'HORS164'
set_lvar_text_label 425@s = 'HORS165'
set_lvar_text_label 427@s = 'HORS166'
set_lvar_text_label 429@s = 'HORS167'
431@ = -1
432@ = -1
433@ = -1
434@ = -1
435@ = -1
431@ = generate_random_int_in_range 0 {max} 167

:OTB_3133
if or
  is_int_lvar_equal_to_int_lvar 431@ == 432@
  432@ == -1
goto_if_false @OTB_3176
432@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3133

:OTB_3176
if or
  is_int_lvar_equal_to_int_lvar 431@ == 433@
  is_int_lvar_equal_to_int_lvar 432@ == 433@
  433@ == -1
goto_if_false @OTB_3227
433@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3176

:OTB_3227
if or
  is_int_lvar_equal_to_int_lvar 431@ == 434@
  is_int_lvar_equal_to_int_lvar 432@ == 434@
  is_int_lvar_equal_to_int_lvar 433@ == 434@
  434@ == -1
goto_if_false @OTB_3286
434@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3227

:OTB_3286
if or
  is_int_lvar_equal_to_int_lvar 431@ == 435@
  is_int_lvar_equal_to_int_lvar 432@ == 435@
  is_int_lvar_equal_to_int_lvar 433@ == 435@
  is_int_lvar_equal_to_int_lvar 434@ == 435@
  435@ == -1
goto_if_false @OTB_3353
435@ = generate_random_int_in_range 0 {max} 167
goto @OTB_3286

:OTB_3353
438@ = 1
439@ = 1
440@ = 1
441@ = 1
442@ = 1
436@ = 0

:OTB_3395
if 
  5 > 436@
goto_if_false @OTB_3504
437@ = 0

:OTB_3420
if 
  5 > 437@
goto_if_false @OTB_3490
if 
  is_int_lvar_greater_than_int_lvar 431@(437@,5i) > 431@(436@,5i)
goto_if_false @OTB_3476
438@(436@,5i) += 1

:OTB_3476
437@ += 1
goto @OTB_3420

:OTB_3490
436@ += 1
goto @OTB_3395

:OTB_3504
436@ = 0

:OTB_3511
if 
  5 > 436@
goto_if_false @OTB_3713
if 
  438@(436@,5i) == 1
goto_if_false @OTB_3563
set_lvar_int_to_lvar_int 443@ = 431@(436@,5i)

:OTB_3563
if 
  438@(436@,5i) == 2
goto_if_false @OTB_3597
set_lvar_int_to_lvar_int 444@ = 431@(436@,5i)

:OTB_3597
if 
  438@(436@,5i) == 3
goto_if_false @OTB_3631
set_lvar_int_to_lvar_int 445@ = 431@(436@,5i)

:OTB_3631
if 
  438@(436@,5i) == 4
goto_if_false @OTB_3665
set_lvar_int_to_lvar_int 446@ = 431@(436@,5i)

:OTB_3665
if 
  438@(436@,5i) == 5
goto_if_false @OTB_3699
set_lvar_int_to_lvar_int 447@ = 431@(436@,5i)

:OTB_3699
436@ += 1
goto @OTB_3511

:OTB_3713
448@ = generate_random_int_in_range 2 {max} 4
449@ = generate_random_int_in_range 4 {max} 6
450@ = generate_random_int_in_range 6 {max} 9
451@ = generate_random_int_in_range 9 {max} 11
452@ = generate_random_int_in_range 11 {max} 13
453@ = 0

:OTB_3765
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @OTB_3791
wait 0
goto @OTB_3765

:OTB_3791
do_fade 0 {direction} Fade.In
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255

:OTB_3828
wait 0
$game_timer = get_game_timer 
draw_sprite 9 {offsetLeft} 320.0 {offsetTop} 224.0 {width} 640.0 {height} 448.0 {r} 150 {g} 150 {b} 150 {a} 255
gosub @OTB_13568
set_text_scale 0.759 {heightScale} 2.8293
set_text_centre True
display_text 204.407 {offsetTop} 39.1245 {key} 'HRACE01'
454@ = 60.1776
gosub @OTB_13568
set_text_scale 0.527 {heightScale} 2.0
455@ = get_string_width 'XSELECT'
display_text 454@ {offsetTop} 395.7635 {key} 'XSELECT'
cset_lvar_float_to_lvar_int 467@ =# 455@
add_float_lvar_to_float_lvar 454@ += 467@
454@ += 8.0
gosub @OTB_13568
set_text_scale 0.527 {heightScale} 2.0
if 
  76@ == 0
goto_if_false @OTB_4082
455@ = get_string_width 'TRIEXIT'
display_text 454@ {offsetTop} 395.7635 {key} 'TRIEXIT'
goto @OTB_4115

:OTB_4082
455@ = get_string_width 'TRIBACK'
display_text 454@ {offsetTop} 395.7635 {key} 'TRIBACK'

:OTB_4115
cset_lvar_float_to_lvar_int 467@ =# 455@
add_float_lvar_to_float_lvar 454@ += 467@
454@ += 8.0
gosub @OTB_13568
set_text_scale 0.527 {heightScale} 2.0
if 
  76@ == 0
goto_if_false @OTB_4204
display_text 454@ {offsetTop} 395.7635 {key} 'DPADNUD'
goto @OTB_4223

:OTB_4204
display_text 454@ {offsetTop} 395.7635 {key} 'DPADNAV'

:OTB_4223
96@ = store_score $player1
gosub @OTB_13568
set_text_scale 0.4753 {heightScale} 2.2289
set_text_centre True
display_text_with_number 508.6669 {offsetTop} 18.0933 {key} 'YOURCSH' {num} 96@
456@, 457@, 458@, 459@ = get_position_of_analogue_sticks PadId.Pad1
if 
  76@ == 0
goto_if_false @OTB_5082
if or
  -100 > 457@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @OTB_4496
if 
  70@ == 0
goto_if_false @OTB_4489
if 
  66@ == 1
goto_if_false @OTB_4386
66@ = 0
65@ = 1

:OTB_4386
if 
  67@ == 1
goto_if_false @OTB_4418
67@ = 0
66@ = 1

:OTB_4418
if 
  68@ == 1
goto_if_false @OTB_4450
68@ = 0
67@ = 1

:OTB_4450
if 
  69@ == 1
goto_if_false @OTB_4482
69@ = 0
68@ = 1

:OTB_4482
70@ = 1

:OTB_4489
goto @OTB_4503

:OTB_4496
70@ = 0

:OTB_4503
if or
  457@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @OTB_4687
if 
  71@ == 0
goto_if_false @OTB_4680
if 
  68@ == 1
goto_if_false @OTB_4577
68@ = 0
69@ = 1

:OTB_4577
if 
  67@ == 1
goto_if_false @OTB_4609
67@ = 0
68@ = 1

:OTB_4609
if 
  66@ == 1
goto_if_false @OTB_4641
66@ = 0
67@ = 1

:OTB_4641
if 
  65@ == 1
goto_if_false @OTB_4673
65@ = 0
66@ = 1

:OTB_4673
71@ = 1

:OTB_4680
goto @OTB_4694

:OTB_4687
71@ = 0

:OTB_4694
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @OTB_5007
if 
  74@ == 0
goto_if_false @OTB_5000
if 
  65@ == 1
goto_if_false @OTB_4775
66@ = 2
67@ = 2
68@ = 2
69@ = 2

:OTB_4775
if 
  66@ == 1
goto_if_false @OTB_4821
65@ = 2
67@ = 2
68@ = 2
69@ = 2

:OTB_4821
if 
  67@ == 1
goto_if_false @OTB_4867
65@ = 2
66@ = 2
68@ = 2
69@ = 2

:OTB_4867
if 
  68@ == 1
goto_if_false @OTB_4913
65@ = 2
66@ = 2
67@ = 2
69@ = 2

:OTB_4913
if 
  69@ == 1
goto_if_false @OTB_4959
65@ = 2
66@ = 2
67@ = 2
68@ = 2

:OTB_4959
74@ = 1
78@ = 1
76@ += 1
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAmmunationBuyWeapon

:OTB_5000
goto @OTB_5014

:OTB_5007
74@ = 0

:OTB_5014
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @OTB_5075
if 
  75@ == 0
goto_if_false @OTB_5068
75@ = 1
do_fade 0 {direction} Fade.Out
wait 0
return 

:OTB_5068
goto @OTB_5082

:OTB_5075
75@ = 0

:OTB_5082
460@ = 0

:OTB_5089
if 
  5 > 460@
goto_if_false @OTB_5627
if 
  65@(460@,5i) == 0
goto_if_false @OTB_5165
draw_sprite 1 {offsetLeft} 35@ {offsetTop} 36@(460@,5f) {width} 330.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_5165
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5223
draw_sprite 10 {offsetLeft} 35@ {offsetTop} 36@(460@,5f) {width} 330.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_5223
if 
  65@(460@,5i) == 2
goto_if_false @OTB_5278
draw_sprite 1 {offsetLeft} 35@ {offsetTop} 36@(460@,5f) {width} 330.0 {height} 64.0 {r} 50 {g} 50 {b} 50 {a} 255

:OTB_5278
set_lvar_float_to_lvar_float 41@ = 35@
41@ -= 130.0
set_lvar_float_to_lvar_float 42@ = 36@(460@,5f)
42@ -= 8.0
set_lvar_int_to_lvar_int 461@ = 460@
461@ += 4
draw_sprite 461@ {offsetLeft} 41@ {offsetTop} 42@ {width} 64.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 43@ = 35@
43@ -= 105.0
set_lvar_float_to_lvar_float 44@ = 36@(460@,5f)
44@ -= 24.0
gosub @OTB_13568
set_text_scale 0.63 {heightScale} 3.0
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5477
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_5477
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
display_text 43@ {offsetTop} 44@ {key} 97@(461@,167s)
43@ += 254.2121
gosub @OTB_13568
set_text_scale 0.7 {heightScale} 3.0
set_text_right_justify True
if 
  65@(460@,5i) == 1
goto_if_false @OTB_5589
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_5589
display_text_with_number 43@ {offsetTop} 44@ {key} 'ODDS' {num} 448@(460@,5i)
460@ += 1
goto @OTB_5089

:OTB_5627
if 
  76@ == 1
goto_if_false @OTB_6831
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @OTB_6029
if 
  75@ == 0
goto_if_false @OTB_6022
if 
  65@ == 1
goto_if_false @OTB_5726
66@ = 0
67@ = 0
68@ = 0
69@ = 0

:OTB_5726
if 
  66@ == 1
goto_if_false @OTB_5772
65@ = 0
67@ = 0
68@ = 0
69@ = 0

:OTB_5772
if 
  67@ == 1
goto_if_false @OTB_5818
65@ = 0
66@ = 0
68@ = 0
69@ = 0

:OTB_5818
if 
  68@ == 1
goto_if_false @OTB_5864
65@ = 0
66@ = 0
67@ = 0
69@ = 0

:OTB_5864
if 
  69@ == 1
goto_if_false @OTB_5910
65@ = 0
66@ = 0
67@ = 0
68@ = 0

:OTB_5910
75@ = 1
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
76@ -= 1
add_score $player1 {money} 87@
87@ = 0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbIncreaseBet

:OTB_6022
goto @OTB_6036

:OTB_6029
75@ = 0

:OTB_6036
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @OTB_6454
if 
  74@ == 0
goto_if_false @OTB_6447
if 
  not is_char_dead $scplayer
goto_if_false @OTB_6101
$player_x, $player_y, $player_z = get_char_coordinates $scplayer

:OTB_6101
if and
  86@ > 0
  87@ > 0
goto_if_false @OTB_6153
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbPlaceBet
453@ = 1

:OTB_6153
if 
  78@ == 1
goto_if_false @OTB_6214
78@ = 2
add_score $player1 {money} 87@
set_lvar_int_to_lvar_int 87@ = 88@
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbBetZero

:OTB_6214
460@ = 1

:OTB_6221
if 
  8 > 460@
goto_if_false @OTB_6440
if 
  78@(460@,8i) == 1
goto_if_false @OTB_6426
78@(460@,8i) = 2
set_lvar_int_to_lvar_int 461@ = 88@(460@,8i)
461@ -= 1
set_lvar_int_to_lvar_int 466@ = 87@
add_int_lvar_to_int_lvar 466@ += 88@(460@,8i)
if and
  is_score_greater $player1 {money} 461@
  9999999 > 466@
goto_if_false @OTB_6406
add_int_lvar_to_int_lvar 87@ += 88@(460@,8i)
set_lvar_int_to_lvar_int 461@ = 88@(460@,8i)
461@ *= -1
add_score $player1 {money} 461@
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbIncreaseBet
goto @OTB_6426

:OTB_6406
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbNoCash

:OTB_6426
460@ += 1
goto @OTB_6221

:OTB_6440
74@ = 1

:OTB_6447
goto @OTB_6831

:OTB_6454
if 
  74@ == 1
goto_if_false @OTB_6551
460@ = 0

:OTB_6479
if 
  8 > 460@
goto_if_false @OTB_6544
if 
  78@(460@,8i) == 2
goto_if_false @OTB_6530
78@(460@,8i) = 1

:OTB_6530
460@ += 1
goto @OTB_6479

:OTB_6544
74@ = 0

:OTB_6551
if or
  -100 > 456@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @OTB_6614
if 
  72@ == 0
goto_if_false @OTB_6607
72@ = 1
gosub @OTB_13636

:OTB_6607
goto @OTB_6621

:OTB_6614
72@ = 0

:OTB_6621
if or
  456@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @OTB_6684
if 
  73@ == 0
goto_if_false @OTB_6677
73@ = 1
gosub @OTB_13774

:OTB_6677
goto @OTB_6691

:OTB_6684
73@ = 0

:OTB_6691
if or
  -100 > 457@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @OTB_6754
if 
  70@ == 0
goto_if_false @OTB_6747
70@ = 1
gosub @OTB_13912

:OTB_6747
goto @OTB_6761

:OTB_6754
70@ = 0

:OTB_6761
if or
  457@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @OTB_6824
if 
  71@ == 0
goto_if_false @OTB_6817
71@ = 1
gosub @OTB_14182

:OTB_6817
goto @OTB_6831

:OTB_6824
71@ = 0

:OTB_6831
460@ = 0

:OTB_6838
if 
  8 > 460@
goto_if_false @OTB_7181
if 
  78@(460@,8i) == 0
goto_if_false @OTB_6918
draw_sprite 2 {offsetLeft} 47@(460@,8f) {offsetTop} 55@(460@,8f) {width} 90.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_6918
if 
  78@(460@,8i) == 1
goto_if_false @OTB_6980
draw_sprite 11 {offsetLeft} 47@(460@,8f) {offsetTop} 55@(460@,8f) {width} 90.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_6980
if 
  78@(460@,8i) == 2
goto_if_false @OTB_7042
draw_sprite 3 {offsetLeft} 47@(460@,8f) {offsetTop} 55@(460@,8f) {width} 90.0 {height} 64.0 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_7042
gosub @OTB_13568
set_text_centre True
set_text_scale 0.58 {heightScale} 2.4957
set_lvar_float_to_lvar_float 467@ = 55@(460@,8f)
467@ -= 28.3404
if 
  78@(460@,8i) > 0
goto_if_false @OTB_7139
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_7139
display_text_with_number 47@(460@,8f) {offsetTop} 467@ {key} 'DOLLAR' {num} 88@(460@,8i)
460@ += 1
goto @OTB_6838

:OTB_7181
if 
  86@ == 0
goto_if_false @OTB_7300
if 
  87@ > 0
goto_if_false @OTB_7260
draw_sprite 1 {offsetLeft} 510.0702 {offsetTop} 373.3544 {width} 176.8987 {height} 50.8555 {r} 150 {g} 150 {b} 150 {a} 255
goto @OTB_7293

:OTB_7260
draw_sprite 1 {offsetLeft} 510.0702 {offsetTop} 373.3544 {width} 176.8987 {height} 50.8555 {r} 50 {g} 50 {b} 50 {a} 255

:OTB_7293
goto @OTB_7336

:OTB_7300
draw_sprite 10 {offsetLeft} 510.0702 {offsetTop} 373.3544 {width} 176.8987 {height} 50.8555 {r} 150 {g} 150 {b} 150 {a} 255

:OTB_7336
gosub @OTB_13568
if or
  is_int_var_equal_to_constant $current_Language == 2
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @OTB_7387
set_text_scale 0.5 {heightScale} 2.996
goto @OTB_7399

:OTB_7387
set_text_scale 0.609 {heightScale} 2.996

:OTB_7399
set_text_centre True
if 
  86@ > 0
goto_if_false @OTB_7451
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_7451
display_text 509.6968 {offsetTop} 351.0 {key} 'PLACBET'
gosub @OTB_13568
set_text_scale 0.8 {heightScale} 3.3297
set_text_centre True
display_text_with_number 509.2133 {offsetTop} 84.9941 {key} 'DOLLAR' {num} 87@
if 
  453@ == 1
goto_if_false @OTB_7544
goto @OTB_7551

:OTB_7544
goto @OTB_3828

:OTB_7551
remove_texture_dictionary 
load_texture_dictionary 'LD_OTB'
load_sprite 1 {spriteName} "BCKGRND"
load_sprite 2 {spriteName} "BUSHES"
load_sprite 3 {spriteName} "BRIDE1"
load_sprite 4 {spriteName} "BRIDE2"
load_sprite 5 {spriteName} "BRIDE3"
load_sprite 6 {spriteName} "BRIDE4"
load_sprite 7 {spriteName} "BRIDE5"
load_sprite 8 {spriteName} "BRIDE6"
load_sprite 9 {spriteName} "BRIDE7"
load_sprite 10 {spriteName} "BRIDE8"
load_sprite 11 {spriteName} "TREES"
load_sprite 12 {spriteName} "FEN"
load_sprite 13 {spriteName} "POLE2"
load_sprite 14 {spriteName} "RRIDE1"
load_sprite 15 {spriteName} "RRIDE2"
load_sprite 16 {spriteName} "RRIDE3"
load_sprite 17 {spriteName} "RRIDE4"
load_sprite 18 {spriteName} "RRIDE5"
load_sprite 19 {spriteName} "RRIDE6"
load_sprite 20 {spriteName} "RRIDE7"
load_sprite 21 {spriteName} "RRIDE8"
load_sprite 22 {spriteName} "YRIDE1"
load_sprite 23 {spriteName} "YRIDE2"
load_sprite 24 {spriteName} "YRIDE3"
load_sprite 25 {spriteName} "YRIDE4"
load_sprite 26 {spriteName} "YRIDE5"
load_sprite 27 {spriteName} "YRIDE6"
load_sprite 28 {spriteName} "YRIDE7"
load_sprite 29 {spriteName} "YRIDE8"
load_sprite 30 {spriteName} "PRIDE1"
load_sprite 31 {spriteName} "PRIDE2"
load_sprite 32 {spriteName} "PRIDE3"
load_sprite 33 {spriteName} "PRIDE4"
load_sprite 34 {spriteName} "PRIDE5"
load_sprite 35 {spriteName} "PRIDE6"
load_sprite 36 {spriteName} "PRIDE7"
load_sprite 37 {spriteName} "PRIDE8"
load_sprite 38 {spriteName} "GRIDE1"
load_sprite 39 {spriteName} "GRIDE2"
load_sprite 40 {spriteName} "GRIDE3"
load_sprite 41 {spriteName} "GRIDE4"
load_sprite 42 {spriteName} "GRIDE5"
load_sprite 43 {spriteName} "GRIDE6"
load_sprite 44 {spriteName} "GRIDE7"
load_sprite 45 {spriteName} "GRIDE8"
load_sprite 46 {spriteName} "TVCORN"
load_sprite 47 {spriteName} "TVL"
load_sprite 48 {spriteName} "TVR"
load_sprite 49 {spriteName} "BLUE"
load_sprite 50 {spriteName} "HRS1"
load_sprite 51 {spriteName} "HRS2"
load_sprite 52 {spriteName} "HRS3"
load_sprite 53 {spriteName} "HRS4"
load_sprite 54 {spriteName} "HRS5"
load_sprite 55 {spriteName} "HRS6"
load_sprite 56 {spriteName} "HRS7"
load_sprite 57 {spriteName} "HRS8"
468@ = 0
469@ = 0
470@ = 0
471@ = 0
472@ = 0
473@ = 0
474@ = 0
475@ = 0
476@ = 0
477@ = 0
482@ = 128.0
set_lvar_float_to_lvar_float 483@ = 482@
483@ /= 10.0
set_lvar_float_to_lvar_float 481@ = 482@
sub_float_lvar_from_float_lvar 481@ -= 483@
set_lvar_float_to_lvar_float 483@ = 481@
483@ /= 10.0
set_lvar_float_to_lvar_float 480@ = 481@
sub_float_lvar_from_float_lvar 480@ -= 483@
set_lvar_float_to_lvar_float 483@ = 480@
483@ /= 10.0
set_lvar_float_to_lvar_float 479@ = 480@
sub_float_lvar_from_float_lvar 479@ -= 483@
set_lvar_float_to_lvar_float 483@ = 479@
483@ /= 10.0
set_lvar_float_to_lvar_float 478@ = 479@
sub_float_lvar_from_float_lvar 478@ -= 483@
488@ = 64.0
set_lvar_float_to_lvar_float 483@ = 488@
483@ /= 10.0
set_lvar_float_to_lvar_float 487@ = 488@
sub_float_lvar_from_float_lvar 487@ -= 483@
set_lvar_float_to_lvar_float 483@ = 487@
483@ /= 10.0
set_lvar_float_to_lvar_float 486@ = 487@
sub_float_lvar_from_float_lvar 486@ -= 483@
set_lvar_float_to_lvar_float 483@ = 486@
483@ /= 10.0
set_lvar_float_to_lvar_float 485@ = 486@
sub_float_lvar_from_float_lvar 485@ -= 483@
set_lvar_float_to_lvar_float 483@ = 485@
483@ /= 10.0
set_lvar_float_to_lvar_float 484@ = 485@
sub_float_lvar_from_float_lvar 484@ -= 483@
489@ = 150.0
490@ = 150.0
491@ = 150.0
492@ = 150.0
493@ = 150.0
498@ = 300.0
set_lvar_float_to_lvar_float 483@ = 498@
483@ /= 10.0
set_lvar_float_to_lvar_float 497@ = 498@
sub_float_lvar_from_float_lvar 497@ -= 483@
set_lvar_float_to_lvar_float 483@ = 497@
483@ /= 10.0
set_lvar_float_to_lvar_float 496@ = 497@
sub_float_lvar_from_float_lvar 496@ -= 483@
set_lvar_float_to_lvar_float 483@ = 496@
483@ /= 10.0
set_lvar_float_to_lvar_float 495@ = 496@
sub_float_lvar_from_float_lvar 495@ -= 483@
set_lvar_float_to_lvar_float 483@ = 495@
483@ /= 10.0
set_lvar_float_to_lvar_float 494@ = 495@
sub_float_lvar_from_float_lvar 494@ -= 483@
499@ = 159.0
500@ = 159.0
501@ = 159.0
502@ = 159.0
503@ = 159.0
508@ = 261.0
set_lvar_float_to_lvar_float 483@ = 508@
483@ /= 10.0
set_lvar_float_to_lvar_float 507@ = 508@
sub_float_lvar_from_float_lvar 507@ -= 483@
set_lvar_float_to_lvar_float 483@ = 507@
483@ /= 10.0
set_lvar_float_to_lvar_float 506@ = 507@
sub_float_lvar_from_float_lvar 506@ -= 483@
set_lvar_float_to_lvar_float 483@ = 506@
483@ /= 10.0
set_lvar_float_to_lvar_float 505@ = 506@
sub_float_lvar_from_float_lvar 505@ -= 483@
set_lvar_float_to_lvar_float 483@ = 505@
483@ /= 10.0
set_lvar_float_to_lvar_float 504@ = 505@
sub_float_lvar_from_float_lvar 504@ -= 483@
514@ = 0.0
515@ = 0.0
516@ = 0.0
517@ = 0.0
518@ = 0.0
519@ = 2
520@ = 5
521@ = 6
522@ = 1
523@ = 4
526@ = 3
527@ = 14
528@ = 22
529@ = 30
530@ = 38
$game_timer = get_game_timer 
set_lvar_int_to_var_int 531@ = $game_timer
531@ += 25000
532@ = 512.0
set_lvar_float_to_lvar_float 533@ = 532@
533@ += 124.0
534@ = 0
535@ = 0
536@ = 0
537@ = 0
538@ = 0
544@ = 0
545@ = 0
546@ = 0
547@ = 0
548@ = 0
552@ = 0.0
553@ = 0.0
554@ = 0.0
555@ = 0.0
556@ = 0
557@ = 454.364
558@ = 152.8744
563@ = 0
564@ = 42
569@ = 96
574@ = 228
565@ = 209
570@ = 116
575@ = 116
566@ = 222
571@ = 185
576@ = 103
567@ = 133
572@ = 65
577@ = 190
568@ = 65
573@ = 190
578@ = 151
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbTrackStart
579@ = 0
580@ = 12
581@ = 34
582@ = 0
583@ = 55
584@ = 20
draw_rect 320.0 {y} 224.0 {width} 640.0 {height} 448.0 {r} 0 {g} 0 {b} 0 {a} 255

:OTB_9493
wait 0
$game_timer = get_game_timer 
if 
  556@ == 0
goto_if_false @OTB_9975
460@ = 0

:OTB_9527
if 
  5 > 460@
goto_if_false @OTB_9975
if 
  is_int_var_greater_than_int_lvar $game_timer > 468@(460@,5i)
goto_if_false @OTB_9633
generate_random_float_in_range -0.8 {max} 1.0 {var_result} 509@(460@,5f)
585@ = generate_random_int_in_range 1500 {max} 2500
set_lvar_int_to_var_int 468@(460@,5i) = $game_timer
add_int_lvar_to_int_lvar 468@(460@,5i) += 585@
473@(460@,5i) = 1

:OTB_9633
if 
  473@(460@,5i) == 1
goto_if_false @OTB_9845
if 
  is_float_lvar_greater_than_float_lvar 514@(460@,5f) > 509@(460@,5f)
goto_if_false @OTB_9750
sub_timed_val_from_float_lvar 514@(460@,5f) -=@ 0.01
if 
  is_float_lvar_greater_than_float_lvar 509@(460@,5f) > 514@(460@,5f)
goto_if_false @OTB_9750
set_lvar_float_to_lvar_float 514@(460@,5f) = 509@(460@,5f)
473@(460@,5i) += 1

:OTB_9750
if 
  is_float_lvar_greater_than_float_lvar 509@(460@,5f) > 514@(460@,5f)
goto_if_false @OTB_9845
add_timed_val_to_float_lvar 514@(460@,5f) +=@ 0.01
if 
  is_float_lvar_greater_than_float_lvar 514@(460@,5f) > 509@(460@,5f)
goto_if_false @OTB_9845
set_lvar_float_to_lvar_float 514@(460@,5f) = 509@(460@,5f)
473@(460@,5i) += 1

:OTB_9845
if 
  473@(460@,5i) > 0
goto_if_false @OTB_9883
add_timed_float_lvar_to_float_lvar 489@(460@,5f) +=@ 514@(460@,5f)

:OTB_9883
if 
  80.0 > 489@(460@,5f)
goto_if_false @OTB_9922
489@(460@,5f) = 80.0

:OTB_9922
if 
  489@(460@,5f) > 520.0
goto_if_false @OTB_9961
489@(460@,5f) = 520.0

:OTB_9961
460@ += 1
goto @OTB_9527

:OTB_9975
set_lvar_float_to_lvar_float 549@ = 552@
588@ = -76.0
587@ = 72.0
525@ = 1
551@ = 4.0
gosub @OTB_13313
set_lvar_float_to_lvar_float 552@ = 549@
set_lvar_float_to_lvar_float 549@ = 554@
588@ = -64.0
587@ = 128.0
525@ = 2
551@ = 5.0
gosub @OTB_13313
set_lvar_float_to_lvar_float 554@ = 549@
set_lvar_float_to_lvar_float 549@ = 553@
588@ = 0.0
587@ = 256.0
525@ = 11
551@ = 6.0
gosub @OTB_13313
set_lvar_float_to_lvar_float 553@ = 549@
if 
  is_int_var_greater_than_int_lvar $game_timer > 531@
goto_if_false @OTB_10594
if 
  532@ > -200.0
goto_if_false @OTB_10275
if 
  556@ == 0
goto_if_false @OTB_10223
sub_timed_val_from_float_lvar 532@ -=@ 6.0

:OTB_10223
draw_sprite 13 {offsetLeft} 532@ {offsetTop} 224.0 {width} 256.0 {height} 256.0 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 533@ = 532@
533@ += 124.0

:OTB_10275
460@ = 0

:OTB_10282
if 
  5 > 460@
goto_if_false @OTB_10594
if 
  534@(460@,5i) == 0
goto_if_false @OTB_10580
if 
  is_float_lvar_greater_than_float_lvar 489@(460@,5f) > 533@
goto_if_false @OTB_10580
if 
  544@ == 0
goto_if_false @OTB_10388
534@(460@,5i) = 1
544@ += 1
goto @OTB_10580

:OTB_10388
if 
  545@ == 0
goto_if_false @OTB_10431
534@(460@,5i) = 2
545@ += 1
goto @OTB_10580

:OTB_10431
if 
  546@ == 0
goto_if_false @OTB_10474
534@(460@,5i) = 3
546@ += 1
goto @OTB_10580

:OTB_10474
if 
  547@ == 0
goto_if_false @OTB_10517
534@(460@,5i) = 4
547@ += 1
goto @OTB_10580

:OTB_10517
if 
  548@ == 0
goto_if_false @OTB_10580
534@(460@,5i) = 5
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbTrackStop
556@ += 1
548@ += 1

:OTB_10580
460@ += 1
goto @OTB_10282

:OTB_10594
460@ = 0

:OTB_10601
if 
  5 > 460@
goto_if_false @OTB_10922
524@ = 50
add_int_lvar_to_int_lvar 524@ += 519@(460@,5i)
draw_sprite 524@ {offsetLeft} 489@(460@,5f) {offsetTop} 494@(460@,5f) {width} 478@(460@,5f) {height} 478@(460@,5f) {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_int_to_lvar_int 524@ = 526@(460@,5i)
add_int_lvar_to_int_lvar 524@ += 519@(460@,5i)
set_lvar_float_to_lvar_float 499@(460@,5f) = 489@(460@,5f)
499@(460@,5f) += 9.0
set_lvar_float_to_lvar_float 467@ = 484@(460@,5f)
467@ /= 2.0
draw_sprite 524@ {offsetLeft} 499@(460@,5f) {offsetTop} 504@(460@,5f) {width} 484@(460@,5f) {height} 467@ {r} 150 {g} 150 {b} 150 {a} 255
if 
  556@ == 0
goto_if_false @OTB_10908
if 
  is_int_var_greater_than_int_lvar $game_timer > 580@(460@,5i)
goto_if_false @OTB_10908
519@(460@,5i) += 1
if 
  519@(460@,5i) > 7
goto_if_false @OTB_10885
519@(460@,5i) = 0

:OTB_10885
set_lvar_int_to_var_int 580@(460@,5i) = $game_timer
580@(460@,5i) += 67

:OTB_10908
460@ += 1
goto @OTB_10601

:OTB_10922
set_lvar_float_to_lvar_float 549@ = 555@
588@ = 96.0
587@ = 64.0
525@ = 12
551@ = 8.0
gosub @OTB_13313
set_lvar_float_to_lvar_float 555@ = 549@
draw_sprite 46 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 46 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 46 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 46 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 47 {offsetLeft} 160.0 {offsetTop} 0.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 47 {offsetLeft} 160.0 {offsetTop} 448.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 48 {offsetLeft} 480.0 {offsetTop} 0.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 48 {offsetLeft} 480.0 {offsetTop} 448.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
if or
  534@ > 0
  535@ > 0
  536@ > 0
  537@ > 0
  538@ > 0
goto_if_false @OTB_11386
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -25.0222
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 21.6946
draw_rect 561@ {y} 562@ {width} 355.0807 {height} 119.5942 {r} 47 {g} 62 {b} 90 {a} 200
goto @OTB_11795

:OTB_11386
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -139.2772
set_lvar_float_to_lvar_float 562@ = 558@
562@ += -56.1882
draw_sprite 49 {offsetLeft} 561@ {offsetTop} 562@ {width} 280.2137 {height} 22.6679 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 157.3474
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 68.5107
gosub @OTB_13568
set_text_justify False
set_text_right_justify True
display_text 559@ {offsetTop} 560@ {key} 'YOURHSE'
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 142.4242
560@ += 12.7439
draw_rect 559@ {y} 560@ {width} 12.0 {height} 12.0 {r} 0 {g} 0 {b} 0 {a} 255
460@ = 0

:OTB_11584
if 
  5 > 460@
goto_if_false @OTB_11680
if 
  65@(460@,5i) == 1
goto_if_false @OTB_11666
draw_rect 559@ {y} 560@ {width} 10.0 {height} 10.0 {r} 564@(460@,5i) {g} 569@(460@,5i) {b} 574@(460@,5i) {a} 255

:OTB_11666
460@ += 1
goto @OTB_11584

:OTB_11680
559@ += 10.8216
560@ -= 12.7439
gosub @OTB_13568
460@ = 0

:OTB_11714
if 
  5 > 460@
goto_if_false @OTB_11795
if 
  65@(460@,5i) == 1
goto_if_false @OTB_11781
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
display_text 559@ {offsetTop} 560@ {key} 97@(461@,167s)

:OTB_11781
460@ += 1
goto @OTB_11714

:OTB_11795
set_lvar_float_to_lvar_float 586@ = 557@
586@ += -23.3585
460@ = 0

:OTB_11820
if 
  5 > 460@
goto_if_false @OTB_12617
if 
  534@(460@,5i) > 0
goto_if_false @OTB_12603
set_lvar_float_to_lvar_float 559@ = 586@
559@ -= 50.0
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 50.0
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
add_float_lvar_to_float_lvar 560@ += 467@
draw_rect 559@ {y} 560@ {width} 12.0 {height} 12.0 {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 559@ {y} 560@ {width} 10.0 {height} 10.0 {r} 564@(460@,5i) {g} 569@(460@,5i) {b} 574@(460@,5i) {a} 255
set_lvar_float_to_lvar_float 559@ = 586@
559@ -= 39.1244
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 63.4833
gosub @OTB_13568
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12090
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_12090
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
set_lvar_float_to_lvar_float 539@(460@,5f) = 560@
add_float_lvar_to_float_lvar 539@(460@,5f) += 467@
set_lvar_int_to_lvar_int 461@ = 443@(460@,5i)
set_text_scale 0.54 {heightScale} 2.4961
display_text 559@ {offsetTop} 539@(460@,5f) {key} 97@(461@,167s)
if 
  65@(460@,5i) == 1
goto_if_false @OTB_12267
set_lvar_float_to_lvar_float 559@ = 586@
559@ -= 64.0
gosub @OTB_13568
set_text_justify False
set_text_right_justify True
set_text_scale 0.54 {heightScale} 2.4961
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'YOURHSE'

:OTB_12267
set_lvar_float_to_lvar_float 559@ = 586@
559@ -= -170.5457
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= 63.4833
gosub @OTB_13568
set_text_right_justify True
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12366
462@, 463@, 464@, 465@ = get_hud_colour 0
set_text_colour 462@ {green} 463@ {blue} 464@ {alpha} 465@

:OTB_12366
cset_lvar_float_to_lvar_int 467@ =# 534@(460@,5i)
467@ *= 23.5038
set_lvar_float_to_lvar_float 539@(460@,5f) = 560@
add_float_lvar_to_float_lvar 539@(460@,5f) += 467@
set_text_scale 0.54 {heightScale} 2.4961
if 
  534@(460@,5i) == 1
goto_if_false @OTB_12467
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'FIRST'

:OTB_12467
if 
  534@(460@,5i) == 2
goto_if_false @OTB_12510
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'SECOND'

:OTB_12510
if 
  534@(460@,5i) == 3
goto_if_false @OTB_12553
display_text 559@ {offsetTop} 539@(460@,5f) {key} 'THIRD'

:OTB_12553
if 
  534@(460@,5i) > 3
goto_if_false @OTB_12603
display_text_with_number 559@ {offsetTop} 539@(460@,5f) {key} 'NTH' {num} 534@(460@,5i)

:OTB_12603
460@ += 1
goto @OTB_11820

:OTB_12617
if and
  534@ > 0
  535@ > 0
  536@ > 0
  537@ > 0
  538@ > 0
goto_if_false @OTB_13286
set_lvar_float_to_lvar_float 561@ = 557@
561@ += 44.4599
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 218.4174
draw_sprite 49 {offsetLeft} 561@ {offsetTop} 562@ {width} 155.396 {height} 52.7081 {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 559@ = 557@
559@ -= 39.2243
set_lvar_float_to_lvar_float 560@ = 558@
560@ -= -190.9665
gosub @OTB_13568
set_text_scale 0.5 {heightScale} 2.4961
display_text_with_number 559@ {offsetTop} 560@ {key} 'YOURSTK' {num} 87@
460@ = 0

:OTB_12813
if 
  5 > 460@
goto_if_false @OTB_12898
if and
  534@(460@,5i) == 1
  65@(460@,5i) == 1
goto_if_false @OTB_12884
set_lvar_int_to_lvar_int 563@ = 87@
mult_int_lvar_by_int_lvar 563@ *= 448@(460@,5i)

:OTB_12884
460@ += 1
goto @OTB_12813

:OTB_12898
560@ += 25.0
gosub @OTB_13568
set_text_scale 0.5 {heightScale} 2.4961
display_text_with_number 559@ {offsetTop} 560@ {key} 'YOUWIN' {num} 563@
set_lvar_float_to_lvar_float 561@ = 557@
561@ += -129.2806
set_lvar_float_to_lvar_float 562@ = 558@
562@ += 259.5944
draw_sprite 49 {offsetLeft} 561@ {offsetTop} 562@ {width} 239.5561 {height} 12.6761 {r} 150 {g} 150 {b} 150 {a} 255
gosub @OTB_13568
set_text_scale 0.5496 {heightScale} 2.1344
set_text_centre True
display_text 330.2087 {offsetTop} 403.5891 {key} 'XTOCONT'
if 
  579@ == 0
goto_if_false @OTB_13149
if 
  563@ > 0
goto_if_false @OTB_13122
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbWin
goto @OTB_13142

:OTB_13122
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundOtbLose

:OTB_13142
579@ = 1

:OTB_13149
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @OTB_13279
if 
  74@ == 0
goto_if_false @OTB_13272
74@ = 1
increment_int_stat StatId.MoneySpentGambling {value} 87@
if 
  563@ > 0
goto_if_false @OTB_13253
register_int_stat StatId.BiggestGamblingWin {value} 563@
increment_int_stat StatId.MoneyWonGambling {value} 563@
add_int_lvar_to_int_lvar 563@ += 87@
add_score $player1 {money} 563@
goto @OTB_13260

:OTB_13253
register_int_stat StatId.BiggestGamblingLoss {value} 87@

:OTB_13260
do_fade 0 {direction} Fade.Out
wait 0
return 

:OTB_13272
goto @OTB_13286

:OTB_13279
74@ = 0

:OTB_13286
goto @OTB_9493

:OTB_13293
remove_texture_dictionary 
do_fade 500 {direction} Fade.In
$onmission = 0
mission_has_finished 
return 

:OTB_13313
588@ += 224.0
set_lvar_float_to_lvar_float 550@ = 549@
550@ -= 256.0
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 588@ {width} 256.0 {height} 587@ {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 550@ = 549@
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 588@ {width} 256.0 {height} 587@ {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 550@ = 549@
550@ += 256.0
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 588@ {width} 256.0 {height} 587@ {r} 150 {g} 150 {b} 150 {a} 255
set_lvar_float_to_lvar_float 550@ = 549@
550@ += 512.0
draw_sprite 525@ {offsetLeft} 550@ {offsetTop} 588@ {width} 256.0 {height} 587@ {r} 150 {g} 150 {b} 150 {a} 255
if 
  556@ == 0
goto_if_false @OTB_13535
sub_timed_float_lvar_from_float_lvar 549@ -=@ 551@

:OTB_13535
if 
  0.0 > 549@
goto_if_false @OTB_13566
549@ += 256.0

:OTB_13566
return 

:OTB_13568
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:OTB_13636
if 
  79@ == 1
goto_if_false @OTB_13670
79@ = 0
78@ = 1
return 

:OTB_13670
if 
  81@ == 1
goto_if_false @OTB_13704
81@ = 0
80@ = 1
return 

:OTB_13704
if 
  83@ == 1
goto_if_false @OTB_13738
83@ = 0
82@ = 1
return 

:OTB_13738
if 
  85@ == 1
goto_if_false @OTB_13772
85@ = 0
84@ = 1
return 

:OTB_13772
return 

:OTB_13774
if 
  78@ == 1
goto_if_false @OTB_13808
78@ = 0
79@ = 1
return 

:OTB_13808
if 
  80@ == 1
goto_if_false @OTB_13842
80@ = 0
81@ = 1
return 

:OTB_13842
if 
  82@ == 1
goto_if_false @OTB_13876
82@ = 0
83@ = 1
return 

:OTB_13876
if 
  84@ == 1
goto_if_false @OTB_13910
84@ = 0
85@ = 1
return 

:OTB_13910
return 

:OTB_13912
if 
  80@ == 1
goto_if_false @OTB_13946
80@ = 0
78@ = 1
return 

:OTB_13946
if 
  81@ == 1
goto_if_false @OTB_13980
81@ = 0
79@ = 1
return 

:OTB_13980
if 
  82@ == 1
goto_if_false @OTB_14014
82@ = 0
80@ = 1
return 

:OTB_14014
if 
  83@ == 1
goto_if_false @OTB_14048
83@ = 0
81@ = 1
return 

:OTB_14048
if 
  84@ == 1
goto_if_false @OTB_14082
84@ = 0
82@ = 1
return 

:OTB_14082
if 
  85@ == 1
goto_if_false @OTB_14116
85@ = 0
83@ = 1
return 

:OTB_14116
if 
  86@ == 1
goto_if_false @OTB_14148
86@ = 0
84@ = 1

:OTB_14148
if 
  86@ == 2
goto_if_false @OTB_14180
86@ = 0
85@ = 1

:OTB_14180
return 

:OTB_14182
if 
  78@ == 1
goto_if_false @OTB_14216
78@ = 0
80@ = 1
return 

:OTB_14216
if 
  79@ == 1
goto_if_false @OTB_14250
79@ = 0
81@ = 1
return 

:OTB_14250
if 
  80@ == 1
goto_if_false @OTB_14284
80@ = 0
82@ = 1
return 

:OTB_14284
if 
  81@ == 1
goto_if_false @OTB_14318
81@ = 0
83@ = 1
return 

:OTB_14318
if 
  82@ == 1
goto_if_false @OTB_14352
82@ = 0
84@ = 1
return 

:OTB_14352
if 
  83@ == 1
goto_if_false @OTB_14386
83@ = 0
85@ = 1
return 

:OTB_14386
if 
  87@ > 0
goto_if_false @OTB_14472
if 
  84@ == 1
goto_if_false @OTB_14438
84@ = 0
86@ = 1
return 

:OTB_14438
if 
  85@ == 1
goto_if_false @OTB_14472
85@ = 0
86@ = 2
return 

:OTB_14472
return 

//-------------Mission 8---------------
// Originally: Pool

:POOL2
script_name 'POOL2'
gosub @POOL2_47
if 
  has_deatharrest_been_executed 
goto_if_false @POOL2_38
gosub @POOL2_60776

:POOL2_38
gosub @POOL2_60828
terminate_this_script 

:POOL2_47
register_mission_given 
$onmission = 1
181@ = get_game_timer 
34@ = 0
35@ = 0
37@ = 0
38@ = 0
178@ = 0
208@ = -0.957
210@ = -0.49
209@ = 0.957
211@ = 0.49
203@ = 0.05
204@ = 2.0
127@ = 1

:POOL2_163
wait 0
39@ = get_game_timer 
set_lvar_int_to_lvar_int 182@ = 39@
sub_int_lvar_from_int_lvar 182@ -= 181@
set_lvar_int_to_lvar_int 181@ = 39@
add_int_lvar_to_int_lvar 183@ += 182@
add_int_lvar_to_int_lvar 205@ += 182@
add_int_lvar_to_int_lvar 206@ += 182@
gosub @POOL2_2290

:POOL2_227
switch_start 34@ {numCases} 13 {hasDefaultCase} 0 {defaultLabel} @POOL2_537 {caseNum1} 0 {caseLabel1} @POOL2_355 {caseNum2} 1 {caseLabel2} @POOL2_369 {caseNum3} 2 {caseLabel3} @POOL2_383 {caseNum4} 3 {caseLabel4} @POOL2_397 {caseNum5} 4 {caseLabel5} @POOL2_411 {caseNum6} 5 {caseLabel6} @POOL2_425 {caseNum7} 6 {caseLabel7} @POOL2_439
switch_continued 7 {caseLabel1} @POOL2_453 {caseNum2} 8 {caseLabel2} @POOL2_467 {caseNum3} 9 {caseLabel3} @POOL2_481 {caseNum4} 10 {caseLabel4} @POOL2_495 {caseNum5} 11 {caseLabel5} @POOL2_509 {caseNum6} 12 {caseLabel6} @POOL2_523 {caseNum7} -1 {caseLabel7} @POOL2_537 {caseNum8} -1 {caseLabel8} @POOL2_537 {caseNum9} -1 {caseLabel9} @POOL2_537

:POOL2_355
gosub @POOL2_680
goto @POOL2_537

:POOL2_369
gosub @POOL2_5410
goto @POOL2_537

:POOL2_383
gosub @POOL2_8958
goto @POOL2_537

:POOL2_397
gosub @POOL2_9675
goto @POOL2_537

:POOL2_411
gosub @POOL2_10505
goto @POOL2_537

:POOL2_425
gosub @POOL2_12137
goto @POOL2_537

:POOL2_439
gosub @POOL2_15511
goto @POOL2_537

:POOL2_453
gosub @POOL2_15513
goto @POOL2_537

:POOL2_467
gosub @POOL2_20853
goto @POOL2_537

:POOL2_481
gosub @POOL2_21376
goto @POOL2_537

:POOL2_495
gosub @POOL2_22768
goto @POOL2_537

:POOL2_509
gosub @POOL2_24866
goto @POOL2_537

:POOL2_523
gosub @POOL2_26060
goto @POOL2_537

:POOL2_537
if 
  not is_int_lvar_equal_to_int_lvar 179@ == 34@
goto_if_false @POOL2_571
set_lvar_int_to_lvar_int 179@ = 34@
goto @POOL2_227

:POOL2_571
gosub @POOL2_26186
if 
  108@ == 0
goto_if_false @POOL2_678
if 
  38@ == 0
goto_if_false @POOL2_662
if 
  37@ == 0
goto_if_false @POOL2_646
goto @POOL2_163
goto @POOL2_655

:POOL2_646
gosub @POOL2_60794
return 

:POOL2_655
goto @POOL2_671

:POOL2_662
gosub @POOL2_60776
return 

:POOL2_671
goto @POOL2_680

:POOL2_678
return 

:POOL2_680
if 
  35@ == -1
goto_if_false @POOL2_972
163@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_table = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
164@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_opponent = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
168@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
358@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
359@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$active_initial_cue = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
347@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
213@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
214@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_972
if 
  35@ == 0
goto_if_false @POOL2_1158
if 
  does_object_exist $active_pool_table
goto_if_false @POOL2_1158
set_lvar_int_to_var_int 163@ = $active_pool_table
set_lvar_int_to_var_int 164@ = $active_pool_opponent
if 
  not is_char_dead 164@
goto_if_false @POOL2_1082
set_char_only_damaged_by_player 164@ {state} True
set_char_proofs 164@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_collision 164@ {state} False
207@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 164@ {handleOrTemplate} 207@

:POOL2_1082
$x, $y, $z = get_object_coordinates 163@
clear_area $x {y} $y {z} $z {radius} 100.0 {clearParticles} True
set_ped_density_multiplier 0.0
set_near_clip 0.01
make_player_gang_disappear 
129@ = 0
108@ = 0
gosub @POOL2_57818
35@ += 1

:POOL2_1158
if 
  35@ == 1
goto_if_false @POOL2_1336
if 
  does_object_exist 163@
goto_if_false @POOL2_1336
102@, 103@, 104@ = get_object_coordinates 163@
105@ = get_object_heading 163@
104@ += -0.1
load_mission_text 'POOL'
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1802
request_model #K_POOLQ
request_animation "POOL"

:POOL2_1254
if or
  not has_animation_loaded "POOL"
  not has_model_loaded #K_POOLQ
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @POOL2_1292
wait 0
goto @POOL2_1254

:POOL2_1292
load_texture_dictionary 'LD_POOL'
load_sprite 1 {spriteName} "BALL"
load_sprite 2 {spriteName} "NIB"
125@ = 0
35@ += 1

:POOL2_1336
if 
  35@ == 2
goto_if_false @POOL2_1368
34@ += 1
35@ = 0

:POOL2_1368
return 
line 98@ {f2} 100@ {f3} $z {f4} 99@ {f5} 100@ {f6} $z
line 98@ {f2} 100@ {f3} $z {f4} 98@ {f5} 101@ {f6} $z
line 99@ {f2} 101@ {f3} $z {f4} 99@ {f5} 100@ {f6} $z
line 99@ {f2} 101@ {f3} $z {f4} 98@ {f5} 101@ {f6} $z
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @POOL2_1476
208@ += -0.0001

:POOL2_1476
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @POOL2_1502
208@ += 0.0001

:POOL2_1502
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @POOL2_1528
210@ += -0.0001

:POOL2_1528
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @POOL2_1554
210@ += 0.0001

:POOL2_1554
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @POOL2_1580
209@ += -0.0001

:POOL2_1580
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @POOL2_1606
209@ += 0.0001

:POOL2_1606
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @POOL2_1632
211@ += -0.0001

:POOL2_1632
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @POOL2_1658
211@ += 0.0001

:POOL2_1658
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @POOL2_2222
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_X1 = "
save_float_to_debug_file 208@
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_Y1 = "
save_float_to_debug_file 210@
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_X2 = "
save_float_to_debug_file 209@
save_newline_to_debug_file 
save_string_to_debug_file "EDIT_Y2 = "
save_float_to_debug_file 211@

:POOL2_2222
if 
  does_object_exist 163@
goto_if_false @POOL2_2288
98@, 100@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 208@ {yOffset} 210@ {zOffset} 0.7
99@, 101@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 209@ {yOffset} 211@ {zOffset} 0.7

:POOL2_2288
return 

:POOL2_2290
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @POOL2_2339
212@ += 1
if 
  212@ > 11
goto_if_false @POOL2_2337
212@ = 0

:POOL2_2337
clear_all_view_variables 

:POOL2_2339
if 
  212@ == 1
goto_if_false @POOL2_2556
set_var_int_to_lvar_int $pool_view_debug = 34@
set_var_int_to_lvar_int $6444 = 35@
set_var_int_to_lvar_int $6445 = 36@
set_var_int_to_lvar_int $6446 = 108@
set_var_int_to_lvar_int $6447 = 125@
set_var_int_to_lvar_int $6448 = 129@
set_var_int_to_lvar_int $6449 = 217@
set_var_int_to_lvar_int $6450 = 218@
view_integer_variable $pool_view_debug {_p2} "M_STAGE"
view_integer_variable $6444 {_p2} "M_GOALS"
view_integer_variable $6445 {_p2} "FLAG3"
view_integer_variable $6446 {_p2} "QUIT"
view_integer_variable $6447 {_p2} "PL_CIRCLE_PRESSED"
view_integer_variable $6448 {_p2} "OUTPUT_TEXT"
view_integer_variable $6449 {_p2} "PLAYER1_COLOUR"
view_integer_variable $6450 {_p2} "PLAYER2_COLOUR"

:POOL2_2556
if 
  212@ == 2
goto_if_false @POOL2_2806
set_var_int_to_lvar_int $pool_view_debug = 66@
set_var_int_to_lvar_int $6444 = 67@
set_var_int_to_lvar_int $6445 = 68@
set_var_int_to_lvar_int $6446 = 69@
set_var_int_to_lvar_int $6447 = 70@
set_var_int_to_lvar_int $6448 = 71@
set_var_int_to_lvar_int $6449 = 72@
set_var_int_to_lvar_int $6450 = 73@
view_integer_variable $pool_view_debug {_p2} "BALL_POTTED[0]"
view_integer_variable $6444 {_p2} "BALL_POTTED[1]"
view_integer_variable $6445 {_p2} "BALL_POTTED[2]"
view_integer_variable $6446 {_p2} "BALL_POTTED[3]"
view_integer_variable $6447 {_p2} "BALL_POTTED[4]"
view_integer_variable $6448 {_p2} "BALL_POTTED[5]"
view_integer_variable $6449 {_p2} "BALL_POTTED[6]"
view_integer_variable $6450 {_p2} "BALL_POTTED[7]"

:POOL2_2806
if 
  212@ == 3
goto_if_false @POOL2_3062
set_var_int_to_lvar_int $pool_view_debug = 74@
set_var_int_to_lvar_int $6444 = 75@
set_var_int_to_lvar_int $6445 = 76@
set_var_int_to_lvar_int $6446 = 77@
set_var_int_to_lvar_int $6447 = 78@
set_var_int_to_lvar_int $6448 = 79@
set_var_int_to_lvar_int $6449 = 80@
set_var_int_to_lvar_int $6450 = 81@
view_integer_variable $pool_view_debug {_p2} "BALL_POTTED[8]"
view_integer_variable $6444 {_p2} "BALL_POTTED[9]"
view_integer_variable $6445 {_p2} "BALL_POTTED[10]"
view_integer_variable $6446 {_p2} "BALL_POTTED[11]"
view_integer_variable $6447 {_p2} "BALL_POTTED[12]"
view_integer_variable $6448 {_p2} "BALL_POTTED[13]"
view_integer_variable $6449 {_p2} "BALL_POTTED[14]"
view_integer_variable $6450 {_p2} "BALL_POTTED[15]"

:POOL2_3062
if 
  212@ == 4
goto_if_false @POOL2_3319
set_var_int_to_lvar_int $pool_view_debug = 219@
set_var_int_to_lvar_int $6444 = 220@
set_var_int_to_lvar_int $6445 = 229@
set_var_int_to_lvar_int $6446 = 230@
set_var_int_to_lvar_int $6447 = 231@
set_var_int_to_lvar_int $6448 = 232@
set_var_int_to_lvar_int $6449 = 251@
set_var_int_to_lvar_int $6450 = 250@
view_integer_variable $pool_view_debug {_p2} "PLAYER1_IS_HUMAN"
view_integer_variable $6444 {_p2} "PLAYER2_IS_HUMAN"
view_integer_variable $6445 {_p2} "TURN_PLAYER"
view_integer_variable $6446 {_p2} "CURRENT_CHAR_IS_HUMAN"
view_integer_variable $6447 {_p2} "TURN_COLOUR"
view_integer_variable $6448 {_p2} "TURN_IS_SCRATCH"
view_integer_variable $6449 {_p2} "THIS_CHAR_GOT_TASK"
view_integer_variable $6450 {_p2} "SHOT_PLAYED"

:POOL2_3319
if 
  212@ == 5
goto_if_false @POOL2_3547
set_var_int_to_lvar_int $6444 = 233@
set_var_int_to_lvar_int $6445 = 271@
set_var_int_to_lvar_int $6446 = 272@
set_var_int_to_lvar_int $6447 = 273@
set_var_int_to_lvar_int $6448 = 274@
set_var_int_to_lvar_int $6449 = 278@
set_var_int_to_lvar_int $6450 = 236@
view_integer_variable $6444 {_p2} "SKIP_CHALK_CUE"
view_integer_variable $6445 {_p2} "NO_OF_BALLS_POTTED_THIS_TURN"
view_integer_variable $6446 {_p2} "SPOTS_POTTED"
view_integer_variable $6447 {_p2} "STRIPES_POTTED"
view_integer_variable $6448 {_p2} "FOUL_TYPE"
view_integer_variable $6449 {_p2} "FIRST_MOVING_BALL"
view_integer_variable $6450 {_p2} "CAMERA_MODE"

:POOL2_3547
if 
  212@ == 6
goto_if_false @POOL2_3885
set_var_int_to_lvar_int $pool_view_debug = 255@
set_var_int_to_lvar_int $6444 = 256@
set_var_int_to_lvar_int $6445 = 257@
set_var_int_to_lvar_int $6446 = 258@
set_var_int_to_lvar_int $6447 = 259@
set_var_int_to_lvar_int $6448 = 260@
set_var_int_to_lvar_int $6449 = 261@
set_var_int_to_lvar_int $6450 = 262@
view_integer_variable $pool_view_debug {_p2} "BALLS_POTTED_THIS_TURN[0]"
view_integer_variable $6444 {_p2} "BALLS_POTTED_THIS_TURN[1]"
view_integer_variable $6445 {_p2} "BALLS_POTTED_THIS_TURN[2]"
view_integer_variable $6446 {_p2} "BALLS_POTTED_THIS_TURN[3]"
view_integer_variable $6447 {_p2} "BALLS_POTTED_THIS_TURN[4]"
view_integer_variable $6448 {_p2} "BALLS_POTTED_THIS_TURN[5]"
view_integer_variable $6449 {_p2} "BALLS_POTTED_THIS_TURN[6]"
view_integer_variable $6450 {_p2} "BALLS_POTTED_THIS_TURN[7]"

:POOL2_3885
if 
  212@ == 7
goto_if_false @POOL2_4229
set_var_int_to_lvar_int $pool_view_debug = 263@
set_var_int_to_lvar_int $6444 = 264@
set_var_int_to_lvar_int $6445 = 265@
set_var_int_to_lvar_int $6446 = 266@
set_var_int_to_lvar_int $6447 = 267@
set_var_int_to_lvar_int $6448 = 268@
set_var_int_to_lvar_int $6449 = 269@
set_var_int_to_lvar_int $6450 = 270@
view_integer_variable $pool_view_debug {_p2} "BALLS_POTTED_THIS_TURN[8]"
view_integer_variable $6444 {_p2} "BALLS_POTTED_THIS_TURN[9]"
view_integer_variable $6445 {_p2} "BALLS_POTTED_THIS_TURN[10]"
view_integer_variable $6446 {_p2} "BALLS_POTTED_THIS_TURN[11]"
view_integer_variable $6447 {_p2} "BALLS_POTTED_THIS_TURN[12]"
view_integer_variable $6448 {_p2} "BALLS_POTTED_THIS_TURN[13]"
view_integer_variable $6449 {_p2} "BALLS_POTTED_THIS_TURN[14]"
view_integer_variable $6450 {_p2} "BALLS_POTTED_THIS_TURN[15]"

:POOL2_4229
if 
  212@ == 8
goto_if_false @POOL2_4535
set_var_int_to_lvar_int $pool_view_debug = 109@
set_var_int_to_lvar_int $6444 = 110@
set_var_int_to_lvar_int $6445 = 111@
set_var_int_to_lvar_int $6446 = 112@
set_var_int_to_lvar_int $6447 = 113@
set_var_int_to_lvar_int $6448 = 114@
set_var_int_to_lvar_int $6449 = 115@
set_var_int_to_lvar_int $6450 = 116@
view_integer_variable $pool_view_debug {_p2} "BALL_IS_STATIONARY[0]"
view_integer_variable $6444 {_p2} "BALL_IS_STATIONARY[1]"
view_integer_variable $6445 {_p2} "BALL_IS_STATIONARY[2]"
view_integer_variable $6446 {_p2} "BALL_IS_STATIONARY[3]"
view_integer_variable $6447 {_p2} "BALL_IS_STATIONARY[4]"
view_integer_variable $6448 {_p2} "BALL_IS_STATIONARY[5]"
view_integer_variable $6449 {_p2} "BALL_IS_STATIONARY[6]"
view_integer_variable $6450 {_p2} "BALL_IS_STATIONARY[7]"

:POOL2_4535
if 
  212@ == 9
goto_if_false @POOL2_4847
set_var_int_to_lvar_int $pool_view_debug = 117@
set_var_int_to_lvar_int $6444 = 118@
set_var_int_to_lvar_int $6445 = 119@
set_var_int_to_lvar_int $6446 = 120@
set_var_int_to_lvar_int $6447 = 121@
set_var_int_to_lvar_int $6448 = 122@
set_var_int_to_lvar_int $6449 = 123@
set_var_int_to_lvar_int $6450 = 124@
view_integer_variable $pool_view_debug {_p2} "BALL_IS_STATIONARY[8]"
view_integer_variable $6444 {_p2} "BALL_IS_STATIONARY[9]"
view_integer_variable $6445 {_p2} "BALL_IS_STATIONARY[10]"
view_integer_variable $6446 {_p2} "BALL_IS_STATIONARY[11]"
view_integer_variable $6447 {_p2} "BALL_IS_STATIONARY[12]"
view_integer_variable $6448 {_p2} "BALL_IS_STATIONARY[13]"
view_integer_variable $6449 {_p2} "BALL_IS_STATIONARY[14]"
view_integer_variable $6450 {_p2} "BALL_IS_STATIONARY[15]"

:POOL2_4847
if 
  212@ == 10
goto_if_false @POOL2_5105
set_var_float_to_lvar_float $pool_view_debug2 = 48@
set_var_float_to_lvar_float $6452 = 49@
set_var_float_to_lvar_float $6453 = 50@
set_var_float_to_lvar_float $6454 = 51@
set_var_float_to_lvar_float $6455 = 98@
set_var_float_to_lvar_float $6456 = 99@
set_var_float_to_lvar_float $6457 = 100@
set_var_float_to_lvar_float $6458 = 101@
view_float_variable $pool_view_debug2 {_p2} "CUE_BALL_SPEED"
view_float_variable $6452 {_p2} "CUE_BALL_ROT_X"
view_float_variable $6453 {_p2} "CUE_BALL_ROT_Y"
view_float_variable $6454 {_p2} "CUE_BALL_ROT_Z"
view_float_variable $6455 {_p2} "POOL_TABLE_MIN_X"
view_float_variable $6456 {_p2} "POOL_TABLE_MAX_X"
view_float_variable $6457 {_p2} "POOL_TABLE_MIN_Y"
view_float_variable $6458 {_p2} "POOL_TABLE_MAX_Y"

:POOL2_5105
if 
  212@ == 11
goto_if_false @POOL2_5304
set_var_int_to_lvar_int $pool_view_debug = TIMERA
set_var_int_to_lvar_int $6444 = TIMERB
set_var_float_to_lvar_float $6453 = 650@
set_var_float_to_lvar_float $6454 = 203@
set_var_float_to_lvar_float $6455 = 204@
set_var_int_to_lvar_int $6448 = 277@
view_integer_variable $pool_view_debug {_p2} "TIMERA"
view_integer_variable $6444 {_p2} "TIMERB"
view_float_variable $6453 {_p2} "BALL_TURN_MASS"
view_float_variable $6454 {_p2} "POOL_STOP_VELOCITY"
view_float_variable $6455 {_p2} "POOL_STOP_ROTATION_VELOCITY"
view_integer_variable $6448 {_p2} "BALL_STRIKES_CUSHION"

:POOL2_5304
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @POOL2_5408
if 
  219@ == 1
goto_if_false @POOL2_5378
219@ = 0
write_debug "CHEAT_PLAYER1_NOT_HUMAN"
goto @POOL2_5408

:POOL2_5378
219@ = 1
write_debug "CHEAT_PLAYER1_HUMAN"

:POOL2_5408
return 

:POOL2_5410
if 
  35@ == -1
goto_if_false @POOL2_5450
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_5450
if 
  35@ == 0
goto_if_false @POOL2_7124
display_hud True
display_radar False
$bj_players_cash = store_score $player1
if 
  is_int_var_greater_than_int_var $pool_min_bet > $bj_players_cash
goto_if_false @POOL2_5523
108@ = 1
clear_prints 
set_camera_behind_player 
restore_camera_jumpcut 
goto @POOL2_7078

:POOL2_5523
clear_area 102@ {y} 103@ {z} 104@ {radius} 15.0 {clearParticles} True
set_object_coordinates 163@ {x} 102@ {y} 103@ {z} 104@
98@, 100@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.9098 {yOffset} -0.4589 {zOffset} 0.7
99@, 101@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.9242 {yOffset} 0.4809 {zOffset} 0.7
if 
  is_float_lvar_greater_than_float_lvar 98@ > 99@
goto_if_false @POOL2_5656
set_var_float_to_lvar_float $x = 98@
set_lvar_float_to_lvar_float 98@ = 99@
set_lvar_float_to_var_float 99@ = $x

:POOL2_5656
if 
  is_float_lvar_greater_than_float_lvar 100@ > 101@
goto_if_false @POOL2_5699
set_var_float_to_lvar_float $y = 100@
set_lvar_float_to_lvar_float 100@ = 101@
set_lvar_float_to_var_float 101@ = $y

:POOL2_5699
set_pool_table_coords 98@ {leftBottomY} 100@ {leftBottomZ} $z {rightTopX} 99@ {rightTopY} 101@ {rightTopZ} $z
175@, 176@, 177@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.5
42@ = get_distance_between_coords_2d 98@ {fromY} 100@ {toX} 99@ {toZ} 100@
43@ = get_distance_between_coords_2d 98@ {fromY} 100@ {toX} 98@ {toZ} 101@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_5866
set_lvar_float_to_lvar_float 42@ = 98@
add_float_lvar_to_float_lvar 42@ += 99@
42@ /= 2.0
set_lvar_float_to_lvar_float 55@ = 42@
set_lvar_float_to_lvar_float 61@ = 100@
set_lvar_float_to_lvar_float 58@ = 42@
set_lvar_float_to_lvar_float 64@ = 101@
goto @POOL2_5924

:POOL2_5866
set_lvar_float_to_lvar_float 42@ = 100@
add_float_lvar_to_float_lvar 42@ += 101@
42@ /= 2.0
set_lvar_float_to_lvar_float 55@ = 98@
set_lvar_float_to_lvar_float 61@ = 42@
set_lvar_float_to_lvar_float 58@ = 99@
set_lvar_float_to_lvar_float 64@ = 42@

:POOL2_5924
set_lvar_float_to_lvar_float 54@ = 98@
set_lvar_float_to_lvar_float 60@ = 100@
set_lvar_float_to_lvar_float 56@ = 98@
set_lvar_float_to_lvar_float 62@ = 101@
set_lvar_float_to_lvar_float 57@ = 99@
set_lvar_float_to_lvar_float 63@ = 101@
set_lvar_float_to_lvar_float 59@ = 99@
set_lvar_float_to_lvar_float 65@ = 100@
52@ = 0.037
set_lvar_float_to_lvar_float 53@ = 52@
53@ *= 2.0
39@ = 0

:POOL2_6023
if 
  16 > 39@
goto_if_false @POOL2_6084
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_6070
delete_object 82@(39@,16i)

:POOL2_6070
39@ += 1
goto @POOL2_6023

:POOL2_6084
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.2734 {yOffset} -0.0547 {zOffset} 0.9297
82@ = create_object_no_offset #K_POOLBALLCUE {x} $x {y} $y {z} $z
$heading = get_object_heading 163@
$heading += 270.0
set_object_heading 82@ {heading} $heading
558@, 559@, 560@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.3408 {yOffset} -0.0284 {zOffset} 0.9297
561@ = get_object_heading 163@
561@ += 90.0
83@ = create_object_no_offset #K_POOLBALLSPT01 {x} 558@ {y} 559@ {z} 560@
84@ = create_object_no_offset #K_POOLBALLSPT02 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_object_no_offset #K_POOLBALLSPT03 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_object_no_offset #K_POOLBALLSPT04 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_object_no_offset #K_POOLBALLSPT05 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_object_no_offset #K_POOLBALLSPT06 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_object_no_offset #K_POOLBALLSPT07 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_object_no_offset #K_POOLBALL8 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_object_no_offset #K_POOLBALLSTP01 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object_no_offset #K_POOLBALLSTP02 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object_no_offset #K_POOLBALLSTP03 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_object_no_offset #K_POOLBALLSTP04 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_object_no_offset #K_POOLBALLSTP05 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_object_no_offset #K_POOLBALLSTP06 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_object_no_offset #K_POOLBALLSTP07 {x} 0.0 {y} 0.0 {z} 0.0
gosub @POOL2_50546
display_radar False
set_player_control $player1 {state} False
clear_help 
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.5261 {yOffset} -1.9684 {zOffset} 1.637
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.0746 {yOffset} -1.0853 {zOffset} 1.5092
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 164@
goto_if_false @POOL2_6892
clear_char_tasks_immediately 164@
drop_object 164@ {state} False
if 
  does_object_exist $active_initial_cue
goto_if_false @POOL2_6692
delete_object $active_initial_cue

:POOL2_6692
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0219 {yOffset} -1.1236 {zOffset} 0.0363
set_char_coordinates 164@ {x} $x {y} $y {z} $z
set_lvar_float_to_lvar_float 42@ = 105@
42@ += 130.0
set_char_heading 164@ {heading} 42@
47@ = open_sequence_task 
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.5261 {yOffset} -1.9684 {zOffset} 1.637
task_look_at_coord -1 {x} $x {y} $y {z} $z {time} 999999
if 
  108@ == 0
goto_if_false @POOL2_6874
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:POOL2_6874
close_sequence_task 47@
perform_sequence_task 164@ {sequence} 47@
clear_sequence_task 47@

:POOL2_6892
if 
  not does_object_exist 107@
goto_if_false @POOL2_6937
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 107@ {state} False

:POOL2_6937
if 
  is_player_playing $player1
goto_if_false @POOL2_7051
clear_char_tasks_immediately $scplayer
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -1.9295 {yOffset} -2.2083 {zOffset} 0.0363
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
set_lvar_float_to_var_float 221@ = $x
set_lvar_float_to_var_float 222@ = $y
set_lvar_float_to_var_float 223@ = $z
set_lvar_float_to_lvar_float 42@ = 105@
42@ += 390.0
set_char_heading $scplayer {heading} 42@

:POOL2_7051
set_lvar_int_to_lvar_int 358@ = 164@
set_lvar_int_to_lvar_int 359@ = 107@
gosub @POOL2_30670
set_script_coop_game False

:POOL2_7078
start_new_script @CLEANAU 
do_fade 1000 {direction} Fade.In

:POOL2_7093
if 
  get_fading_status 
goto_if_false @POOL2_7117
wait 0
goto @POOL2_7093

:POOL2_7117
35@ += 1

:POOL2_7124
if 
  35@ == 1
goto_if_false @POOL2_7557
if 
  not is_char_dead 164@
goto_if_false @POOL2_7539
if 
  is_char_model 164@ {modelId} 66
goto_if_false @POOL2_7361
39@ = generate_random_int_in_range 0 {max} 3
switch_start 39@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @POOL2_7335 {caseNum1} 0 {caseLabel1} @POOL2_7248 {caseNum2} 1 {caseLabel2} @POOL2_7277 {caseNum3} 2 {caseLabel3} @POOL2_7306 {caseNum4} -1 {caseLabel4} @POOL2_7335 {caseNum5} -1 {caseLabel5} @POOL2_7335 {caseNum6} -1 {caseLabel6} @POOL2_7335 {caseNum7} -1 {caseLabel7} @POOL2_7335

:POOL2_7248
set_var_text_label s$audio_string = 'POOL_B1'
set_var_int_to_constant $audio_sound_file = 31600
goto @POOL2_7335

:POOL2_7277
set_var_text_label s$audio_string = 'POOL_B2'
set_var_int_to_constant $audio_sound_file = 31601
goto @POOL2_7335

:POOL2_7306
set_var_text_label s$audio_string = 'POOL_B3'
set_var_int_to_constant $audio_sound_file = 31602
goto @POOL2_7335

:POOL2_7335
start_new_script @AUDIOL 164@ 0 1 1 0 
goto @POOL2_7539

:POOL2_7361
39@ = generate_random_int_in_range 0 {max} 3
switch_start 39@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @POOL2_7520 {caseNum1} 0 {caseLabel1} @POOL2_7433 {caseNum2} 1 {caseLabel2} @POOL2_7462 {caseNum3} 2 {caseLabel3} @POOL2_7491 {caseNum4} -1 {caseLabel4} @POOL2_7520 {caseNum5} -1 {caseLabel5} @POOL2_7520 {caseNum6} -1 {caseLabel6} @POOL2_7520 {caseNum7} -1 {caseLabel7} @POOL2_7520

:POOL2_7433
set_var_text_label s$audio_string = 'POOL_B4'
set_var_int_to_constant $audio_sound_file = 31603
goto @POOL2_7520

:POOL2_7462
set_var_text_label s$audio_string = 'POOL_B5'
set_var_int_to_constant $audio_sound_file = 31604
goto @POOL2_7520

:POOL2_7491
set_var_text_label s$audio_string = 'POOL_B6'
set_var_int_to_constant $audio_sound_file = 31605
goto @POOL2_7520

:POOL2_7520
start_new_script @AUDIOL 164@ 0 1 1 0 

:POOL2_7539
use_text_commands True
TIMERA = 0
35@ += 1

:POOL2_7557
if 
  35@ == 2
goto_if_false @POOL2_7717
if or
  not is_message_being_displayed 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @POOL2_7717
clear_prints 
if 
  is_player_playing $player1
goto_if_false @POOL2_7620
159@ = store_score $player1

:POOL2_7620
set_help_message_box_size 200
print_help_forever 'PL_H1'
$pool_min_bet = 50
$pool_max_bet = 1000
set_lvar_int_to_var_int 161@ = $pool_min_bet
set_lvar_int_to_var_int 162@ = $pool_min_bet
set_lvar_int_to_var_int 155@ = $pool_min_bet
set_lvar_int_to_var_int 39@ = $pool_min_bet
39@ *= -1
add_score $player1 {money} 39@
switch_widescreen False
start_new_script @CLEANAU 
35@ += 1

:POOL2_7717
if 
  35@ == 3
goto_if_false @POOL2_8897
gosub @POOL2_54522
$bj_players_cash = store_score $player1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @POOL2_8176
if and
  126@ <> 1
  126@ <> -1
goto_if_false @POOL2_8125
if 
  155@ >= 10000
goto_if_false @POOL2_7826
160@ = 1000
goto @POOL2_7930

:POOL2_7826
if 
  155@ >= 1000
goto_if_false @POOL2_7859
160@ = 100
goto @POOL2_7930

:POOL2_7859
if 
  155@ >= 100
goto_if_false @POOL2_7891
160@ = 10
goto @POOL2_7930

:POOL2_7891
if 
  155@ == 0
goto_if_false @POOL2_7923
160@ = 2
goto @POOL2_7930

:POOL2_7923
160@ = 1

:POOL2_7930
if 
  is_int_lvar_greater_than_int_var 160@ > $bj_players_cash
goto_if_false @POOL2_7957
set_lvar_int_to_var_int 160@ = $bj_players_cash

:POOL2_7957
set_lvar_int_to_lvar_int 39@ = 155@
add_int_lvar_to_int_lvar 39@ += 160@
if 
  is_int_lvar_greater_than_int_var 39@ > $pool_max_bet
goto_if_false @POOL2_8008
set_lvar_int_to_var_int 160@ = $pool_max_bet
sub_int_lvar_from_int_lvar 160@ -= 155@

:POOL2_8008
if 
  0 > 160@
goto_if_false @POOL2_8033
160@ *= -1

:POOL2_8033
add_int_lvar_to_int_lvar 155@ += 160@
add_int_lvar_to_int_lvar 161@ += 160@
add_int_lvar_to_int_lvar 162@ += 160@
160@ *= -1
add_score $player1 {money} 160@
126@ += 1
if 
  126@ > 1
goto_if_false @POOL2_8111
126@ = 2
goto @POOL2_8118

:POOL2_8111
TIMERA = 0

:POOL2_8118
goto @POOL2_8169

:POOL2_8125
if 
  126@ == 1
goto_if_false @POOL2_8169
if 
  TIMERA > 500
goto_if_false @POOL2_8169
126@ = 2

:POOL2_8169
goto @POOL2_8550

:POOL2_8176
if 
  126@ <> 0
goto_if_false @POOL2_8201
126@ = 0

:POOL2_8201
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @POOL2_8525
if 
  128@ <> 1
goto_if_false @POOL2_8492
if 
  155@ > 10000
goto_if_false @POOL2_8270
160@ = -1000
goto @POOL2_8342

:POOL2_8270
if 
  155@ > 1000
goto_if_false @POOL2_8303
160@ = -100
goto @POOL2_8342

:POOL2_8303
if 
  155@ > 100
goto_if_false @POOL2_8335
160@ = -10
goto @POOL2_8342

:POOL2_8335
160@ = -1

:POOL2_8342
set_lvar_int_to_lvar_int 39@ = 155@
add_int_lvar_to_int_lvar 39@ += 160@
if 
  is_int_var_greater_than_int_lvar $pool_min_bet > 39@
goto_if_false @POOL2_8400
set_lvar_int_to_lvar_int 160@ = 155@
sub_int_var_from_int_lvar 160@ -= $pool_min_bet
160@ *= -1

:POOL2_8400
add_int_lvar_to_int_lvar 155@ += 160@
add_int_lvar_to_int_lvar 161@ += 160@
add_int_lvar_to_int_lvar 162@ += 160@
160@ *= -1
add_score $player1 {money} 160@
128@ += 1
if 
  128@ > 1
goto_if_false @POOL2_8478
128@ = 2
goto @POOL2_8485

:POOL2_8478
TIMERA = 0

:POOL2_8485
goto @POOL2_8518

:POOL2_8492
if 
  TIMERA > 500
goto_if_false @POOL2_8518
128@ = 2

:POOL2_8518
goto @POOL2_8550

:POOL2_8525
if 
  128@ <> 0
goto_if_false @POOL2_8550
128@ = 0

:POOL2_8550
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @POOL2_8619
if 
  not is_char_dead 164@
goto_if_false @POOL2_8591
set_char_money 164@ {amount} 162@

:POOL2_8591
161@ = 0
178@ = 0
35@ = 99
goto @POOL2_8680

:POOL2_8619
if 
  is_button_pressed PadId.Pad2 {buttonId} Button.Start
goto_if_false @POOL2_8680
disable_2nd_pad_for_debug 1
set_script_coop_game True
$disable_debug = 1
add_score $player1 {money} 161@
161@ = 0
178@ = 1
35@ = 99

:POOL2_8680
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @POOL2_8872
if 
  127@ == 0
goto_if_false @POOL2_8865
if 
  not is_char_dead 213@
goto_if_false @POOL2_8782
223@ += 1.1
clear_char_tasks_immediately 213@
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 213@ {heading} 224@

:POOL2_8782
if 
  not is_char_dead 214@
goto_if_false @POOL2_8849
227@ += 1.1
clear_char_tasks_immediately 214@
227@ = get_ground_z_for_3d_coord 225@ {y} 226@ {z} 227@
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
set_char_heading 214@ {heading} 228@

:POOL2_8849
clear_help 
108@ = 1
127@ = 1

:POOL2_8865
goto @POOL2_8897

:POOL2_8872
if 
  127@ == 1
goto_if_false @POOL2_8897
127@ = 0

:POOL2_8897
if 
  35@ == 99
goto_if_false @POOL2_8956
if 
  not is_char_dead 164@
goto_if_false @POOL2_8936
clear_look_at 164@

:POOL2_8936
display_hud False
clear_help 
35@ = 0
34@ += 1

:POOL2_8956
return 

:POOL2_8958
if 
  35@ == -1
goto_if_false @POOL2_9114
213@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
214@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
215@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
106@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
216@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_9114
if 
  35@ == 0
goto_if_false @POOL2_9673
if 
  178@ == 0
goto_if_false @POOL2_9185
217@ = -1
218@ = -1
219@ = 1
220@ = 0
goto @POOL2_9213

:POOL2_9185
217@ = -1
218@ = -1
219@ = 1
220@ = 1

:POOL2_9213
221@, 222@, 223@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} 0.0
set_lvar_float_to_lvar_float 224@ = 105@
224@ += 180.0
225@, 226@, 227@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -1.8 {zOffset} 0.0
set_lvar_float_to_lvar_float 228@ = 105@
set_lvar_int_to_var_int 213@ = $scplayer
set_lvar_int_to_lvar_int 214@ = 164@
if 
  not does_object_exist 106@
goto_if_false @POOL2_9358
106@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 106@ {state} False

:POOL2_9358
if 
  not does_object_exist 107@
goto_if_false @POOL2_9403
107@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 107@ {state} False

:POOL2_9403
if 
  not is_char_dead 213@
goto_if_false @POOL2_9448
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 213@ {heading} 224@
hide_char_weapon_for_scripted_cutscene 213@ {state} True

:POOL2_9448
if 
  not is_char_dead 214@
goto_if_false @POOL2_9493
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
set_char_heading 214@ {heading} 228@
hide_char_weapon_for_scripted_cutscene 214@ {state} True

:POOL2_9493
229@ = 1
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
set_lvar_int_to_lvar_int 230@ = 219@
set_lvar_int_to_lvar_int 231@ = 217@
232@ = 1
set_lvar_int_to_constant 180@ = 0
278@ = -1
279@ = 0
236@ = 1
if 
  236@ == 0
goto_if_false @POOL2_9622
242@ = 10.0
243@ = 0.02
244@ = 0.0
goto @POOL2_9652

:POOL2_9622
242@ = 22.5
243@ = 0.02
244@ = 0.0

:POOL2_9652
184@ = 1
35@ = 0
34@ += 1

:POOL2_9673
return 

:POOL2_9675
if 
  233@ == 0
goto_if_false @POOL2_10212
if 
  35@ == 0
goto_if_false @POOL2_10060
if 
  not is_char_dead 213@
goto_if_false @POOL2_9773
223@ += 1.0
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 213@ {heading} 224@

:POOL2_9773
if 
  not is_char_dead 214@
goto_if_false @POOL2_9835
227@ += 1.1
227@ = get_ground_z_for_3d_coord 225@ {y} 226@ {z} 227@
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
set_char_heading 214@ {heading} 228@

:POOL2_9835
if 
  not is_char_dead 215@
goto_if_false @POOL2_10060
drop_object 215@ {state} False
$x, $y, $z = get_offset_from_char_in_world_coords 215@ {xOffset} 1.0 {yOffset} 3.0 {zOffset} 1.0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 215@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_CHALKCUE" {animationFile} "POOL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_10041
perform_sequence_task 215@ {sequence} 47@

:POOL2_10041
clear_sequence_task 47@
TIMERA = 0
35@ += 1

:POOL2_10060
if 
  35@ == 1
goto_if_false @POOL2_10138
if 
  not is_char_dead 215@
goto_if_false @POOL2_10138
39@ = get_script_task_status 215@ {taskId} 1560
if or
  is_int_lvar_equal_to_constant 39@ == 7
  TIMERA > 3000
goto_if_false @POOL2_10138
35@ = 99

:POOL2_10138
if 
  TIMERA > 500
goto_if_false @POOL2_10205
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_10205
if 
  not is_char_dead 215@
goto_if_false @POOL2_10205
126@ = 1
35@ = 99

:POOL2_10205
goto @POOL2_10235

:POOL2_10212
if 
  not is_char_dead 215@
goto_if_false @POOL2_10235
35@ = 99

:POOL2_10235
if 
  35@ == 99
goto_if_false @POOL2_10280
clear_mission_audio MissionAudioSlot.Slot4
clear_help 
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_10280
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_10471
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_10464
if 
  not is_char_dead 213@
goto_if_false @POOL2_10386
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 213@ {heading} 224@

:POOL2_10386
if 
  not is_char_dead 214@
goto_if_false @POOL2_10448
227@ += 1.1
227@ = get_ground_z_for_3d_coord 225@ {y} 226@ {z} 227@
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
set_char_heading 214@ {heading} 228@

:POOL2_10448
clear_help 
108@ = 1
127@ = 1

:POOL2_10464
goto @POOL2_10503

:POOL2_10471
if 
  127@ == 1
goto_if_false @POOL2_10496
127@ = 0

:POOL2_10496
183@ = 0

:POOL2_10503
return 

:POOL2_10505
if and
  232@ <> 0
  230@ == 1
goto_if_false @POOL2_10537
gosub @POOL2_59389

:POOL2_10537
if 
  232@ <> 0
goto_if_false @POOL2_10821
if 
  66@ == 1
goto_if_false @POOL2_10706
if 
  not does_object_exist 82@
goto_if_false @POOL2_10699
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.9297
set_lvar_float_to_var_float 627@ = $x
set_lvar_float_to_var_float 628@ = $y
gosub @POOL2_54002
set_var_float_to_lvar_float $x = 627@
set_var_float_to_lvar_float $y = 628@
82@ = create_object_no_offset #K_POOLBALLCUE {x} $x {y} $y {z} $z
$heading = get_object_heading 163@
$heading += 270.0
set_object_heading 82@ {heading} $heading

:POOL2_10699
66@ = 0

:POOL2_10706
if 
  is_button_pressed 180@ {buttonId} Button.Square
goto_if_false @POOL2_10796
if 
  128@ == 0
goto_if_false @POOL2_10789
if 
  198@ == 2
goto_if_false @POOL2_10774
198@ = 0
goto @POOL2_10782

:POOL2_10774
205@ = 3001

:POOL2_10782
128@ = 1

:POOL2_10789
goto @POOL2_10821

:POOL2_10796
if 
  128@ == 1
goto_if_false @POOL2_10821
128@ = 0

:POOL2_10821
if 
  232@ == 1
goto_if_false @POOL2_11055
if 
  35@ == 0
goto_if_false @POOL2_11055
if 
  230@ == 1
goto_if_false @POOL2_10972
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_object_coordinates 82@ {x} $x {y} $y {z} 560@
set_object_heading 82@ {heading} $heading
TIMERA = 0
35@ = 99
goto @POOL2_12101
goto @POOL2_11055

:POOL2_10972
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_object_coordinates 82@ {x} $x {y} $y {z} 560@
set_object_heading 82@ {heading} $heading
35@ = 99
goto @POOL2_12101

:POOL2_11055
if 
  232@ == 2
goto_if_false @POOL2_11846
if 
  35@ == 0
goto_if_false @POOL2_11471
if 
  230@ == 1
goto_if_false @POOL2_11349
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_lvar_float_to_var_float 627@ = $x
set_lvar_float_to_var_float 628@ = $y
gosub @POOL2_54002
set_var_float_to_lvar_float $x = 627@
set_var_float_to_lvar_float $y = 628@
set_object_coordinates 82@ {x} $x {y} $y {z} 560@
set_object_heading 82@ {heading} $heading
TIMERA = 0
35@ += 1
198@ = 0
205@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -0.001 {zOffset} 2.5
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.001 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @POOL2_11471

:POOL2_11349
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.35 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading 163@
$heading += 270.0
set_lvar_float_to_var_float 627@ = $x
set_lvar_float_to_var_float 628@ = $y
gosub @POOL2_54002
set_var_float_to_lvar_float $x = 627@
set_var_float_to_lvar_float $y = 628@
set_object_coordinates 82@ {x} $x {y} $y {z} 560@
set_object_heading 82@ {heading} $heading
35@ = 99
goto @POOL2_12101

:POOL2_11471
if 
  35@ == 1
goto_if_false @POOL2_11846
$x, $y, $z = get_object_coordinates 82@
39@ = 0
if or
  is_button_pressed 180@ {buttonId} Button.LeftStickX
  is_button_pressed 180@ {buttonId} Button.LeftStickY
goto_if_false @POOL2_11542
39@ = 1

:POOL2_11542
if 
  39@ == 1
goto_if_false @POOL2_11757
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_lvar_float_to_var_int 235@ =# $LStickX
cset_lvar_float_to_var_int 234@ =# $LStickY
235@ /= 128.0
234@ /= -128.0
235@ *= 0.01
234@ *= 0.01
gosub @POOL2_54371
mult_float_var_by_float_lvar $cam_nvec_x *= 234@
mult_float_var_by_float_lvar $cam_nvec_y *= 234@
add_float_var_to_float_var $x += $cam_nvec_x
add_float_var_to_float_var $y += $cam_nvec_y
mult_float_var_by_float_lvar $cam_rvec_x *= 235@
mult_float_var_by_float_lvar $cam_rvec_y *= 235@
add_float_var_to_float_var $x += $cam_rvec_x
add_float_var_to_float_var $y += $cam_rvec_y
set_lvar_float_to_var_float 627@ = $x
set_lvar_float_to_var_float 628@ = $y
gosub @POOL2_54002
set_var_float_to_lvar_float $x = 627@
set_var_float_to_lvar_float $y = 628@
set_object_coordinates 82@ {x} $x {y} $y {z} 560@

:POOL2_11757
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_11821
if 
  126@ == 0
goto_if_false @POOL2_11814
35@ = 99
126@ = 1
goto @POOL2_12101

:POOL2_11814
goto @POOL2_11846

:POOL2_11821
if 
  126@ == 1
goto_if_false @POOL2_11846
126@ = 0

:POOL2_11846
if 
  232@ == 0
goto_if_false @POOL2_11878
35@ = 99
goto @POOL2_12101

:POOL2_11878
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_12069
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_12062
if 
  not is_char_dead 213@
goto_if_false @POOL2_11984
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 213@ {heading} 224@

:POOL2_11984
if 
  not is_char_dead 214@
goto_if_false @POOL2_12046
227@ += 1.1
227@ = get_ground_z_for_3d_coord 225@ {y} 226@ {z} 227@
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
set_char_heading 214@ {heading} 228@

:POOL2_12046
clear_help 
108@ = 1
127@ = 1

:POOL2_12062
goto @POOL2_12101

:POOL2_12069
if 
  127@ == 1
goto_if_false @POOL2_12094
127@ = 0

:POOL2_12094
183@ = 0

:POOL2_12101
if 
  35@ == 99
goto_if_false @POOL2_12135
34@ += 1
35@ = 0
clear_help 

:POOL2_12135
return 

:POOL2_12137
if 
  230@ == 1
goto_if_false @POOL2_15142
gosub @POOL2_57034
if 
  35@ == -1
goto_if_false @POOL2_12202
238@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_12202
if 
  35@ == 0
goto_if_false @POOL2_13396
if 
  not is_char_dead 213@
goto_if_false @POOL2_12282
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 213@ {heading} 224@

:POOL2_12282
if 
  not is_char_dead 214@
goto_if_false @POOL2_12344
227@ += 1.1
227@ = get_ground_z_for_3d_coord 225@ {y} 226@ {z} 227@
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
set_char_heading 214@ {heading} 228@

:POOL2_12344
if 
  not is_char_dead 215@
goto_if_false @POOL2_12405
$x, $y, $z = get_char_coordinates 215@
$z += -10.0
set_char_coordinates 215@ {x} $x {y} $y {z} $z
freeze_char_position 215@ {state} True

:POOL2_12405
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -0.001 {zOffset} 2.5
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.001 {zOffset} 0.0
if 
  does_object_exist 82@
goto_if_false @POOL2_12505
$heading = get_object_heading 82@
set_object_rotation 82@ {x} 0.0 {y} 0.0 {z} $heading

:POOL2_12505
if 
  not does_object_exist 238@
goto_if_false @POOL2_12594
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -10.0
238@ = create_object_no_offset #K_POOLQ2 {x} $x {y} $y {z} $z
set_object_dynamic 238@ {state} False
set_object_collision 238@ {state} False
set_object_draw_last 238@ {state} True
goto @POOL2_12615

:POOL2_12594
set_object_dynamic 238@ {state} False
set_object_collision 238@ {state} False
set_object_draw_last 238@ {state} True

:POOL2_12615
205@ = 0
198@ = 0
if 
  245@ == 0
goto_if_false @POOL2_13348
239@ = -1
42@ = 99999.8984
if 
  does_object_exist 82@
goto_if_false @POOL2_13197
$x, $y, $z = get_object_coordinates 82@
if 
  231@ == -1
goto_if_false @POOL2_12848
39@ = 1

:POOL2_12719
if 
  16 > 39@
goto_if_false @POOL2_12841
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_12827
165@, 166@, 167@ = get_object_coordinates 82@(39@,16i)
43@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_12827
set_lvar_int_to_lvar_int 239@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_12827
39@ += 1
goto @POOL2_12719

:POOL2_12841
goto @POOL2_13197

:POOL2_12848
if 
  231@ == 0
goto_if_false @POOL2_13002
39@ = 1

:POOL2_12873
if 
  8 > 39@
goto_if_false @POOL2_12995
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_12981
165@, 166@, 167@ = get_object_coordinates 82@(39@,16i)
43@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_12981
set_lvar_int_to_lvar_int 239@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_12981
39@ += 1
goto @POOL2_12873

:POOL2_12995
goto @POOL2_13197

:POOL2_13002
if 
  231@ == 1
goto_if_false @POOL2_13156
39@ = 9

:POOL2_13027
if 
  16 > 39@
goto_if_false @POOL2_13149
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_13135
165@, 166@, 167@ = get_object_coordinates 82@(39@,16i)
43@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_13135
set_lvar_int_to_lvar_int 239@ = 39@
set_lvar_float_to_lvar_float 42@ = 43@

:POOL2_13135
39@ += 1
goto @POOL2_13027

:POOL2_13149
goto @POOL2_13197

:POOL2_13156
if 
  231@ == 2
goto_if_false @POOL2_13197
if 
  does_object_exist 90@
goto_if_false @POOL2_13197
239@ = 8

:POOL2_13197
if and
  239@ <> -1
  16 > 239@
goto_if_false @POOL2_13341
if 
  does_object_exist 82@
goto_if_false @POOL2_13341
$x, $y, $z = get_object_coordinates 82@
if 
  does_object_exist 82@(239@,16i)
goto_if_false @POOL2_13290
165@, 166@, 167@ = get_object_coordinates 82@(239@,16i)

:POOL2_13290
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
42@ = get_heading_from_vector_2d 169@ {y} 170@
set_object_heading 82@ {heading} 42@

:POOL2_13341
goto @POOL2_13355

:POOL2_13348
245@ = 0

:POOL2_13355
240@ = 0
gosub @POOL2_28396
199@ = 0.0
200@ = 0.0
35@ += 1

:POOL2_13396
if 
  35@ == 1
goto_if_false @POOL2_13627
if 
  is_button_pressed 180@ {buttonId} Button.Select
goto_if_false @POOL2_13602
if 
  237@ == 0
goto_if_false @POOL2_13510
if 
  236@ == 0
goto_if_false @POOL2_13489
236@ = 1
237@ = 1
goto @POOL2_13503

:POOL2_13489
236@ = 0
237@ = 1

:POOL2_13503
205@ = 0

:POOL2_13510
if 
  236@ == 0
goto_if_false @POOL2_13565
242@ = 10.0
243@ = 0.02
244@ = 0.0
goto @POOL2_13595

:POOL2_13565
242@ = 22.5
243@ = 0.02
244@ = 0.0

:POOL2_13595
goto @POOL2_13627

:POOL2_13602
if 
  237@ == 1
goto_if_false @POOL2_13627
237@ = 0

:POOL2_13627
201@, 202@ = get_pc_mouse_movement 
if or
  is_button_pressed 180@ {buttonId} Button.LeftStickX
  201@ > 0.01
  -0.01 > 201@
goto_if_false @POOL2_13780
$heading = get_object_heading 82@
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_lvar_float_to_var_int 42@ =# $LStickX
42@ /= 128.0
42@ *= 1.0
add_float_lvar_to_float_var $heading += 42@
201@ *= -0.4
add_float_lvar_to_float_var $heading += 201@
set_object_rotation 82@ {x} 0.0 {y} 0.0 {z} 0.0
set_object_heading 82@ {heading} $heading

:POOL2_13780
if 
  236@ == 0
goto_if_false @POOL2_13895
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -0.001 {zOffset} 2.5
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.001 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_13895
if 
  236@ == 1
goto_if_false @POOL2_14010
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} -0.5 {zOffset} 0.3
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_14010
if 
  236@ == 0
goto_if_false @POOL2_14143
if 
  is_button_pressed 180@ {buttonId} Button.Square
goto_if_false @POOL2_14118
if 
  128@ == 0
goto_if_false @POOL2_14111
if 
  198@ == 2
goto_if_false @POOL2_14096
198@ = 0
goto @POOL2_14104

:POOL2_14096
205@ = 3001

:POOL2_14104
128@ = 1

:POOL2_14111
goto @POOL2_14143

:POOL2_14118
if 
  128@ == 1
goto_if_false @POOL2_14143
128@ = 0

:POOL2_14143
if 
  does_object_exist 238@
goto_if_false @POOL2_14282
if 
  236@ == 0
goto_if_false @POOL2_14209
165@, 166@, 167@ = get_offset_from_object_in_world_coords 82@ {xOffset} 244@ {yOffset} -0.05 {zOffset} 243@
goto @POOL2_14234

:POOL2_14209
165@, 166@, 167@ = get_offset_from_object_in_world_coords 82@ {xOffset} 244@ {yOffset} -0.05 {zOffset} 243@

:POOL2_14234
$heading = get_object_heading 82@
$heading += 180.0
set_object_coordinates 238@ {x} 165@ {y} 166@ {z} 167@
set_object_rotation 238@ {x} 242@ {y} 0.0 {z} $heading

:POOL2_14282
if 
  not is_button_pressed 180@ {buttonId} Button.LeftStickX
goto_if_false @POOL2_14321
240@ = 0
gosub @POOL2_28396
goto @POOL2_14421

:POOL2_14321
if 
  240@ <> 0
goto_if_false @POOL2_14407
39@ = 0

:POOL2_14346
if 
  10 > 39@
goto_if_false @POOL2_14407
if 
  does_object_exist 347@(39@,10i)
goto_if_false @POOL2_14393
delete_object 347@(39@,10i)

:POOL2_14393
39@ += 1
goto @POOL2_14346

:POOL2_14407
240@ = 0
TIMERA = 0

:POOL2_14421
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @POOL2_14447
242@ += 0.5

:POOL2_14447
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @POOL2_14473
242@ += -0.5

:POOL2_14473
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @POOL2_14498
243@ += 0.001

:POOL2_14498
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @POOL2_14523
243@ += -0.001

:POOL2_14523
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @POOL2_14549
244@ += 0.0001

:POOL2_14549
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @POOL2_14575
244@ += -0.0001

:POOL2_14575
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @POOL2_15002
save_newline_to_debug_file 
save_string_to_debug_file "BUTT_ANGLE = "
save_float_to_debug_file 242@
save_newline_to_debug_file 
save_string_to_debug_file "RAISE_CUE = "
save_float_to_debug_file 243@
save_newline_to_debug_file 
save_string_to_debug_file "CUE_X_CORRECTION = "
save_float_to_debug_file 244@

:POOL2_15002
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_15080
if 
  126@ == 0
goto_if_false @POOL2_15073
if 
  does_object_exist 238@
goto_if_false @POOL2_15059
delete_object 238@

:POOL2_15059
35@ = 99
126@ = 1

:POOL2_15073
goto @POOL2_15105

:POOL2_15080
if 
  126@ == 1
goto_if_false @POOL2_15105
126@ = 0

:POOL2_15105
if 
is_ps2_keyboard_key_pressed 72
goto_if_false @POOL2_15135
gosub @POOL2_33712
set_object_heading 82@ {heading} 363@

:POOL2_15135
goto @POOL2_15164

:POOL2_15142
gosub @POOL2_33712
set_object_heading 82@ {heading} 363@
35@ = 99

:POOL2_15164
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_15355
if and
  127@ == 0
  183@ > 1000
goto_if_false @POOL2_15348
if 
  not is_char_dead 213@
goto_if_false @POOL2_15270
223@ += 1.1
223@ = get_ground_z_for_3d_coord 221@ {y} 222@ {z} 223@
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
set_char_heading 213@ {heading} 224@

:POOL2_15270
if 
  not is_char_dead 214@
goto_if_false @POOL2_15332
227@ += 1.1
227@ = get_ground_z_for_3d_coord 225@ {y} 226@ {z} 227@
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
set_char_heading 214@ {heading} 228@

:POOL2_15332
clear_help 
108@ = 1
127@ = 1

:POOL2_15348
goto @POOL2_15387

:POOL2_15355
if 
  127@ == 1
goto_if_false @POOL2_15380
127@ = 0

:POOL2_15380
183@ = 0

:POOL2_15387
if 
  35@ == 99
goto_if_false @POOL2_15509
39@ = 0

:POOL2_15412
if 
  10 > 39@
goto_if_false @POOL2_15473
if 
  does_object_exist 347@(39@,10i)
goto_if_false @POOL2_15459
delete_object 347@(39@,10i)

:POOL2_15459
39@ += 1
goto @POOL2_15412

:POOL2_15473
199@ = 0.0
200@ = 0.0
34@ += 2
35@ = 0
clear_help 

:POOL2_15509
return 

:POOL2_15511
return 

:POOL2_15513
gosub @POOL2_57034
if 
  230@ == 1
goto_if_false @POOL2_16275
if 
  is_button_pressed 180@ {buttonId} Button.Triangle
goto_if_false @POOL2_15609
if 
  127@ == 0
goto_if_false @POOL2_15602
34@ = 5
35@ = 0
127@ = 1
245@ = 1

:POOL2_15602
goto @POOL2_16268

:POOL2_15609
if 
  127@ == 1
goto_if_false @POOL2_15634
127@ = 0

:POOL2_15634
if 
  35@ == 0
goto_if_false @POOL2_15666
gosub @POOL2_18801
35@ += 1

:POOL2_15666
if 
  250@ == 0
goto_if_false @POOL2_15691
gosub @POOL2_53449

:POOL2_15691
if 
  250@ == 0
goto_if_false @POOL2_15993
gosub @POOL2_16733
if 
  252@ == 1
goto_if_false @POOL2_15983
if 
  is_pc_using_joypad 
goto_if_false @POOL2_15852
if 
  is_button_pressed 180@ {buttonId} Button.RightStickY
goto_if_false @POOL2_15835
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_lvar_float_to_var_int 42@ =# $RStickY
42@ /= 128.0
42@ *= -0.2
246@ = 0.2
add_float_lvar_to_float_lvar 246@ += 42@
goto @POOL2_15845

:POOL2_15835
246@ = 0.2

:POOL2_15845
goto @POOL2_15976

:POOL2_15852
201@, 202@ = get_pc_mouse_movement 
add_float_lvar_to_float_lvar 200@ += 202@
if 
  200@ > 128.0
goto_if_false @POOL2_15899
200@ = 128.0

:POOL2_15899
if 
  -128.0 > 200@
goto_if_false @POOL2_15930
200@ = -128.0

:POOL2_15930
set_lvar_float_to_lvar_float 42@ = 200@
42@ /= 128.0
42@ *= -0.2
246@ = 0.2
add_float_lvar_to_float_lvar 246@ += 42@

:POOL2_15976
goto @POOL2_15993

:POOL2_15983
246@ = 0.0

:POOL2_15993
if 
  250@ == 0
goto_if_false @POOL2_16053
if 
  246@ > 0.25
goto_if_false @POOL2_16046
gosub @POOL2_19798
goto @POOL2_16053

:POOL2_16046
gosub @POOL2_18640

:POOL2_16053
if 
  35@ == 1
goto_if_false @POOL2_16101
if 
  not is_char_dead 215@
goto_if_false @POOL2_16101
gosub @POOL2_18983
35@ += 1

:POOL2_16101
if 
  35@ == 2
goto_if_false @POOL2_16126
gosub @POOL2_16987

:POOL2_16126
if 
  35@ == 3
goto_if_false @POOL2_16227
if 
  not is_char_dead 215@
goto_if_false @POOL2_16227
592@ += 1.1
592@ = get_ground_z_for_3d_coord 584@ {y} 588@ {z} 592@
set_char_coordinates 215@ {x} 584@ {y} 588@ {z} 592@
set_char_heading 215@ {heading} 596@
set_char_collision 215@ {state} True
TIMERA = 0
35@ = 99

:POOL2_16227
if 
  35@ == 99
goto_if_false @POOL2_16268
clear_help 
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_16268
goto @POOL2_16731

:POOL2_16275
if 
  35@ == 0
goto_if_false @POOL2_16307
gosub @POOL2_18801
35@ += 1

:POOL2_16307
if 
  250@ == 0
goto_if_false @POOL2_16456
gosub @POOL2_16733
if 
  252@ == 1
goto_if_false @POOL2_16439
if 
  2000 > TIMERA
goto_if_false @POOL2_16386
246@ = 0.2
goto @POOL2_16432

:POOL2_16386
if 
  3000 > TIMERA
goto_if_false @POOL2_16422
246@ = 0.0
goto @POOL2_16432

:POOL2_16422
246@ = 1.0

:POOL2_16432
goto @POOL2_16456

:POOL2_16439
TIMERA = 0
246@ = 0.0

:POOL2_16456
if 
  250@ == 0
goto_if_false @POOL2_16516
if 
  246@ > 0.25
goto_if_false @POOL2_16509
gosub @POOL2_19798
goto @POOL2_16516

:POOL2_16509
gosub @POOL2_18640

:POOL2_16516
if 
  35@ == 1
goto_if_false @POOL2_16564
if 
  not is_char_dead 215@
goto_if_false @POOL2_16564
gosub @POOL2_18983
35@ += 1

:POOL2_16564
if 
  35@ == 2
goto_if_false @POOL2_16589
gosub @POOL2_16987

:POOL2_16589
if 
  35@ == 3
goto_if_false @POOL2_16690
if 
  not is_char_dead 215@
goto_if_false @POOL2_16690
592@ += 1.1
592@ = get_ground_z_for_3d_coord 584@ {y} 588@ {z} 592@
set_char_coordinates 215@ {x} 584@ {y} 588@ {z} 592@
set_char_heading 215@ {heading} 596@
set_char_collision 215@ {state} True
TIMERA = 0
35@ = 99

:POOL2_16690
if 
  35@ == 99
goto_if_false @POOL2_16731
clear_help 
TIMERA = 0
34@ += 1
35@ = 0

:POOL2_16731
return 

:POOL2_16733
252@ = 0
if 
  not is_char_dead 215@
goto_if_false @POOL2_16985
if 
  600@ == 1
goto_if_false @POOL2_16814
if 
  is_char_playing_anim 215@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_16814
252@ = 1

:POOL2_16814
if 
  600@ == 2
goto_if_false @POOL2_16870
if 
  is_char_playing_anim 215@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_16870
252@ = 1

:POOL2_16870
if 
  600@ == 3
goto_if_false @POOL2_16927
if 
  is_char_playing_anim 215@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_16927
252@ = 1

:POOL2_16927
if 
  600@ == 4
goto_if_false @POOL2_16985
if 
  is_char_playing_anim 215@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_16985
252@ = 1

:POOL2_16985
return 

:POOL2_16987
if 
  not is_char_dead 215@
goto_if_false @POOL2_17598
if 
  251@ == 0
goto_if_false @POOL2_17598
if 
  600@ == 1
goto_if_false @POOL2_17165
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_SHORT_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_SHORT_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_17160
perform_sequence_task 215@ {sequence} 47@

:POOL2_17160
clear_sequence_task 47@

:POOL2_17165
if 
  600@ == 2
goto_if_false @POOL2_17305
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_MED_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_MED_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_17300
perform_sequence_task 215@ {sequence} 47@

:POOL2_17300
clear_sequence_task 47@

:POOL2_17305
if 
  600@ == 3
goto_if_false @POOL2_17447
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_LONG_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_LONG_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_17442
perform_sequence_task 215@ {sequence} 47@

:POOL2_17442
clear_sequence_task 47@

:POOL2_17447
if 
  600@ == 4
goto_if_false @POOL2_17591
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_XLONG_START" {animationFile} "POOL" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "POOL_XLONG_SHOT" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_17586
perform_sequence_task 215@ {sequence} 47@

:POOL2_17586
clear_sequence_task 47@

:POOL2_17591
251@ += 1

:POOL2_17598
if 
  251@ == 1
goto_if_false @POOL2_18116
if 
  250@ == 0
goto_if_false @POOL2_18102
if 
  not is_char_dead 215@
goto_if_false @POOL2_18095
39@ = get_script_task_status 215@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @POOL2_18081
if 
  600@ == 1
goto_if_false @POOL2_17780
if 
  is_char_playing_anim 215@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_17780
set_char_anim_current_time 215@ {animationName} "POOL_SHORT_SHOT" {time} 247@
set_char_anim_speed 215@ {animName} "POOL_SHORT_SHOT" {animSpeed} 248@

:POOL2_17780
if 
  600@ == 2
goto_if_false @POOL2_17875
if 
  is_char_playing_anim 215@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_17875
set_char_anim_current_time 215@ {animationName} "POOL_MED_SHOT" {time} 247@
set_char_anim_speed 215@ {animName} "POOL_MED_SHOT" {animSpeed} 248@

:POOL2_17875
if 
  600@ == 3
goto_if_false @POOL2_17973
if 
  is_char_playing_anim 215@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_17973
set_char_anim_current_time 215@ {animationName} "POOL_LONG_SHOT" {time} 247@
set_char_anim_speed 215@ {animName} "POOL_LONG_SHOT" {animSpeed} 248@

:POOL2_17973
if 
  600@ == 4
goto_if_false @POOL2_18074
if 
  is_char_playing_anim 215@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_18074
set_char_anim_current_time 215@ {animationName} "POOL_XLONG_SHOT" {time} 247@
set_char_anim_speed 215@ {animName} "POOL_XLONG_SHOT" {animSpeed} 248@

:POOL2_18074
goto @POOL2_18095

:POOL2_18081
TIMERA = 0
251@ += 1

:POOL2_18095
goto @POOL2_18116

:POOL2_18102
TIMERA = 0
251@ += 1

:POOL2_18116
if 
  251@ == 2
goto_if_false @POOL2_18535
if 
  not is_char_dead 215@
goto_if_false @POOL2_18535
39@ = get_script_task_status 215@ {taskId} 1560
if and
  not is_int_lvar_equal_to_constant 39@ == 7
  5000 > TIMERA
goto_if_false @POOL2_18528
42@ = 1.0
sub_float_lvar_from_float_lvar 42@ -= 248@
42@ /= 20.0
add_float_lvar_to_float_lvar 248@ += 42@
if 
  0.8 > 248@
goto_if_false @POOL2_18254
248@ += 0.01

:POOL2_18254
if and
  1.2 > 248@
  248@ > 0.8
goto_if_false @POOL2_18295
248@ = 1.0

:POOL2_18295
if 
  is_char_playing_anim 215@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_18353
set_char_anim_speed 215@ {animName} "POOL_SHORT_SHOT" {animSpeed} 248@

:POOL2_18353
if 
  is_char_playing_anim 215@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_18407
set_char_anim_speed 215@ {animName} "POOL_MED_SHOT" {animSpeed} 248@

:POOL2_18407
if 
  is_char_playing_anim 215@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_18463
set_char_anim_speed 215@ {animName} "POOL_LONG_SHOT" {animSpeed} 248@

:POOL2_18463
if 
  is_char_playing_anim 215@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_18521
set_char_anim_speed 215@ {animName} "POOL_XLONG_SHOT" {animSpeed} 248@

:POOL2_18521
goto @POOL2_18535

:POOL2_18528
251@ += 1

:POOL2_18535
if 
  251@ == 3
goto_if_false @POOL2_18638
if 
  not is_char_dead 215@
goto_if_false @POOL2_18631
if 
  108@ == 0
goto_if_false @POOL2_18631
task_play_anim_non_interruptable 215@ {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:POOL2_18631
35@ += 1

:POOL2_18638
return 

:POOL2_18640
set_lvar_float_to_lvar_float 42@ = 246@
sub_float_lvar_from_float_lvar 42@ -= 247@
if or
  42@ >= 0.05
  -0.05 >= 42@
goto_if_false @POOL2_18791
42@ /= 3.0
if and
  0.01 > 42@
  42@ > -0.01
goto_if_false @POOL2_18776
if 
  42@ > 0.0
goto_if_false @POOL2_18766
42@ = 0.01
goto @POOL2_18776

:POOL2_18766
42@ = -0.01

:POOL2_18776
add_float_lvar_to_float_lvar 247@ += 42@
goto @POOL2_18799

:POOL2_18791
set_lvar_float_to_lvar_float 247@ = 246@

:POOL2_18799
return 

:POOL2_18801
250@ = 0
251@ = 0
618@ = 565.0
619@ = 386.0
set_lvar_float_to_lvar_float 622@ = 618@
set_lvar_float_to_lvar_float 623@ = 619@
621@ = 67.0
620@ = 78.0
624@ = 19.0
625@ = 16.0
248@ = 0.0
247@ = 0.0
248@ = 0.0
246@ = 0.0
TIMERA = 0
TIMERB = 0
if 
  230@ <> 0
goto_if_false @POOL2_18974
print_help_forever 'PL_H4'

:POOL2_18974
gosub @POOL2_51426
return 

:POOL2_18983
set_char_collision 215@ {state} False
set_lvar_float_to_lvar_float 42@ = 104@
42@ += 1.0
594@ = get_ground_z_for_3d_coord 102@ {y} 103@ {z} 42@
set_char_coordinates 215@ {x} 586@ {y} 590@ {z} 594@
set_char_heading 215@ {heading} 598@
if 
  is_int_lvar_equal_to_int_lvar 213@ == 215@
goto_if_false @POOL2_19249
if 
  not is_char_dead 213@
goto_if_false @POOL2_19242
$x, $y, $z = get_offset_from_char_in_world_coords 213@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.0
if 
  not is_char_dead 214@
goto_if_false @POOL2_19242
set_char_coordinates 214@ {x} 225@ {y} 226@ {z} 227@
if 
  locate_char_any_means_2d 214@ {x} $x {y} $y {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @POOL2_19215
$x, $y, $z = get_offset_from_char_in_world_coords 214@ {xOffset} -2.0 {yOffset} 0.0 {zOffset} -1.0
set_char_coordinates 214@ {x} $x {y} $y {z} $z

:POOL2_19215
if 
  does_object_exist 82@
goto_if_false @POOL2_19242
task_look_at_object 214@ {object} 82@ {time} 10000

:POOL2_19242
goto @POOL2_19428

:POOL2_19249
if 
  not is_char_dead 214@
goto_if_false @POOL2_19428
$x, $y, $z = get_offset_from_char_in_world_coords 214@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.0
if 
  not is_char_dead 213@
goto_if_false @POOL2_19428
set_char_coordinates 213@ {x} 221@ {y} 222@ {z} 223@
if 
  locate_char_any_means_2d 213@ {x} $x {y} $y {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @POOL2_19428
$x, $y, $z = get_offset_from_char_in_world_coords 213@ {xOffset} -2.0 {yOffset} 0.0 {zOffset} -1.0
set_char_coordinates 213@ {x} $x {y} $y {z} $z
if 
  does_object_exist 82@
goto_if_false @POOL2_19428
task_look_at_object 213@ {object} 82@ {time} 10000

:POOL2_19428
if 
  600@ == 1
goto_if_false @POOL2_19543
$x, $y, $z = get_offset_from_char_in_world_coords 215@ {xOffset} 0.1532 {yOffset} -0.9733 {zOffset} 1.1819
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_char_in_world_coords 215@ {xOffset} -0.0267 {yOffset} -0.3468 {zOffset} 0.4236
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_19543
if 
  600@ == 2
goto_if_false @POOL2_19591
$x = 0.4
$y = -1.0
$z = 1.0

:POOL2_19591
if 
  600@ == 3
goto_if_false @POOL2_19639
$x = 0.3
$y = -0.5
$z = 1.0

:POOL2_19639
if 
  600@ == 4
goto_if_false @POOL2_19687
$x = 0.3
$y = -0.5
$z = 1.0

:POOL2_19687
if 
  600@ <> 1
goto_if_false @POOL2_19796
$x, $y, $z = get_offset_from_char_in_world_coords 215@ {xOffset} $x {yOffset} $y {zOffset} $z
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:POOL2_19796
return 

:POOL2_19798
if 
  230@ == 1
goto_if_false @POOL2_19898
set_lvar_float_to_lvar_float 249@ = 246@
sub_float_lvar_from_float_lvar 249@ -= 247@
249@ /= 0.1
set_lvar_float_to_lvar_float 248@ = 249@
248@ *= 2.0
if 
  0.6 > 248@
goto_if_false @POOL2_19891
248@ = 0.6

:POOL2_19891
goto @POOL2_19955

:POOL2_19898
set_lvar_float_to_lvar_float 248@ = 364@
248@ *= 2.0
if 
  0.6 > 248@
goto_if_false @POOL2_19947
248@ = 0.6

:POOL2_19947
set_lvar_float_to_lvar_float 249@ = 364@

:POOL2_19955
if 
  does_object_exist 82@
goto_if_false @POOL2_20844
$heading = get_object_heading 82@
42@ = sin $heading
set_lvar_float_to_lvar_float 169@ = 42@
169@ *= -1.0
42@ = cos $heading
set_lvar_float_to_lvar_float 170@ = 42@
171@ = 0.0
$x, $y, $z = get_object_coordinates 82@
set_lvar_float_to_var_float 165@ = $x
add_float_lvar_to_float_lvar 165@ += 169@
set_lvar_float_to_var_float 166@ = $y
add_float_lvar_to_float_lvar 166@ += 170@
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
mult_float_lvar_by_float_lvar 169@ *= 249@
mult_float_lvar_by_float_lvar 170@ *= 249@
freeze_object_position 82@ {state} False
set_object_collision 82@ {state} False
set_object_dynamic 82@ {state} False
set_object_velocity 82@ {xSpeed} 169@ {ySpeed} 170@ {zSpeed} 171@
278@ = -1
279@ = 0
277@ = 0
206@ = 0
39@ = 0

:POOL2_20196
if 
  16 > 39@
goto_if_false @POOL2_20239
109@(39@,16i) = 0
39@ += 1
goto @POOL2_20196

:POOL2_20239
report_mission_audio_event_at_object 82@ {soundId} ScriptSound.SoundPoolHitWhite
253@ = 0.0
254@ = 0.0
set_var_float_to_lvar_float $x = 622@
sub_float_lvar_from_float_var $x -= 618@
set_var_float_to_lvar_float $y = 623@
sub_float_lvar_from_float_var $y -= 619@
div_float_var_by_float_lvar $x /= 620@
div_float_var_by_float_lvar $y /= 621@
if 
  230@ == 0
goto_if_false @POOL2_20363
$x = generate_random_float_in_range -0.2 {max} 0.2
$y = generate_random_float_in_range -0.2 {max} 0.2

:POOL2_20363
if or
  $x > 0.2
  -0.2 > $x
  $y > 0.2
  -0.2 > $y
  230@ == 0
goto_if_false @POOL2_20534
mult_float_var_by_float_lvar $x *= 249@
mult_float_var_by_float_lvar $y *= 249@
set_lvar_float_to_var_float 253@ = $x
253@ *= 0.5
set_lvar_float_to_var_float 254@ = $y
254@ *= -0.5
$x *= 10.0
$y *= 10.0
if 
  230@ == 1
goto_if_false @POOL2_20527
set_object_rotation_velocity 82@ {x} $y {y} 0.0 {z} $x

:POOL2_20527
goto @POOL2_20554

:POOL2_20534
253@ = 0.0
254@ = 0.0

:POOL2_20554
622@ = 559.0
623@ = 381.0
if 
  129@ == 1
goto_if_false @POOL2_20744
save_newline_to_debug_file 
save_string_to_debug_file "CUE BALL DATA = "
save_float_to_debug_file 249@
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z

:POOL2_20744
set_object_collision 82@ {state} True
set_object_dynamic 82@ {state} True
if 
  not is_char_dead 213@
goto_if_false @POOL2_20801
if 
  does_object_exist 82@
goto_if_false @POOL2_20801
task_look_at_object 213@ {object} 82@ {time} 10000

:POOL2_20801
if 
  not is_char_dead 214@
goto_if_false @POOL2_20844
if 
  does_object_exist 82@
goto_if_false @POOL2_20844
task_look_at_object 214@ {object} 82@ {time} 10000

:POOL2_20844
250@ = 1
return 

:POOL2_20853
if 
  35@ == 0
goto_if_false @POOL2_21171
if 
  not is_char_dead 215@
goto_if_false @POOL2_21171
$x, $y, $z = get_object_coordinates 163@
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 584@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 588@
add_float_lvar_to_float_var $x += 169@
add_float_lvar_to_float_var $y += 170@
$z += 2.5
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_object_coordinates 163@
$z += 0.5
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
TIMERA = 0
165@, 166@, 167@ = get_offset_from_char_in_world_coords 215@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} 0.0
167@ = get_ground_z_for_3d_coord 165@ {y} 166@ {z} 167@
$heading = get_char_heading 215@
set_char_coordinates 215@ {x} 610@ {y} 611@ {z} 612@
set_char_heading 215@ {heading} $heading
if 
  108@ == 0
goto_if_false @POOL2_21164
task_play_anim_non_interruptable 215@ {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 1000.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1

:POOL2_21164
35@ += 1

:POOL2_21171
if 
  35@ == 1
goto_if_false @POOL2_21296
39@ = 0
40@ = 0

:POOL2_21203
if 
  16 > 39@
goto_if_false @POOL2_21264
if 
  109@(39@,16i) == 1
goto_if_false @POOL2_21250
40@ += 1

:POOL2_21250
39@ += 1
goto @POOL2_21203

:POOL2_21264
if 
  40@ == 16
goto_if_false @POOL2_21296
35@ += 1
TIMERA = 0

:POOL2_21296
if 
  35@ == 2
goto_if_false @POOL2_21340
if 
  TIMERA > 700
goto_if_false @POOL2_21340
35@ = 99

:POOL2_21340
if 
  35@ == 99
goto_if_false @POOL2_21374
clear_help 
34@ += 1
35@ = 0

:POOL2_21374
return 

:POOL2_21376
if 
  35@ == 0
goto_if_false @POOL2_21408
274@ = 0
35@ += 1

:POOL2_21408
if 
  35@ == 1
goto_if_false @POOL2_21458
if 
  278@ == -1
goto_if_false @POOL2_21451
274@ = 1

:POOL2_21451
35@ += 1

:POOL2_21458
if 
  35@ == 2
goto_if_false @POOL2_21694
if 
  278@ <> -1
goto_if_false @POOL2_21687
if 
  231@ == -1
goto_if_false @POOL2_21544
if 
  278@ == 8
goto_if_false @POOL2_21537
274@ = 2

:POOL2_21537
goto @POOL2_21687

:POOL2_21544
if 
  231@ == 0
goto_if_false @POOL2_21594
if 
  278@ >= 8
goto_if_false @POOL2_21587
274@ = 2

:POOL2_21587
goto @POOL2_21687

:POOL2_21594
if 
  231@ == 1
goto_if_false @POOL2_21644
if 
  8 >= 278@
goto_if_false @POOL2_21637
274@ = 2

:POOL2_21637
goto @POOL2_21687

:POOL2_21644
if 
  231@ == 2
goto_if_false @POOL2_21687
if 
  278@ <> 8
goto_if_false @POOL2_21687
274@ = 2

:POOL2_21687
35@ += 1

:POOL2_21694
if 
  35@ == 3
goto_if_false @POOL2_21744
if 
  255@ == 1
goto_if_false @POOL2_21737
274@ = 3

:POOL2_21737
35@ += 1

:POOL2_21744
if 
  35@ == 4
goto_if_false @POOL2_22338
if 
  271@ == 1
goto_if_false @POOL2_22016
if 
  274@ <> 3
goto_if_false @POOL2_22009
if 
  231@ == -1
goto_if_false @POOL2_21859
if 
  263@ <> 1
goto_if_false @POOL2_21852
if 
  184@ == 0
goto_if_false @POOL2_21852

:POOL2_21852
goto @POOL2_22009

:POOL2_21859
if 
  231@ == 0
goto_if_false @POOL2_21909
if 
  273@ > 0
goto_if_false @POOL2_21902
274@ = 4

:POOL2_21902
goto @POOL2_22009

:POOL2_21909
if 
  231@ == 1
goto_if_false @POOL2_21959
if 
  272@ > 0
goto_if_false @POOL2_21952
274@ = 4

:POOL2_21952
goto @POOL2_22009

:POOL2_21959
if 
  231@ == 2
goto_if_false @POOL2_22009
if or
  272@ > 0
  273@ > 0
goto_if_false @POOL2_22009
274@ = 4

:POOL2_22009
goto @POOL2_22331

:POOL2_22016
if 
  271@ > 1
goto_if_false @POOL2_22331
if 
  231@ == -1
goto_if_false @POOL2_22181
if and
  272@ > 0
  273@ == 0
goto_if_false @POOL2_22113
if 
  263@ <> 1
goto_if_false @POOL2_22113
if 
  184@ == 0
goto_if_false @POOL2_22113

:POOL2_22113
if and
  272@ == 0
  273@ > 0
goto_if_false @POOL2_22174
if 
  263@ <> 1
goto_if_false @POOL2_22174
if 
  184@ == 0
goto_if_false @POOL2_22174

:POOL2_22174
goto @POOL2_22331

:POOL2_22181
if 
  231@ == 0
goto_if_false @POOL2_22231
if 
  273@ > 0
goto_if_false @POOL2_22224
274@ = 4

:POOL2_22224
goto @POOL2_22331

:POOL2_22231
if 
  231@ == 1
goto_if_false @POOL2_22281
if 
  272@ > 0
goto_if_false @POOL2_22274
274@ = 4

:POOL2_22274
goto @POOL2_22331

:POOL2_22281
if 
  231@ == 2
goto_if_false @POOL2_22331
if or
  273@ > 0
  272@ > 0
goto_if_false @POOL2_22331
274@ = 4

:POOL2_22331
35@ += 1

:POOL2_22338
if 
  35@ == 5
goto_if_false @POOL2_22456
if 
  231@ <> 2
goto_if_false @POOL2_22406
if 
  263@ == 1
goto_if_false @POOL2_22399
274@ = 5

:POOL2_22399
goto @POOL2_22449

:POOL2_22406
if 
  263@ == 1
goto_if_false @POOL2_22449
if 
  274@ <> 0
goto_if_false @POOL2_22449
274@ = 5

:POOL2_22449
35@ += 1

:POOL2_22456
if 
  35@ == 6
goto_if_false @POOL2_22542
if 
  274@ == 0
goto_if_false @POOL2_22535
if 
  271@ == 0
goto_if_false @POOL2_22535
if 
  277@ == 0
goto_if_false @POOL2_22535
274@ = 6

:POOL2_22535
35@ = 99

:POOL2_22542
if 
  35@ == 99
goto_if_false @POOL2_22766
if and
  274@ == 0
  184@ == 0
  271@ > 0
  231@ == -1
goto_if_false @POOL2_22750
if 
  is_int_lvar_greater_than_int_lvar 272@ > 273@
goto_if_false @POOL2_22678
if 
  229@ == 1
goto_if_false @POOL2_22657
217@ = 0
218@ = 1
goto @POOL2_22671

:POOL2_22657
217@ = 1
218@ = 0

:POOL2_22671
goto @POOL2_22750

:POOL2_22678
if 
  is_int_lvar_greater_than_int_lvar 273@ > 272@
goto_if_false @POOL2_22750
if 
  229@ == 1
goto_if_false @POOL2_22736
217@ = 1
218@ = 0
goto @POOL2_22750

:POOL2_22736
217@ = 0
218@ = 1

:POOL2_22750
clear_help 
35@ = 0
34@ += 1

:POOL2_22766
return 

:POOL2_22768
if 
  35@ == 0
goto_if_false @POOL2_24594
TIMERA = 0
if and
  67@ == 1
  68@ == 1
  69@ == 1
  70@ == 1
  71@ == 1
goto_if_false @POOL2_22914
if and
  72@ == 1
  73@ == 1
goto_if_false @POOL2_22914
if 
  217@ == 0
goto_if_false @POOL2_22889
217@ = 2

:POOL2_22889
if 
  218@ == 0
goto_if_false @POOL2_22914
218@ = 2

:POOL2_22914
if and
  75@ == 1
  76@ == 1
  77@ == 1
  78@ == 1
  79@ == 1
goto_if_false @POOL2_23035
if and
  80@ == 1
  81@ == 1
goto_if_false @POOL2_23035
if 
  217@ == 1
goto_if_false @POOL2_23010
217@ = 2

:POOL2_23010
if 
  218@ == 1
goto_if_false @POOL2_23035
218@ = 2

:POOL2_23035
switch_start 274@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @POOL2_24479 {caseNum1} 0 {caseLabel1} @POOL2_23098 {caseNum2} 1 {caseLabel2} @POOL2_23429 {caseNum3} 2 {caseLabel3} @POOL2_23627 {caseNum4} 3 {caseLabel4} @POOL2_23825 {caseNum5} 4 {caseLabel5} @POOL2_24023 {caseNum6} 5 {caseLabel6} @POOL2_24221 {caseNum7} 6 {caseLabel7} @POOL2_24281

:POOL2_23098
if 
  271@ > 0
goto_if_false @POOL2_23231
if 
  74@ <> 1
goto_if_false @POOL2_23203
232@ = 0
233@ = 1
if 
  229@ == 1
goto_if_false @POOL2_23181
set_lvar_int_to_lvar_int 231@ = 217@
goto @POOL2_23189

:POOL2_23181
set_lvar_int_to_lvar_int 231@ = 218@

:POOL2_23189
35@ = 99
goto @POOL2_23224

:POOL2_23203
276@ = 1
275@ = 1
35@ = 99

:POOL2_23224
goto @POOL2_23422

:POOL2_23231
if 
  229@ == 1
goto_if_false @POOL2_23355
232@ = 0
229@ = 2
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@
set_lvar_int_to_lvar_int 230@ = 220@
233@ = 0
set_lvar_int_to_lvar_int 231@ = 218@
if 
  220@ == 1
goto_if_false @POOL2_23334
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23341

:POOL2_23334
set_lvar_int_to_constant 180@ = 0

:POOL2_23341
35@ = 99
goto @POOL2_23422

:POOL2_23355
232@ = 0
229@ = 1
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
set_lvar_int_to_lvar_int 230@ = 219@
233@ = 0
set_lvar_int_to_lvar_int 231@ = 217@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23422
goto @POOL2_24479

:POOL2_23429
if 
  229@ == 1
goto_if_false @POOL2_23553
229@ = 2
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@
set_lvar_int_to_lvar_int 230@ = 220@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 218@
if 
  220@ == 1
goto_if_false @POOL2_23532
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23539

:POOL2_23532
set_lvar_int_to_constant 180@ = 0

:POOL2_23539
35@ = 99
goto @POOL2_23620

:POOL2_23553
229@ = 1
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
set_lvar_int_to_lvar_int 230@ = 219@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 217@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23620
goto @POOL2_24479

:POOL2_23627
if 
  229@ == 1
goto_if_false @POOL2_23751
229@ = 2
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@
set_lvar_int_to_lvar_int 230@ = 220@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 218@
if 
  220@ == 1
goto_if_false @POOL2_23730
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23737

:POOL2_23730
set_lvar_int_to_constant 180@ = 0

:POOL2_23737
35@ = 99
goto @POOL2_23818

:POOL2_23751
229@ = 1
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
set_lvar_int_to_lvar_int 230@ = 219@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 217@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_23818
goto @POOL2_24479

:POOL2_23825
if 
  229@ == 1
goto_if_false @POOL2_23949
229@ = 2
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@
set_lvar_int_to_lvar_int 230@ = 220@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 218@
if 
  220@ == 1
goto_if_false @POOL2_23928
set_lvar_int_to_constant 180@ = 1
goto @POOL2_23935

:POOL2_23928
set_lvar_int_to_constant 180@ = 0

:POOL2_23935
35@ = 99
goto @POOL2_24016

:POOL2_23949
229@ = 1
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
set_lvar_int_to_lvar_int 230@ = 219@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 217@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_24016
goto @POOL2_24479

:POOL2_24023
if 
  229@ == 1
goto_if_false @POOL2_24147
229@ = 2
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@
set_lvar_int_to_lvar_int 230@ = 220@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 218@
if 
  220@ == 1
goto_if_false @POOL2_24126
set_lvar_int_to_constant 180@ = 1
goto @POOL2_24133

:POOL2_24126
set_lvar_int_to_constant 180@ = 0

:POOL2_24133
35@ = 99
goto @POOL2_24214

:POOL2_24147
229@ = 1
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
set_lvar_int_to_lvar_int 230@ = 219@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 217@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_24214
goto @POOL2_24479

:POOL2_24221
if 
  184@ == 0
goto_if_false @POOL2_24253
275@ = 0
goto @POOL2_24260

:POOL2_24253
275@ = 1

:POOL2_24260
276@ = 1
35@ = 99
goto @POOL2_24479

:POOL2_24281
if 
  229@ == 1
goto_if_false @POOL2_24405
229@ = 2
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@
set_lvar_int_to_lvar_int 230@ = 220@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 218@
if 
  220@ == 1
goto_if_false @POOL2_24384
set_lvar_int_to_constant 180@ = 1
goto @POOL2_24391

:POOL2_24384
set_lvar_int_to_constant 180@ = 0

:POOL2_24391
35@ = 99
goto @POOL2_24472

:POOL2_24405
229@ = 1
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
set_lvar_int_to_lvar_int 230@ = 219@
232@ = 2
233@ = 0
set_lvar_int_to_lvar_int 231@ = 217@
set_lvar_int_to_constant 180@ = 0
35@ = 99

:POOL2_24472
goto @POOL2_24479

:POOL2_24479
if 
  178@ == 0
goto_if_false @POOL2_24533
if 
  230@ == 1
goto_if_false @POOL2_24526
print_help_forever 'PL_H5'

:POOL2_24526
goto @POOL2_24580

:POOL2_24533
if 
  is_int_lvar_equal_to_constant 180@ == 0
goto_if_false @POOL2_24569
print_help_forever 'PL_H8'
goto @POOL2_24580

:POOL2_24569
print_help_forever 'PL_H9'

:POOL2_24580
TIMERA = 0
TIMERB = 0

:POOL2_24594
if 
  35@ == 99
goto_if_false @POOL2_24702
gosub @POOL2_54829
if 
  230@ == 1
goto_if_false @POOL2_24669
if 
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_24662
35@ += 1

:POOL2_24662
goto @POOL2_24702

:POOL2_24669
if or
  TIMERB > 2000
  is_button_pressed 180@ {buttonId} Button.Cross
goto_if_false @POOL2_24702
35@ += 1

:POOL2_24702
if 
  35@ == 100
goto_if_false @POOL2_24864
clear_help 
39@ = 0
271@ = 0

:POOL2_24736
if 
  16 > 39@
goto_if_false @POOL2_24779
255@(39@,16i) = 0
39@ += 1
goto @POOL2_24736

:POOL2_24779
272@ = 0
273@ = 0
if 
  276@ == 1
goto_if_false @POOL2_24839
184@ = 1
34@ += 1
35@ = 0
goto @POOL2_24860

:POOL2_24839
184@ = 0
34@ = 3
35@ = 0

:POOL2_24860
wait 0

:POOL2_24864
return 

:POOL2_24866
if 
  35@ == 0
goto_if_false @POOL2_25319
if 
  275@ == 0
goto_if_false @POOL2_24966
if 
  229@ == 1
goto_if_false @POOL2_24943
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@
goto @POOL2_24959

:POOL2_24943
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@

:POOL2_24959
goto @POOL2_25023

:POOL2_24966
if 
  229@ == 1
goto_if_false @POOL2_25007
set_lvar_int_to_lvar_int 215@ = 213@
set_lvar_int_to_lvar_int 216@ = 106@
goto @POOL2_25023

:POOL2_25007
set_lvar_int_to_lvar_int 215@ = 214@
set_lvar_int_to_lvar_int 216@ = 107@

:POOL2_25023
if 
  not is_char_dead 215@
goto_if_false @POOL2_25319
$x, $y, $z = get_offset_from_char_in_world_coords 215@ {xOffset} 1.0 {yOffset} 2.0 {zOffset} 0.0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 215@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  178@ == 0
goto_if_false @POOL2_25247
if 
  is_int_lvar_equal_to_int_lvar 215@ == 213@
goto_if_false @POOL2_25209
set_lvar_int_to_lvar_int 39@ = 162@
39@ *= 2
add_score $player1 {money} 39@
start_new_script @CASHWIN 39@ 5000 80 
if 
  not is_char_dead 164@
goto_if_false @POOL2_25202
set_char_money 164@ {amount} 0

:POOL2_25202
goto @POOL2_25240

:POOL2_25209
set_lvar_int_to_lvar_int 39@ = 162@
39@ *= -1
start_new_script @CASHWIN 39@ 5000 80 

:POOL2_25240
goto @POOL2_25305

:POOL2_25247
if 
  is_int_lvar_equal_to_int_lvar 215@ == 213@
goto_if_false @POOL2_25289
print_big 'PL_08' {time} 5000 {style} TextStyle.Middle
goto @POOL2_25305

:POOL2_25289
print_big 'PL_09' {time} 5000 {style} TextStyle.Middle

:POOL2_25305
TIMERA = 0
35@ += 1

:POOL2_25319
if 
  35@ == 1
goto_if_false @POOL2_25363
if 
  TIMERA > 5000
goto_if_false @POOL2_25363
35@ += 1

:POOL2_25363
if 
  35@ == 2
goto_if_false @POOL2_25936
do_fade 500 {direction} Fade.Out

:POOL2_25388
if 
  get_fading_status 
goto_if_false @POOL2_25412
wait 0
goto @POOL2_25388

:POOL2_25412
39@ = 0

:POOL2_25419
if 
  16 > 39@
goto_if_false @POOL2_25480
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_25466
delete_object 82@(39@,16i)

:POOL2_25466
39@ += 1
goto @POOL2_25419

:POOL2_25480
$x, $y, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.2734 {yOffset} -0.0547 {zOffset} 0.9297
82@ = create_object_no_offset #K_POOLBALLCUE {x} $x {y} $y {z} $z
$heading = get_object_heading 163@
$heading += 270.0
set_object_heading 82@ {heading} $heading
558@, 559@, 560@ = get_offset_from_object_in_world_coords 163@ {xOffset} 0.3408 {yOffset} -0.0284 {zOffset} 0.9297
561@ = get_object_heading 163@
561@ += 90.0
83@ = create_object_no_offset #K_POOLBALLSPT01 {x} 558@ {y} 559@ {z} 560@
84@ = create_object_no_offset #K_POOLBALLSPT02 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_object_no_offset #K_POOLBALLSPT03 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_object_no_offset #K_POOLBALLSPT04 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_object_no_offset #K_POOLBALLSPT05 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_object_no_offset #K_POOLBALLSPT06 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_object_no_offset #K_POOLBALLSPT07 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_object_no_offset #K_POOLBALL8 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_object_no_offset #K_POOLBALLSTP01 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object_no_offset #K_POOLBALLSTP02 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object_no_offset #K_POOLBALLSTP03 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_object_no_offset #K_POOLBALLSTP04 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_object_no_offset #K_POOLBALLSTP05 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_object_no_offset #K_POOLBALLSTP06 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_object_no_offset #K_POOLBALLSTP07 {x} 0.0 {y} 0.0 {z} 0.0
gosub @POOL2_50546
35@ = 99

:POOL2_25936
if 
  35@ == 99
goto_if_false @POOL2_25970
clear_help 
34@ += 1
35@ = 0

:POOL2_25970
return 
set_text_right_justify False
set_text_justify False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
$temp_integer_2, $temp_integer_3, $temp_integer_4, $an = get_hud_colour 6
set_text_colour $temp_integer_2 {green} $temp_integer_3 {blue} $temp_integer_4 {alpha} 255
return 

:POOL2_26060
275@ = 0
271@ = 0
272@ = 0
273@ = 0
274@ = 0
39@ = 0

:POOL2_26102
if 
  16 > 39@
goto_if_false @POOL2_26156
255@(39@,16i) = 0
66@(39@,16i) = 0
39@ += 1
goto @POOL2_26102

:POOL2_26156
232@ = 0
276@ = 0
34@ = 1
35@ = 0
return 

:POOL2_26186
if 
  does_object_exist 163@
goto_if_false @POOL2_26234
$x, $y, $z = get_object_coordinates 163@
clear_area $x {y} $y {z} $z {radius} 10.0 {clearParticles} True

:POOL2_26234
if 
  does_object_exist 82@
goto_if_false @POOL2_26272
48@ = get_object_speed 82@
49@, 50@, 51@ = get_object_rotation_velocity 82@

:POOL2_26272
if 
  206@ > 2000
goto_if_false @POOL2_26762
set_var_float_to_lvar_float $x = 204@
$x *= -1.0
39@ = 0

:POOL2_26316
if 
  16 > 39@
goto_if_false @POOL2_26762
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_26737
42@ = get_object_speed 82@(39@,16i)
if 
  is_float_lvar_greater_than_float_lvar 203@ > 42@
goto_if_false @POOL2_26719
if 
  0.005 > 42@
goto_if_false @POOL2_26635
42@, 43@, 44@ = get_object_rotation_velocity 82@(39@,16i)
40@ = 0
if or
  is_float_lvar_greater_than_float_lvar 42@ > 204@
  is_float_var_greater_than_float_lvar $x > 42@
goto_if_false @POOL2_26465
40@ = 1

:POOL2_26465
if or
  is_float_lvar_greater_than_float_lvar 43@ > 204@
  is_float_var_greater_than_float_lvar $x > 43@
goto_if_false @POOL2_26499
40@ = 1

:POOL2_26499
if or
  is_float_lvar_greater_than_float_lvar 44@ > 204@
  is_float_var_greater_than_float_lvar $x > 44@
goto_if_false @POOL2_26533
40@ = 1

:POOL2_26533
if 
  40@ == 0
goto_if_false @POOL2_26617
set_object_velocity 82@(39@,16i) {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} 0.0
set_object_rotation_velocity 82@(39@,16i) {x} 0.0 {y} 0.0 {z} 0.0
109@(39@,16i) = 1
goto @POOL2_26628

:POOL2_26617
109@(39@,16i) = 0

:POOL2_26628
goto @POOL2_26712

:POOL2_26635
$x, $y, $z = get_object_velocity 82@(39@,16i)
$x *= 0.9
$y *= 0.9
$z *= 0.9
set_object_velocity 82@(39@,16i) {xSpeed} $x {ySpeed} $y {zSpeed} $z
109@(39@,16i) = 0

:POOL2_26712
goto @POOL2_26730

:POOL2_26719
109@(39@,16i) = 0

:POOL2_26730
goto @POOL2_26748

:POOL2_26737
109@(39@,16i) = 1

:POOL2_26748
39@ += 1
goto @POOL2_26316

:POOL2_26762
if 
  108@ <> 1
goto_if_false @POOL2_26826
set_lvar_int_to_lvar_int 358@ = 213@
set_lvar_int_to_lvar_int 359@ = 106@
gosub @POOL2_30670
set_lvar_int_to_lvar_int 358@ = 214@
set_lvar_int_to_lvar_int 359@ = 107@
gosub @POOL2_30670

:POOL2_26826
253@ *= 0.98
254@ *= 0.98
39@ = 0

:POOL2_26853
if 
  16 > 39@
goto_if_false @POOL2_27127
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_27113
$x, $y, $z = get_object_coordinates 82@(39@,16i)
set_lvar_float_to_lvar_float 43@ = 52@
43@ *= 2.0
set_lvar_float_to_lvar_float 42@ = 560@
sub_float_lvar_from_float_lvar 42@ -= 43@
if 
  is_float_lvar_greater_than_float_var 42@ > $z
goto_if_false @POOL2_27113
if 
  66@(39@,16i) == 0
goto_if_false @POOL2_27113
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundPoolBallPot
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_27027
delete_object 82@(39@,16i)

:POOL2_27027
66@(39@,16i) = 1
255@(39@,16i) = 1
271@ += 1
if and
  39@ > 0
  8 > 39@
goto_if_false @POOL2_27088
272@ += 1

:POOL2_27088
if 
  39@ > 8
goto_if_false @POOL2_27113
273@ += 1

:POOL2_27113
39@ += 1
goto @POOL2_26853

:POOL2_27127
39@ = 0

:POOL2_27134
if 
  16 > 39@
goto_if_false @POOL2_27513
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_27499
if 
  has_object_been_damaged_by_weapon 82@(39@,16i) {weaponType} WeaponType.Fall
goto_if_false @POOL2_27226
277@ += 1
if 
  39@ == 0
goto_if_false @POOL2_27226
279@ = 1

:POOL2_27226
if 
  278@ == -1
goto_if_false @POOL2_27342
if 
  39@ > 0
goto_if_false @POOL2_27342
if 
  has_object_been_damaged_by_weapon 82@(39@,16i) {weaponType} WeaponType.Drowning
goto_if_false @POOL2_27342
set_lvar_int_to_lvar_int 278@ = 39@
if 
  279@ == 0
goto_if_false @POOL2_27342
if 
  does_object_exist 82@
goto_if_false @POOL2_27342
add_velocity_relative_to_object_velocity 82@ {x} 253@ {y} 254@ {z} 0.0

:POOL2_27342
if 
  has_object_been_damaged_by_weapon 82@(39@,16i) {weaponType} WeaponType.Runoverbycar
goto_if_false @POOL2_27490
277@ += 1
if 
  39@ == 0
goto_if_false @POOL2_27396
279@ = 1

:POOL2_27396
if 
  278@ == -1
goto_if_false @POOL2_27490
if 
  39@ > 0
goto_if_false @POOL2_27490
set_lvar_int_to_lvar_int 278@ = 39@
if 
  279@ == 0
goto_if_false @POOL2_27490
if 
  does_object_exist 82@
goto_if_false @POOL2_27490
add_velocity_relative_to_object_velocity 82@ {x} 253@ {y} 254@ {z} 0.0

:POOL2_27490
clear_object_last_weapon_damage 82@(39@,16i)

:POOL2_27499
39@ += 1
goto @POOL2_27134

:POOL2_27513
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @POOL2_27604
if 
  129@ == 1
goto_if_false @POOL2_27579
129@ = 0
write_debug "OUTPUT_TEXT_OFF"
goto @POOL2_27604

:POOL2_27579
129@ = 1
write_debug "OUTPUT_TEXT_ON"

:POOL2_27604
if 
  not does_object_exist 163@
goto_if_false @POOL2_27627
34@ = 99

:POOL2_27627
if 
  not is_char_dead 164@
goto_if_false @POOL2_27651
$debug_char_health = get_char_health 164@

:POOL2_27651
if 
  is_char_dead 164@
goto_if_false @POOL2_27674
34@ = 99

:POOL2_27674
if 
  108@ == 1
goto_if_false @POOL2_28237
display_hud True
if 
  161@ > 0
goto_if_false @POOL2_27722
add_score $player1 {money} 161@

:POOL2_27722
if 
  not is_char_dead 164@
goto_if_false @POOL2_27794
freeze_char_position 164@ {state} False
remove_decision_maker 207@
207@ = load_char_decision_maker DecisionMakerType.Tough
set_char_decision_maker 164@ {handleOrTemplate} 207@
set_char_collision 164@ {state} True
set_char_proofs 164@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
hide_char_weapon_for_scripted_cutscene 164@ {state} True

:POOL2_27794
set_ped_density_multiplier 1.0
use_text_commands False
display_radar True
39@ = 0

:POOL2_27816
if 
  16 > 39@
goto_if_false @POOL2_27857
mark_object_as_no_longer_needed 82@(39@,16i)
39@ += 1
goto @POOL2_27816

:POOL2_27857
restore_camera_jumpcut 
if 
  does_object_exist 238@
goto_if_false @POOL2_27880
delete_object 238@

:POOL2_27880
104@ += 0.1
set_object_coordinates 163@ {x} 102@ {y} 103@ {z} 104@
98@, 100@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} -0.96 {yOffset} -0.49 {zOffset} 0.7
99@, 101@, $z = get_offset_from_object_in_world_coords 163@ {xOffset} 0.96 {yOffset} 0.49 {zOffset} 0.7
if 
  is_float_lvar_greater_than_float_lvar 98@ > 99@
goto_if_false @POOL2_28005
set_var_float_to_lvar_float $x = 98@
set_lvar_float_to_lvar_float 98@ = 99@
set_lvar_float_to_var_float 99@ = $x

:POOL2_28005
if 
  is_float_lvar_greater_than_float_lvar 100@ > 101@
goto_if_false @POOL2_28048
set_var_float_to_lvar_float $y = 100@
set_lvar_float_to_lvar_float 100@ = 101@
set_lvar_float_to_var_float 101@ = $y

:POOL2_28048
set_pool_table_coords 98@ {leftBottomY} 100@ {leftBottomZ} $z {rightTopX} 99@ {rightTopY} 101@ {rightTopZ} $z
39@ = 0

:POOL2_28075
if 
  16 > 39@
goto_if_false @POOL2_28173
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_28159
$x, $y, $z = get_object_coordinates 82@(39@,16i)
$z += 0.1
set_object_coordinates 82@(39@,16i) {x} $x {y} $y {z} $z

:POOL2_28159
39@ += 1
goto @POOL2_28075

:POOL2_28173
if 
  is_player_playing $player1
goto_if_false @POOL2_28215
clear_char_tasks_immediately $scplayer
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:POOL2_28215
delete_object 106@
delete_object 107@
mark_model_as_no_longer_needed #K_POOLQ
remove_animation "POOL"

:POOL2_28237
if and
  34@ == 99
  108@ == 0
goto_if_false @POOL2_28282
use_text_commands False
display_radar True
34@ = 0
wait 500

:POOL2_28282
if 
is_ps2_keyboard_key_just_pressed 73
goto_if_false @POOL2_28394
if 
  does_object_exist 82@
goto_if_false @POOL2_28394
freeze_object_position 82@ {state} False
set_object_collision 82@ {state} False
set_object_dynamic 82@ {state} False
$x = generate_random_float_in_range -5.0 {max} 5.0
$y = generate_random_float_in_range -5.0 {max} 5.0
set_object_velocity 82@ {xSpeed} $x {ySpeed} $y {zSpeed} 0.0
set_object_collision 82@ {state} True
set_object_dynamic 82@ {state} True

:POOL2_28394
return 

:POOL2_28396
281@ = 0
280@ = 1.7
if 
  does_object_exist 82@
goto_if_false @POOL2_28619
$x, $y, $z = get_object_coordinates 82@
set_lvar_float_to_lvar_float 42@ = 98@
42@ += 0.02
if 
  is_float_lvar_greater_than_float_var 42@ > $x
goto_if_false @POOL2_28487
281@ = 99

:POOL2_28487
set_lvar_float_to_lvar_float 42@ = 99@
42@ -= 0.02
if 
  is_float_var_greater_than_float_lvar $x > 42@
goto_if_false @POOL2_28531
281@ = 99

:POOL2_28531
set_lvar_float_to_lvar_float 42@ = 100@
42@ += 0.02
if 
  is_float_lvar_greater_than_float_var 42@ > $y
goto_if_false @POOL2_28575
281@ = 99

:POOL2_28575
set_lvar_float_to_lvar_float 42@ = 101@
42@ -= 0.02
if 
  is_float_var_greater_than_float_lvar $y > 42@
goto_if_false @POOL2_28619
281@ = 99

:POOL2_28619
if 
  281@ <> 99
goto_if_false @POOL2_30668
if 
  240@ <> 0
goto_if_false @POOL2_28662
281@ = 2

:POOL2_28662
if 
  281@ == 0
goto_if_false @POOL2_29271
if 
  does_object_exist 82@
goto_if_false @POOL2_29271
39@ = 0

:POOL2_28703
if 
  3 > 39@
goto_if_false @POOL2_28847
304@(39@,3f) = -999999.875
307@(39@,3f) = -999999.875
310@(39@,3f) = -999999.875
313@(39@,3f) = -999999.875
316@(39@,3f) = -999999.875
319@(39@,3f) = -999999.875
322@(39@,3f) = -999999.875
325@(39@,3f) = -999999.875
39@ += 1
goto @POOL2_28703

:POOL2_28847
set_lvar_float_to_lvar_float 301@ = 280@
set_lvar_float_to_lvar_float 301@ = 280@
set_lvar_float_to_lvar_float 300@ = 280@
300@ /= 10.0
$heading = get_object_heading 82@
set_object_rotation 82@ {x} 0.0 {y} 0.0 {z} $heading
$x, $y, $z = get_object_coordinates 82@
if 
  is_float_lvar_greater_than_float_var 98@ > $x
goto_if_false @POOL2_28958
set_var_float_to_lvar_float $x = 98@
$x += 0.01

:POOL2_28958
if 
  is_float_var_greater_than_float_lvar $x > 99@
goto_if_false @POOL2_28995
set_var_float_to_lvar_float $x = 99@
$x -= 0.01

:POOL2_28995
if 
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_29032
set_var_float_to_lvar_float $y = 100@
$y += 0.01

:POOL2_29032
if 
  is_float_var_greater_than_float_lvar $y > 101@
goto_if_false @POOL2_29069
set_var_float_to_lvar_float $y = 101@
$y -= 0.01

:POOL2_29069
165@, 166@, 167@ = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 282@ = 165@
sub_float_var_from_float_lvar 282@ -= $x
set_lvar_float_to_lvar_float 283@ = 166@
sub_float_var_from_float_lvar 283@ -= $y
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 165@ {toZ} 166@
div_float_lvar_by_float_lvar 282@ /= 42@
div_float_lvar_by_float_lvar 283@ /= 42@
mult_float_lvar_by_float_lvar 282@ *= 301@
mult_float_lvar_by_float_lvar 283@ *= 301@
set_lvar_float_to_var_float 487@ = $x
set_lvar_float_to_var_float 488@ = $y
set_lvar_float_to_var_float 304@ = $x
set_lvar_float_to_var_float 307@ = $y
set_lvar_float_to_var_float 483@ = $x
add_float_lvar_to_float_lvar 483@ += 282@
set_lvar_float_to_var_float 484@ = $y
add_float_lvar_to_float_lvar 484@ += 283@
284@ = 0
328@ = 0
515@ = 0
281@ += 1

:POOL2_29271
if 
  281@ == 1
goto_if_false @POOL2_29690
241@ = 0

:POOL2_29296
if and
  301@ > 0.0
  3 > 284@
goto_if_false @POOL2_29676
gosub @POOL2_48189
set_lvar_float_to_lvar_float 310@(284@,3f) = 505@
set_lvar_float_to_lvar_float 313@(284@,3f) = 506@
set_lvar_int_to_lvar_int 39@ = 284@
39@ += 1
if 
  3 > 39@
goto_if_false @POOL2_29412
set_lvar_float_to_lvar_float 304@(39@,3f) = 505@
set_lvar_float_to_lvar_float 307@(39@,3f) = 506@

:POOL2_29412
42@ = get_distance_between_coords_2d 304@(284@,3f) {fromY} 307@(284@,3f) {toX} 310@(284@,3f) {toZ} 313@(284@,3f)
sub_float_lvar_from_float_lvar 301@ -= 42@
if 
  485@ == 0
goto_if_false @POOL2_29662
if 
  504@ <> -1
goto_if_false @POOL2_29506
301@ *= 0.5
goto @POOL2_29516

:POOL2_29506
301@ *= 0.75

:POOL2_29516
if 
  328@ == 0
goto_if_false @POOL2_29584
if 
  504@ <> -1
goto_if_false @POOL2_29584
set_lvar_int_to_lvar_int 328@ = 504@
set_lvar_float_to_lvar_float 329@ = 301@
set_lvar_float_to_lvar_float 330@ = 509@
set_lvar_float_to_lvar_float 331@ = 510@

:POOL2_29584
set_lvar_float_to_lvar_float 487@ = 505@
set_lvar_float_to_lvar_float 488@ = 506@
mult_float_lvar_by_float_lvar 507@ *= 301@
mult_float_lvar_by_float_lvar 508@ *= 301@
set_lvar_float_to_lvar_float 483@ = 487@
add_float_lvar_to_float_lvar 483@ += 507@
set_lvar_float_to_lvar_float 484@ = 488@
add_float_lvar_to_float_lvar 484@ += 508@
284@ += 1
goto @POOL2_29669

:POOL2_29662
284@ = 3

:POOL2_29669
goto @POOL2_29296

:POOL2_29676
240@ += 1
281@ += 1

:POOL2_29690
if 
  281@ == 2
goto_if_false @POOL2_30636
39@ = 0

:POOL2_29715
if 
  10 > 39@
goto_if_false @POOL2_29827
if 
  does_object_exist 347@(39@,10i)
goto_if_false @POOL2_29762
delete_object 347@(39@,10i)

:POOL2_29762
create_object #K_POOLBALLCUE {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 347@(39@,10i)
set_object_collision 347@(39@,10i) {state} False
set_object_scale 347@(39@,10i) {scale} 0.3
39@ += 1
goto @POOL2_29715

:POOL2_29827
357@ = 0
343@ = 0.005
add_timed_float_lvar_to_float_lvar 342@ +=@ 343@
if 
  is_float_lvar_greater_than_float_lvar 342@ > 300@
goto_if_false @POOL2_29879
sub_float_lvar_from_float_lvar 342@ -= 300@

:POOL2_29879
346@ = 0.0
39@ = 0

:POOL2_29896
if 
  3 > 39@
goto_if_false @POOL2_30629
if and
  304@(39@,3f) > -9999.9004
  307@(39@,3f) > -9999.9004
  310@(39@,3f) > -9999.9004
  313@(39@,3f) > -9999.9004
goto_if_false @POOL2_30615
42@ = get_distance_between_coords_2d 304@(39@,3f) {fromY} 307@(39@,3f) {toX} 310@(39@,3f) {toZ} 313@(39@,3f)
set_lvar_float_to_lvar_float 169@ = 310@(39@,3f)
sub_float_lvar_from_float_lvar 169@ -= 304@(39@,3f)
set_lvar_float_to_lvar_float 170@ = 313@(39@,3f)
sub_float_lvar_from_float_lvar 170@ -= 307@(39@,3f)
set_lvar_float_to_lvar_float 43@ = 42@
div_float_lvar_by_float_lvar 43@ /= 300@
cset_lvar_int_to_lvar_float 40@ =# 43@
40@ += 1
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
set_lvar_float_to_lvar_float 344@ = 169@
set_lvar_float_to_lvar_float 345@ = 170@
mult_float_lvar_by_float_lvar 344@ *= 342@
mult_float_lvar_by_float_lvar 345@ *= 342@
mult_float_lvar_by_float_lvar 169@ *= 300@
mult_float_lvar_by_float_lvar 170@ *= 300@
if 
  does_object_exist 82@
goto_if_false @POOL2_30335
$x, $y, $z = get_object_coordinates 82@
if 
  is_float_lvar_greater_than_float_var 98@ > $x
goto_if_false @POOL2_30224
set_var_float_to_lvar_float $x = 98@
$x += 0.01

:POOL2_30224
if 
  is_float_var_greater_than_float_lvar $x > 99@
goto_if_false @POOL2_30261
set_var_float_to_lvar_float $x = 99@
$x -= 0.01

:POOL2_30261
if 
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_30298
set_var_float_to_lvar_float $y = 100@
$y += 0.01

:POOL2_30298
if 
  is_float_var_greater_than_float_lvar $y > 101@
goto_if_false @POOL2_30335
set_var_float_to_lvar_float $y = 101@
$y -= 0.01

:POOL2_30335
set_lvar_float_to_lvar_float 196@ = 304@(39@,3f)
sub_float_lvar_from_float_lvar 196@ -= 169@
set_lvar_float_to_lvar_float 197@ = 307@(39@,3f)
sub_float_lvar_from_float_lvar 197@ -= 170@
add_float_lvar_to_float_lvar 196@ += 344@
add_float_lvar_to_float_lvar 197@ += 345@
add_int_lvar_to_int_lvar 40@ += 357@

:POOL2_30399
if and
  is_int_lvar_greater_than_int_lvar 40@ > 357@
  10 > 357@
goto_if_false @POOL2_30615
set_var_float_to_lvar_float $x = 196@
add_float_lvar_to_float_var $x += 169@
set_var_float_to_lvar_float $y = 197@
add_float_lvar_to_float_var $y += 170@
set_lvar_float_to_var_float 196@ = $x
set_lvar_float_to_var_float 197@ = $y
if 
  does_object_exist 347@(357@,10i)
goto_if_false @POOL2_30601
if or
  is_float_var_greater_than_float_lvar $x > 99@
  is_float_lvar_greater_than_float_var 98@ > $x
  is_float_var_greater_than_float_lvar $y > 101@
  is_float_lvar_greater_than_float_var 100@ > $y
goto_if_false @POOL2_30572
set_object_visible 347@(357@,10i) {state} False
set_object_coordinates 347@(357@,10i) {x} $x {y} $y {z} $z
goto @POOL2_30601

:POOL2_30572
set_object_visible 347@(357@,10i) {state} True
set_object_coordinates 347@(357@,10i) {x} $x {y} $y {z} $z

:POOL2_30601
357@ += 1
goto @POOL2_30399

:POOL2_30615
39@ += 1
goto @POOL2_29896

:POOL2_30629
281@ += 1

:POOL2_30636
if 
  281@ == 3
goto_if_false @POOL2_30661
281@ = 99

:POOL2_30661
goto @POOL2_28619

:POOL2_30668
return 

:POOL2_30670
if 
  not is_char_dead 358@
goto_if_false @POOL2_33710
if 
  is_int_lvar_equal_to_int_var 358@ == $scplayer
goto_if_false @POOL2_30719
360@ = 0
goto @POOL2_30726

:POOL2_30719
360@ = 1

:POOL2_30726
if 
  is_char_playing_anim 358@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_30992
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_30819
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_30819
42@ = get_char_anim_current_time 358@ {animationName} "POOL_XLONG_SHOT"
if 
  is_object_playing_anim 359@ {animationName} "POOL_XLONG_SHOT_O"
goto_if_false @POOL2_30913
set_object_anim_current_time 359@ {animationName} "POOL_XLONG_SHOT_O" {time} 42@
goto @POOL2_30992

:POOL2_30913
if 
play_object_anim 359@ {animationName} "POOL_XLONG_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_30992
set_object_anim_speed 359@ {animationName} "POOL_XLONG_SHOT_O" {speed} 0.0

:POOL2_30992
if and
  is_char_playing_anim 358@ {animationName} "POOL_XLONG_START"
  not is_char_playing_anim 358@ {animationName} "POOL_XLONG_SHOT"
goto_if_false @POOL2_31286
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_31108
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31108
42@ = get_char_anim_current_time 358@ {animationName} "POOL_XLONG_START"
if 
  is_object_playing_anim 359@ {animationName} "POOL_XLONG_START_O"
goto_if_false @POOL2_31205
set_object_anim_current_time 359@ {animationName} "POOL_XLONG_START_O" {time} 42@
goto @POOL2_31286

:POOL2_31205
if 
play_object_anim 359@ {animationName} "POOL_XLONG_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_31286
set_object_anim_speed 359@ {animationName} "POOL_XLONG_START_O" {speed} 0.0

:POOL2_31286
if 
  is_char_playing_anim 358@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_31546
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_31378
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31378
42@ = get_char_anim_current_time 358@ {animationName} "POOL_LONG_SHOT"
if 
  is_object_playing_anim 359@ {animationName} "POOL_LONG_SHOT_O"
goto_if_false @POOL2_31469
set_object_anim_current_time 359@ {animationName} "POOL_LONG_SHOT_O" {time} 42@
goto @POOL2_31546

:POOL2_31469
if 
play_object_anim 359@ {animationName} "POOL_LONG_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_31546
set_object_anim_speed 359@ {animationName} "POOL_LONG_SHOT_O" {speed} 0.0

:POOL2_31546
if and
  is_char_playing_anim 358@ {animationName} "POOL_LONG_START"
  not is_char_playing_anim 358@ {animationName} "POOL_LONG_SHOT"
goto_if_false @POOL2_31833
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_31660
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31660
42@ = get_char_anim_current_time 358@ {animationName} "POOL_LONG_START"
if 
  is_object_playing_anim 359@ {animationName} "POOL_LONG_START_O"
goto_if_false @POOL2_31754
set_object_anim_current_time 359@ {animationName} "POOL_LONG_START_O" {time} 42@
goto @POOL2_31833

:POOL2_31754
if 
play_object_anim 359@ {animationName} "POOL_LONG_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_31833
set_object_anim_speed 359@ {animationName} "POOL_LONG_START_O" {speed} 0.0

:POOL2_31833
if 
  is_char_playing_anim 358@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_32087
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_31924
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_31924
42@ = get_char_anim_current_time 358@ {animationName} "POOL_MED_SHOT"
if 
  is_object_playing_anim 359@ {animationName} "POOL_MED_SHOT_O"
goto_if_false @POOL2_32012
set_object_anim_current_time 359@ {animationName} "POOL_MED_SHOT_O" {time} 42@
goto @POOL2_32087

:POOL2_32012
if 
play_object_anim 359@ {animationName} "POOL_MED_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_32087
set_object_anim_speed 359@ {animationName} "POOL_MED_SHOT_O" {speed} 0.0

:POOL2_32087
if and
  is_char_playing_anim 358@ {animationName} "POOL_MED_START"
  not is_char_playing_anim 358@ {animationName} "POOL_MED_SHOT"
goto_if_false @POOL2_32367
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_32199
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32199
42@ = get_char_anim_current_time 358@ {animationName} "POOL_MED_START"
if 
  is_object_playing_anim 359@ {animationName} "POOL_MED_START_O"
goto_if_false @POOL2_32290
set_object_anim_current_time 359@ {animationName} "POOL_MED_START_O" {time} 42@
goto @POOL2_32367

:POOL2_32290
if 
play_object_anim 359@ {animationName} "POOL_MED_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_32367
set_object_anim_speed 359@ {animationName} "POOL_MED_START_O" {speed} 0.0

:POOL2_32367
if 
  is_char_playing_anim 358@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_32633
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_32460
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32460
42@ = get_char_anim_current_time 358@ {animationName} "POOL_SHORT_SHOT"
if 
  is_object_playing_anim 359@ {animationName} "POOL_SHORT_SHOT_O"
goto_if_false @POOL2_32554
set_object_anim_current_time 359@ {animationName} "POOL_SHORT_SHOT_O" {time} 42@
goto @POOL2_32633

:POOL2_32554
if 
play_object_anim 359@ {animationName} "POOL_SHORT_SHOT_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_32633
set_object_anim_speed 359@ {animationName} "POOL_SHORT_SHOT_O" {speed} 0.0

:POOL2_32633
if and
  is_char_playing_anim 358@ {animationName} "POOL_SHORT_START"
  not is_char_playing_anim 358@ {animationName} "POOL_SHORT_SHOT"
goto_if_false @POOL2_32927
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_32749
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_32749
42@ = get_char_anim_current_time 358@ {animationName} "POOL_SHORT_START"
if 
  is_object_playing_anim 359@ {animationName} "POOL_SHORT_START_O"
goto_if_false @POOL2_32846
set_object_anim_current_time 359@ {animationName} "POOL_SHORT_START_O" {time} 42@
goto @POOL2_32927

:POOL2_32846
if 
play_object_anim 359@ {animationName} "POOL_SHORT_START_O" {animationFile} "POOL" {frameDelta} 10000.0 {lockF} False {loop} True
goto_if_false @POOL2_32927
set_object_anim_speed 359@ {animationName} "POOL_SHORT_START_O" {speed} 0.0

:POOL2_32927
if 
  is_char_playing_anim 358@ {animationName} "POOL_CHALKCUE"
goto_if_false @POOL2_33130
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_33018
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_33018
42@ = get_char_anim_current_time 358@ {animationName} "POOL_CHALKCUE"
if 
  42@ > 0.28
goto_if_false @POOL2_33123
if 
  361@(360@,2i) <> 1
goto_if_false @POOL2_33123
$x, $y, $z = get_object_coordinates 359@
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundPoolChalkCue
361@(360@,2i) = 1

:POOL2_33123
goto @POOL2_33163

:POOL2_33130
if 
  361@(360@,2i) <> 0
goto_if_false @POOL2_33163
361@(360@,2i) = 0

:POOL2_33163
if 
  is_char_playing_anim 358@ {animationName} "POOL_IDLE_STANCE"
goto_if_false @POOL2_33257
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_33257
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_33257
if 
  is_char_playing_anim 358@ {animationName} "POOL_WALK"
goto_if_false @POOL2_33344
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_33344
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_33344
if 
  is_char_playing_anim 358@ {animationName} "POOL_WALK_START"
goto_if_false @POOL2_33437
if 
  not is_char_holding_object 358@ {handle} 359@
goto_if_false @POOL2_33437
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL2_33437
39@ = 0
if and
  is_char_playing_anim 358@ {animationName} "IDLE_STANCE"
  not is_int_lvar_equal_to_int_lvar 215@ == 358@
goto_if_false @POOL2_33488
39@ = 1

:POOL2_33488
if and
  is_char_playing_anim 358@ {animationName} "IDLE_STANCE"
  35@ == 6
goto_if_false @POOL2_33531
39@ = 1

:POOL2_33531
if 
  39@ == 1
goto_if_false @POOL2_33710
40@ = get_script_task_status 358@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @POOL2_33710
drop_object 358@ {state} False
task_pick_up_object 358@ {object} 359@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
47@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 47@
if 
  108@ == 0
goto_if_false @POOL2_33705
perform_sequence_task 358@ {sequence} 47@

:POOL2_33705
clear_sequence_task 47@

:POOL2_33710
return 

:POOL2_33712
369@ = 99999.8984
370@ = 99999.8984
371@ = 99999.8984
363@ = 99999.8984
365@ = 0.0
364@ = 99999.8984
366@ = 0

:POOL2_33779
if 
  6 > 366@
goto_if_false @POOL2_34021
382@(366@,6f) = 0.0
388@(366@,6f) = 0.0
394@(366@,6f) = 0.0
400@(366@,6f) = 0.0
406@(366@,6f) = 0.0
412@(366@,6f) = 0.0
418@(366@,6f) = 0.0
424@(366@,6f) = 0.0
430@(366@,6f) = 0.0
436@(366@,6f) = 0.0
442@(366@,6f) = 0.0
448@(366@,6f) = 0.0
454@(366@,6f) = 0.0
460@(366@,6f) = 0.0
466@(366@,6f) = 0.0
366@ += 1
goto @POOL2_33779

:POOL2_34021
366@ = 1

:POOL2_34028
if 
  16 > 366@
goto_if_false @POOL2_38299
wait 0
381@ = 0
if 
  does_object_exist 82@(366@,16i)
goto_if_false @POOL2_37232
if 
  66@(366@,16i) == 0
goto_if_false @POOL2_37218
if 
  8 > 366@
goto_if_false @POOL2_34131
368@ = 0
goto @POOL2_34170

:POOL2_34131
if 
  366@ == 8
goto_if_false @POOL2_34163
368@ = 2
goto @POOL2_34170

:POOL2_34163
368@ = 1

:POOL2_34170
if or
  is_int_lvar_equal_to_int_lvar 368@ == 231@
  231@ == -1
goto_if_false @POOL2_37204
if and
  231@ == -1
  368@ == 2
goto_if_false @POOL2_34235
381@ = 1
goto @POOL2_37197

:POOL2_34235
if 
  129@ == 1
goto_if_false @POOL2_34392
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "BALL "
save_int_to_debug_file 366@

:POOL2_34392
367@ = 0

:POOL2_34399
if 
  6 > 367@
goto_if_false @POOL2_37197
if 
  129@ == 1
goto_if_false @POOL2_34572
save_newline_to_debug_file 
save_string_to_debug_file "POCKET "
save_int_to_debug_file 367@

:POOL2_34572
set_lvar_int_to_lvar_int 516@ = 82@(366@,16i)
set_lvar_int_to_lvar_int 517@ = 367@
gosub @POOL2_48775
if 
  129@ == 1
goto_if_false @POOL2_34754
save_newline_to_debug_file 
save_string_to_debug_file " REQUIRED ANGLE = "
save_float_to_debug_file 519@

:POOL2_34754
if 
  518@ == 1
goto_if_false @POOL2_36740
set_lvar_int_to_lvar_int 481@ = 82@(366@,16i)
482@ = 0
set_lvar_float_to_lvar_float 483@ = 54@(367@,6f)
set_lvar_float_to_lvar_float 484@ = 60@(367@,6f)
gosub @POOL2_46939
if 
  485@ == 1
goto_if_false @POOL2_34857
473@ = 1.0
goto @POOL2_34903

:POOL2_34857
if 
  is_int_lvar_equal_to_int_lvar 486@ == 368@
goto_if_false @POOL2_34893
473@ = 0.2
goto @POOL2_34903

:POOL2_34893
473@ = 0.1

:POOL2_34903
if 
  129@ == 1
goto_if_false @POOL2_35058
save_newline_to_debug_file 
save_string_to_debug_file " POCKET_PATH_SCORE = "
save_float_to_debug_file 473@

:POOL2_35058
$x, $y, $z = get_object_coordinates 82@(366@,16i)
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 54@(367@,6f) {toZ} 60@(367@,6f)
475@ = 2.3
sub_float_lvar_from_float_lvar 475@ -= 42@
475@ /= 2.3
if 
  129@ == 1
goto_if_false @POOL2_35284
save_newline_to_debug_file 
save_string_to_debug_file " POCKET_DIST_SCORE = "
save_float_to_debug_file 475@

:POOL2_35284
476@ = 90.0
sub_float_lvar_from_float_lvar 476@ -= 519@
476@ /= 90.0
if 
  129@ == 1
goto_if_false @POOL2_35467
save_newline_to_debug_file 
save_string_to_debug_file " POCKET_ANGLE_SCORE = "
save_float_to_debug_file 476@

:POOL2_35467
set_lvar_int_to_lvar_int 481@ = 82@
set_lvar_int_to_lvar_int 482@ = 82@(366@,16i)
set_lvar_float_to_lvar_float 483@ = 526@
set_lvar_float_to_lvar_float 484@ = 527@
gosub @POOL2_46939
if 
  485@ == 1
goto_if_false @POOL2_35545
474@ = 1.0
goto @POOL2_35776

:POOL2_35545
if 
  129@ == 1
goto_if_false @POOL2_35695
save_newline_to_debug_file 
save_string_to_debug_file "   (PATH NOT CLEAR FROM CUE BALL TO THIS BALL) "

:POOL2_35695
if 
  231@ == -1
goto_if_false @POOL2_35730
474@ = 0.05
goto @POOL2_35776

:POOL2_35730
if 
  is_int_lvar_equal_to_int_lvar 486@ == 231@
goto_if_false @POOL2_35766
474@ = 0.05
goto @POOL2_35776

:POOL2_35766
474@ = -1000.0

:POOL2_35776
if 
  129@ == 1
goto_if_false @POOL2_35931
save_newline_to_debug_file 
save_string_to_debug_file " CUE_PATH_SCORE = "
save_float_to_debug_file 474@

:POOL2_35931
$x, $y, $z = get_object_coordinates 82@
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 526@ {toZ} 527@
if 
  0.3 > 42@
goto_if_false @POOL2_36019
43@ = 0.3
sub_float_lvar_from_float_lvar 43@ -= 42@
42@ = 0.3
add_float_lvar_to_float_lvar 42@ += 43@

:POOL2_36019
42@ += -0.3
43@ = 2.0
sub_float_lvar_from_float_lvar 43@ -= 42@
43@ /= 2.0
set_lvar_float_to_lvar_float 472@ = 43@
if 
  129@ == 1
goto_if_false @POOL2_36220
save_newline_to_debug_file 
save_string_to_debug_file " CUE_DIST_SCORE = "
save_float_to_debug_file 472@

:POOL2_36220
473@ *= 1.0
474@ *= 1.0
472@ *= 0.3
475@ *= 0.4
476@ *= 0.8
set_lvar_float_to_lvar_float 477@ = 473@
add_float_lvar_to_float_lvar 477@ += 474@
add_float_lvar_to_float_lvar 477@ += 472@
add_float_lvar_to_float_lvar 477@ += 475@
add_float_lvar_to_float_lvar 477@ += 476@
477@ /= 5.0
switch_start 366@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_36733 {caseNum1} 1 {caseLabel1} @POOL2_36448 {caseNum2} 2 {caseLabel2} @POOL2_36467 {caseNum3} 3 {caseLabel3} @POOL2_36486 {caseNum4} 4 {caseLabel4} @POOL2_36505 {caseNum5} 5 {caseLabel5} @POOL2_36524 {caseNum6} 6 {caseLabel6} @POOL2_36543 {caseNum7} 7 {caseLabel7} @POOL2_36562
switch_continued 8 {caseLabel1} @POOL2_36581 {caseNum2} 9 {caseLabel2} @POOL2_36600 {caseNum3} 10 {caseLabel3} @POOL2_36619 {caseNum4} 11 {caseLabel4} @POOL2_36638 {caseNum5} 12 {caseLabel5} @POOL2_36657 {caseNum6} 13 {caseLabel6} @POOL2_36676 {caseNum7} 14 {caseLabel7} @POOL2_36695 {caseNum8} 15 {caseLabel8} @POOL2_36714 {caseNum9} -1 {caseLabel9} @POOL2_36733

:POOL2_36448
set_lvar_float_to_lvar_float 382@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36467
set_lvar_float_to_lvar_float 388@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36486
set_lvar_float_to_lvar_float 394@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36505
set_lvar_float_to_lvar_float 400@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36524
set_lvar_float_to_lvar_float 406@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36543
set_lvar_float_to_lvar_float 412@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36562
set_lvar_float_to_lvar_float 418@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36581
set_lvar_float_to_lvar_float 424@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36600
set_lvar_float_to_lvar_float 430@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36619
set_lvar_float_to_lvar_float 436@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36638
set_lvar_float_to_lvar_float 442@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36657
set_lvar_float_to_lvar_float 448@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36676
set_lvar_float_to_lvar_float 454@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36695
set_lvar_float_to_lvar_float 460@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36714
set_lvar_float_to_lvar_float 466@(367@,6f) = 477@
goto @POOL2_36733

:POOL2_36733
goto @POOL2_37183

:POOL2_36740
switch_start 366@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_37183 {caseNum1} 1 {caseLabel1} @POOL2_36868 {caseNum2} 2 {caseLabel2} @POOL2_36889 {caseNum3} 3 {caseLabel3} @POOL2_36910 {caseNum4} 4 {caseLabel4} @POOL2_36931 {caseNum5} 5 {caseLabel5} @POOL2_36952 {caseNum6} 6 {caseLabel6} @POOL2_36973 {caseNum7} 7 {caseLabel7} @POOL2_36994
switch_continued 8 {caseLabel1} @POOL2_37015 {caseNum2} 9 {caseLabel2} @POOL2_37036 {caseNum3} 10 {caseLabel3} @POOL2_37057 {caseNum4} 11 {caseLabel4} @POOL2_37078 {caseNum5} 12 {caseLabel5} @POOL2_37099 {caseNum6} 13 {caseLabel6} @POOL2_37120 {caseNum7} 14 {caseLabel7} @POOL2_37141 {caseNum8} 15 {caseLabel8} @POOL2_37162 {caseNum9} -1 {caseLabel9} @POOL2_37183

:POOL2_36868
382@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_36889
388@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_36910
394@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_36931
400@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_36952
406@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_36973
412@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_36994
418@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37015
424@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37036
430@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37057
436@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37078
442@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37099
448@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37120
454@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37141
460@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37162
466@(367@,6f) = -1.0
goto @POOL2_37183

:POOL2_37183
367@ += 1
goto @POOL2_34399

:POOL2_37197
goto @POOL2_37211

:POOL2_37204
381@ = 1

:POOL2_37211
goto @POOL2_37225

:POOL2_37218
381@ = 1

:POOL2_37225
goto @POOL2_37239

:POOL2_37232
381@ = 1

:POOL2_37239
if 
  381@ == 1
goto_if_false @POOL2_38285
switch_start 366@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @POOL2_38285 {caseNum1} 1 {caseLabel1} @POOL2_37385 {caseNum2} 2 {caseLabel2} @POOL2_37445 {caseNum3} 3 {caseLabel3} @POOL2_37505 {caseNum4} 4 {caseLabel4} @POOL2_37565 {caseNum5} 5 {caseLabel5} @POOL2_37625 {caseNum6} 6 {caseLabel6} @POOL2_37685 {caseNum7} 7 {caseLabel7} @POOL2_37745
switch_continued 8 {caseLabel1} @POOL2_37805 {caseNum2} 9 {caseLabel2} @POOL2_37865 {caseNum3} 10 {caseLabel3} @POOL2_37925 {caseNum4} 11 {caseLabel4} @POOL2_37985 {caseNum5} 12 {caseLabel5} @POOL2_38045 {caseNum6} 13 {caseLabel6} @POOL2_38105 {caseNum7} 14 {caseLabel7} @POOL2_38165 {caseNum8} 15 {caseLabel8} @POOL2_38225 {caseNum9} -1 {caseLabel9} @POOL2_38285

:POOL2_37385
367@ = 0

:POOL2_37392
if 
  6 > 367@
goto_if_false @POOL2_37438
382@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37392

:POOL2_37438
goto @POOL2_38285

:POOL2_37445
367@ = 0

:POOL2_37452
if 
  6 > 367@
goto_if_false @POOL2_37498
388@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37452

:POOL2_37498
goto @POOL2_38285

:POOL2_37505
367@ = 0

:POOL2_37512
if 
  6 > 367@
goto_if_false @POOL2_37558
394@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37512

:POOL2_37558
goto @POOL2_38285

:POOL2_37565
367@ = 0

:POOL2_37572
if 
  6 > 367@
goto_if_false @POOL2_37618
400@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37572

:POOL2_37618
goto @POOL2_38285

:POOL2_37625
367@ = 0

:POOL2_37632
if 
  6 > 367@
goto_if_false @POOL2_37678
406@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37632

:POOL2_37678
goto @POOL2_38285

:POOL2_37685
367@ = 0

:POOL2_37692
if 
  6 > 367@
goto_if_false @POOL2_37738
412@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37692

:POOL2_37738
goto @POOL2_38285

:POOL2_37745
367@ = 0

:POOL2_37752
if 
  6 > 367@
goto_if_false @POOL2_37798
418@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37752

:POOL2_37798
goto @POOL2_38285

:POOL2_37805
367@ = 0

:POOL2_37812
if 
  6 > 367@
goto_if_false @POOL2_37858
424@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37812

:POOL2_37858
goto @POOL2_38285

:POOL2_37865
367@ = 0

:POOL2_37872
if 
  6 > 367@
goto_if_false @POOL2_37918
430@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37872

:POOL2_37918
goto @POOL2_38285

:POOL2_37925
367@ = 0

:POOL2_37932
if 
  6 > 367@
goto_if_false @POOL2_37978
436@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37932

:POOL2_37978
goto @POOL2_38285

:POOL2_37985
367@ = 0

:POOL2_37992
if 
  6 > 367@
goto_if_false @POOL2_38038
442@(367@,6f) = -1.0
367@ += 1
goto @POOL2_37992

:POOL2_38038
goto @POOL2_38285

:POOL2_38045
367@ = 0

:POOL2_38052
if 
  6 > 367@
goto_if_false @POOL2_38098
448@(367@,6f) = -1.0
367@ += 1
goto @POOL2_38052

:POOL2_38098
goto @POOL2_38285

:POOL2_38105
367@ = 0

:POOL2_38112
if 
  6 > 367@
goto_if_false @POOL2_38158
454@(367@,6f) = -1.0
367@ += 1
goto @POOL2_38112

:POOL2_38158
goto @POOL2_38285

:POOL2_38165
367@ = 0

:POOL2_38172
if 
  6 > 367@
goto_if_false @POOL2_38218
460@(367@,6f) = -1.0
367@ += 1
goto @POOL2_38172

:POOL2_38218
goto @POOL2_38285

:POOL2_38225
367@ = 0

:POOL2_38232
if 
  6 > 367@
goto_if_false @POOL2_38278
466@(367@,6f) = -1.0
367@ += 1
goto @POOL2_38232

:POOL2_38278
goto @POOL2_38285

:POOL2_38285
366@ += 1
goto @POOL2_34028

:POOL2_38299
478@ = -9999.9004
479@ = -1
480@ = -1
366@ = 0
if 
  129@ == 1
goto_if_false @POOL2_38480
save_newline_to_debug_file 
save_string_to_debug_file "POOL AI POTENTIAL SHOT SCORES"

:POOL2_38480
if 
  6 > 366@
goto_if_false @POOL2_41804
if 
  129@ == 1
goto_if_false @POOL2_38794
save_newline_to_debug_file 
save_string_to_debug_file "POCKET"
save_int_to_debug_file 366@
save_newline_to_debug_file 
save_string_to_debug_file "BALL 01 = "
save_float_to_debug_file 382@(366@,6f)

:POOL2_38794
if 
  is_float_lvar_greater_than_float_lvar 382@(366@,6f) > 478@
goto_if_false @POOL2_38844
set_lvar_float_to_lvar_float 478@ = 382@(366@,6f)
479@ = 1
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_38844
if 
  129@ == 1
goto_if_false @POOL2_39003
save_newline_to_debug_file 
save_string_to_debug_file "BALL 02 = "
save_float_to_debug_file 388@(366@,6f)

:POOL2_39003
if 
  is_float_lvar_greater_than_float_lvar 388@(366@,6f) > 478@
goto_if_false @POOL2_39053
set_lvar_float_to_lvar_float 478@ = 388@(366@,6f)
479@ = 2
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_39053
if 
  129@ == 1
goto_if_false @POOL2_39212
save_newline_to_debug_file 
save_string_to_debug_file "BALL 03 = "
save_float_to_debug_file 394@(366@,6f)

:POOL2_39212
if 
  is_float_lvar_greater_than_float_lvar 394@(366@,6f) > 478@
goto_if_false @POOL2_39262
set_lvar_float_to_lvar_float 478@ = 394@(366@,6f)
479@ = 3
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_39262
if 
  129@ == 1
goto_if_false @POOL2_39421
save_newline_to_debug_file 
save_string_to_debug_file "BALL 04 = "
save_float_to_debug_file 400@(366@,6f)

:POOL2_39421
if 
  is_float_lvar_greater_than_float_lvar 400@(366@,6f) > 478@
goto_if_false @POOL2_39471
set_lvar_float_to_lvar_float 478@ = 400@(366@,6f)
479@ = 4
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_39471
if 
  129@ == 1
goto_if_false @POOL2_39630
save_newline_to_debug_file 
save_string_to_debug_file "BALL 05 = "
save_float_to_debug_file 406@(366@,6f)

:POOL2_39630
if 
  is_float_lvar_greater_than_float_lvar 406@(366@,6f) > 478@
goto_if_false @POOL2_39680
set_lvar_float_to_lvar_float 478@ = 406@(366@,6f)
479@ = 5
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_39680
if 
  129@ == 1
goto_if_false @POOL2_39839
save_newline_to_debug_file 
save_string_to_debug_file "BALL 06 = "
save_float_to_debug_file 412@(366@,6f)

:POOL2_39839
if 
  is_float_lvar_greater_than_float_lvar 412@(366@,6f) > 478@
goto_if_false @POOL2_39889
set_lvar_float_to_lvar_float 478@ = 412@(366@,6f)
479@ = 6
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_39889
if 
  129@ == 1
goto_if_false @POOL2_40048
save_newline_to_debug_file 
save_string_to_debug_file "BALL 07 = "
save_float_to_debug_file 418@(366@,6f)

:POOL2_40048
if 
  is_float_lvar_greater_than_float_lvar 418@(366@,6f) > 478@
goto_if_false @POOL2_40098
set_lvar_float_to_lvar_float 478@ = 418@(366@,6f)
479@ = 7
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_40098
if 
  129@ == 1
goto_if_false @POOL2_40257
save_newline_to_debug_file 
save_string_to_debug_file "BALL 08 = "
save_float_to_debug_file 424@(366@,6f)

:POOL2_40257
if 
  is_float_lvar_greater_than_float_lvar 424@(366@,6f) > 478@
goto_if_false @POOL2_40307
set_lvar_float_to_lvar_float 478@ = 424@(366@,6f)
479@ = 8
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_40307
if 
  129@ == 1
goto_if_false @POOL2_40466
save_newline_to_debug_file 
save_string_to_debug_file "BALL 09 = "
save_float_to_debug_file 430@(366@,6f)

:POOL2_40466
if 
  is_float_lvar_greater_than_float_lvar 430@(366@,6f) > 478@
goto_if_false @POOL2_40516
set_lvar_float_to_lvar_float 478@ = 430@(366@,6f)
479@ = 9
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_40516
if 
  129@ == 1
goto_if_false @POOL2_40675
save_newline_to_debug_file 
save_string_to_debug_file "BALL 10 = "
save_float_to_debug_file 436@(366@,6f)

:POOL2_40675
if 
  is_float_lvar_greater_than_float_lvar 436@(366@,6f) > 478@
goto_if_false @POOL2_40725
set_lvar_float_to_lvar_float 478@ = 436@(366@,6f)
479@ = 10
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_40725
if 
  129@ == 1
goto_if_false @POOL2_40884
save_newline_to_debug_file 
save_string_to_debug_file "BALL 11 = "
save_float_to_debug_file 442@(366@,6f)

:POOL2_40884
if 
  is_float_lvar_greater_than_float_lvar 442@(366@,6f) > 478@
goto_if_false @POOL2_40934
set_lvar_float_to_lvar_float 478@ = 442@(366@,6f)
479@ = 11
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_40934
if 
  129@ == 1
goto_if_false @POOL2_41093
save_newline_to_debug_file 
save_string_to_debug_file "BALL 12 = "
save_float_to_debug_file 448@(366@,6f)

:POOL2_41093
if 
  is_float_lvar_greater_than_float_lvar 448@(366@,6f) > 478@
goto_if_false @POOL2_41143
set_lvar_float_to_lvar_float 478@ = 448@(366@,6f)
479@ = 12
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_41143
if 
  129@ == 1
goto_if_false @POOL2_41302
save_newline_to_debug_file 
save_string_to_debug_file "BALL 13 = "
save_float_to_debug_file 454@(366@,6f)

:POOL2_41302
if 
  is_float_lvar_greater_than_float_lvar 454@(366@,6f) > 478@
goto_if_false @POOL2_41352
set_lvar_float_to_lvar_float 478@ = 454@(366@,6f)
479@ = 13
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_41352
if 
  129@ == 1
goto_if_false @POOL2_41511
save_newline_to_debug_file 
save_string_to_debug_file "BALL 14 = "
save_float_to_debug_file 460@(366@,6f)

:POOL2_41511
if 
  is_float_lvar_greater_than_float_lvar 460@(366@,6f) > 478@
goto_if_false @POOL2_41561
set_lvar_float_to_lvar_float 478@ = 460@(366@,6f)
479@ = 14
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_41561
if 
  129@ == 1
goto_if_false @POOL2_41720
save_newline_to_debug_file 
save_string_to_debug_file "BALL 15 = "
save_float_to_debug_file 466@(366@,6f)

:POOL2_41720
if 
  is_float_lvar_greater_than_float_lvar 466@(366@,6f) > 478@
goto_if_false @POOL2_41770
set_lvar_float_to_lvar_float 478@ = 466@(366@,6f)
479@ = 15
set_lvar_int_to_lvar_int 480@ = 366@

:POOL2_41770
if 
  129@ == 1
goto_if_false @POOL2_41790
save_newline_to_debug_file 

:POOL2_41790
366@ += 1
goto @POOL2_38480

:POOL2_41804
if 
  478@ > 0.0
goto_if_false @POOL2_42225
372@, 373@, 374@ = get_object_coordinates 82@(479@,16i)
378@, 379@, 380@ = get_object_coordinates 82@
set_lvar_float_to_lvar_float 375@ = 54@(480@,6f)
sub_float_lvar_from_float_lvar 375@ -= 372@
set_lvar_float_to_lvar_float 376@ = 60@(480@,6f)
sub_float_lvar_from_float_lvar 376@ -= 373@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 54@(480@,6f) {toZ} 60@(480@,6f)
div_float_lvar_by_float_lvar 375@ /= 42@
div_float_lvar_by_float_lvar 376@ /= 42@
set_lvar_float_to_lvar_float 43@ = 52@
43@ *= -2.0
mult_float_lvar_by_float_lvar 375@ *= 43@
mult_float_lvar_by_float_lvar 376@ *= 43@
set_lvar_float_to_lvar_float 369@ = 372@
add_float_lvar_to_float_lvar 369@ += 375@
set_lvar_float_to_lvar_float 370@ = 373@
add_float_lvar_to_float_lvar 370@ += 376@
set_var_float_to_lvar_float $x = 372@
sub_float_lvar_from_float_var $x -= 369@
set_var_float_to_lvar_float $y = 373@
sub_float_lvar_from_float_var $y -= 370@
set_lvar_float_to_lvar_float 169@ = 369@
sub_float_lvar_from_float_lvar 169@ -= 378@
set_lvar_float_to_lvar_float 170@ = 370@
sub_float_lvar_from_float_lvar 170@ -= 379@
365@ = get_angle_between_2d_vectors $x {y1} $y {x2} 169@ {y2} 170@
set_lvar_float_to_lvar_float 42@ = 365@
42@ /= 90.0
42@ *= 0.25
mult_float_var_by_float_lvar $x *= 42@
mult_float_var_by_float_lvar $y *= 42@
add_float_var_to_float_lvar 369@ += $x
add_float_var_to_float_lvar 370@ += $y
42@ = get_distance_between_coords_2d 378@ {fromY} 379@ {toX} 369@ {toZ} 370@
43@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 369@ {toZ} 370@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 2.0 {max} 6.0
mult_float_lvar_by_float_lvar 371@ *= 42@
goto @POOL2_46712

:POOL2_42225
if 
  129@ == 1
goto_if_false @POOL2_42375
save_newline_to_debug_file 
save_string_to_debug_file "HIT AND HOPE"

:POOL2_42375
366@ = 1

:POOL2_42382
if 
  16 > 366@
goto_if_false @POOL2_42981
wait 0
if 
  does_object_exist 82@(366@,16i)
goto_if_false @POOL2_42967
if 
  66@(366@,16i) == 0
goto_if_false @POOL2_42967
if 
  366@ == 0
goto_if_false @POOL2_42478
368@ = 3
goto @POOL2_42549

:POOL2_42478
if 
  8 > 366@
goto_if_false @POOL2_42510
368@ = 0
goto @POOL2_42549

:POOL2_42510
if 
  366@ == 8
goto_if_false @POOL2_42542
368@ = 2
goto @POOL2_42549

:POOL2_42542
368@ = 1

:POOL2_42549
if or
  is_int_lvar_equal_to_int_lvar 368@ == 231@
  231@ == -1
goto_if_false @POOL2_42967
if and
  231@ == 0
  368@ == 2
goto_if_false @POOL2_42607
goto @POOL2_42967

:POOL2_42607
set_lvar_int_to_lvar_int 528@ = 82@
set_lvar_int_to_lvar_int 529@ = 82@(366@,16i)
gosub @POOL2_49095
if 
  530@ <> 0
goto_if_false @POOL2_42967
if 
  530@ == 1
goto_if_false @POOL2_42693
set_lvar_float_to_lvar_float 369@ = 539@
set_lvar_float_to_lvar_float 370@ = 540@
goto @POOL2_42898

:POOL2_42693
if 
  530@ == 2
goto_if_false @POOL2_42734
set_lvar_float_to_lvar_float 369@ = 541@
set_lvar_float_to_lvar_float 370@ = 542@
goto @POOL2_42898

:POOL2_42734
set_var_float_to_lvar_float $x = 541@
sub_float_lvar_from_float_var $x -= 539@
set_var_float_to_lvar_float $y = 542@
sub_float_lvar_from_float_var $y -= 540@
42@ = get_distance_between_coords_2d 539@ {fromY} 540@ {toX} 541@ {toZ} 542@
div_float_var_by_float_lvar $x /= 42@
div_float_var_by_float_lvar $y /= 42@
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= 0.8
42@ *= 2.0
43@ = generate_random_float_in_range 0.0 {max} 42@
mult_float_var_by_float_lvar $x *= 43@
mult_float_var_by_float_lvar $y *= 43@
set_lvar_float_to_lvar_float 369@ = 539@
add_float_var_to_float_lvar 369@ += $x
set_lvar_float_to_lvar_float 370@ = 540@
add_float_var_to_float_lvar 370@ += $y

:POOL2_42898
$x, $y, $z = get_object_coordinates 82@
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 369@ {toZ} 370@
43@ = generate_random_float_in_range 2.0 {max} 5.0
set_lvar_float_to_lvar_float 371@ = 42@
mult_float_lvar_by_float_lvar 371@ *= 43@
366@ = 16

:POOL2_42967
366@ += 1
goto @POOL2_42382

:POOL2_42981
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_45009
if 
  129@ == 1
goto_if_false @POOL2_43162
save_newline_to_debug_file 
save_string_to_debug_file "BOUNCE OFF CUSHION"

:POOL2_43162
366@ = 1

:POOL2_43169
if 
  16 > 366@
goto_if_false @POOL2_45009
wait 0
if 
  does_object_exist 82@(366@,16i)
goto_if_false @POOL2_44995
if 
  66@(366@,16i) == 0
goto_if_false @POOL2_44995
if 
  366@ == 0
goto_if_false @POOL2_43265
368@ = 3
goto @POOL2_43336

:POOL2_43265
if 
  8 > 366@
goto_if_false @POOL2_43297
368@ = 0
goto @POOL2_43336

:POOL2_43297
if 
  366@ == 8
goto_if_false @POOL2_43329
368@ = 2
goto @POOL2_43336

:POOL2_43329
368@ = 1

:POOL2_43336
if or
  is_int_lvar_equal_to_int_lvar 368@ == 231@
  231@ == -1
goto_if_false @POOL2_44995
if and
  231@ == -1
  368@ == 2
goto_if_false @POOL2_43394
goto @POOL2_44995

:POOL2_43394
372@, 373@, 374@ = get_object_coordinates 82@
375@, 376@, 377@ = get_object_coordinates 82@(366@,16i)
if 
  129@ == 1
goto_if_false @POOL2_43576
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 1 DATA = "

:POOL2_43576
set_lvar_float_to_lvar_float 378@ = 372@
add_float_lvar_to_float_lvar 378@ += 375@
378@ /= 2.0
set_lvar_float_to_lvar_float 379@ = 100@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_43808
set_lvar_int_to_lvar_int 549@ = 82@
set_lvar_int_to_lvar_int 550@ = 82@(366@,16i)
set_lvar_float_to_lvar_float 551@ = 378@
set_lvar_float_to_lvar_float 552@ = 379@
gosub @POOL2_49954
if 
  553@ == 1
goto_if_false @POOL2_43808
set_lvar_float_to_lvar_float 369@ = 378@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_43808
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_44195
if 
  129@ == 1
goto_if_false @POOL2_43989
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 2 DATA = "

:POOL2_43989
set_lvar_float_to_lvar_float 379@ = 101@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_44195
set_lvar_int_to_lvar_int 549@ = 82@
set_lvar_int_to_lvar_int 550@ = 82@(366@,16i)
set_lvar_float_to_lvar_float 551@ = 378@
set_lvar_float_to_lvar_float 552@ = 379@
gosub @POOL2_49954
if 
  553@ == 1
goto_if_false @POOL2_44195
set_lvar_float_to_lvar_float 369@ = 378@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_44195
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_44608
if 
  129@ == 1
goto_if_false @POOL2_44376
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 3 DATA = "

:POOL2_44376
set_lvar_float_to_lvar_float 379@ = 373@
add_float_lvar_to_float_lvar 379@ += 376@
379@ /= 2.0
set_lvar_float_to_lvar_float 378@ = 98@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_44608
set_lvar_int_to_lvar_int 549@ = 82@
set_lvar_int_to_lvar_int 550@ = 82@(366@,16i)
set_lvar_float_to_lvar_float 551@ = 378@
set_lvar_float_to_lvar_float 552@ = 379@
gosub @POOL2_49954
if 
  553@ == 1
goto_if_false @POOL2_44608
set_lvar_float_to_lvar_float 369@ = 378@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_44608
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_44995
if 
  129@ == 1
goto_if_false @POOL2_44789
save_newline_to_debug_file 
save_string_to_debug_file "  CUSHION 4 DATA = "

:POOL2_44789
set_lvar_float_to_lvar_float 378@ = 99@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_44995
set_lvar_int_to_lvar_int 549@ = 82@
set_lvar_int_to_lvar_int 550@ = 82@(366@,16i)
set_lvar_float_to_lvar_float 551@ = 378@
set_lvar_float_to_lvar_float 552@ = 379@
gosub @POOL2_49954
if 
  553@ == 1
goto_if_false @POOL2_44995
set_lvar_float_to_lvar_float 369@ = 378@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 3.0 {max} 6.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_44995
366@ += 1
goto @POOL2_43169

:POOL2_45009
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_46481
if 
  129@ == 1
goto_if_false @POOL2_45190
save_newline_to_debug_file 
save_string_to_debug_file "SNOOKER - BOUNCE 2"

:POOL2_45190
366@ = 1

:POOL2_45197
if 
  16 > 366@
goto_if_false @POOL2_46481
wait 0
if 
  does_object_exist 82@(366@,16i)
goto_if_false @POOL2_46467
if 
  66@(366@,16i) == 0
goto_if_false @POOL2_46467
if 
  366@ == 0
goto_if_false @POOL2_45293
368@ = 3
goto @POOL2_45364

:POOL2_45293
if 
  8 > 366@
goto_if_false @POOL2_45325
368@ = 0
goto @POOL2_45364

:POOL2_45325
if 
  366@ == 8
goto_if_false @POOL2_45357
368@ = 2
goto @POOL2_45364

:POOL2_45357
368@ = 1

:POOL2_45364
if or
  is_int_lvar_equal_to_int_lvar 368@ == 231@
  231@ == -1
goto_if_false @POOL2_46467
if and
  231@ == -1
  368@ == 2
goto_if_false @POOL2_45422
goto @POOL2_46467

:POOL2_45422
372@, 373@, 374@ = get_object_coordinates 82@
375@, 376@, 377@ = get_object_coordinates 82@(366@,16i)
set_lvar_float_to_lvar_float 378@ = 372@
add_float_lvar_to_float_lvar 378@ += 375@
378@ /= 2.0
set_lvar_float_to_lvar_float 379@ = 100@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_45697
set_lvar_int_to_lvar_int 554@ = 82@
set_lvar_float_to_lvar_float 555@ = 378@
set_lvar_float_to_lvar_float 556@ = 379@
gosub @POOL2_50474
if 
  557@ == 1
goto_if_false @POOL2_45697
set_lvar_float_to_lvar_float 369@ = 378@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 369@ += 42@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_45697
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_45945
set_lvar_float_to_lvar_float 379@ = 101@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_45945
set_lvar_int_to_lvar_int 554@ = 82@
set_lvar_float_to_lvar_float 555@ = 378@
set_lvar_float_to_lvar_float 556@ = 379@
gosub @POOL2_50474
if 
  557@ == 1
goto_if_false @POOL2_45945
set_lvar_float_to_lvar_float 369@ = 378@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 369@ += 42@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_45945
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_46219
set_lvar_float_to_lvar_float 379@ = 373@
add_float_lvar_to_float_lvar 379@ += 376@
379@ /= 2.0
set_lvar_float_to_lvar_float 378@ = 98@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_46219
set_lvar_int_to_lvar_int 554@ = 82@
set_lvar_float_to_lvar_float 555@ = 378@
set_lvar_float_to_lvar_float 556@ = 379@
gosub @POOL2_50474
if 
  557@ == 1
goto_if_false @POOL2_46219
set_lvar_float_to_lvar_float 369@ = 378@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 370@ += 42@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_46219
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_46467
set_lvar_float_to_lvar_float 378@ = 99@
set_lvar_float_to_lvar_float 543@ = 378@
set_lvar_float_to_lvar_float 544@ = 379@
gosub @POOL2_49698
if 
  545@ == 0
goto_if_false @POOL2_46467
set_lvar_int_to_lvar_int 554@ = 82@
set_lvar_float_to_lvar_float 555@ = 378@
set_lvar_float_to_lvar_float 556@ = 379@
gosub @POOL2_50474
if 
  557@ == 1
goto_if_false @POOL2_46467
set_lvar_float_to_lvar_float 369@ = 378@
set_lvar_float_to_lvar_float 370@ = 379@
42@ = generate_random_float_in_range -0.05 {max} 0.05
add_float_lvar_to_float_lvar 370@ += 42@
42@ = get_distance_between_coords_2d 372@ {fromY} 373@ {toX} 378@ {toZ} 379@
43@ = get_distance_between_coords_2d 375@ {fromY} 376@ {toX} 378@ {toZ} 379@
set_lvar_float_to_lvar_float 371@ = 42@
add_float_lvar_to_float_lvar 371@ += 43@
42@ = generate_random_float_in_range 5.0 {max} 8.0
mult_float_lvar_by_float_lvar 371@ *= 42@
366@ = 16

:POOL2_46467
366@ += 1
goto @POOL2_45197

:POOL2_46481
if and
  369@ == 99999.8984
  370@ == 99999.8984
goto_if_false @POOL2_46712
if 
  129@ == 1
goto_if_false @POOL2_46662
save_newline_to_debug_file 
save_string_to_debug_file "SNOOKER - LAST RESORT"

:POOL2_46662
363@ = generate_random_float_in_range 0.0 {max} 360.0
364@ = generate_random_float_in_range 4.0 {max} 8.0
369@ = 0.0
370@ = 0.0

:POOL2_46712
if and
  363@ == 99999.8984
  364@ == 99999.8984
goto_if_false @POOL2_46875
372@, 373@, 374@ = get_object_coordinates 82@
set_lvar_float_to_lvar_float 375@ = 369@
sub_float_lvar_from_float_lvar 375@ -= 372@
set_lvar_float_to_lvar_float 376@ = 370@
sub_float_lvar_from_float_lvar 376@ -= 373@
363@ = get_heading_from_vector_2d 375@ {y} 376@
set_lvar_float_to_lvar_float 364@ = 371@
364@ *= 1.0
if 
  90.0 > 365@
goto_if_false @POOL2_46875
set_lvar_float_to_lvar_float 42@ = 365@
42@ /= 90.0
42@ *= 2.0
add_float_lvar_to_float_lvar 364@ += 42@

:POOL2_46875
if 
  0.7 > 364@
goto_if_false @POOL2_46906
364@ = 0.7

:POOL2_46906
if 
  364@ > 4.0
goto_if_false @POOL2_46937
364@ = 4.0

:POOL2_46937
return 

:POOL2_46939
goto @POOL2_46990
481@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
482@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:POOL2_46990
485@ = 1
504@ = -1
if 
  does_object_exist 481@
goto_if_false @POOL2_47083
487@, 488@, $z = get_object_coordinates 481@
set_lvar_float_to_lvar_float 491@ = 483@
sub_float_lvar_from_float_lvar 491@ -= 487@
set_lvar_float_to_lvar_float 492@ = 484@
sub_float_lvar_from_float_lvar 492@ -= 488@
497@ = get_distance_between_coords_2d 487@ {fromY} 488@ {toX} 483@ {toZ} 484@

:POOL2_47083
wait 0
if or
  231@ == -1
  231@ == 2
  231@ == 1
goto_if_false @POOL2_47172
501@ = 1

:POOL2_47126
if 
  16 > 501@
goto_if_false @POOL2_47165
gosub @POOL2_47267
501@ += 1
goto @POOL2_47126

:POOL2_47165
goto @POOL2_47258

:POOL2_47172
503@ = 1

:POOL2_47179
if 
  16 > 503@
goto_if_false @POOL2_47258
set_lvar_int_to_lvar_int 501@ = 503@
501@ += 7
if 
  501@ > 15
goto_if_false @POOL2_47237
501@ += -15

:POOL2_47237
gosub @POOL2_47267
503@ += 1
goto @POOL2_47179

:POOL2_47258
482@ = 0
return 

:POOL2_47267
if 
  does_object_exist 82@(501@,16i)
goto_if_false @POOL2_48187
if 
  66@(501@,16i) == 0
goto_if_false @POOL2_48187
if 
  not is_int_lvar_equal_to_int_lvar 82@(501@,16i) == 481@
goto_if_false @POOL2_48187
502@ = 0
if 
  does_object_exist 482@
goto_if_false @POOL2_47385
if 
  is_int_lvar_equal_to_int_lvar 82@(501@,16i) == 482@
goto_if_false @POOL2_47385
502@ = 1

:POOL2_47385
if 
  502@ == 0
goto_if_false @POOL2_48187
489@, 490@, $z = get_object_coordinates 82@(501@,16i)
set_lvar_float_to_lvar_float 493@ = 489@
sub_float_lvar_from_float_lvar 493@ -= 487@
set_lvar_float_to_lvar_float 494@ = 490@
sub_float_lvar_from_float_lvar 494@ -= 488@
498@ = get_distance_between_coords_2d 487@ {fromY} 488@ {toX} 489@ {toZ} 490@
42@ = get_angle_between_2d_vectors 491@ {y1} 492@ {x2} 493@ {y2} 494@
499@ = get_distance_between_coords_2d 489@ {fromY} 490@ {toX} 483@ {toZ} 484@
if 
  is_float_lvar_greater_than_float_lvar 53@ > 499@
goto_if_false @POOL2_47817
if 
  501@ == 0
goto_if_false @POOL2_47555
486@ = 3
goto @POOL2_47626

:POOL2_47555
if 
  8 > 501@
goto_if_false @POOL2_47587
486@ = 0
goto @POOL2_47626

:POOL2_47587
if 
  501@ == 8
goto_if_false @POOL2_47619
486@ = 2
goto @POOL2_47626

:POOL2_47619
486@ = 1

:POOL2_47626
if 
  129@ == 1
goto_if_false @POOL2_47781
save_newline_to_debug_file 
save_string_to_debug_file "    BALL OBSTRUCTING PATH (TOO CLOSE TO TARGET DESTINATION) = "
save_int_to_debug_file 501@

:POOL2_47781
set_lvar_int_to_lvar_int 504@ = 501@
485@ = 0
501@ = 16
503@ = 16
goto @POOL2_48187

:POOL2_47817
if 
  90.0 >= 42@
goto_if_false @POOL2_48187
if 
  is_float_lvar_greater_than_float_lvar 497@ > 498@
goto_if_false @POOL2_48187
500@ = sin 42@
set_lvar_float_to_lvar_float 42@ = 500@
mult_float_lvar_by_float_lvar 42@ *= 498@
if 
  is_float_lvar_greater_than_float_lvar 53@ > 42@
goto_if_false @POOL2_48187
if 
  501@ == 0
goto_if_false @POOL2_47932
486@ = 3
goto @POOL2_48003

:POOL2_47932
if 
  8 > 501@
goto_if_false @POOL2_47964
486@ = 0
goto @POOL2_48003

:POOL2_47964
if 
  501@ == 8
goto_if_false @POOL2_47996
486@ = 2
goto @POOL2_48003

:POOL2_47996
486@ = 1

:POOL2_48003
if 
  129@ == 1
goto_if_false @POOL2_48158
save_newline_to_debug_file 
save_string_to_debug_file "    BALL OBSTRUCTING PATH (OVERLAPPING PATH) = "
save_int_to_debug_file 501@

:POOL2_48158
set_lvar_int_to_lvar_int 504@ = 501@
485@ = 0
501@ = 16
503@ = 16

:POOL2_48187
return 

:POOL2_48189
485@ = 1
504@ = -1
set_lvar_float_to_lvar_float 491@ = 483@
sub_float_lvar_from_float_lvar 491@ -= 487@
set_lvar_float_to_lvar_float 492@ = 484@
sub_float_lvar_from_float_lvar 492@ -= 488@
if or
  is_float_lvar_greater_than_float_lvar 98@ > 483@
  is_float_lvar_greater_than_float_lvar 483@ > 99@
  is_float_lvar_greater_than_float_lvar 100@ > 484@
  is_float_lvar_greater_than_float_lvar 484@ > 101@
goto_if_false @POOL2_48750
505@ = -99999.8984
506@ = -99999.8984
39@ = 0
if and
  505@, 506@ = get_2d_lines_intersect_point 487@ {line1StartY} 488@ {line1EndX} 483@ {line1EndY} 484@ {line2StartX} 98@ {line2StartY} 100@ {line2EndX} 98@ {line2EndY} 101@
  515@ <> 1
goto_if_false @POOL2_48369
39@ = 1
goto @POOL2_48554

:POOL2_48369
if and
  505@, 506@ = get_2d_lines_intersect_point 487@ {line1StartY} 488@ {line1EndX} 483@ {line1EndY} 484@ {line2StartX} 99@ {line2StartY} 100@ {line2EndX} 99@ {line2EndY} 101@
  515@ <> 2
goto_if_false @POOL2_48433
39@ = 2
goto @POOL2_48554

:POOL2_48433
if and
  505@, 506@ = get_2d_lines_intersect_point 487@ {line1StartY} 488@ {line1EndX} 483@ {line1EndY} 484@ {line2StartX} 98@ {line2StartY} 100@ {line2EndX} 99@ {line2EndY} 100@
  515@ <> 3
goto_if_false @POOL2_48497
39@ = 3
goto @POOL2_48554

:POOL2_48497
if and
  505@, 506@ = get_2d_lines_intersect_point 487@ {line1StartY} 488@ {line1EndX} 483@ {line1EndY} 484@ {line2StartX} 98@ {line2StartY} 101@ {line2EndX} 99@ {line2EndY} 101@
  515@ <> 4
goto_if_false @POOL2_48554
39@ = 4

:POOL2_48554
42@ = get_distance_between_coords_2d 483@ {fromY} 484@ {toX} 487@ {toZ} 488@
if 
  42@ > 0.0
goto_if_false @POOL2_48608
div_float_lvar_by_float_lvar 491@ /= 42@
div_float_lvar_by_float_lvar 492@ /= 42@

:POOL2_48608
if or
  39@ == 1
  39@ == 2
goto_if_false @POOL2_48659
set_lvar_float_to_lvar_float 507@ = 491@
507@ *= -1.0
set_lvar_float_to_lvar_float 508@ = 492@

:POOL2_48659
if or
  39@ == 3
  39@ == 4
goto_if_false @POOL2_48710
set_lvar_float_to_lvar_float 507@ = 491@
set_lvar_float_to_lvar_float 508@ = 492@
508@ *= -1.0

:POOL2_48710
if 
  39@ <> 0
goto_if_false @POOL2_48736
set_lvar_int_to_lvar_int 515@ = 39@

:POOL2_48736
485@ = 0
goto @POOL2_48773

:POOL2_48750
set_lvar_float_to_lvar_float 505@ = 483@
set_lvar_float_to_lvar_float 506@ = 484@
485@ = 1

:POOL2_48773
return 

:POOL2_48775
if 
  does_object_exist 516@
goto_if_false @POOL2_48845
526@, 527@, $z = get_object_coordinates 516@
set_lvar_float_to_lvar_float 520@ = 54@(517@,6f)
sub_float_lvar_from_float_lvar 520@ -= 526@
set_lvar_float_to_lvar_float 521@ = 60@(517@,6f)
sub_float_lvar_from_float_lvar 521@ -= 527@

:POOL2_48845
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 54@(517@,6f) {toZ} 60@(517@,6f)
set_lvar_float_to_lvar_float 522@ = 520@
div_float_lvar_by_float_lvar 522@ /= 42@
set_lvar_float_to_lvar_float 523@ = 521@
div_float_lvar_by_float_lvar 523@ /= 42@
522@ *= -1.0
523@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
mult_float_lvar_by_float_lvar 522@ *= 42@
mult_float_lvar_by_float_lvar 523@ *= 42@
add_float_lvar_to_float_lvar 526@ += 522@
add_float_lvar_to_float_lvar 527@ += 523@
if 
  does_object_exist 82@
goto_if_false @POOL2_49034
$x, $y, $z = get_object_coordinates 82@
set_lvar_float_to_lvar_float 524@ = 526@
sub_float_var_from_float_lvar 524@ -= $x
set_lvar_float_to_lvar_float 525@ = 527@
sub_float_var_from_float_lvar 525@ -= $y

:POOL2_49034
519@ = get_angle_between_2d_vectors 520@ {y1} 521@ {x2} 524@ {y2} 525@
if 
  90.0 > 519@
goto_if_false @POOL2_49086
518@ = 1
goto @POOL2_49093

:POOL2_49086
518@ = 0

:POOL2_49093
return 

:POOL2_49095
530@ = 0
531@ = 0
532@ = 0
if and
  does_object_exist 528@
  does_object_exist 529@
goto_if_false @POOL2_49696
$x, $y, $z = get_object_coordinates 528@
537@, 538@, $z = get_object_coordinates 529@
set_lvar_float_to_lvar_float 533@ = 537@
sub_float_var_from_float_lvar 533@ -= $x
set_lvar_float_to_lvar_float 534@ = 538@
sub_float_var_from_float_lvar 534@ -= $y
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 537@ {toZ} 538@
div_float_lvar_by_float_lvar 533@ /= 42@
div_float_lvar_by_float_lvar 534@ /= 42@
set_lvar_float_to_lvar_float 535@ = 534@
set_lvar_float_to_lvar_float 536@ = 533@
536@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= 0.8
set_lvar_float_to_lvar_float 43@ = 535@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 539@ = 537@
add_float_lvar_to_float_lvar 539@ += 43@
set_lvar_float_to_lvar_float 43@ = 536@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 540@ = 538@
add_float_lvar_to_float_lvar 540@ += 43@
set_lvar_int_to_lvar_int 481@ = 528@
set_lvar_int_to_lvar_int 482@ = 529@
set_lvar_float_to_lvar_float 483@ = 539@
set_lvar_float_to_lvar_float 484@ = 540@
gosub @POOL2_46939
if 
  485@ == 1
goto_if_false @POOL2_49412
531@ = 1

:POOL2_49412
set_lvar_float_to_lvar_float 42@ = 52@
42@ *= 2.0
42@ *= -0.8
set_lvar_float_to_lvar_float 43@ = 535@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 541@ = 537@
add_float_lvar_to_float_lvar 541@ += 43@
set_lvar_float_to_lvar_float 43@ = 536@
mult_float_lvar_by_float_lvar 43@ *= 42@
set_lvar_float_to_lvar_float 542@ = 538@
add_float_lvar_to_float_lvar 542@ += 43@
set_lvar_int_to_lvar_int 481@ = 528@
set_lvar_int_to_lvar_int 482@ = 529@
set_lvar_float_to_lvar_float 483@ = 541@
set_lvar_float_to_lvar_float 484@ = 542@
gosub @POOL2_46939
if 
  485@ == 1
goto_if_false @POOL2_49568
532@ = 1

:POOL2_49568
if and
  531@ == 0
  532@ == 0
goto_if_false @POOL2_49600
530@ = 0

:POOL2_49600
if and
  531@ == 1
  532@ == 0
goto_if_false @POOL2_49632
530@ = 1

:POOL2_49632
if and
  531@ == 0
  532@ == 1
goto_if_false @POOL2_49664
530@ = 2

:POOL2_49664
if and
  531@ == 1
  532@ == 1
goto_if_false @POOL2_49696
530@ = 3

:POOL2_49696
return 

:POOL2_49698
545@ = 0
547@ = 2.5
mult_float_lvar_by_float_lvar 547@ *= 52@
548@ = 0

:POOL2_49730
if 
  6 > 548@
goto_if_false @POOL2_49952
546@ = get_distance_between_coords_2d 543@ {fromY} 544@ {toX} 54@(548@,6f) {toZ} 60@(548@,6f)
if 
  is_float_lvar_greater_than_float_lvar 547@ > 546@
goto_if_false @POOL2_49938
save_newline_to_debug_file 
save_string_to_debug_file "    POINT LIES ON POCKET"
545@ = 1
548@ = 6

:POOL2_49938
548@ += 1
goto @POOL2_49730

:POOL2_49952
return 

:POOL2_49954
553@ = 0
save_newline_to_debug_file 
save_string_to_debug_file "       BOUNCE_SHOT_PATH_CLEAR DATA = "
set_lvar_int_to_lvar_int 481@ = 549@
482@ = 0
set_lvar_float_to_lvar_float 483@ = 551@
set_lvar_float_to_lvar_float 484@ = 552@
gosub @POOL2_46939
if 
  485@ == 1
goto_if_false @POOL2_50472
save_string_to_debug_file "1ST PATH CLEAR "
set_lvar_int_to_lvar_int 481@ = 550@
482@ = 0
set_lvar_float_to_lvar_float 483@ = 551@
set_lvar_float_to_lvar_float 484@ = 552@
gosub @POOL2_46939
if 
  485@ == 1
goto_if_false @POOL2_50472
save_string_to_debug_file "2ND PATH CLEAR "
553@ = 1

:POOL2_50472
return 

:POOL2_50474
557@ = 0
set_lvar_int_to_lvar_int 481@ = 549@
482@ = 0
set_lvar_float_to_lvar_float 483@ = 551@
set_lvar_float_to_lvar_float 484@ = 552@
gosub @POOL2_46939
if 
  485@ == 1
goto_if_false @POOL2_50544
557@ = 1

:POOL2_50544
return 

:POOL2_50546
set_lvar_float_to_lvar_float 565@ = 52@
565@ *= 2.0
set_lvar_float_to_lvar_float 562@ = 52@
562@ *= -1.0
set_lvar_float_to_lvar_float 566@ = 565@
566@ *= -1.0
set_lvar_float_to_lvar_float 42@ = 565@
mult_float_lvar_by_float_lvar 42@ *= 565@
set_lvar_float_to_lvar_float 43@ = 52@
mult_float_lvar_by_float_lvar 43@ *= 52@
set_lvar_float_to_lvar_float 563@ = 42@
sub_float_lvar_from_float_lvar 563@ -= 43@
563@ = sqrt 563@
set_lvar_float_to_lvar_float 564@ = 563@
564@ *= -1.0
567@ = 1

:POOL2_50681
if 
  15 > 567@
goto_if_false @POOL2_50724
freeze_object_position 82@(567@,16i) {state} False
567@ += 1
goto @POOL2_50681

:POOL2_50724
set_object_coordinates 83@ {x} 558@ {y} 559@ {z} 560@
set_object_heading 83@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 83@ {xOffset} 562@ {yOffset} 564@ {zOffset} 0.0
set_object_coordinates 91@ {x} $x {y} $y {z} $z
set_object_heading 91@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 91@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 85@ {x} $x {y} $y {z} $z
set_object_heading 85@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 91@ {xOffset} 562@ {yOffset} 564@ {zOffset} 0.0
set_object_coordinates 89@ {x} $x {y} $y {z} $z
set_object_heading 89@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 89@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 90@ {x} $x {y} $y {z} $z
set_object_heading 90@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 90@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 92@ {x} $x {y} $y {z} $z
set_object_heading 92@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 89@ {xOffset} 562@ {yOffset} 564@ {zOffset} 0.0
set_object_coordinates 93@ {x} $x {y} $y {z} $z
set_object_heading 93@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 93@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 84@ {x} $x {y} $y {z} $z
set_object_heading 84@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 84@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 97@ {x} $x {y} $y {z} $z
set_object_heading 97@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 97@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 87@ {x} $x {y} $y {z} $z
set_object_heading 87@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 93@ {xOffset} 562@ {yOffset} 564@ {zOffset} 0.0
set_object_coordinates 88@ {x} $x {y} $y {z} $z
set_object_heading 88@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 88@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 94@ {x} $x {y} $y {z} $z
set_object_heading 94@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 94@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 95@ {x} $x {y} $y {z} $z
set_object_heading 95@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 95@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 86@ {x} $x {y} $y {z} $z
set_object_heading 86@ {heading} 561@
$x, $y, $z = get_offset_from_object_in_world_coords 86@ {xOffset} 565@ {yOffset} 0.0 {zOffset} 0.0
set_object_coordinates 96@ {x} $x {y} $y {z} $z
set_object_heading 96@ {heading} 561@
return 

:POOL2_51426
602@ = -0.96
603@ = 0.49
604@ = 0.97
605@ = 0.49
606@ = 0.97
607@ = -0.49
608@ = -0.96
609@ = -0.49
571@, 572@, 573@ = get_offset_from_object_in_world_coords 82@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 0.0
574@, 575@, 576@ = get_object_coordinates 82@
$z = get_ground_z_for_3d_coord 574@ {y} 575@ {z} 576@
577@, 578@, 579@ = get_offset_from_object_in_world_coords 163@ {xOffset} 602@ {yOffset} 603@ {zOffset} 0.0
580@, 581@, 582@ = get_offset_from_object_in_world_coords 163@ {xOffset} 604@ {yOffset} 605@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 571@ {line1StartY} 572@ {line1EndX} 574@ {line1EndY} 575@ {line2StartX} 577@ {line2StartY} 578@ {line2EndX} 580@ {line2EndY} 581@
goto_if_false @POOL2_51712
set_lvar_float_to_var_float 585@ = $x
set_lvar_float_to_var_float 589@ = $y
set_lvar_float_to_var_float 593@ = $z
set_lvar_float_to_lvar_float 616@ = 604@
sub_float_lvar_from_float_lvar 616@ -= 602@
set_lvar_float_to_lvar_float 617@ = 605@
sub_float_lvar_from_float_lvar 617@ -= 603@

:POOL2_51712
577@, 578@, 579@ = get_offset_from_object_in_world_coords 163@ {xOffset} 606@ {yOffset} 607@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 571@ {line1StartY} 572@ {line1EndX} 574@ {line1EndY} 575@ {line2StartX} 577@ {line2StartY} 578@ {line2EndX} 580@ {line2EndY} 581@
goto_if_false @POOL2_51836
set_lvar_float_to_var_float 585@ = $x
set_lvar_float_to_var_float 589@ = $y
set_lvar_float_to_var_float 593@ = $z
set_lvar_float_to_lvar_float 616@ = 606@
sub_float_lvar_from_float_lvar 616@ -= 604@
set_lvar_float_to_lvar_float 617@ = 607@
sub_float_lvar_from_float_lvar 617@ -= 605@

:POOL2_51836
580@, 581@, 582@ = get_offset_from_object_in_world_coords 163@ {xOffset} 608@ {yOffset} 609@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 571@ {line1StartY} 572@ {line1EndX} 574@ {line1EndY} 575@ {line2StartX} 577@ {line2StartY} 578@ {line2EndX} 580@ {line2EndY} 581@
goto_if_false @POOL2_51960
set_lvar_float_to_var_float 585@ = $x
set_lvar_float_to_var_float 589@ = $y
set_lvar_float_to_var_float 593@ = $z
set_lvar_float_to_lvar_float 616@ = 608@
sub_float_lvar_from_float_lvar 616@ -= 606@
set_lvar_float_to_lvar_float 617@ = 609@
sub_float_lvar_from_float_lvar 617@ -= 607@

:POOL2_51960
577@, 578@, 579@ = get_offset_from_object_in_world_coords 163@ {xOffset} 602@ {yOffset} 603@ {zOffset} 0.0
if 
  $x, $y = get_2d_lines_intersect_point 571@ {line1StartY} 572@ {line1EndX} 574@ {line1EndY} 575@ {line2StartX} 577@ {line2StartY} 578@ {line2EndX} 580@ {line2EndY} 581@
goto_if_false @POOL2_52084
set_lvar_float_to_var_float 585@ = $x
set_lvar_float_to_var_float 589@ = $y
set_lvar_float_to_var_float 593@ = $z
set_lvar_float_to_lvar_float 616@ = 602@
sub_float_lvar_from_float_lvar 616@ -= 608@
set_lvar_float_to_lvar_float 617@ = 603@
sub_float_lvar_from_float_lvar 617@ -= 609@

:POOL2_52084
set_lvar_float_to_lvar_float 614@ = 574@
sub_float_lvar_from_float_lvar 614@ -= 571@
set_lvar_float_to_lvar_float 615@ = 575@
sub_float_lvar_from_float_lvar 615@ -= 572@
613@ = get_angle_between_2d_vectors 614@ {y1} 615@ {x2} 616@ {y2} 617@
if 
  613@ > 90.0
goto_if_false @POOL2_52174
613@ += -180.0
613@ *= -1.0

:POOL2_52174
set_lvar_float_to_lvar_float 169@ = 574@
sub_float_lvar_from_float_lvar 169@ -= 585@
set_lvar_float_to_lvar_float 170@ = 575@
sub_float_lvar_from_float_lvar 170@ -= 589@
set_lvar_float_to_lvar_float 171@ = 576@
sub_float_lvar_from_float_lvar 171@ -= 593@
597@ = get_heading_from_vector_2d 169@ {y} 170@
set_lvar_float_to_lvar_float 595@ = 597@
set_lvar_float_to_lvar_float 596@ = 597@
set_lvar_float_to_lvar_float 598@ = 597@
set_lvar_float_to_lvar_float 594@ = 593@
set_lvar_float_to_lvar_float 591@ = 593@
set_lvar_float_to_lvar_float 592@ = 593@
599@ = get_distance_between_coords_2d 574@ {fromY} 575@ {toX} 585@ {toZ} 589@
div_float_lvar_by_float_lvar 169@ /= 599@
div_float_lvar_by_float_lvar 170@ /= 599@
set_var_float_to_lvar_float $x = 169@
$x *= 3.0
set_var_float_to_lvar_float $y = 170@
$y *= 3.0
set_lvar_float_to_lvar_float 583@ = 585@
sub_float_var_from_float_lvar 583@ -= $x
set_lvar_float_to_lvar_float 587@ = 589@
sub_float_var_from_float_lvar 587@ -= $y
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 610@ = 585@
sub_float_var_from_float_lvar 610@ -= $x
set_lvar_float_to_lvar_float 611@ = 589@
sub_float_var_from_float_lvar 611@ -= $y
set_lvar_float_to_lvar_float 612@ = 593@
if 
  0.25 > 599@
goto_if_false @POOL2_52493
600@ = 1
goto @POOL2_52570

:POOL2_52493
if 
  0.65 > 599@
goto_if_false @POOL2_52528
600@ = 2
goto @POOL2_52570

:POOL2_52528
if 
  1.1 > 599@
goto_if_false @POOL2_52563
600@ = 3
goto @POOL2_52570

:POOL2_52563
600@ = 4

:POOL2_52570
if 
  613@ > 70.0
goto_if_false @POOL2_52623
600@ += 1
if 
  600@ > 4
goto_if_false @POOL2_52623
600@ = 4

:POOL2_52623
if 
  600@ == 1
goto_if_false @POOL2_52709
set_var_float_to_lvar_float $x = 169@
$x *= 0.615
set_var_float_to_lvar_float $y = 170@
$y *= 0.615
set_lvar_float_to_lvar_float 584@ = 574@
sub_float_var_from_float_lvar 584@ -= $x
set_lvar_float_to_lvar_float 588@ = 575@
sub_float_var_from_float_lvar 588@ -= $y

:POOL2_52709
if 
  600@ == 2
goto_if_false @POOL2_52795
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 584@ = 574@
sub_float_var_from_float_lvar 584@ -= $x
set_lvar_float_to_lvar_float 588@ = 575@
sub_float_var_from_float_lvar 588@ -= $y

:POOL2_52795
if 
  600@ == 3
goto_if_false @POOL2_52881
set_var_float_to_lvar_float $x = 169@
$x *= 1.6
set_var_float_to_lvar_float $y = 170@
$y *= 1.6
set_lvar_float_to_lvar_float 584@ = 574@
sub_float_var_from_float_lvar 584@ -= $x
set_lvar_float_to_lvar_float 588@ = 575@
sub_float_var_from_float_lvar 588@ -= $y

:POOL2_52881
if 
  600@ == 4
goto_if_false @POOL2_52967
set_var_float_to_lvar_float $x = 169@
$x *= 2.1
set_var_float_to_lvar_float $y = 170@
$y *= 2.1
set_lvar_float_to_lvar_float 584@ = 574@
sub_float_var_from_float_lvar 584@ -= $x
set_lvar_float_to_lvar_float 588@ = 575@
sub_float_var_from_float_lvar 588@ -= $y

:POOL2_52967
$distance = get_distance_between_coords_2d 574@ {fromY} 575@ {toX} 584@ {toZ} 588@
set_lvar_float_to_lvar_float 42@ = 599@
42@ += 0.3
if 
  is_float_lvar_greater_than_float_var 42@ > $distance
goto_if_false @POOL2_53103
set_lvar_float_to_lvar_float 42@ = 599@
42@ += 0.3
set_var_float_to_lvar_float $x = 169@
mult_float_var_by_float_lvar $x *= 42@
set_var_float_to_lvar_float $y = 170@
mult_float_var_by_float_lvar $y *= 42@
set_lvar_float_to_lvar_float 584@ = 574@
sub_float_var_from_float_lvar 584@ -= $x
set_lvar_float_to_lvar_float 588@ = 575@
sub_float_var_from_float_lvar 588@ -= $y

:POOL2_53103
if 
  600@ == 1
goto_if_false @POOL2_53189
set_var_float_to_lvar_float $x = 169@
$x *= 0.655
set_var_float_to_lvar_float $y = 170@
$y *= 0.655
set_lvar_float_to_lvar_float 586@ = 574@
sub_float_var_from_float_lvar 586@ -= $x
set_lvar_float_to_lvar_float 590@ = 575@
sub_float_var_from_float_lvar 590@ -= $y

:POOL2_53189
if 
  600@ == 2
goto_if_false @POOL2_53275
set_var_float_to_lvar_float $x = 169@
$x *= 1.0
set_var_float_to_lvar_float $y = 170@
$y *= 1.0
set_lvar_float_to_lvar_float 586@ = 574@
sub_float_var_from_float_lvar 586@ -= $x
set_lvar_float_to_lvar_float 590@ = 575@
sub_float_var_from_float_lvar 590@ -= $y

:POOL2_53275
if 
  600@ == 3
goto_if_false @POOL2_53361
set_var_float_to_lvar_float $x = 169@
$x *= 1.6
set_var_float_to_lvar_float $y = 170@
$y *= 1.6
set_lvar_float_to_lvar_float 586@ = 574@
sub_float_var_from_float_lvar 586@ -= $x
set_lvar_float_to_lvar_float 590@ = 575@
sub_float_var_from_float_lvar 590@ -= $y

:POOL2_53361
if 
  600@ == 4
goto_if_false @POOL2_53447
set_var_float_to_lvar_float $x = 169@
$x *= 2.1
set_var_float_to_lvar_float $y = 170@
$y *= 2.1
set_lvar_float_to_lvar_float 586@ = 574@
sub_float_var_from_float_lvar 586@ -= $x
set_lvar_float_to_lvar_float 590@ = 575@
sub_float_var_from_float_lvar 590@ -= $y

:POOL2_53447
return 

:POOL2_53449
draw_sprite 1 {offsetLeft} 618@ {offsetTop} 619@ {width} 620@ {height} 621@ {r} 128 {g} 128 {b} 128 {a} 255
draw_sprite 2 {offsetLeft} 622@ {offsetTop} 623@ {width} 624@ {height} 625@ {r} 128 {g} 128 {b} 128 {a} 255
if or
  is_button_pressed 180@ {buttonId} Button.LeftStickY
  is_button_pressed 180@ {buttonId} Button.LeftStickX
goto_if_false @POOL2_54000
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks 180@
cset_var_float_to_var_int $x =# $LStickX
cset_var_float_to_var_int $y =# $LStickY
$x /= 128.0
$y /= 128.0
$x *= 5.0
$y *= 5.0
set_lvar_float_to_lvar_float 42@ = 622@
add_float_var_to_float_lvar 42@ += $x
set_lvar_float_to_lvar_float 44@ = 620@
44@ /= 2.0
set_lvar_float_to_lvar_float 43@ = 618@
add_float_lvar_to_float_lvar 43@ += 44@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @POOL2_53715
set_lvar_float_to_lvar_float 43@ = 618@
sub_float_lvar_from_float_lvar 43@ -= 44@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_53715
set_var_float_to_lvar_float $x = 42@

:POOL2_53715
set_lvar_float_to_lvar_float 42@ = 623@
add_float_var_to_float_lvar 42@ += $y
set_lvar_float_to_lvar_float 44@ = 621@
44@ /= 2.0
set_lvar_float_to_lvar_float 43@ = 619@
add_float_lvar_to_float_lvar 43@ += 44@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @POOL2_53827
set_lvar_float_to_lvar_float 43@ = 619@
sub_float_lvar_from_float_lvar 43@ -= 44@
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_53827
set_var_float_to_lvar_float $y = 42@

:POOL2_53827
42@ = get_distance_between_coords_2d $x {fromY} $y {toX} 618@ {toZ} 619@
set_lvar_float_to_lvar_float 43@ = 620@
43@ /= 3.2
if 
  is_float_lvar_greater_than_float_lvar 42@ > 43@
goto_if_false @POOL2_53984
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 618@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 619@
div_float_lvar_by_float_lvar 169@ /= 42@
div_float_lvar_by_float_lvar 170@ /= 42@
mult_float_lvar_by_float_lvar 169@ *= 43@
mult_float_lvar_by_float_lvar 170@ *= 43@
set_lvar_float_to_lvar_float 622@ = 618@
add_float_lvar_to_float_lvar 622@ += 169@
set_lvar_float_to_lvar_float 623@ = 619@
add_float_lvar_to_float_lvar 623@ += 170@
goto @POOL2_54000

:POOL2_53984
set_lvar_float_to_var_float 622@ = $x
set_lvar_float_to_var_float 623@ = $y

:POOL2_54000
return 

:POOL2_54002
set_lvar_float_to_lvar_float 631@ = 52@
631@ *= 2.0
629@ = 1

:POOL2_54027
if 
  16 > 629@
goto_if_false @POOL2_54229
if 
  does_object_exist 82@(629@,16i)
goto_if_false @POOL2_54215
$x, $y, $z = get_object_coordinates 82@(629@,16i)
630@ = get_distance_between_coords_2d $x {fromY} $y {toX} 627@ {toZ} 628@
if 
  is_float_lvar_greater_than_float_lvar 631@ > 630@
goto_if_false @POOL2_54215
set_lvar_float_to_lvar_float 632@ = 627@
sub_float_var_from_float_lvar 632@ -= $x
set_lvar_float_to_lvar_float 633@ = 628@
sub_float_var_from_float_lvar 633@ -= $y
div_float_lvar_by_float_lvar 632@ /= 630@
div_float_lvar_by_float_lvar 633@ /= 630@
mult_float_lvar_by_float_lvar 632@ *= 631@
mult_float_lvar_by_float_lvar 633@ *= 631@
set_lvar_float_to_var_float 627@ = $x
add_float_lvar_to_float_lvar 627@ += 632@
set_lvar_float_to_var_float 628@ = $y
add_float_lvar_to_float_lvar 628@ += 633@

:POOL2_54215
629@ += 1
goto @POOL2_54027

:POOL2_54229
set_lvar_float_to_lvar_float 630@ = 98@
if 
  is_float_lvar_greater_than_float_lvar 630@ > 627@
goto_if_false @POOL2_54264
set_lvar_float_to_lvar_float 627@ = 630@

:POOL2_54264
set_lvar_float_to_lvar_float 630@ = 99@
if 
  is_float_lvar_greater_than_float_lvar 627@ > 630@
goto_if_false @POOL2_54299
set_lvar_float_to_lvar_float 627@ = 630@

:POOL2_54299
set_lvar_float_to_lvar_float 630@ = 100@
if 
  is_float_lvar_greater_than_float_lvar 630@ > 628@
goto_if_false @POOL2_54334
set_lvar_float_to_lvar_float 628@ = 630@

:POOL2_54334
set_lvar_float_to_lvar_float 630@ = 101@
if 
  is_float_lvar_greater_than_float_lvar 628@ > 630@
goto_if_false @POOL2_54369
set_lvar_float_to_lvar_float 628@ = 630@

:POOL2_54369
return 

:POOL2_54371
$cam_x1, $cam_y1, $cam_z1 = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$cam_x2, $cam_y2, $cam_z2 = get_offset_from_object_in_world_coords 163@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
set_var_float_to_var_float $cam_nvec_x = $cam_x1
sub_float_var_from_float_var $cam_nvec_x -= $cam_x2
set_var_float_to_var_float $cam_nvec_y = $cam_y1
sub_float_var_from_float_var $cam_nvec_y -= $cam_y2
$cam_dist = get_distance_between_coords_2d $cam_x1 {fromY} $cam_y1 {toX} $cam_x2 {toZ} $cam_y2
div_float_var_by_float_var $cam_nvec_x /= $cam_dist
div_float_var_by_float_var $cam_nvec_y /= $cam_dist
set_var_float_to_var_float $cam_rvec_x = $cam_nvec_y
set_var_float_to_var_float $cam_rvec_y = $cam_nvec_x
$cam_rvec_y *= -1.0
return 

:POOL2_54522
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 641@ {rightBottomY} 647@ {header} 'BJ_TITL' {zIndex} 2
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_wrapx 640.0
display_text 36.0 {offsetTop} 240.0 {key} 'BJ_01'
gosub @POOL2_60436
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} 155@
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_wrapx 640.0
display_text 36.0 {offsetTop} 290.0 {key} 'BJ_02'
gosub @POOL2_60436
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} $pool_min_bet
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_wrapx 640.0
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @POOL2_60436
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} $pool_max_bet
return 

:POOL2_54829
if and
  274@ == 0
  271@ == 0
goto_if_false @POOL2_54875
635@ = 1
gosub @POOL2_57034
goto @POOL2_56226

:POOL2_54875
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 637@ {rightBottomY} 643@ {header} 'SCORE' {zIndex} 2
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'PL_01'
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
if 
  217@ == 0
goto_if_false @POOL2_55000
display_text 36.0 {offsetTop} 260.0 {key} 'PL_12'

:POOL2_55000
if 
  217@ == 1
goto_if_false @POOL2_55039
display_text 36.0 {offsetTop} 260.0 {key} 'PL_13'

:POOL2_55039
if 
  217@ == -1
goto_if_false @POOL2_55078
display_text 36.0 {offsetTop} 260.0 {key} 'PL_15'

:POOL2_55078
if 
  217@ == 2
goto_if_false @POOL2_55117
display_text 36.0 {offsetTop} 260.0 {key} 'PL_14'

:POOL2_55117
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  178@ == 1
goto_if_false @POOL2_55184
display_text 36.0 {offsetTop} 290.0 {key} 'PL_02'
goto @POOL2_55205

:POOL2_55184
display_text 36.0 {offsetTop} 290.0 {key} 'PL_03'

:POOL2_55205
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
if 
  218@ == 0
goto_if_false @POOL2_55259
display_text 36.0 {offsetTop} 310.0 {key} 'PL_12'

:POOL2_55259
if 
  218@ == 1
goto_if_false @POOL2_55298
display_text 36.0 {offsetTop} 310.0 {key} 'PL_13'

:POOL2_55298
if 
  218@ == -1
goto_if_false @POOL2_55337
display_text 36.0 {offsetTop} 310.0 {key} 'PL_15'

:POOL2_55337
if 
  218@ == 2
goto_if_false @POOL2_55376
display_text 36.0 {offsetTop} 310.0 {key} 'PL_14'

:POOL2_55376
if 
  274@ > 0
goto_if_false @POOL2_55696
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_04'
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
switch_start 274@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @POOL2_55689 {caseNum1} 0 {caseLabel1} @POOL2_55514 {caseNum2} 1 {caseLabel2} @POOL2_55521 {caseNum3} 2 {caseLabel3} @POOL2_55549 {caseNum4} 3 {caseLabel4} @POOL2_55577 {caseNum5} 4 {caseLabel5} @POOL2_55605 {caseNum6} 5 {caseLabel6} @POOL2_55633 {caseNum7} 6 {caseLabel7} @POOL2_55661

:POOL2_55514
goto @POOL2_55689

:POOL2_55521
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL1'
goto @POOL2_55689

:POOL2_55549
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL2'
goto @POOL2_55689

:POOL2_55577
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL3'
goto @POOL2_55689

:POOL2_55605
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL4'
goto @POOL2_55689

:POOL2_55633
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL5'
goto @POOL2_55689

:POOL2_55661
display_text 36.0 {offsetTop} 360.0 {key} 'FOUL6'
goto @POOL2_55689

:POOL2_55689
goto @POOL2_56226

:POOL2_55696
if 
  271@ > 0
goto_if_false @POOL2_56226
if 
  271@ == 1
goto_if_false @POOL2_55888
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_05'
39@ = 1

:POOL2_55781
if 
  16 > 39@
goto_if_false @POOL2_55881
if 
  255@(39@,16i) <> 0
goto_if_false @POOL2_55867
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'NUM' {num} 39@
39@ = 16

:POOL2_55867
39@ += 1
goto @POOL2_55781

:POOL2_55881
goto @POOL2_56226

:POOL2_55888
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_06'
39@ = 1
set_lvar_int_to_lvar_int 40@ = 271@
42@ = 36.0

:POOL2_55955
if 
  40@ > 0
goto_if_false @POOL2_56226

:POOL2_55973
if 
  16 > 39@
goto_if_false @POOL2_56219
if 
  255@(39@,16i) <> 0
goto_if_false @POOL2_56180
if 
  40@ > 1
goto_if_false @POOL2_56122
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
41@ = get_string_width_with_number 'COMMA' {number} 39@
cset_lvar_float_to_lvar_int 43@ =# 41@
display_text_with_number 42@ {offsetTop} 360.0 {key} 'COMMA' {num} 39@
add_float_lvar_to_float_lvar 42@ += 43@
39@ += 1
40@ -= 1
goto @POOL2_56173

:POOL2_56122
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
display_text_with_number 42@ {offsetTop} 360.0 {key} 'NUM' {num} 39@
40@ = -1
39@ = 16

:POOL2_56173
goto @POOL2_56187

:POOL2_56180
39@ += 1

:POOL2_56187
if 
  39@ >= 16
goto_if_false @POOL2_56212
40@ = -1

:POOL2_56212
goto @POOL2_55973

:POOL2_56219
goto @POOL2_55955

:POOL2_56226
return 
if or
is_ps2_keyboard_key_just_pressed 131
is_ps2_keyboard_key_just_pressed 87
goto_if_false @POOL2_56258
621@ += 1.0

:POOL2_56258
if or
is_ps2_keyboard_key_just_pressed 130
is_ps2_keyboard_key_just_pressed 90
goto_if_false @POOL2_56288
621@ += -1.0

:POOL2_56288
if or
is_ps2_keyboard_key_just_pressed 128
is_ps2_keyboard_key_just_pressed 68
goto_if_false @POOL2_56318
620@ += 1.0

:POOL2_56318
if or
is_ps2_keyboard_key_just_pressed 129
is_ps2_keyboard_key_just_pressed 65
goto_if_false @POOL2_56348
620@ += -1.0

:POOL2_56348
if or
is_ps2_keyboard_key_just_pressed 145
is_ps2_keyboard_key_just_pressed 87
goto_if_false @POOL2_56378
624@ += 1.0

:POOL2_56378
if or
is_ps2_keyboard_key_just_pressed 139
is_ps2_keyboard_key_just_pressed 90
goto_if_false @POOL2_56408
624@ += -1.0

:POOL2_56408
if or
is_ps2_keyboard_key_just_pressed 143
is_ps2_keyboard_key_just_pressed 68
goto_if_false @POOL2_56438
625@ += 1.0

:POOL2_56438
if or
is_ps2_keyboard_key_just_pressed 141
is_ps2_keyboard_key_just_pressed 65
goto_if_false @POOL2_56468
625@ += -1.0

:POOL2_56468
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @POOL2_57032
save_newline_to_debug_file 
save_string_to_debug_file "BALL_SPRITE_HEIGHT = "
save_float_to_debug_file 621@
save_newline_to_debug_file 
save_string_to_debug_file "BALL_SPRITE_WIDTH = "
save_float_to_debug_file 620@
save_newline_to_debug_file 
save_string_to_debug_file "NIB_SPRITE_HEIGHT = "
save_float_to_debug_file 624@
save_newline_to_debug_file 
save_string_to_debug_file "NIB_SPRITE_WIDTH = "
save_float_to_debug_file 625@

:POOL2_57032
return 

:POOL2_57034
if 
  635@ == 0
goto_if_false @POOL2_57283
39@ = 0
if 
  3000 > 205@
goto_if_false @POOL2_57085
39@ = 1

:POOL2_57085
if 
  236@ == 1
goto_if_false @POOL2_57142
205@ = 0
39@ = 1
if 
  198@ > 1
goto_if_false @POOL2_57142
198@ = 0

:POOL2_57142
if 
  198@ == 0
goto_if_false @POOL2_57187
clear_help 
print_help_forever 'PL_H3'
205@ = 0
198@ += 1

:POOL2_57187
if 
  34@ == 5
goto_if_false @POOL2_57269
if 
  198@ == 1
goto_if_false @POOL2_57262
if 
  205@ > 3000
goto_if_false @POOL2_57262
clear_help 
print_help_forever 'PL_H7'
198@ += 1

:POOL2_57262
goto @POOL2_57276

:POOL2_57269
39@ = 1

:POOL2_57276
goto @POOL2_57297

:POOL2_57283
39@ = 1
635@ = 0

:POOL2_57297
if 
  39@ == 1
goto_if_false @POOL2_57816
draw_window 29.0 {leftTopY} 270.0 {rightBottomX} 638@ {rightBottomY} 644@ {header} 'SCORE' {zIndex} 2
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'PL_01'
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
if 
  217@ == 0
goto_if_false @POOL2_57440
display_text 36.0 {offsetTop} 310.0 {key} 'PL_12'

:POOL2_57440
if 
  217@ == 1
goto_if_false @POOL2_57479
display_text 36.0 {offsetTop} 310.0 {key} 'PL_13'

:POOL2_57479
if 
  217@ == -1
goto_if_false @POOL2_57518
display_text 36.0 {offsetTop} 310.0 {key} 'PL_15'

:POOL2_57518
if 
  217@ == 2
goto_if_false @POOL2_57557
display_text 36.0 {offsetTop} 310.0 {key} 'PL_14'

:POOL2_57557
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  178@ == 1
goto_if_false @POOL2_57624
display_text 36.0 {offsetTop} 340.0 {key} 'PL_02'
goto @POOL2_57645

:POOL2_57624
display_text 36.0 {offsetTop} 340.0 {key} 'PL_03'

:POOL2_57645
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
if 
  218@ == 0
goto_if_false @POOL2_57699
display_text 36.0 {offsetTop} 360.0 {key} 'PL_12'

:POOL2_57699
if 
  218@ == 1
goto_if_false @POOL2_57738
display_text 36.0 {offsetTop} 360.0 {key} 'PL_13'

:POOL2_57738
if 
  218@ == -1
goto_if_false @POOL2_57777
display_text 36.0 {offsetTop} 360.0 {key} 'PL_15'

:POOL2_57777
if 
  218@ == 2
goto_if_false @POOL2_57816
display_text 36.0 {offsetTop} 360.0 {key} 'PL_14'

:POOL2_57816
return 

:POOL2_57818
636@ = 0.4753
642@ = 2.3176
switch_start $current_Language {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @POOL2_58009 {caseNum1} 1 {caseLabel1} @POOL2_57901 {caseNum2} 2 {caseLabel2} @POOL2_57955 {caseNum3} 3 {caseLabel3} @POOL2_57982 {caseNum4} 4 {caseLabel4} @POOL2_57928 {caseNum5} -1 {caseLabel5} @POOL2_58036 {caseNum6} -1 {caseLabel6} @POOL2_58036 {caseNum7} -1 {caseLabel7} @POOL2_58036

:POOL2_57901
637@ = 210.6556
643@ = 426.4957
goto @POOL2_58036

:POOL2_57928
637@ = 175.0805
643@ = 426.4957
goto @POOL2_58036

:POOL2_57955
637@ = 190.782
643@ = 409.0
goto @POOL2_58036

:POOL2_57982
637@ = 214.9799
643@ = 409.0
goto @POOL2_58036

:POOL2_58009
637@ = 174.4835
643@ = 409.0
goto @POOL2_58036

:POOL2_58036
switch_start $current_Language {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @POOL2_58180 {caseNum1} 2 {caseLabel1} @POOL2_58126 {caseNum2} 3 {caseLabel2} @POOL2_58153 {caseNum3} 4 {caseLabel3} @POOL2_58099 {caseNum4} -1 {caseLabel4} @POOL2_58207 {caseNum5} -1 {caseLabel5} @POOL2_58207 {caseNum6} -1 {caseLabel6} @POOL2_58207 {caseNum7} -1 {caseLabel7} @POOL2_58207

:POOL2_58099
638@ = 179.098
644@ = 396.8582
goto @POOL2_58207

:POOL2_58126
638@ = 166.0992
644@ = 396.8582
goto @POOL2_58207

:POOL2_58153
638@ = 205.4915
644@ = 396.8582
goto @POOL2_58207

:POOL2_58180
638@ = 157.0
644@ = 396.8582
goto @POOL2_58207

:POOL2_58207
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @POOL2_58295 {caseNum1} 3 {caseLabel1} @POOL2_58270 {caseNum2} -1 {caseLabel2} @POOL2_58322 {caseNum3} -1 {caseLabel3} @POOL2_58322 {caseNum4} -1 {caseLabel4} @POOL2_58322 {caseNum5} -1 {caseLabel5} @POOL2_58322 {caseNum6} -1 {caseLabel6} @POOL2_58322 {caseNum7} -1 {caseLabel7} @POOL2_58322

:POOL2_58270
set_lvar_float_to_lvar_float 639@ = 638@
645@ = 394.4953
goto @POOL2_58322

:POOL2_58295
639@ = 168.1938
645@ = 394.4953
goto @POOL2_58322

:POOL2_58322
640@ = 0.4914
646@ = 2.3977
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @POOL2_58432 {caseNum1} 3 {caseLabel1} @POOL2_58405 {caseNum2} -1 {caseLabel2} @POOL2_58459 {caseNum3} -1 {caseLabel3} @POOL2_58459 {caseNum4} -1 {caseLabel4} @POOL2_58459 {caseNum5} -1 {caseLabel5} @POOL2_58459 {caseNum6} -1 {caseLabel6} @POOL2_58459 {caseNum7} -1 {caseLabel7} @POOL2_58459

:POOL2_58405
641@ = 178.0981
647@ = 409.0
goto @POOL2_58459

:POOL2_58432
641@ = 157.0
647@ = 409.0
goto @POOL2_58459

:POOL2_58459
return 
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @POOL2_58526
648@ += 1
if 
  648@ > 5
goto_if_false @POOL2_58508
648@ = 0

:POOL2_58508
write_debug_with_int "SCREEN_EDIT" {number} 648@

:POOL2_58526
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @POOL2_58556
642@(648@,6f) += -0.1

:POOL2_58556
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @POOL2_58586
642@(648@,6f) += 0.1

:POOL2_58586
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @POOL2_58616
636@(648@,6f) += 0.1

:POOL2_58616
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @POOL2_58646
636@(648@,6f) += -0.1

:POOL2_58646
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @POOL2_59387
save_newline_to_debug_file 
save_string_to_debug_file "POOL - SCREEN_COORDS"
save_newline_to_debug_file 
39@ = 0

:POOL2_58803
if 
  6 > 39@
goto_if_false @POOL2_59387
save_string_to_debug_file "SCREEN_COORD_X["
save_int_to_debug_file 39@
save_string_to_debug_file "] = "
save_float_to_debug_file 636@(39@,6f)
save_newline_to_debug_file 
save_string_to_debug_file "SCREEN_COORD_Y["
save_int_to_debug_file 39@
save_string_to_debug_file "] = "
save_float_to_debug_file 642@(39@,6f)
save_newline_to_debug_file 
39@ += 1
goto @POOL2_58803

:POOL2_59387
return 

:POOL2_59389
39@ = 0
if 
  3000 > 205@
goto_if_false @POOL2_59422
39@ = 1

:POOL2_59422
if 
  198@ == 0
goto_if_false @POOL2_59467
clear_help 
print_help_forever 'PL_H6'
205@ = 0
198@ += 1

:POOL2_59467
if 
  34@ == 4
goto_if_false @POOL2_59542
if 
  198@ == 1
goto_if_false @POOL2_59542
if 
  205@ > 3000
goto_if_false @POOL2_59542
clear_help 
print_help_forever 'PL_H7'
198@ += 1

:POOL2_59542
if 
  39@ == 1
goto_if_false @POOL2_60139
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 639@ {rightBottomY} 645@ {header} 'SCORE' {zIndex} 2
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'PL_01'
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
if 
  217@ == 0
goto_if_false @POOL2_59685
display_text 36.0 {offsetTop} 260.0 {key} 'PL_12'

:POOL2_59685
if 
  217@ == 1
goto_if_false @POOL2_59724
display_text 36.0 {offsetTop} 260.0 {key} 'PL_13'

:POOL2_59724
if 
  217@ == -1
goto_if_false @POOL2_59763
display_text 36.0 {offsetTop} 260.0 {key} 'PL_15'

:POOL2_59763
if 
  217@ == 2
goto_if_false @POOL2_59802
display_text 36.0 {offsetTop} 260.0 {key} 'PL_14'

:POOL2_59802
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  178@ == 1
goto_if_false @POOL2_59869
display_text 36.0 {offsetTop} 290.0 {key} 'PL_02'
goto @POOL2_59890

:POOL2_59869
display_text 36.0 {offsetTop} 290.0 {key} 'PL_03'

:POOL2_59890
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
if 
  218@ == 0
goto_if_false @POOL2_59944
display_text 36.0 {offsetTop} 310.0 {key} 'PL_12'

:POOL2_59944
if 
  218@ == 1
goto_if_false @POOL2_59983
display_text 36.0 {offsetTop} 310.0 {key} 'PL_13'

:POOL2_59983
if 
  218@ == -1
goto_if_false @POOL2_60022
display_text 36.0 {offsetTop} 310.0 {key} 'PL_15'

:POOL2_60022
if 
  218@ == 2
goto_if_false @POOL2_60061
display_text 36.0 {offsetTop} 310.0 {key} 'PL_14'

:POOL2_60061
gosub @POOL2_60436
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'PL_16'
gosub @POOL2_60436
set_text_scale 636@ {heightScale} 642@
display_text 36.0 {offsetTop} 360.0 {key} 'PL_17'

:POOL2_60139
return 
set_text_scale 0.4487 {heightScale} 1.5974
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.4487 {heightScale} 1.5974
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_right_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 81 {green} 25 {blue} 29 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.405 {heightScale} 1.08
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 81 {green} 25 {blue} 29 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 

:POOL2_60436
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 640@ {heightScale} 646@
set_text_right_justify False
set_text_justify False
set_text_centre False
set_lvar_float_to_lvar_float 649@ = 637@
649@ -= 20.0
set_text_wrapx 649@
set_text_proportional True
set_text_background False
return 
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @POOL2_60600
650@ += -0.0001
39@ = 0

:POOL2_60536
if 
  16 > 39@
goto_if_false @POOL2_60600
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_60586
set_object_turn_mass 82@(39@,16i) {turnMass} 650@

:POOL2_60586
39@ += 1
goto @POOL2_60536

:POOL2_60600
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @POOL2_60680

:POOL2_60616
if 
  16 > 39@
goto_if_false @POOL2_60680
if 
  does_object_exist 82@(39@,16i)
goto_if_false @POOL2_60666
set_object_turn_mass 82@(39@,16i) {turnMass} 650@

:POOL2_60666
39@ += 1
goto @POOL2_60616

:POOL2_60680
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @POOL2_60696

:POOL2_60696
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @POOL2_60722
203@ += -0.001

:POOL2_60722
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @POOL2_60748
204@ += 0.001

:POOL2_60748
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @POOL2_60774
204@ += -0.001

:POOL2_60774
return 

:POOL2_60776
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:POOL2_60794
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
clear_wanted_level $player1
return 

:POOL2_60828
make_player_gang_reappear 
disable_2nd_pad_for_debug 0
set_script_coop_game False
$disable_debug = 0
clear_mission_audio MissionAudioSlot.Slot4
39@ = 0

:POOL2_60856
if 
  10 > 39@
goto_if_false @POOL2_60917
if 
  does_object_exist 347@(39@,10i)
goto_if_false @POOL2_60903
delete_object 347@(39@,10i)

:POOL2_60903
39@ += 1
goto @POOL2_60856

:POOL2_60917
if 
  not is_char_dead $active_pool_opponent
goto_if_false @POOL2_60982
clear_look_at $active_pool_opponent
$x, $y, $z = get_char_coordinates $active_pool_opponent
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_var_float 223@ = $z
set_lvar_float_to_var_float 227@ = $z

:POOL2_60982
if 
  not is_char_dead $active_pool_opponent
goto_if_false @POOL2_61026
$x, $y, $z = get_char_coordinates $active_pool_opponent
set_char_coordinates $active_pool_opponent {x} $x {y} $y {z} 227@

:POOL2_61026
if 
  is_player_playing $player1
goto_if_false @POOL2_61151
$x, $y, $z = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} 221@ {y} 222@ {z} 223@
if 
  not is_char_dead $active_pool_opponent
goto_if_false @POOL2_61100
165@, 166@, 167@ = get_char_coordinates $active_pool_opponent

:POOL2_61100
set_lvar_float_to_lvar_float 169@ = 165@
sub_float_var_from_float_lvar 169@ -= $x
set_lvar_float_to_lvar_float 170@ = 166@
sub_float_var_from_float_lvar 170@ -= $y
$heading = get_heading_from_vector_2d 169@ {y} 170@
set_char_heading $scplayer {heading} $heading

:POOL2_61151
request_model 338

:POOL2_61156
if 
  not has_model_loaded 338
goto_if_false @POOL2_61183
wait 0
goto @POOL2_61156

:POOL2_61183
if 
  is_player_playing $player1
goto_if_false @POOL2_61223
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
drop_object $scplayer {state} False
give_weapon_to_char $scplayer {weaponType} WeaponType.PoolCue {ammo} 9999

:POOL2_61223
if 
  does_object_exist 106@
goto_if_false @POOL2_61244
delete_object 106@

:POOL2_61244
if 
  does_object_exist 107@
goto_if_false @POOL2_61265
delete_object 107@

:POOL2_61265
if 
  does_object_exist 238@
goto_if_false @POOL2_61286
delete_object 238@

:POOL2_61286
if 
  does_object_exist $active_initial_cue
goto_if_false @POOL2_61307
delete_object $active_initial_cue

:POOL2_61307
mark_model_as_no_longer_needed 338
mark_model_as_no_longer_needed #K_POOLQ
remove_animation "POOL"
if 
  is_player_playing $player1
goto_if_false @POOL2_61352
clear_char_tasks_immediately $scplayer
set_char_collision $scplayer {state} True

:POOL2_61352
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_prints 
clear_help 
$onmission = 0
if 
  is_player_playing $player1
goto_if_false @POOL2_61458
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $scplayer
clear_look_at $scplayer
47@ = open_sequence_task 
task_stand_still -1 {time} 1
task_pause -1 {time} 1
close_sequence_task 47@
perform_sequence_task $scplayer {sequence} 47@
clear_sequence_task 47@

:POOL2_61458
mission_has_finished 
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 163@
goto_if_false @POOL2_61511
165@, 166@, 167@ = get_object_coordinates 163@
$heading = get_object_heading 163@

:POOL2_61511
$heading *= -1.0
42@ = cos $heading
43@ = sin $heading
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM TABLE = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
$x, $y, $z = get_debug_camera_point_at 
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM TABLE = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_char_exist 215@
goto_if_false @POOL2_62165
if 
  not is_char_dead 215@
goto_if_false @POOL2_62165
165@, 166@, 167@ = get_char_coordinates 215@
$heading = get_char_heading 215@

:POOL2_62165
$heading *= -1.0
42@ = cos $heading
43@ = sin $heading
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM CHAR = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
$x, $y, $z = get_debug_camera_point_at 
set_lvar_float_to_var_float 169@ = $x
sub_float_lvar_from_float_lvar 169@ -= 165@
set_lvar_float_to_var_float 170@ = $y
sub_float_lvar_from_float_lvar 170@ -= 166@
set_lvar_float_to_var_float 171@ = $z
sub_float_lvar_from_float_lvar 171@ -= 167@
set_lvar_float_to_lvar_float 172@ = 169@
mult_float_lvar_by_float_lvar 172@ *= 42@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 43@
sub_float_lvar_from_float_lvar 172@ -= 44@
set_lvar_float_to_lvar_float 173@ = 169@
mult_float_lvar_by_float_lvar 173@ *= 43@
set_lvar_float_to_lvar_float 44@ = 170@
mult_float_lvar_by_float_lvar 44@ *= 42@
add_float_lvar_to_float_lvar 173@ += 44@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM CHAR = "
save_float_to_debug_file 172@
save_float_to_debug_file 173@
save_float_to_debug_file 171@
return 

//-------------Mission 9---------------
// Originally: Lowrider (Bet And Dance)

:LOWR
script_name 'LOWR'
gosub @LOWR_47
if 
  has_deatharrest_been_executed 
goto_if_false @LOWR_38
gosub @LOWR_27250

:LOWR_38
gosub @LOWR_27254
terminate_this_script 

:LOWR_47
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = load_char_decision_maker DecisionMakerType.Empty
67@ = load_char_decision_maker DecisionMakerType.Tough

:LOWR_145
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @LOWR_171
36@ = 1

:LOWR_171
39@ += 1
if 
  39@ > 22
goto_if_false @LOWR_203
39@ = 0

:LOWR_203
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 133@ += 42@
add_int_lvar_to_int_lvar 134@ += 42@
add_int_lvar_to_int_lvar 135@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
43@ = get_area_visible 
if 
  43@ == 0
goto_if_false @LOWR_319
add_int_lvar_to_int_var $lowr_timer += 42@

:LOWR_319
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @LOWR_466 {caseNum1} 0 {caseLabel1} @LOWR_382 {caseNum2} 1 {caseLabel2} @LOWR_396 {caseNum3} 2 {caseLabel3} @LOWR_403 {caseNum4} 3 {caseLabel4} @LOWR_410 {caseNum5} 4 {caseLabel5} @LOWR_424 {caseNum6} 5 {caseLabel6} @LOWR_438 {caseNum7} 6 {caseLabel7} @LOWR_452

:LOWR_382
gosub @LOWR_619
goto @LOWR_466

:LOWR_396
goto @LOWR_466

:LOWR_403
goto @LOWR_466

:LOWR_410
gosub @LOWR_962
goto @LOWR_466

:LOWR_424
gosub @LOWR_9455
goto @LOWR_466

:LOWR_438
gosub @LOWR_12559
goto @LOWR_466

:LOWR_452
gosub @LOWR_17601
goto @LOWR_466

:LOWR_466
gosub @LOWR_19756
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @LOWR_495
gosub @LOWR_26533

:LOWR_495
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @LOWR_517
gosub @LOWR_26635

:LOWR_517
if 
  38@ == 0
goto_if_false @LOWR_617
if 
  37@ == 0
goto_if_false @LOWR_601
if 
  36@ == 0
goto_if_false @LOWR_585
goto @LOWR_145
goto @LOWR_594

:LOWR_585
gosub @LOWR_27252
return 

:LOWR_594
goto @LOWR_610

:LOWR_601
gosub @LOWR_27250
return 

:LOWR_610
goto @LOWR_619

:LOWR_617
return 

:LOWR_619
if 
  35@ == -1
goto_if_false @LOWR_748
69@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
102@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
103@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:LOWR_748
271@ = 50
272@ = 1000
104@ = 0
43@ = 0

:LOWR_777
if 
  22 > 43@
goto_if_false @LOWR_820
105@(43@,22i) = 0
43@ += 1
goto @LOWR_777

:LOWR_820
127@ = 0
128@ = 0
129@ = 0
130@ = 0
132@ = 0
set_lvar_int_to_lvar_int 132@ = 130@
set_lvar_int_to_lvar_int 132@ = 130@
set_lvar_int_to_lvar_int 132@ = 130@
set_lvar_int_to_lvar_int 132@ = 130@
set_lvar_int_to_lvar_int 132@ = 130@
132@ = 0
269@ = 0.01
if 
  35@ == -1
goto_if_false @LOWR_930

:LOWR_930
load_mission_text 'LOWR'
suppress_car_model 567
gosub @LOWR_27192
34@ = 3
return 

:LOWR_962
if 
  35@ == 0
goto_if_false @LOWR_2161
clear_area_of_chars 1721.1169 {leftBottomY} -1967.489 {leftBottomZ} 11.0 {rightTopX} 1904.391 {rightTopY} -1838.3149 {rightTopZ} 15.0
127@ = 0
128@ = 0
138@ = 1796.947
145@ = -1924.376
152@ = 13.2937
159@ = 60.9627
139@ = 1802.865
146@ = -1918.7419
153@ = 13.2965
160@ = 357.6195
140@ = 1788.9919
147@ = -1924.501
154@ = 13.2937
161@ = 305.5176
141@ = 1784.189
148@ = -1913.4399
155@ = 13.2957
162@ = 188.9639
142@ = 1790.964
149@ = -1913.8979
156@ = 13.2985
163@ = 266.2616
143@ = 1799.899
150@ = -1906.425
157@ = 13.3025
164@ = 184.4735
144@ = 1785.9399
151@ = -1904.839
158@ = 13.297
165@ = 152.5742
166@ = 1798.603
188@ = -1908.26
210@ = 12.4388
232@ = 102.3995
167@ = 1798.887
189@ = -1907.668
211@ = 12.4399
233@ = 174.1189
168@ = 1798.834
190@ = -1911.782
212@ = 12.4374
234@ = 158.2591
169@ = 1799.584
191@ = -1912.795
213@ = 12.4368
235@ = 74.6392
170@ = 1800.902
192@ = -1918.714
214@ = 12.4331
236@ = 256.6391
171@ = 1798.166
193@ = -1920.427
215@ = 12.4321
237@ = 19.6592
172@ = 1796.811
194@ = -1920.426
216@ = 12.4321
238@ = 331.8393
173@ = 1787.78
195@ = -1919.071
217@ = 12.4329
239@ = 331.8393
174@ = 1786.71
196@ = -1917.9821
218@ = 12.4332
240@ = 285.8198
175@ = 1786.194
197@ = -1907.356
219@ = 12.4327
241@ = 260.4003
176@ = 1786.8979
198@ = -1906.531
220@ = 12.4335
242@ = 141.9807
177@ = 1786.23
199@ = -1908.6219
221@ = 12.4328
243@ = 327.1608
178@ = 1789.188
200@ = -1919.665
222@ = 12.4325
244@ = 357.2196
179@ = 1788.103
201@ = -1907.949
223@ = 12.4352
245@ = 200.9411
180@ = 1797.9969
202@ = -1912.74
224@ = 12.4368
246@ = 312.2806
181@ = 1796.46
203@ = -1908.882
225@ = 12.4368
247@ = 312.2806
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:LOWR_1990
if or
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
  not has_model_loaded 63
  not has_model_loaded 41
goto_if_false @LOWR_2032
wait 0
goto @LOWR_1990

:LOWR_2032
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @LOWR_2064
wait 0
goto @LOWR_2032

:LOWR_2064
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @LOWR_2098
wait 0
goto @LOWR_2064

:LOWR_2098
if 
  not does_blip_exist 102@
goto_if_false @LOWR_2134
102@ = add_blip_for_coord 1793.068 {y} -1904.254 {z} 12.3989

:LOWR_2134
switch_audio_zone 'LOWRIDE' {state} True
$lowr_timer = 0
35@ += 1

:LOWR_2161
if 
  35@ == 1
goto_if_false @LOWR_9428
if 
  128@ == 0
goto_if_false @LOWR_3625
if 
  locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @LOWR_3618
69@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
71@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 69@ {color1} 1 {color2} 0
change_car_colour 70@ {color1} 2 {color2} 1
change_car_colour 71@ {color1} 3 {color2} 2
change_car_colour 72@ {color1} 10 {color2} 3
change_car_colour 73@ {color1} 9 {color2} 4
change_car_colour 74@ {color1} 6 {color2} 5
change_car_colour 75@ {color1} 7 {color2} 6
set_car_status 69@ {status} EntityStatus.Physics
set_car_status 73@ {status} EntityStatus.Physics
set_car_status 72@ {status} EntityStatus.Physics
set_car_hydraulics 69@ {state} True
set_car_hydraulics 73@ {state} True
set_car_hydraulics 72@ {state} True
set_car_only_damaged_by_player 69@ {state} True
set_car_only_damaged_by_player 73@ {state} True
set_car_only_damaged_by_player 72@ {state} True
43@ = 0

:LOWR_2529
if 
  7 > 43@
goto_if_false @LOWR_2618
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)
lock_car_doors 69@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @LOWR_2529

:LOWR_2618
wait 0
77@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
83@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
78@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
93@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
43@ = 0

:LOWR_3169
if 
  16 > 43@
goto_if_false @LOWR_3287
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_3273
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_3273
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)

:LOWR_3273
43@ += 1
goto @LOWR_3169

:LOWR_3287
wait 0
43@ = 0

:LOWR_3298
if 
  22 > 43@
goto_if_false @LOWR_3362
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_3348
set_char_decision_maker 77@(43@,22i) {handleOrTemplate} 67@

:LOWR_3348
43@ += 4
goto @LOWR_3298

:LOWR_3362
if 
  not is_char_dead 93@
goto_if_false @LOWR_3402
if 
  not is_car_dead 70@
goto_if_false @LOWR_3402
warp_char_into_car 93@ {vehicle} 70@

:LOWR_3402
if 
  not is_char_dead 94@
goto_if_false @LOWR_3442
if 
  not is_car_dead 71@
goto_if_false @LOWR_3442
warp_char_into_car 94@ {vehicle} 71@

:LOWR_3442
if 
  not is_char_dead 95@
goto_if_false @LOWR_3482
if 
  not is_car_dead 73@
goto_if_false @LOWR_3482
warp_char_into_car 95@ {vehicle} 73@

:LOWR_3482
if 
  not is_char_dead 96@
goto_if_false @LOWR_3522
if 
  not is_car_dead 69@
goto_if_false @LOWR_3522
warp_char_into_car 96@ {vehicle} 69@

:LOWR_3522
if 
  not is_char_dead 97@
goto_if_false @LOWR_3562
if 
  not is_car_dead 72@
goto_if_false @LOWR_3562
warp_char_into_car 97@ {vehicle} 72@

:LOWR_3562
if 
  not is_char_dead 98@
goto_if_false @LOWR_3604
if 
  not is_car_dead 71@
goto_if_false @LOWR_3604
warp_char_into_car_as_passenger 98@ {handle} 71@ {seat} SeatId.BikeRear

:LOWR_3604
128@ = 1
$lowrider_meeting_is_loaded = 1

:LOWR_3618
goto @LOWR_3766

:LOWR_3625
if 
  not locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @LOWR_3766
43@ = 0

:LOWR_3670
if 
  7 > 43@
goto_if_false @LOWR_3711
delete_car 69@(43@,7i)
43@ += 1
goto @LOWR_3670

:LOWR_3711
43@ = 0

:LOWR_3718
if 
  22 > 43@
goto_if_false @LOWR_3759
delete_char 77@(43@,22i)
43@ += 1
goto @LOWR_3718

:LOWR_3759
128@ = 0

:LOWR_3766
if 
  128@ == 1
goto_if_false @LOWR_9015
if 
  127@ == 0
goto_if_false @LOWR_8729
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @LOWR_8009 {caseNum1} 0 {caseLabel1} @LOWR_3995 {caseNum2} 1 {caseLabel2} @LOWR_4371 {caseNum3} 2 {caseLabel3} @LOWR_4747 {caseNum4} 3 {caseLabel4} @LOWR_4897 {caseNum5} 4 {caseLabel5} @LOWR_5047 {caseNum6} 5 {caseLabel6} @LOWR_5162 {caseNum7} 6 {caseLabel7} @LOWR_5312
switch_continued 7 {caseLabel1} @LOWR_5462 {caseNum2} 8 {caseLabel2} @LOWR_5578 {caseNum3} 9 {caseLabel3} @LOWR_5694 {caseNum4} 10 {caseLabel4} @LOWR_6070 {caseNum5} 11 {caseLabel5} @LOWR_6253 {caseNum6} 12 {caseLabel6} @LOWR_6369 {caseNum7} 13 {caseLabel7} @LOWR_6485 {caseNum8} 14 {caseLabel8} @LOWR_6792 {caseNum9} 15 {caseLabel9} @LOWR_7117
switch_continued 16 {caseLabel1} @LOWR_7401 {caseNum2} 17 {caseLabel2} @LOWR_7510 {caseNum3} 18 {caseLabel3} @LOWR_7619 {caseNum4} 19 {caseLabel4} @LOWR_7826 {caseNum5} 20 {caseLabel5} @LOWR_8002 {caseNum6} -1 {caseLabel6} @LOWR_8009 {caseNum7} -1 {caseLabel7} @LOWR_8009 {caseNum8} -1 {caseLabel8} @LOWR_8009 {caseNum9} -1 {caseLabel9} @LOWR_8009

:LOWR_3995
if 
  not is_char_dead 77@
goto_if_false @LOWR_4364
43@ = get_script_task_status 77@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4269
49@ = open_sequence_task 
if 
  not is_car_dead 74@
goto_if_false @LOWR_4203
if 
  locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4155
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @LOWR_4196

:LOWR_4155
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4196
goto @LOWR_4244

:LOWR_4203
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4244
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@
goto @LOWR_4364

:LOWR_4269
if 
  is_char_playing_anim 77@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @LOWR_4364
if 
  not is_car_dead 74@
goto_if_false @LOWR_4364
if 
  not locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4364
clear_char_tasks 77@

:LOWR_4364
goto @LOWR_8009

:LOWR_4371
if 
  not is_char_dead 78@
goto_if_false @LOWR_4740
43@ = get_script_task_status 78@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4645
49@ = open_sequence_task 
if 
  not is_car_dead 74@
goto_if_false @LOWR_4579
if 
  locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4531
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @LOWR_4572

:LOWR_4531
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4572
goto @LOWR_4620

:LOWR_4579
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4620
close_sequence_task 49@
perform_sequence_task 78@ {sequence} 49@
clear_sequence_task 49@
goto @LOWR_4740

:LOWR_4645
if 
  is_char_playing_anim 78@ {animationName} "F_SMKLEAN_LOOP"
goto_if_false @LOWR_4740
if 
  not is_car_dead 74@
goto_if_false @LOWR_4740
if 
  not locate_car_3d 74@ {x} 143@ {y} 150@ {z} 157@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_4740
clear_char_tasks 78@

:LOWR_4740
goto @LOWR_8009

:LOWR_4747
if 
  not is_char_dead 79@
goto_if_false @LOWR_4890
43@ = get_script_task_status 79@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_4890
49@ = open_sequence_task 
if 
  not is_char_dead 80@
goto_if_false @LOWR_4831
task_chat_with_char -1 {other} 80@ {leadSpeaker} True {_p4} 1
goto @LOWR_4872

:LOWR_4831
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_4872
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:LOWR_4890
goto @LOWR_8009

:LOWR_4897
if 
  not is_char_dead 80@
goto_if_false @LOWR_5040
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5040
49@ = open_sequence_task 
if 
  not is_char_dead 79@
goto_if_false @LOWR_4981
task_chat_with_char -1 {other} 79@ {leadSpeaker} False {_p4} 1
goto @LOWR_5022

:LOWR_4981
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5022
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5040
goto @LOWR_8009

:LOWR_5047
if 
  not is_char_dead 81@
goto_if_false @LOWR_5155
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5155
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5155
goto @LOWR_8009

:LOWR_5162
if 
  not is_char_dead 82@
goto_if_false @LOWR_5305
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5305
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @LOWR_5246
task_chat_with_char -1 {other} 83@ {leadSpeaker} False {_p4} 1
goto @LOWR_5287

:LOWR_5246
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5287
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5305
goto @LOWR_8009

:LOWR_5312
if 
  not is_char_dead 83@
goto_if_false @LOWR_5455
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5455
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @LOWR_5396
task_chat_with_char -1 {other} 82@ {leadSpeaker} True {_p4} 1
goto @LOWR_5437

:LOWR_5396
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5437
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5455
goto @LOWR_8009

:LOWR_5462
if 
  not is_char_dead 84@
goto_if_false @LOWR_5571
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5571
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5571
goto @LOWR_8009

:LOWR_5578
if 
  not is_char_dead 85@
goto_if_false @LOWR_5687
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5687
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:LOWR_5687
goto @LOWR_8009

:LOWR_5694
if 
  not is_char_dead 86@
goto_if_false @LOWR_6063
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_5968
49@ = open_sequence_task 
if 
  not is_car_dead 75@
goto_if_false @LOWR_5902
if 
  locate_car_3d 75@ {x} 144@ {y} 151@ {z} 158@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_5854
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @LOWR_5895

:LOWR_5854
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5895
goto @LOWR_5943

:LOWR_5902
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:LOWR_5943
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@
goto @LOWR_6063

:LOWR_5968
if 
  is_char_playing_anim 86@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @LOWR_6063
if 
  not is_car_dead 75@
goto_if_false @LOWR_6063
if 
  not locate_car_3d 75@ {x} 144@ {y} 151@ {z} 158@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @LOWR_6063
clear_char_tasks 86@

:LOWR_6063
goto @LOWR_8009

:LOWR_6070
if 
  not is_char_dead 87@
goto_if_false @LOWR_6246
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6246
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6246
goto @LOWR_8009

:LOWR_6253
if 
  not is_char_dead 88@
goto_if_false @LOWR_6362
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6362
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6362
goto @LOWR_8009

:LOWR_6369
if 
  not is_char_dead 89@
goto_if_false @LOWR_6478
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6478
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6478
goto @LOWR_8009

:LOWR_6485
if 
  not is_char_dead 90@
goto_if_false @LOWR_6785
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_6785
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.179 {y} -1919.465 {z} 12.3928 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 179@ {y} 201@ {z} 223@ {speed} MoveState.Walk {time} 60000
if 
  not is_char_dead 86@
goto_if_false @LOWR_6726
task_turn_char_to_face_char -1 {target} 86@

:LOWR_6726
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:LOWR_6785
goto @LOWR_8009

:LOWR_6792
if 
  not is_char_dead 91@
goto_if_false @LOWR_7110
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7110
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1800.3669 {y} -1917.394 {z} 12.3938 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1789.057 {y} -1917.901 {z} 12.3936 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1788.526 {y} -1907.2939 {z} 12.3955 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.478 {y} -1908.174 {z} 12.3983 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7110
goto @LOWR_8009

:LOWR_7117
if 
  not is_char_dead 92@
goto_if_false @LOWR_7394
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7394
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1917.1071 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 181@ {y} 203@ {z} 225@ {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7394
goto @LOWR_8009

:LOWR_7401
if 
  not is_char_dead 93@
goto_if_false @LOWR_7503
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7503
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7503
goto @LOWR_8009

:LOWR_7510
if 
  not is_char_dead 94@
goto_if_false @LOWR_7612
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_7612
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:LOWR_7612
goto @LOWR_8009

:LOWR_7619
43@ = 0

:LOWR_7626
if 
  7 > 43@
goto_if_false @LOWR_7819
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_7805
if 
  not is_car_dead 69@(43@,7i)
goto_if_false @LOWR_7775
if 
  has_car_been_damaged_by_char 69@(43@,7i) {handle} $scplayer
goto_if_false @LOWR_7768
44@ = get_car_health 69@(43@,7i)
if 
  950 > 44@
goto_if_false @LOWR_7768
print_now 'LOW_32' {time} 5000 {flag} 1
127@ = 1
43@ = 7

:LOWR_7768
goto @LOWR_7805

:LOWR_7775
print_now 'LOW_32' {time} 5000 {flag} 1
127@ = 1
43@ = 7

:LOWR_7805
43@ += 1
goto @LOWR_7626

:LOWR_7819
goto @LOWR_8009

:LOWR_7826
43@ = 0

:LOWR_7833
if 
  22 > 43@
goto_if_false @LOWR_7995
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_7981
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_7951
if 
  has_char_been_damaged_by_char 77@(43@,22i) {handle} $scplayer
goto_if_false @LOWR_7944
print_now 'LOW_04' {time} 5000 {flag} 1
127@ = 1
43@ = 22

:LOWR_7944
goto @LOWR_7981

:LOWR_7951
print_now 'LOW_04' {time} 5000 {flag} 1
127@ = 1
43@ = 22

:LOWR_7981
43@ += 1
goto @LOWR_7833

:LOWR_7995
goto @LOWR_8009

:LOWR_8002
goto @LOWR_8009

:LOWR_8009
if 
  300 > 133@
goto_if_false @LOWR_8075
254@ = 1.0
257@ = 1.0
260@ = 0.0
263@ = 0.0
goto @LOWR_8148

:LOWR_8075
if 
  133@ > 500
goto_if_false @LOWR_8108
133@ = 0
goto @LOWR_8148

:LOWR_8108
254@ = 0.0
257@ = 0.0
260@ = 0.0
263@ = 0.0

:LOWR_8148
if 
  134@ > 2000
goto_if_false @LOWR_8222
283@ = generate_random_int_in_range 0 {max} 16
gosub @LOWR_20100
set_lvar_float_to_lvar_float 255@ = 281@
set_lvar_float_to_lvar_float 258@ = 279@
set_lvar_float_to_lvar_float 261@ = 282@
set_lvar_float_to_lvar_float 264@ = 280@
134@ = 0

:LOWR_8222
if 
  135@ > 300
goto_if_false @LOWR_8296
283@ = generate_random_int_in_range 0 {max} 16
gosub @LOWR_20100
set_lvar_float_to_lvar_float 256@ = 281@
set_lvar_float_to_lvar_float 259@ = 279@
set_lvar_float_to_lvar_float 262@ = 282@
set_lvar_float_to_lvar_float 265@ = 280@
135@ = 0

:LOWR_8296
if 
  not is_car_dead 69@
goto_if_false @LOWR_8438
if 
  does_car_have_hydraulics 69@
goto_if_false @LOWR_8438
control_car_hydraulics 69@ {_p2} 257@ {_p3} 263@ {_p4} 254@ {_p5} 260@
$x, $y, $z = get_car_coordinates 69@
set_lvar_float_to_lvar_float 50@ = 138@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 145@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 69@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_8438
if 
  not is_car_dead 72@
goto_if_false @LOWR_8580
if 
  does_car_have_hydraulics 72@
goto_if_false @LOWR_8580
control_car_hydraulics 72@ {_p2} 258@ {_p3} 264@ {_p4} 255@ {_p5} 261@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_8580
if 
  not is_car_dead 73@
goto_if_false @LOWR_8722
if 
  does_car_have_hydraulics 73@
goto_if_false @LOWR_8722
control_car_hydraulics 73@ {_p2} 259@ {_p3} 265@ {_p4} 256@ {_p5} 262@
$x, $y, $z = get_car_coordinates 73@
set_lvar_float_to_lvar_float 50@ = 142@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 149@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 73@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_8722
goto @LOWR_9015

:LOWR_8729
if 
  127@ == 1
goto_if_false @LOWR_9015
43@ = 0

:LOWR_8754
if 
  12 > 43@
goto_if_false @LOWR_8815
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_8801
clear_char_tasks_immediately 77@(43@,22i)

:LOWR_8801
43@ += 1
goto @LOWR_8754

:LOWR_8815
if 
  37@ <> 1
goto_if_false @LOWR_8905
43@ = 0

:LOWR_8840
if 
  22 > 43@
goto_if_false @LOWR_8905
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_8891
set_char_relationship 77@(43@,22i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:LOWR_8891
43@ += 1
goto @LOWR_8840

:LOWR_8905
43@ = 0

:LOWR_8912
if 
  22 > 43@
goto_if_false @LOWR_8953
mark_char_as_no_longer_needed 77@(43@,22i)
43@ += 1
goto @LOWR_8912

:LOWR_8953
43@ = 0

:LOWR_8960
if 
  7 > 43@
goto_if_false @LOWR_9001
mark_car_as_no_longer_needed 69@(43@,7i)
43@ += 1
goto @LOWR_8960

:LOWR_9001
37@ = 1
127@ += 1

:LOWR_9015
if 
  $lowr_timer > 120000
goto_if_false @LOWR_9066
print_now 'LOW_35' {time} 5000 {flag} 1
37@ = 1
goto @LOWR_9428

:LOWR_9066
if 
  locate_char_in_car_3d $scplayer {x} 1793.068 {y} -1904.254 {z} 12.3989 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @LOWR_9403
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_low_rider $car
goto_if_false @LOWR_9355
if 
  does_car_have_hydraulics $car
goto_if_false @LOWR_9307
43@ = store_score $player1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 43@ >= 271@
goto_if_false @LOWR_9256
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
35@ = 99
set_player_control $player1 {state} False
68@ = store_car_char_is_in $scplayer
do_fade 500 {direction} Fade.Out

:LOWR_9225
if 
  get_fading_status 
goto_if_false @LOWR_9249
wait 0
goto @LOWR_9225

:LOWR_9249
goto @LOWR_9300

:LOWR_9256
if 
  62@ == 0
goto_if_false @LOWR_9300
print_with_number_now 'LOW_38' {num} 271@ {duration} 5000 {flag} 1
62@ += 1

:LOWR_9300
goto @LOWR_9348

:LOWR_9307
if 
  62@ == 0
goto_if_false @LOWR_9348
print_now 'LOW_36' {time} 5000 {flag} 1
62@ += 1

:LOWR_9348
goto @LOWR_9396

:LOWR_9355
if 
  62@ == 0
goto_if_false @LOWR_9396
print_now 'LOW_36' {time} 5000 {flag} 1
62@ += 1

:LOWR_9396
goto @LOWR_9428

:LOWR_9403
if 
  62@ <> 0
goto_if_false @LOWR_9428
62@ = 0

:LOWR_9428
if 
  35@ == 99
goto_if_false @LOWR_9453
gosub @LOWR_27192

:LOWR_9453
return 

:LOWR_9455
if 
  35@ == 0
goto_if_false @LOWR_10048
do_fade 500 {direction} Fade.Out

:LOWR_9480
if 
  get_fading_status 
goto_if_false @LOWR_9504
wait 0
goto @LOWR_9480

:LOWR_9504
if 
  not is_car_dead 68@
goto_if_false @LOWR_9525
reset_vehicle_hydraulics 68@

:LOWR_9525
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1793.068 {y} -1904.254 {z} 12.3989 {radius} 30.0 {clearParticles} True
if 
  does_blip_exist 102@
goto_if_false @LOWR_9584
remove_blip 102@

:LOWR_9584
if 
  not is_car_dead 68@
goto_if_false @LOWR_9630
set_car_coordinates 68@ {x} 1793.068 {y} -1904.254 {z} 12.3989
set_car_heading 68@ {heading} 171.6728

:LOWR_9630
43@ = 0

:LOWR_9637
if 
  16 > 43@
goto_if_false @LOWR_9698
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_9684
clear_char_tasks_immediately 77@(43@,22i)

:LOWR_9684
43@ += 1
goto @LOWR_9637

:LOWR_9698
43@ = 0

:LOWR_9705
if 
  22 > 43@
goto_if_false @LOWR_9769
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_9755
set_char_decision_maker 77@(43@,22i) {handleOrTemplate} 66@

:LOWR_9755
43@ += 1
goto @LOWR_9705

:LOWR_9769
43@ = 0

:LOWR_9776
if 
  16 > 43@
goto_if_false @LOWR_9874
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_9860
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)

:LOWR_9860
43@ += 1
goto @LOWR_9776

:LOWR_9874
43@ = 0

:LOWR_9881
if 
  7 > 43@
goto_if_false @LOWR_9979
if 
  not is_car_dead 69@(43@,7i)
goto_if_false @LOWR_9965
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)

:LOWR_9965
43@ += 1
goto @LOWR_9881

:LOWR_9979
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1796.749 {y} -1916.9611 {z} 13.8583 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1796.125 {y} -1916.181 {z} 13.807 {switchStyle} SwitchType.JumpCut
35@ += 1

:LOWR_10048
if 
  35@ == 1
goto_if_false @LOWR_10073
35@ += 1

:LOWR_10073
if 
  35@ == 2
goto_if_false @LOWR_10231
if 
  not is_char_dead 95@
goto_if_false @LOWR_10231
clear_char_tasks_immediately 95@
set_char_coordinates 95@ {x} 1792.631 {y} -1909.274 {z} 12.4371
set_char_heading 95@ {heading} 331.0204
set_fixed_camera_position 1793.816 {y} -1910.713 {z} 14.0346 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.453 {y} -1909.801 {z} 13.8451 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:LOWR_10200
if 
  get_fading_status 
goto_if_false @LOWR_10224
wait 0
goto @LOWR_10200

:LOWR_10224
35@ += 1

:LOWR_10231
if 
  35@ == 3
goto_if_false @LOWR_10698
if 
  not is_char_dead 95@
goto_if_false @LOWR_10698
49@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKF" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@
43@ = generate_random_int_in_range 0 {max} 3
switch_start 43@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @LOWR_10684 {caseNum1} 0 {caseLabel1} @LOWR_10540 {caseNum2} 1 {caseLabel2} @LOWR_10588 {caseNum3} 2 {caseLabel3} @LOWR_10636 {caseNum4} -1 {caseLabel4} @LOWR_10684 {caseNum5} -1 {caseLabel5} @LOWR_10684 {caseNum6} -1 {caseLabel6} @LOWR_10684 {caseNum7} -1 {caseLabel7} @LOWR_10684

:LOWR_10540
set_var_text_label s$audio_string = 'LOWR_BA'
set_var_int_to_constant $audio_sound_file = 22808
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10588
set_var_text_label s$audio_string = 'LOWR_BB'
set_var_int_to_constant $audio_sound_file = 22809
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10636
set_var_text_label s$audio_string = 'LOWR_BC'
set_var_int_to_constant $audio_sound_file = 22810
start_new_script @AUDIOL 95@ 0 1 1 0 
goto @LOWR_10684

:LOWR_10684
TIMERA = 0
35@ += 1

:LOWR_10698
if 
  35@ == 4
goto_if_false @LOWR_10812
if 
  TIMERA > 1000
goto_if_false @LOWR_10812
if or
  $audio_line_is_active == 0
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWR_10812
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
35@ += 1
131@ = 1
if 
  not is_char_dead 95@
goto_if_false @LOWR_10812
clear_char_tasks 95@

:LOWR_10812
if 
  35@ == 5
goto_if_false @LOWR_10944
clear_prints 
switch_widescreen False
set_fixed_camera_position 1793.485 {y} -1907.354 {z} 13.4436 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.129 {y} -1908.2889 {z} 13.4481 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 273@ = 271@
set_lvar_int_to_lvar_int 43@ = 273@
43@ *= -1
add_score $player1 {money} 43@
print_help_forever 'LOW_37'
use_text_commands True
wait 1
35@ += 1

:LOWR_10944
if 
  35@ == 6
goto_if_false @LOWR_12351
if and
  has_game_just_returned_from_frontend 
  has_language_changed 
goto_if_false @LOWR_10990
clear_help 
print_help_forever 'LOW_37'

:LOWR_10990
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @LOWR_11416
if and
  274@ <> 1
  274@ <> -1
goto_if_false @LOWR_11365
if 
  273@ >= 10000
goto_if_false @LOWR_11066
270@ = 1000
goto @LOWR_11170

:LOWR_11066
if 
  273@ >= 1000
goto_if_false @LOWR_11099
270@ = 100
goto @LOWR_11170

:LOWR_11099
if 
  273@ >= 100
goto_if_false @LOWR_11131
270@ = 10
goto @LOWR_11170

:LOWR_11131
if 
  273@ == 0
goto_if_false @LOWR_11163
270@ = 2
goto @LOWR_11170

:LOWR_11163
270@ = 1

:LOWR_11170
43@ = store_score $player1
if 
  is_int_lvar_greater_than_int_lvar 270@ > 43@
goto_if_false @LOWR_11205
set_lvar_int_to_lvar_int 270@ = 43@

:LOWR_11205
set_lvar_int_to_lvar_int 43@ = 273@
add_int_lvar_to_int_lvar 43@ += 270@
if 
  is_int_lvar_greater_than_int_lvar 43@ > 272@
goto_if_false @LOWR_11256
set_lvar_int_to_lvar_int 270@ = 272@
sub_int_lvar_from_int_lvar 270@ -= 273@

:LOWR_11256
if 
  0 > 270@
goto_if_false @LOWR_11281
270@ *= -1

:LOWR_11281
add_int_lvar_to_int_lvar 273@ += 270@
add_int_lvar_to_int_lvar 275@ += 270@
270@ *= -1
add_score $player1 {money} 270@
274@ += 1
if 
  274@ > 1
goto_if_false @LOWR_11351
274@ = 2
goto @LOWR_11358

:LOWR_11351
TIMERA = 0

:LOWR_11358
goto @LOWR_11409

:LOWR_11365
if 
  274@ == 1
goto_if_false @LOWR_11409
if 
  TIMERA > 500
goto_if_false @LOWR_11409
274@ = 2

:LOWR_11409
goto @LOWR_11807

:LOWR_11416
if 
  274@ <> 0
goto_if_false @LOWR_11441
274@ = 0

:LOWR_11441
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @LOWR_11782
if 
  276@ <> 1
goto_if_false @LOWR_11749
if 
  273@ > 10000
goto_if_false @LOWR_11510
270@ = -1000
goto @LOWR_11582

:LOWR_11510
if 
  273@ > 1000
goto_if_false @LOWR_11543
270@ = -100
goto @LOWR_11582

:LOWR_11543
if 
  273@ > 100
goto_if_false @LOWR_11575
270@ = -10
goto @LOWR_11582

:LOWR_11575
270@ = -1

:LOWR_11582
set_lvar_int_to_lvar_int 43@ = 273@
add_int_lvar_to_int_lvar 273@ += 270@
if 
  is_int_lvar_greater_than_int_lvar 271@ > 273@
goto_if_false @LOWR_11639
273@ = 0
set_lvar_int_to_lvar_int 270@ = 43@
270@ *= -1

:LOWR_11639
if 
  is_int_lvar_greater_than_int_lvar 271@ > 273@
goto_if_false @LOWR_11673
set_lvar_int_to_lvar_int 273@ = 271@
goto @LOWR_11696

:LOWR_11673
270@ *= -1
sub_int_lvar_from_int_lvar 275@ -= 270@
add_score $player1 {money} 270@

:LOWR_11696
276@ += 1
if 
  276@ > 1
goto_if_false @LOWR_11735
276@ = 2
goto @LOWR_11742

:LOWR_11735
TIMERA = 0

:LOWR_11742
goto @LOWR_11775

:LOWR_11749
if 
  TIMERA > 500
goto_if_false @LOWR_11775
276@ = 2

:LOWR_11775
goto @LOWR_11807

:LOWR_11782
if 
  276@ <> 0
goto_if_false @LOWR_11807
276@ = 0

:LOWR_11807
gosub @LOWR_26737
if 
  131@ == 0
goto_if_false @LOWR_11883
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWR_11876
cset_lvar_float_to_lvar_int 46@ =# 273@
46@ *= 0.1
clear_help 
35@ += 1

:LOWR_11876
goto @LOWR_11907

:LOWR_11883
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWR_11907
131@ = 0

:LOWR_11907
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @LOWR_12351
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  does_vehicle_exist 70@
goto_if_false @LOWR_11960
delete_car 70@

:LOWR_11960
if 
  does_vehicle_exist 73@
goto_if_false @LOWR_11981
delete_car 73@

:LOWR_11981
if 
  does_vehicle_exist 71@
goto_if_false @LOWR_12002
delete_car 71@

:LOWR_12002
if 
  does_vehicle_exist 74@
goto_if_false @LOWR_12023
delete_car 74@

:LOWR_12023
if 
  does_vehicle_exist 72@
goto_if_false @LOWR_12044
delete_car 72@

:LOWR_12044
if 
  does_char_exist 78@
goto_if_false @LOWR_12065
delete_char 78@

:LOWR_12065
if 
  does_char_exist 80@
goto_if_false @LOWR_12086
delete_char 80@

:LOWR_12086
if 
  does_char_exist 93@
goto_if_false @LOWR_12107
delete_char 93@

:LOWR_12107
if 
  does_char_exist 83@
goto_if_false @LOWR_12128
delete_char 83@

:LOWR_12128
if 
  does_char_exist 84@
goto_if_false @LOWR_12149
delete_char 84@

:LOWR_12149
if 
  does_char_exist 86@
goto_if_false @LOWR_12170
delete_char 86@

:LOWR_12170
if 
  does_char_exist 87@
goto_if_false @LOWR_12191
delete_char 87@

:LOWR_12191
if 
  does_char_exist 89@
goto_if_false @LOWR_12212
delete_char 89@

:LOWR_12212
if 
  does_char_exist 97@
goto_if_false @LOWR_12233
delete_char 97@

:LOWR_12233
if 
  does_char_exist 90@
goto_if_false @LOWR_12254
delete_char 90@

:LOWR_12254
if 
  not is_char_dead 99@
goto_if_false @LOWR_12313
if 
  not is_car_dead 68@
goto_if_false @LOWR_12313
if 
  is_char_in_car 99@ {vehicle} 68@
goto_if_false @LOWR_12313
task_leave_car 99@ {vehicle} 68@

:LOWR_12313
do_fade 500 {direction} Fade.In

:LOWR_12320
if 
  get_fading_status 
goto_if_false @LOWR_12344
wait 0
goto @LOWR_12320

:LOWR_12344
37@ = 1

:LOWR_12351
if 
  35@ == 7
goto_if_false @LOWR_12380
use_text_commands False
35@ += 1

:LOWR_12380
if 
  35@ == 8
goto_if_false @LOWR_12405
35@ += 1

:LOWR_12405
if 
  35@ == 9
goto_if_false @LOWR_12430
35@ += 1

:LOWR_12430
if 
  35@ == 10
goto_if_false @LOWR_12507
if 
  TIMERA > 2000
goto_if_false @LOWR_12507
clear_prints 
do_fade 500 {direction} Fade.Out

:LOWR_12476
if 
  get_fading_status 
goto_if_false @LOWR_12500
wait 0
goto @LOWR_12476

:LOWR_12500
35@ = 99

:LOWR_12507
if 
  37@ <> 1
goto_if_false @LOWR_12532
gosub @LOWR_21030

:LOWR_12532
if 
  35@ == 99
goto_if_false @LOWR_12557
gosub @LOWR_27192

:LOWR_12557
return 

:LOWR_12559
if 
  35@ == 0
goto_if_false @LOWR_12665
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position 1788.1071 {y} -1903.804 {z} 13.3553 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1788.944 {y} -1904.343 {z} 13.2601 {switchStyle} SwitchType.JumpCut
load_scene 1788.944 {y} -1904.343 {z} 13.2601
35@ += 1

:LOWR_12665
if 
  35@ == 1
goto_if_false @LOWR_15486
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:LOWR_12727
if 
  not has_model_loaded 114
goto_if_false @LOWR_12753
wait 0
goto @LOWR_12727

:LOWR_12753
if 
  not has_model_loaded 115
goto_if_false @LOWR_12779
wait 0
goto @LOWR_12753

:LOWR_12779
if 
  not has_model_loaded 116
goto_if_false @LOWR_12805
wait 0
goto @LOWR_12779

:LOWR_12805
if 
  not has_model_loaded 63
goto_if_false @LOWR_12831
wait 0
goto @LOWR_12805

:LOWR_12831
if 
  not has_model_loaded 41
goto_if_false @LOWR_12857
wait 0
goto @LOWR_12831

:LOWR_12857
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @LOWR_12889
wait 0
goto @LOWR_12857

:LOWR_12889
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @LOWR_12923
wait 0
goto @LOWR_12889

:LOWR_12923
138@ = 1798.203
145@ = -1926.222
152@ = 12.3895
159@ = 73.1404
139@ = 1802.864
146@ = -1918.741
153@ = 12.3931
160@ = 357.6193
140@ = 1784.635
147@ = -1924.968
154@ = 12.3901
161@ = 305.062
141@ = 1784.188
148@ = -1913.439
155@ = 12.3923
162@ = 183.5814
142@ = 1792.318
149@ = -1919.5129
156@ = 12.3928
163@ = 8.2504
143@ = 1801.462
150@ = -1905.691
157@ = 12.3995
164@ = 189.9314
144@ = 1787.642
151@ = -1901.136
158@ = 12.3949
165@ = 145.4181
166@ = 1800.0
188@ = -1907.83
210@ = 12.4398
232@ = 73.7198
167@ = 1799.8459
189@ = -1912.124
211@ = 12.4582
233@ = 48.2386
168@ = 1800.0861
190@ = -1910.434
212@ = 12.4372
234@ = 83.7398
169@ = 1801.321
191@ = -1916.427
213@ = 12.4343
235@ = 83.7398
170@ = 1798.541
192@ = -1922.1801
214@ = 12.431
236@ = 46.5794
171@ = 1799.49
193@ = -1920.6169
215@ = 12.4322
237@ = 46.5794
172@ = 1787.255
194@ = -1926.597
216@ = 12.4283
238@ = 323.6194
173@ = 1786.442
195@ = -1920.201
217@ = 12.4322
239@ = 306.1995
174@ = 1785.824
196@ = -1919.162
218@ = 12.4324
240@ = 294.6196
175@ = 1786.1021
197@ = -1913.833
219@ = 12.4327
241@ = 280.7204
176@ = 1786.806
198@ = -1905.246
220@ = 12.4342
242@ = 262.8214
177@ = 1788.693
199@ = -1902.139
221@ = 12.4348
243@ = 247.161
178@ = 1794.616
200@ = -1899.608
222@ = 12.4398
244@ = 191.0618
179@ = 1799.135
201@ = -1902.488
223@ = 12.4431
245@ = 157.4622
180@ = 1795.674
202@ = -1899.569
224@ = 12.4407
246@ = 162.6424
181@ = 1800.369
203@ = -1907.0031
225@ = 12.4403
247@ = 77.6197
182@ = 1800.826
204@ = -1917.325
226@ = 12.434
248@ = 36.1793
183@ = 1785.85
205@ = -1917.955
227@ = 12.4324
249@ = 287.0602
184@ = 1788.538
206@ = -1927.0909
228@ = 12.428
250@ = 345.1206
185@ = 1787.323
207@ = -1904.11
229@ = 12.4337
251@ = 263.3813
186@ = 1798.39
208@ = -1901.733
230@ = 12.4429
252@ = 142.4208
$lowrider_level = -1
$lowrider_last_level = -1
269@ = 0.01
43@ = 0

:LOWR_14074
if 
  7 > 43@
goto_if_false @LOWR_14135
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_14121
delete_car 69@(43@,7i)

:LOWR_14121
43@ += 1
goto @LOWR_14074

:LOWR_14135
43@ = 0

:LOWR_14142
if 
  22 > 43@
goto_if_false @LOWR_14203
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_14189
delete_char 77@(43@,22i)

:LOWR_14189
43@ += 1
goto @LOWR_14142

:LOWR_14203
if 
  not does_vehicle_exist 68@
goto_if_false @LOWR_14264
68@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231
reset_vehicle_hydraulics 68@
goto @LOWR_14310

:LOWR_14264
if 
  not is_car_dead 68@
goto_if_false @LOWR_14310
set_car_coordinates 68@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231

:LOWR_14310
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 68@
goto_if_false @LOWR_14382
warp_char_into_car $scplayer {vehicle} 68@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:LOWR_14382
69@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
71@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 69@ {color1} 1 {color2} 0
change_car_colour 70@ {color1} 2 {color2} 1
change_car_colour 71@ {color1} 3 {color2} 2
change_car_colour 72@ {color1} 10 {color2} 3
change_car_colour 73@ {color1} 9 {color2} 4
change_car_colour 74@ {color1} 6 {color2} 5
change_car_colour 75@ {color1} 7 {color2} 6
43@ = 0

:LOWR_14613
if 
  7 > 43@
goto_if_false @LOWR_14713
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)
freeze_car_position 69@(43@,7i) {state} True
lock_car_doors 69@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @LOWR_14613

:LOWR_14713
freeze_car_position 73@ {state} False
set_car_status 73@ {status} EntityStatus.Physics
set_car_hydraulics 73@ {state} True
set_car_only_damaged_by_player 73@ {state} True
set_car_proofs 73@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
77@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char_inside_car 73@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:LOWR_15279
if 
  21 > 43@
goto_if_false @LOWR_15357
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)
43@ += 1
goto @LOWR_15279

:LOWR_15357
99@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 99@ {heading} 232.5412
if 
  $lowr_track_to_play == 0
goto_if_false @LOWR_15427
preload_beat_track 13
$lowr_track_to_play += 1
goto @LOWR_15438

:LOWR_15427
preload_beat_track 0
$lowr_track_to_play = 0

:LOWR_15438
43@ = 0

:LOWR_15445
if 
  not is_int_lvar_equal_to_constant 43@ == 2
goto_if_false @LOWR_15479
wait 0
43@ = get_beat_track_status 
goto @LOWR_15445

:LOWR_15479
35@ += 1

:LOWR_15486
if 
  35@ == 2
goto_if_false @LOWR_15610
if 
  is_char_in_any_car $scplayer
goto_if_false @LOWR_15610
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead $car
goto_if_false @LOWR_15577
if 
  not is_car_passenger_seat_free $car {seat} SeatId.BikeRear
goto_if_false @LOWR_15577
277@ = get_char_in_car_passenger_seat $car {seat} SeatId.BikeRear
delete_char 277@

:LOWR_15577
if 
  not is_char_dead 99@
goto_if_false @LOWR_15610
warp_char_into_car_as_passenger 99@ {handle} $car {seat} SeatId.BikeRear
35@ += 1

:LOWR_15610
if 
  35@ == 3
goto_if_false @LOWR_16181
switch_widescreen False
set_fixed_camera_position 1788.516 {y} -1910.318 {z} 14.8901 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1789.355 {y} -1909.843 {z} 14.6269 {switchStyle} SwitchType.JumpCut
display_radar False
display_hud False
if 
  not is_car_dead 68@
goto_if_false @LOWR_15736
lock_car_doors 68@ {lockStatus} CarLock.LockedPlayerInside
apply_brakes_to_players_car $player1 {state} True
set_car_proofs 68@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:LOWR_15736
266@ = 0.62
267@ = 0.31
268@ = -0.167
if 
  not is_car_dead 68@
goto_if_false @LOWR_15848
if 
  not is_char_dead 99@
goto_if_false @LOWR_15848
if 
  is_car_model 68@ {modelId} 567
goto_if_false @LOWR_15848
clear_char_tasks_immediately 99@
attach_char_to_car 99@ {vehicle} 68@ {xOffset} 266@ {yOffset} 267@ {zOffset} 268@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:LOWR_15848
49@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
if 
  not is_char_dead 99@
goto_if_false @LOWR_15983
if 
  is_char_attached_to_any_car 99@
goto_if_false @LOWR_15983
perform_sequence_task 99@ {sequence} 49@

:LOWR_15983
clear_sequence_task 49@
TIMERA = 0
$lowrider_level = -1
$lowrider_last_level = -1
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWR_16034
$lowrider_opposition_skill = 1

:LOWR_16034
cset_lvar_float_to_lvar_int 46@ =# 273@
cset_lvar_float_to_lvar_int 47@ =# 272@
div_float_lvar_by_float_lvar 46@ /= 47@
46@ *= 4.0
cset_lvar_int_to_lvar_float 43@ =# 46@
add_int_lvar_to_int_var $lowrider_opposition_skill += 43@
if 
  $lowrider_opposition_skill > 5
goto_if_false @LOWR_16109
$lowrider_opposition_skill = 5

:LOWR_16109
if 
  1 > $lowrider_opposition_skill
goto_if_false @LOWR_16134
$lowrider_opposition_skill = 1

:LOWR_16134
wait 500
do_fade 500 {direction} Fade.In

:LOWR_16146
if 
  get_fading_status 
goto_if_false @LOWR_16170
wait 0
goto @LOWR_16146

:LOWR_16170
clear_prints 
play_beat_track 
35@ += 1

:LOWR_16181
if 
  35@ == 4
goto_if_false @LOWR_16295
set_player_control $player1 {state} True
start_new_script @BDISPLY 
start_new_script @LOWGAME 68@ 73@ 99@ 
TIMERA = 0
136@ = 0
130@ = 0
clear_prints 
clear_help 
print_help 'LOW_26'
65@ = 0
63@ = 0
TIMERA = 0
35@ += 1

:LOWR_16295
if 
  35@ == 5
goto_if_false @LOWR_16338
if 
  $lowrider_game_is_active == 1
goto_if_false @LOWR_16338
35@ += 1

:LOWR_16338
if 
  35@ == 6
goto_if_false @LOWR_17504
if 
  $lowrider_game_is_active == 1
goto_if_false @LOWR_17497
if 
  132@ == 0
goto_if_false @LOWR_16815
if or
  136@ > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @LOWR_16808
130@ += 1
if 
  130@ >= 5
goto_if_false @LOWR_16449
130@ = 0

:LOWR_16449
if 
  not is_car_dead 68@
goto_if_false @LOWR_16479
$x, $y, $z = get_car_coordinates 68@

:LOWR_16479
if 
  130@ == 0
goto_if_false @LOWR_16542
set_fixed_camera_position 1803.978 {y} -1909.369 {z} 15.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16542
if 
  130@ == 1
goto_if_false @LOWR_16605
set_fixed_camera_position 1795.369 {y} -1900.999 {z} 14.1795 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16605
if 
  130@ == 2
goto_if_false @LOWR_16668
set_fixed_camera_position 1788.793 {y} -1902.99 {z} 13.7203 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16668
if 
  130@ == 3
goto_if_false @LOWR_16731
set_fixed_camera_position 1789.377 {y} -1912.1949 {z} 14.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16731
if 
  130@ == 4
goto_if_false @LOWR_16794
set_fixed_camera_position 1796.4091 {y} -1912.231 {z} 13.8316 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:LOWR_16794
132@ += 1
136@ = 0

:LOWR_16808
goto @LOWR_16839

:LOWR_16815
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @LOWR_16839
132@ = 0

:LOWR_16839
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @LOWR_17490
$x, $y, $z = get_active_camera_coordinates 
if 
  not is_car_dead 68@
goto_if_false @LOWR_16903
56@, 57@, 58@ = get_car_coordinates 68@
$heading = get_car_heading 68@

:LOWR_16903
$heading *= -1.0
46@ = cos $heading
47@ = sin $heading
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@
$x, $y, $z = get_active_camera_point_at 
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@

:LOWR_17490
goto @LOWR_17504

:LOWR_17497
35@ += 1

:LOWR_17504
if 
  35@ == 7
goto_if_false @LOWR_17567
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:LOWR_17536
if 
  get_fading_status 
goto_if_false @LOWR_17560
wait 0
goto @LOWR_17536

:LOWR_17560
35@ = 99

:LOWR_17567
gosub @LOWR_23874
if 
  35@ == 99
goto_if_false @LOWR_17599
gosub @LOWR_27192

:LOWR_17599
return 

:LOWR_17601
if 
  35@ == 0
goto_if_false @LOWR_17639
stop_beat_track 
clear_prints 
restore_camera_jumpcut 
set_player_control $player1 {state} False
35@ += 1

:LOWR_17639
if 
  35@ == 1
goto_if_false @LOWR_19108
43@ = 0

:LOWR_17664
if 
  7 > 43@
goto_if_false @LOWR_17725
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_17711
delete_car 69@(43@,7i)

:LOWR_17711
43@ += 1
goto @LOWR_17664

:LOWR_17725
43@ = 0

:LOWR_17732
if 
  22 > 43@
goto_if_false @LOWR_17793
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_17779
delete_char 77@(43@,22i)

:LOWR_17779
43@ += 1
goto @LOWR_17732

:LOWR_17793
if 
  does_char_exist 99@
goto_if_false @LOWR_17814
delete_char 99@

:LOWR_17814
if 
  not does_vehicle_exist 68@
goto_if_false @LOWR_17870
68@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231
goto @LOWR_17916

:LOWR_17870
if 
  not is_car_dead 68@
goto_if_false @LOWR_17916
set_car_coordinates 68@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 68@ {heading} 181.5231

:LOWR_17916
69@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
71@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 69@ {color1} 1 {color2} 0
change_car_colour 70@ {color1} 2 {color2} 1
change_car_colour 71@ {color1} 3 {color2} 2
change_car_colour 72@ {color1} 10 {color2} 3
change_car_colour 73@ {color1} 9 {color2} 4
change_car_colour 74@ {color1} 6 {color2} 5
change_car_colour 75@ {color1} 7 {color2} 6
43@ = 0

:LOWR_18147
if 
  7 > 43@
goto_if_false @LOWR_18247
set_car_coordinates 69@(43@,7i) {x} 138@(43@,7f) {y} 145@(43@,7f) {z} 152@(43@,7f)
set_car_heading 69@(43@,7i) {heading} 159@(43@,7f)
freeze_car_position 69@(43@,7i) {state} True
lock_car_doors 69@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @LOWR_18147

:LOWR_18247
freeze_car_position 73@ {state} False
set_car_status 73@ {status} EntityStatus.Physics
set_car_hydraulics 73@ {state} True
set_car_only_damaged_by_player 73@ {state} True
set_car_proofs 73@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
77@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char_inside_car 73@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:LOWR_18813
if 
  21 > 43@
goto_if_false @LOWR_18891
set_char_coordinates 77@(43@,22i) {x} 166@(43@,22f) {y} 188@(43@,22f) {z} 210@(43@,22f)
set_char_heading 77@(43@,22i) {heading} 232@(43@,22f)
43@ += 1
goto @LOWR_18813

:LOWR_18891
99@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 99@ {heading} 232.5412
if 
  not is_car_dead 68@
goto_if_false @LOWR_19005
reset_vehicle_hydraulics 68@
if 
  not is_car_passenger_seat_free 68@ {seat} SeatId.BikeRear
goto_if_false @LOWR_18979
277@ = get_char_in_car_passenger_seat 68@ {seat} SeatId.BikeRear
delete_char 277@

:LOWR_18979
if 
  not is_char_dead 99@
goto_if_false @LOWR_19005
warp_char_into_car_as_passenger 99@ {handle} 68@ {seat} SeatId.BikeRear

:LOWR_19005
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 68@
goto_if_false @LOWR_19077
warp_char_into_car $scplayer {vehicle} 68@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:LOWR_19077
load_scene_in_direction 1793.0 {y} -1908.0 {z} 14.0 {heading} 180.0
load_all_models_now 
35@ = 99

:LOWR_19108
if 
  35@ == 99
goto_if_false @LOWR_19747
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
load_scene_in_direction 1793.0 {y} -1908.0 {z} 14.0 {heading} 180.0
load_all_models_now 
wait 500
if 
  does_vehicle_exist 70@
goto_if_false @LOWR_19191
delete_car 70@

:LOWR_19191
if 
  does_vehicle_exist 73@
goto_if_false @LOWR_19212
delete_car 73@

:LOWR_19212
if 
  does_vehicle_exist 71@
goto_if_false @LOWR_19233
delete_car 71@

:LOWR_19233
if 
  does_vehicle_exist 74@
goto_if_false @LOWR_19254
delete_car 74@

:LOWR_19254
if 
  does_vehicle_exist 72@
goto_if_false @LOWR_19275
delete_car 72@

:LOWR_19275
if 
  does_char_exist 78@
goto_if_false @LOWR_19296
delete_char 78@

:LOWR_19296
if 
  does_char_exist 80@
goto_if_false @LOWR_19317
delete_char 80@

:LOWR_19317
if 
  does_char_exist 93@
goto_if_false @LOWR_19338
delete_char 93@

:LOWR_19338
if 
  does_char_exist 83@
goto_if_false @LOWR_19359
delete_char 83@

:LOWR_19359
if 
  does_char_exist 84@
goto_if_false @LOWR_19380
delete_char 84@

:LOWR_19380
if 
  does_char_exist 86@
goto_if_false @LOWR_19401
delete_char 86@

:LOWR_19401
if 
  does_char_exist 87@
goto_if_false @LOWR_19422
delete_char 87@

:LOWR_19422
if 
  does_char_exist 89@
goto_if_false @LOWR_19443
delete_char 89@

:LOWR_19443
if 
  does_char_exist 97@
goto_if_false @LOWR_19464
delete_char 97@

:LOWR_19464
if 
  does_char_exist 90@
goto_if_false @LOWR_19485
delete_char 90@

:LOWR_19485
if 
  not is_char_dead 81@
goto_if_false @LOWR_19530
if 
  not is_car_dead 69@
goto_if_false @LOWR_19530
clear_char_tasks_immediately 81@
warp_char_into_car 81@ {vehicle} 69@

:LOWR_19530
if 
  not is_char_dead 88@
goto_if_false @LOWR_19575
if 
  not is_car_dead 75@
goto_if_false @LOWR_19575
clear_char_tasks_immediately 88@
warp_char_into_car 88@ {vehicle} 75@

:LOWR_19575
if 
  not is_char_dead 99@
goto_if_false @LOWR_19615
if 
  not is_car_dead 68@
goto_if_false @LOWR_19615
task_leave_car 99@ {vehicle} 68@

:LOWR_19615
do_fade 500 {direction} Fade.In

:LOWR_19622
if 
  get_fading_status 
goto_if_false @LOWR_19646
wait 0
goto @LOWR_19622

:LOWR_19646
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @LOWR_19713
273@ *= 2
print_with_number_big 'WINNER' {num} 273@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 273@
36@ = 1
goto @LOWR_19736

:LOWR_19713
print_now 'LOW_33' {time} 5000 {flag} 1
37@ = 1

:LOWR_19736
wait 0
gosub @LOWR_27192

:LOWR_19747
gosub @LOWR_23874
return 

:LOWR_19756
if 
is_ps2_keyboard_key_just_pressed 52
goto_if_false @LOWR_19781
269@ += 0.01

:LOWR_19781
if 
is_ps2_keyboard_key_just_pressed 53
goto_if_false @LOWR_19806
269@ += -0.01

:LOWR_19806
if 
  does_vehicle_exist 68@
goto_if_false @LOWR_19861
if 
  is_car_dead 68@
goto_if_false @LOWR_19861
print_now 'LOW_34' {time} 5000 {flag} 1
37@ = 1

:LOWR_19861
if 
  is_player_playing $player1
goto_if_false @LOWR_20038
if 
  34@ > 2
goto_if_false @LOWR_20038
if 
  278@ == 0
goto_if_false @LOWR_19979
if 
  locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 125.0 {yRadius} 125.0 {drawSphere} False
goto_if_false @LOWR_19972
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
278@ = 1

:LOWR_19972
goto @LOWR_20038

:LOWR_19979
if 
  not locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @LOWR_20038
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
278@ = 0

:LOWR_20038
return 
if 
  not is_car_dead 68@
goto_if_false @LOWR_20098
if 
  not is_char_dead 99@
goto_if_false @LOWR_20098
attach_char_to_car 99@ {vehicle} 68@ {xOffset} 266@ {yOffset} 267@ {zOffset} 268@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:LOWR_20098
return 

:LOWR_20100
if 
  283@ == 0
goto_if_false @LOWR_20158
279@ = 0.0
280@ = 0.0
281@ = 0.0
282@ = 0.0

:LOWR_20158
if 
  283@ == 1
goto_if_false @LOWR_20216
279@ = 0.0
280@ = 0.0
281@ = 0.0
282@ = 1.0

:LOWR_20216
if 
  283@ == 2
goto_if_false @LOWR_20274
279@ = 0.0
280@ = 0.0
281@ = 1.0
282@ = 0.0

:LOWR_20274
if 
  283@ == 3
goto_if_false @LOWR_20332
279@ = 0.0
280@ = 0.0
281@ = 1.0
282@ = 1.0

:LOWR_20332
if 
  283@ == 4
goto_if_false @LOWR_20390
279@ = 0.0
280@ = 1.0
281@ = 0.0
282@ = 0.0

:LOWR_20390
if 
  283@ == 5
goto_if_false @LOWR_20448
279@ = 0.0
280@ = 1.0
281@ = 0.0
282@ = 1.0

:LOWR_20448
if 
  283@ == 6
goto_if_false @LOWR_20506
279@ = 0.0
280@ = 1.0
281@ = 1.0
282@ = 0.0

:LOWR_20506
if 
  283@ == 7
goto_if_false @LOWR_20564
279@ = 0.0
280@ = 1.0
281@ = 1.0
282@ = 1.0

:LOWR_20564
if 
  283@ == 8
goto_if_false @LOWR_20622
279@ = 1.0
280@ = 0.0
281@ = 0.0
282@ = 0.0

:LOWR_20622
if 
  283@ == 9
goto_if_false @LOWR_20680
279@ = 1.0
280@ = 0.0
281@ = 0.0
282@ = 1.0

:LOWR_20680
if 
  283@ == 10
goto_if_false @LOWR_20738
279@ = 1.0
280@ = 0.0
281@ = 1.0
282@ = 0.0

:LOWR_20738
if 
  283@ == 11
goto_if_false @LOWR_20796
279@ = 1.0
280@ = 0.0
281@ = 1.0
282@ = 1.0

:LOWR_20796
if 
  283@ == 12
goto_if_false @LOWR_20854
279@ = 1.0
280@ = 1.0
281@ = 0.0
282@ = 0.0

:LOWR_20854
if 
  283@ == 13
goto_if_false @LOWR_20912
279@ = 1.0
280@ = 1.0
281@ = 0.0
282@ = 1.0

:LOWR_20912
if 
  283@ == 14
goto_if_false @LOWR_20970
279@ = 1.0
280@ = 1.0
281@ = 1.0
282@ = 0.0

:LOWR_20970
if 
  283@ == 15
goto_if_false @LOWR_21028
279@ = 1.0
280@ = 1.0
281@ = 1.0
282@ = 1.0

:LOWR_21028
return 

:LOWR_21030
if 
  300 > 133@
goto_if_false @LOWR_21096
254@ = 1.0
257@ = 1.0
260@ = 0.0
263@ = 0.0
goto @LOWR_21169

:LOWR_21096
if 
  133@ > 500
goto_if_false @LOWR_21129
133@ = 0
goto @LOWR_21169

:LOWR_21129
254@ = 0.0
257@ = 0.0
260@ = 0.0
263@ = 0.0

:LOWR_21169
if 
  134@ > 2000
goto_if_false @LOWR_21243
283@ = generate_random_int_in_range 0 {max} 16
gosub @LOWR_20100
set_lvar_float_to_lvar_float 255@ = 281@
set_lvar_float_to_lvar_float 258@ = 279@
set_lvar_float_to_lvar_float 261@ = 282@
set_lvar_float_to_lvar_float 264@ = 280@
134@ = 0

:LOWR_21243
if 
  not is_car_dead 69@
goto_if_false @LOWR_21385
if 
  does_car_have_hydraulics 69@
goto_if_false @LOWR_21385
control_car_hydraulics 69@ {_p2} 257@ {_p3} 263@ {_p4} 254@ {_p5} 260@
$x, $y, $z = get_car_coordinates 69@
set_lvar_float_to_lvar_float 50@ = 138@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 145@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 69@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_21385
if 
  not is_car_dead 72@
goto_if_false @LOWR_21527
if 
  does_car_have_hydraulics 72@
goto_if_false @LOWR_21527
control_car_hydraulics 72@ {_p2} 258@ {_p3} 264@ {_p4} 255@ {_p5} 261@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 269@
mult_float_lvar_by_float_lvar 51@ *= 269@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:LOWR_21527
switch_start 39@ {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @LOWR_23872 {caseNum1} 0 {caseLabel1} @LOWR_21720 {caseNum2} 1 {caseLabel2} @LOWR_21840 {caseNum3} 2 {caseLabel3} @LOWR_21960 {caseNum4} 3 {caseLabel4} @LOWR_22076 {caseNum5} 4 {caseLabel5} @LOWR_22192 {caseNum6} 5 {caseLabel6} @LOWR_22307 {caseNum7} 6 {caseLabel7} @LOWR_22423
switch_continued 7 {caseLabel1} @LOWR_22539 {caseNum2} 8 {caseLabel2} @LOWR_22655 {caseNum3} 9 {caseLabel3} @LOWR_22771 {caseNum4} 10 {caseLabel4} @LOWR_22891 {caseNum5} 11 {caseLabel5} @LOWR_23074 {caseNum6} 12 {caseLabel6} @LOWR_23190 {caseNum7} 13 {caseLabel7} @LOWR_23306 {caseNum8} 14 {caseLabel8} @LOWR_23422 {caseNum9} 15 {caseLabel9} @LOWR_23538
switch_continued 16 {caseLabel1} @LOWR_23654 {caseNum2} 17 {caseLabel2} @LOWR_23763 {caseNum3} -1 {caseLabel3} @LOWR_23872 {caseNum4} -1 {caseLabel4} @LOWR_23872 {caseNum5} -1 {caseLabel5} @LOWR_23872 {caseNum6} -1 {caseLabel6} @LOWR_23872 {caseNum7} -1 {caseLabel7} @LOWR_23872 {caseNum8} -1 {caseLabel8} @LOWR_23872 {caseNum9} -1 {caseLabel9} @LOWR_23872

:LOWR_21720
if 
  not is_char_dead 77@
goto_if_false @LOWR_21833
43@ = get_script_task_status 77@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_21833
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@

:LOWR_21833
goto @LOWR_23872

:LOWR_21840
if 
  not is_char_dead 78@
goto_if_false @LOWR_21953
43@ = get_script_task_status 78@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_21953
49@ = open_sequence_task 
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 78@ {sequence} 49@
clear_sequence_task 49@

:LOWR_21953
goto @LOWR_23872

:LOWR_21960
if 
  not is_char_dead 79@
goto_if_false @LOWR_22069
43@ = get_script_task_status 79@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22069
49@ = open_sequence_task 
if 
  not is_char_dead 80@
goto_if_false @LOWR_22044
task_chat_with_char -1 {other} 80@ {leadSpeaker} True {_p4} 1
goto @LOWR_22051

:LOWR_22044
task_pause -1 {time} 1000

:LOWR_22051
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22069
goto @LOWR_23872

:LOWR_22076
if 
  not is_char_dead 80@
goto_if_false @LOWR_22185
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22185
49@ = open_sequence_task 
if 
  not is_char_dead 79@
goto_if_false @LOWR_22160
task_chat_with_char -1 {other} 79@ {leadSpeaker} False {_p4} 1
goto @LOWR_22167

:LOWR_22160
task_pause -1 {time} 1000

:LOWR_22167
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22185
goto @LOWR_23872

:LOWR_22192
if 
  not is_char_dead 81@
goto_if_false @LOWR_22300
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22300
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22300
goto @LOWR_23872

:LOWR_22307
if 
  not is_char_dead 82@
goto_if_false @LOWR_22416
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22416
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @LOWR_22391
task_chat_with_char -1 {other} 83@ {leadSpeaker} False {_p4} 1
goto @LOWR_22398

:LOWR_22391
task_pause -1 {time} 1000

:LOWR_22398
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22416
goto @LOWR_23872

:LOWR_22423
if 
  not is_char_dead 83@
goto_if_false @LOWR_22532
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22532
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @LOWR_22507
task_chat_with_char -1 {other} 82@ {leadSpeaker} True {_p4} 1
goto @LOWR_22514

:LOWR_22507
task_pause -1 {time} 1000

:LOWR_22514
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22532
goto @LOWR_23872

:LOWR_22539
if 
  not is_char_dead 84@
goto_if_false @LOWR_22648
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22648
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22648
goto @LOWR_23872

:LOWR_22655
if 
  not is_char_dead 85@
goto_if_false @LOWR_22764
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22764
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22764
goto @LOWR_23872

:LOWR_22771
if 
  not is_char_dead 86@
goto_if_false @LOWR_22884
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_22884
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:LOWR_22884
goto @LOWR_23872

:LOWR_22891
if 
  not is_char_dead 87@
goto_if_false @LOWR_23067
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23067
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23067
goto @LOWR_23872

:LOWR_23074
if 
  not is_char_dead 88@
goto_if_false @LOWR_23183
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23183
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23183
goto @LOWR_23872

:LOWR_23190
if 
  not is_char_dead 89@
goto_if_false @LOWR_23299
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23299
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23299
goto @LOWR_23872

:LOWR_23306
if 
  not is_char_dead 90@
goto_if_false @LOWR_23415
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23415
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23415
goto @LOWR_23872

:LOWR_23422
if 
  not is_char_dead 91@
goto_if_false @LOWR_23531
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23531
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23531
goto @LOWR_23872

:LOWR_23538
if 
  not is_char_dead 92@
goto_if_false @LOWR_23647
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23647
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23647
goto @LOWR_23872

:LOWR_23654
if 
  not is_char_dead 93@
goto_if_false @LOWR_23756
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23756
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23756
goto @LOWR_23872

:LOWR_23763
if 
  not is_char_dead 94@
goto_if_false @LOWR_23865
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_23865
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:LOWR_23865
goto @LOWR_23872

:LOWR_23872
return 

:LOWR_23874
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @LOWR_26531 {caseNum1} 0 {caseLabel1} @LOWR_24067 {caseNum2} 1 {caseLabel2} @LOWR_24187 {caseNum3} 2 {caseLabel3} @LOWR_24303 {caseNum4} 3 {caseLabel4} @LOWR_24419 {caseNum5} 4 {caseLabel5} @LOWR_24539 {caseNum6} 5 {caseLabel6} @LOWR_24659 {caseNum7} 6 {caseLabel7} @LOWR_24775
switch_continued 7 {caseLabel1} @LOWR_24895 {caseNum2} 8 {caseLabel2} @LOWR_25011 {caseNum3} 9 {caseLabel3} @LOWR_25127 {caseNum4} 10 {caseLabel4} @LOWR_25247 {caseNum5} 11 {caseLabel5} @LOWR_25363 {caseNum6} 12 {caseLabel6} @LOWR_25483 {caseNum7} 13 {caseLabel7} @LOWR_25603 {caseNum8} 14 {caseLabel8} @LOWR_25719 {caseNum9} 15 {caseLabel9} @LOWR_25835
switch_continued 16 {caseLabel1} @LOWR_25951 {caseNum2} 17 {caseLabel2} @LOWR_26067 {caseNum3} 18 {caseLabel3} @LOWR_26183 {caseNum4} 19 {caseLabel4} @LOWR_26299 {caseNum5} 20 {caseLabel5} @LOWR_26415 {caseNum6} -1 {caseLabel6} @LOWR_26531 {caseNum7} -1 {caseLabel7} @LOWR_26531 {caseNum8} -1 {caseLabel8} @LOWR_26531 {caseNum9} -1 {caseLabel9} @LOWR_26531

:LOWR_24067
if 
  not is_char_dead 77@
goto_if_false @LOWR_24180
43@ = get_script_task_status 77@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24180
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24180
goto @LOWR_26531

:LOWR_24187
if 
  not is_char_dead 78@
goto_if_false @LOWR_24296
43@ = get_script_task_status 78@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24296
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 78@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24296
goto @LOWR_26531

:LOWR_24303
if 
  not is_char_dead 79@
goto_if_false @LOWR_24412
43@ = get_script_task_status 79@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24412
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24412
goto @LOWR_26531

:LOWR_24419
if 
  not is_char_dead 80@
goto_if_false @LOWR_24532
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24532
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24532
goto @LOWR_26531

:LOWR_24539
if 
  not is_char_dead 81@
goto_if_false @LOWR_24652
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24652
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24652
goto @LOWR_26531

:LOWR_24659
if 
  not is_char_dead 82@
goto_if_false @LOWR_24768
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24768
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24768
goto @LOWR_26531

:LOWR_24775
if 
  not is_char_dead 83@
goto_if_false @LOWR_24888
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_24888
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:LOWR_24888
goto @LOWR_26531

:LOWR_24895
if 
  not is_char_dead 84@
goto_if_false @LOWR_25004
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25004
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25004
goto @LOWR_26531

:LOWR_25011
if 
  not is_char_dead 85@
goto_if_false @LOWR_25120
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25120
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25120
goto @LOWR_26531

:LOWR_25127
if 
  not is_char_dead 86@
goto_if_false @LOWR_25240
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25240
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25240
goto @LOWR_26531

:LOWR_25247
if 
  not is_char_dead 87@
goto_if_false @LOWR_25356
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25356
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25356
goto @LOWR_26531

:LOWR_25363
if 
  not is_char_dead 88@
goto_if_false @LOWR_25476
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25476
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25476
goto @LOWR_26531

:LOWR_25483
if 
  not is_char_dead 89@
goto_if_false @LOWR_25596
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25596
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25596
goto @LOWR_26531

:LOWR_25603
if 
  not is_char_dead 90@
goto_if_false @LOWR_25712
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25712
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25712
goto @LOWR_26531

:LOWR_25719
if 
  not is_char_dead 91@
goto_if_false @LOWR_25828
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25828
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25828
goto @LOWR_26531

:LOWR_25835
if 
  not is_char_dead 92@
goto_if_false @LOWR_25944
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_25944
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:LOWR_25944
goto @LOWR_26531

:LOWR_25951
if 
  not is_char_dead 93@
goto_if_false @LOWR_26060
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26060
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26060
goto @LOWR_26531

:LOWR_26067
if 
  not is_char_dead 94@
goto_if_false @LOWR_26176
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26176
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26176
goto @LOWR_26531

:LOWR_26183
if 
  not is_char_dead 95@
goto_if_false @LOWR_26292
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26292
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26292
goto @LOWR_26531

:LOWR_26299
if 
  not is_char_dead 96@
goto_if_false @LOWR_26408
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26408
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26408
goto @LOWR_26531

:LOWR_26415
if 
  not is_char_dead 97@
goto_if_false @LOWR_26524
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @LOWR_26524
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:LOWR_26524
goto @LOWR_26531

:LOWR_26531
return 

:LOWR_26533
43@ = 0

:LOWR_26540
if 
  22 > 43@
goto_if_false @LOWR_26633
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_26619
delete_char 77@(43@,22i)
write_debug_with_int "PED_DELETED" {number} 43@
43@ = 22
goto @LOWR_26626

:LOWR_26619
43@ += 1

:LOWR_26626
goto @LOWR_26540

:LOWR_26633
return 

:LOWR_26635
43@ = 0

:LOWR_26642
if 
  7 > 43@
goto_if_false @LOWR_26735
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_26721
delete_car 69@(43@,7i)
write_debug_with_int "CAR_DELETED" {number} 43@
43@ = 7
goto @LOWR_26728

:LOWR_26721
43@ += 1

:LOWR_26728
goto @LOWR_26642

:LOWR_26735
return 

:LOWR_26737
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @LOWR_26840 {caseNum1} 3 {caseLabel1} @LOWR_26800 {caseNum2} -1 {caseLabel2} @LOWR_26880 {caseNum3} -1 {caseLabel3} @LOWR_26880 {caseNum4} -1 {caseLabel4} @LOWR_26880 {caseNum5} -1 {caseLabel5} @LOWR_26880 {caseNum6} -1 {caseLabel6} @LOWR_26880 {caseNum7} -1 {caseLabel7} @LOWR_26880

:LOWR_26800
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 173.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @LOWR_26880

:LOWR_26840
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 157.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @LOWR_26880

:LOWR_26880
gosub @LOWR_27137
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'WOF_04'
gosub @LOWR_27137
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} 273@
gosub @LOWR_27137
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'BJ_02'
gosub @LOWR_27137
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} 271@
gosub @LOWR_27137
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @LOWR_27137
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} 272@
return 

:LOWR_27137
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:LOWR_27192
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:LOWR_27250
return 

:LOWR_27252
return 

:LOWR_27254
switch_audio_zone 'LOWRIDE' {state} False
if 
  does_vehicle_exist 68@
goto_if_false @LOWR_27390
if 
  not is_car_dead 68@
goto_if_false @LOWR_27390
set_car_status 68@ {status} EntityStatus.Abandoned
freeze_car_position 68@ {state} False
set_car_proofs 68@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_player_playing $player1
goto_if_false @LOWR_27351
apply_brakes_to_players_car $player1 {state} False

:LOWR_27351
lock_car_doors 68@ {lockStatus} CarLock.Unlocked
if 
  is_char_in_car $scplayer {vehicle} 68@
goto_if_false @LOWR_27390
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 68@

:LOWR_27390
43@ = 0

:LOWR_27397
if 
  7 > 43@
goto_if_false @LOWR_27581
if 
  does_vehicle_exist 69@(43@,7i)
goto_if_false @LOWR_27567
if 
  not is_car_dead 69@(43@,7i)
goto_if_false @LOWR_27558
if or
  43@ == 0
  43@ == 3
  43@ == 4
goto_if_false @LOWR_27536
if 
  does_car_have_hydraulics 69@(43@,7i)
goto_if_false @LOWR_27536
control_car_hydraulics 69@(43@,7i) {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:LOWR_27536
set_car_status 69@(43@,7i) {status} EntityStatus.Simple
set_car_hydraulics 69@(43@,7i) {state} False

:LOWR_27558
mark_car_as_no_longer_needed 69@(43@,7i)

:LOWR_27567
43@ += 1
goto @LOWR_27397

:LOWR_27581
43@ = 0

:LOWR_27588
if 
  22 > 43@
goto_if_false @LOWR_27669
if 
  does_char_exist 77@(43@,22i)
goto_if_false @LOWR_27655
if 
  not is_char_dead 77@(43@,22i)
goto_if_false @LOWR_27646

:LOWR_27646
mark_char_as_no_longer_needed 77@(43@,22i)

:LOWR_27655
43@ += 1
goto @LOWR_27588

:LOWR_27669
if 
  does_char_exist 99@
goto_if_false @LOWR_27690
mark_char_as_no_longer_needed 99@

:LOWR_27690
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 534
mark_model_as_no_longer_needed 567
remove_animation "LOWRIDER"
remove_blip 102@
display_radar True
43@ = get_beat_track_status 
if 
  not is_int_lvar_equal_to_constant 43@ == 0
goto_if_false @LOWR_27780
stop_beat_track 

:LOWR_27780
dont_suppress_car_model 567
$bd_terminate_script = 1
remove_decision_maker 66@
remove_decision_maker 67@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 10---------------
// Originally: Beefy Baron

:ZERO5
gosub @ZERO5_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO5_27
gosub @ZERO5_1896

:ZERO5_27
gosub @ZERO5_1993
terminate_this_script 

:ZERO5_36
66@ = 0
$onmission = 1
clear_this_print_big_now TextStyle.Middle
register_mission_given 
script_name 'ZERO5'
set_player_control $player1 {state} False
wait 0
48@ = 1
49@ = 0
50@ = 0
51@ = 0
57@ = 0
55@ = 0
56@ = 0
63@ = 0
64@ = 0
52@ = 0
53@ = 0
$van_death_counter_zero5 = 0
$timer_time_limit_zero5 = 180000
40@ = -2205.4399
41@ = 128.99
42@ = 57.33
43@ = 90.0
44@ = -2227.0
45@ = 113.0
46@ = 35.5
reset_num_of_models_killed_by_player $player1
TIMERA = 0
69@ = 0
request_model 464
request_model 459

:ZERO5_271
if or
  not has_model_loaded 464
  not has_model_loaded 459
goto_if_false @ZERO5_303
wait 0
goto @ZERO5_271

:ZERO5_303
display_car_names False
load_mission_text 'ZERO2'
disable_all_entry_exits True

:ZERO5_322
wait 0
if 
  48@ == 1
goto_if_false @ZERO5_351
gosub @ZERO5_408

:ZERO5_351
if 
  52@ == 1
goto_if_false @ZERO5_376
goto @ZERO5_1859

:ZERO5_376
if 
  53@ == 1
goto_if_false @ZERO5_401
goto @ZERO5_1896

:ZERO5_401
goto @ZERO5_322

:ZERO5_408
TIMERB = 0
clear_area 44@ {y} 45@ {z} 46@ {radius} 1000.0 {clearParticles} True
35@ = create_car 459 {x} -2250.8999 {y} 124.6 {z} 28.48
set_load_collision_for_car_flag 35@ {state} False
open_car_door 35@ {door} CarDoor.LeftRearDoor
open_car_door 35@ {door} CarDoor.RightRearDoor
warp_char_into_car $scplayer {vehicle} 35@
restore_camera_jumpcut 
set_camera_behind_player 
set_police_ignore_player $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
if 
  not is_car_dead 35@
goto_if_false @ZERO5_557
set_car_coordinates 35@ {x} -2233.8999 {y} 122.6 {z} 746.48
set_car_heading 35@ {heading} 90.0
freeze_car_position 35@ {state} True

:ZERO5_557
wait 1000
if 
  not is_car_dead 35@
goto_if_false @ZERO5_583
close_all_car_doors 35@

:ZERO5_583
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} -2240.854 {y} 129.3346 {radius} 1.5
load_scene 40@ {y} 41@ {z} 42@
give_remote_controlled_model_to_player $player1 {x} 40@ {y} 41@ {z} 42@ {angle} 40.09 {modelId} 464
34@ = get_remote_controlled_car $player1
set_car_heading 34@ {heading} 90.0
set_enable_rc_detonate_on_contact False
set_enable_rc_detonate False
set_car_health 34@ {health} 1000
set_car_proofs 34@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
switch_widescreen False
if 
  not is_car_dead 34@
goto_if_false @ZERO5_733
point_camera_at_car 34@ {mode} CameraMode.CamOnAString {switchStyle} SwitchType.JumpCut
freeze_car_position 34@ {state} False
wait 0
set_camera_zoom 1

:ZERO5_733
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:ZERO5_748
if 
  get_fading_status 
goto_if_false @ZERO5_772
wait 0
goto @ZERO5_748

:ZERO5_772
set_player_control $player1 {state} True
display_onscreen_timer_with_string $timer_time_limit_zero5 {direction} TimerDirection.Down {text} 'ZER2_5'
display_onscreen_counter_with_string $van_death_counter_zero5 {display} CounterDisplay.Number {text} 'ZER2_43'
print_now 'ZER2_45' {time} 5000 {flag} 1
set_force_random_car_model 459

:ZERO5_832
if 
  57@ <> 1
goto_if_false @ZERO5_1857
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @ZERO5_913
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 1
53@ = 0
return 

:ZERO5_913
if 
  0 >= $timer_time_limit_zero5
goto_if_false @ZERO5_1156
if 
  not is_car_dead 34@
goto_if_false @ZERO5_961
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True

:ZERO5_961
remove_rc_buggy 
TIMERA = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 1
53@ = 0
print_with_number_big 'ZER2_43' {num} $van_death_counter_zero5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
wait 2000
set_char_has_used_entry_exit $scplayer {x} -2241.854 {y} 128.3346 {radius} 1.5
load_scene -2241.854 {y} 128.3346 {z} 1034.641
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_1120
warp_char_from_car_to_coord $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641
goto @ZERO5_1140

:ZERO5_1120
set_char_coordinates $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641

:ZERO5_1140
set_char_heading $scplayer {heading} 183.6951
set_area_visible 6
return 

:ZERO5_1156
if 
  not is_car_dead 34@
goto_if_false @ZERO5_1681
if 
  is_player_in_remote_mode $player1
goto_if_false @ZERO5_1674
70@ = get_game_timer 
if 
  not locate_car_3d 34@ {x} 72@ {y} 73@ {z} 74@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO5_1272
72@, 73@, 74@ = get_car_coordinates 34@
set_lvar_int_to_lvar_int 71@ = 70@
71@ += 4000
64@ = 0

:ZERO5_1272
if 
  locate_car_3d 34@ {x} 72@ {y} 73@ {z} 74@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO5_1612
if 
  is_int_lvar_greater_than_int_lvar 70@ > 71@
goto_if_false @ZERO5_1612
if 
  64@ == 0
goto_if_false @ZERO5_1369
print_help 'ZER2_4'
64@ = 1

:ZERO5_1369
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO5_1612
53@ = 1
48@ = 0
set_player_control $player1 {state} False
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_car_health 34@ {health} 1
add_explosion 72@ {y} 73@ {z} 74@ {type} ExplosionType.Grenade
remove_rc_buggy 
53@ = 1
48@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
wait 2000
set_char_has_used_entry_exit $scplayer {x} -2241.854 {y} 128.3346 {radius} 1.5
load_scene -2241.854 {y} 128.3346 {z} 1034.641
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_1576
warp_char_from_car_to_coord $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641
goto @ZERO5_1596

:ZERO5_1576
set_char_coordinates $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641

:ZERO5_1596
set_char_heading $scplayer {heading} 183.6951
set_area_visible 6
return 

:ZERO5_1612
37@, 38@, 39@ = get_car_coordinates 34@
36@ = get_random_car_in_sphere_no_save 37@ {y} 38@ {z} 39@ {radius} 30.0 {model} 459
if 
  not is_car_dead 36@
goto_if_false @ZERO5_1674
set_car_cruise_speed 36@ {maxSpeed} 10.0

:ZERO5_1674
goto @ZERO5_1839

:ZERO5_1681
53@ = 1
48@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
set_player_control $player1 {state} False
wait 2000
set_char_has_used_entry_exit $scplayer {x} -2241.854 {y} 128.3346 {radius} 1.5
load_scene -2241.854 {y} 128.3346 {z} 1034.641
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_1803
warp_char_from_car_to_coord $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641
goto @ZERO5_1823

:ZERO5_1803
set_char_coordinates $scplayer {x} -2220.146 {y} 135.956 {z} 1034.641

:ZERO5_1823
set_char_heading $scplayer {heading} 183.6951
set_area_visible 6
return 

:ZERO5_1839
$van_death_counter_zero5 = get_num_of_models_killed_by_player $player1 {modelId} 459
goto @ZERO5_832

:ZERO5_1857
return 

:ZERO5_1859
set_player_control $player1 {state} True
clear_wanted_level $player1
if 
  not is_char_dead $scplayer
goto_if_false @ZERO5_1894
set_player_control $player1 {state} True

:ZERO5_1894
return 

:ZERO5_1896
if 
  not is_char_dead $scplayer
goto_if_false @ZERO5_1919
set_player_control $player1 {state} True

:ZERO5_1919
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:ZERO5_1935
if 
  3000 > TIMERA
goto_if_false @ZERO5_1991
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO5_1984
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO5_1984
goto @ZERO5_1935

:ZERO5_1991
return 

:ZERO5_1993
camera_reset_new_scriptables 
$onmission = 0
set_police_ignore_player $player1 {state} False
mark_car_as_no_longer_needed 35@
if 
  is_player_playing $player1
goto_if_false @ZERO5_2076
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO5_2076
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
set_char_heading $scplayer {heading} 90.0

:ZERO5_2076
release_weather 
set_player_control $player1 {state} True
disable_all_entry_exits False
remove_rc_buggy 
mark_model_as_no_longer_needed 459
mark_model_as_no_longer_needed 464
clear_onscreen_timer $timer_time_limit_zero5
clear_onscreen_counter $van_death_counter_zero5
$timer_mobile_start = get_game_timer 
display_car_names True
mission_has_finished 
return 

//-------------Mission 11---------------
// Originally: Big Smoke

:INTRO1
script_name 'INTRO1'
gosub @INTRO1_914
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO1_38
gosub @INTRO1_18170

:INTRO1_38
gosub @INTRO1_18300
terminate_this_script 

:INTRO1_47
switch_start 46@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @INTRO1_912 {caseNum1} 0 {caseLabel1} @INTRO1_110 {caseNum2} 1 {caseLabel2} @INTRO1_212 {caseNum3} 2 {caseLabel3} @INTRO1_314 {caseNum4} 3 {caseLabel4} @INTRO1_570 {caseNum5} 4 {caseLabel5} @INTRO1_628 {caseNum6} 5 {caseLabel6} @INTRO1_774 {caseNum7} 6 {caseLabel7} @INTRO1_854

:INTRO1_110
set_var_text_label s$intro1_chat[0] = 'INT1_AB'
set_var_text_label s$intro1_chat[1] = 'INT1_AC'
set_var_text_label s$intro1_chat[2] = 'INT1_AR'
set_var_text_label s$intro1_chat[3] = 'INT1_AA'
set_lvar_int_to_constant 93@ = 20001
set_lvar_int_to_constant 94@ = 20002
set_lvar_int_to_constant 95@ = 20016
set_lvar_int_to_constant 96@ = 20000
63@ = 3
goto @INTRO1_912

:INTRO1_212
set_var_text_label s$intro1_chat[0] = 'INT1_AI'
set_var_text_label s$intro1_chat[1] = 'INT1_AJ'
set_var_text_label s$intro1_chat[2] = 'INT1_AK'
set_var_text_label s$intro1_chat[3] = 'INT1_AQ'
set_lvar_int_to_constant 93@ = 20008
set_lvar_int_to_constant 94@ = 20009
set_lvar_int_to_constant 95@ = 20010
set_lvar_int_to_constant 96@ = 20015
63@ = 3
goto @INTRO1_912

:INTRO1_314
set_var_text_label s$intro1_chat[0] = 'INT1_GN'
set_var_text_label s$intro1_chat[1] = 'INT1_GA'
set_var_text_label s$intro1_chat[2] = 'INT1_GB'
set_var_text_label s$intro1_chat[3] = 'INT1_GC'
set_var_text_label s$intro1_chat[4] = 'INT1_GD'
set_var_text_label s$intro1_chat[5] = 'INT1_GE'
set_var_text_label s$intro1_chat[6] = 'INT1_GH'
set_var_text_label s$intro1_chat[7] = 'INT1_GI'
set_var_text_label s$intro1_chat[8] = 'INT1_GJ'
set_var_text_label s$intro1_chat[9] = 'INT1_GL'
set_var_text_label s$intro1_chat[10] = 'INT1_GM'
set_lvar_int_to_constant 93@ = 20072
set_lvar_int_to_constant 94@ = 20059
set_lvar_int_to_constant 95@ = 20060
set_lvar_int_to_constant 96@ = 20061
set_lvar_int_to_constant 97@ = 20062
set_lvar_int_to_constant 98@ = 20063
set_lvar_int_to_constant 99@ = 20066
set_lvar_int_to_constant 100@ = 20067
set_lvar_int_to_constant 101@ = 20068
set_lvar_int_to_constant 102@ = 20070
set_lvar_int_to_constant 103@ = 20071
63@ = 10
goto @INTRO1_912

:INTRO1_570
set_var_text_label s$intro1_chat[0] = 'INT1_CA'
set_var_text_label s$intro1_chat[1] = 'INT1_EI'
set_lvar_int_to_constant 93@ = 20028
set_lvar_int_to_constant 94@ = 20048
63@ = 1
goto @INTRO1_912

:INTRO1_628
set_var_text_label s$intro1_chat[0] = 'INT1_BA'
set_var_text_label s$intro1_chat[1] = 'INT1_BC'
set_var_text_label s$intro1_chat[2] = 'INT1_BB'
set_var_text_label s$intro1_chat[3] = 'INT1_BD'
set_var_text_label s$intro1_chat[4] = 'INT1_AM'
set_var_text_label s$intro1_chat[5] = 'INT1_AN'
set_lvar_int_to_constant 93@ = 20017
set_lvar_int_to_constant 94@ = 20019
set_lvar_int_to_constant 95@ = 20018
set_lvar_int_to_constant 96@ = 20020
set_lvar_int_to_constant 97@ = 20011
set_lvar_int_to_constant 98@ = 20012
63@ = 5
goto @INTRO1_912

:INTRO1_774
set_var_text_label s$intro1_chat[0] = 'INT1_BF'
set_var_text_label s$intro1_chat[1] = 'INT1_BG'
set_var_text_label s$intro1_chat[2] = 'INT1_BH'
set_lvar_int_to_constant 93@ = 20022
set_lvar_int_to_constant 94@ = 20023
set_lvar_int_to_constant 95@ = 20024
63@ = 2
goto @INTRO1_912

:INTRO1_854
set_var_text_label s$intro1_chat[0] = 'INT1_BI'
set_var_text_label s$intro1_chat[1] = 'INT1_BK'
set_lvar_int_to_constant 93@ = 20025
set_lvar_int_to_constant 94@ = 20027
63@ = 1
goto @INTRO1_912

:INTRO1_912
return 

:INTRO1_914
$onmission = 1
set_lvar_int_to_var_int 65@ = $big_smoke
set_lvar_int_to_var_int 66@ = $ryder
set_lvar_int_to_var_int 67@ = $sweet
set_lvar_int_to_lvar_int 76@ = 34@
set_lvar_int_to_lvar_int 77@ = 36@
set_lvar_int_to_lvar_int 78@ = 35@
79@ = 0
80@ = 0
81@ = 0
83@ = 0
84@ = 0
85@ = 0
58@ = 0
59@ = 0
60@ = 0
86@ = 0
48@ = 0
49@ = 0
$been_in_a_bmx = 0
68@ = 0
55@ = 0
57@ = 0
61@ = 0
62@ = 0
74@ = 0
92@ = 0
45@ = 0
54@ = 0
107@ = 3
115@ = 1
108@ = 1
87@ = 0
register_mission_given 
load_mission_text 'INTRO1'
set_time_of_day 9 {minutes} 0
clear_char_tasks_immediately $scplayer
set_area_visible 3
load_cutscene 'INTRO1A'

:INTRO1_1190
if 
  not has_cutscene_loaded 
goto_if_false @INTRO1_1214
wait 0
goto @INTRO1_1190

:INTRO1_1214
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO1_1223
if 
  not has_cutscene_finished 
goto_if_false @INTRO1_1247
wait 0
goto @INTRO1_1223

:INTRO1_1247
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:INTRO1_1260
if 
  get_fading_status 
goto_if_false @INTRO1_1284
wait 0
goto @INTRO1_1260

:INTRO1_1284
clear_cutscene 
set_area_visible 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.2
enable_ambient_crime False
load_special_character 10 {modelName} 'SMOKE'
request_model 404
load_all_models_now 

:INTRO1_1328
if or
  not has_model_loaded 404
  not has_special_character_loaded 10
goto_if_false @INTRO1_1359
wait 0
goto @INTRO1_1328

:INTRO1_1359
switch_widescreen True
set_player_control $player1 {state} False
clear_char_tasks $scplayer
clear_char_tasks_immediately $scplayer
$big_smoke = create_char PedType.Mission1 {modelId} 299 {x} 2498.9099 {y} -1680.5 {z} 12.37
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 90.0
41@ = create_car 404 {x} 2494.9099 {y} -1682.17 {z} 12.32
mark_model_as_no_longer_needed 404
change_car_colour 41@ {color1} 0 {color2} 0
set_car_heading 41@ {heading} 90.0
set_char_coordinates $scplayer {x} 2495.5901 {y} -1686.96 {z} 12.51
task_stand_still $scplayer {time} 1
set_char_heading $scplayer {heading} 32.0
clear_char_tasks_immediately $scplayer
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} 41@ {time} 10000 {seat} SeatId.BikeRear
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} 41@ {time} 10000
clear_area 2494.9099 {y} -1682.17 {z} 12.32 {radius} 50.0 {clearParticles} True
load_scene_in_direction 2495.5901 {y} -1686.96 {z} 12.51 {heading} 32.2
set_area_visible 0
set_radio_channel RadioChannel.BounceFM
86@ = 0
75@ = 0
109@ = 0
46@ = 0
gosub @INTRO1_47
do_fade 1500 {direction} Fade.In
set_fixed_camera_position 2498.947 {y} -1690.0 {z} 14.4011 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2498.405 {y} -1689.177 {z} 14.2309 {switchStyle} SwitchType.JumpCut
skip_cutscene_start_internal @INTRO1_2033

:INTRO1_1703
if 
  86@ <> 2
goto_if_false @INTRO1_1739
wait 0
gosub @INTRO1_20464
goto @INTRO1_1703

:INTRO1_1739
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2498.947 {fromY} -1690.0 {fromZ} 14.4011 {toX} 2501.2361 {toY} -1678.23 {toZ} 17.5252 {time} 9000 {ease} True
camera_set_vector_track 2498.405 {fromY} -1689.177 {fromZ} 14.2309 {toX} 2500.238 {toY} -1678.188 {toZ} 17.4907 {time} 9000 {ease} True
if 
  not is_car_dead 41@
goto_if_false @INTRO1_1946
if 
  not is_char_dead $big_smoke
goto_if_false @INTRO1_1946

:INTRO1_1855
if or
  not is_char_in_car $scplayer {vehicle} 41@
  not is_char_in_car $big_smoke {vehicle} 41@
goto_if_false @INTRO1_1946
wait 0
if 
  is_car_dead 41@
goto_if_false @INTRO1_1909
goto @INTRO1_18170

:INTRO1_1909
if 
  is_char_dead $big_smoke
goto_if_false @INTRO1_1932
goto @INTRO1_18170

:INTRO1_1932
gosub @INTRO1_20464
goto @INTRO1_1855

:INTRO1_1946
if 
  not is_car_dead 41@
goto_if_false @INTRO1_1997
task_car_drive_to_coord $scplayer {vehicle} 41@ {x} 2414.6799 {y} -1656.38 {z} 12.38 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 404 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_1997
if 
  86@ <> 4
goto_if_false @INTRO1_2033
wait 0
gosub @INTRO1_20464
goto @INTRO1_1997

:INTRO1_2033
skip_cutscene_end 
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
print_big 'FUNERAL' {time} 1000 {style} TextStyle.BottomRight

:INTRO1_2068
if 
  get_fading_status 
goto_if_false @INTRO1_2092
wait 0
goto @INTRO1_2068

:INTRO1_2092
camera_reset_new_scriptables 
delete_char $big_smoke
unload_special_character 10
if 
  not is_car_dead 41@
goto_if_false @INTRO1_2227
clear_char_tasks_immediately $scplayer
set_car_coordinates 41@ {x} 956.6 {y} -1099.47 {z} 22.73
set_car_heading 41@ {heading} 0.0
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_2197
warp_char_from_car_to_coord $scplayer {x} 910.78 {y} -1075.26 {z} 23.29
goto @INTRO1_2217

:INTRO1_2197
set_char_coordinates $scplayer {x} 910.78 {y} -1075.26 {z} 23.29

:INTRO1_2217
set_char_heading $scplayer {heading} 265.0

:INTRO1_2227
make_player_safe_for_cutscene $player1
load_scene_in_direction 910.78 {y} -1075.26 {z} 23.29 {heading} 265.0
load_cutscene 'INTRO1B'

:INTRO1_2265
if 
  not has_cutscene_loaded 
goto_if_false @INTRO1_2289
wait 0
goto @INTRO1_2265

:INTRO1_2289
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO1_2298
if 
  not has_cutscene_finished 
goto_if_false @INTRO1_2322
wait 0
goto @INTRO1_2298

:INTRO1_2322
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:INTRO1_2335
if 
  get_fading_status 
goto_if_false @INTRO1_2359
wait 0
goto @INTRO1_2335

:INTRO1_2359
clear_cutscene 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.2
load_special_character 1 {modelName} 'SWEET'
load_special_character 3 {modelName} 'RYDER2'
load_special_character 10 {modelName} 'SMOKE'
request_model 404
request_model 481
request_model 352
request_model 412
request_model 102
request_model 346
request_car_recording 201
load_all_models_now 

:INTRO1_2450
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 3
  not has_special_character_loaded 10
  not has_model_loaded 404
  not has_model_loaded 481
  not has_model_loaded 412
goto_if_false @INTRO1_2499
wait 0
goto @INTRO1_2450

:INTRO1_2499
if or
  not has_model_loaded 352
  not has_model_loaded 102
  not has_model_loaded 346
  not has_car_recording_been_loaded 201
goto_if_false @INTRO1_2540
wait 0
goto @INTRO1_2499

:INTRO1_2540
switch_widescreen True
set_player_control $player1 {state} False
set_near_clip 0.2
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 943.71 {y} -1103.5 {z} 22.85 {radius} 70.0 {clearParticles} True
load_scene_in_direction 943.71 {y} -1103.5 {z} 22.85 {heading} 90.0
51@ = create_car 412 {x} 1038.5 {y} -954.9 {z} 41.5
suppress_car_model 412
change_car_colour 51@ {color1} 22 {color2} 22
set_load_collision_for_car_flag 51@ {state} False
50@ = create_char_inside_car 51@ {pedType} PedType.Mission2 {modelId} 102
52@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.BikeRear
110@ = load_char_decision_maker DecisionMakerType.Empty
set_char_accuracy 50@ {accuracy} 25
set_char_accuracy 52@ {accuracy} 25
set_char_shoot_rate 50@ {rate} 30
set_char_shoot_rate 52@ {rate} 30
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
mark_model_as_no_longer_needed 102
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 52@ {weaponType} WeaponType.MicroUzi
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 30000
mark_model_as_no_longer_needed 352
set_current_char_weapon 50@ {weaponType} WeaponType.MicroUzi
lock_car_doors 51@ {lockStatus} CarLock.Locked
set_car_heading 51@ {heading} 100.8
set_car_health 51@ {health} 2000
37@ = create_car 481 {x} 971.8 {y} -1108.0 {z} 23.1
set_car_health 37@ {health} 2000
set_car_heading 37@ {heading} 140.0
set_can_burst_car_tyres 37@ {state} False
76@ = create_car 481 {x} 971.4 {y} -1110.5 {z} 23.3
set_car_health 76@ {health} 2000
set_car_heading 76@ {heading} 110.0
set_can_burst_car_tyres 76@ {state} False
set_car_straight_line_distance 76@ {distance} 30
77@ = create_car 481 {x} 971.8 {y} -1115.5 {z} 23.1
set_car_health 77@ {health} 2000
set_car_heading 77@ {heading} 140.0
set_can_burst_car_tyres 77@ {state} False
set_car_straight_line_distance 77@ {distance} 30
78@ = create_car 481 {x} 971.8 {y} -1113.0 {z} 23.1
set_car_health 78@ {health} 2000
set_car_heading 78@ {heading} 140.0
set_can_burst_car_tyres 78@ {state} False
set_car_straight_line_distance 78@ {distance} 30
mark_model_as_no_longer_needed 481
if 
  not is_car_dead 41@
goto_if_false @INTRO1_3087
set_player_control $player1 {state} False
set_car_can_be_damaged 41@ {state} True
set_car_coordinates 41@ {x} 956.6 {y} -1099.47 {z} 22.73
set_car_heading 41@ {heading} 0.0

:INTRO1_3087
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_3135
warp_char_from_car_to_coord $scplayer {x} 940.0 {y} -1103.5 {z} 22.85
goto @INTRO1_3155

:INTRO1_3135
set_char_coordinates $scplayer {x} 940.0 {y} -1103.5 {z} 22.85

:INTRO1_3155
set_char_heading $scplayer {heading} 272.5
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
task_go_straight_to_coord $scplayer {x} 954.0 {y} -1103.5 {z} 22.85 {speed} MoveState.Walk {time} 20000
65@ = create_char PedType.Mission1 {modelId} 299 {x} 942.79 {y} -1104.41 {z} 22.85
set_anim_group_for_char 65@ {animGroup} "FATMAN"
set_char_health 65@ {health} 2000
set_char_heading 65@ {heading} 184.0
set_char_never_targetted 65@ {state} True
set_char_suffers_critical_hits 65@ {state} False
set_char_cant_be_dragged_out 65@ {state} True
set_char_stay_in_car_when_jacked 65@ {state} True
task_go_straight_to_coord 65@ {x} 954.0 {y} -1104.41 {z} 22.85 {speed} MoveState.Walk {time} 20000
set_char_decision_maker 65@ {handleOrTemplate} 110@
set_char_can_be_knocked_off_bike 65@ {stayOnBike} True
66@ = create_char PedType.Mission1 {modelId} 292 {x} 942.9 {y} -1105.79 {z} 22.85
set_anim_group_for_char 66@ {animGroup} "GANG1"
set_char_health 66@ {health} 2000
set_char_heading 66@ {heading} 50.0
set_char_never_targetted 66@ {state} True
set_char_suffers_critical_hits 66@ {state} False
set_char_cant_be_dragged_out 66@ {state} True
set_char_stay_in_car_when_jacked 66@ {state} True
task_go_straight_to_coord 66@ {x} 954.0 {y} -1105.79 {z} 22.85 {speed} MoveState.Walk {time} 25000
set_char_decision_maker 66@ {handleOrTemplate} 110@
set_char_can_be_knocked_off_bike 66@ {stayOnBike} True
67@ = create_char PedType.Mission1 {modelId} 290 {x} 942.96 {y} -1102.0 {z} 22.85
set_anim_group_for_char 67@ {animGroup} "GANG2"
set_char_health 67@ {health} 2000
set_char_heading 67@ {heading} 96.0
set_char_never_targetted 67@ {state} True
set_char_suffers_critical_hits 67@ {state} False
set_char_cant_be_dragged_out 67@ {state} True
set_char_stay_in_car_when_jacked 67@ {state} True
task_go_straight_to_coord 67@ {x} 954.0 {y} -1102.0 {z} 22.85 {speed} MoveState.Walk {time} 20000
set_char_decision_maker 67@ {handleOrTemplate} 110@
set_char_can_be_knocked_off_bike 67@ {stayOnBike} True
39@ = add_blip_for_char 67@
set_blip_as_friendly 39@ {state} True
remove_blip 39@
TIMERB = 0

:INTRO1_3601
if 
  900 > TIMERB
goto_if_false @INTRO1_3631
wait 0
goto @INTRO1_3601

:INTRO1_3631
load_scene_in_direction 940.0 {y} -1103.5 {z} 22.85 {heading} 272.5
do_fade 500 {direction} Fade.In
clear_area 949.8 {y} -1100.3 {z} 23.0 {radius} 500.0 {clearParticles} True
set_fixed_camera_position 947.9119 {y} -1103.912 {z} 23.4476 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 946.9478 {y} -1103.822 {z} 23.6977 {switchStyle} SwitchType.JumpCut
86@ = 0
75@ = 0
109@ = 0
46@ = 1
gosub @INTRO1_47
91@ = 0
skip_cutscene_start_internal @INTRO1_5528
TIMERB = 0

:INTRO1_3791
if 
  3300 > TIMERB
goto_if_false @INTRO1_3821
wait 0
goto @INTRO1_3791

:INTRO1_3821
if 
  not is_car_dead 51@
goto_if_false @INTRO1_3877
if 
  not is_char_dead 50@
goto_if_false @INTRO1_3877
if 
  has_car_recording_been_loaded 201
goto_if_false @INTRO1_3877
start_playback_recorded_car 51@ {path} 201

:INTRO1_3877
if 
  not is_car_dead 41@
goto_if_false @INTRO1_4028
if 
  not is_char_dead 52@
goto_if_false @INTRO1_3960
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_3960
task_drive_by 52@ {targetChar} -1 {targetVehicle} -1 {x} 952.92 {y} -1102.99 {z} 22.85 {radius} 100.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 90

:INTRO1_3960
if 
  not is_char_dead 50@
goto_if_false @INTRO1_4028
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_4028
task_drive_by 50@ {targetChar} -1 {targetVehicle} 41@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.FixedLeft {rightHandCarSeat} False {fireRate} 90

:INTRO1_4028
TIMERB = 0

:INTRO1_4035
if 
  1500 > TIMERB
goto_if_false @INTRO1_4065
wait 0
goto @INTRO1_4035

:INTRO1_4065
camera_reset_new_scriptables 
set_fixed_camera_position 951.3326 {y} -1099.652 {z} 25.3079 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 951.9009 {y} -1100.452 {z} 25.1184 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:INTRO1_4125
if 
  2500 > TIMERB
goto_if_false @INTRO1_4155
wait 0
goto @INTRO1_4125

:INTRO1_4155
if 
  not is_car_dead 51@
goto_if_false @INTRO1_4203
if 
  not is_char_dead 66@
goto_if_false @INTRO1_4203
clear_look_at 66@
task_look_at_vehicle 66@ {vehicle} 51@ {time} 4000

:INTRO1_4203
TIMERB = 0

:INTRO1_4210
if 
  1000 > TIMERB
goto_if_false @INTRO1_4240
wait 0
goto @INTRO1_4210

:INTRO1_4240
if 
  86@ <> 1
goto_if_false @INTRO1_4742
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_4510
if 
  75@ == 2
goto_if_false @INTRO1_4510
if 
  not is_car_dead 51@
goto_if_false @INTRO1_4426
if 
  not is_char_dead 66@
goto_if_false @INTRO1_4426
TIMERB = 0
task_look_at_vehicle $scplayer {vehicle} 51@ {time} 4000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_4387
clear_look_at 65@
task_look_at_vehicle 65@ {vehicle} 51@ {time} 4000

:INTRO1_4387
if 
  not is_char_dead 67@
goto_if_false @INTRO1_4419
clear_look_at 67@
task_look_at_vehicle 67@ {vehicle} 51@ {time} 4000

:INTRO1_4419
109@ = 1

:INTRO1_4426
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 951.3326 {fromY} -1099.652 {fromZ} 25.3079 {toX} 951.3326 {toY} -1099.652 {toZ} 25.3079 {time} 7500 {ease} True
camera_set_vector_track 951.9009 {fromY} -1100.452 {fromZ} 25.1184 {toX} 951.9258 {toY} -1098.847 {toZ} 25.3253 {time} 7500 {ease} True

:INTRO1_4510
if 
  TIMERB > 1000
goto_if_false @INTRO1_4735
if 
  109@ == 1
goto_if_false @INTRO1_4735
if 
  not is_char_dead 66@
goto_if_false @INTRO1_4728
task_dive_and_get_up 66@ {directionX} 1.0 {directionY} -3.0 {timeOnGround} 1000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_4654
give_weapon_to_char 65@ {weaponType} WeaponType.Pistol {ammo} 50
set_char_heading 65@ {heading} 270.0
set_char_stay_in_same_place 65@ {state} True
if 
  not is_char_dead 50@
goto_if_false @INTRO1_4654
task_toggle_duck 65@ {state} True
task_kill_char_on_foot 65@ {target} 50@

:INTRO1_4654
if 
  not is_char_dead 67@
goto_if_false @INTRO1_4710
give_weapon_to_char 67@ {weaponType} WeaponType.Pistol {ammo} 50
if 
  not is_char_dead 50@
goto_if_false @INTRO1_4710
task_kill_char_on_foot_while_ducking 67@ {target} 50@ {flags} 4 {actionDelay} 2000 {actionChance} 100

:INTRO1_4710
task_dive_and_get_up $scplayer {directionX} -1.5 {directionY} -1.0 {timeOnGround} 1000

:INTRO1_4728
109@ = 2

:INTRO1_4735
goto @INTRO1_4240

:INTRO1_4742
TIMERB = 0

:INTRO1_4749
if 
  1000 > TIMERB
goto_if_false @INTRO1_4779
wait 0
goto @INTRO1_4749

:INTRO1_4779
if 
  not is_car_dead 41@
goto_if_false @INTRO1_4800
explode_car_in_cutscene 41@

:INTRO1_4800
TIMERB = 0
109@ = 0

:INTRO1_4814
if 
  86@ <> 2
goto_if_false @INTRO1_4876
wait 0
gosub @INTRO1_20464
if 
  TIMERB > 1600
goto_if_false @INTRO1_4869
goto @INTRO1_4876

:INTRO1_4869
goto @INTRO1_4814

:INTRO1_4876
clear_area 956.09 {y} -1105.6801 {z} 22.75 {radius} 50.0 {clearParticles} True
if 
  not is_char_dead 52@
goto_if_false @INTRO1_4955
clear_char_tasks 52@
task_play_anim 52@ {animationName} "CAR_SIT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_4955
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 945.7507 {y} -1103.549 {z} 23.0477
set_char_heading $scplayer {heading} 252.8
task_stand_still $scplayer {time} 1
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5095
if 
  not is_car_dead 76@
goto_if_false @INTRO1_5095
set_char_stay_in_same_place 65@ {state} False
task_stand_still 65@ {time} 1
clear_look_at 65@
task_toggle_duck 65@ {state} False
set_char_coordinates 65@ {x} 957.0725 {y} -1106.504 {z} 22.7146
set_char_heading 65@ {heading} 251.1192
task_enter_car_as_driver 65@ {vehicle} 76@ {time} -1

:INTRO1_5095
if 
  not is_char_dead 66@
goto_if_false @INTRO1_5156
if 
  not is_car_dead 77@
goto_if_false @INTRO1_5156
set_char_stay_in_same_place 66@ {state} False
task_stand_still 66@ {time} 1
clear_look_at 66@
task_enter_car_as_driver 66@ {vehicle} 77@ {time} -1

:INTRO1_5156
if 
  not is_char_dead 67@
goto_if_false @INTRO1_5237
if 
  not is_car_dead 78@
goto_if_false @INTRO1_5237
set_char_stay_in_same_place 67@ {state} False
task_stand_still 67@ {time} 1
clear_look_at 67@
set_char_coordinates 67@ {x} 957.12 {y} -1104.4 {z} 22.7146
task_enter_car_as_driver 67@ {vehicle} 78@ {time} -1

:INTRO1_5237
TIMERB = 0

:INTRO1_5244
if 
  100 > TIMERB
goto_if_false @INTRO1_5273
wait 0
goto @INTRO1_5244

:INTRO1_5273
camera_reset_new_scriptables 
set_fixed_camera_position 953.489 {y} -1100.465 {z} 24.8611 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 954.1205 {y} -1101.236 {z} 24.7823 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20014
109@ = 0

:INTRO1_5340
if 
  86@ <> 3
goto_if_false @INTRO1_5449
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_5442
if 
  75@ == 2
goto_if_false @INTRO1_5442
clear_char_tasks_immediately $scplayer
task_go_straight_to_coord $scplayer {x} 971.181 {y} -1108.193 {z} 22.8672 {speed} MoveState.Run {time} 10000
109@ = 1

:INTRO1_5442
goto @INTRO1_5340

:INTRO1_5449
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO1_5475
wait 0
goto @INTRO1_5449

:INTRO1_5475
play_mission_audio MissionAudioSlot.Slot2
print_now 'INT1_AP' {time} 10000 {flag} 1

:INTRO1_5495
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO1_5521
wait 0
goto @INTRO1_5495

:INTRO1_5521
91@ = 1

:INTRO1_5528
skip_cutscene_end 
if 
  91@ == 0
goto_if_false @INTRO1_5817
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:INTRO1_5565
if 
  get_fading_status 
goto_if_false @INTRO1_5589
wait 0
goto @INTRO1_5565

:INTRO1_5589
set_player_control $player1 {state} False
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5665
if 
  not is_car_dead 76@
goto_if_false @INTRO1_5665
set_char_coordinates 65@ {x} 969.2067 {y} -1110.3 {z} 22.8672
set_char_heading 65@ {heading} 273.1099
task_toggle_duck 65@ {state} False

:INTRO1_5665
if 
  not is_char_dead 66@
goto_if_false @INTRO1_5727
if 
  not is_car_dead 77@
goto_if_false @INTRO1_5727
set_char_coordinates 66@ {x} 969.1187 {y} -1116.561 {z} 22.8552
set_char_heading 66@ {heading} 298.5085

:INTRO1_5727
if 
  not is_char_dead 67@
goto_if_false @INTRO1_5794
if 
  not is_car_dead 78@
goto_if_false @INTRO1_5794
clear_look_at 67@
set_char_coordinates 67@ {x} 969.436 {y} -1113.775 {z} 22.8593
set_char_heading 67@ {heading} 267.2885

:INTRO1_5794
camera_reset_new_scriptables 
if 
  not is_car_dead 41@
goto_if_false @INTRO1_5817
explode_car_in_cutscene 41@

:INTRO1_5817
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5866
if 
  not is_car_dead 76@
goto_if_false @INTRO1_5866
task_toggle_duck 65@ {state} False
task_enter_car_as_driver 65@ {vehicle} 76@ {time} -1

:INTRO1_5866
if 
  not is_char_dead 66@
goto_if_false @INTRO1_5908
if 
  not is_car_dead 77@
goto_if_false @INTRO1_5908
task_enter_car_as_driver 66@ {vehicle} 77@ {time} -1

:INTRO1_5908
if 
  not is_char_dead 67@
goto_if_false @INTRO1_5955
if 
  not is_car_dead 78@
goto_if_false @INTRO1_5955
clear_look_at 67@
task_enter_car_as_driver 67@ {vehicle} 78@ {time} -1

:INTRO1_5955
mark_car_as_no_longer_needed 41@
mark_model_as_no_longer_needed 404
if 
  not is_char_dead 65@
goto_if_false @INTRO1_5988
remove_weapon_from_char 65@ {weaponType} WeaponType.Pistol

:INTRO1_5988
if 
  not is_char_dead 67@
goto_if_false @INTRO1_6011
remove_weapon_from_char 67@ {weaponType} WeaponType.Pistol

:INTRO1_6011
mark_model_as_no_longer_needed 346
if 
  not is_car_dead 51@
goto_if_false @INTRO1_6044
stop_playback_recorded_car 51@
goto @INTRO1_6049

:INTRO1_6044
stop_playback_recorded_car 51@

:INTRO1_6049
remove_car_recording 201
TIMERB = 0

:INTRO1_6061
if 
  100 > TIMERB
goto_if_false @INTRO1_6090
wait 0
goto @INTRO1_6061

:INTRO1_6090
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
clear_look_at $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
if 
  not is_car_dead 37@
goto_if_false @INTRO1_6148
43@ = add_blip_for_car 37@
set_blip_as_friendly 43@ {state} True

:INTRO1_6148
if 
  not is_car_dead 51@
goto_if_false @INTRO1_6209
116@, 117@, 118@ = get_car_coordinates 51@
118@ -= 50.0
set_car_coordinates 51@ {x} 116@ {y} 117@ {z} 118@
freeze_car_position_and_dont_load_collision 51@ {state} True

:INTRO1_6209
if 
  91@ == 0
goto_if_false @INTRO1_6352
set_fading_colour 0 {g} 0 {b} 0
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 970.0873 {y} -1107.776 {z} 22.8672
set_char_heading $scplayer {heading} 254.4577
TIMERB = 0
set_player_control $player1 {state} False

:INTRO1_6284
if 
  1000 > TIMERB
goto_if_false @INTRO1_6314
wait 0
goto @INTRO1_6284

:INTRO1_6314
do_fade 500 {direction} Fade.In

:INTRO1_6321
if 
  get_fading_status 
goto_if_false @INTRO1_6345
wait 0
goto @INTRO1_6321

:INTRO1_6345
set_player_control $player1 {state} True

:INTRO1_6352
82@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 962.5424 {y} -1128.6 {z} 22.6656 {speed} 8.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1036.603 {y} -1148.943 {z} 22.6562 {speed} 16.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1325.583 {y} -1150.183 {z} 22.6484 {speed} 23.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1644.7729 {y} -1051.334 {z} 22.8984 {speed} 23.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 82@
72@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 1780.85 {y} -1111.48 {z} 23.08 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1786.54 {y} -1191.3 {z} 22.95 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1798.67 {y} -1270.41 {z} 12.47 {speed} 19.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1891.0 {y} -1347.78 {z} 12.54 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1959.12 {y} -1450.1 {z} 12.45 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1987.61 {y} -1516.6899 {z} 2.39 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2493.8201 {y} -1669.91 {z} 12.8 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 72@
111@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 1780.85 {y} -1111.48 {z} 23.08 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1784.54 {y} -1191.3 {z} 22.95 {speed} 19.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1798.67 {y} -1270.41 {z} 12.47 {speed} 19.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1891.0 {y} -1347.78 {z} 12.54 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1959.12 {y} -1450.1 {z} 12.45 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 1987.61 {y} -1516.6899 {z} 2.39 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2493.8201 {y} -1669.91 {z} 12.8 {speed} 24.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 111@
if 
  is_car_dead 37@
goto_if_false @INTRO1_7015
print_now 'INT2_F4' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_7015
75@ = 0
86@ = 3

:INTRO1_7029
if 
  86@ <> 4
goto_if_false @INTRO1_7104
wait 0
gosub @INTRO1_20464
gosub @INTRO1_18572
gosub @INTRO1_20140
if 
  45@ == 1
goto_if_false @INTRO1_7097
goto @INTRO1_18170

:INTRO1_7097
goto @INTRO1_7029

:INTRO1_7104
print_now 'INTRO2E' {time} 10000 {flag} 1
request_animation "MISC"
$blob_flag = 1
TIMERA = 0
if 
  is_char_dead 67@
goto_if_false @INTRO1_7181
print_now 'INT2_F2' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_7181
92@ = 0
114@ = 0
86@ = 0
75@ = 0
109@ = 0
46@ = 4
gosub @INTRO1_47

:INTRO1_7230
if or
  not locate_char_any_means_3d $scplayer {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
  not locate_char_any_means_3d 67@ {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_9160
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @INTRO1_7361
set_char_coordinates $scplayer {x} 2473.6919 {y} -1684.215 {z} 12.4625
goto @INTRO1_18188

:INTRO1_7361
gosub @INTRO1_18572
gosub @INTRO1_20140
if 
  not is_car_dead 37@
goto_if_false @INTRO1_7421
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_7421
clear_this_print 'INTRO2E'

:INTRO1_7421
if 
  45@ == 1
goto_if_false @INTRO1_7446
goto @INTRO1_18170

:INTRO1_7446
if 
  92@ == 0
goto_if_false @INTRO1_7504
if 
  TIMERA > 6000
goto_if_false @INTRO1_7504
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
92@ = 1

:INTRO1_7504
if 
  68@ == 0
goto_if_false @INTRO1_7964
if 
  not is_car_dead 51@
goto_if_false @INTRO1_7957
if 
  not locate_char_any_means_3d $scplayer {x} 949.4 {y} -1102.1 {z} 23.2 {xRadius} 50.0 {yRadius} 60.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @INTRO1_7957
set_car_coordinates 51@ {x} 1079.15 {y} -1084.73 {z} 25.43
set_car_heading 51@ {heading} 175.95
freeze_car_position_and_dont_load_collision 51@ {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_7816
if 
  not is_char_dead 52@
goto_if_false @INTRO1_7712
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_7712
clear_char_tasks 52@
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_7712
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_7809
69@ = store_car_char_is_in $scplayer
if 
  not is_char_dead 50@
goto_if_false @INTRO1_7809
if 
  not is_car_dead 51@
goto_if_false @INTRO1_7809
clear_char_tasks 50@
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_7809
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_7809
goto @INTRO1_7950

:INTRO1_7816
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
if 
  not is_char_dead 50@
goto_if_false @INTRO1_7950
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_7950
if 
  not is_char_dead 50@
goto_if_false @INTRO1_7950
if 
  not is_car_dead 51@
goto_if_false @INTRO1_7950
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_7950
68@ = 1

:INTRO1_7957
goto @INTRO1_8795

:INTRO1_7964
if 
  not is_car_dead 51@
goto_if_false @INTRO1_8717
if 
  not is_char_dead 50@
goto_if_false @INTRO1_8658
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8592
125@, 126@, 127@ = get_char_coordinates $scplayer
if and
  not locate_car_2d 51@ {x} 125@ {y} 126@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  not is_car_on_screen 51@
goto_if_false @INTRO1_8161
clear_char_tasks 50@
116@, 117@, 118@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -40.0 {zOffset} 0.0
119@, 120@, 121@ = get_closest_car_node 116@ {y} 117@ {z} 118@
set_car_coordinates 51@ {x} 119@ {y} 120@ {z} 121@
turn_car_to_face_coord 51@ {x} 116@ {y} 117@
set_car_forward_speed 51@ {forwardSpeed} 20.0
goto @INTRO1_8585

:INTRO1_8161
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_8370
53@ = get_script_task_status 50@ {taskId} 1761
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8266
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_8266
69@ = store_car_char_is_in $scplayer
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_8266
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_8266
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8363
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_8363
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8363
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_8363
goto @INTRO1_8585

:INTRO1_8370
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8488
if 
  not is_char_dead 50@
goto_if_false @INTRO1_8488
if 
  not is_car_dead 51@
goto_if_false @INTRO1_8488
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_8488
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8585
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_8585
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_8585
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_8585
goto @INTRO1_8651

:INTRO1_8592
if 
  114@ == 0
goto_if_false @INTRO1_8651
if 
  not is_char_dead 50@
goto_if_false @INTRO1_8651
clear_char_tasks 50@
task_leave_any_car 50@
task_kill_char_on_foot 50@ {target} $scplayer
114@ = 1

:INTRO1_8651
goto @INTRO1_8717

:INTRO1_8658
if 
  114@ == 0
goto_if_false @INTRO1_8717
if 
  not is_char_dead 52@
goto_if_false @INTRO1_8717
clear_char_tasks 52@
task_leave_any_car 52@
task_kill_char_on_foot 52@ {target} $scplayer
114@ = 1

:INTRO1_8717
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_8795
if 
  not is_char_dead 67@
goto_if_false @INTRO1_8795
if 
  locate_char_any_means_char_3d $scplayer {target} 67@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @INTRO1_8795
gosub @INTRO1_20464

:INTRO1_8795
if 
  is_char_in_model $scplayer {modelId} 481
goto_if_false @INTRO1_9036
if 
  $been_in_a_bmx == 0
goto_if_false @INTRO1_8864
print_help 'INTRO2C'
TIMERA = 0
$been_in_a_bmx = 1
goto @INTRO1_9036

:INTRO1_8864
if 
  $been_in_a_bmx == 1
goto_if_false @INTRO1_8926
if 
  TIMERA > 10000
goto_if_false @INTRO1_8926
print_help 'INTRO2D'
TIMERA = 0
$been_in_a_bmx = 2

:INTRO1_8926
if 
  $been_in_a_bmx == 2
goto_if_false @INTRO1_8981
if 
  TIMERA > 20000
goto_if_false @INTRO1_8981
print_help 'HELP3B'
$been_in_a_bmx = 3

:INTRO1_8981
if 
  $been_in_a_bmx == 3
goto_if_false @INTRO1_9036
if 
  TIMERA > 28000
goto_if_false @INTRO1_9036
print_help 'HELP3B2'
$been_in_a_bmx = 4

:INTRO1_9036
if 
  is_char_dead 65@
goto_if_false @INTRO1_9075
print_now 'INT2_F1' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_9075
if 
  is_char_dead 66@
goto_if_false @INTRO1_9114
print_now 'INT2_F3' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_9114
if 
  is_char_dead 67@
goto_if_false @INTRO1_9153
print_now 'INT2_F2' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_9153
goto @INTRO1_7230

:INTRO1_9160
113@ = 0
do_fade 500 {direction} Fade.Out

:INTRO1_9174
if 
  get_fading_status 
goto_if_false @INTRO1_9198
wait 0
goto @INTRO1_9174

:INTRO1_9198
set_fixed_camera_position 1647.208 {y} -1085.2321 {z} 24.1633 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1646.354 {y} -1084.712 {z} 24.164 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
load_scene_in_direction 1637.642 {y} -1063.702 {z} 22.8984 {heading} 152.0807
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:INTRO1_9286
if 
  not has_animation_loaded "MISC"
goto_if_false @INTRO1_9330
wait 0
request_animation "MISC"
do_fade 0 {direction} Fade.Out
goto @INTRO1_9286

:INTRO1_9330
107@ = 2
if 
  is_car_dead 51@
goto_if_false @INTRO1_9374
113@ = 1
107@ = 3
goto @INTRO1_9414

:INTRO1_9374
if or
  is_car_in_water 51@
  is_char_dead 50@
  is_char_dead 52@
goto_if_false @INTRO1_9414
113@ = 1
107@ = 3

:INTRO1_9414
switch_ped_roads_off 1782.802 {leftBottomY} -1203.4969 {leftBottomZ} 0.0 {rightTopX} 1788.2729 {rightTopY} -1236.15 {rightTopZ} 20.0
set_near_clip 0.2
86@ = 0
75@ = 0
109@ = 0
46@ = 3
gosub @INTRO1_47
if 
  not is_car_dead 78@
goto_if_false @INTRO1_9862
if 
  not is_char_dead 67@
goto_if_false @INTRO1_9862
freeze_char_position_and_dont_load_collision 67@ {state} False
freeze_car_position_and_dont_load_collision 78@ {state} False
if 
  not is_char_in_car 67@ {vehicle} 78@
goto_if_false @INTRO1_9561
warp_char_into_car 67@ {vehicle} 78@

:INTRO1_9561
clear_area 1644.47 {y} -1072.658 {z} 22.9062 {radius} 4.0 {clearParticles} True
if 
  113@ == 0
goto_if_false @INTRO1_9827
set_car_coordinates 78@ {x} 1644.47 {y} -1072.658 {z} 22.9062
set_car_heading 78@ {heading} 170.0
task_car_drive_to_coord 67@ {vehicle} 78@ {x} 1540.298 {y} -1159.188 {z} 22.9062 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 481 {drivingStyle} DrivingMode.AvoidCars
set_car_forward_speed 78@ {forwardSpeed} 10.0
if 
  not is_car_dead 51@
goto_if_false @INTRO1_9820
clear_area 1637.08 {y} -1061.001 {z} 22.9114 {radius} 4.0 {clearParticles} True
set_car_coordinates 51@ {x} 1637.08 {y} -1061.001 {z} 22.9114
set_car_heading 51@ {heading} 182.2789
set_car_forward_speed 51@ {forwardSpeed} 5.0
if 
  not is_char_dead 52@
goto_if_false @INTRO1_9779
clear_char_tasks 52@

:INTRO1_9779
if 
  not is_char_dead 50@
goto_if_false @INTRO1_9820
clear_char_tasks 50@
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 78@ {missionId} CarMission.EscortLeft {cruiseSpeed} 40.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_9820
goto @INTRO1_9857

:INTRO1_9827
set_car_coordinates 78@ {x} 1638.166 {y} -1056.298 {z} 22.9062
set_car_heading 78@ {heading} 272.6299

:INTRO1_9857
remove_blip 39@

:INTRO1_9862
clear_area 1638.712 {y} -1050.319 {z} 22.8984 {radius} 4.0 {clearParticles} True
if 
  not is_char_dead 65@
goto_if_false @INTRO1_10013
if 
  not is_car_dead 76@
goto_if_false @INTRO1_10013
freeze_char_position_and_dont_load_collision 65@ {state} False
freeze_car_position_and_dont_load_collision 76@ {state} False
if 
  not is_char_in_car 65@ {vehicle} 76@
goto_if_false @INTRO1_9959
warp_char_into_car 65@ {vehicle} 76@

:INTRO1_9959
clear_area 1640.649 {y} -1055.473 {z} 22.9062 {radius} 4.0 {clearParticles} True
set_car_coordinates 76@ {x} 1640.649 {y} -1055.473 {z} 22.9062
set_car_heading 76@ {heading} 260.0

:INTRO1_10013
if 
  not is_char_dead 66@
goto_if_false @INTRO1_10140
if 
  not is_car_dead 77@
goto_if_false @INTRO1_10140
freeze_char_position_and_dont_load_collision 66@ {state} False
freeze_car_position_and_dont_load_collision 77@ {state} False
if 
  not is_char_in_car 66@ {vehicle} 77@
goto_if_false @INTRO1_10086
warp_char_into_car 66@ {vehicle} 77@

:INTRO1_10086
clear_area 1644.913 {y} -1050.538 {z} 22.8984 {radius} 4.0 {clearParticles} True
set_car_coordinates 77@ {x} 1644.913 {y} -1050.538 {z} 22.8984
set_car_heading 77@ {heading} 270.0

:INTRO1_10140
switch_widescreen True
wait 100
if or
  is_char_in_any_car $scplayer
  is_char_on_any_bike $scplayer
goto_if_false @INTRO1_10214
69@ = store_car_char_is_in $scplayer
set_car_coordinates 69@ {x} 1638.712 {y} -1050.319 {z} 22.8984
set_car_heading 69@ {heading} 252.8
goto @INTRO1_10244

:INTRO1_10214
set_char_coordinates $scplayer {x} 1638.712 {y} -1050.319 {z} 22.8984
set_char_heading $scplayer {heading} 252.8

:INTRO1_10244
clear_area 1636.084 {y} -1093.459 {z} 23.7139 {radius} 100.0 {clearParticles} True
if 
  113@ == 1
goto_if_false @INTRO1_10293
goto @INTRO1_10494

:INTRO1_10293
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1647.208 {fromY} -1085.2321 {fromZ} 24.1633 {toX} 1647.969 {toY} -1098.429 {toZ} 24.1724 {time} 4100 {ease} True
camera_set_vector_track 1646.354 {fromY} -1084.712 {fromZ} 24.164 {toX} 1647.5229 {toY} -1099.323 {toZ} 24.1731 {time} 4100 {ease} True
do_fade 500 {direction} Fade.In
TIMERA = 0

:INTRO1_10391
if 
  500 > TIMERA
goto_if_false @INTRO1_10421
wait 0
goto @INTRO1_10391

:INTRO1_10421
if 
  86@ <> 1
goto_if_false @INTRO1_10457
wait 0
gosub @INTRO1_20464
goto @INTRO1_10421

:INTRO1_10457
TIMERA = 0

:INTRO1_10464
if 
  1000 > TIMERA
goto_if_false @INTRO1_10494
wait 0
goto @INTRO1_10464

:INTRO1_10494
if 
  113@ == 1
goto_if_false @INTRO1_10526
86@ = 1
do_fade 500 {direction} Fade.In

:INTRO1_10526
camera_reset_new_scriptables 
set_fixed_camera_position 1646.476 {y} -1049.4301 {z} 23.0659 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1645.693 {y} -1049.9969 {z} 23.3176 {switchStyle} SwitchType.JumpCut

:INTRO1_10579
if 
  86@ <> 2
goto_if_false @INTRO1_10723
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_10716
if 
  75@ == 2
goto_if_false @INTRO1_10716
if 
  not is_char_dead 66@
goto_if_false @INTRO1_10709
task_play_anim 66@ {animationName} "BMX_COMEON" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
53@ = get_script_task_status 66@ {taskId} 1541

:INTRO1_10709
109@ = 1

:INTRO1_10716
goto @INTRO1_10579

:INTRO1_10723
if 
  not is_char_dead 66@
goto_if_false @INTRO1_10797
if 
  not is_car_dead 37@
goto_if_false @INTRO1_10789
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_10789
40@ = add_blip_for_char 66@
set_blip_as_friendly 40@ {state} True

:INTRO1_10789
perform_sequence_task 66@ {sequence} 72@

:INTRO1_10797
if 
  not is_char_dead 65@
goto_if_false @INTRO1_10842
if 
  not is_car_dead 76@
goto_if_false @INTRO1_10842
perform_sequence_task 65@ {sequence} 111@
clear_sequence_task 111@

:INTRO1_10842
if 
  113@ == 0
goto_if_false @INTRO1_11149
if 
  not is_char_dead 67@
goto_if_false @INTRO1_10991
if 
  not is_car_dead 78@
goto_if_false @INTRO1_10991
clear_char_tasks_immediately 67@
set_car_coordinates 78@ {x} 1540.298 {y} -1159.188 {z} -50.3438
wait 0
if 
  not is_char_dead 67@
goto_if_false @INTRO1_10991
if 
  not is_car_dead 78@
goto_if_false @INTRO1_10991
if 
  not is_char_in_any_car 67@
goto_if_false @INTRO1_10977
warp_char_into_car 67@ {vehicle} 78@

:INTRO1_10977
freeze_char_position_and_dont_load_collision 67@ {state} True
freeze_car_position_and_dont_load_collision 78@ {state} True

:INTRO1_10991
if 
  not is_char_dead 50@
goto_if_false @INTRO1_11142
if 
  not is_char_dead 52@
goto_if_false @INTRO1_11142
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11142
clear_char_tasks_immediately 50@
clear_char_tasks_immediately 52@
set_car_coordinates 51@ {x} 1540.298 {y} -1171.188 {z} -50.3438
wait 0
if 
  not is_char_dead 50@
goto_if_false @INTRO1_11142
if 
  not is_char_dead 52@
goto_if_false @INTRO1_11142
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11142
freeze_char_position_and_dont_load_collision 50@ {state} True
freeze_char_position_and_dont_load_collision 52@ {state} True
freeze_car_position_and_dont_load_collision 51@ {state} True

:INTRO1_11142
goto @INTRO1_11189

:INTRO1_11149
if 
  not is_char_dead 67@
goto_if_false @INTRO1_11189
if 
  not is_car_dead 78@
goto_if_false @INTRO1_11189
perform_sequence_task 67@ {sequence} 72@

:INTRO1_11189
clear_sequence_task 72@
wait 1000
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
74@ = 1
if 
  not is_car_dead 37@
goto_if_false @INTRO1_11295
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_11279
print_now 'INTRO2K' {time} 1000 {flag} 1
goto @INTRO1_11295

:INTRO1_11279
print_now 'INTRO2E' {time} 10000 {flag} 1

:INTRO1_11295
92@ = 2
if 
  is_car_dead 37@
goto_if_false @INTRO1_11341
print_now 'INT2_F4' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_11341
if 
  is_char_dead 66@
goto_if_false @INTRO1_11364
goto @INTRO1_18170

:INTRO1_11364
if 
  not is_car_dead 37@
goto_if_false @INTRO1_11420
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_11413
$blob_flag = 1
goto @INTRO1_11420

:INTRO1_11413
$blob_flag = 0

:INTRO1_11420
68@ = 0
57@ = 0
86@ = 0
75@ = 0
109@ = 0
46@ = 6
64@ = 0
gosub @INTRO1_47
TIMERA = 0
112@ = 0

:INTRO1_11490
if or
  not locate_char_any_means_3d $scplayer {x} 2493.8201 {y} -1669.91 {z} 12.8 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} True
  not locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_13589
wait 0
gosub @INTRO1_18572
gosub @INTRO1_20140
if 
  45@ == 1
goto_if_false @INTRO1_11606
goto @INTRO1_18170

:INTRO1_11606
if 
  57@ == 0
goto_if_false @INTRO1_13040
if 
  68@ == 0
goto_if_false @INTRO1_12164
if 
  locate_char_any_means_3d $scplayer {x} 1981.292 {y} -1510.219 {z} 2.3844 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @INTRO1_12157
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12157
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12157
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11896
freeze_char_position_and_dont_load_collision 50@ {state} False
freeze_char_position_and_dont_load_collision 52@ {state} False
freeze_car_position_and_dont_load_collision 51@ {state} False
set_car_coordinates 51@ {x} 1809.0 {y} -1519.0 {z} 7.0
set_car_heading 51@ {heading} 270.0
if 
  not is_char_in_any_car 50@
goto_if_false @INTRO1_11813
warp_char_into_car 50@ {vehicle} 51@

:INTRO1_11813
if 
  not is_char_in_any_car 52@
goto_if_false @INTRO1_11839
warp_char_into_car_as_passenger 52@ {handle} 51@ {seat} SeatId.BikeRear

:INTRO1_11839
clear_char_tasks 52@
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_11896
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_11896
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_12000
69@ = store_car_char_is_in $scplayer
if 
  not is_char_dead 50@
goto_if_false @INTRO1_11993
if 
  not is_car_dead 51@
goto_if_false @INTRO1_11993
clear_char_tasks 50@
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_11993
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_11993
goto @INTRO1_12150

:INTRO1_12000
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12150
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12150
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12150
if 
  not is_car_dead 51@
goto_if_false @INTRO1_12150
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_12150
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_12150
68@ = 1

:INTRO1_12157
goto @INTRO1_12933

:INTRO1_12164
if 
  not is_car_dead 51@
goto_if_false @INTRO1_12933
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12874
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12808
125@, 126@, 127@ = get_char_coordinates $scplayer
if and
  not locate_car_2d 51@ {x} 125@ {y} 126@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  not is_car_on_screen 51@
goto_if_false @INTRO1_12361
clear_char_tasks 50@
116@, 117@, 118@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -40.0 {zOffset} 0.0
119@, 120@, 121@ = get_closest_car_node 116@ {y} 117@ {z} 118@
set_car_coordinates 51@ {x} 119@ {y} 120@ {z} 121@
turn_car_to_face_coord 51@ {x} 116@ {y} 117@
set_car_forward_speed 51@ {forwardSpeed} 20.0
goto @INTRO1_12801

:INTRO1_12361
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_12570
53@ = get_script_task_status 50@ {taskId} 1761
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12466
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_12466
69@ = store_car_char_is_in $scplayer
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_12466
task_car_mission 50@ {vehicle} 51@ {targetVehicle} 69@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_12466
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12563
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_12563
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12563
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_12563
goto @INTRO1_12801

:INTRO1_12570
122@, 123@, 124@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
53@ = get_script_task_status 50@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12704
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12704
if 
  not is_car_dead 51@
goto_if_false @INTRO1_12704
if 
  is_char_in_any_car 50@
goto_if_false @INTRO1_12704
task_car_drive_to_coord 50@ {vehicle} 51@ {x} 122@ {y} 123@ {z} 124@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_12704
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12801
if 
  is_char_in_any_car 52@
goto_if_false @INTRO1_12801
53@ = get_script_task_status 52@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 53@ == 7
goto_if_false @INTRO1_12801
task_drive_by 52@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.AiSide {rightHandCarSeat} True {fireRate} 40

:INTRO1_12801
goto @INTRO1_12867

:INTRO1_12808
if 
  114@ == 0
goto_if_false @INTRO1_12867
if 
  not is_char_dead 50@
goto_if_false @INTRO1_12867
clear_char_tasks 50@
task_leave_any_car 50@
task_kill_char_on_foot 50@ {target} $scplayer
114@ = 1

:INTRO1_12867
goto @INTRO1_12933

:INTRO1_12874
if 
  114@ == 0
goto_if_false @INTRO1_12933
if 
  not is_char_dead 52@
goto_if_false @INTRO1_12933
clear_char_tasks 52@
task_leave_any_car 52@
task_kill_char_on_foot 52@ {target} $scplayer
114@ = 1

:INTRO1_12933
if 
  not is_char_dead 50@
goto_if_false @INTRO1_13040
if 
  not is_car_dead 51@
goto_if_false @INTRO1_13040
if 
  locate_char_any_means_3d 50@ {x} 2341.8501 {y} -1658.92 {z} 12.39 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @INTRO1_13040
clear_char_tasks 50@
task_car_drive_wander 50@ {vehicle} 51@ {speed} 20.0 {drivingMode} DrivingMode.AvoidCars
57@ = 1

:INTRO1_13040
if 
  112@ == 0
goto_if_false @INTRO1_13210
if 
  TIMERA > 1500
goto_if_false @INTRO1_13178
if 
  not is_char_dead 66@
goto_if_false @INTRO1_13178
if 
  not is_car_dead 77@
goto_if_false @INTRO1_13178
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_13178
if 
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @INTRO1_13178
gosub @INTRO1_20464
115@ = 1

:INTRO1_13178
if 
  86@ > 1
goto_if_false @INTRO1_13203
112@ = 1

:INTRO1_13203
goto @INTRO1_13447

:INTRO1_13210
if 
  112@ == 1
goto_if_false @INTRO1_13284
86@ = 0
75@ = 0
109@ = 0
46@ = 5
64@ = 0
gosub @INTRO1_47
TIMERA = 0
112@ = 2

:INTRO1_13284
if 
  112@ == 2
goto_if_false @INTRO1_13447
if 
  TIMERA > 1500
goto_if_false @INTRO1_13422
if 
  not is_char_dead 65@
goto_if_false @INTRO1_13422
if 
  not is_car_dead 76@
goto_if_false @INTRO1_13422
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_13422
if 
  locate_char_any_means_char_3d $scplayer {target} 65@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @INTRO1_13422
gosub @INTRO1_20464
108@ = 1

:INTRO1_13422
if 
  86@ > 2
goto_if_false @INTRO1_13447
112@ = 3

:INTRO1_13447
if 
  is_char_dead 65@
goto_if_false @INTRO1_13486
print_now 'INT2_F1' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_13486
if 
  is_char_dead 66@
goto_if_false @INTRO1_13525
print_now 'INT2_F3' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_13525
if 
  113@ == 1
goto_if_false @INTRO1_13582
if 
  is_char_dead 67@
goto_if_false @INTRO1_13582
print_now 'INT2_F2' {time} 10000 {flag} 1
goto @INTRO1_18170

:INTRO1_13582
goto @INTRO1_11490

:INTRO1_13589
set_player_control $player1 {state} False
113@ = 0
if 
  not is_car_dead 37@
goto_if_false @INTRO1_13679
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_13679
task_play_anim $scplayer {animationName} "BMX_CELEBRATE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_13679
wait 1000
do_fade 1500 {direction} Fade.Out

:INTRO1_13691
if 
  get_fading_status 
goto_if_false @INTRO1_13715
wait 0
goto @INTRO1_13691

:INTRO1_13715
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_wanted_level $player1
request_car_recording 205
request_car_recording 206
request_animation "MISC"
request_animation "GANGS"
load_all_models_now 

:INTRO1_13757
if or
  not has_car_recording_been_loaded 205
  not has_car_recording_been_loaded 206
  not has_animation_loaded "MISC"
  not has_animation_loaded "GANGS"
goto_if_false @INTRO1_13806
wait 0
goto @INTRO1_13757

:INTRO1_13806
switch_widescreen True
set_near_clip 0.2
86@ = 0
75@ = 0
109@ = 0
46@ = 2
gosub @INTRO1_47
if 
  not is_car_dead 37@
goto_if_false @INTRO1_14035
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_14005
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO1_13954
warp_char_from_car_to_coord $scplayer {x} 2487.3091 {y} -1668.3719 {z} 12.3438
set_char_heading $scplayer {heading} 80.0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
113@ = 1
goto @INTRO1_13998

:INTRO1_13954
set_char_coordinates $scplayer {x} 2487.3091 {y} -1668.3719 {z} 12.3438
set_char_heading $scplayer {heading} 80.0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
113@ = 1

:INTRO1_13998
goto @INTRO1_14035

:INTRO1_14005
set_car_coordinates 37@ {x} 2487.3091 {y} -1668.3719 {z} 12.3438
set_car_heading 37@ {heading} 80.0

:INTRO1_14035
clear_area 2487.3091 {y} -1668.3719 {z} 12.3438 {radius} 50.0 {clearParticles} True
if 
  not is_char_dead 65@
goto_if_false @INTRO1_14164
if 
  not is_car_dead 76@
goto_if_false @INTRO1_14164
clear_char_tasks_immediately 65@
freeze_char_position_and_dont_load_collision 65@ {state} False
freeze_car_position_and_dont_load_collision 76@ {state} False
if 
  not is_char_in_any_car 65@
goto_if_false @INTRO1_14134
warp_char_into_car 65@ {vehicle} 76@

:INTRO1_14134
set_car_coordinates 76@ {x} 2487.1721 {y} -1666.301 {z} 12.3438
set_car_heading 76@ {heading} 124.2698

:INTRO1_14164
if 
  not is_char_dead 66@
goto_if_false @INTRO1_14239
if 
  not is_car_dead 77@
goto_if_false @INTRO1_14239
clear_char_tasks_immediately 66@
freeze_char_position_and_dont_load_collision 66@ {state} False
freeze_car_position_and_dont_load_collision 77@ {state} False
if 
  not is_char_in_any_car 66@
goto_if_false @INTRO1_14239
warp_char_into_car 66@ {vehicle} 77@

:INTRO1_14239
if 
  not is_char_dead 67@
goto_if_false @INTRO1_14334
if 
  not is_car_dead 78@
goto_if_false @INTRO1_14334
clear_char_tasks_immediately 67@
freeze_char_position_and_dont_load_collision 67@ {state} False
freeze_car_position_and_dont_load_collision 78@ {state} False
if 
  not is_char_in_any_car 67@
goto_if_false @INTRO1_14314
warp_char_into_car 67@ {vehicle} 78@

:INTRO1_14314
set_car_coordinates 78@ {x} 2371.5 {y} -1654.895 {z} 12.3826

:INTRO1_14334
delete_char 50@
delete_char 52@
delete_car 51@
set_fixed_camera_position 2409.0371 {y} -1672.324 {z} 18.3556 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2409.9541 {y} -1671.944 {z} 18.2334 {switchStyle} SwitchType.JumpCut
load_scene 2480.689 {y} -1670.006 {z} 13.0061
set_fixed_camera_position 2479.8269 {y} -1670.506 {z} 12.9206 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2480.689 {y} -1670.006 {z} 13.0061 {switchStyle} SwitchType.JumpCut
wait 1000
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead 66@
goto_if_false @INTRO1_14530
if 
  not is_car_dead 77@
goto_if_false @INTRO1_14530
start_playback_recorded_car 77@ {path} 206
set_playback_speed 77@ {speed} 1.0

:INTRO1_14530
109@ = 0

:INTRO1_14537
if 
  86@ <> 1
goto_if_false @INTRO1_14842
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_14835
if 
  75@ == 2
goto_if_false @INTRO1_14835
if 
  not is_char_dead 66@
goto_if_false @INTRO1_14828
clear_look_at 66@
task_look_at_char 66@ {target} $scplayer {time} 30000
start_char_facial_talk 66@ {duration} 20000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 66@ {time} 30000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_14717
task_play_anim 65@ {animationName} "BMX_IDLELOOP_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_14717
if 
  113@ == 0
goto_if_false @INTRO1_14778
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_14778
if 
  not is_char_dead 67@
goto_if_false @INTRO1_14828
if 
  not is_car_dead 78@
goto_if_false @INTRO1_14828
start_playback_recorded_car 78@ {path} 205
set_playback_speed 78@ {speed} 0.8

:INTRO1_14828
109@ = 1

:INTRO1_14835
goto @INTRO1_14537

:INTRO1_14842
TIMERB = 0

:INTRO1_14849
if 
  200 > TIMERB
goto_if_false @INTRO1_14879
wait 0
goto @INTRO1_14849

:INTRO1_14879
skip_cutscene_start_internal @INTRO1_17756
109@ = 0

:INTRO1_14893
if 
  86@ <> 2
goto_if_false @INTRO1_15191
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_15184
if 
  75@ == 2
goto_if_false @INTRO1_15184
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15177
clear_look_at 67@
task_look_at_char 67@ {target} $scplayer {time} 30000
start_char_facial_talk 67@ {duration} 20000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 67@ {time} 30000
task_play_anim 67@ {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  113@ == 0
goto_if_false @INTRO1_15118
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15118
if 
  not is_char_dead 65@
goto_if_false @INTRO1_15177
task_play_anim 65@ {animationName} "BMX_IDLELOOP_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15177
109@ = 1

:INTRO1_15184
goto @INTRO1_14893

:INTRO1_15191
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15212
stop_char_facial_talk 67@

:INTRO1_15212
set_fixed_camera_position 2488.323 {y} -1669.926 {z} 13.3261 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2487.4851 {y} -1669.385 {z} 13.2679 {switchStyle} SwitchType.JumpCut
109@ = 0

:INTRO1_15270
if 
  86@ <> 3
goto_if_false @INTRO1_15535
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_15528
if 
  75@ == 2
goto_if_false @INTRO1_15528
if 
  not is_char_dead 65@
goto_if_false @INTRO1_15521
clear_look_at 65@
task_look_at_char 65@ {target} $scplayer {time} 15000
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15399
clear_look_at $scplayer
task_look_at_char $scplayer {target} 67@ {time} 30000

:INTRO1_15399
start_char_facial_talk $scplayer {duration} 20000
if 
  113@ == 0
goto_if_false @INTRO1_15478
task_play_anim $scplayer {animationName} "BMX_TALKRIGHT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_15521

:INTRO1_15478
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15521
109@ = 1

:INTRO1_15528
goto @INTRO1_15270

:INTRO1_15535
stop_char_facial_talk $scplayer
109@ = 0

:INTRO1_15547
if 
  86@ <> 4
goto_if_false @INTRO1_15634
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_15627
if 
  75@ == 2
goto_if_false @INTRO1_15627
109@ = 1
start_char_facial_talk $scplayer {duration} 20000

:INTRO1_15627
goto @INTRO1_15547

:INTRO1_15634
set_fixed_camera_position 2482.804 {y} -1666.785 {z} 13.785 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2483.7781 {y} -1666.774 {z} 13.5566 {switchStyle} SwitchType.JumpCut
clear_char_tasks $scplayer
if 
  113@ == 0
goto_if_false @INTRO1_15751
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_15751
stop_char_facial_talk $scplayer
109@ = 0

:INTRO1_15763
if 
  86@ <> 5
goto_if_false @INTRO1_15898
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_15891
if 
  75@ == 2
goto_if_false @INTRO1_15891
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15884
start_char_facial_talk 67@ {duration} 20000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_15884
clear_look_at 65@
task_look_at_char 65@ {target} 67@ {time} 15000

:INTRO1_15884
109@ = 1

:INTRO1_15891
goto @INTRO1_15763

:INTRO1_15898
if 
  not is_char_dead 67@
goto_if_false @INTRO1_15919
stop_char_facial_talk 67@

:INTRO1_15919
109@ = 0

:INTRO1_15926
if 
  86@ <> 6
goto_if_false @INTRO1_16121
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_16114
if 
  75@ == 2
goto_if_false @INTRO1_16114
109@ = 1
start_char_facial_talk $scplayer {duration} 20000
if 
  113@ == 0
goto_if_false @INTRO1_16077
task_play_anim $scplayer {animationName} "BMX_TALKRIGHT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_16114

:INTRO1_16077
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:INTRO1_16114
goto @INTRO1_15926

:INTRO1_16121
stop_char_facial_talk $scplayer
if 
  113@ == 0
goto_if_false @INTRO1_16194
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_16199

:INTRO1_16194
clear_char_tasks $scplayer

:INTRO1_16199
set_fixed_camera_position 2482.9109 {y} -1662.575 {z} 14.0425 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2483.366 {y} -1663.4561 {z} 13.914 {switchStyle} SwitchType.JumpCut
109@ = 0

:INTRO1_16257
if 
  86@ <> 7
goto_if_false @INTRO1_16392
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_16385
if 
  75@ == 2
goto_if_false @INTRO1_16385
if 
  not is_char_dead 67@
goto_if_false @INTRO1_16378
start_char_facial_talk 67@ {duration} 20000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_16378
clear_look_at 65@
task_look_at_char 65@ {target} 67@ {time} 15000

:INTRO1_16378
109@ = 1

:INTRO1_16385
goto @INTRO1_16257

:INTRO1_16392
if 
  not is_char_dead 67@
goto_if_false @INTRO1_16413
stop_char_facial_talk 67@

:INTRO1_16413
109@ = 0

:INTRO1_16420
if 
  86@ <> 8
goto_if_false @INTRO1_16625
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_16618
if 
  75@ == 2
goto_if_false @INTRO1_16618
109@ = 1
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 20000
if 
  113@ == 0
goto_if_false @INTRO1_16581
task_play_anim $scplayer {animationName} "BMX_TALKRIGHT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_16618

:INTRO1_16581
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:INTRO1_16618
goto @INTRO1_16420

:INTRO1_16625
stop_char_facial_talk $scplayer
if 
  113@ == 0
goto_if_false @INTRO1_16698
task_play_anim $scplayer {animationName} "BMX_IDLELOOP_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO1_16703

:INTRO1_16698
clear_char_tasks $scplayer

:INTRO1_16703
set_fixed_camera_position 2490.0 {y} -1667.537 {z} 13.7938 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2489.0439 {y} -1667.4969 {z} 13.5038 {switchStyle} SwitchType.JumpCut
109@ = 0

:INTRO1_16761
if 
  86@ <> 9
goto_if_false @INTRO1_16941
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_16934
if 
  75@ == 2
goto_if_false @INTRO1_16934
if 
  not is_char_dead 65@
goto_if_false @INTRO1_16927
clear_look_at 65@
task_look_at_char 65@ {target} $scplayer {time} 15000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 65@ {time} 15000
start_char_facial_talk 65@ {duration} 20000
task_play_anim 65@ {animationName} "BMX_TALKLEFT_LOOP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_16927
109@ = 1

:INTRO1_16934
goto @INTRO1_16761

:INTRO1_16941
if 
  not is_char_dead 65@
goto_if_false @INTRO1_17000
task_play_anim 65@ {animationName} "BMX_IDLELOOP_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO1_17000
if 
  not is_char_dead 65@
goto_if_false @INTRO1_17021
stop_char_facial_talk 65@

:INTRO1_17021
TIMERB = 0

:INTRO1_17028
if 
  1500 > TIMERB
goto_if_false @INTRO1_17058
wait 0
goto @INTRO1_17028

:INTRO1_17058
set_fixed_camera_position 2474.3059 {y} -1668.478 {z} 13.4599 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2475.302 {y} -1668.458 {z} 13.5477 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 76@
goto_if_false @INTRO1_17135
set_car_heading 76@ {heading} 0.0

:INTRO1_17135
109@ = 0

:INTRO1_17142
if 
  86@ <> 10
goto_if_false @INTRO1_17277
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_17270
if 
  75@ == 2
goto_if_false @INTRO1_17270
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17263
clear_look_at 66@
task_look_at_char 66@ {target} $scplayer {time} 15000
clear_look_at $scplayer
task_look_at_char $scplayer {target} 66@ {time} 15000
start_char_facial_talk 66@ {duration} 20000

:INTRO1_17263
109@ = 1

:INTRO1_17270
goto @INTRO1_17142

:INTRO1_17277
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17298
stop_char_facial_talk 66@

:INTRO1_17298
TIMERB = 0
109@ = 0

:INTRO1_17312
if 
  86@ <> 11
goto_if_false @INTRO1_17610
wait 0
gosub @INTRO1_20464
if 
  109@ == 0
goto_if_false @INTRO1_17440
if 
  75@ == 2
goto_if_false @INTRO1_17440
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17440
clear_look_at 66@
task_look_at_char 66@ {target} $scplayer {time} 12500
clear_look_at $scplayer
task_look_at_char $scplayer {target} 66@ {time} 12500
start_char_facial_talk 66@ {duration} 20000
109@ = 1

:INTRO1_17440
if 
  TIMERB > 3000
goto_if_false @INTRO1_17603
if 
  not is_char_dead 65@
goto_if_false @INTRO1_17531
if 
  not is_car_dead 76@
goto_if_false @INTRO1_17531
clear_char_tasks 65@
task_car_drive_to_coord 65@ {vehicle} 76@ {x} 2501.2439 {y} -1657.769 {z} 12.3949 {speed} 4.0 {driveStyle} DriveMode.Accurate {modelId} 481 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_17531
if 
  not is_char_dead 67@
goto_if_false @INTRO1_17603
if 
  not is_car_dead 78@
goto_if_false @INTRO1_17603
clear_char_tasks 67@
task_car_drive_to_coord 67@ {vehicle} 78@ {x} 2497.1689 {y} -1680.446 {z} 12.3614 {speed} 6.0 {driveStyle} DriveMode.Accurate {modelId} 481 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_17603
goto @INTRO1_17312

:INTRO1_17610
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17631
stop_char_facial_talk 66@

:INTRO1_17631
if 
  not is_char_dead 66@
goto_if_false @INTRO1_17719
if 
  not is_car_dead 77@
goto_if_false @INTRO1_17719
if 
  is_char_in_any_car 66@
goto_if_false @INTRO1_17719
clear_look_at 66@
task_car_drive_to_coord 66@ {vehicle} 77@ {x} 2466.27 {y} -1690.28 {z} 12.51 {speed} 2.0 {driveStyle} DriveMode.Accurate {modelId} 481 {drivingStyle} DrivingMode.AvoidCars

:INTRO1_17719
TIMERB = 0

:INTRO1_17726
if 
  3000 > TIMERB
goto_if_false @INTRO1_17756
wait 0
goto @INTRO1_17726

:INTRO1_17756
skip_cutscene_end 
camera_reset_new_scriptables 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_entry_exit 'CARLS' {state} True
skip_cutscene_start_internal @INTRO1_18131
clear_prints 
set_fixed_camera_position 2499.3059 {y} -1678.921 {z} 13.0313 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2499.0439 {y} -1679.8521 {z} 13.2865 {switchStyle} SwitchType.JumpCut
delete_car 76@
delete_car 77@
delete_car 78@
delete_char 65@
delete_char 66@
delete_char 67@
print_help 'SAVE_G'
TIMERB = 0

:INTRO1_17896
if 
  6000 > TIMERB
goto_if_false @INTRO1_17926
wait 0
goto @INTRO1_17896

:INTRO1_17926
set_fixed_camera_position 2504.28 {y} -1682.8571 {z} 15.1427 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2504.3059 {y} -1683.851 {z} 15.0385 {switchStyle} SwitchType.JumpCut
print_help 'SAVE_G2'
TIMERB = 0

:INTRO1_17995
if 
  6000 > TIMERB
goto_if_false @INTRO1_18025
wait 0
goto @INTRO1_17995

:INTRO1_18025
set_fixed_camera_position 2494.863 {y} -1683.051 {z} 13.0207 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2494.939 {y} -1684.037 {z} 13.1717 {switchStyle} SwitchType.JumpCut
print_help 'SAVE_G3'
set_player_control $player1 {state} True
TIMERB = 0

:INTRO1_18101
if 
  6000 > TIMERB
goto_if_false @INTRO1_18131
wait 0
goto @INTRO1_18101

:INTRO1_18131
skip_cutscene_end 
clear_char_tasks $scplayer
set_char_heading $scplayer {heading} 82.97
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
goto @INTRO1_18188

:INTRO1_18170
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:INTRO1_18188
$flag_intro_mission_counter += 1
register_mission_passed 'INTRO_1'
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
terminate_all_scripts_with_this_name 'INT'
remove_blip $save_house_blip
$save_house_blip = add_short_range_sprite_blip_for_contact_point $save_pickupX[0] {y} $save_pickupY[0] {z} $save_pickupZ[0] {sprite} RadarSprite.SaveGame
change_blip_display $save_house_blip {display} BlipDisplay.BlipOnly
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
remove_blip $intro_contact_blip
switch_entry_exit 'CARLS' {state} True
return 

:INTRO1_18300
$onmission = 0
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 404
mark_model_as_no_longer_needed 481
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 412
dont_suppress_car_model 412
mark_model_as_no_longer_needed 346
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 76@
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
remove_car_recording 201
remove_car_recording 205
remove_car_recording 206
remove_animation "MISC"
remove_animation "GANGS"
switch_ped_roads_on 1782.802 {leftBottomY} -1203.4969 {leftBottomZ} 0.0 {rightTopX} 1788.2729 {rightTopY} -1236.15 {rightTopZ} 20.0
if 
  not is_car_dead 51@
goto_if_false @INTRO1_18488
stop_playback_recorded_car 51@
goto @INTRO1_18493

:INTRO1_18488
stop_playback_recorded_car 51@

:INTRO1_18493
enable_ambient_crime True
delete_car 76@
delete_car 77@
delete_car 78@
remove_char_elegantly 65@
remove_char_elegantly 66@
remove_char_elegantly 67@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
unload_special_character 1
unload_special_character 10
unload_special_character 3
remove_blip 39@
remove_blip 40@
remove_blip 43@
mission_has_finished 
return 

:INTRO1_18572
if 
  not is_car_dead 37@
goto_if_false @INTRO1_19627
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @INTRO1_19524
if 
  92@ == 1
goto_if_false @INTRO1_18865
if 
  not is_char_dead 67@
goto_if_false @INTRO1_18865
if 
  not locate_char_any_means_char_3d $scplayer {target} 67@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_18732
print_now 'INTRO2G' {time} 6000 {flag} 1
if 
  115@ == 1
goto_if_false @INTRO1_18718
115@ = 0

:INTRO1_18718
$blob_flag = 0
goto @INTRO1_18865

:INTRO1_18732
if 
  115@ == 0
goto_if_false @INTRO1_18847
if 
  46@ == 4
goto_if_false @INTRO1_18847
if 
  86@ > 5
goto_if_false @INTRO1_18847
if 
  not is_char_dead 67@
goto_if_false @INTRO1_18847
if 
  locate_char_any_means_char_2d 67@ {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_18847
115@ = 1
gosub @INTRO1_20695

:INTRO1_18847
clear_this_print 'INTRO2G'
$blob_flag = 1

:INTRO1_18865
if 
  92@ == 2
goto_if_false @INTRO1_19297
if 
  not is_char_dead 66@
goto_if_false @INTRO1_19105
if 
  not locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_18990
print_now 'INTRO2J' {time} 6000 {flag} 1
if 
  115@ == 1
goto_if_false @INTRO1_18976
115@ = 0

:INTRO1_18976
$blob_flag = 0
goto @INTRO1_19105

:INTRO1_18990
if 
  115@ == 0
goto_if_false @INTRO1_19087
if 
  86@ > 1
goto_if_false @INTRO1_19087
if 
  not is_char_dead 66@
goto_if_false @INTRO1_19087
if 
  locate_char_any_means_char_2d 66@ {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_19087
115@ = 1
gosub @INTRO1_20695

:INTRO1_19087
clear_this_print 'INTRO2J'
$blob_flag = 1

:INTRO1_19105
if 
  not is_char_dead 65@
goto_if_false @INTRO1_19297
if 
  not locate_char_any_means_char_3d $scplayer {target} 65@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_19189
if 
  108@ == 1
goto_if_false @INTRO1_19182
108@ = 0

:INTRO1_19182
goto @INTRO1_19297

:INTRO1_19189
if 
  108@ == 0
goto_if_false @INTRO1_19286
if 
  86@ > 2
goto_if_false @INTRO1_19286
if 
  not is_char_dead 65@
goto_if_false @INTRO1_19286
if 
  locate_char_any_means_char_2d 65@ {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_19286
108@ = 1
gosub @INTRO1_21390

:INTRO1_19286
clear_this_print 'INTRO2J'

:INTRO1_19297
if 
  54@ == 0
goto_if_false @INTRO1_19517
remove_blip 43@
$blob_flag = 1
if 
  92@ == 0
goto_if_false @INTRO1_19402
if 
  not is_char_dead 67@
goto_if_false @INTRO1_19381
remove_blip 39@
39@ = add_blip_for_char 67@
set_blip_as_friendly 39@ {state} True

:INTRO1_19381
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
92@ = 1

:INTRO1_19402
if 
  92@ == 1
goto_if_false @INTRO1_19456
if 
  not is_char_dead 67@
goto_if_false @INTRO1_19456
remove_blip 39@
39@ = add_blip_for_char 67@
set_blip_as_friendly 39@ {state} True

:INTRO1_19456
if 
  92@ == 2
goto_if_false @INTRO1_19510
if 
  not is_char_dead 66@
goto_if_false @INTRO1_19510
remove_blip 40@
40@ = add_blip_for_char 66@
set_blip_as_friendly 40@ {state} True

:INTRO1_19510
54@ = 1

:INTRO1_19517
goto @INTRO1_19620

:INTRO1_19524
if 
  54@ == 1
goto_if_false @INTRO1_19620
remove_blip 43@
remove_blip 40@
remove_blip 39@
43@ = add_blip_for_car 37@
set_blip_as_friendly 43@ {state} True
if 
  92@ <> 0
goto_if_false @INTRO1_19606
print_now 'INTRO2E' {time} 10000 {flag} 1

:INTRO1_19606
$blob_flag = 0
54@ = 0

:INTRO1_19620
goto @INTRO1_19650

:INTRO1_19627
print_now 'INT2_F4' {time} 10000 {flag} 1
45@ = 1

:INTRO1_19650
if 
  is_char_dead 65@
goto_if_false @INTRO1_19696
print_now 'INT2_F1' {time} 10000 {flag} 1
45@ = 1
goto @INTRO1_19792

:INTRO1_19696
if 
  83@ == 0
goto_if_false @INTRO1_19792
if 
  not is_char_dead 65@
goto_if_false @INTRO1_19792
if 
  not is_car_dead 76@
goto_if_false @INTRO1_19792
if 
  is_char_in_car 65@ {vehicle} 76@
goto_if_false @INTRO1_19792
clear_char_tasks 65@
perform_sequence_task 65@ {sequence} 82@
set_car_straight_line_distance 76@ {distance} 10
83@ = 1

:INTRO1_19792
if 
  is_char_dead 66@
goto_if_false @INTRO1_19838
print_now 'INT2_F3' {time} 10000 {flag} 1
45@ = 1
goto @INTRO1_19934

:INTRO1_19838
if 
  85@ == 0
goto_if_false @INTRO1_19934
if 
  not is_char_dead 66@
goto_if_false @INTRO1_19934
if 
  not is_car_dead 77@
goto_if_false @INTRO1_19934
if 
  is_char_in_car 66@ {vehicle} 77@
goto_if_false @INTRO1_19934
clear_char_tasks 66@
perform_sequence_task 66@ {sequence} 82@
set_car_straight_line_distance 77@ {distance} 10
85@ = 1

:INTRO1_19934
if 
  92@ <> 2
goto_if_false @INTRO1_20094
if 
  is_char_dead 67@
goto_if_false @INTRO1_19998
print_now 'INT2_F2' {time} 10000 {flag} 1
45@ = 1
goto @INTRO1_20094

:INTRO1_19998
if 
  84@ == 0
goto_if_false @INTRO1_20094
if 
  not is_char_dead 67@
goto_if_false @INTRO1_20094
if 
  not is_car_dead 78@
goto_if_false @INTRO1_20094
if 
  is_char_in_car 67@ {vehicle} 78@
goto_if_false @INTRO1_20094
clear_char_tasks 67@
perform_sequence_task 67@ {sequence} 82@
set_car_straight_line_distance 78@ {distance} 10
84@ = 1

:INTRO1_20094
if and
  83@ == 1
  84@ == 1
  85@ == 1
goto_if_false @INTRO1_20138
clear_sequence_task 82@
83@ = 2

:INTRO1_20138
return 

:INTRO1_20140
if 
  TIMERB > 1000
goto_if_false @INTRO1_20462
if 
  not is_char_dead 65@(48@,3i)
goto_if_false @INTRO1_20422
if 
  not is_car_dead 76@(48@,3i)
goto_if_false @INTRO1_20385
if 
  is_char_in_car 65@(48@,3i) {vehicle} 76@(48@,3i)
goto_if_false @INTRO1_20378
if 
  locate_char_any_means_char_2d 65@(48@,3i) {target} $scplayer {xRadius} 130.0 {yRadius} 130.0 {drawSphere} False
goto_if_false @INTRO1_20323
if 
  58@(48@,3i) == 0
goto_if_false @INTRO1_20316
freeze_char_position_and_dont_load_collision 65@(48@,3i) {state} False
freeze_car_position_and_dont_load_collision 76@(48@,3i) {state} False
58@(48@,3i) = 1

:INTRO1_20316
goto @INTRO1_20378

:INTRO1_20323
if 
  58@(48@,3i) == 1
goto_if_false @INTRO1_20378
freeze_char_position_and_dont_load_collision 65@(48@,3i) {state} True
freeze_car_position_and_dont_load_collision 76@(48@,3i) {state} True
58@(48@,3i) = 0

:INTRO1_20378
goto @INTRO1_20422

:INTRO1_20385
clear_char_tasks 65@(48@,3i)
task_go_to_coord_any_means 65@(48@,3i) {x} 2493.8201 {y} -1669.91 {z} 12.8 {speed} MoveState.Sprint {vehicle} -1

:INTRO1_20422
48@ += 1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 48@ >= 107@
goto_if_false @INTRO1_20455
48@ = 0

:INTRO1_20455
TIMERB = 0

:INTRO1_20462
return 

:INTRO1_20464
if or
  75@ == 0
  75@ == 1
goto_if_false @INTRO1_20534
if 
  is_int_lvar_greater_or_equal_to_int_lvar 63@ >= 86@
goto_if_false @INTRO1_20534
if 
  TIMERA > 200
goto_if_false @INTRO1_20534
gosub @INTRO1_20599

:INTRO1_20534
if 
  75@ == 2
goto_if_false @INTRO1_20597
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO1_20597
75@ = 0
86@ += 1
109@ = 0
clear_prints 
TIMERA = 0

:INTRO1_20597
return 

:INTRO1_20599
if 
  75@ == 0
goto_if_false @INTRO1_20635
load_mission_audio MissionAudioSlot.Slot1 {audioId} 93@(86@,14i)
75@ = 1

:INTRO1_20635
if 
  75@ == 1
goto_if_false @INTRO1_20693
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO1_20693
print_now $intro1_chat(86@,14s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
75@ = 2

:INTRO1_20693
return 

:INTRO1_20695
clear_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 1
goto_if_false @INTRO1_20835
if 
  115@ == 1
goto_if_false @INTRO1_20835
if 
  64@ == 0
goto_if_false @INTRO1_20760
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20040

:INTRO1_20760
if 
  64@ == 1
goto_if_false @INTRO1_20785
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20041

:INTRO1_20785
if 
  64@ == 2
goto_if_false @INTRO1_20810
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20042

:INTRO1_20810
if 
  64@ == 3
goto_if_false @INTRO1_20835
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20032

:INTRO1_20835
if 
  92@ == 2
goto_if_false @INTRO1_20971
if 
  115@ == 1
goto_if_false @INTRO1_20971
if 
  64@ == 0
goto_if_false @INTRO1_20896
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20047

:INTRO1_20896
if 
  64@ == 1
goto_if_false @INTRO1_20921
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20046

:INTRO1_20921
if 
  64@ == 2
goto_if_false @INTRO1_20946
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20048

:INTRO1_20946
if 
  64@ == 3
goto_if_false @INTRO1_20971
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20056

:INTRO1_20971
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1
gosub @INTRO1_21777
play_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 1
goto_if_false @INTRO1_21170
if 
  115@ == 1
goto_if_false @INTRO1_21170
if 
  64@ == 0
goto_if_false @INTRO1_21068
print_now 'INT1_EA' {time} 3000 {flag} 1

:INTRO1_21068
if 
  64@ == 1
goto_if_false @INTRO1_21102
print_now 'INT1_EB' {time} 3000 {flag} 1

:INTRO1_21102
if 
  64@ == 2
goto_if_false @INTRO1_21136
print_now 'INT1_EC' {time} 3000 {flag} 1

:INTRO1_21136
if 
  64@ == 3
goto_if_false @INTRO1_21170
print_now 'INT1_BD' {time} 3000 {flag} 1

:INTRO1_21170
if 
  92@ == 2
goto_if_false @INTRO1_21342
if 
  115@ == 1
goto_if_false @INTRO1_21342
if 
  64@ == 0
goto_if_false @INTRO1_21240
print_now 'INT1_EH' {time} 3000 {flag} 1

:INTRO1_21240
if 
  64@ == 1
goto_if_false @INTRO1_21274
print_now 'INT1_EG' {time} 3000 {flag} 1

:INTRO1_21274
if 
  64@ == 2
goto_if_false @INTRO1_21308
print_now 'INT1_EI' {time} 3000 {flag} 1

:INTRO1_21308
if 
  64@ == 3
goto_if_false @INTRO1_21342
print_now 'INT1_FG' {time} 3000 {flag} 1

:INTRO1_21342
gosub @INTRO1_22192
64@ += 1
if 
  64@ > 3
goto_if_false @INTRO1_21381
64@ = 0

:INTRO1_21381
TIMERA = 0
return 

:INTRO1_21390
clear_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 2
goto_if_false @INTRO1_21530
if 
  108@ == 1
goto_if_false @INTRO1_21530
if 
  87@ == 0
goto_if_false @INTRO1_21455
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20049

:INTRO1_21455
if 
  87@ == 1
goto_if_false @INTRO1_21480
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20043

:INTRO1_21480
if 
  87@ == 2
goto_if_false @INTRO1_21505
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20044

:INTRO1_21505
if 
  87@ == 3
goto_if_false @INTRO1_21530
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20045

:INTRO1_21530
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1
gosub @INTRO1_21777
play_mission_audio MissionAudioSlot.Slot2
if 
  92@ == 2
goto_if_false @INTRO1_21729
if 
  108@ == 1
goto_if_false @INTRO1_21729
if 
  87@ == 0
goto_if_false @INTRO1_21627
print_now 'INT1_EJ' {time} 3000 {flag} 1

:INTRO1_21627
if 
  87@ == 1
goto_if_false @INTRO1_21661
print_now 'INT1_ED' {time} 3000 {flag} 1

:INTRO1_21661
if 
  87@ == 2
goto_if_false @INTRO1_21695
print_now 'INT1_EE' {time} 3000 {flag} 1

:INTRO1_21695
if 
  87@ == 3
goto_if_false @INTRO1_21729
print_now 'INT1_EF' {time} 3000 {flag} 1

:INTRO1_21729
gosub @INTRO1_22192
87@ += 1
if 
  87@ > 3
goto_if_false @INTRO1_21768
87@ = 0

:INTRO1_21768
TIMERA = 0
return 

:INTRO1_21777
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO1_22190
wait 0
if 
  is_car_dead 37@
goto_if_false @INTRO1_21812

:INTRO1_21812
if 
  is_char_dead 65@
goto_if_false @INTRO1_21853
print_now 'INT2_F1' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_21853
if 
  is_char_dead 66@
goto_if_false @INTRO1_21894
print_now 'INT2_F3' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_21894
if 
  92@ <> 2
goto_if_false @INTRO1_21953
if 
  is_char_dead 67@
goto_if_false @INTRO1_21953
print_now 'INT2_F2' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_21953
if 
  92@ == 1
goto_if_false @INTRO1_22074
if 
  not is_char_dead 67@
goto_if_false @INTRO1_22074
if and
  locate_char_any_means_3d $scplayer {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
  locate_char_any_means_3d 67@ {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_22074
return 

:INTRO1_22074
if 
  92@ == 2
goto_if_false @INTRO1_22183
if 
  not is_char_dead 66@
goto_if_false @INTRO1_22183
if and
  locate_char_any_means_3d $scplayer {x} 2493.8201 {y} -1669.91 {z} 12.8 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} True
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_22183
return 

:INTRO1_22183
goto @INTRO1_21777

:INTRO1_22190
return 

:INTRO1_22192
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO1_22605
wait 0
if 
  is_car_dead 37@
goto_if_false @INTRO1_22227

:INTRO1_22227
if 
  is_char_dead 65@
goto_if_false @INTRO1_22268
print_now 'INT2_F1' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_22268
if 
  is_char_dead 66@
goto_if_false @INTRO1_22309
print_now 'INT2_F3' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_22309
if 
  92@ <> 2
goto_if_false @INTRO1_22368
if 
  is_char_dead 67@
goto_if_false @INTRO1_22368
print_now 'INT2_F2' {time} 10000 {flag} 1
45@ = 1
return 

:INTRO1_22368
if 
  92@ == 1
goto_if_false @INTRO1_22489
if 
  not is_char_dead 67@
goto_if_false @INTRO1_22489
if and
  locate_char_any_means_3d $scplayer {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
  locate_char_any_means_3d 67@ {x} 1644.7729 {y} -1051.334 {z} 22.8984 {xRadius} 10.0 {yRadius} 12.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_22489
return 

:INTRO1_22489
if 
  92@ == 2
goto_if_false @INTRO1_22598
if 
  not is_char_dead 66@
goto_if_false @INTRO1_22598
if and
  locate_char_any_means_3d $scplayer {x} 2493.8201 {y} -1669.91 {z} 12.8 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} True
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 60.0 {yRadius} 60.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @INTRO1_22598
return 

:INTRO1_22598
goto @INTRO1_22192

:INTRO1_22605
return 

//-------------Mission 12---------------
// Originally: Ryder

:INTRO2
script_name 'INTRO2'
gosub @INTRO2_908
if 
  has_deatharrest_been_executed 
goto_if_false @INTRO2_38
gosub @INTRO2_13667

:INTRO2_38
gosub @INTRO2_14817
terminate_this_script 

:INTRO2_47
switch_start 40@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @INTRO2_906 {caseNum1} 0 {caseLabel1} @INTRO2_110 {caseNum2} 1 {caseLabel2} @INTRO2_498 {caseNum3} 2 {caseLabel3} @INTRO2_600 {caseNum4} 3 {caseLabel4} @INTRO2_768 {caseNum5} 4 {caseLabel5} @INTRO2_848 {caseNum6} -1 {caseLabel6} @INTRO2_906 {caseNum7} -1 {caseLabel7} @INTRO2_906

:INTRO2_110
set_var_text_label s$intro2_chat[0] = 'INT2_CA'
set_var_text_label s$intro2_chat[1] = 'INT2_CB'
set_var_text_label s$intro2_chat[2] = 'INT2_CC'
set_var_text_label s$intro2_chat[3] = 'INT2_CD'
set_var_text_label s$intro2_chat[4] = 'INT2_CE'
set_var_text_label s$intro2_chat[5] = 'INT2_CF'
set_var_text_label s$intro2_chat[6] = 'INT2_CG'
set_var_text_label s$intro2_chat[7] = 'INT2_BA'
set_var_text_label s$intro2_chat[8] = 'INT2_BB'
set_var_text_label s$intro2_chat[9] = 'INT2_BC'
set_var_text_label s$intro2_chat[10] = 'INT2_BD'
set_var_text_label s$intro2_chat[11] = 'INT2_BE'
set_var_text_label s$intro2_chat[12] = 'INT2_BF'
set_var_text_label s$intro2_chat[13] = 'INT2_BG'
set_var_text_label s$intro2_chat[14] = 'INT2_BH'
set_var_text_label s$intro2_chat[15] = 'INT2_BJ'
set_var_text_label s$intro2_chat[16] = 'INT2_BK'
set_lvar_int_to_constant 70@ = 20211
set_lvar_int_to_constant 71@ = 20212
set_lvar_int_to_constant 72@ = 20213
set_lvar_int_to_constant 73@ = 20214
set_lvar_int_to_constant 74@ = 20215
set_lvar_int_to_constant 75@ = 20216
set_lvar_int_to_constant 76@ = 20217
set_lvar_int_to_constant 77@ = 20201
set_lvar_int_to_constant 78@ = 20202
set_lvar_int_to_constant 79@ = 20203
set_lvar_int_to_constant 80@ = 20204
set_lvar_int_to_constant 81@ = 20205
set_lvar_int_to_constant 82@ = 20206
set_lvar_int_to_constant 83@ = 20207
set_lvar_int_to_constant 84@ = 20208
set_lvar_int_to_constant 85@ = 20209
set_lvar_int_to_constant 86@ = 20210
50@ = 16
goto @INTRO2_906

:INTRO2_498
set_var_text_label s$intro2_chat[0] = 'INT2_FA'
set_var_text_label s$intro2_chat[1] = 'INT2_FB'
set_var_text_label s$intro2_chat[2] = 'INT2_FC'
set_var_text_label s$intro2_chat[3] = 'INT2_FD'
set_lvar_int_to_constant 70@ = 20222
set_lvar_int_to_constant 71@ = 20223
set_lvar_int_to_constant 72@ = 20224
set_lvar_int_to_constant 73@ = 20225
50@ = 3
goto @INTRO2_906

:INTRO2_600
set_var_text_label s$intro2_chat[0] = 'INT2_GA'
set_var_text_label s$intro2_chat[1] = 'INT2_GB'
set_var_text_label s$intro2_chat[2] = 'INT2_GC'
set_var_text_label s$intro2_chat[3] = 'INT2_GD'
set_var_text_label s$intro2_chat[4] = 'INT2_GE'
set_var_text_label s$intro2_chat[5] = 'INT2_GF'
set_var_text_label s$intro2_chat[6] = 'INT2_HB'
set_lvar_int_to_constant 70@ = 20226
set_lvar_int_to_constant 71@ = 20227
set_lvar_int_to_constant 72@ = 20228
set_lvar_int_to_constant 73@ = 20229
set_lvar_int_to_constant 74@ = 20230
set_lvar_int_to_constant 75@ = 20231
set_lvar_int_to_constant 76@ = 20233
50@ = 7
goto @INTRO2_906

:INTRO2_768
set_var_text_label s$intro2_chat[0] = 'INT2_NB'
set_var_text_label s$intro2_chat[1] = 'INT2_NC'
set_var_text_label s$intro2_chat[2] = 'INT2_ND'
set_lvar_int_to_constant 70@ = 20246
set_lvar_int_to_constant 71@ = 20247
set_lvar_int_to_constant 72@ = 20248
50@ = 2
goto @INTRO2_906

:INTRO2_848
set_var_text_label s$intro2_chat[0] = 'INT2_JA'
set_var_text_label s$intro2_chat[1] = 'INT2_JB'
set_lvar_int_to_constant 70@ = 20236
set_lvar_int_to_constant 71@ = 20237
50@ = 1
goto @INTRO2_906

:INTRO2_906
return 

:INTRO2_908
register_mission_given 
$onmission = 1
36@ = 0
38@ = 0
$flag_changed_hair_intro2 = 0
59@ = 0
60@ = 0
$flag_menace_buyfood = 0
44@ = 0
66@ = 0
$cj_vomits_for_menace = 0
68@ = 0
61@ = 0
69@ = 0
48@ = 0
63@ = 0
57@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0.05
91@ = 0.12
92@ = 0.0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 5
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 5
wait 0
load_mission_text 'INTRO2'
goto @INTRO2_1204
$shop_keep_junkfud = create_char PedType.Mission1 {modelId} $shopkeeper_model_shops {x} $junkfudX {y} $junkfudY {z} $junkfudZ

:INTRO2_1204
set_area_visible 2
load_cutscene 'INTRO2A'

:INTRO2_1219
if 
  not has_cutscene_loaded 
goto_if_false @INTRO2_1243
wait 0
goto @INTRO2_1219

:INTRO2_1243
start_cutscene 
do_fade 1000 {direction} Fade.In

:INTRO2_1252
if 
  not has_cutscene_finished 
goto_if_false @INTRO2_1276
wait 0
goto @INTRO2_1252

:INTRO2_1276
do_fade 0 {direction} Fade.Out

:INTRO2_1282
if 
  get_fading_status 
goto_if_false @INTRO2_1306
wait 0
goto @INTRO2_1282

:INTRO2_1306
clear_cutscene 
set_player_control $player1 {state} False
set_area_visible 0
remove_blip $spray_shop1
load_special_character 1 {modelName} 'RYDER2'
request_model 600
request_model #CIGAR
request_model #CIGAR_GLOW
load_all_models_now 

:INTRO2_1352
if or
  not has_model_loaded 600
  not has_model_loaded #CIGAR
  not has_model_loaded #CIGAR_GLOW
  not has_special_character_loaded 1
goto_if_false @INTRO2_1391
wait 0
goto @INTRO2_1352

:INTRO2_1391
switch_entry_exit 'BARBERS' {state} False
switch_entry_exit 'BARBER2' {state} False
switch_entry_exit 'BARBER3' {state} False
switch_entry_exit 'FDPIZA' {state} False
switch_entry_exit 'FDCHICK' {state} False
switch_entry_exit 'FDBURG' {state} False
clear_char_tasks $scplayer
clear_char_tasks_immediately $scplayer
switch_car_generator $gen_car6 {amount} 0
clear_area $ryder_carX {y} $ryder_carY {z} $ryder_carZ {radius} 6.0 {clearParticles} True
custom_plate_for_next_car 600 {text} "_SHERM__"
$ryder_car = create_car 600 {x} $ryder_carX {y} $ryder_carY {z} $ryder_carZ
set_can_burst_car_tyres $ryder_car {state} False
change_car_colour $ryder_car {color1} 84 {color2} 84
set_car_heading $ryder_car {heading} 0.0
set_car_can_be_visibly_damaged $ryder_car {state} False
set_radio_channel RadioChannel.RadioLosSantos
$ryder = create_char PedType.Mission1 {modelId} 290 {x} 2475.29 {y} -1687.85 {z} 12.51
67@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $ryder {handleOrTemplate} 67@
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_heading $scplayer {heading} 176.0
set_char_never_targetted $ryder {state} True
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
set_char_suffers_critical_hits $ryder {state} False
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 20000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_get_out_upside_down_car $ryder {state} False
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
34@ = add_blip_for_coord 2074.3999 {y} -1800.8 {z} 12.5
remove_blip 34@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20200
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2464.03 {y} -1687.61 {z} 12.51
set_char_heading $scplayer {heading} 252.27
set_area_visible 0
load_scene 2464.03 {y} -1687.61 {z} 12.51
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_1851
goto @INTRO2_13667

:INTRO2_1851
if 
  is_char_dead $ryder
goto_if_false @INTRO2_1874
goto @INTRO2_13667

:INTRO2_1874
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_1978
wait 0
if 
  is_char_dead $ryder
goto_if_false @INTRO2_1932
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_1932
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_1971
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_1971
goto @INTRO2_1874

:INTRO2_1978
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_AA' {time} 10000 {flag} 1

:INTRO2_1998
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_2102
wait 0
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2056
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2056
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2095
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2095
goto @INTRO2_1998

:INTRO2_2102
$blob_flag = 0
49@ = 0
56@ = 0
64@ = 0
40@ = 0
gosub @INTRO2_47
clear_this_print 'INT2_1'
print_now 'INT2_6' {time} 6000 {flag} 1
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2210
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2210
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2249
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2249
$flag_player_on_menace_mission = 1

:INTRO2_2256
if or
  not locate_car_3d $ryder_car {x} 2077.8401 {y} -1792.59 {z} 12.38 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $ryder_car
  not is_char_in_car $ryder {vehicle} $ryder_car
  not is_vehicle_on_all_wheels $ryder_car
goto_if_false @INTRO2_2886
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @INTRO2_2352
goto @INTRO2_13692

:INTRO2_2352
if 
  48@ == 0
goto_if_false @INTRO2_2436
if 
  locate_char_any_means_3d $scplayer {x} 2077.8401 {y} -1792.59 {z} 12.38 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @INTRO2_2436
print_help 'HELP44B'
48@ = 1

:INTRO2_2436
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2475
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2475
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2521
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667
goto @INTRO2_2724

:INTRO2_2521
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_2632
if 
  38@ == 0
goto_if_false @INTRO2_2625
remove_blip 37@
remove_blip 34@
34@ = add_blip_for_coord 2077.8401 {y} -1792.59 {z} 12.56
$blob_flag = 1
print_now 'HOOD2_A' {time} 6000 {flag} 1
TIMERB = 0
38@ = 1

:INTRO2_2625
goto @INTRO2_2724

:INTRO2_2632
if 
  38@ == 1
goto_if_false @INTRO2_2724
remove_blip 34@
remove_blip 37@
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
$blob_flag = 0
gosub @INTRO2_15117
print_now 'INT2_6' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
38@ = 0

:INTRO2_2724
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_2801
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_2801
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_2801
if 
  TIMERB > 3000
goto_if_false @INTRO2_2801
gosub @INTRO2_16035

:INTRO2_2801
if 
  is_char_dead $ryder
goto_if_false @INTRO2_2840
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2840
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_2879
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_2879
goto @INTRO2_2256

:INTRO2_2886
switch_widescreen True
set_player_control $player1 {state} False
clear_help 
switch_entry_exit 'BARBERS' {state} True
set_fixed_camera_position 2086.4241 {y} -1783.578 {z} 16.9391 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2085.603 {y} -1784.1429 {z} 16.8617 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:INTRO2_2970
if 
  3000 > TIMERB
goto_if_false @INTRO2_3058
wait 0
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_3051
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_3051
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_3051
gosub @INTRO2_16035

:INTRO2_3051
goto @INTRO2_2970

:INTRO2_3058
skip_cutscene_start_internal @INTRO2_3229
set_fixed_camera_position 2075.418 {y} -1794.748 {z} 14.3637 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2074.4399 {y} -1794.564 {z} 14.2591 {switchStyle} SwitchType.JumpCut
print_help 'INT2_8'
set_player_control $player1 {state} True
TIMERB = 0

:INTRO2_3141
if 
  3000 > TIMERB
goto_if_false @INTRO2_3229
wait 0
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_3222
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_3222
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_3222
gosub @INTRO2_16035

:INTRO2_3222
goto @INTRO2_3141

:INTRO2_3229
skip_cutscene_end 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
remove_blip 34@
34@ = add_blip_for_coord 413.6397 {y} -19.9389 {z} 1000.812
set_blip_entry_exit 34@ {x} 2073.042 {y} -1794.563 {radius} 20.0
$flag_changed_hair_intro2 = 0

:INTRO2_3298
if or
  $flag_changed_hair_intro2 == 0
  not locate_char_on_foot_3d $scplayer {x} 2072.1101 {y} -1793.8 {z} 12.56 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_3809
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_3396
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_3396
if 
  is_char_dead $ryder
goto_if_false @INTRO2_3435
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_3435
if 
  57@ == 0
goto_if_false @INTRO2_3525
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_3525
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_3525
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_3518
gosub @INTRO2_16035
goto @INTRO2_3525

:INTRO2_3518
57@ = 1

:INTRO2_3525
58@ = get_area_visible 
if 
  58@ == 2
goto_if_false @INTRO2_3654
if 
  59@ == 0
goto_if_false @INTRO2_3647
if 
  locate_char_on_foot_3d $scplayer {x} 411.68 {y} -21.77 {z} 1000.79 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_3647
clear_prints 
print_now 'INT2_9' {time} 5000 {flag} 1
request_animation "SHOP"
59@ = 1

:INTRO2_3647
goto @INTRO2_3743

:INTRO2_3654
if 
  59@ == 1
goto_if_false @INTRO2_3743
if 
  locate_char_on_foot_3d $scplayer {x} 2072.1101 {y} -1793.8 {z} 12.56 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_3743
print_now 'INT2_8' {time} 10000 {flag} 1
59@ = 0

:INTRO2_3743
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @INTRO2_3802
if 
  $flag_attacked_barber == 1
goto_if_false @INTRO2_3802
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_3802
goto @INTRO2_3298

:INTRO2_3809
do_fade 0 {direction} Fade.Out
clear_prints 
remove_blip 34@
switch_entry_exit 'FDPIZA' {state} True
switch_widescreen True
set_player_control $player1 {state} False
clear_area 2072.04 {y} -1800.92 {z} 12.55 {radius} 200.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_near_clip 0.2
task_stand_still $scplayer {time} 10

:INTRO2_3898
if 
  not has_animation_loaded "SHOP"
goto_if_false @INTRO2_3934
wait 0
do_fade 0 {direction} Fade.Out
goto @INTRO2_3898

:INTRO2_3934
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_4403
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4373

:INTRO2_3966
if 
  is_car_waiting_for_world_collision $ryder_car
goto_if_false @INTRO2_4038
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_4025
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_4025
do_fade 0 {direction} Fade.Out
goto @INTRO2_3966

:INTRO2_4038
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4270
set_char_coordinates $scplayer {x} 2072.55 {y} -1794.67 {z} 12.56
set_char_heading $scplayer {heading} 240.55
clear_char_tasks_immediately $ryder
if 
  is_char_in_any_car $ryder
goto_if_false @INTRO2_4132
warp_char_from_car_to_coord $ryder {x} 2076.4919 {y} -1796.413 {z} 12.5545
goto @INTRO2_4152

:INTRO2_4132
set_char_coordinates $ryder {x} 2076.4919 {y} -1796.413 {z} 12.5545

:INTRO2_4152
set_char_heading $ryder {heading} 80.0
set_char_health $ryder {health} 500
46@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 14.2
task_pick_up_object $ryder {object} 46@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} -0.02 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_play_anim $ryder {animationName} "SMOKE_RYD" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_4270
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_4340
clear_area 2078.0901 {y} -1796.21 {z} 12.3828 {radius} 100.0 {clearParticles} True
set_car_coordinates $ryder_car {x} 2078.0901 {y} -1796.21 {z} 12.3828
set_car_heading $ryder_car {heading} 176.9536

:INTRO2_4340
fix_car_door $ryder_car {door} CarDoor.LeftFrontDoor
fix_car_door $ryder_car {door} CarDoor.RightFrontDoor
close_all_car_doors $ryder_car
lock_car_doors $ryder_car {lockStatus} CarLock.LockoutPlayerOnly
goto @INTRO2_4396

:INTRO2_4373
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_4396
goto @INTRO2_4426

:INTRO2_4403
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_4426
TIMERA = 0

:INTRO2_4433
if 
  TIMERA <= 400
goto_if_false @INTRO2_4469
wait 0
do_fade 0 {direction} Fade.Out
goto @INTRO2_4433

:INTRO2_4469
clear_prints 
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4535
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2075.53 {y} -1796.3199 {z} 12.55 {speed} MoveState.Walk {time} 10000
clear_look_at -1
task_look_at_char -1 {target} $ryder {time} 4500
close_sequence_task 45@

:INTRO2_4535
perform_sequence_task $scplayer {sequence} 45@
clear_sequence_task 45@
set_fixed_camera_position 2074.866 {y} -1800.882 {z} 13.4518 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.0669 {y} -1799.903 {z} 13.4124 {switchStyle} SwitchType.JumpCut
clear_prints 
do_fade 500 {direction} Fade.In
63@ = 0
49@ = 0
56@ = 0
64@ = 0
40@ = 1
gosub @INTRO2_47
TIMERA = 0

:INTRO2_4657
if 
  TIMERA <= 1700
goto_if_false @INTRO2_4694
wait 0
gosub @INTRO2_15726
goto @INTRO2_4657

:INTRO2_4694
if 
  $can_skip_smoking_cutscene == 1
goto_if_false @INTRO2_4719
skip_cutscene_start_internal @INTRO2_6566

:INTRO2_4719
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4751
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 2000

:INTRO2_4751
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4804
55@ = create_fx_system_on_char "EXHALE" {char} $ryder {xOffset} 90@ {yOffset} 91@ {zOffset} 92@ {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 55@ {handle} $ryder {pedBone} PedBone.Neck

:INTRO2_4804
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_4825
stop_char_facial_talk $ryder

:INTRO2_4825
if or
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "TASH"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "GOATEE"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "BEARD"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "PLAYER_FACE"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "HIGHFADE"
  is_player_wearing $player1 {bodyPart} BodyPart.Head {modelName} "FLATTOP"
goto_if_false @INTRO2_5442
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20218
load_mission_audio MissionAudioSlot.Slot2 {audioId} 20219
64@ = 0

:INTRO2_4952
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_5021
wait 0
gosub @INTRO2_15726
if 
  64@ == 0
goto_if_false @INTRO2_5014
if 
  56@ == 2
goto_if_false @INTRO2_5014

:INTRO2_5014
goto @INTRO2_4952

:INTRO2_5021
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_DA' {time} 10000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5065
start_char_facial_talk $ryder {duration} 2000

:INTRO2_5065
64@ = 0

:INTRO2_5072
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_5141
wait 0
gosub @INTRO2_15726
if 
  64@ == 0
goto_if_false @INTRO2_5134
if 
  56@ == 2
goto_if_false @INTRO2_5134

:INTRO2_5134
goto @INTRO2_5072

:INTRO2_5141
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5162
stop_char_facial_talk $ryder

:INTRO2_5162
set_fixed_camera_position 2074.8269 {y} -1797.4139 {z} 14.233 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.4319 {y} -1796.6639 {z} 13.9678 {switchStyle} SwitchType.JumpCut
wait 1000
64@ = 0

:INTRO2_5225
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO2_5294
wait 0
gosub @INTRO2_15726
if 
  64@ == 0
goto_if_false @INTRO2_5287
if 
  56@ == 2
goto_if_false @INTRO2_5287

:INTRO2_5287
goto @INTRO2_5225

:INTRO2_5294
play_mission_audio MissionAudioSlot.Slot2
print_now 'INT2_DB' {time} 10000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5338
start_char_facial_talk $ryder {duration} 2000

:INTRO2_5338
64@ = 0

:INTRO2_5345
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO2_5414
wait 0
gosub @INTRO2_15726
if 
  64@ == 0
goto_if_false @INTRO2_5407
if 
  56@ == 2
goto_if_false @INTRO2_5407

:INTRO2_5407
goto @INTRO2_5345

:INTRO2_5414
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5435
stop_char_facial_talk $ryder

:INTRO2_5435
goto @INTRO2_5731

:INTRO2_5442
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20221
load_mission_audio MissionAudioSlot.Slot2 {audioId} 65535
64@ = 0

:INTRO2_5465
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_5534
wait 0
gosub @INTRO2_15726
if 
  64@ == 0
goto_if_false @INTRO2_5527
if 
  56@ == 2
goto_if_false @INTRO2_5527

:INTRO2_5527
goto @INTRO2_5465

:INTRO2_5534
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_EA' {time} 10000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5578
start_char_facial_talk $ryder {duration} 2000

:INTRO2_5578
64@ = 0

:INTRO2_5585
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_5654
wait 0
gosub @INTRO2_15726
if 
  64@ == 0
goto_if_false @INTRO2_5647
if 
  56@ == 2
goto_if_false @INTRO2_5647

:INTRO2_5647
goto @INTRO2_5585

:INTRO2_5654
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5675
stop_char_facial_talk $ryder

:INTRO2_5675
set_fixed_camera_position 2075.1899 {y} -1797.282 {z} 14.4799 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.6379 {y} -1796.4709 {z} 14.103 {switchStyle} SwitchType.JumpCut
wait 1000

:INTRO2_5731
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5752
stop_char_facial_talk $ryder

:INTRO2_5752
TIMERA = 0

:INTRO2_5759
if 
  TIMERA <= 1000
goto_if_false @INTRO2_5796
wait 0
gosub @INTRO2_15726
goto @INTRO2_5759

:INTRO2_5796
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5817
stop_char_facial_talk $ryder

:INTRO2_5817
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_5861
clear_look_at $ryder
task_look_at_coord $ryder {x} 2102.0 {y} -1806.0 {z} 14.0 {time} 3000

:INTRO2_5861
64@ = 0

:INTRO2_5868
if 
  49@ <> 1
goto_if_false @INTRO2_5954
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_5940
if 
  56@ == 2
goto_if_false @INTRO2_5940
64@ = 1

:INTRO2_5940
gosub @INTRO2_15726
goto @INTRO2_5868

:INTRO2_5954
clear_look_at $scplayer
task_look_at_coord $scplayer {x} 2102.0 {y} -1806.0 {z} 14.0 {time} 3000
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2074.23 {fromY} -1795.03 {fromZ} 14.4282 {toX} 2074.9829 {toY} -1798.671 {toZ} 14.4451 {time} 12000 {ease} True
camera_set_vector_track 2077.167 {fromY} -1795.729 {fromZ} 14.1884 {toX} 2075.9729 {toY} -1798.734 {toZ} 14.5649 {time} 12000 {ease} True
64@ = 0

:INTRO2_6073
if 
  49@ <> 2
goto_if_false @INTRO2_6175
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_6161
if 
  56@ == 2
goto_if_false @INTRO2_6161
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_6154

:INTRO2_6154
64@ = 1

:INTRO2_6161
gosub @INTRO2_15726
goto @INTRO2_6073

:INTRO2_6175
TIMERB = 0
64@ = 0

:INTRO2_6189
if 
  49@ <> 3
goto_if_false @INTRO2_6291
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_6277
if 
  56@ == 2
goto_if_false @INTRO2_6277
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_6270

:INTRO2_6270
64@ = 1

:INTRO2_6277
gosub @INTRO2_15726
goto @INTRO2_6189

:INTRO2_6291
64@ = 0

:INTRO2_6298
if 
  49@ <> 4
goto_if_false @INTRO2_6400
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_6386
if 
  56@ == 2
goto_if_false @INTRO2_6386
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_6379

:INTRO2_6379
64@ = 1

:INTRO2_6386
gosub @INTRO2_15726
goto @INTRO2_6298

:INTRO2_6400
if 
  TIMERB <= 18000
goto_if_false @INTRO2_6548
wait 0
if 
  44@ == 0
goto_if_false @INTRO2_6482
if 
  TIMERB > 7500
goto_if_false @INTRO2_6482
print_help 'FUDHLP1'
flash_hud_object HudObject.Health
44@ = 1

:INTRO2_6482
if 
  44@ == 1
goto_if_false @INTRO2_6541
if 
  TIMERB > 13500
goto_if_false @INTRO2_6541
print_help 'FUDHLP2'
flash_hud_object -1
44@ = 2

:INTRO2_6541
goto @INTRO2_6400

:INTRO2_6548
if 
  $can_skip_smoking_cutscene == 1
goto_if_false @INTRO2_6576

:INTRO2_6566
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:INTRO2_6576
clear_help 
camera_reset_new_scriptables 
print_now 'HOOD2_B' {time} 10000 {flag} 1
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_6634
set_car_can_be_visibly_damaged $ryder_car {state} True

:INTRO2_6634
remove_blip 34@
34@ = add_blip_for_coord 372.9 {y} -118.8 {z} 1000.57
set_blip_entry_exit 34@ {x} 2103.376 {y} -1806.311 {radius} 20.0
59@ = 0
$flag_menace_buyfood = 1
set_car_density_multiplier 0.5
set_ped_density_multiplier 0.5
TIMERB = 0
$blob_flag = 1

:INTRO2_6721
if or
  not locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} False
  $flag_menace_buyfood <> 3
goto_if_false @INTRO2_7480
wait 0
if 
  87@ == 0
goto_if_false @INTRO2_6829
if 
  TIMERB > 2000
goto_if_false @INTRO2_6829
print_help 'FUDHLP3'
87@ = 1

:INTRO2_6829
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_6868
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_6868
if 
  is_char_dead $ryder
goto_if_false @INTRO2_6907
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_6907
gosub @INTRO2_15726
if 
  $flag_menace_buyfood <> 3
goto_if_false @INTRO2_7083
if 
  $jfud_keep_created == 1
goto_if_false @INTRO2_7083
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @INTRO2_6996
print_now 'INT2_10' {time} 10000 {flag} 1
goto @INTRO2_13667
goto @INTRO2_7083

:INTRO2_6996
if 
  not is_char_health_greater $shop_keep_junkfud {health} 99
goto_if_false @INTRO2_7083
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @INTRO2_7083
give_weapon_to_char $shop_keep_junkfud {weaponType} WeaponType.Shotgun {ammo} 30
set_current_char_weapon $shop_keep_junkfud {weaponType} WeaponType.Shotgun
set_char_relationship $shop_keep_junkfud {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
wait 1000
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7083
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_7209
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_7209
if 
  68@ == 0
goto_if_false @INTRO2_7209
if or
  not locate_car_3d $ryder_car {x} 2078.0901 {y} -1796.2 {z} 12.38 {xRadius} 0.2 {yRadius} 0.2 {zRadius} 2.0 {drawSphere} False
  not is_char_health_greater $ryder {health} 499
goto_if_false @INTRO2_7209
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 20000 {seat} SeatId.BikeRear
68@ = 1

:INTRO2_7209
58@ = get_area_visible 
if 
  58@ == 5
goto_if_false @INTRO2_7405
if 
  59@ == 0
goto_if_false @INTRO2_7309
request_animation "GANGS"
request_animation "FOOD"
request_model 346
request_model 349
load_special_character 2 {modelName} 'RYDER3'
request_model 155
TIMERA = 0
59@ = 1

:INTRO2_7309
if 
  59@ == 1
goto_if_false @INTRO2_7398
if 
  locate_char_on_foot_3d $scplayer {x} 372.05 {y} -130.63 {z} 1000.49 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_7398
print_now 'INT2_13' {time} 5000 {flag} 1
59@ = 2

:INTRO2_7398
goto @INTRO2_7432

:INTRO2_7405
if 
  59@ == 2
goto_if_false @INTRO2_7432
clear_prints 
59@ = 1

:INTRO2_7432
if 
  $flag_attacked_keeper_food == 1
goto_if_false @INTRO2_7473
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7473
goto @INTRO2_6721

:INTRO2_7480
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
set_near_clip 0.1
stop_fx_system 55@
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed #CIGAR_GLOW
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1828

:INTRO2_7520
if or
  not has_animation_loaded "FOOD"
  not has_animation_loaded "GANGS"
  not has_special_character_loaded 2
  not has_model_loaded 155
  not has_model_loaded 346
  not has_model_loaded 349
goto_if_false @INTRO2_7697
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_7610
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7610
if 
  is_char_dead $ryder
goto_if_false @INTRO2_7649
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7649
if 
  $flag_attacked_keeper_food == 1
goto_if_false @INTRO2_7690
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_7690
goto @INTRO2_7520

:INTRO2_7697
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_7816
drop_object $ryder {state} True
clear_char_tasks_immediately $ryder
task_stand_still $ryder {time} 100
set_char_coordinates $ryder {x} 375.7327 {y} -125.2345 {z} 1000.53
set_char_heading $ryder {heading} 201.2298
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
task_play_anim $ryder {animationName} "ROB_SHIFTY" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_7816
clear_area 372.9 {y} -118.8 {z} 1000.57 {radius} 20.0 {clearParticles} True
clear_area 369.058 {y} -4.92 {z} 1000.883 {radius} 20.0 {clearParticles} True
35@ = create_char PedType.Mission1 {modelId} 155 {x} 373.14 {y} -117.11 {z} 1000.57
set_char_heading 35@ {heading} 180.0
43@ = load_char_decision_maker DecisionMakerType.Tough
set_char_decision_maker 35@ {handleOrTemplate} 43@
clear_look_at 35@
task_look_at_char 35@ {target} $scplayer {time} 4700
task_turn_char_to_face_char 35@ {target} $scplayer
set_char_coordinates $scplayer {x} 372.9 {y} -118.8 {z} 1000.57
task_turn_char_to_face_char $scplayer {target} 35@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
51@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 375.2 {y} -119.8 {z} 1000.5 {speed} MoveState.Walk {time} 7000
task_play_anim -1 {animationName} "ROB_STICKUP_IN" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "ROB_LOOP_THREAT" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 51@
49@ = 0
56@ = 0
64@ = 0
40@ = 2
gosub @INTRO2_47
wait 200
if 
  $cj_vomits_for_menace == 0
goto_if_false @INTRO2_8192
task_play_anim $scplayer {animationName} "EAT_PIZZA" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @INTRO2_8332

:INTRO2_8192
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 90@ = $player_x
90@ += 0.355
set_lvar_float_to_var_float 91@ = $player_y
91@ -= 0.116
set_lvar_float_to_var_float 92@ = $player_z
92@ -= 0.048
62@ = create_fx_system "PUKE" {x} 90@ {y} 91@ {z} 92@ {ignoreBoundingChecks} True
task_play_anim_non_interruptable $scplayer {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$sample_name_shop = set_char_say_context $scplayer {phrase} SpeechId.PainCjPuke

:INTRO2_8332
do_fade 500 {direction} Fade.In
set_music_does_fade True
set_fixed_camera_position 376.4939 {y} -126.0317 {z} 1002.396 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 375.9087 {y} -125.2215 {z} 1002.361 {switchStyle} SwitchType.JumpCut
wait 4500
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 377.0709 {fromY} -121.8843 {fromZ} 1000.714 {toX} 377.3563 {toY} -119.1986 {toZ} 1002.57 {time} 7000 {ease} True
camera_set_vector_track 376.4134 {fromY} -122.6288 {fromZ} 1000.598 {toX} 376.423 {toY} -119.1806 {toZ} 1002.211 {time} 7000 {ease} True
delete_char $ryder
unload_special_character 1
$ryder = create_char PedType.Mission1 {modelId} 291 {x} 376.3327 {y} -125.2345 {z} 1000.53
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_never_targetted $ryder {state} True
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
set_char_suffers_critical_hits $ryder {state} False
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_decision_maker $ryder {handleOrTemplate} 67@
set_char_get_out_upside_down_car $ryder {state} False
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_8649
give_weapon_to_char $ryder {weaponType} WeaponType.Pistol {ammo} 30
set_current_char_weapon $ryder {weaponType} WeaponType.Pistol
if 
  not is_char_dead 35@
goto_if_false @INTRO2_8649
perform_sequence_task $ryder {sequence} 51@
clear_sequence_task 51@

:INTRO2_8649
41@ = 0
skip_cutscene_start_internal @INTRO2_10954
TIMERA = 0
63@ = 0

:INTRO2_8677
if 
  not locate_char_any_means_3d $ryder {x} 375.2 {y} -119.8 {z} 1000.5 {xRadius} 0.4 {yRadius} 0.6 {zRadius} 2.0 {drawSphere} False
goto_if_false @INTRO2_9124
wait 0
if 
  is_char_playing_anim $scplayer {animationName} "EAT_VOMIT_P"
goto_if_false @INTRO2_8899
93@ = get_char_anim_current_time $scplayer {animationName} "EAT_VOMIT_P"
if 
  63@ == 0
goto_if_false @INTRO2_8848
if 
  93@ >= 0.463
goto_if_false @INTRO2_8848
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @INTRO2_8841
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjPuke

:INTRO2_8841
63@ = 1

:INTRO2_8848
if 
  63@ == 1
goto_if_false @INTRO2_8899
if 
  93@ >= 0.52
goto_if_false @INTRO2_8899
play_fx_system 62@
63@ = 2

:INTRO2_8899
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_8938
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_8938
if 
  is_char_dead $ryder
goto_if_false @INTRO2_8977
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_8977
if 
  $flag_attacked_keeper_food == 1
goto_if_false @INTRO2_9018
print_now 'INT2_14' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_9018
if 
  69@ == 0
goto_if_false @INTRO2_9117
if 
  TIMERA > 1000
goto_if_false @INTRO2_9117
if 
  $cj_vomits_for_menace == 0
goto_if_false @INTRO2_9110
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000

:INTRO2_9110
69@ = 1

:INTRO2_9117
goto @INTRO2_8677

:INTRO2_9124
if 
  not is_char_dead 35@
goto_if_false @INTRO2_9253
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9253
clear_char_tasks 35@
clear_look_at 35@
task_look_at_char 35@ {target} $ryder {time} 12500
task_stand_still $scplayer {time} 100
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 10000
set_char_heading 35@ {heading} 200.0
task_play_anim 35@ {animationName} "SHP_ROB_HANDSUP" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9253
$iSetPizzaPanic = 1
64@ = 0

:INTRO2_9267
if 
  49@ <> 1
goto_if_false @INTRO2_9378
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_9371
if 
  56@ == 2
goto_if_false @INTRO2_9371
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9364
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 6000

:INTRO2_9364
64@ = 1

:INTRO2_9371
goto @INTRO2_9267

:INTRO2_9378
64@ = 0

:INTRO2_9385
if 
  49@ <> 2
goto_if_false @INTRO2_9548
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_9541
if 
  56@ == 2
goto_if_false @INTRO2_9541
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9502
task_play_anim $ryder {animationName} "ROB_LOOP" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9502
if 
  not is_char_dead 35@
goto_if_false @INTRO2_9534
clear_look_at $scplayer
task_look_at_char $scplayer {target} 35@ {time} 6000

:INTRO2_9534
64@ = 1

:INTRO2_9541
goto @INTRO2_9385

:INTRO2_9548
64@ = 0

:INTRO2_9555
if 
  49@ <> 3
goto_if_false @INTRO2_9778
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_9771
if 
  56@ == 2
goto_if_false @INTRO2_9771
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9679
task_play_anim $ryder {animationName} "ROB_LOOP_THREAT" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9679
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9711
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 6000

:INTRO2_9711
camera_reset_new_scriptables 
set_fixed_camera_position 374.9156 {y} -121.7312 {z} 1002.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 374.7307 {y} -120.7778 {z} 1002.262 {switchStyle} SwitchType.JumpCut
64@ = 1

:INTRO2_9771
goto @INTRO2_9555

:INTRO2_9778
64@ = 0

:INTRO2_9785
if 
  49@ <> 4
goto_if_false @INTRO2_9948
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_9941
if 
  56@ == 2
goto_if_false @INTRO2_9941
if 
  not is_char_dead 35@
goto_if_false @INTRO2_9882
clear_look_at $scplayer
task_look_at_char $scplayer {target} 35@ {time} 6000

:INTRO2_9882
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_9934
task_play_anim $ryder {animationName} "ROB_LOOP" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_9934
64@ = 1

:INTRO2_9941
goto @INTRO2_9785

:INTRO2_9948
42@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "ROB_2IDLE" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 42@
64@ = 0

:INTRO2_10050
if 
  49@ <> 5
goto_if_false @INTRO2_10289
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_10282
if 
  56@ == 2
goto_if_false @INTRO2_10282
set_fixed_camera_position 371.562 {y} -120.1569 {z} 1002.404 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 372.4125 {y} -119.6767 {z} 1002.19 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10275
clear_char_tasks $scplayer
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 10000
clear_char_tasks $ryder
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 10000
task_turn_char_to_face_char $scplayer {target} $ryder
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:INTRO2_10275
64@ = 1

:INTRO2_10282
goto @INTRO2_10050

:INTRO2_10289
64@ = 0

:INTRO2_10296
if 
  49@ <> 6
goto_if_false @INTRO2_10455
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_10448
if 
  56@ == 2
goto_if_false @INTRO2_10448
set_fixed_camera_position 374.6357 {y} -121.6844 {z} 1001.637 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 374.5972 {y} -120.6883 {z} 1001.716 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10441
perform_sequence_task $ryder {sequence} 42@
clear_sequence_task 42@

:INTRO2_10441
64@ = 1

:INTRO2_10448
goto @INTRO2_10296

:INTRO2_10455
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10476
clear_char_tasks $ryder

:INTRO2_10476
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10542
set_char_heading 35@ {heading} 180.0
task_play_anim 35@ {animationName} "SHP_GUN_GRAB" {animationFile} "SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:INTRO2_10542
wait 500
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10580
give_weapon_to_char 35@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_current_char_weapon 35@ {weaponType} WeaponType.Shotgun

:INTRO2_10580
wait 500
set_fixed_camera_position 373.03 {y} -116.1498 {z} 1002.375 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 373.0192 {y} -117.1292 {z} 1002.173 {switchStyle} SwitchType.JumpCut
wait 300
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10680
task_shoot_at_coord 35@ {x} 374.2905 {y} -125.681 {z} 1001.308 {time} 2000

:INTRO2_10680
64@ = 0

:INTRO2_10687
if 
  49@ <> 7
goto_if_false @INTRO2_10947
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_10940
if 
  56@ == 2
goto_if_false @INTRO2_10940
flush_route 
extend_route 372.0 {y} -120.1 {z} 1000.5
extend_route 370.5 {y} -132.3 {z} 1000.4
task_follow_point_route $scplayer {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
extend_route 376.3 {y} -121.0 {z} 1000.5
extend_route 375.9 {y} -132.0 {z} 1000.5
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_10858
task_follow_point_route $ryder {speed} MoveState.Run {mode} RouteMode.Once

:INTRO2_10858
if and
  not is_char_dead $ryder
  not is_char_dead 35@
goto_if_false @INTRO2_10894
clear_look_at $ryder
clear_look_at $scplayer
clear_look_at 35@

:INTRO2_10894
if 
  not is_char_dead 35@
goto_if_false @INTRO2_10933
task_shoot_at_coord 35@ {x} 374.2905 {y} -125.681 {z} 1001.308 {time} 1500

:INTRO2_10933
64@ = 1

:INTRO2_10940
goto @INTRO2_10687

:INTRO2_10947
41@ = 1

:INTRO2_10954
skip_cutscene_end 
if 
  41@ == 0
goto_if_false @INTRO2_11013
do_fade 0 {direction} Fade.Out
clear_prints 

:INTRO2_10982
if 
  get_fading_status 
goto_if_false @INTRO2_11006
wait 0
goto @INTRO2_10982

:INTRO2_11006
goto @INTRO2_11046

:INTRO2_11013
do_fade 500 {direction} Fade.Out
clear_prints 

:INTRO2_11022
if 
  get_fading_status 
goto_if_false @INTRO2_11046
wait 0
goto @INTRO2_11022

:INTRO2_11046
camera_reset_new_scriptables 
clear_area 372.9 {y} -118.8 {z} 1000.57 {radius} 100.0 {clearParticles} True
set_area_visible 0
task_stand_still $scplayer {time} 0
set_char_coordinates $scplayer {x} 2102.21 {y} -1806.65 {z} 12.4
set_char_heading $scplayer {heading} 75.0
set_char_cant_be_dragged_out $scplayer {state} True
set_char_area_visible $scplayer {areaId} 0
wait 0
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_11322
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_11322
clear_look_at $ryder
clear_look_at $scplayer
clear_area 2077.5701 {y} -1796.41 {z} 12.38 {radius} 100.0 {clearParticles} True
set_car_coordinates $ryder_car {x} 2077.5701 {y} -1796.41 {z} 12.0
set_car_heading $ryder_car {heading} 180.0
set_car_health $ryder_car {health} 1000
clear_area 2098.6101 {y} -1801.62 {z} 12.39 {radius} 100.0 {clearParticles} True
set_char_coordinates $ryder {x} 2092.6101 {y} -1801.62 {z} 12.39
set_char_heading $ryder {heading} 72.0
set_char_area_visible $ryder {areaId} 0
lock_car_doors $ryder_car {lockStatus} CarLock.Unlocked
set_next_desired_move_state MoveState.Run
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 40000 {seat} SeatId.BikeRear

:INTRO2_11322
release_weather 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
clear_loaded_shop 
clear_extra_colours False
remove_animation "SHOP"
remove_animation "GANGS"
remove_animation "FOOD"
38@ = 0
print_now 'INT2_6' {time} 10000 {flag} 1
if 
  is_char_dead $ryder
goto_if_false @INTRO2_11425
goto @INTRO2_13667
goto @INTRO2_11454

:INTRO2_11425
set_char_health $ryder {health} 500
set_char_max_health $ryder {maxHealth} 500
47@ = add_blip_for_char $ryder
remove_blip 47@

:INTRO2_11454
remove_blip 34@
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_11502
remove_blip 37@
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
goto @INTRO2_11509

:INTRO2_11502
goto @INTRO2_13667

:INTRO2_11509
switch_entry_exit 'FDPIZA' {state} False
$blob_flag = 1
60@ = 0
54@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2102.77 {y} -1806.35 {z} 12.55 {speed} MoveState.Run {time} 4000
task_shoot_at_coord -1 {x} 2092.6699 {y} -1803.64 {z} 15.56 {time} 1000
close_sequence_task 54@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 20232

:INTRO2_11607
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_11633
wait 0
goto @INTRO2_11607

:INTRO2_11633
load_scene_in_direction 2102.21 {y} -1806.65 {z} 12.4 {heading} 75.0
do_fade 500 {direction} Fade.In
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_11701
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11701
if 
  is_char_dead $ryder
goto_if_false @INTRO2_11740
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11740
49@ = 0
56@ = 0
64@ = 0
40@ = 4
gosub @INTRO2_47
TIMERA = 0
TIMERB = 0
clear_area 2077.5701 {y} -1796.41 {z} 12.38 {radius} 20.0 {clearParticles} True

:INTRO2_11813
if or
  not locate_car_3d $ryder_car {x} 2473.8799 {y} -1692.8101 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_in_car $ryder {vehicle} $ryder_car
  not is_char_sitting_in_car $scplayer {vehicle} $ryder_car
  not is_vehicle_on_all_wheels $ryder_car
goto_if_false @INTRO2_12919
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_11926
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11926
if 
  is_char_dead $ryder
goto_if_false @INTRO2_11965
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_11965
if 
  not locate_char_on_foot_3d $scplayer {x} 2104.6201 {y} -1806.54 {z} 12.55 {xRadius} 7.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_12304
if 
  66@ == 0
goto_if_false @INTRO2_12187
if 
  not is_char_dead 35@
goto_if_false @INTRO2_12180
clear_char_tasks 35@
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 2105.3201 {y} -1806.24 {z} 12.55
set_char_heading 35@ {heading} 90.0
give_weapon_to_char 35@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_current_char_weapon 35@ {weaponType} WeaponType.Shotgun
set_char_accuracy 35@ {accuracy} 30
set_near_clip 0.1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_12153
play_mission_audio MissionAudioSlot.Slot1
print_now 'INT2_HA' {time} 2000 {flag} 1

:INTRO2_12153
perform_sequence_task 35@ {sequence} 54@
clear_sequence_task 54@
TIMERA = 0
66@ = 1

:INTRO2_12180
goto @INTRO2_12304

:INTRO2_12187
if 
  TIMERA > 2000
goto_if_false @INTRO2_12304
if 
  66@ == 1
goto_if_false @INTRO2_12304
if 
  not is_char_dead 35@
goto_if_false @INTRO2_12304
if 
  locate_char_on_foot_3d 35@ {x} 2102.77 {y} -1806.35 {z} 12.55 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @INTRO2_12304
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
66@ = 2

:INTRO2_12304
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_12413
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_12413
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_12413
if 
  is_char_sitting_in_car $ryder {vehicle} $ryder_car
goto_if_false @INTRO2_12413
gosub @INTRO2_16035
if 
  88@ == 0
goto_if_false @INTRO2_12413
TIMERB = 0
88@ = 1

:INTRO2_12413
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_12834
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_12811
if 
  is_char_in_car $scplayer {vehicle} $ryder_car
goto_if_false @INTRO2_12712
if 
  is_char_sitting_in_car $ryder {vehicle} $ryder_car
goto_if_false @INTRO2_12610
if 
  38@ == 0
goto_if_false @INTRO2_12603
remove_blip 47@
remove_blip 37@
remove_blip 34@
34@ = add_blip_for_coord 2473.8799 {y} -1692.8101 {z} 12.52
$blob_flag = 1
if 
  88@ == 1
goto_if_false @INTRO2_12603
if 
  TIMERB > 7000
goto_if_false @INTRO2_12603
print_now 'INT2_O' {time} 10000 {flag} 1
38@ = 1

:INTRO2_12603
goto @INTRO2_12705

:INTRO2_12610
remove_blip 37@
remove_blip 34@
remove_blip 47@
47@ = add_blip_for_char $ryder
set_blip_as_friendly 47@ {state} True
print_now 'INT2_5' {time} 1000 {flag} 1
65@ = get_script_task_status $ryder {taskId} 1482
if 
  is_int_lvar_equal_to_constant 65@ == 7
goto_if_false @INTRO2_12698
task_enter_car_as_passenger $ryder {vehicle} $ryder_car {time} 20000 {seat} SeatId.BikeRear

:INTRO2_12698
$blob_flag = 0

:INTRO2_12705
goto @INTRO2_12804

:INTRO2_12712
if 
  38@ == 1
goto_if_false @INTRO2_12804
remove_blip 34@
remove_blip 37@
37@ = add_blip_for_car $ryder_car
set_blip_as_friendly 37@ {state} True
$blob_flag = 0
gosub @INTRO2_15117
print_now 'INT2_6' {time} 10000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
38@ = 0

:INTRO2_12804
goto @INTRO2_12834

:INTRO2_12811
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_12834
if 
  is_char_dead $ryder
goto_if_false @INTRO2_12873
print_now 'INT2_12' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_12873
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_12912
print_now 'INT2_11' {time} 10000 {flag} 1
goto @INTRO2_13667

:INTRO2_12912
goto @INTRO2_11813

:INTRO2_12919
set_player_control $player1 {state} False
49@ = 0
56@ = 0
64@ = 0
40@ = 3
gosub @INTRO2_47
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13030
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_13030
task_leave_car $ryder {vehicle} $ryder_car
wait 700
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_13030
task_leave_car $scplayer {vehicle} $ryder_car

:INTRO2_13030
do_fade 1600 {direction} Fade.Out

:INTRO2_13037
if 
  get_fading_status 
goto_if_false @INTRO2_13061
wait 0
goto @INTRO2_13037

:INTRO2_13061
switch_widescreen True
do_fade 1500 {direction} Fade.In
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13151
if 
  is_char_in_any_car $ryder
goto_if_false @INTRO2_13131
warp_char_from_car_to_coord $ryder {x} 2467.345 {y} -1688.22 {z} 12.5156
goto @INTRO2_13151

:INTRO2_13131
set_char_coordinates $ryder {x} 2467.345 {y} -1688.22 {z} 12.5156

:INTRO2_13151
set_char_heading $ryder {heading} 284.0
if 
  is_char_in_any_car $scplayer
goto_if_false @INTRO2_13204
warp_char_from_car_to_coord $scplayer {x} 2468.3589 {y} -1687.39 {z} 12.518
goto @INTRO2_13224

:INTRO2_13204
set_char_coordinates $scplayer {x} 2468.3589 {y} -1687.39 {z} 12.5189

:INTRO2_13224
set_char_heading $scplayer {heading} 108.0
set_fixed_camera_position 2464.771 {y} -1687.493 {z} 14.2709 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2465.75 {y} -1687.675 {z} 14.1833 {switchStyle} SwitchType.JumpCut
64@ = 0

:INTRO2_13292
if 
  49@ <> 1
goto_if_false @INTRO2_13371
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_13364
if 
  56@ == 2
goto_if_false @INTRO2_13364
64@ = 1

:INTRO2_13364
goto @INTRO2_13292

:INTRO2_13371
64@ = 0

:INTRO2_13378
if 
  49@ <> 2
goto_if_false @INTRO2_13457
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_13450
if 
  56@ == 2
goto_if_false @INTRO2_13450
64@ = 1

:INTRO2_13450
goto @INTRO2_13378

:INTRO2_13457
64@ = 0

:INTRO2_13464
if 
  49@ <> 3
goto_if_false @INTRO2_13584
wait 0
gosub @INTRO2_16035
if 
  64@ == 0
goto_if_false @INTRO2_13577
if 
  56@ == 2
goto_if_false @INTRO2_13577
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13570
task_go_straight_to_coord $ryder {x} 2459.79 {y} -1688.1801 {z} 12.56 {speed} MoveState.Walk {time} 3000

:INTRO2_13570
64@ = 1

:INTRO2_13577
goto @INTRO2_13464

:INTRO2_13584
task_go_straight_to_coord $scplayer {x} 2471.5801 {y} -1685.73 {z} 12.51 {speed} MoveState.Walk {time} 3000
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_13630
stop_char_facial_talk $ryder

:INTRO2_13630
wait 1000
clear_char_tasks $scplayer
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
delete_char $ryder
goto @INTRO2_13692

:INTRO2_13667
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$can_skip_smoking_cutscene = 1
return 

:INTRO2_13692
register_mission_passed 'INTRO_2'
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
switch_car_generator $gen_car6 {amount} 101
$flag_intro_mission_counter += 1
remove_blip $intro_contact_blip
start_new_script @SWEET 
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
clear_wanted_level $player1
switch_entry_exit 'BARBERS' {state} True
switch_entry_exit 'BARBER2' {state} True
switch_entry_exit 'BARBER3' {state} True
switch_entry_exit 'FDPIZA' {state} True
switch_entry_exit 'FDCHICK' {state} True
switch_entry_exit 'FDBURG' {state} True
switch_entry_exit 'TATTOO' {state} True
remove_blip $barber_shop1
$barber_shop1 = add_short_range_sprite_blip_for_coord 2070.27 {y} -1791.092 {z} 17.1484 {sprite} RadarSprite.Barbers
remove_blip $food_shop1
$food_shop1 = add_short_range_sprite_blip_for_coord 2107.624 {y} -1807.516 {z} 21.2114 {sprite} RadarSprite.Pizza
play_mission_passed_tune 1
if 
  $added_all_food_blips_before == 0
goto_if_false @INTRO2_14811
$barbers_blips = add_short_range_sprite_blip_for_coord 822.6 {y} -1590.3 {z} 13.5 {sprite} RadarSprite.Barbers
$2592 = add_short_range_sprite_blip_for_coord -2570.1001 {y} 245.4 {z} 10.3 {sprite} RadarSprite.Barbers
$2593 = add_short_range_sprite_blip_for_coord 2726.6001 {y} -2026.4 {z} 17.5 {sprite} RadarSprite.Barbers
$2594 = add_short_range_sprite_blip_for_coord 2080.3 {y} 2119.0 {z} 10.8 {sprite} RadarSprite.Barbers
$2595 = add_short_range_sprite_blip_for_coord 675.7 {y} -496.6 {z} 16.8 {sprite} RadarSprite.Barbers
$pizza_blips = add_short_range_sprite_blip_for_coord -1805.7 {y} 943.2 {z} 24.8 {sprite} RadarSprite.Pizza
$2597 = add_short_range_sprite_blip_for_coord 2750.8999 {y} 2470.8999 {z} 11.0 {sprite} RadarSprite.Pizza
$2598 = add_short_range_sprite_blip_for_coord 2351.8 {y} 2529.0 {z} 10.8 {sprite} RadarSprite.Pizza
$2599 = add_short_range_sprite_blip_for_coord 2635.5 {y} 1847.4 {z} 11.0 {sprite} RadarSprite.Pizza
$2600 = add_short_range_sprite_blip_for_coord 2083.3999 {y} 2221.0 {z} 11.0 {sprite} RadarSprite.Pizza
$2601 = add_short_range_sprite_blip_for_coord -1719.1 {y} 1359.4 {z} 8.6 {sprite} RadarSprite.Pizza
$2602 = add_short_range_sprite_blip_for_coord 2330.2 {y} 75.2 {z} 31.0 {sprite} RadarSprite.Pizza
$2603 = add_short_range_sprite_blip_for_coord 203.2 {y} -200.4 {z} 6.5 {sprite} RadarSprite.Pizza
$burger_blips = add_short_range_sprite_blip_for_coord 812.9 {y} -1616.1 {z} 13.6 {sprite} RadarSprite.BurgerShot
$2605 = add_short_range_sprite_blip_for_coord 1199.1 {y} -924.0 {z} 43.3 {sprite} RadarSprite.BurgerShot
$2606 = add_short_range_sprite_blip_for_coord 2362.2 {y} 2069.8999 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2607 = add_short_range_sprite_blip_for_coord 2469.5 {y} 2033.8 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2608 = add_short_range_sprite_blip_for_coord 2172.8999 {y} 2795.7 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2609 = add_short_range_sprite_blip_for_coord 1875.3 {y} 2072.0 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2610 = add_short_range_sprite_blip_for_coord 1161.5 {y} 2072.0 {z} 10.8 {sprite} RadarSprite.BurgerShot
$2611 = add_short_range_sprite_blip_for_coord -2356.0 {y} 1009.0 {z} 49.0 {sprite} RadarSprite.BurgerShot
$2612 = add_short_range_sprite_blip_for_coord -1913.3 {y} 826.2 {z} 36.9 {sprite} RadarSprite.BurgerShot
$2613 = add_short_range_sprite_blip_for_coord -2335.6001 {y} -165.6 {z} 39.5 {sprite} RadarSprite.BurgerShot
$chicken_blips = add_short_range_sprite_blip_for_coord 2397.8 {y} -1895.6 {z} 13.7 {sprite} RadarSprite.Chicken
$2615 = add_short_range_sprite_blip_for_coord 2421.6001 {y} -1509.6 {z} 24.1 {sprite} RadarSprite.Chicken
$2616 = add_short_range_sprite_blip_for_coord -2671.6001 {y} 257.4 {z} 4.6 {sprite} RadarSprite.Chicken
$2617 = add_short_range_sprite_blip_for_coord 2392.3999 {y} 2046.5 {z} 10.8 {sprite} RadarSprite.Chicken
$2618 = add_short_range_sprite_blip_for_coord 2844.5 {y} 2401.1001 {z} 11.0 {sprite} RadarSprite.Chicken
$2619 = add_short_range_sprite_blip_for_coord 2635.5 {y} 1674.3 {z} 11.0 {sprite} RadarSprite.Chicken
$2620 = add_short_range_sprite_blip_for_coord 2105.7 {y} 2228.7 {z} 11.0 {sprite} RadarSprite.Chicken
$2621 = add_short_range_sprite_blip_for_coord -2154.0 {y} -2461.2 {z} 30.8 {sprite} RadarSprite.Chicken
$2622 = add_short_range_sprite_blip_for_coord -1816.2 {y} 620.8 {z} 37.5 {sprite} RadarSprite.Chicken
$2623 = add_short_range_sprite_blip_for_coord -1216.0 {y} 1831.4 {z} 45.3 {sprite} RadarSprite.Chicken
$2624 = add_short_range_sprite_blip_for_coord 172.73 {y} 1176.76 {z} 13.7 {sprite} RadarSprite.Chicken
$2625 = add_short_range_sprite_blip_for_coord 932.0 {y} -1353.0 {z} 14.0 {sprite} RadarSprite.Chicken
$tattoo_blips = add_short_range_sprite_blip_for_coord 1971.7 {y} -2036.6 {z} 13.5 {sprite} RadarSprite.Tattoo
$2627 = add_short_range_sprite_blip_for_coord 2071.6001 {y} -1779.9 {z} 13.5 {sprite} RadarSprite.Tattoo
$2628 = add_short_range_sprite_blip_for_coord 2094.6001 {y} 2119.0 {z} 10.8 {sprite} RadarSprite.Tattoo
$2629 = add_short_range_sprite_blip_for_coord -2490.5 {y} -40.1 {z} 39.3 {sprite} RadarSprite.Tattoo
$added_all_food_blips_before = 1

:INTRO2_14811
player_made_progress 1
return 

:INTRO2_14817
$onmission = 0
if 
  is_player_playing $player1
goto_if_false @INTRO2_14852
set_char_cant_be_dragged_out $scplayer {state} False
clear_look_at $scplayer

:INTRO2_14852
if 
  not is_car_dead $ryder_car
goto_if_false @INTRO2_14875
set_can_burst_car_tyres $ryder_car {state} True

:INTRO2_14875
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed #CIGAR_GLOW
remove_animation "SHOP"
remove_animation "GANGS"
remove_animation "FOOD"
$flag_menace_buyfood = 0
$flag_changed_hair_intro2 = 0
$timer_mobile_start = get_game_timer 
remove_blip 47@
remove_blip 34@
remove_blip 37@
remove_char_elegantly $ryder
mark_char_as_no_longer_needed 35@
unload_special_character 1
unload_special_character 2
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 20
$flag_player_on_menace_mission = 0
mission_has_finished 
return 

:INTRO2_15117
clear_mission_audio MissionAudioSlot.Slot2
if 
  89@ == 0
goto_if_false @INTRO2_15148
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34200

:INTRO2_15148
if 
  89@ == 1
goto_if_false @INTRO2_15175
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34201

:INTRO2_15175
if 
  89@ == 2
goto_if_false @INTRO2_15202
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34202

:INTRO2_15202
if 
  89@ == 3
goto_if_false @INTRO2_15229
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34203

:INTRO2_15229
if 
  89@ == 4
goto_if_false @INTRO2_15256
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34204

:INTRO2_15256
if 
  89@ == 5
goto_if_false @INTRO2_15283
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34205

:INTRO2_15283
if 
  89@ == 6
goto_if_false @INTRO2_15310
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34206

:INTRO2_15310
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:INTRO2_15326
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @INTRO2_15388
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_15363
return 

:INTRO2_15363
if 
  is_char_dead $ryder
goto_if_false @INTRO2_15381
return 

:INTRO2_15381
goto @INTRO2_15326

:INTRO2_15388
play_mission_audio MissionAudioSlot.Slot2
if 
  89@ == 0
goto_if_false @INTRO2_15426
print_now 'RYDX_AA' {time} 3000 {flag} 1

:INTRO2_15426
if 
  89@ == 1
goto_if_false @INTRO2_15460
print_now 'RYDX_AB' {time} 3000 {flag} 1

:INTRO2_15460
if 
  89@ == 2
goto_if_false @INTRO2_15494
print_now 'RYDX_AC' {time} 3000 {flag} 1

:INTRO2_15494
if 
  89@ == 3
goto_if_false @INTRO2_15528
print_now 'RYDX_AD' {time} 3000 {flag} 1

:INTRO2_15528
if 
  89@ == 4
goto_if_false @INTRO2_15562
print_now 'RYDX_AE' {time} 3000 {flag} 1

:INTRO2_15562
if 
  89@ == 5
goto_if_false @INTRO2_15596
print_now 'RYDX_AF' {time} 3000 {flag} 1

:INTRO2_15596
if 
  89@ == 6
goto_if_false @INTRO2_15630
print_now 'RYDX_AG' {time} 3000 {flag} 1

:INTRO2_15630
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @INTRO2_15692
wait 0
if 
  is_car_dead $ryder_car
goto_if_false @INTRO2_15667
return 

:INTRO2_15667
if 
  is_char_dead $ryder
goto_if_false @INTRO2_15685
return 

:INTRO2_15685
goto @INTRO2_15630

:INTRO2_15692
89@ += 1
if 
  89@ > 6
goto_if_false @INTRO2_15724
89@ = 0

:INTRO2_15724
return 

:INTRO2_15726
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_16033
if 
  is_char_playing_anim $ryder {animationName} "SMOKE_RYD"
goto_if_false @INTRO2_16028
93@ = get_char_anim_current_time $ryder {animationName} "SMOKE_RYD"
if 
  63@ == 0
goto_if_false @INTRO2_15894
if 
  93@ >= 0.785
goto_if_false @INTRO2_15894
39@ = create_object #CIGAR_GLOW {x} 2440.5801 {y} -1979.89 {z} 14.2
attach_object_to_object 39@ {handle} 46@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
63@ = 1

:INTRO2_15894
if 
  63@ == 1
goto_if_false @INTRO2_15960
if and
  93@ >= 0.15
  0.335 > 93@
goto_if_false @INTRO2_15960
play_fx_system 55@
delete_object 39@
63@ = 2

:INTRO2_15960
if 
  63@ == 2
goto_if_false @INTRO2_16021
if or
  93@ >= 0.335
  0.15 > 93@
goto_if_false @INTRO2_16021
stop_fx_system 55@
63@ = 0

:INTRO2_16021
goto @INTRO2_16033

:INTRO2_16028
stop_fx_system 55@

:INTRO2_16033
return 

:INTRO2_16035
if or
  56@ == 0
  56@ == 1
goto_if_false @INTRO2_16105
if 
  is_int_lvar_greater_or_equal_to_int_lvar 50@ >= 49@
goto_if_false @INTRO2_16105
if 
  TIMERA > 200
goto_if_false @INTRO2_16105
gosub @INTRO2_16177

:INTRO2_16105
if 
  56@ == 2
goto_if_false @INTRO2_16175
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @INTRO2_16175
gosub @INTRO2_16526
56@ = 0
49@ += 1
64@ = 0
clear_prints 
TIMERA = 0

:INTRO2_16175
return 

:INTRO2_16177
if 
  56@ == 0
goto_if_false @INTRO2_16213
load_mission_audio MissionAudioSlot.Slot1 {audioId} 70@(49@,17i)
56@ = 1

:INTRO2_16213
if 
  56@ == 1
goto_if_false @INTRO2_16278
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @INTRO2_16278
print_now $intro2_chat(49@,17s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @INTRO2_16280
56@ = 2

:INTRO2_16278
return 

:INTRO2_16280
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20227
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20229
goto_if_false @INTRO2_16348
if 
  not is_char_dead 35@
goto_if_false @INTRO2_16348
shut_char_up_for_scripted_speech 35@ {state} True
start_char_facial_talk 35@ {duration} 3000
return 

:INTRO2_16348
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20211
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20215
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20202
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20204
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20206
goto_if_false @INTRO2_16436
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:INTRO2_16436
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20209
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20230
goto_if_false @INTRO2_16493
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
goto @INTRO2_16524

:INTRO2_16493
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_16524
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000

:INTRO2_16524
return 

:INTRO2_16526
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20227
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20229
goto_if_false @INTRO2_16591
if 
  not is_char_dead 35@
goto_if_false @INTRO2_16591
shut_char_up_for_scripted_speech 35@ {state} False
stop_char_facial_talk 35@
return 

:INTRO2_16591
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20211
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20215
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20202
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20204
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20206
goto_if_false @INTRO2_16676
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:INTRO2_16676
if or
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20209
  is_int_lvar_equal_to_constant 70@(49@,17i) == 20230
goto_if_false @INTRO2_16730
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @INTRO2_16758

:INTRO2_16730
if 
  not is_char_dead $ryder
goto_if_false @INTRO2_16758
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder

:INTRO2_16758
return 

//-------------Mission 13---------------
// Originally: Tagging Up Turf

:SWEET1
script_name 'SWEET1'
gosub @SWEET1_468
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET1_38
gosub @SWEET1_14575

:SWEET1_38
gosub @SWEET1_14838
terminate_this_script 
clear_char_tasks $scplayer

:SWEET1_52
switch_start $sweet1_chat_switch {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET1_431 {caseNum1} 0 {caseLabel1} @SWEET1_115 {caseNum2} 1 {caseLabel2} @SWEET1_249 {caseNum3} -1 {caseLabel3} @SWEET1_431 {caseNum4} -1 {caseLabel4} @SWEET1_431 {caseNum5} -1 {caseLabel5} @SWEET1_431 {caseNum6} -1 {caseLabel6} @SWEET1_431 {caseNum7} -1 {caseLabel7} @SWEET1_431

:SWEET1_115
set_var_text_label s$sweet1_chat[0] = 'SWE1_AA'
set_var_text_label s$sweet1_chat[1] = 'SWE1_AB'
set_var_text_label s$sweet1_chat[2] = 'SWE1_AC'
set_var_text_label s$sweet1_chat[3] = 'SWE1_AD'
set_var_text_label s$sweet1_chat[4] = 'SWE1_AE'
set_var_int_to_constant $sweet1_audio_chat[0] = 37400
set_var_int_to_constant $sweet1_audio_chat[1] = 37401
set_var_int_to_constant $sweet1_audio_chat[2] = 37402
set_var_int_to_constant $sweet1_audio_chat[3] = 37403
set_var_int_to_constant $sweet1_audio_chat[4] = 37404
48@ = 4
goto @SWEET1_431

:SWEET1_249
set_var_text_label s$sweet1_chat[0] = 'SWE1_BN'
set_var_text_label s$sweet1_chat[1] = 'SWE1_BO'
set_var_text_label s$sweet1_chat[2] = 'SWE1_BP'
set_var_text_label s$sweet1_chat[3] = 'SWE1_BQ'
set_var_text_label s$sweet1_chat[4] = 'SWE1_BX'
set_var_text_label s$sweet1_chat[5] = 'SWE1_BT'
set_var_text_label s$sweet1_chat[6] = 'SWE1_BU'
set_var_int_to_constant $sweet1_audio_chat[0] = 37435
set_var_int_to_constant $sweet1_audio_chat[1] = 37436
set_var_int_to_constant $sweet1_audio_chat[2] = 37437
set_var_int_to_constant $sweet1_audio_chat[3] = 37438
set_var_int_to_constant $sweet1_audio_chat[4] = 37443
set_var_int_to_constant $sweet1_audio_chat[5] = 37441
set_var_int_to_constant $sweet1_audio_chat[6] = 37442
48@ = 6
goto @SWEET1_431

:SWEET1_431
return 
goto @SWEET1_468
$spray_can_pickup = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 1000 {x} 2493.52 {y} -1700.83 {z} 14.27

:SWEET1_468
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'SWEET1'
clear_area 2527.8999 {y} -1667.7 {z} 14.1 {radius} 10.0 {clearParticles} True
load_cutscene 'SWEET1A'

:SWEET1_527
if 
  not has_cutscene_loaded 
goto_if_false @SWEET1_551
wait 0
goto @SWEET1_527

:SWEET1_551
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET1_560
if 
  not has_cutscene_finished 
goto_if_false @SWEET1_584
wait 0
goto @SWEET1_560

:SWEET1_584
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SWEET1_597
if 
  get_fading_status 
goto_if_false @SWEET1_621
wait 0
goto @SWEET1_597

:SWEET1_621
clear_cutscene 
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
35@ = 0
63@ = 0
71@ = 0
69@ = 0
61@ = 0
34@ = 0
57@ = 0
46@ = 0
58@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
36@ = 0
38@ = 0
39@ = 0
40@ = 0
$get_in_counter_swee1 = 0
88@ = 2038.7581
89@ = -1624.4189
90@ = 2074.5029
91@ = -1662.767
92@ = 2345.6799
93@ = -1515.79
94@ = 2423.7
95@ = -1393.28
84@ = 2401.6001
85@ = -1550.8
86@ = 2396.3301
87@ = -1555.12
96@ = 2100.9719
97@ = -1646.623
98@ = 2105.2639
99@ = -1656.712
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 10
load_special_character 1 {modelName} 'SWEET'
load_special_character 10 {modelName} 'SMOKE'
request_model 365
request_model 492
request_model 102
request_model 103
load_all_models_now 

:SWEET1_1170
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 10
goto_if_false @SWEET1_1200
wait 0
goto @SWEET1_1170

:SWEET1_1200
if or
  not has_model_loaded 365
  not has_model_loaded 492
  not has_model_loaded 102
  not has_model_loaded 103
goto_if_false @SWEET1_1240
wait 0
goto @SWEET1_1200

:SWEET1_1240
$sweet1_index = 0
$sweet1_audio_is_playing = 0
$sweet1_cutscene_flag = 0
$sweet1_chat_switch = 0
gosub @SWEET1_52
set_char_coordinates $scplayer {x} 2516.53 {y} -1671.37 {z} 12.88
set_char_heading $scplayer {heading} 61.28
give_weapon_to_char $scplayer {weaponType} WeaponType.SprayCan {ammo} 30000
set_current_char_weapon $scplayer {weaponType} WeaponType.SprayCan
$sweet = create_char PedType.Mission1 {modelId} 290 {x} 2518.0701 {y} -1668.8199 {z} 12.85
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_heading $sweet {heading} 103.76
72@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $sweet {handleOrTemplate} 72@
set_char_never_targetted $sweet {state} True
give_weapon_to_char $sweet {weaponType} WeaponType.SprayCan {ammo} 30000
set_current_char_weapon $sweet {weaponType} WeaponType.SprayCan
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 500
set_char_max_health $sweet {maxHealth} 500
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_get_out_upside_down_car $sweet {state} False
switch_car_generator $gen_car7 {amount} 0
clear_area 2518.0701 {y} -1668.8199 {z} 12.85 {radius} 10.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.1599 {y} -1666.47 {z} 13.0
set_can_burst_car_tyres $sweet_car {state} False
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_heading $sweet_car {heading} 16.0
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
set_radio_channel RadioChannel.BounceFM
$big_smoke = create_char PedType.Mission1 {modelId} 299 {x} 2520.1001 {y} -1669.58 {z} 13.1
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 173.99
task_go_straight_to_coord $big_smoke {x} 2518.509 {y} -1676.124 {z} 13.3855 {speed} MoveState.Walk {time} 10000
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
set_tag_status_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@ {percent} 0
set_tag_status_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@ {percent} 0
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
switch_widescreen True
set_player_control $player1 {state} False
clear_area 2518.0701 {y} -1668.8199 {z} 12.85 {radius} 40.0 {clearParticles} True
set_near_clip 0.2
set_fixed_camera_position 2512.01 {y} -1671.207 {z} 14.2722 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2512.938 {y} -1670.842 {z} 14.1948 {switchStyle} SwitchType.JumpCut
load_scene 2515.4199 {y} -1671.1899 {z} 14.46
task_go_straight_to_coord $sweet {x} 2513.812 {y} -1669.527 {z} 12.5348 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord $scplayer {x} 2512.6399 {y} -1671.0699 {z} 12.5 {speed} MoveState.Walk {time} 10000
do_fade 500 {direction} Fade.In

:SWEET1_1887
if 
  get_fading_status 
goto_if_false @SWEET1_1911
wait 0
goto @SWEET1_1887

:SWEET1_1911
36@ = 0
skip_cutscene_start_internal @SWEET1_2723

:SWEET1_1925
if 
  $sweet1_index <> 1
goto_if_false @SWEET1_2052
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_2045
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_2045
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2038
clear_look_at $scplayer
clear_look_at $sweet
task_look_at_char $scplayer {target} $sweet {time} 8000
task_look_at_char $sweet {target} $scplayer {time} 8000

:SWEET1_2038
$sweet1_cutscene_flag = 1

:SWEET1_2045
goto @SWEET1_1925

:SWEET1_2052
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2076
task_turn_char_to_face_char $scplayer {target} $sweet

:SWEET1_2076
clear_area 2512.26 {y} -1667.83 {z} 12.56 {radius} 30.0 {clearParticles} True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2523.417 {fromY} -1664.991 {fromZ} 15.1254 {toX} 2522.9609 {toY} -1667.46 {toZ} 15.2254 {time} 13000 {ease} True
camera_set_vector_track 2513.6951 {fromY} -1670.609 {fromZ} 13.8556 {toX} 2514.2971 {toY} -1669.343 {toZ} 13.9372 {time} 13000 {ease} True

:SWEET1_2184
if 
  $sweet1_index <> 2
goto_if_false @SWEET1_2279
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_2272
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_2272
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2265

:SWEET1_2265
$sweet1_cutscene_flag = 1

:SWEET1_2272
goto @SWEET1_2184

:SWEET1_2279
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2295

:SWEET1_2295
if 
  $sweet1_index <> 3
goto_if_false @SWEET1_2427
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_2420
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_2420
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2413
task_play_anim $sweet {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:SWEET1_2413
$sweet1_cutscene_flag = 1

:SWEET1_2420
goto @SWEET1_2295

:SWEET1_2427
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2443

:SWEET1_2443
if 
  $sweet1_index <> 4
goto_if_false @SWEET1_2538
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_2531
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_2531
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2524

:SWEET1_2524
$sweet1_cutscene_flag = 1

:SWEET1_2531
goto @SWEET1_2443

:SWEET1_2538
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2554

:SWEET1_2554
if 
  $sweet1_index <> 5
goto_if_false @SWEET1_2711
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_2704
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_2704
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2697
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_2697
set_next_desired_move_state MoveState.Walk
task_go_straight_to_coord $scplayer {x} 2510.271 {y} -1669.803 {z} 12.4092 {speed} MoveState.Walk {time} 10000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 20000 {seat} SeatId.BikeRear

:SWEET1_2697
$sweet1_cutscene_flag = 1

:SWEET1_2704
goto @SWEET1_2554

:SWEET1_2711
wait 1000
36@ = 1

:SWEET1_2723
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
delete_char $big_smoke
unload_special_character 10
62@ = add_blip_for_coord 2089.01 {y} -1649.08 {z} 12.8
remove_blip 62@
if 
  36@ == 0
goto_if_false @SWEET1_2933
set_char_coordinates $scplayer {x} 2511.6799 {y} -1670.33 {z} 12.46
set_char_heading $scplayer {heading} 62.36
clear_look_at $scplayer
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_2933
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_2933
clear_area 2510.05 {y} -1666.61 {z} 12.57 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2510.05 {y} -1666.61 {z} 12.57
set_char_heading $sweet {heading} 53.89
clear_look_at $sweet
clear_char_tasks_immediately $sweet
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 20000 {seat} SeatId.BikeRear

:SWEET1_2933
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_3003
clear_area 2510.05 {y} -1666.61 {z} 12.57 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2510.05 {y} -1666.61 {z} 12.57
set_char_heading $sweet {heading} 53.89

:SWEET1_3003
clear_char_tasks $scplayer
camera_reset_new_scriptables 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
print_now 'SWE1_A' {time} 7000 {flag} 1
45@ = 0
$blob_flag = 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_3094
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_3094
if or
  not locate_car_3d $sweet_car {x} 2089.01 {y} -1649.08 {z} 12.54 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET1_3618
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SWEET1_3182
goto @SWEET1_14682

:SWEET1_3182
if 
  is_char_dead $sweet
goto_if_false @SWEET1_3221
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_3221
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_3262
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_3262
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_3308
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575
goto @SWEET1_3492

:SWEET1_3308
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_3412
if 
  34@ == 0
goto_if_false @SWEET1_3405
remove_blip 56@
remove_blip 62@
62@ = add_blip_for_coord 2089.01 {y} -1649.08 {z} 12.8
print_now 'HOOD3_A' {time} 5000 {flag} 1
$blob_flag = 1
34@ = 1

:SWEET1_3405
goto @SWEET1_3492

:SWEET1_3412
if 
  34@ == 1
goto_if_false @SWEET1_3492
remove_blip 56@
remove_blip 62@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
gosub @SWEET1_15166
print_now 'SWE1_S' {time} 5000 {flag} 1
$blob_flag = 0
34@ = 0

:SWEET1_3492
if 
  is_char_dead $sweet
goto_if_false @SWEET1_3531
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_3531
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_3572
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_3572
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_3611
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_3611
goto @SWEET1_3094

:SWEET1_3618
set_player_control $player1 {state} False
set_fixed_camera_position 2082.533 {y} -1650.244 {z} 14.8007 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2083.5149 {y} -1650.202 {z} 14.6181 {switchStyle} SwitchType.JumpCut
request_animation "GRAFFITI"
78@, 79@, 80@ = get_nearest_tag_position 2100.8401 {yCoord} -1648.71 {zCoord} 12.42
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_3787
66@ = open_sequence_task 
task_leave_car -1 {vehicle} $sweet_car
task_go_straight_to_coord -1 {x} 2100.48 {y} -1649.14 {z} 12.47 {speed} MoveState.Walk {time} 20000
task_shoot_at_coord -1 {x} 78@ {y} 79@ {z} 80@ {time} 15000
close_sequence_task 66@

:SWEET1_3787
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
set_char_accuracy $sweet {accuracy} 90
set_char_shoot_rate $sweet {rate} 100
69@ = 0
switch_widescreen True
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_3901
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_3901
task_leave_car $sweet {vehicle} $sweet_car

:SWEET1_3901
wait 600
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_3930
task_leave_car $scplayer {vehicle} $sweet_car

:SWEET1_3930
wait 500
do_fade 1000 {direction} Fade.Out

:SWEET1_3942
if 
  get_fading_status 
goto_if_false @SWEET1_3966
wait 0
goto @SWEET1_3942

:SWEET1_3966
if 
  not has_animation_loaded "GRAFFITI"
goto_if_false @SWEET1_4000
wait 0
goto @SWEET1_3966

:SWEET1_4000
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37444
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37416
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET1_4061
warp_char_from_car_to_coord $scplayer {x} 2094.7 {y} -1652.05 {z} 12.65
goto @SWEET1_4081

:SWEET1_4061
set_char_coordinates $scplayer {x} 2094.7 {y} -1652.05 {z} 12.65

:SWEET1_4081
set_char_heading $scplayer {heading} 302.0
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} 2099.1201 {y} -1651.26 {z} 12.63 {speed} MoveState.Walk {time} 20000
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4228
if 
  is_char_in_any_car $sweet
goto_if_false @SWEET1_4180
warp_char_from_car_to_coord $sweet {x} 2095.8 {y} -1649.86 {z} 12.7
goto @SWEET1_4200

:SWEET1_4180
set_char_coordinates $sweet {x} 2095.8 {y} -1649.86 {z} 12.7

:SWEET1_4200
set_char_heading $sweet {heading} 277.0
clear_char_tasks $sweet
perform_sequence_task $sweet {sequence} 66@
clear_sequence_task 66@

:SWEET1_4228
set_fixed_camera_position 2095.531 {y} -1659.485 {z} 13.3156 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2095.7419 {y} -1658.519 {z} 13.4672 {switchStyle} SwitchType.JumpCut
clear_area 2094.2 {y} -1652.05 {z} 12.65 {radius} 10.0 {clearParticles} True
wait 500
do_fade 500 {direction} Fade.In
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4347
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 4500

:SWEET1_4347
36@ = 0
skip_cutscene_start_internal @SWEET1_5959
wait 2000
set_fixed_camera_position 2102.1101 {y} -1647.672 {z} 13.1493 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2101.3689 {y} -1648.3149 {z} 13.3438 {switchStyle} SwitchType.JumpCut

:SWEET1_4417
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_4521
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_4475
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_4475
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_4514
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_4514
goto @SWEET1_4417

:SWEET1_4521
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_AR' {time} 10000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4565
start_char_facial_talk $sweet {duration} 3000

:SWEET1_4565
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_4669
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_4623
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_4623
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_4662
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_4662
goto @SWEET1_4565

:SWEET1_4669
clear_prints 
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4692
stop_char_facial_talk $sweet

:SWEET1_4692
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_4716
64@ = get_sequence_progress $sweet

:SWEET1_4716
if 
  64@ <> 2
goto_if_false @SWEET1_4872
wait 0
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_4779
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_4779
if 
  is_char_dead $sweet
goto_if_false @SWEET1_4818
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_4818
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_4857
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_4857
64@ = get_sequence_progress $sweet
goto @SWEET1_4716

:SWEET1_4872
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2097.269 {fromY} -1648.215 {fromZ} 14.4973 {toX} 2098.3191 {toY} -1650.517 {toZ} 14.3662 {time} 10000 {ease} True
camera_set_vector_track 2101.626 {fromY} -1649.577 {fromZ} 13.7631 {toX} 2101.8899 {toY} -1647.925 {toZ} 13.7316 {time} 10000 {ease} True
print_help_forever 'SWE1_D'
58@ = 1
TIMERA = 0

:SWEET1_4981
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_5226
wait 0
$tag_percentage = get_percentage_tagged_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5059
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5059
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5098
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5098
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_5139
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5139
if 
  58@ == 1
goto_if_false @SWEET1_5219
if 
  TIMERA > 5000
goto_if_false @SWEET1_5208
print_help 'SWE1_F'
TIMERA = 0
58@ = 2
goto @SWEET1_5219

:SWEET1_5208
print_help_forever 'SWE1_D'

:SWEET1_5219
goto @SWEET1_4981

:SWEET1_5226
wait 1000
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5315
set_char_heading $sweet {heading} 280.0
task_play_anim $sweet {animationName} "GRAFFITI_CHKOUT" {animationFile} "GRAFFITI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
77@ = get_script_task_status $sweet {taskId} 1541

:SWEET1_5315
if 
  not is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @SWEET1_5554
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5376
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5376
77@ = get_script_task_status $sweet {taskId} 1541
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5426
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5426
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_5467
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5467
if 
  58@ == 1
goto_if_false @SWEET1_5547
if 
  TIMERA > 5000
goto_if_false @SWEET1_5536
print_help 'SWE1_F'
TIMERA = 0
58@ = 2
goto @SWEET1_5547

:SWEET1_5536
print_help_forever 'SWE1_D'

:SWEET1_5547
goto @SWEET1_5315

:SWEET1_5554
camera_reset_new_scriptables 
clear_help 
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5599
task_go_straight_to_coord $sweet {x} 2099.1001 {y} -1650.02 {z} 12.57 {speed} MoveState.Walk {time} 20000

:SWEET1_5599
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5647
clear_look_at $sweet
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 4500
task_look_at_char $sweet {target} $scplayer {time} 4500

:SWEET1_5647
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_5751
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5705
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5705
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5744
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5744
goto @SWEET1_5647

:SWEET1_5751
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_CA' {time} 10000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5795
start_char_facial_talk $sweet {duration} 3000

:SWEET1_5795
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_5899
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_5853
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5853
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_5892
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_5892
goto @SWEET1_5795

:SWEET1_5899
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_5920
stop_char_facial_talk $sweet

:SWEET1_5920
clear_prints 
task_go_straight_to_coord $scplayer {x} 2097.5601 {y} -1651.36 {z} 12.71 {speed} MoveState.Walk {time} 20000
wait 500
36@ = 1

:SWEET1_5959
skip_cutscene_end 
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37445
camera_reset_new_scriptables 
if 
  36@ == 0
goto_if_false @SWEET1_6174
do_fade 500 {direction} Fade.Out

:SWEET1_6007
if 
  get_fading_status 
goto_if_false @SWEET1_6031
wait 0
goto @SWEET1_6007

:SWEET1_6031
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 1
set_char_coordinates $scplayer {x} 2097.5601 {y} -1651.36 {z} 12.71
set_char_heading $scplayer {heading} 99.0
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_6128
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 2099.1001 {y} -1650.02 {z} 12.57
set_char_heading $sweet {heading} 99.0

:SWEET1_6128
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
do_fade 700 {direction} Fade.In

:SWEET1_6150
if 
  get_fading_status 
goto_if_false @SWEET1_6174
wait 0
goto @SWEET1_6150

:SWEET1_6174
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_6219
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_6219
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 15000 {seat} SeatId.BikeRear

:SWEET1_6219
remove_blip 56@
remove_blip 62@
clear_look_at $scplayer
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
remove_blip 62@
42@ = add_blip_for_coord 2068.3101 {y} -1654.0 {z} 14.3
change_blip_colour 42@ {color} BlipColor.Green
43@ = add_blip_for_coord 2047.3101 {y} -1634.65 {z} 13.8
change_blip_colour 43@ {color} BlipColor.Green
remove_animation "GRAFFITI"
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_6343
lock_car_doors $sweet_car {lockStatus} CarLock.LockoutPlayerOnly

:SWEET1_6343
69@ = 1
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
65@ = 0

:SWEET1_6390
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_6963
wait 0
if 
  65@ == 0
goto_if_false @SWEET1_6479
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_6472
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_CB' {time} 2500 {flag} 1
65@ = 1

:SWEET1_6472
goto @SWEET1_6535

:SWEET1_6479
if 
  65@ == 1
goto_if_false @SWEET1_6535
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_6535
print_now 'SWE1_X' {time} 6000 {flag} 1
65@ = 2

:SWEET1_6535
$tag_percentage = get_percentage_tagged_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@
59@ = get_percentage_tagged_in_area 2068.876 {leftBottomY} -1654.589 {rightTopX} 2063.5439 {rightTopY} -1650.0129
60@ = get_percentage_tagged_in_area 2044.8361 {leftBottomY} -1633.986 {rightTopX} 2047.145 {rightTopY} -1638.957
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_6641
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_6641
if 
  is_char_dead $sweet
goto_if_false @SWEET1_6680
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_6680
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_6721
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_6721
if or
  locate_char_on_foot_2d $scplayer {x} 2043.6801 {y} -1635.73 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
  locate_char_on_foot_2d $scplayer {x} 2067.99 {y} -1652.61 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @SWEET1_6910
if 
  58@ == 0
goto_if_false @SWEET1_6848
if 
  TIMERA > 1000
goto_if_false @SWEET1_6848
print_help 'SWE1_D'
TIMERA = 0
58@ = 1

:SWEET1_6848
if 
  58@ == 1
goto_if_false @SWEET1_6910
if 
  TIMERA > 5000
goto_if_false @SWEET1_6910
print_help 'SWE1_F'
TIMERA = 0
58@ = 2

:SWEET1_6910
if 
  59@ == 100
goto_if_false @SWEET1_6933
remove_blip 42@

:SWEET1_6933
if 
  60@ == 100
goto_if_false @SWEET1_6956
remove_blip 43@

:SWEET1_6956
goto @SWEET1_6390

:SWEET1_6963
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_7011
remove_blip 42@
remove_blip 43@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
lock_car_doors $sweet_car {lockStatus} CarLock.Unlocked

:SWEET1_7011
print_now 'SWE1_S' {time} 6000 {flag} 1
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7066
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7066
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37417

:SWEET1_7075
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_7265
wait 0
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7139
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7139
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7178
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7178
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7217
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7217
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7258
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7258
goto @SWEET1_7075

:SWEET1_7265
45@ = 0
58@ = 0
TIMERA = 0
$blob_flag = 1
remove_blip 56@
41@ = add_blip_for_coord 2338.74 {y} -1500.3101 {z} 22.83

:SWEET1_7318
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_7463
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7376
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7376
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7415
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7415
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7456
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7456
goto @SWEET1_7318

:SWEET1_7463
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_AS' {time} 3000 {flag} 1

:SWEET1_7483
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_7628
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7541
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7541
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7580
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7580
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7621
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7621
goto @SWEET1_7483

:SWEET1_7628
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7667
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7667
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7706
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7706
TIMERA = 0

:SWEET1_7713
if or
  not locate_car_3d $sweet_car {x} 2338.74 {y} -1500.3101 {z} 22.83 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET1_8342
wait 0
if 
  39@ == 0
goto_if_false @SWEET1_7834
if 
  TIMERA > 10000
goto_if_false @SWEET1_7834
print_help 'SWE1_Z1'
39@ = 1

:SWEET1_7834
if 
  is_char_dead $sweet
goto_if_false @SWEET1_7873
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7873
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_7914
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_7914
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_7960
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575
goto @SWEET1_8156

:SWEET1_7960
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_8064
if 
  34@ == 0
goto_if_false @SWEET1_8057
remove_blip 41@
remove_blip 56@
41@ = add_blip_for_coord 2338.74 {y} -1500.3101 {z} 22.83
print_now 'HOOD3_B' {time} 5000 {flag} 1
34@ = 1
$blob_flag = 1

:SWEET1_8057
goto @SWEET1_8156

:SWEET1_8064
if 
  34@ == 1
goto_if_false @SWEET1_8156
remove_blip 56@
remove_blip 41@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
gosub @SWEET1_15166
print_now 'SWE1_S' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
34@ = 0

:SWEET1_8156
if 
  58@ == 0
goto_if_false @SWEET1_8216
if 
  TIMERA > 3000
goto_if_false @SWEET1_8216
print_now 'HOOD3_B' {time} 5000 {flag} 1
58@ = 1

:SWEET1_8216
if 
  is_char_dead $sweet
goto_if_false @SWEET1_8255
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_8255
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_8296
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_8296
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_8335
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_8335
goto @SWEET1_7713

:SWEET1_8342
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37420
remove_blip 56@
remove_blip 41@
43@ = add_blip_for_coord 2396.21 {y} -1469.8 {z} 24.9
change_blip_colour 43@ {color} BlipColor.Green
44@ = add_blip_for_coord 2353.22 {y} -1506.54 {z} 24.7
change_blip_colour 44@ {color} BlipColor.Green
switch_widescreen True
set_fixed_camera_position 2329.675 {y} -1499.911 {z} 25.8505 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2330.6531 {y} -1499.926 {z} 25.644 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
wait 100
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_8524
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_8524
task_leave_car $scplayer {vehicle} $sweet_car

:SWEET1_8524
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_8628
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_8582
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_8582
if 
  is_char_dead $sweet
goto_if_false @SWEET1_8621
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_8621
goto @SWEET1_8524

:SWEET1_8628
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_AV' {time} 10000 {flag} 1

:SWEET1_8648
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_8752
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_8706
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_8706
if 
  is_char_dead $sweet
goto_if_false @SWEET1_8745
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_8745
goto @SWEET1_8648

:SWEET1_8752
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_8814
wait 0
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_8807
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_8807

:SWEET1_8807
goto @SWEET1_8752

:SWEET1_8814
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_8868
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_8868
lock_car_doors $sweet_car {lockStatus} CarLock.LockoutPlayerOnly
task_car_drive_wander $sweet {vehicle} $sweet_car {speed} 20.0 {drivingMode} DrivingMode.AvoidCars

:SWEET1_8868
58@ = 0
39@ = 0
TIMERA = 0
set_tag_status_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@
wait 1000
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 

:SWEET1_8942
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_10388
wait 0
if 
  58@ == 0
goto_if_false @SWEET1_9042
if 
  TIMERA > 2500
goto_if_false @SWEET1_9042
print_now 'SWE1_M' {time} 6000 {flag} 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37423
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37427
58@ = 1

:SWEET1_9042
$tag_percentage = get_percentage_tagged_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@
59@ = get_percentage_tagged_in_area 2396.21 {leftBottomY} -1469.8 {rightTopX} 2387.95 {rightTopY} -1463.55
60@ = get_percentage_tagged_in_area 2353.22 {leftBottomY} -1506.54 {rightTopX} 2354.8799 {rightTopY} -1511.58
if 
  61@ == 0
goto_if_false @SWEET1_9343
if 
  locate_char_any_means_2d $scplayer {x} 2395.6101 {y} -1470.52 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SWEET1_9336
54@ = create_char PedType.Mission1 {modelId} 102 {x} 2400.45 {y} -1470.39 {z} 22.97
set_char_heading 54@ {heading} 82.4
55@ = create_char PedType.Mission1 {modelId} 103 {x} 2396.48 {y} -1469.9 {z} 22.99
set_char_heading 55@ {heading} 262.64
task_chat_with_char 55@ {other} 54@ {leadSpeaker} False {_p4} 1
task_chat_with_char 54@ {other} 55@ {leadSpeaker} True {_p4} 1
47@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 0.5 {heading} 90.0
set_sequence_to_repeat 47@ {state} True
close_sequence_task 47@
37@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 0.5 {heading} 270.0
set_sequence_to_repeat 37@ {state} True
close_sequence_task 37@
61@ = 1

:SWEET1_9336
goto @SWEET1_10009

:SWEET1_9343
if 
  46@ == 0
goto_if_false @SWEET1_9543
if 
  locate_char_any_means_2d $scplayer {x} 2395.6101 {y} -1470.52 {xRadius} 20.0 {yRadius} 17.0 {drawSphere} False
goto_if_false @SWEET1_9543
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9536
if 
  not is_char_dead 55@
goto_if_false @SWEET1_9536
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 2400.384 {y} -1472.208 {z} 23.9349 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2399.49 {y} -1471.7629 {z} 23.988 {switchStyle} SwitchType.JumpCut
print_help 'SWE1_H'
wait 500
skip_cutscene_start_internal @SWEET1_9521
wait 6500

:SWEET1_9521
skip_cutscene_end 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 

:SWEET1_9536
46@ = 1

:SWEET1_9543
if 
  46@ == 1
goto_if_false @SWEET1_9789
if 
  39@ == 0
goto_if_false @SWEET1_9616
if 
  TIMERA > 2000
goto_if_false @SWEET1_9616
print_help 'SWE1_I'
39@ = 1

:SWEET1_9616
if 
  locate_char_any_means_2d $scplayer {x} 2395.6101 {y} -1470.52 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @SWEET1_9789
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9697
shut_char_up_for_scripted_speech 54@ {state} True
task_stand_still 54@ {time} 0
perform_sequence_task 54@ {sequence} 47@
clear_sequence_task 47@

:SWEET1_9697
if 
  not is_char_dead 55@
goto_if_false @SWEET1_9782
shut_char_up_for_scripted_speech 55@ {state} True
task_stand_still 55@ {time} 0
perform_sequence_task 55@ {sequence} 37@
clear_sequence_task 37@
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_9775
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_BA' {time} 2000 {flag} 1

:SWEET1_9775
TIMERA = 0

:SWEET1_9782
46@ = 2

:SWEET1_9789
if 
  46@ == 2
goto_if_false @SWEET1_9923
if or
  59@ == 100
  TIMERA > 5000
goto_if_false @SWEET1_9923
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9857
task_kill_char_on_foot 54@ {target} $scplayer

:SWEET1_9857
if 
  not is_char_dead 55@
goto_if_false @SWEET1_9916
task_kill_char_on_foot 55@ {target} $scplayer
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_9916
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_BE' {time} 2000 {flag} 1

:SWEET1_9916
46@ = 3

:SWEET1_9923
if 
  46@ == 3
goto_if_false @SWEET1_10009
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_10009
if 
  not is_char_dead 54@
goto_if_false @SWEET1_9979
shut_char_up_for_scripted_speech 54@ {state} False

:SWEET1_9979
if 
  not is_char_dead 55@
goto_if_false @SWEET1_10002
shut_char_up_for_scripted_speech 55@ {state} False

:SWEET1_10002
46@ = 4

:SWEET1_10009
if 
  59@ == 100
goto_if_false @SWEET1_10032
remove_blip 43@

:SWEET1_10032
if 
  60@ == 100
goto_if_false @SWEET1_10055
remove_blip 44@

:SWEET1_10055
if and
  locate_char_on_foot_2d $scplayer {x} 2353.3 {y} -1508.1801 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  35@ == 0
goto_if_false @SWEET1_10125
print_help 'SWE1_G'
TIMERA = 0
35@ = 1

:SWEET1_10125
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_10164
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_10164
if 
  is_char_dead $sweet
goto_if_false @SWEET1_10203
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_10203
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_10244
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_10244
if 
  38@ == 0
goto_if_false @SWEET1_10381
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_10381
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_10381
if and
  not locate_char_any_means_car_3d $scplayer {vehicle} $sweet_car {xRadius} 30.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
  not is_car_on_screen $sweet_car
goto_if_false @SWEET1_10381
clear_char_tasks $sweet
set_car_coordinates $sweet_car {x} 2487.1721 {y} -1666.301 {z} -100.3438
freeze_car_position_and_dont_load_collision $sweet_car {state} True
freeze_char_position_and_dont_load_collision $sweet {state} True
38@ = 1

:SWEET1_10381
goto @SWEET1_8942

:SWEET1_10388
remove_blip 43@
remove_blip 44@
remove_blip 41@
41@ = add_blip_for_coord 2374.0 {y} -1534.1 {z} 23.0
print_now 'SWE1_Z' {time} 5000 {flag} 1
set_tag_status_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@ {percent} 0
$tag_percentage = get_percentage_tagged_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@
request_car_recording 207

:SWEET1_10477
if 
  $tag_percentage <> 100
goto_if_false @SWEET1_11272
wait 0
if 
  58@ == 0
goto_if_false @SWEET1_10559
if 
  TIMERA > 2500
goto_if_false @SWEET1_10559
print_now 'SWE1_M' {time} 6000 {flag} 1
58@ = 1

:SWEET1_10559
$tag_percentage = get_percentage_tagged_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@
if 
  $tag_percentage == 100
goto_if_false @SWEET1_10599
remove_blip 42@

:SWEET1_10599
if 
  49@ == 0
goto_if_false @SWEET1_10720
if 
  locate_char_on_foot_3d $scplayer {x} 2374.0 {y} -1534.1 {z} 23.0 {xRadius} 1.4 {yRadius} 1.4 {zRadius} 2.0 {drawSphere} True
goto_if_false @SWEET1_10720
print_help 'JUMPH1'
remove_blip 41@
remove_blip 42@
42@ = add_blip_for_coord 2395.4299 {y} -1551.6899 {z} 26.98
change_blip_colour 42@ {color} BlipColor.Green
49@ = 1

:SWEET1_10720
if and
  locate_char_on_foot_2d $scplayer {x} 2352.3 {y} -1552.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  49@ == 0
goto_if_false @SWEET1_10783
print_help 'JUMPH1'
49@ = 1

:SWEET1_10783
if and
  locate_char_on_foot_2d $scplayer {x} 2420.7 {y} -1572.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  49@ == 0
goto_if_false @SWEET1_10846
print_help 'JUMPH1'
49@ = 1

:SWEET1_10846
if and
  locate_char_on_foot_2d $scplayer {x} 2373.5 {y} -1547.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  50@ == 0
goto_if_false @SWEET1_10909
print_help 'RADAR5'
50@ = 1

:SWEET1_10909
if and
  locate_char_on_foot_2d $scplayer {x} 2378.7549 {y} -1555.89 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
  53@ == 0
goto_if_false @SWEET1_11009
print_help 'JUMPH2'
remove_blip 41@
remove_blip 42@
42@ = add_blip_for_coord 2395.4299 {y} -1551.6899 {z} 26.98
change_blip_colour 42@ {color} BlipColor.Green
53@ = 1

:SWEET1_11009
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_11050
print_now 'SWE1SPF' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_11050
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_11089
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_11089
if 
  is_char_dead $sweet
goto_if_false @SWEET1_11128
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_11128
if 
  38@ == 0
goto_if_false @SWEET1_11265
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11265
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11265
if or
  not locate_char_any_means_car_3d $scplayer {vehicle} $sweet_car {xRadius} 100.0 {yRadius} 100.0 {zRadius} 10.0 {drawSphere} False
  not is_car_on_screen $sweet_car
goto_if_false @SWEET1_11265
clear_char_tasks $sweet
set_car_coordinates $sweet_car {x} 2487.1721 {y} -1666.301 {z} -100.3438
freeze_car_position_and_dont_load_collision $sweet_car {state} True
freeze_char_position_and_dont_load_collision $sweet {state} True
38@ = 1

:SWEET1_11265
goto @SWEET1_10477

:SWEET1_11272
remove_blip 42@
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11439
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11439
if 
  38@ == 1
goto_if_false @SWEET1_11341
freeze_car_position_and_dont_load_collision $sweet_car {state} False
freeze_char_position_and_dont_load_collision $sweet {state} False

:SWEET1_11341
set_car_coordinates $sweet_car {x} 2337.8601 {y} -1467.21 {z} 22.82
set_car_heading $sweet_car {heading} 180.0
wait 100
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11439
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11439
clear_char_tasks_immediately $sweet
task_warp_char_into_car_as_driver $sweet {vehicle} $sweet_car
set_char_can_be_shot_in_vehicle $sweet {state} False
remove_blip 41@
lock_car_doors $sweet_car {lockStatus} CarLock.Unlocked

:SWEET1_11439
if 
  not has_car_recording_been_loaded 207
goto_if_false @SWEET1_11549
wait 0
request_car_recording 207
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_11503
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_11503
if 
  is_char_dead $sweet
goto_if_false @SWEET1_11542
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_11542
goto @SWEET1_11439

:SWEET1_11549
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11654
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11654
if 
  has_car_recording_been_loaded 207
goto_if_false @SWEET1_11654
clear_char_tasks_immediately $sweet
wait 0
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11646
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_11646
task_warp_char_into_car_as_driver $sweet {vehicle} $sweet_car

:SWEET1_11646
start_playback_recorded_car $sweet_car {path} 207

:SWEET1_11654
wait 2000
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_11695
remove_blip 56@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True

:SWEET1_11695
set_player_control $player1 {state} False
clear_help 
clear_area 2378.323 {y} -1526.153 {z} 23.869 {radius} 50.0 {clearParticles} True
do_fade 300 {direction} Fade.Out

:SWEET1_11735
if 
  get_fading_status 
goto_if_false @SWEET1_11759
wait 0
goto @SWEET1_11735

:SWEET1_11759
load_scene_in_direction 2385.4441 {y} -1529.335 {z} 24.0351 {heading} 82.7482
switch_widescreen True
set_fixed_camera_position 2386.4441 {y} -1529.313 {z} 24.0696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2385.4441 {y} -1529.335 {z} 24.0351 {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In
TIMERA = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37430

:SWEET1_11859
if 
  TIMERA <= 3500
goto_if_false @SWEET1_11967
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_11921
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_11921
if 
  is_char_dead $sweet
goto_if_false @SWEET1_11960
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_11960
goto @SWEET1_11859

:SWEET1_11967
set_fixed_camera_position 2386.4441 {y} -1529.313 {z} 24.0696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2385.4441 {y} -1529.335 {z} 24.0351 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12042
report_mission_audio_event_at_car $sweet_car {soundId} ScriptSound.SoundSweetsHorn

:SWEET1_12042
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_12146
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12100
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_12100
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12139
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_12139
goto @SWEET1_12042

:SWEET1_12146
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12170
report_mission_audio_event_at_car $sweet_car {soundId} ScriptSound.SoundSweetsHorn

:SWEET1_12170
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_BH' {time} 10000 {flag} 1

:SWEET1_12190
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_12294
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12248
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_12248
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12287
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_12287
goto @SWEET1_12190

:SWEET1_12294
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12341
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_12341
clear_char_tasks_immediately $sweet
warp_char_into_car_as_passenger $sweet {handle} $sweet_car {seat} SeatId.BikeRear

:SWEET1_12341
camera_reset_new_scriptables 
if 
  not is_char_dead 54@
goto_if_false @SWEET1_12369
clear_char_tasks 54@
task_wander_standard 54@

:SWEET1_12369
if 
  not is_char_dead 55@
goto_if_false @SWEET1_12395
clear_char_tasks 55@
task_wander_standard 55@

:SWEET1_12395
$blob_flag = 0
34@ = 0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
print_now 'SWE1_S' {time} 6000 {flag} 1
remove_blip 56@
remove_blip 41@
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_12479
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True

:SWEET1_12479
load_mission_audio MissionAudioSlot.Slot1 {audioId} 38607

:SWEET1_12488
if or
  not locate_car_3d $sweet_car {x} 2504.7351 {y} -1672.45 {z} 12.3848 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET1_13006
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12593
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_12593
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12639
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575
goto @SWEET1_12921

:SWEET1_12639
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET1_12829
if 
  40@ == 0
goto_if_false @SWEET1_12725
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_12725
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWEX_AH' {time} 3000 {flag} 1
TIMERA = 0
40@ = 1

:SWEET1_12725
if 
  34@ == 0
goto_if_false @SWEET1_12822
remove_blip 41@
remove_blip 56@
41@ = add_blip_for_coord 2504.7351 {y} -1672.45 {z} 12.3848
if 
  TIMERA > 3000
goto_if_false @SWEET1_12815
print_now 'SWE1_B' {time} 6000 {flag} 1
34@ = 1

:SWEET1_12815
$blob_flag = 1

:SWEET1_12822
goto @SWEET1_12921

:SWEET1_12829
if 
  34@ == 1
goto_if_false @SWEET1_12921
remove_blip 56@
remove_blip 41@
56@ = add_blip_for_car $sweet_car
set_blip_as_friendly 56@ {state} True
gosub @SWEET1_15166
print_now 'SWE1_S' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
34@ = 0

:SWEET1_12921
if 
  is_char_dead $sweet
goto_if_false @SWEET1_12960
print_now 'SWE1_P' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_12960
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_12999
print_now 'SWE1_Q' {time} 10000 {flag} 1
goto @SWEET1_14575

:SWEET1_12999
goto @SWEET1_12488

:SWEET1_13006
switch_widescreen True
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:SWEET1_13024
if 
  get_fading_status 
goto_if_false @SWEET1_13048
wait 0
goto @SWEET1_13024

:SWEET1_13048
request_animation "GANGS"

:SWEET1_13057
if 
  not has_animation_loaded "GANGS"
goto_if_false @SWEET1_13088
wait 0
goto @SWEET1_13057

:SWEET1_13088
set_near_clip 0.2
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13118
hide_char_weapon_for_scripted_cutscene $sweet {state} True

:SWEET1_13118
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
remove_weapon_from_char $scplayer {weaponType} WeaponType.SprayCan
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13165
stop_char_facial_talk $sweet
stop_char_facial_talk $scplayer

:SWEET1_13165
$sweet1_index = 0
$sweet1_audio_is_playing = 0
$sweet1_cutscene_flag = 0
$sweet1_chat_switch = 1
gosub @SWEET1_52
set_fixed_camera_position 2509.95 {y} -1672.095 {z} 13.7315 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.8911 {y} -1672.4189 {z} 13.8204 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2510.1531 {fromY} -1673.551 {fromZ} 14.2267 {toX} 2509.9971 {toY} -1671.866 {toZ} 13.9831 {time} 18000 {ease} True
camera_set_vector_track 2510.967 {fromY} -1672.995 {fromZ} 14.0633 {toX} 2510.885 {toY} -1672.317 {toZ} 13.896 {time} 18000 {ease} True
mark_car_as_no_longer_needed $sweet_car
clear_area 2511.3521 {y} -1672.14 {z} 12.4588 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1_13412
set_char_coordinates $scplayer {x} 2511.3521 {y} -1672.14 {z} 12.4588
goto @SWEET1_13432

:SWEET1_13412
warp_char_from_car_to_coord $scplayer {x} 2511.3521 {y} -1672.14 {z} 12.4588

:SWEET1_13432
set_char_heading $scplayer {heading} 180.0
clear_area 2511.3521 {y} -1673.14 {z} 12.4588 {radius} 1.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13560
clear_char_tasks_immediately $sweet
if 
  not is_char_in_any_car $sweet
goto_if_false @SWEET1_13530
set_char_coordinates $sweet {x} 2511.3521 {y} -1673.14 {z} 12.4588
goto @SWEET1_13550

:SWEET1_13530
warp_char_from_car_to_coord $sweet {x} 2511.3521 {y} -1673.14 {z} 12.4588

:SWEET1_13550
set_char_heading $sweet {heading} 0.0

:SWEET1_13560
do_fade 1000 {direction} Fade.In
wait 700
100@ = 0.0
$sweet1_cutscene_flag = 0

:SWEET1_13589
if 
  $sweet1_index <> 1
goto_if_false @SWEET1_13700
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_13693
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_13693
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13686
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 20000

:SWEET1_13686
$sweet1_cutscene_flag = 1

:SWEET1_13693
goto @SWEET1_13589

:SWEET1_13700
$sweet1_cutscene_flag = 0

:SWEET1_13707
if 
  $sweet1_index <> 2
goto_if_false @SWEET1_13802
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_13795
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_13795
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13788

:SWEET1_13788
$sweet1_cutscene_flag = 1

:SWEET1_13795
goto @SWEET1_13707

:SWEET1_13802
$sweet1_cutscene_flag = 0

:SWEET1_13809
if 
  $sweet1_index <> 3
goto_if_false @SWEET1_13904
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_13897
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_13897
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_13890

:SWEET1_13890
$sweet1_cutscene_flag = 1

:SWEET1_13897
goto @SWEET1_13809

:SWEET1_13904
$sweet1_cutscene_flag = 0

:SWEET1_13911
if 
  $sweet1_index <> 4
goto_if_false @SWEET1_14043
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_14036
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_14036
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14029
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000

:SWEET1_14029
$sweet1_cutscene_flag = 1

:SWEET1_14036
goto @SWEET1_13911

:SWEET1_14043
$sweet1_cutscene_flag = 0

:SWEET1_14050
if 
  $sweet1_index <> 5
goto_if_false @SWEET1_14145
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_14138
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_14138
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14131

:SWEET1_14131
$sweet1_cutscene_flag = 1

:SWEET1_14138
goto @SWEET1_14050

:SWEET1_14145
$sweet1_cutscene_flag = 0

:SWEET1_14152
if 
  $sweet1_index <> 6
goto_if_false @SWEET1_14337
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_14330
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_14330
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14323
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14323
task_play_anim $sweet {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1_14323
$sweet1_cutscene_flag = 1

:SWEET1_14330
goto @SWEET1_14152

:SWEET1_14337
77@ = get_script_task_status $scplayer {taskId} 1541

:SWEET1_14348
if 
  not is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @SWEET1_14388
wait 0
77@ = get_script_task_status $scplayer {taskId} 1541
goto @SWEET1_14348

:SWEET1_14388
$sweet1_cutscene_flag = 0

:SWEET1_14395
if 
  $sweet1_index <> 7
goto_if_false @SWEET1_14531
wait 0
gosub @SWEET1_15632
if 
  $sweet1_cutscene_flag == 0
goto_if_false @SWEET1_14524
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_14524
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_14517
clear_look_at $scplayer
task_look_at_char $scplayer {target} $sweet {time} 2000
task_go_straight_to_coord $sweet {x} 2517.397 {y} -1677.3521 {z} 13.2548 {speed} MoveState.Walk {time} 20000

:SWEET1_14517
$sweet1_cutscene_flag = 1

:SWEET1_14524
goto @SWEET1_14395

:SWEET1_14531
wait 1500
clear_look_at $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
camera_reset_new_scriptables 
delete_char $sweet
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
goto @SWEET1_14682

:SWEET1_14575
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_tag_status_in_area 88@ {leftBottomY} 89@ {rightTopX} 90@ {rightTopY} 91@ {percent} 0
set_tag_status_in_area 92@ {leftBottomY} 93@ {rightTopX} 94@ {rightTopY} 95@ {percent} 0
set_tag_status_in_area 84@ {leftBottomY} 85@ {rightTopX} 86@ {rightTopY} 87@ {percent} 0
set_tag_status_in_area 96@ {leftBottomY} 97@ {rightTopX} 98@ {rightTopY} 99@ {percent} 0
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_14680
remove_weapon_from_char $scplayer {weaponType} WeaponType.SprayCan

:SWEET1_14680
return 

:SWEET1_14682
$flag_sweet_mission_counter += 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_14731
remove_weapon_from_char $scplayer {weaponType} WeaponType.SprayCan
give_weapon_to_char $scplayer {weaponType} WeaponType.SprayCan {ammo} 1000
goto @SWEET1_14741

:SWEET1_14731
give_weapon_to_char $scplayer {weaponType} WeaponType.SprayCan {ammo} 1000

:SWEET1_14741
$bball_unlocked = 1
remove_pickup $spray_can_pickup
$spray_can_pickup = create_pickup_with_ammo 365 {pickupType} PickupType.OnStreetSlow {ammo} 1000 {x} 2492.5049 {y} -1700.825 {z} 1017.8
player_made_progress 1
register_mission_passed 'SWEET_1'
print_with_number_big 'M_PASSS' {num} 200 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
add_score $player1 {money} 200
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:SWEET1_14838
mark_model_as_no_longer_needed 365
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed $sweet
$timer_mobile_start = get_game_timer 
switch_car_generator $gen_car7 {amount} 101
remove_blip 41@
remove_blip 42@
remove_blip 43@
remove_blip 44@
remove_blip 56@
remove_blip 62@
remove_animation "GRAFFITI"
remove_animation "GANGS"
remove_char_elegantly $sweet
remove_car_recording 207
unload_special_character 1
unload_special_character 10
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET1_14975
set_can_burst_car_tyres $sweet_car {state} True

:SWEET1_14975
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
$onmission = 0
mission_has_finished 
return 

:SWEET1_15166
clear_mission_audio MissionAudioSlot.Slot2
if 
  $get_in_counter_swee1 == 0
goto_if_false @SWEET1_15197
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37434

:SWEET1_15197
if 
  $get_in_counter_swee1 == 1
goto_if_false @SWEET1_15224
load_mission_audio MissionAudioSlot.Slot2 {audioId} 38644

:SWEET1_15224
if 
  $get_in_counter_swee1 == 2
goto_if_false @SWEET1_15251
load_mission_audio MissionAudioSlot.Slot2 {audioId} 38641

:SWEET1_15251
if 
  $get_in_counter_swee1 == 3
goto_if_false @SWEET1_15278
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37429

:SWEET1_15278
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET1_15294
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1_15376
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_15331
return 

:SWEET1_15331
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_15351
return 

:SWEET1_15351
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_15369
return 

:SWEET1_15369
goto @SWEET1_15294

:SWEET1_15376
play_mission_audio MissionAudioSlot.Slot2
if 
  $get_in_counter_swee1 == 0
goto_if_false @SWEET1_15414
print_now 'SWE1_BM' {time} 3000 {flag} 1

:SWEET1_15414
if 
  $get_in_counter_swee1 == 1
goto_if_false @SWEET1_15448
print_now 'SWEX_BS' {time} 3000 {flag} 1

:SWEET1_15448
if 
  $get_in_counter_swee1 == 2
goto_if_false @SWEET1_15482
print_now 'SWEX_BP' {time} 3000 {flag} 1

:SWEET1_15482
if 
  $get_in_counter_swee1 == 3
goto_if_false @SWEET1_15516
print_now 'SWE1_BG' {time} 3000 {flag} 1

:SWEET1_15516
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1_15598
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET1_15553
return 

:SWEET1_15553
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.SprayCan
goto_if_false @SWEET1_15573
return 

:SWEET1_15573
if 
  is_car_dead $sweet_car
goto_if_false @SWEET1_15591
return 

:SWEET1_15591
goto @SWEET1_15516

:SWEET1_15598
$get_in_counter_swee1 += 1
if 
  $get_in_counter_swee1 > 3
goto_if_false @SWEET1_15630
$get_in_counter_swee1 = 0

:SWEET1_15630
return 

:SWEET1_15632
if or
  $sweet1_audio_is_playing == 0
  $sweet1_audio_is_playing == 1
goto_if_false @SWEET1_15702
if 
  is_int_lvar_greater_or_equal_to_int_var 48@ >= $sweet1_index
goto_if_false @SWEET1_15702
if 
  TIMERA > 200
goto_if_false @SWEET1_15702
gosub @SWEET1_15774

:SWEET1_15702
if 
  $sweet1_audio_is_playing == 2
goto_if_false @SWEET1_15772
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1_15772
gosub @SWEET1_16013
$sweet1_audio_is_playing = 0
$sweet1_index += 1
$sweet1_cutscene_flag = 0
clear_prints 
TIMERA = 0

:SWEET1_15772
return 

:SWEET1_15774
if 
  $sweet1_audio_is_playing == 0
goto_if_false @SWEET1_15810
load_mission_audio MissionAudioSlot.Slot1 {audioId} $sweet1_audio_chat($sweet1_index,8i)
$sweet1_audio_is_playing = 1

:SWEET1_15810
if 
  $sweet1_audio_is_playing == 1
goto_if_false @SWEET1_15875
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1_15875
print_now $sweet1_chat($sweet1_index,8s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET1_15877
$sweet1_audio_is_playing = 2

:SWEET1_15875
return 

:SWEET1_15877
if or
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37401
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37404
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37436
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37438
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37443
goto_if_false @SWEET1_15980
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 2000
goto @SWEET1_16011

:SWEET1_15980
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_16011
shut_char_up_for_scripted_speech $sweet {state} True
start_char_facial_talk $sweet {duration} 2000

:SWEET1_16011
return 

:SWEET1_16013
if or
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37401
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37404
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37436
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37438
  is_int_var_equal_to_constant $sweet1_audio_chat($sweet1_index,8i) == 37443
goto_if_false @SWEET1_16113
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @SWEET1_16141

:SWEET1_16113
if 
  not is_char_dead $sweet
goto_if_false @SWEET1_16141
shut_char_up_for_scripted_speech $sweet {state} False
stop_char_facial_talk $sweet

:SWEET1_16141
return 

//-------------Mission 14---------------
// Originally: Cleaning The Hood

:SWEET1B
script_name 'SWEET1B'
gosub @SWEET1B_1079
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET1B_38
gosub @SWEET1B_15554

:SWEET1B_38
gosub @SWEET1B_16064
terminate_this_script 

:SWEET1B_47
switch_start 87@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SWEET1B_1077 {caseNum1} 0 {caseLabel1} @SWEET1B_175 {caseNum2} 1 {caseLabel2} @SWEET1B_381 {caseNum3} 2 {caseLabel3} @SWEET1B_563 {caseNum4} 3 {caseLabel4} @SWEET1B_625 {caseNum5} 4 {caseLabel5} @SWEET1B_783 {caseNum6} 5 {caseLabel6} @SWEET1B_845 {caseNum7} 6 {caseLabel7} @SWEET1B_907
switch_continued 7 {caseLabel1} @SWEET1B_969 {caseNum2} -1 {caseLabel2} @SWEET1B_1077 {caseNum3} -1 {caseLabel3} @SWEET1B_1077 {caseNum4} -1 {caseLabel4} @SWEET1B_1077 {caseNum5} -1 {caseLabel5} @SWEET1B_1077 {caseNum6} -1 {caseLabel6} @SWEET1B_1077 {caseNum7} -1 {caseLabel7} @SWEET1B_1077 {caseNum8} -1 {caseLabel8} @SWEET1B_1077 {caseNum9} -1 {caseLabel9} @SWEET1B_1077

:SWEET1B_175
set_var_text_label s$sweet1b_chat[0] = 'SWE1_ZF'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_YA'
set_var_text_label s$sweet1b_chat[2] = 'SWE1_YB'
set_var_text_label s$sweet1b_chat[3] = 'SWE1_YC'
set_var_text_label s$sweet1b_chat[4] = 'SWE1_YD'
set_var_text_label s$sweet1b_chat[5] = 'SWE1_YE'
set_var_text_label s$sweet1b_chat[6] = 'SWE1_YF'
set_var_text_label s$sweet1b_chat[7] = 'SWE1_YG'
set_lvar_int_to_constant 93@ = 37494
set_lvar_int_to_constant 94@ = 37465
set_lvar_int_to_constant 95@ = 37466
set_lvar_int_to_constant 96@ = 37467
set_lvar_int_to_constant 97@ = 37468
set_lvar_int_to_constant 98@ = 37469
set_lvar_int_to_constant 99@ = 37470
set_lvar_int_to_constant 100@ = 37471
91@ = 7
goto @SWEET1B_1077

:SWEET1B_381
set_var_text_label s$sweet1b_chat[0] = 'SWE1_YM'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_YN'
set_var_text_label s$sweet1b_chat[2] = 'SWE1_YO'
set_var_text_label s$sweet1b_chat[3] = 'SWE1_YP'
set_var_text_label s$sweet1b_chat[4] = 'SWE1_YQ'
set_var_text_label s$sweet1b_chat[5] = 'SWE1_YR'
set_var_text_label s$sweet1b_chat[6] = 'SWE1_YS'
set_lvar_int_to_constant 93@ = 37476
set_lvar_int_to_constant 94@ = 37477
set_lvar_int_to_constant 95@ = 37478
set_lvar_int_to_constant 96@ = 37479
set_lvar_int_to_constant 97@ = 37480
set_lvar_int_to_constant 98@ = 37481
set_lvar_int_to_constant 99@ = 37482
91@ = 6
goto @SWEET1B_1077

:SWEET1B_563
set_var_text_label s$sweet1b_chat[0] = 'SWE1_YX'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_YY'
set_lvar_int_to_constant 93@ = 37487
set_lvar_int_to_constant 94@ = 37488
91@ = 1
goto @SWEET1B_1077

:SWEET1B_625
set_var_text_label s$sweet1b_chat[0] = 'SWE1_TA'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_TB'
set_var_text_label s$sweet1b_chat[2] = 'SWE1_TC'
set_var_text_label s$sweet1b_chat[3] = 'SWE1_TD'
set_var_text_label s$sweet1b_chat[4] = 'SWE1_TE'
set_var_text_label s$sweet1b_chat[5] = 'SWE1_TF'
set_lvar_int_to_constant 93@ = 37448
set_lvar_int_to_constant 94@ = 37449
set_lvar_int_to_constant 95@ = 37450
set_lvar_int_to_constant 96@ = 37451
set_lvar_int_to_constant 97@ = 37452
set_lvar_int_to_constant 98@ = 37453
91@ = 5
goto @SWEET1B_1077

:SWEET1B_783
set_var_text_label s$sweet1b_chat[0] = 'SWE1_SA'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_SB'
set_lvar_int_to_constant 93@ = 37446
set_lvar_int_to_constant 94@ = 37447
91@ = 1
goto @SWEET1B_1077

:SWEET1B_845
set_var_text_label s$sweet1b_chat[0] = 'SWE1_YT'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_YU'
set_lvar_int_to_constant 93@ = 37483
set_lvar_int_to_constant 94@ = 37484
91@ = 1
goto @SWEET1B_1077

:SWEET1B_907
set_var_text_label s$sweet1b_chat[0] = 'SWE1_YV'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_YW'
set_lvar_int_to_constant 93@ = 37485
set_lvar_int_to_constant 94@ = 37486
91@ = 1
goto @SWEET1B_1077

:SWEET1B_969
set_var_text_label s$sweet1b_chat[0] = 'SWE1_UA'
set_var_text_label s$sweet1b_chat[1] = 'SWE1_UB'
set_var_text_label s$sweet1b_chat[2] = 'SWE1_UC'
set_var_text_label s$sweet1b_chat[3] = 'SWE1_UD'
set_lvar_int_to_constant 93@ = 37454
set_lvar_int_to_constant 94@ = 37455
set_lvar_int_to_constant 95@ = 37456
set_lvar_int_to_constant 96@ = 20248
91@ = 3
goto @SWEET1B_1077

:SWEET1B_1077
return 

:SWEET1B_1079
register_mission_given 
55@ = 0
47@ = 0
$onmission = 1
63@ = 0
52@ = 0
57@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
77@ = 0
84@ = 0
50@ = 0
43@ = 0
83@ = 0
86@ = 0
102@ = 0
66@ = 0
69@ = 0
51@ = 0
105@ = 0
103@ = 0
60@ = 0
switch_roads_off 2272.9221 {leftBottomY} -1649.556 {leftBottomZ} 14.3311 {rightTopX} 2266.1011 {rightTopY} -1633.219 {rightTopZ} 14.3505
switch_ped_roads_off 324.1973 {leftBottomY} 1116.7581 {leftBottomZ} 1082.8979 {rightTopX} 313.1226 {rightTopY} 1124.197 {rightTopZ} 1082.8979
wait 0
load_mission_text 'SWEET1B'
set_area_visible 1
load_cutscene 'SWEET1B'

:SWEET1B_1336
if 
  not has_cutscene_loaded 
goto_if_false @SWEET1B_1360
wait 0
goto @SWEET1B_1336

:SWEET1B_1360
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET1B_1369
if 
  not has_cutscene_finished 
goto_if_false @SWEET1B_1393
wait 0
goto @SWEET1B_1369

:SWEET1B_1393
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SWEET1B_1406
if 
  get_fading_status 
goto_if_false @SWEET1B_1430
wait 0
goto @SWEET1B_1406

:SWEET1B_1430
clear_cutscene 
set_area_visible 0
request_model 336
request_model 492
load_special_character 1 {modelName} 'RYDER2'
75@ = load_char_decision_maker DecisionMakerType.Empty
load_all_models_now 

:SWEET1B_1468
if or
  not has_model_loaded 336
  not has_special_character_loaded 1
  not has_model_loaded 492
goto_if_false @SWEET1B_1504
wait 0
goto @SWEET1B_1468

:SWEET1B_1504
enable_ambient_crime False
clear_area 2516.3921 {y} -1676.517 {z} 13.0041 {radius} 5.0 {clearParticles} True
clear_area 2508.7419 {y} -1671.132 {z} 12.3818 {radius} 5.0 {clearParticles} True
clear_area 2516.95 {y} -1675.23 {z} 13.05 {radius} 2.0 {clearParticles} True
$ryder = create_char PedType.Mission1 {modelId} 290 {x} 2516.3921 {y} -1676.517 {z} 13.0041
set_char_heading $ryder {heading} 45.7
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Player1 {toPedType} PedType.Mission1
give_weapon_to_char $ryder {weaponType} WeaponType.BaseballBat {ammo} 3000
set_current_char_weapon $ryder {weaponType} WeaponType.BaseballBat
set_char_decision_maker $ryder {handleOrTemplate} 75@
set_char_only_damaged_by_player $ryder {state} True
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_max_health $ryder {maxHealth} 500
set_char_health $ryder {health} 500
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} True
39@ = add_blip_for_char $ryder
set_blip_as_friendly 39@ {state} True
remove_blip 39@
set_char_coordinates $scplayer {x} 2516.95 {y} -1675.23 {z} 13.05
set_char_heading $scplayer {heading} 56.0
load_scene 2509.8101 {y} -1670.89 {z} 12.39
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
set_player_group_to_follow_always $player1 {state} True
enable_entry_exit_player_group_warping 2165.72 {y} -1673.14 {radius} 10.0 {state} True
enable_entry_exit_player_group_warping 319.56 {y} 1117.64 {radius} 10.0 {state} True
make_room_in_player_gang_for_mission_peds 1
set_char_signal_after_kill $ryder {state} False
print_now 'SW1B_A' {time} 10000 {flag} 1
switch_car_generator $gen_car7 {amount} 0
clear_area 2508.1599 {y} -1666.47 {z} 12.3983 {radius} 6.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.1599 {y} -1666.47 {z} 12.3983
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_heading $sweet_car {heading} 16.0
set_radio_channel RadioChannel.RadioLosSantos
mark_model_as_no_longer_needed 492
set_player_control $player1 {state} True
do_fade 1200 {direction} Fade.In
38@ = add_blip_for_coord 2301.0701 {y} -1754.4 {z} 12.54
set_camera_behind_player 
switch_widescreen False
restore_camera_jumpcut 
$blob_flag = 1
TIMERA = 0
switch_entry_exit 'LACRAK' {state} False
58@ = 0
101@ = 0
92@ = 0
87@ = 0
gosub @SWEET1B_47
clear_area 2301.0701 {y} -1754.4 {z} 12.54 {radius} 20.0 {clearParticles} True

:SWEET1B_2099
if or
  not locate_char_any_means_3d $scplayer {x} 2301.0701 {y} -1754.4 {z} 12.54 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_2488
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_2216
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_2216
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SWEET1B_2238
goto @SWEET1B_15979

:SWEET1B_2238
if 
  78@ == 0
goto_if_false @SWEET1B_2380
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_2380
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_2380
if and
  is_char_on_foot $scplayer
  is_char_on_foot $ryder
goto_if_false @SWEET1B_2336
gosub @SWEET1B_17075

:SWEET1B_2336
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_2380
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_2380
gosub @SWEET1B_17075

:SWEET1B_2380
if 
  104@ == 0
goto_if_false @SWEET1B_2435
if 
  TIMERA > 5000
goto_if_false @SWEET1B_2435
print_help 'CALLRYD'
104@ = 1

:SWEET1B_2435
gosub @SWEET1B_16372
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_2481
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_2481
goto @SWEET1B_2099

:SWEET1B_2488
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
set_fixed_camera_position 2301.918 {y} -1746.505 {z} 14.009 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2301.8101 {y} -1747.499 {z} 14.0471 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_2621
if 
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_2596
task_leave_any_car $ryder
goto @SWEET1B_2621

:SWEET1B_2596
task_go_straight_to_coord $ryder {x} 2298.5701 {y} -1775.4399 {z} 12.56 {speed} MoveState.Walk {time} 2500

:SWEET1B_2621
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET1B_2654
wait 800
task_leave_any_car $scplayer
goto @SWEET1B_2679

:SWEET1B_2654
task_go_straight_to_coord $scplayer {x} 2298.5701 {y} -1775.4399 {z} 12.56 {speed} MoveState.Walk {time} 2500

:SWEET1B_2679
mark_car_as_no_longer_needed $sweet_car
do_fade 1700 {direction} Fade.Out

:SWEET1B_2691
if 
  get_fading_status 
goto_if_false @SWEET1B_2715
wait 0
goto @SWEET1B_2691

:SWEET1B_2715
set_area_visible 3
make_player_safe_for_cutscene $player1
load_cutscene 'SWEET1C'

:SWEET1B_2735
if 
  not has_cutscene_loaded 
goto_if_false @SWEET1B_2759
wait 0
goto @SWEET1B_2735

:SWEET1B_2759
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET1B_2768
if 
  not has_cutscene_finished 
goto_if_false @SWEET1B_2792
wait 0
goto @SWEET1B_2768

:SWEET1B_2792
clear_cutscene 
do_fade 0 {direction} Fade.Out

:SWEET1B_2800
if 
  get_fading_status 
goto_if_false @SWEET1B_2824
wait 0
goto @SWEET1B_2800

:SWEET1B_2824
set_area_visible 0
request_model 28
request_model 107
request_animation "DEALER"
request_animation "GANGS"
34@ = load_char_decision_maker DecisionMakerType.Tough
76@ = load_char_decision_maker DecisionMakerType.Weak
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37472
load_all_models_now 

:SWEET1B_2880
if or
  not has_model_loaded 28
  not has_model_loaded 107
  not has_animation_loaded "DEALER"
  not has_animation_loaded "GANGS"
goto_if_false @SWEET1B_2929
wait 0
goto @SWEET1B_2880

:SWEET1B_2929
remove_blip 38@
48@ = create_char PedType.Mission2 {modelId} 107 {x} 2283.656 {y} -1645.599 {z} 14.1598
set_char_decision_maker 48@ {handleOrTemplate} 75@
35@ = create_char PedType.Mission2 {modelId} 28 {x} 2284.947 {y} -1645.396 {z} 14.1413
set_char_max_health 35@ {maxHealth} 120
set_char_health 35@ {health} 120
set_char_heading 35@ {heading} 114.0
44@ = add_blip_for_char 35@
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_char_shoot_rate 35@ {rate} 75
shut_char_up_for_scripted_speech 35@ {state} True
task_turn_char_to_face_char 35@ {target} 48@
task_turn_char_to_face_char 48@ {target} 35@
freeze_char_position_and_dont_load_collision 35@ {state} True
freeze_char_position_and_dont_load_collision 48@ {state} True
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_char_coordinates $scplayer {x} 2300.1299 {y} -1763.1801 {z} 12.63
set_char_heading $scplayer {heading} 0.0
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_3165
set_char_coordinates $ryder {x} 2298.1499 {y} -1762.67 {z} 12.56
set_char_heading $ryder {heading} 355.37

:SWEET1B_3165
load_scene 2300.1299 {y} -1763.1801 {z} 12.63
85@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2281.116 {y} -1647.527 {z} 14.2174 {speed} MoveState.Run {time} 10000
task_go_straight_to_coord -1 {x} 2281.1331 {y} -1650.709 {z} 14.1714 {speed} MoveState.Run {time} 10000
task_go_straight_to_coord -1 {x} 2238.0911 {y} -1661.728 {z} 14.469 {speed} MoveState.Run {time} 10000
task_wander_standard -1
close_sequence_task 85@
42@ = open_sequence_task 
task_play_anim -1 {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "DEALER_DEAL" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 42@ {state} True
close_sequence_task 42@
40@ = open_sequence_task 
task_look_at_char -1 {target} 35@ {time} 3000
task_look_about -1 {time} 2000
task_play_anim -1 {animationName} "SHOP_PAY" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "DRUGS_BUY" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 40@ {state} True
close_sequence_task 40@
102@ = 1
do_fade 1000 {direction} Fade.In

:SWEET1B_3486
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_3551
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_3544
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_3544
goto @SWEET1B_3486

:SWEET1B_3551
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_YH' {time} 3000 {flag} 1

:SWEET1B_3571
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_3636
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_3629
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_3629
goto @SWEET1B_3571

:SWEET1B_3636
print_now 'SW1B_B' {time} 10000 {flag} 1

:SWEET1B_3652
if or
  not is_char_dead 35@
  not locate_char_any_means_3d $scplayer {x} 2284.947 {y} -1645.396 {z} 14.1413 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_5335
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_3748
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_3748
if 
  104@ == 0
goto_if_false @SWEET1B_3803
if 
  TIMERA > 2000
goto_if_false @SWEET1B_3803
print_help 'CALLRYD'
104@ = 1

:SWEET1B_3803
if 
  52@ == 0
goto_if_false @SWEET1B_3971
if 
  locate_char_any_means_3d $scplayer {x} 2284.947 {y} -1645.396 {z} 14.1413 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_3964
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_3892
freeze_char_position_and_dont_load_collision 48@ {state} False

:SWEET1B_3892
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_3957
freeze_char_position_and_dont_load_collision 35@ {state} False
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_3957
perform_sequence_task 35@ {sequence} 42@
clear_sequence_task 42@
perform_sequence_task 48@ {sequence} 40@
clear_sequence_task 40@

:SWEET1B_3957
52@ = 1

:SWEET1B_3964
goto @SWEET1B_4237

:SWEET1B_3971
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4237
if 
  52@ == 1
goto_if_false @SWEET1B_4237
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 6.0 {yRadius} 6.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_4237
clear_char_tasks 35@
task_look_at_char 35@ {target} $scplayer {time} 3000
task_turn_char_to_face_char 35@ {target} $scplayer
set_char_decision_maker 35@ {handleOrTemplate} 34@
task_play_anim 35@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  51@ == 0
goto_if_false @SWEET1B_4188
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_4188
freeze_char_position_and_dont_load_collision 48@ {state} False
clear_char_tasks_immediately 48@
perform_sequence_task 48@ {sequence} 85@
clear_sequence_task 85@
set_char_decision_maker 48@ {handleOrTemplate} 75@
51@ = 1

:SWEET1B_4188
58@ = 0
101@ = 0
92@ = 0
87@ = 4
gosub @SWEET1B_47
TIMERA = 0
52@ = 2

:SWEET1B_4237
if 
  52@ == 2
goto_if_false @SWEET1B_4397
if 
  105@ == 0
goto_if_false @SWEET1B_4326
if 
  TIMERA > 2000
goto_if_false @SWEET1B_4326
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_4326
print_help 'MEL_HLP'
105@ = 1

:SWEET1B_4326
if 
  105@ == 1
goto_if_false @SWEET1B_4397
if 
  TIMERA > 8000
goto_if_false @SWEET1B_4397
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_4397
print_help 'MELHLP2'
105@ = 2

:SWEET1B_4397
if 
  51@ == 0
goto_if_false @SWEET1B_4702
if 
  is_char_dead 35@
goto_if_false @SWEET1B_4494
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_4487
freeze_char_position_and_dont_load_collision 48@ {state} False
clear_char_tasks_immediately 48@
perform_sequence_task 48@ {sequence} 85@
clear_sequence_task 85@
set_char_decision_maker 48@ {handleOrTemplate} 75@
51@ = 1

:SWEET1B_4487
goto @SWEET1B_4702

:SWEET1B_4494
if 
  not is_char_dead 48@
goto_if_false @SWEET1B_4639
if or
  not is_char_health_greater 35@ {health} 119
  not is_char_health_greater 48@ {health} 99
goto_if_false @SWEET1B_4632
freeze_char_position_and_dont_load_collision 48@ {state} False
clear_char_tasks_immediately 48@
perform_sequence_task 48@ {sequence} 85@
clear_sequence_task 85@
set_char_decision_maker 48@ {handleOrTemplate} 75@
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4625
task_play_anim 35@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_4625
51@ = 1

:SWEET1B_4632
goto @SWEET1B_4702

:SWEET1B_4639
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4702
task_play_anim 35@ {animationName} "XPRESSSCRATCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:SWEET1B_4702
if 
  90@ == 0
goto_if_false @SWEET1B_4876
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_4861
if 
  is_char_health_greater 35@ {health} 119
goto_if_false @SWEET1B_4804
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 6.0 {yRadius} 6.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_4797
gosub @SWEET1B_17075

:SWEET1B_4797
goto @SWEET1B_4854

:SWEET1B_4804
give_weapon_to_char 35@ {weaponType} WeaponType.BaseballBat {ammo} 3000
set_char_drops_weapons_when_dead 35@ {state} False
shut_char_up_for_scripted_speech 35@ {state} False
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
clear_char_tasks 35@
task_kill_char_on_foot 35@ {target} $scplayer
90@ = 1

:SWEET1B_4854
goto @SWEET1B_4876

:SWEET1B_4861
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
90@ = 1

:SWEET1B_4876
if 
  66@ == 0
goto_if_false @SWEET1B_5282
if 
  locate_char_any_means_3d $scplayer {x} 2284.947 {y} -1645.396 {z} 14.1413 {xRadius} 20.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET1B_5282
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37474
set_player_control $player1 {state} False
wait 1000
switch_widescreen True
set_fixed_camera_position 2283.019 {y} -1649.472 {z} 15.0999 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2283.3259 {y} -1648.525 {z} 15.1884 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_5232
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_5227

:SWEET1B_5070
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_5135
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5128
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_5128
goto @SWEET1B_5070

:SWEET1B_5135
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_YK' {time} 5000 {flag} 1

:SWEET1B_5155
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_5220
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5213
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_5213
goto @SWEET1B_5155

:SWEET1B_5220
goto @SWEET1B_5232

:SWEET1B_5227
wait 2000

:SWEET1B_5232
wait 1000
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET1B_5258
task_leave_any_car $scplayer

:SWEET1B_5258
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
66@ = 1

:SWEET1B_5282
gosub @SWEET1B_16372
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5328
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_5328
goto @SWEET1B_3652

:SWEET1B_5335
mark_model_as_no_longer_needed 107
TIMERA = 0
remove_blip 44@

:SWEET1B_5351
if or
  TIMERA <= 2000
  78@ <> 0
goto_if_false @SWEET1B_5427
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_5420
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_5420
goto @SWEET1B_5351

:SWEET1B_5427
do_fade 500 {direction} Fade.Out

:SWEET1B_5434
if 
  get_fading_status 
goto_if_false @SWEET1B_5458
wait 0
goto @SWEET1B_5434

:SWEET1B_5458
set_area_visible 0
delete_char 48@
mark_model_as_no_longer_needed 28
remove_animation "DEALER"
load_scene 2283.0 {y} -1644.4 {z} 14.2
clear_area 2285.1699 {y} -1644.74 {z} 14.08 {radius} 4.0 {clearParticles} True
clear_area_of_cars 2288.28 {leftBottomY} -1648.13 {leftBottomZ} 14.0 {rightTopX} 2274.9199 {rightTopY} -1641.33 {rightTopZ} 14.31
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_5610
set_char_area_visible $ryder {areaId} 0
hide_char_weapon_for_scripted_cutscene $ryder {state} True
remove_char_from_group $ryder
clear_char_tasks_immediately $ryder
clear_look_at $ryder

:SWEET1B_5610
clear_char_tasks_immediately $scplayer
clear_look_at $scplayer
set_char_area_visible $scplayer {areaId} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
wait 1000
clear_area 2285.1699 {y} -1644.74 {z} 14.08 {radius} 5.0 {clearParticles} True
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_5706
set_char_coordinates $scplayer {x} 2284.4619 {y} -1645.925 {z} 14.1362
goto @SWEET1B_5726

:SWEET1B_5706
warp_char_from_car_to_coord $scplayer {x} 2284.4619 {y} -1645.925 {z} 14.1362

:SWEET1B_5726
set_char_heading $scplayer {heading} 333.0
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_5825
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_5795
set_char_coordinates $ryder {x} 2283.27 {y} -1645.8 {z} 14.15
goto @SWEET1B_5815

:SWEET1B_5795
warp_char_from_car_to_coord $ryder {x} 2283.27 {y} -1645.8 {z} 14.15

:SWEET1B_5815
set_char_heading $ryder {heading} 310.0

:SWEET1B_5825
108@ = 0
if 
  does_char_exist 35@
goto_if_false @SWEET1B_5871
if 
  is_char_head_missing 35@
goto_if_false @SWEET1B_5871
108@ = 1

:SWEET1B_5871
set_fixed_camera_position 2285.177 {y} -1644.748 {z} 14.0885 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2284.635 {y} -1645.266 {z} 14.7501 {switchStyle} SwitchType.JumpCut
if 
  108@ == 0
goto_if_false @SWEET1B_5947
set_player_drunkenness $player1 {intensity} 100

:SWEET1B_5947
58@ = 0
101@ = 0
92@ = 0
87@ = 1
gosub @SWEET1B_47
wait 200
clear_look_at $scplayer
task_look_at_coord $scplayer {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 21000
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6059
clear_look_at $ryder
task_look_at_coord $ryder {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 21000

:SWEET1B_6059
delete_char 35@
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6201
if 
  not locate_char_on_foot_3d $ryder {x} 2283.27 {y} -1645.8 {z} 14.15 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_6201
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_6171
set_char_coordinates $ryder {x} 2283.27 {y} -1645.8 {z} 14.15
goto @SWEET1B_6191

:SWEET1B_6171
warp_char_from_car_to_coord $ryder {x} 2283.27 {y} -1645.8 {z} 14.15

:SWEET1B_6191
set_char_heading $ryder {heading} 310.0

:SWEET1B_6201
wait 200
do_fade 500 {direction} Fade.In
wait 700
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6355
if 
  not locate_char_on_foot_3d $ryder {x} 2283.27 {y} -1645.8 {z} 14.15 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_6355
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_6325
set_char_coordinates $ryder {x} 2283.27 {y} -1645.8 {z} 14.15
goto @SWEET1B_6345

:SWEET1B_6325
warp_char_from_car_to_coord $ryder {x} 2283.27 {y} -1645.8 {z} 14.15

:SWEET1B_6345
set_char_heading $ryder {heading} 310.0

:SWEET1B_6355
clear_prints 
clear_help 
if 
  108@ == 0
goto_if_false @SWEET1B_6377

:SWEET1B_6377
skip_cutscene_start_internal @SWEET1B_7388
92@ = 0

:SWEET1B_6391
if 
  58@ == 0
goto_if_false @SWEET1B_6523
wait 0
gosub @SWEET1B_17075
if 
  92@ == 0
goto_if_false @SWEET1B_6516
if 
  101@ == 2
goto_if_false @SWEET1B_6516
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6516
task_play_anim $ryder {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 6000
92@ = 1

:SWEET1B_6516
goto @SWEET1B_6391

:SWEET1B_6523
92@ = 0

:SWEET1B_6530
if 
  58@ == 1
goto_if_false @SWEET1B_6566
wait 0
gosub @SWEET1B_17075
goto @SWEET1B_6530

:SWEET1B_6566
92@ = 0

:SWEET1B_6573
if 
  58@ == 2
goto_if_false @SWEET1B_6684
wait 0
gosub @SWEET1B_17075
if 
  92@ == 0
goto_if_false @SWEET1B_6677
if 
  101@ == 2
goto_if_false @SWEET1B_6677
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6677
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 9000
92@ = 1

:SWEET1B_6677
goto @SWEET1B_6573

:SWEET1B_6684
if 
  108@ == 0
goto_if_false @SWEET1B_6702

:SWEET1B_6702
92@ = 0

:SWEET1B_6709
if 
  58@ == 3
goto_if_false @SWEET1B_6745
wait 0
gosub @SWEET1B_17075
goto @SWEET1B_6709

:SWEET1B_6745
92@ = 0

:SWEET1B_6752
if 
  58@ == 4
goto_if_false @SWEET1B_6863
wait 0
gosub @SWEET1B_17075
if 
  92@ == 0
goto_if_false @SWEET1B_6856
if 
  101@ == 2
goto_if_false @SWEET1B_6856
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6856
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 5000
92@ = 1

:SWEET1B_6856
goto @SWEET1B_6752

:SWEET1B_6863
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_6895
clear_look_at $ryder
task_look_at_char $ryder {target} $scplayer {time} 5000

:SWEET1B_6895
92@ = 0

:SWEET1B_6902
if 
  58@ == 5
goto_if_false @SWEET1B_7040
wait 0
gosub @SWEET1B_17075
if 
  92@ == 0
goto_if_false @SWEET1B_7033
if 
  101@ == 2
goto_if_false @SWEET1B_7033
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7033
task_play_anim $ryder {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
92@ = 1

:SWEET1B_7033
goto @SWEET1B_6902

:SWEET1B_7040
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7094
task_play_anim $ryder {animationName} "IDLE_STANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_7094
clear_look_at $scplayer
task_look_at_coord $scplayer {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 20000
92@ = 0

:SWEET1B_7129
if 
  58@ == 6
goto_if_false @SWEET1B_7252
wait 0
gosub @SWEET1B_17075
if 
  92@ == 0
goto_if_false @SWEET1B_7245
if 
  101@ == 2
goto_if_false @SWEET1B_7245
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7245
clear_look_at $ryder
task_look_at_coord $ryder {x} 2285.1001 {y} -1644.7 {z} 14.0 {time} 20000
92@ = 1

:SWEET1B_7245
goto @SWEET1B_7129

:SWEET1B_7252
clear_char_tasks $scplayer
task_play_anim $scplayer {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_7292
if 
  0.351 > 110@
goto_if_false @SWEET1B_7368
wait 0
if 
  is_char_playing_anim $scplayer {animationName} "FIGHTA_G"
goto_if_false @SWEET1B_7361
110@ = get_char_anim_current_time $scplayer {animationName} "FIGHTA_G"

:SWEET1B_7361
goto @SWEET1B_7292

:SWEET1B_7368
report_mission_audio_event_at_position 2285.177 {y} -1644.748 {z} 14.0885 {soundId} ScriptSound.SoundStampPed

:SWEET1B_7388
skip_cutscene_end 
clear_char_tasks $scplayer
clear_prints 
set_music_does_fade False
do_fade 0 {direction} Fade.Out
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7437
hide_char_weapon_for_scripted_cutscene $ryder {state} False

:SWEET1B_7437
wait 1000
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7463
clear_look_at $ryder

:SWEET1B_7463
clear_look_at $scplayer
remove_animation "GANGS"
remove_blip 38@
38@ = add_blip_for_coord 2171.781 {y} -1676.78 {z} 14.0859
102@ = 2
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_7567
remove_char_from_group $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
47@ = 1

:SWEET1B_7567
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
camera_reset_new_scriptables 
set_player_drunkenness $player1 {intensity} 0
set_char_heading $scplayer {heading} 152.235
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
79@ = create_pickup 336 {pickupType} PickupType.Once {x} 2285.7429 {y} -1647.309 {z} 14.0782
set_music_does_fade True
do_fade 1000 {direction} Fade.In
clear_prints 
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.BaseballBat
goto_if_false @SWEET1B_7875
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37491
wait 500

:SWEET1B_7679
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_7790
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7737
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_7737
gosub @SWEET1B_16372
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7783
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_7783
goto @SWEET1B_7679

:SWEET1B_7790
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_ZC' {time} 3000 {flag} 1

:SWEET1B_7810
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_7875
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7868
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_7868
goto @SWEET1B_7810

:SWEET1B_7875
58@ = 0
101@ = 0
92@ = 0
87@ = 5
gosub @SWEET1B_47
TIMERB = 0
TIMERA = 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_7963
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_7963
print_now 'SW1B_1' {time} 10000 {flag} 1
clear_area 2171.781 {y} -1676.78 {z} 14.0859 {radius} 8.0 {clearParticles} True

:SWEET1B_8003
if or
  not locate_char_any_means_3d $scplayer {x} 2171.781 {y} -1676.78 {z} 14.0859 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} $blob_flag
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_8442
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_8120
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_8120
if 
  TIMERB > 5000
goto_if_false @SWEET1B_8247
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_8247
if and
  is_char_on_foot $scplayer
  is_char_on_foot $ryder
goto_if_false @SWEET1B_8203
gosub @SWEET1B_17075

:SWEET1B_8203
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_8247
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_8247
gosub @SWEET1B_17075

:SWEET1B_8247
gosub @SWEET1B_16372
if 
  105@ == 0
goto_if_false @SWEET1B_8325
if 
  TIMERA > 2000
goto_if_false @SWEET1B_8325
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_8325
print_help 'MEL_HLP'
105@ = 1

:SWEET1B_8325
if 
  105@ == 1
goto_if_false @SWEET1B_8396
if 
  TIMERA > 8000
goto_if_false @SWEET1B_8396
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_8396
print_help 'MELHLP2'
105@ = 2

:SWEET1B_8396
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_8435
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_8435
goto @SWEET1B_8003

:SWEET1B_8442
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
58@ = 0
101@ = 0
92@ = 0
87@ = 6
gosub @SWEET1B_47
switch_widescreen True
switch_entry_exit 'LACRAK' {state} True
set_player_control $player1 {state} False
set_fixed_camera_position 2177.072 {y} -1682.038 {z} 15.8487 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2176.343 {y} -1681.354 {z} 15.8969 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:SWEET1B_8567
if 
  58@ <> 1
goto_if_false @SWEET1B_8603
wait 0
gosub @SWEET1B_17075
goto @SWEET1B_8567

:SWEET1B_8603
remove_blip 38@
38@ = add_blip_for_coord 2169.72 {y} -1673.14 {z} 13.01
102@ = 3
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
110@ = 0.0
TIMERB = 0
106@ = 0

:SWEET1B_8674
if 
  43@ <> 1
goto_if_false @SWEET1B_13696
wait 0
78@ = get_area_visible 
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SWEET1B_8723
goto @SWEET1B_15979

:SWEET1B_8723
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_8762
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_8762
gosub @SWEET1B_17075
if 
  78@ == 5
goto_if_false @SWEET1B_13032
activate_interior_peds False
if 
  locate_char_any_means_3d $scplayer {x} 319.15 {y} 1120.89 {z} 1082.87 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET1B_13032
if 
  63@ == 0
goto_if_false @SWEET1B_12622
set_player_control $player1 {state} False
switch_widescreen True
clear_area 319.15 {y} 1120.89 {z} 1082.87 {radius} 100.0 {clearParticles} True
remove_blip 39@
do_fade 0 {direction} Fade.Out
request_model 102
request_model 64
request_model 63
request_model 28
request_model #CIGAR
request_animation "CRACK"
request_animation "BLOWJOBZ"
request_animation "BASEBALL"
load_all_models_now 

:SWEET1B_8958
if or
  not has_animation_loaded "CRACK"
  not has_animation_loaded "BLOWJOBZ"
  not has_animation_loaded "BASEBALL"
goto_if_false @SWEET1B_9019
wait 0
do_fade 0 {direction} Fade.Out
goto @SWEET1B_8958

:SWEET1B_9019
if or
  not has_model_loaded 102
  not has_model_loaded 63
  not has_model_loaded 64
  not has_model_loaded #CIGAR
  not has_model_loaded 28
goto_if_false @SWEET1B_9067
wait 0
do_fade 0 {direction} Fade.Out
goto @SWEET1B_9019

:SWEET1B_9067
68@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 315.81 {y} 1122.3 {z} 1082.8 {speed} MoveState.Run {time} 10000
task_play_anim -1 {animationName} "BBALBAT_IDLE_01" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 68@
switch_entry_exit 'LACRAK' {state} False
61@ = create_char PedType.CivFemale {modelId} 64 {x} 309.77 {y} 1123.5 {z} 1082.87
set_char_area_visible 61@ {areaId} 5
set_char_heading 61@ {heading} 107.12
task_play_anim_non_interruptable 61@ {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 61@ {handleOrTemplate} 75@
36@ = create_char PedType.Mission2 {modelId} 64 {x} 317.5892 {y} 1124.777 {z} 1082.8669
set_char_area_visible 36@ {areaId} 5
set_char_heading 36@ {heading} 180.0
task_play_anim_non_interruptable 36@ {animationName} "CRCKIDLE2" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 36@ {handleOrTemplate} 75@
54@ = create_char PedType.Mission2 {modelId} 102 {x} 325.0 {y} 1119.975 {z} 1082.875
set_char_area_visible 54@ {areaId} 5
set_char_heading 54@ {heading} 90.0
task_play_anim_non_interruptable 54@ {animationName} "CRCKIDLE1" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 54@ {handleOrTemplate} 75@
80@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 54@ {object} 80@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
49@ = create_char PedType.Mission2 {modelId} 102 {x} 320.1898 {y} 1123.292 {z} 1082.875
set_char_area_visible 49@ {areaId} 5
set_char_heading 49@ {heading} 177.9659
task_play_anim_non_interruptable 49@ {animationName} "CRCKIDLE3" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 49@ {handleOrTemplate} 75@
81@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 49@ {object} 81@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
62@ = create_char PedType.Mission2 {modelId} 102 {x} 333.63 {y} 1124.51 {z} 1082.88
set_char_max_health 62@ {maxHealth} 70
set_char_health 62@ {health} 70
set_char_area_visible 62@ {areaId} 5
set_char_heading 62@ {heading} 267.96
set_char_decision_maker 62@ {handleOrTemplate} 34@
set_char_relationship 62@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
82@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 62@ {object} 82@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
88@ = add_blip_for_char 62@
set_blip_entry_exit 88@ {x} 2167.835 {y} -1672.923 {radius} 2.0
64@ = create_char PedType.Mission2 {modelId} 102 {x} 325.0 {y} 1129.213 {z} 1082.8831
set_char_area_visible 64@ {areaId} 5
set_char_heading 64@ {heading} 90.0
task_play_anim 64@ {animationName} "BJ_COUCH_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 64@ {handleOrTemplate} 34@
set_char_relationship 64@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
89@ = add_blip_for_char 64@
set_blip_entry_exit 89@ {x} 2167.835 {y} -1672.923 {radius} 2.0
65@ = create_char PedType.CivFemale {modelId} 63 {x} 324.0 {y} 1129.2 {z} 1082.8831
set_char_area_visible 65@ {areaId} 5
set_char_heading 65@ {heading} 270.0
task_play_anim 65@ {animationName} "BJ_COUCH_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 65@ {handleOrTemplate} 75@
set_char_relationship 65@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
59@ = create_char PedType.Mission2 {modelId} 102 {x} 333.4072 {y} 1124.462 {z} 1082.89
set_char_area_visible 59@ {areaId} 5
set_char_heading 59@ {heading} 83.6676
task_play_anim_non_interruptable 59@ {animationName} "CRCKIDLE3" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 59@ {handleOrTemplate} 75@
81@ = create_object #CIGAR {x} 2440.5801 {y} -1979.89 {z} 1082.2
task_pick_up_object 59@ {object} 81@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
37@ = create_char PedType.Mission2 {modelId} 28 {x} 306.03 {y} 1121.86 {z} 1082.87
set_char_area_visible 37@ {areaId} 5
set_char_shoot_rate 37@ {rate} 80
set_char_max_health 37@ {maxHealth} 150
set_char_health 37@ {health} 150
set_char_heading 37@ {heading} 263.66
give_weapon_to_char 37@ {weaponType} WeaponType.BaseballBat {ammo} 3000
set_char_decision_maker 37@ {handleOrTemplate} 34@
set_char_relationship 37@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
45@ = add_blip_for_char 37@
set_blip_entry_exit 45@ {x} 2167.835 {y} -1672.923 {radius} 2.0
TIMERA = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37487
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37488

:SWEET1B_10326
if 
  TIMERA <= 1000
goto_if_false @SWEET1B_10362
wait 0
do_fade 0 {direction} Fade.Out
goto @SWEET1B_10326

:SWEET1B_10362
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_10459
remove_char_from_group $ryder
clear_char_tasks_immediately $ryder
clear_look_at $ryder
set_char_coordinates $ryder {x} 320.12 {y} 1118.2 {z} 1082.89
set_char_heading $ryder {heading} 7.0
set_char_has_used_entry_exit $ryder {x} 2169.72 {y} -1673.14 {radius} 20.0
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 6000

:SWEET1B_10459
set_fixed_camera_position 318.297 {y} 1115.438 {z} 1085.054 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 318.7138 {y} 1116.318 {z} 1084.827 {switchStyle} SwitchType.JumpCut
wait 300
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_10563
task_go_straight_to_coord $ryder {x} 320.0 {y} 1122.3 {z} 1082.8 {speed} MoveState.Walk {time} 6000

:SWEET1B_10563
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_10641
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10634
print_now 'SW1B_G' {time} 10000 {flag} 1
switch_entry_exit 'LACRAK' {state} True
goto @SWEET1B_15554

:SWEET1B_10634
goto @SWEET1B_10563

:SWEET1B_10641
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE1_YX' {time} 10000 {flag} 1

:SWEET1B_10661
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_10739
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10732
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_10732
goto @SWEET1B_10661

:SWEET1B_10739
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4000
69@ = 0
skip_cutscene_start_internal @SWEET1B_11978

:SWEET1B_10760
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_10838
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10831
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_10831
goto @SWEET1B_10760

:SWEET1B_10838
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE1_YY' {time} 10000 {flag} 1

:SWEET1B_10858
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_10936
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_10929
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_10929
goto @SWEET1B_10858

:SWEET1B_10936
load_mission_audio MissionAudioSlot.Slot2 {audioId} 4001
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_11070

:SWEET1B_10959
if 
  not locate_char_any_means_3d $ryder {x} 320.0 {y} 1122.3 {z} 1082.8 {xRadius} 0.9 {yRadius} 0.9 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_11070
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11063
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_11063
goto @SWEET1B_10959

:SWEET1B_11070
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_11256
if 
  not is_char_dead 49@
goto_if_false @SWEET1B_11256
task_play_anim $ryder {animationName} "BAT_4" {animationFile} "BASEBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERA = 0

:SWEET1B_11146
if 
  TIMERA <= 400
goto_if_false @SWEET1B_11176
wait 0
goto @SWEET1B_11146

:SWEET1B_11176
if 
  not is_char_dead 49@
goto_if_false @SWEET1B_11249
report_mission_audio_event_at_position 320.1898 {y} 1123.292 {z} 1082.875 {soundId} ScriptSound.SoundBaseballBatHitPed
task_die_named_anim 49@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 49@ {state} False

:SWEET1B_11249
92@ = 1

:SWEET1B_11256
if 
  not is_char_dead 64@
goto_if_false @SWEET1B_11380
task_go_straight_to_coord 64@ {x} 323.8 {y} 1124.35 {z} 1082.89 {speed} MoveState.Walk {time} 10000
if 
  not is_char_dead 65@
goto_if_false @SWEET1B_11380
clear_char_tasks 65@
set_char_coordinates 65@ {x} 325.3923 {y} 1131.8879 {z} 1082.8831
set_char_heading 65@ {heading} 246.147
task_play_anim 65@ {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_11380
TIMERA = 0

:SWEET1B_11387
if 
  TIMERA <= 700
goto_if_false @SWEET1B_11469
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11462
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_11462
goto @SWEET1B_11387

:SWEET1B_11469
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_11528
set_char_coordinates 37@ {x} 310.1843 {y} 1122.598 {z} 1082.89
set_char_heading 37@ {heading} 270.0
remove_blip 38@
perform_sequence_task 37@ {sequence} 68@

:SWEET1B_11528
set_fixed_camera_position 319.2787 {y} 1121.339 {z} 1083.123 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 318.3951 {y} 1121.7729 {z} 1083.297 {switchStyle} SwitchType.JumpCut
clear_look_at $scplayer
TIMERA = 0

:SWEET1B_11591
if 
  TIMERA <= 2500
goto_if_false @SWEET1B_11673
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11666
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_11666
goto @SWEET1B_11591

:SWEET1B_11673
if 
  not is_char_dead 62@
goto_if_false @SWEET1B_11744
set_char_coordinates 62@ {x} 329.29 {y} 1122.13 {z} 1082.88
set_char_heading 62@ {heading} 90.0
task_go_straight_to_coord 62@ {x} 325.25 {y} 1122.5 {z} 1082.88 {speed} MoveState.Run {time} 10000

:SWEET1B_11744
set_fixed_camera_position 318.6783 {y} 1118.741 {z} 1084.642 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 319.4823 {y} 1119.317 {z} 1084.494 {switchStyle} SwitchType.JumpCut

:SWEET1B_11795
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_11873
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11866
print_now 'SW1B_G' {time} 10000 {flag} 1
switch_entry_exit 'LACRAK' {state} True
goto @SWEET1B_15554

:SWEET1B_11866
goto @SWEET1B_11795

:SWEET1B_11873
play_mission_audio MissionAudioSlot.Slot2
print_now 'BALLA_2' {time} 10000 {flag} 1

:SWEET1B_11893
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_11971
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_11964
switch_entry_exit 'LACRAK' {state} True
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_11964
goto @SWEET1B_11893

:SWEET1B_11971
69@ = 1

:SWEET1B_11978
skip_cutscene_end 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34223
if 
  69@ == 0
goto_if_false @SWEET1B_12417
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:SWEET1B_12022
if 
  get_fading_status 
goto_if_false @SWEET1B_12046
wait 0
goto @SWEET1B_12022

:SWEET1B_12046
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4000
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34223
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_12129
set_char_coordinates 37@ {x} 310.1843 {y} 1122.598 {z} 1082.89
set_char_heading 37@ {heading} 270.0
remove_blip 38@
perform_sequence_task 37@ {sequence} 68@

:SWEET1B_12129
if 
  not is_char_dead 64@
goto_if_false @SWEET1B_12283
set_char_coordinates 64@ {x} 323.5565 {y} 1124.3621 {z} 1082.8831
set_char_heading 64@ {heading} 132.073
task_go_straight_to_coord 64@ {x} 323.8 {y} 1124.35 {z} 1082.89 {speed} MoveState.Walk {time} 10000
if 
  not is_char_dead 65@
goto_if_false @SWEET1B_12283
clear_char_tasks 65@
set_char_coordinates 65@ {x} 325.3923 {y} 1131.8879 {z} 1082.8831
set_char_heading 65@ {heading} 246.147
task_play_anim 65@ {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET1B_12283
if 
  not is_char_dead 62@
goto_if_false @SWEET1B_12354
set_char_coordinates 62@ {x} 326.96 {y} 1122.52 {z} 1082.89
set_char_heading 62@ {heading} 90.0
task_go_straight_to_coord 62@ {x} 325.25 {y} 1122.5 {z} 1082.88 {speed} MoveState.Walk {time} 10000

:SWEET1B_12354
if 
  not is_char_dead 49@
goto_if_false @SWEET1B_12400
task_die_named_anim 49@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0

:SWEET1B_12400
wait 1000
clear_look_at $scplayer
do_fade 500 {direction} Fade.In

:SWEET1B_12417
clear_sequence_task 68@
remove_animation "BLOWJOBZ"
remove_animation "BASEBALL"
remove_animation "DEALER"
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  not is_char_dead 64@
goto_if_false @SWEET1B_12495
task_kill_char_on_foot 64@ {target} $scplayer

:SWEET1B_12495
if 
  not is_char_dead 62@
goto_if_false @SWEET1B_12566
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_12566
task_kill_char_on_foot $ryder {target} 62@
task_kill_char_on_foot 62@ {target} $ryder
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Player1 {toPedType} PedType.Mission1
drop_object 62@ {state} True

:SWEET1B_12566
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_12601
play_mission_audio MissionAudioSlot.Slot1
print_now 'BALLA_1' {time} 2000 {flag} 1

:SWEET1B_12601
TIMERA = 0
63@ = 1
goto @SWEET1B_13032

:SWEET1B_12622
if 
  TIMERA > 2000
goto_if_false @SWEET1B_12701
if 
  103@ == 0
goto_if_false @SWEET1B_12701
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_12701
play_mission_audio MissionAudioSlot.Slot2
print_now 'RYDX_BC' {time} 2000 {flag} 1
103@ = 1

:SWEET1B_12701
if 
  TIMERA > 4000
goto_if_false @SWEET1B_12761
if 
  103@ == 1
goto_if_false @SWEET1B_12761
print_now 'SW1B_B' {time} 6000 {flag} 1
103@ = 2

:SWEET1B_12761
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_12935
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_12935
if 
  105@ == 0
goto_if_false @SWEET1B_12864
if 
  TIMERA > 3000
goto_if_false @SWEET1B_12864
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_12864
print_help 'MEL_HLP'
105@ = 1

:SWEET1B_12864
if 
  105@ == 1
goto_if_false @SWEET1B_12935
if 
  TIMERA > 9000
goto_if_false @SWEET1B_12935
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_12935
print_help 'MELHLP2'
105@ = 2

:SWEET1B_12935
if 
  63@ == 1
goto_if_false @SWEET1B_13032
if or
  is_char_dead 62@
  is_char_dead 37@
goto_if_false @SWEET1B_13032
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_13032
remove_char_from_group $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
63@ = 2

:SWEET1B_13032
if 
  63@ > 0
goto_if_false @SWEET1B_13241
if 
  is_char_dead 37@
goto_if_false @SWEET1B_13071
remove_blip 45@

:SWEET1B_13071
if 
  is_char_dead 62@
goto_if_false @SWEET1B_13092
remove_blip 88@

:SWEET1B_13092
if 
  is_char_dead 64@
goto_if_false @SWEET1B_13113
remove_blip 89@

:SWEET1B_13113
if and
  is_char_dead 64@
  is_char_dead 62@
  is_char_dead 37@
goto_if_false @SWEET1B_13146
43@ = 1

:SWEET1B_13146
if 
  60@ == 0
goto_if_false @SWEET1B_13241
if 
  not is_char_dead 37@
goto_if_false @SWEET1B_13241
if or
  is_char_dead 62@
  is_char_dead 64@
  locate_char_any_means_char_3d $scplayer {target} 37@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET1B_13241
task_kill_char_on_foot 37@ {target} $scplayer
60@ = 1

:SWEET1B_13241
if 
  78@ == 5
goto_if_false @SWEET1B_13643
if 
  not is_char_dead 36@
goto_if_false @SWEET1B_13355
if 
  not is_char_health_greater 36@ {health} 80
goto_if_false @SWEET1B_13355
if 
  71@ == 0
goto_if_false @SWEET1B_13355
task_die_named_anim 36@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 36@ {state} True
71@ = 1

:SWEET1B_13355
if 
  not is_char_dead 54@
goto_if_false @SWEET1B_13451
if 
  not is_char_health_greater 54@ {health} 80
goto_if_false @SWEET1B_13451
if 
  72@ == 0
goto_if_false @SWEET1B_13451
task_die_named_anim 54@ {animationName} "CRCKDETH1" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 54@ {state} True
72@ = 1

:SWEET1B_13451
if 
  not is_char_dead 61@
goto_if_false @SWEET1B_13547
if 
  not is_char_health_greater 61@ {health} 80
goto_if_false @SWEET1B_13547
if 
  74@ == 0
goto_if_false @SWEET1B_13547
task_die_named_anim 61@ {animationName} "CRCKDETH4" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 61@ {state} True
74@ = 1

:SWEET1B_13547
if 
  not is_char_dead 59@
goto_if_false @SWEET1B_13643
if 
  not is_char_health_greater 59@ {health} 80
goto_if_false @SWEET1B_13643
if 
  70@ == 0
goto_if_false @SWEET1B_13643
task_die_named_anim 59@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 59@ {state} True
70@ = 1

:SWEET1B_13643
gosub @SWEET1B_16372
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_13689
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_13689
goto @SWEET1B_8674

:SWEET1B_13696
wait 2000
switch_entry_exit 'LACRAK' {state} True
enable_entry_exit_player_group_warping 2165.72 {y} -1673.14 {radius} 10.0 {state} True
enable_entry_exit_player_group_warping 319.56 {y} 1117.64 {radius} 10.0 {state} True
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed #CIGAR
activate_interior_peds True
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_13844
clear_char_tasks_immediately $ryder
remove_char_from_group $ryder
clear_look_at $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False
47@ = 1

:SWEET1B_13844
print_now 'SW1B_F' {time} 10000 {flag} 1
remove_blip 45@
remove_blip 38@
38@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
$blob_flag = 1
102@ = 4
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_13920

:SWEET1B_13920
107@ = 0
58@ = 0
101@ = 0
92@ = 0
87@ = 3
gosub @SWEET1B_47

:SWEET1B_13962
if or
  not locate_char_any_means_3d $scplayer {x} 2513.3 {y} -1671.9 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not locate_char_any_means_3d $ryder {x} 2513.3 {y} -1671.9 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET1B_15007
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_14091
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_14091
if 
  107@ == 1
goto_if_false @SWEET1B_14116
gosub @SWEET1B_16372

:SWEET1B_14116
78@ = get_area_visible 
if 
  78@ == 0
goto_if_false @SWEET1B_14559
if 
  107@ == 0
goto_if_false @SWEET1B_14370
if 
  locate_char_any_means_3d $scplayer {x} 2167.6011 {y} -1672.592 {z} 14.081 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET1B_14370
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14363
if 
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_14363
clear_area 2164.9609 {y} -1673.7581 {z} 14.0803 {radius} 1.0 {clearParticles} True
set_char_coordinates $ryder {x} 2164.9609 {y} -1673.7581 {z} 14.0803
set_char_heading $ryder {heading} 280.1246
set_char_area_visible $ryder {areaId} 0
clear_char_tasks_immediately $ryder
remove_char_from_group $ryder
clear_look_at $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False

:SWEET1B_14363
107@ = 1

:SWEET1B_14370
if 
  107@ == 1
goto_if_false @SWEET1B_14559
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14559
if 
  78@ == 0
goto_if_false @SWEET1B_14559
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14559
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_14559
switch_entry_exit 'LACRAK' {state} False
if and
  is_char_on_foot $scplayer
  is_char_on_foot $ryder
goto_if_false @SWEET1B_14515
gosub @SWEET1B_17075

:SWEET1B_14515
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_14559
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $ryder
goto_if_false @SWEET1B_14559
gosub @SWEET1B_17075

:SWEET1B_14559
if 
  78@ == 5
goto_if_false @SWEET1B_14961
if 
  not is_char_dead 36@
goto_if_false @SWEET1B_14673
if 
  not is_char_health_greater 36@ {health} 80
goto_if_false @SWEET1B_14673
if 
  71@ == 0
goto_if_false @SWEET1B_14673
task_die_named_anim 36@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 36@ {state} True
71@ = 1

:SWEET1B_14673
if 
  not is_char_dead 54@
goto_if_false @SWEET1B_14769
if 
  not is_char_health_greater 54@ {health} 80
goto_if_false @SWEET1B_14769
if 
  72@ == 0
goto_if_false @SWEET1B_14769
task_die_named_anim 54@ {animationName} "CRCKDETH1" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 54@ {state} True
72@ = 1

:SWEET1B_14769
if 
  not is_char_dead 61@
goto_if_false @SWEET1B_14865
if 
  not is_char_health_greater 61@ {health} 80
goto_if_false @SWEET1B_14865
if 
  74@ == 0
goto_if_false @SWEET1B_14865
task_die_named_anim 61@ {animationName} "CRCKDETH4" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 61@ {state} True
74@ = 1

:SWEET1B_14865
if 
  not is_char_dead 59@
goto_if_false @SWEET1B_14961
if 
  not is_char_health_greater 59@ {health} 80
goto_if_false @SWEET1B_14961
if 
  70@ == 0
goto_if_false @SWEET1B_14961
task_die_named_anim 59@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 59@ {state} True
70@ = 1

:SWEET1B_14961
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_15000
print_now 'SW1B_G' {time} 10000 {flag} 1
goto @SWEET1B_15554

:SWEET1B_15000
goto @SWEET1B_13962

:SWEET1B_15007
58@ = 0
101@ = 0
92@ = 0
87@ = 7
gosub @SWEET1B_47
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
wait 500
do_fade 1000 {direction} Fade.Out

:SWEET1B_15072
if 
  get_fading_status 
goto_if_false @SWEET1B_15096
wait 0
goto @SWEET1B_15072

:SWEET1B_15096
request_animation "GANGS"

:SWEET1B_15105
if 
  not has_animation_loaded "GANGS"
goto_if_false @SWEET1B_15136
wait 0
goto @SWEET1B_15105

:SWEET1B_15136
set_fixed_camera_position 2518.491 {y} -1679.401 {z} 14.4781 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2518.0859 {y} -1678.499 {z} 14.6304 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET1B_15230
set_char_coordinates $scplayer {x} 2517.5239 {y} -1678.4969 {z} 13.3912
goto @SWEET1B_15250

:SWEET1B_15230
warp_char_from_car_to_coord $scplayer {x} 2517.5239 {y} -1678.4969 {z} 13.3912

:SWEET1B_15250
set_char_heading $scplayer {heading} 328.5351
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_15399
clear_char_tasks_immediately $ryder
remove_char_from_group $ryder
clear_look_at $ryder
clear_char_tasks $ryder
hide_char_weapon_for_scripted_cutscene $ryder {state} True
if 
  not is_char_in_any_car $ryder
goto_if_false @SWEET1B_15353
set_char_coordinates $ryder {x} 2518.314 {y} -1676.907 {z} 13.3726
goto @SWEET1B_15373

:SWEET1B_15353
warp_char_from_car_to_coord $ryder {x} 2518.314 {y} -1676.907 {z} 13.3726

:SWEET1B_15373
task_turn_char_to_face_char $ryder {target} $scplayer
task_turn_char_to_face_char $scplayer {target} $ryder
set_char_heading $scplayer {heading} 180.0

:SWEET1B_15399
wait 500
do_fade 1000 {direction} Fade.In

:SWEET1B_15411
if 
  58@ <> 3
goto_if_false @SWEET1B_15447
wait 0
gosub @SWEET1B_17075
goto @SWEET1B_15411

:SWEET1B_15447
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_15488
task_go_straight_to_coord $ryder {x} 2522.9971 {y} -1679.196 {z} 14.497 {speed} MoveState.Walk {time} 4000

:SWEET1B_15488
if 
  58@ <> 4
goto_if_false @SWEET1B_15524
wait 0
gosub @SWEET1B_17075
goto @SWEET1B_15488

:SWEET1B_15524
wait 1000
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
delete_char $ryder
goto @SWEET1B_15979

:SWEET1B_15554
78@ = get_area_visible 
if 
  78@ == 5
goto_if_false @SWEET1B_15590
switch_entry_exit 'LACRAK' {state} True

:SWEET1B_15590
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
78@ = get_area_visible 
if 
  78@ == 5
goto_if_false @SWEET1B_15977
if 
  63@ == 1
goto_if_false @SWEET1B_15977
if 
  not is_char_dead 36@
goto_if_false @SWEET1B_15725
if 
  71@ == 0
goto_if_false @SWEET1B_15725
task_die_named_anim 36@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 36@ {state} True
71@ = 1

:SWEET1B_15725
if 
  not is_char_dead 54@
goto_if_false @SWEET1B_15803
if 
  72@ == 0
goto_if_false @SWEET1B_15803
task_die_named_anim 54@ {animationName} "CRCKDETH1" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 54@ {state} True
72@ = 1

:SWEET1B_15803
if 
  not is_char_dead 61@
goto_if_false @SWEET1B_15881
if 
  74@ == 0
goto_if_false @SWEET1B_15881
task_die_named_anim 61@ {animationName} "CRCKDETH4" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 61@ {state} True
74@ = 1

:SWEET1B_15881
if 
  not is_char_dead 59@
goto_if_false @SWEET1B_15977
if 
  not is_char_health_greater 59@ {health} 80
goto_if_false @SWEET1B_15977
if 
  70@ == 0
goto_if_false @SWEET1B_15977
task_die_named_anim 59@ {animationName} "CRCKDETH3" {animationFile} "CRACK" {blendSpeed} 4.0 {time} 0
drop_object 59@ {state} True
70@ = 1

:SWEET1B_15977
return 

:SWEET1B_15979
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET1B'
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 40
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
return 

:SWEET1B_16064
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'LACRAK'
start_new_script @ENTEXT 
if 
  is_player_playing $player1
goto_if_false @SWEET1B_16123
set_player_drunkenness $player1 {intensity} 0

:SWEET1B_16123
$onmission = 0
$timer_mobile_start = get_game_timer 
switch_roads_on 2272.9221 {leftBottomY} -1649.556 {leftBottomZ} 14.3311 {rightTopX} 2266.1011 {rightTopY} -1633.219 {rightTopZ} 14.3505
switch_ped_roads_on 324.1973 {leftBottomY} 1116.7581 {leftBottomZ} 1082.8979 {rightTopX} 313.1226 {rightTopY} 1124.197 {rightTopZ} 1082.8979
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed #CIGAR
mark_model_as_no_longer_needed 492
enable_entry_exit_player_group_warping 2165.72 {y} -1673.14 {radius} 10.0 {state} False
enable_entry_exit_player_group_warping 319.56 {y} 1117.64 {radius} 10.0 {state} False
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "BLOWJOBZ"
remove_animation "BASEBALL"
remove_animation "DEALER"
remove_pickup 79@
remove_blip 44@
remove_blip 45@
remove_blip 38@
remove_blip 39@
switch_car_generator $gen_car7 {amount} 101
remove_char_elegantly $ryder
unload_special_character 1
enable_ambient_crime True
mission_has_finished 
return 

:SWEET1B_16372
78@ = get_area_visible 
if 
  78@ == 0
goto_if_false @SWEET1B_17073
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_17073
if 
  not locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_16585
if 
  47@ == 0
goto_if_false @SWEET1B_16578
if 
  43@ == 0
goto_if_false @SWEET1B_16496
switch_entry_exit 'LACRAK' {state} False

:SWEET1B_16496
remove_blip 45@
remove_blip 44@
remove_blip 39@
remove_blip 38@
39@ = add_blip_for_char $ryder
set_blip_as_friendly 39@ {state} True
remove_char_from_group $ryder
clear_char_tasks $ryder
gosub @SWEET1B_17920
print_now 'SW1B_H' {time} 6000 {flag} 1
$blob_flag = 0
47@ = 1

:SWEET1B_16578
goto @SWEET1B_17073

:SWEET1B_16585
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_17073
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SWEET1B_17073
if 
  47@ == 1
goto_if_false @SWEET1B_17073
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_16711
remove_blip 39@
remove_char_from_group $ryder
$Players_Group = get_player_group $player1
set_group_member $Players_Group {handle} $ryder
set_player_group_recruitment $player1 {state} False
listen_to_player_group_commands $ryder {state} False

:SWEET1B_16711
if 
  102@ == 0
goto_if_false @SWEET1B_16770
remove_blip 38@
38@ = add_blip_for_coord 2301.0701 {y} -1754.4 {z} 12.54
print_now 'SW1B_A' {time} 7000 {flag} 1

:SWEET1B_16770
if 
  102@ == 1
goto_if_false @SWEET1B_16833
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_16817
remove_blip 44@
44@ = add_blip_for_char 35@

:SWEET1B_16817
print_now 'SW1B_B' {time} 7000 {flag} 1

:SWEET1B_16833
if 
  102@ == 2
goto_if_false @SWEET1B_16910
if 
  78@ == 0
goto_if_false @SWEET1B_16894
remove_blip 38@
38@ = add_blip_for_coord 2171.781 {y} -1676.78 {z} 14.0859

:SWEET1B_16894
print_now 'SW1B_1' {time} 7000 {flag} 1

:SWEET1B_16910
if 
  102@ == 3
goto_if_false @SWEET1B_17000
switch_entry_exit 'LACRAK' {state} True
if 
  78@ == 0
goto_if_false @SWEET1B_16984
remove_blip 38@
38@ = add_blip_for_coord 2169.72 {y} -1673.14 {z} 13.01

:SWEET1B_16984
print_now 'SW1B_1' {time} 7000 {flag} 1

:SWEET1B_17000
if 
  102@ == 4
goto_if_false @SWEET1B_17059
remove_blip 38@
38@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
print_now 'SW1B_F' {time} 7000 {flag} 1

:SWEET1B_17059
$blob_flag = 1
47@ = 0

:SWEET1B_17073
return 

:SWEET1B_17075
if or
  101@ == 0
  101@ == 1
goto_if_false @SWEET1B_17145
if 
  is_int_lvar_greater_or_equal_to_int_lvar 91@ >= 58@
goto_if_false @SWEET1B_17145
if 
  TIMERA > 200
goto_if_false @SWEET1B_17145
gosub @SWEET1B_17217

:SWEET1B_17145
if 
  101@ == 2
goto_if_false @SWEET1B_17215
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET1B_17215
gosub @SWEET1B_17626
101@ = 0
58@ += 1
92@ = 0
clear_prints 
TIMERA = 0

:SWEET1B_17215
return 

:SWEET1B_17217
if 
  101@ == 0
goto_if_false @SWEET1B_17253
load_mission_audio MissionAudioSlot.Slot1 {audioId} 93@(58@,8i)
101@ = 1

:SWEET1B_17253
if 
  101@ == 1
goto_if_false @SWEET1B_17318
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET1B_17318
print_now $sweet1b_chat(58@,8s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET1B_17320
101@ = 2

:SWEET1B_17318
return 

:SWEET1B_17320
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37446
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37447
goto_if_false @SWEET1B_17392
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_17392
shut_char_up_for_scripted_speech 35@ {state} True
start_char_facial_talk 35@ {duration} 3000
return 

:SWEET1B_17392
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37465
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37467
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37470
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37480
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37482
goto_if_false @SWEET1B_17490
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET1B_17490
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37448
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37451
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37483
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37486
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37456
goto_if_false @SWEET1B_17593
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
goto @SWEET1B_17624

:SWEET1B_17593
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_17624
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000

:SWEET1B_17624
return 

:SWEET1B_17626
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37446
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37447
goto_if_false @SWEET1B_17695
if 
  not is_char_dead 35@
goto_if_false @SWEET1B_17695
shut_char_up_for_scripted_speech 35@ {state} False
stop_char_facial_talk 35@
return 

:SWEET1B_17695
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37465
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37467
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37470
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37480
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37482
goto_if_false @SWEET1B_17790
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET1B_17790
if or
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37448
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37451
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37483
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37486
  is_int_lvar_equal_to_constant 93@(58@,8i) == 37456
goto_if_false @SWEET1B_17890
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @SWEET1B_17918

:SWEET1B_17890
if 
  not is_char_dead $ryder
goto_if_false @SWEET1B_17918
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder

:SWEET1B_17918
return 

:SWEET1B_17920
clear_mission_audio MissionAudioSlot.Slot2
if 
  109@ == 0
goto_if_false @SWEET1B_17951
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34211

:SWEET1B_17951
if 
  109@ == 1
goto_if_false @SWEET1B_17978
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34212

:SWEET1B_17978
if 
  109@ == 2
goto_if_false @SWEET1B_18005
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34213

:SWEET1B_18005
if 
  109@ == 3
goto_if_false @SWEET1B_18032
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34214

:SWEET1B_18032
if 
  109@ == 4
goto_if_false @SWEET1B_18059
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34215

:SWEET1B_18059
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET1B_18075
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET1B_18119
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_18112
return 

:SWEET1B_18112
goto @SWEET1B_18075

:SWEET1B_18119
play_mission_audio MissionAudioSlot.Slot2
if 
  109@ == 0
goto_if_false @SWEET1B_18157
print_now 'RYDX_AL' {time} 3000 {flag} 1

:SWEET1B_18157
if 
  109@ == 1
goto_if_false @SWEET1B_18191
print_now 'RYDX_AM' {time} 3000 {flag} 1

:SWEET1B_18191
if 
  109@ == 2
goto_if_false @SWEET1B_18225
print_now 'RYDX_AN' {time} 3000 {flag} 1

:SWEET1B_18225
if 
  109@ == 3
goto_if_false @SWEET1B_18259
print_now 'RYDX_AO' {time} 3000 {flag} 1

:SWEET1B_18259
if 
  109@ == 4
goto_if_false @SWEET1B_18293
print_now 'RYDX_AP' {time} 3000 {flag} 1

:SWEET1B_18293
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET1B_18337
wait 0
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_18330
return 

:SWEET1B_18330
goto @SWEET1B_18293

:SWEET1B_18337
109@ += 1
if 
  109@ > 4
goto_if_false @SWEET1B_18369
109@ = 0

:SWEET1B_18369
if 
  is_char_dead $ryder
goto_if_false @SWEET1B_18385

:SWEET1B_18385
return 

//-------------Mission 15---------------
// Originally: Drive-Thru

:SWEET3
script_name 'SWEET3'
gosub @SWEET3_1825
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET3_38
gosub @SWEET3_12890

:SWEET3_38
gosub @SWEET3_12979
terminate_this_script 

:SWEET3_47
switch_start 79@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SWEET3_1823 {caseNum1} 1 {caseLabel1} @SWEET3_175 {caseNum2} 2 {caseLabel2} @SWEET3_477 {caseNum3} 3 {caseLabel3} @SWEET3_779 {caseNum4} 4 {caseLabel4} @SWEET3_1009 {caseNum5} 5 {caseLabel5} @SWEET3_1215 {caseNum6} 6 {caseLabel6} @SWEET3_1445 {caseNum7} 7 {caseLabel7} @SWEET3_1579
switch_continued 8 {caseLabel1} @SWEET3_1689 {caseNum2} -1 {caseLabel2} @SWEET3_1823 {caseNum3} -1 {caseLabel3} @SWEET3_1823 {caseNum4} -1 {caseLabel4} @SWEET3_1823 {caseNum5} -1 {caseLabel5} @SWEET3_1823 {caseNum6} -1 {caseLabel6} @SWEET3_1823 {caseNum7} -1 {caseLabel7} @SWEET3_1823 {caseNum8} -1 {caseLabel8} @SWEET3_1823 {caseNum9} -1 {caseLabel9} @SWEET3_1823

:SWEET3_175
set_var_text_label s$sweet3_chat[0] = 'SWE2_BA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_BB'
set_var_text_label s$sweet3_chat[2] = 'SWE2_BC'
set_var_text_label s$sweet3_chat[3] = 'SWE2_BD'
set_var_text_label s$sweet3_chat[4] = 'SWE2_BE'
set_var_text_label s$sweet3_chat[5] = 'SWE2_BF'
set_var_text_label s$sweet3_chat[6] = 'SWE2_BG'
set_var_text_label s$sweet3_chat[7] = 'SWE2_BH'
set_var_text_label s$sweet3_chat[8] = 'SWE2_BJ'
set_var_text_label s$sweet3_chat[9] = 'SWE2_BK'
set_var_text_label s$sweet3_chat[10] = 'SWE2_BL'
set_var_text_label s$sweet3_chat[11] = 'SWE2_BM'
set_lvar_int_to_constant 66@ = 37601
set_lvar_int_to_constant 67@ = 37602
set_lvar_int_to_constant 68@ = 37603
set_lvar_int_to_constant 69@ = 37604
set_lvar_int_to_constant 70@ = 37605
set_lvar_int_to_constant 71@ = 37606
set_lvar_int_to_constant 72@ = 37607
set_lvar_int_to_constant 73@ = 37608
set_lvar_int_to_constant 74@ = 37609
set_lvar_int_to_constant 75@ = 37610
set_lvar_int_to_constant 76@ = 37611
set_lvar_int_to_constant 77@ = 37612
58@ = 11
goto @SWEET3_1823

:SWEET3_477
set_var_text_label s$sweet3_chat[0] = 'SWE2_CA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_CC'
set_var_text_label s$sweet3_chat[2] = 'SWE2_GA'
set_var_text_label s$sweet3_chat[3] = 'SWE2_GB'
set_var_text_label s$sweet3_chat[4] = 'SWE2_GC'
set_var_text_label s$sweet3_chat[5] = 'SWE2_GD'
set_var_text_label s$sweet3_chat[6] = 'SWE2_GE'
set_var_text_label s$sweet3_chat[7] = 'SWE2_HA'
set_var_text_label s$sweet3_chat[8] = 'SWE2_HB'
set_var_text_label s$sweet3_chat[9] = 'SWE2_HC'
set_var_text_label s$sweet3_chat[10] = 'SWE2_HD'
set_var_text_label s$sweet3_chat[11] = 'SWE2_HE'
set_lvar_int_to_constant 66@ = 37613
set_lvar_int_to_constant 67@ = 37615
set_lvar_int_to_constant 68@ = 37630
set_lvar_int_to_constant 69@ = 37631
set_lvar_int_to_constant 70@ = 37632
set_lvar_int_to_constant 71@ = 37633
set_lvar_int_to_constant 72@ = 37634
set_lvar_int_to_constant 73@ = 37635
set_lvar_int_to_constant 74@ = 37636
set_lvar_int_to_constant 75@ = 37637
set_lvar_int_to_constant 76@ = 37638
set_lvar_int_to_constant 77@ = 37639
58@ = 11
goto @SWEET3_1823

:SWEET3_779
set_var_text_label s$sweet3_chat[0] = 'SWE2_MA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_MB'
set_var_text_label s$sweet3_chat[2] = 'SWE2_MC'
set_var_text_label s$sweet3_chat[3] = 'SWE2_MD'
set_var_text_label s$sweet3_chat[4] = 'SWE2_ME'
set_var_text_label s$sweet3_chat[5] = 'SWE2_MF'
set_var_text_label s$sweet3_chat[6] = 'SWE2_MG'
set_var_text_label s$sweet3_chat[7] = 'SWE2_MH'
set_var_text_label s$sweet3_chat[8] = 'SWE2_MJ'
set_lvar_int_to_constant 66@ = 37651
set_lvar_int_to_constant 67@ = 37652
set_lvar_int_to_constant 68@ = 37653
set_lvar_int_to_constant 69@ = 37654
set_lvar_int_to_constant 70@ = 37655
set_lvar_int_to_constant 71@ = 37656
set_lvar_int_to_constant 72@ = 37657
set_lvar_int_to_constant 73@ = 37658
set_lvar_int_to_constant 74@ = 37659
58@ = 8
goto @SWEET3_1823

:SWEET3_1009
set_var_text_label s$sweet3_chat[0] = 'SWE2_NA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_NB'
set_var_text_label s$sweet3_chat[2] = 'SWE2_NC'
set_var_text_label s$sweet3_chat[3] = 'SWE2_ND'
set_var_text_label s$sweet3_chat[4] = 'SWE2_NE'
set_var_text_label s$sweet3_chat[5] = 'SWE2_NF'
set_var_text_label s$sweet3_chat[6] = 'SWE2_NG'
set_var_text_label s$sweet3_chat[7] = 'SWE2_NH'
set_lvar_int_to_constant 66@ = 37660
set_lvar_int_to_constant 67@ = 37661
set_lvar_int_to_constant 68@ = 37662
set_lvar_int_to_constant 69@ = 37663
set_lvar_int_to_constant 70@ = 37664
set_lvar_int_to_constant 71@ = 37665
set_lvar_int_to_constant 72@ = 37666
set_lvar_int_to_constant 73@ = 37667
58@ = 7
goto @SWEET3_1823

:SWEET3_1215
set_var_text_label s$sweet3_chat[0] = 'SWE2_OA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_OB'
set_var_text_label s$sweet3_chat[2] = 'SWE2_OC'
set_var_text_label s$sweet3_chat[3] = 'SWE2_OD'
set_var_text_label s$sweet3_chat[4] = 'SWE2_OE'
set_var_text_label s$sweet3_chat[5] = 'SWE2_OF'
set_var_text_label s$sweet3_chat[6] = 'SWE2_OG'
set_var_text_label s$sweet3_chat[7] = 'SWE2_OH'
set_var_text_label s$sweet3_chat[8] = 'SWE2_OJ'
set_lvar_int_to_constant 66@ = 37668
set_lvar_int_to_constant 67@ = 37669
set_lvar_int_to_constant 68@ = 37670
set_lvar_int_to_constant 69@ = 37671
set_lvar_int_to_constant 70@ = 37672
set_lvar_int_to_constant 71@ = 37673
set_lvar_int_to_constant 72@ = 37674
set_lvar_int_to_constant 73@ = 37675
set_lvar_int_to_constant 74@ = 37676
58@ = 8
goto @SWEET3_1823

:SWEET3_1445
set_var_text_label s$sweet3_chat[0] = 'SWE2_PA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_PB'
set_var_text_label s$sweet3_chat[2] = 'SWE2_PC'
set_var_text_label s$sweet3_chat[3] = 'SWE2_PD'
set_var_text_label s$sweet3_chat[4] = 'SWE2_PE'
set_lvar_int_to_constant 66@ = 37677
set_lvar_int_to_constant 67@ = 37678
set_lvar_int_to_constant 68@ = 37679
set_lvar_int_to_constant 69@ = 37680
set_lvar_int_to_constant 70@ = 37681
58@ = 4
goto @SWEET3_1823

:SWEET3_1579
set_var_text_label s$sweet3_chat[0] = 'SWE2_DA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_DB'
set_var_text_label s$sweet3_chat[2] = 'SWE2_DC'
set_var_text_label s$sweet3_chat[3] = 'SWE2_DD'
set_lvar_int_to_constant 66@ = 37616
set_lvar_int_to_constant 67@ = 37617
set_lvar_int_to_constant 68@ = 37618
set_lvar_int_to_constant 69@ = 37619
58@ = 3
goto @SWEET3_1823

:SWEET3_1689
set_var_text_label s$sweet3_chat[0] = 'SWE2_EA'
set_var_text_label s$sweet3_chat[1] = 'SWE2_EB'
set_var_text_label s$sweet3_chat[2] = 'SWE2_EC'
set_var_text_label s$sweet3_chat[3] = 'SWE2_ED'
set_var_text_label s$sweet3_chat[4] = 'SWE2_EE'
set_lvar_int_to_constant 66@ = 37620
set_lvar_int_to_constant 67@ = 37621
set_lvar_int_to_constant 68@ = 37622
set_lvar_int_to_constant 69@ = 37623
set_lvar_int_to_constant 70@ = 37624
58@ = 4
goto @SWEET3_1823

:SWEET3_1823
return 

:SWEET3_1825
register_mission_given 
$onmission = 1
96@ = 0
97@ = 0
41@ = 0
92@ = 0
83@ = 0
84@ = 0
91@ = 0
101@ = 0
102@ = 0
103@ = 0
59@ = 0
60@ = 0
47@ = 0
98@ = 0
99@ = 0
42@ = 0
56@ = 0
43@ = 0
51@ = 0
set_lvar_int_to_lvar_int 89@ = 45@
set_lvar_int_to_lvar_int 90@ = 46@
wait 0
load_mission_text 'SWEET3'
request_model 492

:SWEET3_2003
if 
  not has_model_loaded 492
goto_if_false @SWEET3_2030
wait 0
goto @SWEET3_2003

:SWEET3_2030
switch_car_generator $gen_car7 {amount} 0
clear_area 2516.636 {y} -1675.691 {z} 13.0101 {radius} 15.0 {clearParticles} True
clear_area 2508.7949 {y} -1671.707 {z} 12.3892 {radius} 15.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.7 {y} -1671.7 {z} 12.3
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_heading $sweet_car {heading} 166.9
set_can_burst_car_tyres $sweet_car {state} False
mark_model_as_no_longer_needed 492
load_cutscene 'SWEET2A'

:SWEET3_2180
if 
  not has_cutscene_loaded 
goto_if_false @SWEET3_2204
wait 0
goto @SWEET3_2180

:SWEET3_2204
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET3_2213
if 
  not has_cutscene_finished 
goto_if_false @SWEET3_2237
wait 0
goto @SWEET3_2213

:SWEET3_2237
do_fade 0 {direction} Fade.Out

:SWEET3_2243
if 
  get_fading_status 
goto_if_false @SWEET3_2267
wait 0
goto @SWEET3_2243

:SWEET3_2267
clear_cutscene 
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_special_character 3 {modelName} 'RYDER2'
request_model 372
request_model #CIGAR
load_all_models_now 

:SWEET3_2319
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_model_loaded 372
goto_if_false @SWEET3_2358
wait 0
goto @SWEET3_2319

:SWEET3_2358
if 
  not has_model_loaded #CIGAR
goto_if_false @SWEET3_2384
wait 0
goto @SWEET3_2358

:SWEET3_2384
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_2819
$big_smoke = create_char PedType.Mission1 {modelId} 290 {x} 2511.5139 {y} -1671.464 {z} 12.4607
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 84.5
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearLeft
give_weapon_to_char $big_smoke {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
93@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $big_smoke {handleOrTemplate} 93@
set_char_get_out_upside_down_car $big_smoke {state} False
$sweet = create_char PedType.Mission1 {modelId} 291 {x} 2507.886 {y} -1667.801 {z} 12.3881
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_heading $sweet {heading} 167.8
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearRight
give_weapon_to_char $sweet {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 500
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
94@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $sweet {handleOrTemplate} 94@
set_char_get_out_upside_down_car $sweet {state} False
$ryder = create_char PedType.Mission1 {modelId} 292 {x} 2506.3479 {y} -1673.5909 {z} 12.3784
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_heading $ryder {heading} 346.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $ryder {vehicle} $sweet_car {time} 10000 {seat} SeatId.BikeRear
give_weapon_to_char $ryder {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_char_health $ryder {health} 500
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
95@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker $ryder {handleOrTemplate} 95@
set_char_get_out_upside_down_car $ryder {state} False
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Gang2

:SWEET3_2819
set_radio_channel RadioChannel.BounceFM
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
set_fading_colour 0 {g} 0 {b} 0
clear_area 2516.54 {y} -1671.2 {z} 12.87 {radius} 2.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2516.54 {y} -1671.2 {z} 12.87
set_char_heading $scplayer {heading} 81.2
load_scene_in_direction 2516.54 {y} -1671.2 {z} 12.87 {heading} 81.2
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_2967
goto @SWEET3_12890

:SWEET3_2967
TIMERB = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37600

:SWEET3_2983
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET3_3048
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3041
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_3041
goto @SWEET3_2983

:SWEET3_3048
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE2_AA' {time} 10000 {flag} 1

:SWEET3_3068
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET3_3133
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3126
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_3126
goto @SWEET3_3068

:SWEET3_3133
86@ = 0
85@ = 0
87@ = 0
79@ = 1
gosub @SWEET3_47
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3207
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_3207
print_now 'TWAR2_A' {time} 6000 {flag} 1
TIMERB = 0
$blob_flag = 0
59@ = 0

:SWEET3_3244
if or
  not locate_car_3d $sweet_car {x} 2404.1001 {y} -1891.5 {z} 12.3 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET3_4433
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SWEET3_3332
goto @SWEET3_12908

:SWEET3_3332
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3378
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890
goto @SWEET3_4270

:SWEET3_3378
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_4270
if 
  56@ == 0
goto_if_false @SWEET3_3670
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_3583
if 
  59@ == 0
goto_if_false @SWEET3_3511
remove_blip 39@
39@ = add_blip_for_coord 2404.1001 {y} -1891.5 {z} 12.3
print_now 'TWAR2_C' {time} 6000 {flag} 1
$blob_flag = 1
TIMERB = 0
59@ = 1

:SWEET3_3511
if 
  43@ == 0
goto_if_false @SWEET3_3569
if 
  TIMERB > 4000
goto_if_false @SWEET3_3562
gosub @SWEET3_13144
43@ = 1

:SWEET3_3562
goto @SWEET3_3576

:SWEET3_3569
gosub @SWEET3_13144

:SWEET3_3576
goto @SWEET3_3670

:SWEET3_3583
if 
  59@ == 1
goto_if_false @SWEET3_3670
remove_blip 39@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_15488
print_now 'TW2_X' {time} 3000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
59@ = 0

:SWEET3_3670
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_4270
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37647

:SWEET3_3698
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_3880
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_3756
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_3756
if 
  is_char_dead $ryder
goto_if_false @SWEET3_3795
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_3795
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_3834
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_3834
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_3873
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_3873
goto @SWEET3_3698

:SWEET3_3880
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KC' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_4065
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_4065
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_3978
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_3978
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_4018
task_leave_car_immediately $ryder {vehicle} $sweet_car
task_smart_flee_char $ryder {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_4018
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_4058
task_leave_car_immediately $sweet {vehicle} $sweet_car
task_smart_flee_char $sweet {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_4058
56@ = 1

:SWEET3_4065
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_4247
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_4123
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4123
if 
  is_char_dead $ryder
goto_if_false @SWEET3_4162
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4162
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_4201
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4201
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_4240
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4240
goto @SWEET3_4065

:SWEET3_4247
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4270
if 
  is_char_dead $sweet
goto_if_false @SWEET3_4309
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4309
if 
  is_char_dead $ryder
goto_if_false @SWEET3_4348
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4348
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_4387
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4387
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_4426
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_4426
goto @SWEET3_3244

:SWEET3_4433
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
set_fixed_camera_position 2405.9751 {y} -1882.475 {z} 15.2036 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2405.5691 {y} -1883.389 {z} 15.2158 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.Out

:SWEET3_4504
if 
  get_fading_status 
goto_if_false @SWEET3_4528
wait 0
goto @SWEET3_4504

:SWEET3_4528
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET3_4571
set_char_coordinates $scplayer {x} 2364.1931 {y} -1914.077 {z} 12.4235
goto @SWEET3_4591

:SWEET3_4571
warp_char_from_car_to_coord $scplayer {x} 2364.1931 {y} -1914.077 {z} 12.4235

:SWEET3_4591
delete_char $big_smoke
delete_char $sweet
delete_char $ryder
delete_car $sweet_car
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed #CIGAR
unload_special_character 1
unload_special_character 2
unload_special_character 3
load_scene_in_direction 2397.644 {y} -1880.276 {z} 23.8686 {heading} 160.0
clear_area 2404.1001 {y} -1891.5 {z} 12.3 {radius} 120.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'SWEET2B'

:SWEET3_4716
if 
  not has_cutscene_loaded 
goto_if_false @SWEET3_4740
wait 0
goto @SWEET3_4716

:SWEET3_4740
clear_area 2404.1001 {y} -1891.5 {z} 12.3 {radius} 120.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET3_4773
if 
  not has_cutscene_finished 
goto_if_false @SWEET3_4797
wait 0
goto @SWEET3_4773

:SWEET3_4797
do_fade 0 {direction} Fade.Out

:SWEET3_4803
if 
  get_fading_status 
goto_if_false @SWEET3_4827
wait 0
goto @SWEET3_4803

:SWEET3_4827
clear_cutscene 
request_model 412
request_model 107
request_model 106
request_model 103
request_model 492
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_special_character 3 {modelName} 'RYDER2'
request_model 372
load_all_models_now 

:SWEET3_4897
if or
  not has_model_loaded 412
  not has_model_loaded 107
  not has_model_loaded 103
  not has_model_loaded 492
goto_if_false @SWEET3_4937
wait 0
goto @SWEET3_4897

:SWEET3_4937
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_model_loaded 372
goto_if_false @SWEET3_4976
wait 0
goto @SWEET3_4937

:SWEET3_4976
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
remove_blip 39@
65@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} -1 {x} 2410.739 {y} -1960.027 {z} 12.3906 {speed} 13.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2326.9031 {y} -1969.676 {z} 12.3738 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2235.262 {y} -1891.301 {z} 12.3828 {speed} 18.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2094.3069 {y} -1891.856 {z} 12.3738 {speed} 18.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2105.8201 {y} -1754.177 {z} 12.3984 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2321.9141 {y} -1736.094 {z} 12.3828 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2498.3201 {y} -1658.28 {z} 12.36 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} -1 {x} 2502.8899 {y} -1674.71 {z} 12.37 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 412 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 65@
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2396.3601 {y} -1917.96 {z} 12.38
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
change_car_colour $sweet_car {color1} 59 {color2} 34
set_can_burst_car_tyres $sweet_car {state} False
mark_model_as_no_longer_needed 492
$big_smoke = create_char_as_passenger $sweet_car {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.RearRight
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_char_heading $big_smoke {heading} 84.5
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearLeft
give_weapon_to_char $big_smoke {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 93@
set_char_get_out_upside_down_car $big_smoke {state} False
$sweet = create_char_as_passenger $sweet_car {pedType} PedType.Mission1 {modelId} 291 {seat} SeatId.RearLeft
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_heading $sweet {heading} 167.8
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 10000 {seat} SeatId.RearRight
give_weapon_to_char $sweet {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 500
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 94@
set_char_get_out_upside_down_car $sweet {state} False
$ryder = create_char_as_passenger $sweet_car {pedType} PedType.Mission1 {modelId} 292 {seat} SeatId.BikeRear
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_heading $ryder {heading} 346.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $ryder {vehicle} $sweet_car {time} 10000 {seat} SeatId.BikeRear
give_weapon_to_char $ryder {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_char_health $ryder {health} 500
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_decision_maker $ryder {handleOrTemplate} 95@
set_char_get_out_upside_down_car $ryder {state} False
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_5792
clear_area 2396.3601 {y} -1917.96 {z} 12.38 {radius} 10.0 {clearParticles} True
set_car_coordinates $sweet_car {x} 2396.3601 {y} -1917.96 {z} 12.38
set_car_heading $sweet_car {heading} 267.3
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_5792
warp_char_into_car $scplayer {vehicle} $sweet_car

:SWEET3_5792
clear_area 2411.3101 {y} -1928.837 {z} 12.3906 {radius} 10.0 {clearParticles} True
40@ = create_car 412 {x} 2411.3101 {y} -1928.837 {z} 12.3906
change_car_colour 40@ {color1} 22 {color2} 22
set_can_burst_car_tyres 40@ {state} False
set_load_collision_for_car_flag 40@ {state} False
set_car_health 40@ {health} 3000
lock_car_doors 40@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heading 40@ {heading} 178.7106
52@ = add_blip_for_car 40@
89@ = create_char_inside_car 40@ {pedType} PedType.Mission2 {modelId} 103
set_char_suffers_critical_hits 89@ {state} False
give_weapon_to_char 89@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_current_char_weapon 89@ {weaponType} WeaponType.Tec9
set_char_accuracy 89@ {accuracy} 40
perform_sequence_task 89@ {sequence} 65@
clear_sequence_task 65@
90@ = create_char_as_passenger 40@ {pedType} PedType.Mission2 {modelId} 103 {seat} SeatId.BikeRear
set_char_suffers_critical_hits 90@ {state} False
give_weapon_to_char 90@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_current_char_weapon 90@ {weaponType} WeaponType.Tec9
set_char_accuracy 90@ {accuracy} 40
task_drive_by 90@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60
53@ = create_char PedType.Mission1 {modelId} 106 {x} 2506.45 {y} -1681.02 {z} 12.53
set_char_heading 53@ {heading} 80.0
set_char_health 53@ {health} 30
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_stay_in_same_place 53@ {state} True
set_char_never_targetted 53@ {state} True
54@ = create_char PedType.Mission1 {modelId} 107 {x} 2507.3 {y} -1680.1 {z} 13.0
set_char_heading 54@ {heading} 90.0
set_char_health 54@ {health} 30
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 99999
set_char_stay_in_same_place 54@ {state} True
set_char_never_targetted 54@ {state} True
task_chat_with_char 53@ {other} 54@ {leadSpeaker} True {_p4} 1
task_chat_with_char 54@ {other} 53@ {leadSpeaker} False {_p4} 1
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_6296
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_6296
set_car_health $sweet_car {health} 3100
if 
  is_char_in_car $ryder {vehicle} $sweet_car
goto_if_false @SWEET3_6296
set_current_char_weapon $ryder {weaponType} WeaponType.Tec9
task_drive_by $ryder {targetChar} -1 {targetVehicle} 40@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 45

:SWEET3_6296
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_6383
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_6383
if 
  is_char_in_car $sweet {vehicle} $sweet_car
goto_if_false @SWEET3_6383
task_drive_by $sweet {targetChar} -1 {targetVehicle} 40@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 45

:SWEET3_6383
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 107
restore_camera_jumpcut 
set_camera_behind_player 
TIMERB = 0
60@ = 0
91@ = 0
59@ = 0
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Gang2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
load_scene_in_direction 2396.3601 {y} -1917.96 {z} 12.38 {heading} 267.3
do_fade 1000 {direction} Fade.In
86@ = 0
85@ = 0
87@ = 0
79@ = 2
gosub @SWEET3_47
43@ = 0
100@ = 0
clear_wanted_level $player1
enable_ambient_crime False
36@ = 0
37@ = 0
64@ = 0
goto @SWEET3_6579
81@ = add_blip_for_char 89@
82@ = add_blip_for_char 90@

:SWEET3_6579
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_9366
wait 0
if 
  not is_car_dead 40@
goto_if_false @SWEET3_7609
80@ = get_area_visible 
if 
  can_player_start_mission $player1
goto_if_false @SWEET3_7609
if 
  80@ == 0
goto_if_false @SWEET3_7609
if and
  locate_car_3d 40@ {x} 2502.8899 {y} -1674.71 {z} 12.37 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_7609
do_fade 500 {direction} Fade.Out

:SWEET3_6724
if 
  get_fading_status 
goto_if_false @SWEET3_6748
wait 0
goto @SWEET3_6724

:SWEET3_6748
set_player_control $player1 {state} False
switch_widescreen True
80@ = get_area_visible 
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET3_6802
62@ = store_car_char_is_in $scplayer
freeze_car_position 62@ {state} True
goto @SWEET3_6809

:SWEET3_6802
freeze_char_position $scplayer {state} True

:SWEET3_6809
set_area_visible 0
request_collision 2497.2991 {y} -1679.542
load_scene_in_direction 2513.5439 {y} -1682.85 {z} 14.1195 {heading} 41.0
clear_area 2513.5439 {y} -1682.85 {z} 14.1195 {radius} 70.0 {clearParticles} True
set_fixed_camera_position 2514.3989 {y} -1683.345 {z} 14.2746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.5439 {y} -1682.85 {z} 14.1195 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 89@
goto_if_false @SWEET3_6989
if 
  not is_car_dead 40@
goto_if_false @SWEET3_6989
task_car_drive_to_coord 89@ {vehicle} 40@ {x} 2386.24 {y} -1658.95 {z} 12.38 {speed} 1.0 {driveStyle} DriveMode.Straightline {modelId} 412 {drivingStyle} DrivingMode.PloughThrough

:SWEET3_6989
if 
  not is_char_dead 90@
goto_if_false @SWEET3_7010
clear_char_tasks 90@

:SWEET3_7010
do_fade 500 {direction} Fade.In
TIMERA = 0

:SWEET3_7024
if 
  500 > TIMERA
goto_if_false @SWEET3_7054
wait 0
goto @SWEET3_7024

:SWEET3_7054
if 
  not is_car_dead 40@
goto_if_false @SWEET3_7182
if 
  not is_char_dead 54@
goto_if_false @SWEET3_7175
if 
  not is_char_dead 90@
goto_if_false @SWEET3_7175
if 
  is_char_in_car 90@ {vehicle} 40@
goto_if_false @SWEET3_7175
clear_char_tasks 90@
set_char_accuracy 90@ {accuracy} 50
set_char_shoot_rate 90@ {rate} 90
task_drive_by 90@ {targetChar} -1 {targetVehicle} -1 {x} 2507.6499 {y} -1681.24 {z} 12.8469 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:SWEET3_7175
goto @SWEET3_7189

:SWEET3_7182
goto @SWEET3_9366

:SWEET3_7189
TIMERA = 0

:SWEET3_7196
if or
  not is_char_dead 54@
  not is_char_dead 53@
goto_if_false @SWEET3_7308
wait 0
if 
  TIMERA > 2500
goto_if_false @SWEET3_7261
if 
  not is_char_dead 54@
goto_if_false @SWEET3_7261
task_die 54@

:SWEET3_7261
if 
  TIMERA > 2000
goto_if_false @SWEET3_7301
if 
  not is_char_dead 53@
goto_if_false @SWEET3_7301
task_die 53@

:SWEET3_7301
goto @SWEET3_7196

:SWEET3_7308
if 
  not is_char_dead 89@
goto_if_false @SWEET3_7375
if 
  not is_car_dead 40@
goto_if_false @SWEET3_7375
task_car_drive_to_coord 89@ {vehicle} 40@ {x} 2386.24 {y} -1658.95 {z} 12.38 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 412 {drivingStyle} DrivingMode.PloughThrough

:SWEET3_7375
TIMERA = 0

:SWEET3_7382
if 
  TIMERA <= 3000
goto_if_false @SWEET3_7412
wait 0
goto @SWEET3_7382

:SWEET3_7412
do_fade 500 {direction} Fade.Out

:SWEET3_7419
if 
  get_fading_status 
goto_if_false @SWEET3_7443
wait 0
goto @SWEET3_7419

:SWEET3_7443
if 
  not is_char_dead 89@
goto_if_false @SWEET3_7464
clear_char_tasks_immediately 89@

:SWEET3_7464
if 
  not is_char_dead 90@
goto_if_false @SWEET3_7485
clear_char_tasks_immediately 90@

:SWEET3_7485
delete_car 40@
delete_char 89@
delete_char 90@
set_area_visible 80@
107@, 108@, 109@ = get_char_coordinates $scplayer
load_scene 107@ {y} 108@ {z} 109@
wait 100
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET3_7595
if 
  not is_car_dead 62@
goto_if_false @SWEET3_7588
freeze_car_position 62@ {state} False

:SWEET3_7588
goto @SWEET3_7602

:SWEET3_7595
freeze_char_position $scplayer {state} False

:SWEET3_7602
do_fade 500 {direction} Fade.In

:SWEET3_7609
if 
  is_car_dead 40@
goto_if_false @SWEET3_7685
if 
  44@ == 0
goto_if_false @SWEET3_7678
remove_blip 52@
gosub @SWEET3_16169
print_now 'K_BALLA' {time} 6000 {flag} 1
44@ = 1

:SWEET3_7678
goto @SWEET3_7778

:SWEET3_7685
if 
  not is_car_health_greater 40@ {health} 250
goto_if_false @SWEET3_7778
if 
  44@ == 0
goto_if_false @SWEET3_7778
remove_blip 52@
gosub @SWEET3_16169
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_7771
print_now 'K_BALLA' {time} 6000 {flag} 1

:SWEET3_7771
44@ = 1

:SWEET3_7778
if 
  64@ == 0
goto_if_false @SWEET3_8004
if 
  is_char_dead 89@
goto_if_false @SWEET3_7900
if 
  not is_char_dead 90@
goto_if_false @SWEET3_7856
remove_blip 81@
81@ = add_blip_for_char 90@
task_kill_char_on_foot 90@ {target} $scplayer
64@ = 1

:SWEET3_7856
gosub @SWEET3_16169
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_7900
print_now 'K_BALLA' {time} 6000 {flag} 1

:SWEET3_7900
if 
  is_char_dead 90@
goto_if_false @SWEET3_8004
if 
  not is_char_dead 89@
goto_if_false @SWEET3_7960
remove_blip 82@
82@ = add_blip_for_char 89@
task_kill_char_on_foot 89@ {target} $scplayer
64@ = 1

:SWEET3_7960
gosub @SWEET3_16169
if or
  not is_char_dead 89@
  not is_char_dead 90@
goto_if_false @SWEET3_8004
print_now 'K_BALLA' {time} 6000 {flag} 1

:SWEET3_8004
if 
  is_char_dead 89@
goto_if_false @SWEET3_8025
remove_blip 81@

:SWEET3_8025
if 
  is_char_dead 90@
goto_if_false @SWEET3_8046
remove_blip 82@

:SWEET3_8046
if or
  is_char_dead 53@
  is_char_dead 54@
goto_if_false @SWEET3_8090
print_now 'TW2_Y' {time} 6000 {flag} 1
goto @SWEET3_12890

:SWEET3_8090
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_8136
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890
goto @SWEET3_9187

:SWEET3_8136
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_9187
if 
  56@ == 0
goto_if_false @SWEET3_8743
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_8658
if 
  59@ == 0
goto_if_false @SWEET3_8264
remove_blip 39@
remove_blip 52@
if 
  not is_car_dead 40@
goto_if_false @SWEET3_8241
52@ = add_blip_for_car 40@

:SWEET3_8241
print_now 'SWE3_B' {time} 3000 {flag} 1
59@ = 1

:SWEET3_8264
if 
  36@ == 0
goto_if_false @SWEET3_8308
if 
  TIMERB > 2000
goto_if_false @SWEET3_8308
gosub @SWEET3_13144

:SWEET3_8308
if 
  100@ == 0
goto_if_false @SWEET3_8363
if 
  TIMERB > 6000
goto_if_false @SWEET3_8363
print_help 'SWE3_H'
100@ = 1

:SWEET3_8363
34@ = get_car_health $sweet_car
if 
  37@ == 0
goto_if_false @SWEET3_8489
if 
  36@ == 0
goto_if_false @SWEET3_8489
if 
  86@ > 11
goto_if_false @SWEET3_8489
set_lvar_int_to_lvar_int 35@ = 34@
35@ -= 60
86@ = 0
85@ = 0
87@ = 0
79@ = 7
37@ = 1
gosub @SWEET3_47
36@ = 1

:SWEET3_8489
if 
  37@ == 1
goto_if_false @SWEET3_8607
if 
  36@ == 0
goto_if_false @SWEET3_8607
if 
  86@ > 3
goto_if_false @SWEET3_8607
set_lvar_int_to_lvar_int 35@ = 34@
35@ -= 60
86@ = 0
85@ = 0
87@ = 0
79@ = 8
37@ = 2
gosub @SWEET3_47
36@ = 1

:SWEET3_8607
if 
  36@ == 1
goto_if_false @SWEET3_8651
if 
  not is_car_health_greater $sweet_car {health} 35@
goto_if_false @SWEET3_8651
36@ = 0

:SWEET3_8651
goto @SWEET3_8743

:SWEET3_8658
if 
  59@ == 1
goto_if_false @SWEET3_8743
remove_blip 39@
remove_blip 52@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_15488
print_now 'TW2_X' {time} 3000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
59@ = 0

:SWEET3_8743
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_9187
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37645

:SWEET3_8771
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_8797
wait 0
goto @SWEET3_8771

:SWEET3_8797
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KA' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_8982
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_8982
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_8895
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_8895
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_8935
task_leave_car_immediately $ryder {vehicle} $sweet_car
task_smart_flee_char $ryder {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_8935
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_8975
task_leave_car_immediately $sweet {vehicle} $sweet_car
task_smart_flee_char $sweet {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_8975
56@ = 1

:SWEET3_8982
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_9164
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_9040
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9040
if 
  is_char_dead $ryder
goto_if_false @SWEET3_9079
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9079
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_9118
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9118
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_9157
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9157
goto @SWEET3_8982

:SWEET3_9164
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9187
if 
  is_char_dead $sweet
goto_if_false @SWEET3_9226
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9226
if 
  is_char_dead $ryder
goto_if_false @SWEET3_9265
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9265
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_9304
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9304
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_9343
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9343
if 
  is_car_dead 40@
goto_if_false @SWEET3_9359

:SWEET3_9359
goto @SWEET3_6579

:SWEET3_9366
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_9387
clear_char_tasks $sweet

:SWEET3_9387
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_9408
clear_char_tasks $ryder

:SWEET3_9408
remove_blip 81@
remove_blip 82@
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_9499
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_9492
$blob_flag = 1
remove_blip 52@
52@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
goto @SWEET3_9499

:SWEET3_9492
$blob_flag = 0

:SWEET3_9499
if 
  is_char_dead $sweet
goto_if_false @SWEET3_9538
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_9538
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
86@ = 0
85@ = 0
87@ = 0
79@ = 3
gosub @SWEET3_47
TIMERA = 0
43@ = 0
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_9669
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_9653
print_now 'TW2_W' {time} 6000 {flag} 1
goto @SWEET3_9669

:SWEET3_9653
print_now 'TW2_X' {time} 6000 {flag} 1

:SWEET3_9669
if or
  not locate_car_3d $sweet_car {x} 2513.3 {y} -1671.9 {z} 12.52 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET3_10709
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_9781
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890
goto @SWEET3_10546

:SWEET3_9781
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_10546
if 
  56@ == 0
goto_if_false @SWEET3_10102
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_10010
if 
  59@ == 0
goto_if_false @SWEET3_9919
remove_blip 39@
remove_blip 52@
52@ = add_blip_for_coord 2513.3301 {y} -1672.12 {z} 12.52
print_now 'TW2_W' {time} 6000 {flag} 1
$blob_flag = 1
TIMERA = 0
59@ = 1

:SWEET3_9919
if 
  43@ == 0
goto_if_false @SWEET3_9996
if 
  TIMERA > 4000
goto_if_false @SWEET3_9989
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_9989
gosub @SWEET3_13144
43@ = 1

:SWEET3_9989
goto @SWEET3_10003

:SWEET3_9996
gosub @SWEET3_13144

:SWEET3_10003
goto @SWEET3_10102

:SWEET3_10010
if 
  59@ == 1
goto_if_false @SWEET3_10102
remove_blip 52@
remove_blip 39@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_15488
print_now 'TW2_X' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
59@ = 0

:SWEET3_10102
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_10546
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37646

:SWEET3_10130
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_10156
wait 0
goto @SWEET3_10130

:SWEET3_10156
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KB' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_10341
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_10341
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_10254
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_10254
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_10294
task_leave_car_immediately $ryder {vehicle} $sweet_car
task_smart_flee_char $ryder {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_10294
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_10334
task_leave_car_immediately $sweet {vehicle} $sweet_car
task_smart_flee_char $sweet {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_10334
56@ = 1

:SWEET3_10341
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_10523
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_10399
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10399
if 
  is_char_dead $ryder
goto_if_false @SWEET3_10438
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10438
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_10477
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10477
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_10516
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10516
goto @SWEET3_10341

:SWEET3_10523
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10546
if 
  is_char_dead $sweet
goto_if_false @SWEET3_10585
print_now 'SWE3_E' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10585
if 
  is_char_dead $ryder
goto_if_false @SWEET3_10624
print_now 'SWE3_F' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10624
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_10663
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10663
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_10702
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_10702
goto @SWEET3_9669

:SWEET3_10709
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 2502.7639 {y} -1670.778 {z} 18.432 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2503.6731 {y} -1670.851 {z} 18.0218 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
86@ = 0
85@ = 0
87@ = 0
79@ = 4
gosub @SWEET3_47
43@ = 0

:SWEET3_10821
if 
  86@ <> 1
goto_if_false @SWEET3_10857
wait 0
gosub @SWEET3_13144
goto @SWEET3_10821

:SWEET3_10857
38@ = 0
skip_cutscene_start_internal @SWEET3_11206
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_10903
clear_look_at $scplayer
task_look_at_char $scplayer {target} $ryder {time} 15000

:SWEET3_10903
if 
  86@ <> 3
goto_if_false @SWEET3_10939
wait 0
gosub @SWEET3_13144
goto @SWEET3_10903

:SWEET3_10939
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2522.3711 {fromY} -1679.26 {fromZ} 15.9361 {toX} 2516.479 {toY} -1680.764 {toZ} 17.4286 {time} 17000 {ease} True
camera_set_vector_track 2521.5349 {fromY} -1678.7841 {fromZ} 15.6635 {toX} 2516.3811 {toY} -1679.917 {toZ} 16.9049 {time} 17000 {ease} True

:SWEET3_11023
if 
  86@ <> 8
goto_if_false @SWEET3_11059
wait 0
gosub @SWEET3_13144
goto @SWEET3_11023

:SWEET3_11059
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_11124
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_11124
task_leave_car $sweet {vehicle} $sweet_car
task_go_straight_to_coord $sweet {x} 2519.3879 {y} -1678.689 {z} 13.707 {speed} MoveState.Walk {time} 5000

:SWEET3_11124
wait 500
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_11194
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_11194
task_leave_car $ryder {vehicle} $sweet_car
task_go_straight_to_coord $ryder {x} 2519.3879 {y} -1678.689 {z} 13.707 {speed} MoveState.Walk {time} 5000

:SWEET3_11194
wait 6000
38@ = 1

:SWEET3_11206
skip_cutscene_end 
clear_look_at $scplayer
clear_prints 
if 
  38@ == 0
goto_if_false @SWEET3_11269
do_fade 500 {direction} Fade.Out

:SWEET3_11240
if 
  get_fading_status 
goto_if_false @SWEET3_11264
wait 0
goto @SWEET3_11240

:SWEET3_11264
wait 500

:SWEET3_11269
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
camera_reset_new_scriptables 
delete_char $ryder
delete_char $sweet
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  38@ == 0
goto_if_false @SWEET3_11351
do_fade 500 {direction} Fade.In

:SWEET3_11327
if 
  get_fading_status 
goto_if_false @SWEET3_11351
wait 0
goto @SWEET3_11327

:SWEET3_11351
86@ = 0
85@ = 0
87@ = 0
79@ = 5
gosub @SWEET3_47
43@ = 0
TIMERA = 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_11439
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_11439
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_11520
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11513
$blob_flag = 1
remove_blip 52@
52@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
goto @SWEET3_11520

:SWEET3_11513
$blob_flag = 0

:SWEET3_11520
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_11594
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11578
print_now 'TW2_Z' {time} 6000 {flag} 1
goto @SWEET3_11594

:SWEET3_11578
print_now 'TW2_X' {time} 6000 {flag} 1

:SWEET3_11594
if or
  not locate_car_3d $sweet_car {x} 2066.4651 {y} -1695.444 {z} 12.5547 {xRadius} 4.0 {yRadius} 3.5 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} $sweet_car
  not is_vehicle_on_all_wheels $sweet_car
goto_if_false @SWEET3_12398
wait 0
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_11706
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890
goto @SWEET3_12313

:SWEET3_11706
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_12313
if 
  56@ == 0
goto_if_false @SWEET3_12027
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11935
if 
  59@ == 0
goto_if_false @SWEET3_11844
remove_blip 39@
remove_blip 52@
52@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
print_now 'TW2_Z' {time} 6000 {flag} 1
$blob_flag = 1
TIMERA = 0
59@ = 1

:SWEET3_11844
if 
  43@ == 0
goto_if_false @SWEET3_11921
if 
  TIMERA > 4000
goto_if_false @SWEET3_11914
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @SWEET3_11914
gosub @SWEET3_13144
43@ = 1

:SWEET3_11914
goto @SWEET3_11928

:SWEET3_11921
gosub @SWEET3_13144

:SWEET3_11928
goto @SWEET3_12027

:SWEET3_11935
if 
  59@ == 1
goto_if_false @SWEET3_12027
remove_blip 52@
remove_blip 39@
39@ = add_blip_for_car $sweet_car
set_blip_as_friendly 39@ {state} True
gosub @SWEET3_15001
print_now 'TW2_X' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
59@ = 0

:SWEET3_12027
if 
  not is_car_health_greater $sweet_car {health} 250
goto_if_false @SWEET3_12313
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37646

:SWEET3_12055
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_12081
wait 0
goto @SWEET3_12055

:SWEET3_12081
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE2_KB' {time} 2000 {flag} 1
if 
  56@ == 0
goto_if_false @SWEET3_12186
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_12186
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_12179
task_leave_car_immediately $big_smoke {vehicle} $sweet_car
task_smart_flee_char $big_smoke {threat} $scplayer {radius} 100.0 {time} 10000

:SWEET3_12179
56@ = 1

:SWEET3_12186
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_12290
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_12244
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_12244
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_12283
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_12283
goto @SWEET3_12186

:SWEET3_12290
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_12313
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_12352
print_now 'SWE3_G' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_12352
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_12391
print_now 'SWE3_D' {time} 2000 {flag} 1
goto @SWEET3_12890

:SWEET3_12391
goto @SWEET3_11594

:SWEET3_12398
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
86@ = 0
85@ = 0
87@ = 0
79@ = 6
gosub @SWEET3_47
43@ = 0
switch_widescreen True
set_player_control $player1 {state} False
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2079.1089 {fromY} -1703.561 {fromZ} 17.6928 {toX} 2067.1621 {toY} -1703.3149 {toZ} 13.4746 {time} 17000 {ease} True
camera_set_vector_track 2078.251 {fromY} -1703.2061 {fromZ} 17.3208 {toX} 2067.105 {toY} -1702.33 {toZ} 13.6396 {time} 17000 {ease} True
wait 500
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_12580
clear_look_at $scplayer
task_look_at_char $scplayer {target} $big_smoke {time} 15000

:SWEET3_12580
38@ = 0
skip_cutscene_start_internal @SWEET3_12743

:SWEET3_12594
if 
  86@ <> 1
goto_if_false @SWEET3_12630
wait 0
gosub @SWEET3_13144
goto @SWEET3_12594

:SWEET3_12630
if 
  86@ <> 5
goto_if_false @SWEET3_12666
wait 0
gosub @SWEET3_13144
goto @SWEET3_12630

:SWEET3_12666
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_12731
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_12731
task_leave_car $big_smoke {vehicle} $sweet_car
task_go_straight_to_coord $big_smoke {x} 2058.4041 {y} -1697.166 {z} 12.5547 {speed} MoveState.Walk {time} 8000

:SWEET3_12731
wait 5000
38@ = 1

:SWEET3_12743
skip_cutscene_end 
clear_look_at $scplayer
clear_prints 
if 
  38@ == 0
goto_if_false @SWEET3_12806
do_fade 500 {direction} Fade.Out

:SWEET3_12777
if 
  get_fading_status 
goto_if_false @SWEET3_12801
wait 0
goto @SWEET3_12777

:SWEET3_12801
wait 500

:SWEET3_12806
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
camera_reset_new_scriptables 
delete_char $big_smoke
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  38@ == 0
goto_if_false @SWEET3_12883
do_fade 500 {direction} Fade.In

:SWEET3_12859
if 
  get_fading_status 
goto_if_false @SWEET3_12883
wait 0
goto @SWEET3_12859

:SWEET3_12883
goto @SWEET3_12908

:SWEET3_12890
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SWEET3_12908
register_mission_passed 'SWEET_3'
print_with_number_big 'M_PASSS' {num} 200 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
add_score $player1 {money} 200
clear_wanted_level $player1
play_mission_passed_tune 1
$flag_sweet_mission_counter += 1
set_int_stat StatId.PassedSweet2 {value} 1
player_made_progress 1
return 

:SWEET3_12979
remove_char_elegantly $big_smoke
remove_char_elegantly $ryder
remove_char_elegantly $sweet
remove_blip 39@
remove_blip 52@
remove_blip 81@
remove_blip 82@
enable_ambient_crime True
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_13041
set_can_burst_car_tyres $sweet_car {state} True

:SWEET3_13041
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed #CIGAR
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 89@
mark_char_as_no_longer_needed 90@
unload_special_character 1
unload_special_character 2
unload_special_character 3
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_car_generator $gen_car7 {amount} 101
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:SWEET3_13144
if or
  85@ == 0
  85@ == 1
goto_if_false @SWEET3_13214
if 
  is_int_lvar_greater_or_equal_to_int_lvar 58@ >= 86@
goto_if_false @SWEET3_13214
if 
  TIMERA > 200
goto_if_false @SWEET3_13214
gosub @SWEET3_13286

:SWEET3_13214
if 
  85@ == 2
goto_if_false @SWEET3_13284
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET3_13284
gosub @SWEET3_14207
85@ = 0
86@ += 1
87@ = 0
clear_prints 
TIMERA = 0

:SWEET3_13284
return 

:SWEET3_13286
if 
  85@ == 0
goto_if_false @SWEET3_13322
load_mission_audio MissionAudioSlot.Slot1 {audioId} 66@(86@,13i)
85@ = 1

:SWEET3_13322
if 
  85@ == 1
goto_if_false @SWEET3_13387
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET3_13387
print_now $sweet3_chat(86@,13s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET3_13389
85@ = 2

:SWEET3_13387
return 

:SWEET3_13389
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37601
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37611
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37632
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37654
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37667
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37668
goto_if_false @SWEET3_13501
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET3_13501
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37671
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37673
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37676
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37678
goto_if_false @SWEET3_13585
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET3_13585
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37612
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37613
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37615
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37637
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37638
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37658
goto_if_false @SWEET3_13713
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_13713
shut_char_up_for_scripted_speech $sweet {state} True
start_char_facial_talk $sweet {duration} 3000
return 

:SWEET3_13713
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37664
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37652
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37653
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37623
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37624
goto_if_false @SWEET3_13827
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_13827
shut_char_up_for_scripted_speech $sweet {state} True
start_char_facial_talk $sweet {duration} 3000
return 

:SWEET3_13827
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37651
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37656
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37657
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37661
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37662
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37622
goto_if_false @SWEET3_13955
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_13955
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000
return 

:SWEET3_13955
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37617
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37619
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37620
goto_if_false @SWEET3_14041
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14041
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000
return 

:SWEET3_14041
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37602
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37606
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37607
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37610
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37630
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37635
goto_if_false @SWEET3_14174
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14167
shut_char_up_for_scripted_speech $ryder {state} True
start_char_facial_talk $ryder {duration} 3000

:SWEET3_14167
goto @SWEET3_14205

:SWEET3_14174
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_14205
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET3_14205
return 

:SWEET3_14207
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37601
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37611
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37632
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37654
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37667
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37668
goto_if_false @SWEET3_14316
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET3_14316
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37671
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37673
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37676
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37678
goto_if_false @SWEET3_14397
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET3_14397
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37612
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37613
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37615
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37637
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37638
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37658
goto_if_false @SWEET3_14522
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_14522
shut_char_up_for_scripted_speech $sweet {state} False
stop_char_facial_talk $sweet
return 

:SWEET3_14522
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37664
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37652
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37653
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37623
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37624
goto_if_false @SWEET3_14633
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_14633
shut_char_up_for_scripted_speech $sweet {state} False
stop_char_facial_talk $sweet
return 

:SWEET3_14633
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37651
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37656
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37657
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37661
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37662
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37622
goto_if_false @SWEET3_14758
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14758
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder
return 

:SWEET3_14758
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37617
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37619
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37620
goto_if_false @SWEET3_14841
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14841
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder
return 

:SWEET3_14841
if or
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37602
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37606
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37607
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37610
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37630
  is_int_lvar_equal_to_constant 66@(86@,13i) == 37635
goto_if_false @SWEET3_14971
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_14964
shut_char_up_for_scripted_speech $ryder {state} False
stop_char_facial_talk $ryder

:SWEET3_14964
goto @SWEET3_14999

:SWEET3_14971
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET3_14999
shut_char_up_for_scripted_speech $big_smoke {state} False
stop_char_facial_talk $big_smoke

:SWEET3_14999
return 

:SWEET3_15001
clear_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_15032
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35800

:SWEET3_15032
if 
  51@ == 1
goto_if_false @SWEET3_15059
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35801

:SWEET3_15059
if 
  51@ == 2
goto_if_false @SWEET3_15086
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35802

:SWEET3_15086
if 
  51@ == 3
goto_if_false @SWEET3_15113
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35803

:SWEET3_15113
if 
  51@ == 4
goto_if_false @SWEET3_15140
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35804

:SWEET3_15140
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET3_15156
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_15218
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_15193
return 

:SWEET3_15193
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_15211
return 

:SWEET3_15211
goto @SWEET3_15156

:SWEET3_15218
play_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_15256
print_now 'SMOX_AA' {time} 3000 {flag} 1

:SWEET3_15256
if 
  51@ == 1
goto_if_false @SWEET3_15290
print_now 'SMOX_AB' {time} 3000 {flag} 1

:SWEET3_15290
if 
  51@ == 2
goto_if_false @SWEET3_15324
print_now 'SMOX_AC' {time} 3000 {flag} 1

:SWEET3_15324
if 
  51@ == 3
goto_if_false @SWEET3_15358
print_now 'SMOX_AD' {time} 3000 {flag} 1

:SWEET3_15358
if 
  51@ == 4
goto_if_false @SWEET3_15392
print_now 'SMOX_AE' {time} 3000 {flag} 1

:SWEET3_15392
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_15454
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_15429
return 

:SWEET3_15429
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_15447
return 

:SWEET3_15447
goto @SWEET3_15392

:SWEET3_15454
51@ += 1
if 
  51@ > 4
goto_if_false @SWEET3_15486
51@ = 0

:SWEET3_15486
return 

:SWEET3_15488
clear_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_15519
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34205

:SWEET3_15519
if 
  51@ == 1
goto_if_false @SWEET3_15546
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37434

:SWEET3_15546
if 
  51@ == 2
goto_if_false @SWEET3_15573
load_mission_audio MissionAudioSlot.Slot2 {audioId} 38641

:SWEET3_15573
if 
  51@ == 3
goto_if_false @SWEET3_15600
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34202

:SWEET3_15600
if 
  51@ == 4
goto_if_false @SWEET3_15627
load_mission_audio MissionAudioSlot.Slot2 {audioId} 38644

:SWEET3_15627
if 
  51@ == 5
goto_if_false @SWEET3_15654
load_mission_audio MissionAudioSlot.Slot2 {audioId} 34203

:SWEET3_15654
if 
  51@ == 6
goto_if_false @SWEET3_15681
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37429

:SWEET3_15681
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET3_15697
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET3_15795
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_15734
return 

:SWEET3_15734
if 
  is_char_dead $ryder
goto_if_false @SWEET3_15752
return 

:SWEET3_15752
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_15770
return 

:SWEET3_15770
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_15788
return 

:SWEET3_15788
goto @SWEET3_15697

:SWEET3_15795
play_mission_audio MissionAudioSlot.Slot2
if 
  51@ == 0
goto_if_false @SWEET3_15833
print_now 'RYDX_AF' {time} 3000 {flag} 1

:SWEET3_15833
if 
  51@ == 1
goto_if_false @SWEET3_15867
print_now 'SWE1_BM' {time} 3000 {flag} 1

:SWEET3_15867
if 
  51@ == 2
goto_if_false @SWEET3_15901
print_now 'SWEX_BP' {time} 3000 {flag} 1

:SWEET3_15901
if 
  51@ == 3
goto_if_false @SWEET3_15935
print_now 'RYDX_AC' {time} 3000 {flag} 1

:SWEET3_15935
if 
  51@ == 4
goto_if_false @SWEET3_15969
print_now 'SWEX_BS' {time} 3000 {flag} 1

:SWEET3_15969
if 
  51@ == 5
goto_if_false @SWEET3_16003
print_now 'RYDX_AD' {time} 3000 {flag} 1

:SWEET3_16003
if 
  51@ == 6
goto_if_false @SWEET3_16037
print_now 'SWE1_BG' {time} 3000 {flag} 1

:SWEET3_16037
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET3_16135
wait 0
if 
  is_char_dead $sweet
goto_if_false @SWEET3_16074
return 

:SWEET3_16074
if 
  is_char_dead $ryder
goto_if_false @SWEET3_16092
return 

:SWEET3_16092
if 
  is_char_dead $big_smoke
goto_if_false @SWEET3_16110
return 

:SWEET3_16110
if 
  is_car_dead $sweet_car
goto_if_false @SWEET3_16128
return 

:SWEET3_16128
goto @SWEET3_16037

:SWEET3_16135
51@ += 1
if 
  51@ > 6
goto_if_false @SWEET3_16167
51@ = 0

:SWEET3_16167
return 

:SWEET3_16169
if 
  not is_char_dead 89@
goto_if_false @SWEET3_16298
remove_blip 81@
81@ = add_blip_for_char 89@
task_kill_char_on_foot 89@ {target} $scplayer
if 
  not is_char_dead $ryder
goto_if_false @SWEET3_16298
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_16298
if 
  is_char_in_car $ryder {vehicle} $sweet_car
goto_if_false @SWEET3_16298
clear_char_tasks $ryder
task_drive_by $ryder {targetChar} 89@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 70

:SWEET3_16298
if 
  not is_char_dead 90@
goto_if_false @SWEET3_16427
remove_blip 82@
82@ = add_blip_for_char 90@
task_kill_char_on_foot 90@ {target} $scplayer
if 
  not is_char_dead $sweet
goto_if_false @SWEET3_16427
if 
  not is_car_dead $sweet_car
goto_if_false @SWEET3_16427
if 
  is_char_in_car $sweet {vehicle} $sweet_car
goto_if_false @SWEET3_16427
clear_char_tasks $sweet
task_drive_by $sweet {targetChar} 90@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 5000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 70

:SWEET3_16427
return 

//-------------Mission 16---------------
// Originally: Nines And AK's

:SWEET2
script_name 'SWEET2'
gosub @SWEET2_1108
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET2_38
gosub @SWEET2_20215

:SWEET2_38
gosub @SWEET2_20732
terminate_this_script 

:SWEET2_47
switch_start 39@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET2_1106 {caseNum1} 0 {caseLabel1} @SWEET2_110 {caseNum2} 1 {caseLabel2} @SWEET2_340 {caseNum3} 2 {caseLabel3} @SWEET2_690 {caseNum4} 3 {caseLabel4} @SWEET2_872 {caseNum5} -1 {caseLabel5} @SWEET2_1106 {caseNum6} -1 {caseLabel6} @SWEET2_1106 {caseNum7} -1 {caseLabel7} @SWEET2_1106

:SWEET2_110
set_var_text_label s$sweet2_chat[0] = 'SWE3_AA'
set_var_text_label s$sweet2_chat[1] = 'SWE3_AB'
set_var_text_label s$sweet2_chat[2] = 'SWE3_AC'
set_var_text_label s$sweet2_chat[3] = 'SWE3_AD'
set_var_text_label s$sweet2_chat[4] = 'SWE3_AE'
set_var_text_label s$sweet2_chat[5] = 'SWE3_AF'
set_var_text_label s$sweet2_chat[6] = 'SWE3_AH'
set_var_text_label s$sweet2_chat[7] = 'SWE3_AJ'
set_var_text_label s$sweet2_chat[8] = 'SWE3_AK'
set_lvar_int_to_constant 66@ = 37800
set_lvar_int_to_constant 67@ = 37801
set_lvar_int_to_constant 68@ = 37802
set_lvar_int_to_constant 69@ = 37803
set_lvar_int_to_constant 70@ = 37804
set_lvar_int_to_constant 71@ = 37805
set_lvar_int_to_constant 72@ = 37806
set_lvar_int_to_constant 73@ = 37807
set_lvar_int_to_constant 74@ = 37808
48@ = 8
goto @SWEET2_1106

:SWEET2_340
set_var_text_label s$sweet2_chat[0] = 'SWE3_GA'
set_var_text_label s$sweet2_chat[1] = 'SWE3_GB'
set_var_text_label s$sweet2_chat[2] = 'SWE3_GC'
set_var_text_label s$sweet2_chat[3] = 'SWE3_GD'
set_var_text_label s$sweet2_chat[4] = 'SWE3_GE'
set_var_text_label s$sweet2_chat[5] = 'SWE3_GF'
set_var_text_label s$sweet2_chat[6] = 'SWE3_GG'
set_var_text_label s$sweet2_chat[7] = 'SWE3_GH'
set_var_text_label s$sweet2_chat[8] = 'SWE3_GJ'
set_var_text_label s$sweet2_chat[9] = 'SWE3_GK'
set_var_text_label s$sweet2_chat[10] = 'SWE3_GL'
set_var_text_label s$sweet2_chat[11] = 'SWE3_GM'
set_var_text_label s$sweet2_chat[12] = 'SWE3_GN'
set_var_text_label s$sweet2_chat[13] = 'SWE3_GO'
set_lvar_int_to_constant 66@ = 37850
set_lvar_int_to_constant 67@ = 37851
set_lvar_int_to_constant 68@ = 37852
set_lvar_int_to_constant 69@ = 37853
set_lvar_int_to_constant 70@ = 37854
set_lvar_int_to_constant 71@ = 37855
set_lvar_int_to_constant 72@ = 37856
set_lvar_int_to_constant 73@ = 37857
set_lvar_int_to_constant 74@ = 37858
set_lvar_int_to_constant 75@ = 37859
set_lvar_int_to_constant 76@ = 37860
set_lvar_int_to_constant 77@ = 37861
set_lvar_int_to_constant 78@ = 37862
set_lvar_int_to_constant 79@ = 37863
48@ = 13
goto @SWEET2_1106

:SWEET2_690
set_var_text_label s$sweet2_chat[0] = 'SWE3_HA'
set_var_text_label s$sweet2_chat[1] = 'SWE3_HB'
set_var_text_label s$sweet2_chat[2] = 'SWE3_HC'
set_var_text_label s$sweet2_chat[3] = 'SWE3_HD'
set_var_text_label s$sweet2_chat[4] = 'SWE3_HE'
set_var_text_label s$sweet2_chat[5] = 'SWE3_HF'
set_var_text_label s$sweet2_chat[6] = 'SWE3_HG'
set_lvar_int_to_constant 66@ = 37864
set_lvar_int_to_constant 67@ = 37865
set_lvar_int_to_constant 68@ = 37866
set_lvar_int_to_constant 69@ = 37867
set_lvar_int_to_constant 70@ = 37868
set_lvar_int_to_constant 71@ = 37869
set_lvar_int_to_constant 72@ = 37870
48@ = 6
goto @SWEET2_1106

:SWEET2_872
set_var_text_label s$sweet2_chat[0] = 'MSWE07A'
set_var_text_label s$sweet2_chat[1] = 'MSWE07B'
set_var_text_label s$sweet2_chat[2] = 'MSWE07C'
set_var_text_label s$sweet2_chat[3] = 'MSWE07D'
set_var_text_label s$sweet2_chat[4] = 'MSWE07E'
set_var_text_label s$sweet2_chat[5] = 'MSWE07F'
set_var_text_label s$sweet2_chat[6] = 'MSWE07G'
set_var_text_label s$sweet2_chat[7] = 'MSWE07H'
set_var_text_label s$sweet2_chat[8] = 'MSWE07J'
set_var_text_label s$sweet2_chat[9] = 'MSWE07K'
set_lvar_int_to_constant 66@ = 29066
set_lvar_int_to_constant 67@ = 29067
set_lvar_int_to_constant 68@ = 29068
set_lvar_int_to_constant 69@ = 29069
set_lvar_int_to_constant 70@ = 29070
set_lvar_int_to_constant 71@ = 29071
set_lvar_int_to_constant 72@ = 29072
set_lvar_int_to_constant 73@ = 29073
set_lvar_int_to_constant 74@ = 29074
set_lvar_int_to_constant 75@ = 29075
48@ = 9
goto @SWEET2_1106

:SWEET2_1106
return 

:SWEET2_1108
register_mission_given 
$onmission = 1
36@ = 0
42@ = 0
38@ = 0
51@ = 0
53@ = 0
62@ = 0
45@ = 0
47@ = 0
56@ = 0
57@ = 0
89@ = 2440.5801
94@ = -1979.89
99@ = 14.1
90@ = 2440.1399
95@ = -1976.5
100@ = 13.4
91@ = 2440.95
96@ = -1973.76
101@ = 14.2
92@ = 2448.97
97@ = -1973.29
102@ = 13.35
93@ = 2444.3501
98@ = -1970.61
103@ = 13.8
wait 0
load_mission_text 'SWEET2'
set_area_visible 1
load_cutscene 'SWEET3A'

:SWEET2_1367
if 
  not has_cutscene_loaded 
goto_if_false @SWEET2_1391
wait 0
goto @SWEET2_1367

:SWEET2_1391
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET2_1400
if 
  not has_cutscene_finished 
goto_if_false @SWEET2_1424
wait 0
goto @SWEET2_1400

:SWEET2_1424
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SWEET2_1437
if 
  get_fading_status 
goto_if_false @SWEET2_1461
wait 0
goto @SWEET2_1437

:SWEET2_1461
clear_cutscene 
set_area_visible 0
force_weather WeatherType.SunnyLa
load_special_character 10 {modelName} 'SMOKE'
request_model 466
load_all_models_now 

:SWEET2_1491
if or
  not has_special_character_loaded 10
  not has_model_loaded 466
goto_if_false @SWEET2_1522
wait 0
goto @SWEET2_1491

:SWEET2_1522
52@ = load_char_decision_maker DecisionMakerType.Empty
switch_car_generator $gen_car7 {amount} 0
clear_area 2506.23 {y} -1675.75 {z} 12.37 {radius} 6.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
$big_smoke_car = create_car 466 {x} 2506.23 {y} -1675.75 {z} 12.37
change_car_colour $big_smoke_car {color1} 98 {color2} 14
set_car_heading $big_smoke_car {heading} 148.0
set_radio_channel RadioChannel.BounceFM
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Gang2
$big_smoke = create_char PedType.Mission1 {modelId} 299 {x} 2505.8689 {y} -1672.723 {z} 12.3778
set_char_heading $big_smoke {heading} 160.0
set_char_health $big_smoke {health} 500
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_weapon_skill $big_smoke {skill} WeaponSkill.Std
set_char_accuracy $big_smoke {accuracy} 100
set_char_shoot_rate $big_smoke {rate} 30
set_char_only_damaged_by_player $big_smoke {state} True
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_decision_maker $big_smoke {handleOrTemplate} 52@
set_char_coordinates $scplayer {x} 2515.28 {y} -1673.4399 {z} 12.73
set_char_heading $scplayer {heading} 81.2
load_scene 2516.54 {y} -1671.2 {z} 12.87
do_fade 1000 {direction} Fade.In
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
print_now 'SWE2_A' {time} 10000 {flag} 1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $big_smoke_car {time} 5000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True
35@ = add_blip_for_coord 2453.0701 {y} -2003.96 {z} 12.56
remove_blip 35@
$blob_flag = 0
80@ = 0
81@ = 0
82@ = 0
39@ = 0
gosub @SWEET2_47
TIMERB = 0
56@ = 0

:SWEET2_1949
if or
  not locate_car_3d $big_smoke_car {x} 2453.0701 {y} -2003.96 {z} 12.56 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $big_smoke {vehicle} $big_smoke_car
  not is_vehicle_on_all_wheels $big_smoke_car
goto_if_false @SWEET2_2420
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SWEET2_2037
goto @SWEET2_20304

:SWEET2_2037
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_2312
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_2282
if 
  is_char_in_car $scplayer {vehicle} $big_smoke_car
goto_if_false @SWEET2_2183
if 
  45@ == 0
goto_if_false @SWEET2_2150
remove_blip 44@
remove_blip 35@
35@ = add_blip_for_coord 2453.0701 {y} -2003.96 {z} 12.56
$blob_flag = 1
45@ = 1

:SWEET2_2150
if 
  TIMERB > 5000
goto_if_false @SWEET2_2176
gosub @SWEET2_21000

:SWEET2_2176
goto @SWEET2_2275

:SWEET2_2183
if 
  45@ == 1
goto_if_false @SWEET2_2275
remove_blip 35@
remove_blip 44@
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True
gosub @SWEET2_21245
print_now 'SWE2_L' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
45@ = 0

:SWEET2_2275
goto @SWEET2_2305

:SWEET2_2282
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_2305
goto @SWEET2_2335

:SWEET2_2312
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_2335
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_2374
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_2374
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_2413
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_2413
goto @SWEET2_1949

:SWEET2_2420
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2452.949 {y} -2011.824 {z} 16.3096 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.98 {y} -2010.903 {z} 15.9217 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_2642
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_2642
37@ = open_sequence_task 
task_leave_car -1 {vehicle} $big_smoke_car
flush_route 
extend_route 2453.5149 {y} -1980.771 {z} 12.5547
extend_route 2450.4861 {y} -1981.6591 {z} 12.5547
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 37@
perform_sequence_task $big_smoke {sequence} 37@
clear_sequence_task 37@
wait 800
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_2642
task_leave_car $scplayer {vehicle} $big_smoke_car
task_go_straight_to_coord $scplayer {x} 2453.29 {y} -1983.71 {z} 12.54 {speed} MoveState.Walk {time} 5000

:SWEET2_2642
wait 2000
gosub @SWEET2_22484
do_fade 1000 {direction} Fade.Out

:SWEET2_2661
if 
  get_fading_status 
goto_if_false @SWEET2_2685
wait 0
goto @SWEET2_2661

:SWEET2_2685
set_script_limit_to_gang_size 0
clear_area 2448.7339 {y} -1976.193 {z} 12.5469 {radius} 200.0 {clearParticles} False
make_player_safe_for_cutscene $player1
load_cutscene 'SWEET3B'

:SWEET2_2729
if 
  not has_cutscene_loaded 
goto_if_false @SWEET2_2753
wait 0
goto @SWEET2_2729

:SWEET2_2753
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET2_2762
if 
  not has_cutscene_finished 
goto_if_false @SWEET2_2786
wait 0
goto @SWEET2_2762

:SWEET2_2786
do_fade 0 {direction} Fade.Out

:SWEET2_2792
if 
  get_fading_status 
goto_if_false @SWEET2_2816
wait 0
goto @SWEET2_2792

:SWEET2_2816
clear_cutscene 
load_special_character 1 {modelName} 'EMMET'
request_model #DYN_WINE_BIG
request_animation "GANGS"
request_animation "CRACK"
request_animation "COLT45"
request_animation "FAT"
request_model 346
request_model 549
load_all_models_now 

:SWEET2_2882
if or
  not has_special_character_loaded 1
  not has_model_loaded #DYN_WINE_BIG
  not has_animation_loaded "GANGS"
  not has_animation_loaded "CRACK"
  not has_model_loaded 346
  not has_animation_loaded "COLT45"
goto_if_false @SWEET2_2945
wait 0
goto @SWEET2_2882

:SWEET2_2945
if or
  not has_model_loaded 549
  not has_animation_loaded "FAT"
goto_if_false @SWEET2_2979
wait 0
goto @SWEET2_2945

:SWEET2_2979
clear_area 2446.49 {y} -1966.47 {z} 12.54 {radius} 4.0 {clearParticles} True
custom_plate_for_next_car 549 {text} "_FELTCH_"
83@ = create_car 549 {x} 2446.49 {y} -1965.0 {z} 12.54
set_car_heading 83@ {heading} 101.85
lock_car_doors 83@ {lockStatus} CarLock.Locked
set_car_proofs 83@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
63@ = create_char PedType.Mission1 {modelId} 290 {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292
set_char_health 63@ {health} 600
set_char_never_targetted 63@ {state} True
set_char_suffers_critical_hits 63@ {state} False
remove_blip 35@
41@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Pistol
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon $scplayer {weaponType} WeaponType.Pistol
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3195
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol

:SWEET2_3195
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37811
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3282
clear_char_tasks_immediately $big_smoke
set_char_coordinates $big_smoke {x} 2450.4651 {y} -1980.577 {z} 12.5469
set_char_heading $big_smoke {heading} 79.2792

:SWEET2_3282
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_3361
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_3361
set_fixed_camera_position 2445.7971 {y} -1976.585 {z} 14.8864 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2444.9829 {y} -1977.151 {z} 14.7514 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_3455
set_char_coordinates $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469
goto @SWEET2_3475

:SWEET2_3455
warp_char_from_car_to_coord $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469

:SWEET2_3475
set_char_heading $scplayer {heading} 89.5159
38@ = 0
wait 2500
set_fixed_camera_position 2451.365 {y} -1980.395 {z} 14.288 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2450.365 {y} -1980.363 {z} 14.2636 {switchStyle} SwitchType.JumpCut
62@ = 0
54@ = open_sequence_task 
task_shoot_at_coord -1 {x} 89@ {y} 94@ {z} 99@ {time} 1300
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "BBALBAT_IDLE_02" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
close_sequence_task 54@

:SWEET2_3729
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_3794
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_3787
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_3787
goto @SWEET2_3729

:SWEET2_3794
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BC' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3845
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_3845
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_3910
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_3903
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_3903
goto @SWEET2_3845

:SWEET2_3910
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_3946
clear_prints 
stop_char_facial_talk $big_smoke
perform_sequence_task $big_smoke {sequence} 54@
clear_sequence_task 54@

:SWEET2_3946
84@ = 0

:SWEET2_3953
if 
  36@ <> 1
goto_if_false @SWEET2_4810
wait 0
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_4066
if 
  is_player_targetting_object $player1 {handle} $tag_target[0]
goto_if_false @SWEET2_4024
gosub @SWEET2_20902
goto @SWEET2_4031

:SWEET2_4024
gosub @SWEET2_20955

:SWEET2_4031
if 
  has_object_been_damaged $tag_target[0]
goto_if_false @SWEET2_4066
make_object_targettable $tag_target[0] {state} False
delete_object $tag_target[0]
36@ += 1

:SWEET2_4066
if 
  not locate_char_on_foot_3d $scplayer {x} 2448.96 {y} -1973.545 {z} 13.3074 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_4216
if 
  38@ == 0
goto_if_false @SWEET2_4209
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_4202
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_4202
38@ = 1

:SWEET2_4209
goto @SWEET2_4364

:SWEET2_4216
if 
  84@ == 0
goto_if_false @SWEET2_4279
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_4279
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 1

:SWEET2_4279
if 
  38@ == 1
goto_if_false @SWEET2_4364
remove_blip 35@
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_4330
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 30000

:SWEET2_4330
print_help_forever 'HOOD2A'
print_now 'SWE2_G' {time} 10000 {flag} 1
38@ = 0

:SWEET2_4364
if 
  62@ == 0
goto_if_false @SWEET2_4686
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_4686
55@ = get_script_task_status $big_smoke {taskId} 1541
64@ = get_sequence_progress $big_smoke
if 
  64@ == 0
goto_if_false @SWEET2_4686
set_near_clip 0.2
set_fixed_camera_position 2439.8589 {y} -1979.678 {z} 14.4278 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2440.833 {y} -1979.7939 {z} 14.235 {switchStyle} SwitchType.JumpCut
wait 500
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_4521
break_object $tag_target[0] {intensity} 1

:SWEET2_4521
wait 1000
set_char_coordinates $scplayer {x} 2450.74 {y} -1978.375 {z} 12.5469
set_char_heading $scplayer {heading} 89.5159
if 
  not is_char_dead 63@
goto_if_false @SWEET2_4602
set_char_coordinates 63@ {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292

:SWEET2_4602
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
36@ = 0
delete_object $tag_target[0]
$tag_target[0] = create_object #DYN_WINE_BIG {x} 2440.5801 {y} -1979.89 {z} 14.2
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
print_help_forever 'HOOD2A'
62@ = 1

:SWEET2_4686
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_4725
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_4725
if 
  is_char_dead 63@
goto_if_false @SWEET2_4764
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_4764
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_4803
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_4803
goto @SWEET2_3953

:SWEET2_4810
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37831

:SWEET2_4819
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_4923
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_4877
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_4877
if 
  is_char_dead 63@
goto_if_false @SWEET2_4916
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_4916
goto @SWEET2_4819

:SWEET2_4923
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_DC' {time} 10000 {flag} 1
if 
  not is_char_dead 63@
goto_if_false @SWEET2_5017
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET2_5017
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_5121
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_5075
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_5075
if 
  is_char_dead 63@
goto_if_false @SWEET2_5114
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_5114
goto @SWEET2_5017

:SWEET2_5121
if 
  not is_char_dead 63@
goto_if_false @SWEET2_5149
clear_char_tasks 63@
clear_prints 
stop_char_facial_talk 63@

:SWEET2_5149
set_player_control $player1 {state} False
clear_wanted_level $player1
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37809
wait 1000
36@ = 0
wait 1000
switch_widescreen True
set_near_clip 0.2
clear_help 
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_5246
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_5246
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_5388
set_char_coordinates $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469
goto @SWEET2_5408

:SWEET2_5388
warp_char_from_car_to_coord $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469

:SWEET2_5408
set_char_heading $scplayer {heading} 89.5159
set_fixed_camera_position 2447.3789 {y} -1977.062 {z} 15.2851 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2446.3911 {y} -1977.011 {z} 15.1366 {switchStyle} SwitchType.JumpCut
wait 2500
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2451.3879 {fromY} -1981.104 {fromZ} 14.5206 {toX} 2451.738 {toY} -1980.585 {toZ} 14.5765 {time} 8000 {ease} True
camera_set_vector_track 2450.427 {fromY} -1980.924 {fromZ} 14.3127 {toX} 2450.8579 {toY} -1980.187 {toZ} 14.318 {time} 8000 {ease} True
set_char_heading $scplayer {heading} 65.0
38@ = 0
62@ = 0
60@ = open_sequence_task 
task_play_anim -1 {animationName} "BBALBAT_IDLE_02" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
set_sequence_to_repeat 60@ {state} True
close_sequence_task 60@
54@ = open_sequence_task 
task_play_anim -1 {animationName} "COLT45_FIRE" {animationFile} "COLT45" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 2000
task_shoot_at_coord -1 {x} 89@ {y} 94@ {z} 99@ {time} 1300
task_shoot_at_coord -1 {x} 90@ {y} 95@ {z} 100@ {time} 1300
task_shoot_at_coord -1 {x} 91@ {y} 96@ {z} 101@ {time} 1300
perform_sequence_task -1 {sequence} 60@
close_sequence_task 54@
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_5882
perform_sequence_task $big_smoke {sequence} 54@
clear_sequence_task 54@

:SWEET2_5882
84@ = 0

:SWEET2_5889
if 
  36@ <> 3
goto_if_false @SWEET2_7177
wait 0
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_6022
if 
  is_player_targetting_object $player1 {handle} $tag_target(42@,10i)
goto_if_false @SWEET2_5968
gosub @SWEET2_20902
goto @SWEET2_5975

:SWEET2_5968
gosub @SWEET2_20955

:SWEET2_5975
if 
  has_object_been_damaged $tag_target(42@,10i)
goto_if_false @SWEET2_6022
make_object_targettable $tag_target(42@,10i) {state} False
delete_object $tag_target(42@,10i)
36@ += 1

:SWEET2_6022
if 
  not locate_char_on_foot_3d $scplayer {x} 2448.96 {y} -1973.545 {z} 13.3074 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_6172
if 
  38@ == 0
goto_if_false @SWEET2_6165
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_6158
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_6158
38@ = 1

:SWEET2_6165
goto @SWEET2_6320

:SWEET2_6172
if 
  84@ == 0
goto_if_false @SWEET2_6235
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_6235
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 1

:SWEET2_6235
if 
  38@ == 1
goto_if_false @SWEET2_6320
remove_blip 35@
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_6286
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 30000

:SWEET2_6286
print_help_forever 'HOOD2B'
print_now 'SWE2_H' {time} 10000 {flag} 1
38@ = 0

:SWEET2_6320
if 
  62@ == 0
goto_if_false @SWEET2_7021
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_7021
55@ = get_script_task_status $big_smoke {taskId} 1541
64@ = get_sequence_progress $big_smoke
if 
  64@ == 1
goto_if_false @SWEET2_6419
wait 700
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_6419
break_object $tag_target[0] {intensity} 1

:SWEET2_6419
if 
  64@ == 2
goto_if_false @SWEET2_6465
wait 500
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_6465
break_object $tag_target[1] {intensity} 1

:SWEET2_6465
if 
  64@ == 3
goto_if_false @SWEET2_7021

:SWEET2_6483
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_6548
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_6541
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_6541
goto @SWEET2_6483

:SWEET2_6548
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_BA' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_6599
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_6599
wait 500
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_6627
break_object $tag_target[2] {intensity} 1

:SWEET2_6627
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_6692
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_6685
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_6685
goto @SWEET2_6627

:SWEET2_6692
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_6715
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_6715
wait 1000
set_char_coordinates $scplayer {x} 2450.74 {y} -1978.375 {z} 12.5469
set_char_heading $scplayer {heading} 89.5159
if 
  not is_char_dead 63@
goto_if_false @SWEET2_6796
set_char_coordinates 63@ {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292

:SWEET2_6796
camera_reset_new_scriptables 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
print_help_forever 'HOOD2B'
36@ = 0
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_6854
make_object_targettable $tag_target[0] {state} False

:SWEET2_6854
delete_object $tag_target[0]
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_6915
make_object_targettable $tag_target[1] {state} False

:SWEET2_6915
delete_object $tag_target[1]
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_6976
make_object_targettable $tag_target[2] {state} False

:SWEET2_6976
delete_object $tag_target[2]
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
62@ = 1

:SWEET2_7021
42@ += 1
if 
  42@ >= 3
goto_if_false @SWEET2_7053
42@ = 0

:SWEET2_7053
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_7092
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_7092
if 
  is_char_dead 63@
goto_if_false @SWEET2_7131
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_7131
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_7170
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_7170
goto @SWEET2_5889

:SWEET2_7177
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37829

:SWEET2_7186
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_7290
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_7244
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_7244
if 
  is_char_dead 63@
goto_if_false @SWEET2_7283
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_7283
goto @SWEET2_7186

:SWEET2_7290
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_DA' {time} 10000 {flag} 1
if 
  not is_char_dead 63@
goto_if_false @SWEET2_7384
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET2_7384
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_7488
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_7442
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_7442
if 
  is_char_dead 63@
goto_if_false @SWEET2_7481
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_7481
goto @SWEET2_7384

:SWEET2_7488
if 
  not is_char_dead 63@
goto_if_false @SWEET2_7516
clear_char_tasks 63@
clear_prints 
stop_char_facial_talk 63@

:SWEET2_7516
set_player_control $player1 {state} False
clear_wanted_level $player1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37812
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37813
wait 1000
36@ = 0
wait 1000
switch_widescreen True
set_near_clip 0.2
clear_help 
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_7622
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_7622
89@ = 2440.5801
94@ = -1979.89
99@ = 14.1
90@ = 2440.1399
95@ = -1976.5
100@ = 13.4
91@ = 2440.6599
96@ = -1973.76
101@ = 14.1
92@ = 2448.97
97@ = -1973.29
102@ = 13.3
93@ = 2444.3501
98@ = -1970.61
103@ = 13.7
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
$tag_target[3] = create_object #DYN_WINE_BIG {x} 92@ {y} 97@ {z} 102@
set_object_heading $tag_target[3] {heading} 90.0
make_object_targettable $tag_target[3] {state} True
$tag_target[4] = create_object #DYN_WINE_BIG {x} 93@ {y} 98@ {z} 103@
set_object_heading $tag_target[4] {heading} 90.0
make_object_targettable $tag_target[4] {state} True
set_fixed_camera_position 2453.7549 {y} -1978.959 {z} 15.389 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.8369 {y} -1978.611 {z} 15.1996 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_8031
set_char_coordinates $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469
goto @SWEET2_8051

:SWEET2_8031
warp_char_from_car_to_coord $scplayer {x} 2453.821 {y} -1978.777 {z} 12.5469

:SWEET2_8051
set_char_heading $scplayer {heading} 89.5159
wait 2500
set_fixed_camera_position 2449.041 {y} -1977.7321 {z} 12.9667 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2449.835 {y} -1978.326 {z} 13.0934 {switchStyle} SwitchType.JumpCut
set_char_heading $scplayer {heading} 65.0
38@ = 0
62@ = 0
clear_sequence_task 60@
59@ = open_sequence_task 
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "BBALBAT_IDLE_02" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 5000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 59@ {state} True
close_sequence_task 59@
60@ = open_sequence_task 
task_achieve_heading -1 {heading} 77.0
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "FAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
perform_sequence_task -1 {sequence} 59@
close_sequence_task 60@
58@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2450.48 {y} -1981.65 {z} 12.55 {speed} MoveState.Walk {time} 4000
perform_sequence_task -1 {sequence} 60@
close_sequence_task 58@
54@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_shoot_at_coord -1 {x} 89@ {y} 94@ {z} 99@ {time} 1400
task_shoot_at_coord -1 {x} 90@ {y} 95@ {z} 100@ {time} 1400
task_shoot_at_coord -1 {x} 91@ {y} 96@ {z} 101@ {time} 1400
task_shoot_at_coord -1 {x} 92@ {y} 97@ {z} 102@ {time} 1400
task_shoot_at_coord -1 {x} 93@ {y} 98@ {z} 103@ {time} 1400
perform_sequence_task -1 {sequence} 58@
close_sequence_task 54@
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_8771
perform_sequence_task $big_smoke {sequence} 54@
clear_sequence_task 54@

:SWEET2_8771
40@ = 0
84@ = 0

:SWEET2_8785
if 
  36@ <> 5
goto_if_false @SWEET2_11793
wait 0
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_8918
if 
  is_player_targetting_object $player1 {handle} $tag_target(42@,10i)
goto_if_false @SWEET2_8864
gosub @SWEET2_20902
goto @SWEET2_8871

:SWEET2_8864
gosub @SWEET2_20955

:SWEET2_8871
if 
  has_object_been_damaged $tag_target(42@,10i)
goto_if_false @SWEET2_8918
make_object_targettable $tag_target(42@,10i) {state} False
delete_object $tag_target(42@,10i)
36@ += 1

:SWEET2_8918
if 
  not locate_char_on_foot_3d $scplayer {x} 2448.96 {y} -1973.545 {z} 13.3074 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_9068
if 
  38@ == 0
goto_if_false @SWEET2_9061
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_9054
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_9054
38@ = 1

:SWEET2_9061
goto @SWEET2_9197

:SWEET2_9068
if 
  84@ == 0
goto_if_false @SWEET2_9131
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9131
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 1

:SWEET2_9131
if 
  38@ == 1
goto_if_false @SWEET2_9197
remove_blip 35@
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 10
print_help_forever 'HOOD2F'
print_now 'SWE2_I' {time} 10000 {flag} 1
38@ = 0

:SWEET2_9197
if 
  62@ == 0
goto_if_false @SWEET2_11637
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_11637
55@ = get_script_task_status $big_smoke {taskId} 1541
64@ = get_sequence_progress $big_smoke
if 
  64@ == 2
goto_if_false @SWEET2_9585
set_fixed_camera_position 2452.865 {y} -1977.859 {z} 13.739 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2451.9009 {y} -1978.1169 {z} 13.6752 {switchStyle} SwitchType.JumpCut
if 
  40@ == 0
goto_if_false @SWEET2_9585

:SWEET2_9337
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_9402
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9395
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_9395
goto @SWEET2_9337

:SWEET2_9402
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BD' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9453
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_9453
wait 500
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_9481
break_object $tag_target[0] {intensity} 1

:SWEET2_9481
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_9546
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9539
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_9539
goto @SWEET2_9481

:SWEET2_9546
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9569
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_9569
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37814
40@ = 1

:SWEET2_9585
if 
  64@ == 3
goto_if_false @SWEET2_9928
set_fixed_camera_position 2452.979 {y} -1980.734 {z} 13.866 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.0891 {y} -1980.282 {z} 13.8231 {switchStyle} SwitchType.JumpCut
if 
  40@ == 1
goto_if_false @SWEET2_9928

:SWEET2_9672
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_9737
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9730
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_9730
goto @SWEET2_9672

:SWEET2_9737
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_BE' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9788
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_9788
wait 500
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_9816
break_object $tag_target[1] {intensity} 1

:SWEET2_9816
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_9881
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_9874
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_9874
goto @SWEET2_9816

:SWEET2_9881
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_9912
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_9912
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37815
40@ = 2

:SWEET2_9928
if 
  64@ == 4
goto_if_false @SWEET2_10326
set_fixed_camera_position 2453.303 {y} -1979.46 {z} 14.432 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2452.354 {y} -1979.243 {z} 14.2053 {switchStyle} SwitchType.JumpCut
if 
  84@ == 1
goto_if_false @SWEET2_10060
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10060
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 2

:SWEET2_10060
if 
  40@ == 2
goto_if_false @SWEET2_10326

:SWEET2_10078
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_10143
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10136
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_10136
goto @SWEET2_10078

:SWEET2_10143
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BF' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10194
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_10194
wait 500
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_10222
break_object $tag_target[2] {intensity} 1

:SWEET2_10222
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_10287
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10280
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_10280
goto @SWEET2_10222

:SWEET2_10287
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10310
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_10310
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37810
40@ = 3

:SWEET2_10326
if 
  64@ == 5
goto_if_false @SWEET2_10661
set_fixed_camera_position 2449.363 {y} -1971.9139 {z} 13.768 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2449.4919 {y} -1972.896 {z} 13.6288 {switchStyle} SwitchType.JumpCut
if 
  40@ == 3
goto_if_false @SWEET2_10661

:SWEET2_10413
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_10478
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10471
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_10471
goto @SWEET2_10413

:SWEET2_10478
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_BG' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10529
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_10529
wait 500
if 
  does_object_exist $tag_target[3]
goto_if_false @SWEET2_10557
break_object $tag_target[3] {intensity} 1

:SWEET2_10557
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_10622
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10615
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_10615
goto @SWEET2_10557

:SWEET2_10622
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37873
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10654
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_10654
40@ = 4

:SWEET2_10661
if 
  64@ == 6
goto_if_false @SWEET2_11637
set_fixed_camera_position 2442.5029 {y} -1967.3361 {z} 14.1262 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2443.092 {y} -1968.1331 {z} 13.9918 {switchStyle} SwitchType.JumpCut
if 
  84@ == 2
goto_if_false @SWEET2_10793
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10793
remove_all_char_weapons $big_smoke
give_weapon_to_char $big_smoke {weaponType} WeaponType.Pistol {ammo} 10000
set_current_char_weapon $big_smoke {weaponType} WeaponType.Pistol
84@ = 3

:SWEET2_10793
if 
  40@ == 4
goto_if_false @SWEET2_11050

:SWEET2_10811
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_10876
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_10869
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_10869
goto @SWEET2_10811

:SWEET2_10876
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_BB' {time} 10000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_10927
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_10927
wait 500
if 
  does_object_exist $tag_target[4]
goto_if_false @SWEET2_10955
break_object $tag_target[4] {intensity} 1

:SWEET2_10955
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_11020
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11013
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11013
goto @SWEET2_10955

:SWEET2_11020
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_11043
clear_prints 
stop_char_facial_talk $big_smoke

:SWEET2_11043
40@ = 5

:SWEET2_11050
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_11115
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11108
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11108
goto @SWEET2_11050

:SWEET2_11115
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_ZZ' {time} 10000 {flag} 1

:SWEET2_11135
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_11200
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11193
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11193
goto @SWEET2_11135

:SWEET2_11200
print_now 'SWE2_I' {time} 10000 {flag} 1
set_char_coordinates $scplayer {x} 2450.74 {y} -1978.375 {z} 12.5469
set_char_heading $scplayer {heading} 89.5159
if 
  not is_char_dead 63@
goto_if_false @SWEET2_11292
set_char_coordinates 63@ {x} 2451.834 {y} -1976.811 {z} 12.5469
set_char_heading 63@ {heading} 75.6292

:SWEET2_11292
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
print_help_forever 'HOOD2F'
36@ = 0
if 
  does_object_exist $tag_target[0]
goto_if_false @SWEET2_11348
make_object_targettable $tag_target[0] {state} False

:SWEET2_11348
delete_object $tag_target[0]
$tag_target[0] = create_object #DYN_WINE_BIG {x} 89@ {y} 94@ {z} 99@
set_object_heading $tag_target[0] {heading} 90.0
make_object_targettable $tag_target[0] {state} True
if 
  does_object_exist $tag_target[1]
goto_if_false @SWEET2_11409
make_object_targettable $tag_target[1] {state} False

:SWEET2_11409
delete_object $tag_target[1]
$tag_target[1] = create_object #DYN_WINE_BIG {x} 90@ {y} 95@ {z} 100@
set_object_heading $tag_target[1] {heading} 90.0
make_object_targettable $tag_target[1] {state} True
if 
  does_object_exist $tag_target[2]
goto_if_false @SWEET2_11470
make_object_targettable $tag_target[2] {state} False

:SWEET2_11470
delete_object $tag_target[2]
$tag_target[2] = create_object #DYN_WINE_BIG {x} 91@ {y} 96@ {z} 101@
set_object_heading $tag_target[2] {heading} 90.0
make_object_targettable $tag_target[2] {state} True
if 
  does_object_exist $tag_target[3]
goto_if_false @SWEET2_11531
make_object_targettable $tag_target[3] {state} False

:SWEET2_11531
delete_object $tag_target[3]
$tag_target[3] = create_object #DYN_WINE_BIG {x} 92@ {y} 97@ {z} 102@
set_object_heading $tag_target[3] {heading} 90.0
make_object_targettable $tag_target[3] {state} True
if 
  does_object_exist $tag_target[4]
goto_if_false @SWEET2_11592
make_object_targettable $tag_target[4] {state} False

:SWEET2_11592
delete_object $tag_target[4]
$tag_target[4] = create_object #DYN_WINE_BIG {x} 93@ {y} 98@ {z} 103@
set_object_heading $tag_target[4] {heading} 90.0
make_object_targettable $tag_target[4] {state} True
62@ = 1

:SWEET2_11637
42@ += 1
if 
  42@ >= 5
goto_if_false @SWEET2_11669
42@ = 0

:SWEET2_11669
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11708
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11708
if 
  is_char_dead 63@
goto_if_false @SWEET2_11747
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11747
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_11786
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11786
goto @SWEET2_8785

:SWEET2_11793
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37835

:SWEET2_11802
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_11906
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_11860
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11860
if 
  is_char_dead 63@
goto_if_false @SWEET2_11899
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_11899
goto @SWEET2_11802

:SWEET2_11906
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_DG' {time} 10000 {flag} 1
if 
  not is_char_dead 63@
goto_if_false @SWEET2_12000
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET2_12000
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_12104
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_12058
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_12058
if 
  is_char_dead 63@
goto_if_false @SWEET2_12097
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_12097
goto @SWEET2_12000

:SWEET2_12104
if 
  not is_char_dead 63@
goto_if_false @SWEET2_12132
clear_char_tasks 63@
clear_prints 
stop_char_facial_talk 63@

:SWEET2_12132
clear_wanted_level $player1
set_player_control $player1 {state} False
wait 1000
36@ = 0
wait 1000
switch_widescreen True
set_near_clip 0.2
clear_help 
if 
  not is_car_dead 83@
goto_if_false @SWEET2_12271
set_car_coordinates 83@ {x} 2446.49 {y} -1966.47 {z} 12.54
set_car_heading 83@ {heading} 101.85
set_fixed_camera_position 2447.2229 {y} -1971.385 {z} 14.5714 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2447.0701 {y} -1970.434 {z} 14.2998 {switchStyle} SwitchType.JumpCut

:SWEET2_12271
if 
  not is_char_dead 63@
goto_if_false @SWEET2_12317
set_char_coordinates 63@ {x} 2452.6899 {y} -1980.218 {z} 12.5469
set_char_heading 63@ {heading} 44.7926

:SWEET2_12317
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_12363
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_12363
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_12406
set_char_coordinates $scplayer {x} 2446.1101 {y} -1974.53 {z} 12.54
goto @SWEET2_12426

:SWEET2_12406
warp_char_from_car_to_coord $scplayer {x} 2446.1101 {y} -1974.53 {z} 12.54

:SWEET2_12426
set_char_heading $scplayer {heading} 349.81
print_now 'SWE2_F' {time} 10000 {flag} 1
if 
  not is_car_dead 83@
goto_if_false @SWEET2_12529
wait 3000
set_fixed_camera_position 2448.249 {y} -1968.608 {z} 13.7351 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2447.9189 {y} -1967.707 {z} 13.4528 {switchStyle} SwitchType.JumpCut
wait 2000

:SWEET2_12529
print_help_forever 'HOOD2C'
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
38@ = 0
62@ = 0

:SWEET2_12569
if 
  not is_car_dead 83@
goto_if_false @SWEET2_13089
wait 0
if 
  not locate_char_on_foot_3d $scplayer {x} 2451.95 {y} -1978.9301 {z} 12.55 {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SWEET2_12739
if 
  38@ == 0
goto_if_false @SWEET2_12732
remove_blip 35@
35@ = add_blip_for_coord 2451.95 {y} -1978.9301 {z} 12.55
clear_help 
print_now 'SWE2_J' {time} 10000 {flag} 1
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_12725
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 10

:SWEET2_12725
38@ = 1

:SWEET2_12732
goto @SWEET2_12824

:SWEET2_12739
if 
  38@ == 1
goto_if_false @SWEET2_12824
remove_blip 35@
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_12790
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 30000

:SWEET2_12790
print_help_forever 'HOOD2C'
print_now 'SWE2_F' {time} 10000 {flag} 1
38@ = 0

:SWEET2_12824
if 
  62@ == 0
goto_if_false @SWEET2_12965
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_12965
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
if 
  not is_char_dead 63@
goto_if_false @SWEET2_12912
set_char_proofs 63@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 63@ {health} 600

:SWEET2_12912
if 
  not is_car_dead 83@
goto_if_false @SWEET2_12943
set_car_proofs 83@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SWEET2_12943
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
62@ = 1

:SWEET2_12965
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_13004
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_13004
if 
  is_char_dead 63@
goto_if_false @SWEET2_13043
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_13043
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_13082
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_13082
goto @SWEET2_12569

:SWEET2_13089
clear_help 
clear_wanted_level $player1
mark_model_as_no_longer_needed 549
wait 2000
clear_wanted_level $player1
do_fade 500 {direction} Fade.Out

:SWEET2_13118
if 
  get_fading_status 
goto_if_false @SWEET2_13142
wait 0
goto @SWEET2_13118

:SWEET2_13142
load_scene_in_direction 2450.5669 {y} -1975.641 {z} 12.5469 {heading} 288.0
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
request_animation "GANGS"

:SWEET2_13213
if 
  not has_animation_loaded "GANGS"
goto_if_false @SWEET2_13244
wait 0
goto @SWEET2_13213

:SWEET2_13244
80@ = 0
81@ = 0
82@ = 0
39@ = 1
gosub @SWEET2_47
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_13322
set_char_coordinates $scplayer {x} 2450.5669 {y} -1975.641 {z} 12.5469
goto @SWEET2_13342

:SWEET2_13322
warp_char_from_car_to_coord $scplayer {x} 2450.5669 {y} -1975.641 {z} 12.5469

:SWEET2_13342
set_char_heading $scplayer {heading} 288.25
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_13484
set_char_coordinates $big_smoke {x} 2452.741 {y} -1976.45 {z} 12.5469
set_char_heading $big_smoke {heading} 345.3302
if 
  not is_char_dead 63@
goto_if_false @SWEET2_13484
set_char_health 63@ {health} 600
set_char_coordinates 63@ {x} 2452.8459 {y} -1975.1 {z} 12.5469
set_char_heading 63@ {heading} 160.25
task_turn_char_to_face_char $big_smoke {target} $scplayer
task_turn_char_to_face_char 63@ {target} $scplayer
clear_look_at 63@
task_look_at_char 63@ {target} $scplayer {time} 30000

:SWEET2_13484
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_13530
set_car_coordinates $big_smoke_car {x} 2452.646 {y} -2003.876 {z} 12.554
set_car_heading $big_smoke_car {heading} 100.2244

:SWEET2_13530
clear_area 2453.0291 {y} -2001.059 {z} 12.554 {radius} 30.0 {clearParticles} True
clear_help 
clear_prints 
do_fade 500 {direction} Fade.In
set_fixed_camera_position 2450.1069 {y} -1977.553 {z} 14.0919 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2450.7771 {y} -1976.838 {z} 13.8915 {switchStyle} SwitchType.JumpCut
82@ = 0

:SWEET2_13623
if 
  80@ <> 1
goto_if_false @SWEET2_13878
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_13754
if 
  81@ == 2
goto_if_false @SWEET2_13754
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_13754
task_play_anim $big_smoke {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
82@ = 1

:SWEET2_13754
if 
  is_char_dead 63@
goto_if_false @SWEET2_13793
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_13793
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_13832
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_13832
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_13871
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_13871
goto @SWEET2_13623

:SWEET2_13878
88@ = 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 2452.646 {y} -2003.876 {z} 12.554 {radius} 50.0 {clearParticles} True
skip_cutscene_start_internal @SWEET2_17099
82@ = 0

:SWEET2_13937
if 
  80@ <> 2
goto_if_false @SWEET2_14149
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_14025
if 
  81@ == 2
goto_if_false @SWEET2_14025
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14025
82@ = 1

:SWEET2_14025
if 
  is_char_dead 63@
goto_if_false @SWEET2_14064
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14064
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14103
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14103
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14142
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14142
goto @SWEET2_13937

:SWEET2_14149
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14170
stop_char_facial_talk $big_smoke

:SWEET2_14170
82@ = 0

:SWEET2_14177
if 
  80@ <> 3
goto_if_false @SWEET2_14389
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_14265
if 
  81@ == 2
goto_if_false @SWEET2_14265
if 
  not is_char_dead 63@
goto_if_false @SWEET2_14265
82@ = 1

:SWEET2_14265
if 
  is_char_dead 63@
goto_if_false @SWEET2_14304
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14304
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14343
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14343
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14382
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14382
goto @SWEET2_14177

:SWEET2_14389
82@ = 0

:SWEET2_14396
if 
  80@ <> 4
goto_if_false @SWEET2_14608
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_14484
if 
  81@ == 2
goto_if_false @SWEET2_14484
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14484
82@ = 1

:SWEET2_14484
if 
  is_char_dead 63@
goto_if_false @SWEET2_14523
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14523
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14562
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14562
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14601
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14601
goto @SWEET2_14396

:SWEET2_14608
82@ = 0

:SWEET2_14615
if 
  80@ <> 5
goto_if_false @SWEET2_14827
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_14703
if 
  81@ == 2
goto_if_false @SWEET2_14703
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14703
82@ = 1

:SWEET2_14703
if 
  is_char_dead 63@
goto_if_false @SWEET2_14742
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14742
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_14781
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14781
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_14820
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_14820
goto @SWEET2_14615

:SWEET2_14827
task_go_straight_to_coord $scplayer {x} 2452.6421 {y} -1998.219 {z} 12.554 {speed} MoveState.Walk {time} 20000
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14893
task_go_straight_to_coord $big_smoke {x} 2454.9509 {y} -1998.658 {z} 12.554 {speed} MoveState.Walk {time} 20000

:SWEET2_14893
82@ = 0

:SWEET2_14900
if 
  80@ <> 6
goto_if_false @SWEET2_15112
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_14988
if 
  81@ == 2
goto_if_false @SWEET2_14988
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_14988
82@ = 1

:SWEET2_14988
if 
  is_char_dead 63@
goto_if_false @SWEET2_15027
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15027
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_15066
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15066
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15105
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15105
goto @SWEET2_14900

:SWEET2_15112
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15165
task_go_straight_to_coord 63@ {x} 2453.321 {y} -1987.714 {z} 12.5469 {speed} MoveState.Walk {time} 20000
set_anim_group_for_char 63@ {animGroup} "GANG1"

:SWEET2_15165
set_char_coordinates $scplayer {x} 2452.0791 {y} -1978.844 {z} 12.5469
set_char_heading $scplayer {heading} 180.0
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} 2452.6421 {y} -1998.219 {z} 12.554 {speed} MoveState.Walk {time} 20000
82@ = 0

:SWEET2_15232
if 
  80@ <> 7
goto_if_false @SWEET2_15444
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_15320
if 
  81@ == 2
goto_if_false @SWEET2_15320
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15320
82@ = 1

:SWEET2_15320
if 
  is_char_dead 63@
goto_if_false @SWEET2_15359
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15359
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_15398
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15398
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15437
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15437
goto @SWEET2_15232

:SWEET2_15444
set_fixed_camera_position 2453.5879 {y} -1992.36 {z} 14.707 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2453.5381 {y} -1991.412 {z} 14.3914 {switchStyle} SwitchType.JumpCut
82@ = 0

:SWEET2_15502
if 
  80@ <> 8
goto_if_false @SWEET2_15714
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_15590
if 
  81@ == 2
goto_if_false @SWEET2_15590
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15590
82@ = 1

:SWEET2_15590
if 
  is_char_dead 63@
goto_if_false @SWEET2_15629
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15629
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_15668
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15668
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15707
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15707
goto @SWEET2_15502

:SWEET2_15714
82@ = 0

:SWEET2_15721
if 
  80@ <> 9
goto_if_false @SWEET2_15933
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_15809
if 
  81@ == 2
goto_if_false @SWEET2_15809
if 
  not is_char_dead 63@
goto_if_false @SWEET2_15809
82@ = 1

:SWEET2_15809
if 
  is_char_dead 63@
goto_if_false @SWEET2_15848
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15848
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_15887
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15887
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_15926
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_15926
goto @SWEET2_15721

:SWEET2_15933
82@ = 0

:SWEET2_15940
if 
  80@ <> 10
goto_if_false @SWEET2_16195
wait 0
gosub @SWEET2_21000
if 
  82@ == 0
goto_if_false @SWEET2_16071
if 
  81@ == 2
goto_if_false @SWEET2_16071
if 
  not is_char_dead 63@
goto_if_false @SWEET2_16071
task_play_anim 63@ {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
82@ = 1

:SWEET2_16071
if 
  is_char_dead 63@
goto_if_false @SWEET2_16110
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16110
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16149
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16149
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16188
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16188
goto @SWEET2_15940

:SWEET2_16195
if 
  80@ <> 11
goto_if_false @SWEET2_16348
wait 0
gosub @SWEET2_21000
if 
  is_char_dead 63@
goto_if_false @SWEET2_16263
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16263
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16302
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16302
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16341
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16341
goto @SWEET2_16195

:SWEET2_16348
if 
  not is_char_dead 63@
goto_if_false @SWEET2_16369
clear_char_tasks 63@

:SWEET2_16369
clear_area 2453.0291 {y} -2001.059 {z} 12.554 {radius} 10.0 {clearParticles} True
set_fixed_camera_position 2453.5691 {y} -1992.405 {z} 16.0824 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2453.603 {y} -1993.318 {z} 15.6741 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_16512
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_16512
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} $big_smoke_car {time} 50000 {seat} SeatId.BikeRear
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} $big_smoke_car {time} 50000

:SWEET2_16512
if 
  80@ <> 12
goto_if_false @SWEET2_16665
wait 0
gosub @SWEET2_21000
if 
  is_char_dead 63@
goto_if_false @SWEET2_16580
print_now 'SWE2_K' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16580
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16619
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16619
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16658
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16658
goto @SWEET2_16512

:SWEET2_16665
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_16813
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_16813

:SWEET2_16697
if or
  not is_char_sitting_in_car $scplayer {vehicle} $big_smoke_car
  not is_char_sitting_in_car $big_smoke {vehicle} $big_smoke_car
goto_if_false @SWEET2_16813
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16767
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16767
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16806
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16806
goto @SWEET2_16697

:SWEET2_16813
set_fixed_camera_position 2456.7581 {y} -1999.2531 {z} 15.2969 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2456.231 {y} -2000.027 {z} 14.947 {switchStyle} SwitchType.JumpCut

:SWEET2_16864
if 
  80@ <> 13
goto_if_false @SWEET2_16978
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_16925
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16925
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_16964
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_16964
gosub @SWEET2_21000
goto @SWEET2_16864

:SWEET2_16978
if 
  80@ <> 14
goto_if_false @SWEET2_17092
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_17039
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_17039
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_17078
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_17078
gosub @SWEET2_21000
goto @SWEET2_16978

:SWEET2_17092
88@ = 1

:SWEET2_17099
skip_cutscene_end 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
if 
  88@ == 0
goto_if_false @SWEET2_17281
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:SWEET2_17150
if 
  get_fading_status 
goto_if_false @SWEET2_17174
wait 0
goto @SWEET2_17150

:SWEET2_17174
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
camera_reset_new_scriptables 
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_17270
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_17270
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_17244
warp_char_into_car $scplayer {vehicle} $big_smoke_car

:SWEET2_17244
if 
  not is_char_in_any_car $big_smoke
goto_if_false @SWEET2_17270
warp_char_into_car_as_passenger $big_smoke {handle} $big_smoke_car {seat} SeatId.BikeRear

:SWEET2_17270
wait 100
do_fade 500 {direction} Fade.In

:SWEET2_17281
delete_char 63@
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
set_script_limit_to_gang_size 99
41@ += 60
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_17340
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 41@

:SWEET2_17340
print_now 'SWE2_D' {time} 10000 {flag} 1
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_17397
remove_blip 35@
remove_blip 44@
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True

:SWEET2_17397
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_17433
46@ = add_blip_for_char $big_smoke
set_blip_as_friendly 46@ {state} True
remove_blip 46@

:SWEET2_17433
35@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
remove_blip 35@
$blob_flag = 1
47@ = 0
45@ = 0
38@ = 0
61@ = 0
53@ = 0
TIMERA = 0
TIMERB = 0
80@ = 0
81@ = 0
82@ = 0
39@ = 2
gosub @SWEET2_47
gosub @SWEET2_22741
56@ = 0
release_weather 
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "COLT45"
remove_animation "FAT"
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #DYN_WINE_BIG
mark_model_as_no_longer_needed 549
unload_special_character 1

:SWEET2_17618
if or
  not locate_car_3d $big_smoke_car {x} 2066.4651 {y} -1695.444 {z} 12.5547 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $big_smoke {vehicle} $big_smoke_car
  not is_vehicle_on_all_wheels $big_smoke_car
goto_if_false @SWEET2_18388
wait 0
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_17893
if 
  TIMERA > 5000
goto_if_false @SWEET2_17762
if 
  53@ == 1
goto_if_false @SWEET2_17762
print_help 'HELP53'
TIMERA = 0
53@ = 2

:SWEET2_17762
if 
  TIMERA > 5000
goto_if_false @SWEET2_17824
if 
  53@ == 2
goto_if_false @SWEET2_17824
print_help 'HOOD2D'
TIMERA = 0
53@ = 3

:SWEET2_17824
if 
  TIMERA > 5000
goto_if_false @SWEET2_17886
if 
  53@ == 3
goto_if_false @SWEET2_17886
print_help 'HOOD2E'
TIMERA = 0
53@ = 4

:SWEET2_17886
goto @SWEET2_17982

:SWEET2_17893
if 
  TIMERA > 2000
goto_if_false @SWEET2_17982
if 
  53@ == 0
goto_if_false @SWEET2_17982
print_help 'EMMET_G'
remove_blip $emmets_shop_blip
$emmets_shop_blip = add_short_range_sprite_blip_for_coord 2447.364 {y} -1974.496 {z} 12.5469 {sprite} RadarSprite.EmmetGun
TIMERA = 0
53@ = 1

:SWEET2_17982
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_18280
if 
  not is_car_dead $big_smoke_car
goto_if_false @SWEET2_18250
if 
  is_char_in_car $scplayer {vehicle} $big_smoke_car
goto_if_false @SWEET2_18151
if 
  45@ == 0
goto_if_false @SWEET2_18111
remove_blip 44@
remove_blip 35@
print_now 'SWE2_D' {time} 6000 {flag} 1
35@ = add_blip_for_coord 2066.4651 {y} -1695.444 {z} 12.5547
$blob_flag = 1
45@ = 1

:SWEET2_18111
if 
  TIMERB > 6000
goto_if_false @SWEET2_18144
gosub @SWEET2_21000
56@ = 1

:SWEET2_18144
goto @SWEET2_18243

:SWEET2_18151
if 
  45@ == 1
goto_if_false @SWEET2_18243
remove_blip 35@
remove_blip 44@
44@ = add_blip_for_car $big_smoke_car
set_blip_as_friendly 44@ {state} True
gosub @SWEET2_21245
print_now 'SWE2_L' {time} 6000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
$blob_flag = 0
45@ = 0

:SWEET2_18243
goto @SWEET2_18273

:SWEET2_18250
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_18273
goto @SWEET2_18303

:SWEET2_18280
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_18303
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_18342
print_now 'SWE2_C' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_18342
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_18381
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_18381
goto @SWEET2_17618

:SWEET2_18388
set_player_control $player1 {state} False
switch_widescreen True
set_near_clip 0.2
set_fixed_camera_position 2086.01 {y} -1699.698 {z} 17.7495 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2085.0601 {y} -1699.8311 {z} 17.4682 {switchStyle} SwitchType.JumpCut
request_model 330
wait 1000
do_fade 1000 {direction} Fade.Out

:SWEET2_18474
if 
  get_fading_status 
goto_if_false @SWEET2_18498
wait 0
goto @SWEET2_18474

:SWEET2_18498
if 
  not has_model_loaded 330
goto_if_false @SWEET2_18525
wait 0
goto @SWEET2_18498

:SWEET2_18525
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_18635
if 
  not is_char_in_any_car $big_smoke
goto_if_false @SWEET2_18584
set_char_coordinates $big_smoke {x} 2071.1689 {y} -1703.0601 {z} 12.5538
goto @SWEET2_18604

:SWEET2_18584
warp_char_from_car_to_coord $big_smoke {x} 2071.1689 {y} -1703.0601 {z} 12.5538

:SWEET2_18604
set_char_heading $big_smoke {heading} 162.3527
clear_char_tasks $big_smoke
clear_look_at $big_smoke
task_look_at_char $big_smoke {target} $scplayer {time} 4000

:SWEET2_18635
if 
  not is_char_in_any_car $scplayer
goto_if_false @SWEET2_18678
set_char_coordinates $scplayer {x} 2071.554 {y} -1704.375 {z} 12.5538
goto @SWEET2_18698

:SWEET2_18678
warp_char_from_car_to_coord $scplayer {x} 2071.554 {y} -1704.375 {z} 12.5538

:SWEET2_18698
set_char_heading $scplayer {heading} 12.5041
clear_char_tasks $scplayer
set_fixed_camera_position 2069.6069 {y} -1704.63 {z} 14.2313 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2070.4751 {y} -1704.174 {z} 14.0353 {switchStyle} SwitchType.JumpCut
wait 1000
do_fade 1000 {direction} Fade.In
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37871
load_mission_audio MissionAudioSlot.Slot2 {audioId} 37872
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000

:SWEET2_18801
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_18866
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_18859
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_18859
goto @SWEET2_18801

:SWEET2_18866
play_mission_audio MissionAudioSlot.Slot1
print_now 'SWE3_JA' {time} 10000 {flag} 1
gosub @SWEET2_21732

:SWEET2_18893
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_18958
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_18951
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_18951
goto @SWEET2_18893

:SWEET2_18958
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_18979
clear_look_at $big_smoke

:SWEET2_18979
gosub @SWEET2_22114

:SWEET2_18986
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_19051
wait 0
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_19044
print_now 'SWE2_B' {time} 10000 {flag} 1
goto @SWEET2_20215

:SWEET2_19044
goto @SWEET2_18986

:SWEET2_19051
play_mission_audio MissionAudioSlot.Slot2
print_now 'SWE3_JB' {time} 10000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_19127
task_go_straight_to_coord $big_smoke {x} 2065.1001 {y} -1703.4 {z} 13.15 {speed} MoveState.Walk {time} 4000

:SWEET2_19127
wait 1000
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_19173
task_go_straight_to_coord $scplayer {x} 2073.2871 {y} -1702.104 {z} 12.5469 {speed} MoveState.Walk {time} 4000

:SWEET2_19173
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_prints 
wait 1000
set_fixed_camera_position 2072.7229 {y} -1699.7371 {z} 14.1283 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2072.9351 {y} -1700.67 {z} 13.8382 {switchStyle} SwitchType.JumpCut
delete_char $big_smoke

:SWEET2_19248
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SWEET2_19274
wait 0
goto @SWEET2_19248

:SWEET2_19274
play_mission_audio MissionAudioSlot.Slot3
TIMERA = 0

:SWEET2_19285
if 
  not has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @SWEET2_19337
wait 0
if 
  TIMERA > 1500
goto_if_false @SWEET2_19330
goto @SWEET2_19337

:SWEET2_19330
goto @SWEET2_19285

:SWEET2_19337
80@ = 0
81@ = 0
82@ = 0
39@ = 3
gosub @SWEET2_47
clear_char_tasks $scplayer
task_use_mobile_phone $scplayer {start} True
wait 1800
85@ = 0
65@ = 0
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "COLT45"
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed #DYN_WINE_BIG
mark_model_as_no_longer_needed 549
unload_special_character 10
unload_special_character 1

:SWEET2_19458
if 
  not locate_char_any_means_3d $scplayer {x} 2246.9719 {y} -1660.7791 {z} 14.2856 {xRadius} 3.5 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET2_19706
wait 0
if 
  85@ == 0
goto_if_false @SWEET2_19618
gosub @SWEET2_21000
if 
  80@ > 0
goto_if_false @SWEET2_19618
if or
  80@ == 10
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SWEET2_19618
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
task_use_mobile_phone $scplayer {start} False
mark_model_as_no_longer_needed 330
print_now 'COLORS' {time} 6000 {flag} 1
85@ = 1

:SWEET2_19618
if 
  65@ == 0
goto_if_false @SWEET2_19699
if 
  80@ > 0
goto_if_false @SWEET2_19699
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
remove_blip 35@
35@ = add_blip_for_coord 2246.9719 {y} -1660.7791 {z} 14.2856
65@ = 1

:SWEET2_19699
goto @SWEET2_19458

:SWEET2_19706
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2253.0991 {y} -1644.225 {z} 16.6501 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2252.7739 {y} -1645.161 {z} 16.5203 {switchStyle} SwitchType.JumpCut
print_now 'S2HELP1' {time} 6000 {flag} 1
switch_entry_exit 'CSCHP' {state} True
switch_entry_exit 'CSSPRT' {state} True
switch_entry_exit 'LACS1' {state} True
wait 2500
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
87@ = 0

:SWEET2_19848
if 
  87@ <> 2
goto_if_false @SWEET2_20195
wait 0
86@ = get_area_visible 
if 
  86@ == 15
goto_if_false @SWEET2_20087
if 
  87@ == 0
goto_if_false @SWEET2_20087
if 
  locate_char_on_foot_3d $scplayer {x} 208.0279 {y} -107.9499 {z} 1004.133 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET2_20087
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
wait 1500
set_player_control $player1 {state} False
set_fixed_camera_position 213.0277 {y} -102.9124 {z} 1006.377 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 213.7582 {y} -102.2797 {z} 1006.119 {switchStyle} SwitchType.JumpCut
print_now 'S2HELP2' {time} 6000 {flag} 1
wait 4000
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
print_help 'HELWARD'
87@ = 1

:SWEET2_20087
if 
  87@ == 1
goto_if_false @SWEET2_20188
if 
  86@ == 0
goto_if_false @SWEET2_20188
if 
  locate_char_on_foot_3d $scplayer {x} 2244.48 {y} -1664.0601 {z} 14.469 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET2_20188
remove_blip 35@
wait 2000
87@ = 2

:SWEET2_20188
goto @SWEET2_19848

:SWEET2_20195
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
goto @SWEET2_20304

:SWEET2_20215
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @SWEET2_20258
set_char_ammo $scplayer {weaponType} WeaponType.Pistol {ammo} 5

:SWEET2_20258
remove_blip $emmets_shop_blip
switch_entry_exit 'CSCHP' {state} False
switch_entry_exit 'CSSPRT' {state} False
switch_entry_exit 'LACS1' {state} False
return 

:SWEET2_20304
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET_2'
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 4
start_new_script @SMOKE 
remove_blip $smoke_contact_blip
$smoke_contact_blip = add_sprite_blip_for_contact_point $smokeX {y} $smokeY {z} $smokeZ {sprite} $smoke_blip_icon
remove_blip $clothes_shop1
$clothes_shop1 = add_short_range_sprite_blip_for_coord 2243.8069 {y} -1668.567 {z} 20.0313 {sprite} RadarSprite.Tshirt
remove_blip $emmets_shop_blip
$emmets_shop_blip = add_short_range_sprite_blip_for_coord 2447.364 {y} -1974.496 {z} 12.5469 {sprite} RadarSprite.EmmetGun
$emmets_gun = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 16 {x} 2447.7729 {y} -1975.663 {z} 13.0
if 
  $added_all_clothes_blips_before == 0
goto_if_false @SWEET2_20717
switch_entry_exit 'CSCHP' {state} True
switch_entry_exit 'CSSPRT' {state} True
switch_entry_exit 'LACS1' {state} True
$2638 = add_short_range_sprite_blip_for_coord -2376.3999 {y} 909.2 {z} 45.4 {sprite} RadarSprite.Tshirt
$2639 = add_short_range_sprite_blip_for_coord 1654.0 {y} 1733.4 {z} 11.0 {sprite} RadarSprite.Tshirt
$2640 = add_short_range_sprite_blip_for_coord 2105.7 {y} 2257.3999 {z} 11.0 {sprite} RadarSprite.Tshirt
$2646 = add_short_range_sprite_blip_for_coord -2371.1001 {y} 910.2 {z} 47.2 {sprite} RadarSprite.Tshirt
$2641 = add_short_range_sprite_blip_for_coord 501.7 {y} -1358.5 {z} 16.4 {sprite} RadarSprite.Tshirt
$2642 = add_short_range_sprite_blip_for_coord 2818.6001 {y} 2401.5 {z} 11.0 {sprite} RadarSprite.Tshirt
$2636 = add_short_range_sprite_blip_for_coord 2112.8 {y} -1214.7 {z} 23.9 {sprite} RadarSprite.Tshirt
$2637 = add_short_range_sprite_blip_for_coord 2772.0 {y} 2447.6001 {z} 11.0 {sprite} RadarSprite.Tshirt
$2648 = add_short_range_sprite_blip_for_coord -2489.0 {y} -26.9 {z} 32.6 {sprite} RadarSprite.Tshirt
$added_all_clothes_blips_before = 1

:SWEET2_20717
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
return 

:SWEET2_20732
$onmission = 0
$timer_mobile_start = get_game_timer 
remove_char_elegantly $big_smoke
remove_char_elegantly 63@
remove_animation "GANGS"
remove_animation "CRACK"
remove_animation "COLT45"
remove_animation "FAT"
switch_car_generator $gen_car7 {amount} 101
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed #DYN_WINE_BIG
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 549
gosub @SWEET2_22741
unload_special_character 10
unload_special_character 1
remove_blip 35@
remove_blip 44@
set_script_limit_to_gang_size 99
release_weather 
if 
  not is_car_dead 83@
goto_if_false @SWEET2_20882
set_car_proofs 83@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SWEET2_20882
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_help 
mission_has_finished 
return 

:SWEET2_20902
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_20953
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_20953
task_look_at_object $big_smoke {object} $tag_target(42@,10i) {time} 5000

:SWEET2_20953
return 

:SWEET2_20955
if 
  does_object_exist $tag_target(42@,10i)
goto_if_false @SWEET2_20996
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_20996
clear_look_at $big_smoke

:SWEET2_20996
return 
return 

:SWEET2_21000
if or
  81@ == 0
  81@ == 1
goto_if_false @SWEET2_21070
if 
  is_int_lvar_greater_or_equal_to_int_lvar 48@ >= 80@
goto_if_false @SWEET2_21070
if 
  TIMERA > 200
goto_if_false @SWEET2_21070
gosub @SWEET2_21142

:SWEET2_21070
if 
  81@ == 2
goto_if_false @SWEET2_21140
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SWEET2_21140
gosub @SWEET2_22114
81@ = 0
80@ += 1
82@ = 0
clear_prints 
TIMERA = 0

:SWEET2_21140
return 

:SWEET2_21142
if 
  81@ == 0
goto_if_false @SWEET2_21178
load_mission_audio MissionAudioSlot.Slot1 {audioId} 66@(80@,14i)
81@ = 1

:SWEET2_21178
if 
  81@ == 1
goto_if_false @SWEET2_21243
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SWEET2_21243
print_now $sweet2_chat(80@,14s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @SWEET2_21732
81@ = 2

:SWEET2_21243
return 

:SWEET2_21245
clear_mission_audio MissionAudioSlot.Slot2
if 
  57@ == 0
goto_if_false @SWEET2_21276
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35800

:SWEET2_21276
if 
  57@ == 1
goto_if_false @SWEET2_21303
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35801

:SWEET2_21303
if 
  57@ == 2
goto_if_false @SWEET2_21330
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35802

:SWEET2_21330
if 
  57@ == 3
goto_if_false @SWEET2_21357
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35803

:SWEET2_21357
if 
  57@ == 4
goto_if_false @SWEET2_21384
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35804

:SWEET2_21384
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SWEET2_21400
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SWEET2_21462
wait 0
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_21437
return 

:SWEET2_21437
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_21455
return 

:SWEET2_21455
goto @SWEET2_21400

:SWEET2_21462
play_mission_audio MissionAudioSlot.Slot2
if 
  57@ == 0
goto_if_false @SWEET2_21500
print_now 'SMOX_AA' {time} 3000 {flag} 1

:SWEET2_21500
if 
  57@ == 1
goto_if_false @SWEET2_21534
print_now 'SMOX_AB' {time} 3000 {flag} 1

:SWEET2_21534
if 
  57@ == 2
goto_if_false @SWEET2_21568
print_now 'SMOX_AC' {time} 3000 {flag} 1

:SWEET2_21568
if 
  57@ == 3
goto_if_false @SWEET2_21602
print_now 'SMOX_AD' {time} 3000 {flag} 1

:SWEET2_21602
if 
  57@ == 4
goto_if_false @SWEET2_21636
print_now 'SMOX_AE' {time} 3000 {flag} 1

:SWEET2_21636
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SWEET2_21698
wait 0
if 
  is_car_dead $big_smoke_car
goto_if_false @SWEET2_21673
return 

:SWEET2_21673
if 
  is_char_dead $big_smoke
goto_if_false @SWEET2_21691
return 

:SWEET2_21691
goto @SWEET2_21636

:SWEET2_21698
57@ += 1
if 
  57@ > 4
goto_if_false @SWEET2_21730
57@ = 0

:SWEET2_21730
return 

:SWEET2_21732
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37800
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37805
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37808
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37862
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37864
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37866
goto_if_false @SWEET2_21844
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET2_21844
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37869
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29066
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29068
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29070
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29074
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37872
goto_if_false @SWEET2_21948
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 3000
return 

:SWEET2_21948
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37852
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37856
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37857
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37858
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37859
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37860
goto_if_false @SWEET2_22081
if 
  not is_char_dead 63@
goto_if_false @SWEET2_22074
shut_char_up_for_scripted_speech 63@ {state} True
start_char_facial_talk 63@ {duration} 3000

:SWEET2_22074
goto @SWEET2_22112

:SWEET2_22081
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_22112
shut_char_up_for_scripted_speech $big_smoke {state} True
start_char_facial_talk $big_smoke {duration} 3000

:SWEET2_22112
return 

:SWEET2_22114
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37800
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37805
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37808
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37862
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37864
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37866
goto_if_false @SWEET2_22223
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET2_22223
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37869
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29066
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29068
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29070
  is_int_lvar_equal_to_constant 66@(80@,14i) == 29074
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37872
goto_if_false @SWEET2_22324
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
return 

:SWEET2_22324
if or
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37852
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37856
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37857
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37858
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37859
  is_int_lvar_equal_to_constant 66@(80@,14i) == 37860
goto_if_false @SWEET2_22454
if 
  not is_char_dead 63@
goto_if_false @SWEET2_22447
shut_char_up_for_scripted_speech 63@ {state} False
stop_char_facial_talk 63@

:SWEET2_22447
goto @SWEET2_22482

:SWEET2_22454
if 
  not is_char_dead $big_smoke
goto_if_false @SWEET2_22482
shut_char_up_for_scripted_speech $big_smoke {state} False
stop_char_facial_talk $big_smoke

:SWEET2_22482
return 

:SWEET2_22484
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 0
return 

:SWEET2_22741
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 30
return 

//-------------Mission 17---------------
// Originally: Drive-By

:SWEET4
script_name 'SWEET4'
gosub @SWEET4_4512
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET4_38
gosub @SWEET4_23767

:SWEET4_38
gosub @SWEET4_23887
terminate_this_script 

:SWEET4_47
request_model 492
request_model 372
request_model 346
load_special_character 10 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'RYDER2'
load_special_character 3 {modelName} 'SWEET'
load_all_models_now 

:SWEET4_103
if or
  not has_model_loaded 492
  not has_model_loaded 372
  not has_model_loaded 346
  not has_special_character_loaded 10
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @SWEET4_152
wait 0
goto @SWEET4_103

:SWEET4_152
return 

:SWEET4_154
397@ = 2510.76
398@ = -1665.8199
399@ = 12.3835
400@ = 213.1638
clear_area 397@ {y} 398@ {z} 399@ {radius} 1.0 {clearParticles} True
394@ = create_char PedType.CivMale {modelId} 299 {x} 397@ {y} 398@ {z} 399@
set_char_get_out_upside_down_car 394@ {state} False
give_weapon_to_char 394@ {weaponType} WeaponType.Tec9 {ammo} $sw4_ammo
set_current_char_weapon 394@ {weaponType} WeaponType.Tec9
set_char_heading 394@ {heading} 400@
set_char_accuracy 394@ {accuracy} 90
set_anim_group_for_char 394@ {animGroup} "FATMAN"
set_char_proofs 394@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
return 

:SWEET4_300
404@ = 2509.3899
405@ = -1672.0699
406@ = 12.3835
407@ = 59.592
clear_area 404@ {y} 405@ {z} 406@ {radius} 1.0 {clearParticles} True
401@ = create_char PedType.CivMale {modelId} 291 {x} 404@ {y} 405@ {z} 406@
set_char_get_out_upside_down_car 401@ {state} False
give_weapon_to_char 401@ {weaponType} WeaponType.Tec9 {ammo} $sw4_ammo
set_current_char_weapon 401@ {weaponType} WeaponType.Tec9
set_char_heading 401@ {heading} 407@
set_char_accuracy 401@ {accuracy} 90
set_anim_group_for_char 401@ {animGroup} "GANG1"
set_char_proofs 401@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
return 
mark_char_as_no_longer_needed 401@
return 

:SWEET4_452
411@ = 2514.29
412@ = -1670.46
413@ = 12.3835
414@ = 41.1276
clear_area 411@ {y} 412@ {z} 413@ {radius} 1.0 {clearParticles} True
408@ = create_char PedType.CivMale {modelId} 292 {x} 411@ {y} 412@ {z} 413@
set_char_get_out_upside_down_car 408@ {state} False
give_weapon_to_char 408@ {weaponType} WeaponType.Tec9 {ammo} $sw4_ammo
set_current_char_weapon 408@ {weaponType} WeaponType.Tec9
set_char_heading 408@ {heading} 414@
set_char_accuracy 408@ {accuracy} 90
set_anim_group_for_char 408@ {animGroup} "GANG2"
set_char_proofs 408@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
return 

:SWEET4_597
request_model 102
request_model 103
request_model 346
request_model 412
request_model 365
load_all_models_now 

:SWEET4_622
if or
  not has_model_loaded 102
  not has_model_loaded 103
  not has_model_loaded 346
  not has_model_loaded 412
  not has_model_loaded 365
goto_if_false @SWEET4_667
wait 0
goto @SWEET4_622

:SWEET4_667
request_animation "GANGS"
request_animation "GHANDS"
request_animation "GHETTO_DB"

:SWEET4_699
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "GHANDS"
  not has_animation_loaded "GHETTO_DB"
goto_if_false @SWEET4_753
wait 0
goto @SWEET4_699

:SWEET4_753
42@ = 1
return 
$sw4_spray_marker = add_blip_for_coord 2075.55 {y} -1831.09 {z} 12.21
195@ = create_char PedType.Gang1 {modelId} 102 {x} 465@ {y} 483@ {z} 501@
326@ = create_char PedType.Gang1 {modelId} 102 {x} 465@ {y} 483@ {z} 501@
395@ = add_blip_for_char 394@
409@ = add_blip_for_char 408@
402@ = add_blip_for_char 401@

:SWEET4_842
527@ = 2077.1799
531@ = -1362.05
535@ = 23.65
539@ = 180.0
451@ = 2079.4199
469@ = -1364.08
487@ = 23.04
505@ = 314.1323
clear_area 527@ {y} 531@ {z} 535@ {radius} 0.5 {clearParticles} True
523@ = create_car 412 {x} 527@ {y} 531@ {z} 535@
415@ = create_char_inside_car 523@ {pedType} PedType.Gang1 {modelId} 102
set_car_heading 523@ {heading} 539@
suppress_car_model 412
open_car_door 523@ {door} CarDoor.LeftFrontDoor
give_weapon_to_char 415@ {weaponType} WeaponType.Tec9 {ammo} $sw4_ammo
set_char_accuracy 415@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1033
433@ = add_blip_for_char 415@

:SWEET4_1033
452@ = 2075.95
470@ = -1365.74
488@ = 24.02
506@ = 315.85
clear_area 452@ {y} 470@ {z} 488@ {radius} 0.5 {clearParticles} True
416@ = create_char PedType.Gang1 {modelId} 103 {x} 452@ {y} 470@ {z} 488@
give_weapon_to_char 416@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 416@ {heading} 506@
set_char_accuracy 416@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1161
434@ = add_blip_for_char 416@

:SWEET4_1161
453@ = 2079.8701
471@ = -1361.88
489@ = 24.02
507@ = 54.15
clear_area 453@ {y} 471@ {z} 489@ {radius} 0.5 {clearParticles} True
417@ = create_char PedType.Gang1 {modelId} 102 {x} 453@ {y} 471@ {z} 489@
give_weapon_to_char 417@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 417@ {heading} 507@
set_char_accuracy 417@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1289
435@ = add_blip_for_char 417@

:SWEET4_1289
454@ = 2079.3401
472@ = -1360.02
490@ = 24.02
508@ = 214.36
clear_area 454@ {y} 472@ {z} 490@ {radius} 0.5 {clearParticles} True
418@ = create_char PedType.Gang1 {modelId} 102 {x} 454@ {y} 472@ {z} 490@
give_weapon_to_char 418@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 418@ {heading} 508@
set_char_accuracy 418@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1417
436@ = add_blip_for_char 418@

:SWEET4_1417
return 

:SWEET4_1419
528@ = 2101.5701
532@ = -1287.65
536@ = 24.17
540@ = 5.0
455@ = 2101.5701
473@ = -1287.65
491@ = 24.17
509@ = 5.0
clear_area 455@ {y} 473@ {z} 491@ {radius} 0.5 {clearParticles} True
524@ = create_car 412 {x} 528@ {y} 532@ {z} 536@
419@ = create_char_inside_car 524@ {pedType} PedType.Gang1 {modelId} 102
set_car_heading 524@ {heading} 540@
pop_car_boot 524@
give_weapon_to_char 419@ {weaponType} WeaponType.Tec9 {ammo} $sw4_ammo
set_char_accuracy 419@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1603
437@ = add_blip_for_char 419@

:SWEET4_1603
456@ = 2101.5801
474@ = -1291.78
492@ = 24.02
510@ = 182.8706
clear_area 456@ {y} 474@ {z} 492@ {radius} 0.5 {clearParticles} True
420@ = create_char PedType.Gang1 {modelId} 103 {x} 456@ {y} 474@ {z} 492@
give_weapon_to_char 420@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 420@ {heading} 510@
set_char_accuracy 420@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1731
438@ = add_blip_for_char 420@

:SWEET4_1731
457@ = 2099.3
475@ = -1291.12
493@ = 24.02
511@ = 105.53
clear_area 457@ {y} 475@ {z} 493@ {radius} 0.5 {clearParticles} True
421@ = create_char PedType.Gang1 {modelId} 102 {x} 457@ {y} 475@ {z} 493@
give_weapon_to_char 421@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 421@ {heading} 511@
set_char_accuracy 421@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1859
439@ = add_blip_for_char 421@

:SWEET4_1859
458@ = 2093.8401
476@ = -1290.0699
494@ = 23.15
512@ = 58.035
clear_area 458@ {y} 476@ {z} 494@ {radius} 0.5 {clearParticles} True
422@ = create_char PedType.Gang1 {modelId} 103 {x} 458@ {y} 476@ {z} 494@
give_weapon_to_char 422@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 422@ {heading} 512@
set_char_accuracy 422@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_1987
440@ = add_blip_for_char 422@

:SWEET4_1987
return 

:SWEET4_1989
459@ = 2161.0701
477@ = -1265.92
495@ = 23.02
513@ = 257.59
clear_area 459@ {y} 477@ {z} 495@ {radius} 0.5 {clearParticles} True
423@ = create_char PedType.Gang1 {modelId} 102 {x} 459@ {y} 477@ {z} 495@
give_weapon_to_char 423@ {weaponType} WeaponType.Tec9 {ammo} $sw4_ammo
set_char_heading 423@ {heading} 513@
set_char_accuracy 423@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_2117
441@ = add_blip_for_char 423@

:SWEET4_2117
460@ = 2162.1799
478@ = -1264.6899
496@ = 23.03
514@ = 238.46
clear_area 460@ {y} 478@ {z} 496@ {radius} 0.5 {clearParticles} True
424@ = create_char PedType.Gang1 {modelId} 102 {x} 460@ {y} 478@ {z} 496@
give_weapon_to_char 424@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 424@ {heading} 514@
set_char_accuracy 424@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_2245
442@ = add_blip_for_char 424@

:SWEET4_2245
461@ = 2162.97
479@ = -1261.92
497@ = 23.02
515@ = 45.33
clear_area 461@ {y} 479@ {z} 497@ {radius} 0.5 {clearParticles} True
425@ = create_char PedType.Gang1 {modelId} 103 {x} 461@ {y} 479@ {z} 497@
give_weapon_to_char 425@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 425@ {heading} 515@
set_char_accuracy 425@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_2373
443@ = add_blip_for_char 425@

:SWEET4_2373
462@ = 2160.1201
480@ = -1262.98
498@ = 23.03
516@ = 18.46
clear_area 462@ {y} 480@ {z} 498@ {radius} 0.5 {clearParticles} True
426@ = create_char PedType.Gang1 {modelId} 103 {x} 462@ {y} 480@ {z} 498@
give_weapon_to_char 426@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 426@ {heading} 516@
set_char_accuracy 426@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_2501
444@ = add_blip_for_char 426@

:SWEET4_2501
return 

:SWEET4_2503
463@ = 1983.8
481@ = -1235.98
499@ = 20.17
517@ = 318.72
clear_area 463@ {y} 481@ {z} 499@ {radius} 0.5 {clearParticles} True
427@ = create_char PedType.Gang1 {modelId} 102 {x} 463@ {y} 481@ {z} 499@
give_weapon_to_char 427@ {weaponType} WeaponType.Tec9 {ammo} $sw4_ammo
set_char_heading 427@ {heading} 517@
set_char_accuracy 427@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_2631
445@ = add_blip_for_char 427@

:SWEET4_2631
464@ = 1981.3
482@ = -1233.9399
500@ = 20.04
518@ = 254.99
clear_area 464@ {y} 482@ {z} 500@ {radius} 0.5 {clearParticles} True
428@ = create_char PedType.Gang1 {modelId} 103 {x} 464@ {y} 482@ {z} 500@
give_weapon_to_char 428@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 428@ {heading} 518@
set_char_accuracy 428@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_2759
446@ = add_blip_for_char 428@

:SWEET4_2759
465@ = 1986.67
483@ = -1239.76
501@ = 19.17
519@ = 98.28
clear_area 465@ {y} 483@ {z} 501@ {radius} 0.5 {clearParticles} True
429@ = create_char PedType.Gang1 {modelId} 102 {x} 465@ {y} 483@ {z} 501@
give_weapon_to_char 429@ {weaponType} WeaponType.SprayCan {ammo} $sw4_ammo
task_stay_in_same_place 429@ {state} True
set_char_heading 429@ {heading} 519@
set_char_accuracy 429@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_2894
447@ = add_blip_for_char 429@

:SWEET4_2894
466@ = 1986.54
484@ = -1233.03
502@ = 20.07
520@ = 143.42
clear_area 466@ {y} 484@ {z} 502@ {radius} 0.5 {clearParticles} True
430@ = create_char PedType.Gang1 {modelId} 103 {x} 466@ {y} 484@ {z} 502@
give_weapon_to_char 430@ {weaponType} WeaponType.Pistol {ammo} $sw4_ammo
set_char_heading 430@ {heading} 520@
set_char_accuracy 430@ {accuracy} $sw4_hood_acc
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_3022
448@ = add_blip_for_char 430@

:SWEET4_3022
return 

:SWEET4_3024
mark_char_as_no_longer_needed 415@
mark_char_as_no_longer_needed 416@
mark_char_as_no_longer_needed 417@
mark_char_as_no_longer_needed 418@
mark_char_as_no_longer_needed 419@
mark_char_as_no_longer_needed 420@
mark_char_as_no_longer_needed 421@
mark_char_as_no_longer_needed 422@
mark_char_as_no_longer_needed 423@
mark_char_as_no_longer_needed 424@
mark_char_as_no_longer_needed 425@
mark_char_as_no_longer_needed 426@
mark_char_as_no_longer_needed 427@
mark_char_as_no_longer_needed 428@
mark_char_as_no_longer_needed 429@
mark_char_as_no_longer_needed 430@
return 

:SWEET4_3106
545@ = 2508.1599
546@ = -1666.47
547@ = 13.0
548@ = 16.0
switch_car_generator $gen_car7 {amount} 0
custom_plate_for_next_car 492 {text} "GROVE4L_"
clear_area 545@ {y} 546@ {z} 547@ {radius} 6.0 {clearParticles} True
543@ = create_car 492 {x} 545@ {y} 546@ {z} 547@
change_car_colour 543@ {color1} 59 {color2} 34
set_car_heading 543@ {heading} 548@
544@ = add_blip_for_car 543@
set_blip_as_friendly 544@ {state} True
set_can_burst_car_tyres 543@ {state} False
set_car_health 543@ {health} 1450
alter_wanted_level $player1 {wantedLevel} 0
return 

:SWEET4_3259
if 
  not is_car_dead 543@
goto_if_false @SWEET4_3296
if 
  not is_car_on_screen 543@
goto_if_false @SWEET4_3296
delete_car 543@

:SWEET4_3296
mark_model_as_no_longer_needed 492
return 

:SWEET4_3303
return 

:SWEET4_3305
return 

:SWEET4_3307
if and
  not is_char_dead 423@
  not is_char_dead 424@
  not is_char_dead 425@
  not is_char_dead 426@
goto_if_false @SWEET4_3377
192@ = create_group DefaultTaskAllocator.FollowAnyMeans
set_group_leader 192@ {handle} 423@
set_group_member 192@ {handle} 424@
set_group_member 192@ {handle} 425@
set_group_member 192@ {handle} 426@

:SWEET4_3377
return 

:SWEET4_3379
if and
  not is_char_dead 427@
  not is_char_dead 428@
  not is_char_dead 429@
  not is_char_dead 430@
goto_if_false @SWEET4_3449
193@ = create_group DefaultTaskAllocator.FollowAnyMeans
set_group_leader 193@ {handle} 427@
set_group_member 193@ {handle} 428@
set_group_member 193@ {handle} 429@
set_group_member 193@ {handle} 430@

:SWEET4_3449
return 

:SWEET4_3451
if and
  not is_car_dead 523@
  not is_car_dead 543@
goto_if_false @SWEET4_3502
98@ = open_sequence_task 
task_leave_car -1 {vehicle} 523@
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 98@

:SWEET4_3502
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_3580
99@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2075.1499 {y} -1363.85 {z} 23.85 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 5.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 99@

:SWEET4_3580
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3636
100@ = open_sequence_task 
task_dive_and_get_up -1 {directionX} 1.0 {directionY} 1.0 {timeOnGround} 500
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 100@

:SWEET4_3636
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3746
118@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 118@

:SWEET4_3746
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3785
101@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 101@

:SWEET4_3785
return 

:SWEET4_3787
if and
  not is_car_dead 524@
  not is_char_dead $scplayer
goto_if_false @SWEET4_3860
102@ = open_sequence_task 
task_leave_car -1 {vehicle} 524@
task_go_to_coord_while_shooting -1 {x} 545@ {y} 546@ {z} 547@ {speed} MoveState.Walk {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 102@

:SWEET4_3860
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3899
103@ = open_sequence_task 
task_weapon_roll -1 {direction} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 103@

:SWEET4_3899
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_3966
104@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2080.6599 {y} -1292.61 {z} 24.02 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 104@

:SWEET4_3966
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4033
105@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2132.0 {y} -1307.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 105@

:SWEET4_4033
return 

:SWEET4_4035
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4136
106@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2163.0 {y} -1262.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2080.0 {y} -1261.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 106@

:SWEET4_4136
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4169
107@ = open_sequence_task 
task_destroy_car -1 {vehicle} 543@
close_sequence_task 107@

:SWEET4_4169
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_4213
108@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_destroy_car -1 {vehicle} 543@
close_sequence_task 108@

:SWEET4_4213
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4314
109@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 2163.0 {y} -1262.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2080.0 {y} -1261.0 {z} 24.0 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 109@

:SWEET4_4314
return 

:SWEET4_4316
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4377
110@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 545@ {y} 546@ {z} 547@ {speed} MoveState.Walk {turnRadius} 1.0 {stopRadius} 5.0 {target} $scplayer
task_destroy_car -1 {vehicle} 543@
close_sequence_task 110@

:SWEET4_4377
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_4415
111@ = open_sequence_task 
task_destroy_car -1 {vehicle} 543@
close_sequence_task 111@

:SWEET4_4415
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4477
112@ = open_sequence_task 
task_shoot_at_coord -1 {x} 1984.21 {y} -1239.04 {z} 20.5 {time} 6000
task_flee_char -1 {threat} $scplayer {radius} 50.0 {time} -1
close_sequence_task 112@

:SWEET4_4477
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_4510
113@ = open_sequence_task 
task_destroy_car -1 {vehicle} 543@
close_sequence_task 113@

:SWEET4_4510
return 

:SWEET4_4512
register_mission_given 
$onmission = 1
wait 0
$sw4_stage = 0
43@ = 0
$sw4_hood_acc = 30
$sw4_ammo = 30000
$sw4_blipped = 0
$sw4_cut = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
48@ = 0
396@ = 0
403@ = 0
410@ = 0
$sw4_attack = 0
$6662 = 0
$6663 = 0
$6664 = 0
$sw4_hood_create = 0
$6666 = 0
$6667 = 0
$6668 = 0
77@ = 0
$sw4_hood_dead = 0
$6641 = 0
$6642 = 0
$6643 = 0
$6644 = 0
$6645 = 0
$6646 = 0
$6647 = 0
$6648 = 0
$6649 = 0
$6650 = 0
$6651 = 0
$6652 = 0
$6653 = 0
$6654 = 0
$6655 = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
34@ = 0
42@ = 0
84@ = 0
94@ = 0
98@ = 1
99@ = 2
100@ = 3
101@ = 4
117@ = 5
116@ = 6
96@ = 7
97@ = 8
118@ = 9
77@ = 0
85@ = 25.0
451@ = 2227.72
469@ = -1315.79
487@ = 24.04
456@ = 2099.8
474@ = -1288.37
492@ = 24.35
461@ = 2184.97
479@ = -1230.92
497@ = 24.02
466@ = 2157.77
484@ = -1345.03
502@ = 24.04
89@ = 2507.0
90@ = -1671.0
91@ = 12.0
119@ = 2500.0259
129@ = -1661.1801
139@ = 17.763
120@ = 2194.3501
130@ = -1380.42
140@ = 24.34
121@ = 2082.4199
131@ = -1362.58
141@ = 26.81
122@ = 2078.99
132@ = -1366.22
142@ = 25.09
123@ = 2152.0
133@ = -1339.0
143@ = 30.0
124@ = 2502.1599
134@ = -1661.95
144@ = 15.76
125@ = 2509.1799
135@ = -1662.8101
145@ = 14.07
126@ = 2510.6299
136@ = -1665.8101
146@ = 13.83
127@ = 2511.8899
137@ = -1668.39
147@ = 14.26
128@ = 0.0
138@ = 0.0
148@ = 0.0
54@ = 2132.239
55@ = -1379.652
56@ = 22.8281
455@ = 2101.5701
473@ = -1287.65
491@ = 24.17
509@ = 5.0
459@ = 2161.0701
477@ = -1265.92
495@ = 23.02
513@ = 257.59
463@ = 1983.8
481@ = -1235.98
499@ = 20.17
517@ = 318.72
391@ = 1
392@ = 2
389@ = 0
393@ = 1
390@ = 0
set_lvar_text_label 204@s = 'SWE4_AA'
set_lvar_text_label 206@s = 'SWE4_AB'
set_lvar_text_label 208@s = 'SWE4_AC'
set_lvar_text_label 210@s = 'SWE4_AD'
set_lvar_text_label 212@s = 'SWE4_AE'
set_lvar_text_label 214@s = 'SWE4_AF'
set_lvar_text_label 216@s = 'SWE4_AG'
set_lvar_text_label 218@s = 'SWE4_AH'
set_lvar_text_label 220@s = 'SWE4_AI'
set_lvar_text_label 222@s = 'SWE4_AJ'
set_lvar_text_label 224@s = 'SWE4_AK'
set_lvar_text_label 226@s = 'SWE4_BA'
set_lvar_text_label 228@s = 'SWE4_BB'
set_lvar_text_label 230@s = 'SWE4_BC'
set_lvar_text_label 232@s = 'SWE4_BD'
set_lvar_text_label 234@s = 'SWE4_BE'
set_lvar_text_label 236@s = 'SWE4_CA'
set_lvar_text_label 238@s = 'SWE4_CB'
set_lvar_text_label 240@s = 'SWE4_CC'
set_lvar_text_label 242@s = 'SWE4_DA'
set_lvar_text_label 244@s = 'SWE4_DB'
set_lvar_text_label 246@s = 'SWE4_DC'
set_lvar_text_label 248@s = 'SWE4_DD'
set_lvar_text_label 250@s = 'SWE4_DE'
set_lvar_text_label 252@s = 'SWE4_DF'
set_lvar_text_label 254@s = 'SWE4_EA'
set_lvar_text_label 256@s = 'SWE4_EB'
set_lvar_text_label 258@s = 'SWE4_EC'
set_lvar_text_label 260@s = 'SWE4_FA'
set_lvar_text_label 262@s = 'SWE4_FB'
set_lvar_text_label 264@s = 'SWE4_FC'
set_lvar_text_label 266@s = 'SWE4_FD'
set_lvar_text_label 268@s = 'SWE4_GA'
set_lvar_text_label 270@s = 'SWE4_GB'
set_lvar_text_label 272@s = 'SWE4_HA'
set_lvar_text_label 274@s = 'SWE4_HB'
set_lvar_text_label 276@s = 'SWE4_KA'
set_lvar_text_label 278@s = 'SWE4_KB'
set_lvar_text_label 280@s = 'SWE4_KC'
set_lvar_text_label 282@s = 'SWE4_KD'
set_lvar_text_label 284@s = 'SWE4_KF'
set_lvar_text_label 286@s = 'SWE4_KG'
set_lvar_text_label 288@s = 'SWE4_KH'
set_lvar_text_label 290@s = 'SWE4_KE'
set_lvar_text_label 292@s = 'SWE4_KI'
set_lvar_text_label 294@s = 'SWE4_LA'
set_lvar_text_label 296@s = 'SWE4_LB'
set_lvar_text_label 298@s = 'SWE4_LC'
set_lvar_text_label 300@s = 'SWE4_MA'
set_lvar_text_label 302@s = 'SWE4_MB'
set_lvar_text_label 304@s = 'SWE4_MC'
set_lvar_text_label 306@s = 'SWE4_MD'
set_lvar_text_label 308@s = 'SWE4_NA'
set_lvar_text_label 310@s = 'SWE4_NB'
set_lvar_text_label 312@s = 'SWE4_NC'
set_lvar_text_label 314@s = 'SWE4_OA'
set_lvar_text_label 316@s = 'SWE4_OB'
set_lvar_text_label 318@s = 'SWE4_OC'
set_lvar_text_label 320@s = 'SWE4_PA'
set_lvar_text_label 322@s = 'SWE4_PB'
set_lvar_text_label 324@s = 'SWE4_PC'
set_lvar_int_to_constant 328@ = 38000
set_lvar_int_to_constant 329@ = 38001
set_lvar_int_to_constant 330@ = 38002
set_lvar_int_to_constant 331@ = 38003
set_lvar_int_to_constant 332@ = 38004
set_lvar_int_to_constant 333@ = 38005
set_lvar_int_to_constant 334@ = 38006
set_lvar_int_to_constant 335@ = 38007
set_lvar_int_to_constant 336@ = 38008
set_lvar_int_to_constant 337@ = 38009
set_lvar_int_to_constant 338@ = 38010
set_lvar_int_to_constant 339@ = 38011
set_lvar_int_to_constant 340@ = 38012
set_lvar_int_to_constant 341@ = 38013
set_lvar_int_to_constant 342@ = 38014
set_lvar_int_to_constant 343@ = 38015
set_lvar_int_to_constant 344@ = 38016
set_lvar_int_to_constant 345@ = 38017
set_lvar_int_to_constant 346@ = 38018
set_lvar_int_to_constant 347@ = 38019
set_lvar_int_to_constant 348@ = 38020
set_lvar_int_to_constant 349@ = 38021
set_lvar_int_to_constant 350@ = 38022
set_lvar_int_to_constant 351@ = 38023
set_lvar_int_to_constant 352@ = 38024
set_lvar_int_to_constant 353@ = 38025
set_lvar_int_to_constant 354@ = 38026
set_lvar_int_to_constant 355@ = 38027
set_lvar_int_to_constant 356@ = 38028
set_lvar_int_to_constant 357@ = 38029
set_lvar_int_to_constant 358@ = 38030
set_lvar_int_to_constant 359@ = 38031
set_lvar_int_to_constant 360@ = 38032
set_lvar_int_to_constant 361@ = 38033
set_lvar_int_to_constant 362@ = 38034
set_lvar_int_to_constant 363@ = 38035
set_lvar_int_to_constant 364@ = 38036
set_lvar_int_to_constant 365@ = 38037
set_lvar_int_to_constant 366@ = 38038
set_lvar_int_to_constant 367@ = 38039
set_lvar_int_to_constant 368@ = 38041
set_lvar_int_to_constant 369@ = 38042
set_lvar_int_to_constant 370@ = 38043
set_lvar_int_to_constant 371@ = 38040
set_lvar_int_to_constant 372@ = 38044
set_lvar_int_to_constant 373@ = 38045
set_lvar_int_to_constant 374@ = 38046
set_lvar_int_to_constant 375@ = 38047
set_lvar_int_to_constant 376@ = 38048
set_lvar_int_to_constant 377@ = 38049
set_lvar_int_to_constant 378@ = 38050
set_lvar_int_to_constant 379@ = 38051
set_lvar_int_to_constant 380@ = 38052
set_lvar_int_to_constant 381@ = 38053
set_lvar_int_to_constant 382@ = 38054
set_lvar_int_to_constant 383@ = 38055
set_lvar_int_to_constant 384@ = 38056
set_lvar_int_to_constant 385@ = 38057
set_lvar_int_to_constant 386@ = 38058
set_lvar_int_to_constant 387@ = 38059
set_lvar_int_to_constant 388@ = 38060
clear_this_print 'M_FAIL'
load_mission_text 'SWEET4'
clear_area 2518.0 {y} -1673.0 {z} 14.0 {radius} 50.0 {clearParticles} False
do_fade 1000 {direction} Fade.Out

:SWEET4_7087
if 
  get_fading_status 
goto_if_false @SWEET4_7111
wait 0
goto @SWEET4_7087

:SWEET4_7111
load_cutscene 'SWEET4A'
do_fade 0 {direction} Fade.Out

:SWEET4_7128
if 
  not has_cutscene_loaded 
goto_if_false @SWEET4_7152
wait 0
goto @SWEET4_7128

:SWEET4_7152
do_fade 0 {direction} Fade.Out
start_cutscene 
do_fade 0 {direction} Fade.Out
do_fade 1000 {direction} Fade.In

:SWEET4_7173
if 
  not has_cutscene_finished 
goto_if_false @SWEET4_7197
wait 0
goto @SWEET4_7173

:SWEET4_7197
do_fade 0 {direction} Fade.Out

:SWEET4_7203
if 
  get_fading_status 
goto_if_false @SWEET4_7227
wait 0
goto @SWEET4_7203

:SWEET4_7227
clear_cutscene 
set_music_does_fade False
set_player_control $player1 {state} True
switch_widescreen False
set_radio_channel RadioChannel.CSR
set_create_random_gang_members False
gosub @SWEET4_47
gosub @SWEET4_154
gosub @SWEET4_300
gosub @SWEET4_452
gosub @SWEET4_3106
if and
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
  not is_car_dead 543@
goto_if_false @SWEET4_7461
set_next_desired_move_state MoveState.Walk
97@ = open_sequence_task 
task_stand_still -1 {time} 1000
task_enter_car_as_passenger -1 {vehicle} 543@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 97@
perform_sequence_task 394@ {sequence} 97@
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger 401@ {vehicle} 543@ {time} -1 {seat} SeatId.RearLeft
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger 408@ {vehicle} 543@ {time} -1 {seat} SeatId.RearRight
47@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 394@ {handleOrTemplate} 47@
set_char_decision_maker 401@ {handleOrTemplate} 47@
set_char_decision_maker 408@ {handleOrTemplate} 47@
set_char_cant_be_dragged_out $scplayer {state} True
set_char_cant_be_dragged_out 394@ {state} True
set_char_cant_be_dragged_out 401@ {state} True
set_char_cant_be_dragged_out 408@ {state} True
$sw4_text_timer_start = get_game_timer 
$sw4_text_timer_flag = -1

:SWEET4_7461
53@ = get_max_wanted_level 
set_max_wanted_level 0
set_create_random_cops False
switch_cops_on_bikes False
set_camera_behind_player 
set_wanted_multiplier 0.7
set_player_group_recruitment $player1 {state} False
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_7540
set_char_coordinates $scplayer {x} 2516.9199 {y} -1679.45 {z} 13.42
set_char_heading $scplayer {heading} 27.25

:SWEET4_7540
gosub @SWEET4_597
print_now 'SWE4_00' {time} 5000 {flag} 1
61@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In

:SWEET4_7599
wait 0
if 
  389@ <> 0
goto_if_false @SWEET4_8083
if 
  390@ == 0
goto_if_false @SWEET4_7667
if 
  has_mission_audio_loaded 392@
goto_if_false @SWEET4_7660
clear_mission_audio 392@

:SWEET4_7660
390@ = 1

:SWEET4_7667
if 
  390@ == 1
goto_if_false @SWEET4_7711
load_mission_audio 391@ {audioId} 327@(389@,62i)
gosub @SWEET4_24471
390@ = 2

:SWEET4_7711
if 
  390@ == 2
goto_if_false @SWEET4_7820
if 
  has_mission_audio_loaded 391@
goto_if_false @SWEET4_7820
if 
  326@ <> 0
goto_if_false @SWEET4_7794
if 
  not is_char_dead 326@
goto_if_false @SWEET4_7794
start_char_facial_talk 326@ {duration} 10000
shut_char_up_for_scripted_speech 326@ {state} True

:SWEET4_7794
play_mission_audio 391@
print_now 202@(389@,62s) {time} 10000 {flag} 1
390@ = 3

:SWEET4_7820
if 
  390@ == 3
goto_if_false @SWEET4_8083
if 
  has_mission_audio_finished 391@
goto_if_false @SWEET4_8022
clear_this_print 202@(389@,62s)
if 
  326@ <> 0
goto_if_false @SWEET4_7909
if 
  not is_char_dead 326@
goto_if_false @SWEET4_7909
stop_char_facial_talk 326@
shut_char_up_for_scripted_speech 326@ {state} False

:SWEET4_7909
if 
  391@ == 1
goto_if_false @SWEET4_7948
391@ = 2
392@ = 1
goto @SWEET4_7962

:SWEET4_7948
391@ = 1
392@ = 2

:SWEET4_7962
389@ = 0
390@ = 0
if 
  $sw4_text_timer_flag == 2
goto_if_false @SWEET4_8008
$sw4_text_timer_flag = 6
goto @SWEET4_8015

:SWEET4_8008
$sw4_text_timer_flag += 1

:SWEET4_8015
goto @SWEET4_8083

:SWEET4_8022
if 
  not has_mission_audio_loaded 392@
goto_if_false @SWEET4_8083
if 
  60 > 389@
goto_if_false @SWEET4_8083
set_lvar_int_to_lvar_int 393@ = 389@
393@ += 1
load_mission_audio 392@ {audioId} 327@(393@,62i)

:SWEET4_8083
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SWEET4_8105
goto @SWEET4_23785

:SWEET4_8105
if or
  8 > $sw4_stage
  $sw4_stage == 666
goto_if_false @SWEET4_8180
if or
  is_char_dead 394@
  is_char_dead 401@
  is_char_dead 408@
goto_if_false @SWEET4_8180
print_now 'SWE4_04' {time} 5000 {flag} 1
goto @SWEET4_23767

:SWEET4_8180
if 
  is_car_dead 543@
goto_if_false @SWEET4_8219
print_now 'SWE4_04' {time} 5000 {flag} 1
goto @SWEET4_23767

:SWEET4_8219
if 
  $sw4_stage == 0
goto_if_false @SWEET4_9178
if 
  not is_car_dead 543@
goto_if_false @SWEET4_9178
if and
  not is_char_dead $scplayer
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
goto_if_false @SWEET4_9178
if and
  is_char_in_car $scplayer {vehicle} 543@
  is_char_in_car 394@ {vehicle} 543@
  is_char_in_car 401@ {vehicle} 543@
  is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_8373
clear_prints 
clear_look_at 394@
remove_blip 544@
remove_blip 395@
remove_blip 402@
remove_blip 409@
$sw4_text_timer_start = get_game_timer 
$sw4_blipped = 0
$sw4_stage = 1

:SWEET4_8373
if 
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_9178
if 
  396@ == 0
goto_if_false @SWEET4_8456
if 
  not is_char_in_car 394@ {vehicle} 543@
goto_if_false @SWEET4_8456
remove_blip 544@
395@ = add_blip_for_char 394@
set_blip_as_friendly 395@ {state} True
396@ = 1

:SWEET4_8456
if 
  396@ == 1
goto_if_false @SWEET4_8570
if 
  not is_char_in_car 394@ {vehicle} 543@
goto_if_false @SWEET4_8570
if 
  not locate_char_on_foot_car_2d 394@ {vehicle} 543@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @SWEET4_8546
print_now 'SWE4_09' {time} 100 {flag} 1
goto @SWEET4_8570

:SWEET4_8546
task_enter_car_as_passenger 394@ {vehicle} 543@ {time} -1 {seat} SeatId.BikeRear
61@ = get_game_timer 
396@ = 2

:SWEET4_8570
if 
  396@ == 2
goto_if_false @SWEET4_8654
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_8654
if 
  73@ > 3000
goto_if_false @SWEET4_8654
396@ = 1

:SWEET4_8654
if 
  403@ == 0
goto_if_false @SWEET4_8718
if 
  not is_char_in_car 401@ {vehicle} 543@
goto_if_false @SWEET4_8718
remove_blip 544@
402@ = add_blip_for_char 401@
set_blip_as_friendly 402@ {state} True
403@ = 1

:SWEET4_8718
if 
  403@ == 1
goto_if_false @SWEET4_8832
if 
  not is_char_in_car 401@ {vehicle} 543@
goto_if_false @SWEET4_8832
if 
  not locate_char_on_foot_car_2d 401@ {vehicle} 543@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @SWEET4_8808
print_now 'SWE4_10' {time} 100 {flag} 1
goto @SWEET4_8832

:SWEET4_8808
task_enter_car_as_passenger 401@ {vehicle} 543@ {time} -1 {seat} SeatId.RearLeft
61@ = get_game_timer 
403@ = 2

:SWEET4_8832
if 
  403@ == 2
goto_if_false @SWEET4_8916
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_8916
if 
  73@ > 3000
goto_if_false @SWEET4_8916
403@ = 1

:SWEET4_8916
if 
  410@ == 0
goto_if_false @SWEET4_8980
if 
  not is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_8980
remove_blip 544@
409@ = add_blip_for_char 408@
set_blip_as_friendly 409@ {state} True
410@ = 1

:SWEET4_8980
if 
  410@ == 1
goto_if_false @SWEET4_9094
if 
  not is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_9094
if 
  not locate_char_on_foot_car_2d 408@ {vehicle} 543@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @SWEET4_9070
print_now 'SWE4_11' {time} 100 {flag} 1
goto @SWEET4_9094

:SWEET4_9070
task_enter_car_as_passenger 408@ {vehicle} 543@ {time} -1 {seat} SeatId.RearRight
61@ = get_game_timer 
410@ = 2

:SWEET4_9094
if 
  410@ == 2
goto_if_false @SWEET4_9178
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_9178
if 
  73@ > 3000
goto_if_false @SWEET4_9178
410@ = 1

:SWEET4_9178
if and
  not is_char_dead $scplayer
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
goto_if_false @SWEET4_10149
if 
  not is_car_dead 543@
goto_if_false @SWEET4_10149
if and
  is_char_in_car $scplayer {vehicle} 543@
  is_char_in_car 394@ {vehicle} 543@
  is_char_in_car 401@ {vehicle} 543@
  is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_10149
if 
  $sw4_stage == 1
goto_if_false @SWEET4_9293
$sw4_stage = 2

:SWEET4_9293
if 
  $sw4_stage == 2
goto_if_false @SWEET4_9351
$sw4_cut = 0
set_ped_density_multiplier 0.0
57@ = add_blip_for_coord 54@ {y} 55@ {z} 56@
61@ = get_game_timer 
$sw4_stage = 3

:SWEET4_9351
if 
  $sw4_stage == 3
goto_if_false @SWEET4_9509
if 
  43@ == 0
goto_if_false @SWEET4_9439
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 6000
goto_if_false @SWEET4_9439
61@ = get_game_timer 
43@ = 1

:SWEET4_9439
if 
  43@ == 1
goto_if_false @SWEET4_9509
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 5000
goto_if_false @SWEET4_9509
61@ = get_game_timer 
43@ = 2

:SWEET4_9509
if 
  $sw4_stage == 3
goto_if_false @SWEET4_10149
if and
  $6666 == 0
  34@ == 0
goto_if_false @SWEET4_10149
if 
  not is_car_dead 543@
goto_if_false @SWEET4_10149
if 
  locate_char_in_car_3d $scplayer {x} 54@ {y} 55@ {z} 56@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @SWEET4_9635
if 
  42@ == 0
goto_if_false @SWEET4_9635
set_ped_density_multiplier 0.0

:SWEET4_9635
if 
  locate_char_in_car_3d $scplayer {x} 54@ {y} 55@ {z} 56@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET4_10149
if 
  is_char_sitting_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_10149
set_player_control $player1 {state} False
$sw4_text_timer_flag = 9
remove_blip 57@
set_player_control $player1 {state} False
switch_widescreen True
do_fade 300 {direction} Fade.Out
$sw4_text_timer_start = get_game_timer 
task_play_anim $scplayer {animationName} "GDB_CAR_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 394@ {weaponType} WeaponType.Tec9
task_play_anim 394@ {animationName} "GDB_CAR_SMO" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 408@ {weaponType} WeaponType.Tec9
task_play_anim 408@ {animationName} "GDB_CAR_SWE" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 401@ {weaponType} WeaponType.Tec9
task_play_anim 401@ {animationName} "GDB_CAR_RYD" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_car_can_be_visibly_damaged 543@ {state} False
198@ = create_object #KB_BEER {x} 2440.5801 {y} -1979.89 {z} 14.2
gosub @SWEET4_842
gosub @SWEET4_3303
gosub @SWEET4_3451
if 
  not is_char_dead 418@
goto_if_false @SWEET4_10049
hide_char_weapon_for_scripted_cutscene 418@ {state} True
task_pick_up_object 418@ {object} 198@ {xOffset} 0.1 {yOffset} 0.1 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:SWEET4_10049
request_model #LAEROAD30

:SWEET4_10053
if 
  get_fading_status 
goto_if_false @SWEET4_10077
wait 0
goto @SWEET4_10053

:SWEET4_10077
if 
  not has_model_loaded #LAEROAD30
goto_if_false @SWEET4_10103
wait 0
goto @SWEET4_10077

:SWEET4_10103
if 
  not is_car_dead 543@
goto_if_false @SWEET4_10128
pop_car_panel 543@ {panelId} 4 {visibility} True

:SWEET4_10128
$sw4_stage = 4
34@ = 1
$sw4_hood_create = 1

:SWEET4_10149
if and
  $sw4_stage == 4
  $sw4_cut == 0
goto_if_false @SWEET4_10233
if and
  not is_char_dead 401@
  not is_char_dead 394@
goto_if_false @SWEET4_10233
if and
  not is_car_dead 543@
  not is_char_dead 408@
goto_if_false @SWEET4_10233
59@ = get_game_timer 
$sw4_text_timer_start = get_game_timer 
$sw4_cut = 1

:SWEET4_10233
if 
  $sw4_stage == 4
goto_if_false @SWEET4_11507
if 
  $sw4_cut > 0
goto_if_false @SWEET4_10349
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 2000
goto_if_false @SWEET4_10349
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET4_10349
clear_prints 
$sw4_text_timer_flag = 14
50@ = 1
$sw4_cut = 4

:SWEET4_10349
if 
  $sw4_cut == 1
goto_if_false @SWEET4_10603
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 300
goto_if_false @SWEET4_10603
if 
  $sw4_hood_create == 1
goto_if_false @SWEET4_10603
if 
  not is_char_dead 401@
goto_if_false @SWEET4_10603
set_near_clip 0.1
120@, 130@, 140@ = get_offset_from_car_in_world_coords 543@ {xOffset} -0.337 {yOffset} 1.566 {zOffset} 0.657
122@, 132@, 142@ = get_offset_from_car_in_world_coords 543@ {xOffset} 0.038 {yOffset} -1.033 {zOffset} 0.088
set_fixed_camera_position 120@ {y} 130@ {z} 140@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 122@ {y} 132@ {z} 142@ {switchStyle} SwitchType.JumpCut
59@ = get_game_timer 
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.In

:SWEET4_10565
if 
  get_fading_status 
goto_if_false @SWEET4_10589
wait 0
goto @SWEET4_10565

:SWEET4_10589
$sw4_text_timer_flag = 9
$sw4_cut = 2

:SWEET4_10603
if 
  $sw4_cut == 2
goto_if_false @SWEET4_10725
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 10700
goto_if_false @SWEET4_10725
if 
  $sw4_hood_create == 1
goto_if_false @SWEET4_10725
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.Out

:SWEET4_10694
if 
  get_fading_status 
goto_if_false @SWEET4_10718
wait 0
goto @SWEET4_10694

:SWEET4_10718
$sw4_cut = 31

:SWEET4_10725
if 
  $sw4_cut == 31
goto_if_false @SWEET4_10887
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 11000
goto_if_false @SWEET4_10887
set_near_clip 0.1
set_fading_colour 0 {g} 0 {b} 0
set_fixed_camera_position 2098.1389 {y} -1385.882 {z} 30.5735 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2098.9519 {y} -1385.364 {z} 30.3086 {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In

:SWEET4_10856
if 
  get_fading_status 
goto_if_false @SWEET4_10880
wait 0
goto @SWEET4_10856

:SWEET4_10880
$sw4_cut = 3

:SWEET4_10887
if 
  $sw4_cut == 3
goto_if_false @SWEET4_11146
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 13000
goto_if_false @SWEET4_11146
if 
  $sw4_hood_create == 1
goto_if_false @SWEET4_11146
if 
  not is_car_dead 523@
goto_if_false @SWEET4_11146
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2098.1389 {fromY} -1385.882 {fromZ} 30.5735 {toX} 2075.7871 {toY} -1369.657 {toZ} 23.6289 {time} 3500 {ease} True
camera_set_vector_track 2098.9519 {fromY} -1385.364 {fromZ} 30.3086 {toX} 2076.3159 {toY} -1368.814 {toZ} 23.7227 {time} 3500 {ease} True
if 
  not is_char_dead 417@
goto_if_false @SWEET4_11115
task_play_anim 417@ {animationName} "GSIGN1" {animationFile} "GHANDS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:SWEET4_11115
if 
  not is_char_dead 416@
goto_if_false @SWEET4_11139
perform_sequence_task 416@ {sequence} 118@

:SWEET4_11139
$sw4_cut = 4

:SWEET4_11146
if 
  $sw4_cut == 4
goto_if_false @SWEET4_11233
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if or
  71@ > 20000
  50@ == 1
goto_if_false @SWEET4_11233
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.Out
$sw4_cut = 6

:SWEET4_11233
if 
  $sw4_cut == 6
goto_if_false @SWEET4_11507
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if or
  71@ > 21000
  50@ == 1
goto_if_false @SWEET4_11507
clear_prints 
$sw4_text_timer_flag = 14
mark_model_as_no_longer_needed #LAEROAD30
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.In
remove_animation "GANGS"
remove_animation "GHANDS"
62@ = get_game_timer 
63@ = get_game_timer 
64@ = get_game_timer 
print_help 'SWE4_13'
fix_car_panel 543@ {panelId} 4
clear_area 54@ {y} 55@ {z} 56@ {radius} 4.0 {clearParticles} True
set_car_can_be_visibly_damaged 543@ {state} True
if 
  not is_car_dead 543@
goto_if_false @SWEET4_11486
$sw4_health = get_car_health 543@
if 
  $sw4_health > 250
goto_if_false @SWEET4_11471
$sw4_health -= 250

:SWEET4_11471
set_var_int_to_var_int $sw4_health_display = $sw4_health
$sw4_health_display /= 10

:SWEET4_11486
$sw4_blipped = 1
50@ = 0
$sw4_stage = 5

:SWEET4_11507
if and
  $sw4_stage == 5
  $sw4_cut >= 6
goto_if_false @SWEET4_12776
70@ = get_game_timer 
set_lvar_int_to_lvar_int 76@ = 70@
sub_int_lvar_from_int_lvar 76@ -= 64@
if 
  76@ > 5000
goto_if_false @SWEET4_11634
if 
  84@ == 0
goto_if_false @SWEET4_11634
clear_onscreen_counter $sw4_health_display
display_onscreen_counter_with_string $sw4_health_display {display} CounterDisplay.Bar {text} 'SWE4_08'
print_help 'SWE4_15'
62@ = get_game_timer 
84@ = 1

:SWEET4_11634
if and
  $sw4_attack == 0
  $sw4_hood_create == 1
goto_if_false @SWEET4_11839
if 
  not is_car_dead 543@
goto_if_false @SWEET4_11839
if and
  not is_char_dead 415@
  not is_char_dead 394@
goto_if_false @SWEET4_11839
if or
  locate_car_3d 543@ {x} 451@ {y} 469@ {z} 487@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_11839
if and
  not is_char_dead 416@
  not is_char_dead 417@
  not is_char_dead 418@
  not is_car_dead 523@
goto_if_false @SWEET4_11839
delete_object 198@
set_current_char_weapon 418@ {weaponType} WeaponType.Pistol
perform_sequence_task 415@ {sequence} 98@
clear_sequence_task 98@
perform_sequence_task 416@ {sequence} 99@
clear_sequence_task 99@
perform_sequence_task 417@ {sequence} 100@
clear_sequence_task 100@
perform_sequence_task 418@ {sequence} 101@
clear_sequence_task 101@
$sw4_attack = 1

:SWEET4_11839
if and
  $6662 == 0
  $6666 == 1
goto_if_false @SWEET4_12032
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12032
if and
  not is_char_dead 419@
  not is_char_dead 394@
goto_if_false @SWEET4_12032
if or
  locate_car_3d 543@ {x} 455@ {y} 473@ {z} 491@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_12032
if and
  not is_char_dead 420@
  not is_char_dead 421@
  not is_char_dead 422@
  not is_car_dead 524@
goto_if_false @SWEET4_12032
perform_sequence_task 419@ {sequence} 102@
clear_sequence_task 102@
perform_sequence_task 420@ {sequence} 103@
clear_sequence_task 103@
perform_sequence_task 421@ {sequence} 104@
clear_sequence_task 104@
perform_sequence_task 422@ {sequence} 105@
clear_sequence_task 105@
$6662 = 1

:SWEET4_12032
if and
  $6663 == 0
  $6667 == 1
goto_if_false @SWEET4_12220
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12220
if and
  not is_char_dead 423@
  not is_char_dead 394@
goto_if_false @SWEET4_12220
if or
  locate_car_3d 543@ {x} 459@ {y} 477@ {z} 495@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_12220
if and
  not is_char_dead 424@
  not is_char_dead 425@
  not is_char_dead 426@
goto_if_false @SWEET4_12220
perform_sequence_task 423@ {sequence} 106@
clear_sequence_task 106@
perform_sequence_task 424@ {sequence} 107@
clear_sequence_task 107@
perform_sequence_task 425@ {sequence} 108@
clear_sequence_task 108@
perform_sequence_task 426@ {sequence} 109@
clear_sequence_task 109@
$6663 = 1

:SWEET4_12220
if and
  $6664 == 0
  $6668 == 1
goto_if_false @SWEET4_12408
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12408
if and
  not is_char_dead 427@
  not is_char_dead 394@
goto_if_false @SWEET4_12408
if or
  locate_car_3d 543@ {x} 463@ {y} 481@ {z} 499@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
  is_char_shooting 394@
goto_if_false @SWEET4_12408
if and
  not is_char_dead 428@
  not is_char_dead 429@
  not is_char_dead 430@
goto_if_false @SWEET4_12408
perform_sequence_task 427@ {sequence} 110@
clear_sequence_task 110@
perform_sequence_task 428@ {sequence} 111@
clear_sequence_task 111@
perform_sequence_task 429@ {sequence} 112@
clear_sequence_task 112@
perform_sequence_task 430@ {sequence} 113@
clear_sequence_task 113@
$6664 = 1

:SWEET4_12408
if and
  $6666 == 0
  34@ == 2
  $sw4_blipped == 0
goto_if_false @SWEET4_12552
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12552
if 
  not is_point_on_screen 455@ {y} 473@ {z} 491@ {radius} 4.0
goto_if_false @SWEET4_12552
if 
  not locate_char_any_means_3d $scplayer {x} 455@ {y} 473@ {z} 491@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
goto_if_false @SWEET4_12552
gosub @SWEET4_1419
gosub @SWEET4_3305
gosub @SWEET4_3787
mark_model_as_no_longer_needed 412
$6666 = 1

:SWEET4_12552
if and
  $6667 == 0
  34@ == 3
  $sw4_blipped == 0
goto_if_false @SWEET4_12664
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12664
if 
  not locate_char_any_means_3d $scplayer {x} 459@ {y} 477@ {z} 495@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
goto_if_false @SWEET4_12664
gosub @SWEET4_1989
gosub @SWEET4_3307
gosub @SWEET4_4035
$6667 = 1

:SWEET4_12664
if and
  $6668 == 0
  34@ == 4
  $sw4_blipped == 0
goto_if_false @SWEET4_12776
if 
  not is_car_dead 543@
goto_if_false @SWEET4_12776
if 
  not locate_char_any_means_3d $scplayer {x} 463@ {y} 481@ {z} 499@ {xRadius} 85@ {yRadius} 85@ {zRadius} 85@ {drawSphere} False
goto_if_false @SWEET4_12776
gosub @SWEET4_2503
gosub @SWEET4_3379
gosub @SWEET4_4316
$6668 = 1

:SWEET4_12776
if 
  $sw4_stage > 4
goto_if_false @SWEET4_14711
if and
  not is_char_dead $scplayer
  not is_char_dead 394@
  not is_char_dead 401@
  not is_char_dead 408@
goto_if_false @SWEET4_13089
if 
  not is_car_dead 543@
goto_if_false @SWEET4_13089
if and
  is_char_in_car $scplayer {vehicle} 543@
  is_char_in_car 394@ {vehicle} 543@
  is_char_in_car 401@ {vehicle} 543@
  is_char_in_car 408@ {vehicle} 543@
goto_if_false @SWEET4_13089
if 
  not is_car_on_fire 543@
goto_if_false @SWEET4_13059
if 
  48@ == 1
goto_if_false @SWEET4_12946
clear_onscreen_counter $sw4_health_display
display_onscreen_counter_with_string $sw4_health_display {display} CounterDisplay.Bar {text} 'SWE4_08'
48@ = 0

:SWEET4_12946
$sw4_health = get_car_health 543@
$sw4_health -= 250
set_var_int_to_var_int $sw4_health_display = $sw4_health
$sw4_health_display /= 12
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2067.0 {y} -1831.0 {z} 13.0 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET4_13052
if 
  $sw4_health == 750
goto_if_false @SWEET4_13052
set_car_health 543@ {health} 1450

:SWEET4_13052
goto @SWEET4_13089

:SWEET4_13059
if 
  48@ == 0
goto_if_false @SWEET4_13089
clear_onscreen_counter $sw4_health_display
48@ = 1

:SWEET4_13089
68@ = get_game_timer 
set_lvar_int_to_lvar_int 74@ = 68@
sub_int_lvar_from_int_lvar 74@ -= 62@
if or
  74@ > 2000
  is_char_dead 195@
goto_if_false @SWEET4_13200
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 408@
gosub @SWEET4_24180
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 401@
gosub @SWEET4_24180
set_lvar_int_to_constant 41@ = 8
set_lvar_int_to_lvar_int 194@ = 394@
gosub @SWEET4_24180

:SWEET4_13200
if 
  $sw4_hood_create == 1
goto_if_false @SWEET4_13589
if 
  34@ == 1
goto_if_false @SWEET4_13589
if 
  $sw4_hood_dead == 0
goto_if_false @SWEET4_13294
if 
  is_char_dead 415@
goto_if_false @SWEET4_13294
remove_blip 433@
mark_char_as_no_longer_needed 415@
77@ += 1
$sw4_hood_dead = 1

:SWEET4_13294
if 
  $6641 == 0
goto_if_false @SWEET4_13352
if 
  is_char_dead 416@
goto_if_false @SWEET4_13352
remove_blip 434@
mark_char_as_no_longer_needed 416@
77@ += 1
$6641 = 1

:SWEET4_13352
if 
  $6642 == 0
goto_if_false @SWEET4_13410
if 
  is_char_dead 417@
goto_if_false @SWEET4_13410
remove_blip 435@
mark_char_as_no_longer_needed 417@
77@ += 1
$6642 = 1

:SWEET4_13410
if 
  $6643 == 0
goto_if_false @SWEET4_13468
if 
  is_char_dead 418@
goto_if_false @SWEET4_13468
remove_blip 436@
mark_char_as_no_longer_needed 418@
77@ += 1
$6643 = 1

:SWEET4_13468
if 
  35@ == 0
goto_if_false @SWEET4_13589
if and
  $sw4_hood_dead == 1
  $6641 == 1
  $6642 == 1
  $6643 == 1
goto_if_false @SWEET4_13589
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_13575
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_13575
389@ = 46

:SWEET4_13575
34@ = 2
35@ = 1

:SWEET4_13589
if 
  $6666 == 1
goto_if_false @SWEET4_13978
if 
  34@ == 2
goto_if_false @SWEET4_13978
if 
  $6644 == 0
goto_if_false @SWEET4_13683
if 
  is_char_dead 419@
goto_if_false @SWEET4_13683
remove_blip 437@
mark_char_as_no_longer_needed 419@
77@ += 1
$6644 = 1

:SWEET4_13683
if 
  $6645 == 0
goto_if_false @SWEET4_13741
if 
  is_char_dead 420@
goto_if_false @SWEET4_13741
remove_blip 438@
mark_char_as_no_longer_needed 420@
77@ += 1
$6645 = 1

:SWEET4_13741
if 
  $6646 == 0
goto_if_false @SWEET4_13799
if 
  is_char_dead 421@
goto_if_false @SWEET4_13799
remove_blip 439@
mark_char_as_no_longer_needed 421@
77@ += 1
$6646 = 1

:SWEET4_13799
if 
  $6647 == 0
goto_if_false @SWEET4_13857
if 
  is_char_dead 422@
goto_if_false @SWEET4_13857
remove_blip 440@
mark_char_as_no_longer_needed 422@
77@ += 1
$6647 = 1

:SWEET4_13857
if 
  36@ == 0
goto_if_false @SWEET4_13978
if and
  $6644 == 1
  $6645 == 1
  $6646 == 1
  $6647 == 1
goto_if_false @SWEET4_13978
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_13964
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_13964
389@ = 47

:SWEET4_13964
34@ = 3
36@ = 1

:SWEET4_13978
if 
  $6667 == 1
goto_if_false @SWEET4_14367
if 
  34@ == 3
goto_if_false @SWEET4_14367
if 
  $6648 == 0
goto_if_false @SWEET4_14072
if 
  is_char_dead 423@
goto_if_false @SWEET4_14072
remove_blip 441@
mark_char_as_no_longer_needed 423@
77@ += 1
$6648 = 1

:SWEET4_14072
if 
  $6649 == 0
goto_if_false @SWEET4_14130
if 
  is_char_dead 424@
goto_if_false @SWEET4_14130
remove_blip 442@
mark_char_as_no_longer_needed 424@
77@ += 1
$6649 = 1

:SWEET4_14130
if 
  $6650 == 0
goto_if_false @SWEET4_14188
if 
  is_char_dead 425@
goto_if_false @SWEET4_14188
remove_blip 443@
mark_char_as_no_longer_needed 425@
77@ += 1
$6650 = 1

:SWEET4_14188
if 
  $6651 == 0
goto_if_false @SWEET4_14246
if 
  is_char_dead 426@
goto_if_false @SWEET4_14246
remove_blip 444@
mark_char_as_no_longer_needed 426@
77@ += 1
$6651 = 1

:SWEET4_14246
if 
  37@ == 0
goto_if_false @SWEET4_14367
if and
  $6648 == 1
  $6649 == 1
  $6650 == 1
  $6651 == 1
goto_if_false @SWEET4_14367
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_14353
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_14353
389@ = 48

:SWEET4_14353
34@ = 4
37@ = 1

:SWEET4_14367
if 
  $6668 == 1
goto_if_false @SWEET4_14711
if 
  34@ == 4
goto_if_false @SWEET4_14711
if 
  $6652 == 0
goto_if_false @SWEET4_14461
if 
  is_char_dead 427@
goto_if_false @SWEET4_14461
remove_blip 445@
mark_char_as_no_longer_needed 427@
77@ += 1
$6652 = 1

:SWEET4_14461
if 
  $6653 == 0
goto_if_false @SWEET4_14519
if 
  is_char_dead 428@
goto_if_false @SWEET4_14519
remove_blip 446@
mark_char_as_no_longer_needed 428@
77@ += 1
$6653 = 1

:SWEET4_14519
if 
  $6654 == 0
goto_if_false @SWEET4_14577
if 
  is_char_dead 429@
goto_if_false @SWEET4_14577
remove_blip 447@
mark_char_as_no_longer_needed 429@
77@ += 1
$6654 = 1

:SWEET4_14577
if 
  $6655 == 0
goto_if_false @SWEET4_14635
if 
  is_char_dead 430@
goto_if_false @SWEET4_14635
remove_blip 448@
mark_char_as_no_longer_needed 430@
77@ += 1
$6655 = 1

:SWEET4_14635
if 
  38@ == 0
goto_if_false @SWEET4_14711
if and
  $6652 == 1
  $6653 == 1
  $6654 == 1
  $6655 == 1
goto_if_false @SWEET4_14711
$sw4_text_timer_start = get_game_timer 
34@ = 1
38@ = 0

:SWEET4_14711
if 
  $sw4_stage == 5
goto_if_false @SWEET4_16502
if 
  not is_car_dead 543@
goto_if_false @SWEET4_16171
if 
  45@ == 0
goto_if_false @SWEET4_15199
if and
  is_car_stopped 543@
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_15199
59@ = get_game_timer 
44@ = generate_random_int_in_range 0 {max} 5
$sw4_hood_acc = 50
if 
  not is_char_dead 415@
goto_if_false @SWEET4_14832
set_char_accuracy 415@ {accuracy} $sw4_hood_acc

:SWEET4_14832
if 
  not is_char_dead 416@
goto_if_false @SWEET4_14856
set_char_accuracy 416@ {accuracy} $sw4_hood_acc

:SWEET4_14856
if 
  not is_char_dead 417@
goto_if_false @SWEET4_14880
set_char_accuracy 417@ {accuracy} $sw4_hood_acc

:SWEET4_14880
if 
  not is_char_dead 418@
goto_if_false @SWEET4_14904
set_char_accuracy 418@ {accuracy} $sw4_hood_acc

:SWEET4_14904
if 
  not is_char_dead 419@
goto_if_false @SWEET4_14928
set_char_accuracy 419@ {accuracy} $sw4_hood_acc

:SWEET4_14928
if 
  not is_char_dead 420@
goto_if_false @SWEET4_14952
set_char_accuracy 420@ {accuracy} $sw4_hood_acc

:SWEET4_14952
if 
  not is_char_dead 421@
goto_if_false @SWEET4_14976
set_char_accuracy 421@ {accuracy} $sw4_hood_acc

:SWEET4_14976
if 
  not is_char_dead 422@
goto_if_false @SWEET4_15000
set_char_accuracy 422@ {accuracy} $sw4_hood_acc

:SWEET4_15000
if 
  not is_char_dead 423@
goto_if_false @SWEET4_15024
set_char_accuracy 423@ {accuracy} $sw4_hood_acc

:SWEET4_15024
if 
  not is_char_dead 424@
goto_if_false @SWEET4_15048
set_char_accuracy 424@ {accuracy} $sw4_hood_acc

:SWEET4_15048
if 
  not is_char_dead 425@
goto_if_false @SWEET4_15072
set_char_accuracy 425@ {accuracy} $sw4_hood_acc

:SWEET4_15072
if 
  not is_char_dead 426@
goto_if_false @SWEET4_15096
set_char_accuracy 426@ {accuracy} $sw4_hood_acc

:SWEET4_15096
if 
  not is_char_dead 427@
goto_if_false @SWEET4_15120
set_char_accuracy 427@ {accuracy} $sw4_hood_acc

:SWEET4_15120
if 
  not is_char_dead 428@
goto_if_false @SWEET4_15144
set_char_accuracy 428@ {accuracy} $sw4_hood_acc

:SWEET4_15144
if 
  not is_char_dead 429@
goto_if_false @SWEET4_15168
set_char_accuracy 429@ {accuracy} $sw4_hood_acc

:SWEET4_15168
if 
  not is_char_dead 430@
goto_if_false @SWEET4_15192
set_char_accuracy 430@ {accuracy} $sw4_hood_acc

:SWEET4_15192
45@ = 1

:SWEET4_15199
if 
  45@ == 1
goto_if_false @SWEET4_15699
69@ = get_game_timer 
set_lvar_int_to_lvar_int 75@ = 69@
sub_int_lvar_from_int_lvar 75@ -= 63@
if 
  75@ > 3000
goto_if_false @SWEET4_15699
if 
  is_car_stopped 543@
goto_if_false @SWEET4_15692
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 250
goto_if_false @SWEET4_15685
if 
  44@ == 0
goto_if_false @SWEET4_15375
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15375
389@ = 20
59@ = get_game_timer 
45@ = 2

:SWEET4_15375
if 
  44@ == 1
goto_if_false @SWEET4_15437
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15437
389@ = 21
59@ = get_game_timer 
45@ = 2

:SWEET4_15437
if 
  44@ == 2
goto_if_false @SWEET4_15499
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15499
389@ = 22
59@ = get_game_timer 
45@ = 2

:SWEET4_15499
if 
  44@ == 3
goto_if_false @SWEET4_15561
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15561
389@ = 23
59@ = get_game_timer 
45@ = 2

:SWEET4_15561
if 
  44@ == 4
goto_if_false @SWEET4_15623
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15623
389@ = 24
59@ = get_game_timer 
45@ = 2

:SWEET4_15623
if 
  44@ == 5
goto_if_false @SWEET4_15685
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_15685
389@ = 25
59@ = get_game_timer 
45@ = 2

:SWEET4_15685
goto @SWEET4_15699

:SWEET4_15692
45@ = 2

:SWEET4_15699
if 
  45@ == 2
goto_if_false @SWEET4_16171
if 
  not is_car_stopped 543@
goto_if_false @SWEET4_16171
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 3100
goto_if_false @SWEET4_15780
45@ = 0

:SWEET4_15780
$sw4_hood_acc = 30
if 
  not is_char_dead 415@
goto_if_false @SWEET4_15811
set_char_accuracy 415@ {accuracy} $sw4_hood_acc

:SWEET4_15811
if 
  not is_char_dead 416@
goto_if_false @SWEET4_15835
set_char_accuracy 416@ {accuracy} $sw4_hood_acc

:SWEET4_15835
if 
  not is_char_dead 417@
goto_if_false @SWEET4_15859
set_char_accuracy 417@ {accuracy} $sw4_hood_acc

:SWEET4_15859
if 
  not is_char_dead 418@
goto_if_false @SWEET4_15883
set_char_accuracy 418@ {accuracy} $sw4_hood_acc

:SWEET4_15883
if 
  not is_char_dead 419@
goto_if_false @SWEET4_15907
set_char_accuracy 419@ {accuracy} $sw4_hood_acc

:SWEET4_15907
if 
  not is_char_dead 420@
goto_if_false @SWEET4_15931
set_char_accuracy 420@ {accuracy} $sw4_hood_acc

:SWEET4_15931
if 
  not is_char_dead 421@
goto_if_false @SWEET4_15955
set_char_accuracy 421@ {accuracy} $sw4_hood_acc

:SWEET4_15955
if 
  not is_char_dead 422@
goto_if_false @SWEET4_15979
set_char_accuracy 422@ {accuracy} $sw4_hood_acc

:SWEET4_15979
if 
  not is_char_dead 423@
goto_if_false @SWEET4_16003
set_char_accuracy 423@ {accuracy} $sw4_hood_acc

:SWEET4_16003
if 
  not is_char_dead 424@
goto_if_false @SWEET4_16027
set_char_accuracy 424@ {accuracy} $sw4_hood_acc

:SWEET4_16027
if 
  not is_char_dead 425@
goto_if_false @SWEET4_16051
set_char_accuracy 425@ {accuracy} $sw4_hood_acc

:SWEET4_16051
if 
  not is_char_dead 426@
goto_if_false @SWEET4_16075
set_char_accuracy 426@ {accuracy} $sw4_hood_acc

:SWEET4_16075
if 
  not is_char_dead 427@
goto_if_false @SWEET4_16099
set_char_accuracy 427@ {accuracy} $sw4_hood_acc

:SWEET4_16099
if 
  not is_char_dead 428@
goto_if_false @SWEET4_16123
set_char_accuracy 428@ {accuracy} $sw4_hood_acc

:SWEET4_16123
if 
  not is_char_dead 429@
goto_if_false @SWEET4_16147
set_char_accuracy 429@ {accuracy} $sw4_hood_acc

:SWEET4_16147
if 
  not is_char_dead 430@
goto_if_false @SWEET4_16171
set_char_accuracy 430@ {accuracy} $sw4_hood_acc

:SWEET4_16171
if 
  77@ == 16
goto_if_false @SWEET4_16233
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_16233
389@ = 33
82@ = get_game_timer 
77@ = 17

:SWEET4_16233
if 
  77@ == 17
goto_if_false @SWEET4_16502
81@ = get_game_timer 
set_lvar_int_to_lvar_int 80@ = 81@
sub_int_lvar_from_int_lvar 80@ -= 82@
if 
  80@ > 3000
goto_if_false @SWEET4_16502
set_free_resprays True
clear_prints 
set_max_wanted_level 53@
if 
  49@ == 0
goto_if_false @SWEET4_16331
set_create_random_cops True
alter_wanted_level_no_drop $player1 {wantedLevel} 2

:SWEET4_16331
lock_car_doors 543@ {lockStatus} CarLock.Unlocked
clear_onscreen_counter $sw4_health_display
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
82@ = get_game_timer 
set_ped_density_multiplier 0.5
remove_blip 433@
remove_blip 434@
remove_blip 435@
remove_blip 436@
remove_blip 437@
remove_blip 438@
remove_blip 439@
remove_blip 440@
remove_blip 441@
remove_blip 442@
remove_blip 443@
remove_blip 444@
remove_blip 445@
remove_blip 446@
remove_blip 447@
remove_blip 448@
$sw4_text_timer_start = get_game_timer 
$sw4_text_timer_flag = 14
$sw4_cut = 0
$sw4_stage = 6
set_wanted_multiplier 1.0
83@ = 0

:SWEET4_16502
if and
  $sw4_stage == 6
  $sw4_text_timer_flag == 18
goto_if_false @SWEET4_18034
81@ = get_game_timer 
set_lvar_int_to_lvar_int 80@ = 81@
sub_int_lvar_from_int_lvar 80@ -= 82@
if 
  83@ == 0
goto_if_false @SWEET4_16608
if 
  80@ > 500
goto_if_false @SWEET4_16608
print_help 'SWE4_07'
remove_blip $spray_shop1
83@ += 1

:SWEET4_16608
if 
  83@ == 1
goto_if_false @SWEET4_16679
if 
  80@ > 1000
goto_if_false @SWEET4_16679
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_16679
if 
  83@ == 2
goto_if_false @SWEET4_16728
if 
  80@ > 1500
goto_if_false @SWEET4_16728
remove_blip $spray_shop1
83@ += 1

:SWEET4_16728
if 
  83@ == 3
goto_if_false @SWEET4_16799
if 
  80@ > 2000
goto_if_false @SWEET4_16799
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_16799
if 
  83@ == 4
goto_if_false @SWEET4_16848
if 
  80@ > 2500
goto_if_false @SWEET4_16848
remove_blip $spray_shop1
83@ += 1

:SWEET4_16848
if 
  83@ == 5
goto_if_false @SWEET4_16919
if 
  80@ > 3000
goto_if_false @SWEET4_16919
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_16919
if 
  83@ == 6
goto_if_false @SWEET4_16968
if 
  80@ > 3500
goto_if_false @SWEET4_16968
remove_blip $spray_shop1
83@ += 1

:SWEET4_16968
if 
  83@ == 7
goto_if_false @SWEET4_17039
if 
  80@ > 4000
goto_if_false @SWEET4_17039
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17039
if 
  83@ == 8
goto_if_false @SWEET4_17088
if 
  80@ > 4500
goto_if_false @SWEET4_17088
remove_blip $spray_shop1
83@ += 1

:SWEET4_17088
if 
  83@ == 9
goto_if_false @SWEET4_17159
if 
  80@ > 5000
goto_if_false @SWEET4_17159
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17159
if 
  83@ == 10
goto_if_false @SWEET4_17208
if 
  80@ > 5500
goto_if_false @SWEET4_17208
remove_blip $spray_shop1
83@ += 1

:SWEET4_17208
if 
  83@ == 11
goto_if_false @SWEET4_17279
if 
  80@ > 6000
goto_if_false @SWEET4_17279
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17279
if 
  83@ == 12
goto_if_false @SWEET4_17328
if 
  80@ > 6500
goto_if_false @SWEET4_17328
remove_blip $spray_shop1
83@ += 1

:SWEET4_17328
if 
  83@ == 13
goto_if_false @SWEET4_17399
if 
  80@ > 7000
goto_if_false @SWEET4_17399
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17399
if 
  83@ == 14
goto_if_false @SWEET4_17448
if 
  80@ > 7500
goto_if_false @SWEET4_17448
remove_blip $spray_shop1
83@ += 1

:SWEET4_17448
if 
  83@ == 15
goto_if_false @SWEET4_17519
if 
  80@ > 8000
goto_if_false @SWEET4_17519
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17519
if 
  83@ == 16
goto_if_false @SWEET4_17568
if 
  80@ > 8500
goto_if_false @SWEET4_17568
remove_blip $spray_shop1
83@ += 1

:SWEET4_17568
if 
  83@ == 17
goto_if_false @SWEET4_17639
if 
  80@ > 9000
goto_if_false @SWEET4_17639
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
83@ += 1

:SWEET4_17639
if 
  83@ == 18
goto_if_false @SWEET4_17688
if 
  80@ > 9500
goto_if_false @SWEET4_17688
remove_blip $spray_shop1
83@ += 1

:SWEET4_17688
if 
  83@ == 19
goto_if_false @SWEET4_17784
if 
  80@ > 10000
goto_if_false @SWEET4_17784
remove_blip $spray_shop1
$spray_shop1 = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
remove_blip $sw4_spray_marker
$sw4_spray_marker = add_blip_for_coord 2075.55 {y} -1831.09 {z} 12.21
83@ += 1

:SWEET4_17784
if 
  $sw4_cut == 0
goto_if_false @SWEET4_17891
if 
  not is_char_dead $scplayer
goto_if_false @SWEET4_17891
if 
  locate_char_in_car_3d $scplayer {x} 2075.55 {y} -1831.09 {z} 12.21 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET4_17891
clear_prints 
print_help 'SWE4_06'
remove_blip $sw4_spray_marker
$sw4_cut = 1

:SWEET4_17891
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @SWEET4_18034
if or
  locate_char_in_car_3d $scplayer {x} 2075.55 {y} -1831.09 {z} 12.21 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} True
  locate_char_in_car_3d $scplayer {x} 1024.55 {y} -1039.09 {z} 35.21 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} True
goto_if_false @SWEET4_18027
clear_help 
59@ = get_game_timer 
remove_blip $sw4_spray_marker
$sw4_stage = 7
$sw4_cut = 0
goto @SWEET4_18034

:SWEET4_18027
alter_wanted_level_no_drop $player1 {wantedLevel} 2

:SWEET4_18034
if 
  $sw4_stage == 7
goto_if_false @SWEET4_18673
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 5000
goto_if_false @SWEET4_18183
if 
  43@ == 2
goto_if_false @SWEET4_18183
set_free_resprays False
print_help 'WANT_L'
58@ = add_blip_for_coord 545@ {y} 546@ {z} 547@
remove_blip $spray_shop1
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
59@ = get_game_timer 
$sw4_text_timer_start = get_game_timer 
43@ = 3

:SWEET4_18183
if 
  43@ == 3
goto_if_false @SWEET4_18301
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 5000
goto_if_false @SWEET4_18301
if 
  49@ == 0
goto_if_false @SWEET4_18294
$sw4_text_timer_flag = 18
$sw4_text_timer_start = get_game_timer 
print_now 'SWE4_14' {time} 8000 {flag} 1
49@ = 1

:SWEET4_18294
43@ = 4

:SWEET4_18301
if 
  43@ == 4
goto_if_false @SWEET4_18673
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_18673
if 
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_18673
if 
  locate_char_in_car_3d $scplayer {x} 545@ {y} 546@ {z} 547@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET4_18673
if 
  is_char_sitting_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_18673
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} 543@ {actionId} TempAction.HandbrakeStraight {time} 2000000
clear_area 2518.0 {y} -1673.0 {z} 14.0 {radius} 50.0 {clearParticles} False
clear_prints 
set_ped_density_multiplier 0.0
switch_widescreen True
do_fade 300 {direction} Fade.Out
59@ = get_game_timer 
$sw4_text_timer_start = get_game_timer 
task_play_anim $scplayer {animationName} "GDB_CAR2_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_current_char_weapon 394@ {weaponType} WeaponType.Tec9
task_play_anim 394@ {animationName} "GDB_CAR2_SMO" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_current_char_weapon 408@ {weaponType} WeaponType.Tec9
task_play_anim 408@ {animationName} "GDB_CAR2_SWE" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_car_can_be_visibly_damaged 543@ {state} False
$sw4_cut = 0
$sw4_stage = 8

:SWEET4_18673
if 
  $sw4_stage == 8
goto_if_false @SWEET4_19980
if 
  not is_car_dead 543@
goto_if_false @SWEET4_19980
if 
  $sw4_cut == 0
goto_if_false @SWEET4_19114
if 
  52@ == 0
goto_if_false @SWEET4_19005
if 
  390@ == 0
goto_if_false @SWEET4_19005
if 
  is_car_stopped 543@
goto_if_false @SWEET4_19005
if 
  not is_char_dead 401@
goto_if_false @SWEET4_18858
pop_car_panel 543@ {panelId} 4 {visibility} True
set_fading_colour 0 {g} 0 {b} 0
117@ = open_sequence_task 
task_leave_car -1 {vehicle} 543@
task_go_straight_to_coord -1 {x} 2513.79 {y} -1663.09 {z} 14.56 {speed} MoveState.Walk {time} -2
close_sequence_task 117@
perform_sequence_task 401@ {sequence} 117@

:SWEET4_18858
120@, 130@, 140@ = get_offset_from_car_in_world_coords 543@ {xOffset} -0.4 {yOffset} 1.566 {zOffset} 0.657
122@, 132@, 142@ = get_offset_from_car_in_world_coords 543@ {xOffset} 0.038 {yOffset} -1.033 {zOffset} 0.088
set_fixed_camera_position 120@ {y} 130@ {z} 140@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 122@ {y} 132@ {z} 142@ {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In

:SWEET4_18962
if 
  get_fading_status 
goto_if_false @SWEET4_18986
wait 0
goto @SWEET4_18962

:SWEET4_18986
389@ = 42
59@ = get_game_timer 
52@ = 1

:SWEET4_19005
if 
  52@ == 1
goto_if_false @SWEET4_19114
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_19114
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_19114
389@ = 43
59@ = get_game_timer 
52@ = 2
$sw4_cut = 3

:SWEET4_19114
if 
  $sw4_cut == 3
goto_if_false @SWEET4_19453
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_19239
remove_char_elegantly 401@
if 
  52@ == 2
goto_if_false @SWEET4_19239
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_19239
389@ = 44
59@ = get_game_timer 
52@ = 3

:SWEET4_19239
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  52@ == 3
goto_if_false @SWEET4_19341
if 
  71@ > 1000
goto_if_false @SWEET4_19341
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_19341
389@ = 45
59@ = get_game_timer 
52@ = 4

:SWEET4_19341
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  not is_char_dead 408@
goto_if_false @SWEET4_19453
if 
  71@ > 1000
goto_if_false @SWEET4_19453
410@ = get_script_task_status 408@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 410@ == 7
  52@ == 4
goto_if_false @SWEET4_19453
perform_sequence_task 408@ {sequence} 117@
59@ = get_game_timer 
$sw4_cut = 4

:SWEET4_19453
if 
  $sw4_cut == 4
goto_if_false @SWEET4_19570
if 
  not is_char_dead 394@
goto_if_false @SWEET4_19570
396@ = get_script_task_status 394@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 396@ == 7
  390@ == 0
goto_if_false @SWEET4_19570
perform_sequence_task 394@ {sequence} 117@
wait 100
perform_sequence_task $scplayer {sequence} 117@
59@ = get_game_timer 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.Out
$sw4_cut = 5

:SWEET4_19570
if 
  $sw4_cut == 5
goto_if_false @SWEET4_19837
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 1000
goto_if_false @SWEET4_19837

:SWEET4_19628
if 
  get_fading_status 
goto_if_false @SWEET4_19652
wait 0
goto @SWEET4_19628

:SWEET4_19652
task_play_anim $scplayer {animationName} "GDB_CAR2_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET4_19740
warp_char_from_car_to_coord $scplayer {x} 2511.0 {y} -1671.0 {z} 12.5
goto @SWEET4_19760

:SWEET4_19740
set_char_coordinates $scplayer {x} 2511.0 {y} -1671.0 {z} 12.5

:SWEET4_19760
task_play_anim $scplayer {animationName} "GDB_CAR2_PLY" {animationFile} "GHETTO_DB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1
set_char_heading $scplayer {heading} 223.0
remove_char_elegantly 408@
remove_char_elegantly 394@
59@ = get_game_timer 
$sw4_cut = 7

:SWEET4_19837
if 
  $sw4_cut == 7
goto_if_false @SWEET4_19980
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 100
goto_if_false @SWEET4_19980
if 
  not is_car_dead 543@
goto_if_false @SWEET4_19980
delete_char 394@
delete_char 394@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
do_fade 2000 {direction} Fade.In

:SWEET4_19942
if 
  get_fading_status 
goto_if_false @SWEET4_19966
wait 0
goto @SWEET4_19942

:SWEET4_19966
goto @SWEET4_23785
$sw4_cut = 8

:SWEET4_19980
if and
  $sw4_stage > 2
  8 > $sw4_stage
goto_if_false @SWEET4_22023
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_20710
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_20710
if and
  not is_char_in_car $scplayer {vehicle} 543@
  is_char_on_foot $scplayer
goto_if_false @SWEET4_20710
close_all_car_doors 543@
if 
  51@ == 0
goto_if_false @SWEET4_20129
96@ = open_sequence_task 
task_shuffle_to_next_car_seat -1 {vehicle} 543@
task_car_drive_wander -1 {vehicle} 543@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 96@
51@ = 1

:SWEET4_20129
46@ = 0
79@ = 15000
544@ = add_blip_for_car 543@
set_blip_as_friendly 544@ {state} True
if 
  $sw4_stage == 3
goto_if_false @SWEET4_20182
remove_blip 57@

:SWEET4_20182
if 
  $sw4_stage == 5
goto_if_false @SWEET4_20645
clear_onscreen_counter $sw4_health_display
if 
  34@ == 1
goto_if_false @SWEET4_20315
if 
  $sw4_hood_dead == 0
goto_if_false @SWEET4_20246
remove_blip 433@

:SWEET4_20246
if 
  $6641 == 0
goto_if_false @SWEET4_20269
remove_blip 434@

:SWEET4_20269
if 
  $6642 == 0
goto_if_false @SWEET4_20292
remove_blip 435@

:SWEET4_20292
if 
  $6643 == 0
goto_if_false @SWEET4_20315
remove_blip 436@

:SWEET4_20315
if 
  34@ == 2
goto_if_false @SWEET4_20425
if 
  $6644 == 0
goto_if_false @SWEET4_20356
remove_blip 437@

:SWEET4_20356
if 
  $6645 == 0
goto_if_false @SWEET4_20379
remove_blip 438@

:SWEET4_20379
if 
  $6646 == 0
goto_if_false @SWEET4_20402
remove_blip 439@

:SWEET4_20402
if 
  $6647 == 0
goto_if_false @SWEET4_20425
remove_blip 440@

:SWEET4_20425
if 
  34@ == 3
goto_if_false @SWEET4_20535
if 
  $6648 == 0
goto_if_false @SWEET4_20466
remove_blip 441@

:SWEET4_20466
if 
  $6649 == 0
goto_if_false @SWEET4_20489
remove_blip 442@

:SWEET4_20489
if 
  $6650 == 0
goto_if_false @SWEET4_20512
remove_blip 443@

:SWEET4_20512
if 
  $6651 == 0
goto_if_false @SWEET4_20535
remove_blip 444@

:SWEET4_20535
if 
  34@ == 4
goto_if_false @SWEET4_20645
if 
  $6652 == 0
goto_if_false @SWEET4_20576
remove_blip 445@

:SWEET4_20576
if 
  $6653 == 0
goto_if_false @SWEET4_20599
remove_blip 446@

:SWEET4_20599
if 
  $6654 == 0
goto_if_false @SWEET4_20622
remove_blip 447@

:SWEET4_20622
if 
  $6655 == 0
goto_if_false @SWEET4_20645
remove_blip 448@

:SWEET4_20645
if 
  $sw4_stage == 6
goto_if_false @SWEET4_20668
remove_blip $sw4_spray_marker

:SWEET4_20668
if 
  $sw4_stage == 7
goto_if_false @SWEET4_20691
remove_blip 58@

:SWEET4_20691
lock_car_doors 543@ {lockStatus} CarLock.Unlocked
61@ = get_game_timer 
$sw4_blipped = 1

:SWEET4_20710
if 
  $sw4_blipped == 1
goto_if_false @SWEET4_22023
if 
  78@ >= 0
goto_if_false @SWEET4_21067
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
79@ = 10000
sub_int_lvar_from_int_lvar 79@ -= 73@
set_lvar_int_to_lvar_int 78@ = 79@
78@ /= 1000
if 
  46@ == 0
goto_if_false @SWEET4_20838
59@ = get_game_timer 
44@ = generate_random_int_in_range 0 {max} 2
46@ = 1

:SWEET4_20838
if 
  46@ == 1
goto_if_false @SWEET4_21067
65@ = get_game_timer 
set_lvar_int_to_lvar_int 71@ = 65@
sub_int_lvar_from_int_lvar 71@ -= 59@
if 
  71@ > 200
goto_if_false @SWEET4_21067
if 
  44@ == 0
goto_if_false @SWEET4_20953
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_20953
389@ = 26
44@ = 5

:SWEET4_20953
if 
  44@ == 1
goto_if_false @SWEET4_21010
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_21010
389@ = 27
44@ = 5

:SWEET4_21010
if 
  44@ == 2
goto_if_false @SWEET4_21067
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_21067
389@ = 28
44@ = 5

:SWEET4_21067
if and
  100 > 79@
  79@ > 0
goto_if_false @SWEET4_21135
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 543@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SWEET4_21135
lock_car_doors 543@ {lockStatus} CarLock.Locked

:SWEET4_21135
if 
  0 > 78@
goto_if_false @SWEET4_21160
78@ = 0

:SWEET4_21160
if 
  78@ == 0
goto_if_false @SWEET4_21297
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 543@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SWEET4_21297
if 
  not is_char_dead 394@
goto_if_false @SWEET4_21297
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_21297
lock_car_doors 543@ {lockStatus} CarLock.Locked
perform_sequence_task 394@ {sequence} 96@
clear_prints 
389@ = 29
61@ = get_game_timer 
remove_blip 544@
$sw4_stage = 666

:SWEET4_21297
if and
  not is_char_dead $scplayer
  not is_car_dead 543@
goto_if_false @SWEET4_22023
if 
  is_char_in_car $scplayer {vehicle} 543@
goto_if_false @SWEET4_22023
46@ = 0
remove_blip 544@
if 
  $sw4_stage == 3
goto_if_false @SWEET4_21381
57@ = add_blip_for_coord 54@ {y} 55@ {z} 56@

:SWEET4_21381
if 
  $sw4_stage == 5
goto_if_false @SWEET4_21902
if 
  84@ == 1
goto_if_false @SWEET4_21438
clear_onscreen_counter $sw4_health_display
display_onscreen_counter_with_string $sw4_health_display {display} CounterDisplay.Bar {text} 'SWE4_08'

:SWEET4_21438
if 
  not is_char_dead 415@
goto_if_false @SWEET4_21467
remove_blip 433@
433@ = add_blip_for_char 415@

:SWEET4_21467
if 
  not is_char_dead 416@
goto_if_false @SWEET4_21496
remove_blip 434@
434@ = add_blip_for_char 416@

:SWEET4_21496
if 
  not is_char_dead 417@
goto_if_false @SWEET4_21525
remove_blip 435@
435@ = add_blip_for_char 417@

:SWEET4_21525
if 
  not is_char_dead 418@
goto_if_false @SWEET4_21554
remove_blip 436@
436@ = add_blip_for_char 418@

:SWEET4_21554
if 
  not is_char_dead 419@
goto_if_false @SWEET4_21583
remove_blip 437@
437@ = add_blip_for_char 419@

:SWEET4_21583
if 
  not is_char_dead 420@
goto_if_false @SWEET4_21612
remove_blip 438@
438@ = add_blip_for_char 420@

:SWEET4_21612
if 
  not is_char_dead 421@
goto_if_false @SWEET4_21641
remove_blip 439@
439@ = add_blip_for_char 421@

:SWEET4_21641
if 
  not is_char_dead 422@
goto_if_false @SWEET4_21670
remove_blip 440@
440@ = add_blip_for_char 422@

:SWEET4_21670
if 
  not is_char_dead 423@
goto_if_false @SWEET4_21699
remove_blip 441@
441@ = add_blip_for_char 423@

:SWEET4_21699
if 
  not is_char_dead 424@
goto_if_false @SWEET4_21728
remove_blip 442@
442@ = add_blip_for_char 424@

:SWEET4_21728
if 
  not is_char_dead 425@
goto_if_false @SWEET4_21757
remove_blip 443@
443@ = add_blip_for_char 425@

:SWEET4_21757
if 
  not is_char_dead 426@
goto_if_false @SWEET4_21786
remove_blip 444@
444@ = add_blip_for_char 426@

:SWEET4_21786
if 
  not is_char_dead 427@
goto_if_false @SWEET4_21815
remove_blip 445@
445@ = add_blip_for_char 427@

:SWEET4_21815
if 
  not is_char_dead 428@
goto_if_false @SWEET4_21844
remove_blip 446@
446@ = add_blip_for_char 428@

:SWEET4_21844
if 
  not is_char_dead 429@
goto_if_false @SWEET4_21873
remove_blip 447@
447@ = add_blip_for_char 429@

:SWEET4_21873
if 
  not is_char_dead 430@
goto_if_false @SWEET4_21902
remove_blip 448@
448@ = add_blip_for_char 430@

:SWEET4_21902
if 
  $sw4_stage == 6
goto_if_false @SWEET4_21965
$sw4_text_timer_flag = 18
82@ = get_game_timer 
82@ -= 5000
remove_blip $sw4_spray_marker
$sw4_spray_marker = add_blip_for_coord 2075.55 {y} -1831.09 {z} 12.21

:SWEET4_21965
if 
  $sw4_stage == 7
goto_if_false @SWEET4_22002
remove_blip 58@
58@ = add_blip_for_coord 89@ {y} 90@ {z} 91@

:SWEET4_22002
clear_prints 
78@ = 1
$sw4_text_timer_start = get_game_timer 
$sw4_blipped = 0

:SWEET4_22023
if 
  $sw4_stage == 666
goto_if_false @SWEET4_22158
67@ = get_game_timer 
set_lvar_int_to_lvar_int 73@ = 67@
sub_int_lvar_from_int_lvar 73@ -= 61@
if 
  73@ > 1000
goto_if_false @SWEET4_22158
if and
  not is_char_dead 394@
  not is_car_dead 543@
goto_if_false @SWEET4_22158
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22158
task_car_drive_wander 394@ {vehicle} 543@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
389@ = 32
$sw4_stage = 667

:SWEET4_22158
if 
  $sw4_stage == 667
goto_if_false @SWEET4_22257
if 
  not is_car_dead 543@
goto_if_false @SWEET4_22257
if or
  not is_car_on_screen 543@
  not locate_char_any_means_car_3d $scplayer {vehicle} 543@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @SWEET4_22257
print_now 'SWE4_05' {time} 5000 {flag} 1
goto @SWEET4_23767

:SWEET4_22257
if 
  $sw4_blipped == 0
goto_if_false @SWEET4_23760
if 
  $sw4_stage == 3
goto_if_false @SWEET4_22691
if 
  $sw4_text_timer_flag == -1
goto_if_false @SWEET4_22398
if 
  390@ == 0
goto_if_false @SWEET4_22344
print 'SWE4_01' {time} 100 {flag} 1

:SWEET4_22344
$sw4_text_timer_end = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_diff = $sw4_text_timer_end
sub_int_var_from_int_var $sw4_text_timer_diff -= $sw4_text_timer_start
if 
  $sw4_text_timer_diff > 3000
goto_if_false @SWEET4_22398
clear_prints 
$sw4_text_timer_flag += 1
$sw4_text_timer_start = get_game_timer 

:SWEET4_22398
if 
  $sw4_text_timer_flag == 0
goto_if_false @SWEET4_22448
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22448
389@ = 1

:SWEET4_22448
if 
  $sw4_text_timer_flag == 1
goto_if_false @SWEET4_22498
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22498
389@ = 2

:SWEET4_22498
if 
  $sw4_text_timer_flag == 2
goto_if_false @SWEET4_22548
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22548
389@ = 5

:SWEET4_22548
if 
  $sw4_text_timer_flag == 6
goto_if_false @SWEET4_22598
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22598
389@ = 9

:SWEET4_22598
if 
  $sw4_text_timer_flag == 7
goto_if_false @SWEET4_22648
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22648
389@ = 10

:SWEET4_22648
if 
  $sw4_text_timer_flag == 8
goto_if_false @SWEET4_22691
if 
  390@ == 0
goto_if_false @SWEET4_22691
389@ = 11

:SWEET4_22691
if 
  $sw4_stage == 4
goto_if_false @SWEET4_23067
if 
  $sw4_text_timer_flag == 9
goto_if_false @SWEET4_22759
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22759
389@ = 12

:SWEET4_22759
if 
  $sw4_text_timer_flag == 10
goto_if_false @SWEET4_22809
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22809
389@ = 13

:SWEET4_22809
if 
  $sw4_text_timer_flag == 11
goto_if_false @SWEET4_22859
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22859
389@ = 14

:SWEET4_22859
if 
  $sw4_text_timer_flag == 12
goto_if_false @SWEET4_22909
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_22909
389@ = 15

:SWEET4_22909
if 
  $sw4_text_timer_flag == 13
goto_if_false @SWEET4_23067
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23067
389@ = 16
if 
  not is_char_dead 417@
goto_if_false @SWEET4_23011
task_play_anim 417@ {animationName} "GSIGN3" {animationFile} "GHANDS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:SWEET4_23011
if 
  not is_char_dead 418@
goto_if_false @SWEET4_23067
task_play_anim 418@ {animationName} "DRNKBR_PRTL" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:SWEET4_23067
if 
  $sw4_stage == 6
goto_if_false @SWEET4_23445
if 
  49@ == 0
goto_if_false @SWEET4_23299
if 
  $sw4_text_timer_flag == 14
goto_if_false @SWEET4_23188
print 'SWE4_12' {time} 100 {flag} 1
$sw4_text_timer_end = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_diff = $sw4_text_timer_end
sub_int_var_from_int_var $sw4_text_timer_diff -= $sw4_text_timer_start
if 
  $sw4_text_timer_diff > 4000
goto_if_false @SWEET4_23188
$sw4_text_timer_flag += 1
$sw4_text_timer_start = get_game_timer 

:SWEET4_23188
if 
  $sw4_text_timer_flag == 15
goto_if_false @SWEET4_23292
print 'SWE4_03' {time} 100 {flag} 1
$sw4_text_timer_end = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_diff = $sw4_text_timer_end
sub_int_var_from_int_var $sw4_text_timer_diff -= $sw4_text_timer_start
if 
  $sw4_text_timer_diff > 4000
goto_if_false @SWEET4_23292
82@ = get_game_timer 
$sw4_text_timer_flag += 1
$sw4_text_timer_flag += 1
$sw4_text_timer_flag += 1
$sw4_text_timer_start = get_game_timer 

:SWEET4_23292
goto @SWEET4_23445

:SWEET4_23299
if 
  $sw4_text_timer_flag == 14
goto_if_false @SWEET4_23349
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23349
389@ = 55

:SWEET4_23349
if 
  $sw4_text_timer_flag == 15
goto_if_false @SWEET4_23399
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23399
389@ = 56

:SWEET4_23399
if 
  $sw4_text_timer_flag == 16
goto_if_false @SWEET4_23445
print 'SWE4_03' {time} 4000 {flag} 1
$sw4_text_timer_flag += 1
$sw4_text_timer_start = get_game_timer 

:SWEET4_23445
if and
  $sw4_stage == 7
  43@ == 4
goto_if_false @SWEET4_23760
$sw4_text_timer_end = get_game_timer 
set_var_int_to_var_int $sw4_text_timer_diff = $sw4_text_timer_end
sub_int_var_from_int_var $sw4_text_timer_diff -= $sw4_text_timer_start
if 
  $sw4_text_timer_diff > 6000
goto_if_false @SWEET4_23560
if 
  $sw4_text_timer_flag == 18
goto_if_false @SWEET4_23560
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23560
389@ = 37

:SWEET4_23560
if 
  $sw4_text_timer_flag == 19
goto_if_false @SWEET4_23610
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23610
389@ = 38

:SWEET4_23610
if 
  $sw4_text_timer_flag == 20
goto_if_false @SWEET4_23660
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23660
389@ = 39

:SWEET4_23660
if 
  $sw4_text_timer_flag == 21
goto_if_false @SWEET4_23710
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23710
389@ = 40

:SWEET4_23710
if 
  $sw4_text_timer_flag == 22
goto_if_false @SWEET4_23760
if and
  390@ == 0
  389@ == 0
goto_if_false @SWEET4_23760
389@ = 41

:SWEET4_23760
goto @SWEET4_7599

:SWEET4_23767
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SWEET4_23785
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET_4'
player_made_progress 1
add_score $player1 {money} 500
award_player_mission_respect 6
print_with_number_big 'M_PASSS' {num} 500 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
start_new_script @RYDER 
remove_blip $ryder_contact_blip
$ryder_contact_blip = add_sprite_blip_for_contact_point $ryderX {y} $ryderY {z} $ryderZ {sprite} $ryder_blip_icon
clear_wanted_level $player1
return 

:SWEET4_23887
gosub @SWEET4_3259
gosub @SWEET4_3024
remove_char_elegantly 408@
remove_char_elegantly 401@
remove_char_elegantly 394@
unload_special_character 10
unload_special_character 2
unload_special_character 3
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 365
remove_animation "GHANDS"
remove_animation "GANGS"
remove_blip 544@
remove_blip 57@
remove_blip 58@
remove_blip 433@
remove_blip 434@
remove_blip 435@
remove_blip 436@
remove_blip 437@
remove_blip 438@
remove_blip 439@
remove_blip 440@
remove_blip 441@
remove_blip 442@
remove_blip 443@
remove_blip 444@
remove_blip 445@
remove_blip 446@
remove_blip 447@
remove_blip 448@
remove_blip $spray_shop1
remove_blip $sw4_spray_marker
$spray_shop1 = add_short_range_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
set_free_resprays False
set_wanted_multiplier 1.0
set_max_wanted_level 53@
set_create_random_cops True
switch_cops_on_bikes True
switch_car_generator $gen_car7 {amount} 101
dont_suppress_car_model 412
remove_animation "GHETTO_DB"
clear_onscreen_counter $sw4_health_display
set_music_does_fade True
set_create_random_gang_members True
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:SWEET4_24180
if 
  not is_char_dead 194@
goto_if_false @SWEET4_24210
86@, 87@, 88@ = get_char_coordinates 194@

:SWEET4_24210
195@ = -1
199@ = 99999.8984
39@ = 0

:SWEET4_24234
if 
  18 > 39@
goto_if_false @SWEET4_24380
if 
  not is_char_dead 415@(39@,18i)
goto_if_false @SWEET4_24366
get_char_coordinates 415@(39@,18i) {var_x} 451@(39@,18f) {var_y} 469@(39@,18f) {var_z} 487@(39@,18f)
200@ = get_distance_between_coords_2d 86@ {fromY} 87@ {toX} 451@(39@,18f) {toZ} 469@(39@,18f)
if 
  is_float_lvar_greater_than_float_lvar 199@ > 200@
goto_if_false @SWEET4_24366
set_lvar_float_to_lvar_float 199@ = 200@
set_lvar_int_to_lvar_int 195@ = 415@(39@,18i)

:SWEET4_24366
39@ += 1
goto @SWEET4_24234

:SWEET4_24380
if 
  195@ >= 0
goto_if_false @SWEET4_24464
if and
  not is_char_dead 195@
  not is_char_dead 194@
goto_if_false @SWEET4_24464
task_drive_by 194@ {targetChar} 195@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 40.0 {type} 41@ {rightHandCarSeat} 40@ {fireRate} 99
set_current_char_weapon 194@ {weaponType} WeaponType.Tec9

:SWEET4_24464
62@ = get_game_timer 
return 

:SWEET4_24471
if and
  389@ <= 11
  17 <= 389@
goto_if_false @SWEET4_24503
326@ = 0

:SWEET4_24503
if and
  389@ <= 41
  46 <= 389@
goto_if_false @SWEET4_24535
326@ = 0

:SWEET4_24535
if or
  389@ == 12
  389@ == 14
  389@ == 16
  389@ == 42
  389@ == 43
goto_if_false @SWEET4_24589
set_lvar_int_to_lvar_int 326@ = 408@

:SWEET4_24589
if or
  389@ == 13
  389@ == 44
goto_if_false @SWEET4_24622
set_lvar_int_to_var_int 326@ = $scplayer

:SWEET4_24622
if 
  389@ == 15
goto_if_false @SWEET4_24648
set_lvar_int_to_lvar_int 326@ = 401@

:SWEET4_24648
if 
  389@ == 45
goto_if_false @SWEET4_24674
set_lvar_int_to_lvar_int 326@ = 394@

:SWEET4_24674
return 

//-------------Mission 18---------------
// Originally: Sweet's Girl

:HOODS5
script_name 'HOODS5'
gosub @HOODS5_251
if 
  has_deatharrest_been_executed 
goto_if_false @HOODS5_38
gosub @HOODS5_15256

:HOODS5_38
gosub @HOODS5_15329
terminate_this_script 
if 
  127@ == 99
goto_if_false @HOODS5_251
50@ = create_pickup_with_ammo 346 {pickupType} PickupType.Once {ammo} 20 {x} 2444.895 {y} -1981.524 {z} 13.933
49@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.Ammugun
48@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.Ammugun
75@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
43@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
37@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
71@ = add_blip_for_char 75@
72@ = add_blip_for_char 75@
201@ = add_blip_for_char 75@
202@ = add_blip_for_char 75@
167@ = add_blip_for_pickup 50@

:HOODS5_251
register_mission_given 
$onmission = 1
set_player_group_to_follow_always $player1 {state} True
154@ = 14
155@ = 15
156@ = 16
157@ = 17
158@ = 18
161@ = 21
148@ = 0
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1

:HOODS5_325
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @HOODS5_351
goto @HOODS5_15274

:HOODS5_351
if 
is_ps2_keyboard_key_pressed 68
goto_if_false @HOODS5_454
set_char_coordinates $scplayer {x} 2769.4919 {y} -1967.329 {z} 12.3834
36@ = 0

:HOODS5_393
if 
  6 > 36@
goto_if_false @HOODS5_454
if 
  not is_char_dead 37@(36@,6i)
goto_if_false @HOODS5_440
task_die 37@(36@,6i)

:HOODS5_440
36@ += 1
goto @HOODS5_393

:HOODS5_454
if 
is_ps2_keyboard_key_pressed 70
goto_if_false @HOODS5_476
127@ = 7

:HOODS5_476
switch_start 127@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @HOODS5_737 {caseNum1} 0 {caseLabel1} @HOODS5_604 {caseNum2} 1 {caseLabel2} @HOODS5_625 {caseNum3} 2 {caseLabel3} @HOODS5_639 {caseNum4} 3 {caseLabel4} @HOODS5_653 {caseNum5} 4 {caseLabel5} @HOODS5_667 {caseNum6} 5 {caseLabel6} @HOODS5_681 {caseNum7} 6 {caseLabel7} @HOODS5_695
switch_continued 7 {caseLabel1} @HOODS5_709 {caseNum2} 8 {caseLabel2} @HOODS5_723 {caseNum3} -1 {caseLabel3} @HOODS5_737 {caseNum4} -1 {caseLabel4} @HOODS5_737 {caseNum5} -1 {caseLabel5} @HOODS5_737 {caseNum6} -1 {caseLabel6} @HOODS5_737 {caseNum7} -1 {caseLabel7} @HOODS5_737 {caseNum8} -1 {caseLabel8} @HOODS5_737 {caseNum9} -1 {caseLabel9} @HOODS5_737

:HOODS5_604
gosub @HOODS5_918
127@ = 1
goto @HOODS5_737

:HOODS5_625
gosub @HOODS5_1302
goto @HOODS5_737

:HOODS5_639
gosub @HOODS5_3513
goto @HOODS5_737

:HOODS5_653
gosub @HOODS5_4668
goto @HOODS5_737

:HOODS5_667
gosub @HOODS5_5153
goto @HOODS5_737

:HOODS5_681
gosub @HOODS5_5483
goto @HOODS5_737

:HOODS5_695
gosub @HOODS5_7802
goto @HOODS5_737

:HOODS5_709
gosub @HOODS5_9684
goto @HOODS5_737

:HOODS5_723
goto @HOODS5_15274
goto @HOODS5_737

:HOODS5_737
gosub @HOODS5_792
gosub @HOODS5_890
gosub @HOODS5_13224
if 
  126@ == 1
goto_if_false @HOODS5_783
goto @HOODS5_15256

:HOODS5_783
goto @HOODS5_325
return 

:HOODS5_792
if 
  125@ == 1
goto_if_false @HOODS5_888
if 
  is_char_dead 75@
goto_if_false @HOODS5_849
126@ = 1
print 'SW5_L' {time} 4000 {flag} 1

:HOODS5_849
if 
  is_char_dead 43@
goto_if_false @HOODS5_888
126@ = 1
print 'SW5_M' {time} 4000 {flag} 1

:HOODS5_888
return 

:HOODS5_890
if 
  has_pickup_been_collected $emmets_gun
goto_if_false @HOODS5_916
remove_blip 49@
remove_blip 167@

:HOODS5_916
return 

:HOODS5_918
clear_area $sweet_carX {y} $sweet_carY {z} $sweet_carZ {radius} 5.0 {clearParticles} True
switch_car_generator $gen_car7 {amount} 0
request_model 330
request_model 12
request_model 372
request_model 405
request_model 346
request_model 492
request_model 105
request_model 106
load_special_character 1 {modelName} 'SWEET'
load_all_models_now 

:HOODS5_995
if or
  not has_model_loaded 330
  not has_model_loaded 12
  not has_model_loaded 372
  not has_model_loaded 346
  not has_model_loaded 405
goto_if_false @HOODS5_1041
wait 0
goto @HOODS5_995

:HOODS5_1041
if or
  not has_special_character_loaded 1
  not has_model_loaded 105
  not has_model_loaded 106
  not has_model_loaded 492
goto_if_false @HOODS5_1080
wait 0
goto @HOODS5_1041

:HOODS5_1080
request_animation "SWEET"
request_animation "GANGS"

:HOODS5_1098
if or
  not has_animation_loaded "SWEET"
  not has_animation_loaded "GANGS"
goto_if_false @HOODS5_1138
wait 0
goto @HOODS5_1098

:HOODS5_1138
request_car_recording 153
request_car_recording 154

:HOODS5_1148
if or
  not has_car_recording_been_loaded 153
  not has_car_recording_been_loaded 154
goto_if_false @HOODS5_1180
wait 0
goto @HOODS5_1148

:HOODS5_1180
99@ = load_char_decision_maker DecisionMakerType.Empty
100@ = load_char_decision_maker DecisionMakerType.Tough
47@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission3
clear_char_decision_maker_event_response 47@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 47@ {event} Event.Damage
clear_char_decision_maker_event_response 47@ {event} Event.GunAimedAt
$sw5_target = 0
$6676 = 0
$6677 = 0
$6678 = 0
$6679 = 0
$6680 = 0
198@ = 99999.0
199@ = 99999.0
return 

:HOODS5_1302
if 
  148@ > 1
goto_if_false @HOODS5_1379
if 
  166@ == 0
goto_if_false @HOODS5_1379
if 
  is_skip_cutscene_button_pressed 
goto_if_false @HOODS5_1379
148@ = 7
147@ = 1
355@ = 5
35@ = 0

:HOODS5_1379
if 
  148@ == 0
goto_if_false @HOODS5_1786
load_mission_text 'SWEET5'
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_area_visible 1
load_cutscene 'SWEET5A'

:HOODS5_1437
if 
  not has_cutscene_loaded 
goto_if_false @HOODS5_1461
wait 0
goto @HOODS5_1437

:HOODS5_1461
start_cutscene 
do_fade 1000 {direction} Fade.In

:HOODS5_1470
if 
  not has_cutscene_finished 
goto_if_false @HOODS5_1494
wait 0
goto @HOODS5_1470

:HOODS5_1494
do_fade 0 {direction} Fade.Out

:HOODS5_1500
if 
  get_fading_status 
goto_if_false @HOODS5_1524
wait 0
goto @HOODS5_1500

:HOODS5_1524
clear_cutscene 
set_area_visible 0
48@ = add_blip_for_coord 2775.793 {y} -1942.9091 {z} 15.6576
set_coord_blip_appearance 48@ {color} CoordAppearance.Enemy
49@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.EmmetGun
remove_pickup $emmets_gun
$emmets_gun = create_pickup_with_ammo 346 {pickupType} PickupType.OnStreetSlow {ammo} 16 {x} 2447.7729 {y} -1975.663 {z} 13.0
167@ = add_blip_for_pickup $emmets_gun
change_blip_display 167@ {display} BlipDisplay.MarkerOnly
request_collision 2770.116 {y} -1915.896
set_char_coordinates $scplayer {x} 2770.116 {y} -1915.896 {z} 11.651
clear_char_tasks_immediately $scplayer
load_scene 2770.116 {y} -1915.896 {z} 11.651
set_fixed_camera_position 2770.897 {y} -1915.951 {z} 12.6746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2770.3369 {y} -1916.334 {z} 13.4091 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
do_fade 1500 {direction} Fade.In
352@ = 29
148@ = 1
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000

:HOODS5_1786
if 
  148@ == 1
goto_if_false @HOODS5_1860
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_1860
task_use_mobile_phone $scplayer {start} True
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2200
355@ = 3
148@ = 20

:HOODS5_1860
if 
  148@ == 20
goto_if_false @HOODS5_2062
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2062
if 
  352@ == 0
goto_if_false @HOODS5_2062
75@ = create_char PedType.Mission3 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
105@ = create_car 492 {x} 2745.5449 {y} -1942.74 {z} 12.5394
set_car_heading 105@ {heading} 90.0
set_char_heading 75@ {heading} 0.0
43@ = create_char PedType.Mission3 {modelId} 12 {x} 2751.282 {y} -1948.8669 {z} 16.3125
set_char_heading 43@ {heading} 0.0
set_char_decision_maker 43@ {handleOrTemplate} 99@
set_lvar_int_to_lvar_int 399@ = 75@
set_lvar_int_to_lvar_int 400@ = 43@
352@ = 1
354@ = 7
148@ = 2

:HOODS5_2062
if 
  148@ == 2
goto_if_false @HOODS5_2469
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2469
if 
  not is_char_dead 75@
goto_if_false @HOODS5_2150
68@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_use_mobile_phone -1 {start} True
close_sequence_task 68@
perform_sequence_task 75@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_2150
if 
  not is_char_dead 43@
goto_if_false @HOODS5_2233
68@ = open_sequence_task 
task_pause -1 {time} 500
task_play_anim -1 {animationName} "DUCK_COWER" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 16000
close_sequence_task 68@
perform_sequence_task 43@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_2233
37@ = create_char PedType.Mission2 {modelId} 106 {x} 2751.5149 {y} -1973.178 {z} 16.3051
set_char_accuracy 37@ {accuracy} 40
set_char_decision_maker 37@ {handleOrTemplate} 99@
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_duck 37@ {state} True
68@ = open_sequence_task 
task_pause -1 {time} 2500
task_go_straight_to_coord -1 {x} 2751.791 {y} -1964.08 {z} 16.3125 {speed} MoveState.Walk {time} -2
task_pause -1 {time} 3500
task_go_straight_to_coord -1 {x} 2751.791 {y} -1954.08 {z} 16.3125 {speed} MoveState.Walk {time} -2
close_sequence_task 68@
perform_sequence_task 37@ {sequence} 68@
clear_sequence_task 68@
38@ = create_char PedType.Mission2 {modelId} 105 {x} 2753.197 {y} -1973.946 {z} 16.3051
set_char_accuracy 38@ {accuracy} 40
give_weapon_to_char 38@ {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_duck 38@ {state} True
task_shoot_at_coord 38@ {x} 2753.1499 {y} -1949.642 {z} 16.5866 {time} -2
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 3

:HOODS5_2469
if 
  148@ == 3
goto_if_false @HOODS5_2598
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2598
if 
  352@ == 3
goto_if_false @HOODS5_2598
set_fixed_camera_position 2753.7839 {y} -1947.4659 {z} 16.489 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2753.2549 {y} -1948.292 {z} 16.6835 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000
148@ = 4

:HOODS5_2598
if 
  148@ == 4
goto_if_false @HOODS5_2658
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2658
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000
148@ = 5

:HOODS5_2658
if 
  148@ == 5
goto_if_false @HOODS5_2791
if 
  352@ == 7
goto_if_false @HOODS5_2791
set_fixed_camera_position 2770.897 {y} -1915.951 {z} 12.6746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2770.3369 {y} -1916.334 {z} 13.4091 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @HOODS5_2768
set_char_accuracy 75@ {accuracy} 100

:HOODS5_2768
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4500
148@ = 21

:HOODS5_2791
if 
  148@ == 21
goto_if_false @HOODS5_2858
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_2858
task_use_mobile_phone $scplayer {start} False
148@ = 6
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1000

:HOODS5_2858
if 
  148@ == 6
goto_if_false @HOODS5_3111
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3111
set_fixed_camera_position 2756.252 {y} -1949.02 {z} 17.513 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2755.4021 {y} -1949.5179 {z} 17.3404 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @HOODS5_3088
clear_char_tasks_immediately 75@
task_toggle_duck 75@ {state} True
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 500
set_current_char_weapon 75@ {weaponType} WeaponType.Pistol
set_char_heading 75@ {heading} 180.0
68@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
if 
  not is_char_dead 37@
goto_if_false @HOODS5_3070
task_shoot_at_char -1 {target} 37@ {time} -2

:HOODS5_3070
close_sequence_task 68@
perform_sequence_task 75@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_3088
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 7

:HOODS5_3111
if 
  148@ == 7
goto_if_false @HOODS5_3171
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3171
clear_prints 
166@ = 1
do_fade 1000 {direction} Fade.Out
148@ = 8

:HOODS5_3171
if 
  148@ == 8
goto_if_false @HOODS5_3345
if 
  not get_fading_status 
goto_if_false @HOODS5_3345
request_collision 2518.7891 {y} -1677.22
set_char_coordinates $scplayer {x} 2518.448 {y} -1677.224 {z} 13.4109
set_char_heading $scplayer {heading} 90.691
load_scene 2510.2839 {y} -1674.066 {z} 14.5338
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300
148@ = 9
$sw5_sweet_health = 100
170@ = generate_random_int_in_range 2500 {max} 6000
add_int_lvar_to_int_lvar 170@ += TIMERA
display_onscreen_counter_with_string $sw5_sweet_health {display} CounterDisplay.Bar {text} 'SW5_A3'
170@ = generate_random_int_in_range 2500 {max} 6000
add_int_lvar_to_int_lvar 170@ += TIMERA

:HOODS5_3345
if 
  148@ == 9
goto_if_false @HOODS5_3511
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_3511
do_fade 1500 {direction} Fade.In
delete_char 75@
delete_char 37@
delete_char 38@
delete_char 43@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
34@ = get_script_task_status $scplayer {taskId} 1833
print 'SW5_A2' {time} 6000 {flag} 1
print 'SW5_17' {time} 6000 {flag} 1
set_player_control $player1 {state} True
make_player_gang_reappear 
switch_widescreen False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
set_wanted_multiplier 0.2
147@ = 1
127@ = 2

:HOODS5_3511
return 

:HOODS5_3513
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 170@
goto_if_false @HOODS5_3616
170@ = generate_random_int_in_range 2500 {max} 6000
add_int_lvar_to_int_lvar 170@ += TIMERA
171@ = generate_random_int_in_range 2 {max} 4
sub_int_lvar_from_int_var $sw5_sweet_health -= 171@
if 
  0 >= $sw5_sweet_health
goto_if_false @HOODS5_3616
$sw5_sweet_health = 0
print 'SW5_L' {time} 4000 {flag} 1
125@ = 1

:HOODS5_3616
if 
  97@ == 0
goto_if_false @HOODS5_4349
if 
  locate_char_any_means_3d $scplayer {x} 2775.793 {y} -1942.9091 {z} 15.6576 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @HOODS5_4349
set_create_random_gang_members False
97@ = 1
print 'SW5_J' {time} 4000 {flag} 1
106@ = 2761.5161
112@ = -1972.028
118@ = 12.5459
set_lvar_int_to_constant 140@ = 105
107@ = 2761.5991
113@ = -1955.673
119@ = 12.5469
set_lvar_int_to_constant 141@ = 106
108@ = 2768.4509
114@ = -1972.605
120@ = 12.3837
set_lvar_int_to_constant 142@ = 105
109@ = 2761.551
115@ = -1980.099
121@ = 12.5478
set_lvar_int_to_constant 143@ = 106
110@ = 2752.1589
116@ = -1979.574
122@ = 14.0469
set_lvar_int_to_constant 144@ = 106
111@ = 2768.4509
117@ = -1972.605
123@ = 12.3837
set_lvar_int_to_constant 145@ = 105
172@ = create_car 492 {x} 2766.9231 {y} -1974.348 {z} 12.3783
set_car_heading 172@ {heading} 4.0
36@ = 0

:HOODS5_3971
if 
  5 > 36@
goto_if_false @HOODS5_4165
create_char PedType.Mission1 {modelId} 140@(36@,6i) {x} 106@(36@,6f) {y} 112@(36@,6f) {z} 118@(36@,6f) {var_handle} 37@(36@,6i)
set_char_accuracy 37@(36@,6i) {accuracy} 65
if or
  36@ == 0
  36@ == 3
goto_if_false @HOODS5_4087
give_weapon_to_char 37@(36@,6i) {weaponType} WeaponType.Tec9 {ammo} 99999
goto @HOODS5_4103

:HOODS5_4087
give_weapon_to_char 37@(36@,6i) {weaponType} WeaponType.Pistol {ammo} 99999

:HOODS5_4103
task_toggle_duck 37@(36@,6i) {state} True
task_shoot_at_coord 37@(36@,6i) {x} 2750.957 {y} -1968.016 {z} 17.9291 {time} -2
set_char_kinda_stay_in_same_place 37@(36@,6i) {state} True
36@ += 1
goto @HOODS5_3971

:HOODS5_4165
51@ = add_blip_for_char 37@
52@ = add_blip_for_char 38@
53@ = add_blip_for_char 39@
54@ = add_blip_for_char 40@
55@ = add_blip_for_char 41@
remove_blip 48@
set_char_decision_maker 37@ {handleOrTemplate} 47@
set_char_decision_maker 38@ {handleOrTemplate} 47@
set_char_decision_maker 39@ {handleOrTemplate} 47@
set_char_decision_maker 40@ {handleOrTemplate} 47@
set_char_decision_maker 41@ {handleOrTemplate} 47@
set_char_is_target_priority 37@ {state} True
set_char_is_target_priority 38@ {state} True
set_char_is_target_priority 39@ {state} True
set_char_is_target_priority 40@ {state} True
set_char_is_target_priority 41@ {state} True
switch_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752

:HOODS5_4349
if 
  97@ == 1
goto_if_false @HOODS5_4666
gosub @HOODS5_11951
if 
  146@ == 0
goto_if_false @HOODS5_4474
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2782.6931 {leftBottomY} -1921.125 {leftBottomZ} 11.7984 {rightTopX} 2746.0979 {rightTopY} -1993.905 {rightTopZ} 16.9599 {drawSphere} False
goto_if_false @HOODS5_4474
if 
  not is_char_in_any_car $scplayer
goto_if_false @HOODS5_4474
146@ = 1
print_help 'SW5_19'

:HOODS5_4474
36@ = 0
57@ = 0

:HOODS5_4488
if 
  5 > 36@
goto_if_false @HOODS5_4587
if 
  is_char_dead 37@(36@,6i)
goto_if_false @HOODS5_4549
remove_blip 51@(36@,6i)
57@ += 1
goto @HOODS5_4573

:HOODS5_4549
set_char_accuracy 37@(36@,6i) {accuracy} 173@
set_char_shoot_rate 37@(36@,6i) {rate} 173@

:HOODS5_4573
36@ += 1
goto @HOODS5_4488

:HOODS5_4587
set_lvar_int_to_lvar_int 173@ = 57@
173@ *= 6
173@ += 60
if 
  57@ == 5
goto_if_false @HOODS5_4666
148@ = 0
130@ = 0
131@ = 0
128@ = 0
127@ = 3
set_script_limit_to_gang_size 0

:HOODS5_4666
return 

:HOODS5_4668
if 
  148@ == 0
goto_if_false @HOODS5_4709
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1500
148@ = 1

:HOODS5_4709
if 
  148@ == 1
goto_if_false @HOODS5_4781
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4781
352@ = 29
clear_onscreen_counter $sw5_sweet_health
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 2

:HOODS5_4781
if 
  148@ == 2
goto_if_false @HOODS5_4848
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4848
352@ = 29
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 3

:HOODS5_4848
if 
  148@ == 3
goto_if_false @HOODS5_4943
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_4943
if and
  not is_char_in_air $scplayer
  not is_char_getting_in_to_a_car $scplayer
goto_if_false @HOODS5_4943
174@ = 1
task_use_mobile_phone $scplayer {start} True
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2500
148@ = 4

:HOODS5_4943
if 
  148@ == 4
goto_if_false @HOODS5_5001
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_5001
148@ = 5
352@ = 8
354@ = 2

:HOODS5_5001
if 
  148@ == 5
goto_if_false @HOODS5_5151
if 
  352@ == 0
goto_if_false @HOODS5_5151
task_use_mobile_phone $scplayer {start} False
48@ = add_blip_for_coord 2764.272 {y} -1979.494 {z} 12.5394
switch_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
print 'SW5_14' {time} 5000 {flag} 1
127@ = 4

:HOODS5_5151
return 

:HOODS5_5153
if 
  locate_char_any_means_3d $scplayer {x} 2764.272 {y} -1979.494 {z} 12.5394 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HOODS5_5481
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_5481
59@ = store_car_char_is_in $scplayer
if 
  not is_car_dead 59@
goto_if_false @HOODS5_5481
60@ = get_maximum_number_of_passengers 59@
if 
  2 > 60@
goto_if_false @HOODS5_5315
if 
  61@ == 0
goto_if_false @HOODS5_5308
print_now 'SW5_G' {time} 5000 {flag} 1
61@ = 1

:HOODS5_5308
goto @HOODS5_5481

:HOODS5_5315
104@ = get_vehicle_class 59@
102@ = get_car_model 59@
if or
  is_int_lvar_equal_to_constant 104@ == 0
  is_int_lvar_equal_to_constant 104@ == 1
  is_int_lvar_equal_to_constant 104@ == 2
  is_int_lvar_equal_to_constant 104@ == 3
  is_int_lvar_equal_to_constant 102@ == 596
  is_int_lvar_equal_to_constant 102@ == 420
goto_if_false @HOODS5_5465
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} 59@ {actionId} TempAction.HandbrakeStraight {time} 2000000
do_fade 800 {direction} Fade.Out

:HOODS5_5415
if 
  get_fading_status 
goto_if_false @HOODS5_5439
wait 0
goto @HOODS5_5415

:HOODS5_5439
127@ = 5
148@ = 0
remove_blip 48@
goto @HOODS5_5481

:HOODS5_5465
print_now 'SW5_16' {time} 1000 {flag} 1

:HOODS5_5481
return 

:HOODS5_5483
if 
  130@ == 0
goto_if_false @HOODS5_5532
130@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HOODS5_5532
131@ = 1

:HOODS5_5532
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HOODS5_5648
if 
  131@ == 0
goto_if_false @HOODS5_5641
if and
  not is_char_dead 75@
  not is_char_dead 43@
goto_if_false @HOODS5_5641
if and
  148@ <> 0
  148@ <> 5
goto_if_false @HOODS5_5641
148@ = 4
35@ = 0
131@ = 1
355@ = 5

:HOODS5_5641
goto @HOODS5_5673

:HOODS5_5648
if 
  131@ == 1
goto_if_false @HOODS5_5673
131@ = 0

:HOODS5_5673
if 
  148@ == 5
goto_if_false @HOODS5_5740
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_5740
do_fade 800 {direction} Fade.In
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 3000
148@ = 1

:HOODS5_5740
if 
  148@ == 0
goto_if_false @HOODS5_6493
clear_prints 
clear_area_of_cars 2746.5039 {leftBottomY} -2001.611 {leftBottomZ} 10.775 {rightTopX} 2789.562 {rightTopY} -1927.1541 {rightTopZ} 21.633
switch_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_off 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_char_decision_maker_event_response 47@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 47@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
75@ = create_char PedType.Mission3 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
43@ = create_char PedType.Mission3 {modelId} 12 {x} 2751.282 {y} -1948.8669 {z} 16.3125
set_lvar_int_to_lvar_int 399@ = 75@
set_lvar_int_to_lvar_int 400@ = 43@
set_char_suffers_critical_hits 75@ {state} False
set_char_suffers_critical_hits 43@ {state} False
set_char_only_damaged_by_player 75@ {state} False
set_char_only_damaged_by_player 43@ {state} False
62@ = create_car 405 {x} 2766.665 {y} -1901.943 {z} 10.005
63@ = create_car 405 {x} 2772.6379 {y} -1903.127 {z} 10.1479
set_car_heading 62@ {heading} 180.0
set_car_heading 63@ {heading} 180.0
set_car_can_go_against_traffic 62@ {state} True
set_car_can_go_against_traffic 63@ {state} True
start_playback_recorded_car 62@ {path} 153
start_playback_recorded_car 63@ {path} 154
65@ = create_char_inside_car 63@ {pedType} PedType.Mission1 {modelId} 105
64@ = create_char_inside_car 62@ {pedType} PedType.Mission1 {modelId} 105
set_char_decision_maker 64@ {handleOrTemplate} 47@
set_char_decision_maker 65@ {handleOrTemplate} 47@
give_weapon_to_char 64@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 65@ {weaponType} WeaponType.Pistol {ammo} 99999
set_playback_speed 62@ {speed} 0.0
set_playback_speed 63@ {speed} 0.0
if 
  not is_car_dead 59@
goto_if_false @HOODS5_6293
set_car_coordinates 59@ {x} 2763.96 {y} -1978.8979 {z} 12.5394
set_car_heading 59@ {heading} 0.0
if 
  not is_car_passenger_seat_free 59@ {seat} SeatId.BikeRear
goto_if_false @HOODS5_6260
175@ = get_char_in_car_passenger_seat 59@ {seat} SeatId.BikeRear
delete_char 175@

:HOODS5_6260
if 
  not is_car_passenger_seat_free 59@ {seat} SeatId.RearLeft
goto_if_false @HOODS5_6293
175@ = get_char_in_car_passenger_seat 59@ {seat} SeatId.RearLeft
delete_char 175@

:HOODS5_6293
set_fixed_camera_position 2756.231 {y} -1949.667 {z} 18.0543 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2755.751 {y} -1950.535 {z} 17.9303 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2752.4021 {y} -1974.077 {z} 16.3125
set_char_coordinates 43@ {x} 2752.312 {y} -1952.896 {z} 16.3051
set_char_heading 43@ {heading} 180.0
task_follow_point_route 43@ {speed} MoveState.Run {mode} RouteMode.Once
set_char_coordinates 75@ {x} 2752.395 {y} -1950.699 {z} 16.3125
set_char_heading 75@ {heading} 180.0
68@ = open_sequence_task 
task_pause -1 {time} 1000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 68@
perform_sequence_task 75@ {sequence} 68@
clear_sequence_task 68@
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 500
148@ = 5

:HOODS5_6493
if 
  148@ == 1
goto_if_false @HOODS5_6771
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6771
set_fixed_camera_position 2764.6011 {y} -1986.696 {z} 15.021 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2764.3201 {y} -1985.751 {z} 14.8511 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 59@
goto_if_false @HOODS5_6715
if 
  not is_char_dead 43@
goto_if_false @HOODS5_6656
set_char_coordinates 43@ {x} 2760.3579 {y} -1979.501 {z} 12.5394
set_char_heading 43@ {heading} 330.0
task_enter_car_as_passenger 43@ {vehicle} 59@ {time} 5000 {seat} SeatId.RearLeft

:HOODS5_6656
if 
  not is_char_dead 75@
goto_if_false @HOODS5_6715
set_char_coordinates 75@ {x} 2767.2241 {y} -1981.524 {z} 12.381
set_char_heading 75@ {heading} 0.0
task_enter_car_as_passenger 75@ {vehicle} 59@ {time} 5000 {seat} SeatId.BikeRear

:HOODS5_6715
if 
  not is_car_dead 63@
goto_if_false @HOODS5_6748
set_playback_speed 63@ {speed} 1.0
66@ = 1

:HOODS5_6748
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 500
148@ = 2

:HOODS5_6771
if 
  148@ == 2
goto_if_false @HOODS5_6864
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6864
if 
  not is_car_dead 62@
goto_if_false @HOODS5_6841
set_playback_speed 62@ {speed} 1.0
66@ = 1

:HOODS5_6841
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 3

:HOODS5_6864
if 
  148@ == 3
goto_if_false @HOODS5_6931
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_6931
352@ = 12
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 4

:HOODS5_6931
if 
  148@ == 4
goto_if_false @HOODS5_7800
if 
  176@ == 0
goto_if_false @HOODS5_7041
if 
  not is_car_dead 62@
goto_if_false @HOODS5_7041
if 
  not is_playback_going_on_for_car 62@
goto_if_false @HOODS5_7041
set_car_mission 62@ {carMission} CarMission.BlockPlayerClose
set_car_cruise_speed 62@ {maxSpeed} 60.0
set_car_health 62@ {health} 2500
set_vehicle_air_resistance_multiplier 62@ {multiplier} 0.1
176@ = 1

:HOODS5_7041
if 
  177@ == 0
goto_if_false @HOODS5_7133
if 
  not is_car_dead 63@
goto_if_false @HOODS5_7133
if 
  not is_playback_going_on_for_car 63@
goto_if_false @HOODS5_7133
set_car_mission 63@ {carMission} CarMission.BlockPlayerClose
set_car_cruise_speed 63@ {maxSpeed} 60.0
set_car_health 63@ {health} 2500
set_vehicle_air_resistance_multiplier 63@ {multiplier} 0.1
177@ = 1

:HOODS5_7133
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_7800
if 
  352@ == 0
goto_if_false @HOODS5_7800
66@ = 1
switch_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_7275
59@ = get_car_char_is_using $scplayer
set_vehicle_air_resistance_multiplier 59@ {multiplier} 5.0

:HOODS5_7275
if 
  131@ == 1
goto_if_false @HOODS5_7367
if 
  not is_car_dead 62@
goto_if_false @HOODS5_7330
if 
  is_playback_going_on_for_car 62@
goto_if_false @HOODS5_7330
skip_to_end_and_stop_playback_recorded_car 62@

:HOODS5_7330
if 
  not is_car_dead 63@
goto_if_false @HOODS5_7367
if 
  is_playback_going_on_for_car 63@
goto_if_false @HOODS5_7367
skip_to_end_and_stop_playback_recorded_car 63@

:HOODS5_7367
if and
  not is_car_dead 62@
  not is_car_dead 63@
goto_if_false @HOODS5_7458
set_car_mission 62@ {carMission} CarMission.BlockPlayerClose
set_car_mission 63@ {carMission} CarMission.RamPlayerClose
set_car_cruise_speed 62@ {maxSpeed} 60.0
set_car_cruise_speed 63@ {maxSpeed} 60.0
set_car_health 62@ {health} 2500
set_car_health 63@ {health} 2500
set_vehicle_air_resistance_multiplier 62@ {multiplier} 0.1
set_vehicle_air_resistance_multiplier 63@ {multiplier} 0.1

:HOODS5_7458
73@ = add_blip_for_coord 2509.062 {y} -1672.527 {z} 12.386
set_blip_as_friendly 73@ {state} True
if and
  not is_char_dead 75@
  not is_car_dead 59@
  not is_char_dead 43@
goto_if_false @HOODS5_7619
set_group_member $Players_Group {handle} 75@
set_group_member $Players_Group {handle} 43@
listen_to_player_group_commands 75@ {state} False
listen_to_player_group_commands 43@ {state} False
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 9999
if 
  not is_char_in_car 75@ {vehicle} 59@
goto_if_false @HOODS5_7585
clear_char_tasks_immediately 75@
warp_char_into_car_as_passenger 75@ {handle} 59@ {seat} SeatId.BikeRear

:HOODS5_7585
if 
  not is_char_in_car 43@ {vehicle} 59@
goto_if_false @HOODS5_7619
clear_char_tasks_immediately 43@
warp_char_into_car_as_passenger 43@ {handle} 59@ {seat} SeatId.RearLeft

:HOODS5_7619
if and
  not is_car_dead 63@
  not is_char_dead 65@
goto_if_false @HOODS5_7687
68@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 63@ {actionId} TempAction.Wait {time} 1500
task_car_temp_action -1 {vehicle} 63@ {actionId} TempAction.ReverseRight {time} 1000
close_sequence_task 68@
perform_sequence_task 65@ {sequence} 68@
clear_sequence_task 68@

:HOODS5_7687
if and
  not is_car_dead 62@
  not is_char_dead 64@
goto_if_false @HOODS5_7721
task_car_temp_action 64@ {vehicle} 62@ {actionId} TempAction.Wait {time} 1500

:HOODS5_7721
set_player_control $player1 {state} True
switch_widescreen False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
print 'SW5_I' {time} 5000 {flag} 1
127@ = 6
125@ = 1
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 3000
164@ = 0
make_player_gang_reappear 

:HOODS5_7800
return 

:HOODS5_7802
if 
  152@ == 0
goto_if_false @HOODS5_7938
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_7938
149@ = get_car_char_is_using $scplayer
150@ = get_car_health 149@
if 
  900 > 150@
goto_if_false @HOODS5_7938
if 
  352@ == 0
goto_if_false @HOODS5_7938
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @HOODS5_7938
352@ = 13
152@ = 1
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 6000

:HOODS5_7938
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @HOODS5_8497
if and
  not is_car_dead 62@
  not is_car_dead 63@
goto_if_false @HOODS5_8349
if or
  locate_char_in_car_car_3d $scplayer {vehicle} 62@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_in_car_car_3d $scplayer {vehicle} 63@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HOODS5_8194
151@ = generate_random_int_in_range 0 {max} 5
165@ = 0

:HOODS5_8055
if 
  154@(151@,7i) == 0
goto_if_false @HOODS5_8148
151@ += 1
165@ += 1
if 
  151@ > 4
goto_if_false @HOODS5_8116
151@ = 0

:HOODS5_8116
if 
  165@ > 4
goto_if_false @HOODS5_8141
goto @HOODS5_8171

:HOODS5_8141
goto @HOODS5_8055

:HOODS5_8148
set_lvar_int_to_lvar_int 352@ = 154@(151@,7i)
154@(151@,7i) = 0

:HOODS5_8171
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500
goto @HOODS5_8342

:HOODS5_8194
151@ = generate_random_int_in_range 0 {max} 1
165@ = 0

:HOODS5_8210
if 
  161@(151@,3i) == 0
goto_if_false @HOODS5_8303
151@ += 1
165@ += 1
if 
  151@ > 1
goto_if_false @HOODS5_8271
151@ = 0

:HOODS5_8271
if 
  165@ > 2
goto_if_false @HOODS5_8296
goto @HOODS5_8481

:HOODS5_8296
goto @HOODS5_8210

:HOODS5_8303
set_lvar_int_to_lvar_int 352@ = 161@(151@,3i)
161@(151@,3i) = 0
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500

:HOODS5_8342
goto @HOODS5_8497

:HOODS5_8349
151@ = generate_random_int_in_range 0 {max} 2
165@ = 0

:HOODS5_8365
if 
  161@(151@,3i) == 0
goto_if_false @HOODS5_8458
151@ += 1
165@ += 1
if 
  151@ > 1
goto_if_false @HOODS5_8426
151@ = 0

:HOODS5_8426
if 
  165@ > 2
goto_if_false @HOODS5_8451
goto @HOODS5_8481

:HOODS5_8451
goto @HOODS5_8365

:HOODS5_8458
set_lvar_int_to_lvar_int 352@ = 161@(151@,3i)
161@(151@,3i) = 0

:HOODS5_8481
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 7500

:HOODS5_8497
if 
  not is_char_dead 75@
goto_if_false @HOODS5_8712
if 
  not is_group_member 75@ {handle} $Players_Group
goto_if_false @HOODS5_8712
if 
  69@ == 0
goto_if_false @HOODS5_8609
69@ = 1
print 'SW5_T' {time} 4000 {flag} 1
if 
  not does_blip_exist 71@
goto_if_false @HOODS5_8604
71@ = add_blip_for_char 75@
set_blip_as_friendly 71@ {state} True

:HOODS5_8604
remove_blip 73@

:HOODS5_8609
if and
  locate_char_any_means_char_2d $scplayer {target} 75@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
  69@ == 1
goto_if_false @HOODS5_8712
69@ = 0
set_group_member $Players_Group {handle} 75@
listen_to_player_group_commands 75@ {state} False
remove_blip 71@
if 
  70@ == 0
goto_if_false @HOODS5_8712
73@ = add_blip_for_coord 2509.062 {y} -1672.527 {z} 12.386

:HOODS5_8712
if 
  not is_char_dead 43@
goto_if_false @HOODS5_8934
if 
  not is_group_member 43@ {handle} $Players_Group
goto_if_false @HOODS5_8934
if 
  70@ == 0
goto_if_false @HOODS5_8824
70@ = 1
print 'SW5_U' {time} 4000 {flag} 1
if 
  not does_blip_exist 72@
goto_if_false @HOODS5_8819
72@ = add_blip_for_char 43@
set_blip_as_friendly 72@ {state} True

:HOODS5_8819
remove_blip 73@

:HOODS5_8824
if and
  locate_char_any_means_char_2d $scplayer {target} 43@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
  70@ == 1
goto_if_false @HOODS5_8934
70@ = 0
set_group_member $Players_Group {handle} 43@
listen_to_player_group_commands 43@ {state} False
remove_blip 72@
if 
  69@ == 0
goto_if_false @HOODS5_8934
73@ = add_blip_for_coord 2509.062 {y} -1672.527 {z} 12.386
set_blip_as_friendly 73@ {state} True

:HOODS5_8934
if 
  66@ == 1
goto_if_false @HOODS5_9054
if and
  not is_car_dead 63@
  not is_char_dead 65@
goto_if_false @HOODS5_9054
if 
  not locate_char_any_means_char_3d $scplayer {target} 65@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HOODS5_9054
85@, 86@, 87@ = get_char_coordinates $scplayer
91@ = get_char_heading $scplayer
66@ = 2
set_lvar_int_to_lvar_int 67@ = TIMERA
67@ += 800

:HOODS5_9054
if and
  66@ == 2
  103@ == 0
goto_if_false @HOODS5_9284
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 67@
goto_if_false @HOODS5_9284
88@, 89@, 90@ = get_nth_closest_car_node $player_x {fromY} $player_y {fromZ} $player_z {n} 2
if 
  not is_point_on_screen 85@ {y} 86@ {z} 87@ {radius} 8.0
goto_if_false @HOODS5_9284
if 
  not locate_stopped_char_any_means_3d $scplayer {x} 88@ {y} 89@ {z} 90@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HOODS5_9284
if and
  not is_car_dead 63@
  not is_char_dead 65@
goto_if_false @HOODS5_9284
if 
  not is_car_upsidedown 63@
goto_if_false @HOODS5_9284
if 
  is_char_in_car 65@ {vehicle} 63@
goto_if_false @HOODS5_9284
set_car_coordinates 63@ {x} 85@ {y} 86@ {z} 87@
set_car_heading 63@ {heading} 91@
set_car_forward_speed 63@ {forwardSpeed} 25.0
66@ = 1

:HOODS5_9284
if and
  not is_char_dead 75@
  not is_char_dead 43@
goto_if_false @HOODS5_9682
if 
  103@ == 0
goto_if_false @HOODS5_9464
if 
  locate_char_any_means_3d $scplayer {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 63.0 {yRadius} 63.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @HOODS5_9464
103@ = 1
if 
  not is_car_dead 62@
goto_if_false @HOODS5_9421
set_car_mission 62@ {carMission} CarMission.Cruise
set_car_cruise_speed 62@ {maxSpeed} 20.0
mark_car_as_no_longer_needed 62@
mark_char_as_no_longer_needed 64@

:HOODS5_9421
if 
  not is_car_dead 63@
goto_if_false @HOODS5_9464
set_car_mission 63@ {carMission} CarMission.Cruise
set_car_cruise_speed 63@ {maxSpeed} 20.0
mark_car_as_no_longer_needed 63@
mark_char_as_no_longer_needed 65@

:HOODS5_9464
if and
  70@ == 0
  69@ == 0
goto_if_false @HOODS5_9682
if 
  locate_char_any_means_3d $scplayer {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HOODS5_9682
if and
  locate_char_any_means_3d 75@ {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} False
  locate_char_any_means_3d 43@ {x} 2509.062 {y} -1672.527 {z} 12.386 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @HOODS5_9682
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_9668
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:HOODS5_9668
127@ = 7
148@ = 0

:HOODS5_9682
return 

:HOODS5_9684
if 
  148@ == 0
goto_if_false @HOODS5_9732
125@ = 0
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 600
148@ = 12

:HOODS5_9732
if 
  148@ == 12
goto_if_false @HOODS5_10395
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10395
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_9801
59@ = get_car_char_is_using $scplayer
129@ = get_car_model 59@

:HOODS5_9801
if 
  not is_char_dead 75@
goto_if_false @HOODS5_9832
set_char_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:HOODS5_9832
if 
  not is_char_dead 43@
goto_if_false @HOODS5_9863
set_char_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:HOODS5_9863
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
set_player_control $player1 {state} False
switch_widescreen True
clear_area_of_cars 2472.1021 {leftBottomY} -1646.181 {leftBottomZ} 19.6421 {rightTopX} 2517.3831 {rightTopY} -1691.2321 {rightTopZ} 9.4098
clear_area_of_chars 2472.1021 {leftBottomY} -1646.181 {leftBottomZ} 19.6421 {rightTopX} 2517.3831 {rightTopY} -1691.2321 {rightTopZ} 9.4098
if 
  not is_car_dead 62@
goto_if_false @HOODS5_9992
if 
  not is_char_in_car $scplayer {vehicle} 62@
goto_if_false @HOODS5_9992
delete_car 62@

:HOODS5_9992
if 
  not is_car_dead 63@
goto_if_false @HOODS5_10032
if 
  not is_char_in_car $scplayer {vehicle} 63@
goto_if_false @HOODS5_10032
delete_car 63@

:HOODS5_10032
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_10099
if 
  not is_car_dead 59@
goto_if_false @HOODS5_10099
task_leave_any_car $scplayer
set_car_coordinates 59@ {x} 2507.709 {y} -1672.192 {z} 13.458
set_car_heading 59@ {heading} 340.0

:HOODS5_10099
set_fixed_camera_position 2514.24 {y} -1679.2679 {z} 14.5054 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.6489 {y} -1678.483 {z} 14.3221 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 43@
goto_if_false @HOODS5_10246
$car = get_car_char_is_using 43@
if 
  $car == -1
goto_if_false @HOODS5_10246
set_char_coordinates 43@ {x} 2509.821 {y} -1675.8149 {z} 12.5469
set_char_heading 43@ {heading} 337.0
task_go_straight_to_coord 43@ {x} 2512.229 {y} -1672.7841 {z} 12.4531 {speed} MoveState.Walk {time} -2

:HOODS5_10246
if 
  not is_char_dead 75@
goto_if_false @HOODS5_10342
$car = get_car_char_is_using 75@
if 
  $car == -1
goto_if_false @HOODS5_10342
set_char_coordinates 75@ {x} 2508.821 {y} -1675.8149 {z} 12.5469
set_char_heading 75@ {heading} 337.0
task_go_straight_to_coord 75@ {x} 2511.229 {y} -1672.7841 {z} 12.4531 {speed} MoveState.Walk {time} -2

:HOODS5_10342
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_10388
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300
148@ = 10
goto @HOODS5_10395

:HOODS5_10388
148@ = 2

:HOODS5_10395
if 
  148@ == 10
goto_if_false @HOODS5_10502
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10502
if 
  not is_char_dead 43@
goto_if_false @HOODS5_10502
$car = get_car_char_is_using 43@
if 
  $car <> -1
goto_if_false @HOODS5_10479
task_leave_any_car 43@

:HOODS5_10479
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 400
148@ = 11

:HOODS5_10502
if 
  148@ == 11
goto_if_false @HOODS5_10609
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10609
if 
  not is_char_dead 75@
goto_if_false @HOODS5_10609
$car = get_car_char_is_using 75@
if 
  $car <> -1
goto_if_false @HOODS5_10586
task_leave_any_car 75@

:HOODS5_10586
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000
148@ = 1

:HOODS5_10609
if 
  148@ == 1
goto_if_false @HOODS5_10653
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_10653
148@ = 2

:HOODS5_10653
if 
  148@ == 2
goto_if_false @HOODS5_11132
if 
  not is_car_dead 59@
goto_if_false @HOODS5_10694
set_car_visible 59@ {state} False

:HOODS5_10694
set_fixed_camera_position 2509.7129 {y} -1671.558 {z} 13.5033 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.1899 {y} -1672.389 {z} 13.8387 {switchStyle} SwitchType.JumpCut
set_char_coordinates_no_offset $scplayer {x} 2509.8921 {y} -1672.469 {z} 13.5032
set_char_heading $scplayer {heading} 270.0
if and
  not is_char_dead 75@
  not is_char_dead 43@
goto_if_false @HOODS5_11006
delete_char 75@
75@ = create_char PedType.CivMale {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
set_current_char_weapon 75@ {weaponType} WeaponType.Unarmed
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
remove_char_from_group 75@
remove_char_from_group 43@
clear_char_tasks_immediately 75@
clear_char_tasks_immediately 43@
set_char_coordinates_no_offset 75@ {x} 2510.792 {y} -1672.469 {z} 13.5032
set_char_coordinates_no_offset 43@ {x} 2510.792 {y} -1673.469 {z} 13.5032
set_char_heading 75@ {heading} 90.0
set_char_heading 43@ {heading} 90.0
task_play_anim_non_interruptable 75@ {animationName} "SWEET_ASS_SLAP" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_play_anim_non_interruptable 43@ {animationName} "HO_ASS_SLAPPED" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2

:HOODS5_11006
set_lvar_int_to_lvar_int 399@ = 75@
$play_audio_global = 1
203@ = 23
227@ = 5
207@ = 100
208@ = 1900
209@ = 4200
210@ = 6000
211@ = 8000
217@ = 23
218@ = 24
219@ = 25
220@ = 26
221@ = 27
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1700
148@ = 3

:HOODS5_11132
if 
  148@ == 3
goto_if_false @HOODS5_11251
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11251
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11228
task_play_anim_non_interruptable 75@ {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2

:HOODS5_11228
148@ = 4
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 300

:HOODS5_11251
if 
  148@ == 4
goto_if_false @HOODS5_11352
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11352
if 
  not is_char_dead 43@
goto_if_false @HOODS5_11329
task_follow_path_nodes_to_coord 43@ {x} 2516.686 {y} -1675.861 {z} 13.1227 {speed} MoveState.Walk {time} 5500

:HOODS5_11329
148@ = 5
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 2000

:HOODS5_11352
if 
  148@ == 5
goto_if_false @HOODS5_11503
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11503
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11480
task_play_anim_non_interruptable 75@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3400

:HOODS5_11480
148@ = 7
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 4000

:HOODS5_11503
if 
  148@ == 7
goto_if_false @HOODS5_11691
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11691
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11668
task_play_anim_non_interruptable 75@ {animationName} "SWEET_HNDSHLDR_01" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_play_anim_non_interruptable $scplayer {animationName} "PLYR_HNDSHLDR_01" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
if 
  not is_char_dead 43@
goto_if_false @HOODS5_11668
delete_char 43@

:HOODS5_11668
148@ = 8
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 3500

:HOODS5_11691
if 
  148@ == 8
goto_if_false @HOODS5_11799
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11799
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11776
freeze_char_position 75@ {state} False
task_follow_path_nodes_to_coord 75@ {x} 2516.686 {y} -1675.861 {z} 13.1227 {speed} MoveState.Walk {time} 5500

:HOODS5_11776
148@ = 9
set_lvar_int_to_lvar_int 35@ = TIMERA
35@ += 1500

:HOODS5_11799
if 
  148@ == 9
goto_if_false @HOODS5_11949
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 35@
goto_if_false @HOODS5_11949
if 
  not is_char_dead 75@
goto_if_false @HOODS5_11857
delete_char 75@

:HOODS5_11857
if 
  not is_char_dead 43@
goto_if_false @HOODS5_11878
delete_char 43@

:HOODS5_11878
if 
  not is_car_dead 59@
goto_if_false @HOODS5_11901
set_car_visible 59@ {state} True

:HOODS5_11901
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
set_char_heading $scplayer {heading} 90.0
switch_widescreen False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_reappear 
127@ = 8

:HOODS5_11949
return 

:HOODS5_11951
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 179@
goto_if_false @HOODS5_13222
set_lvar_int_to_lvar_int 179@ = TIMERA
179@ += 50
180@ += 1
if 
  180@ == 5
goto_if_false @HOODS5_12017
180@ = 0

:HOODS5_12017
if 
  not is_char_dead 37@(180@,6i)
goto_if_false @HOODS5_13109
if 
  96@ == 0
goto_if_false @HOODS5_12085
if 
  has_char_been_damaged_by_char 37@(180@,6i) {handle} $scplayer
goto_if_false @HOODS5_12085
96@ = 1

:HOODS5_12085
82@, 83@, 84@ = get_char_coordinates 37@(180@,6i)
85@, 86@, 87@ = get_char_coordinates $scplayer
200@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} 82@ {toZ} 83@
if 
  not is_int_lvar_equal_to_int_lvar 193@ == 180@
goto_if_false @HOODS5_12211
if 
  is_float_lvar_greater_than_float_lvar 198@ > 200@
goto_if_false @HOODS5_12204
set_lvar_int_to_lvar_int 194@ = 193@
set_lvar_float_to_lvar_float 199@ = 198@
set_lvar_float_to_lvar_float 198@ = 200@
set_lvar_int_to_lvar_int 193@ = 180@

:HOODS5_12204
goto @HOODS5_12219

:HOODS5_12211
set_lvar_float_to_lvar_float 198@ = 200@

:HOODS5_12219
if 
  not is_int_lvar_equal_to_int_lvar 194@ == 180@
goto_if_false @HOODS5_12299
if 
  not is_int_lvar_equal_to_int_lvar 193@ == 180@
goto_if_false @HOODS5_12292
if 
  is_float_lvar_greater_than_float_lvar 199@ > 200@
goto_if_false @HOODS5_12292
set_lvar_int_to_lvar_int 194@ = 180@
set_lvar_float_to_lvar_float 199@ = 200@

:HOODS5_12292
goto @HOODS5_12307

:HOODS5_12299
set_lvar_float_to_lvar_float 199@ = 200@

:HOODS5_12307
if 
  is_char_in_any_car $scplayer
goto_if_false @HOODS5_12573
59@ = get_car_char_is_using $scplayer
188@ = get_car_speed 59@
if 
  188@ > 5.0
goto_if_false @HOODS5_12573
197@ = generate_random_float_in_range -0.2 {max} 0.2
set_lvar_float_to_lvar_float 196@ = 188@
196@ *= 1.6
add_float_lvar_to_float_lvar 196@ += 197@
if 
  is_float_lvar_greater_than_float_lvar 196@ > 200@
goto_if_false @HOODS5_12573
set_lvar_float_to_lvar_float 196@ = 87@
sub_float_lvar_from_float_lvar 196@ -= 84@
196@ = abs_lvar_float 
if 
  1.0 > 196@
goto_if_false @HOODS5_12573
set_lvar_float_to_lvar_float 195@ = 82@
sub_float_lvar_from_float_lvar 195@ -= 85@
set_lvar_float_to_lvar_float 196@ = 83@
sub_float_lvar_from_float_lvar 196@ -= 86@
190@ = get_heading_from_vector_2d 195@ {y} 196@
189@ = get_car_heading 59@
set_lvar_float_to_lvar_float 195@ = 190@
sub_float_lvar_from_float_lvar 195@ -= 189@
195@ = abs_lvar_float 
if 
  5.0 > 195@
goto_if_false @HOODS5_12573
96@ = 1
181@(180@,6i) = 4

:HOODS5_12573
if 
  181@(180@,6i) == 4
goto_if_false @HOODS5_12661
34@ = get_script_task_status 37@(180@,6i) {taskId} 1651
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12661
task_dive_and_get_up 37@(180@,6i) {directionX} 1.0 {directionY} 0.0 {timeOnGround} 500
181@(180@,6i) = 5

:HOODS5_12661
if 
  181@(180@,6i) == 5
goto_if_false @HOODS5_12727
34@ = get_script_task_status 37@(180@,6i) {taskId} 1651
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12727
181@(180@,6i) = 0

:HOODS5_12727
if 
  181@(180@,6i) == 0
goto_if_false @HOODS5_12805
if 
  96@ == 1
goto_if_false @HOODS5_12805
if or
  is_int_lvar_equal_to_int_lvar 180@ == 193@
  is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_12805
181@(180@,6i) = 1

:HOODS5_12805
if 
  181@(180@,6i) == 1
goto_if_false @HOODS5_13102
34@ = get_script_task_status 37@(180@,6i) {taskId} 1869
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12953
34@ = get_script_task_status 37@(180@,6i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_12953
187@ = generate_random_int_in_range 0 {max} 2
if 
  187@ == 0
goto_if_false @HOODS5_12941
task_shoot_at_char 37@(180@,6i) {target} $scplayer {time} -2
goto @HOODS5_12953

:HOODS5_12941
task_kill_char_on_foot 37@(180@,6i) {target} $scplayer

:HOODS5_12953
if and
  not is_int_lvar_equal_to_int_lvar 180@ == 193@
  not is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_13102
34@ = get_script_task_status 37@(180@,6i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HOODS5_13102
68@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 106@(180@,6f) {y} 112@(180@,6f) {z} 118@(180@,6f) {speed} MoveState.Run {time} 6000
task_shoot_at_coord -1 {x} 2750.957 {y} -1968.016 {z} 17.9291 {time} -2
close_sequence_task 68@
perform_sequence_task 37@(180@,6i) {sequence} 68@
clear_sequence_task 68@
181@(180@,6i) = 0

:HOODS5_13102
goto @HOODS5_13222

:HOODS5_13109
if 
  96@ == 0
goto_if_false @HOODS5_13134
96@ = 1

:HOODS5_13134
if 
  is_int_lvar_equal_to_int_lvar 180@ == 193@
goto_if_false @HOODS5_13186
set_lvar_int_to_lvar_int 193@ = 194@
set_lvar_float_to_lvar_float 198@ = 199@
194@ = 0
199@ = 99999.0

:HOODS5_13186
if 
  is_int_lvar_equal_to_int_lvar 180@ == 194@
goto_if_false @HOODS5_13222
194@ = 0
199@ = 99999.0

:HOODS5_13222
return 

:HOODS5_13224
if 
  203@ <> 0
goto_if_false @HOODS5_13424
if 
  204@ == 0
goto_if_false @HOODS5_13302
204@ = 1
set_lvar_int_to_lvar_int 205@ = TIMERA
206@ = 0
set_lvar_int_to_lvar_int 408@ = 205@
add_int_lvar_to_int_lvar 408@ += 207@(206@,10i)

:HOODS5_13302
if 
  204@ == 1
goto_if_false @HOODS5_13424
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 408@
goto_if_false @HOODS5_13424
set_lvar_int_to_lvar_int 352@ = 217@(206@,10i)
206@ += 1
227@ -= 1
if 
  227@ == 0
goto_if_false @HOODS5_13404
203@ = 0
204@ = 0
goto @HOODS5_13424

:HOODS5_13404
set_lvar_int_to_lvar_int 408@ = 205@
add_int_lvar_to_int_lvar 408@ += 207@(206@,10i)

:HOODS5_13424
switch_start 355@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @HOODS5_15254 {caseNum1} 0 {caseLabel1} @HOODS5_13487 {caseNum2} 1 {caseLabel2} @HOODS5_14396 {caseNum3} 2 {caseLabel3} @HOODS5_14925 {caseNum4} 3 {caseLabel4} @HOODS5_15001 {caseNum5} 4 {caseLabel5} @HOODS5_15059 {caseNum6} 5 {caseLabel6} @HOODS5_15173 {caseNum7} -1 {caseLabel7} @HOODS5_15254

:HOODS5_13487
set_lvar_text_label 230@s = 'MSWE13A'
set_lvar_int_to_constant 309@ = 29137
set_lvar_text_label 232@s = 'MSWE13B'
set_lvar_int_to_constant 310@ = 29138
set_lvar_text_label 234@s = 'MSWE13C'
set_lvar_int_to_constant 311@ = 29139
set_lvar_text_label 236@s = 'MSWE13D'
set_lvar_int_to_constant 312@ = 29140
set_lvar_text_label 238@s = 'MSWE13E'
set_lvar_int_to_constant 313@ = 29141
set_lvar_text_label 240@s = 'MSWE13F'
set_lvar_int_to_constant 314@ = 29142
set_lvar_text_label 242@s = 'MSWE13G'
set_lvar_int_to_constant 315@ = 29143
set_lvar_text_label 244@s = 'SWE5_FA'
set_lvar_int_to_constant 316@ = 38226
set_lvar_text_label 246@s = 'SWE5_FB'
set_lvar_int_to_constant 317@ = 38227
set_lvar_text_label 248@s = 'SWE5_GH'
set_lvar_int_to_constant 318@ = 38235
set_lvar_text_label 250@s = 'SWE5_CA'
set_lvar_int_to_constant 319@ = 38216
set_lvar_text_label 252@s = 'SWE5_CC'
set_lvar_int_to_constant 320@ = 38218
set_lvar_text_label 254@s = 'SWE5_GA'
set_lvar_int_to_constant 321@ = 38228
set_lvar_text_label 256@s = 'SWE5_GC'
set_lvar_int_to_constant 322@ = 38230
set_lvar_text_label 258@s = 'SWE5_GD'
set_lvar_int_to_constant 323@ = 38231
set_lvar_text_label 260@s = 'SWE5_GE'
set_lvar_int_to_constant 324@ = 38232
set_lvar_text_label 262@s = 'SWE5_GF'
set_lvar_int_to_constant 325@ = 38233
set_lvar_text_label 264@s = 'SWE5_GG'
set_lvar_int_to_constant 326@ = 38234
set_lvar_text_label 266@s = 'SWE5_GJ'
set_lvar_int_to_constant 327@ = 38236
set_lvar_text_label 268@s = 'SWE5_GK'
set_lvar_int_to_constant 328@ = 38237
set_lvar_text_label 270@s = 'SWE5_GB'
set_lvar_int_to_constant 329@ = 38229
set_lvar_text_label 272@s = 'SWE5_GL'
set_lvar_int_to_constant 330@ = 38238
set_lvar_text_label 274@s = 'SWE5_EA'
set_lvar_int_to_constant 331@ = 38221
set_lvar_text_label 276@s = 'SWE5_EB'
set_lvar_int_to_constant 332@ = 38222
set_lvar_text_label 278@s = 'SWE5_EC'
set_lvar_int_to_constant 333@ = 38223
set_lvar_text_label 280@s = 'SWE5_ED'
set_lvar_int_to_constant 334@ = 38224
set_lvar_text_label 282@s = 'SWE5_EE'
set_lvar_int_to_constant 335@ = 38225
set_lvar_text_label 286@s = 'MOBRING'
set_lvar_int_to_constant 337@ = 23000
358@ = 1
359@ = 0
360@ = 0
361@ = 0
362@ = 0
363@ = 1
364@ = 0
365@ = 0
366@ = 0
367@ = 3
368@ = 0
369@ = 0
370@ = 2
371@ = 2
372@ = 2
373@ = 1
374@ = 1
375@ = 1
376@ = 3
377@ = 3
378@ = 2
379@ = 3
380@ = 2
381@ = 2
382@ = 2
383@ = 1
384@ = 2
385@ = 2
386@ = 0
set_lvar_int_to_var_int 398@ = $scplayer
355@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 309@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 310@
349@ = 1
350@ = 2
goto @HOODS5_15254

:HOODS5_14396
if 
  352@ <> 0
goto_if_false @HOODS5_14918
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 356@
goto_if_false @HOODS5_14918
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HOODS5_14918
if 
  is_int_lvar_equal_to_int_lvar 349@ == 352@
goto_if_false @HOODS5_14485
351@ = 1
goto @HOODS5_14548

:HOODS5_14485
if 
  is_int_lvar_equal_to_int_lvar 350@ == 352@
goto_if_false @HOODS5_14518
351@ = 2
goto @HOODS5_14548

:HOODS5_14518
351@ = 1
set_lvar_int_to_lvar_int 349@ = 352@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 308@(352@,40i)

:HOODS5_14548
if 
  has_mission_audio_loaded 351@
goto_if_false @HOODS5_14906
if 
  357@(352@,40i) <> 0
goto_if_false @HOODS5_14679
set_lvar_int_to_lvar_int 405@ = 357@(352@,40i)
set_lvar_int_to_lvar_int 406@ = 397@(405@,7i)
if 
  not is_char_dead 406@
goto_if_false @HOODS5_14679
attach_mission_audio_to_char 351@ {handle} 406@
if 
  not is_char_talking 406@
goto_if_false @HOODS5_14672
404@ = 1
start_char_facial_talk 406@ {duration} 15000
goto @HOODS5_14679

:HOODS5_14672
disable_char_speech 406@ {stopNow} False

:HOODS5_14679
if 
  357@(352@,40i) == 0
goto_if_false @HOODS5_14708
404@ = 1

:HOODS5_14708
if 
  404@ == 1
goto_if_false @HOODS5_14899
play_mission_audio 351@
clear_prints 
print 228@(352@,40s) {time} 10000 {flag} 1
355@ += 1
404@ = 0
352@ += 1
set_lvar_int_to_lvar_int 353@ = 352@
if 
  308@(352@,40i) <> 0
goto_if_false @HOODS5_14899
if 
  351@ == 1
goto_if_false @HOODS5_14861
if 
  not is_int_lvar_equal_to_int_lvar 350@ == 352@
goto_if_false @HOODS5_14854
load_mission_audio MissionAudioSlot.Slot2 {audioId} 308@(352@,40i)
set_lvar_int_to_lvar_int 350@ = 352@

:HOODS5_14854
goto @HOODS5_14899

:HOODS5_14861
if 
  not is_int_lvar_equal_to_int_lvar 349@ == 352@
goto_if_false @HOODS5_14899
load_mission_audio MissionAudioSlot.Slot1 {audioId} 308@(352@,40i)
set_lvar_int_to_lvar_int 349@ = 352@

:HOODS5_14899
goto @HOODS5_14918

:HOODS5_14906
load_mission_audio 351@ {audioId} 308@(352@,40i)

:HOODS5_14918
goto @HOODS5_15254

:HOODS5_14925
if 
  has_mission_audio_finished 351@
goto_if_false @HOODS5_14955
355@ += 1
goto @HOODS5_14994

:HOODS5_14955
if 
  does_char_exist 406@
goto_if_false @HOODS5_14994
if 
  is_char_dead 406@
goto_if_false @HOODS5_14994
355@ += 1

:HOODS5_14994
goto @HOODS5_15254

:HOODS5_15001
clear_mission_audio 351@
348@(351@,3i) = 0
clear_prints 
if 
  not is_char_dead 406@
goto_if_false @HOODS5_15045
stop_char_facial_talk 406@
enable_char_speech 406@

:HOODS5_15045
355@ += 1
goto @HOODS5_15254

:HOODS5_15059
352@ += 1
if 
  308@(352@,40i) <> 0
goto_if_false @HOODS5_15112
load_mission_audio 351@ {audioId} 308@(352@,40i)
set_lvar_int_to_lvar_int 348@(351@,3i) = 352@

:HOODS5_15112
354@ -= 1
if 
  354@ <= 0
goto_if_false @HOODS5_15151
352@ = 0
goto @HOODS5_15159

:HOODS5_15151
set_lvar_int_to_lvar_int 352@ = 353@

:HOODS5_15159
355@ = 1
goto @HOODS5_15254

:HOODS5_15173
355@ = 1
352@ = 0
354@ = 0
203@ = 0
227@ = 0
clear_mission_audio 351@
348@(351@,3i) = 0
clear_prints 
if 
  not is_char_dead 406@
goto_if_false @HOODS5_15247
enable_char_speech 406@

:HOODS5_15247
goto @HOODS5_15254

:HOODS5_15254
return 

:HOODS5_15256
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HOODS5_15274
$flag_sweet_mission_counter += 1
register_mission_passed 'SWEET_5'
player_made_progress 1
play_mission_passed_tune 1
clear_wanted_level $player1
print_with_number_big 'M_PASSR' {num} 7 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 7
return 

:HOODS5_15329
$onmission = 0
switch_car_generator $gen_car7 {amount} 101
set_script_limit_to_gang_size 99
if 
  does_char_exist 75@
goto_if_false @HOODS5_15413
if 
  not is_char_dead 75@
goto_if_false @HOODS5_15413
set_char_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_only_damaged_by_player 75@ {state} False
set_char_never_targetted 75@ {state} False
mark_char_as_no_longer_needed 75@

:HOODS5_15413
if 
  does_char_exist 43@
goto_if_false @HOODS5_15479
if 
  not is_char_dead 43@
goto_if_false @HOODS5_15479
set_char_proofs 43@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_only_damaged_by_player 43@ {state} False
set_char_never_targetted 43@ {state} False
mark_char_as_no_longer_needed 43@

:HOODS5_15479
36@ = 0

:HOODS5_15486
if 
  5 > 36@
goto_if_false @HOODS5_15527
mark_char_as_no_longer_needed 37@(36@,6i)
36@ += 1
goto @HOODS5_15486

:HOODS5_15527
if 
  not is_char_dead $scplayer
goto_if_false @HOODS5_15550
task_use_mobile_phone $scplayer {start} False

:HOODS5_15550
remove_animation "SWEET"
remove_animation "GANGS"
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 12
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
unload_special_character 1
remove_car_recording 153
remove_car_recording 154
switch_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_ped_roads_back_to_original 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
switch_roads_back_to_original 2463.375 {leftBottomY} -1702.6949 {leftBottomZ} 17.9193 {rightTopX} 2508.7351 {rightTopY} -1644.574 {rightTopZ} 10.5835
if 
  not is_car_dead 105@
goto_if_false @HOODS5_15736
mark_car_as_no_longer_needed 105@

:HOODS5_15736
clear_onscreen_counter $sw5_sweet_health
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1
remove_blip 51@
remove_blip 52@
remove_blip 53@
remove_blip 54@
remove_blip 55@
remove_blip 48@
remove_blip 73@
remove_blip 49@
remove_blip 71@
remove_blip 72@
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
remove_decision_maker 47@
remove_decision_maker 99@
set_create_random_gang_members True
set_player_group_to_follow_always $player1 {state} False
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 19---------------
// Originally: Cesar Vialpando

:SWEET6
script_name 'SWEET6'
gosub @SWEET6_47
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET6_38
gosub @SWEET6_35918

:SWEET6_38
gosub @SWEET6_36144
terminate_this_script 

:SWEET6_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = load_char_decision_maker DecisionMakerType.Empty
67@ = load_char_decision_maker DecisionMakerType.Tough

:SWEET6_147
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @SWEET6_173
36@ = 1

:SWEET6_173
39@ += 1
if 
  39@ > 22
goto_if_false @SWEET6_205
39@ = 0

:SWEET6_205
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
add_int_lvar_to_int_lvar 138@ += 42@
add_int_lvar_to_int_lvar 139@ += 42@
add_int_lvar_to_int_lvar 140@ += 42@
gosub @SWEET6_567
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SWEET6_458 {caseNum1} 0 {caseLabel1} @SWEET6_360 {caseNum2} 1 {caseLabel2} @SWEET6_374 {caseNum3} 2 {caseLabel3} @SWEET6_388 {caseNum4} 3 {caseLabel4} @SWEET6_402 {caseNum5} 4 {caseLabel5} @SWEET6_416 {caseNum6} 5 {caseLabel6} @SWEET6_430 {caseNum7} 6 {caseLabel7} @SWEET6_444

:SWEET6_360
gosub @SWEET6_1384
goto @SWEET6_458

:SWEET6_374
gosub @SWEET6_1725
goto @SWEET6_458

:SWEET6_388
gosub @SWEET6_2086
goto @SWEET6_458

:SWEET6_402
gosub @SWEET6_7483
goto @SWEET6_458

:SWEET6_416
gosub @SWEET6_16699
goto @SWEET6_458

:SWEET6_430
gosub @SWEET6_19540
goto @SWEET6_458

:SWEET6_444
gosub @SWEET6_24661
goto @SWEET6_458

:SWEET6_458
gosub @SWEET6_28502

:SWEET6_465
if 
  38@ == 0
goto_if_false @SWEET6_565
if 
  37@ == 0
goto_if_false @SWEET6_549
if 
  36@ == 0
goto_if_false @SWEET6_533
goto @SWEET6_147
goto @SWEET6_542

:SWEET6_533
gosub @SWEET6_35970
return 

:SWEET6_542
goto @SWEET6_558

:SWEET6_549
gosub @SWEET6_35918
return 

:SWEET6_558
goto @SWEET6_567

:SWEET6_565
return 

:SWEET6_567
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @SWEET6_658
if 
  68@ == 0
goto_if_false @SWEET6_632
68@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @SWEET6_658

:SWEET6_632
68@ = 0
write_debug "LEVEL_DEBUG_OFF"

:SWEET6_658
if 
  68@ == 1
goto_if_false @SWEET6_1382
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @SWEET6_725
69@ += 1
if 
  69@ > 3
goto_if_false @SWEET6_723
69@ = 0

:SWEET6_723
clear_all_view_variables 

:SWEET6_725
if 
  69@ == 1
goto_if_false @SWEET6_935
set_var_int_to_lvar_int $SWEET6_view_debug = 34@
set_var_int_to_lvar_int $6683 = 35@
set_var_int_to_lvar_int $6684 = 62@
set_var_int_to_lvar_int $6685 = 64@
set_var_int_to_lvar_int $6686 = 63@
set_var_int_to_lvar_int $6687 = 65@
set_var_int_to_lvar_int $6688 = TIMERA
set_var_int_to_lvar_int $6689 = TIMERB
view_integer_variable $SWEET6_view_debug {_p2} "M_STAGE"
view_integer_variable $6683 {_p2} "M_GOALS"
view_integer_variable $6684 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6685 {_p2} "DIALOGUE_TIMER"
view_integer_variable $6686 {_p2} "HELP_FLAG"
view_integer_variable $6687 {_p2} "HELP_TIMER"
view_integer_variable $6688 {_p2} "TIMERA"
view_integer_variable $6689 {_p2} "TIMERB"

:SWEET6_935
if 
  69@ == 2
goto_if_false @SWEET6_1054
set_var_int_to_lvar_int $SWEET6_view_debug = 107@
set_var_int_to_var_int $6683 = $sw6_mission_attempts
set_var_int_to_lvar_int $6689 = 130@
view_integer_variable $SWEET6_view_debug {_p2} "CAR_HYD_FLAG"
view_integer_variable $6683 {_p2} "SW6_MISSION_ATTEMPTS"
view_integer_variable $6689 {_p2} "PLAYER_HAS_ATTACKED_MEET"

:SWEET6_1054
if 
  69@ == 3
goto_if_false @SWEET6_1132
set_var_int_to_lvar_int $SWEET6_view_debug = 131@
set_var_int_to_lvar_int $6683 = 276@
view_integer_variable $SWEET6_view_debug {_p2} "MEETING_IS_LOADED"
view_integer_variable $6683 {_p2} "CURRENT_WAGER"

:SWEET6_1132
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @SWEET6_1154
38@ = 1

:SWEET6_1154
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @SWEET6_1242
if 
  70@ == 0
goto_if_false @SWEET6_1217
70@ = 1
write_debug "LEVEL_PAUSED"
goto @SWEET6_1242

:SWEET6_1217
70@ = 0
write_debug "LEVEL_UNPAUSED"

:SWEET6_1242
if 
  70@ == 1
goto_if_false @SWEET6_1267
goto @SWEET6_465

:SWEET6_1267
if 
is_ps2_keyboard_key_just_pressed 136
goto_if_false @SWEET6_1290
35@ += 1

:SWEET6_1290
if 
is_ps2_keyboard_key_just_pressed 135
goto_if_false @SWEET6_1313
35@ -= 1

:SWEET6_1313
if 
is_ps2_keyboard_key_just_pressed 134
goto_if_false @SWEET6_1336
34@ += 1

:SWEET6_1336
if 
is_ps2_keyboard_key_just_pressed 133
goto_if_false @SWEET6_1359
34@ -= 1

:SWEET6_1359
if 
is_ps2_keyboard_key_just_pressed 146
goto_if_false @SWEET6_1382
35@ = 99

:SWEET6_1382
return 

:SWEET6_1384
if 
  35@ == -1
goto_if_false @SWEET6_1529
72@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
105@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
106@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$mod_garage_blip = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$mod_garage1 = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:SWEET6_1529
107@ = 0
43@ = 0

:SWEET6_1543
if 
  22 > 43@
goto_if_false @SWEET6_1586
108@(43@,22i) = 0
43@ += 1
goto @SWEET6_1543

:SWEET6_1586
130@ = 0
131@ = 0
132@ = 0
133@ = 0
135@ = 0
272@ = 0.01
if 
  35@ == -1
goto_if_false @SWEET6_1669
$sweet6_contact_blip = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:SWEET6_1669
load_mission_text 'SWEET6'
suppress_car_model 567
274@ = 50
275@ = 1000
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
gosub @SWEET6_35860
return 

:SWEET6_1725
if 
  35@ == 0
goto_if_false @SWEET6_1858
set_area_visible 1
load_cutscene 'SWEET6A'

:SWEET6_1758
if 
  not has_cutscene_loaded 
goto_if_false @SWEET6_1782
wait 0
goto @SWEET6_1758

:SWEET6_1782
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET6_1791
if 
  not has_cutscene_finished 
goto_if_false @SWEET6_1815
wait 0
goto @SWEET6_1791

:SWEET6_1815
clear_cutscene 
do_fade 0 {direction} Fade.Out

:SWEET6_1823
if 
  get_fading_status 
goto_if_false @SWEET6_1847
wait 0
goto @SWEET6_1823

:SWEET6_1847
set_area_visible 0
35@ += 1

:SWEET6_1858
if 
  35@ == 1
goto_if_false @SWEET6_2034
load_scene 2519.575 {y} -1677.88 {z} 13.7661
set_char_coordinates $scplayer {x} 2519.575 {y} -1677.88 {z} 13.7661
set_char_heading $scplayer {heading} 107.8934
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
clear_area 2519.575 {y} -1677.88 {z} 13.7661 {radius} 1000.0 {clearParticles} True
do_fade 500 {direction} Fade.In

:SWEET6_1967
if 
  get_fading_status 
goto_if_false @SWEET6_1991
wait 0
goto @SWEET6_1967

:SWEET6_1991
print 'S6_01' {time} 10000 {flag} 1
105@ = add_blip_for_coord 2653.0161 {y} -2009.172 {z} 12.5547
35@ += 1

:SWEET6_2034
if 
  35@ == 2
goto_if_false @SWEET6_2059
35@ = 99

:SWEET6_2059
if 
  35@ == 99
goto_if_false @SWEET6_2084
gosub @SWEET6_35860

:SWEET6_2084
return 

:SWEET6_2086
if 
  35@ == 0
goto_if_false @SWEET6_2354
43@ = 0
if 
  locate_char_any_means_3d $scplayer {x} 2653.0161 {y} -2009.172 {z} 12.5547 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET6_2305
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_2213
$car = store_car_char_is_in_no_save $scplayer
if 
  is_vehicle_on_all_wheels $car
goto_if_false @SWEET6_2213
set_player_control $player1 {state} False
43@ = 1

:SWEET6_2213
if 
  is_char_on_foot $scplayer
goto_if_false @SWEET6_2259
if 
  is_char_stopped $scplayer
goto_if_false @SWEET6_2259
set_player_control $player1 {state} False
43@ = 1

:SWEET6_2259
if 
  43@ == 1
goto_if_false @SWEET6_2305
if 
  does_blip_exist 105@
goto_if_false @SWEET6_2298
remove_blip 105@

:SWEET6_2298
35@ += 1

:SWEET6_2305
if 
  68@ == 1
goto_if_false @SWEET6_2354
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SWEET6_2354
set_char_coordinates $scplayer {x} $lowrideX {y} $lowrideY {z} $lowrideZ

:SWEET6_2354
if 
  35@ == 1
goto_if_false @SWEET6_2433
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_2426
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $car
goto_if_false @SWEET6_2419
35@ += 1

:SWEET6_2419
goto @SWEET6_2433

:SWEET6_2426
35@ += 1

:SWEET6_2433
if 
  35@ == 2
goto_if_false @SWEET6_2957
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SWEET6_2465
if 
  get_fading_status 
goto_if_false @SWEET6_2489
wait 0
goto @SWEET6_2465

:SWEET6_2489
clear_prints 
request_collision 2644.252 {y} -2028.246
load_scene 2644.252 {y} -2028.246 {z} 12.5547
switch_widescreen True
set_fixed_camera_position 2640.3621 {y} -2011.104 {z} 14.9634 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2640.959 {y} -2011.886 {z} 14.7846 {switchStyle} SwitchType.JumpCut
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
make_player_gang_disappear 
clear_area 2648.9409 {y} -2017.2469 {z} 12.5625 {radius} 15.0 {clearParticles} True
clear_area 2643.875 {y} -2029.439 {z} 12.5547 {radius} 15.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2641.7429 {y} -2015.496 {z} 12.6446
set_char_heading $scplayer {heading} 214.4731
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
$stop_gargae_for_neil = 1
request_model 50
request_model 567
load_all_models_now 

:SWEET6_2699
if or
  not has_model_loaded 50
  not has_model_loaded 567
goto_if_false @SWEET6_2730
wait 0
goto @SWEET6_2699

:SWEET6_2730
request_animation "CAR"
request_animation "GANGS"

:SWEET6_2746
if or
  not has_animation_loaded "CAR"
  not has_animation_loaded "GANGS"
goto_if_false @SWEET6_2784
wait 0
goto @SWEET6_2746

:SWEET6_2784
request_car_recording 552

:SWEET6_2789
if 
  not has_car_recording_been_loaded 552
goto_if_false @SWEET6_2816
wait 0
goto @SWEET6_2789

:SWEET6_2816
71@ = create_car 567 {x} 2644.252 {y} -2028.246 {z} 12.5547
set_car_heading 71@ {heading} 358.8272
set_car_hydraulics 71@ {state} True
set_car_straight_line_distance 71@ {distance} 40
set_car_driving_style 71@ {drivingStyle} DrivingMode.PloughThrough
79@ = create_char_inside_car 71@ {pedType} PedType.CivMale {modelId} 50
set_char_decision_maker 79@ {handleOrTemplate} 66@
task_look_at_char $scplayer {target} 79@ {time} 99999
do_fade 500 {direction} Fade.In

:SWEET6_2910
if 
  get_fading_status 
goto_if_false @SWEET6_2934
wait 0
goto @SWEET6_2910

:SWEET6_2934
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:SWEET6_2957
if and
  35@ > 2
  17 > 35@
goto_if_false @SWEET6_3006
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_3006
35@ = 17

:SWEET6_3006
if 
  35@ == 3
goto_if_false @SWEET6_3122
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3122
freeze_car_position 71@ {state} False
set_car_forward_speed 71@ {forwardSpeed} 2.0
set_car_cruise_speed 71@ {maxSpeed} 4.0
car_goto_coordinates_accurate 71@ {x} 2644.4619 {y} -2016.282 {z} 12.5547
TIMERA = 0
TIMERB = 0
43@ = 0
set_car_status 71@ {status} EntityStatus.Physics
35@ += 1

:SWEET6_3122
if 
  35@ == 4
goto_if_false @SWEET6_3563
if 
  15000 > TIMERA
goto_if_false @SWEET6_3510
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3503
if 
  locate_stopped_car_3d 71@ {x} 2644.4619 {y} -2017.282 {z} 12.5547 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET6_3278
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_3264
control_car_hydraulics 71@ {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:SWEET6_3264
35@ += 1
goto @SWEET6_3503

:SWEET6_3278
if 
  2 > 43@
goto_if_false @SWEET6_3470
if and
  1800 > TIMERB
  TIMERB > 1500
goto_if_false @SWEET6_3370
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0
goto @SWEET6_3470

:SWEET6_3370
if 
  TIMERB > 1800
goto_if_false @SWEET6_3470
if 
  2500 > TIMERB
goto_if_false @SWEET6_3455
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
goto @SWEET6_3470

:SWEET6_3455
TIMERB = 1300
43@ += 1

:SWEET6_3470
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_3503
control_car_hydraulics 71@ {_p2} $wheel_fl {_p3} $wheel_bl {_p4} $wheel_fr {_p5} $wheel_br

:SWEET6_3503
goto @SWEET6_3563

:SWEET6_3510
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3563
set_car_coordinates 71@ {x} 2644.4619 {y} -2017.282 {z} 12.5547
set_car_heading 71@ {heading} 358.5157
35@ += 1

:SWEET6_3563
if 
  35@ == 5
goto_if_false @SWEET6_3708
if 
  not is_char_dead 79@
goto_if_false @SWEET6_3708
49@ = open_sequence_task 
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3625
task_leave_car -1 {vehicle} 71@

:SWEET6_3625
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} -2
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_3708
if 
  35@ == 6
goto_if_false @SWEET6_3800
if 
  not is_char_dead 79@
goto_if_false @SWEET6_3800
if 
  not is_car_dead 71@
goto_if_false @SWEET6_3800
if 
  not is_char_in_car 79@ {vehicle} 71@
goto_if_false @SWEET6_3800
if 
  is_char_on_foot 79@
goto_if_false @SWEET6_3800
35@ += 1

:SWEET6_3800
if 
  35@ == 7
goto_if_false @SWEET6_4173
set_fixed_camera_position 2640.2 {y} -2018.059 {z} 14.3965 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2641.135 {y} -2017.7581 {z} 14.2101 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 2642.658 {y} -2015.291 {z} 12.5947
set_char_heading $scplayer {heading} 181.4479
if 
  not is_char_dead 79@
goto_if_false @SWEET6_3955
set_char_coordinates 79@ {x} 2641.8621 {y} -2018.108 {z} 12.2327
set_char_heading 79@ {heading} 353.04
task_look_at_char 79@ {target} $scplayer {time} -2

:SWEET6_3955
clear_char_tasks_immediately $scplayer
49@ = open_sequence_task 
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4031
task_look_at_char -1 {target} 79@ {time} 99999
task_go_straight_to_coord -1 {x} 2642.3911 {y} -2016.5811 {z} 12.5947 {speed} MoveState.Walk {time} 5000
task_turn_char_to_face_char -1 {target} 79@
goto @SWEET6_4038

:SWEET6_4031
task_pause -1 {time} 1000

:SWEET6_4038
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4151
clear_char_tasks_immediately 79@
49@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_4151
62@ = 0
TIMERA = 500
35@ += 1

:SWEET6_4173
if 
  35@ == 8
goto_if_false @SWEET6_4597
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4286
$x, $y, $z = get_char_coordinates $scplayer
56@, 57@, 58@ = get_char_coordinates 79@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
$heading = get_heading_from_vector_2d 50@ {y} 51@
set_char_heading 79@ {heading} $heading

:SWEET6_4286
if and
  $audio_line_is_active == 0
  TIMERA > 500
goto_if_false @SWEET6_4597
switch_start 62@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET6_4597 {caseNum1} 0 {caseLabel1} @SWEET6_4375 {caseNum2} 1 {caseLabel2} @SWEET6_4441 {caseNum3} 2 {caseLabel3} @SWEET6_4507 {caseNum4} 3 {caseLabel4} @SWEET6_4562 {caseNum5} -1 {caseLabel5} @SWEET6_4597 {caseNum6} -1 {caseLabel6} @SWEET6_4597 {caseNum7} -1 {caseLabel7} @SWEET6_4597

:SWEET6_4375
set_var_text_label s$audio_string = 'LOWR_KA'
set_var_int_to_constant $audio_sound_file = 22833
start_new_script @AUDIOL 79@ 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 22834
62@ += 1
goto @SWEET6_4597

:SWEET6_4441
set_var_text_label s$audio_string = 'LOWR_KB'
set_var_int_to_constant $audio_sound_file = 22834
start_new_script @AUDIOL 79@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22835
62@ += 1
goto @SWEET6_4597

:SWEET6_4507
set_var_text_label s$audio_string = 'LOWR_KC'
set_var_int_to_constant $audio_sound_file = 22835
start_new_script @AUDIOL 79@ 0 1 1 1 
62@ += 1
goto @SWEET6_4597

:SWEET6_4562
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4583
clear_char_tasks 79@

:SWEET6_4583
35@ += 1
goto @SWEET6_4597

:SWEET6_4597
if 
  35@ == 9
goto_if_false @SWEET6_4750
if 
  not is_car_dead 71@
goto_if_false @SWEET6_4750
set_radio_channel RadioChannel.PlaybackFM
clear_look_at $scplayer
49@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 71@ {time} 10000
task_play_anim -1 {animationName} "SIT_RELAXED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4743
task_look_at_char 79@ {target} $scplayer {time} -2

:SWEET6_4743
35@ += 1

:SWEET6_4750
if 
  35@ == 10
goto_if_false @SWEET6_4838
if 
  not is_car_dead 71@
goto_if_false @SWEET6_4838
if and
  is_char_in_car $scplayer {vehicle} 71@
  not is_char_on_foot $scplayer
goto_if_false @SWEET6_4838
if 
  not is_char_dead 79@
goto_if_false @SWEET6_4831
freeze_char_position 79@ {state} True

:SWEET6_4831
35@ += 1

:SWEET6_4838
if 
  35@ == 11
goto_if_false @SWEET6_5129
if 
  not is_char_dead 79@
goto_if_false @SWEET6_5129
49@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} -2
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 79@ {sequence} 49@
clear_sequence_task 49@
35@ += 1
43@ = 0
TIMERA = 500
TIMERB = 0
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
62@ = 0
if 
  not is_car_dead 71@
goto_if_false @SWEET6_5129
set_car_status 71@ {status} EntityStatus.Physics

:SWEET6_5129
if 
  35@ == 12
goto_if_false @SWEET6_5832
if and
  $audio_line_is_active == 0
  TIMERA > 500
goto_if_false @SWEET6_5524
switch_start 62@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SWEET6_5524 {caseNum1} 0 {caseLabel1} @SWEET6_5236 {caseNum2} 1 {caseLabel2} @SWEET6_5302 {caseNum3} 2 {caseLabel3} @SWEET6_5368 {caseNum4} 3 {caseLabel4} @SWEET6_5434 {caseNum5} 4 {caseLabel5} @SWEET6_5489 {caseNum6} -1 {caseLabel6} @SWEET6_5524 {caseNum7} -1 {caseLabel7} @SWEET6_5524

:SWEET6_5236
set_var_text_label s$audio_string = 'LOWR_KD'
set_var_int_to_constant $audio_sound_file = 22836
start_new_script @AUDIOL 79@ 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22837
62@ += 1
goto @SWEET6_5524

:SWEET6_5302
set_var_text_label s$audio_string = 'LOWR_KE'
set_var_int_to_constant $audio_sound_file = 22837
start_new_script @AUDIOL 79@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 22838
62@ += 1
goto @SWEET6_5524

:SWEET6_5368
set_var_text_label s$audio_string = 'LOWR_KF'
set_var_int_to_constant $audio_sound_file = 22838
start_new_script @AUDIOL 79@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 22839
62@ += 1
goto @SWEET6_5524

:SWEET6_5434
set_var_text_label s$audio_string = 'LOWR_KG'
set_var_int_to_constant $audio_sound_file = 22839
start_new_script @AUDIOL 79@ 0 1 1 1 
62@ += 1
goto @SWEET6_5524

:SWEET6_5489
if 
  not is_char_dead 79@
goto_if_false @SWEET6_5510
clear_char_tasks 79@

:SWEET6_5510
35@ += 1
goto @SWEET6_5524

:SWEET6_5524
if 
  not is_car_dead 71@
goto_if_false @SWEET6_5832
if 
  4 > 43@
goto_if_false @SWEET6_5739
if and
  1800 > TIMERB
  TIMERB > 1500
goto_if_false @SWEET6_5632
$wheel_fl = 1.0
$wheel_bl = 0.0
$wheel_fr = 1.0
$wheel_br = 0.0
goto @SWEET6_5732

:SWEET6_5632
if 
  TIMERB > 1800
goto_if_false @SWEET6_5732
if 
  2500 > TIMERB
goto_if_false @SWEET6_5717
$wheel_fl = 0.0
$wheel_bl = 0.0
$wheel_fr = 0.0
$wheel_br = 0.0
goto @SWEET6_5732

:SWEET6_5717
TIMERB = 1300
43@ += 1

:SWEET6_5732
goto @SWEET6_5799

:SWEET6_5739
if 
  43@ == 4
goto_if_false @SWEET6_5799
task_play_anim $scplayer {animationName} "TAP_HAND" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
43@ += 1

:SWEET6_5799
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_5832
control_car_hydraulics 71@ {_p2} $wheel_fl {_p3} $wheel_bl {_p4} $wheel_fr {_p5} $wheel_br

:SWEET6_5832
if 
  is_player_playing $player1
goto_if_false @SWEET6_5894
if 
  is_char_playing_anim $scplayer {animationName} "TAP_HAND"
goto_if_false @SWEET6_5894
set_char_anim_speed $scplayer {animName} "TAP_HAND" {animSpeed} 0.5

:SWEET6_5894
if 
  35@ == 13
goto_if_false @SWEET6_6075
if 
  $sw6_mission_attempts == 0
goto_if_false @SWEET6_6068
if 
  not is_char_dead 79@
goto_if_false @SWEET6_5983
clear_char_tasks 79@
freeze_char_position 79@ {state} False
task_go_straight_to_coord 79@ {x} 2641.231 {y} -2020.621 {z} 12.7578 {speed} MoveState.Walk {time} 5000

:SWEET6_5983
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6040
if 
  does_car_have_hydraulics 71@
goto_if_false @SWEET6_6040
control_car_hydraulics 71@ {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:SWEET6_6040
35@ += 1
TIMERA = 0
TIMERB = 0
goto @SWEET6_6075

:SWEET6_6068
35@ = 17

:SWEET6_6075
if 
  35@ == 14
goto_if_false @SWEET6_6219
if 
  TIMERA > 1000
goto_if_false @SWEET6_6219
set_fixed_camera_position 2643.9851 {y} -2023.749 {z} 14.95 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2644.0911 {y} -2022.8 {z} 14.6533 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6219
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 71@
start_playback_recorded_car 71@ {path} 552
pause_playback_recorded_car 71@
35@ += 1
TIMERA = 0

:SWEET6_6219
if 
  35@ == 15
goto_if_false @SWEET6_6307
if 
  TIMERA > 1000
goto_if_false @SWEET6_6307
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6307
if 
  is_playback_going_on_for_car 71@
goto_if_false @SWEET6_6307
unpause_playback_recorded_car 71@
35@ += 1
TIMERA = 0

:SWEET6_6307
if 
  35@ == 16
goto_if_false @SWEET6_6372
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6372
if or
  not is_car_on_screen 71@
  TIMERA > 3000
goto_if_false @SWEET6_6372
35@ += 1

:SWEET6_6372
if 
  35@ == 17
goto_if_false @SWEET6_6642
clear_prints 
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
$stop_gargae_for_neil = 0
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6562
if 
  is_playback_going_on_for_car 71@
goto_if_false @SWEET6_6451
stop_playback_recorded_car 71@

:SWEET6_6451
freeze_car_position 71@ {state} False
if 
  does_char_exist 79@
goto_if_false @SWEET6_6479
delete_char 79@

:SWEET6_6479
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 71@
if 
  is_playback_going_on_for_car 71@
goto_if_false @SWEET6_6513
stop_playback_recorded_car 71@

:SWEET6_6513
$heading = get_car_heading 71@
set_car_coordinates 71@ {x} 2644.2581 {y} -2026.526 {z} 12.5469
set_car_heading 71@ {heading} 2.3109
set_player_control $player1 {state} True
set_camera_in_front_of_player 
restore_camera_jumpcut 

:SWEET6_6562
delete_char 79@
mark_model_as_no_longer_needed 50
remove_animation "CAR"
remove_animation "GANGS"
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  $sw6_mission_attempts <> 0
goto_if_false @SWEET6_6635
35@ = 99
goto @SWEET6_6642

:SWEET6_6635
35@ += 1

:SWEET6_6642
if 
  35@ == 18
goto_if_false @SWEET6_6719
remove_blip 105@
105@ = add_blip_for_coord 2645.1121 {y} -2045.745 {z} 12.607
activate_garage 'MODLAST'
print_now 'S6_38' {time} 7000 {flag} 1
35@ += 1

:SWEET6_6719
if 
  35@ == 19
goto_if_false @SWEET6_6970
if 
  $mod_flag <> 0
goto_if_false @SWEET6_6776
clear_prints 
remove_blip 105@
35@ += 1
goto @SWEET6_6970

:SWEET6_6776
if 
  not is_car_dead 71@
goto_if_false @SWEET6_6970
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_6886
if 
  does_blip_exist 105@
goto_if_false @SWEET6_6832
remove_blip 105@

:SWEET6_6832
if 
  not does_blip_exist 106@
goto_if_false @SWEET6_6879
106@ = add_blip_for_car 71@
set_blip_as_friendly 106@ {state} True
print_now 'S6_23' {time} 5000 {flag} 1

:SWEET6_6879
goto @SWEET6_6970

:SWEET6_6886
if 
  does_blip_exist 106@
goto_if_false @SWEET6_6918
remove_blip 106@
clear_this_print 'S6_23'

:SWEET6_6918
if 
  not does_blip_exist 105@
goto_if_false @SWEET6_6970
105@ = add_blip_for_coord 2645.1121 {y} -2045.745 {z} 12.607
print_now 'S6_38' {time} 7000 {flag} 1

:SWEET6_6970
if 
  35@ == 20
goto_if_false @SWEET6_7135
if and
  $mod_flag == 3
  $control_flag_mod == 3
goto_if_false @SWEET6_7065
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7058
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7058
set_car_heading 71@ {heading} 0.0

:SWEET6_7058
35@ = 99

:SWEET6_7065
if 
  $mod_flag == 0
goto_if_false @SWEET6_7135
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7128
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7128
set_car_heading 71@ {heading} 0.0

:SWEET6_7128
35@ = 99

:SWEET6_7135
if 
  35@ > 12
goto_if_false @SWEET6_7367
43@ = 0
if and
  $mod_flag == 3
  $control_flag_mod == 3
goto_if_false @SWEET6_7192
43@ = 1

:SWEET6_7192
if 
  $mod_flag == 0
goto_if_false @SWEET6_7217
43@ = 1

:SWEET6_7217
if 
  43@ == 1
goto_if_false @SWEET6_7367
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_7367
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7330
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7323
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_7323
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_7323
goto @SWEET6_7367

:SWEET6_7330
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_7367
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_7367
if 
  35@ == 99
goto_if_false @SWEET6_7481
make_player_gang_reappear 
$sw6_mission_attempts += 1
activate_garage 'MODLAST'
clear_prints 
if 
  does_char_exist 79@
goto_if_false @SWEET6_7428
delete_char 79@

:SWEET6_7428
$stop_gargae_for_neil = 1
mark_model_as_no_longer_needed 50
remove_animation "CAR"
remove_animation "GANGS"
remove_car_recording 552
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
gosub @SWEET6_35860

:SWEET6_7481
return 

:SWEET6_7483
if 
  35@ == 0
goto_if_false @SWEET6_8701
if 
  not is_car_dead 71@
goto_if_false @SWEET6_7559
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_7559
print_now 'S6_03' {time} 7000 {flag} 1
goto @SWEET6_7559

:SWEET6_7559
if 
  not does_blip_exist 105@
goto_if_false @SWEET6_7595
105@ = add_blip_for_coord 1793.068 {y} -1904.254 {z} 12.3989

:SWEET6_7595
130@ = 0
131@ = 0
141@ = 1796.947
148@ = -1924.376
155@ = 13.2937
162@ = 60.9627
142@ = 1802.865
149@ = -1918.7419
156@ = 13.2965
163@ = 357.6195
143@ = 1788.9919
150@ = -1924.501
157@ = 13.2937
164@ = 305.5176
144@ = 1784.189
151@ = -1913.4399
158@ = 13.2957
165@ = 188.9639
145@ = 1790.964
152@ = -1913.8979
159@ = 13.2985
166@ = 266.2616
146@ = 1799.899
153@ = -1906.425
160@ = 13.3025
167@ = 184.4735
147@ = 1785.9399
154@ = -1904.839
161@ = 13.297
168@ = 152.5742
169@ = 1798.603
191@ = -1908.26
213@ = 12.4388
235@ = 102.3995
170@ = 1798.887
192@ = -1907.668
214@ = 12.4399
236@ = 174.1189
171@ = 1798.834
193@ = -1911.782
215@ = 12.4374
237@ = 158.2591
172@ = 1799.584
194@ = -1912.795
216@ = 12.4368
238@ = 74.6392
173@ = 1800.902
195@ = -1918.714
217@ = 12.4331
239@ = 256.6391
174@ = 1798.166
196@ = -1920.427
218@ = 12.4321
240@ = 19.6592
175@ = 1796.811
197@ = -1920.426
219@ = 12.4321
241@ = 331.8393
176@ = 1787.78
198@ = -1919.071
220@ = 12.4329
242@ = 331.8393
177@ = 1786.71
199@ = -1917.9821
221@ = 12.4332
243@ = 285.8198
178@ = 1786.194
200@ = -1907.356
222@ = 12.4327
244@ = 260.4003
179@ = 1786.8979
201@ = -1906.531
223@ = 12.4335
245@ = 141.9807
180@ = 1786.23
202@ = -1908.6219
224@ = 12.4328
246@ = 327.1608
181@ = 1789.188
203@ = -1919.665
225@ = 12.4325
247@ = 357.2196
182@ = 1788.103
204@ = -1907.949
226@ = 12.4352
248@ = 200.9411
183@ = 1797.9969
205@ = -1912.74
227@ = 12.4368
249@ = 312.2806
184@ = 1796.46
206@ = -1908.882
228@ = 12.4368
250@ = 312.2806
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:SWEET6_8573
if or
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
  not has_model_loaded 63
  not has_model_loaded 41
goto_if_false @SWEET6_8615
wait 0
goto @SWEET6_8573

:SWEET6_8615
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @SWEET6_8647
wait 0
goto @SWEET6_8615

:SWEET6_8647
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @SWEET6_8681
wait 0
goto @SWEET6_8647

:SWEET6_8681
switch_audio_zone 'LOWRIDE' {state} True
35@ += 1

:SWEET6_8701
if 
  35@ == 1
goto_if_false @SWEET6_16330
if 
  68@ == 1
goto_if_false @SWEET6_8800
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SWEET6_8800
if 
  not is_car_dead 71@
goto_if_false @SWEET6_8800
set_car_coordinates 71@ {x} 1800.978 {y} -1895.775 {z} 12.4046
set_car_heading 71@ {heading} 136.3521

:SWEET6_8800
if 
  not is_car_dead 71@
goto_if_false @SWEET6_8983
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_8910
if 
  does_blip_exist 105@
goto_if_false @SWEET6_8856
remove_blip 105@

:SWEET6_8856
if 
  not does_blip_exist 106@
goto_if_false @SWEET6_8903
print_now 'S6_35' {time} 5000 {flag} 1
106@ = add_blip_for_car 71@
set_blip_as_friendly 106@ {state} True

:SWEET6_8903
goto @SWEET6_8983

:SWEET6_8910
if 
  not does_blip_exist 105@
goto_if_false @SWEET6_8962
print_now 'S6_03' {time} 7000 {flag} 1
105@ = add_blip_for_coord 1793.068 {y} -1904.254 {z} 12.3989

:SWEET6_8962
if 
  does_blip_exist 106@
goto_if_false @SWEET6_8983
remove_blip 106@

:SWEET6_8983
43@ = 0
if and
  $mod_flag == 3
  $control_flag_mod == 3
goto_if_false @SWEET6_9022
43@ = 1

:SWEET6_9022
if 
  $mod_flag == 0
goto_if_false @SWEET6_9047
43@ = 1

:SWEET6_9047
if 
  43@ == 1
goto_if_false @SWEET6_9197
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_9197
if 
  not is_car_dead 71@
goto_if_false @SWEET6_9160
if 
  not is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_9153
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_9153
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_9153
goto @SWEET6_9197

:SWEET6_9160
$car = store_car_char_is_in_no_save $scplayer
if 
  does_car_have_hydraulics $car
goto_if_false @SWEET6_9197
mark_car_as_no_longer_needed 71@
71@ = store_car_char_is_in $scplayer

:SWEET6_9197
if 
  131@ == 0
goto_if_false @SWEET6_10700
if 
  locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SWEET6_10693
72@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 72@ {color1} 1 {color2} 0
change_car_colour 73@ {color1} 2 {color2} 1
change_car_colour 74@ {color1} 3 {color2} 2
change_car_colour 75@ {color1} 10 {color2} 3
set_car_status 72@ {status} EntityStatus.Physics
set_car_status 75@ {status} EntityStatus.Physics
set_car_hydraulics 72@ {state} True
set_car_hydraulics 75@ {state} True
set_car_only_damaged_by_player 72@ {state} True
set_car_only_damaged_by_player 75@ {state} True
wait 0
76@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 76@ {color1} 9 {color2} 4
change_car_colour 77@ {color1} 6 {color2} 5
change_car_colour 78@ {color1} 7 {color2} 6
set_car_status 76@ {status} EntityStatus.Physics
set_car_hydraulics 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
wait 0
43@ = 0

:SWEET6_9555
if 
  7 > 43@
goto_if_false @SWEET6_9664
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_9650
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)
lock_car_doors 72@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly

:SWEET6_9650
43@ += 1
goto @SWEET6_9555

:SWEET6_9664
wait 0
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
81@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
93@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
96@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
101@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
wait 0
43@ = 0

:SWEET6_10219
if 
  16 > 43@
goto_if_false @SWEET6_10337
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_10323
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_10323
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)

:SWEET6_10323
43@ += 1
goto @SWEET6_10219

:SWEET6_10337
43@ = 0

:SWEET6_10344
if 
  22 > 43@
goto_if_false @SWEET6_10428
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_10414
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_10414
set_char_decision_maker 80@(43@,22i) {handleOrTemplate} 67@

:SWEET6_10414
43@ += 4
goto @SWEET6_10344

:SWEET6_10428
if 
  not is_char_dead 96@
goto_if_false @SWEET6_10468
if 
  not is_car_dead 73@
goto_if_false @SWEET6_10468
warp_char_into_car 96@ {vehicle} 73@

:SWEET6_10468
if 
  not is_char_dead 97@
goto_if_false @SWEET6_10508
if 
  not is_car_dead 74@
goto_if_false @SWEET6_10508
warp_char_into_car 97@ {vehicle} 74@

:SWEET6_10508
if 
  not is_char_dead 98@
goto_if_false @SWEET6_10548
if 
  not is_car_dead 76@
goto_if_false @SWEET6_10548
warp_char_into_car 98@ {vehicle} 76@

:SWEET6_10548
if 
  not is_char_dead 99@
goto_if_false @SWEET6_10588
if 
  not is_car_dead 72@
goto_if_false @SWEET6_10588
warp_char_into_car 99@ {vehicle} 72@

:SWEET6_10588
if 
  not is_char_dead 100@
goto_if_false @SWEET6_10628
if 
  not is_car_dead 75@
goto_if_false @SWEET6_10628
warp_char_into_car 100@ {vehicle} 75@

:SWEET6_10628
if 
  does_char_exist 101@
goto_if_false @SWEET6_10686
if 
  not is_char_dead 101@
goto_if_false @SWEET6_10686
if 
  not is_car_dead 74@
goto_if_false @SWEET6_10686
warp_char_into_car_as_passenger 101@ {handle} 74@ {seat} SeatId.BikeRear

:SWEET6_10686
131@ = 1

:SWEET6_10693
goto @SWEET6_10841

:SWEET6_10700
if 
  not locate_char_any_means_2d $scplayer {x} 1792.924 {y} -1918.9871 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SWEET6_10841
43@ = 0

:SWEET6_10745
if 
  7 > 43@
goto_if_false @SWEET6_10786
delete_car 72@(43@,7i)
43@ += 1
goto @SWEET6_10745

:SWEET6_10786
43@ = 0

:SWEET6_10793
if 
  22 > 43@
goto_if_false @SWEET6_10834
delete_char 80@(43@,22i)
43@ += 1
goto @SWEET6_10793

:SWEET6_10834
131@ = 0

:SWEET6_10841
if 
  131@ == 1
goto_if_false @SWEET6_16065
if 
  130@ == 0
goto_if_false @SWEET6_15797
if 
  300 > 136@
goto_if_false @SWEET6_10943
257@ = 1.0
260@ = 1.0
263@ = 0.0
266@ = 0.0
goto @SWEET6_11016

:SWEET6_10943
if 
  136@ > 500
goto_if_false @SWEET6_10976
136@ = 0
goto @SWEET6_11016

:SWEET6_10976
257@ = 0.0
260@ = 0.0
263@ = 0.0
266@ = 0.0

:SWEET6_11016
if 
  137@ > 2000
goto_if_false @SWEET6_11090
296@ = generate_random_int_in_range 0 {max} 16
gosub @SWEET6_28846
set_lvar_float_to_lvar_float 258@ = 294@
set_lvar_float_to_lvar_float 261@ = 292@
set_lvar_float_to_lvar_float 264@ = 295@
set_lvar_float_to_lvar_float 267@ = 293@
137@ = 0

:SWEET6_11090
if 
  138@ > 300
goto_if_false @SWEET6_11164
296@ = generate_random_int_in_range 0 {max} 16
gosub @SWEET6_28846
set_lvar_float_to_lvar_float 259@ = 294@
set_lvar_float_to_lvar_float 262@ = 292@
set_lvar_float_to_lvar_float 265@ = 295@
set_lvar_float_to_lvar_float 268@ = 293@
138@ = 0

:SWEET6_11164
if 
  not is_car_dead 72@
goto_if_false @SWEET6_11306
if 
  does_car_have_hydraulics 72@
goto_if_false @SWEET6_11306
control_car_hydraulics 72@ {_p2} 260@ {_p3} 266@ {_p4} 257@ {_p5} 263@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_11306
if 
  not is_car_dead 75@
goto_if_false @SWEET6_11448
if 
  does_car_have_hydraulics 75@
goto_if_false @SWEET6_11448
control_car_hydraulics 75@ {_p2} 261@ {_p3} 267@ {_p4} 258@ {_p5} 264@
$x, $y, $z = get_car_coordinates 75@
set_lvar_float_to_lvar_float 50@ = 144@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 151@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_11448
if 
  not is_car_dead 76@
goto_if_false @SWEET6_11590
if 
  does_car_have_hydraulics 76@
goto_if_false @SWEET6_11590
control_car_hydraulics 76@ {_p2} 262@ {_p3} 268@ {_p4} 259@ {_p5} 265@
$x, $y, $z = get_car_coordinates 76@
set_lvar_float_to_lvar_float 50@ = 145@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 152@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 76@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_11590
switch_start 39@ {numCases} 20 {hasDefaultCase} 0 {defaultLabel} @SWEET6_15790 {caseNum1} 0 {caseLabel1} @SWEET6_11783 {caseNum2} 1 {caseLabel2} @SWEET6_12159 {caseNum3} 2 {caseLabel3} @SWEET6_12535 {caseNum4} 3 {caseLabel4} @SWEET6_12685 {caseNum5} 4 {caseLabel5} @SWEET6_12835 {caseNum6} 5 {caseLabel6} @SWEET6_12950 {caseNum7} 6 {caseLabel7} @SWEET6_13100
switch_continued 7 {caseLabel1} @SWEET6_13250 {caseNum2} 8 {caseLabel2} @SWEET6_13366 {caseNum3} 9 {caseLabel3} @SWEET6_13482 {caseNum4} 10 {caseLabel4} @SWEET6_13858 {caseNum5} 11 {caseLabel5} @SWEET6_14041 {caseNum6} 12 {caseLabel6} @SWEET6_14157 {caseNum7} 13 {caseLabel7} @SWEET6_14273 {caseNum8} 14 {caseLabel8} @SWEET6_14580 {caseNum9} 15 {caseLabel9} @SWEET6_14905
switch_continued 16 {caseLabel1} @SWEET6_15189 {caseNum2} 17 {caseLabel2} @SWEET6_15298 {caseNum3} 18 {caseLabel3} @SWEET6_15407 {caseNum4} 19 {caseLabel4} @SWEET6_15614 {caseNum5} -1 {caseLabel5} @SWEET6_15790 {caseNum6} -1 {caseLabel6} @SWEET6_15790 {caseNum7} -1 {caseLabel7} @SWEET6_15790 {caseNum8} -1 {caseLabel8} @SWEET6_15790 {caseNum9} -1 {caseLabel9} @SWEET6_15790

:SWEET6_11783
if 
  not is_char_dead 80@
goto_if_false @SWEET6_12152
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12057
49@ = open_sequence_task 
if 
  not is_car_dead 77@
goto_if_false @SWEET6_11991
if 
  locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_11943
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SWEET6_11984

:SWEET6_11943
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_11984
goto @SWEET6_12032

:SWEET6_11991
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12032
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@
goto @SWEET6_12152

:SWEET6_12057
if 
  is_char_playing_anim 80@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @SWEET6_12152
if 
  not is_car_dead 77@
goto_if_false @SWEET6_12152
if 
  not locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_12152
clear_char_tasks 80@

:SWEET6_12152
goto @SWEET6_15790

:SWEET6_12159
if 
  not is_char_dead 81@
goto_if_false @SWEET6_12528
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12433
49@ = open_sequence_task 
if 
  not is_car_dead 77@
goto_if_false @SWEET6_12367
if 
  locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_12319
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SWEET6_12360

:SWEET6_12319
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12360
goto @SWEET6_12408

:SWEET6_12367
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12408
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@
goto @SWEET6_12528

:SWEET6_12433
if 
  is_char_playing_anim 81@ {animationName} "F_SMKLEAN_LOOP"
goto_if_false @SWEET6_12528
if 
  not is_car_dead 77@
goto_if_false @SWEET6_12528
if 
  not locate_car_3d 77@ {x} 146@ {y} 153@ {z} 160@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_12528
clear_char_tasks 81@

:SWEET6_12528
goto @SWEET6_15790

:SWEET6_12535
if 
  not is_char_dead 82@
goto_if_false @SWEET6_12678
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12678
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @SWEET6_12619
task_chat_with_char -1 {other} 83@ {leadSpeaker} True {_p4} 1
goto @SWEET6_12660

:SWEET6_12619
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12660
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_12678
goto @SWEET6_15790

:SWEET6_12685
if 
  not is_char_dead 83@
goto_if_false @SWEET6_12828
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12828
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @SWEET6_12769
task_chat_with_char -1 {other} 82@ {leadSpeaker} False {_p4} 1
goto @SWEET6_12810

:SWEET6_12769
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_12810
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_12828
goto @SWEET6_15790

:SWEET6_12835
if 
  not is_char_dead 84@
goto_if_false @SWEET6_12943
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_12943
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_12943
goto @SWEET6_15790

:SWEET6_12950
if 
  not is_char_dead 85@
goto_if_false @SWEET6_13093
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13093
49@ = open_sequence_task 
if 
  not is_char_dead 86@
goto_if_false @SWEET6_13034
task_chat_with_char -1 {other} 86@ {leadSpeaker} False {_p4} 1
goto @SWEET6_13075

:SWEET6_13034
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13075
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13093
goto @SWEET6_15790

:SWEET6_13100
if 
  not is_char_dead 86@
goto_if_false @SWEET6_13243
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13243
49@ = open_sequence_task 
if 
  not is_char_dead 85@
goto_if_false @SWEET6_13184
task_chat_with_char -1 {other} 85@ {leadSpeaker} True {_p4} 1
goto @SWEET6_13225

:SWEET6_13184
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13225
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13243
goto @SWEET6_15790

:SWEET6_13250
if 
  not is_char_dead 87@
goto_if_false @SWEET6_13359
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13359
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13359
goto @SWEET6_15790

:SWEET6_13366
if 
  not is_char_dead 88@
goto_if_false @SWEET6_13475
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13475
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_13475
goto @SWEET6_15790

:SWEET6_13482
if 
  not is_char_dead 89@
goto_if_false @SWEET6_13851
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_13756
49@ = open_sequence_task 
if 
  not is_car_dead 78@
goto_if_false @SWEET6_13690
if 
  locate_car_3d 78@ {x} 147@ {y} 154@ {z} 161@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_13642
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SWEET6_13683

:SWEET6_13642
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13683
goto @SWEET6_13731

:SWEET6_13690
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET6_13731
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@
goto @SWEET6_13851

:SWEET6_13756
if 
  is_char_playing_anim 89@ {animationName} "M_SMKLEAN_LOOP"
goto_if_false @SWEET6_13851
if 
  not is_car_dead 78@
goto_if_false @SWEET6_13851
if 
  not locate_car_3d 78@ {x} 147@ {y} 154@ {z} 161@ {xRadius} 0.2 {yRadius} 0.2 {zRadius} 1.0 {drawSphere} False
goto_if_false @SWEET6_13851
clear_char_tasks 89@

:SWEET6_13851
goto @SWEET6_15790

:SWEET6_13858
if 
  not is_char_dead 90@
goto_if_false @SWEET6_14034
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14034
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14034
goto @SWEET6_15790

:SWEET6_14041
if 
  not is_char_dead 91@
goto_if_false @SWEET6_14150
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14150
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14150
goto @SWEET6_15790

:SWEET6_14157
if 
  not is_char_dead 92@
goto_if_false @SWEET6_14266
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14266
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14266
goto @SWEET6_15790

:SWEET6_14273
if 
  not is_char_dead 93@
goto_if_false @SWEET6_14573
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14573
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.179 {y} -1919.465 {z} 12.3928 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1915.8781 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 182@ {y} 204@ {z} 226@ {speed} MoveState.Walk {time} 60000
if 
  not is_char_dead 89@
goto_if_false @SWEET6_14514
task_turn_char_to_face_char -1 {target} 89@

:SWEET6_14514
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14573
goto @SWEET6_15790

:SWEET6_14580
if 
  not is_char_dead 94@
goto_if_false @SWEET6_14898
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_14898
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1800.3669 {y} -1917.394 {z} 12.3938 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1789.057 {y} -1917.901 {z} 12.3936 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1788.526 {y} -1907.2939 {z} 12.3955 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1796.478 {y} -1908.174 {z} 12.3983 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_14898
goto @SWEET6_15790

:SWEET6_14905
if 
  not is_char_dead 95@
goto_if_false @SWEET6_15182
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15182
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1786.719 {y} -1917.1071 {z} 12.3942 {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1787.672 {y} -1908.567 {z} 12.3949 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord -1 {x} 184@ {y} 206@ {z} 228@ {speed} MoveState.Walk {time} 60000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_15182
goto @SWEET6_15790

:SWEET6_15189
if 
  not is_char_dead 96@
goto_if_false @SWEET6_15291
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15291
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_15291
goto @SWEET6_15790

:SWEET6_15298
if 
  not is_char_dead 97@
goto_if_false @SWEET6_15400
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_15400
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_15400
goto @SWEET6_15790

:SWEET6_15407
43@ = 0

:SWEET6_15414
if 
  7 > 43@
goto_if_false @SWEET6_15607
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_15593
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_15563
if 
  has_car_been_damaged_by_char 72@(43@,7i) {handle} $scplayer
goto_if_false @SWEET6_15556
44@ = get_car_health 72@(43@,7i)
if 
  950 > 44@
goto_if_false @SWEET6_15556
print_now 'S6_32' {time} 5000 {flag} 1
130@ = 1
43@ = 7

:SWEET6_15556
goto @SWEET6_15593

:SWEET6_15563
print_now 'S6_32' {time} 5000 {flag} 1
130@ = 1
43@ = 7

:SWEET6_15593
43@ += 1
goto @SWEET6_15414

:SWEET6_15607
goto @SWEET6_15790

:SWEET6_15614
43@ = 0

:SWEET6_15621
if 
  22 > 43@
goto_if_false @SWEET6_15783
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_15769
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_15739
if 
  has_char_been_damaged_by_char 80@(43@,22i) {handle} $scplayer
goto_if_false @SWEET6_15732
print_now 'S6_04' {time} 5000 {flag} 1
130@ = 1
43@ = 22

:SWEET6_15732
goto @SWEET6_15769

:SWEET6_15739
print_now 'S6_04' {time} 5000 {flag} 1
130@ = 1
43@ = 22

:SWEET6_15769
43@ += 1
goto @SWEET6_15621

:SWEET6_15783
goto @SWEET6_15790

:SWEET6_15790
goto @SWEET6_16065

:SWEET6_15797
if 
  130@ == 1
goto_if_false @SWEET6_16065
43@ = 0

:SWEET6_15822
if 
  12 > 43@
goto_if_false @SWEET6_15883
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_15869
clear_char_tasks_immediately 80@(43@,22i)

:SWEET6_15869
43@ += 1
goto @SWEET6_15822

:SWEET6_15883
43@ = 0

:SWEET6_15890
if 
  22 > 43@
goto_if_false @SWEET6_15955
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_15941
set_char_relationship 80@(43@,22i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:SWEET6_15941
43@ += 1
goto @SWEET6_15890

:SWEET6_15955
43@ = 0

:SWEET6_15962
if 
  22 > 43@
goto_if_false @SWEET6_16003
mark_char_as_no_longer_needed 80@(43@,22i)
43@ += 1
goto @SWEET6_15962

:SWEET6_16003
43@ = 0

:SWEET6_16010
if 
  7 > 43@
goto_if_false @SWEET6_16051
mark_car_as_no_longer_needed 72@(43@,7i)
43@ += 1
goto @SWEET6_16010

:SWEET6_16051
37@ = 1
130@ += 1

:SWEET6_16065
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16330
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_16330
if 
  locate_char_in_car_3d $scplayer {x} 1793.068 {y} -1904.254 {z} 12.3989 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET6_16323
if 
  is_vehicle_on_all_wheels 71@
goto_if_false @SWEET6_16316
43@ = store_score $player1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 43@ >= 274@
goto_if_false @SWEET6_16220
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
35@ = 99
goto @SWEET6_16316

:SWEET6_16220
if and
  $audio_line_is_active == 0
  not is_message_being_displayed 
goto_if_false @SWEET6_16316
if 
  280@ == 0
goto_if_false @SWEET6_16316
set_var_text_label s$audio_string = 'LOWR_AK'
set_var_int_to_constant $audio_sound_file = 22806
start_new_script @AUDIOL -1 0 0 1 0 
280@ += 1
print_help 'S6_40'

:SWEET6_16316
goto @SWEET6_16330

:SWEET6_16323
280@ = 0

:SWEET6_16330
if 
  281@ == 0
goto_if_false @SWEET6_16453
if 
  not locate_char_any_means_2d $scplayer {x} 2644.0691 {y} -2029.135 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET6_16446
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @SWEET6_16446
print_help 'S6_22'
remove_blip $mod_garage_blip
$mod_garage_blip = add_short_range_sprite_blip_for_coord 2644.252 {y} -2028.246 {z} 12.5547 {sprite} RadarSprite.ModGarage
281@ += 1

:SWEET6_16446
goto @SWEET6_16632

:SWEET6_16453
if 
  282@ == 0
goto_if_false @SWEET6_16546
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16539
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_16539
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @SWEET6_16539
print_help 'S6_36'
282@ += 1

:SWEET6_16539
goto @SWEET6_16632

:SWEET6_16546
if 
  282@ == 1
goto_if_false @SWEET6_16632
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16632
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_16632
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @SWEET6_16632
print_help 'S6_41'
282@ += 1

:SWEET6_16632
if 
  35@ == 99
goto_if_false @SWEET6_16697
if 
  is_char_in_any_car $scplayer
goto_if_false @SWEET6_16697
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $car
goto_if_false @SWEET6_16697
gosub @SWEET6_35860

:SWEET6_16697
return 

:SWEET6_16699
if 
  35@ == 0
goto_if_false @SWEET6_17323
do_fade 500 {direction} Fade.Out

:SWEET6_16724
if 
  get_fading_status 
goto_if_false @SWEET6_16748
wait 0
goto @SWEET6_16724

:SWEET6_16748
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16769
reset_vehicle_hydraulics 71@

:SWEET6_16769
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1793.068 {y} -1904.254 {z} 12.3989 {radius} 30.0 {clearParticles} True
if 
  does_blip_exist 105@
goto_if_false @SWEET6_16828
remove_blip 105@

:SWEET6_16828
if 
  not is_car_dead 71@
goto_if_false @SWEET6_16874
set_car_coordinates 71@ {x} 1793.068 {y} -1904.254 {z} 12.3989
set_car_heading 71@ {heading} 171.6728

:SWEET6_16874
43@ = 0

:SWEET6_16881
if 
  16 > 43@
goto_if_false @SWEET6_16942
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_16928
clear_char_tasks_immediately 80@(43@,22i)

:SWEET6_16928
43@ += 1
goto @SWEET6_16881

:SWEET6_16942
43@ = 0

:SWEET6_16949
if 
  22 > 43@
goto_if_false @SWEET6_17013
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_16999
set_char_decision_maker 80@(43@,22i) {handleOrTemplate} 66@

:SWEET6_16999
43@ += 1
goto @SWEET6_16949

:SWEET6_17013
43@ = 0

:SWEET6_17020
if 
  16 > 43@
goto_if_false @SWEET6_17118
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_17104
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)

:SWEET6_17104
43@ += 1
goto @SWEET6_17020

:SWEET6_17118
43@ = 0

:SWEET6_17125
if 
  7 > 43@
goto_if_false @SWEET6_17223
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_17209
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)

:SWEET6_17209
43@ += 1
goto @SWEET6_17125

:SWEET6_17223
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1796.749 {y} -1916.9611 {z} 13.8583 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1796.125 {y} -1916.181 {z} 13.807 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:SWEET6_17292
if 
  get_fading_status 
goto_if_false @SWEET6_17316
wait 0
goto @SWEET6_17292

:SWEET6_17316
35@ += 1

:SWEET6_17323
if 
  35@ == 1
goto_if_false @SWEET6_17441
if 
  not is_char_dead 98@
goto_if_false @SWEET6_17427
49@ = open_sequence_task 
if 
  not is_car_dead 76@
goto_if_false @SWEET6_17385
task_leave_car -1 {vehicle} 76@

:SWEET6_17385
task_go_straight_to_coord -1 {x} 1792.631 {y} -1909.274 {z} 12.4371 {speed} MoveState.Walk {time} 10000
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_17427
TIMERA = 0
35@ += 1

:SWEET6_17441
if 
  35@ == 2
goto_if_false @SWEET6_17593
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_17593
if 
  not is_char_dead 98@
goto_if_false @SWEET6_17593
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 1792.631 {y} -1909.274 {z} 12.4371
set_char_heading 98@ {heading} 331.0204
set_fixed_camera_position 1793.816 {y} -1910.713 {z} 14.0346 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.453 {y} -1909.801 {z} 13.8451 {switchStyle} SwitchType.JumpCut
35@ += 1

:SWEET6_17593
if 
  35@ == 3
goto_if_false @SWEET6_18043
if 
  not is_char_dead 98@
goto_if_false @SWEET6_18043
49@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKF" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@
43@ = generate_random_int_in_range 0 {max} 3
if 
  43@ == 0
goto_if_false @SWEET6_17898
set_var_text_label s$audio_string = 'LOWR_BA'
set_var_int_to_constant $audio_sound_file = 22808
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_17898
if 
  43@ == 1
goto_if_false @SWEET6_17957
set_var_text_label s$audio_string = 'LOWR_BB'
set_var_int_to_constant $audio_sound_file = 22809
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_17957
if 
  43@ == 2
goto_if_false @SWEET6_18016
set_var_text_label s$audio_string = 'LOWR_BC'
set_var_int_to_constant $audio_sound_file = 22810
start_new_script @AUDIOL 98@ 0 1 1 0 

:SWEET6_18016
wait 1000
use_text_commands True
wait 1
TIMERA = 0
35@ += 1

:SWEET6_18043
if 
  35@ == 4
goto_if_false @SWEET6_18138
if or
  $audio_line_is_active == 0
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_18138
35@ += 1
134@ = 1
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
if 
  not is_char_dead 98@
goto_if_false @SWEET6_18138
clear_char_tasks 98@

:SWEET6_18138
if 
  35@ == 5
goto_if_false @SWEET6_18260
switch_widescreen False
set_fixed_camera_position 1793.485 {y} -1907.354 {z} 13.4436 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1793.129 {y} -1908.2889 {z} 13.4481 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 276@ = 274@
set_lvar_int_to_lvar_int 43@ = 276@
43@ *= -1
add_score $player1 {money} 43@
print_help_forever 'S6_37'
35@ += 1

:SWEET6_18260
if 
  35@ == 6
goto_if_false @SWEET6_19223
if and
  has_game_just_returned_from_frontend 
  has_language_changed 
goto_if_false @SWEET6_18306
clear_help 
print_help_forever 'S6_37'

:SWEET6_18306
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @SWEET6_18732
if and
  277@ <> 1
  277@ <> -1
goto_if_false @SWEET6_18681
if 
  276@ >= 10000
goto_if_false @SWEET6_18382
273@ = 1000
goto @SWEET6_18486

:SWEET6_18382
if 
  276@ >= 1000
goto_if_false @SWEET6_18415
273@ = 100
goto @SWEET6_18486

:SWEET6_18415
if 
  276@ >= 100
goto_if_false @SWEET6_18447
273@ = 10
goto @SWEET6_18486

:SWEET6_18447
if 
  276@ == 0
goto_if_false @SWEET6_18479
273@ = 2
goto @SWEET6_18486

:SWEET6_18479
273@ = 1

:SWEET6_18486
43@ = store_score $player1
if 
  is_int_lvar_greater_than_int_lvar 273@ > 43@
goto_if_false @SWEET6_18521
set_lvar_int_to_lvar_int 273@ = 43@

:SWEET6_18521
set_lvar_int_to_lvar_int 43@ = 276@
add_int_lvar_to_int_lvar 43@ += 273@
if 
  is_int_lvar_greater_than_int_lvar 43@ > 275@
goto_if_false @SWEET6_18572
set_lvar_int_to_lvar_int 273@ = 275@
sub_int_lvar_from_int_lvar 273@ -= 276@

:SWEET6_18572
if 
  0 > 273@
goto_if_false @SWEET6_18597
273@ *= -1

:SWEET6_18597
add_int_lvar_to_int_lvar 276@ += 273@
add_int_lvar_to_int_lvar 278@ += 273@
273@ *= -1
add_score $player1 {money} 273@
277@ += 1
if 
  277@ > 1
goto_if_false @SWEET6_18667
277@ = 2
goto @SWEET6_18674

:SWEET6_18667
TIMERA = 0

:SWEET6_18674
goto @SWEET6_18725

:SWEET6_18681
if 
  277@ == 1
goto_if_false @SWEET6_18725
if 
  TIMERA > 500
goto_if_false @SWEET6_18725
277@ = 2

:SWEET6_18725
goto @SWEET6_19123

:SWEET6_18732
if 
  277@ <> 0
goto_if_false @SWEET6_18757
277@ = 0

:SWEET6_18757
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @SWEET6_19098
if 
  279@ <> 1
goto_if_false @SWEET6_19065
if 
  276@ > 10000
goto_if_false @SWEET6_18826
273@ = -1000
goto @SWEET6_18898

:SWEET6_18826
if 
  276@ > 1000
goto_if_false @SWEET6_18859
273@ = -100
goto @SWEET6_18898

:SWEET6_18859
if 
  276@ > 100
goto_if_false @SWEET6_18891
273@ = -10
goto @SWEET6_18898

:SWEET6_18891
273@ = -1

:SWEET6_18898
set_lvar_int_to_lvar_int 43@ = 276@
add_int_lvar_to_int_lvar 276@ += 273@
if 
  is_int_lvar_greater_than_int_lvar 274@ > 276@
goto_if_false @SWEET6_18955
276@ = 0
set_lvar_int_to_lvar_int 273@ = 43@
273@ *= -1

:SWEET6_18955
if 
  is_int_lvar_greater_than_int_lvar 274@ > 276@
goto_if_false @SWEET6_18989
set_lvar_int_to_lvar_int 276@ = 274@
goto @SWEET6_19012

:SWEET6_18989
273@ *= -1
sub_int_lvar_from_int_lvar 278@ -= 273@
add_score $player1 {money} 273@

:SWEET6_19012
279@ += 1
if 
  279@ > 1
goto_if_false @SWEET6_19051
279@ = 2
goto @SWEET6_19058

:SWEET6_19051
TIMERA = 0

:SWEET6_19058
goto @SWEET6_19091

:SWEET6_19065
if 
  TIMERA > 500
goto_if_false @SWEET6_19091
279@ = 2

:SWEET6_19091
goto @SWEET6_19123

:SWEET6_19098
if 
  279@ <> 0
goto_if_false @SWEET6_19123
279@ = 0

:SWEET6_19123
gosub @SWEET6_35405
if 
  134@ == 0
goto_if_false @SWEET6_19199
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_19192
cset_lvar_float_to_lvar_int 46@ =# 276@
46@ *= 0.1
clear_help 
35@ += 1

:SWEET6_19192
goto @SWEET6_19223

:SWEET6_19199
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_19223
134@ = 0

:SWEET6_19223
if 
  35@ == 7
goto_if_false @SWEET6_19256
use_text_commands False
switch_widescreen True
35@ += 1

:SWEET6_19256
if 
  35@ == 8
goto_if_false @SWEET6_19304
if 
  not is_char_dead 98@
goto_if_false @SWEET6_19304
TIMERA = 0
35@ += 1

:SWEET6_19304
if 
  35@ == 9
goto_if_false @SWEET6_19429
if 
  not is_char_dead 98@
goto_if_false @SWEET6_19429
set_next_desired_move_state MoveState.Walk
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1791.433 {y} -1911.4139 {z} 12.4371 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 76@
goto_if_false @SWEET6_19397
task_enter_car_as_driver -1 {vehicle} 76@ {time} 5000

:SWEET6_19397
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_19429
if 
  35@ == 10
goto_if_false @SWEET6_19506
if 
  TIMERA > 2000
goto_if_false @SWEET6_19506
clear_prints 
do_fade 500 {direction} Fade.Out

:SWEET6_19475
if 
  get_fading_status 
goto_if_false @SWEET6_19499
wait 0
goto @SWEET6_19475

:SWEET6_19499
35@ = 99

:SWEET6_19506
gosub @SWEET6_29776
if 
  35@ == 99
goto_if_false @SWEET6_19538
gosub @SWEET6_35860

:SWEET6_19538
return 

:SWEET6_19540
if 
  35@ == 0
goto_if_false @SWEET6_19646
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position 1788.1071 {y} -1903.804 {z} 13.3553 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1788.944 {y} -1904.343 {z} 13.2601 {switchStyle} SwitchType.JumpCut
load_scene 1788.944 {y} -1904.343 {z} 13.2601
35@ += 1

:SWEET6_19646
if 
  35@ == 1
goto_if_false @SWEET6_22366
request_model 114
request_model 115
request_model 116
request_model 63
request_model 41
request_model 567
request_model 534
request_animation "LOWRIDER"
load_all_models_now 

:SWEET6_19708
if or
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
  not has_model_loaded 63
  not has_model_loaded 41
goto_if_false @SWEET6_19750
wait 0
goto @SWEET6_19708

:SWEET6_19750
if or
  not has_model_loaded 567
  not has_model_loaded 534
goto_if_false @SWEET6_19782
wait 0
goto @SWEET6_19750

:SWEET6_19782
if 
  not has_animation_loaded "LOWRIDER"
goto_if_false @SWEET6_19816
wait 0
goto @SWEET6_19782

:SWEET6_19816
141@ = 1798.203
148@ = -1926.222
155@ = 12.3895
162@ = 73.1404
142@ = 1802.864
149@ = -1918.741
156@ = 12.3931
163@ = 357.6193
143@ = 1784.635
150@ = -1924.968
157@ = 12.3901
164@ = 305.062
144@ = 1784.188
151@ = -1913.439
158@ = 12.3923
165@ = 183.5814
145@ = 1792.318
152@ = -1919.5129
159@ = 12.3928
166@ = 8.2504
146@ = 1801.462
153@ = -1905.691
160@ = 12.3995
167@ = 189.9314
147@ = 1787.642
154@ = -1901.136
161@ = 12.3949
168@ = 145.4181
169@ = 1800.0
191@ = -1907.83
213@ = 12.4398
235@ = 73.7198
170@ = 1799.8459
192@ = -1912.124
214@ = 12.4582
236@ = 48.2386
171@ = 1800.0861
193@ = -1910.434
215@ = 12.4372
237@ = 83.7398
172@ = 1801.321
194@ = -1916.427
216@ = 12.4343
238@ = 83.7398
173@ = 1798.541
195@ = -1922.1801
217@ = 12.431
239@ = 46.5794
174@ = 1799.49
196@ = -1920.6169
218@ = 12.4322
240@ = 46.5794
175@ = 1787.255
197@ = -1926.597
219@ = 12.4283
241@ = 323.6194
176@ = 1786.442
198@ = -1920.201
220@ = 12.4322
242@ = 306.1995
177@ = 1785.824
199@ = -1919.162
221@ = 12.4324
243@ = 294.6196
178@ = 1786.1021
200@ = -1913.833
222@ = 12.4327
244@ = 280.7204
179@ = 1786.806
201@ = -1905.246
223@ = 12.4342
245@ = 262.8214
180@ = 1788.693
202@ = -1902.139
224@ = 12.4348
246@ = 247.161
181@ = 1794.616
203@ = -1899.608
225@ = 12.4398
247@ = 191.0618
182@ = 1799.135
204@ = -1902.488
226@ = 12.4431
248@ = 157.4622
183@ = 1795.674
205@ = -1899.569
227@ = 12.4407
249@ = 162.6424
184@ = 1800.369
206@ = -1907.0031
228@ = 12.4403
250@ = 77.6197
185@ = 1800.826
207@ = -1917.325
229@ = 12.434
251@ = 36.1793
186@ = 1785.85
208@ = -1917.955
230@ = 12.4324
252@ = 287.0602
187@ = 1788.538
209@ = -1927.0909
231@ = 12.428
253@ = 345.1206
188@ = 1787.323
210@ = -1904.11
232@ = 12.4337
254@ = 263.3813
189@ = 1798.39
211@ = -1901.733
233@ = 12.4429
255@ = 142.4208
272@ = 0.01
43@ = 0

:SWEET6_20953
if 
  7 > 43@
goto_if_false @SWEET6_21014
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_21000
delete_car 72@(43@,7i)

:SWEET6_21000
43@ += 1
goto @SWEET6_20953

:SWEET6_21014
43@ = 0

:SWEET6_21021
if 
  22 > 43@
goto_if_false @SWEET6_21082
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_21068
delete_char 80@(43@,22i)

:SWEET6_21068
43@ += 1
goto @SWEET6_21021

:SWEET6_21082
if 
  not does_vehicle_exist 71@
goto_if_false @SWEET6_21138
71@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231
goto @SWEET6_21184

:SWEET6_21138
if 
  not is_car_dead 71@
goto_if_false @SWEET6_21184
set_car_coordinates 71@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231

:SWEET6_21184
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 71@
goto_if_false @SWEET6_21256
warp_char_into_car $scplayer {vehicle} 71@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET6_21256
72@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 72@ {color1} 1 {color2} 0
change_car_colour 73@ {color1} 2 {color2} 1
change_car_colour 74@ {color1} 3 {color2} 2
change_car_colour 75@ {color1} 10 {color2} 3
change_car_colour 76@ {color1} 9 {color2} 4
change_car_colour 77@ {color1} 6 {color2} 5
change_car_colour 78@ {color1} 7 {color2} 6
43@ = 0

:SWEET6_21487
if 
  7 > 43@
goto_if_false @SWEET6_21587
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)
freeze_car_position 72@(43@,7i) {state} True
lock_car_doors 72@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @SWEET6_21487

:SWEET6_21587
freeze_car_position 76@ {state} False
set_car_status 76@ {status} EntityStatus.Physics
set_car_hydraulics 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
set_car_proofs 76@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
101@ = create_char_inside_car 76@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:SWEET6_22153
if 
  21 > 43@
goto_if_false @SWEET6_22231
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)
43@ += 1
goto @SWEET6_22153

:SWEET6_22231
102@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 102@ {heading} 232.5412
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22314
if 
  not is_car_passenger_seat_free 71@ {seat} SeatId.BikeRear
goto_if_false @SWEET6_22314
283@ = get_char_in_car_passenger_seat 71@ {seat} SeatId.BikeRear
delete_char 283@

:SWEET6_22314
preload_beat_track 0
43@ = 0

:SWEET6_22325
if 
  not is_int_lvar_equal_to_constant 43@ == 2
goto_if_false @SWEET6_22359
wait 0
43@ = get_beat_track_status 
goto @SWEET6_22325

:SWEET6_22359
35@ += 1

:SWEET6_22366
if 
  35@ == 2
goto_if_false @SWEET6_22519
do_fade 500 {direction} Fade.In

:SWEET6_22391
if 
  get_fading_status 
goto_if_false @SWEET6_22415
wait 0
goto @SWEET6_22391

:SWEET6_22415
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22510
set_next_desired_move_state MoveState.Walk
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1791.178 {y} -1905.84 {z} 12.3975 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22492
task_enter_car_as_passenger -1 {vehicle} 71@ {time} 5000 {seat} SeatId.BikeRear

:SWEET6_22492
close_sequence_task 49@
perform_sequence_task 102@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_22510
clear_prints 
35@ += 1

:SWEET6_22519
if 
  35@ == 3
goto_if_false @SWEET6_22640
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET6_22626
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22619
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22619
if 
  is_char_in_car 102@ {vehicle} 71@
goto_if_false @SWEET6_22619
35@ += 1
TIMERA = 0

:SWEET6_22619
goto @SWEET6_22640

:SWEET6_22626
35@ += 1
TIMERA = 0

:SWEET6_22640
if 
  35@ == 4
goto_if_false @SWEET6_23234
do_fade 500 {direction} Fade.Out

:SWEET6_22665
if 
  get_fading_status 
goto_if_false @SWEET6_22689
wait 0
goto @SWEET6_22665

:SWEET6_22689
display_hud False
switch_widescreen False
set_fixed_camera_position 1788.516 {y} -1910.318 {z} 14.8901 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1789.355 {y} -1909.843 {z} 14.6269 {switchStyle} SwitchType.JumpCut
display_radar False
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22797
lock_car_doors 71@ {lockStatus} CarLock.LockedPlayerInside
apply_brakes_to_players_car $player1 {state} True
set_car_proofs 71@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SWEET6_22797
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22862
clear_char_tasks_immediately 102@
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22862
if 
  is_car_passenger_seat_free 71@ {seat} SeatId.BikeRear
goto_if_false @SWEET6_22862
warp_char_into_car_as_passenger 102@ {handle} 71@ {seat} SeatId.BikeRear

:SWEET6_22862
269@ = 0.62
270@ = 0.31
271@ = -0.167
if 
  not is_car_dead 71@
goto_if_false @SWEET6_22974
if 
  not is_char_dead 102@
goto_if_false @SWEET6_22974
if 
  is_car_model 71@ {modelId} 567
goto_if_false @SWEET6_22974
clear_char_tasks_immediately 102@
attach_char_to_car 102@ {vehicle} 71@ {xOffset} 269@ {yOffset} 270@ {zOffset} 271@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:SWEET6_22974
49@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HAIR" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "LRGIRL_HURRY" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
if 
  not is_char_dead 102@
goto_if_false @SWEET6_23109
if 
  is_char_attached_to_any_car 102@
goto_if_false @SWEET6_23109
perform_sequence_task 102@ {sequence} 49@

:SWEET6_23109
clear_sequence_task 49@
TIMERA = 0
clear_prints 
$lowrider_level = -1
$lowrider_last_level = -1
if 
  $sw6_mission_attempts == 0
goto_if_false @SWEET6_23169
$lowrider_opposition_skill = 2
goto @SWEET6_23194

:SWEET6_23169
if 
  1 > $lowrider_opposition_skill
goto_if_false @SWEET6_23194
$lowrider_opposition_skill = 1

:SWEET6_23194
do_fade 500 {direction} Fade.In

:SWEET6_23201
if 
  get_fading_status 
goto_if_false @SWEET6_23225
wait 0
goto @SWEET6_23201

:SWEET6_23225
play_beat_track 
35@ += 1

:SWEET6_23234
if 
  35@ == 5
goto_if_false @SWEET6_23348
set_player_control $player1 {state} True
start_new_script @BDISPLY 
start_new_script @LOWGAME 71@ 76@ 102@ 
TIMERA = 0
139@ = 0
133@ = 0
clear_prints 
clear_help 
print_help 'S6_39'
65@ = 0
63@ = 0
TIMERA = 0
35@ += 1

:SWEET6_23348
if 
  35@ == 6
goto_if_false @SWEET6_23391
if 
  $lowrider_game_is_active == 1
goto_if_false @SWEET6_23391
35@ += 1

:SWEET6_23391
if 
  35@ == 7
goto_if_false @SWEET6_24557
if 
  $lowrider_game_is_active == 1
goto_if_false @SWEET6_24550
if 
  135@ == 0
goto_if_false @SWEET6_23868
if or
  139@ > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @SWEET6_23861
133@ += 1
if 
  133@ >= 5
goto_if_false @SWEET6_23502
133@ = 0

:SWEET6_23502
if 
  not is_car_dead 71@
goto_if_false @SWEET6_23532
$x, $y, $z = get_car_coordinates 71@

:SWEET6_23532
if 
  133@ == 0
goto_if_false @SWEET6_23595
set_fixed_camera_position 1803.978 {y} -1909.369 {z} 15.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23595
if 
  133@ == 1
goto_if_false @SWEET6_23658
set_fixed_camera_position 1795.369 {y} -1900.999 {z} 14.1795 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23658
if 
  133@ == 2
goto_if_false @SWEET6_23721
set_fixed_camera_position 1788.793 {y} -1902.99 {z} 13.7203 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23721
if 
  133@ == 3
goto_if_false @SWEET6_23784
set_fixed_camera_position 1789.377 {y} -1912.1949 {z} 14.0671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23784
if 
  133@ == 4
goto_if_false @SWEET6_23847
set_fixed_camera_position 1796.4091 {y} -1912.231 {z} 13.8316 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SWEET6_23847
135@ += 1
139@ = 0

:SWEET6_23861
goto @SWEET6_23892

:SWEET6_23868
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @SWEET6_23892
135@ = 0

:SWEET6_23892
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @SWEET6_24543
$x, $y, $z = get_active_camera_coordinates 
if 
  not is_car_dead 71@
goto_if_false @SWEET6_23956
56@, 57@, 58@ = get_car_coordinates 71@
$heading = get_car_heading 71@

:SWEET6_23956
$heading *= -1.0
46@ = cos $heading
47@ = sin $heading
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@
$x, $y, $z = get_active_camera_point_at 
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
set_lvar_float_to_lvar_float 53@ = 50@
mult_float_lvar_by_float_lvar 53@ *= 46@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 47@
sub_float_lvar_from_float_lvar 53@ -= 48@
set_lvar_float_to_lvar_float 54@ = 50@
mult_float_lvar_by_float_lvar 54@ *= 47@
set_lvar_float_to_lvar_float 48@ = 51@
mult_float_lvar_by_float_lvar 48@ *= 46@
add_float_lvar_to_float_lvar 54@ += 48@
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM CAR = "
save_float_to_debug_file 53@
save_float_to_debug_file 54@
save_float_to_debug_file 52@

:SWEET6_24543
goto @SWEET6_24557

:SWEET6_24550
35@ += 1

:SWEET6_24557
if 
  35@ == 8
goto_if_false @SWEET6_24627
set_player_control $player1 {state} False
$bd_terminate_script = 1
do_fade 500 {direction} Fade.Out

:SWEET6_24596
if 
  get_fading_status 
goto_if_false @SWEET6_24620
wait 0
goto @SWEET6_24596

:SWEET6_24620
35@ = 99

:SWEET6_24627
gosub @SWEET6_32620
if 
  35@ == 99
goto_if_false @SWEET6_24659
gosub @SWEET6_35860

:SWEET6_24659
return 

:SWEET6_24661
if 
  35@ == 0
goto_if_false @SWEET6_24775
stop_beat_track 
clear_prints 
restore_camera_jumpcut 
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 1785.766 {y} -1924.333 {z} 14.4648 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1786.283 {y} -1923.493 {z} 14.3015 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 71@
goto_if_false @SWEET6_24768
reset_vehicle_hydraulics 71@

:SWEET6_24768
35@ += 1

:SWEET6_24775
if 
  35@ == 1
goto_if_false @SWEET6_26263
43@ = 0

:SWEET6_24800
if 
  7 > 43@
goto_if_false @SWEET6_24861
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_24847
delete_car 72@(43@,7i)

:SWEET6_24847
43@ += 1
goto @SWEET6_24800

:SWEET6_24861
43@ = 0

:SWEET6_24868
if 
  22 > 43@
goto_if_false @SWEET6_24929
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_24915
delete_char 80@(43@,22i)

:SWEET6_24915
43@ += 1
goto @SWEET6_24868

:SWEET6_24929
if 
  does_char_exist 102@
goto_if_false @SWEET6_24950
delete_char 102@

:SWEET6_24950
if 
  not does_vehicle_exist 71@
goto_if_false @SWEET6_25006
71@ = create_car 567 {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231
goto @SWEET6_25052

:SWEET6_25006
if 
  not is_car_dead 71@
goto_if_false @SWEET6_25052
set_car_coordinates 71@ {x} 1793.496 {y} -1907.423 {z} 12.3992
set_car_heading 71@ {heading} 181.5231

:SWEET6_25052
72@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
73@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
74@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_car 567 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 534 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 72@ {color1} 1 {color2} 0
change_car_colour 73@ {color1} 2 {color2} 1
change_car_colour 74@ {color1} 3 {color2} 2
change_car_colour 75@ {color1} 10 {color2} 3
change_car_colour 76@ {color1} 9 {color2} 4
change_car_colour 77@ {color1} 6 {color2} 5
change_car_colour 78@ {color1} 7 {color2} 6
43@ = 0

:SWEET6_25283
if 
  7 > 43@
goto_if_false @SWEET6_25383
set_car_coordinates 72@(43@,7i) {x} 141@(43@,7f) {y} 148@(43@,7f) {z} 155@(43@,7f)
set_car_heading 72@(43@,7i) {heading} 162@(43@,7f)
freeze_car_position 72@(43@,7i) {state} True
lock_car_doors 72@(43@,7i) {lockStatus} CarLock.LockoutPlayerOnly
43@ += 1
goto @SWEET6_25283

:SWEET6_25383
freeze_car_position 76@ {state} False
set_car_status 76@ {status} EntityStatus.Physics
set_car_hydraulics 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
set_car_proofs 76@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
80@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
86@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_char PedType.Mission1 {modelId} 116 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_char PedType.Mission1 {modelId} 114 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.Mission1 {modelId} 115 {x} 0.0 {y} 0.0 {z} 0.0
94@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
98@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_char PedType.Mission1 {modelId} 63 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_char PedType.Mission1 {modelId} 41 {x} 0.0 {y} 0.0 {z} 0.0
101@ = create_char_inside_car 76@ {pedType} PedType.Mission1 {modelId} 116
43@ = 0

:SWEET6_25949
if 
  21 > 43@
goto_if_false @SWEET6_26027
set_char_coordinates 80@(43@,22i) {x} 169@(43@,22f) {y} 191@(43@,22f) {z} 213@(43@,22f)
set_char_heading 80@(43@,22i) {heading} 235@(43@,22f)
43@ += 1
goto @SWEET6_25949

:SWEET6_26027
102@ = create_char PedType.Mission1 {modelId} 63 {x} 1788.2729 {y} -1903.364 {z} 12.4345
set_char_heading 102@ {heading} 232.5412
if 
  not is_car_dead 71@
goto_if_false @SWEET6_26136
43@ = get_number_of_passengers 71@
if 
  43@ > 0
goto_if_false @SWEET6_26110
goto @SWEET6_26136

:SWEET6_26110
if 
  not is_char_dead 102@
goto_if_false @SWEET6_26136
warp_char_into_car_as_passenger 102@ {handle} 71@ {seat} SeatId.BikeRear

:SWEET6_26136
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 71@
goto_if_false @SWEET6_26208
warp_char_into_car $scplayer {vehicle} 71@
task_play_anim $scplayer {animationName} "SIT_RELAXED" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SWEET6_26208
load_scene 1791.574 {y} -1911.437 {z} 12.4378
do_fade 1000 {direction} Fade.In

:SWEET6_26232
if 
  get_fading_status 
goto_if_false @SWEET6_26256
wait 0
goto @SWEET6_26232

:SWEET6_26256
35@ += 1

:SWEET6_26263
if 
  35@ == 2
goto_if_false @SWEET6_26381
if 
  not is_char_dead 101@
goto_if_false @SWEET6_26381
49@ = open_sequence_task 
if 
  not is_car_dead 76@
goto_if_false @SWEET6_26325
task_leave_car -1 {vehicle} 76@

:SWEET6_26325
task_go_straight_to_coord -1 {x} 1791.574 {y} -1911.437 {z} 12.4378 {speed} MoveState.Walk {time} 10000
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_26381
if 
  35@ == 3
goto_if_false @SWEET6_26604
if 
  TIMERA > 5000
goto_if_false @SWEET6_26604
set_fixed_camera_position 1795.4301 {y} -1905.0179 {z} 13.6653 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1795.145 {y} -1905.968 {z} 13.5431 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 101@
goto_if_false @SWEET6_26590
clear_char_tasks_immediately 101@
set_char_coordinates 101@ {x} 1795.968 {y} -1909.333 {z} 12.4389
set_char_heading 101@ {heading} 20.3199
49@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 99999
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_26590
TIMERA = 0
35@ += 1

:SWEET6_26604
if 
  35@ == 4
goto_if_false @SWEET6_26934
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_26778
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @SWEET6_26716
set_var_text_label s$audio_string = 'LOWR_CA'
set_var_int_to_constant $audio_sound_file = 22811
start_new_script @AUDIOL 101@ 0 1 1 0 
goto @SWEET6_26757

:SWEET6_26716
set_var_text_label s$audio_string = 'LOWR_CB'
set_var_int_to_constant $audio_sound_file = 22812
start_new_script @AUDIOL 101@ 0 1 1 0 

:SWEET6_26757
TIMERA = 0
35@ += 1
goto @SWEET6_26929

:SWEET6_26778
$lowrider_opposition_skill -= 1
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @SWEET6_26860
set_var_text_label s$audio_string = 'LOWR_DA'
set_var_int_to_constant $audio_sound_file = 22813
start_new_script @AUDIOL 101@ 0 1 1 0 
goto @SWEET6_26901

:SWEET6_26860
set_var_text_label s$audio_string = 'LOWR_DB'
set_var_int_to_constant $audio_sound_file = 22814
start_new_script @AUDIOL 101@ 0 1 1 0 

:SWEET6_26901
TIMERA = 0
35@ += 2
276@ *= -1
TIMERA = 0

:SWEET6_26929
wait 1000

:SWEET6_26934
if 
  35@ == 5
goto_if_false @SWEET6_27091
if or
  $audio_line_is_active == 0
  TIMERA > 3000
goto_if_false @SWEET6_27091
if 
  not is_char_dead 101@
goto_if_false @SWEET6_27091
clear_char_tasks 101@
clear_look_at 101@
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.299 {y} -1917.246 {z} 12.4339 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 76@
goto_if_false @SWEET6_27059
task_enter_car_as_driver -1 {vehicle} 76@ {time} 10000

:SWEET6_27059
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 2

:SWEET6_27091
if 
  35@ == 6
goto_if_false @SWEET6_27252
if or
  $audio_line_is_active == 0
  TIMERA > 3000
goto_if_false @SWEET6_27252
if 
  not is_char_dead 101@
goto_if_false @SWEET6_27252
clear_char_tasks 101@
clear_look_at 101@
set_next_desired_move_state MoveState.Walk
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.299 {y} -1917.246 {z} 12.4339 {speed} MoveState.Walk {time} 10000
if 
  not is_car_dead 76@
goto_if_false @SWEET6_27220
task_enter_car_as_driver -1 {vehicle} 76@ {time} 10000

:SWEET6_27220
close_sequence_task 49@
perform_sequence_task 101@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
35@ += 1

:SWEET6_27252
if 
  35@ == 7
goto_if_false @SWEET6_27367
if 
  TIMERA > 3000
goto_if_false @SWEET6_27367
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_27329
35@ += 1
TIMERA = 0
goto @SWEET6_27367

:SWEET6_27329
do_fade 500 {direction} Fade.Out

:SWEET6_27336
if 
  get_fading_status 
goto_if_false @SWEET6_27360
wait 0
goto @SWEET6_27336

:SWEET6_27360
35@ = 99

:SWEET6_27367
if 
  35@ == 8
goto_if_false @SWEET6_27399
TIMERA = 0
35@ += 1

:SWEET6_27399
if 
  35@ == 9
goto_if_false @SWEET6_27850
do_fade 500 {direction} Fade.Out

:SWEET6_27424
if 
  get_fading_status 
goto_if_false @SWEET6_27448
wait 0
goto @SWEET6_27424

:SWEET6_27448
43@ = 0

:SWEET6_27455
if 
  7 > 43@
goto_if_false @SWEET6_27516
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_27502
delete_car 72@(43@,7i)

:SWEET6_27502
43@ += 1
goto @SWEET6_27455

:SWEET6_27516
43@ = 0

:SWEET6_27523
if 
  22 > 43@
goto_if_false @SWEET6_27584
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_27570
delete_char 80@(43@,22i)

:SWEET6_27570
43@ += 1
goto @SWEET6_27523

:SWEET6_27584
if 
  does_char_exist 102@
goto_if_false @SWEET6_27605
delete_char 102@

:SWEET6_27605
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 534
remove_animation "LOWRIDER"
if 
  not is_car_dead 71@
goto_if_false @SWEET6_27738
reset_vehicle_hydraulics 71@
clear_area 1784.757 {y} -1890.923 {z} 12.399 {radius} 25.0 {clearParticles} True
set_car_coordinates 71@ {x} 1784.757 {y} -1889.923 {z} 12.399
set_car_heading 71@ {heading} 90.0
freeze_car_position 71@ {state} True

:SWEET6_27738
wait 500
load_cutscene 'SWEET6B'

:SWEET6_27754
if 
  not has_cutscene_loaded 
goto_if_false @SWEET6_27778
wait 0
goto @SWEET6_27754

:SWEET6_27778
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET6_27787
if 
  not has_cutscene_finished 
goto_if_false @SWEET6_27811
wait 0
goto @SWEET6_27787

:SWEET6_27811
clear_cutscene 
do_fade 0 {direction} Fade.Out

:SWEET6_27819
if 
  get_fading_status 
goto_if_false @SWEET6_27843
wait 0
goto @SWEET6_27819

:SWEET6_27843
35@ = 99

:SWEET6_27850
if 
  35@ == 99
goto_if_false @SWEET6_28493
43@ = 0

:SWEET6_27875
if 
  7 > 43@
goto_if_false @SWEET6_27936
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_27922
delete_car 72@(43@,7i)

:SWEET6_27922
43@ += 1
goto @SWEET6_27875

:SWEET6_27936
43@ = 0

:SWEET6_27943
if 
  22 > 43@
goto_if_false @SWEET6_28004
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_27990
delete_char 80@(43@,22i)

:SWEET6_27990
43@ += 1
goto @SWEET6_27943

:SWEET6_28004
if 
  does_char_exist 102@
goto_if_false @SWEET6_28025
delete_char 102@

:SWEET6_28025
request_model 534
request_model 567
request_model 114
request_model 115
request_model 116

:SWEET6_28047
if or
  not has_model_loaded 534
  not has_model_loaded 567
  not has_model_loaded 114
  not has_model_loaded 115
  not has_model_loaded 116
goto_if_false @SWEET6_28091
wait 0
goto @SWEET6_28047

:SWEET6_28091
284@ = create_car 534 {x} 1787.266 {y} -1925.162 {z} 12.39
set_car_heading 284@ {heading} 24.6517
285@ = create_car 567 {x} 1799.9189 {y} -1926.14 {z} 12.3895
set_car_heading 285@ {heading} 341.4824
286@ = create_char_inside_car 284@ {pedType} PedType.CivMale {modelId} 114
287@ = create_char_inside_car 285@ {pedType} PedType.CivMale {modelId} 114
288@ = create_char PedType.CivMale {modelId} 114 {x} 1796.7 {y} -1915.7419 {z} 12.3946
set_char_heading 288@ {heading} 80.7
289@ = create_char PedType.CivMale {modelId} 115 {x} 1791.623 {y} -1919.621 {z} 12.3927
set_char_heading 289@ {heading} 10.9
290@ = create_char PedType.CivMale {modelId} 116 {x} 1786.067 {y} -1911.462 {z} 12.3937
set_char_heading 290@ {heading} 120.0
mark_model_as_no_longer_needed 534
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
mark_char_as_no_longer_needed 288@
mark_char_as_no_longer_needed 289@
mark_char_as_no_longer_needed 290@
mark_char_as_no_longer_needed 286@
mark_char_as_no_longer_needed 287@
mark_car_as_no_longer_needed 284@
mark_car_as_no_longer_needed 285@
if 
  not is_car_dead 71@
goto_if_false @SWEET6_28378
freeze_car_position 71@ {state} True

:SWEET6_28378
load_scene 1793.989 {y} -1908.417 {z} 12.3995
do_fade 1500 {direction} Fade.In

:SWEET6_28402
if 
  get_fading_status 
goto_if_false @SWEET6_28426
wait 0
goto @SWEET6_28402

:SWEET6_28426
if 
  is_int_var_greater_than_int_var $lowrider_pscore > $lowrider_oscore
goto_if_false @SWEET6_28459
36@ = 1
goto @SWEET6_28482

:SWEET6_28459
print_now 'S6_33' {time} 5000 {flag} 1
37@ = 1

:SWEET6_28482
wait 0
gosub @SWEET6_35860

:SWEET6_28493
gosub @SWEET6_32620
return 

:SWEET6_28502
if 
is_ps2_keyboard_key_just_pressed 52
goto_if_false @SWEET6_28527
272@ += 0.01

:SWEET6_28527
if 
is_ps2_keyboard_key_just_pressed 53
goto_if_false @SWEET6_28552
272@ += -0.01

:SWEET6_28552
if 
  does_vehicle_exist 71@
goto_if_false @SWEET6_28607
if 
  is_car_dead 71@
goto_if_false @SWEET6_28607
print_now 'S6_34' {time} 5000 {flag} 1
37@ = 1

:SWEET6_28607
if 
  is_player_playing $player1
goto_if_false @SWEET6_28784
if 
  34@ > 2
goto_if_false @SWEET6_28784
if 
  291@ == 0
goto_if_false @SWEET6_28725
if 
  locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 125.0 {yRadius} 125.0 {drawSphere} False
goto_if_false @SWEET6_28718
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
291@ = 1

:SWEET6_28718
goto @SWEET6_28784

:SWEET6_28725
if 
  not locate_char_any_means_2d $scplayer {x} 1793.068 {y} -1904.254 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SWEET6_28784
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
291@ = 0

:SWEET6_28784
return 
if 
  not is_car_dead 71@
goto_if_false @SWEET6_28844
if 
  not is_char_dead 102@
goto_if_false @SWEET6_28844
attach_char_to_car 102@ {vehicle} 71@ {xOffset} 269@ {yOffset} 270@ {zOffset} 271@ {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:SWEET6_28844
return 

:SWEET6_28846
if 
  296@ == 0
goto_if_false @SWEET6_28904
292@ = 0.0
293@ = 0.0
294@ = 0.0
295@ = 0.0

:SWEET6_28904
if 
  296@ == 1
goto_if_false @SWEET6_28962
292@ = 0.0
293@ = 0.0
294@ = 0.0
295@ = 1.0

:SWEET6_28962
if 
  296@ == 2
goto_if_false @SWEET6_29020
292@ = 0.0
293@ = 0.0
294@ = 1.0
295@ = 0.0

:SWEET6_29020
if 
  296@ == 3
goto_if_false @SWEET6_29078
292@ = 0.0
293@ = 0.0
294@ = 1.0
295@ = 1.0

:SWEET6_29078
if 
  296@ == 4
goto_if_false @SWEET6_29136
292@ = 0.0
293@ = 1.0
294@ = 0.0
295@ = 0.0

:SWEET6_29136
if 
  296@ == 5
goto_if_false @SWEET6_29194
292@ = 0.0
293@ = 1.0
294@ = 0.0
295@ = 1.0

:SWEET6_29194
if 
  296@ == 6
goto_if_false @SWEET6_29252
292@ = 0.0
293@ = 1.0
294@ = 1.0
295@ = 0.0

:SWEET6_29252
if 
  296@ == 7
goto_if_false @SWEET6_29310
292@ = 0.0
293@ = 1.0
294@ = 1.0
295@ = 1.0

:SWEET6_29310
if 
  296@ == 8
goto_if_false @SWEET6_29368
292@ = 1.0
293@ = 0.0
294@ = 0.0
295@ = 0.0

:SWEET6_29368
if 
  296@ == 9
goto_if_false @SWEET6_29426
292@ = 1.0
293@ = 0.0
294@ = 0.0
295@ = 1.0

:SWEET6_29426
if 
  296@ == 10
goto_if_false @SWEET6_29484
292@ = 1.0
293@ = 0.0
294@ = 1.0
295@ = 0.0

:SWEET6_29484
if 
  296@ == 11
goto_if_false @SWEET6_29542
292@ = 1.0
293@ = 0.0
294@ = 1.0
295@ = 1.0

:SWEET6_29542
if 
  296@ == 12
goto_if_false @SWEET6_29600
292@ = 1.0
293@ = 1.0
294@ = 0.0
295@ = 0.0

:SWEET6_29600
if 
  296@ == 13
goto_if_false @SWEET6_29658
292@ = 1.0
293@ = 1.0
294@ = 0.0
295@ = 1.0

:SWEET6_29658
if 
  296@ == 14
goto_if_false @SWEET6_29716
292@ = 1.0
293@ = 1.0
294@ = 1.0
295@ = 0.0

:SWEET6_29716
if 
  296@ == 15
goto_if_false @SWEET6_29774
292@ = 1.0
293@ = 1.0
294@ = 1.0
295@ = 1.0

:SWEET6_29774
return 

:SWEET6_29776
if 
  300 > 136@
goto_if_false @SWEET6_29842
257@ = 1.0
260@ = 1.0
263@ = 0.0
266@ = 0.0
goto @SWEET6_29915

:SWEET6_29842
if 
  136@ > 500
goto_if_false @SWEET6_29875
136@ = 0
goto @SWEET6_29915

:SWEET6_29875
257@ = 0.0
260@ = 0.0
263@ = 0.0
266@ = 0.0

:SWEET6_29915
if 
  137@ > 2000
goto_if_false @SWEET6_29989
296@ = generate_random_int_in_range 0 {max} 16
gosub @SWEET6_28846
set_lvar_float_to_lvar_float 258@ = 294@
set_lvar_float_to_lvar_float 261@ = 292@
set_lvar_float_to_lvar_float 264@ = 295@
set_lvar_float_to_lvar_float 267@ = 293@
137@ = 0

:SWEET6_29989
if 
  not is_car_dead 72@
goto_if_false @SWEET6_30131
if 
  does_car_have_hydraulics 72@
goto_if_false @SWEET6_30131
control_car_hydraulics 72@ {_p2} 260@ {_p3} 266@ {_p4} 257@ {_p5} 263@
$x, $y, $z = get_car_coordinates 72@
set_lvar_float_to_lvar_float 50@ = 141@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 148@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 72@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_30131
if 
  not is_car_dead 75@
goto_if_false @SWEET6_30273
if 
  does_car_have_hydraulics 75@
goto_if_false @SWEET6_30273
control_car_hydraulics 75@ {_p2} 261@ {_p3} 267@ {_p4} 258@ {_p5} 264@
$x, $y, $z = get_car_coordinates 75@
set_lvar_float_to_lvar_float 50@ = 144@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 151@
sub_float_var_from_float_lvar 51@ -= $y
mult_float_lvar_by_float_lvar 50@ *= 272@
mult_float_lvar_by_float_lvar 51@ *= 272@
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:SWEET6_30273
switch_start 39@ {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @SWEET6_32618 {caseNum1} 0 {caseLabel1} @SWEET6_30466 {caseNum2} 1 {caseLabel2} @SWEET6_30586 {caseNum3} 2 {caseLabel3} @SWEET6_30706 {caseNum4} 3 {caseLabel4} @SWEET6_30822 {caseNum5} 4 {caseLabel5} @SWEET6_30938 {caseNum6} 5 {caseLabel6} @SWEET6_31053 {caseNum7} 6 {caseLabel7} @SWEET6_31169
switch_continued 7 {caseLabel1} @SWEET6_31285 {caseNum2} 8 {caseLabel2} @SWEET6_31401 {caseNum3} 9 {caseLabel3} @SWEET6_31517 {caseNum4} 10 {caseLabel4} @SWEET6_31637 {caseNum5} 11 {caseLabel5} @SWEET6_31820 {caseNum6} 12 {caseLabel6} @SWEET6_31936 {caseNum7} 13 {caseLabel7} @SWEET6_32052 {caseNum8} 14 {caseLabel8} @SWEET6_32168 {caseNum9} 15 {caseLabel9} @SWEET6_32284
switch_continued 16 {caseLabel1} @SWEET6_32400 {caseNum2} 17 {caseLabel2} @SWEET6_32509 {caseNum3} -1 {caseLabel3} @SWEET6_32618 {caseNum4} -1 {caseLabel4} @SWEET6_32618 {caseNum5} -1 {caseLabel5} @SWEET6_32618 {caseNum6} -1 {caseLabel6} @SWEET6_32618 {caseNum7} -1 {caseLabel7} @SWEET6_32618 {caseNum8} -1 {caseLabel8} @SWEET6_32618 {caseNum9} -1 {caseLabel9} @SWEET6_32618

:SWEET6_30466
if 
  not is_char_dead 80@
goto_if_false @SWEET6_30579
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30579
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30579
goto @SWEET6_32618

:SWEET6_30586
if 
  not is_char_dead 81@
goto_if_false @SWEET6_30699
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30699
49@ = open_sequence_task 
task_play_anim -1 {animationName} "F_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30699
goto @SWEET6_32618

:SWEET6_30706
if 
  not is_char_dead 82@
goto_if_false @SWEET6_30815
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30815
49@ = open_sequence_task 
if 
  not is_char_dead 83@
goto_if_false @SWEET6_30790
task_chat_with_char -1 {other} 83@ {leadSpeaker} True {_p4} 1
goto @SWEET6_30797

:SWEET6_30790
task_pause -1 {time} 1000

:SWEET6_30797
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30815
goto @SWEET6_32618

:SWEET6_30822
if 
  not is_char_dead 83@
goto_if_false @SWEET6_30931
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_30931
49@ = open_sequence_task 
if 
  not is_char_dead 82@
goto_if_false @SWEET6_30906
task_chat_with_char -1 {other} 82@ {leadSpeaker} False {_p4} 1
goto @SWEET6_30913

:SWEET6_30906
task_pause -1 {time} 1000

:SWEET6_30913
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_30931
goto @SWEET6_32618

:SWEET6_30938
if 
  not is_char_dead 84@
goto_if_false @SWEET6_31046
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31046
49@ = open_sequence_task 
task_play_anim -1 {animationName} "CAR_HOOKERTALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31046
goto @SWEET6_32618

:SWEET6_31053
if 
  not is_char_dead 85@
goto_if_false @SWEET6_31162
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31162
49@ = open_sequence_task 
if 
  not is_char_dead 86@
goto_if_false @SWEET6_31137
task_chat_with_char -1 {other} 86@ {leadSpeaker} False {_p4} 1
goto @SWEET6_31144

:SWEET6_31137
task_pause -1 {time} 1000

:SWEET6_31144
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31162
goto @SWEET6_32618

:SWEET6_31169
if 
  not is_char_dead 86@
goto_if_false @SWEET6_31278
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31278
49@ = open_sequence_task 
if 
  not is_char_dead 85@
goto_if_false @SWEET6_31253
task_chat_with_char -1 {other} 85@ {leadSpeaker} True {_p4} 1
goto @SWEET6_31260

:SWEET6_31253
task_pause -1 {time} 1000

:SWEET6_31260
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31278
goto @SWEET6_32618

:SWEET6_31285
if 
  not is_char_dead 87@
goto_if_false @SWEET6_31394
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31394
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31394
goto @SWEET6_32618

:SWEET6_31401
if 
  not is_char_dead 88@
goto_if_false @SWEET6_31510
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31510
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31510
goto @SWEET6_32618

:SWEET6_31517
if 
  not is_char_dead 89@
goto_if_false @SWEET6_31630
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31630
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31630
goto @SWEET6_32618

:SWEET6_31637
if 
  not is_char_dead 90@
goto_if_false @SWEET6_31813
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31813
49@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "WOMAN_IDLESTANCE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31813
goto @SWEET6_32618

:SWEET6_31820
if 
  not is_char_dead 91@
goto_if_false @SWEET6_31929
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_31929
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_31929
goto @SWEET6_32618

:SWEET6_31936
if 
  not is_char_dead 92@
goto_if_false @SWEET6_32045
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32045
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32045
goto @SWEET6_32618

:SWEET6_32052
if 
  not is_char_dead 93@
goto_if_false @SWEET6_32161
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32161
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32161
goto @SWEET6_32618

:SWEET6_32168
if 
  not is_char_dead 94@
goto_if_false @SWEET6_32277
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32277
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32277
goto @SWEET6_32618

:SWEET6_32284
if 
  not is_char_dead 95@
goto_if_false @SWEET6_32393
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32393
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32393
goto @SWEET6_32618

:SWEET6_32400
if 
  not is_char_dead 96@
goto_if_false @SWEET6_32502
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32502
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32502
goto @SWEET6_32618

:SWEET6_32509
if 
  not is_char_dead 97@
goto_if_false @SWEET6_32611
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32611
49@ = open_sequence_task 
task_play_anim -1 {animationName} "TAP_HAND" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32611
goto @SWEET6_32618

:SWEET6_32618
return 

:SWEET6_32620
switch_start 39@ {numCases} 21 {hasDefaultCase} 0 {defaultLabel} @SWEET6_35277 {caseNum1} 0 {caseLabel1} @SWEET6_32813 {caseNum2} 1 {caseLabel2} @SWEET6_32933 {caseNum3} 2 {caseLabel3} @SWEET6_33049 {caseNum4} 3 {caseLabel4} @SWEET6_33165 {caseNum5} 4 {caseLabel5} @SWEET6_33285 {caseNum6} 5 {caseLabel6} @SWEET6_33405 {caseNum7} 6 {caseLabel7} @SWEET6_33521
switch_continued 7 {caseLabel1} @SWEET6_33641 {caseNum2} 8 {caseLabel2} @SWEET6_33757 {caseNum3} 9 {caseLabel3} @SWEET6_33873 {caseNum4} 10 {caseLabel4} @SWEET6_33993 {caseNum5} 11 {caseLabel5} @SWEET6_34109 {caseNum6} 12 {caseLabel6} @SWEET6_34229 {caseNum7} 13 {caseLabel7} @SWEET6_34349 {caseNum8} 14 {caseLabel8} @SWEET6_34465 {caseNum9} 15 {caseLabel9} @SWEET6_34581
switch_continued 16 {caseLabel1} @SWEET6_34697 {caseNum2} 17 {caseLabel2} @SWEET6_34813 {caseNum3} 18 {caseLabel3} @SWEET6_34929 {caseNum4} 19 {caseLabel4} @SWEET6_35045 {caseNum5} 20 {caseLabel5} @SWEET6_35161 {caseNum6} -1 {caseLabel6} @SWEET6_35277 {caseNum7} -1 {caseLabel7} @SWEET6_35277 {caseNum8} -1 {caseLabel8} @SWEET6_35277 {caseNum9} -1 {caseLabel9} @SWEET6_35277

:SWEET6_32813
if 
  not is_char_dead 80@
goto_if_false @SWEET6_32926
43@ = get_script_task_status 80@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_32926
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 80@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_32926
goto @SWEET6_35277

:SWEET6_32933
if 
  not is_char_dead 81@
goto_if_false @SWEET6_33042
43@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33042
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 81@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33042
goto @SWEET6_35277

:SWEET6_33049
if 
  not is_char_dead 82@
goto_if_false @SWEET6_33158
43@ = get_script_task_status 82@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33158
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 82@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33158
goto @SWEET6_35277

:SWEET6_33165
if 
  not is_char_dead 83@
goto_if_false @SWEET6_33278
43@ = get_script_task_status 83@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33278
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 83@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33278
goto @SWEET6_35277

:SWEET6_33285
if 
  not is_char_dead 84@
goto_if_false @SWEET6_33398
43@ = get_script_task_status 84@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33398
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 84@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33398
goto @SWEET6_35277

:SWEET6_33405
if 
  not is_char_dead 85@
goto_if_false @SWEET6_33514
43@ = get_script_task_status 85@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33514
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 85@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33514
goto @SWEET6_35277

:SWEET6_33521
if 
  not is_char_dead 86@
goto_if_false @SWEET6_33634
43@ = get_script_task_status 86@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33634
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 86@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33634
goto @SWEET6_35277

:SWEET6_33641
if 
  not is_char_dead 87@
goto_if_false @SWEET6_33750
43@ = get_script_task_status 87@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33750
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 87@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33750
goto @SWEET6_35277

:SWEET6_33757
if 
  not is_char_dead 88@
goto_if_false @SWEET6_33866
43@ = get_script_task_status 88@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33866
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 88@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33866
goto @SWEET6_35277

:SWEET6_33873
if 
  not is_char_dead 89@
goto_if_false @SWEET6_33986
43@ = get_script_task_status 89@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_33986
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 89@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_33986
goto @SWEET6_35277

:SWEET6_33993
if 
  not is_char_dead 90@
goto_if_false @SWEET6_34102
43@ = get_script_task_status 90@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34102
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 90@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34102
goto @SWEET6_35277

:SWEET6_34109
if 
  not is_char_dead 91@
goto_if_false @SWEET6_34222
43@ = get_script_task_status 91@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34222
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 91@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34222
goto @SWEET6_35277

:SWEET6_34229
if 
  not is_char_dead 92@
goto_if_false @SWEET6_34342
43@ = get_script_task_status 92@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34342
49@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 92@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34342
goto @SWEET6_35277

:SWEET6_34349
if 
  not is_char_dead 93@
goto_if_false @SWEET6_34458
43@ = get_script_task_status 93@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34458
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 93@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34458
goto @SWEET6_35277

:SWEET6_34465
if 
  not is_char_dead 94@
goto_if_false @SWEET6_34574
43@ = get_script_task_status 94@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34574
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_B_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 94@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34574
goto @SWEET6_35277

:SWEET6_34581
if 
  not is_char_dead 95@
goto_if_false @SWEET6_34690
43@ = get_script_task_status 95@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34690
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 95@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34690
goto @SWEET6_35277

:SWEET6_34697
if 
  not is_char_dead 96@
goto_if_false @SWEET6_34806
43@ = get_script_task_status 96@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34806
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_C_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 96@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34806
goto @SWEET6_35277

:SWEET6_34813
if 
  not is_char_dead 97@
goto_if_false @SWEET6_34922
43@ = get_script_task_status 97@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_34922
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 97@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_34922
goto @SWEET6_35277

:SWEET6_34929
if 
  not is_char_dead 98@
goto_if_false @SWEET6_35038
43@ = get_script_task_status 98@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35038
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 98@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_35038
goto @SWEET6_35277

:SWEET6_35045
if 
  not is_char_dead 99@
goto_if_false @SWEET6_35154
43@ = get_script_task_status 99@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35154
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 99@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_35154
goto @SWEET6_35277

:SWEET6_35161
if 
  not is_char_dead 100@
goto_if_false @SWEET6_35270
43@ = get_script_task_status 100@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @SWEET6_35270
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RAP_A_LOOP" {animationFile} "LOWRIDER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task 100@ {sequence} 49@
clear_sequence_task 49@

:SWEET6_35270
goto @SWEET6_35277

:SWEET6_35277
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.9 {heightScale} 2.4
set_text_colour 81 {green} 25 {blue} 29 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 

:SWEET6_35405
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @SWEET6_35508 {caseNum1} 3 {caseLabel1} @SWEET6_35468 {caseNum2} -1 {caseLabel2} @SWEET6_35548 {caseNum3} -1 {caseLabel3} @SWEET6_35548 {caseNum4} -1 {caseLabel4} @SWEET6_35548 {caseNum5} -1 {caseLabel5} @SWEET6_35548 {caseNum6} -1 {caseLabel6} @SWEET6_35548 {caseNum7} -1 {caseLabel7} @SWEET6_35548

:SWEET6_35468
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 173.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @SWEET6_35548

:SWEET6_35508
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 157.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @SWEET6_35548

:SWEET6_35548
gosub @SWEET6_35805
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'WOF_04'
gosub @SWEET6_35805
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} 276@
gosub @SWEET6_35805
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'BJ_02'
gosub @SWEET6_35805
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} 274@
gosub @SWEET6_35805
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @SWEET6_35805
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} 275@
return 

:SWEET6_35805
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:SWEET6_35860
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:SWEET6_35918
remove_blip $mod_garage_blip
$stop_gargae_for_neil = 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
deactivate_garage 'MODLAST'
deactivate_garage 'BODLAWN'
return 

:SWEET6_35970
remove_blip $mod_garage_blip
$mod_garage_blip = add_short_range_sprite_blip_for_coord 2644.252 {y} -2028.246 {z} 12.5547 {sprite} RadarSprite.ModGarage
remove_blip $mod_garage1
$mod_garage1 = add_short_range_sprite_blip_for_coord 1043.4 {y} -1025.3 {z} 34.4 {sprite} RadarSprite.ModGarage
remove_blip $sweet_contact_blip
activate_garage 'MODLAST'
activate_garage 'BODLAWN'
276@ *= 2
print_with_number_big 'M_PASS' {num} 276@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 276@
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
clear_wanted_level $player1
$flag_sweet_mission_counter += 1
$lowrider_minigame_unlocked = 1
$stop_gargae_for_neil = 0
register_mission_passed 'SWEET_6'
switch_car_generator $sw6_car_gen1 {amount} 101
return 

:SWEET6_36144
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_audio_zone 'LOWRIDE' {state} False
if 
  does_vehicle_exist 71@
goto_if_false @SWEET6_36296
if 
  not is_car_dead 71@
goto_if_false @SWEET6_36296
set_car_status 71@ {status} EntityStatus.Abandoned
freeze_car_position 71@ {state} False
set_car_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_player_playing $player1
goto_if_false @SWEET6_36257
apply_brakes_to_players_car $player1 {state} False

:SWEET6_36257
lock_car_doors 71@ {lockStatus} CarLock.Unlocked
if 
  is_char_in_car $scplayer {vehicle} 71@
goto_if_false @SWEET6_36296
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 71@

:SWEET6_36296
43@ = 0

:SWEET6_36303
if 
  7 > 43@
goto_if_false @SWEET6_36487
if 
  does_vehicle_exist 72@(43@,7i)
goto_if_false @SWEET6_36473
if 
  not is_car_dead 72@(43@,7i)
goto_if_false @SWEET6_36464
if or
  43@ == 0
  43@ == 3
  43@ == 4
goto_if_false @SWEET6_36442
if 
  does_car_have_hydraulics 72@(43@,7i)
goto_if_false @SWEET6_36442
control_car_hydraulics 72@(43@,7i) {_p2} 0.0 {_p3} 0.0 {_p4} 0.0 {_p5} 0.0

:SWEET6_36442
set_car_status 72@(43@,7i) {status} EntityStatus.Simple
set_car_hydraulics 72@(43@,7i) {state} False

:SWEET6_36464
mark_car_as_no_longer_needed 72@(43@,7i)

:SWEET6_36473
43@ += 1
goto @SWEET6_36303

:SWEET6_36487
43@ = 0

:SWEET6_36494
if 
  22 > 43@
goto_if_false @SWEET6_36575
if 
  does_char_exist 80@(43@,22i)
goto_if_false @SWEET6_36561
if 
  not is_char_dead 80@(43@,22i)
goto_if_false @SWEET6_36552

:SWEET6_36552
mark_char_as_no_longer_needed 80@(43@,22i)

:SWEET6_36561
43@ += 1
goto @SWEET6_36494

:SWEET6_36575
if 
  does_char_exist 79@
goto_if_false @SWEET6_36596
mark_char_as_no_longer_needed 79@

:SWEET6_36596
if 
  does_char_exist 102@
goto_if_false @SWEET6_36617
mark_char_as_no_longer_needed 102@

:SWEET6_36617
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 534
remove_animation "CAR"
remove_animation "GANGS"
remove_animation "LOWRIDER"
remove_blip 105@
remove_blip 106@
clear_onscreen_counter $lowrider_pscore
clear_onscreen_counter $lowrider_oscore
display_radar True
43@ = get_beat_track_status 
if 
  not is_int_lvar_equal_to_constant 43@ == 0
goto_if_false @SWEET6_36733
stop_beat_track 

:SWEET6_36733
dont_suppress_car_model 567
$bd_terminate_script = 1
remove_decision_maker 66@
remove_decision_maker 67@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 20---------------
// Originally: Los Sepulcros

:SWEET7
script_name 'SWEET7'
gosub @SWEET7_54
if 
  has_deatharrest_been_executed 
goto_if_false @SWEET7_38
gosub @SWEET7_32404

:SWEET7_38
gosub @SWEET7_32503
terminate_this_script 
546@ = 0

:SWEET7_54
register_mission_given 
load_mission_text 'SWEET7'
$onmission = 1
wait 0
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out
force_weather_now WeatherType.SunnyLa

:SWEET7_104
if 
  get_fading_status 
goto_if_false @SWEET7_128
wait 0
goto @SWEET7_104

:SWEET7_128
load_cutscene 'SWEET7A'

:SWEET7_139
if 
  not has_cutscene_loaded 
goto_if_false @SWEET7_163
wait 0
goto @SWEET7_139

:SWEET7_163
clear_area 2508.9751 {y} -1671.537 {z} 12.3853 {radius} 500.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:SWEET7_196
if 
  not has_cutscene_finished 
goto_if_false @SWEET7_220
wait 0
goto @SWEET7_196

:SWEET7_220
do_fade 0 {direction} Fade.Out

:SWEET7_226
if 
  get_fading_status 
goto_if_false @SWEET7_250
wait 0
goto @SWEET7_226

:SWEET7_250
clear_cutscene 
release_weather 
wait 0
set_char_coordinates $scplayer {x} 2515.207 {y} -1674.0861 {z} 12.7552
set_char_heading $scplayer {heading} 54.1779
load_special_character 1 {modelName} 'SWEET'
request_model 492
request_model 68
request_model 12
request_model 445
request_model 543
request_model 352
request_model 346
request_model 349
request_model 104
request_model 103
request_model 102
request_model 107
request_model 106
request_model 105
request_animation "GRAVEYARD"
request_animation "SMOKING"
load_all_models_now 

:SWEET7_389
if or
  not has_special_character_loaded 1
  not has_model_loaded 68
  not has_model_loaded 12
  not has_model_loaded 445
  not has_model_loaded 543
goto_if_false @SWEET7_433
wait 0
goto @SWEET7_389

:SWEET7_433
if or
  not has_model_loaded 346
  not has_model_loaded 492
  not has_model_loaded 352
  not has_model_loaded 349
goto_if_false @SWEET7_475
wait 0
goto @SWEET7_433

:SWEET7_475
if or
  not has_model_loaded 104
  not has_model_loaded 103
  not has_model_loaded 102
goto_if_false @SWEET7_509
wait 0
goto @SWEET7_475

:SWEET7_509
if or
  not has_model_loaded 107
  not has_model_loaded 106
  not has_model_loaded 105
  not has_animation_loaded "GRAVEYARD"
  not has_animation_loaded "SMOKING"
goto_if_false @SWEET7_567
wait 0
goto @SWEET7_509

:SWEET7_567
wait 500
302@ = 0
286@ = 0
285@ = 0
278@ = 0
279@ = 0
280@ = 0
276@ = 0
277@ = 0
$sw7_funeraltimer = 0
275@ = 0
73@ = 0
74@ = 0
274@ = 0
133@ = 0
38@ = 0
37@ = 0
53@ = 0
139@ = 0
54@ = 0
55@ = -13
61@ = 0
56@ = 0
57@ = 0
58@ = 0
62@ = 0
63@ = 0
64@ = 0
303@ = 0
69@ = 0
71@ = 0
132@ = 0
123@ = 0
135@ = 806.4608
136@ = -1129.844
137@ = 952.2434
138@ = -1051.8409
141@ = 931.9752
151@ = -1062.447
161@ = 23.6757
171@ = 921.2714
181@ = -1064.736
191@ = 23.327
201@ = 920.3427
211@ = -1061.403
221@ = 23.6757
231@ = 921.269
241@ = -1081.521
251@ = 23.623
142@ = 922.6375
152@ = -1122.282
162@ = 23.0028
143@ = 899.537
153@ = -1114.694
163@ = 23.232
172@ = 913.2869
182@ = -1092.168
192@ = 23.1942
202@ = 911.2869
212@ = -1092.168
222@ = 22.1942
232@ = 914.2869
242@ = -1092.168
252@ = 25.1942
173@ = 886.0813
183@ = -1114.899
193@ = 22.9879
203@ = 883.5623
213@ = -1112.9399
223@ = 23.0419
233@ = 881.4856
243@ = -1116.985
253@ = 23.0419
144@ = 907.4198
154@ = -1101.579
164@ = 23.2969
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
$sw7_funeraltimer = 240000
switch_roads_off 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
switch_ped_roads_off 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
35@ = get_zone_gang_strength 'GAN1' {gangId} GangType.Grove
36@ = get_zone_gang_strength 'GAN2' {gangId} GangType.Grove
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
53@ = 0
287@ = get_max_wanted_level 
clear_area 954.4976 {y} -1103.594 {z} 22.8015 {radius} 10.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
clear_area 2508.084 {y} -1671.1899 {z} 12.3794 {radius} 500.0 {clearParticles} True
78@ = create_car 492 {x} 2508.084 {y} -1671.1899 {z} 12.3794
set_car_heading 78@ {heading} 354.4729
set_can_burst_car_tyres 78@ {state} False
change_car_colour 78@ {color1} 59 {color2} 34
open_car_door 78@ {door} CarDoor.RightFrontDoor
79@ = create_car 445 {x} 925.7109 {y} -1122.968 {z} 22.9909
set_car_heading 79@ {heading} 330.8056
change_car_colour 79@ {color1} 59 {color2} 34
set_can_burst_car_tyres 79@ {state} False
set_car_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_car_proofs 79@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 79@ {lockStatus} CarLock.Locked
set_fading_colour 0 {g} 0 {b} 0
set_camera_behind_player 
92@ = load_char_decision_maker DecisionMakerType.Empty
93@ = load_char_decision_maker DecisionMakerType.Empty
94@ = load_char_decision_maker DecisionMakerType.Tough
95@ = load_char_decision_maker DecisionMakerType.Weak
105@ = create_char PedType.Mission1 {modelId} 102 {x} 885.1994 {y} -1075.546 {z} 23.3273
set_char_decision_maker 105@ {handleOrTemplate} 92@
set_char_heading 105@ {heading} 170.0
set_char_accuracy 105@ {accuracy} 90
550@ = get_char_health 105@
set_char_health 105@ {health} 120
107@ = create_char PedType.Mission1 {modelId} 103 {x} 883.2532 {y} -1075.496 {z} 23.3273
set_char_decision_maker 107@ {handleOrTemplate} 92@
set_char_heading 107@ {heading} 175.0
set_char_accuracy 107@ {accuracy} 90
set_char_health 107@ {health} 120
109@ = create_char PedType.Mission1 {modelId} 103 {x} 881.4261 {y} -1077.114 {z} 23.3203
set_char_decision_maker 109@ {handleOrTemplate} 92@
set_char_heading 109@ {heading} 275.0
set_char_accuracy 109@ {accuracy} 90
set_char_health 109@ {health} 120
if 
  not is_char_dead 105@
goto_if_false @SWEET7_1917
give_weapon_to_char 105@ {weaponType} WeaponType.Pistol {ammo} 2000
task_play_anim 105@ {animationName} "MRNM_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_1917
if 
  not is_char_dead 107@
goto_if_false @SWEET7_1943
give_weapon_to_char 107@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_1943
if 
  not is_char_dead 109@
goto_if_false @SWEET7_2011
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 2000
task_play_anim 109@ {animationName} "MRNM_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 10.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_2011
134@ = create_object_no_offset #CASKET_LAW {x} 885.6575 {y} -1077.412 {z} 23.3188
96@ = create_char PedType.CivMale {modelId} 68 {x} 886.6391 {y} -1079.179 {z} 23.3136
task_play_anim 96@ {animationName} "PRST_LOOPA" {animationFile} "GRAVEYARD" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 96@ {handleOrTemplate} 93@
set_char_heading 96@ {heading} 24.0
mark_model_as_no_longer_needed 68
97@ = create_char PedType.CivFemale {modelId} 12 {x} 884.9761 {y} -1079.983 {z} 23.3133
task_play_anim 97@ {animationName} "MRNF_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 97@ {handleOrTemplate} 93@
set_char_heading 97@ {heading} 4.0
mark_model_as_no_longer_needed 12
clear_area 2297.9709 {y} -1628.015 {z} 13.7028 {radius} 20.0 {clearParticles} True
263@ = create_char PedType.Gang2 {modelId} 105 {x} 2509.418 {y} -1663.134 {z} 12.5872
set_char_heading 263@ {heading} 214.5012
set_char_decision_maker 263@ {handleOrTemplate} 93@
set_char_suffers_critical_hits 263@ {state} False
set_char_cant_be_dragged_out 263@ {state} True
set_char_stay_in_car_when_jacked 263@ {state} True
set_char_get_out_upside_down_car 263@ {state} False
task_play_anim 263@ {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
264@ = create_char PedType.Gang2 {modelId} 106 {x} 2504.4709 {y} -1675.764 {z} 12.3709
set_char_heading 264@ {heading} 277.5012
set_char_decision_maker 264@ {handleOrTemplate} 93@
set_char_suffers_critical_hits 264@ {state} False
set_char_cant_be_dragged_out 264@ {state} True
set_char_stay_in_car_when_jacked 264@ {state} True
set_char_get_out_upside_down_car 264@ {state} False
task_play_anim 264@ {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
switch_roads_off 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
switch_ped_roads_off 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
281@ = get_int_stat StatId.Respect
301@ = find_max_number_of_group_members 
if 
  301@ > 1
goto_if_false @SWEET7_2695
55@ = 3
$sweet = create_char PedType.Mission2 {modelId} 290 {x} 2509.5901 {y} -1672.2371 {z} 12.3934
set_char_heading $sweet {heading} 239.0
if 
  not is_car_dead 78@
goto_if_false @SWEET7_2614
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 78@ {state} True

:SWEET7_2614
give_weapon_to_char $sweet {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 1000
set_char_max_health $sweet {maxHealth} 1000
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_get_out_upside_down_car $sweet {state} False
set_radio_channel RadioChannel.CSR
TIMERA = 0
goto @SWEET7_3089

:SWEET7_2695
$sweet = create_char PedType.Mission2 {modelId} 290 {x} 2511.343 {y} -1674.936 {z} 12.5473
if 
  not is_car_dead 78@
goto_if_false @SWEET7_2750
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 78@ {state} True

:SWEET7_2750
set_char_max_health $sweet {maxHealth} 1000
set_char_cant_be_dragged_out $sweet {state} True
give_weapon_to_char $sweet {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_health $sweet {health} 1000
set_char_max_health $sweet {maxHealth} 1000
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_get_out_upside_down_car $sweet {state} False
289@ = create_char PedType.Gang1 {modelId} 102 {x} 2262.7971 {y} -1348.54 {z} 22.985
give_weapon_to_char 289@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 289@ {handleOrTemplate} 93@
290@ = create_char PedType.Gang1 {modelId} 103 {x} 2263.582 {y} -1346.651 {z} 22.9838
set_char_heading 290@ {heading} 140.0
give_weapon_to_char 290@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 290@ {handleOrTemplate} 93@
task_chat_with_char 289@ {other} 290@ {leadSpeaker} True {_p4} 1
task_chat_with_char 290@ {other} 289@ {leadSpeaker} False {_p4} 1
291@ = create_char PedType.Gang1 {modelId} 104 {x} 2261.8501 {y} -1345.101 {z} 22.9864
set_char_heading 291@ {heading} 224.0
give_weapon_to_char 291@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 291@ {handleOrTemplate} 93@
task_play_anim 291@ {animationName} "MRNM_LOOP" {animationFile} "GRAVEYARD" {blendSpeed} 10.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
unload_special_character 1
292@ = add_blip_for_char 289@
293@ = add_blip_for_char 290@
294@ = add_blip_for_char 291@
55@ = 0
282@ = -10
TIMERB = 0

:SWEET7_3089
task_turn_char_to_face_char $scplayer {target} $sweet
TIMERA = 0

:SWEET7_3104
if 
  2000 > TIMERA
goto_if_false @SWEET7_3134
wait 0
goto @SWEET7_3104

:SWEET7_3134
mark_model_as_no_longer_needed 543
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_area 2508.1599 {y} -1666.47 {z} 13.0 {radius} 10.0 {clearParticles} True
do_fade 1000 {direction} Fade.In
260@ = get_player_group $player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_player_group_recruitment $player1 {state} False
set_group_follow_status 260@ {state} True
if 
  274@ == 13
goto_if_false @SWEET7_3289
40@ = add_blip_for_char $scplayer
78@ = create_car 492 {x} 2508.9751 {y} -1671.537 {z} 12.3853
43@ = add_blip_for_car 78@
98@ = create_char PedType.Mission1 {modelId} 102 {x} 885.1994 {y} -1075.546 {z} 23.3273

:SWEET7_3289
304@ = 0
532@ = 1
533@ = 2
534@ = 0
535@ = 1
536@ = 0
537@ = 0
set_lvar_text_label 312@s = 'SWE7_AA'
set_lvar_text_label 314@s = 'SWE7_AB'
set_lvar_text_label 316@s = 'SWE7_AC'
set_lvar_text_label 318@s = 'SWE7_AD'
set_lvar_text_label 320@s = 'SWE7_AE'
set_lvar_text_label 322@s = 'SWE7_AF'
set_lvar_text_label 324@s = 'SWE7_AG'
set_lvar_text_label 326@s = 'SWE7_AH'
set_lvar_text_label 328@s = 'SWE7_BA'
set_lvar_text_label 330@s = 'SWE7_BB'
set_lvar_text_label 332@s = 'SWE7_BC'
set_lvar_text_label 334@s = 'SWE7_BD'
set_lvar_text_label 336@s = 'SWE7_BE'
set_lvar_text_label 338@s = 'SWE7_CA'
set_lvar_text_label 340@s = 'SWE7_CB'
set_lvar_text_label 342@s = 'SWE7_CC'
set_lvar_text_label 344@s = 'SWE7_DA'
set_lvar_text_label 346@s = 'SWE7_DB'
set_lvar_text_label 348@s = 'SWE7_DC'
set_lvar_text_label 350@s = 'SWE7_DD'
set_lvar_text_label 352@s = 'SWE7_DE'
set_lvar_text_label 354@s = 'SWE7_EA'
set_lvar_text_label 356@s = 'SWE7_EB'
set_lvar_text_label 358@s = 'SWE7_EC'
set_lvar_text_label 360@s = 'SWE7_ED'
set_lvar_text_label 362@s = 'SWE7_EE'
set_lvar_text_label 364@s = 'SWE7_EF'
set_lvar_text_label 366@s = 'SWE7_EG'
set_lvar_text_label 368@s = 'SWE7_EH'
set_lvar_text_label 370@s = 'SWE7_EJ'
set_lvar_text_label 372@s = 'SWE7_EK'
set_lvar_text_label 374@s = 'SWE7_FA'
set_lvar_text_label 376@s = 'SWE7_FB'
set_lvar_text_label 378@s = 'SWE7_GA'
set_lvar_text_label 380@s = 'SWE7_GB'
set_lvar_text_label 382@s = 'SWE7_GC'
set_lvar_text_label 384@s = 'SWE7_HA'
set_lvar_text_label 386@s = 'SWE7_HB'
set_lvar_text_label 388@s = 'SWE7_HC'
set_lvar_text_label 390@s = 'SWE7_JA'
set_lvar_text_label 392@s = 'SWE7_JB'
set_lvar_text_label 394@s = 'SWE7_JC'
set_lvar_text_label 396@s = 'SWE7_KA'
set_lvar_text_label 398@s = 'SWE7_KB'
set_lvar_text_label 400@s = 'SWE7_KC'
set_lvar_text_label 402@s = 'SWE7_LA'
set_lvar_text_label 404@s = 'SWE7_LB'
set_lvar_text_label 406@s = 'SWE7_LC'
set_lvar_text_label 408@s = 'SWE7_MA'
set_lvar_text_label 410@s = 'SWE7_MB'
set_lvar_text_label 412@s = 'SWE7_MC'
set_lvar_text_label 414@s = 'SWE7_MD'
set_lvar_text_label 416@s = 'SWE7_NA'
set_lvar_text_label 418@s = 'SWE7_NB'
set_lvar_text_label 420@s = 'SWE7_OA'
set_lvar_text_label 422@s = 'SWE7_OB'
set_lvar_text_label 424@s = 'SWE7_PA'
set_lvar_text_label 426@s = 'SWE7_PB'
set_lvar_text_label 428@s = 'SWE7_PC'
set_lvar_text_label 430@s = 'SWE7_PD'
set_lvar_text_label 432@s = 'SWE7_QA'
set_lvar_text_label 434@s = 'SWE7_QB'
set_lvar_text_label 436@s = 'SWE7_QC'
set_lvar_text_label 438@s = 'SWE7_RA'
set_lvar_text_label 440@s = 'SWE7_RB'
set_lvar_text_label 442@s = 'SWE7_RC'
set_lvar_text_label 444@s = 'SWE7_SA'
set_lvar_text_label 446@s = 'SWE7_SB'
set_lvar_text_label 448@s = 'SWE7_SC'
set_lvar_text_label 450@s = 'SWE7_TA'
set_lvar_text_label 452@s = 'SWE7_TB'
set_lvar_text_label 454@s = 'SWE7_TC'
set_lvar_int_to_constant 459@ = 38400
set_lvar_int_to_constant 460@ = 38401
set_lvar_int_to_constant 461@ = 38402
set_lvar_int_to_constant 462@ = 38403
set_lvar_int_to_constant 463@ = 38404
set_lvar_int_to_constant 464@ = 38405
set_lvar_int_to_constant 465@ = 38406
set_lvar_int_to_constant 466@ = 38407
set_lvar_int_to_constant 467@ = 38408
set_lvar_int_to_constant 468@ = 38409
set_lvar_int_to_constant 469@ = 38410
set_lvar_int_to_constant 470@ = 38411
set_lvar_int_to_constant 471@ = 38412
set_lvar_int_to_constant 472@ = 38413
set_lvar_int_to_constant 473@ = 38414
set_lvar_int_to_constant 474@ = 38415
set_lvar_int_to_constant 475@ = 38416
set_lvar_int_to_constant 476@ = 38417
set_lvar_int_to_constant 477@ = 38418
set_lvar_int_to_constant 478@ = 38419
set_lvar_int_to_constant 479@ = 38420
set_lvar_int_to_constant 480@ = 38421
set_lvar_int_to_constant 481@ = 38422
set_lvar_int_to_constant 482@ = 38423
set_lvar_int_to_constant 483@ = 38424
set_lvar_int_to_constant 484@ = 38425
set_lvar_int_to_constant 485@ = 38426
set_lvar_int_to_constant 486@ = 38427
set_lvar_int_to_constant 487@ = 38428
set_lvar_int_to_constant 488@ = 38429
set_lvar_int_to_constant 489@ = 38430
set_lvar_int_to_constant 490@ = 38431
set_lvar_int_to_constant 491@ = 38432
set_lvar_int_to_constant 492@ = 38433
set_lvar_int_to_constant 493@ = 38434
set_lvar_int_to_constant 494@ = 38435
set_lvar_int_to_constant 495@ = 38436
set_lvar_int_to_constant 496@ = 38437
set_lvar_int_to_constant 497@ = 38438
set_lvar_int_to_constant 498@ = 38439
set_lvar_int_to_constant 499@ = 38440
set_lvar_int_to_constant 500@ = 38441
set_lvar_int_to_constant 501@ = 38442
set_lvar_int_to_constant 502@ = 38443
set_lvar_int_to_constant 503@ = 38444
set_lvar_int_to_constant 504@ = 38445
set_lvar_int_to_constant 505@ = 38446
set_lvar_int_to_constant 506@ = 38447
set_lvar_int_to_constant 507@ = 38448
set_lvar_int_to_constant 508@ = 38449
set_lvar_int_to_constant 509@ = 38450
set_lvar_int_to_constant 510@ = 38451
set_lvar_int_to_constant 511@ = 38452
set_lvar_int_to_constant 512@ = 38453
set_lvar_int_to_constant 513@ = 38454
set_lvar_int_to_constant 514@ = 38455
set_lvar_int_to_constant 515@ = 38456
set_lvar_int_to_constant 516@ = 38457
set_lvar_int_to_constant 517@ = 38458
set_lvar_int_to_constant 518@ = 38459
set_lvar_int_to_constant 519@ = 38460
set_lvar_int_to_constant 520@ = 38461
set_lvar_int_to_constant 521@ = 38462
set_lvar_int_to_constant 522@ = 38463
set_lvar_int_to_constant 523@ = 38464
set_lvar_int_to_constant 524@ = 38465
set_lvar_int_to_constant 525@ = 38466
set_lvar_int_to_constant 526@ = 38467
set_lvar_int_to_constant 527@ = 38468
set_lvar_int_to_constant 528@ = 38469
set_lvar_int_to_constant 529@ = 38470
set_lvar_int_to_constant 530@ = 38471

:SWEET7_5066
wait 0
if 
  304@ == 0
goto_if_false @SWEET7_5102
load_mission_audio MissionAudioSlot.Slot3 {audioId} 22600
304@ = 1

:SWEET7_5102
if 
  304@ == 1
goto_if_false @SWEET7_5142
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SWEET7_5142
304@ = 2

:SWEET7_5142
if 
  304@ == 2
goto_if_false @SWEET7_5237
if 
  not is_char_dead 97@
goto_if_false @SWEET7_5237
if 
  locate_char_any_means_char_2d $scplayer {target} 97@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SWEET7_5237
set_mission_audio_position MissionAudioSlot.Slot3 {x} 884.9761 {y} -1079.983 {z} 23.3133
play_mission_audio MissionAudioSlot.Slot3
304@ = 3

:SWEET7_5237
if 
  534@ <> 0
goto_if_false @SWEET7_5590
if 
  536@ == 0
goto_if_false @SWEET7_5308
if 
  has_mission_audio_loaded 533@
goto_if_false @SWEET7_5294
clear_mission_audio 533@

:SWEET7_5294
536@ = 1
537@ = 1

:SWEET7_5308
if 
  536@ == 1
goto_if_false @SWEET7_5345
load_mission_audio 532@ {audioId} 458@(534@,74i)
536@ = 2

:SWEET7_5345
if 
  536@ == 2
goto_if_false @SWEET7_5405
if 
  has_mission_audio_loaded 532@
goto_if_false @SWEET7_5405
play_mission_audio 532@
print_now 310@(534@,74s) {time} 10000 {flag} 1
536@ = 3

:SWEET7_5405
if 
  536@ == 3
goto_if_false @SWEET7_5590
if 
  has_mission_audio_finished 532@
goto_if_false @SWEET7_5529
clear_this_print 310@(534@,74s)
if 
  532@ == 1
goto_if_false @SWEET7_5487
532@ = 2
533@ = 1
goto @SWEET7_5501

:SWEET7_5487
532@ = 1
533@ = 2

:SWEET7_5501
534@ = 0
536@ = 0
537@ = 0
goto @SWEET7_5590

:SWEET7_5529
if 
  not has_mission_audio_loaded 533@
goto_if_false @SWEET7_5590
if 
  72 > 534@
goto_if_false @SWEET7_5590
set_lvar_int_to_lvar_int 535@ = 534@
535@ += 1
load_mission_audio 533@ {audioId} 458@(535@,74i)

:SWEET7_5590
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SWEET7_5612
goto @SWEET7_32422

:SWEET7_5612
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @SWEET7_5663
if 
  not is_car_dead 78@
goto_if_false @SWEET7_5663
set_car_coordinates 78@ {x} 794.203 {y} -1059.1851 {z} 23.6844

:SWEET7_5663
262@, 261@ = get_group_size 260@
if 
  1 > 53@
goto_if_false @SWEET7_5798
if 
  1 > $sw7_funeraltimer
goto_if_false @SWEET7_5741
clear_onscreen_timer $sw7_funeraltimer
clear_prints 
540@ = generate_random_int_in_range 0 {max} 2
539@ = 31
53@ = 999

:SWEET7_5741
if 
  not is_car_dead 78@
goto_if_false @SWEET7_5798
if 
  is_car_on_fire 78@
goto_if_false @SWEET7_5798
clear_prints 
print_now 'TWAR664' {time} 6000 {flag} 1
goto @SWEET7_32404

:SWEET7_5798
281@ = get_int_stat StatId.Respect
if 
  55@ == 0
goto_if_false @SWEET7_7160
if 
  0 > 282@
goto_if_false @SWEET7_6176
if 
  537@ == 0
goto_if_false @SWEET7_6176
switch_start 282@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @SWEET7_6176 {caseNum1} -10 {caseLabel1} @SWEET7_5987 {caseNum2} -9 {caseLabel2} @SWEET7_6008 {caseNum3} -8 {caseLabel3} @SWEET7_6029 {caseNum4} -7 {caseLabel4} @SWEET7_6050 {caseNum5} -6 {caseLabel5} @SWEET7_6071 {caseNum6} -5 {caseLabel6} @SWEET7_6092 {caseNum7} -4 {caseLabel7} @SWEET7_6113
switch_continued -3 {caseLabel1} @SWEET7_6134 {caseNum2} -2 {caseLabel2} @SWEET7_6155 {caseNum3} -1 {caseLabel3} @SWEET7_6176 {caseNum4} -1 {caseLabel4} @SWEET7_6176 {caseNum5} -1 {caseLabel5} @SWEET7_6176 {caseNum6} -1 {caseLabel6} @SWEET7_6176 {caseNum7} -1 {caseLabel7} @SWEET7_6176 {caseNum8} -1 {caseLabel8} @SWEET7_6176 {caseNum9} -1 {caseLabel9} @SWEET7_6176

:SWEET7_5987
534@ = 1
282@ = -9
goto @SWEET7_6176

:SWEET7_6008
534@ = 2
282@ = -8
goto @SWEET7_6176

:SWEET7_6029
534@ = 3
282@ = -7
goto @SWEET7_6176

:SWEET7_6050
534@ = 4
282@ = -6
goto @SWEET7_6176

:SWEET7_6071
534@ = 5
282@ = -5
goto @SWEET7_6176

:SWEET7_6092
534@ = 6
282@ = -4
goto @SWEET7_6176

:SWEET7_6113
534@ = 7
282@ = -3
goto @SWEET7_6176

:SWEET7_6134
534@ = 8
282@ = -2
goto @SWEET7_6176

:SWEET7_6155
534@ = 0
282@ = 0
goto @SWEET7_6176

:SWEET7_6176
if 
  537@ == 0
goto_if_false @SWEET7_6301
if 
  282@ == 0
goto_if_false @SWEET7_6244
clear_prints 
print_now 'TWAR612' {time} 6000 {flag} 1
282@ = 1
TIMERB = 0

:SWEET7_6244
if 
  282@ == 1
goto_if_false @SWEET7_6301
if 
  TIMERB > 7000
goto_if_false @SWEET7_6301
clear_prints 
print_help 'HELP101'
282@ = 2

:SWEET7_6301
if 
  284@ == 0
goto_if_false @SWEET7_6390
if 
  TIMERA > 3000
goto_if_false @SWEET7_6390
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_6390
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_6390
clear_char_tasks $sweet
task_turn_char_to_face_char $sweet {target} $scplayer
TIMERA = 0

:SWEET7_6390
if 
  does_char_exist $sweet
goto_if_false @SWEET7_6450
if 
  has_char_been_damaged_by_char $sweet {handle} $scplayer
goto_if_false @SWEET7_6450
clear_prints 
print_now 'TWAR618' {time} 6000 {flag} 1
goto @SWEET7_32404

:SWEET7_6450
if 
  295@ == 0
goto_if_false @SWEET7_6510
if 
  does_char_exist 289@
goto_if_false @SWEET7_6510
if 
  has_char_been_damaged_by_char 289@ {handle} $scplayer
goto_if_false @SWEET7_6510
295@ = 1

:SWEET7_6510
if 
  295@ == 0
goto_if_false @SWEET7_6570
if 
  does_char_exist 290@
goto_if_false @SWEET7_6570
if 
  has_char_been_damaged_by_char 290@ {handle} $scplayer
goto_if_false @SWEET7_6570
295@ = 1

:SWEET7_6570
if 
  295@ == 0
goto_if_false @SWEET7_6630
if 
  does_char_exist 291@
goto_if_false @SWEET7_6630
if 
  has_char_been_damaged_by_char 291@ {handle} $scplayer
goto_if_false @SWEET7_6630
295@ = 1

:SWEET7_6630
if 
  295@ == 1
goto_if_false @SWEET7_6742
if 
  not is_char_dead 289@
goto_if_false @SWEET7_6677
clear_char_tasks 289@
task_kill_char_on_foot 289@ {target} $scplayer

:SWEET7_6677
if 
  not is_char_dead 290@
goto_if_false @SWEET7_6706
clear_char_tasks 290@
task_kill_char_on_foot 290@ {target} $scplayer

:SWEET7_6706
if 
  not is_char_dead 291@
goto_if_false @SWEET7_6735
clear_char_tasks 291@
task_kill_char_on_foot 291@ {target} $scplayer

:SWEET7_6735
295@ = 2

:SWEET7_6742
if 
  296@ == 0
goto_if_false @SWEET7_6801
if 
  is_char_dead 289@
goto_if_false @SWEET7_6801
increment_int_stat StatId.Respect {value} 35
remove_blip 292@
281@ = get_int_stat StatId.Respect
296@ = 1

:SWEET7_6801
if 
  297@ == 0
goto_if_false @SWEET7_6860
if 
  is_char_dead 290@
goto_if_false @SWEET7_6860
increment_int_stat StatId.Respect {value} 35
remove_blip 293@
281@ = get_int_stat StatId.Respect
297@ = 1

:SWEET7_6860
if 
  298@ == 0
goto_if_false @SWEET7_6919
if 
  is_char_dead 291@
goto_if_false @SWEET7_6919
increment_int_stat StatId.Respect {value} 35
remove_blip 294@
281@ = get_int_stat StatId.Respect
298@ = 1

:SWEET7_6919
if 
  is_char_dead 289@
goto_if_false @SWEET7_6999
if 
  is_char_dead 290@
goto_if_false @SWEET7_6999
if 
  is_char_dead 291@
goto_if_false @SWEET7_6999
281@ = get_int_stat StatId.Respect
if 
  100 > 281@
goto_if_false @SWEET7_6999
set_int_stat StatId.Respect {value} 200

:SWEET7_6999
301@ = find_max_number_of_group_members 
if 
  301@ > 1
goto_if_false @SWEET7_7160
mark_char_as_no_longer_needed 289@
mark_char_as_no_longer_needed 290@
mark_char_as_no_longer_needed 291@
remove_blip 292@
remove_blip 293@
remove_blip 294@
clear_prints 
print_now 'TWAR617' {time} 6000 {flag} 1
if 
  not is_car_dead 78@
goto_if_false @SWEET7_7160
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
55@ = 1
284@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7160
clear_char_tasks $sweet
task_enter_car_as_passenger $sweet {vehicle} 78@ {time} 20000 {seat} SeatId.BikeRear
41@ = add_blip_for_car 78@
set_radio_channel RadioChannel.CSR
set_blip_as_friendly 41@ {state} True

:SWEET7_7160
if 
  55@ == 1
goto_if_false @SWEET7_7386
if 
  284@ == 1
goto_if_false @SWEET7_7275
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7275
if 
  not is_car_dead 78@
goto_if_false @SWEET7_7275
if 
  is_char_sitting_in_car $sweet {vehicle} 78@
goto_if_false @SWEET7_7275
freeze_car_position 78@ {state} False
lock_car_doors 78@ {lockStatus} CarLock.Unlocked
open_car_door 78@ {door} CarDoor.LeftFrontDoor
284@ = 2

:SWEET7_7275
if 
  not is_car_dead 78@
goto_if_false @SWEET7_7386
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_7386
remove_blip 41@
281@ = get_int_stat StatId.Respect
267@ = add_blip_for_coord 2460.499 {y} -1656.5699 {z} 12.3125
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7365
shut_char_up_for_scripted_speech $sweet {state} True

:SWEET7_7365
55@ = 2
44@ = 0
539@ = 1

:SWEET7_7386
if 
  55@ == 2
goto_if_false @SWEET7_8598
if 
  not is_car_dead 78@
goto_if_false @SWEET7_8598
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_7682
if 
  539@ > 0
goto_if_false @SWEET7_7682
if 
  537@ == 0
goto_if_false @SWEET7_7682
switch_start 539@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7682 {caseNum1} 1 {caseLabel1} @SWEET7_7538 {caseNum2} 2 {caseLabel2} @SWEET7_7559 {caseNum3} 3 {caseLabel3} @SWEET7_7580 {caseNum4} 4 {caseLabel4} @SWEET7_7601 {caseNum5} 5 {caseLabel5} @SWEET7_7622 {caseNum6} -1 {caseLabel6} @SWEET7_7682 {caseNum7} -1 {caseLabel7} @SWEET7_7682

:SWEET7_7538
534@ = 10
539@ = 2
goto @SWEET7_7682

:SWEET7_7559
534@ = 11
539@ = 3
goto @SWEET7_7682

:SWEET7_7580
534@ = 12
539@ = 4
goto @SWEET7_7682

:SWEET7_7601
534@ = 13
539@ = 5
goto @SWEET7_7682

:SWEET7_7622
534@ = 0
print_now 'TWAR650' {time} 6000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7668
shut_char_up_for_scripted_speech $sweet {state} False

:SWEET7_7668
539@ = 0
goto @SWEET7_7682

:SWEET7_7682
if 
  541@ > 0
goto_if_false @SWEET7_7905
if 
  537@ == 0
goto_if_false @SWEET7_7905
switch_start 541@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_7905 {caseNum1} 1 {caseLabel1} @SWEET7_7781 {caseNum2} 2 {caseLabel2} @SWEET7_7845 {caseNum3} -1 {caseLabel3} @SWEET7_7905 {caseNum4} -1 {caseLabel4} @SWEET7_7905 {caseNum5} -1 {caseLabel5} @SWEET7_7905 {caseNum6} -1 {caseLabel6} @SWEET7_7905 {caseNum7} -1 {caseLabel7} @SWEET7_7905

:SWEET7_7781
if 
  540@ == 0
goto_if_false @SWEET7_7806
534@ = 24

:SWEET7_7806
if 
  540@ == 1
goto_if_false @SWEET7_7831
534@ = 26

:SWEET7_7831
541@ = 2
goto @SWEET7_7905

:SWEET7_7845
534@ = 0
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_7875
shut_char_up_for_scripted_speech $sweet {state} False

:SWEET7_7875
print_now 'TWAR645' {time} 6000 {flag} 1
541@ = 0
goto @SWEET7_7905

:SWEET7_7905
if 
  542@ > 0
goto_if_false @SWEET7_8080
if 
  537@ == 0
goto_if_false @SWEET7_8080
switch_start 542@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_8080 {caseNum1} 1 {caseLabel1} @SWEET7_8004 {caseNum2} 2 {caseLabel2} @SWEET7_8043 {caseNum3} -1 {caseLabel3} @SWEET7_8080 {caseNum4} -1 {caseLabel4} @SWEET7_8080 {caseNum5} -1 {caseLabel5} @SWEET7_8080 {caseNum6} -1 {caseLabel6} @SWEET7_8080 {caseNum7} -1 {caseLabel7} @SWEET7_8080

:SWEET7_8004
if 
  540@ == 0
goto_if_false @SWEET7_8029
534@ = 25

:SWEET7_8029
542@ = 2
goto @SWEET7_8080

:SWEET7_8043
534@ = 0
print_now 'TWAR650' {time} 6000 {flag} 1
542@ = 0
goto @SWEET7_8080

:SWEET7_8080
281@ = get_int_stat StatId.Respect
if 
  44@ == 0
goto_if_false @SWEET7_8180
if 
  not is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_8180
41@ = add_blip_for_car 78@
set_radio_channel RadioChannel.CSR
set_blip_as_friendly 41@ {state} True
remove_blip 267@
clear_prints 
44@ = 1
539@ = 0
541@ = 1
540@ = generate_random_int_in_range 0 {max} 2

:SWEET7_8180
if 
  44@ == 1
goto_if_false @SWEET7_8274
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_8274
remove_blip 41@
267@ = add_blip_for_coord 2460.499 {y} -1656.5699 {z} 12.3125
clear_prints 
44@ = 0
539@ = 0
542@ = 1
540@ = generate_random_int_in_range 0 {max} 1

:SWEET7_8274
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @SWEET7_8317
if 
  not is_minigame_in_progress 
goto_if_false @SWEET7_8317
set_player_control $player1 {state} True

:SWEET7_8317
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_8598
if 
  locate_char_in_car_3d $scplayer {x} 2460.499 {y} -1656.5699 {z} 12.3125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET7_8598
set_player_control $player1 {state} False
if 
  is_car_stopped 78@
goto_if_false @SWEET7_8598
freeze_car_position 78@ {state} True
clear_area 2268.0391 {y} -1670.6949 {z} 14.3594 {radius} 10.0 {clearParticles} True
remove_animation "SMOKING"
clear_prints 
539@ = 1
set_player_control $player1 {state} True
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_player_group_recruitment $player1 {state} True
remove_blip 267@
if 
  not is_char_dead 263@
goto_if_false @SWEET7_8598
if 
  not is_char_dead 264@
goto_if_false @SWEET7_8598
265@ = add_blip_for_char 263@
set_blip_as_friendly 265@ {state} True
268@ = 1
266@ = add_blip_for_char 264@
set_blip_as_friendly 266@ {state} True
269@ = 1
285@ = 1
TIMERA = 0
55@ = 4
270@ = 1
540@ = generate_random_int_in_range 0 {max} 3

:SWEET7_8598
if 
  55@ == 3
goto_if_false @SWEET7_8802
freeze_car_position 78@ {state} True
clear_area 2268.0391 {y} -1670.6949 {z} 14.3594 {radius} 10.0 {clearParticles} True
remove_animation "SMOKING"
clear_prints 
539@ = 1
set_player_control $player1 {state} True
set_relationship RelationshipType.Respect {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_player_group_recruitment $player1 {state} True
if 
  not is_char_dead 263@
goto_if_false @SWEET7_8802
if 
  not is_char_dead 264@
goto_if_false @SWEET7_8802
265@ = add_blip_for_char 263@
set_blip_as_friendly 265@ {state} True
268@ = 1
266@ = add_blip_for_char 264@
set_blip_as_friendly 266@ {state} True
269@ = 1
285@ = 1
TIMERA = 0
55@ = 4
270@ = 1
540@ = generate_random_int_in_range 0 {max} 3

:SWEET7_8802
if 
  285@ == 1
goto_if_false @SWEET7_8868
if 
  TIMERA > 8000
goto_if_false @SWEET7_8868
clear_this_print 'TWAR652'
print_help 'TWAR660'
285@ = 2

:SWEET7_8868
if 
  270@ == 1
goto_if_false @SWEET7_9644
if 
  268@ == 1
goto_if_false @SWEET7_8951
if 
  not is_char_dead 263@
goto_if_false @SWEET7_8951
if 
  is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_8951
remove_blip 265@
268@ = 0

:SWEET7_8951
if 
  269@ == 1
goto_if_false @SWEET7_9016
if 
  not is_char_dead 264@
goto_if_false @SWEET7_9016
if 
  is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_9016
remove_blip 266@
269@ = 0

:SWEET7_9016
if 
  268@ == 0
goto_if_false @SWEET7_9103
if 
  not is_char_dead 263@
goto_if_false @SWEET7_9103
if 
  not is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_9103
remove_blip 41@
55@ = 4
265@ = add_blip_for_char 263@
set_blip_as_friendly 265@ {state} True
268@ = 1

:SWEET7_9103
if 
  269@ == 0
goto_if_false @SWEET7_9190
if 
  not is_char_dead 264@
goto_if_false @SWEET7_9190
if 
  not is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_9190
remove_blip 41@
55@ = 4
266@ = add_blip_for_char 264@
set_blip_as_friendly 266@ {state} True
269@ = 1

:SWEET7_9190
262@, 261@ = get_group_size 260@
if 
  261@ > 1
goto_if_false @SWEET7_9588
if 
  not is_char_dead 263@
goto_if_false @SWEET7_9303
if 
  not is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_9303
clear_help 
print_help_forever 'TWAR662'
if 
  11 > 543@
goto_if_false @SWEET7_9303
clear_prints 
540@ = generate_random_int_in_range 0 {max} 2
543@ = 11

:SWEET7_9303
if 
  not is_char_dead 264@
goto_if_false @SWEET7_9387
if 
  not is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_9387
clear_help 
print_help_forever 'TWAR662'
if 
  11 > 543@
goto_if_false @SWEET7_9387
clear_prints 
540@ = generate_random_int_in_range 0 {max} 2
543@ = 11

:SWEET7_9387
if 
  543@ > 10
goto_if_false @SWEET7_9588
if 
  537@ == 0
goto_if_false @SWEET7_9588
switch_start 543@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_9588 {caseNum1} 11 {caseLabel1} @SWEET7_9486 {caseNum2} 12 {caseLabel2} @SWEET7_9550 {caseNum3} -1 {caseLabel3} @SWEET7_9588 {caseNum4} -1 {caseLabel4} @SWEET7_9588 {caseNum5} -1 {caseLabel5} @SWEET7_9588 {caseNum6} -1 {caseLabel6} @SWEET7_9588 {caseNum7} -1 {caseLabel7} @SWEET7_9588

:SWEET7_9486
if 
  540@ == 0
goto_if_false @SWEET7_9511
534@ = 20

:SWEET7_9511
if 
  540@ == 1
goto_if_false @SWEET7_9536
534@ = 21

:SWEET7_9536
543@ = 12
goto @SWEET7_9588

:SWEET7_9550
534@ = 0
print_now 'TWAR659' {time} 6000 {flag} 1
543@ = 999
goto @SWEET7_9588

:SWEET7_9588
if 
  2 > 261@
goto_if_false @SWEET7_9644
if 
  285@ == 2
goto_if_false @SWEET7_9644
clear_help 
print_help_forever 'TWAR660'
543@ = 0

:SWEET7_9644
if 
  55@ == 4
goto_if_false @SWEET7_10303
if 
  539@ > 0
goto_if_false @SWEET7_10115
if 
  537@ == 0
goto_if_false @SWEET7_10115
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_10115 {caseNum1} 1 {caseLabel1} @SWEET7_9761 {caseNum2} 2 {caseLabel2} @SWEET7_10024 {caseNum3} -1 {caseLabel3} @SWEET7_10115 {caseNum4} -1 {caseLabel4} @SWEET7_10115 {caseNum5} -1 {caseLabel5} @SWEET7_10115 {caseNum6} -1 {caseLabel6} @SWEET7_10115 {caseNum7} -1 {caseLabel7} @SWEET7_10115

:SWEET7_9761
if 
  540@ == 0
goto_if_false @SWEET7_9844
534@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_9844
clear_char_tasks $sweet
task_play_anim $sweet {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_9844
if 
  540@ == 1
goto_if_false @SWEET7_9927
534@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_9927
clear_char_tasks $sweet
task_play_anim $sweet {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_9927
if 
  540@ == 2
goto_if_false @SWEET7_10010
534@ = 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_10010
clear_char_tasks $sweet
task_play_anim $sweet {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SWEET7_10010
539@ = 2
goto @SWEET7_10115

:SWEET7_10024
534@ = 0
print_now 'TWAR652' {time} 6000 {flag} 1
if 
  not is_car_dead 78@
goto_if_false @SWEET7_10101
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_10101
clear_char_tasks $sweet
task_enter_car_as_passenger $sweet {vehicle} 78@ {time} 20000 {seat} SeatId.BikeRear
set_radio_channel RadioChannel.CSR

:SWEET7_10101
539@ = 0
goto @SWEET7_10115

:SWEET7_10115
if 
  not is_char_dead 263@
goto_if_false @SWEET7_10303
if 
  not is_char_dead 264@
goto_if_false @SWEET7_10303
if 
  is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_10303
if 
  is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_10303
clear_help 
clear_prints 
print_now 'TWAR654' {time} 5500 {flag} 1
286@ = 1
TIMERB = 0
if 
  not is_car_dead 78@
goto_if_false @SWEET7_10296
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_10296
if 
  is_char_sitting_in_car $sweet {vehicle} 78@
goto_if_false @SWEET7_10296
lock_car_doors 78@ {lockStatus} CarLock.Unlocked
41@ = add_blip_for_car 78@
set_blip_as_friendly 41@ {state} True
set_radio_channel RadioChannel.CSR

:SWEET7_10296
55@ = 10

:SWEET7_10303
if 
  286@ == 1
goto_if_false @SWEET7_10347
if 
  TIMERB > 6000
goto_if_false @SWEET7_10347
286@ = 2

:SWEET7_10347
if 
  55@ == 10
goto_if_false @SWEET7_10659
if 
  not is_car_dead 78@
goto_if_false @SWEET7_10659
if 
  not is_char_dead 263@
goto_if_false @SWEET7_10659
if 
  not is_char_dead 264@
goto_if_false @SWEET7_10659
if 
  is_char_sitting_in_car 263@ {vehicle} 78@
goto_if_false @SWEET7_10659
if 
  is_char_sitting_in_car 264@ {vehicle} 78@
goto_if_false @SWEET7_10659
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_10659
freeze_car_position 78@ {state} False
clear_help 
clear_prints 
set_camera_behind_player 
if 
  302@ == 0
goto_if_false @SWEET7_10567
display_onscreen_timer_with_string $sw7_funeraltimer {direction} TimerDirection.Down {text} 'TWAR620'
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 35@
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 36@
remove_animation "SMOKING"
302@ = 1

:SWEET7_10567
remove_blip 41@
42@ = add_blip_for_coord 799.0102 {y} -1074.032 {z} 23.0115
270@ = 1
44@ = 0
539@ = 1
55@ = 20
TIMERA = 0
switch_roads_off 772.243 {leftBottomY} -1050.323 {leftBottomZ} 10.2931 {rightTopX} 806.2723 {rightTopY} -1130.1949 {rightTopZ} 23.8359

:SWEET7_10659
if 
  37@ == 1
goto_if_false @SWEET7_10726
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET7_10726
if 
  10 > 53@
goto_if_false @SWEET7_10726
53@ = 10
37@ = 0

:SWEET7_10726
if 
  38@ == 1
goto_if_false @SWEET7_10768
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SWEET7_10768
133@ = 15

:SWEET7_10768
if 
  is_char_dead $sweet
goto_if_false @SWEET7_10809
clear_prints 
print_now 'TWAR638' {time} 10000 {flag} 1
goto @SWEET7_32404

:SWEET7_10809
if 
  is_car_dead 79@
goto_if_false @SWEET7_10882
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_10882
if 
  not is_char_in_any_car $sweet
goto_if_false @SWEET7_10882
clear_prints 
print_now 'TWAR648' {time} 6000 {flag} 1
goto @SWEET7_32404

:SWEET7_10882
if 
  53@ == 0
goto_if_false @SWEET7_12788
if 
  55@ == 20
goto_if_false @SWEET7_12788
if 
  not is_car_dead 78@
goto_if_false @SWEET7_12788
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_11207
if 
  278@ == 0
goto_if_false @SWEET7_11008
if 
  TIMERA > 20000
goto_if_false @SWEET7_11008
print_help 'TWAR656'
278@ = 1

:SWEET7_11008
if 
  539@ > 0
goto_if_false @SWEET7_11207
if 
  537@ == 0
goto_if_false @SWEET7_11207
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11207 {caseNum1} 1 {caseLabel1} @SWEET7_11107 {caseNum2} 2 {caseLabel2} @SWEET7_11128 {caseNum3} 3 {caseLabel3} @SWEET7_11149 {caseNum4} 4 {caseLabel4} @SWEET7_11170 {caseNum5} -1 {caseLabel5} @SWEET7_11207 {caseNum6} -1 {caseLabel6} @SWEET7_11207 {caseNum7} -1 {caseLabel7} @SWEET7_11207

:SWEET7_11107
534@ = 23
539@ = 2
goto @SWEET7_11207

:SWEET7_11128
534@ = 35
539@ = 3
goto @SWEET7_11207

:SWEET7_11149
534@ = 36
539@ = 4
goto @SWEET7_11207

:SWEET7_11170
534@ = 0
print_now 'TWAR631' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_11207

:SWEET7_11207
if 
  541@ > 0
goto_if_false @SWEET7_11407
if 
  537@ == 0
goto_if_false @SWEET7_11407
switch_start 541@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11407 {caseNum1} 1 {caseLabel1} @SWEET7_11306 {caseNum2} 2 {caseLabel2} @SWEET7_11370 {caseNum3} -1 {caseLabel3} @SWEET7_11407 {caseNum4} -1 {caseLabel4} @SWEET7_11407 {caseNum5} -1 {caseLabel5} @SWEET7_11407 {caseNum6} -1 {caseLabel6} @SWEET7_11407 {caseNum7} -1 {caseLabel7} @SWEET7_11407

:SWEET7_11306
if 
  540@ == 0
goto_if_false @SWEET7_11331
534@ = 24

:SWEET7_11331
if 
  540@ == 1
goto_if_false @SWEET7_11356
534@ = 26

:SWEET7_11356
541@ = 2
goto @SWEET7_11407

:SWEET7_11370
534@ = 0
print_now 'TWAR632' {time} 6000 {flag} 1
541@ = 0
goto @SWEET7_11407

:SWEET7_11407
if 
  542@ > 0
goto_if_false @SWEET7_11582
if 
  537@ == 0
goto_if_false @SWEET7_11582
switch_start 542@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_11582 {caseNum1} 1 {caseLabel1} @SWEET7_11506 {caseNum2} 2 {caseLabel2} @SWEET7_11545 {caseNum3} -1 {caseLabel3} @SWEET7_11582 {caseNum4} -1 {caseLabel4} @SWEET7_11582 {caseNum5} -1 {caseLabel5} @SWEET7_11582 {caseNum6} -1 {caseLabel6} @SWEET7_11582 {caseNum7} -1 {caseLabel7} @SWEET7_11582

:SWEET7_11506
if 
  540@ == 0
goto_if_false @SWEET7_11531
534@ = 25

:SWEET7_11531
542@ = 2
goto @SWEET7_11582

:SWEET7_11545
534@ = 0
print_now 'TWAR631' {time} 6000 {flag} 1
542@ = 0
goto @SWEET7_11582

:SWEET7_11582
if 
  44@ == 0
goto_if_false @SWEET7_11675
if 
  not is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_11675
41@ = add_blip_for_car 78@
set_radio_channel RadioChannel.CSR
set_blip_as_friendly 41@ {state} True
remove_blip 42@
clear_prints 
44@ = 1
539@ = 0
541@ = 1
540@ = generate_random_int_in_range 0 {max} 2

:SWEET7_11675
if 
  44@ == 1
goto_if_false @SWEET7_11839
if 
  not is_char_dead 263@
goto_if_false @SWEET7_11839
if 
  not is_char_dead 264@
goto_if_false @SWEET7_11839
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_11839
if 
  is_char_sitting_in_car 263@ {vehicle} 78@
goto_if_false @SWEET7_11839
if 
  is_char_sitting_in_car 264@ {vehicle} 78@
goto_if_false @SWEET7_11839
remove_blip 41@
42@ = add_blip_for_coord 799.0102 {y} -1074.032 {z} 23.0115
clear_prints 
44@ = 0
539@ = 0
542@ = 1
540@ = generate_random_int_in_range 0 {max} 1

:SWEET7_11839
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @SWEET7_11882
if 
  not is_minigame_in_progress 
goto_if_false @SWEET7_11882
set_player_control $player1 {state} True

:SWEET7_11882
if 
  44@ == 0
goto_if_false @SWEET7_12788
if 
  is_char_in_car $scplayer {vehicle} 78@
goto_if_false @SWEET7_12788
if 
  locate_char_in_car_3d $scplayer {x} 799.0102 {y} -1074.032 {z} 23.0115 {xRadius} 3.8 {yRadius} 3.8 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET7_12788
set_player_control $player1 {state} False
if 
  is_car_stopped 78@
goto_if_false @SWEET7_12788
remove_blip 42@
set_player_control $player1 {state} False
clear_onscreen_timer $sw7_funeraltimer
do_fade 500 {direction} Fade.Out

:SWEET7_12014
if 
  get_fading_status 
goto_if_false @SWEET7_12038
wait 0
goto @SWEET7_12014

:SWEET7_12038
set_fixed_camera_position 790.7784 {y} -1072.139 {z} 26.2131 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 791.6847 {y} -1072.3781 {z} 25.8645 {switchStyle} SwitchType.JumpCut
load_scene 803.5742 {y} -1075.752 {z} 23.3957
wait 0
if 
  not is_car_dead 78@
goto_if_false @SWEET7_12133
freeze_car_position 78@ {state} True

:SWEET7_12133
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1000 {direction} Fade.In

:SWEET7_12151
if 
  get_fading_status 
goto_if_false @SWEET7_12175
wait 0
goto @SWEET7_12151

:SWEET7_12175
clear_onscreen_timer $sw7_funeraltimer
do_fade 1000 {direction} Fade.In

:SWEET7_12187
if 
  get_fading_status 
goto_if_false @SWEET7_12211
wait 0
goto @SWEET7_12187

:SWEET7_12211
270@ = 0
53@ = 1
133@ = 1
TIMERA = 0
if 
  537@ == 0
goto_if_false @SWEET7_12264
534@ = 29

:SWEET7_12264
if 
  53@ == -999
goto_if_false @SWEET7_12437
81@ = create_char PedType.Mission2 {modelId} 106 {x} 820.7578 {y} -1078.671 {z} 22.9313
set_char_heading 81@ {heading} 258.1012
set_char_decision_maker 81@ {handleOrTemplate} 93@
set_char_health 81@ {health} 500
set_char_max_health 81@ {maxHealth} 500
set_char_never_targetted 81@ {state} True
give_weapon_to_char 81@ {weaponType} WeaponType.MicroUzi {ammo} 99999
82@ = create_char PedType.Mission2 {modelId} 106 {x} 820.2401 {y} -1075.7629 {z} 23.0894
set_char_heading 82@ {heading} 200.7
set_char_decision_maker 82@ {handleOrTemplate} 93@
set_char_health 82@ {health} 500
set_char_max_health 82@ {maxHealth} 500
set_char_never_targetted 82@ {state} True
give_weapon_to_char 82@ {weaponType} WeaponType.MicroUzi {ammo} 99999

:SWEET7_12437
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 105
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_12558
set_char_decision_maker $sweet {handleOrTemplate} 93@
clear_char_tasks $sweet
39@ = add_blip_for_char $sweet
set_blip_as_friendly 39@ {state} True
83@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 804.576 {y} -1075.795 {z} 23.3946 {speed} MoveState.Walk {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 83@
perform_sequence_task $sweet {sequence} 83@
clear_sequence_task 83@
TIMERA = 0

:SWEET7_12558
if 
  1000 > TIMERA
goto_if_false @SWEET7_12588
wait 0
goto @SWEET7_12558

:SWEET7_12588
if 
  not is_char_dead 263@
goto_if_false @SWEET7_12673
set_char_decision_maker 263@ {handleOrTemplate} 93@
remove_char_from_group 263@
clear_char_tasks 263@
272@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 804.8553 {y} -1074.422 {z} 23.4385 {speed} MoveState.Walk {time} 10000
close_sequence_task 272@
perform_sequence_task 263@ {sequence} 272@
clear_sequence_task 272@

:SWEET7_12673
if 
  1750 > TIMERA
goto_if_false @SWEET7_12703
wait 0
goto @SWEET7_12673

:SWEET7_12703
if 
  not is_char_dead 264@
goto_if_false @SWEET7_12788
set_char_decision_maker 264@ {handleOrTemplate} 93@
remove_char_from_group 264@
clear_char_tasks 264@
273@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 805.1254 {y} -1072.344 {z} 23.5187 {speed} MoveState.Run {time} 10000
close_sequence_task 273@
perform_sequence_task 264@ {sequence} 273@
clear_sequence_task 273@

:SWEET7_12788
if 
  133@ == 1
goto_if_false @SWEET7_12839
if 
  TIMERA > 500
goto_if_false @SWEET7_12839
133@ = 4
TIMERA = 0

:SWEET7_12839
if 
  133@ == 4
goto_if_false @SWEET7_13226
if 
  TIMERA > 1000
goto_if_false @SWEET7_12908
if 
  303@ == 0
goto_if_false @SWEET7_12908
38@ = 1
303@ = 1

:SWEET7_12908
if 
  TIMERA > 3000
goto_if_false @SWEET7_13226
clear_area 804.576 {y} -1075.795 {z} 23.3946 {radius} 5.0 {clearParticles} True
set_fixed_camera_position 813.1065 {y} -1071.708 {z} 27.3524 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 812.2476 {y} -1072.201 {z} 27.2129 {switchStyle} SwitchType.JumpCut
133@ = 5
if 
  537@ == 0
goto_if_false @SWEET7_13027

:SWEET7_13027
if 
  not is_char_dead $scplayer
goto_if_false @SWEET7_13108
clear_char_tasks $scplayer
549@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 803.7976 {y} -1075.882 {z} 23.3933 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 272.0
close_sequence_task 549@
perform_sequence_task $scplayer {sequence} 549@
clear_sequence_task 549@

:SWEET7_13108
TIMERA = 0
if 
  not is_char_dead 264@
goto_if_false @SWEET7_13226
clear_char_tasks 264@
set_char_coordinates 264@ {x} 805.1254 {y} -1072.344 {z} 23.5187
set_char_heading 264@ {heading} 230.0
273@ = open_sequence_task 
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 820.4114 {y} -1076.603 {z} 23.0623 {speed} MoveState.Run {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 273@
perform_sequence_task 264@ {sequence} 273@
clear_sequence_task 273@

:SWEET7_13226
if 
  133@ == 5
goto_if_false @SWEET7_13381
if 
  TIMERA > 200
goto_if_false @SWEET7_13381
clear_area 804.576 {y} -1075.795 {z} 23.3946 {radius} 5.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_13367
clear_char_tasks $sweet
set_char_coordinates $sweet {x} 804.576 {y} -1075.795 {z} 23.3946
set_char_heading $sweet {heading} 271.0
83@ = open_sequence_task 
task_climb -1 {flag} True
close_sequence_task 83@
perform_sequence_task $sweet {sequence} 83@
clear_sequence_task 83@

:SWEET7_13367
TIMERA = 0
133@ = 6

:SWEET7_13381
if 
  133@ == 6
goto_if_false @SWEET7_13543
if 
  TIMERA > 1000
goto_if_false @SWEET7_13543
if 
  not is_char_dead 263@
goto_if_false @SWEET7_13529
clear_char_tasks 263@
set_char_coordinates 263@ {x} 804.8553 {y} -1074.422 {z} 23.4385
set_char_heading 263@ {heading} 262.0
272@ = open_sequence_task 
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 818.4114 {y} -1076.603 {z} 23.0623 {speed} MoveState.Run {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 272@
perform_sequence_task 263@ {sequence} 272@
clear_sequence_task 272@

:SWEET7_13529
133@ = 10
TIMERA = 0

:SWEET7_13543
if 
  133@ == 10
goto_if_false @SWEET7_13665
if 
  TIMERA > 2000
goto_if_false @SWEET7_13665
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_13626
clear_char_tasks $sweet
task_go_straight_to_coord $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623 {speed} MoveState.Run {time} 10000

:SWEET7_13626
if 
  537@ == 0
goto_if_false @SWEET7_13651
534@ = 31

:SWEET7_13651
133@ = 13
TIMERA = 0

:SWEET7_13665
if 
  133@ == 13
goto_if_false @SWEET7_13727
if 
  537@ == 0
goto_if_false @SWEET7_13727
if 
  TIMERA > 2000
goto_if_false @SWEET7_13727
133@ = 15

:SWEET7_13727
if 
  133@ == 15
goto_if_false @SWEET7_13960
38@ = 0
clear_char_tasks $scplayer
set_camera_behind_player 
switch_widescreen False
restore_camera_jumpcut 
clear_prints 
set_player_control $player1 {state} True
133@ = 20
clear_prints 
print_now 'TWAR635' {time} 6000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_13858
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623
set_char_heading $sweet {heading} 279.0
task_turn_char_to_face_char $sweet {target} $scplayer

:SWEET7_13858
if 
  not is_char_dead 263@
goto_if_false @SWEET7_13909
clear_char_tasks_immediately 263@
set_char_coordinates 263@ {x} 816.0391 {y} -1072.6071 {z} 23.71
set_char_heading 263@ {heading} 248.0

:SWEET7_13909
if 
  not is_char_dead 264@
goto_if_false @SWEET7_13960
clear_char_tasks_immediately 264@
set_char_coordinates 264@ {x} 815.9681 {y} -1073.723 {z} 23.5666
set_char_heading 264@ {heading} 253.0

:SWEET7_13960
if 
  53@ == 1
goto_if_false @SWEET7_14244
if 
  55@ == 20
goto_if_false @SWEET7_14244
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_14244
if 
  68@ == 0
goto_if_false @SWEET7_14153
if 
  locate_char_any_means_3d $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SWEET7_14153
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @SWEET7_14153
clear_char_tasks $sweet
if 
  not is_char_dead 82@
goto_if_false @SWEET7_14130

:SWEET7_14130
if 
  not is_char_dead 81@
goto_if_false @SWEET7_14146

:SWEET7_14146
68@ = 1

:SWEET7_14153
if 
  locate_char_any_means_3d $sweet {x} 818.4114 {y} -1076.603 {z} 23.0623 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SWEET7_14244
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @SWEET7_14244
53@ = 4
remove_blip 39@

:SWEET7_14244
if 
  1 > 53@
goto_if_false @SWEET7_14303
if 
  is_car_dead 78@
goto_if_false @SWEET7_14303
clear_prints 
print_now 'TWAR633' {time} 8000 {flag} 1
goto @SWEET7_32404

:SWEET7_14303
if 
  5 > 53@
goto_if_false @SWEET7_15562
if 
  does_char_exist 263@
goto_if_false @SWEET7_14379
if 
  is_char_dead 263@
goto_if_false @SWEET7_14379
clear_prints 
540@ = generate_random_int_in_range 0 {max} 3
539@ = 21
53@ = 999

:SWEET7_14379
if 
  does_char_exist 264@
goto_if_false @SWEET7_14437
if 
  is_char_dead 264@
goto_if_false @SWEET7_14437
clear_prints 
540@ = generate_random_int_in_range 0 {max} 3
539@ = 21
53@ = 999

:SWEET7_14437
if 
  does_char_exist 105@
goto_if_false @SWEET7_14662
if 
  has_char_been_damaged_by_char 105@ {handle} $scplayer
goto_if_false @SWEET7_14662
69@ = 1
if 
  not is_char_dead 105@
goto_if_false @SWEET7_14508
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_14508
if 
  not is_char_dead 107@
goto_if_false @SWEET7_14537
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_14537
if 
  not is_char_dead 109@
goto_if_false @SWEET7_14566
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_14566
if 
  not is_char_dead 97@
goto_if_false @SWEET7_14602
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14602
if 
  not is_char_dead 96@
goto_if_false @SWEET7_14638
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14638
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_14662
if 
  does_char_exist 107@
goto_if_false @SWEET7_14887
if 
  has_char_been_damaged_by_char 107@ {handle} $scplayer
goto_if_false @SWEET7_14887
69@ = 1
if 
  not is_char_dead 107@
goto_if_false @SWEET7_14733
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_14733
if 
  not is_char_dead 105@
goto_if_false @SWEET7_14762
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_14762
if 
  not is_char_dead 109@
goto_if_false @SWEET7_14791
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_14791
if 
  not is_char_dead 97@
goto_if_false @SWEET7_14827
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14827
if 
  not is_char_dead 96@
goto_if_false @SWEET7_14863
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_14863
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_14887
if 
  does_char_exist 109@
goto_if_false @SWEET7_15112
if 
  has_char_been_damaged_by_char 109@ {handle} $scplayer
goto_if_false @SWEET7_15112
69@ = 1
if 
  not is_char_dead 109@
goto_if_false @SWEET7_14958
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_14958
if 
  not is_char_dead 105@
goto_if_false @SWEET7_14987
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_14987
if 
  not is_char_dead 107@
goto_if_false @SWEET7_15016
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_15016
if 
  not is_char_dead 97@
goto_if_false @SWEET7_15052
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15052
if 
  not is_char_dead 96@
goto_if_false @SWEET7_15088
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15088
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_15112
if 
  does_char_exist 96@
goto_if_false @SWEET7_15337
if 
  has_char_been_damaged_by_char 96@ {handle} $scplayer
goto_if_false @SWEET7_15337
69@ = 1
if 
  not is_char_dead 105@
goto_if_false @SWEET7_15183
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_15183
if 
  not is_char_dead 107@
goto_if_false @SWEET7_15212
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_15212
if 
  not is_char_dead 109@
goto_if_false @SWEET7_15241
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_15241
if 
  not is_char_dead 97@
goto_if_false @SWEET7_15277
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15277
if 
  not is_char_dead 96@
goto_if_false @SWEET7_15313
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15313
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_15337
if 
  does_char_exist 97@
goto_if_false @SWEET7_15562
if 
  has_char_been_damaged_by_char 97@ {handle} $scplayer
goto_if_false @SWEET7_15562
69@ = 1
if 
  not is_char_dead 105@
goto_if_false @SWEET7_15408
clear_char_tasks 105@
task_kill_char_on_foot 105@ {target} $scplayer

:SWEET7_15408
if 
  not is_char_dead 107@
goto_if_false @SWEET7_15437
clear_char_tasks 107@
task_kill_char_on_foot 107@ {target} $scplayer

:SWEET7_15437
if 
  not is_char_dead 109@
goto_if_false @SWEET7_15466
clear_char_tasks 109@
task_kill_char_on_foot 109@ {target} $scplayer

:SWEET7_15466
if 
  not is_char_dead 97@
goto_if_false @SWEET7_15502
clear_char_tasks 97@
task_smart_flee_char 97@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15502
if 
  not is_char_dead 96@
goto_if_false @SWEET7_15538
clear_char_tasks 96@
task_smart_flee_char 96@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_15538
540@ = generate_random_int_in_range 0 {max} 3
539@ = 41
53@ = 999

:SWEET7_15562
if 
  53@ == 999
goto_if_false @SWEET7_16519
if and
  539@ > 20
  30 > 539@
goto_if_false @SWEET7_15820
if 
  537@ == 0
goto_if_false @SWEET7_15820
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_15820 {caseNum1} 21 {caseLabel1} @SWEET7_15687 {caseNum2} 22 {caseLabel2} @SWEET7_15776 {caseNum3} -1 {caseLabel3} @SWEET7_15820 {caseNum4} -1 {caseLabel4} @SWEET7_15820 {caseNum5} -1 {caseLabel5} @SWEET7_15820 {caseNum6} -1 {caseLabel6} @SWEET7_15820 {caseNum7} -1 {caseLabel7} @SWEET7_15820

:SWEET7_15687
if 
  540@ == 0
goto_if_false @SWEET7_15712
534@ = 17

:SWEET7_15712
if 
  540@ == 1
goto_if_false @SWEET7_15737
534@ = 18

:SWEET7_15737
if 
  540@ == 2
goto_if_false @SWEET7_15762
534@ = 19

:SWEET7_15762
539@ = 22
goto @SWEET7_15820

:SWEET7_15776
534@ = 0
print_now 'TWAR658' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_32404
goto @SWEET7_15820

:SWEET7_15820
if and
  539@ > 30
  40 > 539@
goto_if_false @SWEET7_16034
if 
  537@ == 0
goto_if_false @SWEET7_16034
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_16034 {caseNum1} 31 {caseLabel1} @SWEET7_15926 {caseNum2} 32 {caseLabel2} @SWEET7_15990 {caseNum3} -1 {caseLabel3} @SWEET7_16034 {caseNum4} -1 {caseLabel4} @SWEET7_16034 {caseNum5} -1 {caseLabel5} @SWEET7_16034 {caseNum6} -1 {caseLabel6} @SWEET7_16034 {caseNum7} -1 {caseLabel7} @SWEET7_16034

:SWEET7_15926
if 
  540@ == 0
goto_if_false @SWEET7_15951
534@ = 27

:SWEET7_15951
if 
  540@ == 1
goto_if_false @SWEET7_15976
534@ = 28

:SWEET7_15976
539@ = 32
goto @SWEET7_16034

:SWEET7_15990
534@ = 0
print_now 'TWAR619' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_32404
goto @SWEET7_16034

:SWEET7_16034
if and
  539@ > 40
  50 > 539@
goto_if_false @SWEET7_16273
if 
  537@ == 0
goto_if_false @SWEET7_16273
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_16273 {caseNum1} 41 {caseLabel1} @SWEET7_16140 {caseNum2} 42 {caseLabel2} @SWEET7_16229 {caseNum3} -1 {caseLabel3} @SWEET7_16273 {caseNum4} -1 {caseLabel4} @SWEET7_16273 {caseNum5} -1 {caseLabel5} @SWEET7_16273 {caseNum6} -1 {caseLabel6} @SWEET7_16273 {caseNum7} -1 {caseLabel7} @SWEET7_16273

:SWEET7_16140
if 
  540@ == 0
goto_if_false @SWEET7_16165
534@ = 37

:SWEET7_16165
if 
  540@ == 1
goto_if_false @SWEET7_16190
534@ = 38

:SWEET7_16190
if 
  540@ == 1
goto_if_false @SWEET7_16215
534@ = 39

:SWEET7_16215
539@ = 42
goto @SWEET7_16273

:SWEET7_16229
534@ = 0
print_now 'TWAR625' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_32404
goto @SWEET7_16273

:SWEET7_16273
if and
  539@ > 60
  70 > 539@
goto_if_false @SWEET7_16519
if 
  537@ == 0
goto_if_false @SWEET7_16519
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_16519 {caseNum1} 61 {caseLabel1} @SWEET7_16379 {caseNum2} 62 {caseLabel2} @SWEET7_16468 {caseNum3} -1 {caseLabel3} @SWEET7_16519 {caseNum4} -1 {caseLabel4} @SWEET7_16519 {caseNum5} -1 {caseLabel5} @SWEET7_16519 {caseNum6} -1 {caseLabel6} @SWEET7_16519 {caseNum7} -1 {caseLabel7} @SWEET7_16519

:SWEET7_16379
if 
  540@ == 0
goto_if_false @SWEET7_16404
534@ = 61

:SWEET7_16404
if 
  540@ == 1
goto_if_false @SWEET7_16429
534@ = 62

:SWEET7_16429
if 
  540@ == 2
goto_if_false @SWEET7_16454
534@ = 63

:SWEET7_16454
539@ = 62
goto @SWEET7_16519

:SWEET7_16468
534@ = 0
clear_prints 
print_now 'TWAR627' {time} 8000 {flag} 1
delete_char 98@
539@ = 0
goto @SWEET7_32404
goto @SWEET7_16519

:SWEET7_16519
if 
  53@ == 4
goto_if_false @SWEET7_17027
53@ = 5
if 
  not is_car_dead 78@
goto_if_false @SWEET7_16584
close_all_car_doors 78@
freeze_car_position 78@ {state} False
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
mark_car_as_no_longer_needed 78@

:SWEET7_16584
clear_area 894.0744 {y} -1073.4969 {z} 23.3203 {radius} 125.0 {clearParticles} True
set_player_control $player1 {state} False
76@ = create_car 445 {x} 897.3787 {y} -1073.502 {z} 23.3203
set_car_heading 76@ {heading} 90.2
change_car_colour 76@ {color1} 25 {color2} 40
lock_car_doors 76@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 76@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
mark_model_as_no_longer_needed 445
98@ = create_char_as_passenger 76@ {pedType} PedType.Mission1 {modelId} 104 {seat} SeatId.BikeRear
101@ = create_char_inside_car 76@ {pedType} PedType.Mission1 {modelId} 103
give_weapon_to_char 101@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 98@ {handleOrTemplate} 92@
set_char_decision_maker 101@ {handleOrTemplate} 92@
set_char_health 98@ {health} 260
set_char_max_health 98@ {maxHealth} 300
set_char_accuracy 98@ {accuracy} 100
add_armour_to_char 98@ {amount} 100
set_char_only_damaged_by_player 98@ {state} True
set_char_suffers_critical_hits 98@ {state} False
set_char_can_be_shot_in_vehicle 98@ {state} False
set_char_allowed_to_duck 98@ {state} False
111@ = create_char PedType.Mission1 {modelId} 103 {x} 876.4128 {y} -1068.866 {z} 23.3745
set_char_decision_maker 111@ {handleOrTemplate} 93@
set_char_heading 111@ {heading} 166.6
give_weapon_to_char 111@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_only_damaged_by_player 111@ {state} True
set_char_accuracy 111@ {accuracy} 90
set_char_health 111@ {health} 120
112@ = create_char PedType.Mission1 {modelId} 103 {x} 922.7446 {y} -1066.214 {z} 23.3203
set_char_decision_maker 112@ {handleOrTemplate} 93@
set_char_heading 112@ {heading} 66.6
give_weapon_to_char 112@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_shoot_rate 112@ {rate} 15
set_char_only_damaged_by_player 112@ {state} True
set_char_accuracy 112@ {accuracy} 90
set_char_health 112@ {health} 120
113@ = create_char PedType.Mission1 {modelId} 103 {x} 922.4503 {y} -1117.908 {z} 23.0517
set_char_decision_maker 113@ {handleOrTemplate} 93@
set_char_heading 113@ {heading} 357.6
give_weapon_to_char 113@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_shoot_rate 113@ {rate} 15
set_char_only_damaged_by_player 113@ {state} True
set_char_accuracy 113@ {accuracy} 90
set_char_health 113@ {health} 120

:SWEET7_17027
if 
  71@ == 0
goto_if_false @SWEET7_17559
if and
  53@ > 4
  999 > 53@
goto_if_false @SWEET7_17559
if 
  not is_char_dead 98@
goto_if_false @SWEET7_17110
$sw7_kanefuckedhealth = get_char_health 98@
set_var_int_to_var_int $sw7_kanehealth = $sw7_kanefuckedhealth
$sw7_kanehealth /= 3

:SWEET7_17110
if 
  132@ == 0
goto_if_false @SWEET7_17505
if 
  is_char_dead 98@
goto_if_false @SWEET7_17505
remove_blip 40@
53@ = 1352
gosub @SWEET7_31278
clear_prints 
71@ = 1
62@ = 99
63@ = 99
64@ = 99
539@ = 1
if 
  not is_car_dead 79@
goto_if_false @SWEET7_17311
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_17311
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
lock_car_doors 79@ {lockStatus} CarLock.LockoutPlayerOnly
clear_char_tasks $sweet
87@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 930.8062 {y} -1114.459 {z} 23.094 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 79@ {time} 30000 {seat} -1
close_sequence_task 87@
perform_sequence_task $sweet {sequence} 87@
clear_sequence_task 87@

:SWEET7_17311
if 
  not is_char_dead 81@
goto_if_false @SWEET7_17408
clear_char_tasks 81@
300@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 945.3914 {y} -1100.376 {z} 23.2999 {speed} MoveState.Run {time} -1
task_aim_gun_at_coord -1 {x} 969.3931 {y} -1098.3409 {z} 22.877 {time} 120000
task_stay_in_same_place -1 {state} True
close_sequence_task 300@
perform_sequence_task 81@ {sequence} 300@
clear_sequence_task 300@

:SWEET7_17408
if 
  not is_char_dead 82@
goto_if_false @SWEET7_17505
clear_char_tasks 82@
299@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 944.9411 {y} -1106.7729 {z} 23.2539 {speed} MoveState.Run {time} -1
task_aim_gun_at_coord -1 {x} 970.9636 {y} -1107.962 {z} 22.8672 {time} 120000
task_stay_in_same_place -1 {state} True
close_sequence_task 299@
perform_sequence_task 82@ {sequence} 299@
clear_sequence_task 299@

:SWEET7_17505
if 
  132@ > 0
goto_if_false @SWEET7_17559
if 
  is_char_dead 98@
goto_if_false @SWEET7_17559
remove_blip 40@
53@ = 1352
71@ = 4

:SWEET7_17559
if 
  71@ == 4
goto_if_false @SWEET7_17721
if 
  not is_car_dead 79@
goto_if_false @SWEET7_17721
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_17721
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_17721
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
if 
  is_char_sitting_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_17721
276@ = 1
clear_char_tasks $sweet
remove_blip 43@
271@ = add_blip_for_coord 2501.634 {y} -1674.131 {z} 12.3689
set_police_ignore_player $player1 {state} False
set_camera_behind_player 
71@ = 8
44@ = 0
539@ = 1

:SWEET7_17721
if 
  71@ == 8
goto_if_false @SWEET7_18514
if 
  132@ == 0
goto_if_false @SWEET7_17914
if 
  539@ > 0
goto_if_false @SWEET7_17914
if 
  537@ == 0
goto_if_false @SWEET7_17914
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_17914 {caseNum1} 1 {caseLabel1} @SWEET7_17856 {caseNum2} 2 {caseLabel2} @SWEET7_17877 {caseNum3} -1 {caseLabel3} @SWEET7_17914 {caseNum4} -1 {caseLabel4} @SWEET7_17914 {caseNum5} -1 {caseLabel5} @SWEET7_17914 {caseNum6} -1 {caseLabel6} @SWEET7_17914 {caseNum7} -1 {caseLabel7} @SWEET7_17914

:SWEET7_17856
534@ = 69
539@ = 2
goto @SWEET7_17914

:SWEET7_17877
534@ = 0
print_now 'TWAR646' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_17914

:SWEET7_17914
if 
  132@ > 0
goto_if_false @SWEET7_18133
if 
  539@ > 0
goto_if_false @SWEET7_18133
if 
  537@ == 0
goto_if_false @SWEET7_18133
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_18133 {caseNum1} 1 {caseLabel1} @SWEET7_18031 {caseNum2} 2 {caseLabel2} @SWEET7_18052 {caseNum3} 3 {caseLabel3} @SWEET7_18073 {caseNum4} 4 {caseLabel4} @SWEET7_18094 {caseNum5} -1 {caseLabel5} @SWEET7_18133 {caseNum6} -1 {caseLabel6} @SWEET7_18133 {caseNum7} -1 {caseLabel7} @SWEET7_18133

:SWEET7_18031
534@ = 64
539@ = 2
goto @SWEET7_18133

:SWEET7_18052
534@ = 65
539@ = 3
goto @SWEET7_18133

:SWEET7_18073
534@ = 66
539@ = 4
goto @SWEET7_18133

:SWEET7_18094
534@ = 0
clear_prints 
print_now 'TWAR646' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_18133

:SWEET7_18133
if 
  not is_car_dead 79@
goto_if_false @SWEET7_18514
if 
  44@ == 0
goto_if_false @SWEET7_18238
if 
  not is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_18238
539@ = 0
43@ = add_blip_for_car 79@
set_blip_as_friendly 43@ {state} True
remove_blip 271@
clear_prints 
print_now 'TWAR645' {time} 6000 {flag} 1
44@ = 1

:SWEET7_18238
if 
  44@ == 1
goto_if_false @SWEET7_18332
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_18332
remove_blip 43@
271@ = add_blip_for_coord 2501.634 {y} -1674.131 {z} 12.3689
set_police_ignore_player $player1 {state} False
clear_prints 
print_now 'TWAR647' {time} 8000 {flag} 1
44@ = 0

:SWEET7_18332
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @SWEET7_18375
if 
  not is_minigame_in_progress 
goto_if_false @SWEET7_18375
set_player_control $player1 {state} True

:SWEET7_18375
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_18514
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_18514
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_18514
if 
  locate_char_in_car_3d $scplayer {x} 2501.634 {y} -1674.131 {z} 12.3689 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SWEET7_18514
set_player_control $player1 {state} False
if 
  is_car_stopped 79@
goto_if_false @SWEET7_18514
remove_blip 271@
clear_prints 
71@ = 74

:SWEET7_18514
if 
  71@ == 74
goto_if_false @SWEET7_18727
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
clear_area 2501.634 {y} -1674.131 {z} 12.3689 {radius} 5.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 2499.582 {y} -1682.395 {z} 15.2226 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2499.969 {y} -1681.485 {z} 15.079 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_18699
85@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2516.634 {y} -1673.847 {z} 13.9671 {speed} MoveState.Walk {time} 20000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 85@
perform_sequence_task $sweet {sequence} 85@
clear_sequence_task 85@

:SWEET7_18699
TIMERB = 0
539@ = 1
71@ = 77
288@ = 1

:SWEET7_18727
if 
  288@ == 1
goto_if_false @SWEET7_18949
71@ = 77
if 
  539@ > 0
goto_if_false @SWEET7_18949
if 
  537@ == 0
goto_if_false @SWEET7_18949
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_18949 {caseNum1} 1 {caseLabel1} @SWEET7_18851 {caseNum2} 2 {caseLabel2} @SWEET7_18872 {caseNum3} 3 {caseLabel3} @SWEET7_18893 {caseNum4} 4 {caseLabel4} @SWEET7_18914 {caseNum5} -1 {caseLabel5} @SWEET7_18949 {caseNum6} -1 {caseLabel6} @SWEET7_18949 {caseNum7} -1 {caseLabel7} @SWEET7_18949

:SWEET7_18851
534@ = 70
539@ = 2
goto @SWEET7_18949

:SWEET7_18872
534@ = 71
539@ = 3
goto @SWEET7_18949

:SWEET7_18893
534@ = 72
539@ = 4
goto @SWEET7_18949

:SWEET7_18914
534@ = 0
71@ = 80
288@ = 2
539@ = 0
goto @SWEET7_18949

:SWEET7_18949
if 
  288@ == 2
goto_if_false @SWEET7_19003
set_camera_behind_player 
delete_char $sweet
switch_widescreen False
restore_camera_jumpcut 
clear_prints 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
goto @SWEET7_32422

:SWEET7_19003
if 
  53@ == 5
goto_if_false @SWEET7_19303
set_player_control $player1 {state} False
wait 0
do_fade 1500 {direction} Fade.Out

:SWEET7_19039
if 
  get_fading_status 
goto_if_false @SWEET7_19063
wait 0
goto @SWEET7_19039

:SWEET7_19063
set_player_control $player1 {state} False
if 
  not is_char_dead 81@
goto_if_false @SWEET7_19093
set_char_suffers_critical_hits 81@ {state} False

:SWEET7_19093
if 
  not is_char_dead 82@
goto_if_false @SWEET7_19116
set_char_suffers_critical_hits 82@ {state} False

:SWEET7_19116
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_19137
clear_char_tasks $sweet

:SWEET7_19137
switch_widescreen True
set_char_coordinates $scplayer {x} 816.8154 {y} -1075.3831 {z} 23.3516
set_char_heading $scplayer {heading} 277.0
set_fixed_camera_position 822.0925 {y} -1077.8781 {z} 23.6895 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 821.1437 {y} -1077.566 {z} 23.7335 {switchStyle} SwitchType.JumpCut
load_scene 803.9182 {y} -1078.626 {z} 23.3515
wait 1000
do_fade 1000 {direction} Fade.In

:SWEET7_19251
if 
  get_fading_status 
goto_if_false @SWEET7_19275
wait 0
goto @SWEET7_19251

:SWEET7_19275
53@ = 6
539@ = 1
TIMERA = 0
TIMERB = 0

:SWEET7_19303
if 
  53@ == 6
goto_if_false @SWEET7_20129
if 
  539@ > 0
goto_if_false @SWEET7_19553
if 
  537@ == 0
goto_if_false @SWEET7_19553
switch_start 539@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SWEET7_19553 {caseNum1} 1 {caseLabel1} @SWEET7_19420 {caseNum2} 2 {caseLabel2} @SWEET7_19434 {caseNum3} 3 {caseLabel3} @SWEET7_19493 {caseNum4} 4 {caseLabel4} @SWEET7_19514 {caseNum5} -1 {caseLabel5} @SWEET7_19553 {caseNum6} -1 {caseLabel6} @SWEET7_19553 {caseNum7} -1 {caseLabel7} @SWEET7_19553

:SWEET7_19420
539@ = 2
goto @SWEET7_19553

:SWEET7_19434
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_19479
if 
  not is_char_dead 98@
goto_if_false @SWEET7_19479
clear_char_tasks $sweet
task_turn_char_to_face_char $sweet {target} 98@

:SWEET7_19479
539@ = 3
goto @SWEET7_19553

:SWEET7_19493
534@ = 34
539@ = 4
goto @SWEET7_19553

:SWEET7_19514
534@ = 0
print_help 'TWAR661'
546@ = 1
539@ = 0
goto @SWEET7_19553

:SWEET7_19553
if 
  TIMERB > 10000
goto_if_false @SWEET7_19617
if 
  546@ == 1
goto_if_false @SWEET7_19617
clear_help 
print_help 'TWAR662'
546@ = 2
TIMERB = 0

:SWEET7_19617
if 
  546@ == 2
goto_if_false @SWEET7_20129
if 
  TIMERB > 8000
goto_if_false @SWEET7_20129
clear_help 
set_fixed_camera_position 891.9803 {y} -1068.343 {z} 23.6669 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 891.3828 {y} -1069.141 {z} 23.7373 {switchStyle} SwitchType.JumpCut
37@ = 1
if 
  75@ == 0
goto_if_false @SWEET7_19830
if 
  not is_car_dead 76@
goto_if_false @SWEET7_19830
if 
  not is_char_dead 101@
goto_if_false @SWEET7_19830
task_car_drive_to_coord 101@ {vehicle} 76@ {x} 875.3232 {y} -1073.502 {z} 23.3364 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
if 
  537@ == 0
goto_if_false @SWEET7_19823
534@ = 40

:SWEET7_19823
75@ = 1

:SWEET7_19830
if 
  not is_car_dead 76@
goto_if_false @SWEET7_20129
if 
  not is_char_dead 101@
goto_if_false @SWEET7_20129
if 
  locate_car_3d 76@ {x} 875.3232 {y} -1071.941 {z} 23.3364 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_20129
if 
  is_car_stopped 76@
goto_if_false @SWEET7_20129
53@ = 7
if 
  537@ == 0
goto_if_false @SWEET7_19958
545@ = 0

:SWEET7_19958
set_fixed_camera_position 871.9701 {y} -1069.5031 {z} 25.6673 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 872.7517 {y} -1070.042 {z} 25.353 {switchStyle} SwitchType.JumpCut
lock_car_doors 76@ {lockStatus} CarLock.Unlocked
set_car_proofs 76@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead 98@
goto_if_false @SWEET7_20122
99@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 869.1639 {y} -1071.619 {z} 25.2208 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} 892.7105 {y} -1077.929 {z} 23.2684 {speed} MoveState.Walk {time} 10000
close_sequence_task 99@
perform_sequence_task 98@ {sequence} 99@
clear_sequence_task 99@

:SWEET7_20122
TIMERA = 0

:SWEET7_20129
if 
  53@ == 7
goto_if_false @SWEET7_20273
if 
  TIMERA > 2000
goto_if_false @SWEET7_20273
if 
  not is_char_dead 101@
goto_if_false @SWEET7_20257
102@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 873.9978 {y} -1077.988 {z} 23.3203 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} 833.1347 {y} -1095.187 {z} 22.8281 {speed} MoveState.Walk {time} 10000
close_sequence_task 102@
perform_sequence_task 101@ {sequence} 102@
clear_sequence_task 102@

:SWEET7_20257
clear_prints 
53@ = 8
539@ = 1

:SWEET7_20273
if 
  53@ == 8
goto_if_false @SWEET7_20479
if 
  539@ > 0
goto_if_false @SWEET7_20453
if 
  537@ == 0
goto_if_false @SWEET7_20453
switch_start 539@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SWEET7_20453 {caseNum1} 1 {caseLabel1} @SWEET7_20390 {caseNum2} 2 {caseLabel2} @SWEET7_20411 {caseNum3} 3 {caseLabel3} @SWEET7_20432 {caseNum4} -1 {caseLabel4} @SWEET7_20453 {caseNum5} -1 {caseLabel5} @SWEET7_20453 {caseNum6} -1 {caseLabel6} @SWEET7_20453 {caseNum7} -1 {caseLabel7} @SWEET7_20453

:SWEET7_20390
534@ = 41
539@ = 2
goto @SWEET7_20453

:SWEET7_20411
534@ = 42
539@ = 3
goto @SWEET7_20453

:SWEET7_20432
534@ = 0
539@ = 0
goto @SWEET7_20453

:SWEET7_20453
if 
  TIMERA > 8000
goto_if_false @SWEET7_20479
53@ = 10

:SWEET7_20479
if 
  53@ == 10
goto_if_false @SWEET7_21122
37@ = 0
539@ = 0
270@ = 99
set_char_coordinates $scplayer {x} 817.3972 {y} -1076.1639 {z} 23.1065
if 
  not is_char_dead 263@
goto_if_false @SWEET7_20584
set_char_coordinates 263@ {x} 820.5947 {y} -1074.517 {z} 23.1755
set_char_heading 263@ {heading} 176.0

:SWEET7_20584
if 
  not is_char_dead 264@
goto_if_false @SWEET7_20630
set_char_coordinates 264@ {x} 818.3846 {y} -1079.001 {z} 22.929
set_char_heading 264@ {heading} 291.0

:SWEET7_20630
if 
  not is_char_dead 98@
goto_if_false @SWEET7_20733
clear_char_tasks_immediately 98@
if 
  not is_char_in_any_car 98@
goto_if_false @SWEET7_20687
set_char_coordinates 98@ {x} 890.4531 {y} -1063.368 {z} 23.7342

:SWEET7_20687
if 
  is_char_in_any_car 98@
goto_if_false @SWEET7_20723
warp_char_from_car_to_coord 98@ {x} 890.4531 {y} -1063.368 {z} 23.7342

:SWEET7_20723
task_achieve_heading 98@ {heading} 84.0

:SWEET7_20733
set_char_heading $scplayer {heading} 255.0
set_camera_behind_player 
switch_widescreen False
restore_camera_jumpcut 
remove_animation "SMOKING"
remove_animation "GRAVEYARD"
if 
  not is_char_dead 101@
goto_if_false @SWEET7_20843
clear_char_tasks_immediately 101@
set_char_coordinates 101@ {x} 844.5107 {y} -1101.66 {z} 22.8516
task_achieve_heading 101@ {heading} 135.0
give_weapon_to_char 101@ {weaponType} WeaponType.Pistol {ammo} 2000
add_armour_to_char 101@ {amount} 50

:SWEET7_20843
if 
  not is_car_dead 76@
goto_if_false @SWEET7_20911
set_car_coordinates 76@ {x} 875.3232 {y} -1073.502 {z} 23.3364
set_car_heading 76@ {heading} 89.0
lock_car_doors 76@ {lockStatus} CarLock.Unlocked
set_car_proofs 76@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SWEET7_20911
set_player_control $player1 {state} True
set_group_follow_status 260@ {state} True
if 
  not is_char_dead 263@
goto_if_false @SWEET7_20975
if 
  not is_group_member 263@ {handle} 260@
goto_if_false @SWEET7_20975
set_group_member 260@ {handle} 263@
set_char_never_leaves_group 263@ {state} True

:SWEET7_20975
if 
  not is_char_dead 264@
goto_if_false @SWEET7_21025
if 
  not is_group_member 264@ {handle} 260@
goto_if_false @SWEET7_21025
set_group_member 260@ {handle} 264@
set_char_never_leaves_group 264@ {state} True

:SWEET7_21025
if 
  not is_char_dead 101@
goto_if_false @SWEET7_21054
set_char_decision_maker 101@ {handleOrTemplate} 93@
clear_char_tasks 101@

:SWEET7_21054
task_stay_in_same_place 101@ {state} True
53@ = 15
if 
  not is_char_dead 98@
goto_if_false @SWEET7_21099
40@ = add_blip_for_char 98@
change_blip_colour 40@ {color} BlipColor.Red

:SWEET7_21099
if 
  not is_car_dead 78@
goto_if_false @SWEET7_21120
delete_car 78@

:SWEET7_21120
clear_help 

:SWEET7_21122
if 
  53@ == 15
goto_if_false @SWEET7_21672
set_police_ignore_player $player1 {state} True
if 
  not is_char_dead 101@
goto_if_false @SWEET7_21578
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_21273
84@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 832.3179 {y} -1081.627 {z} 22.9332 {speed} MoveState.Run {time} 10000
task_go_to_coord_while_shooting -1 {x} 833.9351 {y} -1101.9659 {z} 22.8281 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} 101@
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 101@
close_sequence_task 84@
perform_sequence_task $sweet {sequence} 84@
clear_sequence_task 84@

:SWEET7_21273
if 
  not is_char_dead 81@
goto_if_false @SWEET7_21388
clear_char_tasks 81@
88@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 828.6603 {y} -1080.408 {z} 23.03 {speed} MoveState.Sprint {time} 10000
task_go_to_coord_while_shooting -1 {x} 832.5559 {y} -1104.067 {z} 22.8281 {speed} MoveState.Sprint {turnRadius} 100.0 {stopRadius} 1.0 {target} 101@
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 101@
close_sequence_task 88@
perform_sequence_task 81@ {sequence} 88@
clear_sequence_task 88@

:SWEET7_21388
if 
  not is_char_dead 82@
goto_if_false @SWEET7_21503
clear_char_tasks 82@
90@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 832.2366 {y} -1077.225 {z} 23.1896 {speed} MoveState.Sprint {time} 10000
task_go_to_coord_while_shooting -1 {x} 835.7187 {y} -1097.325 {z} 22.8784 {speed} MoveState.Sprint {turnRadius} 100.0 {stopRadius} 1.0 {target} 101@
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 101@
close_sequence_task 90@
perform_sequence_task 82@ {sequence} 90@
clear_sequence_task 90@

:SWEET7_21503
gosub @SWEET7_30508
if 
  not is_char_dead 101@
goto_if_false @SWEET7_21578
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_21578
104@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $sweet
close_sequence_task 104@
perform_sequence_task 101@ {sequence} 104@
clear_sequence_task 104@

:SWEET7_21578
if 
  54@ == 1
goto_if_false @SWEET7_21638
if 
  not is_char_dead 97@
goto_if_false @SWEET7_21617
delete_char 97@

:SWEET7_21617
if 
  not is_char_dead 96@
goto_if_false @SWEET7_21638
delete_char 96@

:SWEET7_21638
TIMERB = 0
61@ = 1
539@ = 1
540@ = generate_random_int_in_range 0 {max} 3
clear_mission_audio MissionAudioSlot.Slot3

:SWEET7_21672
if 
  61@ == 1
goto_if_false @SWEET7_22268
if 
  539@ > 0
goto_if_false @SWEET7_21915
if 
  537@ == 0
goto_if_false @SWEET7_21915
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_21915 {caseNum1} 1 {caseLabel1} @SWEET7_21789 {caseNum2} 2 {caseLabel2} @SWEET7_21878 {caseNum3} -1 {caseLabel3} @SWEET7_21915 {caseNum4} -1 {caseLabel4} @SWEET7_21915 {caseNum5} -1 {caseLabel5} @SWEET7_21915 {caseNum6} -1 {caseLabel6} @SWEET7_21915 {caseNum7} -1 {caseLabel7} @SWEET7_21915

:SWEET7_21789
if 
  540@ == 0
goto_if_false @SWEET7_21814
534@ = 43

:SWEET7_21814
if 
  540@ == 1
goto_if_false @SWEET7_21839
534@ = 44

:SWEET7_21839
if 
  540@ == 1
goto_if_false @SWEET7_21864
534@ = 45

:SWEET7_21864
539@ = 2
goto @SWEET7_21915

:SWEET7_21878
print_now 'TWAR636' {time} 8000 {flag} 1
534@ = 0
539@ = 0
goto @SWEET7_21915

:SWEET7_21915
if 
  TIMERB > 6000
goto_if_false @SWEET7_22028
if 
  70@ == 0
goto_if_false @SWEET7_22028
if 
  not is_char_dead 101@
goto_if_false @SWEET7_22028
clear_char_tasks 101@
task_play_anim 101@ {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_health 101@ {health} 0
70@ = 1
clear_prints 

:SWEET7_22028
if 
  TIMERB > 7000
goto_if_false @SWEET7_22268
if 
  not is_char_dead 101@
goto_if_false @SWEET7_22073
clear_char_tasks 101@
task_die 101@

:SWEET7_22073
if 
  71@ == 0
goto_if_false @SWEET7_22147
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_22147
clear_char_tasks $sweet
flush_route 
extend_route 872.7859 {y} -1100.792 {z} 22.8437
65@ = 1
task_follow_point_route $sweet {speed} MoveState.Run {mode} RouteMode.Once

:SWEET7_22147
if 
  not is_char_dead 81@
goto_if_false @SWEET7_22203
clear_char_tasks 81@
flush_route 
extend_route 882.445 {y} -1102.041 {z} 22.8281
66@ = 1
task_follow_point_route 81@ {speed} MoveState.Sprint {mode} RouteMode.Once

:SWEET7_22203
if 
  not is_char_dead 82@
goto_if_false @SWEET7_22259
clear_char_tasks 82@
flush_route 
extend_route 888.5107 {y} -1099.9351 {z} 21.8918
67@ = 1
task_follow_point_route 82@ {speed} MoveState.Sprint {mode} RouteMode.Once

:SWEET7_22259
61@ = 2
clear_prints 

:SWEET7_22268
if 
  71@ == 0
goto_if_false @SWEET7_22405
if 
  65@ == 1
goto_if_false @SWEET7_22405
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_22405
if 
  locate_char_any_means_3d $sweet {x} 872.7859 {y} -1100.792 {z} 22.8437 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22405
clear_char_tasks $sweet
task_go_straight_to_coord $sweet {x} 875.9534 {y} -1079.515 {z} 23.3203 {speed} MoveState.Run {time} 10000
65@ = 2

:SWEET7_22405
if 
  66@ == 1
goto_if_false @SWEET7_22524
if 
  not is_char_dead 81@
goto_if_false @SWEET7_22524
if 
  locate_char_any_means_3d 81@ {x} 882.445 {y} -1102.041 {z} 22.8281 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22524
clear_char_tasks 81@
task_go_straight_to_coord 81@ {x} 881.3811 {y} -1088.896 {z} 23.1974 {speed} MoveState.Run {time} 10000
66@ = 2

:SWEET7_22524
if 
  67@ == 1
goto_if_false @SWEET7_22643
if 
  not is_char_dead 82@
goto_if_false @SWEET7_22643
if 
  locate_char_any_means_3d 82@ {x} 888.5107 {y} -1099.9351 {z} 21.8918 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22643
clear_char_tasks 82@
task_go_straight_to_coord 82@ {x} 893.6727 {y} -1077.295 {z} 23.2759 {speed} MoveState.Sprint {time} 10000
67@ = 2

:SWEET7_22643
if 
  61@ > 0
goto_if_false @SWEET7_23117
if 
  71@ == 0
goto_if_false @SWEET7_22825
if 
  64@ == 0
goto_if_false @SWEET7_22825
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_22825
if 
  locate_char_any_means_3d $sweet {x} 875.9534 {y} -1079.515 {z} 23.3203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22825
clear_char_tasks $sweet
if 
  not is_char_dead 105@
goto_if_false @SWEET7_22818
86@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} 105@
close_sequence_task 86@
perform_sequence_task $sweet {sequence} 86@
clear_sequence_task 86@

:SWEET7_22818
64@ = 1

:SWEET7_22825
if 
  62@ == 0
goto_if_false @SWEET7_22971
if 
  not is_char_dead 81@
goto_if_false @SWEET7_22971
if 
  locate_char_any_means_3d 81@ {x} 881.3811 {y} -1088.896 {z} 23.1974 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_22971
clear_char_tasks 81@
if 
  not is_char_dead 107@
goto_if_false @SWEET7_22964
89@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} 107@
close_sequence_task 89@
perform_sequence_task 81@ {sequence} 89@
clear_sequence_task 89@

:SWEET7_22964
62@ = 1

:SWEET7_22971
if 
  63@ == 0
goto_if_false @SWEET7_23117
if 
  not is_char_dead 82@
goto_if_false @SWEET7_23117
if 
  locate_char_any_means_3d 82@ {x} 893.6727 {y} -1077.295 {z} 23.2759 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_23117
clear_char_tasks 82@
if 
  not is_char_dead 109@
goto_if_false @SWEET7_23110
91@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} 109@
close_sequence_task 91@
perform_sequence_task 82@ {sequence} 91@
clear_sequence_task 91@

:SWEET7_23110
63@ = 1

:SWEET7_23117
if 
  62@ == 1
goto_if_false @SWEET7_23203
if 
  is_char_dead 107@
goto_if_false @SWEET7_23203
if 
  not is_char_dead 111@
goto_if_false @SWEET7_23196
if 
  not is_char_dead 81@
goto_if_false @SWEET7_23196
clear_char_tasks 81@
task_kill_char_on_foot 81@ {target} 111@

:SWEET7_23196
62@ = 2

:SWEET7_23203
if 
  63@ == 1
goto_if_false @SWEET7_23289
if 
  is_char_dead 109@
goto_if_false @SWEET7_23282
if 
  not is_char_dead 112@
goto_if_false @SWEET7_23282
if 
  not is_char_dead 82@
goto_if_false @SWEET7_23282
clear_char_tasks 82@
task_kill_char_on_foot 82@ {target} 112@

:SWEET7_23282
63@ = 2

:SWEET7_23289
if 
  71@ == 0
goto_if_false @SWEET7_23411
if 
  132@ == 0
goto_if_false @SWEET7_23411
if 
  64@ == 1
goto_if_false @SWEET7_23411
if 
  is_char_dead 105@
goto_if_false @SWEET7_23411
if 
  not is_char_dead 113@
goto_if_false @SWEET7_23404
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_23404
clear_char_tasks $sweet
task_kill_char_on_foot $sweet {target} 113@

:SWEET7_23404
64@ = 2

:SWEET7_23411
if 
  62@ == 2
goto_if_false @SWEET7_23497
if 
  is_char_dead 111@
goto_if_false @SWEET7_23497
if 
  not is_char_dead 81@
goto_if_false @SWEET7_23497
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23490
clear_char_tasks 81@
task_kill_char_on_foot 81@ {target} 98@

:SWEET7_23490
62@ = 3

:SWEET7_23497
if 
  63@ == 2
goto_if_false @SWEET7_23583
if 
  is_char_dead 112@
goto_if_false @SWEET7_23583
if 
  not is_char_dead 82@
goto_if_false @SWEET7_23583
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23576
clear_char_tasks 82@
task_kill_char_on_foot 82@ {target} 98@

:SWEET7_23576
63@ = 3

:SWEET7_23583
if 
  71@ == 0
goto_if_false @SWEET7_23705
if 
  132@ == 0
goto_if_false @SWEET7_23705
if 
  64@ == 2
goto_if_false @SWEET7_23705
if 
  is_char_dead 113@
goto_if_false @SWEET7_23705
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_23705
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23698
clear_char_tasks $sweet
task_kill_char_on_foot $sweet {target} 98@

:SWEET7_23698
64@ = 3

:SWEET7_23705
if 
  59@ == 1
goto_if_false @SWEET7_23913
if 
  not is_char_dead 98@
goto_if_false @SWEET7_23913
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_23827
set_char_allowed_to_duck 98@ {state} True
clear_char_tasks 98@
task_kill_char_on_foot_while_ducking 98@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
59@ = 2

:SWEET7_23827
if 
  60@ == 1
goto_if_false @SWEET7_23913
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_23913
gosub @SWEET7_30206
60@ = 2

:SWEET7_23913
if 
  59@ == 3
goto_if_false @SWEET7_24150
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24150
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_24064
clear_char_tasks 98@
task_kill_char_on_foot_while_ducking 98@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
if 
  not is_char_dead 112@
goto_if_false @SWEET7_24057
clear_char_tasks 112@
task_kill_char_on_foot_while_ducking 112@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50

:SWEET7_24057
59@ = 4

:SWEET7_24064
if 
  60@ == 2
goto_if_false @SWEET7_24150
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_24150
gosub @SWEET7_30206
60@ = 3

:SWEET7_24150
if 
  59@ == 5
goto_if_false @SWEET7_24265
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24265
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_24265
clear_char_tasks 98@
task_kill_char_on_foot_while_ducking 98@ {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
59@ = 6

:SWEET7_24265
if 
  59@ == 7
goto_if_false @SWEET7_24380
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24380
if 
  locate_char_any_means_3d 98@ {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_24380
clear_char_tasks 98@
task_stay_in_same_place 98@ {state} False
task_kill_char_on_foot 98@ {target} $scplayer
59@ = 8

:SWEET7_24380
if 
  53@ == 20
goto_if_false @SWEET7_24890
if 
  53@ <> 25
goto_if_false @SWEET7_24505
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24505
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET7_24505
53@ = 25
139@ += 1
gosub @SWEET7_30126
59@ = 1
60@ = 1
TIMERA = 0

:SWEET7_24505
if 
  53@ <> 25
goto_if_false @SWEET7_24593
if 
  not is_char_dead 98@
goto_if_false @SWEET7_24593
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_24593
53@ = 25
139@ += 1
gosub @SWEET7_30126
59@ = 1
60@ = 1

:SWEET7_24593
if 
  53@ <> 25
goto_if_false @SWEET7_24669
if 
  is_char_dead 105@
goto_if_false @SWEET7_24669
56@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_30126
59@ = 1
60@ = 1

:SWEET7_24669
if 
  53@ <> 25
goto_if_false @SWEET7_24745
if 
  is_char_dead 107@
goto_if_false @SWEET7_24745
57@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_30126
59@ = 1
60@ = 1

:SWEET7_24745
if 
  53@ <> 25
goto_if_false @SWEET7_24821
if 
  is_char_dead 109@
goto_if_false @SWEET7_24821
58@ = 1
53@ = 25
139@ += 1
gosub @SWEET7_30126
59@ = 1
60@ = 1

:SWEET7_24821
if 
  53@ <> 25
goto_if_false @SWEET7_24890
if 
  is_char_dead 111@
goto_if_false @SWEET7_24890
53@ = 25
139@ += 1
gosub @SWEET7_30126
59@ = 1
60@ = 1

:SWEET7_24890
if 
  53@ == 25
goto_if_false @SWEET7_25114
if 
  59@ == 2
goto_if_false @SWEET7_25114
if 
  53@ <> 30
goto_if_false @SWEET7_25026
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25026
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET7_25026
53@ = 30
139@ += 1
gosub @SWEET7_30126
59@ = 3
60@ = 2

:SWEET7_25026
if 
  53@ <> 30
goto_if_false @SWEET7_25114
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25114
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_25114
53@ = 30
139@ += 1
gosub @SWEET7_30126
59@ = 3
60@ = 2

:SWEET7_25114
if 
  53@ == 30
goto_if_false @SWEET7_25324
if 
  59@ == 4
goto_if_false @SWEET7_25324
if 
  53@ <> 35
goto_if_false @SWEET7_25243
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25243
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SWEET7_25243
53@ = 35
139@ += 1
gosub @SWEET7_30126
59@ = 5

:SWEET7_25243
if 
  53@ <> 35
goto_if_false @SWEET7_25324
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25324
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_25324
53@ = 35
139@ += 1
gosub @SWEET7_30126
59@ = 5

:SWEET7_25324
if 
  53@ == 35
goto_if_false @SWEET7_25548
if 
  59@ == 6
goto_if_false @SWEET7_25548
if 
  53@ <> 40
goto_if_false @SWEET7_25460
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25460
if 
  locate_char_any_means_char_2d $scplayer {target} 98@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SWEET7_25460
53@ = 40
139@ += 1
gosub @SWEET7_30126
59@ = 7
53@ = 50

:SWEET7_25460
if 
  53@ <> 40
goto_if_false @SWEET7_25548
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25548
if 
  has_char_been_damaged_by_char 98@ {handle} $scplayer
goto_if_false @SWEET7_25548
53@ = 40
139@ += 1
gosub @SWEET7_30126
59@ = 7
53@ = 50

:SWEET7_25548
if 
  53@ == 50
goto_if_false @SWEET7_25813
77@ = create_car 492 {x} 960.0995 {y} -1032.099 {z} 29.0858
set_car_heading 77@ {heading} 180.4729
change_car_colour 77@ {color1} 0 {color2} 2
set_can_burst_car_tyres 77@ {state} False
122@ = create_char_inside_car 77@ {pedType} PedType.CivMale {modelId} 103
set_char_suffers_critical_hits 122@ {state} False
set_char_decision_maker 122@ {handleOrTemplate} 93@
117@ = create_char_as_passenger 77@ {pedType} PedType.Mission1 {modelId} 103 {seat} SeatId.RearLeft
set_char_decision_maker 117@ {handleOrTemplate} 93@
give_weapon_to_char 117@ {weaponType} WeaponType.Shotgun {ammo} 2000
set_char_shoot_rate 117@ {rate} 15
119@ = create_char_as_passenger 77@ {pedType} PedType.Mission1 {modelId} 102 {seat} SeatId.RearRight
set_char_decision_maker 119@ {handleOrTemplate} 93@
give_weapon_to_char 119@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_shoot_rate 119@ {rate} 15
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
lock_car_doors 77@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_char_dead 122@
goto_if_false @SWEET7_25813
if 
  not is_car_dead 77@
goto_if_false @SWEET7_25813
task_car_drive_to_coord 122@ {vehicle} 77@ {x} 955.9623 {y} -1100.14 {z} 22.7516 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
53@ = 55

:SWEET7_25813
if 
  277@ == 0
goto_if_false @SWEET7_25909
if and
  53@ > 50
  999 > 53@
goto_if_false @SWEET7_25909
if 
  is_char_dead 122@
goto_if_false @SWEET7_25909
if 
  not is_char_dead 98@
goto_if_false @SWEET7_25902
clear_char_tasks 98@
task_kill_char_on_foot 98@ {target} $scplayer

:SWEET7_25902
277@ = 1

:SWEET7_25909
if 
  53@ == 55
goto_if_false @SWEET7_26096
if 
  not is_char_dead 122@
goto_if_false @SWEET7_26096
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26096
if 
  locate_car_3d 77@ {x} 955.9623 {y} -1100.14 {z} 22.7516 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_26096
if 
  not is_char_dead 122@
goto_if_false @SWEET7_26096
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26096
task_car_drive_to_coord 122@ {vehicle} 77@ {x} 929.9791 {y} -1103.645 {z} 22.8506 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
53@ = 60
if 
  not is_char_dead 98@
goto_if_false @SWEET7_26096

:SWEET7_26096
if 
  53@ == 60
goto_if_false @SWEET7_26454
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26454
if 
  locate_car_3d 77@ {x} 929.9791 {y} -1103.645 {z} 22.8506 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SWEET7_26454
if 
  is_car_stopped 77@
goto_if_false @SWEET7_26454
if 
  not is_char_dead 98@
goto_if_false @SWEET7_26282
clear_char_tasks 98@
if 
  not is_char_dead 98@
goto_if_false @SWEET7_26282
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26282
539@ = 1
540@ = generate_random_int_in_range 0 {max} 3
task_enter_car_as_passenger 98@ {vehicle} 77@ {time} -2 {seat} SeatId.BikeRear
53@ = 65

:SWEET7_26282
if 
  not is_char_dead 117@
goto_if_false @SWEET7_26368
clear_char_tasks 117@
118@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 916.3773 {y} -1107.937 {z} 23.1694 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 118@
perform_sequence_task 117@ {sequence} 118@
clear_sequence_task 118@
53@ = 65

:SWEET7_26368
if 
  not is_char_dead 119@
goto_if_false @SWEET7_26454
clear_char_tasks 119@
120@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 918.4471 {y} -1094.806 {z} 23.4897 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 120@
perform_sequence_task 119@ {sequence} 120@
clear_sequence_task 120@
53@ = 65

:SWEET7_26454
if 
  53@ == 65
goto_if_false @SWEET7_27065
if 
  539@ > 0
goto_if_false @SWEET7_26697
if 
  537@ == 0
goto_if_false @SWEET7_26697
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_26697 {caseNum1} 1 {caseLabel1} @SWEET7_26571 {caseNum2} 2 {caseLabel2} @SWEET7_26660 {caseNum3} -1 {caseLabel3} @SWEET7_26697 {caseNum4} -1 {caseLabel4} @SWEET7_26697 {caseNum5} -1 {caseLabel5} @SWEET7_26697 {caseNum6} -1 {caseLabel6} @SWEET7_26697 {caseNum7} -1 {caseLabel7} @SWEET7_26697

:SWEET7_26571
if 
  540@ == 0
goto_if_false @SWEET7_26596
534@ = 46

:SWEET7_26596
if 
  540@ == 1
goto_if_false @SWEET7_26621
534@ = 47

:SWEET7_26621
if 
  540@ == 2
goto_if_false @SWEET7_26646
534@ = 48

:SWEET7_26646
539@ = 2
goto @SWEET7_26697

:SWEET7_26660
534@ = 0
print_now 'TWAR626' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_26697

:SWEET7_26697
if 
  is_char_dead 98@
goto_if_false @SWEET7_26791
if 
  not is_car_dead 77@
goto_if_false @SWEET7_26791
if 
  not is_char_dead 122@
goto_if_false @SWEET7_26791
clear_char_tasks 122@
103@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 103@
perform_sequence_task 122@ {sequence} 103@
clear_sequence_task 103@
53@ = 90

:SWEET7_26791
if 
  not is_car_dead 77@
goto_if_false @SWEET7_27065
if 
  not is_char_dead 98@
goto_if_false @SWEET7_27065
if 
  not is_char_dead 122@
goto_if_false @SWEET7_27065
if 
  is_char_sitting_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_27065
remove_blip 40@
set_car_temp_action 77@ {actionId} TempAction.Reverse {time} 6000
lock_car_doors 77@ {lockStatus} CarLock.LockoutPlayerOnly
set_char_cant_be_dragged_out 98@ {state} True
set_char_cant_be_dragged_out 98@ {state} True
set_char_stay_in_car_when_jacked 98@ {state} True
53@ = 70
TIMERA = 0
clear_prints 
539@ = 11
540@ = generate_random_int_in_range 0 {max} 4
if 
  not is_car_dead 79@
goto_if_false @SWEET7_26963
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
lock_car_doors 79@ {lockStatus} CarLock.LockoutPlayerOnly

:SWEET7_26963
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_27065
39@ = add_blip_for_char $sweet
set_blip_as_friendly 39@ {state} True
clear_char_tasks $sweet
121@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 930.8062 {y} -1114.459 {z} 23.094 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 79@ {time} 30000 {seat} -1
close_sequence_task 121@
perform_sequence_task $sweet {sequence} 121@
clear_sequence_task 121@
132@ = 1

:SWEET7_27065
if 
  53@ == 70
goto_if_false @SWEET7_27427
if 
  539@ > 10
goto_if_false @SWEET7_27333
if 
  537@ == 0
goto_if_false @SWEET7_27333
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_27333 {caseNum1} 11 {caseLabel1} @SWEET7_27182 {caseNum2} 12 {caseLabel2} @SWEET7_27296 {caseNum3} -1 {caseLabel3} @SWEET7_27333 {caseNum4} -1 {caseLabel4} @SWEET7_27333 {caseNum5} -1 {caseLabel5} @SWEET7_27333 {caseNum6} -1 {caseLabel6} @SWEET7_27333 {caseNum7} -1 {caseLabel7} @SWEET7_27333

:SWEET7_27182
if 
  540@ == 0
goto_if_false @SWEET7_27207
534@ = 49

:SWEET7_27207
if 
  540@ == 1
goto_if_false @SWEET7_27232
534@ = 50

:SWEET7_27232
if 
  540@ == 2
goto_if_false @SWEET7_27257
534@ = 51

:SWEET7_27257
if 
  540@ == 3
goto_if_false @SWEET7_27282
534@ = 52

:SWEET7_27282
539@ = 12
goto @SWEET7_27333

:SWEET7_27296
534@ = 0
print_now 'TWAR629' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_27333

:SWEET7_27333
if 
  TIMERA > 5000
goto_if_false @SWEET7_27427
if 
  not is_car_dead 77@
goto_if_false @SWEET7_27427
if 
  not is_char_dead 122@
goto_if_false @SWEET7_27427
task_car_drive_to_coord 122@ {vehicle} 77@ {x} 1952.432 {y} -1136.238 {z} 24.621 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
clear_prints 
53@ = 75

:SWEET7_27427
if 
  53@ == 75
goto_if_false @SWEET7_27966
if 
  539@ > 10
goto_if_false @SWEET7_27697
if 
  537@ == 0
goto_if_false @SWEET7_27697
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_27697 {caseNum1} 11 {caseLabel1} @SWEET7_27544 {caseNum2} 12 {caseLabel2} @SWEET7_27658 {caseNum3} -1 {caseLabel3} @SWEET7_27697 {caseNum4} -1 {caseLabel4} @SWEET7_27697 {caseNum5} -1 {caseLabel5} @SWEET7_27697 {caseNum6} -1 {caseLabel6} @SWEET7_27697 {caseNum7} -1 {caseLabel7} @SWEET7_27697

:SWEET7_27544
if 
  540@ == 0
goto_if_false @SWEET7_27569
534@ = 49

:SWEET7_27569
if 
  540@ == 1
goto_if_false @SWEET7_27594
534@ = 50

:SWEET7_27594
if 
  540@ == 2
goto_if_false @SWEET7_27619
534@ = 51

:SWEET7_27619
if 
  540@ == 3
goto_if_false @SWEET7_27644
534@ = 52

:SWEET7_27644
539@ = 12
goto @SWEET7_27697

:SWEET7_27658
534@ = 0
clear_prints 
print_now 'TWAR629' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_27697

:SWEET7_27697
if 
  not is_char_dead 98@
goto_if_false @SWEET7_27966
if 
  locate_char_any_means_3d 98@ {x} 1952.432 {y} -1136.238 {z} 24.621 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SWEET7_27820
53@ = 80
if 
  not is_car_dead 77@
goto_if_false @SWEET7_27820
if 
  not is_char_dead 122@
goto_if_false @SWEET7_27820
clear_char_tasks 122@
task_car_drive_wander 122@ {vehicle} 77@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars

:SWEET7_27820
if 
  not is_car_dead 77@
goto_if_false @SWEET7_27966
if 
  not is_char_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_27893
if 
  73@ == 0
goto_if_false @SWEET7_27893
clear_char_tasks 98@
task_kill_char_on_foot 98@ {target} $scplayer
73@ = 1

:SWEET7_27893
if 
  not is_char_dead 122@
goto_if_false @SWEET7_27966
if 
  not is_char_in_car 122@ {vehicle} 77@
goto_if_false @SWEET7_27966
if 
  74@ == 0
goto_if_false @SWEET7_27966
clear_char_tasks 122@
task_kill_char_on_foot 122@ {target} $scplayer
74@ = 1

:SWEET7_27966
if 
  53@ == 80
goto_if_false @SWEET7_28238
if 
  not is_car_dead 77@
goto_if_false @SWEET7_28238
if 
  not is_char_dead 98@
goto_if_false @SWEET7_28238
if 
  not locate_char_any_means_char_3d $scplayer {target} 98@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @SWEET7_28092
if 
  not is_car_on_screen 77@
goto_if_false @SWEET7_28092
540@ = generate_random_int_in_range 0 {max} 3
539@ = 61
53@ = 999

:SWEET7_28092
if 
  not is_car_dead 77@
goto_if_false @SWEET7_28165
if 
  not is_char_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_28165
if 
  73@ == 0
goto_if_false @SWEET7_28165
clear_char_tasks 98@
task_kill_char_on_foot 98@ {target} $scplayer
73@ = 1

:SWEET7_28165
if 
  not is_char_dead 122@
goto_if_false @SWEET7_28238
if 
  not is_char_in_car 122@ {vehicle} 77@
goto_if_false @SWEET7_28238
if 
  74@ == 0
goto_if_false @SWEET7_28238
clear_char_tasks 122@
task_kill_char_on_foot 122@ {target} $scplayer
74@ = 1

:SWEET7_28238
if 
  71@ == 1
goto_if_false @SWEET7_28572
gosub @SWEET7_31754
if 
  539@ > 0
goto_if_false @SWEET7_28441
if 
  537@ == 0
goto_if_false @SWEET7_28441
switch_start 539@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SWEET7_28441 {caseNum1} 1 {caseLabel1} @SWEET7_28362 {caseNum2} 2 {caseLabel2} @SWEET7_28383 {caseNum3} 3 {caseLabel3} @SWEET7_28404 {caseNum4} -1 {caseLabel4} @SWEET7_28441 {caseNum5} -1 {caseLabel5} @SWEET7_28441 {caseNum6} -1 {caseLabel6} @SWEET7_28441 {caseNum7} -1 {caseLabel7} @SWEET7_28441

:SWEET7_28362
534@ = 67
539@ = 2
goto @SWEET7_28441

:SWEET7_28383
534@ = 68
539@ = 3
goto @SWEET7_28441

:SWEET7_28404
534@ = 0
print_now 'TWAR628' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_28441

:SWEET7_28441
if 
  123@ == 0
goto_if_false @SWEET7_28572
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_28572
if 
  not is_car_dead 79@
goto_if_false @SWEET7_28572
43@ = add_blip_for_car 79@
set_blip_as_friendly 43@ {state} True
clear_prints 
print_now 'TWAR644' {time} 6000 {flag} 1
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_28550
lock_car_doors 79@ {lockStatus} CarLock.Unlocked

:SWEET7_28550
set_car_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
71@ = 4

:SWEET7_28572
if 
  132@ == 1
goto_if_false @SWEET7_28681
if 
  not is_car_dead 79@
goto_if_false @SWEET7_28681
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_28681
if 
  is_char_sitting_in_car $sweet {vehicle} 79@
goto_if_false @SWEET7_28681
clear_prints 
539@ = 1
540@ = generate_random_int_in_range 0 {max} 2
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
set_car_health 79@ {health} 1000
132@ = 2

:SWEET7_28681
if 
  132@ == 2
goto_if_false @SWEET7_29040
if 
  539@ > 0
goto_if_false @SWEET7_28901
if 
  537@ == 0
goto_if_false @SWEET7_28901
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_28901 {caseNum1} 1 {caseLabel1} @SWEET7_28798 {caseNum2} 2 {caseLabel2} @SWEET7_28862 {caseNum3} -1 {caseLabel3} @SWEET7_28901 {caseNum4} -1 {caseLabel4} @SWEET7_28901 {caseNum5} -1 {caseLabel5} @SWEET7_28901 {caseNum6} -1 {caseLabel6} @SWEET7_28901 {caseNum7} -1 {caseLabel7} @SWEET7_28901

:SWEET7_28798
if 
  540@ == 0
goto_if_false @SWEET7_28823
534@ = 53

:SWEET7_28823
if 
  540@ == 1
goto_if_false @SWEET7_28848
534@ = 54

:SWEET7_28848
539@ = 2
goto @SWEET7_28901

:SWEET7_28862
534@ = 0
clear_prints 
print_now 'TWAR640' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_28901

:SWEET7_28901
if 
  not is_car_dead 79@
goto_if_false @SWEET7_29040
if 
  is_char_sitting_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_29040
set_car_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 79@ {lockStatus} CarLock.Unlocked
remove_blip 39@
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29012
40@ = add_blip_for_char 98@
clear_prints 
539@ = 1
540@ = generate_random_int_in_range 0 {max} 2
44@ = 0

:SWEET7_29012
276@ = 1
132@ = 3
275@ = 1
544@ = 1

:SWEET7_29040
if 
  132@ == 3
goto_if_false @SWEET7_29480
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29480
if 
  not is_car_dead 79@
goto_if_false @SWEET7_29480
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_29309
if 
  539@ > 0
goto_if_false @SWEET7_29309
if 
  537@ == 0
goto_if_false @SWEET7_29309
switch_start 539@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_29309 {caseNum1} 1 {caseLabel1} @SWEET7_29208 {caseNum2} 2 {caseLabel2} @SWEET7_29272 {caseNum3} -1 {caseLabel3} @SWEET7_29309 {caseNum4} -1 {caseLabel4} @SWEET7_29309 {caseNum5} -1 {caseLabel5} @SWEET7_29309 {caseNum6} -1 {caseLabel6} @SWEET7_29309 {caseNum7} -1 {caseLabel7} @SWEET7_29309

:SWEET7_29208
if 
  540@ == 0
goto_if_false @SWEET7_29233
534@ = 55

:SWEET7_29233
if 
  540@ == 1
goto_if_false @SWEET7_29258
534@ = 56

:SWEET7_29258
539@ = 2
goto @SWEET7_29309

:SWEET7_29272
534@ = 0
print_now 'TWAR641' {time} 6000 {flag} 1
539@ = 0
goto @SWEET7_29309

:SWEET7_29309
if 
  44@ == 0
goto_if_false @SWEET7_29391
if 
  not is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_29391
43@ = add_blip_for_car 79@
set_blip_as_friendly 43@ {state} True
remove_blip 40@
clear_prints 
print_now 'TWAR643' {time} 6000 {flag} 1
44@ = 1

:SWEET7_29391
if 
  44@ == 1
goto_if_false @SWEET7_29480
if 
  is_char_in_car $scplayer {vehicle} 79@
goto_if_false @SWEET7_29480
remove_blip 43@
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29473
40@ = add_blip_for_char 98@
print_now 'TWAR641' {time} 6000 {flag} 1

:SWEET7_29473
44@ = 0

:SWEET7_29480
if 
  275@ == 1
goto_if_false @SWEET7_29625
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_29625
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29625
if 
  locate_char_any_means_char_2d $sweet {target} 98@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @SWEET7_29625
clear_char_tasks $sweet
task_drive_by $sweet {targetChar} 98@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 90
275@ = 2
544@ = 1
540@ = generate_random_int_in_range 0 {max} 4

:SWEET7_29625
if 
  275@ == 2
goto_if_false @SWEET7_29968
if 
  544@ > 0
goto_if_false @SWEET7_29893
if 
  537@ == 0
goto_if_false @SWEET7_29893
switch_start 544@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SWEET7_29893 {caseNum1} 1 {caseLabel1} @SWEET7_29742 {caseNum2} 2 {caseLabel2} @SWEET7_29856 {caseNum3} -1 {caseLabel3} @SWEET7_29893 {caseNum4} -1 {caseLabel4} @SWEET7_29893 {caseNum5} -1 {caseLabel5} @SWEET7_29893 {caseNum6} -1 {caseLabel6} @SWEET7_29893 {caseNum7} -1 {caseLabel7} @SWEET7_29893

:SWEET7_29742
if 
  540@ == 0
goto_if_false @SWEET7_29767
534@ = 57

:SWEET7_29767
if 
  540@ == 1
goto_if_false @SWEET7_29792
534@ = 58

:SWEET7_29792
if 
  540@ == 2
goto_if_false @SWEET7_29817
534@ = 59

:SWEET7_29817
if 
  540@ == 3
goto_if_false @SWEET7_29842
534@ = 60

:SWEET7_29842
544@ = 2
goto @SWEET7_29893

:SWEET7_29856
534@ = 0
print_now 'TWAR649' {time} 6000 {flag} 1
544@ = 0
goto @SWEET7_29893

:SWEET7_29893
if 
  not is_char_dead $sweet
goto_if_false @SWEET7_29968
if 
  not is_char_dead 98@
goto_if_false @SWEET7_29968
if 
  not locate_char_any_means_char_2d $sweet {target} 98@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SWEET7_29968
clear_char_tasks $sweet
275@ = 1

:SWEET7_29968
if 
  276@ == 1
goto_if_false @SWEET7_30048
if 
  not locate_char_any_means_3d $scplayer {x} 875.3232 {y} -1071.941 {z} 23.3364 {xRadius} 400.0 {yRadius} 400.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @SWEET7_30048
gosub @SWEET7_32180
276@ = 2

:SWEET7_30048
if 
  279@ == 1
goto_if_false @SWEET7_30119
if 
  TIMERB > 6000
goto_if_false @SWEET7_30119
clear_help 
print_help 'TWAR801'
279@ = 2
280@ = 1
TIMERB = 0

:SWEET7_30119
goto @SWEET7_5066

:SWEET7_30126
if 
  not is_char_dead 98@
goto_if_false @SWEET7_30204
100@ = open_sequence_task 
task_toggle_ped_threat_scanner -1 {onFoot} False {inCar} False {duringScriptTask} False
task_go_straight_to_coord -1 {x} 140@(139@,10f) {y} 150@(139@,10f) {z} 160@(139@,10f) {speed} MoveState.Sprint {time} -2
close_sequence_task 100@
perform_sequence_task 98@ {sequence} 100@
clear_sequence_task 100@

:SWEET7_30204
return 

:SWEET7_30206
if 
  not is_char_dead 105@
goto_if_false @SWEET7_30298
106@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 170@(139@,10f) {y} 180@(139@,10f) {z} 190@(139@,10f) {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 106@
perform_sequence_task 105@ {sequence} 106@
clear_sequence_task 106@

:SWEET7_30298
if 
  not is_char_dead 107@
goto_if_false @SWEET7_30404
108@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 200@(139@,10f) {y} 210@(139@,10f) {z} 220@(139@,10f) {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 70
close_sequence_task 108@
perform_sequence_task 107@ {sequence} 108@
clear_sequence_task 108@

:SWEET7_30404
if 
  not is_char_dead 109@
goto_if_false @SWEET7_30506
set_follow_node_threshold_distance 109@ {range} 150.0
110@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 230@(139@,10f) {y} 240@(139@,10f) {z} 250@(139@,10f) {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 110@
perform_sequence_task 109@ {sequence} 110@
clear_sequence_task 110@

:SWEET7_30506
return 

:SWEET7_30508
53@ = 20
54@ = 1
279@ = 1
TIMERB = 0
if 
  not is_char_dead 105@
goto_if_false @SWEET7_30562
give_weapon_to_char 105@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30562
if 
  not is_char_dead 107@
goto_if_false @SWEET7_30588
give_weapon_to_char 107@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30588
if 
  not is_char_dead 109@
goto_if_false @SWEET7_30614
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30614
if 
  not is_char_dead 98@
goto_if_false @SWEET7_30640
give_weapon_to_char 98@ {weaponType} WeaponType.Pistol {ammo} 2000

:SWEET7_30640
if 
  not is_char_dead 98@
goto_if_false @SWEET7_30781
100@ = open_sequence_task 
if 
  139@ == 3
goto_if_false @SWEET7_30702
task_go_straight_to_coord -1 {x} 889.4055 {y} -1057.0601 {z} 24.0241 {speed} MoveState.Sprint {time} -2

:SWEET7_30702
if 
  3 > 139@
goto_if_false @SWEET7_30743
task_go_straight_to_coord -1 {x} 889.4055 {y} -1057.0601 {z} 24.0241 {speed} MoveState.Sprint {time} -2

:SWEET7_30743
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 100@
perform_sequence_task 98@ {sequence} 100@
clear_sequence_task 100@

:SWEET7_30781
if 
  not is_char_dead 105@
goto_if_false @SWEET7_30877
set_follow_node_threshold_distance 105@ {range} 150.0
106@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 884.8275 {y} -1057.9969 {z} 24.8115 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 106@
perform_sequence_task 105@ {sequence} 106@
clear_sequence_task 106@

:SWEET7_30877
if 
  not is_char_dead 107@
goto_if_false @SWEET7_30987
set_follow_node_threshold_distance 107@ {range} 150.0
108@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 880.5971 {y} -1057.468 {z} 25.9345 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 70
close_sequence_task 108@
perform_sequence_task 107@ {sequence} 108@
clear_sequence_task 108@

:SWEET7_30987
if 
  not is_char_dead 109@
goto_if_false @SWEET7_31083
set_follow_node_threshold_distance 109@ {range} 150.0
110@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 881.8948 {y} -1061.774 {z} 24.2952 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 110@
perform_sequence_task 109@ {sequence} 110@
clear_sequence_task 110@

:SWEET7_31083
if 
  not is_char_dead 111@
goto_if_false @SWEET7_31152
set_follow_node_threshold_distance 111@ {range} 150.0
114@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 70
close_sequence_task 114@
perform_sequence_task 111@ {sequence} 114@
clear_sequence_task 114@

:SWEET7_31152
if 
  not is_char_dead 112@
goto_if_false @SWEET7_31214
set_follow_node_threshold_distance 112@ {range} 150.0
115@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 115@
perform_sequence_task 112@ {sequence} 115@
clear_sequence_task 115@

:SWEET7_31214
if 
  not is_char_dead 113@
goto_if_false @SWEET7_31276
set_follow_node_threshold_distance 113@ {range} 150.0
116@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 116@
perform_sequence_task 113@ {sequence} 116@
clear_sequence_task 116@

:SWEET7_31276
return 

:SWEET7_31278
if 
  not is_char_dead 105@
goto_if_false @SWEET7_31323
45@ = add_blip_for_char 105@
change_blip_scale 45@ {size} 2
123@ += 1
124@ = 1

:SWEET7_31323
if 
  not is_char_dead 107@
goto_if_false @SWEET7_31368
46@ = add_blip_for_char 107@
change_blip_scale 46@ {size} 2
123@ += 1
125@ = 1

:SWEET7_31368
if 
  not is_char_dead 109@
goto_if_false @SWEET7_31413
47@ = add_blip_for_char 109@
change_blip_scale 47@ {size} 2
123@ += 1
126@ = 1

:SWEET7_31413
if 
  not is_char_dead 111@
goto_if_false @SWEET7_31458
48@ = add_blip_for_char 111@
change_blip_scale 48@ {size} 2
123@ += 1
127@ = 1

:SWEET7_31458
if 
  not is_char_dead 112@
goto_if_false @SWEET7_31503
49@ = add_blip_for_char 112@
change_blip_scale 49@ {size} 2
123@ += 1
128@ = 1

:SWEET7_31503
if 
  not is_char_dead 113@
goto_if_false @SWEET7_31548
50@ = add_blip_for_char 113@
change_blip_scale 50@ {size} 2
123@ += 1
129@ = 1

:SWEET7_31548
if 
  not is_char_dead 117@
goto_if_false @SWEET7_31632
clear_char_tasks 117@
118@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 118@
perform_sequence_task 117@ {sequence} 118@
clear_sequence_task 118@
51@ = add_blip_for_char 117@
change_blip_scale 51@ {size} 2
123@ += 1
130@ = 1

:SWEET7_31632
if 
  not is_char_dead 119@
goto_if_false @SWEET7_31716
clear_char_tasks 119@
120@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 120@
perform_sequence_task 119@ {sequence} 120@
clear_sequence_task 120@
52@ = add_blip_for_char 119@
change_blip_scale 52@ {size} 2
123@ += 1
131@ = 1

:SWEET7_31716
if 
  not is_char_dead 122@
goto_if_false @SWEET7_31752
clear_char_tasks 122@
task_smart_flee_char 122@ {threat} $scplayer {radius} 100.0 {time} -1

:SWEET7_31752
return 

:SWEET7_31754
if 
  124@ == 1
goto_if_false @SWEET7_31807
if 
  is_char_dead 105@
goto_if_false @SWEET7_31807
remove_blip 45@
123@ -= 1
124@ = 2

:SWEET7_31807
if 
  125@ == 1
goto_if_false @SWEET7_31860
if 
  is_char_dead 107@
goto_if_false @SWEET7_31860
remove_blip 46@
123@ -= 1
125@ = 2

:SWEET7_31860
if 
  126@ == 1
goto_if_false @SWEET7_31913
if 
  is_char_dead 109@
goto_if_false @SWEET7_31913
remove_blip 47@
123@ -= 1
126@ = 2

:SWEET7_31913
if 
  127@ == 1
goto_if_false @SWEET7_31966
if 
  is_char_dead 111@
goto_if_false @SWEET7_31966
remove_blip 48@
123@ -= 1
127@ = 2

:SWEET7_31966
if 
  128@ == 1
goto_if_false @SWEET7_32019
if 
  is_char_dead 112@
goto_if_false @SWEET7_32019
123@ -= 1
remove_blip 49@
128@ = 2

:SWEET7_32019
if 
  129@ == 1
goto_if_false @SWEET7_32072
if 
  is_char_dead 113@
goto_if_false @SWEET7_32072
remove_blip 50@
123@ -= 1
129@ = 2

:SWEET7_32072
if 
  130@ == 1
goto_if_false @SWEET7_32125
if 
  is_char_dead 117@
goto_if_false @SWEET7_32125
remove_blip 51@
123@ -= 1
130@ = 2

:SWEET7_32125
if 
  131@ == 1
goto_if_false @SWEET7_32178
if 
  is_char_dead 119@
goto_if_false @SWEET7_32178
remove_blip 52@
123@ -= 1
131@ = 2

:SWEET7_32178
return 

:SWEET7_32180
if 
  not is_car_dead 79@
goto_if_false @SWEET7_32276
if 
  not is_char_dead 263@
goto_if_false @SWEET7_32236
if 
  not is_char_sitting_in_car 263@ {vehicle} 79@
goto_if_false @SWEET7_32236
mark_char_as_no_longer_needed 263@

:SWEET7_32236
if 
  not is_char_dead 264@
goto_if_false @SWEET7_32276
if 
  not is_char_sitting_in_car 264@ {vehicle} 79@
goto_if_false @SWEET7_32276
mark_char_as_no_longer_needed 264@

:SWEET7_32276
if 
  not is_char_dead 98@
goto_if_false @SWEET7_32332
if 
  not is_car_dead 77@
goto_if_false @SWEET7_32332
if 
  not is_char_sitting_in_car 98@ {vehicle} 77@
goto_if_false @SWEET7_32332
mark_car_as_no_longer_needed 77@

:SWEET7_32332
mark_char_as_no_longer_needed 81@
mark_char_as_no_longer_needed 82@
mark_char_as_no_longer_needed 117@
mark_char_as_no_longer_needed 119@
mark_char_as_no_longer_needed 96@
mark_char_as_no_longer_needed 97@
mark_char_as_no_longer_needed 105@
mark_char_as_no_longer_needed 107@
mark_char_as_no_longer_needed 109@
mark_char_as_no_longer_needed 111@
mark_char_as_no_longer_needed 112@
mark_char_as_no_longer_needed 113@
mark_car_as_no_longer_needed 76@
mark_car_as_no_longer_needed 78@
return 

:SWEET7_32404
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SWEET7_32422
281@ = get_int_stat StatId.Respect
281@ = get_int_stat StatId.Respect
register_mission_passed 'SWEET_7'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_sweet_mission_counter += 1
remove_blip $sweet_contact_blip
set_police_ignore_player $player1 {state} False
return 

:SWEET7_32503
set_everyone_ignore_player $player1 {state} False
switch_roads_on 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
switch_ped_roads_on 2297.0381 {leftBottomY} -1664.6 {leftBottomZ} 10.8474 {rightTopX} 2324.865 {rightTopY} -1652.124 {rightTopZ} 14.8382
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 35@
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 36@
clear_mission_audio MissionAudioSlot.Slot3
clear_help 
$timer_mobile_start = get_game_timer 
set_police_ignore_player $player1 {state} False
clear_wanted_level $player1
remove_char_elegantly $sweet
release_weather 
unload_special_character 1
if 
  not is_char_dead 263@
goto_if_false @SWEET7_32675
set_char_suffers_critical_hits 263@ {state} True
set_char_health 263@ {health} 100
mark_char_as_no_longer_needed 263@

:SWEET7_32675
if 
  not is_char_dead 264@
goto_if_false @SWEET7_32710
set_char_suffers_critical_hits 264@ {state} True
set_char_health 264@ {health} 100
mark_char_as_no_longer_needed 264@

:SWEET7_32710
remove_blip 40@
remove_blip 39@
remove_blip 41@
remove_blip 42@
remove_blip 43@
remove_blip 45@
remove_blip 46@
remove_blip 47@
remove_blip 48@
remove_blip 49@
remove_blip 50@
remove_blip 51@
remove_blip 52@
remove_blip 267@
remove_blip 265@
remove_blip 266@
remove_blip 292@
remove_blip 293@
remove_blip 294@
remove_blip 271@
clear_onscreen_timer $sw7_funeraltimer
remove_animation "GRAVEYARD"
remove_animation "SMOKING"
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 543
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 12
switch_roads_on 772.243 {leftBottomY} -1050.323 {leftBottomZ} 10.2931 {rightTopX} 806.2723 {rightTopY} -1130.1949 {rightTopZ} 23.8359
switch_roads_on 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
switch_ped_roads_on 135@ {leftBottomY} 136@ {leftBottomZ} 0.0 {rightTopX} 137@ {rightTopY} 138@ {rightTopZ} 60.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 21---------------
// Originally: Doberman

:CRASH4
script_name 'CRASH4'
gosub @CRASH4_47
if 
  has_deatharrest_been_executed 
goto_if_false @CRASH4_38
gosub @CRASH4_6181

:CRASH4_38
gosub @CRASH4_6780
terminate_this_script 

:CRASH4_47
$onmission = 1
$flag_on_doberman_mission = 1
49@ = 0
50@ = 0
46@ = 0
36@ = 0
37@ = 0
38@ = 0
42@ = 0
42@ = 0
44@ = 0
56@ = 0.0
57@ = 0.0
59@ = 0
58@ = 0
61@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
68@ = 0
70@ = 0
$flag_bought_gun_for_doberman = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
register_mission_given 
wait 0
clear_this_print_big_now TextStyle.Middle
wait 1000
load_mission_text 'CRASH2'
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
71@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Vagos
72@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 0
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
43@ = load_char_decision_maker DecisionMakerType.Tough
request_model 102
request_model 103
request_model 372
request_animation "GANGS"
request_animation "SMOKING"
request_model #CIGAR
request_model 106
request_model 107
load_all_models_now 

:CRASH4_442
if or
  not has_model_loaded 103
  not has_model_loaded 372
  not has_model_loaded 102
  not has_animation_loaded "GANGS"
goto_if_false @CRASH4_486
wait 0
goto @CRASH4_442

:CRASH4_486
if or
  not has_animation_loaded "SMOKING"
  not has_model_loaded #CIGAR
  not has_model_loaded 106
  not has_model_loaded 107
goto_if_false @CRASH4_531
wait 0
goto @CRASH4_486

:CRASH4_531
set_ped_density_multiplier 0.0
clear_area 1363.689 {y} -1280.441 {z} 12.5469 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1363.689 {y} -1280.441 {z} 12.5469
load_scene 1363.689 {y} -1280.441 {z} 12.5469
set_char_heading $scplayer {heading} 90.0
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_disappear 
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
clear_area 1350.177 {y} -1264.921 {z} 14.7166 {radius} 1.0 {clearParticles} True
set_fixed_camera_position 1350.177 {y} -1264.921 {z} 14.7166 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1350.9871 {y} -1265.499 {z} 14.8167 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:CRASH4_730
if 
  get_fading_status 
goto_if_false @CRASH4_754
wait 0
goto @CRASH4_730

:CRASH4_754
print_now 'AMUHLP' {time} 10000 {flag} 1
skip_cutscene_start_internal @CRASH4_814
TIMERA = 0

:CRASH4_784
if 
  5000 > TIMERA
goto_if_false @CRASH4_814
wait 0
goto @CRASH4_784

:CRASH4_814
skip_cutscene_end 
clear_this_print 'AMUHLP'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_842
if 
  get_fading_status 
goto_if_false @CRASH4_866
wait 0
goto @CRASH4_842

:CRASH4_866
request_model #LAEJEFFERSALPHA
request_model #LAELODPARK02
request_model #LAEMACPARK02

:CRASH4_879
if or
  not has_model_loaded #LAEJEFFERSALPHA
  not has_model_loaded #LAELODPARK02
  not has_model_loaded #LAEMACPARK02
goto_if_false @CRASH4_914
wait 0
goto @CRASH4_879

:CRASH4_914
load_all_models_now 
switch_widescreen True
if 
  $played_cut1_before_crash4 == 1
goto_if_false @CRASH4_945
skip_cutscene_start_internal @CRASH4_2100

:CRASH4_945
set_char_coordinates $scplayer {x} 1859.931 {y} -1137.139 {z} 22.946
load_scene_in_direction 1859.931 {y} -1137.139 {z} 22.946 {heading} 89.9
if 
  62@ == 0
goto_if_false @CRASH4_1339
clear_area 1924.632 {y} -1126.623 {z} 24.135 {radius} 30.0 {clearParticles} True
53@ = create_char PedType.Mission1 {modelId} 103 {x} 1924.632 {y} -1126.623 {z} 24.135
set_char_only_damaged_by_player 53@ {state} True
set_char_heading 53@ {heading} 180.0
60@ = create_object #CIGAR {x} 1924.632 {y} -1126.623 {z} 24.135
task_pick_up_object 53@ {object} 60@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} -0.02 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_play_anim_non_interruptable 53@ {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
54@ = create_char PedType.Mission1 {modelId} 102 {x} 1921.157 {y} -1127.438 {z} 24.048
set_char_only_damaged_by_player 54@ {state} True
set_char_heading 54@ {heading} 270.0
task_play_anim_non_interruptable 54@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
55@ = create_char PedType.Mission1 {modelId} 103 {x} 1922.157 {y} -1127.438 {z} 24.048
set_char_only_damaged_by_player 55@ {state} True
set_char_heading 55@ {heading} 90.0
task_play_anim_non_interruptable 55@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
62@ = 1

:CRASH4_1339
set_fixed_camera_position 1858.9091 {y} -1136.1021 {z} 26.7903 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1859.8669 {y} -1136.38 {z} 26.725 {switchStyle} SwitchType.JumpCut
set_ped_density_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:CRASH4_1412
if 
  get_fading_status 
goto_if_false @CRASH4_1436
wait 0
goto @CRASH4_1412

:CRASH4_1436
print_now 'CM2_10' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_1459
if 
  10000 > TIMERA
goto_if_false @CRASH4_1489
wait 0
goto @CRASH4_1459

:CRASH4_1489
clear_this_print 'CM2_10'
set_fixed_camera_position 1916.77 {y} -1130.479 {z} 26.9978 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1917.738 {y} -1130.27 {z} 26.8593 {switchStyle} SwitchType.JumpCut
print_now 'CM2_11' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_1574
if 
  10000 > TIMERA
goto_if_false @CRASH4_1774
wait 0
if 
  49@ == 0
goto_if_false @CRASH4_1767
if 
  TIMERA > 7000
goto_if_false @CRASH4_1767
if 
  not is_char_dead 54@
goto_if_false @CRASH4_1767
if 
  not is_char_dead 55@
goto_if_false @CRASH4_1767
task_play_anim_non_interruptable 54@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
56@ = 0.0
task_play_anim_non_interruptable 55@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
57@ = 0.0
49@ = 1

:CRASH4_1767
goto @CRASH4_1574

:CRASH4_1774
clear_this_print 'CM2_11'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_1800
if 
  get_fading_status 
goto_if_false @CRASH4_1824
wait 0
goto @CRASH4_1800

:CRASH4_1824
mark_model_as_no_longer_needed #LAEJEFFERSALPHA
mark_model_as_no_longer_needed #LAELODPARK02
mark_model_as_no_longer_needed #LAEMACPARK02
clear_this_print 'CM2_2'
request_collision 1363.689 {y} -1280.441
clear_area 1363.689 {y} -1280.441 {z} 12.5469 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1363.689 {y} -1280.441 {z} 12.5469
set_char_heading $scplayer {heading} 90.0
load_scene_in_direction 1363.689 {y} -1280.441 {z} 12.5469 {heading} 90.0
remove_animation "GANGS"
remove_animation "SMOKING"
if 
  62@ == 1
goto_if_false @CRASH4_1994
delete_char 53@
delete_char 54@
delete_char 55@
delete_object 60@

:CRASH4_1994
mark_model_as_no_longer_needed #CIGAR
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
make_player_gang_reappear 
set_ped_density_multiplier 1.0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:CRASH4_2030
if 
  get_fading_status 
goto_if_false @CRASH4_2054
wait 0
goto @CRASH4_2030

:CRASH4_2054
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
if 
  $played_cut1_before_crash4 == 1
goto_if_false @CRASH4_2401
44@ = 1

:CRASH4_2100
skip_cutscene_end 
if 
  44@ == 0
goto_if_false @CRASH4_2401
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_2137
if 
  get_fading_status 
goto_if_false @CRASH4_2161
wait 0
goto @CRASH4_2137

:CRASH4_2161
set_ped_density_multiplier 1.0
request_collision 1363.689 {y} -1280.441
clear_area 1363.689 {y} -1280.441 {z} 12.5469 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1363.689 {y} -1280.441 {z} 12.5469
set_char_heading $scplayer {heading} 90.0
load_scene_in_direction 1363.689 {y} -1280.441 {z} 12.5469 {heading} 90.0
remove_animation "GANGS"
remove_animation "SMOKING"
mark_model_as_no_longer_needed #LAEJEFFERSALPHA
mark_model_as_no_longer_needed #LAELODPARK02
mark_model_as_no_longer_needed #LAEMACPARK02
if 
  62@ == 1
goto_if_false @CRASH4_2327
delete_char 53@
delete_char 54@
delete_char 55@
delete_object 60@

:CRASH4_2327
mark_model_as_no_longer_needed #CIGAR
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:CRASH4_2361
if 
  get_fading_status 
goto_if_false @CRASH4_2385
wait 0
goto @CRASH4_2361

:CRASH4_2385
set_camera_behind_player 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False

:CRASH4_2401
$played_cut1_before_crash4 = 1
52@ = add_sprite_blip_for_coord 1362.895 {y} -1281.0081 {z} 12.586 {sprite} RadarSprite.Ammugun
switch_entry_exit 'AMMUN1' {state} True
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_only_create_gang_members True
set_gang_wars_training_mission True
set_zone_for_gang_wars_training 'GLN1'
set_wanted_multiplier 0.5
can_trigger_gang_war_when_on_a_mission True
set_gang_wars_active True
$flag_gang_war_active = 1
print_now 'CM2_3' {time} 8000 {flag} 1
45@ = add_sprite_blip_for_coord 1932.351 {y} -1189.647 {z} 19.063 {sprite} RadarSprite.GangG

:CRASH4_2552
if 
  not is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @CRASH4_2804
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CRASH4_2603
goto @CRASH4_6337

:CRASH4_2603
if 
  67@ == 0
goto_if_false @CRASH4_2710
if 
  locate_char_any_means_3d $scplayer {x} 2444.895 {y} -1981.524 {z} 13.933 {xRadius} 880.0 {yRadius} 880.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CRASH4_2710
if 
  is_var_text_label_empty s$shop_name
goto_if_false @CRASH4_2710
print_help 'CM2_18'
TIMERB = 0
67@ = 1

:CRASH4_2710
if 
  67@ == 1
goto_if_false @CRASH4_2781
if 
  is_var_text_label_empty s$shop_name
goto_if_false @CRASH4_2781
if 
  TIMERB > 5000
goto_if_false @CRASH4_2781
print_help 'CM2_19'
67@ = 2

:CRASH4_2781
47@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Ballas
goto @CRASH4_2552

:CRASH4_2804
remove_blip 52@
print_now 'CM2_5' {time} 8000 {flag} 1
TIMERA = 0

:CRASH4_2832
if 
  not is_gang_war_going_on 
goto_if_false @CRASH4_3096
wait 0
if 
  not is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @CRASH4_2922
if 
  46@ == 0
goto_if_false @CRASH4_2915
print_now 'CM2_6' {time} 8000 {flag} 1
46@ = 1

:CRASH4_2915
goto @CRASH4_2974

:CRASH4_2922
if 
  46@ == 1
goto_if_false @CRASH4_2974
clear_this_print 'CM2_6'
print_now 'CM2_5' {time} 8000 {flag} 1
46@ = 0

:CRASH4_2974
if 
  73@ == 0
goto_if_false @CRASH4_3036
if 
  TIMERA >= 60000
goto_if_false @CRASH4_3036
print_now 'CM2_5' {time} 8000 {flag} 1
73@ = 1

:CRASH4_3036
if 
  73@ == 1
goto_if_false @CRASH4_3089
if 
  TIMERA >= 70000
goto_if_false @CRASH4_3089
TIMERA = 0
73@ = 0

:CRASH4_3089
goto @CRASH4_2832

:CRASH4_3096
clear_this_print 'CM2_5'
TIMERA = 0

:CRASH4_3114
if 
  47@ <> 0
goto_if_false @CRASH4_3456
wait 0
47@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Ballas
74@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Grove
if 
  not is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @CRASH4_3327
if 
  46@ == 0
goto_if_false @CRASH4_3234
print_now 'CM2_6' {time} 8000 {flag} 1
46@ = 1

:CRASH4_3234
if 
  not is_gang_war_going_on 
goto_if_false @CRASH4_3313
if 
  74@ == 0
goto_if_false @CRASH4_3306
if 
  66@ == 0
goto_if_false @CRASH4_3306
print_now 'CM2_17' {time} 8000 {flag} 1
66@ = 1

:CRASH4_3306
goto @CRASH4_3320

:CRASH4_3313
66@ = 0

:CRASH4_3320
goto @CRASH4_3449

:CRASH4_3327
if 
  46@ == 1
goto_if_false @CRASH4_3363
clear_this_print 'CM2_6'
46@ = 0

:CRASH4_3363
if 
  not is_gang_war_going_on 
goto_if_false @CRASH4_3442
if 
  74@ == 0
goto_if_false @CRASH4_3435
if 
  65@ == 0
goto_if_false @CRASH4_3435
print_now 'CM2_16' {time} 8000 {flag} 1
65@ = 1

:CRASH4_3435
goto @CRASH4_3449

:CRASH4_3442
65@ = 0

:CRASH4_3449
goto @CRASH4_3114

:CRASH4_3456
remove_blip 45@
clear_this_print 'CM2_16'
clear_this_print 'CM2_17'
clear_this_print 'CM2_6'
clear_this_print 'CM2_5'
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 0
can_trigger_gang_war_when_on_a_mission False
wait 5000
set_only_create_gang_members False
gosub @ENTEXT_63

:CRASH4_3540
if 
  $player_is_completely_safe <> 1
goto_if_false @CRASH4_3576
wait 0
gosub @ENTEXT_63
goto @CRASH4_3540

:CRASH4_3576
clear_prints 
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_3614
if 
  get_fading_status 
goto_if_false @CRASH4_3638
wait 0
goto @CRASH4_3614

:CRASH4_3638
set_ped_density_multiplier 0.0
make_player_gang_disappear 
switch_widescreen True
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH4_3745
clear_area 1859.931 {y} -1137.139 {z} 22.946 {radius} 2.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1859.931 {y} -1137.139 {z} 22.946
set_char_heading $scplayer {heading} 284.0
load_scene 1859.931 {y} -1137.139 {z} 22.946
goto @CRASH4_3851

:CRASH4_3745
75@ = store_car_char_is_in $scplayer
clear_area 1859.931 {y} -1137.139 {z} 22.946 {radius} 2.0 {clearParticles} True
warp_char_from_car_to_coord $scplayer {x} 1859.931 {y} -1137.139 {z} 22.946

:CRASH4_3797
if 
  is_char_in_any_car $scplayer
goto_if_false @CRASH4_3824
wait 0
goto @CRASH4_3797

:CRASH4_3824
set_char_heading $scplayer {heading} 284.0
load_scene 1859.931 {y} -1137.139 {z} 22.946

:CRASH4_3851
set_fixed_camera_position 1859.828 {y} -1136.1801 {z} 33.7679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1860.751 {y} -1136.463 {z} 33.508 {switchStyle} SwitchType.JumpCut
if 
  63@ == 0
goto_if_false @CRASH4_4081
53@ = create_char PedType.Mission1 {modelId} 106 {x} 1910.3361 {y} -1154.475 {z} 22.699
set_char_heading 53@ {heading} 131.345
set_char_only_damaged_by_player 53@ {state} True
task_play_anim_non_interruptable 53@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
54@ = create_char PedType.Mission1 {modelId} 107 {x} 1907.99 {y} -1157.554 {z} 22.932
set_char_heading 54@ {heading} 318.746
set_char_only_damaged_by_player 54@ {state} True
task_play_anim_non_interruptable 54@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
63@ = 1

:CRASH4_4081
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CRASH4_4096
if 
  get_fading_status 
goto_if_false @CRASH4_4120
wait 0
goto @CRASH4_4096

:CRASH4_4120
if 
  $played_cut2_before_crash4 == 1
goto_if_false @CRASH4_4145
skip_cutscene_start_internal @CRASH4_4675

:CRASH4_4145
print_now 'CM2_12' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4168
if 
  10000 > TIMERA
goto_if_false @CRASH4_4198
wait 0
goto @CRASH4_4168

:CRASH4_4198
clear_this_print 'CM2_12'
set_fixed_camera_position 1891.889 {y} -1163.394 {z} 25.5792 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1892.865 {y} -1163.187 {z} 25.5167 {switchStyle} SwitchType.JumpCut
print_now 'CM2_13' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4283
if 
  10000 > TIMERA
goto_if_false @CRASH4_4313
wait 0
goto @CRASH4_4283

:CRASH4_4313
clear_this_print 'CM2_13'
print_now 'CM2_14' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4347
if 
  10000 > TIMERA
goto_if_false @CRASH4_4377
wait 0
goto @CRASH4_4347

:CRASH4_4377
clear_this_print 'CM2_14'
set_fixed_camera_position 1859.828 {y} -1136.1801 {z} 33.7679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1860.751 {y} -1136.463 {z} 33.508 {switchStyle} SwitchType.JumpCut
print_now 'CM2_15' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4462
if 
  10000 > TIMERA
goto_if_false @CRASH4_4492
wait 0
goto @CRASH4_4462

:CRASH4_4492
clear_this_print 'CM2_15'
print_now 'CM2_20' {time} 20000 {flag} 1
TIMERA = 0

:CRASH4_4526
if 
  10000 > TIMERA
goto_if_false @CRASH4_4556
wait 0
goto @CRASH4_4526

:CRASH4_4556
clear_this_print 'CM2_20'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_4582
if 
  get_fading_status 
goto_if_false @CRASH4_4606
wait 0
goto @CRASH4_4582

:CRASH4_4606
clear_prints 
if 
  63@ == 1
goto_if_false @CRASH4_4636
delete_char 53@
delete_char 54@

:CRASH4_4636
set_ped_density_multiplier 1.0
if 
  $played_cut2_before_crash4 == 1
goto_if_false @CRASH4_4771
61@ = 1
$played_cut2_before_crash4 = 1

:CRASH4_4675
skip_cutscene_end 
if 
  61@ == 0
goto_if_false @CRASH4_4771
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_4710
if 
  get_fading_status 
goto_if_false @CRASH4_4734
wait 0
goto @CRASH4_4710

:CRASH4_4734
clear_prints 
set_ped_density_multiplier 1.0
if 
  63@ == 1
goto_if_false @CRASH4_4771
delete_char 53@
delete_char 54@

:CRASH4_4771
$played_cut2_before_crash4 = 1
set_fixed_camera_position 1914.1071 {y} -1130.994 {z} 27.8685 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1914.8409 {y} -1130.332 {z} 27.7162 {switchStyle} SwitchType.JumpCut
if 
  $flag_end_guy_audio_crash4 == 0
goto_if_false @CRASH4_4861
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10830
goto @CRASH4_4918

:CRASH4_4861
if 
  $flag_end_guy_audio_crash4 == 1
goto_if_false @CRASH4_4893
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10831
goto @CRASH4_4918

:CRASH4_4893
if 
  $flag_end_guy_audio_crash4 == 2
goto_if_false @CRASH4_4918
load_mission_audio MissionAudioSlot.Slot1 {audioId} 10832

:CRASH4_4918
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CRASH4_4944
wait 0
goto @CRASH4_4918

:CRASH4_4944
clear_area 1922.439 {y} -1118.043 {z} 25.125 {radius} 10.0 {clearParticles} False
34@ = create_char PedType.Mission2 {modelId} 103 {x} 1922.439 {y} -1118.043 {z} 25.125
set_char_heading 34@ {heading} 180.0
set_char_only_damaged_by_player 34@ {state} True
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5096
task_go_straight_to_coord 34@ {x} 1922.328 {y} -1127.938 {z} 24.078 {speed} MoveState.Run {time} -1
goto @CRASH4_5103

:CRASH4_5096
38@ = 1

:CRASH4_5103
if 
  get_fading_status 
goto_if_false @CRASH4_5127
wait 0
goto @CRASH4_5103

:CRASH4_5127
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5315
shut_char_up_for_scripted_speech 34@ {state} True
if 
  $flag_end_guy_audio_crash4 == 0
goto_if_false @CRASH4_5205
print_now 'CRA2_ZA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 34@ {duration} 999999
goto @CRASH4_5308

:CRASH4_5205
if 
  $flag_end_guy_audio_crash4 == 1
goto_if_false @CRASH4_5260
print_now 'CRA2_ZB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 34@ {duration} 999999
goto @CRASH4_5308

:CRASH4_5260
if 
  $flag_end_guy_audio_crash4 == 2
goto_if_false @CRASH4_5308
print_now 'CRA2_ZC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 34@ {duration} 999999

:CRASH4_5308
goto @CRASH4_5355

:CRASH4_5315
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'
38@ = 1

:CRASH4_5355
skip_cutscene_start_internal @CRASH4_5749
TIMERA = 0

:CRASH4_5369
if 
  2000 > TIMERA
goto_if_false @CRASH4_5547
wait 0
if 
  38@ == 0
goto_if_false @CRASH4_5540
if 
  is_char_dead 34@
goto_if_false @CRASH4_5492
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CRASH4_5445
clear_mission_audio MissionAudioSlot.Slot1

:CRASH4_5445
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'
38@ = 1
goto @CRASH4_5540

:CRASH4_5492
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CRASH4_5540
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'

:CRASH4_5540
goto @CRASH4_5369

:CRASH4_5547
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CRASH4_5595
clear_this_print 'CRA2_ZA'
clear_this_print 'CRA2_ZB'
clear_this_print 'CRA2_ZC'

:CRASH4_5595
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5630
stop_char_facial_talk 34@
shut_char_up_for_scripted_speech 34@ {state} False
goto @CRASH4_5637

:CRASH4_5630
38@ = 1

:CRASH4_5637
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5730
set_char_decision_maker 34@ {handleOrTemplate} 43@
35@ = add_blip_for_char 34@
task_kill_char_on_foot 34@ {target} $scplayer
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @CRASH4_5742

:CRASH4_5730
remove_blip 35@
38@ = 1

:CRASH4_5742
64@ = 1

:CRASH4_5749
skip_cutscene_end 
if 
  64@ == 0
goto_if_false @CRASH4_6040
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH4_5784
if 
  get_fading_status 
goto_if_false @CRASH4_5808
wait 0
goto @CRASH4_5784

:CRASH4_5808
make_player_gang_reappear 
if 
  not is_char_dead 34@
goto_if_false @CRASH4_5899
clear_area 1922.903 {y} -1128.4771 {z} 24.092 {radius} 2.0 {clearParticles} False
set_char_coordinates 34@ {x} 1922.903 {y} -1128.4771 {z} 24.092
set_char_heading 34@ {heading} 180.0
stop_char_facial_talk 34@
shut_char_up_for_scripted_speech 34@ {state} False
goto @CRASH4_5906

:CRASH4_5899
38@ = 1

:CRASH4_5906
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CRASH4_5929
if 
  get_fading_status 
goto_if_false @CRASH4_5953
wait 0
goto @CRASH4_5929

:CRASH4_5953
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
if 
  not is_char_dead 34@
goto_if_false @CRASH4_6028
35@ = add_blip_for_char 34@
task_kill_char_on_foot 34@ {target} $scplayer
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @CRASH4_6040

:CRASH4_6028
remove_blip 35@
38@ = 1

:CRASH4_6040
$flag_end_guy_audio_crash4 += 1
if 
  $flag_end_guy_audio_crash4 > 2
goto_if_false @CRASH4_6072
$flag_end_guy_audio_crash4 = 0

:CRASH4_6072
print_now 'CM2_8' {time} 8000 {flag} 1

:CRASH4_6088
if 
  38@ <> 1
goto_if_false @CRASH4_6174
wait 0
if 
  38@ == 0
goto_if_false @CRASH4_6167
if 
  is_char_dead 34@
goto_if_false @CRASH4_6167
clear_this_print 'CM2_7'
remove_blip 35@
38@ = 1

:CRASH4_6167
goto @CRASH4_6088

:CRASH4_6174
goto @CRASH4_6337

:CRASH4_6181
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 71@
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 72@
switch_entry_exit 'AMMUN1' {state} False
switch_entry_exit 'AMMUN2' {state} False
switch_entry_exit 'AMMUN3' {state} False
switch_entry_exit 'AMMUN4' {state} False
switch_entry_exit 'AMMUN5' {state} False
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_gang_wars_active False
$flag_gang_war_active = 0
return 

:CRASH4_6337
$flag_sweet_mission_counter += 1
register_mission_passed 'CRASH_2'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 40 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
$territory_pickup = create_protection_pickup 2502.1001 {y} -1686.38 {z} 13.0 {revenueLimit} 10000 {revenueRate} $territory_cash
start_new_script @TCASH 
switch_entry_exit 'AMMUN1' {state} True
switch_entry_exit 'AMMUN2' {state} True
switch_entry_exit 'AMMUN3' {state} True
switch_entry_exit 'AMMUN4' {state} True
switch_entry_exit 'AMMUN5' {state} True
if 
  $add_all_ammu_blips == 0
goto_if_false @CRASH4_6778
$weapon_shop1_blip = add_short_range_sprite_blip_for_coord 1372.9 {y} -1278.8 {z} 12.5 {sprite} RadarSprite.Ammugun
$ammu_shop_blip = add_short_range_sprite_blip_for_coord 2400.5 {y} -1978.4 {z} 13.5 {sprite} RadarSprite.Ammugun
$2579 = add_short_range_sprite_blip_for_coord -2626.6001 {y} 209.4 {z} 4.9 {sprite} RadarSprite.Ammugun
$2580 = add_short_range_sprite_blip_for_coord 2535.8999 {y} 2083.5 {z} 10.8 {sprite} RadarSprite.Ammugun
$2581 = add_short_range_sprite_blip_for_coord 2156.5 {y} 943.2 {z} 10.8 {sprite} RadarSprite.Ammugun
$2582 = add_short_range_sprite_blip_for_coord 779.7 {y} 1874.3 {z} 4.9 {sprite} RadarSprite.Ammugun
$2583 = add_short_range_sprite_blip_for_coord -2092.7 {y} -2463.8 {z} 30.6 {sprite} RadarSprite.Ammugun
$2584 = add_short_range_sprite_blip_for_coord 240.0 {y} -178.2 {z} 2.0 {sprite} RadarSprite.Ammugun
$2585 = add_short_range_sprite_blip_for_coord -1509.4 {y} 2611.8 {z} 58.5 {sprite} RadarSprite.Ammugun
$2586 = add_short_range_sprite_blip_for_coord -315.67 {y} 829.87 {z} 13.43 {sprite} RadarSprite.Ammugun
$2587 = add_short_range_sprite_blip_for_coord 2332.8999 {y} 63.6 {z} 31.0 {sprite} RadarSprite.Ammugun
$add_all_ammu_blips = 1

:CRASH4_6778
return 

:CRASH4_6780
mark_model_as_no_longer_needed #LAEJEFFERSALPHA
mark_model_as_no_longer_needed #LAELODPARK02
mark_model_as_no_longer_needed #LAEMACPARK02
set_ped_density_multiplier 1.0
set_only_create_gang_members False
$onmission = 0
$flag_on_doberman_mission = 0
remove_blip 45@
remove_blip 35@
remove_blip 52@
can_trigger_gang_war_when_on_a_mission False
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 107
remove_animation "GANGS"
remove_animation "SMOKING"
delete_object 60@
mark_model_as_no_longer_needed #CIGAR
delete_char 53@
delete_char 54@
delete_char 55@
remove_decision_maker 43@
mission_has_finished 
return 

//-------------Mission 22---------------
// Originally: Burning Desire

:CRASH1
script_name 'CRASH1'
gosub @CRASH1_47
if 
  has_deatharrest_been_executed 
goto_if_false @CRASH1_38
gosub @CRASH1_41227

:CRASH1_38
gosub @CRASH1_41349
terminate_this_script 

:CRASH1_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
TIMERA = 0
TIMERB = 0
47@ = 1
48@ = 0
49@ = 0
50@ = 0
51@ = -1
52@ = 0
53@ = 0
55@ = 0
54@ = 0
56@ = 1
213@ = 0

:CRASH1_210
57@(213@,3i) = 0
213@ += 1
  213@ >= 3
goto_if_false @CRASH1_210
355@ = 0
356@ = 0
357@ = 0
358@ = 0
359@ = 0
360@ = 0
361@ = 0
198@ = 0
314@ = 0
315@ = 0
316@ = 0
323@ = 0
322@ = 0
313@ = 0
317@ = 0
325@ = 0
353@ = 0
354@ = 0
336@ = 0
340@ = 0
342@ = 0
345@ = 0
346@ = 1
347@ = 1
348@ = 0
349@ = 0
350@ = 0
210@ = 0
if 
  34@ == -99
goto_if_false @CRASH1_1160
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
98@ = create_car 412 {x} 0.0 {y} 0.0 {z} 0.0
99@ = create_car 412 {x} 0.0 {y} 0.0 {z} 0.0
100@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
213@ = 0

:CRASH1_575
create_char PedType.Gang8 {modelId} 110 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 87@(213@,5i)
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_575
213@ = 0

:CRASH1_631
create_char PedType.Gang8 {modelId} 110 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 92@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_631
94@ = create_char PedType.Gang8 {modelId} 109 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_char PedType.CivFemale {modelId} 195 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.Gang8 {modelId} 109 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_char PedType.Gang8 {modelId} 109 {x} 0.0 {y} 0.0 {z} 0.0
213@ = 0

:CRASH1_784
create_object_no_offset #BD_WINDOW {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 101@(213@,8i)
213@ += 1
  213@ >= 8
goto_if_false @CRASH1_784
114@ = create_object #CR1_DOOR {x} 0.0 {y} 0.0 {z} 0.0
119@ = create_object #BREAK_WALL_1B {x} 0.0 {y} 0.0 {z} 0.0
120@ = create_object #BREAK_WALL_2B {x} 0.0 {y} 0.0 {z} 0.0
121@ = create_object #BREAK_WALL_3B {x} 0.0 {y} 0.0 {z} 0.0
119@ = create_object #BD_FIRE1_O {x} 0.0 {y} 0.0 {z} 0.0
138@ = start_char_fire 94@
139@ = start_char_fire 95@
140@ = start_char_fire 96@
141@ = start_char_fire 97@
213@ = 0

:CRASH1_985
start_script_fire 0.0 {y} 0.0 {z} 0.0 {propagation} 0 {size} 1 {var_handle} 142@(213@,21i)
213@ += 1
  213@ >= 21
goto_if_false @CRASH1_985
213@ = 0

:CRASH1_1041
start_script_fire 0.0 {y} 0.0 {z} 0.0 {propagation} 0 {size} 1 {var_handle} 163@(213@,4i)
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_1041
135@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 0 {x} 0.0 {y} 0.0 {z} 0.0
132@ = create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 0 {x} 0.0 {y} 0.0 {z} 0.0
131@ = add_blip_for_char 95@
128@ = add_blip_for_pickup 132@

:CRASH1_1160
load_mission_text 'CRASH1'
gosub @CRASH1_38857
180@ = load_char_decision_maker DecisionMakerType.Empty
181@ = load_char_decision_maker DecisionMakerType.Tough
gosub @CRASH1_39065

:CRASH1_1199
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CRASH1_1232
36@ = 1
goto @CRASH1_1651

:CRASH1_1232
gosub @CRASH1_36706
gosub @CRASH1_37130
if or
  38@ == 1
  39@ == 1
goto_if_false @CRASH1_1278
goto @CRASH1_1651

:CRASH1_1278
gosub @CRASH1_38228
gosub @CRASH1_38262
if 
  is_char_dead $scplayer
goto_if_false @CRASH1_1322
37@ = 1
goto @CRASH1_1651

:CRASH1_1322
if 
  34@ == 0
goto_if_false @CRASH1_1380
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:CRASH1_1380
if 
  34@ == 1
goto_if_false @CRASH1_1405
gosub @CRASH1_1838

:CRASH1_1405
if 
  34@ == 2
goto_if_false @CRASH1_1430
gosub @CRASH1_2345

:CRASH1_1430
if 
  34@ == 3
goto_if_false @CRASH1_1455
gosub @CRASH1_3600

:CRASH1_1455
if 
  34@ == 4
goto_if_false @CRASH1_1480
gosub @CRASH1_5983

:CRASH1_1480
if 
  34@ == 5
goto_if_false @CRASH1_1505
gosub @CRASH1_8432

:CRASH1_1505
if 
  34@ == 6
goto_if_false @CRASH1_1530
gosub @CRASH1_10291

:CRASH1_1530
if 
  34@ == 7
goto_if_false @CRASH1_1555
gosub @CRASH1_13180

:CRASH1_1555
if 
  34@ == 8
goto_if_false @CRASH1_1580
36@ = 1

:CRASH1_1580
if 
  34@ == 50
goto_if_false @CRASH1_1605
gosub @CRASH1_15449

:CRASH1_1605
if 
  34@ == 51
goto_if_false @CRASH1_1630
38@ = 1

:CRASH1_1630
gosub @CRASH1_38301
gosub @CRASH1_38357
gosub @CRASH1_32145

:CRASH1_1651
if 
  38@ == 0
goto_if_false @CRASH1_1834
if 
  37@ == 0
goto_if_false @CRASH1_1735
if 
  36@ == 0
goto_if_false @CRASH1_1719
goto @CRASH1_1199
goto @CRASH1_1728

:CRASH1_1719
gosub @CRASH1_41291
return 

:CRASH1_1728
goto @CRASH1_1827

:CRASH1_1735
gosub @CRASH1_41227
if or
  314@ == 1
  is_char_in_area_3d $scplayer {leftBottomX} 2350.405 {leftBottomY} -1181.907 {leftBottomZ} 26.8553 {rightTopX} 2353.4839 {rightTopY} -1170.524 {rightTopZ} 30.0687 {drawSphere} False
goto_if_false @CRASH1_1825
34@ = 50
35@ = 0
37@ = 0
goto @CRASH1_1199

:CRASH1_1825
return 

:CRASH1_1827
goto @CRASH1_1836

:CRASH1_1834
return 

:CRASH1_1836
return 

:CRASH1_1838
if 
  35@ == 0
goto_if_false @CRASH1_1900
print_now 'CRA1_00' {time} 15000 {flag} 1
gosub @CRASH1_16457
349@ = 0
204@ = 0
35@ += 1

:CRASH1_1900
if 
  35@ == 1
goto_if_false @CRASH1_1969
if 
  has_pickup_been_collected 132@
goto_if_false @CRASH1_1969
remove_blip 128@
349@ = 0
set_lvar_int_to_lvar_int 204@ = 45@
204@ += 5000
35@ += 1

:CRASH1_1969
if 
  35@ == 2
goto_if_false @CRASH1_1994
35@ += 1

:CRASH1_1994
if 
  35@ == 3
goto_if_false @CRASH1_2055
print_now 'CRA1_01' {time} 5000 {flag} 1
122@ = add_blip_for_coord 2351.9041 {y} -1170.826 {z} 28.5
35@ += 1

:CRASH1_2055
if 
  35@ == 4
goto_if_false @CRASH1_2146
if 
  locate_char_any_means_2d $scplayer {x} 2350.168 {y} -1164.938 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @CRASH1_2146
gosub @CRASH1_39609
gosub @CRASH1_39708
gosub @CRASH1_40373
gosub @CRASH1_40881
35@ += 1

:CRASH1_2146
if 
  35@ == 5
goto_if_false @CRASH1_2245
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_2245
remove_blip 122@
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1
35@ = 99

:CRASH1_2245
if 
  349@ == 0
goto_if_false @CRASH1_2318
if 
  204@ <> 0
goto_if_false @CRASH1_2318
if 
  is_int_lvar_greater_than_int_lvar 45@ > 204@
goto_if_false @CRASH1_2318
print_help 'MOLOTOV'
349@ = 1

:CRASH1_2318
if 
  35@ == 99
goto_if_false @CRASH1_2343
gosub @CRASH1_38827

:CRASH1_2343
return 

:CRASH1_2345
if 
  35@ == 0
goto_if_false @CRASH1_2476
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
313@ = 0
332@ = 0
333@ = 0
209@ = 0
187@ = -1
205@ = 0
gosub @CRASH1_18730
gosub @CRASH1_19322
switch_emergency_services False
set_wanted_multiplier 0.3
set_max_fire_generations 1
35@ += 1

:CRASH1_2476
if 
  35@ == 1
goto_if_false @CRASH1_2533
print_now 'CRA1_02' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 204@ = 45@
204@ += 7000
35@ += 1

:CRASH1_2533
if 
  35@ == 2
goto_if_false @CRASH1_2631
213@ = 0

:CRASH1_2558
set_lvar_int_to_lvar_int 217@ = 213@
gosub @CRASH1_20309
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2558
if 
  is_int_lvar_greater_than_int_lvar 45@ > 204@
goto_if_false @CRASH1_2631
print_help 'WINDOWS'
35@ += 1

:CRASH1_2631
if 
  35@ == 3
goto_if_false @CRASH1_2733
213@ = 0

:CRASH1_2656
set_lvar_int_to_lvar_int 217@ = 213@
gosub @CRASH1_20309
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2656
if 
  209@ == 5
goto_if_false @CRASH1_2733
print_now 'CRA1_04' {time} 3000 {flag} 1
35@ = 99

:CRASH1_2733
213@ = 0

:CRASH1_2740
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2740
if 
  313@ == 1
goto_if_false @CRASH1_2808
gosub @CRASH1_21015
goto @CRASH1_2815

:CRASH1_2808
gosub @CRASH1_20662

:CRASH1_2815
gosub @CRASH1_21168
if 
  205@ <> 0
goto_if_false @CRASH1_3150
if 
  is_int_lvar_greater_than_int_lvar 45@ > 205@
goto_if_false @CRASH1_3150
205@ = 0
214@ = 0
213@ = 0

:CRASH1_2880
if 
  302@(213@,5i) == 1
goto_if_false @CRASH1_2909
214@ += 1

:CRASH1_2909
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_2880
209@ += 1
if 
  not is_int_lvar_equal_to_int_lvar 214@ == 209@
goto_if_false @CRASH1_3006
if 
  is_int_lvar_greater_than_int_lvar 209@ > 214@
goto_if_false @CRASH1_2990
set_lvar_int_to_lvar_int 209@ = 214@
goto @CRASH1_3006

:CRASH1_2990
set_lvar_int_to_lvar_int 205@ = 45@
205@ += 500

:CRASH1_3006
if 
  5 > 209@
goto_if_false @CRASH1_3031
gosub @CRASH1_20473

:CRASH1_3031
351@ = 0
213@ = 0

:CRASH1_3045
if 
  351@ == 0
goto_if_false @CRASH1_3129
if and
  302@(213@,5i) == 1
  307@(213@,5i) == 0
goto_if_false @CRASH1_3129
set_lvar_int_to_lvar_int 191@ = 213@
gosub @CRASH1_23203
307@(213@,5i) = 1
351@ = 1

:CRASH1_3129
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_3045

:CRASH1_3150
if 
  297@ == 0
goto_if_false @CRASH1_3410
289@ = 2337.666
289@ -= 31.0
291@ = -1180.994
291@ -= 38.0
293@ = 31.7513
293@ -= 8.0
290@ = 2337.666
290@ += 31.0
292@ = -1180.994
292@ += 38.0
294@ = 31.7513
294@ += 8.0
if 
  332@ == 0
goto_if_false @CRASH1_3344
if 
  is_projectile_in_area 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@
goto_if_false @CRASH1_3344
332@ = 1

:CRASH1_3344
if 
  333@ == 0
goto_if_false @CRASH1_3410
214@ = get_number_of_fires_in_area 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@
if 
  214@ > 0
goto_if_false @CRASH1_3410
333@ = 1

:CRASH1_3410
if 
  348@ == 1
goto_if_false @CRASH1_3504
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_3497
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_3497
goto @CRASH1_3573

:CRASH1_3504
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_3573
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_3573
if 
  35@ == 99
goto_if_false @CRASH1_3598
gosub @CRASH1_38827

:CRASH1_3598
return 

:CRASH1_3600
if 
  35@ == 0
goto_if_false @CRASH1_3751
191@ = 5
gosub @CRASH1_23203
192@ = 0
gosub @CRASH1_24873
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
329@ = 0
334@ = 0
335@ = 0
352@ = 0
353@ = 0
354@ = 0
337@ = 0
347@ = 1
206@ = 0
set_wanted_multiplier 0.0
clear_wanted_level $player1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6603
35@ += 1

:CRASH1_3751
if 
  359@ == 1
goto_if_false @CRASH1_3794
if 
  is_char_dead 95@
goto_if_false @CRASH1_3794
37@ = 1
return 

:CRASH1_3794
if 
  35@ == 1
goto_if_false @CRASH1_3903
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_3903
do_fade 400 {direction} Fade.Out
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 2500
gosub @CRASH1_26362
gosub @CRASH1_26452
341@ = 0
50@ = 1
gosub @CRASH1_32981
35@ += 1

:CRASH1_3903
if 
  35@ == 2
goto_if_false @CRASH1_4000
if 
  354@ == 1
goto_if_false @CRASH1_3953
35@ += 1
goto @CRASH1_4000

:CRASH1_3953
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4000
gosub @CRASH1_23105
329@ = 1
352@ = 1
35@ += 1

:CRASH1_4000
if 
  35@ == 3
goto_if_false @CRASH1_4087
if 
  354@ == 1
goto_if_false @CRASH1_4050
35@ += 1
goto @CRASH1_4087

:CRASH1_4050
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_4087
gosub @CRASH1_26665
35@ += 1

:CRASH1_4087
if 
  35@ == 4
goto_if_false @CRASH1_4229
if 
  354@ == 1
goto_if_false @CRASH1_4137
35@ += 1
goto @CRASH1_4229

:CRASH1_4137
if and
  is_char_dead 94@
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4175
gosub @CRASH1_26924
35@ += 1

:CRASH1_4175
set_lvar_int_to_lvar_int 219@ = 200@
219@ += 8000
if and
  not is_char_dead 94@
  is_int_lvar_greater_than_int_lvar 45@ > 219@
goto_if_false @CRASH1_4229
gosub @CRASH1_26924
35@ += 1

:CRASH1_4229
if 
  35@ == 5
goto_if_false @CRASH1_4411
if 
  354@ == 1
goto_if_false @CRASH1_4279
35@ += 1
goto @CRASH1_4411

:CRASH1_4279
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4411
if 
  does_object_exist 106@
goto_if_false @CRASH1_4337
if 
  not has_object_been_damaged 106@
goto_if_false @CRASH1_4337
break_object 106@ {intensity} 1

:CRASH1_4337
197@ = 4
gosub @CRASH1_25459
335@ = 1
56@ = 0
gosub @CRASH1_33143
print_now 'CRA1_05' {time} 4600 {flag} 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 4300
35@ += 1

:CRASH1_4411
if 
  35@ == 6
goto_if_false @CRASH1_4524
if 
  354@ == 1
goto_if_false @CRASH1_4461
35@ += 1
goto @CRASH1_4524

:CRASH1_4461
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4524
do_fade 300 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
gosub @CRASH1_18650
gosub @CRASH1_23025
35@ += 1

:CRASH1_4524
if 
  35@ == 7
goto_if_false @CRASH1_4688
if 
  354@ == 1
goto_if_false @CRASH1_4574
35@ += 1
goto @CRASH1_4688

:CRASH1_4574
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4688
gosub @CRASH1_26993
282@ = 2352.0371
283@ = -1170.318
284@ = 26.9702
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
192@ = 2
gosub @CRASH1_24873
do_fade 200 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 200
35@ += 1

:CRASH1_4688
if 
  35@ == 8
goto_if_false @CRASH1_4824
if 
  354@ == 1
goto_if_false @CRASH1_4738
35@ = 50
goto @CRASH1_4824

:CRASH1_4738
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_4824
329@ = 0
352@ = 0
set_player_control $player1 {state} True
gosub @CRASH1_28246
set_lvar_int_to_lvar_int 206@ = 45@
206@ += 9000
print 'CRA1_06' {time} 4000 {flag} 1
35@ += 1

:CRASH1_4824
if 
  35@ == 9
goto_if_false @CRASH1_5086
if 
  314@ == 1
goto_if_false @CRASH1_5036
remove_blip 122@
341@ = 0
206@ = 0
if 
  not is_char_dead 95@
goto_if_false @CRASH1_4968
set_char_has_used_entry_exit 95@ {x} 2352.114 {y} -1170.61 {radius} 8.0
282@, 283@, 284@ = get_char_coordinates 95@
284@ += 999.0
set_char_coordinates 95@ {x} 282@ {y} 283@ {z} 284@
131@ = add_blip_for_char 95@
set_blip_as_friendly 131@ {state} True

:CRASH1_4968
remove_script_fire 138@
192@ = 4
gosub @CRASH1_24873
197@ = 6
gosub @CRASH1_25459
gosub @CRASH1_26123
gosub @CRASH1_26184
gosub @CRASH1_40944
35@ = 99
goto @CRASH1_5086

:CRASH1_5036
213@ = 0

:CRASH1_5043
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_5043
gosub @CRASH1_21168

:CRASH1_5086
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_5120
354@ = 1

:CRASH1_5120
if 
  35@ == 50
goto_if_false @CRASH1_5175
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
353@ = 1
35@ += 1

:CRASH1_5175
if 
  35@ == 51
goto_if_false @CRASH1_5249
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_5249
gosub @CRASH1_16094
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_5249
if 
  35@ == 52
goto_if_false @CRASH1_5367
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_5367
353@ = 0
354@ = 0
329@ = 0
352@ = 0
set_player_control $player1 {state} True
gosub @CRASH1_28246
set_lvar_int_to_lvar_int 206@ = 45@
206@ += 9000
print 'CRA1_06' {time} 4000 {flag} 1
35@ = 9

:CRASH1_5367
gosub @CRASH1_27063
if 
  353@ == 0
goto_if_false @CRASH1_5435
213@ = 0

:CRASH1_5399
set_lvar_int_to_lvar_int 216@ = 213@
gosub @CRASH1_16525
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_5399

:CRASH1_5435
if 
  353@ == 0
goto_if_false @CRASH1_5460
gosub @CRASH1_21168

:CRASH1_5460
if 
  337@ == 1
goto_if_false @CRASH1_5485
gosub @CRASH1_28317

:CRASH1_5485
if 
  206@ > 0
goto_if_false @CRASH1_5536
if 
  is_int_lvar_greater_than_int_lvar 45@ > 206@
goto_if_false @CRASH1_5536
206@ = 0
341@ = 1

:CRASH1_5536
if 
  347@ == 1
goto_if_false @CRASH1_5602
clear_area 2345.907 {y} -1171.6591 {z} 30.9688 {radius} 1.5 {clearParticles} False
clear_area 2345.907 {y} -1171.6591 {z} 1030.969 {radius} 1.5 {clearParticles} False

:CRASH1_5602
if and
  not is_local_var_bit_set_const 54@ {bitIndex} 3
  341@ == 1
goto_if_false @CRASH1_5793
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2340.262 {leftBottomY} -1170.5389 {leftBottomZ} 24.9859 {rightTopX} 2351.095 {rightTopY} -1164.287 {rightTopZ} 28.2183 {drawSphere} False
goto_if_false @CRASH1_5793
if or
  49@ == 2
  49@ == 1
goto_if_false @CRASH1_5727
if 
  48@ == 2
goto_if_false @CRASH1_5720
return 

:CRASH1_5720
gosub @CRASH1_33172

:CRASH1_5727
if 
  49@ == 0
goto_if_false @CRASH1_5761
50@ = 3
gosub @CRASH1_32981
return 

:CRASH1_5761
if and
  49@ == 3
  48@ <> 2
goto_if_false @CRASH1_5793
gosub @CRASH1_33143

:CRASH1_5793
if 
  348@ == 1
goto_if_false @CRASH1_5887
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_5880
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_5880
goto @CRASH1_5956

:CRASH1_5887
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_5956
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_5956
if 
  35@ == 99
goto_if_false @CRASH1_5981
gosub @CRASH1_38827

:CRASH1_5981
return 

:CRASH1_5983
if 
  35@ == 0
goto_if_false @CRASH1_6083
gosub @CRASH1_28623
327@ = 0
330@ = 0
352@ = 0
353@ = 0
354@ = 0
338@ = 0
339@ = 0
350@ = 0
190@ = -1
mark_model_as_no_longer_needed #CR_AMMOBOX
35@ += 1

:CRASH1_6083
if 
  is_char_dead 95@
goto_if_false @CRASH1_6108
37@ = 1
return 

:CRASH1_6108
if 
  35@ == 1
goto_if_false @CRASH1_6133
35@ += 1

:CRASH1_6133
if 
  35@ == 2
goto_if_false @CRASH1_6513
289@ = 2344.751
289@ -= 1.5
291@ = -1181.161
291@ -= 1.5
293@ = 1030.9611
293@ -= 0.5
290@ = 2344.751
290@ += 1.5
292@ = -1181.161
292@ += 1.5
294@ = 1030.9611
294@ += 1.5
if 
  is_char_in_area_3d $scplayer {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_6513
remove_blip 131@
347@ = 0
set_char_proofs 95@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
350@ = 1
if 
  not has_pickup_been_collected 135@
goto_if_false @CRASH1_6506
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 550
set_player_control $player1 {state} False
285@ = 180.0
set_char_heading 95@ {heading} 285@
282@, 283@, 284@ = get_char_coordinates 95@
284@ = 1030.969
set_char_coordinates 95@ {x} 282@ {y} 283@ {z} 284@
211@ = 99
201@ = 0
330@ = 1
352@ = 1
gosub @CRASH1_33172
50@ = 5
gosub @CRASH1_32981
35@ += 1
goto @CRASH1_6513

:CRASH1_6506
35@ = 10

:CRASH1_6513
if 
  35@ == 3
goto_if_false @CRASH1_6679
if 
  354@ == 1
goto_if_false @CRASH1_6563
35@ += 1
goto @CRASH1_6679

:CRASH1_6563
if 
  49@ <> 5
goto_if_false @CRASH1_6595
50@ = 5
gosub @CRASH1_32981

:CRASH1_6595
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_6679
122@ = add_blip_for_pickup 135@
set_blip_entry_exit 122@ {x} 2352.114 {y} -1170.61 {radius} 3.0
gosub @CRASH1_28934
do_fade 500 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 550
35@ += 1

:CRASH1_6679
if 
  35@ == 4
goto_if_false @CRASH1_6801
if 
  354@ == 1
goto_if_false @CRASH1_6729
35@ += 1
goto @CRASH1_6801

:CRASH1_6729
if 
  49@ <> 5
goto_if_false @CRASH1_6761
50@ = 5
gosub @CRASH1_32981

:CRASH1_6761
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  49@ == 5
goto_if_false @CRASH1_6801
gosub @CRASH1_33143
35@ += 1

:CRASH1_6801
if 
  35@ == 5
goto_if_false @CRASH1_6876
if 
  354@ == 1
goto_if_false @CRASH1_6851
35@ += 1
goto @CRASH1_6876

:CRASH1_6851
if 
  is_local_var_bit_set_const 54@ {bitIndex} 5
goto_if_false @CRASH1_6876
35@ += 1

:CRASH1_6876
if 
  35@ == 6
goto_if_false @CRASH1_6972
if 
  354@ == 1
goto_if_false @CRASH1_6926
35@ += 1
goto @CRASH1_6972

:CRASH1_6926
if 
  49@ <> 6
goto_if_false @CRASH1_6965
50@ = 6
gosub @CRASH1_32981
goto @CRASH1_6972

:CRASH1_6965
35@ += 1

:CRASH1_6972
if 
  35@ == 7
goto_if_false @CRASH1_7087
if 
  354@ == 1
goto_if_false @CRASH1_7022
35@ += 1
goto @CRASH1_7087

:CRASH1_7022
set_fixed_camera_position 2329.6799 {y} -1172.025 {z} 1030.137 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2328.8679 {y} -1172.5341 {z} 1029.854 {switchStyle} SwitchType.JumpCut
gosub @CRASH1_33143
35@ += 1

:CRASH1_7087
if 
  35@ == 8
goto_if_false @CRASH1_7198
if 
  354@ == 1
goto_if_false @CRASH1_7137
35@ = 50
goto @CRASH1_7198

:CRASH1_7137
if 
  is_local_var_bit_set_const 54@ {bitIndex} 6
goto_if_false @CRASH1_7198
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
330@ = 0
352@ = 0
35@ += 1

:CRASH1_7198
if 
  35@ == 9
goto_if_false @CRASH1_7262
50@ = 7
gosub @CRASH1_32981
if 
  49@ == 7
goto_if_false @CRASH1_7262
gosub @CRASH1_33143
35@ += 1

:CRASH1_7262
if 
  35@ == 10
goto_if_false @CRASH1_7362
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_7362
remove_blip 122@
if 
  not is_char_dead 95@
goto_if_false @CRASH1_7334
131@ = add_blip_for_char 95@
set_blip_as_friendly 131@ {state} True

:CRASH1_7334
gosub @CRASH1_33172
50@ = 8
gosub @CRASH1_32981
35@ += 1

:CRASH1_7362
if 
  35@ == 11
goto_if_false @CRASH1_7679
289@ = 2344.751
289@ -= 1.5
291@ = -1181.161
291@ -= 1.5
293@ = 1030.9611
293@ -= 0.5
290@ = 2344.751
290@ += 1.5
292@ = -1181.161
292@ += 1.5
294@ = 1030.9611
294@ += 1.5
if 
  is_char_in_area_3d $scplayer {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_7679
if 
  49@ <> 8
goto_if_false @CRASH1_7568
50@ = 8
gosub @CRASH1_32981

:CRASH1_7568
if 
  49@ == 8
goto_if_false @CRASH1_7679
gosub @CRASH1_33143
285@ = 180.0
set_char_heading 95@ {heading} 285@
282@, 283@, 284@ = get_char_coordinates 95@
284@ = 1030.969
set_char_coordinates 95@ {x} 282@ {y} 283@ {z} 284@
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
211@ = 99
35@ += 1

:CRASH1_7679
if 
  35@ == 12
goto_if_false @CRASH1_7802
if 
  200@ > 0
goto_if_false @CRASH1_7752
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_7752
200@ = 0
print_help 'CRA1_35'

:CRASH1_7752
if 
  locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @CRASH1_7802
set_char_health 95@ {health} 100
35@ = 99

:CRASH1_7802
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_7836
354@ = 1

:CRASH1_7836
if 
  35@ == 50
goto_if_false @CRASH1_7918
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
211@ = 0
353@ = 0
354@ = 0
330@ = 0
352@ = 0
35@ = 10

:CRASH1_7918
gosub @CRASH1_27063
gosub @CRASH1_28317
if and
  314@ == 0
  315@ == 1
goto_if_false @CRASH1_7971
338@ = 1
315@ = 0

:CRASH1_7971
if 
  338@ == 1
goto_if_false @CRASH1_8016
if 
  get_fading_status 
goto_if_false @CRASH1_8016
338@ = 0
339@ = 1

:CRASH1_8016
if 
  339@ == 1
goto_if_false @CRASH1_8070
if 
  not get_fading_status 
goto_if_false @CRASH1_8070
339@ = 0
print_now 'CRA1_10' {time} 5000 {flag} 1

:CRASH1_8070
clear_area 255@ {y} 256@ {z} 257@ {radius} 3.0 {clearParticles} False
if 
  327@ == 0
goto_if_false @CRASH1_8158
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_8158
327@ = 1
print_now 'CRA1_09' {time} 4000 {flag} 1
print_help 'FIRE_EX'

:CRASH1_8158
if 
  347@ == 1
goto_if_false @CRASH1_8224
clear_area 2345.907 {y} -1171.6591 {z} 30.9688 {radius} 1.5 {clearParticles} False
clear_area 2345.907 {y} -1171.6591 {z} 1030.969 {radius} 1.5 {clearParticles} False

:CRASH1_8224
if 
  314@ == 0
goto_if_false @CRASH1_8405
if 
  348@ == 1
goto_if_false @CRASH1_8336
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_8329
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_8329
goto @CRASH1_8405

:CRASH1_8336
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_8405
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_8405
if 
  35@ == 99
goto_if_false @CRASH1_8430
gosub @CRASH1_38827

:CRASH1_8430
return 

:CRASH1_8432
if 
  35@ == 0
goto_if_false @CRASH1_8840
346@ = 1
if 
  is_script_fire_extinguished 163@
goto_if_false @CRASH1_8480
346@ = 0

:CRASH1_8480
set_player_control $player1 {state} False
gosub @CRASH1_29056
mark_model_as_no_longer_needed 109
if 
  not is_car_dead 98@
goto_if_false @CRASH1_8526
open_car_door_a_bit 98@ {door} CarDoor.Hood {value} 0.0

:CRASH1_8526
322@ = 0
196@ = 0
192@ = 3
gosub @CRASH1_24873
clear_onscreen_counter $g_Crash1_counterKM1
194@ = 3
195@ = 3
282@ = 2319.717
283@ = -1178.556
284@ = 1030.969
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
set_blip_entry_exit 122@ {x} 2352.114 {y} -1170.61 {radius} 3.0
324@ = 1
352@ = 0
353@ = 0
354@ = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6602
freeze_char_position 95@ {state} False
task_go_straight_to_coord 95@ {x} 2345.627 {y} -1175.844 {z} 1030.969 {speed} MoveState.Run {time} -2
task_turn_char_to_face_char $scplayer {target} 95@
set_fixed_camera_position 2349.7681 {y} -1177.1591 {z} 1031.791 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2348.8491 {y} -1176.765 {z} 1031.828 {switchStyle} SwitchType.JumpCut
if 
  346@ == 1
goto_if_false @CRASH1_8794
192@ = 4
gosub @CRASH1_24873

:CRASH1_8794
191@ = 1
gosub @CRASH1_24064
switch_widescreen True
352@ = 1
353@ = 0
354@ = 0
35@ += 1

:CRASH1_8840
if 
  35@ == 1
goto_if_false @CRASH1_8952
if 
  354@ == 1
goto_if_false @CRASH1_8890
35@ += 1
goto @CRASH1_8952

:CRASH1_8890
50@ = 9
gosub @CRASH1_32981
if 
  49@ == 9
goto_if_false @CRASH1_8952
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_8952
if 
  35@ == 2
goto_if_false @CRASH1_9073
if 
  354@ == 1
goto_if_false @CRASH1_9002
35@ += 1
goto @CRASH1_9073

:CRASH1_9002
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9073
40@ = get_script_task_status 95@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_9073
task_turn_char_to_face_char $scplayer {target} 95@
task_turn_char_to_face_char 95@ {target} $scplayer
35@ += 1

:CRASH1_9073
if 
  35@ == 3
goto_if_false @CRASH1_9178
if 
  354@ == 1
goto_if_false @CRASH1_9123
35@ += 1
goto @CRASH1_9178

:CRASH1_9123
if and
  is_local_var_bit_set_const 54@ {bitIndex} 9
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_9178
play_mission_audio MissionAudioSlot.Slot3
193@ = 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 100
35@ += 1

:CRASH1_9178
if 
  35@ == 4
goto_if_false @CRASH1_9319
if 
  354@ == 1
goto_if_false @CRASH1_9228
35@ += 1
goto @CRASH1_9319

:CRASH1_9228
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9319
set_fixed_camera_position 2347.9419 {y} -1179.954 {z} 1031.858 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2346.95 {y} -1179.89 {z} 1031.9611 {switchStyle} SwitchType.JumpCut
50@ = 10
gosub @CRASH1_32981
35@ += 1

:CRASH1_9319
if 
  35@ == 5
goto_if_false @CRASH1_9450
if 
  354@ == 1
goto_if_false @CRASH1_9369
35@ += 1
goto @CRASH1_9450

:CRASH1_9369
if 
  49@ <> 10
goto_if_false @CRASH1_9401
50@ = 10
gosub @CRASH1_32981

:CRASH1_9401
shake_cam 40
if and
  193@ == 5
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CRASH1_9450
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_9450
if 
  35@ == 6
goto_if_false @CRASH1_9639
if 
  354@ == 1
goto_if_false @CRASH1_9500
35@ += 1
goto @CRASH1_9639

:CRASH1_9500
if 
  49@ <> 10
goto_if_false @CRASH1_9532
50@ = 10
gosub @CRASH1_32981

:CRASH1_9532
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  49@ == 10
goto_if_false @CRASH1_9639
set_fixed_camera_position 2348.4951 {y} -1176.45 {z} 1031.486 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2347.5381 {y} -1176.7321 {z} 1031.558 {switchStyle} SwitchType.JumpCut
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 3000
35@ += 1

:CRASH1_9639
if 
  35@ == 7
goto_if_false @CRASH1_9757
if 
  354@ == 1
goto_if_false @CRASH1_9689
35@ += 1
goto @CRASH1_9757

:CRASH1_9689
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_9757
if 
  346@ == 0
goto_if_false @CRASH1_9750
task_go_straight_to_coord $scplayer {x} 2344.738 {y} -1180.853 {z} 1030.9771 {speed} MoveState.Walk {time} -2

:CRASH1_9750
35@ += 1

:CRASH1_9757
if 
  35@ == 8
goto_if_false @CRASH1_9854
if 
  354@ == 1
goto_if_false @CRASH1_9807
35@ = 50
goto @CRASH1_9854

:CRASH1_9807
if 
  is_local_var_bit_set_const 54@ {bitIndex} 10
goto_if_false @CRASH1_9854
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
352@ = 0
35@ += 1

:CRASH1_9854
if 
  35@ == 9
goto_if_false @CRASH1_9879
35@ = 99

:CRASH1_9879
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_9913
354@ = 1

:CRASH1_9913
if 
  35@ == 50
goto_if_false @CRASH1_9968
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
353@ = 1
35@ += 1

:CRASH1_9968
if 
  35@ == 51
goto_if_false @CRASH1_10192
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10192
if 
  not is_local_var_bit_set_const 54@ {bitIndex} 9
goto_if_false @CRASH1_10037
gosub @CRASH1_33172
set_local_var_bit_const 54@ {bitIndex} 10

:CRASH1_10037
if 
  not is_local_var_bit_set_const 54@ {bitIndex} 10
goto_if_false @CRASH1_10062
gosub @CRASH1_33172

:CRASH1_10062
if 
  5 > 193@
goto_if_false @CRASH1_10147
if 
  is_object_playing_anim 119@ {animationName} "BD_FIRE1"
goto_if_false @CRASH1_10140
set_object_anim_current_time 119@ {animationName} "BD_FIRE1" {time} 1.0
193@ = 3
goto @CRASH1_10147

:CRASH1_10140
193@ = 4

:CRASH1_10147
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_10192
if 
  35@ == 52
goto_if_false @CRASH1_10257
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10257
353@ = 0
354@ = 0
352@ = 0
35@ = 9

:CRASH1_10257
gosub @CRASH1_31027
if 
  35@ == 99
goto_if_false @CRASH1_10289
gosub @CRASH1_38827

:CRASH1_10289
return 

:CRASH1_10291
if 
  is_char_dead 95@
goto_if_false @CRASH1_10316
37@ = 1
return 

:CRASH1_10316
if 
  35@ == 0
goto_if_false @CRASH1_10369
352@ = 0
353@ = 0
354@ = 0
331@ = 0
35@ += 1

:CRASH1_10369
if 
  35@ == 1
goto_if_false @CRASH1_10394
35@ += 1

:CRASH1_10394
if 
  35@ == 2
goto_if_false @CRASH1_10419
35@ += 1

:CRASH1_10419
if 
  35@ == 3
goto_if_false @CRASH1_10476
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 5000
set_lvar_int_to_lvar_int 207@ = 200@
207@ -= 3000
35@ += 1

:CRASH1_10476
if 
  35@ == 4
goto_if_false @CRASH1_10595
if 
  207@ <> 0
goto_if_false @CRASH1_10545
if 
  is_int_lvar_greater_than_int_lvar 45@ > 207@
goto_if_false @CRASH1_10545
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6600
207@ = 0

:CRASH1_10545
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_10595
play_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 2000
35@ += 1

:CRASH1_10595
if 
  35@ == 5
goto_if_false @CRASH1_10682
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10678
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 5000
set_lvar_int_to_lvar_int 207@ = 200@
207@ -= 3000
35@ += 1
goto @CRASH1_10682

:CRASH1_10678
shake_cam 80

:CRASH1_10682
if 
  35@ == 6
goto_if_false @CRASH1_10801
if 
  207@ <> 0
goto_if_false @CRASH1_10751
if 
  is_int_lvar_greater_than_int_lvar 45@ > 207@
goto_if_false @CRASH1_10751
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6601
207@ = 0

:CRASH1_10751
if and
  is_int_lvar_greater_than_int_lvar 45@ > 200@
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CRASH1_10801
play_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
35@ += 1

:CRASH1_10801
if 
  35@ == 7
goto_if_false @CRASH1_10856
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_10852
35@ += 1
goto @CRASH1_10856

:CRASH1_10852
shake_cam 40

:CRASH1_10856
if 
  35@ == 8
goto_if_false @CRASH1_11024
if 
  322@ == 1
goto_if_false @CRASH1_11024
clear_area 2351.762 {y} -1178.75 {z} 26.9753 {radius} 15.0 {clearParticles} True
set_char_coordinates 95@ {x} 2352.262 {y} -1176.75 {z} 26.9753
set_char_heading 95@ {heading} 0.0
set_char_has_used_entry_exit 95@ {x} 2352.114 {y} -1170.61 {radius} 8.0
set_char_area_visible 95@ {areaId} 0
clear_char_tasks_immediately 95@
switch_entry_exit 'GANG' {state} False
remove_blip 122@
gosub @CRASH1_33172
50@ = 12
gosub @CRASH1_32981
35@ += 1

:CRASH1_11024
if 
  35@ == 9
goto_if_false @CRASH1_11274
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position 2354.5891 {y} -1166.262 {z} 27.87 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2353.8259 {y} -1166.89 {z} 28.0181 {switchStyle} SwitchType.JumpCut
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
220@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2351.97 {y} -1169.26 {z} 27.013 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 180.0
close_sequence_task 220@
perform_sequence_task $scplayer {sequence} 220@
clear_sequence_task 220@
220@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2351.97 {y} -1170.26 {z} 27.013 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 0.0
close_sequence_task 220@
perform_sequence_task 95@ {sequence} 220@
clear_sequence_task 220@
request_model 407
request_model 277
load_all_models_now 
331@ = 1
352@ = 1
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_11274
if 
  35@ == 10
goto_if_false @CRASH1_11456
if 
  354@ == 1
goto_if_false @CRASH1_11324
35@ = 50
goto @CRASH1_11456

:CRASH1_11324
if 
  49@ <> 12
goto_if_false @CRASH1_11356
50@ = 12
gosub @CRASH1_32981

:CRASH1_11356
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_11456
if 
  49@ == 12
goto_if_false @CRASH1_11456
40@ = get_script_task_status 95@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_11456
40@ = get_script_task_status $scplayer {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_11456
35@ += 1

:CRASH1_11456
if 
  35@ == 11
goto_if_false @CRASH1_11675
if 
  354@ == 1
goto_if_false @CRASH1_11506
35@ = 50
goto @CRASH1_11675

:CRASH1_11506
task_char_slide_to_coord_and_play_anim 95@ {x} 2351.97 {y} -1170.26 {z} 27.013 {heading} 0.0 {radius} 0.2 {animationName} "GRLFRD_KISS_03" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_char_slide_to_coord_and_play_anim $scplayer {x} 2351.97 {y} -1169.26 {z} 27.013 {heading} 180.0 {radius} 0.2 {animationName} "PLAYA_KISS_03" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
gosub @CRASH1_33143
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_11675
if 
  35@ == 12
goto_if_false @CRASH1_11871
if 
  354@ == 1
goto_if_false @CRASH1_11725
35@ = 50
goto @CRASH1_11871

:CRASH1_11725
if and
  not is_char_playing_anim 95@ {animationName} "GRLFRD_KISS_03"
  not is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_11871
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
task_follow_footsteps 95@ {target} $scplayer
set_player_group_to_follow_always $player1 {state} True
331@ = 0
352@ = 0
clear_all_script_fire_flags 
35@ += 1

:CRASH1_11871
if 
  35@ == 13
goto_if_false @CRASH1_11917
if and
  has_model_loaded 407
  has_model_loaded 277
goto_if_false @CRASH1_11917
35@ = 99

:CRASH1_11917
if and
  352@ == 1
  is_skip_cutscene_button_pressed 
  354@ == 0
goto_if_false @CRASH1_11951
354@ = 1

:CRASH1_11951
if 
  35@ == 50
goto_if_false @CRASH1_12161
if 
  is_char_playing_anim 95@ {animationName} "GRLFRD_KISS_03"
goto_if_false @CRASH1_12027
set_char_anim_current_time 95@ {animationName} "GRLFRD_KISS_03" {time} 1.0

:CRASH1_12027
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @CRASH1_12083
set_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_03" {time} 1.0

:CRASH1_12083
if 
  not is_local_var_bit_set_const 54@ {bitIndex} 12
goto_if_false @CRASH1_12108
gosub @CRASH1_33172

:CRASH1_12108
clear_char_tasks_immediately 95@
clear_char_tasks_immediately $scplayer
set_lvar_int_to_lvar_int 200@ = 45@
353@ = 0
354@ = 0
331@ = 0
352@ = 0
35@ = 12

:CRASH1_12161
if 
  331@ == 0
goto_if_false @CRASH1_12186
gosub @CRASH1_29132

:CRASH1_12186
gosub @CRASH1_31027
gosub @CRASH1_31470
gosub @CRASH1_31657
289@ = 2319.9939
289@ -= 1.5
291@ = -1179.218
291@ -= 1.5
293@ = 1030.9771
293@ -= 1.2
290@ = 2319.9939
290@ += 1.5
292@ = -1179.218
292@ += 1.5
294@ = 1030.9771
294@ += 1.2
if and
  is_char_in_area_3d $scplayer {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
  324@ == 1
goto_if_false @CRASH1_12446
remove_blip 122@
282@ = 2353.085
283@ = -1181.1
284@ = 1026.97
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
set_blip_entry_exit 122@ {x} 2352.114 {y} -1170.61 {radius} 3.0
324@ = 0

:CRASH1_12446
clear_area 255@ {y} 256@ {z} 257@ {radius} 3.0 {clearParticles} False
if and
  314@ == 0
  315@ == 1
goto_if_false @CRASH1_12536
315@ = 0
set_player_control $player1 {state} False
remove_char_from_group 95@
task_stand_still 95@ {time} -2
freeze_char_position 95@ {state} True
323@ = 1
336@ = 0

:CRASH1_12536
if and
  314@ == 0
  323@ == 1
goto_if_false @CRASH1_12765
if 
  locate_char_on_foot_3d $scplayer {x} 2351.575 {y} -1166.1899 {z} 26.4524 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CRASH1_12765
if 
  not get_fading_status 
goto_if_false @CRASH1_12765
if or
  is_char_in_area_3d 95@ {leftBottomX} 2340.0969 {leftBottomY} -1188.51 {leftBottomZ} 1025.577 {rightTopX} 2352.9771 {rightTopY} -1179.882 {rightTopZ} 1028.184 {drawSphere} False
  is_char_in_area_3d 95@ {leftBottomX} 2344.22 {leftBottomY} -1179.892 {leftBottomZ} 1025.577 {rightTopX} 2349.8311 {rightTopY} -1171.6639 {rightTopZ} 1028.184 {drawSphere} False
goto_if_false @CRASH1_12735
322@ = 1
323@ = 0
freeze_char_position 95@ {state} False
goto @CRASH1_12765

:CRASH1_12735
print_now 'CRA1_10' {time} 8000 {flag} 1
set_player_control $player1 {state} True
336@ = 1

:CRASH1_12765
if and
  314@ == 1
  336@ == 1
goto_if_false @CRASH1_12844
336@ = 0
freeze_char_position 95@ {state} False
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
set_player_group_to_follow_always $player1 {state} True
190@ = 2

:CRASH1_12844
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_12901
214@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Extinguisher
if 
  500 > 214@
goto_if_false @CRASH1_12901
set_char_ammo $scplayer {weaponType} WeaponType.Extinguisher {ammo} 30000

:CRASH1_12901
if 
  342@ == 1
goto_if_false @CRASH1_12972
clear_local_var_bit_const 54@ {bitIndex} 11
50@ = 11
gosub @CRASH1_32981
if 
  49@ == 11
goto_if_false @CRASH1_12972
gosub @CRASH1_33143
342@ = 0

:CRASH1_12972
if 
  314@ == 0
goto_if_false @CRASH1_13153
if 
  348@ == 1
goto_if_false @CRASH1_13084
if 
  not locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 48.1099 {yRadius} 41.5599 {zRadius} 18.75 {drawSphere} False
goto_if_false @CRASH1_13077
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
348@ = 0

:CRASH1_13077
goto @CRASH1_13153

:CRASH1_13084
if 
  locate_char_any_means_3d $scplayer {x} 2337.666 {y} -1180.994 {z} 31.7513 {xRadius} 38.1099 {yRadius} 31.5599 {zRadius} 8.75 {drawSphere} False
goto_if_false @CRASH1_13153
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
348@ = 1

:CRASH1_13153
if 
  35@ == 99
goto_if_false @CRASH1_13178
gosub @CRASH1_38827

:CRASH1_13178
return 

:CRASH1_13180
if 
  35@ == 0
goto_if_false @CRASH1_13324
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
gosub @CRASH1_31844
258@ = 2402.3069
259@ = -1727.53
260@ = 12.3906
122@ = add_blip_for_coord 258@ {y} 259@ {z} 260@
remove_blip 131@
325@ = 0
326@ = 0
336@ = 0
50@ = 13
gosub @CRASH1_32981
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech 95@ {state} True
35@ += 1

:CRASH1_13324
if 
  is_char_dead 95@
goto_if_false @CRASH1_13367
if 
  326@ == 0
goto_if_false @CRASH1_13367
37@ = 1
return 

:CRASH1_13367
if 
  35@ == 1
goto_if_false @CRASH1_13449
if 
  49@ <> 13
goto_if_false @CRASH1_13417
50@ = 13
gosub @CRASH1_32981

:CRASH1_13417
if 
  49@ == 13
goto_if_false @CRASH1_13449
gosub @CRASH1_33143
35@ += 1

:CRASH1_13449
if 
  35@ == 2
goto_if_false @CRASH1_13773
351@ = 0
if 
  locate_char_any_means_3d 95@ {x} 258@ {y} 259@ {z} 260@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CRASH1_13580
351@ = 1
set_player_control $player1 {state} False
if 
  is_char_in_any_car 95@
goto_if_false @CRASH1_13580
$car = store_car_char_is_in_no_save 95@
if 
  not is_char_in_car $scplayer {vehicle} $car
goto_if_false @CRASH1_13580
351@ = 0

:CRASH1_13580
if 
  351@ == 1
goto_if_false @CRASH1_13773
remove_char_from_group 95@
remove_blip 122@
remove_blip 131@
326@ = 1
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_area 2401.52 {y} -1722.074 {z} 12.6072 {radius} 8.0 {clearParticles} True
if 
  is_char_in_any_car 95@
goto_if_false @CRASH1_13715
$car = store_car_char_is_in_no_save 95@
282@, 283@, 284@ = get_car_coordinates $car
clear_area 282@ {y} 283@ {z} 284@ {radius} 5.0 {clearParticles} True

:CRASH1_13715
set_fixed_camera_position 2392.542 {y} -1727.949 {z} 14.991 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2393.458 {y} -1727.558 {z} 14.9067 {switchStyle} SwitchType.JumpCut
35@ += 1

:CRASH1_13773
if 
  35@ == 3
goto_if_false @CRASH1_13861
50@ = 16
gosub @CRASH1_32981
if 
  49@ == 16
goto_if_false @CRASH1_13861
gosub @CRASH1_33143
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_13854
task_turn_char_to_face_char $scplayer {target} 95@

:CRASH1_13854
35@ += 1

:CRASH1_13861
if 
  35@ == 4
goto_if_false @CRASH1_13904
if 
  is_local_var_bit_set_const 54@ {bitIndex} 16
goto_if_false @CRASH1_13904
35@ += 1

:CRASH1_13904
if 
  35@ == 5
goto_if_false @CRASH1_13968
50@ = 17
gosub @CRASH1_32981
if 
  49@ == 17
goto_if_false @CRASH1_13968
gosub @CRASH1_33143
35@ += 1

:CRASH1_13968
if 
  35@ == 6
goto_if_false @CRASH1_14028
if 
  is_char_in_any_car 95@
goto_if_false @CRASH1_14021
task_leave_any_car 95@
35@ += 1
goto @CRASH1_14028

:CRASH1_14021
35@ = 8

:CRASH1_14028
if 
  35@ == 7
goto_if_false @CRASH1_14082
40@ = get_script_task_status 95@ {taskId} 1587
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14082
35@ += 1

:CRASH1_14082
if 
  35@ == 8
goto_if_false @CRASH1_14155
task_go_straight_to_coord 95@ {x} 2402.052 {y} -1719.7159 {z} 12.6181 {speed} MoveState.Run {time} -2
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_14148
task_turn_char_to_face_char $scplayer {target} 95@

:CRASH1_14148
35@ += 1

:CRASH1_14155
if 
  35@ == 9
goto_if_false @CRASH1_14400
40@ = get_script_task_status 95@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14400
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
282@, 283@, 284@ = get_char_coordinates 95@
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
set_lvar_float_to_lvar_float 282@ = 289@
sub_float_lvar_from_float_lvar 282@ -= 290@
set_lvar_float_to_lvar_float 283@ = 291@
sub_float_lvar_from_float_lvar 283@ -= 292@
285@ = get_heading_from_vector_2d 282@ {y} 283@
task_char_slide_to_coord_and_play_anim 95@ {x} 2402.052 {y} -1719.7159 {z} 12.6181 {heading} 285@ {radius} 0.2 {animationName} "BD_GF_WAVE" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_14393
task_turn_char_to_face_char $scplayer {target} 95@

:CRASH1_14393
35@ += 1

:CRASH1_14400
if 
  35@ == 10
goto_if_false @CRASH1_14464
50@ = 18
gosub @CRASH1_32981
if 
  49@ == 18
goto_if_false @CRASH1_14464
gosub @CRASH1_33143
35@ += 1

:CRASH1_14464
if 
  35@ == 11
goto_if_false @CRASH1_14582
if 
  is_char_playing_anim 95@ {animationName} "BD_GF_WAVE"
goto_if_false @CRASH1_14582
295@ = get_char_anim_current_time 95@ {animationName} "BD_GF_WAVE"
if 
  295@ == 1.0
goto_if_false @CRASH1_14582
task_go_straight_to_coord 95@ {x} 2401.8569 {y} -1717.01 {z} 12.6334 {speed} MoveState.Run {time} -2
35@ += 1

:CRASH1_14582
if 
  35@ == 12
goto_if_false @CRASH1_14656
40@ = get_script_task_status 95@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_14656
delete_char 95@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
shut_char_up_for_scripted_speech $scplayer {state} False
35@ += 1

:CRASH1_14656
if 
  35@ == 13
goto_if_false @CRASH1_14699
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
35@ = 99

:CRASH1_14699
if 
  326@ == 0
goto_if_false @CRASH1_14803
if 
  is_char_in_any_car $scplayer
goto_if_false @CRASH1_14770
if 
  325@ == 0
goto_if_false @CRASH1_14763
325@ = 1
clear_char_tasks_immediately 95@

:CRASH1_14763
goto @CRASH1_14803

:CRASH1_14770
if 
  325@ == 1
goto_if_false @CRASH1_14803
325@ = 0
task_follow_footsteps 95@ {target} $scplayer

:CRASH1_14803
if 
  not is_char_dead 95@
goto_if_false @CRASH1_15122
214@ = get_char_area_visible $scplayer
215@ = get_char_area_visible 95@
if 
  is_int_lvar_equal_to_int_lvar 214@ == 215@
goto_if_false @CRASH1_15122
282@, 283@, 284@ = get_char_coordinates 95@
286@, 287@, 288@ = get_char_coordinates $scplayer
296@ = get_distance_between_coords_3d 282@ {fromY} 283@ {fromZ} 284@ {toX} 286@ {toY} 287@ {toZ} 288@
if 
  336@ == 1
goto_if_false @CRASH1_15041
if 
  20.0 > 296@
goto_if_false @CRASH1_15034
336@ = 0
clear_char_tasks 95@
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
set_player_group_to_follow_always $player1 {state} True
if 
  325@ == 0
goto_if_false @CRASH1_15015
task_follow_footsteps 95@ {target} $scplayer

:CRASH1_15015
122@ = add_blip_for_coord 258@ {y} 259@ {z} 260@
remove_blip 131@

:CRASH1_15034
goto @CRASH1_15122

:CRASH1_15041
if 
  296@ > 50.0
goto_if_false @CRASH1_15122
336@ = 1
print_now 'CRA1_12' {time} 7000 {flag} 1
remove_char_from_group 95@
clear_char_tasks_immediately 95@
task_stand_still 95@ {time} -2
remove_blip 122@
131@ = add_blip_for_char 95@
set_blip_as_friendly 131@ {state} True

:CRASH1_15122
if and
  not is_char_dead 95@
  326@ == 0
goto_if_false @CRASH1_15262
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 95@
goto_if_false @CRASH1_15262
$car = store_car_char_is_in_no_save $scplayer
if and
  is_char_in_car 95@ {vehicle} $car
  not is_car_stopped $car
goto_if_false @CRASH1_15262
if and
  not is_local_var_bit_set_const 54@ {bitIndex} 14
  49@ == 0
goto_if_false @CRASH1_15262
50@ = 14
gosub @CRASH1_32981
if 
  49@ == 14
goto_if_false @CRASH1_15262
gosub @CRASH1_33143

:CRASH1_15262
if and
  not is_char_dead 95@
  326@ == 0
goto_if_false @CRASH1_15422
if and
  not is_local_var_bit_set_const 54@ {bitIndex} 15
  49@ <> 15
goto_if_false @CRASH1_15422
if 
  locate_char_any_means_3d 95@ {x} 258@ {y} 259@ {z} 260@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @CRASH1_15422
gosub @CRASH1_33172
50@ = 15
gosub @CRASH1_32981
if 
  49@ == 15
goto_if_false @CRASH1_15398
gosub @CRASH1_33143

:CRASH1_15398
clear_area 2401.52 {y} -1722.074 {z} 12.6072 {radius} 8.0 {clearParticles} True

:CRASH1_15422
if 
  35@ == 99
goto_if_false @CRASH1_15447
gosub @CRASH1_38827

:CRASH1_15447
return 

:CRASH1_15449
if 
  35@ == 0
goto_if_false @CRASH1_15512
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_15512
if 
  35@ == 1
goto_if_false @CRASH1_15587
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15587
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_15587
if 
  35@ == 2
goto_if_false @CRASH1_15849
if and
  not get_fading_status 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15849
if 
  314@ == 0
goto_if_false @CRASH1_15693
if 
  is_char_in_any_car $scplayer
goto_if_false @CRASH1_15693
$car = store_car_char_is_in_no_save $scplayer
warp_char_from_car_to_coord $scplayer {x} 2351.7329 {y} -1179.042 {z} 26.9753
delete_car $car

:CRASH1_15693
set_area_visible 0
clear_area 2351.9609 {y} -1172.073 {z} 26.9765 {radius} 8.0 {clearParticles} True
load_scene 2351.9609 {y} -1172.073 {z} 26.9765
set_char_coordinates $scplayer {x} 2351.9609 {y} -1172.073 {z} 26.9765
set_char_heading $scplayer {heading} 0.0
set_char_area_visible $scplayer {areaId} 0
set_fixed_camera_position 2345.0439 {y} -1170.015 {z} 32.0063 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2345.8 {y} -1169.822 {z} 31.381 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1000
35@ += 1

:CRASH1_15849
if 
  35@ == 3
goto_if_false @CRASH1_15940
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_15940
do_fade 500 {direction} Fade.In
task_go_straight_to_coord $scplayer {x} 2351.928 {y} -1166.08 {z} 26.4593 {speed} MoveState.Run {time} -2
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 500
35@ += 1

:CRASH1_15940
if 
  35@ == 4
goto_if_false @CRASH1_16045
if 
  is_int_lvar_greater_than_int_lvar 45@ > 200@
goto_if_false @CRASH1_16045
40@ = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_16045
set_char_coordinates $scplayer {x} 2351.928 {y} -1166.08 {z} 26.4593
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
35@ = 99

:CRASH1_16045
if 
  35@ == 99
goto_if_false @CRASH1_16092
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
gosub @CRASH1_38827

:CRASH1_16092
return 

:CRASH1_16094
if 
  334@ == 0
goto_if_false @CRASH1_16169
set_object_proofs 114@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_object_collision_damage_effect 114@ {state} True
set_object_dynamic 114@ {state} True
break_object 114@ {intensity} 1
197@ = 0
gosub @CRASH1_25459
goto @CRASH1_16183

:CRASH1_16169
192@ = 2
gosub @CRASH1_24873

:CRASH1_16183
if 
  not is_char_dead 94@
goto_if_false @CRASH1_16244
set_char_coordinates 94@ {x} 2352.1809 {y} -1164.8929 {z} 26.4392
138@ = start_char_fire 94@
set_char_health 94@ {health} 1
clear_char_tasks_immediately 94@
task_die 94@

:CRASH1_16244
if 
  does_object_exist 106@
goto_if_false @CRASH1_16265
delete_object 106@

:CRASH1_16265
if 
  335@ == 0
goto_if_false @CRASH1_16297
197@ = 4
gosub @CRASH1_25459

:CRASH1_16297
remove_blip 122@
282@ = 2352.0371
283@ = -1170.318
284@ = 26.9702
122@ = add_blip_for_coord 282@ {y} 283@ {z} 284@
gosub @CRASH1_26993
216@ = 0

:CRASH1_16360
if 
  not is_char_dead 87@(216@,5i)
goto_if_false @CRASH1_16409
if 
  182@(216@,5i) == 6
goto_if_false @CRASH1_16409
gosub @CRASH1_18650

:CRASH1_16409
216@ += 1
  216@ >= 5
goto_if_false @CRASH1_16360
if 
  187@ == 5
goto_if_false @CRASH1_16455
gosub @CRASH1_23025

:CRASH1_16455
return 

:CRASH1_16457
282@ = 1785.698
283@ = -1222.105
284@ = 16.9119
214@ = 0
132@ = create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 20 {x} 282@ {y} 283@ {z} 284@
128@ = add_blip_for_pickup 132@
return 

:CRASH1_16525
if 
  is_char_dead 87@(216@,5i)
goto_if_false @CRASH1_16554
299@ = 1
return 

:CRASH1_16554
switch_start 182@(216@,5i) {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CRASH1_16802 {caseNum1} -1 {caseLabel1} @CRASH1_16686 {caseNum2} 0 {caseLabel2} @CRASH1_16711 {caseNum3} 1 {caseLabel3} @CRASH1_16725 {caseNum4} 2 {caseLabel4} @CRASH1_16739 {caseNum5} 3 {caseLabel5} @CRASH1_16753 {caseNum6} 4 {caseLabel6} @CRASH1_16760 {caseNum7} 5 {caseLabel7} @CRASH1_16774
switch_continued 6 {caseLabel1} @CRASH1_16788 {caseNum2} -1 {caseLabel2} @CRASH1_16802 {caseNum3} -1 {caseLabel3} @CRASH1_16802 {caseNum4} -1 {caseLabel4} @CRASH1_16802 {caseNum5} -1 {caseLabel5} @CRASH1_16802 {caseNum6} -1 {caseLabel6} @CRASH1_16802 {caseNum7} -1 {caseLabel7} @CRASH1_16802 {caseNum8} -1 {caseLabel8} @CRASH1_16802 {caseNum9} -1 {caseLabel9} @CRASH1_16802

:CRASH1_16686
gosub @CRASH1_16804
182@(216@,5i) = 0
goto @CRASH1_16802

:CRASH1_16711
gosub @CRASH1_17015
goto @CRASH1_16802

:CRASH1_16725
gosub @CRASH1_17569
goto @CRASH1_16802

:CRASH1_16739
gosub @CRASH1_18020
goto @CRASH1_16802

:CRASH1_16753
goto @CRASH1_16802

:CRASH1_16760
gosub @CRASH1_17664
goto @CRASH1_16802

:CRASH1_16774
gosub @CRASH1_18158
goto @CRASH1_16802

:CRASH1_16788
gosub @CRASH1_18210
goto @CRASH1_16802

:CRASH1_16802
return 

:CRASH1_16804
switch_start 216@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_16964 {caseNum1} 0 {caseLabel1} @CRASH1_16867 {caseNum2} 1 {caseLabel2} @CRASH1_16916 {caseNum3} -1 {caseLabel3} @CRASH1_17013 {caseNum4} -1 {caseLabel4} @CRASH1_17013 {caseNum5} -1 {caseLabel5} @CRASH1_17013 {caseNum6} -1 {caseLabel6} @CRASH1_17013 {caseNum7} -1 {caseLabel7} @CRASH1_17013

:CRASH1_16867
task_play_anim_non_interruptable 87@(216@,5i) {animationName} "WASH_UP" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_17013

:CRASH1_16916
task_play_anim 87@(216@,5i) {animationName} "PHONE_TALK" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_17013

:CRASH1_16964
task_play_anim 87@(216@,5i) {animationName} "M_SMKLEAN_LOOP" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CRASH1_17013
return 

:CRASH1_17015
if 
  301@ == 1
goto_if_false @CRASH1_17042
gosub @CRASH1_17618
return 

:CRASH1_17042
if and
  332@ == 1
  333@ == 1
goto_if_false @CRASH1_17076
gosub @CRASH1_17618
return 

:CRASH1_17076
if 
  298@ == 1
goto_if_false @CRASH1_17103
gosub @CRASH1_17848
return 

:CRASH1_17103
if 
  299@ == 1
goto_if_false @CRASH1_17130
gosub @CRASH1_17618
return 

:CRASH1_17130
if 
  has_char_been_damaged_by_char 87@(216@,5i) {handle} $scplayer
goto_if_false @CRASH1_17169
gosub @CRASH1_17618
299@ = 1
return 

:CRASH1_17169
if 
  297@ == 1
goto_if_false @CRASH1_17189
return 

:CRASH1_17189
switch_start 216@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_17497 {caseNum1} 0 {caseLabel1} @CRASH1_17252 {caseNum2} 1 {caseLabel2} @CRASH1_17301 {caseNum3} 2 {caseLabel3} @CRASH1_17350 {caseNum4} 3 {caseLabel4} @CRASH1_17399 {caseNum5} 4 {caseLabel5} @CRASH1_17448 {caseNum6} -1 {caseLabel6} @CRASH1_17497 {caseNum7} -1 {caseLabel7} @CRASH1_17497

:CRASH1_17252
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17294
gosub @CRASH1_17499

:CRASH1_17294
goto @CRASH1_17497

:CRASH1_17301
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17343
gosub @CRASH1_17499

:CRASH1_17343
goto @CRASH1_17497

:CRASH1_17350
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17392
gosub @CRASH1_17499

:CRASH1_17392
goto @CRASH1_17497

:CRASH1_17399
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17441
gosub @CRASH1_17499

:CRASH1_17441
goto @CRASH1_17497

:CRASH1_17448
if 
  locate_char_any_means_char_2d 87@(216@,5i) {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CRASH1_17490
gosub @CRASH1_17499

:CRASH1_17490
goto @CRASH1_17497

:CRASH1_17497
return 

:CRASH1_17499
221@ = set_char_say_context 87@(216@,5i) {phrase} SpeechId.AbuseGangLsv
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_17549
task_goto_char 87@(216@,5i) {target} $scplayer {time} 5000 {radius} 3.0

:CRASH1_17549
182@(216@,5i) = 1
297@ = 1
return 

:CRASH1_17569
40@ = get_script_task_status 87@(216@,5i) {taskId} 1497
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_17616
298@ = 1
gosub @CRASH1_17618

:CRASH1_17616
return 

:CRASH1_17618
clear_char_tasks_immediately 87@(216@,5i)
set_char_decision_maker 87@(216@,5i) {handleOrTemplate} 181@
task_kill_char_on_foot 87@(216@,5i) {target} $scplayer
182@(216@,5i) = 4
return 

:CRASH1_17664
if 
  329@ == 1
goto_if_false @CRASH1_17695
182@(216@,5i) = 5
return 

:CRASH1_17695
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = get_char_coordinates 87@(216@,5i)
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
295@ = get_distance_between_coords_2d 289@ {fromY} 291@ {toX} 290@ {toZ} 292@
if 
  295@ > 38.0
goto_if_false @CRASH1_17806
gosub @CRASH1_17848
return 

:CRASH1_17806
40@ = get_script_task_status 87@(216@,5i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_17846
gosub @CRASH1_17618

:CRASH1_17846
return 

:CRASH1_17848
if 
  329@ == 1
goto_if_false @CRASH1_17879
182@(216@,5i) = 5
return 

:CRASH1_17879
clear_char_tasks_immediately 87@(216@,5i)
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = get_char_coordinates 87@(216@,5i)
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
set_lvar_float_to_lvar_float 282@ = 289@
sub_float_lvar_from_float_lvar 282@ -= 290@
set_lvar_float_to_lvar_float 283@ = 291@
sub_float_lvar_from_float_lvar 283@ -= 292@
285@ = get_heading_from_vector_2d 282@ {y} 283@
task_achieve_heading 87@(216@,5i) {heading} 285@
182@(216@,5i) = 2
return 

:CRASH1_18020
282@, 283@, 284@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 289@ = 282@
set_lvar_float_to_lvar_float 291@ = 283@
282@, 283@, 284@ = get_char_coordinates 87@(216@,5i)
set_lvar_float_to_lvar_float 290@ = 282@
set_lvar_float_to_lvar_float 292@ = 283@
295@ = get_distance_between_coords_2d 289@ {fromY} 291@ {toX} 290@ {toZ} 292@
if 
  35.0 > 295@
goto_if_false @CRASH1_18131
gosub @CRASH1_17618
return 

:CRASH1_18131
if 
  300@ == 1
goto_if_false @CRASH1_18156
gosub @CRASH1_17848

:CRASH1_18156
return 

:CRASH1_18158
gosub @CRASH1_18329
clear_char_tasks_immediately 87@(216@,5i)
set_char_decision_maker 87@(216@,5i) {handleOrTemplate} 180@
task_stand_still 87@(216@,5i) {time} -2
182@(216@,5i) = 6
return 

:CRASH1_18210
if 
  329@ == 1
goto_if_false @CRASH1_18283
40@ = get_script_task_status 87@(216@,5i) {taskId} 1466
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_18281
clear_char_tasks_immediately 87@(216@,5i)
task_stand_still 87@(216@,5i) {time} -2

:CRASH1_18281
return 

:CRASH1_18283
clear_char_tasks_immediately 87@(216@,5i)
set_char_decision_maker 87@(216@,5i) {handleOrTemplate} 181@
task_kill_char_on_foot 87@(216@,5i) {target} $scplayer
182@(216@,5i) = 4
return 

:CRASH1_18329
get_char_coordinates 87@(216@,5i) {var_x} 261@(216@,5f) {var_y} 266@(216@,5f) {var_z} 271@(216@,5f)
switch_start 210@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @CRASH1_18639 {caseNum1} 0 {caseLabel1} @CRASH1_18422 {caseNum2} 1 {caseLabel2} @CRASH1_18453 {caseNum3} 2 {caseLabel3} @CRASH1_18484 {caseNum4} 3 {caseLabel4} @CRASH1_18515 {caseNum5} 4 {caseLabel5} @CRASH1_18546 {caseNum6} 5 {caseLabel6} @CRASH1_18577 {caseNum7} 6 {caseLabel7} @CRASH1_18608

:CRASH1_18422
set_char_coordinates 87@(216@,5i) {x} 2319.314 {y} -1202.897 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18453
set_char_coordinates 87@(216@,5i) {x} 2315.9771 {y} -1204.658 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18484
set_char_coordinates 87@(216@,5i) {x} 2318.991 {y} -1207.222 {z} 26.9615
goto @CRASH1_18641

:CRASH1_18515
set_char_coordinates 87@(216@,5i) {x} 2315.7451 {y} -1210.296 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18546
set_char_coordinates 87@(216@,5i) {x} 2318.0901 {y} -1212.916 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18577
set_char_coordinates 87@(216@,5i) {x} 2314.1089 {y} -1215.641 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18608
set_char_coordinates 87@(216@,5i) {x} 2316.042 {y} -1219.501 {z} 26.9609
goto @CRASH1_18641

:CRASH1_18639
return 

:CRASH1_18641
210@ += 1
return 

:CRASH1_18650
213@ = 0

:CRASH1_18657
if 
  not is_char_dead 87@(213@,5i)
goto_if_false @CRASH1_18707
set_char_coordinates 87@(213@,5i) {x} 261@(213@,5f) {y} 266@(213@,5f) {z} 271@(213@,5f)

:CRASH1_18707
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_18657
return 

:CRASH1_18730
282@ = 2346.0471
283@ = -1189.661
284@ = 27.9709
214@ = 0
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2336.0449
283@ = -1189.661
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2326.4089
283@ = -1189.661
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2345.8979
283@ = -1170.0439
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
282@ = 2326.407
283@ = -1170.0439
284@ = 27.9709
214@ += 1
create_object #CR_AMMOBOX {x} 282@ {y} 283@ {z} 284@ {var_handle} 109@(214@,5i)
set_object_visible 109@(214@,5i) {state} False
set_object_collision 109@(214@,5i) {state} False
add_blip_for_object 109@(214@,5i) {var_handle} 123@(214@,5i)
change_blip_colour 123@(214@,5i) {color} BlipColor.Red
set_object_health 109@(214@,5i) {health} 1
return 

:CRASH1_19322
214@ = 0
222@(214@,5f) = 2345.979
222@(214@,5f) -= 2.1
227@(214@,5f) = 2345.979
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2336.188
222@(214@,5f) -= 2.1
227@(214@,5f) = 2336.188
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2326.2549
222@(214@,5f) -= 2.1
227@(214@,5f) = 2326.2549
227@(214@,5f) += 2.1
232@(214@,5f) = -1188.8
232@(214@,5f) -= 0.8
237@(214@,5f) = -1188.8
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2346.116
222@(214@,5f) -= 2.1
227@(214@,5f) = 2346.116
227@(214@,5f) += 2.1
232@(214@,5f) = -1171.0
232@(214@,5f) -= 0.8
237@(214@,5f) = -1171.0
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
214@ += 1
222@(214@,5f) = 2326.2549
222@(214@,5f) -= 2.1
227@(214@,5f) = 2326.2549
227@(214@,5f) += 2.1
232@(214@,5f) = -1171.0
232@(214@,5f) -= 0.8
237@(214@,5f) = -1171.0
237@(214@,5f) += 0.8
242@(214@,5f) = 28.8649
242@(214@,5f) -= 1.2
247@(214@,5f) = 28.8649
247@(214@,5f) += 1.2
302@(214@,5i) = 0
307@(214@,5i) = 0
return 

:CRASH1_20309
if 
  302@(217@,5i) == 1
goto_if_false @CRASH1_20333
return 

:CRASH1_20333
if 
  is_projectile_in_area 222@(217@,5f) {leftBottomY} 232@(217@,5f) {leftBottomZ} 242@(217@,5f) {rightTopX} 227@(217@,5f) {rightTopY} 237@(217@,5f) {rightTopZ} 247@(217@,5f)
goto_if_false @CRASH1_20471
if 
  not has_object_been_damaged 101@(217@,8i)
goto_if_false @CRASH1_20419
break_object 101@(217@,8i) {intensity} 1

:CRASH1_20419
302@(217@,5i) = 1
301@ = 1
delete_object 109@(217@,5i)
remove_blip 123@(217@,5i)
set_lvar_int_to_lvar_int 205@ = 45@
205@ += 500

:CRASH1_20471
return 

:CRASH1_20473
214@ = generate_random_int_in_range 0 {max} 5
switch_start 214@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_20660 {caseNum1} 0 {caseLabel1} @CRASH1_20545 {caseNum2} 1 {caseLabel2} @CRASH1_20568 {caseNum3} 2 {caseLabel3} @CRASH1_20591 {caseNum4} 3 {caseLabel4} @CRASH1_20614 {caseNum5} 4 {caseLabel5} @CRASH1_20637 {caseNum6} -1 {caseLabel6} @CRASH1_20660 {caseNum7} -1 {caseLabel7} @CRASH1_20660

:CRASH1_20545
print_now 'CRA1_30' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20568
print_now 'CRA1_31' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20591
print_now 'CRA1_32' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20614
print_now 'CRA1_33' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20637
print_now 'CRA1_34' {time} 4000 {flag} 1
goto @CRASH1_20660

:CRASH1_20660
return 

:CRASH1_20662
218@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Molotov
if and
  218@ == 0
  5 > 209@
goto_if_false @CRASH1_21013
if 
  345@ == 0
goto_if_false @CRASH1_20740
set_lvar_int_to_lvar_int 208@ = 45@
208@ += 3000
345@ = 1
return 

:CRASH1_20740
if 
  not is_int_lvar_greater_than_int_lvar 45@ > 208@
goto_if_false @CRASH1_20761
return 

:CRASH1_20761
208@ = 0
345@ = 0
282@ = 2337.6021
283@ = -1169.369
284@ = 28.2207
214@ = 0
create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 20 {x} 282@ {y} 283@ {z} 284@ {var_handle} 133@(214@,2i)
add_blip_for_pickup 133@(214@,2i) {var_handle} 129@(214@,2i)
282@ = 2334.1289
283@ = -1200.438
284@ = 28.1609
214@ += 1
create_pickup_with_ammo 344 {pickupType} PickupType.Once {ammo} 20 {x} 282@ {y} 283@ {z} 284@ {var_handle} 133@(214@,2i)
add_blip_for_pickup 133@(214@,2i) {var_handle} 129@(214@,2i)
213@ = 0

:CRASH1_20938
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_20969
remove_blip 123@(213@,5i)

:CRASH1_20969
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_20938
print_now 'CRA1_03' {time} 5000 {flag} 1
313@ = 1

:CRASH1_21013
return 

:CRASH1_21015
if or
  has_pickup_been_collected 133@
  has_pickup_been_collected 134@
goto_if_false @CRASH1_21166
213@ = 0

:CRASH1_21043
remove_pickup 133@(213@,2i)
remove_blip 129@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_21043
213@ = 0

:CRASH1_21089
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_21138
add_blip_for_object 109@(213@,5i) {var_handle} 123@(213@,5i)
change_blip_colour 123@(213@,5i) {color} BlipColor.Red

:CRASH1_21138
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_21089
313@ = 0

:CRASH1_21166
return 

:CRASH1_21168
switch_start 187@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_21329 {caseNum1} -1 {caseLabel1} @CRASH1_21231 {caseNum2} 0 {caseLabel2} @CRASH1_21245 {caseNum3} 1 {caseLabel3} @CRASH1_21259 {caseNum4} 2 {caseLabel4} @CRASH1_21273 {caseNum5} 3 {caseLabel5} @CRASH1_21287 {caseNum6} 4 {caseLabel6} @CRASH1_21301 {caseNum7} 5 {caseLabel7} @CRASH1_21315

:CRASH1_21231
gosub @CRASH1_21331
goto @CRASH1_21329

:CRASH1_21245
gosub @CRASH1_21609
goto @CRASH1_21329

:CRASH1_21259
gosub @CRASH1_21703
goto @CRASH1_21329

:CRASH1_21273
gosub @CRASH1_21766
goto @CRASH1_21329

:CRASH1_21287
gosub @CRASH1_21874
goto @CRASH1_21329

:CRASH1_21301
gosub @CRASH1_22007
goto @CRASH1_21329

:CRASH1_21315
gosub @CRASH1_22347
goto @CRASH1_21329

:CRASH1_21329
return 

:CRASH1_21331
if 
  209@ <> 2
goto_if_false @CRASH1_21351
return 

:CRASH1_21351
282@ = 2370.792
283@ = -1250.899
284@ = 22.8451
285@ = 358.0048
clear_area 282@ {y} 283@ {z} 284@ {radius} 10.0 {clearParticles} False
99@ = create_car 412 {x} 282@ {y} 283@ {z} 284@
set_car_heading 99@ {heading} 285@
set_car_cruise_speed 99@ {maxSpeed} 100.0
set_car_driving_style 99@ {drivingStyle} DrivingMode.AvoidCars
214@ = 0
create_char_inside_car 99@ {pedType} PedType.Gang8 {modelId} 109 {var_handle} 92@(214@,2i)
give_weapon_to_char 92@(214@,2i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 92@(214@,2i) {state} True
214@ += 1
create_char_as_passenger 99@ {pedType} PedType.Gang8 {modelId} 108 {seat} SeatId.BikeRear {var_handle} 92@(214@,2i)
give_weapon_to_char 92@(214@,2i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 92@(214@,2i) {state} True
252@ = 2370.792
253@ = -1185.662
254@ = 26.4297
car_goto_coordinates 99@ {x} 252@ {y} 253@ {z} 254@
187@ = 0
357@ = 1
return 

:CRASH1_21609
if 
  is_car_dead 99@
goto_if_false @CRASH1_21634
187@ = 2
return 

:CRASH1_21634
if 
  locate_car_2d 99@ {x} 252@ {y} 253@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @CRASH1_21701
set_car_temp_action 99@ {actionId} TempAction.TurnLeft {time} 500
set_lvar_int_to_lvar_int 199@ = 45@
199@ += 350
187@ = 1

:CRASH1_21701
return 

:CRASH1_21703
if 
  is_car_dead 99@
goto_if_false @CRASH1_21728
187@ = 2
return 

:CRASH1_21728
if 
  is_int_lvar_greater_than_int_lvar 45@ > 199@
goto_if_false @CRASH1_21764
set_car_temp_action 99@ {actionId} TempAction.HandbrakeTurnLeft {time} 5000
187@ = 2

:CRASH1_21764
return 

:CRASH1_21766
if or
  is_car_dead 99@
  is_car_stopped 99@
goto_if_false @CRASH1_21872
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21826
task_leave_car 92@(216@,2i) {vehicle} 99@

:CRASH1_21826
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21865
task_leave_car 92@(216@,2i) {vehicle} 99@

:CRASH1_21865
187@ = 3

:CRASH1_21872
return 

:CRASH1_21874
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21936
40@ = get_script_task_status 92@(216@,2i) {taskId} 1485
if 
  not is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_21936
return 

:CRASH1_21936
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_21998
40@ = get_script_task_status 92@(216@,2i) {taskId} 1485
if 
  not is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_21998
return 

:CRASH1_21998
187@ = 4
return 

:CRASH1_22007
if 
  329@ == 1
goto_if_false @CRASH1_22159
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22084
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 180@
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22084
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22143
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 180@
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22143
gosub @CRASH1_22656
187@ = 5
return 

:CRASH1_22159
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22252
40@ = get_script_task_status 92@(216@,2i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22252
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22252
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22345
40@ = get_script_task_status 92@(216@,2i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22345
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22345
return 

:CRASH1_22347
if 
  329@ == 1
goto_if_false @CRASH1_22527
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22445
40@ = get_script_task_status 92@(216@,2i) {taskId} 1466
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22445
clear_char_tasks_immediately 92@(216@,2i)
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22445
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22525
40@ = get_script_task_status 92@(216@,2i) {taskId} 1466
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_22525
clear_char_tasks_immediately 92@(216@,2i)
task_stand_still 92@(216@,2i) {time} -2

:CRASH1_22525
return 

:CRASH1_22527
216@ = 0
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22587
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22587
216@ += 1
if 
  not is_char_dead 92@(216@,2i)
goto_if_false @CRASH1_22647
clear_char_tasks_immediately 92@(216@,2i)
set_char_decision_maker 92@(216@,2i) {handleOrTemplate} 181@
task_kill_char_on_foot 92@(216@,2i) {target} $scplayer

:CRASH1_22647
187@ = 4
return 

:CRASH1_22656
213@ = 0

:CRASH1_22663
if 
  not is_char_dead 92@(213@,2i)
goto_if_false @CRASH1_23002
get_char_coordinates 92@(213@,2i) {var_x} 276@(213@,2f) {var_y} 278@(213@,2f) {var_z} 280@(213@,2f)
switch_start 210@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @CRASH1_22993 {caseNum1} 0 {caseLabel1} @CRASH1_22776 {caseNum2} 1 {caseLabel2} @CRASH1_22807 {caseNum3} 2 {caseLabel3} @CRASH1_22838 {caseNum4} 3 {caseLabel4} @CRASH1_22869 {caseNum5} 4 {caseLabel5} @CRASH1_22900 {caseNum6} 5 {caseLabel6} @CRASH1_22931 {caseNum7} 6 {caseLabel7} @CRASH1_22962

:CRASH1_22776
set_char_coordinates 92@(213@,2i) {x} 2319.314 {y} -1202.897 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22807
set_char_coordinates 92@(213@,2i) {x} 2315.9771 {y} -1204.658 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22838
set_char_coordinates 92@(213@,2i) {x} 2318.991 {y} -1207.222 {z} 26.9615
goto @CRASH1_22995

:CRASH1_22869
set_char_coordinates 92@(213@,2i) {x} 2315.7451 {y} -1210.296 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22900
set_char_coordinates 92@(213@,2i) {x} 2318.0901 {y} -1212.916 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22931
set_char_coordinates 92@(213@,2i) {x} 2314.1089 {y} -1215.641 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22962
set_char_coordinates 92@(213@,2i) {x} 2316.042 {y} -1219.501 {z} 26.9609
goto @CRASH1_22995

:CRASH1_22993
return 

:CRASH1_22995
210@ += 1

:CRASH1_23002
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_22663
return 

:CRASH1_23025
213@ = 0

:CRASH1_23032
if 
  not is_char_dead 92@(213@,2i)
goto_if_false @CRASH1_23082
set_char_coordinates 92@(213@,2i) {x} 276@(213@,2f) {y} 278@(213@,2f) {z} 280@(213@,2f)

:CRASH1_23082
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_23032
return 

:CRASH1_23105
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position 2335.3391 {y} -1159.13 {z} 30.4689 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2336.1541 {y} -1159.707 {z} 30.42 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 1500
return 

:CRASH1_23203
if 
  191@ == 5
goto_if_false @CRASH1_23223
remove_all_script_fires 

:CRASH1_23223
if or
  191@ == 5
  191@ == 3
goto_if_false @CRASH1_23384
214@ = generate_random_int_in_range 2 {max} 4
142@ = start_script_fire 2346.355 {y} -1172.734 {z} 27.2957 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
143@ = start_script_fire 2345.4839 {y} -1171.842 {z} 27.2957 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
144@ = start_script_fire 2348.1709 {y} -1173.493 {z} 27.2957 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
145@ = start_script_fire 2348.387 {y} -1172.34 {z} 27.2957 {propagation} 1 {size} 214@

:CRASH1_23384
if or
  191@ == 5
  191@ == 0
goto_if_false @CRASH1_23545
214@ = generate_random_int_in_range 1 {max} 4
146@ = start_script_fire 2347.9829 {y} -1187.069 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
147@ = start_script_fire 2347.792 {y} -1186.2531 {z} 27.2891 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
148@ = start_script_fire 2346.1499 {y} -1186.639 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
149@ = start_script_fire 2345.988 {y} -1188.301 {z} 27.2891 {propagation} 1 {size} 214@

:CRASH1_23545
if or
  191@ == 5
  191@ == 1
goto_if_false @CRASH1_23706
214@ = generate_random_int_in_range 1 {max} 4
150@ = start_script_fire 2334.9719 {y} -1187.806 {z} 27.082 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
151@ = start_script_fire 2334.1819 {y} -1188.269 {z} 27.008 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
152@ = start_script_fire 2335.7859 {y} -1188.25 {z} 27.7429 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
153@ = start_script_fire 2335.467 {y} -1187.1429 {z} 27.5372 {propagation} 0 {size} 214@

:CRASH1_23706
if or
  191@ == 5
  191@ == 2
goto_if_false @CRASH1_23901
214@ = generate_random_int_in_range 2 {max} 4
154@ = start_script_fire 2323.4309 {y} -1185.613 {z} 27.2891 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
155@ = start_script_fire 2324.5491 {y} -1186.614 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
156@ = start_script_fire 2325.3711 {y} -1184.3831 {z} 27.2891 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
157@ = start_script_fire 2324.762 {y} -1187.462 {z} 27.2891 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
158@ = start_script_fire 2324.7161 {y} -1188.478 {z} 30.58 {propagation} 1 {size} 214@

:CRASH1_23901
if or
  191@ == 5
  191@ == 4
goto_if_false @CRASH1_24062
214@ = generate_random_int_in_range 2 {max} 4
159@ = start_script_fire 2322.239 {y} -1172.9709 {z} 27.1409 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
160@ = start_script_fire 2322.22 {y} -1174.752 {z} 27.2031 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
161@ = start_script_fire 2323.696 {y} -1174.429 {z} 27.2131 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 2 {max} 4
162@ = start_script_fire 2325.1589 {y} -1172.793 {z} 27.1539 {propagation} 1 {size} 214@

:CRASH1_24062
return 

:CRASH1_24064
if 
  191@ == 0
goto_if_false @CRASH1_24084
remove_all_script_fires 

:CRASH1_24084
if 
  191@ == 1
goto_if_false @CRASH1_24139
213@ = 0

:CRASH1_24109
remove_script_fire 142@(213@,21i)
213@ += 1
  213@ >= 8
goto_if_false @CRASH1_24109

:CRASH1_24139
214@ = generate_random_int_in_range 1 {max} 3
142@ = start_script_fire 2345.646 {y} -1178.38 {z} 1027.153 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
143@ = start_script_fire 2344.5581 {y} -1178.334 {z} 1027.125 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
144@ = start_script_fire 2345.0271 {y} -1177.208 {z} 1027.165 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
145@ = start_script_fire 2347.865 {y} -1173.929 {z} 1027.224 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
146@ = start_script_fire 2349.136 {y} -1187.9139 {z} 1027.259 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
147@ = start_script_fire 2348.7981 {y} -1186.306 {z} 1027.281 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
148@ = start_script_fire 2347.625 {y} -1187.324 {z} 1027.2679 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
149@ = start_script_fire 2347.5869 {y} -1184.5959 {z} 1027.134 {propagation} 1 {size} 214@
if 
  191@ == 0
goto_if_false @CRASH1_24871
214@ = generate_random_int_in_range 1 {max} 3
150@ = start_script_fire 2334.9719 {y} -1187.806 {z} 1027.182 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
151@ = start_script_fire 2334.1819 {y} -1188.269 {z} 1027.108 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
152@ = start_script_fire 2335.7859 {y} -1188.25 {z} 1027.743 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
153@ = start_script_fire 2335.467 {y} -1187.1429 {z} 1027.537 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
154@ = start_script_fire 2321.8201 {y} -1179.514 {z} 1027.767 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
155@ = start_script_fire 2321.4541 {y} -1181.0439 {z} 1027.224 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
156@ = start_script_fire 2322.7891 {y} -1181.093 {z} 1027.172 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
157@ = start_script_fire 2321.8521 {y} -1183.062 {z} 1027.1121 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
158@ = start_script_fire 2322.6111 {y} -1184.014 {z} 1027.1331 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
159@ = start_script_fire 2322.239 {y} -1172.9709 {z} 1027.141 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
160@ = start_script_fire 2322.22 {y} -1174.752 {z} 1027.203 {propagation} 0 {size} 214@
214@ = generate_random_int_in_range 1 {max} 4
161@ = start_script_fire 2323.696 {y} -1174.429 {z} 1027.213 {propagation} 1 {size} 214@
214@ = generate_random_int_in_range 1 {max} 3
162@ = start_script_fire 2325.1589 {y} -1172.793 {z} 1027.1541 {propagation} 1 {size} 214@

:CRASH1_24871
return 

:CRASH1_24873
switch_start 192@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_25457 {caseNum1} 0 {caseLabel1} @CRASH1_24936 {caseNum2} 1 {caseLabel2} @CRASH1_24967 {caseNum3} 2 {caseLabel3} @CRASH1_24998 {caseNum4} 3 {caseLabel4} @CRASH1_25010 {caseNum5} 4 {caseLabel5} @CRASH1_25089 {caseNum6} 5 {caseLabel6} @CRASH1_25125 {caseNum7} 6 {caseLabel7} @CRASH1_25222

:CRASH1_24936
163@ = start_script_fire 2345.4641 {y} -1174.033 {z} 31.1 {propagation} 0 {size} 3
goto @CRASH1_25457

:CRASH1_24967
164@ = start_script_fire 2352.1001 {y} -1171.25 {z} 26.97 {propagation} 0 {size} 2
goto @CRASH1_25457

:CRASH1_24998
remove_script_fire 164@
goto @CRASH1_25457

:CRASH1_25010
164@ = start_script_fire 2340.365 {y} -1184.928 {z} 1031.1 {propagation} 0 {size} 3
165@ = start_script_fire 2332.4829 {y} -1180.889 {z} 1031.1 {propagation} 0 {size} 3
166@ = start_script_fire 2326.0811 {y} -1178.825 {z} 1027.2 {propagation} 0 {size} 3
goto @CRASH1_25457

:CRASH1_25089
remove_script_fire 163@
163@ = start_script_fire 2344.884 {y} -1178.697 {z} 1031.1 {propagation} 0 {size} 3
goto @CRASH1_25457

:CRASH1_25125
213@ = 0

:CRASH1_25132
318@(213@,4i) = 1
if 
  does_script_fire_exist 163@(213@,4i)
goto_if_false @CRASH1_25194
if 
  is_script_fire_extinguished 163@(213@,4i)
goto_if_false @CRASH1_25194
318@(213@,4i) = 0

:CRASH1_25194
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_25132
goto @CRASH1_25457

:CRASH1_25222
214@ = 3
if 
  318@ == 0
goto_if_false @CRASH1_25254
214@ = 1

:CRASH1_25254
163@ = start_script_fire 2344.884 {y} -1178.697 {z} 1031.1 {propagation} 0 {size} 214@
214@ = 3
if 
  319@ == 0
goto_if_false @CRASH1_25311
214@ = 1

:CRASH1_25311
164@ = start_script_fire 2340.365 {y} -1184.928 {z} 1031.1 {propagation} 0 {size} 214@
214@ = 3
if 
  320@ == 0
goto_if_false @CRASH1_25368
214@ = 1

:CRASH1_25368
165@ = start_script_fire 2332.4829 {y} -1180.889 {z} 1031.1 {propagation} 0 {size} 214@
214@ = 3
if 
  321@ == 0
goto_if_false @CRASH1_25425
214@ = 1

:CRASH1_25425
166@ = start_script_fire 2326.0811 {y} -1178.825 {z} 1027.2 {propagation} 0 {size} 214@
goto @CRASH1_25457

:CRASH1_25457
return 

:CRASH1_25459
switch_start 197@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CRASH1_26121 {caseNum1} 0 {caseLabel1} @CRASH1_25522 {caseNum2} 1 {caseLabel2} @CRASH1_25603 {caseNum3} 2 {caseLabel3} @CRASH1_25620 {caseNum4} 3 {caseLabel4} @CRASH1_25970 {caseNum5} 4 {caseLabel5} @CRASH1_26014 {caseNum6} 5 {caseLabel6} @CRASH1_26059 {caseNum7} 6 {caseLabel7} @CRASH1_26071

:CRASH1_25522
177@ = create_fx_system "TEARGASAD" {x} 2351.718 {y} -1170.9821 {z} 26.7609 {ignoreBoundingChecks} True
play_fx_system 177@
179@ = create_fx_system "TEARGAS" {x} 2351.813 {y} -1181.29 {z} 1029.783 {ignoreBoundingChecks} True
play_fx_system 179@
goto @CRASH1_26121

:CRASH1_25603
kill_fx_system 177@
kill_fx_system 179@
goto @CRASH1_26121

:CRASH1_25620
168@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {ignoreBoundingChecks} True
169@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} 1.8 {ignoreBoundingChecks} True
170@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
171@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 1.0 {yOffset} 5.0 {zOffset} 1.5 {ignoreBoundingChecks} True
172@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -1.0 {yOffset} 8.0 {zOffset} 1.8 {ignoreBoundingChecks} True
173@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
174@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
175@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
176@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
213@ = 0

:CRASH1_25933
play_fx_system 168@(213@,9i)
213@ += 1
  213@ >= 9
goto_if_false @CRASH1_25933
goto @CRASH1_26121

:CRASH1_25970
213@ = 0

:CRASH1_25977
kill_fx_system 168@(213@,9i)
213@ += 1
  213@ >= 9
goto_if_false @CRASH1_25977
goto @CRASH1_26121

:CRASH1_26014
178@ = create_fx_system "TEARGASAD" {x} 2345.0071 {y} -1171.812 {z} 33.996 {ignoreBoundingChecks} True
play_fx_system 178@
goto @CRASH1_26121

:CRASH1_26059
kill_fx_system 178@
goto @CRASH1_26121

:CRASH1_26071
kill_fx_system 177@
177@ = create_fx_system "TEARGASAD" {x} 2351.718 {y} -1175.129 {z} 26.7609 {ignoreBoundingChecks} True
play_fx_system 177@
goto @CRASH1_26121

:CRASH1_26121
return 

:CRASH1_26123
255@ = 2322.6389
256@ = -1176.537
257@ = 1027.757
135@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 30000 {x} 255@ {y} 256@ {z} 257@
317@ = 1
return 

:CRASH1_26184
115@ = create_object_no_offset #CR1_DOOR {x} 2342.708 {y} -1177.826 {z} 1031.002
116@ = create_object_no_offset #CR1_DOOR {x} 2338.4021 {y} -1177.832 {z} 1030.985
117@ = create_object_no_offset #CR1_DOOR {x} 2333.665 {y} -1173.932 {z} 1030.9771
118@ = create_object_no_offset #CR1_DOOR {x} 2335.968 {y} -1179.4351 {z} 1030.969
set_object_heading 118@ {heading} 89.3975
213@ = 0

:CRASH1_26289
set_object_area_visible 115@(213@,4i) {areaId} 5
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_26289
213@ = 0

:CRASH1_26328
set_object_collision_damage_effect 115@(213@,4i) {state} False
213@ += 1
  213@ >= 4
goto_if_false @CRASH1_26328
return 

:CRASH1_26362
282@ = 2352.325
283@ = -1179.79
284@ = 26.9766
285@ = 2.8064
94@ = create_char PedType.Gang8 {modelId} 110 {x} 282@ {y} 283@ {z} 284@
set_char_area_visible 94@ {areaId} 5
set_char_heading 94@ {heading} 285@
set_char_decision_maker 94@ {handleOrTemplate} 180@
358@ = 1
return 

:CRASH1_26452
282@ = 2345.907
283@ = -1171.6591
284@ = 30.9688
285@ = 359.0737
95@ = create_char PedType.CivFemale {modelId} 195 {x} 282@ {y} 283@ {z} 284@
set_char_area_visible 95@ {areaId} 5
set_char_heading 95@ {heading} 285@
set_char_health 95@ {health} 100
set_char_never_targetted 95@ {state} True
set_char_proofs 95@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_char_relationship 95@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
freeze_char_position 95@ {state} True
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_LOOP" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
211@ = 0
214@ = generate_random_int_in_range 500 {max} 2000
set_lvar_int_to_lvar_int 201@ = 45@
add_int_lvar_to_int_lvar 201@ += 214@
disable_char_speech 95@ {stopNow} False
359@ = 1
return 

:CRASH1_26665
set_object_proofs 114@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_object_collision_damage_effect 114@ {state} True
set_object_dynamic 114@ {state} True
set_object_velocity 114@ {xSpeed} 0.0 {ySpeed} 15.0 {zSpeed} 0.0
break_object 114@ {intensity} 1
167@ = create_fx_system "EXPLOSION_DOOR" {x} 2351.918 {y} -1171.014 {z} 28.1817 {ignoreBoundingChecks} True
play_and_kill_fx_system 167@
play_mission_audio MissionAudioSlot.Slot3
197@ = 0
gosub @CRASH1_25459
192@ = 1
gosub @CRASH1_24873
334@ = 1
if 
  is_char_dead 94@
goto_if_false @CRASH1_26821
return 

:CRASH1_26821
220@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2352.1809 {y} -1164.8929 {z} 26.4392 {speed} MoveState.Run {time} -2
task_die -1
close_sequence_task 220@
perform_sequence_task 94@ {sequence} 220@
clear_sequence_task 220@
set_char_proofs 94@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
remove_script_fire 138@
138@ = start_char_fire 94@
set_char_health 94@ {health} 55
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 4000
return 

:CRASH1_26924
set_fixed_camera_position 2343.5601 {y} -1168.507 {z} 32.4408 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2344.3911 {y} -1169.01 {z} 32.6753 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 200@ = 45@
200@ += 200
return 

:CRASH1_26993
switch_entry_exit 'GANG' {state} True
282@, 283@, 284@ = get_char_coordinates $scplayer
load_scene 282@ {y} 283@ {z} 284@
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
set_area_visible 0
return 

:CRASH1_27063
if or
  is_char_dead 95@
  211@ == 99
goto_if_false @CRASH1_27088
return 

:CRASH1_27088
if 
  is_int_lvar_greater_than_int_lvar 201@ > 45@
goto_if_false @CRASH1_27109
return 

:CRASH1_27109
if 
  211@ == 0
goto_if_false @CRASH1_27186
if 
  350@ == 1
goto_if_false @CRASH1_27170
set_lvar_int_to_lvar_int 201@ = 45@
201@ += 120000
goto @CRASH1_27179

:CRASH1_27170
211@ = generate_random_int_in_range 1 {max} 5

:CRASH1_27179
goto @CRASH1_27544

:CRASH1_27186
295@ = 1.0
switch_start 211@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CRASH1_27487 {caseNum1} 1 {caseLabel1} @CRASH1_27259 {caseNum2} 2 {caseLabel2} @CRASH1_27316 {caseNum3} 3 {caseLabel3} @CRASH1_27373 {caseNum4} 4 {caseLabel4} @CRASH1_27430 {caseNum5} -1 {caseLabel5} @CRASH1_27487 {caseNum6} -1 {caseLabel6} @CRASH1_27487 {caseNum7} -1 {caseLabel7} @CRASH1_27487

:CRASH1_27259
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_01"
goto_if_false @CRASH1_27309
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_01"

:CRASH1_27309
goto @CRASH1_27487

:CRASH1_27316
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_02"
goto_if_false @CRASH1_27366
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_02"

:CRASH1_27366
goto @CRASH1_27487

:CRASH1_27373
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_03"
goto_if_false @CRASH1_27423
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_03"

:CRASH1_27423
goto @CRASH1_27487

:CRASH1_27430
if 
  is_char_playing_anim 95@ {animationName} "BD_PANIC_04"
goto_if_false @CRASH1_27480
295@ = get_char_anim_current_time 95@ {animationName} "BD_PANIC_04"

:CRASH1_27480
goto @CRASH1_27487

:CRASH1_27487
if 
  295@ <> 1.0
goto_if_false @CRASH1_27510
return 

:CRASH1_27510
211@ = 0
214@ = generate_random_int_in_range 500 {max} 2000
set_lvar_int_to_lvar_int 201@ = 45@
add_int_lvar_to_int_lvar 201@ += 214@

:CRASH1_27544
switch_start 211@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_27885 {caseNum1} 0 {caseLabel1} @CRASH1_27607 {caseNum2} 1 {caseLabel2} @CRASH1_27689 {caseNum3} 2 {caseLabel3} @CRASH1_27738 {caseNum4} 3 {caseLabel4} @CRASH1_27787 {caseNum5} 4 {caseLabel5} @CRASH1_27836 {caseNum6} -1 {caseLabel6} @CRASH1_27885 {caseNum7} -1 {caseLabel7} @CRASH1_27885

:CRASH1_27607
if 
  not is_char_playing_anim 95@ {animationName} "BD_PANIC_LOOP"
goto_if_false @CRASH1_27682
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_LOOP" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CRASH1_27682
goto @CRASH1_27885

:CRASH1_27689
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_01" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27738
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_02" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27787
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_03" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27836
task_play_anim_non_interruptable 95@ {animationName} "BD_PANIC_04" {animationFile} "BD_FIRE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CRASH1_27885

:CRASH1_27885
if 
  341@ == 0
goto_if_false @CRASH1_27905
return 

:CRASH1_27905
if and
  49@ <> 1
  49@ <> 2
  49@ <> 0
goto_if_false @CRASH1_27939
return 

:CRASH1_27939
if 
  211@ == 0
goto_if_false @CRASH1_28132
if or
  is_local_var_bit_set_const 54@ {bitIndex} 1
  is_local_var_bit_set_const 54@ {bitIndex} 2
goto_if_false @CRASH1_27996
clear_local_var_bit_const 54@ {bitIndex} 1
clear_local_var_bit_const 54@ {bitIndex} 2

:CRASH1_27996
if 
  49@ == 0
goto_if_false @CRASH1_28130
214@ = generate_random_int_in_range 0 {max} 3
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_28128 {caseNum1} 0 {caseLabel1} @CRASH1_28086 {caseNum2} 1 {caseLabel2} @CRASH1_28107 {caseNum3} -1 {caseLabel3} @CRASH1_28130 {caseNum4} -1 {caseLabel4} @CRASH1_28130 {caseNum5} -1 {caseLabel5} @CRASH1_28130 {caseNum6} -1 {caseLabel6} @CRASH1_28130 {caseNum7} -1 {caseLabel7} @CRASH1_28130

:CRASH1_28086
50@ = 1
gosub @CRASH1_32981
goto @CRASH1_28130

:CRASH1_28107
50@ = 2
gosub @CRASH1_32981
goto @CRASH1_28130

:CRASH1_28128
return 

:CRASH1_28130
return 

:CRASH1_28132
if and
  211@ >= 1
  4 >= 211@
goto_if_false @CRASH1_28244
if and
  48@ == 1
  is_char_in_area_3d $scplayer {leftBottomX} 2327.2419 {leftBottomY} -1175.052 {leftBottomZ} 24.6005 {rightTopX} 2361.9519 {rightTopY} -1149.0909 {rightTopZ} 28.2697 {drawSphere} False
goto_if_false @CRASH1_28244
if 
  49@ == 2
goto_if_false @CRASH1_28237
56@ = 0

:CRASH1_28237
gosub @CRASH1_33143

:CRASH1_28244
return 

:CRASH1_28246
print_now 'CRA1_07' {time} 5000 {flag} 1
$g_Crash1_counterKM1 = 100
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 3000
display_onscreen_counter_with_string $g_Crash1_counterKM1 {display} CounterDisplay.Bar {text} 'CRA1_70'
337@ = 1
set_char_health 95@ {health} 100
return 

:CRASH1_28317
if 
  is_char_dead 95@
goto_if_false @CRASH1_28335
return 

:CRASH1_28335
214@ = get_char_health 95@
if 
  is_int_lvar_greater_than_int_lvar 45@ > 202@
goto_if_false @CRASH1_28465
214@ -= 1
282@, 283@, 284@ = get_char_coordinates 95@
215@ = get_number_of_fires_in_range 282@ {y} 283@ {z} 284@ {radius} 1.2
if and
  215@ > 0
  314@ == 1
goto_if_false @CRASH1_28449
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 100
goto @CRASH1_28465

:CRASH1_28449
set_lvar_int_to_lvar_int 202@ = 45@
202@ += 3000

:CRASH1_28465
if 
  0 > 214@
goto_if_false @CRASH1_28490
214@ = 0

:CRASH1_28490
if 
  214@ == 0
goto_if_false @CRASH1_28605
clear_char_tasks_immediately 95@
remove_script_fire 139@
139@ = start_char_fire 95@
set_char_health 95@ {health} 20
task_die 95@
freeze_char_position 95@ {state} False
211@ = 99
clear_onscreen_counter $g_Crash1_counterKM1
print_now 'CRA1_50' {time} 5000 {flag} 1
340@ = 1
285@ = 180.0
set_char_heading 95@ {heading} 285@
goto @CRASH1_28613

:CRASH1_28605
set_char_health 95@ {health} 214@

:CRASH1_28613
set_var_int_to_lvar_int $g_Crash1_counterKM1 = 214@
return 

:CRASH1_28623
282@ = 2342.7419
283@ = -1184.731
284@ = 1026.9771
285@ = 274.3023
96@ = create_char PedType.Gang8 {modelId} 110 {x} 282@ {y} 283@ {z} 284@
set_char_has_used_entry_exit 96@ {x} 2352.114 {y} -1170.61 {radius} 2.0
set_char_area_visible 96@ {areaId} 5
set_char_heading 96@ {heading} 285@
set_char_decision_maker 96@ {handleOrTemplate} 180@
set_char_health 96@ {health} 20
set_char_max_health 96@ {maxHealth} 100
set_char_relationship 96@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 96@ {accuracy} 5
140@ = start_char_fire 96@
task_dead 96@
188@ = 0
282@ = 2322.563
283@ = -1185.218
284@ = 1026.9771
285@ = 292.9689
97@ = create_char PedType.Gang8 {modelId} 108 {x} 282@ {y} 283@ {z} 284@
set_char_has_used_entry_exit 97@ {x} 2352.114 {y} -1170.61 {radius} 2.0
set_char_area_visible 97@ {areaId} 5
set_char_heading 97@ {heading} 285@
set_char_decision_maker 97@ {handleOrTemplate} 180@
set_char_health 97@ {health} 20
set_char_max_health 97@ {maxHealth} 100
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 97@ {accuracy} 5
141@ = start_char_fire 97@
task_dead 97@
189@ = 0
360@ = 1
return 

:CRASH1_28934
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_char_coordinates $scplayer {x} 2344.5349 {y} -1181.745 {z} 1030.9611
set_char_heading $scplayer {heading} 359.8736
set_fixed_camera_position 2344.624 {y} -1185.354 {z} 1033.783 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2344.6951 {y} -1184.373 {z} 1033.6021 {switchStyle} SwitchType.JumpCut
192@ = 4
gosub @CRASH1_24873
191@ = 1
gosub @CRASH1_24064
return 

:CRASH1_29056
213@ = 0

:CRASH1_29063
remove_char_elegantly 87@(213@,5i)
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_29063
213@ = 0

:CRASH1_29100
remove_char_elegantly 92@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_29100
return 

:CRASH1_29132
switch_start 190@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_29657 {caseNum1} -1 {caseLabel1} @CRASH1_29195 {caseNum2} 0 {caseLabel2} @CRASH1_29250 {caseNum3} 1 {caseLabel3} @CRASH1_29382 {caseNum4} 2 {caseLabel4} @CRASH1_29466 {caseNum5} 3 {caseLabel5} @CRASH1_29492 {caseNum6} -1 {caseLabel6} @CRASH1_29657 {caseNum7} -1 {caseLabel7} @CRASH1_29657

:CRASH1_29195
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 95@
set_char_never_leaves_group 95@ {state} True
listen_to_player_group_commands 95@ {state} False
task_follow_footsteps 95@ {target} $scplayer
set_player_group_to_follow_always $player1 {state} True
190@ = 0
goto @CRASH1_29657

:CRASH1_29250
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29375
gosub @CRASH1_29659
if 
  328@ == 1
goto_if_false @CRASH1_29333
342@ = 1
clear_char_tasks_immediately 95@
task_stand_still 95@ {time} -2
190@ = 1
goto @CRASH1_29375

:CRASH1_29333
40@ = get_script_task_status 95@ {taskId} 2128
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @CRASH1_29375
clear_char_tasks_immediately 95@
task_follow_footsteps 95@ {target} $scplayer

:CRASH1_29375
goto @CRASH1_29657

:CRASH1_29382
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29459
gosub @CRASH1_29659
if 
  328@ == 0
goto_if_false @CRASH1_29459
clear_char_tasks_immediately 95@
task_follow_footsteps 95@ {target} $scplayer
342@ = 0
190@ = 0

:CRASH1_29459
goto @CRASH1_29657

:CRASH1_29466
clear_char_tasks_immediately 95@
task_stand_still 95@ {time} -2
190@ = 3
goto @CRASH1_29657

:CRASH1_29492
if 
  locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @CRASH1_29650
328@ = 0
if 
  314@ == 1
goto_if_false @CRASH1_29650
gosub @CRASH1_29659
if 
  328@ == 0
goto_if_false @CRASH1_29600
task_follow_footsteps 95@ {target} $scplayer
190@ = 0
goto @CRASH1_29650

:CRASH1_29600
220@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_stand_still -1 {time} -2
close_sequence_task 220@
perform_sequence_task 95@ {sequence} 220@
clear_sequence_task 220@
342@ = 1
190@ = 1

:CRASH1_29650
goto @CRASH1_29657

:CRASH1_29657
return 

:CRASH1_29659
switch_start 196@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31025 {caseNum1} 0 {caseLabel1} @CRASH1_29722 {caseNum2} 1 {caseLabel2} @CRASH1_29952 {caseNum3} 2 {caseLabel3} @CRASH1_30182 {caseNum4} 3 {caseLabel4} @CRASH1_30412 {caseNum5} 4 {caseLabel5} @CRASH1_30642 {caseNum6} -1 {caseLabel6} @CRASH1_31025 {caseNum7} -1 {caseLabel7} @CRASH1_31025

:CRASH1_29722
289@ = 2345.5
289@ -= 2.0
291@ = -1177.1219
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2345.5
290@ += 2.0
292@ = -1177.1219
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_29945
if 
  does_script_fire_exist 163@
goto_if_false @CRASH1_29938
if 
  is_script_fire_extinguished 163@
goto_if_false @CRASH1_29924
196@ += 1
goto @CRASH1_29931

:CRASH1_29924
328@ = 1

:CRASH1_29931
goto @CRASH1_29945

:CRASH1_29938
196@ += 1

:CRASH1_29945
goto @CRASH1_31025

:CRASH1_29952
289@ = 2342.7949
289@ -= 2.0
291@ = -1184.9709
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2342.7949
290@ += 2.0
292@ = -1184.9709
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_30175
if 
  does_script_fire_exist 164@
goto_if_false @CRASH1_30168
if 
  is_script_fire_extinguished 164@
goto_if_false @CRASH1_30154
196@ += 1
goto @CRASH1_30161

:CRASH1_30154
328@ = 1

:CRASH1_30161
goto @CRASH1_30175

:CRASH1_30168
196@ += 1

:CRASH1_30175
goto @CRASH1_31025

:CRASH1_30182
289@ = 2334.4451
289@ -= 2.0
291@ = -1181.463
291@ -= 2.0
293@ = 1030.969
293@ -= 0.5
290@ = 2334.4451
290@ += 2.0
292@ = -1181.463
292@ += 2.0
294@ = 1030.969
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_30405
if 
  does_script_fire_exist 165@
goto_if_false @CRASH1_30398
if 
  is_script_fire_extinguished 165@
goto_if_false @CRASH1_30384
196@ += 1
goto @CRASH1_30391

:CRASH1_30384
328@ = 1

:CRASH1_30391
goto @CRASH1_30405

:CRASH1_30398
196@ += 1

:CRASH1_30405
goto @CRASH1_31025

:CRASH1_30412
289@ = 2325.854
289@ -= 2.5
291@ = -1182.636
291@ -= 2.5
293@ = 1026.984
293@ -= 0.5
290@ = 2325.854
290@ += 2.5
292@ = -1182.636
292@ += 2.5
294@ = 1026.984
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_30635
if 
  does_script_fire_exist 166@
goto_if_false @CRASH1_30628
if 
  is_script_fire_extinguished 166@
goto_if_false @CRASH1_30614
196@ += 1
goto @CRASH1_30621

:CRASH1_30614
328@ = 1

:CRASH1_30621
goto @CRASH1_30635

:CRASH1_30628
196@ += 1

:CRASH1_30635
goto @CRASH1_31025

:CRASH1_30642
289@ = 2342.9609
289@ -= 2.0
291@ = -1176.906
291@ -= 2.0
293@ = 1026.9771
293@ -= 0.5
290@ = 2342.9609
290@ += 2.0
292@ = -1176.906
292@ += 2.0
294@ = 1026.9771
294@ += 1.5
if 
  is_char_in_area_3d 95@ {leftBottomX} 289@ {leftBottomY} 291@ {leftBottomZ} 293@ {rightTopX} 290@ {rightTopY} 292@ {rightTopZ} 294@ {drawSphere} False
goto_if_false @CRASH1_31018
289@ = 2344.99
291@ = -1178.3979
293@ = 1026.9771
213@ = 0

:CRASH1_30835
if 
  does_script_fire_exist 142@(213@,21i)
goto_if_false @CRASH1_30946
if 
  not is_script_fire_extinguished 142@(213@,21i)
goto_if_false @CRASH1_30946
290@, 292@, 294@ = get_script_fire_coords 142@(213@,21i)
295@ = get_distance_between_coords_3d 289@ {fromY} 291@ {fromZ} 293@ {toX} 290@ {toY} 292@ {toZ} 294@
if 
  3.0 >= 295@
goto_if_false @CRASH1_30946
328@ = 1
return 

:CRASH1_30946
213@ += 1
  213@ >= 21
goto_if_false @CRASH1_30835
214@ = get_number_of_fires_in_range 289@ {y} 291@ {z} 293@ {radius} 3.0
if 
  214@ <> 0
goto_if_false @CRASH1_31011
328@ = 1

:CRASH1_31011
196@ += 1

:CRASH1_31018
goto @CRASH1_31025

:CRASH1_31025
return 

:CRASH1_31027
214@ = 0
switch_start 193@(214@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31468 {caseNum1} 0 {caseLabel1} @CRASH1_31101 {caseNum2} 1 {caseLabel2} @CRASH1_31108 {caseNum3} 2 {caseLabel3} @CRASH1_31213 {caseNum4} 3 {caseLabel4} @CRASH1_31317 {caseNum5} 4 {caseLabel5} @CRASH1_31378 {caseNum6} 5 {caseLabel6} @CRASH1_31461 {caseNum7} -1 {caseLabel7} @CRASH1_31468

:CRASH1_31101
goto @CRASH1_31468

:CRASH1_31108
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BREAK_WALL_1A
282@ = 2338.0
283@ = -1180.0
284@ = 1030.5
285@ = 90.0
create_object_no_offset #BD_FIRE1_O {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
set_object_heading 119@(214@,3i) {heading} 285@
193@(214@,3i) = 2
goto @CRASH1_31468

:CRASH1_31213
if 
  does_object_exist 119@(214@,3i)
goto_if_false @CRASH1_31310
if 
play_object_anim 119@(214@,3i) {animationName} "BD_FIRE1" {animationFile} "BD_FIRE" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @CRASH1_31299
193@(214@,3i) = 3
goto @CRASH1_31310

:CRASH1_31299
193@(214@,3i) = 4

:CRASH1_31310
goto @CRASH1_31468

:CRASH1_31317
295@ = get_object_anim_current_time 119@(214@,3i) {animationName} "BD_FIRE1"
if 
  295@ == 1.0
goto_if_false @CRASH1_31371
193@(214@,3i) = 4

:CRASH1_31371
goto @CRASH1_31468

:CRASH1_31378
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BD_FIRE1_O
282@ = 2338.126
283@ = -1181.917
284@ = 1033.188
create_object_no_offset #BREAK_WALL_1B {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 5
goto @CRASH1_31468

:CRASH1_31461
goto @CRASH1_31468

:CRASH1_31468
return 

:CRASH1_31470
214@ = 1
switch_start 193@(214@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31655 {caseNum1} 0 {caseLabel1} @CRASH1_31544 {caseNum2} 1 {caseLabel2} @CRASH1_31551 {caseNum3} 2 {caseLabel3} @CRASH1_31558 {caseNum4} 3 {caseLabel4} @CRASH1_31565 {caseNum5} 4 {caseLabel5} @CRASH1_31648 {caseNum6} -1 {caseLabel6} @CRASH1_31655 {caseNum7} -1 {caseLabel7} @CRASH1_31655

:CRASH1_31544
goto @CRASH1_31655

:CRASH1_31551
goto @CRASH1_31655

:CRASH1_31558
goto @CRASH1_31655

:CRASH1_31565
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BREAK_WALL_2A
282@ = 2330.4021
283@ = -1179.15
284@ = 1030.55
create_object_no_offset #BREAK_WALL_2B {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 4
goto @CRASH1_31655

:CRASH1_31648
goto @CRASH1_31655

:CRASH1_31655
return 

:CRASH1_31657
214@ = 2
switch_start 193@(214@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_31842 {caseNum1} 0 {caseLabel1} @CRASH1_31731 {caseNum2} 1 {caseLabel2} @CRASH1_31738 {caseNum3} 2 {caseLabel3} @CRASH1_31745 {caseNum4} 3 {caseLabel4} @CRASH1_31752 {caseNum5} 4 {caseLabel5} @CRASH1_31835 {caseNum6} -1 {caseLabel6} @CRASH1_31842 {caseNum7} -1 {caseLabel7} @CRASH1_31842

:CRASH1_31731
goto @CRASH1_31842

:CRASH1_31738
goto @CRASH1_31842

:CRASH1_31745
goto @CRASH1_31842

:CRASH1_31752
delete_object 119@(214@,3i)
mark_model_as_no_longer_needed #BREAK_WALL_3A
282@ = 2340.293
283@ = -1182.2939
284@ = 1026.957
create_object_no_offset #BREAK_WALL_3B {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 4
goto @CRASH1_31842

:CRASH1_31835
goto @CRASH1_31842

:CRASH1_31842
return 

:CRASH1_31844
create_emergency_services_car 407 {x} 2340.637 {y} -1152.722 {z} 25.9686
return 

:CRASH1_31866
213@ = 0

:CRASH1_31873
if 
  343@(213@,2i) == 0
goto_if_false @CRASH1_31910
set_lvar_int_to_lvar_int 212@ = 213@
gosub @CRASH1_31933

:CRASH1_31910
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_31873
return 

:CRASH1_31933
if 
  343@(212@,2i) == 1
goto_if_false @CRASH1_31957
return 

:CRASH1_31957
switch_start 212@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32114 {caseNum1} 0 {caseLabel1} @CRASH1_32020 {caseNum2} 1 {caseLabel2} @CRASH1_32067 {caseNum3} -1 {caseLabel3} @CRASH1_32143 {caseNum4} -1 {caseLabel4} @CRASH1_32143 {caseNum5} -1 {caseLabel5} @CRASH1_32143 {caseNum6} -1 {caseLabel6} @CRASH1_32143 {caseNum7} -1 {caseLabel7} @CRASH1_32143

:CRASH1_32020
create_money_pickup 2338.551 {y} -1186.939 {z} 1027.9771 {cashAmount} 500 {permanent} True {var_handle} 136@(212@,2i)
343@(212@,2i) = 1
goto @CRASH1_32143

:CRASH1_32067
create_money_pickup 2348.1841 {y} -1173.1639 {z} 1031.9771 {cashAmount} 500 {permanent} True {var_handle} 136@(212@,2i)
343@(212@,2i) = 1
goto @CRASH1_32143

:CRASH1_32114
write_debug_with_int "ILLEGAL_CASH_PICKUP_ID" {number} 212@

:CRASH1_32143
return 

:CRASH1_32145
switch_start 48@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32229 {caseNum1} 0 {caseLabel1} @CRASH1_32208 {caseNum2} 1 {caseLabel2} @CRASH1_32208 {caseNum3} 2 {caseLabel3} @CRASH1_32215 {caseNum4} 3 {caseLabel4} @CRASH1_32208 {caseNum5} 4 {caseLabel5} @CRASH1_32208 {caseNum6} -1 {caseLabel6} @CRASH1_32265 {caseNum7} -1 {caseLabel7} @CRASH1_32265

:CRASH1_32208
goto @CRASH1_32265

:CRASH1_32215
gosub @CRASH1_32405
goto @CRASH1_32265

:CRASH1_32229
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:CRASH1_32265
return 

:CRASH1_32267
if 
  is_int_lvar_equal_to_int_lvar 53@ == 52@
goto_if_false @CRASH1_32288
return 

:CRASH1_32288
214@ = 1
57@(214@,3i) = 1
load_mission_audio 214@ {audioId} 60@(53@,9i)
53@ += 1
if 
  is_int_lvar_equal_to_int_lvar 53@ == 52@
goto_if_false @CRASH1_32346
return 

:CRASH1_32346
214@ += 1
if 
  214@ > 2
goto_if_false @CRASH1_32373
return 

:CRASH1_32373
57@(214@,3i) = 1
load_mission_audio 214@ {audioId} 60@(53@,9i)
53@ += 1
return 

:CRASH1_32405
gosub @CRASH1_33674
if 
  48@ == 3
goto_if_false @CRASH1_32439
gosub @CRASH1_32673
return 

:CRASH1_32439
switch_start 57@(47@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CRASH1_32640 {caseNum1} 0 {caseLabel1} @CRASH1_32506 {caseNum2} 1 {caseLabel2} @CRASH1_32515 {caseNum3} 2 {caseLabel3} @CRASH1_32551 {caseNum4} 3 {caseLabel4} @CRASH1_32608 {caseNum5} -1 {caseLabel5} @CRASH1_32671 {caseNum6} -1 {caseLabel6} @CRASH1_32671 {caseNum7} -1 {caseLabel7} @CRASH1_32671

:CRASH1_32506
return 
goto @CRASH1_32671

:CRASH1_32515
if 
  not has_mission_audio_loaded 47@
goto_if_false @CRASH1_32533
return 

:CRASH1_32533
57@(47@,3i) = 2
goto @CRASH1_32671

:CRASH1_32551
play_mission_audio 47@
if 
  56@ == 1
goto_if_false @CRASH1_32588
print_now 69@(51@,9s) {time} 10000 {flag} 1

:CRASH1_32588
57@(47@,3i) = 3
return 
goto @CRASH1_32671

:CRASH1_32608
if 
  not has_mission_audio_finished 47@
goto_if_false @CRASH1_32626
return 

:CRASH1_32626
gosub @CRASH1_32726
goto @CRASH1_32671

:CRASH1_32640
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:CRASH1_32671
return 

:CRASH1_32673
214@ = 1

:CRASH1_32680
if 
  2 >= 214@
goto_if_false @CRASH1_32717
clear_mission_audio 214@
214@ += 1
goto @CRASH1_32680

:CRASH1_32717
gosub @CRASH1_32855
return 

:CRASH1_32726
57@(47@,3i) = 0
51@ += 1
if 
  is_int_lvar_equal_to_int_lvar 51@ == 52@
goto_if_false @CRASH1_32772
gosub @CRASH1_32855
return 

:CRASH1_32772
if 
  is_int_lvar_greater_than_int_lvar 52@ > 53@
goto_if_false @CRASH1_32821
57@(47@,3i) = 1
load_mission_audio 47@ {audioId} 60@(53@,9i)
53@ += 1

:CRASH1_32821
47@ += 1
if 
  47@ > 2
goto_if_false @CRASH1_32853
47@ = 1

:CRASH1_32853
return 

:CRASH1_32855
set_local_var_bit_lvar 54@ {var_bitIndex} 49@
49@ = 0
48@ = 0
50@ = 0
47@ = 1
51@ = 0
52@ = 0
53@ = 0
214@ = 1

:CRASH1_32919
if 
  2 > 214@
goto_if_false @CRASH1_32962
57@(214@,3i) = 0
214@ += 1
goto @CRASH1_32919

:CRASH1_32962
clear_small_prints 
set_lvar_int_to_lvar_int 55@ = 45@
55@ += 120
return 

:CRASH1_32981
if 
  48@ <> 0
goto_if_false @CRASH1_33006
gosub @CRASH1_33172

:CRASH1_33006
if 
  is_int_lvar_greater_than_int_lvar 55@ > 45@
goto_if_false @CRASH1_33027
return 

:CRASH1_33027
55@ = 0
set_lvar_int_to_lvar_int 49@ = 50@
50@ = 0
47@ = 1
51@ = 0
52@ = 0
53@ = 0
56@ = 1
214@ = 1

:CRASH1_33091
if 
  2 > 214@
goto_if_false @CRASH1_33134
57@(214@,3i) = 0
214@ += 1
goto @CRASH1_33091

:CRASH1_33134
gosub @CRASH1_33201
return 

:CRASH1_33143
if 
  48@ <> 1
goto_if_false @CRASH1_33163
return 

:CRASH1_33163
48@ = 2
return 

:CRASH1_33172
if 
  48@ == 0
goto_if_false @CRASH1_33192
return 

:CRASH1_33192
gosub @CRASH1_32673
return 

:CRASH1_33201
switch_start 49@ {numCases} 17 {hasDefaultCase} 1 {defaultLabel} @CRASH1_33632 {caseNum1} 1 {caseLabel1} @CRASH1_33394 {caseNum2} 2 {caseLabel2} @CRASH1_33408 {caseNum3} 3 {caseLabel3} @CRASH1_33422 {caseNum4} 5 {caseLabel4} @CRASH1_33436 {caseNum5} 6 {caseLabel5} @CRASH1_33450 {caseNum6} 7 {caseLabel6} @CRASH1_33464 {caseNum7} 8 {caseLabel7} @CRASH1_33478
switch_continued 9 {caseLabel1} @CRASH1_33492 {caseNum2} 10 {caseLabel2} @CRASH1_33506 {caseNum3} 11 {caseLabel3} @CRASH1_33520 {caseNum4} 12 {caseLabel4} @CRASH1_33534 {caseNum5} 13 {caseLabel5} @CRASH1_33548 {caseNum6} 14 {caseLabel6} @CRASH1_33562 {caseNum7} 15 {caseLabel7} @CRASH1_33576 {caseNum8} 16 {caseLabel8} @CRASH1_33590 {caseNum9} 17 {caseLabel9} @CRASH1_33604
switch_continued 18 {caseLabel1} @CRASH1_33618 {caseNum2} -1 {caseLabel2} @CRASH1_33658 {caseNum3} -1 {caseLabel3} @CRASH1_33658 {caseNum4} -1 {caseLabel4} @CRASH1_33658 {caseNum5} -1 {caseLabel5} @CRASH1_33658 {caseNum6} -1 {caseLabel6} @CRASH1_33658 {caseNum7} -1 {caseLabel7} @CRASH1_33658 {caseNum8} -1 {caseLabel8} @CRASH1_33658 {caseNum9} -1 {caseLabel9} @CRASH1_33658

:CRASH1_33394
gosub @CRASH1_34116
goto @CRASH1_33658

:CRASH1_33408
gosub @CRASH1_34523
goto @CRASH1_33658

:CRASH1_33422
gosub @CRASH1_34749
goto @CRASH1_33658

:CRASH1_33436
gosub @CRASH1_34888
goto @CRASH1_33658

:CRASH1_33450
gosub @CRASH1_35028
goto @CRASH1_33658

:CRASH1_33464
gosub @CRASH1_35059
goto @CRASH1_33658

:CRASH1_33478
gosub @CRASH1_35090
goto @CRASH1_33658

:CRASH1_33492
gosub @CRASH1_35230
goto @CRASH1_33658

:CRASH1_33506
gosub @CRASH1_35261
goto @CRASH1_33658

:CRASH1_33520
gosub @CRASH1_35401
goto @CRASH1_33658

:CRASH1_33534
gosub @CRASH1_35866
goto @CRASH1_33658

:CRASH1_33548
gosub @CRASH1_35897
goto @CRASH1_33658

:CRASH1_33562
gosub @CRASH1_36074
goto @CRASH1_33658

:CRASH1_33576
gosub @CRASH1_36473
goto @CRASH1_33658

:CRASH1_33590
gosub @CRASH1_36504
goto @CRASH1_33658

:CRASH1_33604
gosub @CRASH1_36644
goto @CRASH1_33658

:CRASH1_33618
gosub @CRASH1_36675
goto @CRASH1_33658

:CRASH1_33632
write_debug "UNKNOWN_CONVERSATION"
return 

:CRASH1_33658
gosub @CRASH1_32267
48@ = 1
return 

:CRASH1_33674
switch_start 49@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CRASH1_33834 {caseNum1} 3 {caseLabel1} @CRASH1_33802 {caseNum2} 5 {caseLabel2} @CRASH1_33802 {caseNum3} 6 {caseLabel3} @CRASH1_33802 {caseNum4} 7 {caseLabel4} @CRASH1_33802 {caseNum5} 8 {caseLabel5} @CRASH1_33802 {caseNum6} 9 {caseLabel6} @CRASH1_33802 {caseNum7} 10 {caseLabel7} @CRASH1_33802
switch_continued 11 {caseLabel1} @CRASH1_33802 {caseNum2} 12 {caseLabel2} @CRASH1_33802 {caseNum3} 13 {caseLabel3} @CRASH1_33802 {caseNum4} 14 {caseLabel4} @CRASH1_33802 {caseNum5} 15 {caseLabel5} @CRASH1_33802 {caseNum6} 16 {caseLabel6} @CRASH1_33802 {caseNum7} 17 {caseLabel7} @CRASH1_33802 {caseNum8} 18 {caseLabel8} @CRASH1_33802 {caseNum9} -1 {caseLabel9} @CRASH1_33834

:CRASH1_33802
if 
  is_char_dead $scplayer
goto_if_false @CRASH1_33827
48@ = 3
return 

:CRASH1_33827
goto @CRASH1_33834

:CRASH1_33834
switch_start 49@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CRASH1_33994 {caseNum1} 1 {caseLabel1} @CRASH1_33962 {caseNum2} 2 {caseLabel2} @CRASH1_33962 {caseNum3} 5 {caseLabel3} @CRASH1_33962 {caseNum4} 6 {caseLabel4} @CRASH1_33962 {caseNum5} 7 {caseLabel5} @CRASH1_33962 {caseNum6} 8 {caseLabel6} @CRASH1_33962 {caseNum7} 9 {caseLabel7} @CRASH1_33962
switch_continued 10 {caseLabel1} @CRASH1_33962 {caseNum2} 11 {caseLabel2} @CRASH1_33962 {caseNum3} 12 {caseLabel3} @CRASH1_33962 {caseNum4} 13 {caseLabel4} @CRASH1_33962 {caseNum5} 14 {caseLabel5} @CRASH1_33962 {caseNum6} 15 {caseLabel6} @CRASH1_33962 {caseNum7} 16 {caseLabel7} @CRASH1_33962 {caseNum8} 17 {caseLabel8} @CRASH1_33962 {caseNum9} 18 {caseLabel9} @CRASH1_33962

:CRASH1_33962
if 
  is_char_dead 95@
goto_if_false @CRASH1_33987
48@ = 3
return 

:CRASH1_33987
goto @CRASH1_33994

:CRASH1_33994
switch_start 49@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34114 {caseNum1} 14 {caseLabel1} @CRASH1_34057 {caseNum2} -1 {caseLabel2} @CRASH1_34114 {caseNum3} -1 {caseLabel3} @CRASH1_34114 {caseNum4} -1 {caseLabel4} @CRASH1_34114 {caseNum5} -1 {caseLabel5} @CRASH1_34114 {caseNum6} -1 {caseLabel6} @CRASH1_34114 {caseNum7} -1 {caseLabel7} @CRASH1_34114

:CRASH1_34057
if 
  not is_char_in_any_car $scplayer
goto_if_false @CRASH1_34082
48@ = 3
return 

:CRASH1_34082
if 
  not is_char_in_any_car 95@
goto_if_false @CRASH1_34107
48@ = 3
return 

:CRASH1_34107
goto @CRASH1_34114

:CRASH1_34114
return 

:CRASH1_34116
214@ = generate_random_int_in_range 0 {max} 9
switch_start 214@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34514 {caseNum1} 0 {caseLabel1} @CRASH1_34253 {caseNum2} 1 {caseLabel2} @CRASH1_34282 {caseNum3} 2 {caseLabel3} @CRASH1_34311 {caseNum4} 3 {caseLabel4} @CRASH1_34340 {caseNum5} 4 {caseLabel5} @CRASH1_34369 {caseNum6} 5 {caseLabel6} @CRASH1_34398 {caseNum7} 6 {caseLabel7} @CRASH1_34427
switch_continued 7 {caseLabel1} @CRASH1_34456 {caseNum2} 8 {caseLabel2} @CRASH1_34485 {caseNum3} -1 {caseLabel3} @CRASH1_34514 {caseNum4} -1 {caseLabel4} @CRASH1_34514 {caseNum5} -1 {caseLabel5} @CRASH1_34514 {caseNum6} -1 {caseLabel6} @CRASH1_34514 {caseNum7} -1 {caseLabel7} @CRASH1_34514 {caseNum8} -1 {caseLabel8} @CRASH1_34514 {caseNum9} -1 {caseLabel9} @CRASH1_34514

:CRASH1_34253
set_lvar_int_to_constant 60@ = 10600
set_lvar_text_label 69@s = 'CRA1_AA'
goto @CRASH1_34514

:CRASH1_34282
set_lvar_int_to_constant 60@ = 10601
set_lvar_text_label 69@s = 'CRA1_AB'
goto @CRASH1_34514

:CRASH1_34311
set_lvar_int_to_constant 60@ = 10602
set_lvar_text_label 69@s = 'CRA1_AC'
goto @CRASH1_34514

:CRASH1_34340
set_lvar_int_to_constant 60@ = 10603
set_lvar_text_label 69@s = 'CRA1_AD'
goto @CRASH1_34514

:CRASH1_34369
set_lvar_int_to_constant 60@ = 10604
set_lvar_text_label 69@s = 'CRA1_AE'
goto @CRASH1_34514

:CRASH1_34398
set_lvar_int_to_constant 60@ = 10605
set_lvar_text_label 69@s = 'CRA1_AF'
goto @CRASH1_34514

:CRASH1_34427
set_lvar_int_to_constant 60@ = 10606
set_lvar_text_label 69@s = 'CRA1_AG'
goto @CRASH1_34514

:CRASH1_34456
set_lvar_int_to_constant 60@ = 10607
set_lvar_text_label 69@s = 'CRA1_AH'
goto @CRASH1_34514

:CRASH1_34485
set_lvar_int_to_constant 60@ = 10609
set_lvar_text_label 69@s = 'CRA1_AJ'
goto @CRASH1_34514

:CRASH1_34514
52@ = 1
return 

:CRASH1_34523
214@ = generate_random_int_in_range 0 {max} 5
switch_start 214@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34740 {caseNum1} 0 {caseLabel1} @CRASH1_34595 {caseNum2} 1 {caseLabel2} @CRASH1_34624 {caseNum3} 2 {caseLabel3} @CRASH1_34653 {caseNum4} 3 {caseLabel4} @CRASH1_34682 {caseNum5} 4 {caseLabel5} @CRASH1_34711 {caseNum6} -1 {caseLabel6} @CRASH1_34740 {caseNum7} -1 {caseLabel7} @CRASH1_34740

:CRASH1_34595
set_lvar_int_to_constant 60@ = 10610
set_lvar_text_label 69@s = 'CRA1_BA'
goto @CRASH1_34740

:CRASH1_34624
set_lvar_int_to_constant 60@ = 10611
set_lvar_text_label 69@s = 'CRA1_BB'
goto @CRASH1_34740

:CRASH1_34653
set_lvar_int_to_constant 60@ = 10612
set_lvar_text_label 69@s = 'CRA1_BC'
goto @CRASH1_34740

:CRASH1_34682
set_lvar_int_to_constant 60@ = 10613
set_lvar_text_label 69@s = 'CRA1_BD'
goto @CRASH1_34740

:CRASH1_34711
set_lvar_int_to_constant 60@ = 10614
set_lvar_text_label 69@s = 'CRA1_BE'
goto @CRASH1_34740

:CRASH1_34740
52@ = 1
return 

:CRASH1_34749
214@ = generate_random_int_in_range 0 {max} 2
switch_start 214@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CRASH1_34879 {caseNum1} 0 {caseLabel1} @CRASH1_34821 {caseNum2} 1 {caseLabel2} @CRASH1_34850 {caseNum3} -1 {caseLabel3} @CRASH1_34879 {caseNum4} -1 {caseLabel4} @CRASH1_34879 {caseNum5} -1 {caseLabel5} @CRASH1_34879 {caseNum6} -1 {caseLabel6} @CRASH1_34879 {caseNum7} -1 {caseLabel7} @CRASH1_34879

:CRASH1_34821
set_lvar_int_to_constant 60@ = 10620
set_lvar_text_label 69@s = 'CRA1_CA'
goto @CRASH1_34879

:CRASH1_34850
set_lvar_int_to_constant 60@ = 10621
set_lvar_text_label 69@s = 'CRA1_CB'
goto @CRASH1_34879

:CRASH1_34879
52@ = 1
return 

:CRASH1_34888
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 10626
set_lvar_text_label 69@(214@,9s) = 'CRA1_EA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10627
set_lvar_text_label 69@(214@,9s) = 'CRA1_EB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35018
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35018
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35028
set_lvar_int_to_constant 60@ = 10628
set_lvar_text_label 69@s = 'CRA1_EC'
52@ = 1
return 

:CRASH1_35059
set_lvar_int_to_constant 60@ = 10629
set_lvar_text_label 69@s = 'CRA1_ED'
52@ = 1
return 

:CRASH1_35090
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 10630
set_lvar_text_label 69@(214@,9s) = 'CRA1_FA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10631
set_lvar_text_label 69@(214@,9s) = 'CRA1_FB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35220
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35220
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35230
set_lvar_int_to_constant 60@ = 10632
set_lvar_text_label 69@s = 'CRA1_GA'
52@ = 1
return 

:CRASH1_35261
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 10633
set_lvar_text_label 69@(214@,9s) = 'CRA1_GB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10634
set_lvar_text_label 69@(214@,9s) = 'CRA1_GC'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_35391
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_35391
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_35401
214@ = generate_random_int_in_range 0 {max} 11
switch_start 214@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @CRASH1_35857 {caseNum1} 0 {caseLabel1} @CRASH1_35538 {caseNum2} 1 {caseLabel2} @CRASH1_35567 {caseNum3} 2 {caseLabel3} @CRASH1_35596 {caseNum4} 3 {caseLabel4} @CRASH1_35625 {caseNum5} 4 {caseLabel5} @CRASH1_35654 {caseNum6} 5 {caseLabel6} @CRASH1_35683 {caseNum7} 6 {caseLabel7} @CRASH1_35712
switch_continued 7 {caseLabel1} @CRASH1_35741 {caseNum2} 8 {caseLabel2} @CRASH1_35770 {caseNum3} 9 {caseLabel3} @CRASH1_35799 {caseNum4} 10 {caseLabel4} @CRASH1_35828 {caseNum5} -1 {caseLabel5} @CRASH1_35857 {caseNum6} -1 {caseLabel6} @CRASH1_35857 {caseNum7} -1 {caseLabel7} @CRASH1_35857 {caseNum8} -1 {caseLabel8} @CRASH1_35857 {caseNum9} -1 {caseLabel9} @CRASH1_35857

:CRASH1_35538
set_lvar_int_to_constant 60@ = 10635
set_lvar_text_label 69@s = 'CRA1_HA'
goto @CRASH1_35857

:CRASH1_35567
set_lvar_int_to_constant 60@ = 10636
set_lvar_text_label 69@s = 'CRA1_HB'
goto @CRASH1_35857

:CRASH1_35596
set_lvar_int_to_constant 60@ = 10637
set_lvar_text_label 69@s = 'CRA1_HC'
goto @CRASH1_35857

:CRASH1_35625
set_lvar_int_to_constant 60@ = 10638
set_lvar_text_label 69@s = 'CRA1_HD'
goto @CRASH1_35857

:CRASH1_35654
set_lvar_int_to_constant 60@ = 10639
set_lvar_text_label 69@s = 'CRA1_HE'
goto @CRASH1_35857

:CRASH1_35683
set_lvar_int_to_constant 60@ = 10640
set_lvar_text_label 69@s = 'CRA1_HF'
goto @CRASH1_35857

:CRASH1_35712
set_lvar_int_to_constant 60@ = 10641
set_lvar_text_label 69@s = 'CRA1_HG'
goto @CRASH1_35857

:CRASH1_35741
set_lvar_int_to_constant 60@ = 10642
set_lvar_text_label 69@s = 'CRA1_HH'
goto @CRASH1_35857

:CRASH1_35770
set_lvar_int_to_constant 60@ = 10643
set_lvar_text_label 69@s = 'CRA1_HJ'
goto @CRASH1_35857

:CRASH1_35799
set_lvar_int_to_constant 60@ = 10644
set_lvar_text_label 69@s = 'CRA1_HK'
goto @CRASH1_35857

:CRASH1_35828
set_lvar_int_to_constant 60@ = 10645
set_lvar_text_label 69@s = 'CRA1_HL'
goto @CRASH1_35857

:CRASH1_35857
52@ = 1
return 

:CRASH1_35866
set_lvar_int_to_constant 60@ = 10646
set_lvar_text_label 69@s = 'CRA1_JA'
52@ = 1
return 

:CRASH1_35897
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 10647
set_lvar_text_label 69@(214@,9s) = 'CRA1_JB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10648
set_lvar_text_label 69@(214@,9s) = 'CRA1_JC'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10649
set_lvar_text_label 69@(214@,9s) = 'CRA1_JD'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36064
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36064
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36074
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 10650
set_lvar_text_label 69@(214@,9s) = 'CRA1_KA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10651
set_lvar_text_label 69@(214@,9s) = 'CRA1_KB'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10652
set_lvar_text_label 69@(214@,9s) = 'CRA1_KC'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10653
set_lvar_text_label 69@(214@,9s) = 'CRA1_KD'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10654
set_lvar_text_label 69@(214@,9s) = 'CRA1_KE'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10655
set_lvar_text_label 69@(214@,9s) = 'CRA1_KF'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10656
set_lvar_text_label 69@(214@,9s) = 'CRA1_KG'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10657
set_lvar_text_label 69@(214@,9s) = 'CRA1_KH'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10658
set_lvar_text_label 69@(214@,9s) = 'CRA1_KJ'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36463
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36463
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36473
set_lvar_int_to_constant 60@ = 10659
set_lvar_text_label 69@s = 'CRA1_LA'
52@ = 1
return 

:CRASH1_36504
214@ = 0
set_lvar_int_to_constant 60@(214@,9i) = 10660
set_lvar_text_label 69@(214@,9s) = 'CRA1_MA'
214@ += 1
set_lvar_int_to_constant 60@(214@,9i) = 10661
set_lvar_text_label 69@(214@,9s) = 'CRA1_MB'
214@ += 1
if 
  214@ > 9
goto_if_false @CRASH1_36634
write_debug "TOO_MANY_CONVERSATION_LINES"

:CRASH1_36634
set_lvar_int_to_lvar_int 52@ = 214@
return 

:CRASH1_36644
set_lvar_int_to_constant 60@ = 10662
set_lvar_text_label 69@s = 'CRA1_MC'
52@ = 1
return 

:CRASH1_36675
set_lvar_int_to_constant 60@ = 10663
set_lvar_text_label 69@s = 'CRA1_MD'
52@ = 1
return 

:CRASH1_36706
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @CRASH1_36755
46@ += 1
if 
  46@ > 2
goto_if_false @CRASH1_36753
46@ = 0

:CRASH1_36753
clear_all_view_variables 

:CRASH1_36755
214@ = get_char_health $scplayer
if 
  not is_char_dead 95@
goto_if_false @CRASH1_36787
215@ = get_char_health 95@

:CRASH1_36787
if 
  46@ == 1
goto_if_false @CRASH1_37000
set_var_int_to_lvar_int $Crash1_view_debug = 34@
set_var_int_to_lvar_int $6696 = 35@
set_var_int_to_lvar_int $6697 = 45@
set_var_int_to_lvar_int $6698 = 214@
set_var_int_to_lvar_int $6699 = 215@
set_var_int_to_lvar_int $6700 = 190@
$6701 = 0
$6702 = 0
view_integer_variable $6701 {_p2} "IGNORE"
view_integer_variable $6702 {_p2} "IGNORE"
view_integer_variable $Crash1_view_debug {_p2} "M_STAGE"
view_integer_variable $6696 {_p2} "M_GOALS"
view_integer_variable $6697 {_p2} "M_MISSION_TIMER"
view_integer_variable $6698 {_p2} "PLAYER_HEALTH"
view_integer_variable $6699 {_p2} "COOCHIE_HEALTH"
view_integer_variable $6700 {_p2} "AICOOCHIE"

:CRASH1_37000
if 
  46@ == 2
goto_if_false @CRASH1_37018

:CRASH1_37018
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @CRASH1_37040
38@ = 1

:CRASH1_37040
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @CRASH1_37128
if 
  39@ == 0
goto_if_false @CRASH1_37103
39@ = 1
write_debug "LEVEL_PAUSED"
goto @CRASH1_37128

:CRASH1_37103
39@ = 0
write_debug "LEVEL_UNPAUSED"

:CRASH1_37128
return 

:CRASH1_37130
if 
  not is_ps2_keyboard_key_just_pressed 74
goto_if_false @CRASH1_37147
return 

:CRASH1_37147
if and
  34@ == 1
  3 > 35@
goto_if_false @CRASH1_37294
clear_area 2311.2339 {y} -1150.613 {z} 25.8027 {radius} 0.5 {clearParticles} False
load_scene 2311.2339 {y} -1150.613 {z} 25.8027
set_char_heading $scplayer {heading} 266.3994
set_char_coordinates $scplayer {x} 2311.2339 {y} -1150.613 {z} 25.8027
set_camera_behind_player 
remove_blip 122@
remove_blip 128@
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Molotov
goto_if_false @CRASH1_37287
remove_pickup 132@
give_weapon_to_char $scplayer {weaponType} WeaponType.Molotov {ammo} 20

:CRASH1_37287
35@ = 3

:CRASH1_37294
if 
  34@ == 2
goto_if_false @CRASH1_37707
213@ = 0

:CRASH1_37319
if 
  302@(213@,5i) == 0
goto_if_false @CRASH1_37412
if 
  not has_object_been_damaged 101@(213@,8i)
goto_if_false @CRASH1_37372
break_object 101@(213@,8i) {intensity} 1

:CRASH1_37372
302@(213@,5i) = 1
307@(213@,5i) = 1
delete_object 109@(213@,5i)
remove_blip 123@(213@,5i)

:CRASH1_37412
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37319
209@ = 5
if 
  313@ == 1
goto_if_false @CRASH1_37504
213@ = 0

:CRASH1_37465
remove_pickup 133@(213@,2i)
remove_blip 129@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_37465

:CRASH1_37504
if 
  312@ == 1
goto_if_false @CRASH1_37532
remove_pickup 132@
remove_blip 128@

:CRASH1_37532
if 
  355@ == 1
goto_if_false @CRASH1_37616
213@ = 0

:CRASH1_37557
if 
  not is_char_dead 87@(213@,5i)
goto_if_false @CRASH1_37595
clear_char_tasks_immediately 87@(213@,5i)
task_die 87@(213@,5i)

:CRASH1_37595
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37557

:CRASH1_37616
if 
  357@ == 1
goto_if_false @CRASH1_37700
213@ = 0

:CRASH1_37641
if 
  not is_char_dead 92@(213@,2i)
goto_if_false @CRASH1_37679
clear_char_tasks_immediately 92@(213@,2i)
task_die 92@(213@,2i)

:CRASH1_37679
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_37641

:CRASH1_37700
gosub @CRASH1_38827

:CRASH1_37707
if and
  34@ == 4
  10 > 35@
goto_if_false @CRASH1_37896
327@ = 1
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Extinguisher
goto_if_false @CRASH1_37772
give_weapon_to_char $scplayer {weaponType} WeaponType.Extinguisher {ammo} 30000
remove_blip 122@

:CRASH1_37772
clear_area 2336.51 {y} -1181.342 {z} 1030.969 {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 279.3672
set_char_coordinates $scplayer {x} 2336.51 {y} -1181.342 {z} 1030.969
set_camera_behind_player 
347@ = 0
set_char_proofs 95@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  49@ <> 0
goto_if_false @CRASH1_37875
gosub @CRASH1_33172

:CRASH1_37875
50@ = 8
gosub @CRASH1_32981
35@ = 11

:CRASH1_37896
if and
  34@ == 6
  8 > 35@
goto_if_false @CRASH1_38059
remove_blip 122@
clear_area 2350.3601 {y} -1180.5601 {z} 1026.9771 {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 266.3335
set_char_coordinates $scplayer {x} 2350.3601 {y} -1180.5601 {z} 1026.9771
set_camera_behind_player 
if 
  not is_char_dead 95@
goto_if_false @CRASH1_38052
clear_area 2349.0701 {y} -1181.505 {z} 1026.983 {radius} 0.5 {clearParticles} False
set_char_heading 95@ {heading} 266.6129
set_char_coordinates 95@ {x} 2349.0701 {y} -1181.505 {z} 1026.983

:CRASH1_38052
35@ = 8

:CRASH1_38059
if and
  34@ == 7
  35@ == 2
goto_if_false @CRASH1_38226
clear_area 2423.5391 {y} -1721.212 {z} 12.9061 {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 154.9302
set_char_coordinates $scplayer {x} 2423.5391 {y} -1721.212 {z} 12.9061
set_camera_behind_player 
if 
  not is_char_dead 95@
goto_if_false @CRASH1_38226
if 
  not is_char_in_any_car 95@
goto_if_false @CRASH1_38226
clear_area 2419.168 {y} -1718.171 {z} 12.7866 {radius} 0.5 {clearParticles} False
set_char_heading 95@ {heading} 75.9556
set_char_coordinates 95@ {x} 2419.168 {y} -1718.171 {z} 12.7866

:CRASH1_38226
return 

:CRASH1_38228
41@ += 1
if 
  41@ > 9
goto_if_false @CRASH1_38260
41@ = 0

:CRASH1_38260
return 

:CRASH1_38262
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 45@ += 44@
return 

:CRASH1_38301
219@ = get_game_timer 
300@ = 0
if 
  is_int_lvar_greater_than_int_lvar 219@ > 198@
goto_if_false @CRASH1_38355
300@ = 1
set_lvar_int_to_lvar_int 198@ = 219@
198@ += 3000

:CRASH1_38355
return 

:CRASH1_38357
if 
  314@ == 1
goto_if_false @CRASH1_38489
214@ = get_area_visible 
if 
  214@ <> 5
goto_if_false @CRASH1_38487
314@ = 0
316@ = 1
disable_player_sprint $player1 {state} False
197@ = 3
gosub @CRASH1_25459
set_heathaze_effect False
if 
  34@ == 5
goto_if_false @CRASH1_38469
192@ = 5
gosub @CRASH1_24873

:CRASH1_38469
191@ = 5
gosub @CRASH1_23203
set_radar_zoom 0

:CRASH1_38487
return 

:CRASH1_38489
if 
  314@ == 0
goto_if_false @CRASH1_38825
214@ = get_char_area_visible $scplayer
if 
  316@ == 1
goto_if_false @CRASH1_38567
if 
  214@ == 5
goto_if_false @CRASH1_38560
return 
goto @CRASH1_38567

:CRASH1_38560
316@ = 0

:CRASH1_38567
if 
  214@ == 5
goto_if_false @CRASH1_38825
v$txtString = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$txtString == "GANG"
goto_if_false @CRASH1_38825
314@ = 1
315@ = 1
323@ = 0
203@ = 0
disable_player_sprint $player1 {state} True
197@ = 2
gosub @CRASH1_25459
set_heathaze_effect True
set_char_fire_damage_multiplier $scplayer {_p2} 0.3
switch_ped_roads_on 2300.0 {leftBottomY} -1200.0 {leftBottomZ} 1000.0 {rightTopX} 2370.0 {rightTopY} -1160.0 {rightTopZ} 1050.0
191@ = 0
gosub @CRASH1_24064
if 
  34@ == 4
goto_if_false @CRASH1_38756
192@ = 4
gosub @CRASH1_24873

:CRASH1_38756
if 
  34@ == 5
goto_if_false @CRASH1_38788
192@ = 6
gosub @CRASH1_24873

:CRASH1_38788
gosub @CRASH1_31866
set_radar_zoom 50
show_blips_on_all_levels True
clear_this_print 'CRA1_06'
clear_this_print 'CRA1_10'

:CRASH1_38825
return 

:CRASH1_38827
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:CRASH1_38857
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CRASH1_38872
if 
  get_fading_status 
goto_if_false @CRASH1_38896
wait 0
goto @CRASH1_38872

:CRASH1_38896
set_area_visible 17
set_char_coordinates $scplayer {x} 1038.17 {y} -1335.2209 {z} 12.5493
set_char_heading $scplayer {heading} 0.0
load_cutscene 'CRASH1A'

:CRASH1_38941
if 
  not has_cutscene_loaded 
goto_if_false @CRASH1_38965
wait 0
goto @CRASH1_38941

:CRASH1_38965
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CRASH1_38982
if 
  not has_cutscene_finished 
goto_if_false @CRASH1_39006
wait 0
goto @CRASH1_38982

:CRASH1_39006
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:CRASH1_39020
if 
  get_fading_status 
goto_if_false @CRASH1_39044
wait 0
goto @CRASH1_39020

:CRASH1_39044
clear_cutscene 
set_area_visible 0
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
return 

:CRASH1_39065
if 
  not is_player_playing $player1
goto_if_false @CRASH1_39092
wait 0
goto @CRASH1_39065

:CRASH1_39092
gosub @CRASH1_39285
gosub @CRASH1_39563
clear_area 1038.17 {y} -1335.2209 {z} 12.5493 {radius} 0.5 {clearParticles} False
load_scene 1038.17 {y} -1335.2209 {z} 12.5493
set_char_coordinates $scplayer {x} 1038.17 {y} -1335.2209 {z} 12.5493
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
100@ = create_car 596 {x} 1032.438 {y} -1330.931 {z} 12.3864
set_car_heading 100@ {heading} 270.0
lock_car_doors 100@ {lockStatus} CarLock.Unlocked
mark_car_as_no_longer_needed 100@
switch_entry_exit 'GANG' {state} False
delete_object $g_BD_DOOR
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
$disable_mod_garage = 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
gosub @CRASH1_38827
return 

:CRASH1_39285
request_model 412
request_model 596
request_model 108
request_model 109
request_model 110
request_model 195
request_model 346
request_model 344
request_model 366
request_model #BREAK_WALL_1A
request_model #BREAK_WALL_2A
request_model #BREAK_WALL_3A
request_model #BREAK_WALL_1B
request_model #BREAK_WALL_2B
request_model #BREAK_WALL_3B
request_model #BD_FIRE1_O
request_model #CR_AMMOBOX
load_all_models_now 

:CRASH1_39369
if or
  not has_model_loaded 412
  not has_model_loaded 596
goto_if_false @CRASH1_39401
wait 0
goto @CRASH1_39369

:CRASH1_39401
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 195
goto_if_false @CRASH1_39440
wait 0
goto @CRASH1_39401

:CRASH1_39440
if or
  not has_model_loaded 346
  not has_model_loaded 344
  not has_model_loaded 366
goto_if_false @CRASH1_39477
wait 0
goto @CRASH1_39440

:CRASH1_39477
if or
  not has_model_loaded #BREAK_WALL_1B
  not has_model_loaded #BREAK_WALL_2B
  not has_model_loaded #BREAK_WALL_3B
  not has_model_loaded #BD_FIRE1_O
goto_if_false @CRASH1_39519
wait 0
goto @CRASH1_39477

:CRASH1_39519
if or
  not has_model_loaded #CR_AMMOBOX
  not has_model_loaded #BREAK_WALL_1A
  not has_model_loaded #BREAK_WALL_2A
  not has_model_loaded #BREAK_WALL_3A
goto_if_false @CRASH1_39561
wait 0
goto @CRASH1_39519

:CRASH1_39561
return 

:CRASH1_39563
request_animation "BD_FIRE"

:CRASH1_39574
if 
  not has_animation_loaded "BD_FIRE"
goto_if_false @CRASH1_39607
wait 0
goto @CRASH1_39574

:CRASH1_39607
return 

:CRASH1_39609
282@ = 2351.2371
283@ = -1161.075
284@ = 27.4175
285@ = 268.343
clear_area 282@ {y} 283@ {z} 284@ {radius} 10.0 {clearParticles} False
98@ = create_car 412 {x} 282@ {y} 283@ {z} 284@
set_car_heading 98@ {heading} 285@
open_car_door 98@ {door} CarDoor.Hood
356@ = 1
return 

:CRASH1_39708
282@ = 2354.26
283@ = -1161.106
284@ = 26.4678
285@ = 80.3034
214@ = 0
create_char PedType.Gang8 {modelId} 110 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
282@ = 2349.739
283@ = -1165.192
284@ = 26.3933
285@ = 65.0946
214@ += 1
create_char PedType.Gang8 {modelId} 109 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
282@ = 2354.2451
283@ = -1170.401
284@ = 26.9609
285@ = 1.1416
214@ += 1
create_char PedType.Gang8 {modelId} 108 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
282@ = 2315.0061
283@ = -1189.825
284@ = 27.0045
285@ = 52.4876
214@ += 1
create_char PedType.Gang8 {modelId} 109 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
set_char_accuracy 87@(214@,5i) {accuracy} 15
182@(214@,5i) = -1
282@ = 2349.9529
283@ = -1204.126
284@ = 26.9609
285@ = 348.4
214@ += 1
create_char PedType.Gang8 {modelId} 108 {x} 282@ {y} 283@ {z} 284@ {var_handle} 87@(214@,5i)
set_char_heading 87@(214@,5i) {heading} 285@
give_weapon_to_char 87@(214@,5i) {weaponType} WeaponType.Pistol {ammo} 999
set_char_is_target_priority 87@(214@,5i) {state} True
set_char_decision_maker 87@(214@,5i) {handleOrTemplate} 180@
182@(214@,5i) = -1
355@ = 1
return 

:CRASH1_40373
282@ = 2345.9141
283@ = -1188.6331
284@ = 28.969
214@ = 0
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2336.0229
283@ = -1188.6331
284@ = 28.969
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2326.1641
283@ = -1188.6331
284@ = 28.969
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2345.9771
283@ = -1170.9771
284@ = 28.969
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
set_object_heading 101@(214@,8i) {heading} 180.0
282@ = 2326.5701
283@ = -1170.984
284@ = 28.953
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
set_object_heading 101@(214@,8i) {heading} 180.0
282@ = 2345.9771
283@ = -1170.9771
284@ = 32.953
214@ += 1
create_object_no_offset #BD_WINDOW_SHATTER {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
set_object_heading 101@(214@,8i) {heading} 180.0
282@ = 2336.0229
283@ = -1188.6331
284@ = 32.961
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
282@ = 2345.9141
283@ = -1188.6331
284@ = 32.961
214@ += 1
create_object_no_offset #BD_WINDOW {x} 282@ {y} 283@ {z} 284@ {var_handle} 101@(214@,8i)
return 

:CRASH1_40881
114@ = create_object #CR1_DOOR {x} 2352.8511 {y} -1171.027 {z} 26.9669
set_object_heading 114@ {heading} 90.0
set_object_dynamic 114@ {state} False
set_object_collision_damage_effect 114@ {state} False
set_object_proofs 114@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
return 

:CRASH1_40944
282@ = 2338.126
283@ = -1181.917
284@ = 1033.188
214@ = 0
create_object_no_offset #BREAK_WALL_1A {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
set_object_heading 119@(214@,3i) {heading} 90.0
193@(214@,3i) = 0
282@ = 2330.4021
283@ = -1179.15
284@ = 1030.55
214@ += 1
create_object_no_offset #BREAK_WALL_2A {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
193@(214@,3i) = 0
282@ = 2340.293
283@ = -1182.2939
284@ = 1026.963
214@ += 1
create_object_no_offset #BREAK_WALL_3A {x} 282@ {y} 283@ {z} 284@ {var_handle} 119@(214@,3i)
set_object_heading 119@(214@,3i) {heading} 90.0
193@(214@,3i) = 0
213@ = 0

:CRASH1_41186
set_object_area_visible 119@(213@,3i) {areaId} 5
213@ += 1
  213@ >= 3
goto_if_false @CRASH1_41186
361@ = 1
return 

:CRASH1_41227
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if and
  340@ == 0
  359@ == 1
  is_char_dead 95@
goto_if_false @CRASH1_41289
print_now 'CRA1_51' {time} 5000 {flag} 1

:CRASH1_41289
return 

:CRASH1_41291
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'CRASH_1'
player_made_progress 1
$flag_crash_mission_counter += 1
set_global_var_bit_const $iActiveGF {bitIndex} 0
return 

:CRASH1_41349
if 
  355@ == 1
goto_if_false @CRASH1_41411
213@ = 0

:CRASH1_41374
mark_char_as_no_longer_needed 87@(213@,5i)
213@ += 1
  213@ >= 5
goto_if_false @CRASH1_41374
355@ = 0

:CRASH1_41411
if 
  356@ == 1
goto_if_false @CRASH1_41441
mark_car_as_no_longer_needed 98@
356@ = 0

:CRASH1_41441
if 
  313@ == 1
goto_if_false @CRASH1_41512
213@ = 0

:CRASH1_41466
remove_pickup 133@(213@,2i)
remove_blip 129@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41466
313@ = 0

:CRASH1_41512
213@ = 0

:CRASH1_41519
remove_pickup 136@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41519
if 
  357@ == 1
goto_if_false @CRASH1_41616
mark_car_as_no_longer_needed 99@
213@ = 0

:CRASH1_41579
mark_char_as_no_longer_needed 92@(213@,2i)
213@ += 1
  213@ >= 2
goto_if_false @CRASH1_41579
357@ = 0

:CRASH1_41616
if 
  358@ == 1
goto_if_false @CRASH1_41651
mark_char_as_no_longer_needed 94@
remove_script_fire 138@
358@ = 0

:CRASH1_41651
if 
  359@ == 1
goto_if_false @CRASH1_41696
mark_char_as_no_longer_needed 95@
remove_blip 131@
clear_onscreen_counter $g_Crash1_counterKM1
remove_script_fire 139@
359@ = 1

:CRASH1_41696
if 
  360@ == 1
goto_if_false @CRASH1_41731
remove_char_elegantly 96@
remove_char_elegantly 97@
360@ = 0

:CRASH1_41731
if 
  317@ == 1
goto_if_false @CRASH1_41761
remove_pickup 135@
317@ = 0

:CRASH1_41761
remove_blip 122@
remove_blip 128@
remove_animation "BD_FIRE"
if 
  is_player_playing $player1
goto_if_false @CRASH1_41843
remove_weapon_from_char $scplayer {weaponType} WeaponType.Molotov
remove_weapon_from_char $scplayer {weaponType} WeaponType.Extinguisher
set_char_fire_damage_multiplier $scplayer {_p2} 1.0
disable_player_sprint $player1 {state} False
set_player_group_to_follow_always $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CRASH1_41843
if 
  314@ == 1
goto_if_false @CRASH1_41875
197@ = 3
gosub @CRASH1_25459

:CRASH1_41875
197@ = 1
gosub @CRASH1_25459
197@ = 5
gosub @CRASH1_25459
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 407
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 195
mark_model_as_no_longer_needed 277
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 366
mark_model_as_no_longer_needed #BREAK_WALL_1A
mark_model_as_no_longer_needed #BREAK_WALL_2A
mark_model_as_no_longer_needed #BREAK_WALL_3A
mark_model_as_no_longer_needed #BREAK_WALL_1B
mark_model_as_no_longer_needed #BREAK_WALL_2B
mark_model_as_no_longer_needed #BREAK_WALL_3B
mark_model_as_no_longer_needed #BD_FIRE1_O
mark_model_as_no_longer_needed #CR_AMMOBOX
set_heathaze_effect False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
set_radar_zoom 0
disable_player_sprint $player1 {state} False
switch_emergency_services True
switch_entry_exit 'GANG' {state} False
set_player_group_recruitment $player1 {state} True
$disable_mod_garage = 0
$g_BD_DOOR = create_object #CR1_DOOR {x} 2352.8511 {y} -1171.027 {z} 26.9669
set_object_heading $g_BD_DOOR {heading} 90.0
set_object_dynamic $g_BD_DOOR {state} False
set_object_collision_damage_effect $g_BD_DOOR {state} False
set_object_proofs $g_BD_DOOR {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_BD_DOOR
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 23---------------
// Originally: Gray Imports

:DRUGS3
script_name 'DRUGS3'
gosub @DRUGS3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS3_38
gosub @DRUGS3_19343

:DRUGS3_38
gosub @DRUGS3_19417
terminate_this_script 

:DRUGS3_47
$onmission = 1
register_mission_given 
load_mission_text 'CRASH3'
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 1036.86 {y} -1336.49 {z} 20.0 {radius} 20.0 {clearParticles} False
load_cutscene 'CRASH3A'

:DRUGS3_116
if 
  not has_cutscene_loaded 
goto_if_false @DRUGS3_140
wait 0
goto @DRUGS3_116

:DRUGS3_140
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRUGS3_149
if 
  not has_cutscene_finished 
goto_if_false @DRUGS3_173
wait 0
goto @DRUGS3_149

:DRUGS3_173
do_fade 0 {direction} Fade.Out

:DRUGS3_179
if 
  get_fading_status 
goto_if_false @DRUGS3_203
wait 0
goto @DRUGS3_179

:DRUGS3_203
clear_cutscene 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
request_model 530
request_model 414
request_model 353
request_model #SEC_KEYPAD
request_model #KMB_RAMP
request_model 429
request_model 461
request_car_recording 342
load_all_models_now 

:DRUGS3_260
if or
  not has_model_loaded 530
  not has_model_loaded 414
  not has_car_recording_been_loaded 342
goto_if_false @DRUGS3_297
wait 0
goto @DRUGS3_260

:DRUGS3_297
if or
  not has_model_loaded #SEC_KEYPAD
  not has_model_loaded 353
  not has_model_loaded #KMB_RAMP
  not has_model_loaded 429
  not has_model_loaded 461
goto_if_false @DRUGS3_344
wait 0
goto @DRUGS3_297

:DRUGS3_344
set_wanted_multiplier 0.1
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
52@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 52@ {event} Event.DraggedOutCar
add_char_decision_maker_event_response 52@ {event} Event.DraggedOutCar {taskId} TaskId.ComplexKillPedOnFoot {respect} 50.0 {hate} 50.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
53@ = load_char_decision_maker DecisionMakerType.Weak
set_char_coordinates $scplayer {x} 1038.0 {y} -1339.0 {z} 12.8
set_char_heading $scplayer {heading} 1.0
set_camera_behind_player 
load_scene_in_direction 1038.0 {y} -1340.99 {z} 13.94 {heading} 1.0
do_fade 1500 {direction} Fade.In
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
if 
  $tripskip_c3flag > 0
goto_if_false @DRUGS3_850
set_up_skip 2263.3779 {y} -2226.3301 {z} 12.4 {heading} 47.416

:DRUGS3_850
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DRUGS3_876
goto @DRUGS3_19361

:DRUGS3_876
if 
  141@ == 0
goto_if_false @DRUGS3_937
137@ = add_blip_for_coord 2247.6389 {y} -2202.144 {z} 12.59
print_now 'CSH3_1' {time} 7000 {flag} 1
141@ = 1

:DRUGS3_937
if 
  141@ == 1
goto_if_false @DRUGS3_3398
if 
  locate_char_any_means_2d $scplayer {x} 2247.6389 {y} -2202.144 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} True
goto_if_false @DRUGS3_3398
if 
  $tripskip_c3flag == 0
goto_if_false @DRUGS3_1018
$tripskip_c3flag = 1

:DRUGS3_1018
clear_skip 
set_player_control $player1 {state} False
switch_emergency_services False
do_fade 500 {direction} Fade.Out

:DRUGS3_1038
if 
  get_fading_status 
goto_if_false @DRUGS3_1062
wait 0
goto @DRUGS3_1038

:DRUGS3_1062
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @DRUGS3_1126
$car = store_car_char_is_in_no_save $scplayer
set_car_proofs $car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_heading $car {heading} 128.0
set_car_health $car {health} 2000
goto @DRUGS3_1136

:DRUGS3_1126
set_char_heading $scplayer {heading} 128.0

:DRUGS3_1136
clear_area 2174.896 {y} -2258.9141 {z} 150.0 {radius} 150.0 {clearParticles} True
request_model #IMCMPTRKDRL_LAS
request_model #IMCMPTRKDRR_LAS
request_model #IMCOMPMOVEDR1_LAS
request_model 50
request_model 346
request_model #BARREL4
request_car_recording 310
request_car_recording 328
request_car_recording 329
request_car_recording 309
request_car_recording 347
load_all_models_now 

:DRUGS3_1216
if or
  not has_model_loaded 50
  not has_model_loaded 346
  not has_model_loaded #BARREL4
goto_if_false @DRUGS3_1252
wait 0
goto @DRUGS3_1216

:DRUGS3_1252
if or
  not has_car_recording_been_loaded 310
  not has_car_recording_been_loaded 328
  not has_car_recording_been_loaded 329
  not has_car_recording_been_loaded 309
goto_if_false @DRUGS3_1294
wait 0
goto @DRUGS3_1252

:DRUGS3_1294
if or
  not has_car_recording_been_loaded 347
  not has_model_loaded #IMCMPTRKDRL_LAS
  not has_model_loaded #IMCMPTRKDRR_LAS
  not has_model_loaded #IMCOMPMOVEDR1_LAS
goto_if_false @DRUGS3_1336
wait 0
goto @DRUGS3_1294

:DRUGS3_1336
load_scene 2212.02 {y} -2225.45 {z} 12.24
34@ = create_object #IMCMPTRKDRL_LAS {x} 2192.925 {y} -2231.824 {z} 14.205
35@ = create_object #IMCMPTRKDRR_LAS {x} 2195.072 {y} -2229.5891 {z} 14.205
set_object_heading 34@ {heading} 135.0
set_object_heading 35@ {heading} 85.0
36@ = create_object #IMCMPTRKDRL_LAS {x} 2200.1841 {y} -2224.4189 {z} 14.205
37@ = create_object #IMCMPTRKDRR_LAS {x} 2202.4319 {y} -2222.2661 {z} 14.205
set_object_heading 36@ {heading} 135.0
set_object_heading 37@ {heading} 85.0
38@ = create_object #IMCMPTRKDRL_LAS {x} 2207.7661 {y} -2217.281 {z} 14.205
39@ = create_object #IMCMPTRKDRR_LAS {x} 2210.0139 {y} -2215.0581 {z} 14.205
set_object_heading 38@ {heading} 135.0
set_object_heading 39@ {heading} 85.0
40@ = create_object #IMCMPTRKDRL_LAS {x} 2215.0959 {y} -2210.761 {z} 14.205
41@ = create_object #IMCMPTRKDRR_LAS {x} 2217.344 {y} -2208.5371 {z} 14.205
set_object_heading 40@ {heading} 135.0
set_object_heading 41@ {heading} 85.0
42@ = create_object_no_offset #KMB_RAMP {x} 2193.418 {y} -2231.3521 {z} 14.183
43@ = create_object_no_offset #KMB_RAMP {x} 2194.6421 {y} -2230.1279 {z} 14.183
44@ = create_object_no_offset #KMB_RAMP {x} 2200.686 {y} -2224.019 {z} 14.183
45@ = create_object_no_offset #KMB_RAMP {x} 2201.9099 {y} -2222.7949 {z} 14.183
46@ = create_object_no_offset #KMB_RAMP {x} 2208.2429 {y} -2216.833 {z} 14.183
47@ = create_object_no_offset #KMB_RAMP {x} 2209.468 {y} -2215.6089 {z} 14.183
48@ = create_object_no_offset #KMB_RAMP {x} 2215.489 {y} -2210.406 {z} 14.183
49@ = create_object_no_offset #KMB_RAMP {x} 2216.7129 {y} -2209.1819 {z} 14.183
set_object_rotation 42@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 43@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 44@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 45@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 46@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 47@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 48@ {x} 0.0 {y} 0.0 {z} 45.0
set_object_rotation 49@ {x} 0.0 {y} 0.0 {z} 45.0
50@ = create_object_no_offset #IMCOMPMOVEDR1_LAS {x} 2178.073 {y} -2254.384 {z} 15.9
set_object_heading 50@ {heading} 224.0
51@ = create_object #SEC_KEYPAD {x} 2174.896 {y} -2258.9141 {z} 15.0
freeze_object_position 51@ {state} True
set_object_heading 51@ {heading} 35.23
set_object_health 51@ {health} 10
set_object_only_damaged_by_player 51@ {state} True
73@ = create_object #BARREL4 {x} 2187.5381 {y} -2255.5811 {z} 12.51
set_object_only_damaged_by_player 73@ {state} True
58@ = create_car 414 {x} 2175.9399 {y} -2268.1001 {z} 12.66
set_car_heading 58@ {heading} 48.24
set_car_health 58@ {health} 450
59@ = create_car 414 {x} 2159.395 {y} -2295.29 {z} 12.688
set_car_heading 59@ {heading} 44.51
set_car_health 59@ {health} 450
60@ = create_car 530 {x} 2174.8701 {y} -2289.22 {z} 12.06
set_car_heading 60@ {heading} 321.59
62@ = create_char_inside_car 60@ {pedType} PedType.Mission1 {modelId} 50
set_car_straight_line_distance 60@ {distance} 150
set_char_decision_maker 62@ {handleOrTemplate} 52@
61@ = create_car 530 {x} 2193.25 {y} -2256.3999 {z} 12.25
set_car_heading 61@ {heading} 266.92
63@ = create_char_inside_car 61@ {pedType} PedType.Mission1 {modelId} 50
set_car_straight_line_distance 61@ {distance} 150
set_char_decision_maker 63@ {handleOrTemplate} 52@
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_2503
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_2503
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_2503
71@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
set_object_only_damaged_by_player 71@ {state} True
72@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
set_object_only_damaged_by_player 72@ {state} True
attach_object_to_car 71@ {handle} 60@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 72@ {handle} 60@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
task_car_drive_to_coord 62@ {vehicle} 60@ {x} 2179.49 {y} -2280.46 {z} 14.03 {speed} 5.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRUGS3_2503
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_2724
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_2724
if 
  is_char_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_2724
69@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
set_object_only_damaged_by_player 69@ {state} True
70@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
set_object_only_damaged_by_player 70@ {state} True
attach_object_to_car 69@ {handle} 61@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 70@ {handle} 61@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
task_car_drive_to_coord 63@ {vehicle} 61@ {x} 2209.1001 {y} -2253.6399 {z} 12.25 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRUGS3_2724
54@ = create_car 429 {x} 2207.7 {y} -2246.157 {z} 12.597
83@ = create_char_inside_car 54@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 83@ {handleOrTemplate} 52@
55@ = create_car 461 {x} 2212.8999 {y} -2241.6001 {z} 12.59
84@ = create_char_inside_car 55@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 84@ {handleOrTemplate} 52@
56@ = create_car 429 {x} 2218.8701 {y} -2234.29 {z} 12.6
85@ = create_char_inside_car 56@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 85@ {handleOrTemplate} 52@
57@ = create_car 461 {x} 2224.3 {y} -2228.1899 {z} 12.597
86@ = create_char_inside_car 57@ {pedType} PedType.Mission1 {modelId} 50
set_char_decision_maker 86@ {handleOrTemplate} 52@
64@ = create_char PedType.Mission1 {modelId} 50 {x} 2181.97 {y} -2252.6951 {z} 13.82
set_char_heading 64@ {heading} 231.26
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 64@ {handleOrTemplate} 52@
set_char_accuracy 64@ {accuracy} 30
65@ = create_char PedType.Mission1 {modelId} 50 {x} 2189.6499 {y} -2250.05 {z} 12.597
set_char_heading 65@ {heading} 229.24
set_char_decision_maker 65@ {handleOrTemplate} 52@
give_weapon_to_char 65@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 65@ {accuracy} 30
66@ = create_char PedType.Mission1 {modelId} 50 {x} 2193.126 {y} -2233.95 {z} 12.59
set_char_heading 66@ {heading} 249.77
set_char_decision_maker 66@ {handleOrTemplate} 52@
give_weapon_to_char 66@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 66@ {accuracy} 30
67@ = create_char PedType.Mission1 {modelId} 50 {x} 2199.71 {y} -2257.8411 {z} 12.597
set_char_heading 67@ {heading} 347.22
set_char_decision_maker 67@ {handleOrTemplate} 52@
give_weapon_to_char 67@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 67@ {accuracy} 30
68@ = create_char PedType.Mission1 {modelId} 50 {x} 2200.2 {y} -2256.49 {z} 12.597
set_char_heading 68@ {heading} 168.1
task_chat_with_char 67@ {other} 68@ {leadSpeaker} True {_p4} 1
set_char_decision_maker 68@ {handleOrTemplate} 52@
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 68@ {accuracy} 30
task_chat_with_char 68@ {other} 67@ {leadSpeaker} False {_p4} 1
set_fixed_camera_position 2256.623 {y} -2213.522 {z} 23.0389 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2255.7019 {y} -2213.833 {z} 22.8027 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 500 {direction} Fade.In
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3391
if 
  not is_car_dead 55@
goto_if_false @DRUGS3_3391
if 
  not is_car_dead 56@
goto_if_false @DRUGS3_3391
if 
  not is_car_dead 57@
goto_if_false @DRUGS3_3391
start_playback_recorded_car 55@ {path} 310
start_playback_recorded_car 56@ {path} 328
start_playback_recorded_car 57@ {path} 329
start_playback_recorded_car 54@ {path} 309
print_now 'CSH3_2' {time} 5000 {flag} 1

:DRUGS3_3391
141@ = 2

:DRUGS3_3398
if 
  141@ == 2
goto_if_false @DRUGS3_3490
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3483
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_3483
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3483
pause_playback_recorded_car 54@
TIMERA = 0
141@ = 3

:DRUGS3_3483
skip_cutscene_start_internal @DRUGS3_5144

:DRUGS3_3490
if 
  141@ == 3
goto_if_false @DRUGS3_3679
if 
  TIMERA > 5499
goto_if_false @DRUGS3_3679
set_fixed_camera_position 2207.0139 {y} -2244.207 {z} 13.7376 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2206.333 {y} -2243.4861 {z} 13.613 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_3628
task_play_anim 66@ {animationName} "HANDSUP" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_3628
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_3679
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_3679
unpause_playback_recorded_car 54@
TIMERA = 0
141@ = 4

:DRUGS3_3679
if 
  141@ == 4
goto_if_false @DRUGS3_3833
if 
  TIMERA > 1799
goto_if_false @DRUGS3_3833
set_fixed_camera_position 2205.3711 {y} -2235.2529 {z} 14.1153 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2204.374 {y} -2235.2649 {z} 14.0397 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_3819
task_play_anim 66@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_3819
TIMERA = 0
141@ = 5

:DRUGS3_3833
if 
  141@ == 5
goto_if_false @DRUGS3_4088
if 
  TIMERA > 3150
goto_if_false @DRUGS3_4088
print_now 'CSH3_3' {time} 7000 {flag} 2
set_fixed_camera_position 2210.3 {y} -2254.0669 {z} 16.7105 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2209.311 {y} -2254.1809 {z} 16.6143 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 68@
goto_if_false @DRUGS3_3989
task_play_anim 68@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_3989
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_4074
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_4074
if 
  not is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_4074
task_car_drive_to_coord 62@ {vehicle} 60@ {x} 2187.8799 {y} -2265.1101 {z} 12.6 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRUGS3_4074
TIMERA = 0
141@ = 6

:DRUGS3_4088
if 
  TIMERA > 2999
goto_if_false @DRUGS3_5126
if 
  141@ == 6
goto_if_false @DRUGS3_5126
87@ = create_char PedType.Mission1 {modelId} 50 {x} 2177.95 {y} -2261.002 {z} 13.818
set_char_heading 87@ {heading} 45.4
set_char_decision_maker 87@ {handleOrTemplate} 52@
set_fixed_camera_position 2187.0791 {y} -2255.27 {z} 15.5563 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2186.082 {y} -2255.3159 {z} 15.5002 {switchStyle} SwitchType.JumpCut
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2175.29 {y} -2259.22 {z} 14.8 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 75@
perform_sequence_task 87@ {sequence} 75@
clear_sequence_task 75@
if 
  not is_char_dead 64@
goto_if_false @DRUGS3_4345
task_play_anim 64@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS3_4345
if 
  142@ <> 6
goto_if_false @DRUGS3_5119
wait 0
if 
  142@ == 0
goto_if_false @DRUGS3_4453
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4453
if 
  locate_stopped_char_on_foot_2d 87@ {x} 2175.29 {y} -2259.22 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_4453
TIMERB = 0
142@ = 1

:DRUGS3_4453
if 
  142@ == 1
goto_if_false @DRUGS3_4583
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4583
if 
  locate_stopped_char_on_foot_2d 87@ {x} 2175.29 {y} -2259.22 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_4583
if 
  TIMERB > 1000
goto_if_false @DRUGS3_4583
task_achieve_heading 87@ {heading} 308.1
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStart
TIMERB = 0
159@ = 1
142@ = 2

:DRUGS3_4583
if 
  159@ == 1
goto_if_false @DRUGS3_4686
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4686
77@ = get_script_task_status 87@ {taskId} 1492
if or
  is_int_lvar_equal_to_constant 77@ == 7
  TIMERB > 1000
goto_if_false @DRUGS3_4686
task_go_straight_to_coord 87@ {x} 2179.5229 {y} -2256.364 {z} 14.81 {speed} MoveState.Run {time} 5000
159@ = 2

:DRUGS3_4686
if 
  142@ == 2
goto_if_false @DRUGS3_4799
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4799
if 
  does_object_exist 50@
goto_if_false @DRUGS3_4799
if 
  slide_object 50@ {posX} 2178.073 {posY} -2254.384 {posZ} 19.7 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @DRUGS3_4799
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
142@ = 3

:DRUGS3_4799
if 
  142@ == 3
goto_if_false @DRUGS3_4903
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_4903
if 
  locate_char_on_foot_2d 87@ {x} 2179.522 {y} -2256.364 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @DRUGS3_4903
task_go_straight_to_coord 87@ {x} 2173.5 {y} -2250.3501 {z} 14.81 {speed} MoveState.Run {time} 5000
142@ = 4

:DRUGS3_4903
if 
  142@ == 4
goto_if_false @DRUGS3_5015
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_5015
if 
  locate_char_on_foot_2d 87@ {x} 2174.3101 {y} -2251.0901 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @DRUGS3_5015
task_go_straight_to_coord 87@ {x} 2168.6599 {y} -2254.9041 {z} 14.59 {speed} MoveState.Run {time} 5000
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStart
142@ = 5

:DRUGS3_5015
if 
  142@ == 5
goto_if_false @DRUGS3_5112
if 
  does_object_exist 50@
goto_if_false @DRUGS3_5112
if 
  slide_object 50@ {posX} 2178.073 {posY} -2254.384 {posZ} 15.9 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @DRUGS3_5112
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
142@ = 6

:DRUGS3_5112
goto @DRUGS3_4345

:DRUGS3_5119
141@ = 7

:DRUGS3_5126
if 
  141@ == 7
goto_if_false @DRUGS3_6312

:DRUGS3_5144
skip_cutscene_end 
do_fade 500 {direction} Fade.Out

:DRUGS3_5153
if 
  get_fading_status 
goto_if_false @DRUGS3_5177
wait 0
goto @DRUGS3_5153

:DRUGS3_5177
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
159@ = 0
stop_playback_recorded_car 54@
stop_playback_recorded_car 55@
stop_playback_recorded_car 56@
stop_playback_recorded_car 57@
delete_object 50@
delete_object 42@
delete_object 43@
delete_object 44@
delete_object 45@
delete_object 46@
delete_object 47@
delete_object 48@
delete_object 49@
delete_object 34@
delete_object 35@
delete_object 36@
delete_object 37@
delete_object 38@
delete_object 39@
delete_object 40@
delete_object 41@
delete_car 54@
delete_car 55@
delete_car 56@
delete_car 57@
delete_car 60@
delete_car 61@
delete_char 62@
delete_char 63@
delete_object 69@
delete_object 70@
delete_object 71@
delete_object 72@
delete_char 83@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
clear_area 2192.925 {y} -2231.824 {z} 100.0 {radius} 100.0 {clearParticles} False
34@ = create_object #IMCMPTRKDRL_LAS {x} 2192.925 {y} -2231.824 {z} 14.205
35@ = create_object #IMCMPTRKDRR_LAS {x} 2195.072 {y} -2229.5891 {z} 14.205
set_object_heading 34@ {heading} 315.0
set_object_heading 35@ {heading} 315.0
36@ = create_object #IMCMPTRKDRL_LAS {x} 2200.1841 {y} -2224.4189 {z} 14.205
37@ = create_object #IMCMPTRKDRR_LAS {x} 2202.4319 {y} -2222.2661 {z} 14.205
set_object_heading 36@ {heading} 315.0
set_object_heading 37@ {heading} 315.0
38@ = create_object #IMCMPTRKDRL_LAS {x} 2207.7661 {y} -2217.281 {z} 14.205
39@ = create_object #IMCMPTRKDRR_LAS {x} 2210.0139 {y} -2215.0581 {z} 14.205
set_object_heading 38@ {heading} 315.0
set_object_heading 39@ {heading} 315.0
40@ = create_object #IMCMPTRKDRL_LAS {x} 2215.0959 {y} -2210.761 {z} 14.205
41@ = create_object #IMCMPTRKDRR_LAS {x} 2217.344 {y} -2208.5371 {z} 14.205
set_object_heading 40@ {heading} 315.0
set_object_heading 41@ {heading} 315.0
50@ = create_object_no_offset #IMCOMPMOVEDR1_LAS {x} 2178.073 {y} -2254.384 {z} 15.9
set_object_heading 50@ {heading} 224.0
60@ = create_car 530 {x} 2176.8899 {y} -2291.75 {z} 12.25
set_car_heading 60@ {heading} 321.59
62@ = create_char_inside_car 60@ {pedType} PedType.Mission1 {modelId} 50
give_weapon_to_char 62@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 62@ {accuracy} 30
set_car_straight_line_distance 60@ {distance} 150
set_char_decision_maker 62@ {handleOrTemplate} 52@
set_car_health 60@ {health} 600
set_car_only_damaged_by_player 60@ {state} True
61@ = create_car 530 {x} 2210.8101 {y} -2253.72 {z} 12.598
set_car_heading 61@ {heading} 71.09
63@ = create_char_inside_car 61@ {pedType} PedType.Mission1 {modelId} 50
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 63@ {accuracy} 30
set_car_straight_line_distance 61@ {distance} 150
set_char_decision_maker 63@ {handleOrTemplate} 52@
set_car_only_damaged_by_player 61@ {state} True
set_car_health 61@ {health} 600
69@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
70@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
set_object_only_damaged_by_player 69@ {state} True
set_object_only_damaged_by_player 70@ {state} True
attach_object_to_car 69@ {handle} 61@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 70@ {handle} 61@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
133@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2186.5071 {y} -2244.9929 {z} 15.81
134@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2146.5591 {y} -2244.46 {z} 13.58
135@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2158.8201 {y} -2232.7471 {z} 13.59
request_model 102
request_model #IMY_BBOX
request_animation "SWAT"
request_animation "DODGE"
request_car_recording 347
load_special_character 1 {modelName} 'ANDRE'
load_all_models_now 

:DRUGS3_6144
if or
  not has_model_loaded 102
  not has_animation_loaded "SWAT"
  not has_model_loaded #IMY_BBOX
  not has_car_recording_been_loaded 347
goto_if_false @DRUGS3_6188
wait 0
goto @DRUGS3_6144

:DRUGS3_6188
if or
  not has_animation_loaded "DODGE"
  not has_special_character_loaded 1
goto_if_false @DRUGS3_6223
wait 0
goto @DRUGS3_6188

:DRUGS3_6223
switch_widescreen False
set_player_control $player1 {state} True
clear_prints 
restore_camera_jumpcut 
set_camera_behind_player 
remove_blip 137@
137@ = add_blip_for_coord 2178.3799 {y} -2254.8899 {z} 13.81
do_fade 500 {direction} Fade.In
111@ = create_object_no_offset #IMY_LA_DOOR {x} 2118.0879 {y} -2274.635 {z} 20.867
set_object_heading 111@ {heading} 225.0
141@ = 8

:DRUGS3_6312
if 
  141@ == 8
goto_if_false @DRUGS3_9925
if 
  149@ == 0
goto_if_false @DRUGS3_6434
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6434
if 
  not has_object_been_damaged 51@
goto_if_false @DRUGS3_6434
if 
  locate_char_any_means_object_3d $scplayer {object} 51@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS3_6434
print_help 'CSH3_7'
149@ = 1

:DRUGS3_6434
if 
  149@ == 1
goto_if_false @DRUGS3_6538
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6538
if 
  not has_object_been_damaged 51@
goto_if_false @DRUGS3_6538
if 
  locate_char_any_means_object_3d $scplayer {object} 51@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS3_6538
print_help 'CSH3_7'
149@ = 2

:DRUGS3_6538
if 
  149@ == 2
goto_if_false @DRUGS3_6631
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6631
if 
  not has_object_been_damaged 51@
goto_if_false @DRUGS3_6631
if 
  not locate_char_any_means_object_3d $scplayer {object} 51@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS3_6631
149@ = 1

:DRUGS3_6631
if 
  does_object_exist 51@
goto_if_false @DRUGS3_6672
if 
  has_object_been_damaged 51@
goto_if_false @DRUGS3_6672
clear_prints 
141@ = 9

:DRUGS3_6672
if 
  147@ == 0
goto_if_false @DRUGS3_9007
if 
  144@ == 0
goto_if_false @DRUGS3_6783
if 
  145@ == 0
goto_if_false @DRUGS3_6783
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2198.686 {leftBottomY} -2180.832 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_6783
144@ = 1
145@ = 1

:DRUGS3_6783
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2172.3601 {leftBottomY} -2207.176 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_6849
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS3_6849
147@ = 1

:DRUGS3_6849
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2198.686 {leftBottomY} -2180.832 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_6938
if 
  is_char_shooting $scplayer
goto_if_false @DRUGS3_6915
147@ = 1

:DRUGS3_6915
if 
  is_player_targetting_anything $player1
goto_if_false @DRUGS3_6938
147@ = 1

:DRUGS3_6938
if 
  does_char_exist 62@
goto_if_false @DRUGS3_6980
if 
  has_char_been_damaged_by_char 62@ {handle} $scplayer
goto_if_false @DRUGS3_6980
147@ = 1

:DRUGS3_6980
if 
  does_char_exist 63@
goto_if_false @DRUGS3_7022
if 
  has_char_been_damaged_by_char 62@ {handle} $scplayer
goto_if_false @DRUGS3_7022
147@ = 1

:DRUGS3_7022
if 
  does_char_exist 64@
goto_if_false @DRUGS3_7064
if 
  has_char_been_damaged_by_char 64@ {handle} $scplayer
goto_if_false @DRUGS3_7064
147@ = 1

:DRUGS3_7064
if 
  does_char_exist 65@
goto_if_false @DRUGS3_7106
if 
  has_char_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @DRUGS3_7106
147@ = 1

:DRUGS3_7106
if 
  does_char_exist 66@
goto_if_false @DRUGS3_7148
if 
  has_char_been_damaged_by_char 66@ {handle} $scplayer
goto_if_false @DRUGS3_7148
147@ = 1

:DRUGS3_7148
if 
  does_char_exist 67@
goto_if_false @DRUGS3_7190
if 
  has_char_been_damaged_by_char 67@ {handle} $scplayer
goto_if_false @DRUGS3_7190
147@ = 1

:DRUGS3_7190
if 
  does_char_exist 68@
goto_if_false @DRUGS3_7232
if 
  has_char_been_damaged_by_char 68@ {handle} $scplayer
goto_if_false @DRUGS3_7232
147@ = 1

:DRUGS3_7232
if 
  145@ == 1
goto_if_false @DRUGS3_7350
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7350
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2198.686 {leftBottomY} -2180.832 {rightTopX} 2116.2119 {rightTopY} -2263.3169 {angle} 82.0 {drawSphere} False
goto_if_false @DRUGS3_7350
task_goto_char_offset 66@ {target} $scplayer {time} -1 {radius} 1.5 {heading} 0.0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 11008
load_mission_audio MissionAudioSlot.Slot2 {audioId} 11010
145@ = 2

:DRUGS3_7350
if 
  145@ == 2
goto_if_false @DRUGS3_7436
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7436
if 
  locate_char_any_means_char_2d 66@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS3_7436
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 66@
attach_mission_audio_to_char MissionAudioSlot.Slot2 {handle} 66@
145@ = 3

:DRUGS3_7436
if 
  145@ == 3
goto_if_false @DRUGS3_7512
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7512
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS3_7512
play_mission_audio MissionAudioSlot.Slot1
print_now 'CRA3_EA' {time} 3000 {flag} 1
145@ = 4

:DRUGS3_7512
if 
  145@ == 4
goto_if_false @DRUGS3_7609
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_7609
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS3_7609
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS3_7609
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'CRA3_EC' {time} 3000 {flag} 1
145@ = 5

:DRUGS3_7609
if 
  145@ == 5
goto_if_false @DRUGS3_7658
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS3_7658
clear_prints 
147@ = 1
145@ = 6

:DRUGS3_7658
if 
  144@ == 1
goto_if_false @DRUGS3_7784
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_7784
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_7784
if 
  is_char_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_7784
if 
  is_car_on_screen 61@
goto_if_false @DRUGS3_7784
task_car_drive_to_coord 63@ {vehicle} 61@ {x} 2195.8401 {y} -2251.522 {z} 12.598 {speed} 5.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
144@ = 2

:DRUGS3_7784
if 
  144@ == 2
goto_if_false @DRUGS3_7965
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_7965
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_7965
if 
  is_char_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_7965
if 
  locate_stopped_car_2d 61@ {x} 2195.8401 {y} -2251.522 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_7965
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_7965
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_7958
task_look_at_char 63@ {target} 65@ {time} 30000
task_go_straight_to_coord 65@ {x} 2197.896 {y} -2249.251 {z} 12.59 {speed} MoveState.Walk {time} -1

:DRUGS3_7958
144@ = 3

:DRUGS3_7965
if 
  144@ == 3
goto_if_false @DRUGS3_8097
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_8097
if 
  is_char_sitting_in_any_car 63@
goto_if_false @DRUGS3_8097
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_8097
if 
  locate_stopped_char_on_foot_2d 65@ {x} 2197.896 {y} -2249.251 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_8097
task_turn_char_to_face_char 65@ {target} 63@
task_look_at_char 63@ {target} 65@ {time} 60000
144@ = 4

:DRUGS3_8097
if 
  144@ == 4
goto_if_false @DRUGS3_8244
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_8244
if 
  is_char_sitting_in_any_car 63@
goto_if_false @DRUGS3_8244
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_8244
if 
  locate_stopped_char_on_foot_2d 65@ {x} 2197.896 {y} -2249.251 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_8244
task_play_anim 65@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
144@ = 5

:DRUGS3_8244
if 
  143@ == 0
goto_if_false @DRUGS3_8320
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8320
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8320
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8320
143@ = 1

:DRUGS3_8320
if 
  143@ == 1
goto_if_false @DRUGS3_8563
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8563
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8563
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8563
if 
  has_car_recording_been_loaded 347
goto_if_false @DRUGS3_8563
start_playback_recorded_car_looped 60@ {pathId} 347
71@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -14.0
72@ = create_object #BARREL4 {x} 2179.1799 {y} -2270.9199 {z} -10.0
attach_object_to_car 71@ {handle} 60@ {xOffset} 0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 72@ {handle} 60@ {xOffset} -0.5 {yOffset} 0.3 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_only_damaged_by_player 71@ {state} True
set_object_only_damaged_by_player 72@ {state} True
146@ = 1
143@ = 2

:DRUGS3_8563
if 
  143@ == 2
goto_if_false @DRUGS3_8662
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8662
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8662
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8662
if 
  not is_playback_going_on_for_car 60@
goto_if_false @DRUGS3_8662
TIMERA = 0
143@ = 3

:DRUGS3_8662
if 
  143@ == 3
goto_if_false @DRUGS3_8757
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8757
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8757
if 
  is_char_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8757
if 
  TIMERA > 500
goto_if_false @DRUGS3_8757
143@ = 0

:DRUGS3_8757
if 
  146@ == 1
goto_if_false @DRUGS3_8881
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8881
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8881
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8881
if 
  locate_car_2d 60@ {x} 2179.1799 {y} -2270.9199 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @DRUGS3_8881
delete_object 71@
delete_object 72@
146@ = 0

:DRUGS3_8881
if 
  4 > 143@
goto_if_false @DRUGS3_9007
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_8995
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_8976
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_8957
goto @DRUGS3_8969

:DRUGS3_8957
stop_playback_recorded_car 60@
143@ = 4

:DRUGS3_8969
goto @DRUGS3_8988

:DRUGS3_8976
stop_playback_recorded_car 60@
143@ = 4

:DRUGS3_8988
goto @DRUGS3_9007

:DRUGS3_8995
stop_playback_recorded_car 60@
143@ = 4

:DRUGS3_9007
if 
  147@ == 1
goto_if_false @DRUGS3_9461
if 
  not is_char_dead 67@
goto_if_false @DRUGS3_9086
set_lvar_int_to_lvar_int 112@ = 67@
116@ = 2203.1201
117@ = -2264.7671
118@ = 14.0
gosub @DRUGS3_18833

:DRUGS3_9086
if 
  not is_char_dead 68@
goto_if_false @DRUGS3_9147
set_lvar_int_to_lvar_int 112@ = 68@
116@ = 2188.5859
117@ = -2258.2729
118@ = 14.0
gosub @DRUGS3_18706

:DRUGS3_9147
if 
  not is_char_dead 65@
goto_if_false @DRUGS3_9208
set_lvar_int_to_lvar_int 112@ = 65@
116@ = 2207.9851
117@ = -2244.51
118@ = 14.0
gosub @DRUGS3_18833

:DRUGS3_9208
if 
  not is_char_dead 66@
goto_if_false @DRUGS3_9232
task_kill_char_on_foot 66@ {target} $scplayer

:DRUGS3_9232
if 
  not is_char_dead 64@
goto_if_false @DRUGS3_9263
set_lvar_int_to_lvar_int 112@ = 64@
gosub @DRUGS3_18882

:DRUGS3_9263
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9361
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_9361
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_9361
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9361
stop_playback_recorded_car 60@
task_car_mission 62@ {vehicle} 60@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 6.0 {drivingStyle} DrivingMode.PloughThrough
185@ = 1

:DRUGS3_9361
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9454
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_9454
if 
  is_char_sitting_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_9454
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9454
task_car_mission 63@ {vehicle} 61@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 5.0 {drivingStyle} DrivingMode.PloughThrough
186@ = 1

:DRUGS3_9454
147@ = 2

:DRUGS3_9461
if 
  185@ == 1
goto_if_false @DRUGS3_9569
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9569
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_9569
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_9569
if 
  is_char_touching_char 62@ {other} $scplayer
goto_if_false @DRUGS3_9569
task_car_temp_action 62@ {vehicle} 60@ {actionId} TempAction.Reverse {time} 2000
185@ = 2

:DRUGS3_9569
if 
  185@ == 2
goto_if_false @DRUGS3_9693
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_9693
if 
  not is_char_dead 62@
goto_if_false @DRUGS3_9693
if 
  is_char_sitting_in_car 62@ {vehicle} 60@
goto_if_false @DRUGS3_9693
132@ = get_script_task_status 62@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @DRUGS3_9693
task_car_mission 62@ {vehicle} 60@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 6.0 {drivingStyle} DrivingMode.PloughThrough
185@ = 1

:DRUGS3_9693
if 
  186@ == 1
goto_if_false @DRUGS3_9801
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9801
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_9801
if 
  is_char_sitting_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_9801
if 
  is_char_touching_char 63@ {other} $scplayer
goto_if_false @DRUGS3_9801
task_car_temp_action 63@ {vehicle} 61@ {actionId} TempAction.Reverse {time} 2000
186@ = 2

:DRUGS3_9801
if 
  186@ == 2
goto_if_false @DRUGS3_9925
if 
  not is_car_dead 61@
goto_if_false @DRUGS3_9925
if 
  not is_char_dead 63@
goto_if_false @DRUGS3_9925
if 
  is_char_sitting_in_car 63@ {vehicle} 61@
goto_if_false @DRUGS3_9925
132@ = get_script_task_status 63@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @DRUGS3_9925
task_car_mission 63@ {vehicle} 61@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 6.0 {drivingStyle} DrivingMode.PloughThrough
186@ = 1

:DRUGS3_9925
if 
  141@ == 9
goto_if_false @DRUGS3_10758
if 
  150@ == 0
goto_if_false @DRUGS3_10758
print_now 'CSH3_13' {time} 5000 {flag} 1
delete_object 51@
mark_model_as_no_longer_needed #SEC_KEYPAD
add_one_off_sound 2181.127 {y} -2251.999 {z} 14.036 {soundId} 65535
add_continuous_sound 2181.127 {_p2} -2251.999 {_p3} 14.036 {_p4} 65535 {_p5} 76@
remove_blip 137@
set_max_fire_generations 0
101@ = create_char PedType.Special {modelId} 290 {x} 2125.8 {y} -2274.24 {z} 19.67
set_char_heading 101@ {heading} 221.579
set_char_decision_maker 101@ {handleOrTemplate} 52@
set_char_health 101@ {health} 1000
set_char_max_health 101@ {maxHealth} 1000
set_char_money 101@ {amount} 3000
set_char_suffers_critical_hits 101@ {state} False
set_char_uses_upperbody_damage_anims_only 101@ {state} True
138@ = add_blip_for_char 101@
109@ = create_char PedType.Mission1 {modelId} 102 {x} 2129.217 {y} -2281.78 {z} 19.6719
set_char_heading 109@ {heading} 314.7061
set_char_decision_maker 109@ {handleOrTemplate} 52@
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 109@ {skill} WeaponSkill.Pro
set_char_accuracy 109@ {accuracy} 20
set_char_health 109@ {health} 50
110@ = create_char PedType.Mission1 {modelId} 102 {x} 2124.1541 {y} -2277.2429 {z} 19.6719
set_char_heading 110@ {heading} 241.1202
set_char_decision_maker 110@ {handleOrTemplate} 52@
give_weapon_to_char 110@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 110@ {skill} WeaponSkill.Pro
set_char_accuracy 110@ {accuracy} 20
set_char_health 110@ {health} 50
179@ = 1
83@ = create_char PedType.Mission1 {modelId} 50 {x} 2172.73 {y} -2249.8301 {z} 12.6
set_char_heading 83@ {heading} 227.0
set_char_decision_maker 83@ {handleOrTemplate} 52@
give_weapon_to_char 83@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 83@ {accuracy} 20
set_char_health 83@ {health} 30
84@ = create_char PedType.Mission1 {modelId} 50 {x} 2168.4199 {y} -2252.7141 {z} 12.59
set_char_heading 84@ {heading} 250.942
set_char_decision_maker 84@ {handleOrTemplate} 52@
give_weapon_to_char 84@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 84@ {accuracy} 20
set_char_shoot_rate 84@ {rate} 30
set_char_health 84@ {health} 20
85@ = create_char PedType.Mission1 {modelId} 50 {x} 2174.6599 {y} -2248.6001 {z} 12.6
set_char_heading 85@ {heading} 227.0
set_char_decision_maker 85@ {handleOrTemplate} 52@
give_weapon_to_char 85@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_allowed_to_duck 85@ {state} False
set_char_accuracy 85@ {accuracy} 20
87@ = create_char PedType.Mission1 {modelId} 50 {x} 2163.072 {y} -2246.0271 {z} 12.59
set_char_heading 87@ {heading} 224.58
set_char_decision_maker 87@ {handleOrTemplate} 52@
give_weapon_to_char 87@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 87@ {accuracy} 20
88@ = create_char PedType.Mission1 {modelId} 50 {x} 2158.03 {y} -2233.23 {z} 12.59
set_char_heading 88@ {heading} 230.37
set_char_decision_maker 88@ {handleOrTemplate} 52@
give_weapon_to_char 88@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 88@ {accuracy} 20
if 
  155@ == 0
goto_if_false @DRUGS3_10671
if 
  not is_char_dead 83@
goto_if_false @DRUGS3_10671
task_kill_char_on_foot 83@ {target} $scplayer
155@ = 1

:DRUGS3_10671
if 
  157@ == 0
goto_if_false @DRUGS3_10720
if 
  not is_char_dead 85@
goto_if_false @DRUGS3_10720
task_kill_char_on_foot 85@ {target} $scplayer
157@ = 1

:DRUGS3_10720
if 
  does_object_exist 50@
goto_if_false @DRUGS3_10744
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStart

:DRUGS3_10744
150@ = 1
141@ = 10

:DRUGS3_10758
if 
  150@ == 1
goto_if_false @DRUGS3_10855
if 
  does_object_exist 50@
goto_if_false @DRUGS3_10855
if 
  slide_object 50@ {posX} 2178.073 {posY} -2254.384 {posZ} 19.7 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False
goto_if_false @DRUGS3_10855
report_mission_audio_event_at_object 50@ {soundId} ScriptSound.SoundShutterDoorStop
150@ = 2

:DRUGS3_10855
if 
  141@ == 10
goto_if_false @DRUGS3_11049
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2167.9551 {leftBottomY} -2253.054 {rightTopX} 2175.0229 {rightTopY} -2245.3269 {angle} -11.5 {drawSphere} False
goto_if_false @DRUGS3_10923
141@ = 11

:DRUGS3_10923
if 
  does_char_exist 83@
goto_if_false @DRUGS3_10965
if 
  has_char_been_damaged_by_char 83@ {handle} $scplayer
goto_if_false @DRUGS3_10965
141@ = 11

:DRUGS3_10965
if 
  does_char_exist 84@
goto_if_false @DRUGS3_11007
if 
  has_char_been_damaged_by_char 84@ {handle} $scplayer
goto_if_false @DRUGS3_11007
141@ = 11

:DRUGS3_11007
if 
  does_char_exist 85@
goto_if_false @DRUGS3_11049
if 
  has_char_been_damaged_by_char 85@ {handle} $scplayer
goto_if_false @DRUGS3_11049
141@ = 11

:DRUGS3_11049
if 
  141@ == 11
goto_if_false @DRUGS3_18446
if 
  178@ == 0
goto_if_false @DRUGS3_11176
if 
  TIMERA > 0
goto_if_false @DRUGS3_11176
if 
  is_char_dead 83@
goto_if_false @DRUGS3_11176
if 
  is_char_dead 85@
goto_if_false @DRUGS3_11176
if 
  is_char_dead 87@
goto_if_false @DRUGS3_11176
print_help 'CSH3_10'
TIMERA = 0
178@ = 1

:DRUGS3_11176
if 
  178@ == 1
goto_if_false @DRUGS3_11238
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11238
print_help 'CSH3_11'
TIMERA = 0
178@ = 2

:DRUGS3_11238
if 
  178@ == 2
goto_if_false @DRUGS3_11300
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11300
print_help 'CSH3_12'
TIMERA = 0
178@ = 3

:DRUGS3_11300
if 
  178@ == 3
goto_if_false @DRUGS3_11362
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11362
print_help 'CSH3_52'
TIMERA = 0
178@ = 4

:DRUGS3_11362
if 
  178@ == 4
goto_if_false @DRUGS3_11417
if 
  TIMERA > 8000
goto_if_false @DRUGS3_11417
print_help 'CSH3_51'
178@ = 5

:DRUGS3_11417
if 
  151@ == 0
goto_if_false @DRUGS3_11761
if 
  156@ == 0
goto_if_false @DRUGS3_11491
if 
  not is_char_dead 84@
goto_if_false @DRUGS3_11491
set_lvar_int_to_lvar_int 112@ = 84@
gosub @DRUGS3_18882
156@ = 1

:DRUGS3_11491
if 
  159@ == 0
goto_if_false @DRUGS3_11547
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_11547
set_lvar_int_to_lvar_int 112@ = 87@
gosub @DRUGS3_19119
159@ = 1

:DRUGS3_11547
if 
  159@ == 1
goto_if_false @DRUGS3_11654
if 
  not is_char_dead 87@
goto_if_false @DRUGS3_11642
if or
  has_char_been_damaged_by_char 87@ {handle} $scplayer
  locate_char_any_means_char_2d 87@ {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_11635
task_kill_char_on_foot 87@ {target} $scplayer
159@ = 2

:DRUGS3_11635
goto @DRUGS3_11654

:DRUGS3_11642
mark_char_as_no_longer_needed 87@
159@ = 2

:DRUGS3_11654
if 
  160@ == 0
goto_if_false @DRUGS3_11761
if 
  not is_char_dead 88@
goto_if_false @DRUGS3_11761
if or
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2161.927 {leftBottomY} -2243.252 {rightTopX} 2168.71 {rightTopY} -2237.79 {angle} 10.0 {drawSphere} False
  has_char_been_damaged_by_char 88@ {handle} $scplayer
goto_if_false @DRUGS3_11761
set_lvar_int_to_lvar_int 112@ = 88@
gosub @DRUGS3_19036
160@ = 1

:DRUGS3_11761
if 
  152@ == 0
goto_if_false @DRUGS3_12231
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2160.6589 {leftBottomY} -2244.4089 {rightTopX} 2168.71 {rightTopY} -2237.79 {angle} 12.0 {drawSphere} False
goto_if_false @DRUGS3_12231
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #KMB_RAMP
mark_car_as_no_longer_needed 60@
mark_car_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_object_as_no_longer_needed 69@
mark_object_as_no_longer_needed 70@
mark_object_as_no_longer_needed 71@
mark_object_as_no_longer_needed 72@
mark_object_as_no_longer_needed 73@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
89@ = create_char PedType.Mission1 {modelId} 50 {x} 2149.249 {y} -2243.958 {z} 12.6
set_char_heading 89@ {heading} 312.4132
set_char_decision_maker 89@ {handleOrTemplate} 52@
give_weapon_to_char 89@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 89@ {accuracy} 20
set_char_health 89@ {health} 50
90@ = create_char PedType.Mission1 {modelId} 50 {x} 2156.04 {y} -2250.73 {z} 12.59
set_char_heading 90@ {heading} 46.763
set_char_decision_maker 90@ {handleOrTemplate} 52@
give_weapon_to_char 90@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 90@ {accuracy} 20
69@ = create_object #BARREL4 {x} 2149.7251 {y} -2249.8501 {z} 12.35
70@ = create_object #BARREL4 {x} 2162.3989 {y} -2259.4331 {z} 12.35
71@ = create_object #BARREL4 {x} 2152.3169 {y} -2270.3889 {z} 12.35
72@ = create_object #BARREL4 {x} 2139.3101 {y} -2270.019 {z} 14.7
set_object_only_damaged_by_player 69@ {state} True
set_object_only_damaged_by_player 70@ {state} True
set_object_only_damaged_by_player 71@ {state} True
set_object_only_damaged_by_player 72@ {state} True
102@ = create_object #IMY_BBOX {x} 2140.9099 {y} -2260.2 {z} 18.1
set_object_heading 102@ {heading} 317.068
set_object_health 102@ {health} 1000
set_object_only_damaged_by_player 102@ {state} True
152@ = 1

:DRUGS3_12231
if 
  152@ == 1
goto_if_false @DRUGS3_12498
if 
  161@ == 0
goto_if_false @DRUGS3_12305
if 
  not is_char_dead 89@
goto_if_false @DRUGS3_12305
set_lvar_int_to_lvar_int 112@ = 89@
gosub @DRUGS3_19119
161@ = 1

:DRUGS3_12305
if 
  161@ == 1
goto_if_false @DRUGS3_12412
if 
  not is_char_dead 89@
goto_if_false @DRUGS3_12400
if or
  has_char_been_damaged_by_char 89@ {handle} $scplayer
  locate_char_any_means_char_2d 89@ {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS3_12393
task_kill_char_on_foot 89@ {target} $scplayer
161@ = 2

:DRUGS3_12393
goto @DRUGS3_12412

:DRUGS3_12400
mark_char_as_no_longer_needed 89@
161@ = 2

:DRUGS3_12412
if 
  162@ == 0
goto_if_false @DRUGS3_12498
if 
  not is_char_dead 90@
goto_if_false @DRUGS3_12498
set_lvar_int_to_lvar_int 112@ = 90@
116@ = 2152.019
117@ = -2246.949
118@ = 12.595
gosub @DRUGS3_18964
162@ = 1

:DRUGS3_12498
if 
  153@ == 0
goto_if_false @DRUGS3_13164
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2157.47 {leftBottomY} -2246.72 {rightTopX} 2152.7371 {rightTopY} -2251.8569 {angle} -10.0 {drawSphere} False
goto_if_false @DRUGS3_13164
92@ = create_char PedType.Mission1 {modelId} 50 {x} 2164.9431 {y} -2259.2749 {z} 12.594
set_char_heading 92@ {heading} 46.776
set_char_decision_maker 92@ {handleOrTemplate} 52@
give_weapon_to_char 92@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 92@ {accuracy} 30
set_char_shoot_rate 92@ {rate} 20
93@ = create_char PedType.Mission1 {modelId} 50 {x} 2159.2959 {y} -2256.6599 {z} 12.59
set_char_heading 93@ {heading} 46.776
set_char_decision_maker 93@ {handleOrTemplate} 52@
give_weapon_to_char 93@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 93@ {accuracy} 20
set_char_allowed_to_duck 93@ {state} False
set_char_shoot_rate 93@ {rate} 20
94@ = create_char PedType.Mission1 {modelId} 50 {x} 2137.5779 {y} -2262.2161 {z} 12.59
set_char_heading 94@ {heading} 211.9
set_char_decision_maker 94@ {handleOrTemplate} 52@
give_weapon_to_char 94@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 94@ {accuracy} 10
95@ = create_char PedType.Mission1 {modelId} 50 {x} 2138.0081 {y} -2253.3689 {z} 12.59
set_char_heading 95@ {heading} 139.993
set_char_decision_maker 95@ {handleOrTemplate} 52@
give_weapon_to_char 95@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 95@ {accuracy} 10
96@ = create_char PedType.Mission1 {modelId} 50 {x} 2151.5449 {y} -2279.6069 {z} 13.82
set_char_heading 96@ {heading} 46.63
set_char_decision_maker 96@ {handleOrTemplate} 52@
give_weapon_to_char 96@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 96@ {accuracy} 10
97@ = create_char PedType.Mission1 {modelId} 50 {x} 2140.6951 {y} -2259.877 {z} 12.5547
set_char_heading 97@ {heading} 259.7427
set_char_decision_maker 97@ {handleOrTemplate} 52@
give_weapon_to_char 97@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 97@ {accuracy} 10
set_char_shoot_rate 97@ {rate} 20
98@ = create_char PedType.Mission1 {modelId} 50 {x} 2141.7629 {y} -2261.2771 {z} 12.5547
set_char_heading 98@ {heading} 259.742
set_char_decision_maker 98@ {handleOrTemplate} 52@
give_weapon_to_char 98@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 98@ {accuracy} 10
set_char_shoot_rate 98@ {rate} 20
99@ = create_char PedType.Mission1 {modelId} 102 {x} 2131.561 {y} -2279.4241 {z} 19.712
set_char_heading 99@ {heading} 313.176
set_char_decision_maker 99@ {handleOrTemplate} 52@
give_weapon_to_char 99@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 99@ {accuracy} 10
set_char_shoot_rate 99@ {rate} 20
100@ = create_char PedType.Mission1 {modelId} 102 {x} 2128.9519 {y} -2282.271 {z} 19.712
set_char_heading 100@ {heading} 313.176
set_char_decision_maker 100@ {handleOrTemplate} 52@
give_weapon_to_char 100@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 100@ {accuracy} 10
set_char_shoot_rate 100@ {rate} 20
153@ = 1

:DRUGS3_13164
if 
  153@ == 1
goto_if_false @DRUGS3_13294
if 
  164@ == 0
goto_if_false @DRUGS3_13238
if 
  not is_char_dead 92@
goto_if_false @DRUGS3_13238
set_lvar_int_to_lvar_int 112@ = 92@
gosub @DRUGS3_18882
164@ = 1

:DRUGS3_13238
if 
  165@ == 0
goto_if_false @DRUGS3_13294
if 
  not is_char_dead 93@
goto_if_false @DRUGS3_13294
set_lvar_int_to_lvar_int 112@ = 93@
gosub @DRUGS3_18882
165@ = 1

:DRUGS3_13294
if 
  154@ == 0
goto_if_false @DRUGS3_14045
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 2160.728 {leftBottomY} -2254.5859 {rightTopX} 2152.3999 {rightTopY} -2263.3 {angle} 10.0 {drawSphere} False
goto_if_false @DRUGS3_14045
if 
  166@ == 0
goto_if_false @DRUGS3_13464
if 
  does_object_exist 102@
goto_if_false @DRUGS3_13389

:DRUGS3_13389
if 
  not is_char_dead 94@
goto_if_false @DRUGS3_13464
set_lvar_int_to_lvar_int 112@ = 94@
116@ = 2148.9451
117@ = -2273.314
118@ = 13.595
set_char_allowed_to_duck 94@ {state} False
gosub @DRUGS3_18706
166@ = 1

:DRUGS3_13464
if 
  167@ == 0
goto_if_false @DRUGS3_13587
if 
  not is_char_dead 95@
goto_if_false @DRUGS3_13587
set_lvar_int_to_lvar_int 112@ = 95@
116@ = 2133.613
117@ = -2258.0669
118@ = 12.59
119@ = 2143.387
120@ = -2267.5
121@ = 13.595
task_toggle_duck 95@ {state} True
gosub @DRUGS3_18761
167@ = 1

:DRUGS3_13587
if 
  168@ == 0
goto_if_false @DRUGS3_13680
if 
  not is_char_dead 96@
goto_if_false @DRUGS3_13680
set_lvar_int_to_lvar_int 112@ = 96@
116@ = 2140.375
117@ = -2269.6599
118@ = 13.59
task_toggle_duck 96@ {state} True
gosub @DRUGS3_18706
168@ = 1

:DRUGS3_13680
if 
  171@ == 0
goto_if_false @DRUGS3_13803
if 
  not is_char_dead 99@
goto_if_false @DRUGS3_13803
set_lvar_int_to_lvar_int 112@ = 99@
116@ = 2134.5039
117@ = -2276.708
118@ = 19.712
119@ = 2130.845
120@ = -2272.55
121@ = 19.71
set_char_allowed_to_duck 99@ {state} False
gosub @DRUGS3_18761
171@ = 1

:DRUGS3_13803
if 
  172@ == 0
goto_if_false @DRUGS3_13926
if 
  not is_char_dead 100@
goto_if_false @DRUGS3_13926
set_lvar_int_to_lvar_int 112@ = 100@
116@ = 2134.7881
117@ = -2275.9409
118@ = 19.712
119@ = 2139.8789
120@ = -2270.926
121@ = 18.0
set_char_allowed_to_duck 100@ {state} False
gosub @DRUGS3_18761
172@ = 1

:DRUGS3_13926
if 
  169@ == 0
goto_if_false @DRUGS3_13982
if 
  not is_char_dead 97@
goto_if_false @DRUGS3_13982
set_lvar_int_to_lvar_int 112@ = 97@
gosub @DRUGS3_18882
169@ = 1

:DRUGS3_13982
if 
  170@ == 0
goto_if_false @DRUGS3_14038
if 
  not is_char_dead 98@
goto_if_false @DRUGS3_14038
set_lvar_int_to_lvar_int 112@ = 98@
gosub @DRUGS3_18882
170@ = 1

:DRUGS3_14038
154@ = 1

:DRUGS3_14045
if 
  173@ == 0
goto_if_false @DRUGS3_14209
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} 2136.48 {leftBottomY} -2266.78 {leftBottomZ} 28.0 {rightTopX} 2145.55 {rightTopY} -2275.04 {rightTopZ} 18.0 {angle} -20.0 {drawSphere} False
goto_if_false @DRUGS3_14209
mark_model_as_no_longer_needed #IMCMPTRKDRL_LAS
mark_model_as_no_longer_needed #IMCMPTRKDRR_LAS
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
print_now 'CSH3_53' {time} 7000 {flag} 1
if 
  not is_char_dead 109@
goto_if_false @DRUGS3_14178
set_lvar_int_to_lvar_int 112@ = 109@
gosub @DRUGS3_18882

:DRUGS3_14178
if 
  not is_char_dead 110@
goto_if_false @DRUGS3_14202
task_kill_char_on_foot 110@ {target} $scplayer

:DRUGS3_14202
173@ = 1

:DRUGS3_14209
if 
  179@ == 1
goto_if_false @DRUGS3_14250
if 
  is_char_dead 101@
goto_if_false @DRUGS3_14250
179@ = 2

:DRUGS3_14250
if 
  179@ == 2
goto_if_false @DRUGS3_14275
goto @DRUGS3_19361

:DRUGS3_14275
if 
  is_char_dead 101@
goto_if_false @DRUGS3_14312
if 
  does_blip_exist 138@
goto_if_false @DRUGS3_14312
remove_blip 138@

:DRUGS3_14312
if 
  174@ == 0
goto_if_false @DRUGS3_14467
if 
  does_object_exist 102@
goto_if_false @DRUGS3_14467
103@ = get_object_health 102@
if 
  1000 > 103@
goto_if_false @DRUGS3_14467
set_object_proofs 102@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead 98@
goto_if_false @DRUGS3_14453
set_char_heading 98@ {heading} 200.025
task_play_anim_non_interruptable 98@ {animationName} "CRUSH_JUMP" {animationFile} "DODGE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:DRUGS3_14453
TIMERB = 0
174@ = 1

:DRUGS3_14467
if 
  174@ == 1
goto_if_false @DRUGS3_14647
if 
  TIMERB > 1500
goto_if_false @DRUGS3_14647
if 
  does_object_exist 102@
goto_if_false @DRUGS3_14647
set_object_coordinates 102@ {x} 2140.9099 {y} -2260.2 {z} 18.1
set_object_dynamic 102@ {state} True
set_object_collision 102@ {state} True
add_to_object_velocity 102@ {x} 0.0 {y} 0.0 {z} -2.0
if 
  not is_char_dead 97@
goto_if_false @DRUGS3_14633
set_char_collision 97@ {state} False
task_play_anim_non_interruptable 97@ {animationName} "CRUSHED" {animationFile} "DODGE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:DRUGS3_14633
TIMERB = 0
174@ = 2

:DRUGS3_14647
if 
  174@ == 2
goto_if_false @DRUGS3_14742
if 
  TIMERB > 600
goto_if_false @DRUGS3_14742
if 
  not is_char_dead 97@
goto_if_false @DRUGS3_14712
set_char_never_targetted 97@ {state} True
remove_char_elegantly 97@

:DRUGS3_14712
if 
  not is_char_dead 98@
goto_if_false @DRUGS3_14735
set_char_never_targetted 98@ {state} True

:DRUGS3_14735
174@ = 3

:DRUGS3_14742
if 
  155@ == 1
goto_if_false @DRUGS3_14788
if 
  is_char_dead 83@
goto_if_false @DRUGS3_14788
mark_char_as_no_longer_needed 83@
155@ = 2

:DRUGS3_14788
if 
  156@ == 1
goto_if_false @DRUGS3_14834
if 
  is_char_dead 84@
goto_if_false @DRUGS3_14834
mark_char_as_no_longer_needed 84@
156@ = 2

:DRUGS3_14834
if 
  157@ == 1
goto_if_false @DRUGS3_14880
if 
  is_char_dead 85@
goto_if_false @DRUGS3_14880
mark_char_as_no_longer_needed 85@
157@ = 2

:DRUGS3_14880
if 
  159@ > 0
goto_if_false @DRUGS3_14944
if 
  3 > 159@
goto_if_false @DRUGS3_14944
if 
  is_char_dead 87@
goto_if_false @DRUGS3_14944
mark_char_as_no_longer_needed 87@
159@ = 2

:DRUGS3_14944
if 
  160@ == 1
goto_if_false @DRUGS3_14990
if 
  is_char_dead 88@
goto_if_false @DRUGS3_14990
mark_char_as_no_longer_needed 88@
160@ = 2

:DRUGS3_14990
if 
  161@ > 0
goto_if_false @DRUGS3_15054
if 
  3 > 161@
goto_if_false @DRUGS3_15054
if 
  is_char_dead 89@
goto_if_false @DRUGS3_15054
mark_char_as_no_longer_needed 89@
161@ = 3

:DRUGS3_15054
if 
  162@ == 1
goto_if_false @DRUGS3_15100
if 
  is_char_dead 90@
goto_if_false @DRUGS3_15100
mark_char_as_no_longer_needed 90@
162@ = 2

:DRUGS3_15100
if 
  164@ == 1
goto_if_false @DRUGS3_15146
if 
  is_char_dead 92@
goto_if_false @DRUGS3_15146
mark_char_as_no_longer_needed 92@
164@ = 2

:DRUGS3_15146
if 
  165@ == 1
goto_if_false @DRUGS3_15192
if 
  is_char_dead 93@
goto_if_false @DRUGS3_15192
mark_char_as_no_longer_needed 93@
165@ = 2

:DRUGS3_15192
if 
  166@ == 1
goto_if_false @DRUGS3_15238
if 
  is_char_dead 94@
goto_if_false @DRUGS3_15238
mark_char_as_no_longer_needed 94@
166@ = 2

:DRUGS3_15238
if 
  167@ == 1
goto_if_false @DRUGS3_15284
if 
  is_char_dead 95@
goto_if_false @DRUGS3_15284
mark_char_as_no_longer_needed 95@
167@ = 2

:DRUGS3_15284
if 
  168@ == 1
goto_if_false @DRUGS3_15330
if 
  is_char_dead 96@
goto_if_false @DRUGS3_15330
mark_char_as_no_longer_needed 96@
168@ = 2

:DRUGS3_15330
if 
  171@ == 1
goto_if_false @DRUGS3_15376
if 
  is_char_dead 99@
goto_if_false @DRUGS3_15376
mark_char_as_no_longer_needed 99@
171@ = 2

:DRUGS3_15376
if 
  172@ == 1
goto_if_false @DRUGS3_15422
if 
  is_char_dead 100@
goto_if_false @DRUGS3_15422
mark_char_as_no_longer_needed 100@
172@ = 2

:DRUGS3_15422
if 
  173@ == 1
goto_if_false @DRUGS3_16461
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} 2125.1399 {leftBottomY} -2270.97 {leftBottomZ} 27.0 {rightTopX} 2121.0901 {rightTopY} -2275.3301 {rightTopZ} 19.0 {angle} 14.0 {drawSphere} False
goto_if_false @DRUGS3_16461
mark_char_as_no_longer_needed 83@
mark_char_as_no_longer_needed 84@
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 88@
mark_char_as_no_longer_needed 89@
mark_char_as_no_longer_needed 90@
remove_char_elegantly 83@
remove_char_elegantly 84@
remove_char_elegantly 85@
remove_char_elegantly 86@
remove_char_elegantly 87@
remove_char_elegantly 88@
remove_char_elegantly 89@
remove_char_elegantly 90@
delete_car 54@
delete_car 55@
delete_car 60@
clear_area 2185.53 {y} -2271.95 {z} 50.0 {radius} 50.0 {clearParticles} False
mark_model_as_no_longer_needed 102
74@ = create_object #BARREL4 {x} 2170.366 {y} -2337.439 {z} 12.54
set_object_only_damaged_by_player 74@ {state} True
60@ = create_car 530 {x} 2122.092 {y} -2307.1411 {z} 12.5693
set_car_heading 60@ {heading} 265.9861
set_can_burst_car_tyres 60@ {state} False
54@ = create_car 429 {x} 2190.0701 {y} -2269.8 {z} 12.5693
set_car_heading 54@ {heading} 308.99
set_car_health 54@ {health} 1000
55@ = create_car 461 {x} 2175.75 {y} -2280.5701 {z} 12.5693
set_car_heading 55@ {heading} 315.41
set_can_burst_car_tyres 55@ {state} False
136@ = create_pickup_with_ammo 353 {pickupType} PickupType.Once {ammo} 250 {x} 2175.614 {y} -2282.959 {z} 13.54
83@ = create_char PedType.Mission1 {modelId} 50 {x} 2132.698 {y} -2303.3701 {z} 13.699
set_char_heading 83@ {heading} 826.228
set_char_decision_maker 83@ {handleOrTemplate} 52@
give_weapon_to_char 83@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 83@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 83@
gosub @DRUGS3_18882
84@ = create_char PedType.Mission1 {modelId} 50 {x} 2138.0601 {y} -2308.614 {z} 19.7
set_char_heading 84@ {heading} 60.478
set_char_decision_maker 84@ {handleOrTemplate} 52@
give_weapon_to_char 84@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_accuracy 84@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 84@
gosub @DRUGS3_18926
85@ = create_char PedType.Mission1 {modelId} 50 {x} 2144.0071 {y} -2295.1941 {z} 19.676
set_char_heading 85@ {heading} 119.8487
set_char_decision_maker 85@ {handleOrTemplate} 52@
give_weapon_to_char 85@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_allowed_to_duck 85@ {state} False
set_char_health 85@ {health} 50
set_char_accuracy 85@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 85@
gosub @DRUGS3_18926
86@ = create_char PedType.Mission1 {modelId} 50 {x} 2131.5601 {y} -2313.6001 {z} 12.5719
set_char_heading 86@ {heading} 265.9861
set_char_decision_maker 86@ {handleOrTemplate} 52@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_allowed_to_duck 86@ {state} False
set_char_accuracy 86@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 86@
gosub @DRUGS3_18882
88@ = create_char PedType.Mission1 {modelId} 50 {x} 2183.3669 {y} -2293.2339 {z} 12.5
set_char_heading 88@ {heading} 148.671
set_char_decision_maker 88@ {handleOrTemplate} 52@
give_weapon_to_char 88@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_kill_char_on_foot 88@ {target} $scplayer
set_char_health 88@ {health} 50
set_lvar_int_to_lvar_int 112@ = 88@
gosub @DRUGS3_18926
89@ = create_char PedType.Mission1 {modelId} 50 {x} 2165.7371 {y} -2324.2891 {z} 17.515
set_char_heading 89@ {heading} 224.6632
set_char_decision_maker 89@ {handleOrTemplate} 52@
give_weapon_to_char 89@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_health 89@ {health} 70
set_char_accuracy 89@ {accuracy} 30
set_lvar_int_to_lvar_int 112@ = 89@
gosub @DRUGS3_18926
90@ = create_char PedType.Mission1 {modelId} 50 {x} 2170.0701 {y} -2334.498 {z} 12.547
set_char_heading 90@ {heading} 89.2721
set_char_decision_maker 90@ {handleOrTemplate} 52@
give_weapon_to_char 90@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_health 90@ {health} 50
set_lvar_int_to_lvar_int 112@ = 90@
gosub @DRUGS3_18926
if 
  does_object_exist 111@
goto_if_false @DRUGS3_16396
set_object_heading 111@ {heading} 90.0
goto @DRUGS3_16401

:DRUGS3_16396
delete_object 111@

:DRUGS3_16401
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_16454
task_play_anim 101@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000

:DRUGS3_16454
173@ = 2

:DRUGS3_16461
if 
  173@ == 2
goto_if_false @DRUGS3_16689
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_16689
if or
  TIMERA > 750
  has_char_been_damaged_by_char 101@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 101@
goto_if_false @DRUGS3_16689
87@ = create_char PedType.Mission1 {modelId} 50 {x} 2135.46 {y} -2296.6399 {z} 12.9
set_char_heading 87@ {heading} 337.5533
set_char_decision_maker 87@ {handleOrTemplate} 52@
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 99999
task_kill_char_on_foot 87@ {target} $scplayer
set_lvar_int_to_lvar_int 112@ = 87@
gosub @DRUGS3_18926
113@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2128.4299 {y} -2292.01 {z} 13.75 {speed} MoveState.Run {time} 350000
task_follow_path_nodes_to_coord -1 {x} 2185.5 {y} -2274.8 {z} 13.75 {speed} MoveState.Sprint {time} 350000
close_sequence_task 113@
perform_sequence_task 101@ {sequence} 113@
clear_sequence_task 113@
173@ = 3

:DRUGS3_16689
if 
  173@ == 3
goto_if_false @DRUGS3_16773
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_16773
if 
  locate_char_any_means_2d 101@ {x} 2185.5 {y} -2274.8 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS3_16773
mark_char_as_no_longer_needed 86@
173@ = 4

:DRUGS3_16773
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_18210
if 
  173@ == 4
goto_if_false @DRUGS3_17553
if 
  not locate_char_any_means_char_2d $scplayer {target} 101@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @DRUGS3_16877
if 
  not is_char_on_screen 101@
goto_if_false @DRUGS3_16877
print_now 'CSH3_55' {time} 5000 {flag} 1
goto @DRUGS3_19343

:DRUGS3_16877
if 
  2 > 182@
goto_if_false @DRUGS3_17553
if 
  182@ == 1
goto_if_false @DRUGS3_16970
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_16970
$car = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_lvar $car == 54@
goto_if_false @DRUGS3_16970
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_16970
if 
  182@ == 0
goto_if_false @DRUGS3_17185
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17171
if 
  locate_car_2d 54@ {x} 2190.0701 {y} -2269.8 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @DRUGS3_17150
if 
  not is_char_in_car $scplayer {vehicle} 54@
goto_if_false @DRUGS3_17129
if 
  184@ == 0
goto_if_false @DRUGS3_17108
clear_char_tasks 101@
task_enter_car_as_driver 101@ {vehicle} 54@ {time} -2
182@ = 1
goto @DRUGS3_17122

:DRUGS3_17108
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17122
goto @DRUGS3_17143

:DRUGS3_17129
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17143
goto @DRUGS3_17164

:DRUGS3_17150
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17164
goto @DRUGS3_17185

:DRUGS3_17171
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17185
if 
  182@ == 1
goto_if_false @DRUGS3_17421
if 
  184@ == 0
goto_if_false @DRUGS3_17407
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17400
if 
  is_char_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_17400
if 
  locate_char_any_means_char_2d 101@ {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @DRUGS3_17400
print_now 'CSH3_54' {time} 5000 {flag} 1
set_char_health 101@ {health} 100
set_char_suffers_critical_hits 101@ {state} True
car_goto_coordinates 54@ {x} 2246.6101 {y} -2204.78 {z} 13.65
set_car_cruise_speed 54@ {maxSpeed} 20.0
set_car_driving_style 54@ {drivingStyle} DrivingMode.AvoidCars
switch_roads_off 2203.8 {leftBottomY} -2174.6299 {leftBottomZ} 0.0 {rightTopX} 2279.2 {rightTopY} -2234.6299 {rightTopZ} 18.21
183@ = 1
182@ = 2

:DRUGS3_17400
goto @DRUGS3_17421

:DRUGS3_17407
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17421
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17539
if 
  184@ == 0
goto_if_false @DRUGS3_17488
if 
  is_char_in_car $scplayer {vehicle} 54@
goto_if_false @DRUGS3_17488
gosub @DRUGS3_18627
184@ = 1

:DRUGS3_17488
if 
  184@ == 1
goto_if_false @DRUGS3_17532
if 
  not is_char_in_car $scplayer {vehicle} 54@
goto_if_false @DRUGS3_17532
184@ = 0

:DRUGS3_17532
goto @DRUGS3_17553

:DRUGS3_17539
gosub @DRUGS3_18627
182@ = 2

:DRUGS3_17553
if 
  183@ == 1
goto_if_false @DRUGS3_17649
if 
  not is_char_sitting_in_any_car 101@
goto_if_false @DRUGS3_17649
task_smart_flee_char 101@ {threat} $scplayer {radius} 300.0 {time} 500000
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17642
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_17642
stop_playback_recorded_car 54@

:DRUGS3_17642
183@ = 2

:DRUGS3_17649
if 
  182@ == 2
goto_if_false @DRUGS3_17854
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_17854
if 
  is_char_sitting_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_17854
if 
  locate_car_2d 54@ {x} 2246.6101 {y} -2204.78 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS3_17854
mark_char_as_no_longer_needed 83@
mark_char_as_no_longer_needed 84@
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 88@
mark_char_as_no_longer_needed 89@
mark_char_as_no_longer_needed 90@
mark_car_as_no_longer_needed 60@
car_set_idle 54@
start_playback_recorded_car_using_ai 54@ {pathId} 342
set_playback_speed 54@ {speed} 0.85
switch_roads_off 2203.8 {leftBottomY} -2174.6299 {leftBottomZ} 0.0 {rightTopX} 2279.2 {rightTopY} -2234.6299 {rightTopZ} 18.21
187@ = 1
182@ = 3

:DRUGS3_17854
if 
  182@ == 3
goto_if_false @DRUGS3_18071
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_18071
if 
  is_char_sitting_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_18071
if 
  187@ == 1
goto_if_false @DRUGS3_17989
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_17989
if 
  not locate_char_any_means_char_2d 101@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @DRUGS3_17989
set_playback_speed 54@ {speed} 0.4
187@ = 2

:DRUGS3_17989
if 
  187@ == 2
goto_if_false @DRUGS3_18071
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_18071
if 
  locate_char_any_means_char_2d 101@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @DRUGS3_18071
set_playback_speed 54@ {speed} 0.85
187@ = 1

:DRUGS3_18071
if 
  182@ == 3
goto_if_false @DRUGS3_18210
if 
  not is_car_dead 54@
goto_if_false @DRUGS3_18210
if 
  is_char_sitting_in_car 101@ {vehicle} 54@
goto_if_false @DRUGS3_18210
if 
  locate_car_2d 54@ {x} 1440.92 {y} -1594.59 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DRUGS3_18210
if 
  is_playback_going_on_for_car 54@
goto_if_false @DRUGS3_18188
stop_playback_recorded_car 54@
car_set_idle 54@

:DRUGS3_18188
task_car_drive_wander 101@ {vehicle} 54@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
182@ = 4

:DRUGS3_18210
if 
  173@ > 1
goto_if_false @DRUGS3_18446
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_18446
gosub @DRUGS3_18495
if 
  180@ == 0
goto_if_false @DRUGS3_18316
if 
  181@ == 0
goto_if_false @DRUGS3_18316
set_lvar_int_to_constant 80@ = 11004
set_lvar_text_label 81@s = 'CRA3_DB'
gosub @DRUGS3_18453

:DRUGS3_18316
if 
  180@ == 1
goto_if_false @DRUGS3_18381
if 
  181@ == 0
goto_if_false @DRUGS3_18381
set_lvar_int_to_constant 80@ = 11005
set_lvar_text_label 81@s = 'CRA3_DC'
gosub @DRUGS3_18453

:DRUGS3_18381
if 
  180@ == 2
goto_if_false @DRUGS3_18446
if 
  181@ == 0
goto_if_false @DRUGS3_18446
set_lvar_int_to_constant 80@ = 11006
set_lvar_text_label 81@s = 'CRA3_DD'
gosub @DRUGS3_18453

:DRUGS3_18446
goto @DRUGS3_850

:DRUGS3_18453
if 
  181@ == 0
goto_if_false @DRUGS3_18493
load_mission_audio MissionAudioSlot.Slot1 {audioId} 80@
set_lvar_text_label 78@s = 81@s
181@ = 1

:DRUGS3_18493
return 

:DRUGS3_18495
if 
  181@ == 1
goto_if_false @DRUGS3_18572
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS3_18572
print_now 78@s {time} 4000 {flag} 1
if 
  not is_char_dead 101@
goto_if_false @DRUGS3_18561
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 101@

:DRUGS3_18561
play_mission_audio MissionAudioSlot.Slot1
181@ = 2

:DRUGS3_18572
if 
  181@ == 2
goto_if_false @DRUGS3_18625
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS3_18625
180@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
181@ = 0

:DRUGS3_18625
return 

:DRUGS3_18627
set_char_health 101@ {health} 100
set_char_max_health 101@ {maxHealth} 100
114@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2191.4221 {y} -2183.429 {z} 13.55 {speed} MoveState.Run {time} -2
task_smart_flee_char -1 {threat} $scplayer {radius} 300.0 {time} 500000
close_sequence_task 114@
perform_sequence_task 101@ {sequence} 114@
clear_sequence_task 114@
return 

:DRUGS3_18706
124@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 124@
perform_sequence_task 112@ {sequence} 124@
clear_sequence_task 124@
return 

:DRUGS3_18761
125@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 119@ {y} 120@ {z} 121@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 125@
perform_sequence_task 112@ {sequence} 125@
clear_sequence_task 125@
return 

:DRUGS3_18833
123@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 123@
perform_sequence_task 112@ {sequence} 123@
clear_sequence_task 123@
return 

:DRUGS3_18882
122@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 122@
perform_sequence_task 112@ {sequence} 122@
clear_sequence_task 122@
return 

:DRUGS3_18926
129@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 129@
perform_sequence_task 112@ {sequence} 129@
clear_sequence_task 129@
return 

:DRUGS3_18964
128@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 116@ {y} 117@ {z} 118@ {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 112@ {sequence} 128@
clear_sequence_task 128@
return 

:DRUGS3_19036
127@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 112@ {sequence} 127@
clear_sequence_task 127@
return 

:DRUGS3_19119
126@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 1500
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 126@ {state} True
close_sequence_task 126@
perform_sequence_task 112@ {sequence} 126@
clear_sequence_task 126@
return 

:DRUGS3_19343
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRUGS3_19361
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'CRASH_3'
$flag_crash_mission_counter += 1
remove_blip $crash_contact_blip
return 

:DRUGS3_19417
if 
  not is_car_dead $car
goto_if_false @DRUGS3_19448
set_car_proofs $car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRUGS3_19448
if 
  does_object_exist 50@
goto_if_false @DRUGS3_19469
delete_object 50@

:DRUGS3_19469
if 
  does_object_exist 34@
goto_if_false @DRUGS3_19490
delete_object 35@

:DRUGS3_19490
if 
  does_object_exist 36@
goto_if_false @DRUGS3_19511
delete_object 37@

:DRUGS3_19511
if 
  does_object_exist 38@
goto_if_false @DRUGS3_19532
delete_object 39@

:DRUGS3_19532
if 
  does_object_exist 40@
goto_if_false @DRUGS3_19553
delete_object 41@

:DRUGS3_19553
if 
  does_object_exist 50@
goto_if_false @DRUGS3_19574
delete_object 50@

:DRUGS3_19574
if 
  does_object_exist 51@
goto_if_false @DRUGS3_19595
delete_object 51@

:DRUGS3_19595
switch_roads_on 2203.8 {leftBottomY} -2174.6299 {leftBottomZ} 0.0 {rightTopX} 2279.2 {rightTopY} -2234.6299 {rightTopZ} 18.21
remove_blip 137@
remove_blip 138@
remove_animation "SWAT"
remove_animation "DODGE"
remove_pickup 133@
remove_pickup 134@
remove_pickup 135@
delete_object 102@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
mark_car_as_no_longer_needed 60@
mark_car_as_no_longer_needed 61@
remove_pickup 136@
remove_char_elegantly 83@
remove_char_elegantly 84@
remove_char_elegantly 85@
remove_char_elegantly 86@
remove_char_elegantly 87@
remove_char_elegantly 88@
remove_char_elegantly 89@
remove_char_elegantly 90@
remove_char_elegantly 92@
remove_char_elegantly 93@
remove_char_elegantly 94@
remove_char_elegantly 95@
remove_char_elegantly 96@
remove_char_elegantly 97@
remove_char_elegantly 98@
set_wanted_multiplier 1.0
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #BARREL4
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #KMB_RAMP
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed #IMCMPTRKDRL_LAS
mark_model_as_no_longer_needed #IMCMPTRKDRR_LAS
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed #IMY_BBOX
mark_model_as_no_longer_needed 461
unload_special_character 1
if 
  not is_car_dead 55@
goto_if_false @DRUGS3_19886
set_can_burst_car_tyres 55@ {state} True

:DRUGS3_19886
if 
  not is_car_dead 60@
goto_if_false @DRUGS3_19909
set_can_burst_car_tyres 60@ {state} True

:DRUGS3_19909
if 
  not is_car_dead $car
goto_if_false @DRUGS3_19940
set_car_proofs $car {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False

:DRUGS3_19940
$timer_mobile_start = get_game_timer 
switch_emergency_services True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 24---------------
// Originally: Home Invasion

:GUNS1
script_name 'GUNS1'
gosub @GUNS1_47
if 
  has_deatharrest_been_executed 
goto_if_false @GUNS1_38
gosub @GUNS1_40642

:GUNS1_38
gosub @GUNS1_40737
terminate_this_script 

:GUNS1_47
register_mission_given 
$onmission = 1
wait 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GUNS1_75
if 
  get_fading_status 
goto_if_false @GUNS1_99
wait 0
goto @GUNS1_75

:GUNS1_99
force_weather WeatherType.SunnyLa
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_148
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GUNS1_148
load_mission_text 'RYDER1'
load_cutscene 'RYDER1A'

:GUNS1_170
if 
  not has_cutscene_loaded 
goto_if_false @GUNS1_194
wait 0
goto @GUNS1_170

:GUNS1_194
clear_area 2464.0 {y} -1714.0 {z} 14.0 {radius} 100.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:GUNS1_227
if 
  not has_cutscene_finished 
goto_if_false @GUNS1_251
wait 0
goto @GUNS1_227

:GUNS1_251
do_fade 0 {direction} Fade.Out

:GUNS1_257
if 
  get_fading_status 
goto_if_false @GUNS1_281
wait 0
goto @GUNS1_257

:GUNS1_281
release_weather 
clear_cutscene 
set_player_control $player1 {state} False
39@ = load_char_decision_maker DecisionMakerType.Tough
41@ = copy_char_decision_maker 39@
40@ = load_char_decision_maker DecisionMakerType.Empty
change_garage_type 'BURG_LK' {type} GarageType.ForScriptToOpenAndClose
42@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker $Players_Group {handleOrTemplate} 42@
clear_group_decision_maker_event_response 42@ {event} Event.LeaderEnteredCarAsDriver
clear_group_decision_maker_event_response 42@ {event} Event.LeaderExitedCarAsDriver
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
56@ = 0
58@ = 0
59@ = 0
35@ = 0
60@ = 0
61@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
34@ = 0
94@ = 0
$ryd1_noise_bar = 0
96@ = 0
68@ = 0
69@ = 0
36@ = 0
38@ = 0
70@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
43@ = 0
44@ = 0
46@ = 0
77@ = 0
95@ = 0
167@ = 0.0
166@ = 0.0
47@ = 0
48@ = 2
50@ = 0
78@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
97@ = 0
79@ = 0
80@ = 0
$ryd1_time_to_daylight = 0
132@ = 2809.0
139@ = -1168.0
146@ = 1024.572
133@ = 2820.033
140@ = -1165.8361
147@ = 1024.696
134@ = 2819.54
141@ = -1170.556
148@ = 1028.297
135@ = 2817.021
142@ = -1165.202
149@ = 1028.3051
136@ = 2812.656
143@ = -1168.58
150@ = 1028.297
137@ = 2812.6111
144@ = -1172.7321
151@ = 1024.6949
138@ = 2803.6799
145@ = -1161.312
152@ = 1028.3051
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
171@ = 0
if 
  52@ == 999999
goto_if_false @GUNS1_1040
108@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:GUNS1_1040
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
set_var_text_label s$ryd1_text[1] = 'RYD1_AA'
set_var_text_label s$ryd1_text[2] = 'RYD1_AB'
set_var_text_label s$ryd1_text[3] = 'RYD1_AC'
set_var_text_label s$ryd1_text[4] = 'RYD1_AD'
set_var_text_label s$ryd1_text[5] = 'RYD1_AE'
set_var_text_label s$ryd1_text[6] = 'RYD1_AF'
set_var_text_label s$ryd1_text[7] = 'RYD1_AG'
set_var_text_label s$ryd1_text[8] = 'RYD1_AH'
set_var_text_label s$ryd1_text[9] = 'RYD1_AJ'
set_var_text_label s$ryd1_text[10] = 'RYD1_BA'
set_var_text_label s$ryd1_text[11] = 'RYD1_BB'
set_var_text_label s$ryd1_text[12] = 'RYD1_BC'
set_var_text_label s$ryd1_text[13] = 'RYD1_BD'
set_var_text_label s$ryd1_text[14] = 'RYD1_BE'
set_var_text_label s$ryd1_text[15] = 'RYD1_BF'
set_var_text_label s$ryd1_text[16] = 'RYD1_CA'
set_var_text_label s$ryd1_text[17] = 'RYD1_CB'
set_var_text_label s$ryd1_text[18] = 'RYD1_CC'
set_var_text_label s$ryd1_text[19] = 'RYD1_CD'
set_var_text_label s$ryd1_text[20] = 'RYD1_CE'
set_var_text_label s$ryd1_text[21] = 'RYD1_CF'
set_var_text_label s$ryd1_text[22] = 'RYD1_ZA'
set_var_text_label s$ryd1_text[23] = 'RYD1_ZB'
set_var_text_label s$ryd1_text[24] = 'RYD1_ZC'
set_var_text_label s$ryd1_text[25] = 'RYD1_ZD'
set_var_text_label s$ryd1_text[26] = 'RYD1_ZE'
set_var_text_label s$ryd1_text[27] = 'RYD1_ZF'
set_var_text_label s$ryd1_text[28] = 'RYD1_ZG'
set_var_text_label s$ryd1_text[29] = 'RYD1_ZH'
set_var_text_label s$ryd1_text[30] = 'RYD1_ZJ'
set_var_text_label s$ryd1_text[31] = 'RYD1_ZK'
set_var_text_label s$ryd1_text[32] = 'RYD1_ZL'
set_var_text_label s$ryd1_text[33] = 'RYD1_ZM'
set_var_text_label s$ryd1_text[34] = 'RYD1_ZN'
set_var_text_label s$ryd1_text[35] = 'RYD1_DA'
set_var_text_label s$ryd1_text[36] = 'RYD1_DB'
set_var_text_label s$ryd1_text[37] = 'RYD1_DC'
set_var_text_label s$ryd1_text[38] = 'RYD1_DD'
set_var_text_label s$ryd1_text[39] = 'RYD1_DE'
set_var_text_label s$ryd1_text[40] = 'RYD1_DF'
set_var_text_label s$ryd1_text[41] = 'RYD1_DG'
set_var_text_label s$ryd1_text[42] = 'RYD1_DH'
set_var_text_label s$ryd1_text[43] = 'RYD1_DJ'
set_var_text_label s$ryd1_text[44] = 'RYD1_DK'
set_var_text_label s$ryd1_text[45] = 'RYD1_DL'
set_var_text_label s$ryd1_text[46] = 'RYD1_EA'
set_var_text_label s$ryd1_text[47] = 'RYD1_EB'
set_var_text_label s$ryd1_text[48] = 'RYD1_EC'
set_var_text_label s$ryd1_text[49] = 'RYD1_ED'
set_var_text_label s$ryd1_text[50] = 'RYD1_FA'
set_var_text_label s$ryd1_text[51] = 'RYD1_FB'
set_var_text_label s$ryd1_text[52] = 'RYD1_FC'
set_var_text_label s$ryd1_text[53] = 'RYD1_GA'
set_var_text_label s$ryd1_text[54] = 'RYD1_GB'
set_var_text_label s$ryd1_text[55] = 'RYD1_GC'
set_var_text_label s$ryd1_text[56] = 'RYD1_GD'
set_var_text_label s$ryd1_text[57] = 'RYD1_GE'
set_var_text_label s$ryd1_text[58] = 'RYD1_GF'
set_var_text_label s$ryd1_text[59] = 'RYD1_GG'
set_var_text_label s$ryd1_text[60] = 'RYD1_GH'
set_var_text_label s$ryd1_text[61] = 'RYD1_GJ'
set_var_text_label s$ryd1_text[62] = 'RYD1_GK'
set_var_text_label s$ryd1_text[63] = 'RYD1_GL'
set_var_text_label s$ryd1_text[64] = 'RYD1_HA'
set_var_text_label s$ryd1_text[65] = 'RYD1_HB'
set_var_text_label s$ryd1_text[66] = 'RYD1_JA'
set_var_text_label s$ryd1_text[67] = 'RYD1_JB'
set_var_text_label s$ryd1_text[68] = 'RYD1_KA'
set_var_text_label s$ryd1_text[69] = 'RYD1_KB'
set_var_text_label s$ryd1_text[70] = 'RYD1_KC'
set_var_text_label s$ryd1_text[71] = 'RYD1_KD'
set_var_text_label s$ryd1_text[72] = 'RYD1_KE'
set_var_text_label s$ryd1_text[73] = 'RYD1_KF'
set_var_text_label s$ryd1_text[74] = 'RYD1_KG'
set_var_text_label s$ryd1_text[75] = 'RYD1_KH'
set_var_text_label s$ryd1_text[76] = 'RYDX_AC'
set_var_text_label s$ryd1_text[77] = 'RYD1_LA'
set_var_text_label s$ryd1_text[78] = 'RYD1_LB'
set_var_text_label s$ryd1_text[79] = 'RYD1_LC'
set_var_text_label s$ryd1_text[80] = 'RYDX_BG'
set_var_text_label s$ryd1_text[81] = 'RYDX_BI'
set_lvar_int_to_constant 173@ = 33600
set_lvar_int_to_constant 174@ = 33601
set_lvar_int_to_constant 175@ = 33602
set_lvar_int_to_constant 176@ = 33603
set_lvar_int_to_constant 177@ = 33604
set_lvar_int_to_constant 178@ = 33605
set_lvar_int_to_constant 179@ = 33606
set_lvar_int_to_constant 180@ = 33607
set_lvar_int_to_constant 181@ = 33608
set_lvar_int_to_constant 182@ = 33609
set_lvar_int_to_constant 183@ = 33610
set_lvar_int_to_constant 184@ = 33611
set_lvar_int_to_constant 185@ = 33612
set_lvar_int_to_constant 186@ = 33613
set_lvar_int_to_constant 187@ = 33614
set_lvar_int_to_constant 188@ = 33615
set_lvar_int_to_constant 189@ = 33616
set_lvar_int_to_constant 190@ = 33617
set_lvar_int_to_constant 191@ = 33618
set_lvar_int_to_constant 192@ = 33619
set_lvar_int_to_constant 193@ = 33620
set_lvar_int_to_constant 194@ = 33664
set_lvar_int_to_constant 195@ = 33665
set_lvar_int_to_constant 196@ = 33666
set_lvar_int_to_constant 197@ = 33667
set_lvar_int_to_constant 198@ = 33668
set_lvar_int_to_constant 199@ = 33669
set_lvar_int_to_constant 200@ = 33670
set_lvar_int_to_constant 201@ = 33671
set_lvar_int_to_constant 202@ = 33672
set_lvar_int_to_constant 203@ = 33673
set_lvar_int_to_constant 204@ = 33674
set_lvar_int_to_constant 205@ = 33675
set_lvar_int_to_constant 206@ = 33676
set_lvar_int_to_constant 207@ = 65535
set_lvar_int_to_constant 208@ = 33621
set_lvar_int_to_constant 209@ = 33622
set_lvar_int_to_constant 210@ = 33623
set_lvar_int_to_constant 211@ = 33624
set_lvar_int_to_constant 212@ = 33625
set_lvar_int_to_constant 213@ = 33626
set_lvar_int_to_constant 214@ = 33627
set_lvar_int_to_constant 215@ = 33628
set_lvar_int_to_constant 216@ = 33629
set_lvar_int_to_constant 217@ = 33630
set_lvar_int_to_constant 218@ = 33631
set_lvar_int_to_constant 219@ = 33632
set_lvar_int_to_constant 220@ = 33633
set_lvar_int_to_constant 221@ = 33634
set_lvar_int_to_constant 222@ = 33635
set_lvar_int_to_constant 223@ = 33636
set_lvar_int_to_constant 224@ = 33637
set_lvar_int_to_constant 225@ = 33638
set_lvar_int_to_constant 226@ = 33639
set_lvar_int_to_constant 227@ = 33640
set_lvar_int_to_constant 228@ = 33641
set_lvar_int_to_constant 229@ = 33642
set_lvar_int_to_constant 230@ = 33643
set_lvar_int_to_constant 231@ = 33644
set_lvar_int_to_constant 232@ = 33645
set_lvar_int_to_constant 233@ = 33646
set_lvar_int_to_constant 234@ = 33647
set_lvar_int_to_constant 235@ = 33648
set_lvar_int_to_constant 236@ = 33649
set_lvar_int_to_constant 237@ = 33650
set_lvar_int_to_constant 238@ = 33651
set_lvar_int_to_constant 239@ = 33652
set_lvar_int_to_constant 240@ = 33653
set_lvar_int_to_constant 241@ = 33654
set_lvar_int_to_constant 242@ = 33655
set_lvar_int_to_constant 243@ = 33656
set_lvar_int_to_constant 244@ = 33657
set_lvar_int_to_constant 245@ = 33658
set_lvar_int_to_constant 246@ = 33659
set_lvar_int_to_constant 247@ = 33660
set_lvar_int_to_constant 248@ = 34202
set_lvar_int_to_constant 249@ = 33661
set_lvar_int_to_constant 250@ = 33662
set_lvar_int_to_constant 251@ = 33663
set_lvar_int_to_constant 252@ = 34227
set_lvar_int_to_constant 253@ = 34229
set_lvar_int_to_constant 274@ = 19600
set_lvar_int_to_constant 275@ = 41800
set_lvar_int_to_constant 276@ = 19601
277@ = 0
278@ = 0
279@ = 0
$disable_mod_garage = 1
if 
  51@ == 0
goto_if_false @GUNS1_4925
$hours, $minutes = get_time_of_day 
77@ = 1
set_time_of_day 22 {minutes} 0
switch_entry_exit 'BURHOUS' {state} False
request_model 609
request_animation "CAR_CHAT"
load_special_character 1 {modelName} 'RYDER2'

:GUNS1_3253
if or
  not has_model_loaded 609
  not has_special_character_loaded 1
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GUNS1_3296
wait 0
goto @GUNS1_3253

:GUNS1_3296
clear_area 2470.656 {y} -1689.649 {z} 12.5198 {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 609 {text} "__SWAG__"
102@ = create_car 609 {x} 2476.6819 {y} -1679.566 {z} 12.3451
set_car_heading 102@ {heading} 48.737
98@ = create_char PedType.Special {modelId} 290 {x} 2475.168 {y} -1686.483 {z} 12.5007
set_char_cant_be_dragged_out 98@ {state} True
set_char_decision_maker 98@ {handleOrTemplate} 39@
clear_char_decision_maker_event_response 39@ {event} Event.Damage
clear_char_decision_maker_event_response 39@ {event} Event.VehicleOnFire
clear_char_decision_maker_event_response 39@ {event} Event.GotKnockedOverByCar
clear_char_decision_maker_event_response 39@ {event} Event.VehicleDamageCollision
clear_char_decision_maker_event_response 39@ {event} Event.VehicleDamageWeapon
add_char_decision_maker_event_response 39@ {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_anim_group_for_char 98@ {animGroup} "GANG1"
set_char_never_targetted 98@ {state} True
set_char_health 98@ {health} 200
set_char_suffers_critical_hits 98@ {state} False
set_car_heading 102@ {heading} 30.0
if 
  77@ == 999
goto_if_false @GUNS1_3555
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True

:GUNS1_3555
clear_prints 
55@ = 1
59@ = 1
53@ = 1
51@ = 1
load_scene 2475.0 {y} -1699.0 {z} 15.0
restore_camera_jumpcut 
set_char_coordinates $scplayer {x} 2473.4829 {y} -1686.599 {z} 12.5154
set_char_heading $scplayer {heading} 14.9748
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2473.5271 {y} -1680.036 {z} 12.3551 {speed} MoveState.Walk {time} 6000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 102@ {time} 5000
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
set_char_heading 98@ {heading} 349.379
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2480.925 {y} -1682.348 {z} 12.3381 {speed} MoveState.Run {time} 6000
task_go_straight_to_coord -1 {x} 2478.3049 {y} -1677.0601 {z} 12.3478 {speed} MoveState.Run {time} 6000
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 3000 {seat} SeatId.BikeRear
close_sequence_task 129@
perform_sequence_task 98@ {sequence} 129@
clear_sequence_task 129@
set_fixed_camera_position 2470.3831 {y} -1675.816 {z} 13.2161 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2471.166 {y} -1676.424 {z} 13.347 {switchStyle} SwitchType.JumpCut
switch_widescreen True
clear_area 2470.656 {y} -1689.649 {z} 12.5198 {radius} 100.0 {clearParticles} True
set_time_of_day 22 {minutes} 0
do_fade 1000 {direction} Fade.In

:GUNS1_3880
if 
  get_fading_status 
goto_if_false @GUNS1_3904
wait 0
goto @GUNS1_3880

:GUNS1_3904
skip_cutscene_start_internal @GUNS1_4448
TIMERA = 0
52@ = 0
254@ = 76
255@ = 1
256@ = 2
257@ = 0
263@ = 0

:GUNS1_3960
if 
  52@ == 0
goto_if_false @GUNS1_4448
if 
  254@ <> 0
goto_if_false @GUNS1_4317
if 
  257@ == 0
goto_if_false @GUNS1_4042
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_4035
clear_mission_audio 256@

:GUNS1_4035
257@ = 1

:GUNS1_4042
if 
  257@ == 1
goto_if_false @GUNS1_4079
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_4079
if 
  257@ == 2
goto_if_false @GUNS1_4139
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_4139
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_4139
if 
  257@ == 3
goto_if_false @GUNS1_4317
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_4256
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_4221
255@ = 2
256@ = 1
goto @GUNS1_4235

:GUNS1_4221
255@ = 1
256@ = 2

:GUNS1_4235
254@ = 0
257@ = 0
goto @GUNS1_4317

:GUNS1_4256
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_4317
if 
  76 > 254@
goto_if_false @GUNS1_4317
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_4317
if 
  TIMERA > 15000
goto_if_false @GUNS1_4343
52@ = 1

:GUNS1_4343
if 
  not is_char_dead 98@
goto_if_false @GUNS1_4430
if 
  not is_car_dead 102@
goto_if_false @GUNS1_4416
if and
  is_char_sitting_in_car 98@ {vehicle} 102@
  is_char_sitting_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_4409
52@ = 1

:GUNS1_4409
goto @GUNS1_4423

:GUNS1_4416
52@ = 1

:GUNS1_4423
goto @GUNS1_4437

:GUNS1_4430
52@ = 1

:GUNS1_4437
wait 0
goto @GUNS1_3960

:GUNS1_4448
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
if 
  77@ == 1
goto_if_false @GUNS1_4766
set_everyone_ignore_player $player1 {state} True
clear_mission_audio 255@
clear_mission_audio 256@
clear_prints 
freeze_onscreen_timer False
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
do_fade 1000 {direction} Fade.Out

:GUNS1_4578
if 
  get_fading_status 
goto_if_false @GUNS1_4602
wait 0
goto @GUNS1_4578

:GUNS1_4602
if 
  not is_car_dead 102@
goto_if_false @GUNS1_4690
if 
  not is_char_dead 98@
goto_if_false @GUNS1_4690
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_4663
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_4663
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_4690
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_4690
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
make_room_in_player_gang_for_mission_peds 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_4766
if 
  not is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_4766
set_script_limit_to_gang_size 1
set_group_member $Players_Group {handle} 98@
set_group_follow_status $Players_Group {state} False
listen_to_player_group_commands 98@ {state} False

:GUNS1_4766
restore_camera_jumpcut 
switch_widescreen False
clear_prints 
set_time_of_day 22 {minutes} 0
remove_animation "CAR_CHAT"
set_everyone_ignore_player $player1 {state} False
store_clothes_state 
88@ = 1
give_player_clothes_outside_shop $player1 {textureName} "BALACLAVA" {modelName} "BALACLAVA" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
clear_this_big_print 'BOXBURG'
print 'GUNS130' {time} 5000 {flag} 1
do_fade 1000 {direction} Fade.In

:GUNS1_4876
if 
  get_fading_status 
goto_if_false @GUNS1_4900
wait 0
goto @GUNS1_4876

:GUNS1_4900
set_player_control $player1 {state} True
if 
  $played_ryder1_before == 1
goto_if_false @GUNS1_4925

:GUNS1_4925
wait 0
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @GUNS1_4975
goto @GUNS1_40660
99@ = create_char PedType.Mission1 {modelId} 62 {x} 2817.269 {y} -1169.875 {z} 28.272

:GUNS1_4975
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @GUNS1_5010
set_char_coordinates $scplayer {x} 2834.0 {y} -1182.0 {z} 25.0

:GUNS1_5010
if 
is_ps2_keyboard_key_pressed 50
goto_if_false @GUNS1_5045
set_char_coordinates $scplayer {x} 2492.0 {y} -1666.0 {z} 12.0

:GUNS1_5045
if 
is_ps2_keyboard_key_pressed 52
goto_if_false @GUNS1_5067
35@ = 4

:GUNS1_5067
if 
is_ps2_keyboard_key_pressed 51
goto_if_false @GUNS1_5089
51@ = 8

:GUNS1_5089
if 
is_ps2_keyboard_key_pressed 99
goto_if_false @GUNS1_5114
$ryd1_time_to_daylight = 6000000

:GUNS1_5114
if 
is_ps2_keyboard_key_pressed 48
goto_if_false @GUNS1_5137
$ryd1_time_to_daylight = 5000

:GUNS1_5137
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @GUNS1_5159
goto @GUNS1_40660

:GUNS1_5159
if 
  53@ == 1
goto_if_false @GUNS1_5564
if 
  is_char_dead 98@
goto_if_false @GUNS1_5325
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_5302
do_fade 1000 {direction} Fade.Out

:GUNS1_5231
if 
  get_fading_status 
goto_if_false @GUNS1_5255
wait 0
goto @GUNS1_5231

:GUNS1_5255
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_5278
if 
  get_fading_status 
goto_if_false @GUNS1_5302
wait 0
goto @GUNS1_5278

:GUNS1_5302
print 'GUNS125' {time} 5000 {flag} 1
goto @GUNS1_40642

:GUNS1_5325
if 
  is_car_dead 102@
goto_if_false @GUNS1_5471
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_5448
do_fade 1000 {direction} Fade.Out

:GUNS1_5377
if 
  get_fading_status 
goto_if_false @GUNS1_5401
wait 0
goto @GUNS1_5377

:GUNS1_5401
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_5424
if 
  get_fading_status 
goto_if_false @GUNS1_5448
wait 0
goto @GUNS1_5424

:GUNS1_5448
print 'GUNS122' {time} 5000 {flag} 1
goto @GUNS1_40642

:GUNS1_5471
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @GUNS1_5564
if 
  8 > 51@
goto_if_false @GUNS1_5564
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_5564
print 'RYD1_37' {time} 5000 {flag} 1
goto @GUNS1_40642

:GUNS1_5564
if and
  51@ == 1
  not is_car_dead 102@
goto_if_false @GUNS1_5670
if 
  is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_5670
remove_blip 104@
55@ = 0
clear_prints 
105@ = add_blip_for_coord 2819.8999 {y} -1181.7 {z} 25.15
print 'GUNS130' {time} 5000 {flag} 1
56@ = 1
51@ = 2

:GUNS1_5670
if 
  51@ == 2
goto_if_false @GUNS1_8410
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_6720
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_6272
if 
  55@ == 0
goto_if_false @GUNS1_5934
if 
  59@ == 0
goto_if_false @GUNS1_5794
if 
  57@ == 1
goto_if_false @GUNS1_5794
remove_blip 108@
57@ = 0

:GUNS1_5794
remove_blip 105@
if 
  57@ == 1
goto_if_false @GUNS1_5829
remove_blip 108@
57@ = 0

:GUNS1_5829
56@ = 0
if 
  is_message_being_displayed 
goto_if_false @GUNS1_5856
44@ = 1

:GUNS1_5856
clear_prints 
print 'GUNS128' {time} 5000 {flag} 1
254@ = 76
257@ = 0
clear_mission_audio 255@
clear_mission_audio 256@
set_player_group_to_follow_never $player1 {state} True
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
55@ = 1
goto @GUNS1_6265

:GUNS1_5934
if 
  254@ <> 0
goto_if_false @GUNS1_6265
if 
  257@ == 0
goto_if_false @GUNS1_5998
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_5991
clear_mission_audio 256@

:GUNS1_5991
257@ = 1

:GUNS1_5998
if 
  257@ == 1
goto_if_false @GUNS1_6035
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_6035
if 
  257@ == 2
goto_if_false @GUNS1_6096
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_6096
attach_mission_audio_to_char 255@ {handle} 98@
play_mission_audio 255@
43@ += 1
257@ = 3

:GUNS1_6096
if 
  257@ == 3
goto_if_false @GUNS1_6265
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_6204
if 
  255@ == 1
goto_if_false @GUNS1_6169
255@ = 2
256@ = 1
goto @GUNS1_6183

:GUNS1_6169
255@ = 1
256@ = 2

:GUNS1_6183
254@ = 0
257@ = 0
goto @GUNS1_6265

:GUNS1_6204
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_6265
if 
  76 > 254@
goto_if_false @GUNS1_6265
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_6265
goto @GUNS1_6416

:GUNS1_6272
if 
  59@ == 1
goto_if_false @GUNS1_6379
if 
  56@ == 0
goto_if_false @GUNS1_6372
set_player_group_to_follow_never $player1 {state} False
remove_blip 104@
55@ = 0
clear_prints 
print 'GUNS130' {time} 5000 {flag} 1
105@ = add_blip_for_coord 2819.8999 {y} -1181.7 {z} 25.15
56@ = 1

:GUNS1_6372
goto @GUNS1_6416

:GUNS1_6379
if 
  55@ == 1
goto_if_false @GUNS1_6416
set_player_group_to_follow_never $player1 {state} False
remove_blip 104@
55@ = 0

:GUNS1_6416
if 
  is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_6511
if 
  59@ == 0
goto_if_false @GUNS1_6504
if 
  57@ == 1
goto_if_false @GUNS1_6483
remove_blip 108@
57@ = 0

:GUNS1_6483
59@ = 1
58@ = 0
59@ = 1

:GUNS1_6504
goto @GUNS1_6720

:GUNS1_6511
if 
  59@ == 1
goto_if_false @GUNS1_6536
59@ = 0

:GUNS1_6536
if and
  57@ == 0
  55@ == 0
goto_if_false @GUNS1_6633
remove_blip 105@
56@ = 0
108@ = add_blip_for_char 98@
set_blip_as_friendly 108@ {state} True
if 
  is_message_being_displayed 
goto_if_false @GUNS1_6608
44@ = 1

:GUNS1_6608
clear_prints 
print 'GUNS143' {time} 5000 {flag} 1
57@ = 1

:GUNS1_6633
if 
  58@ == 0
goto_if_false @GUNS1_6677
task_enter_car_as_passenger 98@ {vehicle} 102@ {time} -2 {seat} SeatId.BikeRear
58@ = 1
goto @GUNS1_6720

:GUNS1_6677
38@ = get_script_task_status 98@ {taskId} 1482
if and
  not is_int_lvar_equal_to_constant 38@ == 0
  not is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_6720
58@ = 0

:GUNS1_6720
if and
  59@ == 1
  56@ == 1
goto_if_false @GUNS1_8248
if 
  44@ == 1
goto_if_false @GUNS1_6836
if 
  8 > 43@
goto_if_false @GUNS1_6836
print 'GUNS135' {time} 4000 {flag} 1
43@ -= 1
if 
  0 > 43@
goto_if_false @GUNS1_6829
43@ = 0

:GUNS1_6829
44@ = 0

:GUNS1_6836
if 
  44@ == 0
goto_if_false @GUNS1_8248
if 
  258@ == 0
goto_if_false @GUNS1_8248
if 
  254@ <> 0
goto_if_false @GUNS1_7218
if 
  257@ == 0
goto_if_false @GUNS1_6936
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_6929
clear_mission_audio 256@

:GUNS1_6929
257@ = 1

:GUNS1_6936
if 
  257@ == 1
goto_if_false @GUNS1_6973
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_6973
if 
  257@ == 2
goto_if_false @GUNS1_7040
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_7040
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
43@ += 1
257@ = 3

:GUNS1_7040
if 
  257@ == 3
goto_if_false @GUNS1_7218
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_7157
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_7122
255@ = 2
256@ = 1
goto @GUNS1_7136

:GUNS1_7122
255@ = 1
256@ = 2

:GUNS1_7136
254@ = 0
257@ = 0
goto @GUNS1_7218

:GUNS1_7157
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_7218
if 
  76 > 254@
goto_if_false @GUNS1_7218
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_7218
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_8248
switch_start 259@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @GUNS1_8125 {caseNum1} 0 {caseLabel1} @GUNS1_7359 {caseNum2} 1 {caseLabel2} @GUNS1_7441 {caseNum3} 2 {caseLabel3} @GUNS1_7525 {caseNum4} 3 {caseLabel4} @GUNS1_7633 {caseNum5} 4 {caseLabel5} @GUNS1_7741 {caseNum6} 5 {caseLabel6} @GUNS1_7825 {caseNum7} 6 {caseLabel7} @GUNS1_7933
switch_continued 7 {caseLabel1} @GUNS1_8017 {caseNum2} -1 {caseLabel2} @GUNS1_8248 {caseNum3} -1 {caseLabel3} @GUNS1_8248 {caseNum4} -1 {caseLabel4} @GUNS1_8248 {caseNum5} -1 {caseLabel5} @GUNS1_8248 {caseNum6} -1 {caseLabel6} @GUNS1_8248 {caseNum7} -1 {caseLabel7} @GUNS1_8248 {caseNum8} -1 {caseLabel8} @GUNS1_8248 {caseNum9} -1 {caseLabel9} @GUNS1_8248

:GUNS1_7359
if 
  257@ == 0
goto_if_false @GUNS1_7434
254@ = 2
259@ = 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7429
start_char_facial_talk 98@ {duration} 5000
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_7429
262@ = get_game_timer 

:GUNS1_7434
goto @GUNS1_8248

:GUNS1_7441
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7518
if 
  257@ == 0
goto_if_false @GUNS1_7518
254@ = 3
259@ = 2
262@ = get_game_timer 

:GUNS1_7518
goto @GUNS1_8248

:GUNS1_7525
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7626
if 
  257@ == 0
goto_if_false @GUNS1_7626
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7607
start_char_facial_talk 98@ {duration} 4000

:GUNS1_7607
254@ = 4
259@ = 3
262@ = get_game_timer 

:GUNS1_7626
goto @GUNS1_8248

:GUNS1_7633
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7734
if 
  257@ == 0
goto_if_false @GUNS1_7734
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7715
start_char_facial_talk 98@ {duration} 4000

:GUNS1_7715
254@ = 5
259@ = 4
262@ = get_game_timer 

:GUNS1_7734
goto @GUNS1_8248

:GUNS1_7741
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7818
if 
  257@ == 0
goto_if_false @GUNS1_7818
254@ = 6
259@ = 5
262@ = get_game_timer 

:GUNS1_7818
goto @GUNS1_8248

:GUNS1_7825
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_7926
if 
  257@ == 0
goto_if_false @GUNS1_7926
254@ = 7
259@ = 6
if 
  not is_char_dead 98@
goto_if_false @GUNS1_7921
start_char_facial_talk 98@ {duration} 3000

:GUNS1_7921
262@ = get_game_timer 

:GUNS1_7926
goto @GUNS1_8248

:GUNS1_7933
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_8010
if 
  257@ == 0
goto_if_false @GUNS1_8010
254@ = 8
259@ = 7
262@ = get_game_timer 

:GUNS1_8010
goto @GUNS1_8248

:GUNS1_8017
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_8118
if 
  257@ == 0
goto_if_false @GUNS1_8118
254@ = 9
259@ = 8
if 
  not is_char_dead 98@
goto_if_false @GUNS1_8113
start_char_facial_talk 98@ {duration} 3000

:GUNS1_8113
262@ = get_game_timer 

:GUNS1_8118
goto @GUNS1_8248

:GUNS1_8125
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_8241
if 
  257@ == 0
goto_if_false @GUNS1_8241
258@ = 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_8225
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk 98@

:GUNS1_8225
print 'GUNS130' {time} 5000 {flag} 1

:GUNS1_8241
goto @GUNS1_8248

:GUNS1_8248
if and
  59@ == 1
  56@ == 1
goto_if_false @GUNS1_8410
if 
  locate_char_in_car_3d $scplayer {x} 2819.8999 {y} -1181.7 {z} 25.15 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.5 {drawSphere} True
goto_if_false @GUNS1_8410
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
remove_blip 105@
56@ = 0
44@ = 0
set_police_ignore_player $player1 {state} True
clear_prints 
clear_area 2819.8999 {y} -1181.7 {z} 25.15 {radius} 30.0 {clearParticles} True
51@ = 3

:GUNS1_8410
if and
  4 > 51@
  80@ == 1
goto_if_false @GUNS1_8590
if 
  $ryd1_time_to_daylight == 0
goto_if_false @GUNS1_8590
clear_prints 
clear_char_tasks $scplayer
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_8567
do_fade 1000 {direction} Fade.Out

:GUNS1_8496
if 
  get_fading_status 
goto_if_false @GUNS1_8520
wait 0
goto @GUNS1_8496

:GUNS1_8520
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_8543
if 
  get_fading_status 
goto_if_false @GUNS1_8567
wait 0
goto @GUNS1_8543

:GUNS1_8567
print 'RYD1_35' {time} 5000 {flag} 1
goto @GUNS1_40642

:GUNS1_8590
if 
  51@ == 3
goto_if_false @GUNS1_11412
if 
  $played_ryder1_before == 0
goto_if_false @GUNS1_8633
$played_ryder1_before = 1

:GUNS1_8633
set_player_control $player1 {state} False
switch_widescreen True
freeze_onscreen_timer True
skip_cutscene_start_internal @GUNS1_10796
set_fixed_camera_position 2798.645 {y} -1190.165 {z} 31.8647 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2799.488 {y} -1189.684 {z} 31.6214 {switchStyle} SwitchType.JumpCut
clear_prints 
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_8778
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_10796
if 
  254@ <> 0
goto_if_false @GUNS1_9139
if 
  257@ == 0
goto_if_false @GUNS1_8864
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_8857
clear_mission_audio 256@

:GUNS1_8857
257@ = 1

:GUNS1_8864
if 
  257@ == 1
goto_if_false @GUNS1_8901
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_8901
if 
  257@ == 2
goto_if_false @GUNS1_8961
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_8961
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_8961
if 
  257@ == 3
goto_if_false @GUNS1_9139
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_9078
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_9043
255@ = 2
256@ = 1
goto @GUNS1_9057

:GUNS1_9043
255@ = 1
256@ = 2

:GUNS1_9057
254@ = 0
257@ = 0
goto @GUNS1_9139

:GUNS1_9078
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_9139
if 
  76 > 254@
goto_if_false @GUNS1_9139
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_9139
switch_start 259@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @GUNS1_10717 {caseNum1} 0 {caseLabel1} @GUNS1_9202 {caseNum2} 1 {caseLabel2} @GUNS1_9320 {caseNum3} 2 {caseLabel3} @GUNS1_9483 {caseNum4} 3 {caseLabel4} @GUNS1_9619 {caseNum5} 4 {caseLabel5} @GUNS1_10172 {caseNum6} 5 {caseLabel6} @GUNS1_10395 {caseNum7} 6 {caseLabel7} @GUNS1_10583

:GUNS1_9202
if 
  257@ == 0
goto_if_false @GUNS1_9313
254@ = 10
259@ = 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9308
start_char_facial_talk 98@ {duration} 4000
125@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2809.281 {y} -1181.609 {z} 24.6181 {speed} MoveState.Walk {time} -1
close_sequence_task 125@
perform_sequence_task 98@ {sequence} 125@
clear_sequence_task 125@

:GUNS1_9308
262@ = get_game_timer 

:GUNS1_9313
goto @GUNS1_10789

:GUNS1_9320
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_9476
if 
  257@ == 0
goto_if_false @GUNS1_9476
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9407
stop_char_facial_talk 98@
start_char_facial_talk $scplayer {duration} 5000

:GUNS1_9407
124@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2808.1189 {y} -1182.255 {z} 24.6181 {speed} MoveState.Walk {time} -1
close_sequence_task 124@
perform_sequence_task $scplayer {sequence} 124@
clear_sequence_task 124@
254@ = 11
259@ = 2
262@ = get_game_timer 

:GUNS1_9476
goto @GUNS1_10789

:GUNS1_9483
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_9612
if 
  257@ == 0
goto_if_false @GUNS1_9612
if 
  not is_char_dead 98@
goto_if_false @GUNS1_9570
stop_char_facial_talk $scplayer
start_char_facial_talk 98@ {duration} 4000

:GUNS1_9570
254@ = 12
request_animation "ON_LOOKERS"
request_animation "GANGS"
259@ = 3
262@ = get_game_timer 

:GUNS1_9612
goto @GUNS1_10789

:GUNS1_9619
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10165
if 
  257@ == 0
goto_if_false @GUNS1_10165

:GUNS1_9677
if or
  not has_animation_loaded "ON_LOOKERS"
  not has_animation_loaded "GANGS"
goto_if_false @GUNS1_9722
wait 0
goto @GUNS1_9677

:GUNS1_9722
if 
  73@ == 0
goto_if_false @GUNS1_9949
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_9949
if and
  not is_char_in_car $scplayer {vehicle} 102@
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_9949
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 98@
set_char_coordinates $scplayer {x} 2808.1189 {y} -1182.255 {z} 24.3693
set_char_heading $scplayer {heading} 353.059
set_char_coordinates 98@ {x} 2809.281 {y} -1181.609 {z} 24.3693
set_char_heading 98@ {heading} 30.6396
set_fixed_camera_position 2804.0601 {y} -1181.834 {z} 25.8646 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2804.96 {y} -1181.406 {z} 25.9365 {switchStyle} SwitchType.JumpCut
close_all_car_doors 102@
lock_car_doors 102@ {lockStatus} CarLock.Locked
fix_car_door 102@ {door} CarDoor.LeftFrontDoor
fix_car_door 102@ {door} CarDoor.RightFrontDoor
freeze_car_position 102@ {state} True
73@ = 1

:GUNS1_9949
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10122
126@ = open_sequence_task 
task_play_anim -1 {animationName} "SHOUT_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_OUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 126@
perform_sequence_task 98@ {sequence} 126@
clear_sequence_task 126@
task_turn_char_to_face_char $scplayer {target} 98@

:GUNS1_10122
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10146
start_char_facial_talk 98@ {duration} 4000

:GUNS1_10146
254@ = 13
259@ = 4
262@ = get_game_timer 

:GUNS1_10165
goto @GUNS1_10789

:GUNS1_10172
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10388
if 
  257@ == 0
goto_if_false @GUNS1_10388
request_animation "GANGS"

:GUNS1_10239
if 
  not has_animation_loaded "GANGS"
goto_if_false @GUNS1_10270
wait 0
goto @GUNS1_10239

:GUNS1_10270
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10299
stop_char_facial_talk 98@
start_char_facial_talk $scplayer {duration} 3000

:GUNS1_10299
254@ = 14
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10376
task_look_at_char $scplayer {target} 98@ {time} 5000
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GUNS1_10376
259@ = 5
262@ = get_game_timer 

:GUNS1_10388
goto @GUNS1_10789

:GUNS1_10395
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10576
if 
  257@ == 0
goto_if_false @GUNS1_10576
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10482
stop_char_facial_talk $scplayer
start_char_facial_talk 98@ {duration} 4000

:GUNS1_10482
254@ = 15
clear_char_tasks $scplayer
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10564
task_look_at_char 98@ {target} $scplayer {time} 3000
task_play_anim 98@ {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GUNS1_10564
259@ = 6
262@ = get_game_timer 

:GUNS1_10576
goto @GUNS1_10789

:GUNS1_10583
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10710
if 
  257@ == 0
goto_if_false @GUNS1_10710
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10665
start_char_facial_talk 98@ {duration} 4000

:GUNS1_10665
254@ = 16
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10698
clear_look_at 98@
task_shake_fist 98@

:GUNS1_10698
259@ = 7
262@ = get_game_timer 

:GUNS1_10710
goto @GUNS1_10789

:GUNS1_10717
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_10782
if 
  257@ == 0
goto_if_false @GUNS1_10782
258@ = 1

:GUNS1_10782
goto @GUNS1_10789

:GUNS1_10789
goto @GUNS1_8778

:GUNS1_10796
skip_cutscene_end 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_10824
stop_char_facial_talk 98@
stop_char_facial_talk $scplayer

:GUNS1_10824
clear_mission_audio 255@
clear_mission_audio 256@
freeze_onscreen_timer False
if 
  73@ == 0
goto_if_false @GUNS1_11073
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_11073
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 98@
if 
  not is_char_in_any_car $scplayer
goto_if_false @GUNS1_10930
set_char_coordinates $scplayer {x} 2808.1189 {y} -1182.255 {z} 24.3693
goto @GUNS1_10950

:GUNS1_10930
warp_char_from_car_to_coord $scplayer {x} 2808.1189 {y} -1182.255 {z} 24.3693

:GUNS1_10950
set_char_heading $scplayer {heading} 10.3905
if 
  not is_char_in_any_car 98@
goto_if_false @GUNS1_11003
set_char_coordinates_no_offset 98@ {x} 2809.281 {y} -1181.609 {z} 24.6181
goto @GUNS1_11023

:GUNS1_11003
warp_char_from_car_to_coord 98@ {x} 2809.281 {y} -1181.609 {z} 24.6181

:GUNS1_11023
set_char_heading 98@ {heading} 30.6396
close_all_car_doors 102@
lock_car_doors 102@ {lockStatus} CarLock.Locked
fix_car_door 102@ {door} CarDoor.LeftFrontDoor
fix_car_door 102@ {door} CarDoor.RightFrontDoor
freeze_car_position 102@ {state} True
73@ = 1

:GUNS1_11073
if 
  not is_char_dead 98@
goto_if_false @GUNS1_11099
clear_char_tasks_immediately 98@
clear_look_at 98@

:GUNS1_11099
clear_char_tasks_immediately $scplayer
clear_look_at $scplayer
remove_animation "ON_LOOKERS"
clear_prints 
restore_camera_jumpcut 
switch_entry_exit 'BURHOUS' {state} True
set_player_control $player1 {state} True
switch_widescreen False
109@ = add_blip_for_coord 2808.0 {y} -1177.0 {z} 26.0
print 'RYD1_39' {time} 5000 {flag} 1
if 
  not is_char_dead 98@
goto_if_false @GUNS1_11405
if 
  is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_11227
remove_char_from_group 98@

:GUNS1_11227
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2829.4121 {y} -1187.152 {z} 23.8422 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2833.251 {y} -1197.908 {z} 23.3976 {time} 2500
task_look_at_coord -1 {x} 2831.166 {y} -1169.792 {z} 23.9627 {time} 2500
task_stand_still -1 {time} 5000
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2808.1221 {y} -1190.884 {z} 24.3397 {time} 2500
task_look_at_coord -1 {x} 2808.4299 {y} -1177.4091 {z} 24.3621 {time} 2500
task_stand_still -1 {time} 5000
set_sequence_to_repeat 128@ {state} True
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_11405
51@ = 4

:GUNS1_11412
if 
  51@ == 4
goto_if_false @GUNS1_12539
if or
  locate_char_any_means_3d $scplayer {x} 2808.0 {y} -1170.0 {z} 1026.0 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2807.96 {y} -1176.236 {z} 24.3824 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} False
goto_if_false @GUNS1_12539
clear_prints 
remove_blip 109@
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:GUNS1_11536
if 
  get_fading_status 
goto_if_false @GUNS1_11560
wait 0
goto @GUNS1_11536

:GUNS1_11560
clear_prints 
clear_help 
display_radar False
display_hud False
set_fixed_camera_position 2806.792 {y} -1168.75 {z} 1025.8831 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2807.3391 {y} -1169.587 {z} 1025.903 {switchStyle} SwitchType.JumpCut
set_radar_zoom 90
switch_widescreen True
clear_char_tasks_immediately $scplayer
set_area_visible 8
load_scene 2807.6201 {y} -1169.88 {z} 1024.578
set_area_visible 8
set_char_has_used_entry_exit $scplayer {x} 2807.96 {y} -1176.236 {radius} 20.0
set_char_coordinates $scplayer {x} 2807.6201 {y} -1171.9 {z} 1024.578
set_char_heading $scplayer {heading} 0.0
167@ = 0.0
$ryd1_noise_bar = 0
set_area_visible 8
switch_ped_roads_off 2775.0 {leftBottomY} -1196.4 {leftBottomZ} 0.0 {rightTopX} 2840.0 {rightTopY} -1141.0 {rightTopZ} 40.0
clear_area 2808.73 {y} -1168.3199 {z} 1024.6 {radius} 100.0 {clearParticles} True
load_scene 2808.73 {y} -1168.3199 {z} 1024.6
restore_camera_jumpcut 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_11828
clear_char_tasks 98@

:GUNS1_11828
request_model #DB_AMMO

:GUNS1_11833
if 
  not has_model_loaded #DB_AMMO
goto_if_false @GUNS1_11860
wait 0
goto @GUNS1_11833

:GUNS1_11860
34@ = 0

:GUNS1_11867
if 
  7 > 34@
goto_if_false @GUNS1_12073
create_object #DB_AMMO {x} 132@(34@,7f) {y} 139@(34@,7f) {z} 146@(34@,7f) {var_handle} 117@(34@,7i)
add_blip_for_object 117@(34@,7i) {var_handle} 110@(34@,7i)
163@, 164@, 165@ = get_object_coordinates 117@(34@,7i)
if 
  165@ > 700.0
goto_if_false @GUNS1_11997
set_blip_entry_exit 110@(34@,7i) {x} 2807.844 {y} -1176.985 {radius} 10.0

:GUNS1_11997
81@(34@,7i) = 1
set_object_area_visible 117@(34@,7i) {areaId} 8
set_object_as_stealable 117@(34@,7i) {state} True
set_object_collision 117@(34@,7i) {state} True
set_object_dynamic 117@(34@,7i) {state} True
47@ += 1
34@ += 1
goto @GUNS1_11867

:GUNS1_12073
request_animation "INT_HOUSE"
request_animation "GANGS"

:GUNS1_12095
if or
  not has_animation_loaded "INT_HOUSE"
  not has_animation_loaded "GANGS"
goto_if_false @GUNS1_12139
wait 0
goto @GUNS1_12095

:GUNS1_12139
request_model 62
request_model 349

:GUNS1_12148
if or
  not has_model_loaded 62
  not has_model_loaded 349
goto_if_false @GUNS1_12179
wait 0
goto @GUNS1_12148

:GUNS1_12179
99@ = create_char PedType.Mission1 {modelId} 62 {x} 2816.8569 {y} -1169.075 {z} 1028.172
set_char_area_visible 99@ {areaId} 8
set_char_suffers_critical_hits 99@ {state} True
set_char_uses_collision_closest_object_of_type 2816.8569 {y} -1169.075 {z} 1028.172 {radius} 4.0 {modelId} #MED_BED_8 {state} False {target} 99@
set_char_decision_maker 99@ {handleOrTemplate} 40@
set_char_coordinates 99@ {x} 2816.8569 {y} -1169.075 {z} 1028.172
set_char_heading 99@ {heading} 90.0
give_weapon_to_char 99@ {weaponType} WeaponType.Shotgun {ammo} 3000
set_current_char_weapon 99@ {weaponType} WeaponType.Unarmed
task_play_anim 99@ {animationName} "BED_LOOP_R" {animationFile} "INT_HOUSE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position 2806.792 {y} -1168.75 {z} 1025.8831 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2807.3391 {y} -1169.587 {z} 1025.903 {switchStyle} SwitchType.JumpCut
if 
  95@ == 0
goto_if_false @GUNS1_12459
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2819.8999 {y} -1181.7 {z} 1025.15 {radius} 50.0 {clearParticles} True
95@ = 1

:GUNS1_12459
61@ = 1
35@ += 1
remove_blip 110@
81@ = 0
delete_object 117@
47@ -= 1
do_fade 500 {direction} Fade.In

:GUNS1_12504
if 
  get_fading_status 
goto_if_false @GUNS1_12528
wait 0
goto @GUNS1_12504

:GUNS1_12528
display_hud True
51@ = 5

:GUNS1_12539
if 
  7 > 51@
goto_if_false @GUNS1_12774
if 
  80@ == 0
goto_if_false @GUNS1_12767
$hours, $minutes = get_time_of_day 
if 
  $hours > 21
goto_if_false @GUNS1_12667
49@ = 24
sub_int_var_from_int_lvar 49@ -= $hours
49@ += 6
49@ *= 60000
set_var_int_to_lvar_int $ryd1_time_to_daylight = 49@
49@ = 60000
sub_int_var_from_int_lvar 49@ -= $minutes
add_int_var_to_int_var $ryd1_time_to_daylight += $minutes

:GUNS1_12667
if 
  5 > $hours
goto_if_false @GUNS1_12744
49@ = 6
sub_int_var_from_int_lvar 49@ -= $hours
49@ *= 60000
set_var_int_to_lvar_int $ryd1_time_to_daylight = 49@
49@ = 60000
sub_int_var_from_int_lvar 49@ -= $minutes
add_int_var_to_int_var $ryd1_time_to_daylight += $minutes

:GUNS1_12744
display_onscreen_timer_with_string $ryd1_time_to_daylight {direction} TimerDirection.Down {text} 'RYD1_41'
80@ = 1

:GUNS1_12767
goto @GUNS1_12804

:GUNS1_12774
if 
  80@ == 1
goto_if_false @GUNS1_12804
clear_onscreen_timer $ryd1_time_to_daylight
80@ = 0

:GUNS1_12804
if 
  51@ == 5
goto_if_false @GUNS1_14412
clear_area 2819.8999 {y} -1181.7 {z} 1025.15 {radius} 50.0 {clearParticles} True
freeze_onscreen_timer True
skip_cutscene_start_internal @GUNS1_13763
clear_help 
print_help_forever 'RYD1_92'

:GUNS1_12870
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_12894
wait 0
goto @GUNS1_12870

:GUNS1_12894
TIMERA = 0
52@ = 0

:GUNS1_12908
if 
  52@ == 0
goto_if_false @GUNS1_12968
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_12957
52@ = 1

:GUNS1_12957
wait 0
goto @GUNS1_12908

:GUNS1_12968
clear_help 
print_help_forever 'RYD1_93'

:GUNS1_12981
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_13005
wait 0
goto @GUNS1_12981

:GUNS1_13005
TIMERA = 0
52@ = 0

:GUNS1_13019
if 
  52@ == 0
goto_if_false @GUNS1_13079
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_13068
52@ = 1

:GUNS1_13068
wait 0
goto @GUNS1_13019

:GUNS1_13079
set_fixed_camera_position 2815.5901 {y} -1169.15 {z} 1029.45 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2820.48 {y} -1173.33 {z} 1028.01 {switchStyle} SwitchType.JumpCut
clear_help 
print_help_forever 'RYD1_94'

:GUNS1_13143
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_13167
wait 0
goto @GUNS1_13143

:GUNS1_13167
TIMERA = 0
52@ = 0
277@ = 3
278@ = 0
279@ = 0

:GUNS1_13202
if 
  52@ == 0
goto_if_false @GUNS1_13451
if 
  277@ <> 0
goto_if_false @GUNS1_13409
if 
  278@ == 0
goto_if_false @GUNS1_13282
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13275
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_13275
278@ = 1

:GUNS1_13282
if 
  278@ == 1
goto_if_false @GUNS1_13318
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_13318
if 
  278@ == 2
goto_if_false @GUNS1_13362
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13362
play_mission_audio MissionAudioSlot.Slot3
278@ = 3

:GUNS1_13362
if 
  278@ == 3
goto_if_false @GUNS1_13409
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @GUNS1_13409
277@ = 0
278@ = 0

:GUNS1_13409
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_13440
52@ = 1

:GUNS1_13440
wait 0
goto @GUNS1_13202

:GUNS1_13451
print_help_forever 'RYD1_95'

:GUNS1_13462
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_13486
wait 0
goto @GUNS1_13462

:GUNS1_13486
TIMERA = 0
52@ = 0
277@ = 3
278@ = 0

:GUNS1_13514
if 
  52@ == 0
goto_if_false @GUNS1_13763
if 
  277@ <> 0
goto_if_false @GUNS1_13721
if 
  278@ == 0
goto_if_false @GUNS1_13594
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13587
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_13587
278@ = 1

:GUNS1_13594
if 
  278@ == 1
goto_if_false @GUNS1_13630
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_13630
if 
  278@ == 2
goto_if_false @GUNS1_13674
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_13674
play_mission_audio MissionAudioSlot.Slot3
278@ = 3

:GUNS1_13674
if 
  278@ == 3
goto_if_false @GUNS1_13721
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @GUNS1_13721
277@ = 0
278@ = 0

:GUNS1_13721
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_13752
52@ = 1

:GUNS1_13752
wait 0
goto @GUNS1_13514

:GUNS1_13763
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot3
freeze_onscreen_timer False
clear_help 
clear_prints 
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_14191
clear_area 2812.8999 {y} -1181.13 {z} 1024.396 {radius} 100.0 {clearParticles} True
set_car_coordinates 102@ {x} 2811.8459 {y} -1183.291 {z} 24.2764
set_car_heading 102@ {heading} 246.9816
open_car_door 102@ {door} CarDoor.LeftRearDoor
open_car_door 102@ {door} CarDoor.RightRearDoor
clear_char_tasks 98@
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} -1.5 {yOffset} -4.0 {zOffset} 0.0
153@ = get_car_heading 102@
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_13949
153@ += 360.0

:GUNS1_13949
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 2811.1221 {y} -1186.549 {z} 24.2718
set_char_heading 98@ {heading} 17.5866
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} 0.0
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2829.4121 {y} -1187.152 {z} 23.8422 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2833.251 {y} -1197.908 {z} 23.3976 {time} 2500
task_look_at_coord -1 {x} 2831.166 {y} -1169.792 {z} 23.9627 {time} 2500
task_stand_still -1 {time} 5000
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2808.1221 {y} -1190.884 {z} 24.3397 {time} 2500
task_look_at_coord -1 {x} 2808.4299 {y} -1177.4091 {z} 24.3621 {time} 2500
task_stand_still -1 {time} 5000
set_sequence_to_repeat 128@ {state} True
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_14191
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
remove_animation "GANGS"
167@ = 0.0
$ryd1_noise_bar = 0
set_player_control $player1 {state} True
switch_widescreen False
if 
  94@ == 0
goto_if_false @GUNS1_14311
167@ = 0.0
$ryd1_noise_bar = 0
$ryd1_noise_bar = 0
display_onscreen_counter_with_string $ryd1_noise_bar {display} CounterDisplay.Bar {text} 'GUNS1_5'
display_radar False
94@ = 1
TIMERB = 0

:GUNS1_14311
95@ = 1
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
51@ = 6
$ryd1_noise_bar = 0
167@ = 0.0

:GUNS1_14412
if and
  96@ == 0
  7 > 51@
goto_if_false @GUNS1_16262
if 
  91@ == 0
goto_if_false @GUNS1_14535
if 
  51@ == 6
goto_if_false @GUNS1_14535
if 
  TIMERB > 2500
goto_if_false @GUNS1_14535
clear_prints 
print 'RYD1_40' {time} 5000 {flag} 1
print_with_number 'RYD1_97' {num} 3 {duration} 5000 {flag} 1
91@ = 1

:GUNS1_14535
if 
  95@ == 0
goto_if_false @GUNS1_16262
if 
  94@ == 0
goto_if_false @GUNS1_16262
37@ = get_area_visible 
if 
  37@ == 8
goto_if_false @GUNS1_14736
if 
  locate_char_any_means_3d $scplayer {x} 2807.6201 {y} -1171.9 {z} 1024.578 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @GUNS1_14729
if 
  96@ == 0
goto_if_false @GUNS1_14729
$ryd1_noise_bar = 0
167@ = 0.0
if 
  94@ == 0
goto_if_false @GUNS1_14729
display_onscreen_counter_with_string $ryd1_noise_bar {display} CounterDisplay.Bar {text} 'GUNS1_5'
set_onscreen_counter_flash_when_first_displayed $ryd1_noise_bar {state} False
display_radar False
94@ = 1

:GUNS1_14729
goto @GUNS1_16262

:GUNS1_14736
if 
  $ryd1_time_to_daylight == 0
goto_if_false @GUNS1_16262
if 
  not is_char_dead 99@
goto_if_false @GUNS1_14857
clear_char_tasks 99@
set_char_coordinates 99@ {x} 2806.9961 {y} -1169.809 {z} 1024.6121
set_char_heading 99@ {heading} 193.7598
set_char_decision_maker 99@ {handleOrTemplate} 39@
remove_decision_maker 40@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
127@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@

:GUNS1_14857
49@ = 0

:GUNS1_14864
if 
  7 > 49@
goto_if_false @GUNS1_14969
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_14913
set_object_as_stealable 117@(49@,7i) {state} False

:GUNS1_14913
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_14955
remove_blip 110@(49@,7i)
81@(49@,7i) = 0

:GUNS1_14955
49@ += 1
goto @GUNS1_14864

:GUNS1_14969
clear_onscreen_timer $ryd1_time_to_daylight
clear_onscreen_counter $ryd1_noise_bar
display_radar True
if 
  35@ > 3
goto_if_false @GUNS1_15020
clear_onscreen_timer $ryd1_time_to_daylight
51@ = 7
goto @GUNS1_16255

:GUNS1_15020
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @GUNS1_16109
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_16109
set_player_control $player1 {state} False
switch_widescreen True
clear_help 
clear_prints 
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
freeze_car_position 102@ {state} False
load_scene 2807.8579 {y} -1188.103 {z} 25.4725
set_fixed_camera_position 2807.8579 {y} -1188.103 {z} 25.4725 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.792 {y} -1187.748 {z} 25.4449 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2832.2571 {y} -1182.708 {z} 23.7924
extend_route 2840.811 {y} -1211.145 {z} 22.6279
127@ = open_sequence_task 
if 
  51@ > 5
goto_if_false @GUNS1_15246
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Run {time} 10000

:GUNS1_15246
task_enter_car_as_driver -1 {vehicle} 102@ {time} 20000
task_drive_point_route_advanced -1 {vehicle} 102@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars
close_sequence_task 127@
perform_sequence_task 98@ {sequence} 127@
clear_sequence_task 127@
254@ = 0
255@ = 1
256@ = 2
257@ = 0
263@ = 0
259@ = 0
52@ = 0
TIMERA = 0

:GUNS1_15348
if 
  52@ == 0
goto_if_false @GUNS1_16109
if 
  254@ <> 0
goto_if_false @GUNS1_15705
if 
  257@ == 0
goto_if_false @GUNS1_15430
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_15423
clear_mission_audio 256@

:GUNS1_15423
257@ = 1

:GUNS1_15430
if 
  257@ == 1
goto_if_false @GUNS1_15467
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_15467
if 
  257@ == 2
goto_if_false @GUNS1_15527
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_15527
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_15527
if 
  257@ == 3
goto_if_false @GUNS1_15705
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_15644
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_15609
255@ = 2
256@ = 1
goto @GUNS1_15623

:GUNS1_15609
255@ = 1
256@ = 2

:GUNS1_15623
254@ = 0
257@ = 0
goto @GUNS1_15705

:GUNS1_15644
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_15705
if 
  76 > 254@
goto_if_false @GUNS1_15705
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_15705
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_15949 {caseNum1} 0 {caseLabel1} @GUNS1_15768 {caseNum2} 1 {caseLabel2} @GUNS1_15836 {caseNum3} -1 {caseLabel3} @GUNS1_16019 {caseNum4} -1 {caseLabel4} @GUNS1_16019 {caseNum5} -1 {caseLabel5} @GUNS1_16019 {caseNum6} -1 {caseLabel6} @GUNS1_16019 {caseNum7} -1 {caseLabel7} @GUNS1_16019

:GUNS1_15768
if 
  257@ == 0
goto_if_false @GUNS1_15829
if 
  not is_char_dead 98@
goto_if_false @GUNS1_15810
start_char_facial_talk 98@ {duration} 5000

:GUNS1_15810
254@ = 81
259@ = 1
262@ = get_game_timer 

:GUNS1_15829
goto @GUNS1_16019

:GUNS1_15836
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_15942
if 
  257@ == 0
goto_if_false @GUNS1_15942
if 
  not is_char_dead 98@
goto_if_false @GUNS1_15915
stop_char_facial_talk 98@

:GUNS1_15915
start_char_facial_talk $scplayer {duration} 5000
254@ = 77
259@ = 2
262@ = get_game_timer 

:GUNS1_15942
goto @GUNS1_16019

:GUNS1_15949
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_16012
if 
  257@ == 0
goto_if_false @GUNS1_16012
stop_char_facial_talk $scplayer

:GUNS1_16012
goto @GUNS1_16019

:GUNS1_16019
if 
  not is_char_dead 98@
goto_if_false @GUNS1_16053
38@ = get_script_task_status 98@ {taskId} 1560
goto @GUNS1_16060

:GUNS1_16053
52@ = 1

:GUNS1_16060
if or
  TIMERA > 15000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_16098
stop_char_facial_talk $scplayer
52@ = 1

:GUNS1_16098
wait 0
goto @GUNS1_15348

:GUNS1_16109
clear_prints 
clear_char_tasks $scplayer
restore_camera_jumpcut 
alter_wanted_level $player1 {wantedLevel} 2
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_16232
do_fade 1000 {direction} Fade.Out

:GUNS1_16161
if 
  get_fading_status 
goto_if_false @GUNS1_16185
wait 0
goto @GUNS1_16161

:GUNS1_16185
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_16208
if 
  get_fading_status 
goto_if_false @GUNS1_16232
wait 0
goto @GUNS1_16208

:GUNS1_16232
print 'RYD1_96' {time} 5000 {flag} 1
goto @GUNS1_40642

:GUNS1_16255
94@ = 0

:GUNS1_16262
if 
  7 > 51@
goto_if_false @GUNS1_16395
160@, 161@, 162@ = get_char_coordinates $scplayer
if 
  162@ > 900.0
goto_if_false @GUNS1_16370
if 
  92@ == 0
goto_if_false @GUNS1_16363
37@ = get_area_visible 
if 
  37@ == 8
goto_if_false @GUNS1_16363
92@ = 1

:GUNS1_16363
goto @GUNS1_16395

:GUNS1_16370
if 
  92@ == 1
goto_if_false @GUNS1_16395
92@ = 0

:GUNS1_16395
if 
  51@ > 2
goto_if_false @GUNS1_23696
if 
  7 > 51@
goto_if_false @GUNS1_23696
if 
  94@ == 1
goto_if_false @GUNS1_23696
if 
  96@ == 0
goto_if_false @GUNS1_23696
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @GUNS1_16731
if 
  95@ == 1
goto_if_false @GUNS1_16634
clear_mission_audio MissionAudioSlot.Slot3
277@ = 3
278@ = 0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
if 
  60@ == 1
goto_if_false @GUNS1_16589
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_16589
set_object_area_visible 117@(36@,7i) {areaId} 0

:GUNS1_16589
if 
  94@ == 1
goto_if_false @GUNS1_16623
clear_onscreen_counter $ryd1_noise_bar
display_radar True
94@ = 0

:GUNS1_16623
95@ = 0
set_radar_zoom 0

:GUNS1_16634
if 
  $ryd1_noise_bar > 11
goto_if_false @GUNS1_16714
$ryd1_noise_bar -= 10
if 
  167@ > 11.0
goto_if_false @GUNS1_16697
167@ -= 10.0
goto @GUNS1_16707

:GUNS1_16697
167@ = 0.0

:GUNS1_16707
goto @GUNS1_16731

:GUNS1_16714
167@ = 0.0
$ryd1_noise_bar = 0

:GUNS1_16731
if 
  37@ == 8
goto_if_false @GUNS1_17507
if 
  locate_char_any_means_3d $scplayer {x} 2809.0 {y} -1169.0 {z} 1026.0 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GUNS1_17507
if 
  277@ <> 0
goto_if_false @GUNS1_17023
if 
  278@ == 0
goto_if_false @GUNS1_16859
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_16852
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_16852
278@ = 1

:GUNS1_16859
if 
  278@ == 1
goto_if_false @GUNS1_16895
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_16895
if 
  278@ == 2
goto_if_false @GUNS1_16962
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_16962
if 
  not is_char_dead 99@
goto_if_false @GUNS1_16955
attach_mission_audio_to_char MissionAudioSlot.Slot3 {handle} 99@
play_mission_audio MissionAudioSlot.Slot3

:GUNS1_16955
278@ = 3

:GUNS1_16962
if 
  278@ == 3
goto_if_false @GUNS1_17016
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @GUNS1_17016
277@ = 0
278@ = 0
TIMERA = 0

:GUNS1_17016
goto @GUNS1_17049

:GUNS1_17023
if 
  TIMERA > 3000
goto_if_false @GUNS1_17049
277@ = 3

:GUNS1_17049
if 
  not is_char_dead 99@
goto_if_false @GUNS1_17173
160@, 161@, 162@ = get_char_coordinates $scplayer
if 
  79@ == 1
goto_if_false @GUNS1_17130
166@ = get_sound_level_at_coords -1 {x} 160@ {y} 161@ {z} 162@
166@ *= 1.6
goto @GUNS1_17173

:GUNS1_17130
if 
  TIMERB > 500
goto_if_false @GUNS1_17156
79@ = 1

:GUNS1_17156
$ryd1_noise_bar = 0
167@ = 0.0

:GUNS1_17173
if 
  95@ == 0
goto_if_false @GUNS1_17289
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2819.8999 {y} -1181.7 {z} 1025.15 {radius} 50.0 {clearParticles} True
if 
  60@ == 1
goto_if_false @GUNS1_17278
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_17278
set_object_area_visible 117@(36@,7i) {areaId} 8

:GUNS1_17278
set_radar_zoom 90
95@ = 1

:GUNS1_17289
if 
  166@ > 20.0
goto_if_false @GUNS1_17328
166@ -= 20.0
add_float_lvar_to_float_lvar 167@ += 166@

:GUNS1_17328
167@ *= 0.99
cset_var_int_to_lvar_float $ryd1_noise_bar =# 167@
if 
  $ryd1_noise_bar >= 100
goto_if_false @GUNS1_17408
$ryd1_noise_bar = 100
if 
  171@ == 0
goto_if_false @GUNS1_17401
169@ = get_game_timer 
171@ = 1

:GUNS1_17401
goto @GUNS1_17433

:GUNS1_17408
if 
  0 > $ryd1_noise_bar
goto_if_false @GUNS1_17433
$ryd1_noise_bar = 0

:GUNS1_17433
if 
  not is_char_dead 99@
goto_if_false @GUNS1_17507
if or
  has_char_been_damaged_by_char 99@ {handle} $scplayer
  locate_char_any_means_char_3d $scplayer {target} 99@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GUNS1_17507
171@ = 2
$ryd1_noise_bar = 100

:GUNS1_17507
if 
  171@ == 1
goto_if_false @GUNS1_18421
168@ = get_game_timer 
set_lvar_int_to_lvar_int 170@ = 168@
sub_int_lvar_from_int_lvar 170@ -= 169@
if 
  170@ > 1500
goto_if_false @GUNS1_18421
if 
  93@ == 0
goto_if_false @GUNS1_18414
clear_mission_audio MissionAudioSlot.Slot3
277@ = 0
278@ = 0
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2816.0959 {y} -1169.522 {z} 1029.0811 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2817.093 {y} -1169.588 {z} 1029.0551 {switchStyle} SwitchType.JumpCut
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_17735
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_18340
if 
  254@ <> 0
goto_if_false @GUNS1_18096
if 
  257@ == 0
goto_if_false @GUNS1_17821
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_17814
clear_mission_audio 256@

:GUNS1_17814
257@ = 1

:GUNS1_17821
if 
  257@ == 1
goto_if_false @GUNS1_17858
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_17858
if 
  257@ == 2
goto_if_false @GUNS1_17918
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_17918
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_17918
if 
  257@ == 3
goto_if_false @GUNS1_18096
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_18035
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_18000
255@ = 2
256@ = 1
goto @GUNS1_18014

:GUNS1_18000
255@ = 1
256@ = 2

:GUNS1_18014
254@ = 0
257@ = 0
goto @GUNS1_18096

:GUNS1_18035
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_18096
if 
  76 > 254@
goto_if_false @GUNS1_18096
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_18096
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_18333
switch_start 259@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @GUNS1_18240 {caseNum1} 0 {caseLabel1} @GUNS1_18172 {caseNum2} -1 {caseLabel2} @GUNS1_18333 {caseNum3} -1 {caseLabel3} @GUNS1_18333 {caseNum4} -1 {caseLabel4} @GUNS1_18333 {caseNum5} -1 {caseLabel5} @GUNS1_18333 {caseNum6} -1 {caseLabel6} @GUNS1_18333 {caseNum7} -1 {caseLabel7} @GUNS1_18333

:GUNS1_18172
if 
  257@ == 0
goto_if_false @GUNS1_18233
if 
  not is_char_dead 99@
goto_if_false @GUNS1_18214
start_char_facial_talk 99@ {duration} 5000

:GUNS1_18214
254@ = 36
259@ = 1
262@ = get_game_timer 

:GUNS1_18233
goto @GUNS1_18333

:GUNS1_18240
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_18326
if 
  not is_char_dead 99@
goto_if_false @GUNS1_18301
stop_char_facial_talk 99@

:GUNS1_18301
if 
  257@ == 0
goto_if_false @GUNS1_18326
258@ = 1

:GUNS1_18326
goto @GUNS1_18333

:GUNS1_18333
goto @GUNS1_17735

:GUNS1_18340
print 'GUNS134' {time} 3000 {flag} 1
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
171@ = 0
$ryd1_noise_bar = 0
167@ = 0.0
93@ = 1
277@ = 3
goto @GUNS1_18421

:GUNS1_18414
171@ = 2

:GUNS1_18421
if or
  171@ == 2
  $ryd1_time_to_daylight == 0
goto_if_false @GUNS1_23336
clear_mission_audio MissionAudioSlot.Slot3
278@ = 0
277@ = 0
49@ = 0

:GUNS1_18471
if 
  7 > 49@
goto_if_false @GUNS1_18576
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_18520
set_object_as_stealable 117@(49@,7i) {state} False

:GUNS1_18520
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_18562
remove_blip 110@(49@,7i)
81@(49@,7i) = 0

:GUNS1_18562
49@ += 1
goto @GUNS1_18471

:GUNS1_18576
if 
  37@ == 8
goto_if_false @GUNS1_21937
if 
  not is_char_dead 99@
goto_if_false @GUNS1_21930
49@ = get_char_health 99@
if 
  20 > 49@
goto_if_false @GUNS1_18643
set_char_health 99@ {health} 20

:GUNS1_18643
clear_mission_audio MissionAudioSlot.Slot3
clear_char_tasks_immediately 99@
freeze_char_position_and_dont_load_collision 99@ {state} False
157@, 158@, 159@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} 1.0 {zOffset} 0.0
clear_area 2808.123 {y} -1172.823 {z} 1024.6121 {radius} 10.0 {clearParticles} True
if 
  locate_char_any_means_char_3d $scplayer {target} 99@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GUNS1_18778
set_char_coordinates $scplayer {x} 2817.229 {y} -1166.11 {z} 1028.172
set_char_heading $scplayer {heading} 94.7698

:GUNS1_18778
set_char_coordinates 99@ {x} 2815.9609 {y} -1169.392 {z} 1028.172
set_char_heading 99@ {heading} 14.1
set_fixed_camera_position 2816.2419 {y} -1168.358 {z} 1029.485 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2815.6741 {y} -1169.144 {z} 1029.729 {switchStyle} SwitchType.JumpCut
127@ = open_sequence_task 
task_scratch_head -1
task_shake_fist -1
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@
set_player_control $player1 {state} False
clear_char_tasks $scplayer
switch_widescreen True
clear_prints 
clear_help 
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  4 > 35@
goto_if_false @GUNS1_18973
set_char_coordinates $scplayer {x} 2807.5249 {y} -1167.076 {z} 1024.578
set_char_heading $scplayer {heading} 169.2411

:GUNS1_18973
set_current_char_weapon 99@ {weaponType} WeaponType.Shotgun
skip_cutscene_start_internal @GUNS1_19768
clear_prints 
if 
  $ryd1_time_to_daylight > 0
goto_if_false @GUNS1_19054
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead 99@
goto_if_false @GUNS1_19047
stop_char_facial_talk 99@
start_char_facial_talk 99@ {duration} 4000
254@ = 39

:GUNS1_19047
goto @GUNS1_19084

:GUNS1_19054
print 'RYD1_36' {time} 4000 {flag} 1
278@ = 0
277@ = 1

:GUNS1_19084
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
52@ = 0
TIMERA = 0

:GUNS1_19154
if 
  52@ == 0
goto_if_false @GUNS1_19768
if 
  277@ <> 0
goto_if_false @GUNS1_19373
if 
  278@ == 0
goto_if_false @GUNS1_19234
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_19227
clear_mission_audio MissionAudioSlot.Slot3

:GUNS1_19227
278@ = 1

:GUNS1_19234
if 
  278@ == 1
goto_if_false @GUNS1_19270
load_mission_audio MissionAudioSlot.Slot3 {audioId} 273@(277@,4i)
278@ = 2

:GUNS1_19270
if 
  278@ == 2
goto_if_false @GUNS1_19314
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GUNS1_19314
play_mission_audio MissionAudioSlot.Slot3
278@ = 3

:GUNS1_19314
if 
  278@ == 3
goto_if_false @GUNS1_19373
if or
  has_mission_audio_finished MissionAudioSlot.Slot3
  TIMERA > 3000
goto_if_false @GUNS1_19373
clear_mission_audio MissionAudioSlot.Slot3
277@ = 0
278@ = 0

:GUNS1_19373
if 
  254@ <> 0
goto_if_false @GUNS1_19665
if 
  257@ == 0
goto_if_false @GUNS1_19437
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_19430
clear_mission_audio 256@

:GUNS1_19430
257@ = 1

:GUNS1_19437
if 
  257@ == 1
goto_if_false @GUNS1_19474
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_19474
if 
  257@ == 2
goto_if_false @GUNS1_19534
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_19534
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_19534
if 
  257@ == 3
goto_if_false @GUNS1_19665
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_19665
clear_this_print $ryd1_text(254@,82s)
if 
  not is_char_dead 99@
goto_if_false @GUNS1_19598
stop_char_facial_talk 99@

:GUNS1_19598
if 
  255@ == 1
goto_if_false @GUNS1_19637
255@ = 2
256@ = 1
goto @GUNS1_19651

:GUNS1_19637
255@ = 1
256@ = 2

:GUNS1_19651
254@ = 0
257@ = 0

:GUNS1_19665
if 
  is_char_dead 99@
goto_if_false @GUNS1_19695
52@ = 1
goto @GUNS1_19731

:GUNS1_19695
38@ = get_script_task_status 99@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_19731
52@ = 1

:GUNS1_19731
if 
  TIMERA > 15000
goto_if_false @GUNS1_19757
52@ = 1

:GUNS1_19757
wait 0
goto @GUNS1_19154

:GUNS1_19768
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
remove_animation "GANGS"
60@ = 0
if 
  not is_char_dead 99@
goto_if_false @GUNS1_20085
stop_char_facial_talk 99@
if and
  locate_char_any_means_3d $scplayer {x} 2811.8821 {y} -1167.5699 {z} 1029.22 {xRadius} 9.1 {yRadius} 7.2 {zRadius} 5.0 {drawSphere} False
  162@ > 1029.0
goto_if_false @GUNS1_19947
127@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 5000
task_goto_char -1 {target} $scplayer {time} -1 {radius} 5.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@
goto @GUNS1_20085

:GUNS1_19947
set_char_coordinates 99@ {x} 2804.325 {y} -1162.254 {z} 1028.1801
set_char_heading 99@ {heading} 180.0
127@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 10000
task_go_to_coord_while_shooting -1 {x} 2803.9771 {y} -1168.157 {z} 1025.375 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 0.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2806.9961 {y} -1169.809 {z} 1024.6121 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 0.0 {target} $scplayer
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@

:GUNS1_20085
clear_char_tasks $scplayer
clear_look_at $scplayer
if 
  not is_char_dead 98@
goto_if_false @GUNS1_20121
clear_char_tasks 98@
clear_look_at 98@

:GUNS1_20121
clear_area 2806.9961 {y} -1169.209 {z} 1024.6121 {radius} 50.0 {clearParticles} True
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_20284
clear_char_tasks 98@
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} -1.5 {yOffset} -4.0 {zOffset} 0.0
153@ = get_car_heading 102@
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_20249
153@ += 360.0

:GUNS1_20249
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 2811.1221 {y} -1186.549 {z} 24.2718
set_char_heading 98@ {heading} 17.5866

:GUNS1_20284
if 
  not is_char_dead 99@
goto_if_false @GUNS1_20330
set_char_decision_maker 99@ {handleOrTemplate} 39@
remove_decision_maker 40@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1

:GUNS1_20330
remove_animation "INT_HOUSE"
if 
  35@ > 3
goto_if_false @GUNS1_20465
if 
  not is_char_dead 99@
goto_if_false @GUNS1_20407
127@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@

:GUNS1_20407
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
print 'RYD1_44' {time} 4000 {flag} 1
43@ = 0
goto @GUNS1_21930

:GUNS1_20465
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_20535
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_20996
if 
  254@ <> 0
goto_if_false @GUNS1_20835
if 
  257@ == 0
goto_if_false @GUNS1_20621
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_20614
clear_mission_audio 256@

:GUNS1_20614
257@ = 1

:GUNS1_20621
if 
  257@ == 1
goto_if_false @GUNS1_20658
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_20658
if 
  257@ == 2
goto_if_false @GUNS1_20718
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_20718
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_20718
if 
  257@ == 3
goto_if_false @GUNS1_20835
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_20835
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_20800
255@ = 2
256@ = 1
goto @GUNS1_20814

:GUNS1_20800
255@ = 1
256@ = 2

:GUNS1_20814
254@ = 0
257@ = 0
258@ = 1

:GUNS1_20835
if 
  257@ == 0
goto_if_false @GUNS1_20989
if 
  258@ == 0
goto_if_false @GUNS1_20989
254@ = 38
set_char_coordinates $scplayer {x} 2807.5249 {y} -1167.076 {z} 1024.578
set_char_heading $scplayer {heading} 169.2411
task_go_straight_to_coord $scplayer {x} 2807.626 {y} -1178.272 {z} 1024.578 {speed} MoveState.Run {time} 6000
clear_sequence_task 127@
set_fixed_camera_position 2809.6709 {y} -1173.223 {z} 1025.994 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.8159 {y} -1172.714 {z} 1025.891 {switchStyle} SwitchType.JumpCut

:GUNS1_20989
goto @GUNS1_20535

:GUNS1_20996
52@ = 0
TIMERA = 0

:GUNS1_21010
if 
  52@ == 0
goto_if_false @GUNS1_21120
38@ = get_script_task_status $scplayer {taskId} 1491
if or
  TIMERA > 10000
  is_int_lvar_equal_to_constant 38@ == 7
  locate_char_any_means_3d $scplayer {x} 2807.626 {y} -1174.272 {z} 1024.578 {xRadius} 1.3 {yRadius} 1.3 {zRadius} 3.0 {drawSphere} False
goto_if_false @GUNS1_21109
52@ = 1

:GUNS1_21109
wait 0
goto @GUNS1_21010

:GUNS1_21120
do_fade 1500 {direction} Fade.Out

:GUNS1_21127
if 
  get_fading_status 
goto_if_false @GUNS1_21151
wait 0
goto @GUNS1_21127

:GUNS1_21151
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2808.7839 {y} -1178.054 {z} 24.3559
set_char_heading $scplayer {heading} 231.7034
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2807.7759 {y} -1174.782 {radius} 20.0
set_fixed_camera_position 2807.4729 {y} -1176.3149 {z} 25.8373 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.3181 {y} -1176.847 {z} 25.8125 {switchStyle} SwitchType.JumpCut
request_collision 2808.7839 {y} -1178.054
load_scene 2808.7839 {y} -1178.054 {z} 24.0
if 
  not is_car_dead 102@
goto_if_false @GUNS1_21311
delete_car 102@

:GUNS1_21311
mark_car_as_no_longer_needed 102@
if 
  not is_char_dead 98@
goto_if_false @GUNS1_21337
delete_char 98@

:GUNS1_21337
mark_char_as_no_longer_needed 98@
127@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2814.9741 {y} -1181.6949 {z} 24.2639 {speed} MoveState.Run {time} 10000
task_scratch_head -1
close_sequence_task 127@
perform_sequence_task $scplayer {sequence} 127@
clear_sequence_task 127@
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_21438
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GUNS1_21438
do_fade 1000 {direction} Fade.In

:GUNS1_21445
if 
  get_fading_status 
goto_if_false @GUNS1_21469
wait 0
goto @GUNS1_21445

:GUNS1_21469
254@ = 78
255@ = 1
256@ = 2
257@ = 0
263@ = 0
52@ = 0
TIMERA = 0

:GUNS1_21518
if 
  52@ == 0
goto_if_false @GUNS1_21930
if 
  254@ <> 0
goto_if_false @GUNS1_21875
if 
  257@ == 0
goto_if_false @GUNS1_21600
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_21593
clear_mission_audio 256@

:GUNS1_21593
257@ = 1

:GUNS1_21600
if 
  257@ == 1
goto_if_false @GUNS1_21637
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_21637
if 
  257@ == 2
goto_if_false @GUNS1_21697
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_21697
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_21697
if 
  257@ == 3
goto_if_false @GUNS1_21875
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_21814
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_21779
255@ = 2
256@ = 1
goto @GUNS1_21793

:GUNS1_21779
255@ = 1
256@ = 2

:GUNS1_21793
254@ = 0
257@ = 0
goto @GUNS1_21875

:GUNS1_21814
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_21875
if 
  76 > 254@
goto_if_false @GUNS1_21875
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_21875
38@ = get_script_task_status $scplayer {taskId} 1560
if or
  TIMERA > 10000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_21919
52@ = 1

:GUNS1_21919
wait 0
goto @GUNS1_21518

:GUNS1_21930
goto @GUNS1_23100

:GUNS1_21937
if 
  not is_char_dead 99@
goto_if_false @GUNS1_23100
clear_char_tasks 99@
set_char_coordinates 99@ {x} 2806.9961 {y} -1169.809 {z} 1024.6121
set_char_heading 99@ {heading} 193.7598
set_char_decision_maker 99@ {handleOrTemplate} 39@
remove_decision_maker 40@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
127@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 127@
perform_sequence_task 99@ {sequence} 127@
clear_sequence_task 127@
if 
  35@ <= 3
goto_if_false @GUNS1_23100
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_23100
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
clear_help 
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
freeze_car_position 102@ {state} False
set_fixed_camera_position 2807.8579 {y} -1188.103 {z} 25.4725 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.792 {y} -1187.748 {z} 25.4449 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2832.2571 {y} -1182.708 {z} 23.7924
extend_route 2840.811 {y} -1211.145 {z} 22.6279
127@ = open_sequence_task 
if 
  51@ > 5
goto_if_false @GUNS1_22242
task_go_straight_to_coord -1 {x} 2816.7271 {y} -1185.688 {z} 24.2433 {speed} MoveState.Run {time} 10000

:GUNS1_22242
task_enter_car_as_driver -1 {vehicle} 102@ {time} 20000
task_drive_point_route_advanced -1 {vehicle} 102@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars
close_sequence_task 127@
perform_sequence_task 98@ {sequence} 127@
clear_sequence_task 127@
254@ = 0
255@ = 1
256@ = 2
257@ = 0
263@ = 0
259@ = 0
52@ = 0
TIMERA = 0

:GUNS1_22344
if 
  52@ == 0
goto_if_false @GUNS1_23100
if 
  254@ <> 0
goto_if_false @GUNS1_22701
if 
  257@ == 0
goto_if_false @GUNS1_22426
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_22419
clear_mission_audio 256@

:GUNS1_22419
257@ = 1

:GUNS1_22426
if 
  257@ == 1
goto_if_false @GUNS1_22463
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_22463
if 
  257@ == 2
goto_if_false @GUNS1_22523
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_22523
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_22523
if 
  257@ == 3
goto_if_false @GUNS1_22701
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_22640
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_22605
255@ = 2
256@ = 1
goto @GUNS1_22619

:GUNS1_22605
255@ = 1
256@ = 2

:GUNS1_22619
254@ = 0
257@ = 0
goto @GUNS1_22701

:GUNS1_22640
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_22701
if 
  76 > 254@
goto_if_false @GUNS1_22701
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_22701
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_22945 {caseNum1} 0 {caseLabel1} @GUNS1_22764 {caseNum2} 1 {caseLabel2} @GUNS1_22832 {caseNum3} -1 {caseLabel3} @GUNS1_23015 {caseNum4} -1 {caseLabel4} @GUNS1_23015 {caseNum5} -1 {caseLabel5} @GUNS1_23015 {caseNum6} -1 {caseLabel6} @GUNS1_23015 {caseNum7} -1 {caseLabel7} @GUNS1_23015

:GUNS1_22764
if 
  257@ == 0
goto_if_false @GUNS1_22825
if 
  not is_char_dead 98@
goto_if_false @GUNS1_22806
start_char_facial_talk 98@ {duration} 5000

:GUNS1_22806
254@ = 80
259@ = 1
262@ = get_game_timer 

:GUNS1_22825
goto @GUNS1_23015

:GUNS1_22832
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_22938
if 
  257@ == 0
goto_if_false @GUNS1_22938
if 
  not is_char_dead 98@
goto_if_false @GUNS1_22911
stop_char_facial_talk 98@

:GUNS1_22911
start_char_facial_talk $scplayer {duration} 5000
254@ = 77
259@ = 2
262@ = get_game_timer 

:GUNS1_22938
goto @GUNS1_23015

:GUNS1_22945
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_23008
if 
  257@ == 0
goto_if_false @GUNS1_23008
stop_char_facial_talk $scplayer

:GUNS1_23008
goto @GUNS1_23015

:GUNS1_23015
if 
  not is_char_dead 98@
goto_if_false @GUNS1_23049
38@ = get_script_task_status 98@ {taskId} 1560
goto @GUNS1_23056

:GUNS1_23049
52@ = 1

:GUNS1_23056
if or
  TIMERA > 15000
  is_int_lvar_equal_to_constant 38@ == 7
goto_if_false @GUNS1_23089
52@ = 1

:GUNS1_23089
wait 0
goto @GUNS1_22344

:GUNS1_23100
clear_onscreen_timer $ryd1_time_to_daylight
clear_onscreen_counter $ryd1_noise_bar
display_radar True
94@ = 0
96@ = 1
if 
  35@ > 3
goto_if_false @GUNS1_23172
clear_onscreen_timer $ryd1_time_to_daylight
96@ = 1
51@ = 7
goto @GUNS1_23329

:GUNS1_23172
clear_prints 
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
clear_char_tasks $scplayer
alter_wanted_level $player1 {wantedLevel} 2
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_23306
do_fade 1000 {direction} Fade.Out

:GUNS1_23235
if 
  get_fading_status 
goto_if_false @GUNS1_23259
wait 0
goto @GUNS1_23235

:GUNS1_23259
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_23282
if 
  get_fading_status 
goto_if_false @GUNS1_23306
wait 0
goto @GUNS1_23282

:GUNS1_23306
print 'RYD1_96' {time} 5000 {flag} 1
goto @GUNS1_40642

:GUNS1_23329
goto @GUNS1_23696

:GUNS1_23336
set_lvar_int_to_lvar_int 45@ = 46@
sub_int_var_from_int_lvar 45@ -= $ryd1_noise_bar
set_lvar_int_to_var_int 46@ = $ryd1_noise_bar
if and
  $ryd1_noise_bar > 30
  60 > $ryd1_noise_bar
goto_if_false @GUNS1_23525
if 
  0 > 45@
goto_if_false @GUNS1_23464
if 
  44@ == 0
goto_if_false @GUNS1_23457
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_23457
print 'GUNS134' {time} 4000 {flag} 1
44@ = 1

:GUNS1_23457
goto @GUNS1_23525

:GUNS1_23464
if 
  44@ == 1
goto_if_false @GUNS1_23525
if and
  not is_message_being_displayed 
  44@ <> 2
goto_if_false @GUNS1_23525
print 'GUNS134' {time} 3000 {flag} 1
44@ = 2

:GUNS1_23525
if 
  $ryd1_noise_bar > 59
goto_if_false @GUNS1_23678
if 
  0 > 45@
goto_if_false @GUNS1_23624
if 
  44@ == 1
goto_if_false @GUNS1_23617
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_23617
clear_prints 
print 'GUNS1_7' {time} 4000 {flag} 1
44@ = 3

:GUNS1_23617
goto @GUNS1_23678

:GUNS1_23624
if 
  44@ == 2
goto_if_false @GUNS1_23678
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_23678
print 'GUNS1_7' {time} 4000 {flag} 1
44@ = 3

:GUNS1_23678
if 
  51 > $ryd1_noise_bar
goto_if_false @GUNS1_23696

:GUNS1_23696
if 
  51@ == 6
goto_if_false @GUNS1_25675
49@ = 0

:GUNS1_23721
if 
  7 > 49@
goto_if_false @GUNS1_23952
if 
  60@ == 0
goto_if_false @GUNS1_23896
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_23889
if 
  81@(49@,7i) == 0
goto_if_false @GUNS1_23889
add_blip_for_object 117@(49@,7i) {var_handle} 110@(49@,7i)
163@, 164@, 165@ = get_object_coordinates 117@(49@,7i)
if 
  165@ > 700.0
goto_if_false @GUNS1_23878
set_blip_entry_exit 110@(49@,7i) {x} 2807.844 {y} -1176.985 {radius} 10.0

:GUNS1_23878
81@(49@,7i) = 1

:GUNS1_23889
goto @GUNS1_23938

:GUNS1_23896
if 
  81@(49@,7i) == 1
goto_if_false @GUNS1_23938
remove_blip 110@(49@,7i)
81@(49@,7i) = 0

:GUNS1_23938
49@ += 1
goto @GUNS1_23721

:GUNS1_23952
if 
  254@ <> 0
goto_if_false @GUNS1_24319
if 
  257@ == 0
goto_if_false @GUNS1_24016
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_24009
clear_mission_audio 256@

:GUNS1_24009
257@ = 1

:GUNS1_24016
if 
  257@ == 1
goto_if_false @GUNS1_24053
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_24053
if 
  257@ == 2
goto_if_false @GUNS1_24113
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_24113
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_24113
if 
  257@ == 3
goto_if_false @GUNS1_24319
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_24319
clear_this_print $ryd1_text(254@,82s)
if 
  47@ > 0
goto_if_false @GUNS1_24231
if 
  97@ == 0
goto_if_false @GUNS1_24215
print_now 'GUNS147' {time} 5000 {flag} 1
goto @GUNS1_24231

:GUNS1_24215
print_now 'RYD1_2' {time} 5000 {flag} 1

:GUNS1_24231
if 
  255@ == 1
goto_if_false @GUNS1_24270
255@ = 2
256@ = 1
goto @GUNS1_24284

:GUNS1_24270
255@ = 1
256@ = 2

:GUNS1_24284
254@ = 0
257@ = 0
if 
  not is_char_dead 98@
goto_if_false @GUNS1_24319
stop_char_facial_talk 98@

:GUNS1_24319
if 
  97@ == 1
goto_if_false @GUNS1_25609
if 
  not is_car_dead 102@
goto_if_false @GUNS1_25602
if 
  is_char_sitting_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_25602
freeze_car_position 102@ {state} False
close_all_car_doors 102@
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2810.199 {y} -1187.979 {z} 25.1092 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2811.0691 {y} -1187.504 {z} 25.2425 {switchStyle} SwitchType.JumpCut
clear_prints 
clear_help 
clear_area 154@ {y} 155@ {z} 156@ {radius} 25.0 {clearParticles} True
delete_object 117@(36@,7i)
clear_onscreen_counter $ryd1_noise_bar
display_radar True
94@ = 0
remove_blip 104@
55@ = 0
remove_char_elegantly 99@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
delete_object 117@
delete_object 118@
delete_object 119@
delete_object 120@
delete_object 121@
delete_object 122@
delete_object 123@
mark_char_as_no_longer_needed 99@
mark_model_as_no_longer_needed 62
mark_model_as_no_longer_needed #DB_AMMO
mark_model_as_no_longer_needed 349
mark_object_as_no_longer_needed 117@
mark_object_as_no_longer_needed 118@
mark_object_as_no_longer_needed 119@
mark_object_as_no_longer_needed 120@
mark_object_as_no_longer_needed 121@
mark_object_as_no_longer_needed 122@
mark_object_as_no_longer_needed 123@
remove_animation "INT_HOUSE"
if 
  not is_char_dead 98@
goto_if_false @GUNS1_24726
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Run {time} 10000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 4000 {seat} SeatId.BikeRear
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_24726
switch_entry_exit 'BURHOUS' {state} False
254@ = 38
257@ = 0
255@ = 1
256@ = 2
TIMERB = 0
52@ = 0

:GUNS1_24781
if 
  52@ == 0
goto_if_false @GUNS1_25343
if 
  254@ <> 0
goto_if_false @GUNS1_25138
if 
  257@ == 0
goto_if_false @GUNS1_24863
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_24856
clear_mission_audio 256@

:GUNS1_24856
257@ = 1

:GUNS1_24863
if 
  257@ == 1
goto_if_false @GUNS1_24900
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_24900
if 
  257@ == 2
goto_if_false @GUNS1_24960
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_24960
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_24960
if 
  257@ == 3
goto_if_false @GUNS1_25138
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_25077
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_25042
255@ = 2
256@ = 1
goto @GUNS1_25056

:GUNS1_25042
255@ = 1
256@ = 2

:GUNS1_25056
254@ = 0
257@ = 0
goto @GUNS1_25138

:GUNS1_25077
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_25138
if 
  76 > 254@
goto_if_false @GUNS1_25138
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_25138
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_25192
if 
  is_char_sitting_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_25185
52@ = 1

:GUNS1_25185
goto @GUNS1_25306

:GUNS1_25192
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_25299
do_fade 1000 {direction} Fade.Out

:GUNS1_25228
if 
  get_fading_status 
goto_if_false @GUNS1_25252
wait 0
goto @GUNS1_25228

:GUNS1_25252
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_25275
if 
  get_fading_status 
goto_if_false @GUNS1_25299
wait 0
goto @GUNS1_25275

:GUNS1_25299
goto @GUNS1_40642

:GUNS1_25306
if 
  TIMERB > 15000
goto_if_false @GUNS1_25332
52@ = 1

:GUNS1_25332
wait 0
goto @GUNS1_24781

:GUNS1_25343
if 
  not is_char_dead 98@
goto_if_false @GUNS1_25404
if 
  not is_car_dead 102@
goto_if_false @GUNS1_25404
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_25404
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_25404
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
58@ = 0
57@ = 0
55@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 1
51@ = 8
43@ = 0
44@ = 0
set_police_ignore_player $player1 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_prints 
print 'GUNS124' {time} 10000 {flag} 1
107@ = add_blip_for_coord 2742.0 {y} -2008.0 {z} 13.0
68@ = 1

:GUNS1_25602
goto @GUNS1_25675

:GUNS1_25609
if 
  97@ == 0
goto_if_false @GUNS1_25675
if 
  35@ > 3
goto_if_false @GUNS1_25675
if 
  not is_car_dead 102@
goto_if_false @GUNS1_25675
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
97@ = 1

:GUNS1_25675
if and
  51@ == 6
  60@ == 0
goto_if_false @GUNS1_26447
76@ = 0
34@ = 0
if 
  is_int_lvar_greater_than_int_lvar 48@ > 47@
goto_if_false @GUNS1_25872
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_25842
do_fade 1000 {direction} Fade.Out

:GUNS1_25771
if 
  get_fading_status 
goto_if_false @GUNS1_25795
wait 0
goto @GUNS1_25771

:GUNS1_25795
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_25818
if 
  get_fading_status 
goto_if_false @GUNS1_25842
wait 0
goto @GUNS1_25818

:GUNS1_25842
print 'RYD1_32' {time} 5000 {flag} 1
goto @GUNS1_40642
goto @GUNS1_25897

:GUNS1_25872
if 
  47@ == 0
goto_if_false @GUNS1_25897
51@ = 7

:GUNS1_25897
if 
  7 > 34@
goto_if_false @GUNS1_26420
if 
  61@(34@,7i) == 0
goto_if_false @GUNS1_26080
if 
  does_object_exist 117@(34@,7i)
goto_if_false @GUNS1_26053
if 
  is_object_in_water 117@(34@,7i)
goto_if_false @GUNS1_26046
mark_object_as_no_longer_needed 117@(34@,7i)
if 
  81@(34@,7i) == 1
goto_if_false @GUNS1_26028
remove_blip 110@(34@,7i)
81@(34@,7i) = 0

:GUNS1_26028
61@(34@,7i) = 1
47@ -= 1

:GUNS1_26046
goto @GUNS1_26080

:GUNS1_26053
mark_object_as_no_longer_needed 117@(34@,7i)
61@(34@,7i) = 1
47@ -= 1

:GUNS1_26080
if and
  61@(34@,7i) == 0
  60@ == 0
goto_if_false @GUNS1_26406
if 
  locate_char_on_foot_object_3d $scplayer {object} 117@(34@,7i) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @GUNS1_26406
76@ = 1
if 
  75@ == 0
goto_if_false @GUNS1_26217
if 
  90@ == 0
goto_if_false @GUNS1_26210
print_help_forever 'GUNS118'
90@ = 1

:GUNS1_26210
75@ = 1

:GUNS1_26217
if 
  does_object_exist 117@(34@,7i)
goto_if_false @GUNS1_26406
if 
  is_char_holding_object $scplayer {handle} 117@(34@,7i)
goto_if_false @GUNS1_26406
clear_help 
75@ = 0
set_lvar_int_to_lvar_int 36@ = 34@
if and
  not is_char_dead 98@
  55@ == 0
goto_if_false @GUNS1_26388
if 
  not is_car_dead 102@
goto_if_false @GUNS1_26388
56@ = 0
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
clear_prints 
if 
  89@ == 0
goto_if_false @GUNS1_26381
print 'GUNS146' {time} 10000 {flag} 1
89@ = 1

:GUNS1_26381
55@ = 1

:GUNS1_26388
61@(34@,7i) = 1
60@ = 1

:GUNS1_26406
34@ += 1
goto @GUNS1_25897

:GUNS1_26420
if 
  76@ == 0
goto_if_false @GUNS1_26447
clear_help 
75@ = 0

:GUNS1_26447
if 
  60@ == 1
goto_if_false @GUNS1_26636
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_26636
if 
  is_char_holding_object $scplayer {handle} 117@(36@,7i)
goto_if_false @GUNS1_26515
goto @GUNS1_26636

:GUNS1_26515
61@(36@,7i) = 0
60@ = 0
remove_blip 104@
55@ = 0
if and
  56@ == 0
  35@ <> 5
goto_if_false @GUNS1_26636
clear_prints 
if 
  97@ == 0
goto_if_false @GUNS1_26613
print 'RYD1_40' {time} 5000 {flag} 1
goto @GUNS1_26629

:GUNS1_26613
print 'RYD1_2' {time} 5000 {flag} 1

:GUNS1_26629
56@ = 1

:GUNS1_26636
if and
  60@ == 1
  51@ == 6
goto_if_false @GUNS1_28121
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_28121
if 
  locate_char_on_foot_3d $scplayer {x} 154@ {y} 155@ {z} 24.0 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @GUNS1_28112
if 
  75@ == 0
goto_if_false @GUNS1_26816
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} 10000
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@
print_help_forever 'RYD1_30'
75@ = 1

:GUNS1_26816
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GUNS1_28105
clear_help 
clear_prints 
75@ = 0
35@ += 1
50@ += 50
72@ = 0
48@ -= 1
47@ -= 1
if 
  47@ == 0
goto_if_false @GUNS1_26960
if 
  257@ == 0
goto_if_false @GUNS1_26946
if 
  not is_char_dead 98@
goto_if_false @GUNS1_26939
start_char_facial_talk 98@ {duration} 4000

:GUNS1_26939
254@ = 33

:GUNS1_26946
51@ = 7
goto @GUNS1_27501

:GUNS1_26960
switch_start 35@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @GUNS1_27445 {caseNum1} 2 {caseLabel1} @GUNS1_27023 {caseNum2} 3 {caseLabel2} @GUNS1_27079 {caseNum3} 4 {caseLabel3} @GUNS1_27135 {caseNum4} 5 {caseLabel4} @GUNS1_27221 {caseNum5} 6 {caseLabel5} @GUNS1_27277 {caseNum6} 7 {caseLabel6} @GUNS1_27333 {caseNum7} 8 {caseLabel7} @GUNS1_27389

:GUNS1_27023
if 
  257@ == 0
goto_if_false @GUNS1_27072
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27065
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27065
254@ = 22

:GUNS1_27072
goto @GUNS1_27501

:GUNS1_27079
if 
  257@ == 0
goto_if_false @GUNS1_27128
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27121
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27121
254@ = 23

:GUNS1_27128
goto @GUNS1_27501

:GUNS1_27135
if 
  257@ == 0
goto_if_false @GUNS1_27214
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27177
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27177
97@ = 1
254@ = 31
if 
  not is_car_dead 102@
goto_if_false @GUNS1_27214
lock_car_doors 102@ {lockStatus} CarLock.Unlocked

:GUNS1_27214
goto @GUNS1_27501

:GUNS1_27221
if 
  257@ == 0
goto_if_false @GUNS1_27270
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27263
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27263
254@ = 25

:GUNS1_27270
goto @GUNS1_27501

:GUNS1_27277
if 
  257@ == 0
goto_if_false @GUNS1_27326
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27319
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27319
254@ = 27

:GUNS1_27326
goto @GUNS1_27501

:GUNS1_27333
if 
  257@ == 0
goto_if_false @GUNS1_27382
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27375
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27375
254@ = 24

:GUNS1_27382
goto @GUNS1_27501

:GUNS1_27389
if 
  257@ == 0
goto_if_false @GUNS1_27438
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27431
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27431
254@ = 32

:GUNS1_27438
goto @GUNS1_27501

:GUNS1_27445
if 
  257@ == 0
goto_if_false @GUNS1_27494
if 
  not is_char_dead 98@
goto_if_false @GUNS1_27487
start_char_facial_talk 98@ {duration} 4000

:GUNS1_27487
254@ = 26

:GUNS1_27494
goto @GUNS1_27501

:GUNS1_27501
clear_char_tasks 98@
task_shake_fist 98@
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2829.4121 {y} -1187.152 {z} 23.8422 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2833.251 {y} -1197.908 {z} 23.3976 {time} 2500
task_look_at_coord -1 {x} 2831.166 {y} -1169.792 {z} 23.9627 {time} 2500
task_stand_still -1 {time} 5000
task_go_straight_to_coord -1 {x} 2811.438 {y} -1185.9821 {z} 24.2707 {speed} MoveState.Walk {time} -2
task_look_at_coord -1 {x} 2808.1221 {y} -1190.884 {z} 24.3397 {time} 2500
task_look_at_coord -1 {x} 2808.4299 {y} -1177.4091 {z} 24.3621 {time} 2500
task_stand_still -1 {time} 5000
set_sequence_to_repeat 128@ {state} True
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@
60@ = 0
if 
  97@ <> 1
goto_if_false @GUNS1_27726
remove_blip 104@
55@ = 0

:GUNS1_27726
if and
  35@ > 1
  72@ == 0
goto_if_false @GUNS1_27902
52@ = 0
TIMERB = 0
if 
  does_object_exist 117@(36@,7i)
goto_if_false @GUNS1_27902

:GUNS1_27785
if 
  52@ == 0
goto_if_false @GUNS1_27857
if or
  not is_char_holding_object $scplayer {handle} 117@(36@,7i)
  is_char_dead $scplayer
  TIMERB > 5000
goto_if_false @GUNS1_27846
52@ = 1

:GUNS1_27846
wait 0
goto @GUNS1_27785

:GUNS1_27857
mark_object_as_no_longer_needed 117@(36@,7i)
delete_object 117@(36@,7i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
72@ = 1

:GUNS1_27902
if and
  56@ == 0
  47@ > 0
goto_if_false @GUNS1_28105
49@ = 0

:GUNS1_27934
if 
  7 > 49@
goto_if_false @GUNS1_28098
if 
  does_object_exist 117@(49@,7i)
goto_if_false @GUNS1_28084
if 
  81@(49@,7i) == 0
goto_if_false @GUNS1_28084
add_blip_for_object 117@(49@,7i) {var_handle} 110@(49@,7i)
163@, 164@, 165@ = get_object_coordinates 117@(49@,7i)
if 
  165@ > 700.0
goto_if_false @GUNS1_28073
set_blip_entry_exit 110@(49@,7i) {x} 2807.844 {y} -1176.985 {radius} 10.0

:GUNS1_28073
81@(49@,7i) = 1

:GUNS1_28084
49@ += 1
goto @GUNS1_27934

:GUNS1_28098
56@ = 1

:GUNS1_28105
goto @GUNS1_28121

:GUNS1_28112
clear_help 
75@ = 0

:GUNS1_28121
if 
  51@ == 7
goto_if_false @GUNS1_32228
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @GUNS1_31628
44@ = 0
43@ = 0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_player_control $player1 {state} False
clear_prints 
do_fade 1000 {direction} Fade.Out

:GUNS1_28206
if 
  get_fading_status 
goto_if_false @GUNS1_28230
wait 0
goto @GUNS1_28206

:GUNS1_28230
restore_camera_jumpcut 
set_radar_zoom 0
clear_prints 
switch_widescreen True
clear_prints 
clear_help 
clear_area 154@ {y} 155@ {z} 156@ {radius} 25.0 {clearParticles} True
delete_object 117@(36@,7i)
if 
  96@ == 0
goto_if_false @GUNS1_28307
clear_onscreen_counter $ryd1_noise_bar
display_radar True
94@ = 0

:GUNS1_28307
remove_blip 104@
55@ = 0
remove_char_elegantly 99@
delete_object 117@
delete_object 118@
delete_object 119@
delete_object 120@
delete_object 121@
delete_object 122@
delete_object 123@
mark_char_as_no_longer_needed 99@
mark_model_as_no_longer_needed 62
mark_model_as_no_longer_needed #DB_AMMO
mark_model_as_no_longer_needed 349
mark_object_as_no_longer_needed 117@
mark_object_as_no_longer_needed 118@
mark_object_as_no_longer_needed 119@
mark_object_as_no_longer_needed 120@
mark_object_as_no_longer_needed 121@
mark_object_as_no_longer_needed 122@
mark_object_as_no_longer_needed 123@
remove_animation "INT_HOUSE"
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_28710
clear_char_tasks 98@
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} -1.5 {yOffset} -4.0 {zOffset} 0.0
153@ = get_car_heading 102@
153@ -= 180.0
if 
  180.0 > 153@
goto_if_false @GUNS1_28530
153@ += 360.0

:GUNS1_28530
clear_char_tasks_immediately 98@
set_char_coordinates 98@ {x} 2811.1221 {y} -1186.549 {z} 24.2718
set_char_heading 98@ {heading} 17.5866
154@, 155@, 156@ = get_offset_from_char_in_world_coords 98@ {xOffset} 1.0 {yOffset} 1.0 {zOffset} 0.0
set_char_coordinates $scplayer {x} 154@ {y} 155@ {z} 156@
set_char_coordinates $scplayer {x} 2806.928 {y} -1178.8781 {z} 24.4038
set_char_heading $scplayer {heading} 260.0
154@, 155@, 156@ = get_offset_from_car_in_world_coords 102@ {xOffset} 3.5 {yOffset} 0.0 {zOffset} 0.0
157@, 158@, 159@ = get_offset_from_car_in_world_coords 102@ {xOffset} -3.5 {yOffset} 0.0 {zOffset} 0.0
lock_car_doors 102@ {lockStatus} CarLock.Unlocked
freeze_car_position 102@ {state} False

:GUNS1_28710
if 
  96@ == 1
goto_if_false @GUNS1_30743
request_model 346
request_model 280
request_model 596

:GUNS1_28743
if or
  not has_model_loaded 280
  not has_model_loaded 596
  not has_model_loaded 346
goto_if_false @GUNS1_28780
wait 0
goto @GUNS1_28743

:GUNS1_28780
custom_plate_for_next_car 596 {text} "TH3_P1G5"
103@ = create_car 596 {x} 2841.1599 {y} -1237.64 {z} 21.56
switch_car_siren 103@ {state} True
set_car_heading 103@ {heading} 10.0
100@ = create_char_inside_car 103@ {pedType} PedType.Cop {modelId} 280
give_weapon_to_char 100@ {weaponType} WeaponType.Pistol {ammo} 3000
101@ = create_char_as_passenger 103@ {pedType} PedType.Cop {modelId} 280 {seat} SeatId.BikeRear
give_weapon_to_char 101@ {weaponType} WeaponType.Pistol {ammo} 3000
if and
  not is_car_dead 102@
  not is_car_dead 103@
  not is_char_dead 100@
goto_if_false @GUNS1_29041
130@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 103@ {x} 2833.26 {y} -1186.6899 {z} 23.8 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 103@
task_aim_gun_at_char -1 {target} $scplayer {time} 2000
task_shoot_at_coord -1 {x} 154@ {y} 155@ {z} 156@ {time} 10000
close_sequence_task 130@
perform_sequence_task 100@ {sequence} 130@
clear_sequence_task 130@
131@ = open_sequence_task 
task_leave_car -1 {vehicle} 103@
task_aim_gun_at_char -1 {target} $scplayer {time} 2000
task_shoot_at_coord -1 {x} 157@ {y} 158@ {z} 159@ {time} 10000
close_sequence_task 131@

:GUNS1_29041
if 
  not is_car_dead 102@
goto_if_false @GUNS1_29062
close_all_car_doors 102@

:GUNS1_29062
set_fixed_camera_position 2835.0149 {y} -1176.0179 {z} 25.3376 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2834.2639 {y} -1176.677 {z} 25.3009 {switchStyle} SwitchType.JumpCut
request_collision 2835.0149 {y} -1176.0179
load_scene 2835.0149 {y} -1176.0179 {z} 25.3376
do_fade 1000 {direction} Fade.In

:GUNS1_29149
if 
  get_fading_status 
goto_if_false @GUNS1_29173
wait 0
goto @GUNS1_29149

:GUNS1_29173
TIMERA = 0
52@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_29257
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_30604
if 
  254@ <> 0
goto_if_false @GUNS1_29618
if 
  257@ == 0
goto_if_false @GUNS1_29343
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_29336
clear_mission_audio 256@

:GUNS1_29336
257@ = 1

:GUNS1_29343
if 
  257@ == 1
goto_if_false @GUNS1_29380
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_29380
if 
  257@ == 2
goto_if_false @GUNS1_29440
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_29440
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_29440
if 
  257@ == 3
goto_if_false @GUNS1_29618
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_29557
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_29522
255@ = 2
256@ = 1
goto @GUNS1_29536

:GUNS1_29522
255@ = 1
256@ = 2

:GUNS1_29536
254@ = 0
257@ = 0
goto @GUNS1_29618

:GUNS1_29557
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_29618
if 
  76 > 254@
goto_if_false @GUNS1_29618
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_29618
switch_start 259@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GUNS1_30384 {caseNum1} 0 {caseLabel1} @GUNS1_29681 {caseNum2} 1 {caseLabel2} @GUNS1_29776 {caseNum3} 2 {caseLabel3} @GUNS1_29860 {caseNum4} 3 {caseLabel4} @GUNS1_30300 {caseNum5} -1 {caseLabel5} @GUNS1_30597 {caseNum6} -1 {caseLabel6} @GUNS1_30597 {caseNum7} -1 {caseLabel7} @GUNS1_30597

:GUNS1_29681
if 
  257@ == 0
goto_if_false @GUNS1_29769
set_fixed_camera_position 2835.0149 {y} -1176.0179 {z} 25.3376 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2834.2639 {y} -1176.677 {z} 25.3009 {switchStyle} SwitchType.JumpCut
254@ = 43
259@ = 1
262@ = get_game_timer 

:GUNS1_29769
goto @GUNS1_30597

:GUNS1_29776
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_29853
if 
  257@ == 0
goto_if_false @GUNS1_29853
254@ = 44
259@ = 2
262@ = get_game_timer 

:GUNS1_29853
goto @GUNS1_30597

:GUNS1_29860
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30293
if 
  not is_char_dead 100@
goto_if_false @GUNS1_30293
38@ = get_script_task_status 100@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_30293
38@ = get_sequence_progress 100@
if or
  38@ == 1
  TIMERA > 10000
goto_if_false @GUNS1_30293
if 
  70@ == 0
goto_if_false @GUNS1_30293
if 
  not is_char_dead 101@
goto_if_false @GUNS1_30293
if 
  not is_car_dead 103@
goto_if_false @GUNS1_30293
if 
  257@ == 0
goto_if_false @GUNS1_30293
254@ = 45
259@ = 3
262@ = get_game_timer 
perform_sequence_task 101@ {sequence} 131@
clear_sequence_task 131@
set_fixed_camera_position 2807.873 {y} -1178.356 {z} 24.8046 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2808.7209 {y} -1178.87 {z} 24.9362 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 102@
goto_if_false @GUNS1_30286
if 
  not is_char_dead 98@
goto_if_false @GUNS1_30286
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2814.042 {y} -1181.376 {z} 24.2701 {speed} MoveState.Run {time} 6000
set_next_desired_move_state MoveState.Run
task_enter_car_as_driver -1 {vehicle} 102@ {time} 5000
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Run {time} 6000
set_next_desired_move_state MoveState.Run
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 3000 {seat} SeatId.BikeRear
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_30286
70@ = 1

:GUNS1_30293
goto @GUNS1_30597

:GUNS1_30300
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30377
if 
  257@ == 0
goto_if_false @GUNS1_30377
254@ = 46
259@ = 4
262@ = get_game_timer 

:GUNS1_30377
goto @GUNS1_30597

:GUNS1_30384
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_30590
if 
  257@ == 0
goto_if_false @GUNS1_30590
if and
  not is_char_dead $scplayer
  not is_car_dead 102@
goto_if_false @GUNS1_30495
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_30495
clear_char_tasks $scplayer
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_30495
if 
  not is_char_dead 98@
goto_if_false @GUNS1_30583
if 
  not is_car_dead 102@
goto_if_false @GUNS1_30583
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_30556
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_30556
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_30583
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_30583
258@ = 1

:GUNS1_30590
goto @GUNS1_30597

:GUNS1_30597
goto @GUNS1_29257

:GUNS1_30604
264@ = 0
print 'GUNS123' {time} 10000 {flag} 1
106@ = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
71@ = 1
69@ = 1
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @GUNS1_30688
alter_wanted_level $player1 {wantedLevel} 2

:GUNS1_30688
if 
  not is_char_dead 100@
goto_if_false @GUNS1_30712
task_kill_char_on_foot 100@ {target} $scplayer

:GUNS1_30712
if 
  not is_char_dead 101@
goto_if_false @GUNS1_30736
task_kill_char_on_foot 101@ {target} $scplayer

:GUNS1_30736
goto @GUNS1_31333

:GUNS1_30743
if 
  not is_car_dead 102@
goto_if_false @GUNS1_30764
close_all_car_doors 102@

:GUNS1_30764
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
set_fixed_camera_position 2818.6699 {y} -1182.264 {z} 24.8706 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2817.7019 {y} -1182.449 {z} 25.0366 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
request_collision 2814.042 {y} -1181.376
load_scene 2814.042 {y} -1181.376 {z} 24.2701

:GUNS1_30867
if 
  get_fading_status 
goto_if_false @GUNS1_30891
wait 0
goto @GUNS1_30867

:GUNS1_30891
if and
  not is_car_dead 102@
  not is_char_dead 98@
goto_if_false @GUNS1_31036
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2814.042 {y} -1181.376 {z} 24.2701 {speed} MoveState.Walk {time} 6000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 102@ {time} 6000
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
128@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2812.0911 {y} -1186.198 {z} 24.2658 {speed} MoveState.Walk {time} 6000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 102@ {time} 4000 {seat} SeatId.BikeRear
close_sequence_task 128@
perform_sequence_task 98@ {sequence} 128@
clear_sequence_task 128@

:GUNS1_31036
264@ = 1
TIMERB = 0
52@ = 0

:GUNS1_31057
if 
  52@ == 0
goto_if_false @GUNS1_31288
if and
  not is_char_dead 98@
  not is_car_dead 102@
goto_if_false @GUNS1_31137
if and
  is_char_sitting_in_car 98@ {vehicle} 102@
  is_char_sitting_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_31130
52@ = 1

:GUNS1_31130
goto @GUNS1_31251

:GUNS1_31137
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @GUNS1_31244
do_fade 1000 {direction} Fade.Out

:GUNS1_31173
if 
  get_fading_status 
goto_if_false @GUNS1_31197
wait 0
goto @GUNS1_31173

:GUNS1_31197
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:GUNS1_31220
if 
  get_fading_status 
goto_if_false @GUNS1_31244
wait 0
goto @GUNS1_31220

:GUNS1_31244
goto @GUNS1_40642

:GUNS1_31251
if 
  TIMERB > 10000
goto_if_false @GUNS1_31277
52@ = 1

:GUNS1_31277
wait 0
goto @GUNS1_31057

:GUNS1_31288
clear_prints 
print 'GUNS124' {time} 10000 {flag} 1
107@ = add_blip_for_coord 2742.0 {y} -2008.0 {z} 13.0
68@ = 1

:GUNS1_31333
if 
  not is_char_dead 98@
goto_if_false @GUNS1_31421
if 
  not is_car_dead 102@
goto_if_false @GUNS1_31421
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_31394
warp_char_into_car_as_passenger 98@ {handle} 102@ {seat} SeatId.BikeRear

:GUNS1_31394
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_31421
warp_char_into_car $scplayer {vehicle} 102@

:GUNS1_31421
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  not is_char_dead 98@
goto_if_false @GUNS1_31495
if 
  not is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_31495
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 98@
set_group_follow_status $Players_Group {state} False
listen_to_player_group_commands 98@ {state} False

:GUNS1_31495
set_police_ignore_player $player1 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
58@ = 0
57@ = 0
55@ = 0
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
51@ = 8
43@ = 0
goto @GUNS1_32228

:GUNS1_31628
if 
  254@ <> 0
goto_if_false @GUNS1_31899
if 
  257@ == 0
goto_if_false @GUNS1_31692
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_31685
clear_mission_audio 256@

:GUNS1_31685
257@ = 1

:GUNS1_31692
if 
  257@ == 1
goto_if_false @GUNS1_31729
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_31729
if 
  257@ == 2
goto_if_false @GUNS1_31789
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_31789
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_31789
if 
  257@ == 3
goto_if_false @GUNS1_31899
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_31899
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_31871
255@ = 2
256@ = 1
goto @GUNS1_31885

:GUNS1_31871
255@ = 1
256@ = 2

:GUNS1_31885
254@ = 0
257@ = 0

:GUNS1_31899
if and
  not is_char_dead 98@
  3 > 43@
goto_if_false @GUNS1_32149
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_32142
if 
  43@ == 0
goto_if_false @GUNS1_32000
if 
  257@ == 0
goto_if_false @GUNS1_31993
start_char_facial_talk $scplayer {duration} 3000
254@ = 38
43@ = 1

:GUNS1_31993
goto @GUNS1_32142

:GUNS1_32000
if 
  43@ == 1
goto_if_false @GUNS1_32086
if 
  257@ == 0
goto_if_false @GUNS1_32079
if 
  not is_char_dead 99@
goto_if_false @GUNS1_32065
start_char_facial_talk 99@ {duration} 4000
stop_char_facial_talk $scplayer

:GUNS1_32065
254@ = 36
43@ = 2

:GUNS1_32079
goto @GUNS1_32142

:GUNS1_32086
if 
  257@ == 0
goto_if_false @GUNS1_32142
if 
  not is_char_dead 98@
goto_if_false @GUNS1_32128
start_char_facial_talk 98@ {duration} 4000

:GUNS1_32128
254@ = 37
43@ = 3

:GUNS1_32142
goto @GUNS1_32167

:GUNS1_32149
clear_prints 
print 'RYD1_44' {time} 4000 {flag} 1

:GUNS1_32167
if 
  55@ == 0
goto_if_false @GUNS1_32228
remove_blip 104@
if 
  not is_car_dead 102@
goto_if_false @GUNS1_32228
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
55@ = 1

:GUNS1_32228
if 
  51@ == 8
goto_if_false @GUNS1_40633
if 
  254@ <> 0
goto_if_false @GUNS1_32535
if 
  257@ == 0
goto_if_false @GUNS1_32310
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_32303
clear_mission_audio 256@

:GUNS1_32303
257@ = 1

:GUNS1_32310
if 
  257@ == 1
goto_if_false @GUNS1_32347
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_32347
if 
  257@ == 2
goto_if_false @GUNS1_32425
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_32425
play_mission_audio 255@
if 
  254@ <> 76
goto_if_false @GUNS1_32418
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1

:GUNS1_32418
257@ = 3

:GUNS1_32425
if 
  257@ == 3
goto_if_false @GUNS1_32535
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_32535
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_32507
255@ = 2
256@ = 1
goto @GUNS1_32521

:GUNS1_32507
255@ = 1
256@ = 2

:GUNS1_32521
254@ = 0
257@ = 0

:GUNS1_32535
if 
  264@ == 0
goto_if_false @GUNS1_33075
if 
  266@ == 0
goto_if_false @GUNS1_33068
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_33068
switch_start 265@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @GUNS1_32966 {caseNum1} 0 {caseLabel1} @GUNS1_32647 {caseNum2} 1 {caseLabel2} @GUNS1_32714 {caseNum3} 2 {caseLabel3} @GUNS1_32798 {caseNum4} 3 {caseLabel4} @GUNS1_32882 {caseNum5} -1 {caseLabel5} @GUNS1_33068 {caseNum6} -1 {caseLabel6} @GUNS1_33068 {caseNum7} -1 {caseLabel7} @GUNS1_33068

:GUNS1_32647
if 
  257@ == 0
goto_if_false @GUNS1_32707
if 
  not is_char_dead 98@
goto_if_false @GUNS1_32695
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_32695
265@ = 1
262@ = get_game_timer 

:GUNS1_32707
goto @GUNS1_33068

:GUNS1_32714
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32791
if 
  257@ == 0
goto_if_false @GUNS1_32791
254@ = 47
265@ = 2
262@ = get_game_timer 

:GUNS1_32791
goto @GUNS1_33068

:GUNS1_32798
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32875
if 
  257@ == 0
goto_if_false @GUNS1_32875
254@ = 48
265@ = 3
262@ = get_game_timer 

:GUNS1_32875
goto @GUNS1_33068

:GUNS1_32882
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_32959
if 
  257@ == 0
goto_if_false @GUNS1_32959
254@ = 49
265@ = 4
262@ = get_game_timer 

:GUNS1_32959
goto @GUNS1_33068

:GUNS1_32966
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33061
if 
  257@ == 0
goto_if_false @GUNS1_33061
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33054
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_33054
266@ = 1

:GUNS1_33061
goto @GUNS1_33068

:GUNS1_33068
goto @GUNS1_35104

:GUNS1_33075
if 
  264@ == 1
goto_if_false @GUNS1_33545
if 
  268@ == 0
goto_if_false @GUNS1_33538
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_33538
switch_start 267@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @GUNS1_33429 {caseNum1} 0 {caseLabel1} @GUNS1_33187 {caseNum2} 1 {caseLabel2} @GUNS1_33261 {caseNum3} 2 {caseLabel3} @GUNS1_33345 {caseNum4} -1 {caseLabel4} @GUNS1_33538 {caseNum5} -1 {caseLabel5} @GUNS1_33538 {caseNum6} -1 {caseLabel6} @GUNS1_33538 {caseNum7} -1 {caseLabel7} @GUNS1_33538

:GUNS1_33187
if 
  257@ == 0
goto_if_false @GUNS1_33254
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33235
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_33235
254@ = 50
267@ = 1
262@ = get_game_timer 

:GUNS1_33254
goto @GUNS1_33538

:GUNS1_33261
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33338
if 
  257@ == 0
goto_if_false @GUNS1_33338
254@ = 51
267@ = 2
262@ = get_game_timer 

:GUNS1_33338
goto @GUNS1_33538

:GUNS1_33345
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33422
if 
  257@ == 0
goto_if_false @GUNS1_33422
254@ = 52
267@ = 3
262@ = get_game_timer 

:GUNS1_33422
goto @GUNS1_33538

:GUNS1_33429
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33531
if 
  257@ == 0
goto_if_false @GUNS1_33531
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33517
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_33517
268@ = 1
264@ = 3

:GUNS1_33531
goto @GUNS1_33538

:GUNS1_33538
goto @GUNS1_35104

:GUNS1_33545
if 
  264@ == 2
goto_if_false @GUNS1_33911
if 
  272@ == 0
goto_if_false @GUNS1_33904
switch_start 271@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_33802 {caseNum1} 0 {caseLabel1} @GUNS1_33644 {caseNum2} 1 {caseLabel2} @GUNS1_33718 {caseNum3} -1 {caseLabel3} @GUNS1_33904 {caseNum4} -1 {caseLabel4} @GUNS1_33904 {caseNum5} -1 {caseLabel5} @GUNS1_33904 {caseNum6} -1 {caseLabel6} @GUNS1_33904 {caseNum7} -1 {caseLabel7} @GUNS1_33904

:GUNS1_33644
if 
  257@ == 0
goto_if_false @GUNS1_33711
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33692
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_33692
254@ = 64
271@ = 1
262@ = get_game_timer 

:GUNS1_33711
goto @GUNS1_33904

:GUNS1_33718
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33795
if 
  257@ == 0
goto_if_false @GUNS1_33795
254@ = 65
271@ = 2
262@ = get_game_timer 

:GUNS1_33795
goto @GUNS1_33904

:GUNS1_33802
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_33897
if 
  257@ == 0
goto_if_false @GUNS1_33897
if 
  not is_char_dead 98@
goto_if_false @GUNS1_33890
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_33890
272@ = 1

:GUNS1_33897
goto @GUNS1_33904

:GUNS1_33904
goto @GUNS1_35104

:GUNS1_33911
if 
  264@ == 3
goto_if_false @GUNS1_35104
if 
  270@ == 0
goto_if_false @GUNS1_35104
if 
  not is_message_being_displayed 
goto_if_false @GUNS1_35104
switch_start 269@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @GUNS1_35002 {caseNum1} 0 {caseLabel1} @GUNS1_34088 {caseNum2} 1 {caseLabel2} @GUNS1_34162 {caseNum3} 2 {caseLabel3} @GUNS1_34246 {caseNum4} 3 {caseLabel4} @GUNS1_34330 {caseNum5} 4 {caseLabel5} @GUNS1_34414 {caseNum6} 5 {caseLabel6} @GUNS1_34498 {caseNum7} 6 {caseLabel7} @GUNS1_34582
switch_continued 7 {caseLabel1} @GUNS1_34666 {caseNum2} 8 {caseLabel2} @GUNS1_34750 {caseNum3} 9 {caseLabel3} @GUNS1_34834 {caseNum4} 10 {caseLabel4} @GUNS1_34918 {caseNum5} -1 {caseLabel5} @GUNS1_35104 {caseNum6} -1 {caseLabel6} @GUNS1_35104 {caseNum7} -1 {caseLabel7} @GUNS1_35104 {caseNum8} -1 {caseLabel8} @GUNS1_35104 {caseNum9} -1 {caseLabel9} @GUNS1_35104

:GUNS1_34088
if 
  257@ == 0
goto_if_false @GUNS1_34155
if 
  not is_char_dead 98@
goto_if_false @GUNS1_34136
shut_char_up_for_scripted_speech 98@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:GUNS1_34136
254@ = 53
269@ = 1
262@ = get_game_timer 

:GUNS1_34155
goto @GUNS1_35104

:GUNS1_34162
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34239
if 
  257@ == 0
goto_if_false @GUNS1_34239
254@ = 54
269@ = 2
262@ = get_game_timer 

:GUNS1_34239
goto @GUNS1_35104

:GUNS1_34246
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34323
if 
  257@ == 0
goto_if_false @GUNS1_34323
254@ = 55
269@ = 3
262@ = get_game_timer 

:GUNS1_34323
goto @GUNS1_35104

:GUNS1_34330
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34407
if 
  257@ == 0
goto_if_false @GUNS1_34407
254@ = 56
269@ = 4
262@ = get_game_timer 

:GUNS1_34407
goto @GUNS1_35104

:GUNS1_34414
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34491
if 
  257@ == 0
goto_if_false @GUNS1_34491
254@ = 57
269@ = 5
262@ = get_game_timer 

:GUNS1_34491
goto @GUNS1_35104

:GUNS1_34498
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34575
if 
  257@ == 0
goto_if_false @GUNS1_34575
254@ = 58
269@ = 6
262@ = get_game_timer 

:GUNS1_34575
goto @GUNS1_35104

:GUNS1_34582
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34659
if 
  257@ == 0
goto_if_false @GUNS1_34659
254@ = 59
269@ = 7
262@ = get_game_timer 

:GUNS1_34659
goto @GUNS1_35104

:GUNS1_34666
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34743
if 
  257@ == 0
goto_if_false @GUNS1_34743
254@ = 60
269@ = 8
262@ = get_game_timer 

:GUNS1_34743
goto @GUNS1_35104

:GUNS1_34750
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34827
if 
  257@ == 0
goto_if_false @GUNS1_34827
254@ = 61
269@ = 9
262@ = get_game_timer 

:GUNS1_34827
goto @GUNS1_35104

:GUNS1_34834
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34911
if 
  257@ == 0
goto_if_false @GUNS1_34911
254@ = 62
269@ = 10
262@ = get_game_timer 

:GUNS1_34911
goto @GUNS1_35104

:GUNS1_34918
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_34995
if 
  257@ == 0
goto_if_false @GUNS1_34995
254@ = 63
269@ = 11
262@ = get_game_timer 

:GUNS1_34995
goto @GUNS1_35104

:GUNS1_35002
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_35097
if 
  257@ == 0
goto_if_false @GUNS1_35097
if 
  not is_char_dead 98@
goto_if_false @GUNS1_35090
shut_char_up_for_scripted_speech 98@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_35090
270@ = 1

:GUNS1_35097
goto @GUNS1_35104

:GUNS1_35104
if 
  not is_char_dead 98@
goto_if_false @GUNS1_35742
if 
  not is_car_dead 102@
goto_if_false @GUNS1_35742
if 
  not is_char_in_car $scplayer {vehicle} 102@
goto_if_false @GUNS1_35375
54@ = 0
if 
  55@ == 0
goto_if_false @GUNS1_35368
if 
  68@ == 1
goto_if_false @GUNS1_35210
remove_blip 107@
68@ = 0

:GUNS1_35210
if 
  69@ == 1
goto_if_false @GUNS1_35240
remove_blip 106@
69@ = 0

:GUNS1_35240
if 
  57@ == 1
goto_if_false @GUNS1_35270
remove_blip 108@
57@ = 0

:GUNS1_35270
if 
  is_message_being_displayed 
goto_if_false @GUNS1_35290
44@ = 1

:GUNS1_35290
clear_prints 
print 'GUNS128' {time} 2000 {flag} 1
set_player_group_to_follow_never $player1 {state} True
104@ = add_blip_for_car 102@
set_blip_as_friendly 104@ {state} True
55@ = 1
254@ = 76
257@ = 0
clear_mission_audio 255@
clear_mission_audio 256@
264@ = 99

:GUNS1_35368
goto @GUNS1_35742

:GUNS1_35375
54@ = 1
if 
  55@ == 1
goto_if_false @GUNS1_35433
set_player_group_to_follow_never $player1 {state} False
remove_blip 104@
264@ = 3
55@ = 0
goto @GUNS1_35742

:GUNS1_35433
if 
  not is_char_in_car 98@ {vehicle} 102@
goto_if_false @GUNS1_35698
59@ = 0
if 
  57@ == 0
goto_if_false @GUNS1_35604
if 
  68@ == 1
goto_if_false @GUNS1_35507
remove_blip 107@
68@ = 0

:GUNS1_35507
if 
  69@ == 1
goto_if_false @GUNS1_35537
remove_blip 106@
69@ = 0

:GUNS1_35537
if 
  is_message_being_displayed 
goto_if_false @GUNS1_35557
44@ = 1

:GUNS1_35557
clear_prints 
print 'GUNS143' {time} 2000 {flag} 1
108@ = add_blip_for_char 98@
set_blip_as_friendly 108@ {state} True
264@ = 99
57@ = 1

:GUNS1_35604
if 
  58@ == 0
goto_if_false @GUNS1_35648
task_enter_car_as_passenger 98@ {vehicle} 102@ {time} -2 {seat} SeatId.BikeRear
58@ = 1
goto @GUNS1_35691

:GUNS1_35648
38@ = get_script_task_status 98@ {taskId} 1482
if and
  not is_int_lvar_equal_to_constant 38@ == 0
  not is_int_lvar_equal_to_constant 38@ == 1
goto_if_false @GUNS1_35691
58@ = 0

:GUNS1_35691
goto @GUNS1_35742

:GUNS1_35698
if 
  57@ == 1
goto_if_false @GUNS1_35735
remove_blip 108@
57@ = 0
264@ = 3

:GUNS1_35735
59@ = 1

:GUNS1_35742
if and
  59@ == 1
  54@ == 1
goto_if_false @GUNS1_40633
if 
  68@ == 1
goto_if_false @GUNS1_39819
if 
  locate_char_in_car_3d $scplayer {x} 2742.0 {y} -2008.0 {z} 13.0 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @GUNS1_39749
clear_prints 
print 'RYD1_34' {time} 3000 {flag} 1
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2741.241 {y} -2011.274 {z} 13.5869 {xRadius} 2.9 {yRadius} 3.2 {zRadius} 5.0 {drawSphere} False
goto_if_false @GUNS1_39672
set_player_control $player1 {state} False
clear_prints 
do_fade 1500 {direction} Fade.Out

:GUNS1_35915
if 
  get_fading_status 
goto_if_false @GUNS1_35939
wait 0
goto @GUNS1_35915

:GUNS1_35939
clear_area 2741.241 {y} -2011.274 {z} 13.5869 {radius} 10.0 {clearParticles} True
switch_widescreen True
remove_blip 107@
clear_prints 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_36014
if 
  is_group_member 98@ {handle} $Players_Group
goto_if_false @GUNS1_36014
remove_char_from_group 98@

:GUNS1_36014
load_scene 2745.47 {y} -2003.59 {z} 15.53
set_fixed_camera_position 2745.47 {y} -2003.59 {z} 15.53 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2737.3401 {y} -2002.24 {z} 11.65 {switchStyle} SwitchType.JumpCut
if 
  88@ == 1
goto_if_false @GUNS1_36123
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
88@ = 0

:GUNS1_36123
if 
  is_char_in_any_car $scplayer
goto_if_false @GUNS1_36166
warp_char_from_car_to_coord $scplayer {x} 2741.0 {y} -2007.14 {z} 13.0
goto @GUNS1_36186

:GUNS1_36166
set_char_coordinates $scplayer {x} 2741.0 {y} -2008.14 {z} 13.0

:GUNS1_36186
if 
  not is_char_dead 98@
goto_if_false @GUNS1_36265
if 
  is_char_in_any_car 98@
goto_if_false @GUNS1_36245
warp_char_from_car_to_coord 98@ {x} 2740.0 {y} -2008.14 {z} 13.0
goto @GUNS1_36265

:GUNS1_36245
set_char_coordinates 98@ {x} 2740.0 {y} -2007.14 {z} 13.0

:GUNS1_36265
if 
  not is_car_dead 102@
goto_if_false @GUNS1_36291
delete_car 102@
mark_car_as_no_longer_needed 102@

:GUNS1_36291
clear_area 2741.0 {y} -2005.0 {z} 14.14 {radius} 50.0 {clearParticles} True
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_36385
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_37564
if 
  254@ <> 0
goto_if_false @GUNS1_36746
if 
  257@ == 0
goto_if_false @GUNS1_36471
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_36464
clear_mission_audio 256@

:GUNS1_36464
257@ = 1

:GUNS1_36471
if 
  257@ == 1
goto_if_false @GUNS1_36508
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_36508
if 
  257@ == 2
goto_if_false @GUNS1_36568
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_36568
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_36568
if 
  257@ == 3
goto_if_false @GUNS1_36746
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_36685
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_36650
255@ = 2
256@ = 1
goto @GUNS1_36664

:GUNS1_36650
255@ = 1
256@ = 2

:GUNS1_36664
254@ = 0
257@ = 0
goto @GUNS1_36746

:GUNS1_36685
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_36746
if 
  76 > 254@
goto_if_false @GUNS1_36746
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_36746
switch_start 259@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @GUNS1_37459 {caseNum1} 0 {caseLabel1} @GUNS1_36809 {caseNum2} 1 {caseLabel2} @GUNS1_37122 {caseNum3} 2 {caseLabel3} @GUNS1_37249 {caseNum4} -1 {caseLabel4} @GUNS1_37557 {caseNum5} -1 {caseLabel5} @GUNS1_37557 {caseNum6} -1 {caseLabel6} @GUNS1_37557 {caseNum7} -1 {caseLabel7} @GUNS1_37557

:GUNS1_36809
if 
  257@ == 0
goto_if_false @GUNS1_37115
if 
  not is_char_dead 98@
goto_if_false @GUNS1_36858
start_char_facial_talk 98@ {duration} 4000
shut_char_up_for_scripted_speech 98@ {state} True

:GUNS1_36858
254@ = 66
259@ = 1
262@ = get_game_timer 
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37084
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2741.0 {y} -2005.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_go_straight_to_coord -1 {x} 2741.0 {y} -2001.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_turn_char_to_face_char -1 {target} 98@
close_sequence_task 129@
perform_sequence_task $scplayer {sequence} 129@
clear_sequence_task 129@
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2740.0 {y} -2005.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_go_straight_to_coord -1 {x} 2740.0 {y} -2001.0 {z} 14.14 {speed} MoveState.Walk {time} 6000
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 129@
perform_sequence_task 98@ {sequence} 129@
clear_sequence_task 129@

:GUNS1_37084
do_fade 1500 {direction} Fade.In

:GUNS1_37091
if 
  get_fading_status 
goto_if_false @GUNS1_37115
wait 0
goto @GUNS1_37091

:GUNS1_37115
goto @GUNS1_37557

:GUNS1_37122
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37242
if 
  257@ == 0
goto_if_false @GUNS1_37242
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37209
start_char_facial_talk $scplayer {duration} 4000
stop_char_facial_talk 98@

:GUNS1_37209
254@ = 67
52@ = 0
TIMERA = 0
259@ = 2
262@ = get_game_timer 

:GUNS1_37242
goto @GUNS1_37557

:GUNS1_37249
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37452
if 
  257@ == 0
goto_if_false @GUNS1_37452
38@ = get_script_task_status $scplayer {taskId} 1560
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 8000
goto_if_false @GUNS1_37452
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37360

:GUNS1_37360
close_garage 'BURG_LK'

:GUNS1_37371
if 
  not is_garage_closed 'BURG_LK'
goto_if_false @GUNS1_37404
wait 0
goto @GUNS1_37371

:GUNS1_37404
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37433
start_char_facial_talk 98@ {duration} 5000
stop_char_facial_talk $scplayer

:GUNS1_37433
254@ = 68
259@ = 3
262@ = get_game_timer 

:GUNS1_37452
goto @GUNS1_37557

:GUNS1_37459
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_37550
if 
  257@ == 0
goto_if_false @GUNS1_37550
clear_char_tasks $scplayer
if 
  not is_char_dead 98@
goto_if_false @GUNS1_37543
clear_char_tasks 98@

:GUNS1_37543
258@ = 1

:GUNS1_37550
goto @GUNS1_37557

:GUNS1_37557
goto @GUNS1_36385

:GUNS1_37564
do_fade 1000 {direction} Fade.Out

:GUNS1_37571
if 
  get_fading_status 
goto_if_false @GUNS1_37595
wait 0
goto @GUNS1_37571

:GUNS1_37595
set_char_coordinates $scplayer {x} 2161.0 {y} -1664.0 {z} 22.0
set_fixed_camera_position 2168.155 {y} -1686.374 {z} 15.6932 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2168.094 {y} -1685.377 {z} 15.7351 {switchStyle} SwitchType.JumpCut
request_collision 2168.155 {y} -1686.374
load_scene 2168.155 {y} -1686.374 {z} 15.6932
do_fade 1000 {direction} Fade.In

:GUNS1_37702
if 
  get_fading_status 
goto_if_false @GUNS1_37726
wait 0
goto @GUNS1_37702

:GUNS1_37726
clear_help 
print_help_forever 'RYD1_88'

:GUNS1_37739
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_37763
wait 0
goto @GUNS1_37739

:GUNS1_37763
TIMERA = 0
52@ = 0

:GUNS1_37777
if 
  52@ == 0
goto_if_false @GUNS1_37837
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_37826
52@ = 1

:GUNS1_37826
wait 0
goto @GUNS1_37777

:GUNS1_37837
clear_help 
print_help_forever 'RYD1_90'

:GUNS1_37850
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_37874
wait 0
goto @GUNS1_37850

:GUNS1_37874
TIMERA = 0
52@ = 0

:GUNS1_37888
if 
  52@ == 0
goto_if_false @GUNS1_37948
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_37937
52@ = 1

:GUNS1_37937
wait 0
goto @GUNS1_37888

:GUNS1_37948
clear_help 
do_fade 1000 {direction} Fade.Out

:GUNS1_37957
if 
  get_fading_status 
goto_if_false @GUNS1_37981
wait 0
goto @GUNS1_37957

:GUNS1_37981
set_char_coordinates $scplayer {x} 2272.0 {y} -1792.0 {z} 14.0
set_fixed_camera_position 2255.5391 {y} -1783.703 {z} 13.6049 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2254.8821 {y} -1784.4449 {z} 13.7333 {switchStyle} SwitchType.JumpCut
request_collision 2254.208 {y} -1790.233
load_scene 2254.208 {y} -1790.233 {z} 13.1057
switch_car_generator $gen_car19 {amount} 0
clear_area 2251.0281 {y} -1788.661 {z} 12.7625 {radius} 10.0 {clearParticles} True
102@ = create_car 609 {x} 2251.0281 {y} -1788.661 {z} 12.9625
set_car_heading 102@ {heading} 358.9591
do_fade 1000 {direction} Fade.In

:GUNS1_38152
if 
  get_fading_status 
goto_if_false @GUNS1_38176
wait 0
goto @GUNS1_38152

:GUNS1_38176
print_help_forever 'RYD1_89'

:GUNS1_38187
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_38211
wait 0
goto @GUNS1_38187

:GUNS1_38211
TIMERA = 0
52@ = 0

:GUNS1_38225
if 
  52@ == 0
goto_if_false @GUNS1_38285
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_38274
52@ = 1

:GUNS1_38274
wait 0
goto @GUNS1_38225

:GUNS1_38285
clear_help 
print_help_forever 'RYD1_91'

:GUNS1_38298
if 
  not is_help_message_being_displayed 
goto_if_false @GUNS1_38322
wait 0
goto @GUNS1_38298

:GUNS1_38322
TIMERA = 0
52@ = 0

:GUNS1_38336
if 
  52@ == 0
goto_if_false @GUNS1_38396
if or
  TIMERA > 4000
  not is_player_playing $player1
goto_if_false @GUNS1_38385
52@ = 1

:GUNS1_38385
wait 0
goto @GUNS1_38336

:GUNS1_38396
clear_help 
do_fade 1000 {direction} Fade.Out

:GUNS1_38405
if 
  get_fading_status 
goto_if_false @GUNS1_38429
wait 0
goto @GUNS1_38405

:GUNS1_38429
if 
  not is_car_dead 102@
goto_if_false @GUNS1_38455
delete_car 102@
mark_car_as_no_longer_needed 102@

:GUNS1_38455
set_char_coordinates $scplayer {x} 2741.0 {y} -2001.0 {z} 12.5547
set_char_heading $scplayer {heading} 80.0
switch_widescreen True
set_fixed_camera_position 2745.47 {y} -2003.59 {z} 15.53 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2737.3401 {y} -2002.24 {z} 11.65 {switchStyle} SwitchType.JumpCut
request_collision 2745.47 {y} -2003.59
load_scene 2745.47 {y} -2003.59 {z} 15.53
if 
  not is_char_dead 98@
goto_if_false @GUNS1_38631
set_char_coordinates 98@ {x} 2740.0 {y} -2001.0 {z} 12.5547
set_char_heading 98@ {heading} 230.0
task_turn_char_to_face_char $scplayer {target} 98@
task_turn_char_to_face_char 98@ {target} $scplayer

:GUNS1_38631
do_fade 1000 {direction} Fade.In

:GUNS1_38638
if 
  get_fading_status 
goto_if_false @GUNS1_38662
wait 0
goto @GUNS1_38638

:GUNS1_38662
254@ = 0
255@ = 1
256@ = 2
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0

:GUNS1_38732
wait 0
if 
  258@ == 0
goto_if_false @GUNS1_39558
if 
  254@ <> 0
goto_if_false @GUNS1_39093
if 
  257@ == 0
goto_if_false @GUNS1_38818
if 
  has_mission_audio_loaded 256@
goto_if_false @GUNS1_38811
clear_mission_audio 256@

:GUNS1_38811
257@ = 1

:GUNS1_38818
if 
  257@ == 1
goto_if_false @GUNS1_38855
load_mission_audio 255@ {audioId} 172@(254@,82i)
257@ = 2

:GUNS1_38855
if 
  257@ == 2
goto_if_false @GUNS1_38915
if 
  has_mission_audio_loaded 255@
goto_if_false @GUNS1_38915
play_mission_audio 255@
print_now $ryd1_text(254@,82s) {time} 10000 {flag} 1
257@ = 3

:GUNS1_38915
if 
  257@ == 3
goto_if_false @GUNS1_39093
if 
  has_mission_audio_finished 255@
goto_if_false @GUNS1_39032
clear_this_print $ryd1_text(254@,82s)
if 
  255@ == 1
goto_if_false @GUNS1_38997
255@ = 2
256@ = 1
goto @GUNS1_39011

:GUNS1_38997
255@ = 1
256@ = 2

:GUNS1_39011
254@ = 0
257@ = 0
goto @GUNS1_39093

:GUNS1_39032
if 
  not has_mission_audio_loaded 256@
goto_if_false @GUNS1_39093
if 
  76 > 254@
goto_if_false @GUNS1_39093
set_lvar_int_to_lvar_int 263@ = 254@
263@ += 1
load_mission_audio 256@ {audioId} 172@(263@,82i)

:GUNS1_39093
switch_start 259@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @GUNS1_39453 {caseNum1} 0 {caseLabel1} @GUNS1_39156 {caseNum2} 1 {caseLabel2} @GUNS1_39265 {caseNum3} -1 {caseLabel3} @GUNS1_39551 {caseNum4} -1 {caseLabel4} @GUNS1_39551 {caseNum5} -1 {caseLabel5} @GUNS1_39551 {caseNum6} -1 {caseLabel6} @GUNS1_39551 {caseNum7} -1 {caseLabel7} @GUNS1_39551

:GUNS1_39156
if 
  257@ == 0
goto_if_false @GUNS1_39258
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39203
start_char_facial_talk $scplayer {duration} 5000
stop_char_facial_talk 98@

:GUNS1_39203
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
254@ = 74
259@ = 1
262@ = get_game_timer 

:GUNS1_39258
goto @GUNS1_39551

:GUNS1_39265
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_39446
if 
  257@ == 0
goto_if_false @GUNS1_39446
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39357
start_char_facial_talk 98@ {duration} 5000
stop_char_facial_talk $scplayer
clear_char_tasks $scplayer

:GUNS1_39357
254@ = 75
259@ = 2
TIMERA = 0
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39441
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2761.0 {y} -2002.0 {z} 14.0 {speed} MoveState.Walk {time} 10000
close_sequence_task 129@
perform_sequence_task 98@ {sequence} 129@
clear_sequence_task 129@

:GUNS1_39441
262@ = get_game_timer 

:GUNS1_39446
goto @GUNS1_39551

:GUNS1_39453
261@ = get_game_timer 
set_lvar_int_to_lvar_int 260@ = 261@
sub_int_lvar_from_int_lvar 260@ -= 262@
if 
  260@ > 1000
goto_if_false @GUNS1_39544
if 
  257@ == 0
goto_if_false @GUNS1_39544
if 
  not is_char_dead 98@
goto_if_false @GUNS1_39537
stop_char_facial_talk 98@
stop_char_facial_talk $scplayer

:GUNS1_39537
258@ = 1

:GUNS1_39544
goto @GUNS1_39551

:GUNS1_39551
goto @GUNS1_38732

:GUNS1_39558
52@ = 0

:GUNS1_39565
if 
  52@ == 0
goto_if_false @GUNS1_39638
38@ = get_script_task_status $scplayer {taskId} 1560
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 6000
goto_if_false @GUNS1_39627
52@ = 1

:GUNS1_39627
wait 0
goto @GUNS1_39565

:GUNS1_39638
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
shut_char_up_for_scripted_speech $scplayer {state} False
goto @GUNS1_40660
goto @GUNS1_39742

:GUNS1_39672
  locate_char_any_means_3d $scplayer {x} 2741.0 {y} -2010.0 {z} 13.5 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 5.0 {drawSphere} True
if 
  not is_garage_open 'BURG_LK'
goto_if_false @GUNS1_39742
open_garage 'BURG_LK'

:GUNS1_39742
goto @GUNS1_39819

:GUNS1_39749
  locate_char_any_means_3d $scplayer {x} 2742.0 {y} -2000.0 {z} 13.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 5.0 {drawSphere} True
if 
  not is_garage_closed 'BURG_LK'
goto_if_false @GUNS1_39819
close_garage 'BURG_LK'

:GUNS1_39819
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @GUNS1_40234
268@ = 0
if 
  96@ == 1
goto_if_false @GUNS1_40091
if 
  locate_char_in_car_2d $scplayer {x} 2067.3999 {y} -1831.2 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @GUNS1_39999
if and
  71@ == 1
  74@ == 0
goto_if_false @GUNS1_39992
if and
  not is_char_dead 100@
  not is_car_dead 103@
  not is_car_dead 102@
goto_if_false @GUNS1_39978
switch_car_siren 103@ {state} False
task_car_mission 100@ {vehicle} 103@ {targetVehicle} 102@ {missionId} CarMission.EmergencyVehicleStop {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.StopForCars

:GUNS1_39978
74@ = 1
71@ = 0

:GUNS1_39992
goto @GUNS1_40091

:GUNS1_39999
if and
  74@ == 1
  71@ == 0
goto_if_false @GUNS1_40091
if and
  not is_char_dead 100@
  not is_car_dead 103@
  not is_car_dead 102@
goto_if_false @GUNS1_40077
switch_car_siren 103@ {state} True
task_car_mission 100@ {vehicle} 103@ {targetVehicle} 102@ {missionId} CarMission.RamPlayerClose {cruiseSpeed} 33.0 {drivingStyle} DrivingMode.PloughThrough

:GUNS1_40077
74@ = 0
71@ = 1

:GUNS1_40091
if 
  69@ == 0
goto_if_false @GUNS1_40227
if 
  68@ == 1
goto_if_false @GUNS1_40148
remove_blip 107@
clear_prints 
264@ = 2
68@ = 0

:GUNS1_40148
106@ = add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray
69@ = 1
clear_prints 
print 'GUNS123' {time} 5000 {flag} 1
if 
  78@ == 1
goto_if_false @GUNS1_40227
264@ = 2
78@ = 0

:GUNS1_40227
goto @GUNS1_40633

:GUNS1_40234
272@ = 0
if 
  44@ == 1
goto_if_false @GUNS1_40332
if 
  11 > 43@
goto_if_false @GUNS1_40332
print 'GUNS135' {time} 4000 {flag} 1
43@ -= 1
if 
  0 > 43@
goto_if_false @GUNS1_40325
43@ = 0

:GUNS1_40325
44@ = 0

:GUNS1_40332
if 
  68@ == 0
goto_if_false @GUNS1_40548
if 
  69@ == 1
goto_if_false @GUNS1_40380
remove_blip 106@
69@ = 0

:GUNS1_40380
clear_prints 
if 
  locate_char_in_car_2d $scplayer {x} 2067.3999 {y} -1831.2 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @GUNS1_40448
wait 3000
print 'GUNS124' {time} 5000 {flag} 1
goto @GUNS1_40464

:GUNS1_40448
print 'GUNS124' {time} 5000 {flag} 1

:GUNS1_40464
if 
  78@ == 0
goto_if_false @GUNS1_40514
if 
  96@ == 1
goto_if_false @GUNS1_40507
264@ = 1

:GUNS1_40507
goto @GUNS1_40521

:GUNS1_40514
264@ = 3

:GUNS1_40521
107@ = add_blip_for_coord 2742.0 {y} -2008.0 {z} 13.0
68@ = 1

:GUNS1_40548
if and
  71@ == 1
  74@ == 0
goto_if_false @GUNS1_40633
if and
  not is_char_dead 100@
  not is_car_dead 103@
  not is_car_dead 102@
goto_if_false @GUNS1_40633
switch_car_siren 103@ {state} False
task_car_mission 100@ {vehicle} 103@ {targetVehicle} 102@ {missionId} CarMission.Cruise {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.AvoidCars
71@ = 0

:GUNS1_40633
goto @GUNS1_4925
return 

:GUNS1_40642
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:GUNS1_40660
set_lvar_int_to_lvar_int 50@ = 35@
50@ *= 50
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
set_police_ignore_player $player1 {state} False
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'RYDER_1'
$flag_ryder_mission_counter += 1
return 

:GUNS1_40737
$onmission = 0
$disable_mod_garage = 0
$timer_mobile_start = get_game_timer 
switch_car_generator $gen_car19 {amount} 101
set_radar_zoom 0
if 
  is_player_playing $player1
goto_if_false @GUNS1_40790
shut_char_up_for_scripted_speech $scplayer {state} False

:GUNS1_40790
set_police_ignore_player $player1 {state} False
switch_entry_exit 'BURHOUS' {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
remove_blip 108@
remove_blip 105@
remove_blip 104@
remove_blip 109@
remove_blip 106@
remove_blip 107@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
clear_onscreen_counter $ryd1_noise_bar
display_radar True
display_hud True
clear_onscreen_timer $ryd1_time_to_daylight
mark_model_as_no_longer_needed 609
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 62
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed #DB_AMMO
remove_animation "CARRY"
remove_animation "GANGS"
remove_animation "POLICE"
remove_animation "INT_HOUSE"
remove_animation "ON_LOOKERS"
remove_animation "CAR_CHAT"
remove_char_elegantly 98@
mark_char_as_no_longer_needed 99@
mark_char_as_no_longer_needed 100@
mark_char_as_no_longer_needed 101@
mark_car_as_no_longer_needed 103@
mark_car_as_no_longer_needed 102@
mark_object_as_no_longer_needed 117@
mark_object_as_no_longer_needed 118@
mark_object_as_no_longer_needed 119@
mark_object_as_no_longer_needed 120@
mark_object_as_no_longer_needed 121@
mark_object_as_no_longer_needed 122@
mark_object_as_no_longer_needed 123@
if 
  not is_char_dead 99@
goto_if_false @GUNS1_41099
set_char_decision_maker 99@ {handleOrTemplate} 41@
set_char_relationship 99@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:GUNS1_41099
unload_special_character 1
remove_decision_maker 39@
remove_decision_maker 40@
remove_decision_maker 41@
remove_decision_maker 42@
switch_ped_roads_back_to_original 2775.0 {leftBottomY} -1196.4 {leftBottomZ} 20.0 {rightTopX} 2840.0 {rightTopY} -1141.0 {rightTopZ} 35.0
mission_has_finished 
return 

//-------------Mission 25---------------
// Originally: Catalyst

:RYDER3
script_name 'RYDER3'
gosub @RYDER3_47
if 
  has_deatharrest_been_executed 
goto_if_false @RYDER3_38
gosub @RYDER3_18057

:RYDER3_38
gosub @RYDER3_18237
terminate_this_script 

:RYDER3_47
register_mission_given 
$onmission = 1
make_room_in_player_gang_for_mission_peds 1
89@ = 0
$r3_rnd = 0
95@ = 2
102@ = 0
load_mission_text 'RYDER3'
72@ = load_char_decision_maker DecisionMakerType.Tough
105@ = load_char_decision_maker DecisionMakerType.Empty
set_car_density_multiplier 0.5
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:RYDER3_135
if 
  get_fading_status 
goto_if_false @RYDER3_159
wait 0
goto @RYDER3_135

:RYDER3_159
set_area_visible 2
load_cutscene 'RYDER3A'

:RYDER3_174
if 
  not has_cutscene_loaded 
goto_if_false @RYDER3_198
wait 0
goto @RYDER3_174

:RYDER3_198
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:RYDER3_215
if 
  not has_cutscene_finished 
goto_if_false @RYDER3_239
wait 0
goto @RYDER3_215

:RYDER3_239
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:RYDER3_253
if 
  get_fading_status 
goto_if_false @RYDER3_277
wait 0
goto @RYDER3_253

:RYDER3_277
clear_cutscene 
clear_prints 
switch_widescreen False
set_area_visible 0
switch_car_generator $gen_car6 {amount} 0
request_model 600
request_model 352
request_model 346
request_model #CR_GUNCRATE
request_model #CR_AMMOBOX
request_model 105
request_animation "BOX"
request_animation "RYDER"
request_animation "SWAT"
request_model 108
request_model 109
request_model 110
request_model 537
request_model 569
request_model 492
request_model 105
request_model 106
load_special_character 1 {modelName} 'RYDER2'
load_all_models_now 

:RYDER3_399
if or
  not has_model_loaded 600
  not has_model_loaded 352
  not has_model_loaded 346
  not has_model_loaded #CR_GUNCRATE
  not has_model_loaded #CR_AMMOBOX
goto_if_false @RYDER3_446
wait 0
goto @RYDER3_399

:RYDER3_446
if or
  not has_model_loaded 105
  not has_special_character_loaded 1
  not has_animation_loaded "BOX"
  not has_animation_loaded "RYDER"
goto_if_false @RYDER3_492
wait 0
goto @RYDER3_446

:RYDER3_492
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 537
  not has_model_loaded 569
goto_if_false @RYDER3_536
wait 0
goto @RYDER3_492

:RYDER3_536
if or
  not has_model_loaded 492
  not has_model_loaded 105
  not has_model_loaded 106
  not has_animation_loaded "SWAT"
goto_if_false @RYDER3_579
wait 0
goto @RYDER3_536

:RYDER3_579
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_2059
gosub @RYDER3_18930
set_player_control $player1 {state} False
51@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 51@ {state} True
close_sequence_task 51@
52@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 52@ {state} True
close_sequence_task 52@
76@ = open_sequence_task 
task_play_anim -1 {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 2000
close_sequence_task 76@
75@ = open_sequence_task 
task_play_anim -1 {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 20000
set_sequence_to_repeat 75@ {state} True
close_sequence_task 75@
40@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 2290.584 {y} -1142.411 {z} 25.7144 {speed} MoveState.Run {vehicle} -1
task_go_to_coord_any_means -1 {x} 2288.5391 {y} -1133.7531 {z} 25.7076 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 253.83
task_stay_in_same_place -1 {state} True
close_sequence_task 40@
66@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 2289.092 {y} -1117.049 {z} 25.9062 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 66@
67@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 2285.1101 {y} -1117.1169 {z} 25.9062 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 67@
clear_area 2477.135 {y} -1683.116 {z} 12.3782 {radius} 10.0 {clearParticles} True
clear_area 2469.2241 {y} -1672.496 {z} 12.484 {radius} 10.0 {clearParticles} True
clear_area 2472.783 {y} -1685.696 {z} 12.5153 {radius} 0.5 {clearParticles} False
load_scene 2472.783 {y} -1685.696 {z} 12.5153
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_1446
set_char_coordinates $scplayer {x} 2472.783 {y} -1685.696 {z} 12.5153
set_char_heading $scplayer {heading} 336.6331
set_camera_behind_player 

:RYDER3_1446
set_car_model_components 600 {component1} 4 {component2} 4
custom_plate_for_next_car 600 {text} "_SHERM__"
108@ = create_car 600 {x} 2476.0349 {y} -1678.379 {z} 12.3457
set_can_burst_car_tyres 108@ {state} False
set_car_heading 108@ {heading} 43.9007
set_car_health 108@ {health} 2000
99@ = add_blip_for_car 108@
set_blip_as_friendly 99@ {state} True
set_car_only_damaged_by_player 108@ {state} True
change_car_colour 108@ {color1} 84 {color2} 84
set_car_cruise_speed 108@ {maxSpeed} 5.0
change_blip_display 99@ {display} BlipDisplay.Neither
set_car_straight_line_distance 108@ {distance} 250
$ryder = create_char_as_passenger 108@ {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $ryder {state} False
unload_special_character 1
set_char_heading $ryder {heading} 121.9883
task_stay_in_same_place $ryder {state} True
set_char_health $ryder {health} 800
set_char_max_health $ryder {maxHealth} 800
set_char_suffers_critical_hits $ryder {state} False
set_char_never_targetted $ryder {state} True
give_weapon_to_char $ryder {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_cant_be_dragged_out $ryder {state} True
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_relationship $ryder {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker $ryder {handleOrTemplate} 72@
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
109@ = 0

:RYDER3_1724
if 
  10 > 109@
goto_if_false @RYDER3_1767
110@(109@,10i) = -1
109@ += 1
goto @RYDER3_1724

:RYDER3_1767
109@ = 0
$collected_guns = 0
$r3_total_guns = 10
122@ = 0
123@ = -1
124@ = 5
if 
  $onmission == 0
goto_if_false @RYDER3_1848
create_object_no_offset #GUNBOX {x} $x {y} $y {z} $z {var_handle} 110@(109@,10i)

:RYDER3_1848
89@ = 0
switch_roads_off 2284.0 {leftBottomY} -1151.0 {leftBottomZ} 10.0 {rightTopX} 2288.0 {rightTopY} -1147.0 {rightTopZ} 30.0
switch_roads_off 2287.321 {leftBottomY} -1132.571 {leftBottomZ} 10.0 {rightTopX} 2360.8391 {rightTopY} -1177.134 {rightTopZ} 40.0
switch_roads_off 2311.676 {leftBottomY} -1375.397 {leftBottomZ} 10.0 {rightTopX} 2292.365 {rightTopY} -1303.1021 {rightTopZ} 40.0
switch_roads_off 2268.6951 {leftBottomY} -1138.541 {leftBottomZ} 10.0 {rightTopX} 2282.3621 {rightTopY} -1159.604 {rightTopZ} 40.0
switch_roads_off 2307.5371 {leftBottomY} -1162.624 {leftBottomZ} 10.0 {rightTopX} 2266.3511 {rightTopY} -1136.99 {rightTopZ} 40.0
switch_random_trains False
set_create_random_gang_members False
125@ = 0
126@ = 0
127@ = -151
TIMERA = 0
set_wanted_multiplier 0.0

:RYDER3_2059
128@ = create_object_no_offset #TMP_BIN {x} 2295.3911 {y} -1129.812 {z} 26.4
set_object_heading 128@ {heading} 187.2863
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_2119
task_enter_car_as_driver $scplayer {vehicle} 108@ {time} 5000

:RYDER3_2119
set_fixed_camera_position 2473.6421 {y} -1674.005 {z} 13.6679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2473.833 {y} -1674.969 {z} 13.4843 {switchStyle} SwitchType.JumpCut
gosub @RYDER3_19023
print_now 'RYD3_Z' {time} 6000 {flag} 1
TIMERB = 0

:RYDER3_2200
if 
  4000 > TIMERB
goto_if_false @RYDER3_2247
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER3_2240

:RYDER3_2240
goto @RYDER3_2200

:RYDER3_2247
gosub @RYDER3_18958

:RYDER3_2254
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18050
wait 0
gosub @RYDER3_19056
gosub @RYDER3_20126
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @RYDER3_2310
goto @RYDER3_18136

:RYDER3_2310
if 
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 275.0 {yRadius} 275.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @RYDER3_2372
set_car_density_multiplier 0.0
goto @RYDER3_2397

:RYDER3_2372
if 
  10 > 89@
goto_if_false @RYDER3_2397
set_car_density_multiplier 1.0

:RYDER3_2397
if 
  102@ == 0
goto_if_false @RYDER3_3444
if and
  has_model_loaded 537
  has_model_loaded 569
goto_if_false @RYDER3_3444
129@ = create_mission_train 10 {x} 2278.177 {y} -1144.882 {z} 27.5107 {direction} True
lock_car_doors 129@ {lockStatus} CarLock.Locked
set_train_speed 129@ {speed} 0.0
set_train_cruise_speed 129@ {speed} 0.0
freeze_car_position 129@ {state} True
163@ = get_train_caboose 129@
74@ = create_object #AMMOTRN_OBJ {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 74@ {handle} 163@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
91@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 91@ {handle} 163@ {xOffset} 0.5 {yOffset} -5.5 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 145.0
92@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 92@ {handle} 163@ {xOffset} 0.5 {yOffset} 6.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 60.0
93@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 93@ {handle} 163@ {xOffset} -0.5 {yOffset} 8.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 130.0
61@ = create_object #CR_GUNCRATE {x} 2287.7439 {y} -1131.75 {z} 25.7431
set_object_heading 61@ {heading} 85.7739
62@ = create_object #CR_GUNCRATE {x} 2287.3579 {y} -1131.0909 {z} 25.7449
set_object_heading 62@ {heading} 209.4727
63@ = create_object #CR_GUNCRATE {x} 2287.665 {y} -1127.056 {z} 25.8118
set_object_heading 63@ {heading} 97.4572
64@ = create_object #CR_GUNCRATE {x} 2287.4309 {y} -1125.5861 {z} 25.8256
set_object_heading 64@ {heading} 176.9109
102@ = 1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
142@ = create_char PedType.CivMale {modelId} 106 {x} 2291.969 {y} -1131.63 {z} 25.7468
set_char_heading 142@ {heading} 188.6236
task_play_anim_non_interruptable 142@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_collision 142@ {state} False
set_char_never_targetted 142@ {state} True
set_char_decision_maker 142@ {handleOrTemplate} 105@
143@ = create_char PedType.CivMale {modelId} 108 {x} 2290.6599 {y} -1146.0229 {z} 25.7507
set_char_heading 143@ {heading} 180.7254
task_play_anim_non_interruptable 143@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_collision 143@ {state} False
set_char_never_targetted 143@ {state} True
set_char_decision_maker 143@ {handleOrTemplate} 105@
130@ = create_char PedType.Mission2 {modelId} 108 {x} 2295.6831 {y} -1128.682 {z} 25.8647
set_char_heading 130@ {heading} 175.3117
task_stay_in_same_place 130@ {state} True
set_char_is_target_priority 130@ {state} True
131@ = create_char PedType.Mission2 {modelId} 109 {x} 2289.1399 {y} -1131.1331 {z} 25.7539
set_char_heading 131@ {heading} 190.007
task_stay_in_same_place 131@ {state} True
set_char_is_target_priority 131@ {state} True
132@ = create_char PedType.Mission2 {modelId} 109 {x} 2293.741 {y} -1130.343 {z} 25.8004
set_char_heading 132@ {heading} 178.0093
task_toggle_duck 132@ {state} True
task_stay_in_same_place 132@ {state} True
set_char_is_target_priority 132@ {state} True
133@ = create_char PedType.Mission2 {modelId} 110 {x} 2285.522 {y} -1135.369 {z} 28.0
set_char_heading 133@ {heading} 202.6963
set_char_only_damaged_by_player 133@ {state} True
task_stay_in_same_place 133@ {state} True
set_char_is_target_priority 133@ {state} True
144@ = create_char PedType.Mission1 {modelId} 105 {x} 2296.282 {y} -1158.184 {z} 25.6529
set_char_heading 144@ {heading} 9.002
task_toggle_duck 144@ {state} True
task_stay_in_same_place 144@ {state} True
145@ = create_char PedType.Mission1 {modelId} 106 {x} 2287.5239 {y} -1150.041 {z} 25.7574
set_char_heading 145@ {heading} 347.622
task_stay_in_same_place 145@ {state} True
task_toggle_duck 145@ {state} True
146@ = create_char PedType.Mission1 {modelId} 105 {x} 2301.2571 {y} -1157.3719 {z} 25.597
set_char_heading 146@ {heading} 9.002
task_stay_in_same_place 146@ {state} True

:RYDER3_3444
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_3561
if and
  is_char_in_car $scplayer {vehicle} 108@
  89@ == 0
goto_if_false @RYDER3_3561
TIMERB = 0
set_radio_channel RadioChannel.RadioLosSantos
switch_random_trains False
122@ = 4
89@ += 1
change_blip_display 99@ {display} BlipDisplay.Neither
34@ = add_blip_for_coord 2278.177 {y} -1144.882 {z} 27.5107
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
101@ = 1

:RYDER3_3561
if or
  89@ == 1
  89@ == 2
goto_if_false @RYDER3_4014
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_4014
if 
  is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_3688
if 
  101@ <> 1
goto_if_false @RYDER3_3681
change_blip_display 99@ {display} BlipDisplay.Neither
change_blip_display 34@ {display} BlipDisplay.Both
print_now 'RYD3_Z' {time} 6000 {flag} 1
101@ = 1

:RYDER3_3681
goto @RYDER3_4014

:RYDER3_3688
if 
  101@ == 1
goto_if_false @RYDER3_3959
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_3729
shut_char_up_for_scripted_speech $ryder {state} False

:RYDER3_3729
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_3752
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_3752
change_blip_display 34@ {display} BlipDisplay.Neither
change_blip_display 99@ {display} BlipDisplay.Both
$r3_rnd = generate_random_int_in_range 0 {max} 3
switch_start $r3_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER3_3952 {caseNum1} 0 {caseLabel1} @RYDER3_3838 {caseNum2} 1 {caseLabel2} @RYDER3_3876 {caseNum3} 2 {caseLabel3} @RYDER3_3914 {caseNum4} -1 {caseLabel4} @RYDER3_3952 {caseNum5} -1 {caseLabel5} @RYDER3_3952 {caseNum6} -1 {caseLabel6} @RYDER3_3952 {caseNum7} -1 {caseLabel7} @RYDER3_3952

:RYDER3_3838
set_lvar_text_label 106@s = 'RYD3_NA'
set_lvar_int_to_constant 96@ = 34062
gosub @RYDER3_20106
goto @RYDER3_3952

:RYDER3_3876
set_lvar_text_label 106@s = 'RYD3_NB'
set_lvar_int_to_constant 96@ = 34063
gosub @RYDER3_20106
goto @RYDER3_3952

:RYDER3_3914
set_lvar_text_label 106@s = 'RYD3_NC'
set_lvar_int_to_constant 96@ = 34064
gosub @RYDER3_20106
goto @RYDER3_3952

:RYDER3_3952
101@ = 2

:RYDER3_3959
if and
  95@ == 2
  101@ == 2
goto_if_false @RYDER3_4007
print_now 'RYD3_Q' {time} 4000 {flag} 1
101@ = 0

:RYDER3_4007
87@ = 1

:RYDER3_4014
if 
  89@ == 1
goto_if_false @RYDER3_5344
if 
  87@ == 0
goto_if_false @RYDER3_4772
if and
  95@ == 2
  85@ == 0
goto_if_false @RYDER3_4159
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_4098
shut_char_up_for_scripted_speech $ryder {state} True

:RYDER3_4098
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_4121
shut_char_up_for_scripted_speech $scplayer {state} True

:RYDER3_4121
set_lvar_text_label 106@s = 'RYD3_AD'
set_lvar_int_to_constant 96@ = 34003
gosub @RYDER3_20106
85@ = 1

:RYDER3_4159
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_4222
set_lvar_text_label 106@s = 'RYD3_AE'
set_lvar_int_to_constant 96@ = 34004
gosub @RYDER3_20106
85@ = 2

:RYDER3_4222
if and
  95@ == 2
  85@ == 2
goto_if_false @RYDER3_4285
set_lvar_text_label 106@s = 'RYD3_BA'
set_lvar_int_to_constant 96@ = 34005
gosub @RYDER3_20106
85@ = 3

:RYDER3_4285
if and
  95@ == 2
  85@ == 3
goto_if_false @RYDER3_4348
set_lvar_text_label 106@s = 'RYD3_BB'
set_lvar_int_to_constant 96@ = 34006
gosub @RYDER3_20106
85@ = 4

:RYDER3_4348
if and
  95@ == 2
  85@ == 4
goto_if_false @RYDER3_4411
set_lvar_text_label 106@s = 'RYD3_BC'
set_lvar_int_to_constant 96@ = 34007
gosub @RYDER3_20106
85@ = 5

:RYDER3_4411
if and
  95@ == 2
  85@ == 5
goto_if_false @RYDER3_4474
set_lvar_text_label 106@s = 'RYD3_BD'
set_lvar_int_to_constant 96@ = 34008
gosub @RYDER3_20106
85@ = 6

:RYDER3_4474
if and
  95@ == 2
  85@ == 6
goto_if_false @RYDER3_4537
set_lvar_text_label 106@s = 'RYD3_BE'
set_lvar_int_to_constant 96@ = 34009
gosub @RYDER3_20106
85@ = 7

:RYDER3_4537
if and
  95@ == 2
  85@ == 7
goto_if_false @RYDER3_4600
set_lvar_text_label 106@s = 'RYD3_BG'
set_lvar_int_to_constant 96@ = 34011
gosub @RYDER3_20106
85@ = 8

:RYDER3_4600
if and
  95@ == 2
  85@ == 8
goto_if_false @RYDER3_4663
set_lvar_text_label 106@s = 'RYD3_BH'
set_lvar_int_to_constant 96@ = 34012
gosub @RYDER3_20106
85@ = 9

:RYDER3_4663
if and
  95@ == 2
  85@ == 9
goto_if_false @RYDER3_4772
set_lvar_text_label 106@s = 'RYD3_BJ'
set_lvar_int_to_constant 96@ = 34013
gosub @RYDER3_20106
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_4742
shut_char_up $ryder {state} False

:RYDER3_4742
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_4765
shut_char_up $scplayer {state} False

:RYDER3_4765
85@ = 10

:RYDER3_4772
if and
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
  102@ == 1
goto_if_false @RYDER3_5275
36@ = 0

:RYDER3_4834
if 
  not is_char_dead 130@(36@,6i)
goto_if_false @RYDER3_4997
task_stay_in_same_place 130@(36@,6i) {state} True
add_blip_for_char 130@(36@,6i) {var_handle} 136@(36@,6i)
if or
  36@ == 3
  36@ == 0
goto_if_false @RYDER3_4938
set_char_weapon_skill 130@(36@,6i) {skill} WeaponSkill.Pro
give_weapon_to_char 130@(36@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @RYDER3_4963

:RYDER3_4938
give_weapon_to_char 130@(36@,6i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 130@(36@,6i) {weaponType} WeaponType.MicroUzi

:RYDER3_4963
set_char_shoot_rate 130@(36@,6i) {rate} 50
set_char_accuracy 130@(36@,6i) {accuracy} 50
set_char_decision_maker 130@(36@,6i) {handleOrTemplate} 72@

:RYDER3_4997
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_4834
36@ = 0

:RYDER3_5025
if 
  not is_char_dead 144@(36@,4i)
goto_if_false @RYDER3_5247
set_char_never_targetted 144@(36@,4i) {state} True
task_stay_in_same_place 144@(36@,4i) {state} True
if 
  36@ == 1
goto_if_false @RYDER3_5116
set_char_health 144@(36@,4i) {health} 200
set_char_max_health 144@(36@,4i) {maxHealth} 200
goto @RYDER3_5138

:RYDER3_5116
set_char_health 144@(36@,4i) {health} 50
set_char_max_health 144@(36@,4i) {maxHealth} 50

:RYDER3_5138
if 
  36@ == 1
goto_if_false @RYDER3_5188
set_char_weapon_skill 144@(36@,4i) {skill} WeaponSkill.Pro
give_weapon_to_char 144@(36@,4i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @RYDER3_5213

:RYDER3_5188
give_weapon_to_char 144@(36@,4i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 144@(36@,4i) {weaponType} WeaponType.MicroUzi

:RYDER3_5213
set_char_shoot_rate 144@(36@,4i) {rate} 70
set_char_accuracy 144@(36@,4i) {accuracy} 70
set_char_decision_maker 144@(36@,4i) {handleOrTemplate} 72@

:RYDER3_5247
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_5025
102@ = 2

:RYDER3_5275
if 
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @RYDER3_5344
89@ += 1
TIMERB = 0
85@ = 0

:RYDER3_5344
if 
  89@ == 2
goto_if_false @RYDER3_6821
36@ = 0

:RYDER3_5369
if and
  is_char_dead 130@(36@,6i)
  130@(36@,6i) <> 0
goto_if_false @RYDER3_5449
if 
  does_blip_exist 136@(36@,6i)
goto_if_false @RYDER3_5449
remove_blip 136@(36@,6i)
136@(36@,6i) = 0
mark_char_as_no_longer_needed 130@(36@,6i)

:RYDER3_5449
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_5369
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_5524
if 
  is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_5517
goto @RYDER3_5524

:RYDER3_5517
88@ = 1

:RYDER3_5524
if and
  locate_char_any_means_3d $scplayer {x} 2290.6499 {y} -1148.723 {z} 25.7508 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
  86@ == 0
goto_if_false @RYDER3_6120
if 
  not is_char_dead 145@
goto_if_false @RYDER3_5756
149@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2291.7241 {y} -1138.6479 {z} 25.6745 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 130@
goto_if_false @RYDER3_5664
task_kill_char_on_foot -1 {target} 130@

:RYDER3_5664
if 
  not is_char_dead 131@
goto_if_false @RYDER3_5687
task_kill_char_on_foot -1 {target} 131@

:RYDER3_5687
if 
  not is_char_dead 132@
goto_if_false @RYDER3_5710
task_kill_char_on_foot -1 {target} 132@

:RYDER3_5710
if 
  not is_char_dead 133@
goto_if_false @RYDER3_5733
task_kill_char_on_foot -1 {target} 133@

:RYDER3_5733
close_sequence_task 149@
clear_char_tasks_immediately 145@
perform_sequence_task 145@ {sequence} 149@
clear_sequence_task 149@

:RYDER3_5756
if 
  not is_char_dead 144@
goto_if_false @RYDER3_5933
149@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2297.533 {y} -1137.578 {z} 25.8778 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 130@
goto_if_false @RYDER3_5841
task_kill_char_on_foot -1 {target} 130@

:RYDER3_5841
if 
  not is_char_dead 131@
goto_if_false @RYDER3_5864
task_kill_char_on_foot -1 {target} 131@

:RYDER3_5864
if 
  not is_char_dead 132@
goto_if_false @RYDER3_5887
task_kill_char_on_foot -1 {target} 132@

:RYDER3_5887
if 
  not is_char_dead 133@
goto_if_false @RYDER3_5910
task_kill_char_on_foot -1 {target} 133@

:RYDER3_5910
close_sequence_task 149@
clear_char_tasks_immediately 144@
perform_sequence_task 144@ {sequence} 149@
clear_sequence_task 149@

:RYDER3_5933
if 
  not is_char_dead 146@
goto_if_false @RYDER3_6106
149@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2290.1179 {y} -1141.78 {z} 25.7024 {speed} MoveState.Run {time} -2
flush_route 
if 
  not is_char_dead 130@
goto_if_false @RYDER3_6014
task_kill_char_on_foot -1 {target} 130@

:RYDER3_6014
if 
  not is_char_dead 131@
goto_if_false @RYDER3_6037
task_kill_char_on_foot -1 {target} 131@

:RYDER3_6037
if 
  not is_char_dead 132@
goto_if_false @RYDER3_6060
task_kill_char_on_foot -1 {target} 132@

:RYDER3_6060
if 
  not is_char_dead 133@
goto_if_false @RYDER3_6083
task_kill_char_on_foot -1 {target} 133@

:RYDER3_6083
close_sequence_task 149@
clear_char_tasks_immediately 146@
perform_sequence_task 146@ {sequence} 149@
clear_sequence_task 149@

:RYDER3_6106
86@ = 1
TIMERB = 0

:RYDER3_6120
if and
  88@ == 0
  86@ == 1
goto_if_false @RYDER3_6271
if and
  95@ == 2
  85@ == 0
goto_if_false @RYDER3_6208
set_lvar_text_label 106@s = 'RYD3_CA'
set_lvar_int_to_constant 96@ = 34014
gosub @RYDER3_20106
85@ = 1

:RYDER3_6208
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_6271
set_lvar_text_label 106@s = 'RYD3_CB'
set_lvar_int_to_constant 96@ = 34015
gosub @RYDER3_20106
85@ = 2

:RYDER3_6271
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
goto_if_false @RYDER3_6436
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_6379
print_now 'RYD3_Q' {time} 5000 {flag} 1
if 
  39@ == 0
goto_if_false @RYDER3_6372
remove_blip 34@
34@ = add_blip_for_car 108@
set_blip_as_friendly 34@ {state} True
39@ = 1

:RYDER3_6372
goto @RYDER3_6436

:RYDER3_6379
if 
  39@ == 1
goto_if_false @RYDER3_6436
remove_blip 34@
34@ = add_blip_for_coord 2278.177 {y} -1144.882 {z} 27.5107
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
39@ = 0

:RYDER3_6436
if and
  not is_char_dead $scplayer
  not is_car_dead 108@
goto_if_false @RYDER3_6821
if 
  locate_stopped_car_3d 108@ {x} 2289.5911 {y} -1135.625 {z} 25.6863 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @RYDER3_6821
remove_blip 34@
if 
  does_blip_exist 99@
goto_if_false @RYDER3_6533
change_blip_display 99@ {display} BlipDisplay.Neither

:RYDER3_6533
if or
  not is_char_dead 130@
  not is_char_dead 131@
  not is_char_dead 132@
  not is_char_dead 133@
goto_if_false @RYDER3_6595
set_lvar_text_label 106@s = 'RYD3_CC'
set_lvar_int_to_constant 96@ = 34016
gosub @RYDER3_20106

:RYDER3_6595
TIMERA = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_6814
if 
  not is_car_dead 108@
goto_if_false @RYDER3_6814
if 
  is_char_in_car $ryder {vehicle} 108@
goto_if_false @RYDER3_6814
148@ = open_sequence_task 
task_leave_car -1 {vehicle} 108@
task_toggle_duck -1 {state} True
task_go_to_coord_any_means -1 {x} 2295.104 {y} -1148.0291 {z} 25.7612 {speed} MoveState.Run {vehicle} -1
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} True
if 
  not is_char_dead 130@
goto_if_false @RYDER3_6727
task_kill_char_on_foot -1 {target} 130@

:RYDER3_6727
if 
  not is_char_dead 131@
goto_if_false @RYDER3_6750
task_kill_char_on_foot -1 {target} 131@

:RYDER3_6750
if 
  not is_char_dead 132@
goto_if_false @RYDER3_6773
task_kill_char_on_foot -1 {target} 132@

:RYDER3_6773
if 
  not is_char_dead 133@
goto_if_false @RYDER3_6796
task_kill_char_on_foot -1 {target} 133@

:RYDER3_6796
close_sequence_task 148@
clear_char_tasks $ryder
perform_sequence_task $ryder {sequence} 148@

:RYDER3_6814
89@ += 1

:RYDER3_6821
if and
  89@ == 3
  TIMERA > 4000
goto_if_false @RYDER3_6924
if 
  not is_char_dead 131@
goto_if_false @RYDER3_6870
task_stay_in_same_place 131@ {state} False

:RYDER3_6870
if or
  not is_char_dead 130@
  not is_char_dead 131@
  not is_char_dead 132@
  not is_char_dead 133@
goto_if_false @RYDER3_6917
print_now 'RYD3_M' {time} 5000 {flag} 1

:RYDER3_6917
89@ += 1

:RYDER3_6924
if 
  89@ == 4
goto_if_false @RYDER3_7170
36@ = 0

:RYDER3_6949
if and
  is_char_dead 130@(36@,6i)
  130@(36@,6i) <> 0
goto_if_false @RYDER3_7029
if 
  does_blip_exist 136@(36@,6i)
goto_if_false @RYDER3_7029
remove_blip 136@(36@,6i)
136@(36@,6i) = 0
mark_char_as_no_longer_needed 130@(36@,6i)

:RYDER3_7029
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_6949
if and
  is_char_dead 130@
  is_char_dead 131@
  is_char_dead 132@
  is_char_dead 133@
goto_if_false @RYDER3_7113
if 
  84@ == 0
goto_if_false @RYDER3_7113
TIMERA = 0
84@ = 1

:RYDER3_7113
if and
  84@ == 1
  TIMERA > 2000
goto_if_false @RYDER3_7170
89@ += 1
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_7170
perform_sequence_task $ryder {sequence} 40@

:RYDER3_7170
if 
  89@ == 5
goto_if_false @RYDER3_7202
TIMERA = 0
89@ += 1

:RYDER3_7202
if 
  89@ == 6
goto_if_false @RYDER3_8266
gosub @RYDER3_18990
request_model 492
request_model 352
request_model 102
request_model 104
request_model 346

:RYDER3_7250
if or
  not has_model_loaded 492
  not has_model_loaded 352
  not has_model_loaded 102
  not has_model_loaded 104
  not has_model_loaded 346
goto_if_false @RYDER3_7295
wait 0
goto @RYDER3_7250

:RYDER3_7295
150@ = create_car 492 {x} 2340.0549 {y} -1151.432 {z} 25.9546
set_car_heading 150@ {heading} 92.6857
car_goto_coordinates 150@ {x} 2313.4141 {y} -1150.093 {z} 25.7997
set_car_driving_style 150@ {drivingStyle} DrivingMode.PloughThrough
set_car_cruise_speed 150@ {maxSpeed} 25.0
151@ = create_char_inside_car 150@ {pedType} PedType.Mission2 {modelId} 102
set_char_heading 151@ {heading} 227.7265
152@ = create_char_as_passenger 150@ {pedType} PedType.Mission2 {modelId} 104 {seat} SeatId.BikeRear
set_char_heading 152@ {heading} 301.1901
153@ = create_char_as_passenger 150@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.RearLeft
set_char_heading 153@ {heading} 82.8733
set_char_only_damaged_by_player 153@ {state} True
154@ = create_char_as_passenger 150@ {pedType} PedType.Mission2 {modelId} 104 {seat} SeatId.RearRight
set_char_heading 154@ {heading} 82.8733
set_char_only_damaged_by_player 154@ {state} True
36@ = 0

:RYDER3_7480
add_blip_for_char 151@(36@,4i) {var_handle} 155@(36@,4i)
if 
  36@ == 3
goto_if_false @RYDER3_7546
set_char_weapon_skill 151@(36@,4i) {skill} WeaponSkill.Pro
give_weapon_to_char 151@(36@,4i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @RYDER3_7571

:RYDER3_7546
give_weapon_to_char 151@(36@,4i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 151@(36@,4i) {weaponType} WeaponType.MicroUzi

:RYDER3_7571
set_char_health 151@(36@,4i) {health} 200
set_char_max_health 151@(36@,4i) {maxHealth} 200
set_char_shoot_rate 151@(36@,4i) {rate} 40
set_char_accuracy 151@(36@,4i) {accuracy} 40
set_char_decision_maker 151@(36@,4i) {handleOrTemplate} 72@
set_char_is_target_priority 151@(36@,4i) {state} True
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_7480
gosub @RYDER3_18930
load_scene_in_direction 2287.2959 {y} -1140.38 {z} 25.6779 {heading} 252.6459
set_fixed_camera_position 2283.145 {y} -1135.652 {z} 28.6919 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 150@
goto_if_false @RYDER3_7747
point_camera_at_car 150@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:RYDER3_7747
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_7799
if 
  not is_char_in_any_car $scplayer
goto_if_false @RYDER3_7799
task_turn_char_to_face_coord $scplayer {x} 2313.4141 {y} -1150.093 {z} 25.7997

:RYDER3_7799
36@ = 0

:RYDER3_7806
if 
  not is_char_dead 144@(36@,4i)
goto_if_false @RYDER3_7881
if 
  not is_char_in_any_car 144@(36@,4i)
goto_if_false @RYDER3_7881
task_turn_char_to_face_coord 144@(36@,4i) {x} 2313.4141 {y} -1150.093 {z} 25.7997
task_stay_in_same_place 144@(36@,4i) {state} True

:RYDER3_7881
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_7806
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_8102
159@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 2295.6931 {y} -1142.469 {z} 25.8392 {speed} MoveState.Run {time} -2
task_turn_char_to_face_coord -1 {x} 2313.4141 {y} -1150.093 {z} 25.7997
if 
  not is_char_dead 151@
goto_if_false @RYDER3_7994
task_kill_char_on_foot -1 {target} 151@

:RYDER3_7994
if 
  not is_char_dead 152@
goto_if_false @RYDER3_8017
task_kill_char_on_foot -1 {target} 152@

:RYDER3_8017
if 
  not is_char_dead 153@
goto_if_false @RYDER3_8040
task_kill_char_on_foot -1 {target} 153@

:RYDER3_8040
if 
  not is_char_dead 154@
goto_if_false @RYDER3_8063
task_kill_char_on_foot -1 {target} 154@

:RYDER3_8063
close_sequence_task 159@
if 
  not is_char_in_any_car $ryder
goto_if_false @RYDER3_8097
clear_char_tasks_immediately $ryder
perform_sequence_task $ryder {sequence} 159@

:RYDER3_8097
clear_sequence_task 159@

:RYDER3_8102
gosub @RYDER3_19023
print_now 'RYD3_2' {time} 3000 {flag} 1
wait 1000
TIMERB = 0

:RYDER3_8137
if 
  3000 > TIMERB
goto_if_false @RYDER3_8191
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER3_8184
goto @RYDER3_8191

:RYDER3_8184
goto @RYDER3_8137

:RYDER3_8191
gosub @RYDER3_18958
print_now 'RYD3_DA' {time} 3000 {flag} 1
set_lvar_text_label 106@s = 'RYD3_DA'
set_lvar_int_to_constant 96@ = 34018
gosub @RYDER3_20106
85@ = 0
TIMERB = 0
89@ += 1

:RYDER3_8266
if 
  89@ == 7
goto_if_false @RYDER3_8350
if 
  not is_car_dead 150@
goto_if_false @RYDER3_8350
if 
  locate_stopped_car_2d 150@ {x} 2304.1819 {y} -1142.619 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @RYDER3_8350
task_everyone_leave_car 150@
89@ += 1

:RYDER3_8350
if 
  89@ == 8
goto_if_false @RYDER3_9092
36@ = 0

:RYDER3_8375
if and
  is_char_dead 151@(36@,4i)
  151@(36@,4i) <> 0
goto_if_false @RYDER3_8455
if 
  does_blip_exist 155@(36@,4i)
goto_if_false @RYDER3_8455
remove_blip 155@(36@,4i)
155@(36@,4i) = 0
mark_char_as_no_longer_needed 151@(36@,4i)

:RYDER3_8455
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_8375
if and
  TIMERB > 3000
  85@ == 0
goto_if_false @RYDER3_8700
set_lvar_text_label 106@s = 'RYD3_DB'
set_lvar_int_to_constant 96@ = 34019
gosub @RYDER3_20106
if 
  not is_char_dead 151@
goto_if_false @RYDER3_8573
task_go_to_coord_any_means 151@ {x} 2299.2839 {y} -1133.929 {z} 27.3281 {speed} MoveState.Run {vehicle} -1

:RYDER3_8573
if 
  not is_char_dead 152@
goto_if_false @RYDER3_8613
task_go_to_coord_any_means 152@ {x} 2291.2261 {y} -1140.1689 {z} 25.6912 {speed} MoveState.Run {vehicle} -1

:RYDER3_8613
if 
  not is_char_dead 153@
goto_if_false @RYDER3_8653
task_go_to_coord_any_means 153@ {x} 2298.0901 {y} -1144.036 {z} 25.919 {speed} MoveState.Run {vehicle} -1

:RYDER3_8653
if 
  not is_char_dead 154@
goto_if_false @RYDER3_8693
task_go_to_coord_any_means 154@ {x} 2291.842 {y} -1129.22 {z} 25.7756 {speed} MoveState.Run {vehicle} -1

:RYDER3_8693
85@ = 1

:RYDER3_8700
if and
  95@ == 2
  85@ == 1
goto_if_false @RYDER3_8763
set_lvar_text_label 106@s = 'RYD3_DC'
set_lvar_int_to_constant 96@ = 34020
gosub @RYDER3_20106
85@ = 2

:RYDER3_8763
if and
  is_char_dead 151@
  is_char_dead 152@
  is_char_dead 153@
  is_char_dead 154@
goto_if_false @RYDER3_9092
89@ += 1
68@ = add_blip_for_coord 2287.147 {y} -1121.702 {z} 25.8903
set_coord_blip_appearance 68@ {color} CoordAppearance.Normal
set_lvar_text_label 106@s = 'RYD3_EA'
set_lvar_int_to_constant 96@ = 34021
gosub @RYDER3_20106
85@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_9085
161@ = open_sequence_task 
task_achieve_heading -1 {heading} 77.6187
task_play_anim -1 {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 2000
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 161@ {state} True
close_sequence_task 161@
160@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2294.854 {y} -1143.85 {z} 25.814 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2290.7161 {y} -1122.9969 {z} 25.8774 {speed} MoveState.Run {time} -2
perform_sequence_task -1 {sequence} 161@
close_sequence_task 160@
clear_char_tasks_immediately $ryder
perform_sequence_task $ryder {sequence} 160@
clear_sequence_task 161@
clear_sequence_task 160@

:RYDER3_9085
TIMERB = 0

:RYDER3_9092
if 
  89@ == 9
goto_if_false @RYDER3_10641
if and
  TIMERB > 4000
  85@ == 0
goto_if_false @RYDER3_9159
print_now 'RYD3_1' {time} 4000 {flag} 1
85@ = 1

:RYDER3_9159
if 
  locate_char_on_foot_3d $scplayer {x} 2287.147 {y} -1121.702 {z} 25.8903 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @RYDER3_10641
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_9230
set_player_control $player1 {state} False

:RYDER3_9230
if 
  does_blip_exist 68@
goto_if_false @RYDER3_9251
remove_blip 68@

:RYDER3_9251
gosub @RYDER3_18930
delete_char 133@
set_player_display_vital_stats_button $player1 {enabled} False
set_fixed_camera_position 2288.8811 {y} -1117.7581 {z} 28.0044 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2288.3 {y} -1118.549 {z} 27.8136 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_9396
set_char_coordinates $scplayer {x} 2287.147 {y} -1121.702 {z} 25.8903
set_char_heading $scplayer {heading} 91.8747
task_climb $scplayer {flag} True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:RYDER3_9396
wait 1000
gosub @RYDER3_18990
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_9502
clear_char_tasks_immediately $scplayer
if 
  not is_char_sitting_in_any_car $scplayer
goto_if_false @RYDER3_9472
set_char_coordinates $scplayer {x} 2284.7661 {y} -1121.5 {z} 27.386
goto @RYDER3_9492

:RYDER3_9472
warp_char_from_car_to_coord $scplayer {x} 2284.7661 {y} -1121.5 {z} 27.386

:RYDER3_9492
set_char_heading $scplayer {heading} 220.0

:RYDER3_9502
request_car_recording 486
request_car_recording 490

:RYDER3_9512
if or
  not has_car_recording_been_loaded 486
  not has_car_recording_been_loaded 490
goto_if_false @RYDER3_9544
wait 0
goto @RYDER3_9512

:RYDER3_9544
clear_area 2284.7319 {y} -1121.916 {z} 27.0 {radius} 50.0 {clearParticles} True
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9711
162@ = create_char PedType.Mission1 {modelId} 105 {x} 2294.554 {y} -1156.382 {z} 25.6646
set_char_heading 162@ {heading} 9.002
if 
  not is_char_dead 162@
goto_if_false @RYDER3_9661
if 
  not is_char_in_car 162@ {vehicle} 108@
goto_if_false @RYDER3_9661
warp_char_into_car 162@ {vehicle} 108@

:RYDER3_9661
if 
  is_char_dead 162@
goto_if_false @RYDER3_9706
162@ = create_char_inside_car 108@ {pedType} PedType.Mission1 {modelId} 105
set_char_never_targetted 162@ {state} True
give_weapon_to_char 162@ {weaponType} WeaponType.MicroUzi {ammo} 9999

:RYDER3_9706
close_all_car_doors 108@

:RYDER3_9711
if and
  not is_car_dead 108@
  not is_char_dead 162@
goto_if_false @RYDER3_9763
70@ = add_blip_for_car 108@
set_blip_as_friendly 70@ {state} True
set_car_health 108@ {health} 5000
set_char_health 162@ {health} 500

:RYDER3_9763
delete_char $ryder
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9798
$x, $y, $z = get_car_coordinates 108@

:RYDER3_9798
$ryder = create_char PedType.Mission1 {modelId} 290 {x} $x {y} $y {z} $z
set_char_health $ryder {health} 500
clear_all_char_relationships $ryder {relationshipType} RelationshipType.Hate
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9880
attach_char_to_car $ryder {vehicle} 108@ {xOffset} 0.0 {yOffset} -0.85 {zOffset} 0.65 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.MicroUzi

:RYDER3_9880
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} True
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False
if 
  not is_char_dead 162@
goto_if_false @RYDER3_9941
task_toggle_ped_threat_scanner 162@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 162@ {handleOrTemplate} 105@

:RYDER3_9941
if 
  not is_car_dead 108@
goto_if_false @RYDER3_9970
start_playback_recorded_car 108@ {path} 486
pause_playback_recorded_car 108@

:RYDER3_9970
wait 800
if 
  not is_car_dead 129@
goto_if_false @RYDER3_10006
freeze_car_position 129@ {state} False
start_playback_recorded_car 129@ {path} 490

:RYDER3_10006
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
36@ = 0

:RYDER3_10033
delete_char 144@(36@,4i)
36@ += 1
  36@ >= 3
goto_if_false @RYDER3_10033
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
load_scene_in_direction 2288.5161 {y} -1136.4041 {z} 28.5557 {heading} 149.2199
set_fixed_camera_position 2288.5161 {y} -1136.4041 {z} 28.5557 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2288.2949 {y} -1137.368 {z} 28.41 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_10201
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2284.7661 {y} -1121.5 {z} 27.386
set_char_heading $scplayer {heading} 0.0

:RYDER3_10201
wait 200
if and
  not is_car_dead 108@
  is_playback_going_on_for_car 108@
goto_if_false @RYDER3_10232
unpause_playback_recorded_car 108@

:RYDER3_10232
gosub @RYDER3_19023
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34022

:RYDER3_10266
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_10292
wait 0
goto @RYDER3_10266

:RYDER3_10292
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_FA' {time} 2000 {flag} 1
wait 2000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34023

:RYDER3_10330
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_10356
wait 0
goto @RYDER3_10330

:RYDER3_10356
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_FB' {time} 4000 {flag} 1
wait 4000
if 
  not is_car_dead 129@
goto_if_false @RYDER3_10474
set_heading_for_attached_player $player1 {heading} 225.0 {headingRange} 225.0
163@ = get_train_caboose 129@
attach_char_to_car $scplayer {vehicle} 163@ {xOffset} 0.0 {yOffset} -8.0 {zOffset} 0.9 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_collision $scplayer {state} False

:RYDER3_10474
gosub @RYDER3_18958
set_car_density_multiplier 0.0
draw_crosshair True
set_lvar_text_label 106@s = 'RYD3_GA'
set_lvar_int_to_constant 96@ = 34024
gosub @RYDER3_20106
TIMERB = 0
85@ = 0
$box_timer = 90000
display_onscreen_timer_with_string $box_timer {direction} TimerDirection.Down {text} 'RYD3_3'
$throw_power_bar = 0
122@ = 0
display_nth_onscreen_counter_with_string $throw_power_bar {display} CounterDisplay.Bar {slot} 1 {text} 'RYD3_E'
display_nth_onscreen_counter_with_string $r3_total_guns {display} CounterDisplay.Number {slot} 2 {text} 'RYD3_F'
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_10634
clear_char_tasks $ryder

:RYDER3_10634
89@ += 1

:RYDER3_10641
if 
  89@ == 10
goto_if_false @RYDER3_13809
if and
  TIMERB > 5000
  85@ == 0
goto_if_false @RYDER3_10703
print_help_forever 'RYD3_D'
85@ = 1

:RYDER3_10703
if 
  TIMERA > 8000
goto_if_false @RYDER3_10969
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_10962
clear_char_tasks $ryder
$r3_rnd = generate_random_int_in_range 0 {max} 3
switch_start $r3_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER3_10962 {caseNum1} 0 {caseLabel1} @RYDER3_10815 {caseNum2} 1 {caseLabel2} @RYDER3_10864 {caseNum3} 2 {caseLabel3} @RYDER3_10913 {caseNum4} -1 {caseLabel4} @RYDER3_10962 {caseNum5} -1 {caseLabel5} @RYDER3_10962 {caseNum6} -1 {caseLabel6} @RYDER3_10962 {caseNum7} -1 {caseLabel7} @RYDER3_10962

:RYDER3_10815
task_play_anim $ryder {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @RYDER3_10962

:RYDER3_10864
task_play_anim $ryder {animationName} "RYD_BECKON_02" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @RYDER3_10962

:RYDER3_10913
task_play_anim $ryder {animationName} "RYD_BECKON_03" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @RYDER3_10962

:RYDER3_10962
TIMERA = 0

:RYDER3_10969
if 
  not is_car_dead 163@
goto_if_false @RYDER3_13746
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_11064
$x, $y, $z = get_char_coordinates $scplayer
44@, 45@, 46@ = get_char_coordinates $ryder
sub_float_lvar_from_float_var $x -= 44@
sub_float_lvar_from_float_var $y -= 45@
$heading = get_heading_from_vector_2d $x {y} $y
set_char_heading $ryder {heading} $heading

:RYDER3_11064
if 
  $collected_guns <> 10
goto_if_false @RYDER3_11529
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @RYDER3_11184
add_int_lvar_to_int_var $throw_power_bar += 124@
if 
  $throw_power_bar > 100
goto_if_false @RYDER3_11138
$throw_power_bar = 100

:RYDER3_11138
if 
  0 > $throw_power_bar
goto_if_false @RYDER3_11170
$throw_power_bar = 0
124@ = 50

:RYDER3_11170
164@ += 1
goto @RYDER3_11529

:RYDER3_11184
if 
  164@ > 0
goto_if_false @RYDER3_11529
if 
  $throw_power_bar > 20
goto_if_false @RYDER3_11515
cset_lvar_float_to_var_int 165@ =# $throw_power_bar
165@ /= 2.0
$x, $y, $z = get_active_camera_coordinates 
44@, 45@, 46@ = get_active_camera_point_at 
if 
  does_object_exist 110@(109@,10i)
goto_if_false @RYDER3_11289
delete_object 110@(109@,10i)

:RYDER3_11289
create_object_no_offset 127@ {x} 44@ {y} 45@ {z} 46@ {var_handle} 110@(109@,10i)
set_object_records_collisions 110@(109@,10i) {state} True
set_lvar_int_to_lvar_int 166@(109@,10i) = 127@
sub_float_var_from_float_lvar 44@ -= $x
sub_float_var_from_float_lvar 45@ -= $y
sub_float_var_from_float_lvar 46@ -= $z
mult_float_lvar_by_float_lvar 44@ *= 165@
mult_float_lvar_by_float_lvar 45@ *= 165@
mult_float_lvar_by_float_lvar 46@ *= 165@
set_object_dynamic 110@(109@,10i) {state} True
set_object_collision 110@(109@,10i) {state} True
$x, $y, $z = get_car_speed_vector 163@
set_lvar_float_to_var_float 47@ = $x
add_float_lvar_to_float_lvar 47@ += 44@
set_lvar_float_to_var_float 48@ = $y
add_float_lvar_to_float_lvar 48@ += 45@
set_lvar_float_to_var_float 49@ = $z
add_float_lvar_to_float_lvar 49@ += 46@
set_object_velocity 110@(109@,10i) {xSpeed} 47@ {ySpeed} 48@ {zSpeed} 49@
109@ += 1
if 
  109@ == 10
goto_if_false @RYDER3_11515
109@ = 0

:RYDER3_11515
164@ = 0
$throw_power_bar = 0

:RYDER3_11529
176@ = 0

:RYDER3_11536
if 
  10 > 176@
goto_if_false @RYDER3_13746
if and
  does_object_exist 110@(176@,10i)
  not is_char_dead $ryder
goto_if_false @RYDER3_13732
$x, $y, $z = get_offset_from_char_in_world_coords $ryder {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.5
if 
  locate_object_3d 110@(176@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @RYDER3_12488
if and
  122@ == 0
  not is_char_dead $ryder
  $collected_guns <> 10
goto_if_false @RYDER3_12481
set_object_collision 110@(176@,10i) {state} False
task_pick_up_object $ryder {object} 110@(176@,10i) {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "CATCH_BOX" {animationFile} "BOX" {time} 0
TIMERA = 0
$r3_rnd = generate_random_int_in_range 0 {max} 2
switch_start $collected_guns {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER3_12331 {caseNum1} 1 {caseLabel1} @RYDER3_11823 {caseNum2} 3 {caseLabel2} @RYDER3_11917 {caseNum3} 5 {caseLabel3} @RYDER3_12011 {caseNum4} 7 {caseLabel4} @RYDER3_12105 {caseNum5} 8 {caseLabel5} @RYDER3_12199 {caseNum6} 9 {caseLabel6} @RYDER3_12293 {caseNum7} -1 {caseLabel7} @RYDER3_12331

:RYDER3_11823
if 
  $r3_rnd == 0
goto_if_false @RYDER3_11879
set_lvar_text_label 106@s = 'RYD3_HA'
set_lvar_int_to_constant 96@ = 34027
gosub @RYDER3_20106
goto @RYDER3_11910

:RYDER3_11879
set_lvar_text_label 106@s = 'RYD3_HB'
set_lvar_int_to_constant 96@ = 34028
gosub @RYDER3_20106

:RYDER3_11910
goto @RYDER3_12331

:RYDER3_11917
if 
  $r3_rnd == 0
goto_if_false @RYDER3_11973
set_lvar_text_label 106@s = 'RYD3_HC'
set_lvar_int_to_constant 96@ = 34029
gosub @RYDER3_20106
goto @RYDER3_12004

:RYDER3_11973
set_lvar_text_label 106@s = 'RYD3_HD'
set_lvar_int_to_constant 96@ = 34030
gosub @RYDER3_20106

:RYDER3_12004
goto @RYDER3_12331

:RYDER3_12011
if 
  $r3_rnd == 0
goto_if_false @RYDER3_12067
set_lvar_text_label 106@s = 'RYD3_HE'
set_lvar_int_to_constant 96@ = 34031
gosub @RYDER3_20106
goto @RYDER3_12098

:RYDER3_12067
set_lvar_text_label 106@s = 'RYD3_HF'
set_lvar_int_to_constant 96@ = 34032
gosub @RYDER3_20106

:RYDER3_12098
goto @RYDER3_12331

:RYDER3_12105
if 
  $r3_rnd == 0
goto_if_false @RYDER3_12161
set_lvar_text_label 106@s = 'RYD3_HG'
set_lvar_int_to_constant 96@ = 34033
gosub @RYDER3_20106
goto @RYDER3_12192

:RYDER3_12161
set_lvar_text_label 106@s = 'RYD3_HH'
set_lvar_int_to_constant 96@ = 34034
gosub @RYDER3_20106

:RYDER3_12192
goto @RYDER3_12331

:RYDER3_12199
if 
  $r3_rnd == 0
goto_if_false @RYDER3_12255
set_lvar_text_label 106@s = 'RYD3_HJ'
set_lvar_int_to_constant 96@ = 34035
gosub @RYDER3_20106
goto @RYDER3_12286

:RYDER3_12255
set_lvar_text_label 106@s = 'RYD3_HK'
set_lvar_int_to_constant 96@ = 34036
gosub @RYDER3_20106

:RYDER3_12286
goto @RYDER3_12331

:RYDER3_12293
set_lvar_text_label 106@s = 'RYD3_HM'
set_lvar_int_to_constant 96@ = 34038
gosub @RYDER3_20106
goto @RYDER3_12331

:RYDER3_12331
set_lvar_int_to_lvar_int 123@ = 176@
$collected_guns += 1
if 
  $r3_total_guns > 0
goto_if_false @RYDER3_12371
$r3_total_guns -= 1

:RYDER3_12371
if 
  $collected_guns == 5
goto_if_false @RYDER3_12445
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_12413
set_char_health $ryder {health} 5000

:RYDER3_12413
if 
  not is_char_dead 162@
goto_if_false @RYDER3_12437
set_char_health 162@ {health} 5000

:RYDER3_12437
127@ = -135

:RYDER3_12445
if 
  $collected_guns == 10
goto_if_false @RYDER3_12474
draw_crosshair False
set_car_density_multiplier 1.0

:RYDER3_12474
122@ += 1

:RYDER3_12481
goto @RYDER3_13064

:RYDER3_12488
if and
  166@(176@,10i) == -135
  not is_char_dead $ryder
goto_if_false @RYDER3_13064
if 
  has_char_been_damaged_by_weapon $ryder {weaponType} WeaponType.Explosion
goto_if_false @RYDER3_12839
$r3_rnd = generate_random_int_in_range 0 {max} 6
switch_start $r3_rnd {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER3_12834 {caseNum1} 0 {caseLabel1} @RYDER3_12606 {caseNum2} 1 {caseLabel2} @RYDER3_12644 {caseNum3} 2 {caseLabel3} @RYDER3_12682 {caseNum4} 3 {caseLabel4} @RYDER3_12720 {caseNum5} 4 {caseLabel5} @RYDER3_12758 {caseNum6} 5 {caseLabel6} @RYDER3_12796 {caseNum7} -1 {caseLabel7} @RYDER3_12834

:RYDER3_12606
set_lvar_text_label 106@s = 'RYD3_JA'
set_lvar_int_to_constant 96@ = 34040
gosub @RYDER3_20106
goto @RYDER3_12834

:RYDER3_12644
set_lvar_text_label 106@s = 'RYD3_JB'
set_lvar_int_to_constant 96@ = 34041
gosub @RYDER3_20106
goto @RYDER3_12834

:RYDER3_12682
set_lvar_text_label 106@s = 'RYD3_JC'
set_lvar_int_to_constant 96@ = 34042
gosub @RYDER3_20106
goto @RYDER3_12834

:RYDER3_12720
set_lvar_text_label 106@s = 'RYD3_JD'
set_lvar_int_to_constant 96@ = 34043
gosub @RYDER3_20106
goto @RYDER3_12834

:RYDER3_12758
set_lvar_text_label 106@s = 'RYD3_JE'
set_lvar_int_to_constant 96@ = 34044
gosub @RYDER3_20106
goto @RYDER3_12834

:RYDER3_12796
set_lvar_text_label 106@s = 'RYD3_JF'
set_lvar_int_to_constant 96@ = 34045
gosub @RYDER3_20106
goto @RYDER3_12834

:RYDER3_12834
clear_char_last_weapon_damage $ryder

:RYDER3_12839
if 
  has_object_collided_with_anything 110@(176@,10i)
goto_if_false @RYDER3_13057
126@ += 1
if 
  126@ > 4
goto_if_false @RYDER3_13050
if and
  not is_char_dead $ryder
  not is_char_dead 162@
goto_if_false @RYDER3_13050
if 
  not is_char_touching_object $ryder {object} 110@(176@,10i)
goto_if_false @RYDER3_13050
if 
  not is_char_touching_object 162@ {object} 110@(176@,10i)
goto_if_false @RYDER3_13050
$x, $y, $z = get_object_coordinates 110@(176@,10i)
break_object 110@(176@,10i) {intensity} 1
report_mission_audio_event_at_object 110@(176@,10i) {soundId} ScriptSound.SoundExplosion
100@ = create_fx_system "EXPLOSION_SMALL" {x} $x {y} $y {z} $z {ignoreBoundingChecks} True
play_and_kill_fx_system 100@
mark_object_as_no_longer_needed 110@(176@,10i)
110@(176@,10i) = 0

:RYDER3_13050
goto @RYDER3_13064

:RYDER3_13057
126@ = 0

:RYDER3_13064
if 
  does_object_exist 110@(176@,10i)
goto_if_false @RYDER3_13139
if 
  not locate_char_any_means_object_2d $scplayer {object} 110@(176@,10i) {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @RYDER3_13139
mark_object_as_no_longer_needed 110@(176@,10i)
110@(176@,10i) = 0

:RYDER3_13139
if 
  122@ == 1
goto_if_false @RYDER3_13732
if and
  not is_char_dead $ryder
  not is_char_dead 162@
goto_if_false @RYDER3_13189
$task_status = get_script_task_status $ryder {taskId} 1802

:RYDER3_13189
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RYDER3_13732
if 
  123@ > -1
goto_if_false @RYDER3_13725
switch_start 82@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @RYDER3_13642 {caseNum1} 0 {caseLabel1} @RYDER3_13288 {caseNum2} 2 {caseLabel2} @RYDER3_13363 {caseNum3} 4 {caseLabel3} @RYDER3_13438 {caseNum4} 6 {caseLabel4} @RYDER3_13506 {caseNum5} 8 {caseLabel5} @RYDER3_13574 {caseNum6} -1 {caseLabel6} @RYDER3_13642 {caseNum7} -1 {caseLabel7} @RYDER3_13642

:RYDER3_13288
79@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 79@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
set_object_collision 79@ {state} False
goto @RYDER3_13642

:RYDER3_13363
77@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 77@ {handle} 108@ {xOffset} -0.5 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 30.0
set_object_collision 77@ {state} False
goto @RYDER3_13642

:RYDER3_13438
78@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 78@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 30.0 {zRotation} 0.0
goto @RYDER3_13642

:RYDER3_13506
80@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 80@ {handle} 108@ {xOffset} -0.6 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
goto @RYDER3_13642

:RYDER3_13574
81@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 81@ {handle} 108@ {xOffset} -0.1 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
goto @RYDER3_13642

:RYDER3_13642
82@ += 1
if 
  82@ >= 10
goto_if_false @RYDER3_13696
clear_onscreen_counter $r3_total_guns
clear_onscreen_counter $throw_power_bar
clear_onscreen_timer $box_timer
89@ += 1
goto @RYDER3_13725

:RYDER3_13696
if 
  does_object_exist 110@(123@,10i)
goto_if_false @RYDER3_13725
delete_object 110@(123@,10i)

:RYDER3_13725
122@ = 0

:RYDER3_13732
176@ += 1
goto @RYDER3_11536

:RYDER3_13746
if 
  not is_car_dead 108@
goto_if_false @RYDER3_13809
if 
  10 > $box_timer
goto_if_false @RYDER3_13809
clear_onscreen_counter $r3_total_guns
clear_onscreen_counter $throw_power_bar
clear_onscreen_timer $box_timer
125@ = 1
89@ += 1

:RYDER3_13809
if and
  89@ == 11
  95@ == 2
goto_if_false @RYDER3_14621
gosub @RYDER3_18990
set_car_density_multiplier 1.0
clear_help 
if 
  not is_car_dead 108@
goto_if_false @RYDER3_13871
stop_playback_recorded_car 108@

:RYDER3_13871
if 
  not is_car_dead 163@
goto_if_false @RYDER3_14078
$x, $y, $z = get_car_coordinates 163@
177@ = get_ground_z_for_3d_coord $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 163@ {xOffset} -2.0 {yOffset} -1.0 {zOffset} -1.0
44@, 45@, 46@ = get_offset_from_car_in_world_coords 163@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -1.0
47@, 48@, 49@ = get_offset_from_car_in_world_coords 163@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} -0.5
179@, 180@, 181@ = get_offset_from_car_in_world_coords 163@ {xOffset} 0.0 {yOffset} -50.0 {zOffset} 0.0
$heading = get_car_heading 163@
178@ = get_car_heading 163@
$heading -= 50.0
if 
  not is_car_dead 129@
goto_if_false @RYDER3_14078
stop_playback_recorded_car 129@

:RYDER3_14078
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_14128
set_char_collision $scplayer {state} True
detach_char_from_car $scplayer
remove_animation "BOX"
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RYDER3_14128
delete_mission_trains 
delete_object 74@
delete_object 91@
delete_object 92@
delete_object 93@
set_player_display_vital_stats_button $player1 {enabled} True
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
goto_if_false @RYDER3_14235
freeze_car_position 108@ {state} False
set_car_coordinates 108@ {x} $x {y} $y {z} 177@
set_car_heading 108@ {heading} $heading
set_char_coordinates $scplayer {x} 44@ {y} 45@ {z} 177@
set_car_status 108@ {status} EntityStatus.Player
lock_car_doors 108@ {lockStatus} CarLock.Unlocked

:RYDER3_14235
gosub @RYDER3_18930
set_fixed_camera_position 47@ {y} 48@ {z} 49@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
load_scene_in_direction 47@ {y} 48@ {z} 49@ {heading} 178@
if 
  not is_car_dead 108@
goto_if_false @RYDER3_14356
point_camera_at_car 108@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
delete_char 162@
162@ = create_char_as_passenger 108@ {pedType} PedType.Mission1 {modelId} 105 {seat} SeatId.BikeRear
set_char_health 162@ {health} 800
set_char_max_health 162@ {maxHealth} 800
set_char_suffers_critical_hits 162@ {state} False
set_char_never_targetted 162@ {state} True

:RYDER3_14356
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_14409
detach_char_from_car $ryder
attach_char_to_car $ryder {vehicle} 108@ {xOffset} 0.0 {yOffset} -1.3 {zOffset} 0.8 {heading} Facing.Back {headingRange} 15.0 {weaponType} WeaponType.MicroUzi

:RYDER3_14409
if and
  not is_char_dead $scplayer
  not is_car_dead 108@
goto_if_false @RYDER3_14441
task_enter_car_as_driver $scplayer {vehicle} 108@ {time} 4000

:RYDER3_14441
gosub @RYDER3_19023
if 
  125@ == 1
goto_if_false @RYDER3_14532
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34046

:RYDER3_14479
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_14505
wait 0
goto @RYDER3_14479

:RYDER3_14505
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_JG' {time} 2000 {flag} 1
goto @RYDER3_14591

:RYDER3_14532
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34039

:RYDER3_14545
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_14571
wait 0
goto @RYDER3_14545

:RYDER3_14571
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_HN' {time} 2000 {flag} 1

:RYDER3_14591
wait 4000
gosub @RYDER3_18958
draw_crosshair False
TIMERA = 0
89@ = 35

:RYDER3_14621
if 
  89@ == 12
goto_if_false @RYDER3_14685
if 
  125@ == 1
goto_if_false @RYDER3_14678
89@ = 35
69@ = 1
goto @RYDER3_14685

:RYDER3_14678
89@ = 35

:RYDER3_14685
if 
  89@ == 35
goto_if_false @RYDER3_15113
if 
  does_blip_exist 70@
goto_if_false @RYDER3_14724
remove_blip 70@

:RYDER3_14724
if 
  125@ == 1
goto_if_false @RYDER3_14938
gosub @RYDER3_18990
if 
  not is_car_dead 129@
goto_if_false @RYDER3_14770
delete_car 129@

:RYDER3_14770
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_14791
delete_char $ryder

:RYDER3_14791
if 
  not is_char_dead 162@
goto_if_false @RYDER3_14812
delete_char 162@

:RYDER3_14812
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
goto_if_false @RYDER3_14860
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_14860
warp_char_into_car $scplayer {vehicle} 108@

:RYDER3_14860
176@ = 0

:RYDER3_14867
if 
  10 > 176@
goto_if_false @RYDER3_14908
delete_object 110@(176@,10i)
176@ += 1
goto @RYDER3_14867

:RYDER3_14908
gosub @RYDER3_19023
print_now 'RYD3_T' {time} 4000 {flag} 1
goto @RYDER3_18057

:RYDER3_14938
if and
  not is_char_dead $ryder
  not is_char_dead $scplayer
goto_if_false @RYDER3_14994
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
task_stay_in_same_place $ryder {state} True
task_toggle_ped_threat_scanner $ryder {onFoot} True {inCar} True {duringScriptTask} True
set_char_decision_maker $ryder {handleOrTemplate} 72@

:RYDER3_14994
set_lvar_text_label 106@s = 'RYD3_KA'
set_lvar_int_to_constant 96@ = 34047
gosub @RYDER3_20106
TIMERB = 0
85@ = 0
remove_blip 34@
34@ = add_blip_for_coord 2067.4629 {y} -1831.67 {z} 12.5527
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
set_wanted_multiplier 1.0
alter_wanted_level $player1 {wantedLevel} 3
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
89@ += 1
TIMERA = 0

:RYDER3_15113
if and
  89@ == 36
  TIMERA > 4000
goto_if_false @RYDER3_15192
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_15162
task_toggle_duck $ryder {state} True

:RYDER3_15162
print_now 'RYD3_13' {time} 7000 {flag} 1
89@ += 1
39@ = 0

:RYDER3_15192
if 
  89@ == 37
goto_if_false @RYDER3_17965
if 
  not is_car_dead 108@
goto_if_false @RYDER3_15466
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_15313
print_now 'RYD3_Q' {time} 5000 {flag} 1
if 
  39@ == 0
goto_if_false @RYDER3_15306
remove_blip 34@
34@ = add_blip_for_car 108@
set_blip_as_friendly 34@ {state} True
39@ = 1

:RYDER3_15306
goto @RYDER3_15415

:RYDER3_15313
if 
  39@ == 1
goto_if_false @RYDER3_15415
remove_blip 34@
if 
  103@ == 1
goto_if_false @RYDER3_15381
34@ = add_blip_for_coord 2446.887 {y} -1661.962 {z} 12.3047
goto @RYDER3_15401

:RYDER3_15381
34@ = add_blip_for_coord 2067.4629 {y} -1831.67 {z} 12.5527

:RYDER3_15401
set_coord_blip_appearance 34@ {color} CoordAppearance.Normal
39@ = 0

:RYDER3_15415
if and
  is_car_upsidedown 108@
  97@ == 0
goto_if_false @RYDER3_15466
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_15459
task_die $ryder

:RYDER3_15459
97@ = 1

:RYDER3_15466
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_15956
if and
  is_char_shooting $ryder
  TIMERB > 10000
  not is_message_being_displayed 
goto_if_false @RYDER3_15956
TIMERB = 0
$r3_rnd = generate_random_int_in_range 0 {max} 8
switch_start $r3_rnd {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER3_15956 {caseNum1} 0 {caseLabel1} @RYDER3_15652 {caseNum2} 1 {caseLabel2} @RYDER3_15690 {caseNum3} 2 {caseLabel3} @RYDER3_15728 {caseNum4} 3 {caseLabel4} @RYDER3_15766 {caseNum5} 4 {caseLabel5} @RYDER3_15804 {caseNum6} 5 {caseLabel6} @RYDER3_15842 {caseNum7} 6 {caseLabel7} @RYDER3_15880
switch_continued 7 {caseLabel1} @RYDER3_15918 {caseNum2} -1 {caseLabel2} @RYDER3_15956 {caseNum3} -1 {caseLabel3} @RYDER3_15956 {caseNum4} -1 {caseLabel4} @RYDER3_15956 {caseNum5} -1 {caseLabel5} @RYDER3_15956 {caseNum6} -1 {caseLabel6} @RYDER3_15956 {caseNum7} -1 {caseLabel7} @RYDER3_15956 {caseNum8} -1 {caseLabel8} @RYDER3_15956 {caseNum9} -1 {caseLabel9} @RYDER3_15956

:RYDER3_15652
set_lvar_text_label 106@s = 'RYD3_LA'
set_lvar_int_to_constant 96@ = 34049
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15690
set_lvar_text_label 106@s = 'RYD3_LB'
set_lvar_int_to_constant 96@ = 34050
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15728
set_lvar_text_label 106@s = 'RYD3_LC'
set_lvar_int_to_constant 96@ = 34051
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15766
set_lvar_text_label 106@s = 'RYD3_LD'
set_lvar_int_to_constant 96@ = 34052
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15804
set_lvar_text_label 106@s = 'RYD3_LE'
set_lvar_int_to_constant 96@ = 34053
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15842
set_lvar_text_label 106@s = 'RYD3_LF'
set_lvar_int_to_constant 96@ = 34054
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15880
set_lvar_text_label 106@s = 'RYD3_LG'
set_lvar_int_to_constant 96@ = 34055
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15918
set_lvar_text_label 106@s = 'RYD3_LH'
set_lvar_int_to_constant 96@ = 34056
gosub @RYDER3_20106
goto @RYDER3_15956

:RYDER3_15956
if and
  not is_car_dead 108@
  not is_char_dead $scplayer
  39@ == 0
goto_if_false @RYDER3_17965
if and
  not is_char_dead $ryder
  not is_char_dead $scplayer
goto_if_false @RYDER3_16318
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @RYDER3_16184
if and
  103@ == 0
  not is_char_dead $ryder
goto_if_false @RYDER3_16177
clear_char_tasks_immediately $ryder
clear_all_char_relationships $ryder {relationshipType} RelationshipType.Hate
set_char_decision_maker $ryder {handleOrTemplate} 105@
task_stay_in_same_place $ryder {state} True
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False
task_toggle_duck $ryder {state} True
if 
  does_blip_exist 34@
goto_if_false @RYDER3_16112
remove_blip 34@

:RYDER3_16112
set_lvar_text_label 106@s = 'RYD3_KB'
set_lvar_int_to_constant 96@ = 34048
gosub @RYDER3_20106
TIMERA = 0
34@ = add_blip_for_coord 2451.3799 {y} -1661.609 {z} 12.3047
103@ = 1

:RYDER3_16177
goto @RYDER3_16318

:RYDER3_16184
if and
  103@ == 1
  not is_char_dead $ryder
goto_if_false @RYDER3_16318
if 
  does_blip_exist 34@
goto_if_false @RYDER3_16228
remove_blip 34@

:RYDER3_16228
clear_char_tasks_immediately $ryder
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
task_stay_in_same_place $ryder {state} True
task_toggle_ped_threat_scanner $ryder {onFoot} True {inCar} True {duringScriptTask} True
set_char_decision_maker $ryder {handleOrTemplate} 72@
task_toggle_duck $ryder {state} True
print_now 'RYD3_I' {time} 7000 {flag} 1
34@ = add_blip_for_coord 2067.4629 {y} -1831.67 {z} 12.5527
103@ = 0

:RYDER3_16318
if and
  not is_wanted_level_greater $player1 {wantedLevel} 0
  TIMERA > 4000
  104@ == 0
goto_if_false @RYDER3_16374
print_now 'RYD3101' {time} 7000 {flag} 1
104@ = 1

:RYDER3_16374
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @RYDER3_17965
if and
  locate_char_any_means_3d $scplayer {x} 2446.887 {y} -1661.962 {z} 12.3047 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_17965
clear_wanted_level $player1
clear_area 2483.6179 {y} -1666.093 {z} 12.3594 {radius} 50.0 {clearParticles} True
gosub @RYDER3_18990
if and
  not is_char_dead $ryder
  not is_car_dead 108@
goto_if_false @RYDER3_16542
detach_char_from_car $ryder
attach_char_to_car $ryder {vehicle} 108@ {xOffset} 0.0 {yOffset} -1.3 {zOffset} 0.8 {heading} Facing.Forward {headingRange} 15.0 {weaponType} WeaponType.MicroUzi

:RYDER3_16542
remove_blip 34@
request_car_recording 104
request_animation "GANGS"

:RYDER3_16560
if or
  not has_car_recording_been_loaded 104
  not has_animation_loaded "GANGS"
goto_if_false @RYDER3_16595
wait 0
goto @RYDER3_16560

:RYDER3_16595
if and
  not is_char_dead $scplayer
  not is_car_dead 108@
goto_if_false @RYDER3_16662
if 
  not is_char_in_car $scplayer {vehicle} 108@
goto_if_false @RYDER3_16645
warp_char_into_car_as_passenger $scplayer {handle} 108@ {seat} SeatId.BikeRear

:RYDER3_16645
start_playback_recorded_car 108@ {path} 104
skip_in_playback_recorded_car 108@ {amount} 1.0

:RYDER3_16662
gosub @RYDER3_18930
set_fixed_camera_position 2444.7959 {y} -1650.005 {z} 24.6868 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2445.6289 {y} -1650.483 {z} 24.4081 {switchStyle} SwitchType.JumpCut
delete_char 162@
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_16752
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False

:RYDER3_16752
gosub @RYDER3_19023
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34057

:RYDER3_16772
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_16798
wait 0
goto @RYDER3_16772

:RYDER3_16798
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MA' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_16825
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_16851
wait 0
goto @RYDER3_16825

:RYDER3_16851
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34058

:RYDER3_16866
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_16892
wait 0
goto @RYDER3_16866

:RYDER3_16892
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MB' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_16919
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_16945
wait 0
goto @RYDER3_16919

:RYDER3_16945
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34059

:RYDER3_16960
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_16986
wait 0
goto @RYDER3_16960

:RYDER3_16986
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MC' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_17013
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_17039
wait 0
goto @RYDER3_17013

:RYDER3_17039
clear_prints 
if 
  not is_car_dead 108@
goto_if_false @RYDER3_17098
set_fixed_camera_position 2472.5759 {y} -1675.462 {z} 14.0837 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 108@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:RYDER3_17098
wait 5000
if 
  69@ == 0
goto_if_false @RYDER3_17965
if and
  not is_car_dead 108@
  not is_char_dead $ryder
goto_if_false @RYDER3_17224
clear_char_tasks $ryder
task_toggle_duck $ryder {state} False
stop_playback_recorded_car 108@
$x, $y, $z = get_offset_from_car_in_world_coords 108@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
task_go_straight_to_coord $scplayer {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2
task_go_straight_to_coord $ryder {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2

:RYDER3_17224
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34060

:RYDER3_17237
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_17263
wait 0
goto @RYDER3_17237

:RYDER3_17263
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_MD' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_17290
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_17316
wait 0
goto @RYDER3_17290

:RYDER3_17316
clear_prints 
wait 1500
if 
  has_animation_loaded "GANGS"
goto_if_false @RYDER3_17944
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_17466
if 
  is_char_in_any_car $scplayer
goto_if_false @RYDER3_17402
warp_char_from_car_to_coord $scplayer {x} 2471.343 {y} -1684.306 {z} 12.5159
goto @RYDER3_17422

:RYDER3_17402
set_char_coordinates $scplayer {x} 2471.343 {y} -1684.306 {z} 12.5159

:RYDER3_17422
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 238.6571
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0

:RYDER3_17466
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_17780
if 
  is_char_in_any_car $ryder
goto_if_false @RYDER3_17524
detach_char_from_car $ryder
warp_char_from_car_to_coord $ryder {x} $x {y} $y {z} $z
goto @RYDER3_17538

:RYDER3_17524
set_char_coordinates $ryder {x} $x {y} $y {z} $z

:RYDER3_17538
50@ = 238.6571
50@ -= 180.0
clear_char_tasks_immediately $ryder
set_char_heading $ryder {heading} 50@
35@ = open_sequence_task 
task_char_slide_to_coord_and_play_anim -1 {x} 2471.343 {y} -1684.306 {z} 12.5159 {heading} 238.6571 {radius} 0.4 {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_look_at_char -1 {target} $ryder {time} 3000
close_sequence_task 35@
perform_sequence_task $scplayer {sequence} 35@
clear_sequence_task 35@
35@ = open_sequence_task 
task_char_slide_to_coord_and_play_anim -1 {x} $x {y} $y {z} $z {heading} 50@ {radius} 0.4 {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 2465.728 {y} -1687.025 {z} 12.5184 {speed} MoveState.Walk {time} -2
close_sequence_task 35@
perform_sequence_task $ryder {sequence} 35@
clear_sequence_task 35@

:RYDER3_17780
set_fixed_camera_position 2472.521 {y} -1683.47 {z} 14.0526 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2472.001 {y} -1684.324 {z} 14.0313 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 34061

:RYDER3_17844
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RYDER3_17870
wait 0
goto @RYDER3_17844

:RYDER3_17870
play_mission_audio MissionAudioSlot.Slot1
print_now 'RYD3_ME' {time} 8000 {flag} 1
TIMERB = 0

:RYDER3_17897
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RYDER3_17923
wait 0
goto @RYDER3_17897

:RYDER3_17923
clear_prints 
wait 1000
gosub @RYDER3_18990
goto @RYDER3_17953

:RYDER3_17944
request_animation "GANGS"

:RYDER3_17953
delete_char $ryder
goto @RYDER3_18136

:RYDER3_17965
if 
  is_car_dead 108@
goto_if_false @RYDER3_18004
print_now 'RYD3_14' {time} 5000 {flag} 1
goto @RYDER3_18057

:RYDER3_18004
if 
  is_char_dead $ryder
goto_if_false @RYDER3_18043
print_now 'RYD3_B' {time} 5000 {flag} 1
goto @RYDER3_18057

:RYDER3_18043
goto @RYDER3_2254

:RYDER3_18050
goto @RYDER3_18057

:RYDER3_18057
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18080
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_18080
set_wanted_multiplier 1.0
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18118
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RYDER3_18118
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RYDER3_18136
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18159
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_18159
gosub @RYDER3_18958
set_wanted_multiplier 1.0
set_camera_behind_player 
gosub @RYDER3_19023
print_with_number_big 'M_PASSR' {num} 7 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 7
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_ryder_mission_counter += 1
player_made_progress 1
register_mission_passed 'RYDER_3'
return 

:RYDER3_18237
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_18260
shut_char_up_for_scripted_speech $scplayer {state} False

:RYDER3_18260
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_18281
remove_char_elegantly $ryder

:RYDER3_18281
draw_crosshair False
set_wanted_multiplier 1.0
set_player_display_vital_stats_button $player1 {enabled} True
remove_car_recording 490
remove_car_recording 486
remove_car_recording 104
if 
  not is_char_dead 142@
goto_if_false @RYDER3_18334
delete_char 142@

:RYDER3_18334
if 
  not is_char_dead 143@
goto_if_false @RYDER3_18355
delete_char 143@

:RYDER3_18355
36@ = 0

:RYDER3_18362
if 
  does_blip_exist 155@(36@,4i)
goto_if_false @RYDER3_18391
remove_blip 155@(36@,4i)

:RYDER3_18391
if 
  does_blip_exist 136@(36@,6i)
goto_if_false @RYDER3_18420
remove_blip 136@(36@,6i)

:RYDER3_18420
36@ += 1
  36@ >= 4
goto_if_false @RYDER3_18362
if 
  does_blip_exist 70@
goto_if_false @RYDER3_18462
remove_blip 70@

:RYDER3_18462
if 
  does_blip_exist 34@
goto_if_false @RYDER3_18483
remove_blip 34@

:RYDER3_18483
if 
  does_blip_exist 68@
goto_if_false @RYDER3_18504
remove_blip 68@

:RYDER3_18504
if 
  does_blip_exist 99@
goto_if_false @RYDER3_18525
remove_blip 99@

:RYDER3_18525
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
delete_object 91@
delete_object 92@
delete_object 93@
delete_object 81@
delete_object 77@
delete_object 78@
delete_object 79@
delete_object 80@
set_create_random_gang_members True
clear_onscreen_counter $r3_total_guns
clear_onscreen_counter $throw_power_bar
clear_onscreen_timer $box_timer
detach_char_from_car $scplayer
switch_random_trains True
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #CR_GUNCRATE
mark_model_as_no_longer_needed #CR_AMMOBOX
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 468
remove_animation "BOX"
remove_animation "GANGS"
remove_animation "RYDER"
remove_animation "SWAT"
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
unload_special_character 1
switch_roads_back_to_original 2284.0 {leftBottomY} -1151.0 {leftBottomZ} 10.0 {rightTopX} 2288.0 {rightTopY} -1147.0 {rightTopZ} 30.0
switch_roads_back_to_original 2287.321 {leftBottomY} -1132.571 {leftBottomZ} 10.0 {rightTopX} 2360.8391 {rightTopY} -1177.134 {rightTopZ} 40.0
switch_roads_back_to_original 2311.676 {leftBottomY} -1375.397 {leftBottomZ} 10.0 {rightTopX} 2292.365 {rightTopY} -1303.1021 {rightTopZ} 40.0
switch_roads_back_to_original 2268.6951 {leftBottomY} -1138.541 {leftBottomZ} 10.0 {rightTopX} 2282.3621 {rightTopY} -1159.604 {rightTopZ} 40.0
switch_roads_back_to_original 2307.5371 {leftBottomY} -1162.624 {leftBottomZ} 10.0 {rightTopX} 2266.3511 {rightTopY} -1136.99 {rightTopZ} 40.0
$onmission = 0
$timer_mobile_start = get_game_timer 
clear_wanted_level $player1
set_wanted_multiplier 1.0
mission_has_finished 
return 

:RYDER3_18930
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_prints 
clear_help 
return 

:RYDER3_18958
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_help 
clear_prints 
return 

:RYDER3_18990
do_fade 500 {direction} Fade.Out

:RYDER3_18997
if 
  get_fading_status 
goto_if_false @RYDER3_19021
wait 0
goto @RYDER3_18997

:RYDER3_19021
return 

:RYDER3_19023
do_fade 500 {direction} Fade.In

:RYDER3_19030
if 
  get_fading_status 
goto_if_false @RYDER3_19054
wait 0
goto @RYDER3_19030

:RYDER3_19054
return 

:RYDER3_19056
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @RYDER3_19172
request_model 600

:RYDER3_19076
if 
  not has_model_loaded 600
goto_if_false @RYDER3_19103
wait 0
goto @RYDER3_19076

:RYDER3_19103
182@ = create_car 600 {x} 2298.3899 {y} -1149.012 {z} 25.7656
set_car_heading 182@ {heading} 45.766
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_19160
warp_char_into_car $scplayer {vehicle} 182@

:RYDER3_19160
mark_model_as_no_longer_needed 600
89@ = 50

:RYDER3_19172
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @RYDER3_19260
request_car_recording 486
request_car_recording 490

:RYDER3_19197
if or
  not has_car_recording_been_loaded 486
  not has_car_recording_been_loaded 490
goto_if_false @RYDER3_19229
wait 0
goto @RYDER3_19197

:RYDER3_19229
if 
  not is_car_dead 129@
goto_if_false @RYDER3_19260
freeze_car_position 129@ {state} False
start_playback_recorded_car 129@ {path} 490

:RYDER3_19260
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @RYDER3_19425
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
request_model 537
request_model 569
request_model 492
request_car_recording 106

:RYDER3_19308
if 
  not has_car_recording_been_loaded 106
goto_if_false @RYDER3_19334
wait 0
goto @RYDER3_19308

:RYDER3_19334
if or
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 492
goto_if_false @RYDER3_19371
wait 0
goto @RYDER3_19334

:RYDER3_19371
183@ = create_mission_train 10 {x} 2278.177 {y} -1144.882 {z} 27.5107 {direction} True
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
set_train_speed 183@ {speed} 0.0
set_train_cruise_speed 183@ {speed} 0.0

:RYDER3_19425
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @RYDER3_19498
if 
  not is_char_dead $ryder
goto_if_false @RYDER3_19498
task_play_anim $ryder {animationName} "RYD_BECKON_01" {animationFile} "RYDER" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:RYDER3_19498
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @RYDER3_19520
$collected_guns = 9

:RYDER3_19520
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @RYDER3_19683
if 
  not is_char_dead $scplayer
goto_if_false @RYDER3_19683
request_animation "CARRY"

:RYDER3_19560
if 
  not has_animation_loaded "CARRY"
goto_if_false @RYDER3_19591
wait 0
goto @RYDER3_19560

:RYDER3_19591
$x, $y, $z = get_char_coordinates $scplayer
110@ = create_object_no_offset 127@ {x} $x {y} $y {z} $z
set_object_collision 110@ {state} False
task_pick_up_object $scplayer {object} 110@ {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "CATCH_BOX" {animationFile} "BOX" {time} 0
remove_animation "CARRY"

:RYDER3_19683
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @RYDER3_19754
request_car_recording 486

:RYDER3_19703
if 
  not has_car_recording_been_loaded 486
goto_if_false @RYDER3_19730
wait 0
goto @RYDER3_19703

:RYDER3_19730
if 
  not is_car_dead 108@
goto_if_false @RYDER3_19754
start_playback_recorded_car 108@ {path} 486

:RYDER3_19754
if 
is_ps2_keyboard_key_just_pressed 73
goto_if_false @RYDER3_20104
if 
  not is_car_dead 108@
goto_if_false @RYDER3_20104
79@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 79@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
set_object_collision 79@ {state} False
77@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 77@ {handle} 108@ {xOffset} -0.5 {yOffset} -2.1 {zOffset} -0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 30.0
set_object_collision 77@ {state} False
78@ = create_object #CR_GUNCRATE {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 78@ {handle} 108@ {xOffset} 0.4 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 30.0 {zRotation} 0.0
80@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 80@ {handle} 108@ {xOffset} -0.6 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0
81@ = create_object #CR_AMMOBOX {x} 2278.177 {y} -1144.882 {z} 27.5107
attach_object_to_car 81@ {handle} 108@ {xOffset} -0.1 {yOffset} -2.1 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 15.0

:RYDER3_20104
return 

:RYDER3_20106
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 96@
95@ = 0
return 

:RYDER3_20126
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  95@ == 0
goto_if_false @RYDER3_20169
play_mission_audio MissionAudioSlot.Slot1
print_now 106@s {time} 10000 {flag} 1
95@ = 1

:RYDER3_20169
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  95@ == 1
goto_if_false @RYDER3_20207
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 106@s
95@ = 2

:RYDER3_20207
return 

//-------------Mission 26---------------
// Originally: Robbing Uncle Sam

:RYDER2
script_name 'RYDER2'
gosub @RYDER2_47
if 
  has_deatharrest_been_executed 
goto_if_false @RYDER2_38
gosub @RYDER2_41371

:RYDER2_38
gosub @RYDER2_41489
terminate_this_script 

:RYDER2_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
49@ = 0
50@ = 0

:RYDER2_98
wait 0
38@ += 1
if 
  38@ > 9
goto_if_false @RYDER2_134
38@ = 0

:RYDER2_134
39@ = get_game_timer 
set_lvar_int_to_lvar_int 41@ = 39@
sub_int_lvar_from_int_lvar 41@ -= 40@
set_lvar_int_to_lvar_int 40@ = 39@
add_int_lvar_to_int_lvar 141@ += 41@
add_int_lvar_to_int_lvar 142@ += 41@
add_int_lvar_to_int_lvar 144@ += 41@
42@ = 0

:RYDER2_194
if 
  9 > 42@
goto_if_false @RYDER2_238
add_int_lvar_to_int_lvar 181@(42@,9i) += 41@
42@ += 1
goto @RYDER2_194

:RYDER2_238
add_int_lvar_to_int_lvar 51@ += 41@
add_int_lvar_to_int_lvar 52@ += 41@
add_int_lvar_to_int_lvar 53@ += 41@
add_int_lvar_to_int_lvar 54@ += 41@
add_int_lvar_to_int_lvar 55@ += 41@
add_int_lvar_to_int_lvar 56@ += 41@
add_int_lvar_to_int_lvar 57@ += 41@
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @RYDER2_316
36@ = 1

:RYDER2_316
gosub @RYDER2_988

:RYDER2_323
switch_start 34@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_563 {caseNum1} 0 {caseLabel1} @RYDER2_451 {caseNum2} 1 {caseLabel2} @RYDER2_465 {caseNum3} 2 {caseLabel3} @RYDER2_479 {caseNum4} 3 {caseLabel4} @RYDER2_493 {caseNum5} 4 {caseLabel5} @RYDER2_507 {caseNum6} 5 {caseLabel6} @RYDER2_521 {caseNum7} 6 {caseLabel7} @RYDER2_535
switch_continued 7 {caseLabel1} @RYDER2_549 {caseNum2} -1 {caseLabel2} @RYDER2_563 {caseNum3} -1 {caseLabel3} @RYDER2_563 {caseNum4} -1 {caseLabel4} @RYDER2_563 {caseNum5} -1 {caseLabel5} @RYDER2_563 {caseNum6} -1 {caseLabel6} @RYDER2_563 {caseNum7} -1 {caseLabel7} @RYDER2_563 {caseNum8} -1 {caseLabel8} @RYDER2_563 {caseNum9} -1 {caseLabel9} @RYDER2_563

:RYDER2_451
gosub @RYDER2_1573
goto @RYDER2_563

:RYDER2_465
gosub @RYDER2_3425
goto @RYDER2_563

:RYDER2_479
gosub @RYDER2_6998
goto @RYDER2_563

:RYDER2_493
gosub @RYDER2_11724
goto @RYDER2_563

:RYDER2_507
gosub @RYDER2_12859
goto @RYDER2_563

:RYDER2_521
gosub @RYDER2_14158
goto @RYDER2_563

:RYDER2_535
gosub @RYDER2_18224
goto @RYDER2_563

:RYDER2_549
gosub @RYDER2_30303
goto @RYDER2_563

:RYDER2_563
gosub @RYDER2_32060
if 
  203@ == 1
goto_if_false @RYDER2_602
203@ = 0
goto @RYDER2_323

:RYDER2_602
if 
  37@ == 0
goto_if_false @RYDER2_668
if 
  36@ == 0
goto_if_false @RYDER2_652
goto @RYDER2_98
goto @RYDER2_661

:RYDER2_652
gosub @RYDER2_41389
return 

:RYDER2_661
goto @RYDER2_677

:RYDER2_668
gosub @RYDER2_41371
return 

:RYDER2_677
goto @RYDER2_988
$ryder = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
282@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
281@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
308@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
313@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
97@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
119@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
120@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
121@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
122@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
123@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
93@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
340@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:RYDER2_988
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @RYDER2_1102
if 
  58@ == 0
goto_if_false @RYDER2_1076
58@ = 1
write_debug "LEVEL_DEBUG_ON"
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_1069
set_char_only_damaged_by_player $ryder {state} True

:RYDER2_1069
goto @RYDER2_1102

:RYDER2_1076
58@ = 0
write_debug "LEVEL_DEBUG_OFF"

:RYDER2_1102
if 
  58@ == 1
goto_if_false @RYDER2_1571
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @RYDER2_1169
59@ += 1
if 
  59@ > 2
goto_if_false @RYDER2_1167
59@ = 0

:RYDER2_1167
clear_all_view_variables 

:RYDER2_1169
if 
  59@ == 1
goto_if_false @RYDER2_1409
set_var_int_to_lvar_int $ry2_view_debug = 34@
set_var_int_to_lvar_int $6876 = 35@
set_var_int_to_lvar_int $6877 = 134@
set_var_int_to_lvar_int $6878 = 132@
set_var_float_to_lvar_float $6887 = 253@
set_var_int_to_lvar_int $6880 = 49@
set_var_int_to_lvar_int $6881 = 50@
set_var_int_to_var_int $6882 = $audio_line_is_active
view_integer_variable $ry2_view_debug {_p2} "M_STAGE"
view_integer_variable $6876 {_p2} "M_GOALS"
view_integer_variable $6877 {_p2} "RYDER_STAGE"
view_integer_variable $6878 {_p2} "WAREHOUSE_OPENED"
view_float_variable $6887 {_p2} "GATE2_TARGET_Z"
view_integer_variable $6880 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6881 {_p2} "DIALOGUE_FLAG2"
view_integer_variable $6882 {_p2} "AUDIO_LINE_IS_ACTIVE"

:RYDER2_1409
if 
  59@ == 2
goto_if_false @RYDER2_1571
set_var_int_to_lvar_int $ry2_view_debug = 279@
set_var_int_to_lvar_int $6876 = 127@
set_var_int_to_lvar_int $6877 = 336@
set_var_int_to_lvar_int $6878 = TIMERA
set_var_int_to_lvar_int $6879 = 51@
view_integer_variable $ry2_view_debug {_p2} "RYDER_GET_BOX_FLAG"
view_integer_variable $6876 {_p2} "LOADED_BOXES"
view_integer_variable $6877 {_p2} "SPAWN_THIS_MANY_GUARDS"
view_integer_variable $6878 {_p2} "TIMERA"
view_integer_variable $6879 {_p2} "SPAWN_TIMER"

:RYDER2_1571
return 

:RYDER2_1573
if 
  35@ == 0
goto_if_false @RYDER2_3246
$ryder = 0
95@ = 0
99@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
$ryder_health = 0
140@ = 0
143@ = 0
145@ = 0
146@ = 0
198@ = 0
199@ = 0
203@ = 0
42@ = 0

:RYDER2_1787
if 
  9 > 42@
goto_if_false @RYDER2_1830
172@(42@,9i) = 0
42@ += 1
goto @RYDER2_1787

:RYDER2_1830
120@ = 0
193@ = 0
196@ = 0
197@ = 0
307@ = 0
202@ = 0
200@ = 6
242@ = 2720.623
243@ = -2405.4319
244@ = 13.989
245@ = 2774.3611
246@ = -2417.8291
247@ = 14.675
347@ = 2721.0
357@ = -2380.0
367@ = 16.3507
377@ = 173.3713
387@ = 2721.6011
397@ = -2384.6379
407@ = 16.3403
417@ = 2732.873
427@ = -2385.677
437@ = 12.625
447@ = 2763.6919
457@ = -2411.2581
467@ = 12.6276
348@ = 2729.3501
358@ = -2451.0701
368@ = 16.6007
378@ = 247.5382
388@ = 2734.908
398@ = -2451.3201
408@ = 16.5938
418@ = 2735.176
428@ = -2437.915
438@ = 12.6362
448@ = 2763.772
458@ = -2428.2029
468@ = 12.4725
349@ = 2748.5549
359@ = -2453.0491
369@ = 12.8623
379@ = 347.9489
389@ = 2748.595
399@ = -2446.5869
409@ = 12.6432
419@ = 2757.5859
429@ = -2434.761
439@ = 12.4876
449@ = 2766.158
459@ = -2432.0139
469@ = 12.6485
350@ = 2793.5161
360@ = -2394.2839
370@ = 12.8623
380@ = 178.5569
390@ = 2793.4729
400@ = -2398.6621
410@ = 12.6323
420@ = 2799.573
430@ = -2403.292
440@ = 12.6308
450@ = 2799.251
460@ = -2410.9851
470@ = 12.6309
351@ = 2721.0
361@ = -2380.0
371@ = 16.3507
381@ = 186.1396
391@ = 2721.502
401@ = -2383.6089
411@ = 16.3403
421@ = 2733.7439
431@ = -2386.2271
441@ = 12.625
451@ = 2754.885
461@ = -2409.502
471@ = 12.5104
352@ = 2729.3501
362@ = -2451.0701
372@ = 16.6007
382@ = 246.8993
392@ = 2734.468
402@ = -2450.824
412@ = 16.5938
422@ = 2735.573
432@ = -2436.667
442@ = 12.6361
452@ = 2759.3601
462@ = -2420.356
472@ = 12.4948
353@ = 2748.551
363@ = -2452.8279
373@ = 12.8623
383@ = 339.2833
393@ = 2750.6699
403@ = -2442.9441
413@ = 12.6432
423@ = 2758.147
433@ = -2440.491
443@ = 12.4936
453@ = 2769.0291
463@ = -2430.3369
473@ = 12.6485
354@ = 2793.6379
364@ = -2395.2271
374@ = 12.8623
384@ = 170.3273
394@ = 2793.9031
404@ = -2399.063
414@ = 12.6322
424@ = 2799.384
434@ = -2403.4741
444@ = 12.6309
454@ = 2799.4099
464@ = -2414.3359
474@ = 12.6309
355@ = 2799.7639
365@ = -2433.002
375@ = 12.6308
385@ = 358.8697
395@ = 2799.9021
405@ = -2425.6941
415@ = 12.6307
425@ = 2796.6541
435@ = -2420.4629
445@ = 12.6315
455@ = 2786.01
465@ = -2414.4451
475@ = 12.6341
356@ = 2800.0081
366@ = -2432.2849
376@ = 12.6307
386@ = 2.0796
396@ = 2800.0229
406@ = -2426.1531
416@ = 12.6307
426@ = 2790.801
436@ = -2421.917
446@ = 12.633
456@ = 2786.3369
466@ = -2421.4331
476@ = 12.634
35@ += 1

:RYDER2_3246
if 
  35@ == 1
goto_if_false @RYDER2_3282
load_mission_text 'RYDER2'
35@ += 1

:RYDER2_3282
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
237@ = load_char_decision_maker DecisionMakerType.Empty
236@ = load_char_decision_maker DecisionMakerType.Tough
235@ = load_char_decision_maker DecisionMakerType.Tough
238@ = load_char_decision_maker DecisionMakerType.Empty
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1823

:RYDER2_3333
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @RYDER2_3359
wait 0
goto @RYDER2_3333

:RYDER2_3359
if 
  35@ == 2
goto_if_false @RYDER2_3391
set_wanted_multiplier 0.2
35@ = 99

:RYDER2_3391
if 
  35@ == 99
goto_if_false @RYDER2_3423
34@ += 1
35@ = 0

:RYDER2_3423
return 

:RYDER2_3425
if 
  35@ == 0
goto_if_false @RYDER2_3581
clear_area 2463.4751 {y} -1713.428 {z} 12.5025 {radius} 20.0 {clearParticles} True
load_cutscene 'RYDER2A'

:RYDER2_3478
if 
  not has_cutscene_loaded 
goto_if_false @RYDER2_3502
wait 0
goto @RYDER2_3478

:RYDER2_3502
start_cutscene 
do_fade 1000 {direction} Fade.In

:RYDER2_3511
if 
  not has_cutscene_finished 
goto_if_false @RYDER2_3535
wait 0
goto @RYDER2_3511

:RYDER2_3535
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:RYDER2_3548
if 
  get_fading_status 
goto_if_false @RYDER2_3572
wait 0
goto @RYDER2_3548

:RYDER2_3572
clear_cutscene 
35@ += 1

:RYDER2_3581
if 
  35@ == 1
goto_if_false @RYDER2_4528
switch_car_generator $gen_car6 {amount} 0
clear_area 2472.8101 {y} -1690.97 {z} 12.53 {radius} 5.0 {clearParticles} True
request_model 414
load_special_character 1 {modelName} 'RYDER2'
request_model 346

:RYDER2_3653
if or
  not has_model_loaded 414
  not has_special_character_loaded 1
  not has_model_loaded 346
goto_if_false @RYDER2_3689
wait 0
goto @RYDER2_3653

:RYDER2_3689
set_player_group_to_follow_always $player1 {state} True
set_car_model_components 414 {component1} -1 {component2} -1
95@ = create_car 414 {x} 2475.908 {y} -1679.621 {z} 12.3447
set_car_heading 95@ {heading} 69.0573
remove_blip 119@
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True
set_can_burst_car_tyres 95@ {state} False
vehicle_does_provide_cover 95@ {state} False
suppress_car_model 414
$ryder = create_char_as_passenger 95@ {pedType} PedType.Mission2 {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $ryder {state} False
give_weapon_to_char $ryder {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy $ryder {accuracy} 70
set_char_max_health $ryder {maxHealth} 500
set_char_health $ryder {health} 500
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} False {duringScriptTask} False
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_anim_group_for_char $ryder {animGroup} "GANG1"
set_char_decision_maker $ryder {handleOrTemplate} 235@
clear_char_decision_maker_event_response 235@ {event} Event.VehicleOnFire
task_look_at_char $ryder {target} $scplayer {time} 999999
print_now 'RY2_03' {time} 7000 {flag} 1
49@ = 0
set_char_cant_be_dragged_out $ryder {state} True
set_anim_group_for_char $ryder {animGroup} "MAN"
set_char_coordinates $scplayer {x} 2474.8701 {y} -1698.465 {z} 12.521
set_char_heading $scplayer {heading} 4.8941
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 0 {direction} Fade.In

:RYDER2_3979
if 
  get_fading_status 
goto_if_false @RYDER2_4003
wait 0
goto @RYDER2_3979

:RYDER2_4003
set_player_control $player1 {state} True
TIMERA = 0
240@ = create_object_no_offset #KMB_FRONTGATE {x} 242@ {y} 243@ {z} 244@
248@, 249@, 250@ = get_offset_from_object_in_world_coords 240@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
241@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 245@ {y} 246@ {z} 247@
251@, 252@, 253@ = get_offset_from_object_in_world_coords 241@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0
257@ = create_object_no_offset #KMB_FRONTGATE {x} 2720.623 {y} -2504.0229 {z} 13.989
254@, 255@, 256@ = get_offset_from_object_in_world_coords 257@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
258@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2774.3611 {y} -2493.9221 {z} 14.675
259@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2774.3611 {y} -2455.925 {z} 14.675
87@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2405.394 {z} 14.58
88@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2430.2151 {z} 14.58
89@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2443.4871 {z} 14.58
90@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2468.2539 {z} 14.58
91@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2481.7109 {z} 14.58
92@ = create_object_no_offset #WAREHOUSE_DOOR1 {x} 2799.75 {y} -2506.313 {z} 14.58
42@ = 0

:RYDER2_4352
if 
  6 > 42@
goto_if_false @RYDER2_4395
freeze_object_position 87@(42@,6i) {state} True
42@ += 1
goto @RYDER2_4352

:RYDER2_4395
60@ = create_object #SEC_KEYPAD {x} 2720.4751 {y} -2411.856 {z} 13.8768
set_object_heading 60@ {heading} 90.0
set_object_health 60@ {health} 10
freeze_object_position 60@ {state} True
set_object_collision 60@ {state} False
61@ = create_object #SEC_KEYPAD {x} 2774.1479 {y} -2423.23 {z} 14.2684
set_object_heading 61@ {heading} 270.0
set_object_health 61@ {health} 10
freeze_object_position 61@ {state} True
set_object_collision 61@ {state} False
set_radio_channel RadioChannel.RadioLosSantos
49@ = 0
TIMERA = 0
35@ += 1

:RYDER2_4528
if 
  35@ == 2
goto_if_false @RYDER2_4689
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_4689
if 
  not is_car_dead 95@
goto_if_false @RYDER2_4689
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_4689
remove_blip 120@
120@ = add_blip_for_coord 2699.293 {y} -2395.0129 {z} 12.6172
print_now 'RY2_02' {time} 7000 {flag} 1
54@ = 0
35@ += 1
49@ = 0
50@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_4689
clear_look_at $ryder

:RYDER2_4689
if 
  35@ == 3
goto_if_false @RYDER2_6394
if 
  58@ == 1
goto_if_false @RYDER2_4762
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @RYDER2_4762
set_char_coordinates $scplayer {x} 2699.293 {y} -2395.0129 {z} 12.6172

:RYDER2_4762
if 
  not is_car_dead 95@
goto_if_false @RYDER2_4919
if 
  does_blip_exist 120@
goto_if_false @RYDER2_4919
if 
  locate_car_3d 95@ {x} 2699.293 {y} -2395.0129 {z} 12.6172 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RYDER2_4919
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_4919
if 
  is_vehicle_on_all_wheels 95@
goto_if_false @RYDER2_4919
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
set_player_control $player1 {state} False
remove_blip 120@
35@ = 99

:RYDER2_4919
if 
  54@ > 7500
goto_if_false @RYDER2_6394
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6394
if 
  is_char_in_any_car $ryder
goto_if_false @RYDER2_6394
$car = store_car_char_is_in $ryder
if 
  not is_car_dead $car
goto_if_false @RYDER2_6394
if 
  is_char_in_car $scplayer {vehicle} $car
goto_if_false @RYDER2_6394
if 
  TIMERB > 1000
goto_if_false @RYDER2_6394
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_6394
switch_start 50@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @RYDER2_6394 {caseNum1} 0 {caseLabel1} @RYDER2_5178 {caseNum2} 1 {caseLabel2} @RYDER2_5255 {caseNum3} 2 {caseLabel3} @RYDER2_5383 {caseNum4} 3 {caseLabel4} @RYDER2_5511 {caseNum5} 4 {caseLabel5} @RYDER2_5639 {caseNum6} 5 {caseLabel6} @RYDER2_5767 {caseNum7} 6 {caseLabel7} @RYDER2_5895
switch_continued 7 {caseLabel1} @RYDER2_6023 {caseNum2} 8 {caseLabel2} @RYDER2_6151 {caseNum3} 9 {caseLabel3} @RYDER2_6279 {caseNum4} -1 {caseLabel4} @RYDER2_6394 {caseNum5} -1 {caseLabel5} @RYDER2_6394 {caseNum6} -1 {caseLabel6} @RYDER2_6394 {caseNum7} -1 {caseLabel7} @RYDER2_6394 {caseNum8} -1 {caseLabel8} @RYDER2_6394 {caseNum9} -1 {caseLabel9} @RYDER2_6394

:RYDER2_5178
set_var_text_label s$audio_string = 'RYD2_AA'
set_var_int_to_constant $audio_sound_file = 33800
start_new_script @AUDIOL $ryder 0 0 2 0 
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33805
goto @RYDER2_6394

:RYDER2_5255
set_var_text_label s$audio_string = 'RYD2_CA'
set_var_int_to_constant $audio_sound_file = 33805
if 
  49@ == 0
goto_if_false @RYDER2_5323
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_5349

:RYDER2_5323
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_5349
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33806
goto @RYDER2_6394

:RYDER2_5383
set_var_text_label s$audio_string = 'RYD2_CB'
set_var_int_to_constant $audio_sound_file = 33806
if 
  49@ == 0
goto_if_false @RYDER2_5451
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_5477

:RYDER2_5451
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_5477
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33807
goto @RYDER2_6394

:RYDER2_5511
set_var_text_label s$audio_string = 'RYD2_CC'
set_var_int_to_constant $audio_sound_file = 33807
if 
  49@ == 0
goto_if_false @RYDER2_5579
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_5605

:RYDER2_5579
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_5605
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33808
goto @RYDER2_6394

:RYDER2_5639
set_var_text_label s$audio_string = 'RYD2_CD'
set_var_int_to_constant $audio_sound_file = 33808
if 
  49@ == 0
goto_if_false @RYDER2_5707
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_5733

:RYDER2_5707
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_5733
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33809
goto @RYDER2_6394

:RYDER2_5767
set_var_text_label s$audio_string = 'RYD2_CE'
set_var_int_to_constant $audio_sound_file = 33809
if 
  49@ == 0
goto_if_false @RYDER2_5835
start_new_script @AUDIOL $ryder 0 0 1 1 
goto @RYDER2_5861

:RYDER2_5835
start_new_script @AUDIOL $ryder 0 0 1 0 
49@ = 0

:RYDER2_5861
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33810
goto @RYDER2_6394

:RYDER2_5895
set_var_text_label s$audio_string = 'RYD2_CF'
set_var_int_to_constant $audio_sound_file = 33810
if 
  49@ == 0
goto_if_false @RYDER2_5963
start_new_script @AUDIOL $scplayer 0 0 2 1 
goto @RYDER2_5989

:RYDER2_5963
start_new_script @AUDIOL $scplayer 0 0 2 0 
49@ = 0

:RYDER2_5989
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33811
goto @RYDER2_6394

:RYDER2_6023
set_var_text_label s$audio_string = 'RYD2_CG'
set_var_int_to_constant $audio_sound_file = 33811
if 
  49@ == 0
goto_if_false @RYDER2_6091
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_6117

:RYDER2_6091
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_6117
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33812
goto @RYDER2_6394

:RYDER2_6151
set_var_text_label s$audio_string = 'RYD2_CH'
set_var_int_to_constant $audio_sound_file = 33812
if 
  49@ == 0
goto_if_false @RYDER2_6219
start_new_script @AUDIOL $ryder 0 0 2 1 
goto @RYDER2_6245

:RYDER2_6219
start_new_script @AUDIOL $ryder 0 0 2 0 
49@ = 0

:RYDER2_6245
50@ += 1
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33813
goto @RYDER2_6394

:RYDER2_6279
set_var_text_label s$audio_string = 'RYD2_CJ'
set_var_int_to_constant $audio_sound_file = 33813
if 
  49@ == 0
goto_if_false @RYDER2_6347
start_new_script @AUDIOL $scplayer 0 0 1 1 
goto @RYDER2_6373

:RYDER2_6347
start_new_script @AUDIOL $scplayer 0 0 1 0 
49@ = 0

:RYDER2_6373
50@ += 1
TIMERB = 0
goto @RYDER2_6394

:RYDER2_6394
if 
  35@ == 99
goto_if_false @RYDER2_6426
35@ = 0
34@ += 1

:RYDER2_6426
if 
  not is_car_dead 95@
goto_if_false @RYDER2_6996
if 
  not is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_6913
if 
  not does_blip_exist 119@
goto_if_false @RYDER2_6539
remove_blip 119@
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True
remove_blip 120@
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6531
task_look_at_char $ryder {target} $scplayer {time} 999999

:RYDER2_6531
TIMERA = 20001

:RYDER2_6539
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_6906
if 
  TIMERA > 60000
goto_if_false @RYDER2_6608
print_now 'RY2_03' {time} 7000 {flag} 1
49@ = 0
TIMERA = 0

:RYDER2_6608
if 
  35@ > 2
goto_if_false @RYDER2_6906
if 
  TIMERA > 5000
goto_if_false @RYDER2_6906
if 
  49@ == 0
goto_if_false @RYDER2_6906
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6906
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @RYDER2_6906
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_6880 {caseNum1} 0 {caseLabel1} @RYDER2_6787 {caseNum2} 1 {caseLabel2} @RYDER2_6818 {caseNum3} 2 {caseLabel3} @RYDER2_6849 {caseNum4} -1 {caseLabel4} @RYDER2_6880 {caseNum5} -1 {caseLabel5} @RYDER2_6880 {caseNum6} -1 {caseLabel6} @RYDER2_6880 {caseNum7} -1 {caseLabel7} @RYDER2_6880

:RYDER2_6787
set_var_text_label s$audio_string = 'RYD2_BA'
set_var_int_to_constant $audio_sound_file = 33802
goto @RYDER2_6880

:RYDER2_6818
set_var_text_label s$audio_string = 'RYD2_BB'
set_var_int_to_constant $audio_sound_file = 33803
goto @RYDER2_6880

:RYDER2_6849
set_var_text_label s$audio_string = 'RYD2_BC'
set_var_int_to_constant $audio_sound_file = 33804
goto @RYDER2_6880

:RYDER2_6880
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1

:RYDER2_6906
goto @RYDER2_6996

:RYDER2_6913
if 
  does_blip_exist 119@
goto_if_false @RYDER2_6996
remove_blip 119@
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_6996
remove_blip 120@
120@ = add_blip_for_coord 2699.293 {y} -2395.0129 {z} 12.6172
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_6996
clear_look_at $ryder

:RYDER2_6996
return 

:RYDER2_6998
if 
  35@ == 0
goto_if_false @RYDER2_7039
clear_prints 
set_player_control $player1 {state} False
49@ = -1
35@ += 1

:RYDER2_7039
if 
  35@ == 1
goto_if_false @RYDER2_7096
if 
  not is_car_dead 95@
goto_if_false @RYDER2_7096
if 
  is_car_stopped 95@
goto_if_false @RYDER2_7096
35@ += 1

:RYDER2_7096
if 
  35@ == 2
goto_if_false @RYDER2_8829
do_fade 500 {direction} Fade.Out

:RYDER2_7121
if 
  get_fading_status 
goto_if_false @RYDER2_7145
wait 0
goto @RYDER2_7121

:RYDER2_7145
if 
  not is_car_dead 95@
goto_if_false @RYDER2_7191
set_car_coordinates 95@ {x} 2699.623 {y} -2394.7871 {z} 12.6172
set_car_heading 95@ {heading} 267.9095

:RYDER2_7191
clear_area 2720.6111 {y} -2405.3799 {z} 12.4609 {radius} 30.0 {clearParticles} True
clear_area 2768.74 {y} -2413.7881 {z} 12.6172 {radius} 30.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 2688.5701 {y} -2394.186 {z} 17.6992 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2689.4551 {y} -2394.5991 {z} 17.4888 {switchStyle} SwitchType.JumpCut
request_model #CJ_CARDBRD_PICKUP
request_model 287
request_model 346
request_model 530
load_all_models_now 

:RYDER2_7316
if or
  not has_model_loaded #CJ_CARDBRD_PICKUP
  not has_model_loaded 287
  not has_model_loaded 346
  not has_model_loaded 530
goto_if_false @RYDER2_7358
wait 0
goto @RYDER2_7316

:RYDER2_7358
66@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2796.875 {y} -2417.1421 {z} 13.23
67@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2798.009 {y} -2417.1069 {z} 13.23
68@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2796.8999 {y} -2418.3101 {z} 13.23
69@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2798.0129 {y} -2418.325 {z} 13.23
73@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2799.886 {y} -2381.2029 {z} 13.23
74@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2799.958 {y} -2379.72 {z} 13.23
75@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2763.531 {y} -2401.9351 {z} 13.23
76@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2802.75 {y} -2449.835 {z} 13.23
77@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2802.915 {y} -2448.575 {z} 13.23
78@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2802.906 {y} -2446.8269 {z} 13.23
79@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2788.9319 {y} -2431.271 {z} 13.23
80@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2790.3979 {y} -2431.3359 {z} 13.23
81@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2778.698 {y} -2442.4331 {z} 13.23
82@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2763.5649 {y} -2400.6411 {z} 13.23
83@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2780.8511 {y} -2392.7371 {z} 13.23
84@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2795.094 {y} -2469.49 {z} 13.23
85@ = create_object_no_offset #CJ_CARDBRD_PICKUP {x} 2803.0669 {y} -2428.3799 {z} 13.23
set_object_heading 66@ {heading} 91.9411
set_object_heading 67@ {heading} 0.032
set_object_heading 68@ {heading} 89.8612
set_object_heading 69@ {heading} 1.6342
set_object_heading 73@ {heading} 6.8174
set_object_heading 74@ {heading} 19.1807
set_object_heading 75@ {heading} 339.113
set_object_heading 76@ {heading} 352.3154
set_object_heading 77@ {heading} 2.8386
set_object_heading 78@ {heading} 3.2099
set_object_heading 79@ {heading} 266.6248
set_object_heading 80@ {heading} 4.6663
set_object_heading 81@ {heading} 175.8277
set_object_heading 82@ {heading} 344.0064
set_object_heading 83@ {heading} 355.9493
set_object_heading 84@ {heading} 1.9283
set_object_heading 85@ {heading} 358.0803
42@ = 0

:RYDER2_7926
if 
  25 > 42@
goto_if_false @RYDER2_8042
wait 0
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_8028
set_object_dynamic 62@(42@,25i) {state} True
43@ = generate_random_int_in_range 1 {max} 8
set_object_mass 62@(42@,25i) {mass} 1000.0
set_object_turn_mass 62@(42@,25i) {turnMass} 1000.0
set_lvar_int_to_lvar_int 147@(42@,25i) = 43@

:RYDER2_8028
42@ += 1
goto @RYDER2_7926

:RYDER2_8042
102@ = create_char PedType.Mission1 {modelId} 287 {x} 2773.7219 {y} -2423.3879 {z} 12.6311
set_char_heading 102@ {heading} 68.8849
204@, 205@, 206@ = get_offset_from_char_in_world_coords 102@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
103@ = create_char PedType.Mission1 {modelId} 287 {x} 2721.9441 {y} -2411.5649 {z} 12.6198
set_char_heading 103@ {heading} 0.0
104@ = create_char PedType.Mission1 {modelId} 287 {x} 2789.5239 {y} -2416.3721 {z} 12.6333
set_char_heading 104@ {heading} 202.4407
105@ = create_char PedType.Mission1 {modelId} 287 {x} 2790.231 {y} -2418.8369 {z} 12.6331
set_char_heading 105@ {heading} 23.3411
106@ = create_char PedType.Mission1 {modelId} 287 {x} 2774.9109 {y} -2404.303 {z} 12.6311
set_char_heading 106@ {heading} 77.8711
239@ = create_group DefaultTaskAllocator.StandStill
42@ = 0

:RYDER2_8260
if 
  5 > 42@
goto_if_false @RYDER2_8452
give_weapon_to_char 102@(42@,9i) {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 102@(42@,9i) {accuracy} 35
set_char_health 102@(42@,9i) {health} 100
task_toggle_ped_threat_scanner 102@(42@,9i) {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 102@(42@,9i) {handleOrTemplate} 236@
set_sense_range 102@(42@,9i) {range} 100.0
if 
  42@ == 0
goto_if_false @RYDER2_8390
set_group_leader 239@ {handle} 102@
goto @RYDER2_8427

:RYDER2_8390
if and
  42@ <> 2
  42@ <> 3
goto_if_false @RYDER2_8427
set_group_member 239@ {handle} 102@(42@,9i)

:RYDER2_8427
set_char_never_leaves_group 102@(42@,9i) {state} True
42@ += 1
goto @RYDER2_8260

:RYDER2_8452
if 
  not is_char_dead 104@
goto_if_false @RYDER2_8476
set_char_decision_maker 104@ {handleOrTemplate} 237@

:RYDER2_8476
if 
  not is_char_dead 105@
goto_if_false @RYDER2_8500
set_char_decision_maker 105@ {handleOrTemplate} 237@

:RYDER2_8500
99@ = create_car 530 {x} 2791.426 {y} -2418.5769 {z} 12.66
set_car_heading 99@ {heading} 90.0
mark_model_as_no_longer_needed 530
set_car_proofs 99@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_coordinates 99@ {x} 2758.241 {y} -2372.314 {z} 12.6172
set_car_heading 99@ {heading} 180.3774
set_can_burst_car_tyres 99@ {state} False
set_car_health 99@ {health} 3000
112@ = create_char_inside_car 99@ {pedType} PedType.Mission1 {modelId} 287
request_model 500

:RYDER2_8616
if 
  not has_model_loaded 500
goto_if_false @RYDER2_8643
wait 0
goto @RYDER2_8616

:RYDER2_8643
98@ = create_car 500 {x} 2688.9629 {y} -2407.676 {z} 12.4609
set_car_heading 98@ {heading} 270.0
111@ = create_char_inside_car 98@ {pedType} PedType.Mission1 {modelId} 287
car_goto_coordinates_accurate 98@ {x} 2712.854 {y} -2407.825 {z} 12.4684
mark_model_as_no_longer_needed 500
change_car_colour 98@ {color1} 37 {color2} 37
if 
  not is_char_dead 106@
goto_if_false @RYDER2_8784
flush_route 
extend_route 2776.531 {y} -2401.042 {z} 12.625
extend_route 2798.9331 {y} -2400.343 {z} 12.631
task_follow_point_route 106@ {speed} MoveState.Walk {mode} RouteMode.Loop

:RYDER2_8784
do_fade 500 {direction} Fade.In

:RYDER2_8791
if 
  get_fading_status 
goto_if_false @RYDER2_8815
wait 0
goto @RYDER2_8791

:RYDER2_8815
TIMERA = 0
35@ += 1

:RYDER2_8829
if 
  35@ == 3
goto_if_false @RYDER2_9099
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_9099
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9099
if 
  locate_car_3d 98@ {x} 2712.854 {y} -2407.825 {z} 12.4684 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @RYDER2_9099
set_fixed_camera_position 2700.626 {y} -2392.21 {z} 14.9203 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2701.092 {y} -2393.0879 {z} 14.8109 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 99@
goto_if_false @RYDER2_9024
car_goto_coordinates_accurate 99@ {x} 2768.74 {y} -2413.7881 {z} 12.6172
set_car_straight_line_distance 99@ {distance} 200

:RYDER2_9024
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_9078
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9078
task_look_at_vehicle $ryder {vehicle} 98@ {time} 5000
task_look_at_vehicle $scplayer {vehicle} 98@ {time} 6000

:RYDER2_9078
TIMERA = 0
49@ += 1
35@ += 1

:RYDER2_9099
if 
  35@ == 4
goto_if_false @RYDER2_9219
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9219
if 
  locate_stopped_car_3d 98@ {x} 2712.854 {y} -2407.825 {z} 12.4684 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @RYDER2_9219
35@ += 1
if 
  does_object_exist 240@
goto_if_false @RYDER2_9212
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStart

:RYDER2_9212
TIMERA = 0

:RYDER2_9219
if 
  35@ == 5
goto_if_false @RYDER2_9310
if 
  does_object_exist 240@
goto_if_false @RYDER2_9310
if 
  slide_object 240@ {posX} 248@ {posY} 249@ {posZ} 250@ {speedX} 0.0 {speedY} 0.2 {speedZ} 0.0 {collisionCheck} False
goto_if_false @RYDER2_9310
35@ += 1
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStop

:RYDER2_9310
if 
  35@ == 6
goto_if_false @RYDER2_9484
if 
  not is_car_dead 98@
goto_if_false @RYDER2_9484
set_fixed_camera_position 2723.094 {y} -2413.2451 {z} 14.2659 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2722.5481 {y} -2412.4141 {z} 14.1704 {switchStyle} SwitchType.JumpCut
car_goto_coordinates 98@ {x} 2758.4919 {y} -2454.51 {z} 12.4766
if 
  not is_char_dead 102@
goto_if_false @RYDER2_9441
set_char_heading 102@ {heading} 275.0

:RYDER2_9441
if 
  not is_char_dead 103@
goto_if_false @RYDER2_9470
task_look_at_vehicle 103@ {vehicle} 98@ {time} 999999

:RYDER2_9470
35@ += 1
TIMERA = 0

:RYDER2_9484
if 
  35@ == 7
goto_if_false @RYDER2_9593
if 
  TIMERA > 2500
goto_if_false @RYDER2_9593
set_fixed_camera_position 2770.979 {y} -2426.9331 {z} 13.3413 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2771.1851 {y} -2425.9771 {z} 13.5536 {switchStyle} SwitchType.JumpCut
TIMERA = 0
201@ = 0
35@ += 1

:RYDER2_9593
if 
  35@ == 8
goto_if_false @RYDER2_9875
if 
  not is_car_dead 99@
goto_if_false @RYDER2_9810
if 
  locate_stopped_car_3d 99@ {x} 2768.74 {y} -2413.7881 {z} 12.6172 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @RYDER2_9810
if 
  not is_char_dead 102@
goto_if_false @RYDER2_9810
48@ = open_sequence_task 
task_turn_char_to_face_coord -1 {x} 2774.2671 {y} -2423.22 {z} 14.3429
task_play_anim -1 {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
task_go_straight_to_coord -1 {x} 2773.7219 {y} -2423.3879 {z} 12.6311 {speed} MoveState.Walk {time} 5000
task_achieve_heading -1 {heading} 90.0
close_sequence_task 48@
perform_sequence_task 102@ {sequence} 48@
clear_sequence_task 48@
TIMERA = 0
35@ += 1

:RYDER2_9810
if 
  TIMERA > 10000
goto_if_false @RYDER2_9875
if 
  not is_car_dead 99@
goto_if_false @RYDER2_9875
set_car_coordinates 99@ {x} 2768.74 {y} -2413.7881 {z} 12.6172
set_car_heading 99@ {heading} 225.6142

:RYDER2_9875
if 
  35@ == 9
goto_if_false @RYDER2_10105
if 
  not is_char_dead 102@
goto_if_false @RYDER2_10105
if 
  is_char_playing_anim 102@ {animationName} "ATM"
goto_if_false @RYDER2_10030
if 
  201@ == 0
goto_if_false @RYDER2_9962
TIMERB = 0
201@ += 1

:RYDER2_9962
if 
  201@ == 1
goto_if_false @RYDER2_10030
if 
  TIMERB > 500
goto_if_false @RYDER2_10030
if 
  does_object_exist 61@
goto_if_false @RYDER2_10030
report_mission_audio_event_at_object 61@ {soundId} ScriptSound.SoundKeypadBeep
201@ += 1

:RYDER2_10030
42@ = get_script_task_status 102@ {taskId} 1560
if or
  is_int_lvar_equal_to_constant 42@ == 7
  TIMERA > 4000
goto_if_false @RYDER2_10105
TIMERA = 0
if 
  does_object_exist 241@
goto_if_false @RYDER2_10098
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_10098
35@ += 1

:RYDER2_10105
if 
  35@ == 10
goto_if_false @RYDER2_10239
if 
  does_object_exist 241@
goto_if_false @RYDER2_10239
if 
  slide_object 241@ {posX} 251@ {posY} 252@ {posZ} 253@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False
goto_if_false @RYDER2_10239
if 
  not is_car_dead 99@
goto_if_false @RYDER2_10239
car_goto_coordinates 99@ {x} 2785.354 {y} -2416.7439 {z} 12.6187
TIMERA = 0
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStop
35@ += 1

:RYDER2_10239
if 
  35@ == 11
goto_if_false @RYDER2_10307
if 
  TIMERA > 4000
goto_if_false @RYDER2_10307
if 
  does_object_exist 241@
goto_if_false @RYDER2_10300
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_10300
35@ += 1

:RYDER2_10307
if 
  35@ == 12
goto_if_false @RYDER2_10398
if 
  does_object_exist 241@
goto_if_false @RYDER2_10398
if 
  slide_object 241@ {posX} 245@ {posY} 246@ {posZ} 247@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.2 {collisionCheck} False
goto_if_false @RYDER2_10398
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStop
35@ += 1

:RYDER2_10398
if 
  35@ == 13
goto_if_false @RYDER2_10449
if and
  TIMERA > 2000
  $audio_line_is_active == 0
goto_if_false @RYDER2_10449
35@ = 99

:RYDER2_10449
if 
  TIMERB > 1000
goto_if_false @RYDER2_11105
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_11105
switch_start 49@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_11105 {caseNum1} 0 {caseLabel1} @RYDER2_10614 {caseNum2} 1 {caseLabel2} @RYDER2_10691 {caseNum3} 2 {caseLabel3} @RYDER2_10712 {caseNum4} 3 {caseLabel4} @RYDER2_10789 {caseNum5} 4 {caseLabel5} @RYDER2_10866 {caseNum6} 5 {caseLabel6} @RYDER2_10943 {caseNum7} 6 {caseLabel7} @RYDER2_11020
switch_continued 7 {caseLabel1} @RYDER2_11041 {caseNum2} -1 {caseLabel2} @RYDER2_11105 {caseNum3} -1 {caseLabel3} @RYDER2_11105 {caseNum4} -1 {caseLabel4} @RYDER2_11105 {caseNum5} -1 {caseLabel5} @RYDER2_11105 {caseNum6} -1 {caseLabel6} @RYDER2_11105 {caseNum7} -1 {caseLabel7} @RYDER2_11105 {caseNum8} -1 {caseLabel8} @RYDER2_11105 {caseNum9} -1 {caseLabel9} @RYDER2_11105

:RYDER2_10614
set_var_text_label s$audio_string = 'RYD2_DA'
set_var_int_to_constant $audio_sound_file = 33814
start_new_script @AUDIOL $ryder 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33815
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_10691
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_10712
set_var_text_label s$audio_string = 'RYD2_DB'
set_var_int_to_constant $audio_sound_file = 33815
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33816
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_10789
set_var_text_label s$audio_string = 'RYD2_DC'
set_var_int_to_constant $audio_sound_file = 33816
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33817
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_10866
set_var_text_label s$audio_string = 'RYD2_DD'
set_var_int_to_constant $audio_sound_file = 33817
start_new_script @AUDIOL $ryder 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33818
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_10943
set_var_text_label s$audio_string = 'RYD2_DE'
set_var_int_to_constant $audio_sound_file = 33818
start_new_script @AUDIOL $ryder 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33819
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_11020
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_11041
set_var_text_label s$audio_string = 'RYD2_DF'
set_var_int_to_constant $audio_sound_file = 33819
start_new_script @AUDIOL $ryder 0 1 2 1 
49@ += 1
TIMERB = 0
goto @RYDER2_11105

:RYDER2_11105
if 
  35@ > 2
goto_if_false @RYDER2_11147
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER2_11147
35@ = 99

:RYDER2_11147
if 
  35@ == 99
goto_if_false @RYDER2_11722
do_fade 250 {direction} Fade.Out

:RYDER2_11172
if 
  get_fading_status 
goto_if_false @RYDER2_11196
wait 0
goto @RYDER2_11172

:RYDER2_11196
if 
  does_object_exist 240@
goto_if_false @RYDER2_11220
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStop

:RYDER2_11220
if 
  does_object_exist 241@
goto_if_false @RYDER2_11244
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStop

:RYDER2_11244
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_car_dead 95@
goto_if_false @RYDER2_11334
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2700.7581 {y} -2392.45 {z} 12.6172
set_char_heading $scplayer {heading} 236.0759
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_11334
clear_char_tasks_immediately $ryder
warp_char_into_car $ryder {vehicle} 95@

:RYDER2_11334
if 
  not is_car_dead 99@
goto_if_false @RYDER2_11380
set_car_coordinates 99@ {x} 2791.426 {y} -2418.3101 {z} 13.66
set_car_heading 99@ {heading} 270.0

:RYDER2_11380
if 
  not is_char_dead 112@
goto_if_false @RYDER2_11401
delete_char 112@

:RYDER2_11401
if 
  not is_car_dead 98@
goto_if_false @RYDER2_11447
set_car_coordinates 98@ {x} 2748.0549 {y} -2394.427 {z} 12.6419
set_car_heading 98@ {heading} 174.3167

:RYDER2_11447
if 
  not is_char_dead 111@
goto_if_false @RYDER2_11468
delete_char 111@

:RYDER2_11468
set_object_coordinates 240@ {x} 242@ {y} 243@ {z} 244@
set_object_coordinates 241@ {x} 245@ {y} 246@ {z} 247@
42@ = 0

:RYDER2_11503
if 
  25 > 42@
goto_if_false @RYDER2_11612
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_11598
freeze_object_position 62@(42@,25i) {state} False
set_object_velocity 62@(42@,25i) {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} 0.0
set_object_dynamic 62@(42@,25i) {state} False
set_object_collision 62@(42@,25i) {state} True

:RYDER2_11598
42@ += 1
goto @RYDER2_11503

:RYDER2_11612
if 
  not is_car_dead 95@
goto_if_false @RYDER2_11637
pop_car_door 95@ {door} CarDoor.Trunk {visibility} False

:RYDER2_11637
if 
  not is_char_dead 103@
goto_if_false @RYDER2_11658
clear_look_at 103@

:RYDER2_11658
switch_emergency_services False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 250 {direction} Fade.In

:RYDER2_11677
if 
  get_fading_status 
goto_if_false @RYDER2_11701
wait 0
goto @RYDER2_11677

:RYDER2_11701
set_player_control $player1 {state} True
35@ = 0
34@ += 1

:RYDER2_11722
return 

:RYDER2_11724
if 
  35@ == 0
goto_if_false @RYDER2_11944
if 
  does_object_exist 60@
goto_if_false @RYDER2_11779
set_object_collision 60@ {state} True
make_object_targettable 60@ {state} False
freeze_object_position 60@ {state} True

:RYDER2_11779
if 
  does_object_exist 61@
goto_if_false @RYDER2_11816
set_object_collision 61@ {state} True
make_object_targettable 61@ {state} False
freeze_object_position 61@ {state} True

:RYDER2_11816
print 'RY2_59' {time} 7000 {flag} 1
remove_blip 122@
122@ = add_blip_for_coord 2722.075 {y} -2411.271 {z} 12.6198
change_blip_colour 122@ {color} BlipColor.Red
if 
  not is_car_dead 95@
goto_if_false @RYDER2_11894
freeze_car_position 95@ {state} True
lock_car_doors 95@ {lockStatus} CarLock.LockoutPlayerOnly

:RYDER2_11894
191@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_11930
task_look_at_char $ryder {target} $scplayer {time} 99999

:RYDER2_11930
142@ = 0
35@ += 1

:RYDER2_11944
if 
  35@ == 1
goto_if_false @RYDER2_12542
if 
  133@ == 2
goto_if_false @RYDER2_12139
if 
  not is_car_dead 95@
goto_if_false @RYDER2_12132
remove_blip 122@
request_car_recording 523

:RYDER2_12006
if 
  not has_car_recording_been_loaded 523
goto_if_false @RYDER2_12033
wait 0
goto @RYDER2_12006

:RYDER2_12033
if 
  not is_car_dead 95@
goto_if_false @RYDER2_12057
start_playback_recorded_car 95@ {path} 523

:RYDER2_12057
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_12078
clear_look_at $ryder

:RYDER2_12078
set_var_text_label s$audio_string = 'RYD2_GA'
set_var_int_to_constant $audio_sound_file = 33823
start_new_script @AUDIOL $ryder 0 1 1 0 
wait 100
35@ = 99

:RYDER2_12132
goto @RYDER2_12542

:RYDER2_12139
if 
  not is_car_dead 95@
goto_if_false @RYDER2_12401
if 
  locate_char_on_foot_car_3d $scplayer {vehicle} 95@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @RYDER2_12401
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @RYDER2_12401
if 
  190@ == 0
goto_if_false @RYDER2_12308
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12294
set_var_text_label s$audio_string = 'RYD2_EA'
set_var_int_to_constant $audio_sound_file = 33820
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12294
190@ += 1
goto @RYDER2_12401

:RYDER2_12308
if 
  190@ == 1
goto_if_false @RYDER2_12401
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12394
set_var_text_label s$audio_string = 'RYD2_EB'
set_var_int_to_constant $audio_sound_file = 33821
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12394
190@ = 0

:RYDER2_12401
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_12542
if 
  locate_char_any_means_char_3d $ryder {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_12542
if 
  142@ > 40000
goto_if_false @RYDER2_12542
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_12542
set_var_text_label s$audio_string = 'RYD2_FA'
set_var_int_to_constant $audio_sound_file = 33822
start_new_script @AUDIOL $ryder 0 1 1 0 
142@ = 0

:RYDER2_12542
if 
  35@ <> 99
goto_if_false @RYDER2_12811
if 
  38@ == 9
goto_if_false @RYDER2_12811
if and
  132@ <> 0
  133@ == 0
goto_if_false @RYDER2_12698
if 
  locate_char_any_means_3d $scplayer {x} 2785.8899 {y} -2417.98 {z} 14.36 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_12691
if 
  51@ > 30000
goto_if_false @RYDER2_12691
336@ = 3
gosub @RYDER2_39981
51@ = 0

:RYDER2_12691
goto @RYDER2_12811

:RYDER2_12698
if and
  133@ == 0
  132@ == 0
goto_if_false @RYDER2_12811
if 
  locate_char_any_means_3d $scplayer {x} 2785.8899 {y} -2417.98 {z} 14.36 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_12811
if 
  51@ > 30000
goto_if_false @RYDER2_12811
336@ = 3
gosub @RYDER2_39981
51@ = 0

:RYDER2_12811
if 
  35@ == 99
goto_if_false @RYDER2_12857
34@ += 1
35@ = 0
191@ = 0
336@ = 0

:RYDER2_12857
return 

:RYDER2_12859
if 
  35@ == 0
goto_if_false @RYDER2_13006
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_13006
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_13006
if 
  132@ == 0
goto_if_false @RYDER2_12999
123@ = add_blip_for_coord 2773.1011 {y} -2423.418 {z} 12.6269
change_blip_colour 123@ {color} BlipColor.Red
print 'RY2_60' {time} 7000 {flag} 1
54@ = 0
49@ = 0
35@ += 1
goto @RYDER2_13006

:RYDER2_12999
35@ += 1

:RYDER2_13006
if 
  35@ == 1
goto_if_false @RYDER2_13092
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13092
if 
  not is_playback_going_on_for_car 95@
goto_if_false @RYDER2_13092
freeze_car_position 95@ {state} True
49@ = 0
54@ = 20000
35@ += 1
TIMERA = 0

:RYDER2_13092
if 
  35@ == 2
goto_if_false @RYDER2_13577
if 
  132@ <> 0
goto_if_false @RYDER2_13233
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13226
remove_blip 123@
request_car_recording 524

:RYDER2_13154
if 
  not has_car_recording_been_loaded 524
goto_if_false @RYDER2_13181
wait 0
goto @RYDER2_13154

:RYDER2_13181
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13205
start_playback_recorded_car 95@ {path} 524

:RYDER2_13205
TIMERA = 0
49@ = 0
35@ += 1

:RYDER2_13226
goto @RYDER2_13577

:RYDER2_13233
if 
  54@ > 20000
goto_if_false @RYDER2_13577
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_13577
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @RYDER2_13577
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_13577
switch_start 49@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_13577 {caseNum1} 0 {caseLabel1} @RYDER2_13385 {caseNum2} 1 {caseLabel2} @RYDER2_13449 {caseNum3} 2 {caseLabel3} @RYDER2_13513 {caseNum4} -1 {caseLabel4} @RYDER2_13577 {caseNum5} -1 {caseLabel5} @RYDER2_13577 {caseNum6} -1 {caseLabel6} @RYDER2_13577 {caseNum7} -1 {caseLabel7} @RYDER2_13577

:RYDER2_13385
set_var_text_label s$audio_string = 'RYD2_GB'
set_var_int_to_constant $audio_sound_file = 33824
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_13577

:RYDER2_13449
set_var_text_label s$audio_string = 'RYD2_LA'
set_var_int_to_constant $audio_sound_file = 33833
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_13577

:RYDER2_13513
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 33837
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0
54@ = 0
goto @RYDER2_13577

:RYDER2_13577
if 
  35@ == 3
goto_if_false @RYDER2_13754
49@ = 0
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_13754
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_13704
set_var_text_label s$audio_string = 'RYD2_HA'
set_var_int_to_constant $audio_sound_file = 33825
start_new_script @AUDIOL $scplayer 0 1 1 0 
35@ += 1
goto @RYDER2_13754

:RYDER2_13704
set_var_text_label s$audio_string = 'RYD2_HB'
set_var_int_to_constant $audio_sound_file = 33826
start_new_script @AUDIOL $scplayer 0 1 1 0 
35@ += 1

:RYDER2_13754
if 
  35@ == 4
goto_if_false @RYDER2_13842
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13842
if 
  not is_playback_going_on_for_car 95@
goto_if_false @RYDER2_13818
35@ = 99
goto @RYDER2_13842

:RYDER2_13818
if 
  TIMERA > 10600
goto_if_false @RYDER2_13842
stop_playback_recorded_car 95@

:RYDER2_13842
if 
  35@ == 99
goto_if_false @RYDER2_13904
if 
  not is_car_dead 95@
goto_if_false @RYDER2_13890
freeze_car_position 95@ {state} True
set_vehicle_is_considered_by_player 95@ {state} False

:RYDER2_13890
35@ = 0
34@ += 1

:RYDER2_13904
if 
  191@ == 0
goto_if_false @RYDER2_14026
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_14026
if 
  not is_car_dead 95@
goto_if_false @RYDER2_14026
if 
  not is_char_in_car $ryder {vehicle} 95@
goto_if_false @RYDER2_14026
if 
  is_playback_going_on_for_car 95@
goto_if_false @RYDER2_14001
pause_playback_recorded_car 95@
freeze_car_position 95@ {state} True

:RYDER2_14001
task_enter_car_as_driver $ryder {vehicle} 95@ {time} 10000
TIMERA = 0
191@ += 1

:RYDER2_14026
if 
  191@ == 1
goto_if_false @RYDER2_14156
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_14130
if 
  not is_car_dead 95@
goto_if_false @RYDER2_14130
if 
  is_char_in_car $ryder {vehicle} 95@
goto_if_false @RYDER2_14130
if 
  is_playback_going_on_for_car 95@
goto_if_false @RYDER2_14123
unpause_playback_recorded_car 95@
freeze_car_position 95@ {state} False

:RYDER2_14123
191@ = 0

:RYDER2_14130
if 
  TIMERA > 10000
goto_if_false @RYDER2_14156
191@ = 0

:RYDER2_14156
return 

:RYDER2_14158
if 
  58@ == 1
goto_if_false @RYDER2_14201
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @RYDER2_14201
set_lvar_int_to_lvar_int 127@ = 200@

:RYDER2_14201
if 
  35@ == 0
goto_if_false @RYDER2_14623
request_animation "RYDER"

:RYDER2_14228
if 
  not has_animation_loaded "RYDER"
goto_if_false @RYDER2_14259
wait 0
goto @RYDER2_14228

:RYDER2_14259
266@ = 0
set_var_int_to_lvar_int $loaded_boxes_neg = 200@
display_nth_onscreen_counter_with_string $loaded_boxes_neg {display} CounterDisplay.Number {slot} 2 {text} 'RY2_21'
display_nth_onscreen_counter_with_string $ryder_health {display} CounterDisplay.Bar {slot} 1 {text} 'RY2_19'
if 
  not is_car_dead 95@
goto_if_false @RYDER2_14432
if 
  is_car_model 95@ {modelId} 414
goto_if_false @RYDER2_14403
260@, 261@, 262@ = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -5.5 {zOffset} 0.6
263@, 264@, 265@ = get_offset_from_car_in_world_coords 95@ {xOffset} 3.0 {yOffset} 5.5 {zOffset} 0.6

:RYDER2_14403
set_car_heavy 95@ {state} True
set_car_strong 95@ {state} True
set_car_health 95@ {health} 2500
lock_car_doors 95@ {lockStatus} CarLock.LockoutPlayerOnly

:RYDER2_14432
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_14505
clear_char_decision_maker_event_response 235@ {event} Event.PotentialGetRunOver
set_char_relationship $ryder {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
task_toggle_ped_threat_scanner $ryder {onFoot} True {inCar} True {duringScriptTask} True
if 
  does_blip_exist 119@
goto_if_false @RYDER2_14505
remove_blip 119@

:RYDER2_14505
if 
  not is_car_dead 99@
goto_if_false @RYDER2_14576
if 
  not is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_14576
print 'RY2_55' {time} 5000 {flag} 1
remove_blip 119@
119@ = add_blip_for_car 99@
set_blip_as_friendly 119@ {state} True

:RYDER2_14576
197@ = 1
267@ = 0
54@ = -4000
49@ = 0
TIMERA = 0
wait 0
35@ += 1

:RYDER2_14623
if 
  267@ == 0
goto_if_false @RYDER2_14703
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_14703
if 
  is_char_on_foot $ryder
goto_if_false @RYDER2_14703
if 
  not is_car_dead 95@
goto_if_false @RYDER2_14703
freeze_car_position 95@ {state} True
267@ = 1

:RYDER2_14703
if 
  266@ == 0
goto_if_false @RYDER2_14807
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_14800
set_var_text_label s$audio_string = 'RYD2_KB'
set_var_int_to_constant $audio_sound_file = 33831
start_new_script @AUDIOL $ryder 0 1 1 0 
266@ = 1
TIMERA = 0

:RYDER2_14800
goto @RYDER2_14869

:RYDER2_14807
if 
  266@ == 1
goto_if_false @RYDER2_14869
if 
  TIMERA > 1000
goto_if_false @RYDER2_14869
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_14869
266@ = 2

:RYDER2_14869
if 
  35@ == 1
goto_if_false @RYDER2_15031
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_15031
if 
  not is_car_dead 99@
goto_if_false @RYDER2_15031
if and
  is_char_in_car $scplayer {vehicle} 99@
  266@ == 2
goto_if_false @RYDER2_14994
if 
  1 > 268@
goto_if_false @RYDER2_14969
268@ = 1

:RYDER2_14969
35@ += 1
TIMERA = 0
wait 0
goto @RYDER2_15031

:RYDER2_14994
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_15031
clear_this_print 'RY2_55'
268@ = 1

:RYDER2_15031
if and
  268@ > 0
  5 > 268@
goto_if_false @RYDER2_15239
if 
  not is_car_dead 99@
goto_if_false @RYDER2_15239
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_15237
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_15230
switch_start 268@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15223 {caseNum1} 1 {caseLabel1} @RYDER2_15169 {caseNum2} 2 {caseLabel2} @RYDER2_15187 {caseNum3} 3 {caseLabel3} @RYDER2_15205 {caseNum4} -1 {caseLabel4} @RYDER2_15223 {caseNum5} -1 {caseLabel5} @RYDER2_15223 {caseNum6} -1 {caseLabel6} @RYDER2_15223 {caseNum7} -1 {caseLabel7} @RYDER2_15223

:RYDER2_15169
print_help 'RY2_69'
goto @RYDER2_15223

:RYDER2_15187
print_help 'RY2_68'
goto @RYDER2_15223

:RYDER2_15205
print_help 'RY2_71'
goto @RYDER2_15223

:RYDER2_15223
268@ += 1

:RYDER2_15230
goto @RYDER2_15239

:RYDER2_15237
clear_help 

:RYDER2_15239
if 
  35@ == 2
goto_if_false @RYDER2_15264
35@ += 3

:RYDER2_15264
if 
  35@ == 5
goto_if_false @RYDER2_15482
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @RYDER2_15482
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_15482
if 
  54@ > 1000
goto_if_false @RYDER2_15482
switch_start 49@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @RYDER2_15482 {caseNum1} 0 {caseLabel1} @RYDER2_15397 {caseNum2} 1 {caseLabel2} @RYDER2_15461 {caseNum3} -1 {caseLabel3} @RYDER2_15482 {caseNum4} -1 {caseLabel4} @RYDER2_15482 {caseNum5} -1 {caseLabel5} @RYDER2_15482 {caseNum6} -1 {caseLabel6} @RYDER2_15482 {caseNum7} -1 {caseLabel7} @RYDER2_15482

:RYDER2_15397
set_var_text_label s$audio_string = 'RYD2_KA'
set_var_int_to_constant $audio_sound_file = 33830
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ += 1
54@ = 0
goto @RYDER2_15482

:RYDER2_15461
49@ = 0
35@ += 1
goto @RYDER2_15482

:RYDER2_15482
if 
  35@ == 6
goto_if_false @RYDER2_15573
if 
  54@ > 1000
goto_if_false @RYDER2_15573
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_15573
51@ = 0
TIMERB = 30000
142@ = 0
TIMERA = 0
35@ += 1

:RYDER2_15573
if and
  35@ > 5
  51@ > 30000
goto_if_false @RYDER2_15613
336@ = 1
51@ = 0

:RYDER2_15613
if 
  35@ == 8
goto_if_false @RYDER2_16040
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_16040
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @RYDER2_16040
192@ = 1
if 
  142@ > 30000
goto_if_false @RYDER2_16040
switch_start 143@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @RYDER2_16001 {caseNum1} 0 {caseLabel1} @RYDER2_15751 {caseNum2} 1 {caseLabel2} @RYDER2_15801 {caseNum3} 2 {caseLabel3} @RYDER2_15851 {caseNum4} 3 {caseLabel4} @RYDER2_15901 {caseNum5} 4 {caseLabel5} @RYDER2_15951 {caseNum6} -1 {caseLabel6} @RYDER2_16001 {caseNum7} -1 {caseLabel7} @RYDER2_16001

:RYDER2_15751
set_var_text_label s$audio_string = 'RYD2_LA'
set_var_int_to_constant $audio_sound_file = 33833
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_16001

:RYDER2_15801
set_var_text_label s$audio_string = 'RYD2_LB'
set_var_int_to_constant $audio_sound_file = 33834
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_16001

:RYDER2_15851
set_var_text_label s$audio_string = 'RYD2_LC'
set_var_int_to_constant $audio_sound_file = 33835
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_16001

:RYDER2_15901
set_var_text_label s$audio_string = 'RYD2_LD'
set_var_int_to_constant $audio_sound_file = 33836
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_16001

:RYDER2_15951
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 33837
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_16001

:RYDER2_16001
143@ += 1
if 
  143@ > 4
goto_if_false @RYDER2_16033
143@ = 0

:RYDER2_16033
142@ = 0

:RYDER2_16040
if 
  does_blip_exist 119@
goto_if_false @RYDER2_16114
if 
  not is_car_dead 99@
goto_if_false @RYDER2_16107
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_16107
clear_this_print 'RY2_55'
remove_blip 119@

:RYDER2_16107
goto @RYDER2_16283

:RYDER2_16114
if 
  not is_car_dead 99@
goto_if_false @RYDER2_16283
if 
  not is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_16213
remove_blip 119@
119@ = add_blip_for_car 99@
set_blip_as_friendly 119@ {state} True
if 
  does_blip_exist 120@
goto_if_false @RYDER2_16190
remove_blip 120@

:RYDER2_16190
print 'RY2_55' {time} 5000 {flag} 1
goto @RYDER2_16283

:RYDER2_16213
if 
  35@ >= 1
goto_if_false @RYDER2_16283
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_16283
remove_blip 120@
if 
  not is_car_dead 95@
goto_if_false @RYDER2_16283
120@ = add_blip_for_car 95@
set_blip_as_friendly 120@ {state} True

:RYDER2_16283
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_17245
if 
  134@ == 0
goto_if_false @RYDER2_16555
42@ = get_script_task_status $ryder {taskId} 1560
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_16555

:RYDER2_16346
if 
  not has_animation_loaded "COLT45"
goto_if_false @RYDER2_16388
request_animation "COLT45"
wait 0
goto @RYDER2_16346

:RYDER2_16388
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 263@ {y} 264@ {z} 265@ {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 90.0
task_stay_in_same_place -1 {state} True
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "COLT45_RELOAD" {animationFile} "COLT45" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_16555
42@ = 0

:RYDER2_16562
if 
  25 > 42@
goto_if_false @RYDER2_16841
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_16827
if 
  not is_car_dead 95@
goto_if_false @RYDER2_16827
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -2.61 {zOffset} 1.04
if 
  locate_object_3d 62@(42@,25i) {x} $x {y} $y {z} $z {xRadius} 0.71 {yRadius} 1.0 {zRadius} 1.12 {drawSphere} False
goto_if_false @RYDER2_16827
if 
  not is_car_dead 99@
goto_if_false @RYDER2_16827
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_16827
if 
  not is_char_on_foot $scplayer
goto_if_false @RYDER2_16827
if 
  is_char_sitting_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_16827
if 
  270@ == 0
goto_if_false @RYDER2_16786
270@ = 1

:RYDER2_16786
if 
  56@ > 500
goto_if_false @RYDER2_16827
set_lvar_int_to_lvar_int 272@ = 42@
271@ += 1
56@ = 0

:RYDER2_16827
42@ += 1
goto @RYDER2_16562

:RYDER2_16841
if 
  270@ == 0
goto_if_false @RYDER2_16866
56@ = 0

:RYDER2_16866
if 
  271@ <> 0
goto_if_false @RYDER2_17245
switch_start 271@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_17245 {caseNum1} 1 {caseLabel1} @RYDER2_16947 {caseNum2} 2 {caseLabel2} @RYDER2_17070 {caseNum3} 3 {caseLabel3} @RYDER2_17110 {caseNum4} 4 {caseLabel4} @RYDER2_17195 {caseNum5} -1 {caseLabel5} @RYDER2_17245 {caseNum6} -1 {caseLabel6} @RYDER2_17245 {caseNum7} -1 {caseLabel7} @RYDER2_17245

:RYDER2_16947
if 
  not is_car_dead 99@
goto_if_false @RYDER2_16976
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 99@

:RYDER2_16976
switch_widescreen True
clear_help 
set_player_control $player1 {state} False
set_fixed_camera_position 2767.481 {y} -2410.593 {z} 14.7201 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2768.1331 {y} -2411.3459 {z} 14.6336 {switchStyle} SwitchType.JumpCut
delete_object 62@(272@,25i)
127@ += 1
271@ += 1
goto @RYDER2_17245

:RYDER2_17070
if 
  56@ > 1000
goto_if_false @RYDER2_17103
56@ = 0
271@ += 1

:RYDER2_17103
goto @RYDER2_17245

:RYDER2_17110
if 
  56@ > 1000
goto_if_false @RYDER2_17143
271@ += 1
goto @RYDER2_17188

:RYDER2_17143
if 
  500 > 56@
goto_if_false @RYDER2_17188
if 
  not is_car_dead 99@
goto_if_false @RYDER2_17188
set_car_forward_speed 99@ {forwardSpeed} -5.0

:RYDER2_17188
goto @RYDER2_17245

:RYDER2_17195
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
270@ = 0
271@ = 0
56@ = 0
269@ = 1
goto @RYDER2_17245

:RYDER2_17245
if 
  38@ == 7
goto_if_false @RYDER2_17614
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_17614
if and
  has_char_been_damaged_by_weapon $ryder {weaponType} WeaponType.Pistol
  57@ > 40000
goto_if_false @RYDER2_17614
273@ += 1
if 
  273@ > 4
goto_if_false @RYDER2_17339
273@ = 1

:RYDER2_17339
switch_start 273@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_17602 {caseNum1} 1 {caseLabel1} @RYDER2_17402 {caseNum2} 2 {caseLabel2} @RYDER2_17452 {caseNum3} 3 {caseLabel3} @RYDER2_17502 {caseNum4} 4 {caseLabel4} @RYDER2_17552 {caseNum5} -1 {caseLabel5} @RYDER2_17602 {caseNum6} -1 {caseLabel6} @RYDER2_17602 {caseNum7} -1 {caseLabel7} @RYDER2_17602

:RYDER2_17402
set_var_text_label s$audio_string = 'RYD2_MA'
set_var_int_to_constant $audio_sound_file = 33842
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17602

:RYDER2_17452
set_var_text_label s$audio_string = 'RYD2_MC'
set_var_int_to_constant $audio_sound_file = 33844
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17602

:RYDER2_17502
set_var_text_label s$audio_string = 'RYD2_MD'
set_var_int_to_constant $audio_sound_file = 33845
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17602

:RYDER2_17552
set_var_text_label s$audio_string = 'RYD2_ME'
set_var_int_to_constant $audio_sound_file = 33846
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_17602

:RYDER2_17602
clear_char_last_weapon_damage $ryder
57@ = 0

:RYDER2_17614
if and
  is_int_lvar_greater_or_equal_to_int_lvar 127@ >= 200@
  271@ == 0
goto_if_false @RYDER2_17736
clear_onscreen_counter $loaded_boxes_neg
if 
  328@ <> -1
goto_if_false @RYDER2_17729
if 
  does_object_exist 62@(328@,25i)
goto_if_false @RYDER2_17729
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_17729
if 
  is_char_holding_object $ryder {handle} 62@(328@,25i)
goto_if_false @RYDER2_17729
drop_object $ryder {state} True

:RYDER2_17729
35@ = 99

:RYDER2_17736
if and
  55@ > 30000
  35@ <> 99
  1 > 202@
goto_if_false @RYDER2_18161
if and
  $audio_line_is_active == 0
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_18161
if 
  38@ == 5
goto_if_false @RYDER2_18161
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2775.781 {leftBottomY} -2406.821 {leftBottomZ} 10.638 {rightTopX} 2801.4331 {rightTopY} -2429.6179 {rightTopZ} 15.3143 {drawSphere} False
goto_if_false @RYDER2_18161
42@ = 0
43@ = 0

:RYDER2_17871
if 
  25 > 42@
goto_if_false @RYDER2_18009
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_17995
if 
  not has_object_been_damaged 62@(42@,25i)
goto_if_false @RYDER2_17995
if 
  is_object_in_area_3d 62@(42@,25i) {leftBottomX} 2774.3081 {leftBottomY} -2405.28 {leftBottomZ} 12.6803 {rightTopX} 2801.6069 {rightTopY} -2430.073 {rightTopZ} 15.3896 {drawSphere} False
goto_if_false @RYDER2_17995
43@ += 1
42@ = 25

:RYDER2_17995
42@ += 1
goto @RYDER2_17871

:RYDER2_18009
if 
  43@ == 0
goto_if_false @RYDER2_18161
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_18104
set_var_text_label s$audio_string = 'RYD2_LH'
set_var_int_to_constant $audio_sound_file = 33840
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_18147

:RYDER2_18104
set_var_text_label s$audio_string = 'RYD2_LJ'
set_var_int_to_constant $audio_sound_file = 33841
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_18147
55@ = 0
202@ += 1

:RYDER2_18161
if 
  35@ == 99
goto_if_false @RYDER2_18200
203@ = 1
35@ = 0
34@ += 1

:RYDER2_18200
gosub @RYDER2_39981
set_lvar_int_to_lvar_int 306@ = 127@
gosub @RYDER2_36940
return 

:RYDER2_18224
if 
  35@ == 0
goto_if_false @RYDER2_18386
278@ = 0
279@ = 0
280@ = 0
281@ = 0
42@ = 0

:RYDER2_18277
if 
  10 > 42@
goto_if_false @RYDER2_18320
282@(42@,10i) = 0
42@ += 1
goto @RYDER2_18277

:RYDER2_18320
292@ = 0
293@ = 0
304@ = 4
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_18365
set_char_decision_maker $ryder {handleOrTemplate} 237@

:RYDER2_18365
49@ = 0
292@ = 0
35@ += 1

:RYDER2_18386
if 
  35@ == 1
goto_if_false @RYDER2_18674
296@ = 2765.999
297@ = -2419.7771
298@ = 12.6396
clear_area 296@ {y} 297@ {z} 298@ {radius} 1.5 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2761.1189 {y} -2421.157 {z} 14.5289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2762.002 {y} -2420.6909 {z} 14.4766 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_18599
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_char_tasks_immediately $ryder
set_char_coordinates $ryder {x} 296@ {y} 297@ {z} 298@
set_char_heading $ryder {heading} 270.0
task_go_straight_to_coord $ryder {x} 2771.3521 {y} -2418.073 {z} 12.644 {speed} MoveState.Run {time} 5000

:RYDER2_18599
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_18660
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 33851
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_18660
TIMERA = 0
35@ += 1

:RYDER2_18674
if 
  35@ == 2
goto_if_false @RYDER2_18732
if and
  TIMERA > 2500
  $audio_line_is_active == 0
goto_if_false @RYDER2_18732
35@ += 1
TIMERA = 0

:RYDER2_18732
if 
  35@ == 3
goto_if_false @RYDER2_19177
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_19069
if 
  not is_car_dead 95@
goto_if_false @RYDER2_19069
clear_char_tasks_immediately $ryder
attach_char_to_car $ryder {vehicle} 95@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 0.9 {heading} Facing.Back {headingRange} 180.0 {weaponType} WeaponType.Unarmed
clear_onscreen_counter $ryder_health
set_char_max_health $ryder {maxHealth} 350
set_char_health $ryder {health} 350
94@ = create_object #NF_PED_COLL {x} 0.0 {y} 0.0 {z} 0.0
attach_object_to_car 94@ {handle} 95@ {xOffset} -0.5 {yOffset} -2.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_object_scale 94@ {scale} 0.5
set_object_proofs 94@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
299@ = 1000
292@ = 1
293@ = 1
48@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 2000
task_play_anim_non_interruptable -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 2000
task_play_anim_non_interruptable -1 {animationName} "VAN_STAND" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_19069
set_fixed_camera_position 2774.323 {y} -2420.5891 {z} 14.8944 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2773.4409 {y} -2420.1321 {z} 14.7784 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'RYD2_NB'
set_var_int_to_constant $audio_sound_file = 33849
start_new_script @AUDIOL $ryder 0 1 1 0 
TIMERA = 0
35@ += 1

:RYDER2_19177
if 
  35@ == 4
goto_if_false @RYDER2_19374
if and
  TIMERA > 2500
  $audio_line_is_active == 0
goto_if_false @RYDER2_19374
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'RY2_67' {time} 5000 {flag} 1
if 
  not is_car_dead 95@
goto_if_false @RYDER2_19329
remove_blip 119@
remove_blip 119@
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True
set_car_proofs 95@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
freeze_car_position 95@ {state} False
set_vehicle_is_considered_by_player 95@ {state} True
lock_car_doors 95@ {lockStatus} CarLock.Unlocked

:RYDER2_19329
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_19360
set_char_proofs $ryder {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RYDER2_19360
35@ += 1
TIMERA = 0

:RYDER2_19374
if 
  35@ == 5
goto_if_false @RYDER2_19786
43@ = 0
if 
  not is_car_dead 95@
goto_if_false @RYDER2_19747
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_19452
43@ = 1
set_player_in_car_camera_mode 3
goto @RYDER2_19747

:RYDER2_19452
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_19747
if 
  49@ == 0
goto_if_false @RYDER2_19747
if or
  TIMERA > 30000
  43@ == 1
goto_if_false @RYDER2_19747
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_19733 {caseNum1} 0 {caseLabel1} @RYDER2_19583 {caseNum2} 1 {caseLabel2} @RYDER2_19633 {caseNum3} 2 {caseLabel3} @RYDER2_19683 {caseNum4} -1 {caseLabel4} @RYDER2_19733 {caseNum5} -1 {caseLabel5} @RYDER2_19733 {caseNum6} -1 {caseLabel6} @RYDER2_19733 {caseNum7} -1 {caseLabel7} @RYDER2_19733

:RYDER2_19583
set_var_text_label s$audio_string = 'RYD2_NA'
set_var_int_to_constant $audio_sound_file = 33848
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19733

:RYDER2_19633
set_var_text_label s$audio_string = 'RYD2_NC'
set_var_int_to_constant $audio_sound_file = 33850
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19733

:RYDER2_19683
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 33851
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_19733

:RYDER2_19733
49@ = 1
TIMERA = 0

:RYDER2_19747
if 
  43@ == 1
goto_if_false @RYDER2_19786
TIMERA = 0
54@ = 0
35@ += 1

:RYDER2_19786
if 
  35@ == 6
goto_if_false @RYDER2_20804
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_20804
if 
  not is_car_dead 95@
goto_if_false @RYDER2_20804
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_20439
freeze_car_position 95@ {state} False
if 
  does_blip_exist 119@
goto_if_false @RYDER2_19889
remove_blip 119@

:RYDER2_19889
remove_blip 120@
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_19946
120@ = add_blip_for_coord 2454.626 {y} -1972.5341 {z} 12.5617
print_now 'RY2_66' {time} 6000 {flag} 1

:RYDER2_19946
TIMERA = 0
request_model 470
request_model 287

:RYDER2_19963
if or
  not has_model_loaded 470
  not has_model_loaded 287
goto_if_false @RYDER2_19995
wait 0
goto @RYDER2_19963

:RYDER2_19995
96@ = create_car 470 {x} 2780.718 {y} -2456.103 {z} 12.6354
set_car_heading 96@ {heading} 90.0
set_car_heavy 96@ {state} True
lock_car_doors 96@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 96@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
97@ = create_car 470 {x} 2780.5569 {y} -2493.3459 {z} 12.6287
set_car_heading 97@ {heading} 90.0
set_car_heavy 97@ {state} True
lock_car_doors 97@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 97@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 96@
goto_if_false @RYDER2_20260
113@ = create_char_inside_car 96@ {pedType} PedType.Mission1 {modelId} 287
task_toggle_ped_threat_scanner 113@ {onFoot} False {inCar} False {duringScriptTask} False
set_car_driving_style 96@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 96@ {maxSpeed} 50.0
set_car_proofs 96@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_traction 96@ {traction} 2.0
set_car_heavy 96@ {state} True
set_car_health 96@ {health} 1300
117@ = create_char_as_passenger 96@ {pedType} PedType.Mission1 {modelId} 287 {seat} SeatId.BikeRear
set_char_relationship 117@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 117@ {handleOrTemplate} 237@
give_weapon_to_char 117@ {weaponType} WeaponType.Pistol {ammo} 999999

:RYDER2_20260
if 
  not is_car_dead 97@
goto_if_false @RYDER2_20401
114@ = create_char_inside_car 97@ {pedType} PedType.Mission1 {modelId} 287
task_toggle_ped_threat_scanner 114@ {onFoot} False {inCar} False {duringScriptTask} False
set_car_driving_style 97@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 97@ {maxSpeed} 50.0
set_car_proofs 97@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_traction 97@ {traction} 2.0
set_car_heavy 97@ {state} True
set_car_health 97@ {health} 1300
118@ = create_char_as_passenger 97@ {pedType} PedType.Mission1 {modelId} 287 {seat} SeatId.BikeRear
set_char_relationship 118@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 118@ {handleOrTemplate} 237@
give_weapon_to_char 118@ {weaponType} WeaponType.Pistol {ammo} 999999

:RYDER2_20401
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 287
54@ = 0
49@ = 0
35@ += 1
goto @RYDER2_20804

:RYDER2_20439
if 
  54@ > 20000
goto_if_false @RYDER2_20804
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_20804
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_20804
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @RYDER2_20804
42@ = generate_random_int_in_range 0 {max} 4
switch_start 42@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_20797 {caseNum1} 0 {caseLabel1} @RYDER2_20597 {caseNum2} 1 {caseLabel2} @RYDER2_20647 {caseNum3} 2 {caseLabel3} @RYDER2_20697 {caseNum4} 3 {caseLabel4} @RYDER2_20747 {caseNum5} -1 {caseLabel5} @RYDER2_20797 {caseNum6} -1 {caseLabel6} @RYDER2_20797 {caseNum7} -1 {caseLabel7} @RYDER2_20797

:RYDER2_20597
set_var_text_label s$audio_string = 'RYD2_NA'
set_var_int_to_constant $audio_sound_file = 33848
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20797

:RYDER2_20647
set_var_text_label s$audio_string = 'RYD2_NB'
set_var_int_to_constant $audio_sound_file = 33849
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20797

:RYDER2_20697
set_var_text_label s$audio_string = 'RYD2_NC'
set_var_int_to_constant $audio_sound_file = 33850
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20797

:RYDER2_20747
set_var_text_label s$audio_string = 'RYD2_ND'
set_var_int_to_constant $audio_sound_file = 33851
start_new_script @AUDIOL $ryder 1 0 1 0 
goto @RYDER2_20797

:RYDER2_20797
54@ = 0

:RYDER2_20804
if 
  35@ == 7
goto_if_false @RYDER2_20918
248@, 249@, 250@ = get_offset_from_object_in_world_coords 258@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0
251@, 252@, 253@ = get_offset_from_object_in_world_coords 259@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 4.0
if 
  does_object_exist 258@
goto_if_false @RYDER2_20904
report_mission_audio_event_at_object 258@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_20904
TIMERA = 0
35@ += 1

:RYDER2_20918
if 
  35@ == 8
goto_if_false @RYDER2_21059
if 
  TIMERA > 1000
goto_if_false @RYDER2_21059
if and
  slide_object 258@ {posX} 248@ {posY} 249@ {posZ} 250@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.2 {collisionCheck} False
  slide_object 259@ {posX} 251@ {posY} 252@ {posZ} 253@ {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @RYDER2_21059
if 
  does_object_exist 258@
goto_if_false @RYDER2_21052
report_mission_audio_event_at_object 258@ {soundId} ScriptSound.SoundShutterDoorStop

:RYDER2_21052
35@ += 1

:RYDER2_21059
if 
  35@ == 9
goto_if_false @RYDER2_21387
if 
  not is_car_dead 96@
goto_if_false @RYDER2_21103
set_car_forward_speed 96@ {forwardSpeed} 20.0

:RYDER2_21103
if 
  not is_car_dead 97@
goto_if_false @RYDER2_21129
set_car_forward_speed 97@ {forwardSpeed} 20.0

:RYDER2_21129
49@ = 0
50@ = 0
54@ = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33854
if 
  not is_car_dead 96@
goto_if_false @RYDER2_21231
if 
  not is_car_dead 95@
goto_if_false @RYDER2_21231
if 
  not is_char_dead 113@
goto_if_false @RYDER2_21231
task_car_mission 113@ {vehicle} 96@ {targetVehicle} 95@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 50.0 {drivingStyle} DrivingMode.AvoidCars

:RYDER2_21231
if 
  not is_car_dead 97@
goto_if_false @RYDER2_21299
if 
  not is_car_dead 95@
goto_if_false @RYDER2_21299
if 
  not is_char_dead 114@
goto_if_false @RYDER2_21299
task_car_mission 114@ {vehicle} 97@ {targetVehicle} 95@ {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 50.0 {drivingStyle} DrivingMode.AvoidCars

:RYDER2_21299
if 
  not is_car_dead 96@
goto_if_false @RYDER2_21373
if 
  not is_car_dead 97@
goto_if_false @RYDER2_21373
add_stuck_car_check_with_warp 96@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1
add_stuck_car_check_with_warp 97@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1

:RYDER2_21373
35@ += 1
TIMERA = 0

:RYDER2_21387
if 
  35@ == 10
goto_if_false @RYDER2_21554
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_21554
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_21497
set_var_text_label s$audio_string = 'RYD2_OA'
set_var_int_to_constant $audio_sound_file = 33852
start_new_script @AUDIOL $ryder 0 1 2 0 
goto @RYDER2_21540

:RYDER2_21497
set_var_text_label s$audio_string = 'RYD2_OB'
set_var_int_to_constant $audio_sound_file = 33853
start_new_script @AUDIOL $ryder 0 1 2 0 

:RYDER2_21540
TIMERA = 0
35@ += 1

:RYDER2_21554
if 
  35@ == 11
goto_if_false @RYDER2_22311
if 
  TIMERA > 1000
goto_if_false @RYDER2_22311
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22311
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_22311
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_22311
if 
  54@ > 1000
goto_if_false @RYDER2_22311
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_22311
switch_start 50@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @RYDER2_22304 {caseNum1} 0 {caseLabel1} @RYDER2_21806 {caseNum2} 1 {caseLabel2} @RYDER2_21876 {caseNum3} 2 {caseLabel3} @RYDER2_21946 {caseNum4} 3 {caseLabel4} @RYDER2_22016 {caseNum5} 4 {caseLabel5} @RYDER2_22086 {caseNum6} 5 {caseLabel6} @RYDER2_22163 {caseNum7} 6 {caseLabel7} @RYDER2_22233
switch_continued 7 {caseLabel1} @RYDER2_22290 {caseNum2} -1 {caseLabel2} @RYDER2_22304 {caseNum3} -1 {caseLabel3} @RYDER2_22304 {caseNum4} -1 {caseLabel4} @RYDER2_22304 {caseNum5} -1 {caseLabel5} @RYDER2_22304 {caseNum6} -1 {caseLabel6} @RYDER2_22304 {caseNum7} -1 {caseLabel7} @RYDER2_22304 {caseNum8} -1 {caseLabel8} @RYDER2_22304 {caseNum9} -1 {caseLabel9} @RYDER2_22304

:RYDER2_21806
set_var_text_label s$audio_string = 'RYD2_PA'
set_var_int_to_constant $audio_sound_file = 33854
start_new_script @AUDIOL $ryder 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33855
50@ += 1
goto @RYDER2_22304

:RYDER2_21876
set_var_text_label s$audio_string = 'RYD2_PB'
set_var_int_to_constant $audio_sound_file = 33855
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33856
50@ += 1
goto @RYDER2_22304

:RYDER2_21946
set_var_text_label s$audio_string = 'RYD2_PC'
set_var_int_to_constant $audio_sound_file = 33856
start_new_script @AUDIOL $ryder 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33857
50@ += 1
goto @RYDER2_22304

:RYDER2_22016
set_var_text_label s$audio_string = 'RYD2_PD'
set_var_int_to_constant $audio_sound_file = 33857
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33858
50@ += 1
goto @RYDER2_22304

:RYDER2_22086
set_var_text_label s$audio_string = 'RYD2_PE'
set_var_int_to_constant $audio_sound_file = 33858
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33859
50@ += 1
279@ += 1
goto @RYDER2_22304

:RYDER2_22163
set_var_text_label s$audio_string = 'RYD2_PF'
set_var_int_to_constant $audio_sound_file = 33859
start_new_script @AUDIOL $ryder 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33860
50@ += 1
goto @RYDER2_22304

:RYDER2_22233
set_var_text_label s$audio_string = 'RYD2_PG'
set_var_int_to_constant $audio_sound_file = 33860
start_new_script @AUDIOL $ryder 0 1 1 1 
50@ += 1
goto @RYDER2_22304

:RYDER2_22290
35@ += 1
goto @RYDER2_22304

:RYDER2_22304
54@ = 0

:RYDER2_22311
if 
  35@ == 12
goto_if_false @RYDER2_22336
35@ += 1

:RYDER2_22336
if 
  35@ == 13
goto_if_false @RYDER2_22414
print_help 'RY2_72'
293@ = 0
TIMERA = 0
193@ = 0
194@ = 0
195@ = 0
49@ = 0
35@ += 1

:RYDER2_22414
if 
  35@ == 14
goto_if_false @RYDER2_24516
if 
  193@ == 0
goto_if_false @RYDER2_22499
if 
  TIMERA > 10000
goto_if_false @RYDER2_22499
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22499
set_can_burst_car_tyres 95@ {state} True
193@ = 1

:RYDER2_22499
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22617
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_22617
if 
  locate_car_3d 95@ {x} 2454.626 {y} -1972.5341 {z} 12.5617 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RYDER2_22617
if 
  is_vehicle_on_all_wheels 95@
goto_if_false @RYDER2_22617
set_player_control $player1 {state} False
remove_blip 120@
35@ = 99

:RYDER2_22617
if 
is_ps2_keyboard_key_pressed 137
goto_if_false @RYDER2_22669
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22669
set_car_coordinates 95@ {x} 2454.626 {y} -1972.5341 {z} 12.5617

:RYDER2_22669
if 
  195@ == 0
goto_if_false @RYDER2_22832
if 
  not is_car_dead 95@
goto_if_false @RYDER2_22832
if 
  locate_car_2d 95@ {x} 2454.626 {y} -1972.5341 {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @RYDER2_22832
if 
  does_vehicle_exist 96@
goto_if_false @RYDER2_22762
mark_car_as_no_longer_needed 96@

:RYDER2_22762
if 
  does_char_exist 113@
goto_if_false @RYDER2_22783
mark_char_as_no_longer_needed 113@

:RYDER2_22783
if 
  does_vehicle_exist 97@
goto_if_false @RYDER2_22804
mark_car_as_no_longer_needed 97@

:RYDER2_22804
if 
  does_char_exist 114@
goto_if_false @RYDER2_22825
mark_char_as_no_longer_needed 114@

:RYDER2_22825
195@ += 1

:RYDER2_22832
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_24310
if 
  TIMERA > 20000
goto_if_false @RYDER2_24310
if 
  194@ <> 99
goto_if_false @RYDER2_24310
if 
  54@ > 1000
goto_if_false @RYDER2_24310
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_24310
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_24310
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_24310
switch_start 194@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @RYDER2_24310 {caseNum1} 0 {caseLabel1} @RYDER2_23101 {caseNum2} 1 {caseLabel2} @RYDER2_23178 {caseNum3} 2 {caseLabel3} @RYDER2_23306 {caseNum4} 3 {caseLabel4} @RYDER2_23434 {caseNum5} 4 {caseLabel5} @RYDER2_23562 {caseNum6} 5 {caseLabel6} @RYDER2_23690 {caseNum7} 6 {caseLabel7} @RYDER2_23818
switch_continued 7 {caseLabel1} @RYDER2_23946 {caseNum2} 8 {caseLabel2} @RYDER2_24074 {caseNum3} 9 {caseLabel3} @RYDER2_24202 {caseNum4} -1 {caseLabel4} @RYDER2_24310 {caseNum5} -1 {caseLabel5} @RYDER2_24310 {caseNum6} -1 {caseLabel6} @RYDER2_24310 {caseNum7} -1 {caseLabel7} @RYDER2_24310 {caseNum8} -1 {caseLabel8} @RYDER2_24310 {caseNum9} -1 {caseLabel9} @RYDER2_24310

:RYDER2_23101
set_var_text_label s$audio_string = 'RYD2_SA'
set_var_int_to_constant $audio_sound_file = 33866
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33867
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_23178
set_var_text_label s$audio_string = 'RYD2_SB'
set_var_int_to_constant $audio_sound_file = 33867
if 
  49@ == 0
goto_if_false @RYDER2_23246
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23272

:RYDER2_23246
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23272
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33868
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_23306
set_var_text_label s$audio_string = 'RYD2_SC'
set_var_int_to_constant $audio_sound_file = 33868
if 
  49@ == 0
goto_if_false @RYDER2_23374
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23400

:RYDER2_23374
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23400
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33869
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_23434
set_var_text_label s$audio_string = 'RYD2_SD'
set_var_int_to_constant $audio_sound_file = 33869
if 
  49@ == 0
goto_if_false @RYDER2_23502
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_23528

:RYDER2_23502
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_23528
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33870
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_23562
set_var_text_label s$audio_string = 'RYD2_SE'
set_var_int_to_constant $audio_sound_file = 33870
if 
  49@ == 0
goto_if_false @RYDER2_23630
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23656

:RYDER2_23630
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23656
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33871
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_23690
set_var_text_label s$audio_string = 'RYD2_SF'
set_var_int_to_constant $audio_sound_file = 33871
if 
  49@ == 0
goto_if_false @RYDER2_23758
start_new_script @AUDIOL $ryder 0 1 2 1 
goto @RYDER2_23784

:RYDER2_23758
start_new_script @AUDIOL $ryder 0 1 2 0 
49@ = 0

:RYDER2_23784
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33872
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_23818
set_var_text_label s$audio_string = 'RYD2_SG'
set_var_int_to_constant $audio_sound_file = 33872
if 
  49@ == 0
goto_if_false @RYDER2_23886
start_new_script @AUDIOL $ryder 0 1 1 1 
goto @RYDER2_23912

:RYDER2_23886
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 0

:RYDER2_23912
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33873
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_23946
set_var_text_label s$audio_string = 'RYD2_SH'
set_var_int_to_constant $audio_sound_file = 33873
if 
  49@ == 0
goto_if_false @RYDER2_24014
start_new_script @AUDIOL $scplayer 0 1 2 1 
goto @RYDER2_24040

:RYDER2_24014
start_new_script @AUDIOL $scplayer 0 1 2 0 
49@ = 0

:RYDER2_24040
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33874
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_24074
set_var_text_label s$audio_string = 'RYD2_SJ'
set_var_int_to_constant $audio_sound_file = 33874
if 
  49@ == 0
goto_if_false @RYDER2_24142
start_new_script @AUDIOL $scplayer 0 1 1 1 
goto @RYDER2_24168

:RYDER2_24142
start_new_script @AUDIOL $scplayer 0 1 1 0 
49@ = 0

:RYDER2_24168
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33875
194@ += 1
54@ = 0
goto @RYDER2_24310

:RYDER2_24202
set_var_text_label s$audio_string = 'RYD2_SK'
set_var_int_to_constant $audio_sound_file = 33875
if 
  49@ == 0
goto_if_false @RYDER2_24270
start_new_script @AUDIOL $ryder 0 1 2 1 
goto @RYDER2_24296

:RYDER2_24270
start_new_script @AUDIOL $ryder 0 1 2 0 
49@ = 0

:RYDER2_24296
194@ = 99
goto @RYDER2_24310

:RYDER2_24310
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_24516
if and
  194@ <= 0
  99 < 194@
goto_if_false @RYDER2_24516
if 
  304@ == 0
goto_if_false @RYDER2_24516
293@ = 1
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_24459
set_var_text_label s$audio_string = 'RYD2_RA'
set_var_int_to_constant $audio_sound_file = 33864
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_24509

:RYDER2_24459
set_var_text_label s$audio_string = 'RYD2_RB'
set_var_int_to_constant $audio_sound_file = 33865
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1

:RYDER2_24509
304@ -= 1

:RYDER2_24516
if 
  35@ == 99
goto_if_false @RYDER2_24580
if 
  not is_car_dead 95@
goto_if_false @RYDER2_24580
if 
  is_car_stopped 95@
goto_if_false @RYDER2_24580
35@ = 0
34@ += 1

:RYDER2_24580
gosub @RYDER2_36940
if 
  does_object_exist 94@
goto_if_false @RYDER2_24861
42@ = get_object_health 94@
if 
  is_int_lvar_greater_than_int_lvar 299@ > 42@
goto_if_false @RYDER2_24848
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_24848
42@ = get_char_health $ryder
42@ += -17
if 
  1 > 42@
goto_if_false @RYDER2_24686
42@ = 1

:RYDER2_24686
set_char_health $ryder {health} 42@
if 
  42@ == 1
goto_if_false @RYDER2_24717
task_die $ryder

:RYDER2_24717
$x, $y, $z = get_offset_from_char_in_world_coords $ryder {xOffset} 0.5 {yOffset} 0.2 {zOffset} 0.4
207@ = generate_random_float_in_range -1.0 {max} 1.0
208@ = generate_random_float_in_range -1.0 {max} 1.0
209@ = generate_random_float_in_range -1.0 {max} 1.0
if 
  does_char_exist $ryder
goto_if_false @RYDER2_24848
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_24848
add_blood $x {y} $y {z} $z {offsetX} 207@ {offsetY} 208@ {offsetZ} 209@ {density} 20 {handle} $ryder

:RYDER2_24848
clear_object_last_weapon_damage 94@
299@ = get_object_health 94@

:RYDER2_24861
if 
  292@ == 1
goto_if_false @RYDER2_27193
if 
  293@ == 0
goto_if_false @RYDER2_25018
if 
  not is_car_dead 95@
goto_if_false @RYDER2_25018
if 
  280@ == 0
goto_if_false @RYDER2_24994
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Leftshock
goto_if_false @RYDER2_24987
280@ = 1
if or
  279@ == 0
  279@ == 3
goto_if_false @RYDER2_24987
279@ += 1

:RYDER2_24987
goto @RYDER2_25018

:RYDER2_24994
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Leftshock
goto_if_false @RYDER2_25018
280@ = 0

:RYDER2_25018
if 
  not is_car_dead 95@
goto_if_false @RYDER2_25084
$heading = get_car_heading 95@
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_25076
$heading += 180.0
set_char_heading $ryder {heading} $heading

:RYDER2_25076
274@ = get_car_roll 95@

:RYDER2_25084
if 
  not is_car_dead 95@
goto_if_false @RYDER2_25108
275@ = get_car_heading 95@

:RYDER2_25108
set_lvar_float_to_lvar_float 277@ = 275@
sub_float_lvar_from_float_lvar 277@ -= 276@
if 
  -180.0 > 277@
goto_if_false @RYDER2_25155
277@ += 360.0

:RYDER2_25155
if 
  277@ > 180.0
goto_if_false @RYDER2_25186
277@ += -360.0

:RYDER2_25186
set_lvar_float_to_lvar_float 276@ = 275@
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_27193
if 
  279@ == 0
goto_if_false @RYDER2_25850
if 
  -60.0 > 274@
goto_if_false @RYDER2_25320
if 
  278@ <> 1
goto_if_false @RYDER2_25313
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 1

:RYDER2_25313
goto @RYDER2_25843

:RYDER2_25320
if 
  274@ > 60.0
goto_if_false @RYDER2_25412
if 
  278@ <> 2
goto_if_false @RYDER2_25405
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 2

:RYDER2_25405
goto @RYDER2_25843

:RYDER2_25412
if 
  -5.0 > 274@
goto_if_false @RYDER2_25504
if 
  278@ <> 3
goto_if_false @RYDER2_25497
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 3

:RYDER2_25497
goto @RYDER2_25843

:RYDER2_25504
if 
  274@ > 5.0
goto_if_false @RYDER2_25596
if 
  278@ <> 4
goto_if_false @RYDER2_25589
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 4

:RYDER2_25589
goto @RYDER2_25843

:RYDER2_25596
if 
  -2.0 > 277@
goto_if_false @RYDER2_25688
if 
  278@ <> 4
goto_if_false @RYDER2_25681
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 4

:RYDER2_25681
goto @RYDER2_25843

:RYDER2_25688
if 
  277@ > 2.0
goto_if_false @RYDER2_25780
if 
  278@ <> 3
goto_if_false @RYDER2_25773
task_play_anim_non_interruptable $ryder {animationName} "VAN_LEAN_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 3

:RYDER2_25773
goto @RYDER2_25843

:RYDER2_25780
if 
  278@ <> 0
goto_if_false @RYDER2_25843
task_play_anim_non_interruptable $ryder {animationName} "VAN_STAND" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 0

:RYDER2_25843
goto @RYDER2_27193

:RYDER2_25850
if 
  279@ == 1
goto_if_false @RYDER2_26070
if 
  278@ <> 5
goto_if_false @RYDER2_25941
task_play_anim_non_interruptable $ryder {animationName} "VAN_PICKUP_S" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
278@ = 5
goto @RYDER2_26070

:RYDER2_25941
42@ = get_script_task_status $ryder {taskId} 2066
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_26070
$x, $y, $z = get_char_coordinates $ryder
281@ = create_object #CM_BOX {x} $x {y} $y {z} $z
task_pick_up_object $ryder {object} 281@ {xOffset} -0.096 {yOffset} 0.246 {zOffset} 0.142 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
set_object_collision 281@ {state} False
306@ -= 1
304@ -= 1
279@ += 1

:RYDER2_26070
if 
  279@ == 2
goto_if_false @RYDER2_26197
if 
  278@ <> 6
goto_if_false @RYDER2_26161
task_play_anim_non_interruptable $ryder {animationName} "VAN_PICKUP_E" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
278@ = 6
goto @RYDER2_26197

:RYDER2_26161
42@ = get_script_task_status $ryder {taskId} 2066
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_26197
279@ += 1

:RYDER2_26197
if 
  279@ == 3
goto_if_false @RYDER2_26868
if 
  -60.0 > 274@
goto_if_false @RYDER2_26321
if 
  278@ <> 1
goto_if_false @RYDER2_26314
gosub @RYDER2_39790
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 1
279@ = 0

:RYDER2_26314
goto @RYDER2_26868

:RYDER2_26321
if 
  274@ > 60.0
goto_if_false @RYDER2_26427
if 
  278@ <> 2
goto_if_false @RYDER2_26420
gosub @RYDER2_39790
task_play_anim_non_interruptable $ryder {animationName} "VAN_FALL_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 2
279@ = 0

:RYDER2_26420
goto @RYDER2_26868

:RYDER2_26427
if 
  -5.0 > 274@
goto_if_false @RYDER2_26520
if 
  278@ <> 7
goto_if_false @RYDER2_26513
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 7

:RYDER2_26513
goto @RYDER2_26868

:RYDER2_26520
if 
  274@ > 5.0
goto_if_false @RYDER2_26613
if 
  278@ <> 8
goto_if_false @RYDER2_26606
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 8

:RYDER2_26606
goto @RYDER2_26868

:RYDER2_26613
if 
  -2.0 > 277@
goto_if_false @RYDER2_26706
if 
  278@ <> 7
goto_if_false @RYDER2_26699
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_R" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 7

:RYDER2_26699
goto @RYDER2_26868

:RYDER2_26706
if 
  277@ > 2.0
goto_if_false @RYDER2_26799
if 
  278@ <> 8
goto_if_false @RYDER2_26792
task_play_anim_non_interruptable $ryder {animationName} "VAN_CRATE_L" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 8

:RYDER2_26792
goto @RYDER2_26868

:RYDER2_26799
if 
  278@ <> 9
goto_if_false @RYDER2_26868
task_play_anim_non_interruptable $ryder {animationName} "VAN_STAND_CRATE" {animationFile} "RYDER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 9

:RYDER2_26868
if 
  279@ == 4
goto_if_false @RYDER2_27037
if 
  278@ <> 10
goto_if_false @RYDER2_26956
task_play_anim_non_interruptable $ryder {animationName} "VAN_THROW" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
278@ = 10
goto @RYDER2_27037

:RYDER2_26956
if 
  is_char_playing_anim $ryder {animationName} "VAN_THROW"
goto_if_false @RYDER2_27037
45@ = get_char_anim_current_time $ryder {animationName} "VAN_THROW"
if 
  45@ > 0.292
goto_if_false @RYDER2_27037
gosub @RYDER2_39790
279@ += 1

:RYDER2_27037
if 
  279@ == 5
goto_if_false @RYDER2_27193
42@ = get_script_task_status $ryder {taskId} 2066
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_27193
if 
  278@ <> 0
goto_if_false @RYDER2_27147
task_play_anim_non_interruptable $ryder {animationName} "VAN_STAND" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
278@ = 0

:RYDER2_27147
if 
  304@ > 0
goto_if_false @RYDER2_27179
279@ = 1
goto @RYDER2_27193

:RYDER2_27179
279@ = 0
293@ = 1

:RYDER2_27193
if 
  292@ <> 0
goto_if_false @RYDER2_27270
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_27270
42@ = get_char_health $ryder
if 
  100 > 42@
goto_if_false @RYDER2_27270
detach_char_from_car $ryder
task_die $ryder
292@ = 0

:RYDER2_27270
42@ = 0

:RYDER2_27277
if 
  5 > 42@
goto_if_false @RYDER2_27634
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27620
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27414
if 
  not is_car_dead 96@
goto_if_false @RYDER2_27414
if 
  is_vehicle_touching_object 96@ {handle} 282@(42@,10i)
goto_if_false @RYDER2_27414
$x, $y, $z = get_object_coordinates 282@(42@,10i)
delete_object 282@(42@,10i)
add_explosion $x {y} $y {z} $z {type} ExplosionType.Small

:RYDER2_27414
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27513
if 
  not is_car_dead 97@
goto_if_false @RYDER2_27513
if 
  is_vehicle_touching_object 97@ {handle} 282@(42@,10i)
goto_if_false @RYDER2_27513
$x, $y, $z = get_object_coordinates 282@(42@,10i)
delete_object 282@(42@,10i)
add_explosion $x {y} $y {z} $z {type} ExplosionType.Small

:RYDER2_27513
if 
  does_object_exist 282@(42@,10i)
goto_if_false @RYDER2_27620
43@ = get_object_health 282@(42@,10i)
if 
  950 > 43@
goto_if_false @RYDER2_27620
if 
  not is_car_dead 95@
goto_if_false @RYDER2_27620
$x, $y, $z = get_object_coordinates 282@(42@,10i)
delete_object 282@(42@,10i)
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade

:RYDER2_27620
42@ += 1
goto @RYDER2_27277

:RYDER2_27634
if 
  35@ > 4
goto_if_false @RYDER2_27803
if 
  not is_car_dead 95@
goto_if_false @RYDER2_27803
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_27751
if 
  does_blip_exist 119@
goto_if_false @RYDER2_27708
remove_blip 119@

:RYDER2_27708
if 
  not does_blip_exist 120@
goto_if_false @RYDER2_27744
120@ = add_blip_for_coord 2454.626 {y} -1972.5341 {z} 12.5617

:RYDER2_27744
goto @RYDER2_27803

:RYDER2_27751
if 
  not does_blip_exist 119@
goto_if_false @RYDER2_27782
119@ = add_blip_for_car 95@
set_blip_as_friendly 119@ {state} True

:RYDER2_27782
if 
  does_blip_exist 120@
goto_if_false @RYDER2_27803
remove_blip 120@

:RYDER2_27803
if 
  35@ >= 13
goto_if_false @RYDER2_28235
if 
  not is_car_dead 95@
goto_if_false @RYDER2_28235
if 
  not is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_28235
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_28235
if and
  194@ <= 0
  99 < 194@
goto_if_false @RYDER2_28235
if 
  54@ > 15000
goto_if_false @RYDER2_28235
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_28235
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_28235
if 
  locate_char_any_means_char_3d $scplayer {target} $ryder {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_28235
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_28228 {caseNum1} 0 {caseLabel1} @RYDER2_28057 {caseNum2} 1 {caseLabel2} @RYDER2_28114 {caseNum3} 2 {caseLabel3} @RYDER2_28171 {caseNum4} -1 {caseLabel4} @RYDER2_28228 {caseNum5} -1 {caseLabel5} @RYDER2_28228 {caseNum6} -1 {caseLabel6} @RYDER2_28228 {caseNum7} -1 {caseLabel7} @RYDER2_28228

:RYDER2_28057
set_var_text_label s$audio_string = 'RYD2_QA'
set_var_int_to_constant $audio_sound_file = 33861
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_28228

:RYDER2_28114
set_var_text_label s$audio_string = 'RYD2_QB'
set_var_int_to_constant $audio_sound_file = 33862
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_28228

:RYDER2_28171
set_var_text_label s$audio_string = 'RYD2_QC'
set_var_int_to_constant $audio_sound_file = 33863
start_new_script @AUDIOL $ryder 0 1 1 0 
49@ = 1
goto @RYDER2_28228

:RYDER2_28228
54@ = 0

:RYDER2_28235
if 
  38@ == 4
goto_if_false @RYDER2_28788
if 
  does_vehicle_exist 96@
goto_if_false @RYDER2_28788
if 
  not is_car_dead 96@
goto_if_false @RYDER2_28788
if 
  not is_char_dead 113@
goto_if_false @RYDER2_28357
if 
  not is_char_in_car 113@ {vehicle} 96@
goto_if_false @RYDER2_28357
42@ = get_script_task_status 113@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28357
task_kill_char_on_foot 113@ {target} $scplayer

:RYDER2_28357
if 
  not is_char_dead 117@
goto_if_false @RYDER2_28788
if 
  is_char_in_car 117@ {vehicle} 96@
goto_if_false @RYDER2_28751
if 
  not is_car_dead 95@
goto_if_false @RYDER2_28744
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_28580
45@ = get_car_speed 95@
if 
  5.0 > 45@
goto_if_false @RYDER2_28573
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_28573
if 
  locate_char_any_means_char_3d 117@ {target} $ryder {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_28573
42@ = get_script_task_status 117@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28573
task_drive_by 117@ {targetChar} -1 {targetVehicle} 95@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:RYDER2_28573
goto @RYDER2_28744

:RYDER2_28580
if 
  not is_char_in_car $scplayer {vehicle} 96@
goto_if_false @RYDER2_28707
if 
  locate_char_any_means_char_3d 117@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_28700
42@ = get_script_task_status 117@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28700
task_drive_by 117@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:RYDER2_28700
goto @RYDER2_28744

:RYDER2_28707
42@ = get_script_task_status 117@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28744
task_kill_char_on_foot 117@ {target} $scplayer

:RYDER2_28744
goto @RYDER2_28788

:RYDER2_28751
42@ = get_script_task_status 117@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28788
task_kill_char_on_foot 117@ {target} $scplayer

:RYDER2_28788
if 
  38@ == 8
goto_if_false @RYDER2_29341
if 
  does_vehicle_exist 97@
goto_if_false @RYDER2_29341
if 
  not is_car_dead 97@
goto_if_false @RYDER2_29341
if 
  not is_char_dead 114@
goto_if_false @RYDER2_28910
if 
  not is_char_in_car 114@ {vehicle} 97@
goto_if_false @RYDER2_28910
42@ = get_script_task_status 114@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_28910
task_kill_char_on_foot 114@ {target} $scplayer

:RYDER2_28910
if 
  not is_char_dead 118@
goto_if_false @RYDER2_29341
if 
  is_char_in_car 118@ {vehicle} 97@
goto_if_false @RYDER2_29304
if 
  not is_car_dead 95@
goto_if_false @RYDER2_29297
if 
  is_char_in_car $scplayer {vehicle} 95@
goto_if_false @RYDER2_29133
45@ = get_car_speed 95@
if 
  5.0 > 45@
goto_if_false @RYDER2_29126
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_29126
if 
  locate_char_any_means_char_3d 118@ {target} $ryder {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_29126
42@ = get_script_task_status 118@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29126
task_drive_by 118@ {targetChar} -1 {targetVehicle} 95@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:RYDER2_29126
goto @RYDER2_29297

:RYDER2_29133
if 
  not is_char_in_car $scplayer {vehicle} 97@
goto_if_false @RYDER2_29260
if 
  locate_char_any_means_char_3d 118@ {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @RYDER2_29253
42@ = get_script_task_status 118@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29253
task_drive_by 118@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 100.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:RYDER2_29253
goto @RYDER2_29297

:RYDER2_29260
42@ = get_script_task_status 118@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29297
task_kill_char_on_foot 118@ {target} $scplayer

:RYDER2_29297
goto @RYDER2_29341

:RYDER2_29304
42@ = get_script_task_status 118@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @RYDER2_29341
task_kill_char_on_foot 118@ {target} $scplayer

:RYDER2_29341
if and
  38@ == 0
  35@ > 10
goto_if_false @RYDER2_29821
if 
  does_vehicle_exist 96@
goto_if_false @RYDER2_29821
if 
  not is_car_dead 96@
goto_if_false @RYDER2_29821
if 
  not is_car_dead 95@
goto_if_false @RYDER2_29821
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
if 
  not locate_car_2d 96@ {x} $x {y} $y {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @RYDER2_29821
if 
  not is_car_on_screen 96@
goto_if_false @RYDER2_29821
42@ = 1
43@ = 0

:RYDER2_29507
if 
  43@ == 0
goto_if_false @RYDER2_29706
207@, 208@, 209@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 42@
if and
  not is_point_on_screen 207@ {y} 208@ {z} 209@ {radius} 5.0
  not is_point_obscured_by_a_mission_entity 207@ {y} 208@ {z} 209@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @RYDER2_29667
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 207@ {toZ} 208@
if 
  45@ > 30.0
goto_if_false @RYDER2_29653
43@ = -1
goto @RYDER2_29660

:RYDER2_29653
43@ = 1

:RYDER2_29660
goto @RYDER2_29699

:RYDER2_29667
42@ += 1
if 
  42@ > 10
goto_if_false @RYDER2_29699
43@ = -1

:RYDER2_29699
goto @RYDER2_29507

:RYDER2_29706
if 
  43@ == 1
goto_if_false @RYDER2_29821
$x, $y, $z = get_car_coordinates 95@
set_lvar_float_to_var_float 294@ = $x
sub_float_lvar_from_float_lvar 294@ -= 207@
set_lvar_float_to_var_float 295@ = $y
sub_float_lvar_from_float_lvar 295@ -= 208@
$heading = get_heading_from_vector_2d 294@ {y} 295@
clear_area 207@ {y} 208@ {z} 209@ {radius} 5.0 {clearParticles} True
set_car_coordinates 96@ {x} 207@ {y} 208@ {z} 209@
set_car_heading 96@ {heading} $heading

:RYDER2_29821
if and
  38@ == 1
  35@ > 10
goto_if_false @RYDER2_30301
if 
  does_vehicle_exist 97@
goto_if_false @RYDER2_30301
if 
  not is_car_dead 97@
goto_if_false @RYDER2_30301
if 
  not is_car_dead 95@
goto_if_false @RYDER2_30301
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
if 
  not locate_car_2d 97@ {x} $x {y} $y {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @RYDER2_30301
if 
  not is_car_on_screen 97@
goto_if_false @RYDER2_30301
42@ = 1
43@ = 0

:RYDER2_29987
if 
  43@ == 0
goto_if_false @RYDER2_30186
207@, 208@, 209@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 42@
if and
  not is_point_on_screen 207@ {y} 208@ {z} 209@ {radius} 5.0
  not is_point_obscured_by_a_mission_entity 207@ {y} 208@ {z} 209@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @RYDER2_30147
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 207@ {toZ} 208@
if 
  45@ > 30.0
goto_if_false @RYDER2_30133
43@ = -1
goto @RYDER2_30140

:RYDER2_30133
43@ = 1

:RYDER2_30140
goto @RYDER2_30179

:RYDER2_30147
42@ += 1
if 
  42@ > 10
goto_if_false @RYDER2_30179
43@ = -1

:RYDER2_30179
goto @RYDER2_29987

:RYDER2_30186
if 
  43@ == 1
goto_if_false @RYDER2_30301
$x, $y, $z = get_car_coordinates 95@
set_lvar_float_to_var_float 294@ = $x
sub_float_lvar_from_float_lvar 294@ -= 207@
set_lvar_float_to_var_float 295@ = $y
sub_float_lvar_from_float_lvar 295@ -= 208@
$heading = get_heading_from_vector_2d 294@ {y} 295@
clear_area 207@ {y} 208@ {z} 209@ {radius} 5.0 {clearParticles} True
set_car_coordinates 97@ {x} 207@ {y} 208@ {z} 209@
set_car_heading 97@ {heading} $heading

:RYDER2_30301
return 

:RYDER2_30303
if 
  35@ == 0
goto_if_false @RYDER2_31011
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:RYDER2_30335
if 
  get_fading_status 
goto_if_false @RYDER2_30359
wait 0
goto @RYDER2_30335

:RYDER2_30359
request_model 105
request_model 106

:RYDER2_30367
if or
  not has_model_loaded 105
  not has_model_loaded 106
goto_if_false @RYDER2_30397
wait 0
goto @RYDER2_30367

:RYDER2_30397
if 
  not is_car_dead 95@
goto_if_false @RYDER2_30443
set_car_coordinates 95@ {x} 2455.708 {y} -1972.858 {z} 12.5469
set_car_heading 95@ {heading} 343.4514

:RYDER2_30443
switch_widescreen True
set_near_clip 0.1
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_30475
clear_char_tasks $ryder

:RYDER2_30475
clear_area 2447.9009 {y} -1980.542 {z} 12.8338 {radius} 20.0 {clearParticles} True
set_fixed_camera_position 2447.9009 {y} -1980.542 {z} 12.8338 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2448.4839 {y} -1979.735 {z} 12.929 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 113@
goto_if_false @RYDER2_30571
delete_char 113@

:RYDER2_30571
if 
  not is_char_dead 114@
goto_if_false @RYDER2_30592
delete_char 114@

:RYDER2_30592
if 
  not is_car_dead 96@
goto_if_false @RYDER2_30613
delete_car 96@

:RYDER2_30613
if 
  not is_car_dead 97@
goto_if_false @RYDER2_30634
delete_car 97@

:RYDER2_30634
115@ = create_char PedType.CivMale {modelId} 105 {x} 2448.4761 {y} -1980.751 {z} 12.5947
116@ = create_char PedType.CivMale {modelId} 106 {x} 2447.553 {y} -1979.8831 {z} 12.5947
set_char_heading 115@ {heading} 316.4611
set_char_heading 116@ {heading} 319.2614
set_char_decision_maker 115@ {handleOrTemplate} 237@
set_char_decision_maker 116@ {handleOrTemplate} 237@
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_30872
detach_char_from_car $ryder
clear_char_tasks_immediately $ryder
if 
  does_object_exist 281@
goto_if_false @RYDER2_30773
delete_object 281@

:RYDER2_30773
set_char_coordinates $ryder {x} 2453.002 {y} -1976.576 {z} 12.5469
set_char_heading $ryder {heading} 5.1526
set_anim_group_for_char $ryder {animGroup} "GANG1"
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2452.7019 {y} -1972.939 {z} 12.5469 {speed} MoveState.Walk {time} 10000
task_look_at_char -1 {target} $scplayer {time} 3000
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_30872
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2452.29 {y} -1971.682 {z} 12.5469
set_char_heading $scplayer {heading} 153.4741
if 
  not is_char_dead 115@
goto_if_false @RYDER2_30934
task_look_at_char $scplayer {target} 115@ {time} 4000

:RYDER2_30934
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
$audio_line_is_active = 0
clear_prints 
49@ = 0
54@ = 1000
TIMERA = 0
do_fade 500 {direction} Fade.In

:RYDER2_30980
if 
  get_fading_status 
goto_if_false @RYDER2_31004
wait 0
goto @RYDER2_30980

:RYDER2_31004
35@ += 1

:RYDER2_31011
if 
  35@ > 0
goto_if_false @RYDER2_31740
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_31740
if 
  54@ > 1000
goto_if_false @RYDER2_31740
switch_start 49@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_31740 {caseNum1} 0 {caseLabel1} @RYDER2_31129 {caseNum2} 1 {caseLabel2} @RYDER2_31288 {caseNum3} 2 {caseLabel3} @RYDER2_31365 {caseNum4} 3 {caseLabel4} @RYDER2_31579 {caseNum5} -1 {caseLabel5} @RYDER2_31740 {caseNum6} -1 {caseLabel6} @RYDER2_31740 {caseNum7} -1 {caseLabel7} @RYDER2_31740

:RYDER2_31129
set_var_text_label s$audio_string = 'RYD2_TA'
set_var_int_to_constant $audio_sound_file = 33876
start_new_script @AUDIOL $ryder 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33877
49@ += 1
54@ = 0
if 
  not is_char_dead 115@
goto_if_false @RYDER2_31240
task_go_straight_to_coord 115@ {x} 2451.915 {y} -1977.506 {z} 12.5947 {speed} MoveState.Walk {time} 10000

:RYDER2_31240
if 
  not is_char_dead 116@
goto_if_false @RYDER2_31281
task_go_straight_to_coord 116@ {x} 2450.5459 {y} -1976.361 {z} 12.5947 {speed} MoveState.Walk {time} 10000

:RYDER2_31281
goto @RYDER2_31740

:RYDER2_31288
set_var_text_label s$audio_string = 'RYD2_TB'
set_var_int_to_constant $audio_sound_file = 33877
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33878
49@ += 1
54@ = 0
goto @RYDER2_31740

:RYDER2_31365
set_fixed_camera_position 2450.0459 {y} -1966.412 {z} 15.1296 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2450.561 {y} -1967.251 {z} 14.9539 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'RYD2_TC'
set_var_int_to_constant $audio_sound_file = 33878
start_new_script @AUDIOL $ryder 0 1 1 1 
49@ += 1
54@ = 0
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_31572
48@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 2000
task_go_straight_to_coord -1 {x} 2452.239 {y} -1980.224 {z} 12.5469 {speed} MoveState.Walk {time} 10000
close_sequence_task 48@
perform_sequence_task $ryder {sequence} 48@
clear_sequence_task 48@

:RYDER2_31572
goto @RYDER2_31740

:RYDER2_31579
if 
  not is_char_dead 115@
goto_if_false @RYDER2_31649
48@ = open_sequence_task 
task_pause -1 {time} 2000
task_go_straight_to_coord -1 {x} 2452.9509 {y} -1982.921 {z} 12.5469 {speed} MoveState.Walk {time} 10000
close_sequence_task 48@
perform_sequence_task 115@ {sequence} 48@
clear_sequence_task 48@

:RYDER2_31649
if 
  not is_char_dead 116@
goto_if_false @RYDER2_31719
48@ = open_sequence_task 
task_pause -1 {time} 1500
task_go_straight_to_coord -1 {x} 2452.0061 {y} -1983.186 {z} 12.5469 {speed} MoveState.Walk {time} 10000
close_sequence_task 48@
perform_sequence_task 116@ {sequence} 48@
clear_sequence_task 48@

:RYDER2_31719
49@ += 1
54@ = 0
goto @RYDER2_31740

:RYDER2_31740
if 
  35@ == 1
goto_if_false @RYDER2_31844
if and
  49@ > 3
  54@ > 5000
  $audio_line_is_active == 0
goto_if_false @RYDER2_31820
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @RYDER2_31813
35@ += 1

:RYDER2_31813
goto @RYDER2_31844

:RYDER2_31820
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @RYDER2_31844
35@ += 1

:RYDER2_31844
if 
  35@ == 2
goto_if_false @RYDER2_32058
do_fade 1000 {direction} Fade.Out

:RYDER2_31869
if 
  get_fading_status 
goto_if_false @RYDER2_31893
wait 0
goto @RYDER2_31869

:RYDER2_31893
delete_char 115@
delete_char 116@
delete_char $ryder
42@ = 0

:RYDER2_31915
if 
  5 > 42@
goto_if_false @RYDER2_31976
if 
  does_object_exist 308@(42@,5i)
goto_if_false @RYDER2_31962
delete_object 308@(42@,5i)

:RYDER2_31962
42@ += 1
goto @RYDER2_31915

:RYDER2_31976
if 
  does_object_exist 313@
goto_if_false @RYDER2_31997
delete_object 313@

:RYDER2_31997
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In

:RYDER2_32020
if 
  get_fading_status 
goto_if_false @RYDER2_32044
wait 0
goto @RYDER2_32020

:RYDER2_32044
set_player_control $player1 {state} True
36@ = 1

:RYDER2_32058
return 

:RYDER2_32060
if 
  does_char_exist $ryder
goto_if_false @RYDER2_32115
if 
  is_char_dead $ryder
goto_if_false @RYDER2_32115
37@ = 1
print_now 'RY2_22' {time} 5000 {flag} 1

:RYDER2_32115
if 
  does_vehicle_exist 95@
goto_if_false @RYDER2_32209
if 
  is_car_dead 95@
goto_if_false @RYDER2_32209
if 
  292@ == 1
goto_if_false @RYDER2_32186
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_32186
task_die $ryder

:RYDER2_32186
37@ = 1
print_now 'RY2_25' {time} 5000 {flag} 1

:RYDER2_32209
if 
  6 > 34@
goto_if_false @RYDER2_32328
if 
  does_vehicle_exist 99@
goto_if_false @RYDER2_32328
if 
  is_car_dead 99@
goto_if_false @RYDER2_32289
37@ = 1
print_now 'RY2_40' {time} 5000 {flag} 1
goto @RYDER2_32328

:RYDER2_32289
if 
  is_car_in_water 99@
goto_if_false @RYDER2_32328
37@ = 1
print_now 'RY2_40' {time} 5000 {flag} 1

:RYDER2_32328
if and
  34@ > 2
  6 > 34@
goto_if_false @RYDER2_32677
if 
  38@ == 6
goto_if_false @RYDER2_32677
42@ = 0
43@ = 0

:RYDER2_32385
if 
  25 > 42@
goto_if_false @RYDER2_32510
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_32496
if 
  not is_object_in_water 62@(42@,25i)
goto_if_false @RYDER2_32496
$x, $y, $z = get_object_coordinates 62@(42@,25i)
if 
  $z > 0.0
goto_if_false @RYDER2_32489
43@ += 1

:RYDER2_32489
goto @RYDER2_32496

:RYDER2_32496
42@ += 1
goto @RYDER2_32385

:RYDER2_32510
if 
  is_int_var_greater_than_int_lvar $loaded_boxes_neg > 43@
goto_if_false @RYDER2_32677
42@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_32606
set_var_text_label s$audio_string = 'RYD2_LF'
set_var_int_to_constant $audio_sound_file = 33838
start_new_script @AUDIOL $ryder 0 1 1 0 
goto @RYDER2_32649

:RYDER2_32606
set_var_text_label s$audio_string = 'RYD2_LE'
set_var_int_to_constant $audio_sound_file = 33837
start_new_script @AUDIOL $ryder 0 1 1 0 

:RYDER2_32649
wait 4000
print_now 'RY2_58' {time} 5000 {flag} 1
37@ = 1

:RYDER2_32677
if 
  34@ >= 3
goto_if_false @RYDER2_33146
if 
  133@ == 0
goto_if_false @RYDER2_32793
if 
  does_object_exist 60@
goto_if_false @RYDER2_32786
if 
  has_object_been_damaged 60@
goto_if_false @RYDER2_32786
133@ += 1
clear_prints 
report_mission_audio_event_at_object 60@ {soundId} ScriptSound.SoundShootControls
if 
  does_object_exist 240@
goto_if_false @RYDER2_32786
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStart

:RYDER2_32786
goto @RYDER2_32884

:RYDER2_32793
if 
  133@ == 1
goto_if_false @RYDER2_32884
if 
  does_object_exist 240@
goto_if_false @RYDER2_32884
if 
  slide_object 240@ {posX} 248@ {posY} 249@ {posZ} 250@ {speedX} 0.0 {speedY} 0.2 {speedZ} 0.0 {collisionCheck} False
goto_if_false @RYDER2_32884
report_mission_audio_event_at_object 240@ {soundId} ScriptSound.SoundHeavyGateStop
133@ += 1

:RYDER2_32884
if 
  132@ == 0
goto_if_false @RYDER2_33024
if 
  does_object_exist 61@
goto_if_false @RYDER2_33017
if 
  has_object_been_damaged 61@
goto_if_false @RYDER2_33017
if 
  does_object_exist 87@
goto_if_false @RYDER2_32955
delete_object 87@

:RYDER2_32955
if 
  does_object_exist 88@
goto_if_false @RYDER2_32976
delete_object 88@

:RYDER2_32976
report_mission_audio_event_at_object 61@ {soundId} ScriptSound.SoundShootControls
if 
  does_object_exist 241@
goto_if_false @RYDER2_33008
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStart

:RYDER2_33008
clear_prints 
132@ += 1

:RYDER2_33017
goto @RYDER2_33146

:RYDER2_33024
if 
  132@ == 1
goto_if_false @RYDER2_33146
if 
  does_object_exist 241@
goto_if_false @RYDER2_33146
if 
  slide_object 241@ {posX} 251@ {posY} 252@ {posZ} 253@ {speedX} 0.1 {speedY} 0.1 {speedZ} 0.1 {collisionCheck} False
goto_if_false @RYDER2_33146
report_mission_audio_event_at_object 241@ {soundId} ScriptSound.SoundShutterDoorStop
if 
  133@ <> 0
goto_if_false @RYDER2_33131
remove_blip 120@

:RYDER2_33131
132@ += 1
144@ = 30000

:RYDER2_33146
if 
  38@ == 0
goto_if_false @RYDER2_33241
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2721.0 {leftBottomY} -2329.8521 {rightTopX} 2810.5481 {rightTopY} -2565.9341 {drawSphere} False
goto_if_false @RYDER2_33234
if 
  126@ == 0
goto_if_false @RYDER2_33227
126@ = 1

:RYDER2_33227
goto @RYDER2_33241

:RYDER2_33234
126@ = 0

:RYDER2_33241
set_var_int_to_lvar_int $loaded_boxes_neg = 200@
sub_int_lvar_from_int_var $loaded_boxes_neg -= 127@
if 
  0 > $loaded_boxes_neg
goto_if_false @RYDER2_33282
$loaded_boxes_neg = 0

:RYDER2_33282
if 
  124@ == 1
goto_if_false @RYDER2_33395
if 
  131@ == 0
goto_if_false @RYDER2_33395
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_33395
set_char_relationship $ryder {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
task_toggle_ped_threat_scanner $ryder {onFoot} False {inCar} True {duringScriptTask} False
add_char_decision_maker_event_response 235@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
131@ = 1

:RYDER2_33395
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_33486
$ryder_health = get_char_health $ryder
cset_lvar_float_to_var_int 45@ =# $ryder_health
45@ /= 500.0
45@ *= 100.0
if 
  45@ > 100.0
goto_if_false @RYDER2_33478
45@ = 100.0

:RYDER2_33478
cset_var_int_to_lvar_float $ryder_health =# 45@

:RYDER2_33486
if 
  124@ == 0
goto_if_false @RYDER2_34287
if 
  38@ == 1
goto_if_false @RYDER2_34280
42@ = 0

:RYDER2_33529
if 
  5 > 42@
goto_if_false @RYDER2_33623
if 
  not is_char_dead 102@(42@,9i)
goto_if_false @RYDER2_33609
if or
  has_char_been_damaged_by_char 102@(42@,9i) {handle} $scplayer
  is_player_targetting_char $player1 {handle} 102@(42@,9i)
goto_if_false @RYDER2_33609
124@ = 1

:RYDER2_33609
42@ += 1
goto @RYDER2_33529

:RYDER2_33623
if 
  124@ == 0
goto_if_false @RYDER2_34212
42@ = 0

:RYDER2_33648
if 
  5 > 42@
goto_if_false @RYDER2_34212
if 
  not is_char_dead 102@(42@,9i)
goto_if_false @RYDER2_34198
if 
  172@(42@,9i) == 0
goto_if_false @RYDER2_33950
if 
  126@ == 1
goto_if_false @RYDER2_33950
if 
  has_char_spotted_char 102@(42@,9i) {target} $scplayer
goto_if_false @RYDER2_33865
task_aim_gun_at_char 102@(42@,9i) {target} $scplayer {time} 10000
if 
  300@ == 0
goto_if_false @RYDER2_33836
set_var_text_label s$audio_string = 'RYD2_VA'
set_var_int_to_constant $audio_sound_file = 33883
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 
300@ += 1

:RYDER2_33836
181@(42@,9i) = 0
172@(42@,9i) += 1
goto @RYDER2_33950

:RYDER2_33865
if 
  locate_char_on_foot_char_3d $scplayer {target} 102@(42@,9i) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER2_33950
43@ = get_script_task_status 102@(42@,9i) {taskId} 1593
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @RYDER2_33950
task_turn_char_to_face_char 102@(42@,9i) {target} $scplayer

:RYDER2_33950
if 
  172@(42@,9i) == 1
goto_if_false @RYDER2_34198
if 
  181@(42@,9i) > 8000
goto_if_false @RYDER2_34162
if 
  126@ == 1
goto_if_false @RYDER2_34155
43@ = generate_random_int_in_range 0 {max} 2
if 
  42@ == 0
goto_if_false @RYDER2_34094
set_var_text_label s$audio_string = 'RYD2_VB'
set_var_int_to_constant $audio_sound_file = 33884
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 
goto @RYDER2_34141

:RYDER2_34094
set_var_text_label s$audio_string = 'RYD2_VG'
set_var_int_to_constant $audio_sound_file = 33889
start_new_script @AUDIOL 102@(42@,9i) 0 1 1 0 

:RYDER2_34141
124@ = 1
42@ = 5

:RYDER2_34155
goto @RYDER2_34198

:RYDER2_34162
if 
  126@ == 0
goto_if_false @RYDER2_34198
172@(42@,9i) = 0
300@ = 0

:RYDER2_34198
42@ += 1
goto @RYDER2_33648

:RYDER2_34212
if 
  124@ == 1
goto_if_false @RYDER2_34280
42@ = 0

:RYDER2_34237
if 
  9 > 42@
goto_if_false @RYDER2_34280
172@(42@,9i) = 0
42@ += 1
goto @RYDER2_34237

:RYDER2_34280
goto @RYDER2_35168

:RYDER2_34287
if 
  9 > 38@
goto_if_false @RYDER2_35168
if 
  not is_char_dead 102@(38@,9i)
goto_if_false @RYDER2_35168
switch_start 38@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @RYDER2_35094 {caseNum1} 1 {caseLabel1} @RYDER2_34388 {caseNum2} 2 {caseLabel2} @RYDER2_34468 {caseNum3} 3 {caseLabel3} @RYDER2_34698 {caseNum4} 4 {caseLabel4} @RYDER2_34921 {caseNum5} -1 {caseLabel5} @RYDER2_35168 {caseNum6} -1 {caseLabel6} @RYDER2_35168 {caseNum7} -1 {caseLabel7} @RYDER2_35168

:RYDER2_34388
if 
  172@(38@,9i) == 0
goto_if_false @RYDER2_34461
48@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 48@
perform_sequence_task 102@(38@,9i) {sequence} 48@
clear_sequence_task 48@
172@(38@,9i) += 1

:RYDER2_34461
goto @RYDER2_35168

:RYDER2_34468
if 
  132@ == 1
goto_if_false @RYDER2_34691
if 
  174@ == 0
goto_if_false @RYDER2_34622
set_char_relationship 104@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 104@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
task_toggle_ped_threat_scanner 104@ {onFoot} False {inCar} False {duringScriptTask} False
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2785.752 {y} -2413.019 {z} 12.6316 {speed} MoveState.Run {time} -2
task_set_char_decision_maker -1 {handleOrTemplate} 236@
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} False
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 48@
perform_sequence_task 104@ {sequence} 48@
clear_sequence_task 48@
174@ += 1

:RYDER2_34622
if 
  174@ == 1
goto_if_false @RYDER2_34691
if 
  locate_char_any_means_char_3d 104@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_34691
task_kill_char_on_foot 104@ {target} $scplayer
174@ += 1

:RYDER2_34691
goto @RYDER2_35168

:RYDER2_34698
if 
  132@ == 1
goto_if_false @RYDER2_34914
if 
  175@ == 0
goto_if_false @RYDER2_34845
set_char_relationship 105@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 105@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
task_toggle_ped_threat_scanner 105@ {onFoot} False {inCar} False {duringScriptTask} False
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2786.6631 {y} -2422.2351 {z} 12.634 {speed} MoveState.Run {time} -2
task_set_char_decision_maker -1 {handleOrTemplate} 236@
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} False
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 48@
perform_sequence_task 105@ {sequence} 48@
clear_sequence_task 48@

:RYDER2_34845
if 
  175@ == 1
goto_if_false @RYDER2_34914
if 
  locate_char_any_means_char_3d 105@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_34914
task_kill_char_on_foot 105@ {target} $scplayer
175@ += 1

:RYDER2_34914
goto @RYDER2_35168

:RYDER2_34921
if 
  176@ == 0
goto_if_false @RYDER2_35018
48@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2764.928 {y} -2402.124 {z} 12.625 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 1 {actionDelay} 3000 {actionChance} 90
task_stay_in_same_place -1 {state} True
close_sequence_task 48@
perform_sequence_task 106@ {sequence} 48@
clear_sequence_task 48@
176@ += 1

:RYDER2_35018
if 
  176@ == 1
goto_if_false @RYDER2_35087
if 
  locate_char_any_means_char_3d 106@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @RYDER2_35087
task_kill_char_on_foot 106@ {target} $scplayer
176@ += 1

:RYDER2_35087
goto @RYDER2_35168

:RYDER2_35094
if 
  172@(38@,9i) == 0
goto_if_false @RYDER2_35161
48@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 48@
perform_sequence_task 102@(38@,9i) {sequence} 48@
clear_sequence_task 48@
172@(38@,9i) += 1

:RYDER2_35161
goto @RYDER2_35168

:RYDER2_35168
if 
  38@ == 2
goto_if_false @RYDER2_35667
42@ = 0

:RYDER2_35193
if 
  25 > 42@
goto_if_false @RYDER2_35667
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_35653
if 
  has_object_been_damaged 62@(42@,25i)
goto_if_false @RYDER2_35653
$x, $y, $z = get_object_coordinates 62@(42@,25i)
if 
  is_object_attached 62@(42@,25i)
goto_if_false @RYDER2_35296
goto @RYDER2_35637

:RYDER2_35296
if 
  147@(42@,25i) == 1
goto_if_false @RYDER2_35350
create_pickup_with_ammo 346 {pickupType} PickupType.Once {ammo} 30 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35637

:RYDER2_35350
if 
  147@(42@,25i) == 2
goto_if_false @RYDER2_35401
create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35637

:RYDER2_35401
if 
  147@(42@,25i) == 3
goto_if_false @RYDER2_35455
create_pickup_with_ammo 342 {pickupType} PickupType.Once {ammo} 6 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35637

:RYDER2_35455
if 
  147@(42@,25i) == 4
goto_if_false @RYDER2_35507
create_pickup #HEALTH {pickupType} PickupType.Once {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35637

:RYDER2_35507
if 
  147@(42@,25i) == 5
goto_if_false @RYDER2_35536
goto @RYDER2_35637

:RYDER2_35536
if 
  147@(42@,25i) == 6
goto_if_false @RYDER2_35590
create_pickup_with_ammo 352 {pickupType} PickupType.Once {ammo} 30 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)
goto @RYDER2_35637

:RYDER2_35590
if 
  147@(42@,25i) == 7
goto_if_false @RYDER2_35637
create_pickup_with_ammo 349 {pickupType} PickupType.Once {ammo} 30 {x} $x {y} $y {z} $z {var_handle} 210@(42@,25i)

:RYDER2_35637
145@ += 1
delete_object 62@(42@,25i)

:RYDER2_35653
42@ += 1
goto @RYDER2_35193

:RYDER2_35667
if 
  197@ == 1
goto_if_false @RYDER2_36077
if 
  196@ == 0
goto_if_false @RYDER2_35912
if 
  not is_car_dead 99@
goto_if_false @RYDER2_35905
if 
  is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_35905
if 
  not is_car_dead 95@
goto_if_false @RYDER2_35905
if 
  not is_playback_going_on_for_car 95@
goto_if_false @RYDER2_35905
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_35905
if 
  not is_char_in_car $ryder {vehicle} 95@
goto_if_false @RYDER2_35905
if 
  is_car_stopped 95@
goto_if_false @RYDER2_35905
196@ = 1
freeze_car_position 95@ {state} True
set_car_collision 95@ {state} False
if 
  not does_object_exist 93@
goto_if_false @RYDER2_35905
$x, $y, $z = get_car_coordinates 95@
$heading = get_car_heading 95@
93@ = create_object_no_offset #FAKE_MULE_COL {x} $x {y} $y {z} $z
set_object_heading 93@ {heading} $heading

:RYDER2_35905
goto @RYDER2_36077

:RYDER2_35912
if 
  271@ == 0
goto_if_false @RYDER2_36077
if 
  not is_car_dead 99@
goto_if_false @RYDER2_35979
if 
  not is_char_in_car $scplayer {vehicle} 99@
goto_if_false @RYDER2_35972
196@ = 0

:RYDER2_35972
goto @RYDER2_35986

:RYDER2_35979
196@ = 0

:RYDER2_35986
if 
  196@ == 0
goto_if_false @RYDER2_36077
if 
  does_object_exist 93@
goto_if_false @RYDER2_36047
$x, $y, $z = get_object_coordinates 93@
$heading = get_object_heading 93@
delete_object 93@

:RYDER2_36047
if 
  not is_car_dead 95@
goto_if_false @RYDER2_36077
set_car_collision 95@ {state} True
freeze_car_position 95@ {state} False

:RYDER2_36077
if and
  38@ == 3
  34@ >= 3
goto_if_false @RYDER2_36430
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_36430
if 
  does_object_exist 60@
goto_if_false @RYDER2_36277
if 
  not has_object_been_damaged 60@
goto_if_false @RYDER2_36277
if 
  locate_char_on_foot_3d $scplayer {x} 2722.114 {y} -2412.0549 {z} 12.6198 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER2_36252
if 
  301@ == 0
goto_if_false @RYDER2_36245
print_now 'RY2_61' {time} 5000 {flag} 1
301@ += 1

:RYDER2_36245
goto @RYDER2_36277

:RYDER2_36252
if 
  301@ <> 0
goto_if_false @RYDER2_36277
301@ = 0

:RYDER2_36277
if 
  does_object_exist 61@
goto_if_false @RYDER2_36430
if 
  not has_object_been_damaged 61@
goto_if_false @RYDER2_36430
if 
  locate_char_on_foot_3d $scplayer {x} 2773.1011 {y} -2423.418 {z} 12.6269 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @RYDER2_36405
if 
  302@ == 0
goto_if_false @RYDER2_36398
print_now 'RY2_62' {time} 5000 {flag} 1
302@ += 1

:RYDER2_36398
goto @RYDER2_36430

:RYDER2_36405
if 
  302@ <> 0
goto_if_false @RYDER2_36430
302@ = 0

:RYDER2_36430
if 
  38@ == 4
goto_if_false @RYDER2_36848
if 
  $audio_line_is_active == 0
goto_if_false @RYDER2_36848
if 
  not is_car_dead 95@
goto_if_false @RYDER2_36848
if 
  is_playback_going_on_for_car 95@
goto_if_false @RYDER2_36848
$x, $y, $z = get_offset_from_car_in_world_coords 95@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @RYDER2_36823
if 
  303@ == 0
goto_if_false @RYDER2_36816
42@ = generate_random_int_in_range 0 {max} 3
switch_start 42@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @RYDER2_36809 {caseNum1} 0 {caseLabel1} @RYDER2_36659 {caseNum2} 1 {caseLabel2} @RYDER2_36709 {caseNum3} 2 {caseLabel3} @RYDER2_36759 {caseNum4} -1 {caseLabel4} @RYDER2_36809 {caseNum5} -1 {caseLabel5} @RYDER2_36809 {caseNum6} -1 {caseLabel6} @RYDER2_36809 {caseNum7} -1 {caseLabel7} @RYDER2_36809

:RYDER2_36659
set_var_text_label s$audio_string = 'RYD2_JA'
set_var_int_to_constant $audio_sound_file = 33827
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36809

:RYDER2_36709
set_var_text_label s$audio_string = 'RYD2_JB'
set_var_int_to_constant $audio_sound_file = 33828
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36809

:RYDER2_36759
set_var_text_label s$audio_string = 'RYD2_JC'
set_var_int_to_constant $audio_sound_file = 33829
start_new_script @AUDIOL $ryder 0 0 1 0 
goto @RYDER2_36809

:RYDER2_36809
303@ += 1

:RYDER2_36816
goto @RYDER2_36848

:RYDER2_36823
if 
  303@ <> 0
goto_if_false @RYDER2_36848
303@ = 0

:RYDER2_36848
if 
  145@ == 3
goto_if_false @RYDER2_36938
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @RYDER2_36938
set_var_text_label s$audio_string = 'RYD2_LG'
set_var_int_to_constant $audio_sound_file = 33839
start_new_script @AUDIOL $ryder 0 1 1 0 
145@ += 1

:RYDER2_36938
return 

:RYDER2_36940
if 
  306@ == 6
goto_if_false @RYDER2_36972
307@ = 1
306@ = 5

:RYDER2_36972
if 
  307@ == 1
goto_if_false @RYDER2_37097
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37090
if 
  not does_object_exist 313@
goto_if_false @RYDER2_37090
313@ = create_object #CM_BOX {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 313@ {state} False
attach_object_to_car 313@ {handle} 95@ {xOffset} 0.6223 {yOffset} -2.3101 {zOffset} 0.2002 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 317.0214

:RYDER2_37090
goto @RYDER2_37118

:RYDER2_37097
if 
  does_object_exist 313@
goto_if_false @RYDER2_37118
delete_object 313@

:RYDER2_37118
switch_start 306@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @RYDER2_39063 {caseNum1} 0 {caseLabel1} @RYDER2_37181 {caseNum2} 1 {caseLabel2} @RYDER2_37256 {caseNum3} 2 {caseLabel3} @RYDER2_37431 {caseNum4} 3 {caseLabel4} @RYDER2_37706 {caseNum5} 4 {caseLabel5} @RYDER2_38081 {caseNum6} 5 {caseLabel6} @RYDER2_38556 {caseNum7} -1 {caseLabel7} @RYDER2_39063

:RYDER2_37181
314@ = 0

:RYDER2_37188
if 
  5 > 314@
goto_if_false @RYDER2_37249
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_37235
delete_object 308@(314@,5i)

:RYDER2_37235
314@ += 1
goto @RYDER2_37188

:RYDER2_37249
goto @RYDER2_39063

:RYDER2_37256
if 
  not does_object_exist 308@
goto_if_false @RYDER2_37356
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37356
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37356
314@ = 1

:RYDER2_37363
if 
  5 > 314@
goto_if_false @RYDER2_37424
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_37410
delete_object 308@(314@,5i)

:RYDER2_37410
314@ += 1
goto @RYDER2_37363

:RYDER2_37424
goto @RYDER2_39063

:RYDER2_37431
if 
  not does_object_exist 309@
goto_if_false @RYDER2_37531
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37531
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37531
if 
  not does_object_exist 308@
goto_if_false @RYDER2_37631
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37631
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37631
314@ = 2

:RYDER2_37638
if 
  5 > 314@
goto_if_false @RYDER2_37699
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_37685
delete_object 308@(314@,5i)

:RYDER2_37685
314@ += 1
goto @RYDER2_37638

:RYDER2_37699
goto @RYDER2_39063

:RYDER2_37706
if 
  not does_object_exist 310@
goto_if_false @RYDER2_37806
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37806
310@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 310@ {state} False
attach_object_to_car 310@ {handle} 95@ {xOffset} -0.2585 {yOffset} -0.3195 {zOffset} 1.1567 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 23.47

:RYDER2_37806
if 
  not does_object_exist 309@
goto_if_false @RYDER2_37906
if 
  not is_car_dead 95@
goto_if_false @RYDER2_37906
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_37906
if 
  not does_object_exist 308@
goto_if_false @RYDER2_38006
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38006
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38006
314@ = 3

:RYDER2_38013
if 
  5 > 314@
goto_if_false @RYDER2_38074
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_38060
delete_object 308@(314@,5i)

:RYDER2_38060
314@ += 1
goto @RYDER2_38013

:RYDER2_38074
goto @RYDER2_39063

:RYDER2_38081
if 
  not does_object_exist 311@
goto_if_false @RYDER2_38181
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38181
311@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 311@ {state} False
attach_object_to_car 311@ {handle} 95@ {xOffset} -0.4009 {yOffset} -1.7762 {zOffset} 0.2292 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 342.0102

:RYDER2_38181
if 
  not does_object_exist 310@
goto_if_false @RYDER2_38281
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38281
310@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 310@ {state} False
attach_object_to_car 310@ {handle} 95@ {xOffset} -0.2585 {yOffset} -0.3195 {zOffset} 1.1567 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 23.47

:RYDER2_38281
if 
  not does_object_exist 309@
goto_if_false @RYDER2_38381
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38381
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38381
if 
  not does_object_exist 308@
goto_if_false @RYDER2_38481
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38481
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38481
314@ = 4

:RYDER2_38488
if 
  5 > 314@
goto_if_false @RYDER2_38549
if 
  does_object_exist 308@(314@,5i)
goto_if_false @RYDER2_38535
delete_object 308@(314@,5i)

:RYDER2_38535
314@ += 1
goto @RYDER2_38488

:RYDER2_38549
goto @RYDER2_39063

:RYDER2_38556
if 
  not does_object_exist 312@
goto_if_false @RYDER2_38656
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38656
312@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 312@ {state} False
attach_object_to_car 312@ {handle} 95@ {xOffset} -0.4374 {yOffset} -1.7451 {zOffset} 0.9021 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 210.1588

:RYDER2_38656
if 
  not does_object_exist 311@
goto_if_false @RYDER2_38756
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38756
311@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 311@ {state} False
attach_object_to_car 311@ {handle} 95@ {xOffset} -0.4009 {yOffset} -1.7762 {zOffset} 0.2292 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 342.0102

:RYDER2_38756
if 
  not does_object_exist 310@
goto_if_false @RYDER2_38856
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38856
310@ = create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 310@ {state} False
attach_object_to_car 310@ {handle} 95@ {xOffset} -0.2585 {yOffset} -0.3195 {zOffset} 1.1567 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 23.47

:RYDER2_38856
if 
  not does_object_exist 309@
goto_if_false @RYDER2_38956
if 
  not is_car_dead 95@
goto_if_false @RYDER2_38956
309@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 309@ {state} False
attach_object_to_car 309@ {handle} 95@ {xOffset} 0.4835 {yOffset} -0.2148 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_38956
if 
  not does_object_exist 308@
goto_if_false @RYDER2_39056
if 
  not is_car_dead 95@
goto_if_false @RYDER2_39056
308@ = create_object #CJ_CARDBRD_PICKUP {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 308@ {state} False
attach_object_to_car 308@ {handle} 95@ {xOffset} -0.4928 {yOffset} -0.1684 {zOffset} 0.3614 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RYDER2_39056
goto @RYDER2_39063

:RYDER2_39063
return 

:RYDER2_39065
316@ = -1
315@ = 0

:RYDER2_39079
if 
  10 > 315@
goto_if_false @RYDER2_39146
if 
  not does_object_exist 282@(315@,10i)
goto_if_false @RYDER2_39132
set_lvar_int_to_lvar_int 316@ = 315@
315@ = 10

:RYDER2_39132
315@ += 1
goto @RYDER2_39079

:RYDER2_39146
if 
  316@ <> -1
goto_if_false @RYDER2_39201
set_lvar_int_to_lvar_int 282@(316@,10i) = 281@
53@ = 0
set_object_records_collisions 282@(316@,10i) {state} True
127@ -= 1

:RYDER2_39201
return 

:RYDER2_39203
if 
  318@ == -999
goto_if_false @RYDER2_39246
317@ = create_char PedType.Mission1 {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:RYDER2_39246
if 
  not is_char_dead 317@
goto_if_false @RYDER2_39440
give_weapon_to_char 317@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 317@ {accuracy} 32
set_char_health 317@ {health} 100
set_char_decision_maker 317@ {handleOrTemplate} 236@
set_char_relationship 317@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
if 
  133@ <> 0
goto_if_false @RYDER2_39332
set_char_relationship 317@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2

:RYDER2_39332
task_toggle_ped_threat_scanner 317@ {onFoot} True {inCar} True {duringScriptTask} True
set_sense_range 317@ {range} 100.0
if 
  not does_group_exist 239@
goto_if_false @RYDER2_39381
remove_group 239@
239@ = create_group DefaultTaskAllocator.StandStill

:RYDER2_39381
318@, 319@ = get_group_size 239@
if 
  318@ == 0
goto_if_false @RYDER2_39425
set_group_leader 239@ {handle} 317@
goto @RYDER2_39433

:RYDER2_39425
set_group_member 239@ {handle} 317@

:RYDER2_39433
set_char_never_leaves_group 317@ {state} True

:RYDER2_39440
return 
320@ = 999999.0
321@ = -1
322@ = 0.0
323@ = 0.0
324@ = 0.0
42@ = 0

:RYDER2_39496
if 
  25 > 42@
goto_if_false @RYDER2_39756
if 
  does_object_exist 62@(42@,25i)
goto_if_false @RYDER2_39742
if 
  not is_char_holding_object $scplayer {handle} 62@(42@,25i)
goto_if_false @RYDER2_39742
if 
  not is_object_attached 62@(42@,25i)
goto_if_false @RYDER2_39742
if 
  not has_object_been_damaged 62@(42@,25i)
goto_if_false @RYDER2_39742
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_39627
$x, $y, $z = get_char_coordinates $ryder

:RYDER2_39627
325@, 326@, 327@ = get_object_coordinates 62@(42@,25i)
45@ = get_distance_between_coords_2d 325@ {fromY} 326@ {toX} $x {toZ} $y
if 
  6.0 > 45@
goto_if_false @RYDER2_39742
if 
  is_float_lvar_greater_than_float_lvar 320@ > 45@
goto_if_false @RYDER2_39742
set_lvar_float_to_lvar_float 320@ = 45@
set_lvar_int_to_lvar_int 321@ = 42@
set_lvar_float_to_lvar_float 322@ = 325@
set_lvar_float_to_lvar_float 323@ = 326@
set_lvar_float_to_lvar_float 324@ = 327@

:RYDER2_39742
42@ += 1
goto @RYDER2_39496

:RYDER2_39756
set_lvar_int_to_lvar_int 328@ = 321@
set_lvar_float_to_lvar_float 325@ = 322@
set_lvar_float_to_lvar_float 326@ = 323@
set_lvar_float_to_lvar_float 327@ = 324@
return 

:RYDER2_39790
329@, 330@, 331@ = get_object_coordinates 281@
332@, 333@, 334@, 335@ = get_object_quaternion 281@
drop_object $ryder {state} True
if 
  not is_car_dead 95@
goto_if_false @RYDER2_39860
294@ = get_car_forward_x 95@
295@ = get_car_forward_y 95@

:RYDER2_39860
294@ *= -10.0
295@ *= -10.0
set_object_coordinates 281@ {x} 329@ {y} 330@ {z} 331@
set_object_quaternion 281@ {x} 332@ {y} 333@ {z} 334@ {w} 335@
set_object_dynamic 281@ {state} True
set_object_collision 281@ {state} True
add_to_object_velocity 281@ {x} 294@ {y} 295@ {z} 0.0
if 
  not is_car_dead 95@
goto_if_false @RYDER2_39965
sort_out_object_collision_with_car 281@ {handle} 95@

:RYDER2_39965
gosub @RYDER2_39065
281@ = 0
return 

:RYDER2_39981
if 
  336@ > 0
goto_if_false @RYDER2_40761
switch_start 339@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @RYDER2_40754 {caseNum1} 0 {caseLabel1} @RYDER2_40062 {caseNum2} 1 {caseLabel2} @RYDER2_40104 {caseNum3} 2 {caseLabel3} @RYDER2_40279 {caseNum4} 3 {caseLabel4} @RYDER2_40545 {caseNum5} -1 {caseLabel5} @RYDER2_40754 {caseNum6} -1 {caseLabel6} @RYDER2_40754 {caseNum7} -1 {caseLabel7} @RYDER2_40754

:RYDER2_40062
if 
  not has_model_loaded 287
goto_if_false @RYDER2_40090
request_model 287
goto @RYDER2_40097

:RYDER2_40090
339@ += 1

:RYDER2_40097
goto @RYDER2_40754

:RYDER2_40104
345@ = -1
346@ = 0

:RYDER2_40118
if 
  5 > 346@
goto_if_false @RYDER2_40247
if 
  does_char_exist 340@(346@,5i)
goto_if_false @RYDER2_40218
if 
  is_char_dead 340@(346@,5i)
goto_if_false @RYDER2_40211
mark_char_as_no_longer_needed 340@(346@,5i)
340@(346@,5i) = 0
set_lvar_int_to_lvar_int 345@ = 346@
346@ = 5

:RYDER2_40211
goto @RYDER2_40233

:RYDER2_40218
set_lvar_int_to_lvar_int 345@ = 346@
346@ = 5

:RYDER2_40233
346@ += 1
goto @RYDER2_40118

:RYDER2_40247
if 
  345@ <> -1
goto_if_false @RYDER2_40272
339@ += 1

:RYDER2_40272
goto @RYDER2_40754

:RYDER2_40279
if or
  338@ == 3
  338@ == 7
  338@ == 8
  338@ == 9
goto_if_false @RYDER2_40332
338@ += 1
goto @RYDER2_40279

:RYDER2_40332
if 
  338@ > 9
goto_if_false @RYDER2_40357
338@ = 0

:RYDER2_40357
if 
  not is_int_lvar_equal_to_int_lvar 338@ == 337@
goto_if_false @RYDER2_40506
if 
  not is_point_on_screen 347@(338@,10f) {y} 357@(338@,10f) {z} 367@(338@,10f) {radius} 2.0
goto_if_false @RYDER2_40492
if 
  not is_point_obscured_by_a_mission_entity 347@(338@,10f) {y} 357@(338@,10f) {z} 367@(338@,10f) {radiusX} 1.5 {radiusY} 1.5 {radiusZ} 2.0
goto_if_false @RYDER2_40478
339@ += 1
goto @RYDER2_40485

:RYDER2_40478
338@ += 1

:RYDER2_40485
goto @RYDER2_40499

:RYDER2_40492
338@ += 1

:RYDER2_40499
goto @RYDER2_40513

:RYDER2_40506
338@ += 1

:RYDER2_40513
if 
  338@ > 9
goto_if_false @RYDER2_40538
338@ = 0

:RYDER2_40538
goto @RYDER2_40754

:RYDER2_40545
create_char PedType.Mission1 {modelId} 287 {x} 347@(338@,10f) {y} 357@(338@,10f) {z} 367@(338@,10f) {var_handle} 340@(345@,5i)
set_lvar_int_to_lvar_int 317@ = 340@(345@,5i)
gosub @RYDER2_39203
48@ = open_sequence_task 
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} True {duringScriptTask} True
task_go_straight_to_coord -1 {x} 387@(338@,10f) {y} 397@(338@,10f) {z} 407@(338@,10f) {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 417@(338@,10f) {y} 427@(338@,10f) {z} 437@(338@,10f) {speed} MoveState.Run {time} -2
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_40703
task_goto_char -1 {target} $ryder {time} 20000 {radius} 25.0

:RYDER2_40703
close_sequence_task 48@
perform_sequence_task 340@(345@,5i) {sequence} 48@
clear_sequence_task 48@
set_lvar_int_to_lvar_int 337@ = 338@
336@ += -1
339@ = 0
goto @RYDER2_40754

:RYDER2_40754
goto @RYDER2_40768

:RYDER2_40761
339@ = 0

:RYDER2_40768
return 
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @RYDER2_40841
477@ += 1
if 
  477@ > 24
goto_if_false @RYDER2_40817
477@ = 0

:RYDER2_40817
write_debug_with_int "ADJUST_BOX_NUMBER" {number} 477@

:RYDER2_40841
if 
  does_object_exist 62@(477@,25i)
goto_if_false @RYDER2_40938
$x, $y, $z = get_object_coordinates 62@(477@,25i)
$heading = get_object_heading 62@(477@,25i)
$z += 1.0
draw_corona $x {y} $y {z} $z {size} 0.2 {coronaType} CoronaType.Moon {flareType} FlareType.None {r} 255 {g} 0 {b} 0
$z += -1.0

:RYDER2_40938
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @RYDER2_40964
$y += 0.1

:RYDER2_40964
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @RYDER2_40990
$y += -0.1

:RYDER2_40990
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @RYDER2_41016
$x += 0.1

:RYDER2_41016
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @RYDER2_41042
$x += -0.1

:RYDER2_41042
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @RYDER2_41068
$z += 0.01

:RYDER2_41068
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @RYDER2_41094
$z += -0.01

:RYDER2_41094
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @RYDER2_41120
$heading += 1.0

:RYDER2_41120
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @RYDER2_41146
$heading += -1.0

:RYDER2_41146
if 
  does_object_exist 62@(477@,25i)
goto_if_false @RYDER2_41196
set_object_coordinates 62@(477@,25i) {x} $x {y} $y {z} $z
set_object_heading 62@(477@,25i) {heading} $heading

:RYDER2_41196
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @RYDER2_41369
save_newline_to_debug_file 
save_string_to_debug_file "BOX COORDS = "
save_int_to_debug_file 477@
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:RYDER2_41369
return 

:RYDER2_41371
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RYDER2_41389
clear_wanted_level $player1
register_mission_passed 'RYDER_2'
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
if 
  $flag_returned_tags == 0
goto_if_false @RYDER2_41468
set_gang_weapons GangType.Grove {weaponType1} WeaponType.Pistol {weaponType2} WeaponType.Tec9 {weaponType3} WeaponType.Unarmed

:RYDER2_41468
remove_blip $ryder_contact_blip
set_int_stat StatId.PassedRyder2 {value} 1
$flag_ryder_mission_counter += 1
return 

:RYDER2_41489
if 
  is_player_playing $player1
goto_if_false @RYDER2_41512
set_player_group_to_follow_always $player1 {state} False

:RYDER2_41512
if 
  not is_car_dead 95@
goto_if_false @RYDER2_41542
freeze_car_position 95@ {state} False
set_vehicle_is_considered_by_player 95@ {state} True

:RYDER2_41542
set_player_in_car_camera_mode 2
if 
  not is_car_dead 98@
goto_if_false @RYDER2_41567
mark_car_as_no_longer_needed 98@

:RYDER2_41567
if 
  124@ == 1
goto_if_false @RYDER2_41767
42@ = 0

:RYDER2_41592
if 
  9 > 42@
goto_if_false @RYDER2_41676
if 
  does_char_exist 102@(42@,9i)
goto_if_false @RYDER2_41662
if 
  not is_char_dead 102@(42@,9i)
goto_if_false @RYDER2_41662
task_kill_char_on_foot 102@(42@,9i) {target} $scplayer

:RYDER2_41662
42@ += 1
goto @RYDER2_41592

:RYDER2_41676
42@ = 0

:RYDER2_41683
if 
  5 > 42@
goto_if_false @RYDER2_41767
if 
  does_char_exist 340@(42@,5i)
goto_if_false @RYDER2_41753
if 
  not is_char_dead 340@(42@,5i)
goto_if_false @RYDER2_41753
task_kill_char_on_foot 340@(42@,5i) {target} $scplayer

:RYDER2_41753
42@ += 1
goto @RYDER2_41683

:RYDER2_41767
if 
  not is_char_dead $ryder
goto_if_false @RYDER2_41788
remove_char_elegantly $ryder

:RYDER2_41788
mark_object_as_no_longer_needed 240@
mark_object_as_no_longer_needed 241@
mark_object_as_no_longer_needed 257@
mark_object_as_no_longer_needed 258@
mark_object_as_no_longer_needed 259@
42@ = 0

:RYDER2_41820
if 
  25 > 42@
goto_if_false @RYDER2_41903
mark_object_as_no_longer_needed 62@(42@,25i)
if 
  210@(42@,25i) <> 0
goto_if_false @RYDER2_41889
remove_pickup 210@(42@,25i)
210@(42@,25i) = 0

:RYDER2_41889
42@ += 1
goto @RYDER2_41820

:RYDER2_41903
42@ = 0

:RYDER2_41910
if 
  5 > 42@
goto_if_false @RYDER2_41942
42@ += 1
goto @RYDER2_41910

:RYDER2_41942
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
42@ = 0

:RYDER2_41974
if 
  5 > 42@
goto_if_false @RYDER2_42035
if 
  does_object_exist 308@(42@,5i)
goto_if_false @RYDER2_42021
delete_object 308@(42@,5i)

:RYDER2_42021
42@ += 1
goto @RYDER2_41974

:RYDER2_42035
if 
  does_object_exist 313@
goto_if_false @RYDER2_42056
delete_object 313@

:RYDER2_42056
if 
  does_object_exist 93@
goto_if_false @RYDER2_42077
delete_object 93@

:RYDER2_42077
if 
  does_vehicle_exist 95@
goto_if_false @RYDER2_42123
if 
  not is_car_dead 95@
goto_if_false @RYDER2_42123
freeze_car_position 95@ {state} False
set_car_collision 95@ {state} True

:RYDER2_42123
switch_emergency_services True
remove_decision_maker 237@
remove_decision_maker 236@
remove_decision_maker 235@
remove_decision_maker 238@
dont_suppress_car_model 414
clear_onscreen_counter $loaded_boxes_neg
clear_onscreen_counter $ryder_health
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 500
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #CJ_CARDBRD_PICKUP
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 106
remove_animation "RYDER"
remove_animation "COLT45"
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
$onmission = 0
mission_has_finished 
return 

//-------------Mission 27---------------
// Originally: OG Loc

:TWAR7
script_name 'TWAR7'
gosub @TWAR7_47
if 
  has_deatharrest_been_executed 
goto_if_false @TWAR7_38
gosub @TWAR7_23165

:TWAR7_38
gosub @TWAR7_23270
terminate_this_script 

:TWAR7_47
$onmission = 1
register_mission_given 
load_mission_text 'SMOKE1'
if 
  $onmission == 0
goto_if_false @TWAR7_130
$mc_strap = create_char PedType.Mission2 {modelId} 292 {x} 1543.2 {y} -1687.0 {z} 12.5
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7

:TWAR7_130
clear_prints 
wait 0
67@ = 0
68@ = 0
69@ = 0
70@ = 0
85@ = 0
71@ = 0
72@ = 0
73@ = 0
79@ = 0
80@ = 0
133@ = 0.0
134@ = 0.0
135@ = 0.0
136@ = 0.0
137@ = 0.0
138@ = 0.0
139@ = 0.0
140@ = 0.0
83@ = 0
84@ = 0
85@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
141@ = 0.0
142@ = 0.0
143@ = 0.0
144@ = 0.0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
81@ = 0
82@ = 0.0
make_player_gang_disappear 
clear_area 2072.3 {y} -1695.2 {z} 12.5 {radius} 80.0 {clearParticles} True
65@ = create_object #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 12.5
load_cutscene 'SMOKE1A'

:TWAR7_515
if 
  not has_cutscene_loaded 
goto_if_false @TWAR7_539
wait 0
goto @TWAR7_515

:TWAR7_539
start_cutscene 
do_fade 1000 {direction} Fade.In

:TWAR7_548
if 
  not has_cutscene_finished 
goto_if_false @TWAR7_572
wait 0
goto @TWAR7_548

:TWAR7_572
do_fade 0 {direction} Fade.Out

:TWAR7_578
if 
  get_fading_status 
goto_if_false @TWAR7_602
wait 0
goto @TWAR7_578

:TWAR7_602
clear_cutscene 
delete_object 65@
make_player_gang_reappear 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 466
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
make_player_gang_disappear 
set_fixed_camera_position 2073.8701 {y} -1682.701 {z} 14.1963 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2073.698 {y} -1683.686 {z} 14.1768 {switchStyle} SwitchType.JumpCut
148@ = load_char_decision_maker DecisionMakerType.Tough
149@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
146@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 146@ {event} Event.LeaderEnteredCarAsDriver
add_group_decision_maker_event_response 146@ {event} Event.LeaderEnteredCarAsDriver {taskId} TaskId.GroupEnterCarAndPerformSequence {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
clear_group_decision_maker_event_response 146@ {event} Event.AcquaintancePedHate
add_group_decision_maker_event_response 146@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupUseMemberDecision {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
clear_group_decision_maker_event_response 146@ {event} Event.PlayerCommandToGroup
clear_group_decision_maker_event_response 146@ {event} Event.Damage
set_group_decision_maker $Players_Group {handleOrTemplate} 146@
clear_area 2075.0 {y} -1688.5 {z} 12.29 {radius} 10.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
37@ = create_car 466 {x} 2075.0 {y} -1688.5 {z} 12.29
set_car_heading 37@ {heading} 359.74
change_car_colour 37@ {color1} 98 {color2} 14
set_can_respray_car 37@ {changeColors} False
set_radio_channel RadioChannel.BounceFM
clear_area 2077.0 {y} -1691.1 {z} 12.5 {radius} 1.0 {clearParticles} True
$big_smoke = create_char PedType.Mission2 {modelId} 290 {x} 2077.0 {y} -1691.1 {z} 12.5
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_heading $big_smoke {heading} 255.7
set_char_never_targetted $big_smoke {state} True
set_char_cant_be_dragged_out $big_smoke {state} True
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $big_smoke {vehicle} 37@ {time} -2 {seat} SeatId.BikeRear
set_char_decision_maker $big_smoke {handleOrTemplate} 149@
clear_area 2075.3 {y} -1693.4 {z} 12.5 {radius} 1.0 {clearParticles} True
$sweet = create_char PedType.Mission2 {modelId} 291 {x} 2075.3 {y} -1693.4 {z} 12.5
set_char_get_out_upside_down_car $sweet {state} False
set_char_never_targetted $sweet {state} True
set_char_cant_be_dragged_out $sweet {state} True
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $sweet {vehicle} 37@ {time} -2 {seat} SeatId.RearRight
set_char_decision_maker $sweet {handleOrTemplate} 149@
clear_char_tasks_immediately $scplayer
clear_area 2072.8999 {y} -1690.6 {z} 12.5 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2072.8999 {y} -1690.6 {z} 12.5
set_char_heading $scplayer {heading} 33.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} 37@ {time} -2
switch_random_trains False
delete_all_trains 
enable_ambient_crime False
switch_entry_exit 'LAHS1A' {state} False
do_fade 500 {direction} Fade.In
69@ = 1
skip_cutscene_start_internal @TWAR7_1756

:TWAR7_1306
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @TWAR7_1332
goto @TWAR7_23183

:TWAR7_1332
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1364
goto @TWAR7_23165

:TWAR7_1364
if or
  67@ == 0
  67@ == 1
goto_if_false @TWAR7_1674
if 
  81@ == 1
goto_if_false @TWAR7_1674
if 
  is_skip_waiting_for_script_to_fade_in 
goto_if_false @TWAR7_1674
set_player_control $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $sweet {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_1598
request_animation "CAR_CHAT"
load_special_character 3 {modelName} 'OGLOC'
load_all_models_now 
$mc_strap = create_char PedType.Mission2 {modelId} 292 {x} 1543.2 {y} -1687.0 {z} 12.5
set_char_get_out_upside_down_car $mc_strap {state} False
set_char_heading $mc_strap {heading} 97.2
set_char_never_targetted $mc_strap {state} True
set_char_cant_be_dragged_out $mc_strap {state} True
set_char_suffers_critical_hits $mc_strap {state} False
set_char_only_damaged_by_player $mc_strap {state} True
warp_char_into_car_as_passenger $mc_strap {handle} 37@ {seat} -1
set_sense_range $mc_strap {range} 80.0

:TWAR7_1598
remove_blip 66@
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7
print_now 'SMK1_10' {time} 7000 {flag} 1
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In
85@ = 2
68@ = 2
67@ = 1

:TWAR7_1674
if 
  67@ == 0
goto_if_false @TWAR7_2248
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_2248
if 
  is_char_in_car $big_smoke {vehicle} 37@
goto_if_false @TWAR7_2248
if 
  is_char_in_car $sweet {vehicle} 37@
goto_if_false @TWAR7_2248
69@ = 0

:TWAR7_1756
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1790
goto @TWAR7_23165

:TWAR7_1790
if 
  69@ == 1
goto_if_false @TWAR7_1914
do_fade 500 {direction} Fade.Out

:TWAR7_1815
if 
  get_fading_status 
goto_if_false @TWAR7_1839
wait 0
goto @TWAR7_1815

:TWAR7_1839
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_1871
goto @TWAR7_23165

:TWAR7_1871
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 37@
clear_char_tasks_immediately $big_smoke
warp_char_into_car_as_passenger $big_smoke {handle} 37@ {seat} SeatId.BikeRear
clear_char_tasks_immediately $sweet
warp_char_into_car_as_passenger $sweet {handle} 37@ {seat} SeatId.RearRight

:TWAR7_1914
if 
  $tw7_trip_skip_flag == 1
goto_if_false @TWAR7_2009
set_up_skip_for_specific_vehicle 1526.9 {y} -1654.5 {z} 12.1 {heading} 180.0 {handle} 37@
if 
  $2705 == 0
goto_if_false @TWAR7_1993
print_help 'SKIP_1'
$2705 = 1

:TWAR7_1993
print_now 'SMK1_02' {time} 7000 {flag} 1

:TWAR7_2009
if 
  $tw7_trip_skip_flag == 2
goto_if_false @TWAR7_2095
set_up_skip_for_vehicle_finished_by_script 2453.8 {y} -1305.0 {z} 22.5 {heading} 0.0 {vehicle} 37@
if 
  $2705 == 0
goto_if_false @TWAR7_2088
print_help 'SKIP_1'
$2705 = 1

:TWAR7_2088
81@ = 1

:TWAR7_2095
66@ = add_blip_for_coord 1532.8 {y} -1672.9 {z} 12.4
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  69@ == 1
goto_if_false @TWAR7_2220
do_fade 500 {direction} Fade.In

:TWAR7_2164
if 
  get_fading_status 
goto_if_false @TWAR7_2188
wait 0
goto @TWAR7_2164

:TWAR7_2188
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_2220
goto @TWAR7_23165

:TWAR7_2220
TIMERB = 0
68@ = 0
71@ = 1
67@ = 1

:TWAR7_2248
if 
  67@ == 1
goto_if_false @TWAR7_4048
if 
  68@ == 0
goto_if_false @TWAR7_2624
if 
  83@ == 0
goto_if_false @TWAR7_2388
if 
  85@ == 0
goto_if_false @TWAR7_2388
if 
  TIMERB > 7000
goto_if_false @TWAR7_2388
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $sweet {state} True
83@ = 1
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_2388
if 
  85@ == 1
goto_if_false @TWAR7_2452
if 
  83@ == 0
goto_if_false @TWAR7_2452
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
85@ = 2

:TWAR7_2452
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_2503
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @TWAR7_2503
set_char_coordinates $scplayer {x} 1531.4 {y} -1693.7 {z} 12.4

:TWAR7_2503
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_2624
if 
  is_char_in_car $big_smoke {vehicle} 37@
goto_if_false @TWAR7_2624
if 
  is_char_in_car $sweet {vehicle} 37@
goto_if_false @TWAR7_2624
if 
  locate_char_in_car_3d $scplayer {x} 1532.8 {y} -1672.9 {z} 12.4 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TWAR7_2624
clear_help 
set_player_control $player1 {state} False
68@ = 1

:TWAR7_2624
if 
  68@ == 1
goto_if_false @TWAR7_3598
set_player_control $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
if 
  $tw7_trip_skip_flag == 0
goto_if_false @TWAR7_2712
$tw7_trip_skip_flag = 1

:TWAR7_2712
clear_skip 
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:TWAR7_2729
if 
  get_fading_status 
goto_if_false @TWAR7_2753
wait 0
goto @TWAR7_2729

:TWAR7_2753
make_player_safe_for_cutscene $player1
switch_streaming False
clear_area 1532.8 {y} -1672.9 {z} 12.4 {radius} 300.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1496.5 {y} -1672.6 {z} 13.2
delete_char $big_smoke
delete_char $sweet
delete_car 37@
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 466
load_texture_dictionary 'LD_BUM'
load_sprite 1 {spriteName} "BUM2"
load_sprite 2 {spriteName} "BLKDOT"
load_all_models_now 
use_text_commands True
load_cutscene 'SMOKE1B'

:TWAR7_2903
if 
  not has_cutscene_loaded 
goto_if_false @TWAR7_2927
wait 0
goto @TWAR7_2903

:TWAR7_2927
start_cutscene 
do_fade 1000 {direction} Fade.In
TIMERA = 0

:TWAR7_2943
if 
  not has_cutscene_finished 
goto_if_false @TWAR7_2967
wait 0
goto @TWAR7_2943

:TWAR7_2967
clear_cutscene 
do_fade 0 {direction} Fade.Out

:TWAR7_2975
if 
  get_fading_status 
goto_if_false @TWAR7_2999
wait 0
goto @TWAR7_2975

:TWAR7_2999
use_text_commands False
remove_texture_dictionary 
request_model 466
request_animation "CAR_CHAT"
load_special_character 1 {modelName} 'SMOKE'
load_special_character 2 {modelName} 'SWEET'
load_special_character 3 {modelName} 'OGLOC'
load_all_models_now 
custom_plate_for_next_car 466 {text} "_A2TMFK_"
37@ = create_car 466 {x} 1532.8 {y} -1672.9 {z} 12.4
set_car_heading 37@ {heading} 184.0
change_car_colour 37@ {color1} 98 {color2} 14
set_can_respray_car 37@ {changeColors} False
warp_char_into_car $scplayer {vehicle} 37@
set_radio_channel RadioChannel.BounceFM
$big_smoke = create_char PedType.Mission2 {modelId} 290 {x} 2072.3 {y} -1697.2 {z} 12.5
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_heading $big_smoke {heading} 255.7
set_char_never_targetted $big_smoke {state} True
set_char_cant_be_dragged_out $big_smoke {state} True
set_anim_group_for_char $big_smoke {animGroup} "FATMAN"
task_enter_car_as_passenger $big_smoke {vehicle} 37@ {time} -2 {seat} SeatId.BikeRear
set_char_decision_maker $big_smoke {handleOrTemplate} 149@
warp_char_into_car_as_passenger $big_smoke {handle} 37@ {seat} -1
$sweet = create_char PedType.Mission2 {modelId} 291 {x} 2072.3 {y} -1696.2 {z} 12.5
set_char_get_out_upside_down_car $sweet {state} False
set_char_never_targetted $sweet {state} True
set_char_cant_be_dragged_out $sweet {state} True
set_anim_group_for_char $sweet {animGroup} "GANG2"
task_enter_car_as_passenger $sweet {vehicle} 37@ {time} -2 {seat} SeatId.RearRight
set_char_decision_maker $sweet {handleOrTemplate} 149@
warp_char_into_car_as_passenger $sweet {handle} 37@ {seat} -1
$mc_strap = create_char PedType.Mission2 {modelId} 292 {x} 1543.2 {y} -1687.0 {z} 12.5
set_char_get_out_upside_down_car $mc_strap {state} False
set_char_heading $mc_strap {heading} 97.2
set_char_never_targetted $mc_strap {state} True
set_char_cant_be_dragged_out $mc_strap {state} True
set_char_suffers_critical_hits $mc_strap {state} False
set_char_only_damaged_by_player $mc_strap {state} True
warp_char_into_car_as_passenger $mc_strap {handle} 37@ {seat} -1
set_sense_range $mc_strap {range} 80.0
clear_char_decision_maker_event_response 148@ {event} Event.VehicleOnFire
clear_char_decision_maker_event_response 148@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 148@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_char_decision_maker $mc_strap {handleOrTemplate} 148@
remove_blip 66@
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_3554
goto @TWAR7_23165

:TWAR7_3554
do_fade 1000 {direction} Fade.In
print_now 'SMK1_10' {time} 7000 {flag} 1
TIMERB = 0
85@ = 0
68@ = 2

:TWAR7_3598
if 
  68@ == 2
goto_if_false @TWAR7_4048
if 
  83@ == 0
goto_if_false @TWAR7_3727
if 
  85@ == 0
goto_if_false @TWAR7_3727
if 
  TIMERB > 7000
goto_if_false @TWAR7_3727
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $sweet {state} True
shut_char_up_for_scripted_speech $mc_strap {state} True
83@ = 2
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_3727
if 
  85@ == 1
goto_if_false @TWAR7_3798
if 
  83@ == 0
goto_if_false @TWAR7_3798
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
shut_char_up_for_scripted_speech $mc_strap {state} False
85@ = 2

:TWAR7_3798
if 
  is_char_in_any_car $mc_strap
goto_if_false @TWAR7_3897
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_3897
if 
  is_char_in_any_car $big_smoke
goto_if_false @TWAR7_3897
if 
  is_char_in_any_car $sweet
goto_if_false @TWAR7_3897
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @TWAR7_3897
set_char_coordinates $scplayer {x} 2454.7 {y} -1294.5 {z} 22.7

:TWAR7_3897
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_4048
if 
  is_char_in_car $big_smoke {vehicle} 37@
goto_if_false @TWAR7_4048
if 
  is_char_in_car $sweet {vehicle} 37@
goto_if_false @TWAR7_4048
if 
  locate_char_in_car_3d $scplayer {x} 2454.3999 {y} -1284.5 {z} 22.7 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TWAR7_4048
if 
  $tw7_trip_skip_flag == 1
goto_if_false @TWAR7_4027
$tw7_trip_skip_flag = 2

:TWAR7_4027
85@ = 0
68@ = 0
67@ = 2

:TWAR7_4048
if 
  67@ == 2
goto_if_false @TWAR7_5665
if 
  68@ == 0
goto_if_false @TWAR7_4312
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 2451.2 {y} -1295.1 {z} 24.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2459.7 {y} -1284.6 {z} 26.5 {switchStyle} SwitchType.JumpCut
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $big_smoke {state} False
shut_char_up_for_scripted_speech $sweet {state} False
shut_char_up_for_scripted_speech $mc_strap {state} False
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
69@ = 1
skip_cutscene_start_internal @TWAR7_4925
task_play_anim $mc_strap {animationName} "CAR_SC1_BR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
83@ = 3
84@ = 0
gosub @TWAR7_29790
TIMERA = 0
68@ = 1

:TWAR7_4312
if 
  68@ == 1
goto_if_false @TWAR7_4439
if 
  84@ == 1
goto_if_false @TWAR7_4439
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim $sweet {animationName} "CAR_SC1_BL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 2

:TWAR7_4439
if 
  68@ == 2
goto_if_false @TWAR7_4524
if 
  84@ == 4
goto_if_false @TWAR7_4524
task_play_anim $big_smoke {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 3

:TWAR7_4524
if 
  68@ == 3
goto_if_false @TWAR7_4711
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
if 
  83@ == 0
goto_if_false @TWAR7_4711
if 
  is_car_stopped 37@
goto_if_false @TWAR7_4711
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2457.3999 {y} -1286.1 {z} 23.0 {speed} MoveState.Run {time} 60000
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2458.3999 {y} -1287.8 {z} 23.0 {speed} MoveState.Run {time} 60000
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
68@ = 4

:TWAR7_4711
if 
  68@ == 4
goto_if_false @TWAR7_4860
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_4860
if 
  is_char_in_any_car $big_smoke
goto_if_false @TWAR7_4816
warp_char_from_car_to_coord $big_smoke {x} 2472.8 {y} -1277.9 {z} 28.9

:TWAR7_4816
warp_char_into_car $big_smoke {vehicle} 37@
lock_car_doors 37@ {lockStatus} CarLock.Locked
task_car_drive_wander $big_smoke {vehicle} 37@ {speed} 15.0 {drivingMode} DrivingMode.AvoidCars
TIMERA = 0
68@ = 5

:TWAR7_4860
if 
  68@ == 5
goto_if_false @TWAR7_5665
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
if 
  TIMERA > 0
goto_if_false @TWAR7_5665
69@ = 0

:TWAR7_4925
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_4959
goto @TWAR7_23165

:TWAR7_4959
if 
  69@ == 1
goto_if_false @TWAR7_5339
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
do_fade 500 {direction} Fade.Out

:TWAR7_5001
if 
  get_fading_status 
goto_if_false @TWAR7_5069
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
wait 0
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
goto @TWAR7_5001

:TWAR7_5069
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5101
goto @TWAR7_23165

:TWAR7_5101
clear_area 2457.3999 {y} -1286.1 {z} 23.0 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2457.3999 {y} -1286.1 {z} 23.0
set_char_heading $scplayer {heading} 230.2
clear_area 2458.3999 {y} -1287.8 {z} 23.0 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $mc_strap
set_char_coordinates $mc_strap {x} 2458.3999 {y} -1287.8 {z} 23.0
set_char_heading $mc_strap {heading} 230.2
clear_area 2452.3999 {y} -1267.6 {z} 23.8 {radius} 5.0 {clearParticles} True
set_car_coordinates 37@ {x} 2452.3999 {y} -1267.6 {z} 23.8
set_car_heading 37@ {heading} 0.0
if 
  is_char_in_any_car $big_smoke
goto_if_false @TWAR7_5309
warp_char_from_car_to_coord $big_smoke {x} 2472.8 {y} -1277.9 {z} 28.9

:TWAR7_5309
warp_char_into_car $big_smoke {vehicle} 37@
lock_car_doors 37@ {lockStatus} CarLock.Locked
task_car_drive_wander $big_smoke {vehicle} 37@ {speed} 15.0 {drivingMode} DrivingMode.AvoidCars

:TWAR7_5339
145@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2463.5 {y} -1286.9 {z} 25.2 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2463.8999 {y} -1278.4 {z} 29.0 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2467.8 {y} -1277.1 {z} 28.9 {speed} MoveState.Run {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
remove_animation "CAR_CHAT"
remove_blip 66@
66@ = add_blip_for_coord 2468.8 {y} -1278.4 {z} 28.9
set_blip_as_friendly 66@ {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
make_player_gang_reappear 
switch_widescreen False
shut_all_chars_up False
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_now 'SMK1_03' {time} 7000 {flag} 1
if 
  69@ == 1
goto_if_false @TWAR7_5651
do_fade 500 {direction} Fade.In

:TWAR7_5551
if 
  get_fading_status 
goto_if_false @TWAR7_5619
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
wait 0
draw_sphere 2468.8 {y} -1278.2 {z} 29.1 {diameter} 1.2
goto @TWAR7_5551

:TWAR7_5619
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5651
goto @TWAR7_23165

:TWAR7_5651
68@ = 0
67@ = 3

:TWAR7_5665
if 
  67@ == 3
goto_if_false @TWAR7_8884
if 
  68@ == 0
goto_if_false @TWAR7_5756
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 2468.8 {y} -1278.2 {z} 29.1 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @TWAR7_5756
68@ = 1

:TWAR7_5756
if 
  68@ == 1
goto_if_false @TWAR7_6760
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
83@ = 0
do_fade 500 {direction} Fade.Out

:TWAR7_5802
if 
  get_fading_status 
goto_if_false @TWAR7_5826
wait 0
goto @TWAR7_5802

:TWAR7_5826
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_5858
goto @TWAR7_23165

:TWAR7_5858
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
request_model 461
request_model 372
request_model 109
request_model 352
request_animation "CRIB"
request_animation "MISC"
request_animation "GANGS"
request_animation "RAPPING"
load_texture_dictionary 'LD_BUM'
load_sprite 1 {spriteName} "BUM1"
load_sprite 2 {spriteName} "BLKDOT"
load_all_models_now 
use_text_commands True
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1817

:TWAR7_5983
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @TWAR7_6009
wait 0
goto @TWAR7_5983

:TWAR7_6009
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_6041
goto @TWAR7_23165

:TWAR7_6041
load_all_models_now 
clear_area 2471.0 {y} -1285.1 {z} 28.3 {radius} 30.0 {clearParticles} True
36@ = create_car 461 {x} 2471.0 {y} -1285.1 {z} 28.3
set_car_heading 36@ {heading} 272.5
set_can_burst_car_tyres 36@ {state} False
clear_area 2488.2 {y} -1279.9 {z} 30.0 {radius} 30.0 {clearParticles} True
35@ = create_car 461 {x} 2488.2 {y} -1279.9 {z} 30.0
set_car_only_damaged_by_player 35@ {state} True
set_car_heading 35@ {heading} 286.4
set_car_always_create_skids 35@ {state} True
set_can_burst_car_tyres 35@ {state} False
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_area 2483.8999 {y} -1280.2 {z} 29.4 {radius} 30.0 {clearParticles} True
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2483.8999 {y} -1280.2 {z} 29.4
shut_char_up_for_scripted_speech 34@ {state} True
set_char_money 34@ {amount} 500
set_char_heading 34@ {heading} 261.6
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_suffers_critical_hits 34@ {state} False
set_char_only_damaged_by_player 34@ {state} True
set_char_can_be_knocked_off_bike 34@ {stayOnBike} True
set_char_stay_in_same_place 34@ {state} True
set_char_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} True
set_char_shoot_rate 34@ {rate} 20
set_char_decision_maker 34@ {handleOrTemplate} 149@
147@ = open_sequence_task 
task_drive_by -1 {targetChar} 34@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100
close_sequence_task 147@
set_group_sequence $Players_Group {sequence} 147@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $mc_strap
clear_area 2468.0 {y} -1278.5 {z} 29.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2468.0 {y} -1278.5 {z} 29.1
set_char_heading $scplayer {heading} 269.4
clear_area 2467.3999 {y} -1275.8 {z} 28.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 2467.3999 {y} -1275.8 {z} 28.8
set_char_heading $mc_strap {heading} 282.8
145@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2469.2 {y} -1278.7 {z} 29.3 {speed} MoveState.Walk {time} 60000
task_achieve_heading -1 {heading} 262.0
task_play_anim -1 {animationName} "CRIB_USE_SWITCH" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 800
task_look_at_char -1 {target} $mc_strap {time} 7000
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
69@ = 1
skip_cutscene_start_internal @TWAR7_8172
clear_prints 
set_fixed_camera_position 2461.7 {y} -1273.7 {z} 30.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2470.1001 {y} -1277.1 {z} 30.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:TWAR7_6697
if 
  get_fading_status 
goto_if_false @TWAR7_6721
wait 0
goto @TWAR7_6697

:TWAR7_6721
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_6753
goto @TWAR7_23165

:TWAR7_6753
68@ = 2

:TWAR7_6760
if 
  68@ == 2
goto_if_false @TWAR7_6884
if 
  is_char_playing_anim $scplayer {animationName} "CRIB_USE_SWITCH"
goto_if_false @TWAR7_6884
82@ = get_char_anim_current_time $scplayer {animationName} "CRIB_USE_SWITCH"
if 
  82@ > 0.65
goto_if_false @TWAR7_6884
report_mission_audio_event_at_position 2469.2 {y} -1278.7 {z} 29.3 {soundId} ScriptSound.SoundOglocDoorbell
68@ = 3

:TWAR7_6884
if 
  68@ == 3
goto_if_false @TWAR7_7086
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_7086
145@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 2467.8 {y} -1274.4 {z} 28.8 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2468.6001 {y} -1273.3 {z} 28.8 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 278.7
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
83@ = 4
84@ = 0
130@ = 5
gosub @TWAR7_29790
68@ = 4

:TWAR7_7086
if 
  68@ == 4
goto_if_false @TWAR7_7198
if 
  84@ > 2
goto_if_false @TWAR7_7198
145@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $mc_strap
task_play_anim -1 {animationName} "PLYR_SHKHEAD" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
68@ = 5

:TWAR7_7198
if 
  68@ == 5
goto_if_false @TWAR7_7402
if 
  83@ == 0
goto_if_false @TWAR7_7402
145@ = open_sequence_task 
task_play_anim -1 {animationName} "BNG_WNDW" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
145@ = open_sequence_task 
task_play_anim -1 {animationName} "LAUGH_01" {animationFile} "RAPPING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
83@ = 4
84@ = 5
130@ = 9
gosub @TWAR7_29790
TIMERA = 0
68@ = 6

:TWAR7_7402
if 
  68@ == 6
goto_if_false @TWAR7_7512
if 
  is_char_playing_anim $mc_strap {animationName} "BNG_WNDW"
goto_if_false @TWAR7_7512
82@ = get_char_anim_current_time $mc_strap {animationName} "BNG_WNDW"
if 
  82@ > 0.4
goto_if_false @TWAR7_7512
report_mission_audio_event_at_position 2468.6001 {y} -1273.3 {z} 28.8 {soundId} ScriptSound.SoundOglocWindowRattleBang
68@ = 7

:TWAR7_7512
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8884
if 
  not is_car_dead 35@
goto_if_false @TWAR7_8884
if 
  68@ == 7
goto_if_false @TWAR7_7698
if 
  83@ == 0
goto_if_false @TWAR7_7698
145@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 145@
perform_sequence_task 34@ {sequence} 145@
clear_sequence_task 145@
83@ = 4
84@ = 9
130@ = 10
gosub @TWAR7_29790
set_fixed_camera_position 2495.3999 {y} -1282.3 {z} 32.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2479.2 {y} -1272.5 {z} 30.5 {switchStyle} SwitchType.JumpCut
68@ = 8

:TWAR7_7698
if 
  68@ == 8
goto_if_false @TWAR7_7756
if 
  is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_7756
start_playback_recorded_car 35@ {path} 30
TIMERA = 0
68@ = 9

:TWAR7_7756
if 
  68@ == 9
goto_if_false @TWAR7_8070
if 
  TIMERA > 2000
goto_if_false @TWAR7_8070
if 
  not is_car_dead 36@
goto_if_false @TWAR7_8070
clear_area 2468.3999 {y} -1282.4 {z} 28.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 2468.3999 {y} -1282.4 {z} 28.8
set_char_heading $mc_strap {heading} 171.7
set_next_desired_move_state MoveState.Run
145@ = open_sequence_task 
task_enter_car_as_passenger -1 {vehicle} 36@ {time} -2 {seat} -1
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
clear_area 2467.3999 {y} -1281.2 {z} 28.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2467.3999 {y} -1281.2 {z} 28.8
set_char_heading $scplayer {heading} 171.7
set_next_desired_move_state MoveState.Run
145@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 36@ {time} -2
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
set_fixed_camera_position 2460.8999 {y} -1283.7 {z} 30.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2472.6001 {y} -1284.4 {z} 31.1 {switchStyle} SwitchType.JumpCut
83@ = 5
84@ = 0
gosub @TWAR7_29790
68@ = 10

:TWAR7_8070
if 
  68@ == 10
goto_if_false @TWAR7_8884
if 
  83@ == 0
goto_if_false @TWAR7_8884
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_8884
if 
  not is_car_dead 36@
goto_if_false @TWAR7_8884
if and
  is_char_in_car $scplayer {vehicle} 36@
  is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_8884
69@ = 0

:TWAR7_8172
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8206
goto @TWAR7_23165

:TWAR7_8206
if 
  69@ == 1
goto_if_false @TWAR7_8454
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
83@ = 0
do_fade 500 {direction} Fade.Out

:TWAR7_8252
if 
  get_fading_status 
goto_if_false @TWAR7_8276
wait 0
goto @TWAR7_8252

:TWAR7_8276
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8308
goto @TWAR7_23165

:TWAR7_8308
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8372
if 
  not is_car_dead 35@
goto_if_false @TWAR7_8372
clear_char_tasks 34@
if 
  not is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_8372
warp_char_into_car 34@ {vehicle} 35@

:TWAR7_8372
if 
  not is_car_dead 36@
goto_if_false @TWAR7_8454
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $mc_strap
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_8425
warp_char_into_car $scplayer {vehicle} 36@

:TWAR7_8425
if 
  not is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_8454
task_warp_char_into_car_as_passenger $mc_strap {vehicle} 36@ {seatId} -1

:TWAR7_8454
ensure_player_has_drive_by_weapon $player1 {ammo} 78
give_weapon_to_char $mc_strap {weaponType} WeaponType.Tec9 {ammo} 30000
set_current_char_weapon $mc_strap {weaponType} WeaponType.Tec9
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $mc_strap
72@ = 1
71@ = 1
set_char_relationship $mc_strap {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8596
if 
  not is_car_dead 35@
goto_if_false @TWAR7_8596
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_8566
stop_playback_recorded_car 35@

:TWAR7_8566
set_car_coordinates 35@ {x} 2521.2 {y} -1359.0 {z} 27.3
set_car_heading 35@ {heading} 295.2

:TWAR7_8596
set_camera_behind_player 
restore_camera_jumpcut 
remove_animation "CRIB"
remove_animation "MISC"
remove_animation "GANGS"
remove_animation "RAPPING"
clear_help 
print_now 'SMK1_04' {time} 7000 {flag} 1
remove_blip 66@
if 
  not is_char_dead 34@
goto_if_false @TWAR7_8690
66@ = add_blip_for_char 34@
set_blip_as_friendly 66@ {state} False

:TWAR7_8690
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  69@ == 1
goto_if_false @TWAR7_8797
do_fade 500 {direction} Fade.In

:TWAR7_8741
if 
  get_fading_status 
goto_if_false @TWAR7_8765
wait 0
goto @TWAR7_8741

:TWAR7_8765
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_8797
goto @TWAR7_23165

:TWAR7_8797
use_text_commands False
remove_texture_dictionary 
delete_char $big_smoke
delete_char $sweet
delete_car 37@
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 466
clear_mission_audio MissionAudioSlot.Slot3
if or
  is_car_dead 35@
  is_car_dead 36@
goto_if_false @TWAR7_8863
goto @TWAR7_23165

:TWAR7_8863
85@ = 0
68@ = 0
67@ = 4

:TWAR7_8884
if 
  67@ > 3
goto_if_false @TWAR7_18503
if 
  15 > 67@
goto_if_false @TWAR7_18503
if 
  not is_char_dead 34@
goto_if_false @TWAR7_18369
if 
  not is_car_dead 35@
goto_if_false @TWAR7_18228
if 
  67@ == 4
goto_if_false @TWAR7_9847
if 
  85@ == 0
goto_if_false @TWAR7_9084
if 
  83@ == 0
goto_if_false @TWAR7_9084
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_9084
if 
  not is_char_dead 34@
goto_if_false @TWAR7_9077
83@ = 6
84@ = 0
130@ = 1
gosub @TWAR7_29790

:TWAR7_9077
85@ = 1

:TWAR7_9084
if 
  73@ == 0
goto_if_false @TWAR7_9300
switch_roads_off 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_off 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_off 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
40@ = create_random_char 2579.8 {y} -1348.3 {z} 35.5
task_die 40@
41@ = create_random_char 2578.8 {y} -1348.3 {z} 35.5
set_char_heading 41@ {heading} 260.0
task_play_anim 41@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
73@ = 1

:TWAR7_9300
if 
  73@ == 1
goto_if_false @TWAR7_9395
if 
  locate_car_2d 35@ {x} 2582.6001 {y} -1351.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_9395
switch_roads_on 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
73@ = 2

:TWAR7_9395
if 
  73@ == 2
goto_if_false @TWAR7_9490
if 
  locate_car_2d 35@ {x} 2653.0 {y} -1329.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_9490
switch_roads_on 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
73@ = 3

:TWAR7_9490
if 
  73@ == 3
goto_if_false @TWAR7_9585
if 
  locate_car_2d 35@ {x} 2748.3 {y} -1320.3 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_9585
switch_roads_on 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
73@ = 4

:TWAR7_9585
if 
  68@ == 0
goto_if_false @TWAR7_9668
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @TWAR7_9668
start_playback_recorded_car 35@ {path} 31
remove_car_recording 30
68@ = 1

:TWAR7_9668
if 
  68@ == 1
goto_if_false @TWAR7_9833
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_9833
switch_roads_on 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_on 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_on 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
68@ = 0
73@ = 0
67@ = 5

:TWAR7_9833
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_9847
if 
  67@ == 5
goto_if_false @TWAR7_10859
if 
  85@ == 0
goto_if_false @TWAR7_9986
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_9961
if 
  not is_char_dead 34@
goto_if_false @TWAR7_9954
83@ = 6
84@ = 1
130@ = 2
gosub @TWAR7_29790

:TWAR7_9954
85@ = 1

:TWAR7_9961
if 
  68@ == 1
goto_if_false @TWAR7_9986
85@ = 1

:TWAR7_9986
if 
  73@ == 0
goto_if_false @TWAR7_10171
switch_roads_off 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_off 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_off 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_off 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_off 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
73@ = 1

:TWAR7_10171
if 
  73@ == 1
goto_if_false @TWAR7_10298
if 
  locate_car_2d 35@ {x} 2712.7 {y} -1265.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_10298
switch_roads_on 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_on 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
73@ = 2

:TWAR7_10298
if 
  73@ == 2
goto_if_false @TWAR7_10457
if 
  locate_car_2d 35@ {x} 2630.5 {y} -1248.3 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_10457
switch_roads_on 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_on 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_on 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
73@ = 3

:TWAR7_10457
if 
  68@ == 0
goto_if_false @TWAR7_10606
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_10606
if 
  not is_char_dead 34@
goto_if_false @TWAR7_10561
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:TWAR7_10561
if 
  not is_car_dead 35@
goto_if_false @TWAR7_10592
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:TWAR7_10592
start_playback_recorded_car 35@ {path} 32
68@ = 1

:TWAR7_10606
if 
  68@ == 1
goto_if_false @TWAR7_10845
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_10845
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 40@
switch_roads_on 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_on 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_on 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_on 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_on 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 6

:TWAR7_10845
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_10859
if 
  67@ == 6
goto_if_false @TWAR7_11888
if 
  85@ == 0
goto_if_false @TWAR7_11025
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @TWAR7_11000
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_10993
83@ = 6
84@ = 2
130@ = 3
gosub @TWAR7_29790

:TWAR7_10993
85@ = 1

:TWAR7_11000
if 
  68@ == 1
goto_if_false @TWAR7_11025
85@ = 1

:TWAR7_11025
if 
  73@ == 0
goto_if_false @TWAR7_11210
switch_roads_off 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.0
switch_roads_off 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_off 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_off 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
switch_roads_off 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
73@ = 1

:TWAR7_11210
if 
  73@ == 1
goto_if_false @TWAR7_11305
if 
  locate_car_2d 35@ {x} 2563.2 {y} -1191.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11305
switch_roads_on 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
73@ = 2

:TWAR7_11305
if 
  73@ == 2
goto_if_false @TWAR7_11400
if 
  locate_car_2d 35@ {x} 2442.3999 {y} -1191.4 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11400
switch_roads_on 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
73@ = 3

:TWAR7_11400
if 
  73@ == 3
goto_if_false @TWAR7_11495
if 
  locate_car_2d 35@ {x} 2360.1001 {y} -1164.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11495
switch_roads_on 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
73@ = 4

:TWAR7_11495
if 
  73@ == 4
goto_if_false @TWAR7_11590
if 
  locate_car_2d 35@ {x} 2315.0 {y} -1145.9 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_11590
switch_roads_on 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
73@ = 5

:TWAR7_11590
if 
  68@ == 0
goto_if_false @TWAR7_11677
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_11677
start_playback_recorded_car 35@ {path} 33
68@ = 1

:TWAR7_11677
if 
  68@ == 1
goto_if_false @TWAR7_11874
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_11874
switch_roads_on 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
switch_roads_on 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_on 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_on 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 7

:TWAR7_11874
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_11888
if 
  67@ == 7
goto_if_false @TWAR7_12388
if 
  85@ == 0
goto_if_false @TWAR7_12034
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_12009
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_12002
83@ = 6
84@ = 3
130@ = 4
gosub @TWAR7_29790

:TWAR7_12002
85@ = 1

:TWAR7_12009
if 
  68@ == 1
goto_if_false @TWAR7_12034
85@ = 1

:TWAR7_12034
if 
  73@ == 0
goto_if_false @TWAR7_12091
switch_roads_off 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
73@ = 1

:TWAR7_12091
if 
  73@ == 1
goto_if_false @TWAR7_12186
if 
  locate_car_2d 35@ {x} 2149.8 {y} -996.1 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_12186
switch_roads_on 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
73@ = 2

:TWAR7_12186
if 
  68@ == 0
goto_if_false @TWAR7_12273
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_12273
start_playback_recorded_car 35@ {path} 34
68@ = 1

:TWAR7_12273
if 
  68@ == 1
goto_if_false @TWAR7_12374
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_12374
switch_roads_on 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
TIMERA = 0
85@ = 0
73@ = 0
68@ = 0
67@ = 8

:TWAR7_12374
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_12388
if 
  67@ == 8
goto_if_false @TWAR7_13968
if 
  85@ == 0
goto_if_false @TWAR7_12527
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_12502
if 
  not is_char_dead 34@
goto_if_false @TWAR7_12495
83@ = 6
84@ = 4
130@ = 5
gosub @TWAR7_29790

:TWAR7_12495
85@ = 1

:TWAR7_12502
if 
  68@ == 1
goto_if_false @TWAR7_12527
85@ = 1

:TWAR7_12527
if 
  73@ == 0
goto_if_false @TWAR7_12584
switch_roads_off 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1600.0 {rightTopY} -1521.7 {rightTopZ} 100.0
73@ = 1

:TWAR7_12584
if 
  73@ == 1
goto_if_false @TWAR7_12679
if 
  locate_car_2d 35@ {x} 1819.4 {y} -1034.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_12679
switch_roads_on 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
73@ = 2

:TWAR7_12679
if 
  73@ == 2
goto_if_false @TWAR7_12774
if 
  locate_car_2d 35@ {x} 1755.3 {y} -1489.1 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_12774
switch_roads_on 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
73@ = 3

:TWAR7_12774
if 
  68@ == 0
goto_if_false @TWAR7_13714
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_13714
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
42@ = create_car 410 {x} 1688.5 {y} -1111.7 {z} 58.5
52@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_car_heading 42@ {heading} 322.3
start_playback_recorded_car 42@ {path} 50
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
43@ = create_car 410 {x} 1679.7 {y} -1131.6 {z} 59.7
53@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_car_heading 43@ {heading} 321.2
start_playback_recorded_car 43@ {path} 51
44@ = create_car 461 {x} 1644.8 {y} -1177.5 {z} 54.3
54@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_car_heading 44@ {heading} 320.8
start_playback_recorded_car 44@ {path} 52
set_lvar_int_to_constant 78@ = 410
gosub @TWAR7_26168
45@ = create_car 410 {x} 1637.0 {y} -1203.8 {z} 51.5
55@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_car_heading 45@ {heading} 350.3
start_playback_recorded_car 45@ {path} 53
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13210
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
46@ = create_car 74@ {x} 1618.2 {y} -1306.4 {z} 35.6
set_car_heading 46@ {heading} 343.7
set_load_collision_for_car_flag 46@ {state} True
56@ = create_random_char_as_driver 46@
start_playback_recorded_car 46@ {path} 54

:TWAR7_13210
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13308
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
47@ = create_car 74@ {x} 1621.8 {y} -1317.9 {z} 33.0
set_car_heading 47@ {heading} 348.7
set_load_collision_for_car_flag 47@ {state} True
57@ = create_random_char_as_driver 47@
start_playback_recorded_car 47@ {path} 55

:TWAR7_13308
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13406
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
48@ = create_car 74@ {x} 1615.6 {y} -1327.7 {z} 31.5
set_car_heading 48@ {heading} 352.1
set_load_collision_for_car_flag 48@ {state} True
58@ = create_random_char_as_driver 48@
start_playback_recorded_car 48@ {path} 56

:TWAR7_13406
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13504
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
49@ = create_car 74@ {x} 1612.3 {y} -1394.0 {z} 27.6
set_car_heading 49@ {heading} 353.6
set_load_collision_for_car_flag 49@ {state} True
59@ = create_random_char_as_driver 49@
start_playback_recorded_car 49@ {path} 57

:TWAR7_13504
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13602
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
50@ = create_car 74@ {x} 1612.3 {y} -1462.2 {z} 27.1
set_car_heading 50@ {heading} 357.2
set_load_collision_for_car_flag 50@ {state} True
60@ = create_random_char_as_driver 50@
start_playback_recorded_car 50@ {path} 58

:TWAR7_13602
74@, 75@ = get_random_car_model_in_memory True
if 
  74@ >= 0
goto_if_false @TWAR7_13700
set_lvar_int_to_lvar_int 78@ = 74@
gosub @TWAR7_26168
51@ = create_car 74@ {x} 1663.4 {y} -1457.0 {z} 24.3
set_car_heading 51@ {heading} 51.9
set_load_collision_for_car_flag 51@ {state} True
61@ = create_random_char_as_driver 51@
start_playback_recorded_car 51@ {path} 60

:TWAR7_13700
start_playback_recorded_car 35@ {path} 35
68@ = 1

:TWAR7_13714
if 
  68@ == 1
goto_if_false @TWAR7_13821
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_13755
68@ = 2

:TWAR7_13755
if 
  not is_car_dead 51@
goto_if_false @TWAR7_13821
if 
  locate_car_2d 51@ {x} 1601.4 {y} -1389.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_13821
stop_playback_recorded_car 51@
68@ = 2

:TWAR7_13821
if 
  68@ == 2
goto_if_false @TWAR7_13954
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_13954
switch_roads_on 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
switch_roads_on 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 9

:TWAR7_13954
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_13968
if 
  67@ == 9
goto_if_false @TWAR7_14628
if 
  85@ == 0
goto_if_false @TWAR7_14114
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_14089
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_14082
83@ = 6
84@ = 5
130@ = 6
gosub @TWAR7_29790

:TWAR7_14082
85@ = 1

:TWAR7_14089
if 
  68@ == 1
goto_if_false @TWAR7_14114
85@ = 1

:TWAR7_14114
if 
  73@ == 0
goto_if_false @TWAR7_14171
switch_roads_off 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
73@ = 1

:TWAR7_14171
if 
  73@ == 1
goto_if_false @TWAR7_14266
if 
  locate_car_2d 35@ {x} 1781.3 {y} -1437.9 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_14266
switch_roads_on 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
73@ = 2

:TWAR7_14266
if 
  68@ == 0
goto_if_false @TWAR7_14513
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_14513
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
38@ = create_random_char 1778.4 {y} -1343.1 {z} 14.7
set_char_heading 38@ {heading} 180.0
39@ = create_random_char 1778.4 {y} -1344.1 {z} 14.7
set_char_heading 39@ {heading} 0.0
start_playback_recorded_car 35@ {path} 36
68@ = 1

:TWAR7_14513
if 
  68@ == 1
goto_if_false @TWAR7_14614
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_14614
switch_roads_on 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 10

:TWAR7_14614
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_14628
if 
  67@ == 10
goto_if_false @TWAR7_15329
if 
  85@ == 0
goto_if_false @TWAR7_14774
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_14749
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_14742
83@ = 6
84@ = 6
130@ = 7
gosub @TWAR7_29790

:TWAR7_14742
85@ = 1

:TWAR7_14749
if 
  68@ == 1
goto_if_false @TWAR7_14774
85@ = 1

:TWAR7_14774
if 
  73@ == 0
goto_if_false @TWAR7_14895
switch_roads_off 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_off 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
switch_roads_off 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
73@ = 1

:TWAR7_14895
if 
  73@ == 1
goto_if_false @TWAR7_14990
if 
  locate_car_2d 35@ {x} 1855.7 {y} -1379.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_14990
switch_roads_on 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
73@ = 2

:TWAR7_14990
if 
  73@ == 2
goto_if_false @TWAR7_15085
if 
  locate_car_2d 35@ {x} 1971.5 {y} -1474.6 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_15085
switch_roads_on 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
73@ = 3

:TWAR7_15085
if 
  68@ == 0
goto_if_false @TWAR7_15172
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_15172
start_playback_recorded_car 35@ {path} 37
68@ = 1

:TWAR7_15172
if 
  68@ == 1
goto_if_false @TWAR7_15315
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_15315
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
switch_roads_on 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_on 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 11

:TWAR7_15315
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_15329
if 
  67@ == 11
goto_if_false @TWAR7_15893
if 
  85@ == 0
goto_if_false @TWAR7_15475
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_15450
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_15443
83@ = 6
84@ = 7
130@ = 8
gosub @TWAR7_29790

:TWAR7_15443
85@ = 1

:TWAR7_15450
if 
  68@ == 1
goto_if_false @TWAR7_15475
85@ = 1

:TWAR7_15475
if 
  73@ == 0
goto_if_false @TWAR7_15532
switch_roads_off 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
73@ = 1

:TWAR7_15532
if 
  73@ == 1
goto_if_false @TWAR7_15659
if 
  locate_car_2d 35@ {x} 2394.8 {y} -1508.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_15659
switch_roads_on 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_on 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
73@ = 2

:TWAR7_15659
if 
  68@ == 0
goto_if_false @TWAR7_15746
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_15746
start_playback_recorded_car 35@ {path} 38
68@ = 1

:TWAR7_15746
if 
  68@ == 1
goto_if_false @TWAR7_15879
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_15879
switch_roads_on 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_on 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 12

:TWAR7_15879
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_15893
if 
  67@ == 12
goto_if_false @TWAR7_16393
if 
  85@ == 0
goto_if_false @TWAR7_16039
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_16014
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_16007
83@ = 6
84@ = 8
130@ = 9
gosub @TWAR7_29790

:TWAR7_16007
85@ = 1

:TWAR7_16014
if 
  68@ == 1
goto_if_false @TWAR7_16039
85@ = 1

:TWAR7_16039
if 
  73@ == 0
goto_if_false @TWAR7_16096
switch_roads_off 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
73@ = 1

:TWAR7_16096
if 
  73@ == 1
goto_if_false @TWAR7_16191
if 
  locate_car_2d 35@ {x} 2398.6001 {y} -1432.4 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16191
switch_roads_on 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
73@ = 2

:TWAR7_16191
if 
  68@ == 0
goto_if_false @TWAR7_16278
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_16278
start_playback_recorded_car 35@ {path} 39
68@ = 1

:TWAR7_16278
if 
  68@ == 1
goto_if_false @TWAR7_16379
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_16379
switch_roads_on 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
TIMERA = 0
73@ = 0
85@ = 0
68@ = 0
67@ = 13

:TWAR7_16379
gosub @TWAR7_25463
gosub @TWAR7_25201

:TWAR7_16393
if 
  67@ == 13
goto_if_false @TWAR7_17814
gosub @TWAR7_25463
gosub @TWAR7_25201
if 
  85@ == 0
goto_if_false @TWAR7_16553
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_16528
TIMERB = 0
if 
  not is_char_dead 34@
goto_if_false @TWAR7_16521
83@ = 6
84@ = 9
130@ = 10
gosub @TWAR7_29790

:TWAR7_16521
85@ = 1

:TWAR7_16528
if 
  68@ == 1
goto_if_false @TWAR7_16553
85@ = 1

:TWAR7_16553
if 
  73@ == 0
goto_if_false @TWAR7_16706
switch_roads_off 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_off 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_off 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_off 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
73@ = 1

:TWAR7_16706
if 
  73@ == 1
goto_if_false @TWAR7_16801
if 
  locate_car_2d 35@ {x} 2362.8 {y} -1259.3 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16801
switch_roads_on 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
73@ = 2

:TWAR7_16801
if 
  73@ == 2
goto_if_false @TWAR7_16896
if 
  locate_car_2d 35@ {x} 2294.5 {y} -1263.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16896
switch_roads_on 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
73@ = 3

:TWAR7_16896
if 
  73@ == 3
goto_if_false @TWAR7_16991
if 
  locate_car_2d 35@ {x} 2284.2 {y} -1393.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_16991
switch_roads_on 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
73@ = 4

:TWAR7_16991
if 
  73@ == 4
goto_if_false @TWAR7_17086
if 
  locate_car_2d 35@ {x} 2293.8 {y} -1491.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TWAR7_17086
switch_roads_on 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
73@ = 5

:TWAR7_17086
if 
  68@ == 0
goto_if_false @TWAR7_17395
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
  TIMERA > 4000
goto_if_false @TWAR7_17395
if 
  has_model_loaded 110
goto_if_false @TWAR7_17233
62@ = create_char PedType.Mission2 {modelId} 110 {x} 2301.8999 {y} -1504.1 {z} 24.3
set_char_heading 62@ {heading} 358.5
give_weapon_to_char 62@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_kinda_stay_in_same_place 62@ {state} True
set_char_decision_maker 62@ {handleOrTemplate} 149@

:TWAR7_17233
if 
  has_model_loaded 110
goto_if_false @TWAR7_17307
63@ = create_char PedType.Mission2 {modelId} 110 {x} 2302.5 {y} -1502.3 {z} 24.3
set_char_heading 63@ {heading} 18.5
give_weapon_to_char 63@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_kinda_stay_in_same_place 63@ {state} True
set_char_decision_maker 63@ {handleOrTemplate} 149@

:TWAR7_17307
if 
  has_model_loaded 110
goto_if_false @TWAR7_17381
64@ = create_char PedType.Mission2 {modelId} 110 {x} 2300.6001 {y} -1503.9 {z} 24.3
set_char_heading 64@ {heading} 5.9
give_weapon_to_char 64@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_kinda_stay_in_same_place 64@ {state} True
set_char_decision_maker 64@ {handleOrTemplate} 149@

:TWAR7_17381
start_playback_recorded_car 35@ {path} 40
68@ = 1

:TWAR7_17395
if 
  68@ == 1
goto_if_false @TWAR7_17646
if 
  not is_playback_going_on_for_car 35@
goto_if_false @TWAR7_17646
switch_roads_on 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_on 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_on 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_on 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2300.3 {y} -1502.8 {z} 24.3 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 205.1
close_sequence_task 145@
perform_sequence_task 34@ {sequence} 145@
clear_sequence_task 145@
if 
  not is_car_dead 35@
goto_if_false @TWAR7_17639
set_car_always_create_skids 35@ {state} False

:TWAR7_17639
68@ = 2

:TWAR7_17646
if 
  68@ == 2
goto_if_false @TWAR7_17814
if or
  locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @TWAR7_17814
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_17735
remove_char_from_group $mc_strap

:TWAR7_17735
ignore_height_difference_following_nodes $mc_strap {state} True
set_follow_node_threshold_distance $mc_strap {range} 50.0
145@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} 34@
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
85@ = 0
73@ = 0
68@ = 0
67@ = 14

:TWAR7_17814
if 
  67@ == 14
goto_if_false @TWAR7_18221
if 
  85@ == 0
goto_if_false @TWAR7_17912
if or
  has_char_spotted_char $mc_strap {target} 34@
  has_char_spotted_char 34@ {target} $mc_strap
goto_if_false @TWAR7_17912
83@ = 7
84@ = 0
gosub @TWAR7_29790
TIMERB = 0
85@ = 1

:TWAR7_17912
if 
  85@ == 1
goto_if_false @TWAR7_17976
if 
  83@ == 0
goto_if_false @TWAR7_17976
83@ = 17
84@ = 0
gosub @TWAR7_29790
85@ = 2

:TWAR7_17976
if 
  68@ == 0
goto_if_false @TWAR7_18221
remove_blip 66@
66@ = add_blip_for_char 34@
set_char_only_damaged_by_player 34@ {state} False
145@ = open_sequence_task 
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $mc_strap
task_kill_char_on_foot -1 {target} $mc_strap
close_sequence_task 145@
perform_sequence_task 34@ {sequence} 145@
clear_sequence_task 145@
if 
  not is_char_dead 62@
goto_if_false @TWAR7_18108
$task_status = get_script_task_status 62@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18108
task_kill_char_on_foot 62@ {target} $scplayer

:TWAR7_18108
if 
  not is_char_dead 63@
goto_if_false @TWAR7_18161
$task_status = get_script_task_status 63@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18161
task_kill_char_on_foot 63@ {target} $scplayer

:TWAR7_18161
if 
  not is_char_dead 64@
goto_if_false @TWAR7_18214
$task_status = get_script_task_status 64@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_18214
task_kill_char_on_foot 64@ {target} $scplayer

:TWAR7_18214
68@ = 1

:TWAR7_18221
goto @TWAR7_18362

:TWAR7_18228
remove_blip 66@
if 
  not is_char_dead 62@
goto_if_false @TWAR7_18264
task_flee_char 62@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18264
if 
  not is_char_dead 63@
goto_if_false @TWAR7_18295
task_flee_char 63@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18295
if 
  not is_char_dead 64@
goto_if_false @TWAR7_18326
task_flee_char 64@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18326
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
TIMERA = 0
68@ = 0
85@ = 0
67@ = 15

:TWAR7_18362
goto @TWAR7_18503

:TWAR7_18369
remove_blip 66@
if 
  not is_char_dead 62@
goto_if_false @TWAR7_18405
task_flee_char 62@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18405
if 
  not is_char_dead 63@
goto_if_false @TWAR7_18436
task_flee_char 63@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18436
if 
  not is_char_dead 64@
goto_if_false @TWAR7_18467
task_flee_char 64@ {threat} $scplayer {radius} 20.0 {time} -2

:TWAR7_18467
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
TIMERA = 0
68@ = 0
85@ = 0
67@ = 15

:TWAR7_18503
if 
  67@ == 15
goto_if_false @TWAR7_21068
if 
  68@ == 0
goto_if_false @TWAR7_19984
if 
  TIMERA > 2000
goto_if_false @TWAR7_19984
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @TWAR7_19984
clear_prints 
do_fade 500 {direction} Fade.Out

:TWAR7_18592
if 
  get_fading_status 
goto_if_false @TWAR7_18616
wait 0
goto @TWAR7_18592

:TWAR7_18616
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_18648
goto @TWAR7_23165

:TWAR7_18648
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
delete_char 62@
delete_char 63@
delete_char 64@
switch_roads_back_to_original 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_back_to_original 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_back_to_original 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
switch_roads_back_to_original 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_back_to_original 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_back_to_original 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_back_to_original 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_back_to_original 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
switch_roads_back_to_original 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
switch_roads_back_to_original 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_back_to_original 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
switch_roads_back_to_original 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
switch_roads_back_to_original 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
switch_roads_back_to_original 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
switch_roads_back_to_original 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
switch_roads_back_to_original 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_back_to_original 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
switch_roads_back_to_original 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
switch_roads_back_to_original 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_back_to_original 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_back_to_original 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_back_to_original 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_back_to_original 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 35@
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 461
request_animation "MISC"
load_all_models_now 
request_collision 2293.3999 {y} -1490.2
load_scene_in_direction 2293.3999 {y} -1490.2 {z} 22.2 {heading} 90.0
clear_area 2293.3999 {y} -1490.2 {z} 22.2 {radius} 20.0 {clearParticles} True
set_ped_density_multiplier 0.0
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
if 
  not is_car_dead 35@
goto_if_false @TWAR7_19616
set_car_always_create_skids 35@ {state} False

:TWAR7_19616
clear_char_tasks_immediately $scplayer
141@, 142@, 143@ = get_char_coordinates $scplayer
144@ = get_char_heading $scplayer
remove_char_from_group $mc_strap
clear_char_tasks_immediately $mc_strap
clear_area 2290.3999 {y} -1490.2 {z} 22.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2290.3999 {y} -1490.2 {z} 22.3
set_char_heading $scplayer {heading} 265.8
task_go_straight_to_coord $scplayer {x} 2295.6001 {y} -1490.5 {z} 21.3 {speed} MoveState.Walk {time} -1
76@ = get_current_char_weapon $scplayer
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
clear_char_tasks_immediately $mc_strap
clear_area 2295.3 {y} -1491.3 {z} 22.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 2295.3 {y} -1491.3 {z} 22.3
set_char_heading $mc_strap {heading} 268.4
task_aim_gun_at_coord $mc_strap {x} 2299.3 {y} -1490.6 {z} 22.8 {time} 10000
set_fixed_camera_position 2299.3 {y} -1490.6 {z} 22.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2255.6001 {y} -1493.3 {z} 38.3 {switchStyle} SwitchType.JumpCut
83@ = 8
84@ = 0
gosub @TWAR7_29790
68@ = 1
do_fade 1500 {direction} Fade.In

:TWAR7_19914
if 
  get_fading_status 
goto_if_false @TWAR7_19938
wait 0
goto @TWAR7_19914

:TWAR7_19938
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_19970
goto @TWAR7_23165

:TWAR7_19970
69@ = 1
skip_cutscene_start_internal @TWAR7_20578

:TWAR7_19984
if 
  68@ == 1
goto_if_false @TWAR7_20115
$task_status = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_20115
task_turn_char_to_face_char $mc_strap {target} $scplayer
145@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $mc_strap
task_play_anim -1 {animationName} "IDLE_CHAT_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
68@ = 2

:TWAR7_20115
if 
  68@ == 2
goto_if_false @TWAR7_20199
if 
  84@ > 2
goto_if_false @TWAR7_20199
clear_char_tasks $scplayer
task_play_anim $mc_strap {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 3

:TWAR7_20199
if 
  68@ == 3
goto_if_false @TWAR7_20283
if 
  84@ > 3
goto_if_false @TWAR7_20283
clear_char_tasks $mc_strap
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 4

:TWAR7_20283
if 
  68@ == 4
goto_if_false @TWAR7_20367
if 
  84@ > 4
goto_if_false @TWAR7_20367
clear_char_tasks $scplayer
task_play_anim $mc_strap {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 5

:TWAR7_20367
if 
  68@ == 5
goto_if_false @TWAR7_20451
if 
  84@ > 5
goto_if_false @TWAR7_20451
clear_char_tasks $mc_strap
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 6

:TWAR7_20451
if 
  68@ == 6
goto_if_false @TWAR7_20535
if 
  84@ > 6
goto_if_false @TWAR7_20535
clear_char_tasks $scplayer
task_play_anim $mc_strap {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = 7

:TWAR7_20535
if 
  68@ == 7
goto_if_false @TWAR7_21068
if 
  83@ == 0
goto_if_false @TWAR7_21068
69@ = 0

:TWAR7_20578
skip_cutscene_end 
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_20612
goto @TWAR7_23165

:TWAR7_20612
clear_char_tasks $mc_strap
if 
  69@ == 1
goto_if_false @TWAR7_20652
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0

:TWAR7_20652
do_fade 500 {direction} Fade.Out

:TWAR7_20659
if 
  get_fading_status 
goto_if_false @TWAR7_20683
wait 0
goto @TWAR7_20659

:TWAR7_20683
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_20715
goto @TWAR7_23165

:TWAR7_20715
clear_char_tasks_immediately $scplayer
143@ -= 1.0
clear_area 141@ {y} 142@ {z} 143@ {radius} 1.0 {clearParticles} True
request_collision 141@ {y} 142@
load_all_models_now 
set_char_coordinates $scplayer {x} 141@ {y} 142@ {z} 143@
set_char_heading $scplayer {heading} 144@
set_current_char_weapon $scplayer {weaponType} 76@
clear_char_tasks_immediately $mc_strap
137@, 138@, 139@ = get_closest_char_node 141@ {y} 142@ {z} 143@
request_collision 137@ {y} 138@
load_all_models_now 
139@ += 2.0
143@ = get_ground_z_for_3d_coord 137@ {y} 138@ {z} 139@
clear_area 137@ {y} 138@ {z} 143@ {radius} 1.0 {clearParticles} True
set_char_coordinates $mc_strap {x} 137@ {y} 138@ {z} 143@
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $mc_strap
72@ = 1
load_scene 141@ {y} 142@ {z} 143@
remove_animation "MISC"
set_ped_density_multiplier 1.0
remove_blip 66@
66@ = add_blip_for_coord 783.2 {y} -1630.3 {z} 12.2
set_blip_as_friendly 66@ {state} True
switch_widescreen False
shut_all_chars_up False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In

:TWAR7_20984
if 
  get_fading_status 
goto_if_false @TWAR7_21008
wait 0
goto @TWAR7_20984

:TWAR7_21008
gosub @TWAR7_24265
if 
  70@ == 1
goto_if_false @TWAR7_21040
goto @TWAR7_23165

:TWAR7_21040
68@ = 0
85@ = 0
67@ = 16
TIMERB = 0

:TWAR7_21068
if 
  67@ == 16
goto_if_false @TWAR7_21370
if 
  83@ == 0
goto_if_false @TWAR7_21150
if 
  85@ == 0
goto_if_false @TWAR7_21150
83@ = 9
84@ = 0
gosub @TWAR7_29790
85@ = 1

:TWAR7_21150
if 
  83@ == 0
goto_if_false @TWAR7_21209
if 
  85@ == 1
goto_if_false @TWAR7_21209
print_now 'SMK1_13' {time} 8500 {flag} 1
85@ = 2

:TWAR7_21209
if 
  68@ == 0
goto_if_false @TWAR7_21363
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_21363
if 
  locate_char_any_means_3d $scplayer {x} 783.2 {y} -1630.3 {z} 12.2 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TWAR7_21363
if 
  locate_char_any_means_3d $mc_strap {x} 783.2 {y} -1630.3 {z} 12.2 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @TWAR7_21363
set_player_control $player1 {state} False
68@ = 0
67@ = 17

:TWAR7_21363
gosub @TWAR7_25201

:TWAR7_21370
if 
  67@ == 17
goto_if_false @TWAR7_21765
if 
  68@ == 0
goto_if_false @TWAR7_21629
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
set_player_control $player1 {state} False
switch_widescreen True
shut_all_chars_up True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
remove_char_from_group $mc_strap
145@ = open_sequence_task 
task_pause -1 {time} 1500
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $mc_strap
close_sequence_task 145@
perform_sequence_task $scplayer {sequence} 145@
clear_sequence_task 145@
145@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 792.1 {y} -1626.0 {z} 12.4 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
83@ = 10
84@ = 0
gosub @TWAR7_29790
set_fixed_camera_position 776.7145 {y} -1637.248 {z} 14.084 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 777.5906 {y} -1636.769 {z} 14.1398 {switchStyle} SwitchType.JumpCut
68@ = 1

:TWAR7_21629
if 
  68@ == 1
goto_if_false @TWAR7_21765
if 
  83@ == 0
goto_if_false @TWAR7_21765
do_fade 500 {direction} Fade.Out

:TWAR7_21672
if 
  get_fading_status 
goto_if_false @TWAR7_21696
wait 0
goto @TWAR7_21672

:TWAR7_21696
delete_char $mc_strap
remove_blip 66@
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:TWAR7_21734
if 
  get_fading_status 
goto_if_false @TWAR7_21758
wait 0
goto @TWAR7_21734

:TWAR7_21758
goto @TWAR7_23183

:TWAR7_21765
if 
  67@ > 3
goto_if_false @TWAR7_21882
if 
  14 > 67@
goto_if_false @TWAR7_21882
if 
  not is_char_dead 34@
goto_if_false @TWAR7_21882
$task_status = get_script_task_status 34@ {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TWAR7_21882
task_drive_by 34@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100

:TWAR7_21882
if 
  67@ > 3
goto_if_false @TWAR7_21995
if 
  15 > 67@
goto_if_false @TWAR7_21995
if 
  not is_char_dead 34@
goto_if_false @TWAR7_21995
if 
  not locate_char_any_means_char_2d $scplayer {target} 34@ {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @TWAR7_21995
if 
  not is_char_on_screen 34@
goto_if_false @TWAR7_21995
68@ = 0
67@ = 20

:TWAR7_21995
if 
  67@ == 20
goto_if_false @TWAR7_22472
if 
  68@ == 0
goto_if_false @TWAR7_22273
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_22201
if 
  not is_car_dead 36@
goto_if_false @TWAR7_22201
if 
  is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_22201
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
83@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
print_now 'SMK1_12' {time} 4000 {flag} 1
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_22151
apply_brakes_to_players_car $player1 {state} True

:TWAR7_22151
remove_char_from_group $mc_strap
145@ = open_sequence_task 
task_leave_any_car -1
task_wander_standard -1
close_sequence_task 145@
perform_sequence_task $mc_strap {sequence} 145@
clear_sequence_task 145@
TIMERA = 0
68@ = 1

:TWAR7_22201
if 
  is_car_dead 36@
goto_if_false @TWAR7_22224
68@ = 2

:TWAR7_22224
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_22247
68@ = 2

:TWAR7_22247
if 
  not is_char_in_car $mc_strap {vehicle} 36@
goto_if_false @TWAR7_22273
68@ = 2

:TWAR7_22273
if 
  68@ == 1
goto_if_false @TWAR7_22429
if 
  TIMERA > 3000
goto_if_false @TWAR7_22429
do_fade 500 {direction} Fade.Out

:TWAR7_22317
if 
  get_fading_status 
goto_if_false @TWAR7_22341
wait 0
goto @TWAR7_22317

:TWAR7_22341
delete_char $mc_strap
if 
  is_char_in_any_car $scplayer
goto_if_false @TWAR7_22369
apply_brakes_to_players_car $player1 {state} False

:TWAR7_22369
remove_blip 66@
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:TWAR7_22398
if 
  get_fading_status 
goto_if_false @TWAR7_22422
wait 0
goto @TWAR7_22398

:TWAR7_22422
68@ = 2

:TWAR7_22429
if 
  68@ == 2
goto_if_false @TWAR7_22472
clear_prints 
print_now 'SMK1_12' {time} 4000 {flag} 1
goto @TWAR7_23165

:TWAR7_22472
if 
  67@ == 3
goto_if_false @TWAR7_22528
if 
  not has_car_recording_been_loaded 30
goto_if_false @TWAR7_22509
request_car_recording 30

:TWAR7_22509
if 
  not has_car_recording_been_loaded 31
goto_if_false @TWAR7_22528
request_car_recording 31

:TWAR7_22528
if 
  67@ == 4
goto_if_false @TWAR7_22565
if 
  not has_car_recording_been_loaded 32
goto_if_false @TWAR7_22565
request_car_recording 32

:TWAR7_22565
if 
  67@ == 5
goto_if_false @TWAR7_22602
if 
  not has_car_recording_been_loaded 33
goto_if_false @TWAR7_22602
request_car_recording 33

:TWAR7_22602
if 
  67@ == 6
goto_if_false @TWAR7_22639
if 
  not has_car_recording_been_loaded 34
goto_if_false @TWAR7_22639
request_car_recording 34

:TWAR7_22639
if 
  67@ == 7
goto_if_false @TWAR7_22871
if 
  not has_car_recording_been_loaded 35
goto_if_false @TWAR7_22676
request_car_recording 35

:TWAR7_22676
if 
  not has_car_recording_been_loaded 50
goto_if_false @TWAR7_22695
request_car_recording 50

:TWAR7_22695
if 
  not has_car_recording_been_loaded 51
goto_if_false @TWAR7_22714
request_car_recording 51

:TWAR7_22714
if 
  not has_car_recording_been_loaded 52
goto_if_false @TWAR7_22733
request_car_recording 52

:TWAR7_22733
if 
  not has_car_recording_been_loaded 53
goto_if_false @TWAR7_22752
request_car_recording 53

:TWAR7_22752
if 
  not has_car_recording_been_loaded 54
goto_if_false @TWAR7_22771
request_car_recording 54

:TWAR7_22771
if 
  not has_car_recording_been_loaded 55
goto_if_false @TWAR7_22790
request_car_recording 55

:TWAR7_22790
if 
  not has_car_recording_been_loaded 56
goto_if_false @TWAR7_22809
request_car_recording 56

:TWAR7_22809
if 
  not has_car_recording_been_loaded 57
goto_if_false @TWAR7_22828
request_car_recording 57

:TWAR7_22828
if 
  not has_car_recording_been_loaded 58
goto_if_false @TWAR7_22847
request_car_recording 58

:TWAR7_22847
if 
  not has_car_recording_been_loaded 35
goto_if_false @TWAR7_22866
request_car_recording 60

:TWAR7_22866
request_model 410

:TWAR7_22871
if 
  67@ == 8
goto_if_false @TWAR7_22908
if 
  not has_car_recording_been_loaded 36
goto_if_false @TWAR7_22908
request_car_recording 36

:TWAR7_22908
if 
  67@ == 9
goto_if_false @TWAR7_22950
mark_model_as_no_longer_needed 410
if 
  not has_car_recording_been_loaded 37
goto_if_false @TWAR7_22950
request_car_recording 37

:TWAR7_22950
if 
  67@ == 10
goto_if_false @TWAR7_22987
if 
  not has_car_recording_been_loaded 38
goto_if_false @TWAR7_22987
request_car_recording 38

:TWAR7_22987
if 
  67@ == 11
goto_if_false @TWAR7_23024
if 
  not has_car_recording_been_loaded 39
goto_if_false @TWAR7_23024
request_car_recording 39

:TWAR7_23024
if 
  67@ == 12
goto_if_false @TWAR7_23065
if 
  not has_car_recording_been_loaded 40
goto_if_false @TWAR7_23061
request_car_recording 40

:TWAR7_23061
request_model 110

:TWAR7_23065
if 
  67@ > 0
goto_if_false @TWAR7_23108
if 
  3 > 67@
goto_if_false @TWAR7_23108
gosub @TWAR7_24682

:TWAR7_23108
if 
  67@ > 3
goto_if_false @TWAR7_23151
if 
  14 > 67@
goto_if_false @TWAR7_23151
gosub @TWAR7_24891

:TWAR7_23151
gosub @TWAR7_27399
goto @TWAR7_1306

:TWAR7_23165
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TWAR7_23183
clear_prints 
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'SMOKE_1'
player_made_progress 1
$flag_smoke_mission_counter += 1
start_new_script @STRAP 
remove_blip $strap_contact_blip
$strap_contact_blip = add_sprite_blip_for_contact_point $strapX {y} $strapY {z} $strapZ {sprite} $strap_blip_icon
return 

:TWAR7_23270
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TWAR7_23288
restore_camera_jumpcut 

:TWAR7_23288
if 
  not is_char_dead $scplayer
goto_if_false @TWAR7_23311
shut_char_up_for_scripted_speech $scplayer {state} False

:TWAR7_23311
shut_all_chars_up False
remove_blip 66@
clear_mission_audio MissionAudioSlot.Slot3
mark_model_as_no_longer_needed 410
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 352
remove_animation "CAR_CHAT"
remove_animation "CRIB"
remove_animation "MISC"
remove_animation "RAPPING"
switch_roads_back_to_original 2563.7 {leftBottomY} -1435.0 {leftBottomZ} 10.0 {rightTopX} 2580.3 {rightTopY} -1266.4 {rightTopZ} 100.6
switch_roads_back_to_original 2635.0 {leftBottomY} -1434.4 {leftBottomZ} 10.0 {rightTopX} 2652.0 {rightTopY} -1263.6 {rightTopZ} 100.0
switch_roads_back_to_original 2714.8999 {leftBottomY} -1501.6 {leftBottomZ} 10.0 {rightTopX} 2746.1001 {rightTopY} -1266.4 {rightTopZ} 100.0
switch_roads_back_to_original 2713.8999 {leftBottomY} -1499.3 {leftBottomZ} 10.0 {rightTopX} 2746.6001 {rightTopY} -1266.3 {rightTopZ} 100.0
switch_roads_back_to_original 2714.6001 {leftBottomY} -1249.9 {leftBottomZ} 10.0 {rightTopX} 2744.7 {rightTopY} -1332.9 {rightTopZ} 100.0
switch_roads_back_to_original 2634.6001 {leftBottomY} -1396.6 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1264.2 {rightTopZ} 100.0
switch_roads_back_to_original 2635.1001 {leftBottomY} -1248.0 {leftBottomZ} 10.0 {rightTopX} 2651.0 {rightTopY} -1055.3 {rightTopZ} 100.0
switch_roads_back_to_original 2651.5 {leftBottomY} -1263.8 {leftBottomZ} 10.0 {rightTopX} 2579.5 {rightTopY} -1248.7 {rightTopZ} 100.0
switch_roads_back_to_original 2563.7 {leftBottomY} -1248.6 {leftBottomZ} 10.0 {rightTopX} 2578.8999 {rightTopY} -1192.2 {rightTopZ} 100.6
switch_roads_back_to_original 2443.7 {leftBottomY} -1249.2 {leftBottomZ} 10.0 {rightTopX} 2459.1001 {rightTopY} -1191.9 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1253.4 {leftBottomZ} 10.0 {rightTopX} 2378.7 {rightTopY} -1145.5 {rightTopZ} 100.0
switch_roads_back_to_original 2311.2 {leftBottomY} -1144.7 {leftBottomZ} 10.0 {rightTopX} 2379.1001 {rightTopY} -1162.1 {rightTopZ} 100.0
switch_roads_back_to_original 2239.8999 {leftBottomY} -1130.0 {leftBottomZ} 10.0 {rightTopX} 2017.6 {rightTopY} -928.3 {rightTopZ} 100.0
switch_roads_back_to_original 1930.6 {leftBottomY} -1031.9 {leftBottomZ} 10.0 {rightTopX} 1574.4 {rightTopY} -879.9 {rightTopZ} 100.0
switch_roads_back_to_original 1879.6 {leftBottomY} -1024.3 {leftBottomZ} 10.0 {rightTopX} 1552.0 {rightTopY} -1521.7 {rightTopZ} 100.0
switch_roads_back_to_original 1725.8 {leftBottomY} -1433.3 {leftBottomZ} 10.0 {rightTopX} 1838.0 {rightTopY} -1459.4 {rightTopZ} 100.0
switch_roads_back_to_original 1838.4 {leftBottomY} -1453.6 {leftBottomZ} 10.0 {rightTopX} 1853.7 {rightTopY} -1303.4 {rightTopZ} 100.0
switch_roads_back_to_original 1979.3 {leftBottomY} -1468.7 {leftBottomZ} 10.0 {rightTopX} 1853.5 {rightTopY} -1452.5 {rightTopZ} 100.0
switch_roads_back_to_original 2334.0 {leftBottomY} -1556.1 {leftBottomZ} 10.0 {rightTopX} 2350.5 {rightTopY} -1489.7 {rightTopZ} 100.0
switch_roads_back_to_original 2350.1001 {leftBottomY} -1516.0 {leftBottomZ} 10.0 {rightTopX} 2423.8999 {rightTopY} -1532.5 {rightTopZ} 100.0
switch_roads_back_to_original 2379.8 {leftBottomY} -1373.3 {leftBottomZ} 10.0 {rightTopX} 2423.7 {rightTopY} -1452.6 {rightTopZ} 100.0
switch_roads_back_to_original 2363.5 {leftBottomY} -1291.7 {leftBottomZ} 10.0 {rightTopX} 2379.5 {rightTopY} -1181.2 {rightTopZ} 100.0
switch_roads_back_to_original 2295.8999 {leftBottomY} -1291.5 {leftBottomZ} 10.0 {rightTopX} 2311.5 {rightTopY} -1162.3 {rightTopZ} 100.0
switch_roads_back_to_original 2333.8999 {leftBottomY} -1392.1 {leftBottomZ} 10.0 {rightTopX} 2220.2 {rightTopY} -1377.1 {rightTopZ} 100.0
switch_roads_back_to_original 2334.6001 {leftBottomY} -1493.6 {leftBottomZ} 10.0 {rightTopX} 2219.8 {rightTopY} -1475.2 {rightTopZ} 100.0
switch_entry_exit 'LAHS1A' {state} True
switch_random_trains True
remove_char_elegantly $big_smoke
remove_char_elegantly $sweet
remove_char_elegantly $mc_strap
unload_special_character 1
unload_special_character 2
unload_special_character 3
enable_ambient_crime True
clear_sequence_task 147@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:TWAR7_24265
if 
  4 > 67@
goto_if_false @TWAR7_24406
if 
  is_char_dead $big_smoke
goto_if_false @TWAR7_24324
clear_prints 
print_now 'SMK1_06' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24324
if 
  is_char_dead $sweet
goto_if_false @TWAR7_24365
clear_prints 
print_now 'SMK1_07' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24365
if 
  is_car_dead 37@
goto_if_false @TWAR7_24406
clear_prints 
print_now 'SMK1_08' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24406
if 
  67@ == 1
goto_if_false @TWAR7_24467
if 
  68@ == 1
goto_if_false @TWAR7_24467
if 
  70@ == 1
goto_if_false @TWAR7_24467
70@ = 0

:TWAR7_24467
if 
  67@ == 1
goto_if_false @TWAR7_24544
if 
  68@ == 2
goto_if_false @TWAR7_24544
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_24544
clear_prints 
print_now 'SMK1_05' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24544
if 
  67@ > 1
goto_if_false @TWAR7_24603
if 
  is_char_dead $mc_strap
goto_if_false @TWAR7_24603
clear_prints 
print_now 'SMK1_05' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24603
if 
  67@ > 3
goto_if_false @TWAR7_24680
if 
  15 > 67@
goto_if_false @TWAR7_24680
if 
  is_car_dead 36@
goto_if_false @TWAR7_24680
clear_prints 
print_now 'SMK1_14' {time} 7000 {flag} 1
70@ = 1

:TWAR7_24680
return 

:TWAR7_24682
if 
  71@ == 0
goto_if_false @TWAR7_24825
if 
  is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_24825
clear_this_print 'SMK1_01'
remove_blip 66@
if 
  67@ == 1
goto_if_false @TWAR7_24818
if 
  68@ == 0
goto_if_false @TWAR7_24798
66@ = add_blip_for_coord 1532.8 {y} -1672.9 {z} 12.4
goto @TWAR7_24818

:TWAR7_24798
66@ = add_blip_for_coord 2454.3999 {y} -1284.5 {z} 22.7

:TWAR7_24818
71@ = 1

:TWAR7_24825
if 
  71@ == 1
goto_if_false @TWAR7_24889
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_24889
remove_blip 66@
66@ = add_blip_for_car 37@
set_blip_as_friendly 66@ {state} True
71@ = 0

:TWAR7_24889
return 

:TWAR7_24891
if 
  72@ == 1
goto_if_false @TWAR7_25199
if 
  67@ > 3
goto_if_false @TWAR7_25199
if 
  14 > 67@
goto_if_false @TWAR7_25199
if 
  71@ == 0
goto_if_false @TWAR7_25072
if 
  not is_car_dead 36@
goto_if_false @TWAR7_25072
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_25072
clear_this_print 86@(84@,13s)
clear_this_print 'SMK1_11'
clear_this_print 'SMK1_04'
print_now 'SMK1_04' {time} 7000 {flag} 1
remove_blip 66@
66@ = add_blip_for_char 34@
set_blip_as_friendly 66@ {state} False
71@ = 1

:TWAR7_25072
if 
  71@ == 1
goto_if_false @TWAR7_25199
if 
  not is_car_dead 36@
goto_if_false @TWAR7_25199
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_25199
clear_this_print 86@(84@,13s)
clear_this_print 'SMK1_11'
clear_this_print 'SMK1_04'
print_now 'SMK1_11' {time} 7000 {flag} 1
remove_blip 66@
66@ = add_blip_for_car 36@
set_blip_as_friendly 66@ {state} True
71@ = 0

:TWAR7_25199
return 

:TWAR7_25201
if 
  72@ == 1
goto_if_false @TWAR7_25265
if 
  not is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_25265
remove_blip 66@
66@ = add_blip_for_char $mc_strap
set_blip_as_friendly 66@ {state} True
72@ = 0

:TWAR7_25265
if 
  72@ == 0
goto_if_false @TWAR7_25461
if 
  locate_char_any_means_char_3d $scplayer {target} $mc_strap {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TWAR7_25461
if 
  not is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_25350
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $mc_strap

:TWAR7_25350
if 
  16 > 67@
goto_if_false @TWAR7_25429
remove_blip 66@
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_25407
66@ = add_blip_for_char 34@
goto @TWAR7_25422

:TWAR7_25407
66@ = add_blip_for_car 36@
set_blip_as_friendly 66@ {state} True

:TWAR7_25422
goto @TWAR7_25454

:TWAR7_25429
remove_blip 66@
66@ = add_blip_for_coord 783.2 {y} -1630.3 {z} 12.2

:TWAR7_25454
72@ = 1

:TWAR7_25461
return 

:TWAR7_25463
if 
  not is_char_dead 34@
goto_if_false @TWAR7_26129
if 
  not is_car_dead 35@
goto_if_false @TWAR7_26122
if 
  is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_26085
if 
  80@ == 0
goto_if_false @TWAR7_25574
if or
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  has_car_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @TWAR7_25574
set_car_health 35@ {health} 350
80@ = 1

:TWAR7_25574
133@, 134@, 137@ = get_char_coordinates $scplayer
135@, 136@, 137@ = get_car_coordinates 35@
137@ = get_distance_between_coords_2d 133@ {fromY} 134@ {toX} 135@ {toZ} 136@
if 
  21.0 > 137@
goto_if_false @TWAR7_25683
137@ /= 20.0
set_lvar_float_to_lvar_float 138@ = 137@
137@ = 2.0
sub_float_lvar_from_float_lvar 137@ -= 138@
goto @TWAR7_25729

:TWAR7_25683
137@ -= 20.0
137@ /= 90.0
set_lvar_float_to_lvar_float 138@ = 137@
137@ = 1.0
sub_float_lvar_from_float_lvar 137@ -= 138@

:TWAR7_25729
set_lvar_float_to_lvar_float 140@ = 137@
if 
  140@ > 2.0
goto_if_false @TWAR7_25768
140@ = 2.0

:TWAR7_25768
if 
  0.5 > 140@
goto_if_false @TWAR7_25799
140@ = 0.5

:TWAR7_25799
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_25823
set_playback_speed 35@ {speed} 140@

:TWAR7_25823
if 
  67@ == 8
goto_if_false @TWAR7_26051
if 
  10 > 79@
goto_if_false @TWAR7_26044
if 
  not is_car_dead 42@(79@,10i)
goto_if_false @TWAR7_26030
if 
  not is_char_dead 52@(79@,10i)
goto_if_false @TWAR7_26001
if 
  is_char_in_car 52@(79@,10i) {vehicle} 42@(79@,10i)
goto_if_false @TWAR7_25965
if 
  is_playback_going_on_for_car 42@(79@,10i)
goto_if_false @TWAR7_25958
set_playback_speed 42@(79@,10i) {speed} 140@

:TWAR7_25958
goto @TWAR7_25994

:TWAR7_25965
if 
  is_playback_going_on_for_car 42@(79@,10i)
goto_if_false @TWAR7_25994
stop_playback_recorded_car 42@(79@,10i)

:TWAR7_25994
goto @TWAR7_26030

:TWAR7_26001
if 
  is_playback_going_on_for_car 42@(79@,10i)
goto_if_false @TWAR7_26030
stop_playback_recorded_car 42@(79@,10i)

:TWAR7_26030
79@ += 1
goto @TWAR7_26051

:TWAR7_26044
79@ = 0

:TWAR7_26051
if 
  not is_char_in_car 34@ {vehicle} 35@
goto_if_false @TWAR7_26078
warp_char_into_car 34@ {vehicle} 35@

:TWAR7_26078
goto @TWAR7_26122

:TWAR7_26085
if 
  not is_car_dead 35@
goto_if_false @TWAR7_26122
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_26122
stop_playback_recorded_car 35@

:TWAR7_26122
goto @TWAR7_26166

:TWAR7_26129
if 
  not is_car_dead 35@
goto_if_false @TWAR7_26166
if 
  is_playback_going_on_for_car 35@
goto_if_false @TWAR7_26166
stop_playback_recorded_car 35@

:TWAR7_26166
return 

:TWAR7_26168
77@ = generate_random_int_in_range 1 {max} 37
if 
  77@ == 1
goto_if_false @TWAR7_26210
custom_plate_for_next_car 78@ {text} "GOT_M00_"

:TWAR7_26210
if 
  77@ == 2
goto_if_false @TWAR7_26243
custom_plate_for_next_car 78@ {text} "M00TV_4U"

:TWAR7_26243
if 
  77@ == 3
goto_if_false @TWAR7_26276
custom_plate_for_next_car 78@ {text} "MATHEW_2"

:TWAR7_26276
if 
  77@ == 4
goto_if_false @TWAR7_26309
custom_plate_for_next_car 78@ {text} "D4_DEW0R"

:TWAR7_26309
if 
  77@ == 5
goto_if_false @TWAR7_26342
custom_plate_for_next_car 78@ {text} "D0DE_777"

:TWAR7_26342
if 
  77@ == 6
goto_if_false @TWAR7_26375
custom_plate_for_next_car 78@ {text} "DAM0_666"

:TWAR7_26375
if 
  77@ == 7
goto_if_false @TWAR7_26408
custom_plate_for_next_car 78@ {text} "C0NEY_88"

:TWAR7_26408
if 
  77@ == 8
goto_if_false @TWAR7_26441
custom_plate_for_next_car 78@ {text} "PRE4CHER"

:TWAR7_26441
if 
  77@ == 9
goto_if_false @TWAR7_26474
custom_plate_for_next_car 78@ {text} "DBP_4NDY"

:TWAR7_26474
if 
  77@ == 10
goto_if_false @TWAR7_26507
custom_plate_for_next_car 78@ {text} "EV1L_SLY"

:TWAR7_26507
if 
  77@ == 11
goto_if_false @TWAR7_26540
custom_plate_for_next_car 78@ {text} "N1_R4V3N"

:TWAR7_26540
if 
  77@ == 12
goto_if_false @TWAR7_26573
custom_plate_for_next_car 78@ {text} "D1VX_Z00"

:TWAR7_26573
if 
  77@ == 13
goto_if_false @TWAR7_26605
custom_plate_for_next_car 78@ {text} "MR_B3NN"

:TWAR7_26605
if 
  77@ == 14
goto_if_false @TWAR7_26638
custom_plate_for_next_car 78@ {text} "R3D_R4SP"

:TWAR7_26638
if 
  77@ == 15
goto_if_false @TWAR7_26671
custom_plate_for_next_car 78@ {text} "LA_B0MBA"

:TWAR7_26671
if 
  77@ == 16
goto_if_false @TWAR7_26704
custom_plate_for_next_car 78@ {text} "L3337_0G"

:TWAR7_26704
if 
  77@ == 17
goto_if_false @TWAR7_26737
custom_plate_for_next_car 78@ {text} "BUDD4H_X"

:TWAR7_26737
if 
  77@ == 18
goto_if_false @TWAR7_26770
custom_plate_for_next_car 78@ {text} "T3H_BUCK"

:TWAR7_26770
if 
  77@ == 19
goto_if_false @TWAR7_26803
custom_plate_for_next_car 78@ {text} "CHUNKY_1"

:TWAR7_26803
if 
  77@ == 20
goto_if_false @TWAR7_26836
custom_plate_for_next_car 78@ {text} "EV1L_BNZ"

:TWAR7_26836
if 
  77@ == 21
goto_if_false @TWAR7_26869
custom_plate_for_next_car 78@ {text} "S4ND_M4N"

:TWAR7_26869
if 
  77@ == 22
goto_if_false @TWAR7_26902
custom_plate_for_next_car 78@ {text} "RKK_DBP1"

:TWAR7_26902
if 
  77@ == 23
goto_if_false @TWAR7_26935
custom_plate_for_next_car 78@ {text} "RE1_K0KU"

:TWAR7_26935
if 
  77@ == 24
goto_if_false @TWAR7_26968
custom_plate_for_next_car 78@ {text} "S3XY_JUD"

:TWAR7_26968
if 
  77@ == 25
goto_if_false @TWAR7_27001
custom_plate_for_next_car 78@ {text} "SUNRA_93"

:TWAR7_27001
if 
  77@ == 26
goto_if_false @TWAR7_27034
custom_plate_for_next_car 78@ {text} "UG_FUX69"

:TWAR7_27034
if 
  77@ == 27
goto_if_false @TWAR7_27067
custom_plate_for_next_car 78@ {text} "LI0N_CUM"

:TWAR7_27067
if 
  77@ == 28
goto_if_false @TWAR7_27100
custom_plate_for_next_car 78@ {text} "RKK_PWND"

:TWAR7_27100
if 
  77@ == 29
goto_if_false @TWAR7_27133
custom_plate_for_next_car 78@ {text} "HAZE_B0B"

:TWAR7_27133
if 
  77@ == 30
goto_if_false @TWAR7_27166
custom_plate_for_next_car 78@ {text} "T3H_FLUF"

:TWAR7_27166
if 
  77@ == 31
goto_if_false @TWAR7_27199
custom_plate_for_next_car 78@ {text} "BM_4NDY_"

:TWAR7_27199
if 
  77@ == 32
goto_if_false @TWAR7_27232
custom_plate_for_next_car 78@ {text} "BM_D34N_"

:TWAR7_27232
if 
  77@ == 33
goto_if_false @TWAR7_27265
custom_plate_for_next_car 78@ {text} "BM_L4C3Y"

:TWAR7_27265
if 
  77@ == 34
goto_if_false @TWAR7_27298
custom_plate_for_next_car 78@ {text} "BM_D3V__"

:TWAR7_27298
if 
  77@ == 35
goto_if_false @TWAR7_27331
custom_plate_for_next_car 78@ {text} "NU_SK00L"

:TWAR7_27331
if 
  77@ == 36
goto_if_false @TWAR7_27364
custom_plate_for_next_car 78@ {text} "G4L_AVET"

:TWAR7_27364
if 
  77@ == 37
goto_if_false @TWAR7_27397
custom_plate_for_next_car 78@ {text} "M0J0_J0J"

:TWAR7_27397
return 

:TWAR7_27399
if 
  67@ == 1
goto_if_false @TWAR7_28418
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_27688
if or
  83@ == 1
  83@ == 2
goto_if_false @TWAR7_27688
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_27681
gosub @TWAR7_32112
gosub @TWAR7_32219
if 
  68@ == 0
goto_if_false @TWAR7_27578
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
goto_if_false @TWAR7_27547
gosub @TWAR7_32373
goto @TWAR7_27578

:TWAR7_27547
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_27578
if or
  68@ == 1
  68@ == 2
goto_if_false @TWAR7_27674
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
  not is_char_dead $mc_strap
goto_if_false @TWAR7_27643
gosub @TWAR7_32373
goto @TWAR7_27674

:TWAR7_27643
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_27674
goto @TWAR7_27688

:TWAR7_27681
83@ = 0

:TWAR7_27688
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_27824
if 
  11 > 83@
goto_if_false @TWAR7_27824
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_27751
84@ += 1

:TWAR7_27751
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_this_print 86@(84@,13s)
set_lvar_int_to_lvar_int 132@ = 83@
set_lvar_int_to_lvar_int 131@ = 84@
83@ = 11
84@ = generate_random_int_in_range 0 {max} 5
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_27824
if 
  83@ == 11
goto_if_false @TWAR7_28149
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28097
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28074
gosub @TWAR7_32112
gosub @TWAR7_32219
if 
  68@ == 0
goto_if_false @TWAR7_27978
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
goto_if_false @TWAR7_27947
gosub @TWAR7_32373
goto @TWAR7_27978

:TWAR7_27947
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_27978
if 
  68@ == 1
goto_if_false @TWAR7_28067
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
  not is_char_dead $mc_strap
goto_if_false @TWAR7_28036
gosub @TWAR7_32373
goto @TWAR7_28067

:TWAR7_28036
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_28067
goto @TWAR7_28097

:TWAR7_28074
print_now 'SMK1_01' {time} 11000 {flag} 1
83@ = 12

:TWAR7_28097
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28149
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
83@ = 13
84@ = 0
clear_prints 

:TWAR7_28149
if 
  83@ == 12
goto_if_false @TWAR7_28202
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28202
83@ = 13
84@ = 0
clear_prints 

:TWAR7_28202
if 
  83@ == 13
goto_if_false @TWAR7_28418
if 
  is_char_sitting_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28344
TIMERB = 0
set_lvar_int_to_lvar_int 83@ = 132@
set_lvar_int_to_lvar_int 84@ = 131@
gosub @TWAR7_29790
if 
  132@ == 0
goto_if_false @TWAR7_28344
if 
  68@ == 0
goto_if_false @TWAR7_28328
print_now 'SMK1_02' {time} 7000 {flag} 1
goto @TWAR7_28344

:TWAR7_28328
print_now 'SMK1_10' {time} 7000 {flag} 1

:TWAR7_28344
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @TWAR7_28418
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
83@ = 11
84@ = generate_random_int_in_range 0 {max} 5
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_28418
if or
  83@ == 3
  83@ == 4
  83@ == 5
  83@ == 8
  83@ == 10
goto_if_false @TWAR7_28518
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28511
gosub @TWAR7_32112
gosub @TWAR7_32219
gosub @TWAR7_32373
goto @TWAR7_28518

:TWAR7_28511
83@ = 0

:TWAR7_28518
if 
  67@ > 3
goto_if_false @TWAR7_29524
if or
  14 > 67@
  67@ == 16
goto_if_false @TWAR7_29524
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_28917
if 
  locate_char_any_means_char_3d $mc_strap {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TWAR7_28910
if and
  is_char_on_foot $scplayer
  is_char_on_foot $mc_strap
goto_if_false @TWAR7_28763
if 
  83@ == 9
goto_if_false @TWAR7_28763
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28756
gosub @TWAR7_32112
gosub @TWAR7_32219
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_28718
gosub @TWAR7_32373
goto @TWAR7_28749

:TWAR7_28718
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_28749
goto @TWAR7_28763

:TWAR7_28756
83@ = 0

:TWAR7_28763
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $mc_strap
goto_if_false @TWAR7_28910
if 
  83@ == 9
goto_if_false @TWAR7_28910
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28903
gosub @TWAR7_32112
gosub @TWAR7_32219
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_28865
gosub @TWAR7_32373
goto @TWAR7_28896

:TWAR7_28865
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_28896
goto @TWAR7_28910

:TWAR7_28903
83@ = 0

:TWAR7_28910
goto @TWAR7_29034

:TWAR7_28917
if 
  14 > 83@
goto_if_false @TWAR7_29034
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_28961
84@ += 1

:TWAR7_28961
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
clear_prints 
set_lvar_int_to_lvar_int 132@ = 83@
set_lvar_int_to_lvar_int 131@ = 84@
83@ = 14
84@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_29034
if 
  83@ == 14
goto_if_false @TWAR7_29225
if 
  not is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_29202
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29172
gosub @TWAR7_32112
gosub @TWAR7_32219
if 
  not is_char_dead $mc_strap
goto_if_false @TWAR7_29134
gosub @TWAR7_32373
goto @TWAR7_29165

:TWAR7_29134
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_29165
goto @TWAR7_29195

:TWAR7_29172
print_now 'SMK1_09' {time} 7000 {flag} 1
83@ = 15

:TWAR7_29195
goto @TWAR7_29225

:TWAR7_29202
print_now 'SMK1_09' {time} 7000 {flag} 1
83@ = 15

:TWAR7_29225
if 
  83@ == 15
goto_if_false @TWAR7_29278
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_29278
83@ = 16
84@ = 0
clear_prints 

:TWAR7_29278
if 
  83@ == 16
goto_if_false @TWAR7_29524
if 
  is_group_member $mc_strap {handle} $Players_Group
goto_if_false @TWAR7_29469
TIMERB = 0
set_lvar_int_to_lvar_int 83@ = 132@
set_lvar_int_to_lvar_int 84@ = 131@
gosub @TWAR7_29790
if 
  132@ == 0
goto_if_false @TWAR7_29462
if 
  14 > 67@
goto_if_false @TWAR7_29446
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TWAR7_29423
print_now 'SMK1_04' {time} 7000 {flag} 1
goto @TWAR7_29439

:TWAR7_29423
print_now 'SMK1_11' {time} 7000 {flag} 1

:TWAR7_29439
goto @TWAR7_29462

:TWAR7_29446
print_now 'SMK1_13' {time} 8500 {flag} 1

:TWAR7_29462
goto @TWAR7_29524

:TWAR7_29469
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
83@ = 14
84@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 130@ = 84@
130@ += 1
gosub @TWAR7_29790

:TWAR7_29524
if or
  83@ == 6
  83@ == 7
goto_if_false @TWAR7_29657
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29650
gosub @TWAR7_32112
gosub @TWAR7_32219
if 
  not is_char_dead 34@
goto_if_false @TWAR7_29612
gosub @TWAR7_32373
goto @TWAR7_29643

:TWAR7_29612
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_29643
goto @TWAR7_29657

:TWAR7_29650
83@ = 0

:TWAR7_29657
if 
  83@ == 17
goto_if_false @TWAR7_29788
if 
  is_int_lvar_greater_than_int_lvar 125@ > 84@
goto_if_false @TWAR7_29781
gosub @TWAR7_32112
gosub @TWAR7_32219
if and
  not is_char_dead 34@
  not is_char_dead $mc_strap
goto_if_false @TWAR7_29743
gosub @TWAR7_32373
goto @TWAR7_29774

:TWAR7_29743
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 86@(84@,13s)
126@ = 0
127@ = 0

:TWAR7_29774
goto @TWAR7_29788

:TWAR7_29781
83@ = 0

:TWAR7_29788
return 

:TWAR7_29790
if 
  83@ == 1
goto_if_false @TWAR7_30007
set_lvar_text_label 86@s = 'SMO1_AA'
set_lvar_text_label 88@s = 'SMO1_AC'
set_lvar_text_label 90@s = 'SMO1_AD'
set_lvar_text_label 92@s = 'SMO1_AE'
set_lvar_text_label 94@s = 'SMO1_AF'
set_lvar_text_label 96@s = 'SMO1_AG'
set_lvar_text_label 98@s = 'SMO1_AH'
set_lvar_text_label 100@s = 'SMO1_AJ'
set_lvar_int_to_constant 112@ = 35000
set_lvar_int_to_constant 113@ = 35001
set_lvar_int_to_constant 114@ = 35002
set_lvar_int_to_constant 115@ = 35003
set_lvar_int_to_constant 116@ = 35004
set_lvar_int_to_constant 117@ = 35005
set_lvar_int_to_constant 118@ = 35006
set_lvar_int_to_constant 119@ = 35007
125@ = 8

:TWAR7_30007
if 
  83@ == 2
goto_if_false @TWAR7_30200
set_lvar_text_label 86@s = 'SMO1_BA'
set_lvar_text_label 88@s = 'SMO1_BB'
set_lvar_text_label 90@s = 'SMO1_BC'
set_lvar_text_label 92@s = 'SMO1_BD'
set_lvar_text_label 94@s = 'SMO1_BE'
set_lvar_text_label 96@s = 'SMO1_BF'
set_lvar_text_label 98@s = 'SMO1_BG'
set_lvar_int_to_constant 112@ = 35008
set_lvar_int_to_constant 113@ = 35009
set_lvar_int_to_constant 114@ = 35010
set_lvar_int_to_constant 115@ = 35011
set_lvar_int_to_constant 116@ = 35012
set_lvar_int_to_constant 117@ = 35013
set_lvar_int_to_constant 118@ = 35014
125@ = 7

:TWAR7_30200
if 
  83@ == 3
goto_if_false @TWAR7_30393
set_lvar_text_label 86@s = 'SMO1_CA'
set_lvar_text_label 88@s = 'SMO1_CB'
set_lvar_text_label 90@s = 'SMO1_CC'
set_lvar_text_label 92@s = 'SMO1_CD'
set_lvar_text_label 94@s = 'SMO1_CE'
set_lvar_text_label 96@s = 'SMO1_CF'
set_lvar_text_label 98@s = 'SMO1_CG'
set_lvar_int_to_constant 112@ = 35015
set_lvar_int_to_constant 113@ = 35016
set_lvar_int_to_constant 114@ = 35017
set_lvar_int_to_constant 115@ = 35018
set_lvar_int_to_constant 116@ = 35019
set_lvar_int_to_constant 117@ = 35020
set_lvar_int_to_constant 118@ = 35021
125@ = 7

:TWAR7_30393
if 
  83@ == 4
goto_if_false @TWAR7_30659
set_lvar_text_label 86@s = 'SMO1_CH'
set_lvar_text_label 88@s = 'SMO1_DB'
set_lvar_text_label 90@s = 'SMO1_CJ'
set_lvar_text_label 92@s = 'SMO1_CK'
set_lvar_text_label 94@s = 'SMO1_CL'
set_lvar_text_label 96@s = 'SMO1_CM'
set_lvar_text_label 98@s = 'SMO1_CN'
set_lvar_text_label 100@s = 'SMO1_CO'
set_lvar_text_label 102@s = 'SMO1_CP'
set_lvar_text_label 104@s = 'SMO1_DA'
set_lvar_int_to_constant 112@ = 35022
set_lvar_int_to_constant 113@ = 35031
set_lvar_int_to_constant 114@ = 35023
set_lvar_int_to_constant 115@ = 35024
set_lvar_int_to_constant 116@ = 35025
set_lvar_int_to_constant 117@ = 35026
set_lvar_int_to_constant 118@ = 35027
set_lvar_int_to_constant 119@ = 35028
set_lvar_int_to_constant 120@ = 35029
set_lvar_int_to_constant 121@ = 35030
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_30659
if 
  83@ == 5
goto_if_false @TWAR7_30732
set_lvar_text_label 86@s = 'SMO1_EA'
set_lvar_text_label 88@s = 'SMO1_EB'
set_lvar_int_to_constant 112@ = 35033
set_lvar_int_to_constant 113@ = 35034
125@ = 2

:TWAR7_30732
if 
  83@ == 6
goto_if_false @TWAR7_30998
set_lvar_text_label 86@s = 'SMO1_FA'
set_lvar_text_label 88@s = 'SMO1_FB'
set_lvar_text_label 90@s = 'SMO1_FC'
set_lvar_text_label 92@s = 'SMO1_FD'
set_lvar_text_label 94@s = 'SMO1_FE'
set_lvar_text_label 96@s = 'SMO1_FF'
set_lvar_text_label 98@s = 'SMO1_FG'
set_lvar_text_label 100@s = 'SMO1_FH'
set_lvar_text_label 102@s = 'SMO1_FJ'
set_lvar_text_label 104@s = 'SMO1_FK'
set_lvar_int_to_constant 112@ = 35035
set_lvar_int_to_constant 113@ = 35036
set_lvar_int_to_constant 114@ = 35037
set_lvar_int_to_constant 115@ = 35038
set_lvar_int_to_constant 116@ = 35039
set_lvar_int_to_constant 117@ = 35040
set_lvar_int_to_constant 118@ = 35041
set_lvar_int_to_constant 119@ = 35042
set_lvar_int_to_constant 120@ = 35043
set_lvar_int_to_constant 121@ = 35044
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_30998
if 
  83@ == 7
goto_if_false @TWAR7_31071
set_lvar_text_label 86@s = 'SMO1_GA'
set_lvar_text_label 88@s = 'SMO1_GB'
set_lvar_int_to_constant 112@ = 35047
set_lvar_int_to_constant 113@ = 35048
125@ = 2

:TWAR7_31071
if 
  83@ == 8
goto_if_false @TWAR7_31288
set_lvar_text_label 86@s = 'SMO1_HA'
set_lvar_text_label 88@s = 'SMO1_HB'
set_lvar_text_label 90@s = 'SMO1_HC'
set_lvar_text_label 92@s = 'SMO1_HD'
set_lvar_text_label 94@s = 'SMO1_HE'
set_lvar_text_label 96@s = 'SMO1_HF'
set_lvar_text_label 98@s = 'SMO1_HG'
set_lvar_text_label 100@s = 'SMO1_HH'
set_lvar_int_to_constant 112@ = 35053
set_lvar_int_to_constant 113@ = 35054
set_lvar_int_to_constant 114@ = 35055
set_lvar_int_to_constant 115@ = 35056
set_lvar_int_to_constant 116@ = 35057
set_lvar_int_to_constant 117@ = 35058
set_lvar_int_to_constant 118@ = 35059
set_lvar_int_to_constant 119@ = 35060
125@ = 8

:TWAR7_31288
if 
  83@ == 9
goto_if_false @TWAR7_31553
set_lvar_text_label 86@s = 'SMO1_JA'
set_lvar_text_label 88@s = 'SMO1_JB'
set_lvar_text_label 90@s = 'SMO1_JC'
set_lvar_text_label 92@s = 'SMO1_JD'
set_lvar_text_label 94@s = 'SMO1_JG'
set_lvar_text_label 96@s = 'SMO1_JM'
set_lvar_text_label 98@s = 'SMO1_JH'
set_lvar_text_label 100@s = 'SMO1_JJ'
set_lvar_text_label 102@s = 'SMO1_JK'
set_lvar_text_label 104@s = 'SMO1_JL'
set_lvar_int_to_constant 112@ = 35061
set_lvar_int_to_constant 113@ = 35062
set_lvar_int_to_constant 114@ = 35063
set_lvar_int_to_constant 115@ = 35064
set_lvar_int_to_constant 116@ = 35065
set_lvar_int_to_constant 117@ = 35070
set_lvar_int_to_constant 118@ = 35066
set_lvar_int_to_constant 119@ = 35067
set_lvar_int_to_constant 120@ = 35068
set_lvar_int_to_constant 121@ = 35069
125@ = 10

:TWAR7_31553
if 
  83@ == 10
goto_if_false @TWAR7_31698
set_lvar_text_label 86@s = 'SMO1_KA'
set_lvar_text_label 88@s = 'SMO1_KB'
set_lvar_text_label 90@s = 'SMO1_KC'
set_lvar_text_label 92@s = 'SMO1_KD'
set_lvar_text_label 94@s = 'SMO1_KE'
set_lvar_int_to_constant 112@ = 35071
set_lvar_int_to_constant 113@ = 35072
set_lvar_int_to_constant 114@ = 35073
set_lvar_int_to_constant 115@ = 35074
set_lvar_int_to_constant 116@ = 35075
125@ = 5

:TWAR7_31698
if 
  83@ == 11
goto_if_false @TWAR7_31868
set_lvar_text_label 86@s = 'SMOX_AA'
set_lvar_text_label 88@s = 'SMOX_AB'
set_lvar_text_label 90@s = 'SMOX_AC'
set_lvar_text_label 92@s = 'SMOX_AD'
set_lvar_text_label 94@s = 'SMOX_AE'
set_lvar_text_label 96@s = 'SMOX_AF'
set_lvar_int_to_constant 112@ = 35800
set_lvar_int_to_constant 113@ = 35801
set_lvar_int_to_constant 114@ = 35802
set_lvar_int_to_constant 115@ = 35803
set_lvar_int_to_constant 116@ = 35804
set_lvar_int_to_constant 117@ = 35805
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_31868
if 
  83@ == 14
goto_if_false @TWAR7_31960
set_lvar_text_label 86@s = 'LOCX_AA'
set_lvar_text_label 88@s = 'LOCX_AB'
set_lvar_text_label 90@s = 'LOCX_AC'
set_lvar_int_to_constant 112@ = 22400
set_lvar_int_to_constant 113@ = 22401
set_lvar_int_to_constant 114@ = 22402
set_lvar_int_to_lvar_int 125@ = 130@

:TWAR7_31960
if 
  83@ == 17
goto_if_false @TWAR7_32081
set_lvar_text_label 86@s = 'SMO1_GC'
set_lvar_text_label 88@s = 'SMO1_GD'
set_lvar_text_label 90@s = 'SMO1_GE'
set_lvar_text_label 92@s = 'SMO1_GF'
set_lvar_int_to_constant 112@ = 35049
set_lvar_int_to_constant 113@ = 35050
set_lvar_int_to_constant 114@ = 35051
set_lvar_int_to_constant 115@ = 35052
125@ = 4

:TWAR7_32081
set_lvar_int_to_lvar_int 128@ = 84@
126@ = 0
127@ = 0
129@ = 1
return 

:TWAR7_32112
if 
  is_int_lvar_greater_than_int_lvar 125@ > 128@
goto_if_false @TWAR7_32217
if 
  126@ == 0
goto_if_false @TWAR7_32174
load_mission_audio MissionAudioSlot.Slot1 {audioId} 112@(128@,13i)
128@ += 1
126@ = 1

:TWAR7_32174
if 
  127@ == 0
goto_if_false @TWAR7_32217
load_mission_audio MissionAudioSlot.Slot2 {audioId} 112@(128@,13i)
128@ += 1
127@ = 1

:TWAR7_32217
return 

:TWAR7_32219
if 
  129@ == 1
goto_if_false @TWAR7_32295
if 
  126@ == 1
goto_if_false @TWAR7_32295
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TWAR7_32295
play_mission_audio MissionAudioSlot.Slot1
print_now 86@(84@,13s) {time} 4500 {flag} 1
126@ = 2

:TWAR7_32295
if 
  129@ == 2
goto_if_false @TWAR7_32371
if 
  127@ == 1
goto_if_false @TWAR7_32371
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TWAR7_32371
play_mission_audio MissionAudioSlot.Slot2
print_now 86@(84@,13s) {time} 4500 {flag} 1
127@ = 2

:TWAR7_32371
return 

:TWAR7_32373
if 
  126@ == 2
goto_if_false @TWAR7_32436
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TWAR7_32436
clear_this_print 86@(84@,13s)
84@ += 1
129@ = 2
126@ = 0

:TWAR7_32436
if 
  127@ == 2
goto_if_false @TWAR7_32499
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TWAR7_32499
clear_this_print 86@(84@,13s)
84@ += 1
129@ = 1
127@ = 0

:TWAR7_32499
return 

//-------------Mission 28---------------
// Originally: Running Dog

:SMOKE2
script_name 'SMOKE2'
gosub @SMOKE2_47
if 
  has_deatharrest_been_executed 
goto_if_false @SMOKE2_38
gosub @SMOKE2_11327

:SMOKE2_38
gosub @SMOKE2_11407
terminate_this_script 

:SMOKE2_47
register_mission_given 
load_mission_text 'SMOKE2'
$onmission = 1
wait 0
36@ = 2068.4199
37@ = -1694.87
38@ = 13.3
39@ = 270.0
$s2_meet_x = 2514.3401
$s2_meet_y = -1411.9301
$s2_meet_z = 27.41
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
46@ = 22
47@ = 2459.8
69@ = -1402.1899
91@ = 24.06
48@ = 2442.0701
70@ = -1370.23
92@ = 24.06
49@ = 2414.49
71@ = -1369.36
93@ = 24.76
50@ = 2410.1899
72@ = -1364.03
94@ = 24.75
51@ = 2399.6799
73@ = -1358.24
95@ = 24.93
52@ = 2381.8799
74@ = -1354.88
96@ = 24.08
53@ = 2343.29
75@ = -1351.41
97@ = 24.06
54@ = 2336.29
76@ = -1310.99
98@ = 24.29
55@ = 2257.0701
77@ = -1291.85
99@ = 24.01
56@ = 2241.6101
78@ = -1281.61
100@ = 24.42
57@ = 2241.6101
79@ = -1264.6801
101@ = 24.37
58@ = 2239.48
80@ = -1260.91
102@ = 23.98
59@ = 2241.1799
81@ = -1257.88
103@ = 23.99
60@ = 2241.1799
82@ = -1254.46
104@ = 24.46
61@ = 2241.1799
83@ = -1238.3
105@ = 25.21
62@ = 2221.54
84@ = -1235.75
106@ = 24.62
63@ = 2202.27
85@ = -1236.72
107@ = 24.0
64@ = 2202.21
86@ = -1257.05
108@ = 23.91
65@ = 2199.5701
87@ = -1263.15
109@ = 23.92
66@ = 2199.0801
88@ = -1279.4399
110@ = 24.57
67@ = 2182.0701
89@ = -1280.2
111@ = 24.68
68@ = 2175.1799
90@ = -1282.8199
112@ = 24.02
126@ = 2117.8601
127@ = -1071.42
128@ = 24.64
129@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
157@ = 0
158@ = 0
160@ = 0
182@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:SMOKE2_1021
if 
  get_fading_status 
goto_if_false @SMOKE2_1045
wait 0
goto @SMOKE2_1021

:SMOKE2_1045
clear_area 2069.8999 {y} -1702.73 {z} 12.59 {radius} 100.0 {clearParticles} False
request_model #LAE_SMOKECUTSCENE

:SMOKE2_1074
if 
  not has_model_loaded #LAE_SMOKECUTSCENE
goto_if_false @SMOKE2_1101
wait 0
goto @SMOKE2_1074

:SMOKE2_1101
187@ = create_object_no_offset #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 15.0
load_cutscene 'SMOKE2A'

:SMOKE2_1135
if 
  not has_cutscene_loaded 
goto_if_false @SMOKE2_1159
wait 0
goto @SMOKE2_1135

:SMOKE2_1159
start_cutscene 
do_fade 1000 {direction} Fade.In

:SMOKE2_1168
if 
  not has_cutscene_finished 
goto_if_false @SMOKE2_1192
wait 0
goto @SMOKE2_1168

:SMOKE2_1192
do_fade 0 {direction} Fade.Out

:SMOKE2_1198
if 
  get_fading_status 
goto_if_false @SMOKE2_1222
wait 0
goto @SMOKE2_1198

:SMOKE2_1222
clear_cutscene 
set_player_control $player1 {state} False
mark_model_as_no_longer_needed #LAE_SMOKECUTSCENE
delete_object 187@
load_special_character 1 {modelName} 'SMOKE'
request_model 466
request_model 346
load_all_models_now 

:SMOKE2_1266
if or
  not has_special_character_loaded 1
  not has_model_loaded 466
  not has_model_loaded 346
goto_if_false @SMOKE2_1302
wait 0
goto @SMOKE2_1266

:SMOKE2_1302
gosub @SMOKE2_5382
load_scene 2069.8999 {y} -1702.73 {z} 12.59
clear_area 2069.8999 {y} -1702.73 {z} 12.59 {radius} 100.0 {clearParticles} False
clear_area $s2_meet_x {y} $s2_meet_y {z} $s2_meet_z {radius} 100.0 {clearParticles} False
switch_roads_off 2488.0 {leftBottomY} -1431.9301 {leftBottomZ} 25.41 {rightTopX} 2528.0 {rightTopY} -1391.9301 {rightTopZ} 29.41
switch_roads_off 2252.8899 {leftBottomY} -1286.37 {leftBottomZ} 22.25 {rightTopX} 2258.8899 {rightTopY} -1280.37 {rightTopZ} 28.25
set_radio_channel RadioChannel.BounceFM
set_char_coordinates $scplayer {x} 2070.8701 {y} -1703.01 {z} 12.55
set_char_heading $scplayer {heading} 0.0
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  182@ == 1
goto_if_false @SMOKE2_1678
34@ = create_car 466 {x} 0.0 {y} 0.0 {z} -100.0
183@ = add_blip_for_car 34@
35@ = create_char PedType.Mission1 {modelId} 290 {x} 0.0 {y} 0.0 {z} -100.0
41@ = create_char PedType.Mission2 {modelId} 108 {x} 0.0 {y} 0.0 {z} -100.0
42@ = create_car 405 {x} 0.0 {y} 0.0 {z} -100.0
43@ = create_char_inside_car 42@ {pedType} PedType.Mission2 {modelId} 109
44@ = create_char PedType.Mission2 {modelId} 109 {x} 0.0 {y} 0.0 {z} -100.0
45@ = create_char PedType.Mission2 {modelId} 110 {x} 0.0 {y} 0.0 {z} -100.0

:SMOKE2_1678
switch_ped_roads_off 2458.5 {leftBottomY} -1410.63 {leftBottomZ} 24.06 {rightTopX} 2504.27 {rightTopY} -1395.83 {rightTopZ} 28.55
115@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 47@ {y} 69@ {z} 91@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 48@ {y} 70@ {z} 92@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 49@ {y} 71@ {z} 93@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 50@ {y} 72@ {z} 94@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 51@ {y} 73@ {z} 95@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 52@ {y} 74@ {z} 96@ {speed} MoveState.Run {time} -1
close_sequence_task 115@
116@ = open_sequence_task 
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 53@ {y} 75@ {z} 97@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 54@ {y} 76@ {z} 98@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 55@ {y} 77@ {z} 99@ {speed} MoveState.Sprint {time} -1
task_go_straight_to_coord -1 {x} 2254.0901 {y} -1283.83 {z} 25.18 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 56@ {y} 78@ {z} 100@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 57@ {y} 79@ {z} 101@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
close_sequence_task 116@
117@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 58@ {y} 80@ {z} 102@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 59@ {y} 81@ {z} 103@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 60@ {y} 82@ {z} 104@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 61@ {y} 83@ {z} 105@ {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 62@ {y} 84@ {z} 106@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
close_sequence_task 117@
118@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 63@ {y} 85@ {z} 107@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 64@ {y} 86@ {z} 108@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 65@ {y} 87@ {z} 109@ {speed} MoveState.Run {time} -1
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} 66@ {y} 88@ {z} 110@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 67@ {y} 89@ {z} 111@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 68@ {y} 90@ {z} 112@ {speed} MoveState.Run {time} -1
close_sequence_task 118@
114@ = open_sequence_task 
perform_sequence_task -1 {sequence} 115@
perform_sequence_task -1 {sequence} 116@
perform_sequence_task -1 {sequence} 117@
perform_sequence_task -1 {sequence} 118@
close_sequence_task 114@
print_now 'SMK2_1' {time} 10000 {flag} 0

:SMOKE2_2258
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SMOKE2_2284
goto @SMOKE2_11352

:SMOKE2_2284
if and
  162@ <> 1
  not is_char_dead 35@
  not is_car_dead 34@
goto_if_false @SMOKE2_2436
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_2436
remove_blip 183@
184@ = add_blip_for_coord $s2_meet_x {y} $s2_meet_y {z} $s2_meet_z
162@ = 1
163@ = 1
print_now 'SMK2_2' {time} 11000 {flag} 0
40@ = create_pickup_with_ammo 346 {pickupType} PickupType.Once {ammo} 100 {x} 2444.895 {y} -1981.524 {z} 13.933
186@ = add_sprite_blip_for_coord 2444.895 {y} -1981.524 {z} 13.933 {sprite} RadarSprite.EmmetGun
TIMERA = 0

:SMOKE2_2436
if and
  162@ == 1
  166@ <> 1
  not is_char_dead 35@
  not is_car_dead 34@
goto_if_false @SMOKE2_3206
if 
  167@ <> 1
goto_if_false @SMOKE2_2517
if 
  has_pickup_been_collected 40@
goto_if_false @SMOKE2_2517
remove_blip 186@
167@ = 1

:SMOKE2_2517
if and
  163@ == 1
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_2743
remove_blip 184@
183@ = add_blip_for_car 34@
set_blip_as_friendly 183@ {state} True
gosub @SMOKE2_10751
if 
  is_char_dead 35@
goto_if_false @SMOKE2_2613
clear_mission_audio MissionAudioSlot.Slot2
print_now 'SMK2_7' {time} 4000 {flag} 0
goto @SMOKE2_11327

:SMOKE2_2613
if 
  is_car_dead 34@
goto_if_false @SMOKE2_2652
print_now 'SMK2_12' {time} 5000 {flag} 0
goto @SMOKE2_11327

:SMOKE2_2652
if or
  not locate_char_any_means_2d $scplayer {x} 2444.895 {y} -1981.524 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  167@ == 1
goto_if_false @SMOKE2_2720
print_now 'SMK2_3' {time} 5000 {flag} 0
goto @SMOKE2_2736

:SMOKE2_2720
print_now 'SMK2_16' {time} 5000 {flag} 0

:SMOKE2_2736
163@ = 0

:SMOKE2_2743
if and
  163@ == 0
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_2829
remove_blip 183@
184@ = add_blip_for_coord $s2_meet_x {y} $s2_meet_y {z} $s2_meet_z
if 
  165@ == 1
goto_if_false @SMOKE2_2822
print_now 'SMK2_15' {time} 5000 {flag} 0

:SMOKE2_2822
163@ = 1

:SMOKE2_2829
if 
  163@ == 1
goto_if_false @SMOKE2_3005
if and
  164@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_2917
161@ = 2
gosub @SMOKE2_9893
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_2910
shut_char_up_for_scripted_speech 35@ {state} True

:SMOKE2_2910
164@ = 1

:SMOKE2_2917
if and
  164@ == 1
  165@ <> 1
goto_if_false @SMOKE2_3005
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_2975
gosub @SMOKE2_10520
goto @SMOKE2_3005

:SMOKE2_2975
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_2998
shut_char_up_for_scripted_speech 35@ {state} False

:SMOKE2_2998
165@ = 1

:SMOKE2_3005
if 
  163@ == 1
goto_if_false @SMOKE2_3206
if 
  locate_char_in_car_3d $scplayer {x} $s2_meet_x {y} $s2_meet_y {z} $s2_meet_z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SMOKE2_3206
set_player_control $player1 {state} False
166@ = 1
remove_blip 184@
remove_blip 186@
switch_roads_back_to_original 2488.0 {leftBottomY} -1431.9301 {leftBottomZ} 25.41 {rightTopX} 2528.0 {rightTopY} -1391.9301 {rightTopZ} 29.41
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3144
shut_char_up_for_scripted_speech 35@ {state} False

:SMOKE2_3144
gosub @SMOKE2_5582
switch_roads_off 2164.51 {leftBottomY} -1287.88 {leftBottomZ} 20.0 {rightTopX} 2170.8799 {rightTopY} -1267.88 {rightTopZ} 30.0
print_now 'SMK2_17' {time} 10000 {flag} 0
TIMERA = 0

:SMOKE2_3206
if 
  166@ == 1
goto_if_false @SMOKE2_5048
if and
  168@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3275
print_help_forever 'SMK2_H1'
168@ = 1
TIMERA = 0

:SMOKE2_3275
if and
  168@ == 1
  169@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3333
print_help_forever 'SMK2_H2'
169@ = 1
TIMERA = 0

:SMOKE2_3333
if and
  169@ == 1
  170@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3391
print_help_forever 'SPRSTAM'
170@ = 1
TIMERA = 0

:SMOKE2_3391
if and
  170@ == 1
  171@ <> 1
  TIMERA > 10000
goto_if_false @SMOKE2_3433
clear_help 
171@ = 1

:SMOKE2_3433
if 
  173@ <> 1
goto_if_false @SMOKE2_3673
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3549
if and
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
  172@ <> 1
goto_if_false @SMOKE2_3549
161@ = 1
gosub @SMOKE2_9893
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3542
shut_char_up_for_scripted_speech 35@ {state} True

:SMOKE2_3542
172@ = 1

:SMOKE2_3549
if and
  172@ == 1
  161@ == 1
goto_if_false @SMOKE2_3673
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_3643
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3623
gosub @SMOKE2_10520
goto @SMOKE2_3636

:SMOKE2_3623
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
173@ = 1

:SMOKE2_3636
goto @SMOKE2_3673

:SMOKE2_3643
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_3666
shut_char_up_for_scripted_speech 35@ {state} False

:SMOKE2_3666
173@ = 1

:SMOKE2_3673
if 
  174@ <> 1
goto_if_false @SMOKE2_3806
if 
  locate_char_any_means_2d $scplayer {x} 2354.1101 {y} -1355.54 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SMOKE2_3806
113@ = 0

:SMOKE2_3736
if 
  2 > 113@
goto_if_false @SMOKE2_3799
if 
  not is_char_dead 44@(113@,2i)
goto_if_false @SMOKE2_3785
set_char_kinda_stay_in_same_place 44@(113@,2i) {state} False

:SMOKE2_3785
113@ += 1
goto @SMOKE2_3736

:SMOKE2_3799
174@ = 1

:SMOKE2_3806
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_4137
if 
  175@ <> 1
goto_if_false @SMOKE2_3912
122@ = get_script_task_status 41@ {taskId} 1952
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_3912
119@, 120@ = get_sequence_progress_recursive 41@
if and
  119@ == 1
  120@ == 4
goto_if_false @SMOKE2_3912
175@ = 1

:SMOKE2_3912
if 
  175@ <> 1
goto_if_false @SMOKE2_4037
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_3978
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.5

:SMOKE2_3978
if 
  is_char_playing_anim 41@ {animationName} "SPRINT_CIVI"
goto_if_false @SMOKE2_4030
set_char_anim_speed 41@ {animName} "SPRINT_CIVI" {animSpeed} 1.5

:SMOKE2_4030
goto @SMOKE2_4137

:SMOKE2_4037
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_4085
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.2

:SMOKE2_4085
if 
  is_char_playing_anim 41@ {animationName} "SPRINT_CIVI"
goto_if_false @SMOKE2_4137
set_char_anim_speed 41@ {animName} "SPRINT_CIVI" {animSpeed} 1.2

:SMOKE2_4137
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_5041
if 
  176@ <> 1
goto_if_false @SMOKE2_4314
set_lvar_int_to_lvar_int 113@ = 46@
113@ -= 1
122@ = get_script_task_status 41@ {taskId} 1952
if and
  is_int_lvar_equal_to_constant 122@ == 7
  locate_char_any_means_3d 41@ {x} 47@(113@,22f) {y} 69@(113@,22f) {z} 91@(113@,22f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SMOKE2_4314
176@ = 1
if and
  not is_car_dead 42@
  not is_char_dead 43@
goto_if_false @SMOKE2_4314
if 
  not is_car_on_fire 42@
goto_if_false @SMOKE2_4314
task_enter_car_as_passenger 41@ {vehicle} 42@ {time} -2 {seat} SeatId.BikeRear

:SMOKE2_4314
if 
  180@ <> 1
goto_if_false @SMOKE2_4384
if and
  not is_char_dead 43@
  not is_car_dead 42@
goto_if_false @SMOKE2_4384
if 
  is_car_on_fire 42@
goto_if_false @SMOKE2_4384
task_kill_char_on_foot 43@ {target} $scplayer
180@ = 1

:SMOKE2_4384
if and
  176@ == 1
  177@ <> 1
goto_if_false @SMOKE2_5034
if 
  178@ <> 1
goto_if_false @SMOKE2_4743
if and
  not is_car_dead 42@
  not is_char_dead 43@
goto_if_false @SMOKE2_4631
if 
  is_char_in_car 41@ {vehicle} 42@
goto_if_false @SMOKE2_4631
178@ = 1
task_car_drive_wander 43@ {vehicle} 42@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 41@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
switch_roads_back_to_original 2164.51 {leftBottomY} -1287.88 {leftBottomZ} 20.0 {rightTopX} 2170.8799 {rightTopY} -1267.88 {rightTopZ} 30.0
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_4608
print_now 'SMK2_9' {time} 10000 {flag} 0
goto @SMOKE2_4624

:SMOKE2_4608
print_now 'SMK2_8' {time} 10000 {flag} 0

:SMOKE2_4624
TIMERA = 0

:SMOKE2_4631
if 
  178@ <> 1
goto_if_false @SMOKE2_4743
if or
  is_car_dead 42@
  is_char_dead 43@
goto_if_false @SMOKE2_4702
task_smart_flee_char 41@ {threat} $scplayer {radius} 1000.0 {time} 9999999
177@ = 1
goto @SMOKE2_4743

:SMOKE2_4702
if 
  is_car_on_fire 42@
goto_if_false @SMOKE2_4743
task_smart_flee_char 41@ {threat} $scplayer {radius} 1000.0 {time} 9999999
177@ = 1

:SMOKE2_4743
if 
  178@ == 1
goto_if_false @SMOKE2_5034
if 
  177@ <> 1
goto_if_false @SMOKE2_4889
if 
  not is_car_dead 42@
goto_if_false @SMOKE2_4889
125@ = get_driver_of_car 42@
if or
  is_car_on_fire 42@
  125@ == -1
goto_if_false @SMOKE2_4889
task_smart_flee_char 41@ {threat} $scplayer {radius} 1000.0 {time} 9999999
if and
  not is_char_dead 43@
  180@ <> 1
goto_if_false @SMOKE2_4882
task_kill_char_on_foot 43@ {target} $scplayer
180@ = 1

:SMOKE2_4882
177@ = 1

:SMOKE2_4889
if 
  177@ <> 1
goto_if_false @SMOKE2_5034
if and
  179@ <> 1
  TIMERA > 180000
goto_if_false @SMOKE2_5034
if and
  not is_car_dead 42@
  not is_char_dead 43@
goto_if_false @SMOKE2_5034
if and
  is_char_in_car 43@ {vehicle} 42@
  is_char_in_car 41@ {vehicle} 42@
goto_if_false @SMOKE2_5034
task_car_drive_to_coord 43@ {vehicle} 42@ {x} 126@ {y} 127@ {z} 128@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
179@ = 1
print_now 'SMK2_10' {time} 7000 {flag} 0

:SMOKE2_5034
goto @SMOKE2_5048

:SMOKE2_5041
goto @SMOKE2_11352

:SMOKE2_5048
if 
  is_char_dead 35@
goto_if_false @SMOKE2_5087
print_now 'SMK2_7' {time} 4000 {flag} 0
goto @SMOKE2_11327

:SMOKE2_5087
if and
  166@ <> 1
  is_car_dead 34@
goto_if_false @SMOKE2_5133
print_now 'SMK2_12' {time} 5000 {flag} 0
goto @SMOKE2_11327

:SMOKE2_5133
if and
  176@ == 1
  not is_char_dead 41@
goto_if_false @SMOKE2_5210
if 
  not locate_char_any_means_char_2d $scplayer {target} 41@ {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @SMOKE2_5210
print_now 'SMK2_11' {time} 4000 {flag} 0
goto @SMOKE2_11327

:SMOKE2_5210
if and
  179@ == 1
  177@ <> 1
  not is_char_dead 41@
  not is_char_dead 43@
  not is_car_dead 42@
goto_if_false @SMOKE2_5375
if and
  is_char_in_car 41@ {vehicle} 42@
  is_char_in_car 43@ {vehicle} 42@
  locate_car_3d 42@ {x} 126@ {y} 127@ {z} 128@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE2_5375
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @SMOKE2_5347
gosub @SMOKE2_8283
goto @SMOKE2_5352

:SMOKE2_5347
remove_char_elegantly 41@

:SMOKE2_5352
print_now 'SMK2_11' {time} 4000 {flag} 0
goto @SMOKE2_11327

:SMOKE2_5375
goto @SMOKE2_2258

:SMOKE2_5382
custom_plate_for_next_car 466 {text} "_A2TMFK_"
34@ = create_car 466 {x} 36@ {y} 37@ {z} 38@
set_car_heading 34@ {heading} 39@
change_car_colour 34@ {color1} 98 {color2} 14
183@ = add_blip_for_car 34@
set_blip_as_friendly 183@ {state} True
35@ = create_char_as_passenger 34@ {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.BikeRear
set_char_health 35@ {health} 500
set_char_max_health 35@ {maxHealth} 500
give_weapon_to_char 35@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_only_damaged_by_player 35@ {state} True
set_char_never_targetted 35@ {state} True
set_char_suffers_critical_hits 35@ {state} False
set_anim_group_for_char 35@ {animGroup} "FATMAN"
set_char_cant_be_dragged_out 35@ {state} True
set_char_stay_in_car_when_jacked 35@ {state} True
set_char_get_out_upside_down_car 35@ {state} False
124@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 124@ {event} Event.VehicleOnFire
set_char_decision_maker 35@ {handleOrTemplate} 124@
clear_all_char_relationships 35@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 35@ {relationshipType} RelationshipType.Hate
return 

:SMOKE2_5582
do_fade 1000 {direction} Fade.Out

:SMOKE2_5589
if 
  get_fading_status 
goto_if_false @SMOKE2_5613
wait 0
goto @SMOKE2_5589

:SMOKE2_5613
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_area $s2_meet_x {y} $s2_meet_y {z} $s2_meet_z {radius} 150.0 {clearParticles} True
switch_roads_off 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
switch_ped_roads_off 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
set_car_density_multiplier 0.0
192@, 193@ = get_random_car_model_in_memory True
if 
  192@ <> -1
goto_if_false @SMOKE2_5822
188@ = create_car 192@ {x} 2448.3101 {y} -1392.34 {z} 23.68
190@ = create_random_char_as_driver 188@
set_car_heading 188@ {heading} 180.0
189@ = create_car 192@ {x} 2453.7 {y} -1408.14 {z} 23.68
191@ = create_random_char_as_driver 189@
set_car_heading 189@ {heading} 0.0

:SMOKE2_5822
if 
  not is_car_dead 34@
goto_if_false @SMOKE2_5932
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SMOKE2_5877
warp_char_from_car_to_coord $scplayer {x} 2473.6001 {y} -1420.86 {z} 27.88

:SMOKE2_5877
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_5932
if 
  is_char_in_car 35@ {vehicle} 34@
goto_if_false @SMOKE2_5932
warp_char_from_car_to_coord 35@ {x} 2470.6001 {y} -1420.86 {z} 27.88

:SMOKE2_5932
delete_car 34@
set_player_control $player1 {state} False
make_player_safe_for_cutscene $player1
load_cutscene 'SMOKE2B'

:SMOKE2_5960
if 
  not has_cutscene_loaded 
goto_if_false @SMOKE2_5984
wait 0
goto @SMOKE2_5960

:SMOKE2_5984
start_cutscene 
do_fade 1000 {direction} Fade.In

:SMOKE2_5993
if 
  not has_cutscene_finished 
goto_if_false @SMOKE2_6017
wait 0
goto @SMOKE2_5993

:SMOKE2_6017
do_fade 0 {direction} Fade.Out

:SMOKE2_6023
if 
  get_fading_status 
goto_if_false @SMOKE2_6047
wait 0
goto @SMOKE2_6023

:SMOKE2_6047
clear_cutscene 
set_player_control $player1 {state} False
switch_widescreen True
set_car_density_multiplier 1.0
request_model 108
request_model 109
request_model 110
request_model 405
request_model 352
load_all_models_now 

:SMOKE2_6091
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 405
  not has_model_loaded 352
goto_if_false @SMOKE2_6135
wait 0
goto @SMOKE2_6091

:SMOKE2_6135
set_lvar_text_label 130@s = 'SMO2B11'
set_lvar_int_to_constant 148@ = 35200
$s2_random_int = generate_random_int_in_range 0 {max} 3
if 
  $s2_random_int == 0
goto_if_false @SMOKE2_6210
set_lvar_text_label 132@s = 'SMO2_CA'
set_lvar_int_to_constant 149@ = 35214

:SMOKE2_6210
if 
  $s2_random_int == 1
goto_if_false @SMOKE2_6252
set_lvar_text_label 132@s = 'SMO2_CB'
set_lvar_int_to_constant 149@ = 35215

:SMOKE2_6252
if 
  $s2_random_int == 2
goto_if_false @SMOKE2_6294
set_lvar_text_label 132@s = 'SMO2_CC'
set_lvar_int_to_constant 149@ = 35216

:SMOKE2_6294
load_mission_audio MissionAudioSlot.Slot1 {audioId} 148@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 149@

:SMOKE2_6308
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE2_6338
wait 0
goto @SMOKE2_6308

:SMOKE2_6338
load_scene 2471.99 {y} -1402.3199 {z} 27.82
41@ = create_char PedType.Mission2 {modelId} 108 {x} 2471.99 {y} -1402.3199 {z} 27.82
set_char_heading 41@ {heading} 90.0
set_char_health 41@ {health} 200
set_char_max_health 41@ {maxHealth} 200
set_char_money 41@ {amount} 500
set_char_only_damaged_by_player 41@ {state} True
give_weapon_to_char 41@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 41@ {accuracy} 5
set_char_stay_in_same_place 41@ {state} True
clear_all_char_relationships 41@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 41@ {relationshipType} RelationshipType.Hate
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_6484
perform_sequence_task 41@ {sequence} 114@

:SMOKE2_6484
set_char_coordinates $scplayer {x} 2473.99 {y} -1402.3199 {z} 27.82
set_char_heading $scplayer {heading} 90.0
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_6560
set_char_coordinates 35@ {x} 2474.99 {y} -1402.3199 {z} 27.82
set_char_heading 35@ {heading} 90.0

:SMOKE2_6560
set_fixed_camera_position 2460.9929 {y} -1400.991 {z} 24.5671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2461.876 {y} -1401.406 {z} 24.7836 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SMOKE2_6618
if 
  get_fading_status 
goto_if_false @SMOKE2_6642
wait 0
goto @SMOKE2_6618

:SMOKE2_6642
181@ = 1
skip_cutscene_start_internal @SMOKE2_7459
wait 2000
flush_route 
extend_route 47@ {y} 69@ {z} 91@
extend_route 48@ {y} 70@ {z} 92@
task_follow_point_route $scplayer {speed} MoveState.Run {mode} RouteMode.Once
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_6786
121@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 47@ {y} 69@ {z} 91@ {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 121@
perform_sequence_task 35@ {sequence} 121@
clear_sequence_task 121@

:SMOKE2_6786
play_mission_audio MissionAudioSlot.Slot1
print_now 130@s {time} 10000 {flag} 1
wait 4000
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  192@ <> -1
goto_if_false @SMOKE2_6884
if and
  not is_char_dead 190@
  not is_car_dead 188@
goto_if_false @SMOKE2_6884
task_car_drive_to_coord 190@ {vehicle} 188@ {x} 2448.3101 {y} -1429.92 {z} 23.68 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:SMOKE2_6884
set_fixed_camera_position 2459.7161 {y} -1406.5291 {z} 23.4481 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2459.658 {y} -1405.536 {z} 23.553 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_7070
122@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7070
119@ = get_sequence_progress 35@

:SMOKE2_6988
if 
  0 >= 119@
goto_if_false @SMOKE2_7070
wait 0
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_7063
122@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7063
119@ = get_sequence_progress 35@

:SMOKE2_7063
goto @SMOKE2_6988

:SMOKE2_7070
play_mission_audio MissionAudioSlot.Slot2
print_now 132@s {time} 10000 {flag} 1

:SMOKE2_7084
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE2_7110
wait 0
goto @SMOKE2_7084

:SMOKE2_7110
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
wait 1000
clear_area 49@ {y} 71@ {z} 93@ {radius} 35.0 {clearParticles} False
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7193
set_char_coordinates 41@ {x} 49@ {y} 71@ {z} 23.74
set_char_heading 41@ {heading} 45.0
perform_sequence_task_from_progress 41@ {sequence} 114@ {startTaskIndex} 0 {endTaskIndex} 3

:SMOKE2_7193
set_fixed_camera_position 2406.6499 {y} -1358.0 {z} 25.33 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 50@ {y} 72@ {z} 94@ {switchStyle} SwitchType.JumpCut
wait 1000
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7391
122@ = get_script_task_status 41@ {taskId} 1952
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7391
119@, 120@ = get_sequence_progress_recursive 41@

:SMOKE2_7299
if and
  119@ == 0
  3 >= 120@
goto_if_false @SMOKE2_7391
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7384
122@ = get_script_task_status 41@ {taskId} 1952
if 
  is_int_lvar_equal_to_constant 122@ == 1
goto_if_false @SMOKE2_7384
119@, 120@ = get_sequence_progress_recursive 41@

:SMOKE2_7384
goto @SMOKE2_7299

:SMOKE2_7391
wait 2200
set_fixed_camera_position 2404.8101 {y} -1354.37 {z} 25.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2401.3999 {y} -1356.79 {z} 25.31 {switchStyle} SwitchType.JumpCut
wait 4500
181@ = 0

:SMOKE2_7459
skip_cutscene_end 
if 
  181@ == 1
goto_if_false @SMOKE2_7665
if 
  not is_char_dead 35@
goto_if_false @SMOKE2_7597
if 
  is_char_in_any_car 35@
goto_if_false @SMOKE2_7534
warp_char_from_car_to_coord 35@ {x} 47@ {y} 69@ {z} 23.06
goto @SMOKE2_7550

:SMOKE2_7534
set_char_coordinates 35@ {x} 47@ {y} 69@ {z} 23.06

:SMOKE2_7550
set_char_heading 35@ {heading} 90.0
task_play_anim 35@ {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SMOKE2_7597
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7655
set_char_coordinates 41@ {x} 2390.73 {y} -1355.6899 {z} 23.74
set_char_heading 41@ {heading} 81.47
perform_sequence_task_from_progress 41@ {sequence} 114@ {startTaskIndex} 0 {endTaskIndex} 7

:SMOKE2_7655
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 

:SMOKE2_7665
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_7767
123@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 123@ {event} Event.VehicleOnFire
clear_char_decision_maker_event_response 123@ {event} Event.Damage
clear_char_decision_maker_event_response 123@ {event} Event.ShotFired
clear_char_decision_maker_event_response 123@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 123@ {event} Event.GotKnockedOverByCar
clear_char_decision_maker_event_response 123@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 123@ {event} Event.AcquaintancePedDislike
clear_char_decision_maker_event_response 123@ {event} Event.DeadPed
clear_char_decision_maker_event_response 123@ {event} Event.SexyPed
set_char_decision_maker 41@ {handleOrTemplate} 123@
185@ = add_blip_for_char 41@

:SMOKE2_7767
clear_area 2170.6799 {y} -1282.01 {z} 23.7 {radius} 100.0 {clearParticles} False
42@ = create_car 405 {x} 2170.6799 {y} -1282.01 {z} 23.7
43@ = create_char_inside_car 42@ {pedType} PedType.Mission2 {modelId} 109
set_car_heading 42@ {heading} 357.03
set_car_only_damaged_by_player 42@ {state} True
set_can_burst_car_tyres 42@ {state} False
lock_car_doors 42@ {lockStatus} CarLock.LockoutPlayerOnly
set_char_only_damaged_by_player 43@ {state} True
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 99999
clear_area 2353.8601 {y} -1356.92 {z} 23.41 {radius} 5.0 {clearParticles} False
44@ = create_char PedType.Mission2 {modelId} 109 {x} 2353.8601 {y} -1356.92 {z} 23.41
45@ = create_char PedType.Mission2 {modelId} 110 {x} 2354.1101 {y} -1355.54 {z} 23.41
set_char_heading 44@ {heading} 90.0
set_char_heading 45@ {heading} 270.0
113@ = 0

:SMOKE2_7975
if 
  2 > 113@
goto_if_false @SMOKE2_8090
set_char_only_damaged_by_player 44@(113@,2i) {state} True
give_weapon_to_char 44@(113@,2i) {weaponType} WeaponType.Pistol {ammo} 99999
set_char_accuracy 44@(113@,2i) {accuracy} 50
clear_all_char_relationships 44@(113@,2i) {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 44@(113@,2i) {relationshipType} RelationshipType.Hate
set_char_kinda_stay_in_same_place 44@(113@,2i) {state} True
task_kill_char_on_foot 44@(113@,2i) {target} $scplayer
113@ += 1
goto @SMOKE2_7975

:SMOKE2_8090
mark_model_as_no_longer_needed 110
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_8133
warp_char_from_car_to_coord $scplayer {x} 48@ {y} 70@ {z} 23.05
goto @SMOKE2_8149

:SMOKE2_8133
set_char_coordinates $scplayer {x} 48@ {y} 70@ {z} 23.05

:SMOKE2_8149
set_char_heading $scplayer {heading} 90.0
switch_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
switch_ped_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
if 
  192@ <> -1
goto_if_false @SMOKE2_8261
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 190@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 191@

:SMOKE2_8261
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_char_tasks $scplayer
return 

:SMOKE2_8283
set_player_control $player1 {state} False
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_8321
set_char_proofs 41@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE2_8321
if 
  not is_char_dead 43@
goto_if_false @SMOKE2_8352
set_char_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE2_8352
if 
  not is_car_dead 42@
goto_if_false @SMOKE2_8383
set_car_proofs 42@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE2_8383
do_fade 1000 {direction} Fade.Out

:SMOKE2_8390
if 
  get_fading_status 
goto_if_false @SMOKE2_8414
wait 0
goto @SMOKE2_8390

:SMOKE2_8414
clear_area 126@ {y} 127@ {z} 128@ {radius} 100.0 {clearParticles} False
switch_roads_off 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_ped_roads_off 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
195@, 196@, 197@ = get_char_coordinates $scplayer
198@ = get_char_heading $scplayer
200@ = get_water_height_at_coords 195@ {y} 196@ {waves} False
199@ = get_ground_z_for_3d_coord 195@ {y} 196@ {z} 197@
if 
  is_float_lvar_greater_than_float_lvar 200@ > 199@
goto_if_false @SMOKE2_8572
set_lvar_float_to_lvar_float 199@ = 200@

:SMOKE2_8572
request_collision 126@ {y} 127@
load_scene 126@ {y} 127@ {z} 128@
switch_roads_off 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_ped_roads_off 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
clear_area 2092.9099 {y} -1097.01 {z} 24.53 {radius} 20.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2092.9099 {y} -1097.01 {z} -100.0
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_8733
194@ = store_car_char_is_in $scplayer
set_car_heading 194@ {heading} 242.86

:SMOKE2_8733
if 
  not is_car_dead 42@
goto_if_false @SMOKE2_8907
set_car_coordinates 42@ {x} 126@ {y} 127@ {z} -100.0
set_car_heading 42@ {heading} 50.74
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_8842
clear_char_tasks_immediately 41@
if 
  is_char_in_any_car 41@
goto_if_false @SMOKE2_8832
warp_char_from_car_to_coord 41@ {x} 2115.98 {y} -1059.4301 {z} 24.75

:SMOKE2_8832
warp_char_into_car_as_passenger 41@ {handle} 42@ {seat} SeatId.BikeRear

:SMOKE2_8842
if 
  not is_char_dead 43@
goto_if_false @SMOKE2_8907
clear_char_tasks_immediately 43@
if 
  is_char_in_any_car 43@
goto_if_false @SMOKE2_8899
warp_char_from_car_to_coord 43@ {x} 2117.04 {y} -1061.53 {z} 24.53

:SMOKE2_8899
warp_char_into_car 43@ {vehicle} 42@

:SMOKE2_8907
wait 1000
switch_widescreen True
set_fixed_camera_position 2110.5601 {y} -1067.61 {z} 25.27 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2114.8401 {y} -1067.77 {z} 25.63 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9105
flush_route 
extend_route 2121.0 {y} -1068.03 {z} 23.82
extend_route 2127.23 {y} -1061.17 {z} 28.33
extend_route 2139.74 {y} -1066.8199 {z} 34.06
extend_route 2143.6299 {y} -1066.27 {z} 34.06
extend_route 2157.1499 {y} -1072.39 {z} 39.48
201@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 201@
perform_sequence_task 41@ {sequence} 201@
clear_sequence_task 201@

:SMOKE2_9105
do_fade 500 {direction} Fade.In

:SMOKE2_9112
if 
  get_fading_status 
goto_if_false @SMOKE2_9200
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9193
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_9193
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.0

:SMOKE2_9193
goto @SMOKE2_9112

:SMOKE2_9200
202@ = 0
203@ = 0
181@ = 1
skip_cutscene_start_internal @SMOKE2_9525

:SMOKE2_9228
if 
  203@ <> 1
goto_if_false @SMOKE2_9518
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9511
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_9314
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.0

:SMOKE2_9314
if 
  202@ <> 1
goto_if_false @SMOKE2_9438
if 
  locate_char_on_foot_3d 41@ {x} 2143.6299 {y} -1066.27 {z} 34.06 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE2_9438
set_fixed_camera_position 2131.97 {y} -1067.61 {z} 33.57 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2137.3799 {y} -1068.03 {z} 34.43 {switchStyle} SwitchType.JumpCut
202@ = 1

:SMOKE2_9438
if 
  203@ <> 1
goto_if_false @SMOKE2_9511
if 
  locate_char_on_foot_3d 41@ {x} 2157.1499 {y} -1072.39 {z} 39.48 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE2_9511
203@ = 1

:SMOKE2_9511
goto @SMOKE2_9228

:SMOKE2_9518
181@ = 0

:SMOKE2_9525
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:SMOKE2_9534
if 
  get_fading_status 
goto_if_false @SMOKE2_9622
wait 0
if 
  not is_char_dead 41@
goto_if_false @SMOKE2_9615
if 
  is_char_playing_anim 41@ {animationName} "RUN_GANG1"
goto_if_false @SMOKE2_9615
set_char_anim_speed 41@ {animName} "RUN_GANG1" {animSpeed} 1.0

:SMOKE2_9615
goto @SMOKE2_9534

:SMOKE2_9622
request_collision 195@ {y} 196@
load_scene 195@ {y} 196@ {z} 199@
set_char_coordinates $scplayer {x} 195@ {y} 196@ {z} 199@
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE2_9694
194@ = store_car_char_is_in $scplayer
set_car_heading 194@ {heading} 198@
goto @SMOKE2_9702

:SMOKE2_9694
set_char_heading $scplayer {heading} 198@

:SMOKE2_9702
delete_char 41@
delete_char 43@
delete_car 42@
switch_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_ped_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_ped_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:SMOKE2_9867
if 
  get_fading_status 
goto_if_false @SMOKE2_9891
wait 0
goto @SMOKE2_9867

:SMOKE2_9891
return 

:SMOKE2_9893
switch_start 161@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_10484 {caseNum1} 0 {caseLabel1} @SMOKE2_9956 {caseNum2} 1 {caseLabel2} @SMOKE2_10105 {caseNum3} 2 {caseLabel3} @SMOKE2_10254 {caseNum4} -1 {caseLabel4} @SMOKE2_10491 {caseNum5} -1 {caseLabel5} @SMOKE2_10491 {caseNum6} -1 {caseLabel6} @SMOKE2_10491 {caseNum7} -1 {caseLabel7} @SMOKE2_10491

:SMOKE2_9956
$s2_random_int = generate_random_int_in_range 0 {max} 3
if 
  $s2_random_int == 0
goto_if_false @SMOKE2_10007
set_lvar_text_label 130@s = 'SMO2_CA'
set_lvar_int_to_constant 148@ = 35214

:SMOKE2_10007
if 
  $s2_random_int == 1
goto_if_false @SMOKE2_10049
set_lvar_text_label 130@s = 'SMO2_CB'
set_lvar_int_to_constant 148@ = 35215

:SMOKE2_10049
if 
  $s2_random_int == 2
goto_if_false @SMOKE2_10091
set_lvar_text_label 130@s = 'SMO2_CC'
set_lvar_int_to_constant 148@ = 35216

:SMOKE2_10091
159@ = 1
goto @SMOKE2_10491

:SMOKE2_10105
$s2_random_int = generate_random_int_in_range 0 {max} 3
if 
  $s2_random_int == 0
goto_if_false @SMOKE2_10156
set_lvar_text_label 130@s = 'SMO2_DA'
set_lvar_int_to_constant 148@ = 35217

:SMOKE2_10156
if 
  $s2_random_int == 1
goto_if_false @SMOKE2_10198
set_lvar_text_label 130@s = 'SMO2_DB'
set_lvar_int_to_constant 148@ = 35218

:SMOKE2_10198
if 
  $s2_random_int == 2
goto_if_false @SMOKE2_10240
set_lvar_text_label 130@s = 'SMO2_DC'
set_lvar_int_to_constant 148@ = 35219

:SMOKE2_10240
159@ = 1
goto @SMOKE2_10491

:SMOKE2_10254
set_lvar_text_label 130@s = 'SMO2_BA'
set_lvar_int_to_constant 148@ = 35203
set_lvar_text_label 132@s = 'SMO2_BB'
set_lvar_int_to_constant 149@ = 35204
set_lvar_text_label 134@s = 'SMO2_BC'
set_lvar_int_to_constant 150@ = 35205
set_lvar_text_label 136@s = 'SMO2_BD'
set_lvar_int_to_constant 151@ = 35206
set_lvar_text_label 138@s = 'SMO2_BE'
set_lvar_int_to_constant 152@ = 35207
set_lvar_text_label 140@s = 'SMO2_BF'
set_lvar_int_to_constant 153@ = 35208
set_lvar_text_label 142@s = 'SMO2_BG'
set_lvar_int_to_constant 154@ = 35209
set_lvar_text_label 144@s = 'SMO2_BH'
set_lvar_int_to_constant 155@ = 35210
set_lvar_text_label 146@s = 'SMO2_BJ'
set_lvar_int_to_constant 156@ = 35211
159@ = 9
goto @SMOKE2_10491

:SMOKE2_10484
goto @SMOKE2_10491

:SMOKE2_10491
157@ = 0
158@ = 0
160@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
return 

:SMOKE2_10520
if or
  157@ == 0
  157@ == 1
goto_if_false @SMOKE2_10590
if 
  is_int_lvar_greater_than_int_lvar 159@ > 158@
goto_if_false @SMOKE2_10590
if 
  TIMERB > 200
goto_if_false @SMOKE2_10590
gosub @SMOKE2_10655

:SMOKE2_10590
if 
  157@ == 2
goto_if_false @SMOKE2_10653
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE2_10653
157@ = 0
158@ += 1
160@ = 0
clear_prints 
TIMERB = 0

:SMOKE2_10653
return 

:SMOKE2_10655
if 
  157@ == 0
goto_if_false @SMOKE2_10691
load_mission_audio MissionAudioSlot.Slot1 {audioId} 148@(158@,9i)
157@ = 1

:SMOKE2_10691
if 
  157@ == 1
goto_if_false @SMOKE2_10749
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE2_10749
print_now 130@(158@,9s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
157@ = 2

:SMOKE2_10749
return 

:SMOKE2_10751
clear_mission_audio MissionAudioSlot.Slot2
switch_start 129@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_10898 {caseNum1} 0 {caseLabel1} @SMOKE2_10818 {caseNum2} 1 {caseLabel2} @SMOKE2_10834 {caseNum3} 2 {caseLabel3} @SMOKE2_10850 {caseNum4} 3 {caseLabel4} @SMOKE2_10866 {caseNum5} 4 {caseLabel5} @SMOKE2_10882 {caseNum6} -1 {caseLabel6} @SMOKE2_10905 {caseNum7} -1 {caseLabel7} @SMOKE2_10905

:SMOKE2_10818
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35800
goto @SMOKE2_10905

:SMOKE2_10834
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35801
goto @SMOKE2_10905

:SMOKE2_10850
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35802
goto @SMOKE2_10905

:SMOKE2_10866
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35803
goto @SMOKE2_10905

:SMOKE2_10882
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35804
goto @SMOKE2_10905

:SMOKE2_10898
goto @SMOKE2_10905

:SMOKE2_10905
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SMOKE2_10914
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE2_11009
wait 0
if or
  is_char_dead 35@
  is_car_dead 34@
goto_if_false @SMOKE2_10956
return 

:SMOKE2_10956
if 
  167@ <> 1
goto_if_false @SMOKE2_11002
if 
  has_pickup_been_collected 40@
goto_if_false @SMOKE2_11002
remove_blip 186@
167@ = 1

:SMOKE2_11002
goto @SMOKE2_10914

:SMOKE2_11009
play_mission_audio MissionAudioSlot.Slot2
switch_start 129@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SMOKE2_11191 {caseNum1} 0 {caseLabel1} @SMOKE2_11076 {caseNum2} 1 {caseLabel2} @SMOKE2_11099 {caseNum3} 2 {caseLabel3} @SMOKE2_11122 {caseNum4} 3 {caseLabel4} @SMOKE2_11145 {caseNum5} 4 {caseLabel5} @SMOKE2_11168 {caseNum6} -1 {caseLabel6} @SMOKE2_11198 {caseNum7} -1 {caseLabel7} @SMOKE2_11198

:SMOKE2_11076
print_now 'SMOX_AA' {time} 3000 {flag} 1
goto @SMOKE2_11198

:SMOKE2_11099
print_now 'SMOX_AB' {time} 3000 {flag} 1
goto @SMOKE2_11198

:SMOKE2_11122
print_now 'SMOX_AC' {time} 3000 {flag} 1
goto @SMOKE2_11198

:SMOKE2_11145
print_now 'SMOX_AD' {time} 3000 {flag} 1
goto @SMOKE2_11198

:SMOKE2_11168
print_now 'SMOX_AE' {time} 3000 {flag} 1
goto @SMOKE2_11198

:SMOKE2_11191
goto @SMOKE2_11198

:SMOKE2_11198
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE2_11293
wait 0
if or
  is_char_dead 35@
  is_car_dead 34@
goto_if_false @SMOKE2_11240
return 

:SMOKE2_11240
if 
  167@ <> 1
goto_if_false @SMOKE2_11286
if 
  has_pickup_been_collected 40@
goto_if_false @SMOKE2_11286
remove_blip 186@
167@ = 1

:SMOKE2_11286
goto @SMOKE2_11198

:SMOKE2_11293
129@ += 1
if 
  129@ > 4
goto_if_false @SMOKE2_11325
129@ = 0

:SMOKE2_11325
return 

:SMOKE2_11327
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$trigger_phonecall_failed = 1
return 

:SMOKE2_11352
$flag_smoke_mission_counter += 1
register_mission_passed 'SMOKE_2'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:SMOKE2_11407
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 352
unload_special_character 1
remove_char_elegantly 35@
remove_pickup 40@
remove_blip 186@
remove_blip 183@
remove_blip 184@
remove_blip 185@
clear_sequence_task 114@
clear_sequence_task 115@
clear_sequence_task 116@
clear_sequence_task 117@
clear_sequence_task 118@
clear_sequence_task 121@
clear_sequence_task 201@
clear_help 
remove_decision_maker 123@
remove_decision_maker 124@
switch_ped_roads_back_to_original 2458.5 {leftBottomY} -1410.63 {leftBottomZ} 24.06 {rightTopX} 2504.27 {rightTopY} -1395.83 {rightTopZ} 28.55
switch_roads_back_to_original 2488.0 {leftBottomY} -1431.9301 {leftBottomZ} 25.41 {rightTopX} 2528.0 {rightTopY} -1391.9301 {rightTopZ} 29.41
switch_roads_back_to_original 2252.8899 {leftBottomY} -1286.37 {leftBottomZ} 22.25 {rightTopX} 2258.8899 {rightTopY} -1280.37 {rightTopZ} 28.25
switch_roads_back_to_original 2164.51 {leftBottomY} -1287.88 {leftBottomZ} 20.0 {rightTopX} 2170.8799 {rightTopY} -1267.88 {rightTopZ} 30.0
switch_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_ped_roads_back_to_original 2108.5 {leftBottomY} -1080.59 {leftBottomZ} 4.73 {rightTopX} 2128.5 {rightTopY} -1060.59 {rightTopZ} 44.73
switch_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_ped_roads_back_to_original 2082.9099 {leftBottomY} -1107.01 {leftBottomZ} 4.53 {rightTopX} 2102.9099 {rightTopY} -1087.01 {rightTopZ} 44.53
switch_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
switch_ped_roads_back_to_original 2441.3799 {leftBottomY} -1405.59 {leftBottomZ} 15.0 {rightTopX} 2460.4199 {rightTopY} -1368.34 {rightTopZ} 40.0
set_car_density_multiplier 1.0
flush_route 
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 29---------------
// Originally: Wrong Side of the Tracks

:SMOKE3
script_name 'SMOKE3'
gosub @SMOKE3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SMOKE3_38
gosub @SMOKE3_20097

:SMOKE3_38
gosub @SMOKE3_20170
terminate_this_script 

:SMOKE3_47
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'SMOKE3'
force_weather_now WeatherType.SunnyLa
clear_area 2077.5801 {y} -1695.929 {z} 150.0 {radius} 150.0 {clearParticles} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:SMOKE3_114
if 
  get_fading_status 
goto_if_false @SMOKE3_138
wait 0
goto @SMOKE3_114

:SMOKE3_138
request_model #LAE_SMOKECUTSCENE

:SMOKE3_143
if 
  not has_model_loaded #LAE_SMOKECUTSCENE
goto_if_false @SMOKE3_170
wait 0
goto @SMOKE3_143

:SMOKE3_170
131@ = create_object_no_offset #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 15.0
load_cutscene 'SMOKE3A'

:SMOKE3_204
if 
  not has_cutscene_loaded 
goto_if_false @SMOKE3_228
wait 0
goto @SMOKE3_204

:SMOKE3_228
start_cutscene 
do_fade 1000 {direction} Fade.In

:SMOKE3_237
if 
  not has_cutscene_finished 
goto_if_false @SMOKE3_261
wait 0
goto @SMOKE3_237

:SMOKE3_261
do_fade 0 {direction} Fade.Out

:SMOKE3_267
if 
  get_fading_status 
goto_if_false @SMOKE3_291
wait 0
goto @SMOKE3_267

:SMOKE3_291
clear_cutscene 
release_weather 
mark_model_as_no_longer_needed #LAE_SMOKECUTSCENE
delete_object 131@
switch_widescreen False
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In
do_fade 1000 {direction} Fade.Out

:SMOKE3_338
if 
  get_fading_status 
goto_if_false @SMOKE3_362
wait 0
goto @SMOKE3_338

:SMOKE3_362
restore_camera_jumpcut 
set_player_control $player1 {state} True
request_model 538
request_model 570
request_model #IMMMCRAN
request_model 466
request_model 372
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35400
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35803
load_special_character 1 {modelName} 'SMOKE'
load_all_models_now 

:SMOKE3_437
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_467
wait 0
goto @SMOKE3_437

:SMOKE3_467
if 
  not has_special_character_loaded 1
goto_if_false @SMOKE3_493
wait 0
goto @SMOKE3_467

:SMOKE3_493
if or
  not has_model_loaded 538
  not has_model_loaded 570
  not has_model_loaded #IMMMCRAN
  not has_model_loaded 372
  not has_model_loaded 466
goto_if_false @SMOKE3_540
wait 0
goto @SMOKE3_493

:SMOKE3_540
74@ = load_char_decision_maker DecisionMakerType.Empty
76@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 76@ {event} Event.Damage
75@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 75@ {event} Event.Damage
clear_char_decision_maker_event_response 75@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 75@ {event} Event.PotentialWalkIntoVehicle
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
clear_area 1682.618 {y} -1957.88 {z} 150.0 {radius} 150.0 {clearParticles} False
switch_random_trains False
delete_all_trains 
40@ = create_mission_train 11 {x} 1725.55 {y} -1953.278 {z} 12.5 {direction} False
set_train_speed 40@ {speed} 0.0
set_train_cruise_speed 40@ {speed} 0.0
43@ = get_train_carriage 40@ {number} 1
44@ = get_train_carriage 40@ {number} 2
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_train_forced_to_slow_down 40@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
lock_car_doors 43@ {lockStatus} CarLock.Locked
lock_car_doors 44@ {lockStatus} CarLock.Locked
set_car_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 44@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_area 2077.5801 {y} -1695.929 {z} 150.0 {radius} 150.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
78@ = create_car 466 {x} 2058.8601 {y} -1694.6121 {z} 12.297
change_car_colour 78@ {color1} 98 {color2} 14
set_car_heading 78@ {heading} 271.822
set_car_health 78@ {health} 1000
$big_smoke = create_char_as_passenger 78@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_only_damaged_by_player $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_never_targetted $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 74@
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_max_fire_generations 1
set_radio_channel RadioChannel.RadioLosSantos
warp_char_into_car $scplayer {vehicle} 78@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_railtrack_resistance_mult 0.3
do_fade 500 {direction} Fade.In
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $scplayer {state} True
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
96@ = 0
95@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
97@ = 0
107@ = 0
105@ = 0
106@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
if 
  80@ == 0
goto_if_false @SMOKE3_1289
118@ = add_blip_for_coord 1783.2111 {y} -1933.1331 {z} 12.597
103@ = 1
80@ = 1

:SMOKE3_1289
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SMOKE3_1315
goto @SMOKE3_20115

:SMOKE3_1315
if 
  80@ == 1
goto_if_false @SMOKE3_1625
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_1625
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_1625
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1625
if 
  103@ == 1
goto_if_false @SMOKE3_1429
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO3_AA' {time} 5000 {flag} 1
103@ = 2

:SMOKE3_1429
if 
  103@ == 2
goto_if_false @SMOKE3_1484
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_1484
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35401
103@ = 3

:SMOKE3_1484
if 
  103@ == 3
goto_if_false @SMOKE3_1563
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1563
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_1563
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO3_AB' {time} 5000 {flag} 1
103@ = 4

:SMOKE3_1563
if 
  103@ == 4
goto_if_false @SMOKE3_1625
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_1625
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
print_now 'SMK3_1' {time} 5000 {flag} 1
103@ = 5

:SMOKE3_1625
if 
  94@ == 0
goto_if_false @SMOKE3_1907
if or
  80@ == 1
  80@ == 10
goto_if_false @SMOKE3_1907
if 
  92@ == 0
goto_if_false @SMOKE3_1781
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_1781
if 
  not is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1781
123@ = add_blip_for_car 78@
set_blip_as_friendly 123@ {state} True
remove_blip 118@
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMOX_AD' {time} 2000 {flag} 1
80@ = 10
92@ = 1

:SMOKE3_1781
if 
  92@ == 1
goto_if_false @SMOKE3_1907
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_1907
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_1907
remove_blip 123@
118@ = add_blip_for_coord 1783.2111 {y} -1933.1331 {z} 12.597
if 
  103@ == 5
goto_if_false @SMOKE3_1893
print_now 'SMK3_1' {time} 12000 {flag} 1

:SMOKE3_1893
80@ = 1
92@ = 0

:SMOKE3_1907
if or
  80@ == 1
  80@ == 10
goto_if_false @SMOKE3_1971
if 
  is_char_dead $big_smoke
goto_if_false @SMOKE3_1971
print_now 'SMK3_21' {time} 5000 {flag} 1
goto @SMOKE3_20097

:SMOKE3_1971
if 
  80@ == 1
goto_if_false @SMOKE3_10214
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_10214
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_2820
if 
  81@ == 0
goto_if_false @SMOKE3_2820
if 
  is_char_sitting_in_car $big_smoke {vehicle} 78@
goto_if_false @SMOKE3_2820
if 
  is_char_sitting_in_car $scplayer {vehicle} 78@
goto_if_false @SMOKE3_2820
if 
  locate_car_2d 78@ {x} 1783.2111 {y} -1933.1331 {xRadius} 4.2 {yRadius} 4.2 {drawSphere} True
goto_if_false @SMOKE3_2820
switch_widescreen True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SMOKE3_2133
if 
  get_fading_status 
goto_if_false @SMOKE3_2157
wait 0
goto @SMOKE3_2133

:SMOKE3_2157
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_2203
set_car_coordinates 78@ {x} 1783.418 {y} -1933.0551 {z} 12.3862
set_car_heading 78@ {heading} 178.4615

:SMOKE3_2203
request_model 108
request_model 109
request_model 110
request_model 353
request_model 468
request_model #TRNTRK8_LAS
request_animation "TRAIN"
request_animation "GANGS"
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35412
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35413
load_special_character 1 {modelName} 'SMOKE'
request_animation "GANGS"
request_animation "TRAIN"
load_all_models_now 

:SMOKE3_2307
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "TRAIN"
goto_if_false @SMOKE3_2347
wait 0
goto @SMOKE3_2307

:SMOKE3_2347
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_2377
wait 0
goto @SMOKE3_2347

:SMOKE3_2377
if or
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 110
  not has_model_loaded 468
  not has_model_loaded 353
goto_if_false @SMOKE3_2421
wait 0
goto @SMOKE3_2377

:SMOKE3_2421
load_scene 1684.53 {y} -1948.48 {z} 20.66
clear_area 1682.618 {y} -1957.88 {z} 150.0 {radius} 150.0 {clearParticles} False
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
94@ = 1
remove_blip 118@
clear_area 1699.3101 {y} -1938.799 {z} 100.0 {radius} 100.0 {clearParticles} False
52@ = create_object_no_offset #IMMMCRAN {x} 2194.438 {y} -1912.756 {z} 11.907
set_object_heading 52@ {heading} 0.0
34@ = create_char PedType.Mission1 {modelId} 108 {x} 1682.546 {y} -1959.222 {z} 20.99
set_char_heading 34@ {heading} 0.0
set_follow_node_threshold_distance 34@ {range} 500.0
set_char_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 34@ {handleOrTemplate} 75@
35@ = create_char PedType.Mission1 {modelId} 110 {x} 1682.546 {y} -1958.222 {z} 20.99
set_char_heading 35@ {heading} 180.0
set_follow_node_threshold_distance 35@ {range} 500.0
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 35@ {handleOrTemplate} 75@
36@ = create_char PedType.Mission1 {modelId} 109 {x} 1681.038 {y} -1958.03 {z} 20.99
set_char_heading 36@ {heading} 182.467
set_follow_node_threshold_distance 36@ {range} 500.0
set_char_proofs 36@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 36@ {handleOrTemplate} 75@
37@ = create_char PedType.Mission1 {modelId} 110 {x} 1681.129 {y} -1959.63 {z} 20.99
set_char_heading 37@ {heading} 6.22
set_follow_node_threshold_distance 37@ {range} 500.0
set_char_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 37@ {handleOrTemplate} 75@
81@ = 1

:SMOKE3_2820
if 
  81@ == 1
goto_if_false @SMOKE3_3049
if 
  not is_char_dead $scplayer
goto_if_false @SMOKE3_3049
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3049
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3049
clear_area 1682.618 {y} -1957.88 {z} 150.0 {radius} 150.0 {clearParticles} False
set_fixed_camera_position 1780.729 {y} -1937.955 {z} 13.443 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1781.311 {y} -1937.1479 {z} 13.3475 {switchStyle} SwitchType.JumpCut
load_scene 1687.04 {y} -1946.6 {z} 21.79
load_scene_in_direction 1735.16 {y} -1945.29 {z} 14.44 {heading} 88.46
do_fade 750 {direction} Fade.In
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BA' {time} 5000 {flag} 1
TIMERA = 0
81@ = 2

:SMOKE3_3049
if 
  81@ == 2
goto_if_false @SMOKE3_3272
if 
  TIMERA > 1000
goto_if_false @SMOKE3_3272
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3272
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3272
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_3272
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35414
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $big_smoke {duration} 10000
print_now 'SMO3_BB' {time} 5000 {flag} 1
101@ = 0
skip_cutscene_start_internal @SMOKE3_8003
task_leave_car $big_smoke {vehicle} 78@
wait 100
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3234
task_look_at_char $big_smoke {target} $scplayer {time} 3500

:SMOKE3_3234
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3258
task_leave_car $scplayer {vehicle} 78@

:SMOKE3_3258
TIMERA = 0
81@ = 3

:SMOKE3_3272
if 
  81@ == 3
goto_if_false @SMOKE3_3545
if 
  not is_char_dead $scplayer
goto_if_false @SMOKE3_3545
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3545
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3545
if 
  not is_char_in_any_car $big_smoke
goto_if_false @SMOKE3_3545
if 
  not is_char_in_any_car $scplayer
goto_if_false @SMOKE3_3545
set_fixed_camera_position 1778.61 {y} -1938.675 {z} 12.9064 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1779.275 {y} -1937.944 {z} 13.0581 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1783.92 {y} -1936.33 {z} 12.6
set_char_heading $scplayer {heading} 117.0
task_go_straight_to_coord $big_smoke {x} 1775.3 {y} -1939.23 {z} 12.9 {speed} MoveState.Walk {time} -1
64@ = open_sequence_task 
task_look_at_char -1 {target} $big_smoke {time} 10000
task_go_straight_to_coord -1 {x} 1776.63 {y} -1940.1801 {z} 13.66 {speed} MoveState.Walk {time} -1
close_sequence_task 64@
perform_sequence_task $scplayer {sequence} 64@
clear_sequence_task 64@
TIMERA = 0
81@ = 4

:SMOKE3_3545
if 
  81@ == 4
goto_if_false @SMOKE3_3955
if 
  not is_char_dead $scplayer
goto_if_false @SMOKE3_3955
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_3955
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_3955
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_3955
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_3955
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_3955
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_3955
if 
  not is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_3955
if 
  not is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_3955
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_3955
if 
  TIMERA > 3000
goto_if_false @SMOKE3_3955
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BC' {time} 5000 {flag} 1
set_fixed_camera_position 1732.47 {y} -1945.045 {z} 12.9171 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1731.4919 {y} -1945.129 {z} 13.1107 {switchStyle} SwitchType.JumpCut
set_char_coordinates $big_smoke {x} 1737.2 {y} -1944.2 {z} 12.6
set_char_heading $big_smoke {heading} 88.5
set_char_coordinates $scplayer {x} 1737.2 {y} -1945.7 {z} 12.6
set_char_heading $scplayer {heading} 88.5
task_go_straight_to_coord $big_smoke {x} 1718.04 {y} -1944.2 {z} 13.6 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord $scplayer {x} 1718.04 {y} -1945.7 {z} 13.6 {speed} MoveState.Walk {time} -1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35415
TIMERA = 0
81@ = 5

:SMOKE3_3955
if 
  81@ == 5
goto_if_false @SMOKE3_4043
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_4043
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35416
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BD' {time} 5000 {flag} 1
81@ = 6

:SMOKE3_4043
if 
  81@ == 6
goto_if_false @SMOKE3_4154
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_4154
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35417
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_4140
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 3000
print_now 'SMO3_BE' {time} 5000 {flag} 1

:SMOKE3_4140
TIMERA = 0
81@ = 7

:SMOKE3_4154
if 
  81@ == 7
goto_if_false @SMOKE3_4615
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_4615
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_4615
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_4615
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_4615
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_4615
if 
  TIMERA > 1500
goto_if_false @SMOKE3_4615
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_4615
set_fixed_camera_position 1726.028 {y} -1944.924 {z} 13.9132 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1725.059 {y} -1945.168 {z} 13.9694 {switchStyle} SwitchType.JumpCut
task_play_anim 35@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 34@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 37@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 36@ {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1724.08 {y} -1946.27 {z} 12.5
set_char_heading $scplayer {heading} 86.93
clear_char_tasks_immediately $big_smoke
set_char_coordinates $big_smoke {x} 1723.9301 {y} -1944.52 {z} 12.5
set_char_heading $big_smoke {heading} 93.27
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $scplayer {duration} 10000
print_now 'SMO3_BF' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35418
TIMERA = 0
81@ = 8

:SMOKE3_4615
if 
  81@ == 8
goto_if_false @SMOKE3_4834
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_4834
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_4834
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_4834
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_4834
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_4834
38@ = get_script_task_status 34@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 38@ == 7
  TIMERA > 1750
goto_if_false @SMOKE3_4834
task_look_at_char 34@ {target} $big_smoke {time} 10000
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_4788
task_look_at_char 35@ {target} $scplayer {time} 10000

:SMOKE3_4788
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_4815
task_look_at_char 36@ {target} $scplayer {time} 10000

:SMOKE3_4815
clear_char_tasks_immediately $scplayer
TIMERA = 0
81@ = 9

:SMOKE3_4834
if 
  81@ == 9
goto_if_false @SMOKE3_5140
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_5140
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_5140
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_5140
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_5140
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_5140
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_5140
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_5140
if 
  TIMERA > 0
goto_if_false @SMOKE3_5140
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35419
set_fixed_camera_position 1721.344 {y} -1943.875 {z} 13.8732 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1722.2111 {y} -1944.373 {z} 13.8443 {switchStyle} SwitchType.JumpCut
task_look_at_char $scplayer {target} $big_smoke {time} 10000
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 3000
print_now 'SMO3_BG' {time} 5000 {flag} 1
task_play_anim $big_smoke {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERB = 0
81@ = 10

:SMOKE3_5140
if 
  81@ == 10
goto_if_false @SMOKE3_5820
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_5820
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_5820
clear_prints 
54@ = create_car 468 {x} 1778.624 {y} -1939.905 {z} 12.5598
set_car_heading 54@ {heading} 176.7993
set_car_health 54@ {health} 10000
set_can_burst_car_tyres 54@ {state} False
set_car_proofs 54@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
change_car_colour 54@ {color1} 6 {color2} 6
114@ = 1
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_5301
set_car_health 78@ {health} 10000
set_can_burst_car_tyres 78@ {state} False

:SMOKE3_5301
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_5379
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1682.254 {y} -1953.64 {z} 20.985
set_char_heading 34@ {heading} 266.36
task_go_straight_to_coord 34@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5379
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_5457
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1679.256 {y} -1953.635 {z} 20.985
set_char_heading 35@ {heading} 266.36
task_go_straight_to_coord 35@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5457
wait 250
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_5540
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1676.74 {y} -1953.59 {z} 20.985
set_char_heading 36@ {heading} 266.36
task_go_straight_to_coord 36@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5540
wait 250
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_5623
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} 1675.3 {y} -1953.67 {z} 20.985
set_char_heading 37@ {heading} 266.389
task_go_straight_to_coord 37@ {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000

:SMOKE3_5623
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_5656
set_train_cruise_speed 40@ {speed} 15.0
86@ = 1

:SMOKE3_5656
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1703.548 {fromY} -1951.496 {fromZ} 16.9714 {toX} 1750.548 {toY} -1951.496 {toZ} 16.9714 {time} 10000 {ease} True
camera_set_vector_track 1702.549 {fromY} -1951.514 {fromZ} 16.9159 {toX} 1702.549 {toY} -1951.514 {toZ} 16.9159 {time} 10000 {ease} True
TIMERB = 0
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_5813
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
set_char_coordinates $scplayer {x} 1715.0 {y} -1946.79 {z} 12.6
set_char_coordinates $big_smoke {x} 1712.36 {y} -1944.47 {z} 12.6

:SMOKE3_5813
81@ = 11

:SMOKE3_5820
if 
  81@ > 10
goto_if_false @SMOKE3_6761
if 
  14 > 81@
goto_if_false @SMOKE3_6761
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_6761
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_6761
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_6761
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_6761
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_6761
if 
  not is_car_dead 43@
goto_if_false @SMOKE3_6761
if 
  not is_car_dead 44@
goto_if_false @SMOKE3_6761
46@, 47@, 48@ = get_offset_from_car_in_world_coords 43@ {xOffset} 0.0 {yOffset} 9.84 {zOffset} 3.0
49@, 50@, 51@ = get_offset_from_car_in_world_coords 44@ {xOffset} 0.0 {yOffset} 9.84 {zOffset} 3.0
if 
  81@ <= 11
goto_if_false @SMOKE3_6073
$player_x, $player_y, $player_z = get_char_coordinates 35@
point_camera_at_point $player_x {y} $player_y {z} 18.0 {switchStyle} SwitchType.JumpCut

:SMOKE3_6073
if 
  82@ == 0
goto_if_false @SMOKE3_6187
if 
  locate_char_any_means_3d 34@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6187
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19945
82@ = 1

:SMOKE3_6187
if 
  82@ == 1
goto_if_false @SMOKE3_6269
if 
  locate_char_any_means_3d 34@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6269
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_19945
82@ = 2

:SMOKE3_6269
if 
  83@ == 0
goto_if_false @SMOKE3_6351
if 
  locate_char_any_means_3d 35@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6351
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19945
83@ = 1

:SMOKE3_6351
if 
  83@ == 1
goto_if_false @SMOKE3_6433
if 
  locate_char_any_means_3d 35@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6433
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_19945
83@ = 2

:SMOKE3_6433
if 
  84@ == 0
goto_if_false @SMOKE3_6515
if 
  locate_char_any_means_3d 36@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6515
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19945
84@ = 1

:SMOKE3_6515
if 
  84@ == 1
goto_if_false @SMOKE3_6597
if 
  locate_char_any_means_3d 36@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6597
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_19945
84@ = 2

:SMOKE3_6597
if 
  85@ == 0
goto_if_false @SMOKE3_6679
if 
  locate_char_any_means_3d 37@ {x} 49@ {y} 50@ {z} 51@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6679
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19945
85@ = 1

:SMOKE3_6679
if 
  85@ == 1
goto_if_false @SMOKE3_6761
if 
  locate_char_any_means_3d 37@ {x} 46@ {y} 47@ {z} 48@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SMOKE3_6761
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_19945
85@ = 2

:SMOKE3_6761
if 
  81@ == 11
goto_if_false @SMOKE3_6895
if 
  TIMERB > 4200
goto_if_false @SMOKE3_6895
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_6895
task_go_straight_to_coord $big_smoke {x} 1765.99 {y} -1944.25 {z} 13.75 {speed} MoveState.Run {time} 100000
task_go_straight_to_coord $scplayer {x} 1771.1 {y} -1946.12 {z} 13.75 {speed} MoveState.Run {time} 100000
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO3_BH' {time} 5000 {flag} 1
81@ = 12

:SMOKE3_6895
if 
  81@ == 12
goto_if_false @SMOKE3_6941
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_6941
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
81@ = 13

:SMOKE3_6941
if 
  81@ == 13
goto_if_false @SMOKE3_7016
if 
  TIMERB > 8000
goto_if_false @SMOKE3_7016
do_fade 500 {direction} Fade.Out

:SMOKE3_6985
if 
  get_fading_status 
goto_if_false @SMOKE3_7009
wait 0
goto @SMOKE3_6985

:SMOKE3_7009
81@ = 14

:SMOKE3_7016
if 
  81@ == 14
goto_if_false @SMOKE3_7962
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_7962
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_7962
set_mission_train_coordinates 40@ {x} 1880.0601 {y} -1953.67 {z} 12.44
set_train_cruise_speed 40@ {speed} 10.0
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
34@ = create_char PedType.Mission1 {modelId} 108 {x} 1682.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 34@ {state} False
35@ = create_char PedType.Mission1 {modelId} 110 {x} 1682.99 {y} -1947.17 {z} 20.03
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 35@ {state} False
36@ = create_char PedType.Mission1 {modelId} 110 {x} 1681.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 36@ {state} False
37@ = create_char PedType.Mission4 {modelId} 110 {x} 1682.5 {y} -1945.17 {z} 20.033
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 37@ {state} False
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 36@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
attach_char_to_car 34@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 5.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 35@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 36@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 37@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -6.1 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
set_char_decision_maker 34@ {handleOrTemplate} 75@
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_char_decision_maker 36@ {handleOrTemplate} 75@
set_char_decision_maker 37@ {handleOrTemplate} 76@
set_char_accuracy 34@ {accuracy} 10
set_char_accuracy 35@ {accuracy} 10
set_char_accuracy 36@ {accuracy} 10
set_char_accuracy 37@ {accuracy} 10
set_char_shoot_rate 34@ {rate} 20
set_char_shoot_rate 35@ {rate} 20
set_char_shoot_rate 36@ {rate} 30
set_char_shoot_rate 37@ {rate} 20
if 
  98@ == 0
goto_if_false @SMOKE3_7627
set_char_max_health 34@ {maxHealth} 500
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 500
set_char_health 34@ {health} 500
set_char_health 35@ {health} 500
set_char_health 36@ {health} 500

:SMOKE3_7627
if 
  98@ == 1
goto_if_false @SMOKE3_7693
set_char_max_health 34@ {maxHealth} 480
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 480
set_char_health 35@ {health} 500
set_char_health 36@ {health} 450

:SMOKE3_7693
if 
  98@ == 2
goto_if_false @SMOKE3_7759
set_char_max_health 34@ {maxHealth} 450
set_char_max_health 35@ {maxHealth} 450
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 450
set_char_health 35@ {health} 450
set_char_health 36@ {health} 450

:SMOKE3_7759
if 
  98@ == 3
goto_if_false @SMOKE3_7825
set_char_max_health 34@ {maxHealth} 350
set_char_max_health 35@ {maxHealth} 350
set_char_max_health 36@ {maxHealth} 350
set_char_health 34@ {health} 350
set_char_health 35@ {health} 350
set_char_health 36@ {health} 350

:SMOKE3_7825
if 
  98@ > 3
goto_if_false @SMOKE3_7891
set_char_max_health 34@ {maxHealth} 300
set_char_max_health 35@ {maxHealth} 300
set_char_max_health 36@ {maxHealth} 300
set_char_health 34@ {health} 300
set_char_health 35@ {health} 300
set_char_health 36@ {health} 300

:SMOKE3_7891
set_char_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
119@ = add_blip_for_char 34@
120@ = add_blip_for_char 35@
121@ = add_blip_for_char 36@
122@ = add_blip_for_char 37@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
TIMERA = 0
81@ = 15

:SMOKE3_7962
if 
  81@ == 15
goto_if_false @SMOKE3_10214
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_10214
101@ = 1

:SMOKE3_8003
skip_cutscene_end 
if 
  101@ == 0
goto_if_false @SMOKE3_9413
do_fade 0 {direction} Fade.Out

:SMOKE3_8029
if 
  get_fading_status 
goto_if_false @SMOKE3_8053
wait 0
goto @SMOKE3_8029

:SMOKE3_8053
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
delete_mission_trains 
delete_object 52@
52@ = create_object_no_offset #IMMMCRAN {x} 2194.438 {y} -1912.756 {z} 11.907
set_object_heading 52@ {heading} 0.0
40@ = create_mission_train 11 {x} 1880.0601 {y} -1953.67 {z} 12.44 {direction} False
set_train_forced_to_slow_down 40@ {state} False
set_train_speed 40@ {speed} 10.0
set_train_cruise_speed 40@ {speed} 10.0
43@ = get_train_carriage 40@ {number} 1
44@ = get_train_carriage 40@ {number} 2
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 40@ {lockStatus} CarLock.Locked
lock_car_doors 43@ {lockStatus} CarLock.Locked
lock_car_doors 44@ {lockStatus} CarLock.Locked
set_car_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 44@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
34@ = create_char PedType.Mission1 {modelId} 108 {x} 1682.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 34@ {state} False
35@ = create_char PedType.Mission1 {modelId} 110 {x} 1682.99 {y} -1947.17 {z} 20.03
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 35@ {state} False
36@ = create_char PedType.Mission1 {modelId} 110 {x} 1681.618 {y} -1957.88 {z} 20.9453
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 36@ {state} False
37@ = create_char PedType.Mission4 {modelId} 110 {x} 1682.5 {y} -1945.17 {z} 20.033
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_20002
set_char_suffers_critical_hits 37@ {state} False
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs 36@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
attach_char_to_car 34@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 5.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 35@ {vehicle} 40@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 36@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 37@ {vehicle} 40@ {xOffset} 0.0 {yOffset} -6.1 {zOffset} 3.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Mp5
set_char_decision_maker 34@ {handleOrTemplate} 75@
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_char_decision_maker 36@ {handleOrTemplate} 75@
set_char_decision_maker 37@ {handleOrTemplate} 76@
set_char_accuracy 34@ {accuracy} 10
set_char_accuracy 35@ {accuracy} 10
set_char_accuracy 36@ {accuracy} 10
set_char_accuracy 37@ {accuracy} 10
set_char_shoot_rate 34@ {rate} 20
set_char_shoot_rate 35@ {rate} 20
set_char_shoot_rate 36@ {rate} 30
set_char_shoot_rate 37@ {rate} 20
if 
  98@ == 0
goto_if_false @SMOKE3_8791
set_char_max_health 34@ {maxHealth} 500
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 500
set_char_health 34@ {health} 500
set_char_health 35@ {health} 500
set_char_health 36@ {health} 500

:SMOKE3_8791
if 
  98@ == 1
goto_if_false @SMOKE3_8857
set_char_max_health 34@ {maxHealth} 480
set_char_max_health 35@ {maxHealth} 500
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 480
set_char_health 35@ {health} 500
set_char_health 36@ {health} 450

:SMOKE3_8857
if 
  98@ == 2
goto_if_false @SMOKE3_8923
set_char_max_health 34@ {maxHealth} 450
set_char_max_health 35@ {maxHealth} 450
set_char_max_health 36@ {maxHealth} 450
set_char_health 34@ {health} 450
set_char_health 35@ {health} 450
set_char_health 36@ {health} 450

:SMOKE3_8923
if 
  98@ == 3
goto_if_false @SMOKE3_8989
set_char_max_health 34@ {maxHealth} 300
set_char_max_health 35@ {maxHealth} 350
set_char_max_health 36@ {maxHealth} 350
set_char_health 34@ {health} 300
set_char_health 35@ {health} 350
set_char_health 36@ {health} 350

:SMOKE3_8989
if 
  98@ > 3
goto_if_false @SMOKE3_9055
set_char_max_health 34@ {maxHealth} 300
set_char_max_health 35@ {maxHealth} 300
set_char_max_health 36@ {maxHealth} 300
set_char_health 34@ {health} 300
set_char_health 35@ {health} 300
set_char_health 36@ {health} 300

:SMOKE3_9055
119@ = add_blip_for_char 34@
120@ = add_blip_for_char 35@
121@ = add_blip_for_char 36@
122@ = add_blip_for_char 37@
if 
  114@ == 0
goto_if_false @SMOKE3_9177
54@ = create_car 468 {x} 1778.624 {y} -1939.905 {z} 12.5598
set_car_heading 54@ {heading} 176.7993
set_car_health 54@ {health} 10000
set_car_proofs 54@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 54@ {state} False
change_car_colour 54@ {color1} 6 {color2} 6

:SMOKE3_9177
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_9208
set_car_health 78@ {health} 10000
set_can_burst_car_tyres 78@ {state} False

:SMOKE3_9208
set_char_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_9322
if 
  is_char_in_any_car $big_smoke
goto_if_false @SMOKE3_9292
warp_char_from_car_to_coord $big_smoke {x} 1772.918 {y} -1941.495 {z} 12.567
set_char_heading $big_smoke {heading} 269.216
goto @SMOKE3_9322

:SMOKE3_9292
set_char_coordinates $big_smoke {x} 1772.918 {y} -1941.495 {z} 12.567
set_char_heading $big_smoke {heading} 269.216

:SMOKE3_9322
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE3_9375
warp_char_from_car_to_coord $scplayer {x} 1774.0649 {y} -1943.0031 {z} 12.558
set_char_heading $scplayer {heading} 263.195
goto @SMOKE3_9405

:SMOKE3_9375
set_char_coordinates $scplayer {x} 1774.0649 {y} -1943.0031 {z} 12.558
set_char_heading $scplayer {heading} 263.195

:SMOKE3_9405
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False

:SMOKE3_9413
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_9720
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 1
set_char_coordinates $scplayer {x} 1774.0649 {y} -1943.0031 {z} 12.558
set_char_heading $scplayer {heading} 263.195
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_9516
set_char_coordinates $big_smoke {x} 1772.918 {y} -1941.495 {z} 12.567
set_char_heading $big_smoke {heading} 269.216

:SMOKE3_9516
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $big_smoke
set_group_separation_range $Players_Group {range} 30.0
77@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 77@ {event} Event.Damage
clear_group_decision_maker_event_response 77@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 77@ {event} Event.AcquaintancePedHate
set_group_decision_maker $Players_Group {handleOrTemplate} 77@
set_char_relationship $big_smoke {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker $big_smoke {handleOrTemplate} 74@
task_toggle_ped_threat_scanner $big_smoke {onFoot} False {inCar} True {duringScriptTask} False
add_group_decision_maker_event_response 77@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupUseMemberDecision {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response 74@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_player_group_to_follow_always $player1 {state} True
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
set_car_density_multiplier 0.5
set_ped_density_multiplier 0.5

:SMOKE3_9720
clear_prints 
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_9753
125@ = add_blip_for_car 54@
set_blip_as_friendly 125@ {state} True

:SMOKE3_9753
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_9791
set_char_accuracy 37@ {accuracy} 20
set_lvar_int_to_lvar_int 61@ = 37@
gosub @SMOKE3_20043

:SMOKE3_9791
switch_roads_off 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_off 2270.6899 {leftBottomY} -1391.75 {leftBottomZ} 20.28 {rightTopX} 2315.8101 {rightTopY} -1375.58 {rightTopZ} 26.88
switch_roads_off 2257.3 {leftBottomY} -1491.95 {leftBottomZ} 20.63 {rightTopX} 2299.7 {rightTopY} -1477.3199 {rightTopZ} 26.12
switch_roads_off 2235.25 {leftBottomY} -1656.59 {leftBottomZ} 12.68 {rightTopX} 2176.75 {rightTopY} -1629.89 {rightTopZ} 15.0
switch_roads_off 2221.4299 {leftBottomY} -1721.0699 {leftBottomZ} 10.09 {rightTopX} 2174.01 {rightTopY} -172.72 {rightTopZ} 15.73
switch_roads_off 2234.0901 {leftBottomY} -1723.3 {leftBottomZ} 14.0 {rightTopX} 2178.22 {rightTopY} -1742.47 {rightTopZ} 10.0
switch_roads_off 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_off 1956.91 {leftBottomY} -1936.01 {leftBottomZ} 10.07 {rightTopX} 1965.61 {rightTopY} -1978.99 {rightTopZ} 14.45
switch_roads_off 2181.3 {leftBottomY} -1892.0 {leftBottomZ} 10.0 {rightTopX} 2222.3601 {rightTopY} -1897.71 {rightTopZ} 15.0
print_now 'SMK3_2' {time} 7000 {flag} 1
remove_animation "GANGS"
mark_model_as_no_longer_needed 109
96@ = 1
80@ = 2
98@ += 1
102@ = 1
add_char_decision_maker_event_response 75@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
do_fade 1000 {direction} Fade.In
mark_car_as_no_longer_needed 78@
set_vehicle_camera_tweak 468 {distance} 1.0 {altitude} 1.0 {angle} 0.12
mark_model_as_no_longer_needed #TRNTRK8_LAS
81@ = 14

:SMOKE3_10214
if 
  102@ == 1
goto_if_false @SMOKE3_10302
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_10302
if 
  is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_10302
remove_blip 125@
give_weapon_to_char $big_smoke {weaponType} WeaponType.Tec9 {ammo} 99999
set_current_char_weapon $big_smoke {weaponType} WeaponType.Tec9
set_char_accuracy $big_smoke {accuracy} 70
102@ = 2

:SMOKE3_10302
if 
  81@ == 14
goto_if_false @SMOKE3_10370
if 
  112@ == 0
goto_if_false @SMOKE3_10370
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_10370
remove_blip 125@
set_player_in_car_camera_mode 3
112@ = 1

:SMOKE3_10370
if 
  80@ == 2
goto_if_false @SMOKE3_16921
if 
  2 > 93@
goto_if_false @SMOKE3_10629
if 
  93@ == 0
goto_if_false @SMOKE3_10551
if 
  locate_char_any_means_2d $scplayer {x} 2272.5701 {y} -1494.89 {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SMOKE3_10551
56@ = create_car 466 {x} 2295.7771 {y} -1481.2679 {z} 22.91
60@ = create_char_inside_car 56@ {pedType} PedType.CivMale {modelId} 108
set_car_heading 56@ {heading} 88.47
car_goto_coordinates_accurate 56@ {x} 2280.45 {y} -1480.9611 {z} 22.483
set_car_cruise_speed 56@ {maxSpeed} 6.5
set_car_driving_style 56@ {drivingStyle} DrivingMode.StopForCars
93@ = 1

:SMOKE3_10551
if 
  93@ == 1
goto_if_false @SMOKE3_10629
if 
  not locate_char_any_means_2d $scplayer {x} 2280.45 {y} -1480.9611 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_10629
mark_car_as_no_longer_needed 56@
mark_char_as_no_longer_needed 60@
mark_model_as_no_longer_needed 466
93@ = 2

:SMOKE3_10629
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_13944
if 
  96@ == 1
goto_if_false @SMOKE3_10785
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_10785
if 
  97@ == 1
goto_if_false @SMOKE3_10722
set_train_cruise_speed 40@ {speed} 15.0

:SMOKE3_10722
if 
  97@ > 1
goto_if_false @SMOKE3_10750
set_train_cruise_speed 40@ {speed} 18.0

:SMOKE3_10750
if 
  97@ == 0
goto_if_false @SMOKE3_10778
set_train_cruise_speed 40@ {speed} 10.0

:SMOKE3_10778
96@ = 2

:SMOKE3_10785
if 
  96@ == 2
goto_if_false @SMOKE3_10876
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 45.0 {yRadius} 45.0 {drawSphere} False
goto_if_false @SMOKE3_10876
if 
  97@ == 0
goto_if_false @SMOKE3_10859
97@ = 1

:SMOKE3_10859
set_train_cruise_speed 40@ {speed} 28.0
96@ = 1

:SMOKE3_10876
if 
  96@ == 1
goto_if_false @SMOKE3_10977
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_10977
if 
  97@ > 1
goto_if_false @SMOKE3_10960
set_train_cruise_speed 40@ {speed} 32.5
goto @SMOKE3_10970

:SMOKE3_10960
set_train_cruise_speed 40@ {speed} 30.0

:SMOKE3_10970
96@ = 3

:SMOKE3_10977
if 
  96@ == 3
goto_if_false @SMOKE3_11033
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11033
96@ = 2

:SMOKE3_11033
if 
  15 > 91@
goto_if_false @SMOKE3_11773
if 
  91@ == 0
goto_if_false @SMOKE3_11250
if 
  locate_car_2d 40@ {x} 2282.1201 {y} -1439.76 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11250
if 
  not locate_char_any_means_2d $scplayer {x} 2289.6899 {y} -1034.14 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11243
41@ = create_mission_train 11 {x} 2289.6899 {y} -1034.14 {z} 26.29 {direction} True
set_train_speed 41@ {speed} 30.0
set_train_cruise_speed 41@ {speed} 15.0
53@ = create_object #IMY_TRACK_BARRIER {x} 2151.2891 {y} -664.906 {z} 52.1
set_object_heading 53@ {heading} 50.36
97@ = 2
91@ = 1
goto @SMOKE3_11250

:SMOKE3_11243
91@ = 15

:SMOKE3_11250
if 
  91@ == 1
goto_if_false @SMOKE3_11339
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11339
if 
  locate_car_2d 41@ {x} 2288.3101 {y} -1408.91 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11339
set_train_cruise_speed 41@ {speed} 0.0
91@ = 2

:SMOKE3_11339
if 
  91@ == 2
goto_if_false @SMOKE3_11432
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11432
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 41@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SMOKE3_11432
if 
  not is_car_on_screen 41@
goto_if_false @SMOKE3_11432
delete_mission_train 41@
91@ = 3

:SMOKE3_11432
if 
  91@ == 3
goto_if_false @SMOKE3_11591
if 
  locate_car_2d 40@ {x} 2176.8701 {y} -689.51 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11591
if 
  not locate_char_any_means_2d $scplayer {x} 2283.3601 {y} -336.9 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @SMOKE3_11584
41@ = create_mission_train 11 {x} 2283.3601 {y} -336.9 {z} 37.27 {direction} True
set_train_speed 41@ {speed} 30.0
set_train_cruise_speed 41@ {speed} 15.0
91@ = 4
goto @SMOKE3_11591

:SMOKE3_11584
91@ = 15

:SMOKE3_11591
if 
  91@ == 4
goto_if_false @SMOKE3_11680
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11680
if 
  locate_car_2d 41@ {x} 2052.0801 {y} -583.31 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_11680
set_train_cruise_speed 41@ {speed} 0.0
91@ = 5

:SMOKE3_11680
if 
  91@ == 5
goto_if_false @SMOKE3_11773
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_11773
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 41@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @SMOKE3_11773
if 
  not is_car_on_screen 41@
goto_if_false @SMOKE3_11773
delete_mission_train 41@
91@ = 6

:SMOKE3_11773
if 
  104@ == 0
goto_if_false @SMOKE3_12085
if 
  locate_car_2d 40@ {x} 2198.0 {y} -1913.0 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @SMOKE3_12085
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_11852
task_duck 34@ {time} -1

:SMOKE3_11852
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_11875
task_duck 35@ {time} -1

:SMOKE3_11875
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_11898
task_duck 36@ {time} -1

:SMOKE3_11898
57@ = create_car 466 {x} 2200.0701 {y} -1731.9399 {z} 12.28
set_car_heading 57@ {heading} 277.116
58@ = create_char PedType.Mission3 {modelId} 7 {x} 2201.55 {y} -1728.59 {z} 12.43
set_char_heading 58@ {heading} 285.1
59@ = create_char PedType.Mission3 {modelId} 7 {x} 2202.9299 {y} -1728.36 {z} 12.43
set_char_heading 59@ {heading} 393.56
task_play_anim 58@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 59@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
97@ = 1
104@ = 1

:SMOKE3_12085
if 
  104@ == 1
goto_if_false @SMOKE3_12241
if 
  not locate_car_2d 40@ {x} 2198.0 {y} -1913.0 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @SMOKE3_12241
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12172
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_20002

:SMOKE3_12172
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12203
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_20002

:SMOKE3_12203
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12234
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_20002

:SMOKE3_12234
104@ = 2

:SMOKE3_12241
if 
  104@ == 2
goto_if_false @SMOKE3_12373
if 
  locate_car_2d 40@ {x} 2285.5801 {y} -1353.75 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_12373
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12320
task_duck 34@ {time} -1

:SMOKE3_12320
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12343
task_duck 35@ {time} -1

:SMOKE3_12343
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12366
task_duck 36@ {time} -1

:SMOKE3_12366
104@ = 3

:SMOKE3_12373
if 
  104@ == 3
goto_if_false @SMOKE3_12582
if 
  not locate_car_2d 40@ {x} 2285.5801 {y} -1353.75 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_12582
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12460
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_20002

:SMOKE3_12460
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12491
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_20002

:SMOKE3_12491
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12522
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_20002

:SMOKE3_12522
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_12543
task_die 37@

:SMOKE3_12543
delete_object 52@
mark_model_as_no_longer_needed #IMMMCRAN
mark_car_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
105@ = 1
104@ = 4

:SMOKE3_12582
if 
  104@ == 4
goto_if_false @SMOKE3_12691
if 
  locate_car_2d 40@ {x} 2121.0 {y} -361.0 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @SMOKE3_12691
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12661
task_duck 34@ {time} -1

:SMOKE3_12661
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12684
task_duck 36@ {time} -1

:SMOKE3_12684
104@ = 5

:SMOKE3_12691
if 
  104@ == 5
goto_if_false @SMOKE3_12816
if 
  not locate_car_2d 40@ {x} 2121.0 {y} -361.0 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @SMOKE3_12816
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_12778
set_lvar_int_to_lvar_int 61@ = 34@
gosub @SMOKE3_20002

:SMOKE3_12778
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_12809
set_lvar_int_to_lvar_int 61@ = 36@
gosub @SMOKE3_20002

:SMOKE3_12809
104@ = 6

:SMOKE3_12816
if 
  104@ == 6
goto_if_false @SMOKE3_12886
if 
  not locate_car_2d 40@ {x} 2121.0 {y} -361.0 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @SMOKE3_12886
97@ = 3
104@ = 7

:SMOKE3_12886
if 
  105@ == 1
goto_if_false @SMOKE3_12973
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_12973
if 
  locate_car_2d 40@ {x} 2285.53 {y} -1120.59 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SMOKE3_12973
set_char_decision_maker 35@ {handleOrTemplate} 76@
105@ = 2

:SMOKE3_12973
if 
  105@ == 2
goto_if_false @SMOKE3_13098
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13098
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @SMOKE3_13098
task_play_anim_non_interruptable 35@ {animationName} "TRAN_STMB" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
105@ = 3

:SMOKE3_13098
if 
  105@ == 3
goto_if_false @SMOKE3_13250
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13250
if 
  is_char_playing_anim 35@ {animationName} "TRAN_STMB"
goto_if_false @SMOKE3_13250
39@ = get_char_anim_current_time 35@ {animationName} "TRAN_STMB"
if 
  39@ == 1.0
goto_if_false @SMOKE3_13250
task_play_anim_non_interruptable 35@ {animationName} "TRAN_HNG" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERA = 0
105@ = 4

:SMOKE3_13250
if 
  105@ == 4
goto_if_false @SMOKE3_13348
if 
  TIMERA > 10000
goto_if_false @SMOKE3_13348
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13348
task_play_anim_non_interruptable 35@ {animationName} "TRAN_GTUP" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
105@ = 5

:SMOKE3_13348
if 
  105@ == 5
goto_if_false @SMOKE3_13503
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13503
if 
  is_char_playing_anim 35@ {animationName} "TRAN_GTUP"
goto_if_false @SMOKE3_13503
39@ = get_char_anim_current_time 35@ {animationName} "TRAN_GTUP"
if 
  39@ == 1.0
goto_if_false @SMOKE3_13503
set_char_decision_maker 35@ {handleOrTemplate} 75@
set_lvar_int_to_lvar_int 61@ = 35@
gosub @SMOKE3_20002
remove_animation "TRAIN"
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
105@ = 6

:SMOKE3_13503
if 
  105@ > 0
goto_if_false @SMOKE3_13571
if 
  6 > 105@
goto_if_false @SMOKE3_13571
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_13571
45@ = get_car_heading 40@
set_char_heading 35@ {heading} 45@

:SMOKE3_13571
if 
  106@ == 0
goto_if_false @SMOKE3_13819
if 
  does_object_exist 52@
goto_if_false @SMOKE3_13788
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13781
if 
  locate_char_any_means_2d 37@ {x} 2197.53 {y} -1913.39 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @SMOKE3_13781
task_toggle_ped_threat_scanner 37@ {onFoot} False {inCar} False {duringScriptTask} False
detach_char_from_car 37@
set_char_collision 37@ {state} False
attach_char_to_object 37@ {handle} 52@ {xOffset} 2.85 {yOffset} -0.7 {zOffset} 5.9 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_heading 37@ {heading} 0.0
task_play_anim_non_interruptable 37@ {animationName} "TRAN_OUCH" {animationFile} "TRAIN" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
90@ = 1
106@ = 1
remove_blip 122@

:SMOKE3_13781
goto @SMOKE3_13819

:SMOKE3_13788
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13819
set_char_proofs 37@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SMOKE3_13819
if 
  106@ == 1
goto_if_false @SMOKE3_13944
if 
  does_object_exist 52@
goto_if_false @SMOKE3_13885
45@ = get_object_heading 52@
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13885
set_char_heading 37@ {heading} 45@

:SMOKE3_13885
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_13944
if 
  not locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_13944
remove_char_elegantly 37@
106@ = 2

:SMOKE3_13944
if 
  87@ == 0
goto_if_false @SMOKE3_14013
if 
  is_char_dead 34@
goto_if_false @SMOKE3_14013
87@ = 1
116@ += 1
if 
  does_blip_exist 119@
goto_if_false @SMOKE3_14013
remove_blip 119@

:SMOKE3_14013
if 
  88@ == 0
goto_if_false @SMOKE3_14082
if 
  is_char_dead 35@
goto_if_false @SMOKE3_14082
88@ = 1
116@ += 1
if 
  does_blip_exist 120@
goto_if_false @SMOKE3_14082
remove_blip 120@

:SMOKE3_14082
if 
  89@ == 0
goto_if_false @SMOKE3_14151
if 
  is_char_dead 36@
goto_if_false @SMOKE3_14151
89@ = 1
116@ += 1
if 
  does_blip_exist 121@
goto_if_false @SMOKE3_14151
remove_blip 121@

:SMOKE3_14151
if 
  90@ == 0
goto_if_false @SMOKE3_14220
if 
  is_char_dead 37@
goto_if_false @SMOKE3_14220
90@ = 1
116@ += 1
if 
  does_blip_exist 122@
goto_if_false @SMOKE3_14220
remove_blip 122@

:SMOKE3_14220
if 
  108@ == 0
goto_if_false @SMOKE3_14285
if 
  not is_car_dead 57@
goto_if_false @SMOKE3_14285
if 
  has_car_been_damaged_by_car 57@ {other} 40@
goto_if_false @SMOKE3_14285
explode_car 57@
108@ = 1

:SMOKE3_14285
if 
  108@ == 1
goto_if_false @SMOKE3_14315
mark_car_as_no_longer_needed 57@
108@ = 2

:SMOKE3_14315
if 
  87@ == 1
goto_if_false @SMOKE3_14907
if 
  88@ == 1
goto_if_false @SMOKE3_14907
if 
  89@ == 1
goto_if_false @SMOKE3_14907
if 
  90@ == 1
goto_if_false @SMOKE3_14907
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_14507
if 
  is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_14484
124@ = add_blip_for_coord 2061.6799 {y} -1694.71 {z} 12.554
107@ = 1
109@ = 1
110@ = 0
111@ = 0
115@ = 1
goto @SMOKE3_14507

:SMOKE3_14484
115@ = 2
print_now 'SMK3_18' {time} 5000 {flag} 1

:SMOKE3_14507
set_railtrack_resistance_mult -1.0
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_mission_train_as_no_longer_needed 40@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 2270.6899 {leftBottomY} -1391.75 {leftBottomZ} 20.28 {rightTopX} 2315.8101 {rightTopY} -1375.58 {rightTopZ} 26.88
switch_roads_on 2268.75 {leftBottomY} -1390.8 {leftBottomZ} 20.86 {rightTopX} 2330.03 {rightTopY} -1375.53 {rightTopZ} 23.1
switch_roads_on 2257.3 {leftBottomY} -1491.95 {leftBottomZ} 20.63 {rightTopX} 2299.7 {rightTopY} -1477.3199 {rightTopZ} 26.12
switch_roads_on 2235.25 {leftBottomY} -1656.59 {leftBottomZ} 12.68 {rightTopX} 2176.75 {rightTopY} -1629.89 {rightTopZ} 15.0
switch_roads_on 2221.4299 {leftBottomY} -1721.0699 {leftBottomZ} 10.09 {rightTopX} 2174.01 {rightTopY} -172.72 {rightTopZ} 15.73
switch_roads_on 2234.0901 {leftBottomY} -1723.3 {leftBottomZ} 14.0 {rightTopX} 2178.22 {rightTopY} -1742.47 {rightTopZ} 10.0
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 1956.91 {leftBottomY} -1936.01 {leftBottomZ} 10.07 {rightTopX} 1965.61 {rightTopY} -1978.99 {rightTopZ} 14.45
switch_roads_on 2181.3 {leftBottomY} -1892.0 {leftBottomZ} 10.0 {rightTopX} 2222.3601 {rightTopY} -1897.71 {rightTopZ} 15.0
80@ = 3

:SMOKE3_14907
if 
  is_char_dead $big_smoke
goto_if_false @SMOKE3_14946
print_now 'SMK3_21' {time} 5000 {flag} 1
goto @SMOKE3_20097

:SMOKE3_14946
if 
  80@ == 2
goto_if_false @SMOKE3_15587
if 
  97@ == 0
goto_if_false @SMOKE3_15009
$x = 320.0
$y = 320.0
goto @SMOKE3_15029

:SMOKE3_15009
$x = 200.0
$y = 200.0

:SMOKE3_15029
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_15587
if 
  not is_car_on_screen 40@
goto_if_false @SMOKE3_15587
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 40@ {xRadius} $x {yRadius} $y {drawSphere} False
goto_if_false @SMOKE3_15587
if or
  not is_char_dead 34@
  not is_char_dead 35@
  not is_char_dead 36@
  not is_char_dead 37@
goto_if_false @SMOKE3_15587
switch_widescreen True
set_player_control $player1 {state} False
79@ = get_area_visible 
if 
  79@ <> 0
goto_if_false @SMOKE3_15289
do_fade 250 {direction} Fade.Out
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15191
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SMOKE3_15191
if 
  get_fading_status 
goto_if_false @SMOKE3_15215
wait 0
goto @SMOKE3_15191

:SMOKE3_15215
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15289
set_area_visible 0
freeze_char_position $scplayer {state} True
$x, $y, $z = get_char_coordinates $big_smoke
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:SMOKE3_15289
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15364
109@ = 1
set_camera_in_front_of_char $big_smoke
task_wander_standard $big_smoke
$x, $y, $z = get_char_coordinates $big_smoke
clear_area $x {y} $y {z} 100.0 {radius} 100.0 {clearParticles} False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:SMOKE3_15364
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35451

:SMOKE3_15373
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15399
wait 0
goto @SMOKE3_15373

:SMOKE3_15399
print_now 'SMO3_MC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2

:SMOKE3_15419
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15445
wait 0
goto @SMOKE3_15419

:SMOKE3_15445
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
if 
  79@ <> 0
goto_if_false @SMOKE3_15544
do_fade 500 {direction} Fade.Out

:SMOKE3_15476
if 
  get_fading_status 
goto_if_false @SMOKE3_15500
wait 0
goto @SMOKE3_15476

:SMOKE3_15500
set_area_visible 79@
freeze_char_position $scplayer {state} False
$x, $y, $z = get_char_coordinates $scplayer
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:SMOKE3_15544
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char $big_smoke
print_now 'SMK3_13' {time} 5000 {flag} 1
goto @SMOKE3_20097

:SMOKE3_15587
if 
  80@ == 2
goto_if_false @SMOKE3_16048
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_16048
if 
  locate_car_2d 40@ {x} 2790.52 {y} 223.63 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SMOKE3_16048
set_player_control $player1 {state} False
switch_widescreen True
set_train_speed 40@ {speed} 20.0
set_train_cruise_speed 40@ {speed} 20.0
set_fixed_camera_position 2796.8391 {y} 222.9677 {z} 10.7646 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 40@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_15802
$car = store_car_char_is_in_no_save $scplayer
set_car_coordinates $car {x} 2814.8279 {y} 154.135 {z} 17.2
set_car_heading $car {heading} 9.0
set_car_cruise_speed $car {maxSpeed} 0.0
goto @SMOKE3_15832

:SMOKE3_15802
set_char_coordinates $scplayer {x} 2814.8279 {y} 154.135 {z} 17.2
set_char_heading $scplayer {heading} 9.0

:SMOKE3_15832
wait 3000
restore_camera_jumpcut 
wait 0
109@ = 1
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_15890
set_camera_in_front_of_char $big_smoke
task_wander_standard $big_smoke
$x, $y, $z = get_char_coordinates $big_smoke

:SMOKE3_15890
clear_area $x {y} $y {z} 100.0 {radius} 100.0 {clearParticles} False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35451

:SMOKE3_15927
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15953
wait 0
goto @SMOKE3_15927

:SMOKE3_15953
print_now 'SMO3_MC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2

:SMOKE3_15973
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_15999
wait 0
goto @SMOKE3_15973

:SMOKE3_15999
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char $big_smoke
print_now 'SMK3_20' {time} 10000 {flag} 1
goto @SMOKE3_20097

:SMOKE3_16048
if 
  109@ == 0
goto_if_false @SMOKE3_16921
if 
  is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_16921
if 
  is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_16921
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_16921
gosub @SMOKE3_19795
if 
  110@ == 0
goto_if_false @SMOKE3_16198
if 
  111@ == 0
goto_if_false @SMOKE3_16198
set_lvar_int_to_constant 128@ = 35420
set_lvar_text_label 129@s = 'SMO3_CA'
gosub @SMOKE3_19753
TIMERB = 0

:SMOKE3_16198
if 
  110@ == 1
goto_if_false @SMOKE3_16291
if 
  111@ == 0
goto_if_false @SMOKE3_16291
if 
  TIMERB > 4000
goto_if_false @SMOKE3_16291
set_lvar_int_to_constant 128@ = 35429
set_lvar_text_label 129@s = 'SMO3_EB'
gosub @SMOKE3_19753
TIMERB = 0

:SMOKE3_16291
if 
  110@ == 2
goto_if_false @SMOKE3_16412
if 
  111@ == 0
goto_if_false @SMOKE3_16412
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_16412
if 
  locate_char_any_means_car_2d $big_smoke {vehicle} 40@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SMOKE3_16412
set_lvar_int_to_constant 128@ = 35428
set_lvar_text_label 129@s = 'SMO3_EA'
117@ = 1
gosub @SMOKE3_19753

:SMOKE3_16412
if 
  110@ == 3
goto_if_false @SMOKE3_16526
if 
  111@ == 0
goto_if_false @SMOKE3_16526
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_16526
if 
  locate_char_any_means_car_2d $big_smoke {vehicle} 41@ {xRadius} 165.0 {yRadius} 165.0 {drawSphere} False
goto_if_false @SMOKE3_16526
set_lvar_int_to_constant 128@ = 35431
set_lvar_text_label 129@s = 'SMO3_FA'
gosub @SMOKE3_19753

:SMOKE3_16526
if 
  110@ == 4
goto_if_false @SMOKE3_16631
if 
  111@ == 0
goto_if_false @SMOKE3_16631
if 
  locate_char_any_means_2d $big_smoke {x} 2180.22 {y} -689.43 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SMOKE3_16631
set_lvar_int_to_constant 128@ = 35437
set_lvar_text_label 129@s = 'SMO3_HA'
gosub @SMOKE3_19753

:SMOKE3_16631
if 
  110@ == 5
goto_if_false @SMOKE3_16752
if 
  111@ == 0
goto_if_false @SMOKE3_16752
if 
  not is_car_dead 41@
goto_if_false @SMOKE3_16752
if 
  locate_char_any_means_car_2d $big_smoke {vehicle} 41@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SMOKE3_16752
set_lvar_int_to_constant 128@ = 35433
set_lvar_text_label 129@s = 'SMO3_FC'
gosub @SMOKE3_19753
TIMERB = 0

:SMOKE3_16752
if 
  110@ == 6
goto_if_false @SMOKE3_16921
if 
  111@ == 0
goto_if_false @SMOKE3_16921
if 
  TIMERB > 11000
goto_if_false @SMOKE3_16921
set_lvar_int_to_constant 128@ = 35430
set_lvar_text_label 129@s = 'SMO3_EC'
if 
  does_object_exist 53@
goto_if_false @SMOKE3_16868
if 
  not is_object_on_screen 53@
goto_if_false @SMOKE3_16868
delete_object 53@

:SMOKE3_16868
mark_model_as_no_longer_needed #IMY_TRACK_BARRIER
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_16914
if 
  3 > 116@
goto_if_false @SMOKE3_16914
set_char_accuracy $big_smoke {accuracy} 85

:SMOKE3_16914
gosub @SMOKE3_19753

:SMOKE3_16921
if 
  80@ == 3
goto_if_false @SMOKE3_18401
if 
  115@ == 1
goto_if_false @SMOKE3_18401
if 
  113@ == 0
goto_if_false @SMOKE3_17005
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35460
mark_object_as_no_longer_needed 53@
mark_model_as_no_longer_needed #IMY_TRACK_BARRIER
113@ = 1

:SMOKE3_17005
if 
  113@ == 1
goto_if_false @SMOKE3_17065
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_17065
print_now 'SMO3_PC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
113@ = 2

:SMOKE3_17065
if 
  113@ == 2
goto_if_false @SMOKE3_17118
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_17118
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
113@ = 3
TIMERB = 0

:SMOKE3_17118
if 
  113@ == 3
goto_if_false @SMOKE3_17185
if 
  TIMERB > 500
goto_if_false @SMOKE3_17185
print_now 'SMK3_22' {time} 6000 {flag} 1
TIMERB = 0
113@ = 4

:SMOKE3_17185
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_17839
if 
  113@ == 4
goto_if_false @SMOKE3_17839
if 
  is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_17839
if 
  is_char_sitting_in_any_car $big_smoke
goto_if_false @SMOKE3_17839
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @SMOKE3_17839
gosub @SMOKE3_19795
if 
  110@ == 0
goto_if_false @SMOKE3_17370
if 
  111@ == 0
goto_if_false @SMOKE3_17370
if 
  TIMERB > 7000
goto_if_false @SMOKE3_17370
set_lvar_int_to_constant 128@ = 35477
set_lvar_text_label 129@s = 'SMO3_RA'
gosub @SMOKE3_19753
TIMERB = 0

:SMOKE3_17370
if 
  110@ == 1
goto_if_false @SMOKE3_17437
if 
  111@ == 0
goto_if_false @SMOKE3_17437
set_lvar_int_to_constant 128@ = 35478
set_lvar_text_label 129@s = 'SMO3_RB'
gosub @SMOKE3_19753

:SMOKE3_17437
if 
  110@ == 2
goto_if_false @SMOKE3_17504
if 
  111@ == 0
goto_if_false @SMOKE3_17504
set_lvar_int_to_constant 128@ = 35479
set_lvar_text_label 129@s = 'SMO3_RC'
gosub @SMOKE3_19753

:SMOKE3_17504
if 
  110@ == 3
goto_if_false @SMOKE3_17571
if 
  111@ == 0
goto_if_false @SMOKE3_17571
set_lvar_int_to_constant 128@ = 35480
set_lvar_text_label 129@s = 'SMO3_RD'
gosub @SMOKE3_19753

:SMOKE3_17571
if 
  110@ == 4
goto_if_false @SMOKE3_17638
if 
  111@ == 0
goto_if_false @SMOKE3_17638
set_lvar_int_to_constant 128@ = 35481
set_lvar_text_label 129@s = 'SMO3_RE'
gosub @SMOKE3_19753

:SMOKE3_17638
if 
  110@ == 5
goto_if_false @SMOKE3_17705
if 
  111@ == 0
goto_if_false @SMOKE3_17705
set_lvar_int_to_constant 128@ = 35482
set_lvar_text_label 129@s = 'SMO3_RF'
gosub @SMOKE3_19753

:SMOKE3_17705
if 
  110@ == 6
goto_if_false @SMOKE3_17772
if 
  111@ == 0
goto_if_false @SMOKE3_17772
set_lvar_int_to_constant 128@ = 35483
set_lvar_text_label 129@s = 'SMO3_RG'
gosub @SMOKE3_19753

:SMOKE3_17772
if 
  110@ == 7
goto_if_false @SMOKE3_17839
if 
  111@ == 0
goto_if_false @SMOKE3_17839
set_lvar_int_to_constant 128@ = 35484
set_lvar_text_label 129@s = 'SMO3_RH'
gosub @SMOKE3_19753

:SMOKE3_17839
if 
  107@ == 1
goto_if_false @SMOKE3_18362
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18362
if 
  locate_char_any_means_2d $scplayer {x} 2061.6799 {y} -1694.71 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} True
goto_if_false @SMOKE3_18362
if 
  locate_char_any_means_2d $big_smoke {x} 2061.6799 {y} -1694.71 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @SMOKE3_18362
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out
switch_widescreen True
113@ = 5
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2

:SMOKE3_17982
if 
  get_fading_status 
goto_if_false @SMOKE3_18006
wait 0
goto @SMOKE3_17982

:SMOKE3_18006
clear_char_tasks_immediately $scplayer
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18051
remove_char_from_group $big_smoke
clear_char_tasks_immediately $big_smoke
set_current_char_weapon $big_smoke {weaponType} WeaponType.Unarmed

:SMOKE3_18051
if 
  is_char_in_any_car $scplayer
goto_if_false @SMOKE3_18104
warp_char_from_car_to_coord $scplayer {x} 2060.325 {y} -1694.8051 {z} 12.5547
set_char_heading $scplayer {heading} 91.3046
goto @SMOKE3_18134

:SMOKE3_18104
set_char_coordinates $scplayer {x} 2060.325 {y} -1694.8051 {z} 12.5547
set_char_heading $scplayer {heading} 91.3046

:SMOKE3_18134
if 
  is_char_in_any_car $big_smoke
goto_if_false @SMOKE3_18187
warp_char_from_car_to_coord $big_smoke {x} 2057.75 {y} -1694.79 {z} 12.554
set_char_heading $big_smoke {heading} 273.188
goto @SMOKE3_18217

:SMOKE3_18187
set_char_coordinates $big_smoke {x} 2057.75 {y} -1694.79 {z} 12.554
set_char_heading $big_smoke {heading} 273.188

:SMOKE3_18217
clear_area 2057.75 {y} -1694.79 {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_18287
set_car_coordinates 54@ {x} 2060.3 {y} -1697.975 {z} 9.0
set_car_heading 54@ {heading} 88.04

:SMOKE3_18287
request_animation "GANGS"
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35485
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35486
load_all_models_now 

:SMOKE3_18316
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_animation_loaded "GANGS"
goto_if_false @SMOKE3_18355
wait 0
goto @SMOKE3_18316

:SMOKE3_18355
80@ = 4

:SMOKE3_18362
if 
  is_char_dead $big_smoke
goto_if_false @SMOKE3_18401
print_now 'SMK3_21' {time} 5000 {flag} 1
goto @SMOKE3_20097

:SMOKE3_18401
if 
  80@ == 4
goto_if_false @SMOKE3_19143
set_fixed_camera_position 2061.814 {y} -1692.7729 {z} 13.1148 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2061.0891 {y} -1693.453 {z} 13.2238 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18564
task_play_anim $big_smoke {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 10000
print_now 'SMO3_SA' {time} 4000 {flag} 1

:SMOKE3_18564
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_18590
wait 0
goto @SMOKE3_18564

:SMOKE3_18590
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35487
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO3_SB' {time} 4000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18677
task_play_anim $big_smoke {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SMOKE3_18677
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_18703
wait 0
goto @SMOKE3_18677

:SMOKE3_18703
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_18729
clear_char_tasks $big_smoke
stop_char_facial_talk $big_smoke

:SMOKE3_18729
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35488
set_fixed_camera_position 2055.8511 {y} -1692.644 {z} 14.0837 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2056.5811 {y} -1693.324 {z} 14.0171 {switchStyle} SwitchType.JumpCut

:SMOKE3_18795
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_18821
wait 0
goto @SMOKE3_18795

:SMOKE3_18821
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO3_SC' {time} 5000 {flag} 1
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SMOKE3_18877
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_18903
wait 0
goto @SMOKE3_18877

:SMOKE3_18903
clear_prints 

:SMOKE3_18905
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SMOKE3_18931
wait 0
goto @SMOKE3_18905

:SMOKE3_18931
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO3_SD' {time} 5000 {flag} 1

:SMOKE3_18951
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SMOKE3_18977
wait 0
goto @SMOKE3_18951

:SMOKE3_18977
do_fade 1500 {direction} Fade.Out
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_19048
task_go_straight_to_coord $big_smoke {x} 2058.0271 {y} -1697.166 {z} 13.55 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord $scplayer {x} 2072.7229 {y} -1694.359 {z} 13.55 {speed} MoveState.Walk {time} -1

:SMOKE3_19048
if 
  get_fading_status 
goto_if_false @SMOKE3_19072
wait 0
goto @SMOKE3_19048

:SMOKE3_19072
delete_char $big_smoke
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2072.7229 {y} -1694.359 {z} 12.54
set_char_heading $scplayer {heading} 272.637
switch_widescreen False
set_player_control $player1 {state} False
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 500 {direction} Fade.In
clear_prints 
goto @SMOKE3_20115

:SMOKE3_19143
if or
  80@ == 2
  80@ == 3
goto_if_false @SMOKE3_19746
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_19746
if 
  95@ == 0
goto_if_false @SMOKE3_19327
if 
  not is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_19327
print_now 'SMK3_18' {time} 5000 {flag} 1
118@ = add_blip_for_char $big_smoke
set_blip_as_friendly 118@ {state} True
if 
  80@ == 2
goto_if_false @SMOKE3_19290
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@

:SMOKE3_19290
if 
  80@ == 3
goto_if_false @SMOKE3_19320
remove_blip 124@
107@ = 0

:SMOKE3_19320
95@ = 1

:SMOKE3_19327
if 
  95@ == 1
goto_if_false @SMOKE3_19746
if 
  locate_char_any_means_char_3d $scplayer {target} $big_smoke {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SMOKE3_19746
if 
  is_char_on_screen $big_smoke
goto_if_false @SMOKE3_19746
if 
  not is_group_member $big_smoke {handle} $Players_Group
goto_if_false @SMOKE3_19434
set_group_member $Players_Group {handle} $big_smoke
set_group_separation_range $Players_Group {range} 30.0

:SMOKE3_19434
remove_blip 118@
if 
  80@ == 2
goto_if_false @SMOKE3_19569
if 
  not is_char_dead 34@
goto_if_false @SMOKE3_19481
119@ = add_blip_for_char 34@

:SMOKE3_19481
if 
  not is_char_dead 35@
goto_if_false @SMOKE3_19505
120@ = add_blip_for_char 35@

:SMOKE3_19505
if 
  not is_char_dead 36@
goto_if_false @SMOKE3_19529
121@ = add_blip_for_char 36@

:SMOKE3_19529
if 
  not is_char_dead 37@
goto_if_false @SMOKE3_19553
122@ = add_blip_for_char 37@

:SMOKE3_19553
print_now 'SMK3_3' {time} 5000 {flag} 1

:SMOKE3_19569
if 
  80@ == 3
goto_if_false @SMOKE3_19648
if 
  115@ == 1
goto_if_false @SMOKE3_19648
print_now 'SMK3_22' {time} 5000 {flag} 1
124@ = add_blip_for_coord 2061.6799 {y} -1694.71 {z} 12.554
107@ = 1

:SMOKE3_19648
if 
  115@ == 2
goto_if_false @SMOKE3_19739
if 
  80@ == 3
goto_if_false @SMOKE3_19739
124@ = add_blip_for_coord 2061.6799 {y} -1694.71 {z} 12.554
107@ = 1
109@ = 1
110@ = 0
111@ = 0
115@ = 1

:SMOKE3_19739
95@ = 0

:SMOKE3_19746
goto @SMOKE3_1289

:SMOKE3_19753
if 
  111@ == 0
goto_if_false @SMOKE3_19793
load_mission_audio MissionAudioSlot.Slot1 {audioId} 128@
set_lvar_text_label 126@s = 129@s
111@ = 1

:SMOKE3_19793
return 

:SMOKE3_19795
if 
  111@ == 1
goto_if_false @SMOKE3_19849
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SMOKE3_19849
print_now 126@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
111@ = 2

:SMOKE3_19849
if 
  111@ == 2
goto_if_false @SMOKE3_19943
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SMOKE3_19943
110@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  117@ == 1
goto_if_false @SMOKE3_19936
print_now 'SMK3_25' {time} 6000 {flag} 1
117@ = 2

:SMOKE3_19936
111@ = 0

:SMOKE3_19943
return 

:SMOKE3_19945
62@ = open_sequence_task 
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} 1799.49 {y} -1953.73 {z} 12.23 {speed} MoveState.Run {time} 50000
close_sequence_task 62@
perform_sequence_task 61@ {sequence} 62@
clear_sequence_task 62@
return 

:SMOKE3_20002
63@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_ped_threat_scanner -1 {onFoot} True {inCar} False {duringScriptTask} False
close_sequence_task 63@
perform_sequence_task 61@ {sequence} 63@
clear_sequence_task 63@
return 

:SMOKE3_20043
65@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead $big_smoke
goto_if_false @SMOKE3_20077
task_kill_char_on_foot -1 {target} $big_smoke

:SMOKE3_20077
close_sequence_task 65@
perform_sequence_task 61@ {sequence} 65@
clear_sequence_task 65@
return 

:SMOKE3_20097
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SMOKE3_20115
$flag_smoke_mission_counter += 1
register_mission_passed 'SMOKE_3'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
clear_wanted_level $player1
return 

:SMOKE3_20170
$onmission = 0
restore_camera_jumpcut 
set_player_in_car_camera_mode 2
mark_object_as_no_longer_needed 53@
mark_object_as_no_longer_needed 52@
mark_model_as_no_longer_needed #IMY_TRACK_BARRIER
set_railtrack_resistance_mult -1.0
if 
  is_player_playing $player1
goto_if_false @SMOKE3_20232
set_player_control $player1 {state} True
switch_widescreen False

:SMOKE3_20232
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_20255
set_can_burst_car_tyres 54@ {state} True

:SMOKE3_20255
mark_mission_trains_as_no_longer_needed 
switch_random_trains True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
remove_char_elegantly 34@
remove_char_elegantly 35@
remove_char_elegantly 36@
remove_char_elegantly 37@
remove_char_elegantly $big_smoke
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 2270.6899 {leftBottomY} -1391.75 {leftBottomZ} 20.28 {rightTopX} 2315.8101 {rightTopY} -1375.58 {rightTopZ} 26.88
switch_roads_on 2268.75 {leftBottomY} -1390.8 {leftBottomZ} 20.86 {rightTopX} 2330.03 {rightTopY} -1375.53 {rightTopZ} 23.1
switch_roads_on 2257.3 {leftBottomY} -1491.95 {leftBottomZ} 20.63 {rightTopX} 2299.7 {rightTopY} -1477.3199 {rightTopZ} 26.12
switch_roads_on 2235.25 {leftBottomY} -1656.59 {leftBottomZ} 12.68 {rightTopX} 2176.75 {rightTopY} -1629.89 {rightTopZ} 15.0
switch_roads_on 2221.4299 {leftBottomY} -1721.0699 {leftBottomZ} 10.09 {rightTopX} 2174.01 {rightTopY} -172.72 {rightTopZ} 15.73
switch_roads_on 2234.0901 {leftBottomY} -1723.3 {leftBottomZ} 14.0 {rightTopX} 2178.22 {rightTopY} -1742.47 {rightTopZ} 10.0
switch_roads_on 2261.1399 {leftBottomY} -1141.45 {leftBottomZ} 18.0 {rightTopX} 2308.1899 {rightTopY} -1156.38 {rightTopZ} 35.0
switch_roads_on 1956.91 {leftBottomY} -1936.01 {leftBottomZ} 10.07 {rightTopX} 1965.61 {rightTopY} -1978.99 {rightTopZ} 14.45
switch_roads_on 2181.3 {leftBottomY} -1892.0 {leftBottomZ} 10.0 {rightTopX} 2222.3601 {rightTopY} -1897.71 {rightTopZ} 15.0
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed #IMMMCRAN
mark_model_as_no_longer_needed 419
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed #TRNTRK8_LAS
unload_special_character 1
remove_animation "TRAIN"
remove_animation "GANGS"
remove_blip 118@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
if 
  not is_car_dead 40@
goto_if_false @SMOKE3_20767
set_train_forced_to_slow_down 40@ {state} True

:SMOKE3_20767
reset_vehicle_camera_tweak 
if 
  not is_car_dead 54@
goto_if_false @SMOKE3_20822
set_car_health 54@ {health} 1000
set_can_burst_car_tyres 54@ {state} True
set_car_proofs 54@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
shut_char_up_for_scripted_speech $scplayer {state} False

:SMOKE3_20822
release_weather 
if 
  not is_car_dead 78@
goto_if_false @SMOKE3_20855
set_car_health 78@ {health} 1000
set_can_burst_car_tyres 78@ {state} True

:SMOKE3_20855
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 78@
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 30---------------
// Originally: Just Business

:DRUGS1
script_name 'DRUGS1'
gosub @DRUGS1_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS1_38
gosub @DRUGS1_52025

:DRUGS1_38
gosub @DRUGS1_52103
terminate_this_script 

:DRUGS1_47
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'SMOKE4'
clear_area 2060.0 {y} -1694.0 {z} 50.0 {radius} 50.0 {clearParticles} True
force_weather_now WeatherType.SunnyLa
request_model #LAE_SMOKECUTSCENE

:DRUGS1_104
if 
  not has_model_loaded #LAE_SMOKECUTSCENE
goto_if_false @DRUGS1_131
wait 0
goto @DRUGS1_104

:DRUGS1_131
290@ = create_object_no_offset #LAE_SMOKECUTSCENE {x} 2055.0 {y} -1695.0 {z} 15.0
load_cutscene 'SMOKE4A'

:DRUGS1_165
if 
  not has_cutscene_loaded 
goto_if_false @DRUGS1_189
wait 0
goto @DRUGS1_165

:DRUGS1_189
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRUGS1_198
if 
  not has_cutscene_finished 
goto_if_false @DRUGS1_222
wait 0
goto @DRUGS1_198

:DRUGS1_222
do_fade 0 {direction} Fade.Out

:DRUGS1_228
if 
  get_fading_status 
goto_if_false @DRUGS1_252
wait 0
goto @DRUGS1_228

:DRUGS1_252
clear_cutscene 
mark_model_as_no_longer_needed #LAE_SMOKECUTSCENE
delete_object 290@
set_fading_colour 0 {g} 0 {b} 0
wait 500
request_model 466
request_model 91
request_model 93
request_model 111
request_model 112
load_special_character 1 {modelName} 'SMOKE'
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35802
load_all_models_now 

:DRUGS1_322
if or
  not has_model_loaded 466
  not has_model_loaded 111
  not has_model_loaded 111
  not has_model_loaded 91
  not has_model_loaded 93
goto_if_false @DRUGS1_365
wait 0
goto @DRUGS1_322

:DRUGS1_365
if or
  not has_special_character_loaded 1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_395
wait 0
goto @DRUGS1_365

:DRUGS1_395
90@ = 0
$smokeshoot_s4flag = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
282@ = 0
283@ = 0
127@ = 0
128@ = 0
129@ = 0
242@ = 0
243@ = 0
244@ = 0
245@ = 0
246@ = 0
247@ = 0
248@ = 0
249@ = 0
250@ = 0
251@ = 0
252@ = 0
253@ = 0
254@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
273@ = 0
274@ = 0
275@ = 0
276@ = 0
277@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
284@ = 0
285@ = 0
286@ = 0
287@ = 0
35@ = load_char_decision_maker DecisionMakerType.Empty
36@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 36@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
clear_area 2077.5801 {y} -1695.929 {z} 150.0 {radius} 150.0 {clearParticles} True
custom_plate_for_next_car 466 {text} "_A2TMFK_"
34@ = create_car 466 {x} 2058.8601 {y} -1694.6121 {z} 12.297
set_radio_channel RadioChannel.RadioLosSantos
change_car_colour 34@ {color1} 98 {color2} 14
set_car_heading 34@ {heading} 271.822
set_car_health 34@ {health} 1000
$big_smoke = create_char_as_passenger 34@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car $big_smoke {state} False
set_char_signal_after_kill $big_smoke {state} False
set_char_health $big_smoke {health} 500
set_char_suffers_critical_hits $big_smoke {state} False
set_char_never_targetted $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 35@
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_max_fire_generations 1
warp_char_into_car $scplayer {vehicle} 34@
set_wanted_multiplier 0.0
switch_emergency_services False
do_fade 1500 {direction} Fade.In
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
shut_char_up $scplayer {state} True
switch_roads_off 1694.12 {leftBottomY} -1604.33 {leftBottomZ} 5.0 {rightTopX} 1805.9399 {rightTopY} -1593.12 {rightTopZ} 15.0
print_now 'DGS1_1' {time} 6000 {flag} 1
TIMERB = 0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
shut_char_up_for_scripted_speech $big_smoke {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:DRUGS1_1348
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DRUGS1_1374
goto @DRUGS1_52043

:DRUGS1_1374
if 
  280@ <= 7
goto_if_false @DRUGS1_1431
if 
  is_char_dead $big_smoke
goto_if_false @DRUGS1_1431
print_now 'DGS1_60' {time} 7000 {flag} 1
goto @DRUGS1_52025

:DRUGS1_1431
if 
  123@ == 0
goto_if_false @DRUGS1_9251
if 
  90@ == 11
goto_if_false @DRUGS1_1567
if 
  6 > $smokeshoot_s4flag
goto_if_false @DRUGS1_1567
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 1744.2 {leftBottomY} -1686.6801 {rightTopX} 1698.34 {rightTopY} -1616.4 {drawSphere} False
goto_if_false @DRUGS1_1567
if 
  not is_char_on_screen $big_smoke
goto_if_false @DRUGS1_1567
explode_char_head $big_smoke
print_now 'DGS1_3' {time} 7000 {flag} 1
goto @DRUGS1_52025

:DRUGS1_1567
if 
  90@ == 0
goto_if_false @DRUGS1_1698
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_1698
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_1698
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1698
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1698
88@ = add_blip_for_coord 1722.568 {y} -1597.92 {z} 12.405
print_now 'DGS1_1' {time} 10000 {flag} 1
90@ = 1

:DRUGS1_1698
if 
  92@ == 0
goto_if_false @DRUGS1_1986
if or
  90@ == 1
  90@ == 100
goto_if_false @DRUGS1_1986
if 
  91@ == 0
goto_if_false @DRUGS1_1854
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_1854
if 
  not is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1854
87@ = add_blip_for_car 34@
set_blip_as_friendly 87@ {state} True
remove_blip 88@
90@ = 100
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMOX_AC' {time} 2000 {flag} 1
91@ = 1

:DRUGS1_1854
if 
  91@ == 1
goto_if_false @DRUGS1_1986
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_1986
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_1986
remove_blip 87@
88@ = add_blip_for_coord 1722.568 {y} -1597.92 {z} 12.405
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
if 
  282@ > 12
goto_if_false @DRUGS1_1972
print_now 'DGS1_1' {time} 5000 {flag} 1

:DRUGS1_1972
90@ = 1
91@ = 0

:DRUGS1_1986
if 
  90@ == 1
goto_if_false @DRUGS1_2968
gosub @DRUGS1_51642
if 
  282@ == 0
goto_if_false @DRUGS1_2097
if 
  283@ == 0
goto_if_false @DRUGS1_2097
if 
  TIMERB > 6500
goto_if_false @DRUGS1_2097
set_lvar_int_to_constant 239@ = 35600
set_lvar_text_label 240@s = 'SMO4_AA'
gosub @DRUGS1_51600

:DRUGS1_2097
if 
  282@ == 1
goto_if_false @DRUGS1_2164
if 
  283@ == 0
goto_if_false @DRUGS1_2164
set_lvar_int_to_constant 239@ = 35601
set_lvar_text_label 240@s = 'SMO4_AB'
gosub @DRUGS1_51600

:DRUGS1_2164
if 
  282@ == 2
goto_if_false @DRUGS1_2231
if 
  283@ == 0
goto_if_false @DRUGS1_2231
set_lvar_int_to_constant 239@ = 35602
set_lvar_text_label 240@s = 'SMO4_AC'
gosub @DRUGS1_51600

:DRUGS1_2231
if 
  282@ == 3
goto_if_false @DRUGS1_2298
if 
  283@ == 0
goto_if_false @DRUGS1_2298
set_lvar_int_to_constant 239@ = 35603
set_lvar_text_label 240@s = 'SMO4_AD'
gosub @DRUGS1_51600

:DRUGS1_2298
if 
  282@ == 4
goto_if_false @DRUGS1_2365
if 
  283@ == 0
goto_if_false @DRUGS1_2365
set_lvar_int_to_constant 239@ = 35604
set_lvar_text_label 240@s = 'SMO4_AE'
gosub @DRUGS1_51600

:DRUGS1_2365
if 
  282@ == 5
goto_if_false @DRUGS1_2432
if 
  283@ == 0
goto_if_false @DRUGS1_2432
set_lvar_int_to_constant 239@ = 35605
set_lvar_text_label 240@s = 'SMO4_AF'
gosub @DRUGS1_51600

:DRUGS1_2432
if 
  282@ == 6
goto_if_false @DRUGS1_2499
if 
  283@ == 0
goto_if_false @DRUGS1_2499
set_lvar_int_to_constant 239@ = 35606
set_lvar_text_label 240@s = 'SMO4_AG'
gosub @DRUGS1_51600

:DRUGS1_2499
if 
  282@ == 7
goto_if_false @DRUGS1_2566
if 
  283@ == 0
goto_if_false @DRUGS1_2566
set_lvar_int_to_constant 239@ = 35607
set_lvar_text_label 240@s = 'SMO4_AH'
gosub @DRUGS1_51600

:DRUGS1_2566
if 
  282@ == 7
goto_if_false @DRUGS1_2633
if 
  283@ == 0
goto_if_false @DRUGS1_2633
set_lvar_int_to_constant 239@ = 35608
set_lvar_text_label 240@s = 'SMO4_AJ'
gosub @DRUGS1_51600

:DRUGS1_2633
if 
  282@ == 8
goto_if_false @DRUGS1_2700
if 
  283@ == 0
goto_if_false @DRUGS1_2700
set_lvar_int_to_constant 239@ = 35609
set_lvar_text_label 240@s = 'SMO4_AK'
gosub @DRUGS1_51600

:DRUGS1_2700
if 
  282@ == 9
goto_if_false @DRUGS1_2767
if 
  283@ == 0
goto_if_false @DRUGS1_2767
set_lvar_int_to_constant 239@ = 35610
set_lvar_text_label 240@s = 'SMO4_AL'
gosub @DRUGS1_51600

:DRUGS1_2767
if 
  282@ == 10
goto_if_false @DRUGS1_2834
if 
  283@ == 0
goto_if_false @DRUGS1_2834
set_lvar_int_to_constant 239@ = 35611
set_lvar_text_label 240@s = 'SMO4_AM'
gosub @DRUGS1_51600

:DRUGS1_2834
if 
  282@ == 11
goto_if_false @DRUGS1_2901
if 
  283@ == 0
goto_if_false @DRUGS1_2901
set_lvar_int_to_constant 239@ = 35612
set_lvar_text_label 240@s = 'SMO4_AN'
gosub @DRUGS1_51600

:DRUGS1_2901
if 
  282@ == 12
goto_if_false @DRUGS1_2968
if 
  283@ == 0
goto_if_false @DRUGS1_2968
set_lvar_int_to_constant 239@ = 35613
set_lvar_text_label 240@s = 'SMO4_AO'
gosub @DRUGS1_51600

:DRUGS1_2968
if 
  90@ == 1
goto_if_false @DRUGS1_5137
if 
  not is_car_dead 34@
goto_if_false @DRUGS1_5137
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5137
if 
  is_char_sitting_in_car $big_smoke {vehicle} 34@
goto_if_false @DRUGS1_5137
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRUGS1_5137
if 
  locate_car_3d 34@ {x} 1722.568 {y} -1597.92 {z} 12.45 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @DRUGS1_5137
set_player_control $player1 {state} False
switch_widescreen True
disable_all_entry_exits True
set_max_wanted_level 0
122@ = 0
clear_area 1722.568 {y} -1597.92 {z} 300.0 {radius} 300.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_fixed_camera_position 1711.449 {y} -1576.924 {z} 30.3531 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1711.6281 {y} -1577.821 {z} 29.9486 {switchStyle} SwitchType.JumpCut
task_leave_any_car $big_smoke
task_leave_any_car $scplayer
do_fade 2000 {direction} Fade.Out

:DRUGS1_3236
if 
  get_fading_status 
goto_if_false @DRUGS1_3260
wait 0
goto @DRUGS1_3236

:DRUGS1_3260
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
request_model 352
request_model 346
request_model 353
request_animation "JST_BUISNESS"
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35614
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35615
load_all_models_now 

:DRUGS1_3326
if or
  not has_model_loaded 346
  not has_model_loaded 353
  not has_animation_loaded "JST_BUISNESS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_3382
wait 0
goto @DRUGS1_3326

:DRUGS1_3382
if 
  not has_model_loaded 353
goto_if_false @DRUGS1_3409
wait 0
goto @DRUGS1_3382

:DRUGS1_3409
37@ = create_char PedType.Mission1 {modelId} 93 {x} 1718.283 {y} -1633.178 {z} 19.2035
shut_char_up 37@ {state} True
set_char_heading 37@ {heading} 59.5412
task_play_anim_non_interruptable 37@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 37@ {handleOrTemplate} 35@
shut_char_up 37@ {state} True
38@ = create_char PedType.Mission1 {modelId} 93 {x} 1717.72 {y} -1633.952 {z} 19.2029
set_char_heading 38@ {heading} 313.3566
shut_char_up 38@ {state} True
task_play_anim_non_interruptable 38@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 38@ {handleOrTemplate} 35@
shut_char_up 38@ {state} True
39@ = create_char PedType.Mission1 {modelId} 93 {x} 1712.811 {y} -1629.454 {z} 19.201
set_char_heading 39@ {heading} 48.5227
shut_char_up 39@ {state} True
task_play_anim_non_interruptable 39@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 39@ {handleOrTemplate} 35@
shut_char_up 39@ {state} True
40@ = create_char PedType.Mission1 {modelId} 93 {x} 1712.146 {y} -1630.165 {z} 19.2003
set_char_heading 40@ {heading} 322.1413
shut_char_up 40@ {state} True
task_play_anim_non_interruptable 40@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 40@ {handleOrTemplate} 35@
shut_char_up 40@ {state} True
41@ = create_char PedType.Mission1 {modelId} 93 {x} 1732.528 {y} -1627.45 {z} 19.2044
set_char_heading 41@ {heading} 275.6598
shut_char_up 41@ {state} True
task_play_anim_non_interruptable 41@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 41@ {handleOrTemplate} 35@
shut_char_up 41@ {state} True
42@ = create_char PedType.Mission1 {modelId} 111 {x} 1729.973 {y} -1649.115 {z} 19.274
set_char_heading 42@ {heading} 11.051
set_char_decision_maker 42@ {handleOrTemplate} 35@
give_weapon_to_char 42@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_area_visible 42@ {areaId} 18
set_char_health 42@ {health} 35
214@ = add_blip_for_char 42@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_keep_task 42@ {state} True
43@ = create_char PedType.Mission1 {modelId} 112 {x} 1729.9709 {y} -1657.139 {z} 19.278
set_char_heading 43@ {heading} 21.106
set_char_health 43@ {health} 10
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_weapon_skill 43@ {skill} WeaponSkill.Pro
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 43@ {accuracy} 60
set_char_area_visible 43@ {areaId} 18
215@ = add_blip_for_char 43@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_keep_task 43@ {state} True
set_char_shoot_rate 43@ {rate} 50
44@ = create_char PedType.Mission1 {modelId} 112 {x} 1722.311 {y} -1658.636 {z} 19.108
set_char_heading 44@ {heading} 352.526
set_char_decision_maker 44@ {handleOrTemplate} 36@
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
give_weapon_to_char 44@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 44@ {areaId} 18
216@ = add_blip_for_char 44@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_keep_task 44@ {state} True
45@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.399 {y} -1657.463 {z} 19.26
set_char_health 45@ {health} 150
set_char_heading 45@ {heading} 323.108
set_char_decision_maker 45@ {handleOrTemplate} 36@
set_char_weapon_skill 45@ {skill} WeaponSkill.Pro
give_weapon_to_char 45@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 45@ {areaId} 18
set_char_accuracy 45@ {accuracy} 50
217@ = add_blip_for_char 45@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
set_char_keep_task 45@ {state} True
set_char_max_health 45@ {maxHealth} 150
set_char_health 45@ {health} 150
set_char_shoot_rate 45@ {rate} 50
46@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.7629 {y} -1664.816 {z} 19.273
set_char_heading 46@ {heading} 329.331
set_char_decision_maker 46@ {handleOrTemplate} 36@
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 46@ {accuracy} 50
set_char_max_health 46@ {maxHealth} 150
set_char_health 46@ {health} 150
set_char_area_visible 46@ {areaId} 18
218@ = add_blip_for_char 46@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
set_char_keep_task 46@ {state} True
47@ = create_char PedType.Mission1 {modelId} 111 {x} 1718.7111 {y} -1655.182 {z} 19.108
set_char_heading 47@ {heading} 327.782
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_weapon_skill 47@ {skill} WeaponSkill.Pro
give_weapon_to_char 47@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 47@ {areaId} 18
set_char_accuracy 47@ {accuracy} 60
219@ = add_blip_for_char 47@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
change_blip_scale 219@ {size} 2
set_char_keep_task 47@ {state} True
48@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.8 {y} -1650.28 {z} 19.26
set_char_heading 48@ {heading} 265.623
set_char_decision_maker 48@ {handleOrTemplate} 35@
set_char_weapon_skill 48@ {skill} WeaponSkill.Pro
give_weapon_to_char 48@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_max_health 48@ {maxHealth} 150
set_char_health 48@ {health} 150
set_char_area_visible 48@ {areaId} 18
220@ = add_blip_for_char 48@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
change_blip_scale 220@ {size} 2
set_char_keep_task 48@ {state} True
set_char_shoot_rate 48@ {rate} 50
51@ = create_char PedType.Mission1 {modelId} 112 {x} 1719.6 {y} -1671.764 {z} 22.741
set_char_health 51@ {health} 5
set_char_heading 51@ {heading} 11.45
set_char_decision_maker 51@ {handleOrTemplate} 35@
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_allowed_to_duck 51@ {state} False
set_char_area_visible 51@ {areaId} 18
223@ = add_blip_for_char 51@
change_blip_display 223@ {display} BlipDisplay.BlipOnly
change_blip_scale 223@ {size} 2
set_char_keep_task 51@ {state} True
52@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.897 {y} -1668.0389 {z} 19.23
set_char_heading 52@ {heading} 276.178
set_char_decision_maker 52@ {handleOrTemplate} 35@
set_char_weapon_skill 52@ {skill} WeaponSkill.Pro
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 52@ {areaId} 18
set_char_accuracy 52@ {accuracy} 60
224@ = add_blip_for_char 52@
change_blip_display 224@ {display} BlipDisplay.BlipOnly
change_blip_scale 224@ {size} 2
set_char_keep_task 52@ {state} True
set_char_max_health 52@ {maxHealth} 150
set_char_health 52@ {health} 150
53@ = create_char PedType.Mission1 {modelId} 111 {x} 1725.037 {y} -1672.6899 {z} 22.735
set_char_heading 53@ {heading} 127.283
set_char_decision_maker 53@ {handleOrTemplate} 35@
set_char_weapon_skill 53@ {skill} WeaponSkill.Pro
give_weapon_to_char 53@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 53@ {accuracy} 60
set_char_area_visible 53@ {areaId} 18
225@ = add_blip_for_char 53@
change_blip_display 225@ {display} BlipDisplay.BlipOnly
change_blip_scale 225@ {size} 2
set_char_keep_task 53@ {state} True
set_char_shoot_rate 53@ {rate} 50
54@ = create_char PedType.Mission1 {modelId} 111 {x} 1733.358 {y} -1664.599 {z} 22.747
set_char_heading 54@ {heading} 141.981
set_char_decision_maker 54@ {handleOrTemplate} 35@
set_char_weapon_skill 54@ {skill} WeaponSkill.Pro
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 54@ {accuracy} 50
set_char_area_visible 54@ {areaId} 18
226@ = add_blip_for_char 54@
change_blip_display 226@ {display} BlipDisplay.BlipOnly
change_blip_scale 226@ {size} 2
set_char_keep_task 54@ {state} True
set_char_max_health 54@ {maxHealth} 150
set_char_health 54@ {health} 150
load_scene_in_direction 1726.993 {y} -1628.007 {z} 20.2 {heading} 8.98
load_scene_in_direction 1726.993 {y} -1628.007 {z} 20.2 {heading} 169.7
90@ = 2

:DRUGS1_5137
if 
  90@ == 2
goto_if_false @DRUGS1_5401
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5401
if 
  not is_char_in_any_car $big_smoke
goto_if_false @DRUGS1_5401
if 
  not is_char_in_any_car $scplayer
goto_if_false @DRUGS1_5401
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $big_smoke
set_char_coordinates $scplayer {x} 1726.04 {y} -1632.521 {z} 19.18
set_char_heading $scplayer {heading} 180.0
set_char_coordinates $big_smoke {x} 1726.8149 {y} -1633.001 {z} 19.18
set_char_heading $big_smoke {heading} 180.0
63@ = create_char PedType.Mission1 {modelId} 91 {x} 1727.757 {y} -1632.918 {z} 19.18
set_char_heading 63@ {heading} 270.0
set_char_decision_maker 63@ {handleOrTemplate} 35@
shut_char_up 63@ {state} True
TIMERB = 0
set_fixed_camera_position 1728.489 {y} -1633.5389 {z} 20.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.4041 {y} -1632.053 {z} 20.279 {switchStyle} SwitchType.JumpCut
TIMERA = 0
99@ = 1
90@ = 8

:DRUGS1_5401
if 
  90@ == 8
goto_if_false @DRUGS1_6890
if 
  99@ == 1
goto_if_false @DRUGS1_5472
if 
  TIMERA > 1000
goto_if_false @DRUGS1_5472
clear_prints 
do_fade 500 {direction} Fade.In
99@ = 2

:DRUGS1_5472
if 
  99@ == 2
goto_if_false @DRUGS1_5710
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5710
if 
  not is_char_dead 63@
goto_if_false @DRUGS1_5710
set_char_collision 63@ {state} False
set_char_collision $big_smoke {state} False
set_char_collision $scplayer {state} False
task_play_anim_non_interruptable $scplayer {animationName} "PLAYER_01" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $big_smoke {animationName} "SMOKE_01" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable 63@ {animationName} "GIRL_01" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
TIMERB = 0
93@ = 0
skip_cutscene_start_internal @DRUGS1_6960
99@ = 3

:DRUGS1_5710
if 
  99@ == 3
goto_if_false @DRUGS1_5849
if 
  TIMERB > 2066
goto_if_false @DRUGS1_5849
set_fixed_camera_position 1726.35 {y} -1630.824 {z} 20.7289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.411 {y} -1631.822 {z} 20.7195 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5826
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_5826
print_now 'SMO4_BA' {time} 5000 {flag} 1
99@ = 4

:DRUGS1_5849
if 
  99@ == 4
goto_if_false @DRUGS1_6023
if 
  TIMERB > 4999
goto_if_false @DRUGS1_6023
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6023
set_fixed_camera_position 1726.37 {y} -1633.38 {z} 20.6705 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.416 {y} -1632.381 {z} 20.6667 {switchStyle} SwitchType.JumpCut
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_5979
stop_char_facial_talk $big_smoke

:DRUGS1_5979
print_now 'SMO4_BB' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35616
99@ = 5

:DRUGS1_6023
if 
  99@ == 5
goto_if_false @DRUGS1_6140
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6140
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6140
stop_char_facial_talk $scplayer
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_6104
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_6104
print_now 'SMO4_BC' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35617
99@ = 6

:DRUGS1_6140
if 
  99@ == 6
goto_if_false @DRUGS1_6224
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6224
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6224
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_BD' {time} 5000 {flag} 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35618
99@ = 7

:DRUGS1_6224
if 
  99@ == 7
goto_if_false @DRUGS1_6468
if 
  TIMERB > 9999
goto_if_false @DRUGS1_6468
if 
  not is_char_dead 63@
goto_if_false @DRUGS1_6468
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6468
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6468
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_6328
stop_char_facial_talk $big_smoke

:DRUGS1_6328
clear_char_tasks_immediately 63@
set_char_coordinates 63@ {x} 1732.785 {y} -1633.043 {z} 19.2
set_char_heading 63@ {heading} 0.0
task_play_anim_non_interruptable 63@ {animationName} "GIRL_02" {animationFile} "JST_BUISNESS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_BE' {time} 3000 {flag} 1
set_near_clip 0.09
start_char_facial_talk $scplayer {duration} 2000
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35619
129@ = 1
99@ = 8

:DRUGS1_6468
if 
  129@ == 1
goto_if_false @DRUGS1_6513
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6513
stop_char_facial_talk $scplayer
129@ = 2

:DRUGS1_6513
if 
  99@ == 8
goto_if_false @DRUGS1_6678
if 
  TIMERB > 18500
goto_if_false @DRUGS1_6678
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6678
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6678
set_fixed_camera_position 1725.094 {y} -1632.446 {z} 20.7074 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.0909 {y} -1632.391 {z} 20.6711 {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_BF' {time} 3000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35620
99@ = 9

:DRUGS1_6678
if 
  99@ == 9
goto_if_false @DRUGS1_6758
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_6758
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6758
stop_char_facial_talk $scplayer
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_BG' {time} 5000 {flag} 1
99@ = 10

:DRUGS1_6758
if 
  99@ == 10
goto_if_false @DRUGS1_6890
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_6890
clear_prints 
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_6890
if 
  is_char_playing_anim $scplayer {animationName} "PLAYER_01"
goto_if_false @DRUGS1_6890
62@ = get_char_anim_current_time $scplayer {animationName} "PLAYER_01"
if 
  62@ == 1.0
goto_if_false @DRUGS1_6890
90@ = 10
99@ = 11

:DRUGS1_6890
if 
  90@ == 10
goto_if_false @DRUGS1_9251
if 
  TIMERA > 2000
goto_if_false @DRUGS1_9251
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9251
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
93@ = 1

:DRUGS1_6960
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:DRUGS1_6969
if 
  get_fading_status 
goto_if_false @DRUGS1_6993
wait 0
goto @DRUGS1_6969

:DRUGS1_6993
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
set_area_visible 18
load_scene 1722.8101 {y} -1658.54 {z} 20.19
if 
  93@ == 0
goto_if_false @DRUGS1_8359
clear_prints 
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 93
delete_car 34@
mark_model_as_no_longer_needed 466
42@ = create_char PedType.Mission1 {modelId} 111 {x} 1729.973 {y} -1649.115 {z} 19.274
set_char_heading 42@ {heading} 11.051
set_char_decision_maker 42@ {handleOrTemplate} 35@
give_weapon_to_char 42@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_area_visible 42@ {areaId} 18
set_char_health 42@ {health} 35
214@ = add_blip_for_char 42@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_keep_task 42@ {state} True
43@ = create_char PedType.Mission1 {modelId} 112 {x} 1729.9709 {y} -1657.139 {z} 19.278
set_char_health 43@ {health} 10
set_char_heading 43@ {heading} 21.106
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_weapon_skill 43@ {skill} WeaponSkill.Pro
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 43@ {accuracy} 60
set_char_area_visible 43@ {areaId} 18
215@ = add_blip_for_char 43@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_shoot_rate 43@ {rate} 50
set_char_keep_task 43@ {state} True
44@ = create_char PedType.Mission1 {modelId} 112 {x} 1722.311 {y} -1658.636 {z} 19.108
set_char_heading 44@ {heading} 352.526
set_char_decision_maker 44@ {handleOrTemplate} 36@
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
give_weapon_to_char 44@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 44@ {areaId} 18
216@ = add_blip_for_char 44@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_keep_task 44@ {state} True
45@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.399 {y} -1657.463 {z} 19.26
set_char_health 45@ {health} 150
set_char_heading 45@ {heading} 323.108
set_char_decision_maker 45@ {handleOrTemplate} 36@
set_char_weapon_skill 45@ {skill} WeaponSkill.Pro
give_weapon_to_char 45@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 45@ {areaId} 18
217@ = add_blip_for_char 45@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
set_char_accuracy 45@ {accuracy} 60
set_char_keep_task 45@ {state} True
set_char_max_health 45@ {maxHealth} 150
set_char_health 45@ {health} 150
set_char_shoot_rate 45@ {rate} 50
46@ = create_char PedType.Mission1 {modelId} 111 {x} 1712.7629 {y} -1664.816 {z} 19.273
set_char_heading 46@ {heading} 329.331
set_char_decision_maker 46@ {handleOrTemplate} 36@
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 46@ {accuracy} 70
set_char_max_health 46@ {maxHealth} 150
set_char_health 46@ {health} 150
set_char_area_visible 46@ {areaId} 18
218@ = add_blip_for_char 46@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
set_char_keep_task 46@ {state} True
47@ = create_char PedType.Mission1 {modelId} 111 {x} 1718.7111 {y} -1655.182 {z} 19.108
set_char_heading 47@ {heading} 327.782
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_weapon_skill 47@ {skill} WeaponSkill.Pro
give_weapon_to_char 47@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 47@ {areaId} 18
219@ = add_blip_for_char 47@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
change_blip_scale 219@ {size} 2
set_char_accuracy 47@ {accuracy} 60
set_char_keep_task 47@ {state} True
48@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.8 {y} -1650.28 {z} 19.26
set_char_heading 48@ {heading} 265.623
set_char_decision_maker 48@ {handleOrTemplate} 35@
set_char_weapon_skill 48@ {skill} WeaponSkill.Pro
give_weapon_to_char 48@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_max_health 48@ {maxHealth} 150
set_char_health 48@ {health} 150
set_char_area_visible 48@ {areaId} 18
220@ = add_blip_for_char 48@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
change_blip_scale 220@ {size} 2
set_char_keep_task 48@ {state} True
set_char_shoot_rate 48@ {rate} 60
51@ = create_char PedType.Mission1 {modelId} 112 {x} 1719.6 {y} -1671.764 {z} 22.741
set_char_health 51@ {health} 5
set_char_heading 51@ {heading} 11.45
set_char_decision_maker 51@ {handleOrTemplate} 35@
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_allowed_to_duck 51@ {state} False
set_char_area_visible 51@ {areaId} 18
223@ = add_blip_for_char 51@
change_blip_display 223@ {display} BlipDisplay.BlipOnly
change_blip_scale 223@ {size} 2
set_char_keep_task 51@ {state} True
52@ = create_char PedType.Mission1 {modelId} 112 {x} 1701.897 {y} -1668.0389 {z} 19.23
set_char_heading 52@ {heading} 276.178
set_char_decision_maker 52@ {handleOrTemplate} 35@
set_char_weapon_skill 52@ {skill} WeaponSkill.Pro
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_area_visible 52@ {areaId} 18
set_char_accuracy 52@ {accuracy} 60
224@ = add_blip_for_char 52@
change_blip_display 224@ {display} BlipDisplay.BlipOnly
change_blip_scale 224@ {size} 2
set_char_keep_task 52@ {state} True
set_char_max_health 52@ {maxHealth} 150
set_char_health 52@ {health} 150
53@ = create_char PedType.Mission1 {modelId} 111 {x} 1725.037 {y} -1672.6899 {z} 22.735
set_char_heading 53@ {heading} 127.283
set_char_decision_maker 53@ {handleOrTemplate} 35@
set_char_weapon_skill 53@ {skill} WeaponSkill.Pro
give_weapon_to_char 53@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 53@ {accuracy} 60
set_char_area_visible 53@ {areaId} 18
225@ = add_blip_for_char 53@
change_blip_display 225@ {display} BlipDisplay.BlipOnly
change_blip_scale 225@ {size} 2
set_char_keep_task 53@ {state} True
set_char_shoot_rate 53@ {rate} 50
54@ = create_char PedType.Mission1 {modelId} 111 {x} 1733.358 {y} -1664.599 {z} 22.747
set_char_heading 54@ {heading} 141.981
set_char_decision_maker 54@ {handleOrTemplate} 35@
set_char_weapon_skill 54@ {skill} WeaponSkill.Pro
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 54@ {accuracy} 65
set_char_area_visible 54@ {areaId} 18
226@ = add_blip_for_char 54@
change_blip_display 226@ {display} BlipDisplay.BlipOnly
change_blip_scale 226@ {size} 2
set_char_keep_task 54@ {state} True
set_char_max_health 54@ {maxHealth} 150
set_char_health 54@ {health} 150

:DRUGS1_8359
if 
  $smokeshoot_s4flag == 0
goto_if_false @DRUGS1_8626
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8626
clear_char_tasks_immediately $big_smoke
set_char_collision $big_smoke {state} True
set_char_collision $scplayer {state} True
stop_char_facial_talk $big_smoke
stop_char_facial_talk $scplayer
set_char_coordinates $big_smoke {x} 1727.884 {y} -1641.127 {z} 19.2323
set_char_heading $big_smoke {heading} 182.5173
set_char_has_used_entry_exit $big_smoke {x} 1727.009 {y} -1635.826 {radius} 1.0
89@ = add_blip_for_char $big_smoke
set_char_accuracy $big_smoke {accuracy} 100
set_char_area_visible $big_smoke {areaId} 18
set_blip_as_friendly 89@ {state} True
set_char_has_used_entry_exit $scplayer {x} 1727.009 {y} -1635.826 {radius} 1.0
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
load_scene 1727.884 {y} -1641.127 {z} 19.2323
give_weapon_to_char $big_smoke {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_max_health $big_smoke {maxHealth} 500
set_char_health $big_smoke {health} 500
$smokehealth_s4 = get_char_health $big_smoke
set_char_shoot_rate $big_smoke {rate} 55
$smokehealth_s4 /= 5
display_onscreen_counter_with_string $smokehealth_s4 {display} CounterDisplay.Bar {text} 'DGS1_58'
task_toggle_duck $big_smoke {state} True
$smokeshoot_s4flag = 1

:DRUGS1_8626
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35624
switch_widescreen True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1725.933 {y} -1638.374 {z} 19.2232
set_char_heading $scplayer {heading} 174.7897
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8709
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_8709
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_8735
wait 0
goto @DRUGS1_8709

:DRUGS1_8735
do_fade 250 {direction} Fade.In
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_8777
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_BL' {time} 2500 {flag} 1

:DRUGS1_8777
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_8832
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8832
set_lvar_int_to_lvar_int 79@ = 42@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51943

:DRUGS1_8832
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_8887
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_8887
set_lvar_int_to_lvar_int 79@ = 44@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51987

:DRUGS1_8887
set_fixed_camera_position 1726.528 {y} -1637.829 {z} 21.257 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1726.4771 {y} -1638.7791 {z} 20.9496 {switchStyle} SwitchType.JumpCut
task_toggle_duck $scplayer {state} True
task_go_straight_to_coord $scplayer {x} 1724.626 {y} -1640.693 {z} 20.2245 {speed} MoveState.Walk {time} -1
TIMERA = 0

:DRUGS1_8976
if or
  not locate_stopped_char_any_means_2d $scplayer {x} 1724.626 {y} -1640.693 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
  TIMERA <= 1500
goto_if_false @DRUGS1_9033
wait 0
goto @DRUGS1_8976

:DRUGS1_9033
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_9050
clear_prints 

:DRUGS1_9050
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 120
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 180.0
switch_widescreen False
set_char_collision $scplayer {state} True
remove_animation "JST_BUISNESS"
remove_blip 88@
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 91
delete_char 63@
delete_car 34@
mark_model_as_no_longer_needed 466
set_player_control $player1 {state} True
task_toggle_duck $scplayer {state} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9198
set_char_proofs $big_smoke {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRUGS1_9198
clear_mission_audio MissionAudioSlot.Slot1
123@ = 1
282@ = 0
283@ = 0
125@ = 1
90@ = 11
TIMERA = 0
128@ = 2

:DRUGS1_9251
if 
  90@ == 11
goto_if_false @DRUGS1_15741
if 
  128@ == 2
goto_if_false @DRUGS1_15741
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9318
$smokehealth_s4 = get_char_health $big_smoke
$smokehealth_s4 /= 5

:DRUGS1_9318
if 
  126@ == 0
goto_if_false @DRUGS1_13730
if 
  $smokeshoot_s4flag == 1
goto_if_false @DRUGS1_9811
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_9393
set_lvar_int_to_lvar_int 79@ = 43@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_9393
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_9432
set_lvar_int_to_lvar_int 79@ = 45@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943

:DRUGS1_9432
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_9487
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9487
set_lvar_int_to_lvar_int 79@ = 46@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51987

:DRUGS1_9487
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_9526
set_lvar_int_to_lvar_int 79@ = 47@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943

:DRUGS1_9526
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_9565
set_lvar_int_to_lvar_int 79@ = 51@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_9565
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_9664
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1728.416
82@ = -1669.709
83@ = 22.8493
84@ = 1721.637
85@ = -1662.946
86@ = 20.27
gosub @DRUGS1_51806

:DRUGS1_9664
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_9797
122@ = 1
69@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_9727
task_kill_char_on_foot -1 {target} 42@

:DRUGS1_9727
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_9750
task_kill_char_on_foot -1 {target} 43@

:DRUGS1_9750
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 1727.717 {y} -1658.271 {z} 20.277 {speed} MoveState.Run {time} -1
close_sequence_task 69@
perform_sequence_task $big_smoke {sequence} 69@
clear_sequence_task 69@

:DRUGS1_9797
TIMERA = 0
$smokeshoot_s4flag = 2

:DRUGS1_9811
if 
  $smokeshoot_s4flag == 2
goto_if_false @DRUGS1_10022
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_10022
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10022
set_char_accuracy $big_smoke {accuracy} 50
70@ = open_sequence_task 
122@ = 2
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_9922
task_kill_char_on_foot -1 {target} 44@

:DRUGS1_9922
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_9945
task_kill_char_on_foot -1 {target} 52@

:DRUGS1_9945
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_9968
task_kill_char_on_foot -1 {target} 53@

:DRUGS1_9968
task_stay_in_same_place -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 1719.854 {y} -1666.667 {z} 20.271 {speed} MoveState.Run {time} -1
close_sequence_task 70@
perform_sequence_task $big_smoke {sequence} 70@
clear_sequence_task 70@
$smokeshoot_s4flag = 3

:DRUGS1_10022
if 
  $smokeshoot_s4flag == 3
goto_if_false @DRUGS1_10226
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_10226
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10226
122@ = 3
71@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_10126
task_kill_char_on_foot -1 {target} 46@

:DRUGS1_10126
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_10149
task_kill_char_on_foot -1 {target} 47@

:DRUGS1_10149
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_10172
task_kill_char_on_foot -1 {target} 48@

:DRUGS1_10172
task_stay_in_same_place -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 1713.96 {y} -1668.24 {z} 19.27 {speed} MoveState.Run {time} -1
close_sequence_task 71@
perform_sequence_task $big_smoke {sequence} 71@
clear_sequence_task 71@
$smokeshoot_s4flag = 4

:DRUGS1_10226
if 
  $smokeshoot_s4flag == 4
goto_if_false @DRUGS1_10407
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_10407
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10407
122@ = 4
72@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_10336
task_kill_char_on_foot -1 {target} 45@

:DRUGS1_10336
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_10359
task_kill_char_on_foot -1 {target} 51@

:DRUGS1_10359
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_10382
task_kill_char_on_foot -1 {target} 54@

:DRUGS1_10382
close_sequence_task 72@
perform_sequence_task $big_smoke {sequence} 72@
clear_sequence_task 72@
$smokeshoot_s4flag = 5

:DRUGS1_10407
if 
  $smokeshoot_s4flag == 5
goto_if_false @DRUGS1_10542
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_10542
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_10542
122@ = 5
73@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 1704.45 {y} -1667.71 {z} 19.68 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 73@
perform_sequence_task $big_smoke {sequence} 73@
clear_sequence_task 73@
$smokeshoot_s4flag = 6

:DRUGS1_10542
if 
  94@ == 0
goto_if_false @DRUGS1_10617
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_10617
if 
  has_char_been_damaged_by_char 44@ {handle} $scplayer
goto_if_false @DRUGS1_10617
task_stay_in_same_place 44@ {state} False
task_kill_char_on_foot 44@ {target} $scplayer
94@ = 1

:DRUGS1_10617
if 
  95@ == 0
goto_if_false @DRUGS1_10732
if or
  locate_char_any_means_3d $scplayer {x} 1727.0 {y} -1637.0 {z} 20.0 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 1700.1899 {y} -1667.58 {z} 20.0 {xRadius} 6.5 {yRadius} 6.5 {zRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS1_10732
remove_char_elegantly 41@
95@ = 1

:DRUGS1_10732
if 
  96@ == 0
goto_if_false @DRUGS1_11010
if 
  does_char_exist 48@
goto_if_false @DRUGS1_11010
if or
  is_char_in_area_3d $scplayer {leftBottomX} 1707.16 {leftBottomY} -1643.73 {leftBottomZ} 17.0 {rightTopX} 1735.9 {rightTopY} -1653.46 {rightTopZ} 22.0 {drawSphere} False
  has_char_been_damaged_by_char 48@ {handle} $scplayer
  is_char_dead 44@
goto_if_false @DRUGS1_11010
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_10904
set_lvar_int_to_lvar_int 79@ = 48@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1725.069
82@ = -1649.467
83@ = 19.27
set_char_money 48@ {amount} 250
gosub @DRUGS1_51894

:DRUGS1_10904
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_11003
set_lvar_int_to_lvar_int 79@ = 52@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1717.0
82@ = -1667.75
83@ = 20.27
84@ = 1715.609
85@ = -1657.2581
86@ = 20.271
gosub @DRUGS1_51806

:DRUGS1_11003
96@ = 1

:DRUGS1_11010
if 
  98@ == 0
goto_if_false @DRUGS1_11211
if 
  does_char_exist 54@
goto_if_false @DRUGS1_11211
if or
  is_char_in_area_3d $scplayer {leftBottomX} 1738.42 {leftBottomY} -1651.0699 {leftBottomZ} 17.0 {rightTopX} 1698.7 {rightTopY} -1659.61 {rightTopZ} 22.0 {drawSphere} False
  has_char_been_damaged_by_char 54@ {handle} $scplayer
  is_char_dead 45@
goto_if_false @DRUGS1_11211
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_11204
set_lvar_int_to_lvar_int 79@ = 54@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1729.928
82@ = -1667.75
83@ = 22.85
84@ = 1725.52
85@ = -1663.7371
86@ = 20.5
gosub @DRUGS1_51806

:DRUGS1_11204
98@ = 1

:DRUGS1_11211
if 
  7 > $smokeshoot_s4flag
goto_if_false @DRUGS1_11867
if 
  102@ == 0
goto_if_false @DRUGS1_11287
if 
  is_char_dead 42@
goto_if_false @DRUGS1_11287
mark_char_as_no_longer_needed 42@
remove_blip 214@
124@ += 1
102@ = 1

:DRUGS1_11287
if 
  103@ == 0
goto_if_false @DRUGS1_11345
if 
  is_char_dead 43@
goto_if_false @DRUGS1_11345
mark_char_as_no_longer_needed 43@
remove_blip 215@
124@ += 1
103@ = 1

:DRUGS1_11345
if 
  104@ == 0
goto_if_false @DRUGS1_11403
if 
  is_char_dead 44@
goto_if_false @DRUGS1_11403
mark_char_as_no_longer_needed 44@
remove_blip 216@
124@ += 1
104@ = 1

:DRUGS1_11403
if 
  105@ == 0
goto_if_false @DRUGS1_11461
if 
  is_char_dead 45@
goto_if_false @DRUGS1_11461
mark_char_as_no_longer_needed 45@
remove_blip 217@
124@ += 1
105@ = 1

:DRUGS1_11461
if 
  106@ == 0
goto_if_false @DRUGS1_11519
if 
  is_char_dead 46@
goto_if_false @DRUGS1_11519
mark_char_as_no_longer_needed 46@
remove_blip 218@
124@ += 1
106@ = 1

:DRUGS1_11519
if 
  107@ == 0
goto_if_false @DRUGS1_11577
if 
  is_char_dead 47@
goto_if_false @DRUGS1_11577
mark_char_as_no_longer_needed 47@
remove_blip 219@
124@ += 1
107@ = 1

:DRUGS1_11577
if 
  108@ == 0
goto_if_false @DRUGS1_11635
if 
  is_char_dead 48@
goto_if_false @DRUGS1_11635
mark_char_as_no_longer_needed 48@
remove_blip 220@
124@ += 1
108@ = 1

:DRUGS1_11635
if 
  111@ == 0
goto_if_false @DRUGS1_11693
if 
  is_char_dead 51@
goto_if_false @DRUGS1_11693
mark_char_as_no_longer_needed 51@
remove_blip 223@
124@ += 1
111@ = 1

:DRUGS1_11693
if 
  112@ == 0
goto_if_false @DRUGS1_11751
if 
  is_char_dead 52@
goto_if_false @DRUGS1_11751
mark_char_as_no_longer_needed 52@
remove_blip 224@
124@ += 1
112@ = 1

:DRUGS1_11751
if 
  113@ == 0
goto_if_false @DRUGS1_11809
if 
  is_char_dead 53@
goto_if_false @DRUGS1_11809
mark_char_as_no_longer_needed 53@
remove_blip 225@
124@ += 1
113@ = 1

:DRUGS1_11809
if 
  114@ == 0
goto_if_false @DRUGS1_11867
if 
  is_char_dead 54@
goto_if_false @DRUGS1_11867
mark_char_as_no_longer_needed 54@
remove_blip 226@
124@ += 1
114@ = 1

:DRUGS1_11867
if 
  90@ == 11
goto_if_false @DRUGS1_12510
if 
  126@ == 0
goto_if_false @DRUGS1_12510
gosub @DRUGS1_51642
if 
  282@ == 0
goto_if_false @DRUGS1_11977
if 
  283@ == 0
goto_if_false @DRUGS1_11977
set_lvar_int_to_constant 239@ = 35627
set_lvar_text_label 240@s = 'SMO4_BO'
gosub @DRUGS1_51600

:DRUGS1_11977
if 
  282@ == 1
goto_if_false @DRUGS1_12044
if 
  283@ == 0
goto_if_false @DRUGS1_12044
set_lvar_int_to_constant 239@ = 35654
set_lvar_text_label 240@s = 'SMO4_EK'
gosub @DRUGS1_51600

:DRUGS1_12044
if 
  282@ == 2
goto_if_false @DRUGS1_12111
if 
  283@ == 0
goto_if_false @DRUGS1_12111
set_lvar_int_to_constant 239@ = 35637
set_lvar_text_label 240@s = 'SMO4_DA'
gosub @DRUGS1_51600

:DRUGS1_12111
if 
  282@ == 3
goto_if_false @DRUGS1_12178
if 
  283@ == 0
goto_if_false @DRUGS1_12178
set_lvar_int_to_constant 239@ = 35626
set_lvar_text_label 240@s = 'SMO4_BN'
gosub @DRUGS1_51600

:DRUGS1_12178
if 
  282@ == 4
goto_if_false @DRUGS1_12245
if 
  283@ == 0
goto_if_false @DRUGS1_12245
set_lvar_int_to_constant 239@ = 35628
set_lvar_text_label 240@s = 'SMO4_BP'
gosub @DRUGS1_51600

:DRUGS1_12245
if 
  282@ == 5
goto_if_false @DRUGS1_12312
if 
  283@ == 0
goto_if_false @DRUGS1_12312
set_lvar_int_to_constant 239@ = 35651
set_lvar_text_label 240@s = 'SMO4_EG'
gosub @DRUGS1_51600

:DRUGS1_12312
if 
  282@ == 6
goto_if_false @DRUGS1_12379
if 
  283@ == 0
goto_if_false @DRUGS1_12379
set_lvar_int_to_constant 239@ = 35653
set_lvar_text_label 240@s = 'SMO4_EJ'
gosub @DRUGS1_51600

:DRUGS1_12379
if 
  127@ == 0
goto_if_false @DRUGS1_12443
if or
  $smokeshoot_s4flag == 6
  124@ == 11
goto_if_false @DRUGS1_12443
283@ = 0
282@ = 12
127@ = 1

:DRUGS1_12443
if 
  282@ == 12
goto_if_false @DRUGS1_12510
if 
  283@ == 0
goto_if_false @DRUGS1_12510
set_lvar_int_to_constant 239@ = 35644
set_lvar_text_label 240@s = 'SMO4_DJ'
gosub @DRUGS1_51600

:DRUGS1_12510
if 
  125@ == 1
goto_if_false @DRUGS1_12553
print_help 'DGS1_63'
TIMERB = 0
125@ = 2

:DRUGS1_12553
if 
  125@ == 2
goto_if_false @DRUGS1_12615
if 
  TIMERB > 10000
goto_if_false @DRUGS1_12615
print_help 'DGS1_2'
TIMERB = 0
125@ = 3

:DRUGS1_12615
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_13730
if 
  locate_char_on_foot_3d $big_smoke {x} 1704.45 {y} -1667.71 {z} 19.68 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS1_13730
if 
  locate_char_on_foot_3d $scplayer {x} 1700.49 {y} -1667.87 {z} 19.46 {xRadius} 8.5 {yRadius} 8.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @DRUGS1_13730
if or
  $smokeshoot_s4flag == 6
  124@ == 11
goto_if_false @DRUGS1_13730
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
do_fade 500 {direction} Fade.Out

:DRUGS1_12774
if 
  get_fading_status 
goto_if_false @DRUGS1_12798
wait 0
goto @DRUGS1_12774

:DRUGS1_12798
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_12909
set_area_visible 0
set_char_area_visible $big_smoke {areaId} 0
clear_char_tasks_immediately $big_smoke
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates $big_smoke {x} 1696.229 {y} -1669.1331 {z} 19.23
set_char_heading $big_smoke {heading} 86.7366
set_char_coordinates $scplayer {x} 1696.339 {y} -1666.897 {z} 19.2
set_char_heading $scplayer {heading} 85.4

:DRUGS1_12909
49@ = create_char PedType.Mission1 {modelId} 112 {x} 1682.6851 {y} -1671.516 {z} 19.24
set_char_heading 49@ {heading} 289.407
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_weapon_skill 49@ {skill} WeaponSkill.Pro
give_weapon_to_char 49@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 49@ {accuracy} 50
set_char_health 49@ {health} 150
214@ = add_blip_for_char 49@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_keep_task 49@ {state} True
55@ = create_char PedType.Mission1 {modelId} 111 {x} 1676.5291 {y} -1676.516 {z} 20.47
set_char_heading 55@ {heading} 299.59
set_char_decision_maker 55@ {handleOrTemplate} 35@
give_weapon_to_char 55@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 55@ {accuracy} 30
set_char_health 55@ {health} 150
set_char_allowed_to_duck 55@ {state} False
215@ = add_blip_for_char 55@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_keep_task 55@ {state} True
56@ = create_char PedType.Mission1 {modelId} 111 {x} 1645.896 {y} -1667.693 {z} 20.472
set_char_heading 56@ {heading} 270.18
set_char_decision_maker 56@ {handleOrTemplate} 35@
set_char_weapon_skill 56@ {skill} WeaponSkill.Pro
give_weapon_to_char 56@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 56@ {accuracy} 60
set_char_health 56@ {health} 150
216@ = add_blip_for_char 56@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_keep_task 56@ {state} True
57@ = create_char PedType.Mission1 {modelId} 111 {x} 1663.022 {y} -1685.541 {z} 20.469
set_char_heading 57@ {heading} 301.304
set_char_decision_maker 57@ {handleOrTemplate} 35@
give_weapon_to_char 57@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 57@ {accuracy} 50
set_char_health 57@ {health} 125
217@ = add_blip_for_char 57@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
set_char_keep_task 57@ {state} True
58@ = create_char PedType.Mission1 {modelId} 111 {x} 1663.079 {y} -1676.61 {z} 20.468
set_char_heading 58@ {heading} 268.5
set_char_decision_maker 58@ {handleOrTemplate} 35@
give_weapon_to_char 58@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 58@ {accuracy} 60
set_char_max_health 58@ {maxHealth} 125
set_char_health 58@ {health} 125
set_char_allowed_to_duck 58@ {state} False
218@ = add_blip_for_char 58@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
set_char_keep_task 58@ {state} True
59@ = create_char PedType.Mission1 {modelId} 111 {x} 1662.793 {y} -1670.124 {z} 20.463
set_char_heading 59@ {heading} 268.5
set_char_decision_maker 59@ {handleOrTemplate} 35@
give_weapon_to_char 59@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_only_damaged_by_player 59@ {state} True
set_char_accuracy 59@ {accuracy} 60
set_char_max_health 59@ {maxHealth} 150
set_char_health 59@ {health} 150
219@ = add_blip_for_char 59@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
change_blip_scale 219@ {size} 2
set_char_keep_task 59@ {state} True
50@ = create_char PedType.Mission1 {modelId} 111 {x} 1698.51 {y} -1678.459 {z} 19.233
set_char_heading 50@ {heading} 99.699
set_char_decision_maker 50@ {handleOrTemplate} 35@
set_char_weapon_skill 50@ {skill} WeaponSkill.Pro
give_weapon_to_char 50@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 50@ {accuracy} 30
set_char_health 50@ {health} 150
220@ = add_blip_for_char 50@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
change_blip_scale 220@ {size} 2
set_char_keep_task 50@ {state} True
task_toggle_duck $scplayer {state} True
wait 500
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_13679
set_char_proofs $big_smoke {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRUGS1_13679
set_camera_behind_player 
set_player_control $player1 {state} True
do_fade 750 {direction} Fade.In
124@ = 0
$smokeshoot_s4flag = 6
282@ = 0
283@ = 0
126@ = 1

:DRUGS1_13730
if 
  126@ == 1
goto_if_false @DRUGS1_15741
if 
  $smokeshoot_s4flag == 6
goto_if_false @DRUGS1_13923
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_13923
set_char_accuracy $big_smoke {accuracy} 80
74@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1690.24 {y} -1669.363 {z} 21.46 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_13852
task_kill_char_on_foot -1 {target} 49@

:DRUGS1_13852
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_13875
task_kill_char_on_foot -1 {target} 55@

:DRUGS1_13875
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_13898
task_kill_char_on_foot -1 {target} 56@

:DRUGS1_13898
close_sequence_task 74@
perform_sequence_task $big_smoke {sequence} 74@
clear_sequence_task 74@
$smokeshoot_s4flag = 7

:DRUGS1_13923
if 
  $smokeshoot_s4flag == 7
goto_if_false @DRUGS1_14121
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14121
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_14121
set_char_accuracy $big_smoke {accuracy} 60
75@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1669.8199 {y} -1671.917 {z} 21.43 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
if 
  not is_char_dead 58@
goto_if_false @DRUGS1_14050
task_kill_char_on_foot -1 {target} 58@

:DRUGS1_14050
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_14073
task_kill_char_on_foot -1 {target} 56@

:DRUGS1_14073
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_14096
task_kill_char_on_foot -1 {target} 59@

:DRUGS1_14096
close_sequence_task 75@
perform_sequence_task $big_smoke {sequence} 75@
clear_sequence_task 75@
$smokeshoot_s4flag = 8

:DRUGS1_14121
if 
  $smokeshoot_s4flag == 8
goto_if_false @DRUGS1_14266
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14266
77@ = get_script_task_status $big_smoke {taskId} 1560
if 
  is_int_lvar_equal_to_constant 77@ == 7
goto_if_false @DRUGS1_14266
76@ = open_sequence_task 
task_toggle_duck -1 {state} True
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_14218
task_kill_char_on_foot -1 {target} 50@

:DRUGS1_14218
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_14241
task_kill_char_on_foot -1 {target} 57@

:DRUGS1_14241
close_sequence_task 76@
perform_sequence_task $big_smoke {sequence} 76@
clear_sequence_task 76@
$smokeshoot_s4flag = 9

:DRUGS1_14266
if 
  $smokeshoot_s4flag == 9
goto_if_false @DRUGS1_14357
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14357
77@ = get_script_task_status $big_smoke {taskId} 1560
if or
  is_int_lvar_equal_to_constant 77@ == 7
  124@ == 7
goto_if_false @DRUGS1_14357
TIMERB = 0
284@ = 1
90@ = 12

:DRUGS1_14357
if 
  124@ == 7
goto_if_false @DRUGS1_14396
TIMERB = 0
284@ = 1
90@ = 12

:DRUGS1_14396
if 
  100@ == 0
goto_if_false @DRUGS1_14680
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14680
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_14485
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14485
set_lvar_int_to_lvar_int 79@ = 49@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51987

:DRUGS1_14485
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_14524
set_lvar_int_to_lvar_int 79@ = 55@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_14524
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_14579
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14579
set_lvar_int_to_lvar_int 79@ = 57@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943

:DRUGS1_14579
if 
  not is_char_dead 58@
goto_if_false @DRUGS1_14618
set_lvar_int_to_lvar_int 79@ = 58@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_14618
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_14673
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14673
set_lvar_int_to_lvar_int 79@ = 59@
set_lvar_int_to_var_int 80@ = $big_smoke
gosub @DRUGS1_51943

:DRUGS1_14673
100@ = 1

:DRUGS1_14680
if 
  101@ == 0
goto_if_false @DRUGS1_14859
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_14859
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_14783
set_lvar_int_to_lvar_int 79@ = 50@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1669.863
82@ = -1679.125
83@ = 20.47
gosub @DRUGS1_51751

:DRUGS1_14783
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_14852
set_lvar_int_to_lvar_int 79@ = 56@
set_lvar_int_to_var_int 80@ = $scplayer
81@ = 1675.149
82@ = -1667.818
83@ = 20.47
gosub @DRUGS1_51751

:DRUGS1_14852
101@ = 1

:DRUGS1_14859
if 
  282@ == 0
goto_if_false @DRUGS1_14926
if 
  283@ == 0
goto_if_false @DRUGS1_14926
set_lvar_int_to_constant 239@ = 35646
set_lvar_text_label 240@s = 'SMO4_EB'
gosub @DRUGS1_51600

:DRUGS1_14926
if 
  282@ == 1
goto_if_false @DRUGS1_14993
if 
  283@ == 0
goto_if_false @DRUGS1_14993
set_lvar_int_to_constant 239@ = 35625
set_lvar_text_label 240@s = 'SMO4_BM'
gosub @DRUGS1_51600

:DRUGS1_14993
if 
  282@ == 2
goto_if_false @DRUGS1_15060
if 
  283@ == 0
goto_if_false @DRUGS1_15060
set_lvar_int_to_constant 239@ = 35642
set_lvar_text_label 240@s = 'SMO4_DG'
gosub @DRUGS1_51600

:DRUGS1_15060
if 
  282@ == 3
goto_if_false @DRUGS1_15127
if 
  283@ == 0
goto_if_false @DRUGS1_15127
set_lvar_int_to_constant 239@ = 35620
set_lvar_text_label 240@s = 'SMO4_BG'
gosub @DRUGS1_51600

:DRUGS1_15127
if 
  282@ == 4
goto_if_false @DRUGS1_15194
if 
  283@ == 0
goto_if_false @DRUGS1_15194
set_lvar_int_to_constant 239@ = 35648
set_lvar_text_label 240@s = 'SMO4_ED'
gosub @DRUGS1_51600

:DRUGS1_15194
if 
  282@ == 5
goto_if_false @DRUGS1_15261
if 
  283@ == 0
goto_if_false @DRUGS1_15261
set_lvar_int_to_constant 239@ = 35650
set_lvar_text_label 240@s = 'SMO4_EF'
gosub @DRUGS1_51600

:DRUGS1_15261
if 
  282@ == 6
goto_if_false @DRUGS1_15328
if 
  283@ == 0
goto_if_false @DRUGS1_15328
set_lvar_int_to_constant 239@ = 35652
set_lvar_text_label 240@s = 'SMO4_EH'
gosub @DRUGS1_51600

:DRUGS1_15328
gosub @DRUGS1_51642
if 
  109@ == 0
goto_if_false @DRUGS1_15393
if 
  is_char_dead 49@
goto_if_false @DRUGS1_15393
mark_char_as_no_longer_needed 49@
remove_blip 214@
124@ += 1
109@ = 1

:DRUGS1_15393
if 
  115@ == 0
goto_if_false @DRUGS1_15451
if 
  is_char_dead 55@
goto_if_false @DRUGS1_15451
mark_char_as_no_longer_needed 55@
remove_blip 215@
124@ += 1
115@ = 1

:DRUGS1_15451
if 
  116@ == 0
goto_if_false @DRUGS1_15509
if 
  is_char_dead 56@
goto_if_false @DRUGS1_15509
mark_char_as_no_longer_needed 56@
remove_blip 216@
124@ += 1
116@ = 1

:DRUGS1_15509
if 
  117@ == 0
goto_if_false @DRUGS1_15567
if 
  is_char_dead 57@
goto_if_false @DRUGS1_15567
mark_char_as_no_longer_needed 57@
remove_blip 217@
124@ += 1
117@ = 1

:DRUGS1_15567
if 
  118@ == 0
goto_if_false @DRUGS1_15625
if 
  is_char_dead 58@
goto_if_false @DRUGS1_15625
mark_char_as_no_longer_needed 58@
remove_blip 218@
124@ += 1
118@ = 1

:DRUGS1_15625
if 
  119@ == 0
goto_if_false @DRUGS1_15683
if 
  is_char_dead 59@
goto_if_false @DRUGS1_15683
mark_char_as_no_longer_needed 59@
remove_blip 219@
124@ += 1
119@ = 1

:DRUGS1_15683
if 
  110@ == 0
goto_if_false @DRUGS1_15741
if 
  is_char_dead 50@
goto_if_false @DRUGS1_15741
mark_char_as_no_longer_needed 50@
remove_blip 220@
124@ += 1
110@ = 1

:DRUGS1_15741
if 
  284@ == 1
goto_if_false @DRUGS1_15785
if 
  TIMERB > 2000
goto_if_false @DRUGS1_15785
284@ = 2

:DRUGS1_15785
if 
  284@ == 2
goto_if_false @DRUGS1_17081
if 
  90@ == 12
goto_if_false @DRUGS1_16282
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16282
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_player_enter_car_button $player1 {enabled} False
clear_area 1672.321 {y} -1697.259 {z} 200.0 {radius} 200.0 {clearParticles} False
set_fixed_camera_position 1672.321 {y} -1697.259 {z} 20.6216 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1672.069 {y} -1696.5 {z} 21.2228 {switchStyle} SwitchType.JumpCut
clear_onscreen_counter $smokehealth_s4
remove_blip 89@
clear_char_tasks_immediately $big_smoke
clear_char_tasks_immediately $scplayer
set_char_coordinates $big_smoke {x} 1668.756 {y} -1689.291 {z} 20.869
set_char_heading $big_smoke {heading} 203.5
set_char_coordinates $scplayer {x} 1667.26 {y} -1683.5 {z} 20.869
set_char_heading $scplayer {heading} 203.5
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 112
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35658
request_car_recording 250
request_car_recording 251
request_car_recording 252
request_model 581
wait 100
load_all_models_now 

:DRUGS1_16065
if or
  not has_car_recording_been_loaded 250
  not has_car_recording_been_loaded 251
  not has_car_recording_been_loaded 252
  not has_model_loaded 581
goto_if_false @DRUGS1_16107
wait 0
goto @DRUGS1_16065

:DRUGS1_16107
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_16133
wait 0
goto @DRUGS1_16107

:DRUGS1_16133
delete_char 63@
clear_area 1668.67 {y} -1694.6801 {z} 19.97 {radius} 200.0 {clearParticles} False
custom_plate_for_next_car 581 {text} "_IMY_AK"
161@ = create_car 581 {x} 1671.791 {y} -1695.106 {z} 19.48
set_car_heading 161@ {heading} 117.5347
set_car_proofs 161@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_interpolation_parameters 0.0 {time} 3000
set_can_burst_car_tyres 161@ {state} False
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_health 161@ {health} 2000
set_can_burst_car_tyres 161@ {state} False
TIMERA = 0
90@ = 13

:DRUGS1_16282
if 
  90@ == 13
goto_if_false @DRUGS1_16397
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16397
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16397
set_fixed_camera_position 1672.321 {y} -1697.259 {z} 20.6216 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1672.069 {y} -1696.5 {z} 20.6212 {switchStyle} SwitchType.Interpolation
TIMERA = 0
90@ = 14

:DRUGS1_16397
if 
  90@ == 14
goto_if_false @DRUGS1_16528
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16528
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16528
if 
  TIMERA > 900
goto_if_false @DRUGS1_16528
task_enter_car_as_driver $big_smoke {vehicle} 161@ {time} 5000
task_enter_car_as_passenger $scplayer {vehicle} 161@ {time} 5000 {seat} SeatId.BikeRear
clear_mission_audio MissionAudioSlot.Slot1
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_EO' {time} 5000 {flag} 1
127@ = 2
90@ = 15

:DRUGS1_16528
if 
  90@ == 15
goto_if_false @DRUGS1_16737
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16737
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16737
if 
  is_char_sitting_in_car $big_smoke {vehicle} 161@
goto_if_false @DRUGS1_16737
set_fixed_camera_position 1672.983 {y} -1692.0909 {z} 19.8891 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1672.5699 {y} -1692.999 {z} 19.9589 {switchStyle} SwitchType.JumpCut
point_camera_at_car 161@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1674.371 {y} -1695.097 {z} 19.814
set_char_heading $scplayer {heading} 90.0
task_enter_car_as_passenger $scplayer {vehicle} 161@ {time} 5000 {seat} SeatId.BikeRear
task_look_at_char $big_smoke {target} $scplayer {time} 2000
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} True
set_char_can_be_knocked_off_bike $big_smoke {stayOnBike} True
90@ = 16

:DRUGS1_16737
if 
  90@ == 16
goto_if_false @DRUGS1_16837
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_16837
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_16837
if 
  is_char_sitting_in_car $scplayer {vehicle} 161@
goto_if_false @DRUGS1_16837
set_radio_channel RadioChannel.RadioX
clear_look_at $big_smoke
start_playback_recorded_car 161@ {path} 250
TIMERA = 0
90@ = 17

:DRUGS1_16837
if 
  90@ == 17
goto_if_false @DRUGS1_17030
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_17030
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_17030
if 
  is_char_sitting_in_car $scplayer {vehicle} 161@
goto_if_false @DRUGS1_17030
if 
  TIMERA > 1600
goto_if_false @DRUGS1_17030
set_fixed_camera_position 1623.3311 {y} -1705.448 {z} 19.7991 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1624.3311 {y} -1705.475 {z} 19.7991 {switchStyle} SwitchType.JumpCut
stop_playback_recorded_car 161@
wait 0
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_17009
start_playback_recorded_car 161@ {path} 251

:DRUGS1_17009
TIMERA = 0
284@ = 3
90@ = 18

:DRUGS1_17030
if 
  127@ == 2
goto_if_false @DRUGS1_17081
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_17081
clear_this_print 'SMO4_EO'
127@ = 3

:DRUGS1_17081
if or
  243@ == 0
  243@ == 1
  243@ == 2
  243@ == 3
goto_if_false @DRUGS1_17303
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_17303
if 
  280@ <= 3
goto_if_false @DRUGS1_17303
$bikehealth_s4 = get_car_health 161@
$bikehealth_s4 -= 1000
if 
  0 >= $bikehealth_s4
goto_if_false @DRUGS1_17296
$bikehealth_s4 = 0
set_car_proofs 161@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_17261
set_char_proofs $big_smoke {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_die $big_smoke

:DRUGS1_17261
explode_car 161@
print_now 'DGS1_60' {time} 7000 {flag} 1
goto @DRUGS1_52025
goto @DRUGS1_17303

:DRUGS1_17296
$bikehealth_s4 /= 10

:DRUGS1_17303
if 
  243@ == 0
goto_if_false @DRUGS1_23435
if 
  90@ == 18
goto_if_false @DRUGS1_18642
if 
  TIMERA > 700
goto_if_false @DRUGS1_18642
$z = 19.7991
request_car_recording 253
request_car_recording 254
request_car_recording 255
request_car_recording 256
request_car_recording 257
request_model 560
request_model #KMB_SKIP
request_model 516
request_model 437
request_model 443
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35663
load_all_models_now 

:DRUGS1_17433
if or
  not has_car_recording_been_loaded 253
  not has_car_recording_been_loaded 254
  not has_car_recording_been_loaded 255
  not has_car_recording_been_loaded 256
  not has_car_recording_been_loaded 257
goto_if_false @DRUGS1_17480
wait 0
goto @DRUGS1_17433

:DRUGS1_17480
if or
  not has_model_loaded 560
  not has_model_loaded #KMB_SKIP
  not has_model_loaded 516
  not has_model_loaded 437
  not has_model_loaded 443
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_17531
wait 0
goto @DRUGS1_17480

:DRUGS1_17531
162@ = create_object #KMB_SKIP {x} 1563.603 {y} -1437.1071 {z} 12.347
set_object_heading 162@ {heading} 90.4568
freeze_object_position 162@ {state} True
163@ = create_car 437 {x} 1552.209 {y} -1437.3 {z} 12.3828
set_car_heading 163@ {heading} 90.2081
freeze_car_position 163@ {state} True
164@ = create_car 437 {x} 1539.759 {y} -1437.34 {z} 12.3906
set_car_heading 164@ {heading} 90.2081
freeze_car_position 164@ {state} True
165@ = create_car 516 {x} 1680.473 {y} -1589.874 {z} 13.23
set_car_heading 165@ {heading} 87.883
change_car_colour 165@ {color1} 3 {color2} 3
177@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 177@ {handleOrTemplate} 35@
166@ = create_car 516 {x} 1594.553 {y} -1595.0389 {z} 13.243
set_car_heading 166@ {heading} 271.189
change_car_colour 166@ {color1} 8 {color2} 8
178@ = create_char_inside_car 166@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 178@ {handleOrTemplate} 35@
167@ = create_car 516 {x} 1655.527 {y} -1550.667 {z} 13.226
set_car_heading 167@ {heading} 180.735
change_car_colour 167@ {color1} 51 {color2} 51
179@ = create_char_inside_car 167@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 179@ {handleOrTemplate} 35@
168@ = create_car 516 {x} 1655.391 {y} -1463.511 {z} 13.22
set_car_heading 168@ {heading} 180.735
change_car_colour 168@ {color1} 4 {color2} 4
set_car_heavy 168@ {state} True
180@ = create_char_inside_car 168@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 180@ {handleOrTemplate} 35@
169@ = create_car 516 {x} 1660.788 {y} -1563.222 {z} 13.23
set_car_heading 169@ {heading} 358.832
change_car_colour 169@ {color1} 73 {color2} 73
181@ = create_char_inside_car 169@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 181@ {handleOrTemplate} 35@
170@ = create_car 516 {x} 1660.594 {y} -1522.353 {z} 13.225
set_car_heading 170@ {heading} 358.832
change_car_colour 170@ {color1} 99 {color2} 99
182@ = create_char_inside_car 170@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 182@ {handleOrTemplate} 35@
171@ = create_car 516 {x} 1693.236 {y} -1589.973 {z} 13.224
set_car_heading 171@ {heading} 91.298
change_car_colour 171@ {color1} 2 {color2} 2
set_car_heavy 171@ {state} True
183@ = create_char_inside_car 171@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 183@ {handleOrTemplate} 35@
188@ = create_car 443 {x} 1590.891 {y} -1590.689 {z} 13.09
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 273.516
set_car_health 188@ {health} 3000
set_car_only_damaged_by_player 188@ {state} True
42@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_can_be_shot_in_vehicle 42@ {state} False
209@ = add_blip_for_car 188@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
change_blip_scale 209@ {size} 2
set_car_proofs 188@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
275@ = 1
TIMERA = 0

:DRUGS1_18232
if 
  $z > 13.8442
goto_if_false @DRUGS1_18635
wait 0
sub_timed_val_from_float_var $z -=@ 0.02
set_fixed_camera_position 1623.3311 {y} -1705.448 {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1624.3311 {y} -1705.475 {z} $z {switchStyle} SwitchType.JumpCut
if 
  271@ == 0
goto_if_false @DRUGS1_18628
if 
  TIMERA > 1000
goto_if_false @DRUGS1_18628
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_18628
if 
  not is_playback_going_on_for_car 161@
goto_if_false @DRUGS1_18628
189@ = create_car 581 {x} 1665.25 {y} -1716.98 {z} 12.75
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 84.0
set_car_health 189@ {health} 800
43@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} True
44@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_health 44@ {health} 10
set_char_only_damaged_by_player 44@ {state} True
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
247@ = 1
260@ = 1
wait 0
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_18587
start_playback_recorded_car 161@ {path} 252
set_playback_speed 161@ {speed} 0.9

:DRUGS1_18587
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_18621
start_playback_recorded_car 189@ {path} 256
set_playback_speed 189@ {speed} 0.9

:DRUGS1_18621
271@ = 1

:DRUGS1_18628
goto @DRUGS1_18232

:DRUGS1_18635
90@ = 19

:DRUGS1_18642
if 
  90@ == 19
goto_if_false @DRUGS1_19044
if 
  TIMERA > 8500
goto_if_false @DRUGS1_19044
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_19044
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_19044
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_heading_for_attached_player $player1 {heading} 95.5 {headingRange} 200.0
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
display_onscreen_counter_with_string $bikehealth_s4 {display} CounterDisplay.Bar {text} 'DGS1_59'
288@ += 1
if 
  288@ > 1
goto_if_false @DRUGS1_18843
289@ = 30
goto @DRUGS1_18850

:DRUGS1_18843
289@ = 92

:DRUGS1_18850
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_18915
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_18915
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_18967
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_18967
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
print_help 'DGS1_64'
282@ = 0
283@ = 0
TIMERB = 0
122@ = 200
90@ = 20

:DRUGS1_19044
if 
  122@ == 200
goto_if_false @DRUGS1_19084
if 
  is_help_message_being_displayed 
goto_if_false @DRUGS1_19084
122@ = 201

:DRUGS1_19084
if 
  122@ == 201
goto_if_false @DRUGS1_19135
if 
  not is_help_message_being_displayed 
goto_if_false @DRUGS1_19135
print_help 'DGS1_65'
122@ = 202

:DRUGS1_19135
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_23435
if 
  242@ == 0
goto_if_false @DRUGS1_19427
if 
  locate_car_2d 161@ {x} 1620.59 {y} -1612.14 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRUGS1_19427
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_19270
car_goto_coordinates 165@ {x} 1571.424 {y} -1590.02 {z} 13.23
set_car_cruise_speed 165@ {maxSpeed} 13.5
set_car_forward_speed 165@ {forwardSpeed} 13.5
set_car_driving_style 165@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19270
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_19333
car_goto_coordinates 166@ {x} 1681.473 {y} -1595.059 {z} 13.22
set_car_cruise_speed 166@ {maxSpeed} 13.5
set_car_forward_speed 166@ {forwardSpeed} 4.5
set_car_driving_style 166@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19333
if 
  not is_car_dead 171@
goto_if_false @DRUGS1_19386
car_goto_coordinates 171@ {x} 1582.411 {y} -1590.115 {z} 13.228
set_car_cruise_speed 171@ {maxSpeed} 9.0
set_car_driving_style 171@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19386
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_19420
start_playback_recorded_car 188@ {path} 255
set_playback_speed 188@ {speed} 0.9

:DRUGS1_19420
242@ = 1

:DRUGS1_19427
if 
  242@ == 1
goto_if_false @DRUGS1_19732
if 
  locate_car_2d 161@ {x} 1654.1 {y} -1589.48 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_19732
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_19536
car_goto_coordinates 167@ {x} 1655.839 {y} -1576.842 {z} 13.226
set_car_cruise_speed 167@ {maxSpeed} 9.0
set_car_driving_style 167@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19536
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_19599
car_goto_coordinates 168@ {x} 1655.593 {y} -1559.511 {z} 13.227
set_car_cruise_speed 168@ {maxSpeed} 9.0
set_car_forward_speed 168@ {forwardSpeed} 9.0
set_car_driving_style 168@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19599
if 
  not is_car_dead 169@
goto_if_false @DRUGS1_19662
car_goto_coordinates 169@ {x} 1702.0 {y} -1444.0 {z} 13.0
set_car_cruise_speed 169@ {maxSpeed} 9.0
set_car_forward_speed 169@ {forwardSpeed} 10.8
set_car_driving_style 169@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19662
if 
  not is_car_dead 170@
goto_if_false @DRUGS1_19725
car_goto_coordinates 170@ {x} 1702.0 {y} -1444.0 {z} 13.0
set_car_cruise_speed 170@ {maxSpeed} 9.0
set_car_forward_speed 170@ {forwardSpeed} 9.0
set_car_driving_style 170@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_19725
242@ = 2

:DRUGS1_19732
if 
  242@ == 2
goto_if_false @DRUGS1_20099
if 
  locate_car_2d 161@ {x} 1657.5601 {y} -1537.29 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_20099
194@ = create_car 581 {x} 1702.127 {y} -1496.87 {z} 12.95
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 26.5
set_car_health 194@ {health} 800
49@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 49@ {state} True
set_char_health 49@ {health} 10
50@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 50@ {state} True
set_char_decision_maker 50@ {handleOrTemplate} 35@
set_char_health 50@ {health} 10
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
248@ = 1
261@ = 1
172@ = create_car 516 {x} 1622.005 {y} -1443.498 {z} 13.229
set_car_heading 172@ {heading} 266.928
change_car_colour 172@ {color1} 115 {color2} 115
set_car_heavy 172@ {state} True
184@ = create_char_inside_car 172@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 184@ {handleOrTemplate} 35@
173@ = create_car 516 {x} 1536.288 {y} -1443.049 {z} 13.224
set_car_heading 173@ {heading} 269.939
change_car_colour 173@ {color1} 122 {color2} 122
set_car_heavy 173@ {state} True
185@ = create_char_inside_car 173@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 185@ {handleOrTemplate} 35@
242@ = 3

:DRUGS1_20099
if 
  242@ == 3
goto_if_false @DRUGS1_20452
if 
  locate_car_2d 161@ {x} 1657.9399 {y} -1468.9301 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS1_20452
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_20179
start_playback_recorded_car 194@ {path} 257

:DRUGS1_20179
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_20262
if 
  3 > 288@
goto_if_false @DRUGS1_20262
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 49@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_20262
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_20314
task_drive_by 50@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_20314
delete_car 165@
delete_car 166@
delete_car 171@
if 
  not is_car_dead 172@
goto_if_false @DRUGS1_20382
car_goto_coordinates 172@ {x} 1720.037 {y} -1444.137 {z} 13.222
set_car_cruise_speed 172@ {maxSpeed} 9.0
set_car_driving_style 172@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_20382
if 
  not is_car_dead 173@
goto_if_false @DRUGS1_20445
car_goto_coordinates 173@ {x} 1654.817 {y} -1492.993 {z} 13.22
set_car_cruise_speed 173@ {maxSpeed} 13.5
set_car_forward_speed 173@ {forwardSpeed} 20.0
set_car_driving_style 173@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights

:DRUGS1_20445
242@ = 4

:DRUGS1_20452
if 
  242@ == 4
goto_if_false @DRUGS1_20515
if 
  locate_car_2d 161@ {x} 1631.77 {y} -1441.3101 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_20515
242@ = 5

:DRUGS1_20515
if 
  242@ == 5
goto_if_false @DRUGS1_20677
if 
  locate_car_2d 161@ {x} 1545.6801 {y} -1437.35 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_20677
175@ = create_car 516 {x} 1394.751 {y} -1427.224 {z} 13.24
set_car_heading 175@ {heading} 184.525
change_car_colour 175@ {color1} 99 {color2} 99
car_goto_coordinates 175@ {x} 1441.028 {y} -1443.271 {z} 13.234
set_car_cruise_speed 175@ {maxSpeed} 13.5
set_car_driving_style 175@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
181@ = create_char_inside_car 175@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 181@ {handleOrTemplate} 35@
242@ = 6

:DRUGS1_20677
if 
  242@ == 6
goto_if_false @DRUGS1_21513
if 
  locate_car_2d 161@ {x} 1508.7 {y} -1440.86 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_21513
delete_car 172@
delete_car 167@
delete_car 168@
176@ = create_car 437 {x} 1457.689 {y} -1371.728 {z} 13.235
set_car_heading 176@ {heading} 177.712
start_playback_recorded_car 176@ {path} 253
set_playback_speed 176@ {speed} 0.9
190@ = create_car 560 {x} 1374.507 {y} -1394.312 {z} 13.272
set_car_health 190@ {health} 400
set_car_heading 190@ {heading} 193.922
52@ = create_char_as_passenger 190@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 52@ {handleOrTemplate} 35@
task_drive_by 52@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 70
230@ = add_blip_for_car 190@
change_blip_display 230@ {display} BlipDisplay.BlipOnly
change_blip_scale 230@ {size} 2
191@ = create_car 560 {x} 1374.577 {y} -1401.141 {z} 13.102
set_car_heading 191@ {heading} 349.825
change_car_colour 191@ {color1} 0 {color2} 0
set_car_health 191@ {health} 500
192@ = create_car 560 {x} 1374.3621 {y} -1407.8831 {z} 13.239
set_car_heading 192@ {heading} 194.852
set_car_health 192@ {health} 500
228@ = add_blip_for_car 192@
change_blip_display 228@ {display} BlipDisplay.BlipOnly
change_blip_scale 228@ {size} 2
193@ = create_car 560 {x} 1401.058 {y} -1430.891 {z} 12.3905
set_car_heading 193@ {heading} 10.385
set_car_health 193@ {health} 500
229@ = add_blip_for_car 193@
change_blip_display 229@ {display} BlipDisplay.BlipOnly
change_blip_scale 229@ {size} 2
open_car_door 193@ {door} CarDoor.LeftFrontDoor
open_car_door 193@ {door} CarDoor.RightFrontDoor
53@ = create_char PedType.Mission1 {modelId} 111 {x} 1399.464 {y} -1431.604 {z} 12.3905
set_char_decision_maker 53@ {handleOrTemplate} 35@
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 53@ {health} 100
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987
235@ = add_blip_for_char 53@
change_blip_display 235@ {display} BlipDisplay.BlipOnly
change_blip_scale 235@ {size} 2
61@ = create_char PedType.Mission1 {modelId} 111 {x} 1401.4659 {y} -1427.389 {z} 12.3905
set_char_decision_maker 61@ {handleOrTemplate} 35@
give_weapon_to_char 61@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 61@ {health} 100
set_lvar_int_to_lvar_int 79@ = 61@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987
236@ = add_blip_for_char 61@
change_blip_display 236@ {display} BlipDisplay.BlipOnly
change_blip_scale 236@ {size} 2
54@ = create_char PedType.Mission1 {modelId} 111 {x} 1374.9919 {y} -1397.639 {z} 12.438
set_char_decision_maker 54@ {handleOrTemplate} 35@
give_weapon_to_char 54@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 54@ {health} 100
set_lvar_int_to_lvar_int 79@ = 54@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943
226@ = add_blip_for_char 54@
change_blip_display 226@ {display} BlipDisplay.BlipOnly
change_blip_scale 226@ {size} 2
55@ = create_char PedType.Mission1 {modelId} 111 {x} 1374.543 {y} -1404.678 {z} 12.425
set_char_decision_maker 55@ {handleOrTemplate} 35@
give_weapon_to_char 55@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 55@ {health} 100
set_lvar_int_to_lvar_int 79@ = 55@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943
227@ = add_blip_for_char 55@
change_blip_display 227@ {display} BlipDisplay.BlipOnly
change_blip_scale 227@ {size} 2
242@ = 7

:DRUGS1_21513
if 
  242@ == 7
goto_if_false @DRUGS1_21811
if 
  not is_playback_going_on_for_car 161@
goto_if_false @DRUGS1_21811
if 
  locate_car_2d 161@ {x} 1395.844 {y} -1408.105 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS1_21811
freeze_car_position 161@ {state} True
remove_blip 209@
stop_playback_recorded_car 189@
remove_blip 214@
stop_playback_recorded_car 194@
remove_blip 215@
mark_char_as_no_longer_needed 177@
mark_char_as_no_longer_needed 178@
mark_char_as_no_longer_needed 179@
mark_char_as_no_longer_needed 180@
mark_char_as_no_longer_needed 181@
mark_char_as_no_longer_needed 182@
mark_char_as_no_longer_needed 183@
mark_char_as_no_longer_needed 184@
mark_char_as_no_longer_needed 185@
mark_car_as_no_longer_needed 165@
mark_car_as_no_longer_needed 166@
mark_car_as_no_longer_needed 167@
mark_car_as_no_longer_needed 168@
mark_car_as_no_longer_needed 171@
mark_car_as_no_longer_needed 172@
mark_car_as_no_longer_needed 175@
mark_car_as_no_longer_needed 176@
delete_car 169@
delete_car 170@
delete_car 173@
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed #KMB_SKIP
mark_model_as_no_longer_needed 516
delete_object 162@
delete_car 163@
delete_car 164@
mark_car_as_no_longer_needed 176@
delete_car 194@
delete_char 49@
delete_char 50@
delete_car 189@
delete_car 188@
delete_char 42@
delete_char 43@
delete_char 44@
mark_car_as_no_longer_needed 175@
TIMERA = 0
242@ = 8

:DRUGS1_21811
if 
  242@ > 7
goto_if_false @DRUGS1_21918
if 
  244@ == 0
goto_if_false @DRUGS1_21918
if 
  not is_point_on_screen 1400.41 {y} -1447.12 {z} 12.3 {radius} 10.0
goto_if_false @DRUGS1_21918
clear_area 1400.41 {y} -1447.12 {z} 12.3 {radius} 50.0 {clearParticles} False
244@ = 1
  9 > 242@

:DRUGS1_21918
if 
  242@ == 8
goto_if_false @DRUGS1_21998
request_car_recording 258
request_car_recording 259
request_car_recording 260
request_car_recording 261
request_car_recording 262
request_car_recording 263
request_car_recording 264
request_car_recording 265
request_car_recording 266
request_car_recording 267
request_car_recording 268
242@ = 9

:DRUGS1_21998
if 
  242@ == 9
goto_if_false @DRUGS1_22225
if 
  TIMERA > 10000
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 258
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 259
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 260
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 261
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 262
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 263
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 264
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 265
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 266
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 267
goto_if_false @DRUGS1_22225
if 
  has_car_recording_been_loaded 268
goto_if_false @DRUGS1_22225
243@ = 1
242@ = 10

:DRUGS1_22225
if 
  275@ == 1
goto_if_false @DRUGS1_22271
if 
  is_car_dead 188@
goto_if_false @DRUGS1_22271
stop_playback_recorded_car 188@
275@ = 2

:DRUGS1_22271
if 
  247@ == 1
goto_if_false @DRUGS1_22519
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_22519
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_22328
goto @DRUGS1_22519

:DRUGS1_22328
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_22477
if 
  is_char_in_car 44@ {vehicle} 189@
goto_if_false @DRUGS1_22470
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_22470
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 44@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 44@ {vehicle} 189@
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_22470
goto @DRUGS1_22519

:DRUGS1_22477
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003
247@ = 2

:DRUGS1_22519
if 
  247@ == 2
goto_if_false @DRUGS1_22611
if 
  is_char_dead 44@
goto_if_false @DRUGS1_22611
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_22604
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_22604
247@ = 3

:DRUGS1_22611
if 
  260@ == 1
goto_if_false @DRUGS1_22698
if 
  is_char_dead 43@
goto_if_false @DRUGS1_22698
if or
  is_char_dead 44@
  is_car_dead 189@
goto_if_false @DRUGS1_22698
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
260@ = 2

:DRUGS1_22698
if 
  248@ == 1
goto_if_false @DRUGS1_22946
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_22946
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_22755
goto @DRUGS1_22946

:DRUGS1_22755
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_22904
if 
  is_char_in_car 50@ {vehicle} 194@
goto_if_false @DRUGS1_22897
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_22897
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 50@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 50@ {vehicle} 194@
task_drive_by 50@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_22897
goto @DRUGS1_22946

:DRUGS1_22904
set_car_forward_speed 194@ {forwardSpeed} 15.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003
248@ = 2

:DRUGS1_22946
if 
  248@ == 2
goto_if_false @DRUGS1_23038
if 
  is_char_dead 50@
goto_if_false @DRUGS1_23038
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_23031
set_car_forward_speed 194@ {forwardSpeed} 15.0
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_23031
248@ = 3

:DRUGS1_23038
if 
  261@ == 1
goto_if_false @DRUGS1_23125
if 
  is_char_dead 49@
goto_if_false @DRUGS1_23125
if or
  is_char_dead 50@
  is_car_dead 194@
goto_if_false @DRUGS1_23125
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
261@ = 2

:DRUGS1_23125
if 
  is_char_dead 54@
goto_if_false @DRUGS1_23162
if 
  does_blip_exist 226@
goto_if_false @DRUGS1_23162
remove_blip 226@

:DRUGS1_23162
if 
  is_char_dead 55@
goto_if_false @DRUGS1_23199
if 
  does_blip_exist 227@
goto_if_false @DRUGS1_23199
remove_blip 227@

:DRUGS1_23199
if 
  is_car_dead 190@
goto_if_false @DRUGS1_23236
if 
  does_blip_exist 230@
goto_if_false @DRUGS1_23236
remove_blip 230@

:DRUGS1_23236
if 
  is_car_dead 192@
goto_if_false @DRUGS1_23273
if 
  does_blip_exist 228@
goto_if_false @DRUGS1_23273
remove_blip 228@

:DRUGS1_23273
if 
  286@ == 0
goto_if_false @DRUGS1_23354
if 
  not is_car_dead 169@
goto_if_false @DRUGS1_23354
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_23354
if 
  has_car_been_damaged_by_car 169@ {other} 188@
goto_if_false @DRUGS1_23354
explode_car 169@
286@ = 1

:DRUGS1_23354
if 
  287@ == 0
goto_if_false @DRUGS1_23435
if 
  not is_car_dead 170@
goto_if_false @DRUGS1_23435
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_23435
if 
  has_car_been_damaged_by_car 170@ {other} 188@
goto_if_false @DRUGS1_23435
explode_car 170@
287@ = 1

:DRUGS1_23435
if or
  90@ == 20
  243@ == 1
goto_if_false @DRUGS1_25482
if 
  3 > 245@
goto_if_false @DRUGS1_25482
if 
  282@ == 0
goto_if_false @DRUGS1_23545
if 
  283@ == 0
goto_if_false @DRUGS1_23545
set_lvar_int_to_constant 239@ = 35664
set_lvar_text_label 240@s = 'SMO4_FB'
gosub @DRUGS1_51600

:DRUGS1_23545
if 
  282@ == 1
goto_if_false @DRUGS1_23612
if 
  283@ == 0
goto_if_false @DRUGS1_23612
set_lvar_int_to_constant 239@ = 35662
set_lvar_text_label 240@s = 'SMO4_ES'
gosub @DRUGS1_51600

:DRUGS1_23612
if 
  285@ == 0
goto_if_false @DRUGS1_23675
if 
  locate_car_2d 161@ {x} 1659.49 {y} -1580.97 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @DRUGS1_23675
285@ = 1

:DRUGS1_23675
if 
  282@ == 2
goto_if_false @DRUGS1_23760
if 
  283@ == 0
goto_if_false @DRUGS1_23760
if 
  285@ == 1
goto_if_false @DRUGS1_23760
set_lvar_int_to_constant 239@ = 35666
set_lvar_text_label 240@s = 'SMO4_FD'
gosub @DRUGS1_51600

:DRUGS1_23760
if 
  282@ == 3
goto_if_false @DRUGS1_23827
if 
  283@ == 0
goto_if_false @DRUGS1_23827
set_lvar_int_to_constant 239@ = 35667
set_lvar_text_label 240@s = 'SMO4_FE'
gosub @DRUGS1_51600

:DRUGS1_23827
if 
  282@ == 4
goto_if_false @DRUGS1_23894
if 
  283@ == 0
goto_if_false @DRUGS1_23894
set_lvar_int_to_constant 239@ = 35668
set_lvar_text_label 240@s = 'SMO4_FF'
gosub @DRUGS1_51600

:DRUGS1_23894
if 
  282@ == 5
goto_if_false @DRUGS1_23961
if 
  283@ == 0
goto_if_false @DRUGS1_23961
set_lvar_int_to_constant 239@ = 35669
set_lvar_text_label 240@s = 'SMO4_FG'
gosub @DRUGS1_51600

:DRUGS1_23961
if 
  285@ == 1
goto_if_false @DRUGS1_24024
if 
  locate_car_2d 161@ {x} 1638.05 {y} -1440.64 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @DRUGS1_24024
285@ = 2

:DRUGS1_24024
if 
  282@ == 6
goto_if_false @DRUGS1_24109
if 
  283@ == 0
goto_if_false @DRUGS1_24109
if 
  285@ == 2
goto_if_false @DRUGS1_24109
set_lvar_int_to_constant 239@ = 35665
set_lvar_text_label 240@s = 'SMO4_FC'
gosub @DRUGS1_51600

:DRUGS1_24109
if 
  285@ == 2
goto_if_false @DRUGS1_24172
if 
  locate_car_2d 161@ {x} 1579.33 {y} -1438.05 {xRadius} 55.0 {yRadius} 55.0 {drawSphere} False
goto_if_false @DRUGS1_24172
285@ = 3

:DRUGS1_24172
if 
  282@ == 7
goto_if_false @DRUGS1_24257
if 
  283@ == 0
goto_if_false @DRUGS1_24257
if 
  285@ == 3
goto_if_false @DRUGS1_24257
set_lvar_int_to_constant 239@ = 35671
set_lvar_text_label 240@s = 'SMO4_FJ'
gosub @DRUGS1_51600

:DRUGS1_24257
if 
  282@ == 8
goto_if_false @DRUGS1_24324
if 
  283@ == 0
goto_if_false @DRUGS1_24324
set_lvar_int_to_constant 239@ = 35672
set_lvar_text_label 240@s = 'SMO4_FK'
gosub @DRUGS1_51600

:DRUGS1_24324
if 
  285@ == 3
goto_if_false @DRUGS1_24424
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_24410
if 
  locate_car_2d 161@ {x} 1432.61 {y} -1438.66 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_24403
285@ = 4

:DRUGS1_24403
goto @DRUGS1_24424

:DRUGS1_24410
285@ = 4
282@ = 12

:DRUGS1_24424
if 
  282@ == 9
goto_if_false @DRUGS1_24509
if 
  283@ == 0
goto_if_false @DRUGS1_24509
if 
  285@ == 4
goto_if_false @DRUGS1_24509
set_lvar_int_to_constant 239@ = 35673
set_lvar_text_label 240@s = 'SMO4_FL'
gosub @DRUGS1_51600

:DRUGS1_24509
if 
  282@ == 10
goto_if_false @DRUGS1_24576
if 
  283@ == 0
goto_if_false @DRUGS1_24576
set_lvar_int_to_constant 239@ = 35674
set_lvar_text_label 240@s = 'SMO4_FM'
gosub @DRUGS1_51600

:DRUGS1_24576
if 
  285@ == 4
goto_if_false @DRUGS1_24639
if 
  locate_car_2d 161@ {x} 1406.73 {y} -1393.15 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_24639
285@ = 5

:DRUGS1_24639
if 
  282@ == 11
goto_if_false @DRUGS1_24724
if 
  283@ == 0
goto_if_false @DRUGS1_24724
if 
  285@ == 5
goto_if_false @DRUGS1_24724
set_lvar_int_to_constant 239@ = 35675
set_lvar_text_label 240@s = 'SMO4_GA'
gosub @DRUGS1_51600

:DRUGS1_24724
if 
  282@ == 12
goto_if_false @DRUGS1_24791
if 
  283@ == 0
goto_if_false @DRUGS1_24791
set_lvar_int_to_constant 239@ = 35676
set_lvar_text_label 240@s = 'SMO4_GB'
gosub @DRUGS1_51600

:DRUGS1_24791
if 
  282@ == 13
goto_if_false @DRUGS1_24858
if 
  283@ == 0
goto_if_false @DRUGS1_24858
set_lvar_int_to_constant 239@ = 35677
set_lvar_text_label 240@s = 'SMO4_GD'
gosub @DRUGS1_51600

:DRUGS1_24858
if 
  282@ == 14
goto_if_false @DRUGS1_24925
if 
  283@ == 0
goto_if_false @DRUGS1_24925
set_lvar_int_to_constant 239@ = 35678
set_lvar_text_label 240@s = 'SMO4_GE'
gosub @DRUGS1_51600

:DRUGS1_24925
if 
  282@ == 15
goto_if_false @DRUGS1_24992
if 
  283@ == 0
goto_if_false @DRUGS1_24992
set_lvar_int_to_constant 239@ = 35679
set_lvar_text_label 240@s = 'SMO4_GF'
gosub @DRUGS1_51600

:DRUGS1_24992
if 
  282@ == 16
goto_if_false @DRUGS1_25059
if 
  283@ == 0
goto_if_false @DRUGS1_25059
set_lvar_int_to_constant 239@ = 35680
set_lvar_text_label 240@s = 'SMO4_GG'
gosub @DRUGS1_51600

:DRUGS1_25059
if 
  282@ == 17
goto_if_false @DRUGS1_25126
if 
  283@ == 0
goto_if_false @DRUGS1_25126
set_lvar_int_to_constant 239@ = 35681
set_lvar_text_label 240@s = 'SMO4_GH'
gosub @DRUGS1_51600

:DRUGS1_25126
if 
  282@ == 18
goto_if_false @DRUGS1_25193
if 
  283@ == 0
goto_if_false @DRUGS1_25193
set_lvar_int_to_constant 239@ = 35682
set_lvar_text_label 240@s = 'SMO4_GJ'
gosub @DRUGS1_51600

:DRUGS1_25193
if 
  282@ == 19
goto_if_false @DRUGS1_25260
if 
  283@ == 0
goto_if_false @DRUGS1_25260
set_lvar_int_to_constant 239@ = 35661
set_lvar_text_label 240@s = 'SMO4_ER'
gosub @DRUGS1_51600

:DRUGS1_25260
if 
  285@ == 5
goto_if_false @DRUGS1_25323
if 
  locate_car_2d 161@ {x} 1362.39 {y} -1590.12 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS1_25323
285@ = 6

:DRUGS1_25323
if 
  282@ == 20
goto_if_false @DRUGS1_25408
if 
  283@ == 0
goto_if_false @DRUGS1_25408
if 
  285@ == 6
goto_if_false @DRUGS1_25408
set_lvar_int_to_constant 239@ = 35683
set_lvar_text_label 240@s = 'SMO4_GK'
gosub @DRUGS1_51600

:DRUGS1_25408
if 
  282@ == 21
goto_if_false @DRUGS1_25475
if 
  283@ == 0
goto_if_false @DRUGS1_25475
set_lvar_int_to_constant 239@ = 35655
set_lvar_text_label 240@s = 'SMO4_EL'
gosub @DRUGS1_51600

:DRUGS1_25475
gosub @DRUGS1_51642

:DRUGS1_25482
if 
  243@ == 1
goto_if_false @DRUGS1_32582
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_32582
if 
  245@ == 0
goto_if_false @DRUGS1_26818
189@ = create_car 581 {x} 1446.923 {y} -1429.569 {z} 12.1
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 174.719
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_health 42@ {health} 10
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} True
set_char_decision_maker 43@ {handleOrTemplate} 35@
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
247@ = 1
260@ = 1
194@ = create_car 581 {x} 1377.421 {y} -1571.321 {z} 12.1
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 166.577
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_health 44@ {health} 10
set_char_only_damaged_by_player 44@ {state} True
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 45@ {health} 10
set_char_only_damaged_by_player 45@ {state} True
set_char_decision_maker 45@ {handleOrTemplate} 35@
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
248@ = 1
261@ = 1
195@ = create_car 581 {x} 1361.0861 {y} -1665.478 {z} 12.62
set_petrol_tank_weakpoint 195@ {state} False
set_car_heading 195@ {heading} 187.657
46@ = create_char_inside_car 195@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 46@ {handleOrTemplate} 35@
set_char_health 46@ {health} 50
47@ = create_char_as_passenger 195@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_health 47@ {health} 10
216@ = add_blip_for_car 195@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
249@ = 1
262@ = 1
196@ = create_car 581 {x} 1365.219 {y} -1420.908 {z} 12.104
set_petrol_tank_weakpoint 196@ {state} False
set_car_heading 196@ {heading} 353.946
56@ = create_char_inside_car 196@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 56@ {handleOrTemplate} 35@
set_char_health 56@ {health} 10
set_char_only_damaged_by_player 56@ {state} True
57@ = create_char_as_passenger 196@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 57@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 57@ {health} 10
set_char_only_damaged_by_player 57@ {state} True
set_char_decision_maker 57@ {handleOrTemplate} 35@
217@ = add_blip_for_car 196@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
250@ = 1
263@ = 1
165@ = create_car 560 {x} 1374.3719 {y} -1665.108 {z} 12.91
set_petrol_tank_weakpoint 165@ {state} False
set_car_heading 165@ {heading} 176.22
48@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 48@ {handleOrTemplate} 35@
49@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 49@ {health} 10
set_char_decision_maker 49@ {handleOrTemplate} 35@
210@ = add_blip_for_car 165@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
change_blip_scale 210@ {size} 2
265@ = 1
255@ = 1
166@ = create_car 560 {x} 1373.704 {y} -1633.619 {z} 12.935
set_petrol_tank_weakpoint 166@ {state} False
set_car_heading 166@ {heading} 176.22
50@ = create_char_inside_car 166@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 50@ {handleOrTemplate} 35@
51@ = create_char_as_passenger 166@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 51@ {handleOrTemplate} 35@
set_char_health 51@ {health} 10
211@ = add_blip_for_car 166@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
change_blip_scale 211@ {size} 2
266@ = 1
256@ = 1
wait 0
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_26461
freeze_car_position 161@ {state} False
start_playback_recorded_car 161@ {path} 258

:DRUGS1_26461
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_26636
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_26636
start_playback_recorded_car 189@ {path} 259
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_26584
if 
  2 > 288@
goto_if_false @DRUGS1_26584
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 42@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_26584
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_26636
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_26636
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_26811
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_26676
start_playback_recorded_car 196@ {path} 264

:DRUGS1_26676
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_26759
if 
  3 > 288@
goto_if_false @DRUGS1_26759
give_weapon_to_char 56@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 56@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_26759
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_26811
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_26811
245@ = 1

:DRUGS1_26818
if 
  245@ == 1
goto_if_false @DRUGS1_27125
if 
  locate_car_2d 161@ {x} 1374.62 {y} -1549.64 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_27125
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_27033
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_26981
start_playback_recorded_car 194@ {path} 260
if 
  2 > 288@
goto_if_false @DRUGS1_26981
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_26981
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_27033
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_27033
delete_car 176@
delete_car 190@
delete_car 191@
delete_car 192@
delete_car 193@
delete_char 52@
delete_char 53@
delete_char 54@
delete_char 55@
delete_char 61@
remove_blip 235@
remove_blip 226@
remove_blip 227@
remove_blip 236@
remove_blip 230@
remove_blip 228@
remove_blip 229@
245@ = 2

:DRUGS1_27125
if 
  245@ == 2
goto_if_false @DRUGS1_27464
if 
  locate_car_2d 161@ {x} 1361.0861 {y} -1665.478 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_27464
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_27221
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_27221
start_playback_recorded_car 195@ {path} 261

:DRUGS1_27221
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_27273
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_27273
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_27313
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_27313
start_playback_recorded_car 165@ {path} 262

:DRUGS1_27313
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_27365
task_drive_by 49@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_27365
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_27405
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_27405
start_playback_recorded_car 166@ {path} 263

:DRUGS1_27405
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_27457
task_drive_by 51@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_27457
245@ = 3

:DRUGS1_27464
if 
  245@ == 3
goto_if_false @DRUGS1_28454
if 
  locate_car_2d 161@ {x} 1530.0 {y} -1742.0 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} True
goto_if_false @DRUGS1_28454
switch_widescreen True
set_player_control $player1 {state} False
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_27562
set_car_proofs 161@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_27562
$cam_offz = 0.2
204@ = 0.0
attach_camera_to_vehicle 161@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} $cam_offz {xRotation} 0.0 {yRotation} 0.0 {zRotation} 204@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
warp_char_into_car_as_passenger $scplayer {handle} 161@ {seat} SeatId.BikeRear
stop_playback_recorded_car 189@
delete_car 189@
remove_blip 214@
delete_char 42@
delete_char 43@
stop_playback_recorded_car 194@
delete_car 194@
remove_blip 215@
delete_char 44@
delete_char 45@
stop_playback_recorded_car 195@
delete_car 195@
remove_blip 216@
delete_char 46@
delete_char 47@
stop_playback_recorded_car 196@
delete_car 196@
remove_blip 217@
delete_char 56@
delete_char 57@
stop_playback_recorded_car 165@
delete_car 165@
remove_blip 210@
delete_char 48@
delete_char 49@
stop_playback_recorded_car 166@
delete_car 166@
remove_blip 211@
delete_char 50@
delete_char 51@
189@ = create_car 581 {x} 1505.103 {y} -1733.09 {z} 3.05
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 258.539
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_health 42@ {health} 10
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 43@ {health} 10
set_char_decision_maker 43@ {handleOrTemplate} 35@
194@ = create_car 581 {x} 1487.213 {y} -1734.792 {z} 3.25
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 250.829
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_health 44@ {health} 10
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 45@ {health} 20
set_char_decision_maker 45@ {handleOrTemplate} 35@
165@ = create_car 560 {x} 1496.864 {y} -1731.303 {z} 6.3
set_petrol_tank_weakpoint 165@ {state} False
set_car_heading 165@ {heading} 255.305
48@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 48@ {handleOrTemplate} 35@
49@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_health 49@ {health} 10
188@ = create_car 443 {x} 1550.873 {y} -1737.1219 {z} 14.1055
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 245.14
197@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 111
set_char_can_be_shot_in_vehicle 197@ {state} False
set_car_proofs 188@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 197@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 197@ {handleOrTemplate} 35@
198@ = create_char_as_passenger 188@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 198@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 198@ {handleOrTemplate} 35@
208@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} -14.1055
set_petrol_tank_weakpoint 208@ {state} False
set_car_heading 208@ {heading} 256.415
set_car_proofs 208@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 208@ {handle} 188@ {xOffset} 0.0 {yOffset} -4.6 {zOffset} 0.65 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
269@ = 0
207@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} 14.1055
set_petrol_tank_weakpoint 207@ {state} False
set_car_heading 207@ {heading} 256.415
set_car_proofs 207@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 207@ {handle} 188@ {xOffset} 0.0 {yOffset} 1.15 {zOffset} 2.4 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
270@ = 0
TIMERA = 0
246@ = 1
245@ = 4

:DRUGS1_28454
if 
  246@ == 1
goto_if_false @DRUGS1_28613
if 
  locate_car_2d 161@ {x} 1550.52 {y} -1749.1899 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} True
goto_if_false @DRUGS1_28613
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_28534
start_playback_recorded_car 188@ {path} 265

:DRUGS1_28534
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_28558
start_playback_recorded_car 189@ {path} 266

:DRUGS1_28558
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_28582
start_playback_recorded_car 165@ {path} 267

:DRUGS1_28582
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_28606
start_playback_recorded_car 194@ {path} 268

:DRUGS1_28606
246@ = 2

:DRUGS1_28613
if 
  245@ == 4
goto_if_false @DRUGS1_28743
if 
  TIMERA > 250
goto_if_false @DRUGS1_28743
if 
  0.8 > $cam_offz
goto_if_false @DRUGS1_28736
add_timed_val_to_float_var $cam_offz +=@ 0.008
add_timed_val_to_float_lvar 204@ +=@ 0.008
attach_camera_to_vehicle 161@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} $cam_offz {xRotation} 0.0 {yRotation} 0.0 {zRotation} 204@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
goto @DRUGS1_28743

:DRUGS1_28736
245@ = 5

:DRUGS1_28743
if 
  245@ == 5
goto_if_false @DRUGS1_28866
if 
  TIMERA > 2500
goto_if_false @DRUGS1_28866
set_fixed_camera_position 1605.5909 {y} -1766.793 {z} 3.3342 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1604.774 {y} -1766.255 {z} 3.5404 {switchStyle} SwitchType.JumpCut
set_time_scale 0.9
TIMERA = 0
TIMERB = 0
276@ = 1
245@ = 6

:DRUGS1_28866
if 
  245@ == 6
goto_if_false @DRUGS1_28920
if 
  TIMERA > 800
goto_if_false @DRUGS1_28920
$z = 0.3
245@ = 7

:DRUGS1_28920
if 
  245@ == 7
goto_if_false @DRUGS1_29024
if 
  0.6 > $z
goto_if_false @DRUGS1_28981
$z += 0.001
set_time_scale $z
goto @DRUGS1_29024

:DRUGS1_28981
if or
  TIMERA > 2500
  $z > 0.6
goto_if_false @DRUGS1_29024
245@ = 7
set_time_scale 0.5

:DRUGS1_29024
if 
  245@ == 7
goto_if_false @DRUGS1_29104
if 
  TIMERA > 2000
goto_if_false @DRUGS1_29104
point_camera_at_point 1605.783 {y} -1765.834 {z} 3.5404 {switchStyle} SwitchType.Interpolation
$z = 0.5
TIMERA = 0
245@ = 8

:DRUGS1_29104
if 
  245@ == 8
goto_if_false @DRUGS1_29215
if 
  1.0 > $z
goto_if_false @DRUGS1_29165
$z += 0.01
set_time_scale $z
goto @DRUGS1_29215

:DRUGS1_29165
if or
  TIMERA > 1000
  $z > 0.9
goto_if_false @DRUGS1_29215
245@ = 9
TIMERA = 0
set_time_scale 1.0

:DRUGS1_29215
if 
  245@ == 9
goto_if_false @DRUGS1_29266
if 
  TIMERA > 2800
goto_if_false @DRUGS1_29266
243@ = 2
245@ = 10

:DRUGS1_29266
if 
  276@ == 1
goto_if_false @DRUGS1_29378
if 
  TIMERB > 1242
goto_if_false @DRUGS1_29378
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
add_sparks 1580.75 {y} -1749.51 {z} 12.92 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
276@ = 2

:DRUGS1_29378
if 
  276@ == 2
goto_if_false @DRUGS1_29490
if 
  TIMERB > 1400
goto_if_false @DRUGS1_29490
add_sparks 1580.74 {y} -1752.6801 {z} 12.87 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1580.85 {y} -1749.75 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 3

:DRUGS1_29490
if 
  276@ == 3
goto_if_false @DRUGS1_29602
if 
  TIMERB > 1500
goto_if_false @DRUGS1_29602
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
276@ = 4

:DRUGS1_29602
if 
  276@ == 4
goto_if_false @DRUGS1_29714
if 
  TIMERB > 1600
goto_if_false @DRUGS1_29714
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1580.75 {y} -1749.51 {z} 12.92 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 5

:DRUGS1_29714
if 
  276@ == 5
goto_if_false @DRUGS1_29826
if 
  TIMERB > 1700
goto_if_false @DRUGS1_29826
add_sparks 1580.74 {y} -1752.6801 {z} 12.87 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
add_sparks 1580.85 {y} -1749.75 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
276@ = 6

:DRUGS1_29826
if 
  276@ == 6
goto_if_false @DRUGS1_29938
if 
  TIMERB > 1800
goto_if_false @DRUGS1_29938
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
add_sparks 1580.85 {y} -1752.3199 {z} 12.91 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
276@ = 7

:DRUGS1_29938
if 
  276@ == 7
goto_if_false @DRUGS1_30016
if 
  TIMERB > 2404
goto_if_false @DRUGS1_30016
add_sparks 1599.28 {y} -1757.5601 {z} 3.11 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 8

:DRUGS1_30016
if 
  276@ == 8
goto_if_false @DRUGS1_30128
if 
  TIMERB > 3418
goto_if_false @DRUGS1_30128
add_sparks 1599.76 {y} 1757.96 {z} 3.14 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
add_sparks 1601.6899 {y} -1758.73 {z} 3.18 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 60
276@ = 9

:DRUGS1_30128
if 
  276@ == 9
goto_if_false @DRUGS1_30206
if 
  TIMERB > 3598
goto_if_false @DRUGS1_30206
add_sparks 1605.46 {y} -1763.14 {z} 3.18 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 100
276@ = 10

:DRUGS1_30206
if 
  276@ == 10
goto_if_false @DRUGS1_30284
if 
  TIMERB > 3600
goto_if_false @DRUGS1_30284
add_sparks 1605.46 {y} -1763.14 {z} 3.18 {velocityX} 0.0 {velocityY} 0.0 {velocityZ} 1.0 {density} 80
276@ = 11

:DRUGS1_30284
if 
  4 > 245@
goto_if_false @DRUGS1_32582
if 
  247@ == 1
goto_if_false @DRUGS1_30550
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_30550
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_30359
goto @DRUGS1_30550

:DRUGS1_30359
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_30508
if 
  is_char_in_car 43@ {vehicle} 189@
goto_if_false @DRUGS1_30501
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_30501
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 189@
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_30501
goto @DRUGS1_30550

:DRUGS1_30508
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 1.5 {y} 3.3999 {z} 4.1003
247@ = 2

:DRUGS1_30550
if 
  247@ == 2
goto_if_false @DRUGS1_30642
if 
  is_char_dead 43@
goto_if_false @DRUGS1_30642
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_30635
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 1.5 {y} 3.3999 {z} 4.1003

:DRUGS1_30635
247@ = 3

:DRUGS1_30642
if 
  260@ == 1
goto_if_false @DRUGS1_30729
if 
  is_char_dead 42@
goto_if_false @DRUGS1_30729
if or
  is_char_dead 43@
  is_car_dead 189@
goto_if_false @DRUGS1_30729
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
260@ = 2

:DRUGS1_30729
if 
  248@ == 1
goto_if_false @DRUGS1_30977
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_30977
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_30786
goto @DRUGS1_30977

:DRUGS1_30786
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_30935
if 
  is_char_in_car 45@ {vehicle} 194@
goto_if_false @DRUGS1_30928
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_30928
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 194@
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_30928
goto @DRUGS1_30977

:DRUGS1_30935
set_car_forward_speed 194@ {forwardSpeed} 15.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 5.5 {y} 3.3999 {z} 5.1003
248@ = 2

:DRUGS1_30977
if 
  248@ == 2
goto_if_false @DRUGS1_31069
if 
  is_char_dead 45@
goto_if_false @DRUGS1_31069
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_31062
set_car_forward_speed 194@ {forwardSpeed} 15.0
set_car_rotation_velocity 194@ {x} 5.5 {y} 3.3999 {z} 5.1003

:DRUGS1_31062
248@ = 3

:DRUGS1_31069
if 
  261@ == 1
goto_if_false @DRUGS1_31156
if 
  is_char_dead 44@
goto_if_false @DRUGS1_31156
if or
  is_char_dead 45@
  is_car_dead 194@
goto_if_false @DRUGS1_31156
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
261@ = 2

:DRUGS1_31156
if 
  249@ == 1
goto_if_false @DRUGS1_31405
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_31405
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_31213
goto @DRUGS1_31405

:DRUGS1_31213
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_31363
if 
  is_char_in_car 47@ {vehicle} 195@
goto_if_false @DRUGS1_31356
205@ = get_driver_of_car 195@
if 
  205@ == -1
goto_if_false @DRUGS1_31356
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 47@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 47@ {vehicle} 195@
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@
249@ = 2

:DRUGS1_31356
goto @DRUGS1_31405

:DRUGS1_31363
set_car_forward_speed 195@ {forwardSpeed} 15.0
stop_playback_recorded_car 195@
set_car_rotation_velocity 195@ {x} 1.5 {y} 4.3999 {z} 5.1003
249@ = 2

:DRUGS1_31405
if 
  249@ == 2
goto_if_false @DRUGS1_31497
if 
  is_char_dead 47@
goto_if_false @DRUGS1_31497
stop_playback_recorded_car 195@
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_31490
set_car_forward_speed 195@ {forwardSpeed} 15.0
set_car_rotation_velocity 195@ {x} 1.5 {y} 4.3999 {z} 5.1003

:DRUGS1_31490
249@ = 3

:DRUGS1_31497
if 
  262@ == 1
goto_if_false @DRUGS1_31584
if 
  is_char_dead 46@
goto_if_false @DRUGS1_31584
if or
  is_char_dead 47@
  is_car_dead 195@
goto_if_false @DRUGS1_31584
stop_playback_recorded_car 195@
remove_blip 216@
mark_car_as_no_longer_needed 195@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
262@ = 2

:DRUGS1_31584
if 
  250@ == 1
goto_if_false @DRUGS1_31833
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_31833
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_31641
goto @DRUGS1_31833

:DRUGS1_31641
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_31791
if 
  is_char_in_car 57@ {vehicle} 196@
goto_if_false @DRUGS1_31784
205@ = get_driver_of_car 196@
if 
  205@ == -1
goto_if_false @DRUGS1_31784
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 57@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 57@ {vehicle} 196@
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@
250@ = 2

:DRUGS1_31784
goto @DRUGS1_31833

:DRUGS1_31791
set_car_forward_speed 196@ {forwardSpeed} 15.0
stop_playback_recorded_car 196@
set_car_rotation_velocity 196@ {x} 2.5 {y} 3.3999 {z} 3.1003
250@ = 2

:DRUGS1_31833
if 
  250@ == 2
goto_if_false @DRUGS1_31925
if 
  is_char_dead 57@
goto_if_false @DRUGS1_31925
stop_playback_recorded_car 196@
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_31918
set_car_forward_speed 196@ {forwardSpeed} 15.0
set_car_rotation_velocity 196@ {x} 2.5 {y} 3.3999 {z} 3.1003

:DRUGS1_31918
250@ = 3

:DRUGS1_31925
if 
  263@ == 1
goto_if_false @DRUGS1_32012
if 
  is_char_dead 56@
goto_if_false @DRUGS1_32012
if or
  is_char_dead 57@
  is_car_dead 196@
goto_if_false @DRUGS1_32012
stop_playback_recorded_car 196@
remove_blip 217@
mark_car_as_no_longer_needed 196@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
263@ = 2

:DRUGS1_32012
if 
  265@ == 1
goto_if_false @DRUGS1_32164
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_32164
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_32069
goto @DRUGS1_32164

:DRUGS1_32069
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_32152
if 
  is_char_in_car 49@ {vehicle} 165@
goto_if_false @DRUGS1_32145
205@ = get_driver_of_car 165@
if 
  205@ == -1
goto_if_false @DRUGS1_32145
task_shuffle_to_next_car_seat 49@ {vehicle} 165@
265@ = 2

:DRUGS1_32145
goto @DRUGS1_32164

:DRUGS1_32152
stop_playback_recorded_car 165@
265@ = 2

:DRUGS1_32164
if 
  265@ == 2
goto_if_false @DRUGS1_32210
if 
  is_char_dead 49@
goto_if_false @DRUGS1_32210
stop_playback_recorded_car 165@
265@ = 3

:DRUGS1_32210
if 
  255@ == 1
goto_if_false @DRUGS1_32297
if 
  is_char_dead 48@
goto_if_false @DRUGS1_32297
if or
  is_char_dead 49@
  is_car_dead 165@
goto_if_false @DRUGS1_32297
stop_playback_recorded_car 165@
remove_blip 210@
mark_car_as_no_longer_needed 165@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
255@ = 2

:DRUGS1_32297
if 
  266@ == 1
goto_if_false @DRUGS1_32449
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_32449
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_32354
goto @DRUGS1_32449

:DRUGS1_32354
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_32437
if 
  is_char_in_car 51@ {vehicle} 166@
goto_if_false @DRUGS1_32430
205@ = get_driver_of_car 166@
if 
  205@ == -1
goto_if_false @DRUGS1_32430
task_shuffle_to_next_car_seat 51@ {vehicle} 166@
266@ = 2

:DRUGS1_32430
goto @DRUGS1_32449

:DRUGS1_32437
stop_playback_recorded_car 166@
266@ = 2

:DRUGS1_32449
if 
  266@ == 2
goto_if_false @DRUGS1_32495
if 
  is_char_dead 51@
goto_if_false @DRUGS1_32495
stop_playback_recorded_car 166@
266@ = 3

:DRUGS1_32495
if 
  256@ == 1
goto_if_false @DRUGS1_32582
if 
  is_char_dead 50@
goto_if_false @DRUGS1_32582
if or
  is_char_dead 51@
  is_car_dead 166@
goto_if_false @DRUGS1_32582
stop_playback_recorded_car 166@
mark_car_as_no_longer_needed 166@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
remove_blip 211@
256@ = 2

:DRUGS1_32582
if 
  243@ == 2
goto_if_false @DRUGS1_42323
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_42323
if 
  272@ == 0
goto_if_false @DRUGS1_34556
do_fade 0 {direction} Fade.Out
stop_playback_recorded_car 189@
delete_car 189@
delete_char 42@
delete_char 43@
stop_playback_recorded_car 194@
delete_car 194@
delete_char 44@
delete_char 45@
stop_playback_recorded_car 165@
delete_car 165@
delete_char 48@
delete_char 49@
delete_car 208@
delete_car 207@
stop_playback_recorded_car 188@
delete_car 188@
delete_char 197@
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_32746
stop_playback_recorded_car 161@

:DRUGS1_32746
request_car_recording 269
request_car_recording 270
request_car_recording 271
request_car_recording 272
request_car_recording 273
request_car_recording 274
request_car_recording 275
request_car_recording 276
request_car_recording 277
request_car_recording 278
request_car_recording 279
request_car_recording 280
request_car_recording 281
load_all_models_now 

:DRUGS1_32813
if or
  not has_car_recording_been_loaded 273
  not has_car_recording_been_loaded 274
  not has_car_recording_been_loaded 275
  not has_car_recording_been_loaded 276
  not has_car_recording_been_loaded 277
goto_if_false @DRUGS1_32860
wait 0
goto @DRUGS1_32813

:DRUGS1_32860
if or
  not has_car_recording_been_loaded 278
  not has_car_recording_been_loaded 279
  not has_car_recording_been_loaded 280
  not has_car_recording_been_loaded 281
goto_if_false @DRUGS1_32902
wait 0
goto @DRUGS1_32860

:DRUGS1_32902
if or
  not has_car_recording_been_loaded 269
  not has_car_recording_been_loaded 270
  not has_car_recording_been_loaded 271
  not has_car_recording_been_loaded 272
goto_if_false @DRUGS1_32944
wait 0
goto @DRUGS1_32902

:DRUGS1_32944
188@ = create_car 443 {x} 1601.915 {y} -1755.917 {z} 4.6
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 256.415
197@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 111
set_char_can_be_shot_in_vehicle 197@ {state} False
set_car_proofs 188@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 197@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 197@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 197@ {state} True
209@ = add_blip_for_car 188@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
change_blip_scale 209@ {size} 2
208@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} -14.1055
set_petrol_tank_weakpoint 208@ {state} False
set_car_heading 208@ {heading} 256.415
set_car_proofs 208@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 208@ {handle} 188@ {xOffset} 0.0 {yOffset} -4.6 {zOffset} 0.65 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
273@ = 1
207@ = create_car 560 {x} 1550.873 {y} -1737.1219 {z} 14.1055
set_petrol_tank_weakpoint 207@ {state} False
set_car_heading 207@ {heading} 256.415
set_car_proofs 207@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
attach_car_to_car 207@ {handle} 188@ {xOffset} 0.0 {yOffset} 1.15 {zOffset} 2.4 {xRotation} 15.0 {yRotation} 0.0 {zRotation} 0.0
274@ = 1
189@ = create_car 581 {x} 1505.103 {y} -1733.09 {z} 3.05
set_petrol_tank_weakpoint 189@ {state} False
set_car_heading 189@ {heading} 258.539
set_car_proofs 189@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_health 42@ {health} 10
set_char_only_damaged_by_player 42@ {state} 10
set_char_decision_maker 42@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} 10
set_char_decision_maker 43@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 43@ {state} True
247@ = 1
260@ = 1
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
194@ = create_car 581 {x} 1487.213 {y} -1734.792 {z} 3.25
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 258.716
set_car_proofs 194@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 44@ {state} True
set_char_health 44@ {health} 20
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 45@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 45@ {state} True
set_char_health 45@ {health} 30
248@ = 1
261@ = 1
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
165@ = create_car 560 {x} 1496.864 {y} -1731.303 {z} 6.3
set_petrol_tank_weakpoint 165@ {state} False
set_car_heading 165@ {heading} 257.724
46@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 46@ {handleOrTemplate} 35@
set_char_can_be_shot_in_vehicle 46@ {state} False
set_char_only_damaged_by_player 46@ {state} True
47@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 47@ {state} True
set_char_decision_maker 47@ {handleOrTemplate} 35@
set_char_health 47@ {health} 10
265@ = 1
255@ = 1
210@ = add_blip_for_car 165@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
change_blip_scale 210@ {size} 2
set_car_health 165@ {health} 1000
wait 0
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_33824
start_playback_recorded_car 188@ {path} 269

:DRUGS1_33824
if 
  not is_car_dead 208@
goto_if_false @DRUGS1_33848
start_playback_recorded_car 208@ {path} 270

:DRUGS1_33848
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_33872
start_playback_recorded_car 207@ {path} 271

:DRUGS1_33872
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_33896
start_playback_recorded_car 161@ {path} 272

:DRUGS1_33896
if 
  not is_car_dead 208@
goto_if_false @DRUGS1_33934
detach_car 208@ {x} 20.0 {y} 180.0 {z} 0.0 {collisionDetection} False

:DRUGS1_33934
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_33972
detach_car 207@ {x} 20.0 {y} 180.0 {z} 0.0 {collisionDetection} False

:DRUGS1_33972
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_33996
start_playback_recorded_car 189@ {path} 273

:DRUGS1_33996
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_34020
start_playback_recorded_car 194@ {path} 274

:DRUGS1_34020
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_34044
start_playback_recorded_car 165@ {path} 275

:DRUGS1_34044
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_heading_for_attached_player $player1 {heading} 346.2 {headingRange} 359.0
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_34138
set_car_proofs 161@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_34138
do_fade 250 {direction} Fade.In
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
285@ = 0
282@ = 0
283@ = 0
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_34220
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_34220
TIMERB = 0
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_34279
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_34279
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_34362
if 
  3 > 288@
goto_if_false @DRUGS1_34362
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 42@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_34362
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_34445
if 
  2 > 288@
goto_if_false @DRUGS1_34445
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 44@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_34445
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_34497
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_34497
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_34549
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_34549
272@ = 1

:DRUGS1_34556
if 
  272@ == 1
goto_if_false @DRUGS1_35101
if 
  locate_car_2d 161@ {x} 1905.28 {y} -1831.5699 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_35101
166@ = create_car 560 {x} 2002.1021 {y} -1890.368 {z} 8.108
set_petrol_tank_weakpoint 166@ {state} False
set_car_heading 166@ {heading} 44.1
start_playback_recorded_car 166@ {path} 276
48@ = create_char_inside_car 166@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 48@ {handleOrTemplate} 35@
set_char_can_be_shot_in_vehicle 48@ {state} False
set_char_only_damaged_by_player 48@ {state} True
49@ = create_char_as_passenger 166@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 35@
set_char_health 49@ {health} 10
266@ = 1
256@ = 1
211@ = add_blip_for_car 166@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
change_blip_scale 211@ {size} 2
set_car_health 166@ {health} 1100
set_car_proofs 166@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
167@ = create_car 560 {x} 2008.843 {y} -1897.323 {z} 8.1
set_petrol_tank_weakpoint 167@ {state} False
set_car_heading 167@ {heading} 44.1
start_playback_recorded_car 167@ {path} 277
set_car_proofs 167@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
set_car_only_damaged_by_player 167@ {state} True
50@ = create_char_inside_car 167@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 50@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 50@ {state} True
51@ = create_char_as_passenger 167@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 51@ {state} True
set_char_decision_maker 51@ {handleOrTemplate} 35@
set_char_health 51@ {health} 10
267@ = 1
257@ = 1
212@ = add_blip_for_car 167@
change_blip_display 212@ {display} BlipDisplay.BlipOnly
change_blip_scale 212@ {size} 2
set_car_health 167@ {health} 700
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_35042
task_drive_by 49@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_35042
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_35094
task_drive_by 51@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:DRUGS1_35094
272@ = 2

:DRUGS1_35101
if 
  272@ == 2
goto_if_false @DRUGS1_35810
if 
  locate_car_2d 161@ {x} 2101.55 {y} -1850.8101 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_35810
196@ = create_car 581 {x} 2093.446 {y} -1836.207 {z} 12.72
set_petrol_tank_weakpoint 196@ {state} False
set_car_heading 196@ {heading} 267.18
set_car_proofs 196@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
52@ = create_char_inside_car 196@ {pedType} PedType.Mission1 {modelId} 111
set_char_health 52@ {health} 50
set_char_decision_maker 52@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 52@ {state} True
53@ = create_char_as_passenger 196@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 53@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 53@ {state} True
set_char_health 53@ {health} 10
250@ = 1
263@ = 1
217@ = add_blip_for_car 196@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
start_playback_recorded_car 196@ {path} 279
195@ = create_car 581 {x} 2018.735 {y} -1900.925 {z} 8.108
set_petrol_tank_weakpoint 195@ {state} False
set_car_heading 195@ {heading} 258.716
set_car_proofs 195@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
54@ = create_char_inside_car 195@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 54@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 54@ {state} True
55@ = create_char_as_passenger 195@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 55@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 55@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 55@ {state} True
set_char_health 54@ {health} 10
set_char_only_damaged_by_player 54@ {state} 10
set_char_health 55@ {health} 30
set_char_only_damaged_by_player 55@ {state} 10
249@ = 1
262@ = 1
216@ = add_blip_for_car 195@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
start_playback_recorded_car 195@ {path} 278
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_35616
if 
  4 > 288@
goto_if_false @DRUGS1_35616
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 52@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_35616
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_35699
if 
  4 > 288@
goto_if_false @DRUGS1_35699
give_weapon_to_char 54@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 54@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_35699
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_35751
task_drive_by 53@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_35751
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_35803
task_drive_by 55@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 250.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100

:DRUGS1_35803
272@ = 3

:DRUGS1_35810
if 
  272@ == 3
goto_if_false @DRUGS1_36241
if 
  locate_car_2d 161@ {x} 2425.9299 {y} -1874.76 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_36241
delete_car 208@
delete_car 207@
delete_car 189@
delete_car 194@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_car 165@
delete_car 166@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 49@
206@ = create_car 581 {x} 2417.1001 {y} -1876.578 {z} 12.92
set_petrol_tank_weakpoint 206@ {state} False
set_car_heading 206@ {heading} 271.4
start_playback_recorded_car 206@ {path} 280
set_car_proofs 206@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
56@ = create_char_inside_car 206@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 56@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 56@ {state} True
57@ = create_char_as_passenger 206@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 57@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_decision_maker 57@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 57@ {state} True
set_char_health 56@ {health} 10
set_char_health 57@ {health} 10
251@ = 1
264@ = 1
218@ = add_blip_for_car 206@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
change_blip_scale 218@ {size} 2
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_36169
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_36169
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_36234
give_weapon_to_char 56@ {weaponType} WeaponType.MicroUzi {ammo} 99999
task_drive_by 56@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_36234
272@ = 4

:DRUGS1_36241
if 
  272@ == 4
goto_if_false @DRUGS1_36524
if 
  locate_car_2d 161@ {x} 2499.3601 {y} -1871.699 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_36524
168@ = create_car 560 {x} 2529.2561 {y} -1892.9 {z} 13.24
set_petrol_tank_weakpoint 168@ {state} False
set_car_heading 168@ {heading} 269.177
start_playback_recorded_car 168@ {path} 281
set_car_health 168@ {health} 600
58@ = create_char_inside_car 168@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 58@ {handleOrTemplate} 35@
set_char_only_damaged_by_player 58@ {state} True
59@ = create_char_as_passenger 168@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 59@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_only_damaged_by_player 59@ {state} True
set_char_decision_maker 59@ {handleOrTemplate} 35@
268@ = 1
258@ = 1
213@ = add_blip_for_car 168@
change_blip_display 213@ {display} BlipDisplay.BlipOnly
change_blip_scale 213@ {size} 2
set_car_health 168@ {health} 800
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_36517
task_drive_by 59@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_36517
272@ = 5

:DRUGS1_36524
if 
  272@ == 5
goto_if_false @DRUGS1_36588
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_36588
if 
  not is_recording_going_on_for_car 188@
goto_if_false @DRUGS1_36588
freeze_car_position 188@ {state} True
272@ = 6

:DRUGS1_36588
if 
  272@ == 6
goto_if_false @DRUGS1_36656
if 
  279@ == 0
goto_if_false @DRUGS1_36656
if 
  243@ == 2
goto_if_false @DRUGS1_36656
279@ = 1
277@ = 1

:DRUGS1_36656
if 
  273@ == 1
goto_if_false @DRUGS1_36810
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_36810
if 
  not is_car_dead 208@
goto_if_false @DRUGS1_36810
if 
  TIMERB > 26250
goto_if_false @DRUGS1_36810
if or
  265@ <> 3
  255@ <> 2
goto_if_false @DRUGS1_36810
set_car_proofs 208@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
stop_playback_recorded_car 208@
set_car_health 208@ {health} 200
set_car_rotation_velocity 208@ {x} 1.5 {y} -2.3999 {z} 4.1003
explode_car 208@
273@ = 2

:DRUGS1_36810
if 
  273@ == 2
goto_if_false @DRUGS1_36875
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_36875
if 
  TIMERB > 26900
goto_if_false @DRUGS1_36875
explode_car 165@
273@ = 3

:DRUGS1_36875
if 
  274@ == 1
goto_if_false @DRUGS1_36976
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_36976
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_36976
if 
  TIMERB > 35647
goto_if_false @DRUGS1_36976
set_car_proofs 207@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_health 207@ {health} 500
274@ = 2

:DRUGS1_36976
if 
  274@ == 2
goto_if_false @DRUGS1_37043
if 
  TIMERB > 35800
goto_if_false @DRUGS1_37043
if 
  not is_car_dead 207@
goto_if_false @DRUGS1_37043
explode_car 207@
274@ = 3

:DRUGS1_37043
if 
  274@ == 3
goto_if_false @DRUGS1_37110
if 
  TIMERB > 36500
goto_if_false @DRUGS1_37110
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_37110
explode_car 166@
274@ = 4

:DRUGS1_37110
if 
  247@ == 1
goto_if_false @DRUGS1_37358
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_37358
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_37167
goto @DRUGS1_37358

:DRUGS1_37167
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_37316
if 
  is_char_in_car 43@ {vehicle} 189@
goto_if_false @DRUGS1_37309
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_37309
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 189@
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_37309
goto @DRUGS1_37358

:DRUGS1_37316
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003
247@ = 2

:DRUGS1_37358
if 
  247@ == 2
goto_if_false @DRUGS1_37450
if 
  is_char_dead 43@
goto_if_false @DRUGS1_37450
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_37443
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_37443
247@ = 3

:DRUGS1_37450
if 
  260@ == 1
goto_if_false @DRUGS1_37537
if 
  is_char_dead 42@
goto_if_false @DRUGS1_37537
if or
  is_char_dead 43@
  is_car_dead 189@
goto_if_false @DRUGS1_37537
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
260@ = 2

:DRUGS1_37537
if 
  248@ == 1
goto_if_false @DRUGS1_37785
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_37785
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_37594
goto @DRUGS1_37785

:DRUGS1_37594
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_37743
if 
  is_char_in_car 45@ {vehicle} 194@
goto_if_false @DRUGS1_37736
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_37736
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 194@
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_37736
goto @DRUGS1_37785

:DRUGS1_37743
set_car_forward_speed 194@ {forwardSpeed} 18.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003
248@ = 2

:DRUGS1_37785
if 
  248@ == 2
goto_if_false @DRUGS1_37877
if 
  is_char_dead 45@
goto_if_false @DRUGS1_37877
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_37870
set_car_forward_speed 194@ {forwardSpeed} 18.0
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_37870
248@ = 3

:DRUGS1_37877
if 
  261@ == 1
goto_if_false @DRUGS1_37964
if 
  is_char_dead 44@
goto_if_false @DRUGS1_37964
if or
  is_char_dead 45@
  is_car_dead 194@
goto_if_false @DRUGS1_37964
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
261@ = 2

:DRUGS1_37964
if 
  265@ == 1
goto_if_false @DRUGS1_38116
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_38116
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_38021
goto @DRUGS1_38116

:DRUGS1_38021
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_38104
if 
  is_char_in_car 47@ {vehicle} 165@
goto_if_false @DRUGS1_38097
205@ = get_driver_of_car 165@
if 
  205@ == -1
goto_if_false @DRUGS1_38097
task_shuffle_to_next_car_seat 47@ {vehicle} 165@
265@ = 2

:DRUGS1_38097
goto @DRUGS1_38116

:DRUGS1_38104
stop_playback_recorded_car 165@
265@ = 2

:DRUGS1_38116
if 
  265@ == 2
goto_if_false @DRUGS1_38183
if 
  is_char_dead 47@
goto_if_false @DRUGS1_38183
stop_playback_recorded_car 165@
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_38176
car_set_idle 165@

:DRUGS1_38176
265@ = 3

:DRUGS1_38183
if 
  255@ == 1
goto_if_false @DRUGS1_38291
if 
  is_char_dead 46@
goto_if_false @DRUGS1_38291
if or
  is_char_dead 47@
  is_car_dead 165@
goto_if_false @DRUGS1_38291
stop_playback_recorded_car 165@
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_38264
car_set_idle 165@

:DRUGS1_38264
remove_blip 210@
mark_car_as_no_longer_needed 165@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
255@ = 2

:DRUGS1_38291
if 
  266@ == 1
goto_if_false @DRUGS1_38443
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_38443
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_38348
goto @DRUGS1_38443

:DRUGS1_38348
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_38431
if 
  is_char_in_car 49@ {vehicle} 166@
goto_if_false @DRUGS1_38424
205@ = get_driver_of_car 166@
if 
  205@ == -1
goto_if_false @DRUGS1_38424
task_shuffle_to_next_car_seat 49@ {vehicle} 166@
266@ = 2

:DRUGS1_38424
goto @DRUGS1_38443

:DRUGS1_38431
stop_playback_recorded_car 166@
266@ = 2

:DRUGS1_38443
if 
  266@ == 2
goto_if_false @DRUGS1_38510
if 
  is_char_dead 49@
goto_if_false @DRUGS1_38510
stop_playback_recorded_car 166@
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_38503
car_set_idle 166@

:DRUGS1_38503
266@ = 3

:DRUGS1_38510
if 
  256@ == 1
goto_if_false @DRUGS1_38618
if 
  is_char_dead 48@
goto_if_false @DRUGS1_38618
if or
  is_char_dead 49@
  is_car_dead 166@
goto_if_false @DRUGS1_38618
stop_playback_recorded_car 166@
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_38591
car_set_idle 166@

:DRUGS1_38591
remove_blip 211@
mark_car_as_no_longer_needed 166@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
256@ = 2

:DRUGS1_38618
if 
  267@ == 1
goto_if_false @DRUGS1_38770
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_38770
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_38675
goto @DRUGS1_38770

:DRUGS1_38675
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_38758
if 
  is_char_in_car 51@ {vehicle} 167@
goto_if_false @DRUGS1_38751
205@ = get_driver_of_car 167@
if 
  205@ == -1
goto_if_false @DRUGS1_38751
task_shuffle_to_next_car_seat 51@ {vehicle} 167@
267@ = 2

:DRUGS1_38751
goto @DRUGS1_38770

:DRUGS1_38758
stop_playback_recorded_car 167@
267@ = 2

:DRUGS1_38770
if 
  267@ == 2
goto_if_false @DRUGS1_38837
if 
  is_char_dead 51@
goto_if_false @DRUGS1_38837
stop_playback_recorded_car 167@
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_38830
car_set_idle 167@

:DRUGS1_38830
267@ = 3

:DRUGS1_38837
if 
  257@ == 1
goto_if_false @DRUGS1_38945
if 
  is_char_dead 50@
goto_if_false @DRUGS1_38945
if or
  is_char_dead 51@
  is_car_dead 167@
goto_if_false @DRUGS1_38945
stop_playback_recorded_car 167@
remove_blip 212@
if 
  not is_car_dead 167@
goto_if_false @DRUGS1_38923
car_set_idle 167@

:DRUGS1_38923
mark_car_as_no_longer_needed 167@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
257@ = 2

:DRUGS1_38945
if 
  250@ == 1
goto_if_false @DRUGS1_39193
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_39193
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_39002
goto @DRUGS1_39193

:DRUGS1_39002
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_39151
if 
  is_char_in_car 53@ {vehicle} 196@
goto_if_false @DRUGS1_39144
205@ = get_driver_of_car 196@
if 
  205@ == -1
goto_if_false @DRUGS1_39144
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 53@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 53@ {vehicle} 196@
task_drive_by 53@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
250@ = 2

:DRUGS1_39144
goto @DRUGS1_39193

:DRUGS1_39151
set_car_forward_speed 196@ {forwardSpeed} 18.0
stop_playback_recorded_car 196@
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003
250@ = 2

:DRUGS1_39193
if 
  250@ == 2
goto_if_false @DRUGS1_39285
if 
  is_char_dead 53@
goto_if_false @DRUGS1_39285
stop_playback_recorded_car 196@
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_39278
set_car_forward_speed 196@ {forwardSpeed} 18.0
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_39278
250@ = 3

:DRUGS1_39285
if 
  263@ == 1
goto_if_false @DRUGS1_39372
if 
  is_char_dead 52@
goto_if_false @DRUGS1_39372
if or
  is_char_dead 53@
  is_car_dead 196@
goto_if_false @DRUGS1_39372
stop_playback_recorded_car 196@
remove_blip 217@
mark_car_as_no_longer_needed 196@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
263@ = 2

:DRUGS1_39372
if 
  249@ == 1
goto_if_false @DRUGS1_39620
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_39620
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_39429
goto @DRUGS1_39620

:DRUGS1_39429
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_39578
if 
  is_char_in_car 55@ {vehicle} 195@
goto_if_false @DRUGS1_39571
205@ = get_driver_of_car 195@
if 
  205@ == -1
goto_if_false @DRUGS1_39571
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 55@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 55@ {vehicle} 195@
task_drive_by 55@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
249@ = 2

:DRUGS1_39571
goto @DRUGS1_39620

:DRUGS1_39578
set_car_forward_speed 195@ {forwardSpeed} 18.0
stop_playback_recorded_car 195@
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003
249@ = 2

:DRUGS1_39620
if 
  249@ == 2
goto_if_false @DRUGS1_39712
if 
  is_char_dead 55@
goto_if_false @DRUGS1_39712
stop_playback_recorded_car 195@
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_39705
set_car_forward_speed 195@ {forwardSpeed} 18.0
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_39705
249@ = 3

:DRUGS1_39712
if 
  262@ == 1
goto_if_false @DRUGS1_39799
if 
  is_char_dead 54@
goto_if_false @DRUGS1_39799
if or
  is_char_dead 55@
  is_car_dead 195@
goto_if_false @DRUGS1_39799
stop_playback_recorded_car 195@
remove_blip 216@
mark_car_as_no_longer_needed 195@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
262@ = 2

:DRUGS1_39799
if 
  251@ == 1
goto_if_false @DRUGS1_40047
if 
  not is_car_dead 206@
goto_if_false @DRUGS1_40047
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_39856
goto @DRUGS1_40047

:DRUGS1_39856
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_40005
if 
  is_char_in_car 57@ {vehicle} 206@
goto_if_false @DRUGS1_39998
205@ = get_driver_of_car 206@
if 
  205@ == -1
goto_if_false @DRUGS1_39998
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 57@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 57@ {vehicle} 206@
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
251@ = 2

:DRUGS1_39998
goto @DRUGS1_40047

:DRUGS1_40005
set_car_forward_speed 206@ {forwardSpeed} 18.0
stop_playback_recorded_car 206@
set_car_rotation_velocity 206@ {x} 3.5 {y} 7.3999 {z} 8.1003
251@ = 2

:DRUGS1_40047
if 
  251@ == 2
goto_if_false @DRUGS1_40139
if 
  is_char_dead 57@
goto_if_false @DRUGS1_40139
stop_playback_recorded_car 206@
if 
  not is_car_dead 206@
goto_if_false @DRUGS1_40132
set_car_forward_speed 206@ {forwardSpeed} 18.0
set_car_rotation_velocity 206@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_40132
251@ = 3

:DRUGS1_40139
if 
  264@ == 1
goto_if_false @DRUGS1_40226
if 
  is_char_dead 56@
goto_if_false @DRUGS1_40226
if or
  is_char_dead 57@
  is_car_dead 206@
goto_if_false @DRUGS1_40226
stop_playback_recorded_car 206@
remove_blip 218@
mark_car_as_no_longer_needed 206@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
264@ = 2

:DRUGS1_40226
if 
  268@ == 1
goto_if_false @DRUGS1_40378
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_40378
if 
  not is_char_dead 58@
goto_if_false @DRUGS1_40283
goto @DRUGS1_40378

:DRUGS1_40283
if 
  not is_char_dead 59@
goto_if_false @DRUGS1_40366
if 
  is_char_in_car 59@ {vehicle} 168@
goto_if_false @DRUGS1_40359
205@ = get_driver_of_car 168@
if 
  205@ == -1
goto_if_false @DRUGS1_40359
task_shuffle_to_next_car_seat 59@ {vehicle} 168@
268@ = 2

:DRUGS1_40359
goto @DRUGS1_40378

:DRUGS1_40366
stop_playback_recorded_car 168@
268@ = 2

:DRUGS1_40378
if 
  268@ == 2
goto_if_false @DRUGS1_40445
if 
  is_char_dead 59@
goto_if_false @DRUGS1_40445
stop_playback_recorded_car 168@
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_40438
car_set_idle 168@

:DRUGS1_40438
268@ = 3

:DRUGS1_40445
if 
  258@ == 1
goto_if_false @DRUGS1_40553
if 
  is_char_dead 58@
goto_if_false @DRUGS1_40553
if or
  is_char_dead 59@
  is_car_dead 168@
goto_if_false @DRUGS1_40553
stop_playback_recorded_car 168@
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_40526
car_set_idle 168@

:DRUGS1_40526
remove_blip 213@
mark_car_as_no_longer_needed 168@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
258@ = 2

:DRUGS1_40553
if 
  272@ > 0
goto_if_false @DRUGS1_42323
if 
  282@ == 0
goto_if_false @DRUGS1_40638
if 
  283@ == 0
goto_if_false @DRUGS1_40638
set_lvar_int_to_constant 239@ = 35689
set_lvar_text_label 240@s = 'SMO4_HA'
gosub @DRUGS1_51600

:DRUGS1_40638
if 
  282@ == 1
goto_if_false @DRUGS1_40705
if 
  283@ == 0
goto_if_false @DRUGS1_40705
set_lvar_int_to_constant 239@ = 35690
set_lvar_text_label 240@s = 'SMO4_HB'
gosub @DRUGS1_51600

:DRUGS1_40705
if 
  282@ == 2
goto_if_false @DRUGS1_40772
if 
  283@ == 0
goto_if_false @DRUGS1_40772
set_lvar_int_to_constant 239@ = 35691
set_lvar_text_label 240@s = 'SMO4_HC'
gosub @DRUGS1_51600

:DRUGS1_40772
if 
  282@ == 3
goto_if_false @DRUGS1_40839
if 
  283@ == 0
goto_if_false @DRUGS1_40839
set_lvar_int_to_constant 239@ = 35692
set_lvar_text_label 240@s = 'SMO4_HD'
gosub @DRUGS1_51600

:DRUGS1_40839
if 
  282@ == 4
goto_if_false @DRUGS1_40906
if 
  283@ == 0
goto_if_false @DRUGS1_40906
set_lvar_int_to_constant 239@ = 35693
set_lvar_text_label 240@s = 'SMO4_HE'
gosub @DRUGS1_51600

:DRUGS1_40906
if 
  282@ == 5
goto_if_false @DRUGS1_40973
if 
  283@ == 0
goto_if_false @DRUGS1_40973
set_lvar_int_to_constant 239@ = 35694
set_lvar_text_label 240@s = 'SMO4_HF'
gosub @DRUGS1_51600

:DRUGS1_40973
if 
  282@ == 6
goto_if_false @DRUGS1_41040
if 
  283@ == 0
goto_if_false @DRUGS1_41040
set_lvar_int_to_constant 239@ = 35695
set_lvar_text_label 240@s = 'SMO4_HH'
gosub @DRUGS1_51600

:DRUGS1_41040
if 
  282@ == 7
goto_if_false @DRUGS1_41107
if 
  283@ == 0
goto_if_false @DRUGS1_41107
set_lvar_int_to_constant 239@ = 35696
set_lvar_text_label 240@s = 'SMO4_HJ'
gosub @DRUGS1_51600

:DRUGS1_41107
if 
  282@ == 8
goto_if_false @DRUGS1_41174
if 
  283@ == 0
goto_if_false @DRUGS1_41174
set_lvar_int_to_constant 239@ = 35661
set_lvar_text_label 240@s = 'SMO4_ER'
gosub @DRUGS1_51600

:DRUGS1_41174
if 
  285@ == 0
goto_if_false @DRUGS1_41237
if 
  locate_car_2d 161@ {x} 2047.59 {y} -1850.3199 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41237
285@ = 1

:DRUGS1_41237
if 
  282@ == 9
goto_if_false @DRUGS1_41322
if 
  283@ == 0
goto_if_false @DRUGS1_41322
if 
  285@ == 1
goto_if_false @DRUGS1_41322
set_lvar_int_to_constant 239@ = 35700
set_lvar_text_label 240@s = 'SMO4_HN'
gosub @DRUGS1_51600

:DRUGS1_41322
if 
  285@ == 1
goto_if_false @DRUGS1_41385
if 
  locate_car_2d 161@ {x} 2121.1699 {y} -1853.67 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41385
285@ = 2

:DRUGS1_41385
if 
  282@ == 10
goto_if_false @DRUGS1_41470
if 
  283@ == 0
goto_if_false @DRUGS1_41470
if 
  285@ == 2
goto_if_false @DRUGS1_41470
set_lvar_int_to_constant 239@ = 35685
set_lvar_text_label 240@s = 'SMO4_GM'
gosub @DRUGS1_51600

:DRUGS1_41470
if 
  282@ == 11
goto_if_false @DRUGS1_41537
if 
  283@ == 0
goto_if_false @DRUGS1_41537
set_lvar_int_to_constant 239@ = 35688
set_lvar_text_label 240@s = 'SMO4_GP'
gosub @DRUGS1_51600

:DRUGS1_41537
if 
  285@ == 2
goto_if_false @DRUGS1_41600
if 
  locate_car_2d 161@ {x} 2216.75 {y} -1854.73 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41600
285@ = 3

:DRUGS1_41600
if 
  282@ == 12
goto_if_false @DRUGS1_41685
if 
  283@ == 0
goto_if_false @DRUGS1_41685
if 
  285@ == 3
goto_if_false @DRUGS1_41685
set_lvar_int_to_constant 239@ = 35702
set_lvar_text_label 240@s = 'SMO4_HP'
gosub @DRUGS1_51600

:DRUGS1_41685
if 
  282@ == 13
goto_if_false @DRUGS1_41752
if 
  283@ == 0
goto_if_false @DRUGS1_41752
set_lvar_int_to_constant 239@ = 35705
set_lvar_text_label 240@s = 'SMO4_HS'
gosub @DRUGS1_51600

:DRUGS1_41752
if 
  282@ == 14
goto_if_false @DRUGS1_41819
if 
  283@ == 0
goto_if_false @DRUGS1_41819
set_lvar_int_to_constant 239@ = 35706
set_lvar_text_label 240@s = 'SMO4_HT'
gosub @DRUGS1_51600

:DRUGS1_41819
if 
  285@ == 3
goto_if_false @DRUGS1_41882
if 
  locate_car_2d 161@ {x} 2435.9399 {y} -1874.5699 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_41882
285@ = 4

:DRUGS1_41882
if 
  282@ == 15
goto_if_false @DRUGS1_41967
if 
  283@ == 0
goto_if_false @DRUGS1_41967
if 
  285@ == 4
goto_if_false @DRUGS1_41967
set_lvar_int_to_constant 239@ = 35684
set_lvar_text_label 240@s = 'SMO4_GL'
gosub @DRUGS1_51600

:DRUGS1_41967
if 
  282@ == 16
goto_if_false @DRUGS1_42034
if 
  283@ == 0
goto_if_false @DRUGS1_42034
set_lvar_int_to_constant 239@ = 35686
set_lvar_text_label 240@s = 'SMO4_GN'
gosub @DRUGS1_51600

:DRUGS1_42034
if 
  285@ == 4
goto_if_false @DRUGS1_42097
if 
  locate_car_2d 161@ {x} 2539.1101 {y} -1865.3101 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_42097
285@ = 5

:DRUGS1_42097
if 
  282@ == 17
goto_if_false @DRUGS1_42182
if 
  283@ == 0
goto_if_false @DRUGS1_42182
if 
  285@ == 4
goto_if_false @DRUGS1_42182
set_lvar_int_to_constant 239@ = 35709
set_lvar_text_label 240@s = 'SMO4_JA'
gosub @DRUGS1_51600

:DRUGS1_42182
if 
  282@ == 18
goto_if_false @DRUGS1_42249
if 
  283@ == 0
goto_if_false @DRUGS1_42249
set_lvar_int_to_constant 239@ = 35710
set_lvar_text_label 240@s = 'SMO4_JB'
gosub @DRUGS1_51600

:DRUGS1_42249
if 
  282@ == 19
goto_if_false @DRUGS1_42316
if 
  283@ == 0
goto_if_false @DRUGS1_42316
set_lvar_int_to_constant 239@ = 35711
set_lvar_text_label 240@s = 'SMO4_JC'
gosub @DRUGS1_51600

:DRUGS1_42316
gosub @DRUGS1_51642

:DRUGS1_42323
if 
  279@ == 1
goto_if_false @DRUGS1_44336
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_44336
if 
  277@ == 1
goto_if_false @DRUGS1_43285
if 
  locate_car_2d 161@ {x} 2565.98 {y} -1747.12 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_43285
do_fade 0 {direction} Fade.Out
request_car_recording 282
request_car_recording 283
request_car_recording 284
request_car_recording 285
request_car_recording 286
request_model #STORM_DRAIN_COVER
request_model #BARREL4
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 161@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_42511
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_42511
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_42549
open_car_door 188@ {door} CarDoor.LeftFrontDoor

:DRUGS1_42549
130@ = 2569.144
131@ = -1676.1851
132@ = 2.915
133@ = 2569.512
134@ = -1677.113
135@ = 2.8487
set_fixed_camera_position 2578.406 {y} -1668.328 {z} 1.3204 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2577.853 {y} -1669.157 {z} 1.4051 {switchStyle} SwitchType.JumpCut
stop_playback_recorded_car 189@
delete_car 189@
delete_char 42@
delete_char 43@
stop_playback_recorded_car 194@
delete_car 194@
delete_char 44@
delete_char 45@
stop_playback_recorded_car 165@
delete_car 165@
delete_char 46@
delete_char 47@
stop_playback_recorded_car 166@
delete_car 166@
delete_char 48@
delete_char 49@
stop_playback_recorded_car 167@
delete_car 167@
delete_char 50@
delete_char 51@
stop_playback_recorded_car 196@
delete_car 196@
delete_char 52@
delete_char 53@
stop_playback_recorded_car 195@
delete_car 195@
delete_char 54@
delete_char 55@
stop_playback_recorded_car 206@
delete_car 206@
delete_char 56@
delete_char 57@
stop_playback_recorded_car 168@
delete_car 168@
delete_char 58@
delete_char 59@
165@ = create_car 560 {x} 2575.8711 {y} -1676.557 {z} 0.7246
set_car_heading 165@ {heading} 85.0235
set_car_proofs 165@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
166@ = create_car 560 {x} 2567.3479 {y} -1675.912 {z} 0.7398
set_car_heading 166@ {heading} 263.7667
set_car_proofs 166@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
37@ = create_char PedType.Mission1 {modelId} 111 {x} 2578.022 {y} -1674.761 {z} 0.7667
set_char_heading 37@ {heading} 162.2371
set_char_decision_maker 37@ {handleOrTemplate} 35@
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_shoot_at_coord 37@ {x} 2574.8701 {y} -1686.48 {z} 2.02 {time} 3000
38@ = create_char PedType.Mission1 {modelId} 111 {x} 2574.3359 {y} -1674.478 {z} 0.7734
set_char_heading 38@ {heading} 162.2371
set_char_decision_maker 38@ {handleOrTemplate} 35@
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_shoot_at_coord 38@ {x} 2572.21 {y} -1686.5601 {z} 3.13 {time} 3000
task_toggle_duck 38@ {state} True
39@ = create_char PedType.Mission1 {modelId} 111 {x} 2569.2949 {y} -1674.4 {z} 0.7752
set_char_heading 39@ {heading} 170.9985
set_char_decision_maker 39@ {handleOrTemplate} 35@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_shoot_at_coord 39@ {x} 2566.95 {y} -1686.14 {z} 2.5 {time} 3000
40@ = create_char PedType.Mission1 {modelId} 111 {x} 2565.314 {y} -1673.921 {z} 0.7864
set_char_heading 40@ {heading} 170.9985
set_char_decision_maker 40@ {handleOrTemplate} 35@
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 9999
task_toggle_duck 40@ {state} True
task_shoot_at_coord 40@ {x} 2564.3501 {y} -1786.51 {z} 2.18 {time} 3000
if 
  is_playback_going_on_for_car 161@
goto_if_false @DRUGS1_43271
stop_playback_recorded_car 161@

:DRUGS1_43271
243@ = 3
277@ = 2

:DRUGS1_43285
if 
  277@ == 2
goto_if_false @DRUGS1_43422
if 
  has_car_recording_been_loaded 282
goto_if_false @DRUGS1_43422
if 
  has_car_recording_been_loaded 283
goto_if_false @DRUGS1_43422
if 
  has_car_recording_been_loaded 284
goto_if_false @DRUGS1_43422
if 
  has_car_recording_been_loaded 285
goto_if_false @DRUGS1_43422
if 
  has_car_recording_been_loaded 286
goto_if_false @DRUGS1_43422
if 
  has_model_loaded #STORM_DRAIN_COVER
goto_if_false @DRUGS1_43422
if 
  has_model_loaded #BARREL4
goto_if_false @DRUGS1_43422
277@ = 3

:DRUGS1_43422
switch_start 277@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_43747 {caseNum1} 3 {caseLabel1} @DRUGS1_43485 {caseNum2} 7 {caseLabel2} @DRUGS1_43580 {caseNum3} 8 {caseLabel3} @DRUGS1_43636 {caseNum4} -1 {caseLabel4} @DRUGS1_43747 {caseNum5} -1 {caseLabel5} @DRUGS1_43747 {caseNum6} -1 {caseLabel6} @DRUGS1_43747 {caseNum7} -1 {caseLabel7} @DRUGS1_43747

:DRUGS1_43485
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_43573
TIMERA = 0
start_playback_recorded_car 161@ {path} 282
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_43540
set_car_health 188@ {health} 300

:DRUGS1_43540
$z = 1.0
277@ = 7
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_43573

:DRUGS1_43573
goto @DRUGS1_43747

:DRUGS1_43580
277@ = 8
do_fade 250 {direction} Fade.In
TIMERA = 0
TIMERB = 0
151@ = 0
159@ = 0
160@ = 0
goto @DRUGS1_43747

:DRUGS1_43636
gosub @DRUGS1_50496
gosub @DRUGS1_50750
gosub @DRUGS1_51225
if 
  TIMERA > 1800
goto_if_false @DRUGS1_43740
if 
  278@ == 0
goto_if_false @DRUGS1_43701
278@ = 1

:DRUGS1_43701
set_fixed_camera_position 130@ {y} 131@ {z} 132@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 133@ {y} 134@ {z} 135@ {switchStyle} SwitchType.JumpCut

:DRUGS1_43740
goto @DRUGS1_43747

:DRUGS1_43747
if 
  278@ == 1
goto_if_false @DRUGS1_43928
if 
  not is_char_dead 37@
goto_if_false @DRUGS1_43804
set_lvar_int_to_lvar_int 79@ = 37@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943

:DRUGS1_43804
if 
  not is_char_dead 38@
goto_if_false @DRUGS1_43843
set_lvar_int_to_lvar_int 79@ = 38@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_43843
if 
  not is_char_dead 39@
goto_if_false @DRUGS1_43882
set_lvar_int_to_lvar_int 79@ = 39@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943

:DRUGS1_43882
if 
  not is_char_dead 40@
goto_if_false @DRUGS1_43921
set_lvar_int_to_lvar_int 79@ = 40@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_43921
278@ = 2

:DRUGS1_43928
if 
  278@ == 2
goto_if_false @DRUGS1_43972
if 
  TIMERB > 3400
goto_if_false @DRUGS1_43972
278@ = 3

:DRUGS1_43972
if 
  278@ == 3
goto_if_false @DRUGS1_44082
if 
  TIMERB > 3480
goto_if_false @DRUGS1_44082
if 
  not is_car_dead 188@
goto_if_false @DRUGS1_44082
freeze_car_position 188@ {state} False
explode_car 188@
add_explosion 2570.228 {y} -1684.949 {z} 2.2595 {type} ExplosionType.Grenade
add_explosion 2570.228 {y} -1684.949 {z} 2.2595 {type} ExplosionType.Molotov
278@ = 4

:DRUGS1_44082
if 
  278@ == 4
goto_if_false @DRUGS1_44166
if 
  TIMERB > 3550
goto_if_false @DRUGS1_44166
if 
  not is_car_dead 165@
goto_if_false @DRUGS1_44159
explode_car 165@
add_explosion 2575.269 {y} -1677.076 {z} 1.0414 {type} ExplosionType.Molotov

:DRUGS1_44159
278@ = 5

:DRUGS1_44166
if 
  278@ == 5
goto_if_false @DRUGS1_44250
if 
  not is_car_dead 166@
goto_if_false @DRUGS1_44250
if 
  TIMERB > 3625
goto_if_false @DRUGS1_44250
explode_car 166@
add_explosion 2568.749 {y} -1676.139 {z} 1.209 {type} ExplosionType.Rocket
278@ = 6

:DRUGS1_44250
if 
  277@ > 7
goto_if_false @DRUGS1_44336
if 
  TIMERB > 4599
goto_if_false @DRUGS1_44336
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
279@ = 2
277@ = 10

:DRUGS1_44336
if 
  279@ == 2
goto_if_false @DRUGS1_50489
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_50489
if 
  280@ == 0
goto_if_false @DRUGS1_45931
switch_widescreen False
set_player_control $player1 {state} True
set_heading_for_attached_player $player1 {heading} 263.0 {headingRange} 350.0
restore_camera_jumpcut 
set_car_proofs 161@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_44462
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS1_44462
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
152@ = create_object_no_offset #STORM_DRAIN_COVER {x} 2631.8521 {y} -1482.75 {z} 18.109
281@ = 1
282@ = 0
283@ = 0
285@ = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35713
set_object_health 152@ {health} 150
153@ = create_object #BARREL4 {x} 2786.521 {y} -1416.051 {z} 15.31
154@ = create_object #BARREL4 {x} 2787.5481 {y} -1418.323 {z} 15.31
155@ = create_object #BARREL4 {x} 2824.324 {y} -1418.704 {z} 15.31
156@ = create_object #BARREL4 {x} 2822.1599 {y} -1419.988 {z} 15.31
157@ = create_object #BARREL4 {x} 2823.05 {y} -1418.7469 {z} 15.3
mark_model_as_no_longer_needed 443
168@ = create_car 560 {x} 2601.689 {y} -1600.1071 {z} 3.1106
set_car_heading 168@ {heading} 61.4469
258@ = 1
169@ = create_car 560 {x} 2595.717 {y} -1558.29 {z} 8.4514
set_car_heading 169@ {heading} 287.8971
259@ = 1
48@ = create_char PedType.Mission1 {modelId} 111 {x} 2601.4409 {y} -1597.4611 {z} 3.2207
set_char_heading 48@ {heading} 135.3988
set_char_health 48@ {health} 20
set_char_decision_maker 48@ {handleOrTemplate} 35@
give_weapon_to_char 48@ {weaponType} WeaponType.MicroUzi {ammo} 3000
231@ = add_blip_for_char 48@
change_blip_display 231@ {display} BlipDisplay.BlipOnly
change_blip_scale 231@ {size} 2
49@ = create_char PedType.Mission1 {modelId} 111 {x} 2596.7649 {y} -1559.589 {z} 8.277
set_char_heading 49@ {heading} 201.1592
set_char_health 49@ {health} 20
set_char_decision_maker 49@ {handleOrTemplate} 35@
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 3000
232@ = add_blip_for_char 49@
change_blip_display 232@ {display} BlipDisplay.BlipOnly
change_blip_scale 232@ {size} 2
50@ = create_char PedType.Mission1 {modelId} 111 {x} 2596.9409 {y} -1555.855 {z} 8.9717
set_char_heading 50@ {heading} 201.1592
set_char_health 50@ {health} 20
set_char_decision_maker 50@ {handleOrTemplate} 35@
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 3000
233@ = add_blip_for_char 50@
change_blip_display 233@ {display} BlipDisplay.BlipOnly
change_blip_scale 233@ {size} 2
51@ = create_char PedType.Mission1 {modelId} 111 {x} 2624.8191 {y} -1494.002 {z} 15.4086
set_char_heading 51@ {heading} 145.1087
set_char_health 51@ {health} 10
set_char_decision_maker 51@ {handleOrTemplate} 35@
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 3000
234@ = add_blip_for_char 51@
change_blip_display 234@ {display} BlipDisplay.BlipOnly
change_blip_scale 234@ {size} 2
53@ = create_char PedType.Mission1 {modelId} 111 {x} 2625.4131 {y} -1496.587 {z} 15.3563
set_char_heading 53@ {heading} 153.8693
set_char_health 53@ {health} 10
set_char_decision_maker 53@ {handleOrTemplate} 35@
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 3000
235@ = add_blip_for_char 53@
change_blip_display 235@ {display} BlipDisplay.BlipOnly
change_blip_scale 235@ {size} 2
189@ = create_car 581 {x} 2539.344 {y} -1712.77 {z} 12.4719
set_car_heading 189@ {heading} 287.1995
42@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 42@ {handleOrTemplate} 35@
43@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 43@ {handleOrTemplate} 35@
214@ = add_blip_for_car 189@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
change_blip_scale 214@ {size} 2
set_char_health 42@ {health} 10
set_char_only_damaged_by_player 42@ {state} 10
set_char_health 43@ {health} 10
set_char_only_damaged_by_player 43@ {state} 10
247@ = 1
260@ = 1
194@ = create_car 581 {x} 2533.5681 {y} -1714.569 {z} 12.4874
set_petrol_tank_weakpoint 194@ {state} False
set_car_heading 194@ {heading} 287.5564
44@ = create_char_inside_car 194@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 44@ {handleOrTemplate} 35@
45@ = create_char_as_passenger 194@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 45@ {handleOrTemplate} 35@
215@ = add_blip_for_car 194@
change_blip_display 215@ {display} BlipDisplay.BlipOnly
change_blip_scale 215@ {size} 2
set_char_health 44@ {health} 50
set_char_health 45@ {health} 50
248@ = 1
261@ = 1
195@ = create_car 581 {x} 2529.6831 {y} -1715.803 {z} 12.4991
set_petrol_tank_weakpoint 195@ {state} False
set_car_heading 195@ {heading} 287.7722
46@ = create_char_inside_car 195@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 46@ {handleOrTemplate} 35@
47@ = create_char_as_passenger 195@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 47@ {handleOrTemplate} 35@
216@ = add_blip_for_car 195@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
change_blip_scale 216@ {size} 2
set_char_health 46@ {health} 30
set_char_only_damaged_by_player 46@ {state} 10
set_char_health 47@ {health} 30
set_char_only_damaged_by_player 47@ {state} 10
249@ = 1
262@ = 1
196@ = create_car 581 {x} 2524.542 {y} -1717.4611 {z} 12.5175
set_petrol_tank_weakpoint 196@ {state} False
set_car_heading 196@ {heading} 287.8176
56@ = create_char_inside_car 196@ {pedType} PedType.Mission1 {modelId} 111
set_char_decision_maker 56@ {handleOrTemplate} 35@
57@ = create_char_as_passenger 196@ {pedType} PedType.Mission1 {modelId} 111 {seat} SeatId.BikeRear
give_weapon_to_char 57@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_decision_maker 57@ {handleOrTemplate} 35@
217@ = add_blip_for_car 196@
change_blip_display 217@ {display} BlipDisplay.BlipOnly
change_blip_scale 217@ {size} 2
250@ = 1
263@ = 1
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_45768
set_lvar_int_to_lvar_int 79@ = 48@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943

:DRUGS1_45768
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_45807
set_lvar_int_to_lvar_int 79@ = 49@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_45807
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_45846
set_lvar_int_to_lvar_int 79@ = 50@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51943

:DRUGS1_45846
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_45885
set_lvar_int_to_lvar_int 79@ = 51@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_45885
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_45924
set_lvar_int_to_lvar_int 79@ = 53@
set_lvar_int_to_var_int 80@ = $scplayer
gosub @DRUGS1_51987

:DRUGS1_45924
280@ = 1

:DRUGS1_45931
if 
  280@ == 1
goto_if_false @DRUGS1_46339
if 
  locate_car_2d 161@ {x} 2580.74 {y} -1621.47 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS1_46339
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_46011
start_playback_recorded_car 189@ {path} 283

:DRUGS1_46011
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_46035
start_playback_recorded_car 194@ {path} 284

:DRUGS1_46035
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_46059
start_playback_recorded_car 195@ {path} 285

:DRUGS1_46059
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_46083
start_playback_recorded_car 196@ {path} 286

:DRUGS1_46083
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_46135
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_46135
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_46188
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 289@

:DRUGS1_46188
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_46240
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_46240
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_46292
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 200.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 90

:DRUGS1_46292
mark_car_as_no_longer_needed 165@
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 197@
mark_car_as_no_longer_needed 166@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 40@
280@ = 2

:DRUGS1_46339
if 
  280@ == 2
goto_if_false @DRUGS1_46480
if 
  locate_car_2d 161@ {x} 2676.96 {y} -1432.1 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS1_46480
delete_char 48@
delete_char 49@
delete_char 50@
delete_car 168@
delete_car 169@
delete_car 188@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 53@
remove_blip 231@
remove_blip 232@
remove_blip 233@
remove_blip 234@
remove_blip 235@
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35726
280@ = 3

:DRUGS1_46480
if 
  280@ == 3
goto_if_false @DRUGS1_46682
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_46682
if 
  locate_car_2d 161@ {x} 2825.3701 {y} -1538.4301 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRUGS1_46682
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 2823.7549 {y} -1537.1379 {z} 10.0736 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2823.25 {y} -1537.9659 {z} 10.3176 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35727

:DRUGS1_46629
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_46655
wait 0
goto @DRUGS1_46629

:DRUGS1_46655
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_JS' {time} 5000 {flag} 1
280@ = 4

:DRUGS1_46682
if 
  280@ == 4
goto_if_false @DRUGS1_46940
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_46940
if 
  locate_stopped_car_2d 161@ {x} 2825.3701 {y} -1538.4301 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS1_46940
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_46940
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_46940
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_46940
clear_prints 
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_KA' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35729
delete_char 43@
delete_char 44@
delete_car 189@
remove_blip 214@
delete_char 45@
delete_char 46@
delete_car 194@
remove_blip 215@
delete_char 47@
delete_char 48@
delete_car 195@
remove_blip 216@
delete_char 56@
delete_char 57@
delete_car 196@
remove_blip 217@
task_look_at_char $big_smoke {target} $scplayer {time} 10000
TIMERA = 0
280@ = 5

:DRUGS1_46940
if 
  280@ == 5
goto_if_false @DRUGS1_47149
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47149
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47149
set_fixed_camera_position 2819.666 {y} -1542.108 {z} 10.2063 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2820.4009 {y} -1541.444 {z} 10.3396 {switchStyle} SwitchType.JumpCut
clear_prints 
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47065
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_47065
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_KC' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35730
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} False
remove_weapon_from_char $scplayer {weaponType} WeaponType.MicroUzi
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 80
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS1_47142
task_leave_any_car $scplayer

:DRUGS1_47142
280@ = 6

:DRUGS1_47149
if 
  280@ == 6
goto_if_false @DRUGS1_47228
if 
  not is_char_sitting_in_any_car $scplayer
goto_if_false @DRUGS1_47228
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47228
task_look_at_char $scplayer {target} $big_smoke {time} 15000
task_look_at_char $big_smoke {target} $scplayer {time} 15000
280@ = 7

:DRUGS1_47228
if 
  280@ == 7
goto_if_false @DRUGS1_47318
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47318
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47318
clear_prints 
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_KD' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35731
280@ = 8

:DRUGS1_47318
if 
  280@ == 8
goto_if_false @DRUGS1_47437
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47437
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47437
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47387
stop_char_facial_talk $big_smoke

:DRUGS1_47387
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_KE' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 35732
280@ = 9

:DRUGS1_47437
if 
  280@ == 9
goto_if_false @DRUGS1_47534
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47534
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47534
clear_prints 
play_mission_audio MissionAudioSlot.Slot1
print_now 'SMO4_KF' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35733
TIMERA = 0
280@ = 10

:DRUGS1_47534
if 
  280@ == 10
goto_if_false @DRUGS1_47738
if 
  not is_car_dead 161@
goto_if_false @DRUGS1_47738
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47738
if 
  TIMERA > 3000
goto_if_false @DRUGS1_47738
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_47738
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47738
stop_char_facial_talk $scplayer
set_car_straight_line_distance 161@ {distance} 200
task_car_drive_to_coord $big_smoke {vehicle} 161@ {x} 2804.5 {y} -1538.95 {z} 10.38 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMO4_KG' {time} 2500 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47724
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS1_47724
TIMERA = 0
280@ = 11

:DRUGS1_47738
if 
  280@ == 11
goto_if_false @DRUGS1_47857
if 
  TIMERA > 2000
goto_if_false @DRUGS1_47857
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS1_47857
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_47811
stop_char_facial_talk $big_smoke

:DRUGS1_47811
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_car 161@
delete_char $big_smoke
clear_onscreen_counter $bikehealth_s4
clear_prints 
goto @DRUGS1_52043
280@ = 12

:DRUGS1_47857
if 
  281@ == 1
goto_if_false @DRUGS1_47984
if 
  has_object_of_type_been_smashed 2631.8521 {y} -1482.75 {z} 18.109 {radius} 10.0 {modelId} #STORM_DRAIN_COVER
goto_if_false @DRUGS1_47984
if 
  has_object_been_damaged_by_weapon 152@ {weaponType} WeaponType.MicroUzi
goto_if_false @DRUGS1_47945
clear_prints 
281@ = 2
goto @DRUGS1_47984

:DRUGS1_47945
$bikehealth_s4 = get_car_health 161@
$bikehealth_s4 -= 100
set_car_health 161@ {health} $bikehealth_s4
$bikehealth_s4 /= 10
clear_prints 
281@ = 3

:DRUGS1_47984
if 
  280@ > 0
goto_if_false @DRUGS1_48651
if 
  4 > 280@
goto_if_false @DRUGS1_48651
if 
  282@ == 0
goto_if_false @DRUGS1_48087
if 
  283@ == 0
goto_if_false @DRUGS1_48087
set_lvar_int_to_constant 239@ = 35713
set_lvar_text_label 240@s = 'SMO4_JE'
gosub @DRUGS1_51600

:DRUGS1_48087
if 
  282@ == 1
goto_if_false @DRUGS1_48154
if 
  283@ == 0
goto_if_false @DRUGS1_48154
set_lvar_int_to_constant 239@ = 35714
set_lvar_text_label 240@s = 'SMO4_JF'
gosub @DRUGS1_51600

:DRUGS1_48154
if 
  282@ == 2
goto_if_false @DRUGS1_48221
if 
  283@ == 0
goto_if_false @DRUGS1_48221
set_lvar_int_to_constant 239@ = 35715
set_lvar_text_label 240@s = 'SMO4_JG'
gosub @DRUGS1_51600

:DRUGS1_48221
if 
  282@ == 3
goto_if_false @DRUGS1_48362
if 
  283@ == 0
goto_if_false @DRUGS1_48362
if 
  281@ == 2
goto_if_false @DRUGS1_48313
set_lvar_int_to_constant 239@ = 35716
set_lvar_text_label 240@s = 'SMO4_JH'
gosub @DRUGS1_51600
goto @DRUGS1_48362

:DRUGS1_48313
if 
  281@ == 3
goto_if_false @DRUGS1_48362
set_lvar_int_to_constant 239@ = 35717
set_lvar_text_label 240@s = 'SMO4_JJ'
gosub @DRUGS1_51600

:DRUGS1_48362
if 
  285@ == 0
goto_if_false @DRUGS1_48425
if 
  locate_car_2d 161@ {x} 2647.3101 {y} -1457.67 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS1_48425
285@ = 1

:DRUGS1_48425
if 
  282@ == 4
goto_if_false @DRUGS1_48510
if 
  283@ == 0
goto_if_false @DRUGS1_48510
if 
  285@ == 1
goto_if_false @DRUGS1_48510
set_lvar_int_to_constant 239@ = 35718
set_lvar_text_label 240@s = 'SMO4_JK'
gosub @DRUGS1_51600

:DRUGS1_48510
if 
  282@ == 5
goto_if_false @DRUGS1_48577
if 
  283@ == 0
goto_if_false @DRUGS1_48577
set_lvar_int_to_constant 239@ = 35719
set_lvar_text_label 240@s = 'SMO4_JL'
gosub @DRUGS1_51600

:DRUGS1_48577
if 
  282@ == 6
goto_if_false @DRUGS1_48644
if 
  283@ == 0
goto_if_false @DRUGS1_48644
set_lvar_int_to_constant 239@ = 35723
set_lvar_text_label 240@s = 'SMO4_JP'
gosub @DRUGS1_51600

:DRUGS1_48644
gosub @DRUGS1_51642

:DRUGS1_48651
if 
  258@ == 1
goto_if_false @DRUGS1_48716
if 
  not is_car_dead 168@
goto_if_false @DRUGS1_48716
if 
  has_car_been_damaged_by_char 168@ {handle} $scplayer
goto_if_false @DRUGS1_48716
explode_car 168@
258@ = 2

:DRUGS1_48716
if 
  259@ == 1
goto_if_false @DRUGS1_48781
if 
  not is_car_dead 169@
goto_if_false @DRUGS1_48781
if 
  has_car_been_damaged_by_char 169@ {handle} $scplayer
goto_if_false @DRUGS1_48781
explode_car 169@
259@ = 2

:DRUGS1_48781
if 
  247@ == 1
goto_if_false @DRUGS1_49029
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_49029
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_48838
goto @DRUGS1_49029

:DRUGS1_48838
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_48987
if 
  is_char_in_car 43@ {vehicle} 189@
goto_if_false @DRUGS1_48980
205@ = get_driver_of_car 189@
if 
  205@ == -1
goto_if_false @DRUGS1_48980
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 189@
task_drive_by 43@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
247@ = 2

:DRUGS1_48980
goto @DRUGS1_49029

:DRUGS1_48987
set_car_forward_speed 189@ {forwardSpeed} 18.0
stop_playback_recorded_car 189@
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003
247@ = 2

:DRUGS1_49029
if 
  247@ == 2
goto_if_false @DRUGS1_49121
if 
  is_char_dead 43@
goto_if_false @DRUGS1_49121
stop_playback_recorded_car 189@
if 
  not is_car_dead 189@
goto_if_false @DRUGS1_49114
set_car_forward_speed 189@ {forwardSpeed} 18.0
set_car_rotation_velocity 189@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_49114
247@ = 3

:DRUGS1_49121
if 
  260@ == 1
goto_if_false @DRUGS1_49208
if 
  is_char_dead 42@
goto_if_false @DRUGS1_49208
if or
  is_char_dead 43@
  is_car_dead 189@
goto_if_false @DRUGS1_49208
stop_playback_recorded_car 189@
remove_blip 214@
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
260@ = 2

:DRUGS1_49208
if 
  248@ == 1
goto_if_false @DRUGS1_49456
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_49456
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_49265
goto @DRUGS1_49456

:DRUGS1_49265
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_49414
if 
  is_char_in_car 45@ {vehicle} 194@
goto_if_false @DRUGS1_49407
205@ = get_driver_of_car 194@
if 
  205@ == -1
goto_if_false @DRUGS1_49407
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 194@
task_drive_by 45@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
248@ = 2

:DRUGS1_49407
goto @DRUGS1_49456

:DRUGS1_49414
set_car_forward_speed 194@ {forwardSpeed} 18.0
stop_playback_recorded_car 194@
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003
248@ = 2

:DRUGS1_49456
if 
  248@ == 2
goto_if_false @DRUGS1_49548
if 
  is_char_dead 45@
goto_if_false @DRUGS1_49548
stop_playback_recorded_car 194@
if 
  not is_car_dead 194@
goto_if_false @DRUGS1_49541
set_car_forward_speed 194@ {forwardSpeed} 18.0
set_car_rotation_velocity 194@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_49541
248@ = 3

:DRUGS1_49548
if 
  261@ == 1
goto_if_false @DRUGS1_49635
if 
  is_char_dead 44@
goto_if_false @DRUGS1_49635
if or
  is_char_dead 45@
  is_car_dead 194@
goto_if_false @DRUGS1_49635
stop_playback_recorded_car 194@
remove_blip 215@
mark_car_as_no_longer_needed 194@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
261@ = 2

:DRUGS1_49635
if 
  249@ == 1
goto_if_false @DRUGS1_49883
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_49883
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_49692
goto @DRUGS1_49883

:DRUGS1_49692
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_49841
if 
  is_char_in_car 47@ {vehicle} 195@
goto_if_false @DRUGS1_49834
205@ = get_driver_of_car 195@
if 
  205@ == -1
goto_if_false @DRUGS1_49834
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 47@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 47@ {vehicle} 195@
task_drive_by 47@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
249@ = 2

:DRUGS1_49834
goto @DRUGS1_49883

:DRUGS1_49841
set_car_forward_speed 195@ {forwardSpeed} 18.0
stop_playback_recorded_car 195@
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003
249@ = 2

:DRUGS1_49883
if 
  249@ == 2
goto_if_false @DRUGS1_49975
if 
  is_char_dead 47@
goto_if_false @DRUGS1_49975
stop_playback_recorded_car 195@
if 
  not is_car_dead 195@
goto_if_false @DRUGS1_49968
set_car_forward_speed 195@ {forwardSpeed} 18.0
set_car_rotation_velocity 195@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_49968
249@ = 3

:DRUGS1_49975
if 
  262@ == 1
goto_if_false @DRUGS1_50062
if 
  is_char_dead 46@
goto_if_false @DRUGS1_50062
if or
  is_char_dead 47@
  is_car_dead 195@
goto_if_false @DRUGS1_50062
stop_playback_recorded_car 195@
remove_blip 216@
mark_car_as_no_longer_needed 195@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
262@ = 2

:DRUGS1_50062
if 
  250@ == 1
goto_if_false @DRUGS1_50310
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_50310
if 
  not is_char_dead 56@
goto_if_false @DRUGS1_50119
goto @DRUGS1_50310

:DRUGS1_50119
if 
  not is_char_dead 57@
goto_if_false @DRUGS1_50268
if 
  is_char_in_car 57@ {vehicle} 196@
goto_if_false @DRUGS1_50261
205@ = get_driver_of_car 196@
if 
  205@ == -1
goto_if_false @DRUGS1_50261
$player_x, $player_y, $player_z = get_car_coordinates 161@
warp_char_from_car_to_coord 57@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 57@ {vehicle} 196@
task_drive_by 57@ {targetChar} -1 {targetVehicle} 161@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
250@ = 2

:DRUGS1_50261
goto @DRUGS1_50310

:DRUGS1_50268
set_car_forward_speed 196@ {forwardSpeed} 18.0
stop_playback_recorded_car 196@
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003
250@ = 2

:DRUGS1_50310
if 
  250@ == 2
goto_if_false @DRUGS1_50402
if 
  is_char_dead 57@
goto_if_false @DRUGS1_50402
stop_playback_recorded_car 196@
if 
  not is_car_dead 196@
goto_if_false @DRUGS1_50395
set_car_forward_speed 196@ {forwardSpeed} 18.0
set_car_rotation_velocity 196@ {x} 3.5 {y} 7.3999 {z} 8.1003

:DRUGS1_50395
250@ = 3

:DRUGS1_50402
if 
  263@ == 1
goto_if_false @DRUGS1_50489
if 
  is_char_dead 56@
goto_if_false @DRUGS1_50489
if or
  is_char_dead 57@
  is_car_dead 196@
goto_if_false @DRUGS1_50489
stop_playback_recorded_car 196@
remove_blip 217@
mark_car_as_no_longer_needed 196@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
263@ = 2

:DRUGS1_50489
goto @DRUGS1_1348

:DRUGS1_50496
switch_start 151@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_50748 {caseNum1} 0 {caseLabel1} @DRUGS1_50559 {caseNum2} 1 {caseLabel2} @DRUGS1_50590 {caseNum3} 2 {caseLabel3} @DRUGS1_50669 {caseNum4} -1 {caseLabel4} @DRUGS1_50748 {caseNum5} -1 {caseLabel5} @DRUGS1_50748 {caseNum6} -1 {caseLabel6} @DRUGS1_50748 {caseNum7} -1 {caseLabel7} @DRUGS1_50748

:DRUGS1_50559
set_time_scale 0.8
158@ = 0.8
151@ += 1
goto @DRUGS1_50748

:DRUGS1_50590
if 
  TIMERB > 3200
goto_if_false @DRUGS1_50662
sub_timed_val_from_float_lvar 158@ -=@ 0.05
if 
  0.3 > 158@
goto_if_false @DRUGS1_50657
158@ = 0.3
151@ += 1

:DRUGS1_50657
set_time_scale 158@

:DRUGS1_50662
goto @DRUGS1_50748

:DRUGS1_50669
if 
  TIMERB > 4000
goto_if_false @DRUGS1_50741
add_timed_val_to_float_lvar 158@ +=@ 0.05
if 
  158@ > 1.0
goto_if_false @DRUGS1_50736
158@ = 1.0
151@ += 1

:DRUGS1_50736
set_time_scale 158@

:DRUGS1_50741
goto @DRUGS1_50748

:DRUGS1_50748
return 

:DRUGS1_50750
switch_start 159@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_51223 {caseNum1} 0 {caseLabel1} @DRUGS1_50813 {caseNum2} 1 {caseLabel2} @DRUGS1_50983 {caseNum3} 2 {caseLabel3} @DRUGS1_51108 {caseNum4} -1 {caseLabel4} @DRUGS1_51223 {caseNum5} -1 {caseLabel5} @DRUGS1_51223 {caseNum6} -1 {caseLabel6} @DRUGS1_51223 {caseNum7} -1 {caseLabel7} @DRUGS1_51223

:DRUGS1_50813
133@, 134@, 135@ = get_car_coordinates 161@
130@, 131@, 132@ = get_offset_from_car_in_world_coords 161@ {xOffset} 1.0 {yOffset} -2.5 {zOffset} 0.0
130@ = 2563.28
131@ = -1737.328
132@ = 1.1412
133@ = 2562.6499
134@ = -1734.725
135@ = 1.1991
136@ = 0.001
137@ = 0.0
139@ = 0.03
140@ = 0.1
148@ = 0.47
141@ = 0.003
159@ += 1

:DRUGS1_50983
if 
  2900 > TIMERB
goto_if_false @DRUGS1_51091
add_timed_float_lvar_to_float_lvar 139@ +=@ 136@
add_timed_float_lvar_to_float_lvar 137@ +=@ 137@
add_timed_float_lvar_to_float_lvar 140@ +=@ 137@
if 
  is_float_lvar_greater_than_float_lvar 140@ > 148@
goto_if_false @DRUGS1_51053
set_lvar_float_to_lvar_float 140@ = 148@

:DRUGS1_51053
add_timed_float_lvar_to_float_lvar 130@ +=@ 139@
add_timed_float_lvar_to_float_lvar 131@ +=@ 140@
add_timed_float_lvar_to_float_lvar 132@ +=@ 141@
goto @DRUGS1_51223
goto @DRUGS1_51108

:DRUGS1_51091
136@ = -0.01
159@ += 1

:DRUGS1_51108
if 
  4000 > TIMERB
goto_if_false @DRUGS1_51216
add_timed_float_lvar_to_float_lvar 139@ +=@ 136@
add_timed_float_lvar_to_float_lvar 137@ +=@ 137@
add_timed_float_lvar_to_float_lvar 140@ +=@ 137@
if 
  is_float_lvar_greater_than_float_lvar 140@ > 148@
goto_if_false @DRUGS1_51178
set_lvar_float_to_lvar_float 140@ = 148@

:DRUGS1_51178
add_timed_float_lvar_to_float_lvar 130@ +=@ 139@
add_timed_float_lvar_to_float_lvar 131@ +=@ 140@
add_timed_float_lvar_to_float_lvar 132@ +=@ 141@
goto @DRUGS1_51223
goto @DRUGS1_51223

:DRUGS1_51216
159@ += 1

:DRUGS1_51223
return 

:DRUGS1_51225
switch_start 160@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DRUGS1_51598 {caseNum1} 0 {caseLabel1} @DRUGS1_51288 {caseNum2} 1 {caseLabel2} @DRUGS1_51365 {caseNum3} 2 {caseLabel3} @DRUGS1_51464 {caseNum4} -1 {caseLabel4} @DRUGS1_51598 {caseNum5} -1 {caseLabel5} @DRUGS1_51598 {caseNum6} -1 {caseLabel6} @DRUGS1_51598 {caseNum7} -1 {caseLabel7} @DRUGS1_51598

:DRUGS1_51288
143@ = 0.007
144@ = 0.012
145@ = 0.045
146@ = 0.06
149@ = 0.32
147@ = 0.005
150@ = 0.1
160@ += 1

:DRUGS1_51365
if 
  2800 > TIMERB
goto_if_false @DRUGS1_51457
add_timed_float_lvar_to_float_lvar 146@ +=@ 143@
if 
  is_float_lvar_greater_than_float_lvar 146@ > 149@
goto_if_false @DRUGS1_51419
set_lvar_float_to_lvar_float 146@ = 149@

:DRUGS1_51419
add_timed_float_lvar_to_float_lvar 133@ +=@ 145@
add_timed_float_lvar_to_float_lvar 134@ +=@ 146@
add_timed_float_lvar_to_float_lvar 135@ +=@ 147@
goto @DRUGS1_51598
goto @DRUGS1_51464

:DRUGS1_51457
160@ += 1

:DRUGS1_51464
if 
  3600 > TIMERB
goto_if_false @DRUGS1_51584
add_timed_float_lvar_to_float_lvar 146@ +=@ 143@
if 
  is_float_lvar_greater_than_float_lvar 146@ > 149@
goto_if_false @DRUGS1_51518
set_lvar_float_to_lvar_float 146@ = 149@

:DRUGS1_51518
add_timed_float_lvar_to_float_lvar 147@ +=@ 144@
if 
  is_float_lvar_greater_than_float_lvar 147@ > 150@
goto_if_false @DRUGS1_51553
set_lvar_float_to_lvar_float 147@ = 150@

:DRUGS1_51553
add_timed_float_lvar_to_float_lvar 133@ +=@ 145@
add_timed_float_lvar_to_float_lvar 134@ +=@ 146@
add_timed_float_lvar_to_float_lvar 135@ +=@ 147@
goto @DRUGS1_51591

:DRUGS1_51584
160@ += 1

:DRUGS1_51591
goto @DRUGS1_51598

:DRUGS1_51598
return 

:DRUGS1_51600
if 
  283@ == 0
goto_if_false @DRUGS1_51640
load_mission_audio MissionAudioSlot.Slot1 {audioId} 239@
set_lvar_text_label 237@s = 240@s
283@ = 1

:DRUGS1_51640
return 

:DRUGS1_51642
if 
  283@ == 1
goto_if_false @DRUGS1_51696
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS1_51696
print_now 237@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
283@ = 2

:DRUGS1_51696
if 
  283@ == 2
goto_if_false @DRUGS1_51749
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS1_51749
282@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
283@ = 0

:DRUGS1_51749
return 

:DRUGS1_51751
78@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 81@ {y} 82@ {z} 83@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 78@
perform_sequence_task 79@ {sequence} 78@
clear_sequence_task 78@
return 

:DRUGS1_51806
65@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 81@ {y} 82@ {z} 83@ {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 84@ {y} 85@ {z} 86@ {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 65@
perform_sequence_task 79@ {sequence} 65@
clear_sequence_task 65@
return 

:DRUGS1_51894
66@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 81@ {y} 82@ {z} 83@ {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 66@
perform_sequence_task 79@ {sequence} 66@
clear_sequence_task 66@
return 

:DRUGS1_51943
67@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 67@
perform_sequence_task 79@ {sequence} 67@
clear_sequence_task 67@
return 

:DRUGS1_51987
68@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 80@
close_sequence_task 68@
perform_sequence_task 79@ {sequence} 68@
clear_sequence_task 68@
return 

:DRUGS1_52025
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRUGS1_52043
$flag_smoke_mission_counter += 1
remove_blip $smoke_contact_blip
register_mission_passed 'SMOKE_4'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 10
clear_wanted_level $player1
return 

:DRUGS1_52103
$onmission = 0
switch_roads_on 1694.12 {leftBottomY} -1604.33 {leftBottomZ} 5.0 {rightTopX} 1805.9399 {rightTopY} -1593.12 {rightTopZ} 15.0
remove_char_elegantly $big_smoke
unload_special_character 1
disable_all_entry_exits False
remove_blip 87@
remove_blip 88@
remove_blip 89@
remove_blip 209@
remove_blip 210@
remove_blip 211@
remove_blip 212@
remove_blip 213@
remove_blip 214@
remove_blip 215@
remove_blip 216@
remove_blip 217@
remove_blip 218@
remove_blip 219@
remove_blip 220@
remove_blip 229@
remove_blip 223@
remove_blip 224@
remove_blip 225@
remove_blip 226@
remove_blip 227@
remove_blip 228@
remove_blip 229@
remove_blip 230@
remove_blip 231@
remove_blip 232@
remove_blip 233@
remove_blip 234@
remove_blip 235@
remove_blip 226@
remove_blip 227@
remove_blip 236@
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 112
mark_model_as_no_longer_needed 581
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 353
remove_animation "JST_BUISNESS"
mark_model_as_no_longer_needed 560
mark_model_as_no_longer_needed #KMB_SKIP
mark_model_as_no_longer_needed 516
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 443
mark_model_as_no_longer_needed #STORM_DRAIN_COVER
mark_model_as_no_longer_needed #BARREL4
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_wanted_multiplier 1.0
set_max_wanted_level 4
clear_onscreen_counter $smokehealth_s4
clear_onscreen_counter $bikehealth_s4
if 
  is_player_playing $player1
goto_if_false @DRUGS1_52497
shut_char_up $scplayer {state} False
set_player_enter_car_button $player1 {enabled} True
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} False
shut_char_up_for_scripted_speech $scplayer {state} False

:DRUGS1_52497
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS1_52520
set_char_can_be_knocked_off_bike $big_smoke {stayOnBike} False

:DRUGS1_52520
release_weather 
detach_char_from_car $scplayer
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
switch_emergency_services True
$timer_mobile_start = get_game_timer 
mission_has_finished 
if 
  is_player_playing $player1
goto_if_false @DRUGS1_52905
if 
  not is_char_dead 42@
goto_if_false @DRUGS1_52593
task_kill_char_on_foot 42@ {target} $scplayer

:DRUGS1_52593
if 
  not is_char_dead 43@
goto_if_false @DRUGS1_52617
task_kill_char_on_foot 43@ {target} $scplayer

:DRUGS1_52617
if 
  not is_char_dead 44@
goto_if_false @DRUGS1_52641
task_kill_char_on_foot 44@ {target} $scplayer

:DRUGS1_52641
if 
  not is_char_dead 45@
goto_if_false @DRUGS1_52665
task_kill_char_on_foot 45@ {target} $scplayer

:DRUGS1_52665
if 
  not is_char_dead 46@
goto_if_false @DRUGS1_52689
task_kill_char_on_foot 46@ {target} $scplayer

:DRUGS1_52689
if 
  not is_char_dead 47@
goto_if_false @DRUGS1_52713
task_kill_char_on_foot 47@ {target} $scplayer

:DRUGS1_52713
if 
  not is_char_dead 48@
goto_if_false @DRUGS1_52737
task_kill_char_on_foot 48@ {target} $scplayer

:DRUGS1_52737
if 
  not is_char_dead 49@
goto_if_false @DRUGS1_52761
task_kill_char_on_foot 49@ {target} $scplayer

:DRUGS1_52761
if 
  not is_char_dead 50@
goto_if_false @DRUGS1_52785
task_kill_char_on_foot 50@ {target} $scplayer

:DRUGS1_52785
if 
  not is_char_dead 51@
goto_if_false @DRUGS1_52809
task_kill_char_on_foot 51@ {target} $scplayer

:DRUGS1_52809
if 
  not is_char_dead 52@
goto_if_false @DRUGS1_52833
task_kill_char_on_foot 52@ {target} $scplayer

:DRUGS1_52833
if 
  not is_char_dead 53@
goto_if_false @DRUGS1_52857
task_kill_char_on_foot 53@ {target} $scplayer

:DRUGS1_52857
if 
  not is_char_dead 54@
goto_if_false @DRUGS1_52881
task_kill_char_on_foot 54@ {target} $scplayer

:DRUGS1_52881
if 
  not is_char_dead 55@
goto_if_false @DRUGS1_52905
task_kill_char_on_foot 55@ {target} $scplayer

:DRUGS1_52905
return 

//-------------Mission 31---------------
// Originally: Life's a Beach

:MUSIC1
script_name 'MUSIC1'
gosub @MUSIC1_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC1_38
gosub @MUSIC1_15556

:MUSIC1_38
gosub @MUSIC1_15629
terminate_this_script 

:MUSIC1_47
register_mission_given 
load_mission_text 'STRAP1'
$onmission = 1
wait 0
34@ = 526.84
35@ = -1885.1899
36@ = 2.4
set_lvar_float_to_lvar_float 39@ = 34@
39@ += 2.5
set_lvar_float_to_lvar_float 40@ = 35@
40@ += 3.5
41@ = 2.79
set_lvar_float_to_lvar_float 42@ = 34@
42@ -= 7.0
set_lvar_float_to_lvar_float 43@ = 35@
43@ -= 9.8
44@ = 2.06
set_lvar_float_to_lvar_float 48@ = 39@
48@ += 9.0
set_lvar_float_to_lvar_float 49@ = 40@
49@ += 4.0
set_lvar_float_to_lvar_float 50@ = 41@
51@ = 340.0
52@ = 1643.42
53@ = -1524.6899
54@ = 12.61
set_lvar_float_to_lvar_float 56@ = 48@
56@ -= 1.08
set_lvar_float_to_lvar_float 57@ = 49@
57@ -= 3.05
set_lvar_float_to_lvar_float 58@ = 56@
58@ -= 0.54
set_lvar_float_to_lvar_float 59@ = 57@
59@ -= 1.53
60@ = 3.14
61@ = 21
set_lvar_float_to_lvar_float 83@ = 39@
83@ += 10.0
set_lvar_float_to_lvar_float 104@ = 40@
104@ -= 6.0
125@ = 300.0
set_lvar_float_to_lvar_float 84@ = 83@
84@ += 3.0
set_lvar_float_to_lvar_float 105@ = 104@
set_lvar_float_to_lvar_float 126@ = 125@
126@ += 120.0
set_lvar_float_to_lvar_float 85@ = 83@
85@ += 3.0
set_lvar_float_to_lvar_float 106@ = 104@
106@ += 3.0
set_lvar_float_to_lvar_float 127@ = 125@
127@ += 240.0
set_lvar_float_to_lvar_float 86@ = 34@
86@ += 17.5
set_lvar_float_to_lvar_float 107@ = 35@
107@ += 3.0
128@ = 270.0
set_lvar_float_to_lvar_float 87@ = 86@
87@ += 1.0
set_lvar_float_to_lvar_float 108@ = 107@
set_lvar_float_to_lvar_float 129@ = 128@
129@ -= 180.0
set_lvar_float_to_lvar_float 88@ = 39@
88@ -= 2.0
set_lvar_float_to_lvar_float 109@ = 40@
109@ -= 8.0
130@ = 315.0
set_lvar_float_to_lvar_float 89@ = 88@
89@ += 2.5
set_lvar_float_to_lvar_float 110@ = 109@
set_lvar_float_to_lvar_float 131@ = 130@
131@ += 90.0
set_lvar_float_to_lvar_float 90@ = 88@
90@ += 2.5
set_lvar_float_to_lvar_float 111@ = 109@
111@ += 2.5
set_lvar_float_to_lvar_float 132@ = 130@
132@ += 180.0
set_lvar_float_to_lvar_float 91@ = 88@
set_lvar_float_to_lvar_float 112@ = 109@
112@ += 2.5
set_lvar_float_to_lvar_float 133@ = 130@
133@ += 270.0
set_lvar_float_to_lvar_float 92@ = 34@
92@ += 12.0
set_lvar_float_to_lvar_float 113@ = 35@
113@ -= 9.5
134@ = 0.0
set_lvar_float_to_lvar_float 93@ = 92@
93@ -= 0.5
set_lvar_float_to_lvar_float 114@ = 113@
114@ += 1.5
set_lvar_float_to_lvar_float 135@ = 134@
135@ += 180.0
set_lvar_float_to_lvar_float 94@ = 42@
set_lvar_float_to_lvar_float 115@ = 43@
115@ += 5.0
136@ = 200.0
set_lvar_float_to_lvar_float 95@ = 42@
95@ += 3.0
set_lvar_float_to_lvar_float 116@ = 43@
116@ += 3.5
137@ = 170.0
set_lvar_float_to_lvar_float 96@ = 42@
96@ += 4.0
set_lvar_float_to_lvar_float 117@ = 43@
138@ = 0.0
set_lvar_float_to_lvar_float 97@ = 42@
97@ += 5.0
set_lvar_float_to_lvar_float 118@ = 43@
118@ += 2.0
139@ = 270.0
set_lvar_float_to_lvar_float 98@ = 39@
98@ += 1.0
set_lvar_float_to_lvar_float 119@ = 40@
119@ += 6.0
140@ = 270.0
set_lvar_float_to_lvar_float 99@ = 98@
99@ += 1.5
set_lvar_float_to_lvar_float 120@ = 119@
120@ += 1.5
set_lvar_float_to_lvar_float 141@ = 140@
141@ -= 90.0
set_lvar_float_to_lvar_float 100@ = 98@
100@ += 3.0
set_lvar_float_to_lvar_float 121@ = 119@
set_lvar_float_to_lvar_float 142@ = 140@
142@ -= 180.0
set_lvar_float_to_lvar_float 101@ = 98@
101@ += 1.5
set_lvar_float_to_lvar_float 122@ = 119@
122@ -= 1.5
set_lvar_float_to_lvar_float 143@ = 140@
143@ -= 270.0
set_lvar_float_to_lvar_float 102@ = 48@
102@ -= 3.0
set_lvar_float_to_lvar_float 123@ = 49@
123@ -= 1.0
144@ = 0.0
set_lvar_float_to_lvar_float 103@ = 102@
set_lvar_float_to_lvar_float 124@ = 123@
124@ += 1.0
set_lvar_float_to_lvar_float 145@ = 144@
145@ += 180.0
162@ = 20.0
set_lvar_float_to_lvar_float 163@ = 162@
163@ *= 4.0
146@ = 7
gosub @MUSIC1_13984
187@ = 0
188@ = 0
190@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
203@ = 0
204@ = 0
207@ = 0
208@ = 0
205@ = 0
206@ = 0
209@ = 0
267@ = 0
268@ = 0
269@ = 0
231@ = 0
170@ = 0

:MUSIC1_1557
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_1653
210@(170@,21i) = 0
232@(170@,21i) = 0
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_1639
253@(170@,7i) = 0
260@(170@,7i) = 0

:MUSIC1_1639
170@ += 1
goto @MUSIC1_1557

:MUSIC1_1653
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:MUSIC1_1668
if 
  get_fading_status 
goto_if_false @MUSIC1_1692
wait 0
goto @MUSIC1_1668

:MUSIC1_1692
clear_area 809.5818 {y} -1630.573 {z} 12.5469 {radius} 100.0 {clearParticles} False
load_scene 809.5818 {y} -1630.573 {z} 12.5469
make_player_gang_disappear 
load_cutscene 'STRAP1A'

:MUSIC1_1746
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC1_1770
wait 0
goto @MUSIC1_1746

:MUSIC1_1770
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC1_1779
if 
  not has_cutscene_finished 
goto_if_false @MUSIC1_1803
wait 0
goto @MUSIC1_1779

:MUSIC1_1803
do_fade 0 {direction} Fade.Out

:MUSIC1_1809
if 
  get_fading_status 
goto_if_false @MUSIC1_1833
wait 0
goto @MUSIC1_1809

:MUSIC1_1833
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
request_model 412
request_model 419
request_model 467
request_model 413
request_model 353
request_model 13
request_model 93
request_model 22
request_model 99
request_model 211
request_model 101
request_model 217
request_model 19
request_model 91
request_model 55
request_vehicle_mod #WHEEL_OR1
stream_script 35
load_all_models_now 

:MUSIC1_1922
if or
  not has_model_loaded 412
  not has_model_loaded 419
  not has_model_loaded 467
  not has_model_loaded 413
  not has_model_loaded 353
goto_if_false @MUSIC1_1969
wait 0
goto @MUSIC1_1922

:MUSIC1_1969
if 
  not has_model_loaded 13
goto_if_false @MUSIC1_1995
wait 0
goto @MUSIC1_1969

:MUSIC1_1995
if or
  not has_model_loaded 93
  not has_model_loaded 22
  not has_model_loaded 99
  not has_model_loaded 211
  not has_model_loaded 101
  not has_model_loaded 217
goto_if_false @MUSIC1_2043
wait 0
goto @MUSIC1_1995

:MUSIC1_2043
if or
  not has_model_loaded 19
  not has_model_loaded 91
  not has_model_loaded 55
goto_if_false @MUSIC1_2077
wait 0
goto @MUSIC1_2043

:MUSIC1_2077
if or
  not has_vehicle_mod_loaded #WHEEL_OR1
  not has_streamed_script_loaded 35
goto_if_false @MUSIC1_2108
wait 0
goto @MUSIC1_2077

:MUSIC1_2108
change_garage_type 'MUL_LAN' {type} GarageType.ForScriptToOpenAndClose
switch_ped_roads_off 502.15 {leftBottomY} -1913.39 {leftBottomZ} -5.0 {rightTopX} 558.86 {rightTopY} -1838.87 {rightTopZ} 10.0
load_scene 809.5818 {y} -1630.573 {z} 12.5469
force_weather_now WeatherType.SunnyLa
set_char_coordinates $scplayer {x} 809.5818 {y} -1630.573 {z} 12.5469
set_char_heading $scplayer {heading} 176.0
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@
print_now 'MUS1_5' {time} 10000 {flag} 0
if 
  192@ == 1
goto_if_false @MUSIC1_2489
47@ = create_car 413 {x} 0.0 {y} 0.0 {z} -100.0
272@ = add_blip_for_car 47@
55@ = create_char PedType.Mission1 {modelId} 13 {x} 0.0 {y} 0.0 {z} -100.0
181@ = open_sequence_task 
task_stand_still -1 {time} -2
close_sequence_task 181@
170@ = 0

:MUSIC1_2361
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_2422
create_char PedType.Mission1 {modelId} 13 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 62@(170@,21i)
170@ += 1
goto @MUSIC1_2361

:MUSIC1_2422
170@ = 0

:MUSIC1_2429
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_2489
create_car 412 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 147@(170@,7i)
170@ += 1
goto @MUSIC1_2429

:MUSIC1_2489
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MUSIC1_2515
goto @MUSIC1_15574

:MUSIC1_2515
force_weather_now WeatherType.SunnyLa
if 
  193@ <> 1
goto_if_false @MUSIC1_2925
if 
  locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @MUSIC1_2925
clear_area 34@ {y} 35@ {z} 36@ {radius} 100.0 {clearParticles} False
gosub @MUSIC1_6819
set_lvar_float_to_lvar_float 274@ = 39@
274@ += 0.15
set_lvar_float_to_lvar_float 275@ = 40@
275@ += 0.15
45@ = create_object_no_offset #DYN_WOODPILE2 {x} 274@ {y} 275@ {z} 2.6
set_lvar_float_to_lvar_float 274@ = 42@
274@ += 0.15
set_lvar_float_to_lvar_float 275@ = 43@
275@ += 0.15
46@ = create_object_no_offset #DYN_WOODPILE2 {x} 274@ {y} 275@ {z} 2.31
set_object_scale 45@ {scale} 0.5
set_object_scale 46@ {scale} 0.5
set_object_collision_damage_effect 45@ {state} False
set_object_collision_damage_effect 46@ {state} False
switch_audio_zone 'BEACH' {state} True
wait 1500
gosub @MUSIC1_8085
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_2788
freeze_char_position 55@ {state} True

:MUSIC1_2788
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_2811
freeze_car_position 47@ {state} True

:MUSIC1_2811
if 
  does_object_exist 45@
goto_if_false @MUSIC1_2834
freeze_object_position 45@ {state} True

:MUSIC1_2834
if 
  does_object_exist 46@
goto_if_false @MUSIC1_2857
freeze_object_position 46@ {state} True

:MUSIC1_2857
37@ = create_fx_system "FIRE" {x} 39@ {y} 40@ {z} 41@ {ignoreBoundingChecks} True
38@ = create_fx_system "FIRE" {x} 42@ {y} 43@ {z} 44@ {ignoreBoundingChecks} True
play_fx_system 37@
play_fx_system 38@
270@ = 1
193@ = 1

:MUSIC1_2925
if 
  193@ == 1
goto_if_false @MUSIC1_6812
175@, 176@ = get_time_of_day 
if and
  175@ >= 6
  22 > 175@
goto_if_false @MUSIC1_3018
if 
  270@ == 1
goto_if_false @MUSIC1_3011
stop_fx_system 37@
stop_fx_system 38@
270@ = 0

:MUSIC1_3011
goto @MUSIC1_3053

:MUSIC1_3018
if 
  270@ == 0
goto_if_false @MUSIC1_3053
play_fx_system 37@
play_fx_system 38@
270@ = 1

:MUSIC1_3053
if and
  194@ <> 1
  locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @MUSIC1_3108
gosub @MUSIC1_14856
194@ = 1

:MUSIC1_3108
if 
  203@ == 0
goto_if_false @MUSIC1_6025
if and
  195@ <> 1
  197@ <> 1
  199@ <> 1
goto_if_false @MUSIC1_3314
if and
  not is_char_dead 55@
  locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @MUSIC1_3314
remove_blip 271@
clear_char_tasks 55@
set_char_heading 55@ {heading} 110.0
gosub @MUSIC1_12841
print_help 'TALK_1'
195@ = 1
196@ = 0
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 58@ {y} 59@ {z} 2.3
set_char_heading $scplayer {heading} 290.0
set_camera_position_unfixed 0.031 {yOffset} -2.152
wait 1000
set_player_control $player1 {state} True

:MUSIC1_3314
if and
  195@ == 1
  197@ <> 1
goto_if_false @MUSIC1_4324
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_4324
if 
  is_conversation_at_node 55@ {speech} 287@s
goto_if_false @MUSIC1_4018
set_player_control $player1 {state} False
if 
  not has_streamed_script_loaded 35
goto_if_false @MUSIC1_3400
stream_script 35

:MUSIC1_3400
do_fade 1000 {direction} Fade.Out

:MUSIC1_3407
if or
  get_fading_status 
  not has_streamed_script_loaded 35
goto_if_false @MUSIC1_3435
wait 0
goto @MUSIC1_3407

:MUSIC1_3435
clear_help 
if 
  is_char_in_any_car $scplayer
goto_if_false @MUSIC1_3480
warp_char_from_car_to_coord $scplayer {x} 533.81 {y} -1891.64 {z} -100.0
goto @MUSIC1_3500

:MUSIC1_3480
set_char_coordinates $scplayer {x} 533.81 {y} -1891.64 {z} -100.0

:MUSIC1_3500
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
clear_area 533.81 {y} -1891.64 {z} 2.27 {radius} 10.0 {clearParticles} False
170@ = 0

:MUSIC1_3538
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_3668
if 
  not is_car_dead 147@(170@,7i)
goto_if_false @MUSIC1_3645
if 
  locate_car_3d 147@(170@,7i) {x} 533.81 {y} -1891.64 {z} 2.27 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @MUSIC1_3638
delete_car 147@(170@,7i)

:MUSIC1_3638
goto @MUSIC1_3654

:MUSIC1_3645
delete_car 147@(170@,7i)

:MUSIC1_3654
170@ += 1
goto @MUSIC1_3538

:MUSIC1_3668
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_3774
clear_conversation_for_char 55@
clear_char_tasks_immediately 55@
set_char_heading 55@ {heading} 110.0
182@ = open_sequence_task 
task_play_anim -1 {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 182@ {state} True
close_sequence_task 182@
perform_sequence_task 55@ {sequence} 182@
clear_sequence_task 182@

:MUSIC1_3774
switch_audio_zone 'BEACH' {state} False
if 
  not is_char_dead 65@
goto_if_false @MUSIC1_3808
clear_char_tasks_immediately 65@

:MUSIC1_3808
if 
  not is_char_dead 66@
goto_if_false @MUSIC1_3829
clear_char_tasks_immediately 66@

:MUSIC1_3829
clear_prints 
print_now 'MUS1_4' {time} 10000 {flag} 0
170@ = 0

:MUSIC1_3854
if 
  5 > 170@
goto_if_false @MUSIC1_3970
$fDanceCameraX(170@,5f) = 531.18
$fDanceCameraY(170@,5f) = -1893.8
$fDanceCameraZ(170@,5f) = 3.45
$fDanceTargetX(170@,5f) = 533.94
$fDanceTargetY(170@,5f) = -1891.8199
$fDanceTargetZ(170@,5f) = 3.44
170@ += 1
goto @MUSIC1_3854

:MUSIC1_3970
set_global_var_bit_const $iDanceReport {bitIndex} 31
start_new_streamed_script 35 {args} 533.81 -1891.64 -100.0 51@ 1 -1 
197@ = 1
goto @MUSIC1_4324

:MUSIC1_4018
if 
  196@ <> 1
goto_if_false @MUSIC1_4215
if or
  is_conversation_at_node 55@ {speech} 285@s
  is_conversation_at_node 55@ {speech} 289@s
goto_if_false @MUSIC1_4077
196@ = 1
goto @MUSIC1_4208

:MUSIC1_4077
if 
  locate_char_any_means_char_2d $scplayer {target} 55@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC1_4122
TIMERB = 0
goto @MUSIC1_4208

:MUSIC1_4122
if 
  TIMERB > 3000
goto_if_false @MUSIC1_4208
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
195@ = 0
196@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_4208
goto @MUSIC1_4324

:MUSIC1_4215
if 
  not locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MUSIC1_4324
196@ = 0
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
195@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_4324
if and
  197@ == 1
  199@ <> 1
goto_if_false @MUSIC1_4626
if and
  not is_global_var_bit_set_const $iDanceReport {bitIndex} 31
  198@ <> 1
goto_if_false @MUSIC1_4510
set_player_control $player1 {state} True
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_4402
clear_char_tasks_immediately 55@

:MUSIC1_4402
clear_prints 
if 
  $iDanceScore >= 2500
goto_if_false @MUSIC1_4482
switch_audio_zone 'BEACH' {state} True
gosub @MUSIC1_13655
print_help 'TALK_1'
199@ = 1
200@ = 1
196@ = 0
goto @MUSIC1_4510

:MUSIC1_4482
191@ = 1
gosub @MUSIC1_15131
TIMERA = 0
198@ = 1

:MUSIC1_4510
if 
  198@ == 1
goto_if_false @MUSIC1_4626
if and
  is_int_lvar_greater_than_int_lvar 189@ > 188@
  191@ == 1
goto_if_false @MUSIC1_4584
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_4577
gosub @MUSIC1_15302

:MUSIC1_4577
goto @MUSIC1_4626

:MUSIC1_4584
if 
  TIMERA > 1000
goto_if_false @MUSIC1_4626
print_now 'MUS1_8' {time} 5000 {flag} 0
goto @MUSIC1_15556

:MUSIC1_4626
if and
  199@ == 1
  201@ <> 1
goto_if_false @MUSIC1_5227
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_5227
if 
  200@ <> 1
goto_if_false @MUSIC1_4786
if 
  locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @MUSIC1_4779
remove_blip 271@
clear_char_tasks 55@
set_char_heading 55@ {heading} 110.0
gosub @MUSIC1_13655
print_help 'TALK_1'
200@ = 1
196@ = 0

:MUSIC1_4779
goto @MUSIC1_5227

:MUSIC1_4786
if or
  is_conversation_at_node 55@ {speech} 'VYES1'
  is_conversation_at_node 55@ {speech} 'VYES2'
goto_if_false @MUSIC1_4923
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_4916
clear_conversation_for_char 55@
clear_help 
set_next_desired_move_state MoveState.Walk
freeze_char_position 55@ {state} False
task_enter_car_as_passenger 55@ {vehicle} 47@ {time} -1 {seat} SeatId.BikeRear
272@ = add_blip_for_car 47@
set_blip_as_friendly 272@ {state} True
200@ = 0
201@ = 1
print 'MUS1_7' {time} 10000 {flag} 0

:MUSIC1_4916
goto @MUSIC1_5227

:MUSIC1_4923
if 
  196@ <> 1
goto_if_false @MUSIC1_5118
if 
  is_conversation_at_node 55@ {speech} 'VLATE'
goto_if_false @MUSIC1_4980
196@ = 1
goto @MUSIC1_5111

:MUSIC1_4980
if 
  locate_char_any_means_char_2d $scplayer {target} 55@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC1_5025
TIMERB = 0
goto @MUSIC1_5111

:MUSIC1_5025
if 
  TIMERB > 3000
goto_if_false @MUSIC1_5111
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
200@ = 0
196@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_5111
goto @MUSIC1_5227

:MUSIC1_5118
if 
  not locate_char_on_foot_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MUSIC1_5227
196@ = 0
clear_conversation_for_char 55@
clear_help 
set_char_coordinates 55@ {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
perform_sequence_task 55@ {sequence} 181@
200@ = 0
271@ = add_blip_for_coord 58@ {y} 59@ {z} 60@

:MUSIC1_5227
if and
  201@ == 1
  202@ <> 1
  not is_char_dead 55@
  not is_car_dead 47@
goto_if_false @MUSIC1_5330
if 
  is_char_in_car 55@ {vehicle} 47@
goto_if_false @MUSIC1_5330
lock_car_doors 47@ {lockStatus} CarLock.Unlocked
control_car_door 47@ {door} CarDoor.LeftRearDoor {state} CarDoorState.SwingingFree {angle} -1.0
control_car_door 47@ {door} CarDoor.RightRearDoor {state} CarDoorState.SwingingFree {angle} -1.0
set_car_can_be_visibly_damaged 47@ {state} True
202@ = 1

:MUSIC1_5330
if 
  268@ <> 1
goto_if_false @MUSIC1_5770
if and
  locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 162@ {yRadius} 162@ {drawSphere} False
  is_char_shooting $scplayer
goto_if_false @MUSIC1_5397
268@ = 1
goto @MUSIC1_5571

:MUSIC1_5397
if 
  is_char_dead 55@
goto_if_false @MUSIC1_5427
268@ = 1
goto @MUSIC1_5460

:MUSIC1_5427
if or
  has_char_been_damaged_by_char 55@ {handle} $scplayer
  is_char_responding_to_event 55@ {event} Event.GunAimedAt
goto_if_false @MUSIC1_5460
268@ = 1

:MUSIC1_5460
170@ = 0

:MUSIC1_5467
if and
  is_int_lvar_greater_than_int_lvar 61@ > 170@
  268@ <> 1
goto_if_false @MUSIC1_5571
if 
  is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_5527
268@ = 1
goto @MUSIC1_5557

:MUSIC1_5527
if 
  has_char_been_damaged_by_char 62@(170@,21i) {handle} $scplayer
goto_if_false @MUSIC1_5557
268@ = 1

:MUSIC1_5557
170@ += 1
goto @MUSIC1_5467

:MUSIC1_5571
if 
  268@ == 1
goto_if_false @MUSIC1_5738
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  202@ <> 1
goto_if_false @MUSIC1_5634
gosub @MUSIC1_10052
gosub @MUSIC1_10452
goto @MUSIC1_5718

:MUSIC1_5634
if 
  209@ <> 1
goto_if_false @MUSIC1_5666
gosub @MUSIC1_10726
209@ = 1

:MUSIC1_5666
if and
  not is_char_dead 55@
  231@ <> 1
goto_if_false @MUSIC1_5718
set_current_char_weapon 55@ {weaponType} WeaponType.Mp5
task_kill_char_on_foot 55@ {target} $scplayer
231@ = 1
set_char_keep_task 55@ {state} True

:MUSIC1_5718
switch_audio_zone 'BEACH' {state} False
goto @MUSIC1_5770

:MUSIC1_5738
if or
  197@ <> 1
  199@ == 1
goto_if_false @MUSIC1_5770
gosub @MUSIC1_9958

:MUSIC1_5770
if and
  202@ == 1
  268@ == 1
goto_if_false @MUSIC1_5827
if and
  209@ == 1
  269@ <> 1
goto_if_false @MUSIC1_5827
gosub @MUSIC1_11354

:MUSIC1_5827
if and
  207@ <> 1
  not is_car_dead 47@
goto_if_false @MUSIC1_5927
if 
  is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_5927
remove_blip 272@
207@ = 1
208@ = 1
freeze_car_position 47@ {state} False
set_camera_behind_player 
print_now 'MUS1_19' {time} 7000 {flag} 0
273@ = add_blip_for_coord 52@ {y} 53@ {z} 54@

:MUSIC1_5927
if 
  207@ == 1
goto_if_false @MUSIC1_6025
gosub @MUSIC1_14690
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_6025
if 
  not locate_car_2d 47@ {x} 34@ {y} 35@ {xRadius} 162@ {yRadius} 162@ {drawSphere} False
goto_if_false @MUSIC1_6025
set_car_only_damaged_by_player 47@ {state} False
203@ = 1
switch_audio_zone 'BEACH' {state} False

:MUSIC1_6025
if 
  203@ == 1
goto_if_false @MUSIC1_6555
if and
  204@ <> 1
  not is_char_dead 55@
  not is_car_dead 47@
goto_if_false @MUSIC1_6115
177@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} 47@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 177@
perform_sequence_task 55@ {sequence} 177@
clear_sequence_task 177@
204@ = 1

:MUSIC1_6115
if and
  204@ == 1
  not is_char_dead 55@
  205@ <> 1
goto_if_false @MUSIC1_6228
178@ = get_script_task_status 55@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_6228
179@ = get_sequence_progress 55@
if 
  179@ >= 0
goto_if_false @MUSIC1_6228
191@ = 0
gosub @MUSIC1_15131
set_current_char_weapon 55@ {weaponType} WeaponType.Mp5
205@ = 1

:MUSIC1_6228
if and
  205@ == 1
  206@ <> 1
goto_if_false @MUSIC1_6336
if and
  is_int_lvar_greater_than_int_lvar 189@ > 188@
  191@ == 0
goto_if_false @MUSIC1_6329
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_6309
gosub @MUSIC1_15302
goto @MUSIC1_6322

:MUSIC1_6309
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
206@ = 1

:MUSIC1_6322
goto @MUSIC1_6336

:MUSIC1_6329
206@ = 1

:MUSIC1_6336
if 
  209@ <> 1
goto_if_false @MUSIC1_6368
gosub @MUSIC1_10726
209@ = 1

:MUSIC1_6368
if 
  269@ <> 1
goto_if_false @MUSIC1_6393
gosub @MUSIC1_11354

:MUSIC1_6393
if and
  209@ == 1
  267@ <> 1
goto_if_false @MUSIC1_6462
if 
  not locate_char_any_means_2d $scplayer {x} 34@ {y} 35@ {xRadius} 163@ {yRadius} 163@ {drawSphere} False
goto_if_false @MUSIC1_6462
gosub @MUSIC1_10228
267@ = 1

:MUSIC1_6462
if and
  209@ == 1
  not is_car_dead 47@
  269@ <> 1
goto_if_false @MUSIC1_6548
if and
  is_char_in_car $scplayer {vehicle} 47@
  locate_char_in_car_2d $scplayer {x} 52@ {y} 53@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @MUSIC1_6548
gosub @MUSIC1_11771
269@ = 1

:MUSIC1_6548
gosub @MUSIC1_14690

:MUSIC1_6555
if 
  202@ <> 1
goto_if_false @MUSIC1_6664
if 
  is_char_dead 55@
goto_if_false @MUSIC1_6621
clear_prints 
print_now 'MUS1_18' {time} 5000 {flag} 0
goto @MUSIC1_15556
goto @MUSIC1_6664

:MUSIC1_6621
if 
  268@ == 1
goto_if_false @MUSIC1_6664
clear_prints 
print_now 'MUS1_21' {time} 5000 {flag} 0
goto @MUSIC1_15556

:MUSIC1_6664
if 
  is_car_dead 47@
goto_if_false @MUSIC1_6712
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15556
goto @MUSIC1_6812

:MUSIC1_6712
if 
  207@ == 1
goto_if_false @MUSIC1_6812
if 
  is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_6812
if 
  locate_car_3d 47@ {x} 52@ {y} 53@ {z} 54@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @MUSIC1_6812
set_player_control $player1 {state} False
gosub @MUSIC1_11889
goto @MUSIC1_15574

:MUSIC1_6812
goto @MUSIC1_2489

:MUSIC1_6819
170@ = 0
164@ = -30.0

:MUSIC1_6836
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_7108
165@ = cos 164@
166@ = sin 164@
mult_float_lvar_by_float_lvar 165@ *= 162@
mult_float_lvar_by_float_lvar 166@ *= 162@
add_float_lvar_to_float_lvar 165@ += 34@
add_float_lvar_to_float_lvar 166@ += 35@
if or
  170@ == 0
  170@ == 3
  170@ == 6
goto_if_false @MUSIC1_6965
create_car 412 {x} 165@ {y} 166@ {z} -100.0 {var_handle} 147@(170@,7i)
goto @MUSIC1_7043

:MUSIC1_6965
if or
  170@ == 1
  170@ == 7
goto_if_false @MUSIC1_7020
create_car 467 {x} 165@ {y} 166@ {z} -100.0 {var_handle} 147@(170@,7i)
goto @MUSIC1_7043

:MUSIC1_7020
create_car 419 {x} 165@ {y} 166@ {z} -100.0 {var_handle} 147@(170@,7i)

:MUSIC1_7043
168@ = 90.0
add_float_lvar_to_float_lvar 168@ += 164@
set_car_heading 147@(170@,7i) {heading} 168@
lock_car_doors 147@(170@,7i) {lockStatus} CarLock.Locked
164@ += 37.0
170@ += 1
goto @MUSIC1_6836

:MUSIC1_7108
set_car_model_components 413 {component1} 0 {component2} 0
47@ = create_car 413 {x} 48@ {y} 49@ {z} 50@
276@ = add_vehicle_mod 47@ {modelId} #WHEEL_OR1
set_car_heading 47@ {heading} 51@
car_set_idle 47@
set_car_only_damaged_by_player 47@ {state} True
set_car_health 47@ {health} 5000
change_car_colour 47@ {color1} 4 {color2} 4
set_can_burst_car_tyres 47@ {state} False
set_car_traction 47@ {traction} 2.0
open_car_door 47@ {door} CarDoor.LeftRearDoor
open_car_door 47@ {door} CarDoor.RightRearDoor
lock_car_doors 47@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_can_be_visibly_damaged 47@ {state} False
wait 1000
55@ = create_char PedType.Mission1 {modelId} 13 {x} 56@ {y} 57@ {z} -100.0
set_char_heading 55@ {heading} 51@
set_char_only_damaged_by_player 55@ {state} True
give_weapon_to_char 55@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_current_char_weapon 55@ {weaponType} WeaponType.Unarmed
231@ = 0
180@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
add_char_decision_maker_event_response 180@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
set_char_decision_maker 55@ {handleOrTemplate} 180@
170@ = 0

:MUSIC1_7352
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_8025
if or
  170@ == 0
  170@ == 4
  170@ == 7
  170@ == 11
goto_if_false @MUSIC1_7449
create_char PedType.Mission1 {modelId} 22 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7449
if or
  170@ == 6
  170@ == 3
  170@ == 2
goto_if_false @MUSIC1_7520
create_char PedType.Mission1 {modelId} 101 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7520
if or
  170@ == 9
  170@ == 14
  170@ == 17
  170@ == 19
goto_if_false @MUSIC1_7599
create_char PedType.Mission1 {modelId} 211 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7599
if 
  170@ == 12
goto_if_false @MUSIC1_7656
create_char PedType.Mission1 {modelId} 99 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7656
if or
  170@ == 16
  170@ == 10
goto_if_false @MUSIC1_7720
create_char PedType.Mission1 {modelId} 93 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7720
if or
  170@ == 5
  170@ == 15
goto_if_false @MUSIC1_7785
create_char PedType.Mission1 {modelId} 217 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7785
if or
  170@ == 8
  170@ == 13
goto_if_false @MUSIC1_7849
create_char PedType.Mission1 {modelId} 19 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7849
if or
  170@ == 1
  170@ == 20
goto_if_false @MUSIC1_7913
create_char PedType.Mission1 {modelId} 55 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)
goto @MUSIC1_7945

:MUSIC1_7913
create_char PedType.Mission1 {modelId} 91 {x} 83@(170@,21f) {y} 104@(170@,21f) {z} -100.0 {var_handle} 62@(170@,21i)

:MUSIC1_7945
set_char_heading 62@(170@,21i) {heading} 125@(170@,21f)
give_weapon_to_char 62@(170@,21i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_current_char_weapon 62@(170@,21i) {weaponType} WeaponType.Unarmed
set_char_decision_maker 62@(170@,21i) {handleOrTemplate} 180@
210@(170@,21i) = 0
170@ += 1
goto @MUSIC1_7352

:MUSIC1_8025
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 419
mark_model_as_no_longer_needed 467
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 211
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 217
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 55
mark_vehicle_mod_as_no_longer_needed #WHEEL_OR1
return 

:MUSIC1_8085
request_animation "BAR"
request_animation "DANCING"
request_animation "BEACH"
request_animation "SCRATCHING"

:MUSIC1_8126
if or
  not has_animation_loaded "BAR"
  not has_animation_loaded "DANCING"
  not has_animation_loaded "BEACH"
  not has_animation_loaded "SCRATCHING"
goto_if_false @MUSIC1_8189
wait 0
goto @MUSIC1_8126

:MUSIC1_8189
181@ = open_sequence_task 
task_play_anim -1 {animationName} "SCLNG_R" {animationFile} "SCRATCHING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 181@ {state} True
close_sequence_task 181@
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_8270
perform_sequence_task 55@ {sequence} 181@

:MUSIC1_8270
if 
  not is_char_dead 62@
goto_if_false @MUSIC1_8354
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 62@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8354
if 
  not is_char_dead 63@
goto_if_false @MUSIC1_8438
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 63@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8438
if 
  not is_char_dead 64@
goto_if_false @MUSIC1_8522
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 64@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8522
if and
  not is_char_dead 65@
  not is_char_dead 66@
goto_if_false @MUSIC1_8567
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:MUSIC1_8567
if 
  not is_char_dead 67@
goto_if_false @MUSIC1_8653
183@ = open_sequence_task 
task_play_anim -1 {animationName} "LAY_BAC_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 67@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8653
if 
  not is_char_dead 68@
goto_if_false @MUSIC1_8741
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 68@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8741
if 
  not is_char_dead 69@
goto_if_false @MUSIC1_8827
183@ = open_sequence_task 
task_play_anim -1 {animationName} "LAY_BAC_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 69@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8827
if 
  not is_char_dead 70@
goto_if_false @MUSIC1_8915
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 70@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_8915
if 
  not is_char_dead 71@
goto_if_false @MUSIC1_9003
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_W_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 71@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9003
if 
  not is_char_dead 72@
goto_if_false @MUSIC1_9091
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 72@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9091
if 
  not is_char_dead 73@
goto_if_false @MUSIC1_9179
183@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 73@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9179
if 
  not is_char_dead 74@
goto_if_false @MUSIC1_9265
183@ = open_sequence_task 
task_play_anim -1 {animationName} "LAY_BAC_LOOP" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 74@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9265
if 
  not is_char_dead 75@
goto_if_false @MUSIC1_9345
183@ = open_sequence_task 
task_play_anim -1 {animationName} "BATHER" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 75@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9345
if 
  not is_char_dead 76@
goto_if_false @MUSIC1_9434
183@ = open_sequence_task 
task_play_anim -1 {animationName} "SITNWAIT_LOOP_W" {animationFile} "BEACH" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 76@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9434
if 
  not is_char_dead 77@
goto_if_false @MUSIC1_9518
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 77@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9518
if 
  not is_char_dead 78@
goto_if_false @MUSIC1_9602
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 78@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9602
if 
  not is_char_dead 79@
goto_if_false @MUSIC1_9686
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 79@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9686
if 
  not is_char_dead 80@
goto_if_false @MUSIC1_9770
183@ = open_sequence_task 
task_play_anim -1 {animationName} "DNCE_M_E" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 183@ {state} True
close_sequence_task 183@
perform_sequence_task 80@ {sequence} 183@
clear_sequence_task 183@

:MUSIC1_9770
if 
  not is_char_dead 81@
goto_if_false @MUSIC1_9863
173@ = open_sequence_task 
task_play_anim -1 {animationName} "DNK_STNDF_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 4000
set_sequence_to_repeat 173@ {state} True
close_sequence_task 173@
perform_sequence_task 81@ {sequence} 173@
clear_sequence_task 173@

:MUSIC1_9863
if 
  not is_char_dead 82@
goto_if_false @MUSIC1_9956
174@ = open_sequence_task 
task_play_anim -1 {animationName} "DNK_STNDF_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 2200
set_sequence_to_repeat 174@ {state} True
close_sequence_task 174@
perform_sequence_task 82@ {sequence} 174@
clear_sequence_task 174@

:MUSIC1_9956
return 

:MUSIC1_9958
if and
  not is_char_dead 65@
  not is_char_dead 66@
goto_if_false @MUSIC1_10050
277@ = get_script_task_status 65@ {taskId} 1655
278@ = get_script_task_status 66@ {taskId} 1655
if and
  is_int_lvar_equal_to_constant 277@ == 7
  is_int_lvar_equal_to_constant 278@ == 7
goto_if_false @MUSIC1_10050
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:MUSIC1_10050
return 

:MUSIC1_10052
170@ = 5

:MUSIC1_10059
if 
  8 >= 170@
goto_if_false @MUSIC1_10167
if and
  not is_char_dead 62@(170@,21i)
  210@(170@,21i) == 0
goto_if_false @MUSIC1_10153
set_current_char_weapon 62@(170@,21i) {weaponType} WeaponType.Mp5
task_kill_char_on_foot 62@(170@,21i) {target} $scplayer
210@(170@,21i) = 1
set_char_keep_task 62@(170@,21i) {state} True

:MUSIC1_10153
170@ += 1
goto @MUSIC1_10059

:MUSIC1_10167
if and
  not is_char_dead 55@
  231@ == 0
goto_if_false @MUSIC1_10226
set_current_char_weapon 55@ {weaponType} WeaponType.Mp5
freeze_char_position 55@ {state} False
task_kill_char_on_foot 55@ {target} $scplayer
231@ = 1
set_char_keep_task 55@ {state} True

:MUSIC1_10226
return 

:MUSIC1_10228
170@ = 0

:MUSIC1_10235
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_10339
if 
  232@(170@,21i) <> 1
goto_if_false @MUSIC1_10325
if 
  not is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_10325
if 
  not is_char_on_screen 62@(170@,21i)
goto_if_false @MUSIC1_10325
delete_char 62@(170@,21i)

:MUSIC1_10325
170@ += 1
goto @MUSIC1_10235

:MUSIC1_10339
170@ = 0

:MUSIC1_10346
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_10450
if 
  253@(170@,7i) <> 1
goto_if_false @MUSIC1_10436
if 
  not is_car_dead 147@(170@,7i)
goto_if_false @MUSIC1_10436
if 
  not is_car_on_screen 147@(170@,7i)
goto_if_false @MUSIC1_10436
delete_car 147@(170@,7i)

:MUSIC1_10436
170@ += 1
goto @MUSIC1_10346

:MUSIC1_10450
return 

:MUSIC1_10452
170@ = 0

:MUSIC1_10459
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_10570
if 
  not is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_10556
if or
  5 > 170@
  170@ > 8
goto_if_false @MUSIC1_10556
task_smart_flee_char 62@(170@,21i) {threat} $scplayer {radius} 400.0 {time} 9999999
set_char_keep_task 62@(170@,21i) {state} True

:MUSIC1_10556
170@ += 1
goto @MUSIC1_10459

:MUSIC1_10570
if 
  not is_car_dead 148@
goto_if_false @MUSIC1_10647
lock_car_doors 148@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_char_dead 77@
goto_if_false @MUSIC1_10619
task_enter_car_as_driver 77@ {vehicle} 148@ {time} -1

:MUSIC1_10619
if 
  not is_char_dead 78@
goto_if_false @MUSIC1_10647
task_enter_car_as_passenger 78@ {vehicle} 148@ {time} -1 {seat} SeatId.BikeRear

:MUSIC1_10647
if 
  not is_car_dead 149@
goto_if_false @MUSIC1_10724
lock_car_doors 149@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_char_dead 79@
goto_if_false @MUSIC1_10696
task_enter_car_as_driver 79@ {vehicle} 149@ {time} -1

:MUSIC1_10696
if 
  not is_char_dead 80@
goto_if_false @MUSIC1_10724
task_enter_car_as_passenger 80@ {vehicle} 149@ {time} -1 {seat} SeatId.BikeRear

:MUSIC1_10724
return 

:MUSIC1_10726
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_11352
169@ = 0
172@ = 0

:MUSIC1_10756
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11063
if 
  not is_car_dead 147@(172@,7i)
goto_if_false @MUSIC1_11049
161@ = get_driver_of_car 147@(172@,7i)
if and
  161@ == -1
  253@(172@,7i) <> 1
  2 > 169@
goto_if_false @MUSIC1_11049
171@ = 0

:MUSIC1_10850
if 
  is_int_lvar_greater_than_int_lvar 61@ > 171@
goto_if_false @MUSIC1_11049
if and
  not is_char_dead 62@(171@,21i)
  232@(171@,21i) <> 1
goto_if_false @MUSIC1_11035
lock_car_doors 147@(172@,7i) {lockStatus} CarLock.LockoutPlayerOnly
task_car_mission 62@(171@,21i) {vehicle} 147@(172@,7i) {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 154@(172@,7i) = 62@(171@,21i)
260@(172@,7i) = 1
set_car_heavy 147@(172@,7i) {state} True
set_car_strong 147@(172@,7i) {state} True
set_car_only_damaged_by_player 147@(172@,7i) {state} True
232@(171@,21i) = 1
253@(172@,7i) = 1
169@ += 1
set_lvar_int_to_lvar_int 171@ = 61@

:MUSIC1_11035
171@ += 1
goto @MUSIC1_10850

:MUSIC1_11049
172@ += 1
goto @MUSIC1_10756

:MUSIC1_11063
remove_decision_maker 180@
180@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 180@ {event} Event.DraggedOutCar
170@ = 0

:MUSIC1_11089
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_11328
if 
  not is_char_dead 62@(170@,21i)
goto_if_false @MUSIC1_11314
if 
  232@(170@,21i) <> 1
goto_if_false @MUSIC1_11291
if and
  170@ >= 5
  8 >= 170@
goto_if_false @MUSIC1_11251
set_char_stay_in_same_place 62@(170@,21i) {state} True
set_current_char_weapon 62@(170@,21i) {weaponType} WeaponType.Mp5
task_kill_char_on_foot 62@(170@,21i) {target} $scplayer
210@(170@,21i) = 1
set_char_keep_task 62@(170@,21i) {state} True
set_char_relationship 62@(170@,21i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
goto @MUSIC1_11284

:MUSIC1_11251
task_smart_flee_char 62@(170@,21i) {threat} $scplayer {radius} 400.0 {time} 9999999
set_char_keep_task 62@(170@,21i) {state} True

:MUSIC1_11284
goto @MUSIC1_11302

:MUSIC1_11291
set_char_keep_task 62@(170@,21i) {state} False

:MUSIC1_11302
set_char_decision_maker 62@(170@,21i) {handleOrTemplate} 180@

:MUSIC1_11314
170@ += 1
goto @MUSIC1_11089

:MUSIC1_11328
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_11352
set_char_decision_maker 55@ {handleOrTemplate} 180@

:MUSIC1_11352
return 

:MUSIC1_11354
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_11586
172@ = 0

:MUSIC1_11377
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11586
if and
  not is_car_dead 147@(172@,7i)
  253@(172@,7i) == 1
goto_if_false @MUSIC1_11572
if 
  not is_char_dead 154@(172@,7i)
goto_if_false @MUSIC1_11572
if and
  not is_char_in_car 154@(172@,7i) {vehicle} 147@(172@,7i)
  260@(172@,7i) == 0
goto_if_false @MUSIC1_11523
task_car_mission 154@(172@,7i) {vehicle} 147@(172@,7i) {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
260@(172@,7i) = 1

:MUSIC1_11523
if and
  is_char_in_car 154@(172@,7i) {vehicle} 147@(172@,7i)
  260@(172@,7i) == 1
goto_if_false @MUSIC1_11572
260@(172@,7i) = 0

:MUSIC1_11572
172@ += 1
goto @MUSIC1_11377

:MUSIC1_11586
return 
170@ = 0

:MUSIC1_11595
if 
  is_int_lvar_greater_than_int_lvar 146@ > 170@
goto_if_false @MUSIC1_11769
if and
  not is_car_dead 147@(170@,7i)
  253@(170@,7i) == 1
goto_if_false @MUSIC1_11755
161@ = get_driver_of_car 147@(170@,7i)
if and
  not is_car_on_screen 147@(170@,7i)
  161@ <> -1
  not locate_char_any_means_car_2d $scplayer {vehicle} 147@(170@,7i) {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @MUSIC1_11755
165@, 166@, 167@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -10.0 {zOffset} -1.0
set_car_coordinates 147@(170@,7i) {x} 165@ {y} 166@ {z} 167@

:MUSIC1_11755
170@ += 1
goto @MUSIC1_11595

:MUSIC1_11769
return 

:MUSIC1_11771
172@ = 0

:MUSIC1_11778
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_11887
if and
  not is_car_dead 147@(172@,7i)
  not is_char_dead 154@(172@,7i)
  253@(172@,7i) == 1
goto_if_false @MUSIC1_11873
task_car_drive_to_coord 154@(172@,7i) {vehicle} 147@(172@,7i) {x} 34@ {y} 35@ {z} 36@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:MUSIC1_11873
172@ += 1
goto @MUSIC1_11778

:MUSIC1_11887
return 

:MUSIC1_11889
do_fade 1000 {direction} Fade.Out

:MUSIC1_11896
if 
  get_fading_status 
goto_if_false @MUSIC1_11920
wait 0
goto @MUSIC1_11896

:MUSIC1_11920
open_garage 'MUL_LAN'

:MUSIC1_11931
if 
  not is_garage_open 'MUL_LAN'
goto_if_false @MUSIC1_11964
wait 0
goto @MUSIC1_11931

:MUSIC1_11964
if 
  is_car_dead 47@
goto_if_false @MUSIC1_12005
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15556

:MUSIC1_12005
clear_area 52@ {y} 53@ {z} 54@ {radius} 50.0 {clearParticles} False
172@ = 0

:MUSIC1_12030
if 
  is_int_lvar_greater_than_int_lvar 146@ > 172@
goto_if_false @MUSIC1_12103
if 
  253@(172@,7i) == 1
goto_if_false @MUSIC1_12089
delete_char 154@(172@,7i)
delete_car 147@(172@,7i)

:MUSIC1_12089
172@ += 1
goto @MUSIC1_12030

:MUSIC1_12103
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_12185
set_car_coordinates 47@ {x} 52@ {y} 53@ {z} 54@
set_car_heading 47@ {heading} 0.0
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC1_12185
warp_char_into_car $scplayer {vehicle} 47@

:MUSIC1_12185
wait 500
set_fixed_camera_position 1640.75 {y} -1528.1 {z} 14.25 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1642.49 {y} -1522.89 {z} 14.11 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC1_12248
if 
  get_fading_status 
goto_if_false @MUSIC1_12272
wait 0
goto @MUSIC1_12248

:MUSIC1_12272
if 
  is_car_dead 47@
goto_if_false @MUSIC1_12313
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15556

:MUSIC1_12313
279@ = 1
skip_cutscene_start_internal @MUSIC1_12579
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_12452
280@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 47@ {x} 1643.48 {y} -1515.73 {z} 13.82 {speed} 5.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 47@
task_go_straight_to_coord -1 {x} 1641.91 {y} -1517.64 {z} 12.62 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 1641.91 {y} -1522.36 {z} 12.61 {speed} MoveState.Walk {time} -1
close_sequence_task 280@
perform_sequence_task $scplayer {sequence} 280@
clear_sequence_task 280@

:MUSIC1_12452
wait 1000
178@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12567
179@ = get_sequence_progress $scplayer

:MUSIC1_12494
if and
  1 >= 179@
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12567
wait 0
178@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 178@ == 7
goto_if_false @MUSIC1_12560
179@ = get_sequence_progress $scplayer

:MUSIC1_12560
goto @MUSIC1_12494

:MUSIC1_12567
wait 2000
279@ = 0

:MUSIC1_12579
skip_cutscene_end 
if 
  279@ == 1
goto_if_false @MUSIC1_12599

:MUSIC1_12599
do_fade 500 {direction} Fade.Out

:MUSIC1_12606
if 
  get_fading_status 
goto_if_false @MUSIC1_12630
wait 0
goto @MUSIC1_12606

:MUSIC1_12630
close_garage 'MUL_LAN'

:MUSIC1_12641
if 
  not is_garage_closed 'MUL_LAN'
goto_if_false @MUSIC1_12674
wait 0
goto @MUSIC1_12641

:MUSIC1_12674
if 
  is_car_dead 47@
goto_if_false @MUSIC1_12715
clear_prints 
print_now 'MUS1_20' {time} 5000 {flag} 0
goto @MUSIC1_15556

:MUSIC1_12715
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @MUSIC1_12764
warp_char_from_car_to_coord $scplayer {x} 52@ {y} 53@ {z} 54@
goto @MUSIC1_12778

:MUSIC1_12764
set_char_coordinates $scplayer {x} 52@ {y} 53@ {z} 54@

:MUSIC1_12778
set_char_heading $scplayer {heading} 180.0
delete_car 47@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:MUSIC1_12815
if 
  get_fading_status 
goto_if_false @MUSIC1_12839
wait 0
goto @MUSIC1_12815

:MUSIC1_12839
return 

:MUSIC1_12841
start_setting_up_conversation 55@
$m1_random_int = generate_random_int_in_range 0 {max} 2
$m1_random_int2 = generate_random_int_in_range 0 {max} 3
if 
  $m1_random_int == 0
goto_if_false @MUSIC1_13094
switch_start $m1_random_int2 {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_13080 {caseNum1} 0 {caseLabel1} @MUSIC1_12945 {caseNum2} 1 {caseLabel2} @MUSIC1_12990 {caseNum3} 2 {caseLabel3} @MUSIC1_13035 {caseNum4} -1 {caseLabel4} @MUSIC1_13087 {caseNum5} -1 {caseLabel5} @MUSIC1_13087 {caseNum6} -1 {caseLabel6} @MUSIC1_13087 {caseNum7} -1 {caseLabel7} @MUSIC1_13087

:MUSIC1_12945
set_lvar_text_label 281@s = 'HI1'
set_lvar_int_to_constant 291@ = 21420
set_lvar_int_to_constant 292@ = 21422
set_lvar_int_to_constant 293@ = 21421
goto @MUSIC1_13087

:MUSIC1_12990
set_lvar_text_label 281@s = 'HI3'
set_lvar_int_to_constant 291@ = 21426
set_lvar_int_to_constant 292@ = 21428
set_lvar_int_to_constant 293@ = 21427
goto @MUSIC1_13087

:MUSIC1_13035
set_lvar_text_label 281@s = 'HI5'
set_lvar_int_to_constant 291@ = 21432
set_lvar_int_to_constant 292@ = 21434
set_lvar_int_to_constant 293@ = 21433
goto @MUSIC1_13087

:MUSIC1_13080
goto @MUSIC1_13087

:MUSIC1_13087
goto @MUSIC1_13299

:MUSIC1_13094
switch_start $m1_random_int2 {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_13292 {caseNum1} 0 {caseLabel1} @MUSIC1_13157 {caseNum2} 1 {caseLabel2} @MUSIC1_13202 {caseNum3} 2 {caseLabel3} @MUSIC1_13247 {caseNum4} -1 {caseLabel4} @MUSIC1_13299 {caseNum5} -1 {caseLabel5} @MUSIC1_13299 {caseNum6} -1 {caseLabel6} @MUSIC1_13299 {caseNum7} -1 {caseLabel7} @MUSIC1_13299

:MUSIC1_13157
set_lvar_text_label 281@s = 'HI2'
set_lvar_int_to_constant 291@ = 21423
set_lvar_int_to_constant 292@ = 21425
set_lvar_int_to_constant 293@ = 21424
goto @MUSIC1_13299

:MUSIC1_13202
set_lvar_text_label 281@s = 'HI4'
set_lvar_int_to_constant 291@ = 21429
set_lvar_int_to_constant 292@ = 21431
set_lvar_int_to_constant 293@ = 21430
goto @MUSIC1_13299

:MUSIC1_13247
set_lvar_text_label 281@s = 'HI6'
set_lvar_int_to_constant 291@ = 21435
set_lvar_int_to_constant 292@ = 21437
set_lvar_int_to_constant 293@ = 21436
goto @MUSIC1_13299

:MUSIC1_13292
goto @MUSIC1_13299

:MUSIC1_13299
$m1_random_int = generate_random_int_in_range 0 {max} 2
if 
  $m1_random_int == 0
goto_if_false @MUSIC1_13371
set_lvar_text_label 283@s = 'DOFFE1'
set_lvar_int_to_constant 294@ = 21404
set_lvar_int_to_constant 295@ = 21406
set_lvar_int_to_constant 296@ = 21405
goto @MUSIC1_13409

:MUSIC1_13371
set_lvar_text_label 283@s = 'DOFFE3'
set_lvar_int_to_constant 294@ = 21410
set_lvar_int_to_constant 295@ = 21412
set_lvar_int_to_constant 296@ = 21411

:MUSIC1_13409
$m1_random_int = generate_random_int_in_range 0 {max} 2
if 
  $m1_random_int == 0
goto_if_false @MUSIC1_13465
set_lvar_text_label 285@s = 'BEXIT1'
set_lvar_int_to_constant 297@ = 21400
goto @MUSIC1_13487

:MUSIC1_13465
set_lvar_text_label 285@s = 'BEXIT2'
set_lvar_int_to_constant 297@ = 21401

:MUSIC1_13487
set_lvar_text_label 287@s = 'DSTAR2'
set_lvar_int_to_constant 298@ = 21417
$m1_random_int = generate_random_int_in_range 0 {max} 2
if 
  $m1_random_int == 0
goto_if_false @MUSIC1_13565
set_lvar_text_label 289@s = 'GEXIT1'
set_lvar_int_to_constant 299@ = 21418
goto @MUSIC1_13587

:MUSIC1_13565
set_lvar_text_label 289@s = 'GEXIT2'
set_lvar_int_to_constant 299@ = 21419

:MUSIC1_13587
set_up_conversation_node_with_scripted_speech 281@s {positiveAnswer} 283@s {negativeAnswer} 285@s {questionSoundId} 291@ {positiveAnswerSoundId} 292@ {negativeAnswerSoundId} 293@
set_up_conversation_end_node_with_scripted_speech 285@s {speechSoundId} 297@
set_up_conversation_node_with_scripted_speech 283@s {positiveAnswer} 287@s {negativeAnswer} 289@s {questionSoundId} 294@ {positiveAnswerSoundId} 295@ {negativeAnswerSoundId} 296@
set_up_conversation_end_node_with_scripted_speech 287@s {speechSoundId} 298@
set_up_conversation_end_node_with_scripted_speech 289@s {speechSoundId} 299@
finish_setting_up_conversation 
return 

:MUSIC1_13655
start_setting_up_conversation 55@
$m1_random_int = generate_random_int_in_range 0 {max} 2
if 
  $m1_random_int == 0
goto_if_false @MUSIC1_13732
set_lvar_text_label 300@s = 'VOFFE1'
set_lvar_int_to_constant 304@ = 21443
set_lvar_int_to_constant 305@ = 21445
set_lvar_int_to_constant 306@ = 21444
goto @MUSIC1_13770

:MUSIC1_13732
set_lvar_text_label 300@s = 'VOFFE2'
set_lvar_int_to_constant 304@ = 21446
set_lvar_int_to_constant 305@ = 21448
set_lvar_int_to_constant 306@ = 21447

:MUSIC1_13770
$m1_random_int = generate_random_int_in_range 0 {max} 2
if 
  $m1_random_int == 0
goto_if_false @MUSIC1_13842
set_lvar_text_label 302@s = 'VSURE1'
set_lvar_int_to_constant 307@ = 21449
set_lvar_int_to_constant 308@ = 21451
set_lvar_int_to_constant 309@ = 21450
goto @MUSIC1_13880

:MUSIC1_13842
set_lvar_text_label 302@s = 'VSURE2'
set_lvar_int_to_constant 307@ = 21452
set_lvar_int_to_constant 308@ = 21454
set_lvar_int_to_constant 309@ = 21453

:MUSIC1_13880
set_up_conversation_node_with_scripted_speech 300@s {positiveAnswer} 'VYES2' {negativeAnswer} 302@s {questionSoundId} 304@ {positiveAnswerSoundId} 305@ {negativeAnswerSoundId} 306@
set_up_conversation_end_node_with_scripted_speech 'VYES2' {speechSoundId} 21456
set_up_conversation_node_with_scripted_speech 302@s {positiveAnswer} 'VLATE' {negativeAnswer} 'VYES1' {questionSoundId} 307@ {positiveAnswerSoundId} 308@ {negativeAnswerSoundId} 309@
set_up_conversation_end_node_with_scripted_speech 'VLATE' {speechSoundId} 21442
set_up_conversation_end_node_with_scripted_speech 'VYES1' {speechSoundId} 21455
finish_setting_up_conversation 
return 

:MUSIC1_13984
set_lvar_float_to_lvar_float 310@ = 39@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 40@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14436
set_lvar_float_to_lvar_float 39@ = 312@
set_lvar_float_to_lvar_float 40@ = 313@
41@ = 2.68
set_lvar_float_to_lvar_float 310@ = 42@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 43@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14436
set_lvar_float_to_lvar_float 42@ = 312@
set_lvar_float_to_lvar_float 43@ = 313@
44@ = 2.39
set_lvar_float_to_lvar_float 310@ = 48@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 49@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14436
set_lvar_float_to_lvar_float 48@ = 312@
set_lvar_float_to_lvar_float 49@ = 313@
50@ = 3.42
51@ -= 51.0
set_lvar_float_to_lvar_float 310@ = 56@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 57@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14436
set_lvar_float_to_lvar_float 56@ = 312@
set_lvar_float_to_lvar_float 57@ = 313@
set_lvar_float_to_lvar_float 310@ = 58@
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 59@
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14436
set_lvar_float_to_lvar_float 58@ = 312@
set_lvar_float_to_lvar_float 59@ = 313@
60@ = 2.31
170@ = 0

:MUSIC1_14316
if 
  is_int_lvar_greater_than_int_lvar 61@ > 170@
goto_if_false @MUSIC1_14434
set_lvar_float_to_lvar_float 310@ = 83@(170@,21f)
sub_float_lvar_from_float_lvar 310@ -= 34@
set_lvar_float_to_lvar_float 311@ = 104@(170@,21f)
sub_float_lvar_from_float_lvar 311@ -= 35@
gosub @MUSIC1_14436
set_lvar_float_to_lvar_float 83@(170@,21f) = 312@
set_lvar_float_to_lvar_float 104@(170@,21f) = 313@
125@(170@,21f) -= 51.0
170@ += 1
goto @MUSIC1_14316

:MUSIC1_14434
return 

:MUSIC1_14436
set_lvar_float_to_lvar_float 314@ = 310@
mult_float_lvar_by_float_lvar 314@ *= 310@
set_lvar_float_to_lvar_float 315@ = 311@
mult_float_lvar_by_float_lvar 315@ *= 311@
set_lvar_float_to_lvar_float 317@ = 314@
add_float_lvar_to_float_lvar 317@ += 315@
316@ = sqrt 317@
set_lvar_float_to_lvar_float 318@ = 311@
div_float_lvar_by_float_lvar 318@ /= 316@
set_lvar_float_to_lvar_float 319@ = 310@
div_float_lvar_by_float_lvar 319@ /= 316@
320@ = cos 51.0
321@ = sin 51.0
set_lvar_float_to_lvar_float 322@ = 318@
mult_float_lvar_by_float_lvar 322@ *= 320@
set_lvar_float_to_lvar_float 323@ = 319@
mult_float_lvar_by_float_lvar 323@ *= 321@
set_lvar_float_to_lvar_float 324@ = 319@
mult_float_lvar_by_float_lvar 324@ *= 320@
set_lvar_float_to_lvar_float 325@ = 318@
mult_float_lvar_by_float_lvar 325@ *= 321@
set_lvar_float_to_lvar_float 326@ = 322@
sub_float_lvar_from_float_lvar 326@ -= 323@
set_lvar_float_to_lvar_float 327@ = 324@
add_float_lvar_to_float_lvar 327@ += 325@
set_lvar_float_to_lvar_float 312@ = 316@
mult_float_lvar_by_float_lvar 312@ *= 327@
set_lvar_float_to_lvar_float 313@ = 316@
mult_float_lvar_by_float_lvar 313@ *= 326@
add_float_lvar_to_float_lvar 312@ += 34@
add_float_lvar_to_float_lvar 313@ += 35@
return 

:MUSIC1_14690
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_14854
if 
  208@ == 1
goto_if_false @MUSIC1_14793
if 
  not is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_14786
remove_blip 273@
272@ = add_blip_for_car 47@
set_blip_as_friendly 272@ {state} True
print_now 'MUS1_6' {time} 7000 {flag} 0
208@ = 0

:MUSIC1_14786
goto @MUSIC1_14854

:MUSIC1_14793
if 
  is_char_in_car $scplayer {vehicle} 47@
goto_if_false @MUSIC1_14854
remove_blip 272@
273@ = add_blip_for_coord 52@ {y} 53@ {z} 54@
print_now 'MUS1_19' {time} 7000 {flag} 0
208@ = 1

:MUSIC1_14854
return 

:MUSIC1_14856
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
print_now 'MUS1_2' {time} 10000 {flag} 0
set_fixed_camera_position 532.87 {y} -1893.6899 {z} 3.29 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 533.97 {y} -1892.67 {z} 3.3 {switchStyle} SwitchType.JumpCut
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} -100.0
set_lvar_float_to_lvar_float 328@ = 34@
sub_float_var_from_float_lvar 328@ -= $player_x
set_lvar_float_to_lvar_float 329@ = 35@
sub_float_var_from_float_lvar 329@ -= $player_y
$heading = get_heading_from_vector_2d 328@ {y} 329@
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC1_15040
set_char_heading $scplayer {heading} $heading
goto @MUSIC1_15061

:MUSIC1_15040
330@ = store_car_char_is_in_no_save $scplayer
car_set_idle 330@
set_car_heading 330@ {heading} $heading

:MUSIC1_15061
wait 2000
279@ = 1
skip_cutscene_start_internal @MUSIC1_15092
wait 8000
279@ = 0

:MUSIC1_15092
skip_cutscene_end 
if 
  279@ == 1
goto_if_false @MUSIC1_15112

:MUSIC1_15112
clear_prints 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:MUSIC1_15131
switch_start 191@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MUSIC1_15266 {caseNum1} 0 {caseLabel1} @MUSIC1_15194 {caseNum2} 1 {caseLabel2} @MUSIC1_15230 {caseNum3} -1 {caseLabel3} @MUSIC1_15273 {caseNum4} -1 {caseLabel4} @MUSIC1_15273 {caseNum5} -1 {caseLabel5} @MUSIC1_15273 {caseNum6} -1 {caseLabel6} @MUSIC1_15273 {caseNum7} -1 {caseLabel7} @MUSIC1_15273

:MUSIC1_15194
set_lvar_text_label 184@s = 'LOC1_YT'
set_lvar_int_to_constant 186@ = 21656
189@ = 1
goto @MUSIC1_15273

:MUSIC1_15230
set_lvar_text_label 184@s = 'DNCEF1'
set_lvar_int_to_constant 186@ = 21402
189@ = 1
goto @MUSIC1_15273

:MUSIC1_15266
goto @MUSIC1_15273

:MUSIC1_15273
187@ = 0
188@ = 0
190@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
return 

:MUSIC1_15302
if or
  187@ == 0
  187@ == 1
goto_if_false @MUSIC1_15372
if 
  is_int_lvar_greater_than_int_lvar 189@ > 188@
goto_if_false @MUSIC1_15372
if 
  TIMERA > 1000
goto_if_false @MUSIC1_15372
gosub @MUSIC1_15430

:MUSIC1_15372
if 
  187@ == 2
goto_if_false @MUSIC1_15428
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC1_15428
187@ = 0
188@ += 1
clear_prints 
TIMERA = 0

:MUSIC1_15428
return 

:MUSIC1_15430
if 
  187@ == 0
goto_if_false @MUSIC1_15466
load_mission_audio MissionAudioSlot.Slot1 {audioId} 186@(188@,1i)
187@ = 1

:MUSIC1_15466
if 
  187@ == 1
goto_if_false @MUSIC1_15554
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC1_15554
print_now 184@(188@,1s) {time} 10000 {flag} 1
if and
  191@ == 1
  not is_char_dead 55@
goto_if_false @MUSIC1_15543
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 55@

:MUSIC1_15543
play_mission_audio MissionAudioSlot.Slot1
187@ = 2

:MUSIC1_15554
return 

:MUSIC1_15556
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC1_15574
$flag_strap_mission_counter += 1
register_mission_passed 'STRAP_1'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 3 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 3
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:MUSIC1_15629
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 419
mark_model_as_no_longer_needed 467
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 13
mark_model_as_no_longer_needed 93
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 211
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 217
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 55
mark_vehicle_mod_as_no_longer_needed #WHEEL_OR1
mark_object_as_no_longer_needed 45@
mark_object_as_no_longer_needed 46@
mark_streamed_script_as_no_longer_needed 35
remove_animation "BAR"
remove_animation "DANCING"
remove_animation "BEACH"
remove_animation "SCRATCHING"
remove_blip 271@
remove_blip 272@
remove_blip 273@
kill_fx_system 37@
kill_fx_system 38@
clear_sequence_task 173@
clear_sequence_task 174@
clear_sequence_task 177@
clear_sequence_task 280@
clear_sequence_task 181@
clear_sequence_task 182@
clear_sequence_task 183@
if 
  is_player_playing $player1
goto_if_false @MUSIC1_15839
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:MUSIC1_15839
if 
  not is_char_dead 55@
goto_if_false @MUSIC1_15867
clear_conversation_for_char 55@
freeze_char_position 55@ {state} False

:MUSIC1_15867
if 
  not is_car_dead 47@
goto_if_false @MUSIC1_15890
set_car_can_be_visibly_damaged 47@ {state} True

:MUSIC1_15890
remove_decision_maker 180@
clear_help 
switch_audio_zone 'BEACH' {state} False
switch_ped_roads_back_to_original 502.15 {leftBottomY} -1913.39 {leftBottomZ} -5.0 {rightTopX} 558.86 {rightTopY} -1838.87 {rightTopZ} 10.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 32---------------
// Originally: Madd Dogg's Rhymes

:MUSIC2
script_name 'MUSIC2'
gosub @MUSIC2_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC2_38
gosub @MUSIC2_10509

:MUSIC2_38
gosub @MUSIC2_10582
terminate_this_script 

:MUSIC2_47
$onmission = 1
register_mission_given 
load_mission_text 'STRAP2'
set_fading_colour 0 {g} 0 {b} 0
set_area_visible 10
do_fade 2000 {direction} Fade.Out

:MUSIC2_86
if 
  get_fading_status 
goto_if_false @MUSIC2_110
wait 0
goto @MUSIC2_86

:MUSIC2_110
load_cutscene 'STRAP2A'

:MUSIC2_121
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC2_145
wait 0
goto @MUSIC2_121

:MUSIC2_145
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC2_154
if 
  not has_cutscene_finished 
goto_if_false @MUSIC2_178
wait 0
goto @MUSIC2_154

:MUSIC2_178
clear_cutscene 
do_fade 0 {direction} Fade.Out

:MUSIC2_186
if 
  get_fading_status 
goto_if_false @MUSIC2_210
wait 0
goto @MUSIC2_186

:MUSIC2_210
set_area_visible 0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
request_model 579
request_model 580
request_model #KMB_RHYMESBOOK
request_model #CJ_JUICE_CAN
request_model 347
request_model 510
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21803
load_mission_audio MissionAudioSlot.Slot2 {audioId} 21804
load_all_models_now 

:MUSIC2_281
if or
  not has_model_loaded 579
  not has_model_loaded 580
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC2_321
wait 0
goto @MUSIC2_281

:MUSIC2_321
if or
  not has_model_loaded #KMB_RHYMESBOOK
  not has_model_loaded #CJ_JUICE_CAN
  not has_model_loaded 347
  not has_model_loaded 510
goto_if_false @MUSIC2_363
wait 0
goto @MUSIC2_321

:MUSIC2_363
61@ = add_blip_for_coord 1239.032 {y} -741.106 {z} 94.76
set_char_coordinates $scplayer {x} 790.0 {y} -1626.0 {z} 12.5
load_scene 790.0 {y} -1626.0 {z} 12.5
set_camera_behind_player 
set_char_heading $scplayer {heading} 356.0
45@ = load_char_decision_maker DecisionMakerType.Steal
46@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
switch_entry_exit 'MDDOGS' {state} True
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
do_fade 1500 {direction} Fade.In
70@ = 0
71@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
print_now 'STP2_1' {time} 10000 {flag} 1
if 
  $tripskip_s2flag > 0
goto_if_false @MUSIC2_745
set_up_skip 1242.6591 {y} -748.503 {z} 94.33 {heading} 191.586

:MUSIC2_745
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MUSIC2_771
goto @MUSIC2_10527

:MUSIC2_771
if 
  70@ == 0
goto_if_false @MUSIC2_973
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1222.799 {leftBottomY} -735.563 {rightTopX} 1348.407 {rightTopY} -759.322 {angle} -100.0 {drawSphere} False
goto_if_false @MUSIC2_973
if 
  $tripskip_s2flag == 0
goto_if_false @MUSIC2_857
$tripskip_s2flag = 1

:MUSIC2_857
clear_skip 
remove_blip 61@
61@ = add_blip_for_coord 1298.66 {y} -795.58 {z} 83.84
print_now 'STP2_2' {time} 5000 {flag} 1
35@ = create_car 579 {x} 1243.1541 {y} -805.76 {z} 83.188
set_car_heading 35@ {heading} 1.533
36@ = create_car 580 {x} 1255.024 {y} -804.587 {z} 83.934
set_car_heading 36@ {heading} 182.9
70@ = 1

:MUSIC2_973
if 
  70@ == 1
goto_if_false @MUSIC2_1832
34@ = get_char_area_visible $scplayer
if 
  34@ == 5
goto_if_false @MUSIC2_1832
set_wanted_multiplier 0.0
switch_widescreen True
set_fixed_camera_position 1256.623 {y} -801.0125 {z} 1084.0909 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1255.9301 {y} -801.7316 {z} 1084.0439 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1299.3521 {y} -792.6416 {z} 1083.0081
set_char_heading $scplayer {heading} 0.0
clear_area 1299.3521 {y} -792.6416 {z} 200.0 {radius} 200.0 {clearParticles} False
request_animation "CRIB"
request_animation "VENDING"
request_model 335
request_model 24
request_model 25
request_model 352
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23600
load_all_models_now 
load_scene 1256.623 {y} -801.0125 {z} 1084.0909

:MUSIC2_1196
if or
  not has_animation_loaded "CRIB"
  not has_animation_loaded "VENDING"
  not has_model_loaded 335
  not has_model_loaded 24
request_model 25
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MUSIC2_1254
wait 0
goto @MUSIC2_1196

:MUSIC2_1254
set_player_control $player1 {state} False
set_radar_zoom 100
remove_blip 61@
37@ = create_char PedType.Mission1 {modelId} 24 {x} 1301.98 {y} -785.31 {z} 1083.05
set_char_has_used_entry_exit 37@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_follow_node_threshold_distance 37@ {range} 2.0
set_char_heading 37@ {heading} 358.83
set_char_decision_maker 37@ {handleOrTemplate} 45@
62@ = add_blip_for_char 37@
change_blip_display 62@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 37@ {accuracy} 90
set_char_drops_weapons_when_dead 37@ {state} False
set_char_area_visible 37@ {areaId} 5
print_now 'STP2_3' {time} 7000 {flag} 1
wait 2000
skip_cutscene_start_internal @MUSIC2_1701
wait 1000
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1249.063 {y} -769.8262 {z} 1083.0229
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 38@ {areaId} 5
set_char_heading 38@ {heading} 270.552
set_follow_node_threshold_distance 38@ {range} 5.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
wait 3500
if 
  not is_char_dead 38@
goto_if_false @MUSIC2_1545
task_go_straight_to_coord 38@ {x} 1262.056 {y} -769.9772 {z} 1083.988 {speed} MoveState.Walk {time} -1

:MUSIC2_1545
wait 500
set_fixed_camera_position 1260.744 {y} -769.5749 {z} 1085.2581 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1259.781 {y} -769.5841 {z} 1084.988 {switchStyle} SwitchType.JumpCut
print_now 'STP2_39' {time} 7000 {flag} 1
wait 7000
set_near_clip 0.1
set_fixed_camera_position 1299.504 {y} -793.3958 {z} 1084.693 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1299.589 {y} -792.3994 {z} 1084.6851 {switchStyle} SwitchType.JumpCut
print_now 'STP2_5' {time} 7000 {flag} 1
wait 7000

:MUSIC2_1701
skip_cutscene_end 
delete_char 38@
59@ = create_pickup #KMB_RHYMESBOOK {pickupType} PickupType.Once {x} 1256.871 {y} -801.048 {z} 1084.063
61@ = add_blip_for_pickup 59@
set_blip_entry_exit 61@ {x} 1298.78 {y} -798.2 {radius} 1.0
disable_all_entry_exits True
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
set_player_cycle_weapon_button $player1 {enabled} False
delete_car 35@
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 580
delete_car 36@
clear_prints 
TIMERA = 0
70@ = 2

:MUSIC2_1832
if 
  85@ == 0
goto_if_false @MUSIC2_6610
if 
  70@ == 2
goto_if_false @MUSIC2_6610
if 
  71@ == 0
goto_if_false @MUSIC2_1922
print_help 'STP2_7'
flash_hud_object HudObject.Radar
TIMERA = 0
TIMERB = 0
71@ = 1

:MUSIC2_1922
if 
  79@ == 0
goto_if_false @MUSIC2_1970
if 
  TIMERB > 5000
goto_if_false @MUSIC2_1970
flash_hud_object -1
79@ = 1

:MUSIC2_1970
if 
  not is_char_dead 37@
goto_if_false @MUSIC2_2301
if 
  71@ == 1
goto_if_false @MUSIC2_2052
if 
  TIMERA > 5000
goto_if_false @MUSIC2_2052
print_help 'STP2_9'
flash_hud_object -1
TIMERA = 0
71@ = 2

:MUSIC2_2052
if 
  71@ == 2
goto_if_false @MUSIC2_2139
if 
  not is_char_dead 37@
goto_if_false @MUSIC2_2139
if or
  locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
  TIMERA > 9500
goto_if_false @MUSIC2_2139
TIMERA = 0
71@ = 3

:MUSIC2_2139
if 
  71@ == 3
goto_if_false @MUSIC2_2228
if or
  TIMERA > 10000
  is_char_playing_anim $scplayer {animationName} "KILL_PARTIAL"
  is_player_targetting_char $player1 {handle} 37@
goto_if_false @MUSIC2_2228
print_help 'STP2_10'
TIMERA = 0
71@ = 4

:MUSIC2_2228
if 
  71@ == 4
goto_if_false @MUSIC2_2301
if 
  is_char_playing_anim $scplayer {animationName} "KILL_PARTIAL"
goto_if_false @MUSIC2_2301
print_help 'STP2_11'
TIMERA = 0
71@ = 5

:MUSIC2_2301
if 
  72@ == 0
goto_if_false @MUSIC2_3036
if 
  locate_char_any_means_3d $scplayer {x} 1290.907 {y} -781.423 {z} 1083.59 {xRadius} 4.3 {yRadius} 4.3 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_3036
if 
  is_char_ducking $scplayer
goto_if_false @MUSIC2_2390
96@ = 1

:MUSIC2_2390
set_player_control $player1 {state} False
switch_widescreen True
clear_char_tasks_immediately $scplayer
set_near_clip 0.1
clear_area 1290.907 {y} -781.423 {z} 100.0 {radius} 100.0 {clearParticles} False
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 38@ {areaId} 5
set_char_heading 38@ {heading} 350.151
set_follow_node_threshold_distance 38@ {range} 5.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 38@ {accuracy} 90
set_char_drops_weapons_when_dead 38@ {state} False
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 38@ {speed} MoveState.Walk {mode} RouteMode.Loop
set_char_coordinates $scplayer {x} 1297.599 {y} -781.234 {z} 1083.048
set_char_heading $scplayer {heading} 89.58
set_fixed_camera_position 1291.0551 {y} -784.506 {z} 1084.514 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1290.55 {y} -783.6482 {z} 1084.417 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 37@
goto_if_false @MUSIC2_2910
delete_char 37@
37@ = create_char PedType.Mission1 {modelId} 24 {x} 1304.189 {y} -785.871 {z} 1084.048
set_char_has_used_entry_exit 37@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 37@ {areaId} 5
set_follow_node_threshold_distance 37@ {range} 2.0
set_char_heading 37@ {heading} 311.2134
set_char_decision_maker 37@ {handleOrTemplate} 45@
62@ = add_blip_for_char 37@
change_blip_display 62@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 37@ {accuracy} 90
set_char_drops_weapons_when_dead 37@ {state} False

:MUSIC2_2910
print_now 'STP2_13' {time} 6000 {flag} 1
wait 2000
skip_cutscene_start_internal @MUSIC2_2943
wait 4000

:MUSIC2_2943
skip_cutscene_end 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
if 
  96@ == 1
goto_if_false @MUSIC2_2981
task_toggle_duck $scplayer {state} True

:MUSIC2_2981
96@ = 0
switch_widescreen False
print_now 'STP2_14' {time} 5000 {flag} 1
TIMERA = 0
TIMERB = 0
72@ = 1
71@ = 6

:MUSIC2_3036
if 
  71@ == 6
goto_if_false @MUSIC2_3080
if 
  TIMERA > 5000
goto_if_false @MUSIC2_3080
71@ = 7

:MUSIC2_3080
if 
  73@ == 0
goto_if_false @MUSIC2_4088
if 
  locate_char_any_means_3d $scplayer {x} 1260.104 {y} -769.51 {z} 1083.0601 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_4088
if 
  is_char_ducking $scplayer
goto_if_false @MUSIC2_3169
96@ = 1

:MUSIC2_3169
set_player_control $player1 {state} False
switch_widescreen True
clear_char_tasks_immediately $scplayer
clear_prints 
clear_area 1260.104 {y} -769.51 {z} 100.0 {radius} 100.0 {clearParticles} False
39@ = create_char PedType.Mission1 {modelId} 25 {x} 1249.598 {y} -780.06 {z} 1083.063
set_char_has_used_entry_exit 39@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 39@ {areaId} 5
set_char_accuracy 39@ {accuracy} 90
set_char_heading 39@ {heading} 355.188
set_follow_node_threshold_distance 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 45@
task_go_straight_to_coord 39@ {x} 1250.092 {y} -769.277 {z} 1083.064 {speed} MoveState.Walk {time} -1
set_fixed_camera_position 1249.856 {y} -766.8402 {z} 1084.777 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1249.814 {y} -767.8293 {z} 1084.637 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1266.494 {y} -769.705 {z} 1083.0601
set_char_heading $scplayer {heading} 92.259
if 
  not is_char_dead 38@
goto_if_false @MUSIC2_3669
delete_char 38@
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 38@ {heading} 350.151
set_follow_node_threshold_distance 38@ {range} 2.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 38@ {accuracy} 90
set_char_drops_weapons_when_dead 38@ {state} False
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 38@ {speed} MoveState.Walk {mode} RouteMode.Loop

:MUSIC2_3669
print_now 'STP2_15' {time} 3000 {flag} 1
wait 2000
skip_cutscene_start_internal @MUSIC2_3844
wait 1000
print_now 'STP2_16' {time} 4000 {flag} 1
set_fixed_camera_position 1267.405 {y} -769.6973 {z} 1084.667 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1266.412 {y} -769.6685 {z} 1084.551 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 39@
goto_if_false @MUSIC2_3815
set_char_coordinates 39@ {x} 1249.598 {y} -780.06 {z} 1083.063
set_char_heading 39@ {heading} 355.188

:MUSIC2_3815
wait 2000
point_camera_at_point 1266.912 {y} -770.5618 {z} 1084.569 {switchStyle} SwitchType.Interpolation
wait 2000

:MUSIC2_3844
skip_cutscene_end 
delete_char 39@
39@ = create_char PedType.Mission1 {modelId} 25 {x} 1249.634 {y} -781.405 {z} 1083.5
set_char_has_used_entry_exit 39@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 39@ {areaId} 5
set_char_heading 39@ {heading} 357.273
64@ = add_blip_for_char 39@
change_blip_display 64@ {display} BlipDisplay.BlipOnly
set_follow_node_threshold_distance 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 45@
58@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1267.96 {y} -769.792 {z} 1084.0601 {speed} MoveState.Walk {time} -2
set_sequence_to_repeat 58@ {state} True
close_sequence_task 58@
perform_sequence_task 39@ {sequence} 58@
clear_sequence_task 58@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 50
set_char_accuracy 39@ {accuracy} 90
set_char_drops_weapons_when_dead 39@ {state} False
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
if 
  96@ == 1
goto_if_false @MUSIC2_4061
task_toggle_duck $scplayer {state} True

:MUSIC2_4061
96@ = 0
clear_prints 
print_help 'STP2_41'
73@ = 1

:MUSIC2_4088
if 
  74@ == 0
goto_if_false @MUSIC2_6068
if 
  locate_char_any_means_3d $scplayer {x} 1249.4659 {y} -789.487 {z} 1083.063 {xRadius} 7.5 {yRadius} 7.5 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_6068
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MUSIC2_4192
set_mission_audio_position MissionAudioSlot.Slot3 {x} 1276.3101 {y} -793.92 {z} 1084.12
play_mission_audio MissionAudioSlot.Slot3

:MUSIC2_4192
if 
  is_char_ducking $scplayer
goto_if_false @MUSIC2_4215
96@ = 1

:MUSIC2_4215
set_player_control $player1 {state} False
switch_widescreen True
clear_char_tasks_immediately $scplayer
clear_area 1249.4659 {y} -789.487 {z} 100.0 {radius} 100.0 {clearParticles} False
set_char_coordinates $scplayer {x} 1249.825 {y} -780.682 {z} 1083.0601
set_char_heading $scplayer {heading} 180.659
clear_prints 
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1258.271 {y} -793.395 {z} 1083.2889
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_area_visible 40@ {areaId} 5
set_char_heading 40@ {heading} 354.328
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_follow_node_threshold_distance 40@ {range} 5.0
set_char_decision_maker 40@ {handleOrTemplate} 45@
set_char_drops_weapons_when_dead 40@ {state} False
47@ = create_object_no_offset #CJ_JUICE_CAN {x} 1258.25 {y} -792.64 {z} 1084.16
$x, $y, $z, $x, $y, $z = get_model_dimensions #CJ_JUICE_CAN
$y /= 2.0
$y += 0.027
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1276.795 {y} -792.368 {z} 1083.0551
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_accuracy 41@ {accuracy} 100
set_char_area_visible 41@ {areaId} 5
set_char_heading 41@ {heading} 180.0
set_char_decision_maker 41@ {handleOrTemplate} 45@
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_4668
49@ = open_sequence_task 
task_pick_up_object -1 {object} 47@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_USE_PT2" {animationFile} "VENDING" {time} 0
task_pick_up_object -1 {object} 47@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {time} 0
close_sequence_task 49@
perform_sequence_task 40@ {sequence} 49@
clear_sequence_task 49@

:MUSIC2_4668
set_fixed_camera_position 1251.8199 {y} -788.354 {z} 1084.502 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1252.463 {y} -789.1154 {z} 1084.42 {switchStyle} SwitchType.JumpCut
print_now 'STP2_19' {time} 5000 {flag} 1
if 
  not is_char_dead 38@
goto_if_false @MUSIC2_5002
delete_char 38@
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 38@ {heading} 350.151
set_follow_node_threshold_distance 38@ {range} 2.0
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_accuracy 38@ {accuracy} 100
set_char_drops_weapons_when_dead 38@ {state} False
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 38@ {speed} MoveState.Walk {mode} RouteMode.Loop

:MUSIC2_5002
if 
  not is_char_dead 39@
goto_if_false @MUSIC2_5133
delete_char 39@
39@ = create_char PedType.Mission1 {modelId} 25 {x} 1267.96 {y} -769.792 {z} 1084.0601
set_char_has_used_entry_exit 39@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 39@ {heading} 0.141
64@ = add_blip_for_char 39@
change_blip_display 64@ {display} BlipDisplay.BlipOnly
set_follow_node_threshold_distance 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 45@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 50
set_char_accuracy 39@ {accuracy} 100
set_char_drops_weapons_when_dead 39@ {state} False

:MUSIC2_5133
wait 1750
skip_cutscene_start_internal @MUSIC2_5543
wait 2000
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_5218
task_play_anim 41@ {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk 41@ {duration} 10000

:MUSIC2_5218
wait 500
set_fixed_camera_position 1274.983 {y} -790.5506 {z} 1084.063 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1275.575 {y} -791.356 {z} 1084.035 {switchStyle} SwitchType.JumpCut
print_now 'LOC2_BA' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:MUSIC2_5294
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC2_5320
wait 0
goto @MUSIC2_5294

:MUSIC2_5320
set_fixed_camera_position 1276.301 {y} -794.5306 {z} 1084.231 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1276.292 {y} -793.5345 {z} 1084.1429 {switchStyle} SwitchType.JumpCut
print_now 'LOC2_BB' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_5517
50@ = open_sequence_task 
task_play_anim -1 {animationName} "PED_CONSOLE_LOOSE" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 50@
perform_sequence_task 41@ {sequence} 50@
clear_sequence_task 50@

:MUSIC2_5517
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC2_5543
wait 0
goto @MUSIC2_5517

:MUSIC2_5543
skip_cutscene_end 
delete_char 40@
delete_char 41@
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1258.271 {y} -793.395 {z} 1083.2889
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 40@ {heading} 354.328
task_play_anim 40@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 40@ {handleOrTemplate} 45@
set_char_drops_weapons_when_dead 40@ {state} False
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_char_accuracy 40@ {accuracy} 100
set_inform_respected_friends 40@ {radius} 5.0 {_p3} 1
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1276.795 {y} -792.368 {z} 1083.0551
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 41@ {heading} 180.0
set_char_decision_maker 41@ {handleOrTemplate} 45@
set_char_drops_weapons_when_dead 41@ {state} False
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 5000
66@ = add_blip_for_char 41@
change_blip_display 66@ {display} BlipDisplay.BlipOnly
set_char_accuracy 41@ {accuracy} 100
set_inform_respected_friends 41@ {radius} 5.0 {_p3} 1
43@ = create_char PedType.Mission1 {modelId} 25 {x} 1262.533 {y} -805.139 {z} 1083.056
set_char_has_used_entry_exit 43@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 43@ {heading} 359.265
set_char_decision_maker 43@ {handleOrTemplate} 45@
68@ = add_blip_for_char 43@
change_blip_display 68@ {display} BlipDisplay.BlipOnly
set_char_drops_weapons_when_dead 43@ {state} False
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 5555
set_char_accuracy 43@ {accuracy} 100
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_5972
task_play_anim 41@ {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MUSIC2_5972
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
if 
  96@ == 1
goto_if_false @MUSIC2_6022
task_toggle_duck $scplayer {state} True

:MUSIC2_6022
96@ = 0
TIMERA = 0
TIMERB = 0
71@ = 9
print_help 'STP2_36'
74@ = 1

:MUSIC2_6068
if 
  74@ == 1
goto_if_false @MUSIC2_6260
$x = get_char_speed $scplayer
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_6260
if or
  is_char_in_area_3d $scplayer {leftBottomX} 1246.77 {leftBottomY} -785.08 {leftBottomZ} 1083.26 {rightTopX} 1255.87 {rightTopY} -797.69 {rightTopZ} 1090.0 {drawSphere} False
  $x > 0.0
goto_if_false @MUSIC2_6260
set_char_heading 40@ {heading} 168.503
51@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1256.29 {y} -795.6 {z} 1084.2889 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 51@
perform_sequence_task 40@ {sequence} 51@
clear_sequence_task 51@
74@ = 2

:MUSIC2_6260
if 
  has_pickup_been_collected 59@
goto_if_false @MUSIC2_6388
remove_blip 61@
61@ = add_blip_for_coord 1298.74 {y} -797.46 {z} 1083.4
if 
  is_player_playing $player1
goto_if_false @MUSIC2_6324
set_player_cycle_weapon_button $player1 {enabled} True

:MUSIC2_6324
set_blip_entry_exit 61@ {x} 1298.78 {y} -798.2 {radius} 1.0
print_now 'STP2_40' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
70@ = 3
85@ = 1

:MUSIC2_6388
if 
  is_char_dead 37@
goto_if_false @MUSIC2_6425
if 
  does_blip_exist 62@
goto_if_false @MUSIC2_6425
remove_blip 62@

:MUSIC2_6425
if 
  is_char_dead 38@
goto_if_false @MUSIC2_6462
if 
  does_blip_exist 63@
goto_if_false @MUSIC2_6462
remove_blip 63@

:MUSIC2_6462
if 
  is_char_dead 39@
goto_if_false @MUSIC2_6499
if 
  does_blip_exist 64@
goto_if_false @MUSIC2_6499
remove_blip 64@

:MUSIC2_6499
if 
  is_char_dead 40@
goto_if_false @MUSIC2_6536
if 
  does_blip_exist 65@
goto_if_false @MUSIC2_6536
remove_blip 65@

:MUSIC2_6536
if 
  is_char_dead 41@
goto_if_false @MUSIC2_6573
if 
  does_blip_exist 66@
goto_if_false @MUSIC2_6573
remove_blip 66@

:MUSIC2_6573
if 
  is_char_dead 43@
goto_if_false @MUSIC2_6610
if 
  does_blip_exist 68@
goto_if_false @MUSIC2_6610
remove_blip 68@

:MUSIC2_6610
if 
  70@ == 3
goto_if_false @MUSIC2_8699
if 
  85@ == 1
goto_if_false @MUSIC2_8011
disable_all_entry_exits False
60@ = create_pickup_with_ammo 347 {pickupType} PickupType.Once {ammo} 30 {x} 1237.418 {y} -808.5872 {z} 1084.09
delete_char 37@
delete_char 38@
delete_char 39@
37@ = create_char PedType.Mission1 {modelId} 24 {x} 1243.53 {y} -812.19 {z} 1083.04
set_char_has_used_entry_exit 37@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 37@ {heading} 270.948
set_char_decision_maker 37@ {handleOrTemplate} 45@
62@ = add_blip_for_char 37@
change_blip_display 62@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 37@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_follow_node_threshold_distance 37@ {range} 2.0
task_follow_path_nodes_to_coord 37@ {x} 1270.694 {y} -802.518 {z} 1084.05 {speed} MoveState.Walk {time} -2
set_inform_respected_friends 37@ {radius} 10.0 {_p3} 1
set_char_accuracy 37@ {accuracy} 100
38@ = create_char PedType.Mission1 {modelId} 25 {x} 1280.02 {y} -789.01 {z} 1083.05
set_char_has_used_entry_exit 38@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 38@ {heading} 91.837
set_char_decision_maker 38@ {handleOrTemplate} 45@
63@ = add_blip_for_char 38@
change_blip_display 63@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 38@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_inform_respected_friends 38@ {radius} 5.0 {_p3} 1
set_char_accuracy 38@ {accuracy} 100
42@ = create_char PedType.Mission1 {modelId} 24 {x} 1249.7679 {y} -780.616 {z} 1084.063
set_char_has_used_entry_exit 42@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 42@ {heading} 3.43
67@ = add_blip_for_char 42@
change_blip_display 67@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 42@ {handleOrTemplate} 45@
give_weapon_to_char 42@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
flush_patrol_route 
extend_patrol_route 1249.799 {y} -769.679 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1267.62 {y} -769.651 {z} 1084.0601 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1249.799 {y} -769.679 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1249.7679 {y} -780.616 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 42@ {speed} MoveState.Walk {mode} RouteMode.Loop
set_inform_respected_friends 42@ {radius} 15.0 {_p3} 2
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_7347
delete_char 41@
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1276.795 {y} -792.368 {z} 1083.0551
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 41@ {heading} 180.0
set_char_decision_maker 41@ {handleOrTemplate} 46@
give_weapon_to_char 41@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
66@ = add_blip_for_char 41@
change_blip_display 66@ {display} BlipDisplay.BlipOnly
task_play_anim 41@ {animationName} "PED_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_inform_respected_friends 41@ {radius} 20.0 {_p3} 1
goto @MUSIC2_7463

:MUSIC2_7347
remove_char_elegantly 41@
41@ = create_char PedType.Mission1 {modelId} 24 {x} 1270.616 {y} -792.298 {z} 1084.047
set_char_has_used_entry_exit 41@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 41@ {heading} 186.126
set_char_decision_maker 41@ {handleOrTemplate} 46@
give_weapon_to_char 41@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
66@ = add_blip_for_char 41@
change_blip_display 66@ {display} BlipDisplay.BlipOnly
task_sit_down 41@ {time} 400000
set_inform_respected_friends 41@ {radius} 20.0 {_p3} 1

:MUSIC2_7463
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_7622
delete_char 40@
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1256.4919 {y} -795.662 {z} 1084.282
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 40@ {heading} 186.842
task_play_anim 40@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 40@ {handleOrTemplate} 46@
give_weapon_to_char 40@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_inform_respected_friends 40@ {radius} 10.0 {_p3} 1
goto @MUSIC2_7758

:MUSIC2_7622
remove_char_elegantly 40@
40@ = create_char PedType.Mission1 {modelId} 25 {x} 1252.99 {y} -795.461 {z} 1083.282
set_char_has_used_entry_exit 40@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 40@ {heading} 186.842
task_play_anim 40@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
65@ = add_blip_for_char 40@
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 40@ {handleOrTemplate} 46@
give_weapon_to_char 40@ {weaponType} WeaponType.PistolSilenced {ammo} 99999
set_inform_respected_friends 40@ {radius} 10.0 {_p3} 1

:MUSIC2_7758
44@ = create_char PedType.Mission1 {modelId} 25 {x} 1290.667 {y} -778.9339 {z} 1083.012
set_char_has_used_entry_exit 44@ {x} 1298.78 {y} -798.2 {radius} 1.0
set_char_heading 44@ {heading} 350.151
set_follow_node_threshold_distance 44@ {range} 5.0
set_char_decision_maker 44@ {handleOrTemplate} 46@
69@ = add_blip_for_char 44@
change_blip_display 69@ {display} BlipDisplay.BlipOnly
give_weapon_to_char 44@ {weaponType} WeaponType.PistolSilenced {ammo} 5000
set_char_accuracy 44@ {accuracy} 100
flush_patrol_route 
extend_patrol_route 1289.988 {y} -766.581 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1270.314 {y} -766.564 {z} 1084.063 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 1270.074 {y} -782.155 {z} 1084.063 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 1290.246 {y} -782.463 {z} 1084.056 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 44@ {speed} MoveState.Walk {mode} RouteMode.Loop
78@ = 0
85@ = 2

:MUSIC2_8011
if 
  94@ == 0
goto_if_false @MUSIC2_8132
if 
  locate_char_any_means_3d $scplayer {x} 1282.61 {y} -787.389 {z} 1084.063 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @MUSIC2_8132
if 
  not is_char_dead 40@
goto_if_false @MUSIC2_8101
set_char_decision_maker 40@ {handleOrTemplate} 45@

:MUSIC2_8101
if 
  not is_char_dead 41@
goto_if_false @MUSIC2_8125
set_char_decision_maker 41@ {handleOrTemplate} 45@

:MUSIC2_8125
94@ = 1

:MUSIC2_8132
if 
  78@ == 0
goto_if_false @MUSIC2_8229
if 
  locate_char_on_foot_3d $scplayer {x} 1249.61 {y} -772.86 {z} 1083.46 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC2_8229
if 
  not is_char_dead 44@
goto_if_false @MUSIC2_8229
set_char_decision_maker 44@ {handleOrTemplate} 45@
78@ = 1

:MUSIC2_8229
if 
  85@ > 0
goto_if_false @MUSIC2_8302
if 
  71@ == 9
goto_if_false @MUSIC2_8302
if 
  TIMERA > 8500
goto_if_false @MUSIC2_8302
print_help 'STP2_33'
71@ = 10

:MUSIC2_8302
34@ = get_char_area_visible $scplayer
if 
  34@ == 0
goto_if_false @MUSIC2_8403
remove_blip 61@

:MUSIC2_8333
if 
  not get_fading_status 
goto_if_false @MUSIC2_8357
wait 0
goto @MUSIC2_8333

:MUSIC2_8357
set_char_coordinates $scplayer {x} 1299.6639 {y} -800.546 {z} 83.148
set_char_heading $scplayer {heading} 271.284
set_camera_behind_player 
85@ = 2
70@ = 4

:MUSIC2_8403
if 
  is_char_dead 37@
goto_if_false @MUSIC2_8440
if 
  does_blip_exist 62@
goto_if_false @MUSIC2_8440
remove_blip 62@

:MUSIC2_8440
if 
  is_char_dead 38@
goto_if_false @MUSIC2_8477
if 
  does_blip_exist 63@
goto_if_false @MUSIC2_8477
remove_blip 63@

:MUSIC2_8477
if 
  is_char_dead 39@
goto_if_false @MUSIC2_8514
if 
  does_blip_exist 64@
goto_if_false @MUSIC2_8514
remove_blip 64@

:MUSIC2_8514
if 
  is_char_dead 40@
goto_if_false @MUSIC2_8551
if 
  does_blip_exist 65@
goto_if_false @MUSIC2_8551
remove_blip 65@

:MUSIC2_8551
if 
  is_char_dead 41@
goto_if_false @MUSIC2_8588
if 
  does_blip_exist 66@
goto_if_false @MUSIC2_8588
remove_blip 66@

:MUSIC2_8588
if 
  is_char_dead 42@
goto_if_false @MUSIC2_8625
if 
  does_blip_exist 67@
goto_if_false @MUSIC2_8625
remove_blip 67@

:MUSIC2_8625
if 
  is_char_dead 43@
goto_if_false @MUSIC2_8662
if 
  does_blip_exist 68@
goto_if_false @MUSIC2_8662
remove_blip 68@

:MUSIC2_8662
if 
  is_char_dead 44@
goto_if_false @MUSIC2_8699
if 
  does_blip_exist 69@
goto_if_false @MUSIC2_8699
remove_blip 69@

:MUSIC2_8699
if 
  85@ == 2
goto_if_false @MUSIC2_8988
if 
  70@ == 4
goto_if_false @MUSIC2_8988
61@ = add_blip_for_coord 790.0 {y} -1631.0 {z} 12.43
clear_mission_audio MissionAudioSlot.Slot3
53@ = create_car 510 {x} 1306.718 {y} -797.24 {z} 83.66
set_car_heading 53@ {heading} 206.253
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 580
mark_model_as_no_longer_needed #KMB_RHYMESBOOK
mark_model_as_no_longer_needed #CJ_JUICE_CAN
mark_model_as_no_longer_needed 347
remove_animation "CRIB"
remove_animation "VENDING"
mark_model_as_no_longer_needed 335
set_radar_zoom 0
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
print_now 'STP2_30' {time} 7000 {flag} 1
70@ = 5
TIMERA = 0

:MUSIC2_8988
if 
  97@ == 0
goto_if_false @MUSIC2_9048
if 
  not is_car_dead 53@
goto_if_false @MUSIC2_9048
if 
  is_char_sitting_in_car $scplayer {vehicle} 53@
goto_if_false @MUSIC2_9048
97@ = 1

:MUSIC2_9048
if 
  70@ == 5
goto_if_false @MUSIC2_9582
if 
  locate_char_any_means_3d $scplayer {x} 788.05 {y} -1630.3101 {z} 12.42 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @MUSIC2_9582
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1000 {direction} Fade.Out

:MUSIC2_9132
if 
  get_fading_status 
goto_if_false @MUSIC2_9156
wait 0
goto @MUSIC2_9132

:MUSIC2_9156
clear_area -1095.489 {y} -1630.609 {z} 50.0 {radius} 50.0 {clearParticles} True
mark_car_as_no_longer_needed 53@
if 
  is_char_in_any_car $scplayer
goto_if_false @MUSIC2_9276
$car = store_car_char_is_in $scplayer
set_car_coordinates $car {x} 784.686 {y} -1613.7 {z} 12.22
set_car_heading $car {heading} 353.08
warp_char_from_car_to_coord $scplayer {x} 785.75 {y} -1632.84 {z} 12.43
set_char_heading $scplayer {heading} 316.0
goto @MUSIC2_9306

:MUSIC2_9276
set_char_coordinates $scplayer {x} 785.75 {y} -1632.84 {z} 12.43
set_char_heading $scplayer {heading} 316.0

:MUSIC2_9306
request_animation "GANGS"
load_special_character 1 {modelName} 'OGLOC'
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21805
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 21806
load_all_models_now 

:MUSIC2_9352
if or
  not has_animation_loaded "GANGS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC2_9391
wait 0
goto @MUSIC2_9352

:MUSIC2_9391
52@ = create_char PedType.Special {modelId} 290 {x} 792.72 {y} -1626.6 {z} 12.43
set_char_heading 52@ {heading} 114.71
set_char_decision_maker 52@ {handleOrTemplate} 46@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
shut_char_up 52@ {state} True
shut_char_up $scplayer {state} True
do_fade 2000 {direction} Fade.In
95@ = 1
set_fixed_camera_position 785.7997 {y} -1635.4301 {z} 13.4579 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 786.2913 {y} -1634.5649 {z} 13.3583 {switchStyle} SwitchType.JumpCut
task_go_straight_to_coord $scplayer {x} 788.98 {y} -1629.61 {z} 12.59 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord 52@ {x} 788.98 {y} -1629.61 {z} 12.59 {speed} MoveState.Walk {time} -1
TIMERA = 0
70@ = 6

:MUSIC2_9582
if 
  70@ == 6
goto_if_false @MUSIC2_9837
if 
  TIMERA > 2440
goto_if_false @MUSIC2_9837
if 
  not is_char_dead 52@
goto_if_false @MUSIC2_9837
set_fixed_camera_position 788.2733 {y} -1628.832 {z} 13.9503 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 788.473 {y} -1629.811 {z} 13.9214 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 787.973 {y} -1630.274 {z} 12.42
set_char_heading $scplayer {heading} 310.378
set_char_coordinates 52@ {x} 788.7348 {y} -1629.626 {z} 12.42
set_char_heading 52@ {heading} 130.378
clear_char_tasks_immediately 52@
clear_char_tasks_immediately $scplayer
task_play_anim 52@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
70@ = 7

:MUSIC2_9837
if 
  70@ > 4
goto_if_false @MUSIC2_10502
if 
  not is_char_dead 52@
goto_if_false @MUSIC2_10502
if 
  95@ == 1
goto_if_false @MUSIC2_9924
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000
print_now 'LOC2_CA' {time} 5000 {flag} 1
95@ = 2

:MUSIC2_9924
if 
  95@ == 2
goto_if_false @MUSIC2_9982
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC2_9982
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21807
95@ = 3

:MUSIC2_9982
if 
  95@ == 3
goto_if_false @MUSIC2_10035
play_mission_audio MissionAudioSlot.Slot2
print_now 'LOC2_CB' {time} 5000 {flag} 1
start_char_facial_talk 52@ {duration} 10000
95@ = 4

:MUSIC2_10035
if 
  95@ == 4
goto_if_false @MUSIC2_10093
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC2_10093
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk 52@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 21808
95@ = 5

:MUSIC2_10093
if 
  95@ == 5
goto_if_false @MUSIC2_10161
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC2_10161
print_now 'LOC2_CC' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000
play_mission_audio MissionAudioSlot.Slot1
95@ = 6

:MUSIC2_10161
if 
  95@ == 6
goto_if_false @MUSIC2_10208
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC2_10208
clear_prints 
stop_char_facial_talk $scplayer
95@ = 7

:MUSIC2_10208
if 
  95@ == 7
goto_if_false @MUSIC2_10366
set_fixed_camera_position 773.2047 {y} -1633.066 {z} 17.7324 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 774.1813 {y} -1632.908 {z} 17.5877 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot2
print_now 'LOC2_DC' {time} 5000 {flag} 1
start_char_facial_talk 52@ {duration} 4000
task_go_straight_to_coord $scplayer {x} 806.1331 {y} -1630.219 {z} 12.3906 {speed} MoveState.Walk {time} 60000
task_go_straight_to_coord 52@ {x} 793.8177 {y} -1625.155 {z} 12.3828 {speed} MoveState.Walk {time} 60000
95@ = 8

:MUSIC2_10366
if 
  95@ == 8
goto_if_false @MUSIC2_10502
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC2_10502
do_fade 1000 {direction} Fade.Out
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2

:MUSIC2_10412
if 
  get_fading_status 
goto_if_false @MUSIC2_10436
wait 0
goto @MUSIC2_10412

:MUSIC2_10436
set_char_coordinates $scplayer {x} 808.299 {y} -1630.424 {z} 12.42
set_char_heading $scplayer {heading} 254.602
do_fade 1000 {direction} Fade.In
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
goto @MUSIC2_10527
95@ = 9

:MUSIC2_10502
goto @MUSIC2_745

:MUSIC2_10509
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC2_10527
register_mission_passed 'STRAP_2'
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 4
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
$flag_strap_mission_counter += 1
return 

:MUSIC2_10582
set_script_limit_to_gang_size 99
remove_char_elegantly 52@
remove_pickup 60@
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
if 
  is_player_playing $player1
goto_if_false @MUSIC2_10652
set_player_cycle_weapon_button $player1 {enabled} True
set_player_group_recruitment $player1 {state} True

:MUSIC2_10652
set_wanted_multiplier 1.0
set_radar_zoom 0
shut_char_up $scplayer {state} False
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_pickup 59@
unload_special_character 1
remove_animation "GANGS"
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 580
mark_model_as_no_longer_needed #KMB_RHYMESBOOK
mark_model_as_no_longer_needed #CJ_JUICE_CAN
mark_model_as_no_longer_needed 347
remove_animation "CRIB"
remove_animation "VENDING"
mark_model_as_no_longer_needed 335
$onmission = 0
disable_all_entry_exits False
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 33---------------
// Originally: Management Issues

:MUSIC3
script_name 'MUSIC3'
gosub @MUSIC3_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC3_38
gosub @MUSIC3_15492

:MUSIC3_38
gosub @MUSIC3_15596
terminate_this_script 

:MUSIC3_47
$onmission = 1
register_mission_given 
load_mission_text 'STRAP3'
if 
  $onmission == 0
goto_if_false @MUSIC3_805
90@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1123.2 {z} 22.9
91@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1127.2 {z} 22.9
92@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1131.2 {z} 22.9
93@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1123.2 {z} 22.9
94@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1127.2 {z} 22.9
95@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1131.2 {z} 22.9
96@ = create_object #DYN_ROADBARRIER_2 {x} 1016.5 {y} -1133.2 {z} 22.9
97@ = create_object #DYN_ROADBARRIER_2 {x} 1012.5 {y} -1133.2 {z} 22.9
98@ = create_object #DYN_ROADBARRIER_2 {x} 1008.5 {y} -1133.2 {z} 22.9
99@ = create_object #DYN_ROADBARRIER_2 {x} 1028.5 {y} -1133.2 {z} 22.9
100@ = create_object #DYN_ROADBARRIER_2 {x} 1032.5 {y} -1133.2 {z} 22.9
101@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
78@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
79@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
80@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
81@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
82@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
83@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
84@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
85@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
86@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
87@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
88@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
89@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
113@ = add_blip_for_coord 1118.3 {y} -1140.9 {z} 22.2
63@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
70@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
67@ = create_car 507 {x} 1174.1 {y} -926.8 {z} 43.6
65@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
64@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9
111@ = create_char PedType.Mission2 {modelId} 280 {x} 1023.4 {y} -1121.0 {z} 22.9

:MUSIC3_805
clear_prints 
wait 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
175@ = 0
126@ = 0
$x = 0.0
$y = 0.0
$z = 0.0
140@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
set_lvar_int_to_constant 136@ = 24
141@ = 0
142@ = 0
225@ = 0.0
226@ = 0.0
227@ = 0.0
228@ = 0.0
229@ = 0.0
230@ = 0.0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
$minutes = 0
150@ = 0
157@ = 0.0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
220@ = 0
221@ = 0
222@ = 0
223@ = 0
224@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
156@ = 0
170@ = 0
171@ = 0
make_player_gang_disappear 
set_area_visible 10
set_fading_colour 0 {g} 0 {b} 0
load_cutscene 'STRAP3A'

:MUSIC3_1314
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC3_1338
wait 0
goto @MUSIC3_1314

:MUSIC3_1338
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC3_1347
if 
  not has_cutscene_finished 
goto_if_false @MUSIC3_1371
wait 0
goto @MUSIC3_1347

:MUSIC3_1371
do_fade 0 {direction} Fade.Out

:MUSIC3_1377
if 
  get_fading_status 
goto_if_false @MUSIC3_1401
wait 0
goto @MUSIC3_1377

:MUSIC3_1401
set_area_visible 0
clear_cutscene 
make_player_gang_reappear 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 24
request_model 507
request_model 346
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 24600
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
233@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
234@ = load_char_decision_maker DecisionMakerType.Tough
clear_area 1214.8 {y} -921.7 {z} 41.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23318
73@ = create_car 507 {x} 1214.8 {y} -921.7 {z} 41.7
set_car_heading 73@ {heading} 169.3
change_car_colour 73@ {color1} 0 {color2} 0
set_can_respray_car 73@ {changeColors} False
set_car_only_damaged_by_player 73@ {state} True
lock_car_doors 73@ {lockStatus} CarLock.Unlocked
set_car_only_damaged_by_player 73@ {state} True
set_can_burst_car_tyres 73@ {state} False
113@ = add_blip_for_car 73@
76@ = create_char_inside_car 73@ {pedType} PedType.Mission2 {modelId} 24
give_weapon_to_char 76@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_decision_maker 76@ {handleOrTemplate} 234@
clear_area 1297.6 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23318
72@ = create_car 507 {x} 1297.6 {y} -1137.2 {z} 22.5
set_car_heading 72@ {heading} 90.0
set_car_only_damaged_by_player 72@ {state} True
change_car_colour 72@ {color1} 0 {color2} 0
mark_car_as_convoy_car 72@ {state} True
lock_car_doors 72@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position_and_dont_load_collision 72@ {state} True
set_can_burst_car_tyres 72@ {state} False
clear_area 1316.5 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23318
74@ = create_car 507 {x} 1316.5 {y} -1137.2 {z} 22.5
set_car_heading 74@ {heading} 90.0
set_car_only_damaged_by_player 74@ {state} True
change_car_colour 74@ {color1} 0 {color2} 0
mark_car_as_convoy_car 74@ {state} True
lock_car_doors 74@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_driving_style 74@ {drivingStyle} DrivingMode.SlowDownForCars
freeze_car_position_and_dont_load_collision 74@ {state} True
set_can_burst_car_tyres 74@ {state} False
set_car_straight_line_distance 74@ {distance} 50
set_car_can_be_visibly_damaged 74@ {state} False
mark_road_node_as_dont_wander 76.6 {y} -1527.6 {z} 4.1
mark_road_node_as_dont_wander 162.2 {y} -1394.6 {z} 46.8
mark_road_node_as_dont_wander 273.2 {y} -980.9 {z} 47.4
mark_road_node_as_dont_wander 362.8 {y} -1147.8 {z} 77.0
mark_road_node_as_dont_wander 378.1 {y} -1147.4 {z} 77.0
mark_road_node_as_dont_wander 1536.4 {y} -994.8 {z} 41.5
mark_road_node_as_dont_wander 1638.7 {y} -1177.5 {z} 54.1
mark_road_node_as_dont_wander 1873.9 {y} -1009.4 {z} 35.0
mark_road_node_as_dont_wander 2887.8 {y} -1121.4 {z} 9.8
mark_road_node_as_dont_wander 165.8 {y} -1185.3 {z} 51.8
mark_road_node_as_dont_wander 695.7 {y} -995.6 {z} 51.0
mark_road_node_as_dont_wander 794.8 {y} -1033.6 {z} 23.7
mark_road_node_as_dont_wander 1311.1 {y} -701.7 {z} 91.7
mark_road_node_as_dont_wander 2838.7 {y} -1024.2 {z} 21.5
print_now 'STP3_01' {time} 7000 {flag} 1
print 'STP3_02' {time} 7000 {flag} 1
clear_area 794.6 {y} -1597.1 {z} 12.5 {radius} 1.0 {clearParticles} True
load_scene 794.6 {y} -1597.1 {z} 12.5
set_char_coordinates $scplayer {x} 794.6 {y} -1597.1 {z} 12.5
set_char_heading $scplayer {heading} 45.0
set_time_of_day 16 {minutes} 0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
enable_ambient_crime False
TIMERB = 0
do_fade 500 {direction} Fade.In

:MUSIC3_2268
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MUSIC3_2294
goto @MUSIC3_15510

:MUSIC3_2294
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_2326
goto @MUSIC3_15492

:MUSIC3_2326
144@ = get_game_timer 
set_lvar_int_to_lvar_int 143@ = 144@
sub_int_lvar_from_int_lvar 143@ -= 145@
set_lvar_int_to_lvar_int 145@ = 144@
sub_int_lvar_from_int_lvar 146@ -= 143@
add_int_lvar_to_int_lvar 159@ += 143@
149@, $minutes = get_time_of_day 
if 
  122@ == 0
goto_if_false @MUSIC3_4538
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @MUSIC3_2442
set_char_coordinates $scplayer {x} 1179.5 {y} -920.3 {z} 42.2
set_char_heading $scplayer {heading} 99.7

:MUSIC3_2442
if 
  175@ == 0
goto_if_false @MUSIC3_2593
if or
  123@ == 1
  123@ == 2
goto_if_false @MUSIC3_2593
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 73@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @MUSIC3_2593
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_2579
if 
  is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_2572
print 'STP3_19' {time} 7000 {flag} 1

:MUSIC3_2572
goto @MUSIC3_2586

:MUSIC3_2579
175@ = 2

:MUSIC3_2586
175@ = 1

:MUSIC3_2593
if 
  175@ == 1
goto_if_false @MUSIC3_2753
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_2746
if 
  not is_char_sitting_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_2739
clear_this_print 'STP3_19'
if 
  locate_char_any_means_char_3d $scplayer {target} 76@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_2732
if 
  174@ == 0
goto_if_false @MUSIC3_2732
174@ = 1
176@ = 0
gosub @MUSIC3_24549

:MUSIC3_2732
175@ = 2

:MUSIC3_2739
goto @MUSIC3_2753

:MUSIC3_2746
175@ = 2

:MUSIC3_2753
if 
  175@ == 2
goto_if_false @MUSIC3_2872
if 
  174@ == 0
goto_if_false @MUSIC3_2872
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_2872
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_2865
clear_this_print 'STP3_19'
print 'STP3_11' {time} 7000 {flag} 1
175@ = 3
goto @MUSIC3_2872

:MUSIC3_2865
175@ = 3

:MUSIC3_2872
if 
  123@ == 0
goto_if_false @MUSIC3_3325
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3325
if or
  locate_char_any_means_char_2d $scplayer {target} 76@ {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
  149@ > 17
goto_if_false @MUSIC3_3325
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC3_3318
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC3_3097
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
set_player_control $player1 {state} False
switch_widescreen True
174@ = 7
176@ = 0
177@ = 1
gosub @MUSIC3_24549
shut_char_up_for_scripted_speech $scplayer {state} True
124@ = 1
skip_cutscene_start_internal @MUSIC3_3486
task_use_mobile_phone $scplayer {start} True
TIMERA = 0
167@ = 1
123@ = 1
goto @MUSIC3_3311

:MUSIC3_3097
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3262
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_3262
232@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 73@ {time} -1
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1211.0 {y} -932.3 {z} 41.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1160.8 {y} -1027.5 {z} 31.4 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_wander -1 {vehicle} 73@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@
add_stuck_car_check_with_warp 73@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7

:MUSIC3_3262
174@ = 7
176@ = 0
177@ = 5
gosub @MUSIC3_24549
shut_char_up_for_scripted_speech $scplayer {state} True
167@ = 3
123@ = 1

:MUSIC3_3311
goto @MUSIC3_3325

:MUSIC3_3318
123@ = 1

:MUSIC3_3325
if 
  167@ == 1
goto_if_false @MUSIC3_3415
if 
  TIMERA > 2000
goto_if_false @MUSIC3_3415
if 
  174@ == 0
goto_if_false @MUSIC3_3415
174@ = 7
176@ = 1
177@ = 2
gosub @MUSIC3_24549
167@ = 2

:MUSIC3_3415
if 
  167@ == 2
goto_if_false @MUSIC3_3703
if 
  174@ == 0
goto_if_false @MUSIC3_3703
174@ = 7
176@ = 2
177@ = 5
gosub @MUSIC3_24549
124@ = 0

:MUSIC3_3486
skip_cutscene_end 
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_3520
goto @MUSIC3_15492

:MUSIC3_3520
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3685
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_3685
232@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 73@ {time} -1
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1211.0 {y} -932.3 {z} 41.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1160.8 {y} -1027.5 {z} 31.4 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.StopForCars
task_car_drive_wander -1 {vehicle} 73@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@
add_stuck_car_check_with_warp 73@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7

:MUSIC3_3685
set_player_control $player1 {state} True
switch_widescreen False
167@ = 3

:MUSIC3_3703
if 
  167@ == 3
goto_if_false @MUSIC3_3873
if 
  174@ == 0
goto_if_false @MUSIC3_3789
$task_status = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @MUSIC3_3775
task_use_mobile_phone $scplayer {start} False

:MUSIC3_3775
shut_char_up_for_scripted_speech $scplayer {state} False
167@ = 4

:MUSIC3_3789
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @MUSIC3_3873
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
$task_status = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @MUSIC3_3859
task_use_mobile_phone $scplayer {start} False

:MUSIC3_3859
shut_char_up_for_scripted_speech $scplayer {state} False
167@ = 4

:MUSIC3_3873
if 
  123@ == 1
goto_if_false @MUSIC3_3985
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_3985
if 
  is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_3985
if 
  149@ > 20
goto_if_false @MUSIC3_3985
task_car_drive_to_coord 76@ {vehicle} 73@ {x} 1316.4 {y} -1136.5 {z} 22.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
123@ = 2

:MUSIC3_3985
if 
  123@ == 2
goto_if_false @MUSIC3_4106
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4106
if 
  is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_4106
if 
  locate_car_2d 73@ {x} 1316.4 {y} -1136.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC3_4106
print_now 'STP3_03' {time} 4000 {flag} 1
150@ = 1
122@ = 9

:MUSIC3_4106
if 
  123@ > 0
goto_if_false @MUSIC3_4339
if 
  3 > 123@
goto_if_false @MUSIC3_4339
if 
  has_car_been_damaged_by_char 73@ {handle} $scplayer
goto_if_false @MUSIC3_4223
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4211
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_4211
remove_stuck_car_check 73@
123@ = 3

:MUSIC3_4223
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4327
if 
  not is_char_in_car 76@ {vehicle} 73@
goto_if_false @MUSIC3_4320
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_4308
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 76@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_4308
remove_stuck_car_check 73@
123@ = 3

:MUSIC3_4320
goto @MUSIC3_4339

:MUSIC3_4327
remove_stuck_car_check 73@
123@ = 3

:MUSIC3_4339
if 
  149@ > 21
goto_if_false @MUSIC3_4371
150@ = 0
122@ = 9

:MUSIC3_4371
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 73@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @MUSIC3_4416
set_car_only_damaged_by_player 73@ {state} False
goto @MUSIC3_4423

:MUSIC3_4416
set_car_only_damaged_by_player 73@ {state} True

:MUSIC3_4423
if 
  123@ == 3
goto_if_false @MUSIC3_4538
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_4538
remove_blip 113@
113@ = add_blip_for_coord 1306.4 {y} -1137.5 {z} 22.5
clear_this_print 'STP3_11'
print 'STP3_33' {time} 7000 {flag} 1
mark_model_as_no_longer_needed 330
175@ = 0
123@ = 0
122@ = 1

:MUSIC3_4538
if 
  122@ == 1
goto_if_false @MUSIC3_5519
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @MUSIC3_4601
set_char_coordinates $scplayer {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0

:MUSIC3_4601
if 
  149@ > 21
goto_if_false @MUSIC3_4633
150@ = 0
122@ = 9

:MUSIC3_4633
if 
  123@ == 0
goto_if_false @MUSIC3_4899
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_4899
if or
  not is_car_health_greater 73@ {health} 700
  is_car_visibly_damaged 73@
goto_if_false @MUSIC3_4773
clear_this_print 'STP3_33'
if 
  175@ == 0
goto_if_false @MUSIC3_4773
remove_blip $spray_shop2
$spray_shop2 = add_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
print 'STP3_22' {time} 11000 {flag} 1
175@ = 1

:MUSIC3_4773
if 
  is_car_health_greater 73@ {health} 700
goto_if_false @MUSIC3_4899
if 
  not is_car_visibly_damaged 73@
goto_if_false @MUSIC3_4899
clear_this_print 'STP3_22'
remove_blip $spray_shop2
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
remove_blip 113@
113@ = add_blip_for_coord 1306.4 {y} -1137.5 {z} 22.5
160@ = 0
159@ = 0
175@ = 0
123@ = 1

:MUSIC3_4899
if 
  160@ == 0
goto_if_false @MUSIC3_4959
if 
  159@ > 4000
goto_if_false @MUSIC3_4959
print 'STP3_33' {time} 7000 {flag} 1
160@ = 1

:MUSIC3_4959
if 
  123@ == 1
goto_if_false @MUSIC3_5408
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_5408
if 
  locate_car_3d 73@ {x} 1306.4 {y} -1137.5 {z} 22.5 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @MUSIC3_5217
157@ = get_car_heading 73@
if 
  157@ > 95.0
goto_if_false @MUSIC3_5110
if 
  360.0 >= 157@
goto_if_false @MUSIC3_5110
print_now 'STP3_25' {time} 7000 {flag} 1

:MUSIC3_5110
if 
  85.0 > 157@
goto_if_false @MUSIC3_5168
if 
  157@ >= 0.0
goto_if_false @MUSIC3_5168
print_now 'STP3_25' {time} 7000 {flag} 1

:MUSIC3_5168
if 
  157@ >= 85.0
goto_if_false @MUSIC3_5217
if 
  95.0 >= 157@
goto_if_false @MUSIC3_5217
123@ = 2

:MUSIC3_5217
if 
  161@ == 0
goto_if_false @MUSIC3_5327
if 
  locate_car_3d 73@ {x} 1306.4 {y} -1137.5 {z} 22.5 {xRadius} 15.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @MUSIC3_5327
if or
  is_car_on_screen 72@
  is_car_on_screen 74@
goto_if_false @MUSIC3_5327
print_now 'STP3_25' {time} 7000 {flag} 1
161@ = 1

:MUSIC3_5327
if or
  not is_car_health_greater 73@ {health} 700
  is_car_visibly_damaged 73@
goto_if_false @MUSIC3_5408
remove_blip 113@
remove_blip $spray_shop2
$spray_shop2 = add_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
clear_prints 
print 'STP3_22' {time} 11000 {flag} 1
123@ = 0

:MUSIC3_5408
if 
  is_car_health_greater 73@ {health} 700
goto_if_false @MUSIC3_5512
if 
  not is_car_visibly_damaged 73@
goto_if_false @MUSIC3_5512
if 
  123@ == 2
goto_if_false @MUSIC3_5512
set_player_control $player1 {state} False
mark_char_as_no_longer_needed 76@
remove_blip 113@
remove_blip $spray_shop2
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
122@ = 2

:MUSIC3_5512
gosub @MUSIC3_20713

:MUSIC3_5519
if 
  122@ == 9
goto_if_false @MUSIC3_5551
123@ = 0
122@ = 10

:MUSIC3_5551
if 
  122@ == 10
goto_if_false @MUSIC3_7206
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC3_6507
if 
  123@ == 0
goto_if_false @MUSIC3_6507
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC3_5621
if 
  get_fading_status 
goto_if_false @MUSIC3_5645
wait 0
goto @MUSIC3_5621

:MUSIC3_5645
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
if 
  locate_char_any_means_2d $scplayer {x} 1306.4 {y} -1137.5 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_5766
clear_area 1247.1 {y} -1156.0 {z} 22.7 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1247.1 {y} -1156.0 {z} 22.7

:MUSIC3_5766
load_scene 1305.5 {y} -1131.7 {z} 22.6
delete_car 72@
mark_car_as_no_longer_needed 73@
delete_char 76@
delete_car 74@
set_radio_channel RadioChannel.UserTracks
clear_area 1303.5 {y} -1131.5 {z} 22.6 {radius} 5.0 {clearParticles} True
75@ = create_char PedType.Mission2 {modelId} 24 {x} 1303.5 {y} -1131.5 {z} 22.6
set_char_heading 75@ {heading} 168.1
set_char_decision_maker 75@ {handleOrTemplate} 233@
clear_area 1297.6 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23318
72@ = create_car 507 {x} 1297.6 {y} -1137.2 {z} 22.5
set_car_heading 72@ {heading} 90.0
change_car_colour 72@ {color1} 0 {color2} 0
mark_car_as_convoy_car 72@ {state} True
task_enter_car_as_driver 75@ {vehicle} 72@ {time} -1
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 5.0 {clearParticles} True
77@ = create_char PedType.Mission2 {modelId} 24 {x} 1305.5 {y} -1131.7 {z} 22.6
set_char_heading 77@ {heading} 168.1
set_char_decision_maker 77@ {handleOrTemplate} 233@
clear_area 1316.5 {y} -1137.2 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23318
74@ = create_car 507 {x} 1316.5 {y} -1137.2 {z} 22.5
set_car_heading 74@ {heading} 90.0
change_car_colour 74@ {color1} 0 {color2} 0
mark_car_as_convoy_car 74@ {state} True
set_car_straight_line_distance 74@ {distance} 50
if 
  150@ == 1
goto_if_false @MUSIC3_6278
clear_area 1306.4 {y} -1137.5 {z} 22.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 169@ = 507
gosub @MUSIC3_23318
73@ = create_car 507 {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0
change_car_colour 73@ {color1} 0 {color2} 0
mark_car_as_convoy_car 74@ {state} True
set_car_straight_line_distance 73@ {distance} 50
140@ = generate_random_int_in_range 0 {max} 3
76@ = create_char_inside_car 73@ {pedType} PedType.Mission2 {modelId} 135@(140@,5i)
goto @MUSIC3_6352

:MUSIC3_6278
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_6352
if 
  locate_car_2d 73@ {x} 1306.4 {y} -1137.5 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_6352
set_car_coordinates 73@ {x} 1247.5 {y} -1151.8 {z} 22.6

:MUSIC3_6352
set_fixed_camera_position 1292.8 {y} -1143.5 {z} 24.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1302.3 {y} -1136.2 {z} 24.0 {switchStyle} SwitchType.JumpCut
clear_prints 
if 
  150@ == 0
goto_if_false @MUSIC3_6446
print_now 'STP3_20' {time} 8000 {flag} 1
goto @MUSIC3_6462

:MUSIC3_6446
print_now 'STP3_21' {time} 8000 {flag} 1

:MUSIC3_6462
do_fade 500 {direction} Fade.In

:MUSIC3_6469
if 
  get_fading_status 
goto_if_false @MUSIC3_6493
wait 0
goto @MUSIC3_6469

:MUSIC3_6493
TIMERA = 0
123@ = 1

:MUSIC3_6507
if 
  123@ == 1
goto_if_false @MUSIC3_6593
if 
  TIMERA > 1000
goto_if_false @MUSIC3_6593
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_6586
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_6586
task_enter_car_as_driver 77@ {vehicle} 74@ {time} -1

:MUSIC3_6586
123@ = 2

:MUSIC3_6593
if 
  123@ == 2
goto_if_false @MUSIC3_6959
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_6959
$task_status = get_script_task_status 77@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_6959
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_6744
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_6744
231@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 72@ {x} 1103.3 {y} -1140.9 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 75@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_6744
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_6839
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_6839
231@ = open_sequence_task 
task_pause -1 {time} 500
task_car_drive_to_coord -1 {vehicle} 74@ {x} 1103.3 {y} -1140.9 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 77@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_6839
if 
  150@ == 1
goto_if_false @MUSIC3_6952
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_6952
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_6952
231@ = open_sequence_task 
task_pause -1 {time} 1000
task_car_drive_to_coord -1 {vehicle} 73@ {x} 1103.3 {y} -1140.9 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 76@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_6952
123@ = 3

:MUSIC3_6959
if 
  123@ == 3
goto_if_false @MUSIC3_7206
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_7206
if 
  not is_car_on_screen 72@
goto_if_false @MUSIC3_7206
do_fade 500 {direction} Fade.Out

:MUSIC3_7016
if 
  get_fading_status 
goto_if_false @MUSIC3_7040
wait 0
goto @MUSIC3_7016

:MUSIC3_7040
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
225@, 226@, 227@ = get_char_coordinates $scplayer
load_scene 225@ {y} 226@ {z} 227@
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  150@ == 0
goto_if_false @MUSIC3_7152
print_now 'STP3_20' {time} 5500 {flag} 1
goto @MUSIC3_7168

:MUSIC3_7152
print_now 'STP3_21' {time} 5500 {flag} 1

:MUSIC3_7168
do_fade 500 {direction} Fade.In

:MUSIC3_7175
if 
  get_fading_status 
goto_if_false @MUSIC3_7199
wait 0
goto @MUSIC3_7175

:MUSIC3_7199
goto @MUSIC3_15492

:MUSIC3_7206
if 
  122@ == 2
goto_if_false @MUSIC3_9825
if 
  126@ == 0
goto_if_false @MUSIC3_7589
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
switch_audio_zone 'AWARDS' {state} True
shut_all_chars_up True
clear_wanted_level $player1
clear_area 1303.5 {y} -1131.5 {z} 22.6 {radius} 5.0 {clearParticles} True
75@ = create_char PedType.Mission2 {modelId} 24 {x} 1303.5 {y} -1131.5 {z} 22.6
set_char_heading 75@ {heading} 168.1
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_decision_maker 75@ {handleOrTemplate} 233@
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 5.0 {clearParticles} True
77@ = create_char PedType.Mission2 {modelId} 24 {x} 1305.5 {y} -1131.7 {z} 22.6
set_char_heading 77@ {heading} 168.1
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_decision_maker 77@ {handleOrTemplate} 233@
clear_area 1306.4 {y} -1137.5 {z} 22.5 {radius} 5.0 {clearParticles} True
set_car_coordinates 73@ {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 1288.6 {y} -1146.2 {z} 28.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1301.0 {y} -1137.2 {z} 23.3 {switchStyle} SwitchType.JumpCut
freeze_car_position_and_dont_load_collision 72@ {state} False
task_enter_car_as_driver 75@ {vehicle} 72@ {time} -1
TIMERA = 0
126@ = 1

:MUSIC3_7589
if 
  126@ == 1
goto_if_false @MUSIC3_7680
if 
  TIMERA > 1000
goto_if_false @MUSIC3_7680
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_7659
freeze_car_position_and_dont_load_collision 74@ {state} False
task_enter_car_as_driver 77@ {vehicle} 74@ {time} -1

:MUSIC3_7659
124@ = 1
skip_cutscene_start_internal @MUSIC3_8918
126@ = 2

:MUSIC3_7680
if 
  126@ == 2
goto_if_false @MUSIC3_7778
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_7778
$task_status = get_script_task_status 77@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_7778
174@ = 8
176@ = 0
177@ = 2
gosub @MUSIC3_24549
126@ = 3

:MUSIC3_7778
if 
  126@ == 3
goto_if_false @MUSIC3_8154
if 
  174@ == 0
goto_if_false @MUSIC3_8154
do_fade 500 {direction} Fade.Out

:MUSIC3_7821
if 
  get_fading_status 
goto_if_false @MUSIC3_7845
wait 0
goto @MUSIC3_7821

:MUSIC3_7845
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_7877
goto @MUSIC3_15492

:MUSIC3_7877
request_model 20
request_model 91
request_model 367
request_model 409
request_model 280
request_model #DYN_ROADBARRIER_2
load_all_models_now 
set_radio_channel RadioChannel.UserTracks

:MUSIC3_7911
if 
  130@ == 0
goto_if_false @MUSIC3_7947
wait 0
gosub @MUSIC3_16529
goto @MUSIC3_7911

:MUSIC3_7947
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_7979
goto @MUSIC3_15492

:MUSIC3_7979
set_time_of_day 22 {minutes} 0
clear_area 1022.2 {y} -1133.2 {z} 24.0 {radius} 80.0 {clearParticles} True
load_scene 1022.2 {y} -1133.2 {z} 24.0
set_fixed_camera_position 996.6 {y} -1144.4 {z} 29.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1018.9 {y} -1133.7 {z} 23.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC3_8084
if 
  get_fading_status 
goto_if_false @MUSIC3_8108
wait 0
goto @MUSIC3_8084

:MUSIC3_8108
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_8140
goto @MUSIC3_15492

:MUSIC3_8140
126@ = 4
TIMERA = 0

:MUSIC3_8154
if 
  126@ == 4
goto_if_false @MUSIC3_8322
if 
  not is_car_dead 66@
goto_if_false @MUSIC3_8315
if 
  not is_char_dead 69@
goto_if_false @MUSIC3_8315
$task_status = get_script_task_status 69@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_8315
225@, 226@, $z = get_offset_from_car_in_world_coords 66@ {xOffset} 1.7 {yOffset} 1.5 {zOffset} 0.0
231@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 225@ {y} 226@ {z} 227@ {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 0.0
close_sequence_task 231@
perform_sequence_task 69@ {sequence} 231@
clear_sequence_task 231@

:MUSIC3_8315
126@ = 5

:MUSIC3_8322
if 
  126@ == 5
goto_if_false @MUSIC3_8445
gosub @MUSIC3_20261
if 
  TIMERA > 4000
goto_if_false @MUSIC3_8445
set_fixed_camera_position 1026.3 {y} -1123.6 {z} 24.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1023.6 {y} -1123.8 {z} 24.3 {switchStyle} SwitchType.JumpCut
174@ = 11
176@ = 0
gosub @MUSIC3_24549
126@ = 6

:MUSIC3_8445
if 
  126@ == 6
goto_if_false @MUSIC3_8561
if 
  174@ == 0
goto_if_false @MUSIC3_8561
174@ = 12
176@ = 0
gosub @MUSIC3_24549
if 
  not is_char_dead 65@
goto_if_false @MUSIC3_8554
task_play_anim 65@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MUSIC3_8554
126@ = 7

:MUSIC3_8561
if 
  126@ == 7
goto_if_false @MUSIC3_8875
gosub @MUSIC3_20261
if 
  174@ == 0
goto_if_false @MUSIC3_8875
if 
  174@ == 0
goto_if_false @MUSIC3_8875
do_fade 500 {direction} Fade.Out

:MUSIC3_8629
if 
  get_fading_status 
goto_if_false @MUSIC3_8653
wait 0
goto @MUSIC3_8629

:MUSIC3_8653
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_8685
goto @MUSIC3_15492

:MUSIC3_8685
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 60.0 {clearParticles} True
load_scene 1305.5 {y} -1131.7 {z} 22.6
set_fixed_camera_position 1288.6 {y} -1146.2 {z} 28.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1301.0 {y} -1137.2 {z} 23.3 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC3_8784
if 
  get_fading_status 
goto_if_false @MUSIC3_8808
wait 0
goto @MUSIC3_8784

:MUSIC3_8808
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_8840
goto @MUSIC3_15492

:MUSIC3_8840
174@ = 8
176@ = 2
177@ = 4
gosub @MUSIC3_24549
126@ = 8

:MUSIC3_8875
if 
  126@ == 8
goto_if_false @MUSIC3_9825
if 
  174@ == 0
goto_if_false @MUSIC3_9825
124@ = 0

:MUSIC3_8918
skip_cutscene_end 
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_8952
goto @MUSIC3_15492

:MUSIC3_8952
if 
  124@ == 1
goto_if_false @MUSIC3_9507
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
do_fade 500 {direction} Fade.Out

:MUSIC3_8994
if 
  get_fading_status 
goto_if_false @MUSIC3_9018
wait 0
goto @MUSIC3_8994

:MUSIC3_9018
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_9050
goto @MUSIC3_15492

:MUSIC3_9050
freeze_car_position_and_dont_load_collision 72@ {state} False
if 
  is_char_dead 75@
goto_if_false @MUSIC3_9141
clear_area 1303.5 {y} -1131.5 {z} 22.6 {radius} 5.0 {clearParticles} True
75@ = create_char PedType.Mission2 {modelId} 24 {x} 1303.5 {y} -1131.5 {z} 22.6
set_char_heading 75@ {heading} 168.1
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 3000

:MUSIC3_9141
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_9184
if 
  not is_char_in_car 75@ {vehicle} 72@
goto_if_false @MUSIC3_9184
warp_char_into_car 75@ {vehicle} 72@

:MUSIC3_9184
freeze_car_position_and_dont_load_collision 74@ {state} False
if 
  is_char_dead 77@
goto_if_false @MUSIC3_9311
140@ = generate_random_int_in_range 0 {max} 3
clear_area 1305.5 {y} -1131.7 {z} 22.6 {radius} 5.0 {clearParticles} True
77@ = create_char PedType.Mission2 {modelId} 24 {x} 1305.5 {y} -1131.7 {z} 22.6
set_char_heading 77@ {heading} 168.1
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 3000
if 
  not is_char_in_car 77@ {vehicle} 74@
goto_if_false @MUSIC3_9311
warp_char_into_car 77@ {vehicle} 74@

:MUSIC3_9311
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_9354
if 
  not is_char_in_car 77@ {vehicle} 74@
goto_if_false @MUSIC3_9354
warp_char_into_car 77@ {vehicle} 74@

:MUSIC3_9354
clear_area 1306.4 {y} -1137.5 {z} 22.5 {radius} 5.0 {clearParticles} True
set_car_coordinates 73@ {x} 1306.4 {y} -1137.5 {z} 22.5
set_car_heading 73@ {heading} 90.0
request_model 20
request_model 91
request_model 367
request_model 409
request_model 280
load_all_models_now 

:MUSIC3_9433
if 
  130@ == 0
goto_if_false @MUSIC3_9469
wait 0
gosub @MUSIC3_16529
goto @MUSIC3_9433

:MUSIC3_9469
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_9501
goto @MUSIC3_15492

:MUSIC3_9501
set_time_of_day 22 {minutes} 0

:MUSIC3_9507
mark_car_as_convoy_car 72@ {state} True
mark_car_as_convoy_car 73@ {state} True
mark_car_as_convoy_car 74@ {state} True
delete_char 65@
delete_char 64@
delete_char 111@
delete_char 69@
delete_char 70@
delete_car 66@
delete_car 67@
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 409
lock_car_doors 73@ {lockStatus} CarLock.Locked
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print 'STP3_06' {time} 7000 {flag} 1
if 
  124@ == 1
goto_if_false @MUSIC3_9708
do_fade 500 {direction} Fade.In

:MUSIC3_9652
if 
  get_fading_status 
goto_if_false @MUSIC3_9676
wait 0
goto @MUSIC3_9652

:MUSIC3_9676
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_9708
goto @MUSIC3_15492

:MUSIC3_9708
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_9758
task_car_drive_to_coord 75@ {vehicle} 72@ {x} 1015.1 {y} -1139.2 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars

:MUSIC3_9758
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_9804
set_car_follow_car 74@ {handle} 72@ {radius} 27.0
set_car_cruise_speed 74@ {maxSpeed} 15.0
set_car_driving_style 74@ {drivingStyle} DrivingMode.SlowDownForCars

:MUSIC3_9804
175@ = 0
123@ = 0
122@ = 3

:MUSIC3_9825
if 
  122@ == 3
goto_if_false @MUSIC3_10352
if 
  175@ == 0
goto_if_false @MUSIC3_9934
if 
  locate_car_2d 72@ {x} 1094.8 {y} -1142.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MUSIC3_9934
174@ = 8
176@ = 4
177@ = 5
gosub @MUSIC3_24549
175@ = 1

:MUSIC3_9934
if 
  123@ == 0
goto_if_false @MUSIC3_10045
if 
  locate_car_2d 72@ {x} 1015.1 {y} -1139.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MUSIC3_10045
225@, 226@, $z = get_offset_from_car_in_world_coords 72@ {xOffset} 0.0 {yOffset} -12.0 {zOffset} 0.0
remove_blip 113@
113@ = add_blip_for_coord 225@ {y} 226@ {z} 227@
123@ = 1

:MUSIC3_10045
if 
  123@ == 1
goto_if_false @MUSIC3_10210
if 
  locate_car_2d 73@ {x} 225@ {y} 226@ {xRadius} 9.0 {yRadius} 9.0 {drawSphere} False
goto_if_false @MUSIC3_10120
print_now 'STP3_32' {time} 7000 {flag} 1
goto @MUSIC3_10122

:MUSIC3_10120
clear_prints 

:MUSIC3_10122
if and
  locate_stopped_car_2d 73@ {x} 225@ {y} 226@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
  is_char_sitting_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_10210
remove_blip 113@
clear_prints 
123@ = 0
if 
  129@ == 0
goto_if_false @MUSIC3_10210
175@ = 0
122@ = 4

:MUSIC3_10210
gosub @MUSIC3_20964
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_10277
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_10277
clear_prints 
print_now 'STP3_12' {time} 4000 {flag} 1
goto @MUSIC3_15492

:MUSIC3_10277
gosub @MUSIC3_21438
if 
  130@ == 1
goto_if_false @MUSIC3_10352
gosub @MUSIC3_18925
if 
  129@ == 4
goto_if_false @MUSIC3_10352
clear_prints 
print_now 'STP3_24' {time} 4000 {flag} 1
goto @MUSIC3_15492

:MUSIC3_10352
if 
  122@ == 4
goto_if_false @MUSIC3_13180
if 
  123@ == 0
goto_if_false @MUSIC3_11976
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC3_10397
if 
  get_fading_status 
goto_if_false @MUSIC3_10421
wait 0
goto @MUSIC3_10397

:MUSIC3_10421
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_10453
goto @MUSIC3_15492

:MUSIC3_10453
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
shut_all_chars_up True
shut_char_up_for_scripted_speech $scplayer {state} True
set_radio_channel RadioChannel.UserTracks
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
request_model 20
request_model 40
load_all_models_now 
clear_char_decision_maker_event_response 233@ {event} Event.PotentialWalkIntoPed
clear_area 1021.0 {y} -1122.0 {z} 22.9 {radius} 50.0 {clearParticles} True
104@ = create_char PedType.Mission2 {modelId} 24 {x} 1021.0 {y} -1122.0 {z} 22.9
set_char_heading 104@ {heading} 180.0
set_anim_group_for_char 104@ {animGroup} "GANG2"
set_char_decision_maker 104@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 104@ {state} True
give_weapon_to_char 104@ {weaponType} WeaponType.Pistol {ammo} 3000
232@ = open_sequence_task 
task_pause -1 {time} 120
task_go_straight_to_coord -1 {x} 1021.0 {y} -1133.7 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 72@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 232@
perform_sequence_task 104@ {sequence} 232@
clear_sequence_task 232@
105@ = create_char PedType.Mission2 {modelId} 24 {x} 1022.2 {y} -1122.0 {z} 22.9
set_char_heading 105@ {heading} 180.0
set_anim_group_for_char 104@ {animGroup} "GANG1"
set_char_decision_maker 105@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 105@ {state} True
give_weapon_to_char 105@ {weaponType} WeaponType.Pistol {ammo} 3000
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1022.2 {y} -1133.7 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 72@ {time} -1 {seat} SeatId.RearLeft
close_sequence_task 232@
perform_sequence_task 105@ {sequence} 232@
clear_sequence_task 232@
106@ = create_char PedType.Mission2 {modelId} 24 {x} 1023.4 {y} -1122.0 {z} 22.9
give_weapon_to_char 106@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 106@ {heading} 180.0
set_char_decision_maker 106@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 106@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1023.4 {y} -1133.7 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 72@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 232@
perform_sequence_task 106@ {sequence} 232@
clear_sequence_task 232@
102@ = create_char PedType.Gang9 {modelId} 20 {x} 1021.6 {y} -1123.2 {z} 22.9
shut_char_up_for_scripted_speech 102@ {state} True
set_char_get_out_upside_down_car 102@ {state} False
set_anim_group_for_char 104@ {animGroup} "GANG2"
set_char_heading 102@ {heading} 187.9
set_char_decision_maker 102@ {handleOrTemplate} 233@
remove_blip 113@
set_char_force_die_in_car 102@ {state} True
set_char_only_damaged_by_player 102@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1021.6 {y} -1134.9 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 73@ {time} -1 {seat} SeatId.RearLeft
close_sequence_task 232@
perform_sequence_task 102@ {sequence} 232@
clear_sequence_task 232@
103@ = create_char PedType.Gang9 {modelId} 40 {x} 1022.8 {y} -1123.2 {z} 22.9
set_char_get_out_upside_down_car 103@ {state} False
set_char_heading 103@ {heading} 187.9
set_char_decision_maker 103@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 103@ {state} True
set_char_force_die_in_car 103@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 100
task_go_straight_to_coord -1 {x} 1022.8 {y} -1134.9 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 73@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 232@
perform_sequence_task 103@ {sequence} 232@
clear_sequence_task 232@
task_look_at_char $scplayer {target} 103@ {time} -2
108@ = create_char PedType.Mission2 {modelId} 24 {x} 1022.2 {y} -1124.4 {z} 22.9
give_weapon_to_char 108@ {weaponType} WeaponType.Pistol {ammo} 3000
set_anim_group_for_char 104@ {animGroup} "GANG1"
set_char_heading 108@ {heading} 180.0
set_char_decision_maker 108@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 108@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 50
task_go_straight_to_coord -1 {x} 1022.2 {y} -1136.1 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 74@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 232@
perform_sequence_task 108@ {sequence} 232@
clear_sequence_task 232@
109@ = create_char PedType.Mission2 {modelId} 24 {x} 1023.4 {y} -1124.4 {z} 22.9
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 109@ {heading} 180.0
set_char_decision_maker 109@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 109@ {state} True
232@ = open_sequence_task 
task_pause -1 {time} 50
task_go_straight_to_coord -1 {x} 1023.4 {y} -1136.1 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 74@ {time} -1 {seat} SeatId.RearLeft
close_sequence_task 232@
perform_sequence_task 109@ {sequence} 232@
clear_sequence_task 232@
110@ = create_char PedType.Mission2 {modelId} 24 {x} 1021.4 {y} -1125.6 {z} 22.9
give_weapon_to_char 110@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 110@ {heading} 180.0
set_char_decision_maker 110@ {handleOrTemplate} 233@
set_char_only_damaged_by_player 110@ {state} True
232@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1021.4 {y} -1137.3 {z} 22.9 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} 74@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 232@
perform_sequence_task 110@ {sequence} 232@
clear_sequence_task 232@
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_11694
clear_area 1015.1 {y} -1139.2 {z} 22.9 {radius} 50.0 {clearParticles} True
set_car_coordinates 72@ {x} 1015.1 {y} -1139.2 {z} 22.9
set_car_heading 72@ {heading} 90.0

:MUSIC3_11694
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_11764
clear_area 1025.1 {y} -1139.2 {z} 22.9 {radius} 50.0 {clearParticles} True
set_car_coordinates 73@ {x} 1025.1 {y} -1139.2 {z} 22.9
set_car_heading 73@ {heading} 90.0

:MUSIC3_11764
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_11834
clear_area 1035.1 {y} -1139.2 {z} 22.9 {radius} 50.0 {clearParticles} True
set_car_coordinates 74@ {x} 1035.1 {y} -1139.2 {z} 22.9
set_car_heading 74@ {heading} 90.0

:MUSIC3_11834
lock_car_doors 73@ {lockStatus} CarLock.Unlocked
set_fixed_camera_position 1021.4 {y} -1135.3 {z} 23.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1021.7 {y} -1124.1 {z} 25.2 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC3_11899
if 
  get_fading_status 
goto_if_false @MUSIC3_11923
wait 0
goto @MUSIC3_11899

:MUSIC3_11923
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_11955
goto @MUSIC3_15492

:MUSIC3_11955
124@ = 1
skip_cutscene_start_internal @MUSIC3_12301
123@ = 1

:MUSIC3_11976
if 
  123@ == 1
goto_if_false @MUSIC3_12106
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_12106
if 
  is_char_in_area_2d 102@ {leftBottomX} 1019.7 {leftBottomY} -1130.2 {rightTopX} 1025.7 {rightTopY} -1135.0 {drawSphere} False
goto_if_false @MUSIC3_12106
set_fixed_camera_position 1024.7 {y} -1141.7 {z} 24.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1024.6 {y} -1138.7 {z} 23.9 {switchStyle} SwitchType.JumpCut
123@ = 2

:MUSIC3_12106
if 
  123@ == 2
goto_if_false @MUSIC3_12214
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_12214
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_12214
if 
  is_char_in_car 102@ {vehicle} 73@
goto_if_false @MUSIC3_12214
set_radio_channel RadioChannel.CSR
174@ = 2
176@ = 0
gosub @MUSIC3_24549
TIMERA = 0
123@ = 3

:MUSIC3_12214
if 
  123@ == 3
goto_if_false @MUSIC3_12261
if 
  174@ == 0
goto_if_false @MUSIC3_12261
play_mission_audio MissionAudioSlot.Slot3
123@ = 4

:MUSIC3_12261
if 
  123@ == 4
goto_if_false @MUSIC3_13173
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @MUSIC3_13173
124@ = 0

:MUSIC3_12301
skip_cutscene_end 
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_12335
goto @MUSIC3_15492

:MUSIC3_12335
if 
  124@ == 1
goto_if_false @MUSIC3_12817
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
do_fade 500 {direction} Fade.Out

:MUSIC3_12377
if 
  get_fading_status 
goto_if_false @MUSIC3_12401
wait 0
goto @MUSIC3_12377

:MUSIC3_12401
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_12433
goto @MUSIC3_15492

:MUSIC3_12433
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_12575
if 
  not is_char_dead 104@
goto_if_false @MUSIC3_12491
if 
  not is_char_in_any_car 104@
goto_if_false @MUSIC3_12491
warp_char_into_car_as_passenger 104@ {handle} 72@ {seat} SeatId.BikeRear

:MUSIC3_12491
if 
  not is_char_dead 105@
goto_if_false @MUSIC3_12533
if 
  not is_char_in_any_car 105@
goto_if_false @MUSIC3_12533
warp_char_into_car_as_passenger 105@ {handle} 72@ {seat} SeatId.RearLeft

:MUSIC3_12533
if 
  not is_char_dead 106@
goto_if_false @MUSIC3_12575
if 
  not is_char_in_any_car 106@
goto_if_false @MUSIC3_12575
warp_char_into_car_as_passenger 106@ {handle} 72@ {seat} SeatId.RearRight

:MUSIC3_12575
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_12675
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_12633
if 
  not is_char_in_any_car 102@
goto_if_false @MUSIC3_12633
warp_char_into_car_as_passenger 102@ {handle} 73@ {seat} SeatId.RearLeft

:MUSIC3_12633
if 
  not is_char_dead 103@
goto_if_false @MUSIC3_12675
if 
  not is_char_in_any_car 103@
goto_if_false @MUSIC3_12675
warp_char_into_car_as_passenger 103@ {handle} 73@ {seat} SeatId.RearRight

:MUSIC3_12675
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_12817
if 
  not is_char_dead 108@
goto_if_false @MUSIC3_12733
if 
  not is_char_in_any_car 108@
goto_if_false @MUSIC3_12733
warp_char_into_car_as_passenger 108@ {handle} 74@ {seat} SeatId.BikeRear

:MUSIC3_12733
if 
  not is_char_dead 109@
goto_if_false @MUSIC3_12775
if 
  not is_char_in_any_car 109@
goto_if_false @MUSIC3_12775
warp_char_into_car_as_passenger 109@ {handle} 74@ {seat} SeatId.RearLeft

:MUSIC3_12775
if 
  not is_char_dead 110@
goto_if_false @MUSIC3_12817
if 
  not is_char_in_any_car 110@
goto_if_false @MUSIC3_12817
warp_char_into_car_as_passenger 110@ {handle} 74@ {seat} SeatId.RearRight

:MUSIC3_12817
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_12938
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_12938
232@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 72@ {x} 964.6 {y} -1055.1 {z} 27.6 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 72@ {x} 965.0 {y} -1036.4 {z} 29.0 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 232@
perform_sequence_task 75@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_12938
clear_look_at $scplayer
clear_prints 
print 'STP3_08' {time} 7000 {flag} 1
print 'STP3_09' {time} 7000 {flag} 1
remove_blip 113@
113@ = add_blip_for_coord 836.9 {y} -2041.5 {z} 11.8
add_char_decision_maker_event_response 233@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
lock_car_doors 73@ {lockStatus} CarLock.Locked
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  124@ == 1
goto_if_false @MUSIC3_13152
do_fade 500 {direction} Fade.In

:MUSIC3_13096
if 
  get_fading_status 
goto_if_false @MUSIC3_13120
wait 0
goto @MUSIC3_13096

:MUSIC3_13120
gosub @MUSIC3_16173
if 
  125@ == 1
goto_if_false @MUSIC3_13152
goto @MUSIC3_15492

:MUSIC3_13152
TIMERA = 0
123@ = 0
122@ = 5

:MUSIC3_13173
gosub @MUSIC3_20261

:MUSIC3_13180
if 
  122@ == 5
goto_if_false @MUSIC3_14684
gosub @MUSIC3_22302
if 
  123@ == 0
goto_if_false @MUSIC3_13691
if 
  175@ == 0
goto_if_false @MUSIC3_13288
if 
  TIMERA > 14000
goto_if_false @MUSIC3_13288
174@ = 3
176@ = 0
gosub @MUSIC3_24549
175@ = 1

:MUSIC3_13288
if 
  175@ == 1
goto_if_false @MUSIC3_13352
if 
  174@ == 0
goto_if_false @MUSIC3_13352
174@ = 4
176@ = 0
gosub @MUSIC3_24549
175@ = 2

:MUSIC3_13352
if 
  175@ == 2
goto_if_false @MUSIC3_13416
if 
  174@ == 0
goto_if_false @MUSIC3_13416
174@ = 5
176@ = 0
gosub @MUSIC3_24549
175@ = 3

:MUSIC3_13416
if 
  175@ == 3
goto_if_false @MUSIC3_13575
if 
  is_char_in_area_3d $scplayer {leftBottomX} 789.4 {leftBottomY} -1798.8 {leftBottomZ} 10.0 {rightTopX} 896.9 {rightTopY} -1763.6 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_13575
if 
  174@ == 5
goto_if_false @MUSIC3_13575
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
clear_prints 
174@ = 10
176@ = 0
gosub @MUSIC3_24549
175@ = 4
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_13568
shut_char_up_for_scripted_speech 102@ {state} False

:MUSIC3_13568
shut_char_up_for_scripted_speech $scplayer {state} False

:MUSIC3_13575
if 
  not is_char_dead 103@
goto_if_false @MUSIC3_13691
if 
  not is_char_talking 103@
goto_if_false @MUSIC3_13691
if 
  175@ == 0
goto_if_false @MUSIC3_13655
if 
  10000 > TIMERA
goto_if_false @MUSIC3_13655
151@ = set_char_say_context 103@ {phrase} SpeechId.PainOnFire

:MUSIC3_13655
if or
  175@ == 3
  175@ == 4
goto_if_false @MUSIC3_13691
151@ = set_char_say_context 103@ {phrase} SpeechId.PainOnFire

:MUSIC3_13691
if 
  123@ == 0
goto_if_false @MUSIC3_14192
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_13951
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_13951
if 
  163@ == 0
goto_if_false @MUSIC3_13833
if 
  is_char_in_area_3d $scplayer {leftBottomX} 853.7 {leftBottomY} -1810.1 {leftBottomZ} 10.0 {rightTopX} 818.5 {rightTopY} -1874.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_13833
print_now 'STP3_35' {time} 7000 {flag} 1
163@ = 1

:MUSIC3_13833
if 
  163@ == 1
goto_if_false @MUSIC3_13951
158@ = get_car_speed 73@
if 
  158@ > 10.0
goto_if_false @MUSIC3_13951
if 
  is_char_in_area_3d $scplayer {leftBottomX} 820.0 {leftBottomY} -2004.0 {leftBottomZ} 10.0 {rightTopX} 852.4 {rightTopY} -2068.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_13951
print_now 'STP3_34' {time} 7000 {flag} 1
163@ = 2

:MUSIC3_13951
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_14150
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_14150
if 
  is_car_in_area_3d 73@ {leftBottomX} 855.6 {leftBottomY} -2067.8999 {leftBottomZ} 5.0 {rightTopX} 812.6 {rightTopY} -2085.8999 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @MUSIC3_14150
set_time_scale 0.3
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
174@ = 0
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
set_fixed_camera_position 813.5 {y} -2128.8999 {z} 2.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 847.6 {y} -2068.1001 {z} 11.7 {switchStyle} SwitchType.JumpCut
gosub @MUSIC3_22102
175@ = 0
TIMERA = 0
123@ = 1

:MUSIC3_14150
if 
  is_car_in_water 73@
goto_if_false @MUSIC3_14192
remove_blip 113@
gosub @MUSIC3_22102
174@ = 0
123@ = 2

:MUSIC3_14192
if 
  123@ == 1
goto_if_false @MUSIC3_14301
if 
  175@ == 0
goto_if_false @MUSIC3_14256
174@ = 6
176@ = 0
gosub @MUSIC3_24549
175@ = 1

:MUSIC3_14256
if or
  is_car_in_water 73@
  TIMERA > 10000
goto_if_false @MUSIC3_14301
set_time_scale 1.0
TIMERA = 0
123@ = 2

:MUSIC3_14301
if 
  123@ == 2
goto_if_false @MUSIC3_14433
if 
  TIMERA > 500
goto_if_false @MUSIC3_14433
if 
  174@ == 0
goto_if_false @MUSIC3_14433
if 
  155@ == 0
goto_if_false @MUSIC3_14395
TIMERA = 0
122@ = 7
goto @MUSIC3_14433

:MUSIC3_14395
set_player_control $player1 {state} True
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
123@ = 0
TIMERB = 0
122@ = 6

:MUSIC3_14433
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  TIMERA > 11000
goto_if_false @MUSIC3_14460
clear_help 

:MUSIC3_14460
if 
  4 > 129@
goto_if_false @MUSIC3_14485
gosub @MUSIC3_18925

:MUSIC3_14485
if 
  3 > 164@
goto_if_false @MUSIC3_14510
gosub @MUSIC3_19556

:MUSIC3_14510
if 
  123@ == 0
goto_if_false @MUSIC3_14684
if 
  not is_car_in_water 73@
goto_if_false @MUSIC3_14684
if 
  is_char_dead 102@
goto_if_false @MUSIC3_14585
clear_prints 
print_now 'STP3_31' {time} 4000 {flag} 1
goto @MUSIC3_15492

:MUSIC3_14585
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_14684
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_14684
if 
  is_car_stopped 73@
goto_if_false @MUSIC3_14684
task_leave_car_and_flee 102@ {vehicle} 73@ {x} 2316.3999 {y} -1519.2 {z} 24.3
clear_prints 
print_now 'STP3_18' {time} 4000 {flag} 1
goto @MUSIC3_15492

:MUSIC3_14684
if 
  122@ == 6
goto_if_false @MUSIC3_15315
gosub @MUSIC3_22302
if 
  123@ == 0
goto_if_false @MUSIC3_14986
if 
  155@ == 0
goto_if_false @MUSIC3_14766
TIMERA = 0
122@ = 7
goto @MUSIC3_14986

:MUSIC3_14766
remove_blip 113@
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_14795
114@ = add_blip_for_char 75@

:MUSIC3_14795
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_14819
115@ = add_blip_for_char 77@

:MUSIC3_14819
if 
  not is_char_dead 104@
goto_if_false @MUSIC3_14843
116@ = add_blip_for_char 104@

:MUSIC3_14843
if 
  not is_char_dead 105@
goto_if_false @MUSIC3_14867
117@ = add_blip_for_char 105@

:MUSIC3_14867
if 
  not is_char_dead 106@
goto_if_false @MUSIC3_14891
118@ = add_blip_for_char 106@

:MUSIC3_14891
if 
  not is_char_dead 108@
goto_if_false @MUSIC3_14915
119@ = add_blip_for_char 108@

:MUSIC3_14915
if 
  not is_char_dead 109@
goto_if_false @MUSIC3_14939
120@ = add_blip_for_char 109@

:MUSIC3_14939
if 
  not is_char_dead 110@
goto_if_false @MUSIC3_14963
121@ = add_blip_for_char 110@

:MUSIC3_14963
print_now 'STP3_26' {time} 11000 {flag} 1
123@ = 1

:MUSIC3_14986
if 
  123@ == 1
goto_if_false @MUSIC3_15315
if 
  is_char_dead 75@
goto_if_false @MUSIC3_15025
remove_blip 114@

:MUSIC3_15025
if 
  is_char_dead 77@
goto_if_false @MUSIC3_15046
remove_blip 115@

:MUSIC3_15046
if 
  is_char_dead 104@
goto_if_false @MUSIC3_15067
remove_blip 116@

:MUSIC3_15067
if 
  is_char_dead 105@
goto_if_false @MUSIC3_15088
remove_blip 117@

:MUSIC3_15088
if 
  is_char_dead 106@
goto_if_false @MUSIC3_15109
remove_blip 118@

:MUSIC3_15109
if 
  is_char_dead 108@
goto_if_false @MUSIC3_15130
remove_blip 119@

:MUSIC3_15130
if 
  is_char_dead 109@
goto_if_false @MUSIC3_15151
remove_blip 120@

:MUSIC3_15151
if 
  is_char_dead 110@
goto_if_false @MUSIC3_15172
remove_blip 121@

:MUSIC3_15172
if 
  is_char_dead 75@
goto_if_false @MUSIC3_15315
if 
  is_char_dead 77@
goto_if_false @MUSIC3_15315
if 
  is_char_dead 104@
goto_if_false @MUSIC3_15315
if 
  is_char_dead 105@
goto_if_false @MUSIC3_15315
if 
  is_char_dead 106@
goto_if_false @MUSIC3_15315
if 
  is_char_dead 108@
goto_if_false @MUSIC3_15315
if 
  is_char_dead 109@
goto_if_false @MUSIC3_15315
if 
  is_char_dead 110@
goto_if_false @MUSIC3_15315
TIMERA = 2000
122@ = 7

:MUSIC3_15315
if 
  122@ == 7
goto_if_false @MUSIC3_15376
if 
  TIMERA > 3000
goto_if_false @MUSIC3_15376
set_player_control $player1 {state} True
make_player_gang_reappear 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
goto @MUSIC3_15510

:MUSIC3_15376
if 
  162@ == 0
goto_if_false @MUSIC3_15478
if or
  122@ == 0
  122@ == 1
goto_if_false @MUSIC3_15478
if 
  149@ == 21
goto_if_false @MUSIC3_15478
if 
  $minutes > 30
goto_if_false @MUSIC3_15478
print 'STP3_28' {time} 7000 {flag} 1
162@ = 1

:MUSIC3_15478
gosub @MUSIC3_25787
goto @MUSIC3_2268

:MUSIC3_15492
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC3_15510
$flag_strap_mission_counter += 1
clear_prints 
set_int_stat StatId.PassedStrap3 {value} 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 5
register_mission_passed 'STRAP_3'
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $strap_contact_blip
$strap_contact_blip = add_sprite_blip_for_contact_point $strapX {y} $strapY {z} $strapZ {sprite} $strap_blip_icon
player_made_progress 1
return 

:MUSIC3_15596
switch_audio_zone 'AWARDS' {state} False
set_time_scale 1.0
switch_widescreen False
if 
  is_var_text_label_empty s$shop_name
goto_if_false @MUSIC3_15638
restore_camera_jumpcut 

:MUSIC3_15638
remove_blip 113@
remove_blip $spray_shop2
$spray_shop2 = add_short_range_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray
remove_char_elegantly 102@
remove_char_elegantly 103@
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_15703
improve_car_by_cheating 72@ {state} False

:MUSIC3_15703
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_15726
improve_car_by_cheating 74@ {state} False

:MUSIC3_15726
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_15749
lock_car_doors 73@ {lockStatus} CarLock.Unlocked

:MUSIC3_15749
if 
  not is_char_dead $scplayer
goto_if_false @MUSIC3_15772
shut_char_up_for_scripted_speech $scplayer {state} False

:MUSIC3_15772
shut_all_chars_up False
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 507
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed #DYN_ROADBARRIER_2
mark_model_as_no_longer_needed 330
unmark_all_road_nodes_as_dont_wander 
switch_roads_back_to_original 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
switch_ped_roads_back_to_original 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
switch_roads_back_to_original 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
switch_ped_roads_back_to_original 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
switch_roads_back_to_original 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
switch_ped_roads_back_to_original 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
switch_roads_back_to_original 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
switch_ped_roads_back_to_original 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
switch_roads_back_to_original 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
switch_ped_roads_back_to_original 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:MUSIC3_16173
if 
  5 > 122@
goto_if_false @MUSIC3_16232
if 
  is_car_dead 73@
goto_if_false @MUSIC3_16232
clear_prints 
print_now 'STP3_10' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16232
if 
  5 > 122@
goto_if_false @MUSIC3_16332
if 
  is_car_dead 72@
goto_if_false @MUSIC3_16291
clear_prints 
print_now 'STP3_10' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16291
if 
  is_car_dead 74@
goto_if_false @MUSIC3_16332
clear_prints 
print_now 'STP3_10' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16332
if 
  122@ == 3
goto_if_false @MUSIC3_16409
if 
  4 > 123@
goto_if_false @MUSIC3_16409
if 
  is_char_dead 63@
goto_if_false @MUSIC3_16409
clear_prints 
print_now 'STP3_16' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16409
if 
  122@ > 2
goto_if_false @MUSIC3_16527
if 
  5 > 122@
goto_if_false @MUSIC3_16527
if 
  is_char_dead 75@
goto_if_false @MUSIC3_16486
clear_prints 
print_now 'STP3_17' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16486
if 
  is_char_dead 77@
goto_if_false @MUSIC3_16527
clear_prints 
print_now 'STP3_17' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_16527
return 

:MUSIC3_16529
if 
  20 > 132@
goto_if_false @MUSIC3_18916
if 
  132@ == 0
goto_if_false @MUSIC3_18683
65@ = create_char PedType.CivMale {modelId} 20 {x} 1023.4 {y} -1123.6 {z} 22.9
set_char_heading 65@ {heading} 267.1
set_load_collision_for_char_flag 65@ {state} True
set_char_decision_maker 65@ {handleOrTemplate} 233@
64@ = create_char PedType.CivFemale {modelId} 91 {x} 1023.1 {y} -1124.6 {z} 22.9
set_char_heading 64@ {heading} 296.3
set_load_collision_for_char_flag 64@ {state} True
set_char_decision_maker 64@ {handleOrTemplate} 233@
111@ = create_char PedType.CivFemale {modelId} 91 {x} 1025.0 {y} -1124.6 {z} 22.9
set_char_heading 111@ {heading} 90.0
set_load_collision_for_char_flag 111@ {state} True
set_char_decision_maker 111@ {handleOrTemplate} 233@
78@ = create_object #DYN_ROADBARRIER_2 {x} 1092.7 {y} -1144.2 {z} 22.7
set_object_heading 78@ {heading} 0.0
set_object_collision 78@ {state} True
79@ = create_object #DYN_ROADBARRIER_2 {x} 1092.7 {y} -1148.8 {z} 22.7
set_object_heading 79@ {heading} 90.0
set_object_collision 79@ {state} True
switch_roads_off 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
switch_ped_roads_off 802.1 {leftBottomY} -1150.2 {leftBottomZ} 10.0 {rightTopX} 1156.9 {rightTopY} -1131.2 {rightTopZ} 50.0
80@ = create_object #DYN_ROADBARRIER_2 {x} 1062.5 {y} -1159.4 {z} 22.6
set_object_heading 80@ {heading} 180.0
set_object_collision 80@ {state} True
81@ = create_object #DYN_ROADBARRIER_2 {x} 1054.4 {y} -1159.4 {z} 22.6
set_object_heading 81@ {heading} 180.0
set_object_collision 81@ {state} True
switch_roads_off 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
switch_ped_roads_off 1053.2 {leftBottomY} -1146.1 {leftBottomZ} 10.0 {rightTopX} 1072.5 {rightTopY} -1215.5 {rightTopZ} 50.0
82@ = create_object #DYN_ROADBARRIER_2 {x} 944.5 {y} -1159.4 {z} 22.6
set_object_heading 82@ {heading} 180.0
set_object_collision 82@ {state} True
83@ = create_object #DYN_ROADBARRIER_2 {x} 940.0 {y} -1159.4 {z} 22.6
set_object_heading 83@ {heading} 180.0
set_object_collision 83@ {state} True
switch_roads_off 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
switch_ped_roads_off 932.9 {leftBottomY} -1154.4 {leftBottomZ} 10.0 {rightTopX} 951.8 {rightTopY} -1215.4 {rightTopZ} 50.0
84@ = create_object #DYN_ROADBARRIER_2 {x} 931.3 {y} -1148.8 {z} 22.7
set_object_heading 84@ {heading} 90.0
set_object_collision 84@ {state} True
85@ = create_object #DYN_ROADBARRIER_2 {x} 931.3 {y} -1139.9 {z} 22.7
set_object_heading 85@ {heading} 90.0
set_object_collision 85@ {state} True
86@ = create_object #DYN_ROADBARRIER_2 {x} 960.2 {y} -1130.4 {z} 22.7
set_object_heading 86@ {heading} 180.0
set_object_collision 86@ {state} True
87@ = create_object #DYN_ROADBARRIER_2 {x} 967.4 {y} -1130.4 {z} 22.7
set_object_heading 87@ {heading} 90.0
set_object_collision 87@ {state} True
switch_roads_off 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
switch_ped_roads_off 972.1 {leftBottomY} -1135.4 {leftBottomZ} 10.0 {rightTopX} 952.9 {rightTopY} -1044.3 {rightTopZ} 50.0
88@ = create_object #DYN_ROADBARRIER_2 {x} 1080.6 {y} -1130.7 {z} 22.7
set_object_heading 88@ {heading} 180.0
set_object_collision 88@ {state} True
89@ = create_object #DYN_ROADBARRIER_2 {x} 1085.5 {y} -1130.6 {z} 22.7
set_object_heading 89@ {heading} 180.0
set_object_collision 89@ {state} True
switch_roads_off 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
switch_ped_roads_off 1072.8 {leftBottomY} -1135.0 {leftBottomZ} 10.0 {rightTopX} 1092.4 {rightTopY} -1045.5 {rightTopZ} 50.0
90@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1123.2 {z} 22.9
set_object_heading 90@ {heading} 90.0
set_object_collision 90@ {state} False
91@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1127.2 {z} 22.9
set_object_heading 91@ {heading} 90.0
set_object_collision 91@ {state} False
92@ = create_object #DYN_ROADBARRIER_2 {x} 1024.5 {y} -1131.2 {z} 22.9
set_object_heading 92@ {heading} 90.0
set_object_collision 92@ {state} False
93@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1123.2 {z} 22.9
set_object_heading 93@ {heading} 90.0
set_object_collision 93@ {state} False
94@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1127.2 {z} 22.9
set_object_heading 94@ {heading} 90.0
set_object_collision 94@ {state} False
95@ = create_object #DYN_ROADBARRIER_2 {x} 1020.5 {y} -1131.2 {z} 22.9
set_object_heading 95@ {heading} 90.0
set_object_collision 95@ {state} False
96@ = create_object #DYN_ROADBARRIER_2 {x} 1016.5 {y} -1133.2 {z} 22.9
set_object_heading 96@ {heading} 180.0
set_object_collision 96@ {state} False
97@ = create_object #DYN_ROADBARRIER_2 {x} 1012.5 {y} -1133.2 {z} 22.9
set_object_heading 97@ {heading} 180.0
set_object_collision 97@ {state} False
98@ = create_object #DYN_ROADBARRIER_2 {x} 1008.5 {y} -1133.2 {z} 22.9
set_object_heading 98@ {heading} 180.0
set_object_collision 98@ {state} False
99@ = create_object #DYN_ROADBARRIER_2 {x} 1028.5 {y} -1133.2 {z} 22.9
set_object_heading 99@ {heading} 180.0
set_object_collision 99@ {state} False
100@ = create_object #DYN_ROADBARRIER_2 {x} 1032.5 {y} -1133.2 {z} 22.9
set_object_heading 100@ {heading} 180.0
set_object_collision 100@ {state} False
101@ = create_object #DYN_ROADBARRIER_2 {x} 1036.5 {y} -1133.2 {z} 22.9
set_object_heading 101@ {heading} 180.0
set_object_collision 101@ {state} False
55@ = create_char PedType.Mission2 {modelId} 280 {x} 1025.3 {y} -1124.9 {z} 22.9
give_weapon_to_char 55@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 55@ {heading} 276.6
set_load_collision_for_char_flag 55@ {state} True
56@ = create_char PedType.Mission2 {modelId} 280 {x} 1024.7 {y} -1129.1 {z} 22.9
give_weapon_to_char 56@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 56@ {heading} 276.6
set_load_collision_for_char_flag 56@ {state} True
57@ = create_char PedType.Mission2 {modelId} 280 {x} 1024.7 {y} -1133.8 {z} 22.9
give_weapon_to_char 57@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 57@ {heading} 276.6
set_load_collision_for_char_flag 57@ {state} True
58@ = create_char PedType.Mission2 {modelId} 280 {x} 1020.4 {y} -1125.2 {z} 22.9
give_weapon_to_char 58@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 58@ {heading} 92.2
set_load_collision_for_char_flag 58@ {state} True
59@ = create_char PedType.Mission2 {modelId} 280 {x} 1020.4 {y} -1129.1 {z} 22.9
give_weapon_to_char 59@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 59@ {heading} 92.2
set_load_collision_for_char_flag 59@ {state} True
60@ = create_char PedType.Mission2 {modelId} 280 {x} 1020.4 {y} -1133.5 {z} 22.9
give_weapon_to_char 60@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 60@ {heading} 92.2
set_load_collision_for_char_flag 60@ {state} True
61@ = create_char PedType.Mission2 {modelId} 280 {x} 1032.6 {y} -1115.5 {z} 22.9
give_weapon_to_char 61@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 61@ {heading} 173.9
set_load_collision_for_char_flag 61@ {state} True
62@ = create_char PedType.Mission2 {modelId} 280 {x} 1012.0 {y} -1115.8 {z} 22.9
give_weapon_to_char 62@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 62@ {heading} 187.9
set_load_collision_for_char_flag 62@ {state} True
66@ = create_car 409 {x} 1031.4 {y} -1138.6 {z} 22.7
69@ = create_char_inside_car 66@ {pedType} PedType.Mission2 {modelId} 24
set_car_heading 66@ {heading} 90.0
set_load_collision_for_char_flag 69@ {state} True
231@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_car_drive_to_coord -1 {vehicle} 66@ {x} 1023.3 {y} -1138.6 {z} 22.7 {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 231@
perform_sequence_task 69@ {sequence} 231@
clear_sequence_task 231@
67@ = create_car 409 {x} 1042.8 {y} -1138.6 {z} 22.7
70@ = create_char_inside_car 67@ {pedType} PedType.Mission2 {modelId} 24
set_car_heading 67@ {heading} 90.0
set_load_collision_for_char_flag 70@ {state} True
63@ = create_char PedType.Mission2 {modelId} 280 {x} 1093.7 {y} -1145.2 {z} 22.7
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 3000
set_char_heading 63@ {heading} 274.6
set_load_collision_for_char_flag 63@ {state} True
set_char_decision_maker 63@ {handleOrTemplate} 233@
112@ = create_random_char 1023.6 {y} -1122.3 {z} 22.9
set_char_visible 112@ {state} False
set_char_collision 112@ {state} False
set_char_decision_maker 112@ {handleOrTemplate} 233@
set_char_stay_in_same_place 112@ {state} True

:MUSIC3_18683
gosub @MUSIC3_20041
create_random_char 225@ {y} 226@ {z} 22.9 {var_handle} 34@(132@,21i)
set_char_heading 34@(132@,21i) {heading} $heading
set_sense_range 34@(132@,21i) {range} 0.0
set_char_stay_in_same_place 34@(132@,21i) {state} True
give_weapon_to_char 34@(132@,21i) {weaponType} WeaponType.Camera {ammo} 30000
set_char_decision_maker 34@(132@,21i) {handleOrTemplate} 233@
set_load_collision_for_char_flag 34@(132@,21i) {state} True
if 
  5 > 132@
goto_if_false @MUSIC3_18891
232@ = open_sequence_task 
152@ = generate_random_int_in_range 500 {max} 2000
if 
  not is_char_dead 112@
goto_if_false @MUSIC3_18844
task_kill_char_on_foot_timed -1 {target} 112@ {time} 152@

:MUSIC3_18844
152@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 152@
set_sequence_to_repeat 232@ {state} True
close_sequence_task 232@
perform_sequence_task 34@(132@,21i) {sequence} 232@
clear_sequence_task 232@

:MUSIC3_18891
set_load_collision_for_char_flag 34@(132@,21i) {state} True
132@ += 1
goto @MUSIC3_18923

:MUSIC3_18916
130@ = 1

:MUSIC3_18923
return 

:MUSIC3_18925
if 
  129@ == 0
goto_if_false @MUSIC3_19175
if 
  20 > 131@
goto_if_false @MUSIC3_19052
if 
  is_char_dead 34@(131@,21i)
goto_if_false @MUSIC3_18988
129@ = 1

:MUSIC3_18988
if 
  not is_char_dead 34@(131@,21i)
goto_if_false @MUSIC3_19038
if 
  has_char_been_damaged_by_char 34@(131@,21i) {handle} $scplayer
goto_if_false @MUSIC3_19038
129@ = 1

:MUSIC3_19038
131@ += 1
goto @MUSIC3_19059

:MUSIC3_19052
131@ = 0

:MUSIC3_19059
if 
  8 > 141@
goto_if_false @MUSIC3_19168
if 
  is_char_dead 55@(141@,9i)
goto_if_false @MUSIC3_19104
129@ = 1

:MUSIC3_19104
if 
  not is_char_dead 55@(141@,9i)
goto_if_false @MUSIC3_19154
if 
  has_char_been_damaged_by_char 55@(141@,9i) {handle} $scplayer
goto_if_false @MUSIC3_19154
129@ = 1

:MUSIC3_19154
141@ += 1
goto @MUSIC3_19175

:MUSIC3_19168
141@ = 0

:MUSIC3_19175
if 
  129@ == 1
goto_if_false @MUSIC3_19214
131@ = 0
141@ = 0
129@ = 2

:MUSIC3_19214
if 
  129@ == 2
goto_if_false @MUSIC3_19421
if 
  20 > 131@
goto_if_false @MUSIC3_19414
if 
  not is_char_dead 34@(131@,21i)
goto_if_false @MUSIC3_19400
$task_status = get_script_task_status 34@(131@,21i) {taskId} 1499
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_19336
set_char_keep_task 34@(131@,21i) {state} True
task_flee_char 34@(131@,21i) {threat} $scplayer {radius} 80.0 {time} 10000000

:MUSIC3_19336
if 
  not locate_char_any_means_char_2d 34@(131@,21i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_19400
if 
  not is_char_on_screen 34@(131@,21i)
goto_if_false @MUSIC3_19400
mark_char_as_no_longer_needed 34@(131@,21i)

:MUSIC3_19400
131@ += 1
goto @MUSIC3_19421

:MUSIC3_19414
129@ = 3

:MUSIC3_19421
if 
  129@ == 3
goto_if_false @MUSIC3_19554
if 
  8 > 141@
goto_if_false @MUSIC3_19547
if 
  not is_char_dead 55@(141@,9i)
goto_if_false @MUSIC3_19533
$task_status = get_script_task_status 55@(141@,9i) {taskId} 1764
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @MUSIC3_19533
set_char_keep_task 55@(141@,9i) {state} True
task_char_arrest_char 55@(141@,9i) {target} $scplayer

:MUSIC3_19533
141@ += 1
goto @MUSIC3_19554

:MUSIC3_19547
129@ = 4

:MUSIC3_19554
return 

:MUSIC3_19556
if 
  164@ == 0
goto_if_false @MUSIC3_19697
if 
  8 > 165@
goto_if_false @MUSIC3_19690
if 
  not is_char_dead 55@(165@,9i)
goto_if_false @MUSIC3_19676
if 
  not locate_char_any_means_char_2d 55@(165@,9i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_19676
if 
  not is_char_on_screen 55@(165@,9i)
goto_if_false @MUSIC3_19676
mark_char_as_no_longer_needed 55@(165@,9i)

:MUSIC3_19676
165@ += 1
goto @MUSIC3_19697

:MUSIC3_19690
164@ = 1

:MUSIC3_19697
if 
  164@ == 1
goto_if_false @MUSIC3_19838
if 
  8 > 166@
goto_if_false @MUSIC3_19831
if 
  not is_char_dead 55@(166@,9i)
goto_if_false @MUSIC3_19817
if 
  not locate_char_any_means_char_2d 55@(166@,9i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_19817
if 
  not is_char_on_screen 55@(166@,9i)
goto_if_false @MUSIC3_19817
mark_char_as_no_longer_needed 55@(166@,9i)

:MUSIC3_19817
166@ += 1
goto @MUSIC3_19838

:MUSIC3_19831
164@ = 2

:MUSIC3_19838
if 
  164@ == 2
goto_if_false @MUSIC3_20039
if 
  not locate_char_any_means_2d $scplayer {x} 1015.1 {y} -1139.2 {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @MUSIC3_20039
mark_object_as_no_longer_needed 90@
mark_object_as_no_longer_needed 91@
mark_object_as_no_longer_needed 92@
mark_object_as_no_longer_needed 93@
mark_object_as_no_longer_needed 94@
mark_object_as_no_longer_needed 95@
mark_object_as_no_longer_needed 96@
mark_object_as_no_longer_needed 97@
mark_object_as_no_longer_needed 98@
mark_object_as_no_longer_needed 99@
mark_object_as_no_longer_needed 100@
mark_object_as_no_longer_needed 101@
mark_object_as_no_longer_needed 78@
mark_object_as_no_longer_needed 79@
mark_object_as_no_longer_needed 80@
mark_object_as_no_longer_needed 81@
mark_object_as_no_longer_needed 82@
mark_object_as_no_longer_needed 83@
mark_object_as_no_longer_needed 84@
mark_object_as_no_longer_needed 85@
mark_object_as_no_longer_needed 86@
mark_object_as_no_longer_needed 87@
mark_object_as_no_longer_needed 88@
mark_object_as_no_longer_needed 89@
mark_model_as_no_longer_needed #DYN_ROADBARRIER_2
switch_audio_zone 'AWARDS' {state} False
164@ = 3

:MUSIC3_20039
return 

:MUSIC3_20041
225@ = generate_random_float_in_range 1016.2 {max} 1030.8
226@ = generate_random_float_in_range -1122.3 {max} -1133.7
if 
  1020.0 > 225@
goto_if_false @MUSIC3_20109
$heading = 280.1
goto @MUSIC3_20119

:MUSIC3_20109
$heading = 96.5

:MUSIC3_20119
if and
  1027.4 > 225@
  225@ > 1019.8
goto_if_false @MUSIC3_20157
goto @MUSIC3_20041

:MUSIC3_20157
if 
  is_int_lvar_greater_than_int_lvar 133@ > 134@
goto_if_false @MUSIC3_20259
wait 0
if 
  not is_char_dead 34@(134@,21i)
goto_if_false @MUSIC3_20245
if 
  locate_char_any_means_2d 34@(134@,21i) {x} 225@ {y} 226@ {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @MUSIC3_20245
goto @MUSIC3_20041

:MUSIC3_20245
134@ += 1
goto @MUSIC3_20157

:MUSIC3_20259
return 

:MUSIC3_20261
if 
  127@ == 0
goto_if_false @MUSIC3_20293
gosub @MUSIC3_20519
goto @MUSIC3_20389

:MUSIC3_20293
if 
  is_int_lvar_greater_than_int_lvar 170@ > 127@
goto_if_false @MUSIC3_20326
127@ += 1
goto @MUSIC3_20389

:MUSIC3_20326
draw_light_with_range 225@ {y} 226@ {z} 227@ {red} 255 {green} 255 {blue} 255 {radius} 200.0
172@ = create_fx_system "CAMFLASH" {x} 225@ {y} 226@ {z} 227@ {ignoreBoundingChecks} True
play_and_kill_fx_system 172@
127@ = 0

:MUSIC3_20389
if 
  128@ == 0
goto_if_false @MUSIC3_20421
gosub @MUSIC3_20519
goto @MUSIC3_20517

:MUSIC3_20421
if 
  is_int_lvar_greater_than_int_lvar 171@ > 128@
goto_if_false @MUSIC3_20454
128@ += 1
goto @MUSIC3_20517

:MUSIC3_20454
draw_light_with_range 228@ {y} 229@ {z} 230@ {red} 255 {green} 255 {blue} 255 {radius} 200.0
173@ = create_fx_system "CAMFLASH" {x} 228@ {y} 229@ {z} 230@ {ignoreBoundingChecks} True
play_and_kill_fx_system 173@
128@ = 0

:MUSIC3_20517
return 

:MUSIC3_20519
if 
  127@ == 0
goto_if_false @MUSIC3_20615
170@ = generate_random_int_in_range 1 {max} 10
133@ = generate_random_int_in_range 0 {max} 20
if 
  not is_char_dead 34@(133@,21i)
goto_if_false @MUSIC3_20615
225@, 226@, $z = get_offset_from_char_in_world_coords 34@(133@,21i) {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.5
127@ += 1

:MUSIC3_20615
if 
  128@ == 0
goto_if_false @MUSIC3_20711
171@ = generate_random_int_in_range 1 {max} 10
133@ = generate_random_int_in_range 0 {max} 20
if 
  not is_char_dead 34@(133@,21i)
goto_if_false @MUSIC3_20711
228@, 229@, 230@ = get_offset_from_char_in_world_coords 34@(133@,21i) {xOffset} 0.0 {yOffset} 0.3 {zOffset} 0.5
128@ += 1

:MUSIC3_20711
return 

:MUSIC3_20713
if 
  142@ == 0
goto_if_false @MUSIC3_20852
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_20852
remove_blip 113@
clear_this_print 'STP3_13'
if 
  123@ == 0
goto_if_false @MUSIC3_20791
175@ = 0

:MUSIC3_20791
if 
  123@ == 1
goto_if_false @MUSIC3_20845
113@ = add_blip_for_coord 1306.4 {y} -1137.5 {z} 22.5
print 'STP3_33' {time} 7000 {flag} 1

:MUSIC3_20845
142@ = 1

:MUSIC3_20852
if 
  142@ == 1
goto_if_false @MUSIC3_20962
if 
  not is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_20962
remove_blip 113@
113@ = add_blip_for_car 73@
set_blip_as_friendly 113@ {state} True
if 
  TIMERB > 7000
goto_if_false @MUSIC3_20955
clear_this_print 'STP3_33'
print 'STP3_13' {time} 7000 {flag} 1

:MUSIC3_20955
142@ = 0

:MUSIC3_20962
return 

:MUSIC3_20964
if 
  147@ == 0
goto_if_false @MUSIC3_21028
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @MUSIC3_21021
146@ = 5000

:MUSIC3_21021
147@ = 1

:MUSIC3_21028
if 
  147@ == 1
goto_if_false @MUSIC3_21436
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @MUSIC3_21407
if 
  146@ > 4000
goto_if_false @MUSIC3_21122
148@ = 5
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21122
if 
  4000 > 146@
goto_if_false @MUSIC3_21186
if 
  146@ > 3000
goto_if_false @MUSIC3_21186
148@ = 4
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21186
if 
  3000 > 146@
goto_if_false @MUSIC3_21250
if 
  146@ > 2000
goto_if_false @MUSIC3_21250
148@ = 3
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21250
if 
  2000 > 146@
goto_if_false @MUSIC3_21314
if 
  146@ > 1000
goto_if_false @MUSIC3_21314
148@ = 2
print_with_number_now 'STP3_14' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21314
if 
  1000 > 146@
goto_if_false @MUSIC3_21359
148@ = 1
print_with_number_now 'STP3_15' {num} 148@ {duration} 4000 {flag} 1

:MUSIC3_21359
if 
  0 > 146@
goto_if_false @MUSIC3_21400
print_now 'STP3_07' {time} 4000 {flag} 1
125@ = 1

:MUSIC3_21400
goto @MUSIC3_21436

:MUSIC3_21407
clear_this_print 'STP3_14'
clear_this_print 'STP3_15'
147@ = 0

:MUSIC3_21436
return 

:MUSIC3_21438
if 
  175@ == 0
goto_if_false @MUSIC3_21540
if 
  not is_car_health_greater 72@ {health} 950
goto_if_false @MUSIC3_21498
print_now 'STP3_30' {time} 4000 {flag} 1
175@ = 1

:MUSIC3_21498
if 
  not is_car_health_greater 74@ {health} 950
goto_if_false @MUSIC3_21540
print_now 'STP3_30' {time} 4000 {flag} 1
175@ = 1

:MUSIC3_21540
if 
  175@ == 1
goto_if_false @MUSIC3_21646
if 
  not is_car_health_greater 72@ {health} 850
goto_if_false @MUSIC3_21602
clear_prints 
print 'STP3_23' {time} 4000 {flag} 1
175@ = 2

:MUSIC3_21602
if 
  not is_car_health_greater 74@ {health} 850
goto_if_false @MUSIC3_21646
clear_prints 
print 'STP3_23' {time} 4000 {flag} 1
175@ = 2

:MUSIC3_21646
if 
  175@ == 2
goto_if_false @MUSIC3_21726
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_21688
task_kill_char_on_foot 75@ {target} $scplayer

:MUSIC3_21688
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_21712
task_kill_char_on_foot 77@ {target} $scplayer

:MUSIC3_21712
TIMERA = 0
175@ = 3

:MUSIC3_21726
if 
  175@ == 3
goto_if_false @MUSIC3_21770
if 
  TIMERA > 3000
goto_if_false @MUSIC3_21770
125@ = 1

:MUSIC3_21770
return 

:MUSIC3_21772
if 
  not is_char_dead 104@
goto_if_false @MUSIC3_21829
232@ = open_sequence_task 
task_pause -1 {time} 150
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 104@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21829
if 
  not is_char_dead 105@
goto_if_false @MUSIC3_21879
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 105@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21879
if 
  not is_char_dead 106@
goto_if_false @MUSIC3_21935
232@ = open_sequence_task 
task_pause -1 {time} 100
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 106@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21935
return 

:MUSIC3_21937
if 
  not is_char_dead 108@
goto_if_false @MUSIC3_21994
232@ = open_sequence_task 
task_pause -1 {time} 150
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 108@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_21994
if 
  not is_char_dead 109@
goto_if_false @MUSIC3_22044
232@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 109@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_22044
if 
  not is_char_dead 110@
goto_if_false @MUSIC3_22100
232@ = open_sequence_task 
task_pause -1 {time} 100
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 110@ {sequence} 232@
clear_sequence_task 232@

:MUSIC3_22100
return 

:MUSIC3_22102
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22156
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @MUSIC3_22156
155@ += 1

:MUSIC3_22156
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_22210
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 74@ {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @MUSIC3_22210
155@ += 1

:MUSIC3_22210
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22255
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22255
task_car_temp_action 75@ {vehicle} 72@ {actionId} TempAction.HandbrakeStraight {time} 3000

:MUSIC3_22255
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_22300
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_22300
task_car_temp_action 77@ {vehicle} 74@ {actionId} TempAction.HandbrakeStraight {time} 3000

:MUSIC3_22300
return 

:MUSIC3_22302
if 
  153@ == 0
goto_if_false @MUSIC3_22454
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22454
if 
  not locate_char_in_car_car_2d $scplayer {handle} 72@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_22454
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22454
improve_car_by_cheating 72@ {state} True
set_car_cruise_speed 72@ {maxSpeed} 100.0
mark_car_as_convoy_car 72@ {state} False
add_stuck_car_check_with_warp 72@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7
task_car_mission 75@ {vehicle} 72@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
153@ = 1

:MUSIC3_22454
if 
  122@ == 6
goto_if_false @MUSIC3_22809
if 
  TIMERB > 1000
goto_if_false @MUSIC3_22809
if 
  153@ == 1
goto_if_false @MUSIC3_22612
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22612
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22612
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_22605
task_car_mission 75@ {vehicle} 72@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
153@ = 2
goto @MUSIC3_22612

:MUSIC3_22605
153@ = 2

:MUSIC3_22612
if 
  153@ == 2
goto_if_false @MUSIC3_22809
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC3_22809
if 
  not is_car_dead 72@
goto_if_false @MUSIC3_22809
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_22788
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_22781
clear_char_tasks 75@
232@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 72@ {actionId} TempAction.HandbrakeStraight {time} 3000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 75@ {sequence} 232@
clear_sequence_task 232@
gosub @MUSIC3_21772
lock_car_doors 72@ {lockStatus} CarLock.Unlocked
153@ = 3

:MUSIC3_22781
goto @MUSIC3_22809

:MUSIC3_22788
gosub @MUSIC3_21772
lock_car_doors 72@ {lockStatus} CarLock.Unlocked
153@ = 3

:MUSIC3_22809
if 
  154@ == 0
goto_if_false @MUSIC3_22961
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_22961
if 
  not locate_char_in_car_car_2d $scplayer {handle} 74@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_22961
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_22961
improve_car_by_cheating 74@ {state} True
set_car_cruise_speed 74@ {maxSpeed} 100.0
mark_car_as_convoy_car 74@ {state} False
add_stuck_car_check_with_warp 74@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7
task_car_mission 77@ {vehicle} 74@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
154@ = 1

:MUSIC3_22961
if 
  122@ == 6
goto_if_false @MUSIC3_23316
if 
  TIMERB > 1000
goto_if_false @MUSIC3_23316
if 
  154@ == 1
goto_if_false @MUSIC3_23119
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_23119
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_23119
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 74@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @MUSIC3_23112
task_car_mission 77@ {vehicle} 74@ {targetVehicle} -1 {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
154@ = 2
goto @MUSIC3_23119

:MUSIC3_23112
154@ = 2

:MUSIC3_23119
if 
  154@ == 2
goto_if_false @MUSIC3_23316
if 
  not is_char_in_any_car $scplayer
goto_if_false @MUSIC3_23316
if 
  not is_car_dead 74@
goto_if_false @MUSIC3_23316
if 
  not is_char_dead 77@
goto_if_false @MUSIC3_23295
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 74@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MUSIC3_23288
clear_char_tasks 77@
232@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 74@ {actionId} TempAction.HandbrakeStraight {time} 3000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 232@
perform_sequence_task 77@ {sequence} 232@
clear_sequence_task 232@
gosub @MUSIC3_21937
lock_car_doors 74@ {lockStatus} CarLock.Unlocked
154@ = 3

:MUSIC3_23288
goto @MUSIC3_23316

:MUSIC3_23295
gosub @MUSIC3_21937
lock_car_doors 74@ {lockStatus} CarLock.Unlocked
154@ = 3

:MUSIC3_23316
return 

:MUSIC3_23318
168@ = generate_random_int_in_range 1 {max} 37
if 
  168@ == 1
goto_if_false @MUSIC3_23360
custom_plate_for_next_car 169@ {text} "GOT_M00_"

:MUSIC3_23360
if 
  168@ == 2
goto_if_false @MUSIC3_23393
custom_plate_for_next_car 169@ {text} "M00TV_4U"

:MUSIC3_23393
if 
  168@ == 3
goto_if_false @MUSIC3_23426
custom_plate_for_next_car 169@ {text} "MATHEW_2"

:MUSIC3_23426
if 
  168@ == 4
goto_if_false @MUSIC3_23459
custom_plate_for_next_car 169@ {text} "D4_DEW0R"

:MUSIC3_23459
if 
  168@ == 5
goto_if_false @MUSIC3_23492
custom_plate_for_next_car 169@ {text} "D0DE_777"

:MUSIC3_23492
if 
  168@ == 6
goto_if_false @MUSIC3_23525
custom_plate_for_next_car 169@ {text} "DAM0_666"

:MUSIC3_23525
if 
  168@ == 7
goto_if_false @MUSIC3_23558
custom_plate_for_next_car 169@ {text} "C0NEY_88"

:MUSIC3_23558
if 
  168@ == 8
goto_if_false @MUSIC3_23591
custom_plate_for_next_car 169@ {text} "PRE4CHER"

:MUSIC3_23591
if 
  168@ == 9
goto_if_false @MUSIC3_23624
custom_plate_for_next_car 169@ {text} "DBP_4NDY"

:MUSIC3_23624
if 
  168@ == 10
goto_if_false @MUSIC3_23657
custom_plate_for_next_car 169@ {text} "EV1L_SLY"

:MUSIC3_23657
if 
  168@ == 11
goto_if_false @MUSIC3_23690
custom_plate_for_next_car 169@ {text} "N1_R4V3N"

:MUSIC3_23690
if 
  168@ == 12
goto_if_false @MUSIC3_23723
custom_plate_for_next_car 169@ {text} "D1VX_Z00"

:MUSIC3_23723
if 
  168@ == 13
goto_if_false @MUSIC3_23755
custom_plate_for_next_car 169@ {text} "MR_B3NN"

:MUSIC3_23755
if 
  168@ == 14
goto_if_false @MUSIC3_23788
custom_plate_for_next_car 169@ {text} "R3D_R4SP"

:MUSIC3_23788
if 
  168@ == 15
goto_if_false @MUSIC3_23821
custom_plate_for_next_car 169@ {text} "LA_B0MBA"

:MUSIC3_23821
if 
  168@ == 16
goto_if_false @MUSIC3_23854
custom_plate_for_next_car 169@ {text} "L3337_0G"

:MUSIC3_23854
if 
  168@ == 17
goto_if_false @MUSIC3_23887
custom_plate_for_next_car 169@ {text} "BUDD4H_X"

:MUSIC3_23887
if 
  168@ == 18
goto_if_false @MUSIC3_23920
custom_plate_for_next_car 169@ {text} "T3H_BUCK"

:MUSIC3_23920
if 
  168@ == 19
goto_if_false @MUSIC3_23953
custom_plate_for_next_car 169@ {text} "CHUNKY_1"

:MUSIC3_23953
if 
  168@ == 20
goto_if_false @MUSIC3_23986
custom_plate_for_next_car 169@ {text} "EV1L_BNZ"

:MUSIC3_23986
if 
  168@ == 21
goto_if_false @MUSIC3_24019
custom_plate_for_next_car 169@ {text} "S4ND_M4N"

:MUSIC3_24019
if 
  168@ == 22
goto_if_false @MUSIC3_24052
custom_plate_for_next_car 169@ {text} "RKK_DBP1"

:MUSIC3_24052
if 
  168@ == 23
goto_if_false @MUSIC3_24085
custom_plate_for_next_car 169@ {text} "RE1_K0KU"

:MUSIC3_24085
if 
  168@ == 24
goto_if_false @MUSIC3_24118
custom_plate_for_next_car 169@ {text} "S3XY_JUD"

:MUSIC3_24118
if 
  168@ == 25
goto_if_false @MUSIC3_24151
custom_plate_for_next_car 169@ {text} "SUNRA_93"

:MUSIC3_24151
if 
  168@ == 26
goto_if_false @MUSIC3_24184
custom_plate_for_next_car 169@ {text} "UG_FUX69"

:MUSIC3_24184
if 
  168@ == 27
goto_if_false @MUSIC3_24217
custom_plate_for_next_car 169@ {text} "LI0N_CUM"

:MUSIC3_24217
if 
  168@ == 28
goto_if_false @MUSIC3_24250
custom_plate_for_next_car 169@ {text} "RKK_PWND"

:MUSIC3_24250
if 
  168@ == 29
goto_if_false @MUSIC3_24283
custom_plate_for_next_car 169@ {text} "HAZE_B0B"

:MUSIC3_24283
if 
  168@ == 30
goto_if_false @MUSIC3_24316
custom_plate_for_next_car 169@ {text} "T3H_FLUF"

:MUSIC3_24316
if 
  168@ == 31
goto_if_false @MUSIC3_24349
custom_plate_for_next_car 169@ {text} "BM_4NDY_"

:MUSIC3_24349
if 
  168@ == 32
goto_if_false @MUSIC3_24382
custom_plate_for_next_car 169@ {text} "BM_D34N_"

:MUSIC3_24382
if 
  168@ == 33
goto_if_false @MUSIC3_24415
custom_plate_for_next_car 169@ {text} "BM_L4C3Y"

:MUSIC3_24415
if 
  168@ == 34
goto_if_false @MUSIC3_24448
custom_plate_for_next_car 169@ {text} "BM_D3V__"

:MUSIC3_24448
if 
  168@ == 35
goto_if_false @MUSIC3_24481
custom_plate_for_next_car 169@ {text} "NU_SK00L"

:MUSIC3_24481
if 
  168@ == 36
goto_if_false @MUSIC3_24514
custom_plate_for_next_car 169@ {text} "G4L_AVET"

:MUSIC3_24514
if 
  168@ == 37
goto_if_false @MUSIC3_24547
custom_plate_for_next_car 169@ {text} "M0J0_J0J"

:MUSIC3_24547
return 

:MUSIC3_24549
if 
  174@ == 1
goto_if_false @MUSIC3_24596
set_lvar_text_label 178@s = 'LOC3_AA'
set_lvar_int_to_constant 206@ = 22000
220@ = 1

:MUSIC3_24596
if 
  174@ == 2
goto_if_false @MUSIC3_24731
set_lvar_text_label 178@s = 'LOC3_BA'
set_lvar_text_label 180@s = 'LOC3_BB'
set_lvar_text_label 182@s = 'LOC3_BC'
set_lvar_text_label 184@s = 'LOC3_BD'
set_lvar_text_label 186@s = 'LOC3_BE'
set_lvar_int_to_constant 206@ = 22001
set_lvar_int_to_constant 207@ = 22002
set_lvar_int_to_constant 208@ = 22003
set_lvar_int_to_constant 209@ = 22004
set_lvar_int_to_constant 210@ = 22005
220@ = 5

:MUSIC3_24731
if 
  174@ == 3
goto_if_false @MUSIC3_24800
set_lvar_text_label 178@s = 'LOC3_CA'
set_lvar_text_label 180@s = 'LOC3_CB'
set_lvar_int_to_constant 206@ = 22006
set_lvar_int_to_constant 207@ = 22007
220@ = 2

:MUSIC3_24800
if 
  174@ == 4
goto_if_false @MUSIC3_24935
set_lvar_text_label 178@s = 'LOC3_DA'
set_lvar_text_label 180@s = 'LOC3_DB'
set_lvar_text_label 182@s = 'LOC3_DC'
set_lvar_text_label 184@s = 'LOC3_DD'
set_lvar_text_label 186@s = 'LOC3_EA'
set_lvar_int_to_constant 206@ = 22008
set_lvar_int_to_constant 207@ = 22009
set_lvar_int_to_constant 208@ = 22010
set_lvar_int_to_constant 209@ = 22011
set_lvar_int_to_constant 210@ = 22012
220@ = 5

:MUSIC3_24935
if 
  174@ == 5
goto_if_false @MUSIC3_25180
set_lvar_text_label 178@s = 'LOC3_EB'
set_lvar_text_label 180@s = 'LOC3_EC'
set_lvar_text_label 182@s = 'LOC3_ED'
set_lvar_text_label 184@s = 'LOC3_EE'
set_lvar_text_label 186@s = 'LOC3_EF'
set_lvar_text_label 188@s = 'LOC3_EG'
set_lvar_text_label 190@s = 'LOC3_EH'
set_lvar_text_label 192@s = 'LOC3_EJ'
set_lvar_text_label 194@s = 'LOC3_EK'
set_lvar_text_label 196@s = 'LOC3_EL'
set_lvar_int_to_constant 206@ = 22013
set_lvar_int_to_constant 207@ = 22014
set_lvar_int_to_constant 208@ = 22015
set_lvar_int_to_constant 209@ = 22016
set_lvar_int_to_constant 210@ = 22017
set_lvar_int_to_constant 211@ = 22018
set_lvar_int_to_constant 212@ = 22019
set_lvar_int_to_constant 213@ = 22020
set_lvar_int_to_constant 214@ = 22021
set_lvar_int_to_constant 215@ = 22022
220@ = 10

:MUSIC3_25180
if 
  174@ == 6
goto_if_false @MUSIC3_25227
set_lvar_text_label 178@s = 'LOC3_EO'
set_lvar_int_to_constant 206@ = 22025
220@ = 1

:MUSIC3_25227
if 
  174@ == 7
goto_if_false @MUSIC3_25363
set_lvar_text_label 178@s = 'MOBRING'
set_lvar_text_label 180@s = 'MLOC04A'
set_lvar_text_label 182@s = 'MLOC04B'
set_lvar_text_label 184@s = 'MLOC04C'
set_lvar_text_label 186@s = 'MLOC04D'
set_lvar_int_to_constant 206@ = 23000
set_lvar_int_to_constant 207@ = 27419
set_lvar_int_to_constant 208@ = 27420
set_lvar_int_to_constant 209@ = 27421
set_lvar_int_to_constant 210@ = 27422
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25363
if 
  174@ == 8
goto_if_false @MUSIC3_25499
set_lvar_text_label 178@s = 'LOC3_FA'
set_lvar_text_label 180@s = 'LOC3_FB'
set_lvar_text_label 182@s = 'LOC3_FC'
set_lvar_text_label 184@s = 'LOC3_FE'
set_lvar_text_label 186@s = 'LOC3_FF'
set_lvar_int_to_constant 206@ = 22026
set_lvar_int_to_constant 207@ = 22027
set_lvar_int_to_constant 208@ = 22028
set_lvar_int_to_constant 209@ = 22030
set_lvar_int_to_constant 210@ = 22031
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25499
if 
  174@ == 9
goto_if_false @MUSIC3_25613
set_lvar_text_label 178@s = 'LOC3_GA'
set_lvar_text_label 180@s = 'LOC3_GB'
set_lvar_text_label 182@s = 'LOC3_GC'
set_lvar_text_label 184@s = 'LOC3_GD'
set_lvar_int_to_constant 206@ = 22032
set_lvar_int_to_constant 207@ = 22033
set_lvar_int_to_constant 208@ = 22034
set_lvar_int_to_constant 209@ = 22035
set_lvar_int_to_lvar_int 220@ = 177@

:MUSIC3_25613
if 
  174@ == 10
goto_if_false @MUSIC3_25662
set_lvar_text_label 178@s = 'RYD1_BE'
set_lvar_int_to_constant 206@ = 33613
220@ = 1

:MUSIC3_25662
if 
  174@ == 11
goto_if_false @MUSIC3_25709
set_lvar_text_label 178@s = 'LOC3_JA'
set_lvar_int_to_constant 206@ = 22038
220@ = 1

:MUSIC3_25709
if 
  174@ == 12
goto_if_false @MUSIC3_25756
set_lvar_text_label 178@s = 'LOC3_JB'
set_lvar_int_to_constant 206@ = 22039
220@ = 1

:MUSIC3_25756
set_lvar_int_to_lvar_int 223@ = 176@
221@ = 0
222@ = 0
224@ = 1
return 

:MUSIC3_25787
if 
  174@ == 1
goto_if_false @MUSIC3_25913
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_25906
gosub @MUSIC3_26553
gosub @MUSIC3_26660
if 
  not is_char_dead 76@
goto_if_false @MUSIC3_25868
gosub @MUSIC3_26814
goto @MUSIC3_25899

:MUSIC3_25868
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_25899
goto @MUSIC3_25913

:MUSIC3_25906
174@ = 0

:MUSIC3_25913
if or
  174@ == 7
  174@ == 2
  174@ == 6
  174@ == 11
  174@ == 12
goto_if_false @MUSIC3_26013
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_26006
gosub @MUSIC3_26553
gosub @MUSIC3_26660
gosub @MUSIC3_26814
goto @MUSIC3_26013

:MUSIC3_26006
174@ = 0

:MUSIC3_26013
if 
  122@ == 5
goto_if_false @MUSIC3_26307
if 
  123@ == 0
goto_if_false @MUSIC3_26307
if or
  174@ == 3
  174@ == 4
  174@ == 5
  174@ == 10
goto_if_false @MUSIC3_26307
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_26300
gosub @MUSIC3_26553
gosub @MUSIC3_26660
if 
  not is_char_dead 102@
goto_if_false @MUSIC3_26262
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_26224
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_26186
gosub @MUSIC3_26814
goto @MUSIC3_26217

:MUSIC3_26186
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26217
goto @MUSIC3_26255

:MUSIC3_26224
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26255
goto @MUSIC3_26293

:MUSIC3_26262
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26293
goto @MUSIC3_26307

:MUSIC3_26300
174@ = 0

:MUSIC3_26307
if or
  174@ == 8
  174@ == 9
goto_if_false @MUSIC3_26551
if 
  is_int_lvar_greater_than_int_lvar 220@ > 176@
goto_if_false @MUSIC3_26544
gosub @MUSIC3_26553
gosub @MUSIC3_26660
if 
  not is_char_dead 75@
goto_if_false @MUSIC3_26506
if 
  not is_car_dead 73@
goto_if_false @MUSIC3_26468
if 
  is_char_in_car $scplayer {vehicle} 73@
goto_if_false @MUSIC3_26430
gosub @MUSIC3_26814
goto @MUSIC3_26461

:MUSIC3_26430
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26461
goto @MUSIC3_26499

:MUSIC3_26468
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26499
goto @MUSIC3_26537

:MUSIC3_26506
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 178@(176@,14s)
221@ = 0
222@ = 0

:MUSIC3_26537
goto @MUSIC3_26551

:MUSIC3_26544
174@ = 0

:MUSIC3_26551
return 

:MUSIC3_26553
if 
  is_int_lvar_greater_than_int_lvar 220@ > 223@
goto_if_false @MUSIC3_26658
if 
  221@ == 0
goto_if_false @MUSIC3_26615
load_mission_audio MissionAudioSlot.Slot1 {audioId} 206@(223@,14i)
223@ += 1
221@ = 1

:MUSIC3_26615
if 
  222@ == 0
goto_if_false @MUSIC3_26658
load_mission_audio MissionAudioSlot.Slot2 {audioId} 206@(223@,14i)
223@ += 1
222@ = 1

:MUSIC3_26658
return 

:MUSIC3_26660
if 
  224@ == 1
goto_if_false @MUSIC3_26736
if 
  221@ == 1
goto_if_false @MUSIC3_26736
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC3_26736
play_mission_audio MissionAudioSlot.Slot1
print_now 178@(176@,14s) {time} 4500 {flag} 1
221@ = 2

:MUSIC3_26736
if 
  224@ == 2
goto_if_false @MUSIC3_26812
if 
  222@ == 1
goto_if_false @MUSIC3_26812
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC3_26812
play_mission_audio MissionAudioSlot.Slot2
print_now 178@(176@,14s) {time} 4500 {flag} 1
222@ = 2

:MUSIC3_26812
return 

:MUSIC3_26814
if 
  221@ == 2
goto_if_false @MUSIC3_26877
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC3_26877
clear_this_print 178@(176@,14s)
176@ += 1
224@ = 2
221@ = 0

:MUSIC3_26877
if 
  222@ == 2
goto_if_false @MUSIC3_26940
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC3_26940
clear_this_print 178@(176@,14s)
176@ += 1
224@ = 1
222@ = 0

:MUSIC3_26940
return 

//-------------Mission 34---------------
// Originally: House Party

:MUSIC5
script_name 'MUSIC5'
gosub @MUSIC5_47
if 
  has_deatharrest_been_executed 
goto_if_false @MUSIC5_38
gosub @MUSIC5_15871

:MUSIC5_38
gosub @MUSIC5_16040
terminate_this_script 

:MUSIC5_47
$onmission = 1
register_mission_given 
load_mission_text 'STRAP4'
clear_prints 
wait 0
$LA_hub_activity = 1
80@ = 0
81@ = 0
82@ = 0
83@ = 0
106@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
set_lvar_int_to_constant 89@ = 106
set_lvar_int_to_constant 90@ = 107
set_lvar_int_to_constant 91@ = 107
set_lvar_int_to_constant 92@ = 103
set_lvar_int_to_constant 93@ = 103
set_lvar_int_to_constant 94@ = 104
95@ = 0
96@ = 0
105@ = 0
107@ = 0
108@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0.0
142@ = 0.0
143@ = 0.0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
104@ = 75
switch_car_generator $gen_car6 {amount} 0
switch_car_generator $gen_car7 {amount} 0
switch_car_generator $gen_car10 {amount} 0
clear_area 791.7 {y} -1627.0 {z} 12.3 {radius} 10.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
make_player_gang_disappear 
set_fading_colour 0 {g} 0 {b} 0
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_609
clear_area 782.5 {y} -1619.3 {z} 12.0 {radius} 5.0 {clearParticles} False
102@, 103@ = get_random_car_model_in_memory True
if 
  102@ >= 0
goto_if_false @MUSIC5_506
64@ = create_car 102@ {x} 782.5 {y} -1619.3 {z} 12.0
set_car_heading 64@ {heading} 270.0

:MUSIC5_506
clear_area 782.5 {y} -1604.8 {z} 12.0 {radius} 5.0 {clearParticles} False
102@, 103@ = get_random_car_model_in_memory True
if 
  102@ >= 0
goto_if_false @MUSIC5_591
65@ = create_car 102@ {x} 782.5 {y} -1604.8 {z} 12.0
set_car_heading 65@ {heading} 270.0

:MUSIC5_591
load_cutscene 'STRAP4A'
goto @MUSIC5_673

:MUSIC5_609
if 
  97@ == 0
goto_if_false @MUSIC5_673
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} False
set_area_visible 3
load_cutscene 'STRP4B1'
97@ = 1

:MUSIC5_673
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC5_697
wait 0
goto @MUSIC5_673

:MUSIC5_697
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC5_706
if 
  not has_cutscene_finished 
goto_if_false @MUSIC5_730
wait 0
goto @MUSIC5_706

:MUSIC5_730
do_fade 0 {direction} Fade.Out

:MUSIC5_736
if 
  get_fading_status 
goto_if_false @MUSIC5_760
wait 0
goto @MUSIC5_736

:MUSIC5_760
mark_car_as_no_longer_needed 64@
mark_car_as_no_longer_needed 65@
clear_cutscene 
set_player_control $player1 {state} False
if 
  97@ == 1
goto_if_false @MUSIC5_1053
if 
  not was_cutscene_skipped 
goto_if_false @MUSIC5_1053
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} False
set_fading_colour 0 {g} 0 {b} 0
request_model 492
load_all_models_now 
clear_area 2503.0 {y} -1658.8 {z} 12.3 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
34@ = create_car 492 {x} 2503.0 {y} -1658.8 {z} 13.0
change_car_colour 34@ {color1} 59 {color2} 34
set_car_heading 34@ {heading} 234.0
set_area_visible 0
load_cutscene 'STRP4B2'

:MUSIC5_945
if 
  not has_cutscene_loaded 
goto_if_false @MUSIC5_969
wait 0
goto @MUSIC5_945

:MUSIC5_969
start_cutscene 
do_fade 1000 {direction} Fade.In

:MUSIC5_978
if 
  not has_cutscene_finished 
goto_if_false @MUSIC5_1002
wait 0
goto @MUSIC5_978

:MUSIC5_1002
do_fade 0 {direction} Fade.Out

:MUSIC5_1008
if 
  get_fading_status 
goto_if_false @MUSIC5_1032
wait 0
goto @MUSIC5_1008

:MUSIC5_1032
clear_cutscene 
delete_car 34@
set_player_control $player1 {state} False
97@ = 0

:MUSIC5_1053
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
wait 0
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_1112
do_fade 0 {direction} Fade.In
goto @MUSIC5_15889

:MUSIC5_1112
request_model 106
request_model 107
request_model 103
request_model 104
request_model 492
request_model 566
request_model 412
request_model 344
request_model 372
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'RYDER2'
load_mission_audio MissionAudioSlot.Slot3 {audioId} 19800

:MUSIC5_1186
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MUSIC5_1212
wait 0
goto @MUSIC5_1186

:MUSIC5_1212
set_mission_audio_position MissionAudioSlot.Slot3 {x} 2482.0 {y} -1646.3 {z} 12.8
play_mission_audio MissionAudioSlot.Slot3
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission3
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Mission3
147@ = get_player_group $player1
set_group_separation_range 147@ {range} 1000.0
151@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 151@ {event} Event.LeaderExitedCarAsDriver
clear_group_decision_maker_event_response 151@ {event} Event.LeaderEnteredCarAsDriver
add_group_decision_maker_event_response 151@ {event} Event.ShotFired {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_group_decision_maker 147@ {handleOrTemplate} 151@
set_group_default_task_allocator 147@ {defaultTaskAllocator} DefaultTaskAllocator.StandStill
145@ = load_char_decision_maker DecisionMakerType.Tough
146@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_char_decision_maker_event_response 146@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed
$sweet = create_char PedType.Mission3 {modelId} 290 {x} 2485.5 {y} -1647.7 {z} 13.3
set_char_never_targetted $sweet {state} True
set_char_heading $sweet {heading} 196.6
set_char_only_damaged_by_player $sweet {state} True
set_char_stay_in_same_place $sweet {state} True
give_weapon_to_char $sweet {weaponType} WeaponType.Tec9 {ammo} 3000
add_armour_to_char $sweet {amount} 100
set_char_only_damaged_by_player $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 146@
clear_area 2503.0 {y} -1658.8 {z} 12.3 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
34@ = create_car 492 {x} 2503.0 {y} -1658.8 {z} 13.0
change_car_colour 34@ {color1} 59 {color2} 34
set_car_heading 34@ {heading} 234.0
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 34@ {state} True
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
95@ = generate_random_int_in_range 0 {max} 3
63@ = create_char PedType.Mission3 {modelId} 89@(95@,6i) {x} 2487.1001 {y} -1647.7 {z} 13.3
set_char_never_targetted 63@ {state} True
set_char_heading 63@ {heading} 158.9
set_char_only_damaged_by_player 63@ {state} True
set_char_stay_in_same_place 63@ {state} True
give_weapon_to_char 63@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 63@ {handleOrTemplate} 146@
clear_area 2496.7 {y} -1683.4 {z} 13.0 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 412
gosub @MUSIC5_16445
35@ = create_car 412 {x} 2496.7 {y} -1683.4 {z} 13.0
set_car_heading 35@ {heading} 272.5
lock_car_doors 35@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 35@ {state} True
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
$ryder = create_char PedType.Mission3 {modelId} 291 {x} 2484.1001 {y} -1641.2 {z} 13.5
set_char_stay_in_same_place $ryder {state} True
set_char_never_targetted $ryder {state} True
set_char_heading $ryder {heading} 180.0
give_weapon_to_char $ryder {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker $ryder {handleOrTemplate} 146@
95@ = generate_random_int_in_range 0 {max} 3
36@ = create_char PedType.Mission2 {modelId} 89@(95@,6i) {x} 2486.2 {y} -1642.2 {z} 13.5
set_char_stay_in_same_place 36@ {state} True
set_char_never_targetted 36@ {state} True
set_char_heading 36@ {heading} 180.0
give_weapon_to_char 36@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 36@ {handleOrTemplate} 146@
95@ = generate_random_int_in_range 0 {max} 3
37@ = create_char PedType.Mission2 {modelId} 89@(95@,6i) {x} 2486.2 {y} -1641.2 {z} 13.5
set_char_stay_in_same_place 37@ {state} True
set_char_never_targetted 37@ {state} True
set_char_heading 37@ {heading} 180.0
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 37@ {handleOrTemplate} 146@
95@ = generate_random_int_in_range 0 {max} 3
39@ = create_char PedType.Mission2 {modelId} 89@(95@,6i) {x} 2486.2 {y} -1639.2 {z} 13.5
set_char_stay_in_same_place 39@ {state} True
set_char_never_targetted 39@ {state} True
set_char_heading 39@ {heading} 180.0
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 39@ {handleOrTemplate} 146@
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16445
43@ = create_car 566 {x} 2227.6001 {y} -1667.8 {z} 13.7
set_car_heading 43@ {heading} 342.3
set_car_proofs 43@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 43@ {lockStatus} CarLock.LockoutPlayerOnly
95@ = generate_random_int_in_range 3 {max} 6
47@ = create_char_inside_car 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i)
set_char_kinda_stay_in_same_place 47@ {state} True
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 47@ {handleOrTemplate} 146@
149@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 149@ {range} 300.0
set_group_decision_maker 149@ {handleOrTemplate} 151@
set_group_leader 149@ {handle} 47@
set_char_accuracy 47@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
48@ = create_char_as_passenger 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.BikeRear
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 48@ {state} True
set_char_decision_maker 48@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 48@
set_char_accuracy 48@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
49@ = create_char_as_passenger 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearLeft
set_char_only_damaged_by_player 49@ {state} True
set_char_suffers_critical_hits 49@ {state} False
add_armour_to_char 49@ {amount} 100
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 49@ {handleOrTemplate} 146@
set_char_accuracy 49@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
50@ = create_char_as_passenger 43@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearRight
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 50@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 50@
set_char_accuracy 50@ {accuracy} 104@
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16445
44@ = create_car 566 {x} 2224.6001 {y} -1677.9 {z} 13.2
set_car_heading 44@ {heading} 342.3
set_car_proofs 44@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 44@ {lockStatus} CarLock.LockoutPlayerOnly
95@ = generate_random_int_in_range 3 {max} 6
51@ = create_char_inside_car 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i)
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 51@ {state} True
set_char_decision_maker 51@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 51@
set_char_accuracy 51@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
52@ = create_char_as_passenger 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.BikeRear
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 52@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 52@
set_char_accuracy 52@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
53@ = create_char_as_passenger 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearLeft
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 53@ {state} True
set_char_decision_maker 53@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 53@
set_char_accuracy 53@ {accuracy} 104@
95@ = generate_random_int_in_range 3 {max} 6
54@ = create_char_as_passenger 44@ {pedType} PedType.Mission1 {modelId} 89@(95@,6i) {seat} SeatId.RearRight
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 54@ {state} True
set_char_decision_maker 54@ {handleOrTemplate} 146@
set_group_member 149@ {handle} 54@
set_char_accuracy 54@ {accuracy} 104@
set_area_visible 0
load_scene 2484.8999 {y} -1649.2 {z} 12.5
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} False
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_max_fire_generations 1
request_car_recording 22
request_car_recording 23
clear_area 2492.3999 {y} -1632.0 {z} 12.4 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2492.3999 {y} -1632.0 {z} 12.4
set_fixed_camera_position 2483.0 {y} -1649.8 {z} 12.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2494.3 {y} -1650.3 {z} 16.6 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
enable_ambient_crime False

:MUSIC5_3034
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MUSIC5_3060
goto @MUSIC5_15889

:MUSIC5_3060
alter_wanted_level $player1 {wantedLevel} 0
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_3099
goto @MUSIC5_15871

:MUSIC5_3099
if 
  80@ == 0
goto_if_false @MUSIC5_7138
if 
  81@ == 0
goto_if_false @MUSIC5_4059
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_3206
144@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2498.5 {y} -1652.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_enter_car_as_driver -1 {vehicle} 34@ {time} -1
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3206
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_3293
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_3293
144@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2487.3999 {y} -1657.9 {z} 12.3 {speed} MoveState.Run {time} -1
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 144@
perform_sequence_task 63@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3293
if 
  not is_char_dead $ryder
goto_if_false @MUSIC5_3431
144@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2485.1001 {y} -1652.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2478.3999 {y} -1649.1 {z} 12.5 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2478.2 {y} -1631.4 {z} 12.5 {speed} MoveState.Run {time} -1
close_sequence_task 144@
perform_sequence_task $ryder {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3431
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_3624
144@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} 2487.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2487.1001 {y} -1654.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2472.3 {y} -1652.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 9000
task_follow_path_nodes_to_coord -1 {x} 2466.3 {y} -1660.7 {z} 12.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 88.6
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3624
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_3793
144@ = open_sequence_task 
task_pause -1 {time} 1500
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1654.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2467.6001 {y} -1649.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 110.0
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3793
if 
  not is_char_dead 39@
goto_if_false @MUSIC5_3986
144@ = open_sequence_task 
task_pause -1 {time} 3000
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1646.7 {z} 12.9 {speed} MoveState.Walk {time} 1
task_go_straight_to_coord -1 {x} 2486.1001 {y} -1654.7 {z} 12.3 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2473.3999 {y} -1652.7 {z} 12.5 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 9000
task_follow_path_nodes_to_coord -1 {x} 2463.8 {y} -1663.6 {z} 12.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 116.3
close_sequence_task 144@
perform_sequence_task 39@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_3986
do_fade 1000 {direction} Fade.In
105@ = 1
107@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 107@
108@ += 1
gosub @MUSIC5_17676
82@ = 1
skip_cutscene_start_internal @MUSIC5_5676
TIMERA = 0
81@ = 1

:MUSIC5_4059
if 
  81@ == 1
goto_if_false @MUSIC5_4205
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_4205
if 
  TIMERA > 3000
goto_if_false @MUSIC5_4205
105@ = 2
107@ = 0
108@ = 2
gosub @MUSIC5_17676
set_fixed_camera_position 2501.5 {y} -1650.5 {z} 13.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2498.8999 {y} -1682.1 {z} 16.3 {switchStyle} SwitchType.JumpCut
TIMERA = 0
81@ = 2

:MUSIC5_4205
if 
  81@ == 2
goto_if_false @MUSIC5_5334
if 
  86@ == 0
goto_if_false @MUSIC5_4491
if 
  TIMERA > 6000
goto_if_false @MUSIC5_4491
if 
  not is_car_dead 43@
goto_if_false @MUSIC5_4372
if 
  not is_char_dead 47@
goto_if_false @MUSIC5_4372
144@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 43@ {x} 2435.3 {y} -1661.1 {z} 12.2 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_temp_action -1 {vehicle} 43@ {actionId} TempAction.TurnRight {time} 200
task_car_temp_action -1 {vehicle} 43@ {actionId} TempAction.HandbrakeStraight {time} 400
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_4372
if 
  not is_car_dead 44@
goto_if_false @MUSIC5_4484
if 
  not is_char_dead 51@
goto_if_false @MUSIC5_4484
144@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 44@ {x} 2440.8 {y} -1656.9 {z} 12.2 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_temp_action -1 {vehicle} 44@ {actionId} TempAction.TurnLeft {time} 200
task_car_temp_action -1 {vehicle} 44@ {actionId} TempAction.HandbrakeStraight {time} 400
close_sequence_task 144@
perform_sequence_task 51@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_4484
86@ = 1

:MUSIC5_4491
if or
  2 > 84@
  2 > 85@
goto_if_false @MUSIC5_5264
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_5014
if 
  84@ == 0
goto_if_false @MUSIC5_4800
if 
  is_char_in_car $sweet {vehicle} 34@
goto_if_false @MUSIC5_4793
do_fade 500 {direction} Fade.Out

:MUSIC5_4576
if 
  get_fading_status 
goto_if_false @MUSIC5_4600
wait 0
goto @MUSIC5_4576

:MUSIC5_4600
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_4632
goto @MUSIC5_15871

:MUSIC5_4632
load_scene 2459.2749 {y} -1653.2629 {z} 13.0938
set_fixed_camera_position 2459.2749 {y} -1653.2629 {z} 13.0938 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2460.0891 {y} -1653.843 {z} 13.1158 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_4723
start_playback_recorded_car 34@ {path} 22

:MUSIC5_4723
do_fade 500 {direction} Fade.In

:MUSIC5_4730
if 
  get_fading_status 
goto_if_false @MUSIC5_4754
wait 0
goto @MUSIC5_4730

:MUSIC5_4754
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_4786
goto @MUSIC5_15871

:MUSIC5_4786
84@ = 1

:MUSIC5_4793
goto @MUSIC5_5014

:MUSIC5_4800
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_5014
if 
  not is_playback_going_on_for_car 34@
goto_if_false @MUSIC5_5014
if 
  84@ == 1
goto_if_false @MUSIC5_5014
144@ = open_sequence_task 
task_pause -1 {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2458.8999 {y} -1665.6 {z} 12.2 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2465.0 {y} -1666.4 {z} 12.2 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} 2465.3 {y} -1654.6 {z} 12.2 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 107.0
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@
84@ = 2

:MUSIC5_5014
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_5257
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_5257
if 
  85@ == 0
goto_if_false @MUSIC5_5104
if 
  is_char_in_car 63@ {vehicle} 35@
goto_if_false @MUSIC5_5097
start_playback_recorded_car 35@ {path} 23
85@ = 1

:MUSIC5_5097
goto @MUSIC5_5257

:MUSIC5_5104
if 
  not is_playback_going_on_for_car 35@
goto_if_false @MUSIC5_5257
if 
  85@ == 1
goto_if_false @MUSIC5_5257
144@ = open_sequence_task 
task_pause -1 {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2458.2 {y} -1655.0 {z} 12.2 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 2461.1001 {y} -1650.8 {z} 12.2 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} 2467.3999 {y} -1657.7 {z} 12.2 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 110.0
close_sequence_task 144@
perform_sequence_task 63@ {sequence} 144@
clear_sequence_task 144@
85@ = 2

:MUSIC5_5257
goto @MUSIC5_5334

:MUSIC5_5264
do_fade 500 {direction} Fade.Out

:MUSIC5_5271
if 
  get_fading_status 
goto_if_false @MUSIC5_5295
wait 0
goto @MUSIC5_5271

:MUSIC5_5295
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_5327
goto @MUSIC5_15871

:MUSIC5_5327
81@ = 3

:MUSIC5_5334
if 
  81@ == 3
goto_if_false @MUSIC5_5607
load_scene 2404.5 {y} -1672.3 {z} 15.8
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16445
61@ = create_car 566 {x} 2485.0 {y} -1682.5 {z} 15.0
lock_car_doors 61@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 61@ {state} True
set_car_proofs 61@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heading 61@ {heading} 90.0
camera_reset_new_scriptables 
camera_persist_pos True
camera_persist_track True
camera_set_vector_move 2404.5 {fromY} -1672.3 {fromZ} 15.8 {toX} 2408.6001 {toY} -1672.7 {toZ} 15.9 {time} 5000 {ease} True
camera_set_vector_track 2384.8 {fromY} -1665.4 {fromZ} 13.4 {toX} 2416.5 {toY} -1665.3 {toZ} 13.9 {time} 5000 {ease} True
do_fade 500 {direction} Fade.In

:MUSIC5_5537
if 
  get_fading_status 
goto_if_false @MUSIC5_5561
wait 0
goto @MUSIC5_5537

:MUSIC5_5561
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_5593
goto @MUSIC5_15871

:MUSIC5_5593
TIMERA = 0
81@ = 4

:MUSIC5_5607
if 
  81@ == 4
goto_if_false @MUSIC5_5651
if 
  TIMERA > 5800
goto_if_false @MUSIC5_5651
81@ = 5

:MUSIC5_5651
if 
  81@ == 5
goto_if_false @MUSIC5_7138
82@ = 0

:MUSIC5_5676
skip_cutscene_end 
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_5710
goto @MUSIC5_15871

:MUSIC5_5710
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
do_fade 500 {direction} Fade.Out

:MUSIC5_5734
if 
  get_fading_status 
goto_if_false @MUSIC5_5758
wait 0
goto @MUSIC5_5734

:MUSIC5_5758
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_5790
goto @MUSIC5_15871

:MUSIC5_5790
camera_reset_new_scriptables 
if 
  82@ == 1
goto_if_false @MUSIC5_5904
if 
  not is_car_dead 43@
goto_if_false @MUSIC5_5856
set_car_coordinates 43@ {x} 2453.1001 {y} -1663.0 {z} 12.3
set_car_heading 43@ {heading} 217.2

:MUSIC5_5856
if 
  not is_car_dead 44@
goto_if_false @MUSIC5_5902
set_car_coordinates 44@ {x} 2452.2 {y} -1651.9 {z} 12.3
set_car_heading 44@ {heading} 314.2

:MUSIC5_5902
clear_prints 

:MUSIC5_5904
if 
  is_car_dead 61@
goto_if_false @MUSIC5_5997
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16445
61@ = create_car 566 {x} 2485.0 {y} -1682.5 {z} 15.0
lock_car_doors 61@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 61@ {state} True
set_car_proofs 61@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heading 61@ {heading} 90.0

:MUSIC5_5997
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_6064
if 
  is_playback_going_on_for_car 34@
goto_if_false @MUSIC5_6034
stop_playback_recorded_car 34@

:MUSIC5_6034
set_car_coordinates 34@ {x} 2462.3 {y} -1662.4 {z} 12.1
set_car_heading 34@ {heading} 325.8

:MUSIC5_6064
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_6131
if 
  is_playback_going_on_for_car 35@
goto_if_false @MUSIC5_6101
stop_playback_recorded_car 35@

:MUSIC5_6101
set_car_coordinates 35@ {x} 2463.3999 {y} -1656.1 {z} 12.0
set_car_heading 35@ {heading} 50.5

:MUSIC5_6131
clear_char_tasks_immediately $sweet
clear_area 2465.3 {y} -1654.6 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2465.3 {y} -1654.6 {z} 12.2
set_char_heading $sweet {heading} 107.0
set_char_decision_maker $sweet {handleOrTemplate} 145@
148@ = create_group DefaultTaskAllocator.StandStill
set_group_decision_maker 148@ {handleOrTemplate} 151@
set_group_leader 148@ {handle} $sweet
144@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_6380
clear_char_tasks_immediately 63@
clear_area 2467.3999 {y} -1657.7 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 63@ {x} 2467.3999 {y} -1657.7 {z} 12.2
set_char_heading 63@ {heading} 107.0
set_char_decision_maker 63@ {handleOrTemplate} 145@
set_group_member 148@ {handle} 63@

:MUSIC5_6380
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_6539
clear_char_tasks_immediately 36@
clear_area 2466.3 {y} -1660.7 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 36@ {x} 2466.3 {y} -1660.7 {z} 12.2
set_char_heading 36@ {heading} 88.6
set_char_decision_maker 36@ {handleOrTemplate} 145@
set_group_member 147@ {handle} 36@
144@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_6539
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_6698
clear_char_tasks_immediately 37@
clear_area 2467.6001 {y} -1649.2 {z} 12.5 {radius} 1.0 {clearParticles} True
set_char_coordinates 37@ {x} 2467.6001 {y} -1649.2 {z} 12.5
set_char_heading 37@ {heading} 110.0
set_char_decision_maker 37@ {handleOrTemplate} 145@
set_group_member 147@ {handle} 37@
144@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_6698
if 
  not is_char_dead 39@
goto_if_false @MUSIC5_6857
clear_char_tasks_immediately 39@
clear_area 2462.3 {y} -1665.7 {z} 12.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 39@ {x} 2462.3 {y} -1665.7 {z} 12.2
set_char_heading 39@ {heading} 76.9
set_char_decision_maker 39@ {handleOrTemplate} 145@
set_group_member 147@ {handle} 39@
144@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 144@
perform_sequence_task 39@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_6857
load_scene 2487.3 {y} -1650.7 {z} 12.5
clear_area 2469.7 {y} -1657.0 {z} 12.3 {radius} 1.0 {clearParticles} True
set_char_coordinates_dont_warp_gang $scplayer {x} 2469.7 {y} -1657.0 {z} 12.3
set_char_heading $scplayer {heading} 90.0
62@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreet {ammo} 120 {x} 2466.0 {y} -1656.1 {z} 13.3
add_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
delete_char $ryder
unload_special_character 2
105@ = 2
107@ = 2
108@ = 4
gosub @MUSIC5_17676
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1500 {direction} Fade.In

:MUSIC5_7061
if 
  get_fading_status 
goto_if_false @MUSIC5_7085
wait 0
goto @MUSIC5_7061

:MUSIC5_7085
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_7117
goto @MUSIC5_15871

:MUSIC5_7117
TIMERA = 0
81@ = 0
80@ = 1

:MUSIC5_7138
if 
  80@ == 1
goto_if_false @MUSIC5_8230
if 
  106@ == 0
goto_if_false @MUSIC5_7215
if 
  105@ == 0
goto_if_false @MUSIC5_7215
print 'STP4_02' {time} 11000 {flag} 1
106@ = 1

:MUSIC5_7215
if 
  81@ == 0
goto_if_false @MUSIC5_7861
if 
  not is_char_dead 47@
goto_if_false @MUSIC5_7305
144@ = open_sequence_task 
task_pause -1 {time} 1200
task_leave_any_car -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@
66@ = add_blip_for_char 47@
change_blip_scale 66@ {size} 1

:MUSIC5_7305
if 
  not is_char_dead 48@
goto_if_false @MUSIC5_7386
144@ = open_sequence_task 
task_pause -1 {time} 500
task_leave_any_car -1
task_achieve_heading -1 {heading} 295.1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@
67@ = add_blip_for_char 48@
change_blip_scale 67@ {size} 1

:MUSIC5_7386
if 
  not is_char_dead 49@
goto_if_false @MUSIC5_7458
144@ = open_sequence_task 
task_pause -1 {time} 2200
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@
68@ = add_blip_for_char 49@
change_blip_scale 68@ {size} 1

:MUSIC5_7458
if 
  not is_char_dead 50@
goto_if_false @MUSIC5_7530
144@ = open_sequence_task 
task_pause -1 {time} 2000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@
69@ = add_blip_for_char 50@
change_blip_scale 69@ {size} 1

:MUSIC5_7530
if 
  not is_char_dead 51@
goto_if_false @MUSIC5_7611
144@ = open_sequence_task 
task_pause -1 {time} 1800
task_leave_any_car -1
task_achieve_heading -1 {heading} 245.3
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 51@ {sequence} 144@
clear_sequence_task 144@
70@ = add_blip_for_char 51@
change_blip_scale 70@ {size} 1

:MUSIC5_7611
if 
  not is_char_dead 52@
goto_if_false @MUSIC5_7692
144@ = open_sequence_task 
task_pause -1 {time} 2300
task_leave_any_car -1
task_achieve_heading -1 {heading} 268.6
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 52@ {sequence} 144@
clear_sequence_task 144@
71@ = add_blip_for_char 52@
change_blip_scale 71@ {size} 1

:MUSIC5_7692
if 
  not is_char_dead 53@
goto_if_false @MUSIC5_7773
144@ = open_sequence_task 
task_pause -1 {time} 2100
task_leave_any_car -1
task_achieve_heading -1 {heading} 225.8
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 53@ {sequence} 144@
clear_sequence_task 144@
72@ = add_blip_for_char 53@
change_blip_scale 72@ {size} 1

:MUSIC5_7773
if 
  not is_char_dead 54@
goto_if_false @MUSIC5_7854
144@ = open_sequence_task 
task_pause -1 {time} 1200
task_leave_any_car -1
task_achieve_heading -1 {heading} 236.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 54@ {sequence} 144@
clear_sequence_task 144@
73@ = add_blip_for_char 54@
change_blip_scale 73@ {size} 1

:MUSIC5_7854
81@ = 1

:MUSIC5_7861
if 
  81@ == 1
goto_if_false @MUSIC5_8162
if 
  is_char_dead 47@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 48@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 49@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 50@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 51@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 52@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 53@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 54@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 55@
goto_if_false @MUSIC5_8162
if 
  is_char_dead 56@
goto_if_false @MUSIC5_8162
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
clear_prints 
TIMERA = 0
81@ = 0
80@ = 2

:MUSIC5_8162
if 
  10 > 88@
goto_if_false @MUSIC5_8223
if 
  is_char_dead 47@(88@,14i)
goto_if_false @MUSIC5_8209
remove_blip 66@(88@,14i)

:MUSIC5_8209
88@ += 1
goto @MUSIC5_8230

:MUSIC5_8223
88@ = 0

:MUSIC5_8230
if 
  80@ == 2
goto_if_false @MUSIC5_9775
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_9291
if 
  81@ == 0
goto_if_false @MUSIC5_9291
if 
  TIMERA > 2000
goto_if_false @MUSIC5_9291
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
clear_area 2425.8 {y} -1636.6 {z} 26.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16445
45@ = create_car 566 {x} 2425.8 {y} -1636.6 {z} 26.2
set_car_heading 45@ {heading} 166.8
clear_area 2441.6001 {y} -1658.6 {z} 25.2 {radius} 5.0 {clearParticles} True
47@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1658.6 {z} 25.2
set_char_accuracy 47@ {accuracy} 104@
set_char_heading 47@ {heading} 262.7
set_char_only_damaged_by_player 47@ {state} True
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 47@ {state} True
150@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 150@ {range} 300.0
set_char_health 47@ {health} 10
set_char_decision_maker 47@ {handleOrTemplate} 146@
set_group_decision_maker 150@ {handleOrTemplate} 151@
set_group_leader 150@ {handle} 47@
66@ = add_blip_for_char 47@
change_blip_scale 66@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 500
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@
clear_area 2441.6001 {y} -1660.2 {z} 25.1 {radius} 5.0 {clearParticles} True
48@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1660.2 {z} 25.1
set_char_accuracy 48@ {accuracy} 104@
set_char_heading 48@ {heading} 265.9
set_char_only_damaged_by_player 48@ {state} True
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_health 48@ {health} 10
set_char_stay_in_same_place 48@ {state} True
set_char_decision_maker 48@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 48@
67@ = add_blip_for_char 48@
change_blip_scale 67@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 600
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@
clear_area 2441.6001 {y} -1665.2 {z} 24.6 {radius} 5.0 {clearParticles} True
49@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1665.2 {z} 24.6
set_char_accuracy 49@ {accuracy} 104@
set_char_heading 49@ {heading} 273.6
set_char_only_damaged_by_player 49@ {state} True
set_char_health 49@ {health} 10
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 49@
68@ = add_blip_for_char 49@
change_blip_scale 68@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 1700
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@
clear_area 2441.6001 {y} -1655.4 {z} 25.6 {radius} 5.0 {clearParticles} True
50@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2441.6001 {y} -1655.4 {z} 25.6
set_char_accuracy 50@ {accuracy} 104@
set_char_heading 50@ {heading} 280.0
set_char_only_damaged_by_player 50@ {state} True
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_health 50@ {health} 10
set_char_stay_in_same_place 50@ {state} True
set_char_decision_maker 50@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 50@
69@ = add_blip_for_char 50@
change_blip_scale 69@ {size} 1
144@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_pause -1 {time} 2000
task_climb -1 {flag} False
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@
task_turn_char_to_face_char $scplayer {target} 50@
set_fixed_camera_position 2474.3 {y} -1660.9 {z} 14.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2449.8 {y} -1657.2 {z} 19.1 {switchStyle} SwitchType.JumpCut
105@ = 2
107@ = 5
108@ = 6
gosub @MUSIC5_17676
skip_cutscene_start_internal @MUSIC5_9328
TIMERA = 0
TIMERB = 0
81@ = 1

:MUSIC5_9291
if 
  81@ == 1
goto_if_false @MUSIC5_9498
if 
  TIMERA > 3000
goto_if_false @MUSIC5_9498

:MUSIC5_9328
skip_cutscene_end 
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_9362
goto @MUSIC5_15871

:MUSIC5_9362
if 
  82@ == 1
goto_if_false @MUSIC5_9397
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0

:MUSIC5_9397
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_9435
task_shoot_at_coord 37@ {x} 2443.8999 {y} -1659.9 {z} 24.6 {time} -2

:MUSIC5_9435
if 
  not is_char_dead 39@
goto_if_false @MUSIC5_9456
explode_char_head 39@

:MUSIC5_9456
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
106@ = 0
81@ = 2

:MUSIC5_9498
if 
  81@ == 2
goto_if_false @MUSIC5_9707
if 
  106@ == 0
goto_if_false @MUSIC5_9575
if 
  105@ == 0
goto_if_false @MUSIC5_9575
print 'STP4_03' {time} 11000 {flag} 1
106@ = 1

:MUSIC5_9575
if 
  is_char_dead 47@
goto_if_false @MUSIC5_9707
if 
  is_char_dead 48@
goto_if_false @MUSIC5_9707
if 
  is_char_dead 49@
goto_if_false @MUSIC5_9707
if 
  is_char_dead 50@
goto_if_false @MUSIC5_9707
mark_car_as_no_longer_needed 45@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
clear_prints 
TIMERA = 0
81@ = 0
80@ = 3

:MUSIC5_9707
if 
  4 > 88@
goto_if_false @MUSIC5_9768
if 
  is_char_dead 47@(88@,14i)
goto_if_false @MUSIC5_9754
remove_blip 66@(88@,14i)

:MUSIC5_9754
88@ += 1
goto @MUSIC5_9775

:MUSIC5_9768
88@ = 0

:MUSIC5_9775
if 
  80@ == 3
goto_if_false @MUSIC5_14610
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_11429
if 
  81@ == 0
goto_if_false @MUSIC5_11429
if 
  TIMERA > 2000
goto_if_false @MUSIC5_11429
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC5_9864
if 
  get_fading_status 
goto_if_false @MUSIC5_9888
wait 0
goto @MUSIC5_9864

:MUSIC5_9888
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_9920
goto @MUSIC5_15871

:MUSIC5_9920
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
clear_char_decision_maker_event_response 146@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed
if 
  locate_char_any_means_3d $scplayer {x} 2473.5 {y} -1655.2 {z} 12.1 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MUSIC5_10058
clear_area 2475.8 {y} -1663.6 {z} 12.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2475.8 {y} -1663.6 {z} 12.3

:MUSIC5_10058
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_10135
clear_area 2473.5 {y} -1655.2 {z} 12.1 {radius} 5.0 {clearParticles} True
set_car_coordinates 35@ {x} 2473.5 {y} -1655.2 {z} 12.1
set_car_heading 35@ {heading} 267.2
goto @MUSIC5_10236

:MUSIC5_10135
clear_area 2473.5 {y} -1655.2 {z} 12.1 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 412
gosub @MUSIC5_16445
35@ = create_car 412 {x} 2473.5 {y} -1655.2 {z} 12.1
set_car_heading 35@ {heading} 267.2
lock_car_doors 35@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 35@ {state} True
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False

:MUSIC5_10236
clear_area 2480.7 {y} -1729.2 {z} 12.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 99@ = 566
gosub @MUSIC5_16445
46@ = create_car 566 {x} 2480.7 {y} -1729.2 {z} 12.2
set_car_heading 46@ {heading} 105.1
lock_car_doors 46@ {lockStatus} CarLock.LockoutPlayerOnly
clear_area 2481.2 {y} -1718.2 {z} 12.5 {radius} 5.0 {clearParticles} True
47@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2481.2 {y} -1718.2 {z} 12.5
set_char_accuracy 47@ {accuracy} 104@
set_char_heading 47@ {heading} 353.4
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 47@ {state} True
set_char_decision_maker 47@ {handleOrTemplate} 146@
150@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 150@ {range} 300.0
set_group_decision_maker 150@ {handleOrTemplate} 151@
set_group_leader 150@ {handle} 47@
66@ = add_blip_for_char 47@
change_blip_scale 66@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2481.2 {y} -1688.1 {z} 12.5 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 12.5 {time} 10000
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@
clear_area 2482.1001 {y} -1720.2 {z} 12.5 {radius} 5.0 {clearParticles} True
48@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2482.1001 {y} -1720.2 {z} 12.5
set_char_accuracy 48@ {accuracy} 104@
set_char_heading 48@ {heading} 352.8
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 48@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 48@
67@ = add_blip_for_char 48@
change_blip_scale 67@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2482.1001 {y} -1689.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 13.5 {time} 4000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@
clear_area 2481.0 {y} -1718.2 {z} 12.5 {radius} 5.0 {clearParticles} True
49@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2481.0 {y} -1718.2 {z} 12.5
set_char_accuracy 49@ {accuracy} 104@
set_char_heading 49@ {heading} 352.8
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 49@
68@ = add_blip_for_char 49@
change_blip_scale 68@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2481.0 {y} -1687.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 13.5 {time} 10000
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@
clear_area 2480.3 {y} -1719.2 {z} 12.5 {radius} 5.0 {clearParticles} True
50@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2480.3 {y} -1719.2 {z} 12.5
set_char_accuracy 50@ {accuracy} 104@
set_char_heading 50@ {heading} 352.8
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 50@ {handleOrTemplate} 146@
set_group_member 150@ {handle} 50@
69@ = add_blip_for_char 50@
change_blip_scale 69@ {size} 1
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2480.3 {y} -1689.7 {z} 12.5 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_shoot_at_coord -1 {x} 2480.2 {y} -1680.1 {z} 13.5 {time} 4000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@
load_scene_in_direction 2478.8 {y} -1708.1 {z} 12.9 {heading} 190.0
set_fixed_camera_position 2481.0 {y} -1682.5 {z} 12.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2487.3999 {y} -1700.0 {z} 16.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC5_11317
if 
  get_fading_status 
goto_if_false @MUSIC5_11341
wait 0
goto @MUSIC5_11317

:MUSIC5_11341
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_11373
goto @MUSIC5_15871

:MUSIC5_11373
105@ = 2
107@ = 6
108@ = 7
gosub @MUSIC5_17676
82@ = 1
skip_cutscene_start_internal @MUSIC5_11473
TIMERA = 0
81@ = 1

:MUSIC5_11429
if 
  81@ == 1
goto_if_false @MUSIC5_13449
if 
  TIMERA > 3000
goto_if_false @MUSIC5_13449
82@ = 0

:MUSIC5_11473
skip_cutscene_end 
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_11507
goto @MUSIC5_15871

:MUSIC5_11507
if 
  82@ == 1
goto_if_false @MUSIC5_11542
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0

:MUSIC5_11542
do_fade 500 {direction} Fade.Out

:MUSIC5_11549
if 
  get_fading_status 
goto_if_false @MUSIC5_11573
wait 0
goto @MUSIC5_11549

:MUSIC5_11573
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_11605
goto @MUSIC5_15871

:MUSIC5_11605
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 215.5
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_11768
clear_char_tasks_immediately $sweet
clear_area 2472.5 {y} -1666.2 {z} 12.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $sweet {x} 2472.5 {y} -1666.2 {z} 12.3
set_char_heading $sweet {heading} 234.4
set_char_stay_in_same_place $sweet {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2476.1001 {y} -1673.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@

:MUSIC5_11768
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_11862
clear_char_tasks_immediately 63@
set_char_stay_in_same_place 63@ {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2478.2 {y} -1673.7 {z} 12.5 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 63@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_11862
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_11956
clear_char_tasks_immediately 36@
set_char_stay_in_same_place 36@ {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2481.2 {y} -1682.9 {z} 12.5 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_11956
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_12050
clear_char_tasks_immediately 37@
set_char_stay_in_same_place 37@ {state} False
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 146@
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} 2482.2 {y} -1682.9 {z} 12.5 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12050
add_char_decision_maker_event_response 145@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 151@ {event} Event.ShotFired {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
if 
  not is_char_dead 47@
goto_if_false @MUSIC5_12169
clear_char_tasks_immediately 47@
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 47@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12169
if 
  not is_char_dead 48@
goto_if_false @MUSIC5_12220
clear_char_tasks_immediately 48@
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 48@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12220
if 
  not is_char_dead 49@
goto_if_false @MUSIC5_12271
clear_char_tasks_immediately 49@
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 49@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12271
if 
  not is_char_dead 50@
goto_if_false @MUSIC5_12376
clear_char_tasks_immediately 50@
clear_area 2489.6001 {y} -1683.3 {z} 12.5 {radius} 1.0 {clearParticles} True
set_char_coordinates 50@ {x} 2489.6001 {y} -1683.3 {z} 12.5
set_char_heading 50@ {heading} 45.5
144@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 145@
close_sequence_task 144@
perform_sequence_task 50@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_12376
clear_area 2469.3999 {y} -1708.9 {z} 12.5 {radius} 5.0 {clearParticles} True
51@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2469.3999 {y} -1708.9 {z} 12.5
set_char_accuracy 51@ {accuracy} 104@
set_char_heading 51@ {heading} 352.8
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 51@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 51@
70@ = add_blip_for_char 51@
change_blip_scale 70@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 51@ {sequence} 144@
clear_sequence_task 144@
clear_area 2467.1001 {y} -1710.8 {z} 12.5 {radius} 5.0 {clearParticles} True
52@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2467.1001 {y} -1710.8 {z} 12.5
set_char_accuracy 52@ {accuracy} 104@
set_char_heading 52@ {heading} 352.8
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 52@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 52@
71@ = add_blip_for_char 52@
change_blip_scale 71@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 52@ {sequence} 144@
clear_sequence_task 144@
clear_area 2529.3 {y} -1691.6 {z} 12.5 {radius} 5.0 {clearParticles} True
53@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2529.3 {y} -1691.6 {z} 12.5
set_char_accuracy 53@ {accuracy} 104@
set_char_heading 53@ {heading} 352.8
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 53@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 53@
72@ = add_blip_for_char 53@
change_blip_scale 72@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 53@ {sequence} 144@
clear_sequence_task 144@
clear_area 2529.7 {y} -1690.1 {z} 12.5 {radius} 5.0 {clearParticles} True
54@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2529.7 {y} -1690.1 {z} 12.5
set_char_accuracy 54@ {accuracy} 104@
set_char_heading 54@ {heading} 352.8
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 54@ {handleOrTemplate} 145@
set_group_member 150@ {handle} 54@
73@ = add_blip_for_char 54@
change_blip_scale 73@ {size} 1
144@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 54@ {sequence} 144@
clear_sequence_task 144@
clear_area 2478.7 {y} -1645.7 {z} 12.5 {radius} 5.0 {clearParticles} True
55@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2478.7 {y} -1645.7 {z} 12.5
set_char_accuracy 55@ {accuracy} 104@
set_char_heading 55@ {heading} 180.0
give_weapon_to_char 55@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 55@ {state} True
set_char_decision_maker 55@ {handleOrTemplate} 146@
clear_area 2477.7 {y} -1645.7 {z} 12.5 {radius} 5.0 {clearParticles} True
56@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2477.7 {y} -1645.7 {z} 12.5
set_char_accuracy 56@ {accuracy} 104@
set_char_heading 56@ {heading} 180.0
give_weapon_to_char 56@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 56@ {state} True
set_char_decision_maker 56@ {handleOrTemplate} 146@
clear_area 2478.7 {y} -1644.7 {z} 12.5 {radius} 5.0 {clearParticles} True
57@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2478.7 {y} -1644.7 {z} 12.5
set_char_accuracy 57@ {accuracy} 104@
set_char_heading 57@ {heading} 180.0
give_weapon_to_char 57@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 57@ {state} True
set_char_decision_maker 57@ {handleOrTemplate} 146@
clear_area 2477.7 {y} -1644.7 {z} 12.5 {radius} 5.0 {clearParticles} True
58@ = create_char PedType.Mission1 {modelId} 89@(95@,6i) {x} 2477.7 {y} -1644.7 {z} 12.5
set_char_accuracy 58@ {accuracy} 104@
set_char_heading 58@ {heading} 180.0
give_weapon_to_char 58@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 58@ {state} True
set_char_decision_maker 58@ {handleOrTemplate} 146@
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print 'STP4_04' {time} 11000 {flag} 1
do_fade 500 {direction} Fade.In

:MUSIC5_13379
if 
  get_fading_status 
goto_if_false @MUSIC5_13403
wait 0
goto @MUSIC5_13379

:MUSIC5_13403
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_13435
goto @MUSIC5_15871

:MUSIC5_13435
TIMERA = 0
81@ = 2

:MUSIC5_13449
if 
  81@ == 2
goto_if_false @MUSIC5_14542
if 
  96@ == 0
goto_if_false @MUSIC5_13811
if 
  is_char_dead 47@
goto_if_false @MUSIC5_13572
if 
  is_char_dead 48@
goto_if_false @MUSIC5_13572
if 
  is_char_dead 49@
goto_if_false @MUSIC5_13572
if 
  is_char_dead 54@
goto_if_false @MUSIC5_13572
if 
  is_char_dead 55@
goto_if_false @MUSIC5_13572
96@ = 1

:MUSIC5_13572
if 
  TIMERA > 10000
goto_if_false @MUSIC5_13598
96@ = 1

:MUSIC5_13598
if 
  locate_char_any_means_2d $scplayer {x} 2478.5 {y} -1646.2 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @MUSIC5_13643
96@ = 1

:MUSIC5_13643
if 
  not is_char_dead 55@
goto_if_false @MUSIC5_13685
if 
  has_char_been_damaged_by_char 55@ {handle} $scplayer
goto_if_false @MUSIC5_13685
96@ = 1

:MUSIC5_13685
if 
  not is_char_dead 56@
goto_if_false @MUSIC5_13727
if 
  has_char_been_damaged_by_char 56@ {handle} $scplayer
goto_if_false @MUSIC5_13727
96@ = 1

:MUSIC5_13727
if 
  not is_char_dead 57@
goto_if_false @MUSIC5_13769
if 
  has_char_been_damaged_by_char 57@ {handle} $scplayer
goto_if_false @MUSIC5_13769
96@ = 1

:MUSIC5_13769
if 
  not is_char_dead 58@
goto_if_false @MUSIC5_13811
if 
  has_char_been_damaged_by_char 58@ {handle} $scplayer
goto_if_false @MUSIC5_13811
96@ = 1

:MUSIC5_13811
if 
  96@ == 1
goto_if_false @MUSIC5_14207
if 
  not is_char_dead 55@
goto_if_false @MUSIC5_13916
149@ = create_group DefaultTaskAllocator.StandStill
set_group_separation_range 149@ {range} 300.0
set_char_decision_maker 55@ {handleOrTemplate} 145@
set_group_decision_maker 149@ {handleOrTemplate} 151@
set_group_leader 149@ {handle} 55@
74@ = add_blip_for_char 55@
change_blip_scale 74@ {size} 1
set_char_stay_in_same_place 55@ {state} False
task_kill_char_on_foot 55@ {target} $scplayer

:MUSIC5_13916
if 
  not is_char_dead 56@
goto_if_false @MUSIC5_13978
set_char_decision_maker 56@ {handleOrTemplate} 145@
set_group_member 149@ {handle} 56@
75@ = add_blip_for_char 56@
change_blip_scale 75@ {size} 1
set_char_stay_in_same_place 56@ {state} False
task_kill_char_on_foot 56@ {target} $scplayer

:MUSIC5_13978
if 
  not is_char_dead 57@
goto_if_false @MUSIC5_14108
set_char_decision_maker 57@ {handleOrTemplate} 145@
set_group_member 149@ {handle} 57@
76@ = add_blip_for_char 57@
change_blip_scale 76@ {size} 1
set_char_stay_in_same_place 57@ {state} False
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2477.3 {y} -1651.4 {z} 12.5 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 2464.0 {y} -1653.4 {z} 12.5 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 57@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_14108
if 
  not is_char_dead 58@
goto_if_false @MUSIC5_14170
set_char_decision_maker 58@ {handleOrTemplate} 145@
set_group_member 149@ {handle} 58@
77@ = add_blip_for_char 58@
change_blip_scale 77@ {size} 1
set_char_stay_in_same_place 58@ {state} False
task_kill_char_on_foot 58@ {target} $sweet

:MUSIC5_14170
clear_prints 
105@ = 2
107@ = 7
108@ = 8
gosub @MUSIC5_17676
96@ = 2

:MUSIC5_14207
if 
  is_char_dead 47@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 48@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 49@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 50@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 51@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 52@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 53@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 54@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 55@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 56@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 57@
goto_if_false @MUSIC5_14542
if 
  is_char_dead 58@
goto_if_false @MUSIC5_14542
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
remove_blip 77@
clear_prints 
TIMERA = 0
81@ = 0
80@ = 4

:MUSIC5_14542
if 
  12 > 88@
goto_if_false @MUSIC5_14603
if 
  is_char_dead 47@(88@,14i)
goto_if_false @MUSIC5_14589
remove_blip 66@(88@,14i)

:MUSIC5_14589
88@ += 1
goto @MUSIC5_14610

:MUSIC5_14603
88@ = 0

:MUSIC5_14610
if 
  80@ == 4
goto_if_false @MUSIC5_15794
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @MUSIC5_15451
if 
  81@ == 0
goto_if_false @MUSIC5_15451
if 
  TIMERA > 2000
goto_if_false @MUSIC5_15451
clear_prints 
do_fade 500 {direction} Fade.Out

:MUSIC5_14699
if 
  get_fading_status 
goto_if_false @MUSIC5_14723
wait 0
goto @MUSIC5_14699

:MUSIC5_14723
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_14755
goto @MUSIC5_15871

:MUSIC5_14755
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
105@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  $main_visible_area <> 0
goto_if_false @MUSIC5_14819
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0

:MUSIC5_14819
shut_all_chars_up True
clear_area 2484.8999 {y} -1649.2 {z} 12.5 {radius} 160.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2484.2 {y} -1666.2 {z} 12.3
set_char_heading $scplayer {heading} 336.7
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2486.7 {y} -1650.1 {z} 12.3 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} 2486.7 {y} -1646.0 {z} 12.5 {speed} MoveState.Walk {time} -1
close_sequence_task 144@
perform_sequence_task $scplayer {sequence} 144@
clear_sequence_task 144@
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_15064
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 2487.2 {y} -1666.1 {z} 12.3
set_char_heading $sweet {heading} 4.3
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2486.7 {y} -1645.1 {z} 12.3 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 178.8
close_sequence_task 144@
perform_sequence_task $sweet {sequence} 144@
clear_sequence_task 144@

:MUSIC5_15064
if 
  not is_char_dead 63@
goto_if_false @MUSIC5_15115
clear_char_tasks_immediately 63@
set_char_coordinates 63@ {x} 2488.8999 {y} -1649.0 {z} 12.5
set_char_heading 63@ {heading} 177.2

:MUSIC5_15115
if 
  not is_char_dead 36@
goto_if_false @MUSIC5_15212
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 2484.2 {y} -1669.1 {z} 12.3
set_char_heading 36@ {heading} 177.2
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2488.3999 {y} -1650.8 {z} 12.3 {speed} MoveState.Walk {time} -1
close_sequence_task 144@
perform_sequence_task 36@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_15212
if 
  not is_char_dead 37@
goto_if_false @MUSIC5_15309
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} 2485.2 {y} -1669.1 {z} 12.3
set_char_heading 37@ {heading} 177.2
144@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2489.3999 {y} -1650.7 {z} 12.3 {speed} MoveState.Walk {time} -1
close_sequence_task 144@
perform_sequence_task 37@ {sequence} 144@
clear_sequence_task 144@

:MUSIC5_15309
105@ = 3
107@ = 0
gosub @MUSIC5_17676
set_fixed_camera_position 2480.7 {y} -1660.5 {z} 13.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2498.7 {y} -1656.6 {z} 17.9 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MUSIC5_15388
if 
  get_fading_status 
goto_if_false @MUSIC5_15412
wait 0
goto @MUSIC5_15388

:MUSIC5_15412
gosub @MUSIC5_16402
if 
  83@ == 1
goto_if_false @MUSIC5_15444
goto @MUSIC5_15871

:MUSIC5_15444
81@ = 1

:MUSIC5_15451
if 
  81@ == 1
goto_if_false @MUSIC5_15545
if 
  107@ == 4
goto_if_false @MUSIC5_15545
set_fixed_camera_position 2471.554 {y} -1656.167 {z} 18.379 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2472.425 {y} -1655.676 {z} 18.402 {switchStyle} SwitchType.JumpCut
81@ = 2

:MUSIC5_15545
if 
  81@ == 2
goto_if_false @MUSIC5_15595
if 
  105@ == 0
goto_if_false @MUSIC5_15595
TIMERA = 0
81@ = 3

:MUSIC5_15595
if 
  81@ == 3
goto_if_false @MUSIC5_15794
if 
  TIMERA > 1000
goto_if_false @MUSIC5_15794
do_fade 2500 {direction} Fade.Out

:MUSIC5_15639
if 
  get_fading_status 
goto_if_false @MUSIC5_15663
wait 0
goto @MUSIC5_15639

:MUSIC5_15663
100@, 101@ = get_time_of_day 
100@ += 6
set_time_of_day 100@ {minutes} 101@
delete_char $sweet
unload_special_character 1
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2486.6001 {y} -1649.9 {z} 12.5
set_char_heading $scplayer {heading} 177.8
shut_all_chars_up False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
wait 2000
do_fade 2500 {direction} Fade.In

:MUSIC5_15763
if 
  get_fading_status 
goto_if_false @MUSIC5_15787
wait 0
goto @MUSIC5_15763

:MUSIC5_15787
goto @MUSIC5_15889

:MUSIC5_15794
if 
  not locate_char_any_means_2d $scplayer {x} 2484.8999 {y} -1663.5 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @MUSIC5_15857
clear_prints 
print_now 'STP4_06' {time} 7000 {flag} 1
goto @MUSIC5_15871

:MUSIC5_15857
gosub @MUSIC5_18136
goto @MUSIC5_3034

:MUSIC5_15871
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MUSIC5_15889
if 
  $strap4_mission_passed_once_flag == 0
goto_if_false @MUSIC5_15973
remove_blip $strap_contact_blip
$strap_contact_blip = add_sprite_blip_for_contact_point $strap2X {y} $strap2Y {z} $strap2Z {sprite} $strap_blip_icon
do_fade 500 {direction} Fade.In
print_now 'STP4_07' {time} 11000 {flag} 1
$flag_strap_mission_counter += 1
$strap4_mission_passed_once_flag = 1
goto @MUSIC5_16038

:MUSIC5_15973
set_int_stat StatId.PassedStrap4 {value} 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'STRAP_4'
player_made_progress 1
$flag_strap_mission_counter += 1
remove_blip $strap_contact_blip

:MUSIC5_16038
return 

:MUSIC5_16040
if 
  is_var_text_label_empty s$shop_name
goto_if_false @MUSIC5_16058
restore_camera_jumpcut 

:MUSIC5_16058
if 
  not is_car_dead 34@
goto_if_false @MUSIC5_16103
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heavy 34@ {state} False

:MUSIC5_16103
if 
  not is_car_dead 35@
goto_if_false @MUSIC5_16148
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heavy 35@ {state} False

:MUSIC5_16148
if 
  not is_car_dead 61@
goto_if_false @MUSIC5_16193
lock_car_doors 61@ {lockStatus} CarLock.Unlocked
set_car_proofs 61@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heavy 61@ {state} False

:MUSIC5_16193
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
remove_blip 77@
remove_blip 78@
remove_blip 79@
$LA_hub_activity = 0
if 
  not is_char_dead $scplayer
goto_if_false @MUSIC5_16293
shut_char_up_for_scripted_speech $scplayer {state} False

:MUSIC5_16293
shut_all_chars_up False
remove_char_elegantly $sweet
remove_char_elegantly $ryder
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 372
unload_special_character 1
unload_special_character 2
switch_car_generator $gen_car6 {amount} 101
switch_car_generator $gen_car7 {amount} 101
switch_car_generator $gen_car10 {amount} 101
remove_pickup 62@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:MUSIC5_16402
if 
  is_char_dead $sweet
goto_if_false @MUSIC5_16443
clear_prints 
print_now 'STP4_05' {time} 7000 {flag} 1
83@ = 1

:MUSIC5_16443
return 

:MUSIC5_16445
98@ = generate_random_int_in_range 1 {max} 37
if 
  98@ == 1
goto_if_false @MUSIC5_16487
custom_plate_for_next_car 99@ {text} "GOT_M00_"

:MUSIC5_16487
if 
  98@ == 2
goto_if_false @MUSIC5_16520
custom_plate_for_next_car 99@ {text} "M00TV_4U"

:MUSIC5_16520
if 
  98@ == 3
goto_if_false @MUSIC5_16553
custom_plate_for_next_car 99@ {text} "MATHEW_2"

:MUSIC5_16553
if 
  98@ == 4
goto_if_false @MUSIC5_16586
custom_plate_for_next_car 99@ {text} "D4_DEW0R"

:MUSIC5_16586
if 
  98@ == 5
goto_if_false @MUSIC5_16619
custom_plate_for_next_car 99@ {text} "D0DE_777"

:MUSIC5_16619
if 
  98@ == 6
goto_if_false @MUSIC5_16652
custom_plate_for_next_car 99@ {text} "DAM0_666"

:MUSIC5_16652
if 
  98@ == 7
goto_if_false @MUSIC5_16685
custom_plate_for_next_car 99@ {text} "C0NEY_88"

:MUSIC5_16685
if 
  98@ == 8
goto_if_false @MUSIC5_16718
custom_plate_for_next_car 99@ {text} "PRE4CHER"

:MUSIC5_16718
if 
  98@ == 9
goto_if_false @MUSIC5_16751
custom_plate_for_next_car 99@ {text} "DBP_4NDY"

:MUSIC5_16751
if 
  98@ == 10
goto_if_false @MUSIC5_16784
custom_plate_for_next_car 99@ {text} "EV1L_SLY"

:MUSIC5_16784
if 
  98@ == 11
goto_if_false @MUSIC5_16817
custom_plate_for_next_car 99@ {text} "N1_R4V3N"

:MUSIC5_16817
if 
  98@ == 12
goto_if_false @MUSIC5_16850
custom_plate_for_next_car 99@ {text} "D1VX_Z00"

:MUSIC5_16850
if 
  98@ == 13
goto_if_false @MUSIC5_16882
custom_plate_for_next_car 99@ {text} "MR_B3NN"

:MUSIC5_16882
if 
  98@ == 14
goto_if_false @MUSIC5_16915
custom_plate_for_next_car 99@ {text} "R3D_R4SP"

:MUSIC5_16915
if 
  98@ == 15
goto_if_false @MUSIC5_16948
custom_plate_for_next_car 99@ {text} "LA_B0MBA"

:MUSIC5_16948
if 
  98@ == 16
goto_if_false @MUSIC5_16981
custom_plate_for_next_car 99@ {text} "L3337_0G"

:MUSIC5_16981
if 
  98@ == 17
goto_if_false @MUSIC5_17014
custom_plate_for_next_car 99@ {text} "BUDD4H_X"

:MUSIC5_17014
if 
  98@ == 18
goto_if_false @MUSIC5_17047
custom_plate_for_next_car 99@ {text} "T3H_BUCK"

:MUSIC5_17047
if 
  98@ == 19
goto_if_false @MUSIC5_17080
custom_plate_for_next_car 99@ {text} "CHUNKY_1"

:MUSIC5_17080
if 
  98@ == 20
goto_if_false @MUSIC5_17113
custom_plate_for_next_car 99@ {text} "EV1L_BNZ"

:MUSIC5_17113
if 
  98@ == 21
goto_if_false @MUSIC5_17146
custom_plate_for_next_car 99@ {text} "S4ND_M4N"

:MUSIC5_17146
if 
  98@ == 22
goto_if_false @MUSIC5_17179
custom_plate_for_next_car 99@ {text} "RKK_DBP1"

:MUSIC5_17179
if 
  98@ == 23
goto_if_false @MUSIC5_17212
custom_plate_for_next_car 99@ {text} "RE1_K0KU"

:MUSIC5_17212
if 
  98@ == 24
goto_if_false @MUSIC5_17245
custom_plate_for_next_car 99@ {text} "S3XY_JUD"

:MUSIC5_17245
if 
  98@ == 25
goto_if_false @MUSIC5_17278
custom_plate_for_next_car 99@ {text} "SUNRA_93"

:MUSIC5_17278
if 
  98@ == 26
goto_if_false @MUSIC5_17311
custom_plate_for_next_car 99@ {text} "UG_FUX69"

:MUSIC5_17311
if 
  98@ == 27
goto_if_false @MUSIC5_17344
custom_plate_for_next_car 99@ {text} "LI0N_CUM"

:MUSIC5_17344
if 
  98@ == 28
goto_if_false @MUSIC5_17377
custom_plate_for_next_car 99@ {text} "RKK_PWND"

:MUSIC5_17377
if 
  98@ == 29
goto_if_false @MUSIC5_17410
custom_plate_for_next_car 99@ {text} "HAZE_B0B"

:MUSIC5_17410
if 
  98@ == 30
goto_if_false @MUSIC5_17443
custom_plate_for_next_car 99@ {text} "T3H_FLUF"

:MUSIC5_17443
if 
  98@ == 31
goto_if_false @MUSIC5_17476
custom_plate_for_next_car 99@ {text} "BM_4NDY_"

:MUSIC5_17476
if 
  98@ == 32
goto_if_false @MUSIC5_17509
custom_plate_for_next_car 99@ {text} "BM_D34N_"

:MUSIC5_17509
if 
  98@ == 33
goto_if_false @MUSIC5_17542
custom_plate_for_next_car 99@ {text} "BM_L4C3Y"

:MUSIC5_17542
if 
  98@ == 34
goto_if_false @MUSIC5_17575
custom_plate_for_next_car 99@ {text} "BM_D3V__"

:MUSIC5_17575
if 
  98@ == 35
goto_if_false @MUSIC5_17608
custom_plate_for_next_car 99@ {text} "NU_SK00L"

:MUSIC5_17608
if 
  98@ == 36
goto_if_false @MUSIC5_17641
custom_plate_for_next_car 99@ {text} "G4L_AVET"

:MUSIC5_17641
if 
  98@ == 37
goto_if_false @MUSIC5_17674
custom_plate_for_next_car 99@ {text} "M0J0_J0J"

:MUSIC5_17674
return 

:MUSIC5_17676
if 
  105@ == 1
goto_if_false @MUSIC5_17768
set_lvar_text_label 109@s = 'LOC4_CA'
set_lvar_text_label 111@s = 'LOC4_CB'
set_lvar_text_label 113@s = 'LOC4_CC'
set_lvar_int_to_constant 127@ = 22215
set_lvar_int_to_constant 128@ = 22216
set_lvar_int_to_constant 129@ = 22217
set_lvar_int_to_lvar_int 136@ = 108@

:MUSIC5_17768
if 
  105@ == 2
goto_if_false @MUSIC5_17948
set_lvar_text_label 109@s = 'LOC4_AA'
set_lvar_text_label 111@s = 'LOC4_AB'
set_lvar_text_label 113@s = 'LOC4_AC'
set_lvar_text_label 115@s = 'LOC4_AE'
set_lvar_text_label 119@s = 'LOC4_AF'
set_lvar_text_label 121@s = 'LOC4_AG'
set_lvar_text_label 123@s = 'LOC4_AH'
set_lvar_int_to_constant 127@ = 22200
set_lvar_int_to_constant 128@ = 22201
set_lvar_int_to_constant 129@ = 22202
set_lvar_int_to_constant 130@ = 22204
set_lvar_int_to_constant 132@ = 22205
set_lvar_int_to_constant 133@ = 22206
set_lvar_int_to_constant 134@ = 22207
set_lvar_int_to_lvar_int 136@ = 108@

:MUSIC5_17948
if 
  105@ == 3
goto_if_false @MUSIC5_18105
set_lvar_text_label 109@s = 'LOC4_BA'
set_lvar_text_label 111@s = 'LOC4_BB'
set_lvar_text_label 113@s = 'LOC4_BC'
set_lvar_text_label 115@s = 'LOC4_BD'
set_lvar_text_label 117@s = 'LOC4_BE'
set_lvar_text_label 119@s = 'LOC4_BG'
set_lvar_int_to_constant 127@ = 22208
set_lvar_int_to_constant 128@ = 22209
set_lvar_int_to_constant 129@ = 22210
set_lvar_int_to_constant 130@ = 22211
set_lvar_int_to_constant 131@ = 22212
set_lvar_int_to_constant 132@ = 22214
136@ = 6

:MUSIC5_18105
set_lvar_int_to_lvar_int 139@ = 107@
137@ = 0
138@ = 0
140@ = 1
return 

:MUSIC5_18136
if 
  105@ == 2
goto_if_false @MUSIC5_18262
if 
  is_int_lvar_greater_than_int_lvar 136@ > 107@
goto_if_false @MUSIC5_18255
gosub @MUSIC5_18343
gosub @MUSIC5_18450
if 
  not is_char_dead $sweet
goto_if_false @MUSIC5_18217
gosub @MUSIC5_18604
goto @MUSIC5_18248

:MUSIC5_18217
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 109@(107@,9s)
137@ = 0
138@ = 0

:MUSIC5_18248
goto @MUSIC5_18262

:MUSIC5_18255
105@ = 0

:MUSIC5_18262
if or
  105@ == 1
  105@ == 3
goto_if_false @MUSIC5_18341
if 
  is_int_lvar_greater_than_int_lvar 136@ > 107@
goto_if_false @MUSIC5_18334
gosub @MUSIC5_18343
gosub @MUSIC5_18450
gosub @MUSIC5_18604
goto @MUSIC5_18341

:MUSIC5_18334
105@ = 0

:MUSIC5_18341
return 

:MUSIC5_18343
if 
  is_int_lvar_greater_than_int_lvar 136@ > 139@
goto_if_false @MUSIC5_18448
if 
  137@ == 0
goto_if_false @MUSIC5_18405
load_mission_audio MissionAudioSlot.Slot1 {audioId} 127@(139@,9i)
139@ += 1
137@ = 1

:MUSIC5_18405
if 
  138@ == 0
goto_if_false @MUSIC5_18448
load_mission_audio MissionAudioSlot.Slot2 {audioId} 127@(139@,9i)
139@ += 1
138@ = 1

:MUSIC5_18448
return 

:MUSIC5_18450
if 
  140@ == 1
goto_if_false @MUSIC5_18526
if 
  137@ == 1
goto_if_false @MUSIC5_18526
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MUSIC5_18526
play_mission_audio MissionAudioSlot.Slot1
print_now 109@(107@,9s) {time} 4500 {flag} 1
137@ = 2

:MUSIC5_18526
if 
  140@ == 2
goto_if_false @MUSIC5_18602
if 
  138@ == 1
goto_if_false @MUSIC5_18602
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MUSIC5_18602
play_mission_audio MissionAudioSlot.Slot2
print_now 109@(107@,9s) {time} 4500 {flag} 1
138@ = 2

:MUSIC5_18602
return 

:MUSIC5_18604
if 
  137@ == 2
goto_if_false @MUSIC5_18667
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MUSIC5_18667
clear_this_print 109@(107@,9s)
107@ += 1
140@ = 2
137@ = 0

:MUSIC5_18667
if 
  138@ == 2
goto_if_false @MUSIC5_18730
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MUSIC5_18730
clear_this_print 109@(107@,9s)
107@ += 1
140@ = 1
138@ = 0

:MUSIC5_18730
return 

//-------------Mission 35---------------
// Originally: Race Tournament / 8-track / Dirt Track

:CPRACE
gosub @CPRACE_112
if 
  has_deatharrest_been_executed 
goto_if_false @CPRACE_43
print_now 'RACES25' {time} 5000 {flag} 1
goto @CPRACE_103

:CPRACE_43
if or
  53@ == 0
  53@ == 3
goto_if_false @CPRACE_103
do_fade 2000 {direction} Fade.Out
set_deatharrest_state 0

:CPRACE_79
if 
  get_fading_status 
goto_if_false @CPRACE_103
wait 0
goto @CPRACE_79

:CPRACE_103
gosub @CPRACE_51327
terminate_this_script 

:CPRACE_112
$onmission = 1
$disable_mod_garage = 1
script_name 'CPRACE'
wait 0
disable_all_entry_exits True
load_mission_text 'RACETOR'
if 
  $show_race_selection == 1
goto_if_false @CPRACE_372
set_lvar_int_to_constant 49@ = 1
53@ = 0
if 
  $menu_mode == 0
goto_if_false @CPRACE_220
50@ = 0
51@ = 8

:CPRACE_220
if 
  $menu_mode == 1
goto_if_false @CPRACE_252
50@ = 9
51@ = 14

:CPRACE_252
if 
  $menu_mode == 2
goto_if_false @CPRACE_284
50@ = 15
51@ = 18

:CPRACE_284
if 
  $menu_mode == 3
goto_if_false @CPRACE_316
50@ = 19
51@ = 24

:CPRACE_316
if or
  is_int_lvar_greater_than_int_var 50@ > $race_selection
  is_int_var_greater_than_int_lvar $race_selection > 51@
goto_if_false @CPRACE_351
set_var_int_to_lvar_int $race_selection = 50@

:CPRACE_351
52@ = 0
gosub @CPRACE_46974
goto @CPRACE_425

:CPRACE_372
set_lvar_int_to_constant 49@ = 2
if or
  $race_selection == 25
  $race_selection == 26
goto_if_false @CPRACE_418
53@ = 3
goto @CPRACE_425

:CPRACE_418
53@ = 2

:CPRACE_425
if 
  is_int_lvar_equal_to_constant 49@ == 10
goto_if_false @CPRACE_1239
54@ = add_blip_for_coord $x {y} $y {z} $z
449@ = create_checkpoint 205@ {x} $x {y} $y {z} $z {pointX} $x {pointY} $y {pointZ} $z {radius} 6.0

:CPRACE_488
363@(253@,16f) += 3.0
get_ground_z_for_3d_coord 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {var_groundZ} 363@(253@,16f)
if 
  0.0 > 363@(253@,16f)
goto_if_false @CPRACE_591
if 
  is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_591
363@(253@,16f) = 0.0

:CPRACE_591
create_car 716@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {var_handle} 379@(253@,16i)
set_car_heading 379@(253@,16i) {heading} $heading
set_vehicle_area_visible 379@(253@,16i) {interiorId} 221@
lock_car_doors 379@(253@,16i) {lockStatus} CarLock.LockoutPlayerOnly
if 
  $race_selection == 25
goto_if_false @CPRACE_693
set_car_health 379@(253@,16i) {health} 2200

:CPRACE_693
if 
  $race_selection == 26
goto_if_false @CPRACE_742
set_car_health 379@(253@,16i) {health} 10000
set_car_proofs 379@(253@,16i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False

:CPRACE_742
if 
  221@ == 0
goto_if_false @CPRACE_933
set_car_proofs 379@(253@,16i) {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_strong 379@(253@,16i) {state} True
set_car_only_damaged_by_player 379@(253@,16i) {state} True
if 
  is_int_lvar_equal_to_constant 49@ == 6
goto_if_false @CPRACE_915

:CPRACE_819
if 
  is_car_waiting_for_world_collision 379@(253@,16i)
goto_if_false @CPRACE_915
wait 0
if 
  is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_908
if 
  $show_race_selection == 0
goto_if_false @CPRACE_906
if 
  $race_selection == 0
goto_if_false @CPRACE_906
$failed_cesar_race = 1

:CPRACE_906
return 

:CPRACE_908
goto @CPRACE_819

:CPRACE_915
set_load_collision_for_car_flag 379@(253@,16i) {state} False
goto @CPRACE_944

:CPRACE_933
set_load_collision_for_car_flag 379@(253@,16i) {state} True

:CPRACE_944
if 
  209@ <> -1
goto_if_false @CPRACE_985
change_car_colour 379@(253@,16i) {color1} 209@(253@,6i) {color2} 215@(253@,6i)

:CPRACE_985
if 
  is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_1037
set_car_straight_line_distance 379@(253@,16i) {distance} 40
set_boat_cruise_speed 379@(253@,16i) {maxSpeed} 50.0
goto @CPRACE_1237

:CPRACE_1037
if 
  is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_1089
freeze_car_position 379@(253@,16i) {state} True
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 10.0
goto @CPRACE_1237

:CPRACE_1089
if 
  is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_1141
freeze_car_position 379@(253@,16i) {state} True
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 10.0
goto @CPRACE_1237

:CPRACE_1141
set_car_watertight 379@(253@,16i) {state} True
set_can_burst_car_tyres 379@(253@,16i) {state} False
if 
  221@ == 0
goto_if_false @CPRACE_1192
set_upsidedown_car_not_damaged 379@(253@,16i) {state} True

:CPRACE_1192
set_car_straight_line_distance 379@(253@,16i) {distance} 5
set_car_driving_style 379@(253@,16i) {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 379@(253@,16i) {maxSpeed} 50.0
car_set_idle 379@(253@,16i)

:CPRACE_1237
return 

:CPRACE_1239
$x_hud_pos = 70.3919
$y_hud_pos = 154.6278
$x_hud_scale = 0.6617
$y_hud_scale = 2.5845
$6918 = 203.8119
$6932 = 0.7208
$6946 = 2.5114
$6919 = 228.9919
$6933 = 0.7377
$6947 = 2.2364
$6920 = 279.6367
$6922 = 333.4643
$6923 = 358.6443
$6924 = 25.18
55@ = 2357.239
56@ = 1321.193
57@ = 3300.968
58@ = 3646.7991
59@ = 3880.677
60@ = 4216.2729
61@ = 8410.458
62@ = 4817.6362
63@ = 4817.6362
64@ = 3203.229
65@ = 3265.0281
66@ = 1901.285
67@ = 2644.2971
68@ = 8372.6787
69@ = 10760.5
70@ = 7806.103
71@ = 4307.6499
72@ = 4696.6611
73@ = 5960.2798
74@ = 6826.647
75@ = 12299.1396
76@ = 17384.6191
77@ = 4922.4722
78@ = 4398.5
79@ = 4970.7422
80@ = 0.0
81@ = 0.0
82@ = 0.0
83@ = 0.0
84@ = 0.0
set_lvar_text_label 85@s = 'RACE00'
set_lvar_text_label 87@s = 'RACE01'
set_lvar_text_label 89@s = 'RACE02'
set_lvar_text_label 91@s = 'RACE03'
set_lvar_text_label 93@s = 'RACE04'
set_lvar_text_label 95@s = 'RACE05'
set_lvar_text_label 97@s = 'RACE06'
set_lvar_text_label 99@s = 'RACE07'
set_lvar_text_label 101@s = 'RACE08'
set_lvar_text_label 103@s = 'RACE09'
set_lvar_text_label 105@s = 'RACE10'
set_lvar_text_label 107@s = 'RACE11'
set_lvar_text_label 109@s = 'RACE12'
set_lvar_text_label 111@s = 'RACE13'
set_lvar_text_label 113@s = 'RACE14'
set_lvar_text_label 115@s = 'RACE15'
set_lvar_text_label 117@s = 'RACE16'
set_lvar_text_label 119@s = 'RACE17'
set_lvar_text_label 121@s = 'RACE18'
set_lvar_text_label 123@s = 'RACE19'
set_lvar_text_label 125@s = 'RACE20'
set_lvar_text_label 127@s = 'RACE21'
set_lvar_text_label 129@s = 'RACE22'
set_lvar_text_label 131@s = 'RACE23'
set_lvar_text_label 133@s = 'RACE24'
set_lvar_int_to_constant 145@ = 259
set_lvar_int_to_constant 146@ = 261
set_lvar_int_to_constant 147@ = 263
set_lvar_int_to_constant 148@ = 265
set_lvar_int_to_constant 149@ = 267
set_lvar_int_to_constant 150@ = 269
set_lvar_int_to_constant 151@ = 271
set_lvar_int_to_constant 152@ = 273
set_lvar_int_to_constant 153@ = 275
set_lvar_int_to_constant 154@ = 277
set_lvar_int_to_constant 155@ = 279
set_lvar_int_to_constant 156@ = 281
set_lvar_int_to_constant 157@ = 283
set_lvar_int_to_constant 158@ = 285
set_lvar_int_to_constant 159@ = 287
set_lvar_int_to_constant 160@ = 289
set_lvar_int_to_constant 161@ = 291
set_lvar_int_to_constant 162@ = 293
set_lvar_int_to_constant 163@ = 295
set_lvar_int_to_constant 164@ = 296
set_lvar_int_to_constant 165@ = 297
set_lvar_int_to_constant 166@ = 298
set_lvar_int_to_constant 167@ = 299
set_lvar_int_to_constant 168@ = 300
set_lvar_int_to_constant 169@ = 301
set_lvar_int_to_constant 170@ = 48
set_lvar_int_to_constant 171@ = 220
set_lvar_int_to_constant 175@ = 258
set_lvar_int_to_constant 176@ = 260
set_lvar_int_to_constant 177@ = 262
set_lvar_int_to_constant 178@ = 264
set_lvar_int_to_constant 179@ = 266
set_lvar_int_to_constant 180@ = 268
set_lvar_int_to_constant 181@ = 270
set_lvar_int_to_constant 182@ = 272
set_lvar_int_to_constant 183@ = 274
set_lvar_int_to_constant 184@ = 276
set_lvar_int_to_constant 185@ = 278
set_lvar_int_to_constant 186@ = 280
set_lvar_int_to_constant 187@ = 282
set_lvar_int_to_constant 188@ = 284
set_lvar_int_to_constant 189@ = 286
set_lvar_int_to_constant 190@ = 288
set_lvar_int_to_constant 191@ = 290
set_lvar_int_to_constant 192@ = 292
set_lvar_int_to_constant 193@ = 294
set_lvar_int_to_constant 200@ = 172
set_lvar_int_to_constant 201@ = 221
$x, $y, $z = get_char_coordinates $scplayer
set_respawn_point_for_duration_of_mission $x {y} $y {z} $z
set_lvar_int_to_constant 205@ = 0
use_text_commands True
set_message_formatting True {margin} 355 {width} 370
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
display_radar False
206@ = 0
207@ = 0
208@ = 25
209@ = -1
221@ = 0
222@ = 0
223@ = 0
224@ = 1
225@ = 0
226@ = 0
227@ = 0
if 
is_ps2_keyboard_key_pressed 82
goto_if_false @CPRACE_2627
$race_debug = 0
$coords = 0
view_integer_variable $coords {_p2} "COORDS"
set_player_control $player1 {state} True
set_lvar_int_to_constant 49@ = 0
228@ = 1
goto @CPRACE_2634

:CPRACE_2627
$race_debug = -1

:CPRACE_2634
wait 0
$game_timer = get_game_timer 
if 
  13 > 49@
goto_if_false @CPRACE_2668
229@ = 0

:CPRACE_2668
253@ = 0
switch_start 49@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CPRACE_20805 {caseNum1} 0 {caseLabel1} @CPRACE_2803 {caseNum2} 1 {caseLabel2} @CPRACE_5836 {caseNum3} 2 {caseLabel3} @CPRACE_7391 {caseNum4} 3 {caseLabel4} @CPRACE_7577 {caseNum5} 4 {caseLabel5} @CPRACE_7924 {caseNum6} 5 {caseLabel6} @CPRACE_8660 {caseNum7} 6 {caseLabel7} @CPRACE_8772
switch_continued 7 {caseLabel1} @CPRACE_11220 {caseNum2} 8 {caseLabel2} @CPRACE_11297 {caseNum3} 9 {caseLabel3} @CPRACE_11382 {caseNum4} 10 {caseLabel4} @CPRACE_11467 {caseNum5} 11 {caseLabel5} @CPRACE_12351 {caseNum6} 12 {caseLabel6} @CPRACE_12351 {caseNum7} 13 {caseLabel7} @CPRACE_19581 {caseNum8} 14 {caseLabel8} @CPRACE_20088 {caseNum9} -1 {caseLabel9} @CPRACE_20805

:CPRACE_2803
if 
  $race_debug > -1
goto_if_false @CPRACE_4452
if 
is_ps2_keyboard_key_pressed 82
goto_if_false @CPRACE_4445
if 
  228@ == 0
goto_if_false @CPRACE_4438
if 
  $race_debug == 0
goto_if_false @CPRACE_2909
$coords += 1
print_now 'CHEATON' {time} 800 {flag} 1
$race_debug = 1
goto @CPRACE_4431

:CPRACE_2909
if 
is_ps2_keyboard_key_pressed 151
goto_if_false @CPRACE_4401
224@ = 1
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "TOTAL_LAPS = 1"
256@ = 6
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "TOTAL_RACERS = 6"
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
save_newline_to_debug_file 
252@ = 0

:CPRACE_3258
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_3558
save_newline_to_debug_file 
save_string_to_debug_file "RACER_MODEL["
save_int_to_debug_file 252@
save_string_to_debug_file "] = MALE01"
252@ += 1
goto @CPRACE_3258

:CPRACE_3558
set_lvar_int_to_lvar_int 716@ = 230@
set_lvar_int_to_lvar_int 717@ = 230@
set_lvar_int_to_lvar_int 718@ = 230@
set_lvar_int_to_lvar_int 719@ = 230@
set_lvar_int_to_lvar_int 720@ = 230@
set_lvar_int_to_lvar_int 721@ = 230@
save_newline_to_debug_file 
252@ = 0

:CPRACE_3615
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_3920
save_newline_to_debug_file 
save_string_to_debug_file "RACERS_CAR_MODEL["
save_int_to_debug_file 252@
save_string_to_debug_file "] = "
save_int_to_debug_file 230@
252@ += 1
goto @CPRACE_3615

:CPRACE_3920
set_var_float_to_lvar_float $x = 454@
set_var_float_to_lvar_float $y = 536@
set_var_float_to_lvar_float $z = 618@
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_X[0] = "
save_float_to_debug_file $x
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Y[0] = "
save_float_to_debug_file $y
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Z[0] = "
save_float_to_debug_file $z
print_now 'LABEL' {time} 1000 {flag} 1
49@ = 3
$coords = 0
$race_debug = 0
goto @CPRACE_4431

:CPRACE_4401
$coords = 0
print_now 'CHEATOF' {time} 800 {flag} 1
$race_debug = 0

:CPRACE_4431
228@ = 1

:CPRACE_4438
goto @CPRACE_4452

:CPRACE_4445
228@ = 0

:CPRACE_4452
if 
  $race_debug == 1
goto_if_false @CPRACE_5829
if 
  is_player_playing $player1
goto_if_false @CPRACE_5829
if 
  $coords == 0
goto_if_false @CPRACE_4567
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @CPRACE_4560
if 
  235@ == 0
goto_if_false @CPRACE_4553
$coords += 1
235@ = 1

:CPRACE_4553
goto @CPRACE_4567

:CPRACE_4560
235@ = 0

:CPRACE_4567
if 
  $coords > 0
goto_if_false @CPRACE_5829
if 
  is_char_in_any_car $scplayer
goto_if_false @CPRACE_5829
443@ = store_car_char_is_in_no_save $scplayer
230@ = get_car_model 443@
if or
  is_this_model_a_plane 230@
  is_this_model_a_heli 230@
goto_if_false @CPRACE_4656
$x, $y, $z = get_debug_camera_coordinates 
goto @CPRACE_4670

:CPRACE_4656
$x, $y, $z = get_char_coordinates $scplayer

:CPRACE_4670
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 231@ {toY} 232@ {toZ} 233@
cset_lvar_int_to_var_float 234@ =# $distance
gosub @CPRACE_47594
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 0.8 {heightScale} 2.0
display_text_with_number 30.0 {offsetTop} 145.0 {key} 'RACES00' {num} 234@
if or
  $distance > 200.0
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @CPRACE_5822
if 
  235@ == 0
goto_if_false @CPRACE_5815
print_now 'TEXXYZ4' {time} 800 {flag} 1
$coords -= 1
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_X["
save_int_to_debug_file $coords
save_string_to_debug_file "] = "
save_float_to_debug_file $x
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Y["
save_int_to_debug_file $coords
save_string_to_debug_file "] = "
save_float_to_debug_file $y
save_newline_to_debug_file 
save_string_to_debug_file "CHECKPOINTS_Z["
save_int_to_debug_file $coords
save_string_to_debug_file "] = "
if 
  is_this_model_a_boat 230@
goto_if_false @CPRACE_5659
goto @CPRACE_5719

:CPRACE_5659
if 
  is_this_model_a_heli 230@
goto_if_false @CPRACE_5682
goto @CPRACE_5719

:CPRACE_5682
if 
  is_this_model_a_plane 230@
goto_if_false @CPRACE_5705
goto @CPRACE_5719

:CPRACE_5705
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z

:CPRACE_5719
save_float_to_debug_file $z
save_newline_to_debug_file 
set_lvar_float_to_var_float 454@($coords,82f) = $x
set_lvar_float_to_var_float 536@($coords,82f) = $y
set_lvar_float_to_var_float 618@($coords,82f) = $z
set_lvar_float_to_var_float 231@ = $x
set_lvar_float_to_var_float 232@ = $y
set_lvar_float_to_var_float 233@ = $z
$coords += 1
set_lvar_int_to_var_int 250@ = $coords
$coords += 1
235@ = 1

:CPRACE_5815
goto @CPRACE_5829

:CPRACE_5822
235@ = 0

:CPRACE_5829
goto @CPRACE_20805

:CPRACE_5836
display_hud False
display_radar False
$current_Language = get_current_language 
if 
  not is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CPRACE_5879
set_help_message_box_size 250
goto @CPRACE_5884

:CPRACE_5879
set_help_message_box_size 200

:CPRACE_5884
print_help_forever 'RACES33'
236@, 237@, 238@, 239@ = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > 237@
  236@ > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @CPRACE_6028
if 
  240@ == 0
goto_if_false @CPRACE_6021
if 
  is_int_lvar_greater_than_int_var 51@ > $race_selection
goto_if_false @CPRACE_5999
$race_selection += 1
goto @CPRACE_6007

:CPRACE_5999
set_var_int_to_lvar_int $race_selection = 50@

:CPRACE_6007
gosub @CPRACE_46974
240@ = 1

:CPRACE_6021
goto @CPRACE_6035

:CPRACE_6028
240@ = 0

:CPRACE_6035
if or
  237@ > 100
  -100 > 236@
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @CPRACE_6152
if 
  241@ == 0
goto_if_false @CPRACE_6145
if 
  is_int_var_greater_than_int_lvar $race_selection > 50@
goto_if_false @CPRACE_6123
$race_selection -= 1
goto @CPRACE_6131

:CPRACE_6123
set_var_int_to_lvar_int $race_selection = 51@

:CPRACE_6131
gosub @CPRACE_46974
241@ = 1

:CPRACE_6145
goto @CPRACE_6159

:CPRACE_6152
241@ = 0

:CPRACE_6159
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CPRACE_6229
if 
  242@ == 0
goto_if_false @CPRACE_6222
remove_texture_dictionary 
display_hud True
display_radar True
clear_help 
53@ = 1
return 
242@ = 1

:CPRACE_6222
goto @CPRACE_6236

:CPRACE_6229
242@ = 0

:CPRACE_6236
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CPRACE_6317
if 
  243@ == 0
goto_if_false @CPRACE_6310
if 
  $race_selection > -1
goto_if_false @CPRACE_6303
do_fade 500 {direction} Fade.Out
49@ = 2

:CPRACE_6303
243@ = 1

:CPRACE_6310
goto @CPRACE_6324

:CPRACE_6317
243@ = 0

:CPRACE_6324
draw_window 53.0 {leftTopY} 130.0 {rightBottomX} 597.0 {rightBottomY} 410.0 {header} 'RACES_0' {zIndex} 3
gosub @CPRACE_47594
set_text_wrapx 320.0
set_text_scale $x_hud_scale {heightScale} $y_hud_scale
display_text $x_hud_pos {offsetTop} $y_hud_pos {key} 85@($race_selection,30s)
gosub @CPRACE_47594
set_text_scale $6932 {heightScale} $6946
display_text $x_hud_pos {offsetTop} $6918 {key} 'RACES36'
gosub @CPRACE_47594
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $6933 {heightScale} $6947
set_var_float_to_var_float $6919 = $6918
add_float_var_to_float_var $6919 += $6924
if 
  are_measurements_in_metres 
goto_if_false @CPRACE_6624
set_lvar_float_to_lvar_float 244@ = 55@($race_selection,30f)
244@ /= 1000.0
cset_lvar_int_to_lvar_float 246@ =# 244@
cset_lvar_float_to_lvar_int 47@ =# 246@
set_lvar_float_to_lvar_float 245@ = 244@
sub_float_lvar_from_float_lvar 245@ -= 47@
cset_lvar_int_to_lvar_float 247@ =# 245@
if 
  10 > 247@
goto_if_false @CPRACE_6594
display_text_with_2_numbers $x_hud_pos {offsetTop} $6919 {key} 'RACES35' {num1} 246@ {num2} 247@
goto @CPRACE_6617

:CPRACE_6594
display_text_with_2_numbers $x_hud_pos {offsetTop} $6919 {key} 'RACES34' {num1} 246@ {num2} 247@

:CPRACE_6617
goto @CPRACE_6767

:CPRACE_6624
set_lvar_float_to_lvar_float 248@ = 55@($race_selection,30f)
248@ /= 1609.0
cset_lvar_int_to_lvar_float 246@ =# 248@
cset_lvar_float_to_lvar_int 47@ =# 246@
set_lvar_float_to_lvar_float 245@ = 248@
sub_float_lvar_from_float_lvar 245@ -= 47@
245@ *= 100.0
cset_lvar_int_to_lvar_float 247@ =# 245@
if 
  10 > 247@
goto_if_false @CPRACE_6744
display_text_with_2_numbers $x_hud_pos {offsetTop} $6919 {key} 'RACES47' {num1} 246@ {num2} 247@
goto @CPRACE_6767

:CPRACE_6744
display_text_with_2_numbers $x_hud_pos {offsetTop} $6919 {key} 'RACES46' {num1} 246@ {num2} 247@

:CPRACE_6767
gosub @CPRACE_47594
set_text_scale $6932 {heightScale} $6946
display_text $x_hud_pos {offsetTop} $6920 {key} 'RACES38'
gosub @CPRACE_47594
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $6933 {heightScale} $6947
set_var_float_to_var_float $6921 = $6920
add_float_var_to_float_var $6921 += $6924
if 
  $cprace_best_times($race_selection,30i) == 999999999
goto_if_false @CPRACE_6893
display_text $x_hud_pos {offsetTop} $6921 {key} 'RACES45'
goto @CPRACE_7018

:CPRACE_6893
set_lvar_int_to_var_int 452@ = $cprace_best_times($race_selection,30i)
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_var_int 453@ = $cprace_best_times($race_selection,30i)
sub_int_lvar_from_int_lvar 453@ -= 36@
if 
  10 > 453@
goto_if_false @CPRACE_6995
display_text_with_2_numbers $x_hud_pos {offsetTop} $6921 {key} 'RACES40' {num1} 452@ {num2} 453@
goto @CPRACE_7018

:CPRACE_6995
display_text_with_2_numbers $x_hud_pos {offsetTop} $6921 {key} 'RACES39' {num1} 452@ {num2} 453@

:CPRACE_7018
if 
  $menu_mode <> 3
goto_if_false @CPRACE_7332
gosub @CPRACE_47594
set_text_scale $6932 {heightScale} $6946
display_text $x_hud_pos {offsetTop} $6922 {key} 'RACES37'
gosub @CPRACE_47594
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $6933 {heightScale} $6947
set_var_float_to_var_float $6923 = $6922
add_float_var_to_float_var $6923 += $6924
if 
  $cprace_best_position($race_selection,30i) == 1
goto_if_false @CPRACE_7159
display_text $x_hud_pos {offsetTop} $6923 {key} 'RACES41'
goto @CPRACE_7332

:CPRACE_7159
if 
  $cprace_best_position($race_selection,30i) == 2
goto_if_false @CPRACE_7205
display_text $x_hud_pos {offsetTop} $6923 {key} 'RACES42'
goto @CPRACE_7332

:CPRACE_7205
if 
  $cprace_best_position($race_selection,30i) == 3
goto_if_false @CPRACE_7251
display_text $x_hud_pos {offsetTop} $6923 {key} 'RACES43'
goto @CPRACE_7332

:CPRACE_7251
if and
  $cprace_best_position($race_selection,30i) > 3
  100 > $cprace_best_position($race_selection,30i)
goto_if_false @CPRACE_7315
display_text_with_number $x_hud_pos {offsetTop} $6923 {key} 'RACES44' {num} $cprace_best_position($race_selection,30i)
goto @CPRACE_7332

:CPRACE_7315
display_text $x_hud_pos {offsetTop} $6923 {key} 'RACES45'

:CPRACE_7332
set_lvar_int_to_var_int 36@ = $race_selection
36@ += 1
draw_sprite 36@ {offsetLeft} 454.98 {offsetTop} 268.18 {width} 256.0 {height} 256.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @CPRACE_20805

:CPRACE_7391
if 
  not get_fading_status 
goto_if_false @CPRACE_7570
set_help_message_box_size 200
remove_texture_dictionary 
clear_help 
gosub @CPRACE_20812
display_car_names False
display_hud True
if 
  221@ == 0
goto_if_false @CPRACE_7457
display_radar True
goto @CPRACE_7475

:CPRACE_7457
set_player_is_in_stadium True
display_zone_names False
hide_all_frontend_blips True
set_extra_colours 2 {fade} False

:CPRACE_7475
$disable_all_cranes = 1
if 
  $got_race_made_progress($race_selection,30i) == 0
goto_if_false @CPRACE_7538
if and
  $race_selection == 0
  $show_race_selection == 0
goto_if_false @CPRACE_7536
goto @CPRACE_7538

:CPRACE_7536
register_mission_given 

:CPRACE_7538
if 
  $race_selection == 23
goto_if_false @CPRACE_7563
switch_car_generator $gen_car_flying[1] {amount} 0

:CPRACE_7563
49@ = 3

:CPRACE_7570
goto @CPRACE_20805

:CPRACE_7577
set_lvar_int_to_lvar_int 249@ = 250@
249@ -= 1
set_lvar_int_to_lvar_int 251@ = 224@
251@ -= 1
252@ = 0
253@ = 0
254@ = 0
255@ = 0

:CPRACE_7635
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_7712
257@(253@,16i) = 0
273@(253@,16i) = 0
289@(253@,16i) = 0
305@(253@,16i) = 0
253@ += 1
goto @CPRACE_7635

:CPRACE_7712
253@ = 0
321@ = -1
49@ = 4
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_7877
if or
  $race_selection == 22
  $race_selection == 23
  $race_selection == 24
goto_if_false @CPRACE_7830
322@ = 12.0
323@ = 12.0
324@ = 12.0
325@ = 6.0
goto @CPRACE_7870

:CPRACE_7830
322@ = 25.0
323@ = 25.0
324@ = 25.0
325@ = 12.0

:CPRACE_7870
goto @CPRACE_7917

:CPRACE_7877
322@ = 12.0
323@ = 12.0
324@ = 7.0
325@ = 6.0

:CPRACE_7917
goto @CPRACE_20805

:CPRACE_7924
252@ = 0

:CPRACE_7931
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_8154
if 
  is_int_lvar_equal_to_constant 700@(252@,16i) == 290
goto_if_false @CPRACE_8099
if 
  $race_selection == 0
goto_if_false @CPRACE_8017
load_special_character 1 {modelName} 'CESAR'
load_special_character 2 {modelName} 'KENDL'

:CPRACE_8017
if 
  $race_selection == 7
goto_if_false @CPRACE_8048
load_special_character 1 {modelName} 'WUZIMU'

:CPRACE_8048
if 
  $race_selection == 8
goto_if_false @CPRACE_8092
load_special_character 1 {modelName} 'WUZIMU'
load_special_character 2 {modelName} 'CAT'

:CPRACE_8092
goto @CPRACE_8108

:CPRACE_8099
request_model 700@(252@,16i)

:CPRACE_8108
if 
  $race_selection == 8
goto_if_false @CPRACE_8131
request_vehicle_mod #WHEEL_OR1

:CPRACE_8131
request_model 716@(252@,16i)
252@ += 1
goto @CPRACE_7931

:CPRACE_8154
request_animation "CAR"
request_animation "RIOT"
load_all_models_now 
326@ = 0

:CPRACE_8178
if 
  326@ == 0
goto_if_false @CPRACE_8646
wait 0
326@ = 1
252@ = 0

:CPRACE_8214
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_8639
if 
  is_int_lvar_equal_to_constant 700@(252@,16i) == 290
goto_if_false @CPRACE_8498
if 
  not has_special_character_loaded 1
goto_if_false @CPRACE_8385
if 
  $race_selection == 0
goto_if_false @CPRACE_8309
load_special_character 1 {modelName} 'CESAR'
326@ = 0

:CPRACE_8309
if 
  $race_selection == 7
goto_if_false @CPRACE_8347
load_special_character 1 {modelName} 'WUZIMU'
326@ = 0

:CPRACE_8347
if 
  $race_selection == 8
goto_if_false @CPRACE_8385
load_special_character 1 {modelName} 'WUZIMU'
326@ = 0

:CPRACE_8385
if 
  $race_selection == 0
goto_if_false @CPRACE_8438
if 
  not has_special_character_loaded 2
goto_if_false @CPRACE_8438
load_special_character 2 {modelName} 'KENDL'
326@ = 0

:CPRACE_8438
if 
  $race_selection == 8
goto_if_false @CPRACE_8491
if 
  not has_special_character_loaded 2
goto_if_false @CPRACE_8491
load_special_character 2 {modelName} 'CAT'
326@ = 0

:CPRACE_8491
goto @CPRACE_8534

:CPRACE_8498
if 
  not has_model_loaded 700@(252@,16i)
goto_if_false @CPRACE_8534
request_model 700@(252@,16i)
326@ = 0

:CPRACE_8534
if 
  $race_selection == 8
goto_if_false @CPRACE_8580
if 
  not has_vehicle_mod_loaded #WHEEL_OR1
goto_if_false @CPRACE_8580
request_vehicle_mod #WHEEL_OR1
326@ = 0

:CPRACE_8580
if 
  not has_model_loaded 716@(252@,16i)
goto_if_false @CPRACE_8625
request_model 700@(252@,16i)
request_model 716@(252@,16i)
326@ = 0

:CPRACE_8625
252@ += 1
goto @CPRACE_8214

:CPRACE_8639
goto @CPRACE_8178

:CPRACE_8646
49@ = 5
goto @CPRACE_20805

:CPRACE_8660
set_car_density_multiplier 0.0
clear_area 454@ {y} 536@ {z} 618@ {radius} 30.0 {clearParticles} False
if 
  $show_race_selection == 1
goto_if_false @CPRACE_8708
clear_char_tasks_immediately $scplayer

:CPRACE_8708
set_char_coordinates $scplayer {x} 454@ {y} 536@ {z} 618@
set_char_area_visible $scplayer {areaId} 221@
set_area_visible 221@
request_collision 454@ {y} 536@
restore_camera_jumpcut 
load_scene 454@ {y} 536@ {z} 618@
set_weather_to_appropriate_type_now 
49@ = 6
goto @CPRACE_20805

:CPRACE_8772
if and
  has_animation_loaded "CAR"
  has_animation_loaded "RIOT"
goto_if_false @CPRACE_11198
443@ = create_car 716@ {x} 454@ {y} 536@ {z} 618@
turn_car_to_face_coord 443@ {x} 455@ {y} 537@
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1
253@ = 0

:CPRACE_8848
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_11173
if 
  256@ > 1
goto_if_false @CPRACE_9265
329@, 330@, $z, 327@, 328@, $z = get_model_dimensions 716@
329@ *= -1.0
add_float_lvar_to_float_lvar 327@ += 329@
if 
  2.0 > 327@
goto_if_false @CPRACE_8957
327@ = 2.0

:CPRACE_8957
set_lvar_float_to_lvar_float 329@ = 327@
329@ *= -1.0
330@ *= -1.0
add_float_lvar_to_float_lvar 328@ += 330@
set_lvar_int_to_lvar_int 254@ = 253@
254@ /= 2
254@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 254@ == 253@
goto_if_false @CPRACE_9083
set_var_float_to_lvar_float $x = 327@
cset_lvar_float_to_lvar_int 47@ =# 253@
mult_float_lvar_by_float_lvar 47@ *= 328@
47@ *= -1.0
set_var_float_to_lvar_float $y = 47@
goto @CPRACE_9140

:CPRACE_9083
set_var_float_to_lvar_float $x = 329@
set_lvar_int_to_lvar_int 255@ = 253@
255@ -= 1
cset_lvar_float_to_lvar_int 47@ =# 255@
mult_float_lvar_by_float_lvar 47@ *= 328@
47@ *= -1.0
set_var_float_to_lvar_float $y = 47@

:CPRACE_9140
if 
  is_car_dead 443@
goto_if_false @CPRACE_9201
if 
  $show_race_selection == 0
goto_if_false @CPRACE_9199
if 
  $race_selection == 0
goto_if_false @CPRACE_9199
$failed_cesar_race = 1

:CPRACE_9199
return 

:CPRACE_9201
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} $x {yOffset} $y {zOffset} 0.0
$heading = get_car_heading 443@
set_lvar_float_to_var_float 331@(253@,16f) = $x
set_lvar_float_to_var_float 347@(253@,16f) = $y
goto @CPRACE_9329

:CPRACE_9265
$heading = get_car_heading 443@
set_var_float_to_lvar_float $x = 331@(253@,16f)
set_var_float_to_lvar_float $y = 347@(253@,16f)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@
set_var_float_to_lvar_float $z = 618@

:CPRACE_9329
if 
  not is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_9403
if 
  not is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_9403
if 
  not is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_9403
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z

:CPRACE_9403
set_lvar_float_to_var_float 363@(253@,16f) = $z
if 
  is_int_lvar_greater_than_int_lvar 36@ > 253@
goto_if_false @CPRACE_9756
gosub @CPRACE_488
create_char_inside_car 379@(253@,16i) {pedType} PedType.CivMale {modelId} 700@(253@,16i) {var_handle} 395@(253@,16i)
if 
  is_int_lvar_equal_to_constant 700@(253@,16i) == 290
goto_if_false @CPRACE_9552
if or
  $race_selection == 0
  $race_selection == 8
goto_if_false @CPRACE_9533
411@ = create_char_as_passenger 379@(253@,16i) {pedType} PedType.CivFemale {modelId} 291 {seat} SeatId.BikeRear

:CPRACE_9533
set_car_proofs 379@(253@,16i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True

:CPRACE_9552
if 
  221@ > 0
goto_if_false @CPRACE_9614
if 
  321@ == -1
goto_if_false @CPRACE_9602
321@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 321@ {event} Event.VehicleOnFire

:CPRACE_9602
set_char_decision_maker 395@(253@,16i) {handleOrTemplate} 321@

:CPRACE_9614
set_char_area_visible 395@(253@,16i) {areaId} 221@
set_char_can_be_shot_in_vehicle 395@(253@,16i) {state} False
set_char_suffers_critical_hits 395@(253@,16i) {state} False
set_char_never_targetted 395@(253@,16i) {state} True
set_char_only_damaged_by_player 395@(253@,16i) {state} True
set_char_cant_be_dragged_out 395@(253@,16i) {state} False
set_char_drowns_in_water 395@(253@,16i) {state} False
set_char_health 395@(253@,16i) {health} 500
if 
  221@ == 0
goto_if_false @CPRACE_9738
add_blip_for_char 395@(253@,16i) {var_handle} 412@(253@,16i)

:CPRACE_9738
change_blip_display 412@(253@,16i) {display} BlipDisplay.MarkerOnly
goto @CPRACE_11159

:CPRACE_9756
if 
  not is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_10754
if 
  not is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_10754
if 
  not is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_10754
if 
  221@ == 0
goto_if_false @CPRACE_10754
428@ = load_char_decision_maker DecisionMakerType.Empty
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} -0.8
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
429@ = create_random_char $x {y} $y {z} $z
set_char_keep_task 429@ {state} True
set_char_decision_maker 429@ {handleOrTemplate} 428@
task_turn_char_to_face_coord 429@ {x} 454@ {y} 536@ {z} 618@
430@ = create_object_no_offset #KMB_GOFLAG {x} $x {y} $y {z} $z
task_pick_up_object 429@ {object} 430@ {xOffset} 0.062 {yOffset} 0.027 {zOffset} -0.15 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "FLAG_DROP" {animationFile} "CAR" {time} 0
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} -0.8
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
431@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
432@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
433@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
434@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
435@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
436@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
437@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
438@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
439@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
440@ = create_random_char $x {y} $y {z} $z
$x, $y, $z = get_offset_from_car_in_world_coords 443@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} 2.5
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
441@ = create_random_char $x {y} $y {z} $z
252@ = 0

:CPRACE_10623
if 
  11 > 252@
goto_if_false @CPRACE_10754
set_char_decision_maker 431@(252@,11i) {handleOrTemplate} 428@
set_char_keep_task 431@(252@,11i) {state} True
38@ = open_sequence_task 
gosub @CPRACE_50648
set_sequence_to_repeat 38@ {state} True
close_sequence_task 38@
37@ = open_sequence_task 
task_turn_char_to_face_coord -1 {x} 454@ {y} 536@ {z} 618@
perform_sequence_task -1 {sequence} 38@
close_sequence_task 37@
perform_sequence_task 431@(252@,11i) {sequence} 37@
clear_sequence_task 38@
clear_sequence_task 37@
252@ += 1
goto @CPRACE_10623

:CPRACE_10754
delete_car 443@
set_lvar_int_to_var_int 395@(253@,16i) = $scplayer
set_lvar_int_to_lvar_int 442@ = 253@
363@(442@,16f) += 3.0
get_ground_z_for_3d_coord 331@(442@,16f) {y} 347@(442@,16f) {z} 363@(442@,16f) {var_groundZ} 363@(442@,16f)
if 
  0.0 > 363@(442@,16f)
goto_if_false @CPRACE_10882
if 
  is_this_model_a_boat 716@(442@,16i)
goto_if_false @CPRACE_10882
363@(442@,16f) = 0.0

:CPRACE_10882
if 
  is_char_in_any_car $scplayer
goto_if_false @CPRACE_10947
get_car_char_is_using $scplayer {var_handle} 379@(442@,16i)
set_car_coordinates 379@(442@,16i) {x} 331@(442@,16f) {y} 347@(442@,16f) {z} 363@(442@,16f)
goto @CPRACE_11070

:CPRACE_10947
create_car 716@(442@,16i) {x} 331@(442@,16f) {y} 347@(442@,16f) {z} 363@(442@,16f) {var_handle} 379@(442@,16i)
if 
  $race_selection == 8
goto_if_false @CPRACE_11017
36@ = add_vehicle_mod 379@(442@,16i) {modelId} #WHEEL_OR1

:CPRACE_11017
if 
  209@ <> -1
goto_if_false @CPRACE_11058
change_car_colour 379@(442@,16i) {color1} 209@(442@,6i) {color2} 215@(442@,6i)

:CPRACE_11058
warp_char_into_car $scplayer {vehicle} 379@(442@,16i)

:CPRACE_11070
set_vehicle_area_visible 379@(442@,16i) {interiorId} 221@
set_car_heading 379@(442@,16i) {heading} $heading
if or
  is_this_model_a_plane 716@(442@,16i)
  is_this_model_a_heli 716@(442@,16i)
goto_if_false @CPRACE_11148
freeze_car_position 379@(442@,16i) {state} True
set_car_forward_speed 379@(442@,16i) {forwardSpeed} 10.0

:CPRACE_11148
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:CPRACE_11159
253@ += 1
goto @CPRACE_8848

:CPRACE_11173
set_player_control $player1 {state} False
set_camera_behind_player 
restore_camera_jumpcut 
49@ = 7
goto @CPRACE_11213

:CPRACE_11198
request_animation "CAR"
request_animation "RIOT"

:CPRACE_11213
goto @CPRACE_20805

:CPRACE_11220
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
print_big 'RACES_4' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
set_var_int_to_var_int $races_timer = $game_timer
$races_timer += 999
49@ = 8
goto @CPRACE_20805

:CPRACE_11297
if 
  is_int_var_greater_than_int_var $game_timer > $races_timer
goto_if_false @CPRACE_11375
print_big 'RACES_5' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
set_var_int_to_var_int $races_timer = $game_timer
$races_timer += 999
49@ = 9

:CPRACE_11375
goto @CPRACE_20805

:CPRACE_11382
if 
  is_int_var_greater_than_int_var $game_timer > $races_timer
goto_if_false @CPRACE_11460
print_big 'RACES_6' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
set_var_int_to_var_int $races_timer = $game_timer
$races_timer += 999
49@ = 10

:CPRACE_11460
goto @CPRACE_20805

:CPRACE_11467
if 
  is_int_var_greater_than_int_var $game_timer > $races_timer
goto_if_false @CPRACE_12344
print_big 'RACES_7' {time} 800 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRaceGo
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
253@ = 0

:CPRACE_11547
if 
  11 > 253@
goto_if_false @CPRACE_11588
mark_char_as_no_longer_needed 431@(253@,11i)
253@ += 1
goto @CPRACE_11547

:CPRACE_11588
mark_char_as_no_longer_needed 429@
remove_animation "CAR"
253@ = 0

:CPRACE_11607
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_11829
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_11815
set_car_only_damaged_by_player 379@(253@,16i) {state} False
if 
  not is_this_model_a_boat 716@(253@,16i)
goto_if_false @CPRACE_11815
if 
  not is_this_model_a_plane 716@(253@,16i)
goto_if_false @CPRACE_11804
if 
  not is_this_model_a_heli 716@(253@,16i)
goto_if_false @CPRACE_11786
if 
  not is_int_lvar_equal_to_int_lvar 253@ == 442@
goto_if_false @CPRACE_11779
if 
  221@ == 0
goto_if_false @CPRACE_11779
add_stuck_car_check_with_warp 379@(253@,16i) {distance} 3.0 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1

:CPRACE_11779
goto @CPRACE_11797

:CPRACE_11786
freeze_car_position 379@(253@,16i) {state} False

:CPRACE_11797
goto @CPRACE_11815

:CPRACE_11804
freeze_car_position 379@(253@,16i) {state} False

:CPRACE_11815
253@ += 1
goto @CPRACE_11607

:CPRACE_11829
set_car_density_multiplier 1.0
$x_hud_pos = 582.7242
$y_hud_pos = 356.2812
$x_hud_scale = 52.2072
$y_hud_scale = 52.2072
$6904 = 584.0833
$6918 = 329.3647
$6932 = 0.4943
$6946 = 2.097
$6905 = 570.6411
$6919 = 323.5937
$6933 = 0.9127
$6947 = 4.8106
$6906 = 585.941
$6920 = 345.6341
$6934 = 0.4197
$6948 = 1.8511
$6907 = 582.7242
$6921 = 359.0323
$6935 = 0.4993
$6949 = 2.637
$6908 = 582.7242
$6922 = 356.2812
$6936 = 56.2072
$6950 = 56.2072
$6909 = 582.7242
$6923 = 356.2812
$6937 = 58.2072
$6951 = 58.2072
$6910 = 582.7242
$6924 = 400.7518
$6938 = 58.2072
$6952 = 32.7789
$6911 = 582.7242
$6925 = 400.2518
$6939 = 56.2072
$6953 = 31.7789
$6912 = 582.7242
$6926 = 399.2518
$6940 = 52.2072
$6954 = 29.7789
$6913 = 560.4862
$6927 = 384.5027
$6941 = 0.5
$6955 = 1.5393
set_var_int_to_var_int $races_timer = $game_timer
set_lvar_int_to_var_int 206@ = $game_timer
if 
  256@ == 1
goto_if_false @CPRACE_12333
$races_timer = 0
display_onscreen_timer_with_string $races_timer {direction} TimerDirection.Up {text} 'TIMER'

:CPRACE_12333
clear_this_print_big_now TextStyle.BottomRight
49@ = 11

:CPRACE_12344
goto @CPRACE_20805

:CPRACE_12351
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_18590
if 
  not is_char_dead 395@(253@,16i)
goto_if_false @CPRACE_18123
if 
  13 > 49@
goto_if_false @CPRACE_12732
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_12732
if 
  is_int_lvar_greater_than_int_lvar 273@(253@,16i) > 273@(442@,16i)
goto_if_false @CPRACE_12472
229@ += 1
goto @CPRACE_12732

:CPRACE_12472
if 
  is_int_lvar_equal_to_int_lvar 273@(442@,16i) == 273@(253@,16i)
goto_if_false @CPRACE_12732
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 257@(442@,16i)
goto_if_false @CPRACE_12540
229@ += 1
goto @CPRACE_12732

:CPRACE_12540
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 249@
goto_if_false @CPRACE_12577
229@ += 1
goto @CPRACE_12732

:CPRACE_12577
if 
  is_int_lvar_equal_to_int_lvar 257@(442@,16i) == 257@(253@,16i)
goto_if_false @CPRACE_12732
$x, $y, $z = get_char_coordinates 395@(253@,16i)
444@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 331@(253@,16f) {toY} 347@(253@,16f) {toZ} 363@(253@,16f)
$x, $y, $z = get_char_coordinates $scplayer
445@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 331@(253@,16f) {toY} 347@(253@,16f) {toZ} 363@(253@,16f)
if 
  is_float_lvar_greater_than_float_lvar 445@ > 444@
goto_if_false @CPRACE_12732
229@ += 1

:CPRACE_12732
if 
  49@ == 12
goto_if_false @CPRACE_15498
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_14121
if 
  not is_car_dead 379@(442@,16i)
goto_if_false @CPRACE_13748
if 
  is_char_in_car $scplayer {vehicle} 379@(442@,16i)
goto_if_false @CPRACE_13359
if 
  207@ == 1
goto_if_false @CPRACE_13352
clear_this_print 'RACES21'
remove_blip 54@
363@(253@,16f) -= 1000.0
if 
  221@ == 0
goto_if_false @CPRACE_13345
254@ = 0
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1

:CPRACE_12904
if 
  is_int_lvar_greater_than_int_lvar 36@ > 254@
goto_if_false @CPRACE_12984
if 
  not is_char_dead 395@(254@,16i)
goto_if_false @CPRACE_12970
add_blip_for_char 395@(254@,16i) {var_handle} 412@(254@,16i)
change_blip_display 412@(254@,16i) {display} BlipDisplay.MarkerOnly

:CPRACE_12970
254@ += 1
goto @CPRACE_12904

:CPRACE_12984
54@ = add_blip_for_coord 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
change_blip_colour 54@ {color} BlipColor.Red
change_blip_display 54@ {display} BlipDisplay.BlipOnly
change_blip_scale 54@ {size} 3
if and
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 251@
goto_if_false @CPRACE_13243
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_13188
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ -= 1
if 
  0 > 36@
goto_if_false @CPRACE_13128
36@ = 0

:CPRACE_13128
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@
goto @CPRACE_13236

:CPRACE_13188
449@ = create_checkpoint CheckpointType.TubeEnd {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0

:CPRACE_13236
goto @CPRACE_13345

:CPRACE_13243
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
goto_if_false @CPRACE_13292
36@ = 1

:CPRACE_13292
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@

:CPRACE_13345
207@ = 0

:CPRACE_13352
goto @CPRACE_13741

:CPRACE_13359
if 
  207@ == 0
goto_if_false @CPRACE_13507
delete_checkpoint 449@
remove_blip 54@
254@ = 0
set_lvar_int_to_lvar_int 36@ = 256@
36@ -= 1

:CPRACE_13409
if 
  is_int_lvar_greater_than_int_lvar 36@ > 254@
goto_if_false @CPRACE_13451
remove_blip 412@(254@,16i)
254@ += 1
goto @CPRACE_13409

:CPRACE_13451
54@ = add_blip_for_car 379@(442@,16i)
set_blip_as_friendly 54@ {state} True
363@(253@,16f) += 1000.0
set_lvar_int_to_var_int 446@ = $game_timer
446@ += 25400
207@ = 1

:CPRACE_13507
set_lvar_int_to_lvar_int 453@ = 446@
sub_int_var_from_int_lvar 453@ -= $game_timer
453@ /= 1000
if 
  1 > 453@
goto_if_false @CPRACE_13556
453@ = 0

:CPRACE_13556
if 
  is_int_var_greater_than_int_lvar $game_timer > 446@
goto_if_false @CPRACE_13670
print_now 'RACES20' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13625
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_13625
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13668
if 
  $race_selection == 0
goto_if_false @CPRACE_13668
$failed_cesar_race = 1

:CPRACE_13668
return 

:CPRACE_13670
if 
  453@ == 1
goto_if_false @CPRACE_13718
add_next_message_to_previous_briefs False
print_with_number_now 'RACE_21' {num} 453@ {duration} 200 {flag} 1
goto @CPRACE_13741

:CPRACE_13718
add_next_message_to_previous_briefs False
print_with_number_now 'RACES21' {num} 453@ {duration} 200 {flag} 1

:CPRACE_13741
goto @CPRACE_14114

:CPRACE_13748
if 
  is_car_in_water 379@(442@,16i)
goto_if_false @CPRACE_14019
if 
  is_char_in_any_car $scplayer
goto_if_false @CPRACE_13917
443@ = store_car_char_is_in_no_save $scplayer
if 
  not is_int_lvar_equal_to_int_lvar 443@ == 379@(442@,16i)
goto_if_false @CPRACE_13910
print_now 'RACES24' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13865
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_13865
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13908
if 
  $race_selection == 0
goto_if_false @CPRACE_13908
$failed_cesar_race = 1

:CPRACE_13908
return 

:CPRACE_13910
goto @CPRACE_14012

:CPRACE_13917
print_now 'RACES24' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_13967
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_13967
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14010
if 
  $race_selection == 0
goto_if_false @CPRACE_14010
$failed_cesar_race = 1

:CPRACE_14010
return 

:CPRACE_14012
goto @CPRACE_14114

:CPRACE_14019
print_now 'RACES24' {time} 5000 {flag} 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14069
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_14069
if 
  $show_race_selection == 0
goto_if_false @CPRACE_14112
if 
  $race_selection == 0
goto_if_false @CPRACE_14112
$failed_cesar_race = 1

:CPRACE_14112
return 

:CPRACE_14114
goto @CPRACE_15498

:CPRACE_14121
if 
  is_int_lvar_greater_than_int_lvar 250@ > 257@(253@,16i)
goto_if_false @CPRACE_15498
if 
  is_char_in_any_car 395@(253@,16i)
goto_if_false @CPRACE_14412
if 
  221@ == 0
goto_if_false @CPRACE_14405
set_lvar_int_to_lvar_int 36@ = 257@(442@,16i)
36@ += 4
443@ = store_car_char_is_in_no_save 395@(253@,16i)
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 36@
goto_if_false @CPRACE_14253
set_car_cruise_speed 443@ {maxSpeed} 25.0
goto @CPRACE_14312

:CPRACE_14253
if or
  $race_selection == 7
  $race_selection == 8
  $race_selection == 0
goto_if_false @CPRACE_14302
set_car_cruise_speed 443@ {maxSpeed} 35.0
goto @CPRACE_14312

:CPRACE_14302
set_car_cruise_speed 443@ {maxSpeed} 50.0

:CPRACE_14312
if 
  $race_selection == 8
goto_if_false @CPRACE_14405
if or
  locate_car_2d 443@ {x} -882.9833 {y} -47.9468 {xRadius} 24.61 {yRadius} 25.64 {drawSphere} False
  locate_car_2d 443@ {x} -843.0954 {y} -141.9169 {xRadius} 24.59 {yRadius} -29.24 {drawSphere} False
goto_if_false @CPRACE_14405
set_car_cruise_speed 443@ {maxSpeed} 30.0

:CPRACE_14405
goto @CPRACE_14933

:CPRACE_14412
if 
  $race_selection == 25
goto_if_false @CPRACE_14444
goto @CPRACE_18141
goto @CPRACE_14933

:CPRACE_14444
if 
  305@(253@,16i) == 0
goto_if_false @CPRACE_14490
set_lvar_int_to_var_int 305@(253@,16i) = $game_timer
305@(253@,16i) += 8000

:CPRACE_14490
if 
  is_int_var_greater_than_int_lvar $game_timer > 305@(253@,16i)
goto_if_false @CPRACE_14933
if 
  not is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 257@(442@,16i)
goto_if_false @CPRACE_14933
if 
  not locate_char_any_means_char_2d $scplayer {target} 395@(253@,16i) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_14922
if 
  not locate_char_any_means_2d $scplayer {x} 331@(253@,16f) {y} 347@(253@,16f) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_14904
if 
  not is_point_obscured_by_a_mission_entity 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CPRACE_14886
if 
  not is_char_on_screen 395@(253@,16i)
goto_if_false @CPRACE_14868
if 
  not is_point_on_screen 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radius} 4.0
goto_if_false @CPRACE_14850
mark_car_as_no_longer_needed 379@(253@,16i)
gosub @CPRACE_488
warp_char_into_car 395@(253@,16i) {vehicle} 379@(253@,16i)
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 36@
goto_if_false @CPRACE_14832
turn_car_to_face_coord 379@(253@,16i) {x} 454@(36@,82f) {y} 536@(36@,82f)
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 20.0

:CPRACE_14832
305@(253@,16i) = 0
goto @CPRACE_14861

:CPRACE_14850
305@(253@,16i) = 0

:CPRACE_14861
goto @CPRACE_14879

:CPRACE_14868
305@(253@,16i) = 0

:CPRACE_14879
goto @CPRACE_14897

:CPRACE_14886
305@(253@,16i) = 0

:CPRACE_14897
goto @CPRACE_14915

:CPRACE_14904
305@(253@,16i) = 0

:CPRACE_14915
goto @CPRACE_14933

:CPRACE_14922
305@(253@,16i) = 0

:CPRACE_14933
if 
  221@ == 0
goto_if_false @CPRACE_15498
252@ = 0
255@ = 0

:CPRACE_14965
if 
  is_int_lvar_greater_than_int_lvar 256@ > 252@
goto_if_false @CPRACE_15047
set_lvar_int_to_lvar_int 447@ = 257@(252@,16i)
447@ -= 4
if 
  is_int_lvar_greater_than_int_lvar 447@ > 257@(253@,16i)
goto_if_false @CPRACE_15033
255@ += 1

:CPRACE_15033
252@ += 1
goto @CPRACE_14965

:CPRACE_15047
if 
  255@ > 0
goto_if_false @CPRACE_15498
if 
  not locate_char_any_means_char_2d $scplayer {target} 395@(253@,16i) {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @CPRACE_15498
if 
  not locate_char_any_means_2d $scplayer {x} 331@(253@,16f) {y} 347@(253@,16f) {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @CPRACE_15498
if 
  not locate_char_any_means_2d 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @CPRACE_15498
if 
  not is_point_obscured_by_a_mission_entity 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CPRACE_15498
if 
  not is_char_on_screen 395@(253@,16i)
goto_if_false @CPRACE_15498
if 
  not is_point_on_screen 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {radius} 4.0
goto_if_false @CPRACE_15498
if 
  is_char_sitting_in_any_car 395@(253@,16i)
goto_if_false @CPRACE_15391
set_char_coordinates 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
turn_car_to_face_coord 443@ {x} 454@(36@,82f) {y} 536@(36@,82f)
goto @CPRACE_15498

:CPRACE_15391
mark_car_as_no_longer_needed 379@(253@,16i)
gosub @CPRACE_488
warp_char_into_car 395@(253@,16i) {vehicle} 379@(253@,16i)
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 36@
goto_if_false @CPRACE_15498
turn_car_to_face_coord 379@(253@,16i) {x} 454@(36@,82f) {y} 536@(36@,82f)
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 20.0

:CPRACE_15498
36@ = 0
if 
  locate_char_in_car_3d 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {xRadius} 322@ {yRadius} 323@ {zRadius} 324@ {drawSphere} False
goto_if_false @CPRACE_15571
36@ = 1
goto @CPRACE_15700

:CPRACE_15571
if 
  is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_15700
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CPRACE_15700
request_collision 331@(253@,16f) {y} 347@(253@,16f)
load_scene 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
set_var_float_to_lvar_float $x = 363@(253@,16f)
$x += 1.0
set_char_coordinates 395@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)

:CPRACE_15700
if 
  36@ == 1
goto_if_false @CPRACE_18116
if 
  49@ == 11
goto_if_false @CPRACE_15743
49@ = 12

:CPRACE_15743
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_15809
if 
  221@ == 0
goto_if_false @CPRACE_15809
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 54@

:CPRACE_15809
257@(253@,16i) += 1
if 
  is_int_lvar_greater_than_int_lvar 250@ > 257@(253@,16i)
goto_if_false @CPRACE_15910
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@(36@,82f)
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@(36@,82f)
set_lvar_float_to_lvar_float 363@(253@,16f) = 618@(36@,82f)
goto @CPRACE_16948

:CPRACE_15910
if 
  is_int_lvar_greater_than_int_lvar 224@ > 273@(253@,16i)
goto_if_false @CPRACE_15944
273@(253@,16i) += 1

:CPRACE_15944
if 
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 224@
goto_if_false @CPRACE_16620
if 
  is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_16209
if 
  224@ > 1
goto_if_false @CPRACE_16119
set_lvar_int_to_var_int 448@ = $game_timer
sub_int_lvar_from_int_lvar 448@ -= 206@
448@ /= 1000
if 
  is_int_var_greater_than_int_lvar $cprace_best_lap_times($race_selection,30i) > 448@
goto_if_false @CPRACE_16119
set_var_int_to_lvar_int $cprace_best_lap_times($race_selection,30i) = 448@
if 
  $race_selection == 25
goto_if_false @CPRACE_16093
register_fastest_time StatId.BestLapTimeHotring {value} 448@

:CPRACE_16093
if 
  $race_selection == 26
goto_if_false @CPRACE_16119
register_fastest_time StatId.BestLapTimeDirttrack {value} 448@

:CPRACE_16119
delete_checkpoint 449@
remove_blip 54@
49@ = 13
if 
  $show_race_selection == 0
goto_if_false @CPRACE_16188
if 
  229@ > 0
goto_if_false @CPRACE_16188
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_16188
363@(253@,16f) = 99999.0
goto @CPRACE_16613

:CPRACE_16209
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_16238
remove_stuck_car_check 379@(253@,16i)

:CPRACE_16238
if 
  221@ == 0
goto_if_false @CPRACE_16548
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_16541
37@ = open_sequence_task 
47@ = get_char_speed 395@(253@,16i)
cset_lvar_int_to_lvar_float 36@ =# 47@
36@ *= -100
36@ += 4000
if 
  10 > 36@
goto_if_false @CPRACE_16354
36@ = 10

:CPRACE_16354
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.GoForward {time} 36@
36@ = generate_random_int_in_range 0 {max} 5
if or
  36@ == 0
  36@ == 1
goto_if_false @CPRACE_16430
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.TurnLeft {time} 200
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeTurnLeft {time} 250000
goto @CPRACE_16454

:CPRACE_16430
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.TurnRight {time} 200
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeTurnRight {time} 250000

:CPRACE_16454
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_temp_action -1 {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 250000
task_car_drive_wander -1 {vehicle} -1 {speed} 100.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 37@
perform_sequence_task 395@(253@,16i) {sequence} 37@
clear_sequence_task 37@

:CPRACE_16541
goto @CPRACE_16599

:CPRACE_16548
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1490
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_16599
task_car_drive_wander 395@(253@,16i) {vehicle} -1 {speed} 100.0 {drivingMode} DrivingMode.AvoidCars

:CPRACE_16599
363@(253@,16f) = 99999.0

:CPRACE_16613
goto @CPRACE_16948

:CPRACE_16620
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_16877
set_lvar_int_to_var_int 448@ = $game_timer
sub_int_lvar_from_int_lvar 448@ -= 206@
448@ /= 1000
if 
  is_int_var_greater_than_int_lvar $cprace_best_lap_times($race_selection,30i) > 448@
goto_if_false @CPRACE_16869
set_var_int_to_lvar_int $cprace_best_lap_times($race_selection,30i) = 448@
if 
  $race_selection == 25
goto_if_false @CPRACE_16728
register_fastest_time StatId.BestLapTimeHotring {value} 448@

:CPRACE_16728
if 
  $race_selection == 26
goto_if_false @CPRACE_16754
register_fastest_time StatId.BestLapTimeDirttrack {value} 448@

:CPRACE_16754
set_lvar_int_to_lvar_int 452@ = 448@
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 448@
sub_int_lvar_from_int_lvar 453@ -= 36@
if 
  10 > 453@
goto_if_false @CPRACE_16847
print_with_2_numbers_now 'LAPTIM0' {num1} 452@ {num2} 453@ {duration} 5000 {style} TextStyle.Middle
goto @CPRACE_16869

:CPRACE_16847
print_with_2_numbers_now 'LAPTIME' {num1} 452@ {num2} 453@ {duration} 5000 {style} TextStyle.Middle

:CPRACE_16869
set_lvar_int_to_var_int 206@ = $game_timer

:CPRACE_16877
257@(253@,16i) = 0
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 454@(36@,82f)
set_lvar_float_to_lvar_float 347@(253@,16f) = 536@(36@,82f)
set_lvar_float_to_lvar_float 363@(253@,16f) = 618@(36@,82f)

:CPRACE_16948
if 
  is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_17405
if 
  363@(253@,16f) <> 99999.0
goto_if_false @CPRACE_17398
if 
  221@ == 0
goto_if_false @CPRACE_17066
54@ = add_blip_for_coord 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f)
change_blip_colour 54@ {color} BlipColor.Red
change_blip_display 54@ {display} BlipDisplay.BlipOnly
change_blip_scale 54@ {size} 3
delete_checkpoint 449@

:CPRACE_17066
if and
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
  is_int_lvar_equal_to_int_lvar 273@(253@,16i) == 251@
goto_if_false @CPRACE_17278
if 
  is_int_lvar_equal_to_constant 205@ == 3
goto_if_false @CPRACE_17223
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ -= 1
if 
  0 > 36@
goto_if_false @CPRACE_17163
36@ = 0

:CPRACE_17163
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@
goto @CPRACE_17271

:CPRACE_17223
449@ = create_checkpoint CheckpointType.TubeEnd {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0

:CPRACE_17271
goto @CPRACE_17398

:CPRACE_17278
if 
  221@ == 0
goto_if_false @CPRACE_17398
set_lvar_int_to_lvar_int 36@ = 257@(253@,16i)
36@ += 1
if 
  is_int_lvar_equal_to_int_lvar 257@(253@,16i) == 249@
goto_if_false @CPRACE_17345
36@ = 1

:CPRACE_17345
449@ = create_checkpoint 205@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {pointX} 454@(36@,82f) {pointY} 536@(36@,82f) {pointZ} 618@(36@,82f) {radius} 325@

:CPRACE_17398
goto @CPRACE_18116

:CPRACE_17405
if 
  363@(253@,16f) <> 99999.0
goto_if_false @CPRACE_18116
if 
  is_char_in_any_heli 395@(253@,16i)
goto_if_false @CPRACE_17660
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_17603
if 
  is_char_in_car 395@(253@,16i) {vehicle} 379@(253@,16i)
goto_if_false @CPRACE_17546
heli_goto_coords 379@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)
goto @CPRACE_17596

:CPRACE_17546
443@ = store_car_char_is_in_no_save 395@(253@,16i)
heli_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17596
goto @CPRACE_17653

:CPRACE_17603
443@ = store_car_char_is_in_no_save 395@(253@,16i)
heli_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17653
goto @CPRACE_18116

:CPRACE_17660
if 
  is_char_in_any_plane 395@(253@,16i)
goto_if_false @CPRACE_17890
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_17833
if 
  is_char_in_car 395@(253@,16i) {vehicle} 379@(253@,16i)
goto_if_false @CPRACE_17776
plane_goto_coords 379@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)
goto @CPRACE_17826

:CPRACE_17776
443@ = store_car_char_is_in_no_save 395@(253@,16i)
plane_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17826
goto @CPRACE_17883

:CPRACE_17833
443@ = store_car_char_is_in_no_save 395@(253@,16i)
plane_goto_coords 443@ {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {minAltitude} 0.0 {maxAltitude} 363@(253@,16f)

:CPRACE_17883
goto @CPRACE_18116

:CPRACE_17890
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_18116
$task_status = get_script_task_status 395@(253@,16i) {taskId} 1490
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CPRACE_18116
if 
  not is_car_dead 379@(253@,16i)
goto_if_false @CPRACE_18068
task_car_drive_to_coord 395@(253@,16i) {vehicle} 379@(253@,16i) {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {speed} 50.0 {driveStyle} DriveMode.Racing {modelId} 716@(253@,16i) {drivingStyle} DrivingMode.AvoidCars
if 
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 250@
goto_if_false @CPRACE_18061
remove_stuck_car_check 379@(253@,16i)

:CPRACE_18061
goto @CPRACE_18116

:CPRACE_18068
task_car_drive_to_coord 395@(253@,16i) {vehicle} -1 {x} 331@(253@,16f) {y} 347@(253@,16f) {z} 363@(253@,16f) {speed} 50.0 {driveStyle} DriveMode.Racing {modelId} 716@(253@,16i) {drivingStyle} DrivingMode.AvoidCars

:CPRACE_18116
goto @CPRACE_18576

:CPRACE_18123
if 
  221@ > 0
goto_if_false @CPRACE_18426

:CPRACE_18141
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_18419
if 
  not is_point_obscured_by_a_mission_entity 732@ {y} 733@ {z} 734@ {radiusX} 2.5 {radiusY} 2.5 {radiusZ} 2.5
goto_if_false @CPRACE_18419
257@(253@,16i) = 1
remove_blip 412@(253@,16i)
mark_car_as_no_longer_needed 379@(253@,16i)
mark_char_as_no_longer_needed 395@(253@,16i)
set_lvar_float_to_lvar_float 331@(253@,16f) = 732@
set_lvar_float_to_lvar_float 347@(253@,16f) = 733@
set_lvar_float_to_lvar_float 363@(253@,16f) = 734@
set_var_float_to_lvar_float $heading = 735@
gosub @CPRACE_488
create_char_inside_car 379@(253@,16i) {pedType} PedType.CivMale {modelId} 700@(253@,16i) {var_handle} 395@(253@,16i)
set_char_area_visible 395@(253@,16i) {areaId} 221@
set_char_can_be_shot_in_vehicle 395@(253@,16i) {state} False
set_char_suffers_critical_hits 395@(253@,16i) {state} False
set_char_never_targetted 395@(253@,16i) {state} True
set_char_only_damaged_by_player 395@(253@,16i) {state} True
set_char_cant_be_dragged_out 395@(253@,16i) {state} False
set_char_drowns_in_water 395@(253@,16i) {state} False
set_char_health 395@(253@,16i) {health} 500
set_car_forward_speed 379@(253@,16i) {forwardSpeed} 25.0

:CPRACE_18419
goto @CPRACE_18576

:CPRACE_18426
if 
  not is_int_var_equal_to_int_lvar $scplayer == 395@(253@,16i)
goto_if_false @CPRACE_18576
if 
  13 > 49@
goto_if_false @CPRACE_18529
if or
  is_int_lvar_equal_to_int_lvar 257@(442@,16i) == 257@(253@,16i)
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 257@(442@,16i)
  is_int_lvar_greater_than_int_lvar 257@(253@,16i) > 249@
goto_if_false @CPRACE_18529
229@ += 1

:CPRACE_18529
if 
  not is_char_in_water 395@(253@,16i)
goto_if_false @CPRACE_18576
remove_blip 412@(253@,16i)
mark_char_as_no_longer_needed 395@(253@,16i)
mark_car_as_no_longer_needed 379@(253@,16i)

:CPRACE_18576
253@ += 1
goto @CPRACE_12351

:CPRACE_18590
if 
  256@ > 1
goto_if_false @CPRACE_19517
draw_rect $6909 {y} $6923 {width} $6937 {height} $6951 {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $6908 {y} $6922 {width} $6936 {height} $6950 {r} 134 {g} 155 {b} 184 {a} 255
draw_rect $x_hud_pos {y} $y_hud_pos {width} $x_hud_scale {height} $y_hud_scale {r} 0 {g} 0 {b} 0 {a} 255
if 
  224@ > 1
goto_if_false @CPRACE_18950
draw_rect $6910 {y} $6924 {width} $6938 {height} $6952 {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $6911 {y} $6925 {width} $6939 {height} $6953 {r} 134 {g} 155 {b} 184 {a} 255
draw_rect $6912 {y} $6926 {width} $6940 {height} $6954 {r} 0 {g} 0 {b} 0 {a} 255
set_lvar_int_to_lvar_int 36@ = 273@(442@,16i)
36@ += 1
if 
  is_int_lvar_greater_than_int_lvar 36@ > 224@
goto_if_false @CPRACE_18816
set_lvar_int_to_lvar_int 36@ = 224@

:CPRACE_18816
gosub @CPRACE_47594
$current_Language = get_current_language 
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CPRACE_18863
$6941 = 0.4235
goto @CPRACE_18908

:CPRACE_18863
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CPRACE_18898
$6941 = 0.3786
goto @CPRACE_18908

:CPRACE_18898
$6941 = 0.5

:CPRACE_18908
set_text_scale $6941 {heightScale} $6955
set_text_justify True
set_text_wrapx 600.0
display_text_with_2_numbers $6913 {offsetTop} $6927 {key} 'RACES32' {num1} 36@ {num2} 224@

:CPRACE_18950
set_lvar_int_to_lvar_int 450@ = 229@
450@ += 1
gosub @CPRACE_47594
if 
  223@ == 1
goto_if_false @CPRACE_19002
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19002
set_text_scale $6932 {heightScale} $6946
if 
  450@ == 1
goto_if_false @CPRACE_19045
display_text $6904 {offsetTop} $6918 {key} 'ST'

:CPRACE_19045
if 
  450@ == 2
goto_if_false @CPRACE_19080
display_text $6904 {offsetTop} $6918 {key} 'ND'

:CPRACE_19080
if 
  450@ == 3
goto_if_false @CPRACE_19115
display_text $6904 {offsetTop} $6918 {key} 'RD'

:CPRACE_19115
if 
  450@ > 3
goto_if_false @CPRACE_19150
display_text $6904 {offsetTop} $6918 {key} 'TH'

:CPRACE_19150
gosub @CPRACE_47594
if 
  223@ == 1
goto_if_false @CPRACE_19187
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19187
set_text_scale $6933 {heightScale} $6947
set_text_centre True
display_text_with_number $6905 {offsetTop} $6919 {key} 'NUMBER' {num} 450@
gosub @CPRACE_47594
if 
  223@ == 1
goto_if_false @CPRACE_19256
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19256
set_text_scale $6934 {heightScale} $6948
display_text_with_number $6906 {offsetTop} $6920 {key} 'OUT_OF' {num} 256@
if 
  13 > 49@
goto_if_false @CPRACE_19326
set_lvar_int_to_var_int 451@ = $game_timer
sub_int_var_from_int_lvar 451@ -= $races_timer
451@ /= 1000

:CPRACE_19326
set_lvar_int_to_lvar_int 452@ = 451@
452@ /= 60
if 
  452@ > 99
goto_if_false @CPRACE_19366
452@ = 99

:CPRACE_19366
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 451@
sub_int_lvar_from_int_lvar 453@ -= 36@
gosub @CPRACE_47594
if 
  222@ == 1
goto_if_false @CPRACE_19434
set_text_colour 180 {green} 25 {blue} 29 {alpha} 255

:CPRACE_19434
set_text_centre True
set_text_scale $6935 {heightScale} $6949
if 
  453@ > 9
goto_if_false @CPRACE_19494
display_text_with_2_numbers $6907 {offsetTop} $6921 {key} 'TIME' {num1} 452@ {num2} 453@
goto @CPRACE_19517

:CPRACE_19494
display_text_with_2_numbers $6907 {offsetTop} $6921 {key} 'TIME_0' {num1} 452@ {num2} 453@

:CPRACE_19517
if 
  $race_selection == 7
goto_if_false @CPRACE_19542
gosub @CPRACE_46264

:CPRACE_19542
if or
  $race_selection == 25
  $race_selection == 26
goto_if_false @CPRACE_19574
gosub @CPRACE_50980

:CPRACE_19574
goto @CPRACE_20805

:CPRACE_19581
if 
  $show_race_selection == 0
goto_if_false @CPRACE_19766
if 
  450@ == 1
goto_if_false @CPRACE_19718
if or
  $race_selection == 7
  $race_selection == 8
goto_if_false @CPRACE_19649
$flag_bcesar_mission_counter += 1

:CPRACE_19649
if 
  $race_selection == 0
goto_if_false @CPRACE_19706
print_with_number_big 'M_PASS' {num} 1000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 1000
remove_blip $cesar_contact_blip
$flag_cesar_mission_counter += 1

:CPRACE_19706
clear_wanted_level $player1
goto @CPRACE_19766

:CPRACE_19718
if or
  $race_selection == 0
  $race_selection == 7
  $race_selection == 8
goto_if_false @CPRACE_19766
print_big 'M_FAIL' {time} 3000 {style} TextStyle.Middle

:CPRACE_19766
clear_onscreen_timer $races_timer
if 
  is_int_var_greater_than_int_lvar $cprace_best_times($race_selection,30i) > 451@
goto_if_false @CPRACE_19859
if 
  256@ == 1
goto_if_false @CPRACE_19828
set_lvar_int_to_var_int 451@ = $races_timer
451@ /= 1000

:CPRACE_19828
set_var_int_to_lvar_int $cprace_best_times($race_selection,30i) = 451@
register_fastest_time 145@($race_selection,30i) {value} 451@
222@ = 1

:CPRACE_19859
if 
  256@ > 1
goto_if_false @CPRACE_19931
if 
  is_int_var_greater_than_int_lvar $cprace_best_position($race_selection,30i) > 450@
goto_if_false @CPRACE_19931
set_var_int_to_lvar_int $cprace_best_position($race_selection,30i) = 450@
register_best_position 175@($race_selection,30i) {position} 450@
223@ = 1

:CPRACE_19931
$x_hud_pos = 208.0665
$y_hud_pos = 297.9241
$x_hud_scale = 474.2788
$y_hud_scale = 383.4714
$6904 = 229.648
$6918 = 313.8785
$6932 = 0.5858
$6946 = 2.5296
$6905 = 455.3051
$6933 = 0.4116
$6920 = 339.1096
$6934 = 0.5858
gosub @CPRACE_48585
set_var_int_to_var_int $races_timer = $game_timer
$races_timer += 8000
49@ = 14
goto @CPRACE_20805

:CPRACE_20088
$current_Language = get_current_language 
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CPRACE_20126
set_var_float_to_var_float $6932 = $6934
goto @CPRACE_20134

:CPRACE_20126
set_var_float_to_var_float $6932 = $6933

:CPRACE_20134
if 
  256@ == 1
goto_if_false @CPRACE_20202
set_var_float_to_var_float $y = $y_hud_pos
$y += 25.0
draw_window $x_hud_pos {leftTopY} $y {rightBottomX} $x_hud_scale {rightBottomY} $y_hud_scale {header} 'DUMMY' {zIndex} 3
goto @CPRACE_20277

:CPRACE_20202
if 
  450@ == 1
goto_if_false @CPRACE_20252
draw_window $x_hud_pos {leftTopY} $y_hud_pos {rightBottomX} $x_hud_scale {rightBottomY} $y_hud_scale {header} 'RACES18' {zIndex} 3
goto @CPRACE_20277

:CPRACE_20252
draw_window $x_hud_pos {leftTopY} $y_hud_pos {rightBottomX} $x_hud_scale {rightBottomY} $y_hud_scale {header} 'RACES_8' {zIndex} 3

:CPRACE_20277
if 
  256@ > 1
goto_if_false @CPRACE_20549
gosub @CPRACE_47594
set_text_justify True
set_text_scale $6932 {heightScale} $6946
if 
  223@ == 1
goto_if_false @CPRACE_20356
display_text $6904 {offsetTop} $6918 {key} 'TOP_POS'
goto @CPRACE_20373

:CPRACE_20356
display_text $6904 {offsetTop} $6918 {key} 'RACES30'

:CPRACE_20373
gosub @CPRACE_47594
set_text_right_justify True
set_text_scale $6932 {heightScale} $6946
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
if 
  450@ == 1
goto_if_false @CPRACE_20441
display_text $6905 {offsetTop} $6918 {key} 'RACES26'

:CPRACE_20441
if 
  450@ == 2
goto_if_false @CPRACE_20476
display_text $6905 {offsetTop} $6918 {key} 'RACES27'

:CPRACE_20476
if 
  450@ == 3
goto_if_false @CPRACE_20511
display_text $6905 {offsetTop} $6918 {key} 'RACES28'

:CPRACE_20511
if 
  450@ > 3
goto_if_false @CPRACE_20549
display_text_with_number $6905 {offsetTop} $6918 {key} 'RACES29' {num} 450@

:CPRACE_20549
gosub @CPRACE_47594
set_text_justify True
set_text_scale $6932 {heightScale} $6946
if 
  222@ == 1
goto_if_false @CPRACE_20610
display_text $6904 {offsetTop} $6920 {key} 'TOPTIME'
goto @CPRACE_20627

:CPRACE_20610
display_text $6904 {offsetTop} $6920 {key} 'RACES31'

:CPRACE_20627
set_lvar_int_to_lvar_int 452@ = 451@
452@ /= 60
set_lvar_int_to_lvar_int 36@ = 452@
36@ *= 60
set_lvar_int_to_lvar_int 453@ = 451@
sub_int_lvar_from_int_lvar 453@ -= 36@
gosub @CPRACE_47594
set_text_right_justify True
set_text_scale $6932 {heightScale} $6946
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
if 
  453@ > 9
goto_if_false @CPRACE_20754
display_text_with_2_numbers $6905 {offsetTop} $6920 {key} 'TIME' {num1} 452@ {num2} 453@
goto @CPRACE_20777

:CPRACE_20754
display_text_with_2_numbers $6905 {offsetTop} $6920 {key} 'TIME_0' {num1} 452@ {num2} 453@

:CPRACE_20777
if 
  is_int_var_greater_than_int_var $game_timer > $races_timer
goto_if_false @CPRACE_20798
return 

:CPRACE_20798
goto @CPRACE_20805

:CPRACE_20805
goto @CPRACE_2634

:CPRACE_20812
switch_start $race_selection {numCases} 27 {hasDefaultCase} 0 {defaultLabel} @CPRACE_46262 {caseNum1} 0 {caseLabel1} @CPRACE_21070 {caseNum2} 1 {caseLabel2} @CPRACE_21616 {caseNum3} 2 {caseLabel3} @CPRACE_22058 {caseNum4} 3 {caseLabel4} @CPRACE_22740 {caseNum5} 4 {caseLabel5} @CPRACE_23422 {caseNum6} 5 {caseLabel6} @CPRACE_24164 {caseNum7} 6 {caseLabel7} @CPRACE_25116
switch_continued 7 {caseLabel1} @CPRACE_26038 {caseNum2} 8 {caseLabel2} @CPRACE_27092 {caseNum3} 9 {caseLabel3} @CPRACE_28206 {caseNum4} 10 {caseLabel4} @CPRACE_28894 {caseNum5} 11 {caseLabel5} @CPRACE_29612 {caseNum6} 12 {caseLabel6} @CPRACE_30204 {caseNum7} 13 {caseLabel7} @CPRACE_30802 {caseNum8} 14 {caseLabel8} @CPRACE_32150 {caseNum9} 15 {caseLabel9} @CPRACE_33528
switch_continued 16 {caseLabel1} @CPRACE_34456 {caseNum2} 17 {caseLabel2} @CPRACE_35318 {caseNum3} 18 {caseLabel3} @CPRACE_36240 {caseNum4} 19 {caseLabel4} @CPRACE_36982 {caseNum5} 20 {caseLabel5} @CPRACE_38120 {caseNum6} 21 {caseLabel6} @CPRACE_40068 {caseNum7} 22 {caseLabel7} @CPRACE_42256 {caseNum8} 23 {caseLabel8} @CPRACE_43154 {caseNum9} 24 {caseLabel9} @CPRACE_44052
switch_continued 25 {caseLabel1} @CPRACE_44980 {caseNum2} 26 {caseLabel2} @CPRACE_45529 {caseNum3} -1 {caseLabel3} @CPRACE_46262 {caseNum4} -1 {caseLabel4} @CPRACE_46262 {caseNum5} -1 {caseLabel5} @CPRACE_46262 {caseNum6} -1 {caseLabel6} @CPRACE_46262 {caseNum7} -1 {caseLabel7} @CPRACE_46262 {caseNum8} -1 {caseLabel8} @CPRACE_46262 {caseNum9} -1 {caseLabel9} @CPRACE_46262

:CPRACE_21070
454@ = 1492.407
536@ = -1872.365
618@ = 15.8
455@ = 1384.2629
537@ = -1872.015
619@ = 12.3828
456@ = 1075.442
538@ = -1851.978
620@ = 12.391
457@ = 647.3663
539@ = -1734.1851
621@ = 12.4844
458@ = 627.2474
540@ = -1228.55
622@ = 16.9893
459@ = 497.0043
541@ = -1282.818
623@ = 14.6513
460@ = 500.412
542@ = -1326.649
624@ = 14.8178
461@ = 401.0033
543@ = -1404.457
625@ = 32.8973
462@ = 420.3067
544@ = -1450.714
626@ = 29.5842
463@ = 329.1244
545@ = -1631.1121
627@ = 32.1247
464@ = 366.4376
546@ = -1647.349
628@ = 31.7176
465@ = 369.98
547@ = -2030.34
629@ = 5.55
250@ = 12
256@ = 6
set_lvar_int_to_constant 700@ = 133
set_lvar_int_to_constant 701@ = 217
set_lvar_int_to_constant 702@ = 157
set_lvar_int_to_constant 703@ = 248
set_lvar_int_to_constant 704@ = 290
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 517
set_lvar_int_to_constant 717@ = 534
set_lvar_int_to_constant 718@ = 517
set_lvar_int_to_constant 719@ = 536
set_lvar_int_to_constant 720@ = 567
set_lvar_int_to_constant 721@ = 536
209@ = 6
215@ = 0
210@ = 8
216@ = 0
211@ = 2
217@ = 1
212@ = 0
218@ = 0
213@ = 3
219@ = 3
goto @CPRACE_46262

:CPRACE_21616
454@ = 2875.1919
536@ = -1458.85
618@ = 10.5892
455@ = 2875.3621
537@ = -1404.7679
619@ = 10.7143
456@ = 2797.0371
538@ = -1291.152
620@ = 41.389
457@ = 2609.9839
539@ = -1256.458
621@ = 47.9322
458@ = 2371.282
540@ = -1280.4771
622@ = 23.6341
459@ = 2450.5569
541@ = -1444.24
623@ = 23.6318
460@ = 2618.436
542@ = -1444.826
624@ = 31.6234
461@ = 2657.3
543@ = -1404.327
625@ = 30.0795
462@ = 2680.5061
544@ = -1489.556
626@ = 30.2098
463@ = 2755.9519
545@ = -1488.515
627@ = 29.3812
set_lvar_float_to_lvar_float 464@ = 454@
set_lvar_float_to_lvar_float 546@ = 536@
set_lvar_float_to_lvar_float 628@ = 618@
250@ = 11
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 522
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_22058
454@ = 261.7816
536@ = -1243.111
618@ = 71.8851
455@ = 312.9973
537@ = -1206.853
619@ = 74.9057
456@ = 440.3485
538@ = -1186.672
620@ = 67.2076
457@ = 623.8817
539@ = -1109.967
621@ = 45.6186
458@ = 745.0934
540@ = -951.0351
622@ = 53.766
459@ = 873.6384
541@ = -860.0975
623@ = 76.5242
460@ = 1053.818
542@ = -777.5837
624@ = 104.7803
461@ = 1248.368
543@ = -731.3474
625@ = 93.7346
462@ = 1372.402
544@ = -675.6946
626@ = 92.6217
463@ = 1328.011
545@ = -583.8703
627@ = 93.4113
464@ = 1167.3149
546@ = -633.0795
628@ = 102.7501
465@ = 968.4116
547@ = -646.252
629@ = 120.7201
466@ = 791.077
548@ = -800.4396
630@ = 65.0537
467@ = 620.9355
549@ = -905.8031
631@ = 62.1261
468@ = 454.9853
550@ = -1013.546
632@ = 92.0091
469@ = 276.8912
551@ = -1104.1591
633@ = 80.0612
470@ = 141.6012
552@ = -1247.267
634@ = 43.792
471@ = 192.4688
553@ = -1380.597
635@ = 47.6608
set_lvar_float_to_lvar_float 472@ = 454@
set_lvar_float_to_lvar_float 554@ = 536@
set_lvar_float_to_lvar_float 636@ = 618@
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_22740
454@ = 1927.48
536@ = -1515.516
618@ = 2.2978
455@ = 2018.401
537@ = -1515.405
619@ = 2.4054
456@ = 2179.0061
538@ = -1559.661
620@ = 1.1797
457@ = 2370.1379
539@ = -1619.553
621@ = 7.3323
458@ = 2570.8411
540@ = -1619.056
622@ = 17.6841
459@ = 2756.8459
541@ = -1657.173
623@ = 11.5191
460@ = 2915.178
542@ = -1534.3621
624@ = 9.875
461@ = 2916.228
543@ = -1333.491
625@ = 9.875
462@ = 2819.3311
544@ = -1142.6379
626@ = 15.7018
463@ = 2622.646
545@ = -1152.8719
627@ = 50.4181
464@ = 2423.186
546@ = -1154.1689
628@ = 30.5642
465@ = 2167.0459
547@ = -1101.915
629@ = 24.3864
466@ = 2006.077
548@ = -1027.839
630@ = 34.3152
467@ = 1835.824
549@ = -991.5906
631@ = 35.8824
468@ = 1636.313
550@ = -1005.15
632@ = 49.8831
469@ = 1617.024
551@ = -1215.833
633@ = 51.0566
470@ = 1577.972
552@ = -1417.8311
634@ = 27.6154
471@ = 1722.823
553@ = -1525.932
635@ = 18.3927
set_lvar_float_to_lvar_float 472@ = 454@
set_lvar_float_to_lvar_float 554@ = 536@
set_lvar_float_to_lvar_float 636@ = 618@
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_23422
454@ = 1357.656
536@ = -1361.671
618@ = 12.3828
455@ = 1357.689
537@ = -1186.4041
619@ = 20.2744
456@ = 1369.741
538@ = -1000.526
620@ = 27.02
457@ = 1505.818
539@ = -868.7814
621@ = 61.0462
458@ = 1452.7939
540@ = -711.5325
622@ = 89.8766
459@ = 1253.572
541@ = -729.2587
623@ = 93.4292
460@ = 1059.306
542@ = -775.9847
624@ = 105.3241
461@ = 878.665
543@ = -858.1913
625@ = 76.8826
462@ = 721.7916
544@ = -980.4561
626@ = 51.9555
463@ = 571.0251
545@ = -1045.203
627@ = 72.2876
464@ = 373.2952
546@ = -1075.644
628@ = 72.8049
465@ = 288.4963
547@ = -1249.7469
629@ = 72.721
466@ = 481.2224
548@ = -1240.976
630@ = 19.3512
467@ = 518.334
549@ = -1377.603
631@ = 14.9457
468@ = 448.0064
550@ = -1540.832
632@ = 27.8796
469@ = 487.4595
551@ = -1661.575
633@ = 20.74
470@ = 687.2253
552@ = -1673.48
634@ = 10.7959
471@ = 866.4786
553@ = -1584.698
635@ = 12.3828
472@ = 1066.729
554@ = -1572.3051
636@ = 12.375
473@ = 1261.214
555@ = -1572.243
637@ = 12.3906
set_lvar_float_to_lvar_float 474@ = 454@
set_lvar_float_to_lvar_float 556@ = 536@
set_lvar_float_to_lvar_float 638@ = 618@
250@ = 21
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 558
set_lvar_int_to_constant 717@ = 555
set_lvar_int_to_constant 718@ = 496
set_lvar_int_to_constant 719@ = 555
set_lvar_int_to_constant 720@ = 405
set_lvar_int_to_constant 721@ = 550
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_24164
454@ = 852.0544
536@ = -1405.6219
618@ = 12.217
455@ = 1102.7889
537@ = -1405.766
619@ = 12.428
456@ = 1353.038
538@ = -1405.5439
620@ = 12.3251
457@ = 1600.965
539@ = -1440.8521
621@ = 12.3828
458@ = 1850.6219
540@ = -1461.777
622@ = 12.3984
454@ = 831.7679
536@ = -1405.588
618@ = 12.3849
455@ = 1031.822
537@ = -1405.615
619@ = 12.0966
456@ = 1232.144
538@ = -1405.7321
620@ = 12.0633
457@ = 1429.5081
539@ = -1439.0909
621@ = 12.3828
458@ = 1630.1801
540@ = -1440.858
622@ = 12.3828
459@ = 1829.527
541@ = -1460.804
623@ = 12.3448
460@ = 2029.979
542@ = -1463.381
624@ = 14.4553
461@ = 2175.823
543@ = -1384.403
625@ = 22.8281
462@ = 2342.427
544@ = -1442.324
626@ = 22.8281
463@ = 2191.875
545@ = -1545.934
627@ = 1.1724
464@ = 1997.078
546@ = -1499.951
628@ = 2.3804
465@ = 1797.0649
547@ = -1500.874
629@ = 6.8307
466@ = 1641.002
548@ = -1439.345
630@ = 27.0747
467@ = 1627.5551
549@ = -1280.703
631@ = 41.885
468@ = 1683.507
550@ = -1089.012
632@ = 55.7917
469@ = 1566.054
551@ = -927.5945
633@ = 42.7541
470@ = 1366.105
552@ = -933.6759
634@ = 33.1953
471@ = 1166.087
553@ = -941.9011
635@ = 41.8697
472@ = 966.715
554@ = -962.2038
636@ = 38.1905
473@ = 784.2582
555@ = -1043.979
637@ = 23.6177
474@ = 677.2552
556@ = -1164.1281
638@ = 14.164
475@ = 627.7037
557@ = -1337.9041
639@ = 12.4227
set_lvar_float_to_lvar_float 476@ = 454@
set_lvar_float_to_lvar_float 558@ = 536@
set_lvar_float_to_lvar_float 640@ = 618@
250@ = 23
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 429
set_lvar_int_to_constant 717@ = 541
set_lvar_int_to_constant 718@ = 402
set_lvar_int_to_constant 719@ = 429
set_lvar_int_to_constant 720@ = 541
set_lvar_int_to_constant 721@ = 506
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_25116
454@ = 1331.926
536@ = -2280.51
618@ = 13.1732
455@ = 1331.775
537@ = -2541.6819
619@ = 13.1765
456@ = 1544.309
538@ = -2684.9829
620@ = 7.5074
457@ = 1945.947
539@ = -2685.1311
621@ = 6.5549
458@ = 2175.1411
540@ = -2557.9939
622@ = 13.173
459@ = 2352.719
541@ = -2222.2229
623@ = 13.1737
460@ = 2740.522
542@ = -2168.782
624@ = 10.7349
461@ = 2844.832
543@ = -1812.965
625@ = 10.6737
462@ = 2926.094
544@ = -1421.2629
626@ = 10.657
463@ = 2888.946
545@ = -1022.685
627@ = 10.6607
464@ = 2896.4829
546@ = -621.0989
628@ = 10.63
465@ = 2718.623
547@ = -273.2495
629@ = 27.6705
466@ = 2774.2991
548@ = 119.9424
630@ = 22.8712
467@ = 2612.8201
549@ = 327.3945
631@ = 25.6764
468@ = 2213.9829
550@ = 324.9601
632@ = 32.5307
469@ = 1817.184
551@ = 278.3323
633@ = 21.5314
470@ = 1621.1851
552@ = 312.8743
634@ = 20.8534
471@ = 1608.0291
553@ = 372.27
635@ = 26.4284
472@ = 1658.672
554@ = 317.3336
636@ = 30.0474
473@ = 1651.536
555@ = -68.8376
637@ = 35.9156
474@ = 1668.653
556@ = -369.1116
638@ = 34.3923
475@ = 1699.785
557@ = -665.8258
639@ = 43.3311
476@ = 1640.03
558@ = -1062.329
640@ = 60.8035
477@ = 1594.408
559@ = -1457.834
641@ = 28.3679
478@ = 1622.355
560@ = -1856.505
642@ = 25.4707
479@ = 1452.1591
561@ = -2117.271
643@ = 13.1726
set_lvar_float_to_lvar_float 480@ = 454@
set_lvar_float_to_lvar_float 562@ = 536@
set_lvar_float_to_lvar_float 644@ = 618@
250@ = 27
256@ = 4
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 429
set_lvar_int_to_constant 718@ = 415
set_lvar_int_to_constant 719@ = 541
set_lvar_int_to_constant 720@ = 451
set_lvar_int_to_constant 721@ = 411
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_26038
454@ = 1559.983
536@ = 17.468
618@ = 26.1563
455@ = 1556.426
537@ = -94.0345
619@ = 19.4957
456@ = 1434.738
538@ = -214.9645
620@ = 7.3527
457@ = 1321.254
539@ = -195.8984
621@ = 15.7447
458@ = 1211.007
540@ = -102.6927
622@ = 39.3603
459@ = 892.2923
541@ = -88.1123
623@ = 22.4405
460@ = 789.9247
542@ = -124.3171
624@ = 21.3365
461@ = 659.6545
543@ = -196.7497
625@ = 11.7663
462@ = 419.4744
544@ = -302.5507
626@ = 6.446
463@ = 289.8085
545@ = -380.3828
627@ = 7.8753
464@ = 207.4451
546@ = -298.923
628@ = 0.4375
465@ = 182.497
547@ = -217.8004
629@ = 0.4216
466@ = 22.0727
548@ = -207.7681
630@ = 0.5827
467@ = -114.231
549@ = -132.3417
631@ = 2.1236
468@ = -38.4818
550@ = 140.8613
632@ = 2.1234
469@ = -141.4718
551@ = 187.6611
633@ = 6.2406
470@ = -329.7878
552@ = 173.921
634@ = 5.403
471@ = -507.6872
553@ = 221.0444
635@ = 8.7633
472@ = -661.1096
554@ = 226.3879
636@ = 16.7064
473@ = -618.4406
555@ = -67.8995
637@ = 62.3489
474@ = -507.8417
556@ = -45.9077
638@ = 59.2556
475@ = -520.6511
557@ = 79.6011
639@ = 32.2117
476@ = -715.4454
558@ = 225.1288
640@ = 0.2899
477@ = -770.0811
559@ = 130.1324
641@ = 9.4651
478@ = -738.1151
560@ = 25.555
642@ = 32.2336
479@ = -885.785
561@ = -41.3927
643@ = 33.2347
480@ = -716.4521
562@ = 5.1206
644@ = 59.1055
481@ = -759.2693
563@ = -92.0455
645@ = 64.8686
482@ = -826.881
564@ = -167.7603
646@ = 64.99
483@ = -728.9467
565@ = -173.5218
647@ = 65.1248
484@ = -544.8638
566@ = -189.4458
648@ = 77.8383
250@ = 31
256@ = 4
set_lvar_int_to_constant 700@ = 101
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 290
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 439
set_lvar_int_to_constant 717@ = 475
set_lvar_int_to_constant 718@ = 526
set_lvar_int_to_constant 719@ = 475
209@ = 4
215@ = 80
210@ = 3
216@ = 80
211@ = 5
217@ = 80
goto @CPRACE_46262

:CPRACE_27092
454@ = -544.8638
536@ = -189.4458
618@ = 81.8383
455@ = -728.9467
537@ = -173.5218
619@ = 65.1248
456@ = -826.881
538@ = -167.7603
620@ = 64.99
457@ = -759.2693
539@ = -92.0455
621@ = 64.8686
458@ = -716.4521
540@ = 5.1206
622@ = 59.1055
459@ = -885.785
541@ = -41.3927
623@ = 33.2347
460@ = -738.1151
542@ = 25.555
624@ = 32.2336
461@ = -770.0811
543@ = 130.1324
625@ = 9.4651
462@ = -715.4454
544@ = 225.1288
626@ = 0.2899
463@ = -624.6024
545@ = 187.2405
627@ = 15.4381
464@ = -520.6511
546@ = 79.6011
628@ = 32.2117
465@ = -507.8417
547@ = -45.9077
629@ = 59.2556
466@ = -618.4406
548@ = -67.8995
630@ = 62.3489
467@ = -658.3503
549@ = 146.4855
631@ = 28.2693
468@ = -507.6872
550@ = 221.0444
632@ = 8.7633
469@ = -329.7878
551@ = 173.921
633@ = 5.5
470@ = -149.4881
552@ = 189.6471
634@ = 7.2644
471@ = -38.4818
553@ = 140.8613
635@ = 2.1234
472@ = -114.231
554@ = -132.3417
636@ = 2.1236
473@ = 22.0727
555@ = -207.7681
637@ = 0.5827
474@ = 182.497
556@ = -217.8004
638@ = 0.4216
475@ = 207.4451
557@ = -298.923
639@ = 0.4375
476@ = 279.6441
558@ = -378.3416
640@ = 7.9003
477@ = 419.4744
559@ = -302.5507
641@ = 6.446
478@ = 573.52
560@ = -202.8494
642@ = 13.7118
479@ = 748.4567
561@ = -150.8298
643@ = 18.3722
480@ = 820.4231
562@ = -111.5991
644@ = 23.2476
481@ = 1000.325
563@ = -80.3516
645@ = 21.0326
482@ = 1187.3929
564@ = -83.879
646@ = 35.2576
483@ = 1265.847
565@ = -153.0857
647@ = 36.8097
484@ = 1434.738
566@ = -214.9645
648@ = 7.3527
485@ = 1548.963
567@ = -146.2702
649@ = 16.4932
486@ = 1559.983
568@ = 17.468
650@ = 23.1563
250@ = 33
256@ = 4
set_lvar_int_to_constant 700@ = 101
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 290
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 477
set_lvar_int_to_constant 717@ = 560
set_lvar_int_to_constant 718@ = 562
set_lvar_int_to_constant 719@ = 477
209@ = 4
215@ = 80
210@ = 3
216@ = 80
211@ = 5
217@ = 80
goto @CPRACE_46262

:CPRACE_28206
454@ = -796.8273
536@ = -2468.5291
618@ = 83.6549
455@ = -938.5198
537@ = -2364.511
619@ = 57.0608
456@ = -1065.656
538@ = -2379.436
620@ = 46.5486
457@ = -1247.823
539@ = -2313.5281
621@ = 19.8007
458@ = -1356.137
540@ = -2180.365
622@ = 21.3467
459@ = -1541.303
541@ = -2154.782
623@ = 5.8607
460@ = -1674.876
542@ = -2235.1321
624@ = 33.8691
461@ = -1839.937
543@ = -2349.3679
625@ = 31.9587
462@ = -1841.037
544@ = -2454.3999
626@ = 27.4044
463@ = -1702.0439
545@ = -2587.9761
627@ = 26.1706
464@ = -1508.332
546@ = -2634.7329
628@ = 46.8766
465@ = -1310.905
547@ = -2637.832
629@ = 12.808
466@ = -1122.6169
548@ = -2652.592
630@ = 15.4117
467@ = -934.2363
549@ = -2668.4729
631@ = 80.3479
468@ = -753.5882
550@ = -2672.7849
632@ = 84.0788
469@ = -668.018
551@ = -2496.988
633@ = 37.5787
470@ = -550.4019
552@ = -2334.5391
634@ = 26.8502
471@ = -366.3848
553@ = -2257.25
635@ = 41.7144
472@ = -276.1146
554@ = -2189.364
636@ = 27.7264
250@ = 19
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 468
set_lvar_int_to_constant 717@ = 468
set_lvar_int_to_constant 718@ = 468
set_lvar_int_to_constant 719@ = 468
set_lvar_int_to_constant 720@ = 468
set_lvar_int_to_constant 721@ = 468
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_28894
454@ = -1936.791
536@ = -2452.2351
618@ = 29.6377
455@ = -1862.54
537@ = -2379.437
619@ = 30.1425
456@ = -1690.144
538@ = -2303.8459
620@ = 43.3626
457@ = -1676.317
539@ = -2132.699
621@ = 35.2082
458@ = -1855.421
540@ = -2087.1169
622@ = 58.3697
459@ = -1919.802
541@ = -1937.457
623@ = 78.5313
460@ = -1749.334
542@ = -1899.519
624@ = 95.8199
461@ = -1571.292
543@ = -1904.166
625@ = 84.3076
462@ = -1483.7841
544@ = -1783.286
626@ = 49.8768
463@ = -1429.8781
545@ = -1915.641
627@ = 25.1751
464@ = -1301.801
546@ = -2084.054
628@ = 22.9116
465@ = -1269.913
547@ = -2248.7361
629@ = 21.3152
466@ = -1146.514
548@ = -2371.5081
630@ = 27.0467
467@ = -959.5773
549@ = -2306.27
631@ = 56.1859
468@ = -867.9595
550@ = -2180.8911
632@ = 25.6567
469@ = -843.4177
551@ = -2018.734
633@ = 20.9828
470@ = -767.7295
552@ = -1865.533
634@ = 11.4149
471@ = -666.3682
553@ = -1996.276
635@ = 23.9143
472@ = -486.6196
554@ = -2025.765
636@ = 48.245
473@ = -323.4612
555@ = -1914.2061
637@ = 11.1951
250@ = 20
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 568
set_lvar_int_to_constant 717@ = 568
set_lvar_int_to_constant 718@ = 568
set_lvar_int_to_constant 719@ = 568
set_lvar_int_to_constant 720@ = 568
set_lvar_int_to_constant 721@ = 568
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_29612
454@ = -2728.3091
536@ = -310.8731
618@ = 6.0391
455@ = -2668.6709
537@ = -251.6207
619@ = 5.4984
456@ = -2655.978
538@ = -104.6751
620@ = 2.9982
457@ = -2460.835
539@ = -69.9766
621@ = 31.2
458@ = -2421.2629
540@ = 55.6089
622@ = 34.0156
459@ = -2545.26
541@ = 137.9111
623@ = 15.2177
460@ = -2604.136
542@ = 136.8579
624@ = 3.1797
461@ = -2558.6609
543@ = 245.625
625@ = 10.7931
462@ = -2578.5039
544@ = 345.8331
626@ = 7.2168
463@ = -2706.282
545@ = 317.6024
627@ = 3.1797
464@ = -2809.2439
546@ = 232.3965
628@ = 6.0313
465@ = -2757.749
547@ = 138.2248
629@ = 5.9033
466@ = -2758.3899
548@ = -43.991
630@ = 6.1263
467@ = -2756.8921
549@ = -184.0135
631@ = 5.8843
468@ = -2812.4641
550@ = -299.5974
632@ = 6.039
set_lvar_float_to_lvar_float 469@ = 454@
set_lvar_float_to_lvar_float 551@ = 536@
set_lvar_float_to_lvar_float 633@ = 618@
250@ = 16
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 571
set_lvar_int_to_constant 717@ = 571
set_lvar_int_to_constant 718@ = 571
set_lvar_int_to_constant 719@ = 571
set_lvar_int_to_constant 720@ = 571
set_lvar_int_to_constant 721@ = 571
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_30204
454@ = -2657.1641
536@ = 1153.8719
618@ = 34.7396
455@ = -2593.2209
537@ = 1217.854
619@ = 34.7402
456@ = -2312.2881
538@ = 1176.387
620@ = 49.608
457@ = -2157.1931
539@ = 1268.197
621@ = 26.0127
458@ = -1959.526
540@ = 1287.205
622@ = 6.7514
459@ = -1741.076
541@ = 1325.298
623@ = 6.083
460@ = -1759.865
542@ = 1269.147
624@ = 8.8598
461@ = -1884.2419
543@ = 1160.691
625@ = 45.0107
462@ = -1897.101
544@ = 960.1686
626@ = 34.7366
463@ = -1998.178
545@ = 841.1865
627@ = 45.0219
464@ = -2189.259
546@ = 808.5273
628@ = 56.0602
465@ = -2389.186
547@ = 808.6409
629@ = 34.7495
466@ = -2589.6919
548@ = 808.5219
630@ = 49.5411
467@ = -2711.488
549@ = 812.8809
631@ = 48.9309
468@ = -2750.894
550@ = 890.6993
632@ = 65.8952
469@ = -2653.9121
551@ = 1157.345
633@ = 34.7386
250@ = 16
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 559
set_lvar_int_to_constant 717@ = 589
set_lvar_int_to_constant 718@ = 559
set_lvar_int_to_constant 719@ = 565
set_lvar_int_to_constant 720@ = 558
set_lvar_int_to_constant 721@ = 602
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_30802
454@ = -1584.141
536@ = 1053.439
618@ = 6.8392
455@ = -1584.1281
537@ = 1150.261
619@ = 6.8387
456@ = -1699.077
538@ = 1312.02
620@ = 6.8293
457@ = -1875.891
539@ = 1352.059
621@ = 6.8322
458@ = -2060.741
540@ = 1274.452
622@ = 8.0659
459@ = -2258.3059
541@ = 1257.682
623@ = 42.6038
460@ = -2143.281
542@ = 1075.652
624@ = 79.1249
461@ = -2143.1411
543@ = 896.6196
625@ = 79.6432
462@ = -2143.084
544@ = 696.6971
626@ = 67.6451
463@ = -2146.7371
545@ = 532.8465
627@ = 34.8181
464@ = -2055.564
546@ = 504.0781
628@ = 34.8168
465@ = -1968.175
547@ = 605.5881
629@ = 34.8199
466@ = -1820.3929
548@ = 475.0548
630@ = 23.4295
467@ = -1876.903
549@ = 288.4981
631@ = 32.6699
468@ = -1897.585
550@ = 87.7896
632@ = 37.9384
469@ = -1911.151
551@ = -214.2394
633@ = 38.032
470@ = -1910.974
552@ = -515.5727
634@ = 38.0323
471@ = -1910.675
553@ = -816.3037
635@ = 44.7432
472@ = -1910.658
554@ = -1117.4091
636@ = 38.0214
473@ = -1907.276
555@ = -1317.626
637@ = 39.3164
474@ = -1996.896
556@ = -1289.264
638@ = 37.3518
475@ = -2153.53
557@ = -1031.597
639@ = 32.3638
476@ = -2205.5669
558@ = -859.1885
640@ = 54.6872
477@ = -2202.666
559@ = -759.2505
641@ = 62.3413
478@ = -2352.2549
560@ = -775.5399
642@ = 95.1597
479@ = -2421.5439
561@ = -610.6656
643@ = 132.3493
480@ = -2627.1379
562@ = -496.4363
644@ = 70.09
481@ = -2351.2471
563@ = -460.0875
645@ = 79.9485
482@ = -2599.9961
564@ = -372.7368
646@ = 43.7794
483@ = -2702.314
565@ = -530.1367
647@ = 12.4366
484@ = -2699.197
566@ = -401.205
648@ = 7.7008
485@ = -2210.2549
567@ = -348.0724
649@ = 36.8384
486@ = -1897.734
568@ = -314.4976
650@ = 48.9384
487@ = -1890.36
569@ = -45.4288
651@ = 38.0312
488@ = -1886.557
570@ = 55.293
652@ = 38.0326
489@ = -1848.0389
571@ = 242.5393
653@ = 30.825
490@ = -1736.635
572@ = 316.5836
654@ = 6.039
491@ = -1682.981
573@ = 367.1342
655@ = 6.028
492@ = -1559.293
574@ = 528.332
656@ = 6.8409
493@ = -1535.552
575@ = 827.4427
657@ = 6.8401
494@ = -1584.129
576@ = 1115.601
658@ = 6.8376
250@ = 41
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 402
set_lvar_int_to_constant 717@ = 560
set_lvar_int_to_constant 718@ = 506
set_lvar_int_to_constant 719@ = 506
set_lvar_int_to_constant 720@ = 477
set_lvar_int_to_constant 721@ = 603
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_32150
454@ = -1761.655
536@ = -606.3881
618@ = 15.8961
455@ = -1760.54
537@ = -686.4133
619@ = 24.2389
456@ = -1502.876
538@ = -820.2545
620@ = 61.3357
457@ = -1219.332
539@ = -759.4814
621@ = 62.0285
458@ = -1096.152
540@ = -489.1358
622@ = 32.7156
459@ = -911.5416
541@ = -455.9558
623@ = 26.7166
460@ = -621.3364
542@ = -393.158
624@ = 22.1878
461@ = -395.5605
543@ = -533.522
625@ = 17.6561
462@ = -372.2669
544@ = -819.4839
626@ = 28.1926
463@ = -584.5377
545@ = -1160.572
627@ = 21.8153
464@ = -659.3533
546@ = -1548.814
628@ = 22.1495
465@ = -717.1517
547@ = -1697.205
629@ = 48.2586
466@ = -714.6181
548@ = -1395.094
630@ = 60.5799
467@ = -764.046
549@ = -1385.027
631@ = 82.2146
468@ = -762.7014
550@ = -1685.041
632@ = 96.9103
469@ = -945.4141
551@ = -1903.2271
633@ = 81.3436
470@ = -1104.541
552@ = -2155.325
634@ = 34.6761
471@ = -1186.201
553@ = -2444.541
635@ = 54.4532
472@ = -982.3237
554@ = -2611.624
636@ = 86.253
473@ = -713.2529
555@ = -2336.6169
637@ = 36.4201
474@ = -512.3461
556@ = -2166.417
638@ = 53.5212
475@ = -258.5978
557@ = -2074.8721
639@ = 36.648
476@ = -260.1367
558@ = -1777.191
640@ = 7.5735
477@ = -57.3444
559@ = -1601.375
641@ = 1.3776
478@ = -124.296
560@ = -1466.575
642@ = 2.4045
479@ = -143.4815
561@ = -1270.317
643@ = 2.404
480@ = -113.7683
562@ = -998.821
644@ = 23.9178
481@ = -377.3843
563@ = -838.2166
645@ = 47.1444
482@ = -626.0056
564@ = -989.012
646@ = 66.0268
483@ = -877.4561
565@ = -1097.426
647@ = 96.1699
484@ = -925.9376
566@ = -1391.353
648@ = 126.2905
485@ = -1219.141
567@ = -1347.249
649@ = 122.5235
486@ = -1407.723
568@ = -1414.45
650@ = 104.9232
487@ = -1577.0129
569@ = -1168.802
651@ = 102.3586
488@ = -1626.067
570@ = -882.9627
652@ = 97.5243
489@ = -1744.303
571@ = -853.2858
653@ = 77.1834
490@ = -1684.6121
572@ = -1143.291
654@ = 72.4364
491@ = -1549.538
573@ = -1286.347
655@ = 57.1135
492@ = -1525.757
574@ = -1383.531
656@ = 45.1796
493@ = -1626.142
575@ = -1375.587
657@ = 45.2062
494@ = -1800.174
576@ = -1016.79
658@ = 51.6322
495@ = -1817.478
577@ = -617.6195
659@ = 15.9507
250@ = 42
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 415
set_lvar_int_to_constant 718@ = 411
set_lvar_int_to_constant 719@ = 451
set_lvar_int_to_constant 720@ = 429
set_lvar_int_to_constant 721@ = 541
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_33528
454@ = -2001.856
536@ = 1076.302
618@ = 54.5637
455@ = -2302.386
537@ = 1076.754
619@ = 54.5859
456@ = -2596.7849
538@ = 1136.728
620@ = 54.4297
457@ = -2673.7671
539@ = 1427.293
621@ = 54.4271
458@ = -2673.7749
540@ = 1728.239
622@ = 66.8937
459@ = -2673.8069
541@ = 2028.896
623@ = 57.2377
460@ = -2731.7419
542@ = 2323.1831
624@ = 67.5411
461@ = -2622.094
543@ = 2602.5969
625@ = 68.7
462@ = -2322.772
544@ = 2637.1001
626@ = 53.2135
463@ = -2027.1219
545@ = 2585.865
627@ = 53.9804
464@ = -1885.621
546@ = 2321.522
628@ = 38.5395
465@ = -1675.296
547@ = 2107.697
629@ = 17.3995
466@ = -1629.976
548@ = 1810.828
630@ = 11.059
467@ = -1347.988
549@ = 1705.67
631@ = 4.8179
468@ = -1125.87
550@ = 1504.095
632@ = 22.1877
469@ = -1010.766
551@ = 1227.0439
633@ = 31.1773
470@ = -908.7908
552@ = 944.9431
634@ = 17.337
471@ = -744.0402
553@ = 694.0286
635@ = 16.9982
472@ = -469.1425
554@ = 573.061
636@ = 16.0649
473@ = -168.3162
555@ = 562.0268
637@ = 14.9046
474@ = 110.1296
556@ = 673.4105
638@ = 4.6336
475@ = 400.681
557@ = 749.8367
639@ = 5.0607
476@ = 686.3097
558@ = 656.6995
640@ = 7.8963
477@ = 975.3585
559@ = 738.1249
641@ = 9.6719
478@ = 1242.045
560@ = 876.267
642@ = 13.1519
479@ = 1226.8101
561@ = 1169.877
643@ = 5.8125
480@ = 1226.6639
562@ = 1469.936
644@ = 5.742
250@ = 27
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 415
set_lvar_int_to_constant 718@ = 411
set_lvar_int_to_constant 719@ = 451
set_lvar_int_to_constant 720@ = 429
set_lvar_int_to_constant 721@ = 429
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_34456
454@ = -878.0113
536@ = 1947.484
618@ = 59.1845
455@ = -857.6418
537@ = 1873.25
619@ = 59.183
456@ = -1030.689
538@ = 1853.546
620@ = 58.8558
457@ = -1093.182
539@ = 1748.0229
621@ = 31.6318
458@ = -902.488
540@ = 1687.666
622@ = 26.267
459@ = -847.1951
541@ = 1495.5811
623@ = 17.5443
460@ = -782.4052
542@ = 1305.811
624@ = 12.6016
461@ = -616.3677
543@ = 1193.645
625@ = 9.2126
462@ = -474.1805
544@ = 1052.0861
626@ = 10.0313
463@ = -319.1918
545@ = 925.6066
627@ = 10.3099
464@ = -267.4492
546@ = 825.0159
628@ = 13.2739
465@ = -188.4539
547@ = 1007.19
629@ = 18.5885
466@ = -164.8873
548@ = 1198.2629
630@ = 18.5938
467@ = -142.1028
549@ = 1250.022
631@ = 18.5869
468@ = -341.5205
550@ = 1265.6949
632@ = 22.1515
469@ = -440.031
551@ = 1439.6689
633@ = 32.334
470@ = -438.1716
552@ = 1639.673
634@ = 34.6319
471@ = -381.6811
553@ = 1831.026
635@ = 49.8567
472@ = -433.4627
554@ = 1883.9919
636@ = 59.8611
473@ = -465.4392
555@ = 1768.532
637@ = 71.9576
474@ = -464.5399
556@ = 1968.423
638@ = 81.2536
475@ = -411.0666
557@ = 2074.5959
639@ = 60.6433
476@ = -610.1716
558@ = 2050.887
640@ = 59.1798
477@ = -790.69
559@ = 2053.9099
641@ = 59.1798
set_lvar_float_to_lvar_float 478@ = 454@
set_lvar_float_to_lvar_float 560@ = 536@
set_lvar_float_to_lvar_float 642@ = 618@
250@ = 25
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 522
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_35318
454@ = -375.6397
536@ = 2204.217
618@ = 41.0938
455@ = -388.8497
537@ = 2258.0559
619@ = 40.9952
456@ = -410.6823
538@ = 2455.7471
620@ = 42.9124
457@ = -608.4162
539@ = 2447.1899
621@ = 71.7551
458@ = -715.864
540@ = 2536.594
622@ = 72.7592
459@ = -713.7043
541@ = 2697.4661
623@ = 53.2852
460@ = -912.5499
542@ = 2721.9871
624@ = 44.8627
461@ = -1112.755
543@ = 2698.6509
625@ = 44.875
462@ = -1238.171
544@ = 2679.8611
626@ = 45.9321
463@ = -1359.55
545@ = 2659.5569
627@ = 50.4683
464@ = -1545.7729
546@ = 2732.354
628@ = 61.3062
465@ = -1746.036
547@ = 2727.448
629@ = 59.0648
466@ = -1860.2469
548@ = 2563.043
630@ = 48.8929
467@ = -2002.1331
549@ = 2422.603
631@ = 32.9752
468@ = -1961.463
550@ = 2227.8911
632@ = 10.7077
469@ = -1807.124
551@ = 2100.1001
633@ = 7.4268
470@ = -1782.09
552@ = 1901.775
634@ = 14.7248
471@ = -1591.908
553@ = 1837.29
635@ = 24.8515
472@ = -1392.057
554@ = 1852.968
636@ = 35.4945
473@ = -1199.365
555@ = 1799.6379
637@ = 40.4346
474@ = -1008.306
556@ = 1855.604
638@ = 61.6784
475@ = -857.7028
557@ = 1874.014
639@ = 59.1758
476@ = -758.5721
558@ = 2048.2319
640@ = 59.1866
477@ = -563.1158
559@ = 2005.574
641@ = 59.2474
478@ = -468.9791
560@ = 2056.811
642@ = 59.875
479@ = -392.3245
561@ = 2154.448
643@ = 42.1847
set_lvar_float_to_lvar_float 480@ = 454@
set_lvar_float_to_lvar_float 562@ = 536@
set_lvar_float_to_lvar_float 644@ = 618@
250@ = 27
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 461
set_lvar_int_to_constant 717@ = 521
set_lvar_int_to_constant 718@ = 522
set_lvar_int_to_constant 719@ = 461
set_lvar_int_to_constant 720@ = 521
set_lvar_int_to_constant 721@ = 521
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_36240
454@ = 1446.426
536@ = 834.0658
618@ = 5.8125
455@ = 1747.259
537@ = 834.025
619@ = 8.6815
456@ = 2047.335
538@ = 834.1916
620@ = 5.7422
457@ = 2348.7219
539@ = 834.1481
621@ = 5.7422
458@ = 2637.9199
540@ = 915.6277
622@ = 5.7498
459@ = 2726.824
541@ = 1202.266
623@ = 5.7422
460@ = 2726.698
542@ = 1502.967
624@ = 5.7422
461@ = 2726.958
543@ = 1804.343
625@ = 5.7393
462@ = 2726.5791
544@ = 2125.7959
626@ = 5.7269
463@ = 2705.1721
545@ = 2405.5669
627@ = 5.7277
464@ = 2489.2671
546@ = 2614.2729
628@ = 4.1679
465@ = 2188.479
547@ = 2609.6289
629@ = 5.8164
466@ = 1898.309
548@ = 2529.155
630@ = 5.8125
467@ = 1603.524
549@ = 2473.083
631@ = 5.8516
468@ = 1305.181
550@ = 2439.1899
632@ = 5.7422
469@ = 1208.2321
551@ = 2154.5139
633@ = 5.7422
470@ = 1208.38
552@ = 1853.837
634@ = 5.7422
471@ = 1208.322
553@ = 1553.025
635@ = 5.7422
472@ = 1208.126
554@ = 1252.557
636@ = 5.7498
473@ = 1229.187
555@ = 952.9079
637@ = 5.8125
set_lvar_float_to_lvar_float 474@ = 454@
set_lvar_float_to_lvar_float 556@ = 536@
set_lvar_float_to_lvar_float 638@ = 618@
250@ = 21
256@ = 6
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 716@ = 451
set_lvar_int_to_constant 717@ = 562
set_lvar_int_to_constant 718@ = 415
set_lvar_int_to_constant 719@ = 411
set_lvar_int_to_constant 720@ = 562
set_lvar_int_to_constant 721@ = 451
gosub @CPRACE_47662
goto @CPRACE_46262

:CPRACE_36982
454@ = 1796.901
536@ = -2593.3291
618@ = 12.5982
455@ = 1596.915
537@ = -2592.123
619@ = 25.9969
456@ = 1425.429
538@ = -2549.1069
620@ = 37.8234
457@ = 1280.556
539@ = -2394.5859
621@ = 52.2127
458@ = 1296.165
540@ = -2194.1311
622@ = 72.3519
459@ = 1317.012
541@ = -1995.026
623@ = 77.657
460@ = 1385.2159
542@ = -1807.25
624@ = 64.6153
461@ = 1501.202
543@ = -1642.892
625@ = 78.2774
462@ = 1597.783
544@ = -1466.853
626@ = 87.9007
463@ = 1621.693
545@ = -1267.59
627@ = 84.5704
464@ = 1592.626
546@ = -1069.313
628@ = 87.8825
465@ = 1477.0959
547@ = -905.3071
629@ = 103.4455
466@ = 1388.884
548@ = -725.4239
630@ = 125.9394
467@ = 1320.715
549@ = -536.3066
631@ = 127.73
468@ = 1233.948
550@ = -356.5205
632@ = 103.7008
469@ = 1235.2209
551@ = -155.8231
633@ = 83.5
470@ = 1362.454
552@ = -2.0532
634@ = 70.1118
471@ = 1562.073
553@ = -27.0897
635@ = 64.6716
472@ = 1670.313
554@ = -196.5335
636@ = 77.4671
473@ = 1698.697
555@ = -394.7666
637@ = 84.513
474@ = 1841.239
556@ = -535.4985
638@ = 105.1396
475@ = 1999.777
557@ = -658.853
639@ = 125.3019
476@ = 2117.771
558@ = -819.4944
640@ = 144.8639
477@ = 2200.1809
559@ = -1001.27
641@ = 129.4889
478@ = 2265.8049
560@ = -1184.584
642@ = 83.0669
479@ = 2296.145
561@ = -1383.394
643@ = 62.1655
480@ = 2321.6079
562@ = -1582.03
644@ = 63.1144
481@ = 2400.4419
563@ = -1766.2271
645@ = 56.7954
482@ = 2525.2561
564@ = -1922.6801
646@ = 52.2529
483@ = 2593.7261
565@ = -2111.7339
647@ = 53.1139
484@ = 2575.0491
566@ = -2313.6311
648@ = 53.9683
485@ = 2455.397
567@ = -2476.6331
649@ = 54.8922
486@ = 2264.071
568@ = -2548.592
650@ = 55.7578
487@ = 2065.2849
569@ = -2571.635
651@ = 56.5966
488@ = 1862.502
570@ = -2582.0991
652@ = 54.6357
250@ = 35
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 476
set_lvar_int_to_constant 717@ = 476
set_lvar_int_to_constant 718@ = 476
set_lvar_int_to_constant 719@ = 476
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46262

:CPRACE_38120
454@ = -1582.67
536@ = -89.9953
618@ = 13.1683
455@ = -1439.187
537@ = 53.2109
619@ = 30.0
456@ = -1286.686
538@ = 185.0573
620@ = 32.9885
457@ = -1091.876
539@ = 137.3885
621@ = 46.7629
458@ = -1042.1689
540@ = -59.4087
622@ = 43.603
459@ = -1047.567
541@ = -259.0437
623@ = 23.8409
460@ = -1126.559
542@ = -445.5607
624@ = 28.0502
461@ = -1261.24
543@ = -598.8228
625@ = 37.4576
462@ = -1444.803
544@ = -690.5997
626@ = 52.7263
463@ = -1649.0081
545@ = -681.264
627@ = 60.8852
464@ = -1845.585
546@ = -636.4395
628@ = 61.1217
465@ = -2044.818
547@ = -658.4432
629@ = 71.2804
466@ = -2206.165
548@ = -778.5996
630@ = 85.9739
467@ = -2240.928
549@ = -976.7443
631@ = 75.2422
468@ = -2139.48
550@ = -1148.6169
632@ = 61.3795
469@ = -2028.634
551@ = -1315.712
633@ = 40.653
470@ = -1884.623
552@ = -1459.337
634@ = 37.0927
471@ = -1725.283
553@ = -1581.193
635@ = 51.3609
472@ = -1548.501
554@ = -1676.223
636@ = 63.2502
473@ = -1368.613
555@ = -1769.197
637@ = 52.099
474@ = -1327.042
556@ = -1980.8831
638@ = 35.4768
475@ = -1462.6591
557@ = -2110.3401
639@ = 22.6174
476@ = -1551.068
558@ = -2287.2759
640@ = 56.7071
477@ = -1624.645
559@ = -2464.302
641@ = 115.5442
478@ = -1735.012
560@ = -2633.092
642@ = 101.7228
479@ = -1673.618
561@ = -2817.3201
643@ = 50.492
480@ = -1529.3979
562@ = -2958.864
644@ = 35.2493
481@ = -1331.87
563@ = -3016.8149
645@ = 36.5563
482@ = -1140.517
564@ = -2957.8379
646@ = 35.4633
483@ = -1133.483
565@ = -2757.115
647@ = 30.2641
484@ = -1219.593
566@ = -2575.6001
648@ = 35.8018
485@ = -1227.193
567@ = -2375.0991
649@ = 31.7209
486@ = -1172.746
568@ = -2182.804
650@ = 45.2393
487@ = -1144.312
569@ = -1988.0179
651@ = 83.1497
488@ = -1021.386
570@ = -1832.821
652@ = 115.2484
489@ = -943.5054
571@ = -1647.9919
653@ = 133.3276
490@ = -900.7032
572@ = -1450.585
654@ = 142.0757
491@ = -884.4996
573@ = -1249.642
655@ = 148.1781
492@ = -880.2889
574@ = -1048.99
656@ = 158.8745
493@ = -936.6008
575@ = -855.3414
657@ = 160.157
494@ = -972.9082
576@ = -660.9503
658@ = 116.3043
495@ = -980.3859
577@ = -464.2646
659@ = 79.1644
496@ = -818.388
578@ = -348.3954
660@ = 51.4388
497@ = -617.8265
579@ = -330.2328
661@ = 37.1987
498@ = -415.4925
580@ = -339.8519
662@ = 28.2761
499@ = -248.3391
581@ = -451.8987
663@ = 18.5819
500@ = -192.9961
582@ = -643.989
664@ = 8.889
501@ = -128.7125
583@ = -835.6478
665@ = 24.9195
502@ = 63.3296
584@ = -892.0873
666@ = 40.4431
503@ = 236.1952
585@ = -791.0125
667@ = 46.7307
504@ = 298.5167
586@ = -600.2706
668@ = 53.5437
505@ = 326.4258
587@ = -400.9587
669@ = 50.4641
506@ = 308.5928
588@ = -201.9229
670@ = 40.3219
507@ = 244.4628
589@ = -8.211
671@ = 31.0744
508@ = 129.2121
590@ = 155.3022
672@ = 27.6231
509@ = -37.7018
591@ = 268.3331
673@ = 26.3544
510@ = -224.3873
592@ = 341.0904
674@ = 28.1078
511@ = -420.1607
593@ = 382.1896
675@ = 29.8681
512@ = -622.4773
594@ = 381.915
676@ = 31.6354
513@ = -822.824
595@ = 370.0051
677@ = 33.4142
514@ = -1012.349
596@ = 300.3856
678@ = 35.7468
515@ = -1193.1
597@ = 214.7394
679@ = 38.0629
250@ = 62
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 513
set_lvar_int_to_constant 717@ = 513
set_lvar_int_to_constant 718@ = 513
set_lvar_int_to_constant 719@ = 513
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46262

:CPRACE_40068
454@ = 366.982
536@ = 2502.595
618@ = 15.5571
455@ = 116.652
537@ = 2502.9021
619@ = 47.5682
456@ = -133.6242
538@ = 2524.3921
620@ = 55.1281
457@ = -377.8474
539@ = 2588.0681
621@ = 67.6866
458@ = -604.1302
540@ = 2694.6389
622@ = 84.7931
459@ = -838.685
541@ = 2779.9009
623@ = 69.2036
460@ = -1045.629
542@ = 2639.2791
624@ = 69.0984
461@ = -984.3267
543@ = 2395.5081
625@ = 64.5187
462@ = -873.4733
544@ = 2171.186
626@ = 64.5549
463@ = -770.134
545@ = 1943.248
627@ = 70.927
464@ = -653.4092
546@ = 1720.47
628@ = 47.6015
465@ = -578.5898
547@ = 1481.972
629@ = 21.5084
466@ = -521.8337
548@ = 1238.437
630@ = 11.6736
467@ = -469.9443
549@ = 995.721
631@ = 51.4066
468@ = -525.42
550@ = 750.7462
632@ = 44.2215
469@ = -664.0441
551@ = 541.0659
633@ = 15.9243
470@ = -914.7918
552@ = 536.2426
634@ = 11.804
471@ = -1131.918
553@ = 661.8135
635@ = 13.6564
472@ = -1309.833
554@ = 839.316
636@ = 10.7039
473@ = -1449.3719
555@ = 1045.777
637@ = 31.9947
474@ = -1603.1219
556@ = 1243.21
638@ = 38.6648
475@ = -1813.101
557@ = 1379.4399
639@ = 28.4044
476@ = -2061.489
558@ = 1418.549
640@ = 22.0099
477@ = -2312.469
559@ = 1430.699
641@ = 42.3744
478@ = -2522.7451
560@ = 1564.194
642@ = 75.9034
479@ = -2689.238
561@ = 1753.745
643@ = 99.5865
480@ = -2759.3711
562@ = 1994.265
644@ = 110.8744
481@ = -2682.772
563@ = 2233.0969
645@ = 113.4608
482@ = -2493.907
564@ = 2397.5061
646@ = 102.0156
483@ = -2245.1089
565@ = 2418.7729
647@ = 83.5877
484@ = -1994.605
566@ = 2407.9419
648@ = 87.4376
485@ = -1751.4709
567@ = 2349.74
649@ = 90.2881
486@ = -1535.099
568@ = 2217.656
650@ = 75.7349
487@ = -1305.302
569@ = 2118.7161
651@ = 74.7752
488@ = -1064.807
570@ = 2187.7681
652@ = 66.2415
489@ = -814.3556
571@ = 2195.8721
653@ = 56.1521
490@ = -563.2742
572@ = 2203.3301
654@ = 60.9129
491@ = -313.3741
573@ = 2229.26
655@ = 73.2015
492@ = -66.3647
574@ = 2178.082
656@ = 71.9294
493@ = 186.4198
575@ = 2211.2129
657@ = 71.6732
494@ = 390.8383
576@ = 2356.5139
658@ = 65.1402
495@ = 639.1594
577@ = 2385.26
659@ = 47.4816
496@ = 857.994
578@ = 2510.157
660@ = 50.2583
497@ = 929.9869
579@ = 2748.3521
661@ = 77.8011
498@ = 760.5828
580@ = 2935.73
662@ = 91.5673
499@ = 512.0109
581@ = 2901.74
663@ = 93.8596
500@ = 309.843
582@ = 2752.8921
664@ = 93.5908
501@ = 153.0242
583@ = 2560.321
665@ = 64.3547
502@ = 18.2657
584@ = 2347.9041
666@ = 66.4087
503@ = -99.4455
585@ = 2126.343
667@ = 75.4819
504@ = -257.6325
586@ = 1931.184
668@ = 75.4922
505@ = -392.7389
587@ = 1720.594
669@ = 94.1061
506@ = -499.7809
588@ = 1492.545
670@ = 58.172
507@ = -687.7847
589@ = 1327.026
671@ = 45.0028
508@ = -881.8704
590@ = 1169.769
672@ = 68.6343
509@ = -1075.92
591@ = 1008.155
673@ = 61.9286
510@ = -1272.957
592@ = 852.6403
674@ = 61.1137
511@ = -1457.5389
593@ = 680.1183
675@ = 69.2464
512@ = -1634.6479
594@ = 496.5454
676@ = 79.7593
513@ = -1839.814
595@ = 342.0907
677@ = 77.0974
514@ = -2063.729
596@ = 218.3637
678@ = 74.2748
515@ = -2305.2571
597@ = 145.857
679@ = 72.5908
516@ = -2554.304
598@ = 126.6046
680@ = 96.9355
517@ = -2745.509
599@ = -33.5993
681@ = 80.174
518@ = -2863.9419
600@ = -255.546
682@ = 62.7643
519@ = -2912.281
601@ = -500.7706
683@ = 51.8291
520@ = -2947.3879
602@ = -759.2774
684@ = 44.0041
521@ = -2962.4231
603@ = -1011.333
685@ = 42.2517
522@ = -2955.5061
604@ = -1276.0229
686@ = 45.302
523@ = -3000.9041
605@ = -1528.563
687@ = 51.004
250@ = 70
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 520
set_lvar_int_to_constant 717@ = 520
set_lvar_int_to_constant 718@ = 520
set_lvar_int_to_constant 719@ = 520
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46262

:CPRACE_42256
454@ = 381.9952
536@ = 2542.0879
618@ = 15.6876
455@ = 304.6997
537@ = 2547.0569
619@ = 37.975
456@ = -97.4654
538@ = 2554.8411
620@ = 32.4746
457@ = -102.6455
539@ = 2699.2361
621@ = 63.5945
458@ = -221.948
540@ = 2718.0801
622@ = 82.385
459@ = -418.3279
541@ = 2691.0811
623@ = 78.5077
460@ = -392.2611
542@ = 2492.1931
624@ = 84.257
461@ = -360.1944
543@ = 2294.6379
625@ = 79.344
462@ = -238.1485
544@ = 2230.0071
626@ = 81.9684
463@ = -287.1143
545@ = 2091.03
627@ = 70.2663
464@ = -481.0875
546@ = 2051.74
628@ = 76.2466
465@ = -665.1192
547@ = 2131.252
629@ = 77.2696
466@ = -845.4529
548@ = 2218.8611
630@ = 80.0327
467@ = -1044.866
549@ = 2207.615
631@ = 67.0078
468@ = -1234.234
550@ = 2142.3931
632@ = 66.1648
469@ = -1424.931
551@ = 2205.699
633@ = 70.8862
470@ = -1571.2371
552@ = 2247.7661
634@ = 65.1073
471@ = -1745.637
553@ = 2292.511
635@ = 49.3695
472@ = -1945.6021
554@ = 2285.9131
636@ = 44.2433
473@ = -1953.881
555@ = 2484.877
637@ = 63.2602
474@ = -1895.095
556@ = 2633.0339
638@ = 74.4549
475@ = -1706.873
557@ = 2703.2319
639@ = 72.8798
476@ = -1505.724
558@ = 2721.0339
640@ = 69.9706
477@ = -1305.595
559@ = 2708.321
641@ = 66.4619
478@ = -1105.89
560@ = 2731.6111
642@ = 62.9933
479@ = -905.1519
561@ = 2728.8301
643@ = 64.0124
480@ = -704.1036
562@ = 2733.8979
644@ = 66.2347
250@ = 27
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 487
set_lvar_int_to_constant 717@ = 487
set_lvar_int_to_constant 718@ = 487
set_lvar_int_to_constant 719@ = 487
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46262

:CPRACE_43154
454@ = -1962.871
536@ = 628.0812
618@ = 150.2844
455@ = -1848.3409
537@ = 531.9294
619@ = 86.1743
456@ = -1827.913
538@ = 399.3668
620@ = 29.91
457@ = -1751.361
539@ = 326.9781
621@ = 25.4958
458@ = -1647.958
540@ = 412.8291
622@ = 26.6578
459@ = -1560.5129
541@ = 532.7433
623@ = 18.6913
460@ = -1572.197
542@ = 638.3369
624@ = 25.3806
461@ = -1700.5551
543@ = 706.7762
625@ = 53.3757
462@ = -1715.507
544@ = 777.6501
626@ = 45.9312
463@ = -1715.978
545@ = 978.3165
627@ = 51.989
464@ = -1714.958
546@ = 1178.562
628@ = 54.9734
465@ = -1912.922
547@ = 1146.255
629@ = 56.3473
466@ = -2003.248
548@ = 982.3228
630@ = 58.819
467@ = -2006.168
549@ = 810.2207
631@ = 54.1756
468@ = -1959.234
550@ = 713.3063
632@ = 75.2571
469@ = -1793.007
551@ = 730.7606
633@ = 44.6388
470@ = -1593.731
552@ = 732.4928
634@ = 20.5721
471@ = -1533.424
553@ = 923.6081
635@ = 29.4493
472@ = -1489.172
554@ = 1118.7371
636@ = 17.2211
473@ = -1605.045
555@ = 1284.0439
637@ = 27.5543
474@ = -1787.921
556@ = 1365.8101
638@ = 32.2595
475@ = -1986.429
557@ = 1319.338
639@ = 23.0384
476@ = -2185.9971
558@ = 1345.1121
640@ = 19.4206
477@ = -2384.5991
559@ = 1380.588
641@ = 17.9485
478@ = -2537.759
560@ = 1369.641
642@ = 23.8562
479@ = -2719.3149
561@ = 1345.675
643@ = 32.2039
480@ = -2875.1421
562@ = 1245.782
644@ = 20.7763
250@ = 27
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 488
set_lvar_int_to_constant 717@ = 488
set_lvar_int_to_constant 718@ = 488
set_lvar_int_to_constant 719@ = 488
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46262

:CPRACE_44052
454@ = 1765.609
536@ = -2285.9109
618@ = 25.9621
455@ = 1764.2939
537@ = -2084.3711
619@ = 26.0431
456@ = 1649.402
538@ = -1920.231
620@ = 40.6173
457@ = 1552.024
539@ = -1745.2729
621@ = 30.0462
458@ = 1419.031
540@ = -1595.618
622@ = 25.4285
459@ = 1402.089
541@ = -1441.6219
623@ = 18.2271
460@ = 1545.335
542@ = -1431.194
624@ = 36.437
461@ = 1653.446
543@ = -1305.8409
625@ = 49.6078
462@ = 1786.094
544@ = -1276.766
626@ = 22.6321
463@ = 1901.04
545@ = -1221.949
627@ = 34.699
464@ = 1848.224
546@ = -1097.652
628@ = 46.0898
465@ = 1649.377
547@ = -1085.296
629@ = 36.7768
466@ = 1487.205
548@ = -970.0334
630@ = 60.1281
467@ = 1304.22
549@ = -1038.929
631@ = 39.8547
468@ = 1215.798
550@ = -1218.8621
632@ = 27.923
469@ = 1302.613
551@ = -1399.127
633@ = 26.3812
470@ = 1437.015
552@ = -1321.431
634@ = 45.396
471@ = 1609.09
553@ = -1299.4969
635@ = 25.0714
472@ = 1791.421
554@ = -1381.364
636@ = 35.17
473@ = 1827.021
555@ = -1567.2791
637@ = 22.9243
474@ = 1628.196
556@ = -1600.6
638@ = 38.8226
475@ = 1450.9091
557@ = -1694.839
639@ = 25.2192
476@ = 1389.812
558@ = -1852.984
640@ = 24.997
477@ = 1206.609
559@ = -1933.723
641@ = 57.1028
478@ = 1053.4611
560@ = -2063.9331
642@ = 70.7254
479@ = 1048.698
561@ = -2265.5029
643@ = 47.2394
480@ = 1224.402
562@ = -2359.4939
644@ = 28.5888
481@ = 1425.61
563@ = -2360.0471
645@ = 28.3338
250@ = 28
256@ = 1
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 716@ = 425
set_lvar_int_to_constant 717@ = 425
set_lvar_int_to_constant 718@ = 425
set_lvar_int_to_constant 719@ = 425
set_lvar_int_to_constant 205@ = 3
goto @CPRACE_46262

:CPRACE_44980
454@ = -1398.355
536@ = -197.2079
618@ = 1043.119
455@ = -1398.988
537@ = -188.7892
619@ = 1043.202
456@ = -1465.939
538@ = -134.0836
620@ = 1046.011
457@ = -1530.1379
539@ = -193.3988
621@ = 1050.756
458@ = -1415.686
540@ = -274.1765
622@ = 1051.149
459@ = -1305.178
541@ = -143.5283
623@ = 1050.125
460@ = -1302.774
542@ = -268.6358
624@ = 1048.4871
set_lvar_float_to_lvar_float 461@ = 454@
set_lvar_float_to_lvar_float 543@ = 536@
set_lvar_float_to_lvar_float 625@ = 618@
732@ = -1406.327
733@ = -265.7914
734@ = 1042.656
735@ = 346.3297
250@ = 8
221@ = 7
224@ = 12
256@ = 12
set_lvar_int_to_constant 700@ = 7
set_lvar_int_to_constant 701@ = 7
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 7
set_lvar_int_to_constant 704@ = 7
set_lvar_int_to_constant 705@ = 7
set_lvar_int_to_constant 706@ = 7
set_lvar_int_to_constant 707@ = 7
set_lvar_int_to_constant 708@ = 7
set_lvar_int_to_constant 709@ = 7
set_lvar_int_to_constant 710@ = 7
set_lvar_int_to_constant 711@ = 7
set_lvar_int_to_constant 712@ = 7
set_lvar_int_to_constant 713@ = 7
set_lvar_int_to_constant 714@ = 7
set_lvar_int_to_constant 715@ = 7
set_lvar_int_to_constant 716@ = 503
set_lvar_int_to_constant 717@ = 502
set_lvar_int_to_constant 718@ = 494
set_lvar_int_to_constant 719@ = 503
set_lvar_int_to_constant 720@ = 502
set_lvar_int_to_constant 721@ = 494
set_lvar_int_to_constant 722@ = 502
set_lvar_int_to_constant 723@ = 494
set_lvar_int_to_constant 724@ = 503
set_lvar_int_to_constant 725@ = 494
set_lvar_int_to_constant 726@ = 503
set_lvar_int_to_constant 727@ = 503
set_lvar_int_to_constant 728@ = 494
set_lvar_int_to_constant 729@ = 502
set_lvar_int_to_constant 730@ = 494
set_lvar_int_to_constant 731@ = 502
goto @CPRACE_46262

:CPRACE_45529
454@ = -1354.358
536@ = -590.5628
618@ = 1055.453
455@ = -1431.177
537@ = -588.3124
619@ = 1054.512
456@ = -1516.874
538@ = -635.0942
620@ = 1050.275
457@ = -1500.678
539@ = -719.0175
621@ = 1051.6429
458@ = -1387.502
540@ = -743.1501
622@ = 1051.016
459@ = -1295.54
541@ = -705.3506
623@ = 1055.255
460@ = -1365.312
542@ = -666.0998
624@ = 1055.058
461@ = -1486.5
543@ = -636.4586
625@ = 1052.225
462@ = -1447.86
544@ = -690.3426
626@ = 1052.834
463@ = -1389.908
545@ = -720.9943
627@ = 1055.119
464@ = -1370.6851
546@ = -687.8977
628@ = 1053.783
465@ = -1399.136
547@ = -635.8359
629@ = 1051.043
466@ = -1308.639
548@ = -649.4201
630@ = 1054.972
set_lvar_float_to_lvar_float 467@ = 454@
set_lvar_float_to_lvar_float 549@ = 536@
set_lvar_float_to_lvar_float 631@ = 618@
732@ = -1344.163
733@ = -598.8836
734@ = 1051.829
735@ = 103.3822
250@ = 14
221@ = 4
224@ = 6
256@ = 12
set_lvar_int_to_constant 700@ = 100
set_lvar_int_to_constant 701@ = 133
set_lvar_int_to_constant 702@ = 7
set_lvar_int_to_constant 703@ = 181
set_lvar_int_to_constant 704@ = 60
set_lvar_int_to_constant 705@ = 34
set_lvar_int_to_constant 706@ = 198
set_lvar_int_to_constant 707@ = 250
set_lvar_int_to_constant 708@ = 7
set_lvar_int_to_constant 709@ = 100
set_lvar_int_to_constant 710@ = 34
set_lvar_int_to_constant 711@ = 7
set_lvar_int_to_constant 712@ = 7
set_lvar_int_to_constant 713@ = 7
set_lvar_int_to_constant 714@ = 7
set_lvar_int_to_constant 715@ = 7
set_lvar_int_to_constant 716@ = 468
set_lvar_int_to_constant 717@ = 468
set_lvar_int_to_constant 718@ = 468
set_lvar_int_to_constant 719@ = 468
set_lvar_int_to_constant 720@ = 468
set_lvar_int_to_constant 721@ = 468
set_lvar_int_to_constant 722@ = 468
set_lvar_int_to_constant 723@ = 468
set_lvar_int_to_constant 724@ = 468
set_lvar_int_to_constant 725@ = 468
set_lvar_int_to_constant 726@ = 468
set_lvar_int_to_constant 727@ = 468
set_lvar_int_to_constant 728@ = 468
set_lvar_int_to_constant 729@ = 468
set_lvar_int_to_constant 730@ = 468
set_lvar_int_to_constant 731@ = 468
goto @CPRACE_46262

:CPRACE_46262
return 

:CPRACE_46264
if 
  736@ == 0
goto_if_false @CPRACE_46337
if 
  locate_char_any_means_3d $scplayer {x} -148.2144 {y} 87.3396 {z} 2.1234 {xRadius} 280.0 {yRadius} 280.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_46337
736@ = 1

:CPRACE_46337
if 
  736@ == 1
goto_if_false @CPRACE_46371
736@ = 2
request_model 532
request_model 82

:CPRACE_46371
if 
  736@ == 2
goto_if_false @CPRACE_46525
if and
  has_model_loaded 532
  has_model_loaded 82
goto_if_false @CPRACE_46525
736@ = 3
738@ = create_car 532 {x} -128.2144 {y} 80.3396 {z} 2.1234
set_car_heading 738@ {heading} 250.5799
740@ = create_char_inside_car 738@ {pedType} PedType.CivMale {modelId} 82
mark_model_as_no_longer_needed 532
mark_model_as_no_longer_needed 82
flush_route 
extend_route -95.8304 {y} 68.27 {z} 3.4764
extend_route -77.3806 {y} 70.3096 {z} 3.5478
task_drive_point_route_advanced 740@ {vehicle} 738@ {speed} 7.5 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:CPRACE_46525
if 
  736@ == 3
goto_if_false @CPRACE_46621
if 
  not is_char_dead 740@
goto_if_false @CPRACE_46621
742@ = get_script_task_status 740@ {taskId} 2023
if 
  is_int_lvar_equal_to_constant 742@ == 7
goto_if_false @CPRACE_46621
736@ = 4
if 
  not is_car_dead 738@
goto_if_false @CPRACE_46616
mark_car_as_no_longer_needed 738@

:CPRACE_46616
mark_char_as_no_longer_needed 740@

:CPRACE_46621
if 
  737@ == 0
goto_if_false @CPRACE_46694
if 
  locate_char_any_means_3d $scplayer {x} -542.1076 {y} 230.7356 {z} 11.6475 {xRadius} 320.0 {yRadius} 320.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CPRACE_46694
737@ = 1

:CPRACE_46694
if 
  737@ == 1
goto_if_false @CPRACE_46728
737@ = 2
request_model 478
request_model 82

:CPRACE_46728
if 
  737@ == 2
goto_if_false @CPRACE_46861
if and
  has_model_loaded 478
  has_model_loaded 82
goto_if_false @CPRACE_46861
737@ = 3
739@ = create_car 478 {x} -542.1076 {y} 230.7356 {z} 11.6475
set_car_heading 739@ {heading} 262.8685
741@ = create_char_inside_car 739@ {pedType} PedType.CivMale {modelId} 82
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 82
task_car_drive_to_coord 741@ {vehicle} 739@ {x} -270.5629 {y} 199.0073 {z} 6.99 {speed} 11.5 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CPRACE_46861
if 
  737@ == 3
goto_if_false @CPRACE_46972
if 
  not is_char_dead 741@
goto_if_false @CPRACE_46972
742@ = get_script_task_status 741@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 742@ == 7
goto_if_false @CPRACE_46972
737@ = 4
if 
  not is_car_dead 739@
goto_if_false @CPRACE_46967
task_car_drive_wander 741@ {vehicle} 739@ {speed} 11.5 {drivingMode} DrivingMode.AvoidCars
mark_car_as_no_longer_needed 739@

:CPRACE_46967
mark_char_as_no_longer_needed 741@

:CPRACE_46972
return 

:CPRACE_46974
if 
  6 > $race_selection
goto_if_false @CPRACE_47104
if 
  52@ <> 1
goto_if_false @CPRACE_47104
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE1'
load_sprite 1 {spriteName} "RACE00"
load_sprite 2 {spriteName} "RACE01"
load_sprite 3 {spriteName} "RACE02"
load_sprite 4 {spriteName} "RACE03"
load_sprite 5 {spriteName} "RACE04"
load_sprite 6 {spriteName} "RACE05"
52@ = 1
return 

:CPRACE_47104
if and
  $race_selection > 5
  12 > $race_selection
goto_if_false @CPRACE_47241
if 
  52@ <> 2
goto_if_false @CPRACE_47241
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE2'
load_sprite 7 {spriteName} "RACE06"
load_sprite 8 {spriteName} "RACE07"
load_sprite 9 {spriteName} "RACE08"
load_sprite 10 {spriteName} "RACE09"
load_sprite 11 {spriteName} "RACE10"
load_sprite 12 {spriteName} "RACE11"
52@ = 2
return 

:CPRACE_47241
if and
  $race_selection > 11
  18 > $race_selection
goto_if_false @CPRACE_47378
if 
  52@ <> 3
goto_if_false @CPRACE_47378
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE3'
load_sprite 13 {spriteName} "RACE12"
load_sprite 14 {spriteName} "RACE13"
load_sprite 15 {spriteName} "RACE14"
load_sprite 16 {spriteName} "RACE15"
load_sprite 17 {spriteName} "RACE16"
load_sprite 18 {spriteName} "RACE17"
52@ = 3
return 

:CPRACE_47378
if and
  $race_selection > 17
  24 > $race_selection
goto_if_false @CPRACE_47515
if 
  52@ <> 4
goto_if_false @CPRACE_47515
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE4'
load_sprite 19 {spriteName} "RACE18"
load_sprite 20 {spriteName} "RACE19"
load_sprite 21 {spriteName} "RACE20"
load_sprite 22 {spriteName} "RACE21"
load_sprite 23 {spriteName} "RACE22"
load_sprite 24 {spriteName} "RACE23"
52@ = 4
return 

:CPRACE_47515
if and
  $race_selection > 23
  30 > $race_selection
goto_if_false @CPRACE_47592
if 
  52@ <> 5
goto_if_false @CPRACE_47592
remove_texture_dictionary 
load_texture_dictionary 'LD_RCE5'
load_sprite 25 {spriteName} "RACE24"
52@ = 5
return 

:CPRACE_47592
return 

:CPRACE_47594
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:CPRACE_47662
254@ = 0
set_lvar_int_to_lvar_int 255@ = 256@
255@ -= 1

:CPRACE_47684
if 
  is_int_lvar_greater_than_int_lvar 255@ > 254@
goto_if_false @CPRACE_48583
253@ = generate_random_int_in_range 0 {max} 32
switch_start 253@ {numCases} 32 {hasDefaultCase} 0 {defaultLabel} @CPRACE_48569 {caseNum1} 0 {caseLabel1} @CPRACE_47970 {caseNum2} 1 {caseLabel2} @CPRACE_47988 {caseNum3} 2 {caseLabel3} @CPRACE_48006 {caseNum4} 3 {caseLabel4} @CPRACE_48024 {caseNum5} 4 {caseLabel5} @CPRACE_48042 {caseNum6} 5 {caseLabel6} @CPRACE_48060 {caseNum7} 6 {caseLabel7} @CPRACE_48078
switch_continued 7 {caseLabel1} @CPRACE_48096 {caseNum2} 8 {caseLabel2} @CPRACE_48114 {caseNum3} 9 {caseLabel3} @CPRACE_48132 {caseNum4} 10 {caseLabel4} @CPRACE_48151 {caseNum5} 11 {caseLabel5} @CPRACE_48170 {caseNum6} 12 {caseLabel6} @CPRACE_48189 {caseNum7} 13 {caseLabel7} @CPRACE_48208 {caseNum8} 14 {caseLabel8} @CPRACE_48227 {caseNum9} 15 {caseLabel9} @CPRACE_48246
switch_continued 16 {caseLabel1} @CPRACE_48265 {caseNum2} 17 {caseLabel2} @CPRACE_48284 {caseNum3} 18 {caseLabel3} @CPRACE_48303 {caseNum4} 19 {caseLabel4} @CPRACE_48322 {caseNum5} 20 {caseLabel5} @CPRACE_48341 {caseNum6} 21 {caseLabel6} @CPRACE_48360 {caseNum7} 22 {caseLabel7} @CPRACE_48379 {caseNum8} 23 {caseLabel8} @CPRACE_48398 {caseNum9} 24 {caseLabel9} @CPRACE_48417
switch_continued 25 {caseLabel1} @CPRACE_48436 {caseNum2} 26 {caseLabel2} @CPRACE_48455 {caseNum3} 27 {caseLabel3} @CPRACE_48474 {caseNum4} 28 {caseLabel4} @CPRACE_48493 {caseNum5} 29 {caseLabel5} @CPRACE_48512 {caseNum6} 30 {caseLabel6} @CPRACE_48531 {caseNum7} 31 {caseLabel7} @CPRACE_48550 {caseNum8} -1 {caseLabel8} @CPRACE_48569 {caseNum9} -1 {caseLabel9} @CPRACE_48569

:CPRACE_47970
set_lvar_int_to_constant 700@(254@,16i) = 34
goto @CPRACE_48569

:CPRACE_47988
set_lvar_int_to_constant 700@(254@,16i) = 60
goto @CPRACE_48569

:CPRACE_48006
set_lvar_int_to_constant 700@(254@,16i) = 69
goto @CPRACE_48569

:CPRACE_48024
set_lvar_int_to_constant 700@(254@,16i) = 96
goto @CPRACE_48569

:CPRACE_48042
set_lvar_int_to_constant 700@(254@,16i) = 100
goto @CPRACE_48569

:CPRACE_48060
set_lvar_int_to_constant 700@(254@,16i) = 101
goto @CPRACE_48569

:CPRACE_48078
set_lvar_int_to_constant 700@(254@,16i) = 112
goto @CPRACE_48569

:CPRACE_48096
set_lvar_int_to_constant 700@(254@,16i) = 122
goto @CPRACE_48569

:CPRACE_48114
set_lvar_int_to_constant 700@(254@,16i) = 125
goto @CPRACE_48569

:CPRACE_48132
set_lvar_int_to_constant 700@(254@,16i) = 128
goto @CPRACE_48569

:CPRACE_48151
set_lvar_int_to_constant 700@(254@,16i) = 131
goto @CPRACE_48569

:CPRACE_48170
set_lvar_int_to_constant 700@(254@,16i) = 133
goto @CPRACE_48569

:CPRACE_48189
set_lvar_int_to_constant 700@(254@,16i) = 140
goto @CPRACE_48569

:CPRACE_48208
set_lvar_int_to_constant 700@(254@,16i) = 142
goto @CPRACE_48569

:CPRACE_48227
set_lvar_int_to_constant 700@(254@,16i) = 151
goto @CPRACE_48569

:CPRACE_48246
set_lvar_int_to_constant 700@(254@,16i) = 157
goto @CPRACE_48569

:CPRACE_48265
set_lvar_int_to_constant 700@(254@,16i) = 170
goto @CPRACE_48569

:CPRACE_48284
set_lvar_int_to_constant 700@(254@,16i) = 181
goto @CPRACE_48569

:CPRACE_48303
set_lvar_int_to_constant 700@(254@,16i) = 183
goto @CPRACE_48569

:CPRACE_48322
set_lvar_int_to_constant 700@(254@,16i) = 186
goto @CPRACE_48569

:CPRACE_48341
set_lvar_int_to_constant 700@(254@,16i) = 192
goto @CPRACE_48569

:CPRACE_48360
set_lvar_int_to_constant 700@(254@,16i) = 198
goto @CPRACE_48569

:CPRACE_48379
set_lvar_int_to_constant 700@(254@,16i) = 201
goto @CPRACE_48569

:CPRACE_48398
set_lvar_int_to_constant 700@(254@,16i) = 206
goto @CPRACE_48569

:CPRACE_48417
set_lvar_int_to_constant 700@(254@,16i) = 211
goto @CPRACE_48569

:CPRACE_48436
set_lvar_int_to_constant 700@(254@,16i) = 217
goto @CPRACE_48569

:CPRACE_48455
set_lvar_int_to_constant 700@(254@,16i) = 220
goto @CPRACE_48569

:CPRACE_48474
set_lvar_int_to_constant 700@(254@,16i) = 223
goto @CPRACE_48569

:CPRACE_48493
set_lvar_int_to_constant 700@(254@,16i) = 233
goto @CPRACE_48569

:CPRACE_48512
set_lvar_int_to_constant 700@(254@,16i) = 246
goto @CPRACE_48569

:CPRACE_48531
set_lvar_int_to_constant 700@(254@,16i) = 248
goto @CPRACE_48569

:CPRACE_48550
set_lvar_int_to_constant 700@(254@,16i) = 250
goto @CPRACE_48569

:CPRACE_48569
254@ += 1
goto @CPRACE_47684

:CPRACE_48583
return 

:CPRACE_48585
if or
  450@ == 1
  256@ == 1
goto_if_false @CPRACE_50543
play_mission_passed_tune 1
switch_start $race_selection {numCases} 27 {hasDefaultCase} 0 {defaultLabel} @CPRACE_50543 {caseNum1} 0 {caseLabel1} @CPRACE_48872 {caseNum2} 1 {caseLabel2} @CPRACE_48960 {caseNum3} 2 {caseLabel3} @CPRACE_49019 {caseNum4} 3 {caseLabel4} @CPRACE_49078 {caseNum5} 4 {caseLabel5} @CPRACE_49137 {caseNum6} 5 {caseLabel6} @CPRACE_49196 {caseNum7} 6 {caseLabel7} @CPRACE_49255
switch_continued 7 {caseLabel1} @CPRACE_49314 {caseNum2} 8 {caseLabel2} @CPRACE_49388 {caseNum3} 9 {caseLabel3} @CPRACE_49440 {caseNum4} 10 {caseLabel4} @CPRACE_49499 {caseNum5} 11 {caseLabel5} @CPRACE_49558 {caseNum6} 12 {caseLabel6} @CPRACE_49617 {caseNum7} 13 {caseLabel7} @CPRACE_49676 {caseNum8} 14 {caseLabel8} @CPRACE_49735 {caseNum9} 15 {caseLabel9} @CPRACE_49794
switch_continued 16 {caseLabel1} @CPRACE_49853 {caseNum2} 17 {caseLabel2} @CPRACE_49912 {caseNum3} 18 {caseLabel3} @CPRACE_49971 {caseNum4} 19 {caseLabel4} @CPRACE_50030 {caseNum5} 20 {caseLabel5} @CPRACE_50089 {caseNum6} 21 {caseLabel6} @CPRACE_50148 {caseNum7} 22 {caseLabel7} @CPRACE_50207 {caseNum8} 23 {caseLabel8} @CPRACE_50266 {caseNum9} 24 {caseLabel9} @CPRACE_50325
switch_continued 25 {caseLabel1} @CPRACE_50384 {caseNum2} 26 {caseLabel2} @CPRACE_50467 {caseNum3} -1 {caseLabel3} @CPRACE_50543 {caseNum4} -1 {caseLabel4} @CPRACE_50543 {caseNum5} -1 {caseLabel5} @CPRACE_50543 {caseNum6} -1 {caseLabel6} @CPRACE_50543 {caseNum7} -1 {caseLabel7} @CPRACE_50543 {caseNum8} -1 {caseLabel8} @CPRACE_50543 {caseNum9} -1 {caseLabel9} @CPRACE_50543

:CPRACE_48872
if 
  $got_race_made_progress[0] == 0
goto_if_false @CPRACE_48953
player_made_progress 1
$total_races_completed += 1
if 
  $show_race_selection == 0
goto_if_false @CPRACE_48937
register_mission_passed 'CESAR_1'
goto @CPRACE_48946

:CPRACE_48937
register_mission_passed 85@($race_selection,30s)

:CPRACE_48946
$got_race_made_progress[0] = 1

:CPRACE_48953
goto @CPRACE_50543

:CPRACE_48960
if 
  $got_race_made_progress[1] == 0
goto_if_false @CPRACE_49012
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[1] = 1

:CPRACE_49012
goto @CPRACE_50543

:CPRACE_49019
if 
  $got_race_made_progress[2] == 0
goto_if_false @CPRACE_49071
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[2] = 1

:CPRACE_49071
goto @CPRACE_50543

:CPRACE_49078
if 
  $got_race_made_progress[3] == 0
goto_if_false @CPRACE_49130
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[3] = 1

:CPRACE_49130
goto @CPRACE_50543

:CPRACE_49137
if 
  $got_race_made_progress[4] == 0
goto_if_false @CPRACE_49189
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[4] = 1

:CPRACE_49189
goto @CPRACE_50543

:CPRACE_49196
if 
  $got_race_made_progress[5] == 0
goto_if_false @CPRACE_49248
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[5] = 1

:CPRACE_49248
goto @CPRACE_50543

:CPRACE_49255
if 
  $got_race_made_progress[6] == 0
goto_if_false @CPRACE_49307
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[6] = 1

:CPRACE_49307
goto @CPRACE_50543

:CPRACE_49314
if 
  $got_race_made_progress[7] == 0
goto_if_false @CPRACE_49381
player_made_progress 1
start_new_script @CASHWIN 5000 5000 
add_score $player1 {money} 5000
$total_races_completed += 1
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[7] = 1

:CPRACE_49381
goto @CPRACE_50543

:CPRACE_49388
if 
  $got_race_made_progress[8] == 0
goto_if_false @CPRACE_49433
player_made_progress 1
$total_races_completed += 1
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[8] = 1

:CPRACE_49433
goto @CPRACE_50543

:CPRACE_49440
if 
  $got_race_made_progress[9] == 0
goto_if_false @CPRACE_49492
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[9] = 1

:CPRACE_49492
goto @CPRACE_50543

:CPRACE_49499
if 
  $got_race_made_progress[10] == 0
goto_if_false @CPRACE_49551
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[10] = 1

:CPRACE_49551
goto @CPRACE_50543

:CPRACE_49558
if 
  $got_race_made_progress[11] == 0
goto_if_false @CPRACE_49610
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[11] = 1

:CPRACE_49610
goto @CPRACE_50543

:CPRACE_49617
if 
  $got_race_made_progress[12] == 0
goto_if_false @CPRACE_49669
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[12] = 1

:CPRACE_49669
goto @CPRACE_50543

:CPRACE_49676
if 
  $got_race_made_progress[13] == 0
goto_if_false @CPRACE_49728
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[13] = 1

:CPRACE_49728
goto @CPRACE_50543

:CPRACE_49735
if 
  $got_race_made_progress[14] == 0
goto_if_false @CPRACE_49787
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[14] = 1

:CPRACE_49787
goto @CPRACE_50543

:CPRACE_49794
if 
  $got_race_made_progress[15] == 0
goto_if_false @CPRACE_49846
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[15] = 1

:CPRACE_49846
goto @CPRACE_50543

:CPRACE_49853
if 
  $got_race_made_progress[16] == 0
goto_if_false @CPRACE_49905
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[16] = 1

:CPRACE_49905
goto @CPRACE_50543

:CPRACE_49912
if 
  $got_race_made_progress[17] == 0
goto_if_false @CPRACE_49964
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[17] = 1

:CPRACE_49964
goto @CPRACE_50543

:CPRACE_49971
if 
  $got_race_made_progress[18] == 0
goto_if_false @CPRACE_50023
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[18] = 1

:CPRACE_50023
goto @CPRACE_50543

:CPRACE_50030
if 
  $got_race_made_progress[19] == 0
goto_if_false @CPRACE_50082
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[19] = 1

:CPRACE_50082
goto @CPRACE_50543

:CPRACE_50089
if 
  $got_race_made_progress[20] == 0
goto_if_false @CPRACE_50141
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[20] = 1

:CPRACE_50141
goto @CPRACE_50543

:CPRACE_50148
if 
  $got_race_made_progress[21] == 0
goto_if_false @CPRACE_50200
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[21] = 1

:CPRACE_50200
goto @CPRACE_50543

:CPRACE_50207
if 
  $got_race_made_progress[22] == 0
goto_if_false @CPRACE_50259
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[22] = 1

:CPRACE_50259
goto @CPRACE_50543

:CPRACE_50266
if 
  $got_race_made_progress[23] == 0
goto_if_false @CPRACE_50318
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[23] = 1

:CPRACE_50318
goto @CPRACE_50543

:CPRACE_50325
if 
  $got_race_made_progress[24] == 0
goto_if_false @CPRACE_50377
player_made_progress 1
$total_races_completed += 1
gosub @CPRACE_50545
register_mission_passed 85@($race_selection,30s)
$got_race_made_progress[24] = 1

:CPRACE_50377
goto @CPRACE_50543

:CPRACE_50384
if 
  $got_race_made_progress[25] == 0
goto_if_false @CPRACE_50460
start_new_script @CASHWIN 10000 5000 
add_score $player1 {money} 10000
player_made_progress 1
register_mission_passed 'STAD_03'
switch_car_generator $nascar_reward_cargen1 {amount} 101
switch_car_generator $nascar_reward_cargen2 {amount} 101
$got_race_made_progress[25] = 1

:CPRACE_50460
goto @CPRACE_50543

:CPRACE_50467
if 
  $got_race_made_progress[26] == 0
goto_if_false @CPRACE_50536
start_new_script @CASHWIN 25000 5000 
add_score $player1 {money} 25000
player_made_progress 1
register_mission_passed 'STAD_01'
switch_car_generator $dirtrack_reward_cargen {amount} 101
$got_race_made_progress[26] = 1

:CPRACE_50536
goto @CPRACE_50543

:CPRACE_50543
return 

:CPRACE_50545
if 
  is_int_var_equal_to_int_lvar $total_races_completed == 208@
goto_if_false @CPRACE_50624
if 
  $got_race_mission_complete == 0
goto_if_false @CPRACE_50617
start_new_script @CASHWIN 1000000 5000 45 
add_score $player1 {money} 1000000
$got_race_mission_complete = 1

:CPRACE_50617
goto @CPRACE_50646

:CPRACE_50624
start_new_script @CASHWIN 10000 5000 
add_score $player1 {money} 10000

:CPRACE_50646
return 

:CPRACE_50648
254@ = 0

:CPRACE_50655
255@ = generate_random_int_in_range 0 {max} 5
switch_start 255@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CPRACE_50957 {caseNum1} 0 {caseLabel1} @CPRACE_50727 {caseNum2} 1 {caseLabel2} @CPRACE_50772 {caseNum3} 2 {caseLabel3} @CPRACE_50821 {caseNum4} 3 {caseLabel4} @CPRACE_50866 {caseNum5} 4 {caseLabel5} @CPRACE_50910 {caseNum6} -1 {caseLabel6} @CPRACE_50957 {caseNum7} -1 {caseLabel7} @CPRACE_50957

:CPRACE_50727
task_play_anim -1 {animationName} "RIOT_CHANT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2700
goto @CPRACE_50957

:CPRACE_50772
task_play_anim -1 {animationName} "RIOT_CHALLENGE" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2000
goto @CPRACE_50957

:CPRACE_50821
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2000
goto @CPRACE_50957

:CPRACE_50866
task_play_anim -1 {animationName} "RIOT_FUKU" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3000
goto @CPRACE_50957

:CPRACE_50910
task_play_anim -1 {animationName} "RIOT_PUNCHES" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2200
goto @CPRACE_50957

:CPRACE_50957
254@ += 1
  254@ >= 7
goto_if_false @CPRACE_50655
return 

:CPRACE_50980
if 
  225@ == 0
goto_if_false @CPRACE_51177
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @CPRACE_51177
if 
  is_int_var_greater_than_int_lvar $game_timer > 226@
goto_if_false @CPRACE_51177
clear_mission_audio MissionAudioSlot.Slot4
227@ = generate_random_int_in_range 0 {max} 4
switch_start 227@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CPRACE_51170 {caseNum1} 0 {caseLabel1} @CPRACE_51108 {caseNum2} 1 {caseLabel2} @CPRACE_51124 {caseNum3} 2 {caseLabel3} @CPRACE_51140 {caseNum4} 3 {caseLabel4} @CPRACE_51156 {caseNum5} -1 {caseLabel5} @CPRACE_51170 {caseNum6} -1 {caseLabel6} @CPRACE_51170 {caseNum7} -1 {caseLabel7} @CPRACE_51170

:CPRACE_51108
load_mission_audio MissionAudioSlot.Slot4 {audioId} 36200
goto @CPRACE_51170

:CPRACE_51124
load_mission_audio MissionAudioSlot.Slot4 {audioId} 36202
goto @CPRACE_51170

:CPRACE_51140
load_mission_audio MissionAudioSlot.Slot4 {audioId} 36205
goto @CPRACE_51170

:CPRACE_51156
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1827
goto @CPRACE_51170

:CPRACE_51170
225@ += 1

:CPRACE_51177
if 
  225@ == 1
goto_if_false @CPRACE_51285
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @CPRACE_51285
if 
  227@ == 3
goto_if_false @CPRACE_51255
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAirHorn
goto @CPRACE_51259

:CPRACE_51255
play_mission_audio MissionAudioSlot.Slot4

:CPRACE_51259
226@ = generate_random_int_in_range 2000 {max} 10000
add_int_var_to_int_lvar 226@ += $game_timer
225@ = 0

:CPRACE_51285
return 
return 
return 
47@ = 0.0
47@ = 0.0
47@ = 0.0
return 
return 
return 

:CPRACE_51327
if or
  53@ == 0
  53@ == 1
  53@ == 3
goto_if_false @CPRACE_51851
if 
  is_player_playing $player1
goto_if_false @CPRACE_51851
if 
  53@ == 3
goto_if_false @CPRACE_51516
if 
  $race_selection == 25
goto_if_false @CPRACE_51451
$x = 2693.1841
$y = -1699.655
$z = 9.3891
$heading = 34.2987

:CPRACE_51451
if 
  $race_selection == 26
goto_if_false @CPRACE_51509
$x = 1101.781
$y = 1604.578
$z = 11.5506
$heading = 353.1771

:CPRACE_51509
goto @CPRACE_51763

:CPRACE_51516
if 
  $menu_mode == 0
goto_if_false @CPRACE_51578
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$y += 4.0
$heading = 180.0

:CPRACE_51578
if 
  $menu_mode == 1
goto_if_false @CPRACE_51640
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51640
if or
  $menu_mode == 2
  $menu_mode == 3
goto_if_false @CPRACE_51709
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
$x += 4.0
set_var_float_to_var_float $y = $traceY($menu_mode,4f)
$heading = 90.0

:CPRACE_51709
if 
  53@ <> 1
goto_if_false @CPRACE_51751
set_var_float_to_var_float $x = $traceX($menu_mode,4f)
set_var_float_to_var_float $y = $traceY($menu_mode,4f)

:CPRACE_51751
set_var_float_to_var_float $z = $traceZ($menu_mode,4f)

:CPRACE_51763
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
set_char_heading $scplayer {heading} $heading
clear_area $x {y} $y {z} $z {radius} 0.5 {clearParticles} False
request_collision $x {y} $y
load_scene $x {y} $y {z} $z
set_weather_to_appropriate_type_now 
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 2000 {direction} Fade.In
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0

:CPRACE_51851
253@ = 0

:CPRACE_51858
if 
  is_int_lvar_greater_than_int_lvar 256@ > 253@
goto_if_false @CPRACE_51978
if 
  not is_int_lvar_equal_to_int_lvar 253@ == 442@
goto_if_false @CPRACE_51937
if 
  not is_int_lvar_equal_to_int_var 395@(253@,16i) == $scplayer
goto_if_false @CPRACE_51937
mark_car_as_no_longer_needed 379@(253@,16i)
mark_char_as_no_longer_needed 395@(253@,16i)

:CPRACE_51937
mark_model_as_no_longer_needed 700@(253@,16i)
mark_model_as_no_longer_needed 716@(253@,16i)
remove_blip 412@(253@,16i)
253@ += 1
goto @CPRACE_51858

:CPRACE_51978
remove_char_elegantly 411@
unload_special_character 1
unload_special_character 2
if 
  $player_fall_state > 0
goto_if_false @CPRACE_52016
$player_fall_state = 6

:CPRACE_52016
mark_char_as_no_longer_needed 411@
mark_char_as_no_longer_needed 429@
253@ = 0

:CPRACE_52033
if 
  11 > 253@
goto_if_false @CPRACE_52070
mark_char_as_no_longer_needed 441@
253@ += 1
goto @CPRACE_52033

:CPRACE_52070
if 
  $race_selection == 23
goto_if_false @CPRACE_52113
if 
  $d5_pilot_licence_obtained == 1
goto_if_false @CPRACE_52113
switch_car_generator $gen_car_flying[1] {amount} 101

:CPRACE_52113
remove_blip 54@
delete_checkpoint 449@
delete_object 430@
clear_onscreen_timer $races_timer
remove_animation "RIOT"
remove_animation "CAR"
use_text_commands False
set_message_formatting False {margin} 380 {width} 464
set_car_density_multiplier 1.0
disable_all_entry_exits False
display_radar True
display_car_names True
display_zone_names True
hide_all_frontend_blips False
set_player_is_in_stadium False
display_hud True
clear_extra_colours False
set_help_message_box_size 200
if 
  is_player_playing $player1
goto_if_false @CPRACE_52229
set_char_area_visible $scplayer {areaId} 0

:CPRACE_52229
$disable_all_cranes = 0
$disable_mod_garage = 0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 36---------------
// Originally: Lowrider (High Stakes)

:CESAR1
script_name 'CESAR1'
gosub @CESAR1_1165
if 
  has_deatharrest_been_executed 
goto_if_false @CESAR1_38
gosub @CESAR1_4957

:CESAR1_38
gosub @CESAR1_5008
terminate_this_script 

:CESAR1_47
request_model 114
request_model 534
request_model 517
request_model 567
request_model 536
load_all_models_now 

:CESAR1_73
if or
  not has_model_loaded 114
  not has_model_loaded 534
  not has_model_loaded 517
  not has_model_loaded 567
  not has_model_loaded 536
goto_if_false @CESAR1_119
wait 0
goto @CESAR1_73

:CESAR1_119
load_special_character 1 {modelName} 'CESAR'
load_special_character 2 {modelName} 'KENDL'
load_all_models_now 

:CESAR1_147
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
goto_if_false @CESAR1_177
wait 0
goto @CESAR1_147

:CESAR1_177
return 
116@ = add_blip_for_car $cs1_player_car
return 
42@ = add_blip_for_coord $cesarX {y} $cesarY {z} $cesarZ

:CESAR1_203
request_car_recording 172

:CESAR1_208
if 
  not has_car_recording_been_loaded 172
goto_if_false @CESAR1_235
wait 0
goto @CESAR1_208

:CESAR1_235
128@ = 1793.687
129@ = -2138.686
130@ = 12.5547
131@ = 0.1899
clear_area 128@ {y} 129@ {z} 130@ {radius} 20.5 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
125@ = create_car 567 {x} 128@ {y} 129@ {z} 130@
set_load_collision_for_car_flag 125@ {state} False
suppress_car_model 567
change_car_colour 125@ {color1} 3 {color2} 3
123@ = create_char_inside_car 125@ {pedType} PedType.CivMale {modelId} 290
127@ = create_char_as_passenger 125@ {pedType} PedType.CivFemale {modelId} 291 {seat} SeatId.BikeRear
set_car_heading 125@ {heading} 131@
set_car_cruise_speed 125@ {maxSpeed} 35.0
set_car_driving_style 125@ {drivingStyle} DrivingMode.PloughThrough
set_car_heavy 125@ {state} True
lock_car_doors 125@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 125@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 125@ {state} False
set_char_proofs 123@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 127@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_can_be_shot_in_vehicle 123@ {state} False
set_char_can_be_shot_in_vehicle 127@ {state} False
return 
126@ = add_blip_for_car 125@

:CESAR1_489
142@ = 1492.304
146@ = -1869.0229
150@ = 12.3828
154@ = 90.0
clear_area 142@ {y} 146@ {z} 150@ {radius} 2.5 {clearParticles} True
138@ = create_car 517 {x} 142@ {y} 146@ {z} 150@
set_load_collision_for_car_flag 138@ {state} False
change_car_colour 138@ {color1} 6 {color2} 0
set_car_heading 138@ {heading} 154@
134@ = create_char_inside_car 138@ {pedType} PedType.Gang8 {modelId} 114
set_char_proofs 134@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 138@ {maxSpeed} 35.0
set_car_driving_style 138@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 138@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 138@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
set_can_burst_car_tyres 138@ {state} False
143@ = 1492.304
147@ = -1875.0229
151@ = 12.3828
155@ = 90.0
clear_area 143@ {y} 147@ {z} 151@ {radius} 2.5 {clearParticles} True
139@ = create_car 534 {x} 143@ {y} 147@ {z} 151@
set_load_collision_for_car_flag 139@ {state} False
suppress_car_model 534
change_car_colour 139@ {color1} 8 {color2} 0
set_car_heading 139@ {heading} 155@
135@ = create_char_inside_car 139@ {pedType} PedType.Gang8 {modelId} 114
set_char_proofs 135@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 139@ {maxSpeed} 35.0
set_car_driving_style 139@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 139@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 139@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 139@ {state} False
144@ = 1504.304
148@ = -1869.0229
152@ = 12.3828
156@ = 90.0
clear_area 144@ {y} 148@ {z} 152@ {radius} 2.5 {clearParticles} True
140@ = create_car 517 {x} 144@ {y} 148@ {z} 152@
set_load_collision_for_car_flag 140@ {state} False
suppress_car_model 517
change_car_colour 140@ {color1} 2 {color2} 1
set_car_heading 140@ {heading} 156@
136@ = create_char_inside_car 140@ {pedType} PedType.Gang8 {modelId} 114
set_char_proofs 136@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 140@ {maxSpeed} 35.0
set_car_driving_style 140@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 140@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 140@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 140@ {state} False
145@ = 1504.304
149@ = -1875.0229
153@ = 12.3828
157@ = 90.0
clear_area 145@ {y} 149@ {z} 153@ {radius} 2.5 {clearParticles} True
141@ = create_car 536 {x} 145@ {y} 149@ {z} 153@
set_load_collision_for_car_flag 141@ {state} False
set_car_heading 141@ {heading} 157@
137@ = create_char_inside_car 141@ {pedType} PedType.Gang8 {modelId} 114
set_car_cruise_speed 141@ {maxSpeed} 35.0
set_car_driving_style 141@ {drivingStyle} DrivingMode.PloughThrough
lock_car_doors 141@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_proofs 141@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 141@ {state} False
return 

:CESAR1_1165
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'CESAR1'
set_player_group_recruitment $player1 {state} False
34@ = 0
35@ = 0
36@ = -1
$cs1_race_is_go = 0
39@ = 2
38@ = 0
111@ = 0
115@ = 1
113@ = 1
114@ = 2
112@ = 0
40@ = 0
41@ = 4
50@ = 1820.4399
51@ = -2117.3201
52@ = 13.09
56@ = 1518.304
57@ = -1875.0229
58@ = 12.3828
53@ = 1518.304
54@ = -1869.0229
55@ = 12.3828
set_lvar_text_label 61@s = 'CES1_AA'
set_lvar_text_label 63@s = 'CES1_AB'
set_lvar_text_label 65@s = 'CES1_AC'
set_lvar_text_label 67@s = 'CES1_AD'
set_lvar_text_label 69@s = 'CES1_BA'
set_lvar_text_label 71@s = 'CES1_BB'
set_lvar_text_label 73@s = 'CES1_BC'
set_lvar_text_label 75@s = 'CES1_BD'
set_lvar_text_label 77@s = 'CES1_CA'
set_lvar_text_label 79@s = 'CES1_CB'
set_lvar_text_label 81@s = 'CES1_CC'
set_lvar_text_label 83@s = 'CES1_CD'
set_lvar_text_label 85@s = 'CES1_CE'
set_lvar_text_label 87@s = 'CES1_CF'
set_lvar_int_to_constant 95@ = 10000
set_lvar_int_to_constant 96@ = 10001
set_lvar_int_to_constant 97@ = 10002
set_lvar_int_to_constant 98@ = 10003
set_lvar_int_to_constant 99@ = 10004
set_lvar_int_to_constant 100@ = 10005
set_lvar_int_to_constant 101@ = 10006
set_lvar_int_to_constant 102@ = 10007
set_lvar_int_to_constant 103@ = 10008
set_lvar_int_to_constant 104@ = 10009
set_lvar_int_to_constant 105@ = 10010
set_lvar_int_to_constant 106@ = 10011
set_lvar_int_to_constant 107@ = 10012
set_lvar_int_to_constant 108@ = 10013
set_car_density_multiplier 0.0
$cs1_player_car = store_car_char_is_in $scplayer
set_car_coordinates $cs1_player_car {x} $cesarX {y} $cesarY {z} $cesarZ
set_car_heading $cs1_player_car {heading} 270.0
clear_area 1796.0 {y} -2118.0 {z} 14.0 {radius} 25.0 {clearParticles} True
load_cutscene 'CESAR1A'

:CESAR1_1759
if 
  not has_cutscene_loaded 
goto_if_false @CESAR1_1783
wait 0
goto @CESAR1_1759

:CESAR1_1783
start_cutscene 
do_fade 1000 {direction} Fade.In

:CESAR1_1792
if 
  not has_cutscene_finished 
goto_if_false @CESAR1_1816
wait 0
goto @CESAR1_1792

:CESAR1_1816
do_fade 0 {direction} Fade.Out

:CESAR1_1822
if 
  get_fading_status 
goto_if_false @CESAR1_1846
wait 0
goto @CESAR1_1822

:CESAR1_1846
clear_cutscene 
clear_area 1796.0 {y} -2118.0 {z} 14.0 {radius} 15.0 {clearParticles} True
set_car_density_multiplier 0.5
gosub @CESAR1_47
set_fading_colour 0 {g} 0 {b} 0
46@ = get_game_timer 
set_camera_behind_player 
set_player_control $player1 {state} False

:CESAR1_1908
wait 0
if 
  111@ <> 0
goto_if_false @CESAR1_2251
if 
  112@ == 0
goto_if_false @CESAR1_1976
if 
  has_mission_audio_loaded 114@
goto_if_false @CESAR1_1969
clear_mission_audio 114@

:CESAR1_1969
112@ = 1

:CESAR1_1976
if 
  112@ == 1
goto_if_false @CESAR1_2013
load_mission_audio 113@ {audioId} 94@(111@,17i)
112@ = 2

:CESAR1_2013
if 
  112@ == 2
goto_if_false @CESAR1_2073
if 
  has_mission_audio_loaded 113@
goto_if_false @CESAR1_2073
play_mission_audio 113@
print_now 59@(111@,17s) {time} 10000 {flag} 1
112@ = 3

:CESAR1_2073
if 
  112@ == 3
goto_if_false @CESAR1_2251
if 
  has_mission_audio_finished 113@
goto_if_false @CESAR1_2190
clear_this_print 59@(111@,17s)
if 
  113@ == 1
goto_if_false @CESAR1_2155
113@ = 2
114@ = 1
goto @CESAR1_2169

:CESAR1_2155
113@ = 1
114@ = 2

:CESAR1_2169
111@ = 0
112@ = 0
goto @CESAR1_2251

:CESAR1_2190
if 
  not has_mission_audio_loaded 114@
goto_if_false @CESAR1_2251
if 
  60 > 111@
goto_if_false @CESAR1_2251
set_lvar_int_to_lvar_int 115@ = 111@
115@ += 1
load_mission_audio 114@ {audioId} 94@(115@,17i)

:CESAR1_2251
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CESAR1_2280
$flag_cesar_mission_counter += 1
goto @CESAR1_4999

:CESAR1_2280
if 
  34@ > 0
goto_if_false @CESAR1_2305
gosub @CESAR1_5106

:CESAR1_2305
if and
  34@ > 0
  666 > 34@
goto_if_false @CESAR1_2370
if 
  is_car_dead 125@
goto_if_false @CESAR1_2370
print_now 'CES1_09' {time} 7000 {flag} 1
goto @CESAR1_4957

:CESAR1_2370
if 
  34@ == 0
goto_if_false @CESAR1_3200
if 
  36@ == -1
goto_if_false @CESAR1_2481
if and
  not is_car_dead $cs1_player_car
  not is_char_dead $scplayer
goto_if_false @CESAR1_2481
warp_char_into_car $scplayer {vehicle} $cs1_player_car
clear_prints 
43@ = get_game_timer 
gosub @CESAR1_203
switch_widescreen True
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
36@ = 0

:CESAR1_2481
if 
  36@ == 0
goto_if_false @CESAR1_2736
if and
  not is_char_dead $scplayer
  not is_car_dead $cs1_player_car
goto_if_false @CESAR1_2736
if 
  is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_2736
if and
  not is_char_dead 123@
  not is_car_dead 125@
goto_if_false @CESAR1_2736
44@ = get_game_timer 
set_lvar_int_to_lvar_int 45@ = 44@
sub_int_lvar_from_int_lvar 45@ -= 43@
if and
  not is_char_dead 123@
  not is_char_dead 127@
goto_if_false @CESAR1_2736
set_char_proofs 123@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 127@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_can_be_shot_in_vehicle 123@ {state} False
set_char_can_be_shot_in_vehicle 127@ {state} False
if 
  not is_car_dead 125@
goto_if_false @CESAR1_2670
start_playback_recorded_car 125@ {path} 172

:CESAR1_2670
set_fixed_camera_position 1786.3311 {y} -2120.0659 {z} 12.8592 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1787.309 {y} -2120.1289 {z} 13.0548 {switchStyle} SwitchType.JumpCut
117@ = get_car_health $cs1_player_car
36@ = 2

:CESAR1_2736
if and
  not is_char_dead 123@
  not is_car_dead 125@
goto_if_false @CESAR1_3200
if 
  36@ == 1
goto_if_false @CESAR1_2881
if 
  locate_char_in_car_3d 123@ {x} 1802.126 {y} -2110.103 {z} 12.3902 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CESAR1_2881
set_fixed_camera_position 1825.202 {y} -2100.55 {z} 18.3156 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1824.693 {y} -2101.373 {z} 18.0676 {switchStyle} SwitchType.JumpCut
36@ = 2

:CESAR1_2881
if 
  36@ == 2
goto_if_false @CESAR1_3168
if 
  not is_car_dead 125@
goto_if_false @CESAR1_3168
if 
  is_char_in_car 123@ {vehicle} 125@
goto_if_false @CESAR1_3168
if 
  locate_char_in_car_3d 123@ {x} 50@ {y} 51@ {z} 52@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @CESAR1_3168
if 
  not is_playback_going_on_for_car 125@
goto_if_false @CESAR1_3168
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 125@ {x} 1533.0081 {y} -1877.243 {z} 12.3828 {speed} 20.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 125@ {x} 53@ {y} 54@ {z} 55@ {speed} 12.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 49@
perform_sequence_task 123@ {sequence} 49@
add_stuck_car_check_with_warp 125@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
remove_blip 126@
126@ = add_blip_for_car 125@
set_blip_as_friendly 126@ {state} True
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
35@ = 1
print_now 'CES1_04' {time} 5000 {flag} 2
39@ = 2
46@ = get_game_timer 
36@ = 3

:CESAR1_3168
if 
  36@ == 3
goto_if_false @CESAR1_3200
gosub @CESAR1_489
34@ = 1

:CESAR1_3200
if 
  34@ == 1
goto_if_false @CESAR1_4924
if 
  36@ == 3
goto_if_false @CESAR1_3340
46@ = get_game_timer 
if 
  not is_char_dead 134@
goto_if_false @CESAR1_3264
set_char_can_be_shot_in_vehicle 134@ {state} False

:CESAR1_3264
if 
  not is_char_dead 135@
goto_if_false @CESAR1_3287
set_char_can_be_shot_in_vehicle 135@ {state} False

:CESAR1_3287
if 
  not is_char_dead 136@
goto_if_false @CESAR1_3310
set_char_can_be_shot_in_vehicle 136@ {state} False

:CESAR1_3310
if 
  not is_char_dead 137@
goto_if_false @CESAR1_3333
set_char_can_be_shot_in_vehicle 137@ {state} False

:CESAR1_3333
36@ = 4

:CESAR1_3340
if 
  36@ == 4
goto_if_false @CESAR1_4776
if 
  not is_car_dead $cs1_player_car
goto_if_false @CESAR1_4776
if and
  not is_char_dead 123@
  not is_car_dead 125@
goto_if_false @CESAR1_3883
37@ = get_script_task_status 123@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 37@ == 7
goto_if_false @CESAR1_3445
if 
  does_car_have_stuck_car_check 125@
goto_if_false @CESAR1_3445
remove_stuck_car_check 125@

:CESAR1_3445
if 
  not locate_char_in_car_3d 123@ {x} 53@ {y} 54@ {z} 55@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @CESAR1_3627
119@, 120@, 121@ = get_car_coordinates $cs1_player_car
128@, 129@, 130@ = get_car_coordinates 125@
132@ = get_distance_between_coords_2d 119@ {fromY} 120@ {toX} 128@ {toZ} 129@
133@ = 1000.0
div_float_lvar_by_float_lvar 133@ /= 132@
if 
  133@ > 30.0
goto_if_false @CESAR1_3581
133@ = 30.0

:CESAR1_3581
if 
  12.0 > 133@
goto_if_false @CESAR1_3612
133@ = 12.0

:CESAR1_3612
set_car_cruise_speed 125@ {maxSpeed} 133@
goto @CESAR1_3637

:CESAR1_3627
set_car_cruise_speed 125@ {maxSpeed} 12.0

:CESAR1_3637
if 
  38@ == 0
goto_if_false @CESAR1_3746
if 
  locate_char_in_car_3d 123@ {x} 53@ {y} 54@ {z} 55@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CESAR1_3746
remove_blip 126@
124@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
print_now 'CES1_05' {time} 10000 {flag} 1
39@ = 5
38@ = 1

:CESAR1_3746
if 
  locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CESAR1_3883
if 
  not locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CESAR1_3883
if 
  39@ == 0
goto_if_false @CESAR1_3883
if 
  4 > 40@
goto_if_false @CESAR1_3883
46@ = get_game_timer 
39@ = 1
clear_prints 
set_var_int_to_lvar_int $cs1_random_dialogue = 40@
40@ += 1

:CESAR1_3883
118@ = get_car_health $cs1_player_car
if 
  is_int_lvar_greater_than_int_lvar 117@ > 118@
goto_if_false @CESAR1_4053
if 
  locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CESAR1_4053
if 
  not locate_char_any_means_char_3d $scplayer {target} 123@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CESAR1_4053
if 
  39@ == 0
goto_if_false @CESAR1_4053
if 
  8 > 41@
goto_if_false @CESAR1_4053
set_lvar_int_to_lvar_int 117@ = 118@
46@ = get_game_timer 
39@ = 1
set_var_int_to_lvar_int $cs1_random_dialogue = 41@
41@ += 1

:CESAR1_4053
if 
  39@ == 1
goto_if_false @CESAR1_4652
if 
  $cs1_random_dialogue == 0
goto_if_false @CESAR1_4133
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4133
111@ = 1
46@ = get_game_timer 
39@ = 2

:CESAR1_4133
if 
  $cs1_random_dialogue == 1
goto_if_false @CESAR1_4195
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4195
111@ = 2
46@ = get_game_timer 
39@ = 2

:CESAR1_4195
if 
  $cs1_random_dialogue == 2
goto_if_false @CESAR1_4257
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4257
111@ = 3
46@ = get_game_timer 
39@ = 2

:CESAR1_4257
if 
  $cs1_random_dialogue == 3
goto_if_false @CESAR1_4319
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4319
111@ = 4
46@ = get_game_timer 
39@ = 2

:CESAR1_4319
if 
  $cs1_random_dialogue == 4
goto_if_false @CESAR1_4381
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4381
111@ = 5
46@ = get_game_timer 
39@ = 2

:CESAR1_4381
if 
  $cs1_random_dialogue == 5
goto_if_false @CESAR1_4443
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4443
111@ = 6
46@ = get_game_timer 
39@ = 2

:CESAR1_4443
if 
  $cs1_random_dialogue == 6
goto_if_false @CESAR1_4505
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4505
111@ = 7
46@ = get_game_timer 
39@ = 2

:CESAR1_4505
if 
  $cs1_random_dialogue == 7
goto_if_false @CESAR1_4567
if and
  112@ == 0
  111@ == 0
goto_if_false @CESAR1_4567
111@ = 8
46@ = get_game_timer 
39@ = 2

:CESAR1_4567
if 
  $cs1_random_dialogue == 8
goto_if_false @CESAR1_4652
print_now 'CES1_04' {time} 100 {flag} 1
47@ = get_game_timer 
set_lvar_int_to_lvar_int 48@ = 47@
sub_int_lvar_from_int_lvar 48@ -= 46@
if 
  48@ > 5000
goto_if_false @CESAR1_4652
46@ = get_game_timer 
39@ = 2

:CESAR1_4652
if 
  39@ == 2
goto_if_false @CESAR1_4776
47@ = get_game_timer 
set_lvar_int_to_lvar_int 48@ = 47@
sub_int_lvar_from_int_lvar 48@ -= 46@
if 
  48@ > 6000
goto_if_false @CESAR1_4776
if and
  not is_car_dead 138@
  not is_car_dead 139@
  not is_car_dead 140@
  not is_car_dead 141@
goto_if_false @CESAR1_4769
freeze_car_position 138@ {state} True
freeze_car_position 139@ {state} True
freeze_car_position 140@ {state} True
freeze_car_position 141@ {state} True

:CESAR1_4769
39@ = 0

:CESAR1_4776
if and
  not is_car_dead 125@
  not is_char_dead 123@
goto_if_false @CESAR1_4924
if and
  not is_car_dead $cs1_player_car
  not is_char_dead $scplayer
goto_if_false @CESAR1_4924
if 
  is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_4924
if 
  locate_char_in_car_3d $scplayer {x} 56@ {y} 57@ {z} 58@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CESAR1_4924
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:CESAR1_4893
if 
  get_fading_status 
goto_if_false @CESAR1_4917
wait 0
goto @CESAR1_4893

:CESAR1_4917
goto @CESAR1_4999

:CESAR1_4924
if 
  34@ == 666
goto_if_false @CESAR1_4950
goto @CESAR1_4957

:CESAR1_4950
goto @CESAR1_1908

:CESAR1_4957
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 517
mark_model_as_no_longer_needed 534
mark_model_as_no_longer_needed 536
return 

:CESAR1_4999
$cs1_race_is_go = 1
return 

:CESAR1_5008
remove_blip 116@
remove_blip 126@
remove_blip 124@
remove_blip 42@
mark_model_as_no_longer_needed 114
delete_car 125@
delete_car 138@
delete_car 139@
delete_car 140@
delete_car 141@
unload_special_character 1
unload_special_character 2
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
if 
  34@ <> 666
goto_if_false @CESAR1_5104
do_fade 0 {direction} Fade.Out

:CESAR1_5104
return 

:CESAR1_5106
if 
  is_car_dead $cs1_player_car
goto_if_false @CESAR1_5146
print_now 'CES1_08' {time} 5000 {flag} 1
34@ = 666

:CESAR1_5146
if and
  not is_char_dead $scplayer
  not is_car_dead $cs1_player_car
goto_if_false @CESAR1_5518
if 
  35@ == 1
goto_if_false @CESAR1_5302
if 
  not is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_5302
if 
  34@ == 1
goto_if_false @CESAR1_5302
if 
  38@ == 0
goto_if_false @CESAR1_5245
remove_blip 126@

:CESAR1_5245
if 
  38@ == 1
goto_if_false @CESAR1_5268
remove_blip 124@

:CESAR1_5268
39@ = 10
remove_blip 116@
116@ = add_blip_for_car $cs1_player_car
set_blip_as_friendly 116@ {state} True
35@ = 0

:CESAR1_5302
if 
  35@ == 0
goto_if_false @CESAR1_5518
if 
  34@ == 1
goto_if_false @CESAR1_5353
print_now 'CES1_06' {time} 100 {flag} 1

:CESAR1_5353
if 
  is_char_in_car $scplayer {vehicle} $cs1_player_car
goto_if_false @CESAR1_5518
clear_prints 
if 
  34@ == 1
goto_if_false @CESAR1_5518
if 
  38@ == 0
goto_if_false @CESAR1_5446
if 
  not is_car_dead 125@
goto_if_false @CESAR1_5446
remove_blip 126@
126@ = add_blip_for_car 125@
set_blip_as_friendly 126@ {state} True

:CESAR1_5446
if 
  38@ == 1
goto_if_false @CESAR1_5499
remove_blip 124@
124@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
print_now 'CES1_05' {time} 10000 {flag} 1

:CESAR1_5499
remove_blip 116@
39@ = 0
35@ = 1

:CESAR1_5518
return 

//-------------Mission 37---------------
// Originally: Reuniting The Families

:DRUGS4
script_name 'DRUGS4'
gosub @DRUGS4_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRUGS4_38
gosub @DRUGS4_67705

:DRUGS4_38
gosub @DRUGS4_67827
terminate_this_script 

:DRUGS4_47
register_mission_given 
load_mission_text 'LAFIN1'
$onmission = 1
wait 0
set_area_visible 1
load_cutscene 'FINAL1A'

:DRUGS4_86
if 
  not has_cutscene_loaded 
goto_if_false @DRUGS4_110
wait 0
goto @DRUGS4_86

:DRUGS4_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRUGS4_119
if 
  not has_cutscene_finished 
goto_if_false @DRUGS4_143
wait 0
goto @DRUGS4_119

:DRUGS4_143
clear_cutscene 
do_fade 0 {direction} Fade.Out

:DRUGS4_151
if 
  get_fading_status 
goto_if_false @DRUGS4_175
wait 0
goto @DRUGS4_151

:DRUGS4_175
set_area_visible 0
switch_widescreen False
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
wait 0
load_scene 2517.2371 {y} -1671.3409 {z} 12.9
force_weather_now WeatherType.SunnyLa
request_model 492
request_model 107
request_model 106
request_model 349
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_car_recording 350
request_model 353
request_model 346
request_model 285
load_mission_audio MissionAudioSlot.Slot2 {audioId} 35803
request_car_recording 352
request_car_recording 353
load_all_models_now 

:DRUGS4_321
if or
  not has_model_loaded 492
  not has_model_loaded 107
  not has_model_loaded 106
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_360
wait 0
goto @DRUGS4_321

:DRUGS4_360
if or
  not has_model_loaded 349
  not has_car_recording_been_loaded 350
  not has_model_loaded 353
  not has_model_loaded 346
  not has_model_loaded 285
goto_if_false @DRUGS4_407
wait 0
goto @DRUGS4_360

:DRUGS4_407
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_car_recording_been_loaded 352
  not has_car_recording_been_loaded 353
goto_if_false @DRUGS4_451
wait 0
goto @DRUGS4_407

:DRUGS4_451
set_script_limit_to_gang_size 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
151@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
302@ = 0
303@ = 0
304@ = 0
305@ = 0
306@ = 0
307@ = 0
308@ = 0
309@ = 0
310@ = 0
311@ = 0
312@ = 0
313@ = 0
314@ = 0
315@ = 0
316@ = 0
317@ = 0
318@ = 0
319@ = 0
320@ = 0
321@ = 0
322@ = 0
323@ = 0
324@ = 0
325@ = 0
326@ = 0
327@ = 0
328@ = 0
329@ = 0
330@ = 0
331@ = 0
55@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 55@ {event} Event.PotentialGetRunOver
56@ = load_char_decision_maker DecisionMakerType.Weak
57@ = load_char_decision_maker DecisionMakerType.Tough
clear_area 2514.3159 {y} -1673.395 {z} 150.0 {radius} 150.0 {clearParticles} True
set_time_of_day 19 {minutes} 30
set_char_coordinates $scplayer {x} 2517.2371 {y} -1671.3409 {z} 12.9
set_char_heading $scplayer {heading} 63.048
restore_camera_jumpcut 
set_camera_behind_player 
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2508.0701 {y} -1672.114 {z} 12.0957
set_car_can_be_visibly_damaged $sweet_car {state} False
set_car_heading $sweet_car {heading} 167.195
set_car_only_damaged_by_player $sweet_car {state} True
183@ = add_blip_for_car $sweet_car
set_blip_as_friendly 183@ {state} True
change_car_colour $sweet_car {color1} 59 {color2} 34
$sweet = create_char PedType.Special {modelId} 290 {x} 2511.0049 {y} -1672.2679 {z} 12.493
set_char_heading $sweet {heading} 62.083
set_char_never_targetted $sweet {state} True
set_char_only_damaged_by_player $sweet {state} True
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 5000 {seat} SeatId.RearLeft
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 55@
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_get_out_upside_down_car $sweet {state} False
$big_smoke = create_char PedType.Special {modelId} 291 {x} 2505.3181 {y} -1674.7469 {z} 12.376
set_char_heading $big_smoke {heading} 356.374
set_char_never_targetted $big_smoke {state} True
set_char_only_damaged_by_player $big_smoke {state} True
task_enter_car_as_passenger $big_smoke {vehicle} $sweet_car {time} 5000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $big_smoke {state} True
set_char_stay_in_car_when_jacked $big_smoke {state} True
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
set_char_never_targetted $big_smoke {state} True
set_char_suffers_critical_hits $big_smoke {state} False
set_char_get_out_upside_down_car $big_smoke {state} False
$ryder = create_char PedType.Special {modelId} 292 {x} 2506.5701 {y} -1667.7531 {z} 12.376
set_char_heading $ryder {heading} 171.457
set_char_never_targetted $ryder {state} True
set_char_only_damaged_by_player $ryder {state} True
task_enter_car_as_passenger $ryder {vehicle} $sweet_car {time} 5000 {seat} SeatId.RearRight
set_char_cant_be_dragged_out $ryder {state} True
set_char_stay_in_car_when_jacked $ryder {state} True
set_char_decision_maker $ryder {handleOrTemplate} 55@
set_char_never_targetted $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
set_char_get_out_upside_down_car $ryder {state} False
print_now 'LAF1_1' {time} 10000 {flag} 1
shut_char_up $scplayer {state} True
set_wanted_multiplier 0.0
set_max_fire_generations 1
switch_roads_off 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_ped_roads_off 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_emergency_services False
do_fade 500 {direction} Fade.In

:DRUGS4_1708
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DRUGS4_1734
goto @DRUGS4_67765

:DRUGS4_1734
if 
  129@ == 0
goto_if_false @DRUGS4_1978
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_1978
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_1978
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_1978
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_1978
if 
  is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_1978
if 
  is_char_sitting_in_car $ryder {vehicle} $sweet_car
goto_if_false @DRUGS4_1978
if 
  is_char_sitting_in_car $big_smoke {vehicle} $sweet_car
goto_if_false @DRUGS4_1978
if 
  is_char_sitting_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_1978
remove_blip 183@
184@ = add_blip_for_coord 2256.239 {y} -1146.9091 {z} 25.121
set_radio_channel RadioChannel.CSR
print_now 'LAF1_3' {time} 7000 {flag} 1
switch_entry_exit 'MOTEL2' {state} False
TIMERA = 0
130@ = 1
128@ = 1
129@ = 1

:DRUGS4_1978
if 
  128@ == 1
goto_if_false @DRUGS4_3127
gosub @DRUGS4_66554
if 
  178@ == 0
goto_if_false @DRUGS4_2087
if 
  179@ == 0
goto_if_false @DRUGS4_2087
if 
  TIMERA > 7000
goto_if_false @DRUGS4_2087
set_lvar_int_to_constant 106@ = 15826
set_lvar_text_label 107@s = 'FIN1_GA'
gosub @DRUGS4_66512

:DRUGS4_2087
if 
  178@ == 1
goto_if_false @DRUGS4_2152
if 
  179@ == 0
goto_if_false @DRUGS4_2152
set_lvar_int_to_constant 106@ = 15827
set_lvar_text_label 107@s = 'FIN1_GB'
gosub @DRUGS4_66512

:DRUGS4_2152
if 
  178@ == 2
goto_if_false @DRUGS4_2217
if 
  179@ == 0
goto_if_false @DRUGS4_2217
set_lvar_int_to_constant 106@ = 15828
set_lvar_text_label 107@s = 'FIN1_GC'
gosub @DRUGS4_66512

:DRUGS4_2217
if 
  178@ == 3
goto_if_false @DRUGS4_2282
if 
  179@ == 0
goto_if_false @DRUGS4_2282
set_lvar_int_to_constant 106@ = 15829
set_lvar_text_label 107@s = 'FIN1_GD'
gosub @DRUGS4_66512

:DRUGS4_2282
if 
  178@ == 4
goto_if_false @DRUGS4_2347
if 
  179@ == 0
goto_if_false @DRUGS4_2347
set_lvar_int_to_constant 106@ = 15830
set_lvar_text_label 107@s = 'FIN1_GE'
gosub @DRUGS4_66512

:DRUGS4_2347
if 
  178@ == 5
goto_if_false @DRUGS4_2412
if 
  179@ == 0
goto_if_false @DRUGS4_2412
set_lvar_int_to_constant 106@ = 15832
set_lvar_text_label 107@s = 'FIN1_GG'
gosub @DRUGS4_66512

:DRUGS4_2412
if 
  178@ == 6
goto_if_false @DRUGS4_2477
if 
  179@ == 0
goto_if_false @DRUGS4_2477
set_lvar_int_to_constant 106@ = 15834
set_lvar_text_label 107@s = 'FIN1_GI'
gosub @DRUGS4_66512

:DRUGS4_2477
if 
  178@ == 7
goto_if_false @DRUGS4_2542
if 
  179@ == 0
goto_if_false @DRUGS4_2542
set_lvar_int_to_constant 106@ = 15835
set_lvar_text_label 107@s = 'FIN1_GJ'
gosub @DRUGS4_66512

:DRUGS4_2542
if 
  178@ == 8
goto_if_false @DRUGS4_2607
if 
  179@ == 0
goto_if_false @DRUGS4_2607
set_lvar_int_to_constant 106@ = 15836
set_lvar_text_label 107@s = 'FIN1_GK'
gosub @DRUGS4_66512

:DRUGS4_2607
if 
  178@ == 9
goto_if_false @DRUGS4_2672
if 
  179@ == 0
goto_if_false @DRUGS4_2672
set_lvar_int_to_constant 106@ = 15837
set_lvar_text_label 107@s = 'FIN1_GL'
gosub @DRUGS4_66512

:DRUGS4_2672
if 
  178@ == 10
goto_if_false @DRUGS4_2737
if 
  179@ == 0
goto_if_false @DRUGS4_2737
set_lvar_int_to_constant 106@ = 15838
set_lvar_text_label 107@s = 'FIN1_GM'
gosub @DRUGS4_66512

:DRUGS4_2737
if 
  178@ == 11
goto_if_false @DRUGS4_2802
if 
  179@ == 0
goto_if_false @DRUGS4_2802
set_lvar_int_to_constant 106@ = 15839
set_lvar_text_label 107@s = 'FIN1_GN'
gosub @DRUGS4_66512

:DRUGS4_2802
if 
  178@ == 12
goto_if_false @DRUGS4_2867
if 
  179@ == 0
goto_if_false @DRUGS4_2867
set_lvar_int_to_constant 106@ = 15840
set_lvar_text_label 107@s = 'FIN1_GO'
gosub @DRUGS4_66512

:DRUGS4_2867
if 
  178@ == 13
goto_if_false @DRUGS4_2932
if 
  179@ == 0
goto_if_false @DRUGS4_2932
set_lvar_int_to_constant 106@ = 15841
set_lvar_text_label 107@s = 'FIN1_GP'
gosub @DRUGS4_66512

:DRUGS4_2932
if 
  178@ == 14
goto_if_false @DRUGS4_2997
if 
  179@ == 0
goto_if_false @DRUGS4_2997
set_lvar_int_to_constant 106@ = 15842
set_lvar_text_label 107@s = 'FIN1_GQ'
gosub @DRUGS4_66512

:DRUGS4_2997
if 
  178@ == 15
goto_if_false @DRUGS4_3062
if 
  179@ == 0
goto_if_false @DRUGS4_3062
set_lvar_int_to_constant 106@ = 15843
set_lvar_text_label 107@s = 'FIN1_GR'
gosub @DRUGS4_66512

:DRUGS4_3062
if 
  178@ == 16
goto_if_false @DRUGS4_3127
if 
  179@ == 0
goto_if_false @DRUGS4_3127
set_lvar_int_to_constant 106@ = 15844
set_lvar_text_label 107@s = 'FIN1_GS'
gosub @DRUGS4_66512

:DRUGS4_3127
if or
  128@ == 1
  128@ == 100
goto_if_false @DRUGS4_3375
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_3375
if 
  130@ == 1
goto_if_false @DRUGS4_3259
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_3259
remove_blip 184@
183@ = add_blip_for_car $sweet_car
set_blip_as_friendly 183@ {state} True
play_mission_audio MissionAudioSlot.Slot2
print_now 'SMOX_AD' {time} 2000 {flag} 1
128@ = 100
130@ = 0

:DRUGS4_3259
if 
  130@ == 0
goto_if_false @DRUGS4_3375
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_3375
remove_blip 183@
184@ = add_blip_for_coord 2256.239 {y} -1146.9091 {z} 25.121
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
if 
  178@ > 16
goto_if_false @DRUGS4_3361
print_now 'LAF1_3' {time} 5000 {flag} 1

:DRUGS4_3361
128@ = 1
130@ = 1

:DRUGS4_3375
if or
  128@ == 0
  128@ == 1
  128@ == 100
goto_if_false @DRUGS4_3495
if or
  is_char_dead $sweet
  is_char_dead $big_smoke
  is_char_dead $ryder
goto_if_false @DRUGS4_3456
print_now 'LAF1_71' {time} 5000 {flag} 1
goto @DRUGS4_67705

:DRUGS4_3456
if 
  is_car_dead $sweet_car
goto_if_false @DRUGS4_3495
print_now 'LAF1_72' {time} 5000 {flag} 1
goto @DRUGS4_67705

:DRUGS4_3495
if 
  128@ == 1
goto_if_false @DRUGS4_3712
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_3712
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_3712
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_3712
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_3712
if 
  is_char_sitting_in_car $scplayer {vehicle} $sweet_car
goto_if_false @DRUGS4_3712
if 
  locate_car_2d $sweet_car {x} 2256.239 {y} -1146.9091 {xRadius} 4.4 {yRadius} 4.4 {drawSphere} True
goto_if_false @DRUGS4_3712
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_player_control $player1 {state} False
set_max_wanted_level 0
clear_wanted_level $player1
clear_area 2223.769 {y} -1141.832 {z} 200.0 {radius} 200.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_wanted_multiplier 0.0
clear_prints 
128@ = 2

:DRUGS4_3712
if 
  128@ == 2
goto_if_false @DRUGS4_4462
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4462
clear_area 2223.9709 {y} -1149.75 {z} 200.0 {radius} 200.0 {clearParticles} False
switch_widescreen True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:DRUGS4_3788
if 
  get_fading_status 
goto_if_false @DRUGS4_3812
wait 0
goto @DRUGS4_3788

:DRUGS4_3812
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15848
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15849
request_model 497
request_model 427
request_animation "CAR_CHAT"
load_all_models_now 

:DRUGS4_3858
if or
  not has_model_loaded 497
  not has_model_loaded 427
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_animation_loaded "CAR_CHAT"
goto_if_false @DRUGS4_3910
wait 0
goto @DRUGS4_3858

:DRUGS4_3910
34@ = create_char PedType.Mission3 {modelId} 107 {x} 2220.3701 {y} -1160.318 {z} 24.7265
set_char_heading 34@ {heading} 272.7973
task_play_anim 34@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 34@ {handleOrTemplate} 55@
set_char_never_targetted 34@ {state} True
wait 250
35@ = create_char PedType.Mission3 {modelId} 106 {x} 2221.564 {y} -1160.359 {z} 24.7265
set_char_heading 35@ {heading} 85.7682
task_play_anim 35@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 35@ {handleOrTemplate} 55@
set_char_never_targetted 35@ {state} True
36@ = create_char PedType.Mission3 {modelId} 106 {x} 2227.2241 {y} -1172.0699 {z} 24.7265
set_char_heading 36@ {heading} 359.1032
set_char_decision_maker 36@ {handleOrTemplate} 55@
set_char_never_targetted 36@ {state} True
37@ = create_char PedType.Mission3 {modelId} 107 {x} 2226.3889 {y} -1171.688 {z} 24.7265
set_char_heading 37@ {heading} 278.7767
task_play_anim 37@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 37@ {handleOrTemplate} 55@
set_char_never_targetted 37@ {state} True
load_scene_in_direction 2236.146 {y} -1146.359 {z} 25.4346 {heading} 34.0
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4326
car_set_idle $sweet_car
set_car_coordinates $sweet_car {x} 2278.4109 {y} -1147.0179 {z} 25.5
set_car_heading $sweet_car {heading} 80.53
camera_reset_new_scriptables 
set_fixed_camera_position 2236.146 {y} -1146.359 {z} 25.4346 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DRUGS4_4326
load_scene 2226.3889 {y} -1171.688 {z} 24.7265
do_fade 250 {direction} Fade.In
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4374
start_playback_recorded_car $sweet_car {path} 350

:DRUGS4_4374
camera_set_vector_move 2236.146 {fromY} -1146.359 {fromZ} 25.4346 {toX} 2236.146 {toY} -1146.359 {toZ} 25.4346 {time} 2500 {ease} True
camera_set_vector_track 2235.937 {fromY} -1145.381 {fromZ} 25.444 {toX} 2235.365 {toY} -1145.735 {toZ} 25.444 {time} 2500 {ease} True
TIMERA = 0
128@ = 3

:DRUGS4_4462
if 
  128@ == 3
goto_if_false @DRUGS4_4603
if 
  TIMERA > 2500
goto_if_false @DRUGS4_4603
142@ = 0
skip_cutscene_start_internal @DRUGS4_11249
set_fixed_camera_position 2220.675 {y} -1161.401 {z} 26.4187 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2220.948 {y} -1160.4399 {z} 26.3852 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_4589
pop_car_panel $sweet_car {panelId} 4 {visibility} False

:DRUGS4_4589
TIMERA = 0
128@ = 4

:DRUGS4_4603
if 
  128@ == 4
goto_if_false @DRUGS4_5171
if 
  TIMERA > 2750
goto_if_false @DRUGS4_5171
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_5171
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5171
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5171
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5171
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5171
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_5171
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_4755
stop_playback_recorded_car $sweet_car

:DRUGS4_4755
set_near_clip 0.1
set_car_coordinates $sweet_car {x} 2224.3569 {y} -1149.741 {z} 24.8342
set_car_heading $sweet_car {heading} 180.1644
set_fixed_camera_position 2224.384 {y} -1150.745 {z} 26.0663 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.3889 {y} -1149.749 {z} 25.9763 {switchStyle} SwitchType.JumpCut
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $sweet {animationName} "CAR_SC1_BL" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $big_smoke {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $ryder {animationName} "CAR_SC1_BR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HA' {time} 5000 {flag} 1
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_5039
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5065
wait 0
goto @DRUGS4_5039

:DRUGS4_5065
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5092
stop_char_facial_talk $sweet

:DRUGS4_5092
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15850
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HB' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000

:DRUGS4_5127
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_5153
wait 0
goto @DRUGS4_5127

:DRUGS4_5153
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk $scplayer
128@ = 5

:DRUGS4_5171
if 
  128@ == 5
goto_if_false @DRUGS4_5322
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5322
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5322
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HC' {time} 5000 {flag} 1
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_5248
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_5274
wait 0
goto @DRUGS4_5248

:DRUGS4_5274
clear_prints 
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5297
stop_char_facial_talk $sweet

:DRUGS4_5297
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15851
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15852
128@ = 6

:DRUGS4_5322
if 
  128@ == 6
goto_if_false @DRUGS4_5438
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_5438
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5438
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5438
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5438
if 
  is_char_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_5438
task_leave_car $sweet {vehicle} $sweet_car
128@ = 7

:DRUGS4_5438
if 
  128@ == 7
goto_if_false @DRUGS4_5698
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_5698
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5698
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5698
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5698
if 
  not is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_5698
set_near_clip 0.2
set_fixed_camera_position 2223.625 {y} -1146.995 {z} 26.1711 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.356 {y} -1147.677 {z} 26.2099 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2230.8101 {y} -1159.59 {z} 24.4
extend_route 2233.75 {y} -1159.83 {z} 25.29
task_follow_point_route $sweet {speed} MoveState.Run {mode} RouteMode.Once
task_play_anim $scplayer {animationName} "CAR_SC2_FL" {animationFile} "CAR_CHAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
128@ = 8

:DRUGS4_5698
if 
  128@ == 8
goto_if_false @DRUGS4_5855
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_5855
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_5855
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_5855
if 
  locate_char_on_foot_2d $sweet {x} 2233.75 {y} -1159.83 {xRadius} 2.8 {yRadius} 2.8 {drawSphere} False
goto_if_false @DRUGS4_5816
128@ = 9
goto @DRUGS4_5855

:DRUGS4_5816
if 
  TIMERA > 10000
goto_if_false @DRUGS4_5855
set_char_coordinates $sweet {x} 2233.75 {y} -1159.83 {z} 25.29

:DRUGS4_5855
if 
  128@ == 9
goto_if_false @DRUGS4_6227
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6227
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6227
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6227
set_near_clip 0.1
set_fixed_camera_position 2225.0601 {y} -1148.192 {z} 26.0902 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.447 {y} -1148.98 {z} 26.0466 {switchStyle} SwitchType.JumpCut
delete_char $sweet
task_play_anim $scplayer {animationName} "CAR_SC3_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $big_smoke {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $ryder {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HD' {time} 5000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6153
start_char_facial_talk $ryder {duration} 10000

:DRUGS4_6153
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6179
wait 0
goto @DRUGS4_6153

:DRUGS4_6179
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6200
stop_char_facial_talk $ryder

:DRUGS4_6200
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15854
TIMERA = 0
128@ = 10

:DRUGS4_6227
if 
  128@ == 10
goto_if_false @DRUGS4_6418
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6418
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6418
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_6418
set_fixed_camera_position 2224.3921 {y} -1148.606 {z} 25.9857 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.396 {y} -1149.605 {z} 25.955 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HE' {time} 5000 {flag} 1
start_char_facial_talk $scplayer {duration} 10000

:DRUGS4_6371
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_6397
wait 0
goto @DRUGS4_6371

:DRUGS4_6397
clear_prints 
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15855
128@ = 11

:DRUGS4_6418
if 
  128@ == 11
goto_if_false @DRUGS4_6693
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_6693
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6693
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6693
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HG' {time} 5000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6527
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS4_6527
40@ = create_car 497 {x} 2227.03 {y} -1130.199 {z} 25.305
start_playback_recorded_car 40@ {path} 352
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_6579
pause_playback_recorded_car 40@

:DRUGS4_6579
44@ = create_char_inside_car 40@ {pedType} PedType.Mission4 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_heli_blades_full_speed 40@

:DRUGS4_6626
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_6652
wait 0
goto @DRUGS4_6626

:DRUGS4_6652
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_6673
stop_char_facial_talk $big_smoke

:DRUGS4_6673
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15856
128@ = 12

:DRUGS4_6693
if 
  128@ == 12
goto_if_false @DRUGS4_6835
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_6835
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_6835
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_6835
set_near_clip 0.2
unpause_playback_recorded_car 40@
set_fixed_camera_position 2182.522 {y} -1083.687 {z} 61.5308 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2182.9961 {y} -1084.463 {z} 61.115 {switchStyle} SwitchType.JumpCut
TIMERA = 0
128@ = 13

:DRUGS4_6835
if 
  128@ == 13
goto_if_false @DRUGS4_7098
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_7098
if 
  TIMERA > 3000
goto_if_false @DRUGS4_7098
TIMERA = 0
set_fixed_camera_position 2232.178 {y} -1149.902 {z} 33.2809 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 40@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2228.3601 {yPoint} -1171.48 {zPoint} 25.82 {pointRadius} 5.0 {radius} 0.4
move_searchlight_between_coords 58@ {fromX} 2228.3601 {fromY} -1171.48 {fromZ} 25.82 {toX} 2215.4099 {toY} -1142.51 {toZ} 25.5 {speed} 0.5
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HH' {time} 5000 {flag} 1

:DRUGS4_7044
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_7070
wait 0
goto @DRUGS4_7044

:DRUGS4_7070
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15816
remove_animation "CAR_CHAT"
128@ = 14

:DRUGS4_7098
if 
  128@ == 14
goto_if_false @DRUGS4_7325
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_7325
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_7325
if 
  TIMERA > 3000
goto_if_false @DRUGS4_7325
stop_playback_recorded_car 40@
set_fixed_camera_position 2226.998 {y} -1144.541 {z} 25.3493 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2226.594 {y} -1145.45 {z} 25.4594 {switchStyle} SwitchType.JumpCut
start_playback_recorded_car 40@ {path} 353
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_7271
task_go_straight_to_coord 36@ {x} 2219.71 {y} -1178.52 {z} 25.34 {speed} MoveState.Run {time} -1

:DRUGS4_7271
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_7311
task_go_straight_to_coord 37@ {x} 2206.6499 {y} -1172.63 {z} 25.08 {speed} MoveState.Run {time} -1

:DRUGS4_7311
TIMERA = 0
128@ = 15

:DRUGS4_7325
if 
  128@ == 15
goto_if_false @DRUGS4_7528
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_7528
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_7528
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS4_7528
if 
  TIMERA > 2000
goto_if_false @DRUGS4_7528
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_7528
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HI' {time} 5000 {flag} 1
task_leave_any_car $scplayer
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_7514
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_7514
clear_look_at $big_smoke
clear_look_at $ryder
task_look_at_char $big_smoke {target} $scplayer {time} 15000
task_look_at_char $ryder {target} $scplayer {time} 15000

:DRUGS4_7514
TIMERA = 0
128@ = 16

:DRUGS4_7528
if 
  128@ == 16
goto_if_false @DRUGS4_8140
if 
  TIMERA > 2000
goto_if_false @DRUGS4_8140
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_8140
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8140
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_7641
task_go_straight_to_coord 36@ {x} 2203.25 {y} -1178.87 {z} 25.44 {speed} MoveState.Run {time} -1

:DRUGS4_7641
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_7681
task_go_straight_to_coord 37@ {x} 2204.1499 {y} -1153.74 {z} 25.58 {speed} MoveState.Run {time} -1

:DRUGS4_7681
set_fixed_camera_position 2224.0669 {y} -1162.707 {z} 40.9275 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.842 {y} -1163.226 {z} 40.103 {switchStyle} SwitchType.JumpCut
set_time_scale 0.5
47@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2223.5601 {y} -1168.05 {z} 32.28
give_weapon_to_char 47@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 47@ {accuracy} 30
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_CI' {time} 3000 {flag} 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15857
wait 100
48@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2222.6299 {y} -1166.01 {z} 32.25
give_weapon_to_char 48@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 48@ {accuracy} 30
wait 50
49@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2221.5801 {y} -1168.9 {z} 32.27
give_weapon_to_char 49@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 49@ {accuracy} 30
wait 100
50@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2220.74 {y} -1167.28 {z} 32.22
give_weapon_to_char 50@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_accuracy 50@ {accuracy} 30
wait 500
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_7985
give_weapon_to_char 36@ {weaponType} WeaponType.Pistol {ammo} 9999
task_duck 36@ {time} 10000

:DRUGS4_7985
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_8036
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 9999
task_go_straight_to_coord 37@ {x} 2221.179 {y} -1177.662 {z} 25.767 {speed} MoveState.Run {time} 5000

:DRUGS4_8036
set_fixed_camera_position 2222.396 {y} -1165.563 {z} 24.9959 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2222.3159 {y} -1165.83 {z} 25.9562 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 2226.144 {y} -1149.9969 {z} 24.8496
set_char_heading $scplayer {heading} 102.7208
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 60
TIMERA = 0
128@ = 17

:DRUGS4_8140
if 
  128@ == 17
goto_if_false @DRUGS4_8537
if 
  TIMERA > 1500
goto_if_false @DRUGS4_8537
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8537
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_8537
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15858
set_time_scale 1.0
set_fixed_camera_position 2222.594 {y} -1150.71 {z} 26.1976 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.4031 {y} -1150.139 {z} 26.0591 {switchStyle} SwitchType.JumpCut
TIMERA = 0
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HJ' {time} 5000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_8329
start_char_facial_talk $ryder {duration} 10000

:DRUGS4_8329
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_8355
wait 0
goto @DRUGS4_8329

:DRUGS4_8355
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_8387
stop_char_facial_talk $ryder
task_look_at_char $scplayer {target} $ryder {time} 3000

:DRUGS4_8387
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15859

:DRUGS4_8400
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8426
wait 0
goto @DRUGS4_8400

:DRUGS4_8426
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HK' {time} 5000 {flag} 1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_8470
start_char_facial_talk $big_smoke {duration} 10000

:DRUGS4_8470
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_8496
wait 0
goto @DRUGS4_8470

:DRUGS4_8496
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_8517
stop_char_facial_talk $big_smoke

:DRUGS4_8517
clear_prints 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15860
128@ = 18

:DRUGS4_8537
if 
  128@ == 18
goto_if_false @DRUGS4_9140
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_9140
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_9140
if 
  not is_char_dead 49@
goto_if_false @DRUGS4_9140
if 
  not is_char_dead 50@
goto_if_false @DRUGS4_9140
if 
  138@ == 0
goto_if_false @DRUGS4_8698
59@ = get_script_task_status 47@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 59@ == 7
goto_if_false @DRUGS4_8698
task_go_straight_to_coord 47@ {x} 2226.4299 {y} -1155.37 {z} 25.33 {speed} MoveState.Run {time} 5000
138@ = 1

:DRUGS4_8698
if 
  139@ == 0
goto_if_false @DRUGS4_8777
60@ = get_script_task_status 48@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 60@ == 7
goto_if_false @DRUGS4_8777
task_go_straight_to_coord 48@ {x} 2230.52 {y} -1165.15 {z} 25.63 {speed} MoveState.Run {time} 5000
139@ = 1

:DRUGS4_8777
if 
  140@ == 0
goto_if_false @DRUGS4_8856
61@ = get_script_task_status 49@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 61@ == 7
goto_if_false @DRUGS4_8856
task_go_straight_to_coord 49@ {x} 2217.53 {y} -1163.1801 {z} 25.27 {speed} MoveState.Run {time} 5000
140@ = 1

:DRUGS4_8856
if 
  141@ == 0
goto_if_false @DRUGS4_8935
62@ = get_script_task_status 50@ {taskId} 1283
if 
  is_int_lvar_equal_to_constant 62@ == 7
goto_if_false @DRUGS4_8935
task_go_straight_to_coord 50@ {x} 2226.25 {y} -1167.0 {z} 25.04 {speed} MoveState.Run {time} 5000
141@ = 1

:DRUGS4_8935
if 
  is_int_lvar_equal_to_constant 59@ == 7
goto_if_false @DRUGS4_9014
if 
  is_int_lvar_equal_to_constant 60@ == 7
goto_if_false @DRUGS4_9014
if 
  is_int_lvar_equal_to_constant 61@ == 7
goto_if_false @DRUGS4_9014
if 
  is_int_lvar_equal_to_constant 62@ == 7
goto_if_false @DRUGS4_9014
128@ = 21

:DRUGS4_9014
if 
  TIMERA > 3000
goto_if_false @DRUGS4_9140
task_go_straight_to_coord 47@ {x} 2226.4299 {y} -1155.37 {z} 25.33 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord 48@ {x} 2230.52 {y} -1165.15 {z} 25.63 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord 49@ {x} 2217.53 {y} -1163.1801 {z} 25.27 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord 50@ {x} 2226.25 {y} -1167.0 {z} 25.04 {speed} MoveState.Run {time} 5000
128@ = 19

:DRUGS4_9140
if 
  128@ == 19
goto_if_false @DRUGS4_9561
if 
  TIMERA > 3000
goto_if_false @DRUGS4_9561
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_9561
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_9561
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_9561
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_9561
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_9561
request_car_recording 354
request_car_recording 355
request_car_recording 356
task_shuffle_to_next_car_seat $big_smoke {vehicle} $sweet_car
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_HL' {time} 5000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @DRUGS4_9322
start_char_facial_talk $scplayer {duration} 10000

:DRUGS4_9322
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_9348
wait 0
goto @DRUGS4_9322

:DRUGS4_9348
if 
  not is_char_dead $scplayer
goto_if_false @DRUGS4_9369
stop_char_facial_talk $scplayer

:DRUGS4_9369
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1

:DRUGS4_9375
if or
  not has_car_recording_been_loaded 354
  not has_car_recording_been_loaded 355
  not has_car_recording_been_loaded 356
goto_if_false @DRUGS4_9412
wait 0
goto @DRUGS4_9375

:DRUGS4_9412
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_9436
start_playback_recorded_car $sweet_car {path} 356

:DRUGS4_9436
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_HM' {time} 3000 {flag} 1
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_9480
start_char_facial_talk $ryder {duration} 10000

:DRUGS4_9480
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_9547
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_9517
stop_playback_recorded_car 40@

:DRUGS4_9517
heli_goto_coords 40@ {x} 2217.5801 {y} -1167.67 {z} 34.61 {minAltitude} 10.0 {maxAltitude} 10.0

:DRUGS4_9547
TIMERA = 0
128@ = 20

:DRUGS4_9561
if 
  128@ == 20
goto_if_false @DRUGS4_10307
if 
  TIMERA > 2000
goto_if_false @DRUGS4_10307
42@ = create_car 427 {x} 2217.2361 {y} -1019.97 {z} 30.7
set_car_heading 42@ {heading} 176.5
switch_car_siren 42@ {state} True
start_playback_recorded_car 42@ {path} 354
45@ = create_char_inside_car 42@ {pedType} PedType.Mission4 {modelId} 285
give_weapon_to_char 45@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_char_accuracy 45@ {accuracy} 30
51@ = create_char_as_passenger 42@ {pedType} PedType.Mission4 {modelId} 285 {seat} SeatId.RearLeft
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_char_accuracy 51@ {accuracy} 30
43@ = create_car 427 {x} 2253.8899 {y} -1144.77 {z} 26.47
set_car_heading 43@ {heading} 89.947
switch_car_siren 43@ {state} True
start_playback_recorded_car 43@ {path} 355
46@ = create_char_inside_car 43@ {pedType} PedType.Mission4 {modelId} 285
set_char_accuracy 46@ {accuracy} 30
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 3000
53@ = create_char_as_passenger 43@ {pedType} PedType.Mission4 {modelId} 285 {seat} SeatId.RearLeft
set_char_accuracy 53@ {accuracy} 30
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 3000
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_9851
set_char_relationship 34@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 34@ {handleOrTemplate} 57@

:DRUGS4_9851
if 
  not is_char_dead 35@
goto_if_false @DRUGS4_9884
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 35@ {handleOrTemplate} 57@

:DRUGS4_9884
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_9917
set_char_relationship 36@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 36@ {handleOrTemplate} 57@

:DRUGS4_9917
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_9950
set_char_relationship 37@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 37@ {handleOrTemplate} 57@

:DRUGS4_9950
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_9992
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 47@ {handleOrTemplate} 57@

:DRUGS4_9992
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_10034
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 48@ {handleOrTemplate} 57@

:DRUGS4_10034
if 
  not is_char_dead 49@
goto_if_false @DRUGS4_10076
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 49@ {handleOrTemplate} 57@

:DRUGS4_10076
if 
  not is_char_dead 50@
goto_if_false @DRUGS4_10109
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 50@ {handleOrTemplate} 57@

:DRUGS4_10109
set_fixed_camera_position 2203.1631 {y} -1178.891 {z} 31.8778 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2203.897 {y} -1178.225 {z} 31.7493 {switchStyle} SwitchType.JumpCut
task_toggle_duck $scplayer {state} True
task_go_straight_to_coord $scplayer {x} 2231.5691 {y} -1155.75 {z} 25.85 {speed} MoveState.Walk {time} -1
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_10242
give_weapon_to_char 34@ {weaponType} WeaponType.Pistol {ammo} 9999
task_go_straight_to_coord 34@ {x} 2228.4209 {y} -1164.66 {z} 25.766 {speed} MoveState.Run {time} 5000

:DRUGS4_10242
if 
  not is_char_dead 35@
goto_if_false @DRUGS4_10293
give_weapon_to_char 35@ {weaponType} WeaponType.Pistol {ammo} 9999
task_go_straight_to_coord 35@ {x} 2221.47 {y} -1164.66 {z} 25.766 {speed} MoveState.Run {time} 5000

:DRUGS4_10293
TIMERB = 0
128@ = 21

:DRUGS4_10307
if 
  128@ == 21
goto_if_false @DRUGS4_10450
if 
  not is_car_dead 42@
goto_if_false @DRUGS4_10450
if 
  not is_playback_going_on_for_car 42@
goto_if_false @DRUGS4_10450
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_10400
if 
  is_char_in_car 51@ {vehicle} 42@
goto_if_false @DRUGS4_10400
task_leave_car 51@ {vehicle} 42@

:DRUGS4_10400
if 
  not is_char_dead 45@
goto_if_false @DRUGS4_10443
if 
  is_char_in_car 45@ {vehicle} 42@
goto_if_false @DRUGS4_10443
task_leave_car 45@ {vehicle} 42@

:DRUGS4_10443
128@ = 22

:DRUGS4_10450
if 
  128@ == 22
goto_if_false @DRUGS4_10751
if 
  not is_car_dead 43@
goto_if_false @DRUGS4_10751
if 
  not is_playback_going_on_for_car 43@
goto_if_false @DRUGS4_10751
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_10543
if 
  is_char_in_car 53@ {vehicle} 43@
goto_if_false @DRUGS4_10543
task_leave_car 53@ {vehicle} 43@

:DRUGS4_10543
if 
  not is_char_dead 46@
goto_if_false @DRUGS4_10586
if 
  is_char_in_car 46@ {vehicle} 43@
goto_if_false @DRUGS4_10586
task_leave_car 46@ {vehicle} 43@

:DRUGS4_10586
if 
  not is_char_dead 45@
goto_if_false @DRUGS4_10628
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 45@ {handleOrTemplate} 57@

:DRUGS4_10628
if 
  not is_char_dead 46@
goto_if_false @DRUGS4_10661
set_char_relationship 46@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 46@ {handleOrTemplate} 57@

:DRUGS4_10661
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_10694
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 51@ {handleOrTemplate} 57@

:DRUGS4_10694
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_10727
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 53@ {handleOrTemplate} 57@

:DRUGS4_10727
set_char_heading $scplayer {heading} 150.0
TIMERA = 0
128@ = 23

:DRUGS4_10751
if 
  128@ == 23
goto_if_false @DRUGS4_11205
if 
  131@ == 0
goto_if_false @DRUGS4_10834
if 
  not is_char_dead 45@
goto_if_false @DRUGS4_10834
if 
  not is_char_in_any_car 45@
goto_if_false @DRUGS4_10834
task_duck 45@ {time} 5000
131@ = 1

:DRUGS4_10834
if 
  132@ == 0
goto_if_false @DRUGS4_10916
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_10916
if 
  not is_char_in_any_car 51@
goto_if_false @DRUGS4_10916
task_go_straight_to_coord 51@ {x} 2203.77 {y} -1156.4399 {z} 25.31 {speed} MoveState.Run {time} 5000
132@ = 1

:DRUGS4_10916
if 
  134@ == 0
goto_if_false @DRUGS4_11052
if 
  not is_char_dead 46@
goto_if_false @DRUGS4_11052
if 
  not is_char_in_any_car 46@
goto_if_false @DRUGS4_11052
flush_route 
extend_route 2215.3999 {y} -1146.1899 {z} 25.85
extend_route 2214.6699 {y} -1149.71 {z} 25.47
extend_route 2204.8301 {y} -1157.04 {z} 25.88
extend_route 2209.01 {y} -1166.46 {z} 25.89
task_follow_point_route 46@ {speed} MoveState.Run {mode} RouteMode.Once
134@ = 1

:DRUGS4_11052
if 
  135@ == 0
goto_if_false @DRUGS4_11205
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_11205
if 
  not is_char_in_any_car 53@
goto_if_false @DRUGS4_11205
flush_route 
extend_route 2222.47 {y} -1146.52 {z} 25.43
extend_route 2215.3999 {y} -1146.1899 {z} 25.85
extend_route 2204.8301 {y} -1157.04 {z} 25.88
extend_route 2206.6101 {y} -1168.51 {z} 25.89
extend_route 2211.0 {y} -1171.72 {z} 25.55
task_follow_point_route 53@ {speed} MoveState.Run {mode} RouteMode.Once
135@ = 1

:DRUGS4_11205
if 
  128@ == 23
goto_if_false @DRUGS4_13313
if 
  TIMERA > 1000
goto_if_false @DRUGS4_13313
142@ = 1

:DRUGS4_11249
skip_cutscene_end 
if 
  142@ == 0
goto_if_false @DRUGS4_13179
do_fade 500 {direction} Fade.Out

:DRUGS4_11276
if 
  get_fading_status 
goto_if_false @DRUGS4_11300
wait 0
goto @DRUGS4_11276

:DRUGS4_11300
camera_reset_new_scriptables 
if 
  is_char_in_any_car $scplayer
goto_if_false @DRUGS4_11355
warp_char_from_car_to_coord $scplayer {x} 2231.5691 {y} -1155.75 {z} 24.85
set_char_heading $scplayer {heading} 150.0
goto @DRUGS4_11385

:DRUGS4_11355
set_char_coordinates $scplayer {x} 2231.5691 {y} -1155.75 {z} 24.85
set_char_heading $scplayer {heading} 150.0

:DRUGS4_11385
delete_char $sweet
delete_char $big_smoke
delete_char $ryder
unload_special_character 2
unload_special_character 3
request_model 492
request_model 107
request_model 106
request_model 353
request_model 346
request_model 285
request_model 497
request_model 427
load_all_models_now 

:DRUGS4_11448
if or
  not has_model_loaded 492
  not has_model_loaded 107
  not has_model_loaded 106
goto_if_false @DRUGS4_11483
wait 0
goto @DRUGS4_11448

:DRUGS4_11483
if or
  not has_model_loaded 353
  not has_model_loaded 346
  not has_model_loaded 285
  not has_model_loaded 497
  not has_model_loaded 427
goto_if_false @DRUGS4_11530
wait 0
goto @DRUGS4_11483

:DRUGS4_11530
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 53@
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_11632
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_11632
stop_playback_recorded_car 40@

:DRUGS4_11632
if 
  not is_car_dead 42@
goto_if_false @DRUGS4_11669
if 
  is_playback_going_on_for_car 42@
goto_if_false @DRUGS4_11669
stop_playback_recorded_car 42@

:DRUGS4_11669
if 
  not is_car_dead 43@
goto_if_false @DRUGS4_11706
if 
  is_playback_going_on_for_car 43@
goto_if_false @DRUGS4_11706
stop_playback_recorded_car 43@

:DRUGS4_11706
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_11743
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_11743
stop_playback_recorded_car $sweet_car

:DRUGS4_11743
delete_car 40@
delete_car 42@
delete_car 43@
delete_car $sweet_car
delete_searchlight 58@
42@ = create_car 427 {x} 2210.24 {y} -1159.976 {z} 24.7265
set_car_heading 42@ {heading} 191.9611
switch_car_siren 42@ {state} True
43@ = create_car 427 {x} 2218.7881 {y} -1140.993 {z} 24.7814
set_car_heading 43@ {heading} 78.1047
switch_car_siren 43@ {state} True
40@ = create_car 497 {x} 2276.22 {y} -1140.87 {z} 60.0
44@ = create_char_inside_car 40@ {pedType} PedType.Mission4 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_heli_blades_full_speed 40@
set_car_forward_speed 40@ {forwardSpeed} 10.0
heli_goto_coords 40@ {x} 2217.5801 {y} -1167.67 {z} 34.61 {minAltitude} 10.0 {maxAltitude} 10.0
set_car_coordinates 40@ {x} 2217.5801 {y} -1167.67 {z} 34.61
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2228.3601 {yPoint} -1171.48 {zPoint} 25.82 {pointRadius} 5.0 {radius} 0.4
move_searchlight_between_coords 58@ {fromX} 2228.3601 {fromY} -1171.48 {fromZ} 25.82 {toX} 2215.4099 {toY} -1142.51 {toZ} 25.5 {speed} 0.5
46@ = create_char PedType.Mission4 {modelId} 285 {x} 2209.01 {y} -1166.46 {z} 24.89
give_weapon_to_char 46@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 46@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 46@ {accuracy} 30
45@ = create_char PedType.Mission4 {modelId} 285 {x} 2213.52 {y} -1161.97 {z} 24.77
give_weapon_to_char 45@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 45@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 45@ {accuracy} 30
51@ = create_char PedType.Mission4 {modelId} 285 {x} 2203.77 {y} -1156.4399 {z} 24.31
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 51@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 51@ {accuracy} 30
53@ = create_char PedType.Mission4 {modelId} 285 {x} 2212.95 {y} -1179.16 {z} 24.31
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 53@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 53@ {accuracy} 30
47@ = create_char PedType.Mission4 {modelId} 285 {x} 2226.4299 {y} -1155.37 {z} 24.33
give_weapon_to_char 47@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 47@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 47@ {accuracy} 30
48@ = create_char PedType.Mission4 {modelId} 285 {x} 2230.52 {y} -1165.15 {z} 24.63
give_weapon_to_char 48@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 48@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 48@ {accuracy} 30
49@ = create_char PedType.Mission4 {modelId} 285 {x} 2217.53 {y} -1163.1801 {z} 24.27
give_weapon_to_char 49@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 49@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 49@ {accuracy} 30
50@ = create_char PedType.Mission4 {modelId} 285 {x} 2226.25 {y} -1167.0 {z} 24.04
give_weapon_to_char 50@ {weaponType} WeaponType.Mp5 {ammo} 3000
task_turn_char_to_face_coord 50@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_accuracy 50@ {accuracy} 30
34@ = create_char PedType.Mission3 {modelId} 107 {x} 2228.4209 {y} -1164.66 {z} 24.766
task_turn_char_to_face_coord 34@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 34@ {handleOrTemplate} 57@
give_weapon_to_char 34@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 34@ {accuracy} 30
set_char_never_targetted 34@ {state} True
35@ = create_char PedType.Mission3 {modelId} 107 {x} 2221.47 {y} -1164.66 {z} 24.766
task_turn_char_to_face_coord 35@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 35@ {handleOrTemplate} 57@
give_weapon_to_char 35@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 35@ {accuracy} 40
set_char_never_targetted 35@ {state} True
36@ = create_char PedType.Mission3 {modelId} 106 {x} 2227.2241 {y} -1172.0699 {z} 24.7265
task_turn_char_to_face_coord 36@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 36@ {handleOrTemplate} 57@
give_weapon_to_char 36@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 36@ {accuracy} 30
set_char_never_targetted 36@ {state} True
37@ = create_char PedType.Mission3 {modelId} 106 {x} 2221.179 {y} -1177.662 {z} 24.767
task_turn_char_to_face_coord 37@ {x} 2217.8701 {y} -1162.6 {z} 25.33
set_char_decision_maker 37@ {handleOrTemplate} 57@
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 37@ {accuracy} 40
set_char_never_targetted 37@ {state} True
set_char_relationship 34@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 34@ {handleOrTemplate} 57@
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 35@ {handleOrTemplate} 57@
set_char_relationship 36@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 36@ {handleOrTemplate} 57@
set_char_relationship 37@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 37@ {handleOrTemplate} 57@
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 45@ {handleOrTemplate} 57@
set_char_relationship 46@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 46@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 46@ {handleOrTemplate} 57@
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 47@ {handleOrTemplate} 57@
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 48@ {handleOrTemplate} 57@
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 49@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 49@ {handleOrTemplate} 57@
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 50@ {handleOrTemplate} 57@
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 51@ {handleOrTemplate} 57@
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 53@ {handleOrTemplate} 57@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_time_scale 1.0
restore_camera_jumpcut 
switch_widescreen False
set_camera_behind_player 
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 60
set_char_heading $scplayer {heading} 192.0
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In

:DRUGS4_13179
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_13203
set_car_health 40@ {health} 700

:DRUGS4_13203
delete_char $big_smoke
delete_char $ryder
delete_car $sweet_car
mark_model_as_no_longer_needed 492
unload_special_character 2
unload_special_character 3
remove_animation "CAR_CHAT"
clear_prints 
restore_camera_jumpcut 
remove_blip 184@
remove_blip 183@
184@ = add_blip_for_coord 2235.3 {y} -1159.67 {z} 25.94
switch_widescreen False
set_camera_behind_player 
set_player_control $player1 {state} True
print_now 'LAF1_17' {time} 10000 {flag} 1
128@ = 24

:DRUGS4_13313
if 
  128@ == 24
goto_if_false @DRUGS4_15336
if 
  143@ == 0
goto_if_false @DRUGS4_13382
if 
  is_car_dead 40@
goto_if_false @DRUGS4_13382
mark_model_as_no_longer_needed 497
delete_searchlight 58@
143@ = 1

:DRUGS4_13382
if 
  144@ == 0
goto_if_false @DRUGS4_13428
if 
  is_car_dead 42@
goto_if_false @DRUGS4_13428
mark_car_as_no_longer_needed 42@
144@ = 1

:DRUGS4_13428
if 
  145@ == 0
goto_if_false @DRUGS4_13474
if 
  is_car_dead 43@
goto_if_false @DRUGS4_13474
mark_car_as_no_longer_needed 43@
145@ = 1

:DRUGS4_13474
if 
  144@ == 1
goto_if_false @DRUGS4_13529
if 
  145@ == 1
goto_if_false @DRUGS4_13529
mark_model_as_no_longer_needed 427
144@ = 2
145@ = 2

:DRUGS4_13529
64@ = get_char_area_visible $scplayer
if 
  64@ == 15
goto_if_false @DRUGS4_15336
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 53@
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_car 40@
delete_car 42@
delete_car 43@
delete_searchlight 58@
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 427
132@ = 0
133@ = 0
135@ = 0
136@ = 0
138@ = 0
138@ = 0
set_player_control $player1 {state} False
remove_blip 184@
remove_animation "CAR_CHAT"
34@ = create_char PedType.Mission1 {modelId} 106 {x} 2229.5659 {y} -1150.495 {z} 1029.0
set_char_has_used_entry_exit 34@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 34@ {heading} 86.6836
set_char_never_targetted 34@ {state} True
set_char_decision_maker 34@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 34@ {state} 55@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15863
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15805
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32401
request_animation "SWAT"
request_model 63
request_model #IMY_SKYLIGHT
request_model #KMB_TROLLEY
request_animation "KISSING"
load_all_models_now 

:DRUGS4_13854
if or
  not has_animation_loaded "SWAT"
  not has_model_loaded 63
  not has_model_loaded #IMY_SKYLIGHT
  not has_animation_loaded "KISSING"
  not has_model_loaded #KMB_TROLLEY
goto_if_false @DRUGS4_13909
wait 0
goto @DRUGS4_13854

:DRUGS4_13909
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRUGS4_13943
wait 0
goto @DRUGS4_13909

:DRUGS4_13943
127@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2240.686 {y} -1187.269 {z} 1033.8361
93@ = create_object_no_offset #IMY_SKYLIGHT {x} 2246.0701 {y} -1191.2419 {z} 1037.234
84@ = create_object_no_offset #LXR_MOTEL_DOORSIM {x} 2239.4319 {y} -1170.749 {z} 1029.9969
set_object_heading 84@ {heading} 270.0
85@ = create_object_no_offset #LXR_MOTELVENT {x} 2217.072 {y} -1188.6639 {z} 1032.276
set_object_heading 85@ {heading} 180.0
86@ = create_object #LXR_MOTELVENT {x} 2193.188 {y} -1164.511 {z} 1032.276
set_object_heading 86@ {heading} 90.0
freeze_object_position 85@ {state} True
freeze_object_position 86@ {state} True
82@ = create_char PedType.Mission1 {modelId} 63 {x} 2227.1599 {y} -1148.02 {z} 1029.0
set_char_has_used_entry_exit 82@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_never_targetted 82@ {state} True
set_char_decision_maker 82@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 82@ {state} True
$sweet = create_char PedType.Special {modelId} 290 {x} 2202.23 {y} -1156.9139 {z} 1029.8521
set_char_has_used_entry_exit $sweet {x} 2232.4099 {y} -1160.04 {radius} 3.0
set_char_area_visible $sweet {areaId} 15
set_char_suffers_critical_hits $sweet {state} False
set_char_heading $sweet {heading} 62.083
set_char_never_targetted $sweet {state} True
set_char_only_damaged_by_player $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 55@
183@ = add_blip_for_char $sweet
set_blip_as_friendly 183@ {state} True
set_char_health $sweet {health} 1000
give_weapon_to_char $sweet {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_proofs $sweet {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
66@ = create_char PedType.Mission1 {modelId} 106 {x} 2220.5239 {y} -1137.826 {z} 1026.798
set_char_has_used_entry_exit 66@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 66@ {heading} 181.8677
task_play_anim_non_interruptable 66@ {animationName} "GNSTWALL_INJURD" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_proofs 66@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_never_targetted 66@ {state} True
set_char_decision_maker 66@ {handleOrTemplate} 55@
set_char_bleeding 66@ {state} True
set_char_only_damaged_by_player 66@ {state} True
35@ = create_char PedType.Mission1 {modelId} 106 {x} 2234.9199 {y} -1149.63 {z} 1029.0
set_char_decision_maker 35@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 35@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
52@ = create_char PedType.Mission2 {modelId} 285 {x} 2239.3091 {y} -1151.724 {z} 1028.7791
set_char_heading 52@ {heading} 177.9528
give_weapon_to_char 52@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 52@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 52@ {state} True
set_char_health 52@ {health} 100
set_char_has_used_entry_exit 52@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
83@ = create_char PedType.Mission1 {modelId} 63 {x} 2234.99 {y} -1159.55 {z} 1029.84
set_char_heading 83@ {heading} 267.0618
set_char_never_targetted 83@ {state} True
set_char_decision_maker 83@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 83@ {state} True
set_char_has_used_entry_exit 83@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_proofs 83@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
53@ = create_char PedType.Mission2 {modelId} 285 {x} 2238.8169 {y} -1170.598 {z} 1028.813
set_char_heading 53@ {heading} 272.0738
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 53@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 53@ {state} True
set_char_health 53@ {health} 150
set_char_shoot_rate 53@ {rate} 80
set_char_has_used_entry_exit 53@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
36@ = create_char PedType.Mission3 {modelId} 106 {x} 2244.5 {y} -1189.627 {z} 1028.8
set_char_heading 36@ {heading} 88.196
set_char_only_damaged_by_player 36@ {state} True
give_weapon_to_char 36@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_never_targetted 36@ {state} True
set_char_accuracy 36@ {accuracy} 10
set_char_relationship 36@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission4
set_char_decision_maker 36@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 36@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
37@ = create_char PedType.Mission3 {modelId} 107 {x} 2241.05 {y} -1192.373 {z} 1028.798
set_char_heading 37@ {heading} 358.2577
set_char_only_damaged_by_player 37@ {state} True
give_weapon_to_char 37@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 37@ {accuracy} 10
set_char_never_targetted 37@ {state} True
set_char_decision_maker 37@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 37@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
38@ = create_char PedType.Mission1 {modelId} 106 {x} 2240.156 {y} -1186.704 {z} 1028.798
set_char_heading 38@ {heading} 90.1792
set_char_only_damaged_by_player 38@ {state} True
give_weapon_to_char 38@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_never_targetted 38@ {state} True
set_char_decision_maker 38@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 38@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
67@ = create_char PedType.Mission1 {modelId} 107 {x} 2234.8401 {y} -1191.202 {z} 1029.845
set_char_heading 67@ {heading} 272.171
set_char_only_damaged_by_player 67@ {state} True
set_char_never_targetted 67@ {state} True
task_play_anim_non_interruptable 67@ {animationName} "GNSTWALL_INJURD" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_bleeding 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 55@
set_char_has_used_entry_exit 67@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
65@ = create_fx_system "EXPLOSION_DOOR" {x} 2239.51 {y} -1170.77 {z} 1029.84 {ignoreBoundingChecks} True
set_char_has_used_entry_exit $scplayer {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_coordinates $scplayer {x} 2216.3401 {y} -1150.509 {z} 1024.85
set_player_control $player1 {state} True
set_camera_behind_player 
switch_entry_exit 'MOTEL1' {state} False
print_help 'LAF1_7'
print_now 'LAF1_6' {time} 5000 {flag} 1
178@ = 0
179@ = 0
128@ = 25
146@ = 1

:DRUGS4_15336
if 
  172@ == 0
goto_if_false @DRUGS4_29398
if 
  146@ == 1
goto_if_false @DRUGS4_29398
if 
  147@ == 0
goto_if_false @DRUGS4_15980
clear_prints 
97@ = create_object_no_offset #KMB_TROLLEY {x} 2242.4331 {y} -1166.712 {z} 1029.304
set_object_health 97@ {health} 150
set_object_only_damaged_by_player 97@ {state} True
98@ = create_object_no_offset #KMB_TROLLEY {x} 2240.1101 {y} -1174.9189 {z} 1029.304
set_object_health 98@ {health} 250
99@ = create_object_no_offset #KMB_TROLLEY {x} 2229.8701 {y} -1189.845 {z} 1029.304
set_object_heading 99@ {heading} 90.0
set_object_health 99@ {health} 150
set_object_only_damaged_by_player 99@ {state} True
100@ = create_object_no_offset #KMB_TROLLEY {x} 2217.5691 {y} -1187.528 {z} 1029.304
set_object_heading 100@ {heading} 90.0
set_object_health 100@ {health} 250
set_object_only_damaged_by_player 100@ {state} True
101@ = create_object_no_offset #KMB_TROLLEY {x} 2204.6489 {y} -1187.5439 {z} 1029.304
set_object_heading 101@ {heading} 90.0
set_object_health 101@ {health} 150
set_object_only_damaged_by_player 101@ {state} True
102@ = create_object_no_offset #KMB_TROLLEY {x} 2194.345 {y} -1171.269 {z} 1029.304
set_object_health 102@ {health} 250
103@ = create_object_no_offset #KMB_TROLLEY {x} 2192.0791 {y} -1166.364 {z} 1029.304
set_object_health 103@ {health} 150
set_object_only_damaged_by_player 103@ {state} True
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_15853
set_char_health 82@ {health} 1
109@ = open_sequence_task 
flush_route 
extend_route 2227.25 {y} -1139.12 {z} 1029.84
extend_route 2221.1699 {y} -1139.09 {z} 1027.84
extend_route 2221.6399 {y} -1145.11 {z} 1025.84
extend_route 2224.5559 {y} -1145.901 {z} 1025.85
extend_route 2224.4651 {y} -1142.276 {z} 1025.85
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
task_play_anim -1 {animationName} "COWER" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 56@
close_sequence_task 109@
perform_sequence_task 82@ {sequence} 109@
clear_sequence_task 109@

:DRUGS4_15853
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_15910
task_play_anim_with_flags 34@ {animationName} "RAIL_FALL" {animationFile} "SWAT" {frameDelta} 8.0 {loop} False {lockX} False {lockY} False {lockF} True {time} -1 {disableForce} False {disableLockZ} True

:DRUGS4_15910
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_15973
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_15973
set_lvar_int_to_lvar_int 118@ = 52@
set_lvar_int_to_lvar_int 119@ = 34@
set_lvar_int_to_var_int 120@ = $scplayer
gosub @DRUGS4_67005

:DRUGS4_15973
147@ = 1

:DRUGS4_15980
if 
  147@ == 1
goto_if_false @DRUGS4_16131
if 
  not is_char_dead 34@
goto_if_false @DRUGS4_16131
if 
  is_char_playing_anim 34@ {animationName} "RAIL_FALL"
goto_if_false @DRUGS4_16131
96@ = get_char_anim_current_time 34@ {animationName} "RAIL_FALL"
if 
  96@ == 1.0
goto_if_false @DRUGS4_16131
task_play_anim_non_interruptable 34@ {animationName} "RAIL_FALL_CRAWL" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
147@ = 2

:DRUGS4_16131
if 
  149@ == 0
goto_if_false @DRUGS4_16527
if 
  not is_char_dead 66@
goto_if_false @DRUGS4_16527
if 
  locate_char_any_means_char_3d 66@ {target} $scplayer {xRadius} 4.5 {yRadius} 4.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_16527
51@ = create_char PedType.Mission2 {modelId} 285 {x} 2229.4619 {y} -1150.524 {z} 1028.845
set_char_has_used_entry_exit 51@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 51@ {heading} 358.795
give_weapon_to_char 51@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 51@ {handleOrTemplate} 55@
set_char_accuracy 51@ {accuracy} 50
set_char_only_damaged_by_player 51@ {state} True
set_char_health 51@ {health} 150
set_char_max_health 51@ {maxHealth} 150
delete_char 52@
52@ = create_char PedType.Mission2 {modelId} 285 {x} 2239.3091 {y} -1151.724 {z} 1029.2791
set_char_has_used_entry_exit 52@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 52@ {heading} 177.9528
give_weapon_to_char 52@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 52@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 52@ {state} True
set_char_accuracy 52@ {accuracy} 80
if 
  133@ == 0
goto_if_false @DRUGS4_16520
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_16520
set_lvar_int_to_lvar_int 118@ = 52@
if 
  not is_char_dead 38@
goto_if_false @DRUGS4_16520
set_lvar_int_to_lvar_int 119@ = 38@
161@ = 1
122@ = 2241.78
123@ = -1194.52
124@ = 1031.38
gosub @DRUGS4_67216
161@ = 0
133@ = 1

:DRUGS4_16520
149@ = 1

:DRUGS4_16527
if 
  148@ == 0
goto_if_false @DRUGS4_19414
if 
  150@ == 0
goto_if_false @DRUGS4_16591
if 
  not is_char_dead 35@
goto_if_false @DRUGS4_16591
explode_char_head 35@
150@ = 1

:DRUGS4_16591
if 
  132@ == 0
goto_if_false @DRUGS4_16703
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_16703
if or
  locate_char_any_means_3d $scplayer {x} 2229.5911 {y} -1150.647 {z} 1028.798 {xRadius} 7.2 {yRadius} 7.2 {zRadius} 1.5 {drawSphere} False
  has_char_been_damaged_by_char 51@ {handle} $scplayer
goto_if_false @DRUGS4_16703
set_lvar_int_to_lvar_int 118@ = 51@
gosub @DRUGS4_67133
132@ = 1

:DRUGS4_16703
if 
  133@ == 1
goto_if_false @DRUGS4_16803
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_16803
if or
  has_char_been_damaged_by_char 52@ {handle} $scplayer
  locate_char_any_means_char_3d 52@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_16803
set_char_accuracy 52@ {accuracy} 50
task_kill_char_on_foot 52@ {target} $scplayer
133@ = 2

:DRUGS4_16803
if 
  137@ == 0
goto_if_false @DRUGS4_17207
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2243.8 {leftBottomY} -1147.9301 {leftBottomZ} 1025.16 {rightTopX} 2238.74 {rightTopY} -1162.62 {rightTopZ} 1033.79 {drawSphere} False
goto_if_false @DRUGS4_17207
152@ = 1
if 
  180@ == 0
goto_if_false @DRUGS4_16987
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_16987
set_char_health 83@ {health} 150
126@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2249.355 {y} -1159.683 {z} 1029.797 {speed} MoveState.Sprint {time} 10000
task_achieve_heading -1 {heading} 87.888
task_stay_in_same_place -1 {state} True
close_sequence_task 126@
perform_sequence_task 83@ {sequence} 126@
clear_sequence_task 126@
180@ = 1

:DRUGS4_16987
69@ = create_char PedType.Mission1 {modelId} 285 {x} 2228.6069 {y} -1189.7209 {z} 1028.798
set_char_has_used_entry_exit 69@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 69@ {heading} 266.5963
give_weapon_to_char 69@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 69@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 69@ {state} True
set_char_health 69@ {health} 150
set_char_max_health 69@ {maxHealth} 150
set_char_uses_upperbody_damage_anims_only 69@ {state} True
70@ = create_char PedType.Mission1 {modelId} 285 {x} 2225.7959 {y} -1186.783 {z} 1028.798
set_char_has_used_entry_exit 70@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 70@ {heading} 273.6395
give_weapon_to_char 70@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 70@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 70@ {state} True
set_char_accuracy 70@ {accuracy} 80
set_char_health 70@ {health} 150
set_char_max_health 70@ {maxHealth} 150
TIMERB = 0
137@ = 1

:DRUGS4_17207
if 
  137@ == 1
goto_if_false @DRUGS4_17280
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2243.0 {leftBottomY} -1154.3 {leftBottomZ} 1025.16 {rightTopX} 2238.74 {rightTopY} -1170.62 {rightTopZ} 1033.79 {drawSphere} False
goto_if_false @DRUGS4_17280
137@ = 2

:DRUGS4_17280
if 
  137@ == 2
goto_if_false @DRUGS4_17710
71@ = create_char PedType.Mission1 {modelId} 285 {x} 2187.48 {y} -1186.9 {z} 1033.3
set_char_has_used_entry_exit 71@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 71@ {heading} 274.247
give_weapon_to_char 71@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 71@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 71@ {state} True
set_char_accuracy 71@ {accuracy} 80
set_char_health 71@ {health} 150
set_char_max_health 71@ {maxHealth} 150
72@ = create_char PedType.Mission1 {modelId} 285 {x} 2186.6111 {y} -1183.962 {z} 1033.837
set_char_has_used_entry_exit 72@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 72@ {heading} 286.2857
give_weapon_to_char 72@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 72@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 72@ {state} True
set_char_health 72@ {health} 150
set_char_max_health 72@ {maxHealth} 150
set_char_uses_upperbody_damage_anims_only 72@ {state} True
73@ = create_char PedType.Mission1 {modelId} 285 {x} 2190.157 {y} -1182.068 {z} 1033.829
set_char_has_used_entry_exit 73@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 73@ {heading} 183.8877
give_weapon_to_char 73@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 73@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 73@ {state} True
set_char_health 73@ {health} 150
set_char_max_health 73@ {maxHealth} 150
74@ = create_char PedType.Mission1 {modelId} 285 {x} 2188.5791 {y} -1184.78 {z} 1028.798
set_char_has_used_entry_exit 74@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 74@ {heading} 246.3679
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 74@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 74@ {state} True
set_char_health 74@ {health} 150
set_char_uses_upperbody_damage_anims_only 74@ {state} True
137@ = 3

:DRUGS4_17710
if 
  137@ == 3
goto_if_false @DRUGS4_17888
if 
  135@ == 0
goto_if_false @DRUGS4_17888
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_17888
if 
  does_object_exist 84@
goto_if_false @DRUGS4_17792
set_object_collision 84@ {state} False
break_object 84@ {intensity} 1

:DRUGS4_17792
if 
  181@ == 0
goto_if_false @DRUGS4_17821
play_mission_audio MissionAudioSlot.Slot2
181@ = 1

:DRUGS4_17821
play_and_kill_fx_system 65@
task_play_anim 53@ {animationName} "SWT_BREACH_01" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
135@ = 1
TIMERB = 0
137@ = 4

:DRUGS4_17888
if 
  137@ == 4
goto_if_false @DRUGS4_18100
if 
  136@ == 0
goto_if_false @DRUGS4_18100
if 
  TIMERB > 667
goto_if_false @DRUGS4_18100
54@ = create_char PedType.Mission2 {modelId} 285 {x} 2238.3169 {y} -1170.598 {z} 1028.813
set_char_heading 54@ {heading} 272.0738
give_weapon_to_char 54@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 54@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 54@ {state} True
set_char_health 54@ {health} 150
set_char_shoot_rate 54@ {rate} 80
set_char_has_used_entry_exit 54@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
task_play_anim 54@ {animationName} "SWT_BREACH_02" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
TIMERB = 0
136@ = 1
137@ = 5

:DRUGS4_18100
if 
  137@ == 5
goto_if_false @DRUGS4_18305
if 
  154@ == 0
goto_if_false @DRUGS4_18305
if 
  TIMERB > 333
goto_if_false @DRUGS4_18305
68@ = create_char PedType.Mission2 {modelId} 285 {x} 2237.8181 {y} -1170.598 {z} 1028.813
set_char_heading 68@ {heading} 272.0738
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 68@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 68@ {state} True
set_char_health 68@ {health} 150
set_char_shoot_rate 68@ {rate} 80
set_char_has_used_entry_exit 68@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
task_play_anim 68@ {animationName} "SWT_BREACH_03" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
154@ = 1
137@ = 6

:DRUGS4_18305
if 
  135@ == 1
goto_if_false @DRUGS4_18425
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_18425
87@ = get_script_task_status 53@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 87@ == 7
  locate_char_any_means_char_2d 53@ {target} $scplayer {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @DRUGS4_18425
set_char_uses_upperbody_damage_anims_only 53@ {state} True
set_lvar_int_to_lvar_int 118@ = 53@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66916
135@ = 2

:DRUGS4_18425
if 
  136@ == 1
goto_if_false @DRUGS4_18554
if 
  not is_char_dead 54@
goto_if_false @DRUGS4_18554
88@ = get_script_task_status 54@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 88@ == 7
  locate_char_any_means_char_2d 54@ {target} $scplayer {xRadius} 4.5 {yRadius} 4.5 {drawSphere} False
goto_if_false @DRUGS4_18554
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_18547
set_lvar_int_to_lvar_int 118@ = 54@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66916

:DRUGS4_18547
136@ = 2

:DRUGS4_18554
if 
  154@ == 1
goto_if_false @DRUGS4_18667
if 
  not is_char_dead 68@
goto_if_false @DRUGS4_18667
89@ = get_script_task_status 68@ {taskId} 1541
if or
  is_int_lvar_equal_to_constant 89@ == 7
  locate_char_any_means_char_2d 68@ {target} $scplayer {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_18667
set_lvar_int_to_lvar_int 118@ = 68@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66916
154@ = 2

:DRUGS4_18667
if 
  180@ == 1
goto_if_false @DRUGS4_19182
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19182
if 
  locate_stopped_char_on_foot_3d 83@ {x} 2249.3501 {y} -1159.683 {z} 1028.79 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_19182
if 
  not has_char_been_damaged_by_char 83@ {handle} $scplayer
goto_if_false @DRUGS4_19182
if 
  locate_char_on_foot_3d $scplayer {x} 2248.3501 {y} -1159.683 {z} 1028.79 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_19182
clear_area 2248.3501 {y} -1159.683 {z} 20.0 {radius} 20.0 {clearParticles} False
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2247.0471 {y} -1157.281 {z} 1030.5811 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2247.6179 {y} -1158.0291 {z} 1030.244 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 83@
set_char_coordinates 83@ {x} 2249.3501 {y} -1159.683 {z} 1028.79
set_char_heading 83@ {heading} 87.888
set_char_coordinates $scplayer {x} 2248.3501 {y} -1159.683 {z} 1028.79
set_char_heading $scplayer {heading} 267.888
clear_mission_audio MissionAudioSlot.Slot1
if 
  179@ <> 0
goto_if_false @DRUGS4_19010
179@ = 0
178@ += 1

:DRUGS4_19010
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15823

:DRUGS4_19017
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_19043
wait 0
goto @DRUGS4_19017

:DRUGS4_19043
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_DC' {time} 3000 {flag} 1
task_play_anim_non_interruptable $scplayer {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19168
task_play_anim_non_interruptable 83@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS4_19168
set_char_health $scplayer {health} 100
180@ = 2

:DRUGS4_19182
if 
  180@ == 2
goto_if_false @DRUGS4_19286
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19286
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_19286
if 
  is_char_playing_anim 83@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_19286
180@ = 3

:DRUGS4_19286
if 
  180@ == 3
goto_if_false @DRUGS4_19414
if 
  not is_char_dead 83@
goto_if_false @DRUGS4_19414
if 
  not is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_19414
if 
  not is_char_playing_anim 83@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_19414
set_char_health 83@ {health} 5
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
180@ = 4

:DRUGS4_19414
if 
  152@ == 1
goto_if_false @DRUGS4_19699
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_19493
set_lvar_int_to_lvar_int 118@ = 36@
122@ = 2232.4099
123@ = -1188.66
124@ = 1030.26
gosub @DRUGS4_66788

:DRUGS4_19493
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_19554
set_lvar_int_to_lvar_int 118@ = 37@
122@ = 2233.3501
123@ = -1187.99
124@ = 1030.4
gosub @DRUGS4_66788

:DRUGS4_19554
if 
  not is_char_dead 38@
goto_if_false @DRUGS4_19653
set_lvar_int_to_lvar_int 118@ = 38@
if 
  not is_char_dead 69@
goto_if_false @DRUGS4_19653
set_lvar_int_to_lvar_int 119@ = 69@
122@ = 2186.49
123@ = -1189.1801
124@ = 1030.97
161@ = 1
gosub @DRUGS4_67216
161@ = 0

:DRUGS4_19653
if 
  not is_char_dead 69@
goto_if_false @DRUGS4_19692
set_lvar_int_to_lvar_int 118@ = 69@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66916

:DRUGS4_19692
152@ = 2

:DRUGS4_19699
if 
  152@ == 2
goto_if_false @DRUGS4_20607
if 
  locate_char_any_means_2d $scplayer {x} 2235.48 {y} -1188.77 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS4_20607
if 
  not is_char_dead 70@
goto_if_false @DRUGS4_19786
set_lvar_int_to_lvar_int 118@ = 70@
gosub @DRUGS4_67481

:DRUGS4_19786
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 82@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 35@
mark_char_as_no_longer_needed 52@
remove_char_elegantly 83@
if 
  is_char_dead 53@
goto_if_false @DRUGS4_19842
mark_char_as_no_longer_needed 53@

:DRUGS4_19842
if 
  is_char_dead 54@
goto_if_false @DRUGS4_19863
mark_char_as_no_longer_needed 54@

:DRUGS4_19863
if 
  is_char_dead 68@
goto_if_false @DRUGS4_19884
mark_char_as_no_longer_needed 68@

:DRUGS4_19884
75@ = create_char PedType.Mission1 {modelId} 285 {x} 2216.605 {y} -1188.611 {z} 1032.27
set_char_has_used_entry_exit 75@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 75@ {heading} 264.4329
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 75@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 75@ {state} True
set_char_health 75@ {health} 150
set_char_accuracy 75@ {accuracy} 80
76@ = create_char PedType.Mission1 {modelId} 285 {x} 2216.1311 {y} -1188.611 {z} 1032.27
set_char_has_used_entry_exit 76@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 76@ {heading} 264.4329
give_weapon_to_char 76@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 76@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 76@ {state} True
set_char_health 76@ {health} 150
set_char_accuracy 76@ {accuracy} 80
77@ = create_char PedType.Mission1 {modelId} 285 {x} 2193.1289 {y} -1164.661 {z} 1032.269
set_char_has_used_entry_exit 77@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 77@ {heading} 4.98
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 77@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 77@ {state} True
set_char_never_targetted 77@ {state} True
set_char_health 77@ {health} 1000
78@ = create_char PedType.Mission1 {modelId} 285 {x} 2195.489 {y} -1172.941 {z} 1029.859
set_char_has_used_entry_exit 78@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 78@ {heading} 181.323
give_weapon_to_char 78@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 78@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 78@ {state} True
set_char_health 78@ {health} 120
79@ = create_char PedType.Mission1 {modelId} 285 {x} 2191.9871 {y} -1165.214 {z} 1029.8521
set_char_has_used_entry_exit 79@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 79@ {heading} 181.323
give_weapon_to_char 79@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 79@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 79@ {state} True
set_char_health 79@ {health} 150
set_char_max_health 79@ {maxHealth} 150
80@ = create_char PedType.Mission1 {modelId} 285 {x} 2190.698 {y} -1156.6331 {z} 1029.859
set_char_has_used_entry_exit 80@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 80@ {heading} 189.575
give_weapon_to_char 80@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 80@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 80@ {state} True
set_char_accuracy 80@ {accuracy} 30
81@ = create_char PedType.Mission1 {modelId} 285 {x} 2194.593 {y} -1156.995 {z} 1029.8521
set_char_has_used_entry_exit 81@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_heading 81@ {heading} 275.754
give_weapon_to_char 81@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_decision_maker 81@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 81@ {state} True
82@ = create_char PedType.Mission1 {modelId} 63 {x} 2192.9099 {y} -1182.15 {z} 1029.35
set_char_has_used_entry_exit 82@ {x} 2232.4099 {y} -1160.04 {radius} 20.0
set_char_never_targetted 82@ {state} True
set_char_decision_maker 82@ {handleOrTemplate} 55@
set_char_proofs 82@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
152@ = 3
153@ = 1

:DRUGS4_20607
if 
  173@ == 0
goto_if_false @DRUGS4_20710
if 
  locate_char_on_foot_3d $scplayer {x} 2241.3401 {y} -1186.11 {z} 1029.76 {xRadius} 6.6 {yRadius} 6.6 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_20710
if 
  does_object_exist 93@
goto_if_false @DRUGS4_20696
break_object 93@ {intensity} 1

:DRUGS4_20696
shut_char_up $scplayer {state} True
173@ = 1

:DRUGS4_20710
if 
  173@ == 1
goto_if_false @DRUGS4_20928
47@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2246.4199 {y} -1192.88 {z} 1039.5
give_weapon_to_char 47@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 47@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 47@ {handleOrTemplate} 57@
set_char_only_damaged_by_player 47@ {state} True
set_char_health 47@ {health} 150
set_char_max_health 47@ {maxHealth} 150
set_char_accuracy 47@ {accuracy} 80
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_20859
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_20859
task_kill_char_on_foot 37@ {target} 47@

:DRUGS4_20859
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_20914
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_20914
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 47@
gosub @DRUGS4_66916

:DRUGS4_20914
TIMERA = 0
173@ = 2

:DRUGS4_20928
if 
  173@ == 2
goto_if_false @DRUGS4_21212
if 
  TIMERA > 1000
goto_if_false @DRUGS4_21212
48@ = create_swat_rope PedType.Mission4 {modelId} 285 {x} 2246.1101 {y} -1189.55 {z} 1038.09
give_weapon_to_char 48@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission3
set_char_decision_maker 48@ {handleOrTemplate} 57@
set_char_only_damaged_by_player 48@ {state} True
set_char_health 48@ {health} 125
set_char_max_health 48@ {maxHealth} 125
set_char_accuracy 48@ {accuracy} 80
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_21179
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_21140
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_21133
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 47@
set_lvar_int_to_lvar_int 120@ = 48@
gosub @DRUGS4_67005

:DRUGS4_21133
goto @DRUGS4_21179

:DRUGS4_21140
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_21179
set_lvar_int_to_lvar_int 118@ = 36@
set_lvar_int_to_lvar_int 119@ = 48@
gosub @DRUGS4_66916

:DRUGS4_21179
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_21200
task_die 37@

:DRUGS4_21200
mark_model_as_no_longer_needed #IMY_SKYLIGHT
173@ = 3

:DRUGS4_21212
if 
  173@ > 2
goto_if_false @DRUGS4_21430
if 
  138@ == 0
goto_if_false @DRUGS4_21337
if 
  not is_char_dead 47@
goto_if_false @DRUGS4_21337
59@ = get_script_task_status 47@ {taskId} 1283
if or
  is_int_lvar_equal_to_constant 59@ == 7
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @DRUGS4_21337
task_kill_char_on_foot 47@ {target} $scplayer
if 
  not is_char_dead 37@
goto_if_false @DRUGS4_21330
explode_char_head 37@

:DRUGS4_21330
138@ = 1

:DRUGS4_21337
if 
  139@ == 0
goto_if_false @DRUGS4_21430
if 
  not is_char_dead 48@
goto_if_false @DRUGS4_21430
60@ = get_script_task_status 48@ {taskId} 1283
if or
  is_int_lvar_equal_to_constant 60@ == 7
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @DRUGS4_21430
task_kill_char_on_foot 48@ {target} $scplayer
set_char_only_damaged_by_player 48@ {state} False
139@ = 1

:DRUGS4_21430
if 
  153@ == 1
goto_if_false @DRUGS4_28756
if 
  163@ == 0
goto_if_false @DRUGS4_21635
if or
  locate_char_any_means_3d $scplayer {x} 2232.7 {y} -1188.84 {z} 1029.4 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
  is_char_dead 69@
  is_char_dead 70@
goto_if_false @DRUGS4_21635
shut_char_up $scplayer {state} False
if 
  does_object_exist 85@
goto_if_false @DRUGS4_21585
freeze_object_position 85@ {state} False
set_object_rotation_velocity 85@ {x} 0.0 {y} 0.6 {z} 0.0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 85@
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_21585
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_21606
clear_char_tasks 36@

:DRUGS4_21606
if 
  181@ == 3
goto_if_false @DRUGS4_21628
play_mission_audio MissionAudioSlot.Slot2

:DRUGS4_21628
163@ = 1

:DRUGS4_21635
if 
  163@ == 1
goto_if_false @DRUGS4_21729
if 
  not is_char_dead 75@
goto_if_false @DRUGS4_21729
task_play_anim_non_interruptable 75@ {animationName} "SWT_VENT_01" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERB = 0
163@ = 2
164@ = 1

:DRUGS4_21729
if 
  163@ == 2
goto_if_false @DRUGS4_21914
if 
  not is_char_dead 75@
goto_if_false @DRUGS4_21914
if 
  is_char_playing_anim 75@ {animationName} "SWT_VENT_01"
goto_if_false @DRUGS4_21914
90@ = get_char_anim_current_time 75@ {animationName} "SWT_VENT_01"
if 
  90@ == 1.0
goto_if_false @DRUGS4_21914
set_char_coordinates 75@ {x} 2217.8501 {y} -1188.86 {z} 1028.9301
set_lvar_int_to_lvar_int 118@ = 75@
122@ = 2220.5381
123@ = -1189.594
124@ = 1029.845
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66848
163@ = 3

:DRUGS4_21914
if 
  164@ == 1
goto_if_false @DRUGS4_22013
if 
  TIMERB > 3166
goto_if_false @DRUGS4_22013
if 
  not is_char_dead 76@
goto_if_false @DRUGS4_22013
task_play_anim_non_interruptable 76@ {animationName} "SWT_VENT_02" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
164@ = 2

:DRUGS4_22013
if 
  164@ == 2
goto_if_false @DRUGS4_22153
if 
  not is_char_dead 76@
goto_if_false @DRUGS4_22153
if 
  is_char_playing_anim 76@ {animationName} "SWT_VENT_02"
goto_if_false @DRUGS4_22153
91@ = get_char_anim_current_time 76@ {animationName} "SWT_VENT_02"
if 
  91@ == 1.0
goto_if_false @DRUGS4_22153
set_char_coordinates 76@ {x} 2217.8501 {y} -1188.86 {z} 1028.9301
task_kill_char_on_foot 76@ {target} $scplayer
164@ = 3

:DRUGS4_22153
if 
  174@ == 1
goto_if_false @DRUGS4_22336
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22336
set_char_health 82@ {health} 150
121@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2193.064 {y} -1188.77 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_go_straight_to_coord -1 {x} 2206.833 {y} -1188.83 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_go_straight_to_coord -1 {x} 2209.5879 {y} -1190.2 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_go_straight_to_coord -1 {x} 2209.7 {y} -1197.323 {z} 1029.845 {speed} MoveState.Sprint {time} 10000
task_achieve_heading -1 {heading} 358.428
task_stay_in_same_place -1 {state} True
close_sequence_task 121@
perform_sequence_task 82@ {sequence} 121@
clear_sequence_task 121@
174@ = 2

:DRUGS4_22336
if 
  174@ == 2
goto_if_false @DRUGS4_22884
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22884
if 
  locate_stopped_char_on_foot_3d 82@ {x} 2209.7 {y} -1197.323 {z} 1029.845 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_22884
if 
  not has_char_been_damaged_by_char 82@ {handle} $scplayer
goto_if_false @DRUGS4_22884
if 
  locate_char_on_foot_3d $scplayer {x} 2209.7 {y} -1197.323 {z} 1029.845 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_22884
clear_area 2209.7 {y} -1197.323 {z} 10.0 {radius} 10.0 {clearParticles} False
if 
  not is_char_dead 36@
goto_if_false @DRUGS4_22537
remove_char_elegantly 36@
goto @DRUGS4_22542

:DRUGS4_22537
mark_char_as_no_longer_needed 36@

:DRUGS4_22542
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2207.5291 {y} -1195.725 {z} 1031.2729 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2208.2729 {y} -1196.114 {z} 1030.731 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 82@
set_char_coordinates 82@ {x} 2209.8 {y} -1197.338 {z} 1028.845
set_char_heading 82@ {heading} 359.354
set_char_coordinates $scplayer {x} 2209.8 {y} -1196.338 {z} 1028.845
set_char_heading $scplayer {heading} 178.62
clear_mission_audio MissionAudioSlot.Slot1
if 
  179@ <> 0
goto_if_false @DRUGS4_22712
179@ = 0
178@ += 1

:DRUGS4_22712
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15821

:DRUGS4_22719
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_22745
wait 0
goto @DRUGS4_22719

:DRUGS4_22745
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_DA' {time} 3000 {flag} 1
task_play_anim $scplayer {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22870
task_play_anim 82@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRUGS4_22870
set_char_health $scplayer {health} 100
174@ = 3

:DRUGS4_22884
if 
  174@ == 3
goto_if_false @DRUGS4_22988
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_22988
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_22988
if 
  is_char_playing_anim 82@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_22988
174@ = 4

:DRUGS4_22988
if 
  174@ == 4
goto_if_false @DRUGS4_23116
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_23116
if 
  not is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @DRUGS4_23116
if 
  not is_char_playing_anim 82@ {animationName} "GRLFRD_KISS_03"
goto_if_false @DRUGS4_23116
set_char_health 82@ {health} 5
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
174@ = 5

:DRUGS4_23116
if 
  162@ == 0
goto_if_false @DRUGS4_23217
if 
  locate_char_any_means_3d $scplayer {x} 2240.8 {y} -1182.4 {z} 1029.41 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.5 {drawSphere} False
goto_if_false @DRUGS4_23217
if 
  not is_char_dead 38@
goto_if_false @DRUGS4_23210
set_char_only_damaged_by_player 38@ {state} False
explode_char_head 38@

:DRUGS4_23210
162@ = 1

:DRUGS4_23217
if 
  156@ == 0
goto_if_false @DRUGS4_23317
if 
  not is_char_dead 70@
goto_if_false @DRUGS4_23317
if or
  has_char_been_damaged_by_char 70@ {handle} $scplayer
  locate_char_any_means_char_3d 70@ {target} $scplayer {xRadius} 2.5 {yRadius} 2.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_23317
set_char_accuracy 70@ {accuracy} 30
task_kill_char_on_foot 70@ {target} $scplayer
156@ = 1

:DRUGS4_23317
if 
  157@ == 0
goto_if_false @DRUGS4_23422
if 
  158@ == 0
goto_if_false @DRUGS4_23422
if 
  locate_char_any_means_3d $scplayer {x} 2204.6499 {y} -1188.62 {z} 1029.4399 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_23422
157@ = 1
158@ = 1
174@ = 1

:DRUGS4_23422
if 
  157@ == 1
goto_if_false @DRUGS4_23486
if 
  not is_char_dead 71@
goto_if_false @DRUGS4_23486
set_lvar_int_to_lvar_int 118@ = 71@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
157@ = 2

:DRUGS4_23486
if 
  158@ == 1
goto_if_false @DRUGS4_23606
if 
  not is_char_dead 72@
goto_if_false @DRUGS4_23606
flush_route 
extend_route 2186.6699 {y} -1192.4 {z} 1031.8669
extend_route 2188.4399 {y} -1193.95 {z} 1031.27
extend_route 2193.3101 {y} -1193.5699 {z} 1030.34
extend_route 2196.239 {y} -1191.459 {z} 1029.85
task_follow_point_route 72@ {speed} MoveState.Run {mode} RouteMode.Once
158@ = 2

:DRUGS4_23606
if 
  158@ == 2
goto_if_false @DRUGS4_23716
if 
  not is_char_dead 72@
goto_if_false @DRUGS4_23716
if or
  locate_stopped_char_any_means_2d 72@ {x} 2196.239 {y} -1191.459 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @DRUGS4_23716
set_lvar_int_to_lvar_int 118@ = 72@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
158@ = 3

:DRUGS4_23716
if 
  159@ == 0
goto_if_false @DRUGS4_23780
if 
  not is_char_dead 73@
goto_if_false @DRUGS4_23780
set_lvar_int_to_lvar_int 118@ = 73@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
159@ = 1

:DRUGS4_23780
if 
  160@ == 0
goto_if_false @DRUGS4_23844
if 
  not is_char_dead 74@
goto_if_false @DRUGS4_23844
set_lvar_int_to_lvar_int 118@ = 74@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
160@ = 1

:DRUGS4_23844
if 
  166@ == 0
goto_if_false @DRUGS4_23948
if 
  not is_char_dead 78@
goto_if_false @DRUGS4_23948
if 
  locate_char_any_means_3d $scplayer {x} 2193.4099 {y} -1176.12 {z} 1029.42 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_23948
set_lvar_int_to_lvar_int 118@ = 78@
gosub @DRUGS4_67050
166@ = 1

:DRUGS4_23948
if 
  167@ == 0
goto_if_false @DRUGS4_24012
if 
  not is_char_dead 79@
goto_if_false @DRUGS4_24012
set_lvar_int_to_lvar_int 118@ = 79@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66916
167@ = 1

:DRUGS4_24012
if 
  165@ == 0
goto_if_false @DRUGS4_24174
if or
  locate_char_any_means_3d $scplayer {x} 2193.3999 {y} -1173.53 {z} 1029.6899 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  is_char_dead 79@
goto_if_false @DRUGS4_24174
remove_char_elegantly 36@
remove_char_elegantly 37@
remove_char_elegantly 38@
remove_char_elegantly 67@
remove_char_elegantly 47@
remove_char_elegantly 48@
if 
  does_object_exist 86@
goto_if_false @DRUGS4_24167
freeze_object_position 86@ {state} False
set_object_rotation_velocity 86@ {x} 0.0 {y} 0.8 {z} 0.0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 86@
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_24167
165@ = 1

:DRUGS4_24174
if 
  165@ == 1
goto_if_false @DRUGS4_24257
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24257
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_IN" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
165@ = 2

:DRUGS4_24257
if 
  165@ == 2
goto_if_false @DRUGS4_24517
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24517
if 
  is_char_playing_anim 77@ {animationName} "SWT_VNT_SHT_IN"
goto_if_false @DRUGS4_24517
92@ = get_char_anim_current_time 77@ {animationName} "SWT_VNT_SHT_IN"
if 
  92@ == 1.0
goto_if_false @DRUGS4_24517
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_LOOP" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
fire_single_bullet 2193.2681 {fromY} -1165.441 {fromZ} 1031.124 {toX} $player_x {toY} $player_y {toZ} $player_z {energy} 1
report_mission_audio_event_at_char 77@ {soundId} ScriptSound.SoundMinitankFire
add_big_gun_flash 2193.2681 {fromY} -1165.441 {fromZ} 1031.124 {toX} $player_x {toY} $player_y {toZ} $player_z
set_char_never_targetted 77@ {state} False
set_char_is_target_priority 77@ {state} True
TIMERB = 1000
165@ = 3

:DRUGS4_24517
if 
  165@ == 3
goto_if_false @DRUGS4_24788
if 
  TIMERB > 1000
goto_if_false @DRUGS4_24788
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24788
if 
  is_char_playing_anim 77@ {animationName} "SWT_VNT_SHT_LOOP"
goto_if_false @DRUGS4_24788
92@ = get_char_anim_current_time 77@ {animationName} "SWT_VNT_SHT_LOOP"
if 
  92@ == 1.0
goto_if_false @DRUGS4_24788
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_LOOP" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$player_z += 0.5
fire_single_bullet 2193.46 {fromY} -1165.83 {fromZ} 1031.55 {toX} $player_x {toY} $player_y {toZ} $player_z {energy} 3
report_mission_audio_event_at_char 77@ {soundId} ScriptSound.SoundMinitankFire
add_big_gun_flash 2193.2681 {fromY} -1165.441 {fromZ} 1031.124 {toX} $player_x {toY} $player_y {toZ} $player_z
TIMERB = 0

:DRUGS4_24788
if 
  4 > 165@
goto_if_false @DRUGS4_24978
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_24978
if or
  locate_char_any_means_3d $scplayer {x} 2193.1201 {y} -1161.86 {z} 1029.61 {xRadius} 2.8 {yRadius} 2.8 {zRadius} 3.0 {drawSphere} False
  has_char_been_damaged_by_char 77@ {handle} $scplayer
goto_if_false @DRUGS4_24978
if 
  does_char_exist 77@
goto_if_false @DRUGS4_24971
set_char_collision 77@ {state} False
set_char_coordinates 77@ {x} 2193.1289 {y} -1164.661 {z} 1032.269
task_play_anim_non_interruptable 77@ {animationName} "SWT_VNT_SHT_DIE" {animationFile} "SWAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_never_targetted 77@ {state} True

:DRUGS4_24971
165@ = 4

:DRUGS4_24978
if 
  165@ == 4
goto_if_false @DRUGS4_25098
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_25098
if 
  is_char_playing_anim 77@ {animationName} "SWT_VNT_SHT_DIE"
goto_if_false @DRUGS4_25098
92@ = get_char_anim_current_time 77@ {animationName} "SWT_VNT_SHT_DIE"
if 
  92@ == 1.0
goto_if_false @DRUGS4_25098
165@ = 5

:DRUGS4_25098
if 
  165@ == 5
goto_if_false @DRUGS4_25180
if 
  not is_char_dead 77@
goto_if_false @DRUGS4_25180
if or
  not is_char_on_screen 77@
  locate_char_any_means_char_2d 77@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_25180
remove_char_elegantly 77@
165@ = 6

:DRUGS4_25180
if 
  168@ == 0
goto_if_false @DRUGS4_25284
if 
  not is_char_dead 80@
goto_if_false @DRUGS4_25284
if 
  locate_char_any_means_3d $scplayer {x} 2193.1899 {y} -1160.67 {z} 1029.54 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_25284
set_lvar_int_to_lvar_int 118@ = 80@
gosub @DRUGS4_67133
168@ = 1

:DRUGS4_25284
if 
  169@ == 0
goto_if_false @DRUGS4_25364
if 
  not is_char_dead 81@
goto_if_false @DRUGS4_25364
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_25364
set_lvar_int_to_lvar_int 118@ = 81@
set_lvar_int_to_var_int 119@ = $sweet
gosub @DRUGS4_66916
169@ = 1

:DRUGS4_25364
if 
  170@ == 0
goto_if_false @DRUGS4_25444
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_25444
if 
  not is_char_dead 81@
goto_if_false @DRUGS4_25444
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 81@
gosub @DRUGS4_66967
170@ = 1

:DRUGS4_25444
if 
  163@ == 3
goto_if_false @DRUGS4_25490
if 
  is_char_dead 75@
goto_if_false @DRUGS4_25490
mark_char_as_no_longer_needed 75@
163@ = 4

:DRUGS4_25490
if 
  164@ == 3
goto_if_false @DRUGS4_25536
if 
  is_char_dead 76@
goto_if_false @DRUGS4_25536
mark_char_as_no_longer_needed 76@
163@ = 4

:DRUGS4_25536
if 
  162@ == 1
goto_if_false @DRUGS4_25582
if 
  is_char_dead 38@
goto_if_false @DRUGS4_25582
mark_char_as_no_longer_needed 38@
162@ = 2

:DRUGS4_25582
if 
  156@ == 1
goto_if_false @DRUGS4_25628
if 
  is_char_dead 70@
goto_if_false @DRUGS4_25628
mark_char_as_no_longer_needed 70@
156@ = 2

:DRUGS4_25628
if 
  157@ == 2
goto_if_false @DRUGS4_25674
if 
  is_char_dead 71@
goto_if_false @DRUGS4_25674
mark_char_as_no_longer_needed 71@
157@ = 3

:DRUGS4_25674
if 
  158@ == 2
goto_if_false @DRUGS4_25720
if 
  is_char_dead 72@
goto_if_false @DRUGS4_25720
mark_char_as_no_longer_needed 72@
158@ = 4

:DRUGS4_25720
if 
  159@ == 1
goto_if_false @DRUGS4_25766
if 
  is_char_dead 73@
goto_if_false @DRUGS4_25766
mark_char_as_no_longer_needed 73@
159@ = 2

:DRUGS4_25766
if 
  160@ == 1
goto_if_false @DRUGS4_25812
if 
  is_char_dead 74@
goto_if_false @DRUGS4_25812
mark_char_as_no_longer_needed 74@
160@ = 2

:DRUGS4_25812
if 
  166@ == 1
goto_if_false @DRUGS4_25858
if 
  is_char_dead 78@
goto_if_false @DRUGS4_25858
mark_char_as_no_longer_needed 78@
166@ = 2

:DRUGS4_25858
if 
  167@ == 1
goto_if_false @DRUGS4_25904
if 
  is_char_dead 79@
goto_if_false @DRUGS4_25904
mark_char_as_no_longer_needed 79@
167@ = 2

:DRUGS4_25904
if 
  165@ == 4
goto_if_false @DRUGS4_25950
if 
  is_char_dead 77@
goto_if_false @DRUGS4_25950
mark_char_as_no_longer_needed 77@
165@ = 5

:DRUGS4_25950
if 
  168@ == 1
goto_if_false @DRUGS4_25996
if 
  is_char_dead 80@
goto_if_false @DRUGS4_25996
mark_char_as_no_longer_needed 80@
168@ = 2

:DRUGS4_25996
if 
  169@ == 1
goto_if_false @DRUGS4_26042
if 
  is_char_dead 81@
goto_if_false @DRUGS4_26042
mark_char_as_no_longer_needed 81@
169@ = 2

:DRUGS4_26042
if 
  174@ > 5
goto_if_false @DRUGS4_26099
if 
  not is_char_dead 82@
goto_if_false @DRUGS4_26099
mark_char_as_no_longer_needed 82@
remove_animation "KISSING"
174@ = 6

:DRUGS4_26099
if 
  171@ == 0
goto_if_false @DRUGS4_26568
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_26568
if 
  locate_char_any_means_char_3d $sweet {target} $scplayer {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_26568
if 
  is_char_dead 80@
goto_if_false @DRUGS4_26552
if 
  is_char_dead 81@
goto_if_false @DRUGS4_26529
63@ = get_current_char_weapon $scplayer
do_fade 250 {direction} Fade.Out
set_player_control $player1 {state} False
set_char_only_damaged_by_player $sweet {state} False
remove_animation "KISSING"
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed #LXR_MOTEL_DOORSIM
mark_model_as_no_longer_needed #LXR_MOTELVENT
mark_model_as_no_longer_needed #IMY_SKYLIGHT
mark_model_as_no_longer_needed #KMB_TROLLEY
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 346
remove_char_elegantly 34@
remove_char_elegantly 35@
remove_char_elegantly 36@
remove_char_elegantly 37@
remove_char_elegantly 38@
remove_char_elegantly 47@
remove_char_elegantly 48@
remove_char_elegantly 51@
remove_char_elegantly 52@
remove_char_elegantly 53@
remove_char_elegantly 54@
remove_char_elegantly 66@
remove_char_elegantly 67@
remove_char_elegantly 68@
remove_char_elegantly 69@
remove_char_elegantly 70@
remove_char_elegantly 71@
remove_char_elegantly 72@
remove_char_elegantly 73@
remove_char_elegantly 74@
remove_char_elegantly 75@
remove_char_elegantly 76@
remove_char_elegantly 77@
remove_char_elegantly 78@
remove_char_elegantly 79@
remove_char_elegantly 80@
remove_char_elegantly 81@
remove_char_elegantly 82@
remove_char_elegantly 83@
delete_object 84@
delete_object 85@
delete_object 86@
kill_fx_system 65@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15868
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15869
request_animation "GANGS"
load_all_models_now 

:DRUGS4_26476
if or
  not has_animation_loaded "GANGS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_26515
wait 0
goto @DRUGS4_26476

:DRUGS4_26515
171@ = 2
goto @DRUGS4_26545

:DRUGS4_26529
print_now 'LAF1_21' {time} 1000 {flag} 1

:DRUGS4_26545
goto @DRUGS4_26568

:DRUGS4_26552
print_now 'LAF1_21' {time} 1000 {flag} 1

:DRUGS4_26568
if 
  171@ == 2
goto_if_false @DRUGS4_27175
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27175
switch_widescreen True
clear_area 2223.9709 {y} -1149.75 {z} 200.0 {radius} 200.0 {clearParticles} False
set_near_clip 0.1
do_fade 500 {direction} Fade.In
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed
remove_weapon_from_char $sweet {weaponType} WeaponType.Pistol
set_fixed_camera_position 2197.4871 {y} -1157.675 {z} 1030.356 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2198.3831 {y} -1157.24 {z} 1030.261 {switchStyle} SwitchType.JumpCut
set_char_coordinates $sweet {x} 2202.188 {y} -1156.9301 {z} 1028.844
set_char_heading $sweet {heading} 85.6456
task_play_anim $sweet {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_coordinates $scplayer {x} 2197.2 {y} -1156.929 {z} 1028.844
set_char_heading $scplayer {heading} 269.764
task_go_straight_to_coord $scplayer {x} 2201.188 {y} -1156.9301 {z} 1028.844 {speed} MoveState.Walk {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_JH' {time} 5000 {flag} 1
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_26881
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_26907
wait 0
goto @DRUGS4_26881

:DRUGS4_26907
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_26934
stop_char_facial_talk $sweet

:DRUGS4_26934
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15871
set_fixed_camera_position 2201.2339 {y} -1157.545 {z} 1030.373 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2201.804 {y} -1156.723 {z} 1030.406 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27133
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_char_coordinates $scplayer {x} 2201.188 {y} -1156.9301 {z} 1028.844
set_char_heading $scplayer {heading} 270.0
task_play_anim $sweet {animationName} "HNDSHKFA_SWT" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERA = 0

:DRUGS4_27133
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_JI' {time} 2000 {flag} 1
start_char_facial_talk $scplayer {duration} 2000
skip_cutscene_start_internal @DRUGS4_27696
171@ = 3

:DRUGS4_27175
if 
  171@ > 2
goto_if_false @DRUGS4_27317
if 
  6 > 171@
goto_if_false @DRUGS4_27317
if 
  182@ == 0
goto_if_false @DRUGS4_27317
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_27317
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_27317
clear_prints 
stop_char_facial_talk $scplayer
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27294
start_char_facial_talk $sweet {duration} 10000

:DRUGS4_27294
print_now 'FIN1_JK' {time} 2000 {flag} 1
182@ = 1

:DRUGS4_27317
if 
  182@ == 1
goto_if_false @DRUGS4_27378
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27378
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_27378
stop_char_facial_talk $sweet
182@ = 2

:DRUGS4_27378
if 
  171@ == 3
goto_if_false @DRUGS4_27619
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27619
94@ = get_script_task_status $sweet {taskId} 1541
if 
  is_int_lvar_equal_to_constant 94@ == 7
goto_if_false @DRUGS4_27619
95@ = get_script_task_status $scplayer {taskId} 1541
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @DRUGS4_27619
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_27619
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_27619
TIMERA = 0
set_fixed_camera_position 2202.4089 {y} -1157.1899 {z} 1030.515 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2201.4141 {y} -1157.129 {z} 1030.438 {switchStyle} SwitchType.JumpCut
flush_route 
extend_route 2193.0901 {y} -1157.16 {z} 1029.84
extend_route 2193.3789 {y} -1145.899 {z} 1029.84
task_follow_point_route $scplayer {speed} MoveState.Walk {mode} RouteMode.Once
task_follow_point_route $sweet {speed} MoveState.Walk {mode} RouteMode.Once
171@ = 4

:DRUGS4_27619
if 
  171@ == 4
goto_if_false @DRUGS4_27644
171@ = 5

:DRUGS4_27644
if 
  171@ == 5
goto_if_false @DRUGS4_28756
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_28756
if 
  TIMERA > 1500
goto_if_false @DRUGS4_28756

:DRUGS4_27696
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_27727
stop_char_facial_talk $sweet

:DRUGS4_27727
do_fade 250 {direction} Fade.Out

:DRUGS4_27734
if 
  get_fading_status 
goto_if_false @DRUGS4_27758
wait 0
goto @DRUGS4_27734

:DRUGS4_27758
set_current_char_weapon $scplayer {weaponType} 63@
clear_area 2192.1941 {y} -1153.241 {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_28056
stop_char_facial_talk $sweet
stop_char_facial_talk $scplayer
switch_entry_exit 'MOTEL1' {state} True
set_char_has_used_entry_exit $sweet {x} 2214.4099 {y} -1150.48 {radius} 3.0
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_char_tasks_immediately $sweet
clear_char_tasks_immediately $scplayer
set_char_coordinates $sweet {x} 2192.1941 {y} -1153.241 {z} 32.56
set_char_heading $sweet {heading} 180.359
set_char_coordinates $scplayer {x} 2193.99 {y} -1153.14 {z} 33.56
set_char_heading $scplayer {heading} 180.359
set_char_area_visible $scplayer {areaId} 0
set_char_area_visible $sweet {areaId} 0
set_char_has_used_entry_exit $scplayer {x} 2214.3799 {y} -1150.45 {radius} 1.0
set_char_has_used_entry_exit $sweet {x} 2214.3799 {y} -1150.45 {radius} 1.0
set_area_visible 0
set_fixed_camera_position 2201.644 {y} -1164.351 {z} 38.3367 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2201.0081 {y} -1163.641 {z} 38.0327 {switchStyle} SwitchType.JumpCut
switch_entry_exit 'MOTEL1' {state} False

:DRUGS4_28056
remove_animation "GANGS"
request_model 497
request_car_recording 349
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15800
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15872
load_all_models_now 

:DRUGS4_28091
if or
  not has_model_loaded 497
  not has_car_recording_been_loaded 349
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_28131
wait 0
goto @DRUGS4_28091

:DRUGS4_28131
task_go_straight_to_coord $scplayer {x} 2193.8601 {y} -1157.682 {z} 33.563 {speed} MoveState.Walk {time} -1
wait 500
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_28200
task_go_straight_to_coord $sweet {x} 2192.25 {y} -1158.078 {z} 33.56 {speed} MoveState.Walk {time} -1

:DRUGS4_28200
40@ = create_car 497 {x} 2249.51 {y} -1111.52 {z} 56.1
set_petrol_tank_weakpoint 40@ {state} False
set_car_only_damaged_by_player 40@ {state} True
set_car_health 40@ {health} 2000
44@ = create_char_inside_car 40@ {pedType} PedType.Mission2 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_car_forward_speed 40@ {forwardSpeed} 30.0
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_heli_blades_full_speed 40@
51@ = create_char PedType.Mission4 {modelId} 285 {x} 2161.8401 {y} -1154.26 {z} 25.09
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 51@ {handleOrTemplate} 57@
52@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} 25.09
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 52@ {handleOrTemplate} 57@
53@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -5.09
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 53@ {handleOrTemplate} 57@
54@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -8.09
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 54@ {handleOrTemplate} 57@
132@ = 0
133@ = 0
135@ = 0
136@ = 0
attach_char_to_car 51@ {vehicle} 40@ {xOffset} 1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 51@ {health} 150
set_char_shoot_rate 51@ {rate} 70
attach_char_to_car 52@ {vehicle} 40@ {xOffset} 1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 52@ {health} 150
set_char_shoot_rate 52@ {rate} 70
attach_char_to_car 53@ {vehicle} 40@ {xOffset} -1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 53@ {health} 150
set_char_shoot_rate 53@ {rate} 70
attach_char_to_car 54@ {vehicle} 40@ {xOffset} -1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 54@ {health} 150
set_area_visible 0
load_scene 2193.8601 {y} -1157.682 {z} 33.563
set_time_of_day 2 {minutes} 30
clear_extra_colours False
do_fade 500 {direction} Fade.In
TIMERB = 0
171@ = 6
172@ = 1

:DRUGS4_28756
if 
  is_char_dead $sweet
goto_if_false @DRUGS4_28795
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67705

:DRUGS4_28795
if 
  171@ == 0
goto_if_false @DRUGS4_29398
gosub @DRUGS4_66554
if 
  178@ == 0
goto_if_false @DRUGS4_28903
if 
  179@ == 0
goto_if_false @DRUGS4_28903
if 
  149@ == 1
goto_if_false @DRUGS4_28903
set_lvar_int_to_constant 106@ = 15863
set_lvar_text_label 107@s = 'FIN1_JC'
gosub @DRUGS4_66512

:DRUGS4_28903
if 
  178@ == 1
goto_if_false @DRUGS4_28993
if 
  179@ == 0
goto_if_false @DRUGS4_28993
if 
  149@ == 1
goto_if_false @DRUGS4_28993
151@ = 1
set_lvar_int_to_constant 106@ = 15864
set_lvar_text_label 107@s = 'FIN1_JD'
gosub @DRUGS4_66512

:DRUGS4_28993
if 
  173@ > 0
goto_if_false @DRUGS4_29076
if 
  178@ == 2
goto_if_false @DRUGS4_29076
if 
  179@ == 0
goto_if_false @DRUGS4_29076
set_lvar_int_to_constant 106@ = 15866
set_lvar_text_label 107@s = 'FIN1_JF'
gosub @DRUGS4_66512

:DRUGS4_29076
if 
  157@ > 0
goto_if_false @DRUGS4_29159
if 
  178@ == 3
goto_if_false @DRUGS4_29159
if 
  179@ == 0
goto_if_false @DRUGS4_29159
set_lvar_int_to_constant 106@ = 15807
set_lvar_text_label 107@s = 'FIN1_BD'
gosub @DRUGS4_66512

:DRUGS4_29159
if 
  165@ > 0
goto_if_false @DRUGS4_29242
if 
  178@ == 4
goto_if_false @DRUGS4_29242
if 
  179@ == 0
goto_if_false @DRUGS4_29242
set_lvar_int_to_constant 106@ = 15818
set_lvar_text_label 107@s = 'FIN1_CK'
gosub @DRUGS4_66512

:DRUGS4_29242
if 
  178@ == 5
goto_if_false @DRUGS4_29307
if 
  179@ == 0
goto_if_false @DRUGS4_29307
set_lvar_int_to_constant 106@ = 15808
set_lvar_text_label 107@s = 'FIN1_BE'
gosub @DRUGS4_66512

:DRUGS4_29307
if 
  181@ == 1
goto_if_false @DRUGS4_29358
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_29358
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15803
181@ = 2

:DRUGS4_29358
if 
  181@ == 2
goto_if_false @DRUGS4_29398
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_29398
181@ = 3

:DRUGS4_29398
if 
  172@ == 1
goto_if_false @DRUGS4_32115
if 
  171@ == 6
goto_if_false @DRUGS4_29673
if 
  TIMERB > 2000
goto_if_false @DRUGS4_29673
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_29477
start_playback_recorded_car 40@ {path} 349

:DRUGS4_29477
set_fixed_camera_position 2195.0991 {y} -1157.921 {z} 34.0291 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2194.103 {y} -1157.979 {z} 33.9628 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_29673
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_29673
wait 200
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_29592
task_look_at_char $scplayer {target} 44@ {time} 3000

:DRUGS4_29592
wait 100
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_29639
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_29639
task_look_at_char $sweet {target} 44@ {time} 3000

:DRUGS4_29639
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_AA' {time} 3000 {flag} 1
TIMERB = 0
171@ = 7

:DRUGS4_29673
if 
  171@ == 7
goto_if_false @DRUGS4_30159
if 
  TIMERB > 2500
goto_if_false @DRUGS4_30159
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30159
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30159
175@ = 0
skip_cutscene_start_internal @DRUGS4_30860
set_fixed_camera_position 2176.6411 {y} -1179.425 {z} 38.9175 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2177.136 {y} -1178.588 {z} 38.6847 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 51@
goto_if_false @DRUGS4_29871
if 
  132@ == 0
goto_if_false @DRUGS4_29871
set_lvar_int_to_lvar_int 118@ = 51@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66916
132@ = 1

:DRUGS4_29871
if 
  not is_char_dead 52@
goto_if_false @DRUGS4_29951
if 
  133@ == 0
goto_if_false @DRUGS4_29951
set_lvar_int_to_lvar_int 118@ = 52@
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_29937
set_lvar_int_to_var_int 119@ = $sweet

:DRUGS4_29937
gosub @DRUGS4_66967
133@ = 1

:DRUGS4_29951
if 
  not is_char_dead 53@
goto_if_false @DRUGS4_30031
if 
  135@ == 0
goto_if_false @DRUGS4_30031
set_lvar_int_to_lvar_int 118@ = 53@
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30017
set_lvar_int_to_var_int 119@ = $sweet

:DRUGS4_30017
gosub @DRUGS4_66967
135@ = 1

:DRUGS4_30031
if 
  not is_char_dead 54@
goto_if_false @DRUGS4_30095
if 
  136@ == 0
goto_if_false @DRUGS4_30095
set_lvar_int_to_lvar_int 118@ = 54@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
136@ = 1

:DRUGS4_30095
task_go_straight_to_coord $sweet {x} 2192.6831 {y} -1168.5861 {z} 33.56 {speed} MoveState.Run {time} 5000
task_go_straight_to_coord $scplayer {x} 2198.4241 {y} -1158.3199 {z} 33.56 {speed} MoveState.Run {time} 5000
TIMERB = 0
171@ = 8

:DRUGS4_30159
if 
  171@ == 8
goto_if_false @DRUGS4_30458
if 
  TIMERB > 1500
goto_if_false @DRUGS4_30458
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30458
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30458
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_30249
stop_playback_recorded_car 40@

:DRUGS4_30249
set_fixed_camera_position 2196.3379 {y} -1157.223 {z} 32.9594 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2195.762 {y} -1158.032 {z} 33.0705 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2195.9141 {y} -1159.764 {z} 32.563
set_char_heading $scplayer {heading} 181.0915
task_play_anim $scplayer {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_JL' {time} 3000 {flag} 1
set_car_coordinates 40@ {x} 2185.4299 {y} -1172.6899 {z} 37.05
heli_goto_coords 40@ {x} 2194.97 {y} -1182.27 {z} 37.0 {minAltitude} 7.0 {maxAltitude} 7.0
TIMERB = 0
171@ = 9

:DRUGS4_30458
if 
  171@ == 9
goto_if_false @DRUGS4_30654
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_30654
if 
  is_char_playing_anim $scplayer {animationName} "SWT_WLLPK_L"
goto_if_false @DRUGS4_30654
96@ = get_char_anim_current_time $scplayer {animationName} "SWT_WLLPK_L"
if 
  96@ == 1.0
goto_if_false @DRUGS4_30654
task_play_anim $scplayer {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_30647
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66967

:DRUGS4_30647
171@ = 10

:DRUGS4_30654
if 
  171@ == 10
goto_if_false @DRUGS4_32058
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_32058
if 
  is_char_playing_anim $scplayer {animationName} "SWT_WLLSHOOT_IN_L"
goto_if_false @DRUGS4_32058
96@ = get_char_anim_current_time $scplayer {animationName} "SWT_WLLSHOOT_IN_L"
if 
  96@ == 1.0
goto_if_false @DRUGS4_32058
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30848
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2193.73 {yPoint} -1166.85 {zPoint} 34.06 {pointRadius} 4.0 {radius} 0.4
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2

:DRUGS4_30848
clear_char_tasks_immediately $scplayer
175@ = 1

:DRUGS4_30860
skip_cutscene_end 
if 
  175@ == 0
goto_if_false @DRUGS4_31753
clear_prints 
do_fade 500 {direction} Fade.Out

:DRUGS4_30889
if 
  get_fading_status 
goto_if_false @DRUGS4_30913
wait 0
goto @DRUGS4_30889

:DRUGS4_30913
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_30958
if 
  is_playback_going_on_for_car 40@
goto_if_false @DRUGS4_30958
stop_playback_recorded_car 40@

:DRUGS4_30958
delete_car 40@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
request_model 497
request_model 285
request_model 353
load_all_models_now 

:DRUGS4_31000
if or
  not has_model_loaded 497
  not has_model_loaded 285
  not has_model_loaded 353
goto_if_false @DRUGS4_31037
wait 0
goto @DRUGS4_31000

:DRUGS4_31037
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_31070
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_char_only_damaged_by_player $sweet {state} False

:DRUGS4_31070
40@ = create_car 497 {x} 2249.51 {y} -1111.52 {z} 56.1
set_petrol_tank_weakpoint 40@ {state} False
set_car_only_damaged_by_player 40@ {state} True
set_car_forward_speed 40@ {forwardSpeed} 30.0
set_car_health 40@ {health} 2000
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2193.73 {yPoint} -1166.85 {zPoint} 34.06 {pointRadius} 3.0 {radius} 0.4
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2
44@ = create_char_inside_car 40@ {pedType} PedType.Mission2 {modelId} 285
set_char_can_be_shot_in_vehicle 44@ {state} False
lock_car_doors 40@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 44@ {state} True
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_heli_blades_full_speed 40@
set_car_coordinates 40@ {x} 2188.28 {y} -1176.54 {z} 39.54
set_car_heading 40@ {heading} 210.0
51@ = create_char PedType.Mission4 {modelId} 285 {x} 2161.8401 {y} -1154.26 {z} 25.09
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 51@ {handleOrTemplate} 57@
52@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} 25.09
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 52@ {handleOrTemplate} 57@
53@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -5.09
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 53@ {handleOrTemplate} 57@
54@ = create_char PedType.Mission4 {modelId} 285 {x} 2159.8401 {y} -1154.26 {z} -8.09
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_decision_maker 54@ {handleOrTemplate} 57@
132@ = 0
133@ = 0
135@ = 0
136@ = 0
attach_char_to_car 51@ {vehicle} 40@ {xOffset} 1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 51@ {health} 150
set_char_shoot_rate 51@ {rate} 70
attach_char_to_car 52@ {vehicle} 40@ {xOffset} 1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 52@ {health} 150
set_char_shoot_rate 52@ {rate} 70
attach_char_to_car 53@ {vehicle} 40@ {xOffset} -1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 53@ {health} 150
set_char_shoot_rate 53@ {rate} 70
attach_char_to_car 54@ {vehicle} 40@ {xOffset} -1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
set_char_health 54@ {health} 150
load_scene 2193.8601 {y} -1157.682 {z} 33.563
set_char_coordinates $scplayer {x} 2194.53 {y} -1159.24 {z} 32.563
set_char_heading $scplayer {heading} 173.208
set_char_coordinates $sweet {x} 2192.6379 {y} -1169.202 {z} 32.563
set_char_heading $sweet {heading} 180.668
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 750 {direction} Fade.In

:DRUGS4_31753
132@ = 0
133@ = 0
135@ = 0
136@ = 0
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_31863
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_31863
set_char_proofs $sweet {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
give_weapon_to_char $sweet {weaponType} WeaponType.Mp5 {ammo} 99999
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66967

:DRUGS4_31863
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_31894
set_heli_reached_target_distance 40@ {distance} 3
185@ = add_blip_for_car 40@

:DRUGS4_31894
set_char_health $scplayer {health} 100
remove_decision_maker 56@
TIMERA = 0
switch_widescreen False
set_player_control $player1 {state} True
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_31962
set_char_only_damaged_by_player $sweet {state} False
set_char_health $sweet {health} 500
$sweethealth_f1 = 100

:DRUGS4_31962
remove_animation "SWAT"
restore_camera_jumpcut 
set_camera_behind_player 
display_onscreen_counter_with_string $sweethealth_f1 {display} CounterDisplay.Bar {text} 'LAF1_20'
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15873
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15819
178@ = 0
179@ = 0
print_now 'LAF1_5' {time} 5000 {flag} 1
172@ = 2
171@ = 11

:DRUGS4_32058
if 
  11 > 171@
goto_if_false @DRUGS4_32115
if 
  is_char_dead $sweet
goto_if_false @DRUGS4_32115
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67705

:DRUGS4_32115
if 
  172@ == 2
goto_if_false @DRUGS4_33686
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_32171
$sweethealth_f1 = get_char_health $sweet
$sweethealth_f1 /= 5
goto @DRUGS4_32194

:DRUGS4_32171
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67705

:DRUGS4_32194
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_33686
if 
  171@ == 11
goto_if_false @DRUGS4_32278
if 
  TIMERA > 4000
goto_if_false @DRUGS4_32278
task_go_straight_to_coord $sweet {x} 2193.199 {y} -1179.67 {z} 33.56 {speed} MoveState.Run {time} -1
171@ = 12

:DRUGS4_32278
if 
  171@ == 12
goto_if_false @DRUGS4_32472
if 
  locate_char_any_means_3d $sweet {x} 2193.199 {y} -1179.67 {z} 33.56 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @DRUGS4_32472
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_32383
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66967

:DRUGS4_32383
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_32465
heli_goto_coords 40@ {x} 2193.199 {y} -1179.67 {z} 40.5 {minAltitude} 10.0 {maxAltitude} 10.0
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_32465
point_searchlight_at_char 58@ {handle} $scplayer {speed} 0.2

:DRUGS4_32465
171@ = 13

:DRUGS4_32472
if 
  171@ == 13
goto_if_false @DRUGS4_32592
if 
  TIMERA > 10000
goto_if_false @DRUGS4_32592
task_go_straight_to_coord $sweet {x} 2200.6521 {y} -1188.776 {z} 32.563 {speed} MoveState.Run {time} -1
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_32562
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2

:DRUGS4_32562
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_32585
set_car_only_damaged_by_player 40@ {state} False

:DRUGS4_32585
171@ = 14

:DRUGS4_32592
if 
  171@ == 14
goto_if_false @DRUGS4_32757
if 
  locate_char_any_means_3d $sweet {x} 2200.6521 {y} -1188.776 {z} 32.563 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_32757
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_32697
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66967

:DRUGS4_32697
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_32750
heli_goto_coords 40@ {x} 2212.4099 {y} -1168.54 {z} 42.0 {minAltitude} 20.0 {maxAltitude} 20.0

:DRUGS4_32750
171@ = 15

:DRUGS4_32757
if 
  171@ == 15
goto_if_false @DRUGS4_32854
if 
  TIMERA > 12000
goto_if_false @DRUGS4_32854
task_go_straight_to_coord $sweet {x} 2209.4741 {y} -1185.644 {z} 33.56 {speed} MoveState.Run {time} -1
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_32847
point_searchlight_at_char 58@ {handle} $scplayer {speed} 0.2

:DRUGS4_32847
171@ = 16

:DRUGS4_32854
if 
  171@ == 16
goto_if_false @DRUGS4_33019
if 
  locate_char_any_means_3d $sweet {x} 2209.4741 {y} -1185.644 {z} 33.56 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_33019
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_32959
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66967

:DRUGS4_32959
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_33012
heli_goto_coords 40@ {x} 2223.6599 {y} -1169.4 {z} 42.83 {minAltitude} 20.0 {maxAltitude} 20.0

:DRUGS4_33012
171@ = 17

:DRUGS4_33019
if 
  171@ == 17
goto_if_false @DRUGS4_33116
if 
  TIMERA > 5000
goto_if_false @DRUGS4_33116
task_go_straight_to_coord $sweet {x} 2219.186 {y} -1188.8 {z} 33.563 {speed} MoveState.Run {time} -1
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_33109
point_searchlight_at_char 58@ {handle} $sweet {speed} 0.2

:DRUGS4_33109
171@ = 18

:DRUGS4_33116
if 
  171@ == 18
goto_if_false @DRUGS4_33281
if 
  locate_char_any_means_3d $sweet {x} 2219.186 {y} -1188.8 {z} 33.563 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_33281
if 
  not is_char_dead 44@
goto_if_false @DRUGS4_33221
set_lvar_int_to_var_int 118@ = $sweet
set_lvar_int_to_lvar_int 119@ = 44@
gosub @DRUGS4_66967

:DRUGS4_33221
TIMERA = 0
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_33274
heli_goto_coords 40@ {x} 2242.9099 {y} -1178.87 {z} 42.0 {minAltitude} 10.0 {maxAltitude} 10.0

:DRUGS4_33274
171@ = 19

:DRUGS4_33281
if 
  132@ == 0
goto_if_false @DRUGS4_33327
if 
  is_char_dead 51@
goto_if_false @DRUGS4_33327
detach_char_from_car 51@
132@ = 1

:DRUGS4_33327
if 
  133@ == 0
goto_if_false @DRUGS4_33373
if 
  is_char_dead 52@
goto_if_false @DRUGS4_33373
detach_char_from_car 52@
133@ = 1

:DRUGS4_33373
if 
  135@ == 0
goto_if_false @DRUGS4_33419
if 
  is_char_dead 53@
goto_if_false @DRUGS4_33419
detach_char_from_car 53@
135@ = 1

:DRUGS4_33419
if 
  136@ == 0
goto_if_false @DRUGS4_33465
if 
  is_char_dead 54@
goto_if_false @DRUGS4_33465
detach_char_from_car 54@
136@ = 1

:DRUGS4_33465
if 
  171@ > 10
goto_if_false @DRUGS4_33686
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_33651
41@ = get_car_health 40@
if 
  1250 > 41@
goto_if_false @DRUGS4_33644
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
remove_blip 185@
heli_goto_coords 40@ {x} 2220.4399 {y} -1128.29 {z} 43.31 {minAltitude} 30.0 {maxAltitude} 30.0
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_33595
play_mission_audio MissionAudioSlot.Slot2

:DRUGS4_33595
delete_searchlight 58@
TIMERA = 0
176@ = 1
print_now 'LAF1_69' {time} 5000 {flag} 1
172@ = 3
171@ = 20

:DRUGS4_33644
goto @DRUGS4_33686

:DRUGS4_33651
print_now 'LAF1_69' {time} 1000 {flag} 1
delete_searchlight 58@
172@ = 3
171@ = 20

:DRUGS4_33686
if 
  172@ == 3
goto_if_false @DRUGS4_34636
if 
  23 > 171@
goto_if_false @DRUGS4_34636
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_33760
$sweethealth_f1 = get_char_health $sweet
$sweethealth_f1 /= 5
goto @DRUGS4_33783

:DRUGS4_33760
print_now 'LAF1_70' {time} 5000 {flag} 1
goto @DRUGS4_67705

:DRUGS4_33783
if 
  171@ == 20
goto_if_false @DRUGS4_33900
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_33900
task_follow_path_nodes_to_coord $sweet {x} 2235.3601 {y} -1188.6801 {z} 33.82 {speed} MoveState.Run {time} 35000
TIMERB = 0
178@ = 0
179@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_area 2197.78 {y} -1194.0 {z} 30.0 {radius} 30.0 {clearParticles} True
171@ = 21

:DRUGS4_33900
if 
  171@ == 21
goto_if_false @DRUGS4_34125
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_34125
if 
  locate_char_any_means_char_3d $sweet {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_34066
if 
  is_char_on_screen $sweet
goto_if_false @DRUGS4_34059
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_follow_path_nodes_to_coord $sweet {x} 2197.78 {y} -1194.0 {z} 26.17 {speed} MoveState.Run {time} 35000
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} False
171@ = 22

:DRUGS4_34059
goto @DRUGS4_34125

:DRUGS4_34066
if 
  TIMERB > 3500
goto_if_false @DRUGS4_34125
print_now 'LAF1_69' {time} 1000 {flag} 1
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} False

:DRUGS4_34125
if 
  176@ == 1
goto_if_false @DRUGS4_34231
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_34231
if 
  locate_car_3d 40@ {x} 2220.4399 {y} -1128.29 {z} 43.31 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_34231
explode_car 40@
explode_car 40@
TIMERA = 0
176@ = 2

:DRUGS4_34231
if 
  176@ == 2
goto_if_false @DRUGS4_34285
if 
  TIMERA > 3000
goto_if_false @DRUGS4_34285
mark_car_as_no_longer_needed 40@
delete_car 40@
176@ = 3

:DRUGS4_34285
if 
  171@ == 22
goto_if_false @DRUGS4_34636
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_34636
if 
  locate_char_on_foot_3d $scplayer {x} 2197.78 {y} -1194.0 {z} 26.17 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_34499
do_fade 250 {direction} Fade.Out
set_player_control $player1 {state} False
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_34396
if 
  get_fading_status 
goto_if_false @DRUGS4_34420
wait 0
goto @DRUGS4_34396

:DRUGS4_34420
mark_car_as_no_longer_needed 40@
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_34485
set_char_coordinates $sweet {x} 2197.78 {y} -1194.0 {z} 25.0

:DRUGS4_34485
171@ = 23
goto @DRUGS4_34636

:DRUGS4_34499
if 
  locate_char_on_foot_3d $sweet {x} 2197.78 {y} -1194.0 {z} 26.17 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @DRUGS4_34636
mark_car_as_no_longer_needed 40@
clear_area 2197.78 {y} -1194.0 {z} 100.0 {radius} 100.0 {clearParticles} True
do_fade 250 {direction} Fade.Out
set_player_control $player1 {state} False
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_34605
if 
  get_fading_status 
goto_if_false @DRUGS4_34629
wait 0
goto @DRUGS4_34605

:DRUGS4_34629
171@ = 23

:DRUGS4_34636
if 
  172@ > 1
goto_if_false @DRUGS4_35063
if 
  4 > 172@
goto_if_false @DRUGS4_35063
if 
  23 > 171@
goto_if_false @DRUGS4_35063
gosub @DRUGS4_66554
if 
  172@ == 2
goto_if_false @DRUGS4_34962
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_34962
if 
  178@ == 0
goto_if_false @DRUGS4_34814
if 
  179@ == 0
goto_if_false @DRUGS4_34814
if 
  171@ > 11
goto_if_false @DRUGS4_34814
set_lvar_int_to_constant 106@ = 15873
set_lvar_text_label 107@s = 'FIN1_JM'
gosub @DRUGS4_66512

:DRUGS4_34814
if 
  178@ == 1
goto_if_false @DRUGS4_34879
if 
  179@ == 0
goto_if_false @DRUGS4_34879
set_lvar_int_to_constant 106@ = 15811
set_lvar_text_label 107@s = 'FIN1_BY'
gosub @DRUGS4_66512

:DRUGS4_34879
if 
  178@ == 2
goto_if_false @DRUGS4_34962
if 
  179@ == 0
goto_if_false @DRUGS4_34962
if 
  171@ > 14
goto_if_false @DRUGS4_34962
set_lvar_int_to_constant 106@ = 15872
set_lvar_text_label 107@s = 'FIN1_JL'
gosub @DRUGS4_66512

:DRUGS4_34962
if 
  172@ == 3
goto_if_false @DRUGS4_35063
if 
  171@ > 21
goto_if_false @DRUGS4_35063
if 
  178@ == 0
goto_if_false @DRUGS4_35063
if 
  179@ == 0
goto_if_false @DRUGS4_35063
set_lvar_int_to_constant 106@ = 15874
set_lvar_text_label 107@s = 'FIN1_JN'
gosub @DRUGS4_66512

:DRUGS4_35063
if 
  171@ == 23
goto_if_false @DRUGS4_36772
if 
  294@ == 0
goto_if_false @DRUGS4_36772
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_36772
set_time_of_day 3 {minutes} 15
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 346
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
switch_widescreen True
clear_area 2223.9709 {y} -1149.75 {z} 200.0 {radius} 200.0 {clearParticles} False
set_player_control $player1 {state} False
set_near_clip 0.1
set_fixed_camera_position 2190.325 {y} -1194.562 {z} 25.4553 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2189.376 {y} -1194.54 {z} 25.1403 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $sweet
clear_char_tasks_immediately $scplayer
set_char_coordinates $sweet {x} 2192.6499 {y} -1194.78 {z} 24.2
set_char_heading $sweet {heading} 78.5405
set_char_coordinates $scplayer {x} 2192.0 {y} -1193.78 {z} 24.2
set_char_heading $scplayer {heading} 85.0874
143@ = 0
remove_decision_maker 57@
mark_model_as_no_longer_needed 285
clear_onscreen_counter $sweethealth_f1
request_model 596
request_model 280
request_model 355
request_model 538
request_model 492
request_model 497
request_animation "GANGS"
request_animation "CAR_CHAT"
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_car_recording 330
request_car_recording 332
request_car_recording 333
request_car_recording 334
request_car_recording 335
request_car_recording 336
request_car_recording 337
request_car_recording 338
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15876
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15877
load_all_models_now 

:DRUGS4_35463
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_animation_loaded "GANGS"
  not has_animation_loaded "CAR_CHAT"
goto_if_false @DRUGS4_35518
wait 0
goto @DRUGS4_35463

:DRUGS4_35518
if or
  not has_model_loaded 596
  not has_model_loaded 280
  not has_model_loaded 355
goto_if_false @DRUGS4_35555
wait 0
goto @DRUGS4_35518

:DRUGS4_35555
if or
  not has_model_loaded 538
  not has_model_loaded 492
  not has_model_loaded 497
goto_if_false @DRUGS4_35592
wait 0
goto @DRUGS4_35555

:DRUGS4_35592
if or
  not has_car_recording_been_loaded 330
  not has_car_recording_been_loaded 332
  not has_car_recording_been_loaded 333
  not has_car_recording_been_loaded 334
  not has_car_recording_been_loaded 335
goto_if_false @DRUGS4_35639
wait 0
goto @DRUGS4_35592

:DRUGS4_35639
if or
  not has_car_recording_been_loaded 336
  not has_car_recording_been_loaded 337
  not has_car_recording_been_loaded 338
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_35684
wait 0
goto @DRUGS4_35639

:DRUGS4_35684
delete_car 40@
delete_char 44@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
clear_area 2192.6499 {y} -1194.78 {z} 100.0 {radius} 100.0 {clearParticles} True
40@ = create_car 497 {x} 2130.0039 {y} -1196.324 {z} 28.198
set_petrol_tank_weakpoint 40@ {state} False
set_car_heading 40@ {heading} 336.905
44@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 44@ {state} False
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_only_damaged_by_player 44@ {state} True
set_car_only_damaged_by_player 40@ {state} True
set_car_proofs 40@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_heli_blades_full_speed 40@
set_car_visible 40@ {state} False
$sweet_car = create_car 492 {x} 2203.498 {y} -1217.624 {z} 23.579
set_radio_channel RadioChannel.RadioLosSantos
set_car_can_be_visibly_damaged $sweet_car {state} False
set_car_heading $sweet_car {heading} 90.386
$big_smoke = create_char_inside_car $sweet_car {pedType} PedType.Special {modelId} 291
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
$ryder = create_char_as_passenger $sweet_car {pedType} PedType.Special {modelId} 292 {seat} SeatId.BikeRear
set_char_decision_maker $ryder {handleOrTemplate} 55@
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health $sweet_car {health} 6000
set_can_burst_car_tyres $sweet_car {state} False
186@ = create_car 596 {x} 2169.1941 {y} -1270.059 {z} 22.8203
set_petrol_tank_weakpoint 186@ {state} False
set_car_heading 186@ {heading} 357.0326
set_car_only_damaged_by_player 186@ {state} True
set_car_health 186@ {health} 750
195@ = create_char_inside_car 186@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 195@ {handleOrTemplate} 55@
set_char_health 195@ {health} 100
set_char_suffers_critical_hits 195@ {state} False
set_char_only_damaged_by_player 195@ {state} True
196@ = create_char_as_passenger 186@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 196@ {handleOrTemplate} 55@
set_char_health 196@ {health} 200
set_char_only_damaged_by_player 196@ {state} True
give_weapon_to_char 196@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_suffers_critical_hits 196@ {state} False
car_set_idle 186@
set_car_visible 186@ {state} False
187@ = create_car 596 {x} 2172.5259 {y} -1280.734 {z} 22.9766
set_petrol_tank_weakpoint 187@ {state} False
set_car_heading 187@ {heading} 0.9448
set_car_only_damaged_by_player 187@ {state} True
set_car_health 187@ {health} 500
197@ = create_char_inside_car 187@ {pedType} PedType.Mission1 {modelId} 280
set_car_proofs 187@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_only_damaged_by_player 197@ {state} True
set_char_health 197@ {health} 100
set_char_decision_maker 197@ {handleOrTemplate} 55@
198@ = create_char_as_passenger 187@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_only_damaged_by_player 198@ {state} True
set_char_decision_maker 198@ {handleOrTemplate} 55@
set_char_health 198@ {health} 200
set_char_suffers_critical_hits 198@ {state} False
give_weapon_to_char 198@ {weaponType} WeaponType.Mp5 {ammo} 99999
car_set_idle 187@
set_car_visible 187@ {state} False
188@ = create_car 596 {x} 2223.1101 {y} -1150.118 {z} 24.92
set_petrol_tank_weakpoint 188@ {state} False
199@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 280
set_char_can_be_shot_in_vehicle 199@ {state} False
set_car_only_damaged_by_player 188@ {state} True
set_car_health 188@ {health} 1000
set_char_decision_maker 199@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 199@ {state} True
set_char_suffers_critical_hits 199@ {state} False
200@ = create_char_as_passenger 188@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 200@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 200@ {state} True
set_char_health 200@ {health} 200
set_char_suffers_critical_hits 200@ {state} False
give_weapon_to_char 200@ {weaponType} WeaponType.Mp5 {ammo} 99999
car_set_idle 188@
189@ = create_car 596 {x} 2388.8081 {y} -1259.431 {z} 22.94
set_car_heading 189@ {heading} 89.36
set_petrol_tank_weakpoint 189@ {state} False
set_car_only_damaged_by_player 189@ {state} True
set_car_health 189@ {health} 900
201@ = create_char_inside_car 189@ {pedType} PedType.Mission1 {modelId} 280
set_char_only_damaged_by_player 201@ {state} True
set_char_decision_maker 201@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 201@ {state} False
set_char_health 201@ {health} 100
202@ = create_char_as_passenger 189@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_only_damaged_by_player 202@ {state} True
set_char_health 202@ {health} 150
set_char_decision_maker 202@ {handleOrTemplate} 55@
give_weapon_to_char 202@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 202@ {state} False
car_set_idle 189@
switch_random_trains False
delete_all_trains 
211@ = create_mission_train 15 {x} 2284.991 {y} -1186.053 {z} 24.756 {direction} False
set_train_speed 211@ {speed} 0.0
set_train_cruise_speed 211@ {speed} 0.0
set_car_proofs 211@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_go_straight_to_coord $scplayer {x} 2183.5669 {y} -1193.851 {z} 23.2419 {speed} MoveState.Run {time} 5000
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_36758
task_go_straight_to_coord $sweet {x} 2183.531 {y} -1195.074 {z} 23.2266 {speed} MoveState.Run {time} 5000

:DRUGS4_36758
do_fade 250 {direction} Fade.In
294@ = 1

:DRUGS4_36772
if 
  294@ == 1
goto_if_false @DRUGS4_36947
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_36947
if 
  locate_char_any_means_2d $sweet {x} 2183.531 {y} -1195.074 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @DRUGS4_36947
if 
  locate_char_any_means_2d $scplayer {x} 2183.5669 {y} -1193.851 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @DRUGS4_36947
set_fixed_camera_position 2183.6169 {y} -1193.088 {z} 24.8301 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2183.54 {y} -1194.085 {z} 24.8217 {switchStyle} SwitchType.JumpCut
TIMERA = 0
294@ = 2

:DRUGS4_36947
if 
  294@ == 2
goto_if_false @DRUGS4_37136
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37136
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37136
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37136
if 
  TIMERA > 1500
goto_if_false @DRUGS4_37136
task_look_at_char $scplayer {target} $big_smoke {time} 3000
start_playback_recorded_car $sweet_car {path} 330
task_play_anim $sweet {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_KA' {time} 2500 {flag} 1
start_char_facial_talk $sweet {duration} 2000
TIMERA = 0
294@ = 3

:DRUGS4_37136
if 
  294@ == 3
goto_if_false @DRUGS4_37271
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37271
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37271
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37271
if 
  TIMERA > 500
goto_if_false @DRUGS4_37271
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
294@ = 4

:DRUGS4_37271
if 
  294@ == 4
goto_if_false @DRUGS4_37517
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37517
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37517
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37517
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_37517
task_look_at_char $sweet {target} $big_smoke {time} 5000
clear_prints 
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $scplayer {duration} 2000
print_now 'FIN1_KB' {time} 3000 {flag} 1
stop_char_facial_talk $sweet
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15878
task_go_straight_to_coord $scplayer {x} 2181.53 {y} -1193.8101 {z} 23.67 {speed} MoveState.Walk {time} 5000
task_go_straight_to_coord $sweet {x} 2181.4099 {y} -1195.67 {z} 23.74 {speed} MoveState.Walk {time} 5000
set_fixed_camera_position 2177.9189 {y} -1190.952 {z} 24.4917 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.3721 {y} -1191.8149 {z} 24.2692 {switchStyle} SwitchType.JumpCut
294@ = 5

:DRUGS4_37517
if 
  294@ == 5
goto_if_false @DRUGS4_37940
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_37940
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_37940
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_37940
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_37940
if 
  not is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_37940
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_37940
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_37940
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15879
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $big_smoke {duration} 1000
print_now 'FIN1_KC' {time} 2000 {flag} 1
set_fixed_camera_position 2177.9189 {y} -1190.952 {z} 24.4917 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.3721 {y} -1191.8149 {z} 24.2692 {switchStyle} SwitchType.JumpCut
task_look_at_char $scplayer {target} $big_smoke {time} 5000
car_set_idle $sweet_car
task_play_anim $big_smoke {animationName} "CAR_SC4_FL" {animationFile} "CAR_CHAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $ryder {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_enter_car_as_passenger $scplayer {vehicle} $sweet_car {time} 5000 {seat} SeatId.RearRight
task_go_straight_to_coord $sweet {x} 2181.51 {y} -1201.97 {z} 24.0 {speed} MoveState.Run {time} 5000
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_37903
switch_car_siren 186@ {state} True

:DRUGS4_37903
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_37926
switch_car_siren 187@ {state} True

:DRUGS4_37926
TIMERA = 0
294@ = 6

:DRUGS4_37940
if 
  294@ == 6
goto_if_false @DRUGS4_38146
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38146
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_38146
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_38146
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_38146
if 
  TIMERA > 2000
goto_if_false @DRUGS4_38146
set_char_coordinates $sweet {x} 2176.78 {y} -1196.64 {z} 23.18
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 6000 {seat} SeatId.RearLeft
stop_char_facial_talk $big_smoke
pop_car_panel $sweet_car {panelId} 4 {visibility} False
set_fixed_camera_position 2178.8811 {y} -1194.196 {z} 24.3172 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.866 {y} -1195.196 {z} 24.2959 {switchStyle} SwitchType.JumpCut
294@ = 7

:DRUGS4_38146
if 
  294@ == 7
goto_if_false @DRUGS4_38252
if 
  not is_char_dead $scplayer
goto_if_false @DRUGS4_38252
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @DRUGS4_38252
task_play_anim $scplayer {animationName} "CAR_SC4_BR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
294@ = 8

:DRUGS4_38252
if 
  294@ == 8
goto_if_false @DRUGS4_38687
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38687
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_38687
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_38687
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_38687
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_38687
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_38687
if 
  is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @DRUGS4_38658
task_play_anim $sweet {animationName} "CAR_SC4_BL" {animationFile} "CAR_CHAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot2
start_char_facial_talk $sweet {duration} 1000
print_now 'FIN1_KE' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15880
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_38502
set_car_visible 40@ {state} True
heli_follow_entity 40@ {char} $scplayer {vehicle} -1 {radius} 20.0

:DRUGS4_38502
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_38570
set_car_visible 186@ {state} True
start_playback_recorded_car 186@ {path} 333
285@ = add_blip_for_car 186@
change_blip_display 285@ {display} BlipDisplay.BlipOnly
set_car_health 186@ {health} 1000
297@ = 1
313@ = 1

:DRUGS4_38570
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_38630
set_car_visible 187@ {state} True
start_playback_recorded_car 187@ {path} 334
286@ = add_blip_for_car 187@
change_blip_display 286@ {display} BlipDisplay.BlipOnly
298@ = 1
314@ = 1

:DRUGS4_38630
TIMERA = 0
TIMERB = 0
294@ = 9
goto @DRUGS4_38687

:DRUGS4_38658
if 
  TIMERA > 5000
goto_if_false @DRUGS4_38687
warp_char_into_car_as_passenger $sweet {handle} $sweet_car {seat} SeatId.RearLeft

:DRUGS4_38687
if 
  294@ == 9
goto_if_false @DRUGS4_38802
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38802
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_38802
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_38802
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_38802
if 
  TIMERA > 500
goto_if_false @DRUGS4_38802
TIMERA = 0
294@ = 10

:DRUGS4_38802
if 
  294@ == 10
goto_if_false @DRUGS4_38954
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_38954
if 
  TIMERB > 2800
goto_if_false @DRUGS4_38954
start_playback_recorded_car $sweet_car {path} 332
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_38940
58@ = create_searchlight_on_vehicle 40@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2193.73 {yPoint} -1166.85 {zPoint} 34.06 {pointRadius} 3.0 {radius} 0.5
point_searchlight_at_char 58@ {handle} $scplayer {speed} 0.8

:DRUGS4_38940
TIMERB = 0
294@ = 11

:DRUGS4_38954
if 
  294@ == 11
goto_if_false @DRUGS4_39093
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_39093
if 
  TIMERB > 3500
goto_if_false @DRUGS4_39093
set_fixed_camera_position 2178.9871 {y} -1140.6429 {z} 25.902 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2178.9509 {y} -1141.642 {z} 25.8765 {switchStyle} SwitchType.JumpCut
326@ = 1
178@ = 0
179@ = 0
TIMERB = 0
294@ = 12

:DRUGS4_39093
if 
  294@ == 12
goto_if_false @DRUGS4_39624
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_39624
if or
  locate_char_any_means_2d $scplayer {x} 2178.9871 {y} -1140.6429 {xRadius} 1.3 {yRadius} 1.3 {drawSphere} False
  TIMERB > 2250
goto_if_false @DRUGS4_39624
warp_char_from_car_to_coord $scplayer {x} 2178.8 {y} -1161.187 {z} 10.0
attach_char_to_car $scplayer {vehicle} $sweet_car {xOffset} 0.0 {yOffset} -0.5 {zOffset} 0.8 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Ak47
set_heading_for_attached_player $player1 {heading} 90.0 {headingRange} 180.0
restore_camera 
set_char_proofs $scplayer {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
switch_widescreen False
set_player_control $player1 {state} True
TIMERA = 0
TIMERB = 0
delete_char $sweet
delete_char $big_smoke
delete_char $ryder
remove_animation "GANGS"
remove_animation "CAR_CHAT"
unload_special_character 1
unload_special_character 2
unload_special_character 3
293@ += 1
if 
  not is_char_dead 196@
goto_if_false @DRUGS4_39450
if 
  293@ > 1
goto_if_false @DRUGS4_39414
task_drive_by 196@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40
goto @DRUGS4_39450

:DRUGS4_39414
task_drive_by 196@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_39450
if 
  not is_char_dead 198@
goto_if_false @DRUGS4_39502
task_drive_by 198@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:DRUGS4_39502
set_car_health $sweet_car {health} 6000
$carhealth_f1 = get_car_health $sweet_car
$carhealth_f1 /= 60
display_onscreen_counter_with_string $carhealth_f1 {display} CounterDisplay.Bar {text} 'LAF1_38'
set_player_duck_button $player1 {enabled} False
print_help 'LAF1_50'
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
331@ = 1
312@ = 1
295@ = 1
296@ = 1
294@ = 13

:DRUGS4_39624
if 
  295@ > 0
goto_if_false @DRUGS4_39789
if 
  5 > 325@
goto_if_false @DRUGS4_39789
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_39789
$carhealth_f1 = get_car_health $sweet_car
$carhealth_f1 -= 1000
if 
  0 >= $carhealth_f1
goto_if_false @DRUGS4_39782
$carhealth_f1 = 0
set_car_proofs $sweet_car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
explode_car $sweet_car
print_now 'LAF1_4' {time} 5000 {flag} 1
goto @DRUGS4_67705
goto @DRUGS4_39789

:DRUGS4_39782
$carhealth_f1 /= 50

:DRUGS4_39789
if 
  295@ == 1
goto_if_false @DRUGS4_43440
if 
  331@ == 1
goto_if_false @DRUGS4_39845
if 
  is_help_message_being_displayed 
goto_if_false @DRUGS4_39845
331@ = 2

:DRUGS4_39845
if 
  331@ == 2
goto_if_false @DRUGS4_39894
if 
  not is_help_message_being_displayed 
goto_if_false @DRUGS4_39894
print_help 'LAF1_51'
331@ = 3

:DRUGS4_39894
if 
  294@ == 13
goto_if_false @DRUGS4_40009
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_40009
if 
  locate_car_2d $sweet_car {x} 2261.95 {y} -1142.2 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_40009
if 
  not is_car_dead 211@
goto_if_false @DRUGS4_40009
set_train_speed 211@ {speed} 10.0
set_train_cruise_speed 211@ {speed} 10.0
294@ = 14

:DRUGS4_40009
if 
  294@ == 14
goto_if_false @DRUGS4_40110
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_40110
if 
  locate_car_2d 188@ {x} 2284.98 {y} -1146.61 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @DRUGS4_40110
TIMERB = 0
327@ = 1
set_car_health 188@ {health} 750
294@ = 15

:DRUGS4_40110
if 
  294@ == 15
goto_if_false @DRUGS4_40175
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_40175
if 
  TIMERB > 1100
goto_if_false @DRUGS4_40175
explode_car 188@
294@ = 16

:DRUGS4_40175
if 
  296@ == 1
goto_if_false @DRUGS4_40359
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_40359
if 
  locate_car_2d $sweet_car {x} 2223.1101 {y} -1150.118 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DRUGS4_40359
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_40352
start_playback_recorded_car 188@ {path} 335
287@ = add_blip_for_car 188@
change_blip_display 287@ {display} BlipDisplay.BlipOnly
315@ = 1
299@ = 1
if 
  not is_char_dead 200@
goto_if_false @DRUGS4_40352
task_drive_by 200@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_40352
296@ = 2

:DRUGS4_40359
if 
  296@ == 2
goto_if_false @DRUGS4_40845
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_40845
if 
  locate_car_2d $sweet_car {x} 2352.54 {y} -1271.86 {xRadius} 10.1 {yRadius} 10.1 {drawSphere} False
goto_if_false @DRUGS4_40845
if 
  not is_car_dead 189@
goto_if_false @DRUGS4_40838
start_playback_recorded_car 189@ {path} 336
288@ = add_blip_for_car 189@
change_blip_display 288@ {display} BlipDisplay.BlipOnly
300@ = 1
316@ = 1
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_40536
task_drive_by 202@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_40536
delete_mission_train 211@
delete_mission_trains 
mark_model_as_no_longer_needed 538
190@ = create_car 596 {x} 2500.697 {y} -1443.776 {z} 28.28
set_petrol_tank_weakpoint 190@ {state} False
set_car_heading 190@ {heading} 90.4588
set_car_only_damaged_by_player 190@ {state} True
set_car_health 190@ {health} 750
203@ = create_char_inside_car 190@ {pedType} PedType.Mission1 {modelId} 280
set_char_only_damaged_by_player 203@ {state} True
set_char_decision_maker 203@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 203@ {state} False
set_char_health 203@ {health} 200
204@ = create_char_as_passenger 190@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 204@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 204@ {state} True
set_char_health 204@ {health} 100
give_weapon_to_char 204@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 204@ {state} False
car_set_idle 190@
192@ = create_car 596 {x} 2478.2229 {y} -1321.9659 {z} 28.252
set_car_heading 192@ {heading} 356.585
set_car_only_damaged_by_player 192@ {state} True
set_car_health 192@ {health} 280
car_set_idle 192@
205@ = create_char_inside_car 192@ {pedType} PedType.Mission1 {modelId} 280
set_char_only_damaged_by_player 205@ {state} True
set_char_decision_maker 205@ {handleOrTemplate} 55@
206@ = create_char_as_passenger 192@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_only_damaged_by_player 206@ {state} True
set_char_decision_maker 206@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 206@ {state} False
give_weapon_to_char 206@ {weaponType} WeaponType.Mp5 {ammo} 9999
car_set_idle 192@

:DRUGS4_40838
296@ = 3

:DRUGS4_40845
if 
  296@ == 3
goto_if_false @DRUGS4_41306
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_41306
if 
  locate_car_2d $sweet_car {x} 2394.6699 {y} -1442.4301 {xRadius} 10.1 {yRadius} 10.1 {drawSphere} False
goto_if_false @DRUGS4_41306
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_41299
301@ = 1
317@ = 1
start_playback_recorded_car 190@ {path} 337
289@ = add_blip_for_car 190@
change_blip_display 289@ {display} BlipDisplay.BlipOnly
switch_car_siren 190@ {state} True
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_41090
if 
  293@ > 1
goto_if_false @DRUGS4_41054
task_drive_by 204@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
goto @DRUGS4_41090

:DRUGS4_41054
task_drive_by 204@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_41090
delete_all_trains 
191@ = create_car 596 {x} 2447.0359 {y} -1370.772 {z} 22.64
set_car_heading 191@ {heading} 270.267
car_set_idle 191@
set_car_health 191@ {health} 250
set_car_only_damaged_by_player 191@ {state} True
290@ = add_blip_for_car 191@
change_blip_display 290@ {display} BlipDisplay.BlipOnly
207@ = create_char PedType.Mission1 {modelId} 280 {x} 2448.77 {y} -1368.8979 {z} 23.6
set_char_decision_maker 207@ {handleOrTemplate} 55@
give_weapon_to_char 207@ {weaponType} WeaponType.Mp5 {ammo} 999
set_lvar_int_to_lvar_int 118@ = 207@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
208@ = create_char PedType.Mission1 {modelId} 280 {x} 2444.387 {y} -1369.356 {z} 24.02
set_char_decision_maker 208@ {handleOrTemplate} 55@
give_weapon_to_char 208@ {weaponType} WeaponType.Mp5 {ammo} 999
set_lvar_int_to_lvar_int 118@ = 208@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
302@ = 1

:DRUGS4_41299
296@ = 4

:DRUGS4_41306
if 
  296@ == 4
goto_if_false @DRUGS4_41497
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_41497
if 
  locate_car_2d $sweet_car {x} 2448.9399 {y} -1311.15 {xRadius} 30.1 {yRadius} 30.1 {drawSphere} False
goto_if_false @DRUGS4_41497
if 
  not is_car_dead 192@
goto_if_false @DRUGS4_41490
start_playback_recorded_car 192@ {path} 338
switch_car_siren 192@ {state} True
303@ = 1
319@ = 1
if 
  not is_char_dead 205@
goto_if_false @DRUGS4_41475
task_drive_by 205@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:DRUGS4_41475
291@ = add_blip_for_car 192@
change_blip_display 291@ {display} BlipDisplay.BlipOnly

:DRUGS4_41490
296@ = 5

:DRUGS4_41497
if 
  313@ == 1
goto_if_false @DRUGS4_41649
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_41649
if 
  not is_char_dead 195@
goto_if_false @DRUGS4_41554
goto @DRUGS4_41649

:DRUGS4_41554
if 
  not is_char_dead 196@
goto_if_false @DRUGS4_41637
if 
  is_char_in_car 196@ {vehicle} 186@
goto_if_false @DRUGS4_41630
284@ = get_driver_of_car 186@
if 
  284@ == -1
goto_if_false @DRUGS4_41630
task_shuffle_to_next_car_seat 196@ {vehicle} 186@
313@ = 2

:DRUGS4_41630
goto @DRUGS4_41649

:DRUGS4_41637
stop_playback_recorded_car 186@
313@ = 2

:DRUGS4_41649
if 
  313@ == 2
goto_if_false @DRUGS4_41695
if 
  is_char_dead 196@
goto_if_false @DRUGS4_41695
stop_playback_recorded_car 186@
313@ = 3

:DRUGS4_41695
if 
  297@ == 1
goto_if_false @DRUGS4_41811
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_41779
if 
  not is_playback_going_on_for_car 186@
goto_if_false @DRUGS4_41772
mark_car_as_no_longer_needed 186@
mark_char_as_no_longer_needed 195@
mark_char_as_no_longer_needed 196@
remove_blip 285@
297@ = 2

:DRUGS4_41772
goto @DRUGS4_41811

:DRUGS4_41779
stop_playback_recorded_car 186@
mark_char_as_no_longer_needed 195@
mark_char_as_no_longer_needed 196@
mark_car_as_no_longer_needed 186@
remove_blip 285@
297@ = 2

:DRUGS4_41811
if 
  314@ == 1
goto_if_false @DRUGS4_41963
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_41963
if 
  not is_char_dead 197@
goto_if_false @DRUGS4_41868
goto @DRUGS4_41963

:DRUGS4_41868
if 
  not is_char_dead 198@
goto_if_false @DRUGS4_41951
if 
  is_char_in_car 198@ {vehicle} 187@
goto_if_false @DRUGS4_41944
284@ = get_driver_of_car 187@
if 
  284@ == -1
goto_if_false @DRUGS4_41944
task_shuffle_to_next_car_seat 198@ {vehicle} 187@
314@ = 2

:DRUGS4_41944
goto @DRUGS4_41963

:DRUGS4_41951
stop_playback_recorded_car 187@
314@ = 2

:DRUGS4_41963
if 
  314@ == 2
goto_if_false @DRUGS4_42009
if 
  is_char_dead 198@
goto_if_false @DRUGS4_42009
stop_playback_recorded_car 187@
314@ = 3

:DRUGS4_42009
if 
  298@ == 1
goto_if_false @DRUGS4_42125
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_42093
if 
  not is_playback_going_on_for_car 187@
goto_if_false @DRUGS4_42086
mark_car_as_no_longer_needed 187@
mark_char_as_no_longer_needed 197@
mark_char_as_no_longer_needed 198@
remove_blip 286@
298@ = 2

:DRUGS4_42086
goto @DRUGS4_42125

:DRUGS4_42093
stop_playback_recorded_car 187@
mark_char_as_no_longer_needed 197@
mark_char_as_no_longer_needed 198@
mark_car_as_no_longer_needed 187@
remove_blip 286@
298@ = 2

:DRUGS4_42125
if 
  299@ == 1
goto_if_false @DRUGS4_42261
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_42219
if 
  not is_playback_going_on_for_car 188@
goto_if_false @DRUGS4_42212
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 199@
mark_char_as_no_longer_needed 200@
remove_blip 287@
mark_car_as_no_longer_needed 211@
mark_model_as_no_longer_needed 538
299@ = 2

:DRUGS4_42212
goto @DRUGS4_42261

:DRUGS4_42219
stop_playback_recorded_car 188@
mark_char_as_no_longer_needed 199@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 188@
mark_car_as_no_longer_needed 211@
mark_model_as_no_longer_needed 538
remove_blip 287@
299@ = 2

:DRUGS4_42261
if 
  316@ == 1
goto_if_false @DRUGS4_42413
if 
  not is_car_dead 189@
goto_if_false @DRUGS4_42413
if 
  not is_char_dead 201@
goto_if_false @DRUGS4_42318
goto @DRUGS4_42413

:DRUGS4_42318
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_42401
if 
  is_char_in_car 202@ {vehicle} 189@
goto_if_false @DRUGS4_42394
284@ = get_driver_of_car 189@
if 
  284@ == -1
goto_if_false @DRUGS4_42394
task_shuffle_to_next_car_seat 202@ {vehicle} 189@
316@ = 2

:DRUGS4_42394
goto @DRUGS4_42413

:DRUGS4_42401
stop_playback_recorded_car 189@
316@ = 2

:DRUGS4_42413
if 
  316@ == 2
goto_if_false @DRUGS4_42459
if 
  is_char_dead 202@
goto_if_false @DRUGS4_42459
stop_playback_recorded_car 189@
316@ = 3

:DRUGS4_42459
if 
  300@ == 1
goto_if_false @DRUGS4_42575
if 
  not is_car_dead 189@
goto_if_false @DRUGS4_42543
if 
  not is_playback_going_on_for_car 189@
goto_if_false @DRUGS4_42536
mark_car_as_no_longer_needed 189@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
remove_blip 288@
300@ = 2

:DRUGS4_42536
goto @DRUGS4_42575

:DRUGS4_42543
stop_playback_recorded_car 189@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
mark_car_as_no_longer_needed 189@
remove_blip 288@
300@ = 2

:DRUGS4_42575
if 
  317@ == 1
goto_if_false @DRUGS4_42727
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_42727
if 
  not is_char_dead 203@
goto_if_false @DRUGS4_42632
goto @DRUGS4_42727

:DRUGS4_42632
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_42715
if 
  is_char_in_car 204@ {vehicle} 190@
goto_if_false @DRUGS4_42708
284@ = get_driver_of_car 190@
if 
  284@ == -1
goto_if_false @DRUGS4_42708
task_shuffle_to_next_car_seat 204@ {vehicle} 190@
317@ = 2

:DRUGS4_42708
goto @DRUGS4_42727

:DRUGS4_42715
stop_playback_recorded_car 190@
317@ = 2

:DRUGS4_42727
if 
  317@ == 2
goto_if_false @DRUGS4_42773
if 
  is_char_dead 204@
goto_if_false @DRUGS4_42773
stop_playback_recorded_car 190@
317@ = 3

:DRUGS4_42773
if 
  301@ == 1
goto_if_false @DRUGS4_42889
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_42857
if 
  not is_playback_going_on_for_car 190@
goto_if_false @DRUGS4_42850
mark_car_as_no_longer_needed 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
remove_blip 289@
301@ = 2

:DRUGS4_42850
goto @DRUGS4_42889

:DRUGS4_42857
stop_playback_recorded_car 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
mark_car_as_no_longer_needed 190@
remove_blip 289@
301@ = 2

:DRUGS4_42889
if 
  302@ == 1
goto_if_false @DRUGS4_42950
if 
  is_car_dead 191@
goto_if_false @DRUGS4_42950
mark_char_as_no_longer_needed 207@
mark_char_as_no_longer_needed 208@
mark_car_as_no_longer_needed 191@
remove_blip 290@
302@ = 2

:DRUGS4_42950
if 
  319@ == 1
goto_if_false @DRUGS4_43102
if 
  not is_car_dead 192@
goto_if_false @DRUGS4_43102
if 
  not is_char_dead 205@
goto_if_false @DRUGS4_43007
goto @DRUGS4_43102

:DRUGS4_43007
if 
  not is_char_dead 206@
goto_if_false @DRUGS4_43090
if 
  is_char_in_car 206@ {vehicle} 192@
goto_if_false @DRUGS4_43083
284@ = get_driver_of_car 192@
if 
  284@ == -1
goto_if_false @DRUGS4_43083
task_shuffle_to_next_car_seat 206@ {vehicle} 192@
319@ = 2

:DRUGS4_43083
goto @DRUGS4_43102

:DRUGS4_43090
stop_playback_recorded_car 192@
319@ = 2

:DRUGS4_43102
if 
  319@ == 2
goto_if_false @DRUGS4_43148
if 
  is_char_dead 206@
goto_if_false @DRUGS4_43148
stop_playback_recorded_car 192@
319@ = 3

:DRUGS4_43148
if 
  303@ == 1
goto_if_false @DRUGS4_43264
if 
  not is_car_dead 192@
goto_if_false @DRUGS4_43232
if 
  not is_playback_going_on_for_car 192@
goto_if_false @DRUGS4_43225
mark_car_as_no_longer_needed 192@
mark_char_as_no_longer_needed 205@
mark_char_as_no_longer_needed 206@
remove_blip 291@
303@ = 2

:DRUGS4_43225
goto @DRUGS4_43264

:DRUGS4_43232
stop_playback_recorded_car 192@
mark_char_as_no_longer_needed 205@
mark_char_as_no_longer_needed 206@
mark_car_as_no_longer_needed 192@
remove_blip 291@
303@ = 2

:DRUGS4_43264
if 
  143@ == 0
goto_if_false @DRUGS4_43320
if 
  is_car_dead 40@
goto_if_false @DRUGS4_43320
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 44@
delete_searchlight 58@
143@ = 1

:DRUGS4_43320
if 
  locate_char_any_means_2d $scplayer {x} 2555.8501 {y} -1257.4301 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_43440
326@ = 2
do_fade 100 {direction} Fade.Out

:DRUGS4_43371
if 
  get_fading_status 
goto_if_false @DRUGS4_43395
wait 0
goto @DRUGS4_43371

:DRUGS4_43395
set_player_control $player1 {state} False
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_43433
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_43433
295@ = 2

:DRUGS4_43440
if 
  326@ == 1
goto_if_false @DRUGS4_44958
gosub @DRUGS4_66554
if 
  178@ == 0
goto_if_false @DRUGS4_43530
if 
  179@ == 0
goto_if_false @DRUGS4_43530
set_lvar_int_to_constant 106@ = 15880
set_lvar_text_label 107@s = 'FIN1_KF'
gosub @DRUGS4_66512

:DRUGS4_43530
if 
  178@ == 1
goto_if_false @DRUGS4_43595
if 
  179@ == 0
goto_if_false @DRUGS4_43595
set_lvar_int_to_constant 106@ = 15881
set_lvar_text_label 107@s = 'FIN1_KG'
gosub @DRUGS4_66512

:DRUGS4_43595
if 
  178@ == 2
goto_if_false @DRUGS4_43660
if 
  179@ == 0
goto_if_false @DRUGS4_43660
set_lvar_int_to_constant 106@ = 15882
set_lvar_text_label 107@s = 'FIN1_KH'
gosub @DRUGS4_66512

:DRUGS4_43660
if 
  178@ == 3
goto_if_false @DRUGS4_43725
if 
  179@ == 0
goto_if_false @DRUGS4_43725
set_lvar_int_to_constant 106@ = 15883
set_lvar_text_label 107@s = 'FIN1_KI'
gosub @DRUGS4_66512

:DRUGS4_43725
if 
  178@ == 4
goto_if_false @DRUGS4_43790
if 
  179@ == 0
goto_if_false @DRUGS4_43790
set_lvar_int_to_constant 106@ = 15884
set_lvar_text_label 107@s = 'FIN1_KJ'
gosub @DRUGS4_66512

:DRUGS4_43790
if 
  178@ == 5
goto_if_false @DRUGS4_43855
if 
  179@ == 0
goto_if_false @DRUGS4_43855
set_lvar_int_to_constant 106@ = 15949
set_lvar_text_label 107@s = 'FIN1_ZC'
gosub @DRUGS4_66512

:DRUGS4_43855
if 
  178@ == 6
goto_if_false @DRUGS4_43938
if 
  179@ == 0
goto_if_false @DRUGS4_43938
if 
  327@ == 1
goto_if_false @DRUGS4_43938
set_lvar_int_to_constant 106@ = 15887
set_lvar_text_label 107@s = 'FIN1_KM'
gosub @DRUGS4_66512

:DRUGS4_43938
if 
  178@ == 7
goto_if_false @DRUGS4_44003
if 
  179@ == 0
goto_if_false @DRUGS4_44003
set_lvar_int_to_constant 106@ = 15886
set_lvar_text_label 107@s = 'FIN1_KL'
gosub @DRUGS4_66512

:DRUGS4_44003
if 
  178@ == 8
goto_if_false @DRUGS4_44091
if 
  179@ == 0
goto_if_false @DRUGS4_44091
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_44062
set_searchlight_clip_if_colliding 58@ {state} True

:DRUGS4_44062
set_lvar_int_to_constant 106@ = 15888
set_lvar_text_label 107@s = 'FIN1_KO'
gosub @DRUGS4_66512

:DRUGS4_44091
if 
  178@ == 9
goto_if_false @DRUGS4_44156
if 
  179@ == 0
goto_if_false @DRUGS4_44156
set_lvar_int_to_constant 106@ = 15889
set_lvar_text_label 107@s = 'FIN1_KP'
gosub @DRUGS4_66512

:DRUGS4_44156
if 
  327@ == 1
goto_if_false @DRUGS4_44219
if 
  locate_char_any_means_2d $scplayer {x} 2372.3501 {y} -1283.33 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_44219
327@ = 2

:DRUGS4_44219
if 
  178@ == 10
goto_if_false @DRUGS4_44302
if 
  327@ == 2
goto_if_false @DRUGS4_44302
if 
  179@ == 0
goto_if_false @DRUGS4_44302
set_lvar_int_to_constant 106@ = 15892
set_lvar_text_label 107@s = 'FIN1_KS'
gosub @DRUGS4_66512

:DRUGS4_44302
if 
  178@ == 11
goto_if_false @DRUGS4_44390
if 
  179@ == 0
goto_if_false @DRUGS4_44390
if 
  does_searchlight_exist 58@
goto_if_false @DRUGS4_44361
set_searchlight_clip_if_colliding 58@ {state} False

:DRUGS4_44361
set_lvar_int_to_constant 106@ = 15893
set_lvar_text_label 107@s = 'FIN1_KT'
gosub @DRUGS4_66512

:DRUGS4_44390
if 
  178@ == 12
goto_if_false @DRUGS4_44455
if 
  179@ == 0
goto_if_false @DRUGS4_44455
set_lvar_int_to_constant 106@ = 15894
set_lvar_text_label 107@s = 'FIN1_KU'
gosub @DRUGS4_66512

:DRUGS4_44455
if 
  178@ == 13
goto_if_false @DRUGS4_44520
if 
  179@ == 0
goto_if_false @DRUGS4_44520
set_lvar_int_to_constant 106@ = 15812
set_lvar_text_label 107@s = 'FIN1_CB'
gosub @DRUGS4_66512

:DRUGS4_44520
if 
  327@ == 2
goto_if_false @DRUGS4_44583
if 
  locate_char_any_means_2d $scplayer {x} 2424.4199 {y} -1446.5699 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_44583
327@ = 3

:DRUGS4_44583
if 
  178@ == 14
goto_if_false @DRUGS4_44666
if 
  327@ == 3
goto_if_false @DRUGS4_44666
if 
  179@ == 0
goto_if_false @DRUGS4_44666
set_lvar_int_to_constant 106@ = 15902
set_lvar_text_label 107@s = 'FIN1_LD'
gosub @DRUGS4_66512

:DRUGS4_44666
if 
  327@ == 3
goto_if_false @DRUGS4_44729
if 
  locate_char_any_means_2d $scplayer {x} 2453.78 {y} -1333.3 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS4_44729
327@ = 4

:DRUGS4_44729
if 
  178@ == 15
goto_if_false @DRUGS4_44812
if 
  327@ == 3
goto_if_false @DRUGS4_44812
if 
  179@ == 0
goto_if_false @DRUGS4_44812
set_lvar_int_to_constant 106@ = 15950
set_lvar_text_label 107@s = 'FIN1_ZD'
gosub @DRUGS4_66512

:DRUGS4_44812
if 
  327@ == 4
goto_if_false @DRUGS4_44875
if 
  locate_char_any_means_2d $scplayer {x} 2454.1001 {y} -1313.02 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRUGS4_44875
327@ = 5

:DRUGS4_44875
if 
  178@ == 16
goto_if_false @DRUGS4_44958
if 
  179@ == 0
goto_if_false @DRUGS4_44958
if 
  327@ == 5
goto_if_false @DRUGS4_44958
set_lvar_int_to_constant 106@ = 15897
set_lvar_text_label 107@s = 'FIN1_KX'
gosub @DRUGS4_66512

:DRUGS4_44958
if 
  295@ == 2
goto_if_false @DRUGS4_47216
set_player_control $player1 {state} False
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_45014
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_45014
switch_widescreen True
set_near_clip 0.1
stop_playback_recorded_car 186@
delete_car 186@
remove_blip 285@
stop_playback_recorded_car 187@
delete_car 187@
remove_blip 286@
stop_playback_recorded_car 188@
delete_car 188@
remove_blip 287@
stop_playback_recorded_car 189@
delete_car 189@
remove_blip 288@
stop_playback_recorded_car 190@
delete_car 190@
remove_blip 289@
delete_car 191@
remove_blip 290@
stop_playback_recorded_car 192@
delete_car 192@
remove_blip 291@
delete_char 195@
delete_char 196@
delete_char 197@
delete_char 198@
delete_char 199@
delete_char 200@
delete_char 201@
delete_char 202@
delete_char 203@
delete_char 204@
delete_char 205@
delete_char 206@
delete_char 207@
delete_char 208@
296@ = 0
297@ = 0
298@ = 0
299@ = 0
300@ = 0
301@ = 0
302@ = 0
303@ = 0
304@ = 0
313@ = 0
314@ = 0
315@ = 0
316@ = 0
317@ = 0
318@ = 0
319@ = 0
320@ = 0
request_car_recording 331
request_model #DYN_SCAFFOLD_4B
request_car_recording 339
request_animation "MD_CHASE"
request_car_recording 373
request_car_recording 374
request_car_recording 375
request_car_recording 376
request_car_recording 377
request_car_recording 371
request_car_recording 372
request_car_recording 378
request_car_recording 380
request_car_recording 381
request_model #MUNCH_DONUT
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_model #CHOPCOP_ARMR
request_model #CHOPCOP_LEGR
request_model #CHOPCOP_HEAD
request_model #CHOPCOP_TORSO
request_model #WD_FENCE_ANIM
request_model 284
request_model 523
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15903
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15904
request_model #MD_POSTER
load_all_models_now 

:DRUGS4_45477
if or
  not has_car_recording_been_loaded 331
  not has_model_loaded #DYN_SCAFFOLD_4B
  not has_car_recording_been_loaded 339
  not has_animation_loaded "MD_CHASE"
  not has_model_loaded 284
  not has_model_loaded 523
goto_if_false @DRUGS4_45536
wait 0
goto @DRUGS4_45477

:DRUGS4_45536
if or
  not has_car_recording_been_loaded 373
  not has_car_recording_been_loaded 374
  not has_car_recording_been_loaded 375
  not has_car_recording_been_loaded 376
  not has_car_recording_been_loaded 377
goto_if_false @DRUGS4_45583
wait 0
goto @DRUGS4_45536

:DRUGS4_45583
if or
  not has_car_recording_been_loaded 371
  not has_car_recording_been_loaded 372
  not has_car_recording_been_loaded 378
  not has_car_recording_been_loaded 380
goto_if_false @DRUGS4_45625
wait 0
goto @DRUGS4_45583

:DRUGS4_45625
if or
  not has_model_loaded #MUNCH_DONUT
  not has_car_recording_been_loaded 381
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @DRUGS4_45665
wait 0
goto @DRUGS4_45625

:DRUGS4_45665
if or
  not has_model_loaded #CHOPCOP_ARMR
  not has_model_loaded #CHOPCOP_LEGR
  not has_model_loaded #CHOPCOP_HEAD
  not has_model_loaded #WD_FENCE_ANIM
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_45715
wait 0
goto @DRUGS4_45665

:DRUGS4_45715
212@ = create_car 523 {x} 2571.3899 {y} -1248.083 {z} 45.2
set_petrol_tank_weakpoint 212@ {state} False
set_car_heading 212@ {heading} 181.089
213@ = create_car 523 {x} 2569.95 {y} -1248.083 {z} 45.2
set_petrol_tank_weakpoint 213@ {state} False
set_car_heading 213@ {heading} 181.089
214@ = create_car 523 {x} 2586.3391 {y} -1351.697 {z} 35.174
set_petrol_tank_weakpoint 214@ {state} False
set_car_heading 214@ {heading} 87.221
force_car_lights 214@ {lightMode} CarLights.ForceOn
force_car_lights 212@ {lightMode} CarLights.ForceOff
force_car_lights 213@ {lightMode} CarLights.ForceOff
216@ = create_char_inside_car 212@ {pedType} PedType.Mission1 {modelId} 284
set_char_decision_maker 216@ {handleOrTemplate} 55@
217@ = create_char_inside_car 213@ {pedType} PedType.Mission1 {modelId} 284
set_char_decision_maker 217@ {handleOrTemplate} 55@
186@ = create_car 596 {x} 2505.7361 {y} -1256.7419 {z} 33.64
set_petrol_tank_weakpoint 186@ {state} False
set_car_heading 186@ {heading} 268.42
195@ = create_char_inside_car 186@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 195@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 195@ {state} False
set_char_can_be_shot_in_vehicle 195@ {state} False
set_char_only_damaged_by_player 195@ {state} True
230@ = create_object #MUNCH_DONUT {x} 2570.5901 {y} -1247.66 {z} 44.88
set_fixed_camera_position 2570.636 {y} -1245.9399 {z} 45.3765 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2570.625 {y} -1246.931 {z} 45.2422 {switchStyle} SwitchType.JumpCut
do_fade 250 {direction} Fade.In
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_46129
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_46117
stop_playback_recorded_car $sweet_car
car_set_idle $sweet_car
freeze_car_position $sweet_car {state} True
goto @DRUGS4_46129

:DRUGS4_46117
car_set_idle $sweet_car
freeze_car_position $sweet_car {state} True

:DRUGS4_46129
237@ = create_fx_system "CARWASHSPRAY" {x} 2451.04 {y} -1460.79 {z} 23.0 {ignoreBoundingChecks} True
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_46250
detach_char_from_car $scplayer
set_char_coordinates $scplayer {x} 2585.74 {y} -1264.16 {z} 46.2
$big_smoke = create_char_inside_car $sweet_car {pedType} PedType.Special {modelId} 291
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
$ryder = create_char_as_passenger $sweet_car {pedType} PedType.Special {modelId} 292 {seat} SeatId.BikeRear
set_char_decision_maker $ryder {handleOrTemplate} 55@

:DRUGS4_46250
218@ = create_char PedType.Mission1 {modelId} 284 {x} 0.0 {y} 0.0 {z} 0.0
set_char_decision_maker 218@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 218@ {state} False
set_char_only_damaged_by_player 218@ {state} True
set_car_proofs 214@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_JMP_F" {animationFile} "MD_CHASE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 218@ {vehicle} 214@ {xOffset} 0.0 {yOffset} -0.401 {zOffset} 0.47 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_health 218@ {health} 1000
308@ = 1
222@ = create_object #DYN_SCAFFOLD_4B {x} 2563.2319 {y} -1322.392 {z} 40.3
set_object_heading 222@ {heading} 170.0
223@ = create_object #DYN_SCAFFOLD_4B {x} 2563.2319 {y} -1322.392 {z} 42.5
set_object_heading 223@ {heading} 170.0
224@ = create_object #DYN_SCAFFOLD_4B {x} 2563.2319 {y} -1322.392 {z} 44.7
set_object_heading 224@ {heading} 170.0
225@ = create_object #DYN_SCAFFOLD_4B {x} 2565.8821 {y} -1322.392 {z} 40.3
set_object_heading 225@ {heading} 170.0
226@ = create_object #DYN_SCAFFOLD_4B {x} 2565.8821 {y} -1322.392 {z} 42.5
set_object_heading 226@ {heading} 170.0
227@ = create_object #DYN_SCAFFOLD_4B {x} 2565.8821 {y} -1322.392 {z} 44.7
set_object_heading 227@ {heading} 170.0
305@ = 1
187@ = create_car 596 {x} 2520.49 {y} -1485.04 {z} 22.84
set_petrol_tank_weakpoint 187@ {state} False
set_car_heading 187@ {heading} 1.33
set_car_health 187@ {health} 750
set_car_only_damaged_by_player 187@ {state} True
196@ = create_char_inside_car 187@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 196@ {handleOrTemplate} 55@
set_char_health 196@ {health} 100
set_char_only_damaged_by_player 196@ {state} True
197@ = create_char_as_passenger 187@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 197@ {handleOrTemplate} 55@
set_char_health 197@ {health} 100
set_char_only_damaged_by_player 197@ {state} True
give_weapon_to_char 197@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 197@ {state} False
car_set_idle 187@
188@ = create_car 596 {x} 2532.98 {y} -1502.3719 {z} 23.67
set_petrol_tank_weakpoint 188@ {state} False
set_car_heading 188@ {heading} 266.9
set_car_health 188@ {health} 600
set_car_only_damaged_by_player 188@ {state} True
198@ = create_char_inside_car 188@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 198@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 198@ {state} False
set_char_health 198@ {health} 100
set_char_only_damaged_by_player 198@ {state} True
199@ = create_char_as_passenger 188@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 199@ {handleOrTemplate} 55@
set_char_health 199@ {health} 100
set_char_only_damaged_by_player 199@ {state} True
give_weapon_to_char 199@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 199@ {state} False
car_set_idle 188@
193@ = create_car 596 {x} 2510.967 {y} -1448.1379 {z} 28.398
set_petrol_tank_weakpoint 193@ {state} False
set_car_heading 193@ {heading} 72.49
set_car_health 193@ {health} 325
set_car_only_damaged_by_player 193@ {state} True
201@ = create_char_inside_car 193@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 201@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 201@ {state} False
set_char_only_damaged_by_player 201@ {state} True
202@ = create_char_as_passenger 193@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 202@ {handleOrTemplate} 55@
set_char_only_damaged_by_player 202@ {state} True
give_weapon_to_char 202@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 202@ {state} False
car_set_idle 193@
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_47209
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_47209
if 
  not is_car_dead 213@
goto_if_false @DRUGS4_47209
if 
  not is_car_dead 214@
goto_if_false @DRUGS4_47209
freeze_car_position $sweet_car {state} False
start_playback_recorded_car $sweet_car {path} 331
start_playback_recorded_car 186@ {path} 339
start_playback_recorded_car 213@ {path} 371
start_playback_recorded_car 214@ {path} 372
switch_car_siren 214@ {state} True
308@ = 2
285@ = add_blip_for_car 186@
change_blip_display 285@ {display} BlipDisplay.BlipOnly
297@ = 1
switch_car_siren 186@ {state} True
TIMERA = 0

:DRUGS4_47209
295@ = 3

:DRUGS4_47216
if 
  295@ == 3
goto_if_false @DRUGS4_47331
if 
  TIMERA > 1100
goto_if_false @DRUGS4_47331
if 
  does_object_exist 230@
goto_if_false @DRUGS4_47304
play_object_anim 230@ {animationName} "DONUTDROP" {animationFile} "MD_CHASE" {frameDelta} 4.0 {lockF} False {loop} True

:DRUGS4_47304
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_LE' {time} 2250 {flag} 1
295@ = 4

:DRUGS4_47331
if 
  295@ == 4
goto_if_false @DRUGS4_47508
if 
  TIMERA > 3800
goto_if_false @DRUGS4_47508
if 
  not is_car_dead 212@
goto_if_false @DRUGS4_47508
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_LF' {time} 2000 {flag} 1
car_goto_coordinates 212@ {x} 2604.02 {y} -1256.38 {z} 48.84
set_car_cruise_speed 212@ {maxSpeed} 25.0
set_car_driving_style 212@ {drivingStyle} DrivingMode.AvoidCars
if 
  not is_car_dead 212@
goto_if_false @DRUGS4_47471
force_car_lights 212@ {lightMode} CarLights.ForceOn
switch_car_siren 212@ {state} True

:DRUGS4_47471
if 
  not is_car_dead 213@
goto_if_false @DRUGS4_47501
force_car_lights 213@ {lightMode} CarLights.ForceOn
switch_car_siren 213@ {state} True

:DRUGS4_47501
295@ = 5

:DRUGS4_47508
if 
  295@ == 5
goto_if_false @DRUGS4_47613
if 
  TIMERA > 4500
goto_if_false @DRUGS4_47613
set_fixed_camera_position 2569.7429 {y} -1287.646 {z} 46.8949 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2569.825 {y} -1286.652 {z} 46.8238 {switchStyle} SwitchType.JumpCut
set_char_heading $scplayer {heading} 180.0
295@ = 6

:DRUGS4_47613
if 
  295@ == 6
goto_if_false @DRUGS4_47914
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_47914
if or
  locate_car_2d $sweet_car {x} 2569.7429 {y} -1287.646 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
  TIMERB > 50800
goto_if_false @DRUGS4_47914
delete_car 212@
delete_char 216@
delete_object 230@
delete_char $big_smoke
delete_char $ryder
unload_special_character 2
unload_special_character 3
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_47791
attach_char_to_car $scplayer {vehicle} $sweet_car {xOffset} 0.0 {yOffset} -0.5 {zOffset} 0.8 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Ak47
set_heading_for_attached_player $player1 {heading} 75.0 {headingRange} 75.0

:DRUGS4_47791
restore_camera 
switch_widescreen False
set_player_control $player1 {state} True
set_car_proofs $sweet_car {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead 217@
goto_if_false @DRUGS4_47872
set_char_can_be_knocked_off_bike 217@ {stayOnBike} 3

:DRUGS4_47872
328@ = 3
327@ = 0
178@ = 0
179@ = 0
296@ = 1
295@ = 7

:DRUGS4_47914
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_50000
if 
  295@ > 2
goto_if_false @DRUGS4_50000
if 
  308@ == 2
goto_if_false @DRUGS4_48089
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48089
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_JMP_F"
goto_if_false @DRUGS4_48089
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_JMP_F"
if 
  228@ > 0.0
goto_if_false @DRUGS4_48089
set_char_anim_speed 218@ {animName} "MD_BIKE_JMP_F" {animSpeed} 0.0
308@ = 3

:DRUGS4_48089
if 
  308@ == 3
goto_if_false @DRUGS4_48226
if 
  TIMERA > 12600
goto_if_false @DRUGS4_48226
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48226
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_JMP_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_anim_speed 218@ {animName} "MD_BIKE_JMP_F" {animSpeed} 1.0
327@ = 1
308@ = 4

:DRUGS4_48226
if 
  308@ == 4
goto_if_false @DRUGS4_48620
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_48620
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48620
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_JMP_F"
goto_if_false @DRUGS4_48620
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_JMP_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_48620
if 
  309@ == 1
goto_if_false @DRUGS4_48432
task_play_anim 218@ {animationName} "MD_BIKE_LND_DIE_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 100
goto @DRUGS4_48491

:DRUGS4_48432
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_LND_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
308@ = 5

:DRUGS4_48491
wait 0
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48564
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_48564
detach_char_from_car 218@
attach_char_to_car 218@ {vehicle} $sweet_car {xOffset} 0.0 {yOffset} 3.0 {zOffset} 0.3 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:DRUGS4_48564
if 
  not is_car_dead 214@
goto_if_false @DRUGS4_48620
stop_playback_recorded_car 214@
set_car_rotation_velocity 214@ {x} -3.0 {y} -2.0 {z} 0.2003
mark_car_as_no_longer_needed 214@
mark_car_as_no_longer_needed 213@
mark_char_as_no_longer_needed 217@

:DRUGS4_48620
if 
  308@ == 5
goto_if_false @DRUGS4_48799
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_48799
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48799
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_F"
goto_if_false @DRUGS4_48799
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_48799
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_PUNCH_F" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
308@ = 6

:DRUGS4_48799
if 
  308@ > 0
goto_if_false @DRUGS4_48883
if 
  5 > 308@
goto_if_false @DRUGS4_48883
if 
  not is_car_dead 214@
goto_if_false @DRUGS4_48883
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48883
221@ = get_car_heading 214@
set_char_heading 218@ {heading} 221@

:DRUGS4_48883
if 
  308@ > 4
goto_if_false @DRUGS4_48951
if 
  101 > 308@
goto_if_false @DRUGS4_48951
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_48951
221@ = get_car_heading $sweet_car
set_char_heading 218@ {heading} 221@

:DRUGS4_48951
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_49106
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_PUNCH_F"
goto_if_false @DRUGS4_49106
229@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_PUNCH_F"
if 
  229@ > 0.2
goto_if_false @DRUGS4_49099
if 
  308@ == 6
goto_if_false @DRUGS4_49092
do_camera_bump -2.2 {yOffset} 1.7
damage_char $scplayer {amount} 10 {damageArmour} True
308@ = 7

:DRUGS4_49092
goto @DRUGS4_49106

:DRUGS4_49099
308@ = 6

:DRUGS4_49106
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_49171
232@ = get_char_health 218@
if 
  901 > 232@
goto_if_false @DRUGS4_49171
set_char_proofs 218@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
309@ = 1

:DRUGS4_49171
if 
  308@ == 100
goto_if_false @DRUGS4_49392
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_DIE_F"
goto_if_false @DRUGS4_49392
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_DIE_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_49392
detach_char_from_car 218@
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
$player_x += 1.433
$player_y += 1.763
$player_z += 0.0
set_char_coordinates 218@ {x} $player_x {y} $player_y {z} $player_z
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_LND_ROLL_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 101

:DRUGS4_49392
if 
  308@ == 101
goto_if_false @DRUGS4_49507
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_ROLL_F"
goto_if_false @DRUGS4_49507
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_ROLL_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_49507
remove_char_elegantly 218@
308@ = 102

:DRUGS4_49507
if 
  308@ > 4
goto_if_false @DRUGS4_49577
if 
  8 > 308@
goto_if_false @DRUGS4_49577
if or
  309@ == 1
  TIMERA > 15000
goto_if_false @DRUGS4_49577
308@ = 200

:DRUGS4_49577
if 
  308@ == 200
goto_if_false @DRUGS4_49666
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_49666
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_SHOT_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 201

:DRUGS4_49666
if 
  308@ == 201
goto_if_false @DRUGS4_49883
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_SHOT_F"
goto_if_false @DRUGS4_49883
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_SHOT_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_49883
detach_char_from_car 218@
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
$player_x += 1.433
$player_y += 1.763
$player_z += 0.0
set_char_coordinates 218@ {x} $player_x {y} $player_y {z} $player_z
task_play_anim_non_interruptable 218@ {animationName} "MD_BIKE_LND_ROLL_F" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
308@ = 202

:DRUGS4_49883
if 
  308@ == 201
goto_if_false @DRUGS4_50000
if 
  is_char_playing_anim 218@ {animationName} "MD_BIKE_LND_ROLL_F"
goto_if_false @DRUGS4_50000
228@ = get_char_anim_current_time 218@ {animationName} "MD_BIKE_LND_ROLL_F"
if 
  228@ == 1.0
goto_if_false @DRUGS4_50000
delete_char 218@
308@ = 202

:DRUGS4_50000
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_61917
if 
  295@ == 7
goto_if_false @DRUGS4_61917
gosub @DRUGS4_66554
if 
  178@ == 0
goto_if_false @DRUGS4_50106
if 
  179@ == 0
goto_if_false @DRUGS4_50106
set_lvar_int_to_constant 106@ = 15899
set_lvar_text_label 107@s = 'FIN1_LA'
gosub @DRUGS4_66512

:DRUGS4_50106
if 
  328@ == 0
goto_if_false @DRUGS4_50187
if 
  TIMERB > 53000
goto_if_false @DRUGS4_50187
if 
  not is_char_dead 217@
goto_if_false @DRUGS4_50180
task_die 217@
328@ = 1
goto @DRUGS4_50187

:DRUGS4_50180
328@ = 1

:DRUGS4_50187
if 
  328@ == 3
goto_if_false @DRUGS4_50268
if 
  TIMERB > 58900
goto_if_false @DRUGS4_50268
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_50261
explode_car 186@
328@ = 4
goto @DRUGS4_50268

:DRUGS4_50261
328@ = 4

:DRUGS4_50268
if 
  328@ == 4
goto_if_false @DRUGS4_50349
if 
  TIMERB > 85200
goto_if_false @DRUGS4_50349
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_50342
explode_car 187@
328@ = 5
goto @DRUGS4_50349

:DRUGS4_50342
328@ = 5

:DRUGS4_50349
if 
  327@ == 1
goto_if_false @DRUGS4_50432
if 
  178@ == 1
goto_if_false @DRUGS4_50432
if 
  179@ == 0
goto_if_false @DRUGS4_50432
set_lvar_int_to_constant 106@ = 15809
set_lvar_text_label 107@s = 'FIN1_BK'
gosub @DRUGS4_66512

:DRUGS4_50432
if 
  178@ == 2
goto_if_false @DRUGS4_50497
if 
  179@ == 0
goto_if_false @DRUGS4_50497
set_lvar_int_to_constant 106@ = 15885
set_lvar_text_label 107@s = 'FIN1_KK'
gosub @DRUGS4_66512

:DRUGS4_50497
if 
  178@ == 3
goto_if_false @DRUGS4_50562
if 
  179@ == 0
goto_if_false @DRUGS4_50562
set_lvar_int_to_constant 106@ = 15891
set_lvar_text_label 107@s = 'FIN1_KR'
gosub @DRUGS4_66512

:DRUGS4_50562
if 
  327@ == 1
goto_if_false @DRUGS4_50625
if 
  locate_char_any_means_2d $scplayer {x} 2545.1499 {y} -1460.3 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_50625
327@ = 2

:DRUGS4_50625
if 
  327@ == 2
goto_if_false @DRUGS4_50708
if 
  178@ == 4
goto_if_false @DRUGS4_50708
if 
  179@ == 0
goto_if_false @DRUGS4_50708
set_lvar_int_to_constant 106@ = 15948
set_lvar_text_label 107@s = 'FIN1_ZB'
gosub @DRUGS4_66512

:DRUGS4_50708
if 
  178@ == 5
goto_if_false @DRUGS4_50773
if 
  179@ == 0
goto_if_false @DRUGS4_50773
set_lvar_int_to_constant 106@ = 15910
set_lvar_text_label 107@s = 'FIN1_LL'
gosub @DRUGS4_66512

:DRUGS4_50773
if 
  178@ == 6
goto_if_false @DRUGS4_50838
if 
  179@ == 0
goto_if_false @DRUGS4_50838
set_lvar_int_to_constant 106@ = 15907
set_lvar_text_label 107@s = 'FIN1_LI'
gosub @DRUGS4_66512

:DRUGS4_50838
if 
  327@ == 2
goto_if_false @DRUGS4_50901
if 
  locate_char_any_means_2d $scplayer {x} 2451.9199 {y} -1461.5 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS4_50901
327@ = 4

:DRUGS4_50901
if 
  327@ == 4
goto_if_false @DRUGS4_50984
if 
  178@ == 7
goto_if_false @DRUGS4_50984
if 
  179@ == 0
goto_if_false @DRUGS4_50984
set_lvar_int_to_constant 106@ = 15914
set_lvar_text_label 107@s = 'FIN1_LP'
gosub @DRUGS4_66512

:DRUGS4_50984
if 
  178@ == 8
goto_if_false @DRUGS4_51049
if 
  179@ == 0
goto_if_false @DRUGS4_51049
set_lvar_int_to_constant 106@ = 15933
set_lvar_text_label 107@s = 'FIN1_MK'
gosub @DRUGS4_66512

:DRUGS4_51049
if 
  178@ == 9
goto_if_false @DRUGS4_51114
if 
  179@ == 0
goto_if_false @DRUGS4_51114
set_lvar_int_to_constant 106@ = 15908
set_lvar_text_label 107@s = 'FIN1_LJ'
gosub @DRUGS4_66512

:DRUGS4_51114
if 
  327@ == 4
goto_if_false @DRUGS4_51177
if 
  locate_char_any_means_2d $scplayer {x} 2344.98 {y} -1382.22 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @DRUGS4_51177
327@ = 5

:DRUGS4_51177
if 
  327@ == 5
goto_if_false @DRUGS4_51260
if 
  178@ == 10
goto_if_false @DRUGS4_51260
if 
  179@ == 0
goto_if_false @DRUGS4_51260
set_lvar_int_to_constant 106@ = 15892
set_lvar_text_label 107@s = 'FIN1_KS'
gosub @DRUGS4_66512

:DRUGS4_51260
if 
  327@ == 5
goto_if_false @DRUGS4_51323
if 
  locate_char_any_means_2d $scplayer {x} 2305.51 {y} -1370.01 {xRadius} 18.0 {yRadius} 18.0 {drawSphere} False
goto_if_false @DRUGS4_51323
327@ = 6

:DRUGS4_51323
if 
  178@ == 11
goto_if_false @DRUGS4_51388
if 
  179@ == 0
goto_if_false @DRUGS4_51388
set_lvar_int_to_constant 106@ = 15915
set_lvar_text_label 107@s = 'FIN1_LQ'
gosub @DRUGS4_66512

:DRUGS4_51388
if 
  178@ == 12
goto_if_false @DRUGS4_51453
if 
  179@ == 0
goto_if_false @DRUGS4_51453
set_lvar_int_to_constant 106@ = 15918
set_lvar_text_label 107@s = 'FIN1_LT'
gosub @DRUGS4_66512

:DRUGS4_51453
if 
  178@ == 13
goto_if_false @DRUGS4_51518
if 
  179@ == 0
goto_if_false @DRUGS4_51518
set_lvar_int_to_constant 106@ = 15920
set_lvar_text_label 107@s = 'FIN1_LV'
gosub @DRUGS4_66512

:DRUGS4_51518
if 
  327@ == 7
goto_if_false @DRUGS4_51601
if 
  178@ == 14
goto_if_false @DRUGS4_51601
if 
  179@ == 0
goto_if_false @DRUGS4_51601
set_lvar_int_to_constant 106@ = 15810
set_lvar_text_label 107@s = 'FIN1_BL'
gosub @DRUGS4_66512

:DRUGS4_51601
if 
  178@ == 15
goto_if_false @DRUGS4_51666
if 
  179@ == 0
goto_if_false @DRUGS4_51666
set_lvar_int_to_constant 106@ = 15921
set_lvar_text_label 107@s = 'FIN1_LW'
gosub @DRUGS4_66512

:DRUGS4_51666
if 
  178@ == 16
goto_if_false @DRUGS4_51731
if 
  179@ == 0
goto_if_false @DRUGS4_51731
set_lvar_int_to_constant 106@ = 15922
set_lvar_text_label 107@s = 'FIN1_LX'
gosub @DRUGS4_66512

:DRUGS4_51731
if 
  178@ == 17
goto_if_false @DRUGS4_51796
if 
  179@ == 0
goto_if_false @DRUGS4_51796
set_lvar_int_to_constant 106@ = 15947
set_lvar_text_label 107@s = 'FIN1_ZA'
gosub @DRUGS4_66512

:DRUGS4_51796
if 
  178@ == 18
goto_if_false @DRUGS4_51861
if 
  179@ == 0
goto_if_false @DRUGS4_51861
set_lvar_int_to_constant 106@ = 15949
set_lvar_text_label 107@s = 'FIN1_ZC'
gosub @DRUGS4_66512

:DRUGS4_51861
if 
  327@ == 8
goto_if_false @DRUGS4_51944
if 
  179@ == 0
goto_if_false @DRUGS4_51944
if 
  178@ == 20
goto_if_false @DRUGS4_51944
set_lvar_int_to_constant 106@ = 15923
set_lvar_text_label 107@s = 'FIN1_MA'
gosub @DRUGS4_66512

:DRUGS4_51944
if 
  179@ == 0
goto_if_false @DRUGS4_52009
if 
  178@ == 21
goto_if_false @DRUGS4_52009
set_lvar_int_to_constant 106@ = 15924
set_lvar_text_label 107@s = 'FIN1_MB'
gosub @DRUGS4_66512

:DRUGS4_52009
if 
  179@ == 0
goto_if_false @DRUGS4_52074
if 
  178@ == 22
goto_if_false @DRUGS4_52074
set_lvar_int_to_constant 106@ = 15926
set_lvar_text_label 107@s = 'FIN1_MD'
gosub @DRUGS4_66512

:DRUGS4_52074
if 
  179@ == 0
goto_if_false @DRUGS4_52139
if 
  178@ == 23
goto_if_false @DRUGS4_52139
set_lvar_int_to_constant 106@ = 15927
set_lvar_text_label 107@s = 'FIN1_ME'
gosub @DRUGS4_66512

:DRUGS4_52139
if 
  179@ == 0
goto_if_false @DRUGS4_52204
if 
  178@ == 24
goto_if_false @DRUGS4_52204
set_lvar_int_to_constant 106@ = 15824
set_lvar_text_label 107@s = 'FIN1_EA'
gosub @DRUGS4_66512

:DRUGS4_52204
if 
  179@ == 0
goto_if_false @DRUGS4_52269
if 
  178@ == 25
goto_if_false @DRUGS4_52269
set_lvar_int_to_constant 106@ = 15930
set_lvar_text_label 107@s = 'FIN1_MH'
gosub @DRUGS4_66512

:DRUGS4_52269
if 
  179@ == 0
goto_if_false @DRUGS4_52334
if 
  178@ == 26
goto_if_false @DRUGS4_52334
set_lvar_int_to_constant 106@ = 15931
set_lvar_text_label 107@s = 'FIN1_MI'
gosub @DRUGS4_66512

:DRUGS4_52334
if 
  179@ == 0
goto_if_false @DRUGS4_52399
if 
  178@ == 27
goto_if_false @DRUGS4_52399
set_lvar_int_to_constant 106@ = 15942
set_lvar_text_label 107@s = 'FIN1_MT'
gosub @DRUGS4_66512

:DRUGS4_52399
if 
  179@ == 0
goto_if_false @DRUGS4_52464
if 
  178@ == 28
goto_if_false @DRUGS4_52464
set_lvar_int_to_constant 106@ = 15934
set_lvar_text_label 107@s = 'FIN1_ML'
gosub @DRUGS4_66512

:DRUGS4_52464
if 
  179@ == 0
goto_if_false @DRUGS4_52529
if 
  178@ == 29
goto_if_false @DRUGS4_52529
set_lvar_int_to_constant 106@ = 15940
set_lvar_text_label 107@s = 'FIN1_MR'
gosub @DRUGS4_66512

:DRUGS4_52529
if 
  179@ == 0
goto_if_false @DRUGS4_52594
if 
  178@ == 30
goto_if_false @DRUGS4_52594
set_lvar_int_to_constant 106@ = 15941
set_lvar_text_label 107@s = 'FIN1_MS'
gosub @DRUGS4_66512

:DRUGS4_52594
if 
  305@ == 1
goto_if_false @DRUGS4_52719
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_52719
if 
  locate_car_2d 186@ {x} 2566.1201 {y} -1322.35 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @DRUGS4_52719
if 
  does_object_exist 223@
goto_if_false @DRUGS4_52689
break_object 223@ {intensity} 1

:DRUGS4_52689
if 
  does_object_exist 224@
goto_if_false @DRUGS4_52712
break_object 224@ {intensity} 1

:DRUGS4_52712
305@ = 2

:DRUGS4_52719
if 
  296@ == 1
goto_if_false @DRUGS4_53224
if 
  locate_car_2d $sweet_car {x} 2564.6799 {y} -1442.47 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRUGS4_53224
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_52835
start_playback_recorded_car 187@ {path} 373
286@ = add_blip_for_car 187@
change_blip_display 286@ {display} BlipDisplay.BlipOnly
switch_car_siren 187@ {state} True
298@ = 1
314@ = 1

:DRUGS4_52835
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_52895
start_playback_recorded_car 188@ {path} 374
287@ = add_blip_for_car 188@
change_blip_display 287@ {display} BlipDisplay.BlipOnly
switch_car_siren 188@ {state} True
299@ = 1
315@ = 1

:DRUGS4_52895
if 
  not is_car_dead 193@
goto_if_false @DRUGS4_52955
start_playback_recorded_car 193@ {path} 380
292@ = add_blip_for_car 193@
change_blip_display 292@ {display} BlipDisplay.BlipOnly
switch_car_siren 193@ {state} True
304@ = 1
320@ = 1

:DRUGS4_52955
if 
  not is_char_dead 197@
goto_if_false @DRUGS4_53007
task_drive_by 197@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_53007
if 
  not is_char_dead 199@
goto_if_false @DRUGS4_53120
if 
  293@ > 1
goto_if_false @DRUGS4_53084
task_drive_by 199@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
goto @DRUGS4_53120

:DRUGS4_53084
task_drive_by 199@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 75

:DRUGS4_53120
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_53172
task_drive_by 202@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_53172
play_fx_system 237@
delete_object 222@
delete_object 223@
delete_object 224@
delete_object 225@
delete_object 226@
delete_object 227@
mark_model_as_no_longer_needed #DYN_SCAFFOLD_4B
mark_model_as_no_longer_needed #MUNCH_DONUT
296@ = 2

:DRUGS4_53224
if 
  296@ == 2
goto_if_false @DRUGS4_53831
if 
  locate_car_2d $sweet_car {x} 2344.1201 {y} -1384.48 {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @DRUGS4_53831
215@ = create_car 523 {x} 2254.042 {y} -1308.15 {z} 23.02
set_petrol_tank_weakpoint 215@ {state} False
set_car_heading 215@ {heading} 261.999
force_car_lights 215@ {lightMode} CarLights.ForceOn
switch_car_siren 215@ {state} True
310@ = 0
219@ = create_char PedType.Mission1 {modelId} 284 {x} 0.0 {y} 0.0 {z} 0.0
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_JMP_BL" {animationFile} "MD_CHASE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 219@ {vehicle} 215@ {xOffset} 0.0 {yOffset} -0.401 {zOffset} 0.47 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
set_char_health 219@ {health} 1000
307@ = 1
set_char_decision_maker 219@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 219@ {state} False
set_char_only_damaged_by_player 219@ {state} True
set_car_only_damaged_by_player 215@ {state} True
set_car_proofs 215@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
190@ = create_car 596 {x} 2222.98 {y} -1303.52 {z} 22.654
set_petrol_tank_weakpoint 190@ {state} False
set_car_heading 190@ {heading} 269.409
set_car_health 190@ {health} 850
set_car_only_damaged_by_player 190@ {state} True
203@ = create_char_inside_car 190@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 203@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 203@ {state} False
set_char_health 203@ {health} 100
set_char_only_damaged_by_player 203@ {state} True
204@ = create_char_as_passenger 190@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 204@ {handleOrTemplate} 55@
set_char_health 204@ {health} 100
set_char_only_damaged_by_player 204@ {state} True
give_weapon_to_char 204@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 204@ {state} False
car_set_idle 190@
191@ = create_car 596 {x} 2250.6299 {y} -1380.995 {z} 22.65
set_petrol_tank_weakpoint 191@ {state} False
set_car_heading 191@ {heading} 268.1
set_car_health 191@ {health} 800
set_car_proofs 191@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_car_only_damaged_by_player 191@ {state} True
206@ = create_char_inside_car 191@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 206@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 206@ {state} False
set_char_only_damaged_by_player 206@ {state} True
207@ = create_char_as_passenger 191@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 207@ {handleOrTemplate} 55@
set_char_health 207@ {health} 200
set_char_only_damaged_by_player 207@ {state} True
give_weapon_to_char 207@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 207@ {state} False
car_set_idle 191@
296@ = 3

:DRUGS4_53831
if 
  296@ == 3
goto_if_false @DRUGS4_54011
if 
  locate_car_2d $sweet_car {x} 2304.1851 {y} -1364.7111 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DRUGS4_54011
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_53947
start_playback_recorded_car 191@ {path} 377
290@ = add_blip_for_car 191@
change_blip_display 290@ {display} BlipDisplay.BlipOnly
switch_car_siren 191@ {state} True
302@ = 1
318@ = 1

:DRUGS4_53947
if 
  not is_char_dead 207@
goto_if_false @DRUGS4_53999
task_drive_by 207@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30

:DRUGS4_53999
kill_fx_system 237@
296@ = 4

:DRUGS4_54011
if 
  296@ == 4
goto_if_false @DRUGS4_54245
if 
  locate_car_2d $sweet_car {x} 2289.8169 {y} -1319.51 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @DRUGS4_54245
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_54121
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_54121
start_playback_recorded_car 215@ {path} 375
TIMERA = 0
307@ = 3

:DRUGS4_54121
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_54181
start_playback_recorded_car 190@ {path} 376
289@ = add_blip_for_car 190@
change_blip_display 289@ {display} BlipDisplay.BlipOnly
switch_car_siren 190@ {state} True
301@ = 1
317@ = 1

:DRUGS4_54181
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_54233
task_drive_by 204@ {targetChar} -1 {targetVehicle} $sweet_car {x} 0.0 {y} 0.0 {z} 0.0 {radius} 500.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 40

:DRUGS4_54233
delete_char 218@
296@ = 5

:DRUGS4_54245
if 
  296@ == 5
goto_if_false @DRUGS4_54841
if 
  locate_car_2d $sweet_car {x} 2221.8101 {y} -1260.26 {xRadius} 5.5 {yRadius} 5.5 {drawSphere} False
goto_if_false @DRUGS4_54841
234@ = create_char PedType.Mission1 {modelId} 280 {x} 2127.116 {y} -1381.61 {z} 23.88
set_char_heading 234@ {heading} 84.93
set_char_decision_maker 234@ {handleOrTemplate} 55@
set_char_proofs 234@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_only_damaged_by_player 234@ {state} True
give_weapon_to_char 234@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 234@ {state} False
set_char_accuracy 234@ {accuracy} 5
set_lvar_int_to_lvar_int 118@ = 234@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
233@ = create_char PedType.Mission1 {modelId} 284 {x} 2127.0901 {y} -1382.8101 {z} 23.32
set_char_decision_maker 233@ {handleOrTemplate} 55@
set_char_proofs 233@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_only_damaged_by_player 233@ {state} True
give_weapon_to_char 233@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_suffers_critical_hits 233@ {state} False
set_char_accuracy 233@ {accuracy} 5
set_lvar_int_to_lvar_int 118@ = 233@
set_lvar_int_to_var_int 119@ = $scplayer
gosub @DRUGS4_66967
235@ = create_car 596 {x} 2129.865 {y} -1386.89 {z} 22.65
set_car_heading 235@ {heading} 7.63
car_set_idle 235@
car_set_idle 235@
TIMERB = 0
if 
  311@ == 0
goto_if_false @DRUGS4_54636
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_54636
heli_goto_coords 40@ {x} 2168.0 {y} -1508.0 {z} 33.29 {minAltitude} 30.0 {maxAltitude} 30.0
311@ = 1

:DRUGS4_54636
249@ = create_object_no_offset #WD_FENCE_ANIM {x} 2167.7629 {y} -1470.354 {z} 25.328
set_object_heading 249@ {heading} 90.0
250@ = create_object_no_offset #WD_FENCE_ANIM {x} 2167.7629 {y} -1465.688 {z} 25.328
set_object_heading 250@ {heading} 90.0
251@ = create_object_no_offset #WD_FENCE_ANIM {x} 2167.7629 {y} -1461.021 {z} 25.328
set_object_heading 251@ {heading} 90.0
261@ = create_object_no_offset #WD_FENCE_ANIM {x} 2174.3279 {y} -1470.354 {z} 25.328
set_object_heading 261@ {heading} 270.0
262@ = create_object_no_offset #WD_FENCE_ANIM {x} 2174.3279 {y} -1465.688 {z} 25.328
set_object_heading 262@ {heading} 270.0
263@ = create_object_no_offset #WD_FENCE_ANIM {x} 2174.3279 {y} -1461.021 {z} 25.328
set_object_heading 263@ {heading} 270.0
296@ = 6

:DRUGS4_54841
if 
  296@ == 6
goto_if_false @DRUGS4_54928
if 
  locate_car_2d $sweet_car {x} 2081.9299 {y} -1261.6801 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @DRUGS4_54928
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_54921
set_car_health 191@ {health} 249

:DRUGS4_54921
296@ = 7

:DRUGS4_54928
if 
  296@ == 7
goto_if_false @DRUGS4_55018
if 
  TIMERB > 3000
goto_if_false @DRUGS4_55018
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_55018
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_55018
freeze_char_position 234@ {state} True
freeze_char_position 233@ {state} True
296@ = 8

:DRUGS4_55018
if 
  323@ == 0
goto_if_false @DRUGS4_55145
if 
  locate_char_any_means_2d $scplayer {x} 2074.1799 {y} -1372.28 {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRUGS4_55145
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32402
set_heading_for_attached_player $player1 {heading} 174.0 {headingRange} 8.0
delete_car 215@
mark_model_as_no_longer_needed 523
set_player_fire_button $player1 {enabled} False
327@ = 8
179@ = 0
178@ = 20
323@ = 1

:DRUGS4_55145
if 
  323@ == 1
goto_if_false @DRUGS4_55295
if 
  is_attached_player_heading_achieved $player1
goto_if_false @DRUGS4_55295
set_heading_limit_for_attached_char $scplayer {heading} Facing.Forward {headingRange} 60.0
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_55222
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_55222
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
delete_object $advert_f1
$advert_f1 = create_object_no_offset #MD_POSTER {x} 2167.8201 {y} -1518.193 {z} 20.237
set_object_heading $advert_f1 {heading} 0.0
set_object_collision_damage_effect $advert_f1 {state} False
freeze_object_position $advert_f1 {state} True
323@ = 2

:DRUGS4_55295
if 
  296@ == 8
goto_if_false @DRUGS4_55624
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_55624
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_55624
if or
  is_char_touching_vehicle 234@ {handle} $sweet_car
  is_char_touching_vehicle 233@ {handle} $sweet_car
goto_if_false @DRUGS4_55624
322@ = 1
321@ = 1
296@ = 9
delete_car 40@
mark_char_as_no_longer_needed 44@
delete_searchlight 58@
40@ = create_car 497 {x} 2170.27 {y} -1523.73 {z} 24.76
44@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 280
set_heli_blades_full_speed 40@
start_playback_recorded_car 40@ {path} 381
TIMERA = 0
TIMERB = 0
set_char_decision_maker 44@ {handleOrTemplate} 55@
set_char_suffers_critical_hits 44@ {state} False
set_char_can_be_shot_in_vehicle 44@ {state} False
set_char_only_damaged_by_player 44@ {state} True
set_car_only_damaged_by_player 40@ {state} True
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
240@ = create_fx_system "BLOOD_HELI" {x} 2170.74 {y} -1445.63 {z} 25.12 {ignoreBoundingChecks} True
241@ = create_fx_system "BLOOD_HELI" {x} 2170.9199 {y} -1450.5 {z} 25.0 {ignoreBoundingChecks} True
242@ = create_fx_system "BLOOD_HELI" {x} 2171.1101 {y} -1447.04 {z} 25.13 {ignoreBoundingChecks} True

:DRUGS4_55624
if 
  296@ == 9
goto_if_false @DRUGS4_57661
if 
  324@ == 0
goto_if_false @DRUGS4_55764
if 
  TIMERA > 14099
goto_if_false @DRUGS4_55764
play_object_anim 249@ {animationName} "FEN_CHOPPA_R1" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
play_object_anim 261@ {animationName} "FEN_CHOPPA_L2" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
324@ = 1

:DRUGS4_55764
if 
  324@ == 1
goto_if_false @DRUGS4_55886
if 
  TIMERA > 14899
goto_if_false @DRUGS4_55886
play_object_anim 250@ {animationName} "FEN_CHOPPA_R2" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
play_object_anim 262@ {animationName} "FEN_CHOPPA_L3" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
324@ = 2

:DRUGS4_55886
if 
  324@ == 2
goto_if_false @DRUGS4_56008
if 
  TIMERA > 15532
goto_if_false @DRUGS4_56008
play_object_anim 251@ {animationName} "FEN_CHOPPA_R3" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
play_object_anim 263@ {animationName} "FEN_CHOPPA_L1" {animationFile} "MD_CHASE" {frameDelta} 1000.0 {lockF} False {loop} True
324@ = 3

:DRUGS4_56008
if 
  322@ == 1
goto_if_false @DRUGS4_56133
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_56133
freeze_char_position 234@ {state} False
attach_char_to_car 234@ {vehicle} $sweet_car {xOffset} -0.5 {yOffset} 3.0 {zOffset} 0.3 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 234@ {animationName} "CARHIT_TUMBLE" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
322@ = 2

:DRUGS4_56133
if 
  322@ == 2
goto_if_false @DRUGS4_56333
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_56333
if 
  is_char_playing_anim 234@ {animationName} "CARHIT_TUMBLE"
goto_if_false @DRUGS4_56333
228@ = get_char_anim_current_time 234@ {animationName} "CARHIT_TUMBLE"
if 
  228@ > 0.7
goto_if_false @DRUGS4_56333
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_56333
detach_char_from_car 234@
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
$player_x += 0.0
$player_y += -1.763
$player_z += -0.05
set_char_coordinates 234@ {x} $player_x {y} $player_y {z} $player_z
remove_char_elegantly 234@
322@ = 3

:DRUGS4_56333
if 
  not is_char_dead 234@
goto_if_false @DRUGS4_56365
239@ = get_car_heading $sweet_car
set_char_heading 234@ {heading} 239@

:DRUGS4_56365
if 
  321@ == 1
goto_if_false @DRUGS4_56490
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56490
freeze_char_position 233@ {state} False
attach_char_to_car 233@ {vehicle} $sweet_car {xOffset} 0.5 {yOffset} 3.0 {zOffset} 0.3 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 233@ {animationName} "CARHIT_HANGON" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
321@ = 2

:DRUGS4_56490
if 
  321@ == 2
goto_if_false @DRUGS4_56654
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56654
if 
  is_char_playing_anim 233@ {animationName} "CARHIT_HANGON"
goto_if_false @DRUGS4_56654
228@ = get_char_anim_current_time 233@ {animationName} "CARHIT_HANGON"
if 
  228@ == 1.0
goto_if_false @DRUGS4_56654
task_play_anim_non_interruptable 233@ {animationName} "HANGON_STUN_LOOP" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
321@ = 3

:DRUGS4_56654
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56686
238@ = get_car_heading $sweet_car
set_char_heading 233@ {heading} 238@

:DRUGS4_56686
if 
  325@ == 0
goto_if_false @DRUGS4_56774
if 
  TIMERB > 10499
goto_if_false @DRUGS4_56774
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_56774
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_56774
pause_playback_recorded_car $sweet_car
TIMERB = 0
325@ = 1

:DRUGS4_56774
if 
  325@ == 1
goto_if_false @DRUGS4_56914
if 
  TIMERB > 3000
goto_if_false @DRUGS4_56914
if 
  321@ == 3
goto_if_false @DRUGS4_56907
if 
  not is_char_dead 233@
goto_if_false @DRUGS4_56907
task_play_anim_non_interruptable 233@ {animationName} "HANGON_STUN_TURN" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
321@ = 4

:DRUGS4_56907
325@ = 2

:DRUGS4_56914
if 
  325@ == 2
goto_if_false @DRUGS4_57019
if 
  TIMERB > 2000
goto_if_false @DRUGS4_57019
if 
  is_playback_going_on_for_car $sweet_car
goto_if_false @DRUGS4_57019
unpause_playback_recorded_car $sweet_car
delete_car 235@
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 353
delete_char 234@
325@ = 3

:DRUGS4_57019
if 
  325@ == 3
goto_if_false @DRUGS4_57194
if 
  TIMERB > 4300
goto_if_false @DRUGS4_57194
do_camera_bump 0.0 {yOffset} -1.0
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRUGS4_57087
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_57087
play_and_kill_fx_system 240@
243@ = create_object #CHOPCOP_TORSO {x} 2170.3501 {y} -1445.99 {z} 25.49
set_object_dynamic 243@ {state} True
244@ = create_object #CHOPCOP_LEGR {x} 2170.5 {y} -1447.65 {z} 25.06
set_object_dynamic 244@ {state} True
delete_char 233@
delete_object 249@
delete_object 262@
delete_object 263@
delete_object 261@
delete_object 262@
delete_object 263@
325@ = 4

:DRUGS4_57194
if 
  325@ == 4
goto_if_false @DRUGS4_57456
if 
  TIMERB > 4800
goto_if_false @DRUGS4_57456
327@ = 9
play_and_kill_fx_system 241@
245@ = create_object #CHOPCOP_LEGR {x} 2170.99 {y} -1448.51 {z} 25.08
set_object_dynamic 245@ {state} True
246@ = create_object #CHOPCOP_ARMR {x} 2170.96 {y} -1450.36 {z} 25.2
set_object_dynamic 246@ {state} True
set_object_rotation 246@ {x} 0.2 {y} 0.2 {z} 0.2
247@ = create_object #CHOPCOP_ARMR {x} 2171.1599 {y} -1451.11 {z} 25.12
set_object_dynamic 247@ {state} True
set_object_rotation 247@ {x} -0.1 {y} 0.05 {z} 0.1
248@ = create_object #CHOPCOP_HEAD {x} 2171.1001 {y} -1453.09 {z} 25.4
set_object_dynamic 248@ {state} True
set_object_rotation 248@ {x} 0.5 {y} 0.2 {z} -0.1
play_and_kill_fx_system 242@
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57449
stop_playback_recorded_car 40@

:DRUGS4_57449
325@ = 5

:DRUGS4_57456
if 
  325@ == 5
goto_if_false @DRUGS4_57661
if 
  TIMERB > 5800
goto_if_false @DRUGS4_57661
set_fixed_camera_position 2169.8989 {y} -1543.4969 {z} 38.744 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2169.894 {y} -1542.551 {z} 38.4204 {switchStyle} SwitchType.JumpCut
switch_widescreen True
detach_char_from_car $scplayer
set_char_coordinates $scplayer {x} 2184.8701 {y} -1500.83 {z} 23.55
set_player_control $player1 {state} False
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57647
set_car_coordinates 40@ {x} 2172.5601 {y} -1420.6899 {z} 30.0
explode_car 40@
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57642
explode_car 40@

:DRUGS4_57642
delete_char 44@

:DRUGS4_57647
TIMERB = 0
325@ = 6

:DRUGS4_57661
if 
  311@ == 1
goto_if_false @DRUGS4_57717
if 
  not is_car_dead 40@
goto_if_false @DRUGS4_57717
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 44@
delete_searchlight 58@
311@ = 2

:DRUGS4_57717
if 
  297@ == 1
goto_if_false @DRUGS4_57823
if 
  not is_car_dead 186@
goto_if_false @DRUGS4_57796
if 
  not is_playback_going_on_for_car 186@
goto_if_false @DRUGS4_57789
mark_car_as_no_longer_needed 186@
mark_char_as_no_longer_needed 195@
remove_blip 285@
297@ = 2

:DRUGS4_57789
goto @DRUGS4_57823

:DRUGS4_57796
stop_playback_recorded_car 186@
mark_char_as_no_longer_needed 195@
mark_car_as_no_longer_needed 186@
remove_blip 285@
297@ = 2

:DRUGS4_57823
if 
  314@ == 1
goto_if_false @DRUGS4_57975
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_57975
if 
  not is_char_dead 196@
goto_if_false @DRUGS4_57880
goto @DRUGS4_57975

:DRUGS4_57880
if 
  not is_char_dead 197@
goto_if_false @DRUGS4_57963
if 
  is_char_in_car 197@ {vehicle} 187@
goto_if_false @DRUGS4_57956
284@ = get_driver_of_car 187@
if 
  284@ == -1
goto_if_false @DRUGS4_57956
task_shuffle_to_next_car_seat 197@ {vehicle} 187@
314@ = 2

:DRUGS4_57956
goto @DRUGS4_57975

:DRUGS4_57963
stop_playback_recorded_car 187@
314@ = 2

:DRUGS4_57975
if 
  314@ == 2
goto_if_false @DRUGS4_58021
if 
  is_char_dead 197@
goto_if_false @DRUGS4_58021
stop_playback_recorded_car 187@
314@ = 3

:DRUGS4_58021
if 
  298@ == 1
goto_if_false @DRUGS4_58137
if 
  not is_car_dead 187@
goto_if_false @DRUGS4_58105
if 
  not is_playback_going_on_for_car 187@
goto_if_false @DRUGS4_58098
mark_car_as_no_longer_needed 187@
mark_char_as_no_longer_needed 196@
mark_char_as_no_longer_needed 197@
remove_blip 286@
298@ = 2

:DRUGS4_58098
goto @DRUGS4_58137

:DRUGS4_58105
stop_playback_recorded_car 187@
mark_char_as_no_longer_needed 196@
mark_char_as_no_longer_needed 197@
mark_car_as_no_longer_needed 187@
remove_blip 286@
298@ = 2

:DRUGS4_58137
if 
  315@ == 1
goto_if_false @DRUGS4_58289
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_58289
if 
  not is_char_dead 198@
goto_if_false @DRUGS4_58194
goto @DRUGS4_58289

:DRUGS4_58194
if 
  not is_char_dead 199@
goto_if_false @DRUGS4_58277
if 
  is_char_in_car 199@ {vehicle} 188@
goto_if_false @DRUGS4_58270
284@ = get_driver_of_car 188@
if 
  284@ == -1
goto_if_false @DRUGS4_58270
task_shuffle_to_next_car_seat 199@ {vehicle} 188@
315@ = 2

:DRUGS4_58270
goto @DRUGS4_58289

:DRUGS4_58277
stop_playback_recorded_car 188@
315@ = 2

:DRUGS4_58289
if 
  315@ == 2
goto_if_false @DRUGS4_58335
if 
  is_char_dead 199@
goto_if_false @DRUGS4_58335
stop_playback_recorded_car 188@
315@ = 3

:DRUGS4_58335
if 
  299@ == 1
goto_if_false @DRUGS4_58451
if 
  not is_car_dead 188@
goto_if_false @DRUGS4_58419
if 
  not is_playback_going_on_for_car 188@
goto_if_false @DRUGS4_58412
mark_car_as_no_longer_needed 188@
mark_char_as_no_longer_needed 198@
mark_char_as_no_longer_needed 199@
remove_blip 287@
299@ = 2

:DRUGS4_58412
goto @DRUGS4_58451

:DRUGS4_58419
stop_playback_recorded_car 188@
mark_char_as_no_longer_needed 198@
mark_char_as_no_longer_needed 199@
mark_car_as_no_longer_needed 188@
remove_blip 287@
299@ = 2

:DRUGS4_58451
if 
  300@ == 1
goto_if_false @DRUGS4_58507
if 
  is_car_dead 189@
goto_if_false @DRUGS4_58507
remove_blip 288@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 189@
300@ = 2

:DRUGS4_58507
if 
  317@ == 1
goto_if_false @DRUGS4_58659
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_58659
if 
  not is_char_dead 203@
goto_if_false @DRUGS4_58564
goto @DRUGS4_58659

:DRUGS4_58564
if 
  not is_char_dead 204@
goto_if_false @DRUGS4_58647
if 
  is_char_in_car 204@ {vehicle} 190@
goto_if_false @DRUGS4_58640
284@ = get_driver_of_car 190@
if 
  284@ == -1
goto_if_false @DRUGS4_58640
task_shuffle_to_next_car_seat 204@ {vehicle} 190@
317@ = 2

:DRUGS4_58640
goto @DRUGS4_58659

:DRUGS4_58647
stop_playback_recorded_car 190@
317@ = 2

:DRUGS4_58659
if 
  317@ == 2
goto_if_false @DRUGS4_58705
if 
  is_char_dead 204@
goto_if_false @DRUGS4_58705
stop_playback_recorded_car 190@
317@ = 3

:DRUGS4_58705
if 
  301@ == 1
goto_if_false @DRUGS4_58821
if 
  not is_car_dead 190@
goto_if_false @DRUGS4_58789
if 
  not is_playback_going_on_for_car 190@
goto_if_false @DRUGS4_58782
mark_car_as_no_longer_needed 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
remove_blip 289@
301@ = 2

:DRUGS4_58782
goto @DRUGS4_58821

:DRUGS4_58789
stop_playback_recorded_car 190@
mark_char_as_no_longer_needed 203@
mark_char_as_no_longer_needed 204@
mark_car_as_no_longer_needed 190@
remove_blip 289@
301@ = 2

:DRUGS4_58821
if 
  318@ == 1
goto_if_false @DRUGS4_58973
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_58973
if 
  not is_char_dead 206@
goto_if_false @DRUGS4_58878
goto @DRUGS4_58973

:DRUGS4_58878
if 
  not is_char_dead 207@
goto_if_false @DRUGS4_58961
if 
  is_char_in_car 207@ {vehicle} 191@
goto_if_false @DRUGS4_58954
284@ = get_driver_of_car 191@
if 
  284@ == -1
goto_if_false @DRUGS4_58954
task_shuffle_to_next_car_seat 207@ {vehicle} 191@
318@ = 2

:DRUGS4_58954
goto @DRUGS4_58973

:DRUGS4_58961
stop_playback_recorded_car 191@
318@ = 2

:DRUGS4_58973
if 
  318@ == 2
goto_if_false @DRUGS4_59019
if 
  is_char_dead 207@
goto_if_false @DRUGS4_59019
stop_playback_recorded_car 191@
318@ = 3

:DRUGS4_59019
if 
  302@ == 1
goto_if_false @DRUGS4_59135
if 
  not is_car_dead 191@
goto_if_false @DRUGS4_59103
if 
  not is_playback_going_on_for_car 191@
goto_if_false @DRUGS4_59096
mark_car_as_no_longer_needed 191@
mark_char_as_no_longer_needed 206@
mark_char_as_no_longer_needed 207@
remove_blip 290@
302@ = 2

:DRUGS4_59096
goto @DRUGS4_59135

:DRUGS4_59103
stop_playback_recorded_car 191@
mark_char_as_no_longer_needed 206@
mark_char_as_no_longer_needed 207@
mark_car_as_no_longer_needed 191@
remove_blip 290@
302@ = 2

:DRUGS4_59135
if 
  320@ == 1
goto_if_false @DRUGS4_59287
if 
  not is_car_dead 193@
goto_if_false @DRUGS4_59287
if 
  not is_char_dead 201@
goto_if_false @DRUGS4_59192
goto @DRUGS4_59287

:DRUGS4_59192
if 
  not is_char_dead 202@
goto_if_false @DRUGS4_59275
if 
  is_char_in_car 202@ {vehicle} 193@
goto_if_false @DRUGS4_59268
284@ = get_driver_of_car 193@
if 
  284@ == -1
goto_if_false @DRUGS4_59268
task_shuffle_to_next_car_seat 202@ {vehicle} 193@
320@ = 2

:DRUGS4_59268
goto @DRUGS4_59287

:DRUGS4_59275
stop_playback_recorded_car 193@
320@ = 2

:DRUGS4_59287
if 
  320@ == 2
goto_if_false @DRUGS4_59333
if 
  is_char_dead 202@
goto_if_false @DRUGS4_59333
stop_playback_recorded_car 193@
320@ = 3

:DRUGS4_59333
if 
  304@ == 1
goto_if_false @DRUGS4_59561
if 
  not is_car_dead 193@
goto_if_false @DRUGS4_59473
if 
  not is_playback_going_on_for_car 193@
goto_if_false @DRUGS4_59466
mark_car_as_no_longer_needed 193@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
remove_blip 292@
if 
  300@ == 1
goto_if_false @DRUGS4_59459
if 
  is_car_dead 189@
goto_if_false @DRUGS4_59459
remove_blip 288@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 193@
300@ = 2

:DRUGS4_59459
304@ = 2

:DRUGS4_59466
goto @DRUGS4_59561

:DRUGS4_59473
stop_playback_recorded_car 193@
mark_char_as_no_longer_needed 201@
mark_char_as_no_longer_needed 202@
mark_car_as_no_longer_needed 193@
remove_blip 292@
if 
  300@ == 1
goto_if_false @DRUGS4_59554
if 
  is_car_dead 189@
goto_if_false @DRUGS4_59554
remove_blip 288@
mark_char_as_no_longer_needed 200@
mark_car_as_no_longer_needed 193@
300@ = 2

:DRUGS4_59554
304@ = 2

:DRUGS4_59561
if 
  307@ == 1
goto_if_false @DRUGS4_59721
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_59721
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_59721
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_JMP_BL"
goto_if_false @DRUGS4_59721
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_JMP_BL"
if 
  228@ == 0.0
goto_if_false @DRUGS4_59721
set_char_anim_speed 219@ {animName} "MD_BIKE_JMP_BL" {animSpeed} 0.0
307@ = 2

:DRUGS4_59721
if 
  307@ == 3
goto_if_false @DRUGS4_59860
if 
  TIMERA > 3200
goto_if_false @DRUGS4_59860
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_59860
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_JMP_BL" {animationFile} "MD_CHASE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_anim_speed 219@ {animName} "MD_BIKE_JMP_BL" {animSpeed} 1.0
327@ = 7
307@ = 4

:DRUGS4_59860
if 
  307@ == 4
goto_if_false @DRUGS4_60239
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60239
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60239
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_JMP_BL"
goto_if_false @DRUGS4_60239
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_JMP_BL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_60239
detach_char_from_car 219@
if 
  310@ == 1
goto_if_false @DRUGS4_60106
attach_char_to_car 219@ {vehicle} $sweet_car {xOffset} -0.23 {yOffset} -4.0 {zOffset} 0.3 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim 219@ {animationName} "MD_BIKE_LND_DIE_BL" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
307@ = 100
goto @DRUGS4_60198

:DRUGS4_60106
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_LND_BL" {animationFile} "MD_CHASE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 219@ {vehicle} $sweet_car {xOffset} -0.23 {yOffset} -4.0 {zOffset} 0.3 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
TIMERA = 0
307@ = 5

:DRUGS4_60198
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_60239
stop_playback_recorded_car 215@
set_car_rotation_velocity 215@ {x} -2.0 {y} 3.0 {z} 0.2003

:DRUGS4_60239
if 
  307@ == 5
goto_if_false @DRUGS4_60418
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60418
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60418
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_LND_BL"
goto_if_false @DRUGS4_60418
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_LND_BL"
if 
  228@ > 0.037
goto_if_false @DRUGS4_60418
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_PUNCH" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
307@ = 6

:DRUGS4_60418
if 
  307@ > 0
goto_if_false @DRUGS4_60502
if 
  4 > 307@
goto_if_false @DRUGS4_60502
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_60502
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60502
220@ = get_car_heading 215@
set_char_heading 219@ {heading} 220@

:DRUGS4_60502
if 
  307@ == 4
goto_if_false @DRUGS4_60684
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60684
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_JMP_BL"
goto_if_false @DRUGS4_60684
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_JMP_BL"
if 
  228@ > 0.66
goto_if_false @DRUGS4_60652
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60645
220@ = get_car_heading $sweet_car
set_char_heading 219@ {heading} 220@

:DRUGS4_60645
goto @DRUGS4_60684

:DRUGS4_60652
if 
  not is_car_dead 215@
goto_if_false @DRUGS4_60684
220@ = get_car_heading 215@
set_char_heading 219@ {heading} 220@

:DRUGS4_60684
if 
  307@ > 4
goto_if_false @DRUGS4_60750
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_60750
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60750
220@ = get_car_heading $sweet_car
set_char_heading 219@ {heading} 220@

:DRUGS4_60750
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60901
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_PUNCH"
goto_if_false @DRUGS4_60901
229@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_PUNCH"
if 
  229@ > 0.2
goto_if_false @DRUGS4_60894
if 
  307@ == 6
goto_if_false @DRUGS4_60887
do_camera_bump -2.2 {yOffset} 1.7
damage_char $scplayer {amount} 10 {damageArmour} True
307@ = 7

:DRUGS4_60887
goto @DRUGS4_60901

:DRUGS4_60894
307@ = 6

:DRUGS4_60901
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_60966
231@ = get_char_health 219@
if 
  901 > 231@
goto_if_false @DRUGS4_60966
set_char_proofs 219@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
310@ = 1

:DRUGS4_60966
if 
  307@ == 100
goto_if_false @DRUGS4_61129
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_LND_DIE_BL"
goto_if_false @DRUGS4_61129
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_LND_DIE_BL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61129
detach_char_from_car 219@
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_LND_ROLL" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
307@ = 101

:DRUGS4_61129
if 
  307@ == 101
goto_if_false @DRUGS4_61240
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_LND_ROLL"
goto_if_false @DRUGS4_61240
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_LND_ROLL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61240
remove_char_elegantly 219@
307@ = 102

:DRUGS4_61240
if 
  307@ > 4
goto_if_false @DRUGS4_61310
if 
  8 > 307@
goto_if_false @DRUGS4_61310
if or
  310@ == 1
  TIMERA > 12000
goto_if_false @DRUGS4_61310
307@ = 200

:DRUGS4_61310
if 
  307@ == 200
goto_if_false @DRUGS4_61406
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61406
task_play_anim_non_interruptable 219@ {animationName} "MD_BIKE_2_HANG" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
307@ = 201

:DRUGS4_61406
if 
  307@ == 201
goto_if_false @DRUGS4_61570
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61570
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_2_HANG"
goto_if_false @DRUGS4_61570
228@ = get_char_anim_current_time 219@ {animationName} "MD_BIKE_2_HANG"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61570
task_play_anim_non_interruptable 219@ {animationName} "MD_HANG_LOOP" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
307@ = 202

:DRUGS4_61570
if 
  307@ == 202
goto_if_false @DRUGS4_61665
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61665
if 
  is_char_playing_anim 219@ {animationName} "MD_BIKE_2_HANG"
goto_if_false @DRUGS4_61665
set_char_proofs 219@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_last_damage_entity 219@
307@ = 203

:DRUGS4_61665
if 
  307@ == 203
goto_if_false @DRUGS4_61788
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61788
if or
  has_char_been_damaged_by_char 219@ {handle} $scplayer
  TIMERA > 5000
goto_if_false @DRUGS4_61788
detach_char_from_car 219@
task_play_anim_non_interruptable 219@ {animationName} "MD_HANG_LND_ROLL" {animationFile} "MD_CHASE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
307@ = 204

:DRUGS4_61788
if 
  307@ == 204
goto_if_false @DRUGS4_61917
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_61917
if 
  is_char_playing_anim 219@ {animationName} "MD_HANG_LND_ROLL"
goto_if_false @DRUGS4_61917
228@ = get_char_anim_current_time 219@ {animationName} "MD_HANG_LND_ROLL"
if 
  228@ == 1.0
goto_if_false @DRUGS4_61917
delete_char 219@
307@ = 205

:DRUGS4_61917
if 
  325@ == 6
goto_if_false @DRUGS4_62687
if 
  TIMERB > 3000
goto_if_false @DRUGS4_62687
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_62687
delete_car 40@
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #CHOPCOP_ARML
mark_model_as_no_longer_needed #CHOPCOP_ARMR
mark_model_as_no_longer_needed #CHOPCOP_LEGL
mark_model_as_no_longer_needed #CHOPCOP_LEGR
mark_model_as_no_longer_needed #CHOPCOP_HEAD
mark_model_as_no_longer_needed #CHOPCOP_TORSO
delete_object 243@
delete_object 244@
delete_object 245@
delete_object 246@
delete_object 247@
delete_object 248@
delete_object 249@
delete_object 262@
delete_object 263@
delete_object 261@
delete_object 262@
delete_object 263@
delete_car 40@
kill_fx_system 237@
kill_fx_system 240@
kill_fx_system 241@
kill_fx_system 242@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Ak47
mark_model_as_no_longer_needed 355
remove_animation "MD_CHASE"
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
request_car_recording 351
request_car_recording 382
request_car_recording 383
request_car_recording 384
request_model 514
request_model 584
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'SMOKE'
load_special_character 3 {modelName} 'RYDER2'
request_animation "MD_END"
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15943
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15944
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32400
load_all_models_now 
set_fixed_camera_position 2177.3069 {y} -1535.901 {z} 17.7635 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2176.855 {y} -1535.1429 {z} 18.2324 {switchStyle} SwitchType.JumpCut

:DRUGS4_62311
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_special_character_loaded 3
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_62353
wait 0
goto @DRUGS4_62311

:DRUGS4_62353
if or
  not has_model_loaded 514
  not has_model_loaded 584
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRUGS4_62389
wait 0
goto @DRUGS4_62353

:DRUGS4_62389
if or
  not has_car_recording_been_loaded 351
  not has_car_recording_been_loaded 382
  not has_car_recording_been_loaded 383
  not has_car_recording_been_loaded 384
  not has_animation_loaded "MD_END"
goto_if_false @DRUGS4_62441
wait 0
goto @DRUGS4_62389

:DRUGS4_62441
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_62462
stop_playback_recorded_car $sweet_car

:DRUGS4_62462
274@ = create_car 514 {x} 2078.002 {y} -1524.349 {z} 2.49
set_car_heading 274@ {heading} 254.103
set_car_health 274@ {health} 5000
set_car_proofs 274@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
273@ = create_car 584 {x} 2070.05 {y} -1522.059 {z} 3.668
set_car_heading 273@ {heading} 254.0
set_car_health 273@ {health} 5000
set_car_proofs 273@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
275@ = create_car 492 {x} 2060.05 {y} -1520.059 {z} 3.668
set_car_health 275@ {health} 5000
set_car_proofs 275@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
change_car_colour 275@ {color1} 5 {color2} 5
switch_ped_roads_off 2184.4399 {leftBottomY} -1557.1801 {leftBottomZ} -5.481 {rightTopX} 2169.22 {rightTopY} -1560.63 {rightTopZ} 5.91
set_car_density_multiplier 1.0
clear_onscreen_counter $carhealth_f1
TIMERB = 0
325@ = 7

:DRUGS4_62687
if 
  325@ > 6
goto_if_false @DRUGS4_62790
if 
  329@ == 0
goto_if_false @DRUGS4_62790
if 
  TIMERB > 1989
goto_if_false @DRUGS4_62790
if 
  does_object_exist $advert_f1
goto_if_false @DRUGS4_62783
freeze_object_position $advert_f1 {state} False
set_object_collision_damage_effect $advert_f1 {state} True
break_object $advert_f1 {intensity} 1
play_mission_audio MissionAudioSlot.Slot3

:DRUGS4_62783
329@ = 1

:DRUGS4_62790
if 
  325@ == 7
goto_if_false @DRUGS4_62911
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_62911
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_62911
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_62911
start_playback_recorded_car $sweet_car {path} 351
start_playback_recorded_car 274@ {path} 382
start_playback_recorded_car 273@ {path} 383
if 
  not is_car_dead 275@
goto_if_false @DRUGS4_62904
start_playback_recorded_car 275@ {path} 384

:DRUGS4_62904
325@ = 8

:DRUGS4_62911
if 
  325@ == 8
goto_if_false @DRUGS4_63041
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63041
if 
  locate_car_2d $sweet_car {x} 2170.2 {y} -1518.04 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @DRUGS4_63041
set_time_scale 0.3
point_camera_at_car $sweet_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
open_car_door $sweet_car {door} CarDoor.LeftFrontDoor
open_car_door $sweet_car {door} CarDoor.LeftRearDoor
open_car_door $sweet_car {door} CarDoor.RightRearDoor
open_car_door $sweet_car {door} CarDoor.Hood
TIMERA = 0
325@ = 9

:DRUGS4_63041
if 
  325@ == 9
goto_if_false @DRUGS4_63194
if 
  TIMERA > 500
goto_if_false @DRUGS4_63194
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63194
pop_car_panel $sweet_car {panelId} 6 {visibility} True
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_63149
set_car_proofs 273@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_63149
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_63180
set_car_proofs 274@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRUGS4_63180
TIMERA = 0
325@ = 10

:DRUGS4_63194
if 
  325@ == 10
goto_if_false @DRUGS4_63590
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63590
if or
  locate_car_3d $sweet_car {x} 2169.24 {y} -1553.91 {z} 2.5 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 6.0 {drawSphere} False
  TIMERA > 4000
goto_if_false @DRUGS4_63590
set_car_health $sweet_car {health} 300
set_time_scale 0.7
pop_car_panel $sweet_car {panelId} 5 {visibility} True
set_time_of_day 7 {minutes} 15
set_fixed_camera_position 2204.804 {y} -1568.276 {z} 1.9452 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2203.8611 {y} -1567.951 {z} 1.8744 {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
$sweet = create_char PedType.Special {modelId} 290 {x} 2168.479 {y} -1506.067 {z} 24.0
set_char_heading $sweet {heading} 135.0
set_char_decision_maker $sweet {handleOrTemplate} 55@
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$big_smoke = create_char PedType.Special {modelId} 291 {x} 2168.9919 {y} -1508.601 {z} 24.0
set_char_heading $big_smoke {heading} 45.0
set_char_decision_maker $big_smoke {handleOrTemplate} 55@
set_char_proofs $big_smoke {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$ryder = create_char PedType.Special {modelId} 292 {x} 2167.054 {y} -1507.7 {z} 24.0
set_char_heading $ryder {heading} 290.0
set_char_decision_maker $ryder {handleOrTemplate} 55@
set_char_proofs $ryder {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_coordinates $scplayer {x} 2166.9519 {y} -1506.2371 {z} 24.0
set_char_heading $scplayer {heading} 225.0
TIMERA = 0
325@ = 11

:DRUGS4_63590
if 
  325@ == 11
goto_if_false @DRUGS4_63863
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_63863
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_63863
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_63863
if or
  is_car_touching_car $sweet_car {handle} 274@
  TIMERB > 4350
goto_if_false @DRUGS4_63863
$player_x, $player_y, $player_z = get_car_coordinates $sweet_car
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Grenade
explode_car $sweet_car
explode_car 273@
set_car_proofs 274@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
add_explosion 2180.27 {y} -1564.66 {z} 3.23 {type} ExplosionType.Car
add_explosion 2182.25 {y} -1565.23 {z} 2.88 {type} ExplosionType.Grenade
add_explosion 2166.3401 {y} -1559.97 {z} 6.28 {type} ExplosionType.Rocket
add_explosion 2173.52 {y} -1560.03 {z} 5.0 {type} ExplosionType.Car
add_explosion 2182.6499 {y} -1565.14 {z} 4.01 {type} ExplosionType.Rocket
add_explosion 2183.8 {y} -1564.48 {z} 4.05 {type} ExplosionType.Grenade
TIMERA = 0
325@ = 12

:DRUGS4_63863
if 
  325@ == 12
goto_if_false @DRUGS4_63964
if 
  TIMERA > 250
goto_if_false @DRUGS4_63964
add_explosion 2187.9399 {y} -1562.73 {z} 2.85 {type} ExplosionType.Grenade
add_explosion 2172.99 {y} -1561.51 {z} 4.88 {type} ExplosionType.Grenade
add_explosion 2172.8999 {y} -1561.64 {z} 2.7 {type} ExplosionType.Car
325@ = 13

:DRUGS4_63964
if 
  325@ == 13
goto_if_false @DRUGS4_64380
if 
  TIMERA > 750
goto_if_false @DRUGS4_64380
281@ = start_script_fire 2180.27 {y} -1564.66 {z} 1.93 {propagation} 1 {size} 3
282@ = start_script_fire 2182.25 {y} -1565.23 {z} 1.88 {propagation} 1 {size} 3
283@ = start_script_fire 2187.9399 {y} -1562.73 {z} 1.36 {propagation} 1 {size} 3
278@ = start_script_fire 2204.804 {y} -1568.476 {z} 1.95 {propagation} 1 {size} 1
279@ = start_script_fire 2201.1101 {y} -1565.77 {z} 1.36 {propagation} 1 {size} 1
280@ = start_script_fire 2202.8201 {y} -1565.01 {z} 1.35 {propagation} 1 {size} 3
add_explosion 2175.1201 {y} -1562.63 {z} 5.93 {type} ExplosionType.Car
add_explosion 2179.24 {y} -1563.66 {z} 6.42 {type} ExplosionType.Grenade
add_explosion 2170.3899 {y} -1560.61 {z} 5.91 {type} ExplosionType.Car
add_explosion 2187.9399 {y} -1562.73 {z} 2.85 {type} ExplosionType.Car
add_explosion 2180.27 {y} -1564.66 {z} 3.23 {type} ExplosionType.Car
add_explosion 2172.8999 {y} -1561.64 {z} 2.7 {type} ExplosionType.Car
add_explosion 2171.73 {y} -1562.22 {z} 5.92 {type} ExplosionType.Car
add_explosion 2179.3 {y} -1563.3199 {z} 6.12 {type} ExplosionType.Rocket
add_explosion 2177.3501 {y} -1562.66 {z} 5.73 {type} ExplosionType.Grenade
add_explosion 2174.04 {y} -1562.21 {z} 6.56 {type} ExplosionType.Grenade
add_explosion 2178.27 {y} -1564.89 {z} 6.58 {type} ExplosionType.Rocket
add_explosion 2177.53 {y} -1564.16 {z} 6.96 {type} ExplosionType.Car
325@ = 14

:DRUGS4_64380
if 
  325@ == 14
goto_if_false @DRUGS4_64500
if 
  TIMERA > 1250
goto_if_false @DRUGS4_64500
add_explosion 2166.3401 {y} -1559.97 {z} 6.28 {type} ExplosionType.Rocket
add_explosion 2173.52 {y} -1560.03 {z} 5.0 {type} ExplosionType.Car
add_explosion 2182.6499 {y} -1565.14 {z} 4.01 {type} ExplosionType.Rocket
add_explosion 2183.8 {y} -1564.48 {z} 4.05 {type} ExplosionType.Grenade
325@ = 15

:DRUGS4_64500
if 
  325@ == 15
goto_if_false @DRUGS4_64783
if 
  TIMERA > 1750
goto_if_false @DRUGS4_64783
add_explosion 2175.1201 {y} -1562.63 {z} 5.93 {type} ExplosionType.Car
add_explosion 2179.24 {y} -1563.66 {z} 6.42 {type} ExplosionType.Grenade
add_explosion 2170.3899 {y} -1560.61 {z} 5.91 {type} ExplosionType.Car
if 
  not is_car_dead 273@
goto_if_false @DRUGS4_64630
set_car_proofs 273@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
explode_car 273@

:DRUGS4_64630
if 
  not is_car_dead 274@
goto_if_false @DRUGS4_64671
set_car_proofs 274@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
stop_playback_recorded_car 274@
explode_car 274@

:DRUGS4_64671
if 
  not is_car_dead $sweet_car
goto_if_false @DRUGS4_64719
set_car_proofs $sweet_car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
stop_playback_recorded_car $sweet_car
set_car_health $sweet_car {health} 100
explode_car $sweet_car

:DRUGS4_64719
add_explosion 2187.9399 {y} -1562.73 {z} 2.85 {type} ExplosionType.Car
add_explosion 2180.27 {y} -1564.66 {z} 3.23 {type} ExplosionType.Car
add_explosion 2172.8999 {y} -1561.64 {z} 2.7 {type} ExplosionType.Car
325@ = 16

:DRUGS4_64783
if 
  325@ == 16
goto_if_false @DRUGS4_65227
if 
  TIMERA > 4500
goto_if_false @DRUGS4_65227
279@ = start_script_fire 2201.1101 {y} -1565.77 {z} 1.36 {propagation} 1 {size} 1
remove_animation "MD_CHASE"
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 497
set_time_scale 1.0
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_64940
task_play_anim_non_interruptable $sweet {animationName} "END_SC1_SWE" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DRUGS4_64940
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_64997
task_play_anim_non_interruptable $ryder {animationName} "END_SC1_RYD" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DRUGS4_64997
task_play_anim $scplayer {animationName} "END_SC1_PLY" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_65103
task_play_anim $big_smoke {animationName} "END_SC1_SMO" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
start_char_facial_talk $big_smoke {duration} 5000

:DRUGS4_65103
wait 100
set_fixed_camera_position 2171.519 {y} -1521.437 {z} 23.7949 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.2871 {y} -1520.465 {z} 23.8322 {switchStyle} SwitchType.JumpCut
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_MU' {time} 5000 {flag} 1
delete_car 275@
stop_playback_recorded_car 273@
stop_playback_recorded_car 275@
delete_car 273@
delete_car $sweet_car
delete_car 274@
delete_car 40@
330@ = 1
325@ = 17

:DRUGS4_65227
if 
  325@ > 16
goto_if_false @DRUGS4_65414
if 
  330@ == 1
goto_if_false @DRUGS4_65414
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_65414
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_65414
set_fixed_camera_position 2171.519 {y} -1521.437 {z} 23.7949 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.2871 {y} -1520.465 {z} 23.8322 {switchStyle} SwitchType.JumpCut
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
stop_char_facial_talk $big_smoke
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15945
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_MV' {time} 4000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65407
start_char_facial_talk $sweet {duration} 5000

:DRUGS4_65407
330@ = 2

:DRUGS4_65414
if 
  330@ == 2
goto_if_false @DRUGS4_65547
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_65547
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_65547
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_65547
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65547
clear_prints 
stop_char_facial_talk $sweet
play_mission_audio MissionAudioSlot.Slot1
print_now 'FIN1_MW' {time} 5000 {flag} 1
start_char_facial_talk $ryder {duration} 5000
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 15946
330@ = 3

:DRUGS4_65547
if 
  330@ == 3
goto_if_false @DRUGS4_65667
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DRUGS4_65667
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_65667
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_65667
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65667
stop_char_facial_talk $ryder
start_char_facial_talk $sweet {duration} 5000
play_mission_audio MissionAudioSlot.Slot2
print_now 'FIN1_MX' {time} 5000 {flag} 1
330@ = 4

:DRUGS4_65667
if 
  330@ == 4
goto_if_false @DRUGS4_65730
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DRUGS4_65730
clear_prints 
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_65723
stop_char_facial_talk $sweet

:DRUGS4_65723
330@ = 5

:DRUGS4_65730
if 
  325@ == 17
goto_if_false @DRUGS4_66089
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_66089
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_66089
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_66089
if 
  is_char_playing_anim $big_smoke {animationName} "END_SC1_SMO"
goto_if_false @DRUGS4_66089
277@ = get_char_anim_current_time $big_smoke {animationName} "END_SC1_SMO"
if 
  277@ == 1.0
goto_if_false @DRUGS4_66089
task_play_anim_non_interruptable $sweet {animationName} "END_SC2_SWE" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $big_smoke {animationName} "END_SC2_SMO" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $ryder {animationName} "END_SC2_RYD" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $scplayer {animationName} "END_SC2_PLY" {animationFile} "MD_END" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position 2168.1169 {y} -1510.165 {z} 24.3268 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2168.124 {y} -1509.166 {z} 24.294 {switchStyle} SwitchType.JumpCut
325@ = 18

:DRUGS4_66089
if 
  325@ == 18
goto_if_false @DRUGS4_66378
if 
  not is_char_dead $big_smoke
goto_if_false @DRUGS4_66378
if 
  330@ == 5
goto_if_false @DRUGS4_66378
set_fixed_camera_position 2175.271 {y} -1537.7729 {z} 24.5856 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2175.0779 {y} -1536.796 {z} 24.6842 {switchStyle} SwitchType.JumpCut
task_go_straight_to_coord $big_smoke {x} 2172.1899 {y} -1498.48 {z} 23.55 {speed} MoveState.Walk {time} -1
set_follow_node_threshold_distance $big_smoke {range} 100.0
wait 150
if 
  not is_char_dead $sweet
goto_if_false @DRUGS4_66281
task_go_straight_to_coord $sweet {x} 2170.77 {y} -1492.05 {z} 23.65 {speed} MoveState.Walk {time} -1
set_follow_node_threshold_distance $sweet {range} 100.0

:DRUGS4_66281
wait 100
if 
  not is_char_dead $ryder
goto_if_false @DRUGS4_66335
task_go_straight_to_coord $ryder {x} 2163.6499 {y} -1506.92 {z} 23.01 {speed} MoveState.Walk {time} -1
set_follow_node_threshold_distance $ryder {range} 100.0

:DRUGS4_66335
do_fade 4000 {direction} Fade.Out

:DRUGS4_66342
if 
  get_fading_status 
goto_if_false @DRUGS4_66366
wait 0
goto @DRUGS4_66342

:DRUGS4_66366
delete_car 40@
325@ = 19

:DRUGS4_66378
if 
  325@ == 19
goto_if_false @DRUGS4_66505
delete_char $big_smoke
delete_char $ryder
delete_char $sweet
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2170.9351 {y} -1500.675 {z} 22.9
set_char_heading $scplayer {heading} 355.56
set_char_coordinates $scplayer {x} 2170.5959 {y} -1515.468 {z} 22.89
set_char_heading $scplayer {heading} 356.495
restore_camera_jumpcut 
set_camera_in_front_of_player 
switch_widescreen False
do_fade 2000 {direction} Fade.In
goto @DRUGS4_67765
325@ = 20

:DRUGS4_66505
goto @DRUGS4_1708

:DRUGS4_66512
if 
  179@ == 0
goto_if_false @DRUGS4_66552
load_mission_audio MissionAudioSlot.Slot1 {audioId} 106@
set_lvar_text_label 104@s = 107@s
179@ = 1

:DRUGS4_66552
return 

:DRUGS4_66554
if 
  179@ == 1
goto_if_false @DRUGS4_66733
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRUGS4_66733
print_now 104@s {time} 4000 {flag} 1
clear_this_print 'FIN1_BD'
clear_this_print 'FIN1_CK'
clear_this_print 'FIN1_BE'
clear_this_print 'FIN1_BY'
clear_this_print 'FIN1_CB'
clear_this_print 'FIN1_BK'
clear_this_print 'FIN1_BL'
if 
  151@ == 1
goto_if_false @DRUGS4_66722
if 
  not is_char_dead 66@
goto_if_false @DRUGS4_66722
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 66@
151@ = 2

:DRUGS4_66722
play_mission_audio MissionAudioSlot.Slot1
179@ = 2

:DRUGS4_66733
if 
  179@ == 2
goto_if_false @DRUGS4_66786
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRUGS4_66786
178@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
179@ = 0

:DRUGS4_66786
return 

:DRUGS4_66788
125@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_shoot_at_coord -1 {x} 122@ {y} 123@ {z} 124@ {time} 15000
set_sequence_to_repeat 125@ {state} True
close_sequence_task 125@
perform_sequence_task 118@ {sequence} 125@
clear_sequence_task 125@
return 

:DRUGS4_66848
110@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 122@ {y} 123@ {z} 124@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} 119@ {flags} 4 {actionDelay} 5000 {actionChance} 80
close_sequence_task 110@
perform_sequence_task 118@ {sequence} 110@
clear_sequence_task 110@
return 

:DRUGS4_66916
111@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} 119@ {flags} 1 {actionDelay} 5000 {actionChance} 50
close_sequence_task 111@
perform_sequence_task 118@ {sequence} 111@
clear_sequence_task 111@
return 

:DRUGS4_66967
112@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 119@
close_sequence_task 112@
perform_sequence_task 118@ {sequence} 112@
clear_sequence_task 112@
return 

:DRUGS4_67005
113@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 119@
task_kill_char_on_foot -1 {target} 120@
close_sequence_task 113@
perform_sequence_task 118@ {sequence} 113@
clear_sequence_task 113@
return 

:DRUGS4_67050
114@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 114@
perform_sequence_task 118@ {sequence} 114@
clear_sequence_task 114@
return 

:DRUGS4_67133
115@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 115@
perform_sequence_task 118@ {sequence} 115@
clear_sequence_task 115@
return 

:DRUGS4_67216
116@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
if 
  161@ == 0
goto_if_false @DRUGS4_67344
task_kill_char_on_foot_timed -1 {target} 119@ {time} 1500
goto @DRUGS4_67360

:DRUGS4_67344
task_shoot_at_coord -1 {x} 122@ {y} 123@ {z} 124@ {time} 1500

:DRUGS4_67360
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 116@ {state} True
close_sequence_task 116@
perform_sequence_task 118@ {sequence} 116@
clear_sequence_task 116@
return 

:DRUGS4_67481
117@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 1500
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 117@ {state} True
close_sequence_task 117@
perform_sequence_task 118@ {sequence} 117@
clear_sequence_task 117@
return 

:DRUGS4_67705
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
delete_object $advert_f1
$advert_f1 = create_object_no_offset #MD_POSTER {x} 2167.8201 {y} -1518.193 {z} 20.237
set_object_heading $advert_f1 {heading} 0.0
dont_remove_object $advert_f1
return 

:DRUGS4_67765
register_mission_passed 'LA1FIN1'
set_int_stat StatId.PassedLafin1 {value} 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
play_mission_passed_tune 1
clear_wanted_level $player1
player_made_progress 1
$flag_la1fin1_mission_counter += 1
return 

:DRUGS4_67827
$onmission = 0
clear_onscreen_counter $carhealth_f1
set_script_limit_to_gang_size 99
switch_roads_on 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_ped_roads_on 2180.1799 {leftBottomY} -1130.28 {leftBottomZ} 21.2 {rightTopX} 2276.8201 {rightTopY} -1151.26 {rightTopZ} 28.0
switch_ped_roads_on 2184.4399 {leftBottomY} -1557.1801 {leftBottomZ} -5.481 {rightTopX} 2169.22 {rightTopY} -1560.63 {rightTopZ} 5.91
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_char_elegantly $sweet
remove_char_elegantly $ryder
remove_char_elegantly $big_smoke
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 285
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 427
mark_model_as_no_longer_needed 349
remove_animation "SWAT"
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed #IMY_SKYLIGHT
mark_model_as_no_longer_needed #KMB_TROLLEY
remove_animation "KISSING"
remove_animation "GANGS"
remove_blip 185@
remove_blip 183@
remove_blip 184@
clear_onscreen_counter $sweethealth_f1
kill_fx_system 65@
remove_pickup 127@
flush_route 
mark_model_as_no_longer_needed #MD_POSTER
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 538
remove_animation "GANGS"
mark_model_as_no_longer_needed #DYN_SCAFFOLD_3B
mark_model_as_no_longer_needed #DYN_SCAFFOLD_4B
remove_animation "MD_CHASE"
mark_model_as_no_longer_needed #MUNCH_DONUT
mark_model_as_no_longer_needed #CHOPCOP_ARML
mark_model_as_no_longer_needed #CHOPCOP_ARMR
mark_model_as_no_longer_needed #CHOPCOP_LEGL
mark_model_as_no_longer_needed #CHOPCOP_LEGR
mark_model_as_no_longer_needed #CHOPCOP_HEAD
mark_model_as_no_longer_needed #CHOPCOP_TORSO
mark_model_as_no_longer_needed #WD_FENCE_ANIM
remove_animation "CAR_CHAT"
remove_animation "MD_END"
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
set_max_wanted_level 4
delete_car 40@
remove_blip 285@
remove_blip 286@
remove_blip 287@
remove_blip 288@
remove_blip 289@
remove_blip 290@
remove_blip 291@
remove_blip 292@
if 
  is_player_playing $player1
goto_if_false @DRUGS4_68306
set_player_duck_button $player1 {enabled} True
set_player_fire_button $player1 {enabled} True
shut_char_up $scplayer {state} False

:DRUGS4_68306
if 
  not is_char_dead 218@
goto_if_false @DRUGS4_68327
remove_char_elegantly 218@

:DRUGS4_68327
if 
  not is_char_dead 219@
goto_if_false @DRUGS4_68348
remove_char_elegantly 219@

:DRUGS4_68348
detach_char_from_car $scplayer
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
remove_all_script_fires 
kill_fx_system 237@
kill_fx_system 240@
kill_fx_system 241@
kill_fx_system 242@
switch_entry_exit 'MOTEL1' {state} True
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
release_weather 
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 38---------------
// Originally: The Green Sabre

:LA1FIN2
script_name 'LA1FIN2'
gosub @LA1FIN2_339
if 
  has_deatharrest_been_executed 
goto_if_false @LA1FIN2_38
gosub @LA1FIN2_19507

:LA1FIN2_38
gosub @LA1FIN2_22053
terminate_this_script 
if 
  100@ == 99
goto_if_false @LA1FIN2_339
36@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
238@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
243@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
235@ = create_car 401 {x} 1650.115 {y} -1055.243 {z} 22.8984
233@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
280@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
41@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
231@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
232@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
51@ = add_blip_for_char 36@
50@ = add_blip_for_coord 1648.714 {y} -1050.094 {z} 22.9141
122@ = create_car 475 {x} 1643.983 {y} -1069.01 {z} 22.8984
124@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
125@ = create_char_inside_car 122@ {pedType} PedType.CivMale {modelId} 280

:LA1FIN2_339
register_mission_given 
$onmission = 1
84@ = 1
494@ = 1
set_script_limit_to_gang_size 0

:LA1FIN2_366
wait 0
if 
is_ps2_keyboard_key_pressed 72
goto_if_false @LA1FIN2_390
save_int_to_debug_file 100@

:LA1FIN2_390
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @LA1FIN2_412
goto @LA1FIN2_19524

:LA1FIN2_412
if 
is_ps2_keyboard_key_pressed 70
goto_if_false @LA1FIN2_461
set_char_coordinates $scplayer {x} 1650.4561 {y} -1039.614 {z} 22.8984
100@ = 4
101@ = 0

:LA1FIN2_461
if 
is_ps2_keyboard_key_just_pressed 71
goto_if_false @LA1FIN2_625
100@ = 7
267@ = 0

:LA1FIN2_490
if 
  6 > 267@
goto_if_false @LA1FIN2_551
if 
  not is_char_dead 243@(267@,6i)
goto_if_false @LA1FIN2_537
task_die 243@(267@,6i)

:LA1FIN2_537
267@ += 1
goto @LA1FIN2_490

:LA1FIN2_551
if 
  not is_car_dead 122@
goto_if_false @LA1FIN2_572
delete_car 122@

:LA1FIN2_572
if 
  not is_car_dead 123@
goto_if_false @LA1FIN2_593
delete_car 123@

:LA1FIN2_593
if 
  not is_car_dead 124@
goto_if_false @LA1FIN2_614
delete_car 124@

:LA1FIN2_614
switch_widescreen True
set_player_control $player1 {state} False

:LA1FIN2_625
if 
is_ps2_keyboard_key_pressed 68
goto_if_false @LA1FIN2_660
set_char_coordinates $scplayer {x} 1624.537 {y} -1863.438 {z} 12.5549

:LA1FIN2_660
switch_start 100@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_928 {caseNum1} 0 {caseLabel1} @LA1FIN2_788 {caseNum2} 1 {caseLabel2} @LA1FIN2_809 {caseNum3} 2 {caseLabel3} @LA1FIN2_830 {caseNum4} 3 {caseLabel4} @LA1FIN2_844 {caseNum5} 4 {caseLabel5} @LA1FIN2_858 {caseNum6} 5 {caseLabel6} @LA1FIN2_872 {caseNum7} 6 {caseLabel7} @LA1FIN2_886
switch_continued 7 {caseLabel1} @LA1FIN2_900 {caseNum2} 8 {caseLabel2} @LA1FIN2_914 {caseNum3} -1 {caseLabel3} @LA1FIN2_928 {caseNum4} -1 {caseLabel4} @LA1FIN2_928 {caseNum5} -1 {caseLabel5} @LA1FIN2_928 {caseNum6} -1 {caseLabel6} @LA1FIN2_928 {caseNum7} -1 {caseLabel7} @LA1FIN2_928 {caseNum8} -1 {caseLabel8} @LA1FIN2_928 {caseNum9} -1 {caseLabel9} @LA1FIN2_928

:LA1FIN2_788
gosub @LA1FIN2_1257
100@ = 1
goto @LA1FIN2_928

:LA1FIN2_809
gosub @LA1FIN2_1314
100@ = 2
goto @LA1FIN2_928

:LA1FIN2_830
gosub @LA1FIN2_1795
goto @LA1FIN2_928

:LA1FIN2_844
gosub @LA1FIN2_2441
goto @LA1FIN2_928

:LA1FIN2_858
gosub @LA1FIN2_2993
goto @LA1FIN2_928

:LA1FIN2_872
gosub @LA1FIN2_3931
goto @LA1FIN2_928

:LA1FIN2_886
gosub @LA1FIN2_6195
goto @LA1FIN2_928

:LA1FIN2_900
gosub @LA1FIN2_9533
goto @LA1FIN2_928

:LA1FIN2_914
goto @LA1FIN2_19524
goto @LA1FIN2_928

:LA1FIN2_928
gosub @LA1FIN2_983
gosub @LA1FIN2_1044
gosub @LA1FIN2_17183
if 
  34@ == 1
goto_if_false @LA1FIN2_974
goto @LA1FIN2_19507

:LA1FIN2_974
goto @LA1FIN2_366
return 

:LA1FIN2_983
if 
  35@ == 1
goto_if_false @LA1FIN2_1040
if 
  is_char_dead 36@
goto_if_false @LA1FIN2_1040
34@ = 1
print 'LA1_16' {time} 4000 {flag} 1

:LA1FIN2_1040
return 
return 

:LA1FIN2_1044
if 
  100@ > 1
goto_if_false @LA1FIN2_1255
if 
  locate_char_any_means_3d $scplayer {x} 1650.645 {y} -1059.4351 {z} 25.4852 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @LA1FIN2_1131
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
goto @LA1FIN2_1145

:LA1FIN2_1131
set_ped_density_multiplier 0.6
set_car_density_multiplier 0.6

:LA1FIN2_1145
set_lvar_int_to_lvar_int 280@ = 233@
85@ = 0
gosub @LA1FIN2_16314
set_lvar_int_to_lvar_int 280@ = 234@
85@ = 1
gosub @LA1FIN2_16314
set_lvar_int_to_lvar_int 280@ = 237@
85@ = 2
gosub @LA1FIN2_16314
set_lvar_int_to_lvar_int 280@ = 235@
85@ = 3
gosub @LA1FIN2_16314
set_lvar_int_to_lvar_int 280@ = 236@
85@ = 4
gosub @LA1FIN2_16314

:LA1FIN2_1255
return 

:LA1FIN2_1257
103@ = load_char_decision_maker DecisionMakerType.Empty
104@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 104@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 104@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
return 

:LA1FIN2_1314
load_mission_text 'LAFIN2'
set_area_visible 1
load_cutscene 'FINAL2A'

:LA1FIN2_1340
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_1364
wait 0
goto @LA1FIN2_1340

:LA1FIN2_1364
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_1373
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_1397
wait 0
goto @LA1FIN2_1373

:LA1FIN2_1397
do_fade 0 {direction} Fade.Out

:LA1FIN2_1403
if 
  get_fading_status 
goto_if_false @LA1FIN2_1427
wait 0
goto @LA1FIN2_1403

:LA1FIN2_1427
clear_cutscene 
set_area_visible 0
load_scene 2518.7891 {y} -1677.22 {z} 13.5079
set_camera_behind_player 
restore_camera_jumpcut 
set_char_coordinates $scplayer {x} 2519.825 {y} -1677.714 {z} 13.7425
set_char_heading $scplayer {heading} 67.0
request_model 401
request_model 330

:LA1FIN2_1494
if or
  not has_model_loaded 401
  not has_model_loaded 330
goto_if_false @LA1FIN2_1526
wait 0
goto @LA1FIN2_1494

:LA1FIN2_1526
40@ = create_car 401 {x} 1625.087 {y} -1857.438 {z} 12.5549
change_car_colour 40@ {color1} 32 {color2} 1
freeze_car_position 40@ {state} True
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 40@ {heading} 180.0
wait 500
if 
  $lf2_skip_allowed == 1
goto_if_false @LA1FIN2_1635
set_up_skip 1642.299 {y} -1869.6429 {z} 12.3906 {heading} 90.0

:LA1FIN2_1635
do_fade 500 {direction} Fade.In
switch_widescreen True
set_fixed_camera_position 2513.498 {y} -1671.741 {z} 13.2117 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2513.9431 {y} -1672.6281 {z} 13.3312 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
131@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2514.989 {y} -1674.08 {z} 12.7225 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_use_mobile_phone -1 {start} True
close_sequence_task 131@
perform_sequence_task $scplayer {sequence} 131@
clear_sequence_task 131@
437@ = 17
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 3500
113@ = 1
return 

:LA1FIN2_1795
if 
  113@ == 1
goto_if_false @LA1FIN2_1880
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_1880
if 
  437@ == 0
goto_if_false @LA1FIN2_1880
437@ = 18
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 2500
113@ = 2

:LA1FIN2_1880
if 
  113@ == 2
goto_if_false @LA1FIN2_1968
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_1968
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
436@ = 1
437@ = 19
438@ = 11
113@ = 3

:LA1FIN2_1968
if 
  113@ == 3
goto_if_false @LA1FIN2_2131
if 
  437@ <> 0
goto_if_false @LA1FIN2_2035
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @LA1FIN2_2035
437@ = 0
436@ = 5

:LA1FIN2_2035
if 
  437@ == 0
goto_if_false @LA1FIN2_2131
if 
  436@ == 1
goto_if_false @LA1FIN2_2131
task_use_mobile_phone $scplayer {start} False
mark_model_as_no_longer_needed 330
113@ = 0
print 'LA1_33' {time} 7000 {flag} 1
remove_blip 50@
50@ = add_blip_for_coord 1631.791 {y} -1867.288 {z} 12.5381

:LA1FIN2_2131
if 
  101@ == 0
goto_if_false @LA1FIN2_2316
if 
  locate_char_any_means_3d $scplayer {x} 1631.791 {y} -1867.288 {z} 12.5381 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @LA1FIN2_2316
clear_skip 
$lf2_skip_allowed = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_2252
set_player_control $player1 {state} False
114@ = 1
set_lvar_int_to_lvar_int 115@ = TIMERA
115@ += 1500

:LA1FIN2_2252
remove_blip 50@
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2293
remove_blip 50@
50@ = add_blip_for_car 40@
set_blip_as_friendly 50@ {state} True

:LA1FIN2_2293
print 'LA1_35' {time} 4000 {flag} 1
101@ = 1

:LA1FIN2_2316
if 
  114@ == 1
goto_if_false @LA1FIN2_2372
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 115@
goto_if_false @LA1FIN2_2372
task_leave_any_car $scplayer
set_player_control $player1 {state} True
114@ = 2

:LA1FIN2_2372
if 
  101@ == 1
goto_if_false @LA1FIN2_2439
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2439
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @LA1FIN2_2439
remove_blip 50@
clear_prints 
100@ = 3

:LA1FIN2_2439
return 

:LA1FIN2_2441
mark_model_as_no_longer_needed 401
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:LA1FIN2_2461
if 
  get_fading_status 
goto_if_false @LA1FIN2_2485
wait 0
goto @LA1FIN2_2461

:LA1FIN2_2485
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2508
set_car_visible 40@ {state} False

:LA1FIN2_2508
clear_area_of_cars 1626.6331 {leftBottomY} -1876.4 {leftBottomZ} 16.8284 {rightTopX} 1601.1121 {rightTopY} -1902.103 {rightTopZ} 10.6931
clear_area_of_chars 1626.6331 {leftBottomY} -1876.4 {leftBottomZ} 16.8284 {rightTopX} 1601.1121 {rightTopY} -1902.103 {rightTopZ} 10.6931
remove_blip 50@
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'FINAL2B'

:LA1FIN2_2597
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_2621
wait 0
goto @LA1FIN2_2597

:LA1FIN2_2621
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_2630
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_2654
wait 0
goto @LA1FIN2_2630

:LA1FIN2_2654
do_fade 0 {direction} Fade.Out

:LA1FIN2_2660
if 
  get_fading_status 
goto_if_false @LA1FIN2_2684
wait 0
goto @LA1FIN2_2660

:LA1FIN2_2684
clear_cutscene 
switch_widescreen False
set_player_control $player1 {state} True
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2747
set_car_visible 40@ {state} True
freeze_car_position 40@ {state} False
set_car_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 40@

:LA1FIN2_2747
remove_blip 50@
50@ = add_blip_for_coord 1648.714 {y} -1050.094 {z} 22.9141
print 'LA1_8' {time} 5000 {flag} 1
$l1f2_sweet_health = 100
116@ = 1
117@ = generate_random_int_in_range 4000 {max} 8000
add_int_lvar_to_int_lvar 117@ += TIMERA
display_onscreen_counter_with_string $l1f2_sweet_health {display} CounterDisplay.Bar {text} 'LA1_4'
117@ = generate_random_int_in_range 4000 {max} 8000
add_int_lvar_to_int_lvar 117@ += TIMERA
do_fade 500 {direction} Fade.In
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_2964
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @LA1FIN2_2964
118@ = get_driver_of_car 40@
if 
  not is_int_lvar_equal_to_int_var 118@ == $scplayer
goto_if_false @LA1FIN2_2946
if 
  not is_char_dead 118@
goto_if_false @LA1FIN2_2946
delete_char 118@

:LA1FIN2_2946
warp_char_into_car $scplayer {vehicle} 40@
mark_car_as_no_longer_needed 40@
mark_model_as_no_longer_needed 401

:LA1FIN2_2964
task_leave_any_car $scplayer
set_camera_behind_player 
restore_camera_jumpcut 
100@ = 4
101@ = 0
switch_emergency_services False
return 

:LA1FIN2_2993
gosub @LA1FIN2_13798
gosub @LA1FIN2_15323
if 
  119@ == 0
goto_if_false @LA1FIN2_3113
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  $player_y > -1800.0
goto_if_false @LA1FIN2_3113
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_3113
437@ = 10
438@ = 2
119@ = 1
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 6000

:LA1FIN2_3113
if 
  119@ == 1
goto_if_false @LA1FIN2_3187
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_3187
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @LA1FIN2_3187
437@ = 12
438@ = 5
119@ = 2

:LA1FIN2_3187
if and
  119@ > 0
  3 > 119@
goto_if_false @LA1FIN2_3256
if 
  not is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_3256
494@ = 0
437@ = 0
438@ = 0
119@ = 3

:LA1FIN2_3256
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 117@
goto_if_false @LA1FIN2_3440
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3332
if 
  84@ == 1
goto_if_false @LA1FIN2_3324
set_char_health 238@ {health} $l1f2_sweet_health
84@ = 0

:LA1FIN2_3324
$l1f2_sweet_health = get_char_health 238@

:LA1FIN2_3332
117@ = generate_random_int_in_range 4000 {max} 8000
add_int_lvar_to_int_lvar 117@ += TIMERA
121@ = generate_random_int_in_range 4 {max} 8
sub_int_lvar_from_int_var $l1f2_sweet_health -= 121@
if 
  0 >= $l1f2_sweet_health
goto_if_false @LA1FIN2_3416
$l1f2_sweet_health = 0
print 'LA1_16' {time} 4000 {flag} 1
34@ = 1

:LA1FIN2_3416
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3440
set_char_health 238@ {health} $l1f2_sweet_health

:LA1FIN2_3440
if 
  101@ == 0
goto_if_false @LA1FIN2_3664
if 
  255@ == 2
goto_if_false @LA1FIN2_3664
if 
  locate_char_any_means_3d $scplayer {x} 1648.714 {y} -1050.094 {z} 22.9141 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @LA1FIN2_3577
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3570
set_char_proofs 238@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:LA1FIN2_3570
101@ = 1

:LA1FIN2_3577
if 
  99@ == 6
goto_if_false @LA1FIN2_3664
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_3641
set_char_proofs 238@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:LA1FIN2_3641
101@ = 1
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000

:LA1FIN2_3664
if 
  101@ == 1
goto_if_false @LA1FIN2_3727
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_3727
remove_blip 50@
set_player_control $player1 {state} False
do_fade 800 {direction} Fade.Out
101@ = 2

:LA1FIN2_3727
if 
  101@ == 2
goto_if_false @LA1FIN2_3929
if 
  not get_fading_status 
goto_if_false @LA1FIN2_3929
100@ = 5
101@ = 0
set_lvar_int_to_lvar_int 481@ = 238@
286@ = 1
310@ = 9
290@ = 2440
291@ = 5629
292@ = 7974
293@ = 10516
294@ = 13463
295@ = 16047
296@ = 19236
297@ = 21747
298@ = 24483
300@ = 1
301@ = 2
302@ = 3
303@ = 4
304@ = 5
305@ = 6
306@ = 7
307@ = 8
308@ = 9

:LA1FIN2_3929
return 

:LA1FIN2_3931
gosub @LA1FIN2_15323
if 
  101@ > 2
goto_if_false @LA1FIN2_4010
if 
  not get_fading_status 
goto_if_false @LA1FIN2_4010
if 
  is_skip_cutscene_button_pressed 
goto_if_false @LA1FIN2_4010
gosub @LA1FIN2_11415
101@ = 10
102@ = 0
436@ = 5

:LA1FIN2_4010
if 
  101@ == 0
goto_if_false @LA1FIN2_5066
101@ = 1
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1646.703 {y} -1046.744 {z} 25.6308 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1646.621 {y} -1047.7111 {z} 25.3892 {switchStyle} SwitchType.JumpCut
request_animation "SWEET"
set_near_clip 0.1
if 
  not is_car_dead 235@
goto_if_false @LA1FIN2_4214
if 
  locate_car_3d 235@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4214
set_car_coordinates 235@ {x} 1649.5551 {y} -1055.767 {z} 22.8984
set_car_heading 235@ {heading} 329.5791
freeze_car_position 235@ {state} True

:LA1FIN2_4214
if 
  not is_car_dead 236@
goto_if_false @LA1FIN2_4315
if 
  locate_car_3d 236@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4315
set_car_coordinates 236@ {x} 1644.42 {y} -1057.843 {z} 22.9062
set_car_heading 236@ {heading} 227.8
freeze_car_position 236@ {state} True

:LA1FIN2_4315
if 
  not is_car_dead 237@
goto_if_false @LA1FIN2_4416
if 
  locate_car_3d 237@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4416
set_car_coordinates 237@ {x} 1643.845 {y} -1051.736 {z} 22.9219
set_car_heading 237@ {heading} 149.9008
freeze_car_position 237@ {state} True

:LA1FIN2_4416
if 
  not is_car_dead 233@
goto_if_false @LA1FIN2_4510
if 
  locate_car_3d 233@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4510
set_car_coordinates 233@ {x} 1640.603 {y} -1071.537 {z} 22.9141
set_car_heading 233@ {heading} 61.7966

:LA1FIN2_4510
if 
  not is_car_dead 234@
goto_if_false @LA1FIN2_4604
if 
  locate_car_3d 234@ {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_4604
set_car_coordinates 234@ {x} 1660.943 {y} -1059.201 {z} 22.9141
set_car_heading 234@ {heading} 148.6633

:LA1FIN2_4604
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_4628
set_char_decision_maker 238@ {handleOrTemplate} 103@

:LA1FIN2_4628
if 
  not is_char_dead 239@
goto_if_false @LA1FIN2_4703
set_char_decision_maker 239@ {handleOrTemplate} 231@
set_char_coordinates 239@ {x} 1646.283 {y} -1057.209 {z} 22.8984
set_char_heading 239@ {heading} 147.187
set_char_kinda_stay_in_same_place 239@ {state} False
set_char_stay_in_same_place 239@ {state} True
task_toggle_duck 239@ {state} True

:LA1FIN2_4703
if 
  not is_char_dead 240@
goto_if_false @LA1FIN2_4778
set_char_decision_maker 240@ {handleOrTemplate} 231@
set_char_coordinates 240@ {x} 1644.1021 {y} -1055.319 {z} 22.9062
set_char_heading 240@ {heading} 117.4901
set_char_kinda_stay_in_same_place 240@ {state} False
set_char_stay_in_same_place 240@ {state} True
task_toggle_duck 240@ {state} True

:LA1FIN2_4778
if 
  not is_char_dead 241@
goto_if_false @LA1FIN2_4846
set_char_decision_maker 241@ {handleOrTemplate} 231@
set_char_coordinates 241@ {x} 1646.229 {y} -1051.182 {z} 23.9257
set_char_heading 241@ {heading} 90.0187
set_char_kinda_stay_in_same_place 241@ {state} False
set_char_stay_in_same_place 241@ {state} True

:LA1FIN2_4846
if 
  not is_char_dead 243@
goto_if_false @LA1FIN2_4890
set_char_coordinates 243@ {x} 1622.276 {y} -1044.679 {z} 22.8984
task_turn_char_to_face_char 243@ {target} $scplayer

:LA1FIN2_4890
if 
  not is_char_dead 244@
goto_if_false @LA1FIN2_4934
set_char_coordinates 244@ {x} 1631.5229 {y} -1060.417 {z} 23.011
task_turn_char_to_face_char 244@ {target} $scplayer

:LA1FIN2_4934
if 
  not is_char_dead 245@
goto_if_false @LA1FIN2_4978
set_char_coordinates 245@ {x} 1638.76 {y} -1072.36 {z} 22.8984
task_turn_char_to_face_char 245@ {target} $scplayer

:LA1FIN2_4978
if 
  not is_char_dead 246@
goto_if_false @LA1FIN2_5022
set_char_coordinates 246@ {x} 1649.349 {y} -1077.868 {z} 22.9062
task_turn_char_to_face_char 246@ {target} $scplayer

:LA1FIN2_5022
if 
  not is_char_dead 247@
goto_if_false @LA1FIN2_5066
set_char_coordinates 247@ {x} 1663.619 {y} -1058.4189 {z} 22.8984
task_turn_char_to_face_char 247@ {target} $scplayer

:LA1FIN2_5066
if 
  101@ == 1
goto_if_false @LA1FIN2_5118
if 
  has_animation_loaded "SWEET"
goto_if_false @LA1FIN2_5118
do_fade 1000 {direction} Fade.In
101@ = 2

:LA1FIN2_5118
if 
  101@ == 2
goto_if_false @LA1FIN2_5456
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_5179
warp_char_from_car_to_coord $scplayer {x} 1648.0341 {y} -1053.9561 {z} 22.9
goto @LA1FIN2_5199

:LA1FIN2_5179
set_char_coordinates $scplayer {x} 1648.0341 {y} -1053.9561 {z} 22.9

:LA1FIN2_5199
set_char_heading $scplayer {heading} 150.0
set_char_collision $scplayer {state} False
87@ = get_current_char_weapon $scplayer
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_5341
set_char_coordinates 238@ {x} 1647.71 {y} -1054.517 {z} 22.9
set_char_heading 238@ {heading} -30.0
remove_all_char_weapons 238@
set_current_char_weapon 238@ {weaponType} WeaponType.Unarmed
set_char_collision 238@ {state} False
clear_char_tasks_immediately 238@
task_play_anim_non_interruptable 238@ {animationName} "LAFIN_SWEET" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2

:LA1FIN2_5341
task_play_anim_non_interruptable $scplayer {animationName} "LAFIN_PLAYER" {animationFile} "SWEET" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
set_fixed_camera_position 1647.577 {y} -1048.104 {z} 25.4666 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1647.281 {y} -1048.998 {z} 25.1312 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2500
101@ = 4

:LA1FIN2_5456
if 
  101@ == 4
goto_if_false @LA1FIN2_5590
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5590
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_5516
set_char_bleeding 238@ {state} True

:LA1FIN2_5516
set_fixed_camera_position 1649.2 {y} -1053.592 {z} 23.6475 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1648.2791 {y} -1053.97 {z} 23.7426 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 3700
101@ = 5

:LA1FIN2_5590
if 
  101@ == 5
goto_if_false @LA1FIN2_5650
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5650
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 7800
101@ = 6

:LA1FIN2_5650
if 
  101@ == 6
goto_if_false @LA1FIN2_5710
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5710
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 5000
101@ = 7

:LA1FIN2_5710
if 
  101@ == 7
goto_if_false @LA1FIN2_5770
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5770
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000
101@ = 8

:LA1FIN2_5770
if 
  101@ == 8
goto_if_false @LA1FIN2_5795
gosub @LA1FIN2_11415

:LA1FIN2_5795
if 
  101@ == 9
goto_if_false @LA1FIN2_5924
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_5924
set_fixed_camera_position 1651.996 {y} -1051.222 {z} 26.061 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1651.089 {y} -1051.5341 {z} 25.778 {switchStyle} SwitchType.JumpCut
set_current_char_weapon $scplayer {weaponType} 87@
set_char_heading $scplayer {heading} 90.0
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6500
101@ = 10

:LA1FIN2_5924
if 
  101@ == 10
goto_if_false @LA1FIN2_6193
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_6193
set_current_char_weapon $scplayer {weaponType} 87@
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
clear_char_tasks_immediately $scplayer
clear_onscreen_counter $l1f2_sweet_health
if 
  not is_char_dead 238@
goto_if_false @LA1FIN2_6092
task_play_anim_non_interruptable 238@ {animationName} "SWEET_INJUREDLOOP" {animationFile} "SWEET" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
set_char_collision 238@ {state} True
freeze_char_position 238@ {state} True

:LA1FIN2_6092
if 
  not is_car_dead 235@
goto_if_false @LA1FIN2_6115
freeze_car_position 235@ {state} False

:LA1FIN2_6115
if 
  not is_car_dead 236@
goto_if_false @LA1FIN2_6138
freeze_car_position 236@ {state} False

:LA1FIN2_6138
if 
  not is_car_dead 237@
goto_if_false @LA1FIN2_6161
freeze_car_position 237@ {state} False

:LA1FIN2_6161
100@ = 6
101@ = 0
clear_prints 
print 'LA1_31' {time} 5000 {flag} 1

:LA1FIN2_6193
return 

:LA1FIN2_6195
gosub @LA1FIN2_13798
gosub @LA1FIN2_15323
if 
  101@ == 0
goto_if_false @LA1FIN2_6257
if 
  99@ == 4
goto_if_false @LA1FIN2_6257
request_model 413
101@ = 1

:LA1FIN2_6257
if 
  101@ == 1
goto_if_false @LA1FIN2_6737
if 
  has_model_loaded 413
goto_if_false @LA1FIN2_6737
46@ = create_car 413 {x} 1553.697 {y} -1046.83 {z} 22.7992
clear_prints 
print 'LA1_36' {time} 5000 {flag} 1
269@ = 0

:LA1FIN2_6339
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_6373
269@ += 1
goto @LA1FIN2_6339

:LA1FIN2_6373
create_char_inside_car 46@ {pedType} PedType.Mission2 {modelId} 102 {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 243@(269@,6i) {state} True
set_car_heading 46@ {heading} 270.0
105@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 46@ {x} 1614.755 {y} -1050.441 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 46@ {x} 1630.5341 {y} -1067.925 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 105@
perform_sequence_task 243@(269@,6i) {sequence} 105@
clear_sequence_task 105@
set_car_forward_speed 46@ {forwardSpeed} 20.0
269@ += 1

:LA1FIN2_6547
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_6581
269@ += 1
goto @LA1FIN2_6547

:LA1FIN2_6581
create_char_as_passenger 46@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.BikeRear {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_6644
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_6678
269@ += 1
goto @LA1FIN2_6644

:LA1FIN2_6678
create_char_as_passenger 46@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.RearLeft {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15222
101@ = 2
99@ -= 3

:LA1FIN2_6737
if 
  101@ == 2
goto_if_false @LA1FIN2_7627
if 
  97@ == 0
goto_if_false @LA1FIN2_6842
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_6842
81@ = get_car_health 46@
if 
  980 > 81@
goto_if_false @LA1FIN2_6842
if 
  has_car_been_damaged_by_char 46@ {handle} $scplayer
goto_if_false @LA1FIN2_6842
97@ = 1

:LA1FIN2_6842
if 
  97@ == 1
goto_if_false @LA1FIN2_7045
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7045
if and
  not is_car_dead 46@
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7045
270@, 271@, 272@ = get_car_coordinates 46@
276@ = get_car_heading 46@
set_lvar_float_to_lvar_float 277@ = 276@
277@ -= 20.0
276@ -= 90.0
111@ = cos 276@
112@ = sin 276@
111@ *= 20.0
112@ *= 20.0
sub_float_lvar_from_float_lvar 270@ -= 112@
add_float_lvar_to_float_lvar 271@ += 111@
task_car_drive_to_coord 243@(37@,6i) {vehicle} 46@ {x} 270@ {y} 271@ {z} 272@ {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
97@ = 2

:LA1FIN2_7045
if 
  97@ == 2
goto_if_false @LA1FIN2_7129
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7129
276@ = get_car_heading 46@
if 
  is_float_lvar_greater_than_float_lvar 277@ > 276@
goto_if_false @LA1FIN2_7129
97@ = 3
set_lvar_int_to_lvar_int 95@ = TIMERA
95@ += 800

:LA1FIN2_7129
if 
  97@ == 3
goto_if_false @LA1FIN2_7225
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7183
add_to_car_rotation_velocity 46@ {x} 0.0 {y} -0.35 {z} 0.2

:LA1FIN2_7183
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7225
97@ = 4
set_lvar_int_to_lvar_int 95@ = TIMERA
95@ += 1000

:LA1FIN2_7225
if 
  97@ == 4
goto_if_false @LA1FIN2_7307
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 95@
goto_if_false @LA1FIN2_7307
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7307
clear_char_tasks 243@(37@,6i)
task_leave_any_car 243@(37@,6i)
97@ = 5

:LA1FIN2_7307
if 
  94@ == 0
goto_if_false @LA1FIN2_7377
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7377
276@ = get_car_speed 46@
if 
  0.5 > 276@
goto_if_false @LA1FIN2_7377
94@ = 1

:LA1FIN2_7377
if 
  94@ == 1
goto_if_false @LA1FIN2_7604
if 
  not is_car_dead 46@
goto_if_false @LA1FIN2_7604
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7473
set_char_stay_in_same_place 243@(37@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} False
task_leave_any_car 243@(37@,6i)
75@(37@,6i) = 0

:LA1FIN2_7473
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_7535
set_char_stay_in_same_place 243@(38@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} False
task_leave_any_car 243@(38@,6i)
75@(38@,6i) = 0

:LA1FIN2_7535
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_7597
set_char_stay_in_same_place 243@(39@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} False
task_leave_any_car 243@(39@,6i)
75@(39@,6i) = 0

:LA1FIN2_7597
101@ = 3

:LA1FIN2_7604
if 
  is_car_dead 46@
goto_if_false @LA1FIN2_7627
101@ = 3

:LA1FIN2_7627
if 
  101@ == 3
goto_if_false @LA1FIN2_7987
if 
  75@(37@,6i) == 1
goto_if_false @LA1FIN2_7742
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_7742
85@ = get_script_task_status 243@(37@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7742
75@(37@,6i) = 0
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} True

:LA1FIN2_7742
if 
  75@(38@,6i) == 1
goto_if_false @LA1FIN2_7839
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_7839
85@ = get_script_task_status 243@(38@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7839
75@(38@,6i) = 0
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} True

:LA1FIN2_7839
if 
  75@(39@,6i) == 1
goto_if_false @LA1FIN2_7936
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_7936
85@ = get_script_task_status 243@(39@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_7936
75@(39@,6i) = 0
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} True

:LA1FIN2_7936
if and
  75@(38@,6i) == 0
  75@(39@,6i) == 0
  75@(37@,6i) == 0
goto_if_false @LA1FIN2_7987
101@ = 4

:LA1FIN2_7987
if 
  101@ == 4
goto_if_false @LA1FIN2_8476
if 
  99@ >= 4
goto_if_false @LA1FIN2_8476
47@ = create_car 413 {x} 1525.366 {y} -1022.267 {z} 22.9105
clear_prints 
print 'LA1_37' {time} 5000 {flag} 1
269@ = 0

:LA1FIN2_8071
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_8105
269@ += 1
goto @LA1FIN2_8071

:LA1FIN2_8105
create_char_inside_car 47@ {pedType} PedType.Mission2 {modelId} 102 {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15222
set_car_heading 47@ {heading} 270.0
105@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 47@ {x} 1637.666 {y} -1021.644 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 47@ {x} 1651.127 {y} -1028.5229 {z} 22.9141 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 105@
perform_sequence_task 243@(269@,6i) {sequence} 105@
clear_sequence_task 105@
set_car_forward_speed 47@ {forwardSpeed} 20.0
269@ += 1

:LA1FIN2_8268
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_8302
269@ += 1
goto @LA1FIN2_8268

:LA1FIN2_8302
create_char_as_passenger 47@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.BikeRear {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_8365
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_8399
269@ += 1
goto @LA1FIN2_8365

:LA1FIN2_8399
create_char_as_passenger 47@ {pedType} PedType.Mission2 {modelId} 102 {seat} SeatId.RearLeft {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 243@(269@,6i) {state} True
94@ = 0
101@ = 5
99@ -= 3

:LA1FIN2_8476
if 
  101@ == 5
goto_if_false @LA1FIN2_8871
if 
  94@ == 0
goto_if_false @LA1FIN2_8564
if 
  not is_car_dead 47@
goto_if_false @LA1FIN2_8564
276@ = get_car_speed 47@
if 
  0.5 > 276@
goto_if_false @LA1FIN2_8564
94@ = 1

:LA1FIN2_8564
if 
  94@ == 1
goto_if_false @LA1FIN2_8848
if 
  not is_car_dead 47@
goto_if_false @LA1FIN2_8848
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_8679
task_go_straight_to_coord 243@(37@,6i) {x} 1654.968 {y} -1041.3719 {z} 22.8984 {speed} MoveState.Run {time} -2
set_char_stay_in_same_place 243@(37@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} False
75@(37@,6i) = 1

:LA1FIN2_8679
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_8760
task_go_straight_to_coord 243@(38@,6i) {x} 1650.469 {y} -1041.517 {z} 22.8984 {speed} MoveState.Run {time} -2
set_char_stay_in_same_place 243@(38@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} False
75@(38@,6i) = 1

:LA1FIN2_8760
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_8841
task_go_straight_to_coord 243@(39@,6i) {x} 1640.806 {y} -1041.5551 {z} 22.8984 {speed} MoveState.Run {time} -2
set_char_stay_in_same_place 243@(39@,6i) {state} False
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} False
75@(39@,6i) = 1

:LA1FIN2_8841
101@ = 6

:LA1FIN2_8848
if 
  is_car_dead 47@
goto_if_false @LA1FIN2_8871
101@ = 6

:LA1FIN2_8871
if 
  101@ == 6
goto_if_false @LA1FIN2_9231
if 
  75@(37@,6i) == 1
goto_if_false @LA1FIN2_8986
if 
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_8986
85@ = get_script_task_status 243@(37@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_8986
75@(37@,6i) = 0
set_char_kinda_stay_in_same_place 243@(37@,6i) {state} True

:LA1FIN2_8986
if 
  75@(38@,6i) == 1
goto_if_false @LA1FIN2_9083
if 
  not is_char_dead 243@(38@,6i)
goto_if_false @LA1FIN2_9083
85@ = get_script_task_status 243@(38@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_9083
75@(38@,6i) = 0
set_char_kinda_stay_in_same_place 243@(38@,6i) {state} True

:LA1FIN2_9083
if 
  75@(39@,6i) == 1
goto_if_false @LA1FIN2_9180
if 
  not is_char_dead 243@(39@,6i)
goto_if_false @LA1FIN2_9180
85@ = get_script_task_status 243@(39@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 85@ == 7
goto_if_false @LA1FIN2_9180
75@(39@,6i) = 0
set_char_kinda_stay_in_same_place 243@(39@,6i) {state} True

:LA1FIN2_9180
if and
  75@(38@,6i) == 0
  75@(39@,6i) == 0
  75@(37@,6i) == 0
goto_if_false @LA1FIN2_9231
101@ = 8

:LA1FIN2_9231
if 
  101@ == 8
goto_if_false @LA1FIN2_9339
if 
  99@ >= 3
goto_if_false @LA1FIN2_9339
clear_prints 
print 'LA1_38' {time} 5000 {flag} 1
gosub @LA1FIN2_12014
99@ -= 3
101@ = 9
75@(38@,6i) = 1
75@(39@,6i) = 1
75@(37@,6i) = 1

:LA1FIN2_9339
if 
  101@ == 9
goto_if_false @LA1FIN2_9478
gosub @LA1FIN2_13122
269@ = 0
99@ = 0

:LA1FIN2_9378
if 
  6 > 269@
goto_if_false @LA1FIN2_9437
if 
  is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_9423
99@ += 1

:LA1FIN2_9423
269@ += 1
goto @LA1FIN2_9378

:LA1FIN2_9437
if 
  99@ >= 6
goto_if_false @LA1FIN2_9478
101@ = 10
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 1500

:LA1FIN2_9478
if 
  101@ == 10
goto_if_false @LA1FIN2_9531
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_9531
101@ = 0
100@ = 7
clear_help 

:LA1FIN2_9531
return 

:LA1FIN2_9533
267@ = 0

:LA1FIN2_9540
if 
  3 > 267@
goto_if_false @LA1FIN2_9755
if 
  128@(267@,3i) == 1
goto_if_false @LA1FIN2_9741
if 
  not is_car_dead 122@(267@,3i)
goto_if_false @LA1FIN2_9741
if 
  not is_playback_going_on_for_car 122@(267@,3i)
goto_if_false @LA1FIN2_9741
if 
  not is_char_dead 125@(267@,3i)
goto_if_false @LA1FIN2_9741
131@ = open_sequence_task 
task_leave_any_car -1
task_aim_gun_at_coord -1 {x} 1646.332 {y} -1053.7209 {z} 23.385 {time} 10000
close_sequence_task 131@
perform_sequence_task 125@(267@,3i) {sequence} 131@
clear_sequence_task 131@
128@(267@,3i) = 2
132@ = get_script_task_status $scplayer {taskId} 1476
if 
  is_int_lvar_equal_to_constant 132@ == 7
goto_if_false @LA1FIN2_9741
task_hands_up $scplayer {time} 15000

:LA1FIN2_9741
267@ += 1
goto @LA1FIN2_9540

:LA1FIN2_9755
if 
  101@ == 0
goto_if_false @LA1FIN2_9874
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
do_fade 500 {direction} Fade.Out
request_car_recording 162
request_car_recording 163
request_car_recording 650
request_model 596
request_model 280
request_model 346
request_animation "POLICE"
101@ = 1
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2000
35@ = 0

:LA1FIN2_9874
if 
  101@ == 1
goto_if_false @LA1FIN2_9996
if 
  not get_fading_status 
goto_if_false @LA1FIN2_9996
if and
  has_car_recording_been_loaded 162
  has_car_recording_been_loaded 163
  has_car_recording_been_loaded 650
goto_if_false @LA1FIN2_9996
if and
  has_model_loaded 596
  has_model_loaded 280
  has_model_loaded 346
  has_animation_loaded "POLICE"
goto_if_false @LA1FIN2_9996
load_scene_in_direction 1584.291 {y} -1143.877 {z} 23.8226 {heading} 180.0
101@ = 2

:LA1FIN2_9996
if 
  101@ == 2
goto_if_false @LA1FIN2_10040
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_10040
101@ = 3

:LA1FIN2_10040
if 
  101@ == 3
goto_if_false @LA1FIN2_10369
122@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
123@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
124@ = create_car 596 {x} 0.0 {y} 0.0 {z} 0.0
125@ = create_char_inside_car 122@ {pedType} PedType.CivMale {modelId} 280
126@ = create_char_inside_car 123@ {pedType} PedType.CivMale {modelId} 280
127@ = create_char_inside_car 124@ {pedType} PedType.CivMale {modelId} 280
give_weapon_to_char 125@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 126@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 127@ {weaponType} WeaponType.Pistol {ammo} 99999
switch_car_siren 122@ {state} True
switch_car_siren 123@ {state} True
switch_car_siren 124@ {state} True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1584.291 {fromY} -1143.877 {fromZ} 23.8226 {toX} 1584.291 {toY} -1143.877 {toZ} 23.8226 {time} 3000 {ease} True
camera_set_vector_track 1583.9041 {fromY} -1144.799 {fromZ} 23.802 {toX} 1585.228 {toY} -1144.223 {toZ} 23.802 {time} 3000 {ease} True
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 1647.222 {y} -1053.363 {z} 22.9815
start_playback_recorded_car 122@ {path} 162
101@ = 4
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 300

:LA1FIN2_10369
if 
  101@ == 4
goto_if_false @LA1FIN2_10549
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_10549
do_fade 600 {direction} Fade.In
set_char_area_visible $scplayer {areaId} 0
if and
  not is_car_dead 123@
  not is_car_dead 124@
goto_if_false @LA1FIN2_10526
if and
  has_car_recording_been_loaded 162
  has_car_recording_been_loaded 163
  has_car_recording_been_loaded 650
goto_if_false @LA1FIN2_10511
start_playback_recorded_car 123@ {path} 163
start_playback_recorded_car 124@ {path} 650
128@ = 1
129@ = 1
130@ = 1
goto @LA1FIN2_10526

:LA1FIN2_10511
request_car_recording 162
request_car_recording 163
request_car_recording 650

:LA1FIN2_10526
101@ = 5
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 2700

:LA1FIN2_10549
if 
  101@ == 5
goto_if_false @LA1FIN2_11065
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11065
133@ = create_char PedType.Mission3 {modelId} 102 {x} 1648.907 {y} -1063.17 {z} 22.99
134@ = create_char PedType.Mission3 {modelId} 102 {x} 1639.755 {y} -1067.994 {z} 22.9478
135@ = create_char PedType.Mission3 {modelId} 102 {x} 1632.4449 {y} -1058.078 {z} 23.0987
136@ = create_char PedType.Mission3 {modelId} 102 {x} 1640.3 {y} -1069.299 {z} 22.9448
task_flee_point 133@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
task_flee_point 134@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
task_flee_point 135@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
task_flee_point 136@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000
if 
  not is_char_dead 239@
goto_if_false @LA1FIN2_10877
clear_char_tasks_immediately 239@
set_char_stay_in_same_place 239@ {state} False
set_char_kinda_stay_in_same_place 239@ {state} False
set_char_coordinates 239@ {x} 1649.465 {y} -1059.308 {z} 22.8984
task_flee_point 239@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000

:LA1FIN2_10877
if 
  not is_char_dead 240@
goto_if_false @LA1FIN2_10960
clear_char_tasks_immediately 240@
set_char_stay_in_same_place 240@ {state} False
set_char_kinda_stay_in_same_place 240@ {state} False
set_char_coordinates 240@ {x} 1642.0811 {y} -1057.882 {z} 22.9062
task_flee_point 240@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000

:LA1FIN2_10960
if 
  not is_char_dead 241@
goto_if_false @LA1FIN2_11043
clear_char_tasks_immediately 241@
set_char_stay_in_same_place 241@ {state} False
set_char_kinda_stay_in_same_place 241@ {state} False
set_char_coordinates 241@ {x} 1640.84 {y} -1051.631 {z} 22.9062
task_flee_point 241@ {x} 1646.332 {y} -1053.7209 {z} 23.385 {radius} 100.0 {time} 15000

:LA1FIN2_11043
101@ = 6
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 100

:LA1FIN2_11065
if 
  101@ == 6
goto_if_false @LA1FIN2_11178
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11178
camera_reset_new_scriptables 
set_fixed_camera_position 1648.645 {y} -1049.3571 {z} 26.0388 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1648.533 {y} -1050.337 {z} 25.8716 {switchStyle} SwitchType.JumpCut
101@ = 8
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6500

:LA1FIN2_11178
if 
  101@ == 8
goto_if_false @LA1FIN2_11322
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11322
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1648.645 {fromY} -1049.3571 {fromZ} 26.0388 {toX} 1662.257 {toY} -1029.2061 {toZ} 46.3953 {time} 7500 {ease} True
camera_set_vector_track 1648.533 {fromY} -1050.337 {fromZ} 25.8716 {toX} 1661.88 {toY} -1029.896 {toZ} 45.7777 {time} 7500 {ease} True
set_lvar_int_to_lvar_int 102@ = TIMERA
102@ += 6000
101@ = 9

:LA1FIN2_11322
if 
  101@ == 9
goto_if_false @LA1FIN2_11373
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 102@
goto_if_false @LA1FIN2_11373
do_fade 1500 {direction} Fade.Out
101@ = 10

:LA1FIN2_11373
if 
  101@ == 10
goto_if_false @LA1FIN2_11413
if 
  not get_fading_status 
goto_if_false @LA1FIN2_11413
100@ = 8
camera_reset_new_scriptables 

:LA1FIN2_11413
return 

:LA1FIN2_11415
delete_char 243@
243@ = create_char PedType.Mission2 {modelId} 102 {x} 1613.231 {y} -1053.684 {z} 22.8984
set_char_heading 243@ {heading} 271.724
set_lvar_int_to_lvar_int 86@ = 243@
269@ = 0
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 243@ {state} True
task_toggle_duck 243@ {state} True
task_go_straight_to_coord 243@ {x} 1622.541 {y} -1045.0081 {z} 22.8984 {speed} MoveState.Run {time} -2
delete_char 244@
244@ = create_char PedType.Mission2 {modelId} 102 {x} 1612.707 {y} -1054.2 {z} 22.8984
set_char_heading 244@ {heading} 285.7294
set_lvar_int_to_lvar_int 86@ = 244@
269@ = 1
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 244@ {state} True
task_toggle_duck 244@ {state} True
task_go_straight_to_coord 244@ {x} 1631.4709 {y} -1059.379 {z} 22.9623 {speed} MoveState.Run {time} -2
delete_char 245@
245@ = create_char PedType.Mission2 {modelId} 102 {x} 1617.219 {y} -1057.973 {z} 22.8984
set_char_heading 245@ {heading} 265.7294
set_lvar_int_to_lvar_int 86@ = 245@
269@ = 2
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 245@ {state} True
task_toggle_duck 245@ {state} True
task_go_straight_to_coord 245@ {x} 1633.035 {y} -1064.7159 {z} 22.9162 {speed} MoveState.Run {time} -2
if 
  is_char_dead 246@
goto_if_false @LA1FIN2_11822
246@ = create_char PedType.Mission2 {modelId} 102 {x} 1670.707 {y} -1082.179 {z} 22.9062
set_char_heading 246@ {heading} 25.7294
set_lvar_int_to_lvar_int 86@ = 246@
269@ = 3
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 246@ {state} True
task_toggle_duck 246@ {state} True
task_go_straight_to_coord 246@ {x} 1659.903 {y} -1067.094 {z} 23.0077 {speed} MoveState.Run {time} -2

:LA1FIN2_11822
if 
  is_char_dead 247@
goto_if_false @LA1FIN2_11932
247@ = create_char PedType.Mission2 {modelId} 102 {x} 1665.267 {y} -1090.467 {z} 22.9062
set_char_heading 247@ {heading} 25.7294
set_lvar_int_to_lvar_int 86@ = 247@
269@ = 4
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 247@ {state} True
task_toggle_duck 247@ {state} True
task_go_straight_to_coord 247@ {x} 1649.499 {y} -1077.795 {z} 22.9062 {speed} MoveState.Run {time} -2

:LA1FIN2_11932
101@ = 9
269@ = 0
99@ = 0

:LA1FIN2_11953
if 
  6 > 269@
goto_if_false @LA1FIN2_12012
if 
  is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_11998
99@ += 1

:LA1FIN2_11998
269@ += 1
goto @LA1FIN2_11953

:LA1FIN2_12012
return 

:LA1FIN2_12014
182@ = 1609.194
183@ = 1619.722
184@ = 1633.494
185@ = 1656.4399
186@ = 1665.51
187@ = 1667.756
188@ = 1665.79
189@ = 1654.9771
190@ = 1651.2061
191@ = 1640.057
192@ = 1623.256
193@ = 1662.567
194@ = 1643.7061
195@ = 1627.394
196@ = 1627.083
197@ = 1634.311
198@ = 1650.963
199@ = 1664.3051
200@ = 1670.2729
201@ = 1625.144
202@ = 1639.764
203@ = 1657.49
204@ = 1672.007
205@ = -1047.464
206@ = -1036.524
207@ = -1031.437
208@ = -1034.01
209@ = -1043.593
210@ = -1045.496
211@ = -1049.248
212@ = -1058.438
213@ = -1068.1689
214@ = -1079.37
215@ = -1071.975
216@ = -1048.286
217@ = -1046.566
218@ = -1052.399
219@ = -1051.446
220@ = -1057.1801
221@ = -1067.062
222@ = -1071.1169
223@ = -1061.623
224@ = -1063.712
225@ = -1066.03
226@ = -1071.223
227@ = -1063.609
137@ = 0
147@ = 5
138@ = 6
148@ = 10
139@ = 11
149@ = 13
140@ = 14
150@ = 18
141@ = 19
151@ = 22
142@ = 5
152@ = 0
143@ = 10
153@ = 6
144@ = 13
154@ = 11
145@ = 18
155@ = 14
146@ = 22
156@ = 19
157@ = 1
167@ = 9
158@ = 0
168@ = 7
159@ = 6
169@ = 4
160@ = 5
170@ = 2
161@ = 2
171@ = 5
162@ = 6
172@ = 3
163@ = 8
173@ = 5
164@ = 5
174@ = 9
165@ = 0
175@ = 6
166@ = 7
176@ = 0
48@ = create_car 405 {x} 1582.131 {y} -1043.6689 {z} 22.9141
set_car_heading 48@ {heading} 270.0
set_car_heavy 48@ {state} True
set_car_forward_speed 48@ {forwardSpeed} 20.0
269@ = 0

:LA1FIN2_12811
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_12845
269@ += 1
goto @LA1FIN2_12811

:LA1FIN2_12845
create_char_inside_car 48@ {pedType} PedType.Mission3 {modelId} 102 {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 37@ = 269@
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_12906
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_12940
269@ += 1
goto @LA1FIN2_12906

:LA1FIN2_12940
create_char_as_passenger 48@ {pedType} PedType.Mission3 {modelId} 102 {seat} SeatId.BikeRear {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 38@ = 269@
gosub @LA1FIN2_15222
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ += 1

:LA1FIN2_13003
if 
  not is_char_dead 243@(269@,6i)
goto_if_false @LA1FIN2_13037
269@ += 1
goto @LA1FIN2_13003

:LA1FIN2_13037
create_char_as_passenger 48@ {pedType} PedType.Mission3 {modelId} 102 {seat} SeatId.RearLeft {var_handle} 243@(269@,6i)
set_lvar_int_to_lvar_int 86@ = 243@(269@,6i)
set_lvar_int_to_lvar_int 39@ = 269@
gosub @LA1FIN2_15222
set_char_decision_maker 243@(38@,6i) {handleOrTemplate} 104@
set_char_decision_maker 243@(39@,6i) {handleOrTemplate} 104@
178@ = 1
179@ = 1
return 

:LA1FIN2_13122
if and
  not is_car_dead 48@
  not is_char_dead 243@(37@,6i)
goto_if_false @LA1FIN2_13796
276@ = get_car_speed 48@
if 
  0.5 > 276@
goto_if_false @LA1FIN2_13217
if 
  82@ == 0
goto_if_false @LA1FIN2_13217
82@ = 1
set_lvar_int_to_lvar_int 83@ = TIMERA
83@ += 1500

:LA1FIN2_13217
if 
  82@ == 1
goto_if_false @LA1FIN2_13341
if 
  0.5 > 276@
goto_if_false @LA1FIN2_13334
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 83@
goto_if_false @LA1FIN2_13327
179@ = 2
82@ = 2
task_everyone_leave_car 48@
75@(38@,6i) = 0
75@(39@,6i) = 0
75@(37@,6i) = 0

:LA1FIN2_13327
goto @LA1FIN2_13341

:LA1FIN2_13334
82@ = 0

:LA1FIN2_13341
if 
  179@ == 0
goto_if_false @LA1FIN2_13410
if 
  locate_car_3d 48@ {x} 180@ {y} 181@ {z} 22.0 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @LA1FIN2_13410
179@ = 1

:LA1FIN2_13410
if 
  179@ == 1
goto_if_false @LA1FIN2_13778
177@ = generate_random_int_in_range 0 {max} 2
if 
  177@ == 0
goto_if_false @LA1FIN2_13474
set_lvar_int_to_lvar_int 178@ = 157@(178@,10i)
goto @LA1FIN2_13486

:LA1FIN2_13474
set_lvar_int_to_lvar_int 178@ = 167@(178@,10i)

:LA1FIN2_13486
set_lvar_int_to_lvar_int 85@ = 137@(178@,10i)
flush_route 
228@, 229@, 230@ = get_car_coordinates 48@
if 
  is_int_lvar_greater_than_int_lvar 147@(178@,10i) > 137@(178@,10i)
goto_if_false @LA1FIN2_13630

:LA1FIN2_13541
if 
  is_int_lvar_greater_or_equal_to_int_lvar 147@(178@,10i) >= 85@
goto_if_false @LA1FIN2_13623
extend_route 182@(85@,23f) {y} 205@(85@,23f) {z} 22.0
set_lvar_float_to_lvar_float 228@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 229@ = 205@(85@,23f)
85@ += 1
goto @LA1FIN2_13541

:LA1FIN2_13623
goto @LA1FIN2_13712

:LA1FIN2_13630
if 
  is_int_lvar_greater_or_equal_to_int_lvar 85@ >= 147@(178@,10i)
goto_if_false @LA1FIN2_13712
extend_route 182@(85@,23f) {y} 205@(85@,23f) {z} 22.0
set_lvar_float_to_lvar_float 228@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 229@ = 205@(85@,23f)
85@ -= 1
goto @LA1FIN2_13630

:LA1FIN2_13712
task_drive_point_route_advanced 243@(37@,6i) {vehicle} 48@ {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
179@ = 0
set_lvar_int_to_lvar_int 85@ = 147@(178@,10i)
set_lvar_float_to_lvar_float 180@ = 182@(85@,23f)
set_lvar_float_to_lvar_float 181@ = 205@(85@,23f)

:LA1FIN2_13778
if 
  179@ == 2
goto_if_false @LA1FIN2_13796

:LA1FIN2_13796
return 

:LA1FIN2_13798
if 
  255@ == 0
goto_if_false @LA1FIN2_14178
if 
  locate_char_any_means_3d $scplayer {x} 1650.645 {y} -1059.4351 {z} 25.4852 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 70.0 {drawSphere} False
goto_if_false @LA1FIN2_14178
255@ = 1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
231@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
232@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
clear_char_decision_maker_event_response 231@ {event} Event.ShotFired
clear_char_decision_maker_event_response 231@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 231@ {event} Event.Damage
clear_char_decision_maker_event_response 231@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 231@ {event} Event.SeenPanickedPed
clear_char_decision_maker_event_response 231@ {event} Event.DeadPed
clear_char_decision_maker_event_response 232@ {event} Event.ShotFired
clear_char_decision_maker_event_response 232@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 232@ {event} Event.Damage
clear_char_decision_maker_event_response 232@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 232@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 232@ {event} Event.DeadPed
clear_char_decision_maker_event_response 232@ {event} Event.VehicleDamageWeapon
add_char_decision_maker_event_response 231@ {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 231@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 231@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 75.0 {like} 0.0 {dislike} 75.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 231@ {event} Event.Damage {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 25.0 {like} 0.0 {dislike} 25.0 {inCar} True {onFoot} True
request_model 475
request_model 405
request_model 105
request_model 102
request_model 353
load_special_character 1 {modelName} 'SWEET'

:LA1FIN2_14178
if 
  255@ == 1
goto_if_false @LA1FIN2_15220
if and
  has_model_loaded 475
  has_model_loaded 105
  has_model_loaded 102
  has_model_loaded 353
  has_model_loaded 405
goto_if_false @LA1FIN2_15220
if and
  locate_char_any_means_3d $scplayer {x} 1650.645 {y} -1059.4351 {z} 25.4852 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 70.0 {drawSphere} False
  has_special_character_loaded 1
goto_if_false @LA1FIN2_15220
235@ = create_car 405 {x} 1649.5551 {y} -1055.767 {z} 22.8984
236@ = create_car 405 {x} 1644.42 {y} -1057.843 {z} 22.9062
237@ = create_car 405 {x} 1643.845 {y} -1051.736 {z} 22.9219
233@ = create_car 475 {x} 1640.603 {y} -1071.537 {z} 22.9141
234@ = create_car 475 {x} 1660.943 {y} -1059.201 {z} 22.9141
set_car_heading 235@ {heading} 329.5791
set_car_heading 236@ {heading} 227.8
set_car_heading 237@ {heading} 149.9008
set_car_heading 233@ {heading} 61.7966
set_car_heading 234@ {heading} 148.6633
set_car_strong 235@ {state} True
set_car_strong 236@ {state} True
set_car_strong 237@ {state} True
set_car_strong 233@ {state} True
set_car_strong 234@ {state} True
open_car_door 233@ {door} CarDoor.RightFrontDoor
open_car_door 234@ {door} CarDoor.RightFrontDoor
open_car_door 234@ {door} CarDoor.LeftFrontDoor
238@ = create_char PedType.Mission1 {modelId} 290 {x} 1648.556 {y} -1054.473 {z} 22.8984
239@ = create_char PedType.Mission1 {modelId} 105 {x} 1648.556 {y} -1054.473 {z} 22.8984
240@ = create_char PedType.Mission1 {modelId} 105 {x} 1646.474 {y} -1057.642 {z} 22.8984
241@ = create_char PedType.Mission1 {modelId} 105 {x} 1644.61 {y} -1053.395 {z} 22.8984
243@ = create_char PedType.Mission2 {modelId} 102 {x} 1622.276 {y} -1044.679 {z} 22.8984
set_lvar_int_to_lvar_int 86@ = 243@
269@ = 0
gosub @LA1FIN2_15222
244@ = create_char PedType.Mission2 {modelId} 102 {x} 1631.5229 {y} -1060.417 {z} 23.011
set_lvar_int_to_lvar_int 86@ = 244@
269@ = 1
gosub @LA1FIN2_15222
245@ = create_char PedType.Mission2 {modelId} 102 {x} 1638.76 {y} -1072.36 {z} 22.8984
set_lvar_int_to_lvar_int 86@ = 245@
269@ = 2
gosub @LA1FIN2_15222
246@ = create_char PedType.Mission2 {modelId} 102 {x} 1649.349 {y} -1077.868 {z} 22.9062
set_lvar_int_to_lvar_int 86@ = 246@
269@ = 3
gosub @LA1FIN2_15222
247@ = create_char PedType.Mission2 {modelId} 102 {x} 1663.619 {y} -1058.4189 {z} 22.8984
set_lvar_int_to_lvar_int 86@ = 247@
269@ = 4
gosub @LA1FIN2_15222
set_lvar_int_to_var_int 242@ = $scplayer
set_char_heading 238@ {heading} 216.2367
set_char_heading 239@ {heading} 149.4687
set_char_heading 240@ {heading} 100.9368
set_char_heading 241@ {heading} 270.9368
set_char_accuracy 238@ {accuracy} 40
set_char_accuracy 239@ {accuracy} 40
set_char_accuracy 240@ {accuracy} 40
set_char_accuracy 241@ {accuracy} 40
set_char_never_targetted 238@ {state} True
set_char_never_targetted 239@ {state} True
set_char_never_targetted 240@ {state} True
set_char_never_targetted 241@ {state} True
set_sense_range 238@ {range} 60.0
set_sense_range 239@ {range} 60.0
set_sense_range 240@ {range} 60.0
set_sense_range 241@ {range} 60.0
set_char_kinda_stay_in_same_place 238@ {state} True
set_char_kinda_stay_in_same_place 239@ {state} True
set_char_kinda_stay_in_same_place 240@ {state} True
set_char_kinda_stay_in_same_place 241@ {state} True
set_char_decision_maker 238@ {handleOrTemplate} 231@
set_char_decision_maker 239@ {handleOrTemplate} 231@
set_char_decision_maker 240@ {handleOrTemplate} 231@
set_char_decision_maker 241@ {handleOrTemplate} 231@
set_char_suffers_critical_hits 238@ {state} False
set_char_suffers_critical_hits 239@ {state} False
set_char_suffers_critical_hits 240@ {state} False
set_char_suffers_critical_hits 241@ {state} False
give_weapon_to_char 238@ {weaponType} WeaponType.Mp5 {ammo} 99999
give_weapon_to_char 239@ {weaponType} WeaponType.Mp5 {ammo} 99999
give_weapon_to_char 240@ {weaponType} WeaponType.Mp5 {ammo} 99999
give_weapon_to_char 241@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_health 238@ {health} 100
set_char_health 239@ {health} 100
set_char_health 240@ {health} 100
set_char_health 241@ {health} 100
set_char_max_health 238@ {maxHealth} 100
set_char_max_health 239@ {maxHealth} 100
set_char_max_health 240@ {maxHealth} 100
set_char_max_health 241@ {maxHealth} 100
set_char_only_damaged_by_player 238@ {state} True
269@ = generate_random_int_in_range 0 {max} 5
set_char_only_damaged_by_player 243@(269@,6i) {state} True
269@ = generate_random_int_in_range 0 {max} 5
set_char_only_damaged_by_player 243@(269@,6i) {state} True
255@ = 2

:LA1FIN2_15220
return 

:LA1FIN2_15222
set_char_accuracy 86@ {accuracy} 40
set_char_kinda_stay_in_same_place 86@ {state} True
set_char_decision_maker 86@ {handleOrTemplate} 232@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
249@(269@,6i) = 0
88@(269@,6i) = 0
remove_blip 51@(269@,6i)
if 
  100@ > 3
goto_if_false @LA1FIN2_15321
add_blip_for_char 243@(269@,6i) {var_handle} 51@(269@,6i)

:LA1FIN2_15321
return 

:LA1FIN2_15323
if 
  255@ == 2
goto_if_false @LA1FIN2_16312
266@ += 1
if 
  266@ > 5
goto_if_false @LA1FIN2_15373
266@ = 0

:LA1FIN2_15373
if 
  not is_char_dead 243@(266@,6i)
goto_if_false @LA1FIN2_15867
if 
  75@(266@,6i) <> 1
goto_if_false @LA1FIN2_15860
if 
  not is_char_in_any_car 243@(266@,6i)
goto_if_false @LA1FIN2_15860
269@ = get_script_task_status 243@(266@,6i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_15860
if 
  249@(266@,6i) == 0
goto_if_false @LA1FIN2_15586
if 
  locate_char_any_means_3d 243@(266@,6i) {x} 1646.777 {y} -1054.257 {z} 24.8043 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @LA1FIN2_15586
task_toggle_duck 243@(266@,6i) {state} True
set_char_stay_in_same_place 243@(266@,6i) {state} True
set_char_kinda_stay_in_same_place 243@(266@,6i) {state} False
249@(266@,6i) = 1

:LA1FIN2_15586
$x, $y, $z = get_char_coordinates 243@(266@,6i)
267@ = 0
274@ = 40.0

:LA1FIN2_15621
if 
  5 > 267@
goto_if_false @LA1FIN2_15747
if 
  not is_char_dead 238@(267@,5i)
goto_if_false @LA1FIN2_15733
270@, 271@, 272@ = get_char_coordinates 238@(267@,5i)
273@ = get_distance_between_coords_2d 270@ {fromY} 271@ {toX} $x {toZ} $y
if 
  is_float_lvar_greater_than_float_lvar 274@ > 273@
goto_if_false @LA1FIN2_15733
set_lvar_float_to_lvar_float 274@ = 273@
set_lvar_int_to_lvar_int 268@ = 238@(267@,5i)

:LA1FIN2_15733
267@ += 1
goto @LA1FIN2_15621

:LA1FIN2_15747
if 
  not is_int_lvar_equal_to_int_lvar 268@ == 259@(266@,6i)
goto_if_false @LA1FIN2_15791
clear_char_tasks 243@(266@,6i)
set_lvar_int_to_lvar_int 259@(266@,6i) = 268@

:LA1FIN2_15791
269@ = get_script_task_status 243@(266@,6i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_15860
if 
  not is_char_dead 259@(266@,6i)
goto_if_false @LA1FIN2_15860
task_kill_char_on_foot 243@(266@,6i) {target} 259@(266@,6i)

:LA1FIN2_15860
goto @LA1FIN2_15936

:LA1FIN2_15867
if 
  88@(266@,6i) == 0
goto_if_false @LA1FIN2_15936
mark_char_as_no_longer_needed 243@(266@,6i)
99@ += 1
88@(266@,6i) = 1
75@(266@,6i) = 0
remove_blip 51@(266@,6i)

:LA1FIN2_15936
265@ += 1
if 
  265@ > 3
goto_if_false @LA1FIN2_15968
265@ = 0

:LA1FIN2_15968
if 
  not is_char_dead 238@(265@,5i)
goto_if_false @LA1FIN2_16312
if 
  57@(265@,5i) == 0
goto_if_false @LA1FIN2_16215
if 
  not locate_char_any_means_3d 238@(265@,5i) {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @LA1FIN2_16208
269@ = get_script_task_status 238@(265@,5i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 269@ == 7
goto_if_false @LA1FIN2_16208
set_char_decision_maker 238@(265@,5i) {handleOrTemplate} 103@
276@ = generate_random_float_in_range -1.5 {max} 1.5
$x = 1647.249
add_float_lvar_to_float_var $x += 276@
276@ = generate_random_float_in_range -1.5 {max} 1.5
$y = -1053.4821
add_float_lvar_to_float_var $y += 276@
task_go_straight_to_coord 238@(265@,5i) {x} $x {y} $y {z} 23.8804 {speed} MoveState.Run {time} -1
57@(265@,5i) = 1

:LA1FIN2_16208
goto @LA1FIN2_16312

:LA1FIN2_16215
269@ = get_script_task_status 238@(265@,5i) {taskId} 1491
if or
  is_int_lvar_equal_to_constant 269@ == 7
  locate_char_any_means_3d 238@(265@,5i) {x} 1647.249 {y} -1053.4821 {z} 23.8804 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @LA1FIN2_16312
57@(265@,5i) = 0
set_char_decision_maker 238@(265@,5i) {handleOrTemplate} 231@

:LA1FIN2_16312
return 

:LA1FIN2_16314
if 
  26 > 281@(85@,5i)
goto_if_false @LA1FIN2_16547
if 
  not is_car_dead 280@
goto_if_false @LA1FIN2_16547
if 
  68@(85@,5i) == 0
goto_if_false @LA1FIN2_16547
if 
  not is_char_in_car $scplayer {vehicle} 280@
goto_if_false @LA1FIN2_16521
get_car_health 280@ {var_health} 106@(85@,5i)
if 
  not is_car_health_greater 280@ {health} 550
goto_if_false @LA1FIN2_16514
set_lvar_int_to_lvar_int 279@ = 281@(85@,5i)
if 
  281@(85@,5i) >= 25
goto_if_false @LA1FIN2_16488
set_car_health 280@ {health} 350
set_car_proofs 280@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @LA1FIN2_16496

:LA1FIN2_16488
set_car_health 280@ {health} 900

:LA1FIN2_16496
gosub @LA1FIN2_16549
281@(85@,5i) += 1

:LA1FIN2_16514
goto @LA1FIN2_16547

:LA1FIN2_16521
68@(85@,5i) = 1
set_car_proofs 280@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:LA1FIN2_16547
return 

:LA1FIN2_16549
switch_start 279@ {numCases} 26 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_17181 {caseNum1} 0 {caseLabel1} @LA1FIN2_16807 {caseNum2} 1 {caseLabel2} @LA1FIN2_16821 {caseNum3} 2 {caseLabel3} @LA1FIN2_16835 {caseNum4} 3 {caseLabel4} @LA1FIN2_16849 {caseNum5} 4 {caseLabel5} @LA1FIN2_16863 {caseNum6} 5 {caseLabel6} @LA1FIN2_16877 {caseNum7} 6 {caseLabel7} @LA1FIN2_16891
switch_continued 7 {caseLabel1} @LA1FIN2_16905 {caseNum2} 8 {caseLabel2} @LA1FIN2_16919 {caseNum3} 9 {caseLabel3} @LA1FIN2_16933 {caseNum4} 10 {caseLabel4} @LA1FIN2_16947 {caseNum5} 11 {caseLabel5} @LA1FIN2_16961 {caseNum6} 12 {caseLabel6} @LA1FIN2_16975 {caseNum7} 13 {caseLabel7} @LA1FIN2_16989 {caseNum8} 14 {caseLabel8} @LA1FIN2_17003 {caseNum9} 15 {caseLabel9} @LA1FIN2_17017
switch_continued 16 {caseLabel1} @LA1FIN2_17031 {caseNum2} 17 {caseLabel2} @LA1FIN2_17047 {caseNum3} 18 {caseLabel3} @LA1FIN2_17061 {caseNum4} 19 {caseLabel4} @LA1FIN2_17077 {caseNum5} 20 {caseLabel5} @LA1FIN2_17093 {caseNum6} 21 {caseLabel6} @LA1FIN2_17107 {caseNum7} 22 {caseLabel7} @LA1FIN2_17123 {caseNum8} 23 {caseLabel8} @LA1FIN2_17137 {caseNum9} 24 {caseLabel9} @LA1FIN2_17151
switch_continued 25 {caseLabel1} @LA1FIN2_17165 {caseNum2} -1 {caseLabel2} @LA1FIN2_17181 {caseNum3} -1 {caseLabel3} @LA1FIN2_17181 {caseNum4} -1 {caseLabel4} @LA1FIN2_17181 {caseNum5} -1 {caseLabel5} @LA1FIN2_17181 {caseNum6} -1 {caseLabel6} @LA1FIN2_17181 {caseNum7} -1 {caseLabel7} @LA1FIN2_17181 {caseNum8} -1 {caseLabel8} @LA1FIN2_17181 {caseNum9} -1 {caseLabel9} @LA1FIN2_17181

:LA1FIN2_16807
damage_car_door 280@ {door} CarDoor.Hood
goto @LA1FIN2_17181

:LA1FIN2_16821
damage_car_panel 280@ {panelId} 1
goto @LA1FIN2_17181

:LA1FIN2_16835
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17181

:LA1FIN2_16849
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17181

:LA1FIN2_16863
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17181

:LA1FIN2_16877
burst_car_tyre 280@ {tireId} WheelId.FrontRight
goto @LA1FIN2_17181

:LA1FIN2_16891
damage_car_panel 280@ {panelId} 5
goto @LA1FIN2_17181

:LA1FIN2_16905
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17181

:LA1FIN2_16919
damage_car_panel 280@ {panelId} 1
goto @LA1FIN2_17181

:LA1FIN2_16933
damage_car_door 280@ {door} CarDoor.Trunk
goto @LA1FIN2_17181

:LA1FIN2_16947
burst_car_tyre 280@ {tireId} WheelId.RearRight
goto @LA1FIN2_17181

:LA1FIN2_16961
damage_car_panel 280@ {panelId} 6
goto @LA1FIN2_17181

:LA1FIN2_16975
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17181

:LA1FIN2_16989
damage_car_door 280@ {door} CarDoor.Hood
goto @LA1FIN2_17181

:LA1FIN2_17003
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17181

:LA1FIN2_17017
damage_car_panel 280@ {panelId} 1
goto @LA1FIN2_17181

:LA1FIN2_17031
pop_car_door 280@ {door} CarDoor.Trunk {visibility} True
goto @LA1FIN2_17181

:LA1FIN2_17047
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17181

:LA1FIN2_17061
pop_car_door 280@ {door} CarDoor.Hood {visibility} True
goto @LA1FIN2_17181

:LA1FIN2_17077
pop_car_door 280@ {door} CarDoor.RightFrontDoor {visibility} True
goto @LA1FIN2_17181

:LA1FIN2_17093
damage_car_panel 280@ {panelId} 5
goto @LA1FIN2_17181

:LA1FIN2_17107
pop_car_door 280@ {door} CarDoor.Hood {visibility} True
goto @LA1FIN2_17181

:LA1FIN2_17123
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17181

:LA1FIN2_17137
damage_car_door 280@ {door} CarDoor.RightFrontDoor
goto @LA1FIN2_17181

:LA1FIN2_17151
damage_car_door 280@ {door} CarDoor.RightRearDoor
goto @LA1FIN2_17181

:LA1FIN2_17165
pop_car_door 280@ {door} CarDoor.RightRearDoor {visibility} True
goto @LA1FIN2_17181

:LA1FIN2_17181
return 

:LA1FIN2_17183
if 
  286@ <> 0
goto_if_false @LA1FIN2_17401
if 
  287@ == 0
goto_if_false @LA1FIN2_17261
287@ = 1
set_lvar_int_to_lvar_int 288@ = TIMERA
289@ = 0
set_lvar_int_to_lvar_int 490@ = 288@
add_int_lvar_to_int_lvar 490@ += 290@(289@,10i)

:LA1FIN2_17261
if 
  287@ == 1
goto_if_false @LA1FIN2_17401
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 490@
goto_if_false @LA1FIN2_17401
if 
  437@ == 0
goto_if_false @LA1FIN2_17401
set_lvar_int_to_lvar_int 437@ = 300@(289@,10i)
289@ += 1
310@ -= 1
if 
  310@ == 0
goto_if_false @LA1FIN2_17381
286@ = 0
287@ = 0
goto @LA1FIN2_17401

:LA1FIN2_17381
set_lvar_int_to_lvar_int 490@ = 288@
add_int_lvar_to_int_lvar 490@ += 290@(289@,10i)

:LA1FIN2_17401
switch_start 436@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @LA1FIN2_19505 {caseNum1} 0 {caseLabel1} @LA1FIN2_17464 {caseNum2} 1 {caseLabel2} @LA1FIN2_18403 {caseNum3} 2 {caseLabel3} @LA1FIN2_19160 {caseNum4} 3 {caseLabel4} @LA1FIN2_19252 {caseNum5} 4 {caseLabel5} @LA1FIN2_19310 {caseNum6} 5 {caseLabel6} @LA1FIN2_19424 {caseNum7} -1 {caseLabel7} @LA1FIN2_19505

:LA1FIN2_17464
if 
  436@ == 1
goto_if_false @LA1FIN2_17532
488@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
492@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125

:LA1FIN2_17532
set_lvar_text_label 313@s = 'FIN2_BA'
set_lvar_int_to_constant 392@ = 16006
set_lvar_text_label 315@s = 'FIN2_BB'
set_lvar_int_to_constant 393@ = 16007
set_lvar_text_label 317@s = 'FIN2_BC'
set_lvar_int_to_constant 394@ = 16008
set_lvar_text_label 319@s = 'FIN2_BD'
set_lvar_int_to_constant 395@ = 16009
set_lvar_text_label 321@s = 'FIN2_BE'
set_lvar_int_to_constant 396@ = 16010
set_lvar_text_label 323@s = 'FIN2_BF'
set_lvar_int_to_constant 397@ = 16011
set_lvar_text_label 325@s = 'FIN2_BG'
set_lvar_int_to_constant 398@ = 16012
set_lvar_text_label 327@s = 'FIN2_BH'
set_lvar_int_to_constant 399@ = 16013
set_lvar_text_label 329@s = 'FIN2_BJ'
set_lvar_int_to_constant 400@ = 16014
set_lvar_text_label 331@s = 'FIN2_AA'
set_lvar_int_to_constant 401@ = 16000
set_lvar_text_label 333@s = 'FIN2_AB'
set_lvar_int_to_constant 402@ = 16001
set_lvar_text_label 335@s = 'FIN2_AB'
set_lvar_int_to_constant 403@ = 16001
set_lvar_text_label 337@s = 'FIN2_AC'
set_lvar_int_to_constant 404@ = 16002
set_lvar_text_label 339@s = 'FIN2_AD'
set_lvar_int_to_constant 405@ = 16003
set_lvar_text_label 341@s = 'FIN2_AE'
set_lvar_int_to_constant 406@ = 16004
set_lvar_text_label 343@s = 'FIN2_AF'
set_lvar_int_to_constant 407@ = 16005
set_lvar_int_to_constant 408@ = 23000
set_lvar_int_to_constant 409@ = 23000
set_lvar_text_label 349@s = 'MCES03A'
set_lvar_int_to_constant 410@ = 25227
set_lvar_text_label 351@s = 'MCES03B'
set_lvar_int_to_constant 411@ = 25228
set_lvar_text_label 353@s = 'MCES03C'
set_lvar_int_to_constant 412@ = 25229
set_lvar_text_label 355@s = 'MCES03D'
set_lvar_int_to_constant 413@ = 25230
set_lvar_text_label 357@s = 'MCES03E'
set_lvar_int_to_constant 414@ = 25231
set_lvar_text_label 359@s = 'MCES03F'
set_lvar_int_to_constant 415@ = 25232
set_lvar_text_label 361@s = 'MCES03G'
set_lvar_int_to_constant 416@ = 25233
set_lvar_text_label 363@s = 'MCES03H'
set_lvar_int_to_constant 417@ = 25234
set_lvar_text_label 365@s = 'MCES03J'
set_lvar_int_to_constant 418@ = 25235
set_lvar_text_label 367@s = 'MCES03L'
set_lvar_int_to_constant 419@ = 25237
set_lvar_text_label 369@s = 'MCES03M'
set_lvar_int_to_constant 420@ = 25238
440@ = 1
441@ = 1
442@ = 1
443@ = 1
444@ = 1
445@ = 1
446@ = 1
447@ = 1
448@ = 1
449@ = 0
450@ = 0
451@ = 0
452@ = 0
453@ = 0
454@ = 0
455@ = 0
456@ = 0
457@ = 0
458@ = 0
459@ = 0
460@ = 0
461@ = 0
462@ = 0
463@ = 0
464@ = 0
465@ = 0
466@ = 0
467@ = 0
468@ = 0
set_lvar_int_to_var_int 480@ = $scplayer
set_lvar_int_to_lvar_int 481@ = 238@
436@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 392@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 393@
432@ = 1
433@ = 2
goto @LA1FIN2_19505

:LA1FIN2_18403
if 
  437@ <> 0
goto_if_false @LA1FIN2_19153
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @LA1FIN2_19153
if 
  is_int_lvar_equal_to_int_lvar 432@ == 437@
goto_if_false @LA1FIN2_18473
434@ = 1
goto @LA1FIN2_18536

:LA1FIN2_18473
if 
  is_int_lvar_equal_to_int_lvar 433@ == 437@
goto_if_false @LA1FIN2_18506
434@ = 2
goto @LA1FIN2_18536

:LA1FIN2_18506
434@ = 1
set_lvar_int_to_lvar_int 432@ = 437@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 391@(437@,40i)

:LA1FIN2_18536
if 
  has_mission_audio_loaded 434@
goto_if_false @LA1FIN2_19141
set_lvar_int_to_lvar_int 487@ = 439@(437@,40i)
set_lvar_int_to_lvar_int 488@ = 479@(487@,7i)
if 
  494@ <> 1
goto_if_false @LA1FIN2_18764
491@ = 1
493@ = 0

:LA1FIN2_18608
if 
  7 > 491@
goto_if_false @LA1FIN2_18764
set_lvar_int_to_lvar_int 492@ = 479@(491@,7i)
if 
  492@ <> 0
goto_if_false @LA1FIN2_18750
if 
  not is_int_lvar_equal_to_int_lvar 492@ == 488@
goto_if_false @LA1FIN2_18750
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_18750
if 
  not is_char_dead 492@
goto_if_false @LA1FIN2_18750
if 
  locate_char_any_means_char_3d 488@ {target} 492@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @LA1FIN2_18750
493@ += 1

:LA1FIN2_18750
491@ += 1
goto @LA1FIN2_18608

:LA1FIN2_18764
if or
  494@ == 1
  493@ > 0
  439@(437@,40i) == 0
goto_if_false @LA1FIN2_19134
if 
  439@(437@,40i) <> 0
goto_if_false @LA1FIN2_18891
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_18891
attach_mission_audio_to_char 434@ {handle} 488@
if 
  not is_char_talking 488@
goto_if_false @LA1FIN2_18884
486@ = 1
start_char_facial_talk 488@ {duration} 15000
goto @LA1FIN2_18891

:LA1FIN2_18884
disable_char_speech 488@ {stopNow} False

:LA1FIN2_18891
if 
  439@(437@,40i) == 0
goto_if_false @LA1FIN2_18920
486@ = 1

:LA1FIN2_18920
if 
  486@ == 1
goto_if_false @LA1FIN2_19134
play_mission_audio 434@
clear_prints 
if 
  not is_int_lvar_equal_to_constant 391@(437@,40i) == 23000
goto_if_false @LA1FIN2_18982
print 311@(437@,40s) {time} 10000 {flag} 1

:LA1FIN2_18982
436@ += 1
486@ = 0
437@ += 1
set_lvar_int_to_lvar_int 435@ = 437@
if 
  391@(437@,40i) <> 0
goto_if_false @LA1FIN2_19134
if 
  434@ == 1
goto_if_false @LA1FIN2_19096
if 
  not is_int_lvar_equal_to_int_lvar 433@ == 437@
goto_if_false @LA1FIN2_19089
load_mission_audio MissionAudioSlot.Slot2 {audioId} 391@(437@,40i)
set_lvar_int_to_lvar_int 433@ = 437@

:LA1FIN2_19089
goto @LA1FIN2_19134

:LA1FIN2_19096
if 
  not is_int_lvar_equal_to_int_lvar 432@ == 437@
goto_if_false @LA1FIN2_19134
load_mission_audio MissionAudioSlot.Slot1 {audioId} 391@(437@,40i)
set_lvar_int_to_lvar_int 432@ = 437@

:LA1FIN2_19134
goto @LA1FIN2_19153

:LA1FIN2_19141
load_mission_audio 434@ {audioId} 391@(437@,40i)

:LA1FIN2_19153
goto @LA1FIN2_19505

:LA1FIN2_19160
if 
  has_mission_audio_finished 434@
goto_if_false @LA1FIN2_19190
436@ += 1
goto @LA1FIN2_19245

:LA1FIN2_19190
if 
  does_char_exist 488@
goto_if_false @LA1FIN2_19229
if 
  is_char_dead 488@
goto_if_false @LA1FIN2_19229
436@ += 1

:LA1FIN2_19229
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_19245

:LA1FIN2_19245
goto @LA1FIN2_19505

:LA1FIN2_19252
clear_mission_audio 434@
431@(434@,3i) = 0
clear_prints 
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_19296
stop_char_facial_talk 488@
enable_char_speech 488@

:LA1FIN2_19296
436@ += 1
goto @LA1FIN2_19505

:LA1FIN2_19310
437@ += 1
if 
  391@(437@,40i) <> 0
goto_if_false @LA1FIN2_19363
load_mission_audio 434@ {audioId} 391@(437@,40i)
set_lvar_int_to_lvar_int 431@(434@,3i) = 437@

:LA1FIN2_19363
438@ -= 1
if 
  438@ <= 0
goto_if_false @LA1FIN2_19402
437@ = 0
goto @LA1FIN2_19410

:LA1FIN2_19402
set_lvar_int_to_lvar_int 437@ = 435@

:LA1FIN2_19410
436@ = 1
goto @LA1FIN2_19505

:LA1FIN2_19424
436@ = 1
437@ = 0
438@ = 0
286@ = 0
310@ = 0
clear_mission_audio 434@
431@(434@,3i) = 0
clear_prints 
if 
  not is_char_dead 488@
goto_if_false @LA1FIN2_19498
enable_char_speech 488@

:LA1FIN2_19498
goto @LA1FIN2_19505

:LA1FIN2_19505
return 

:LA1FIN2_19507
print_big 'M_FAIL' {time} 50 {style} TextStyle.Middle
return 

:LA1FIN2_19524
if 
  is_char_in_any_car $scplayer
goto_if_false @LA1FIN2_19567
warp_char_from_car_to_coord $scplayer {x} -2007.5 {y} -2542.3999 {z} 35.7
goto @LA1FIN2_19597

:LA1FIN2_19567
set_char_coordinates $scplayer {x} -2007.5 {y} -2542.3999 {z} 35.7
set_char_heading $scplayer {heading} 80.0

:LA1FIN2_19597
delete_car 47@
delete_car 122@
delete_car 123@
delete_car 124@
delete_car 48@
delete_car 235@
delete_car 236@
delete_car 237@
delete_car 233@
delete_car 234@
delete_char 243@
delete_char 244@
delete_char 245@
delete_char 246@
delete_char 247@
delete_char 248@
delete_char 125@
delete_char 126@
delete_char 127@
delete_char 238@
delete_char 239@
delete_char 240@
delete_char 241@
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 413
remove_animation "SWEET"
unload_special_character 1
remove_decision_maker 103@
remove_decision_maker 104@
clear_wanted_level $player1
set_int_stat StatId.CitiesPassed {value} 1
load_cutscene 'BCRAS1'
set_char_coordinates $scplayer {x} -2011.438 {y} -2501.2871 {z} 34.0624
set_player_control $player1 {state} False
load_scene -2011.438 {y} -2501.2871 {z} 34.0624
clear_area -2011.438 {y} -2501.2871 {z} 34.0624 {radius} 100.0 {clearParticles} True
clear_help 
remove_all_char_weapons $scplayer
load_mission_text 'BCRASH1'

:LA1FIN2_19877
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_19901
wait 0
goto @LA1FIN2_19877

:LA1FIN2_19901
wait 1000
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_19915
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_19939
wait 0
goto @LA1FIN2_19915

:LA1FIN2_19939
do_fade 0 {direction} Fade.Out

:LA1FIN2_19945
if 
  get_fading_status 
goto_if_false @LA1FIN2_19969
wait 0
goto @LA1FIN2_19945

:LA1FIN2_19969
clear_cutscene 
load_cutscene 'BCRAS2'

:LA1FIN2_19982
if 
  not has_cutscene_loaded 
goto_if_false @LA1FIN2_20006
wait 0
goto @LA1FIN2_19982

:LA1FIN2_20006
start_cutscene 
do_fade 1000 {direction} Fade.In

:LA1FIN2_20015
if 
  not has_cutscene_finished 
goto_if_false @LA1FIN2_20039
wait 0
goto @LA1FIN2_20015

:LA1FIN2_20039
do_fade 0 {direction} Fade.Out

:LA1FIN2_20045
if 
  get_fading_status 
goto_if_false @LA1FIN2_20069
wait 0
goto @LA1FIN2_20045

:LA1FIN2_20069
clear_cutscene 
request_model 367

:LA1FIN2_20076
if 
  not has_model_loaded 367
goto_if_false @LA1FIN2_20103
wait 0
goto @LA1FIN2_20076

:LA1FIN2_20103
do_fade 1000 {direction} Fade.In
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
mark_model_as_no_longer_needed 367
set_player_control $player1 {state} True
remove_blip $bcrash_contact_blip
remove_blip $sweet_contact_blip
$bcrash_contact_blip = add_sprite_blip_for_contact_point $bcrashX {y} $bcrashY {z} $bcrashZ {sprite} $crash_blip_icon
remove_blip $1730
$1730 = add_short_range_sprite_blip_for_contact_point $save_pickupX[13] {y} $save_pickupY[13] {z} $save_pickupZ[13] {sprite} RadarSprite.SaveGame
change_blip_display $1730 {display} BlipDisplay.BlipOnly
clear_wanted_level $player1
set_int_stat StatId.PassedLafin2 {value} 1
set_int_stat StatId.StartedBadlands {value} 1
terminate_all_scripts_with_this_name 'MOB_CAT'
start_new_script @MOB_CAT 
$flag_la1fin1_mission_counter += 1
$terminted_territory_pickup = 1
register_mission_passed 'LA1FIN2'
player_made_progress 1
remove_pickup $grove_save_pickup[13]
$grove_save_pickup[13] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[13] {y} $save_pickupY[13] {z} $save_pickupZ[13]
$number_of_save_icons = 14
set_zone_gang_strength 'SUN1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN1' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN3C' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'SUN4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'CHC1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC1B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC2B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC3' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'CHC4B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'EBE1' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2A' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE2B' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'EBE3C' {gangId} GangType.Vagos {density} 30
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 25
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN2A' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'LIND1A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND1B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND2B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'LIND3' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD2' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'IWD5' {gangId} GangType.Ballas {density} 20
set_zone_gang_strength 'JEF1A' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF1B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF2' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3B' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'JEF3C' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'LFL1A' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'LFL1B' {gangId} GangType.Vagos {density} 40
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 30
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 30
set_zone_gang_strength 'ELS1A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS1B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS2' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3A' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS3B' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'ELS4' {gangId} GangType.Ballas {density} 30
set_zone_gang_strength 'PLS' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'SMB1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'SMB2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VIN2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO1' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO2' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO3' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4A' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'VERO4B' {gangId} GangType.Ballas {density} 10
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN3C' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SUN4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC2B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC3' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC4A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'CHC4B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE2B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'EBE3C' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND2A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND2B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LIND3' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD5' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'JEF3C' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LFL1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LFL1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS1B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELS4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'PLS' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SMB1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'SMB2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VIN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO3' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO4A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'VERO4B' {gangId} GangType.Grove {density} 0
set_gang_wars_active False
start_new_script @BCRASH 
return 

:LA1FIN2_22053
$onmission = 0
clear_skip 
if 
  not is_char_dead $scplayer
goto_if_false @LA1FIN2_22085
task_use_mobile_phone $scplayer {start} False

:LA1FIN2_22085
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 413
remove_animation "SWEET"
remove_car_recording 162
remove_car_recording 163
remove_car_recording 650
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 280
remove_animation "POLICE"
set_player_control $player1 {state} True
unload_special_character 1
remove_decision_maker 103@
remove_decision_maker 104@
if 
  not is_car_dead 40@
goto_if_false @LA1FIN2_22204
mark_car_as_no_longer_needed 40@

:LA1FIN2_22204
remove_blip 50@
267@ = 0

:LA1FIN2_22216
if 
  6 > 267@
goto_if_false @LA1FIN2_22257
remove_blip 51@(267@,6i)
267@ += 1
goto @LA1FIN2_22216

:LA1FIN2_22257
clear_onscreen_counter $l1f2_sweet_health
remove_ipl "BARRIERS1"
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
remove_decision_maker 231@
set_create_random_gang_members True
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
set_script_limit_to_gang_size 99
return 

//-------------Mission 39---------------
// Originally: Badlands

:BCRASH1
script_name 'BCRASH1'
gosub @BCRASH1_922
if 
  has_deatharrest_been_executed 
goto_if_false @BCRASH1_38
gosub @BCRASH1_13511

:BCRASH1_38
gosub @BCRASH1_13680
terminate_this_script 

:BCRASH1_47
request_model 147
request_model 286
request_model 421
request_model 468
request_model 352
request_model 367
load_all_models_now 

:BCRASH1_79
if or
  not has_model_loaded 147
  not has_model_loaded 286
  not has_model_loaded 352
  not has_model_loaded 421
  not has_model_loaded 468
  not has_model_loaded 367
goto_if_false @BCRASH1_131
wait 0
goto @BCRASH1_79

:BCRASH1_131
return 
270@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 24 {x} -2044.1 {y} -2523.8601 {z} 31.11
271@ = add_blip_for_pickup 270@

:BCRASH1_168
287@ = -2814.8401
288@ = -1522.0
289@ = 139.33
284@ = create_char PedType.CivMale {modelId} 147 {x} 287@ {y} 288@ {z} 289@
set_char_can_be_shot_in_vehicle 284@ {state} False
286@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 284@ {handleOrTemplate} 286@
return 

:BCRASH1_241
mark_model_as_no_longer_needed 147
return 

:BCRASH1_248
302@ = -2800.1101
307@ = -1521.49
312@ = 137.37
317@ = 305.1252
303@ = -2799.3401
308@ = -1524.66
313@ = 137.38
318@ = 356.2755
304@ = -2789.0471
309@ = -1533.317
314@ = 138.4778
319@ = 317.5168
305@ = -2801.7
310@ = -1515.16
315@ = 137.33
320@ = 270.3571
300@ = load_char_decision_maker DecisionMakerType.Empty
291@ = create_char PedType.Mission1 {modelId} 286 {x} 81@ {y} 87@ {z} 93@
set_char_heading 291@ {heading} 317@
give_weapon_to_char 291@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 291@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 291@ {state} True
set_char_decision_maker 291@ {handleOrTemplate} 300@
292@ = create_char PedType.Mission1 {modelId} 286 {x} 82@ {y} 88@ {z} 94@
set_char_heading 292@ {heading} 318@
give_weapon_to_char 292@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 292@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 292@ {state} True
set_char_decision_maker 292@ {handleOrTemplate} 300@
293@ = create_char PedType.Mission1 {modelId} 286 {x} 80@ {y} 86@ {z} 92@
set_char_heading 293@ {heading} 319@
give_weapon_to_char 293@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 293@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 293@ {state} True
set_char_decision_maker 293@ {handleOrTemplate} 300@
294@ = create_char PedType.Mission1 {modelId} 286 {x} 79@ {y} 85@ {z} 91@
set_char_heading 294@ {heading} 320@
give_weapon_to_char 294@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_relationship 294@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_keep_task 294@ {state} True
set_char_decision_maker 294@ {handleOrTemplate} 300@
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
return 

:BCRASH1_670
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 286
return 

:BCRASH1_682
324@ = -2815.1599
325@ = -1512.03
326@ = 138.08
327@ = 272.57
custom_plate_for_next_car 421 {text} "_ASSMAN_"
322@ = create_car 421 {x} 324@ {y} 325@ {z} 326@
set_load_collision_for_car_flag 322@ {state} False
set_car_heading 322@ {heading} 327@
lock_car_doors 322@ {lockStatus} CarLock.LockoutPlayerOnly
set_can_burst_car_tyres 322@ {state} False
return 

:BCRASH1_785
mark_model_as_no_longer_needed 421
return 
return 

:BCRASH1_794
request_model 468

:BCRASH1_799
if 
  not has_model_loaded 468
goto_if_false @BCRASH1_826
wait 0
goto @BCRASH1_799

:BCRASH1_826
330@ = -2803.156
331@ = -1519.46
332@ = 138.2818
333@ = 189.4269
328@ = create_car 468 {x} 330@ {y} 331@ {z} 332@
set_load_collision_for_car_flag 328@ {state} False
set_car_heading 328@ {heading} 333@
set_car_proofs 328@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
return 
mark_model_as_no_longer_needed 468
return 

:BCRASH1_922
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'BCRASH1'
107@ = -2815.3821
147@ = -1511.204
187@ = 139.1089
108@ = -2766.9121
148@ = -1599.0129
188@ = 141.1248
109@ = -2778.6111
149@ = -1698.438
189@ = 141.3879
110@ = -2770.7791
150@ = -1798.475
190@ = 141.5863
111@ = -2705.2419
151@ = -1874.129
191@ = 137.9205
112@ = -2651.3989
152@ = -1958.48
192@ = 127.1876
113@ = -2624.5081
153@ = -2055.0769
193@ = 129.1295
114@ = -2525.1731
154@ = -2071.438
194@ = 126.7572
115@ = -2426.958
155@ = -2090.1919
195@ = 122.5222
116@ = -2393.0
156@ = -2096.0
196@ = 118.0
117@ = -2326.8979
157@ = -2098.7319
197@ = 114.4895
118@ = -2257.158
158@ = -2073.1101
198@ = 119.2503
119@ = -2215.6379
159@ = -2044.962
199@ = 118.7853
120@ = -2143.491
160@ = -1955.6219
200@ = 117.0468
121@ = -2123.1479
161@ = -1897.05
201@ = 113.449
122@ = -2137.8569
162@ = -1994.849
202@ = 96.0566
123@ = -2165.01
163@ = -2044.655
203@ = 90.2613
124@ = -2266.458
164@ = -2142.7351
204@ = 55.9682
125@ = -2345.696
165@ = -2199.511
205@ = 33.1272
126@ = -2245.354
166@ = -2201.1111
206@ = 35.0159
127@ = -2164.646
167@ = -2143.8169
207@ = 51.5793
128@ = -2094.4729
168@ = -2072.822
208@ = 63.6193
129@ = -2063.865
169@ = -1977.4
209@ = 57.6244
130@ = -2014.453
170@ = -1890.356
210@ = 45.5302
131@ = -1949.741
171@ = -1814.233
211@ = 33.7562
132@ = -1872.931
172@ = -1750.007
212@ = 29.084
133@ = -1783.8831
173@ = -1701.444
213@ = 29.5583
134@ = -1697.5601
174@ = -1651.167
214@ = 36.0764
135@ = -1604.938
175@ = -1613.3879
215@ = 36.1148
136@ = -1587.864
176@ = -1514.849
216@ = 37.5464
137@ = -1685.724
177@ = -1494.043
217@ = 34.7867
138@ = -1777.0439
178@ = -1452.411
218@ = 34.6646
139@ = -1862.8459
179@ = -1400.225
219@ = 38.3508
140@ = -1947.106
180@ = -1346.296
220@ = 40.5623
141@ = -2005.1071
181@ = -1264.516
221@ = 36.3458
142@ = -2055.8369
182@ = -1177.761
222@ = 32.1425
143@ = -2106.0791
183@ = -1091.077
223@ = 29.978
144@ = -2168.3721
184@ = -1012.418
224@ = 33.7818
145@ = -2210.5229
185@ = -974.889
225@ = 38.5044
77@ = -2797.75
83@ = -1531.63
89@ = 138.5
78@ = -2803.0901
84@ = -1503.01
90@ = 138.83
79@ = -2804.6899
85@ = -1506.7
91@ = 137.83
80@ = -2818.8899
86@ = -1505.72
92@ = 139.34
81@ = -2826.6799
87@ = -1522.23
93@ = 138.78
82@ = -2822.8999
88@ = -1536.9399
94@ = 138.86
70@ = -2814.8401
71@ = -1522.0
72@ = 139.33
95@ = -2777.05
96@ = -1568.29
97@ = 140.04
98@ = -2346.7
101@ = -2240.1799
104@ = 17.29
99@ = -2103.0
102@ = -1885.0
105@ = 109.0
100@ = -2602.0
103@ = -2084.0
106@ = 131.0
236@ = -2767.98
246@ = -1597.9
256@ = 141.46
237@ = -2787.3899
247@ = -1568.11
257@ = 147.27
238@ = -2796.3501
248@ = -1537.58
258@ = 143.82
239@ = -2800.1899
249@ = -1505.59
259@ = 143.89
240@ = -2801.4299
250@ = -1541.87
260@ = 140.29
321@ = 30.0
$bc1_stage = -1
34@ = 0
51@ = 1
278@ = 1
279@ = 3
36@ = 0
$bc1_cut = 0
53@ = 0
54@ = 1
56@ = 0
37@ = 0
57@ = 0
59@ = 1
$bc1_in_water = 0
55@ = 0
$bc1_route = 0
$bc1_route_nx = 1
$bc1_final_dest = 38
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
278@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 278@ {state} True
close_sequence_task 278@
279@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 279@ {state} True
close_sequence_task 279@
280@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 280@ {state} True
close_sequence_task 280@
281@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 79@ {y} 85@ {z} 91@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 78@ {y} 84@ {z} 90@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 77@ {y} 83@ {z} 89@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 82@ {y} 88@ {z} 94@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 81@ {y} 87@ {z} 93@ {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 80@ {y} 86@ {z} 92@ {speed} MoveState.Walk {time} -1
set_sequence_to_repeat 281@ {state} True
close_sequence_task 281@
273@ = create_object_no_offset #ROADWORKBARRIER1 {x} -2450.083 {y} -2079.9529 {z} 125.711
set_object_rotation 273@ {x} 9.209 {y} 7.675 {z} -43.371
274@ = create_object_no_offset #ROADWORKBARRIER1 {x} -2449.1499 {y} -2078.21 {z} 125.917
set_object_rotation 274@ {x} 4.992 {y} 7.247 {z} -15.069
275@ = create_object_no_offset #ROADWORKBARRIER1 {x} -2447.8679 {y} -2076.5779 {z} 125.975
set_object_rotation 275@ {x} -1.869 {y} 8.724 {z} -44.611
gosub @BCRASH1_47
set_player_group_recruitment $player1 {state} False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
set_player_control $player1 {state} False
switch_widescreen True
set_char_heading $scplayer {heading} 54.0
set_fixed_camera_position -2041.009 {y} -2527.207 {z} 33.9116 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2041.785 {y} -2526.603 {z} 34.0884 {switchStyle} SwitchType.JumpCut
do_fade 300 {direction} Fade.In

:BCRASH1_3510
if 
  get_fading_status 
goto_if_false @BCRASH1_3534
wait 0
goto @BCRASH1_3510

:BCRASH1_3534
wait 3000
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'BCR1_03' {time} 5000 {flag} 1
65@ = add_blip_for_coord 98@ {y} 101@ {z} 104@

:BCRASH1_3584
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @BCRASH1_3610
goto @BCRASH1_13609

:BCRASH1_3610
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @BCRASH1_3632
$flag_bcr1_skip = 1

:BCRASH1_3632
if 
  $main_visible_area == 0
goto_if_false @BCRASH1_3846
if 
  55@ == 3
goto_if_false @BCRASH1_3699
if 
  not is_help_message_being_displayed 
goto_if_false @BCRASH1_3699
print_help 'BCR1_23'
55@ = 4

:BCRASH1_3699
if 
  55@ == 2
goto_if_false @BCRASH1_3748
if 
  not is_help_message_being_displayed 
goto_if_false @BCRASH1_3748
print_help 'FEG_HOW'
55@ = 3

:BCRASH1_3748
if 
  55@ == 1
goto_if_false @BCRASH1_3797
if 
  not is_help_message_being_displayed 
goto_if_false @BCRASH1_3797
print_help 'BCR1_21'
55@ = 2

:BCRASH1_3797
if 
  55@ == 0
goto_if_false @BCRASH1_3846
if 
  not is_message_being_displayed 
goto_if_false @BCRASH1_3846
print_help 'BCR1_22'
55@ = 1

:BCRASH1_3846
if 
  4 > $bc1_stage
goto_if_false @BCRASH1_3954
if 
  35@ == 0
goto_if_false @BCRASH1_3913
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_3913
272@ = store_car_char_is_in $scplayer
35@ = 1

:BCRASH1_3913
if 
  35@ == 1
goto_if_false @BCRASH1_3954
if 
  not is_char_in_any_car $scplayer
goto_if_false @BCRASH1_3954
35@ = 0

:BCRASH1_3954
if 
  $bc1_stage == -1
goto_if_false @BCRASH1_4142
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_4142
if 
  locate_char_any_means_3d $scplayer {x} 98@ {y} 101@ {z} 104@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCRASH1_4142
remove_blip 65@
95@ = -2774.981
96@ = -1591.26
97@ = 140.388
64@ = add_blip_for_coord 95@ {y} 96@ {z} 97@
print_now 'BCR1_18' {time} 5000 {flag} 1
if 
  $flag_bcr1_skip == 1
goto_if_false @BCRASH1_4135
set_up_skip -2767.8831 {y} -1634.114 {z} 140.3939 {heading} 0.0569

:BCRASH1_4135
$bc1_stage = 0

:BCRASH1_4142
if 
  $bc1_stage == 0
goto_if_false @BCRASH1_4299
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_4299
if 
  53@ == 0
goto_if_false @BCRASH1_4299
if 
  locate_char_any_means_3d $scplayer {x} 95@ {y} 96@ {z} 97@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @BCRASH1_4299
remove_blip 64@
95@ = -2774.981
96@ = -1591.26
97@ = 140.388
64@ = add_blip_for_coord 95@ {y} 96@ {z} 97@
$bc1_cut = 0
53@ = 1

:BCRASH1_4299
if 
  $bc1_stage == 0
goto_if_false @BCRASH1_5490
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_5490
if 
  $bc1_cut > 1
goto_if_false @BCRASH1_4427
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCRASH1_4375
38@ = 0

:BCRASH1_4375
if 
  38@ == 0
goto_if_false @BCRASH1_4427
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCRASH1_4427
clear_prints 
266@ -= 1000
$bc1_cut = 6

:BCRASH1_4427
if 
  $bc1_cut == 0
goto_if_false @BCRASH1_4617
if 
  locate_char_any_means_3d $scplayer {x} 95@ {y} 96@ {z} 97@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @BCRASH1_4617
38@ = 1
set_player_control $player1 {state} False
do_fade 300 {direction} Fade.Out

:BCRASH1_4508
if 
  get_fading_status 
goto_if_false @BCRASH1_4532
wait 0
goto @BCRASH1_4508

:BCRASH1_4532
gosub @BCRASH1_168
gosub @BCRASH1_248
gosub @BCRASH1_682
gosub @BCRASH1_794
266@ = get_game_timer 
if 
  $flag_bcr1_skip == 1
goto_if_false @BCRASH1_4585
clear_skip 

:BCRASH1_4585
if 
  $flag_bcr1_skip == 0
goto_if_false @BCRASH1_4610
$flag_bcr1_skip = 1

:BCRASH1_4610
$bc1_cut = 1

:BCRASH1_4617
if 
  $bc1_cut == 1
goto_if_false @BCRASH1_4927
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 250
goto_if_false @BCRASH1_4927
load_scene 70@ {y} 71@ {z} 72@
set_fixed_camera_position -2795.8611 {y} -1536.975 {z} 139.3093 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2796.553 {y} -1536.282 {z} 139.5107 {switchStyle} SwitchType.JumpCut
clear_area 70@ {y} 71@ {z} 72@ {radius} 75.0 {clearParticles} True
switch_widescreen True
set_fading_colour 0 {g} 0 {b} 0
do_fade 300 {direction} Fade.In

:BCRASH1_4774
if 
  get_fading_status 
goto_if_false @BCRASH1_4798
wait 0
goto @BCRASH1_4774

:BCRASH1_4798
print_now 'BCR1_04' {time} 3000 {flag} 1
remove_blip 64@
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_4843
perform_sequence_task 291@ {sequence} 278@

:BCRASH1_4843
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_4867
perform_sequence_task 292@ {sequence} 279@

:BCRASH1_4867
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_4891
perform_sequence_task 293@ {sequence} 280@

:BCRASH1_4891
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_4915
perform_sequence_task 294@ {sequence} 281@

:BCRASH1_4915
266@ = get_game_timer 
$bc1_cut = 2

:BCRASH1_4927
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_5490
if 
  $bc1_cut == 2
goto_if_false @BCRASH1_5029
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 3000
goto_if_false @BCRASH1_5029
print_now 'BCR1_19' {time} 3000 {flag} 1
266@ = get_game_timer 
$bc1_cut = 3

:BCRASH1_5029
if 
  $bc1_cut == 3
goto_if_false @BCRASH1_5166
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 3000
goto_if_false @BCRASH1_5166
print_now 'BCR1_20' {time} 4000 {flag} 1
set_fixed_camera_position -2793.092 {y} -1510.473 {z} 139.2297 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2793.947 {y} -1510.9449 {z} 139.4455 {switchStyle} SwitchType.JumpCut
266@ = get_game_timer 
$bc1_cut = 4

:BCRASH1_5166
if 
  $bc1_cut == 4
goto_if_false @BCRASH1_5236
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 2000
goto_if_false @BCRASH1_5236
266@ = get_game_timer 
$bc1_cut = 5

:BCRASH1_5236
if 
  $bc1_cut == 5
goto_if_false @BCRASH1_5306
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1500
goto_if_false @BCRASH1_5306
266@ = get_game_timer 
$bc1_cut = 6

:BCRASH1_5306
if 
  $bc1_cut == 6
goto_if_false @BCRASH1_5490
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 500
goto_if_false @BCRASH1_5490
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
if and
  not is_char_dead 284@
  not is_car_dead 322@
goto_if_false @BCRASH1_5490
285@ = add_blip_for_char 284@
$bc1_stage = 1
$bc1_cut = 7
282@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -2822.47 {y} -1518.595 {z} 139.7656 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord -1 {x} -2822.97 {y} -1514.244 {z} 138.2893 {speed} MoveState.Walk {time} -2
task_enter_car_as_driver -1 {vehicle} 322@ {time} -727379969
close_sequence_task 282@

:BCRASH1_5490
if 
  $bc1_stage == 1
goto_if_false @BCRASH1_8165
if 
  is_char_on_foot $scplayer
goto_if_false @BCRASH1_5908
if 
  is_char_dead 284@
goto_if_false @BCRASH1_5681
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_5564
task_kill_char_on_foot 291@ {target} $scplayer

:BCRASH1_5564
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_5588
task_kill_char_on_foot 292@ {target} $scplayer

:BCRASH1_5588
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_5612
task_kill_char_on_foot 293@ {target} $scplayer

:BCRASH1_5612
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_5636
task_kill_char_on_foot 294@ {target} $scplayer

:BCRASH1_5636
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_5681
set_car_proofs 322@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 322@ {lockStatus} CarLock.Unlocked
freeze_car_position 322@ {state} False

:BCRASH1_5681
if or
  is_char_dead 291@
  is_char_dead 292@
  is_char_dead 293@
  is_char_dead 294@
goto_if_false @BCRASH1_5908
if 
  46@ == 0
goto_if_false @BCRASH1_5761
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_5761
task_kill_char_on_foot 291@ {target} $scplayer
46@ = 1

:BCRASH1_5761
if 
  47@ == 0
goto_if_false @BCRASH1_5810
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_5810
task_kill_char_on_foot 292@ {target} $scplayer
47@ = 1

:BCRASH1_5810
if 
  48@ == 0
goto_if_false @BCRASH1_5859
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_5859
task_kill_char_on_foot 293@ {target} $scplayer
48@ = 1

:BCRASH1_5859
if 
  49@ == 0
goto_if_false @BCRASH1_5908
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_5908
task_kill_char_on_foot 294@ {target} $scplayer
49@ = 1

:BCRASH1_5908
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_8165
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_6413
50@ = 1
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 302@ = 73@
set_lvar_float_to_lvar_float 307@ = 74@
set_lvar_float_to_lvar_float 312@ = 75@
if 
  41@ == 0
goto_if_false @BCRASH1_6141
if 
  locate_char_in_car_3d $scplayer {x} 302@ {y} 307@ {z} 312@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_6141
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_6141
task_destroy_car 291@ {vehicle} 272@
41@ = 1
46@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6141
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6141
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6141
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6141
if 
  46@ == 0
goto_if_false @BCRASH1_6413
if 
  locate_char_on_foot_3d $scplayer {x} 302@ {y} 307@ {z} 312@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_6288
task_kill_char_on_foot 291@ {target} $scplayer
46@ = 1
41@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6288
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6288
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6288
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6288
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_6413
task_kill_char_on_foot 291@ {target} $scplayer
46@ = 1
41@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6413
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6413
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6413
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6413
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_6902
50@ = 2
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 303@ = 73@
set_lvar_float_to_lvar_float 308@ = 74@
set_lvar_float_to_lvar_float 313@ = 75@
if 
  42@ == 0
goto_if_false @BCRASH1_6630
if 
  locate_char_in_car_3d $scplayer {x} 303@ {y} 308@ {z} 313@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_6630
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_6630
task_destroy_car 292@ {vehicle} 272@
42@ = 1
47@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6630
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6630
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6630
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6630
if 
  47@ == 0
goto_if_false @BCRASH1_6902
if 
  locate_char_on_foot_3d $scplayer {x} 303@ {y} 308@ {z} 313@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_6777
task_kill_char_on_foot 292@ {target} $scplayer
47@ = 1
42@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6777
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6777
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6777
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6777
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_6902
task_kill_char_on_foot 292@ {target} $scplayer
47@ = 1
42@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_6902
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_6902
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_6902
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_6902
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_7391
50@ = 3
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 304@ = 73@
set_lvar_float_to_lvar_float 309@ = 74@
set_lvar_float_to_lvar_float 314@ = 75@
if 
  43@ == 0
goto_if_false @BCRASH1_7119
if 
  locate_char_in_car_3d $scplayer {x} 304@ {y} 309@ {z} 314@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_7119
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_7119
task_destroy_car 293@ {vehicle} 272@
43@ = 1
48@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7119
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7119
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7119
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7119
if 
  48@ == 0
goto_if_false @BCRASH1_7391
if 
  locate_char_on_foot_3d $scplayer {x} 304@ {y} 309@ {z} 314@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_7266
task_kill_char_on_foot 293@ {target} $scplayer
48@ = 1
43@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7266
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7266
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7266
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7266
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_7391
task_kill_char_on_foot 293@ {target} $scplayer
48@ = 1
43@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7391
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7391
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7391
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7391
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_7880
50@ = 4
gosub @BCRASH1_13861
set_lvar_float_to_lvar_float 305@ = 73@
set_lvar_float_to_lvar_float 310@ = 74@
set_lvar_float_to_lvar_float 315@ = 75@
if 
  44@ == 0
goto_if_false @BCRASH1_7608
if 
  locate_char_in_car_3d $scplayer {x} 305@ {y} 310@ {z} 315@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_7608
if 
  not is_car_dead 272@
goto_if_false @BCRASH1_7608
task_destroy_car 294@ {vehicle} 272@
44@ = 1
49@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7608
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7608
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7608
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7608
if 
  49@ == 0
goto_if_false @BCRASH1_7880
if 
  locate_char_on_foot_3d $scplayer {x} 305@ {y} 310@ {z} 315@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_7755
task_kill_char_on_foot 294@ {target} $scplayer
49@ = 1
44@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7755
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7755
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7755
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7755
if 
  is_char_shooting_in_area $scplayer {leftBottomX} -2774.03 {leftBottomY} -1572.78 {topRightX} -2837.1299 {topRightY} -1468.24 {drawSphere} False
goto_if_false @BCRASH1_7880
task_kill_char_on_foot 294@ {target} $scplayer
49@ = 1
44@ = 0
if 
  56@ == 0
goto_if_false @BCRASH1_7880
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7880
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7880
perform_sequence_task 284@ {sequence} 282@
56@ = 1

:BCRASH1_7880
if 
  56@ == 1
goto_if_false @BCRASH1_7963
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_7963
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_7963
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_7963
$bc1_cut = 0
$bc1_stage = 3

:BCRASH1_7963
if 
  is_char_dead 284@
goto_if_false @BCRASH1_8120
if 
  not is_char_dead 291@
goto_if_false @BCRASH1_8003
task_kill_char_on_foot 291@ {target} $scplayer

:BCRASH1_8003
if 
  not is_char_dead 292@
goto_if_false @BCRASH1_8027
task_kill_char_on_foot 292@ {target} $scplayer

:BCRASH1_8027
if 
  not is_char_dead 293@
goto_if_false @BCRASH1_8051
task_kill_char_on_foot 293@ {target} $scplayer

:BCRASH1_8051
if 
  not is_char_dead 294@
goto_if_false @BCRASH1_8075
task_kill_char_on_foot 294@ {target} $scplayer

:BCRASH1_8075
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_8120
set_car_proofs 322@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 322@ {lockStatus} CarLock.Unlocked
freeze_car_position 322@ {state} False

:BCRASH1_8120
if and
  is_char_dead 291@
  is_char_dead 292@
  is_char_dead 293@
  is_char_dead 294@
goto_if_false @BCRASH1_8165
$bc1_cut = 0
$bc1_stage = 2

:BCRASH1_8165
if 
  $bc1_stage == 2
goto_if_false @BCRASH1_8313
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_8313
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_8290
if 
  56@ == 0
goto_if_false @BCRASH1_8269
perform_sequence_task 284@ {sequence} 282@
56@ = 1
$bc1_cut = 0
$bc1_stage = 3
goto @BCRASH1_8283

:BCRASH1_8269
$bc1_cut = 0
$bc1_stage = 3

:BCRASH1_8283
goto @BCRASH1_8313

:BCRASH1_8290
print_now 'BCR1_10' {time} 5000 {flag} 1
$bc1_stage = 7

:BCRASH1_8313
if 
  $bc1_stage == 3
goto_if_false @BCRASH1_9346
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_9324
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_9279
if 
  is_char_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_9193
if 
  $bc1_cut > 2
goto_if_false @BCRASH1_8407
$bc1_cut = 0

:BCRASH1_8407
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_8606
233@, 234@, 235@ = get_offset_from_car_in_world_coords 322@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 227@ = 233@
227@ -= 1.5
set_lvar_float_to_lvar_float 228@ = 234@
228@ -= 1.5
set_lvar_float_to_lvar_float 229@ = 235@
229@ -= 1.5
set_lvar_float_to_lvar_float 230@ = 233@
230@ += 1.5
set_lvar_float_to_lvar_float 231@ = 234@
231@ += 1.5
set_lvar_float_to_lvar_float 232@ = 235@
232@ += 1.5
if 
  is_area_occupied 227@ {leftBottomY} 228@ {leftBottomZ} 229@ {rightTopX} 230@ {rightTopY} 231@ {rightTopZ} 232@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @BCRASH1_8606
stop_playback_recorded_car 322@

:BCRASH1_8606
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_8690
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_route,40f) {y} 147@($bc1_route,40f) {z} 187@($bc1_route,40f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCRASH1_8690
$bc1_route += 1
$bc1_route_nx += 1

:BCRASH1_8690
if 
  $bc1_cut == 0
goto_if_false @BCRASH1_9016
set_car_health 322@ {health} 1000
set_car_cruise_speed 322@ {maxSpeed} 40.0
set_car_driving_style 322@ {drivingStyle} DrivingMode.PloughThrough
set_car_only_damaged_by_player 322@ {state} True
set_car_proofs 322@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
request_car_recording 170

:BCRASH1_8760
if 
  not has_car_recording_been_loaded 170
goto_if_false @BCRASH1_8787
wait 0
goto @BCRASH1_8760

:BCRASH1_8787
if and
  not is_car_dead 322@
  not is_char_dead 284@
goto_if_false @BCRASH1_8873
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_8873
freeze_car_position 322@ {state} False
start_playback_recorded_car 322@ {path} 170
set_playback_speed 322@ {speed} 0.65
add_stuck_car_check_with_warp 322@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 1

:BCRASH1_8873
print_now 'BCR1_07' {time} 4000 {flag} 1
if 
  not is_car_dead 328@
goto_if_false @BCRASH1_8942
if and
  not is_char_on_any_bike $scplayer
  not is_char_in_any_car $scplayer
goto_if_false @BCRASH1_8942
print 'BCR1_14' {time} 4000 {flag} 1

:BCRASH1_8942
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2795.252 {y} -1505.949 {z} 138.8073 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2796.0 {y} -1506.5861 {z} 138.9953 {switchStyle} SwitchType.JumpCut
266@ = get_game_timer 
$bc1_cut = 1

:BCRASH1_9016
if 
  $bc1_cut == 1
goto_if_false @BCRASH1_9193
if 
  is_char_on_screen $scplayer
goto_if_false @BCRASH1_9141
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_9111
272@ = store_car_char_is_in_no_save $scplayer
set_car_coordinates 272@ {x} -2789.6721 {y} -1491.142 {z} 137.1726
set_car_heading 272@ {heading} 227.9636
goto @BCRASH1_9141

:BCRASH1_9111
set_char_coordinates $scplayer {x} -2789.6721 {y} -1491.142 {z} 137.1726
set_char_heading $scplayer {heading} 227.9636

:BCRASH1_9141
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 4000
goto_if_false @BCRASH1_9193
266@ = get_game_timer 
$bc1_cut = 2

:BCRASH1_9193
if 
  $bc1_cut == 2
goto_if_false @BCRASH1_9272
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1
goto_if_false @BCRASH1_9272
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
$bc1_stage = 4

:BCRASH1_9272
goto @BCRASH1_9317

:BCRASH1_9279
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'BCR1_10' {time} 5000 {flag} 1
$bc1_stage = 7

:BCRASH1_9317
goto @BCRASH1_9346

:BCRASH1_9324
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
$bc1_stage = 4

:BCRASH1_9346
if 
  $bc1_stage == 4
goto_if_false @BCRASH1_10974
if 
  is_car_dead 322@
goto_if_false @BCRASH1_9454
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_9454
if 
  not is_char_on_foot 284@
goto_if_false @BCRASH1_9447
delete_char 284@
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511
goto @BCRASH1_9454

:BCRASH1_9447
$bc1_stage = 7

:BCRASH1_9454
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_10974
if and
  not is_char_dead 284@
  not is_char_dead $scplayer
goto_if_false @BCRASH1_10974
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_10937
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_9594
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_route,40f) {y} 147@($bc1_route,40f) {z} 187@($bc1_route,40f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @BCRASH1_9594
$bc1_route += 1
$bc1_route_nx += 1

:BCRASH1_9594
if 
  not is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_10134
if 
  34@ == 0
goto_if_false @BCRASH1_9673
task_car_drive_to_coord 284@ {vehicle} 322@ {x} 107@($bc1_route,40f) {y} 147@($bc1_route,40f) {z} 187@($bc1_route,40f) {speed} 321@ {driveStyle} DriveMode.Racing {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
34@ = 1

:BCRASH1_9673
if or
  is_car_on_fire 322@
  is_car_upsidedown 322@
goto_if_false @BCRASH1_9746
set_car_cruise_speed 322@ {maxSpeed} 0.0
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_9739
set_char_relationship 284@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 284@ {handleOrTemplate} DecisionMakerCharTemplate.RandomWeak

:BCRASH1_9739
$bc1_stage = 5

:BCRASH1_9746
if 
  34@ == 1
goto_if_false @BCRASH1_10041
if 
  is_int_var_greater_than_int_var $bc1_final_dest > $bc1_route
goto_if_false @BCRASH1_9955
gosub @BCRASH1_13881
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_route,40f) {y} 147@($bc1_route,40f) {z} 187@($bc1_route,40f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_9948
if and
  $bc1_route > 7
  19 > $bc1_route
goto_if_false @BCRASH1_9886
321@ = 20.0
goto @BCRASH1_9896

:BCRASH1_9886
321@ = 30.0

:BCRASH1_9896
$bc1_route += 1
$bc1_route_nx += 1
task_car_drive_to_coord 284@ {vehicle} 322@ {x} 107@($bc1_route,40f) {y} 147@($bc1_route,40f) {z} 187@($bc1_route,40f) {speed} 321@ {driveStyle} DriveMode.Racing {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCRASH1_9948
goto @BCRASH1_10041

:BCRASH1_9955
if 
  locate_char_in_car_3d 284@ {x} 107@($bc1_route,40f) {y} 147@($bc1_route,40f) {z} 187@($bc1_route,40f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCRASH1_10041
task_car_drive_wander 284@ {vehicle} 322@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
set_car_cruise_speed 322@ {maxSpeed} 50.0
34@ = 2

:BCRASH1_10041
if 
  34@ == 2
goto_if_false @BCRASH1_10134
if 
  not is_char_on_screen 284@
goto_if_false @BCRASH1_10134
if 
  not locate_char_any_means_char_3d $scplayer {target} 284@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @BCRASH1_10134
print_now 'BCR1_12' {time} 6000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_10134
if 
  57@ == 0
goto_if_false @BCRASH1_10293
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 6000
goto_if_false @BCRASH1_10293
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_10293
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_10293
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 322@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_10293
set_playback_speed 322@ {speed} 0.8
print_now 'BCR1_15' {time} 6000 {flag} 1
57@ = 1

:BCRASH1_10293
if 
  is_playback_going_on_for_car 322@
goto_if_false @BCRASH1_10562
233@, 234@, 235@ = get_offset_from_car_in_world_coords 322@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 227@ = 233@
227@ -= 1.5
set_lvar_float_to_lvar_float 228@ = 234@
228@ -= 1.5
set_lvar_float_to_lvar_float 229@ = 235@
229@ -= 1.5
set_lvar_float_to_lvar_float 230@ = 233@
230@ += 1.5
set_lvar_float_to_lvar_float 231@ = 234@
231@ += 1.5
set_lvar_float_to_lvar_float 232@ = 235@
232@ += 1.5
if 
  is_area_occupied 227@ {leftBottomY} 228@ {leftBottomZ} 229@ {rightTopX} 230@ {rightTopY} 231@ {rightTopZ} 232@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BCRASH1_10492
stop_playback_recorded_car 322@

:BCRASH1_10492
if 
  is_car_on_fire 322@
goto_if_false @BCRASH1_10530
stop_playback_recorded_car 322@
set_car_cruise_speed 322@ {maxSpeed} 0.0
$bc1_stage = 5

:BCRASH1_10530
269@ = get_car_health 322@
if 
  900 > 269@
goto_if_false @BCRASH1_10562
stop_playback_recorded_car 322@

:BCRASH1_10562
if 
  51@ == 1
goto_if_false @BCRASH1_10661
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_10661
266@ = get_game_timer 
51@ = 0

:BCRASH1_10661
if 
  51@ == 0
goto_if_false @BCRASH1_10937
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_10889
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if and
  268@ > 1000
  6000 > 268@
goto_if_false @BCRASH1_10811
print_now 'BCR1_07' {time} 100 {flag} 1

:BCRASH1_10811
if 
  268@ > 30000
goto_if_false @BCRASH1_10889
if 
  not locate_char_any_means_char_3d $scplayer {target} 284@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @BCRASH1_10889
print_now 'BCR1_12' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_10889
if 
  is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_10937
51@ = 1

:BCRASH1_10937
if 
  is_car_in_water 322@
goto_if_false @BCRASH1_10974
if 
  does_car_have_stuck_car_check 322@
goto_if_false @BCRASH1_10974
remove_stuck_car_check 322@

:BCRASH1_10974
if 
  $bc1_stage == 5
goto_if_false @BCRASH1_11258
if 
  is_car_dead 322@
goto_if_false @BCRASH1_11082
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11082
if 
  not is_char_on_foot 284@
goto_if_false @BCRASH1_11075
delete_char 284@
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511
goto @BCRASH1_11082

:BCRASH1_11075
$bc1_stage = 6

:BCRASH1_11082
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11194
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11187
if 
  is_car_stopped 322@
goto_if_false @BCRASH1_11187
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_11187
324@, 325@, 326@ = get_car_coordinates 322@
task_leave_car_and_flee 284@ {vehicle} 322@ {x} 324@ {y} 325@ {z} 326@
$bc1_stage = 6

:BCRASH1_11187
goto @BCRASH1_11258

:BCRASH1_11194
if and
  not is_char_dead 284@
  not is_car_dead 322@
goto_if_false @BCRASH1_11258
if 
  is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_11258
task_leave_car_and_flee 284@ {vehicle} 322@ {x} 324@ {y} 325@ {z} 326@
$bc1_stage = 6

:BCRASH1_11258
if and
  $bc1_stage > 0
  7 > $bc1_stage
goto_if_false @BCRASH1_11595
if 
  does_char_exist 284@
goto_if_false @BCRASH1_11595
if 
  is_char_head_missing 284@
goto_if_false @BCRASH1_11361
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11338
lock_car_doors 322@ {lockStatus} CarLock.Unlocked

:BCRASH1_11338
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_11361
if 
  is_char_dead 284@
goto_if_false @BCRASH1_11407
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11400
lock_car_doors 322@ {lockStatus} CarLock.Unlocked

:BCRASH1_11400
$bc1_stage = 7

:BCRASH1_11407
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11439
if 
  has_char_been_photographed 284@
goto_if_false @BCRASH1_11439

:BCRASH1_11439
if 
  56@ == 1
goto_if_false @BCRASH1_11595
if 
  37@ <> 2
goto_if_false @BCRASH1_11595
if 
  is_car_dead 322@
goto_if_false @BCRASH1_11595
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11595
283@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -2822.47 {y} -1518.595 {z} 139.7656 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord -1 {x} -2822.97 {y} -1514.244 {z} 138.2893 {speed} MoveState.Run {time} -2
task_flee_char -1 {threat} $scplayer {radius} 1000.0 {time} 5000000
close_sequence_task 283@
perform_sequence_task 284@ {sequence} 283@
37@ = 2

:BCRASH1_11595
if 
  $bc1_stage == 6
goto_if_false @BCRASH1_11700
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11700
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_11700
if 
  not is_char_sitting_in_car 284@ {vehicle} 322@
goto_if_false @BCRASH1_11700
remove_blip 285@
285@ = add_blip_for_char 284@
print_now 'BCR1_08' {time} 5000 {flag} 1
$bc1_stage = 7

:BCRASH1_11700
if 
  $bc1_stage > 3
goto_if_false @BCRASH1_11775
if 
  52@ == 0
goto_if_false @BCRASH1_11775
if 
  not does_char_exist 284@
goto_if_false @BCRASH1_11775
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_11775
if 
  $bc1_stage == 7
goto_if_false @BCRASH1_12538
if 
  does_char_exist 284@
goto_if_false @BCRASH1_11848
if 
  is_char_head_missing 284@
goto_if_false @BCRASH1_11848
print_now 'BCR1_09' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_11848
if 
  52@ == 0
goto_if_false @BCRASH1_12477
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_12401
if 
  37@ == 0
goto_if_false @BCRASH1_12005
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_car_dead 322@
goto_if_false @BCRASH1_11948
36@ = get_script_task_status 284@ {taskId} 1487
goto @BCRASH1_11955

:BCRASH1_11948
set_lvar_int_to_constant 36@ = 7

:BCRASH1_11955
if 
  is_int_lvar_equal_to_constant 36@ == 7
goto_if_false @BCRASH1_12005
task_flee_char 284@ {threat} $scplayer {radius} 50.0 {time} 100000000
37@ = 1
36@ = 5

:BCRASH1_12005
if 
  37@ == 1
goto_if_false @BCRASH1_12070
36@ = get_script_task_status 284@ {taskId} 1499
if 
  is_int_lvar_equal_to_constant 36@ == 7
goto_if_false @BCRASH1_12070
task_flee_char 284@ {threat} $scplayer {radius} 50.0 {time} 100000000

:BCRASH1_12070
if 
  51@ == 1
goto_if_false @BCRASH1_12169
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_12169
266@ = get_game_timer 
51@ = 0

:BCRASH1_12169
if 
  51@ == 0
goto_if_false @BCRASH1_12401
67@, 68@, 69@ = get_char_coordinates $scplayer
287@, 288@, 289@ = get_char_coordinates 284@
if 
  not is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_12353
267@ = get_game_timer 
set_lvar_int_to_lvar_int 268@ = 267@
sub_int_lvar_from_int_lvar 268@ -= 266@
if 
  268@ > 1000
goto_if_false @BCRASH1_12311
print_now 'BCR1_07' {time} 100 {flag} 1

:BCRASH1_12311
if 
  268@ > 15000
goto_if_false @BCRASH1_12353
print_now 'BCR1_12' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_12353
if 
  is_line_of_sight_clear 67@ {fromY} 68@ {fromZ} 69@ {toX} 287@ {toY} 288@ {toZ} 289@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @BCRASH1_12401
51@ = 1

:BCRASH1_12401
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_12477
if 
  does_char_exist 284@
goto_if_false @BCRASH1_12477
if 
  has_char_been_photographed 284@
goto_if_false @BCRASH1_12477
if 
  is_char_dead 284@
goto_if_false @BCRASH1_12477
remove_blip 285@
52@ = 1

:BCRASH1_12477
if 
  52@ == 1
goto_if_false @BCRASH1_12538
66@ = add_blip_for_coord -2044.1 {y} -2523.8601 {z} 31.11
print_now 'BCR1_17' {time} 5000 {flag} 1
$bc1_stage = 8

:BCRASH1_12538
if 
  $bc1_stage == 8
goto_if_false @BCRASH1_12636
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_12636
if 
  locate_char_on_foot_3d $scplayer {x} -2044.1 {y} -2523.8601 {z} 31.11 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @BCRASH1_12636
set_char_ammo $scplayer {weaponType} WeaponType.Camera {ammo} 0
goto @BCRASH1_13609

:BCRASH1_12636
if 
  $bc1_stage == 7
goto_if_false @BCRASH1_13301
if 
  52@ == 0
goto_if_false @BCRASH1_13192
276@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Camera
if 
  276@ > 0
goto_if_false @BCRASH1_13052
if 
  59@ == 2
goto_if_false @BCRASH1_12738
285@ = add_blip_for_dead_char 284@
remove_blip 271@
59@ = 1

:BCRASH1_12738
if 
  59@ == 1
goto_if_false @BCRASH1_13045
if 
  is_char_in_water 284@
goto_if_false @BCRASH1_12779
$bc1_in_water = 1

:BCRASH1_12779
if and
  not is_char_dead $scplayer
  is_char_dead 284@
goto_if_false @BCRASH1_13045
print_now 'BCR1_10' {time} 100 {flag} 1
if 
  does_char_exist 284@
goto_if_false @BCRASH1_13045
if 
  is_char_dead 284@
goto_if_false @BCRASH1_13045
if 
  58@ == 0
goto_if_false @BCRASH1_12914
if 
  locate_char_any_means_3d $scplayer {x} 287@ {y} 288@ {z} 289@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCRASH1_12914
58@ = 1

:BCRASH1_12914
if 
  58@ == 1
goto_if_false @BCRASH1_13045
if 
  not locate_char_any_means_3d $scplayer {x} 287@ {y} 288@ {z} 289@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @BCRASH1_13045
if 
  $bc1_in_water == 1
goto_if_false @BCRASH1_13022
print_now 'BCR1_16' {time} 5000 {flag} 1
goto @BCRASH1_13511
goto @BCRASH1_13045

:BCRASH1_13022
print_now 'BCR1_16' {time} 5000 {flag} 1
goto @BCRASH1_13511

:BCRASH1_13045
goto @BCRASH1_13192

:BCRASH1_13052
if 
  is_char_dead 284@
goto_if_false @BCRASH1_13192
if 
  59@ == 1
goto_if_false @BCRASH1_13111
if 
  276@ == 0
goto_if_false @BCRASH1_13111
59@ = 0

:BCRASH1_13111
if 
  59@ == 0
goto_if_false @BCRASH1_13192
print_now 'BCR1_11' {time} 5000 {flag} 1
remove_blip 285@
270@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 24 {x} -2044.1 {y} -2523.8601 {z} 31.11
271@ = add_blip_for_pickup 270@
59@ = 2

:BCRASH1_13192
if and
  37@ == 0
  $bc1_stage <> 4
  $bc1_stage <> 5
goto_if_false @BCRASH1_13301
if and
  not is_char_dead 284@
  not is_char_dead $scplayer
goto_if_false @BCRASH1_13301
if 
  locate_char_any_means_char_2d $scplayer {target} 284@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @BCRASH1_13301
task_flee_char 284@ {threat} $scplayer {radius} 50.0 {time} 100000000
37@ = 1

:BCRASH1_13301
if 
  $bc1_stage > 3
goto_if_false @BCRASH1_13483
if 
  54@ == 1
goto_if_false @BCRASH1_13483
if and
  not is_char_dead $scplayer
  not is_car_dead 328@
  not is_char_dead 284@
goto_if_false @BCRASH1_13483
if or
  is_char_in_car $scplayer {vehicle} 328@
  not locate_char_any_means_car_2d $scplayer {vehicle} 328@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BCRASH1_13425
print 'BCR1_13' {time} 5000 {flag} 1
54@ = 0

:BCRASH1_13425
if 
  is_char_in_any_car $scplayer
goto_if_false @BCRASH1_13483
if 
  not is_char_in_car $scplayer {vehicle} 328@
goto_if_false @BCRASH1_13483
print 'BCR1_13' {time} 5000 {flag} 1
54@ = 0

:BCRASH1_13483
goto @BCRASH1_3584
wait 1500
restore_camera_jumpcut 
set_player_control $player1 {state} True
goto @BCRASH1_13609

:BCRASH1_13511
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  is_player_playing $player1
goto_if_false @BCRASH1_13586
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_13586
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @BCRASH1_13586
set_char_ammo $scplayer {weaponType} WeaponType.Camera {ammo} 0

:BCRASH1_13586
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_13607
delete_char 284@

:BCRASH1_13607
return 

:BCRASH1_13609
register_mission_passed 'BCRASH1'
player_made_progress 1
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
set_int_stat StatId.PassedBcrash1 {value} 1
play_mission_passed_tune 1
$flag_bcrash_mission_counter += 1
remove_blip $bcrash_contact_blip
$call_delay = 15000
return 

:BCRASH1_13680
gosub @BCRASH1_241
gosub @BCRASH1_670
gosub @BCRASH1_785
if 
  is_player_playing $player1
goto_if_false @BCRASH1_13760
if 
  not is_char_dead $scplayer
goto_if_false @BCRASH1_13760
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @BCRASH1_13760
set_char_ammo $scplayer {weaponType} WeaponType.Camera {ammo} 36

:BCRASH1_13760
if 
  not is_car_dead 328@
goto_if_false @BCRASH1_13791
set_car_proofs 328@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:BCRASH1_13791
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 468
remove_blip 285@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 271@
remove_pickup 270@
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:BCRASH1_13861
73@, 74@, 75@ = get_char_coordinates 290@(50@,5i)
return 

:BCRASH1_13881
62@ = -1
60@ = 10000000.0
63@ = 38

:BCRASH1_13905
if 
  38 > 63@
goto_if_false @BCRASH1_14093
if 
  not is_char_dead 284@
goto_if_false @BCRASH1_14079
61@ = get_distance_between_coords_2d 287@ {fromY} 288@ {toX} 107@($bc1_route,40f) {toZ} 147@($bc1_route,40f)
if 
  is_float_lvar_greater_than_float_lvar 60@ > 61@
goto_if_false @BCRASH1_14079
set_lvar_float_to_lvar_float 60@ = 61@
set_lvar_int_to_lvar_int 62@ = 63@
if 
  is_float_lvar_greater_than_float_lvar 187@($bc1_route,40f) > 187@(62@,40f)
goto_if_false @BCRASH1_14079
set_lvar_float_to_lvar_float 61@ = 187@($bc1_route,40f)
sub_float_lvar_from_float_lvar 61@ -= 187@(62@,40f)
if 
  61@ > 3.0
goto_if_false @BCRASH1_14079
set_var_int_to_lvar_int $bc1_route = 62@

:BCRASH1_14079
63@ += 1
goto @BCRASH1_13905

:BCRASH1_14093
return 

//-------------Mission 40---------------
// Originally: First Date

:CATALIN
gosub @CATALIN_36
if 
  has_deatharrest_been_executed 
goto_if_false @CATALIN_27
gosub @CATALIN_7507

:CATALIN_27
gosub @CATALIN_7530
terminate_this_script 

:CATALIN_36
$onmission = 1
register_mission_given 
script_name 'CATALIN'
wait 0
load_mission_text 'CAT'
52@ = 0
53@ = 0
54@ = 0
set_lvar_int_to_var_int 55@ = $scplayer
make_player_gang_disappear 
if 
  $cat_counter == 0
goto_if_false @CATALIN_1203
set_area_visible 1
load_cutscene 'CAT_1'

:CATALIN_135
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_159
wait 0
goto @CATALIN_135

:CATALIN_159
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_168
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_192
wait 0
goto @CATALIN_168

:CATALIN_192
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_207
if 
  get_fading_status 
goto_if_false @CATALIN_231
wait 0
goto @CATALIN_207

:CATALIN_231
set_area_visible 0
load_special_character 5 {modelName} 'CAT'

:CATALIN_248
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_287
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_248

:CATALIN_287
clear_area 681.1634 {y} -478.1859 {z} 15.3281 {radius} 0.5 {clearParticles} False
load_scene 681.1634 {y} -478.1859 {z} 15.3281
set_char_coordinates $scplayer {x} 681.1634 {y} -478.1859 {z} 15.3281
set_char_heading $scplayer {heading} 177.0008
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 682.8292 {y} -477.8332 {z} 15.3359
set_char_heading $catalina {heading} 149.5317
set_lvar_text_label 56@s = 'CAT_AA'
set_lvar_text_label 58@s = 'CAT_AB'
set_lvar_text_label 60@s = 'CAT_AC'
set_lvar_text_label 62@s = 'CAT_AD'
set_lvar_int_to_constant 96@ = 8600
set_lvar_int_to_constant 97@ = 8601
set_lvar_int_to_constant 98@ = 8602
set_lvar_int_to_constant 99@ = 8603
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
52@ = 4
set_lvar_text_label 136@s = 'CAT_BA'
set_lvar_text_label 138@s = 'CAT_BB'
set_lvar_text_label 140@s = 'CAT_BC'
set_lvar_text_label 142@s = 'CAT_BD'
set_lvar_text_label 144@s = 'CAT_BE'
set_lvar_text_label 146@s = 'CAT_BH'
set_lvar_text_label 148@s = 'CAT_BG'
set_lvar_text_label 150@s = 'CAT_BF'
set_lvar_text_label 152@s = 'CAT_BI'
set_lvar_text_label 154@s = 'CAT_BJ'
set_lvar_text_label 156@s = 'CAT_BK'
set_lvar_int_to_constant 160@ = 8604
set_lvar_int_to_constant 161@ = 8605
set_lvar_int_to_constant 162@ = 8606
set_lvar_int_to_constant 163@ = 8607
set_lvar_int_to_constant 164@ = 8608
set_lvar_int_to_constant 165@ = 8611
set_lvar_int_to_constant 166@ = 8610
set_lvar_int_to_constant 167@ = 8609
set_lvar_int_to_constant 168@ = 8612
set_lvar_int_to_constant 169@ = 8613
set_lvar_int_to_constant 170@ = 8614
set_lvar_int_to_lvar_int 172@ = 55@
set_lvar_int_to_var_int 173@ = $catalina
set_lvar_int_to_lvar_int 174@ = 55@
set_lvar_int_to_var_int 175@ = $catalina
set_lvar_int_to_var_int 176@ = $catalina
set_lvar_int_to_var_int 177@ = $catalina
set_lvar_int_to_var_int 178@ = $catalina
set_lvar_int_to_var_int 179@ = $catalina
set_lvar_int_to_var_int 180@ = $catalina
set_lvar_int_to_lvar_int 181@ = 55@
set_lvar_int_to_var_int 182@ = $catalina
53@ = 11
set_lvar_text_label 184@s = 'CAT_CA'
set_lvar_text_label 186@s = 'CAT_CB'
set_lvar_text_label 188@s = 'CAT_CC'
set_lvar_text_label 190@s = 'CAT_CD'
set_lvar_text_label 192@s = 'CAT_CE'
set_lvar_text_label 194@s = 'CAT_CF'
set_lvar_text_label 196@s = 'CAT_CG'
set_lvar_text_label 198@s = 'CAT_CH'
set_lvar_text_label 200@s = 'CAT_CI'
set_lvar_text_label 202@s = 'CAT_CJ'
set_lvar_text_label 204@s = 'CAT_CK'
set_lvar_int_to_constant 208@ = 8615
set_lvar_int_to_constant 209@ = 8616
set_lvar_int_to_constant 210@ = 8617
set_lvar_int_to_constant 211@ = 8618
set_lvar_int_to_constant 212@ = 8619
set_lvar_int_to_constant 213@ = 8620
set_lvar_int_to_constant 214@ = 8621
set_lvar_int_to_constant 215@ = 8622
set_lvar_int_to_constant 216@ = 8623
set_lvar_int_to_constant 217@ = 8624
set_lvar_int_to_constant 218@ = 8625
set_lvar_int_to_lvar_int 220@ = 55@
set_lvar_int_to_var_int 221@ = $catalina
set_lvar_int_to_var_int 222@ = $catalina
set_lvar_int_to_lvar_int 223@ = 55@
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_var_int 225@ = $catalina
set_lvar_int_to_var_int 226@ = $catalina
set_lvar_int_to_lvar_int 227@ = 55@
set_lvar_int_to_var_int 228@ = $catalina
set_lvar_int_to_var_int 229@ = $catalina
set_lvar_int_to_lvar_int 230@ = 55@
54@ = 11
goto @CATALIN_3878

:CATALIN_1203
force_weather_now WeatherType.ExtraSunnyCountryside
if 
  $cat_counter == 1
goto_if_false @CATALIN_2211
load_cutscene 'CAT_2'

:CATALIN_1236
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_1260
wait 0
goto @CATALIN_1236

:CATALIN_1260
clear_area 868.521 {y} -30.0862 {z} 63.1875 {radius} 5.8 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_1293
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_1317
wait 0
goto @CATALIN_1293

:CATALIN_1317
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_1332
if 
  get_fading_status 
goto_if_false @CATALIN_1356
wait 0
goto @CATALIN_1332

:CATALIN_1356
set_area_visible 0
set_int_stat StatId.StartedCat2 {value} 1
load_special_character 5 {modelName} 'CAT'

:CATALIN_1380
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_1419
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_1380

:CATALIN_1419
clear_area 868.4825 {y} -29.6753 {z} 62.1875 {radius} 0.5 {clearParticles} False
load_scene 868.4825 {y} -29.6753 {z} 62.1875
set_char_coordinates $scplayer {x} 868.4825 {y} -29.6753 {z} 62.1875
set_char_heading $scplayer {heading} 157.9281
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 867.7455 {y} -29.0865 {z} 62.1875
set_char_heading $catalina {heading} 225.9654
set_lvar_text_label 56@s = 'CAT_FA'
set_lvar_int_to_constant 96@ = 8657
set_lvar_int_to_lvar_int 116@ = 55@
set_lvar_text_label 58@s = 'CAT_FB'
set_lvar_int_to_constant 97@ = 8658
set_lvar_int_to_var_int 117@ = $catalina
37@ = 2
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_1661
set_lvar_text_label 56@(37@,20s) = 'CAT_FC'
set_lvar_int_to_constant 96@(37@,20i) = 8659
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1661
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_1728
set_lvar_text_label 56@(37@,20s) = 'CAT_FD'
set_lvar_int_to_constant 96@(37@,20i) = 8660
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1728
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_1862
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_1813
set_lvar_text_label 56@(37@,20s) = 'CAT_FE'
set_lvar_int_to_constant 96@(37@,20i) = 8661
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
goto @CATALIN_1855

:CATALIN_1813
set_lvar_text_label 56@(37@,20s) = 'CAT_FG'
set_lvar_int_to_constant 96@(37@,20i) = 8663
set_lvar_int_to_var_int 116@(37@,20i) = $catalina

:CATALIN_1855
37@ += 1

:CATALIN_1862
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_1929
set_lvar_text_label 56@(37@,20s) = 'CAT_FH'
set_lvar_int_to_constant 96@(37@,20i) = 8664
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1

:CATALIN_1929
set_lvar_text_label 56@(37@,20s) = 'CAT_FI'
set_lvar_int_to_constant 96@(37@,20i) = 8665
set_lvar_int_to_lvar_int 116@(37@,20i) = 55@
37@ += 1
set_lvar_text_label 56@(37@,20s) = 'CAT_FJ'
set_lvar_int_to_constant 96@(37@,20i) = 8666
set_lvar_int_to_lvar_int 116@(37@,20i) = 55@
37@ += 1
set_lvar_text_label 56@(37@,20s) = 'CAT_FK'
set_lvar_int_to_constant 96@(37@,20i) = 8667
set_lvar_int_to_var_int 116@(37@,20i) = $catalina
37@ += 1
set_lvar_int_to_lvar_int 52@ = 37@
set_lvar_text_label 136@s = 'CAT_FL'
set_lvar_text_label 138@s = 'CAT_FM'
set_lvar_text_label 140@s = 'CAT_FN'
set_lvar_text_label 142@s = 'CAT_FO'
set_lvar_int_to_constant 160@ = 8668
set_lvar_int_to_constant 161@ = 8669
set_lvar_int_to_constant 162@ = 8670
set_lvar_int_to_constant 163@ = 8671
set_lvar_int_to_var_int 172@ = $catalina
set_lvar_int_to_lvar_int 173@ = 55@
set_lvar_int_to_var_int 174@ = $catalina
set_lvar_int_to_var_int 175@ = $catalina
53@ = 4

:CATALIN_2211
if 
  $cat_counter == 2
goto_if_false @CATALIN_3101
load_cutscene 'CAT_3'

:CATALIN_2240
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_2264
wait 0
goto @CATALIN_2240

:CATALIN_2264
clear_area 868.521 {y} -30.0862 {z} 63.1875 {radius} 5.8 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_2297
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_2321
wait 0
goto @CATALIN_2297

:CATALIN_2321
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_2336
if 
  get_fading_status 
goto_if_false @CATALIN_2360
wait 0
goto @CATALIN_2336

:CATALIN_2360
set_area_visible 0
load_special_character 5 {modelName} 'CAT'

:CATALIN_2377
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_2416
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_2377

:CATALIN_2416
clear_area 868.4825 {y} -29.6753 {z} 62.1875 {radius} 0.5 {clearParticles} False
load_scene 868.4825 {y} -29.6753 {z} 62.1875
set_char_coordinates $scplayer {x} 868.4825 {y} -29.6753 {z} 62.1875
set_char_heading $scplayer {heading} 157.9281
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 867.7455 {y} -29.0865 {z} 62.1875
set_char_heading $catalina {heading} 225.9654
set_lvar_text_label 56@s = 'CAT_KA'
set_lvar_text_label 58@s = 'CAT_KB'
set_lvar_text_label 60@s = 'CAT_KC'
set_lvar_text_label 62@s = 'CAT_KD'
set_lvar_text_label 64@s = 'CAT_KE'
set_lvar_text_label 66@s = 'CAT_KF'
set_lvar_text_label 68@s = 'CAT_KG'
set_lvar_text_label 70@s = 'CAT_KH'
set_lvar_text_label 72@s = 'CAT_KI'
set_lvar_text_label 74@s = 'CAT_KJ'
set_lvar_text_label 76@s = 'CAT_KK'
set_lvar_text_label 78@s = 'CAT_KL'
set_lvar_text_label 80@s = 'CAT_KM'
set_lvar_text_label 82@s = 'CAT_KN'
set_lvar_text_label 84@s = 'CAT_KO'
set_lvar_text_label 86@s = 'CAT_KP'
set_lvar_text_label 88@s = 'CAT_KQ'
set_lvar_text_label 90@s = 'CAT_KR'
set_lvar_text_label 92@s = 'CAT_KS'
set_lvar_int_to_constant 96@ = 8692
set_lvar_int_to_constant 97@ = 8693
set_lvar_int_to_constant 98@ = 8694
set_lvar_int_to_constant 99@ = 8695
set_lvar_int_to_constant 100@ = 8696
set_lvar_int_to_constant 101@ = 8697
set_lvar_int_to_constant 102@ = 8698
set_lvar_int_to_constant 103@ = 8699
set_lvar_int_to_constant 104@ = 8700
set_lvar_int_to_constant 105@ = 8701
set_lvar_int_to_constant 106@ = 8702
set_lvar_int_to_constant 107@ = 8703
set_lvar_int_to_constant 108@ = 8704
set_lvar_int_to_constant 109@ = 8705
set_lvar_int_to_constant 110@ = 8706
set_lvar_int_to_constant 111@ = 8707
set_lvar_int_to_constant 112@ = 8708
set_lvar_int_to_constant 113@ = 8709
set_lvar_int_to_constant 114@ = 8710
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
set_lvar_int_to_var_int 120@ = $catalina
set_lvar_int_to_lvar_int 121@ = 55@
set_lvar_int_to_var_int 122@ = $catalina
set_lvar_int_to_var_int 123@ = $catalina
set_lvar_int_to_lvar_int 124@ = 55@
set_lvar_int_to_var_int 125@ = $catalina
set_lvar_int_to_var_int 126@ = $catalina
set_lvar_int_to_var_int 127@ = $catalina
set_lvar_int_to_var_int 128@ = $catalina
set_lvar_int_to_var_int 129@ = $catalina
set_lvar_int_to_var_int 130@ = $catalina
set_lvar_int_to_lvar_int 131@ = 55@
set_lvar_int_to_var_int 132@ = $catalina
set_lvar_int_to_lvar_int 133@ = 55@
set_lvar_int_to_var_int 134@ = $catalina
52@ = 19

:CATALIN_3101
if 
  $cat_counter == 3
goto_if_false @CATALIN_3878
load_cutscene 'CAT_4'

:CATALIN_3130
if 
  not has_cutscene_loaded 
goto_if_false @CATALIN_3154
wait 0
goto @CATALIN_3130

:CATALIN_3154
clear_area 868.521 {y} -30.0862 {z} 63.1875 {radius} 5.8 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATALIN_3187
if 
  not has_cutscene_finished 
goto_if_false @CATALIN_3211
wait 0
goto @CATALIN_3187

:CATALIN_3211
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATALIN_3226
if 
  get_fading_status 
goto_if_false @CATALIN_3250
wait 0
goto @CATALIN_3226

:CATALIN_3250
set_area_visible 0
load_special_character 5 {modelName} 'CAT'

:CATALIN_3267
if 
  not has_special_character_loaded 5
goto_if_false @CATALIN_3306
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CATALIN_3267

:CATALIN_3306
clear_area 868.4825 {y} -29.6753 {z} 62.1875 {radius} 0.5 {clearParticles} False
load_scene 868.4825 {y} -29.6753 {z} 62.1875
set_char_coordinates $scplayer {x} 868.4825 {y} -29.6753 {z} 62.1875
set_char_heading $scplayer {heading} 157.9281
set_camera_behind_player 
$catalina = create_char PedType.Special {modelId} 294 {x} 867.7455 {y} -29.0865 {z} 62.1875
set_char_heading $catalina {heading} 225.9654
set_lvar_text_label 56@s = 'CAT4_LA'
set_lvar_text_label 58@s = 'CAT4_LB'
set_lvar_text_label 60@s = 'CAT4_LC'
set_lvar_text_label 62@s = 'CAT4_LD'
set_lvar_text_label 64@s = 'CAT4_LE'
set_lvar_text_label 66@s = 'CAT4_LF'
set_lvar_int_to_constant 96@ = 9671
set_lvar_int_to_constant 97@ = 9672
set_lvar_int_to_constant 98@ = 9673
set_lvar_int_to_constant 99@ = 9674
set_lvar_int_to_constant 100@ = 9675
set_lvar_int_to_constant 101@ = 9676
set_lvar_int_to_var_int 116@ = $catalina
set_lvar_int_to_lvar_int 117@ = 55@
set_lvar_int_to_var_int 118@ = $catalina
set_lvar_int_to_lvar_int 119@ = 55@
set_lvar_int_to_var_int 120@ = $catalina
set_lvar_int_to_lvar_int 121@ = 55@
52@ = 6
set_lvar_text_label 136@s = 'CAT_NA'
set_lvar_text_label 138@s = 'CAT_NB'
set_lvar_text_label 140@s = 'CAT_NC'
set_lvar_text_label 142@s = 'CAT_ND'
set_lvar_text_label 144@s = 'CAT_NE'
set_lvar_text_label 146@s = 'CAT_NF'
set_lvar_text_label 148@s = 'CAT_NG'
set_lvar_text_label 150@s = 'CAT_NH'
set_lvar_text_label 152@s = 'CAT_KT'
set_lvar_int_to_constant 160@ = 8717
set_lvar_int_to_constant 161@ = 8718
set_lvar_int_to_constant 162@ = 8719
set_lvar_int_to_constant 163@ = 8720
set_lvar_int_to_constant 164@ = 8721
set_lvar_int_to_constant 165@ = 8722
set_lvar_int_to_constant 166@ = 8723
set_lvar_int_to_constant 167@ = 8724
set_lvar_int_to_constant 168@ = 8711
set_lvar_int_to_var_int 172@ = $catalina
set_lvar_int_to_lvar_int 173@ = 55@
set_lvar_int_to_var_int 174@ = $catalina
set_lvar_int_to_lvar_int 175@ = 55@
set_lvar_int_to_var_int 176@ = $catalina
set_lvar_int_to_var_int 177@ = $catalina
set_lvar_int_to_lvar_int 178@ = 55@
set_lvar_int_to_var_int 179@ = $catalina
set_lvar_int_to_var_int 180@ = $catalina
53@ = 9

:CATALIN_3878
set_anim_group_for_char $catalina {animGroup} "WOMAN"
set_char_only_damaged_by_player $catalina {state} True
set_char_never_targetted $catalina {state} True
set_char_relationship $catalina {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_health $catalina {health} 100
set_char_suffers_critical_hits $catalina {state} False
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CATALIN_3972
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_player_group_to_follow_always $player1 {state} True
listen_to_player_group_commands $catalina {state} False

:CATALIN_3972
release_weather 
make_player_gang_reappear 
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True

:CATALIN_3990
if 
  get_fading_status 
goto_if_false @CATALIN_4014
wait 0
goto @CATALIN_3990

:CATALIN_4014
if 
  $cat_liquor_banter == 1
goto_if_false @CATALIN_4039
$cat_liquor_banter = 0

:CATALIN_4039
if 
  $cat_otb_banter == 1
goto_if_false @CATALIN_4064
$cat_otb_banter = 0

:CATALIN_4064
if and
  $flag_cat_mission1_passed == 1
  $cat_liquor_banter == 0
goto_if_false @CATALIN_4290
set_lvar_text_label 184@s = 'CAT1_IA'
set_lvar_text_label 186@s = 'CAT1_IB'
set_lvar_text_label 188@s = 'CAT1_IC'
set_lvar_text_label 190@s = 'CAT1_IE'
set_lvar_text_label 192@s = 'CAT1_IF'
set_lvar_text_label 194@s = 'CAT1_IG'
set_lvar_int_to_constant 208@ = 8835
set_lvar_int_to_constant 209@ = 8836
set_lvar_int_to_constant 210@ = 8837
set_lvar_int_to_constant 211@ = 8838
set_lvar_int_to_constant 212@ = 8839
set_lvar_int_to_constant 213@ = 8840
set_lvar_int_to_var_int 220@ = $catalina
set_lvar_int_to_lvar_int 221@ = 55@
set_lvar_int_to_lvar_int 222@ = 55@
set_lvar_int_to_var_int 223@ = $catalina
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_lvar_int 225@ = 55@
54@ = 6
$cat_liquor_banter = 1
goto @CATALIN_4569

:CATALIN_4290
if and
  $flag_cat_mission4_passed == 1
  $cat_otb_banter == 0
goto_if_false @CATALIN_4569
set_lvar_text_label 184@s = 'CAT2_HA'
set_lvar_text_label 186@s = 'CAT2_HB'
set_lvar_text_label 188@s = 'CAT2_HC'
set_lvar_text_label 190@s = 'CAT2_HE'
set_lvar_text_label 192@s = 'CAT2_HF'
set_lvar_text_label 194@s = 'CAT2_HG'
set_lvar_text_label 196@s = 'CAT2_HH'
set_lvar_text_label 198@s = 'CAT2_HI'
set_lvar_int_to_constant 208@ = 9022
set_lvar_int_to_constant 209@ = 9023
set_lvar_int_to_constant 210@ = 9024
set_lvar_int_to_constant 211@ = 9025
set_lvar_int_to_constant 212@ = 9026
set_lvar_int_to_constant 213@ = 9027
set_lvar_int_to_constant 214@ = 9028
set_lvar_int_to_constant 215@ = 9029
set_lvar_int_to_var_int 220@ = $catalina
set_lvar_int_to_var_int 221@ = $catalina
set_lvar_int_to_lvar_int 222@ = 55@
set_lvar_int_to_var_int 223@ = $catalina
set_lvar_int_to_var_int 224@ = $catalina
set_lvar_int_to_var_int 225@ = $catalina
set_lvar_int_to_lvar_int 226@ = 55@
set_lvar_int_to_var_int 227@ = $catalina
54@ = 8
$cat_otb_banter = 1

:CATALIN_4569
232@ = 0
233@ = 0
234@ = 0
235@ = 1
236@ = 0
237@ = 1
238@ = 0
239@ = 0
240@ = 0
241@ = 0
if 
  $cat_counter > 0
goto_if_false @CATALIN_4821
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_4698
242@ = add_sprite_blip_for_coord $507 {y} $513 {z} $519 {sprite} RadarSprite.Cash
238@ = 1

:CATALIN_4698
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_4739
243@ = add_sprite_blip_for_coord $508 {y} $514 {z} $520 {sprite} RadarSprite.Cash
239@ = 1

:CATALIN_4739
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_4780
244@ = add_sprite_blip_for_coord $509 {y} $515 {z} $521 {sprite} RadarSprite.Cash
240@ = 1

:CATALIN_4780
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_4821
245@ = add_sprite_blip_for_coord $510 {y} $516 {z} $522 {sprite} RadarSprite.Cash
241@ = 1

:CATALIN_4821
246@ = 0

:CATALIN_4828
wait 0
$game_timer = get_game_timer 
if 
  not is_char_dead $catalina
goto_if_false @CATALIN_7185
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CATALIN_6878
if 
  locate_char_any_means_char_2d $scplayer {target} $catalina {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CATALIN_5620
if 
  3 > 233@
goto_if_false @CATALIN_5620
if 
  52@(233@,3i) == 0
goto_if_false @CATALIN_4957
233@ += 1
goto @CATALIN_5620

:CATALIN_4957
if 
  233@ == 1
goto_if_false @CATALIN_5063
if 
  not is_char_in_any_car $catalina
goto_if_false @CATALIN_5030
if or
  $cat_counter == 1
  $cat_counter == 3
goto_if_false @CATALIN_5023
goto @CATALIN_5620

:CATALIN_5023
goto @CATALIN_5063

:CATALIN_5030
if 
  232@ == 0
goto_if_false @CATALIN_5063
set_lvar_int_to_var_int 234@ = $game_timer
234@ -= 10

:CATALIN_5063
if 
  is_int_var_greater_than_int_lvar $game_timer > 234@
goto_if_false @CATALIN_5620
if 
  $audio_line_is_active == 0
goto_if_false @CATALIN_5620
if 
  233@ == 0
goto_if_false @CATALIN_5201
set_var_text_label s$audio_string = 56@(232@,20s)
set_var_int_to_lvar_int $audio_sound_file = 96@(232@,20i)
start_new_script @AUDIOL 116@(232@,20i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 116@(232@,20i) == $catalina
goto_if_false @CATALIN_5201
task_look_at_char $catalina {target} 55@ {time} 3000

:CATALIN_5201
if 
  233@ == 1
goto_if_false @CATALIN_5302
set_var_text_label s$audio_string = 136@(232@,12s)
set_var_int_to_lvar_int $audio_sound_file = 160@(232@,12i)
start_new_script @AUDIOL 172@(232@,12i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 172@(232@,12i) == $catalina
goto_if_false @CATALIN_5302
task_look_at_char $catalina {target} 55@ {time} 3000

:CATALIN_5302
if 
  233@ == 2
goto_if_false @CATALIN_5403
set_var_text_label s$audio_string = 184@(232@,12s)
set_var_int_to_lvar_int $audio_sound_file = 208@(232@,12i)
start_new_script @AUDIOL 220@(232@,12i) 0 1 235@ 232@ 
if 
  is_int_lvar_equal_to_int_var 220@(232@,12i) == $catalina
goto_if_false @CATALIN_5403
task_look_at_char $catalina {target} 55@ {time} 3000

:CATALIN_5403
if 
  235@ == 1
goto_if_false @CATALIN_5435
235@ = 2
goto @CATALIN_5442

:CATALIN_5435
235@ = 1

:CATALIN_5442
set_lvar_int_to_var_int 234@ = $game_timer
234@ += 500
232@ += 1
if 
  is_int_lvar_greater_than_int_lvar 52@(233@,3i) > 232@
goto_if_false @CATALIN_5590
clear_mission_audio 235@
if 
  233@ == 0
goto_if_false @CATALIN_5523
load_mission_audio 235@ {audioId} 96@(232@,20i)

:CATALIN_5523
if 
  233@ == 1
goto_if_false @CATALIN_5553
load_mission_audio 235@ {audioId} 160@(232@,12i)

:CATALIN_5553
if 
  233@ == 2
goto_if_false @CATALIN_5583
load_mission_audio 235@ {audioId} 208@(232@,12i)

:CATALIN_5583
goto @CATALIN_5620

:CATALIN_5590
232@ = 0
set_lvar_int_to_var_int 234@ = $game_timer
234@ += 10000
233@ += 1

:CATALIN_5620
if 
  $cat_counter == 0
goto_if_false @CATALIN_5920
if 
  233@ == 1
goto_if_false @CATALIN_5920
if 
  236@ == 0
goto_if_false @CATALIN_5722
if 
  232@ > 6
goto_if_false @CATALIN_5722
242@ = add_sprite_blip_for_coord $507 {y} $513 {z} $519 {sprite} RadarSprite.Cash
238@ = 1
236@ += 1

:CATALIN_5722
if 
  236@ == 1
goto_if_false @CATALIN_5788
if 
  232@ > 7
goto_if_false @CATALIN_5788
243@ = add_sprite_blip_for_coord $508 {y} $514 {z} $520 {sprite} RadarSprite.Cash
239@ = 1
236@ += 1

:CATALIN_5788
if 
  236@ == 2
goto_if_false @CATALIN_5854
if 
  232@ > 8
goto_if_false @CATALIN_5854
244@ = add_sprite_blip_for_coord $509 {y} $515 {z} $521 {sprite} RadarSprite.Cash
240@ = 1
236@ += 1

:CATALIN_5854
if 
  236@ == 3
goto_if_false @CATALIN_5920
if 
  232@ > 9
goto_if_false @CATALIN_5920
245@ = add_sprite_blip_for_coord $510 {y} $516 {z} $522 {sprite} RadarSprite.Cash
241@ = 1
236@ += 1

:CATALIN_5920
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CATALIN_6307
if 
  $flag_cat_mission_counter == 0
goto_if_false @CATALIN_6028
clear_area $507 {y} $513 {z} $519 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $507 {y} $513 {z} $519
set_var_float_to_var_float $x = $507
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $513 {z} $519
load_scene $507 {y} $513 {z} $519

:CATALIN_6028
if 
  $flag_cat_mission_counter == 1
goto_if_false @CATALIN_6121
clear_area $508 {y} $514 {z} $520 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $508 {y} $514 {z} $520
set_var_float_to_var_float $x = $508
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $514 {z} $520
load_scene $508 {y} $514 {z} $520

:CATALIN_6121
if 
  $flag_cat_mission_counter == 2
goto_if_false @CATALIN_6214
clear_area $509 {y} $515 {z} $521 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $509 {y} $515 {z} $521
set_var_float_to_var_float $x = $509
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $515 {z} $521
load_scene $509 {y} $515 {z} $521

:CATALIN_6214
if 
  $flag_cat_mission_counter == 3
goto_if_false @CATALIN_6307
clear_area $510 {y} $516 {z} $522 {radius} 0.5 {clearParticles} False
set_char_coordinates $scplayer {x} $510 {y} $516 {z} $522
set_var_float_to_var_float $x = $510
$x -= 1.0
set_char_coordinates $catalina {x} $x {y} $516 {z} $522
load_scene $510 {y} $516 {z} $522

:CATALIN_6307
if 
  $flag_cat_mission1_passed == 0
goto_if_false @CATALIN_6448
if 
  238@ == 1
goto_if_false @CATALIN_6448
if 
  locate_char_any_means_3d $scplayer {x} $507 {y} $513 {z} $519 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6448
set_player_control $player1 {state} False
print_big 'CAT_1' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6415
if 
  get_fading_status 
goto_if_false @CATALIN_6439
wait 0
goto @CATALIN_6415

:CATALIN_6439
$load_and_launch_catalina_mission = 0
return 

:CATALIN_6448
if 
  $flag_cat_mission2_passed == 0
goto_if_false @CATALIN_6589
if 
  239@ == 1
goto_if_false @CATALIN_6589
if 
  locate_char_any_means_3d $scplayer {x} $508 {y} $514 {z} $520 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6589
set_player_control $player1 {state} False
print_big 'CAT_2' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6556
if 
  get_fading_status 
goto_if_false @CATALIN_6580
wait 0
goto @CATALIN_6556

:CATALIN_6580
$load_and_launch_catalina_mission = 1
return 

:CATALIN_6589
if 
  $flag_cat_mission3_passed == 0
goto_if_false @CATALIN_6730
if 
  240@ == 1
goto_if_false @CATALIN_6730
if 
  locate_char_any_means_3d $scplayer {x} $509 {y} $515 {z} $521 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6730
set_player_control $player1 {state} False
print_big 'CAT_3' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6697
if 
  get_fading_status 
goto_if_false @CATALIN_6721
wait 0
goto @CATALIN_6697

:CATALIN_6721
$load_and_launch_catalina_mission = 2
return 

:CATALIN_6730
if 
  $flag_cat_mission4_passed == 0
goto_if_false @CATALIN_6871
if 
  241@ == 1
goto_if_false @CATALIN_6871
if 
  locate_char_any_means_3d $scplayer {x} $510 {y} $516 {z} $522 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CATALIN_6871
set_player_control $player1 {state} False
print_big 'CAT_4' {time} 1000 {style} TextStyle.BottomRight
do_fade 500 {direction} Fade.Out

:CATALIN_6838
if 
  get_fading_status 
goto_if_false @CATALIN_6862
wait 0
goto @CATALIN_6838

:CATALIN_6862
$load_and_launch_catalina_mission = 3
return 

:CATALIN_6871
goto @CATALIN_7178

:CATALIN_6878
if 
  237@ == 1
goto_if_false @CATALIN_6954
print_now 'CATLEFT' {time} 5000 {flag} 1
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
34@ = add_blip_for_char $catalina
set_blip_as_friendly 34@ {state} True
237@ += 1

:CATALIN_6954
if 
  237@ == 2
goto_if_false @CATALIN_7178
if 
  locate_char_any_means_char_2d $scplayer {target} $catalina {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CATALIN_7178
remove_blip 34@
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CATALIN_7035
set_group_member $Players_Group {handle} $catalina

:CATALIN_7035
if 
  238@ == 1
goto_if_false @CATALIN_7069
242@ = add_sprite_blip_for_coord $507 {y} $513 {z} $519 {sprite} RadarSprite.Cash

:CATALIN_7069
if 
  239@ == 1
goto_if_false @CATALIN_7103
243@ = add_sprite_blip_for_coord $508 {y} $514 {z} $520 {sprite} RadarSprite.Cash

:CATALIN_7103
if 
  240@ == 1
goto_if_false @CATALIN_7137
244@ = add_sprite_blip_for_coord $509 {y} $515 {z} $521 {sprite} RadarSprite.Cash

:CATALIN_7137
if 
  241@ == 1
goto_if_false @CATALIN_7171
245@ = add_sprite_blip_for_coord $510 {y} $516 {z} $522 {sprite} RadarSprite.Cash

:CATALIN_7171
237@ = 1

:CATALIN_7178
goto @CATALIN_7208

:CATALIN_7185
print_now 'CATDEAD' {time} 5000 {flag} 1
goto @CATALIN_7507

:CATALIN_7208
if 
  locate_char_any_means_2d $scplayer {x} 660.0 {y} -585.0 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @CATALIN_7455
if 
  246@ == 0
goto_if_false @CATALIN_7448
request_model 514
request_model 584
if and
  has_model_loaded 514
  has_model_loaded 584
goto_if_false @CATALIN_7448
247@ = create_car 514 {x} 657.49 {y} -585.13 {z} 16.36
set_car_heading 247@ {heading} 170.66
set_can_burst_car_tyres 247@ {state} False
set_car_proofs 247@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_load_collision_for_car_flag 247@ {state} False
lock_car_doors 247@ {lockStatus} CarLock.Locked
248@ = create_car 584 {x} 667.49 {y} -583.13 {z} 16.36
set_car_heading 248@ {heading} 184.66
set_car_health 248@ {health} 1250
set_car_proofs 248@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 248@ {state} False
set_load_collision_for_car_flag 248@ {state} False
lock_car_doors 248@ {lockStatus} CarLock.Locked
246@ = 1

:CATALIN_7448
goto @CATALIN_7500

:CATALIN_7455
if 
  246@ == 1
goto_if_false @CATALIN_7500
delete_car 247@
delete_car 248@
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
246@ = 0

:CATALIN_7500
goto @CATALIN_4828

:CATALIN_7507
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_char_elegantly $catalina
return 

:CATALIN_7530
remove_blip 34@
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
unload_special_character 5
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
$onmission = 0
mission_has_finished 
if 
  $load_and_launch_catalina_mission > -1
goto_if_false @CATALIN_7602
do_fade 0 {direction} Fade.Out

:CATALIN_7602
return 

//-------------Mission 41---------------
// Originally: Local Liquor Store

:CAT1
script_name 'CAT1'
gosub @CAT1_47
if 
  has_deatharrest_been_executed 
goto_if_false @CAT1_38
gosub @CAT1_32495

:CAT1_38
gosub @CAT1_32644
terminate_this_script 

:CAT1_47
$onmission = 1
do_fade 0 {direction} Fade.Out
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
$audio_line_is_active = 0
64@ = 0
62@ = 0
63@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0
67@ = load_char_decision_maker DecisionMakerType.Empty
68@ = load_char_decision_maker DecisionMakerType.Tough

:CAT1_165
wait 0
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @CAT1_260
if 
  69@ == 0
goto_if_false @CAT1_234
69@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @CAT1_260

:CAT1_234
69@ = 0
write_debug "LEVEL_DEBUG_OFF"

:CAT1_260
39@ += 1
if 
  39@ > 9
goto_if_false @CAT1_292
39@ = 0

:CAT1_292
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 66@ += 42@
add_int_lvar_to_int_lvar 147@ += 42@
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @CAT1_367
36@ = 1

:CAT1_367
if 
  69@ == 1
goto_if_false @CAT1_392
gosub @CAT1_634

:CAT1_392
switch_start 34@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CAT1_525 {caseNum1} 0 {caseLabel1} @CAT1_455 {caseNum2} 1 {caseLabel2} @CAT1_469 {caseNum3} 2 {caseLabel3} @CAT1_483 {caseNum4} 3 {caseLabel4} @CAT1_497 {caseNum5} 4 {caseLabel5} @CAT1_511 {caseNum6} -1 {caseLabel6} @CAT1_525 {caseNum7} -1 {caseLabel7} @CAT1_525

:CAT1_455
gosub @CAT1_2079
goto @CAT1_525

:CAT1_469
gosub @CAT1_2698
goto @CAT1_525

:CAT1_483
gosub @CAT1_14057
goto @CAT1_525

:CAT1_497
gosub @CAT1_17134
goto @CAT1_525

:CAT1_511
gosub @CAT1_18140
goto @CAT1_525

:CAT1_525
gosub @CAT1_25325

:CAT1_532
if 
  38@ == 0
goto_if_false @CAT1_632
if 
  37@ == 0
goto_if_false @CAT1_616
if 
  36@ == 0
goto_if_false @CAT1_600
goto @CAT1_165
goto @CAT1_609

:CAT1_600
gosub @CAT1_32513
return 

:CAT1_609
goto @CAT1_625

:CAT1_616
gosub @CAT1_32495
return 

:CAT1_625
goto @CAT1_634

:CAT1_632
return 

:CAT1_634
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @CAT1_683
70@ += 1
if 
  70@ > 5
goto_if_false @CAT1_681
70@ = 0

:CAT1_681
clear_all_view_variables 

:CAT1_683
if 
  70@ == 1
goto_if_false @CAT1_872
set_var_int_to_lvar_int $CAT1_view_debug = 34@
set_var_int_to_lvar_int $6972 = 35@
set_var_int_to_lvar_int $6973 = 62@
set_var_int_to_lvar_int $6974 = 65@
set_var_int_to_lvar_int $6975 = 63@
set_var_int_to_lvar_int $6976 = 66@
set_var_int_to_lvar_int $6977 = TIMERA
view_integer_variable $CAT1_view_debug {_p2} "M_STAGE"
view_integer_variable $6972 {_p2} "M_GOALS"
view_integer_variable $6973 {_p2} "DIALOGUE_FLAG"
view_integer_variable $6974 {_p2} "DIALOGUE_TIMER"
view_integer_variable $6975 {_p2} "HELP_FLAG"
view_integer_variable $6976 {_p2} "HELP_TIMER"
view_integer_variable $6977 {_p2} "TIMERA"

:CAT1_872
if 
  70@ == 2
goto_if_false @CAT1_1103
$CAT1_view_debug = 0
$6972 = 0
set_var_int_to_var_int $6973 = $cat1_pickups_collected
set_var_int_to_lvar_int $6974 = 100@
set_var_int_to_lvar_int $6975 = 101@
set_var_int_to_lvar_int $6976 = 102@
set_var_int_to_lvar_int $6977 = 103@
set_var_int_to_lvar_int $6978 = 108@
view_integer_variable $CAT1_view_debug {_p2} "DISABLE_GROUP"
view_integer_variable $6972 {_p2} "IN_GROUP"
view_integer_variable $6973 {_p2} "CAT1_PICKUPS_COLLECTED"
view_integer_variable $6974 {_p2} "PAUSED[0]"
view_integer_variable $6975 {_p2} "PAUSED[1]"
view_integer_variable $6976 {_p2} "PAUSED[2]"
view_integer_variable $6977 {_p2} "PAUSED[3]"
view_integer_variable $6978 {_p2} "SKIPPED_CUTSCENE"

:CAT1_1103
if 
  70@ == 3
goto_if_false @CAT1_1351
set_var_int_to_lvar_int $CAT1_view_debug = 104@
set_var_int_to_lvar_int $6972 = 105@
set_var_int_to_lvar_int $6973 = 106@
set_var_int_to_lvar_int $6974 = 107@
set_var_int_to_lvar_int $6975 = 109@
set_var_int_to_lvar_int $6976 = 110@
set_var_int_to_lvar_int $6977 = 111@
set_var_int_to_lvar_int $6978 = 115@
view_integer_variable $CAT1_view_debug {_p2} "ROBBER_FLAG[0]"
view_integer_variable $6972 {_p2} "ROBBER_FLAG[1]"
view_integer_variable $6973 {_p2} "ROBBER_FLAG[2]"
view_integer_variable $6974 {_p2} "ROBBER_FLAG[3]"
view_integer_variable $6975 {_p2} "CHASE_FLAG[0]"
view_integer_variable $6976 {_p2} "CHASE_FLAG[1]"
view_integer_variable $6977 {_p2} "CHASE_FLAG[2]"
view_integer_variable $6978 {_p2} "PLAYER_PROGRESS"

:CAT1_1351
if 
  70@ == 4
goto_if_false @CAT1_1629
set_var_int_to_lvar_int $CAT1_view_debug = 112@
set_var_int_to_lvar_int $6972 = 113@
set_var_int_to_lvar_int $6973 = 114@
set_var_float_to_lvar_float $6982 = 127@
set_var_float_to_lvar_float $6983 = 128@
set_var_float_to_lvar_float $6984 = 129@
set_var_float_to_lvar_float $6985 = 133@
set_var_int_to_lvar_int $6978 = 116@
view_integer_variable $CAT1_view_debug {_p2} "PLAYBACK_PAUSED[0]"
view_integer_variable $6972 {_p2} "PLAYBACK_PAUSED[1]"
view_integer_variable $6973 {_p2} "PLAYBACK_PAUSED[2]"
view_float_variable $6982 {_p2} "QUAD_PLAYBACK_SPEED[0]"
view_float_variable $6983 {_p2} "QUAD_PLAYBACK_SPEED[1]"
view_float_variable $6984 {_p2} "QUAD_PLAYBACK_SPEED[2]"
view_float_variable $6985 {_p2} "MASTER_SPEED"
view_integer_variable $6978 {_p2} "SHOW_GUN"

:CAT1_1629
if 
  70@ == 5
goto_if_false @CAT1_1827
set_var_float_to_lvar_float $CAT1_view_debug_f = 137@
set_var_float_to_lvar_float $6980 = 138@
set_var_float_to_lvar_float $6981 = 139@
set_var_float_to_lvar_float $6982 = 130@
set_var_float_to_lvar_float $6983 = 131@
set_var_float_to_lvar_float $6984 = 132@
view_float_variable $CAT1_view_debug_f {_p2} "LOOK_X"
view_float_variable $6980 {_p2} "LOOK_Y"
view_float_variable $6981 {_p2} "LOOK_Z"
view_float_variable $6982 {_p2} "QUAD_DIST_FROM_PLAYER[0]"
view_float_variable $6983 {_p2} "QUAD_DIST_FROM_PLAYER[1]"
view_float_variable $6984 {_p2} "QUAD_DIST_FROM_PLAYER[2]"

:CAT1_1827
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @CAT1_1849
38@ = 1

:CAT1_1849
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @CAT1_1937
if 
  71@ == 0
goto_if_false @CAT1_1912
71@ = 1
write_debug "LEVEL_PAUSED"
goto @CAT1_1937

:CAT1_1912
71@ = 0
write_debug "LEVEL_UNPAUSED"

:CAT1_1937
if 
  71@ == 1
goto_if_false @CAT1_1962
goto @CAT1_532

:CAT1_1962
if 
is_ps2_keyboard_key_just_pressed 136
goto_if_false @CAT1_1985
35@ += 1

:CAT1_1985
if 
is_ps2_keyboard_key_just_pressed 135
goto_if_false @CAT1_2008
35@ -= 1

:CAT1_2008
if 
is_ps2_keyboard_key_just_pressed 134
goto_if_false @CAT1_2031
34@ += 1

:CAT1_2031
if 
is_ps2_keyboard_key_just_pressed 133
goto_if_false @CAT1_2054
34@ -= 1

:CAT1_2054
if 
is_ps2_keyboard_key_just_pressed 146
goto_if_false @CAT1_2077
35@ = 99

:CAT1_2077
return 

:CAT1_2079
if 
  35@ == -1
goto_if_false @CAT1_2236
78@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
72@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
87@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
$catalina = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 0.0 {y} 0.0 {z} 0.0

:CAT1_2236
98@ = 0
99@ = 0
$cat1_pickups_collected = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
143@ = 0.0
144@ = 0.0
119@ = 0
120@ = 0
155@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
95@ = -1
96@ = -1
97@ = -1
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_text 'CAT'
gosub @CAT1_32437
return 

:CAT1_2698
switch_start 35@ {numCases} 26 {hasDefaultCase} 0 {defaultLabel} @CAT1_9936 {caseNum1} 0 {caseLabel1} @CAT1_2956 {caseNum2} 1 {caseLabel2} @CAT1_3282 {caseNum3} 2 {caseLabel3} @CAT1_5459 {caseNum4} 3 {caseLabel4} @CAT1_5473 {caseNum5} 4 {caseLabel5} @CAT1_5732 {caseNum6} 5 {caseLabel6} @CAT1_6005 {caseNum7} 6 {caseLabel7} @CAT1_6183
switch_continued 7 {caseLabel1} @CAT1_6293 {caseNum2} 8 {caseLabel2} @CAT1_6403 {caseNum3} 9 {caseLabel3} @CAT1_6511 {caseNum4} 10 {caseLabel4} @CAT1_7099 {caseNum5} 11 {caseLabel5} @CAT1_7681 {caseNum6} 12 {caseLabel6} @CAT1_7732 {caseNum7} 13 {caseLabel7} @CAT1_7823 {caseNum8} 14 {caseLabel8} @CAT1_7933 {caseNum9} 15 {caseLabel9} @CAT1_8043
switch_continued 16 {caseLabel1} @CAT1_8148 {caseNum2} 17 {caseLabel2} @CAT1_8181 {caseNum3} 18 {caseLabel3} @CAT1_8951 {caseNum4} 19 {caseLabel4} @CAT1_9070 {caseNum5} 20 {caseLabel5} @CAT1_9161 {caseNum6} 21 {caseLabel6} @CAT1_9502 {caseNum7} 22 {caseLabel7} @CAT1_9535 {caseNum8} 23 {caseLabel8} @CAT1_9630 {caseNum9} 24 {caseLabel9} @CAT1_9842
switch_continued 25 {caseLabel1} @CAT1_9856 {caseNum2} -1 {caseLabel2} @CAT1_9936 {caseNum3} -1 {caseLabel3} @CAT1_9936 {caseNum4} -1 {caseLabel4} @CAT1_9936 {caseNum5} -1 {caseLabel5} @CAT1_9936 {caseNum6} -1 {caseLabel6} @CAT1_9936 {caseNum7} -1 {caseLabel7} @CAT1_9936 {caseNum8} -1 {caseLabel8} @CAT1_9936 {caseNum9} -1 {caseLabel9} @CAT1_9936

:CAT1_2956
request_model 471
request_model 161
request_model 162
request_model 346
request_model 44
request_model 77
load_all_models_now 

:CAT1_2986
if or
  not has_model_loaded 471
  not has_model_loaded 161
  not has_model_loaded 162
  not has_model_loaded 346
  not has_model_loaded 44
  not has_model_loaded 77
goto_if_false @CAT1_3036
wait 0
goto @CAT1_2986

:CAT1_3036
request_car_recording 501
request_car_recording 502
request_car_recording 503
request_car_recording 504

:CAT1_3056
if or
  not has_car_recording_been_loaded 501
  not has_car_recording_been_loaded 502
  not has_car_recording_been_loaded 503
  not has_car_recording_been_loaded 504
goto_if_false @CAT1_3098
wait 0
goto @CAT1_3056

:CAT1_3098
request_car_recording 505
request_car_recording 506
request_car_recording 507
request_car_recording 509

:CAT1_3118
if or
  not has_car_recording_been_loaded 505
  not has_car_recording_been_loaded 506
  not has_car_recording_been_loaded 507
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_3160
wait 0
goto @CAT1_3118

:CAT1_3160
TIMERA = 0
TIMERB = 0
load_special_character 5 {modelName} 'CAT'

:CAT1_3187
if 
  not has_special_character_loaded 5
goto_if_false @CAT1_3226
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CAT1_3187

:CAT1_3226
load_mission_audio MissionAudioSlot.Slot3 {audioId} 41800

:CAT1_3235
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CAT1_3261
wait 0
goto @CAT1_3235

:CAT1_3261
35@ += 1
goto @CAT1_25325
goto @CAT1_9936

:CAT1_3282
if 
  does_char_exist $catalina
goto_if_false @CAT1_3303
delete_char $catalina

:CAT1_3303
$catalina = create_char PedType.Special {modelId} 294 {x} 261.1952 {y} -79.2717 {z} 0.4697
set_char_heading $catalina {heading} 41.0763
set_char_drowns_in_water $catalina {state} False
146@ = load_char_decision_maker DecisionMakerType.Tough
145@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 257.5389 {y} -77.23 {z} 1.3678 {radius} 300.0 {clearParticles} True
load_scene 261.1952 {y} -79.2717 {z} 0.4697
98@ = 1
if 
  not is_char_dead $catalina
goto_if_false @CAT1_3481
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_3481
remove_char_from_group $catalina
99@ = 0

:CAT1_3481
if 
  not is_car_dead 78@
goto_if_false @CAT1_3616
43@ = get_car_model 78@
$x, $y, $z, 56@, 57@, 58@ = get_model_dimensions 43@
set_lvar_float_to_lvar_float 46@ = 57@
sub_float_var_from_float_lvar 46@ -= $y
46@ /= 1.8
$x = 259.7206
$y = -77.2067
$z = 0.5781
sub_float_lvar_from_float_var $x -= 46@
set_car_coordinates 78@ {x} $x {y} $y {z} $z
set_car_heading 78@ {heading} 265.6523

:CAT1_3616
if 
  not is_char_dead $catalina
goto_if_false @CAT1_3850
clear_char_tasks_immediately $catalina
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT1_3698
set_char_coordinates $catalina {x} 261.1952 {y} -79.2717 {z} 0.4697
set_char_heading $catalina {heading} 41.0763
set_char_decision_maker $catalina {handleOrTemplate} 67@
goto @CAT1_3736

:CAT1_3698
warp_char_from_car_to_coord $catalina {x} 261.1952 {y} -79.2717 {z} 0.4697
set_char_heading $catalina {heading} 41.0763
set_char_decision_maker $catalina {handleOrTemplate} 67@

:CAT1_3736
43@ = get_current_char_weapon $catalina
if 
  not is_int_lvar_equal_to_constant 43@ == 28
goto_if_false @CAT1_3850
if 
  not has_model_loaded 352
goto_if_false @CAT1_3810
request_model 352

:CAT1_3783
if 
  not has_model_loaded 352
goto_if_false @CAT1_3810
wait 0
goto @CAT1_3783

:CAT1_3810
if 
  not is_char_dead $catalina
goto_if_false @CAT1_3850
give_weapon_to_char $catalina {weaponType} WeaponType.MicroUzi {ammo} 99999
set_current_char_weapon $catalina {weaponType} WeaponType.MicroUzi
mark_model_as_no_longer_needed 352

:CAT1_3850
clear_char_tasks_immediately $scplayer
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT1_3908
set_char_coordinates $scplayer {x} 259.9737 {y} -78.3268 {z} 0.6181
set_char_heading $scplayer {heading} 38.3173
goto @CAT1_3938

:CAT1_3908
warp_char_from_car_to_coord $scplayer {x} 259.9737 {y} -78.3268 {z} 0.6181
set_char_heading $scplayer {heading} 38.3173

:CAT1_3938
79@ = create_car 471 {x} 230.6799 {y} -85.1536 {z} 0.4296
set_car_heading 79@ {heading} 17.5494
set_car_cruise_speed 79@ {maxSpeed} 20.0
set_car_driving_style 79@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 79@ {state} True
set_car_only_damaged_by_player 79@ {state} True
80@ = create_car 471 {x} 232.2597 {y} -90.1452 {z} 0.4297
set_car_heading 80@ {heading} 17.5685
set_car_cruise_speed 80@ {maxSpeed} 20.0
set_car_driving_style 80@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 80@ {state} True
set_car_only_damaged_by_player 80@ {state} True
81@ = create_car 471 {x} 234.0826 {y} -95.9093 {z} 0.4375
set_car_heading 81@ {heading} 17.5565
set_car_cruise_speed 81@ {maxSpeed} 20.0
set_car_driving_style 81@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 81@ {state} True
set_car_only_damaged_by_player 81@ {state} True
82@ = create_car 471 {x} 235.3937 {y} -100.0505 {z} 0.4375
set_car_heading 82@ {heading} 17.5591
set_car_cruise_speed 82@ {maxSpeed} 20.0
set_car_driving_style 82@ {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 82@ {state} True
set_car_only_damaged_by_player 82@ {state} True
43@ = 0

:CAT1_4201
if 
  4 > 43@
goto_if_false @CAT1_4496
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_4482
if 
  43@ == 0
goto_if_false @CAT1_4278
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 161 {var_handle} 72@(43@,4i)

:CAT1_4278
if 
  43@ == 1
goto_if_false @CAT1_4317
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 162 {var_handle} 72@(43@,4i)

:CAT1_4317
if 
  43@ == 2
goto_if_false @CAT1_4356
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 161 {var_handle} 72@(43@,4i)

:CAT1_4356
if 
  43@ == 3
goto_if_false @CAT1_4395
create_char_inside_car 79@(43@,4i) {pedType} PedType.Mission1 {modelId} 162 {var_handle} 72@(43@,4i)

:CAT1_4395
set_char_accuracy 72@(43@,4i) {accuracy} 60
give_weapon_to_char 72@(43@,4i) {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_ped_threat_scanner 72@(43@,4i) {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 72@(43@,4i) {handleOrTemplate} 67@
set_char_proofs 72@(43@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_anim_group_for_char 72@(43@,4i) {animGroup} "MAN"

:CAT1_4482
43@ += 1
goto @CAT1_4201

:CAT1_4496
start_playback_recorded_car 79@ {path} 501
start_playback_recorded_car 80@ {path} 502
start_playback_recorded_car 81@ {path} 503
start_playback_recorded_car 82@ {path} 504
43@ = 0

:CAT1_4535
if 
  4 > 43@
goto_if_false @CAT1_4658
if 
  43@ <> 0
goto_if_false @CAT1_4624
if 
  43@ <> 3
goto_if_false @CAT1_4610
skip_in_playback_recorded_car 79@(43@,4i) {amount} 5.0
goto @CAT1_4624

:CAT1_4610
skip_in_playback_recorded_car 79@(43@,4i) {amount} 7.0

:CAT1_4624
pause_playback_recorded_car 79@(43@,4i)
100@(43@,4i) = 1
43@ += 1
goto @CAT1_4535

:CAT1_4658
76@ = create_char PedType.CivMale {modelId} 44 {x} 251.6866 {y} -54.9554 {z} 0.6181
set_char_heading 76@ {heading} 174.9027
set_char_decision_maker 76@ {handleOrTemplate} 67@
77@ = create_char PedType.CivFemale {modelId} 77 {x} 251.6549 {y} -56.4859 {z} 0.6255
set_char_heading 77@ {heading} 354.6266
set_char_decision_maker 77@ {handleOrTemplate} 67@
task_chat_with_char 76@ {other} 77@ {leadSpeaker} True {_p4} 1
task_chat_with_char 77@ {other} 76@ {leadSpeaker} False {_p4} 1
134@ = 261.814
135@ = -79.2233
136@ = 3.2479
137@ = 261.3385
138@ = -78.3447
139@ = 3.2922
set_var_float_to_lvar_float $x = 137@
sub_float_lvar_from_float_var $x -= 134@
set_var_float_to_lvar_float $y = 138@
sub_float_lvar_from_float_var $y -= 135@
set_var_float_to_lvar_float $z = 139@
sub_float_lvar_from_float_var $z -= 136@
46@ = get_distance_between_coords_3d 137@ {fromY} 138@ {fromZ} 139@ {toX} 134@ {toY} 135@ {toZ} 136@
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
$x *= 15.0
$y *= 15.0
$z *= 15.0
set_lvar_float_to_lvar_float 137@ = 134@
add_float_var_to_float_lvar 137@ += $x
set_lvar_float_to_lvar_float 138@ = 135@
add_float_var_to_float_lvar 138@ += $y
set_lvar_float_to_lvar_float 139@ = 136@
add_float_var_to_float_lvar 139@ += $z
$x = 260.876
$x -= 261.4119
$y = -77.7132
$y += 78.5511
$z = 2.2067
$z -= 2.3102
46@ = get_distance_between_coords_3d 261.4119 {fromY} -78.5511 {fromZ} 2.3102 {toX} 260.876 {toY} -77.7132 {toZ} 2.2067
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
$x *= 15.0
$y *= 15.0
$z *= 15.0
140@ = 261.4119
add_float_var_to_float_lvar 140@ += $x
141@ = -78.5511
add_float_var_to_float_lvar 141@ += $y
142@ = 2.3102
add_float_var_to_float_lvar 142@ += $z
save_newline_to_debug_file 
save_string_to_debug_file "DEST_LOOK_XYZ = "
save_float_to_debug_file 140@
save_float_to_debug_file 141@
save_float_to_debug_file 142@
set_fixed_camera_position 134@ {y} 135@ {z} 136@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 137@ {y} 138@ {z} 139@ {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
wait 500
do_fade 500 {direction} Fade.In

:CAT1_5407
if 
  get_fading_status 
goto_if_false @CAT1_5431
wait 0
goto @CAT1_5407

:CAT1_5431
TIMERA = 0
TIMERB = 0
35@ += 1
goto @CAT1_9936

:CAT1_5459
35@ += 1
goto @CAT1_9936

:CAT1_5473
if 
  not is_char_dead $catalina
goto_if_false @CAT1_5585
clear_char_tasks_immediately $catalina
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 261.2168 {y} -77.1227 {z} 0.6181 {speed} MoveState.Walk {time} 3000
task_achieve_heading -1 {heading} 41.0763
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_5585
clear_char_tasks_immediately $scplayer
49@ = open_sequence_task 
task_pause -1 {time} 2000
task_go_straight_to_coord -1 {x} 260.7615 {y} -77.7368 {z} 0.6181 {speed} MoveState.Walk {time} 8000
task_achieve_heading -1 {heading} 5.0
if 
  not is_char_dead $catalina
goto_if_false @CAT1_5661
task_look_at_char -1 {target} $catalina {time} 8000

:CAT1_5661
task_pause -1 {time} 3000
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
TIMERA = 0
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8800
148@ = 0
35@ += 1
goto @CAT1_9936

:CAT1_5732
if 
  TIMERA > 1500
goto_if_false @CAT1_5863
set_var_text_label s$audio_string = 'CAT1_AA'
set_var_int_to_constant $audio_sound_file = 8800
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
if 
  $cat_counter == 0
goto_if_false @CAT1_5828
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8802
goto @CAT1_5835

:CAT1_5828
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8801

:CAT1_5835
TIMERA = 0
35@ += 1
TIMERA = 0
goto @CAT1_5991

:CAT1_5863
if 
  TIMERA > 1000
goto_if_false @CAT1_5991
if 
  148@ == 0
goto_if_false @CAT1_5991
camera_reset_new_scriptables 
camera_set_vector_move 261.814 {fromY} -79.2233 {fromZ} 3.2479 {toX} 261.4119 {toY} -78.5511 {toZ} 2.3102 {time} 3000 {ease} True
camera_set_vector_track 261.3385 {fromY} -78.3447 {fromZ} 3.2922 {toX} 253.3734 {toY} -65.9824 {toZ} 0.7577 {time} 3000 {ease} True
camera_persist_track True
camera_persist_pos True
148@ += 1

:CAT1_5991
TIMERB = 0
goto @CAT1_9936

:CAT1_6005
if 
  TIMERA > 1000
goto_if_false @CAT1_6176
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6176
if 
  not is_char_dead $catalina
goto_if_false @CAT1_6063
clear_char_tasks $catalina

:CAT1_6063
if 
  $cat_counter == 0
goto_if_false @CAT1_6110
set_var_text_label s$audio_string = 'CAT1_AC'
set_var_int_to_constant $audio_sound_file = 8802
goto @CAT1_6132

:CAT1_6110
set_var_text_label s$audio_string = 'CAT1_AB'
set_var_int_to_constant $audio_sound_file = 8801

:CAT1_6132
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8803
TIMERA = 0
35@ += 1

:CAT1_6176
goto @CAT1_9936

:CAT1_6183
if 
  TIMERA > 1000
goto_if_false @CAT1_6286
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6286
set_var_text_label s$audio_string = 'CAT1_AD'
set_var_int_to_constant $audio_sound_file = 8803
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8804
TIMERA = 0
35@ += 1

:CAT1_6286
goto @CAT1_9936

:CAT1_6293
if 
  TIMERA > 1000
goto_if_false @CAT1_6396
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_6396
set_var_text_label s$audio_string = 'CAT1_AE'
set_var_int_to_constant $audio_sound_file = 8804
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8805
TIMERA = 0
35@ += 1

:CAT1_6396
goto @CAT1_9936

:CAT1_6403
if 
  104@ == 2
goto_if_false @CAT1_6504
if 
  not is_char_dead $catalina
goto_if_false @CAT1_6504
camera_reset_new_scriptables 
set_fixed_camera_position 260.045 {y} -63.3693 {z} 2.4676 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 259.1025 {y} -63.6456 {z} 2.2799 {switchStyle} SwitchType.JumpCut
35@ += 1
TIMERA = 0

:CAT1_6504
goto @CAT1_9936

:CAT1_6511
if 
  TIMERA > 2500
goto_if_false @CAT1_7092
set_fixed_camera_position 250.2375 {y} -53.7657 {z} 2.328 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 250.8728 {y} -54.5222 {z} 2.1726 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 72@
goto_if_false @CAT1_6689
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} 252.6819 {y} -56.3618 {z} 0.6181
set_char_heading 72@ {heading} 20.1267
if 
  not is_char_dead 76@
goto_if_false @CAT1_6689
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_aim_gun_at_char -1 {target} 76@ {time} 999999
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:CAT1_6689
if 
  not is_char_dead 73@
goto_if_false @CAT1_6819
clear_char_tasks_immediately 73@
set_char_coordinates 73@ {x} 252.1074 {y} -57.8084 {z} 0.6181
set_char_heading 73@ {heading} 21.3066
if 
  not is_char_dead 77@
goto_if_false @CAT1_6819
set_char_health 77@ {health} 1
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_look_at_char -1 {target} 77@ {time} 5000
task_aim_gun_at_char -1 {target} 77@ {time} 2300
task_kill_char_on_foot -1 {target} 77@
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:CAT1_6819
if 
  not is_char_dead 74@
goto_if_false @CAT1_6870
clear_char_tasks_immediately 74@
set_char_coordinates 74@ {x} 254.4398 {y} -57.6653 {z} 0.6473
set_char_heading 74@ {heading} 48.9264

:CAT1_6870
if 
  not is_char_dead 75@
goto_if_false @CAT1_6921
clear_char_tasks_immediately 75@
set_char_coordinates 75@ {x} 255.1348 {y} -61.2211 {z} 0.6181
set_char_heading 75@ {heading} 170.608

:CAT1_6921
if 
  not is_char_dead 77@
goto_if_false @CAT1_7052
clear_char_tasks_immediately 77@
49@ = open_sequence_task 
if 
  not is_char_dead 72@
goto_if_false @CAT1_6973
task_look_at_char -1 {target} 72@ {time} 5000

:CAT1_6973
task_char_slide_to_coord_and_play_anim -1 {x} 251.1549 {y} -56.4655 {z} 0.6255 {heading} 293.7874 {radius} 0.02 {animationName} "HANDSCOWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 49@
perform_sequence_task 77@ {sequence} 49@
clear_sequence_task 49@

:CAT1_7052
if 
  not is_char_dead 76@
goto_if_false @CAT1_7078
task_hands_up 76@ {time} 999999

:CAT1_7078
35@ += 1
TIMERA = 0

:CAT1_7092
goto @CAT1_9936

:CAT1_7099
if 
  TIMERA > 3000
goto_if_false @CAT1_7674
set_ped_density_multiplier 0.0
clear_area 242.0291 {y} -62.9491 {z} 2.3886 {radius} 50.0 {clearParticles} True
set_fixed_camera_position 242.0291 {y} -62.9491 {z} 2.3886 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 242.9384 {y} -63.3287 {z} 2.2181 {switchStyle} SwitchType.JumpCut
83@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
84@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
85@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
86@ = create_object #BRIEFCASE {x} 254.2335 {y} -56.954 {z} 0.6181
if 
  not is_char_dead 72@
goto_if_false @CAT1_7384
clear_char_tasks_immediately 72@
task_pick_up_object 72@ {object} 83@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 72@ {x} 254.2335 {y} -56.954 {z} 0.6181
set_char_heading 72@ {heading} 190.0

:CAT1_7384
if 
  not is_char_dead 75@
goto_if_false @CAT1_7476
clear_char_tasks_immediately 75@
task_pick_up_object 75@ {object} 86@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 75@ {x} 254.2521 {y} -58.7186 {z} 0.6181
set_char_heading 75@ {heading} 190.0

:CAT1_7476
if 
  not is_char_dead 74@
goto_if_false @CAT1_7568
clear_char_tasks_immediately 74@
task_pick_up_object 74@ {object} 85@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 74@ {x} 254.2762 {y} -60.0254 {z} 0.6255
set_char_heading 74@ {heading} 190.0

:CAT1_7568
if 
  not is_char_dead 73@
goto_if_false @CAT1_7660
clear_char_tasks_immediately 73@
task_pick_up_object 73@ {object} 84@ {xOffset} 0.0 {yOffset} 0.15 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_coordinates 73@ {x} 255.1927 {y} -54.9104 {z} 0.6181
set_char_heading 73@ {heading} 190.0

:CAT1_7660
TIMERA = 0
35@ += 1

:CAT1_7674
goto @CAT1_9936

:CAT1_7681
set_mission_audio_position MissionAudioSlot.Slot3 {x} 251.5757 {y} -62.9454 {z} 3.3786
play_mission_audio MissionAudioSlot.Slot3
124@ = 1
35@ += 1
TIMERA = 0
goto @CAT1_9936

:CAT1_7732
43@ = 0

:CAT1_7739
if 
  4 > 43@
goto_if_false @CAT1_7802
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_7788
104@(43@,4i) += 1

:CAT1_7788
43@ += 1
goto @CAT1_7739

:CAT1_7802
TIMERA = 0
35@ += 1
goto @CAT1_9936

:CAT1_7823
if 
  TIMERA > 1000
goto_if_false @CAT1_7926
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_7926
set_var_text_label s$audio_string = 'CAT1_AF'
set_var_int_to_constant $audio_sound_file = 8805
start_new_script @AUDIOL 75@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8806
TIMERA = 0
35@ += 1

:CAT1_7926
goto @CAT1_9936

:CAT1_7933
if 
  TIMERA > 1000
goto_if_false @CAT1_8036
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_8036
set_var_text_label s$audio_string = 'CAT1_AG'
set_var_int_to_constant $audio_sound_file = 8806
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8807
TIMERA = 0
35@ += 1

:CAT1_8036
goto @CAT1_9936

:CAT1_8043
if 
  10000 > TIMERA
goto_if_false @CAT1_8134
if 
  not is_char_dead 75@
goto_if_false @CAT1_8127
if 
  not is_car_dead 82@
goto_if_false @CAT1_8127
if 
  is_char_in_car 75@ {vehicle} 82@
goto_if_false @CAT1_8127
35@ += 1
TIMERA = 0

:CAT1_8127
goto @CAT1_8141

:CAT1_8134
35@ += 1

:CAT1_8141
goto @CAT1_9936

:CAT1_8148
if 
  TIMERA > 500
goto_if_false @CAT1_8174
35@ += 1

:CAT1_8174
goto @CAT1_9936

:CAT1_8181
43@ = 0

:CAT1_8188
if 
  4 > 43@
goto_if_false @CAT1_8249
if 
  does_object_exist 83@(43@,4i)
goto_if_false @CAT1_8235
delete_object 83@(43@,4i)

:CAT1_8235
43@ += 1
goto @CAT1_8188

:CAT1_8249
43@ = 0

:CAT1_8256
if 
  4 > 43@
goto_if_false @CAT1_8382
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_8357
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_8357
if 
  not is_char_in_car 72@(43@,4i) {vehicle} 79@(43@,4i)
goto_if_false @CAT1_8357
warp_char_into_car 72@(43@,4i) {vehicle} 79@(43@,4i)

:CAT1_8357
104@(43@,4i) = 6
43@ += 1
goto @CAT1_8256

:CAT1_8382
if 
  not is_car_dead 79@
goto_if_false @CAT1_8496
if 
  not is_playback_going_on_for_car 79@
goto_if_false @CAT1_8496
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_8462
request_car_recording 509

:CAT1_8435
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_8462
wait 0
goto @CAT1_8435

:CAT1_8462
if 
  not is_car_dead 79@
goto_if_false @CAT1_8496
start_playback_recorded_car 79@ {path} 509
skip_in_playback_recorded_car 79@ {amount} 2.0

:CAT1_8496
if 
  not is_car_dead 80@
goto_if_false @CAT1_8610
if 
  not is_playback_going_on_for_car 80@
goto_if_false @CAT1_8610
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_8576
request_car_recording 505

:CAT1_8549
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_8576
wait 0
goto @CAT1_8549

:CAT1_8576
if 
  not is_car_dead 80@
goto_if_false @CAT1_8610
start_playback_recorded_car 80@ {path} 505
skip_in_playback_recorded_car 80@ {amount} 0.0

:CAT1_8610
if 
  not is_car_dead 81@
goto_if_false @CAT1_8724
if 
  not is_playback_going_on_for_car 81@
goto_if_false @CAT1_8724
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_8690
request_car_recording 506

:CAT1_8663
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_8690
wait 0
goto @CAT1_8663

:CAT1_8690
if 
  not is_car_dead 81@
goto_if_false @CAT1_8724
start_playback_recorded_car 81@ {path} 506
skip_in_playback_recorded_car 81@ {amount} 6.0

:CAT1_8724
if 
  not is_car_dead 82@
goto_if_false @CAT1_8838
if 
  not is_playback_going_on_for_car 82@
goto_if_false @CAT1_8838
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_8804
request_car_recording 507

:CAT1_8777
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_8804
wait 0
goto @CAT1_8777

:CAT1_8804
if 
  not is_car_dead 82@
goto_if_false @CAT1_8838
start_playback_recorded_car 82@ {path} 507
skip_in_playback_recorded_car 82@ {amount} 3.0

:CAT1_8838
if 
  not is_char_dead $catalina
goto_if_false @CAT1_8879
clear_char_tasks_immediately $catalina
set_char_coordinates $catalina {x} 260.2472 {y} -75.3335 {z} 0.4697

:CAT1_8879
TIMERA = 0
set_fixed_camera_position 261.735 {y} -75.3817 {z} 2.127 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 260.836 {y} -74.9604 {z} 2.0068 {switchStyle} SwitchType.JumpCut
35@ += 1
goto @CAT1_9936

:CAT1_8951
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9049
set_char_heading $catalina {heading} 53.9394
set_char_shoot_rate $catalina {rate} 100
if 
  not is_char_dead 75@
goto_if_false @CAT1_9049
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_look_at_char -1 {target} 75@ {time} 1000
task_aim_gun_at_char -1 {target} 75@ {time} 5000
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_9049
TIMERA = 0
35@ += 1
goto @CAT1_9936

:CAT1_9070
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_9154
set_var_text_label s$audio_string = 'CAT1_AH'
set_var_int_to_constant $audio_sound_file = 8807
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 9872
TIMERA = 0
35@ += 1

:CAT1_9154
goto @CAT1_9936

:CAT1_9161
if 
  TIMERA > 2000
goto_if_false @CAT1_9242
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9242
if 
  not is_char_dead 75@
goto_if_false @CAT1_9242
set_char_shoot_rate $catalina {rate} 100
task_kill_char_on_foot $catalina {target} 75@
set_char_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:CAT1_9242
if 
  TIMERA > 2500
goto_if_false @CAT1_9312
set_fixed_camera_position 252.0826 {y} -71.4979 {z} 1.3761 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 253.0449 {y} -71.7658 {z} 1.4225 {switchStyle} SwitchType.JumpCut

:CAT1_9312
if 
  TIMERA > 2800
goto_if_false @CAT1_9495
if 
  not is_char_dead 75@
goto_if_false @CAT1_9495
if 
  not is_car_dead 82@
goto_if_false @CAT1_9495
clear_char_tasks_immediately 75@
49@ = open_sequence_task 
task_die_named_anim -1 {animationName} "BIKE_FALL_OFF" {animationFile} "PED" {blendSpeed} 4.0 {time} 1
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@
set_var_text_label s$audio_string = 'CATX_TD'
set_var_int_to_constant $audio_sound_file = 9872
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8808
TIMERA = 0
35@ += 1
TIMERA = 0

:CAT1_9495
goto @CAT1_9936

:CAT1_9502
if 
  TIMERA > 1000
goto_if_false @CAT1_9528
35@ += 1

:CAT1_9528
goto @CAT1_9936

:CAT1_9535
if 
  is_char_dead 75@
goto_if_false @CAT1_9623
$x, $y, $z = get_dead_char_coordinates 75@
set_fixed_camera_position 259.2034 {y} -75.5284 {z} 2.0793 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 260.1396 {y} -75.2342 {z} 1.8871 {switchStyle} SwitchType.JumpCut
35@ += 1

:CAT1_9623
goto @CAT1_9936

:CAT1_9630
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9835
clear_char_tasks $catalina
49@ = open_sequence_task 
if 
  not is_car_dead 82@
goto_if_false @CAT1_9684
task_enter_car_as_passenger -1 {vehicle} 82@ {time} 5000 {seat} SeatId.BikeRear

:CAT1_9684
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@
clear_char_tasks $scplayer
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 263.4937 {y} -75.2639 {z} 0.4697 {speed} MoveState.Run {time} 5000
if 
  not is_car_dead 82@
goto_if_false @CAT1_9762
task_enter_car_as_driver -1 {vehicle} 82@ {time} 10000

:CAT1_9762
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
set_var_text_label s$audio_string = 'CAT1_BA'
set_var_int_to_constant $audio_sound_file = 8808
start_new_script @AUDIOL $catalina 0 1 1 1 
TIMERA = 0
35@ += 1

:CAT1_9835
goto @CAT1_9936

:CAT1_9842
35@ += 1
goto @CAT1_9936

:CAT1_9856
if 
  not is_car_dead 82@
goto_if_false @CAT1_9929
if 
  not is_char_dead $catalina
goto_if_false @CAT1_9929
if and
  is_char_in_car $catalina {vehicle} 82@
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @CAT1_9929
35@ = 99
TIMERA = 0

:CAT1_9929
goto @CAT1_9936

:CAT1_9936
if 
  35@ > 1
goto_if_false @CAT1_9985
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT1_9985
35@ = 99
108@ = 1

:CAT1_9985
if 
  104@ == 0
goto_if_false @CAT1_10091
if 
  100@ == 1
goto_if_false @CAT1_10091
if 
  TIMERB > 1000
goto_if_false @CAT1_10091
if 
  not is_car_dead 79@
goto_if_false @CAT1_10091
if 
  is_playback_going_on_for_car 79@
goto_if_false @CAT1_10091
unpause_playback_recorded_car 79@
100@ = 0
104@ += 1

:CAT1_10091
if 
  105@ == 0
goto_if_false @CAT1_10197
if 
  101@ == 1
goto_if_false @CAT1_10197
if 
  TIMERB > 2000
goto_if_false @CAT1_10197
if 
  not is_car_dead 80@
goto_if_false @CAT1_10197
if 
  is_playback_going_on_for_car 80@
goto_if_false @CAT1_10197
unpause_playback_recorded_car 80@
101@ = 0
105@ += 1

:CAT1_10197
if 
  106@ == 0
goto_if_false @CAT1_10303
if 
  102@ == 1
goto_if_false @CAT1_10303
if 
  TIMERB > 2000
goto_if_false @CAT1_10303
if 
  not is_car_dead 81@
goto_if_false @CAT1_10303
if 
  is_playback_going_on_for_car 81@
goto_if_false @CAT1_10303
unpause_playback_recorded_car 81@
102@ = 0
106@ += 1

:CAT1_10303
if 
  107@ == 0
goto_if_false @CAT1_10409
if 
  103@ == 1
goto_if_false @CAT1_10409
if 
  TIMERB > 3000
goto_if_false @CAT1_10409
if 
  not is_car_dead 82@
goto_if_false @CAT1_10409
if 
  is_playback_going_on_for_car 82@
goto_if_false @CAT1_10409
unpause_playback_recorded_car 82@
103@ = 0
107@ += 1

:CAT1_10409
if 
  104@ == 1
goto_if_false @CAT1_10556
if 
  not is_car_dead 79@
goto_if_false @CAT1_10556
if 
  not is_playback_going_on_for_car 79@
goto_if_false @CAT1_10556
if 
  not is_char_dead 72@
goto_if_false @CAT1_10556
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 79@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@
104@ += 1

:CAT1_10556
if 
  105@ == 1
goto_if_false @CAT1_10703
if 
  not is_car_dead 80@
goto_if_false @CAT1_10703
if 
  not is_playback_going_on_for_car 80@
goto_if_false @CAT1_10703
if 
  not is_char_dead 73@
goto_if_false @CAT1_10703
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 80@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@
105@ += 1

:CAT1_10703
if 
  106@ == 1
goto_if_false @CAT1_10850
if 
  not is_car_dead 81@
goto_if_false @CAT1_10850
if 
  not is_playback_going_on_for_car 81@
goto_if_false @CAT1_10850
if 
  not is_char_dead 74@
goto_if_false @CAT1_10850
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 81@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@
106@ += 1

:CAT1_10850
if 
  107@ == 1
goto_if_false @CAT1_10997
if 
  not is_car_dead 82@
goto_if_false @CAT1_10997
if 
  not is_playback_going_on_for_car 82@
goto_if_false @CAT1_10997
if 
  not is_char_dead 75@
goto_if_false @CAT1_10997
flush_route 
extend_route 254.5467 {y} -62.6116 {z} 0.5625
extend_route 254.0845 {y} -57.0229 {z} 0.5781
49@ = open_sequence_task 
task_leave_car -1 {vehicle} 82@
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@
107@ += 1

:CAT1_10997
if 
  104@ == 3
goto_if_false @CAT1_11142
if 
  not is_char_dead 72@
goto_if_false @CAT1_11142
if 
  not is_car_dead 79@
goto_if_false @CAT1_11142
flush_route 
extend_route 254.6638 {y} -62.4099 {z} 0.6181
extend_route 252.9 {y} -64.95 {z} 0.6181
49@ = open_sequence_task 
task_pause -1 {time} 2000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 79@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@
104@ += 1

:CAT1_11142
if 
  105@ == 3
goto_if_false @CAT1_11343
if 
  not is_char_dead 73@
goto_if_false @CAT1_11343
if 
  not is_car_dead 80@
goto_if_false @CAT1_11343
if 
  not is_car_dead 80@
goto_if_false @CAT1_11237
$x, $y, $z = get_offset_from_car_in_world_coords 80@ {xOffset} 1.0 {yOffset} 0.5 {zOffset} 0.0

:CAT1_11237
flush_route 
extend_route 255.0126 {y} -62.5672 {z} 0.6181
extend_route 255.9082 {y} -64.7079 {z} 0.5781
extend_route $x {y} $y {z} $z
49@ = open_sequence_task 
task_pause -1 {time} 3000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 80@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@
105@ += 1

:CAT1_11343
if 
  106@ == 3
goto_if_false @CAT1_11487
if 
  not is_char_dead 74@
goto_if_false @CAT1_11487
if 
  not is_car_dead 81@
goto_if_false @CAT1_11487
flush_route 
extend_route 254.3236 {y} -62.2213 {z} 0.6181
extend_route 250.654 {y} -65.0175 {z} 0.6181
49@ = open_sequence_task 
task_pause -1 {time} 0
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 81@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@
106@ += 1

:CAT1_11487
if 
  107@ == 3
goto_if_false @CAT1_11688
if 
  not is_char_dead 75@
goto_if_false @CAT1_11688
if 
  not is_car_dead 82@
goto_if_false @CAT1_11688
if 
  not is_car_dead 82@
goto_if_false @CAT1_11582
$x, $y, $z = get_offset_from_car_in_world_coords 82@ {xOffset} 1.0 {yOffset} 0.5 {zOffset} 0.0

:CAT1_11582
flush_route 
extend_route 254.0475 {y} -62.7343 {z} 0.6181
extend_route 247.6622 {y} -64.1287 {z} 0.5781
extend_route $x {y} $y {z} $z
49@ = open_sequence_task 
task_pause -1 {time} 1000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_enter_car_as_driver -1 {vehicle} 82@ {time} 20000
close_sequence_task 49@
set_next_desired_move_state MoveState.Run
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@
107@ += 1

:CAT1_11688
if 
  104@ == 4
goto_if_false @CAT1_11796
if 
  not is_char_dead 72@
goto_if_false @CAT1_11796
if 
  not is_car_dead 79@
goto_if_false @CAT1_11796
if 
  locate_char_on_foot_car_3d 72@ {vehicle} 79@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @CAT1_11796
set_next_desired_move_state MoveState.Run
task_enter_car_as_driver 72@ {vehicle} 79@ {time} 5000
104@ += 1

:CAT1_11796
if 
  105@ == 4
goto_if_false @CAT1_11821
105@ += 1

:CAT1_11821
if 
  106@ == 4
goto_if_false @CAT1_11929
if 
  not is_char_dead 74@
goto_if_false @CAT1_11929
if 
  not is_car_dead 81@
goto_if_false @CAT1_11929
if 
  locate_char_on_foot_car_3d 74@ {vehicle} 81@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @CAT1_11929
set_next_desired_move_state MoveState.Run
task_enter_car_as_driver 74@ {vehicle} 81@ {time} 5000
106@ += 1

:CAT1_11929
if 
  107@ == 4
goto_if_false @CAT1_11954
107@ += 1

:CAT1_11954
if 
  104@ == 5
goto_if_false @CAT1_12102
if 
  not is_char_dead 72@
goto_if_false @CAT1_12102
if 
  not is_car_dead 79@
goto_if_false @CAT1_12102
if 
  is_char_in_car 72@ {vehicle} 79@
goto_if_false @CAT1_12102
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_12071
request_car_recording 509

:CAT1_12044
if 
  not has_car_recording_been_loaded 509
goto_if_false @CAT1_12071
wait 0
goto @CAT1_12044

:CAT1_12071
if 
  not is_car_dead 79@
goto_if_false @CAT1_12095
start_playback_recorded_car 79@ {path} 509

:CAT1_12095
104@ += 1

:CAT1_12102
if 
  105@ == 5
goto_if_false @CAT1_12250
if 
  not is_char_dead 73@
goto_if_false @CAT1_12250
if 
  not is_car_dead 80@
goto_if_false @CAT1_12250
if 
  is_char_in_car 73@ {vehicle} 80@
goto_if_false @CAT1_12250
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_12219
request_car_recording 505

:CAT1_12192
if 
  not has_car_recording_been_loaded 505
goto_if_false @CAT1_12219
wait 0
goto @CAT1_12192

:CAT1_12219
if 
  not is_car_dead 80@
goto_if_false @CAT1_12243
start_playback_recorded_car 80@ {path} 505

:CAT1_12243
105@ += 1

:CAT1_12250
if 
  106@ == 5
goto_if_false @CAT1_12398
if 
  not is_char_dead 74@
goto_if_false @CAT1_12398
if 
  not is_car_dead 81@
goto_if_false @CAT1_12398
if 
  is_char_in_car 74@ {vehicle} 81@
goto_if_false @CAT1_12398
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_12367
request_car_recording 506

:CAT1_12340
if 
  not has_car_recording_been_loaded 506
goto_if_false @CAT1_12367
wait 0
goto @CAT1_12340

:CAT1_12367
if 
  not is_car_dead 81@
goto_if_false @CAT1_12391
start_playback_recorded_car 81@ {path} 506

:CAT1_12391
106@ += 1

:CAT1_12398
if 
  107@ == 5
goto_if_false @CAT1_12546
if 
  not is_char_dead 75@
goto_if_false @CAT1_12546
if 
  not is_car_dead 82@
goto_if_false @CAT1_12546
if 
  is_char_in_car 75@ {vehicle} 82@
goto_if_false @CAT1_12546
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_12515
request_car_recording 507

:CAT1_12488
if 
  not has_car_recording_been_loaded 507
goto_if_false @CAT1_12515
wait 0
goto @CAT1_12488

:CAT1_12515
if 
  not is_car_dead 82@
goto_if_false @CAT1_12539
start_playback_recorded_car 82@ {path} 507

:CAT1_12539
107@ += 1

:CAT1_12546
if 
  104@ == 7
goto_if_false @CAT1_12633
if 
  not is_car_dead 79@
goto_if_false @CAT1_12633
if 
  not is_playback_going_on_for_car 79@
goto_if_false @CAT1_12633
set_car_coordinates 79@ {x} 376.1397 {y} -94.8354 {z} 1.8378
set_car_heading 79@ {heading} 285.1002
104@ += 1

:CAT1_12633
if 
  105@ == 7
goto_if_false @CAT1_12720
if 
  not is_car_dead 80@
goto_if_false @CAT1_12720
if 
  not is_playback_going_on_for_car 80@
goto_if_false @CAT1_12720
set_car_coordinates 80@ {x} 370.2741 {y} -95.2991 {z} 1.3107
set_car_heading 80@ {heading} 273.2807
105@ += 1

:CAT1_12720
if 
  106@ == 7
goto_if_false @CAT1_12807
if 
  not is_car_dead 81@
goto_if_false @CAT1_12807
if 
  not is_playback_going_on_for_car 81@
goto_if_false @CAT1_12807
set_car_coordinates 81@ {x} 363.1674 {y} -95.3071 {z} 0.7736
set_car_heading 81@ {heading} 273.2807
106@ += 1

:CAT1_12807
if 
  35@ == 99
goto_if_false @CAT1_14055
camera_reset_new_scriptables 
switch_widescreen False
set_player_control $player1 {state} True
98@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
if 
  not is_car_dead 79@
goto_if_false @CAT1_12940
if 
  is_playback_going_on_for_car 79@
goto_if_false @CAT1_12910
stop_playback_recorded_car 79@

:CAT1_12910
set_car_coordinates 79@ {x} 376.1397 {y} -94.8354 {z} 1.8378
set_car_heading 79@ {heading} 285.1002

:CAT1_12940
if 
  not is_car_dead 80@
goto_if_false @CAT1_13007
if 
  is_playback_going_on_for_car 80@
goto_if_false @CAT1_12977
stop_playback_recorded_car 80@

:CAT1_12977
set_car_coordinates 80@ {x} 370.2741 {y} -95.2991 {z} 1.3107
set_car_heading 80@ {heading} 273.2807

:CAT1_13007
if 
  not is_car_dead 81@
goto_if_false @CAT1_13074
if 
  is_playback_going_on_for_car 81@
goto_if_false @CAT1_13044
stop_playback_recorded_car 81@

:CAT1_13044
set_car_coordinates 81@ {x} 363.1674 {y} -95.3071 {z} 0.7736
set_car_heading 81@ {heading} 273.2807

:CAT1_13074
if 
  108@ == 1
goto_if_false @CAT1_13167
if 
  not is_car_dead 82@
goto_if_false @CAT1_13167
if 
  is_playback_going_on_for_car 82@
goto_if_false @CAT1_13129
stop_playback_recorded_car 82@

:CAT1_13129
set_car_coordinates 82@ {x} 263.8679 {y} -73.6352 {z} 0.4297
set_car_heading 82@ {heading} 272.3554
set_car_health 82@ {health} 1500

:CAT1_13167
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 75@
delete_object 83@
delete_object 84@
delete_object 85@
delete_object 86@
if 
  not is_char_dead $catalina
goto_if_false @CAT1_13262
set_char_decision_maker $catalina {handleOrTemplate} 68@
clear_char_tasks_immediately $catalina
if 
  not is_car_dead 82@
goto_if_false @CAT1_13262
warp_char_into_car_as_passenger $catalina {handle} 82@ {seat} SeatId.BikeRear

:CAT1_13262
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 82@
goto_if_false @CAT1_13291
warp_char_into_car $scplayer {vehicle} 82@

:CAT1_13291
43@ = 0

:CAT1_13298
if 
  4 > 43@
goto_if_false @CAT1_13658
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_13644
if 
  43@ == 0
goto_if_false @CAT1_13383
create_char PedType.Mission1 {modelId} 161 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13383
if 
  43@ == 1
goto_if_false @CAT1_13430
create_char PedType.Mission1 {modelId} 162 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13430
if 
  43@ == 2
goto_if_false @CAT1_13477
create_char PedType.Mission1 {modelId} 161 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13477
if 
  43@ == 3
goto_if_false @CAT1_13524
create_char PedType.Mission1 {modelId} 162 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 72@(43@,4i)

:CAT1_13524
set_char_accuracy 72@(43@,4i) {accuracy} 60
give_weapon_to_char 72@(43@,4i) {weaponType} WeaponType.Pistol {ammo} 99999
task_toggle_ped_threat_scanner 72@(43@,4i) {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 72@(43@,4i) {handleOrTemplate} 68@
set_char_proofs 72@(43@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_anim_group_for_char 72@(43@,4i) {animGroup} "MAN"
set_char_suffers_critical_hits 72@(43@,4i) {state} False
set_char_max_health 72@(43@,4i) {maxHealth} 100
set_char_health 72@(43@,4i) {health} 100

:CAT1_13644
43@ += 1
goto @CAT1_13298

:CAT1_13658
if 
  not is_car_dead 79@
goto_if_false @CAT1_13682
warp_char_into_car 72@ {vehicle} 79@

:CAT1_13682
if 
  not is_car_dead 80@
goto_if_false @CAT1_13706
warp_char_into_car 73@ {vehicle} 80@

:CAT1_13706
if 
  not is_car_dead 81@
goto_if_false @CAT1_13730
warp_char_into_car 74@ {vehicle} 81@

:CAT1_13730
43@ = 0

:CAT1_13737
if 
  3 > 43@
goto_if_false @CAT1_13816
set_car_cruise_speed 79@(43@,4i) {maxSpeed} 20.0
set_car_driving_style 79@(43@,4i) {drivingStyle} DrivingMode.AvoidCars
set_upsidedown_car_not_damaged 79@(43@,4i) {state} True
set_car_only_damaged_by_player 79@(43@,4i) {state} True
43@ += 1
goto @CAT1_13737

:CAT1_13816
set_camera_behind_player 
restore_camera_jumpcut 
set_char_coordinates 75@ {x} 257.1983 {y} -72.641 {z} 1.4697
task_dead 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 75@
mark_model_as_no_longer_needed 471
mark_model_as_no_longer_needed 161
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 44
mark_model_as_no_longer_needed 77
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
if 
  124@ <> 1
goto_if_false @CAT1_13950
set_mission_audio_position MissionAudioSlot.Slot3 {x} 251.5757 {y} -62.9454 {z} 3.3786
play_mission_audio MissionAudioSlot.Slot3
124@ = 1

:CAT1_13950
98@ = 1
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_14037
if 
  does_blip_exist 87@
goto_if_false @CAT1_13997
remove_blip 87@

:CAT1_13997
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_char_drowns_in_water $catalina {state} False
99@ = 1
64@ = 0
goto @CAT1_14044

:CAT1_14037
99@ = 1

:CAT1_14044
set_radio_channel RadioChannel.KRose
gosub @CAT1_32437

:CAT1_14055
return 

:CAT1_14057
if 
  35@ == 0
goto_if_false @CAT1_14933
set_create_random_gang_members False
166@ = generate_random_int_in_range 0 {max} 8
43@ = 0

:CAT1_14095
if 
  3 > 43@
goto_if_false @CAT1_14298
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_14225
add_blip_for_char 72@(43@,4i) {var_handle} 88@(43@,3i)
set_char_max_health 72@(43@,4i) {maxHealth} 200
set_char_health 72@(43@,4i) {health} 200
set_char_relationship 72@(43@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 72@(43@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
task_toggle_ped_threat_scanner 72@(43@,4i) {onFoot} True {inCar} False {duringScriptTask} False
set_char_can_be_knocked_off_bike 72@(43@,4i) {stayOnBike} False

:CAT1_14225
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_14284
set_car_driving_style 79@(43@,4i) {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 79@(43@,4i) {maxSpeed} 25.0
set_car_forward_speed 79@(43@,4i) {forwardSpeed} 5.0

:CAT1_14284
43@ += 1
goto @CAT1_14095

:CAT1_14298
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
133@ = 1.05
request_car_recording 553
request_car_recording 554
request_car_recording 555

:CAT1_14365
if or
  not has_car_recording_been_loaded 553
  not has_car_recording_been_loaded 554
  not has_car_recording_been_loaded 555
goto_if_false @CAT1_14402
wait 0
goto @CAT1_14365

:CAT1_14402
if 
  not is_car_dead 79@
goto_if_false @CAT1_14449
start_playback_recorded_car_using_ai 79@ {pathId} 553
skip_in_playback_recorded_car 79@ {amount} 1.0
add_stuck_car_check 79@ {distance} 2.0 {time} 2000

:CAT1_14449
if 
  not is_car_dead 80@
goto_if_false @CAT1_14496
start_playback_recorded_car_using_ai 80@ {pathId} 554
skip_in_playback_recorded_car 80@ {amount} 1.0
add_stuck_car_check 80@ {distance} 2.0 {time} 2000

:CAT1_14496
if 
  not is_car_dead 81@
goto_if_false @CAT1_14543
start_playback_recorded_car_using_ai 81@ {pathId} 555
skip_in_playback_recorded_car 81@ {amount} 1.0
add_stuck_car_check 81@ {distance} 2.0 {time} 2000

:CAT1_14543
if 
  not is_char_dead $catalina
goto_if_false @CAT1_14691
clear_group_decision_maker_event_response 145@ {event} Event.AcquaintancePedHate
set_group_decision_maker $Players_Group {handleOrTemplate} 145@
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker $catalina {handleOrTemplate} 146@
task_toggle_ped_threat_scanner $catalina {onFoot} True {inCar} False {duringScriptTask} False
add_group_decision_maker_event_response 145@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupUseMemberDecision {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
add_char_decision_maker_event_response 146@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_accuracy $catalina {accuracy} 35
set_char_shoot_rate $catalina {rate} 100
set_char_drowns_in_water $catalina {state} False

:CAT1_14691
$cat1_pickups_collected = 1
104@ = 0
105@ = 0
106@ = 0
98@ = 0
43@ = generate_random_int_in_range 1 {max} 3
if 
  43@ == 0
goto_if_false @CAT1_14794
set_var_text_label s$audio_string = 'CAT1_BA'
set_var_int_to_constant $audio_sound_file = 8808
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14794
if 
  43@ == 1
goto_if_false @CAT1_14853
set_var_text_label s$audio_string = 'CAT1_BB'
set_var_int_to_constant $audio_sound_file = 8809
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14853
if 
  43@ == 2
goto_if_false @CAT1_14912
set_var_text_label s$audio_string = 'CAT1_BC'
set_var_int_to_constant $audio_sound_file = 8810
start_new_script @AUDIOL $scplayer 0 1 1 0 

:CAT1_14912
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
35@ += 1

:CAT1_14933
if 
  35@ == 1
goto_if_false @CAT1_17132
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @CAT1_14977
133@ += 0.1

:CAT1_14977
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @CAT1_15034
133@ += -0.1
if 
  0.0 > 133@
goto_if_false @CAT1_15034
133@ = 0.0

:CAT1_15034
if 
  not is_char_dead $catalina
goto_if_false @CAT1_15145
if 
  not is_car_dead 78@
goto_if_false @CAT1_15138
if 
  is_char_in_car $catalina {vehicle} 78@
goto_if_false @CAT1_15124
if 
  116@ == 0
goto_if_false @CAT1_15117
set_current_char_weapon $catalina {weaponType} WeaponType.MicroUzi
116@ = 1

:CAT1_15117
goto @CAT1_15131

:CAT1_15124
116@ = 0

:CAT1_15131
goto @CAT1_15145

:CAT1_15138
116@ = 0

:CAT1_15145
43@ = 0

:CAT1_15152
if 
  3 > 43@
goto_if_false @CAT1_15211
set_lvar_int_to_lvar_int 163@ = 43@
gosub @CAT1_27437
set_lvar_float_to_lvar_float 127@(43@,3f) = 165@
43@ += 1
goto @CAT1_15152

:CAT1_15211
43@ = 0

:CAT1_15218
if 
  3 > 43@
goto_if_false @CAT1_15615
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_15601
if 
  104@(43@,4i) == 0
goto_if_false @CAT1_15500
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_15500
if 
  not is_playback_going_on_for_car 79@(43@,4i)
goto_if_false @CAT1_15500
104@(43@,4i) += 1
flush_route 
extend_route 2346.271 {y} -1044.447 {z} 52.6699
extend_route 2349.3369 {y} -1043.6219 {z} 52.9884
extend_route 2354.353 {y} -1041.798 {z} 53.136
extend_route 2355.844 {y} -1039.797 {z} 53.1562
extend_route 2355.5591 {y} -1038.575 {z} 53.3358
49@ = open_sequence_task 
if 
  is_char_in_car 72@(43@,4i) {vehicle} 79@(43@,4i)
goto_if_false @CAT1_15459
task_leave_car -1 {vehicle} 79@(43@,4i)

:CAT1_15459
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 49@
perform_sequence_task 72@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_accuracy 72@(43@,4i) {accuracy} 90

:CAT1_15500
if 
  104@(43@,4i) == 1
goto_if_false @CAT1_15601
if 
  locate_char_on_foot_3d 72@(43@,4i) {x} 2355.5591 {y} -1038.575 {z} 53.3358 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT1_15601
remove_char_elegantly 72@(43@,4i)
104@(43@,4i) += 1
gosub @CAT1_32437

:CAT1_15601
43@ += 1
goto @CAT1_15218

:CAT1_15615
43@ = 0

:CAT1_15622
if 
  3 > 43@
goto_if_false @CAT1_16002
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_15988
if 
  104@(43@,4i) == 0
goto_if_false @CAT1_15988
if 
  not is_char_in_any_car 72@(43@,4i)
goto_if_false @CAT1_15988
44@ = get_script_task_status 72@(43@,4i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @CAT1_15833
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_15826
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 79@(43@,4i) {time} 60000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 79@(43@,4i) {time} 60000
close_sequence_task 49@
perform_sequence_task 72@(43@,4i) {sequence} 49@
clear_sequence_task 49@
goto @CAT1_15826

:CAT1_15826
goto @CAT1_15988

:CAT1_15833
if 
  not is_car_dead 79@(43@,4i)
goto_if_false @CAT1_15988
if 
  not is_car_on_screen 79@(43@,4i)
goto_if_false @CAT1_15988
if 
  not is_char_on_screen 72@(43@,4i)
goto_if_false @CAT1_15988
if 
  not locate_char_any_means_char_3d $scplayer {target} 72@(43@,4i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_15988
44@ = get_driver_of_car 79@(43@,4i)
if 
  44@ == -1
goto_if_false @CAT1_15988
clear_char_tasks_immediately 72@(43@,4i)
warp_char_into_car 72@(43@,4i) {vehicle} 79@(43@,4i)

:CAT1_15988
43@ += 1
goto @CAT1_15622

:CAT1_16002
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @CAT1_16076
if 
  not is_char_dead 73@
goto_if_false @CAT1_16076
if 
  not is_car_dead 80@
goto_if_false @CAT1_16076
if 
  is_char_in_car 73@ {vehicle} 80@
goto_if_false @CAT1_16076
task_leave_car_immediately 73@ {vehicle} 80@

:CAT1_16076
if 
  locate_char_any_means_2d $scplayer {x} 1397.24 {y} 216.0877 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @CAT1_16172
if 
  115@ <> 1
goto_if_false @CAT1_16172
133@ += -0.05
115@ = 1
if 
  not is_char_dead $catalina
goto_if_false @CAT1_16172
set_char_accuracy $catalina {accuracy} 50

:CAT1_16172
if 
  locate_char_any_means_2d $scplayer {x} 2711.1189 {y} -53.5082 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @CAT1_16268
if 
  115@ <> 2
goto_if_false @CAT1_16268
133@ += 0.25
115@ = 2
if 
  not is_char_dead $catalina
goto_if_false @CAT1_16268
set_char_accuracy $catalina {accuracy} 70

:CAT1_16268
43@ = 0

:CAT1_16275
if 
  3 > 43@
goto_if_false @CAT1_16498
if 
  is_char_dead 72@(43@,4i)
goto_if_false @CAT1_16484
if 
  121@(43@,3i) == 0
goto_if_false @CAT1_16484
if 
  95@(43@,3i) == -1
goto_if_false @CAT1_16484
remove_blip 88@(43@,3i)
88@(43@,3i) = 0
$x, $y, $z = get_dead_char_pickup_coords 72@(43@,4i)
create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} $x {y} $y {z} $z {var_handle} 95@(43@,3i)
add_blip_for_coord $x {y} $y {z} $z {var_handle} 91@(43@,3i)
change_blip_colour 91@(43@,3i) {color} BlipColor.Green
147@ = 29000
121@(43@,3i) = 1
mark_char_as_no_longer_needed 72@(43@,4i)
mark_car_as_no_longer_needed 79@(43@,4i)

:CAT1_16484
43@ += 1
goto @CAT1_16275

:CAT1_16498
43@ = 0

:CAT1_16505
if 
  3 > 43@
goto_if_false @CAT1_16802
if 
  does_pickup_exist 95@(43@,3i)
goto_if_false @CAT1_16788
if 
  147@ > 30000
goto_if_false @CAT1_16585
print_now 'CAT108' {time} 7000 {flag} 1
147@ = 0

:CAT1_16585
$x, $y, $z = get_pickup_coordinates 95@(43@,3i)
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT1_16710
remove_blip 91@(43@,3i)
remove_pickup 95@(43@,3i)
95@(43@,3i) = -1
clear_prints 
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
$cat1_pickups_collected += 1
goto @CAT1_16788

:CAT1_16710
if 
  has_pickup_been_collected 95@(43@,3i)
goto_if_false @CAT1_16788
remove_blip 91@(43@,3i)
remove_pickup 95@(43@,3i)
95@(43@,3i) = -1
clear_prints 
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
$cat1_pickups_collected += 1

:CAT1_16788
43@ += 1
goto @CAT1_16505

:CAT1_16802
if 
  is_char_dead $catalina
goto_if_false @CAT1_16841
print_now 'LOSE2' {time} 5000 {flag} 1
37@ = 1

:CAT1_16841
43@ = 0
if 
  not is_char_dead 72@
goto_if_false @CAT1_16897
if or
  300.0 > 130@
  is_char_on_screen 72@
goto_if_false @CAT1_16897
43@ = 1

:CAT1_16897
if 
  not is_char_dead 73@
goto_if_false @CAT1_16946
if or
  300.0 > 131@
  is_char_on_screen 73@
goto_if_false @CAT1_16946
43@ = 1

:CAT1_16946
if 
  not is_char_dead 74@
goto_if_false @CAT1_16995
if or
  300.0 > 132@
  is_char_on_screen 74@
goto_if_false @CAT1_16995
43@ = 1

:CAT1_16995
if and
  is_char_dead 72@
  is_char_dead 73@
  is_char_dead 74@
goto_if_false @CAT1_17028
43@ = 1

:CAT1_17028
if 
  43@ == 0
goto_if_false @CAT1_17071
if 
  125@ == 0
goto_if_false @CAT1_17071
gosub @CAT1_32437

:CAT1_17071
gosub @CAT1_28501
if 
is_ps2_keyboard_key_just_pressed 74
goto_if_false @CAT1_17100
$cat1_pickups_collected = 4

:CAT1_17100
if 
  $cat1_pickups_collected == 4
goto_if_false @CAT1_17132
gosub @CAT1_32437
gosub @CAT1_32437

:CAT1_17132
return 

:CAT1_17134
set_player_control $player1 {state} False
switch_widescreen True
149@ = get_area_visible 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  149@ <> 0
goto_if_false @CAT1_17287
do_fade 250 {direction} Fade.Out

:CAT1_17189
if 
  get_fading_status 
goto_if_false @CAT1_17213
wait 0
goto @CAT1_17189

:CAT1_17213
if 
  not is_char_dead $catalina
goto_if_false @CAT1_17287
set_area_visible 0
freeze_char_position $scplayer {state} True
$x, $y, $z = get_char_coordinates $catalina
set_char_proofs $catalina {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:CAT1_17287
if 
  not is_char_dead $catalina
goto_if_false @CAT1_17347
set_camera_in_front_of_char $catalina
task_wander_standard $catalina
$x, $y, $z = get_char_coordinates $catalina
clear_area $x {y} $y {z} 100.0 {radius} 100.0 {clearParticles} False

:CAT1_17347
43@ = generate_random_int_in_range 0 {max} 10
switch_start 43@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @CAT1_17964 {caseNum1} 0 {caseLabel1} @CAT1_17484 {caseNum2} 1 {caseLabel2} @CAT1_17532 {caseNum3} 2 {caseLabel3} @CAT1_17580 {caseNum4} 3 {caseLabel4} @CAT1_17628 {caseNum5} 4 {caseLabel5} @CAT1_17676 {caseNum6} 5 {caseLabel6} @CAT1_17724 {caseNum7} 6 {caseLabel7} @CAT1_17772
switch_continued 7 {caseLabel1} @CAT1_17820 {caseNum2} 8 {caseLabel2} @CAT1_17868 {caseNum3} 9 {caseLabel3} @CAT1_17916 {caseNum4} -1 {caseLabel4} @CAT1_17964 {caseNum5} -1 {caseLabel5} @CAT1_17964 {caseNum6} -1 {caseLabel6} @CAT1_17964 {caseNum7} -1 {caseLabel7} @CAT1_17964 {caseNum8} -1 {caseLabel8} @CAT1_17964 {caseNum9} -1 {caseLabel9} @CAT1_17964

:CAT1_17484
set_var_text_label s$audio_string = 'CATX_UA'
set_var_int_to_constant $audio_sound_file = 9889
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17532
set_var_text_label s$audio_string = 'CATX_UB'
set_var_int_to_constant $audio_sound_file = 9890
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17580
set_var_text_label s$audio_string = 'CATX_UC'
set_var_int_to_constant $audio_sound_file = 9891
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17628
set_var_text_label s$audio_string = 'CATX_UD'
set_var_int_to_constant $audio_sound_file = 9892
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17676
set_var_text_label s$audio_string = 'CATX_UE'
set_var_int_to_constant $audio_sound_file = 9893
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17724
set_var_text_label s$audio_string = 'CATX_UF'
set_var_int_to_constant $audio_sound_file = 9894
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17772
set_var_text_label s$audio_string = 'CATX_UG'
set_var_int_to_constant $audio_sound_file = 9895
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17820
set_var_text_label s$audio_string = 'CATX_UH'
set_var_int_to_constant $audio_sound_file = 9896
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17868
set_var_text_label s$audio_string = 'CATX_UJ'
set_var_int_to_constant $audio_sound_file = 9897
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17916
set_var_text_label s$audio_string = 'CATX_UK'
set_var_int_to_constant $audio_sound_file = 9898
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_17964

:CAT1_17964
wait 100

:CAT1_17968
if 
  $audio_line_is_active <> 0
goto_if_false @CAT1_17997
wait 0
goto @CAT1_17968

:CAT1_17997
wait 500
if 
  149@ <> 0
goto_if_false @CAT1_18095
do_fade 500 {direction} Fade.Out

:CAT1_18027
if 
  get_fading_status 
goto_if_false @CAT1_18051
wait 0
goto @CAT1_18027

:CAT1_18051
set_area_visible 149@
freeze_char_position $scplayer {state} False
$x, $y, $z = get_char_coordinates $scplayer
load_scene $x {y} $y {z} $z
do_fade 250 {direction} Fade.In

:CAT1_18095
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char $catalina
print_now 'LOSE' {time} 5000 {flag} 1
37@ = 1
return 

:CAT1_18140
if 
  35@ == 0
goto_if_false @CAT1_18227
set_create_random_gang_members True
94@ = add_blip_for_coord $catX {y} $catY {z} $catZ
print_now 'CAT112' {time} 7000 {flag} 1
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
150@ = 0
120@ = 0
35@ += 1

:CAT1_18227
if 
  35@ == 1
goto_if_false @CAT1_22359
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @CAT1_18423
if 
  120@ == 0
goto_if_false @CAT1_18423
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @CAT1_18353
set_var_text_label s$audio_string = 'CAT1_FA'
set_var_int_to_constant $audio_sound_file = 8824
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_18394

:CAT1_18353
set_var_text_label s$audio_string = 'CAT1_FB'
set_var_int_to_constant $audio_sound_file = 8825
start_new_script @AUDIOL $catalina 0 0 1 0 

:CAT1_18394
62@ = 0
150@ = 1
120@ += 1
TIMERA = -5000

:CAT1_18423
if 
  150@ == 1
goto_if_false @CAT1_21431
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  TIMERA > 1000
goto_if_false @CAT1_21431
if 
  not is_char_dead $catalina
goto_if_false @CAT1_21431
if 
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_21431
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_21431
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT1_19807
switch_start 62@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CAT1_19793 {caseNum1} 0 {caseLabel1} @CAT1_18680 {caseNum2} 1 {caseLabel2} @CAT1_18746 {caseNum3} 2 {caseLabel3} @CAT1_19064 {caseNum4} 3 {caseLabel4} @CAT1_19141 {caseNum5} 4 {caseLabel5} @CAT1_19200 {caseNum6} 5 {caseLabel6} @CAT1_19259 {caseNum7} 6 {caseLabel7} @CAT1_19318
switch_continued 8 {caseLabel1} @CAT1_19377 {caseNum2} 9 {caseLabel2} @CAT1_19436 {caseNum3} 10 {caseLabel3} @CAT1_19495 {caseNum4} 11 {caseLabel4} @CAT1_19554 {caseNum5} 12 {caseLabel5} @CAT1_19613 {caseNum6} 13 {caseLabel6} @CAT1_19672 {caseNum7} 14 {caseLabel7} @CAT1_19731 {caseNum8} 15 {caseLabel8} @CAT1_19779 {caseNum9} -1 {caseLabel9} @CAT1_19793

:CAT1_18680
if 
  $cat_counter == 0
goto_if_false @CAT1_18739
set_var_text_label s$audio_string = 'CAT_DA'
set_var_int_to_constant $audio_sound_file = 8626
start_new_script @AUDIOL $catalina 0 1 1 0 

:CAT1_18739
goto @CAT1_19793

:CAT1_18746
if 
  $cat_counter == 0
goto_if_false @CAT1_19057
if 
  not is_char_dead $catalina
goto_if_false @CAT1_18794
$x, $y, $z = get_char_coordinates $catalina

:CAT1_18794
set_lvar_float_to_var_float 46@ = $catY
sub_float_var_from_float_lvar 46@ -= $y
set_lvar_float_to_var_float 47@ = $catX
sub_float_var_from_float_lvar 47@ -= $x
if 
  0.0 > 47@
goto_if_false @CAT1_18872
48@ = -1.0
mult_float_lvar_by_float_lvar 48@ *= 47@
goto @CAT1_18880

:CAT1_18872
set_lvar_float_to_lvar_float 48@ = 47@

:CAT1_18880
if 
  is_float_lvar_greater_than_float_lvar 46@ > 48@
goto_if_false @CAT1_18947
set_var_text_label s$audio_string = 'CAT_DD'
set_var_int_to_constant $audio_sound_file = 8629
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_19057

:CAT1_18947
if 
  47@ > 0.0
goto_if_false @CAT1_19016
set_var_text_label s$audio_string = 'CAT_DC'
set_var_int_to_constant $audio_sound_file = 8628
start_new_script @AUDIOL $catalina 0 1 1 0 
goto @CAT1_19057

:CAT1_19016
set_var_text_label s$audio_string = 'CAT_DB'
set_var_int_to_constant $audio_sound_file = 8627
start_new_script @AUDIOL $catalina 0 1 1 0 

:CAT1_19057
goto @CAT1_19793

:CAT1_19064
if 
  $cat_counter == 0
goto_if_false @CAT1_19134
set_var_text_label s$audio_string = 'CAT_DE'
set_var_int_to_constant $audio_sound_file = 8630
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8631

:CAT1_19134
goto @CAT1_19793

:CAT1_19141
set_var_text_label s$audio_string = 'CAT_DF'
set_var_int_to_constant $audio_sound_file = 8631
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8632
goto @CAT1_19793

:CAT1_19200
set_var_text_label s$audio_string = 'CAT_DG'
set_var_int_to_constant $audio_sound_file = 8632
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8633
goto @CAT1_19793

:CAT1_19259
set_var_text_label s$audio_string = 'CAT_DH'
set_var_int_to_constant $audio_sound_file = 8633
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8634
goto @CAT1_19793

:CAT1_19318
set_var_text_label s$audio_string = 'CAT_DI'
set_var_int_to_constant $audio_sound_file = 8634
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8635
goto @CAT1_19793

:CAT1_19377
set_var_text_label s$audio_string = 'CAT_DJ'
set_var_int_to_constant $audio_sound_file = 8635
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8636
goto @CAT1_19793

:CAT1_19436
set_var_text_label s$audio_string = 'CAT_DK'
set_var_int_to_constant $audio_sound_file = 8636
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8637
goto @CAT1_19793

:CAT1_19495
set_var_text_label s$audio_string = 'CAT_DL'
set_var_int_to_constant $audio_sound_file = 8637
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8638
goto @CAT1_19793

:CAT1_19554
set_var_text_label s$audio_string = 'CAT_DM'
set_var_int_to_constant $audio_sound_file = 8638
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8639
goto @CAT1_19793

:CAT1_19613
set_var_text_label s$audio_string = 'CAT_DN'
set_var_int_to_constant $audio_sound_file = 8639
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8640
goto @CAT1_19793

:CAT1_19672
set_var_text_label s$audio_string = 'CAT_DO'
set_var_int_to_constant $audio_sound_file = 8640
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8641
goto @CAT1_19793

:CAT1_19731
set_var_text_label s$audio_string = 'CAT_DP'
set_var_int_to_constant $audio_sound_file = 8641
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_19793

:CAT1_19779
150@ = 0
goto @CAT1_19793

:CAT1_19793
62@ += 1
TIMERA = 0

:CAT1_19807
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT1_20796
switch_start 62@ {numCases} 15 {hasDefaultCase} 0 {defaultLabel} @CAT1_20782 {caseNum1} 0 {caseLabel1} @CAT1_19953 {caseNum2} 1 {caseLabel2} @CAT1_20012 {caseNum3} 2 {caseLabel3} @CAT1_20071 {caseNum4} 3 {caseLabel4} @CAT1_20130 {caseNum5} 4 {caseLabel5} @CAT1_20189 {caseNum6} 5 {caseLabel6} @CAT1_20248 {caseNum7} 6 {caseLabel7} @CAT1_20307
switch_continued 7 {caseLabel1} @CAT1_20366 {caseNum2} 8 {caseLabel2} @CAT1_20425 {caseNum3} 9 {caseLabel3} @CAT1_20484 {caseNum4} 10 {caseLabel4} @CAT1_20543 {caseNum5} 11 {caseLabel5} @CAT1_20602 {caseNum6} 12 {caseLabel6} @CAT1_20661 {caseNum7} 13 {caseLabel7} @CAT1_20720 {caseNum8} 14 {caseLabel8} @CAT1_20768 {caseNum9} -1 {caseLabel9} @CAT1_20782

:CAT1_19953
set_var_text_label s$audio_string = 'CAT_GA'
set_var_int_to_constant $audio_sound_file = 8672
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8673
goto @CAT1_20782

:CAT1_20012
set_var_text_label s$audio_string = 'CAT_GB'
set_var_int_to_constant $audio_sound_file = 8673
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8674
goto @CAT1_20782

:CAT1_20071
set_var_text_label s$audio_string = 'CAT_GC'
set_var_int_to_constant $audio_sound_file = 8674
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8675
goto @CAT1_20782

:CAT1_20130
set_var_text_label s$audio_string = 'CAT_GD'
set_var_int_to_constant $audio_sound_file = 8675
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8676
goto @CAT1_20782

:CAT1_20189
set_var_text_label s$audio_string = 'CAT_GE'
set_var_int_to_constant $audio_sound_file = 8676
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8677
goto @CAT1_20782

:CAT1_20248
set_var_text_label s$audio_string = 'CAT_GF'
set_var_int_to_constant $audio_sound_file = 8677
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8678
goto @CAT1_20782

:CAT1_20307
set_var_text_label s$audio_string = 'CAT_GG'
set_var_int_to_constant $audio_sound_file = 8678
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8679
goto @CAT1_20782

:CAT1_20366
set_var_text_label s$audio_string = 'CAT_GH'
set_var_int_to_constant $audio_sound_file = 8679
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8680
goto @CAT1_20782

:CAT1_20425
set_var_text_label s$audio_string = 'CAT_GI'
set_var_int_to_constant $audio_sound_file = 8680
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8681
goto @CAT1_20782

:CAT1_20484
set_var_text_label s$audio_string = 'CAT_GJ'
set_var_int_to_constant $audio_sound_file = 8681
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8682
goto @CAT1_20782

:CAT1_20543
set_var_text_label s$audio_string = 'CAT_GK'
set_var_int_to_constant $audio_sound_file = 8682
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8683
goto @CAT1_20782

:CAT1_20602
set_var_text_label s$audio_string = 'CAT_GL'
set_var_int_to_constant $audio_sound_file = 8683
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8684
goto @CAT1_20782

:CAT1_20661
set_var_text_label s$audio_string = 'CAT_GM'
set_var_int_to_constant $audio_sound_file = 8684
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8685
goto @CAT1_20782

:CAT1_20720
set_var_text_label s$audio_string = 'CAT_GN'
set_var_int_to_constant $audio_sound_file = 8685
start_new_script @AUDIOL $scplayer 0 1 1 1 
goto @CAT1_20782

:CAT1_20768
150@ = 0
goto @CAT1_20782

:CAT1_20782
62@ += 1
TIMERA = 0

:CAT1_20796
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT1_21431
switch_start 62@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CAT1_21417 {caseNum1} 0 {caseLabel1} @CAT1_20942 {caseNum2} 1 {caseLabel2} @CAT1_21001 {caseNum3} 2 {caseLabel3} @CAT1_21060 {caseNum4} 3 {caseLabel4} @CAT1_21119 {caseNum5} 4 {caseLabel5} @CAT1_21178 {caseNum6} 5 {caseLabel6} @CAT1_21237 {caseNum7} 6 {caseLabel7} @CAT1_21296
switch_continued 7 {caseLabel1} @CAT1_21355 {caseNum2} 14 {caseLabel2} @CAT1_21403 {caseNum3} -1 {caseLabel3} @CAT1_21417 {caseNum4} -1 {caseLabel4} @CAT1_21417 {caseNum5} -1 {caseLabel5} @CAT1_21417 {caseNum6} -1 {caseLabel6} @CAT1_21417 {caseNum7} -1 {caseLabel7} @CAT1_21417 {caseNum8} -1 {caseLabel8} @CAT1_21417 {caseNum9} -1 {caseLabel9} @CAT1_21417

:CAT1_20942
set_var_text_label s$audio_string = 'CAT_OA'
set_var_int_to_constant $audio_sound_file = 8725
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8726
goto @CAT1_21417

:CAT1_21001
set_var_text_label s$audio_string = 'CAT_OB'
set_var_int_to_constant $audio_sound_file = 8726
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8727
goto @CAT1_21417

:CAT1_21060
set_var_text_label s$audio_string = 'CAT_OC'
set_var_int_to_constant $audio_sound_file = 8727
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8728
goto @CAT1_21417

:CAT1_21119
set_var_text_label s$audio_string = 'CAT_OD'
set_var_int_to_constant $audio_sound_file = 8728
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8729
goto @CAT1_21417

:CAT1_21178
set_var_text_label s$audio_string = 'CAT_OE'
set_var_int_to_constant $audio_sound_file = 8729
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8730
goto @CAT1_21417

:CAT1_21237
set_var_text_label s$audio_string = 'CAT_OF'
set_var_int_to_constant $audio_sound_file = 8730
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8731
goto @CAT1_21417

:CAT1_21296
set_var_text_label s$audio_string = 'CAT_OG'
set_var_int_to_constant $audio_sound_file = 8731
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8732
goto @CAT1_21417

:CAT1_21355
set_var_text_label s$audio_string = 'CAT_OH'
set_var_int_to_constant $audio_sound_file = 8732
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_21417

:CAT1_21403
150@ = 0
goto @CAT1_21417

:CAT1_21417
62@ += 1
TIMERA = 0

:CAT1_21431
if 
  150@ == 0
goto_if_false @CAT1_22189
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  TIMERA > 30000
goto_if_false @CAT1_22189
43@ = generate_random_int_in_range 0 {max} 16
switch_start 43@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CAT1_22163 {caseNum1} 0 {caseLabel1} @CAT1_21609 {caseNum2} 1 {caseLabel2} @CAT1_21638 {caseNum3} 2 {caseLabel3} @CAT1_21667 {caseNum4} 3 {caseLabel4} @CAT1_21696 {caseNum5} 4 {caseLabel5} @CAT1_21725 {caseNum6} 5 {caseLabel6} @CAT1_21754 {caseNum7} 6 {caseLabel7} @CAT1_21783
switch_continued 7 {caseLabel1} @CAT1_21812 {caseNum2} 8 {caseLabel2} @CAT1_21841 {caseNum3} 9 {caseLabel3} @CAT1_21870 {caseNum4} 10 {caseLabel4} @CAT1_21899 {caseNum5} 11 {caseLabel5} @CAT1_21973 {caseNum6} 12 {caseLabel6} @CAT1_22002 {caseNum7} 13 {caseLabel7} @CAT1_22031 {caseNum8} 14 {caseLabel8} @CAT1_22060 {caseNum9} 15 {caseLabel9} @CAT1_22134

:CAT1_21609
set_var_text_label s$audio_string = 'CATX_VA'
set_var_int_to_constant $audio_sound_file = 9899
goto @CAT1_22163

:CAT1_21638
set_var_text_label s$audio_string = 'CATX_VB'
set_var_int_to_constant $audio_sound_file = 9900
goto @CAT1_22163

:CAT1_21667
set_var_text_label s$audio_string = 'CATX_VC'
set_var_int_to_constant $audio_sound_file = 9901
goto @CAT1_22163

:CAT1_21696
set_var_text_label s$audio_string = 'CATX_VD'
set_var_int_to_constant $audio_sound_file = 9902
goto @CAT1_22163

:CAT1_21725
set_var_text_label s$audio_string = 'CATX_VE'
set_var_int_to_constant $audio_sound_file = 9903
goto @CAT1_22163

:CAT1_21754
set_var_text_label s$audio_string = 'CATX_VF'
set_var_int_to_constant $audio_sound_file = 9904
goto @CAT1_22163

:CAT1_21783
set_var_text_label s$audio_string = 'CATX_VG'
set_var_int_to_constant $audio_sound_file = 9905
goto @CAT1_22163

:CAT1_21812
set_var_text_label s$audio_string = 'CATX_VH'
set_var_int_to_constant $audio_sound_file = 9906
goto @CAT1_22163

:CAT1_21841
set_var_text_label s$audio_string = 'CATX_VJ'
set_var_int_to_constant $audio_sound_file = 9907
goto @CAT1_22163

:CAT1_21870
set_var_text_label s$audio_string = 'CATX_VK'
set_var_int_to_constant $audio_sound_file = 9908
goto @CAT1_22163

:CAT1_21899
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT1_21944
set_var_text_label s$audio_string = 'CATX_VK'
set_var_int_to_constant $audio_sound_file = 9908
goto @CAT1_21966

:CAT1_21944
set_var_text_label s$audio_string = 'CATX_VL'
set_var_int_to_constant $audio_sound_file = 9909

:CAT1_21966
goto @CAT1_22163

:CAT1_21973
set_var_text_label s$audio_string = 'CATX_VM'
set_var_int_to_constant $audio_sound_file = 9910
goto @CAT1_22163

:CAT1_22002
set_var_text_label s$audio_string = 'CATX_VN'
set_var_int_to_constant $audio_sound_file = 9911
goto @CAT1_22163

:CAT1_22031
set_var_text_label s$audio_string = 'CATX_VO'
set_var_int_to_constant $audio_sound_file = 9912
goto @CAT1_22163

:CAT1_22060
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT1_22105
set_var_text_label s$audio_string = 'CATX_VO'
set_var_int_to_constant $audio_sound_file = 9912
goto @CAT1_22127

:CAT1_22105
set_var_text_label s$audio_string = 'CATX_VP'
set_var_int_to_constant $audio_sound_file = 9913

:CAT1_22127
goto @CAT1_22163

:CAT1_22134
set_var_text_label s$audio_string = 'CATX_VQ'
set_var_int_to_constant $audio_sound_file = 9914
goto @CAT1_22163

:CAT1_22163
start_new_script @AUDIOL $catalina 0 0 1 0 
TIMERA = 0

:CAT1_22189
if 
  99@ == 1
goto_if_false @CAT1_22354
if 
  not does_blip_exist 94@
goto_if_false @CAT1_22237
35@ = 0
goto @CAT1_22347

:CAT1_22237
if 
  locate_char_any_means_3d $scplayer {x} $catX {y} $catY {z} $catZ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @CAT1_22347
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_22340
$car = store_car_char_is_in_no_save $scplayer
if 
  is_vehicle_on_all_wheels $car
goto_if_false @CAT1_22333
set_player_control $player1 {state} False
35@ += 1

:CAT1_22333
goto @CAT1_22347

:CAT1_22340
35@ += 1

:CAT1_22347
goto @CAT1_22359

:CAT1_22354
remove_blip 94@

:CAT1_22359
if 
  35@ == 2
goto_if_false @CAT1_22438
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_22431
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $car
goto_if_false @CAT1_22424
35@ += 1

:CAT1_22424
goto @CAT1_22438

:CAT1_22431
35@ += 1

:CAT1_22438
if 
  35@ == 3
goto_if_false @CAT1_22771
set_player_control $player1 {state} False
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
switch_widescreen True
clear_area $catX {y} $catY {z} $catZ {radius} 20.0 {clearParticles} True
set_fixed_camera_position 856.0245 {y} -29.9962 {z} 63.9179 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 856.9926 {y} -29.7496 {z} 63.8739 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT1_22727
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT1_22654
if 
  not locate_char_any_means_3d $catalina {x} $catX {y} $catY {z} $catZ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_22654
set_char_coordinates $catalina {x} 868.838 {y} -28.2257 {z} 62.1875
set_char_heading $catalina {heading} 161.446

:CAT1_22654
49@ = open_sequence_task 
if 
  is_char_in_any_car $catalina
goto_if_false @CAT1_22690
$car = store_car_char_is_in_no_save $catalina
task_leave_car -1 {vehicle} $car

:CAT1_22690
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 99999
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_22727
43@ = generate_random_int_in_range 0 {max} 10
TIMERA = 0
151@ = 0
62@ = 0
152@ = 0
35@ += 1

:CAT1_22771
if 
  35@ == 4
goto_if_false @CAT1_25152
if 
  151@ == 0
goto_if_false @CAT1_25035
if and
  $audio_line_is_active == 0
  TIMERA > 1000
goto_if_false @CAT1_25028
if 
  $cat_counter == 0
goto_if_false @CAT1_23849
switch_start 62@ {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @CAT1_23835 {caseNum1} 0 {caseLabel1} @CAT1_22979 {caseNum2} 1 {caseLabel2} @CAT1_23038 {caseNum3} 2 {caseLabel3} @CAT1_23097 {caseNum4} 3 {caseLabel4} @CAT1_23156 {caseNum5} 4 {caseLabel5} @CAT1_23215 {caseNum6} 5 {caseLabel6} @CAT1_23274 {caseNum7} 6 {caseLabel7} @CAT1_23333
switch_continued 7 {caseLabel1} @CAT1_23392 {caseNum2} 8 {caseLabel2} @CAT1_23451 {caseNum3} 9 {caseLabel3} @CAT1_23510 {caseNum4} 10 {caseLabel4} @CAT1_23569 {caseNum5} 11 {caseLabel5} @CAT1_23628 {caseNum6} 12 {caseLabel6} @CAT1_23786 {caseNum7} 13 {caseLabel7} @CAT1_23807 {caseNum8} 14 {caseLabel8} @CAT1_23814 {caseNum9} 15 {caseLabel9} @CAT1_23821

:CAT1_22979
set_var_text_label s$audio_string = 'CAT_EA'
set_var_int_to_constant $audio_sound_file = 8642
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8643
goto @CAT1_23835

:CAT1_23038
set_var_text_label s$audio_string = 'CAT_EB'
set_var_int_to_constant $audio_sound_file = 8643
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8644
goto @CAT1_23835

:CAT1_23097
set_var_text_label s$audio_string = 'CAT_EC'
set_var_int_to_constant $audio_sound_file = 8644
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8645
goto @CAT1_23835

:CAT1_23156
set_var_text_label s$audio_string = 'CAT_ED'
set_var_int_to_constant $audio_sound_file = 8645
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8646
goto @CAT1_23835

:CAT1_23215
set_var_text_label s$audio_string = 'CAT_EE'
set_var_int_to_constant $audio_sound_file = 8646
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8647
goto @CAT1_23835

:CAT1_23274
set_var_text_label s$audio_string = 'CAT_EF'
set_var_int_to_constant $audio_sound_file = 8647
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8648
goto @CAT1_23835

:CAT1_23333
set_var_text_label s$audio_string = 'CAT_EG'
set_var_int_to_constant $audio_sound_file = 8648
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8649
goto @CAT1_23835

:CAT1_23392
set_var_text_label s$audio_string = 'CAT_EH'
set_var_int_to_constant $audio_sound_file = 8649
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8650
goto @CAT1_23835

:CAT1_23451
set_var_text_label s$audio_string = 'CAT_EI'
set_var_int_to_constant $audio_sound_file = 8650
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8651
goto @CAT1_23835

:CAT1_23510
set_var_text_label s$audio_string = 'CAT_EJ'
set_var_int_to_constant $audio_sound_file = 8651
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8652
goto @CAT1_23835

:CAT1_23569
set_var_text_label s$audio_string = 'CAT_EK'
set_var_int_to_constant $audio_sound_file = 8652
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8653
goto @CAT1_23835

:CAT1_23628
set_var_text_label s$audio_string = 'CAT_EL'
set_var_int_to_constant $audio_sound_file = 8653
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8654
152@ = 1
if 
  not is_char_dead $catalina
goto_if_false @CAT1_23779
clear_look_at $catalina
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 869.0271 {y} -28.2591 {z} 62.1893 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} 870.2891 {y} -25.0424 {z} 62.9858 {speed} MoveState.Walk {time} 5000
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_23779
goto @CAT1_23835

:CAT1_23786
62@ = 16
151@ = 1
goto @CAT1_23835

:CAT1_23807
goto @CAT1_23835

:CAT1_23814
goto @CAT1_23835

:CAT1_23821
151@ = 1
goto @CAT1_23835

:CAT1_23835
62@ += 1
TIMERA = 0

:CAT1_23849
if 
  $cat_counter == 1
goto_if_false @CAT1_24301
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CAT1_24287 {caseNum1} 0 {caseLabel1} @CAT1_23930 {caseNum2} 1 {caseLabel2} @CAT1_23989 {caseNum3} 2 {caseLabel3} @CAT1_24048 {caseNum4} 3 {caseLabel4} @CAT1_24107 {caseNum5} 4 {caseLabel5} @CAT1_24166 {caseNum6} 5 {caseLabel6} @CAT1_24225 {caseNum7} 6 {caseLabel7} @CAT1_24273

:CAT1_23930
set_var_text_label s$audio_string = 'CAT_HA'
set_var_int_to_constant $audio_sound_file = 8686
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8687
goto @CAT1_24287

:CAT1_23989
set_var_text_label s$audio_string = 'CAT_HB'
set_var_int_to_constant $audio_sound_file = 8687
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8688
goto @CAT1_24287

:CAT1_24048
set_var_text_label s$audio_string = 'CAT_HC'
set_var_int_to_constant $audio_sound_file = 8688
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8689
goto @CAT1_24287

:CAT1_24107
set_var_text_label s$audio_string = 'CAT_HD'
set_var_int_to_constant $audio_sound_file = 8689
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8690
goto @CAT1_24287

:CAT1_24166
set_var_text_label s$audio_string = 'CAT_HE'
set_var_int_to_constant $audio_sound_file = 8690
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8691
goto @CAT1_24287

:CAT1_24225
set_var_text_label s$audio_string = 'CAT_HF'
set_var_int_to_constant $audio_sound_file = 8691
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_24287

:CAT1_24273
151@ = 1
goto @CAT1_24287

:CAT1_24287
62@ += 1
TIMERA = 0

:CAT1_24301
if 
  $cat_counter == 2
goto_if_false @CAT1_24576
switch_start 62@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT1_24562 {caseNum1} 0 {caseLabel1} @CAT1_24382 {caseNum2} 1 {caseLabel2} @CAT1_24441 {caseNum3} 2 {caseLabel3} @CAT1_24500 {caseNum4} 3 {caseLabel4} @CAT1_24548 {caseNum5} -1 {caseLabel5} @CAT1_24562 {caseNum6} -1 {caseLabel6} @CAT1_24562 {caseNum7} -1 {caseLabel7} @CAT1_24562

:CAT1_24382
set_var_text_label s$audio_string = 'CAT_MA'
set_var_int_to_constant $audio_sound_file = 8714
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8715
goto @CAT1_24562

:CAT1_24441
set_var_text_label s$audio_string = 'CAT_MB'
set_var_int_to_constant $audio_sound_file = 8715
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8716
goto @CAT1_24562

:CAT1_24500
set_var_text_label s$audio_string = 'CAT_MC'
set_var_int_to_constant $audio_sound_file = 8716
start_new_script @AUDIOL $catalina 0 1 2 1 
goto @CAT1_24562

:CAT1_24548
151@ = 1
goto @CAT1_24562

:CAT1_24562
62@ += 1
TIMERA = 0

:CAT1_24576
if 
  $cat_counter == 3
goto_if_false @CAT1_25028
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CAT1_25014 {caseNum1} 0 {caseLabel1} @CAT1_24657 {caseNum2} 1 {caseLabel2} @CAT1_24716 {caseNum3} 2 {caseLabel3} @CAT1_24775 {caseNum4} 3 {caseLabel4} @CAT1_24834 {caseNum5} 4 {caseLabel5} @CAT1_24893 {caseNum6} 5 {caseLabel6} @CAT1_24952 {caseNum7} 6 {caseLabel7} @CAT1_25000

:CAT1_24657
set_var_text_label s$audio_string = 'CAT_PA'
set_var_int_to_constant $audio_sound_file = 8733
start_new_script @AUDIOL $catalina 0 1 2 0 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8734
goto @CAT1_25014

:CAT1_24716
set_var_text_label s$audio_string = 'CAT_PB'
set_var_int_to_constant $audio_sound_file = 8734
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8735
goto @CAT1_25014

:CAT1_24775
set_var_text_label s$audio_string = 'CAT_PC'
set_var_int_to_constant $audio_sound_file = 8735
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8736
goto @CAT1_25014

:CAT1_24834
set_var_text_label s$audio_string = 'CAT_PD'
set_var_int_to_constant $audio_sound_file = 8736
start_new_script @AUDIOL $catalina 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 8737
goto @CAT1_25014

:CAT1_24893
set_var_text_label s$audio_string = 'CAT_PE'
set_var_int_to_constant $audio_sound_file = 8737
start_new_script @AUDIOL $catalina 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 8738
goto @CAT1_25014

:CAT1_24952
set_var_text_label s$audio_string = 'CAT_PF'
set_var_int_to_constant $audio_sound_file = 8738
start_new_script @AUDIOL $catalina 0 1 1 1 
goto @CAT1_25014

:CAT1_25000
151@ = 1
goto @CAT1_25014

:CAT1_25014
62@ += 1
TIMERA = 0

:CAT1_25028
goto @CAT1_25152

:CAT1_25035
if 
  not is_char_dead $catalina
goto_if_false @CAT1_25145
if 
  152@ == 0
goto_if_false @CAT1_25145
clear_look_at $catalina
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 869.0271 {y} -28.2591 {z} 62.1893 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} 870.2891 {y} -25.0424 {z} 62.9858 {speed} MoveState.Walk {time} 5000
close_sequence_task 49@
perform_sequence_task $catalina {sequence} 49@
clear_sequence_task 49@

:CAT1_25145
35@ += 1

:CAT1_25152
if 
  35@ == 5
goto_if_false @CAT1_25323
if 
  not is_char_dead $catalina
goto_if_false @CAT1_25236
43@ = get_script_task_status $catalina {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @CAT1_25229
43@ = 1
goto @CAT1_25236

:CAT1_25229
43@ = 0

:CAT1_25236
if 
  TIMERA > 10000
goto_if_false @CAT1_25262
43@ = 1

:CAT1_25262
if 
  43@ == 1
goto_if_false @CAT1_25323
set_camera_behind_player 
restore_camera_jumpcut 
if 
  does_char_exist $catalina
goto_if_false @CAT1_25305
delete_char $catalina

:CAT1_25305
set_player_control $player1 {state} True
switch_widescreen False
36@ = 1

:CAT1_25323
return 

:CAT1_25325
43@ = get_area_visible 
if 
  43@ <> 0
goto_if_false @CAT1_25398
if 
  125@ == 0
goto_if_false @CAT1_25391
set_lvar_float_to_lvar_float 126@ = 133@
133@ = 0.0
125@ = 1

:CAT1_25391
goto @CAT1_25431

:CAT1_25398
if 
  125@ == 1
goto_if_false @CAT1_25431
set_lvar_float_to_lvar_float 133@ = 126@
125@ = 0

:CAT1_25431
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_25618
if 
  not is_car_dead 78@
goto_if_false @CAT1_25603
if 
  not is_char_in_car $scplayer {vehicle} 78@
goto_if_false @CAT1_25596
43@ = 0
44@ = 0

:CAT1_25496
if 
  4 > 43@
goto_if_false @CAT1_25565
if 
  is_int_lvar_equal_to_int_lvar 78@ == 79@(43@,4i)
goto_if_false @CAT1_25551
44@ = 1
43@ = 4

:CAT1_25551
43@ += 1
goto @CAT1_25496

:CAT1_25565
if 
  44@ == 1
goto_if_false @CAT1_25588
mark_car_as_no_longer_needed 78@

:CAT1_25588
78@ = store_car_char_is_in $scplayer

:CAT1_25596
goto @CAT1_25611

:CAT1_25603
78@ = store_car_char_is_in $scplayer

:CAT1_25611
goto @CAT1_25618

:CAT1_25618
if 
  not is_char_dead $catalina
goto_if_false @CAT1_25909
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_25909
if 
  98@ == 0
goto_if_false @CAT1_25909
if 
  99@ == 1
goto_if_false @CAT1_25786
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_25779
print 'LEFTC' {time} 4000 {flag} 1
if 
  not does_blip_exist 87@
goto_if_false @CAT1_25758
87@ = add_blip_for_char $catalina
set_blip_as_friendly 87@ {state} True

:CAT1_25758
64@ = 1
65@ = 0
99@ = 0

:CAT1_25779
goto @CAT1_25909

:CAT1_25786
if 
  locate_char_any_means_char_3d $catalina {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CAT1_25909
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT1_25902
if 
  does_blip_exist 87@
goto_if_false @CAT1_25862
remove_blip 87@

:CAT1_25862
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_char_drowns_in_water $catalina {state} False
99@ = 1
64@ = 0
goto @CAT1_25909

:CAT1_25902
99@ = 1

:CAT1_25909
if 
  not is_char_dead $catalina
goto_if_false @CAT1_26027
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT1_25979
if 
  not does_blip_exist 87@
goto_if_false @CAT1_25972
87@ = add_blip_for_char $catalina
set_blip_as_friendly 87@ {state} True

:CAT1_25972
goto @CAT1_26027

:CAT1_25979
if 
  does_blip_exist 87@
goto_if_false @CAT1_26027
$car = store_car_char_is_in_no_save $catalina
if 
  is_char_in_car $scplayer {vehicle} $car
goto_if_false @CAT1_26027
remove_blip 87@

:CAT1_26027
if 
  does_char_exist $catalina
goto_if_false @CAT1_26082
if 
  is_char_dead $catalina
goto_if_false @CAT1_26082
print_now 'LOSE2' {time} 5000 {flag} 1
37@ = 1

:CAT1_26082
if 
  125@ == 0
goto_if_false @CAT1_26616
if 
  not is_char_dead $catalina
goto_if_false @CAT1_26616
if and
  has_char_been_damaged_by_char $catalina {handle} $scplayer
  $audio_line_is_active == 0
goto_if_false @CAT1_26616
153@ += 1
if 
  153@ > 9
goto_if_false @CAT1_26174
153@ = 0

:CAT1_26174
switch_start 153@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @CAT1_26592 {caseNum1} 0 {caseLabel1} @CAT1_26302 {caseNum2} 1 {caseLabel2} @CAT1_26331 {caseNum3} 2 {caseLabel3} @CAT1_26360 {caseNum4} 3 {caseLabel4} @CAT1_26389 {caseNum5} 4 {caseLabel5} @CAT1_26418 {caseNum6} 5 {caseLabel6} @CAT1_26447 {caseNum7} 6 {caseLabel7} @CAT1_26476
switch_continued 7 {caseLabel1} @CAT1_26505 {caseNum2} 8 {caseLabel2} @CAT1_26534 {caseNum3} 9 {caseLabel3} @CAT1_26563 {caseNum4} -1 {caseLabel4} @CAT1_26592 {caseNum5} -1 {caseLabel5} @CAT1_26592 {caseNum6} -1 {caseLabel6} @CAT1_26592 {caseNum7} -1 {caseLabel7} @CAT1_26592 {caseNum8} -1 {caseLabel8} @CAT1_26592 {caseNum9} -1 {caseLabel9} @CAT1_26592

:CAT1_26302
set_var_text_label s$audio_string = 'CATX_UA'
set_var_int_to_constant $audio_sound_file = 9889
goto @CAT1_26592

:CAT1_26331
set_var_text_label s$audio_string = 'CATX_UB'
set_var_int_to_constant $audio_sound_file = 9890
goto @CAT1_26592

:CAT1_26360
set_var_text_label s$audio_string = 'CATX_UC'
set_var_int_to_constant $audio_sound_file = 9891
goto @CAT1_26592

:CAT1_26389
set_var_text_label s$audio_string = 'CATX_UD'
set_var_int_to_constant $audio_sound_file = 9892
goto @CAT1_26592

:CAT1_26418
set_var_text_label s$audio_string = 'CATX_UE'
set_var_int_to_constant $audio_sound_file = 9893
goto @CAT1_26592

:CAT1_26447
set_var_text_label s$audio_string = 'CATX_UF'
set_var_int_to_constant $audio_sound_file = 9894
goto @CAT1_26592

:CAT1_26476
set_var_text_label s$audio_string = 'CATX_UG'
set_var_int_to_constant $audio_sound_file = 9895
goto @CAT1_26592

:CAT1_26505
set_var_text_label s$audio_string = 'CATX_UH'
set_var_int_to_constant $audio_sound_file = 9896
goto @CAT1_26592

:CAT1_26534
set_var_text_label s$audio_string = 'CATX_UJ'
set_var_int_to_constant $audio_sound_file = 9897
goto @CAT1_26592

:CAT1_26563
set_var_text_label s$audio_string = 'CATX_UK'
set_var_int_to_constant $audio_sound_file = 9898
goto @CAT1_26592

:CAT1_26592
start_new_script @AUDIOL $catalina 0 0 1 0 
clear_char_last_damage_entity $catalina

:CAT1_26616
return 
if 
  117@ == 0
goto_if_false @CAT1_26684
143@ += 0.001
if 
  143@ > 0.03
goto_if_false @CAT1_26677
143@ = 0.03

:CAT1_26677
goto @CAT1_26725

:CAT1_26684
143@ += -0.001
if 
  0.0 > 143@
goto_if_false @CAT1_26725
143@ = 0.0

:CAT1_26725
144@ += 0.005
if 
  144@ > 0.1
goto_if_false @CAT1_26766
144@ = 0.1

:CAT1_26766
156@ = 261.4119
157@ = -78.5511
158@ = 2.3102
set_lvar_float_to_lvar_float 159@ = 134@
set_lvar_float_to_lvar_float 160@ = 135@
set_lvar_float_to_lvar_float 161@ = 136@
set_lvar_float_to_lvar_float 162@ = 143@
gosub @CAT1_27226
if 
  47@ == 99.9
goto_if_false @CAT1_26881
if 
  117@ == 0
goto_if_false @CAT1_26881
117@ = 1

:CAT1_26881
set_lvar_float_to_lvar_float 134@ = 159@
set_lvar_float_to_lvar_float 135@ = 160@
set_lvar_float_to_lvar_float 136@ = 161@
set_lvar_float_to_lvar_float 156@ = 140@
set_lvar_float_to_lvar_float 157@ = 141@
set_lvar_float_to_lvar_float 158@ = 142@
set_lvar_float_to_lvar_float 159@ = 137@
set_lvar_float_to_lvar_float 160@ = 138@
set_lvar_float_to_lvar_float 161@ = 139@
set_lvar_float_to_lvar_float 162@ = 144@
gosub @CAT1_27226
if 
  47@ == 99.9
goto_if_false @CAT1_27014
if 
  118@ == 0
goto_if_false @CAT1_27014
118@ = 1

:CAT1_27014
set_lvar_float_to_lvar_float 137@ = 159@
set_lvar_float_to_lvar_float 138@ = 160@
set_lvar_float_to_lvar_float 139@ = 161@
if 
  69@ == 1
goto_if_false @CAT1_27224
set_lvar_float_to_lvar_float 56@ = 137@
56@ -= 0.5
set_lvar_float_to_lvar_float 59@ = 137@
59@ += 0.5
set_lvar_float_to_lvar_float 57@ = 138@
57@ -= 0.5
set_lvar_float_to_lvar_float 60@ = 138@
60@ += 0.5
set_lvar_float_to_lvar_float 58@ = 139@
58@ -= 0.5
set_lvar_float_to_lvar_float 61@ = 139@
61@ += 0.5
line 56@ {f2} 138@ {f3} 139@ {f4} 59@ {f5} 138@ {f6} 139@
line 137@ {f2} 57@ {f3} 139@ {f4} 137@ {f5} 60@ {f6} 139@
line 137@ {f2} 138@ {f3} 58@ {f4} 137@ {f5} 138@ {f6} 61@

:CAT1_27224
return 

:CAT1_27226
set_var_float_to_lvar_float $x = 156@
sub_float_lvar_from_float_var $x -= 159@
set_var_float_to_lvar_float $y = 157@
sub_float_lvar_from_float_var $y -= 160@
set_var_float_to_lvar_float $z = 158@
sub_float_lvar_from_float_var $z -= 161@
46@ = get_distance_between_coords_3d 159@ {fromY} 160@ {fromZ} 161@ {toX} 156@ {toY} 157@ {toZ} 158@
set_lvar_float_to_lvar_float 47@ = 162@
47@ *= 20.0
if 
  is_float_lvar_greater_than_float_lvar 47@ > 46@
goto_if_false @CAT1_27344
47@ = 99.9

:CAT1_27344
if 
  is_float_lvar_greater_than_float_lvar 46@ > 162@
goto_if_false @CAT1_27435
div_float_var_by_float_lvar $x /= 46@
div_float_var_by_float_lvar $y /= 46@
div_float_var_by_float_lvar $z /= 46@
mult_float_var_by_float_lvar $x *= 162@
mult_float_var_by_float_lvar $y *= 162@
mult_float_var_by_float_lvar $z *= 162@
add_float_var_to_float_lvar 159@ += $x
add_float_var_to_float_lvar 160@ += $y
add_float_var_to_float_lvar 161@ += $z

:CAT1_27435
return 

:CAT1_27437
if 
  not is_car_dead 79@(163@,4i)
goto_if_false @CAT1_28499
if 
  not is_char_dead 72@(163@,4i)
goto_if_false @CAT1_28456
if 
  is_char_in_car 72@(163@,4i) {vehicle} 79@(163@,4i)
goto_if_false @CAT1_28387
if 
  112@(163@,3i) == 1
goto_if_false @CAT1_27566
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_27566
unpause_playback_recorded_car 79@(163@,4i)
112@(163@,3i) = 0

:CAT1_27566
165@ = 0.0
$x, $y, $z = get_car_coordinates 79@(163@,4i)
56@, 57@, 58@ = get_char_coordinates $scplayer
if 
  109@(163@,3i) == 0
goto_if_false @CAT1_27693
if 
  locate_car_3d 79@(163@,4i) {x} 2711.1189 {y} -53.5082 {z} 39.4695 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_27693
109@(163@,3i) = 1

:CAT1_27693
get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@ {var_distance} 130@(163@,3f)
if 
  109@(163@,3i) == 0
goto_if_false @CAT1_27851
if 
  is_float_lvar_greater_than_float_var 56@ > $x
goto_if_false @CAT1_27844
165@ = 1.5
if 
  130@(163@,3f) > 100.0
goto_if_false @CAT1_27844
if 
  not is_car_on_screen 79@(163@,4i)
goto_if_false @CAT1_27844
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_27844
skip_in_playback_recorded_car 79@(163@,4i) {amount} 1.0

:CAT1_27844
goto @CAT1_27959

:CAT1_27851
if 
  is_float_var_greater_than_float_lvar $y > 57@
goto_if_false @CAT1_27959
165@ = 1.5
if 
  130@(163@,3f) > 100.0
goto_if_false @CAT1_27959
if 
  not is_car_on_screen 79@(163@,4i)
goto_if_false @CAT1_27959
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_27959
skip_in_playback_recorded_car 79@(163@,4i) {amount} 1.0

:CAT1_27959
if 
  165@ == 0.0
goto_if_false @CAT1_28123
if 
  30.0 > 130@(163@,3f)
goto_if_false @CAT1_28022
165@ = 1.0
goto @CAT1_28123

:CAT1_28022
set_lvar_float_to_lvar_float 46@ = 130@(163@,3f)
if 
  46@ > 200.0
goto_if_false @CAT1_28065
46@ = 200.0

:CAT1_28065
46@ -= 30.0
46@ /= 170.0
165@ = 1.0
sub_float_lvar_from_float_lvar 165@ -= 46@
165@ *= 0.8
165@ += 0.2

:CAT1_28123
mult_float_lvar_by_float_lvar 165@ *= 133@
if 
  is_car_in_area_2d 79@(163@,4i) {leftBottomX} 1940.8199 {leftBottomY} 72.1365 {rightTopX} 2145.438 {rightTopY} 140.5141 {drawSphere} False
goto_if_false @CAT1_28183
165@ = 2.5

:CAT1_28183
if 
  0.1 > 165@
goto_if_false @CAT1_28214
165@ = 0.1

:CAT1_28214
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28246
set_playback_speed 79@(163@,4i) {speed} 165@

:CAT1_28246
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28380
if 
  does_car_have_stuck_car_check 79@(163@,4i)
goto_if_false @CAT1_28380
if 
  is_car_stuck 79@(163@,4i)
goto_if_false @CAT1_28380
if 
  not is_car_on_screen 79@(163@,4i)
goto_if_false @CAT1_28380
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 79@(163@,4i) {xRadius} 40.0 {yRadius} 40.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_28380
skip_in_playback_recorded_car 79@(163@,4i) {amount} 0.1

:CAT1_28380
goto @CAT1_28449

:CAT1_28387
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28449
if 
  112@(163@,3i) == 0
goto_if_false @CAT1_28449
pause_playback_recorded_car 79@(163@,4i)
112@(163@,3i) = 1

:CAT1_28449
goto @CAT1_28499

:CAT1_28456
if 
  is_playback_going_on_for_car 79@(163@,4i)
goto_if_false @CAT1_28485
stop_playback_recorded_car 79@(163@,4i)

:CAT1_28485
130@(163@,3f) = 0.0

:CAT1_28499
return 

:CAT1_28501
if 
  65@ > 10000
goto_if_false @CAT1_32087
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_29779
if 
  not is_char_dead $catalina
goto_if_false @CAT1_29779
if 
  not is_char_shooting $catalina
goto_if_false @CAT1_29779
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT1_29779
$car = store_car_char_is_in_no_save $scplayer
if 
  is_char_in_car $catalina {vehicle} $car
goto_if_false @CAT1_29779
43@ = 0
44@ = 0

:CAT1_28631
if 
  3 > 43@
goto_if_false @CAT1_28690
if 
  not is_char_dead 72@(43@,4i)
goto_if_false @CAT1_28676
44@ += 1

:CAT1_28676
43@ += 1
goto @CAT1_28631

:CAT1_28690
43@ = 0
if 
  not is_char_dead 72@
goto_if_false @CAT1_28741
if 
  50.0 > 130@
goto_if_false @CAT1_28741
43@ += 1

:CAT1_28741
if 
  not is_char_dead 73@
goto_if_false @CAT1_28785
if 
  50.0 > 131@
goto_if_false @CAT1_28785
43@ += 1

:CAT1_28785
if 
  not is_char_dead 74@
goto_if_false @CAT1_28829
if 
  50.0 > 132@
goto_if_false @CAT1_28829
43@ += 1

:CAT1_28829
if and
  is_char_dead 72@
  is_char_dead 73@
  is_char_dead 74@
goto_if_false @CAT1_28862
43@ += 1

:CAT1_28862
if 
  43@ == 0
goto_if_false @CAT1_29779
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_29779
166@ += 1
if 
  166@ > 8
goto_if_false @CAT1_28930
166@ = 0

:CAT1_28930
switch_start 166@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CAT1_29772 {caseNum1} 0 {caseLabel1} @CAT1_29058 {caseNum2} 1 {caseLabel2} @CAT1_29153 {caseNum3} 2 {caseLabel3} @CAT1_29201 {caseNum4} 3 {caseLabel4} @CAT1_29249 {caseNum5} 4 {caseLabel5} @CAT1_29344 {caseNum6} 5 {caseLabel6} @CAT1_29439 {caseNum7} 6 {caseLabel7} @CAT1_29534
switch_continued 7 {caseLabel1} @CAT1_29629 {caseNum2} 8 {caseLabel2} @CAT1_29724 {caseNum3} -1 {caseLabel3} @CAT1_29772 {caseNum4} -1 {caseLabel4} @CAT1_29772 {caseNum5} -1 {caseLabel5} @CAT1_29772 {caseNum6} -1 {caseLabel6} @CAT1_29772 {caseNum7} -1 {caseLabel7} @CAT1_29772 {caseNum8} -1 {caseLabel8} @CAT1_29772 {caseNum9} -1 {caseLabel9} @CAT1_29772

:CAT1_29058
if 
  44@ > 1
goto_if_false @CAT1_29105
set_var_text_label s$audio_string = 'CAT1_CA'
set_var_int_to_constant $audio_sound_file = 8811
goto @CAT1_29127

:CAT1_29105
set_var_text_label s$audio_string = 'CATX_AA'
set_var_int_to_constant $audio_sound_file = 9800

:CAT1_29127
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29153
set_var_text_label s$audio_string = 'CAT1_CB'
set_var_int_to_constant $audio_sound_file = 8812
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29201
set_var_text_label s$audio_string = 'CAT1_CC'
set_var_int_to_constant $audio_sound_file = 8813
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29249
if 
  44@ > 1
goto_if_false @CAT1_29296
set_var_text_label s$audio_string = 'CAT1_CD'
set_var_int_to_constant $audio_sound_file = 8814
goto @CAT1_29318

:CAT1_29296
set_var_text_label s$audio_string = 'CATX_AD'
set_var_int_to_constant $audio_sound_file = 9803

:CAT1_29318
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29344
if 
  44@ > 1
goto_if_false @CAT1_29391
set_var_text_label s$audio_string = 'CAT1_CE'
set_var_int_to_constant $audio_sound_file = 8815
goto @CAT1_29413

:CAT1_29391
set_var_text_label s$audio_string = 'CATX_AG'
set_var_int_to_constant $audio_sound_file = 9806

:CAT1_29413
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29439
if 
  44@ > 1
goto_if_false @CAT1_29486
set_var_text_label s$audio_string = 'CAT1_DA'
set_var_int_to_constant $audio_sound_file = 8816
goto @CAT1_29508

:CAT1_29486
set_var_text_label s$audio_string = 'CATX_AH'
set_var_int_to_constant $audio_sound_file = 9807

:CAT1_29508
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29534
if 
  44@ > 1
goto_if_false @CAT1_29581
set_var_text_label s$audio_string = 'CAT1_DB'
set_var_int_to_constant $audio_sound_file = 8817
goto @CAT1_29603

:CAT1_29581
set_var_text_label s$audio_string = 'CATX_AC'
set_var_int_to_constant $audio_sound_file = 9802

:CAT1_29603
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29629
if 
  44@ > 1
goto_if_false @CAT1_29676
set_var_text_label s$audio_string = 'CAT1_DC'
set_var_int_to_constant $audio_sound_file = 8818
goto @CAT1_29698

:CAT1_29676
set_var_text_label s$audio_string = 'CATX_AB'
set_var_int_to_constant $audio_sound_file = 9801

:CAT1_29698
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29724
set_var_text_label s$audio_string = 'CAT1_DD'
set_var_int_to_constant $audio_sound_file = 8819
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_29772

:CAT1_29772
65@ = 0

:CAT1_29779
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_30495
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_30495
if 
  not is_char_dead $catalina
goto_if_false @CAT1_30495
if 
  not is_char_shooting $catalina
goto_if_false @CAT1_30495
if or
  not is_char_in_any_car $scplayer
  not is_char_in_any_car $catalina
goto_if_false @CAT1_30495
if 
  not locate_char_any_means_char_3d $catalina {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT1_30495
43@ = generate_random_int_in_range 0 {max} 8
if 
  is_int_lvar_equal_to_int_lvar 43@ == 169@
goto_if_false @CAT1_29968
43@ += 1
if 
  43@ > 7
goto_if_false @CAT1_29968
43@ = 0

:CAT1_29968
set_lvar_int_to_lvar_int 169@ = 43@
switch_start 43@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CAT1_30488 {caseNum1} 0 {caseLabel1} @CAT1_30104 {caseNum2} 1 {caseLabel2} @CAT1_30152 {caseNum3} 2 {caseLabel3} @CAT1_30200 {caseNum4} 3 {caseLabel4} @CAT1_30248 {caseNum5} 4 {caseLabel5} @CAT1_30296 {caseNum6} 5 {caseLabel6} @CAT1_30344 {caseNum7} 6 {caseLabel7} @CAT1_30392
switch_continued 7 {caseLabel1} @CAT1_30440 {caseNum2} -1 {caseLabel2} @CAT1_30488 {caseNum3} -1 {caseLabel3} @CAT1_30488 {caseNum4} -1 {caseLabel4} @CAT1_30488 {caseNum5} -1 {caseLabel5} @CAT1_30488 {caseNum6} -1 {caseLabel6} @CAT1_30488 {caseNum7} -1 {caseLabel7} @CAT1_30488 {caseNum8} -1 {caseLabel8} @CAT1_30488 {caseNum9} -1 {caseLabel9} @CAT1_30488

:CAT1_30104
set_var_text_label s$audio_string = 'CATX_JA'
set_var_int_to_constant $audio_sound_file = 9826
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30152
set_var_text_label s$audio_string = 'CATX_JB'
set_var_int_to_constant $audio_sound_file = 9827
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30200
set_var_text_label s$audio_string = 'CATX_JC'
set_var_int_to_constant $audio_sound_file = 9828
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30248
set_var_text_label s$audio_string = 'CATX_JD'
set_var_int_to_constant $audio_sound_file = 9829
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30296
set_var_text_label s$audio_string = 'CATX_JE'
set_var_int_to_constant $audio_sound_file = 9830
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30344
set_var_text_label s$audio_string = 'CATX_JF'
set_var_int_to_constant $audio_sound_file = 9831
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30392
set_var_text_label s$audio_string = 'CATX_JG'
set_var_int_to_constant $audio_sound_file = 9832
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30440
set_var_text_label s$audio_string = 'CATX_JH'
set_var_int_to_constant $audio_sound_file = 9833
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_30488

:CAT1_30488
65@ = 0

:CAT1_30495
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_32087
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_32087
if 
  not is_char_dead $catalina
goto_if_false @CAT1_32087
if 
  is_char_shooting $catalina
goto_if_false @CAT1_32087
if 
  locate_char_any_means_char_3d $catalina {target} $scplayer {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CAT1_32087
43@ = 0

:CAT1_30610
if 
  4 > 43@
goto_if_false @CAT1_30676
170@ = generate_random_int_in_range 0 {max} 25
if 
  5 > 170@
goto_if_false @CAT1_30662
43@ = 4

:CAT1_30662
43@ += 1
goto @CAT1_30610

:CAT1_30676
if 
  is_int_lvar_equal_to_int_lvar 170@ == 171@
goto_if_false @CAT1_30727
170@ += 1
if 
  170@ > 24
goto_if_false @CAT1_30727
170@ = 0

:CAT1_30727
set_lvar_int_to_lvar_int 171@ = 170@
switch_start 170@ {numCases} 25 {hasDefaultCase} 0 {defaultLabel} @CAT1_32080 {caseNum1} 0 {caseLabel1} @CAT1_30928 {caseNum2} 1 {caseLabel2} @CAT1_30928 {caseNum3} 2 {caseLabel3} @CAT1_30976 {caseNum4} 3 {caseLabel4} @CAT1_31024 {caseNum5} 4 {caseLabel5} @CAT1_31072 {caseNum6} 5 {caseLabel6} @CAT1_31120 {caseNum7} 6 {caseLabel7} @CAT1_31168
switch_continued 7 {caseLabel1} @CAT1_31216 {caseNum2} 8 {caseLabel2} @CAT1_31264 {caseNum3} 9 {caseLabel3} @CAT1_31312 {caseNum4} 10 {caseLabel4} @CAT1_31360 {caseNum5} 11 {caseLabel5} @CAT1_31408 {caseNum6} 12 {caseLabel6} @CAT1_31456 {caseNum7} 13 {caseLabel7} @CAT1_31504 {caseNum8} 14 {caseLabel8} @CAT1_31552 {caseNum9} 15 {caseLabel9} @CAT1_31600
switch_continued 16 {caseLabel1} @CAT1_31648 {caseNum2} 17 {caseLabel2} @CAT1_31696 {caseNum3} 18 {caseLabel3} @CAT1_31744 {caseNum4} 19 {caseLabel4} @CAT1_31792 {caseNum5} 20 {caseLabel5} @CAT1_31840 {caseNum6} 21 {caseLabel6} @CAT1_31888 {caseNum7} 22 {caseLabel7} @CAT1_31936 {caseNum8} 23 {caseLabel8} @CAT1_31984 {caseNum9} 24 {caseLabel9} @CAT1_32032

:CAT1_30928
set_var_text_label s$audio_string = 'CAT1_HA'
set_var_int_to_constant $audio_sound_file = 8830
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32080

:CAT1_30976
set_var_text_label s$audio_string = 'CAT1_HC'
set_var_int_to_constant $audio_sound_file = 8832
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32080

:CAT1_31024
set_var_text_label s$audio_string = 'CAT1_HD'
set_var_int_to_constant $audio_sound_file = 8833
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32080

:CAT1_31072
set_var_text_label s$audio_string = 'CAT1_HE'
set_var_int_to_constant $audio_sound_file = 8834
start_new_script @AUDIOL $scplayer 0 0 1 0 
goto @CAT1_32080

:CAT1_31120
set_var_text_label s$audio_string = 'CATX_TA'
set_var_int_to_constant $audio_sound_file = 9869
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31168
set_var_text_label s$audio_string = 'CATX_TB'
set_var_int_to_constant $audio_sound_file = 9870
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31216
set_var_text_label s$audio_string = 'CATX_TC'
set_var_int_to_constant $audio_sound_file = 9871
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31264
set_var_text_label s$audio_string = 'CATX_TD'
set_var_int_to_constant $audio_sound_file = 9872
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31312
set_var_text_label s$audio_string = 'CATX_TE'
set_var_int_to_constant $audio_sound_file = 9873
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31360
set_var_text_label s$audio_string = 'CATX_TF'
set_var_int_to_constant $audio_sound_file = 9874
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31408
set_var_text_label s$audio_string = 'CATX_TG'
set_var_int_to_constant $audio_sound_file = 9875
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31456
set_var_text_label s$audio_string = 'CATX_TH'
set_var_int_to_constant $audio_sound_file = 9876
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31504
set_var_text_label s$audio_string = 'CATX_TJ'
set_var_int_to_constant $audio_sound_file = 9877
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31552
set_var_text_label s$audio_string = 'CATX_TK'
set_var_int_to_constant $audio_sound_file = 9878
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31600
set_var_text_label s$audio_string = 'CATX_TL'
set_var_int_to_constant $audio_sound_file = 9879
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31648
set_var_text_label s$audio_string = 'CATX_TM'
set_var_int_to_constant $audio_sound_file = 9880
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31696
set_var_text_label s$audio_string = 'CATX_TN'
set_var_int_to_constant $audio_sound_file = 9881
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31744
set_var_text_label s$audio_string = 'CATX_TO'
set_var_int_to_constant $audio_sound_file = 9882
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31792
set_var_text_label s$audio_string = 'CATX_TP'
set_var_int_to_constant $audio_sound_file = 9883
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31840
set_var_text_label s$audio_string = 'CATX_TQ'
set_var_int_to_constant $audio_sound_file = 9884
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31888
set_var_text_label s$audio_string = 'CATX_TR'
set_var_int_to_constant $audio_sound_file = 9885
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31936
set_var_text_label s$audio_string = 'CATX_TS'
set_var_int_to_constant $audio_sound_file = 9886
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_31984
set_var_text_label s$audio_string = 'CATX_TT'
set_var_int_to_constant $audio_sound_file = 9887
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_32032
set_var_text_label s$audio_string = 'CATX_TU'
set_var_int_to_constant $audio_sound_file = 9888
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32080

:CAT1_32080
65@ = 0

:CAT1_32087
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  125@ == 0
goto_if_false @CAT1_32435
if 
  64@ == 1
goto_if_false @CAT1_32435
if 
  65@ > 4000
goto_if_false @CAT1_32435
if 
  $audio_line_is_active == 0
goto_if_false @CAT1_32435
43@ = generate_random_int_in_range 0 {max} 4
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CAT1_32428 {caseNum1} 0 {caseLabel1} @CAT1_32236 {caseNum2} 1 {caseLabel2} @CAT1_32284 {caseNum3} 2 {caseLabel3} @CAT1_32332 {caseNum4} 3 {caseLabel4} @CAT1_32380 {caseNum5} -1 {caseLabel5} @CAT1_32428 {caseNum6} -1 {caseLabel6} @CAT1_32428 {caseNum7} -1 {caseLabel7} @CAT1_32428

:CAT1_32236
set_var_text_label s$audio_string = 'CAT1_GA'
set_var_int_to_constant $audio_sound_file = 8826
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32428

:CAT1_32284
set_var_text_label s$audio_string = 'CAT1_GB'
set_var_int_to_constant $audio_sound_file = 8827
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32428

:CAT1_32332
set_var_text_label s$audio_string = 'CAT1_GC'
set_var_int_to_constant $audio_sound_file = 8828
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32428

:CAT1_32380
set_var_text_label s$audio_string = 'CAT1_GD'
set_var_int_to_constant $audio_sound_file = 8829
start_new_script @AUDIOL $catalina 0 0 1 0 
goto @CAT1_32428

:CAT1_32428
64@ = 2

:CAT1_32435
return 

:CAT1_32437
34@ += 1
35@ = 0
62@ = 0
63@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0
return 

:CAT1_32495
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CAT1_32513
$flag_cat_mission1_passed = 1
print_with_number_big 'M_PASS' {num} 1000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 1000
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'CAT_1'
player_made_progress 1
if 
  $cat_otb_banter == 1
goto_if_false @CAT1_32596
$cat_otb_banter = 2

:CAT1_32596
if 
  $cat_liquor_banter == 1
goto_if_false @CAT1_32621
$cat_liquor_banter = 2

:CAT1_32621
$cat_getaway_dialogue += 1
set_int_stat StatId.PassedCat1 {value} 1
$cat_counter += 1
return 

:CAT1_32644
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @CAT1_32678
set_player_group_recruitment $player1 {state} True
set_player_group_to_follow_always $player1 {state} False

:CAT1_32678
set_create_random_gang_members True
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 87@
remove_blip 88@
remove_blip 89@
remove_blip 90@
remove_blip 91@
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_pickup 95@
remove_pickup 96@
remove_pickup 97@
remove_decision_maker 67@
remove_decision_maker 68@
remove_decision_maker 146@
remove_decision_maker 145@
unload_special_character 5
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 42---------------
// Originally: Small Town Bank

:CAT2
gosub @CAT2_36
if 
  has_deatharrest_been_executed 
goto_if_false @CAT2_27
gosub @CAT2_30119

:CAT2_27
gosub @CAT2_30482
terminate_this_script 

:CAT2_36
638@ = 1
37@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 37@ {event} Event.Damage
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 37@ {event} Event.GunAimedAt
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageCollision
clear_group_decision_maker_event_response 37@ {event} Event.SeenCop
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
add_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
38@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 38@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
36@ = 32
$onmission = 1
alter_wanted_level $player1 {wantedLevel} 0
if 
  $onmission == 69
goto_if_false @CAT2_256
add_continuous_sound 2320.043 {_p2} -8.5501 {_p3} 27.2047 {_p4} 65535 {_p5} 82@
298@ = create_char PedType.Special {modelId} 294 {x} 682.8292 {y} -477.8332 {z} 15.3359

:CAT2_256
script_name 'CAT2'
do_fade 800 {direction} Fade.Out

:CAT2_274
if 
  get_fading_status 
goto_if_false @CAT2_298
wait 0
goto @CAT2_274

:CAT2_298
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  does_char_exist $catalina
goto_if_false @CAT2_333
delete_char $catalina

:CAT2_333
load_special_character 5 {modelName} 'CAT'

:CAT2_346
if 
  not has_special_character_loaded 5
goto_if_false @CAT2_385
wait 0
load_special_character 5 {modelName} 'CAT'
goto @CAT2_346

:CAT2_385
$catalina = create_char PedType.Special {modelId} 294 {x} 682.8292 {y} -477.8332 {z} 15.3359
unload_special_character 5
set_anim_group_for_char $catalina {animGroup} "WOMAN"
set_char_only_damaged_by_player $catalina {state} True
set_char_never_targetted $catalina {state} True
set_char_relationship $catalina {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_health $catalina {health} 100
set_char_suffers_critical_hits $catalina {state} False
clear_area 2297.7859 {y} -16.8313 {z} 26.2964 {radius} 20.0 {clearParticles} True
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_739
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_636
39@ = store_car_char_is_in_no_save $catalina
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @CAT2_583
set_car_coordinates 39@ {x} 2297.9861 {y} -14.0735 {z} 25.3495
set_car_heading 39@ {heading} 180.0
goto @CAT2_629

:CAT2_583
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_629
set_char_coordinates $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964
set_char_heading $scplayer {heading} 180.0

:CAT2_629
goto @CAT2_739

:CAT2_636
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_739
39@ = store_car_char_is_in_no_save $scplayer
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @CAT2_709
set_car_coordinates 39@ {x} 2297.9861 {y} -14.0735 {z} 25.3495
set_car_heading 39@ {heading} 180.0

:CAT2_709
set_char_coordinates $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964
set_char_heading $scplayer {heading} 180.0

:CAT2_739
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_782
warp_char_from_car_to_coord $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964
goto @CAT2_802

:CAT2_782
set_char_coordinates $scplayer {x} 2297.7859 {y} -15.5166 {z} 26.2964

:CAT2_802
set_char_heading $scplayer {heading} 162.229
request_model 283
request_model 346
request_model 349
request_car_recording 123
request_car_recording 124
request_model #KMB_ATM1
request_model #KMB_ATM2
request_model #KMB_ATM3
request_model #MTSAFE
request_model #CR_DOOR_01
request_model #CR_DOOR_03

:CAT2_863
if or
  not has_model_loaded 283
  not has_model_loaded 346
  not has_model_loaded 349
  not has_model_loaded #KMB_ATM1
  not has_model_loaded #KMB_ATM2
  not has_model_loaded #KMB_ATM3
goto_if_false @CAT2_915
wait 0
goto @CAT2_863

:CAT2_915
if or
  not has_car_recording_been_loaded 124
  not has_car_recording_been_loaded 123
  not has_model_loaded #MTSAFE
  not has_model_loaded #CR_DOOR_01
  not has_model_loaded #CR_DOOR_03
goto_if_false @CAT2_958
wait 0
goto @CAT2_915

:CAT2_958
load_mission_text 'CAT'
request_model 71
request_model 240
request_model 76
request_animation "ROB_BANK"
load_all_models_now 

:CAT2_996
if or
  not has_model_loaded 71
  not has_model_loaded 240
  not has_model_loaded 76
goto_if_false @CAT2_1031
wait 0
goto @CAT2_996

:CAT2_1031
if 
  not has_animation_loaded "ROB_BANK"
goto_if_false @CAT2_1065
wait 0
goto @CAT2_1031

:CAT2_1065
if 
  not is_player_playing $player1
goto_if_false @CAT2_1092
wait 0
goto @CAT2_1065

:CAT2_1092
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1826
56@ = 0
57@ = 85.0
58@ = 100.0
59@ = 90.0
60@ = 95.0
61@ = open_sequence_task 
task_scratch_head -1
task_scratch_head -1
close_sequence_task 61@
62@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 62@ {event} Event.GunAimedAt
63@ = create_char PedType.CivFemale {modelId} 76 {x} 2318.4919 {y} -15.5635 {z} 25.6913
set_char_heading 63@ {heading} 95.2069
set_char_decision_maker 63@ {handleOrTemplate} 62@
64@ = create_char PedType.CivFemale {modelId} 76 {x} 2318.4729 {y} -7.4565 {z} 25.6913
mark_model_as_no_longer_needed 76
set_char_heading 64@ {heading} 95.2069
set_char_decision_maker 64@ {handleOrTemplate} 62@
65@ = create_char PedType.CivMale {modelId} 240 {x} 2311.509 {y} -11.1779 {z} 25.6987
set_char_heading 65@ {heading} 176.6813
set_char_decision_maker 65@ {handleOrTemplate} 62@
66@ = create_char PedType.CivMale {modelId} 71 {x} 2316.6179 {y} -12.83 {z} 25.75
mark_model_as_no_longer_needed 71
set_char_heading 66@ {heading} 90.0
set_char_decision_maker 66@ {handleOrTemplate} 62@
give_weapon_to_char 66@ {weaponType} WeaponType.Pistol {ammo} 9999
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_fixed_camera_position 2299.895 {y} -7.9983 {z} 26.6055 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2299.998 {y} -8.993 {z} 26.6023 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3000
113@ = create_object_no_offset #KMB_ATM2 {x} 2310.3669 {y} -17.0 {z} 20.414
114@ = create_object_no_offset #KMB_ATM2 {x} 2313.689 {y} -17.0 {z} 20.414
115@ = create_object_no_offset #KMB_ATM2 {x} 2313.3181 {y} -0.1206 {z} 20.414
if 
  not is_char_dead $catalina
goto_if_false @CAT2_1751
remove_char_from_group $catalina
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_1583
warp_char_from_car_to_coord $catalina {x} 2300.7429 {y} -15.5274 {z} 25.4844
goto @CAT2_1603

:CAT2_1583
set_char_coordinates $catalina {x} 2301.7429 {y} -17.1274 {z} 25.4844

:CAT2_1603
71@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Shotgun
if 
  71@ == 0
goto_if_false @CAT2_1647
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 48
goto @CAT2_1674

:CAT2_1647
if 
  48 > 71@
goto_if_false @CAT2_1674
set_char_ammo $scplayer {weaponType} WeaponType.Shotgun {ammo} 48

:CAT2_1674
set_current_char_weapon $scplayer {weaponType} WeaponType.Shotgun
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999
set_char_heading $catalina {heading} 329.4303
task_go_straight_to_coord $scplayer {x} 2307.802 {y} -17.221 {z} 25.7574 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord $catalina {x} 2312.426 {y} -15.4762 {z} 25.75 {speed} MoveState.Walk {time} 10000

:CAT2_1751
do_fade 500 {direction} Fade.In
delete_object $2662
delete_object $2663
560@ = 1
$game_timer = get_game_timer 
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3500
41@ = 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
68@ = -1
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0

:CAT2_1838
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CAT2_1860
goto @CAT2_30343

:CAT2_1860
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @CAT2_2049
$cat_counter = 2
56@ = 9
34@ = 1
41@ = 462
set_char_coordinates $scplayer {x} 857.4263 {y} -29.5418 {z} 62.1858
if 
  not is_char_dead $catalina
goto_if_false @CAT2_1960
set_char_coordinates $catalina {x} 858.4263 {y} -29.5418 {z} 62.1858

:CAT2_1960
request_model 402

:CAT2_1965
if 
  not has_model_loaded 402
goto_if_false @CAT2_1992
wait 0
goto @CAT2_1965

:CAT2_1992
69@ = create_car 402 {x} 857.4263 {y} -29.5418 {z} 62.1858
warp_char_into_car $scplayer {vehicle} 69@
if 
  not is_char_dead $catalina
goto_if_false @CAT2_2049
warp_char_into_car_as_passenger $catalina {handle} 69@ {seat} SeatId.BikeRear

:CAT2_2049
wait 0
if 
  is_char_dead $catalina
goto_if_false @CAT2_2094
clear_prints 
print 'CAT2_A1' {time} 5000 {flag} 1
goto @CAT2_30119

:CAT2_2094
gosub @CAT2_31345
gosub @CAT2_31946
$game_timer = get_game_timer 
if 
  not is_player_playing $player1
goto_if_false @CAT2_2136
goto @CAT2_30119

:CAT2_2136
if 
  is_char_dead $catalina
goto_if_false @CAT2_2159
goto @CAT2_30119

:CAT2_2159
if and
  9 > 41@
  41@ > -1
goto_if_false @CAT2_3231
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT2_2243
if 
  68@ == 0
goto_if_false @CAT2_2236
do_fade 500 {direction} Fade.Out
41@ = 0
68@ += 1

:CAT2_2236
goto @CAT2_2268

:CAT2_2243
if 
  68@ == -1
goto_if_false @CAT2_2268
68@ += 1

:CAT2_2268
if 
  68@ == 1
goto_if_false @CAT2_3231
if 
  not get_fading_status 
goto_if_false @CAT2_3231
if and
  2 > 41@
  55@ == 0
goto_if_false @CAT2_2675
72@ = create_object_no_offset #KMB_ATM1 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_heading 72@ {heading} 180.0
set_object_collision_damage_effect 72@ {state} False
73@ = create_object_no_offset #KMB_ATM1 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_heading 73@ {heading} 180.0
set_object_collision_damage_effect 73@ {state} False
74@ = create_object_no_offset #KMB_ATM1 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 74@ {state} False
75@ = create_object_no_offset #MTSAFE {x} 2305.666 {y} -4.7944 {z} 25.65
set_object_heading 75@ {heading} 90.0
set_object_collision_damage_effect 75@ {state} False
76@ = create_object_no_offset #KMB_ATM3 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 76@ {state} False
set_object_heading 72@ {heading} 180.0
77@ = create_object_no_offset #KMB_ATM3 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 77@ {state} False
set_object_heading 73@ {heading} 180.0
78@ = create_object_no_offset #KMB_ATM3 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 78@ {state} False
70@ = create_object_no_offset #CAT2_SAFE_COL {x} 2305.666 {y} -4.7944 {z} 25.65
set_object_heading 70@ {heading} 90.0
set_object_heading 75@ {heading} 90.0
set_object_heading 76@ {heading} 180.0
set_object_heading 77@ {heading} 180.0
set_object_collision 72@ {state} False
set_object_collision 73@ {state} False
set_object_collision 74@ {state} False
55@ = 1

:CAT2_2675
71@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Shotgun
if 
  71@ == 0
goto_if_false @CAT2_2719
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 48
goto @CAT2_2746

:CAT2_2719
if 
  48 > 71@
goto_if_false @CAT2_2746
set_char_ammo $scplayer {weaponType} WeaponType.Shotgun {ammo} 48

:CAT2_2746
set_current_char_weapon $scplayer {weaponType} WeaponType.Shotgun
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2312.5779 {y} -7.4347 {z} 25.75
set_char_heading $scplayer {heading} 126.7479
set_char_coordinates $catalina {x} 2306.666 {y} -4.7944 {z} 25.75
set_char_heading $catalina {heading} 90.0
clear_char_tasks $catalina
clear_char_tasks_immediately $catalina
task_play_anim $catalina {animationName} "CAT_SAFE_ROB" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
play_object_anim 75@ {animationName} "CAT_SAFE_OPEN_O" {animationFile} "ROB_BANK" {frameDelta} 1000.0 {lockF} False {loop} True
if 
  not is_char_dead 66@
goto_if_false @CAT2_2989
clear_char_tasks_immediately 66@
set_char_coordinates 66@ {x} 2310.5459 {y} -7.7439 {z} 25.7422
set_char_heading 66@ {heading} 281.4267
task_turn_char_to_face_char 66@ {target} $scplayer
freeze_char_position 66@ {state} True

:CAT2_2989
if 
  not is_char_dead 63@
goto_if_false @CAT2_3055
clear_char_tasks_immediately 63@
set_char_coordinates 63@ {x} 2311.5969 {y} -9.1847 {z} 25.7422
set_char_heading 63@ {heading} 314.501
task_turn_char_to_face_char 63@ {target} $scplayer
freeze_char_position 63@ {state} True

:CAT2_3055
if 
  not is_char_dead 64@
goto_if_false @CAT2_3121
clear_char_tasks_immediately 64@
set_char_coordinates 64@ {x} 2310.5911 {y} -9.3749 {z} 25.7422
set_char_heading 64@ {heading} 323.1424
task_turn_char_to_face_char 64@ {target} $scplayer
freeze_char_position 64@ {state} True

:CAT2_3121
if 
  not is_char_dead 65@
goto_if_false @CAT2_3187
clear_char_tasks_immediately 65@
set_char_coordinates 65@ {x} 2309.6101 {y} -8.5556 {z} 25.7422
set_char_heading 65@ {heading} 309.2547
task_turn_char_to_face_char 65@ {target} $scplayer
freeze_char_position 65@ {state} True

:CAT2_3187
do_fade 500 {direction} Fade.In
set_lvar_int_to_var_int 42@ = $game_timer
42@ -= 555
41@ = 9
559@ = 5
68@ += 1

:CAT2_3231
if 
  41@ == 1
goto_if_false @CAT2_4115
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  55@ == 0
  560@ == 0
goto_if_false @CAT2_4115
560@ = 2
clear_small_prints 
clear_area 2307.802 {y} -17.221 {z} 25.7574 {radius} 100.0 {clearParticles} True
set_fixed_camera_position 2308.396 {y} -15.824 {z} 27.666 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2309.2729 {y} -15.36 {z} 27.5448 {switchStyle} SwitchType.JumpCut
72@ = create_object_no_offset #KMB_ATM1 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_heading 72@ {heading} 180.0
set_object_collision_damage_effect 72@ {state} False
73@ = create_object_no_offset #KMB_ATM1 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_heading 73@ {heading} 180.0
set_object_collision_damage_effect 73@ {state} False
74@ = create_object_no_offset #KMB_ATM1 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 74@ {state} False
75@ = create_object_no_offset #MTSAFE {x} 2305.7649 {y} -4.7944 {z} 25.75
set_object_heading 75@ {heading} 90.0
70@ = create_object_no_offset #CAT2_SAFE_COL {x} 2305.7649 {y} -4.7944 {z} 25.75
set_object_heading 70@ {heading} 90.0
set_object_collision_damage_effect 75@ {state} False
if 
  not does_object_exist $pc_door
goto_if_false @CAT2_3606
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
dont_remove_object $pc_door
set_object_collision_damage_effect $pc_door {state} False
freeze_object_position $pc_door {state} True

:CAT2_3606
if 
  not does_object_exist $2661
goto_if_false @CAT2_3673
$2661 = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
dont_remove_object $2661
set_object_heading $2661 {heading} 270.0
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False

:CAT2_3673
if 
  not does_object_exist $2662
goto_if_false @CAT2_3730
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
dont_remove_object $2662
freeze_object_position $2662 {state} True
set_object_collision_damage_effect $2662 {state} False

:CAT2_3730
if 
  not does_object_exist $2663
goto_if_false @CAT2_3797
$2663 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
dont_remove_object $2663
freeze_object_position $2663 {state} True
set_object_heading $2663 {heading} 180.0
set_object_collision_damage_effect $2663 {state} False

:CAT2_3797
76@ = create_object_no_offset #KMB_ATM3 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 76@ {state} False
set_object_heading 72@ {heading} 180.0
77@ = create_object_no_offset #KMB_ATM3 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 77@ {state} False
set_object_heading 73@ {heading} 180.0
78@ = create_object_no_offset #KMB_ATM3 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 78@ {state} False
set_object_heading 75@ {heading} 90.0
set_object_heading 76@ {heading} 180.0
set_object_heading 77@ {heading} 180.0
set_object_collision 72@ {state} False
set_object_collision 73@ {state} False
set_object_collision 74@ {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2309.2891 {y} -14.3987 {z} 25.75
set_char_heading $scplayer {heading} 287.3674
clear_char_tasks_immediately $catalina
set_char_coordinates $catalina {x} 2310.2061 {y} -15.8887 {z} 25.7574
set_char_heading $catalina {heading} 287.3674
task_go_straight_to_coord $scplayer {x} 2315.4121 {y} -13.1812 {z} 25.75 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord $catalina {x} 2316.6189 {y} -15.1198 {z} 25.75 {speed} MoveState.Walk {time} 10000
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3000
55@ = 1
set_wanted_multiplier 0.2
41@ += 1

:CAT2_4115
if 
  41@ == 2
goto_if_false @CAT2_4469
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_4469
clear_small_prints 
set_fixed_camera_position 2315.312 {y} -13.8451 {z} 27.6696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2315.771 {y} -12.9906 {z} 27.427 {switchStyle} SwitchType.JumpCut
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2315.4121 {y} -12.1812 {z} 25.75
set_char_heading $scplayer {heading} 236.5262
freeze_char_position $scplayer {state} True
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 2316.6189 {y} -15.1198 {z} 25.75
set_char_heading $catalina {heading} 242.0258
freeze_char_position $catalina {state} True
if 
  not is_char_dead 66@
goto_if_false @CAT2_4439
$x, $y, $z = get_char_coordinates 66@
$x += 2.7
71@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Shotgun
if 
  71@ == 0
goto_if_false @CAT2_4380
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 48
goto @CAT2_4407

:CAT2_4380
if 
  48 > 71@
goto_if_false @CAT2_4407
set_char_ammo $scplayer {weaponType} WeaponType.Shotgun {ammo} 48

:CAT2_4407
task_aim_gun_at_coord $scplayer {x} $x {y} $y {z} $z {time} 10000
task_hands_up 66@ {time} 8000
freeze_char_position 66@ {state} True

:CAT2_4439
560@ = 3
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_4469
if 
  41@ == 3
goto_if_false @CAT2_4680
if 
  560@ == 0
goto_if_false @CAT2_4680
if 
  not is_char_dead 63@
goto_if_false @CAT2_4597
$x, $y, $z = get_char_coordinates 63@
$x += 2.7
$z += 0.5
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999
task_aim_gun_at_coord $catalina {x} $x {y} $y {z} $z {time} 10000
freeze_char_position 63@ {state} True
task_hands_up 63@ {time} 8000

:CAT2_4597
clear_small_prints 
set_fixed_camera_position 2317.011 {y} -17.3945 {z} 27.4246 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2317.248 {y} -16.4244 {z} 27.3736 {switchStyle} SwitchType.JumpCut
560@ = 4
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1

:CAT2_4680
if 
  41@ == 4
goto_if_false @CAT2_4749
if 
  1 > 68@
goto_if_false @CAT2_4749
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_4749
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_4749
if 
  41@ == 5
goto_if_false @CAT2_5253
if 
  1 > 68@
goto_if_false @CAT2_5253
if 
  not get_fading_status 
goto_if_false @CAT2_5253
clear_small_prints 
set_fixed_camera_position 2316.377 {y} -11.0151 {z} 28.6019 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2315.613 {y} -10.6059 {z} 28.1029 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2312.5779 {y} -7.4347 {z} 25.75
set_char_heading $scplayer {heading} 126.7479
clear_char_tasks_immediately $catalina
set_char_coordinates $catalina {x} 2308.502 {y} -3.912 {z} 25.7422
set_char_heading $catalina {heading} 81.0
if 
  not is_char_dead $catalina
goto_if_false @CAT2_4968
freeze_char_position $catalina {state} False
task_go_straight_to_coord $catalina {x} 2306.7681 {y} -4.5085 {z} 25.7422 {speed} MoveState.Walk {time} -2

:CAT2_4968
if 
  not is_char_dead 66@
goto_if_false @CAT2_5034
clear_char_tasks 66@
set_char_coordinates 66@ {x} 2310.5459 {y} -7.7439 {z} 25.7422
set_char_heading 66@ {heading} 281.4267
task_turn_char_to_face_char 66@ {target} $scplayer
freeze_char_position 66@ {state} True

:CAT2_5034
if 
  not is_char_dead 63@
goto_if_false @CAT2_5100
clear_char_tasks 63@
set_char_coordinates 63@ {x} 2311.5969 {y} -9.1847 {z} 25.7422
set_char_heading 63@ {heading} 314.501
task_turn_char_to_face_char 63@ {target} $scplayer
freeze_char_position 63@ {state} True

:CAT2_5100
if 
  not is_char_dead 64@
goto_if_false @CAT2_5166
clear_char_tasks 64@
set_char_coordinates 64@ {x} 2310.5911 {y} -9.3749 {z} 25.7422
set_char_heading 64@ {heading} 323.1424
task_turn_char_to_face_char 64@ {target} $scplayer
freeze_char_position 64@ {state} True

:CAT2_5166
if 
  not is_char_dead 65@
goto_if_false @CAT2_5232
clear_char_tasks 65@
set_char_coordinates 65@ {x} 2309.6101 {y} -8.5556 {z} 25.7422
set_char_heading 65@ {heading} 309.2547
task_turn_char_to_face_char 65@ {target} $scplayer
freeze_char_position 65@ {state} True

:CAT2_5232
request_animation "OTB"
do_fade 500 {direction} Fade.In
41@ += 1

:CAT2_5253
if 
  41@ == 6
goto_if_false @CAT2_5375
if 
  not get_fading_status 
goto_if_false @CAT2_5375
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #MAN_SAFENEW {state} False
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #KEV_SAFE {state} False
560@ = 5
561@ = 3
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800
41@ += 1

:CAT2_5375
if 
  41@ == 7
goto_if_false @CAT2_5482
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_5482
if 
  not is_char_dead 63@
goto_if_false @CAT2_5452
$x, $y, $z = get_char_coordinates 63@
$z += 0.7

:CAT2_5452
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800
41@ += 1
80@ = 0

:CAT2_5482
if 
  41@ == 8
goto_if_false @CAT2_6092
if 
  80@ == 0
goto_if_false @CAT2_5849
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_5849
set_fixed_camera_position 2314.6021 {y} -4.9551 {z} 28.3779 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2313.7791 {y} -5.363 {z} 27.9827 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT2_5792
set_char_coordinates $catalina {x} 2306.666 {y} -4.7944 {z} 25.75
set_char_heading $catalina {heading} 90.0
set_current_char_weapon $catalina {weaponType} WeaponType.Unarmed
84@ = open_sequence_task 
task_play_anim -1 {animationName} "CAT_SAFE_OPEN" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_play_anim -1 {animationName} "CAT_SAFE_ROB" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
close_sequence_task 84@
perform_sequence_task $catalina {sequence} 84@
clear_sequence_task 84@
play_object_anim 75@ {animationName} "CAT_SAFE_OPEN_O" {animationFile} "ROB_BANK" {frameDelta} 1000.0 {lockF} False {loop} True

:CAT2_5792
80@ = 1
freeze_char_position $scplayer {state} False
if 
  not is_char_dead 63@
goto_if_false @CAT2_5833
task_aim_gun_at_char $scplayer {target} 63@ {time} 5500

:CAT2_5833
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 800

:CAT2_5849
if 
  80@ == 1
goto_if_false @CAT2_6092
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_6092
if 
  not is_char_dead 66@
goto_if_false @CAT2_5910
task_hands_up 66@ {time} 8000

:CAT2_5910
if 
  not is_char_dead 63@
goto_if_false @CAT2_5963
84@ = open_sequence_task 
task_pause -1 {time} 250
task_hands_up -1 {time} 8000
close_sequence_task 84@
perform_sequence_task 63@ {sequence} 84@
clear_sequence_task 84@

:CAT2_5963
if 
  not is_char_dead 64@
goto_if_false @CAT2_6016
84@ = open_sequence_task 
task_pause -1 {time} 350
task_hands_up -1 {time} 8000
close_sequence_task 84@
perform_sequence_task 64@ {sequence} 84@
clear_sequence_task 84@

:CAT2_6016
if 
  not is_char_dead 65@
goto_if_false @CAT2_6069
84@ = open_sequence_task 
task_pause -1 {time} 850
task_hands_up -1 {time} 8000
close_sequence_task 84@
perform_sequence_task 65@ {sequence} 84@
clear_sequence_task 84@

:CAT2_6069
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_6092
if 
  41@ == 9
goto_if_false @CAT2_6615
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
  559@ == 1
goto_if_false @CAT2_6615
if 
  not does_object_exist $pc_door
goto_if_false @CAT2_6200
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
dont_remove_object $pc_door
set_object_collision_damage_effect $pc_door {state} False
freeze_object_position $pc_door {state} True

:CAT2_6200
if 
  not does_object_exist $2661
goto_if_false @CAT2_6267
$2661 = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
dont_remove_object $2661
set_object_heading $2661 {heading} 270.0
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False

:CAT2_6267
if 
  not does_object_exist $2662
goto_if_false @CAT2_6324
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
dont_remove_object $2662
freeze_object_position $2662 {state} True
set_object_collision_damage_effect $2662 {state} False

:CAT2_6324
if 
  not does_object_exist $2663
goto_if_false @CAT2_6391
$2663 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
dont_remove_object $2663
freeze_object_position $2663 {state} True
set_object_heading $2663 {heading} 180.0
set_object_collision_damage_effect $2663 {state} False

:CAT2_6391
freeze_char_position $scplayer {state} False
freeze_char_position $catalina {state} False
set_player_control $player1 {state} True
clear_prints 
print 'CAT2_05' {time} 4000 {flag} 1
print 'CAT2_06' {time} 8000 {flag} 1
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_char_tasks_immediately $catalina
set_current_char_weapon $catalina {weaponType} WeaponType.Unarmed
task_play_anim $catalina {animationName} "CAT_SAFE_ROB" {animationFile} "ROB_BANK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1
81@ = 0.0015
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #MAN_SAFENEW {state} True
set_uses_collision_of_closest_object_of_type 2312.5779 {y} -7.4347 {z} 25.75 {radius} 4.5 {modelId} #KEV_SAFE {state} True

:CAT2_6615
if 
  41@ > 9
goto_if_false @CAT2_8421
81@ += 0.0
if 
  not is_char_dead 66@
goto_if_false @CAT2_7045
if 
  41@ > 10
goto_if_false @CAT2_6728
$task_status = get_script_task_status 66@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_6721
freeze_char_position 66@ {state} False
task_kill_char_on_foot 66@ {target} $scplayer

:CAT2_6721
goto @CAT2_7038

:CAT2_6728
if and
  is_player_targetting_char $player1 {handle} 66@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_6771
add_timed_val_to_float_lvar 57@ +=@ 0.02
goto @CAT2_6779

:CAT2_6771
sub_timed_float_lvar_from_float_lvar 57@ -=@ 81@

:CAT2_6779
if 
  57@ > 1.0
goto_if_false @CAT2_6810
57@ = 1.0

:CAT2_6810
if 
  0.0 > 57@
goto_if_false @CAT2_6873
57@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_6873
gosub @CAT2_30052
41@ = 11

:CAT2_6873
$task_status = get_script_task_status 66@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_6956
task_play_anim 66@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_7038

:CAT2_6956
if 
  is_char_playing_anim 66@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_7038
set_char_anim_playing_flag 66@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 66@ {animationName} "SHP_HANDSUP_SCR" {time} 57@

:CAT2_7038
goto @CAT2_7082

:CAT2_7045
if 
  41@ == 10
goto_if_false @CAT2_7077
gosub @CAT2_30052
41@ = 11

:CAT2_7077
mark_char_as_no_longer_needed 66@

:CAT2_7082
if 
  not is_char_dead 63@
goto_if_false @CAT2_7486
if 
  41@ > 10
goto_if_false @CAT2_7169
$task_status = get_script_task_status 63@ {taskId} 1477
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7162
freeze_char_position 63@ {state} False
task_duck 63@ {time} 1410065407

:CAT2_7162
goto @CAT2_7479

:CAT2_7169
if and
  is_player_targetting_char $player1 {handle} 63@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_7212
add_timed_val_to_float_lvar 58@ +=@ 0.023
goto @CAT2_7220

:CAT2_7212
sub_timed_float_lvar_from_float_lvar 58@ -=@ 81@

:CAT2_7220
if 
  58@ > 1.0
goto_if_false @CAT2_7251
58@ = 1.0

:CAT2_7251
if 
  0.0 > 58@
goto_if_false @CAT2_7314
58@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_7314
gosub @CAT2_30052
41@ = 11

:CAT2_7314
$task_status = get_script_task_status 63@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7397
task_play_anim 63@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_7479

:CAT2_7397
if 
  is_char_playing_anim 63@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_7479
set_char_anim_playing_flag 63@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 63@ {animationName} "SHP_HANDSUP_SCR" {time} 58@

:CAT2_7479
goto @CAT2_7523

:CAT2_7486
if 
  41@ == 10
goto_if_false @CAT2_7518
gosub @CAT2_30052
41@ = 11

:CAT2_7518
mark_char_as_no_longer_needed 63@

:CAT2_7523
if 
  not is_char_dead 64@
goto_if_false @CAT2_7927
if 
  41@ > 10
goto_if_false @CAT2_7610
$task_status = get_script_task_status 64@ {taskId} 1477
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7603
freeze_char_position 64@ {state} False
task_duck 64@ {time} 1410065407

:CAT2_7603
goto @CAT2_7920

:CAT2_7610
if and
  is_player_targetting_char $player1 {handle} 64@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_7653
add_timed_val_to_float_lvar 59@ +=@ 0.026
goto @CAT2_7661

:CAT2_7653
sub_timed_float_lvar_from_float_lvar 59@ -=@ 81@

:CAT2_7661
if 
  59@ > 1.0
goto_if_false @CAT2_7692
59@ = 1.0

:CAT2_7692
if 
  0.0 > 59@
goto_if_false @CAT2_7755
59@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_7755
gosub @CAT2_30052
41@ = 11

:CAT2_7755
$task_status = get_script_task_status 64@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_7838
task_play_anim 64@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_7920

:CAT2_7838
if 
  is_char_playing_anim 64@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_7920
set_char_anim_playing_flag 64@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 64@ {animationName} "SHP_HANDSUP_SCR" {time} 59@

:CAT2_7920
goto @CAT2_7964

:CAT2_7927
if 
  41@ == 10
goto_if_false @CAT2_7959
gosub @CAT2_30052
41@ = 11

:CAT2_7959
mark_char_as_no_longer_needed 64@

:CAT2_7964
if 
  not is_char_dead 65@
goto_if_false @CAT2_8368
if 
  41@ > 10
goto_if_false @CAT2_8051
$task_status = get_script_task_status 65@ {taskId} 1477
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8044
freeze_char_position 65@ {state} False
task_duck 65@ {time} 1410065407

:CAT2_8044
goto @CAT2_8361

:CAT2_8051
if and
  is_player_targetting_char $player1 {handle} 65@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @CAT2_8094
add_timed_val_to_float_lvar 60@ +=@ 0.025
goto @CAT2_8102

:CAT2_8094
sub_timed_float_lvar_from_float_lvar 60@ -=@ 81@

:CAT2_8102
if 
  60@ > 1.0
goto_if_false @CAT2_8133
60@ = 1.0

:CAT2_8133
if 
  0.0 > 60@
goto_if_false @CAT2_8196
60@ = 0.0
if 
  41@ == 10
goto_if_false @CAT2_8196
gosub @CAT2_30052
41@ = 11

:CAT2_8196
$task_status = get_script_task_status 65@ {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8279
task_play_anim 65@ {animationName} "SHP_HANDSUP_SCR" {animationFile} "ROB_BANK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @CAT2_8361

:CAT2_8279
if 
  is_char_playing_anim 65@ {animationName} "SHP_HANDSUP_SCR"
goto_if_false @CAT2_8361
set_char_anim_playing_flag 65@ {animationName} "SHP_HANDSUP_SCR" {flag} False
set_char_anim_current_time 65@ {animationName} "SHP_HANDSUP_SCR" {time} 60@

:CAT2_8361
goto @CAT2_8421

:CAT2_8368
if 
  41@ == 10
goto_if_false @CAT2_8416
gosub @CAT2_30052
set_lvar_int_to_lvar_int 83@ = TIMERA
83@ += 500
41@ = 11

:CAT2_8416
mark_char_as_no_longer_needed 65@

:CAT2_8421
if 
  560@ == 9
goto_if_false @CAT2_8635
if 
  not is_char_dead $catalina
goto_if_false @CAT2_8635
if 
  has_animation_loaded "OTB"
goto_if_false @CAT2_8628
$task_status = get_script_task_status $catalina {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_8621
clear_char_tasks $catalina
84@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "WTCHRACE_CMON" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "WTCHRACE_LOSE" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 84@
perform_sequence_task $catalina {sequence} 84@
clear_sequence_task 84@

:CAT2_8621
goto @CAT2_8635

:CAT2_8628
request_animation "OTB"

:CAT2_8635
if 
  41@ == 11
goto_if_false @CAT2_8722
remove_animation "ROB_BANK"
if 
  56@ == 4
goto_if_false @CAT2_8722
if 
  is_char_dead 66@
goto_if_false @CAT2_8722
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2000
41@ += 1

:CAT2_8722
if and
  41@ == 12
  560@ == 0
goto_if_false @CAT2_8790
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_8790
do_fade 500 {direction} Fade.Out
request_model 599
request_model 523
41@ += 1

:CAT2_8790
if 
  41@ == 13
goto_if_false @CAT2_9720
if and
  has_car_recording_been_loaded 116
  has_car_recording_been_loaded 117
  has_car_recording_been_loaded 118
  has_car_recording_been_loaded 119
  has_animation_loaded "MISC"
goto_if_false @CAT2_9689
if and
  not get_fading_status 
  has_model_loaded 599
  has_model_loaded 523
goto_if_false @CAT2_9672
remove_animation "OTB"
remove_animation "SHOP"
clear_small_prints 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_near_clip 0.1
remove_sound 82@
85@ = create_car 599 {x} 2302.1809 {y} 6.6 {z} 25.4766
set_car_heading 85@ {heading} 90.0
lock_car_doors 85@ {lockStatus} CarLock.LockoutPlayerOnly
start_playback_recorded_car 85@ {path} 116
set_playback_speed 85@ {speed} 0.0
86@ = create_car 523 {x} 2348.658 {y} 5.906 {z} 25.3359
set_car_heading 86@ {heading} 359.5453
start_playback_recorded_car 86@ {path} 117
set_playback_speed 86@ {speed} 0.0
87@ = create_char_inside_car 86@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 87@ {handleOrTemplate} 62@
88@ = create_car 523 {x} 2264.918 {y} 37.519 {z} 25.3359
set_car_heading 88@ {heading} 268.8078
start_playback_recorded_car 88@ {path} 118
set_playback_speed 88@ {speed} 0.0
89@ = create_char_inside_car 88@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 89@ {handleOrTemplate} 62@
90@ = create_car 599 {x} 2278.4771 {y} 89.2844 {z} 25.3378
set_car_heading 90@ {heading} 269.8063
start_playback_recorded_car 90@ {path} 119
set_playback_speed 90@ {speed} 0.0
91@ = create_char_inside_car 90@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 91@ {handleOrTemplate} 62@
switch_car_siren 90@ {state} True
92@ = create_char PedType.CivMale {modelId} 283 {x} 2328.564 {y} 1.8673 {z} 25.5693
set_char_heading 92@ {heading} 0.0
43@ = open_sequence_task 
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 5000
task_play_anim -1 {animationName} "SEAT_TALK_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 43@
perform_sequence_task 92@ {sequence} 43@
clear_sequence_task 43@
94@ = create_char PedType.CivMale {modelId} 240 {x} 2336.679 {y} -8.2464 {z} 25.4766
mark_model_as_no_longer_needed 240
task_smart_flee_point 94@ {x} 2336.3989 {y} -18.3093 {z} 25.4766 {radius} 30.0 {time} 8000
93@ = create_char PedType.CivMale {modelId} 283 {x} 2328.4761 {y} 2.3077 {z} 25.5693
set_char_decision_maker 93@ {handleOrTemplate} 62@
set_char_heading 93@ {heading} 180.0
43@ = open_sequence_task 
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 9200
task_play_anim -1 {animationName} "SEAT_TALK_02" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim -1 {animationName} "SEAT_WATCH" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 43@
perform_sequence_task 93@ {sequence} 43@
clear_sequence_task 43@
set_lvar_int_to_lvar_int 42@ = TIMERA
42@ += 1000
41@ += 1
goto @CAT2_9682

:CAT2_9672
request_model 599
request_model 523

:CAT2_9682
goto @CAT2_9713

:CAT2_9689
request_car_recording 116
request_car_recording 117
request_car_recording 118
request_car_recording 119
request_animation "MISC"

:CAT2_9713
goto @CAT2_9876

:CAT2_9720
if 
  41@ == 15
goto_if_false @CAT2_9851
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 42@
goto_if_false @CAT2_9851
set_fixed_camera_position 2327.583 {y} 1.796 {z} 26.5414 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2328.5381 {y} 2.0688 {z} 26.6612 {switchStyle} SwitchType.JumpCut
load_scene_in_direction 2328.5381 {y} 2.0688 {z} 26.6612 {heading} 270.0
do_fade 500 {direction} Fade.In
68@ = -1
41@ += 1

:CAT2_9851
if 
  41@ == 14
goto_if_false @CAT2_9876
41@ += 1

:CAT2_9876
if 
  25 > 41@
goto_if_false @CAT2_10654
if or
  41@ > 15
  41@ == -1
goto_if_false @CAT2_10654
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT2_9978
if 
  68@ == 0
goto_if_false @CAT2_9971
do_fade 500 {direction} Fade.Out
41@ = -1
68@ += 1

:CAT2_9971
goto @CAT2_10003

:CAT2_9978
if 
  68@ == -1
goto_if_false @CAT2_10003
68@ += 1

:CAT2_10003
if 
  68@ == 1
goto_if_false @CAT2_10654
if 
  not get_fading_status 
goto_if_false @CAT2_10654
559@ = 5
if 
  not is_char_dead 92@
goto_if_false @CAT2_10158
clear_char_tasks 92@
give_weapon_to_char 92@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 92@
goto_if_false @CAT2_10115
warp_char_from_car_to_coord 92@ {x} 2292.531 {y} -19.1915 {z} 25.3437
goto @CAT2_10135

:CAT2_10115
set_char_coordinates 92@ {x} 2292.531 {y} -19.1915 {z} 25.3437

:CAT2_10135
task_aim_gun_at_coord 92@ {x} 2304.137 {y} -16.591 {z} 27.276 {time} 15000

:CAT2_10158
if 
  not is_char_dead 93@
goto_if_false @CAT2_10275
clear_char_tasks 93@
give_weapon_to_char 93@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 93@
goto_if_false @CAT2_10232
warp_char_from_car_to_coord 93@ {x} 2297.022 {y} -19.6483 {z} 25.3359
goto @CAT2_10252

:CAT2_10232
set_char_coordinates 93@ {x} 2297.022 {y} -19.6483 {z} 25.3359

:CAT2_10252
task_aim_gun_at_coord 93@ {x} 2304.137 {y} -16.591 {z} 27.276 {time} 15000

:CAT2_10275
if 
  not is_char_dead 87@
goto_if_false @CAT2_10379
clear_char_tasks 87@
give_weapon_to_char 87@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 87@
goto_if_false @CAT2_10349
warp_char_from_car_to_coord 87@ {x} 2303.1189 {y} -13.7964 {z} 25.4766
goto @CAT2_10369

:CAT2_10349
set_char_coordinates 87@ {x} 2303.1189 {y} -13.7964 {z} 25.4766

:CAT2_10369
set_char_heading 87@ {heading} 119.4845

:CAT2_10379
if 
  not is_char_dead 89@
goto_if_false @CAT2_10496
clear_char_tasks 89@
give_weapon_to_char 89@ {weaponType} WeaponType.Shotgun {ammo} 9999
if 
  is_char_in_any_car 89@
goto_if_false @CAT2_10453
warp_char_from_car_to_coord 89@ {x} 2297.2439 {y} -16.8148 {z} 25.3328
goto @CAT2_10473

:CAT2_10453
set_char_coordinates 89@ {x} 2297.2439 {y} -16.8148 {z} 25.3328

:CAT2_10473
task_aim_gun_at_coord 89@ {x} 2304.137 {y} -16.591 {z} 27.276 {time} 15000

:CAT2_10496
if 
  not is_car_dead 85@
goto_if_false @CAT2_10517
skip_to_end_and_stop_playback_recorded_car 85@

:CAT2_10517
if 
  not is_car_dead 86@
goto_if_false @CAT2_10538
skip_to_end_and_stop_playback_recorded_car 86@

:CAT2_10538
if 
  not is_car_dead 88@
goto_if_false @CAT2_10559
skip_to_end_and_stop_playback_recorded_car 88@

:CAT2_10559
if 
  not is_car_dead 90@
goto_if_false @CAT2_10640
skip_to_end_and_stop_playback_recorded_car 90@
set_car_coordinates 90@ {x} 2288.7571 {y} -11.9521 {z} 25.4766
set_car_heading 90@ {heading} 142.4622
set_car_forward_speed 90@ {forwardSpeed} 0.0
set_car_rotation_velocity 90@ {x} 0.0 {y} 0.0 {z} 0.0

:CAT2_10640
68@ += 1
41@ = 25

:CAT2_10654
if 
  41@ == 16
goto_if_false @CAT2_10728
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_10728
560@ = 39
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 4000
41@ += 1

:CAT2_10728
if 
  41@ == 17
goto_if_false @CAT2_10836
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_10836
if 
  560@ == 0
goto_if_false @CAT2_10836
set_lvar_int_to_lvar_int 626@ = 92@
set_lvar_int_to_lvar_int 627@ = 93@
$play_audio_global = 1
560@ = 11
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2800
41@ += 1

:CAT2_10836
if and
  41@ == 18
  560@ == 0
goto_if_false @CAT2_10910
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_10910
560@ = 12
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 3500
41@ += 1

:CAT2_10910
if and
  41@ == 19
  560@ == 0
goto_if_false @CAT2_11193
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11193
if 
  not is_car_dead 85@
goto_if_false @CAT2_11032
if 
  not is_char_dead 92@
goto_if_false @CAT2_11032
clear_char_tasks 92@
set_char_coordinates 92@ {x} 2345.99 {y} 5.6379 {z} 25.3359
set_char_heading 92@ {heading} 276.5795
task_enter_car_as_driver 92@ {vehicle} 85@ {time} 5000

:CAT2_11032
if 
  not is_car_dead 85@
goto_if_false @CAT2_11112
if 
  not is_char_dead 93@
goto_if_false @CAT2_11112
clear_char_tasks 93@
set_char_coordinates 93@ {x} 2349.073 {y} 9.3357 {z} 25.4766
set_char_heading 93@ {heading} 282.9661
task_enter_car_as_passenger 93@ {vehicle} 85@ {time} 5000 {seat} SeatId.BikeRear

:CAT2_11112
clear_small_prints 
set_fixed_camera_position 2353.4939 {y} 10.2912 {z} 29.0217 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2352.7229 {y} 9.7997 {z} 28.6169 {switchStyle} SwitchType.JumpCut
delete_char 94@
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 1000
41@ += 1

:CAT2_11193
if 
  41@ == 20
goto_if_false @CAT2_11305
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11305
if 
  not is_car_dead 86@
goto_if_false @CAT2_11256
set_playback_speed 86@ {speed} 1.0

:CAT2_11256
if 
  not is_car_dead 88@
goto_if_false @CAT2_11282
set_playback_speed 88@ {speed} 1.0

:CAT2_11282
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1

:CAT2_11305
if 
  41@ == 21
goto_if_false @CAT2_11479
if 
  not is_car_dead 85@
goto_if_false @CAT2_11456
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11449
set_playback_speed 85@ {speed} 1.0
set_interpolation_parameters 0.0 {time} 5500
set_fixed_camera_position 2353.054 {y} 12.14 {z} 28.0091 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 85@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
switch_car_siren 85@ {state} True
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 5500
41@ = 23

:CAT2_11449
goto @CAT2_11479

:CAT2_11456
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 5500
41@ = 23

:CAT2_11479
if 
  41@ == 22
goto_if_false @CAT2_11622
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_11622
set_fixed_camera_position 2297.562 {y} 11.3784 {z} 29.2857 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 90@
goto_if_false @CAT2_11580
point_camera_at_car 90@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
goto @CAT2_11599

:CAT2_11580
point_camera_at_point 2297.377 {y} 12.3375 {z} 29.071 {switchStyle} SwitchType.JumpCut

:CAT2_11599
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 6500
41@ += 1

:CAT2_11622
if 
  41@ == 23
goto_if_false @CAT2_12535
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_12535
560@ = 13
561@ = 3
if 
  not is_car_dead 85@
goto_if_false @CAT2_11894
if 
  is_playback_going_on_for_car 85@
goto_if_false @CAT2_11894
stop_playback_recorded_car 85@
set_car_coordinates 85@ {x} 2297.2661 {y} -27.4791 {z} 25.3359
set_car_heading 85@ {heading} 23.0
set_car_forward_speed 85@ {forwardSpeed} 17.0
if 
  not is_char_dead 92@
goto_if_false @CAT2_11894
give_weapon_to_char 92@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 85@ {x} 2295.6121 {y} -23.6996 {z} 25.3437 {speed} 17.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 85@ {actionId} TempAction.HandbrakeStraight {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2292.531 {y} -19.1915 {z} 25.3437 {speed} MoveState.Run {time} 10000
task_aim_gun_at_coord -1 {x} 2304.137 {y} -16.591 {z} 27.276 {time} 5000
close_sequence_task 43@
perform_sequence_task 92@ {sequence} 43@
clear_sequence_task 43@

:CAT2_11894
if 
  not is_char_dead 93@
goto_if_false @CAT2_12006
give_weapon_to_char 93@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2296.707 {y} -15.3321 {z} 25.3279 {speed} MoveState.Run {time} 10000
task_toggle_duck -1 {state} True
task_aim_gun_at_coord -1 {x} 2304.137 {y} -16.591 {z} 27.276 {time} 5000
close_sequence_task 43@
perform_sequence_task 93@ {sequence} 43@
clear_sequence_task 43@

:CAT2_12006
if 
  not is_car_dead 86@
goto_if_false @CAT2_12214
if 
  is_playback_going_on_for_car 86@
goto_if_false @CAT2_12214
stop_playback_recorded_car 86@
set_car_coordinates 86@ {x} 2305.835 {y} -30.7209 {z} 25.3382
set_car_heading 86@ {heading} 33.0
set_car_forward_speed 86@ {forwardSpeed} 17.0
if 
  not is_char_dead 87@
goto_if_false @CAT2_12214
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 86@ {x} 2302.1899 {y} -21.2635 {z} 25.4844 {speed} 17.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 86@ {actionId} TempAction.HandbrakeStraight {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2297.2439 {y} -16.8148 {z} 25.3328 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 291.4845
close_sequence_task 43@
perform_sequence_task 87@ {sequence} 43@
clear_sequence_task 43@

:CAT2_12214
if 
  not is_car_dead 88@
goto_if_false @CAT2_12435
if 
  is_playback_going_on_for_car 88@
goto_if_false @CAT2_12435
stop_playback_recorded_car 88@
set_car_coordinates 88@ {x} 2294.491 {y} -2.6373 {z} 25.3359
set_car_heading 88@ {heading} 186.0
set_car_forward_speed 88@ {forwardSpeed} 17.0
if 
  not is_char_dead 89@
goto_if_false @CAT2_12435
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 9999
43@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 88@ {x} 2298.094 {y} -10.0818 {z} 25.3285 {speed} 17.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 88@ {actionId} TempAction.HandbrakeStraight {time} 1000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2303.1189 {y} -13.7964 {z} 25.4766 {speed} MoveState.Run {time} 10000
task_aim_gun_at_coord -1 {x} 2304.137 {y} -16.591 {z} 27.276 {time} 5000
close_sequence_task 43@
perform_sequence_task 89@ {sequence} 43@
clear_sequence_task 43@

:CAT2_12435
if 
  not is_car_dead 90@
goto_if_false @CAT2_12461
set_playback_speed 90@ {speed} 1.0

:CAT2_12461
set_fixed_camera_position 2288.5769 {y} -15.1784 {z} 27.8832 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2289.553 {y} -15.2742 {z} 27.6869 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 6000
41@ += 1

:CAT2_12535
if and
  41@ == 24
  560@ == 0
goto_if_false @CAT2_12598
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_12598
do_fade 500 {direction} Fade.Out
request_model 427
41@ += 1

:CAT2_12598
if 
  41@ == 25
goto_if_false @CAT2_13093
if and
  not get_fading_status 
  has_model_loaded 427
goto_if_false @CAT2_13088
switch_roads_off 2344.5181 {leftBottomY} 36.1468 {leftBottomZ} 36.0359 {rightTopX} 2269.718 {rightTopY} -44.376 {rightTopZ} 23.0569
remove_animation "MISC"
request_animation "GANGS"
95@ = create_car 427 {x} 2302.1809 {y} 6.6 {z} 25.4766
set_car_heading 95@ {heading} 90.0
freeze_car_position 95@ {state} True
96@ = create_car 427 {x} 2337.8999 {y} 23.4 {z} 25.4766
set_car_heading 96@ {heading} 270.0
freeze_car_position 96@ {state} True
101@ = 0

:CAT2_12770
if 
  3 > 101@
goto_if_false @CAT2_12872
97@(101@,4i) = 0
if 
  does_object_exist 72@(101@,4i)
goto_if_false @CAT2_12858
add_blip_for_object 72@(101@,4i) {var_handle} 102@(101@,4i)
make_object_targettable 76@(101@,4i) {state} True
set_object_health 76@(101@,4i) {health} 1000

:CAT2_12858
101@ += 1
goto @CAT2_12770

:CAT2_12872
if 
  not is_char_dead 94@
goto_if_false @CAT2_12893
mark_char_as_no_longer_needed 94@

:CAT2_12893
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In
if 
  not is_char_dead 92@
goto_if_false @CAT2_12954
delete_char 92@

:CAT2_12954
if 
  not is_char_dead 93@
goto_if_false @CAT2_12975
delete_char 93@

:CAT2_12975
if 
  not is_char_dead 87@
goto_if_false @CAT2_12996
delete_char 87@

:CAT2_12996
if 
  not is_char_dead 89@
goto_if_false @CAT2_13017
delete_char 89@

:CAT2_13017
delete_car 85@
delete_car 86@
delete_car 88@
delete_car 90@
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
set_char_coordinates $catalina {x} 2312.208 {y} -1.9564 {z} 25.7422
set_char_heading $catalina {heading} 199.0
41@ += 1
goto @CAT2_13093

:CAT2_13088
request_model 427

:CAT2_13093
if 
  41@ == 26
goto_if_false @CAT2_13241
if and
  not get_fading_status 
  559@ == 1
  has_animation_loaded "GANGS"
goto_if_false @CAT2_13241
560@ = 16
561@ = 3
if 
  not is_char_dead $catalina
goto_if_false @CAT2_13213
task_play_anim $catalina {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:CAT2_13213
set_object_collision_damage_effect 76@ {state} False
set_object_collision_damage_effect 77@ {state} True
set_object_collision_damage_effect 78@ {state} True
41@ += 1

:CAT2_13241
if 
  41@ == 27
goto_if_false @CAT2_14339
106@ = get_script_task_status $catalina {taskId} 1541
if 
  is_int_lvar_equal_to_constant 106@ == 7
goto_if_false @CAT2_13317
if 
  has_animation_loaded "GANGS"
goto_if_false @CAT2_13317
remove_animation "GANGS"

:CAT2_13317
101@ = 0

:CAT2_13324
if 
  3 > 101@
goto_if_false @CAT2_14153
if 
  does_object_exist 72@(101@,4i)
goto_if_false @CAT2_13690
if 
  97@(101@,4i) == 0
goto_if_false @CAT2_13690
44@ = get_object_health 76@(101@,4i)
$x, $y, $z = get_object_coordinates 72@(101@,4i)
set_lvar_float_to_var_float 107@ = $x
107@ -= 1.0
set_lvar_float_to_var_float 110@ = $x
110@ += 1.0
set_lvar_float_to_var_float 108@ = $y
108@ -= 1.0
set_lvar_float_to_var_float 111@ = $y
111@ += 1.0
set_lvar_float_to_var_float 109@ = $z
109@ -= 1.0
set_lvar_float_to_var_float 112@ = $z
112@ += 1.0
if 
  is_explosion_in_area -1 {leftBottomX} 107@ {leftBottomY} 108@ {leftBottomZ} 109@ {rightTopX} 110@ {rightTopY} 111@ {rightTopZ} 112@
goto_if_false @CAT2_13573
set_object_health 113@(101@,4i) {health} 0
44@ = 0

:CAT2_13573
if 
  500 > 44@
goto_if_false @CAT2_13690
46@ = get_object_heading 72@(101@,4i)
break_object 72@(101@,4i) {intensity} 1
set_object_coordinates 113@(101@,4i) {x} $x {y} $y {z} $z
set_object_visible 113@(101@,4i) {state} True
set_object_heading 113@(101@,4i) {heading} 46@
set_object_collision 113@(101@,4i) {state} False
set_object_health 113@(101@,4i) {health} 150
97@(101@,4i) += 1

:CAT2_13690
if 
  does_object_exist 113@(101@,4i)
goto_if_false @CAT2_14068
if 
  97@(101@,4i) == 1
goto_if_false @CAT2_14068
44@ = get_object_health 76@(101@,4i)
if 
  1 > 44@
goto_if_false @CAT2_14068
remove_blip 102@(101@,4i)
delete_object 76@(101@,4i)
if 
  101@ == 0
goto_if_false @CAT2_13838
76@ = create_object_no_offset #KMB_ATM3 {x} 2310.3669 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 76@ {state} False
set_object_heading 76@ {heading} 180.0

:CAT2_13838
if 
  101@ == 1
goto_if_false @CAT2_13896
77@ = create_object_no_offset #KMB_ATM3 {x} 2313.689 {y} -17.0 {z} 26.414
set_object_collision_damage_effect 77@ {state} False
set_object_heading 77@ {heading} 180.0

:CAT2_13896
if 
  101@ == 2
goto_if_false @CAT2_13944
78@ = create_object_no_offset #KMB_ATM3 {x} 2313.3181 {y} -0.1206 {z} 26.414
set_object_collision_damage_effect 78@ {state} False

:CAT2_13944
mark_object_as_no_longer_needed 72@(101@,4i)
$x, $y, $z = get_offset_from_object_in_world_coords 113@(101@,4i) {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
make_object_targettable 76@(101@,4i) {state} False
set_object_visible 76@(101@,4i) {state} True
break_object 113@(101@,4i) {intensity} 0
create_money_pickup $x {y} $y {z} $z {cashAmount} 0 {permanent} True {var_handle} 117@(101@,4i)
add_blip_for_pickup 117@(101@,4i) {var_handle} 102@(101@,4i)
97@(101@,4i) += 1

:CAT2_14068
if 
  97@(101@,4i) == 2
goto_if_false @CAT2_14139
if 
  has_pickup_been_collected 117@(101@,4i)
goto_if_false @CAT2_14139
mark_object_as_no_longer_needed 113@(101@,4i)
remove_blip 102@(101@,4i)
97@(101@,4i) += 1

:CAT2_14139
101@ += 1
goto @CAT2_13324

:CAT2_14153
if and
  97@ == 3
  98@ == 3
  99@ == 3
goto_if_false @CAT2_14339
set_object_collision_damage_effect $2661 {state} True
41@ += 1
if 
  not is_char_dead 92@
goto_if_false @CAT2_14224
set_char_relationship 92@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14224
if 
  not is_char_dead 93@
goto_if_false @CAT2_14249
set_char_relationship 93@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14249
if 
  not is_char_dead 87@
goto_if_false @CAT2_14274
set_char_relationship 87@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14274
if 
  not is_char_dead 89@
goto_if_false @CAT2_14299
set_char_relationship 89@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:CAT2_14299
switch_roads_on 2344.5181 {leftBottomY} 36.1468 {leftBottomZ} 36.0359 {rightTopX} 2269.718 {rightTopY} -44.376 {rightTopZ} 23.0569
set_char_decision_maker $catalina {handleOrTemplate} 38@

:CAT2_14339
if 
  41@ == 28
goto_if_false @CAT2_14392
mark_model_as_no_longer_needed #KMB_ATM1
mark_model_as_no_longer_needed #KMB_ATM2
mark_model_as_no_longer_needed #KMB_ATM3
mark_model_as_no_longer_needed #MTSAFE
mark_model_as_no_longer_needed #CR_DOOR_01
mark_model_as_no_longer_needed #CR_DOOR_03
41@ = 29

:CAT2_14392
if 
  41@ == 31
goto_if_false @CAT2_14967
if and
  has_car_recording_been_loaded 123
  has_car_recording_been_loaded 124
goto_if_false @CAT2_14959
if 
  344@ == 10
goto_if_false @CAT2_14952
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_14952
if 
  locate_char_any_means_3d $scplayer {x} 2315.5581 {y} 70.7181 {z} 31.4998 {xRadius} 11.4 {yRadius} 8.4 {zRadius} 6.0 {drawSphere} False
goto_if_false @CAT2_14952
clear_char_decision_maker_event_response 38@ {event} Event.AcquaintancePedHate
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_area 2321.218 {y} 69.1035 {z} 26.7314 {radius} 25.0 {clearParticles} True
set_fixed_camera_position 2324.8989 {y} 66.4572 {z} 25.8911 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2324.1919 {y} 67.157 {z} 25.9911 {switchStyle} SwitchType.JumpCut
delete_car 86@
delete_car 88@
delete_char 87@
delete_char 89@
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_14685
warp_char_from_car_to_coord $scplayer {x} 2319.793 {y} 61.6571 {z} 25.4769
goto @CAT2_14705

:CAT2_14685
set_char_coordinates $scplayer {x} 2319.793 {y} 61.6571 {z} 25.4769

:CAT2_14705
set_char_heading $scplayer {heading} 5.0
remove_char_from_group $catalina
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_14763
warp_char_from_car_to_coord $catalina {x} 2318.2419 {y} 61.3145 {z} 25.4759
goto @CAT2_14783

:CAT2_14763
set_char_coordinates $catalina {x} 2318.2419 {y} 61.3145 {z} 25.4759

:CAT2_14783
set_char_heading $catalina {heading} 350.0
86@ = create_car 523 {x} 2287.156 {y} 61.9821 {z} 25.4766
set_car_heading 86@ {heading} 322.7361
87@ = create_char_inside_car 86@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 87@ {handleOrTemplate} 62@
start_playback_recorded_car 86@ {path} 123
set_car_proofs 86@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
88@ = create_car 523 {x} 2289.6289 {y} 58.0551 {z} 25.3359
set_car_heading 88@ {heading} 330.5475
set_car_proofs 88@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
89@ = create_char_inside_car 88@ {pedType} PedType.CivMale {modelId} 283
set_char_decision_maker 89@ {handleOrTemplate} 62@
start_playback_recorded_car 88@ {path} 124
41@ += 1

:CAT2_14952
goto @CAT2_14967

:CAT2_14959
request_car_recording 123
request_car_recording 124

:CAT2_14967
if 
  41@ == 32
goto_if_false @CAT2_15059
if 
  not is_car_dead 86@
goto_if_false @CAT2_15059
if 
  not is_playback_going_on_for_car 86@
goto_if_false @CAT2_15059
if 
  not is_char_dead 87@
goto_if_false @CAT2_15059
set_car_engine_on 86@ {state} False
task_leave_any_car 87@
freeze_car_position 86@ {state} True
41@ += 1

:CAT2_15059
if and
  41@ == 33
  560@ == 0
goto_if_false @CAT2_15165
if 
  not is_car_dead 88@
goto_if_false @CAT2_15165
if 
  not is_playback_going_on_for_car 88@
goto_if_false @CAT2_15165
if 
  not is_char_dead 89@
goto_if_false @CAT2_15165
task_leave_any_car 89@
set_car_engine_on 88@ {state} False
freeze_car_position 88@ {state} True
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_15165
if 
  41@ == 34
goto_if_false @CAT2_15250
if 
  not get_fading_status 
goto_if_false @CAT2_15250
560@ = 29
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In
41@ += 1

:CAT2_15250
if 
  41@ == 35
goto_if_false @CAT2_15408
if 
  not get_fading_status 
goto_if_false @CAT2_15408
if 
  not is_char_dead 87@
goto_if_false @CAT2_15322
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 9999
task_kill_char_on_foot 87@ {target} $scplayer
set_char_only_damaged_by_player 87@ {state} True

:CAT2_15322
if 
  not is_char_dead 89@
goto_if_false @CAT2_15363
give_weapon_to_char 89@ {weaponType} WeaponType.Shotgun {ammo} 9999
task_kill_char_on_foot 89@ {target} $scplayer
set_char_only_damaged_by_player 89@ {state} True

:CAT2_15363
if 
  not is_char_dead $catalina
goto_if_false @CAT2_15401
task_shoot_at_coord $catalina {x} 2322.1831 {y} 71.2342 {z} 26.549 {time} -2

:CAT2_15401
41@ += 1

:CAT2_15408
if and
  41@ == 36
  560@ == 0
goto_if_false @CAT2_15490
if 
  not get_fading_status 
goto_if_false @CAT2_15490
if and
  is_char_dead 87@
  is_char_dead 89@
goto_if_false @CAT2_15490
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 750
41@ += 1

:CAT2_15490
if 
  41@ == 37
goto_if_false @CAT2_15541
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_15541
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_15541
if 
  38 > 41@
goto_if_false @CAT2_15559

:CAT2_15559
if 
  41@ == 38
goto_if_false @CAT2_16307
if 
  not get_fading_status 
goto_if_false @CAT2_16307
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
clear_area 2321.218 {y} 69.1035 {z} 26.7314 {radius} 25.0 {clearParticles} True
set_fixed_camera_position 2325.291 {y} 70.4759 {z} 26.8236 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2324.353 {y} 70.7834 {z} 26.6641 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $catalina
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_15747
warp_char_from_car_to_coord $scplayer {x} 2322.075 {y} 69.6739 {z} 25.4784
goto @CAT2_15767

:CAT2_15747
set_char_coordinates $scplayer {x} 2322.075 {y} 69.6739 {z} 25.4784

:CAT2_15767
set_char_heading $scplayer {heading} 325.1885
remove_char_from_group $catalina
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_15825
warp_char_from_car_to_coord $catalina {x} 2321.6299 {y} 71.6478 {z} 25.4724
goto @CAT2_15845

:CAT2_15825
set_char_coordinates $catalina {x} 2321.6299 {y} 71.6478 {z} 25.4724

:CAT2_15845
set_char_heading $catalina {heading} 295.8968
delete_car 86@
delete_car 88@
delete_char 87@
delete_char 89@
if 
  not is_car_dead 95@
goto_if_false @CAT2_15896
mark_car_as_no_longer_needed 95@

:CAT2_15896
if 
  not is_car_dead 96@
goto_if_false @CAT2_15917
mark_car_as_no_longer_needed 96@

:CAT2_15917
if 
  not is_car_dead 85@
goto_if_false @CAT2_15938
mark_car_as_no_longer_needed 85@

:CAT2_15938
if 
  not is_car_dead 86@
goto_if_false @CAT2_15959
mark_car_as_no_longer_needed 86@

:CAT2_15959
clear_area 2320.634 {y} 79.9329 {z} 27.9897 {radius} 100.0 {clearParticles} True
86@ = create_car 523 {x} 2322.863 {y} 73.0477 {z} 26.0378
set_car_heading 86@ {heading} 34.6853
88@ = create_car 523 {x} 2323.166 {y} 70.1374 {z} 26.0405
set_car_heading 88@ {heading} 345.7562
43@ = open_sequence_task 
task_stand_still -1 {time} 750
task_enter_car_as_driver -1 {vehicle} 86@ {time} -2
close_sequence_task 43@
perform_sequence_task $catalina {sequence} 43@
clear_sequence_task 43@
43@ = open_sequence_task 
task_stand_still -1 {time} 500
task_enter_car_as_driver -1 {vehicle} 88@ {time} -2
close_sequence_task 43@
perform_sequence_task $scplayer {sequence} 43@
clear_sequence_task 43@
mark_object_as_no_longer_needed 113@
mark_object_as_no_longer_needed 114@
mark_object_as_no_longer_needed 115@
mark_object_as_no_longer_needed 72@
mark_object_as_no_longer_needed 73@
mark_object_as_no_longer_needed 74@
mark_object_as_no_longer_needed 75@
mark_object_as_no_longer_needed 76@
mark_object_as_no_longer_needed 77@
mark_object_as_no_longer_needed 78@
mark_object_as_no_longer_needed 70@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 298@
mark_char_as_no_longer_needed 299@
mark_char_as_no_longer_needed 300@
mark_char_as_no_longer_needed 301@
mark_char_as_no_longer_needed 302@
mark_char_as_no_longer_needed 303@
mark_char_as_no_longer_needed 304@
mark_char_as_no_longer_needed 305@
mark_char_as_no_longer_needed 306@
do_fade 500 {direction} Fade.In
set_lvar_int_to_var_int 42@ = $game_timer
42@ += 2500
41@ += 1
560@ = 30
561@ = 2
set_lvar_int_to_lvar_int 634@ = TIMERA
634@ += 400

:CAT2_16307
if 
  41@ == 39
goto_if_false @CAT2_16421
if 
  not is_car_dead 86@
goto_if_false @CAT2_16407
if 
  is_char_sitting_in_car $catalina {vehicle} 86@
goto_if_false @CAT2_16400
if and
  is_int_var_greater_than_int_lvar $game_timer > 42@
  560@ == 0
goto_if_false @CAT2_16400
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_16400
goto @CAT2_16421

:CAT2_16407
do_fade 500 {direction} Fade.Out
41@ += 1

:CAT2_16421
if 
  41@ == 40
goto_if_false @CAT2_17517
if and
  has_car_recording_been_loaded 156
  has_car_recording_been_loaded 157
  has_car_recording_been_loaded 158
  has_car_recording_been_loaded 159
goto_if_false @CAT2_17497
if and
  has_car_recording_been_loaded 160
  has_car_recording_been_loaded 161
goto_if_false @CAT2_17480
if 
  not get_fading_status 
goto_if_false @CAT2_17473
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
122@ = create_car 599 {x} 1307.095 {y} 280.2934 {z} 18.4062
123@ = create_car 599 {x} 1307.095 {y} 290.2934 {z} 18.4062
124@ = create_car 599 {x} 1307.095 {y} 300.2934 {z} 18.4062
freeze_car_position 122@ {state} True
freeze_car_position 123@ {state} True
freeze_car_position 124@ {state} True
146@ = create_car 523 {x} 2346.5229 {y} 62.9803 {z} 25.3359
147@ = create_car 523 {x} 2346.6819 {y} 45.9405 {z} 25.3359
129@ = create_char_inside_car 122@ {pedType} PedType.Mission1 {modelId} 283
130@ = create_char_as_passenger 122@ {pedType} PedType.Mission1 {modelId} 283 {seat} SeatId.BikeRear
131@ = create_char_inside_car 123@ {pedType} PedType.Mission1 {modelId} 283
132@ = create_char_as_passenger 123@ {pedType} PedType.Mission1 {modelId} 283 {seat} SeatId.BikeRear
133@ = create_char_inside_car 124@ {pedType} PedType.Mission1 {modelId} 283
134@ = create_char_as_passenger 124@ {pedType} PedType.Mission1 {modelId} 283 {seat} SeatId.BikeRear
135@ = create_char_inside_car 146@ {pedType} PedType.Mission2 {modelId} 283
136@ = create_char_inside_car 147@ {pedType} PedType.Mission2 {modelId} 283
set_char_relationship 135@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 136@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
166@ = copy_char_decision_maker DecisionMakerCharTemplate.RandomTough
363@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_char_decision_maker_event_response 166@ {event} Event.ShotFired
clear_char_decision_maker_event_response 166@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 166@ {event} Event.Damage
clear_char_decision_maker_event_response 166@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 166@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 166@ {event} Event.DeadPed
clear_char_decision_maker_event_response 166@ {event} Event.VehicleDamageWeapon
add_char_decision_maker_event_response 166@ {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 75.0 {like} 0.0 {dislike} 75.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.Damage {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 25.0 {like} 0.0 {dislike} 25.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 166@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_char_decision_maker 129@ {handleOrTemplate} 363@
set_char_decision_maker 130@ {handleOrTemplate} 363@
set_char_decision_maker 131@ {handleOrTemplate} 363@
set_char_decision_maker 132@ {handleOrTemplate} 363@
set_char_decision_maker 133@ {handleOrTemplate} 363@
set_char_decision_maker 134@ {handleOrTemplate} 363@
set_char_decision_maker 135@ {handleOrTemplate} 363@
set_char_decision_maker 136@ {handleOrTemplate} 363@
set_char_can_be_knocked_off_bike 135@ {stayOnBike} 2
set_char_can_be_knocked_off_bike 136@ {stayOnBike} 2
give_weapon_to_char 129@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 130@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 131@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 132@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 133@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 134@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 135@ {weaponType} WeaponType.Pistol {ammo} 9999
give_weapon_to_char 136@ {weaponType} WeaponType.Pistol {ammo} 9999
if 
  not is_char_dead $catalina
goto_if_false @CAT2_17258
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 9999

:CAT2_17258
148@ = 1290.025
149@ = 1294.2419
150@ = 1282.681
151@ = 1285.585
152@ = 1289.389
153@ = 1285.593
154@ = 252.8313
155@ = 249.3508
156@ = 250.9628
157@ = 253.8959
158@ = 241.5564
159@ = 240.6378
160@ = 18.4062
161@ = 18.4062
162@ = 18.4062
163@ = 18.4062
164@ = 18.4062
165@ = 18.4062
121@ = 0
125@ = 0
126@ = 0
do_fade 500 {direction} Fade.In
41@ += 1

:CAT2_17473
goto @CAT2_17490

:CAT2_17480
request_car_recording 160
request_car_recording 161

:CAT2_17490
goto @CAT2_17517

:CAT2_17497
request_car_recording 156
request_car_recording 157
request_car_recording 158
request_car_recording 159

:CAT2_17517
if 
  41@ == 41
goto_if_false @CAT2_17571
if 
  not get_fading_status 
goto_if_false @CAT2_17571
56@ = 8
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
41@ += 1

:CAT2_17571
if 
  41@ > 9
goto_if_false @CAT2_17633
if 
  56@ == 0
goto_if_false @CAT2_17633
if 
  is_int_var_greater_than_int_lvar $game_timer > 42@
goto_if_false @CAT2_17633
56@ += 1

:CAT2_17633
if 
  56@ == 1
goto_if_false @CAT2_17687
$task_status = get_script_task_status $catalina {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_17687
56@ += 1

:CAT2_17687
if 
  56@ == 2
goto_if_false @CAT2_17757
$task_status = get_script_task_status $catalina {taskId} 1492
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_17757
set_lvar_int_to_var_int 167@ = $game_timer
167@ += 20000
56@ += 1

:CAT2_17757
if 
  56@ == 3
goto_if_false @CAT2_17867
168@ += 15
if or
  is_int_var_greater_than_int_lvar $game_timer > 167@
  41@ > 10
goto_if_false @CAT2_17867
if 
  41@ == 10
goto_if_false @CAT2_17860
report_mission_audio_event_at_position 2312.094 {y} -9.6433 {z} 28.679 {soundId} ScriptSound.SoundCat2SecurityAlarm
gosub @CAT2_30052
41@ = 11

:CAT2_17860
56@ += 1

:CAT2_17867
if 
  56@ == 4
goto_if_false @CAT2_18239
if 
  41@ > 27
goto_if_false @CAT2_18239
if 
  not is_char_dead $catalina
goto_if_false @CAT2_18239
if and
  169@ == 0
  560@ == 0
goto_if_false @CAT2_18004
560@ = 19
561@ = 2
372@ = add_blip_for_char $catalina
set_blip_as_friendly 372@ {state} True
task_go_straight_to_coord $catalina {x} 2315.3911 {y} -1.6768 {z} 25.75 {speed} MoveState.Run {time} -2
169@ = 1

:CAT2_18004
if 
  169@ == 1
goto_if_false @CAT2_18117
$task_status = get_script_task_status $catalina {taskId} -1
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_18117
if 
  not has_object_been_damaged $2661
goto_if_false @CAT2_18110
169@ = 2
task_shoot_at_coord $catalina {x} 2315.4751 {y} 1.0941 {z} 26.8796 {time} 1000
170@ += 1
goto @CAT2_18117

:CAT2_18110
169@ = 2

:CAT2_18117
if 
  169@ == 2
goto_if_false @CAT2_18239
$task_status = get_script_task_status $catalina {taskId} 1640
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @CAT2_18239
if or
  has_object_been_damaged $2661
  170@ > 2
goto_if_false @CAT2_18232
task_follow_path_nodes_to_coord $catalina {x} 2315.51 {y} 3.1256 {z} 25.4844 {speed} MoveState.Run {time} -2
169@ = 3
56@ += 1
goto @CAT2_18239

:CAT2_18232
169@ = 1

:CAT2_18239
if 
  34@ == 0
goto_if_false @CAT2_18376
if 
  56@ > 4
goto_if_false @CAT2_18376
if and
  35@ == 0
  560@ == 0
goto_if_false @CAT2_18323
print 'CAT2_19' {time} 4000 {flag} 1
35@ = 1

:CAT2_18323
if 
  has_object_been_damaged $2661
goto_if_false @CAT2_18376
34@ = 1
560@ = 21
set_lvar_int_to_lvar_int 639@ = TIMERA
639@ += 2500
561@ = 3

:CAT2_18376
if 
  56@ == 5
goto_if_false @CAT2_20195
171@ = 2328.6379
189@ = 9.9046
207@ = 25.4766
225@ = 82.0
251@ = 1
172@ = 2328.6299
190@ = 12.0793
208@ = 26.4366
226@ = 102.156
252@ = 1
173@ = 2323.5391
191@ = 8.1573
209@ = 30.1564
227@ = 119.8251
253@ = 0
174@ = 2313.9189
192@ = 5.5612
210@ = 25.4766
228@ = 179.0108
254@ = 3
175@ = 2319.28
193@ = 10.1457
211@ = 25.4766
229@ = 173.7026
255@ = 1
176@ = 2322.4221
194@ = 14.3559
212@ = 33.4834
230@ = 131.5315
256@ = 0
177@ = 2322.5669
195@ = 22.3196
213@ = 25.4766
231@ = 191.9916
257@ = 5
178@ = 2317.4221
196@ = 31.4408
214@ = 25.4688
232@ = 170.5408
258@ = 1
179@ = 2323.3469
197@ = 32.5086
215@ = 30.3438
233@ = 167.5312
259@ = 2
180@ = 2314.0601
198@ = 27.4771
216@ = 28.4834
234@ = 211.9221
260@ = 0
181@ = 2314.146
199@ = 32.6897
217@ = 30.3072
235@ = 218.8303
261@ = 0
182@ = 2324.323
200@ = 25.9529
218@ = 30.4834
236@ = 146.7435
262@ = 0
183@ = 2315.2351
201@ = 44.7149
219@ = 27.6529
237@ = 177.4772
263@ = 1
184@ = 2322.1421
202@ = 38.0272
220@ = 25.4698
238@ = 165.042
264@ = 5
185@ = 2316.281
203@ = 53.245
221@ = 25.4745
239@ = 211.6924
265@ = 3
186@ = 2316.9771
204@ = 60.9693
222@ = 26.9906
240@ = 217.9312
266@ = 0
187@ = 2322.6899
205@ = 57.5449
223@ = 31.9884
241@ = 174.0596
267@ = 0
188@ = 2313.3899
206@ = 51.5349
224@ = 29.4834
242@ = 196.6579
268@ = 0
278@ = 0

:CAT2_19247
if 
  9 > 278@
goto_if_false @CAT2_20165
if 
  3 > 278@
goto_if_false @CAT2_19353
279@ = generate_random_int_in_range 0 {max} 6

:CAT2_19292
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19353
279@ += 1
if 
  279@ == 6
goto_if_false @CAT2_19346
279@ = 0

:CAT2_19346
goto @CAT2_19292

:CAT2_19353
if and
  278@ > 2
  6 > 278@
goto_if_false @CAT2_19448
279@ = generate_random_int_in_range 6 {max} 12

:CAT2_19387
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19448
279@ += 1
if 
  279@ == 12
goto_if_false @CAT2_19441
279@ = 6

:CAT2_19441
goto @CAT2_19387

:CAT2_19448
if and
  278@ > 5
  9 > 278@
goto_if_false @CAT2_19543
279@ = generate_random_int_in_range 12 {max} 18

:CAT2_19482
if 
  280@(279@,18i) == 1
goto_if_false @CAT2_19543
279@ += 1
if 
  279@ == 18
goto_if_false @CAT2_19536
279@ = 12

:CAT2_19536
goto @CAT2_19482

:CAT2_19543
280@(279@,18i) = 1
set_lvar_int_to_lvar_int 316@(279@,18i) = 278@
create_char PedType.CivMale {modelId} 283 {x} 171@(279@,18f) {y} 189@(279@,18f) {z} 207@(279@,18f) {var_handle} 298@(278@,9i)
set_char_shoot_rate 298@(278@,9i) {rate} 40
set_char_accuracy 298@(278@,9i) {accuracy} 60
set_lvar_int_to_lvar_int 307@(278@,9i) = 251@(279@,18i)
set_lvar_int_to_lvar_int 334@(278@,9i) = 279@
set_char_heading 298@(278@,9i) {heading} 225@(279@,18f)
279@ = generate_random_int_in_range 0 {max} 3
if or
  3 > 279@
  343@ > 0
goto_if_false @CAT2_19722
give_weapon_to_char 298@(278@,9i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @CAT2_19797

:CAT2_19722
if 
  6 > 334@(278@,9i)
goto_if_false @CAT2_19765
give_weapon_to_char 298@(278@,9i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @CAT2_19797

:CAT2_19765
give_weapon_to_char 298@(278@,9i) {weaponType} WeaponType.Shotgun {ammo} 9999
set_char_shoot_rate 298@(278@,9i) {rate} 10
343@ = 1

:CAT2_19797
set_char_relationship 298@(278@,9i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 298@(278@,9i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special
if 
  251@(279@,18i) == 0
goto_if_false @CAT2_19902
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@
set_char_stay_in_same_place 298@(278@,9i) {state} True

:CAT2_19902
if 
  251@(279@,18i) == 1
goto_if_false @CAT2_19974
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@
set_char_stay_in_same_place 298@(278@,9i) {state} True

:CAT2_19974
if 
  251@(279@,18i) == 2
goto_if_false @CAT2_20029
43@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@

:CAT2_20029
if 
  251@(279@,18i) == 3
goto_if_false @CAT2_20090
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@

:CAT2_20090
if 
  251@(279@,18i) == 5
goto_if_false @CAT2_20151
43@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 43@
perform_sequence_task 298@(278@,9i) {sequence} 43@
clear_sequence_task 43@

:CAT2_20151
278@ += 1
goto @CAT2_19247

:CAT2_20165
346@ = 99
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 30000
56@ = 6

:CAT2_20195
if 
  56@ == 6
goto_if_false @CAT2_23402
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23402
if 
  346@ <> 99
goto_if_false @CAT2_20387
if 
  is_char_dead 298@(346@,9i)
goto_if_false @CAT2_20297
set_lvar_int_to_lvar_int 278@ = 334@(346@,9i)
280@(278@,18i) = 0
346@ = 99

:CAT2_20297
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 350@
goto_if_false @CAT2_20387
if 
  346@ <> 99
goto_if_false @CAT2_20387
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 30000
347@ = 1
set_lvar_int_to_lvar_int 278@ = 334@(346@,9i)
280@(278@,18i) = 0
346@ = 99

:CAT2_20387
if 
  346@ == 99
goto_if_false @CAT2_22520
if and
  344@ > 0
  10 > 344@
goto_if_false @CAT2_20518
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 1
goto_if_false @CAT2_20474
set_lvar_int_to_lvar_int 348@ = TIMERA
348@ += 8000

:CAT2_20474
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20518
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 348@
goto_if_false @CAT2_20518
347@ = 1

:CAT2_20518
if 
  344@ == 0
goto_if_false @CAT2_20571
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20571
344@ = 1

:CAT2_20571
if 
  344@ == 1
goto_if_false @CAT2_20822
if 
  283@ == 1
goto_if_false @CAT2_20622
set_lvar_int_to_lvar_int 346@ = 319@
goto @CAT2_20759

:CAT2_20622
if 
  282@ == 1
goto_if_false @CAT2_20655
set_lvar_int_to_lvar_int 346@ = 318@
goto @CAT2_20759

:CAT2_20655
if 
  284@ == 1
goto_if_false @CAT2_20688
set_lvar_int_to_lvar_int 346@ = 320@
goto @CAT2_20759

:CAT2_20688
if 
  285@ == 1
goto_if_false @CAT2_20721
set_lvar_int_to_lvar_int 346@ = 321@
goto @CAT2_20759

:CAT2_20721
344@ = 2
560@ = 24
task_follow_path_nodes_to_coord $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {speed} MoveState.Run {time} -2

:CAT2_20759
if 
  347@ == 1
goto_if_false @CAT2_20822
347@ = 0
344@ = 2
560@ = 24
task_follow_path_nodes_to_coord $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {speed} MoveState.Run {time} -2

:CAT2_20822
if 
  344@ == 2
goto_if_false @CAT2_20971
if 
  not is_char_dead $catalina
goto_if_false @CAT2_20971
349@ = get_script_task_status $catalina {taskId} 1525
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_20971
if 
  locate_char_any_means_3d $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_20947
344@ = 3
goto @CAT2_20971

:CAT2_20947
task_follow_path_nodes_to_coord $catalina {x} 2321.74 {y} 10.5486 {z} 25.4688 {speed} MoveState.Run {time} -2

:CAT2_20971
if and
  344@ == 3
  560@ == 0
goto_if_false @CAT2_21163
if 
  280@ == 1
goto_if_false @CAT2_21029
set_lvar_int_to_lvar_int 346@ = 316@
goto @CAT2_21100

:CAT2_21029
if 
  281@ == 1
goto_if_false @CAT2_21062
set_lvar_int_to_lvar_int 346@ = 317@
goto @CAT2_21100

:CAT2_21062
344@ = 4
560@ = 25
task_follow_path_nodes_to_coord $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_21100
if 
  347@ == 1
goto_if_false @CAT2_21163
347@ = 0
344@ = 4
560@ = 25
task_follow_path_nodes_to_coord $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_21163
if 
  344@ == 4
goto_if_false @CAT2_21312
if 
  not is_char_dead $catalina
goto_if_false @CAT2_21312
349@ = get_script_task_status $catalina {taskId} 1525
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_21312
if 
  locate_char_any_means_3d $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_21288
344@ = 5
goto @CAT2_21312

:CAT2_21288
task_follow_path_nodes_to_coord $catalina {x} 2318.281 {y} 18.5403 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_21312
if 
  344@ == 5
goto_if_false @CAT2_21629
if 
  286@ == 1
goto_if_false @CAT2_21363
set_lvar_int_to_lvar_int 346@ = 322@
goto @CAT2_21566

:CAT2_21363
if 
  287@ == 1
goto_if_false @CAT2_21396
set_lvar_int_to_lvar_int 346@ = 323@
goto @CAT2_21566

:CAT2_21396
if 
  288@ == 1
goto_if_false @CAT2_21429
set_lvar_int_to_lvar_int 346@ = 324@
goto @CAT2_21566

:CAT2_21429
if 
  289@ == 1
goto_if_false @CAT2_21462
set_lvar_int_to_lvar_int 346@ = 325@
goto @CAT2_21566

:CAT2_21462
if 
  290@ == 1
goto_if_false @CAT2_21495
set_lvar_int_to_lvar_int 346@ = 326@
goto @CAT2_21566

:CAT2_21495
if 
  291@ == 1
goto_if_false @CAT2_21528
set_lvar_int_to_lvar_int 346@ = 327@
goto @CAT2_21566

:CAT2_21528
344@ = 6
560@ = 26
task_follow_path_nodes_to_coord $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {speed} MoveState.Run {time} -2

:CAT2_21566
if 
  347@ == 1
goto_if_false @CAT2_21629
347@ = 0
344@ = 6
560@ = 26
task_follow_path_nodes_to_coord $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {speed} MoveState.Run {time} -2

:CAT2_21629
if 
  344@ == 6
goto_if_false @CAT2_21778
if 
  not is_char_dead $catalina
goto_if_false @CAT2_21778
349@ = get_script_task_status $catalina {taskId} 1525
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_21778
if 
  locate_char_any_means_3d $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_21754
344@ = 7
goto @CAT2_21778

:CAT2_21754
task_follow_path_nodes_to_coord $catalina {x} 2319.228 {y} 34.565 {z} 25.468 {speed} MoveState.Run {time} -2

:CAT2_21778
if and
  344@ == 7
  560@ == 0
goto_if_false @CAT2_21956
if 
  292@ == 1
goto_if_false @CAT2_21836
set_lvar_int_to_lvar_int 346@ = 328@
goto @CAT2_21900

:CAT2_21836
if 
  293@ == 1
goto_if_false @CAT2_21869
set_lvar_int_to_lvar_int 346@ = 329@
goto @CAT2_21900

:CAT2_21869
344@ = 8
task_follow_path_nodes_to_coord $catalina {x} 2318.6221 {y} 45.0292 {z} 25.4762 {speed} MoveState.Run {time} -2

:CAT2_21900
if 
  347@ == 1
goto_if_false @CAT2_21956
347@ = 0
344@ = 8
task_follow_path_nodes_to_coord $catalina {x} 2318.6221 {y} 45.0292 {z} 25.4762 {speed} MoveState.Run {time} -2

:CAT2_21956
if 
  344@ == 8
goto_if_false @CAT2_22025
if 
  not is_char_dead $catalina
goto_if_false @CAT2_22025
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_22025
344@ = 9

:CAT2_22025
if and
  344@ == 9
  560@ == 0
goto_if_false @CAT2_22283
if 
  294@ == 1
goto_if_false @CAT2_22083
set_lvar_int_to_lvar_int 346@ = 330@
goto @CAT2_22220

:CAT2_22083
if 
  295@ == 1
goto_if_false @CAT2_22116
set_lvar_int_to_lvar_int 346@ = 331@
goto @CAT2_22220

:CAT2_22116
if 
  296@ == 1
goto_if_false @CAT2_22149
set_lvar_int_to_lvar_int 346@ = 332@
goto @CAT2_22220

:CAT2_22149
if 
  297@ == 1
goto_if_false @CAT2_22182
set_lvar_int_to_lvar_int 346@ = 333@
goto @CAT2_22220

:CAT2_22182
344@ = 10
560@ = 28
task_follow_path_nodes_to_coord $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_22220
if 
  347@ == 1
goto_if_false @CAT2_22283
347@ = 0
344@ = 10
560@ = 28
task_follow_path_nodes_to_coord $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_22283
if 
  344@ == 10
goto_if_false @CAT2_22438
if 
  not is_char_dead $catalina
goto_if_false @CAT2_22438
349@ = get_script_task_status $catalina {taskId} -1
if 
  is_int_lvar_equal_to_constant 349@ == 7
goto_if_false @CAT2_22438
if 
  locate_char_any_means_3d $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CAT2_22414
56@ = 7
41@ = 31
goto @CAT2_22438

:CAT2_22414
task_follow_path_nodes_to_coord $catalina {x} 2319.2371 {y} 64.4156 {z} 25.4766 {speed} MoveState.Run {time} -2

:CAT2_22438
if 
  346@ <> 99
goto_if_false @CAT2_22520
if 
  not is_char_dead $catalina
goto_if_false @CAT2_22520
if 
  not is_char_dead 298@(346@,9i)
goto_if_false @CAT2_22520
task_kill_char_on_foot $catalina {target} 298@(346@,9i)
set_lvar_int_to_lvar_int 350@ = TIMERA
350@ += 15000

:CAT2_22520
278@ = 0

:CAT2_22527
if 
  9 > 278@
goto_if_false @CAT2_23402
if 
  not is_char_dead 298@(278@,9i)
goto_if_false @CAT2_23388
if 
  307@(278@,9i) == 1
goto_if_false @CAT2_22727
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 269@(278@,9i)
goto_if_false @CAT2_22727
345@ = get_script_task_status 298@(278@,9i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 345@ == 7
goto_if_false @CAT2_22727
279@ = generate_random_int_in_range 4000 {max} 8000
set_lvar_int_to_lvar_int 269@(278@,9i) = TIMERA
add_int_lvar_to_int_lvar 269@(278@,9i) += 279@
if 
  is_char_ducking 298@(278@,9i)
goto_if_false @CAT2_22716
task_toggle_duck 298@(278@,9i) {state} False
goto @CAT2_22727

:CAT2_22716
task_toggle_duck 298@(278@,9i) {state} True

:CAT2_22727
if 
  307@(278@,9i) == 2
goto_if_false @CAT2_22805
if 
  not is_char_responding_to_event 298@(278@,9i) {event} Event.AcquaintancePedHate
goto_if_false @CAT2_22805
task_stay_in_same_place 298@(278@,9i) {state} False
task_kill_char_on_foot 298@(278@,9i) {target} $scplayer
307@(278@,9i) = 4

:CAT2_22805
if 
  307@(278@,9i) == 3
goto_if_false @CAT2_23084
243@ = get_char_heading 298@(278@,9i)
244@, 245@, 246@ = get_char_coordinates 298@(278@,9i)
249@ = sin 243@
250@ = cos 243@
set_lvar_float_to_lvar_float 247@ = 249@
247@ *= -2.5
add_float_lvar_to_float_lvar 247@ += 244@
set_lvar_float_to_lvar_float 248@ = 250@
248@ *= 2.5
add_float_lvar_to_float_lvar 248@ += 245@
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23084
if or
  locate_char_any_means_3d $scplayer {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
  locate_char_any_means_3d $catalina {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_23084
task_stay_in_same_place 298@(278@,9i) {state} False
task_play_anim_non_interruptable 298@(278@,9i) {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
307@(278@,9i) = 0

:CAT2_23084
if 
  307@(278@,9i) == 5
goto_if_false @CAT2_23388
243@ = get_char_heading 298@(278@,9i)
244@, 245@, 246@ = get_char_coordinates 298@(278@,9i)
249@ = sin 243@
250@ = cos 243@
set_lvar_float_to_lvar_float 247@ = 249@
247@ *= -2.5
add_float_lvar_to_float_lvar 247@ += 244@
set_lvar_float_to_lvar_float 248@ = 250@
248@ *= 2.5
add_float_lvar_to_float_lvar 248@ += 245@
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23388
if or
  locate_char_any_means_3d $scplayer {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
  locate_char_any_means_3d $catalina {x} 247@ {y} 248@ {z} 25.7 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CAT2_23388
if 
  560@ == 0
goto_if_false @CAT2_23322
560@ = 27

:CAT2_23322
task_stay_in_same_place 298@(278@,9i) {state} False
task_play_anim_non_interruptable 298@(278@,9i) {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
307@(278@,9i) = 0

:CAT2_23388
278@ += 1
goto @CAT2_22527

:CAT2_23402
if 
  56@ == 8
goto_if_false @CAT2_28299
if 
  41@ > 40
goto_if_false @CAT2_28299
if 
  351@ == 0
goto_if_false @CAT2_23694
if 
  locate_char_any_means_3d $scplayer {x} 2130.689 {y} 149.1074 {z} 0.3268 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT2_23694
request_model 523
request_model 283
request_model 346
if and
  has_model_loaded 523
  has_model_loaded 283
  has_model_loaded 346
goto_if_false @CAT2_23694
351@ = 1
353@ = create_car 523 {x} 2048.156 {y} 195.1577 {z} 15.8884
switch_car_siren 353@ {state} True
set_car_heading 353@ {heading} 270.0
354@ = create_char_inside_car 353@ {pedType} PedType.Mission1 {modelId} 283
give_weapon_to_char 354@ {weaponType} WeaponType.Pistol {ammo} 9999
355@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 353@ {x} 2105.2361 {y} 179.1932 {z} 0.5812 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_car_temp_action -1 {vehicle} 353@ {actionId} TempAction.HandbrakeTurnRight {time} 1000
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 355@
perform_sequence_task 354@ {sequence} 355@
clear_sequence_task 355@

:CAT2_23694
if 
  126@ == 0
goto_if_false @CAT2_23843
if and
  not is_car_dead 88@
  not is_car_dead 86@
  not is_char_dead $catalina
  not is_car_dead 146@
  not is_car_dead 147@
goto_if_false @CAT2_23843
if 
  is_char_in_car $catalina {vehicle} 86@
goto_if_false @CAT2_23843
if 
  not is_char_dead $catalina
goto_if_false @CAT2_23790
set_char_can_be_knocked_off_bike $catalina {stayOnBike} 2

:CAT2_23790
126@ = 1
start_playback_recorded_car 86@ {path} 157
start_playback_recorded_car 146@ {path} 160
start_playback_recorded_car 147@ {path} 161
switch_car_siren 146@ {state} True
switch_car_siren 147@ {state} True
143@ = get_car_char_is_using $scplayer

:CAT2_23843
if 
  126@ > 0
goto_if_false @CAT2_24094
if 
  not is_car_dead 146@
goto_if_false @CAT2_23924
if 
  is_playback_going_on_for_car 146@
goto_if_false @CAT2_23924
356@ = get_driver_of_car 146@
if 
  356@ == -1
goto_if_false @CAT2_23924
stop_playback_recorded_car 146@

:CAT2_23924
if 
  not is_car_dead 147@
goto_if_false @CAT2_24094
if 
  is_playback_going_on_for_car 147@
goto_if_false @CAT2_24094
356@ = get_driver_of_car 147@
if 
  356@ == -1
goto_if_false @CAT2_23994
stop_playback_recorded_car 147@
goto @CAT2_24094

:CAT2_23994
if 
  358@ == 0
goto_if_false @CAT2_24094
$x, $y, $z = get_car_coordinates 147@
if 
  1570.0 > $x
goto_if_false @CAT2_24094
if 
  is_car_in_air_proper 147@
goto_if_false @CAT2_24094
if 
  not is_char_dead 356@
goto_if_false @CAT2_24094
task_leave_car_immediately 356@ {vehicle} 147@
358@ = 1

:CAT2_24094
if 
  126@ == 1
goto_if_false @CAT2_24867
if and
  not is_char_dead $catalina
  not is_car_dead 86@
goto_if_false @CAT2_24867
if 
  121@ == 0
goto_if_false @CAT2_24710
$x, $y, $z = get_char_coordinates $catalina
47@, 48@, 49@ = get_char_coordinates $scplayer
set_var_float_to_lvar_float $distance = 47@
sub_float_var_from_float_var $distance -= $x
if 
  0.0 > $distance
goto_if_false @CAT2_24226
$distance = 0.0

:CAT2_24226
53@ = 2000.0
div_float_lvar_by_float_var 53@ /= $distance
53@ /= 100.0
if 
  53@ > 1.5
goto_if_false @CAT2_24285
53@ = 1.5

:CAT2_24285
if 
  0.3 > 53@
goto_if_false @CAT2_24316
53@ = 0.3

:CAT2_24316
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 359@
  37 > 36@
goto_if_false @CAT2_24429
if and
  $distance > 10.0
  50.0 > $distance
goto_if_false @CAT2_24429
if 
  560@ == 0
goto_if_false @CAT2_24429
set_lvar_int_to_lvar_int 560@ = 36@
$play_audio_global = 1
set_lvar_int_to_lvar_int 359@ = TIMERA
359@ += 8000
36@ += 1

:CAT2_24429
if 
  not is_car_dead 146@
goto_if_false @CAT2_24471
if 
  is_car_in_air_proper 146@
goto_if_false @CAT2_24471
53@ = 1.0

:CAT2_24471
if 
  not is_car_dead 147@
goto_if_false @CAT2_24605
if 
  is_car_in_air_proper 147@
goto_if_false @CAT2_24513
53@ = 1.0

:CAT2_24513
if 
  not is_char_dead 136@
goto_if_false @CAT2_24605
if 
  not is_char_in_any_car 136@
goto_if_false @CAT2_24605
if 
  360@ == 0
goto_if_false @CAT2_24605
give_weapon_to_char 136@ {weaponType} WeaponType.Pistol {ammo} 9999
task_kill_char_on_foot 136@ {target} $scplayer
set_char_relationship 136@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 136@ {handleOrTemplate} 166@
360@ = 1

:CAT2_24605
if 
  not is_car_dead 86@
goto_if_false @CAT2_24647
if 
  is_car_in_air_proper 86@
goto_if_false @CAT2_24647
53@ = 1.0

:CAT2_24647
set_playback_speed 86@ {speed} 53@
if 
  not is_car_dead 146@
goto_if_false @CAT2_24679
set_playback_speed 146@ {speed} 53@

:CAT2_24679
if 
  not is_car_dead 147@
goto_if_false @CAT2_24703
set_playback_speed 147@ {speed} 53@

:CAT2_24703
goto @CAT2_24772

:CAT2_24710
set_playback_speed 86@ {speed} 1.0
if 
  not is_car_dead 146@
goto_if_false @CAT2_24746
set_playback_speed 146@ {speed} 1.0

:CAT2_24746
if 
  not is_car_dead 147@
goto_if_false @CAT2_24772
set_playback_speed 147@ {speed} 1.0

:CAT2_24772
if 
  is_char_in_area_2d $catalina {leftBottomX} 1304.957 {leftBottomY} 252.9172 {rightTopX} 1275.84 {rightTopY} 241.8114 {drawSphere} False
goto_if_false @CAT2_24867
126@ = 2
add_char_decision_maker_event_response 38@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
set_lvar_int_to_lvar_int 127@ = TIMERA
127@ += 900

:CAT2_24867
if 
  126@ == 2
goto_if_false @CAT2_25010
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 127@
goto_if_false @CAT2_25010
if and
  not is_car_dead 86@
  not is_char_dead $catalina
goto_if_false @CAT2_25010
set_lvar_int_to_lvar_int 361@ = TIMERA
361@ += 1000
128@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} 86@
task_go_straight_to_coord -1 {x} 1286.969 {y} 247.1966 {z} 18.4062 {speed} MoveState.Run {time} -2
task_hands_up -1 {time} 40000
close_sequence_task 128@
perform_sequence_task $catalina {sequence} 128@
clear_sequence_task 128@
126@ = 3

:CAT2_25010
if 
  361@ > 0
goto_if_false @CAT2_25099
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 361@
goto_if_false @CAT2_25099
clear_prints 
print 'CAT2_16' {time} 6000 {flag} 1
40@ = add_blip_for_coord 867.6723 {y} -30.3543 {z} 62.1893
361@ = 0
126@ = 4

:CAT2_25099
if 
  126@ == 4
goto_if_false @CAT2_25670
if 
  not is_char_dead $catalina
goto_if_false @CAT2_25670
if or
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  is_char_shooting_in_area $scplayer {leftBottomX} 1389.021 {leftBottomY} 67.2039 {topRightX} 1232.6281 {topRightY} 407.097 {drawSphere} False
goto_if_false @CAT2_25670
mark_char_as_no_longer_needed 135@
mark_char_as_no_longer_needed 136@
mark_car_as_no_longer_needed 122@
mark_car_as_no_longer_needed 123@
mark_car_as_no_longer_needed 124@
if 
  does_char_exist 354@
goto_if_false @CAT2_25242
mark_char_as_no_longer_needed 354@

:CAT2_25242
if 
  not is_car_dead 353@
goto_if_false @CAT2_25289
if 
  not is_char_in_car $scplayer {vehicle} 353@
goto_if_false @CAT2_25282
mark_car_as_no_longer_needed 353@

:CAT2_25282
goto @CAT2_25294

:CAT2_25289
mark_car_as_no_longer_needed 147@

:CAT2_25294
if 
  not is_car_dead 146@
goto_if_false @CAT2_25341
if 
  not is_char_in_car $scplayer {vehicle} 146@
goto_if_false @CAT2_25334
mark_car_as_no_longer_needed 146@

:CAT2_25334
goto @CAT2_25346

:CAT2_25341
mark_car_as_no_longer_needed 146@

:CAT2_25346
if 
  not is_car_dead 147@
goto_if_false @CAT2_25393
if 
  not is_char_in_car $scplayer {vehicle} 147@
goto_if_false @CAT2_25386
mark_car_as_no_longer_needed 147@

:CAT2_25386
goto @CAT2_25398

:CAT2_25393
mark_car_as_no_longer_needed 147@

:CAT2_25398
if 
  not is_car_dead 88@
goto_if_false @CAT2_25445
if 
  not is_char_in_car $scplayer {vehicle} 88@
goto_if_false @CAT2_25438
mark_car_as_no_longer_needed 88@

:CAT2_25438
goto @CAT2_25450

:CAT2_25445
mark_car_as_no_longer_needed 88@

:CAT2_25450
if 
  not is_car_dead 86@
goto_if_false @CAT2_25497
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @CAT2_25490
mark_car_as_no_longer_needed 86@

:CAT2_25490
goto @CAT2_25502

:CAT2_25497
mark_car_as_no_longer_needed 86@

:CAT2_25502
362@ = 0

:CAT2_25509
if 
  8 > 362@
goto_if_false @CAT2_25605
if 
  not is_char_dead 129@(362@,8i)
goto_if_false @CAT2_25591
clear_char_tasks 129@(362@,8i)
mark_char_as_no_longer_needed 129@(362@,8i)
set_char_relationship 129@(362@,8i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 129@(362@,8i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special

:CAT2_25591
362@ += 1
goto @CAT2_25509

:CAT2_25605
35@ = 0
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT2_25651
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
set_group_decision_maker $Players_Group {handleOrTemplate} 37@

:CAT2_25651
364@ = 1
remove_blip 372@
126@ = 5

:CAT2_25670
if 
  126@ == 5
goto_if_false @CAT2_27481
if 
  365@ == 0
goto_if_false @CAT2_25803
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 144@
goto_if_false @CAT2_25803
362@ = 0

:CAT2_25732
if 
  8 > 362@
goto_if_false @CAT2_25796
if 
  not is_char_dead 129@(362@,8i)
goto_if_false @CAT2_25782
task_set_char_decision_maker 129@(362@,8i) {handleOrTemplate} 166@

:CAT2_25782
362@ += 1
goto @CAT2_25732

:CAT2_25796
365@ = 1

:CAT2_25803
if 
  not is_char_dead $catalina
goto_if_false @CAT2_27481
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_27314
if 
  366@ == 0
goto_if_false @CAT2_27314
366@ = 1
562@ = 1
$play_audio_global = 1
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT2_26612
if 
  $cat_counter == 0
goto_if_false @CAT2_26250
603@ = 2
604@ = 1
605@ = 1
606@ = 1
607@ = 1
608@ = 1
609@ = 2
610@ = 1
611@ = 1
612@ = 2
613@ = 1
set_lvar_text_label 454@s = 'CAT_DF'
set_lvar_text_label 456@s = 'CAT_DG'
set_lvar_text_label 458@s = 'CAT_DH'
set_lvar_text_label 460@s = 'CAT_DI'
set_lvar_text_label 462@s = 'CAT_DJ'
set_lvar_text_label 464@s = 'CAT_DK'
set_lvar_text_label 466@s = 'CAT_DL'
set_lvar_text_label 468@s = 'CAT_DM'
set_lvar_text_label 470@s = 'CAT_DN'
set_lvar_text_label 472@s = 'CAT_DO'
set_lvar_text_label 474@s = 'CAT_DP'
set_lvar_int_to_constant 534@ = 8631
set_lvar_int_to_constant 535@ = 8632
set_lvar_int_to_constant 536@ = 8633
set_lvar_int_to_constant 537@ = 8634
set_lvar_int_to_constant 538@ = 8635
set_lvar_int_to_constant 539@ = 8636
set_lvar_int_to_constant 540@ = 8637
set_lvar_int_to_constant 541@ = 8638
set_lvar_int_to_constant 542@ = 8639
set_lvar_int_to_constant 543@ = 8640
set_lvar_int_to_constant 544@ = 8641
560@ = 40
561@ = 11
goto @CAT2_26612

:CAT2_26250
603@ = 1
604@ = 2
605@ = 1
606@ = 1
607@ = 1
608@ = 1
609@ = 1
610@ = 2
611@ = 1
612@ = 1
613@ = 2
614@ = 1
set_lvar_text_label 454@s = 'CAT_DA'
set_lvar_text_label 456@s = 'CAT_DF'
set_lvar_text_label 458@s = 'CAT_DG'
set_lvar_text_label 460@s = 'CAT_DH'
set_lvar_text_label 462@s = 'CAT_DI'
set_lvar_text_label 464@s = 'CAT_DJ'
set_lvar_text_label 466@s = 'CAT_DK'
set_lvar_text_label 468@s = 'CAT_DL'
set_lvar_text_label 470@s = 'CAT_DM'
set_lvar_text_label 472@s = 'CAT_DN'
set_lvar_text_label 474@s = 'CAT_DO'
set_lvar_text_label 476@s = 'CAT_DP'
set_lvar_int_to_constant 534@ = 8626
set_lvar_int_to_constant 535@ = 8631
set_lvar_int_to_constant 536@ = 8632
set_lvar_int_to_constant 537@ = 8633
set_lvar_int_to_constant 538@ = 8634
set_lvar_int_to_constant 539@ = 8635
set_lvar_int_to_constant 540@ = 8636
set_lvar_int_to_constant 541@ = 8637
set_lvar_int_to_constant 542@ = 8638
set_lvar_int_to_constant 543@ = 8639
set_lvar_int_to_constant 544@ = 8640
set_lvar_int_to_constant 545@ = 8641
560@ = 40
561@ = 12

:CAT2_26612
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT2_27050
603@ = 1
604@ = 2
605@ = 1
606@ = 2
607@ = 2
608@ = 1
609@ = 2
610@ = 1
611@ = 2
612@ = 1
613@ = 1
614@ = 1
615@ = 1
616@ = 2
set_lvar_text_label 454@s = 'CAT_GA'
set_lvar_text_label 456@s = 'CAT_GB'
set_lvar_text_label 458@s = 'CAT_GC'
set_lvar_text_label 460@s = 'CAT_GD'
set_lvar_text_label 462@s = 'CAT_GE'
set_lvar_text_label 464@s = 'CAT_GF'
set_lvar_text_label 466@s = 'CAT_GG'
set_lvar_text_label 468@s = 'CAT_GH'
set_lvar_text_label 470@s = 'CAT_GI'
set_lvar_text_label 472@s = 'CAT_GJ'
set_lvar_text_label 474@s = 'CAT_GK'
set_lvar_text_label 476@s = 'CAT_GL'
set_lvar_text_label 478@s = 'CAT_GM'
set_lvar_text_label 480@s = 'CAT_GN'
set_lvar_int_to_constant 534@ = 8672
set_lvar_int_to_constant 535@ = 8673
set_lvar_int_to_constant 536@ = 8674
set_lvar_int_to_constant 537@ = 8675
set_lvar_int_to_constant 538@ = 8676
set_lvar_int_to_constant 539@ = 8677
set_lvar_int_to_constant 540@ = 8678
set_lvar_int_to_constant 541@ = 8679
set_lvar_int_to_constant 542@ = 8680
set_lvar_int_to_constant 543@ = 8681
set_lvar_int_to_constant 544@ = 8682
set_lvar_int_to_constant 545@ = 8683
set_lvar_int_to_constant 546@ = 8684
set_lvar_int_to_constant 547@ = 8685
560@ = 40
561@ = 14

:CAT2_27050
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT2_27314
603@ = 1
604@ = 2
605@ = 1
606@ = 2
607@ = 1
608@ = 2
609@ = 1
610@ = 1
set_lvar_text_label 454@s = 'CAT_OA'
set_lvar_text_label 456@s = 'CAT_OB'
set_lvar_text_label 458@s = 'CAT_OC'
set_lvar_text_label 460@s = 'CAT_OD'
set_lvar_text_label 462@s = 'CAT_OE'
set_lvar_text_label 464@s = 'CAT_OF'
set_lvar_text_label 466@s = 'CAT_OG'
set_lvar_text_label 468@s = 'CAT_OH'
set_lvar_int_to_constant 534@ = 8725
set_lvar_int_to_constant 535@ = 8726
set_lvar_int_to_constant 536@ = 8727
set_lvar_int_to_constant 537@ = 8728
set_lvar_int_to_constant 538@ = 8729
set_lvar_int_to_constant 539@ = 8730
set_lvar_int_to_constant 540@ = 8731
set_lvar_int_to_constant 541@ = 8732
560@ = 40
561@ = 8

:CAT2_27314
if and
  locate_char_any_means_3d $scplayer {x} 863.6693 {y} -30.852 {z} 62.1615 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  locate_char_any_means_3d $catalina {x} 863.6693 {y} -30.852 {z} 62.1615 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CAT2_27418
remove_blip 40@
set_player_control $player1 {state} False
56@ = 9

:CAT2_27418
if 
  35@ == 0
goto_if_false @CAT2_27481
if 
  not is_message_being_displayed 
goto_if_false @CAT2_27481
if 
  560@ == 0
goto_if_false @CAT2_27481
560@ = 37
35@ = 1

:CAT2_27481
if 
  145@ == 2
goto_if_false @CAT2_27681
if 
  not is_char_dead $catalina
goto_if_false @CAT2_27681
if 
  not locate_char_any_means_3d $catalina {x} 1287.5 {y} 249.2 {z} 19.22 {xRadius} 60.0 {yRadius} 60.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @CAT2_27681
145@ = 3
if 
  not is_car_dead 122@
goto_if_false @CAT2_27591
mark_car_as_no_longer_needed 122@

:CAT2_27591
if 
  not is_car_dead 123@
goto_if_false @CAT2_27612
mark_car_as_no_longer_needed 123@

:CAT2_27612
if 
  not is_car_dead 124@
goto_if_false @CAT2_27633
mark_car_as_no_longer_needed 124@

:CAT2_27633
137@ = 0

:CAT2_27640
if 
  6 > 137@
goto_if_false @CAT2_27681
mark_char_as_no_longer_needed 129@(137@,8i)
137@ += 1
goto @CAT2_27640

:CAT2_27681
if 
  121@ == 0
goto_if_false @CAT2_27900
if 
  not is_char_dead $catalina
goto_if_false @CAT2_27900
if 
  is_char_in_area_2d $catalina {leftBottomX} 1393.246 {leftBottomY} 233.1637 {rightTopX} 1325.073 {rightTopY} 190.1405 {drawSphere} False
goto_if_false @CAT2_27900
121@ = 1
if and
  not is_car_dead 122@
  not is_car_dead 123@
  not is_car_dead 124@
goto_if_false @CAT2_27900
start_playback_recorded_car 122@ {path} 156
start_playback_recorded_car 123@ {path} 158
start_playback_recorded_car 124@ {path} 159
freeze_car_position 122@ {state} False
freeze_car_position 123@ {state} False
freeze_car_position 124@ {state} False
switch_car_siren 122@ {state} True
switch_car_siren 123@ {state} True
switch_car_siren 124@ {state} True
set_lvar_int_to_lvar_int 138@ = TIMERA
138@ += 4000
set_lvar_int_to_lvar_int 139@ = TIMERA
139@ += 4000
set_lvar_int_to_lvar_int 140@ = TIMERA
140@ += 4000

:CAT2_27900
if 
  121@ == 1
goto_if_false @CAT2_28299
if and
  not is_car_dead 122@
  not is_car_dead 123@
  not is_car_dead 124@
  not is_char_dead $catalina
goto_if_false @CAT2_28299
137@ = 0

:CAT2_27956
if 
  6 > 137@
goto_if_false @CAT2_28299
141@ = 0
if 
  not is_char_dead 129@(137@,8i)
goto_if_false @CAT2_28285
if 
  is_char_sitting_in_any_car 129@(137@,8i)
goto_if_false @CAT2_28285
if 
  2 > 137@
goto_if_false @CAT2_28065
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 138@
goto_if_false @CAT2_28065
141@ = 1

:CAT2_28065
if and
  4 > 137@
  137@ > 1
goto_if_false @CAT2_28116
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 139@
goto_if_false @CAT2_28116
141@ = 1

:CAT2_28116
if 
  137@ > 3
goto_if_false @CAT2_28160
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 140@
goto_if_false @CAT2_28160
141@ = 1

:CAT2_28160
if 
  141@ == 1
goto_if_false @CAT2_28285
128@ = open_sequence_task 
if or
  137@ == 0
  137@ == 3
  137@ == 4
goto_if_false @CAT2_28221
task_toggle_duck -1 {state} True

:CAT2_28221
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 148@(137@,6f) {y} 154@(137@,6f) {z} 160@(137@,6f) {speed} MoveState.Run {time} -2
task_aim_gun_at_char -1 {target} $catalina {time} -2
close_sequence_task 128@
perform_sequence_task 129@(137@,8i) {sequence} 128@
clear_sequence_task 128@

:CAT2_28285
137@ += 1
goto @CAT2_27956

:CAT2_28299
if 
  56@ == 9
goto_if_false @CAT2_30045
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT2_28344
367@ = 3
559@ = 5

:CAT2_28344
if 
  367@ == 0
goto_if_false @CAT2_28404
alter_wanted_level $player1 {wantedLevel} 0
559@ = 5
555@ = 0
556@ = 0
$play_audio_global = 1
367@ = 1

:CAT2_28404
if 
  367@ == 1
goto_if_false @CAT2_29734
if 
  560@ == 0
goto_if_false @CAT2_29734
if 
  559@ == 1
goto_if_false @CAT2_29734
562@ = 0
if 
  $cat_counter == 0
goto_if_false @CAT2_28845
564@ = 1
565@ = 1
566@ = 1
567@ = 2
568@ = 2
569@ = 1
570@ = 1
571@ = 1
572@ = 2
573@ = 2
574@ = 2
575@ = 2
set_lvar_int_to_constant 495@ = 8642
set_lvar_int_to_constant 496@ = 8643
set_lvar_int_to_constant 497@ = 8644
set_lvar_int_to_constant 498@ = 8645
set_lvar_int_to_constant 499@ = 8646
set_lvar_int_to_constant 500@ = 8647
set_lvar_int_to_constant 501@ = 8648
set_lvar_int_to_constant 502@ = 8649
set_lvar_int_to_constant 503@ = 8650
set_lvar_int_to_constant 504@ = 8651
set_lvar_int_to_constant 505@ = 8652
set_lvar_int_to_constant 506@ = 8653
set_lvar_text_label 376@s = 'CAT_EA'
set_lvar_text_label 378@s = 'CAT_EB'
set_lvar_text_label 380@s = 'CAT_EC'
set_lvar_text_label 382@s = 'CAT_ED'
set_lvar_text_label 384@s = 'CAT_EE'
set_lvar_text_label 386@s = 'CAT_EF'
set_lvar_text_label 388@s = 'CAT_EG'
set_lvar_text_label 390@s = 'CAT_EH'
set_lvar_text_label 392@s = 'CAT_EI'
set_lvar_text_label 394@s = 'CAT_EJ'
set_lvar_text_label 396@s = 'CAT_EK'
set_lvar_text_label 398@s = 'CAT_EL'
560@ = 1
561@ = 12

:CAT2_28845
if 
  $cat_counter == 1
goto_if_false @CAT2_29051
564@ = 1
565@ = 2
566@ = 2
567@ = 2
568@ = 1
569@ = 1
set_lvar_int_to_constant 495@ = 8686
set_lvar_int_to_constant 496@ = 8687
set_lvar_int_to_constant 497@ = 8688
set_lvar_int_to_constant 498@ = 8689
set_lvar_int_to_constant 499@ = 8690
set_lvar_int_to_constant 500@ = 8691
set_lvar_text_label 376@s = 'CAT_HA'
set_lvar_text_label 378@s = 'CAT_HB'
set_lvar_text_label 380@s = 'CAT_HC'
set_lvar_text_label 382@s = 'CAT_HD'
set_lvar_text_label 384@s = 'CAT_HE'
set_lvar_text_label 386@s = 'CAT_HF'
560@ = 1
561@ = 6

:CAT2_29051
if 
  $cat_counter == 2
goto_if_false @CAT2_29170
564@ = 1
565@ = 1
566@ = 1
set_lvar_int_to_constant 495@ = 8714
set_lvar_int_to_constant 496@ = 8715
set_lvar_int_to_constant 497@ = 8716
set_lvar_text_label 376@s = 'CAT_MA'
set_lvar_text_label 378@s = 'CAT_MB'
set_lvar_text_label 380@s = 'CAT_MC'
560@ = 1
561@ = 3

:CAT2_29170
if 
  $cat_counter == 3
goto_if_false @CAT2_29376
564@ = 1
565@ = 2
566@ = 1
567@ = 1
568@ = 1
569@ = 1
set_lvar_int_to_constant 495@ = 8733
set_lvar_int_to_constant 496@ = 8734
set_lvar_int_to_constant 497@ = 8735
set_lvar_int_to_constant 498@ = 8736
set_lvar_int_to_constant 499@ = 8737
set_lvar_int_to_constant 500@ = 8738
set_lvar_text_label 376@s = 'CAT_PA'
set_lvar_text_label 378@s = 'CAT_PB'
set_lvar_text_label 380@s = 'CAT_PC'
set_lvar_text_label 382@s = 'CAT_PD'
set_lvar_text_label 384@s = 'CAT_PE'
set_lvar_text_label 386@s = 'CAT_PF'
560@ = 1
561@ = 6

:CAT2_29376
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29406
$x, $y, $z = get_char_coordinates $catalina

:CAT2_29406
clear_area $x {y} $y {z} $z {radius} 20.0 {clearParticles} True
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position 854.5403 {y} -22.1425 {z} 64.3802 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 855.2749 {y} -22.7951 {z} 64.1942 {switchStyle} SwitchType.JumpCut
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_29550
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29550
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT2_29550
$car = store_car_char_is_in_no_save $scplayer
warp_char_into_car $catalina {vehicle} $car

:CAT2_29550
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29727
if 
  not is_char_in_any_car $catalina
goto_if_false @CAT2_29654
set_char_coordinates $scplayer {x} 857.4263 {y} -29.5418 {z} 62.1858
set_char_coordinates $catalina {x} 858.4263 {y} -29.5418 {z} 62.1858
set_char_heading $catalina {heading} 161.446
set_char_heading $catalina {heading} 340.446
364@ = 0
remove_char_from_group $catalina

:CAT2_29654
368@ = open_sequence_task 
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_29690
$car = store_car_char_is_in_no_save $catalina
task_leave_car -1 {vehicle} $car

:CAT2_29690
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 99999
close_sequence_task 368@
perform_sequence_task $catalina {sequence} 368@
clear_sequence_task 368@

:CAT2_29727
367@ = 2

:CAT2_29734
if 
  367@ == 2
goto_if_false @CAT2_29929
if 
  560@ == 0
goto_if_false @CAT2_29929
if 
  559@ == 1
goto_if_false @CAT2_29929
if 
  not is_char_dead $catalina
goto_if_false @CAT2_29906
369@ = open_sequence_task 
if 
  is_char_in_any_car $catalina
goto_if_false @CAT2_29840
$car = store_car_char_is_in_no_save $catalina
task_leave_car -1 {vehicle} $car

:CAT2_29840
task_go_straight_to_coord -1 {x} 869.0271 {y} -28.2591 {z} 62.1893 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} 870.2891 {y} -25.0424 {z} 62.9858 {speed} MoveState.Walk {time} 5000
close_sequence_task 369@
perform_sequence_task $catalina {sequence} 369@
clear_sequence_task 369@

:CAT2_29906
367@ = 3
set_lvar_int_to_lvar_int 370@ = TIMERA
370@ += 5000

:CAT2_29929
if 
  367@ == 3
goto_if_false @CAT2_30045
if 
  not is_char_dead $catalina
goto_if_false @CAT2_30045
$task_status = get_script_task_status $catalina {taskId} 1560
if or
  is_int_var_equal_to_constant $task_status == 7
  is_int_lvar_greater_than_int_lvar TIMERA > 370@
goto_if_false @CAT2_30045
set_camera_behind_player 
restore_camera_jumpcut 
if 
  does_char_exist $catalina
goto_if_false @CAT2_30025
delete_char $catalina

:CAT2_30025
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
goto @CAT2_30343

:CAT2_30045
goto @CAT2_1838

:CAT2_30052
alter_wanted_level_no_drop $player1 {wantedLevel} 3
report_mission_audio_event_at_position 2312.094 {y} -9.6433 {z} 28.679 {soundId} ScriptSound.SoundCat2SecurityAlarm
560@ = 8
561@ = 3
if 
  not is_char_dead $catalina
goto_if_false @CAT2_30117
task_turn_char_to_face_char $catalina {target} $scplayer

:CAT2_30117
return 

:CAT2_30119
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
wait 2000
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_30341
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2303.9031 {leftBottomY} -18.2879 {leftBottomZ} 25.5416 {rightTopX} 2321.147 {rightTopY} 0.7716 {rightTopZ} 30.8122 {drawSphere} False
goto_if_false @CAT2_30341
if 
  not is_char_dead $scplayer
goto_if_false @CAT2_30341
do_fade 800 {direction} Fade.Out

:CAT2_30227
if 
  get_fading_status 
goto_if_false @CAT2_30251
wait 0
goto @CAT2_30227

:CAT2_30251
wait 700
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2303.9031 {leftBottomY} -18.2879 {leftBottomZ} 25.5416 {rightTopX} 2321.147 {rightTopY} 0.7716 {rightTopZ} 30.8122 {drawSphere} False
goto_if_false @CAT2_30334
set_char_coordinates $scplayer {x} 2300.1121 {y} -16.5618 {z} 25.4844
set_char_heading $scplayer {heading} 90.0

:CAT2_30334
do_fade 600 {direction} Fade.In

:CAT2_30341
return 

:CAT2_30343
$cat_counter += 1
$cat_getaway_dialogue += 1
set_int_stat StatId.PassedCat2 {value} 1
168@ += 10000
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'CAT_2'
$flag_cat_mission2_passed = 1
if 
  $cat_otb_banter == 1
goto_if_false @CAT2_30455
$cat_otb_banter = 2

:CAT2_30455
if 
  $cat_liquor_banter == 1
goto_if_false @CAT2_30480
$cat_liquor_banter = 2

:CAT2_30480
return 

:CAT2_30482
clear_mission_audio MissionAudioSlot.Slot3
if 
  does_object_exist $pc_door
goto_if_false @CAT2_30507
delete_object $pc_door

:CAT2_30507
$pc_door = create_object_no_offset #CR_DOOR_01 {x} 2322.845 {y} 8.304 {z} 25.483
dont_remove_object $pc_door
set_object_collision_damage_effect $pc_door {state} False
freeze_object_position $pc_door {state} True
if 
  does_object_exist $2661
goto_if_false @CAT2_30569
delete_object $2661

:CAT2_30569
$2661 = create_object_no_offset #CR_DOOR_01 {x} 2316.2329 {y} 0.712 {z} 25.742
dont_remove_object $2661
set_object_heading $2661 {heading} 270.0
freeze_object_position $2661 {state} True
set_object_collision_damage_effect $2661 {state} False
if 
  does_object_exist $2662
goto_if_false @CAT2_30641
delete_object $2662

:CAT2_30641
$2662 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -17.744 {z} 25.742
dont_remove_object $2662
freeze_object_position $2662 {state} True
set_object_collision_damage_effect $2662 {state} False
if 
  does_object_exist $2663
goto_if_false @CAT2_30703
delete_object $2663

:CAT2_30703
$2663 = create_object_no_offset #CR_DOOR_03 {x} 2304.2571 {y} -14.583 {z} 25.742
dont_remove_object $2663
freeze_object_position $2663 {state} True
set_object_heading $2663 {heading} 180.0
set_object_collision_damage_effect $2663 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 240
mark_model_as_no_longer_needed 76
mark_model_as_no_longer_needed 427
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed #KMB_ATM1
mark_model_as_no_longer_needed #KMB_ATM2
mark_model_as_no_longer_needed #KMB_ATM3
mark_model_as_no_longer_needed #MTSAFE
mark_model_as_no_longer_needed #CR_DOOR_01
mark_model_as_no_longer_needed #CR_DOOR_03
remove_car_recording 156
remove_car_recording 157
remove_car_recording 123
remove_car_recording 124
remove_car_recording 158
remove_car_recording 159
remove_car_recording 160
remove_car_recording 161
remove_car_recording 116
remove_car_recording 117
remove_car_recording 118
remove_car_recording 119
remove_car_recording 123
remove_car_recording 124
remove_car_recording 160
remove_car_recording 161
remove_car_recording 156
remove_car_recording 157
remove_car_recording 158
remove_car_recording 159
remove_animation "SHOP"
remove_animation "MISC"
remove_animation "OTB"
remove_animation "GANGS"
remove_animation "ROB_BANK"
switch_roads_on 2344.5181 {leftBottomY} 36.1468 {leftBottomZ} 36.0359 {rightTopX} 2269.718 {rightTopY} -44.376 {rightTopZ} 23.0569
remove_blip 372@
remove_blip 40@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
mark_object_as_no_longer_needed 76@
mark_object_as_no_longer_needed 77@
mark_object_as_no_longer_needed 78@
if 
  not is_car_dead 85@
goto_if_false @CAT2_31093
mark_car_as_no_longer_needed 85@

:CAT2_31093
if 
  not is_car_dead 86@
goto_if_false @CAT2_31114
mark_car_as_no_longer_needed 86@

:CAT2_31114
if 
  not is_car_dead 88@
goto_if_false @CAT2_31135
mark_car_as_no_longer_needed 88@

:CAT2_31135
if 
  not is_car_dead 90@
goto_if_false @CAT2_31156
mark_car_as_no_longer_needed 90@

:CAT2_31156
if 
  not is_char_dead 92@
goto_if_false @CAT2_31184
freeze_char_position 92@ {state} False
mark_char_as_no_longer_needed 92@

:CAT2_31184
if 
  not is_char_dead 93@
goto_if_false @CAT2_31212
freeze_char_position 93@ {state} False
mark_char_as_no_longer_needed 93@

:CAT2_31212
if 
  not is_char_dead 87@
goto_if_false @CAT2_31240
freeze_char_position 87@ {state} False
mark_char_as_no_longer_needed 87@

:CAT2_31240
if 
  not is_char_dead 89@
goto_if_false @CAT2_31268
freeze_char_position 89@ {state} False
mark_char_as_no_longer_needed 89@

:CAT2_31268
if 
  not is_char_dead 91@
goto_if_false @CAT2_31296
freeze_char_position 91@ {state} False
mark_char_as_no_longer_needed 91@

:CAT2_31296
if 
  not is_char_dead 94@
goto_if_false @CAT2_31317
mark_char_as_no_longer_needed 94@

:CAT2_31317
remove_sound 82@
$onmission = 0
$timer_mobile_start = get_game_timer 
set_wanted_multiplier 1.0
mission_has_finished 
return 

:CAT2_31345
if 
  364@ == 1
goto_if_false @CAT2_31944
if 
  371@ == 1
goto_if_false @CAT2_31463
if 
  not is_char_dead $catalina
goto_if_false @CAT2_31463
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT2_31463
371@ = 0
372@ = add_blip_for_char $catalina
set_blip_as_friendly 372@ {state} True
change_blip_display 40@ {display} BlipDisplay.Neither
clear_prints 
print 'CAT2_14' {time} 4000 {flag} 1

:CAT2_31463
if 
  371@ == 0
goto_if_false @CAT2_31592
if 
  not is_char_dead $catalina
goto_if_false @CAT2_31592
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT2_31530
371@ = 1
goto @CAT2_31592

:CAT2_31530
if 
  locate_char_any_means_char_2d $scplayer {target} $catalina {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CAT2_31592
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
remove_blip 372@
change_blip_display 40@ {display} BlipDisplay.Both
371@ = 1

:CAT2_31592
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT2_31725
if 
  373@ == 0
goto_if_false @CAT2_31718
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
clear_group_decision_maker_event_response 37@ {event} Event.Damage
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 37@ {event} Event.GunAimedAt
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageCollision
clear_group_decision_maker_event_response 37@ {event} Event.SeenCop
add_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
373@ = 1

:CAT2_31718
goto @CAT2_31944

:CAT2_31725
if 
  373@ == 1
goto_if_false @CAT2_31944
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
clear_group_decision_maker_event_response 37@ {event} Event.Damage
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageWeapon
clear_group_decision_maker_event_response 37@ {event} Event.GunAimedAt
clear_group_decision_maker_event_response 37@ {event} Event.VehicleDamageCollision
clear_group_decision_maker_event_response 37@ {event} Event.SeenCop
clear_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate
add_group_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 37@ {event} Event.Damage {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 37@ {event} Event.GunAimedAt {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_group_decision_maker_event_response 37@ {event} Event.SeenCop {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
373@ = 0

:CAT2_31944
return 

:CAT2_31946
switch_start 559@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CAT2_34497 {caseNum1} 0 {caseLabel1} @CAT2_32009 {caseNum2} 1 {caseLabel2} @CAT2_33228 {caseNum3} 2 {caseLabel3} @CAT2_34095 {caseNum4} 3 {caseLabel4} @CAT2_34194 {caseNum5} 4 {caseLabel5} @CAT2_34270 {caseNum6} 5 {caseLabel6} @CAT2_34407 {caseNum7} -1 {caseLabel7} @CAT2_34497

:CAT2_32009
set_lvar_text_label 374@s = 'CAT4_BI'
set_lvar_text_label 376@s = 'CAT4_CA'
set_lvar_int_to_constant 495@ = 9621
set_lvar_text_label 378@s = 'CAT4_CB'
set_lvar_int_to_constant 496@ = 9622
set_lvar_text_label 380@s = 'CAT4_CD'
set_lvar_int_to_constant 497@ = 9624
set_lvar_text_label 382@s = 'CAT4_CE'
set_lvar_int_to_constant 498@ = 9625
set_lvar_text_label 384@s = 'CAT4_CF'
set_lvar_int_to_constant 499@ = 9626
set_lvar_text_label 386@s = 'CAT4_CG'
set_lvar_int_to_constant 500@ = 9627
set_lvar_text_label 388@s = 'CAT4_CH'
set_lvar_int_to_constant 501@ = 9628
set_lvar_text_label 390@s = 'CAT4_EA'
set_lvar_int_to_constant 502@ = 9642
set_lvar_text_label 392@s = 'CAT4_EC'
set_lvar_int_to_constant 503@ = 9644
set_lvar_text_label 394@s = 'CAT4_ED'
set_lvar_int_to_constant 504@ = 9645
set_lvar_text_label 396@s = 'CAT4_BA'
set_lvar_int_to_constant 505@ = 9610
set_lvar_text_label 398@s = 'CAT4_AB'
set_lvar_int_to_constant 506@ = 9601
set_lvar_text_label 400@s = 'CAT4_AC'
set_lvar_int_to_constant 507@ = 9602
set_lvar_text_label 402@s = 'CAT4_AD'
set_lvar_int_to_constant 508@ = 9603
set_lvar_text_label 404@s = 'CAT4_AE'
set_lvar_int_to_constant 509@ = 9604
set_lvar_text_label 406@s = 'CAT4_FB'
set_lvar_int_to_constant 510@ = 9647
set_lvar_text_label 408@s = 'CAT4_AF'
set_lvar_int_to_constant 511@ = 9605
set_lvar_text_label 410@s = 'CAT4_FD'
set_lvar_int_to_constant 512@ = 9649
set_lvar_text_label 412@s = 'CAT4_GB'
set_lvar_int_to_constant 513@ = 9651
set_lvar_text_label 414@s = 'CAT4_HH'
set_lvar_int_to_constant 514@ = 9659
set_lvar_text_label 416@s = 'CAT4_HF'
set_lvar_int_to_constant 515@ = 9657
set_lvar_text_label 418@s = 'CAT4_AG'
set_lvar_int_to_constant 516@ = 9606
set_lvar_text_label 420@s = 'CAT4_AH'
set_lvar_int_to_constant 517@ = 9607
set_lvar_text_label 422@s = 'CAT4_HI'
set_lvar_int_to_constant 518@ = 9660
set_lvar_text_label 424@s = 'CAT4_BF'
set_lvar_int_to_constant 519@ = 9615
set_lvar_text_label 426@s = 'CAT4_KF'
set_lvar_int_to_constant 520@ = 9669
set_lvar_text_label 428@s = 'CAT4_HB'
set_lvar_int_to_constant 521@ = 9653
set_lvar_text_label 430@s = 'CAT4_HG'
set_lvar_int_to_constant 522@ = 9658
set_lvar_text_label 432@s = 'CAT4_AJ'
set_lvar_int_to_constant 523@ = 9609
set_lvar_text_label 434@s = 'CAT4_JA'
set_lvar_int_to_constant 524@ = 9662
set_lvar_text_label 436@s = 'CAT4_JB'
set_lvar_int_to_constant 525@ = 9663
set_lvar_text_label 438@s = 'CAT4_KA'
set_lvar_int_to_constant 526@ = 9664
set_lvar_text_label 440@s = 'CAT4_KB'
set_lvar_int_to_constant 527@ = 9665
set_lvar_text_label 442@s = 'CAT4_KC'
set_lvar_int_to_constant 528@ = 9666
set_lvar_text_label 444@s = 'CAT4_KD'
set_lvar_int_to_constant 529@ = 9667
set_lvar_text_label 446@s = 'CAT4_KE'
set_lvar_int_to_constant 530@ = 9668
set_lvar_text_label 448@s = 'CAT3_EC'
set_lvar_int_to_constant 531@ = 9421
set_lvar_text_label 450@s = 'CAT_GJ'
set_lvar_int_to_constant 532@ = 8681
set_lvar_text_label 452@s = 'CAT4_BK'
set_lvar_int_to_constant 533@ = 9620
564@ = 1
565@ = 2
566@ = 2
567@ = 1
568@ = 1
569@ = 1
570@ = 2
571@ = 2
572@ = 1
573@ = 1
574@ = 3
575@ = 4
576@ = 3
577@ = 4
578@ = 3
579@ = 1
580@ = 0
581@ = 1
582@ = 1
583@ = 1
584@ = 5
585@ = 5
586@ = 1
587@ = 1
588@ = 6
589@ = 1
590@ = 1
591@ = 1
592@ = 6
593@ = 1
594@ = 1
595@ = 0
596@ = 0
597@ = 0
598@ = 0
599@ = 0
600@ = 1
601@ = 1
602@ = 0
set_lvar_int_to_var_int 624@ = $catalina
set_lvar_int_to_var_int 625@ = $scplayer
set_lvar_int_to_var_int 628@ = $scplayer
set_lvar_int_to_var_int 629@ = $scplayer
559@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 495@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 496@
555@ = 1
556@ = 2
goto @CAT2_34497

:CAT2_33228
if 
  560@ <> 0
goto_if_false @CAT2_34088
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 639@
goto_if_false @CAT2_34088
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @CAT2_34088
if 
  is_int_lvar_equal_to_int_lvar 555@ == 560@
goto_if_false @CAT2_33317
557@ = 1
goto @CAT2_33380

:CAT2_33317
if 
  is_int_lvar_equal_to_int_lvar 556@ == 560@
goto_if_false @CAT2_33350
557@ = 2
goto @CAT2_33380

:CAT2_33350
557@ = 1
set_lvar_int_to_lvar_int 555@ = 560@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 494@(560@,60i)

:CAT2_33380
if 
  has_mission_audio_loaded 557@
goto_if_false @CAT2_34076
set_lvar_int_to_lvar_int 631@ = 563@(560@,60i)
set_lvar_int_to_lvar_int 632@ = 623@(631@,7i)
if 
  638@ <> 1
goto_if_false @CAT2_33608
635@ = 1
637@ = 0

:CAT2_33452
if 
  7 > 635@
goto_if_false @CAT2_33608
set_lvar_int_to_lvar_int 636@ = 623@(635@,7i)
if 
  636@ <> 0
goto_if_false @CAT2_33594
if 
  not is_int_lvar_equal_to_int_lvar 636@ == 632@
goto_if_false @CAT2_33594
if 
  not is_char_dead 632@
goto_if_false @CAT2_33594
if 
  not is_char_dead 636@
goto_if_false @CAT2_33594
if 
  locate_char_any_means_char_3d 632@ {target} 636@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CAT2_33594
637@ += 1

:CAT2_33594
635@ += 1
goto @CAT2_33452

:CAT2_33608
if or
  638@ == 1
  637@ > 0
  563@(560@,60i) == 0
goto_if_false @CAT2_34062
if 
  563@(560@,60i) <> 0
goto_if_false @CAT2_33794
if 
  not is_char_dead 632@
goto_if_false @CAT2_33794
if 
  $play_audio_global == 0
goto_if_false @CAT2_33708
attach_mission_audio_to_char 557@ {handle} 632@

:CAT2_33708
if 
  not is_char_talking 632@
goto_if_false @CAT2_33746
630@ = 1
start_char_facial_talk 632@ {duration} 15000
goto @CAT2_33753

:CAT2_33746
disable_char_speech 632@ {stopNow} False

:CAT2_33753
if 
  632@ <> 0
goto_if_false @CAT2_33794
if 
  not is_char_dead 632@
goto_if_false @CAT2_33794
shut_char_up_for_scripted_speech 632@ {state} True

:CAT2_33794
if 
  563@(560@,60i) == 0
goto_if_false @CAT2_33823
630@ = 1

:CAT2_33823
if 
  562@ == 1
goto_if_false @CAT2_33864
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT2_33864
630@ = 0

:CAT2_33864
if 
  630@ == 1
goto_if_false @CAT2_34055
play_mission_audio 557@
clear_prints 
print 374@(560@,60s) {time} 10000 {flag} 1
559@ += 1
630@ = 0
560@ += 1
set_lvar_int_to_lvar_int 558@ = 560@
if 
  494@(560@,60i) <> 0
goto_if_false @CAT2_34055
if 
  557@ == 1
goto_if_false @CAT2_34017
if 
  not is_int_lvar_equal_to_int_lvar 556@ == 560@
goto_if_false @CAT2_34010
load_mission_audio MissionAudioSlot.Slot2 {audioId} 494@(560@,60i)
set_lvar_int_to_lvar_int 556@ = 560@

:CAT2_34010
goto @CAT2_34055

:CAT2_34017
if 
  not is_int_lvar_equal_to_int_lvar 555@ == 560@
goto_if_false @CAT2_34055
load_mission_audio MissionAudioSlot.Slot1 {audioId} 494@(560@,60i)
set_lvar_int_to_lvar_int 555@ = 560@

:CAT2_34055
goto @CAT2_34069

:CAT2_34062
559@ = 6

:CAT2_34069
goto @CAT2_34088

:CAT2_34076
load_mission_audio 557@ {audioId} 494@(560@,60i)

:CAT2_34088
goto @CAT2_34497

:CAT2_34095
if 
  has_mission_audio_finished 557@
goto_if_false @CAT2_34148
if 
  not is_char_dead 632@
goto_if_false @CAT2_34134
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34134
559@ += 1
goto @CAT2_34187

:CAT2_34148
if 
  does_char_exist 632@
goto_if_false @CAT2_34187
if 
  is_char_dead 632@
goto_if_false @CAT2_34187
559@ += 1

:CAT2_34187
goto @CAT2_34497

:CAT2_34194
if 
  not is_char_dead 632@
goto_if_false @CAT2_34217
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34217
clear_mission_audio 557@
554@(557@,3i) = 0
clear_prints 
if 
  not is_char_dead 632@
goto_if_false @CAT2_34256
enable_char_speech 632@

:CAT2_34256
559@ += 1
goto @CAT2_34497

:CAT2_34270
if 
  not is_char_dead 632@
goto_if_false @CAT2_34293
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34293
560@ += 1
if 
  494@(560@,60i) <> 0
goto_if_false @CAT2_34346
load_mission_audio 557@ {audioId} 494@(560@,60i)
set_lvar_int_to_lvar_int 554@(557@,3i) = 560@

:CAT2_34346
561@ -= 1
if 
  561@ <= 0
goto_if_false @CAT2_34385
560@ = 0
goto @CAT2_34393

:CAT2_34385
set_lvar_int_to_lvar_int 560@ = 558@

:CAT2_34393
559@ = 1
goto @CAT2_34497

:CAT2_34407
if 
  not is_char_dead 632@
goto_if_false @CAT2_34430
shut_char_up_for_scripted_speech 632@ {state} False

:CAT2_34430
559@ = 1
560@ = 0
561@ = 0
clear_mission_audio 557@
554@(557@,3i) = 0
clear_prints 
if 
  not is_char_dead 632@
goto_if_false @CAT2_34490
enable_char_speech 632@

:CAT2_34490
goto @CAT2_34497

:CAT2_34497
return 

//-------------Mission 43---------------
// Originally: Tanker Commander

:CAT3
script_name 'CAT3'
gosub @CAT3_1452
if 
  has_deatharrest_been_executed 
goto_if_false @CAT3_38
gosub @CAT3_17048

:CAT3_38
gosub @CAT3_17250
terminate_this_script 

:CAT3_47
request_model 67
request_model 95
request_model 514
request_model 584
request_model 475
load_all_models_now 

:CAT3_72
if or
  not has_model_loaded 67
  not has_model_loaded 95
  not has_model_loaded 514
  not has_model_loaded 584
  not has_model_loaded 475
goto_if_false @CAT3_117
wait 0
goto @CAT3_72

:CAT3_117
return 

:CAT3_119
request_animation "MISC"
request_model 352
request_model 349
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32600
load_special_character 1 {modelName} 'CAT'
load_all_models_now 

:CAT3_159
if or
  not has_animation_loaded "MISC"
  not has_model_loaded 352
  not has_model_loaded 349
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_special_character_loaded 1
goto_if_false @CAT3_207
wait 0
goto @CAT3_159

:CAT3_207
if 
  not does_char_exist $catalina
goto_if_false @CAT3_249
$catalina = create_char PedType.CivFemale {modelId} 290 {x} 53@ {y} 54@ {z} 55@
goto @CAT3_273

:CAT3_249
delete_char $catalina
$catalina = create_char PedType.CivFemale {modelId} 290 {x} 53@ {y} 54@ {z} 55@

:CAT3_273
if 
  not is_char_dead $catalina
goto_if_false @CAT3_299
give_weapon_to_char $catalina {weaponType} WeaponType.Shotgun {ammo} 30000

:CAT3_299
return 
309@ = add_blip_for_char $catalina
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
mark_model_as_no_longer_needed 348
return 

:CAT3_330
313@ = 664.21
315@ = -569.54
317@ = 15.37
319@ = 165.23
clear_area 313@ {y} 315@ {z} 317@ {radius} 3.0 {clearParticles} True
310@ = create_char PedType.CivMale {modelId} 67 {x} 313@ {y} 315@ {z} 317@
give_weapon_to_char 310@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 310@ {heading} 319@
set_char_health 310@ {health} 2000
set_char_can_be_shot_in_vehicle 310@ {state} False
set_char_proofs 310@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
314@ = 664.9634
316@ = -566.7849
318@ = 15.3359
320@ = 139.1057
clear_area 314@ {y} 316@ {z} 318@ {radius} 3.0 {clearParticles} True
311@ = create_char PedType.CivMale {modelId} 95 {x} 314@ {y} 316@ {z} 318@
set_char_heading 311@ {heading} 320@
set_char_health 311@ {health} 2000
set_char_can_be_shot_in_vehicle 311@ {state} False
set_char_proofs 311@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
return 
mark_model_as_no_longer_needed 67
return 

:CAT3_576
request_model 15

:CAT3_580
if 
  not has_model_loaded 15
goto_if_false @CAT3_606
wait 0
goto @CAT3_580

:CAT3_606
323@ = -78.4672
324@ = -1134.739
325@ = 0.0733
326@ = 326.2953
clear_area 323@ {y} 324@ {z} 325@ {radius} 3.0 {clearParticles} True
322@ = create_char PedType.CivMale {modelId} 15 {x} 323@ {y} 324@ {z} 325@
set_char_heading 322@ {heading} 326@
return 
244@ = create_char PedType.CivMale {modelId} 15 {x} 323@ {y} 324@ {z} 325@

:CAT3_710
329@ = 657.49
330@ = -585.13
331@ = 16.36
332@ = 170.66
clear_area 329@ {y} 330@ {z} 331@ {radius} 15.0 {clearParticles} True
327@ = create_car 514 {x} 329@ {y} 330@ {z} 331@
set_car_heading 327@ {heading} 332@
set_can_burst_car_tyres 327@ {state} False
suppress_car_model 514
suppress_car_model 403
set_car_proofs 327@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_load_collision_for_car_flag 327@ {state} False
return 
308@ = create_car 403 {x} 329@ {y} 330@ {z} 331@

:CAT3_851
336@ = 667.49
337@ = -583.13
338@ = 16.36
339@ = 184.66
clear_area 336@ {y} 337@ {z} 338@ {radius} 15.0 {clearParticles} True
334@ = create_car 584 {x} 336@ {y} 337@ {z} 338@
set_car_heading 334@ {heading} 339@
set_car_health 334@ {health} 1250
set_car_proofs 334@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_can_burst_car_tyres 334@ {state} False
set_load_collision_for_car_flag 334@ {state} False
return 
335@ = add_blip_for_car 334@

:CAT3_981
342@ = 667.54
343@ = -545.97
344@ = 15.09
345@ = 96.19
clear_area 342@ {y} 343@ {z} 344@ {radius} 3.0 {clearParticles} True
340@ = create_car 475 {x} 342@ {y} 343@ {z} 344@
set_car_heading 340@ {heading} 345@
set_car_cruise_speed 340@ {maxSpeed} 50.0
set_car_proofs 340@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 340@ {lockStatus} CarLock.Locked
set_can_burst_car_tyres 340@ {state} False
set_load_collision_for_car_flag 340@ {state} False
freeze_car_position 340@ {state} True
return 

:CAT3_1119
request_model 543

:CAT3_1124
if 
  not has_model_loaded 543
goto_if_false @CAT3_1151
wait 0
goto @CAT3_1124

:CAT3_1151
348@ = -87.9239
349@ = -1160.597
350@ = 1.1091
351@ = 170.4884
clear_area 348@ {y} 349@ {z} 350@ {radius} 3.0 {clearParticles} True
346@ = create_car 543 {x} 348@ {y} 349@ {z} 350@
set_car_heading 346@ {heading} 351@
set_car_proofs 346@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
return 

:CAT3_1251
request_model 468
request_car_recording 189

:CAT3_1261
if or
  not has_model_loaded 468
  not has_car_recording_been_loaded 189
goto_if_false @CAT3_1293
wait 0
goto @CAT3_1261

:CAT3_1293
353@ = -88.1347
354@ = -1127.397
355@ = 0.0847
356@ = 348.4666
clear_area 353@ {y} 354@ {z} 355@ {radius} 3.0 {clearParticles} True
352@ = create_car 468 {x} 353@ {y} 354@ {z} 355@
set_car_heading 352@ {heading} 356@
if 
  not is_char_dead $catalina
goto_if_false @CAT3_1450
warp_char_into_car $catalina {vehicle} 352@
task_look_at_char $catalina {target} $scplayer {time} -1
set_char_coordinates $scplayer {x} -86.3344 {y} -1127.316 {z} 0.0781
set_char_heading $scplayer {heading} 6.874
task_look_at_char $scplayer {target} $catalina {time} -1

:CAT3_1450
return 

:CAT3_1452
$onmission = 1
wait 0
load_mission_text 'CAT'
34@ = 5000
35@ = 0
36@ = 1
37@ = 0
38@ = 0
39@ = 0
307@ = 1500
40@ = 0
301@ = 0
305@ = 1
303@ = 1
304@ = 2
302@ = 0
set_lvar_text_label 134@s = 'CAT3_AA'
set_lvar_text_label 136@s = 'CAT3_AB'
set_lvar_text_label 138@s = 'CAT3_AC'
set_lvar_text_label 140@s = 'CAT3_AD'
set_lvar_text_label 142@s = 'CAT3_AE'
set_lvar_text_label 144@s = 'CAT3_AF'
set_lvar_text_label 146@s = 'CAT3_AG'
set_lvar_text_label 148@s = 'CAT3_BA'
set_lvar_text_label 150@s = 'CAT3_BB'
set_lvar_text_label 152@s = 'CAT3_BC'
set_lvar_text_label 154@s = 'CAT3_BD'
set_lvar_text_label 156@s = 'CAT3_CA'
set_lvar_text_label 158@s = 'CAT3_CB'
set_lvar_text_label 160@s = 'CAT3_CC'
set_lvar_text_label 162@s = 'CAT3_CD'
set_lvar_text_label 164@s = 'CAT3_DA'
set_lvar_text_label 166@s = 'CAT3_DB'
set_lvar_text_label 168@s = 'CAT3_DC'
set_lvar_text_label 170@s = 'CAT3_DD'
set_lvar_text_label 172@s = 'CAT3_EA'
set_lvar_text_label 174@s = 'CAT3_EB'
set_lvar_text_label 176@s = 'CAT3_EC'
set_lvar_text_label 178@s = 'CAT3_ED'
set_lvar_text_label 180@s = 'CAT3_EE'
set_lvar_text_label 182@s = 'CAT3_EF'
set_lvar_text_label 184@s = 'CAT3_EG'
set_lvar_text_label 186@s = 'CAT3_FA'
set_lvar_text_label 188@s = 'CAT3_FB'
set_lvar_text_label 190@s = 'CAT3_FC'
set_lvar_text_label 192@s = 'CAT3_FD'
set_lvar_text_label 194@s = 'CAT3_FE'
set_lvar_text_label 196@s = 'CAT3_FF'
set_lvar_text_label 198@s = 'CAT3_GA'
set_lvar_text_label 200@s = 'CAT3_GB'
set_lvar_text_label 202@s = 'CAT3_GC'
set_lvar_text_label 204@s = 'CAT3_GD'
set_lvar_text_label 206@s = 'CAT3_GE'
set_lvar_text_label 208@s = 'CAT3_GF'
set_lvar_text_label 210@s = 'CAT3_GG'
set_lvar_text_label 212@s = 'CAT3_HA'
set_lvar_text_label 214@s = 'CAT3_HB'
set_lvar_text_label 216@s = 'CAT3_HC'
set_lvar_text_label 218@s = 'CAT3_JA'
set_lvar_text_label 220@s = 'CAT3_JB'
set_lvar_text_label 222@s = 'CAT3_JC'
set_lvar_text_label 224@s = 'CAT3_JD'
set_lvar_text_label 226@s = 'CAT3_JE'
set_lvar_text_label 228@s = 'CAT3_JF'
set_lvar_text_label 230@s = 'CAT3_JG'
set_lvar_text_label 232@s = 'CAT3_JH'
set_lvar_text_label 234@s = 'CAT3_JJ'
set_lvar_text_label 236@s = 'CAT3_JK'
set_lvar_text_label 238@s = 'CATX_UJ'
set_lvar_text_label 240@s = 'CATX_UK'
set_lvar_text_label 242@s = 'CAT_PF'
set_lvar_int_to_constant 246@ = 9400
set_lvar_int_to_constant 247@ = 9401
set_lvar_int_to_constant 248@ = 9402
set_lvar_int_to_constant 249@ = 9403
set_lvar_int_to_constant 250@ = 9404
set_lvar_int_to_constant 251@ = 9405
set_lvar_int_to_constant 252@ = 9406
set_lvar_int_to_constant 253@ = 9407
set_lvar_int_to_constant 254@ = 9408
set_lvar_int_to_constant 255@ = 9409
set_lvar_int_to_constant 256@ = 9410
set_lvar_int_to_constant 257@ = 9411
set_lvar_int_to_constant 258@ = 9412
set_lvar_int_to_constant 259@ = 9413
set_lvar_int_to_constant 260@ = 9414
set_lvar_int_to_constant 261@ = 9415
set_lvar_int_to_constant 262@ = 9416
set_lvar_int_to_constant 263@ = 9417
set_lvar_int_to_constant 264@ = 9418
set_lvar_int_to_constant 265@ = 9419
set_lvar_int_to_constant 266@ = 9420
set_lvar_int_to_constant 267@ = 9421
set_lvar_int_to_constant 268@ = 9422
set_lvar_int_to_constant 269@ = 9423
set_lvar_int_to_constant 270@ = 9424
set_lvar_int_to_constant 271@ = 9425
set_lvar_int_to_constant 272@ = 9426
set_lvar_int_to_constant 273@ = 9427
set_lvar_int_to_constant 274@ = 9428
set_lvar_int_to_constant 275@ = 9429
set_lvar_int_to_constant 276@ = 9430
set_lvar_int_to_constant 277@ = 9431
set_lvar_int_to_constant 278@ = 9432
set_lvar_int_to_constant 279@ = 9433
set_lvar_int_to_constant 280@ = 9434
set_lvar_int_to_constant 281@ = 9435
set_lvar_int_to_constant 282@ = 9436
set_lvar_int_to_constant 283@ = 9437
set_lvar_int_to_constant 284@ = 9438
set_lvar_int_to_constant 285@ = 9439
set_lvar_int_to_constant 286@ = 9440
set_lvar_int_to_constant 287@ = 9441
set_lvar_int_to_constant 288@ = 9442
set_lvar_int_to_constant 289@ = 9443
set_lvar_int_to_constant 290@ = 9444
set_lvar_int_to_constant 291@ = 9445
set_lvar_int_to_constant 292@ = 9446
set_lvar_int_to_constant 293@ = 9447
set_lvar_int_to_constant 294@ = 9448
set_lvar_int_to_constant 295@ = 9449
set_lvar_int_to_constant 296@ = 9450
set_lvar_int_to_constant 297@ = 9451
set_lvar_int_to_constant 298@ = 9897
set_lvar_int_to_constant 299@ = 9898
set_lvar_int_to_constant 300@ = 8738
50@ = -43.7625
51@ = -1141.8051
52@ = 0.0781
53@ = 660.3846
54@ = -571.9213
55@ = 15.3465
65@ = 659.5142
75@ = -571.65
85@ = 17.0104
95@ = 660.4576
105@ = -571.3304
115@ = 16.9229
66@ = 661.7569
76@ = -570.6351
86@ = 17.1184
96@ = 662.4741
106@ = -569.9394
116@ = 17.0783
67@ = 658.7903
77@ = -568.8011
87@ = 17.1657
97@ = 659.5721
107@ = -569.3959
117@ = 16.9783
68@ = 659.4771
78@ = -568.5789
88@ = 17.0879
98@ = 660.1776
108@ = -569.2756
118@ = 16.9335
69@ = 655.2368
79@ = -601.8433
89@ = 16.4703
99@ = 654.2847
109@ = -601.6681
119@ = 16.2199
70@ = -73.4246
80@ = -1132.7159
90@ = 1.4933
100@ = -74.3653
110@ = -1133.049
120@ = 1.5579
71@ = -80.0272
81@ = -1133.954
91@ = 1.2517
101@ = -79.0308
111@ = -1133.9561
121@ = 1.3367
72@ = -76.5131
82@ = -1135.434
92@ = 1.6855
102@ = -75.8151
112@ = -1134.719
122@ = 1.711
321@ = 35.0
gosub @CAT3_119
gosub @CAT3_47
gosub @CAT3_330
gosub @CAT3_710
gosub @CAT3_851
gosub @CAT3_981
set_player_group_recruitment $player1 {state} False
load_scene_in_direction 53@ {y} 54@ {z} 55@ {heading} 295.0
set_player_control $player1 {state} False
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT3_3446
warp_char_from_car_to_coord $scplayer {x} 659.6722 {y} -569.272 {z} 15.3465
goto @CAT3_3466

:CAT3_3446
set_char_coordinates $scplayer {x} 659.6722 {y} -569.272 {z} 15.3465

:CAT3_3466
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_3659
if 
  is_char_in_any_car $catalina
goto_if_false @CAT3_3524
warp_char_from_car_to_coord $catalina {x} 53@ {y} 54@ {z} 55@
goto @CAT3_3538

:CAT3_3524
set_char_coordinates $catalina {x} 53@ {y} 54@ {z} 55@

:CAT3_3538
task_turn_char_to_face_char $scplayer {target} 310@
task_turn_char_to_face_char 310@ {target} $catalina
set_char_heading $scplayer {heading} 177.1965
hide_char_weapon_for_scripted_cutscene 310@ {state} True
set_fixed_camera_position 65@ {y} 75@ {z} 85@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 95@ {y} 105@ {z} 115@ {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
remove_char_from_group $catalina
37@ = 1
task_aim_gun_at_char $catalina {target} 310@ {time} 20000
task_stay_in_same_place $catalina {state} True
task_stay_in_same_place 310@ {state} True
301@ = 1

:CAT3_3659
set_fading_colour 0 {g} 0 {b} 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
set_car_density_multiplier 0.5

:CAT3_3696
wait 0
if 
  301@ <> 0
goto_if_false @CAT3_4141
if 
  302@ == 0
goto_if_false @CAT3_3764
if 
  has_mission_audio_loaded 304@
goto_if_false @CAT3_3757
clear_mission_audio 304@

:CAT3_3757
302@ = 1

:CAT3_3764
if 
  302@ == 1
goto_if_false @CAT3_3808
load_mission_audio 303@ {audioId} 245@(301@,56i)
gosub @CAT3_17452
302@ = 2

:CAT3_3808
if 
  302@ == 2
goto_if_false @CAT3_3917
if 
  has_mission_audio_loaded 303@
goto_if_false @CAT3_3917
if 
  244@ <> 0
goto_if_false @CAT3_3891
if 
  not is_char_dead 244@
goto_if_false @CAT3_3891
start_char_facial_talk 244@ {duration} 10000
shut_char_up_for_scripted_speech 244@ {state} True

:CAT3_3891
play_mission_audio 303@
print_now 132@(301@,56s) {time} 10000 {flag} 1
302@ = 3

:CAT3_3917
if 
  302@ == 3
goto_if_false @CAT3_4141
if 
  has_mission_audio_finished 303@
goto_if_false @CAT3_4080
clear_this_print 132@(301@,56s)
if 
  244@ <> 0
goto_if_false @CAT3_4006
if 
  not is_char_dead 244@
goto_if_false @CAT3_4006
stop_char_facial_talk 244@
shut_char_up_for_scripted_speech 244@ {state} False

:CAT3_4006
if 
  303@ == 1
goto_if_false @CAT3_4045
303@ = 2
304@ = 1
goto @CAT3_4059

:CAT3_4045
303@ = 1
304@ = 2

:CAT3_4059
301@ = 0
302@ = 0
goto @CAT3_4141

:CAT3_4080
if 
  not has_mission_audio_loaded 304@
goto_if_false @CAT3_4141
if 
  60 > 301@
goto_if_false @CAT3_4141
set_lvar_int_to_lvar_int 305@ = 301@
305@ += 1
load_mission_audio 304@ {audioId} 245@(305@,56i)

:CAT3_4141
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CAT3_4163
goto @CAT3_17066

:CAT3_4163
if 
  35@ == 0
goto_if_false @CAT3_5699
if 
  6 > 37@
goto_if_false @CAT3_4231
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT3_4231
44@ -= 10000
37@ = 7

:CAT3_4231
if 
  37@ == 1
goto_if_false @CAT3_4405
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4405
if 
  302@ == 0
goto_if_false @CAT3_4405
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_4405
45@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 662.828 {y} -570.1751 {z} 15.3359 {speed} MoveState.Walk {time} -2
task_look_at_char -1 {target} $catalina {time} 30000
task_turn_char_to_face_char -1 {target} $catalina
close_sequence_task 45@
perform_sequence_task 310@ {sequence} 45@
44@ = get_game_timer 
301@ = 2
37@ = 2

:CAT3_4405
if 
  37@ == 2
goto_if_false @CAT3_4673
if 
  not is_char_dead 310@
goto_if_false @CAT3_4536
if 
  not is_char_playing_anim 310@ {animationName} "BNG_WNDW_02"
goto_if_false @CAT3_4536
312@ = get_script_task_status 310@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 312@ == 7
goto_if_false @CAT3_4536
task_play_anim 310@ {animationName} "BNG_WNDW_02" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CAT3_4536
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4673
if 
  302@ == 0
goto_if_false @CAT3_4673
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_4673
set_fixed_camera_position 66@ {y} 76@ {z} 86@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 96@ {y} 106@ {z} 116@ {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
301@ = 3
37@ = 3

:CAT3_4673
if 
  37@ == 3
goto_if_false @CAT3_4799
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4799
if 
  302@ == 0
goto_if_false @CAT3_4799
if and
  not is_char_dead $catalina
  not is_char_dead 310@
  not is_char_dead 311@
goto_if_false @CAT3_4799
task_shake_fist 311@
44@ = get_game_timer 
301@ = 4
37@ = 4

:CAT3_4799
if 
  37@ == 4
goto_if_false @CAT3_4949
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_4949
if 
  302@ == 0
goto_if_false @CAT3_4949
if 
  not is_car_dead 327@
goto_if_false @CAT3_4949
set_fixed_camera_position 67@ {y} 77@ {z} 87@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 97@ {y} 107@ {z} 117@ {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
301@ = 5
37@ = 5

:CAT3_4949
if 
  37@ == 5
goto_if_false @CAT3_5176
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_5176
if 
  302@ == 0
goto_if_false @CAT3_5176
if and
  not is_car_dead 327@
  not is_char_dead $catalina
  not is_char_dead $scplayer
goto_if_false @CAT3_5176
point_camera_at_car 327@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
task_look_at_char $scplayer {target} $catalina {time} 8000
46@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} 1000
task_go_straight_to_coord -1 {x} 657.7125 {y} -576.2346 {z} 15.3359 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 654.6555 {y} -585.0117 {z} 15.3359 {speed} MoveState.Run {time} -1
task_enter_car_as_passenger -1 {vehicle} 327@ {time} 30000 {seat} SeatId.BikeRear
close_sequence_task 46@
perform_sequence_task $catalina {sequence} 46@
301@ = 6
37@ = 6

:CAT3_5176
if 
  37@ == 6
goto_if_false @CAT3_5355
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_5355
if 
  302@ == 0
goto_if_false @CAT3_5355
if and
  not is_char_dead $catalina
  not is_char_dead 310@
goto_if_false @CAT3_5355
set_fixed_camera_position 68@ {y} 78@ {z} 88@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 98@ {y} 108@ {z} 118@ {switchStyle} SwitchType.JumpCut
task_follow_path_nodes_to_coord $scplayer {x} 659.8791 {y} -573.4293 {z} 15.3465 {speed} MoveState.Walk {time} -2
301@ = 7
44@ = get_game_timer 
37@ = 7

:CAT3_5355
if 
  37@ == 7
goto_if_false @CAT3_5699
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2500
goto_if_false @CAT3_5699
if 
  302@ == 0
goto_if_false @CAT3_5699
if and
  not is_char_dead $catalina
  not is_char_dead 310@
  not is_car_dead 327@
goto_if_false @CAT3_5699
do_fade 500 {direction} Fade.Out

:CAT3_5464
if 
  get_fading_status 
goto_if_false @CAT3_5488
wait 0
goto @CAT3_5464

:CAT3_5488
if 
  not is_car_dead 327@
goto_if_false @CAT3_5590
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True
if 
  not is_char_dead $catalina
goto_if_false @CAT3_5567
if 
  not is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_5567
task_enter_car_as_passenger $catalina {vehicle} 327@ {time} 30000 {seat} SeatId.BikeRear

:CAT3_5567
if 
  not is_car_dead 334@
goto_if_false @CAT3_5590
freeze_car_position 334@ {state} True

:CAT3_5590
remove_animation "MISC"
clear_area $509 {y} $515 {z} $521 {radius} 200.0 {clearParticles} True
set_char_heading $scplayer {heading} 332@
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In
do_fade 500 {direction} Fade.In

:CAT3_5668
if 
  get_fading_status 
goto_if_false @CAT3_5692
wait 0
goto @CAT3_5668

:CAT3_5692
35@ = 1

:CAT3_5699
if 
  35@ == 1
goto_if_false @CAT3_5847
if and
  not is_car_dead 327@
  not is_char_dead $scplayer
  not is_car_dead 334@
goto_if_false @CAT3_5847
print_now 'CAT3_02' {time} 5000 {flag} 1
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_5847
remove_blip 328@
print_help 'CAT3_03'
request_animation "CAR_CHAT"

:CAT3_5806
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @CAT3_5840
wait 0
goto @CAT3_5806

:CAT3_5840
35@ = 2

:CAT3_5847
if 
  35@ == 2
goto_if_false @CAT3_6675
if and
  not is_car_dead 327@
  not is_car_dead 334@
  not is_char_dead $catalina
goto_if_false @CAT3_6675
if 
  locate_char_in_car_car_3d $scplayer {vehicle} 334@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CAT3_5968
if 
  38@ == 0
goto_if_false @CAT3_5968
print_help 'CAT3_12'
44@ = get_game_timer 
38@ = 1

:CAT3_5968
if 
  38@ == 1
goto_if_false @CAT3_6044
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 8000
goto_if_false @CAT3_6044
print_help 'CAT3_13'
38@ = 2

:CAT3_6044
if 
  39@ == 0
goto_if_false @CAT3_6127
if 
  is_trailer_attached_to_cab 334@ {cab} 327@
goto_if_false @CAT3_6127
if 
  not is_car_dead 334@
goto_if_false @CAT3_6104
freeze_car_position 334@ {state} False

:CAT3_6104
play_mission_audio MissionAudioSlot.Slot3
44@ = get_game_timer 
remove_blip 335@
clear_help 
39@ = 1

:CAT3_6127
if 
  39@ == 1
goto_if_false @CAT3_6675
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1500
goto_if_false @CAT3_6675
clear_prints 
lock_car_doors 327@ {lockStatus} CarLock.LockedPlayerInside
do_fade 150 {direction} Fade.Out

:CAT3_6201
if 
  get_fading_status 
goto_if_false @CAT3_6225
wait 0
goto @CAT3_6201

:CAT3_6225
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CAT3_6257
clear_mission_audio MissionAudioSlot.Slot3

:CAT3_6257
if 
  not is_car_dead 327@
goto_if_false @CAT3_6280
lock_car_doors 327@ {lockStatus} CarLock.Unlocked

:CAT3_6280
if and
  not is_char_dead $catalina
  not is_car_dead 327@
goto_if_false @CAT3_6427
if 
  not is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_6387
remove_char_from_group $catalina
remove_blip 309@
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
clear_onscreen_counter $c3_trailer_health_display
display_onscreen_counter_with_string $c3_trailer_health_display {display} CounterDisplay.Bar {text} 'CAT3_11'
warp_char_into_car_as_passenger $catalina {handle} 327@ {seat} SeatId.BikeRear
goto @CAT3_6427

:CAT3_6387
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
clear_onscreen_counter $c3_trailer_health_display
display_onscreen_counter_with_string $c3_trailer_health_display {display} CounterDisplay.Bar {text} 'CAT3_11'

:CAT3_6427
if 
  not is_car_dead 334@
goto_if_false @CAT3_6458
set_car_proofs 334@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CAT3_6458
request_car_recording 188

:CAT3_6463
if 
  not has_car_recording_been_loaded 188
goto_if_false @CAT3_6490
wait 0
goto @CAT3_6463

:CAT3_6490
if and
  not is_car_dead 340@
  not is_char_dead 310@
  not is_char_dead 311@
  not is_char_dead $catalina
  not is_car_dead 327@
goto_if_false @CAT3_6675
freeze_car_position 340@ {state} False
clear_area 658.6589 {y} -567.5756 {z} 15.3465 {radius} 25.0 {clearParticles} True
set_car_coordinates 340@ {x} 658.6589 {y} -567.5756 {z} 15.3465
set_car_heading 340@ {heading} 180.0
warp_char_into_car 311@ {vehicle} 340@
warp_char_into_car_as_passenger 310@ {handle} 340@ {seat} SeatId.BikeRear
set_fixed_camera_position 651.9285 {y} -575.1257 {z} 16.2766 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 652.3163 {y} -576.027 {z} 16.4698 {switchStyle} SwitchType.JumpCut
44@ = get_game_timer 
37@ = 1
35@ = 3

:CAT3_6675
if 
  35@ == 3
goto_if_false @CAT3_7827
if and
  not is_char_dead 310@
  not is_char_dead 311@
  not is_car_dead 340@
  not is_car_dead 327@
goto_if_false @CAT3_7827
if 
  4 > 37@
goto_if_false @CAT3_6814
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_6814
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT3_6814
44@ -= 5000
37@ = 4

:CAT3_6814
if 
  37@ == 1
goto_if_false @CAT3_6940
if 
  not is_car_dead 340@
goto_if_false @CAT3_6940
do_fade 150 {direction} Fade.In

:CAT3_6855
if 
  get_fading_status 
goto_if_false @CAT3_6879
wait 0
goto @CAT3_6855

:CAT3_6879
if 
  not is_car_dead 340@
goto_if_false @CAT3_6903
start_playback_recorded_car 340@ {path} 188

:CAT3_6903
if 
  302@ == 0
goto_if_false @CAT3_6928
301@ = 13

:CAT3_6928
44@ = get_game_timer 
37@ = 2

:CAT3_6940
if 
  37@ == 2
goto_if_false @CAT3_7412
if 
  not is_car_dead 340@
goto_if_false @CAT3_7173
if 
  is_playback_going_on_for_car 340@
goto_if_false @CAT3_7173
62@, 63@, 64@ = get_offset_from_car_in_world_coords 340@ {xOffset} 0.0 {yOffset} 5.5 {zOffset} 0.0
set_lvar_float_to_lvar_float 56@ = 62@
56@ -= 0.25
set_lvar_float_to_lvar_float 57@ = 63@
57@ -= 0.25
set_lvar_float_to_lvar_float 58@ = 64@
58@ -= 0.25
set_lvar_float_to_lvar_float 59@ = 62@
59@ += 0.25
set_lvar_float_to_lvar_float 60@ = 63@
60@ += 0.25
set_lvar_float_to_lvar_float 61@ = 64@
61@ += 0.25
if 
  is_area_occupied 56@ {leftBottomY} 57@ {leftBottomZ} 58@ {rightTopX} 59@ {rightTopY} 60@ {rightTopZ} 61@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @CAT3_7173
stop_playback_recorded_car 340@

:CAT3_7173
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_7412
if 
  302@ == 0
goto_if_false @CAT3_7412
if 
  not is_char_dead 310@
goto_if_false @CAT3_7289
task_play_anim 310@ {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CAT3_7289
69@, 79@, 89@ = get_offset_from_car_in_world_coords 340@ {xOffset} 0.9 {yOffset} 1.0 {zOffset} 0.5
99@, 109@, 119@ = get_offset_from_car_in_world_coords 340@ {xOffset} 0.15 {yOffset} 0.0 {zOffset} 0.3
set_fixed_camera_position 69@ {y} 79@ {z} 89@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 99@ {y} 109@ {z} 119@ {switchStyle} SwitchType.JumpCut
set_near_clip 0.1
301@ = 14
44@ = get_game_timer 
37@ = 3

:CAT3_7412
if 
  37@ == 3
goto_if_false @CAT3_7550
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_7550
if 
  302@ == 0
goto_if_false @CAT3_7550
301@ = 15
task_play_anim 311@ {animationName} "CAR_SC4_BL" {animationFile} "CAR_CHAT" {blendSpeed} 2.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3500
44@ = get_game_timer 
37@ = 4

:CAT3_7550
if 
  37@ == 4
goto_if_false @CAT3_7827
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_7827
clear_prints 
do_fade 150 {direction} Fade.In

:CAT3_7623
if 
  get_fading_status 
goto_if_false @CAT3_7647
wait 0
goto @CAT3_7623

:CAT3_7647
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
if and
  not is_car_dead 340@
  not is_char_dead 310@
goto_if_false @CAT3_7827
if 
  is_char_in_car 310@ {vehicle} 340@
goto_if_false @CAT3_7827
if 
  not is_car_dead 334@
goto_if_false @CAT3_7723
freeze_car_position 334@ {state} False

:CAT3_7723
set_car_proofs 340@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
remove_animation "CAR_CHAT"
add_stuck_car_check_with_warp 340@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
341@ = add_blip_for_car_old 340@ {color} BlipColor.Red {display} BlipDisplay.MarkerOnly
128@ = 4
131@ = get_game_timer 
if 
  302@ == 0
goto_if_false @CAT3_7820
301@ = 12

:CAT3_7820
35@ = 4

:CAT3_7827
if 
  35@ == 4
goto_if_false @CAT3_12172
if and
  not is_car_dead 327@
  not is_car_dead 334@
  not is_char_dead $catalina
goto_if_false @CAT3_12172
if 
  302@ == 0
goto_if_false @CAT3_7948
if 
  301@ == 0
goto_if_false @CAT3_7948
if 
  37@ == 4
goto_if_false @CAT3_7948
print 'CAT3_05' {time} 5000 {flag} 1
37@ = -4

:CAT3_7948
$c3_trailer_health_display = get_car_health 334@
if 
  $c3_trailer_health_display > 250
goto_if_false @CAT3_8004
$c3_trailer_health_display -= 250
$c3_trailer_health_display /= 100
$c3_trailer_health_display *= 10
goto @CAT3_8009

:CAT3_8004
clear_onscreen_counter $c3_trailer_health_display

:CAT3_8009
if 
  36@ == 1
goto_if_false @CAT3_10233
if and
  not is_car_dead 340@
  not is_char_dead 310@
  not is_char_dead 311@
goto_if_false @CAT3_10226
if 
  128@ == 0
goto_if_false @CAT3_8168
125@ = generate_random_int_in_range 0 {max} 6
131@ = get_game_timer 
128@ = 1
if 
  is_int_lvar_equal_to_int_lvar 125@ == 126@
goto_if_false @CAT3_8168
if 
  5 > 125@
goto_if_false @CAT3_8143
125@ += 1
goto @CAT3_8168

:CAT3_8143
if 
  125@ > 0
goto_if_false @CAT3_8168
125@ -= 1

:CAT3_8168
if 
  128@ == 1
goto_if_false @CAT3_9573
if 
  125@ == 0
goto_if_false @CAT3_8418
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8418
301@ = 27
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_8355
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_8398

:CAT3_8355
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_8398
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_8418
if 
  125@ == 1
goto_if_false @CAT3_8650
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8650
301@ = 28
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_8587
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_8630

:CAT3_8587
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_8630
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_8650
if 
  125@ == 2
goto_if_false @CAT3_8882
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_8882
301@ = 29
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_8819
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_8862

:CAT3_8819
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_8862
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_8882
if 
  125@ == 3
goto_if_false @CAT3_9114
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9114
301@ = 30
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_9051
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_9094

:CAT3_9051
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_9094
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_9114
if 
  125@ == 4
goto_if_false @CAT3_9341
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9341
301@ = 31
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_9283
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_9326

:CAT3_9283
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_9326
set_lvar_int_to_lvar_int 126@ = 125@
128@ = 2

:CAT3_9341
if 
  125@ == 5
goto_if_false @CAT3_9573
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9573
301@ = 32
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_9510
set_char_accuracy 310@ {accuracy} 20
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} -5.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi
task_drive_by $catalina {targetChar} 310@ {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 90
set_current_char_weapon $catalina {weaponType} WeaponType.Shotgun
goto @CAT3_9553

:CAT3_9510
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 15

:CAT3_9553
set_lvar_int_to_lvar_int 126@ = 125@
131@ = get_game_timer 
128@ = 2

:CAT3_9573
if 
  128@ == 2
goto_if_false @CAT3_9688
125@ = generate_random_int_in_range 6 {max} 13
131@ = get_game_timer 
128@ = 3
if 
  is_int_lvar_equal_to_int_lvar 125@ == 127@
goto_if_false @CAT3_9688
if 
  12 > 125@
goto_if_false @CAT3_9663
125@ += 1
goto @CAT3_9688

:CAT3_9663
if 
  125@ > 6
goto_if_false @CAT3_9688
125@ -= 1

:CAT3_9688
if 
  128@ == 3
goto_if_false @CAT3_10161
if 
  125@ == 6
goto_if_false @CAT3_9771
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9771
301@ = 33
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9771
if 
  125@ == 7
goto_if_false @CAT3_9836
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9836
301@ = 34
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9836
if 
  125@ == 8
goto_if_false @CAT3_9901
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9901
301@ = 35
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9901
if 
  125@ == 9
goto_if_false @CAT3_9966
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_9966
301@ = 36
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_9966
if 
  125@ == 10
goto_if_false @CAT3_10031
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10031
301@ = 37
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10031
if 
  125@ == 11
goto_if_false @CAT3_10096
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10096
301@ = 38
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10096
if 
  125@ == 12
goto_if_false @CAT3_10161
if and
  302@ == 0
  301@ == 0
goto_if_false @CAT3_10161
301@ = 39
128@ = 4
set_lvar_int_to_lvar_int 127@ = 125@

:CAT3_10161
if 
  128@ == 4
goto_if_false @CAT3_10226
130@ = get_game_timer 
set_lvar_int_to_lvar_int 129@ = 130@
sub_int_lvar_from_int_lvar 129@ -= 131@
if 
  129@ > 12000
goto_if_false @CAT3_10226
128@ = 5

:CAT3_10226
goto @CAT3_10326

:CAT3_10233
if and
  not is_car_dead 340@
  not is_char_dead 310@
goto_if_false @CAT3_10326
312@ = get_script_task_status 310@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 312@ == 7
goto_if_false @CAT3_10326
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:CAT3_10326
if 
  is_car_dead 340@
goto_if_false @CAT3_10421
if 
  not is_char_dead 310@
goto_if_false @CAT3_10379
if 
  not is_char_on_screen 310@
goto_if_false @CAT3_10379
remove_char_elegantly 310@

:CAT3_10379
if 
  not is_char_dead 311@
goto_if_false @CAT3_10416
if 
  not is_char_on_screen 311@
goto_if_false @CAT3_10416
remove_char_elegantly 311@

:CAT3_10416
remove_blip 341@

:CAT3_10421
if and
  not is_char_dead 310@
  not is_car_dead 340@
goto_if_false @CAT3_10760
if 
  not locate_char_any_means_char_3d $scplayer {target} 310@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CAT3_10516
if 
  60.0 > 321@
goto_if_false @CAT3_10509
321@ += 0.2

:CAT3_10509
goto @CAT3_10547

:CAT3_10516
if 
  321@ > 40.0
goto_if_false @CAT3_10547
321@ -= 0.1

:CAT3_10547
if 
  not locate_char_any_means_3d $scplayer {x} 50@ {y} 51@ {z} 52@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @CAT3_10760
if 
  not locate_char_any_means_char_3d $scplayer {target} 310@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CAT3_10735
62@, 63@, 64@ = get_offset_from_car_in_world_coords 334@ {xOffset} 0.0 {yOffset} -40.0 {zOffset} 0.0
342@, 343@, 344@, 345@ = get_nth_closest_car_node_with_heading 62@ {yCoord} 63@ {zCoord} 64@ {nth} 1
if 
  not is_point_on_screen 342@ {y} 343@ {z} 344@ {radius} 15.0
goto_if_false @CAT3_10728
set_car_coordinates 340@ {x} 342@ {y} 343@ {z} 344@
set_car_heading 340@ {heading} 345@

:CAT3_10728
goto @CAT3_10760

:CAT3_10735
if 
  128@ == 5
goto_if_false @CAT3_10760
128@ = 0

:CAT3_10760
306@ = get_car_health 334@
if 
  40@ == 0
goto_if_false @CAT3_11316
if 
  not is_char_dead 310@
goto_if_false @CAT3_11316
if 
  not locate_char_any_means_3d $scplayer {x} 50@ {y} 51@ {z} 52@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @CAT3_10946
if 
  not is_char_dead 311@
goto_if_false @CAT3_10939
if 
  not is_car_dead 334@
goto_if_false @CAT3_10939
if 
  not is_car_dead 340@
goto_if_false @CAT3_10939
47@ = get_script_task_status 311@ {taskId} 1761
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @CAT3_10939
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars

:CAT3_10939
goto @CAT3_11024

:CAT3_10946
if 
  not is_car_dead 340@
goto_if_false @CAT3_11024
if 
  not is_char_dead 311@
goto_if_false @CAT3_11024
task_car_temp_action 311@ {vehicle} 340@ {actionId} TempAction.HandbrakeStraight {time} 2000
44@ = get_game_timer 
if 
  does_car_have_stuck_car_check 340@
goto_if_false @CAT3_11017
remove_stuck_car_check 340@

:CAT3_11017
40@ = 1

:CAT3_11024
if 
  locate_char_any_means_char_3d $scplayer {target} 310@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT3_11316
if 
  not is_char_dead 311@
goto_if_false @CAT3_11316
if 
  not is_car_dead 334@
goto_if_false @CAT3_11316
if 
  not is_car_dead 340@
goto_if_false @CAT3_11316
$c3_rand_escort = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ == 5000
goto_if_false @CAT3_11316
if 
  $c3_rand_escort == 0
goto_if_false @CAT3_11193
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortLeft {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11193
if 
  $c3_rand_escort == 1
goto_if_false @CAT3_11234
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortRight {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11234
if 
  $c3_rand_escort == 2
goto_if_false @CAT3_11275
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortRear {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11275
if 
  $c3_rand_escort == 3
goto_if_false @CAT3_11316
task_car_mission 311@ {vehicle} 340@ {targetVehicle} 327@ {missionId} CarMission.EscortFront {cruiseSpeed} 321@ {drivingStyle} DrivingMode.AvoidCars
44@ = get_game_timer 

:CAT3_11316
if and
  not is_car_dead 327@
  not is_char_dead 310@
goto_if_false @CAT3_11445
333@ = get_car_speed 327@
if 
  3.0 > 333@
goto_if_false @CAT3_11445
47@ = get_script_task_status 310@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 47@ == 7
goto_if_false @CAT3_11445
set_char_accuracy 310@ {accuracy} 40
task_drive_by 310@ {targetChar} $catalina {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_current_char_weapon 310@ {weaponType} WeaponType.MicroUzi

:CAT3_11445
if 
  not is_trailer_attached_to_cab 334@ {cab} 327@
goto_if_false @CAT3_11788
if 
  is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_11765
if 
  not is_car_upsidedown 327@
goto_if_false @CAT3_11726
do_fade 50 {direction} Fade.Out

:CAT3_11505
if 
  get_fading_status 
goto_if_false @CAT3_11529
wait 0
goto @CAT3_11505

:CAT3_11529
if 
  not is_car_dead 327@
goto_if_false @CAT3_11719
set_player_control $player1 {state} False
switch_widescreen True
set_car_temp_action 327@ {actionId} TempAction.HandbrakeStraight {time} 2000
73@, 83@, 93@ = get_offset_from_car_in_world_coords 327@ {xOffset} 2.5 {yOffset} 4.0 {zOffset} 0.0
103@, 113@, 123@ = get_offset_from_car_in_world_coords 327@ {xOffset} 2.2 {yOffset} 3.0 {zOffset} 0.0
set_fixed_camera_position 73@ {y} 83@ {z} 93@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 103@ {y} 113@ {z} 123@ {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 340@
goto_if_false @CAT3_11700
if 
  not is_car_on_screen 340@
goto_if_false @CAT3_11700
delete_car 340@

:CAT3_11700
44@ = get_game_timer 
37@ = 0
goto @CAT3_15906

:CAT3_11719
goto @CAT3_11758

:CAT3_11726
do_fade 300 {direction} Fade.In
clear_prints 
print_now 'CAT3_08' {time} 5000 {flag} 1
goto @CAT3_17048

:CAT3_11758
goto @CAT3_11788

:CAT3_11765
print_now 'CAT3_08' {time} 5000 {flag} 1
goto @CAT3_17048

:CAT3_11788
if and
  is_char_in_car $catalina {vehicle} 327@
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_12172
if or
  locate_car_3d 327@ {x} 50@ {y} 51@ {z} 52@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} True
  locate_car_3d 334@ {x} 50@ {y} 51@ {z} 52@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CAT3_12172
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CAT3_11902
if 
  get_fading_status 
goto_if_false @CAT3_11926
wait 0
goto @CAT3_11902

:CAT3_11926
gosub @CAT3_1119
load_scene -76.1314 {y} -1131.417 {z} 0.0782
switch_widescreen True
remove_blip 41@
clear_prints 
request_car_recording 199

:CAT3_11966
if 
  not has_car_recording_been_loaded 199
goto_if_false @CAT3_11993
wait 0
goto @CAT3_11966

:CAT3_11993
set_fixed_camera_position -81.2678 {y} -1141.735 {z} 3.899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -81.7168 {y} -1140.842 {z} 3.8854 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead $catalina
  not is_char_dead $scplayer
  not is_car_dead 327@
goto_if_false @CAT3_12144
freeze_car_position 327@ {state} True
lock_car_doors 327@ {lockStatus} CarLock.LockoutPlayerOnly
warp_char_from_car_to_coord $catalina {x} -71.5991 {y} -1134.952 {z} 0.0781
set_char_heading $catalina {heading} 63.1513
warp_char_from_car_to_coord $scplayer {x} -74.2582 {y} -1130.526 {z} 0.0781
set_char_heading $scplayer {heading} 135.9294

:CAT3_12144
gosub @CAT3_576
clear_prints 
44@ = get_game_timer 
37@ = -4
35@ = 5

:CAT3_12172
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @CAT3_12473
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CAT3_12201
if 
  get_fading_status 
goto_if_false @CAT3_12225
wait 0
goto @CAT3_12201

:CAT3_12225
gosub @CAT3_1119
load_scene -76.1314 {y} -1131.417 {z} 0.0782
switch_widescreen True
remove_blip 41@
clear_prints 
request_car_recording 199

:CAT3_12265
if 
  not has_car_recording_been_loaded 199
goto_if_false @CAT3_12292
wait 0
goto @CAT3_12265

:CAT3_12292
set_fixed_camera_position -81.2678 {y} -1141.735 {z} 3.899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -81.7168 {y} -1140.842 {z} 3.8854 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead $catalina
  not is_char_dead $scplayer
  not is_car_dead 327@
goto_if_false @CAT3_12443
set_car_coordinates 327@ {x} 50@ {y} 51@ {z} 52@
warp_char_from_car_to_coord $catalina {x} -71.5991 {y} -1134.952 {z} 0.0781
set_char_heading $catalina {heading} 63.1513
warp_char_from_car_to_coord $scplayer {x} -74.2582 {y} -1130.526 {z} 0.0781
set_char_heading $scplayer {heading} 135.9294

:CAT3_12443
gosub @CAT3_576
clear_help 
clear_prints 
44@ = get_game_timer 
37@ = -4
35@ = 5

:CAT3_12473
if 
  35@ == 5
goto_if_false @CAT3_15190
if and
  not is_char_dead $catalina
  not is_char_dead 322@
  not is_car_dead 327@
goto_if_false @CAT3_15190
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_12541
remove_char_from_group $catalina

:CAT3_12541
if 
  37@ == -4
goto_if_false @CAT3_12655
if 
  not is_car_dead 340@
goto_if_false @CAT3_12648
set_car_proofs 340@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
start_playback_recorded_car 340@ {path} 199
44@ = get_game_timer 
do_fade 250 {direction} Fade.In

:CAT3_12610
if 
  get_fading_status 
goto_if_false @CAT3_12634
wait 0
goto @CAT3_12610

:CAT3_12634
37@ = -3
goto @CAT3_12655

:CAT3_12648
37@ = -1

:CAT3_12655
if 
  37@ == -3
goto_if_false @CAT3_12794
if 
  not is_car_dead 340@
goto_if_false @CAT3_12794
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_12794
set_fixed_camera_position -107.3115 {y} -1128.808 {z} 2.6543 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -106.788 {y} -1129.652 {z} 2.7731 {switchStyle} SwitchType.JumpCut
set_car_health 340@ {health} 5
37@ = -21

:CAT3_12794
if 
  37@ == -21
goto_if_false @CAT3_12931
if 
  not is_car_dead 340@
goto_if_false @CAT3_12931
if 
  not is_playback_going_on_for_car 340@
goto_if_false @CAT3_12931
set_fixed_camera_position -108.8537 {y} -1168.342 {z} 3.0287 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -108.0611 {y} -1167.736 {z} 3.0908 {switchStyle} SwitchType.JumpCut
add_explosion -92.24 {y} -1161.46 {z} 2.5 {type} ExplosionType.Car
explode_car_in_cutscene 340@
44@ = get_game_timer 
37@ = -22

:CAT3_12931
if 
  37@ == -22
goto_if_false @CAT3_13011
if 
  42@ > 1000
goto_if_false @CAT3_13011
if 
  not is_car_dead 346@
goto_if_false @CAT3_13011
set_car_proofs 346@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
explode_car_in_cutscene 346@
37@ = -2

:CAT3_13011
if 
  37@ == -2
goto_if_false @CAT3_13107
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 3000
goto_if_false @CAT3_13107
do_fade 500 {direction} Fade.Out

:CAT3_13076
if 
  get_fading_status 
goto_if_false @CAT3_13100
wait 0
goto @CAT3_13076

:CAT3_13100
37@ = -1

:CAT3_13107
if 
  37@ == -1
goto_if_false @CAT3_13266
set_fixed_camera_position 70@ {y} 80@ {z} 90@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 100@ {y} 110@ {z} 120@ {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 310@
  not is_char_dead 311@
  not is_car_dead 340@
goto_if_false @CAT3_13205
delete_char 310@
delete_char 311@
delete_car 340@

:CAT3_13205
load_scene_in_direction 70@ {y} 80@ {z} 90@ {heading} 100.0
clear_prints 
44@ = get_game_timer 
do_fade 500 {direction} Fade.In

:CAT3_13235
if 
  get_fading_status 
goto_if_false @CAT3_13259
wait 0
goto @CAT3_13235

:CAT3_13259
37@ = 0

:CAT3_13266
if 
  37@ == 0
goto_if_false @CAT3_13439
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 300
goto_if_false @CAT3_13439
if 
  302@ == 0
goto_if_false @CAT3_13439
if and
  not is_char_dead $catalina
  not is_char_dead 322@
goto_if_false @CAT3_13439
48@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 322@
task_go_straight_to_coord -1 {x} -74.8954 {y} -1133.7791 {z} 0.0781 {speed} MoveState.Walk {time} -1
task_look_at_char -1 {target} 322@ {time} -2
close_sequence_task 48@
perform_sequence_task $catalina {sequence} 48@
301@ = 43
44@ = get_game_timer 
37@ = 1

:CAT3_13439
if 
  37@ == 1
goto_if_false @CAT3_13685
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_13685
if 
  302@ == 0
goto_if_false @CAT3_13685
do_fade 50 {direction} Fade.Out

:CAT3_13521
if 
  get_fading_status 
goto_if_false @CAT3_13545
wait 0
goto @CAT3_13521

:CAT3_13545
if and
  not is_char_dead 322@
  not is_char_dead $catalina
goto_if_false @CAT3_13581
task_look_at_char 322@ {target} $catalina {time} -2
task_scratch_head 322@

:CAT3_13581
301@ = 44
44@ = get_game_timer 
load_scene_in_direction 71@ {y} 81@ {z} 91@ {heading} 270.0
set_fixed_camera_position 71@ {y} 81@ {z} 91@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 101@ {y} 111@ {z} 121@ {switchStyle} SwitchType.JumpCut
do_fade 50 {direction} Fade.In

:CAT3_13654
if 
  get_fading_status 
goto_if_false @CAT3_13678
wait 0
goto @CAT3_13654

:CAT3_13678
37@ = 2

:CAT3_13685
if 
  37@ == 2
goto_if_false @CAT3_13883
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_13883
if 
  302@ == 0
goto_if_false @CAT3_13883
if and
  not is_car_dead 327@
  not is_char_dead 322@
  not is_char_dead $catalina
goto_if_false @CAT3_13883
clear_look_at 322@
task_turn_char_to_face_coord $catalina {x} 50@ {y} 51@ {z} 52@
task_turn_char_to_face_coord 322@ {x} 50@ {y} 51@ {z} 52@
task_look_at_vehicle $catalina {vehicle} 327@ {time} -2
task_look_at_vehicle 322@ {vehicle} 327@ {time} -2
task_go_straight_to_coord 322@ {x} -75.1023 {y} -1134.871 {z} 0.0781 {speed} MoveState.Walk {time} -1
301@ = 45
44@ = get_game_timer 
37@ = 3

:CAT3_13883
if 
  37@ == 3
goto_if_false @CAT3_14074
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14074
if 
  302@ == 0
goto_if_false @CAT3_14074
if 
  not is_char_dead 322@
goto_if_false @CAT3_14055
set_fixed_camera_position 72@ {y} 82@ {z} 92@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 102@ {y} 112@ {z} 122@ {switchStyle} SwitchType.JumpCut
task_turn_char_to_face_char 322@ {target} $catalina
task_look_at_char 322@ {target} $catalina {time} -2
task_scratch_head 322@
task_turn_char_to_face_char $catalina {target} 322@
task_look_at_char $catalina {target} 322@ {time} -2

:CAT3_14055
301@ = 46
44@ = get_game_timer 
37@ = 4

:CAT3_14074
if 
  37@ == 4
goto_if_false @CAT3_14169
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14169
if 
  302@ == 0
goto_if_false @CAT3_14169
301@ = 47
44@ = get_game_timer 
37@ = 5

:CAT3_14169
if 
  37@ == 5
goto_if_false @CAT3_14309
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14309
if 
  302@ == 0
goto_if_false @CAT3_14309
if 
  not is_char_dead $catalina
goto_if_false @CAT3_14309
clear_look_at $catalina
task_go_straight_to_coord $catalina {x} -83.1314 {y} -1129.417 {z} 0.0782 {speed} MoveState.Walk {time} -1
301@ = 48
44@ = get_game_timer 
37@ = 6

:CAT3_14309
if 
  37@ == 6
goto_if_false @CAT3_14461
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14461
if 
  302@ == 0
goto_if_false @CAT3_14461
if 
  not is_char_dead 322@
goto_if_false @CAT3_14461
clear_look_at 322@
task_turn_char_to_face_char 322@ {target} $scplayer
wait 100
task_go_straight_to_coord $scplayer {x} -84.1314 {y} -1128.417 {z} 0.0782 {speed} MoveState.Walk {time} -1
301@ = 51
44@ = get_game_timer 
37@ = 7

:CAT3_14461
if 
  37@ == 7
goto_if_false @CAT3_14556
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 2000
goto_if_false @CAT3_14556
if 
  302@ == 0
goto_if_false @CAT3_14556
301@ = 52
44@ = get_game_timer 
37@ = 8

:CAT3_14556
if 
  37@ == 8
goto_if_false @CAT3_14759
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 3000
goto_if_false @CAT3_14759
do_fade 100 {direction} Fade.Out

:CAT3_14620
if 
  get_fading_status 
goto_if_false @CAT3_14644
wait 0
goto @CAT3_14620

:CAT3_14644
44@ = get_game_timer 
if 
  not is_char_dead $catalina
goto_if_false @CAT3_14689
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_14689
remove_char_from_group $catalina

:CAT3_14689
gosub @CAT3_1251
clear_char_tasks $scplayer
set_fixed_camera_position -86.1477 {y} -1130.4449 {z} 0.9157 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -86.5058 {y} -1129.52 {z} 1.0417 {switchStyle} SwitchType.JumpCut
37@ = 9

:CAT3_14759
if 
  37@ == 9
goto_if_false @CAT3_14839
do_fade 100 {direction} Fade.In

:CAT3_14783
if 
  get_fading_status 
goto_if_false @CAT3_14807
wait 0
goto @CAT3_14783

:CAT3_14807
if 
  302@ == 0
goto_if_false @CAT3_14839
301@ = 55
37@ = 10

:CAT3_14839
if 
  37@ == 10
goto_if_false @CAT3_14932
if 
  301@ == 0
goto_if_false @CAT3_14932
if and
  not is_car_dead 352@
  not is_char_dead $catalina
goto_if_false @CAT3_14932
if 
  not is_playback_going_on_for_car 352@
goto_if_false @CAT3_14932
clear_look_at $catalina
start_playback_recorded_car 352@ {path} 189
37@ = 11

:CAT3_14932
if 
  37@ == 11
goto_if_false @CAT3_15045
if 
  not is_car_dead 352@
goto_if_false @CAT3_15045
if 
  not is_playback_going_on_for_car 352@
goto_if_false @CAT3_15045
do_fade 500 {direction} Fade.Out

:CAT3_14989
if 
  get_fading_status 
goto_if_false @CAT3_15013
wait 0
goto @CAT3_14989

:CAT3_15013
clear_char_tasks $scplayer
delete_char $catalina
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
goto @CAT3_17066

:CAT3_15045
if 
  37@ > 0
goto_if_false @CAT3_15190
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CAT3_15190
do_fade 500 {direction} Fade.Out

:CAT3_15087
if 
  get_fading_status 
goto_if_false @CAT3_15111
wait 0
goto @CAT3_15087

:CAT3_15111
if 
  not is_char_dead $catalina
goto_if_false @CAT3_15158
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_15158
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina

:CAT3_15158
clear_char_tasks $scplayer
delete_char $catalina
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
goto @CAT3_17066

:CAT3_15190
if and
  35@ > 0
  5 > 35@
goto_if_false @CAT3_15222
gosub @CAT3_18188

:CAT3_15222
if and
  35@ > 1
  5 > 35@
goto_if_false @CAT3_15735
if and
  not is_char_dead $scplayer
  not is_car_dead 327@
goto_if_false @CAT3_15735
if 
  36@ == 0
goto_if_false @CAT3_15523
if 
  49@ == 1
goto_if_false @CAT3_15523
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_15344
print_now 'CAT3_10' {time} 100 {flag} 1

:CAT3_15344
if 
  is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_15523
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_15390
clear_prints 

:CAT3_15390
remove_blip 328@
if 
  35@ == 2
goto_if_false @CAT3_15444
if 
  not is_car_dead 334@
goto_if_false @CAT3_15444
335@ = add_blip_for_car 334@
set_blip_as_friendly 335@ {state} True

:CAT3_15444
if or
  35@ == 3
  35@ == 4
goto_if_false @CAT3_15516
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
set_blip_as_friendly 41@ {state} True
clear_onscreen_counter $c3_trailer_health_display
display_onscreen_counter_with_string $c3_trailer_health_display {display} CounterDisplay.Bar {text} 'CAT3_11'

:CAT3_15516
36@ = 1

:CAT3_15523
if 
  36@ == 1
goto_if_false @CAT3_15735
if 
  not is_char_in_car $scplayer {vehicle} 327@
goto_if_false @CAT3_15735
if 
  49@ == 1
goto_if_false @CAT3_15593
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True

:CAT3_15593
if 
  35@ == 2
goto_if_false @CAT3_15616
remove_blip 335@

:CAT3_15616
if or
  35@ == 3
  35@ == 4
goto_if_false @CAT3_15651
remove_blip 41@
clear_onscreen_counter $c3_trailer_health_display

:CAT3_15651
if 
  35@ == 4
goto_if_false @CAT3_15728
if 
  not is_char_dead 310@
goto_if_false @CAT3_15728
set_char_accuracy 310@ {accuracy} 50
task_drive_by 310@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 150.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:CAT3_15728
36@ = 0

:CAT3_15735
if or
  is_char_dead $catalina
  is_char_in_water $catalina
goto_if_false @CAT3_15781
clear_prints 
print_now 'CAT3_06' {time} 10000 {flag} 1
goto @CAT3_17048

:CAT3_15781
if 
  5 > 35@
goto_if_false @CAT3_15840
if 
  is_car_dead 334@
goto_if_false @CAT3_15840
clear_prints 
print_now 'CAT3_07' {time} 5000 {flag} 1
goto @CAT3_17048

:CAT3_15840
if 
  5 > 35@
goto_if_false @CAT3_15899
if 
  is_car_dead 327@
goto_if_false @CAT3_15899
clear_prints 
print_now 'CAT3_09' {time} 5000 {flag} 1
goto @CAT3_17048

:CAT3_15899
goto @CAT3_3696

:CAT3_15906
wait 0
if 
  301@ <> 0
goto_if_false @CAT3_16337
if 
  302@ == 0
goto_if_false @CAT3_15974
if 
  has_mission_audio_loaded 304@
goto_if_false @CAT3_15967
clear_mission_audio 304@

:CAT3_15967
302@ = 1

:CAT3_15974
if 
  302@ == 1
goto_if_false @CAT3_16018
load_mission_audio 303@ {audioId} 245@(301@,56i)
gosub @CAT3_17452
302@ = 2

:CAT3_16018
if 
  302@ == 2
goto_if_false @CAT3_16120
if 
  has_mission_audio_loaded 303@
goto_if_false @CAT3_16120
if 
  244@ <> 0
goto_if_false @CAT3_16094
if 
  not is_char_dead 244@
goto_if_false @CAT3_16094
start_char_facial_talk 244@ {duration} 10000

:CAT3_16094
play_mission_audio 303@
print_now 132@(301@,56s) {time} 10000 {flag} 1
302@ = 3

:CAT3_16120
if 
  302@ == 3
goto_if_false @CAT3_16337
if 
  has_mission_audio_finished 303@
goto_if_false @CAT3_16276
clear_this_print 132@(301@,56s)
if 
  244@ <> 0
goto_if_false @CAT3_16202
if 
  not is_char_dead 244@
goto_if_false @CAT3_16202
stop_char_facial_talk 244@

:CAT3_16202
if 
  303@ == 1
goto_if_false @CAT3_16241
303@ = 2
304@ = 1
goto @CAT3_16255

:CAT3_16241
303@ = 1
304@ = 2

:CAT3_16255
301@ = 0
302@ = 0
goto @CAT3_16337

:CAT3_16276
if 
  not has_mission_audio_loaded 304@
goto_if_false @CAT3_16337
if 
  54 > 301@
goto_if_false @CAT3_16337
set_lvar_int_to_lvar_int 305@ = 301@
305@ += 1
load_mission_audio 304@ {audioId} 245@(305@,56i)

:CAT3_16337
if 
  37@ == 0
goto_if_false @CAT3_16472
do_fade 50 {direction} Fade.In

:CAT3_16361
if 
  get_fading_status 
goto_if_false @CAT3_16385
wait 0
goto @CAT3_16361

:CAT3_16385
301@ = 53
44@ = get_game_timer 
if and
  not is_car_dead 327@
  not is_char_dead $catalina
goto_if_false @CAT3_16472
attach_camera_to_vehicle 327@ {xOffset} 1.0 {yOffset} 8.0 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 1.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
clear_onscreen_counter $c3_trailer_health_display
37@ = 1

:CAT3_16472
if 
  37@ == 1
goto_if_false @CAT3_16667
if and
  not is_car_dead 327@
  not is_char_dead $catalina
goto_if_false @CAT3_16667
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_16667
if 
  302@ == 0
goto_if_false @CAT3_16667
301@ = 54
attach_camera_to_vehicle 327@ {xOffset} 1.0 {yOffset} 8.0 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 1.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
73@, 83@, 93@ = get_offset_from_car_in_world_coords 327@ {xOffset} 4.5 {yOffset} 10.0 {zOffset} 0.0
task_leave_car $catalina {vehicle} 327@
44@ = get_game_timer 
37@ = 2

:CAT3_16667
if 
  37@ == 2
goto_if_false @CAT3_16914
if 
  302@ == 0
goto_if_false @CAT3_16914
43@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 43@
sub_int_lvar_from_int_lvar 42@ -= 44@
if 
  42@ > 1000
goto_if_false @CAT3_16914
if 
  not is_char_dead $catalina
goto_if_false @CAT3_16914
if 
  not is_car_dead 327@
goto_if_false @CAT3_16914
if 
  not is_char_in_car $catalina {vehicle} 327@
goto_if_false @CAT3_16914
task_go_straight_to_coord $catalina {x} 73@ {y} 83@ {z} 93@ {speed} MoveState.Walk {time} -1
if 
  302@ == 0
goto_if_false @CAT3_16914
do_fade 50 {direction} Fade.Out

:CAT3_16836
if 
  get_fading_status 
goto_if_false @CAT3_16860
wait 0
goto @CAT3_16836

:CAT3_16860
if 
  not is_char_dead $catalina
goto_if_false @CAT3_16914
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_16914
remove_char_from_group $catalina
delete_char $catalina
clear_prints 
37@ = 3

:CAT3_16914
if 
  3 > 37@
goto_if_false @CAT3_16955
if 
  is_car_in_water 327@
goto_if_false @CAT3_16955
37@ = 3

:CAT3_16955
if 
  37@ == 3
goto_if_false @CAT3_17041
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 50 {direction} Fade.In

:CAT3_16987
if 
  get_fading_status 
goto_if_false @CAT3_17011
wait 0
goto @CAT3_16987

:CAT3_17011
print_now 'CAT3_08' {time} 5000 {flag} 1
set_player_control $player1 {state} True
goto @CAT3_17048

:CAT3_17041
goto @CAT3_15906

:CAT3_17048
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CAT3_17066
$cat_counter += 1
if and
  not is_car_dead 327@
  not is_car_dead 334@
goto_if_false @CAT3_17111
freeze_car_position 327@ {state} False
delete_car 327@
delete_car 334@

:CAT3_17111
start_new_script @TRUCKS 
if 
  $cat_otb_banter == 1
goto_if_false @CAT3_17144
$cat_otb_banter = 2

:CAT3_17144
if 
  $cat_liquor_banter == 1
goto_if_false @CAT3_17169
$cat_liquor_banter = 2

:CAT3_17169
remove_blip $tucking_contact_blip
$tucking_contact_blip = add_short_range_sprite_blip_for_contact_point $truckX {y} $truckY {z} $truckZ {sprite} RadarSprite.Truck
play_mission_passed_tune 1
register_mission_passed 'CAT_3'
player_made_progress 1
print_with_number_big 'M_PASS' {num} 34@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 34@
clear_wanted_level $player1
$flag_cat_mission3_passed = 1
return 

:CAT3_17250
remove_blip 328@
remove_blip 335@
remove_blip 341@
remove_blip 41@
remove_blip 309@
clear_onscreen_counter $c3_trailer_health_display
clear_mission_audio MissionAudioSlot.Slot3
delete_char 322@
delete_car 352@
mark_model_as_no_longer_needed 41
mark_model_as_no_longer_needed 95
mark_model_as_no_longer_needed 67
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 15
mark_model_as_no_longer_needed 543
mark_model_as_no_longer_needed 468
if 
  not is_char_dead $catalina
goto_if_false @CAT3_17366
remove_char_elegantly $catalina

:CAT3_17366
unload_special_character 1
remove_animation "CAR_CHAT"
remove_animation "MISC"
remove_car_recording 188
remove_car_recording 189
remove_car_recording 199
$onmission = 0
$timer_mobile_start = get_game_timer 
do_fade 500 {direction} Fade.In

:CAT3_17424
if 
  get_fading_status 
goto_if_false @CAT3_17448
wait 0
goto @CAT3_17424

:CAT3_17448
mission_has_finished 
return 

:CAT3_17452
if or
  301@ == 1
  301@ == 5
  301@ == 6
  301@ == 8
  301@ == 11
  301@ == 12
goto_if_false @CAT3_17513
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17513
if or
  301@ == 16
  301@ == 20
  301@ == 21
  301@ == 22
  301@ == 23
  301@ == 24
goto_if_false @CAT3_17574
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17574
if or
  301@ == 25
  301@ == 26
  301@ == 40
  301@ == 41
  301@ == 42
  301@ == 43
goto_if_false @CAT3_17635
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17635
if or
  301@ == 45
  301@ == 47
goto_if_false @CAT3_17668
set_lvar_int_to_var_int 244@ = $catalina

:CAT3_17668
if or
  301@ == 2
  301@ == 3
  301@ == 7
  301@ == 10
  301@ == 13
  301@ == 14
goto_if_false @CAT3_17729
set_lvar_int_to_lvar_int 244@ = 310@

:CAT3_17729
if or
  301@ == 17
  301@ == 18
goto_if_false @CAT3_17762
set_lvar_int_to_lvar_int 244@ = 310@

:CAT3_17762
if or
  301@ == 27
  301@ == 28
  301@ == 29
  301@ == 30
goto_if_false @CAT3_17808
244@ = 0

:CAT3_17808
if or
  301@ == 31
  301@ == 32
  301@ == 15
goto_if_false @CAT3_17847
244@ = 0

:CAT3_17847
if or
  301@ == 4
  301@ == 19
goto_if_false @CAT3_17880
set_lvar_int_to_lvar_int 244@ = 311@

:CAT3_17880
if or
  301@ == 33
  301@ == 34
  301@ == 35
goto_if_false @CAT3_17919
244@ = 0

:CAT3_17919
if or
  301@ == 36
  301@ == 37
  301@ == 38
  301@ == 39
goto_if_false @CAT3_17965
244@ = 0

:CAT3_17965
if or
  301@ == 44
  301@ == 46
  301@ == 48
  301@ == 49
  301@ == 50
  301@ == 51
goto_if_false @CAT3_18026
set_lvar_int_to_lvar_int 244@ = 322@

:CAT3_18026
if 
  301@ == 52
goto_if_false @CAT3_18052
set_lvar_int_to_lvar_int 244@ = 322@

:CAT3_18052
if 
  301@ == 9
goto_if_false @CAT3_18078
set_lvar_int_to_var_int 244@ = $scplayer

:CAT3_18078
return 
if 
  not is_char_dead $scplayer
goto_if_false @CAT3_18186
if 
  36@ == 0
goto_if_false @CAT3_18145
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT3_18145
308@ = store_car_char_is_in $scplayer
36@ = 1

:CAT3_18145
if 
  36@ == 1
goto_if_false @CAT3_18186
if 
  not is_char_in_any_car $scplayer
goto_if_false @CAT3_18186
36@ = 0

:CAT3_18186
return 

:CAT3_18188
if and
  not is_char_dead $scplayer
  not is_char_dead $catalina
goto_if_false @CAT3_18825
if 
  49@ == 0
goto_if_false @CAT3_18628
if and
  35@ > 1
  5 > 35@
goto_if_false @CAT3_18628
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_18628
if 
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @CAT3_18628
if 
  35@ == 2
goto_if_false @CAT3_18433
if 
  36@ == 1
goto_if_false @CAT3_18379
if 
  not is_car_dead 334@
goto_if_false @CAT3_18379
remove_blip 335@
335@ = add_blip_for_car 334@
set_blip_as_friendly 335@ {state} True

:CAT3_18379
if 
  36@ == 0
goto_if_false @CAT3_18433
if 
  not is_car_dead 327@
goto_if_false @CAT3_18433
remove_blip 328@
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True

:CAT3_18433
if 
  35@ == 4
goto_if_false @CAT3_18577
if 
  36@ == 1
goto_if_false @CAT3_18516
128@ = 4
remove_blip 41@
41@ = add_blip_for_coord 50@ {y} 51@ {z} 52@
clear_onscreen_counter $c3_trailer_health_display
display_onscreen_counter_with_string $c3_trailer_health_display {display} CounterDisplay.Bar {text} 'CAT3_11'

:CAT3_18516
if 
  36@ == 0
goto_if_false @CAT3_18577
if 
  not is_car_dead 327@
goto_if_false @CAT3_18577
128@ = 4
remove_blip 328@
328@ = add_blip_for_car 327@
set_blip_as_friendly 328@ {state} True

:CAT3_18577
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $catalina
remove_blip 309@
if and
  35@ <> 1
  35@ <> 3
goto_if_false @CAT3_18621
clear_prints 

:CAT3_18621
49@ = 1

:CAT3_18628
if 
  49@ == 1
goto_if_false @CAT3_18825
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT3_18825
if 
  35@ == 2
goto_if_false @CAT3_18711
remove_blip 335@
if 
  36@ == 0
goto_if_false @CAT3_18711
remove_blip 328@

:CAT3_18711
if 
  35@ == 4
goto_if_false @CAT3_18769
clear_onscreen_counter $c3_trailer_health_display
remove_blip 41@
128@ = 10
if 
  36@ == 0
goto_if_false @CAT3_18769
remove_blip 328@

:CAT3_18769
309@ = add_blip_for_char $catalina
set_blip_as_friendly 309@ {state} True
if 
  35@ <> 3
goto_if_false @CAT3_18818
print_now 'CAT3_01' {time} 5000 {flag} 1

:CAT3_18818
49@ = 0

:CAT3_18825
return 

//-------------Mission 44---------------
// Originally: Against All Odds

:CAT4
script_name 'CAT4'
gosub @CAT4_47
if 
  has_deatharrest_been_executed 
goto_if_false @CAT4_38
gosub @CAT4_18296

:CAT4_38
gosub @CAT4_18425
terminate_this_script 

:CAT4_47
$onmission = 1
switch_entry_exit 'GENOTB' {state} False
if 
  is_player_playing $player1
goto_if_false @CAT4_90
set_player_control $player1 {state} False

:CAT4_90
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
switch_widescreen True

:CAT4_109
if 
  get_fading_status 
goto_if_false @CAT4_133
wait 0
goto @CAT4_109

:CAT4_133
if 
  is_player_playing $player1
goto_if_false @CAT4_161
set_char_heading $scplayer {heading} 64.0
set_camera_behind_player 

:CAT4_161
111@ = find_max_number_of_group_members 
111@ -= 1
if 
  0 >= 111@
goto_if_false @CAT4_202
set_script_limit_to_gang_size 1
goto @CAT4_207

:CAT4_202
set_script_limit_to_gang_size 111@

:CAT4_207
make_room_in_player_gang_for_mission_peds 1
request_model 348
request_model 364
request_model 363
request_model #RIDER1_DOOR
request_model #KEV_SAFE
request_model #MAN_SAFENEW
request_animation "MISC"

:CAT4_249
if or
  not has_model_loaded 363
  not has_model_loaded 364
goto_if_false @CAT4_281
wait 0
goto @CAT4_249

:CAT4_281
load_mission_text 'CAT'
107@ = 1
88@ = 1
89@ = 0
90@ = 0
91@ = 0
96@ = 0
$flag_has_safe_been_robbed_cat4 = 0
99@ = 0
$flag_otb_robbing_peds_panic = 0
92@ = 0
98@ = 0
100@ = 0
275@ = 0
104@ = 0
109@ = 0
107@ = 0
102@ = 0
108@ = 0
106@ = 1
94@ = 0
95@ = 0
103@ = 0
38@ = 0
97@ = 0
93@ = 0
101@ = 0
117@ = 0
$counter_robbery_cat4 = 0
274@ = 0
105@ = 0
61@ = 1289.851
62@ = 269.8778
63@ = 19.5888
64@ = 820.2197
65@ = 4.2019
66@ = 1004.661
67@ = 719.17
68@ = -457.68
69@ = 16.92
70@ = 822.4665
76@ = 1.7837
82@ = 1003.1
71@ = 822.0091
77@ = 6.0787
83@ = 1003.17
72@ = 832.8624
78@ = 0.7513
84@ = 1003.18
73@ = 830.9443
79@ = 0.3996
85@ = 1003.17
74@ = 827.839
80@ = -0.2443
86@ = 1003.1
75@ = 829.2125
81@ = 2.0354
87@ = 1003.17
if 
  $cat_getaway_dialogue == 0
goto_if_false @CAT4_1357
if 
  $cat_counter == 0
goto_if_false @CAT4_1108
set_lvar_text_label 118@s = 'CAT_DA'
set_lvar_text_label 120@s = 'CAT_DE'
set_lvar_text_label 122@s = 'CAT_DF'
set_lvar_text_label 124@s = 'CAT_DG'
set_lvar_text_label 126@s = 'CAT_DH'
set_lvar_text_label 128@s = 'CAT_DI'
set_lvar_text_label 130@s = 'CAT_DJ'
set_lvar_text_label 132@s = 'CAT_DK'
set_lvar_text_label 134@s = 'CAT_DL'
set_lvar_text_label 136@s = 'CAT_DM'
set_lvar_text_label 138@s = 'CAT_DN'
set_lvar_text_label 140@s = 'CAT_DO'
set_lvar_text_label 142@s = 'CAT_DP'
set_lvar_int_to_constant 222@ = 8626
set_lvar_int_to_constant 223@ = 8630
set_lvar_int_to_constant 224@ = 8631
set_lvar_int_to_constant 225@ = 8632
set_lvar_int_to_constant 226@ = 8633
set_lvar_int_to_constant 227@ = 8634
set_lvar_int_to_constant 228@ = 8635
set_lvar_int_to_constant 229@ = 8636
set_lvar_int_to_constant 230@ = 8637
set_lvar_int_to_constant 231@ = 8638
set_lvar_int_to_constant 232@ = 8639
set_lvar_int_to_constant 233@ = 8640
set_lvar_int_to_constant 234@ = 8641
110@ = 16
goto @CAT4_1357

:CAT4_1108
set_lvar_text_label 118@s = 'CAT_DF'
set_lvar_text_label 120@s = 'CAT_DG'
set_lvar_text_label 122@s = 'CAT_DH'
set_lvar_text_label 124@s = 'CAT_DI'
set_lvar_text_label 126@s = 'CAT_DJ'
set_lvar_text_label 128@s = 'CAT_DK'
set_lvar_text_label 130@s = 'CAT_DL'
set_lvar_text_label 132@s = 'CAT_DM'
set_lvar_text_label 134@s = 'CAT_DN'
set_lvar_text_label 136@s = 'CAT_DO'
set_lvar_text_label 138@s = 'CAT_DP'
set_lvar_int_to_constant 222@ = 8631
set_lvar_int_to_constant 223@ = 8632
set_lvar_int_to_constant 224@ = 8633
set_lvar_int_to_constant 225@ = 8634
set_lvar_int_to_constant 226@ = 8635
set_lvar_int_to_constant 227@ = 8636
set_lvar_int_to_constant 228@ = 8637
set_lvar_int_to_constant 229@ = 8638
set_lvar_int_to_constant 230@ = 8639
set_lvar_int_to_constant 231@ = 8640
set_lvar_int_to_constant 232@ = 8641
110@ = 14

:CAT4_1357
if 
  $cat_getaway_dialogue == 1
goto_if_false @CAT4_1690
set_lvar_text_label 118@s = 'CAT_GA'
set_lvar_text_label 120@s = 'CAT_GB'
set_lvar_text_label 122@s = 'CAT_GC'
set_lvar_text_label 124@s = 'CAT_GD'
set_lvar_text_label 126@s = 'CAT_GE'
set_lvar_text_label 128@s = 'CAT_GF'
set_lvar_text_label 130@s = 'CAT_GG'
set_lvar_text_label 132@s = 'CAT_GH'
set_lvar_text_label 134@s = 'CAT_GI'
set_lvar_text_label 136@s = 'CAT_GJ'
set_lvar_text_label 138@s = 'CAT_GK'
set_lvar_text_label 140@s = 'CAT_GL'
set_lvar_text_label 142@s = 'CAT_GM'
set_lvar_text_label 144@s = 'CAT_GN'
set_lvar_int_to_constant 222@ = 8672
set_lvar_int_to_constant 223@ = 8673
set_lvar_int_to_constant 224@ = 8674
set_lvar_int_to_constant 225@ = 8675
set_lvar_int_to_constant 226@ = 8676
set_lvar_int_to_constant 227@ = 8677
set_lvar_int_to_constant 228@ = 8678
set_lvar_int_to_constant 229@ = 8679
set_lvar_int_to_constant 230@ = 8680
set_lvar_int_to_constant 231@ = 8681
set_lvar_int_to_constant 232@ = 8682
set_lvar_int_to_constant 233@ = 8683
set_lvar_int_to_constant 234@ = 8684
set_lvar_int_to_constant 235@ = 8685
110@ = 17

:CAT4_1690
if 
  $cat_getaway_dialogue == 2
goto_if_false @CAT4_1891
set_lvar_text_label 118@s = 'CAT_OA'
set_lvar_text_label 120@s = 'CAT_OB'
set_lvar_text_label 122@s = 'CAT_OC'
set_lvar_text_label 124@s = 'CAT_OD'
set_lvar_text_label 126@s = 'CAT_OE'
set_lvar_text_label 128@s = 'CAT_OF'
set_lvar_text_label 130@s = 'CAT_OG'
set_lvar_text_label 132@s = 'CAT_OH'
set_lvar_int_to_constant 222@ = 8725
set_lvar_int_to_constant 223@ = 8726
set_lvar_int_to_constant 224@ = 8727
set_lvar_int_to_constant 225@ = 8728
set_lvar_int_to_constant 226@ = 8729
set_lvar_int_to_constant 227@ = 8730
set_lvar_int_to_constant 228@ = 8731
set_lvar_int_to_constant 229@ = 8732
110@ = 11

:CAT4_1891
52@ = 0
112@ = add_blip_for_coord 61@ {y} 62@ {z} 63@
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
116@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
if 
  not is_char_dead $catalina
goto_if_false @CAT4_1969
113@ = add_blip_for_char $catalina
remove_blip 113@

:CAT4_1969
remove_blip 112@
remove_blip 115@
remove_blip 116@
remove_blip 113@
remove_blip $spray_shop4
54@ = load_char_decision_maker DecisionMakerType.Tough
enable_entry_exit_player_group_warping 833.0 {y} 9.0 {radius} 10.0 {state} False
enable_entry_exit_player_group_warping 1291.0 {y} 271.0 {radius} 10.0 {state} True
wait 0
if 
  88@ == 1
goto_if_false @CAT4_2068
gosub @CAT4_4355

:CAT4_2068
if 
  89@ == 1
goto_if_false @CAT4_2093
gosub @CAT4_13682

:CAT4_2093
if 
  90@ == 1
goto_if_false @CAT4_2118
goto @CAT4_18326

:CAT4_2118
if 
  91@ == 1
goto_if_false @CAT4_2143
goto @CAT4_18296

:CAT4_2143
return 

:CAT4_2145
if 
  89@ == 1
goto_if_false @CAT4_3613
if 
  93@ == 0
goto_if_false @CAT4_2849
if 
  not is_char_dead $catalina
goto_if_false @CAT4_2842
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @CAT4_2842
93@ = 1
if 
  101@ == 1
goto_if_false @CAT4_2248
94@ = 1000

:CAT4_2248
if 
  not does_blip_exist 116@
goto_if_false @CAT4_2280
116@ = add_sprite_blip_for_coord 67@ {y} 68@ {z} 69@ {sprite} RadarSprite.Spray

:CAT4_2280
if 
  106@ == 0
goto_if_false @CAT4_2821
if 
  281@ == 1
goto_if_false @CAT4_2686
if 
  102@ > 2
goto_if_false @CAT4_2341
102@ = 0

:CAT4_2341
if 
  102@ == 2
goto_if_false @CAT4_2456
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9889

:CAT4_2366
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_2392
wait 0
goto @CAT4_2366

:CAT4_2392
print_now 'CATX_UA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_2412
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_2438
wait 0
goto @CAT4_2412

:CAT4_2438
clear_this_print 'CATX_UA'
102@ += 1

:CAT4_2456
if 
  102@ == 1
goto_if_false @CAT4_2571
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9890

:CAT4_2481
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_2507
wait 0
goto @CAT4_2481

:CAT4_2507
print_now 'CATX_UB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_2527
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_2553
wait 0
goto @CAT4_2527

:CAT4_2553
clear_this_print 'CATX_UB'
102@ += 1

:CAT4_2571
if 
  102@ == 0
goto_if_false @CAT4_2686
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9894

:CAT4_2596
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_2622
wait 0
goto @CAT4_2596

:CAT4_2622
print_now 'CATX_UF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_2642
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_2668
wait 0
goto @CAT4_2642

:CAT4_2668
clear_this_print 'CATX_UF'
102@ += 1

:CAT4_2686
if 
  106@ == 0
goto_if_false @CAT4_2805
if 
  99@ == 0
goto_if_false @CAT4_2805
if 
  not is_char_dead $catalina
goto_if_false @CAT4_2805
if 
  not locate_char_any_means_3d $catalina {x} 67@ {y} 68@ {z} 69@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT4_2805
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
99@ = 1
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop

:CAT4_2805
print 'CAT4_32' {time} 5000 {flag} 1

:CAT4_2821
if 
  does_blip_exist 115@
goto_if_false @CAT4_2842
remove_blip 115@

:CAT4_2842
goto @CAT4_3613

:CAT4_2849
if 
  not is_char_dead $catalina
goto_if_false @CAT4_3306
if 
  100@ == 0
goto_if_false @CAT4_3094
if 
  locate_char_any_means_3d $catalina {x} 720.5 {y} -466.73 {z} 15.72 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CAT4_3094
if 
  100@ == 0
goto_if_false @CAT4_3094
print_now 'CAT4_37' {time} 5000 {flag} 1
if 
  99@ == 1
goto_if_false @CAT4_3087
if 
  not is_char_dead $catalina
goto_if_false @CAT4_3087
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3032
remove_char_from_group $catalina

:CAT4_3032
clear_char_tasks $catalina
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3071
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_3071
set_char_relationship $catalina {relationshipType} RelationshipType.Like {pedType} PedType.Cop
99@ = 0

:CAT4_3087
100@ = 1

:CAT4_3094
if 
  100@ == 1
goto_if_false @CAT4_3185
if 
  not locate_char_any_means_3d $catalina {x} 720.5 {y} -460.73 {z} 15.72 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CAT4_3185
if 
  100@ == 1
goto_if_false @CAT4_3185
100@ = 0

:CAT4_3185
if 
  106@ == 0
goto_if_false @CAT4_3306
if 
  99@ == 0
goto_if_false @CAT4_3306
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @CAT4_3306
if 
  not locate_char_any_means_3d $catalina {x} 67@ {y} 68@ {z} 69@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @CAT4_3306
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
99@ = 1

:CAT4_3306
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @CAT4_3613
93@ = 0
$game_timer2_cat4 = get_game_timer 
if 
  not does_blip_exist 115@
goto_if_false @CAT4_3463
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
change_blip_colour 115@ {color} BlipColor.Yellow
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9824

:CAT4_3380
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_3406
wait 0
goto @CAT4_3380

:CAT4_3406
print_now 'CATX_DE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_3426
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_3452
wait 0
goto @CAT4_3426

:CAT4_3452
clear_this_print 'CATX_DE'

:CAT4_3463
if 
  does_blip_exist 116@
goto_if_false @CAT4_3484
remove_blip 116@

:CAT4_3484
if 
  99@ == 1
goto_if_false @CAT4_3606
if 
  not is_char_dead $catalina
goto_if_false @CAT4_3606
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3551
remove_char_from_group $catalina

:CAT4_3551
clear_char_tasks $catalina
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_3590
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_3590
set_char_relationship $catalina {relationshipType} RelationshipType.Like {pedType} PedType.Cop
99@ = 0

:CAT4_3606
TIMERA = 0

:CAT4_3613
if 
  is_player_playing $player1
goto_if_false @CAT4_4353
if 
  locate_char_any_means_3d $scplayer {x} 64@ {y} 65@ {z} 66@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @CAT4_4168
if 
  38@ == 0
goto_if_false @CAT4_4150
clear_this_print 'CAT4_01'
if 
  103@ == 0
goto_if_false @CAT4_3765
39@ = create_object #RIDER1_DOOR {x} 824.4123 {y} 10.85 {z} 1003.2
set_object_heading 39@ {heading} 175.0
freeze_object_position 39@ {state} True
set_object_collision_damage_effect 39@ {state} False

:CAT4_3765
if 
  103@ == 1
goto_if_false @CAT4_3783

:CAT4_3783
if 
  $flag_has_safe_been_robbed_cat4 == 0
goto_if_false @CAT4_3831
40@ = create_object #KEV_SAFE {x} 820.5 {y} 9.7 {z} 1003.216
goto @CAT4_3854

:CAT4_3831
40@ = create_object #MAN_SAFENEW {x} 820.5 {y} 9.7 {z} 1003.216

:CAT4_3854
set_object_heading 40@ {heading} 90.0
if 
  89@ == 1
goto_if_false @CAT4_3903
if 
  does_blip_exist 115@
goto_if_false @CAT4_3903
remove_blip 115@

:CAT4_3903
if 
  96@ <> 0
goto_if_false @CAT4_4150
if 
  88@ == 1
goto_if_false @CAT4_4150
if 
  does_blip_exist 112@
goto_if_false @CAT4_3962
remove_blip 112@
clear_prints 

:CAT4_3962
if 
  not is_char_dead $catalina
goto_if_false @CAT4_4150
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 823.13 {y} 2.2 {z} 1003.18
set_char_heading $catalina {heading} 107.0
set_char_area_visible $catalina {areaId} 3
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 900000
freeze_char_position_and_dont_load_collision $catalina {state} False
report_mission_audio_event_at_position 64@ {y} 65@ {z} 66@ {soundId} ScriptSound.SoundCat2SecurityAlarm
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9830

:CAT4_4067
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_4093
wait 0
goto @CAT4_4067

:CAT4_4093
print_now 'CATX_JE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_4113
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_4139
wait 0
goto @CAT4_4113

:CAT4_4139
clear_this_print 'CATX_JE'

:CAT4_4150
display_radar False
38@ = 1
goto @CAT4_4353

:CAT4_4168
if 
  38@ == 1
goto_if_false @CAT4_4353
if 
  does_object_exist 39@
goto_if_false @CAT4_4207
delete_object 39@

:CAT4_4207
if 
  does_object_exist 40@
goto_if_false @CAT4_4228
delete_object 40@

:CAT4_4228
clear_area 61@ {y} 62@ {z} 63@ {radius} 1000.0 {clearParticles} True
if 
  88@ == 1
goto_if_false @CAT4_4342
if 
  not does_blip_exist 112@
goto_if_false @CAT4_4342
112@ = add_blip_for_coord 61@ {y} 62@ {z} 63@
set_coord_blip_appearance 112@ {color} CoordAppearance.Friend
print_now 'CAT4_16' {time} 10000 {flag} 1
clear_help 
if 
  not is_char_dead $catalina
goto_if_false @CAT4_4342
freeze_char_position_and_dont_load_collision $catalina {state} True

:CAT4_4342
display_radar True
38@ = 0

:CAT4_4353
return 

:CAT4_4355
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT4_4406
41@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 1291.575 {y} 269.5648 {z} 18.5469
goto @CAT4_4426

:CAT4_4406
set_char_coordinates $scplayer {x} 1291.575 {y} 269.5648 {z} 18.5469

:CAT4_4426
set_char_heading $scplayer {heading} 60.0
57@ = create_object 363 {x} 1288.141 {y} 267.9079 {z} 18.5469
if 
  not is_char_dead $catalina
goto_if_false @CAT4_4480
delete_char $catalina

:CAT4_4480
load_special_character 5 {modelName} 'CAT'

:CAT4_4493
if 
  not has_special_character_loaded 5
goto_if_false @CAT4_4519
wait 0
goto @CAT4_4493

:CAT4_4519
$catalina = create_char PedType.Special {modelId} 294 {x} 1288.277 {y} 268.9509 {z} 18.9469
set_char_get_out_upside_down_car $catalina {state} False
set_char_heading $catalina {heading} 321.0
set_char_only_damaged_by_player $catalina {state} True
set_char_never_targetted $catalina {state} True
shut_char_up_for_scripted_speech $catalina {state} True
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_4606
remove_char_from_group $catalina

:CAT4_4606
if 
  not is_car_dead 41@
goto_if_false @CAT4_4652
set_car_coordinates 41@ {x} 1297.0 {y} 278.0 {z} 18.0
set_car_heading 41@ {heading} 150.0

:CAT4_4652
276@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker $Players_Group {handleOrTemplate} 276@
clear_group_decision_maker_event_response 276@ {event} Event.Damage
clear_group_decision_maker_event_response 276@ {event} Event.VehicleDamageWeapon
55@ = load_char_decision_maker DecisionMakerType.Empty
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker $catalina {handleOrTemplate} 55@
task_toggle_ped_threat_scanner $catalina {onFoot} True {inCar} True {duringScriptTask} True
clear_char_decision_maker_event_response 55@ {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response 55@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_shoot_rate $catalina {rate} 100
if 
  does_object_exist 57@
goto_if_false @CAT4_4821
task_pick_up_object $catalina {object} 57@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:CAT4_4821
if 
  not has_animation_loaded "MISC"
goto_if_false @CAT4_4851
wait 0
goto @CAT4_4821

:CAT4_4851
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position 1284.625 {y} 257.5731 {z} 23.8334 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1284.5081 {y} 258.5662 {z} 23.824 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1284.625 {fromY} 257.5731 {fromZ} 23.8334 {toX} 1287.068 {toY} 258.5688 {toZ} 22.872 {time} 4500 {ease} True
camera_set_vector_track 1284.5081 {fromY} 258.5662 {fromZ} 23.824 {toX} 1287.1801 {toY} 259.5328 {toZ} 22.6311 {time} 4500 {ease} True
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5039
set_char_coordinates $catalina {x} 1288.277 {y} 268.9509 {z} 18.546
set_char_heading $catalina {heading} 321.0

:CAT4_5039
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
load_scene_in_direction 1284.625 {y} 257.5731 {z} 23.8334 {heading} 45.0
clear_area 1287.363 {y} 257.5327 {z} 23.0934 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In

:CAT4_5106
if 
  get_fading_status 
goto_if_false @CAT4_5130
wait 0
goto @CAT4_5106

:CAT4_5130
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_5151
if 
  97@ <> 10
goto_if_false @CAT4_6251
wait 0
if 
  97@ == 0
goto_if_false @CAT4_5301
start_char_facial_talk $scplayer {duration} 10000
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9001

:CAT4_5206
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_5232
wait 0
goto @CAT4_5206

:CAT4_5232
print_now 'CAT2_AB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_5252
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_5278
wait 0
goto @CAT4_5252

:CAT4_5278
clear_this_print 'CAT2_AB'
stop_char_facial_talk $scplayer
97@ = 1

:CAT4_5301
if 
  97@ == 1
goto_if_false @CAT4_5367
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5360
task_go_straight_to_coord $catalina {x} 1290.9301 {y} 269.75 {z} 18.5469 {speed} MoveState.Walk {time} 3000

:CAT4_5360
97@ = 2

:CAT4_5367
if 
  TIMERB > 3000
goto_if_false @CAT4_5599
if 
  97@ == 2
goto_if_false @CAT4_5599
camera_reset_new_scriptables 
set_fixed_camera_position 1292.4449 {y} 266.8836 {z} 19.0157 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1291.756 {y} 267.5977 {z} 19.1396 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9002

:CAT4_5464
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_5490
wait 0
goto @CAT4_5464

:CAT4_5490
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5534
print_now 'CAT2_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk $scplayer {duration} 10000

:CAT4_5534
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_5560
wait 0
goto @CAT4_5534

:CAT4_5560
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5581
stop_char_facial_talk $catalina

:CAT4_5581
clear_this_print 'CAT2_AC'
97@ = 3

:CAT4_5599
if 
  97@ == 3
goto_if_false @CAT4_5995
set_fixed_camera_position 1300.118 {y} 272.2002 {z} 20.6733 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1299.156 {y} 271.9637 {z} 20.5352 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5726
task_play_anim $catalina {animationName} "PASS_RIFLE_PED" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CAT4_5726
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9859

:CAT4_5733
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_5759
wait 0
goto @CAT4_5733

:CAT4_5759
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5780
clear_char_tasks $catalina

:CAT4_5780
task_play_anim $scplayer {animationName} "PASS_RIFLE_PLY" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  does_object_exist 57@
goto_if_false @CAT4_5879
task_pick_up_object $scplayer {object} 57@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:CAT4_5879
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5903
start_char_facial_talk $catalina {duration} 10000

:CAT4_5903
print_now 'CATX_RB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_5923
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_5949
wait 0
goto @CAT4_5923

:CAT4_5949
clear_this_print 'CATX_RB'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_5981
stop_char_facial_talk $catalina

:CAT4_5981
97@ = 4
TIMERA = 0

:CAT4_5995
if 
  97@ == 4
goto_if_false @CAT4_6150
if 
  not is_char_dead $catalina
goto_if_false @CAT4_6053
task_go_straight_to_coord $catalina {x} 1292.8101 {y} 269.01 {z} 18.5469 {speed} MoveState.Walk {time} -1

:CAT4_6053
97@ = 5
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9031

:CAT4_6067
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_6093
wait 0
goto @CAT4_6067

:CAT4_6093
print_now 'CAT2_JA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_6113
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_6139
wait 0
goto @CAT4_6113

:CAT4_6139
clear_this_print 'CAT2_JA'

:CAT4_6150
if 
  97@ == 5
goto_if_false @CAT4_6194
if 
  TIMERA > 1500
goto_if_false @CAT4_6194
97@ = 10

:CAT4_6194
if 
  TIMERB > 10000
goto_if_false @CAT4_6220
97@ = 10

:CAT4_6220
if 
  is_skip_cutscene_button_pressed 
goto_if_false @CAT4_6244
clear_mission_audio MissionAudioSlot.Slot1
97@ = 10

:CAT4_6244
goto @CAT4_5151

:CAT4_6251
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
if 
  does_object_exist 57@
goto_if_false @CAT4_6287
delete_object 57@

:CAT4_6287
camera_reset_new_scriptables 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_entry_exit 'GENOTB' {state} True
if 
  not is_char_dead $catalina
goto_if_false @CAT4_6337
stop_char_facial_talk $catalina

:CAT4_6337
stop_char_facial_talk $scplayer
if 
  not is_car_dead 41@
goto_if_false @CAT4_6373
set_car_health 41@ {health} 1000
set_can_burst_car_tyres 41@ {state} False

:CAT4_6373
give_weapon_to_char $scplayer {weaponType} WeaponType.Satchel {ammo} 10
if 
  not is_char_dead $catalina
goto_if_false @CAT4_6432
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_6432
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} False

:CAT4_6432
112@ = add_sprite_blip_for_coord 61@ {y} 62@ {z} 63@ {sprite} RadarSprite.CatalinaPink
print_now 'CAT4_01' {time} 10000 {flag} 1

:CAT4_6464
if 
  not has_model_loaded #KEV_SAFE
goto_if_false @CAT4_6491
wait 0
goto @CAT4_6464

:CAT4_6491
if 
  not has_model_loaded #MAN_SAFENEW
goto_if_false @CAT4_6518
wait 0
goto @CAT4_6491

:CAT4_6518
if or
  not has_model_loaded 348
  not has_model_loaded #RIDER1_DOOR
goto_if_false @CAT4_6550
wait 0
goto @CAT4_6518

:CAT4_6550
if 
  38@ <> 1
goto_if_false @CAT4_6833
wait 0
gosub @CAT4_2145
if 
  not locate_char_any_means_3d $scplayer {x} 64@ {y} 65@ {z} 66@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @CAT4_6628
gosub @CAT4_16165

:CAT4_6628
if 
  91@ == 1
goto_if_false @CAT4_6648
return 

:CAT4_6648
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CAT4_6686
88@ = 0
89@ = 0
90@ = 1
return 

:CAT4_6686
58@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
59@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Detonator
if and
  0 >= 58@
  0 >= 59@
goto_if_false @CAT4_6826
if 
  275@ <> 1
goto_if_false @CAT4_6826
if 
  not is_explosion_in_area ExplosionType.Grenade {leftBottomX} 819.55 {leftBottomY} 8.09 {leftBottomZ} 1003.4 {rightTopX} 822.27 {rightTopY} 10.98 {rightTopZ} 1005.72
goto_if_false @CAT4_6826
88@ = 0
91@ = 1
print_now 'CAT4_2' {time} 10000 {flag} 1
return 

:CAT4_6826
goto @CAT4_6550

:CAT4_6833
remove_blip 112@
if 
  96@ == 0
goto_if_false @CAT4_9015
if 
  38@ == 1
goto_if_false @CAT4_9015
remove_animation "MISC"
clear_small_prints 
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position 833.5528 {y} 9.9425 {z} 1003.91 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 832.7419 {y} 9.3669 {z} 1004.01 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1826
53@ = 0

:CAT4_6962
if 
  6 > 53@
goto_if_false @CAT4_7024
create_random_char 70@(53@,6f) {y} 76@(53@,6f) {z} 82@(53@,6f) {var_handle} 46@(53@,6i)
53@ += 1
goto @CAT4_6962

:CAT4_7024
display_radar False
96@ = 1
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_7056
if 
  97@ <> 10
goto_if_false @CAT4_8896
wait 0
if 
  97@ >= 2
goto_if_false @CAT4_7115
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CAT4_7115
play_mission_audio MissionAudioSlot.Slot3

:CAT4_7115
if 
  97@ == 0
goto_if_false @CAT4_7434
set_char_coordinates $scplayer {x} 832.4548 {y} 7.0794 {z} 1003.187
task_go_straight_to_coord $scplayer {x} 828.2866 {y} 8.2237 {z} 1003.187 {speed} MoveState.Walk {time} 5000
clear_area 828.2866 {y} 8.2237 {z} 1003.187 {radius} 2.0 {clearParticles} True
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7427
set_char_proofs $catalina {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_accuracy $catalina {accuracy} 90
clear_char_tasks $catalina
set_char_area_visible $catalina {areaId} 3
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_7276
remove_char_from_group $catalina

:CAT4_7276
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_7319
warp_char_from_car_to_coord $catalina {x} 833.5104 {y} 4.3569 {z} 1003.587
goto @CAT4_7339

:CAT4_7319
set_char_coordinates $catalina {x} 833.5104 {y} 4.3569 {z} 1003.187

:CAT4_7339
set_char_has_used_entry_exit $catalina {x} 1290.0 {y} 270.0 {radius} 10.0
set_char_heading $catalina {heading} 107.0
give_weapon_to_char $catalina {weaponType} WeaponType.DesertEagle {ammo} 10000
task_go_straight_to_coord $catalina {x} 824.3764 {y} 3.4945 {z} 1003.18 {speed} MoveState.Run {time} -1
clear_area 824.3764 {y} 3.4945 {z} 1003.18 {radius} 2.0 {clearParticles} True

:CAT4_7427
97@ = 1

:CAT4_7434
if 
  97@ == 1
goto_if_false @CAT4_8114
if 
  TIMERA > 2000
goto_if_false @CAT4_8114
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8107
clear_char_tasks $catalina
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 824.3764 {y} 3.4945 {z} 1003.18 {speed} MoveState.Run {time} 3000
task_aim_gun_at_coord -1 {x} 64@ {y} 65@ {z} 66@ {time} 5000
close_sequence_task 56@
perform_sequence_task $catalina {sequence} 56@
clear_sequence_task 56@
$iSetOTBPanic = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9010

:CAT4_7569
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_7595
wait 0
goto @CAT4_7569

:CAT4_7595
print_now 'CAT2_DA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7639
start_char_facial_talk $catalina {duration} 10000

:CAT4_7639
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_7665
wait 0
goto @CAT4_7639

:CAT4_7665
clear_this_print 'CAT2_DA'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7697
stop_char_facial_talk $catalina

:CAT4_7697
set_fixed_camera_position 829.9543 {y} 8.6043 {z} 1004.892 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 829.2075 {y} 7.9448 {z} 1004.806 {switchStyle} SwitchType.JumpCut
task_look_at_coord $scplayer {x} 824.17 {y} 3.95 {z} 1007.0 {time} 3000
if 
  not is_char_dead $catalina
goto_if_false @CAT4_7839
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 824.3764 {y} 3.4945 {z} 1003.18
set_char_heading $catalina {heading} 107.0
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 5000

:CAT4_7839
53@ = 0

:CAT4_7846
if 
  6 > 53@
goto_if_false @CAT4_7965
if 
  not is_char_dead 46@(53@,6i)
goto_if_false @CAT4_7951
if or
  53@ == 0
  53@ == 3
  53@ == 5
goto_if_false @CAT4_7937
task_hands_up 46@(53@,6i) {time} 900000
goto @CAT4_7951

:CAT4_7937
task_duck 46@(53@,6i) {time} 900000

:CAT4_7951
53@ += 1
goto @CAT4_7846

:CAT4_7965
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9011

:CAT4_7972
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_7998
wait 0
goto @CAT4_7972

:CAT4_7998
print_now 'CAT2_DB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8042
start_char_facial_talk $catalina {duration} 10000

:CAT4_8042
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_8068
wait 0
goto @CAT4_8042

:CAT4_8068
clear_this_print 'CAT2_DB'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8100
stop_char_facial_talk $catalina

:CAT4_8100
TIMERA = 0

:CAT4_8107
97@ = 2

:CAT4_8114
if 
  97@ == 2
goto_if_false @CAT4_8346
if 
  TIMERA > 500
goto_if_false @CAT4_8346
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8339
clear_char_tasks $catalina
task_stand_still $catalina {time} 900000
set_fixed_camera_position 821.8057 {y} 3.2657 {z} 1005.09 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 822.7056 {y} 3.6678 {z} 1004.921 {switchStyle} SwitchType.JumpCut
task_look_at_coord $scplayer {x} 824.17 {y} 3.95 {z} 1007.0 {time} 3000
task_look_at_coord $catalina {x} 824.17 {y} 3.95 {z} 1007.0 {time} 2000
task_aim_gun_at_coord $catalina {x} 819.55 {y} 5.55 {z} 1005.59 {time} 5000
report_mission_audio_event_at_position 64@ {y} 65@ {z} 66@ {soundId} ScriptSound.SoundCat2SecurityAlarm
print_now 'CAT4_3' {time} 5000 {flag} 1
TIMERA = 0

:CAT4_8339
97@ = 3

:CAT4_8346
if 
  97@ == 3
goto_if_false @CAT4_8609
if 
  TIMERA > 2000
goto_if_false @CAT4_8609
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8416
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 5000

:CAT4_8416
clear_this_print 'CAT4_3'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9016

:CAT4_8434
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_8460
wait 0
goto @CAT4_8434

:CAT4_8460
print_now 'CAT2_FA' {time} 10000 {flag} 1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8500
start_char_facial_talk $catalina {duration} 10000

:CAT4_8500
play_mission_audio MissionAudioSlot.Slot1

:CAT4_8504
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_8530
wait 0
goto @CAT4_8504

:CAT4_8530
clear_this_print 'CAT2_FA'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8562
stop_char_facial_talk $catalina

:CAT4_8562
if 
  is_player_playing $player1
goto_if_false @CAT4_8588
task_achieve_heading $scplayer {heading} 112.0

:CAT4_8588
$flag_otb_robbing_peds_panic = 1
97@ = 4
TIMERA = 0

:CAT4_8609
if 
  97@ == 4
goto_if_false @CAT4_8863
if 
  TIMERA > 1000
goto_if_false @CAT4_8863
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8856
clear_char_tasks $catalina
set_fixed_camera_position 829.9543 {y} 8.6043 {z} 1004.892 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 829.2075 {y} 7.9448 {z} 1004.806 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8766
if 
  not is_char_dead 46@(52@,6i)
goto_if_false @CAT4_8766
task_kill_char_on_foot $catalina {target} 46@(52@,6i)

:CAT4_8766
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9017

:CAT4_8773
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_8799
wait 0
goto @CAT4_8773

:CAT4_8799
print 'CAT2_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_8819
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_8845
wait 0
goto @CAT4_8819

:CAT4_8845
clear_this_print 'CAT2_FB'

:CAT4_8856
97@ = 5

:CAT4_8863
if 
  TIMERB > 17000
goto_if_false @CAT4_8889
97@ = 10

:CAT4_8889
goto @CAT4_7056

:CAT4_8896
if 
  is_player_playing $player1
goto_if_false @CAT4_9015
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_char_dead $catalina
goto_if_false @CAT4_8962
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 900000

:CAT4_8962
59@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
60@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
96@ = 1
$flag_otb_robbing_peds_panic = 1
TIMERA = 0
TIMERB = 0
$game_timer2_cat4 = get_game_timer 

:CAT4_9015
TIMERB = 0

:CAT4_9022
if 
  117@ <> 1
goto_if_false @CAT4_13666
wait 0
58@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
59@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Detonator
if and
  0 >= 58@
  0 >= 59@
goto_if_false @CAT4_9184
if 
  275@ <> 1
goto_if_false @CAT4_9184
if 
  not is_explosion_in_area ExplosionType.Grenade {leftBottomX} 819.55 {leftBottomY} 8.09 {leftBottomZ} 1003.4 {rightTopX} 822.27 {rightTopY} 10.98 {rightTopZ} 1005.72
goto_if_false @CAT4_9184
88@ = 0
91@ = 1
print_now 'CAT4_2' {time} 5000 {flag} 1
return 

:CAT4_9184
if 
  is_char_dead $catalina
goto_if_false @CAT4_9232
88@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_9232
if 
  108@ == 0
goto_if_false @CAT4_9275
print_help 'CAT4_43'
108@ = 1
TIMERB = 0

:CAT4_9275
if 
  108@ == 1
goto_if_false @CAT4_9342
if 
  TIMERB > 6000
goto_if_false @CAT4_9342
print_now 'CAT4_42' {time} 6000 {flag} 1
108@ = 2
TIMERB = 0

:CAT4_9342
if 
  2 >= 108@
goto_if_false @CAT4_9413
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Satchel
goto_if_false @CAT4_9413
if 
  is_int_lvar_greater_than_int_lvar 60@ > 58@
goto_if_false @CAT4_9413
clear_help 
108@ = 3
TIMERB = 0

:CAT4_9413
if 
  108@ == 3
goto_if_false @CAT4_9491
if 
  TIMERB > 1500
goto_if_false @CAT4_9491
print_now 'CAT4_44' {time} 6000 {flag} 1
print_help 'CAT4_45'
108@ = 4
TIMERB = 0

:CAT4_9491
if 
  4 >= 108@
goto_if_false @CAT4_9598
if 
  does_object_exist 39@
goto_if_false @CAT4_9598
if 
  has_object_of_type_been_smashed 824.4123 {y} 10.8 {z} 1003.2 {radius} 10.0 {modelId} #RIDER1_DOOR
goto_if_false @CAT4_9598
if 
  TIMERB > 500
goto_if_false @CAT4_9598
clear_small_prints 
clear_help 
108@ = 5
TIMERB = 0

:CAT4_9598
if 
  108@ == 5
goto_if_false @CAT4_9783
clear_help 
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9012

:CAT4_9625
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_9651
wait 0
goto @CAT4_9625

:CAT4_9651
print 'CAT2_DC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead $catalina
goto_if_false @CAT4_9695
start_char_facial_talk $catalina {duration} 10000

:CAT4_9695
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_9721
wait 0
goto @CAT4_9695

:CAT4_9721
clear_this_print 'CAT2_DC'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_9753
stop_char_facial_talk $catalina

:CAT4_9753
print_now 'CAT4_46' {time} 10000 {flag} 1
108@ = 6
TIMERB = 0

:CAT4_9783
if 
  38@ == 1
goto_if_false @CAT4_10826
$game_timer1_cat4 = get_game_timer 
sub_int_var_from_int_var $game_timer1_cat4 -= $game_timer2_cat4
if 
  94@ == 0
goto_if_false @CAT4_9844
94@ = 1
$game_timer2_cat4 = get_game_timer 

:CAT4_9844
$game_timer1_cat4 = get_game_timer 
sub_int_var_from_int_var $game_timer1_cat4 -= $game_timer2_cat4
if 
  94@ == 1
goto_if_false @CAT4_10003
94@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9018

:CAT4_9889
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_9915
wait 0
goto @CAT4_9889

:CAT4_9915
play_mission_audio MissionAudioSlot.Slot1

:CAT4_9919
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_9945
wait 0
goto @CAT4_9919

:CAT4_9945
if 
  not is_char_dead $catalina
goto_if_false @CAT4_9998
clear_char_tasks $catalina
if 
  not is_char_dead 46@(52@,6i)
goto_if_false @CAT4_9998
task_kill_char_on_foot $catalina {target} 46@(52@,6i)

:CAT4_9998
$game_timer2_cat4 = get_game_timer 

:CAT4_10003
$game_timer1_cat4 = get_game_timer 
sub_int_var_from_int_var $game_timer1_cat4 -= $game_timer2_cat4
if 
  94@ == 2
goto_if_false @CAT4_10109
94@ = 3
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9877

:CAT4_10048
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10074
wait 0
goto @CAT4_10048

:CAT4_10074
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10078
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10104
wait 0
goto @CAT4_10078

:CAT4_10104
$game_timer2_cat4 = get_game_timer 

:CAT4_10109
$game_timer1_cat4 = get_game_timer 
sub_int_var_from_int_var $game_timer1_cat4 -= $game_timer2_cat4
if 
  94@ == 3
goto_if_false @CAT4_10234
if 
  $game_timer1_cat4 > 5000
goto_if_false @CAT4_10234
94@ = 4
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9014

:CAT4_10173
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10199
wait 0
goto @CAT4_10173

:CAT4_10199
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10203
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10229
wait 0
goto @CAT4_10203

:CAT4_10229
$game_timer2_cat4 = get_game_timer 

:CAT4_10234
$game_timer1_cat4 = get_game_timer 
sub_int_var_from_int_var $game_timer1_cat4 -= $game_timer2_cat4
if 
  94@ == 4
goto_if_false @CAT4_10359
if 
  $game_timer1_cat4 > 10000
goto_if_false @CAT4_10359
94@ = 5
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9013

:CAT4_10298
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10324
wait 0
goto @CAT4_10298

:CAT4_10324
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10328
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10354
wait 0
goto @CAT4_10328

:CAT4_10354
$game_timer2_cat4 = get_game_timer 

:CAT4_10359
$game_timer1_cat4 = get_game_timer 
sub_int_var_from_int_var $game_timer1_cat4 -= $game_timer2_cat4
if 
  94@ == 5
goto_if_false @CAT4_10421
if 
  $game_timer1_cat4 > 10000
goto_if_false @CAT4_10421
94@ = 6
$game_timer2_cat4 = get_game_timer 

:CAT4_10421
$game_timer1_cat4 = get_game_timer 
sub_int_var_from_int_var $game_timer1_cat4 -= $game_timer2_cat4
if 
  94@ > 1
goto_if_false @CAT4_10826
if 
  2 > 52@
goto_if_false @CAT4_10826
if 
  is_char_dead 46@(52@,6i)
goto_if_false @CAT4_10826
mark_char_as_no_longer_needed 46@(52@,6i)
if 
  not is_char_dead $catalina
goto_if_false @CAT4_10826
if 
  not is_char_shooting $catalina
goto_if_false @CAT4_10826
52@ += 1
if 
  2 > 52@
goto_if_false @CAT4_10802
clear_char_tasks $catalina
if 
  not is_char_dead 46@(52@,6i)
goto_if_false @CAT4_10593
task_kill_char_on_foot $catalina {target} 46@(52@,6i)

:CAT4_10593
if 
  52@ == 2
goto_if_false @CAT4_10674
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9872

:CAT4_10618
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10644
wait 0
goto @CAT4_10618

:CAT4_10644
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10648
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10674
wait 0
goto @CAT4_10648

:CAT4_10674
if 
  52@ == 4
goto_if_false @CAT4_10755
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9877

:CAT4_10699
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_10725
wait 0
goto @CAT4_10699

:CAT4_10725
play_mission_audio MissionAudioSlot.Slot1

:CAT4_10729
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_10755
wait 0
goto @CAT4_10729

:CAT4_10755
if 
  52@ == 5
goto_if_false @CAT4_10795
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9884
print_now 'CATX_TQ' {time} 100 {flag} 1

:CAT4_10795
goto @CAT4_10826

:CAT4_10802
clear_char_tasks $catalina
task_aim_gun_at_coord $catalina {x} 64@ {y} 65@ {z} 66@ {time} 900000

:CAT4_10826
gosub @CAT4_2145
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 820.3084 {leftBottomY} -1.6925 {leftBottomZ} 1003.278 {rightTopX} 828.8 {rightTopY} 4.7199 {rightTopZ} 1008.079
goto_if_false @CAT4_10901
if 
  not is_char_dead $catalina
goto_if_false @CAT4_10901
set_char_health $catalina {health} 0

:CAT4_10901
if 
  103@ == 0
goto_if_false @CAT4_11151
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 823.89 {leftBottomY} 8.99 {leftBottomZ} 1000.4 {rightTopX} 826.18 {rightTopY} 11.98 {rightTopZ} 1009.72
goto_if_false @CAT4_11018
set_object_collision_damage_effect 39@ {state} True
freeze_object_position 39@ {state} False
break_object 39@ {intensity} 1
set_object_health 39@ {health} 0
103@ = 1
add_explosion 820.5 {y} 9.7 {z} 1003.216 {type} ExplosionType.Grenade

:CAT4_11018
if 
  does_object_exist 39@
goto_if_false @CAT4_11151
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Satchel
goto_if_false @CAT4_11151
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 823.89 {leftBottomY} 8.99 {leftBottomZ} 1000.4 {rightTopX} 826.18 {rightTopY} 11.98 {rightTopZ} 1009.72
goto_if_false @CAT4_11151
set_object_collision_damage_effect 39@ {state} True
freeze_object_position 39@ {state} False
break_object 39@ {intensity} 1
set_object_health 39@ {health} 0
103@ = 1
add_explosion 820.5 {y} 9.7 {z} 1003.216 {type} ExplosionType.Grenade

:CAT4_11151
if 
  103@ == 1
goto_if_false @CAT4_11336
if 
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 819.55 {leftBottomY} 8.09 {leftBottomZ} 1003.4 {rightTopX} 822.27 {rightTopY} 10.98 {rightTopZ} 1005.72
goto_if_false @CAT4_11336
clear_help 
clear_prints 
$flag_has_safe_been_robbed_cat4 = 1
mark_model_as_no_longer_needed #RIDER1_DOOR
switch_entry_exit 'GENOTB' {state} False
if 
  275@ == 0
goto_if_false @CAT4_11275
275@ = 1
TIMERA = 0

:CAT4_11275
delete_object 40@
40@ = create_object #MAN_SAFENEW {x} 820.5 {y} 9.7 {z} 1003.216
set_object_heading 40@ {heading} 90.0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_11336
freeze_char_position_and_dont_load_collision $catalina {state} False

:CAT4_11336
if 
  275@ == 1
goto_if_false @CAT4_13659
if 
  TIMERA > 500
goto_if_false @CAT4_13659
add_explosion 820.5 {y} 9.7 {z} 1003.216 {type} ExplosionType.Grenade
53@ = 4

:CAT4_11399
if 
  6 > 53@
goto_if_false @CAT4_11440
mark_char_as_no_longer_needed 46@(53@,6i)
53@ += 1
goto @CAT4_11399

:CAT4_11440
if 
  does_object_exist 39@
goto_if_false @CAT4_11461
delete_object 39@

:CAT4_11461
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_ped_density_multiplier 0.0
set_fixed_camera_position 823.9662 {y} 11.5153 {z} 1005.81 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 823.2487 {y} 11.0891 {z} 1005.26 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 824.8268 {y} 10.0672 {z} 1003.187
set_char_heading $scplayer {heading} 100.0
set_char_area_visible $scplayer {areaId} 3
set_area_visible 3
if 
  not is_char_dead $catalina
goto_if_false @CAT4_11643
clear_char_tasks $catalina
set_char_coordinates $catalina {x} 827.95 {y} 9.21 {z} 1003.13
set_char_heading $catalina {heading} 93.0
set_char_relationship $catalina {relationshipType} RelationshipType.Like {pedType} PedType.Cop
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
99@ = 0

:CAT4_11643
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
clear_area 824.8268 {y} 10.0672 {z} 1003.187 {radius} 1000.0 {clearParticles} True
request_animation "BOMBER"

:CAT4_11690
if 
  not has_animation_loaded "BOMBER"
goto_if_false @CAT4_11722
wait 0
goto @CAT4_11690

:CAT4_11722
task_duck $scplayer {time} 3000
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_11751
if 
  97@ <> 10
goto_if_false @CAT4_13153
wait 0
if 
  97@ == 0
goto_if_false @CAT4_11817
if 
  TIMERA > 2000
goto_if_false @CAT4_11817
97@ = 1

:CAT4_11817
if 
  97@ == 1
goto_if_false @CAT4_12236
if 
  TIMERA > 2000
goto_if_false @CAT4_12236
set_char_coordinates $scplayer {x} 824.8268 {y} 10.0672 {z} 1003.187
set_char_heading $scplayer {heading} 100.0
set_char_area_visible $scplayer {areaId} 3
set_area_visible 3
97@ = 2
task_go_straight_to_coord $scplayer {x} 821.3832 {y} 9.7296 {z} 1003.195 {speed} MoveState.Walk {time} -1
if 
  not is_car_dead 41@
goto_if_false @CAT4_12009
freeze_car_position 41@ {state} True
set_car_visible 41@ {state} True
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_health 41@ {health} 1500
set_car_coordinates 41@ {x} 1297.0 {y} 278.0 {z} 18.0
set_car_heading 41@ {heading} 150.0

:CAT4_12009
request_model 599
request_model 283
request_model 346

:CAT4_12024
if or
  not has_model_loaded 599
  not has_model_loaded 283
  not has_model_loaded 346
goto_if_false @CAT4_12061
wait 0
goto @CAT4_12024

:CAT4_12061
34@ = create_car 599 {x} 1296.038 {y} 251.8959 {z} 18.4002
35@ = create_car 599 {x} 1301.326 {y} 265.0127 {z} 18.4007
36@ = create_car 599 {x} 1308.3979 {y} 278.7967 {z} 18.546
set_car_heading 34@ {heading} 11.7173
set_car_heading 35@ {heading} 70.3422
set_car_heading 36@ {heading} 119.5617
43@ = create_char_inside_car 34@ {pedType} PedType.Cop {modelId} 283
give_weapon_to_char 43@ {weaponType} WeaponType.Pistol {ammo} 1000
44@ = create_char_inside_car 35@ {pedType} PedType.Cop {modelId} 283
give_weapon_to_char 44@ {weaponType} WeaponType.Pistol {ammo} 1000
45@ = create_char_inside_car 36@ {pedType} PedType.Cop {modelId} 283
give_weapon_to_char 45@ {weaponType} WeaponType.Pistol {ammo} 1000
TIMERA = 0

:CAT4_12236
if 
  97@ == 2
goto_if_false @CAT4_12718
if 
  TIMERA > 2000
goto_if_false @CAT4_12718
set_fixed_camera_position 819.5102 {y} 10.5367 {z} 1004.439 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 820.4842 {y} 10.324 {z} 1004.362 {switchStyle} SwitchType.JumpCut
56@ = open_sequence_task 
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 5000
close_sequence_task 56@
perform_sequence_task $scplayer {sequence} 56@
clear_sequence_task 56@
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_12458
start_char_facial_talk $scplayer {duration} 100000

:CAT4_12458
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9019

:CAT4_12465
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_12491
wait 0
goto @CAT4_12465

:CAT4_12491
print_now 'CAT2_GA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_12511
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_12537
wait 0
goto @CAT4_12511

:CAT4_12537
clear_this_print 'CAT2_GA'
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_12569
stop_char_facial_talk $scplayer

:CAT4_12569
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9020

:CAT4_12576
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_12602
wait 0
goto @CAT4_12576

:CAT4_12602
if 
  not is_char_dead $catalina
goto_if_false @CAT4_12626
start_char_facial_talk $catalina {duration} 10000

:CAT4_12626
print_now 'CAT2_GB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_12646
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_12672
wait 0
goto @CAT4_12646

:CAT4_12672
clear_this_print 'CAT2_GB'
if 
  not is_char_dead $catalina
goto_if_false @CAT4_12704
stop_char_facial_talk $catalina

:CAT4_12704
TIMERA = 0
97@ = 3

:CAT4_12718
if 
  97@ == 3
goto_if_false @CAT4_13055
if 
  TIMERA > 1000
goto_if_false @CAT4_13055
set_fixed_camera_position 832.2155 {y} 11.3956 {z} 1003.388 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 831.3511 {y} 10.9217 {z} 1003.557 {switchStyle} SwitchType.JumpCut
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9021

:CAT4_12813
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_12839
wait 0
goto @CAT4_12813

:CAT4_12839
56@ = open_sequence_task 
task_achieve_heading -1 {heading} 10.0
task_go_straight_to_coord -1 {x} 833.0 {y} 10.0 {z} 1003.0 {speed} MoveState.Run {time} -1
close_sequence_task 56@
perform_sequence_task $scplayer {sequence} 56@
clear_sequence_task 56@
if 
  not is_char_dead $catalina
goto_if_false @CAT4_12939
clear_char_tasks $catalina
task_go_straight_to_coord $catalina {x} 834.0 {y} 7.0 {z} 1003.0 {speed} MoveState.Run {time} -1

:CAT4_12939
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_12963
start_char_facial_talk $scplayer {duration} 10000

:CAT4_12963
print_now 'CAT2_GC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_12983
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_13009
wait 0
goto @CAT4_12983

:CAT4_13009
if 
  not is_char_dead $scplayer
goto_if_false @CAT4_13030
stop_char_facial_talk $scplayer

:CAT4_13030
clear_this_print 'CAT2_GC'
TIMERA = 0
97@ = 4

:CAT4_13055
if 
  97@ == 4
goto_if_false @CAT4_13120
do_fade 1000 {direction} Fade.Out

:CAT4_13080
if 
  get_fading_status 
goto_if_false @CAT4_13104
wait 0
goto @CAT4_13080

:CAT4_13104
make_player_gang_reappear 
TIMERA = 0
97@ = 5

:CAT4_13120
if 
  TIMERB > 14800
goto_if_false @CAT4_13146
97@ = 10

:CAT4_13146
goto @CAT4_11751

:CAT4_13153
set_area_visible 0
set_char_coordinates $scplayer {x} 1292.7209 {y} 271.0581 {z} 18.5469
set_char_has_used_entry_exit $scplayer {x} 833.0 {y} 9.0 {radius} 10.0
load_scene 1292.7209 {y} 271.0581 {z} 18.5469
set_char_heading $scplayer {heading} 333.0
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Detonator
goto_if_false @CAT4_13249
set_current_char_weapon $scplayer {weaponType} WeaponType.Detonator

:CAT4_13249
if 
  not is_char_dead $catalina
goto_if_false @CAT4_13351
set_char_coordinates $catalina {x} 1292.66 {y} 275.2182 {z} 18.5547
set_char_heading $catalina {heading} 340.1134
set_char_cant_be_dragged_out $catalina {state} True
set_char_stay_in_car_when_jacked $catalina {state} True
set_char_proofs $catalina {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_has_used_entry_exit $catalina {x} 833.0 {y} 9.0 {radius} 10.0
set_char_area_visible $catalina {areaId} 0

:CAT4_13351
clear_area 1292.7209 {y} 271.0581 {z} 18.5469 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In
if 
  not is_car_dead 41@
goto_if_false @CAT4_13532
if 
  is_car_passenger_seat_free 41@ {seat} SeatId.BikeRear
goto_if_false @CAT4_13484
if 
  not is_char_dead $catalina
goto_if_false @CAT4_13477
task_enter_car_as_passenger $catalina {vehicle} 41@ {time} -1 {seat} SeatId.BikeRear
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_13470
set_group_follow_status $Players_Group {state} False

:CAT4_13470
106@ = 1

:CAT4_13477
goto @CAT4_13525

:CAT4_13484
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_13518
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_13518
106@ = 0

:CAT4_13525
goto @CAT4_13566

:CAT4_13532
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_13566
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_13566
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
remove_animation "BOMBER"
display_radar True
delete_object 39@
delete_object 40@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
mark_model_as_no_longer_needed #MAN_SAFENEW
mark_model_as_no_longer_needed #KEV_SAFE
set_radio_channel RadioChannel.KRose
117@ = 1
remove_blip 112@
88@ = 0
89@ = 1

:CAT4_13659
goto @CAT4_9022

:CAT4_13666
88@ = 0
89@ = 1
return 

:CAT4_13682
281@ = 0
277@ = 872.9051
278@ = -30.3161
279@ = 62.1893
set_car_density_multiplier 0.0
gosub @CAT4_2145

:CAT4_13733
if 
  90@ <> 1
goto_if_false @CAT4_16144
wait 0
gosub @CAT4_2145
if 
  98@ == 0
goto_if_false @CAT4_14479
if 
  38@ == 0
goto_if_false @CAT4_14479
alter_wanted_level $player1 {wantedLevel} 4
94@ = 4
display_radar True
set_char_heading $scplayer {heading} 333.0
set_camera_behind_player 
if 
  not is_char_dead $catalina
goto_if_false @CAT4_14211
set_char_accuracy $catalina {accuracy} 100
if 
  not is_car_dead 41@
goto_if_false @CAT4_14121
42@ = get_car_model 41@
if and
  is_car_passenger_seat_free 41@ {seat} SeatId.BikeRear
  is_this_model_a_car 42@
goto_if_false @CAT4_14024
set_char_cant_be_dragged_out $catalina {state} True
set_char_stay_in_car_when_jacked $catalina {state} True
114@ = add_blip_for_car 41@
set_blip_as_friendly 114@ {state} True
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9813

:CAT4_13934
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_13960
wait 0
goto @CAT4_13934

:CAT4_13960
print_now 'CATX_BF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_13980
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_14006
wait 0
goto @CAT4_13980

:CAT4_14006
clear_this_print 'CATX_BF'
goto @CAT4_14114

:CAT4_14024
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9847

:CAT4_14031
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_14057
wait 0
goto @CAT4_14031

:CAT4_14057
print_now 'CATX_NA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_14077
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_14103
wait 0
goto @CAT4_14077

:CAT4_14103
clear_this_print 'CATX_NA'

:CAT4_14114
goto @CAT4_14211

:CAT4_14121
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9847

:CAT4_14128
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_14154
wait 0
goto @CAT4_14128

:CAT4_14154
print_now 'CATX_NA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_14174
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_14200
wait 0
goto @CAT4_14174

:CAT4_14200
clear_this_print 'CATX_NA'

:CAT4_14211
if 
  not is_char_dead 43@
goto_if_false @CAT4_14298
if 
  not is_car_dead 34@
goto_if_false @CAT4_14298
56@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_aim_gun_at_char -1 {target} $scplayer {time} 20000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 56@
perform_sequence_task 43@ {sequence} 56@
clear_sequence_task 56@
set_char_decision_maker 43@ {handleOrTemplate} 54@

:CAT4_14298
if 
  not is_char_dead 44@
goto_if_false @CAT4_14385
if 
  not is_car_dead 35@
goto_if_false @CAT4_14385
56@ = open_sequence_task 
task_leave_car -1 {vehicle} 35@
task_aim_gun_at_char -1 {target} $scplayer {time} 20000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 56@
perform_sequence_task 44@ {sequence} 56@
clear_sequence_task 56@
set_char_decision_maker 44@ {handleOrTemplate} 54@

:CAT4_14385
if 
  not is_char_dead 45@
goto_if_false @CAT4_14472
if 
  not is_car_dead 36@
goto_if_false @CAT4_14472
56@ = open_sequence_task 
task_leave_car -1 {vehicle} 36@
task_aim_gun_at_char -1 {target} $scplayer {time} 20000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 56@
perform_sequence_task 45@ {sequence} 56@
clear_sequence_task 56@
set_char_decision_maker 45@ {handleOrTemplate} 54@

:CAT4_14472
98@ = 1

:CAT4_14479
if 
  not is_char_dead $catalina
goto_if_false @CAT4_15083
if 
  98@ == 1
goto_if_false @CAT4_14618
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_car_as_no_longer_needed 41@
98@ = 2
if 
  does_blip_exist 115@
goto_if_false @CAT4_14576
remove_blip 115@

:CAT4_14576
if 
  does_blip_exist 116@
goto_if_false @CAT4_14597
remove_blip 116@

:CAT4_14597
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
98@ = 2

:CAT4_14618
if 
  98@ == 2
goto_if_false @CAT4_14915
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT4_14915
98@ = 3
281@ = 1
if 
  does_blip_exist 114@
goto_if_false @CAT4_14687
remove_blip 114@

:CAT4_14687
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_14721
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True

:CAT4_14721
if 
  not is_car_dead 41@
goto_if_false @CAT4_14759
freeze_car_position 41@ {state} False
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CAT4_14759
if 
  93@ == 0
goto_if_false @CAT4_14814
if 
  not does_blip_exist 115@
goto_if_false @CAT4_14814
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
change_blip_colour 115@ {color} BlipColor.Yellow

:CAT4_14814
if 
  93@ == 1
goto_if_false @CAT4_14915
if 
  not is_char_dead $catalina
goto_if_false @CAT4_14915
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_14915
if 
  not does_blip_exist 116@
goto_if_false @CAT4_14915
116@ = add_sprite_blip_for_coord 67@ {y} 68@ {z} 69@ {sprite} RadarSprite.Spray
print_now 'CAT4_32' {time} 5000 {flag} 1

:CAT4_14915
if 
  98@ == 3
goto_if_false @CAT4_15031
gosub @CAT4_16165
if 
  91@ == 1
goto_if_false @CAT4_14960
return 

:CAT4_14960
if 
  not is_char_dead $catalina
goto_if_false @CAT4_15031
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_15031
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
99@ = 1
set_char_relationship $catalina {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
106@ = 0
98@ = 4

:CAT4_15031
if 
  98@ == 4
goto_if_false @CAT4_15076
gosub @CAT4_16165
if 
  91@ == 1
goto_if_false @CAT4_15076
return 

:CAT4_15076
goto @CAT4_15115

:CAT4_15083
89@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_15115
if 
  93@ == 0
goto_if_false @CAT4_16137
if 
  locate_char_any_means_3d $scplayer {x} 277@ {y} 278@ {z} 279@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CAT4_15175

:CAT4_15175
if 
  is_char_dead $catalina
goto_if_false @CAT4_15230
89@ = 0
91@ = 1
90@ = 0
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_15230
if 
  not is_char_dead $catalina
goto_if_false @CAT4_15369
if 
  is_char_in_any_car $scplayer
goto_if_false @CAT4_15369
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_15369
if and
  94@ >= 4
  is_int_lvar_greater_or_equal_to_int_lvar 110@ >= 94@
goto_if_false @CAT4_15369
if 
  94@ == 4
goto_if_false @CAT4_15362
shut_player_up $player1 {_p2} 1
if 
  TIMERA > 10000
goto_if_false @CAT4_15355
gosub @CAT4_16800

:CAT4_15355
goto @CAT4_15369

:CAT4_15362
gosub @CAT4_16800

:CAT4_15369
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16137
if and
  locate_char_any_means_3d $scplayer {x} 277@ {y} 278@ {z} 279@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  locate_char_any_means_3d $catalina {x} 277@ {y} 278@ {z} 279@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @CAT4_16137
90@ = 1
91@ = 0
if 
  locate_char_in_car_3d $scplayer {x} 277@ {y} 278@ {z} 279@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
goto_if_false @CAT4_15544
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:CAT4_15544
set_player_control $player1 {state} False
switch_widescreen True
TIMERA = 0
TIMERB = 0
97@ = 0

:CAT4_15576
if 
  97@ <> 10
goto_if_false @CAT4_16117
wait 0
clear_area 866.7373 {y} -24.0333 {z} 64.9955 {radius} 1000.0 {clearParticles} True
if 
  97@ == 0
goto_if_false @CAT4_15792
97@ = 1
set_fixed_camera_position 866.3945 {y} -23.1135 {z} 65.1866 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 866.7373 {y} -24.0333 {z} 64.9955 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9007

:CAT4_15709
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_15735
wait 0
goto @CAT4_15709

:CAT4_15735
print_now 'CAT2_CA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_15755
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_15781
wait 0
goto @CAT4_15755

:CAT4_15781
clear_this_print 'CAT2_CA'

:CAT4_15792
if 
  97@ == 1
goto_if_false @CAT4_15907
97@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9860

:CAT4_15824
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_15850
wait 0
goto @CAT4_15824

:CAT4_15850
print_now 'CATX_RC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_15870
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_15896
wait 0
goto @CAT4_15870

:CAT4_15896
clear_this_print 'CATX_RC'

:CAT4_15907
if 
  97@ == 2
goto_if_false @CAT4_16000
97@ = 3
TIMERA = 0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16000
if 
  is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_15979
remove_char_from_group $catalina

:CAT4_15979
if 
  is_char_in_any_car $catalina
goto_if_false @CAT4_16000
task_leave_any_car $catalina

:CAT4_16000
if 
  97@ == 3
goto_if_false @CAT4_16084
if 
  1500 > TIMERA
goto_if_false @CAT4_16084
97@ = 4
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16084
task_go_straight_to_coord $catalina {x} 869.84 {y} -26.24 {z} 63.1797 {speed} MoveState.Walk {time} -1

:CAT4_16084
if 
  TIMERB > 7000
goto_if_false @CAT4_16110
97@ = 10

:CAT4_16110
goto @CAT4_15576

:CAT4_16117
delete_char $catalina
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 

:CAT4_16137
goto @CAT4_13733

:CAT4_16144
remove_blip 115@
90@ = 1
89@ = 0
return 

:CAT4_16165
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16754
if 
  93@ == 1
goto_if_false @CAT4_16222
if 
  is_char_shooting $catalina
goto_if_false @CAT4_16222
gosub @CAT4_17009

:CAT4_16222
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_16747
print_now 'CAT4_16' {time} 4000 {flag} 1
if 
  89@ == 1
goto_if_false @CAT4_16317
if 
  does_blip_exist 116@
goto_if_false @CAT4_16296
remove_blip 116@

:CAT4_16296
if 
  does_blip_exist 115@
goto_if_false @CAT4_16317
remove_blip 115@

:CAT4_16317
if 
  not does_blip_exist 113@
goto_if_false @CAT4_16364
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16364
113@ = add_blip_for_char $catalina
set_blip_as_friendly 113@ {state} True

:CAT4_16364
if 
  not is_group_member $catalina {handle} $Players_Group
goto_if_false @CAT4_16747
wait 0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16696
if 
  not locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @CAT4_16478
88@ = 0
89@ = 0
91@ = 1
print_now 'CAT4_14' {time} 5000 {flag} 1
return 

:CAT4_16478
if 
  locate_char_any_means_char_3d $scplayer {target} $catalina {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @CAT4_16689
set_group_member $Players_Group {handle} $catalina
set_group_follow_status $Players_Group {state} True
remove_blip 113@
if 
  89@ == 1
goto_if_false @CAT4_16689
if 
  93@ == 0
goto_if_false @CAT4_16623
if 
  not does_blip_exist 115@
goto_if_false @CAT4_16623
115@ = add_blip_for_coord 277@ {y} 278@ {z} 279@
change_blip_colour 115@ {color} BlipColor.Yellow
print_now 'CAT4_13' {time} 10000 {flag} 1

:CAT4_16623
if 
  93@ == 1
goto_if_false @CAT4_16689
if 
  not does_blip_exist 116@
goto_if_false @CAT4_16689
116@ = add_sprite_blip_for_coord 67@ {y} 68@ {z} 69@ {sprite} RadarSprite.Spray
print_now 'CAT4_32' {time} 5000 {flag} 1

:CAT4_16689
goto @CAT4_16740

:CAT4_16696
remove_blip 112@
88@ = 0
89@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_16740
goto @CAT4_16364

:CAT4_16747
goto @CAT4_16798

:CAT4_16754
remove_blip 112@
88@ = 0
89@ = 0
91@ = 1
print_now 'CAT4_15' {time} 5000 {flag} 1
return 

:CAT4_16798
return 

:CAT4_16800
if 
  107@ == 0
goto_if_false @CAT4_16863
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16841
shut_char_up_for_scripted_speech $catalina {state} True

:CAT4_16841
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 222@(274@,52i)
107@ = 1

:CAT4_16863
if 
  107@ == 1
goto_if_false @CAT4_16921
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_16921
play_mission_audio MissionAudioSlot.Slot1
print_now 118@(274@,52s) {time} 10000 {flag} 1
107@ = 2

:CAT4_16921
if 
  107@ == 2
goto_if_false @CAT4_17007
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17007
107@ = 0
clear_this_print 118@(274@,52s)
if 
  not is_char_dead $catalina
goto_if_false @CAT4_16993
shut_char_up_for_scripted_speech $catalina {state} False

:CAT4_16993
274@ += 1
94@ += 1

:CAT4_17007
return 

:CAT4_17009
if 
  95@ == 0
goto_if_false @CAT4_17126
95@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9861

:CAT4_17041
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17067
wait 0
goto @CAT4_17041

:CAT4_17067
print_now 'CATX_SA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17087
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17113
wait 0
goto @CAT4_17087

:CAT4_17113
clear_this_print 'CATX_SA'
return 

:CAT4_17126
if 
  95@ == 1
goto_if_false @CAT4_17243
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9862

:CAT4_17151
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17177
wait 0
goto @CAT4_17151

:CAT4_17177
print_now 'CATX_SB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17197
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17223
wait 0
goto @CAT4_17197

:CAT4_17223
clear_this_print 'CATX_SB'
95@ = 2
return 

:CAT4_17243
if 
  95@ == 2
goto_if_false @CAT4_17360
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9863

:CAT4_17268
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17294
wait 0
goto @CAT4_17268

:CAT4_17294
print_now 'CATX_SC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17314
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17340
wait 0
goto @CAT4_17314

:CAT4_17340
clear_this_print 'CATX_SC'
95@ = 3
return 

:CAT4_17360
if 
  95@ == 3
goto_if_false @CAT4_17477
95@ = 4
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9864

:CAT4_17392
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17418
wait 0
goto @CAT4_17392

:CAT4_17418
print_now 'CATX_SD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17438
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17464
wait 0
goto @CAT4_17438

:CAT4_17464
clear_this_print 'CATX_SD'
return 

:CAT4_17477
if 
  95@ == 4
goto_if_false @CAT4_17594
95@ = 5
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9865

:CAT4_17509
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17535
wait 0
goto @CAT4_17509

:CAT4_17535
print_now 'CATX_SE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17555
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17581
wait 0
goto @CAT4_17555

:CAT4_17581
clear_this_print 'CATX_SE'
return 

:CAT4_17594
if 
  95@ == 5
goto_if_false @CAT4_17711
95@ = 6
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9866

:CAT4_17626
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17652
wait 0
goto @CAT4_17626

:CAT4_17652
print_now 'CATX_SF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17672
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17698
wait 0
goto @CAT4_17672

:CAT4_17698
clear_this_print 'CATX_SF'
return 

:CAT4_17711
if 
  95@ == 6
goto_if_false @CAT4_17828
95@ = 7
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9867

:CAT4_17743
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17769
wait 0
goto @CAT4_17743

:CAT4_17769
print_now 'CATX_SG' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17789
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17815
wait 0
goto @CAT4_17789

:CAT4_17815
clear_this_print 'CATX_SG'
return 

:CAT4_17828
if 
  95@ == 7
goto_if_false @CAT4_17945
95@ = 8
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9868

:CAT4_17860
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_17886
wait 0
goto @CAT4_17860

:CAT4_17886
print_now 'CATX_SH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_17906
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_17932
wait 0
goto @CAT4_17906

:CAT4_17932
clear_this_print 'CATX_SH'
return 

:CAT4_17945
if 
  95@ == 8
goto_if_false @CAT4_18062
95@ = 9
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9872

:CAT4_17977
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_18003
wait 0
goto @CAT4_17977

:CAT4_18003
print_now 'CATX_TD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_18023
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_18049
wait 0
goto @CAT4_18023

:CAT4_18049
clear_this_print 'CATX_TD'
return 

:CAT4_18062
if 
  95@ == 9
goto_if_false @CAT4_18179
95@ = 10
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9877

:CAT4_18094
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_18120
wait 0
goto @CAT4_18094

:CAT4_18120
print_now 'CATX_TJ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_18140
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_18166
wait 0
goto @CAT4_18140

:CAT4_18166
clear_this_print 'CATX_TJ'
return 

:CAT4_18179
if 
  95@ == 10
goto_if_false @CAT4_18296
95@ = 0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 9884

:CAT4_18211
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CAT4_18237
wait 0
goto @CAT4_18211

:CAT4_18237
print_now 'CATX_TQ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:CAT4_18257
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CAT4_18283
wait 0
goto @CAT4_18257

:CAT4_18283
clear_this_print 'CATX_TQ'
return 

:CAT4_18296
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
delete_char $catalina
103@ = 0
return 

:CAT4_18326
print_with_number_big 'M_PASS' {num} 2000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 2000
clear_wanted_level $player1
play_mission_passed_tune 1
$cat_counter += 1
$cat_getaway_dialogue += 1
register_mission_passed 'CAT_4'
player_made_progress 1
if 
  $cat_liquor_banter == 1
goto_if_false @CAT4_18416
$cat_liquor_banter = 2

:CAT4_18416
$flag_cat_mission4_passed = 1
return 

:CAT4_18425
clear_help 
$onmission = 0
display_radar True
switch_entry_exit 'GENOTB' {state} True
if 
  is_player_playing $player1
goto_if_false @CAT4_18474
shut_player_up $player1 {_p2} 0

:CAT4_18474
if 
  not is_char_dead $catalina
goto_if_false @CAT4_18505
set_char_proofs $catalina {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CAT4_18505
if 
  not is_car_dead 41@
goto_if_false @CAT4_18550
freeze_car_position 41@ {state} False
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_can_burst_car_tyres 41@ {state} True

:CAT4_18550
remove_char_elegantly $catalina
53@ = 4

:CAT4_18562
if 
  6 > 53@
goto_if_false @CAT4_18603
mark_char_as_no_longer_needed 46@(53@,6i)
53@ += 1
goto @CAT4_18562

:CAT4_18603
remove_animation "MISC"
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 407
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 416
mark_model_as_no_longer_needed 277
mark_model_as_no_longer_needed #ROADWORKBARRIER1
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 348
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 41@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_object_as_no_longer_needed 39@
mark_object_as_no_longer_needed 40@
mark_model_as_no_longer_needed #RIDER1_DOOR
mark_model_as_no_longer_needed #KEV_SAFE
mark_model_as_no_longer_needed #MAN_SAFENEW
mark_car_as_no_longer_needed 41@
$iSetOTBPanic = 0
if 
  not is_char_dead $catalina
goto_if_false @CAT4_18777
clear_char_relationship $catalina {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
clear_char_relationship $catalina {relationshipType} RelationshipType.Like {toPedType} PedType.Cop

:CAT4_18777
remove_animation "BOMBER"
$flag_otb_robbing_peds_panic = 0
$timer_mobile_start = get_game_timer 
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
$spray_shop4 = add_short_range_sprite_blip_for_coord 720.016 {y} -454.625 {z} 15.328 {sprite} RadarSprite.Spray
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
remove_decision_maker 54@
remove_decision_maker 55@
remove_all_script_fires 
mission_has_finished 
set_everyone_ignore_player $player1 {state} False
set_group_separation_range $Players_Group {range} 30.0
88@ = 1
89@ = 0
90@ = 0
91@ = 0
96@ = 0
$flag_has_safe_been_robbed_cat4 = 0
99@ = 0
$flag_otb_robbing_peds_panic = 0
92@ = 0
98@ = 0
100@ = 0
104@ = 0
102@ = 0
94@ = 0
95@ = 0
103@ = 0
38@ = 0
97@ = 0
93@ = 0
101@ = 0
117@ = 0
$counter_robbery_cat4 = 0
return 

//-------------Mission 45---------------
// Originally: King in Exile

:CATCUT
script_name 'CATCUT'
gosub @CATCUT_302
if 
  has_deatharrest_been_executed 
goto_if_false @CATCUT_38
gosub @CATCUT_795

:CATCUT_38
gosub @CATCUT_912
terminate_this_script 

:CATCUT_47
switch_start 34@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @CATCUT_300 {caseNum1} 0 {caseLabel1} @CATCUT_110 {caseNum2} -1 {caseLabel2} @CATCUT_300 {caseNum3} -1 {caseLabel3} @CATCUT_300 {caseNum4} -1 {caseLabel4} @CATCUT_300 {caseNum5} -1 {caseLabel5} @CATCUT_300 {caseNum6} -1 {caseLabel6} @CATCUT_300 {caseNum7} -1 {caseLabel7} @CATCUT_300

:CATCUT_110
set_var_text_label s$catcut_chat[0] = 'MCAT01A'
set_var_text_label s$catcut_chat[1] = 'MCAT01B'
set_var_text_label s$catcut_chat[2] = 'MCAT01C'
set_var_text_label s$catcut_chat[3] = 'MCAT01D'
set_var_text_label s$catcut_chat[4] = 'MCAT01E'
set_var_text_label s$catcut_chat[5] = 'MCAT01F'
set_var_text_label s$catcut_chat[6] = 'MCAT01G'
set_var_text_label s$catcut_chat[7] = 'MCAT01H'
set_lvar_int_to_constant 39@ = 25000
set_lvar_int_to_constant 40@ = 25001
set_lvar_int_to_constant 41@ = 25002
set_lvar_int_to_constant 42@ = 25003
set_lvar_int_to_constant 43@ = 25004
set_lvar_int_to_constant 44@ = 25005
set_lvar_int_to_constant 45@ = 25006
set_lvar_int_to_constant 46@ = 25007
38@ = 7
goto @CATCUT_300

:CATCUT_300
return 

:CATCUT_302
register_mission_given 
$onmission = 1
load_mission_text 'BCESAR2'
wait 0
set_area_visible 2
load_cutscene 'BCESAR2'

:CATCUT_341
if 
  not has_cutscene_loaded 
goto_if_false @CATCUT_365
wait 0
goto @CATCUT_341

:CATCUT_365
start_cutscene 
do_fade 1000 {direction} Fade.In

:CATCUT_374
if 
  not has_cutscene_finished 
goto_if_false @CATCUT_398
wait 0
goto @CATCUT_374

:CATCUT_398
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CATCUT_411
if 
  get_fading_status 
goto_if_false @CATCUT_435
wait 0
goto @CATCUT_411

:CATCUT_435
clear_cutscene 
set_area_visible 0
request_model 330

:CATCUT_446
if 
  not has_model_loaded 330
goto_if_false @CATCUT_473
wait 0
goto @CATCUT_446

:CATCUT_473
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000
35@ = 0
36@ = 0
37@ = 0
34@ = 0
gosub @CATCUT_47
set_char_coordinates $scplayer {x} -2042.129 {y} -2528.791 {z} 29.625
set_char_heading $scplayer {heading} 284.27
load_scene -2042.129 {y} -2528.791 {z} 29.625
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In

:CATCUT_571
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CATCUT_597
wait 0
goto @CATCUT_571

:CATCUT_597
play_mission_audio MissionAudioSlot.Slot3
TIMERA = 0

:CATCUT_608
if 
  not has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CATCUT_660
wait 0
if 
  1500 > TIMERA
goto_if_false @CATCUT_653
goto @CATCUT_660

:CATCUT_653
goto @CATCUT_608

:CATCUT_660
task_use_mobile_phone $scplayer {start} True
TIMERA = 0

:CATCUT_674
if 
  1500 > TIMERA
goto_if_false @CATCUT_704
wait 0
goto @CATCUT_674

:CATCUT_704
set_player_control $player1 {state} True

:CATCUT_711
if 
  35@ <> 8
goto_if_false @CATCUT_771
wait 0
gosub @CATCUT_933
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CATCUT_764
goto @CATCUT_771

:CATCUT_764
goto @CATCUT_711

:CATCUT_771
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
task_use_mobile_phone $scplayer {start} False
goto @CATCUT_813

:CATCUT_795
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CATCUT_813
remove_blip $bcrash_contact_blip
clear_wanted_level $player1
$flag_trailor_cutscene = 1
remove_blip $cat_contact_blip
$cat_contact_blip = add_sprite_blip_for_contact_point $catX {y} $catY {z} $catZ {sprite} $cat_blip_icon
remove_blip $1731
$1731 = add_short_range_sprite_blip_for_contact_point $save_pickupX[14] {y} $save_pickupY[14] {z} $save_pickupZ[14] {sprite} RadarSprite.SaveGame
change_blip_display $1731 {display} BlipDisplay.BlipOnly
remove_pickup $grove_save_pickup[14]
$grove_save_pickup[14] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[14] {y} $save_pickupY[14] {z} $save_pickupZ[14]
$number_of_save_icons = 15
return 

:CATCUT_912
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
mark_model_as_no_longer_needed 330
return 

:CATCUT_933
if or
  36@ == 0
  36@ == 1
goto_if_false @CATCUT_984
if 
  is_int_lvar_greater_or_equal_to_int_lvar 38@ >= 35@
goto_if_false @CATCUT_984
gosub @CATCUT_1042

:CATCUT_984
if 
  36@ == 2
goto_if_false @CATCUT_1040
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CATCUT_1040
36@ = 0
35@ += 1
37@ = 0
clear_prints 

:CATCUT_1040
return 

:CATCUT_1042
if 
  36@ == 0
goto_if_false @CATCUT_1078
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39@(35@,8i)
36@ = 1

:CATCUT_1078
if 
  36@ == 1
goto_if_false @CATCUT_1136
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CATCUT_1136
print_now $catcut_chat(35@,8s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
36@ = 2

:CATCUT_1136
return 

//-------------Mission 46---------------
// Originally: Body Harvest

:TRUTH1
script_name 'TRUTH1'
gosub @TRUTH1_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUTH1_38
gosub @TRUTH1_16379

:TRUTH1_38
gosub @TRUTH1_16535
terminate_this_script 

:TRUTH1_47
register_mission_given 
load_mission_text 'TRU1'
$onmission = 1
wait 0
set_area_visible 12
load_cutscene 'TRUTH_1'

:TRUTH1_86
if 
  not has_cutscene_loaded 
goto_if_false @TRUTH1_110
wait 0
goto @TRUTH1_86

:TRUTH1_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:TRUTH1_119
if 
  not has_cutscene_finished 
goto_if_false @TRUTH1_143
wait 0
goto @TRUTH1_119

:TRUTH1_143
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:TRUTH1_158
if 
  get_fading_status 
goto_if_false @TRUTH1_182
wait 0
goto @TRUTH1_158

:TRUTH1_182
set_area_visible 0
set_fading_colour 0 {g} 0 {b} 0
request_model 532
request_model 531
request_model #KMB_MARIJUANA
request_car_recording 348
request_model #SW_HAYBREAK02
request_model 357
request_model 478
request_model 337
request_model 157
request_model 160
request_model 162
load_all_models_now 

:TRUTH1_251
if or
  not has_model_loaded 532
  not has_model_loaded 531
  not has_model_loaded #KMB_MARIJUANA
  not has_model_loaded 157
  not has_model_loaded 160
goto_if_false @TRUTH1_298
wait 0
goto @TRUTH1_251

:TRUTH1_298
if or
  not has_car_recording_been_loaded 348
  not has_model_loaded #SW_HAYBREAK02
  not has_model_loaded 357
  not has_model_loaded 162
goto_if_false @TRUTH1_340
wait 0
goto @TRUTH1_298

:TRUTH1_340
if or
  not has_model_loaded 478
  not has_model_loaded 337
goto_if_false @TRUTH1_372
wait 0
goto @TRUTH1_340

:TRUTH1_372
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
116@ = add_blip_for_coord -1047.593 {y} -1347.254 {z} 129.216
97@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 97@ {event} Event.DraggedOutCar
add_char_decision_maker_event_response 97@ {event} Event.DraggedOutCar {taskId} TaskId.ComplexKillPedOnFoot {respect} 50.0 {hate} 50.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
98@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_char_coordinates $scplayer {x} -2195.8999 {y} -2258.0291 {z} 30.0
set_char_heading $scplayer {heading} 141.0
load_scene_in_direction -2196.46 {y} -2256.96 {z} 31.43 {heading} 141.0
do_fade 500 {direction} Fade.In
117@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
118@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
print_now 'TRU1_1' {time} 10000 {flag} 1
if 
  122@ == 100
goto_if_false @TRUTH1_888
43@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
44@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
45@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
46@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
47@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
48@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
122@ = 101

:TRUTH1_888
set_wanted_multiplier 0.3
if 
  $tripskip_t2flag > 0
goto_if_false @TRUTH1_935
set_up_skip -1084.219 {y} -1341.156 {z} 128.365 {heading} 257.771

:TRUTH1_935
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @TRUTH1_961
goto @TRUTH1_16397

:TRUTH1_961
if 
  118@ == 0
goto_if_false @TRUTH1_4518
if 
  117@ == 0
goto_if_false @TRUTH1_2275
if 
  locate_char_any_means_3d $scplayer {x} -1047.593 {y} -1347.254 {z} 129.39 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TRUTH1_2275
switch_widescreen True
set_player_control $player1 {state} False
remove_blip 116@
do_fade 500 {direction} Fade.Out

:TRUTH1_1068
if 
  get_fading_status 
goto_if_false @TRUTH1_1092
wait 0
goto @TRUTH1_1068

:TRUTH1_1092
if 
  $tripskip_t2flag == 0
goto_if_false @TRUTH1_1117
$tripskip_t2flag = 1

:TRUTH1_1117
clear_skip 
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRUTH1_1143
$car = store_car_char_is_in_no_save $scplayer

:TRUTH1_1143
34@ = create_car 532 {x} -1060.25 {y} -1044.209 {z} 128.2188
set_car_heading 34@ {heading} 84.2638
set_car_straight_line_distance 34@ {distance} 100
car_goto_coordinates 34@ {x} -1136.78 {y} -1044.209 {z} 128.2188
set_car_cruise_speed 34@ {maxSpeed} 7.0
38@ = create_char_inside_car 34@ {pedType} PedType.Mission1 {modelId} 160
wait 500
do_fade 1000 {direction} Fade.In
set_fixed_camera_position -1073.802 {y} -1038.203 {z} 128.492 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_1295
point_camera_at_car 34@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:TRUTH1_1295
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRUTH1_1336
$car = store_car_char_is_in_no_save $scplayer
set_car_heading $car {heading} 355.69
goto @TRUTH1_1346

:TRUTH1_1336
set_char_heading $scplayer {heading} 355.73

:TRUTH1_1346
90@ = create_car 531 {x} -1043.989 {y} -1312.677 {z} 128.772
set_car_heading 90@ {heading} 1.243
set_can_burst_car_tyres 90@ {state} False
set_car_health 90@ {health} 2000
60@ = create_object_no_offset #SW_HAYBREAK02 {x} -1053.792 {y} -1187.624 {z} 129.396
61@ = create_object_no_offset #SW_HAYBREAK02 {x} -1038.506 {y} -1154.722 {z} 129.699
62@ = create_object_no_offset #SW_HAYBREAK02 {x} -1105.4189 {y} -1112.451 {z} 128.864
63@ = create_object_no_offset #SW_HAYBREAK02 {x} -1182.3459 {y} -1043.797 {z} 129.699
64@ = create_object_no_offset #SW_HAYBREAK02 {x} -1141.389 {y} -1008.254 {z} 129.735
65@ = create_object_no_offset #SW_HAYBREAK02 {x} -1197.385 {y} -1084.951 {z} 129.743
66@ = create_object_no_offset #SW_HAYBREAK02 {x} -1161.353 {y} -1117.198 {z} 129.049
35@ = create_car 531 {x} -1115.569 {y} -1115.231 {z} 128.366
39@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 160
set_car_heading 35@ {heading} 274.604
49@ = create_char PedType.Mission1 {modelId} 160 {x} -1064.3409 {y} -1283.63 {z} 128.247
set_char_heading 49@ {heading} 116.09
task_play_anim 49@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 49@ {handleOrTemplate} 97@
set_char_health 49@ {health} 50
set_follow_node_threshold_distance 49@ {range} 100.0
give_weapon_to_char 49@ {weaponType} WeaponType.Rifle {ammo} 99999
50@ = create_char PedType.Mission1 {modelId} 157 {x} -1074.646 {y} -1095.812 {z} 128.245
set_char_heading 50@ {heading} 96.069
task_play_anim 50@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 50@ {handleOrTemplate} 97@
set_char_health 50@ {health} 50
set_follow_node_threshold_distance 50@ {range} 100.0
52@ = create_char PedType.Mission1 {modelId} 157 {x} -1135.339 {y} -1134.299 {z} 128.259
set_char_heading 52@ {heading} 90.157
task_play_anim 52@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 52@ {handleOrTemplate} 97@
set_char_health 52@ {health} 50
set_follow_node_threshold_distance 52@ {range} 100.0
53@ = create_char PedType.Mission1 {modelId} 162 {x} -1121.739 {y} -1095.64 {z} 128.247
set_char_heading 53@ {heading} 94.64
task_play_anim 53@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 53@ {handleOrTemplate} 97@
set_char_health 53@ {health} 50
54@ = create_char PedType.Mission1 {modelId} 157 {x} -1121.713 {y} -1084.165 {z} 128.247
set_char_heading 54@ {heading} 79.746
task_play_anim 54@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 54@ {handleOrTemplate} 97@
set_char_health 54@ {health} 50
set_follow_node_threshold_distance 54@ {range} 100.0
55@ = create_char PedType.Mission1 {modelId} 162 {x} -1159.3669 {y} -1134.375 {z} 128.259
set_char_heading 55@ {heading} 270.749
task_play_anim 55@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 55@ {handleOrTemplate} 97@
set_char_health 55@ {health} 50
set_follow_node_threshold_distance 55@ {range} 100.0
print_now 'TRU1_2' {time} 7000 {flag} 1
wait 200
51@ = create_char PedType.Mission1 {modelId} 162 {x} -1074.332 {y} -1084.3879 {z} 128.244
set_char_heading 51@ {heading} 60.659
task_play_anim 51@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 51@ {handleOrTemplate} 97@
set_char_health 51@ {health} 50
set_follow_node_threshold_distance 51@ {range} 30.0
TIMERA = 0
TIMERB = 0
117@ = 1

:TRUTH1_2275
if 
  TIMERB > 1800
goto_if_false @TRUTH1_2393
if 
  117@ == 1
goto_if_false @TRUTH1_2393
121@ = 0
skip_cutscene_start_internal @TRUTH1_2749
if 
  not is_car_dead 35@
goto_if_false @TRUTH1_2379
set_car_straight_line_distance 35@ {distance} 100
car_goto_coordinates 35@ {x} -1061.059 {y} -1116.129 {z} 128.366
set_car_cruise_speed 35@ {maxSpeed} 10.0

:TRUTH1_2379
TIMERB = 0
117@ = 2

:TRUTH1_2393
if 
  117@ == 2
goto_if_false @TRUTH1_2587
if 
  TIMERB > 5000
goto_if_false @TRUTH1_2587
set_fixed_camera_position -1057.875 {y} -1120.592 {z} 136.4117 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1058.704 {y} -1120.089 {z} 136.1667 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_2557
set_car_coordinates 34@ {x} -1082.1379 {y} -1046.8929 {z} 129.29
set_car_heading 34@ {heading} 84.2638
car_goto_coordinates 34@ {x} -1195.58 {y} -1045.87 {z} 129.1
set_car_cruise_speed 34@ {maxSpeed} 7.0

:TRUTH1_2557
print_now 'TRU1_3' {time} 7000 {flag} 1
TIMERB = 0
117@ = 3

:TRUTH1_2587
if 
  117@ == 3
goto_if_false @TRUTH1_2705
if 
  TIMERB > 7000
goto_if_false @TRUTH1_2705
set_fixed_camera_position -1035.782 {y} -1331.041 {z} 134.0494 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1036.184 {y} -1330.134 {z} 133.9223 {switchStyle} SwitchType.JumpCut
print_now 'TRU1_4' {time} 10000 {flag} 1
TIMERB = 0
117@ = 4

:TRUTH1_2705
if 
  117@ == 4
goto_if_false @TRUTH1_4518
if 
  TIMERB > 5000
goto_if_false @TRUTH1_4518
121@ = 1

:TRUTH1_2749
skip_cutscene_end 
if 
  121@ == 0
goto_if_false @TRUTH1_3570
do_fade 500 {direction} Fade.Out

:TRUTH1_2776
if 
  get_fading_status 
goto_if_false @TRUTH1_2800
wait 0
goto @TRUTH1_2776

:TRUTH1_2800
delete_car 34@
delete_car 35@
delete_object 43@
delete_object 44@
delete_object 45@
delete_object 46@
delete_object 47@
delete_object 48@
delete_char 38@
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 52@
delete_char 53@
delete_char 54@
delete_char 55@
49@ = create_char PedType.Mission1 {modelId} 160 {x} -1064.3409 {y} -1283.63 {z} 128.247
set_char_heading 49@ {heading} 116.09
task_play_anim 49@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 49@ {handleOrTemplate} 97@
set_char_health 49@ {health} 50
set_follow_node_threshold_distance 49@ {range} 100.0
give_weapon_to_char 49@ {weaponType} WeaponType.Rifle {ammo} 99999
50@ = create_char PedType.Mission1 {modelId} 157 {x} -1074.646 {y} -1095.812 {z} 128.245
set_char_heading 50@ {heading} 96.069
task_play_anim 50@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 50@ {handleOrTemplate} 97@
set_char_health 50@ {health} 50
set_follow_node_threshold_distance 50@ {range} 100.0
51@ = create_char PedType.Mission1 {modelId} 162 {x} -1074.332 {y} -1084.3879 {z} 128.244
set_char_heading 51@ {heading} 60.659
task_play_anim 51@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 51@ {handleOrTemplate} 97@
set_char_health 51@ {health} 50
set_follow_node_threshold_distance 51@ {range} 100.0
52@ = create_char PedType.Mission1 {modelId} 157 {x} -1135.339 {y} -1134.299 {z} 128.259
set_char_heading 52@ {heading} 90.157
task_play_anim 52@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 52@ {handleOrTemplate} 97@
set_char_health 52@ {health} 50
set_follow_node_threshold_distance 52@ {range} 100.0
53@ = create_char PedType.Mission1 {modelId} 162 {x} -1121.739 {y} -1095.64 {z} 128.247
set_char_heading 53@ {heading} 94.64
task_play_anim 53@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 53@ {handleOrTemplate} 97@
set_char_health 53@ {health} 50
54@ = create_char PedType.Mission1 {modelId} 157 {x} -1121.713 {y} -1084.165 {z} 128.247
set_char_heading 54@ {heading} 79.746
task_play_anim 54@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 54@ {handleOrTemplate} 97@
set_char_health 54@ {health} 50
set_follow_node_threshold_distance 54@ {range} 100.0
55@ = create_char PedType.Mission1 {modelId} 162 {x} -1159.3669 {y} -1134.375 {z} 128.259
set_char_heading 55@ {heading} 270.749
task_play_anim 55@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 55@ {handleOrTemplate} 97@
set_char_health 55@ {health} 50
set_follow_node_threshold_distance 55@ {range} 100.0
load_scene -1049.08 {y} -1268.08 {z} 127.81
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
clear_prints 
do_fade 500 {direction} Fade.In

:TRUTH1_3546
if 
  get_fading_status 
goto_if_false @TRUTH1_3570
wait 0
goto @TRUTH1_3546

:TRUTH1_3570
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
print_now 'TRU1_4' {time} 7000 {flag} 1
delete_car 34@
delete_char 38@
delete_char 39@
delete_car 35@
34@ = create_car 532 {x} -1023.706 {y} -933.357 {z} 129.292
set_car_heading 34@ {heading} 177.348
set_car_straight_line_distance 34@ {distance} 20
38@ = create_char_inside_car 34@ {pedType} PedType.Mission1 {modelId} 160
set_char_decision_maker 38@ {handleOrTemplate} 97@
set_char_accuracy 38@ {accuracy} 30
set_car_health 34@ {health} 9000
116@ = add_blip_for_car 34@
set_blip_as_friendly 116@ {state} True
set_can_burst_car_tyres 34@ {state} False
56@ = create_car 531 {x} -1029.287 {y} -1183.826 {z} 128.184
set_car_heading 56@ {heading} 90.725
57@ = create_char_inside_car 56@ {pedType} PedType.Mission1 {modelId} 162
set_char_decision_maker 57@ {handleOrTemplate} 97@
give_weapon_to_char 57@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 57@ {accuracy} 50
58@ = create_car 531 {x} -1067.1281 {y} -1153.574 {z} 128.2188
set_car_heading 58@ {heading} 272.1696
59@ = create_char_inside_car 58@ {pedType} PedType.Mission1 {modelId} 157
set_char_decision_maker 59@ {handleOrTemplate} 97@
give_weapon_to_char 59@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 59@ {accuracy} 50
118@ = 1
if 
  not is_char_dead 50@
goto_if_false @TRUTH1_3894
give_weapon_to_char 50@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_3894
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_3919
give_weapon_to_char 52@ {weaponType} WeaponType.Shovel {ammo} 1

:TRUTH1_3919
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_3944
give_weapon_to_char 53@ {weaponType} WeaponType.Shovel {ammo} 1

:TRUTH1_3944
if 
  not is_char_dead 51@
goto_if_false @TRUTH1_4002
set_char_coordinates 51@ {x} -1070.71 {y} -1126.36 {z} 128.23
set_char_heading 51@ {heading} 345.592
give_weapon_to_char 51@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_4002
if 
  not is_char_dead 54@
goto_if_false @TRUTH1_4060
set_char_coordinates 54@ {x} -1111.92 {y} -1107.797 {z} 127.892
set_char_heading 54@ {heading} 212.87
give_weapon_to_char 54@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_4060
if 
  not is_char_dead 55@
goto_if_false @TRUTH1_4118
set_char_coordinates 55@ {x} -1154.72 {y} -1116.097 {z} 127.27
set_char_heading 55@ {heading} 238.5
give_weapon_to_char 55@ {weaponType} WeaponType.Rifle {ammo} 99999

:TRUTH1_4118
91@ = create_char PedType.Mission1 {modelId} 162 {x} -1043.28 {y} -1055.5 {z} 128.22
set_char_heading 91@ {heading} 175.56
give_weapon_to_char 91@ {weaponType} WeaponType.Rifle {ammo} 99999
set_char_decision_maker 91@ {handleOrTemplate} 98@
set_sense_range 91@ {range} 80.0
92@ = create_char PedType.Mission1 {modelId} 157 {x} -1147.91 {y} -1023.34 {z} 128.22
give_weapon_to_char 92@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_decision_maker 92@ {handleOrTemplate} 98@
set_sense_range 92@ {range} 80.0
93@ = create_char PedType.Mission1 {modelId} 160 {x} -1094.89 {y} -999.528 {z} 128.21
set_char_heading 93@ {heading} 175.56
give_weapon_to_char 93@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 93@ {accuracy} 50
set_char_decision_maker 93@ {handleOrTemplate} 98@
set_sense_range 93@ {range} 150.0
94@ = create_char PedType.Mission1 {modelId} 160 {x} -1181.37 {y} -992.4972 {z} 128.2188
set_char_heading 94@ {heading} 170.5759
give_weapon_to_char 94@ {weaponType} WeaponType.Rifle {ammo} 1
set_char_accuracy 94@ {accuracy} 50
set_char_decision_maker 94@ {handleOrTemplate} 98@
set_sense_range 94@ {range} 150.0
95@ = create_char PedType.Mission1 {modelId} 160 {x} -1008.989 {y} -998.692 {z} 128.2188
set_char_heading 95@ {heading} 170.5759
give_weapon_to_char 95@ {weaponType} WeaponType.Shovel {ammo} 1
set_char_accuracy 95@ {accuracy} 50
set_char_decision_maker 95@ {handleOrTemplate} 98@
set_sense_range 95@ {range} 150.0
96@ = create_char PedType.Mission1 {modelId} 160 {x} -1151.001 {y} -1011.517 {z} 128.2188
set_char_heading 96@ {heading} 170.5759
give_weapon_to_char 96@ {weaponType} WeaponType.Rifle {ammo} 1
set_char_accuracy 96@ {accuracy} 50
set_char_decision_maker 96@ {handleOrTemplate} 98@
set_sense_range 96@ {range} 150.0
117@ = 5

:TRUTH1_4518
if 
  118@ == 1
goto_if_false @TRUTH1_15959
if 
  123@ == 0
goto_if_false @TRUTH1_4658
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_4658
if or
  locate_char_any_means_char_2d 49@ {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
  has_char_been_damaged_by_char 49@ {handle} $scplayer
  is_char_in_area_2d $scplayer {leftBottomX} -1074.33 {leftBottomY} -1321.1 {rightTopX} -1022.5 {rightTopY} -1271.4301 {drawSphere} False
goto_if_false @TRUTH1_4658
143@ = 1
task_kill_char_on_foot 49@ {target} $scplayer
123@ = 1

:TRUTH1_4658
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1096.488 {leftBottomY} -1170.5601 {rightTopX} -1032.682 {rightTopY} -1249.599 {drawSphere} False
goto_if_false @TRUTH1_4900
if 
  124@ == 0
goto_if_false @TRUTH1_4780
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_4780
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_4780
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_4780
start_playback_recorded_car 56@ {path} 348
124@ = 1

:TRUTH1_4780
if 
  125@ == 0
goto_if_false @TRUTH1_4900
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_4900
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_4900
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_4900
set_car_forward_speed 58@ {forwardSpeed} 12.0
task_car_drive_to_coord 59@ {vehicle} 58@ {x} -1045.147 {y} -1152.724 {z} 127.5258 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
125@ = 1

:TRUTH1_4900
if 
  124@ == 1
goto_if_false @TRUTH1_5022
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_5022
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_5022
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_5022
if 
  not is_playback_going_on_for_car 56@
goto_if_false @TRUTH1_5022
143@ = 8
set_lvar_int_to_lvar_int 102@ = 57@
set_lvar_int_to_lvar_int 101@ = 56@
gosub @TRUTH1_16335
124@ = 2

:TRUTH1_5022
if 
  125@ == 1
goto_if_false @TRUTH1_5159
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_5159
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_5159
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_5159
if 
  locate_car_2d 58@ {x} -1045.147 {y} -1152.724 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @TRUTH1_5159
set_lvar_int_to_lvar_int 102@ = 59@
set_lvar_int_to_lvar_int 101@ = 58@
gosub @TRUTH1_16335
125@ = 2

:TRUTH1_5159
if 
  124@ == 2
goto_if_false @TRUTH1_5267
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_5267
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_5267
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_5267
if 
  is_char_touching_char 57@ {other} $scplayer
goto_if_false @TRUTH1_5267
task_car_temp_action 57@ {vehicle} 56@ {actionId} TempAction.Reverse {time} 3000
124@ = 3

:TRUTH1_5267
if 
  124@ == 3
goto_if_false @TRUTH1_5395
if 
  not is_car_dead 56@
goto_if_false @TRUTH1_5395
if 
  not is_char_dead 57@
goto_if_false @TRUTH1_5395
if 
  is_char_sitting_in_car 57@ {vehicle} 56@
goto_if_false @TRUTH1_5395
110@ = get_script_task_status 57@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 110@ == 7
goto_if_false @TRUTH1_5395
set_lvar_int_to_lvar_int 102@ = 57@
set_lvar_int_to_lvar_int 101@ = 56@
gosub @TRUTH1_16335
124@ = 2

:TRUTH1_5395
if 
  125@ == 2
goto_if_false @TRUTH1_5503
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_5503
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_5503
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_5503
if 
  is_char_touching_char 59@ {other} $scplayer
goto_if_false @TRUTH1_5503
task_car_temp_action 59@ {vehicle} 58@ {actionId} TempAction.Reverse {time} 3000
125@ = 3

:TRUTH1_5503
if 
  125@ == 3
goto_if_false @TRUTH1_5631
if 
  not is_car_dead 58@
goto_if_false @TRUTH1_5631
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_5631
if 
  is_char_sitting_in_car 59@ {vehicle} 58@
goto_if_false @TRUTH1_5631
110@ = get_script_task_status 59@ {taskId} 1735
if 
  is_int_lvar_equal_to_constant 110@ == 7
goto_if_false @TRUTH1_5631
set_lvar_int_to_lvar_int 102@ = 59@
set_lvar_int_to_lvar_int 101@ = 58@
gosub @TRUTH1_16335
125@ = 2

:TRUTH1_5631
if 
  126@ == 0
goto_if_false @TRUTH1_6072
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1033.47 {leftBottomY} -1067.1801 {rightTopX} -1202.46 {rightTopY} -1149.65 {drawSphere} False
goto_if_false @TRUTH1_5733
if 
  is_char_shooting $scplayer
goto_if_false @TRUTH1_5710
126@ = 1

:TRUTH1_5710
if 
  is_player_targetting_anything $player1
goto_if_false @TRUTH1_5733
126@ = 1

:TRUTH1_5733
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1033.47 {leftBottomY} -1067.1801 {rightTopX} -1202.46 {rightTopY} -1149.65 {drawSphere} False
goto_if_false @TRUTH1_5778
126@ = 1

:TRUTH1_5778
if 
  does_char_exist 50@
goto_if_false @TRUTH1_5820
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @TRUTH1_5820
126@ = 1

:TRUTH1_5820
if 
  does_char_exist 50@
goto_if_false @TRUTH1_5862
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @TRUTH1_5862
126@ = 1

:TRUTH1_5862
if 
  does_char_exist 51@
goto_if_false @TRUTH1_5904
if 
  has_char_been_damaged_by_char 51@ {handle} $scplayer
goto_if_false @TRUTH1_5904
126@ = 1

:TRUTH1_5904
if 
  does_char_exist 52@
goto_if_false @TRUTH1_5946
if 
  has_char_been_damaged_by_char 52@ {handle} $scplayer
goto_if_false @TRUTH1_5946
126@ = 1

:TRUTH1_5946
if 
  does_char_exist 53@
goto_if_false @TRUTH1_5988
if 
  has_char_been_damaged_by_char 53@ {handle} $scplayer
goto_if_false @TRUTH1_5988
126@ = 1

:TRUTH1_5988
if 
  does_char_exist 54@
goto_if_false @TRUTH1_6030
if 
  has_char_been_damaged_by_char 54@ {handle} $scplayer
goto_if_false @TRUTH1_6030
126@ = 1

:TRUTH1_6030
if 
  does_char_exist 55@
goto_if_false @TRUTH1_6072
if 
  has_char_been_damaged_by_char 55@ {handle} $scplayer
goto_if_false @TRUTH1_6072
126@ = 1

:TRUTH1_6072
if 
  126@ == 1
goto_if_false @TRUTH1_6269
143@ = 12
if 
  not is_char_dead 50@
goto_if_false @TRUTH1_6121
task_kill_char_on_foot 50@ {target} $scplayer

:TRUTH1_6121
if 
  not is_char_dead 51@
goto_if_false @TRUTH1_6152
task_kill_char_on_foot 51@ {target} $scplayer
set_char_accuracy 51@ {accuracy} 50

:TRUTH1_6152
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_6176
task_kill_char_on_foot 52@ {target} $scplayer

:TRUTH1_6176
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_6200
task_kill_char_on_foot 53@ {target} $scplayer

:TRUTH1_6200
if 
  not is_char_dead 54@
goto_if_false @TRUTH1_6231
task_kill_char_on_foot 54@ {target} $scplayer
set_char_accuracy 54@ {accuracy} 60

:TRUTH1_6231
if 
  not is_char_dead 55@
goto_if_false @TRUTH1_6262
task_kill_char_on_foot 55@ {target} $scplayer
set_char_accuracy 55@ {accuracy} 70

:TRUTH1_6262
126@ = 2

:TRUTH1_6269
if 
  128@ == 0
goto_if_false @TRUTH1_6462
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_6462
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_6462
if 
  is_char_sitting_in_car 38@ {vehicle} 34@
goto_if_false @TRUTH1_6462
$player_x, $player_y, $player_z = get_offset_from_char_in_world_coords 38@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
if or
  locate_stopped_char_any_means_2d $scplayer {x} $player_x {y} $player_y {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} $player_x {y} $player_y {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @TRUTH1_6462
give_weapon_to_char 38@ {weaponType} WeaponType.Rifle {ammo} 50
set_char_accuracy 38@ {accuracy} 20
task_kill_char_on_foot 38@ {target} $scplayer
143@ = 23
128@ = 1

:TRUTH1_6462
if 
  117@ > 4
goto_if_false @TRUTH1_6695
if 
  119@ == 0
goto_if_false @TRUTH1_6581
if 
  128@ == 0
goto_if_false @TRUTH1_6581
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_6581
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_6581
if 
  is_char_sitting_in_car 38@ {vehicle} 34@
goto_if_false @TRUTH1_6581
gosub @TRUTH1_16178
119@ = 1

:TRUTH1_6581
if 
  119@ == 1
goto_if_false @TRUTH1_6695
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_6695
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_6695
if 
  is_char_sitting_in_car 38@ {vehicle} 34@
goto_if_false @TRUTH1_6695
if 
  locate_car_2d 34@ {x} -1031.46 {y} -935.51 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @TRUTH1_6695
119@ = 0

:TRUTH1_6695
if 
  119@ >= 0
goto_if_false @TRUTH1_7941
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_7941
if 
  is_car_in_area_2d 34@ {leftBottomX} -1201.5179 {leftBottomY} -926.777 {rightTopX} -1016.98 {rightTopY} -1052.652 {drawSphere} False
goto_if_false @TRUTH1_7941
106@ = get_driver_of_car 34@
if 
  106@ <> -1
goto_if_false @TRUTH1_7941
if 
  120@ == 100
goto_if_false @TRUTH1_6949
43@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
44@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
45@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
46@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
47@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3
48@ = create_object #KMB_MARIJUANA {x} 1.1 {y} 2.2 {z} 3.3

:TRUTH1_6949
if 
  120@ == 0
goto_if_false @TRUTH1_7119
if 
  TIMERA > 1250
goto_if_false @TRUTH1_7119
if 
  does_object_exist 43@
goto_if_false @TRUTH1_7007
delete_object 43@

:TRUTH1_7007
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
43@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 43@ {state} True
set_object_velocity 43@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 43@ {fromAngle} 68.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 43@ {handle} 34@
TIMERA = 0
120@ = 1

:TRUTH1_7119
if 
  120@ == 1
goto_if_false @TRUTH1_7282
if 
  TIMERA > 2250
goto_if_false @TRUTH1_7282
if 
  does_object_exist 44@
goto_if_false @TRUTH1_7177
delete_object 44@

:TRUTH1_7177
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
44@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 44@ {state} True
set_object_velocity 44@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 44@ {fromAngle} 73.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 44@ {handle} 34@
120@ = 2

:TRUTH1_7282
if 
  120@ == 2
goto_if_false @TRUTH1_7445
if 
  TIMERA > 4250
goto_if_false @TRUTH1_7445
if 
  does_object_exist 45@
goto_if_false @TRUTH1_7340
delete_object 45@

:TRUTH1_7340
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
45@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 45@ {state} True
set_object_velocity 45@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 45@ {fromAngle} 90.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 45@ {handle} 34@
120@ = 3

:TRUTH1_7445
if 
  120@ == 3
goto_if_false @TRUTH1_7608
if 
  TIMERA > 6250
goto_if_false @TRUTH1_7608
if 
  does_object_exist 46@
goto_if_false @TRUTH1_7503
delete_object 46@

:TRUTH1_7503
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
46@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 46@ {state} True
set_object_velocity 46@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 46@ {fromAngle} 180.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 46@ {handle} 34@
120@ = 4

:TRUTH1_7608
if 
  120@ == 4
goto_if_false @TRUTH1_7771
if 
  TIMERA > 8250
goto_if_false @TRUTH1_7771
if 
  does_object_exist 47@
goto_if_false @TRUTH1_7666
delete_object 47@

:TRUTH1_7666
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
47@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 47@ {state} True
set_object_velocity 47@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 47@ {fromAngle} 80.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 47@ {handle} 34@
120@ = 5

:TRUTH1_7771
if 
  120@ == 5
goto_if_false @TRUTH1_7941
if 
  TIMERA > 10250
goto_if_false @TRUTH1_7941
if 
  does_object_exist 48@
goto_if_false @TRUTH1_7829
delete_object 48@

:TRUTH1_7829
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.3 {yOffset} -3.3 {zOffset} 1.3
48@ = create_object #KMB_MARIJUANA {x} 40@ {y} 41@ {z} 42@
set_object_dynamic 48@ {state} True
set_object_velocity 48@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -1.0
  rotate_object 48@ {fromAngle} 180.0 {toAngle} 10.0 {collisionCheck} False
sort_out_object_collision_with_car 48@ {handle} 34@
TIMERA = 0
120@ = 0

:TRUTH1_7941
if 
  131@ == 0
goto_if_false @TRUTH1_8921
if 
  129@ == 1
goto_if_false @TRUTH1_8921
delete_char 49@
delete_char 50@
delete_char 51@
delete_char 52@
delete_char 53@
109@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 109@
67@ = create_char PedType.Mission1 {modelId} 160 {x} -1205.812 {y} -1092.725 {z} 127.2578
set_char_heading 67@ {heading} 359.4852
give_weapon_to_char 67@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 67@ {handleOrTemplate} 97@
set_char_health 67@ {health} 50
perform_sequence_task 67@ {sequence} 109@
68@ = create_char PedType.Mission1 {modelId} 162 {x} -1205.812 {y} -1090.725 {z} 127.2578
set_char_heading 68@ {heading} 359.4852
give_weapon_to_char 68@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 68@ {handleOrTemplate} 97@
set_char_health 68@ {health} 50
perform_sequence_task 68@ {sequence} 109@
69@ = create_char PedType.Mission1 {modelId} 157 {x} -1181.8 {y} -1116.735 {z} 127.2578
set_char_heading 69@ {heading} 79.3899
give_weapon_to_char 69@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 69@ {handleOrTemplate} 97@
set_char_health 69@ {health} 50
perform_sequence_task 69@ {sequence} 109@
70@ = create_char PedType.Mission1 {modelId} 160 {x} -1211.422 {y} -1090.9771 {z} 127.2578
set_char_heading 70@ {heading} 2.4516
give_weapon_to_char 70@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 70@ {handleOrTemplate} 97@
set_char_health 70@ {health} 50
perform_sequence_task 70@ {sequence} 109@
71@ = create_char PedType.Mission1 {modelId} 162 {x} -1179.283 {y} -1113.823 {z} 127.2578
set_char_heading 71@ {heading} 74.1823
give_weapon_to_char 71@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 71@ {handleOrTemplate} 97@
set_char_health 71@ {health} 50
perform_sequence_task 71@ {sequence} 109@
72@ = create_char PedType.Mission1 {modelId} 157 {x} -1145.651 {y} -1111.67 {z} 127.2595
set_char_heading 72@ {heading} 90.0989
give_weapon_to_char 72@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 72@ {handleOrTemplate} 97@
set_char_health 72@ {health} 50
perform_sequence_task 72@ {sequence} 109@
73@ = create_char PedType.Mission1 {modelId} 162 {x} -1146.601 {y} -1114.9561 {z} 127.2595
set_char_heading 73@ {heading} 102.0699
give_weapon_to_char 73@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 73@ {handleOrTemplate} 97@
set_char_health 73@ {health} 50
perform_sequence_task 73@ {sequence} 109@
74@ = create_char PedType.Mission1 {modelId} 160 {x} -1051.4969 {y} -1133.651 {z} 127.2669
set_char_heading 74@ {heading} 10.9064
give_weapon_to_char 74@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 74@ {handleOrTemplate} 97@
set_char_health 74@ {health} 50
perform_sequence_task 74@ {sequence} 109@
75@ = create_char PedType.Mission1 {modelId} 157 {x} -1048.588 {y} -1131.942 {z} 127.2595
set_char_heading 75@ {heading} 57.544
give_weapon_to_char 75@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 75@ {handleOrTemplate} 97@
set_char_health 75@ {health} 50
perform_sequence_task 75@ {sequence} 109@
76@ = create_char PedType.Mission1 {modelId} 162 {x} -1118.818 {y} -1116.196 {z} 127.2595
set_char_heading 76@ {heading} 90.5502
give_weapon_to_char 76@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 76@ {handleOrTemplate} 97@
set_char_health 76@ {health} 50
perform_sequence_task 76@ {sequence} 109@
77@ = create_char PedType.Mission1 {modelId} 162 {x} -1120.998 {y} -1112.729 {z} 127.2595
set_char_heading 77@ {heading} 57.544
give_weapon_to_char 77@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 77@ {handleOrTemplate} 97@
set_char_health 77@ {health} 50
perform_sequence_task 77@ {sequence} 109@
78@ = create_char PedType.Mission1 {modelId} 160 {x} -1115.5959 {y} -1115.524 {z} 127.2595
set_char_heading 78@ {heading} 57.544
give_weapon_to_char 78@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 78@ {handleOrTemplate} 97@
set_char_health 78@ {health} 50
perform_sequence_task 78@ {sequence} 109@
79@ = create_char PedType.Mission1 {modelId} 160 {x} -1117.895 {y} -1111.266 {z} 127.2595
set_char_heading 79@ {heading} 57.544
give_weapon_to_char 79@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 79@ {handleOrTemplate} 97@
set_char_health 79@ {health} 50
perform_sequence_task 79@ {sequence} 109@
clear_sequence_task 109@
131@ = 1

:TRUTH1_8921
if 
  131@ == 1
goto_if_false @TRUTH1_9766
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_9766
if 
  132@ == 0
goto_if_false @TRUTH1_9109
if 
  locate_car_2d 34@ {x} -1205.812 {y} -1090.725 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TRUTH1_9109
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 67@
goto_if_false @TRUTH1_9066
perform_sequence_task 67@ {sequence} 107@

:TRUTH1_9066
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_9090
perform_sequence_task 68@ {sequence} 107@

:TRUTH1_9090
143@ = 28
clear_sequence_task 107@
132@ = 1

:TRUTH1_9109
if 
  133@ == 0
goto_if_false @TRUTH1_9256
if 
  locate_car_2d 34@ {x} -1181.8 {y} -1116.735 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TRUTH1_9256
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 69@
goto_if_false @TRUTH1_9220
perform_sequence_task 69@ {sequence} 107@

:TRUTH1_9220
if 
  not is_char_dead 71@
goto_if_false @TRUTH1_9244
perform_sequence_task 71@ {sequence} 107@

:TRUTH1_9244
clear_sequence_task 107@
133@ = 1

:TRUTH1_9256
if 
  134@ == 0
goto_if_false @TRUTH1_9379
if 
  locate_car_2d 34@ {x} -1211.422 {y} -1090.9771 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @TRUTH1_9379
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 70@
goto_if_false @TRUTH1_9367
perform_sequence_task 70@ {sequence} 107@

:TRUTH1_9367
clear_sequence_task 107@
134@ = 1

:TRUTH1_9379
if 
  135@ == 0
goto_if_false @TRUTH1_9564
if 
  locate_car_2d 34@ {x} -1145.651 {y} -1111.67 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TRUTH1_9564
if 
  not is_char_dead 72@
goto_if_false @TRUTH1_9496
set_lvar_int_to_lvar_int 102@ = 72@
103@ = -1113.777
104@ = 1128.22
105@ = 128.22
gosub @TRUTH1_16117

:TRUTH1_9496
if 
  not is_char_dead 73@
goto_if_false @TRUTH1_9557
set_lvar_int_to_lvar_int 102@ = 73@
103@ = -1055.9399
104@ = -1120.62
105@ = 128.56
gosub @TRUTH1_16117

:TRUTH1_9557
135@ = 1

:TRUTH1_9564
if 
  136@ == 0
goto_if_false @TRUTH1_9766
if 
  is_car_in_area_2d 34@ {leftBottomX} -1224.0601 {leftBottomY} -1135.61 {rightTopX} -999.06 {rightTopY} -1063.3 {drawSphere} False
goto_if_false @TRUTH1_9766
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 76@
goto_if_false @TRUTH1_9675
perform_sequence_task 76@ {sequence} 107@

:TRUTH1_9675
if 
  not is_char_dead 77@
goto_if_false @TRUTH1_9699
perform_sequence_task 77@ {sequence} 107@

:TRUTH1_9699
if 
  not is_char_dead 78@
goto_if_false @TRUTH1_9723
perform_sequence_task 78@ {sequence} 107@

:TRUTH1_9723
if 
  not is_char_dead 79@
goto_if_false @TRUTH1_9747
perform_sequence_task 79@ {sequence} 107@

:TRUTH1_9747
clear_sequence_task 107@
141@ = 1
136@ = 1

:TRUTH1_9766
if 
  141@ == 1
goto_if_false @TRUTH1_10560
if 
  not is_char_dead 54@
goto_if_false @TRUTH1_9821
if 
  not is_char_on_screen 54@
goto_if_false @TRUTH1_9821
delete_char 54@

:TRUTH1_9821
if 
  not is_char_dead 55@
goto_if_false @TRUTH1_9858
if 
  not is_char_on_screen 55@
goto_if_false @TRUTH1_9858
delete_char 55@

:TRUTH1_9858
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_9895
if 
  not is_char_on_screen 49@
goto_if_false @TRUTH1_9895
delete_char 67@

:TRUTH1_9895
if 
  not is_char_dead 50@
goto_if_false @TRUTH1_9932
if 
  not is_char_on_screen 50@
goto_if_false @TRUTH1_9932
delete_char 68@

:TRUTH1_9932
if 
  not is_char_dead 51@
goto_if_false @TRUTH1_9969
if 
  not is_char_on_screen 51@
goto_if_false @TRUTH1_9969
delete_char 69@

:TRUTH1_9969
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_10006
if 
  not is_char_on_screen 52@
goto_if_false @TRUTH1_10006
delete_char 70@

:TRUTH1_10006
109@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 109@
80@ = create_char PedType.Mission1 {modelId} 162 {x} -1050.942 {y} -1171.55 {z} 127.4132
set_char_heading 80@ {heading} 57.544
give_weapon_to_char 80@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 80@ {handleOrTemplate} 97@
set_char_health 80@ {health} 50
perform_sequence_task 80@ {sequence} 109@
81@ = create_char PedType.Mission1 {modelId} 160 {x} -1048.379 {y} -1172.351 {z} 127.4308
set_char_heading 81@ {heading} 57.544
give_weapon_to_char 81@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 81@ {handleOrTemplate} 97@
set_char_health 81@ {health} 50
perform_sequence_task 81@ {sequence} 109@
82@ = create_char PedType.Mission1 {modelId} 162 {x} -1047.927 {y} -1177.559 {z} 127.507
set_char_heading 82@ {heading} 57.544
give_weapon_to_char 82@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 82@ {handleOrTemplate} 97@
set_char_health 82@ {health} 50
perform_sequence_task 82@ {sequence} 109@
83@ = create_char PedType.Mission1 {modelId} 157 {x} -1051.1591 {y} -1180.129 {z} 127.5367
set_char_heading 83@ {heading} 57.544
give_weapon_to_char 83@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 83@ {handleOrTemplate} 97@
set_char_health 83@ {health} 50
perform_sequence_task 83@ {sequence} 109@
custom_plate_for_next_car 478 {text} "__HOM__"
87@ = create_car 478 {x} -1049.0 {y} -1296.0 {z} 128.3
set_car_heading 87@ {heading} 277.382
84@ = create_char PedType.Mission1 {modelId} 162 {x} -1049.1899 {y} -1291.9399 {z} 127.7206
set_char_heading 84@ {heading} 57.544
give_weapon_to_char 84@ {weaponType} WeaponType.Rifle {ammo} 9999
set_char_decision_maker 84@ {handleOrTemplate} 97@
set_char_health 84@ {health} 50
perform_sequence_task 84@ {sequence} 109@
custom_plate_for_next_car 478 {text} "__HOM__"
88@ = create_car 478 {x} -1154.0861 {y} -1339.7159 {z} 126.61
set_car_heading 88@ {heading} 272.428
86@ = create_char_inside_car 88@ {pedType} PedType.Mission1 {modelId} 157
85@ = create_char PedType.Mission1 {modelId} 162 {x} -1049.1899 {y} -1295.9399 {z} 0.0
set_char_decision_maker 85@ {handleOrTemplate} 97@
attach_char_to_car 85@ {vehicle} 88@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.9 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Rifle
task_stay_in_same_place 85@ {state} True
clear_sequence_task 109@
141@ = 2

:TRUTH1_10560
if 
  141@ == 2
goto_if_false @TRUTH1_10771
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_10771
if 
  locate_car_2d 34@ {x} -1050.942 {y} -1171.55 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @TRUTH1_10771
107@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_smart_flee_char -1 {threat} $scplayer {radius} 30.0 {time} 30000
close_sequence_task 107@
if 
  not is_char_dead 80@
goto_if_false @TRUTH1_10687
perform_sequence_task 80@ {sequence} 107@

:TRUTH1_10687
if 
  not is_char_dead 81@
goto_if_false @TRUTH1_10711
perform_sequence_task 81@ {sequence} 107@

:TRUTH1_10711
if 
  not is_char_dead 82@
goto_if_false @TRUTH1_10735
perform_sequence_task 82@ {sequence} 107@

:TRUTH1_10735
if 
  not is_char_dead 83@
goto_if_false @TRUTH1_10759
perform_sequence_task 83@ {sequence} 107@

:TRUTH1_10759
clear_sequence_task 107@
141@ = 3

:TRUTH1_10771
if 
  141@ > 1
goto_if_false @TRUTH1_11120
if 
  142@ == 0
goto_if_false @TRUTH1_11120
if 
  is_char_in_area_2d $scplayer {leftBottomX} -974.32 {leftBottomY} -1287.37 {rightTopX} -1129.14 {rightTopY} -1330.41 {drawSphere} False
goto_if_false @TRUTH1_11120
if 
  not is_car_dead 88@
goto_if_false @TRUTH1_10931
if 
  not is_char_dead 86@
goto_if_false @TRUTH1_10931
set_car_forward_speed 88@ {forwardSpeed} 30.0
if 
  not is_char_dead 85@
goto_if_false @TRUTH1_10911
task_kill_char_on_foot 85@ {target} $scplayer

:TRUTH1_10911
task_car_mission 86@ {vehicle} 88@ {targetVehicle} 88@ {missionId} CarMission.BlockPlayerFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.PloughThrough

:TRUTH1_10931
143@ = 100
mark_model_as_no_longer_needed #KMB_MARIJUANA
mark_model_as_no_longer_needed #SW_HAYBREAK02
mark_object_as_no_longer_needed 60@
mark_object_as_no_longer_needed 61@
mark_object_as_no_longer_needed 62@
mark_object_as_no_longer_needed 63@
mark_object_as_no_longer_needed 64@
mark_object_as_no_longer_needed 65@
mark_object_as_no_longer_needed 66@
mark_object_as_no_longer_needed 43@
mark_object_as_no_longer_needed 44@
mark_object_as_no_longer_needed 45@
mark_object_as_no_longer_needed 46@
mark_object_as_no_longer_needed 47@
mark_object_as_no_longer_needed 48@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 90@
mark_char_as_no_longer_needed 91@
mark_char_as_no_longer_needed 92@
mark_char_as_no_longer_needed 93@
mark_char_as_no_longer_needed 94@
mark_char_as_no_longer_needed 95@
mark_char_as_no_longer_needed 96@
142@ = 1

:TRUTH1_11120
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11233
if 
  130@ == 0
goto_if_false @TRUTH1_11233
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH1_11233
mark_car_as_no_longer_needed 90@
129@ = 1
print_now 'TRU1_5' {time} 5000 {flag} 1
remove_blip 116@
116@ = add_blip_for_coord -1114.25 {y} -1619.96 {z} 76.68
130@ = 1

:TRUTH1_11233
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11347
if 
  130@ == 1
goto_if_false @TRUTH1_11347
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH1_11347
if 
  129@ <= 1
goto_if_false @TRUTH1_11347
print_now 'TRU1_7' {time} 5000 {flag} 1
remove_blip 116@
116@ = add_blip_for_car 34@
set_blip_as_friendly 116@ {state} True
130@ = 0

:TRUTH1_11347
if 
  129@ == 1
goto_if_false @TRUTH1_11539
if 
  130@ == 1
goto_if_false @TRUTH1_11539
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11539
if 
  locate_car_3d 34@ {x} -1100.007 {y} -1620.949 {z} 75.375 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @TRUTH1_11539
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH1_11539
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRUTH1_11490
$car = store_car_char_is_in_no_save $scplayer

:TRUTH1_11490
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:TRUTH1_11504
if 
  get_fading_status 
goto_if_false @TRUTH1_11528
wait 0
goto @TRUTH1_11504

:TRUTH1_11528
switch_widescreen True
129@ = 2

:TRUTH1_11539
if 
  129@ == 2
goto_if_false @TRUTH1_12171
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_12171
mark_car_as_no_longer_needed 56@
delete_car 56@
mark_char_as_no_longer_needed 57@
mark_car_as_no_longer_needed 58@
delete_car 58@
mark_char_as_no_longer_needed 59@
mark_car_as_no_longer_needed 88@
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_model_as_no_longer_needed 531
mark_model_as_no_longer_needed #KMB_MARIJUANA
mark_model_as_no_longer_needed #SW_HAYBREAK02
mark_model_as_no_longer_needed 357
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 337
load_special_character 1 {modelName} 'TRUTH'
request_model 424
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41040
load_mission_audio MissionAudioSlot.Slot2 {audioId} 41041
load_all_models_now 

:TRUTH1_11694
if or
  not has_special_character_loaded 1
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_model_loaded 424
goto_if_false @TRUTH1_11733
wait 0
goto @TRUTH1_11694

:TRUTH1_11733
TIMERA = 0
TIMERB = 0
clear_area -1100.007 {y} -1620.949 {z} 200.0 {radius} 200.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @TRUTH1_11817
set_car_coordinates 34@ {x} -1102.21 {y} -1620.017 {z} 77.345
set_car_heading 34@ {heading} 90.738

:TRUTH1_11817
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TRUTH1_11847
wait 0
goto @TRUTH1_11817

:TRUTH1_11847
56@ = create_car 424 {x} -1074.53 {y} -1643.624 {z} 75.066
set_car_heading 56@ {heading} 84.918
89@ = create_char PedType.Mission2 {modelId} 290 {x} -1088.84 {y} -1623.9969 {z} 75.375
set_char_heading 89@ {heading} 91.269
shut_char_up 89@ {state} True
set_char_proofs 89@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 89@ {handleOrTemplate} 97@
if 
  is_char_in_any_car $scplayer
goto_if_false @TRUTH1_11998
warp_char_from_car_to_coord $scplayer {x} -1098.84 {y} -1623.9969 {z} 75.375
set_char_heading $scplayer {heading} 264.123
goto @TRUTH1_12028

:TRUTH1_11998
set_char_coordinates $scplayer {x} -1098.84 {y} -1623.9969 {z} 75.375
set_char_heading $scplayer {heading} 264.123

:TRUTH1_12028
set_fixed_camera_position -1087.733 {y} -1625.124 {z} 76.7194 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1088.662 {y} -1624.7581 {z} 76.6608 {switchStyle} SwitchType.JumpCut
remove_blip 116@
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead 89@
goto_if_false @TRUTH1_12132
task_go_straight_to_coord 89@ {x} -1093.189 {y} -1624.021 {z} 75.375 {speed} MoveState.Walk {time} 5000

:TRUTH1_12132
task_go_straight_to_coord $scplayer {x} -1094.931 {y} -1623.946 {z} 75.375 {speed} MoveState.Walk {time} 5000
TIMERA = 0
129@ = 3

:TRUTH1_12171
if 
  129@ == 3
goto_if_false @TRUTH1_12410
if 
  not is_char_dead 89@
goto_if_false @TRUTH1_12410
if or
  TIMERA > 2500
  locate_stopped_char_on_foot_2d 89@ {x} -1093.189 {y} -1624.021 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @TRUTH1_12410
set_fixed_camera_position -1092.296 {y} -1624.917 {z} 76.9985 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1093.1169 {y} -1624.3719 {z} 76.8283 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 89@
set_char_coordinates 89@ {x} -1093.189 {y} -1624.021 {z} 75.375
set_char_heading 89@ {heading} 88.0345
set_char_coordinates $scplayer {x} -1094.931 {y} -1623.946 {z} 75.375
set_char_heading $scplayer {heading} 264.123
task_play_anim 89@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
129@ = 4

:TRUTH1_12410
if 
  129@ == 4
goto_if_false @TRUTH1_12455
print_now 'TRU1_ZA' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
129@ = 5

:TRUTH1_12455
if 
  129@ == 5
goto_if_false @TRUTH1_12530
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_12530
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41042
print_now 'TRU1_ZB' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot2
129@ = 6

:TRUTH1_12530
if 
  129@ == 6
goto_if_false @TRUTH1_12605
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TRUTH1_12605
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_12605
print_now 'TRU1_ZC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
129@ = 7

:TRUTH1_12605
if 
  129@ == 7
goto_if_false @TRUTH1_12725
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_12725
clear_prints 
task_go_straight_to_coord $scplayer {x} -1092.25 {y} -1629.8199 {z} 76.0 {speed} MoveState.Walk {time} 5000
wait 250
if 
  not is_char_dead 89@
goto_if_false @TRUTH1_12711
task_go_straight_to_coord 89@ {x} -1099.96 {y} -1623.7 {z} 76.4 {speed} MoveState.Walk {time} 5000

:TRUTH1_12711
TIMERA = 0
129@ = 8

:TRUTH1_12725
if 
  129@ == 8
goto_if_false @TRUTH1_12918
if 
  TIMERA > 1000
goto_if_false @TRUTH1_12918
do_fade 1000 {direction} Fade.Out

:TRUTH1_12769
if 
  get_fading_status 
goto_if_false @TRUTH1_12793
wait 0
goto @TRUTH1_12769

:TRUTH1_12793
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000
load_all_models_now 

:TRUTH1_12807
if or
  not has_model_loaded 330
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @TRUTH1_12838
wait 0
goto @TRUTH1_12807

:TRUTH1_12838
delete_car 34@
delete_char 89@
switch_widescreen False
set_char_coordinates $scplayer {x} -1092.561 {y} -1633.6281 {z} 75.37
set_char_heading $scplayer {heading} 273.438
do_fade 1000 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
play_mission_audio MissionAudioSlot.Slot3
set_player_control $player1 {state} True
TIMERA = 0
129@ = 9

:TRUTH1_12918
if 
  129@ == 9
goto_if_false @TRUTH1_12980
if 
  TIMERA > 1000
goto_if_false @TRUTH1_12980
task_use_mobile_phone $scplayer {start} True
clear_mission_audio MissionAudioSlot.Slot3
TIMERA = 0
129@ = 10

:TRUTH1_12980
if 
  129@ == 10
goto_if_false @TRUTH1_13038
if 
  TIMERA > 2000
goto_if_false @TRUTH1_13038
144@ = 1
145@ = 0
129@ = 11

:TRUTH1_13038
if 
  129@ == 11
goto_if_false @TRUTH1_14318
gosub @TRUTH1_16008
if 
  144@ == 1
goto_if_false @TRUTH1_13128
if 
  145@ == 0
goto_if_false @TRUTH1_13128
set_lvar_int_to_constant 113@ = 25256
set_lvar_text_label 114@s = 'MCES05A'
gosub @TRUTH1_15966

:TRUTH1_13128
if 
  144@ == 2
goto_if_false @TRUTH1_13193
if 
  145@ == 0
goto_if_false @TRUTH1_13193
set_lvar_int_to_constant 113@ = 25257
set_lvar_text_label 114@s = 'MCES05B'
gosub @TRUTH1_15966

:TRUTH1_13193
if 
  144@ == 3
goto_if_false @TRUTH1_13258
if 
  145@ == 0
goto_if_false @TRUTH1_13258
set_lvar_int_to_constant 113@ = 25258
set_lvar_text_label 114@s = 'MCES05C'
gosub @TRUTH1_15966

:TRUTH1_13258
if 
  144@ == 4
goto_if_false @TRUTH1_13323
if 
  145@ == 0
goto_if_false @TRUTH1_13323
set_lvar_int_to_constant 113@ = 25259
set_lvar_text_label 114@s = 'MCES05D'
gosub @TRUTH1_15966

:TRUTH1_13323
if 
  144@ == 5
goto_if_false @TRUTH1_13388
if 
  145@ == 0
goto_if_false @TRUTH1_13388
set_lvar_int_to_constant 113@ = 25260
set_lvar_text_label 114@s = 'MCES05E'
gosub @TRUTH1_15966

:TRUTH1_13388
if 
  144@ == 6
goto_if_false @TRUTH1_13453
if 
  145@ == 0
goto_if_false @TRUTH1_13453
set_lvar_int_to_constant 113@ = 25261
set_lvar_text_label 114@s = 'MCES05F'
gosub @TRUTH1_15966

:TRUTH1_13453
if 
  144@ == 7
goto_if_false @TRUTH1_13518
if 
  145@ == 0
goto_if_false @TRUTH1_13518
set_lvar_int_to_constant 113@ = 25262
set_lvar_text_label 114@s = 'MCES05G'
gosub @TRUTH1_15966

:TRUTH1_13518
if 
  144@ == 8
goto_if_false @TRUTH1_13583
if 
  145@ == 0
goto_if_false @TRUTH1_13583
set_lvar_int_to_constant 113@ = 25263
set_lvar_text_label 114@s = 'MCES05H'
gosub @TRUTH1_15966

:TRUTH1_13583
if 
  144@ == 9
goto_if_false @TRUTH1_13648
if 
  145@ == 0
goto_if_false @TRUTH1_13648
set_lvar_int_to_constant 113@ = 25264
set_lvar_text_label 114@s = 'MCES05J'
gosub @TRUTH1_15966

:TRUTH1_13648
if 
  144@ == 10
goto_if_false @TRUTH1_13713
if 
  145@ == 0
goto_if_false @TRUTH1_13713
set_lvar_int_to_constant 113@ = 25265
set_lvar_text_label 114@s = 'MCES05K'
gosub @TRUTH1_15966

:TRUTH1_13713
if 
  144@ == 11
goto_if_false @TRUTH1_13778
if 
  145@ == 0
goto_if_false @TRUTH1_13778
set_lvar_int_to_constant 113@ = 25266
set_lvar_text_label 114@s = 'MCES05L'
gosub @TRUTH1_15966

:TRUTH1_13778
if 
  144@ == 12
goto_if_false @TRUTH1_13843
if 
  145@ == 0
goto_if_false @TRUTH1_13843
set_lvar_int_to_constant 113@ = 25267
set_lvar_text_label 114@s = 'MCES05M'
gosub @TRUTH1_15966

:TRUTH1_13843
if 
  144@ == 13
goto_if_false @TRUTH1_13908
if 
  145@ == 0
goto_if_false @TRUTH1_13908
set_lvar_int_to_constant 113@ = 25268
set_lvar_text_label 114@s = 'MCES05N'
gosub @TRUTH1_15966

:TRUTH1_13908
if 
  144@ == 14
goto_if_false @TRUTH1_13973
if 
  145@ == 0
goto_if_false @TRUTH1_13973
set_lvar_int_to_constant 113@ = 25269
set_lvar_text_label 114@s = 'MCES05O'
gosub @TRUTH1_15966

:TRUTH1_13973
if 
  144@ == 15
goto_if_false @TRUTH1_14038
if 
  145@ == 0
goto_if_false @TRUTH1_14038
set_lvar_int_to_constant 113@ = 25270
set_lvar_text_label 114@s = 'MCES05P'
gosub @TRUTH1_15966

:TRUTH1_14038
if 
  144@ == 16
goto_if_false @TRUTH1_14103
if 
  145@ == 0
goto_if_false @TRUTH1_14103
set_lvar_int_to_constant 113@ = 25271
set_lvar_text_label 114@s = 'MCES05Q'
gosub @TRUTH1_15966

:TRUTH1_14103
if 
  144@ == 17
goto_if_false @TRUTH1_14168
if 
  145@ == 0
goto_if_false @TRUTH1_14168
set_lvar_int_to_constant 113@ = 25272
set_lvar_text_label 114@s = 'MCES05R'
gosub @TRUTH1_15966

:TRUTH1_14168
if 
  144@ == 18
goto_if_false @TRUTH1_14207
task_use_mobile_phone $scplayer {start} False
TIMERA = 0
144@ = 19

:TRUTH1_14207
if 
  144@ == 19
goto_if_false @TRUTH1_14258
if 
  TIMERA > 2000
goto_if_false @TRUTH1_14258
goto @TRUTH1_16397
144@ = 20

:TRUTH1_14258
if 
  146@ == 0
goto_if_false @TRUTH1_14318
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TRUTH1_14318
clear_mission_audio MissionAudioSlot.Slot1
145@ = 0
144@ = 18
146@ = 1

:TRUTH1_14318
if 
  117@ > 4
goto_if_false @TRUTH1_14393
if 
  is_car_dead 34@
goto_if_false @TRUTH1_14393
if 
  8 > 129@
goto_if_false @TRUTH1_14393
print_now 'TRU1_16' {time} 5000 {flag} 1
goto @TRUTH1_16379

:TRUTH1_14393
if 
  100 > 143@
goto_if_false @TRUTH1_15959
if 
  143@ == 1
goto_if_false @TRUTH1_14465
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14465
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41029
143@ = 2

:TRUTH1_14465
if 
  143@ == 2
goto_if_false @TRUTH1_14548
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14548
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14548
shut_char_up 49@ {state} True
print_now 'TRU1_DF' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 3

:TRUTH1_14548
if 
  143@ == 3
goto_if_false @TRUTH1_14590
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14590
clear_prints 
143@ = 4

:TRUTH1_14590
if 
  143@ == 4
goto_if_false @TRUTH1_14644
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14644
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41030
143@ = 5

:TRUTH1_14644
if 
  143@ == 5
goto_if_false @TRUTH1_14727
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14727
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14727
print_now 'TRU1_DG' {time} 4000 {flag} 1
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 49@
play_mission_audio MissionAudioSlot.Slot1
143@ = 6

:TRUTH1_14727
if 
  143@ == 6
goto_if_false @TRUTH1_14792
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14792
clear_prints 
if 
  not is_char_dead 49@
goto_if_false @TRUTH1_14785
shut_char_up 49@ {state} False

:TRUTH1_14785
143@ = 7

:TRUTH1_14792
if 
  143@ == 8
goto_if_false @TRUTH1_14846
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_14846
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41035
143@ = 9

:TRUTH1_14846
if 
  143@ == 9
goto_if_false @TRUTH1_14929
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_14929
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14929
print_now 'TRU1_FD' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
shut_char_up 59@ {state} True
143@ = 10

:TRUTH1_14929
if 
  143@ == 10
goto_if_false @TRUTH1_14994
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_14994
clear_prints 
if 
  not is_char_dead 59@
goto_if_false @TRUTH1_14987
shut_char_up 59@ {state} False

:TRUTH1_14987
143@ = 11

:TRUTH1_14994
if 
  143@ == 12
goto_if_false @TRUTH1_15063
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_15063
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15063
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41032
143@ = 13

:TRUTH1_15063
if 
  143@ == 13
goto_if_false @TRUTH1_15139
if 
  not is_char_dead 52@
goto_if_false @TRUTH1_15139
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15139
print_now 'TRU1_FA' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 14

:TRUTH1_15139
if 
  143@ == 14
goto_if_false @TRUTH1_15181
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15181
clear_prints 
143@ = 15

:TRUTH1_15181
if 
  143@ == 15
goto_if_false @TRUTH1_15242
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15242
shut_char_up 53@ {state} True
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41001
143@ = 16

:TRUTH1_15242
if 
  143@ == 16
goto_if_false @TRUTH1_15318
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15318
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15318
print_now 'TRU1_AB' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 17

:TRUTH1_15318
if 
  143@ == 17
goto_if_false @TRUTH1_15360
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15360
clear_prints 
143@ = 18

:TRUTH1_15360
if 
  143@ == 18
goto_if_false @TRUTH1_15414
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15414
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41003
143@ = 19

:TRUTH1_15414
if 
  143@ == 19
goto_if_false @TRUTH1_15490
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15490
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15490
print_now 'TRU1_AD' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 20

:TRUTH1_15490
if 
  143@ == 21
goto_if_false @TRUTH1_15555
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15555
clear_prints 
if 
  not is_char_dead 53@
goto_if_false @TRUTH1_15548
shut_char_up 53@ {state} False

:TRUTH1_15548
143@ = 22

:TRUTH1_15555
if 
  143@ == 23
goto_if_false @TRUTH1_15609
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_15609
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41028
143@ = 24

:TRUTH1_15609
if 
  143@ == 24
goto_if_false @TRUTH1_15692
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_15692
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15692
shut_char_up 38@ {state} True
print_now 'TRU1_DE' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 25

:TRUTH1_15692
if 
  143@ == 26
goto_if_false @TRUTH1_15757
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15757
clear_prints 
if 
  not is_char_dead 38@
goto_if_false @TRUTH1_15750
shut_char_up 38@ {state} False

:TRUTH1_15750
143@ = 27

:TRUTH1_15757
if 
  143@ == 28
goto_if_false @TRUTH1_15811
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_15811
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41002
143@ = 29

:TRUTH1_15811
if 
  143@ == 29
goto_if_false @TRUTH1_15894
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_15894
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15894
shut_char_up 68@ {state} True
print_now 'TRU1_AC' {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
143@ = 30

:TRUTH1_15894
if 
  143@ == 30
goto_if_false @TRUTH1_15959
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_15959
clear_prints 
if 
  not is_char_dead 68@
goto_if_false @TRUTH1_15952
shut_char_up 68@ {state} False

:TRUTH1_15952
143@ = 31

:TRUTH1_15959
goto @TRUTH1_935

:TRUTH1_15966
if 
  145@ == 0
goto_if_false @TRUTH1_16006
load_mission_audio MissionAudioSlot.Slot1 {audioId} 113@
set_lvar_text_label 111@s = 114@s
145@ = 1

:TRUTH1_16006
return 

:TRUTH1_16008
if 
  145@ == 1
goto_if_false @TRUTH1_16062
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH1_16062
print_now 111@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
145@ = 2

:TRUTH1_16062
if 
  145@ == 2
goto_if_false @TRUTH1_16115
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH1_16115
144@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
145@ = 0

:TRUTH1_16115
return 

:TRUTH1_16117
108@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 103@ {y} 104@ {z} 105@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 108@
perform_sequence_task 102@ {sequence} 108@
clear_sequence_task 108@
return 

:TRUTH1_16178
99@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1025.67 {y} -1029.39 {z} 130.5 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1154.0601 {y} -1041.3199 {z} 130.5 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1166.8199 {y} -941.32 {z} 130.21 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1031.46 {y} -935.51 {z} 130.19 {speed} 6.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 99@
perform_sequence_task 38@ {sequence} 99@
clear_sequence_task 99@
return 

:TRUTH1_16335
100@ = open_sequence_task 
task_car_mission -1 {vehicle} 101@ {targetVehicle} 101@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 100@
perform_sequence_task 102@ {sequence} 100@
clear_sequence_task 100@
return 

:TRUTH1_16379
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TRUTH1_16397
remove_blip $bcrash_contact_blip
$bcrash_contact_blip = add_sprite_blip_for_contact_point $bcrashX {y} $bcrashY {z} $bcrashZ {sprite} $cesar_blip_icon
switch_car_generator $iFieldHarvester {amount} 101
switch_car_generator $2866 {amount} 101
switch_car_generator $2867 {amount} 101
switch_car_generator $2868 {amount} 101
switch_car_generator $2869 {amount} 101
switch_car_generator $2870 {amount} 101
switch_car_generator $2871 {amount} 101
switch_car_generator $2872 {amount} 101
register_mission_passed 'TRUTH_1'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
clear_wanted_level $player1
$flag_truth_mission_counter += 1
remove_blip $truth_contact_blip
return 

:TRUTH1_16535
$onmission = 0
mark_model_as_no_longer_needed 532
mark_model_as_no_longer_needed 531
mark_model_as_no_longer_needed #KMB_MARIJUANA
mark_model_as_no_longer_needed #SW_HAYBREAK02
mark_model_as_no_longer_needed 357
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 157
mark_model_as_no_longer_needed 160
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 424
mark_model_as_no_longer_needed 337
unload_special_character 1
remove_blip 116@
mark_car_as_no_longer_needed 56@
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 47---------------
// Originally: Are you going to San Fierro?

:TRUTH2
script_name 'TRUTH2'
gosub @TRUTH2_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUTH2_38
gosub @TRUTH2_11910

:TRUTH2_38
gosub @TRUTH2_12153
terminate_this_script 

:TRUTH2_47
$onmission = 1
register_mission_given 
load_mission_text 'TRU2'
if 
  $onmission == 0
goto_if_false @TRUTH2_159
42@ = add_blip_for_coord -1111.7 {y} -1622.7 {z} 76.4
41@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 10 {x} -1100.3 {y} -1640.4 {z} 76.4
40@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 10 {x} -1100.3 {y} -1640.4 {z} 76.4

:TRUTH2_159
clear_prints 
wait 0
$t2_cop_timer = 331000
87@ = 0
88@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
$t2_total_weed_burnt = 44
135@ = 0
136@ = 0
148@ = 0
149@ = 0
137@ = 0
138@ = 0.0
139@ = 0.0
140@ = 0.0
141@ = 0.0
142@ = 0.0
143@ = 0.0
144@ = 0
145@ = 0
146@ = 0
147@ = 44
151@ = 0
152@ = 0
153@ = 0
202@ = 0
203@ = 0
204@ = 0
205@ = 0
206@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
150@ = 0
213@ = 0
214@ = 0
212@ = 0
make_player_gang_disappear 
clear_area -1110.2 {y} -1638.5 {z} 76.0 {radius} 20.0 {clearParticles} True
load_cutscene 'TRUTH_2'

:TRUTH2_797
if 
  not has_cutscene_loaded 
goto_if_false @TRUTH2_821
wait 0
goto @TRUTH2_797

:TRUTH2_821
start_cutscene 
do_fade 1000 {direction} Fade.In

:TRUTH2_830
if 
  not has_cutscene_finished 
goto_if_false @TRUTH2_854
wait 0
goto @TRUTH2_830

:TRUTH2_854
do_fade 0 {direction} Fade.Out

:TRUTH2_860
if 
  get_fading_status 
goto_if_false @TRUTH2_884
wait 0
goto @TRUTH2_860

:TRUTH2_884
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 483
request_model 543
request_model 497
request_model 283
request_model 361
request_model 346
load_special_character 1 {modelName} 'TRUTH'
remove_ipl "TRUTHSFARM"
request_ipl "TRUTHSFARM"
load_all_models_now 
set_max_fire_generations 2
clear_area -913.3 {y} -1720.5 {z} 76.6 {radius} 300.0 {clearParticles} True
216@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_area -913.3 {y} -1720.5 {z} 76.6 {radius} 1.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -913.3 {y} -1720.5 {z} 76.6
give_weapon_to_char $scplayer {weaponType} WeaponType.Flamethrower {ammo} 3000
clear_area -1079.4041 {y} -1640.694 {z} 75.375 {radius} 20.0 {clearParticles} True
$truth = create_char PedType.Mission1 {modelId} 290 {x} -1079.4041 {y} -1640.694 {z} 75.375
set_char_drops_weapons_when_dead $truth {state} False
set_char_get_out_upside_down_car $truth {state} False
set_char_decision_maker $truth {handleOrTemplate} 216@
set_char_heading $truth {heading} 299.7411
give_weapon_to_char $truth {weaponType} WeaponType.Flamethrower {ammo} 3000
set_char_never_targetted $truth {state} True
set_char_cant_be_dragged_out $truth {state} True
215@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1070.1 {y} -1636.5 {z} 75.4 {speed} MoveState.Run {time} -1
task_shoot_at_coord -1 {x} -1062.2 {y} -1631.1 {z} 75.3 {time} -1
close_sequence_task 215@
perform_sequence_task $truth {sequence} 215@
clear_sequence_task 215@
clear_area -1077.6 {y} -1650.2 {z} 75.3 {radius} 20.0 {clearParticles} True
custom_plate_for_next_car 483 {text} "OUTTHERE"
34@ = create_car 483 {x} -1077.6 {y} -1650.2 {z} 75.3
change_car_colour 34@ {color1} 1 {color2} 1
give_vehicle_paintjob 34@ {paintjobId} 0
set_can_respray_car 34@ {changeColors} False
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_traction 34@ {traction} 2.0
set_car_heading 34@ {heading} 256.4
freeze_car_position 34@ {state} True
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
clear_area -946.6 {y} -1735.0 {z} 76.9 {radius} 5.0 {clearParticles} True
39@ = create_car 543 {x} -946.6 {y} -1735.0 {z} 76.9
set_car_heading 39@ {heading} 1.4
set_car_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
clear_area -918.5 {y} -1751.1 {z} 97.3 {radius} 5.0 {clearParticles} True
35@ = create_car 497 {x} -918.5 {y} -1751.1 {z} 97.3
set_heli_blades_full_speed 35@
36@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 283
38@ = create_searchlight_on_vehicle 35@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0 {xPoint} -936.6 {yPoint} -1723.2 {zPoint} 76.8 {pointRadius} 6.0 {radius} 1.0
point_searchlight_at_char 38@ {handle} $truth {speed} 10.0
heli_follow_entity 35@ {char} $truth {vehicle} -1 {radius} 20.0
lock_car_doors 35@ {lockStatus} CarLock.Locked
set_char_can_be_shot_in_vehicle 36@ {state} False
set_char_decision_maker 36@ {handleOrTemplate} 216@
43@ = add_blip_for_coord -1062.1 {y} -1631.7 {z} 75.3
change_blip_scale 43@ {size} 1
set_coord_blip_appearance 43@ {color} CoordAppearance.Enemy
44@ = add_blip_for_coord -1052.3 {y} -1631.7 {z} 75.3
change_blip_scale 44@ {size} 1
set_coord_blip_appearance 44@ {color} CoordAppearance.Enemy
45@ = add_blip_for_coord -1042.4 {y} -1631.7 {z} 75.3
change_blip_scale 45@ {size} 1
set_coord_blip_appearance 45@ {color} CoordAppearance.Enemy
46@ = add_blip_for_coord -1032.6 {y} -1631.7 {z} 75.3
change_blip_scale 46@ {size} 1
set_coord_blip_appearance 46@ {color} CoordAppearance.Enemy
47@ = add_blip_for_coord -1023.1 {y} -1631.7 {z} 75.3
change_blip_scale 47@ {size} 1
set_coord_blip_appearance 47@ {color} CoordAppearance.Enemy
48@ = add_blip_for_coord -1062.1 {y} -1622.2 {z} 75.3
change_blip_scale 48@ {size} 1
set_coord_blip_appearance 48@ {color} CoordAppearance.Enemy
49@ = add_blip_for_coord -1052.3 {y} -1622.2 {z} 75.3
change_blip_scale 49@ {size} 1
set_coord_blip_appearance 49@ {color} CoordAppearance.Enemy
50@ = add_blip_for_coord -1042.4 {y} -1622.2 {z} 75.3
change_blip_scale 50@ {size} 1
set_coord_blip_appearance 50@ {color} CoordAppearance.Enemy
51@ = add_blip_for_coord -1032.6 {y} -1622.2 {z} 75.3
change_blip_scale 51@ {size} 1
set_coord_blip_appearance 51@ {color} CoordAppearance.Enemy
52@ = add_blip_for_coord -1023.1 {y} -1622.2 {z} 75.3
change_blip_scale 52@ {size} 1
set_coord_blip_appearance 52@ {color} CoordAppearance.Enemy
53@ = add_blip_for_coord -991.92 {y} -1703.1 {z} 75.3
change_blip_scale 53@ {size} 1
set_coord_blip_appearance 53@ {color} CoordAppearance.Enemy
54@ = add_blip_for_coord -982.38 {y} -1703.1 {z} 75.3
change_blip_scale 54@ {size} 1
set_coord_blip_appearance 54@ {color} CoordAppearance.Enemy
55@ = add_blip_for_coord -991.92 {y} -1693.6 {z} 75.3
change_blip_scale 55@ {size} 1
set_coord_blip_appearance 55@ {color} CoordAppearance.Enemy
56@ = add_blip_for_coord -982.38 {y} -1693.6 {z} 75.3
change_blip_scale 56@ {size} 1
set_coord_blip_appearance 56@ {color} CoordAppearance.Enemy
57@ = add_blip_for_coord -991.92 {y} -1684.1 {z} 75.3
change_blip_scale 57@ {size} 1
set_coord_blip_appearance 57@ {color} CoordAppearance.Enemy
58@ = add_blip_for_coord -982.38 {y} -1684.1 {z} 75.3
change_blip_scale 58@ {size} 1
set_coord_blip_appearance 58@ {color} CoordAppearance.Enemy
59@ = add_blip_for_coord -1011.8 {y} -1667.6 {z} 75.3
change_blip_scale 59@ {size} 1
set_coord_blip_appearance 59@ {color} CoordAppearance.Enemy
60@ = add_blip_for_coord -1011.8 {y} -1658.1 {z} 75.3
change_blip_scale 60@ {size} 1
set_coord_blip_appearance 60@ {color} CoordAppearance.Enemy
61@ = add_blip_for_coord -1011.8 {y} -1648.7 {z} 75.3
change_blip_scale 61@ {size} 1
set_coord_blip_appearance 61@ {color} CoordAppearance.Enemy
62@ = add_blip_for_coord -1000.7 {y} -1667.6 {z} 75.3
change_blip_scale 62@ {size} 1
set_coord_blip_appearance 62@ {color} CoordAppearance.Enemy
63@ = add_blip_for_coord -1000.7 {y} -1658.1 {z} 75.3
change_blip_scale 63@ {size} 1
set_coord_blip_appearance 63@ {color} CoordAppearance.Enemy
64@ = add_blip_for_coord -1000.7 {y} -1648.7 {z} 75.3
change_blip_scale 64@ {size} 1
set_coord_blip_appearance 64@ {color} CoordAppearance.Enemy
65@ = add_blip_for_coord -1011.8 {y} -1672.3 {z} 75.3
change_blip_scale 65@ {size} 1
set_coord_blip_appearance 65@ {color} CoordAppearance.Enemy
66@ = add_blip_for_coord -991.92 {y} -1688.8 {z} 75.3
change_blip_scale 66@ {size} 1
set_coord_blip_appearance 66@ {color} CoordAppearance.Enemy
67@ = add_blip_for_coord -982.38 {y} -1688.8 {z} 75.3
change_blip_scale 67@ {size} 1
set_coord_blip_appearance 67@ {color} CoordAppearance.Enemy
68@ = add_blip_for_coord -982.38 {y} -1698.2 {z} 75.3
change_blip_scale 68@ {size} 1
set_coord_blip_appearance 68@ {color} CoordAppearance.Enemy
69@ = add_blip_for_coord -991.92 {y} -1698.2 {z} 75.3
change_blip_scale 69@ {size} 1
set_coord_blip_appearance 69@ {color} CoordAppearance.Enemy
70@ = add_blip_for_coord -982.38 {y} -1707.7 {z} 75.3
change_blip_scale 70@ {size} 1
set_coord_blip_appearance 70@ {color} CoordAppearance.Enemy
71@ = add_blip_for_coord -1011.8 {y} -1662.8 {z} 75.3
change_blip_scale 71@ {size} 1
set_coord_blip_appearance 71@ {color} CoordAppearance.Enemy
72@ = add_blip_for_coord -1000.7 {y} -1672.3 {z} 75.3
change_blip_scale 72@ {size} 1
set_coord_blip_appearance 72@ {color} CoordAppearance.Enemy
73@ = add_blip_for_coord -1011.8 {y} -1653.4 {z} 75.3
change_blip_scale 73@ {size} 1
set_coord_blip_appearance 73@ {color} CoordAppearance.Enemy
74@ = add_blip_for_coord -1032.6 {y} -1636.3 {z} 75.3
change_blip_scale 74@ {size} 1
set_coord_blip_appearance 74@ {color} CoordAppearance.Enemy
75@ = add_blip_for_coord -1052.3 {y} -1636.3 {z} 75.3
change_blip_scale 75@ {size} 1
set_coord_blip_appearance 75@ {color} CoordAppearance.Enemy
76@ = add_blip_for_coord -1042.4 {y} -1636.3 {z} 75.3
change_blip_scale 76@ {size} 1
set_coord_blip_appearance 76@ {color} CoordAppearance.Enemy
77@ = add_blip_for_coord -1062.1 {y} -1626.8 {z} 75.3
change_blip_scale 77@ {size} 1
set_coord_blip_appearance 77@ {color} CoordAppearance.Enemy
78@ = add_blip_for_coord -991.92 {y} -1707.7 {z} 75.3
change_blip_scale 78@ {size} 1
set_coord_blip_appearance 78@ {color} CoordAppearance.Enemy
79@ = add_blip_for_coord -1023.1 {y} -1626.8 {z} 75.3
change_blip_scale 79@ {size} 1
set_coord_blip_appearance 79@ {color} CoordAppearance.Enemy
80@ = add_blip_for_coord -1000.7 {y} -1662.8 {z} 75.3
change_blip_scale 80@ {size} 1
set_coord_blip_appearance 80@ {color} CoordAppearance.Enemy
81@ = add_blip_for_coord -1000.7 {y} -1653.4 {z} 75.3
change_blip_scale 81@ {size} 1
set_coord_blip_appearance 81@ {color} CoordAppearance.Enemy
82@ = add_blip_for_coord -1032.6 {y} -1626.8 {z} 75.3
change_blip_scale 82@ {size} 1
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
83@ = add_blip_for_coord -1042.4 {y} -1626.8 {z} 75.3
change_blip_scale 83@ {size} 1
set_coord_blip_appearance 83@ {color} CoordAppearance.Enemy
84@ = add_blip_for_coord -1052.3 {y} -1626.8 {z} 75.3
change_blip_scale 84@ {size} 1
set_coord_blip_appearance 84@ {color} CoordAppearance.Enemy
85@ = add_blip_for_coord -1062.1 {y} -1636.3 {z} 75.3
change_blip_scale 85@ {size} 1
set_coord_blip_appearance 85@ {color} CoordAppearance.Enemy
86@ = add_blip_for_coord -1023.1 {y} -1636.3 {z} 75.3
change_blip_scale 86@ {size} 1
set_coord_blip_appearance 86@ {color} CoordAppearance.Enemy
display_onscreen_timer_with_string $t2_cop_timer {direction} TimerDirection.Down {text} 'TRU2_06'
set_char_coordinates $scplayer {x} -1089.9 {y} -1644.1 {z} 75.4
set_char_heading $scplayer {heading} 283.3
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In
print 'TRU2_01' {time} 7000 {flag} 1
print 'TRU2_02' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0

:TRUTH2_3224
wait 0
gosub @TRUTH2_14570
clear_wanted_level $player1
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @TRUTH2_3262
goto @TRUTH2_11942

:TRUTH2_3262
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_3294
goto @TRUTH2_11910

:TRUTH2_3294
if 
  87@ == 0
goto_if_false @TRUTH2_7881
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @TRUTH2_3388
151@ = 0
if 
  88@ == 0
goto_if_false @TRUTH2_3361
clear_prints 
88@ = 1

:TRUTH2_3361
set_char_coordinates $scplayer {x} -1104.7 {y} -1648.0 {z} 75.4
$t2_total_weed_burnt = 0

:TRUTH2_3388
if 
  88@ == 0
goto_if_false @TRUTH2_3461
if 
  20 > $t2_total_weed_burnt
goto_if_false @TRUTH2_3461
clear_prints 
151@ = 1
152@ = 0
gosub @TRUTH2_14975
88@ = 1
TIMERA = 0

:TRUTH2_3461
if 
  88@ == 1
goto_if_false @TRUTH2_3514
if 
  151@ == 0
goto_if_false @TRUTH2_3514
task_enter_car_as_driver $truth {vehicle} 34@ {time} -1
88@ = 2

:TRUTH2_3514
gosub @TRUTH2_12789
if 
  91@ == 0
goto_if_false @TRUTH2_3618
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3618
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 43@
$t2_total_weed_burnt -= 1
91@ = 1

:TRUTH2_3618
if 
  92@ == 0
goto_if_false @TRUTH2_3715
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3715
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 44@
$t2_total_weed_burnt -= 1
92@ = 1

:TRUTH2_3715
if 
  93@ == 0
goto_if_false @TRUTH2_3812
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3812
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 45@
$t2_total_weed_burnt -= 1
93@ = 1

:TRUTH2_3812
if 
  94@ == 0
goto_if_false @TRUTH2_3909
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_3909
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 46@
$t2_total_weed_burnt -= 1
94@ = 1

:TRUTH2_3909
if 
  95@ == 0
goto_if_false @TRUTH2_4006
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1631.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4006
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 47@
$t2_total_weed_burnt -= 1
95@ = 1

:TRUTH2_4006
if 
  96@ == 0
goto_if_false @TRUTH2_4103
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4103
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 48@
$t2_total_weed_burnt -= 1
96@ = 1

:TRUTH2_4103
if 
  97@ == 0
goto_if_false @TRUTH2_4200
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4200
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 49@
$t2_total_weed_burnt -= 1
97@ = 1

:TRUTH2_4200
if 
  98@ == 0
goto_if_false @TRUTH2_4297
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4297
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 50@
$t2_total_weed_burnt -= 1
98@ = 1

:TRUTH2_4297
if 
  99@ == 0
goto_if_false @TRUTH2_4394
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4394
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 51@
$t2_total_weed_burnt -= 1
99@ = 1

:TRUTH2_4394
if 
  100@ == 0
goto_if_false @TRUTH2_4491
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1622.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4491
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 52@
$t2_total_weed_burnt -= 1
100@ = 1

:TRUTH2_4491
if 
  101@ == 0
goto_if_false @TRUTH2_4588
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1703.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4588
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 53@
$t2_total_weed_burnt -= 1
101@ = 1

:TRUTH2_4588
if 
  102@ == 0
goto_if_false @TRUTH2_4685
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1703.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4685
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 54@
$t2_total_weed_burnt -= 1
102@ = 1

:TRUTH2_4685
if 
  103@ == 0
goto_if_false @TRUTH2_4782
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1693.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4782
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 55@
$t2_total_weed_burnt -= 1
103@ = 1

:TRUTH2_4782
if 
  104@ == 0
goto_if_false @TRUTH2_4879
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1693.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4879
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 56@
$t2_total_weed_burnt -= 1
104@ = 1

:TRUTH2_4879
if 
  105@ == 0
goto_if_false @TRUTH2_4976
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1684.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_4976
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 57@
$t2_total_weed_burnt -= 1
105@ = 1

:TRUTH2_4976
if 
  106@ == 0
goto_if_false @TRUTH2_5073
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1684.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5073
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 58@
$t2_total_weed_burnt -= 1
106@ = 1

:TRUTH2_5073
if 
  107@ == 0
goto_if_false @TRUTH2_5170
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1667.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5170
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 59@
$t2_total_weed_burnt -= 1
107@ = 1

:TRUTH2_5170
if 
  108@ == 0
goto_if_false @TRUTH2_5267
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1658.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5267
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 60@
$t2_total_weed_burnt -= 1
108@ = 1

:TRUTH2_5267
if 
  109@ == 0
goto_if_false @TRUTH2_5364
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1648.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5364
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 61@
$t2_total_weed_burnt -= 1
109@ = 1

:TRUTH2_5364
if 
  110@ == 0
goto_if_false @TRUTH2_5461
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1667.6 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5461
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 62@
$t2_total_weed_burnt -= 1
110@ = 1

:TRUTH2_5461
if 
  111@ == 0
goto_if_false @TRUTH2_5558
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1658.1 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5558
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 63@
$t2_total_weed_burnt -= 1
111@ = 1

:TRUTH2_5558
if 
  112@ == 0
goto_if_false @TRUTH2_5655
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1648.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5655
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 64@
$t2_total_weed_burnt -= 1
112@ = 1

:TRUTH2_5655
if 
  113@ == 0
goto_if_false @TRUTH2_5752
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1672.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5752
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 65@
$t2_total_weed_burnt -= 1
113@ = 1

:TRUTH2_5752
if 
  114@ == 0
goto_if_false @TRUTH2_5849
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1688.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5849
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 66@
$t2_total_weed_burnt -= 1
114@ = 1

:TRUTH2_5849
if 
  115@ == 0
goto_if_false @TRUTH2_5946
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1688.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_5946
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 67@
$t2_total_weed_burnt -= 1
115@ = 1

:TRUTH2_5946
if 
  116@ == 0
goto_if_false @TRUTH2_6043
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1698.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6043
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 68@
$t2_total_weed_burnt -= 1
116@ = 1

:TRUTH2_6043
if 
  117@ == 0
goto_if_false @TRUTH2_6140
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1698.2 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6140
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 69@
$t2_total_weed_burnt -= 1
117@ = 1

:TRUTH2_6140
if 
  118@ == 0
goto_if_false @TRUTH2_6237
if 
  is_closest_object_of_type_smashed_or_damaged -982.38 {y} -1707.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6237
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 70@
$t2_total_weed_burnt -= 1
118@ = 1

:TRUTH2_6237
if 
  119@ == 0
goto_if_false @TRUTH2_6334
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1662.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6334
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 71@
$t2_total_weed_burnt -= 1
119@ = 1

:TRUTH2_6334
if 
  120@ == 0
goto_if_false @TRUTH2_6431
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1672.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6431
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 72@
$t2_total_weed_burnt -= 1
120@ = 1

:TRUTH2_6431
if 
  121@ == 0
goto_if_false @TRUTH2_6528
if 
  is_closest_object_of_type_smashed_or_damaged -1011.8 {y} -1653.4 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6528
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 73@
$t2_total_weed_burnt -= 1
121@ = 1

:TRUTH2_6528
if 
  122@ == 0
goto_if_false @TRUTH2_6625
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6625
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 74@
$t2_total_weed_burnt -= 1
122@ = 1

:TRUTH2_6625
if 
  123@ == 0
goto_if_false @TRUTH2_6722
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6722
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 75@
$t2_total_weed_burnt -= 1
123@ = 1

:TRUTH2_6722
if 
  124@ == 0
goto_if_false @TRUTH2_6819
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6819
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 76@
$t2_total_weed_burnt -= 1
124@ = 1

:TRUTH2_6819
if 
  125@ == 0
goto_if_false @TRUTH2_6916
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_6916
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 77@
$t2_total_weed_burnt -= 1
125@ = 1

:TRUTH2_6916
if 
  126@ == 0
goto_if_false @TRUTH2_7013
if 
  is_closest_object_of_type_smashed_or_damaged -991.92 {y} -1707.7 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7013
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 78@
$t2_total_weed_burnt -= 1
126@ = 1

:TRUTH2_7013
if 
  127@ == 0
goto_if_false @TRUTH2_7110
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7110
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 79@
$t2_total_weed_burnt -= 1
127@ = 1

:TRUTH2_7110
if 
  128@ == 0
goto_if_false @TRUTH2_7207
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1662.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7207
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 80@
$t2_total_weed_burnt -= 1
128@ = 1

:TRUTH2_7207
if 
  129@ == 0
goto_if_false @TRUTH2_7304
if 
  is_closest_object_of_type_smashed_or_damaged -1000.7 {y} -1653.4 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7304
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 81@
$t2_total_weed_burnt -= 1
129@ = 1

:TRUTH2_7304
if 
  130@ == 0
goto_if_false @TRUTH2_7401
if 
  is_closest_object_of_type_smashed_or_damaged -1032.6 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7401
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 82@
$t2_total_weed_burnt -= 1
130@ = 1

:TRUTH2_7401
if 
  131@ == 0
goto_if_false @TRUTH2_7498
if 
  is_closest_object_of_type_smashed_or_damaged -1042.4 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7498
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 83@
$t2_total_weed_burnt -= 1
131@ = 1

:TRUTH2_7498
if 
  132@ == 0
goto_if_false @TRUTH2_7595
if 
  is_closest_object_of_type_smashed_or_damaged -1052.3 {y} -1626.8 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7595
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 84@
$t2_total_weed_burnt -= 1
132@ = 1

:TRUTH2_7595
if 
  133@ == 0
goto_if_false @TRUTH2_7692
if 
  is_closest_object_of_type_smashed_or_damaged -1062.1 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7692
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 85@
$t2_total_weed_burnt -= 1
133@ = 1

:TRUTH2_7692
if 
  134@ == 0
goto_if_false @TRUTH2_7789
if 
  is_closest_object_of_type_smashed_or_damaged -1023.1 {y} -1636.3 {z} 75.3 {radius} 1.0 {modelId} #GRASSPLANT {smashed} False {damaged} True
goto_if_false @TRUTH2_7789
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 86@
$t2_total_weed_burnt -= 1
134@ = 1

:TRUTH2_7789
if 
  $t2_total_weed_burnt == 0
goto_if_false @TRUTH2_7881
mark_model_as_no_longer_needed 361
remove_blip 42@
42@ = add_blip_for_coord -1075.5 {y} -1648.5 {z} 75.1
set_coord_blip_appearance 42@ {color} CoordAppearance.Friend
print 'TRU2_14' {time} 11000 {flag} 1
144@ = 0
88@ = 0
87@ = 1

:TRUTH2_7881
if 
  87@ == 1
goto_if_false @TRUTH2_9383
if 
  88@ == 0
goto_if_false @TRUTH2_8279
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_8231
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @TRUTH2_8224
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
set_player_drunkenness $player1 {intensity} 0
remove_pickup 40@
freeze_onscreen_timer True
request_model 359
load_all_models_now 
clear_area -1075.5 {y} -1648.0 {z} 75.1 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1
set_char_heading $scplayer {heading} 157.1
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 6.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 4000
set_fixed_camera_position -1071.3 {y} -1647.8 {z} 75.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1078.8 {y} -1648.8 {z} 76.3 {switchStyle} SwitchType.JumpCut
clear_prints 
89@ = 1
skip_cutscene_start_internal @TRUTH2_8545
151@ = 8
152@ = 0
gosub @TRUTH2_14975
88@ = 1

:TRUTH2_8224
goto @TRUTH2_8279

:TRUTH2_8231
freeze_car_position 34@ {state} False
task_car_drive_to_coord $truth {vehicle} 34@ {x} -939.5 {y} -1718.8 {z} 76.7 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
88@ = 5

:TRUTH2_8279
if 
  88@ == 1
goto_if_false @TRUTH2_8351
if 
  151@ == 0
goto_if_false @TRUTH2_8351
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} -1081.4 {y} -1650.3 {z} 75.4 {speed} MoveState.Walk {time} -1
88@ = 2

:TRUTH2_8351
if 
  88@ == 2
goto_if_false @TRUTH2_8435
$task_status = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TRUTH2_8435
give_weapon_to_char $scplayer {weaponType} WeaponType.RocketLauncher {ammo} 10
151@ = 9
152@ = 0
gosub @TRUTH2_14975
88@ = 3

:TRUTH2_8435
if 
  88@ == 3
goto_if_false @TRUTH2_8502
if 
  152@ == 1
goto_if_false @TRUTH2_8502
task_go_straight_to_coord $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1 {speed} MoveState.Walk {time} -1
88@ = 4

:TRUTH2_8502
if 
  88@ == 4
goto_if_false @TRUTH2_8967
if 
  151@ == 0
goto_if_false @TRUTH2_8967
89@ = 0

:TRUTH2_8545
skip_cutscene_end 
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8579
goto @TRUTH2_11910

:TRUTH2_8579
if 
  89@ == 1
goto_if_false @TRUTH2_8745
clear_char_tasks_immediately $scplayer
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
do_fade 500 {direction} Fade.Out

:TRUTH2_8626
if 
  get_fading_status 
goto_if_false @TRUTH2_8650
wait 0
goto @TRUTH2_8626

:TRUTH2_8650
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8682
goto @TRUTH2_11910

:TRUTH2_8682
give_weapon_to_char $scplayer {weaponType} WeaponType.RocketLauncher {ammo} 10
clear_area -1075.5 {y} -1648.0 {z} 75.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1075.5 {y} -1648.0 {z} 75.1
set_char_heading $scplayer {heading} 268.0

:TRUTH2_8745
shut_all_chars_up False
freeze_onscreen_timer False
freeze_car_position 34@ {state} False
set_drunk_input_delay $player1 {delay} 145@
set_player_drunkenness $player1 {intensity} 146@
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
task_car_drive_to_coord $truth {vehicle} 34@ {x} -939.5 {y} -1718.8 {z} 76.7 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
remove_blip 42@
42@ = add_blip_for_car 35@
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_8872
print_now 'TRU2_15' {time} 7000 {flag} 1

:TRUTH2_8872
if 
  89@ == 1
goto_if_false @TRUTH2_8953
do_fade 500 {direction} Fade.In

:TRUTH2_8897
if 
  get_fading_status 
goto_if_false @TRUTH2_8921
wait 0
goto @TRUTH2_8897

:TRUTH2_8921
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_8953
goto @TRUTH2_11910

:TRUTH2_8953
TIMERB = 0
88@ = 5

:TRUTH2_8967
if 
  88@ == 5
goto_if_false @TRUTH2_9383
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @TRUTH2_9041
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_9021
explode_car 35@

:TRUTH2_9021
set_char_coordinates $scplayer {x} -946.8 {y} -1733.5 {z} 76.8

:TRUTH2_9041
if 
  153@ == 2
goto_if_false @TRUTH2_9099
if 
  not is_this_help_message_being_displayed 'SYN3_23'
goto_if_false @TRUTH2_9099
print_help 'SYN3_24'
153@ = 3

:TRUTH2_9099
if 
  153@ == 1
goto_if_false @TRUTH2_9157
if 
  not is_this_help_message_being_displayed 'SYN3_22'
goto_if_false @TRUTH2_9157
print_help 'SYN3_23'
153@ = 2

:TRUTH2_9157
if 
  153@ == 0
goto_if_false @TRUTH2_9212
if 
  TIMERB > 7000
goto_if_false @TRUTH2_9212
print_help 'SYN3_22'
153@ = 1

:TRUTH2_9212
if 
  is_car_dead 35@
goto_if_false @TRUTH2_9376
clear_onscreen_timer $t2_cop_timer
clear_prints 
set_radio_channel RadioChannel.KDST
print 'TRU2_17' {time} 11000 {flag} 1
set_car_status 34@ {status} EntityStatus.Physics
set_car_cruise_speed 34@ {maxSpeed} 0.0
set_car_temp_action 34@ {actionId} TempAction.HandbrakeStraight {time} 1000
if 
  is_char_in_any_car $truth
goto_if_false @TRUTH2_9318
warp_char_from_car_to_coord $truth {x} -1516.4 {y} -1596.9 {z} 41.0

:TRUTH2_9318
warp_char_into_car_as_passenger $truth {handle} 34@ {seat} -1
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
remove_blip 42@
42@ = add_blip_for_car 34@
set_blip_as_friendly 42@ {state} True
88@ = 0
87@ = 2
goto @TRUTH2_9383

:TRUTH2_9376
gosub @TRUTH2_14224

:TRUTH2_9383
if 
  87@ == 2
goto_if_false @TRUTH2_9591
if 
  88@ == 0
goto_if_false @TRUTH2_9546
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_9546
set_car_status 34@ {status} EntityStatus.Player
clear_this_print 'TRU2_17'
print_now 'TRU2_12' {time} 7000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $truth {state} True
remove_blip 42@
42@ = add_blip_for_coord -2031.3 {y} 178.5 {z} 27.9
set_blip_as_friendly 42@ {state} False
TIMERB = 0
136@ = 1
88@ = 0
87@ = 3

:TRUTH2_9546
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @TRUTH2_9591
88@ = 0
87@ = 4

:TRUTH2_9591
if 
  87@ == 3
goto_if_false @TRUTH2_10299
if 
  151@ == 3
goto_if_false @TRUTH2_9679
if 
  152@ == 6
goto_if_false @TRUTH2_9679
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TRUTH2_9679
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0

:TRUTH2_9679
if 
  88@ == 0
goto_if_false @TRUTH2_9769
if 
  TIMERB > 7000
goto_if_false @TRUTH2_9769
if 
  151@ == 0
goto_if_false @TRUTH2_9769
151@ = 3
152@ = 0
gosub @TRUTH2_14975
TIMERB = 0
88@ = 1

:TRUTH2_9769
if 
  88@ == 1
goto_if_false @TRUTH2_10105
if 
  151@ == 0
goto_if_false @TRUTH2_10105
if 
  TIMERB > 7000
goto_if_false @TRUTH2_10105
151@ = generate_random_int_in_range 4 {max} 8
if 
  151@ == 4
goto_if_false @TRUTH2_9883
if 
  202@ == 1
goto_if_false @TRUTH2_9876
151@ = 0

:TRUTH2_9876
202@ = 1

:TRUTH2_9883
if 
  151@ == 5
goto_if_false @TRUTH2_9933
if 
  203@ == 1
goto_if_false @TRUTH2_9926
151@ = 0

:TRUTH2_9926
203@ = 1

:TRUTH2_9933
if 
  151@ == 6
goto_if_false @TRUTH2_9983
if 
  204@ == 1
goto_if_false @TRUTH2_9976
151@ = 0

:TRUTH2_9976
204@ = 1

:TRUTH2_9983
if 
  151@ == 7
goto_if_false @TRUTH2_10033
if 
  205@ == 1
goto_if_false @TRUTH2_10026
151@ = 0

:TRUTH2_10026
205@ = 1

:TRUTH2_10033
if 
  206@ == 0
goto_if_false @TRUTH2_10091
137@ = get_city_player_is_in $player1
if 
  is_int_lvar_equal_to_constant 137@ == 2
goto_if_false @TRUTH2_10091
206@ = 1
151@ = 10

:TRUTH2_10091
152@ = 0
gosub @TRUTH2_14975

:TRUTH2_10105
if 
  2 > 88@
goto_if_false @TRUTH2_10292
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_10292
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @TRUTH2_10187
set_car_coordinates 34@ {x} -2009.3 {y} 145.2 {z} 26.7
set_car_heading 34@ {heading} 359.8

:TRUTH2_10187
if 
  locate_char_in_car_3d $scplayer {x} -2031.3 {y} 178.5 {z} 27.9 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TRUTH2_10292
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $truth {state} False
set_player_control $player1 {state} False
mark_model_as_no_longer_needed 283
88@ = 0
87@ = 5

:TRUTH2_10292
gosub @TRUTH2_14428

:TRUTH2_10299
if 
  87@ == 4
goto_if_false @TRUTH2_10975
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @TRUTH2_10780
if 
  88@ == 0
goto_if_false @TRUTH2_10780
clear_prints 
do_fade 500 {direction} Fade.Out

:TRUTH2_10369
if 
  get_fading_status 
goto_if_false @TRUTH2_10393
wait 0
goto @TRUTH2_10369

:TRUTH2_10393
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_10425
goto @TRUTH2_11910

:TRUTH2_10425
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 0
set_player_drunkenness $player1 {intensity} 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_only_damaged_by_player $truth {state} True
138@, 139@, 140@ = get_offset_from_char_in_world_coords $truth {xOffset} 0.0 {yOffset} -10.0 {zOffset} 5.0
request_model 334
load_scene 138@ {y} 139@ {z} 140@
clear_area 138@ {y} 139@ {z} 140@ {radius} 30.0 {clearParticles} True
set_fixed_camera_position 138@ {y} 139@ {z} 140@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $truth {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
clear_char_tasks $truth
if 
  is_char_in_car $truth {vehicle} 34@
goto_if_false @TRUTH2_10613
task_car_temp_action $truth {vehicle} 34@ {actionId} TempAction.HandbrakeStraight {time} 2000000

:TRUTH2_10613
141@, 142@, 143@ = get_nth_closest_car_node 138@ {fromY} 139@ {fromZ} 140@ {n} 1
37@ = create_char PedType.Mission1 {modelId} 283 {x} 141@ {y} 142@ {z} 143@
if 
  is_char_in_any_car $truth
goto_if_false @TRUTH2_10679
give_weapon_to_char 37@ {weaponType} WeaponType.NightStick {ammo} 1

:TRUTH2_10679
task_char_arrest_char 37@ {target} $truth
print_now 'TRU2_10' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In

:TRUTH2_10710
if 
  get_fading_status 
goto_if_false @TRUTH2_10734
wait 0
goto @TRUTH2_10710

:TRUTH2_10734
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_10766
goto @TRUTH2_11910

:TRUTH2_10766
TIMERA = 0
88@ = 1

:TRUTH2_10780
if 
  88@ == 1
goto_if_false @TRUTH2_10975
if 
  TIMERA > 7000
goto_if_false @TRUTH2_10975
do_fade 500 {direction} Fade.Out

:TRUTH2_10824
if 
  get_fading_status 
goto_if_false @TRUTH2_10848
wait 0
goto @TRUTH2_10824

:TRUTH2_10848
if 
  does_searchlight_exist 38@
goto_if_false @TRUTH2_10869
delete_searchlight 38@

:TRUTH2_10869
delete_char $truth
unload_special_character 1
delete_car 34@
delete_char 37@
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'TRU2_10' {time} 5500 {flag} 1
do_fade 500 {direction} Fade.In

:TRUTH2_10944
if 
  get_fading_status 
goto_if_false @TRUTH2_10968
wait 0
goto @TRUTH2_10944

:TRUTH2_10968
goto @TRUTH2_11910

:TRUTH2_10975
if 
  87@ == 5
goto_if_false @TRUTH2_11839
if 
  88@ == 0
goto_if_false @TRUTH2_11037
if 
  TIMERA > 1500
goto_if_false @TRUTH2_11037
88@ = 1

:TRUTH2_11037
if 
  88@ == 1
goto_if_false @TRUTH2_11617
do_fade 500 {direction} Fade.Out

:TRUTH2_11062
if 
  get_fading_status 
goto_if_false @TRUTH2_11086
wait 0
goto @TRUTH2_11062

:TRUTH2_11086
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_11118
goto @TRUTH2_11910

:TRUTH2_11118
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_player_drunkenness $player1 {intensity} 0
set_fixed_camera_position -2025.0 {y} 172.3 {z} 28.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2032.9 {y} 163.0 {z} 30.88 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
clear_area -2028.9 {y} 172.3 {z} 27.8 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2028.9 {y} 172.3 {z} 27.8
set_char_heading $scplayer {heading} 167.6
215@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2029.9 {y} 167.7 {z} 27.8 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 2000
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000
task_go_straight_to_coord -1 {x} -2033.0 {y} 161.4 {z} 28.0 {speed} MoveState.Walk {time} -1
close_sequence_task 215@
perform_sequence_task $scplayer {sequence} 215@
clear_sequence_task 215@
set_player_drunkenness $player1 {intensity} 0
clear_area -2030.9 {y} 172.3 {z} 27.8 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $truth
set_char_coordinates $truth {x} -2030.9 {y} 172.3 {z} 27.8
set_char_heading $truth {heading} 167.6
215@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2030.9 {y} 167.7 {z} 27.8 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} -2033.0 {y} 161.4 {z} 28.0 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 115.2
close_sequence_task 215@
perform_sequence_task $truth {sequence} 215@
clear_sequence_task 215@
do_fade 500 {direction} Fade.In

:TRUTH2_11523
if 
  get_fading_status 
goto_if_false @TRUTH2_11547
wait 0
goto @TRUTH2_11523

:TRUTH2_11547
gosub @TRUTH2_12668
if 
  90@ == 1
goto_if_false @TRUTH2_11579
goto @TRUTH2_11910

:TRUTH2_11579
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
151@ = 11
152@ = 0
gosub @TRUTH2_14975
88@ = 2

:TRUTH2_11617
if 
  88@ == 2
goto_if_false @TRUTH2_11667
if 
  151@ == 0
goto_if_false @TRUTH2_11667
88@ = 3
TIMERA = 0

:TRUTH2_11667
if 
  88@ == 3
goto_if_false @TRUTH2_11839
if 
  TIMERA > 1000
goto_if_false @TRUTH2_11839
do_fade 500 {direction} Fade.Out

:TRUTH2_11711
if 
  get_fading_status 
goto_if_false @TRUTH2_11735
wait 0
goto @TRUTH2_11711

:TRUTH2_11735
if 
  does_searchlight_exist 38@
goto_if_false @TRUTH2_11756
delete_searchlight 38@

:TRUTH2_11756
delete_char $truth
unload_special_character 1
delete_car 34@
delete_char 37@
clear_char_tasks_immediately $scplayer
shut_all_chars_up False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:TRUTH2_11808
if 
  get_fading_status 
goto_if_false @TRUTH2_11832
wait 0
goto @TRUTH2_11808

:TRUTH2_11832
goto @TRUTH2_11942

:TRUTH2_11839
if 
  2 > 87@
goto_if_false @TRUTH2_11896
if 
  $t2_cop_timer == 0
goto_if_false @TRUTH2_11896
87@ = 4
88@ = 0
set_char_health $truth {health} 10

:TRUTH2_11896
gosub @TRUTH2_17129
goto @TRUTH2_3224

:TRUTH2_11910
remove_weapon_from_char $scplayer {weaponType} WeaponType.Flamethrower
remove_weapon_from_char $scplayer {weaponType} WeaponType.RocketLauncher
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TRUTH2_11942
set_int_stat StatId.PassedTruth2 {value} 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'TRUTH_2'
player_made_progress 1
$flag_truth_mission_counter += 1
remove_blip $truth_contact_blip
terminate_all_scripts_with_this_name 'MOB_SF'
start_new_script @MOB_SF 
remove_blip $1732
$1732 = add_short_range_sprite_blip_for_contact_point $save_pickupX[15] {y} $save_pickupY[15] {z} $save_pickupZ[15] {sprite} RadarSprite.SaveGame
change_blip_display $1732 {display} BlipDisplay.BlipOnly
start_new_script @GARAGE 
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} RadarSprite.CJ
remove_pickup $grove_save_pickup[15]
$grove_save_pickup[15] = create_pickup #PICKUPSAVE {pickupType} PickupType.Once {x} $save_pickupX[15] {y} $save_pickupY[15] {z} $save_pickupZ[15]
$number_of_save_icons = 16
activate_garage 'MDSSFSE'
remove_blip $2589
$2589 = add_short_range_sprite_blip_for_coord -1941.0 {y} 251.7 {z} 33.4 {sprite} RadarSprite.ModGarage
return 

:TRUTH2_12153
if 
  is_player_playing $player1
goto_if_false @TRUTH2_12183
set_drunk_input_delay $player1 {delay} 0
set_player_drunkenness $player1 {intensity} 0

:TRUTH2_12183
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TRUTH2_12201
restore_camera_jumpcut 

:TRUTH2_12201
remove_ipl_discreetly "TRUTHSFARM"
remove_blip 42@
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_12266
heli_goto_coords 35@ {x} 0.0 {y} 0.0 {z} 200.0 {minAltitude} 0.0 {maxAltitude} 200.0

:TRUTH2_12266
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_12287
detach_char_from_car $truth

:TRUTH2_12287
if 
  not is_car_dead 39@
goto_if_false @TRUTH2_12318
set_car_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:TRUTH2_12318
if 
  not is_car_dead 34@
goto_if_false @TRUTH2_12341
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:TRUTH2_12341
remove_pickup 40@
remove_pickup 41@
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 543
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 283
mark_model_as_no_longer_needed 361
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 334
remove_char_elegantly $truth
unload_special_character 1
clear_onscreen_timer $t2_cop_timer
if 
  not is_char_dead $scplayer
goto_if_false @TRUTH2_12428
shut_char_up_for_scripted_speech $scplayer {state} False

:TRUTH2_12428
shut_all_chars_up False
remove_blip 43@
remove_blip 44@
remove_blip 45@
remove_blip 46@
remove_blip 47@
remove_blip 48@
remove_blip 49@
remove_blip 50@
remove_blip 51@
remove_blip 52@
remove_blip 53@
remove_blip 54@
remove_blip 55@
remove_blip 56@
remove_blip 57@
remove_blip 58@
remove_blip 59@
remove_blip 60@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
remove_blip 77@
remove_blip 78@
remove_blip 79@
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 86@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:TRUTH2_12668
if 
  is_char_dead $truth
goto_if_false @TRUTH2_12709
clear_prints 
print_now 'TRU2_08' {time} 7000 {flag} 1
90@ = 1

:TRUTH2_12709
if 
  is_car_dead 34@
goto_if_false @TRUTH2_12750
clear_prints 
print_now 'TRU2_09' {time} 7000 {flag} 1
90@ = 1

:TRUTH2_12750
if 
  is_car_dead 35@
goto_if_false @TRUTH2_12787
if 
  does_searchlight_exist 38@
goto_if_false @TRUTH2_12787
delete_searchlight 38@

:TRUTH2_12787
return 

:TRUTH2_12789
if 
  148@ == 0
goto_if_false @TRUTH2_13016
149@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Flamethrower
if 
  149@ == 0
goto_if_false @TRUTH2_13016
remove_blip 43@
remove_blip 44@
remove_blip 45@
remove_blip 46@
remove_blip 47@
remove_blip 48@
remove_blip 49@
remove_blip 50@
remove_blip 51@
remove_blip 52@
remove_blip 53@
remove_blip 54@
remove_blip 55@
remove_blip 56@
remove_blip 57@
remove_blip 58@
remove_blip 59@
remove_blip 60@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 42@
40@ = create_pickup_with_ammo 361 {pickupType} PickupType.Once {ammo} 3000 {x} -1100.3 {y} -1640.4 {z} 76.4
42@ = add_blip_for_pickup 40@
set_blip_as_friendly 42@ {state} False
print_now 'TRU2_13' {time} 7000 {flag} 1
148@ = 1

:TRUTH2_13016
if 
  148@ == 1
goto_if_false @TRUTH2_14222
if 
  has_pickup_been_collected 40@
goto_if_false @TRUTH2_14222
remove_blip 42@
if 
  91@ == 0
goto_if_false @TRUTH2_13107
43@ = add_blip_for_coord -1061.9 {y} -1630.7 {z} 75.3
change_blip_scale 43@ {size} 1
set_coord_blip_appearance 43@ {color} CoordAppearance.Enemy

:TRUTH2_13107
if 
  92@ == 0
goto_if_false @TRUTH2_13159
44@ = add_blip_for_coord -1062.3 {y} -1621.4 {z} 75.3
change_blip_scale 44@ {size} 1
set_coord_blip_appearance 44@ {color} CoordAppearance.Enemy

:TRUTH2_13159
if 
  93@ == 0
goto_if_false @TRUTH2_13211
45@ = add_blip_for_coord -1052.8 {y} -1630.8 {z} 75.3
change_blip_scale 45@ {size} 1
set_coord_blip_appearance 45@ {color} CoordAppearance.Enemy

:TRUTH2_13211
if 
  94@ == 0
goto_if_false @TRUTH2_13263
46@ = add_blip_for_coord -1052.8 {y} -1621.4 {z} 75.3
change_blip_scale 46@ {size} 1
set_coord_blip_appearance 46@ {color} CoordAppearance.Enemy

:TRUTH2_13263
if 
  95@ == 0
goto_if_false @TRUTH2_13315
47@ = add_blip_for_coord -1042.8 {y} -1630.8 {z} 75.3
change_blip_scale 47@ {size} 1
set_coord_blip_appearance 47@ {color} CoordAppearance.Enemy

:TRUTH2_13315
if 
  96@ == 0
goto_if_false @TRUTH2_13367
48@ = add_blip_for_coord -1042.8 {y} -1621.4 {z} 75.3
change_blip_scale 48@ {size} 1
set_coord_blip_appearance 48@ {color} CoordAppearance.Enemy

:TRUTH2_13367
if 
  97@ == 0
goto_if_false @TRUTH2_13419
49@ = add_blip_for_coord -1032.8 {y} -1630.8 {z} 75.3
change_blip_scale 49@ {size} 1
set_coord_blip_appearance 49@ {color} CoordAppearance.Enemy

:TRUTH2_13419
if 
  98@ == 0
goto_if_false @TRUTH2_13471
50@ = add_blip_for_coord -1032.8 {y} -1621.4 {z} 75.3
change_blip_scale 50@ {size} 1
set_coord_blip_appearance 50@ {color} CoordAppearance.Enemy

:TRUTH2_13471
if 
  99@ == 0
goto_if_false @TRUTH2_13523
51@ = add_blip_for_coord -1022.8 {y} -1630.8 {z} 75.3
change_blip_scale 51@ {size} 1
set_coord_blip_appearance 51@ {color} CoordAppearance.Enemy

:TRUTH2_13523
if 
  100@ == 0
goto_if_false @TRUTH2_13575
52@ = add_blip_for_coord -1022.8 {y} -1621.4 {z} 75.3
change_blip_scale 52@ {size} 1
set_coord_blip_appearance 52@ {color} CoordAppearance.Enemy

:TRUTH2_13575
if 
  101@ == 0
goto_if_false @TRUTH2_13627
53@ = add_blip_for_coord -1012.1 {y} -1666.8 {z} 75.3
change_blip_scale 53@ {size} 1
set_coord_blip_appearance 53@ {color} CoordAppearance.Enemy

:TRUTH2_13627
if 
  102@ == 0
goto_if_false @TRUTH2_13679
54@ = add_blip_for_coord -1012.8 {y} -1657.4 {z} 75.3
change_blip_scale 54@ {size} 1
set_coord_blip_appearance 54@ {color} CoordAppearance.Enemy

:TRUTH2_13679
if 
  103@ == 0
goto_if_false @TRUTH2_13731
55@ = add_blip_for_coord -1012.8 {y} -1648.4 {z} 75.3
change_blip_scale 55@ {size} 1
set_coord_blip_appearance 55@ {color} CoordAppearance.Enemy

:TRUTH2_13731
if 
  104@ == 0
goto_if_false @TRUTH2_13783
56@ = add_blip_for_coord -1000.1 {y} -1666.8 {z} 75.3
change_blip_scale 56@ {size} 1
set_coord_blip_appearance 56@ {color} CoordAppearance.Enemy

:TRUTH2_13783
if 
  105@ == 0
goto_if_false @TRUTH2_13835
57@ = add_blip_for_coord -1000.8 {y} -1657.4 {z} 75.3
change_blip_scale 57@ {size} 1
set_coord_blip_appearance 57@ {color} CoordAppearance.Enemy

:TRUTH2_13835
if 
  106@ == 0
goto_if_false @TRUTH2_13887
58@ = add_blip_for_coord -1000.8 {y} -1648.4 {z} 75.3
change_blip_scale 58@ {size} 1
set_coord_blip_appearance 58@ {color} CoordAppearance.Enemy

:TRUTH2_13887
if 
  107@ == 0
goto_if_false @TRUTH2_13939
59@ = add_blip_for_coord -992.1 {y} -1702.8 {z} 75.3
change_blip_scale 59@ {size} 1
set_coord_blip_appearance 59@ {color} CoordAppearance.Enemy

:TRUTH2_13939
if 
  108@ == 0
goto_if_false @TRUTH2_13991
60@ = add_blip_for_coord -992.8 {y} -1693.4 {z} 75.3
change_blip_scale 60@ {size} 1
set_coord_blip_appearance 60@ {color} CoordAppearance.Enemy

:TRUTH2_13991
if 
  109@ == 0
goto_if_false @TRUTH2_14043
61@ = add_blip_for_coord -992.8 {y} -1684.4 {z} 75.3
change_blip_scale 61@ {size} 1
set_coord_blip_appearance 61@ {color} CoordAppearance.Enemy

:TRUTH2_14043
if 
  110@ == 0
goto_if_false @TRUTH2_14095
62@ = add_blip_for_coord -982.1 {y} -1702.8 {z} 75.3
change_blip_scale 62@ {size} 1
set_coord_blip_appearance 62@ {color} CoordAppearance.Enemy

:TRUTH2_14095
if 
  111@ == 0
goto_if_false @TRUTH2_14147
63@ = add_blip_for_coord -982.8 {y} -1693.4 {z} 75.3
change_blip_scale 63@ {size} 1
set_coord_blip_appearance 63@ {color} CoordAppearance.Enemy

:TRUTH2_14147
if 
  112@ == 0
goto_if_false @TRUTH2_14199
64@ = add_blip_for_coord -982.8 {y} -1684.4 {z} 75.3
change_blip_scale 64@ {size} 1
set_coord_blip_appearance 64@ {color} CoordAppearance.Enemy

:TRUTH2_14199
print_now 'TRU2_01' {time} 11000 {flag} 1
148@ = 0

:TRUTH2_14222
return 

:TRUTH2_14224
if 
  150@ == 0
goto_if_false @TRUTH2_14340
149@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.RocketLauncher
if 
  149@ == 0
goto_if_false @TRUTH2_14340
remove_blip 42@
41@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 10 {x} -1100.3 {y} -1640.4 {z} 76.4
42@ = add_blip_for_pickup 41@
set_blip_as_friendly 42@ {state} False
print_now 'TRU2_13' {time} 7000 {flag} 1
150@ = 1

:TRUTH2_14340
if 
  150@ == 1
goto_if_false @TRUTH2_14426
if 
  has_pickup_been_collected 41@
goto_if_false @TRUTH2_14426
remove_blip 42@
if 
  not is_car_dead 35@
goto_if_false @TRUTH2_14419
42@ = add_blip_for_car 35@
print_now 'TRU2_15' {time} 11000 {flag} 1

:TRUTH2_14419
150@ = 0

:TRUTH2_14426
return 

:TRUTH2_14428
if 
  136@ == 0
goto_if_false @TRUTH2_14504
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_14504
remove_blip 42@
42@ = add_blip_for_coord -2031.3 {y} 178.5 {z} 27.9
set_blip_as_friendly 42@ {state} False
136@ = 1

:TRUTH2_14504
if 
  136@ == 1
goto_if_false @TRUTH2_14568
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_14568
remove_blip 42@
42@ = add_blip_for_car 34@
set_blip_as_friendly 42@ {state} True
136@ = 0

:TRUTH2_14568
return 

:TRUTH2_14570
if 
  87@ == 0
goto_if_false @TRUTH2_14881
if 
  $t2_total_weed_burnt > 0
goto_if_false @TRUTH2_14665
if 
  is_int_lvar_greater_than_int_var 147@ > $t2_total_weed_burnt
goto_if_false @TRUTH2_14665
if 
  200 > 146@
goto_if_false @TRUTH2_14658
146@ += 1
146@ += 1

:TRUTH2_14658
147@ -= 1

:TRUTH2_14665
if 
  144@ == 0
goto_if_false @TRUTH2_14715
if 
  40 > $t2_total_weed_burnt
goto_if_false @TRUTH2_14715
145@ += 1
144@ = 1

:TRUTH2_14715
if 
  144@ == 1
goto_if_false @TRUTH2_14765
if 
  30 > $t2_total_weed_burnt
goto_if_false @TRUTH2_14765
145@ += 1
144@ = 2

:TRUTH2_14765
if 
  144@ == 2
goto_if_false @TRUTH2_14815
if 
  20 > $t2_total_weed_burnt
goto_if_false @TRUTH2_14815
145@ += 1
144@ = 3

:TRUTH2_14815
if 
  144@ == 3
goto_if_false @TRUTH2_14865
if 
  10 > $t2_total_weed_burnt
goto_if_false @TRUTH2_14865
145@ += 1
144@ = 4

:TRUTH2_14865
set_drunk_input_delay $player1 {delay} 145@
set_player_drunkenness $player1 {intensity} 146@

:TRUTH2_14881
if or
  87@ == 2
  87@ == 3
goto_if_false @TRUTH2_14973
if 
  TIMERA > 660
goto_if_false @TRUTH2_14973
if 
  146@ > 1
goto_if_false @TRUTH2_14950
146@ -= 1

:TRUTH2_14950
set_drunk_input_delay $player1 {delay} 145@
set_player_drunkenness $player1 {intensity} 146@
TIMERA = 0

:TRUTH2_14973
return 

:TRUTH2_14975
if 
  151@ == 1
goto_if_false @TRUTH2_15192
set_lvar_text_label 154@s = 'TRU2_AA'
set_lvar_text_label 156@s = 'TRU2_AB'
set_lvar_text_label 158@s = 'TRU2_AC'
set_lvar_text_label 160@s = 'TRU2_AD'
set_lvar_text_label 162@s = 'TRU2_AE'
set_lvar_text_label 164@s = 'TRU2_BA'
set_lvar_text_label 166@s = 'TRU2_BB'
set_lvar_text_label 168@s = 'TRU2_BC'
set_lvar_int_to_constant 186@ = 41200
set_lvar_int_to_constant 187@ = 41201
set_lvar_int_to_constant 188@ = 41202
set_lvar_int_to_constant 189@ = 41203
set_lvar_int_to_constant 190@ = 41204
set_lvar_int_to_constant 191@ = 41205
set_lvar_int_to_constant 192@ = 41206
set_lvar_int_to_constant 193@ = 41207
207@ = 8

:TRUTH2_15192
if 
  151@ == 2
goto_if_false @TRUTH2_15265
set_lvar_text_label 154@s = 'TRU2_CA'
set_lvar_text_label 156@s = 'TRU2_CB'
set_lvar_int_to_constant 186@ = 41208
set_lvar_int_to_constant 187@ = 41209
207@ = 2

:TRUTH2_15265
if 
  151@ == 3
goto_if_false @TRUTH2_15552
set_lvar_text_label 154@s = 'TRU2_DA'
set_lvar_text_label 156@s = 'TRU2_DB'
set_lvar_text_label 158@s = 'TRU2_DC'
set_lvar_text_label 160@s = 'TRU2_DD'
set_lvar_text_label 162@s = 'TRU2_DE'
set_lvar_text_label 164@s = 'TRU2_OA'
set_lvar_text_label 166@s = 'TRU2_OB'
set_lvar_text_label 168@s = 'TRU2_OC'
set_lvar_text_label 170@s = 'TRU2_OD'
set_lvar_text_label 172@s = 'TRU2_OE'
set_lvar_text_label 174@s = 'TRU2_OF'
set_lvar_int_to_constant 186@ = 41210
set_lvar_int_to_constant 187@ = 41211
set_lvar_int_to_constant 188@ = 41212
set_lvar_int_to_constant 189@ = 41213
set_lvar_int_to_constant 190@ = 41214
set_lvar_int_to_constant 191@ = 41268
set_lvar_int_to_constant 192@ = 3600
set_lvar_int_to_constant 193@ = 41269
set_lvar_int_to_constant 194@ = 41270
set_lvar_int_to_constant 195@ = 41271
set_lvar_int_to_constant 196@ = 41272
207@ = 11

:TRUTH2_15552
if 
  151@ == 4
goto_if_false @TRUTH2_15721
set_lvar_text_label 154@s = 'TRU2_EA'
set_lvar_text_label 156@s = 'TRU2_EB'
set_lvar_text_label 158@s = 'TRU2_EC'
set_lvar_text_label 160@s = 'TRU2_ED'
set_lvar_text_label 162@s = 'TRU2_EF'
set_lvar_text_label 164@s = 'TRU2_EG'
set_lvar_int_to_constant 186@ = 41216
set_lvar_int_to_constant 187@ = 41217
set_lvar_int_to_constant 188@ = 41218
set_lvar_int_to_constant 189@ = 41219
set_lvar_int_to_constant 190@ = 41220
set_lvar_int_to_constant 191@ = 41221
207@ = 6

:TRUTH2_15721
if 
  151@ == 5
goto_if_false @TRUTH2_15986
set_lvar_text_label 154@s = 'TRU2_FA'
set_lvar_text_label 156@s = 'TRU2_FB'
set_lvar_text_label 158@s = 'TRU2_FC'
set_lvar_text_label 160@s = 'TRU2_FD'
set_lvar_text_label 162@s = 'TRU2_FE'
set_lvar_text_label 164@s = 'TRU2_FF'
set_lvar_text_label 166@s = 'TRU2_FG'
set_lvar_text_label 168@s = 'TRU2_FH'
set_lvar_text_label 170@s = 'TRU2_FJ'
set_lvar_text_label 172@s = 'TRU2_FK'
set_lvar_int_to_constant 186@ = 41222
set_lvar_int_to_constant 187@ = 41223
set_lvar_int_to_constant 188@ = 41224
set_lvar_int_to_constant 189@ = 41225
set_lvar_int_to_constant 190@ = 41226
set_lvar_int_to_constant 191@ = 41227
set_lvar_int_to_constant 192@ = 41228
set_lvar_int_to_constant 193@ = 41229
set_lvar_int_to_constant 194@ = 41230
set_lvar_int_to_constant 195@ = 41231
207@ = 10

:TRUTH2_15986
if 
  151@ == 6
goto_if_false @TRUTH2_16203
set_lvar_text_label 154@s = 'TRU2_GA'
set_lvar_text_label 156@s = 'TRU2_GB'
set_lvar_text_label 158@s = 'TRU2_GC'
set_lvar_text_label 160@s = 'TRU2_GE'
set_lvar_text_label 162@s = 'TRU2_GF'
set_lvar_text_label 164@s = 'TRU2_GG'
set_lvar_text_label 166@s = 'TRU2_GH'
set_lvar_text_label 168@s = 'TRU2_GJ'
set_lvar_int_to_constant 186@ = 41232
set_lvar_int_to_constant 187@ = 41233
set_lvar_int_to_constant 188@ = 41234
set_lvar_int_to_constant 189@ = 41235
set_lvar_int_to_constant 190@ = 41236
set_lvar_int_to_constant 191@ = 41237
set_lvar_int_to_constant 192@ = 41238
set_lvar_int_to_constant 193@ = 41239
207@ = 8

:TRUTH2_16203
if 
  151@ == 7
goto_if_false @TRUTH2_16564
set_lvar_text_label 154@s = 'TRU2_HA'
set_lvar_text_label 156@s = 'TRU2_HB'
set_lvar_text_label 158@s = 'TRU2_HC'
set_lvar_text_label 160@s = 'TRU2_HD'
set_lvar_text_label 162@s = 'TRU2_HE'
set_lvar_text_label 164@s = 'TRU2_HF'
set_lvar_text_label 166@s = 'TRU2_HG'
set_lvar_text_label 168@s = 'TRU2_HH'
set_lvar_text_label 170@s = 'TRU2_HJ'
set_lvar_text_label 172@s = 'TRU2_HK'
set_lvar_text_label 174@s = 'TRU2_HL'
set_lvar_text_label 176@s = 'TRU2_HM'
set_lvar_text_label 178@s = 'TRU2_HN'
set_lvar_text_label 180@s = 'TRU2_HO'
set_lvar_int_to_constant 186@ = 41240
set_lvar_int_to_constant 187@ = 41241
set_lvar_int_to_constant 188@ = 41242
set_lvar_int_to_constant 189@ = 41243
set_lvar_int_to_constant 190@ = 41244
set_lvar_int_to_constant 191@ = 41245
set_lvar_int_to_constant 192@ = 41246
set_lvar_int_to_constant 193@ = 41247
set_lvar_int_to_constant 194@ = 41248
set_lvar_int_to_constant 195@ = 41249
set_lvar_int_to_constant 196@ = 41250
set_lvar_int_to_constant 197@ = 41251
set_lvar_int_to_constant 198@ = 41252
set_lvar_int_to_constant 199@ = 41253
207@ = 14

:TRUTH2_16564
if 
  151@ == 8
goto_if_false @TRUTH2_16637
set_lvar_text_label 154@s = 'TRU2_JA'
set_lvar_text_label 156@s = 'TRU2_JB'
set_lvar_int_to_constant 186@ = 41254
set_lvar_int_to_constant 187@ = 41255
207@ = 2

:TRUTH2_16637
if 
  151@ == 9
goto_if_false @TRUTH2_16758
set_lvar_text_label 154@s = 'TRU2_KA'
set_lvar_text_label 156@s = 'TRU2_KB'
set_lvar_text_label 158@s = 'TRU2_KC'
set_lvar_text_label 160@s = 'TRU2_KD'
set_lvar_int_to_constant 186@ = 41256
set_lvar_int_to_constant 187@ = 41257
set_lvar_int_to_constant 188@ = 41258
set_lvar_int_to_constant 189@ = 41259
207@ = 4

:TRUTH2_16758
if 
  151@ == 10
goto_if_false @TRUTH2_16927
set_lvar_text_label 154@s = 'TRU2_LA'
set_lvar_text_label 156@s = 'TRU2_LB'
set_lvar_text_label 158@s = 'TRU2_LC'
set_lvar_text_label 160@s = 'TRU2_MA'
set_lvar_text_label 162@s = 'TRU2_MB'
set_lvar_text_label 164@s = 'TRU2_MC'
set_lvar_int_to_constant 186@ = 41260
set_lvar_int_to_constant 187@ = 41261
set_lvar_int_to_constant 188@ = 41262
set_lvar_int_to_constant 189@ = 41263
set_lvar_int_to_constant 190@ = 41264
set_lvar_int_to_constant 191@ = 41265
207@ = 6

:TRUTH2_16927
if 
  151@ == 11
goto_if_false @TRUTH2_17000
set_lvar_text_label 154@s = 'TRU2_NA'
set_lvar_text_label 156@s = 'TRU2_NB'
set_lvar_int_to_constant 186@ = 41266
set_lvar_int_to_constant 187@ = 41267
207@ = 2

:TRUTH2_17000
if 
  151@ == 12
goto_if_false @TRUTH2_17098
set_lvar_text_label 154@s = 'TRUX_AA'
set_lvar_text_label 156@s = 'TRUX_AB'
set_lvar_text_label 158@s = 'TRUX_AC'
set_lvar_int_to_constant 186@ = 41400
set_lvar_int_to_constant 187@ = 41401
set_lvar_int_to_constant 188@ = 41402
set_lvar_int_to_lvar_int 207@ = 212@

:TRUTH2_17098
set_lvar_int_to_lvar_int 210@ = 152@
208@ = 0
209@ = 0
211@ = 1
return 

:TRUTH2_17129
if or
  151@ == 1
  151@ == 2
  151@ == 8
  151@ == 9
  151@ == 11
goto_if_false @TRUTH2_17283
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17276
gosub @TRUTH2_18243
gosub @TRUTH2_18350
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17238
gosub @TRUTH2_18504
goto @TRUTH2_17269

:TRUTH2_17238
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17269
goto @TRUTH2_17283

:TRUTH2_17276
151@ = 0

:TRUTH2_17283
if or
  87@ == 3
  87@ == 4
goto_if_false @TRUTH2_17782
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17646
if 
  151@ == 3
goto_if_false @TRUTH2_17460
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17446
gosub @TRUTH2_18243
gosub @TRUTH2_18350
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17408
gosub @TRUTH2_18504
goto @TRUTH2_17439

:TRUTH2_17408
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17439
goto @TRUTH2_17460

:TRUTH2_17446
TIMERB = 0
151@ = 0

:TRUTH2_17460
if or
  151@ == 4
  151@ == 5
  151@ == 6
  151@ == 7
  151@ == 10
goto_if_false @TRUTH2_17646
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17607
gosub @TRUTH2_18243
gosub @TRUTH2_18350
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17569
gosub @TRUTH2_18504
goto @TRUTH2_17600

:TRUTH2_17569
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17600
goto @TRUTH2_17646

:TRUTH2_17607
if 
  145@ > 0
goto_if_false @TRUTH2_17632
145@ -= 1

:TRUTH2_17632
TIMERB = 0
151@ = 0

:TRUTH2_17646
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17782
if 
  12 > 151@
goto_if_false @TRUTH2_17782
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17709
152@ += 1

:TRUTH2_17709
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
clear_prints 
set_lvar_int_to_lvar_int 214@ = 151@
set_lvar_int_to_lvar_int 213@ = 152@
151@ = 12
152@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 212@ = 152@
212@ += 1
gosub @TRUTH2_14975

:TRUTH2_17782
if 
  4 > 87@
goto_if_false @TRUTH2_18241
if 
  151@ == 12
goto_if_false @TRUTH2_18013
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_17961
if 
  is_int_lvar_greater_than_int_lvar 207@ > 152@
goto_if_false @TRUTH2_17938
gosub @TRUTH2_18243
gosub @TRUTH2_18350
if 
  not is_char_dead $truth
goto_if_false @TRUTH2_17900
gosub @TRUTH2_18504
goto @TRUTH2_17931

:TRUTH2_17900
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
208@ = 0
209@ = 0

:TRUTH2_17931
goto @TRUTH2_17961

:TRUTH2_17938
print 'TRU2_17' {time} 11000 {flag} 1
151@ = 13

:TRUTH2_17961
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_18013
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
151@ = 14
152@ = 0
clear_prints 

:TRUTH2_18013
if 
  151@ == 13
goto_if_false @TRUTH2_18066
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_18066
151@ = 14
152@ = 0
clear_prints 

:TRUTH2_18066
if 
  151@ == 14
goto_if_false @TRUTH2_18241
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_18167
TIMERB = 0
set_lvar_int_to_lvar_int 151@ = 214@
set_lvar_int_to_lvar_int 152@ = 213@
gosub @TRUTH2_14975
if 
  214@ == 0
goto_if_false @TRUTH2_18167
print 'TRU2_12' {time} 7000 {flag} 1

:TRUTH2_18167
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TRUTH2_18241
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 154@(152@,16s)
151@ = 12
152@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 212@ = 152@
212@ += 1
gosub @TRUTH2_14975

:TRUTH2_18241
return 

:TRUTH2_18243
if 
  is_int_lvar_greater_than_int_lvar 207@ > 210@
goto_if_false @TRUTH2_18348
if 
  208@ == 0
goto_if_false @TRUTH2_18305
load_mission_audio MissionAudioSlot.Slot1 {audioId} 186@(210@,16i)
210@ += 1
208@ = 1

:TRUTH2_18305
if 
  209@ == 0
goto_if_false @TRUTH2_18348
load_mission_audio MissionAudioSlot.Slot2 {audioId} 186@(210@,16i)
210@ += 1
209@ = 1

:TRUTH2_18348
return 

:TRUTH2_18350
if 
  211@ == 1
goto_if_false @TRUTH2_18426
if 
  208@ == 1
goto_if_false @TRUTH2_18426
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TRUTH2_18426
play_mission_audio MissionAudioSlot.Slot1
print_now 154@(152@,16s) {time} 4500 {flag} 1
208@ = 2

:TRUTH2_18426
if 
  211@ == 2
goto_if_false @TRUTH2_18502
if 
  209@ == 1
goto_if_false @TRUTH2_18502
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TRUTH2_18502
play_mission_audio MissionAudioSlot.Slot2
print_now 154@(152@,16s) {time} 4500 {flag} 1
209@ = 2

:TRUTH2_18502
return 

:TRUTH2_18504
if 
  208@ == 2
goto_if_false @TRUTH2_18567
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TRUTH2_18567
clear_this_print 154@(152@,16s)
152@ += 1
211@ = 2
208@ = 0

:TRUTH2_18567
if 
  209@ == 2
goto_if_false @TRUTH2_18630
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TRUTH2_18630
clear_this_print 154@(152@,16s)
152@ += 1
211@ = 1
209@ = 0

:TRUTH2_18630
return 

//-------------Mission 48---------------
// Originally: Wu Zi Mu / Farewell, My Love...

:BCESAR4
script_name 'BCESAR4'
gosub @BCESAR4_47
if 
  has_deatharrest_been_executed 
goto_if_false @BCESAR4_38
gosub @BCESAR4_2683

:BCESAR4_38
gosub @BCESAR4_2736
terminate_this_script 

:BCESAR4_47
$onmission = 1

:BCESAR4_54
wait 0
if 
  $flag_bcesar_mission_counter == 0
goto_if_false @BCESAR4_401
load_mission_text 'BCESAR4'
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_168
34@ = get_car_char_is_using $scplayer
set_car_as_mission_car 34@
$x, $y, $z = get_car_coordinates 34@
$z += 1000.0
set_car_coordinates 34@ {x} $x {y} $y {z} $z
freeze_car_position 34@ {state} True
goto @BCESAR4_175

:BCESAR4_168
34@ = -1

:BCESAR4_175
clear_area 1557.162 {y} 24.305 {z} 22.7313 {radius} 100.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESAR4'

:BCESAR4_219
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_243
wait 0
goto @BCESAR4_219

:BCESAR4_243
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_252
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_276
wait 0
goto @BCESAR4_252

:BCESAR4_276
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_289
if 
  get_fading_status 
goto_if_false @BCESAR4_313
wait 0
goto @BCESAR4_289

:BCESAR4_313
clear_cutscene 
$flag_stage_of_bcesar_race = 1
$start_the_bcesar_race = 1
if 
  34@ <> -1
goto_if_false @BCESAR4_394
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_394
freeze_car_position 34@ {state} False
$z -= 1000.0
set_car_coordinates 34@ {x} $x {y} $y {z} $z

:BCESAR4_394
goto @BCESAR4_2685

:BCESAR4_401
if 
  $flag_bcesar_mission_counter == 2
goto_if_false @BCESAR4_1629
if 
  is_char_in_area_3d $scplayer {leftBottomX} -782.3699 {leftBottomY} -147.948 {leftBottomZ} 19.5518 {rightTopX} -405.0757 {rightTopY} -237.5195 {rightTopZ} 91.1306 {drawSphere} False
goto_if_false @BCESAR4_1601
$onmission = 1
do_fade 1000 {direction} Fade.Out

:BCESAR4_481
if 
  get_fading_status 
goto_if_false @BCESAR4_505
wait 0
goto @BCESAR4_481

:BCESAR4_505
request_model 439
request_model 475
request_model 526
request_model 101
request_model 23
request_model 290
request_animation "KISSING"
clear_area -518.049 {y} -189.3775 {z} 79.3468 {radius} 100.0 {clearParticles} False
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -535.8186 {y} -198.0116 {z} 80.8647 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -535.5711 {y} -197.1029 {z} 80.5285 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR4_732
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_732
$car = get_car_char_is_using $scplayer
if 
  $car > 0
goto_if_false @BCESAR4_732
if 
  not is_car_dead $car
goto_if_false @BCESAR4_732
set_car_visible $car {state} False
freeze_car_position $car {state} True
set_car_collision $car {state} False
set_char_visible $scplayer {state} False

:BCESAR4_732
wait 1000

:BCESAR4_737
if and
  not has_model_loaded 439
  not has_model_loaded 475
  not has_model_loaded 526
  not has_model_loaded 101
  not has_model_loaded 23
  not has_model_loaded 290
goto_if_false @BCESAR4_787
wait 0
goto @BCESAR4_737

:BCESAR4_787
if 
  not has_animation_loaded "KISSING"
goto_if_false @BCESAR4_820
wait 0
goto @BCESAR4_787

:BCESAR4_820
35@ = create_car 439 {x} -536.7188 {y} -192.5453 {z} 77.404
38@ = create_char PedType.Mission1 {modelId} 101 {x} -530.4067 {y} -188.8082 {z} 77.3986
set_car_heading 35@ {heading} 287.0
41@ = open_sequence_task 
task_play_anim -1 {animationName} "GIFT_GIVE" {animationFile} "KISSING" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_enter_car_as_driver -1 {vehicle} 35@ {time} -2
task_car_drive_to_coord -1 {vehicle} 35@ {x} -507.5502 {y} -99.2875 {z} 61.825 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 41@
perform_sequence_task 38@ {sequence} 41@
clear_sequence_task 41@
36@ = create_car 475 {x} -536.158 {y} -185.2865 {z} 77.398
39@ = create_char PedType.Mission1 {modelId} 23 {x} -530.4067 {y} -187.8082 {z} 77.3986
set_char_heading 39@ {heading} 180.0
set_car_heading 36@ {heading} 243.0
41@ = open_sequence_task 
task_play_anim -1 {animationName} "GIFT_GET" {animationFile} "KISSING" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
task_enter_car_as_driver -1 {vehicle} 36@ {time} -2
task_car_drive_to_coord -1 {vehicle} 36@ {x} -507.5502 {y} -99.2875 {z} 61.825 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 41@
perform_sequence_task 39@ {sequence} 41@
clear_sequence_task 41@
37@ = create_car 526 {x} -524.9425 {y} -184.208 {z} 77.2766
40@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 290
set_car_heading 37@ {heading} 239.0
41@ = open_sequence_task 
task_pause -1 {time} 7000
task_car_drive_to_coord -1 {vehicle} 37@ {x} -507.5502 {y} -99.2875 {z} 61.825 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 41@
perform_sequence_task 40@ {sequence} 41@
clear_sequence_task 41@
do_fade 800 {direction} Fade.In
skip_cutscene_start_internal @BCESAR4_1310
wait 10000
do_fade 1000 {direction} Fade.Out

:BCESAR4_1286
if 
  get_fading_status 
goto_if_false @BCESAR4_1310
wait 0
goto @BCESAR4_1286

:BCESAR4_1310
skip_cutscene_end 
if 
  not is_car_dead 35@
goto_if_false @BCESAR4_1333
delete_car 35@

:BCESAR4_1333
if 
  not is_car_dead 36@
goto_if_false @BCESAR4_1354
delete_car 36@

:BCESAR4_1354
if 
  not is_car_dead 37@
goto_if_false @BCESAR4_1375
delete_car 37@

:BCESAR4_1375
if 
  not is_char_dead 38@
goto_if_false @BCESAR4_1396
delete_char 38@

:BCESAR4_1396
if 
  not is_char_dead 39@
goto_if_false @BCESAR4_1417
delete_char 39@

:BCESAR4_1417
if 
  not is_char_dead 40@
goto_if_false @BCESAR4_1438
delete_char 40@

:BCESAR4_1438
mark_model_as_no_longer_needed 439
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 526
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 290
remove_animation "KISSING"
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR4_1579
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_1579
$car = get_car_char_is_using $scplayer
if 
  $car > 0
goto_if_false @BCESAR4_1579
if 
  not is_car_dead $car
goto_if_false @BCESAR4_1579
set_car_visible $car {state} True
freeze_car_position $car {state} False
set_car_collision $car {state} True
set_char_visible $scplayer {state} True

:BCESAR4_1579
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 800 {direction} Fade.In

:BCESAR4_1601
$flag_bcesar_mission_counter = -1
$onmission = 0
34@ = 0
goto @BCESAR4_2685

:BCESAR4_1629
if 
  $flag_bcesar_mission_counter == 4
goto_if_false @BCESAR4_2019
load_mission_text 'BCESAR4'
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_1710
34@ = get_car_char_is_using $scplayer
freeze_car_position 34@ {state} True
set_car_visible 34@ {state} False
set_car_collision 34@ {state} False
goto @BCESAR4_1717

:BCESAR4_1710
34@ = -1

:BCESAR4_1717
clear_area -526.7778 {y} -189.0571 {z} 76.9917 {radius} 100.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESA4W'

:BCESAR4_1761
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_1785
wait 0
goto @BCESAR4_1761

:BCESAR4_1785
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_1794
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_1818
wait 0
goto @BCESAR4_1794

:BCESAR4_1818
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_1831
if 
  get_fading_status 
goto_if_false @BCESAR4_1855
wait 0
goto @BCESAR4_1831

:BCESAR4_1855
clear_cutscene 
if 
  34@ <> -1
goto_if_false @BCESAR4_1923
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_1916
freeze_car_position 34@ {state} False
set_car_visible 34@ {state} True
set_car_collision 34@ {state} True
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_1916
goto @BCESAR4_1957

:BCESAR4_1923
set_char_coordinates $scplayer {x} -503.3945 {y} -186.0599 {z} 76.6103
set_char_heading $scplayer {heading} 53.0
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_1957
do_fade 1000 {direction} Fade.In
remove_blip $bcesar_contact_blip
register_mission_passed 'BCESAR4'
print_with_number_big 'M_PASSD' {num} 3 {duration} 5000 {style} TextStyle.Middle
$flag_stage_of_bcesar_race = 0
$start_the_bcesar_race = 0
goto @BCESAR4_2685

:BCESAR4_2019
if 
  $flag_bcesar_mission_counter == 5
goto_if_false @BCESAR4_2222
load_mission_text 'BCESAR4'
clear_area -526.7778 {y} -189.0571 {z} 76.9917 {radius} 100.0 {clearParticles} True
set_char_coordinates $scplayer {x} -495.9034 {y} -196.2218 {z} 77.3986
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESAR5'

:BCESAR4_2112
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_2136
wait 0
goto @BCESAR4_2112

:BCESAR4_2136
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_2145
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_2169
wait 0
goto @BCESAR4_2145

:BCESAR4_2169
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_2182
if 
  get_fading_status 
goto_if_false @BCESAR4_2206
wait 0
goto @BCESAR4_2182

:BCESAR4_2206
clear_cutscene 
$start_the_bcesar_race = 1
goto @BCESAR4_2685

:BCESAR4_2222
if 
  $flag_bcesar_mission_counter == 9
goto_if_false @BCESAR4_2676
load_mission_text 'BCESAR4'
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR4_2332
34@ = get_car_char_is_using $scplayer
set_car_as_mission_car 34@
$x, $y, $z = get_car_coordinates 34@
$z += 1000.0
set_car_coordinates 34@ {x} $x {y} $y {z} $z
freeze_car_position 34@ {state} True
goto @BCESAR4_2339

:BCESAR4_2332
34@ = -1

:BCESAR4_2339
clear_area 1557.162 {y} 24.305 {z} 22.7313 {radius} 100.0 {clearParticles} True
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BCESA5W'

:BCESAR4_2383
if 
  not has_cutscene_loaded 
goto_if_false @BCESAR4_2407
wait 0
goto @BCESAR4_2383

:BCESAR4_2407
start_cutscene 
do_fade 1000 {direction} Fade.In

:BCESAR4_2416
if 
  not has_cutscene_finished 
goto_if_false @BCESAR4_2440
wait 0
goto @BCESAR4_2416

:BCESAR4_2440
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:BCESAR4_2453
if 
  get_fading_status 
goto_if_false @BCESAR4_2477
wait 0
goto @BCESAR4_2453

:BCESAR4_2477
clear_cutscene 
if 
  34@ <> -1
goto_if_false @BCESAR4_2583
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_2576
freeze_car_position 34@ {state} False
set_car_visible 34@ {state} True
set_car_collision 34@ {state} True
set_car_coordinates 34@ {x} 1557.694 {y} 17.4472 {z} 23.1641
set_car_heading 34@ {heading} 9.0
warp_char_into_car $scplayer {vehicle} 34@
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_2576
goto @BCESAR4_2617

:BCESAR4_2583
set_char_coordinates $scplayer {x} 1559.7679 {y} 14.4176 {z} 23.1641
set_char_heading $scplayer {heading} 10.0
set_camera_behind_player 
restore_camera_jumpcut 

:BCESAR4_2617
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In
remove_blip $bcesar_contact_blip
register_mission_passed 'BCES4_2'
print_with_number_big 'M_PASSD' {num} 3 {duration} 5000 {style} TextStyle.Middle
$start_the_bcesar_race = 0
goto @BCESAR4_2685

:BCESAR4_2676
goto @BCESAR4_54

:BCESAR4_2683
return 

:BCESAR4_2685
if 
  5 > $flag_bcesar_mission_counter
goto_if_false @BCESAR4_2734
if 
  not is_car_dead 34@
goto_if_false @BCESAR4_2734
warp_char_into_car $scplayer {vehicle} 34@
freeze_car_position 34@ {state} False

:BCESAR4_2734
return 

:BCESAR4_2736
$flag_bcesar_mission_counter += 1
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
if 
  $flag_bcesar_mission_counter == 1
goto_if_false @BCESAR4_2781
do_fade 0 {direction} Fade.Out

:BCESAR4_2781
if 
  $flag_bcesar_mission_counter == 6
goto_if_false @BCESAR4_2805
do_fade 0 {direction} Fade.Out

:BCESAR4_2805
return 

//-------------Mission 49---------------
// Originally: Wear Flowers In Your Hair

:GARAG1
script_name 'GARAG1'
gosub @GARAG1_47
if 
  has_deatharrest_been_executed 
goto_if_false @GARAG1_38
gosub @GARAG1_24512

:GARAG1_38
gosub @GARAG1_24530
terminate_this_script 

:GARAG1_47
$onmission = 1
force_weather_now WeatherType.SunnySf
register_mission_given 
load_mission_text 'GARAGE1'
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:GARAG1_85
if 
  get_fading_status 
goto_if_false @GARAG1_109
wait 0
goto @GARAG1_85

:GARAG1_109
set_area_visible 1
load_cutscene 'GARAG1B'

:GARAG1_124
if 
  not has_cutscene_loaded 
goto_if_false @GARAG1_148
wait 0
goto @GARAG1_124

:GARAG1_148
start_cutscene 
do_fade 1000 {direction} Fade.In
wait 1000

:GARAG1_162
if 
  not has_cutscene_finished 
goto_if_false @GARAG1_186
wait 0
goto @GARAG1_162

:GARAG1_186
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GARAG1_201
if 
  get_fading_status 
goto_if_false @GARAG1_225
wait 0
goto @GARAG1_201

:GARAG1_225
set_area_visible 0
load_special_character 3 {modelName} 'JETHRO'

:GARAG1_242
if 
  not has_special_character_loaded 3
goto_if_false @GARAG1_268
wait 0
goto @GARAG1_242

:GARAG1_268
135@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 135@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 135@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 135@ {event} Event.PotentialWalkIntoVehicle
set_script_limit_to_gang_size 3
make_room_in_player_gang_for_mission_peds 3
54@ = -1669.0
59@ = 439.773
64@ = 6.219
43@ = 80.0
55@ = -2230.168
60@ = 544.7148
65@ = 34.2219
56@ = -2248.1011
61@ = 132.8547
66@ = 35.3302
57@ = -2052.1011
62@ = -147.8547
67@ = 28.3302
58@ = -2059.553
63@ = -22.1661
68@ = 34.305
45@ = -2584.0
46@ = 585.0
47@ = 14.0
48@ = -1624.41
49@ = 725.25
50@ = 14.11
69@ = -2042.03
70@ = 178.11
71@ = 28.15
101@ = 1
102@ = 0
103@ = 0
104@ = 0
107@ = 0
105@ = 0
106@ = 0
114@ = 0
120@ = 0
121@ = 0
113@ = 0
109@ = 0
110@ = 0
112@ = 0
108@ = 0
111@ = 0
$flag_is_zero_on_bike = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
72@ = -1674.21
77@ = 438.5
82@ = 6.2
73@ = -2237.0
78@ = 542.0782
83@ = 33.901
74@ = -2243.1011
79@ = 128.8547
84@ = 34.3302
75@ = -2052.1011
80@ = -147.8547
85@ = 28.3302
119@ = 0
348@ = 0
134@ = 0
349@ = 0
if 
  349@ == 1
goto_if_false @GARAG1_947
242@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_char PedType.CivMale {modelId} 291 {x} -2031.252 {y} 164.0169 {z} 27.8429
94@ = create_char PedType.CivMale {modelId} 292 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)

:GARAG1_947
set_var_text_label s$garage1_text[0] = 'GAR1_AA'
set_var_text_label s$garage1_text[1] = 'GAR1_AB'
set_var_text_label s$garage1_text[2] = 'GAR1_AC'
set_var_text_label s$garage1_text[3] = 'GAR1_AD'
set_var_text_label s$garage1_text[4] = 'GAR1_AE'
set_var_text_label s$garage1_text[5] = 'GAR1_AF'
set_var_text_label s$garage1_text[6] = 'GAR1_AG'
set_var_text_label s$garage1_text[7] = 'GAR1_AH'
set_var_text_label s$garage1_text[8] = 'GAR1_AJ'
set_var_text_label s$garage1_text[9] = 'GAR1_BA'
set_var_text_label s$garage1_text[10] = 'GAR1_BB'
set_var_text_label s$garage1_text[11] = 'GAR1_BC'
set_var_text_label s$garage1_text[12] = 'GAR1_BD'
set_var_text_label s$garage1_text[13] = 'GAR1_BE'
set_var_text_label s$garage1_text[14] = 'GAR1_BF'
set_var_text_label s$garage1_text[15] = 'GAR1_BG'
set_var_text_label s$garage1_text[16] = 'GAR1_BH'
set_var_text_label s$garage1_text[17] = 'GAR1_CA'
set_var_text_label s$garage1_text[18] = 'GAR1_CB'
set_var_text_label s$garage1_text[19] = 'GAR1_CC'
set_var_text_label s$garage1_text[20] = 'GAR1_DA'
set_var_text_label s$garage1_text[21] = 'GAR1_DF'
set_var_text_label s$garage1_text[22] = 'GAR1_DB'
set_var_text_label s$garage1_text[23] = 'GAR1_DC'
set_var_text_label s$garage1_text[24] = 'GAR1_DD'
set_var_text_label s$garage1_text[25] = 'GAR1_DE'
set_var_text_label s$garage1_text[26] = 'GAR1_EA'
set_var_text_label s$garage1_text[27] = 'GAR1_EB'
set_var_text_label s$garage1_text[28] = 'GAR1_EC'
set_var_text_label s$garage1_text[29] = 'GAR1_ED'
set_var_text_label s$garage1_text[30] = 'GAR1_EE'
set_var_text_label s$garage1_text[31] = 'GAR1_FA'
set_var_text_label s$garage1_text[32] = 'GAR1_FB'
set_var_text_label s$garage1_text[33] = 'GAR1_FC'
set_var_text_label s$garage1_text[34] = 'GAR1_FD'
set_var_text_label s$garage1_text[35] = 'GAR1_FE'
set_var_text_label s$garage1_text[36] = 'GAR1_FF'
set_var_text_label s$garage1_text[37] = 'GAR1_FG'
set_var_text_label s$garage1_text[38] = 'GAR1_GA'
set_var_text_label s$garage1_text[39] = 'GAR1_GB'
set_var_text_label s$garage1_text[40] = 'GAR1_GC'
set_var_text_label s$garage1_text[41] = 'GAR1_GD'
set_var_text_label s$garage1_text[42] = 'GAR1_GE'
set_var_text_label s$garage1_text[43] = 'GAR1_GF'
set_var_text_label s$garage1_text[44] = 'GAR1_GG'
set_var_text_label s$garage1_text[45] = 'GAR1_GH'
set_var_text_label s$garage1_text[46] = 'GAR1_GI'
set_var_text_label s$garage1_text[47] = 'GAR1_GJ'
set_var_text_label s$garage1_text[48] = 'GAR1_HA'
set_var_text_label s$garage1_text[49] = 'GAR1_HB'
set_var_text_label s$garage1_text[50] = 'GAR1_HC'
set_var_text_label s$garage1_text[51] = 'GAR1_HD'
set_var_text_label s$garage1_text[52] = 'GAR1_HE'
set_var_text_label s$garage1_text[53] = 'GAR1_HF'
set_var_text_label s$garage1_text[54] = 'GAR1_HG'
set_var_text_label s$garage1_text[55] = 'GAR1_JA'
set_var_text_label s$garage1_text[56] = 'GAR1_JB'
set_var_text_label s$garage1_text[57] = 'GAR1_JC'
set_var_text_label s$garage1_text[58] = 'GAR1_JD'
set_var_text_label s$garage1_text[59] = 'GAR1_JE'
set_var_text_label s$garage1_text[60] = 'GAR1_JF'
set_var_text_label s$garage1_text[61] = 'GAR1_JG'
set_var_text_label s$garage1_text[62] = 'GAR1_JH'
set_var_text_label s$garage1_text[63] = 'GAR1_JJ'
set_var_text_label s$garage1_text[64] = 'GAR1_KA'
set_var_text_label s$garage1_text[65] = 'GAR1_KB'
set_var_text_label s$garage1_text[66] = 'GAR1_KC'
set_var_text_label s$garage1_text[67] = 'GAR1_KD'
set_var_text_label s$garage1_text[68] = 'GAR1_KE'
set_var_text_label s$garage1_text[69] = 'GAR1_LA'
set_var_text_label s$garage1_text[70] = 'GAR1_LB'
set_var_text_label s$garage1_text[71] = 'GAR1_LC'
set_var_text_label s$garage1_text[72] = 'GAR1_LD'
set_var_text_label s$garage1_text[73] = 'GAR1_MA'
set_var_text_label s$garage1_text[74] = 'GAR1_MB'
set_var_text_label s$garage1_text[75] = 'GAR1_MC'
set_var_text_label s$garage1_text[76] = 'GAR1_MD'
set_var_text_label s$garage1_text[77] = 'GAR1_ME'
set_var_text_label s$garage1_text[78] = 'GAR1_MF'
set_var_text_label s$garage1_text[79] = 'GAR1_MG'
set_var_text_label s$garage1_text[80] = 'GAR1_NA'
set_var_text_label s$garage1_text[81] = 'GAR1_NB'
set_var_text_label s$garage1_text[82] = 'GAR1_NC'
set_var_text_label s$garage1_text[83] = 'GAR1_ND'
set_var_text_label s$garage1_text[84] = 'GAR1_NE'
set_var_text_label s$garage1_text[85] = 'GAR1_NF'
set_var_text_label s$garage1_text[86] = 'GAR1_NG'
set_var_text_label s$garage1_text[87] = 'GAR1_NH'
set_var_text_label s$garage1_text[88] = 'GAR1_NJ'
set_var_text_label s$garage1_text[89] = 'GAR1_NK'
set_var_text_label s$garage1_text[91] = 'GAR1_OA'
set_var_text_label s$garage1_text[92] = 'GAR1_OB'
set_var_text_label s$garage1_text[93] = 'GAR1_OC'
set_var_text_label s$garage1_text[94] = 'GAR1_OD'
set_var_text_label s$garage1_text[95] = 'GAR1_OE'
set_var_text_label s$garage1_text[96] = 'GAR1_OF'
set_var_text_label s$garage1_text[97] = 'GAR1_PA'
set_var_text_label s$garage1_text[98] = 'GAR1_PB'
set_var_text_label s$garage1_text[99] = 'GAR1_PC'
set_var_text_label s$garage1_text[100] = 'GAR1_PD'
set_var_text_label s$garage1_text[101] = 'GAR1_PE'
set_var_text_label s$garage1_text[102] = 'GAR1_PJ'
set_var_text_label s$garage1_text[103] = 'GAR1_PF'
set_var_text_label s$garage1_text[104] = 'GAR1_PG'
set_var_text_label s$garage1_text[105] = 'GAR1_PH'
set_lvar_int_to_constant 136@ = 16400
set_lvar_int_to_constant 137@ = 16401
set_lvar_int_to_constant 138@ = 16402
set_lvar_int_to_constant 139@ = 16403
set_lvar_int_to_constant 140@ = 16404
set_lvar_int_to_constant 141@ = 16405
set_lvar_int_to_constant 142@ = 16406
set_lvar_int_to_constant 143@ = 16407
set_lvar_int_to_constant 144@ = 16408
set_lvar_int_to_constant 145@ = 16409
set_lvar_int_to_constant 146@ = 16410
set_lvar_int_to_constant 147@ = 16411
set_lvar_int_to_constant 148@ = 16412
set_lvar_int_to_constant 149@ = 16413
set_lvar_int_to_constant 150@ = 16414
set_lvar_int_to_constant 151@ = 16415
set_lvar_int_to_constant 152@ = 16416
set_lvar_int_to_constant 153@ = 16417
set_lvar_int_to_constant 154@ = 16418
set_lvar_int_to_constant 155@ = 16419
set_lvar_int_to_constant 156@ = 16420
set_lvar_int_to_constant 157@ = 16425
set_lvar_int_to_constant 158@ = 16421
set_lvar_int_to_constant 159@ = 16422
set_lvar_int_to_constant 160@ = 16423
set_lvar_int_to_constant 161@ = 16424
set_lvar_int_to_constant 162@ = 16426
set_lvar_int_to_constant 163@ = 16427
set_lvar_int_to_constant 164@ = 16428
set_lvar_int_to_constant 165@ = 16429
set_lvar_int_to_constant 166@ = 16430
set_lvar_int_to_constant 167@ = 16431
set_lvar_int_to_constant 168@ = 16432
set_lvar_int_to_constant 169@ = 16433
set_lvar_int_to_constant 170@ = 16434
set_lvar_int_to_constant 171@ = 16435
set_lvar_int_to_constant 172@ = 16436
set_lvar_int_to_constant 173@ = 16437
set_lvar_int_to_constant 174@ = 16438
set_lvar_int_to_constant 175@ = 16439
set_lvar_int_to_constant 176@ = 16440
set_lvar_int_to_constant 177@ = 16441
set_lvar_int_to_constant 178@ = 16442
set_lvar_int_to_constant 179@ = 16443
set_lvar_int_to_constant 180@ = 16444
set_lvar_int_to_constant 181@ = 16445
set_lvar_int_to_constant 182@ = 16446
set_lvar_int_to_constant 183@ = 16447
set_lvar_int_to_constant 184@ = 16448
set_lvar_int_to_constant 185@ = 16449
set_lvar_int_to_constant 186@ = 16450
set_lvar_int_to_constant 187@ = 16451
set_lvar_int_to_constant 188@ = 16452
set_lvar_int_to_constant 189@ = 16453
set_lvar_int_to_constant 190@ = 16454
set_lvar_int_to_constant 191@ = 16455
set_lvar_int_to_constant 192@ = 16456
set_lvar_int_to_constant 193@ = 16457
set_lvar_int_to_constant 194@ = 16458
set_lvar_int_to_constant 195@ = 16459
set_lvar_int_to_constant 196@ = 16460
set_lvar_int_to_constant 197@ = 16461
set_lvar_int_to_constant 198@ = 16462
set_lvar_int_to_constant 199@ = 16463
set_lvar_int_to_constant 200@ = 16464
set_lvar_int_to_constant 201@ = 16465
set_lvar_int_to_constant 202@ = 16466
set_lvar_int_to_constant 203@ = 16467
set_lvar_int_to_constant 204@ = 16468
set_lvar_int_to_constant 205@ = 16469
set_lvar_int_to_constant 206@ = 16470
set_lvar_int_to_constant 207@ = 16471
set_lvar_int_to_constant 208@ = 16472
set_lvar_int_to_constant 209@ = 16473
set_lvar_int_to_constant 210@ = 16474
set_lvar_int_to_constant 211@ = 16475
set_lvar_int_to_constant 212@ = 16476
set_lvar_int_to_constant 213@ = 16477
set_lvar_int_to_constant 214@ = 16478
set_lvar_int_to_constant 215@ = 16479
set_lvar_int_to_constant 216@ = 16480
set_lvar_int_to_constant 217@ = 16481
set_lvar_int_to_constant 218@ = 16482
set_lvar_int_to_constant 219@ = 16483
set_lvar_int_to_constant 220@ = 16484
set_lvar_int_to_constant 221@ = 16485
set_lvar_int_to_constant 222@ = 16486
set_lvar_int_to_constant 223@ = 16487
set_lvar_int_to_constant 224@ = 16488
set_lvar_int_to_constant 225@ = 16489
set_lvar_int_to_constant 227@ = 16490
set_lvar_int_to_constant 228@ = 16491
set_lvar_int_to_constant 229@ = 16492
set_lvar_int_to_constant 230@ = 16493
set_lvar_int_to_constant 231@ = 16494
set_lvar_int_to_constant 232@ = 16495
set_lvar_int_to_constant 233@ = 16496
set_lvar_int_to_constant 234@ = 16497
set_lvar_int_to_constant 235@ = 16498
set_lvar_int_to_constant 236@ = 16499
set_lvar_int_to_constant 237@ = 16500
set_lvar_int_to_constant 238@ = 16504
set_lvar_int_to_constant 239@ = 16501
set_lvar_int_to_constant 240@ = 16502
set_lvar_int_to_constant 241@ = 16503
TIMERA = 0
clear_area -2028.7729 {y} 154.0429 {z} 27.2416 {radius} 10000.0 {clearParticles} True
disable_all_entry_exits True
request_model 585

:GARAG1_3297
if 
  not has_model_loaded 585
goto_if_false @GARAG1_3324
wait 0
goto @GARAG1_3297

:GARAG1_3324
34@ = create_car 585 {x} -2030.6281 {y} 170.7956 {z} 27.8359
set_car_health 34@ {health} 3000
set_char_coordinates $scplayer {x} -2031.0 {y} 162.0 {z} 27.83
set_car_heading 34@ {heading} 270.0
load_special_character 2 {modelName} 'TRUTH'

:GARAG1_3398
if 
  not has_special_character_loaded 2
goto_if_false @GARAG1_3424
wait 0
goto @GARAG1_3398

:GARAG1_3424
93@ = create_char PedType.CivMale {modelId} 291 {x} -2031.252 {y} 164.0169 {z} 27.8429
set_char_never_targetted 93@ {state} True
set_char_get_out_upside_down_car 93@ {state} False
set_char_relationship 93@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 93@ {handleOrTemplate} 135@
set_char_heading 93@ {heading} 180.0
set_char_proofs 93@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_health 93@ {health} 200
set_char_suffers_critical_hits 93@ {state} False
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:GARAG1_3532
wait 0
if 
  101@ == 1
goto_if_false @GARAG1_3561
gosub @GARAG1_3743

:GARAG1_3561
if 
  102@ == 1
goto_if_false @GARAG1_3586
gosub @GARAG1_9738

:GARAG1_3586
if 
  103@ == 1
goto_if_false @GARAG1_3611
gosub @GARAG1_15129

:GARAG1_3611
if 
  105@ == 1
goto_if_false @GARAG1_3636
gosub @GARAG1_7692

:GARAG1_3636
if 
  106@ == 1
goto_if_false @GARAG1_3661
gosub @GARAG1_13409

:GARAG1_3661
if 
  107@ == 1
goto_if_false @GARAG1_3686
gosub @GARAG1_17180

:GARAG1_3686
if 
  109@ == 1
goto_if_false @GARAG1_3711
goto @GARAG1_24446

:GARAG1_3711
if 
  110@ == 1
goto_if_false @GARAG1_3736
goto @GARAG1_24512

:GARAG1_3736
goto @GARAG1_3532

:GARAG1_3743
set_lvar_int_to_lvar_int 242@ = 93@
set_lvar_int_to_lvar_int 243@ = 93@
set_lvar_int_to_lvar_int 244@ = 93@
set_lvar_int_to_lvar_int 245@ = 93@
set_lvar_int_to_lvar_int 246@ = 93@
set_lvar_int_to_lvar_int 247@ = 93@
set_lvar_int_to_lvar_int 248@ = 93@
set_lvar_int_to_var_int 251@ = $scplayer
set_lvar_int_to_lvar_int 252@ = 93@
set_lvar_int_to_var_int 253@ = $scplayer
set_lvar_int_to_lvar_int 254@ = 93@
set_lvar_int_to_lvar_int 255@ = 93@
set_lvar_int_to_lvar_int 256@ = 93@
set_lvar_int_to_var_int 257@ = $scplayer
set_lvar_int_to_lvar_int 258@ = 93@
set_lvar_int_to_lvar_int 259@ = 93@
set_lvar_int_to_lvar_int 260@ = 93@
set_lvar_int_to_lvar_int 261@ = 93@
request_animation "GANGS"

:GARAG1_3896
if 
  not has_animation_loaded "GANGS"
goto_if_false @GARAG1_3927
wait 0
goto @GARAG1_3896

:GARAG1_3927
set_fixed_camera_position -2021.483 {y} 159.1135 {z} 30.588 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2022.153 {y} 159.8494 {z} 30.4897 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2019.916 {fromY} 157.5772 {fromZ} 33.449 {toX} -2019.951 {toY} 157.5985 {toZ} 31.8268 {time} 4500 {ease} True
camera_set_vector_track -2020.77 {fromY} 158.0734 {fromZ} 33.2929 {toX} -2020.787 {toY} 158.0842 {toZ} 31.5706 {time} 4500 {ease} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area -2031.77 {y} 161.21 {z} 29.42 {radius} 1000.0 {clearParticles} True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
do_fade 1000 {direction} Fade.In
switch_widescreen True

:GARAG1_4118
if 
  get_fading_status 
goto_if_false @GARAG1_4142
wait 0
goto @GARAG1_4118

:GARAG1_4142
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_4163
if 
  114@ <> 10
goto_if_false @GARAG1_4729
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_4217
skip_cutscene_start_internal @GARAG1_4729
gosub @GARAG1_24109

:GARAG1_4217
if 
  114@ == 1
goto_if_false @GARAG1_4498
if 
  not is_char_dead 93@
goto_if_false @GARAG1_4484
130@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 130@
perform_sequence_task 93@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_4484
gosub @GARAG1_24109
TIMERA = 0

:GARAG1_4498
if and
  114@ >= 2
  3 >= 114@
goto_if_false @GARAG1_4530
gosub @GARAG1_24109

:GARAG1_4530
if 
  114@ == 4
goto_if_false @GARAG1_4608
camera_reset_new_scriptables 
set_fixed_camera_position -2030.073 {y} 161.3698 {z} 28.8915 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2030.593 {y} 162.2026 {z} 29.0817 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24109

:GARAG1_4608
if or
  114@ >= 5
  6 >= 114@
goto_if_false @GARAG1_4640
gosub @GARAG1_24109

:GARAG1_4640
if 
  114@ == 7
goto_if_false @GARAG1_4672
gosub @GARAG1_24109
114@ = 10

:GARAG1_4672
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_4696
114@ = 10
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_4696
if 
  TIMERB > 23500
goto_if_false @GARAG1_4722
114@ = 10

:GARAG1_4722
goto @GARAG1_4163

:GARAG1_4729
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
set_player_control $player1 {state} True
camera_reset_new_scriptables 
restore_camera_jumpcut 
switch_widescreen False
clear_prints 
if 
  is_player_playing $player1
goto_if_false @GARAG1_4775
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_4775
set_radio_channel RadioChannel.KDST
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
348@ = 9
349@ = 0
114@ = 0
if 
  not is_char_dead 93@
goto_if_false @GARAG1_4872
if 
  not is_car_dead 34@
goto_if_false @GARAG1_4872
task_enter_car_as_passenger 93@ {vehicle} 34@ {time} -2 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 93@ {state} True
set_char_stay_in_car_when_jacked 93@ {state} True

:GARAG1_4872
remove_animation "GANGS"
if 
  not is_car_dead 34@
goto_if_false @GARAG1_5345
127@ = add_blip_for_car 34@
set_blip_as_friendly 127@ {state} True
print_now 'GAR1_22' {time} 5000 {flag} 1

:GARAG1_4928
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_5292
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @GARAG1_5024
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 1
110@ = 0
return 

:GARAG1_5024
if 
  is_car_dead 34@
goto_if_false @GARAG1_5114
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 0
110@ = 1
return 

:GARAG1_5114
if 
  is_char_dead 93@
goto_if_false @GARAG1_5204
print_now 'GAR1_17' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
105@ = 0
106@ = 0
107@ = 0
109@ = 0
110@ = 1
return 

:GARAG1_5204
if 
  is_car_on_fire 34@
goto_if_false @GARAG1_5285
explode_car 34@
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_5285
goto @GARAG1_4928

:GARAG1_5292
remove_blip 127@
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend
goto @GARAG1_5377

:GARAG1_5345
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
110@ = 1
return 

:GARAG1_5377
request_model 525
request_animation "CAR"

:GARAG1_5389
if or
  not has_model_loaded 525
  not has_animation_loaded "CAR"
goto_if_false @GARAG1_5423
wait 0
goto @GARAG1_5389

:GARAG1_5423
create_char PedType.CivMale {modelId} 292 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
set_char_never_targetted 94@(134@,4i) {state} True
set_char_heading 94@(134@,4i) {heading} 120.0
set_char_proofs 94@(134@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
36@ = create_car 525 {x} -1676.0 {y} 440.0 {z} 6.7
set_car_heading 36@ {heading} 229.0
set_char_relationship 94@(134@,4i) {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 94@(134@,4i) {handleOrTemplate} 135@
delete_car 36@
delete_char 94@(134@,4i)
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_5601
return 

:GARAG1_5601
TIMERA = 0
request_animation "CAR_CHAT"

:GARAG1_5620
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_5654
wait 0
goto @GARAG1_5620

:GARAG1_5654
set_lvar_int_to_lvar_int 262@ = 93@
set_lvar_int_to_lvar_int 263@ = 93@
set_lvar_int_to_lvar_int 264@ = 94@
set_lvar_int_to_lvar_int 265@ = 94@
set_lvar_int_to_lvar_int 266@ = 93@
set_lvar_int_to_lvar_int 267@ = 93@
set_lvar_int_to_lvar_int 268@ = 93@
set_lvar_int_to_var_int 269@ = $scplayer
set_lvar_int_to_lvar_int 270@ = 93@
set_lvar_int_to_lvar_int 271@ = 93@
set_lvar_int_to_lvar_int 272@ = 93@
set_lvar_int_to_lvar_int 273@ = 94@
set_lvar_int_to_var_int 274@ = $scplayer
set_lvar_int_to_var_int 275@ = $scplayer
set_lvar_int_to_var_int 276@ = $scplayer
set_lvar_int_to_lvar_int 277@ = 94@
set_lvar_int_to_lvar_int 278@ = 93@
set_lvar_int_to_lvar_int 279@ = 94@
set_player_control $player1 {state} False
switch_widescreen True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area -2031.77 {y} 161.21 {z} 29.42 {radius} 1000.0 {clearParticles} True
clear_mission_audio MissionAudioSlot.Slot1
114@ = 0
TIMERA = 0
TIMERB = 0
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_5951
if 
  not is_car_passenger_seat_free 34@ {seat} SeatId.RearRight
goto_if_false @GARAG1_5951
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearRight
delete_char 100@

:GARAG1_5951
if 
  114@ <> 20
goto_if_false @GARAG1_7286
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_6228
skip_cutscene_start_internal @GARAG1_7286
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6196
if 
  not is_char_dead 93@
goto_if_false @GARAG1_6173
set_fixed_camera_position -1674.2629 {y} 438.2627 {z} 11.0956 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1674.246 {y} 438.3686 {z} 10.1014 {switchStyle} SwitchType.JumpCut
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_6108
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_6108
set_car_coordinates 34@ {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f)
set_car_heading 34@ {heading} 43@
set_car_cruise_speed 34@ {maxSpeed} 0.0
348@ = 20
gosub @GARAG1_24340
goto @GARAG1_6189

:GARAG1_6173
101@ = 0
110@ = 1
return 

:GARAG1_6189
goto @GARAG1_6228

:GARAG1_6196
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
110@ = 1
return 

:GARAG1_6228
if 
  114@ == 1
goto_if_false @GARAG1_6526
if 
  TIMERA > 2000
goto_if_false @GARAG1_6526
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_6526
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6526
set_fixed_camera_position -1672.658 {y} 431.5702 {z} 7.2947 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1672.72 {y} 432.5628 {z} 7.3989 {switchStyle} SwitchType.JumpCut
130@ = open_sequence_task 
task_play_anim -1 {animationName} "FIXN_CAR_OUT" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_turn_char_to_face_char -1 {target} $scplayer
task_go_straight_to_coord -1 {x} -1668.853 {y} 442.619 {z} 6.219 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 193.0
task_enter_car_as_passenger -1 {vehicle} 34@ {time} -1 {seat} SeatId.RearRight
close_sequence_task 130@
perform_sequence_task 94@(134@,4i) {sequence} 130@
clear_sequence_task 130@
114@ = 2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1825

:GARAG1_6481
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @GARAG1_6507
wait 0
goto @GARAG1_6481

:GARAG1_6507
report_mission_audio_event_at_char 94@(134@,4i) {soundId} ScriptSound.SoundMechanicSlideOut
TIMERA = 0

:GARAG1_6526
if 
  114@ == 2
goto_if_false @GARAG1_6709
if 
  TIMERA > 2000
goto_if_false @GARAG1_6709
set_fixed_camera_position -1665.5229 {y} 443.0056 {z} 7.5433 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1666.462 {y} 442.6743 {z} 7.4596 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_6650
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6650

:GARAG1_6650
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_6695
set_char_heading 94@(134@,4i) {heading} 228.0
set_char_collision 94@(134@,4i) {state} True

:GARAG1_6695
gosub @GARAG1_24340
TIMERA = 0

:GARAG1_6709
if 
  114@ == 3
goto_if_false @GARAG1_6734
gosub @GARAG1_24340

:GARAG1_6734
if 
  114@ == 4
goto_if_false @GARAG1_6759
gosub @GARAG1_24340

:GARAG1_6759
if 
  114@ == 5
goto_if_false @GARAG1_6862
if 
  TIMERA > 1500
goto_if_false @GARAG1_6862
if 
  not is_char_dead 93@
goto_if_false @GARAG1_6855
task_play_anim 93@ {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_6855
gosub @GARAG1_24340

:GARAG1_6862
if 
  114@ == 6
goto_if_false @GARAG1_6996
if 
  not is_car_dead 34@
goto_if_false @GARAG1_6947
set_fixed_camera_position -1670.605 {y} 442.2138 {z} 7.3642 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1669.891 {y} 441.5237 {z} 7.2424 {switchStyle} SwitchType.JumpCut

:GARAG1_6947
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
gosub @GARAG1_24340

:GARAG1_6996
if 
  114@ == 7
goto_if_false @GARAG1_7021
gosub @GARAG1_24340

:GARAG1_7021
if 
  114@ == 8
goto_if_false @GARAG1_7046
gosub @GARAG1_24340

:GARAG1_7046
if 
  114@ == 9
goto_if_false @GARAG1_7141
if 
  TIMERA > 1500
goto_if_false @GARAG1_7141
set_fixed_camera_position -1648.684 {y} 411.5628 {z} 18.7936 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1649.09 {y} 412.4462 {z} 18.5605 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24340

:GARAG1_7141
if 
  114@ == 10
goto_if_false @GARAG1_7185
if 
  TIMERA > 1500
goto_if_false @GARAG1_7185
gosub @GARAG1_24340

:GARAG1_7185
if 
  114@ == 11
goto_if_false @GARAG1_7229
if 
  TIMERA > 1500
goto_if_false @GARAG1_7229
gosub @GARAG1_24340

:GARAG1_7229
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_7253
114@ = 20
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_7253
if 
  TIMERB > 21500
goto_if_false @GARAG1_7279
114@ = 20

:GARAG1_7279
goto @GARAG1_5951

:GARAG1_7286
skip_cutscene_end 
gosub @GARAG1_22044
if 
  110@ == 1
goto_if_false @GARAG1_7315
return 

:GARAG1_7315
remove_animation "CAR"
mark_model_as_no_longer_needed 525
if 
  not is_car_dead 36@
goto_if_false @GARAG1_7350
freeze_car_position 36@ {state} False

:GARAG1_7350
mark_car_as_no_longer_needed 36@
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
remove_animation "CAR_CHAT"
if 
  is_player_playing $player1
goto_if_false @GARAG1_7403
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_7403
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_prints 
114@ = 0
348@ = 31
349@ = 0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_7669
set_car_status 34@ {status} EntityStatus.Player
if 
  not is_char_dead 93@
goto_if_false @GARAG1_7558
if 
  not is_char_in_car 93@ {vehicle} 34@
goto_if_false @GARAG1_7558
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.BikeRear
goto_if_false @GARAG1_7533
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear
goto @GARAG1_7558

:GARAG1_7533
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.BikeRear
delete_char 100@
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear

:GARAG1_7558
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_7669
if 
  not is_char_in_car 94@(134@,4i) {vehicle} 34@
goto_if_false @GARAG1_7669
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.RearRight
goto_if_false @GARAG1_7640
warp_char_into_car_as_passenger 94@(134@,4i) {handle} 34@ {seat} SeatId.RearRight
goto @GARAG1_7669

:GARAG1_7640
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearRight
delete_char 100@
warp_char_into_car_as_passenger 94@(134@,4i) {handle} 34@ {seat} SeatId.RearRight

:GARAG1_7669
134@ = 1
101@ = 0
105@ = 1
return 

:GARAG1_7692
request_model 413

:GARAG1_7697
if 
  not has_model_loaded 413
goto_if_false @GARAG1_7724
wait 0
goto @GARAG1_7697

:GARAG1_7724
38@ = create_car 413 {x} -2607.1101 {y} 623.91 {z} 14.66
mark_model_as_no_longer_needed 413
set_car_heading 38@ {heading} 277.0
delete_car 38@
128@ = add_sprite_blip_for_coord 45@ {y} 46@ {z} 47@ {sprite} RadarSprite.Hospital
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_7810
return 

:GARAG1_7810
set_lvar_int_to_var_int 280@ = $scplayer
set_lvar_int_to_lvar_int 281@ = 93@
set_lvar_int_to_lvar_int 282@ = 93@
set_lvar_int_to_lvar_int 283@ = 93@
set_lvar_int_to_lvar_int 284@ = 93@
set_lvar_int_to_var_int 285@ = $scplayer
set_lvar_int_to_lvar_int 286@ = 93@
set_lvar_int_to_lvar_int 287@ = 93@
set_lvar_int_to_lvar_int 288@ = 93@
set_lvar_int_to_lvar_int 289@ = 93@
set_lvar_int_to_var_int 290@ = $scplayer
set_lvar_int_to_lvar_int 291@ = 93@
set_lvar_int_to_var_int 292@ = $scplayer
set_lvar_int_to_lvar_int 293@ = 93@
set_lvar_int_to_var_int 294@ = $scplayer
set_lvar_int_to_lvar_int 295@ = 93@
set_lvar_int_to_lvar_int 296@ = 93@
remove_blip 128@
request_model 413

:GARAG1_7956
if 
  not has_model_loaded 413
goto_if_false @GARAG1_7983
wait 0
goto @GARAG1_7956

:GARAG1_7983
request_animation "CAR_CHAT"

:GARAG1_7995
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_8029
wait 0
goto @GARAG1_7995

:GARAG1_8029
38@ = create_car 413 {x} -2607.1101 {y} 623.91 {z} 14.66
mark_model_as_no_longer_needed 413
lock_car_doors 38@ {lockStatus} CarLock.Locked
set_car_heading 38@ {heading} 180.0
freeze_car_position 38@ {state} True
348@ = 38
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
114@ = 0
TIMERA = 0
TIMERB = 0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_8394
set_car_coordinates 34@ {x} 45@ {y} 46@ {z} 47@
40@ = get_car_heading 34@
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_8224
set_car_heading 34@ {heading} 90.0
goto @GARAG1_8234

:GARAG1_8224
set_car_heading 34@ {heading} 270.0

:GARAG1_8234
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_8261
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_8261
set_fixed_camera_position -2581.9399 {y} 580.42 {z} 17.8189 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2582.491 {y} 581.153 {z} 18.2173 {switchStyle} SwitchType.JumpCut
87@, 88@, 89@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.8 {yOffset} 2.2 {zOffset} 0.8
90@, 91@, 92@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5
clear_area -2607.1101 {y} 623.91 {z} 14.66 {radius} 1000.0 {clearParticles} True

:GARAG1_8394
if 
  not is_char_dead 93@
goto_if_false @GARAG1_8453
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_8453
gosub @GARAG1_24340
clear_area 45@ {y} 46@ {z} 47@ {radius} 1000.0 {clearParticles} True
114@ = 0

:GARAG1_8485
if 
  114@ <> 10
goto_if_false @GARAG1_9623
wait 0
gosub @GARAG1_22044
if 
  110@ == 1
goto_if_false @GARAG1_8534
return 

:GARAG1_8534
if 
  114@ == 0
goto_if_false @GARAG1_8777
if 
  TIMERA > 1500
goto_if_false @GARAG1_8777
skip_cutscene_start_internal @GARAG1_9623
if 
  not is_char_dead 94@
goto_if_false @GARAG1_8637
task_play_anim 94@ {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_8637
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2581.9399 {fromY} 580.42 {fromZ} 17.8189 {toX} -2583.3201 {toY} 581.73 {toZ} 15.39 {time} 5000 {ease} True
camera_set_vector_track -2582.491 {fromY} 581.153 {fromZ} 18.2173 {toX} -2607.1101 {toY} 623.91 {toZ} 14.66 {time} 5000 {ease} True
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
gosub @GARAG1_24340
TIMERA = 0

:GARAG1_8777
if 
  114@ == 1
goto_if_false @GARAG1_8849
if 
  TIMERA > 1500
goto_if_false @GARAG1_8849
gosub @GARAG1_24340
if 
  not is_car_dead 38@
goto_if_false @GARAG1_8849
99@ = create_char_inside_car 38@ {pedType} PedType.CivMale {modelId} 7

:GARAG1_8849
if 
  114@ == 2
goto_if_false @GARAG1_8946
if 
  TIMERA > 1500
goto_if_false @GARAG1_8946
gosub @GARAG1_24340
camera_reset_new_scriptables 
set_fixed_camera_position -2583.3201 {y} 581.73 {z} 15.39 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2607.1101 {y} 623.91 {z} 14.66 {switchStyle} SwitchType.JumpCut

:GARAG1_8946
if 
  114@ == 3
goto_if_false @GARAG1_8990
if 
  TIMERA > 1500
goto_if_false @GARAG1_8990
gosub @GARAG1_24340

:GARAG1_8990
if 
  114@ == 4
goto_if_false @GARAG1_9126
if 
  TIMERA > 1500
goto_if_false @GARAG1_9126
if 
  not is_car_dead 38@
goto_if_false @GARAG1_9119
freeze_car_position 38@ {state} False
if 
  not is_char_dead 99@
goto_if_false @GARAG1_9119
if 
  is_char_in_car 99@ {vehicle} 38@
goto_if_false @GARAG1_9119
task_car_drive_to_coord 99@ {vehicle} 38@ {x} -2607.95 {y} 528.47 {z} 13.98 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:GARAG1_9119
gosub @GARAG1_24340

:GARAG1_9126
if 
  114@ == 5
goto_if_false @GARAG1_9228
if 
  TIMERA > 1500
goto_if_false @GARAG1_9228
gosub @GARAG1_24340
set_fixed_camera_position -2614.4609 {y} 573.477 {z} 16.9766 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2613.8 {y} 574.224 {z} 16.911 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:GARAG1_9228
if 
  114@ == 6
goto_if_false @GARAG1_9471
if 
  TIMERA > 2500
goto_if_false @GARAG1_9471
gosub @GARAG1_24340
if 
  not is_char_dead 93@
goto_if_false @GARAG1_9331
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_9331
if 
  not is_char_dead 94@
goto_if_false @GARAG1_9390
task_play_anim 94@ {animationName} "CAR_SC3_BR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_9390
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position 87@ {y} 88@ {z} 89@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 90@ {y} 91@ {z} 92@ {switchStyle} SwitchType.JumpCut

:GARAG1_9471
if 
  114@ == 7
goto_if_false @GARAG1_9515
if 
  TIMERA > 1500
goto_if_false @GARAG1_9515
gosub @GARAG1_24340

:GARAG1_9515
if 
  114@ == 8
goto_if_false @GARAG1_9566
if 
  TIMERA > 1500
goto_if_false @GARAG1_9566
gosub @GARAG1_24340
114@ = 10

:GARAG1_9566
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_9590
114@ = 10
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_9590
if 
  TIMERB > 20500
goto_if_false @GARAG1_9616
114@ = 10

:GARAG1_9616
goto @GARAG1_8485

:GARAG1_9623
skip_cutscene_end 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
camera_reset_new_scriptables 
remove_animation "CAR_CHAT"
if 
  is_player_playing $player1
goto_if_false @GARAG1_9677
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_9677
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
114@ = 0
348@ = 48
349@ = 0
delete_char 99@
delete_car 38@
105@ = 0
102@ = 1
return 

:GARAG1_9738
request_model 588

:GARAG1_9743
if 
  not has_model_loaded 588
goto_if_false @GARAG1_9770
wait 0
goto @GARAG1_9743

:GARAG1_9770
request_animation "SMOKING"

:GARAG1_9781
if 
  not has_animation_loaded "SMOKING"
goto_if_false @GARAG1_9814
wait 0
goto @GARAG1_9781

:GARAG1_9814
load_special_character 4 {modelName} 'DWAYNE'

:GARAG1_9827
if 
  not has_special_character_loaded 4
goto_if_false @GARAG1_9853
wait 0
goto @GARAG1_9827

:GARAG1_9853
request_model #CIGAR

:GARAG1_9857
if 
  not has_model_loaded #CIGAR
goto_if_false @GARAG1_9883
wait 0
goto @GARAG1_9857

:GARAG1_9883
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend
if 
  110@ == 14
goto_if_false @GARAG1_10047
create_char PedType.CivMale {modelId} 293 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
35@ = create_car 588 {x} -2238.8879 {y} 541.5267 {z} 34.375
42@ = create_object #CIGAR {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)
delete_car 35@
delete_char 94@(134@,4i)
delete_object 42@

:GARAG1_10047
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_10074
return 

:GARAG1_10074
if 
  does_object_exist 42@
goto_if_false @GARAG1_10095
delete_object 42@

:GARAG1_10095
request_animation "CAR_CHAT"

:GARAG1_10107
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_10141
wait 0
goto @GARAG1_10107

:GARAG1_10141
set_lvar_int_to_lvar_int 297@ = 93@
set_lvar_int_to_lvar_int 298@ = 95@
set_lvar_int_to_lvar_int 299@ = 93@
set_lvar_int_to_lvar_int 300@ = 93@
set_lvar_int_to_lvar_int 301@ = 95@
set_lvar_int_to_lvar_int 302@ = 95@
set_lvar_int_to_lvar_int 303@ = 95@
set_lvar_int_to_var_int 304@ = $scplayer
set_lvar_int_to_lvar_int 305@ = 95@
set_lvar_int_to_lvar_int 306@ = 93@
set_lvar_int_to_var_int 307@ = $scplayer
set_lvar_int_to_lvar_int 308@ = 93@
set_lvar_int_to_lvar_int 309@ = 94@
set_lvar_int_to_var_int 310@ = $scplayer
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_10413
if 
  not does_object_exist 42@
goto_if_false @GARAG1_10413
42@ = create_object #CIGAR {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)
task_pick_up_object 94@(134@,4i) {object} 42@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} 0.05 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
350@ = create_fx_system_on_char "EXHALE" {char} 94@(134@,4i) {xOffset} 0.05 {yOffset} 0.12 {zOffset} 0.0 {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 350@ {handle} 94@(134@,4i) {pedBone} PedBone.Neck

:GARAG1_10413
if 
  not is_car_dead 34@
goto_if_false @GARAG1_10882
40@ = get_car_heading 34@
set_car_coordinates 34@ {x} 55@ {y} 60@ {z} 65@
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_10478
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_10478
set_fixed_camera_position -2235.8149 {y} 541.4094 {z} 35.7451 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2236.521 {y} 542.1174 {z} 35.7312 {switchStyle} SwitchType.JumpCut
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_10623
task_play_anim_non_interruptable 94@(134@,4i) {animationName} "M_SMK_OUT" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GARAG1_10623
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_10771
set_car_heading 34@ {heading} 180.0
if 
  not is_char_dead 93@
goto_if_false @GARAG1_10722
task_play_anim 93@ {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_10722
task_play_anim $scplayer {animationName} "CAR_SC4_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @GARAG1_10882

:GARAG1_10771
set_car_heading 34@ {heading} 0.0
if 
  not is_char_dead 93@
goto_if_false @GARAG1_10840
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_10840
task_play_anim $scplayer {animationName} "CAR_SC2_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_10882
348@ = 55
gosub @GARAG1_24340
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_10946
if 
  114@ <> 20
goto_if_false @GARAG1_13033
wait 0
gosub @GARAG1_22044
if 
  110@ == 1
goto_if_false @GARAG1_10995
return 

:GARAG1_10995
if 
  114@ == 0
goto_if_false @GARAG1_11397
skip_cutscene_start_internal @GARAG1_13033
if 
  TIMERA > 2000
goto_if_false @GARAG1_11397
play_fx_system 350@
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_11076
start_char_facial_talk 94@(134@,4i) {duration} 4000

:GARAG1_11076
gosub @GARAG1_24340
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_11158
task_play_anim_non_interruptable 94@(134@,4i) {animationName} "M_SMK_OUT" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
freeze_char_position 94@(134@,4i) {state} False

:GARAG1_11158
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_11296
if 
  not is_char_dead 93@
goto_if_false @GARAG1_11247
task_play_anim 93@ {animationName} "CAR_SC4_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_11247
task_play_anim $scplayer {animationName} "CAR_SC4_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @GARAG1_11397

:GARAG1_11296
if 
  not is_char_dead 93@
goto_if_false @GARAG1_11355
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_11355
task_play_anim $scplayer {animationName} "CAR_SC2_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GARAG1_11397
if 
  114@ == 1
goto_if_false @GARAG1_11783
if 
  TIMERA > 2000
goto_if_false @GARAG1_11783
if 
  not is_car_dead 35@
goto_if_false @GARAG1_11751
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
if 
  not is_char_dead 95@
goto_if_false @GARAG1_11655
task_go_straight_to_coord 95@ {x} -2232.0701 {y} 545.04 {z} 34.39 {speed} MoveState.Walk {time} -1
remove_animation "SMOKING"
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_11597
set_fixed_camera_position -2233.689 {y} 541.4159 {z} 35.2249 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2233.1389 {y} 542.2441 {z} 35.1142 {switchStyle} SwitchType.JumpCut
goto @GARAG1_11648

:GARAG1_11597
set_fixed_camera_position -2228.6201 {y} 540.7846 {z} 35.5936 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2229.199 {y} 541.5954 {z} 35.5075 {switchStyle} SwitchType.JumpCut

:GARAG1_11648
goto @GARAG1_11687

:GARAG1_11655
print_now 'GAR1_07' {time} 5000 {flag} 1
102@ = 0
110@ = 1
return 

:GARAG1_11687
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_11728
freeze_car_position 35@ {state} False
gosub @GARAG1_24340
goto @GARAG1_11744

:GARAG1_11728
102@ = 0
110@ = 1
return 

:GARAG1_11744
goto @GARAG1_11783

:GARAG1_11751
print_now 'GAR1_07' {time} 5000 {flag} 1
102@ = 0
110@ = 1
return 

:GARAG1_11783
if 
  TIMERA > 1500
goto_if_false @GARAG1_12039
if 
  114@ == 2
goto_if_false @GARAG1_12039
gosub @GARAG1_24340
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12039
set_char_heading 94@(134@,4i) {heading} 270.0
130@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2232.0701 {y} 545.04 {z} 34.39 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "CAR_TALKM_IN" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_LOOP" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 130@
perform_sequence_task 95@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_12039
if 
  114@ == 3
goto_if_false @GARAG1_12064
gosub @GARAG1_24340

:GARAG1_12064
if 
  114@ == 4
goto_if_false @GARAG1_12089
gosub @GARAG1_24340

:GARAG1_12089
if 
  114@ == 5
goto_if_false @GARAG1_12114
gosub @GARAG1_24340

:GARAG1_12114
if 
  114@ == 6
goto_if_false @GARAG1_12233
gosub @GARAG1_24340
TIMERA = 0
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12233
if 
  not is_char_dead 95@
goto_if_false @GARAG1_12233
130@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2241.6599 {y} 547.19 {z} 34.49 {speed} MoveState.Run {time} -1
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 130@
perform_sequence_task 95@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_12233
if 
  114@ == 7
goto_if_false @GARAG1_12469
gosub @GARAG1_24340
set_fixed_camera_position -2229.155 {y} 533.4247 {z} 41.4992 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2229.6589 {y} 534.123 {z} 40.9914 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12469
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12469
warp_char_into_car 94@(134@,4i) {vehicle} 35@
if 
  is_char_in_car 94@(134@,4i) {vehicle} 35@
goto_if_false @GARAG1_12469
130@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 35@ {x} -2240.4299 {y} 557.96 {z} 34.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 35@ {x} -2185.4299 {y} 567.96 {z} 34.0 {speed} 50.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 130@
perform_sequence_task 95@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_12469
if 
  TIMERA > 4000
goto_if_false @GARAG1_12715
if 
  114@ == 8
goto_if_false @GARAG1_12715
gosub @GARAG1_24340
if 
  not is_car_dead 34@
goto_if_false @GARAG1_12639
set_fixed_camera_position -2235.01 {y} 538.8505 {z} 34.3478 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2234.1831 {y} 539.4094 {z} 34.3942 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 93@
goto_if_false @GARAG1_12639
task_play_anim 93@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_12639
stop_fx_system 350@
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12673
delete_char 94@(134@,4i)

:GARAG1_12673
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12694
delete_car 35@

:GARAG1_12694
if 
  does_object_exist 42@
goto_if_false @GARAG1_12715
delete_object 42@

:GARAG1_12715
if 
  TIMERA > 1500
goto_if_false @GARAG1_12759
if 
  114@ == 9
goto_if_false @GARAG1_12759
gosub @GARAG1_24340

:GARAG1_12759
if 
  TIMERA > 1500
goto_if_false @GARAG1_12803
if 
  114@ == 10
goto_if_false @GARAG1_12803
gosub @GARAG1_24340

:GARAG1_12803
if 
  TIMERA > 1500
goto_if_false @GARAG1_12847
if 
  114@ == 11
goto_if_false @GARAG1_12847
gosub @GARAG1_24340

:GARAG1_12847
if 
  TIMERA > 1500
goto_if_false @GARAG1_12898
if 
  114@ == 12
goto_if_false @GARAG1_12898
gosub @GARAG1_24340
114@ = 20

:GARAG1_12898
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_12998
114@ = 20
stop_fx_system 350@
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_12952
delete_char 94@(134@,4i)

:GARAG1_12952
if 
  not is_car_dead 35@
goto_if_false @GARAG1_12973
delete_car 35@

:GARAG1_12973
if 
  does_object_exist 42@
goto_if_false @GARAG1_12994
delete_object 42@

:GARAG1_12994
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_12998
if 
  TIMERB > 40000
goto_if_false @GARAG1_13026
114@ = 20

:GARAG1_13026
goto @GARAG1_10946

:GARAG1_13033
skip_cutscene_end 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
remove_animation "CAR_CHAT"
if 
  is_player_playing $player1
goto_if_false @GARAG1_13083
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_13083
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
114@ = 0
349@ = 0
clear_prints 
if 
  not is_car_dead 34@
goto_if_false @GARAG1_13302
set_car_status 34@ {status} EntityStatus.Player
if 
  not is_char_dead 93@
goto_if_false @GARAG1_13231
if 
  not is_char_in_car 93@ {vehicle} 34@
goto_if_false @GARAG1_13231
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.BikeRear
goto_if_false @GARAG1_13206
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear
goto @GARAG1_13231

:GARAG1_13206
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.BikeRear
delete_char 100@
warp_char_into_car_as_passenger 93@ {handle} 34@ {seat} SeatId.BikeRear

:GARAG1_13231
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_13302
if 
  not is_car_dead 35@
goto_if_false @GARAG1_13302
if 
  not is_char_in_car 94@(134@,4i) {vehicle} 35@
goto_if_false @GARAG1_13302
warp_char_into_car 94@(134@,4i) {vehicle} 35@

:GARAG1_13302
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed #CIGAR
unload_special_character 4
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_13344
delete_char 94@(134@,4i)

:GARAG1_13344
if 
  not is_car_dead 35@
goto_if_false @GARAG1_13365
delete_car 35@

:GARAG1_13365
if 
  does_object_exist 42@
goto_if_false @GARAG1_13386
delete_object 42@

:GARAG1_13386
134@ = 2
102@ = 0
106@ = 1
return 

:GARAG1_13409
129@ = add_sprite_blip_for_coord 48@ {y} 49@ {z} 50@ {sprite} RadarSprite.Police
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_13452
return 

:GARAG1_13452
request_model 413
request_animation "CAR_CHAT"

:GARAG1_13469
if or
  not has_model_loaded 413
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_13508
wait 0
goto @GARAG1_13469

:GARAG1_13508
38@ = create_car 413 {x} -1659.92 {y} 751.31 {z} 17.29
lock_car_doors 38@ {lockStatus} CarLock.Locked
set_car_heading 38@ {heading} 180.0
freeze_car_position 38@ {state} True
if 
  not is_car_dead 38@
goto_if_false @GARAG1_13600
99@ = create_char_inside_car 38@ {pedType} PedType.CivMale {modelId} 7
freeze_car_position 38@ {state} False
set_car_cruise_speed 38@ {maxSpeed} 30.0

:GARAG1_13600
set_lvar_int_to_lvar_int 311@ = 93@
set_lvar_int_to_lvar_int 312@ = 93@
set_lvar_int_to_lvar_int 313@ = 93@
set_lvar_int_to_lvar_int 314@ = 93@
set_lvar_int_to_var_int 315@ = $scplayer
set_lvar_int_to_lvar_int 316@ = 93@
set_lvar_int_to_lvar_int 317@ = 93@
set_lvar_int_to_lvar_int 318@ = 93@
set_lvar_int_to_lvar_int 319@ = 93@
set_lvar_int_to_lvar_int 320@ = 93@
set_lvar_int_to_lvar_int 321@ = 93@
set_lvar_int_to_var_int 322@ = $scplayer
set_lvar_int_to_var_int 323@ = $scplayer
set_lvar_int_to_lvar_int 324@ = 94@
set_lvar_int_to_lvar_int 325@ = 93@
set_lvar_int_to_lvar_int 326@ = 93@
set_lvar_int_to_lvar_int 327@ = 93@
set_lvar_int_to_lvar_int 328@ = 93@
set_lvar_int_to_lvar_int 329@ = 93@
set_lvar_int_to_var_int 330@ = $scplayer
set_lvar_int_to_lvar_int 331@ = 93@
set_lvar_int_to_lvar_int 333@ = 93@
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_14055
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_13848
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_13848
40@ = get_car_heading 34@
set_car_coordinates 34@ {x} -1626.167 {y} 725.0057 {z} 13.4609
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_13924
set_car_heading 34@ {heading} 90.0
goto @GARAG1_13934

:GARAG1_13924
set_car_heading 34@ {heading} 270.0

:GARAG1_13934
87@, 88@, 89@ = get_offset_from_car_in_world_coords 34@ {xOffset} 1.0 {yOffset} 1.5 {zOffset} 0.8
90@, 91@, 92@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5
set_fixed_camera_position 87@ {y} 88@ {z} 89@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 90@ {y} 91@ {z} 92@ {switchStyle} SwitchType.JumpCut
clear_area -1659.92 {y} 751.31 {z} 17.29 {radius} 1000.0 {clearParticles} True

:GARAG1_14055
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14114
task_play_anim 93@ {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_14114
114@ = 0
348@ = 69
TIMERA = 0
TIMERB = 0

:GARAG1_14142
if 
  114@ <> 20
goto_if_false @GARAG1_14973
wait 0
gosub @GARAG1_22044
if 
  110@ == 1
goto_if_false @GARAG1_14191
return 

:GARAG1_14191
if 
  114@ == 0
goto_if_false @GARAG1_14266
skip_cutscene_start_internal @GARAG1_14973
if 
  TIMERA > 1500
goto_if_false @GARAG1_14266
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14259
start_char_facial_talk 93@ {duration} 29000

:GARAG1_14259
gosub @GARAG1_24340

:GARAG1_14266
if 
  114@ == 1
goto_if_false @GARAG1_14453
if 
  TIMERA > 2000
goto_if_false @GARAG1_14453
gosub @GARAG1_24340
if 
  not is_car_dead 38@
goto_if_false @GARAG1_14395
if 
  not is_char_dead 99@
goto_if_false @GARAG1_14395
if 
  is_char_in_car 99@ {vehicle} 38@
goto_if_false @GARAG1_14395
task_car_drive_to_coord 99@ {vehicle} 38@ {x} -1716.03 {y} 732.96 {z} 24.9 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:GARAG1_14395
set_fixed_camera_position -1671.547 {y} 729.851 {z} 18.6107 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1670.621 {y} 730.2037 {z} 18.7409 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:GARAG1_14453
if 
  114@ == 2
goto_if_false @GARAG1_14497
if 
  TIMERA > 2000
goto_if_false @GARAG1_14497
gosub @GARAG1_24340

:GARAG1_14497
if 
  114@ == 3
goto_if_false @GARAG1_14725
if 
  TIMERA > 6000
goto_if_false @GARAG1_14725
set_fixed_camera_position -1624.639 {y} 723.3417 {z} 14.5936 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1625.473 {y} 723.8466 {z} 14.8151 {switchStyle} SwitchType.JumpCut
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk $scplayer {duration} 3000
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14694
task_play_anim 93@ {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 9000

:GARAG1_14694
gosub @GARAG1_24340
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14725
start_char_facial_talk 93@ {duration} 20000

:GARAG1_14725
if and
  114@ >= 4
  7 >= 114@
goto_if_false @GARAG1_14757
gosub @GARAG1_24340

:GARAG1_14757
if 
  114@ == 8
goto_if_false @GARAG1_14859
if 
  TIMERA > 2000
goto_if_false @GARAG1_14859
set_fixed_camera_position -1628.8 {y} 727.3613 {z} 14.7421 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1627.844 {y} 727.0695 {z} 14.7728 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24340
TIMERA = 0

:GARAG1_14859
if and
  114@ >= 9
  11 >= 114@
goto_if_false @GARAG1_14891
gosub @GARAG1_24340

:GARAG1_14891
if 
  114@ >= 12
goto_if_false @GARAG1_14916
114@ = 20

:GARAG1_14916
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_14940
114@ = 20
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_14940
if 
  TIMERB > 29000
goto_if_false @GARAG1_14966
114@ = 20

:GARAG1_14966
goto @GARAG1_14142

:GARAG1_14973
skip_cutscene_end 
if 
  not is_char_dead 93@
goto_if_false @GARAG1_14996
stop_char_facial_talk 93@

:GARAG1_14996
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @GARAG1_15032
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_15032
remove_animation "CAR_CHAT"
mark_model_as_no_longer_needed 413
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
114@ = 0
348@ = 80
349@ = 0
clear_prints 
remove_blip 129@
delete_char 99@
delete_car 38@
106@ = 0
103@ = 1
remove_animation "CAR_CHAT"
return 

:GARAG1_15129
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend
request_animation "CRIB"
request_model 465

:GARAG1_15183
if or
  not has_animation_loaded "CRIB"
  not has_model_loaded 465
goto_if_false @GARAG1_15218
wait 0
goto @GARAG1_15183

:GARAG1_15218
41@ = create_object #PARKBENCH1 {x} -2242.6001 {y} 136.91 {z} 34.65
delete_object 41@
37@ = create_car 465 {x} -2250.3301 {y} 139.91 {z} 44.66
delete_car 37@
load_special_character 1 {modelName} 'ZERO'

:GARAG1_15287
if 
  not has_special_character_loaded 1
goto_if_false @GARAG1_15313
wait 0
goto @GARAG1_15287

:GARAG1_15313
request_model 364
request_model 363

:GARAG1_15323
if or
  not has_model_loaded 364
  not has_model_loaded 363
goto_if_false @GARAG1_15355
wait 0
goto @GARAG1_15323

:GARAG1_15355
96@ = create_char PedType.CivMale {modelId} 290 {x} 74@ {y} 79@ {z} 84@
set_char_only_damaged_by_player 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Satchel {ammo} 10
set_char_never_targetted 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Detonator {ammo} 1
set_char_relationship 96@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 96@ {handleOrTemplate} 135@
set_current_char_weapon 96@ {weaponType} WeaponType.Detonator
delete_char 96@
gosub @GARAG1_18471
request_animation "CAR_CHAT"

:GARAG1_15454
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @GARAG1_15488
wait 0
goto @GARAG1_15454

:GARAG1_15488
if 
  110@ == 1
goto_if_false @GARAG1_15508
return 

:GARAG1_15508
set_lvar_int_to_lvar_int 334@ = 96@
set_lvar_int_to_lvar_int 335@ = 96@
set_lvar_int_to_lvar_int 336@ = 96@
set_lvar_int_to_lvar_int 337@ = 93@
set_lvar_int_to_lvar_int 338@ = 93@
set_lvar_int_to_lvar_int 339@ = 93@
set_lvar_int_to_var_int 340@ = $scplayer
set_lvar_int_to_lvar_int 341@ = 93@
set_lvar_int_to_lvar_int 342@ = 93@
set_lvar_int_to_lvar_int 343@ = 96@
set_lvar_int_to_lvar_int 344@ = 96@
set_lvar_int_to_lvar_int 345@ = 96@
set_lvar_int_to_var_int 346@ = $scplayer
set_lvar_int_to_var_int 347@ = $scplayer
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
switch_random_trains False
if 
  not is_car_dead 37@
goto_if_false @GARAG1_15729
set_car_coordinates 37@ {x} -2244.5601 {y} 127.11 {z} 40.0
heli_land_at_coords 37@ {x} -2244.48 {y} 129.14 {z} 34.56 {minAltitude} 0.0 {maxAltitude} 0.0
set_car_cruise_speed 37@ {maxSpeed} 21.0

:GARAG1_15729
set_fixed_camera_position -2250.3059 {y} 140.9439 {z} 41.7533 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2249.804 {y} 140.343 {z} 41.1311 {switchStyle} SwitchType.JumpCut
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_15952
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_15853
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_15853
40@ = get_car_heading 34@
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_15909
set_car_heading 34@ {heading} 180.0
goto @GARAG1_15919

:GARAG1_15909
set_car_heading 34@ {heading} 0.0

:GARAG1_15919
if 
  not is_car_passenger_seat_free 34@ {seat} SeatId.RearLeft
goto_if_false @GARAG1_15952
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearLeft
delete_char 100@

:GARAG1_15952
if 
  not is_char_dead 96@
goto_if_false @GARAG1_15998
set_char_health 96@ {health} 200
set_char_suffers_critical_hits 96@ {state} False
set_char_proofs 96@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:GARAG1_15998
348@ = 92
114@ = 0
TIMERA = 0
TIMERB = 0

:GARAG1_16026
if 
  114@ <> 10
goto_if_false @GARAG1_16806
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_16099
if 
  TIMERA > 1500
goto_if_false @GARAG1_16099
skip_cutscene_start_internal @GARAG1_16806
gosub @GARAG1_24340

:GARAG1_16099
if 
  114@ == 1
goto_if_false @GARAG1_16194
if 
  TIMERA > 2000
goto_if_false @GARAG1_16194
gosub @GARAG1_24340
set_fixed_camera_position -2244.449 {y} 135.8613 {z} 34.9713 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2244.844 {y} 134.9551 {z} 35.1198 {switchStyle} SwitchType.JumpCut

:GARAG1_16194
if 
  114@ == 2
goto_if_false @GARAG1_16552
if 
  TIMERA > 3000
goto_if_false @GARAG1_16552
gosub @GARAG1_24340
if 
  not is_char_dead 96@
goto_if_false @GARAG1_16552
if 
  not is_car_dead 34@
goto_if_false @GARAG1_16469
if 
  not is_char_in_any_car 96@
goto_if_false @GARAG1_16293
set_char_collision 96@ {state} True

:GARAG1_16293
set_char_coordinates 96@ {x} -2245.3401 {y} 134.11 {z} 34.5
if and
  40@ > 90.0
  270.0 > 40@
goto_if_false @GARAG1_16395
130@ = open_sequence_task 
task_achieve_heading -1 {heading} 93.0
task_enter_car_as_passenger -1 {vehicle} 34@ {time} 6000 {seat} SeatId.RearLeft
close_sequence_task 130@
perform_sequence_task 96@ {sequence} 130@
clear_sequence_task 130@
goto @GARAG1_16462

:GARAG1_16395
130@ = open_sequence_task 
task_achieve_heading -1 {heading} 93.0
task_go_straight_to_coord -1 {x} -2252.853 {y} 138.619 {z} 34.219 {speed} MoveState.Run {time} -1
task_enter_car_as_passenger -1 {vehicle} 34@ {time} 6000 {seat} SeatId.RearLeft
close_sequence_task 130@
perform_sequence_task 96@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_16462
goto @GARAG1_16501

:GARAG1_16469
print_now 'GAR1_07' {time} 5000 {flag} 1
103@ = 0
110@ = 1
return 

:GARAG1_16501
set_fixed_camera_position -2251.4209 {y} 130.1502 {z} 35.5076 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2250.7451 {y} 130.8858 {z} 35.4549 {switchStyle} SwitchType.JumpCut

:GARAG1_16552
if 
  114@ == 3
goto_if_false @GARAG1_16647
if 
  TIMERA > 3000
goto_if_false @GARAG1_16647
set_fixed_camera_position -2253.4509 {y} 139.6341 {z} 38.4909 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2252.7019 {y} 139.074 {z} 38.1371 {switchStyle} SwitchType.JumpCut
gosub @GARAG1_24340

:GARAG1_16647
if 
  114@ == 4
goto_if_false @GARAG1_16705
if 
  TIMERA > 3000
goto_if_false @GARAG1_16705
gosub @GARAG1_24340
114@ = 5
TIMERA = 0

:GARAG1_16705
if 
  114@ == 5
goto_if_false @GARAG1_16749
if 
  TIMERA > 2000
goto_if_false @GARAG1_16749
114@ = 10

:GARAG1_16749
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GARAG1_16773
114@ = 10
clear_mission_audio MissionAudioSlot.Slot1

:GARAG1_16773
if 
  TIMERB > 13500
goto_if_false @GARAG1_16799
114@ = 10

:GARAG1_16799
goto @GARAG1_16026

:GARAG1_16806
skip_cutscene_end 
if 
  not is_char_dead 96@
goto_if_false @GARAG1_16959
set_current_char_weapon 96@ {weaponType} WeaponType.Unarmed
if 
  not is_car_dead 34@
goto_if_false @GARAG1_16944
if 
  not is_char_in_car 96@ {vehicle} 34@
goto_if_false @GARAG1_16944
if 
  is_car_passenger_seat_free 34@ {seat} SeatId.RearLeft
goto_if_false @GARAG1_16901
warp_char_into_car_as_passenger 96@ {handle} 34@ {seat} SeatId.RearLeft
goto @GARAG1_16930

:GARAG1_16901
100@ = get_char_in_car_passenger_seat 34@ {seat} SeatId.RearLeft
delete_char 100@
warp_char_into_car_as_passenger 94@(134@,4i) {handle} 34@ {seat} SeatId.RearLeft

:GARAG1_16930
set_current_char_weapon 96@ {weaponType} WeaponType.Unarmed
set_char_only_damaged_by_player 96@ {state} False

:GARAG1_16944
set_char_proofs 96@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GARAG1_16959
if 
  not is_car_dead 37@
goto_if_false @GARAG1_17035
set_car_coordinates 37@ {x} -2242.3401 {y} 128.0 {z} 34.2
set_car_proofs 37@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_cruise_speed 37@ {maxSpeed} 0.0
set_car_health 37@ {health} 400
freeze_car_position 37@ {state} True

:GARAG1_17035
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  is_player_playing $player1
goto_if_false @GARAG1_17071
shut_char_up_for_scripted_speech $scplayer {state} True

:GARAG1_17071
switch_random_trains True
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
348@ = 97
114@ = 0
349@ = 0
clear_prints 
mark_object_as_no_longer_needed 41@
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
remove_animation "CRIB"
mark_car_as_no_longer_needed 37@
remove_animation "CAR_CHAT"
134@ = 3
103@ = 0
107@ = 1
mark_model_as_no_longer_needed 465
return 

:GARAG1_17180
add_blip_for_coord 69@ {y} 70@ {z} 71@ {var_handle} 122@(134@,5i)
request_model 588

:GARAG1_17203
if 
  not has_model_loaded 588
goto_if_false @GARAG1_17230
wait 0
goto @GARAG1_17203

:GARAG1_17230
gosub @GARAG1_18471
if 
  110@ == 1
goto_if_false @GARAG1_17257
return 

:GARAG1_17257
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
TIMERA = 0
set_fixed_camera_position -2040.63 {y} 180.9374 {z} 29.2617 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2039.8 {y} 180.3834 {z} 29.3231 {switchStyle} SwitchType.JumpCut
clear_area 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {radius} 1000.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17481
set_car_coordinates 34@ {x} -2033.932 {y} 178.5836 {z} 27.6359
set_car_heading 34@ {heading} 86.5989
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_17447
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_17447
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} -2039.97 {y} 179.98 {z} 28.08 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 1 {drivingStyle} DrivingMode.PloughThrough

:GARAG1_17481
load_mission_audio MissionAudioSlot.Slot1 {audioId} 16503

:GARAG1_17488
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_17514
wait 0
goto @GARAG1_17488

:GARAG1_17514
print_now 'GAR1_PH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:GARAG1_17534
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_17560
wait 0
goto @GARAG1_17534

:GARAG1_17560
clear_this_print 'GAR1_PH'
114@ = 0

:GARAG1_17578
if 
  4000 > TIMERA
goto_if_false @GARAG1_18065
wait 0
if 
  114@ == 0
goto_if_false @GARAG1_17979
if 
  TIMERA > 1000
goto_if_false @GARAG1_17979
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17746
if 
  not is_char_dead 94@
goto_if_false @GARAG1_17746
51@, 52@, 53@ = get_offset_from_char_in_world_coords 94@ {xOffset} 1.0 {yOffset} 5.0 {zOffset} 0.0
130@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_go_straight_to_coord -1 {x} 51@ {y} 52@ {z} 53@ {speed} MoveState.Walk {time} -1
close_sequence_task 130@
perform_sequence_task 94@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_17746
wait 1000
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17859
if 
  not is_char_dead 96@
goto_if_false @GARAG1_17859
51@, 52@, 53@ = get_offset_from_char_in_world_coords 96@ {xOffset} -5.0 {yOffset} 0.0 {zOffset} 0.0
130@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_go_straight_to_coord -1 {x} 51@ {y} 52@ {z} 53@ {speed} MoveState.Walk {time} -1
close_sequence_task 130@
perform_sequence_task 96@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_17859
wait 500
if 
  not is_car_dead 34@
goto_if_false @GARAG1_17972
if 
  not is_char_dead 93@
goto_if_false @GARAG1_17972
51@, 52@, 53@ = get_offset_from_char_in_world_coords 93@ {xOffset} 1.0 {yOffset} 5.0 {zOffset} 0.0
130@ = open_sequence_task 
task_leave_car -1 {vehicle} 34@
task_go_straight_to_coord -1 {x} 51@ {y} 52@ {z} 53@ {speed} MoveState.Walk {time} -1
close_sequence_task 130@
perform_sequence_task 93@ {sequence} 130@
clear_sequence_task 130@

:GARAG1_17972
114@ = 1

:GARAG1_17979
if 
  114@ == 1
goto_if_false @GARAG1_18038
if 
  TIMERA > 2500
goto_if_false @GARAG1_18038
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
114@ = 2

:GARAG1_18038
if 
  110@ == 1
goto_if_false @GARAG1_18058
return 

:GARAG1_18058
goto @GARAG1_17578

:GARAG1_18065
if 
  is_char_in_any_car $scplayer
goto_if_false @GARAG1_18101
warp_char_from_car_to_coord $scplayer {x} -2028.0 {y} 177.0 {z} 28.2

:GARAG1_18101
remove_animation "SMOKING"
remove_animation "PARK"
remove_animation "CAR"
remove_animation "CRIB"
remove_animation "GANGS"
remove_animation "CAR_CHAT"
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 585
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 465
mark_model_as_no_longer_needed 525
unload_special_character 1
unload_special_character 2
unload_special_character 3

:GARAG1_18203
if 
  get_fading_status 
goto_if_false @GARAG1_18227
wait 0
goto @GARAG1_18203

:GARAG1_18227
set_char_coordinates $scplayer {x} -2028.0 {y} 177.0 {z} 28.2
set_char_heading $scplayer {heading} 267.0
delete_char 93@
delete_char 94@
delete_char 95@
delete_char 96@
delete_char 97@
delete_char 99@
delete_car 35@
delete_car 34@
load_cutscene 'GARAG1C'
set_area_visible 1

:GARAG1_18312
if 
  not has_cutscene_loaded 
goto_if_false @GARAG1_18336
wait 0
goto @GARAG1_18312

:GARAG1_18336
wait 1500
start_cutscene 
do_fade 1000 {direction} Fade.In

:GARAG1_18350
if 
  not has_cutscene_finished 
goto_if_false @GARAG1_18374
wait 0
goto @GARAG1_18350

:GARAG1_18374
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GARAG1_18389
if 
  get_fading_status 
goto_if_false @GARAG1_18413
wait 0
goto @GARAG1_18389

:GARAG1_18413
set_area_visible 0
do_fade 1000 {direction} Fade.In

:GARAG1_18424
if 
  get_fading_status 
goto_if_false @GARAG1_18448
wait 0
goto @GARAG1_18424

:GARAG1_18448
349@ = 0
107@ = 0
109@ = 1
return 

:GARAG1_18471
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21950

:GARAG1_18487
if 
  119@ <> 1
goto_if_false @GARAG1_21943
wait 0
gosub @GARAG1_22044
if 
  110@ == 1
goto_if_false @GARAG1_18536
return 

:GARAG1_18536
if 
  101@ == 1
goto_if_false @GARAG1_18974
if 
  locate_char_any_means_3d $scplayer {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @GARAG1_18899
if 
  120@ == 0
goto_if_false @GARAG1_18892
create_char PedType.CivMale {modelId} 292 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
set_char_never_targetted 94@(134@,4i) {state} True
set_char_collision 94@(134@,4i) {state} False
set_char_heading 94@(134@,4i) {heading} 228.0
set_char_proofs 94@(134@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_get_out_upside_down_car 94@(134@,4i) {state} False
set_char_relationship 94@(134@,4i) {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 94@(134@,4i) {handleOrTemplate} 135@
set_char_never_targetted 94@(134@,4i) {state} True
36@ = create_car 525 {x} -1676.0 {y} 440.0 {z} 6.7
lock_car_doors 36@ {lockStatus} CarLock.Locked
set_car_engine_on 36@ {state} True
set_car_lights_on 36@ {state} True
set_car_heading 36@ {heading} 313.0
set_car_health 36@ {health} 500
freeze_car_position 36@ {state} True
pop_car_door 36@ {door} CarDoor.Hood {visibility} False
task_play_anim_non_interruptable 94@(134@,4i) {animationName} "FIXN_CAR_LOOP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
120@ = 1

:GARAG1_18892
goto @GARAG1_18974

:GARAG1_18899
if 
  120@ == 1
goto_if_false @GARAG1_18974
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_18946
delete_char 94@(134@,4i)

:GARAG1_18946
if 
  not is_car_dead 36@
goto_if_false @GARAG1_18967
delete_car 36@

:GARAG1_18967
120@ = 0

:GARAG1_18974
if 
  102@ == 1
goto_if_false @GARAG1_19464
if 
  locate_char_any_means_3d $scplayer {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @GARAG1_19368
if 
  120@ == 0
goto_if_false @GARAG1_19361
35@ = create_car 588 {x} -2238.8879 {y} 541.5267 {z} 34.375
lock_car_doors 35@ {lockStatus} CarLock.Locked
set_car_engine_on 35@ {state} True
set_car_lights_on 35@ {state} True
set_car_heading 35@ {heading} 0.0
freeze_car_position 35@ {state} True
create_char PedType.CivMale {modelId} 293 {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f) {var_handle} 94@(134@,4i)
set_char_never_targetted 94@(134@,4i) {state} True
set_char_heading 94@(134@,4i) {heading} 270.0
42@ = create_object #CIGAR {x} 72@(134@,5f) {y} 77@(134@,5f) {z} 82@(134@,5f)
task_pick_up_object 94@(134@,4i) {object} 42@ {xOffset} 0.04 {yOffset} 0.1 {zOffset} 0.05 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
freeze_char_position 94@(134@,4i) {state} True
set_char_relationship 94@(134@,4i) {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 94@(134@,4i) {handleOrTemplate} 135@
set_char_get_out_upside_down_car 94@(134@,4i) {state} False
task_play_anim 94@(134@,4i) {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
120@ = 1

:GARAG1_19361
goto @GARAG1_19464

:GARAG1_19368
if 
  120@ == 1
goto_if_false @GARAG1_19464
if 
  not is_char_dead 94@(134@,4i)
goto_if_false @GARAG1_19415
delete_char 94@(134@,4i)

:GARAG1_19415
if 
  not is_car_dead 35@
goto_if_false @GARAG1_19436
delete_car 35@

:GARAG1_19436
if 
  does_object_exist 42@
goto_if_false @GARAG1_19457
delete_object 42@

:GARAG1_19457
120@ = 0

:GARAG1_19464
if 
  103@ == 1
goto_if_false @GARAG1_19953
if 
  locate_char_any_means_3d $scplayer {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @GARAG1_19865
if 
  120@ == 0
goto_if_false @GARAG1_19858
41@ = create_object #PARKBENCH1 {x} -2244.55 {y} 133.91 {z} 34.4
set_object_heading 41@ {heading} 0.0
freeze_object_position 41@ {state} True
96@ = create_char PedType.CivMale {modelId} 290 {x} -2244.7 {y} 133.91 {z} 33.82
set_char_get_out_upside_down_car 96@ {state} False
set_char_never_targetted 96@ {state} True
task_play_anim_non_interruptable 96@ {animationName} "CRIB_CONSOLE_LOOP" {animationFile} "CRIB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_char_collision 96@ {state} False
set_char_relationship 96@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 96@ {handleOrTemplate} 135@
set_char_heading 96@ {heading} 280.0
set_char_only_damaged_by_player 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Satchel {ammo} 10
set_char_never_targetted 96@ {state} True
give_weapon_to_char 96@ {weaponType} WeaponType.Detonator {ammo} 1
set_char_relationship 96@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 96@ {handleOrTemplate} 135@
set_current_char_weapon 96@ {weaponType} WeaponType.Detonator
37@ = create_car 465 {x} -2250.3301 {y} 139.91 {z} 44.66
set_car_proofs 37@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_cruise_speed 37@ {maxSpeed} 30.0
set_heli_blades_full_speed 37@
heli_goto_coords 37@ {x} -2258.7 {y} 132.54 {z} 37.72 {minAltitude} 5.0 {maxAltitude} 35.0
120@ = 1

:GARAG1_19858
goto @GARAG1_19953

:GARAG1_19865
if 
  120@ == 1
goto_if_false @GARAG1_19953
if 
  does_object_exist 41@
goto_if_false @GARAG1_19904
delete_object 41@

:GARAG1_19904
if 
  not is_char_dead 96@
goto_if_false @GARAG1_19925
delete_char 96@

:GARAG1_19925
if 
  not is_car_dead 37@
goto_if_false @GARAG1_19946
delete_car 37@

:GARAG1_19946
120@ = 0

:GARAG1_19953
if 
  107@ == 1
goto_if_false @GARAG1_20131
if 
  locate_char_any_means_3d $scplayer {x} 69@ {y} 70@ {z} 71@ {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_20085
if 
  120@ == 0
goto_if_false @GARAG1_20078
35@ = create_car 588 {x} -2026.0 {y} 169.0 {z} 28.2
lock_car_doors 35@ {lockStatus} CarLock.Locked
set_car_heading 35@ {heading} 120.0
120@ = 1

:GARAG1_20078
goto @GARAG1_20131

:GARAG1_20085
if 
  120@ == 1
goto_if_false @GARAG1_20131
if 
  not is_car_dead 35@
goto_if_false @GARAG1_20124
delete_car 35@

:GARAG1_20124
120@ = 0

:GARAG1_20131
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21876
if or
  101@ == 1
  102@ == 1
  103@ == 1
goto_if_false @GARAG1_20515
if 
  locate_stopped_car_3d 34@ {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20515
if 
  locate_stopped_car_3d 34@ {x} 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @GARAG1_20506
if 
  118@ == 0
goto_if_false @GARAG1_20323
print_help 'GAR1_23'
118@ = 1

:GARAG1_20323
if 
  is_player_pressing_horn $player1
goto_if_false @GARAG1_20499
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @GARAG1_20499
set_char_cant_be_dragged_out $scplayer {state} True
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20385
lock_car_doors 34@ {lockStatus} CarLock.LockedPlayerInside

:GARAG1_20385
wait 500
set_player_control $player1 {state} False
switch_widescreen True
clear_mission_audio MissionAudioSlot.Slot1
clear_help 
wait 1000
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20469
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_20469
warp_char_into_car $scplayer {vehicle} 34@

:GARAG1_20469
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20492
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:GARAG1_20492
119@ = 1

:GARAG1_20499
goto @GARAG1_20515

:GARAG1_20506
clear_help 
118@ = 0

:GARAG1_20515
if 
  105@ == 1
goto_if_false @GARAG1_20612
if 
  locate_char_in_car_3d $scplayer {x} 45@ {y} 46@ {z} 47@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20612
119@ = 1
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:GARAG1_20612
if 
  106@ == 1
goto_if_false @GARAG1_20709
if 
  locate_char_in_car_3d $scplayer {x} 48@ {y} 49@ {z} 50@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20709
119@ = 1
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:GARAG1_20709
if 
  107@ == 1
goto_if_false @GARAG1_20903
if 
  not is_car_dead 34@
goto_if_false @GARAG1_20903
if 
  113@ == 0
goto_if_false @GARAG1_20903
40@ = get_car_heading 34@
if 
  locate_car_3d 34@ {x} -2034.59 {y} 180.23 {z} 28.43 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GARAG1_20903
if and
  40@ > 0.0
  180.0 > 40@
goto_if_false @GARAG1_20903
open_garage 'HBGDSFS'
113@ = 1
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
119@ = 1

:GARAG1_20903
if 
  101@ == 1
goto_if_false @GARAG1_21053
if 
  115@ == 0
goto_if_false @GARAG1_21053
if and
  114@ >= 0
  7 >= 114@
goto_if_false @GARAG1_20971
gosub @GARAG1_24109

:GARAG1_20971
if 
  is_char_in_zone $scplayer {zone} 'EASB'
goto_if_false @GARAG1_21021
if 
  114@ == 8
goto_if_false @GARAG1_21021
gosub @GARAG1_24109

:GARAG1_21021
if or
  114@ == 9
  114@ == 10
goto_if_false @GARAG1_21053
gosub @GARAG1_24109

:GARAG1_21053
if 
  105@ == 1
goto_if_false @GARAG1_21103
if and
  114@ >= 0
  6 >= 114@
goto_if_false @GARAG1_21103
gosub @GARAG1_24109

:GARAG1_21103
if 
  102@ == 1
goto_if_false @GARAG1_21153
if and
  114@ >= 0
  6 >= 114@
goto_if_false @GARAG1_21153
gosub @GARAG1_24109

:GARAG1_21153
if 
  103@ == 1
goto_if_false @GARAG1_21203
if and
  114@ >= 0
  9 >= 114@
goto_if_false @GARAG1_21203
gosub @GARAG1_24109

:GARAG1_21203
if 
  107@ == 1
goto_if_false @GARAG1_21253
if and
  114@ >= 0
  7 >= 114@
goto_if_false @GARAG1_21253
gosub @GARAG1_24109

:GARAG1_21253
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21869
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_21869
remove_blip 122@(134@,5i)
remove_blip 128@
remove_blip 129@
127@ = add_blip_for_car 34@
set_blip_as_friendly 127@ {state} True
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41402

:GARAG1_21335
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_21361
wait 0
goto @GARAG1_21335

:GARAG1_21361
print_now 'TRUX_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:GARAG1_21381
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_21407
wait 0
goto @GARAG1_21381

:GARAG1_21407
clear_this_print 'TRUX_AC'
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21680

:GARAG1_21434
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @GARAG1_21680
wait 0
if 
  112@ == 0
goto_if_false @GARAG1_21482
112@ = 1

:GARAG1_21482
if 
  not is_car_dead 34@
goto_if_false @GARAG1_21505
goto @GARAG1_21565

:GARAG1_21505
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21565
if 
  is_car_on_fire 34@
goto_if_false @GARAG1_21646
explode_car 34@
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21646
gosub @GARAG1_22044
if 
  110@ == 1
goto_if_false @GARAG1_21673
return 

:GARAG1_21673
goto @GARAG1_21434

:GARAG1_21680
112@ = 0
remove_blip 127@
if or
  101@ == 1
  102@ == 1
  103@ == 1
goto_if_false @GARAG1_21765
add_blip_for_coord 54@(134@,5f) {y} 59@(134@,5f) {z} 64@(134@,5f) {var_handle} 122@(134@,5i)
set_coord_blip_appearance 122@(134@,5i) {color} CoordAppearance.Friend

:GARAG1_21765
if 
  105@ == 1
goto_if_false @GARAG1_21799
128@ = add_sprite_blip_for_coord 45@ {y} 46@ {z} 47@ {sprite} RadarSprite.Hospital

:GARAG1_21799
if 
  106@ == 1
goto_if_false @GARAG1_21833
129@ = add_sprite_blip_for_coord 48@ {y} 49@ {z} 50@ {sprite} RadarSprite.Police

:GARAG1_21833
if 
  107@ == 1
goto_if_false @GARAG1_21869
add_blip_for_coord 69@ {y} 70@ {z} 71@ {var_handle} 122@(134@,5i)

:GARAG1_21869
goto @GARAG1_21936

:GARAG1_21876
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
return 

:GARAG1_21936
goto @GARAG1_18487

:GARAG1_21943
goto @GARAG1_22003

:GARAG1_21950
print_now 'GAR1_07' {time} 5000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
110@ = 1
return 

:GARAG1_22003
119@ = 0
remove_blip 122@(134@,5i)
118@ = 0
120@ = 0
114@ = 0
clear_help 
return 

:GARAG1_22044
if 
  not is_car_dead 34@
goto_if_false @GARAG1_22866
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 34@ {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_22161
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_18' {time} 5000 {flag} 1

:GARAG1_22161
if 
  not is_char_dead 93@
goto_if_false @GARAG1_22384
if 
  not is_char_in_car 93@ {vehicle} 34@
goto_if_false @GARAG1_22359
if 
  115@ == 0
goto_if_false @GARAG1_22233
task_enter_car_as_passenger 93@ {vehicle} 34@ {time} -1 {seat} SeatId.BikeRear
115@ = 1

:GARAG1_22233
if 
  115@ == 1
goto_if_false @GARAG1_22352
if 
  not locate_char_on_foot_char_3d 93@ {target} $scplayer {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @GARAG1_22352
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_19' {time} 5000 {flag} 1

:GARAG1_22352
goto @GARAG1_22384

:GARAG1_22359
if 
  115@ == 1
goto_if_false @GARAG1_22384
115@ = 0

:GARAG1_22384
if 
  101@ <> 1
goto_if_false @GARAG1_22625
if 
  not is_char_dead 94@
goto_if_false @GARAG1_22625
if 
  not is_char_in_car 94@ {vehicle} 34@
goto_if_false @GARAG1_22600
if 
  117@ == 0
goto_if_false @GARAG1_22474
task_enter_car_as_passenger 94@ {vehicle} 34@ {time} -1 {seat} SeatId.RearRight
117@ = 1

:GARAG1_22474
if 
  117@ == 1
goto_if_false @GARAG1_22593
if 
  not locate_char_on_foot_char_3d 94@ {target} $scplayer {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_22593
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_20' {time} 5000 {flag} 1

:GARAG1_22593
goto @GARAG1_22625

:GARAG1_22600
if 
  117@ == 1
goto_if_false @GARAG1_22625
117@ = 0

:GARAG1_22625
if 
  102@ <> 1
goto_if_false @GARAG1_22866
if 
  not is_char_dead 95@
goto_if_false @GARAG1_22866
if 
  not is_char_in_car 95@ {vehicle} 34@
goto_if_false @GARAG1_22841
if 
  116@ == 0
goto_if_false @GARAG1_22715
task_enter_car_as_passenger 95@ {vehicle} 34@ {time} -1 {seat} SeatId.BikeRear
116@ = 1

:GARAG1_22715
if 
  116@ <> 1
goto_if_false @GARAG1_22834
if 
  not locate_char_on_foot_char_3d 95@ {target} $scplayer {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @GARAG1_22834
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_21' {time} 5000 {flag} 1

:GARAG1_22834
goto @GARAG1_22866

:GARAG1_22841
if 
  116@ == 1
goto_if_false @GARAG1_22866
116@ = 0

:GARAG1_22866
if 
  is_char_dead 93@
goto_if_false @GARAG1_22949
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_17' {time} 5000 {flag} 1
return 

:GARAG1_22949
if 
  101@ == 1
goto_if_false @GARAG1_23151
if 
  120@ == 1
goto_if_false @GARAG1_23151
if 
  is_car_dead 36@
goto_if_false @GARAG1_23068
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23068
if 
  is_char_dead 94@
goto_if_false @GARAG1_23151
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23151
if 
  102@ == 1
goto_if_false @GARAG1_23436
if 
  is_char_dead 94@
goto_if_false @GARAG1_23252
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23252
if 
  120@ == 1
goto_if_false @GARAG1_23436
if 
  is_char_dead 95@
goto_if_false @GARAG1_23353
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_15' {time} 5000 {flag} 1
return 

:GARAG1_23353
if 
  is_car_dead 35@
goto_if_false @GARAG1_23436
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_15' {time} 5000 {flag} 1
return 

:GARAG1_23436
if 
  103@ == 1
goto_if_false @GARAG1_23815
if 
  is_char_dead 94@
goto_if_false @GARAG1_23537
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23537
if 
  120@ == 1
goto_if_false @GARAG1_23815
if 
  is_char_dead 96@
goto_if_false @GARAG1_23638
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23638
if 
  not is_char_dead 96@
goto_if_false @GARAG1_23815
if 
  has_char_been_damaged_by_char 96@ {handle} $scplayer
goto_if_false @GARAG1_23728
if 
  not is_char_in_any_car 96@
goto_if_false @GARAG1_23696
set_char_collision 96@ {state} True

:GARAG1_23696
set_char_health 96@ {health} 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23728
if 
  does_object_exist 41@
goto_if_false @GARAG1_23815
if 
  has_object_been_damaged 41@
goto_if_false @GARAG1_23815
if 
  not is_char_in_any_car 96@
goto_if_false @GARAG1_23783
set_char_collision 96@ {state} True

:GARAG1_23783
set_char_health 96@ {health} 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23815
if 
  107@ == 1
goto_if_false @GARAG1_23999
if 
  is_char_dead 94@
goto_if_false @GARAG1_23916
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_23916
if 
  is_char_dead 96@
goto_if_false @GARAG1_23999
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_16' {time} 5000 {flag} 1
return 

:GARAG1_23999
if or
  105@ == 1
  106@ == 1
goto_if_false @GARAG1_24107
if 
  is_char_dead 94@
goto_if_false @GARAG1_24107
107@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
110@ = 1
print_now 'GAR1_14' {time} 5000 {flag} 1
return 

:GARAG1_24107
return 

:GARAG1_24109
if 
  349@ == 0
goto_if_false @GARAG1_24149
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 136@(348@,106i)
349@ = 1

:GARAG1_24149
if 
  349@ == 1
goto_if_false @GARAG1_24239
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_24239
if 
  not is_char_dead 242@(348@,106i)
goto_if_false @GARAG1_24214
start_char_facial_talk 242@(348@,106i) {duration} 10000

:GARAG1_24214
play_mission_audio MissionAudioSlot.Slot1
print_now $garage1_text(348@,106s) {time} 10000 {flag} 1
349@ = 2

:GARAG1_24239
if 
  349@ == 2
goto_if_false @GARAG1_24338
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_24338
if 
  not is_char_dead 242@(348@,106i)
goto_if_false @GARAG1_24301
stop_char_facial_talk 242@(348@,106i)

:GARAG1_24301
TIMERA = 0
349@ = 0
clear_this_print $garage1_text(348@,106s)
348@ += 1
114@ += 1

:GARAG1_24338
return 

:GARAG1_24340
load_mission_audio MissionAudioSlot.Slot1 {audioId} 136@(348@,106i)

:GARAG1_24351
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GARAG1_24377
wait 0
goto @GARAG1_24351

:GARAG1_24377
print_now $garage1_text(348@,106s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:GARAG1_24395
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GARAG1_24421
wait 0
goto @GARAG1_24395

:GARAG1_24421
clear_this_print $garage1_text(348@,106s)
348@ += 1
114@ += 1
return 

:GARAG1_24446
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'GAR_1'
player_made_progress 1
set_int_stat StatId.PassedGarage1 {value} 1
start_new_script @SCRASH 
$flag_garage_mission_counter += 1
return 

:GARAG1_24512
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:GARAG1_24530
camera_reset_new_scriptables 
disable_all_entry_exits False
if 
  is_player_playing $player1
goto_if_false @GARAG1_24559
shut_char_up_for_scripted_speech $scplayer {state} False

:GARAG1_24559
switch_random_trains True
clear_help 
134@ = 0

:GARAG1_24572
if 
  5 > 134@
goto_if_false @GARAG1_24613
remove_blip 122@(134@,5i)
134@ += 1
goto @GARAG1_24572

:GARAG1_24613
remove_animation "PARK"
remove_animation "CAR"
remove_animation "CRIB"
remove_animation "GANGS"
remove_animation "CAR_CHAT"
remove_animation "SMOKING"
remove_blip 127@
remove_blip 128@
remove_blip 129@
if 
  not is_car_dead 34@
goto_if_false @GARAG1_24707
set_car_health 34@ {health} 600

:GARAG1_24707
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 35@
delete_car 37@
remove_char_elegantly 93@
remove_char_elegantly 94@
remove_char_elegantly 95@
remove_char_elegantly 96@
remove_char_elegantly 97@
remove_char_elegantly 99@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
delete_object 41@
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 585
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 465
mark_model_as_no_longer_needed 525
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed #CIGAR
delete_object 42@
set_script_limit_to_gang_size 99
release_weather 
unload_special_character 1
unload_special_character 2
unload_special_character 3
unload_special_character 4
$timer_mobile_start = get_game_timer 
if 
  is_garage_open 'HBGDSFS'
goto_if_false @GARAG1_24890
close_garage 'HBGDSFS'

:GARAG1_24890
101@ = 0
102@ = 0
103@ = 0
104@ = 0
107@ = 0
105@ = 0
106@ = 0
114@ = 0
120@ = 0
121@ = 0
113@ = 0
109@ = 0
110@ = 0
112@ = 0
108@ = 0
111@ = 0
$flag_is_zero_on_bike = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
stop_fx_system 350@
$onmission = 0
mission_has_finished 
return 

//-------------Mission 50---------------
// Originally: Deconstruction

:DECON
script_name 'DECON'
gosub @DECON_47
if 
  has_deatharrest_been_executed 
goto_if_false @DECON_38
gosub @DECON_20868

:DECON_38
gosub @DECON_21143
terminate_this_script 

:DECON_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0

:DECON_133
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @DECON_159
36@ = 1

:DECON_159
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @DECON_181
37@ = 1

:DECON_181
39@ += 1
if 
  39@ > 9
goto_if_false @DECON_213
39@ = 0

:DECON_213
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 66@ += 42@
add_int_lvar_to_int_lvar 172@ += 42@
add_int_lvar_to_int_lvar 173@ += 42@
if 
  69@ == 1
goto_if_false @DECON_299
goto @DECON_460

:DECON_299
gosub @DECON_562
switch_start 34@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DECON_453 {caseNum1} 0 {caseLabel1} @DECON_369 {caseNum2} 1 {caseLabel2} @DECON_383 {caseNum3} 2 {caseLabel3} @DECON_397 {caseNum4} 3 {caseLabel4} @DECON_411 {caseNum5} 4 {caseLabel5} @DECON_425 {caseNum6} 5 {caseLabel6} @DECON_439 {caseNum7} -1 {caseLabel7} @DECON_453

:DECON_369
gosub @DECON_1610
goto @DECON_453

:DECON_383
gosub @DECON_2071
goto @DECON_453

:DECON_397
gosub @DECON_5645
goto @DECON_453

:DECON_411
gosub @DECON_6771
goto @DECON_453

:DECON_425
gosub @DECON_9690
goto @DECON_453

:DECON_439
gosub @DECON_12345
goto @DECON_453

:DECON_453
gosub @DECON_13612

:DECON_460
if 
  38@ == 0
goto_if_false @DECON_560
if 
  37@ == 0
goto_if_false @DECON_544
if 
  36@ == 0
goto_if_false @DECON_528
goto @DECON_133
goto @DECON_537

:DECON_528
gosub @DECON_21008
return 

:DECON_537
goto @DECON_553

:DECON_544
gosub @DECON_20868
return 

:DECON_553
goto @DECON_562

:DECON_560
return 

:DECON_562
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @DECON_653
if 
  67@ == 0
goto_if_false @DECON_627
67@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @DECON_653

:DECON_627
67@ = 0
write_debug "LEVEL_DEBUG_OFF"

:DECON_653
if 
  67@ == 1
goto_if_false @DECON_1608
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @DECON_720
68@ += 1
if 
  68@ > 4
goto_if_false @DECON_718
68@ = 0

:DECON_718
clear_all_view_variables 

:DECON_720
if 
  68@ == 1
goto_if_false @DECON_939
43@ = 0

:DECON_745
if 
  6 > 43@
goto_if_false @DECON_813
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_799
get_object_health $init_portakabin(43@,6i) {var_health} $DECON_view_debug(43@,8i)

:DECON_799
43@ += 1
goto @DECON_745

:DECON_813
view_integer_variable $DECON_view_debug[0] {_p2} "CABIN_0_HEALTH"
view_integer_variable $DECON_view_debug[1] {_p2} "CABIN_1_HEALTH"
view_integer_variable $DECON_view_debug[2] {_p2} "CABIN_2_HEALTH"
view_integer_variable $DECON_view_debug[3] {_p2} "CABIN_3_HEALTH"
view_integer_variable $DECON_view_debug[4] {_p2} "CABIN_4_HEALTH"
view_integer_variable $DECON_view_debug[5] {_p2} "CABIN_5_HEALTH"

:DECON_939
if 
  68@ == 2
goto_if_false @DECON_1149
set_var_int_to_lvar_int $DECON_view_debug[0] = 34@
set_var_int_to_lvar_int $DECON_view_debug[1] = 35@
set_var_int_to_lvar_int $DECON_view_debug[2] = 63@
set_var_int_to_lvar_int $DECON_view_debug[3] = 65@
set_var_int_to_lvar_int $DECON_view_debug[4] = 64@
set_var_int_to_lvar_int $DECON_view_debug[5] = 66@
set_var_int_to_lvar_int $DECON_view_debug[6] = TIMERA
set_var_int_to_lvar_int $DECON_view_debug[7] = TIMERB
view_integer_variable $DECON_view_debug[0] {_p2} "M_STAGE"
view_integer_variable $DECON_view_debug[1] {_p2} "M_GOALS"
view_integer_variable $DECON_view_debug[2] {_p2} "DIALOGUE_FLAG"
view_integer_variable $DECON_view_debug[3] {_p2} "DIALOGUE_TIMER"
view_integer_variable $DECON_view_debug[4] {_p2} "HELP_FLAG"
view_integer_variable $DECON_view_debug[5] {_p2} "HELP_TIMER"
view_integer_variable $DECON_view_debug[6] {_p2} "TIMERA"
view_integer_variable $DECON_view_debug[7] {_p2} "TIMERB"

:DECON_1149
if 
  68@ == 3
goto_if_false @DECON_1447
set_var_int_to_lvar_int $DECON_view_debug[0] = 159@
set_var_int_to_lvar_int $DECON_view_debug[1] = 153@
set_var_int_to_lvar_int $DECON_view_debug[2] = 160@
set_var_int_to_lvar_int $DECON_view_debug[3] = 154@
set_var_int_to_lvar_int $DECON_view_debug[4] = 161@
set_var_int_to_lvar_int $DECON_view_debug[5] = 155@
set_var_int_to_lvar_int $DECON_view_debug[6] = 162@
set_var_int_to_lvar_int $DECON_view_debug[7] = 156@
view_integer_variable $DECON_view_debug[0] {_p2} "CABIN_THIS_HEALTH[0]"
view_integer_variable $DECON_view_debug[1] {_p2} "CABIN_LAST_HEALTH[0]"
view_integer_variable $DECON_view_debug[2] {_p2} "CABIN_THIS_HEALTH[1]"
view_integer_variable $DECON_view_debug[3] {_p2} "CABIN_LAST_HEALTH[1]"
view_integer_variable $DECON_view_debug[4] {_p2} "CABIN_THIS_HEALTH[2]"
view_integer_variable $DECON_view_debug[5] {_p2} "CABIN_LAST_HEALTH[2]"
view_integer_variable $DECON_view_debug[6] {_p2} "CABIN_THIS_HEALTH[3]"
view_integer_variable $DECON_view_debug[7] {_p2} "CABIN_LAST_HEALTH[3]"

:DECON_1447
if 
  68@ == 4
goto_if_false @DECON_1498
set_var_int_to_var_int $DECON_view_debug[0] = $player_is_in_crane
view_integer_variable $DECON_view_debug[0] {_p2} "PLAYER_IS_IN_CRANE"

:DECON_1498
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @DECON_1520
38@ = 1

:DECON_1520
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @DECON_1608
if 
  69@ == 0
goto_if_false @DECON_1583
69@ = 1
write_debug "LEVEL_PAUSED"
goto @DECON_1608

:DECON_1583
69@ = 0
write_debug "LEVEL_UNPAUSED"

:DECON_1608
return 

:DECON_1610
if 
  35@ == -1
goto_if_false @DECON_1806
91@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
90@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
104@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
185@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
116@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
126@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
127@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
124@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:DECON_1806
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DECON_1828
if 
  get_fading_status 
goto_if_false @DECON_1852
wait 0
goto @DECON_1828

:DECON_1852
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
gosub @DECON_20810
return 

:DECON_2071
clear_help 
if 
  35@ == 0
goto_if_false @DECON_2255
load_mission_text 'GARAGE2'
load_cutscene 'GARAG3A'

:DECON_2113
if 
  not has_cutscene_loaded 
goto_if_false @DECON_2137
wait 0
goto @DECON_2113

:DECON_2137
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
start_cutscene 
do_fade 1000 {direction} Fade.In

:DECON_2174
if 
  not has_cutscene_finished 
goto_if_false @DECON_2198
wait 0
goto @DECON_2174

:DECON_2198
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DECON_2213
if 
  get_fading_status 
goto_if_false @DECON_2237
wait 0
goto @DECON_2213

:DECON_2237
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
35@ += 1

:DECON_2255
if 
  35@ == 1
goto_if_false @DECON_4356
request_model #PORTALOO
request_model #PORTAKABIN
request_model #BARREL4
request_model 486
request_model 524
request_model 406
request_model 422
request_model 27
request_model 337
request_model 346
request_model 16
load_all_models_now 

:DECON_2327
if or
  not has_model_loaded #PORTALOO
  not has_model_loaded #PORTAKABIN
  not has_model_loaded #BARREL4
  not has_model_loaded 486
  not has_model_loaded 524
  not has_model_loaded 16
goto_if_false @DECON_2377
wait 0
goto @DECON_2327

:DECON_2377
if or
  not has_model_loaded 406
  not has_model_loaded 422
  not has_model_loaded 27
  not has_model_loaded 337
  not has_model_loaded 346
goto_if_false @DECON_2423
wait 0
goto @DECON_2377

:DECON_2423
swap_nearest_building_model -2049.1709 {y} 250.3193 {z} 34.477 {radius} 20.0 {fromModelId} #HUBHOLE1_SFSE {toModelId} #HUBHOLE2_SFSE
43@ = 0

:DECON_2458
if 
  6 > 43@
goto_if_false @DECON_2603
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_2505
delete_object $init_portakabin(43@,6i)

:DECON_2505
create_object #PORTAKABIN {x} $init_portakabin_x(43@,6f) {y} $init_portakabin_y(43@,6f) {z} $init_portakabin_z(43@,6f) {var_handle} $init_portakabin(43@,6i)
set_object_heading $init_portakabin(43@,6i) {heading} $init_portakabin_h(43@,6f)
set_object_dynamic $init_portakabin(43@,6i) {state} False
dont_remove_object $init_portakabin(43@,6i)
add_blip_for_object $init_portakabin(43@,6i) {var_handle} 118@(43@,6i)
43@ += 1
goto @DECON_2458

:DECON_2603
70@ = create_object_no_offset #PORTALOO {x} -2087.8611 {y} 178.2922 {z} 35.3947
set_object_heading 70@ {heading} 3.3302
71@ = create_object_no_offset #PORTALOO {x} -2114.9031 {y} 156.9329 {z} 35.4667
set_object_heading 71@ {heading} 271.6719
72@ = create_object_no_offset #PORTALOO {x} -2116.425 {y} 157.4618 {z} 35.7225
set_object_heading 72@ {heading} 269.1095
73@ = create_object_no_offset #PORTALOO {x} -2054.4741 {y} 222.6438 {z} 35.8767
set_object_heading 73@ {heading} 0.0
freeze_object_position 73@ {state} True
74@ = create_object_no_offset #PORTALOO {x} -2069.262 {y} 285.8519 {z} 35.8543
set_object_heading 74@ {heading} 51.0305
75@ = create_object_no_offset #PORTALOO {x} -2134.873 {y} 293.1065 {z} 35.4117
set_object_heading 75@ {heading} 175.9489
76@ = create_object_no_offset #BARREL4 {x} -2109.397 {y} 157.8976 {z} 34.4311
77@ = create_object_no_offset #BARREL4 {x} -2108.4929 {y} 157.8779 {z} 34.4523
78@ = create_object_no_offset #BARREL4 {x} -2091.6831 {y} 172.1051 {z} 34.443
79@ = create_object_no_offset #BARREL4 {x} -2128.95 {y} 303.401 {z} 33.888
80@ = create_object_no_offset #BARREL4 {x} -2129.9231 {y} 303.447 {z} 33.8842
43@ = 0

:DECON_2930
if 
  5 > 43@
goto_if_false @DECON_2973
make_object_targettable 76@(43@,5i) {state} True
43@ += 1
goto @DECON_2930

:DECON_2973
if 
  does_object_exist $sf_crane1_trolley
goto_if_false @DECON_2999
set_rope_height_for_object $sf_crane1_trolley {height} 0.3

:DECON_2999
if 
  does_object_exist $sf_crane1_arm
goto_if_false @DECON_3120
set_object_heading $sf_crane1_arm {heading} 78.0
if 
  does_object_exist $sf_crane1_arm_LOD
goto_if_false @DECON_3051
set_object_heading $sf_crane1_arm_LOD {heading} 78.0

:DECON_3051
if 
  does_object_exist $sf_crane1_trolley
goto_if_false @DECON_3120
$x, $y, $z = get_offset_from_object_in_world_coords $sf_crane1_arm {xOffset} 0.0 {yOffset} 15.0 {zOffset} 3.453
set_object_coordinates_and_velocity $sf_crane1_trolley {x} $x {y} $y {z} $z
set_object_heading $sf_crane1_trolley {heading} 78.0

:DECON_3120
83@ = create_car 486 {x} -2098.7261 {y} 278.5271 {z} 34.8743
set_car_heading 83@ {heading} 15.4537
set_car_health 83@ {health} 5000
set_can_burst_car_tyres 83@ {state} False
84@ = create_car 486 {x} -2088.802 {y} 188.5362 {z} 34.0469
set_car_heading 84@ {heading} 182.8425
set_car_health 84@ {health} 5000
set_can_burst_car_tyres 84@ {state} False
request_car_recording 551

:DECON_3221
if 
  not has_car_recording_been_loaded 551
goto_if_false @DECON_3248
wait 0
goto @DECON_3221

:DECON_3248
if 
  not is_car_dead 83@
goto_if_false @DECON_3272
start_playback_recorded_car_looped 83@ {pathId} 551

:DECON_3272
85@ = create_car 524 {x} -2112.603 {y} 193.7894 {z} 33.6684
set_car_heading 85@ {heading} 276.2221
86@ = create_car 422 {x} -2102.4609 {y} 160.2542 {z} 34.8444
set_car_heading 86@ {heading} 66.4396
87@ = create_car 422 {x} -2121.6689 {y} 302.741 {z} 34.459
set_car_heading 87@ {heading} 160.6221
set_lvar_int_to_lvar_int 91@ = 83@
set_lvar_int_to_lvar_int 92@ = 84@
set_lvar_int_to_lvar_int 93@ = 85@
set_lvar_int_to_lvar_int 95@ = 86@
set_lvar_int_to_lvar_int 96@ = 87@
43@ = 0

:DECON_3418
if 
  6 > 43@
goto_if_false @DECON_3481
if 
  not is_car_dead 91@(43@,7i)
goto_if_false @DECON_3467
set_car_straight_line_distance 91@(43@,7i) {distance} 50

:DECON_3467
43@ += 1
goto @DECON_3418

:DECON_3481
174@ = load_char_decision_maker DecisionMakerType.Tough
98@ = create_char PedType.Mission1 {modelId} 27 {x} -2098.7581 {y} 168.5889 {z} 34.0869
99@ = create_char PedType.Mission1 {modelId} 27 {x} -2099.9741 {y} 169.3999 {z} 34.0947
100@ = create_char PedType.Mission1 {modelId} 27 {x} -2090.9551 {y} 265.4674 {z} 34.6686
101@ = create_char PedType.Mission1 {modelId} 27 {x} -2089.761 {y} 264.5739 {z} 34.6557
102@ = create_char PedType.Mission1 {modelId} 27 {x} -2085.7529 {y} 269.4974 {z} 34.5456
103@ = create_char PedType.Mission1 {modelId} 27 {x} -2125.748 {y} 303.8916 {z} 33.5532
set_char_heading 98@ {heading} 47.9799
set_char_heading 99@ {heading} 229.2811
set_char_heading 100@ {heading} 229.2811
set_char_heading 101@ {heading} 51.1609
set_char_heading 102@ {heading} 177.1601
set_char_heading 103@ {heading} 177.1601
give_weapon_to_char 102@ {weaponType} WeaponType.Shovel {ammo} 9999
give_weapon_to_char 103@ {weaponType} WeaponType.Shovel {ammo} 9999
43@ = 0

:DECON_3719
if 
  6 > 43@
goto_if_false @DECON_3801
set_char_decision_maker 98@(43@,6i) {handleOrTemplate} 174@
set_char_only_damaged_by_player 98@(43@,6i) {state} True
set_char_health 98@(43@,6i) {health} 50
set_lvar_int_to_lvar_int 104@(43@,10i) = 98@(43@,6i)
43@ += 1
goto @DECON_3719

:DECON_3801
task_chat_with_char 98@ {other} 99@ {leadSpeaker} True {_p4} 1
task_chat_with_char 99@ {other} 98@ {leadSpeaker} False {_p4} 1
task_chat_with_char 100@ {other} 101@ {leadSpeaker} True {_p4} 1
task_chat_with_char 101@ {other} 100@ {leadSpeaker} False {_p4} 1
if 
  not is_car_dead 83@
goto_if_false @DECON_3907
115@ = create_char_inside_car 83@ {pedType} PedType.Mission1 {modelId} 27
set_char_decision_maker 115@ {handleOrTemplate} 174@
set_char_only_damaged_by_player 115@ {state} True
set_char_health 115@ {health} 50
set_lvar_int_to_lvar_int 110@ = 115@

:DECON_3907
117@ = create_char PedType.Mission1 {modelId} 16 {x} -2089.709 {y} 266.1128 {z} 34.6455
set_char_heading 117@ {heading} 170.2217
set_char_health 117@ {health} 40
175@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 117@ {handleOrTemplate} 175@
set_lvar_int_to_lvar_int 111@ = 117@
clear_area -2036.1801 {y} 179.2597 {z} 27.8359 {radius} 5.0 {clearParticles} True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_wanted_level $player1
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position -2010.4611 {y} 171.3564 {z} 41.8495 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2011.302 {y} 171.8702 {z} 41.6786 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -2030.9871 {y} 148.5787 {z} 27.8359
set_char_heading $scplayer {heading} 359.4339
50@ = -2011.302
50@ += 2010.4611
51@ = 171.8702
51@ -= 171.3564
52@ = 41.6786
52@ -= 41.8495
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2010.4611
add_float_lvar_to_float_var $x += 50@
$y = 171.3564
add_float_lvar_to_float_var $y += 51@
$z = 41.8495
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
load_all_models_now 
do_fade 1000 {direction} Fade.In

:DECON_4302
if 
  get_fading_status 
goto_if_false @DECON_4326
wait 0
goto @DECON_4302

:DECON_4326
print_now 'GAR2_01' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DECON_4356
if 
  35@ == 2
goto_if_false @DECON_4843
if 
  TIMERA > 5000
goto_if_false @DECON_4843
set_fixed_camera_position -2076.394 {y} 263.7876 {z} 35.7185 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2077.2871 {y} 264.2365 {z} 35.6941 {switchStyle} SwitchType.JumpCut
50@ = -2077.2871
50@ += 2076.394
51@ = 264.2365
51@ -= 263.7876
52@ = 35.6941
52@ -= 35.7185
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2076.394
add_float_lvar_to_float_var $x += 50@
$y = 263.7876
add_float_lvar_to_float_var $y += 51@
$z = 35.7185
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
load_all_models_now 
if 
  not is_char_dead 102@
goto_if_false @DECON_4721
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 102@ {sequence} 49@
clear_sequence_task 49@

:DECON_4721
if 
  not is_char_dead 117@
goto_if_false @DECON_4813
49@ = open_sequence_task 
task_scratch_head -1
task_look_about -1 {time} 5000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 117@ {sequence} 49@
clear_sequence_task 49@

:DECON_4813
print_now 'GAR2_02' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DECON_4843
if 
  35@ == 3
goto_if_false @DECON_5240
if 
  TIMERA > 5500
goto_if_false @DECON_5240
do_fade 150 {direction} Fade.Out

:DECON_4887
if 
  get_fading_status 
goto_if_false @DECON_4911
wait 0
goto @DECON_4887

:DECON_4911
if 
  not is_char_dead 102@
goto_if_false @DECON_4957
set_char_coordinates 102@ {x} -2098.833 {y} 191.043 {z} 34.2113
set_char_heading 102@ {heading} 150.0

:DECON_4957
set_fixed_camera_position -2084.9929 {y} 195.2235 {z} 39.2186 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2085.4661 {y} 194.3752 {z} 38.9801 {switchStyle} SwitchType.JumpCut
50@ = -2085.4661
50@ += 2084.9929
51@ = 194.3752
51@ -= 195.2235
52@ = 38.9801
52@ -= 39.2186
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
$x = -2084.9929
add_float_lvar_to_float_var $x += 50@
$y = 195.2235
add_float_lvar_to_float_var $y += 51@
$z = 39.2186
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
load_all_models_now 
do_fade 150 {direction} Fade.In

:DECON_5186
if 
  get_fading_status 
goto_if_false @DECON_5210
wait 0
goto @DECON_5186

:DECON_5210
print 'GAR2_05' {time} 5000 {flag} 1
35@ += 1
TIMERA = 0

:DECON_5240
if 
  35@ == 4
goto_if_false @DECON_5284
if 
  TIMERA > 5000
goto_if_false @DECON_5284
35@ = 99

:DECON_5284
if 
  35@ > 0
goto_if_false @DECON_5326
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DECON_5326
35@ = 99

:DECON_5326
if 
  35@ == 99
goto_if_false @DECON_5643
if 
  not is_char_dead 102@
goto_if_false @DECON_5475
set_char_coordinates 102@ {x} -2092.252 {y} 252.5526 {z} 34.4575
clear_char_tasks 102@
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 102@ {sequence} 49@
clear_sequence_task 49@

:DECON_5475
if 
  not is_char_dead 117@
goto_if_false @DECON_5567
49@ = open_sequence_task 
task_scratch_head -1
task_look_about -1 {time} 5000
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 117@ {sequence} 49@
clear_sequence_task 49@

:DECON_5567
if 
  does_object_exist $init_portakabin[3]
goto_if_false @DECON_5613
set_object_coordinates $init_portakabin[3] {x} -2077.04 {y} 280.395 {z} 35.817
set_object_heading $init_portakabin[3] {heading} 0.0

:DECON_5613
clear_prints 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 0 {direction} Fade.In
gosub @DECON_20810

:DECON_5643
return 

:DECON_5645
if 
  is_player_playing $player1
goto_if_false @DECON_5720
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2053.2261 {leftBottomY} 139.1389 {rightTopX} -2135.449 {rightTopY} 309.5472 {drawSphere} False
goto_if_false @DECON_5713
set_wanted_multiplier 0.0
goto @DECON_5720

:DECON_5713
set_wanted_multiplier 1.0

:DECON_5720
if 
  35@ == 0
goto_if_false @DECON_5843
if 
  TIMERA > 0
goto_if_false @DECON_5843
print_now 'GAR2_19' {time} 10000 {flag} 1
35@ += 1
TIMERB = 30000
63@ = 0
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 12601

:DECON_5817
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DECON_5843
wait 0
goto @DECON_5817

:DECON_5843
if 
  35@ == 1
goto_if_false @DECON_6161
if 
  TIMERB > 30000
goto_if_false @DECON_6129
if 
  does_object_exist 73@
goto_if_false @DECON_6129
if 
  is_char_touching_object $scplayer {object} 73@
goto_if_false @DECON_6129
if 
  $audio_line_is_active == 0
goto_if_false @DECON_6129
switch_start 63@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DECON_6090 {caseNum1} 0 {caseLabel1} @DECON_5996 {caseNum2} 1 {caseLabel2} @DECON_6043 {caseNum3} -1 {caseLabel3} @DECON_6090 {caseNum4} -1 {caseLabel4} @DECON_6090 {caseNum5} -1 {caseLabel5} @DECON_6090 {caseNum6} -1 {caseLabel6} @DECON_6090 {caseNum7} -1 {caseLabel7} @DECON_6090

:DECON_5996
set_var_text_label s$audio_string = 'GAR2_AK'
set_var_int_to_constant $audio_sound_file = 16609
start_new_script @AUDIOL -1 0 0 1 0 
goto @DECON_6090

:DECON_6043
set_var_text_label s$audio_string = 'GAR2_AF'
set_var_int_to_constant $audio_sound_file = 16605
start_new_script @AUDIOL -1 0 0 1 0 
goto @DECON_6090

:DECON_6090
63@ += 1
if 
  63@ > 1
goto_if_false @DECON_6122
63@ = 0

:DECON_6122
TIMERB = 0

:DECON_6129
if 
  140@ == 6
goto_if_false @DECON_6161
TIMERA = 0
35@ += 1

:DECON_6161
if 
  35@ == 2
goto_if_false @DECON_6205
if 
  TIMERA > 1000
goto_if_false @DECON_6205
35@ = 99

:DECON_6205
if and
  141@ == 1
  0 >= $portacabin_timer
  6 > 140@
goto_if_false @DECON_6325
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @DECON_6262
alter_wanted_level $player1 {wantedLevel} 2

:DECON_6262
create_emergency_services_car 597 {x} -2039.255 {y} 232.481 {z} 33.9528
create_emergency_services_car 597 {x} -2038.1851 {y} 254.2709 {z} 34.0893
37@ = 1
print_now 'GAR2_40' {time} 5000 {flag} 1

:DECON_6325
if 
  35@ == 99
goto_if_false @DECON_6359
clear_mission_audio MissionAudioSlot.Slot3
clear_onscreen_timer $portacabin_timer
gosub @DECON_20810

:DECON_6359
43@ = 0

:DECON_6366
if 
  6 > 43@
goto_if_false @DECON_6664
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_6650
if 
  has_object_been_damaged $init_portakabin(43@,6i)
goto_if_false @DECON_6650
if 
  128@(43@,6i) == 0
goto_if_false @DECON_6650
remove_blip 118@(43@,6i)
140@ += 1
128@(43@,6i) = 1
if 
  140@ == 1
goto_if_false @DECON_6507
print_now 'GAR2_29' {time} 7000 {flag} 1

:DECON_6507
if 
  140@ == 2
goto_if_false @DECON_6541
print_now 'GAR2_30' {time} 7000 {flag} 1

:DECON_6541
if 
  140@ == 3
goto_if_false @DECON_6575
print_now 'GAR2_31' {time} 7000 {flag} 1

:DECON_6575
if 
  140@ == 4
goto_if_false @DECON_6609
print_now 'GAR2_32' {time} 7000 {flag} 1

:DECON_6609
if 
  140@ == 5
goto_if_false @DECON_6643
print_now 'GAR2_33' {time} 7000 {flag} 1

:DECON_6643
TIMERA = 0

:DECON_6650
43@ += 1
goto @DECON_6366

:DECON_6664
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @DECON_6769
43@ = 0

:DECON_6686
if 
  6 > 43@
goto_if_false @DECON_6769
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_6755
if 
  not has_object_been_damaged $init_portakabin(43@,6i)
goto_if_false @DECON_6755
break_object $init_portakabin(43@,6i) {intensity} 0

:DECON_6755
43@ += 1
goto @DECON_6686

:DECON_6769
return 

:DECON_6771
clear_help 
if 
  35@ == 0
goto_if_false @DECON_8059
clear_prints 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:DECON_6815
if 
  get_fading_status 
goto_if_false @DECON_6839
wait 0
goto @DECON_6815

:DECON_6839
switch_widescreen True
62@ = get_area_visible 
set_area_visible 0
if 
  $player_is_in_crane <> 1
goto_if_false @DECON_6955
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2066.8391 {leftBottomY} 209.6444 {leftBottomZ} 28.403 {rightTopX} -2040.101 {rightTopY} 262.7024 {rightTopZ} 34.9146 {drawSphere} False
goto_if_false @DECON_6948
set_char_coordinates $scplayer {x} -2090.0439 {y} 209.4996 {z} 33.9509
set_char_heading $scplayer {heading} 250.813

:DECON_6948
goto @DECON_6962

:DECON_6955
$do_not_update_camera_crane1 = 1

:DECON_6962
load_mission_audio MissionAudioSlot.Slot3 {audioId} 12605

:DECON_6969
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DECON_6995
wait 0
goto @DECON_6969

:DECON_6995
clear_area -2054.4741 {y} 222.6438 {z} 35.8767 {radius} 3.0 {clearParticles} True
43@ = 0

:DECON_7026
if 
  10 > 43@
goto_if_false @DECON_7175
if 
  does_char_exist 104@(43@,10i)
goto_if_false @DECON_7161
if 
  not is_char_dead 104@(43@,10i)
goto_if_false @DECON_7152
if 
  locate_char_any_means_3d 104@(43@,10i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DECON_7145
delete_char 104@(43@,10i)

:DECON_7145
goto @DECON_7161

:DECON_7152
delete_char 104@(43@,10i)

:DECON_7161
43@ += 1
goto @DECON_7026

:DECON_7175
43@ = 0

:DECON_7182
if 
  7 > 43@
goto_if_false @DECON_7336
if 
  does_vehicle_exist 91@(43@,7i)
goto_if_false @DECON_7322
if 
  not is_car_dead 91@(43@,7i)
goto_if_false @DECON_7313
if 
  locate_car_3d 91@(43@,7i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} 91@(43@,7i)
goto_if_false @DECON_7306
delete_car 91@(43@,7i)

:DECON_7306
goto @DECON_7322

:DECON_7313
delete_car 91@(43@,7i)

:DECON_7322
43@ += 1
goto @DECON_7182

:DECON_7336
43@ = 0

:DECON_7343
if 
  6 > 43@
goto_if_false @DECON_7461
if 
  does_object_exist 70@(43@,6i)
goto_if_false @DECON_7447
if 
  locate_object_3d 70@(43@,6i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} 70@(43@,6i)
goto_if_false @DECON_7447
delete_object 70@(43@,6i)

:DECON_7447
43@ += 1
goto @DECON_7343

:DECON_7461
43@ = 0

:DECON_7468
if 
  5 > 43@
goto_if_false @DECON_7586
if 
  does_object_exist 76@(43@,5i)
goto_if_false @DECON_7572
if 
  locate_object_3d 76@(43@,5i) {x} -2054.4741 {y} 222.6438 {z} 35.8767 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} 76@(43@,5i)
goto_if_false @DECON_7572
delete_object 76@(43@,5i)

:DECON_7572
43@ += 1
goto @DECON_7468

:DECON_7586
if 
  does_object_exist $sf_crane1_trolley
goto_if_false @DECON_7612
set_rope_height_for_object $sf_crane1_trolley {height} 0.5

:DECON_7612
if 
  does_object_exist 73@
goto_if_false @DECON_7633
delete_object 73@

:DECON_7633
73@ = create_object_no_offset #PORTALOO {x} -2054.4741 {y} 222.6438 {z} 35.8767
set_object_heading 73@ {heading} 0.0
set_object_collision 73@ {state} False
set_fixed_camera_position -2058.05 {y} 218.8743 {z} 35.7489 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2057.4231 {y} 219.653 {z} 35.7245 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $init_portakabin[2]
goto_if_false @DECON_7745
delete_object $init_portakabin[2]

:DECON_7745
$init_portakabin[2] = create_object #PORTAKABIN {x} $init_portakabin_x[2] {y} $init_portakabin_y[2] {z} $init_portakabin_z[2]
set_object_heading $init_portakabin[2] {heading} $init_portakabin_h[2]
set_object_dynamic $init_portakabin[2] {state} False
dont_remove_object $init_portakabin[2]
114@ = create_char PedType.CivMale {modelId} 16 {x} -2054.4741 {y} 222.6438 {z} 34.8767
set_char_heading 114@ {heading} 90.0
89@ = create_car 524 {x} -2037.176 {y} 269.7917 {z} 34.9191
set_car_heading 89@ {heading} 179.5245
set_lvar_int_to_lvar_int 97@ = 89@
43@ = 0

:DECON_7863
if 
  10 > 43@
goto_if_false @DECON_8021
if 
  does_char_exist 104@(43@,10i)
goto_if_false @DECON_8007
if 
  not is_char_dead 104@(43@,10i)
goto_if_false @DECON_8007
if 
  not is_char_in_any_car 104@(43@,10i)
goto_if_false @DECON_7981
freeze_char_position 104@(43@,10i) {state} True
set_char_collision 104@(43@,10i) {state} False
set_char_visible 104@(43@,10i) {state} False
goto @DECON_8007

:DECON_7981
$car = store_car_char_is_in_no_save 104@(43@,10i)
freeze_car_position $car {state} True
set_car_visible $car {state} False

:DECON_8007
43@ += 1
goto @DECON_7863

:DECON_8021
do_fade 500 {direction} Fade.In

:DECON_8028
if 
  get_fading_status 
goto_if_false @DECON_8052
wait 0
goto @DECON_8028

:DECON_8052
35@ += 1

:DECON_8059
if 
  35@ > 0
goto_if_false @DECON_8101
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DECON_8101
35@ = 99

:DECON_8101
if 
  35@ == 1
goto_if_false @DECON_8160
if 
  does_object_exist 73@
goto_if_false @DECON_8146
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 73@
play_mission_audio MissionAudioSlot.Slot3

:DECON_8146
TIMERA = 0
35@ += 1

:DECON_8160
if 
  35@ == 2
goto_if_false @DECON_8227
if 
  TIMERA > 3000
goto_if_false @DECON_8227
if 
  does_object_exist $init_portakabin[2]
goto_if_false @DECON_8227
break_object $init_portakabin[2] {intensity} 0
35@ += 1

:DECON_8227
if 
  35@ == 3
goto_if_false @DECON_8458
if 
  TIMERA > 4000
goto_if_false @DECON_8458
if 
  not is_char_dead 114@
goto_if_false @DECON_8458
set_fixed_camera_position -2051.7209 {y} 225.4406 {z} 36.5865 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.561 {y} 224.9327 {z} 36.3922 {switchStyle} SwitchType.JumpCut
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2057.137 {y} 223.541 {z} 34.582 {speed} MoveState.Walk {time} 5000
if 
  does_object_exist $init_portakabin[2]
goto_if_false @DECON_8385
task_look_at_object -1 {object} $init_portakabin[2] {time} 100

:DECON_8385
close_sequence_task 49@
perform_sequence_task 114@ {sequence} 49@
clear_sequence_task 49@
set_var_text_label s$audio_string = 'GAR2_AA'
set_var_int_to_constant $audio_sound_file = 16600
start_new_script @AUDIOL 114@ 0 1 1 0 
35@ += 1
TIMERA = 0

:DECON_8458
if 
  35@ == 4
goto_if_false @DECON_8509
if and
  TIMERA > 3000
  $audio_line_is_active == 0
goto_if_false @DECON_8509
35@ += 1

:DECON_8509
if 
  35@ == 5
goto_if_false @DECON_8690
if 
  not is_char_dead 114@
goto_if_false @DECON_8690
43@ = get_script_task_status 114@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_8690
set_char_coordinates 114@ {x} -2057.137 {y} 223.541 {z} 34.582
set_char_heading 114@ {heading} 97.4598
set_fixed_camera_position -2056.0559 {y} 222.2135 {z} 36.2036 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2056.939 {y} 222.6817 {z} 36.1606 {switchStyle} SwitchType.JumpCut
task_look_at_coord 114@ {x} -2069.0 {y} 229.0 {z} 36.0 {time} 2000
TIMERA = 0
35@ += 1

:DECON_8690
if 
  35@ == 6
goto_if_false @DECON_8792
if 
  TIMERA > 2000
goto_if_false @DECON_8792
TIMERA = 0
set_fixed_camera_position -2051.7209 {y} 225.4406 {z} 36.5865 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.561 {y} 224.9327 {z} 36.3922 {switchStyle} SwitchType.JumpCut
35@ += 1

:DECON_8792
if 
  35@ == 7
goto_if_false @DECON_8906
if 
  not is_char_dead 114@
goto_if_false @DECON_8906
set_var_text_label s$audio_string = 'GAR2_AB'
set_var_int_to_constant $audio_sound_file = 16601
start_new_script @AUDIOL 114@ 0 1 1 0 
task_go_straight_to_coord 114@ {x} -2054.4741 {y} 222.6438 {z} 35.8767 {speed} MoveState.Run {time} 5000
TIMERA = 0
35@ += 1

:DECON_8906
if 
  35@ == 8
goto_if_false @DECON_8950
if 
  TIMERA > 1500
goto_if_false @DECON_8950
35@ += 1

:DECON_8950
if 
  35@ == 9
goto_if_false @DECON_9032
if 
  not is_char_dead 114@
goto_if_false @DECON_9032
43@ = get_script_task_status 114@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_9032
delete_char 114@
TIMERA = 0
35@ += 1

:DECON_9032
if 
  35@ == 10
goto_if_false @DECON_9145
if 
  TIMERA > 2000
goto_if_false @DECON_9145
clear_prints 
set_fixed_camera_position -2037.439 {y} 244.0506 {z} 43.8289 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2038.147 {y} 244.4092 {z} 43.2209 {switchStyle} SwitchType.JumpCut
print 'GAR2_11' {time} 5000 {flag} 1
35@ += 1

:DECON_9145
if 
  35@ == 11
goto_if_false @DECON_9189
if 
  TIMERA > 5000
goto_if_false @DECON_9189
35@ += 1

:DECON_9189
if 
  35@ == 12
goto_if_false @DECON_9290
clear_prints 
set_fixed_camera_position -2031.781 {y} 262.1947 {z} 36.3181 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2032.476 {y} 262.9132 {z} 36.3398 {switchStyle} SwitchType.JumpCut
print 'GAR2_12' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DECON_9290
if 
  35@ == 13
goto_if_false @DECON_9334
if 
  TIMERA > 5000
goto_if_false @DECON_9334
35@ = 99

:DECON_9334
if 
  35@ == 99
goto_if_false @DECON_9688
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  does_object_exist 73@
goto_if_false @DECON_9391
set_object_collision 73@ {state} True

:DECON_9391
clear_prints 
if 
  $player_is_in_crane == 0
goto_if_false @DECON_9425
set_player_control $player1 {state} True
goto @DECON_9432

:DECON_9425
$do_not_update_camera_crane1 = 0

:DECON_9432
set_area_visible 62@
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
if 
  does_object_exist $init_portakabin[2]
goto_if_false @DECON_9466
delete_object $init_portakabin[2]

:DECON_9466
if 
  does_char_exist 114@
goto_if_false @DECON_9487
delete_char 114@

:DECON_9487
43@ = 0

:DECON_9494
if 
  10 > 43@
goto_if_false @DECON_9652
if 
  does_char_exist 104@(43@,10i)
goto_if_false @DECON_9638
if 
  not is_char_dead 104@(43@,10i)
goto_if_false @DECON_9638
if 
  not is_char_in_any_car 104@(43@,10i)
goto_if_false @DECON_9612
freeze_char_position 104@(43@,10i) {state} False
set_char_collision 104@(43@,10i) {state} True
set_char_visible 104@(43@,10i) {state} True
goto @DECON_9638

:DECON_9612
$car = store_car_char_is_in_no_save 104@(43@,10i)
freeze_car_position $car {state} False
set_car_visible $car {state} True

:DECON_9638
43@ += 1
goto @DECON_9494

:DECON_9652
if 
  $player_is_in_crane == 1
goto_if_false @DECON_9677
$reset_crane_camera = 1

:DECON_9677
clear_mission_audio MissionAudioSlot.Slot3
gosub @DECON_20810

:DECON_9688
return 

:DECON_9690
if 
  is_player_playing $player1
goto_if_false @DECON_9765
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2053.2261 {leftBottomY} 139.1389 {rightTopX} -2135.449 {rightTopY} 309.5472 {drawSphere} False
goto_if_false @DECON_9758
set_wanted_multiplier 0.0
goto @DECON_9765

:DECON_9758
set_wanted_multiplier 1.0

:DECON_9765
if 
  35@ == 0
goto_if_false @DECON_9909
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  does_object_exist 73@
goto_if_false @DECON_9830
125@ = add_blip_for_object 73@
change_blip_colour 125@ {color} BlipColor.Red

:DECON_9830
124@ = add_blip_for_coord -2048.644 {y} 250.1341 {z} 35.54
print 'GAR2_10' {time} 7000 {flag} 1
TIMERA = 0
63@ = 0
65@ = 4000
173@ = 0
168@ = -1
35@ += 1

:DECON_9909
if 
  35@ == 1
goto_if_false @DECON_10840
if 
  65@ > 5000
goto_if_false @DECON_10509
if 
  not is_message_being_displayed 
goto_if_false @DECON_10509
if 
  does_object_exist 73@
goto_if_false @DECON_10509
46@ = get_object_speed 73@
if or
  46@ > 2.0
  is_char_touching_object $scplayer {object} 73@
goto_if_false @DECON_10509
if 
  $audio_line_is_active == 0
goto_if_false @DECON_10509
switch_start 63@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @DECON_10448 {caseNum1} 0 {caseLabel1} @DECON_10158 {caseNum2} 1 {caseLabel2} @DECON_10187 {caseNum3} 2 {caseLabel3} @DECON_10216 {caseNum4} 3 {caseLabel4} @DECON_10245 {caseNum5} 4 {caseLabel5} @DECON_10274 {caseNum6} 5 {caseLabel6} @DECON_10303 {caseNum7} 6 {caseLabel7} @DECON_10332
switch_continued 7 {caseLabel1} @DECON_10361 {caseNum2} 8 {caseLabel2} @DECON_10390 {caseNum3} 9 {caseLabel3} @DECON_10419 {caseNum4} -1 {caseLabel4} @DECON_10448 {caseNum5} -1 {caseLabel5} @DECON_10448 {caseNum6} -1 {caseLabel6} @DECON_10448 {caseNum7} -1 {caseLabel7} @DECON_10448 {caseNum8} -1 {caseLabel8} @DECON_10448 {caseNum9} -1 {caseLabel9} @DECON_10448

:DECON_10158
set_var_text_label s$audio_string = 'GAR2_AC'
set_var_int_to_constant $audio_sound_file = 16602
goto @DECON_10448

:DECON_10187
set_var_text_label s$audio_string = 'GAR2_AD'
set_var_int_to_constant $audio_sound_file = 16603
goto @DECON_10448

:DECON_10216
set_var_text_label s$audio_string = 'GAR2_AE'
set_var_int_to_constant $audio_sound_file = 16604
goto @DECON_10448

:DECON_10245
set_var_text_label s$audio_string = 'GAR2_AF'
set_var_int_to_constant $audio_sound_file = 16605
goto @DECON_10448

:DECON_10274
set_var_text_label s$audio_string = 'GAR2_AG'
set_var_int_to_constant $audio_sound_file = 16606
goto @DECON_10448

:DECON_10303
set_var_text_label s$audio_string = 'GAR2_AH'
set_var_int_to_constant $audio_sound_file = 16607
goto @DECON_10448

:DECON_10332
set_var_text_label s$audio_string = 'GAR2_AJ'
set_var_int_to_constant $audio_sound_file = 16608
goto @DECON_10448

:DECON_10361
set_var_text_label s$audio_string = 'GAR2_AK'
set_var_int_to_constant $audio_sound_file = 16609
goto @DECON_10448

:DECON_10390
set_var_text_label s$audio_string = 'GAR2_AL'
set_var_int_to_constant $audio_sound_file = 16610
goto @DECON_10448

:DECON_10419
set_var_text_label s$audio_string = 'GAR2_AM'
set_var_int_to_constant $audio_sound_file = 16611
goto @DECON_10448

:DECON_10448
start_new_script @AUDIOL -1 0 0 1 0 
63@ += 1
if 
  63@ > 7
goto_if_false @DECON_10498
63@ = 0

:DECON_10498
65@ = 0
wait 1

:DECON_10509
if and
  173@ > 150000
  151000 > 173@
goto_if_false @DECON_10575
clear_prints 
print_now 'GAR2_34' {time} 7000 {flag} 1
173@ = 151001
65@ = 0

:DECON_10575
if 
  173@ > 200000
goto_if_false @DECON_10684
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @DECON_10621
alter_wanted_level $player1 {wantedLevel} 2

:DECON_10621
create_emergency_services_car 597 {x} -2039.255 {y} 232.481 {z} 33.9528
create_emergency_services_car 597 {x} -2038.1851 {y} 254.2709 {z} 34.0893
37@ = 1
print_now 'GAR2_35' {time} 5000 {flag} 1

:DECON_10684
if 
  does_object_exist 73@
goto_if_false @DECON_10833
if 
  locate_object_3d 73@ {x} -2048.886 {y} 250.6607 {z} 32.5177 {xRadius} 2.898 {yRadius} 5.05 {zRadius} 2.0 {drawSphere} False
goto_if_false @DECON_10833
if and
  not is_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @DECON_10833
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'GAR2_36' {time} 7000 {flag} 1
remove_blip 124@
remove_blip 125@
35@ += 1
TIMERA = 0
TIMERB = 0

:DECON_10833
gosub @DECON_11793

:DECON_10840
if and
  35@ > 1
  4 > 35@
goto_if_false @DECON_11117
if 
  is_char_in_any_car $scplayer
goto_if_false @DECON_11078
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_model $car {modelId} 524
goto_if_false @DECON_11039
if 
  168@ <> 1
goto_if_false @DECON_11032
print_now 'GAR2_37' {time} 7000 {flag} 1
if 
  does_blip_exist 126@
goto_if_false @DECON_10963
remove_blip 126@

:DECON_10963
if 
  does_blip_exist 127@
goto_if_false @DECON_10984
remove_blip 127@

:DECON_10984
if 
  does_blip_exist 124@
goto_if_false @DECON_11005
remove_blip 124@

:DECON_11005
124@ = add_blip_for_coord -2049.707 {y} 240.5694 {z} 34.762
168@ = 1

:DECON_11032
goto @DECON_11071

:DECON_11039
if 
  168@ <> 0
goto_if_false @DECON_11071
gosub @DECON_11644
168@ = 0

:DECON_11071
goto @DECON_11110

:DECON_11078
if 
  168@ <> 0
goto_if_false @DECON_11110
gosub @DECON_11644
168@ = 0

:DECON_11110
gosub @DECON_11793

:DECON_11117
if 
  35@ == 2
goto_if_false @DECON_11263
TIMERA = 0
TIMERB = 0
35@ += 1
if 
  165@ == 0
goto_if_false @DECON_11263
if 
  does_object_exist 73@
goto_if_false @DECON_11263
if 
  not is_object_on_screen 73@
goto_if_false @DECON_11263
set_object_coordinates 73@ {x} -2048.957 {y} 250.2059 {z} 32.6542
set_object_heading 73@ {heading} 158.56
set_object_rotation 73@ {x} -170.1394 {y} -88.8094 {z} -21.44
165@ = 1

:DECON_11263
if 
  35@ == 3
goto_if_false @DECON_11617
if 
  165@ == 0
goto_if_false @DECON_11388
if 
  does_object_exist 73@
goto_if_false @DECON_11388
if 
  not is_object_on_screen 73@
goto_if_false @DECON_11388
set_object_coordinates 73@ {x} -2048.957 {y} 250.2059 {z} 32.6542
set_object_heading 73@ {heading} 158.56
set_object_rotation 73@ {x} -170.1394 {y} -88.8094 {z} -21.44
165@ = 1

:DECON_11388
if 
  locate_char_any_means_3d $scplayer {x} -2049.707 {y} 240.5694 {z} 34.762 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @DECON_11617
if 
  is_char_in_model $scplayer {modelId} 524
goto_if_false @DECON_11568
if 
  is_car_stopped 90@
goto_if_false @DECON_11561
if 
  not is_car_dead 90@
goto_if_false @DECON_11561
$heading = get_car_heading 90@
if and
  190.0 > $heading
  $heading > 170.0
goto_if_false @DECON_11545
remove_blip 124@
35@ = 99
goto @DECON_11561

:DECON_11545
print_now 'GAR2_14' {time} 1000 {flag} 1

:DECON_11561
goto @DECON_11610

:DECON_11568
if 
  TIMERA > 30000
goto_if_false @DECON_11610
print_now 'GAR2_20' {time} 7000 {flag} 1
TIMERA = 0

:DECON_11610
goto @DECON_11617

:DECON_11617
if 
  35@ == 99
goto_if_false @DECON_11642
gosub @DECON_20810

:DECON_11642
return 

:DECON_11644
if 
  does_blip_exist 124@
goto_if_false @DECON_11665
remove_blip 124@

:DECON_11665
if 
  not is_car_dead 85@
goto_if_false @DECON_11728
if 
  not does_blip_exist 126@
goto_if_false @DECON_11728
126@ = add_blip_for_car 85@
set_blip_as_friendly 126@ {state} True
print_now 'GAR2_36' {time} 7000 {flag} 1

:DECON_11728
if 
  not is_car_dead 89@
goto_if_false @DECON_11791
if 
  not does_blip_exist 127@
goto_if_false @DECON_11791
127@ = add_blip_for_car 89@
set_blip_as_friendly 127@ {state} True
print_now 'GAR2_36' {time} 7000 {flag} 1

:DECON_11791
return 

:DECON_11793
if 
  does_vehicle_exist 85@
goto_if_false @DECON_11923
if 
  not is_car_dead 85@
goto_if_false @DECON_11906
if 
  locate_car_3d 85@ {x} -2049.199 {y} 250.3882 {z} 32.9084 {xRadius} 2.454 {yRadius} 5.042 {zRadius} 2.3 {drawSphere} False
goto_if_false @DECON_11899
if 
  not is_car_on_screen 85@
goto_if_false @DECON_11899
delete_car 85@
remove_blip 126@

:DECON_11899
goto @DECON_11916

:DECON_11906
mark_car_as_no_longer_needed 85@
remove_blip 126@

:DECON_11916
goto @DECON_12068

:DECON_11923
if 
  not is_point_on_screen -2112.603 {y} 193.7894 {z} 33.6684 {radius} 5.0
goto_if_false @DECON_12068
if 
  not is_point_obscured_by_a_mission_entity -2112.603 {y} 193.7894 {z} 33.6684 {radiusX} 3.0 {radiusY} 3.0 {radiusZ} 3.0
goto_if_false @DECON_12068
85@ = create_car 524 {x} -2112.603 {y} 193.7894 {z} 33.6684
set_car_heading 85@ {heading} 276.2221
if 
  does_blip_exist 126@
goto_if_false @DECON_12053
remove_blip 126@

:DECON_12053
126@ = add_blip_for_car 85@
set_blip_as_friendly 126@ {state} True

:DECON_12068
if 
  does_vehicle_exist 89@
goto_if_false @DECON_12198
if 
  not is_car_dead 89@
goto_if_false @DECON_12181
if 
  locate_car_3d 89@ {x} -2049.199 {y} 250.3882 {z} 32.9084 {xRadius} 2.454 {yRadius} 5.042 {zRadius} 2.3 {drawSphere} False
goto_if_false @DECON_12174
if 
  not is_car_on_screen 89@
goto_if_false @DECON_12174
delete_car 89@
remove_blip 127@

:DECON_12174
goto @DECON_12191

:DECON_12181
mark_car_as_no_longer_needed 89@
remove_blip 127@

:DECON_12191
goto @DECON_12343

:DECON_12198
if 
  not is_point_on_screen -2037.176 {y} 269.7917 {z} 34.9191 {radius} 5.0
goto_if_false @DECON_12343
if 
  not is_point_obscured_by_a_mission_entity -2037.176 {y} 269.7917 {z} 34.9191 {radiusX} 3.0 {radiusY} 3.0 {radiusZ} 3.0
goto_if_false @DECON_12343
89@ = create_car 524 {x} -2037.176 {y} 269.7917 {z} 34.9191
set_car_heading 89@ {heading} 179.5245
if 
  does_blip_exist 127@
goto_if_false @DECON_12328
remove_blip 127@

:DECON_12328
127@ = add_blip_for_car 89@
set_blip_as_friendly 127@ {state} True

:DECON_12343
return 

:DECON_12345
if 
  35@ == 0
goto_if_false @DECON_13154
clear_prints 
set_player_control $player1 {state} False
do_fade 250 {direction} Fade.Out

:DECON_12379
if 
  get_fading_status 
goto_if_false @DECON_12403
wait 0
goto @DECON_12379

:DECON_12403
load_mission_audio MissionAudioSlot.Slot3 {audioId} 12600

:DECON_12410
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DECON_12436
wait 0
goto @DECON_12410

:DECON_12436
if 
  does_object_exist 73@
goto_if_false @DECON_12518
if 
  not is_object_on_screen 73@
goto_if_false @DECON_12518
set_object_coordinates 73@ {x} -2048.957 {y} 250.2059 {z} 32.6542
set_object_heading 73@ {heading} 158.56
set_object_rotation 73@ {x} -170.1394 {y} -88.8094 {z} -21.44

:DECON_12518
switch_widescreen True
set_fixed_camera_position -2046.33 {y} 255.5639 {z} 35.1158 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2046.688 {y} 254.6398 {z} 34.9808 {switchStyle} SwitchType.JumpCut
43@ = 0

:DECON_12580
if 
  10 > 43@
goto_if_false @DECON_12652
if 
  does_char_exist 104@(43@,10i)
goto_if_false @DECON_12638
delete_char 104@(43@,10i)
104@(43@,10i) = 0

:DECON_12638
43@ += 1
goto @DECON_12580

:DECON_12652
set_char_coordinates $scplayer {x} -2049.7339 {y} 241.7195 {z} 70.7037
set_char_heading $scplayer {heading} 176.835
43@ = 0

:DECON_12689
if 
  7 > 43@
goto_if_false @DECON_12802
if 
  not is_car_dead 91@(43@,7i)
goto_if_false @DECON_12788
if 
  locate_car_3d 91@(43@,7i) {x} -2049.7339 {y} 241.7195 {z} 34.7037 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DECON_12788
delete_car 91@(43@,7i)

:DECON_12788
43@ += 1
goto @DECON_12689

:DECON_12802
43@ = 0

:DECON_12809
if 
  7 > 43@
goto_if_false @DECON_12938
if 
  not is_car_dead 91@(43@,7i)
goto_if_false @DECON_12915
if 
  locate_car_3d 91@(43@,7i) {x} -2048.886 {y} 250.6607 {z} 32.5177 {xRadius} 2.898 {yRadius} 5.05 {zRadius} 2.0 {drawSphere} False
goto_if_false @DECON_12908
delete_car 91@(43@,7i)

:DECON_12908
goto @DECON_12924

:DECON_12915
delete_car 91@(43@,7i)

:DECON_12924
43@ += 1
goto @DECON_12809

:DECON_12938
clear_area -2049.7339 {y} 241.7195 {z} 34.7037 {radius} 10.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2049.7339 {y} 241.7195 {z} 34.7037
set_char_heading $scplayer {heading} 176.835
if 
  not is_car_dead 90@
goto_if_false @DECON_13104
set_vehicle_quaternion 90@ {x} -0.0448 {y} 0.0178 {z} 1.003 {w} -0.0611
81@ = create_object_no_offset #HUBHOLE3_SFSE {x} -2049.1709 {y} 250.3193 {z} 30.8784
179@ = create_fx_system_on_car_with_direction "CEMENT" {vehicle} 90@ {xOffset} 0.0 {yOffset} -4.4 {zOffset} 0.0 {xDirection} 0.0 {yDirection} -1.0 {zDirection} 0.0 {ignoreBoundingChecks} True

:DECON_13104
wait 500
do_fade 250 {direction} Fade.In

:DECON_13116
if 
  get_fading_status 
goto_if_false @DECON_13140
wait 0
goto @DECON_13116

:DECON_13140
TIMERA = 0
35@ += 1

:DECON_13154
if 
  35@ == 1
goto_if_false @DECON_13255
46@ = 0.0

:DECON_13182
if 
  1.0 > 46@
goto_if_false @DECON_13248
wait 0
if 
  not is_car_dead 90@
goto_if_false @DECON_13231
control_movable_vehicle_part 90@ {range} 46@

:DECON_13231
add_timed_val_to_float_lvar 46@ +=@ 0.01
goto @DECON_13182

:DECON_13248
35@ += 1

:DECON_13255
if 
  35@ == 2
goto_if_false @DECON_13373
if 
  TIMERA > 2000
goto_if_false @DECON_13373
play_fx_system 179@
if 
  not is_car_dead 90@
goto_if_false @DECON_13359
$x, $y, $z = get_offset_from_car_in_world_coords 90@ {xOffset} 0.0 {yOffset} -4.4 {zOffset} 0.0
set_mission_audio_position MissionAudioSlot.Slot3 {x} $x {y} $y {z} $z
play_mission_audio MissionAudioSlot.Slot3

:DECON_13359
TIMERA = 0
35@ += 1

:DECON_13373
if 
  35@ == 3
goto_if_false @DECON_13417
if 
  TIMERA > 1000
goto_if_false @DECON_13417
35@ += 1

:DECON_13417
if 
  35@ == 4
goto_if_false @DECON_13506
if 
  slide_object 81@ {posX} -2049.1709 {posY} 250.3193 {posZ} 34.177 {speedX} 0.01 {speedY} 0.01 {speedZ} 0.009 {collisionCheck} False
goto_if_false @DECON_13506
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot3
stop_fx_system 179@
35@ += 1

:DECON_13506
if 
  35@ == 5
goto_if_false @DECON_13550
if 
  TIMERA > 2000
goto_if_false @DECON_13550
35@ = 99

:DECON_13550
if 
  35@ == 99
goto_if_false @DECON_13610
if 
  not is_car_dead 90@
goto_if_false @DECON_13584

:DECON_13584
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_mission_audio MissionAudioSlot.Slot3
36@ = 1

:DECON_13610
return 

:DECON_13612
if and
  39@ == 1
  141@ == 0
goto_if_false @DECON_14209
43@ = 0

:DECON_13644
if 
  6 > 43@
goto_if_false @DECON_13735
if 
  does_char_exist 98@(43@,6i)
goto_if_false @DECON_13721
if or
  has_char_been_damaged_by_char 98@(43@,6i) {handle} $scplayer
  is_char_dead 98@(43@,6i)
goto_if_false @DECON_13721
141@ = 1

:DECON_13721
43@ += 1
goto @DECON_13644

:DECON_13735
if 
  does_char_exist 117@
goto_if_false @DECON_13782
if or
  has_char_been_damaged_by_char 117@ {handle} $scplayer
  is_char_dead 117@
goto_if_false @DECON_13782
141@ = 1

:DECON_13782
if 
  does_char_exist 115@
goto_if_false @DECON_13829
if or
  has_char_been_damaged_by_char 115@ {handle} $scplayer
  is_char_dead 115@
goto_if_false @DECON_13829
141@ = 1

:DECON_13829
43@ = 0

:DECON_13836
if 
  6 > 43@
goto_if_false @DECON_13926
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_13912
44@ = get_object_health $init_portakabin(43@,6i)
if 
  900 > 44@
goto_if_false @DECON_13912
141@ = 1

:DECON_13912
43@ += 1
goto @DECON_13836

:DECON_13926
43@ = 0

:DECON_13933
if 
  7 > 43@
goto_if_false @DECON_14065
if 
  does_vehicle_exist 91@(43@,7i)
goto_if_false @DECON_14051
if 
  not is_car_dead 91@(43@,7i)
goto_if_false @DECON_14051
if 
  is_char_in_car $scplayer {vehicle} 91@(43@,7i)
goto_if_false @DECON_14021
141@ = 1

:DECON_14021
if 
  has_car_been_damaged_by_char 91@(43@,7i) {handle} $scplayer
goto_if_false @DECON_14051
141@ = 1

:DECON_14051
43@ += 1
goto @DECON_13933

:DECON_14065
if 
  141@ == 1
goto_if_false @DECON_14151
43@ = 0

:DECON_14090
if 
  10 > 43@
goto_if_false @DECON_14151
if 
  not is_char_dead 104@(43@,10i)
goto_if_false @DECON_14137
clear_char_tasks 104@(43@,10i)

:DECON_14137
43@ += 1
goto @DECON_14090

:DECON_14151
if 
  141@ == 1
goto_if_false @DECON_14202
$portacabin_timer = 180000
display_onscreen_timer $portacabin_timer {direction} TimerDirection.Down
print 'GAR2_41' {time} 7000 {flag} 1

:DECON_14202
goto @DECON_14303

:DECON_14209
if 
  169@ == 0
goto_if_false @DECON_14303
if and
  not is_help_message_being_displayed 
  not is_message_being_displayed 
goto_if_false @DECON_14303
if 
  is_char_in_any_car $scplayer
goto_if_false @DECON_14303
$car = store_car_char_is_in_no_save $scplayer
if 
  is_car_model $car {modelId} 486
goto_if_false @DECON_14303
print_help 'GAR2_42'
169@ += 1

:DECON_14303
if and
  167@ == 0
  2 >= 34@
goto_if_false @DECON_14385
if and
  is_car_dead 83@
  is_car_dead 84@
goto_if_false @DECON_14385
if 
  not is_message_being_displayed 
goto_if_false @DECON_14385
print_now 'GAR2_39' {time} 7000 {flag} 1
167@ += 1

:DECON_14385
if 
  141@ == 1
goto_if_false @DECON_16006
if 
  not is_char_dead 117@
goto_if_false @DECON_14517
43@ = get_script_task_status 117@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_14517
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 20.0
task_smart_flee_char -1 {threat} $scplayer {radius} 300.0 {time} 60000
close_sequence_task 49@
perform_sequence_task 117@ {sequence} 49@
clear_sequence_task 49@
mark_char_as_no_longer_needed 117@
111@ = 0

:DECON_14517
176@ = open_sequence_task 
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14562
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 5.0
goto @DECON_14579

:DECON_14562
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 15.0

:DECON_14579
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14637
task_play_anim -1 {animationName} "FIGHTIDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @DECON_14637

:DECON_14637
close_sequence_task 176@
177@ = open_sequence_task 
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14687
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 7.5
goto @DECON_14704

:DECON_14687
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 10.0

:DECON_14704
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14762
task_play_anim -1 {animationName} "FIGHTIDLE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @DECON_14762

:DECON_14762
close_sequence_task 177@
178@ = open_sequence_task 
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_14812
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 10.0
goto @DECON_14829

:DECON_14812
task_goto_char -1 {target} $scplayer {time} 60000 {radius} 20.0

:DECON_14829
task_flee_char -1 {threat} $scplayer {radius} 20.0 {time} 3000
close_sequence_task 178@
43@ = 0

:DECON_14856
if 
  2 > 43@
goto_if_false @DECON_14913
180@(43@,2i) = -1
182@(43@,2f) = 9999.0
43@ += 1
goto @DECON_14856

:DECON_14913
43@ = 0

:DECON_14920
if 
  10 > 43@
goto_if_false @DECON_15164
if 
  not is_char_dead 104@(43@,10i)
goto_if_false @DECON_15150
$x, $y, $z = get_char_coordinates 104@(43@,10i)
56@, 57@, 58@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  is_float_lvar_greater_than_float_var 182@ > $distance
goto_if_false @DECON_15065
set_lvar_float_to_lvar_float 183@ = 182@
set_lvar_float_to_var_float 182@ = $distance
set_lvar_int_to_lvar_int 181@ = 180@
set_lvar_int_to_lvar_int 180@ = 43@
goto @DECON_15100

:DECON_15065
if 
  is_float_lvar_greater_than_float_var 183@ > $distance
goto_if_false @DECON_15100
set_lvar_float_to_var_float 183@ = $distance
set_lvar_int_to_lvar_int 181@ = 43@

:DECON_15100
if and
  $distance > 500.0
  not is_char_on_screen 104@(43@,10i)
goto_if_false @DECON_15150
delete_char 104@(43@,10i)
104@(43@,10i) = 0

:DECON_15150
43@ += 1
goto @DECON_14920

:DECON_15164
43@ = 0

:DECON_15171
if 
  10 > 43@
goto_if_false @DECON_15991
if 
  not is_char_dead 104@(43@,10i)
goto_if_false @DECON_15977
if 
  not is_char_in_any_car 104@(43@,10i)
goto_if_false @DECON_15711
if 
  is_current_char_weapon 104@(43@,10i) {weaponType} WeaponType.Pistol
goto_if_false @DECON_15312
44@ = get_script_task_status 104@(43@,10i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15305
clear_char_tasks 104@(43@,10i)
task_kill_char_on_foot 104@(43@,10i) {target} $scplayer

:DECON_15305
goto @DECON_15704

:DECON_15312
if or
  is_int_lvar_equal_to_int_lvar 43@ == 180@
  is_int_lvar_equal_to_int_lvar 43@ == 181@
goto_if_false @DECON_15400
44@ = get_script_task_status 104@(43@,10i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15393
clear_char_tasks 104@(43@,10i)
task_kill_char_on_foot 104@(43@,10i) {target} $scplayer

:DECON_15393
goto @DECON_15704

:DECON_15400
44@ = get_script_task_status 104@(43@,10i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15562
44@ = generate_random_int_in_range 0 {max} 9
if 
  4 > 44@
goto_if_false @DECON_15488
clear_char_tasks 104@(43@,10i)
perform_sequence_task 104@(43@,10i) {sequence} 176@
goto @DECON_15555

:DECON_15488
if 
  8 > 44@
goto_if_false @DECON_15534
clear_char_tasks 104@(43@,10i)
perform_sequence_task 104@(43@,10i) {sequence} 177@
goto @DECON_15555

:DECON_15534
clear_char_tasks 104@(43@,10i)
perform_sequence_task 104@(43@,10i) {sequence} 178@

:DECON_15555
goto @DECON_15704

:DECON_15562
if or
  is_char_playing_anim 104@(43@,10i) {animationName} "PANIC_POINT"
  is_char_playing_anim 104@(43@,10i) {animationName} "PANIC_SHOUT"
goto_if_false @DECON_15704
$x, $y, $z = get_char_coordinates 104@(43@,10i)
56@, 57@, 58@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 50@ = 56@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 57@
sub_float_var_from_float_lvar 51@ -= $y
$heading = get_heading_from_vector_2d 50@ {y} 51@
set_char_heading 104@(43@,10i) {heading} $heading

:DECON_15704
goto @DECON_15977

:DECON_15711
$car = store_car_char_is_in_no_save 104@(43@,10i)
set_car_straight_line_distance $car {distance} 255
if 
  not is_car_dead $car
goto_if_false @DECON_15768
if 
  is_playback_going_on_for_car $car
goto_if_false @DECON_15768
stop_playback_recorded_car $car

:DECON_15768
44@ = get_script_task_status 104@(43@,10i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DECON_15878
49@ = open_sequence_task 
task_car_mission -1 {vehicle} $car {targetVehicle} -1 {missionId} CarMission.RamPlayerClose {cruiseSpeed} 40.0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
perform_sequence_task 104@(43@,10i) {sequence} 49@
clear_sequence_task 49@
if 
  184@ <> 0
goto_if_false @DECON_15871
184@ = 0

:DECON_15871
goto @DECON_15977

:DECON_15878
if 
  not is_char_in_any_car $scplayer
goto_if_false @DECON_15977
if 
  is_char_touching_vehicle $scplayer {handle} $car
goto_if_false @DECON_15977
if 
  184@ == 0
goto_if_false @DECON_15977
49@ = open_sequence_task 
task_car_temp_action -1 {vehicle} $car {actionId} TempAction.Reverse {time} 2500
close_sequence_task 49@
perform_sequence_task 104@(43@,10i) {sequence} 49@
clear_sequence_task 49@
184@ = 1

:DECON_15977
43@ += 1
goto @DECON_15171

:DECON_15991
clear_sequence_task 176@
clear_sequence_task 177@
clear_sequence_task 178@

:DECON_16006
if 
  141@ == 0
goto_if_false @DECON_16750
if 
  not is_char_dead 102@
goto_if_false @DECON_16750
if 
  146@ == 0
goto_if_false @DECON_16169
if 
  locate_char_any_means_3d $scplayer {x} -2074.2639 {y} 222.39 {z} 34.7395 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DECON_16169
clear_char_tasks 102@
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 50000 {radius} 3.0
task_turn_char_to_face_char -1 {target} $scplayer
task_scratch_head -1
close_sequence_task 49@
perform_sequence_task 102@ {sequence} 49@
clear_sequence_task 49@
146@ += 1

:DECON_16169
if 
  146@ == 1
goto_if_false @DECON_16606
if 
  locate_char_any_means_3d $scplayer {x} -2074.2639 {y} 222.39 {z} 34.7395 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DECON_16509
if 
  not is_message_being_displayed 
goto_if_false @DECON_16502
if 
  $audio_line_is_active == 0
goto_if_false @DECON_16502
if 
  locate_char_on_foot_char_3d 102@ {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @DECON_16495
43@ = generate_random_int_in_range 0 {max} 3
if 
  43@ == 0
goto_if_false @DECON_16370
set_var_text_label s$audio_string = 'GAR2_BA'
set_var_int_to_constant $audio_sound_file = 16612
start_new_script @AUDIOL 102@ 1 0 1 0 

:DECON_16370
if 
  43@ == 1
goto_if_false @DECON_16429
set_var_text_label s$audio_string = 'GAR2_BB'
set_var_int_to_constant $audio_sound_file = 16613
start_new_script @AUDIOL 102@ 1 0 1 0 

:DECON_16429
if 
  43@ == 2
goto_if_false @DECON_16488
set_var_text_label s$audio_string = 'GAR2_BC'
set_var_int_to_constant $audio_sound_file = 16614
start_new_script @AUDIOL 102@ 1 0 1 0 

:DECON_16488
146@ += 1

:DECON_16495
TIMERB = 0

:DECON_16502
goto @DECON_16606

:DECON_16509
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 102@ {sequence} 49@
clear_sequence_task 49@
146@ = 0

:DECON_16606
if 
  146@ == 2
goto_if_false @DECON_16750
43@ = get_script_task_status 102@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DECON_16750
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2099.1621 {y} 171.1465 {z} 34.0869 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
task_go_straight_to_coord -1 {x} -2090.801 {y} 263.5923 {z} 34.7131 {speed} MoveState.Walk {time} 60000
task_scratch_head -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
perform_sequence_task 102@ {sequence} 49@
clear_sequence_task 49@
146@ += 1

:DECON_16750
if 
  not is_char_dead 115@
goto_if_false @DECON_16829
if 
  not is_car_dead 83@
goto_if_false @DECON_16822
if 
  is_playback_going_on_for_car 83@
goto_if_false @DECON_16822
if 
  not is_char_in_car 115@ {vehicle} 83@
goto_if_false @DECON_16822
stop_playback_recorded_car 83@

:DECON_16822
goto @DECON_16866

:DECON_16829
if 
  not is_car_dead 83@
goto_if_false @DECON_16866
if 
  is_playback_going_on_for_car 83@
goto_if_false @DECON_16866
stop_playback_recorded_car 83@

:DECON_16866
if 
  is_char_in_any_car $scplayer
goto_if_false @DECON_16954
if 
  not is_car_dead 90@
goto_if_false @DECON_16939
if 
  not is_char_in_car $scplayer {vehicle} 90@
goto_if_false @DECON_16932
90@ = 0
90@ = store_car_char_is_in $scplayer

:DECON_16932
goto @DECON_16954

:DECON_16939
90@ = 0
90@ = store_car_char_is_in $scplayer

:DECON_16954
43@ = 0

:DECON_16961
if 
  6 > 43@
goto_if_false @DECON_18417
if 
  67@ == 1
goto_if_false @DECON_17147
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_17147
if or
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.Explosion
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.RocketLauncher
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.Grenade
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.RocketHs
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.Satchel
goto_if_false @DECON_17107
write_debug "DAMAGED_BY_EXPLOSION"

:DECON_17107
if 
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.AnyWeapon
goto_if_false @DECON_17147
write_debug "DAMAGED_BY_ANY"

:DECON_17147
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_17336
if or
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.Explosion
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.RocketLauncher
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.Grenade
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.RocketHs
  has_object_been_damaged_by_weapon $init_portakabin(43@,6i) {weaponType} WeaponType.Satchel
goto_if_false @DECON_17336
clear_object_last_weapon_damage $init_portakabin(43@,6i)
44@ = get_object_health $init_portakabin(43@,6i)
44@ += -500
if 
  1 > 44@
goto_if_false @DECON_17324
set_object_health $init_portakabin(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $init_portakabin(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $init_portakabin(43@,6i) {intensity} 0
goto @DECON_17336

:DECON_17324
set_object_health $init_portakabin(43@,6i) {health} 44@

:DECON_17336
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_17535
if 
  not has_object_been_damaged $init_portakabin(43@,6i)
goto_if_false @DECON_17535
if 
  not is_car_dead 90@
goto_if_false @DECON_17535
if 
  is_char_in_car $scplayer {vehicle} 90@
goto_if_false @DECON_17535
if 
  is_vehicle_touching_object 90@ {handle} $init_portakabin(43@,6i)
goto_if_false @DECON_17535
if 
  171@ > 65000.0
goto_if_false @DECON_17535
set_object_health $init_portakabin(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $init_portakabin(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $init_portakabin(43@,6i) {intensity} 0
if 
  not is_car_dead 90@
goto_if_false @DECON_17535
if 
  is_char_in_car $scplayer {vehicle} 90@
goto_if_false @DECON_17535
set_car_forward_speed 90@ {forwardSpeed} 170@

:DECON_17535
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_18176
if 
  not has_object_been_damaged $init_portakabin(43@,6i)
goto_if_false @DECON_18176
get_object_health $init_portakabin(43@,6i) {var_health} 159@(43@,6i)
if 
  is_int_lvar_greater_than_int_lvar 153@(43@,6i) > 159@(43@,6i)
goto_if_false @DECON_18160
if 
  159@(43@,6i) > 0
goto_if_false @DECON_18160
if 
  not is_car_dead 90@
goto_if_false @DECON_18014
if 
  is_char_in_car $scplayer {vehicle} 90@
goto_if_false @DECON_18014
if 
  is_vehicle_touching_object 90@ {handle} $init_portakabin(43@,6i)
goto_if_false @DECON_18014
if 
  170@ > 5.0
goto_if_false @DECON_17998
if 
  not is_car_model 90@ {modelId} 486
goto_if_false @DECON_17823
set_lvar_int_to_lvar_int 44@ = 153@(43@,6i)
sub_int_lvar_from_int_lvar 44@ -= 159@(43@,6i)
cset_lvar_float_to_lvar_int 46@ =# 44@
46@ *= 0.5
cset_lvar_int_to_lvar_float 44@ =# 46@
add_int_lvar_to_int_lvar 159@(43@,6i) += 44@
set_object_health $init_portakabin(43@,6i) {health} 159@(43@,6i)
goto @DECON_17991

:DECON_17823
set_lvar_int_to_lvar_int 44@ = 153@(43@,6i)
sub_int_lvar_from_int_lvar 44@ -= 159@(43@,6i)
44@ *= -30
add_int_lvar_to_int_lvar 159@(43@,6i) += 44@
if 
  0 > 159@(43@,6i)
goto_if_false @DECON_17899
159@(43@,6i) = 0

:DECON_17899
if 
  166@ == 0
goto_if_false @DECON_17975
if 
  159@(43@,6i) > 10
goto_if_false @DECON_17975
if 
  not is_message_being_displayed 
goto_if_false @DECON_17975
print_now 'GAR2_38' {time} 5000 {flag} 1
166@ = 1

:DECON_17975
set_object_health $init_portakabin(43@,6i) {health} 159@(43@,6i)

:DECON_17991
goto @DECON_18014

:DECON_17998
set_object_health $init_portakabin(43@,6i) {health} 153@(43@,6i)

:DECON_18014
if 
  $player_is_in_crane == 1
goto_if_false @DECON_18069
set_object_health $init_portakabin(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $init_portakabin(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $init_portakabin(43@,6i) {intensity} 0

:DECON_18069
if 
  159@(43@,6i) == 0
goto_if_false @DECON_18160
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $init_portakabin(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $init_portakabin(43@,6i) {intensity} 0
if 
  not is_car_dead 90@
goto_if_false @DECON_18160
if 
  is_char_in_car $scplayer {vehicle} 90@
goto_if_false @DECON_18160
set_car_forward_speed 90@ {forwardSpeed} 170@

:DECON_18160
set_lvar_int_to_lvar_int 153@(43@,6i) = 159@(43@,6i)

:DECON_18176
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_18403
if 
  not has_object_been_damaged $init_portakabin(43@,6i)
goto_if_false @DECON_18403
if 
  not is_car_dead 90@
goto_if_false @DECON_18403
if 
  is_char_in_car $scplayer {vehicle} 90@
goto_if_false @DECON_18403
if 
  is_car_model 90@ {modelId} 486
goto_if_false @DECON_18403
if 
  is_vehicle_touching_object 90@ {handle} $init_portakabin(43@,6i)
goto_if_false @DECON_18403
44@ = get_object_health $init_portakabin(43@,6i)
if 
  10 > 44@
goto_if_false @DECON_18403
set_object_health $init_portakabin(43@,6i) {health} 0
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} $init_portakabin(43@,6i)
play_mission_audio MissionAudioSlot.Slot3
break_object $init_portakabin(43@,6i) {intensity} 0
if 
  not is_car_dead 90@
goto_if_false @DECON_18403
if 
  is_char_in_car $scplayer {vehicle} 90@
goto_if_false @DECON_18403
set_car_forward_speed 90@ {forwardSpeed} 170@

:DECON_18403
43@ += 1
goto @DECON_16961

:DECON_18417
43@ = 0

:DECON_18424
if 
  6 > 43@
goto_if_false @DECON_19160
if 
  152@ > 0
goto_if_false @DECON_18996
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_18996
44@ = get_object_health $init_portakabin(43@,6i)
if 
  995 > 44@
goto_if_false @DECON_18996
if 
  44@ > 500
goto_if_false @DECON_18704
if 
  134@(43@,6i) == 0
goto_if_false @DECON_18697
$x, $y, $z = get_offset_from_object_in_world_coords $init_portakabin(43@,6i) {xOffset} 3.252 {yOffset} -2.1084 {zOffset} 0.0
gosub @DECON_20689
if 
  190@ == 0
goto_if_false @DECON_18697
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$heading = get_object_heading $init_portakabin(43@,6i)
$heading += 180.0
116@ = create_char PedType.Mission1 {modelId} 27 {x} $x {y} $y {z} $z
set_char_heading 116@ {heading} $heading
set_char_health 116@ {health} 50
134@(43@,6i) += 1
43@ = 6

:DECON_18697
goto @DECON_18996

:DECON_18704
if 
  not has_object_been_damaged $init_portakabin(43@,6i)
goto_if_false @DECON_18731
goto @DECON_18996

:DECON_18731
if 
  134@(43@,6i) <> 99
goto_if_false @DECON_18996
$x, $y, $z = get_offset_from_object_in_world_coords $init_portakabin(43@,6i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
$heading = get_object_heading $init_portakabin(43@,6i)
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$heading += 180.0
116@ = create_char PedType.Mission1 {modelId} 27 {x} $x {y} $y {z} $z
set_char_heading 116@ {heading} $heading
set_char_health 116@ {health} 50
134@(43@,6i) = 99
43@ = 6
56@, 57@, 58@ = get_char_coordinates $scplayer
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
44@ = generate_random_int_in_range 0 {max} 2
if 
  44@ <> 0
goto_if_false @DECON_18956
51@ *= -1.0

:DECON_18956
set_lvar_float_to_lvar_float 53@ = 51@
set_lvar_float_to_lvar_float 54@ = 50@
54@ *= -1.0
task_dive_and_get_up 116@ {directionX} 53@ {directionY} 54@ {timeOnGround} 1000

:DECON_18996
if 
  does_char_exist 116@
goto_if_false @DECON_19139
if 
  not is_char_dead 116@
goto_if_false @DECON_19139
if 
  140@ > 0
goto_if_false @DECON_19095
if 
  2 > 140@
goto_if_false @DECON_19083
give_weapon_to_char 116@ {weaponType} WeaponType.Shovel {ammo} 99999
goto @DECON_19095

:DECON_19083
give_weapon_to_char 116@ {weaponType} WeaponType.Pistol {ammo} 99999

:DECON_19095
set_char_shoot_rate 116@ {rate} 30
set_char_accuracy 116@ {accuracy} 30
set_char_decision_maker 116@ {handleOrTemplate} 174@
set_lvar_int_to_lvar_int 185@ = 116@
gosub @DECON_19924
172@ = 0

:DECON_19139
116@ = 0
43@ += 1
goto @DECON_18424

:DECON_19160
if 
  141@ == 1
goto_if_false @DECON_19683
if 
  4 >= 152@
goto_if_false @DECON_19203
172@ = 0

:DECON_19203
if 
  172@ > 20000
goto_if_false @DECON_19683
if 
  152@ > 4
goto_if_false @DECON_19683
47@ = 200.0
44@ = -1
43@ = 0

:DECON_19264
if 
  6 > 43@
goto_if_false @DECON_19420
if 
  does_object_exist $init_portakabin(43@,6i)
goto_if_false @DECON_19406
if 
  not has_object_been_damaged $init_portakabin(43@,6i)
goto_if_false @DECON_19406
$x, $y, $z = get_object_coordinates $init_portakabin(43@,6i)
56@, 57@, 58@ = get_char_coordinates $scplayer
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  is_float_lvar_greater_than_float_lvar 47@ > 46@
goto_if_false @DECON_19406
set_lvar_float_to_lvar_float 47@ = 46@
set_lvar_int_to_lvar_int 44@ = 43@

:DECON_19406
43@ += 1
goto @DECON_19264

:DECON_19420
if 
  44@ <> -1
goto_if_false @DECON_19683
$x, $y, $z = get_offset_from_object_in_world_coords $init_portakabin(44@,6i) {xOffset} 3.252 {yOffset} -2.1084 {zOffset} 0.0
gosub @DECON_20689
if 
  190@ == 0
goto_if_false @DECON_19683
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$heading = get_object_heading $init_portakabin(44@,6i)
$heading += 180.0
116@ = create_char PedType.Mission1 {modelId} 27 {x} $x {y} $y {z} $z
set_char_heading 116@ {heading} $heading
set_char_health 116@ {health} 50
if 
  140@ > 2
goto_if_false @DECON_19632
if 
  5 > 140@
goto_if_false @DECON_19620
give_weapon_to_char 116@ {weaponType} WeaponType.Shovel {ammo} 99999
goto @DECON_19632

:DECON_19620
give_weapon_to_char 116@ {weaponType} WeaponType.Pistol {ammo} 99999

:DECON_19632
set_char_shoot_rate 116@ {rate} 30
set_char_accuracy 116@ {accuracy} 30
set_char_decision_maker 116@ {handleOrTemplate} 174@
set_lvar_int_to_lvar_int 185@ = 116@
116@ = 0
172@ = 0
gosub @DECON_19924

:DECON_19683
43@ = 0

:DECON_19690
if 
  10 > 43@
goto_if_false @DECON_19793
if 
  does_char_exist 104@(43@,10i)
goto_if_false @DECON_19779
if 
  is_char_dead 104@(43@,10i)
goto_if_false @DECON_19779
mark_char_as_no_longer_needed 104@(43@,10i)
104@(43@,10i) = 0
142@(43@,10i) = 0

:DECON_19779
43@ += 1
goto @DECON_19690

:DECON_19793
gosub @DECON_20024
if 
  not is_car_dead 90@
goto_if_false @DECON_19848
170@ = get_car_speed 90@
46@ = get_car_mass 90@
set_lvar_float_to_lvar_float 171@ = 170@
mult_float_lvar_by_float_lvar 171@ *= 46@

:DECON_19848
if 
  does_blip_exist 126@
goto_if_false @DECON_19885
if 
  is_car_dead 85@
goto_if_false @DECON_19885
remove_blip 126@

:DECON_19885
if 
  does_blip_exist 127@
goto_if_false @DECON_19922
if 
  is_car_dead 89@
goto_if_false @DECON_19922
remove_blip 127@

:DECON_19922
return 

:DECON_19924
186@ = 0

:DECON_19931
if 
  4 > 186@
goto_if_false @DECON_20015
if 
  104@(186@,10i) == 0
goto_if_false @DECON_20001
set_lvar_int_to_lvar_int 104@(186@,10i) = 185@
142@(186@,10i) = 0
186@ = 6

:DECON_20001
186@ += 1
goto @DECON_19931

:DECON_20015
gosub @DECON_20024
return 

:DECON_20024
152@ = 4
187@ = 0

:DECON_20038
if 
  4 > 187@
goto_if_false @DECON_20097
if 
  does_char_exist 104@(187@,10i)
goto_if_false @DECON_20083
152@ -= 1

:DECON_20083
187@ += 1
goto @DECON_20038

:DECON_20097
return 
save_newline_to_debug_file 
save_string_to_debug_file "AVAILABLE PEDS"
save_newline_to_debug_file 
188@ = 0

:DECON_20240
if 
  10 > 188@
goto_if_false @DECON_20548
save_newline_to_debug_file 
save_string_to_debug_file "MISSION PED "
save_int_to_debug_file 188@
save_string_to_debug_file " = "
save_int_to_debug_file 104@(188@,10i)
188@ += 1
goto @DECON_20240

:DECON_20548
save_newline_to_debug_file 
save_string_to_debug_file "AVAILABLE_MISSION_PEDS = "
save_int_to_debug_file 152@
save_newline_to_debug_file 
return 

:DECON_20689
190@ = 0
189@ = 0

:DECON_20703
if 
  10 > 189@
goto_if_false @DECON_20808
if 
  not is_char_dead 104@(189@,10i)
goto_if_false @DECON_20794
if 
  locate_char_on_foot_3d 104@(189@,10i) {x} $x {y} $y {z} $z {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @DECON_20794
190@ = 1

:DECON_20794
189@ += 1
goto @DECON_20703

:DECON_20808
return 

:DECON_20810
34@ += 1
35@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
TIMERA = 0
TIMERB = 0
return 

:DECON_20868
if 
  is_player_playing $player1
goto_if_false @DECON_20962
if 
  locate_char_any_means_3d $scplayer {x} -2049.199 {y} 250.3882 {z} 32.9084 {xRadius} 2.454 {yRadius} 5.042 {zRadius} 2.3 {drawSphere} False
goto_if_false @DECON_20962
set_char_coordinates $scplayer {x} -2045.189 {y} 241.7544 {z} 34.9462
set_char_heading $scplayer {heading} 186.3532

:DECON_20962
swap_nearest_building_model -2049.1709 {y} 250.3193 {z} 34.477 {radius} 20.0 {fromModelId} #HUBHOLE2_SFSE {toModelId} #HUBHOLE1_SFSE
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DECON_21008
if 
  does_object_exist 81@
goto_if_false @DECON_21029
delete_object 81@

:DECON_21029
swap_nearest_building_model -2049.1709 {y} 250.3193 {z} 34.477 {radius} 20.0 {fromModelId} #HUBHOLE2_SFSE {toModelId} #HUBHOLE4_SFSE
register_mission_passed 'GAR_2'
start_new_script @SYND 
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
player_made_progress 1
set_int_stat StatId.PassedGarage2 {value} 1
print_big 'M_PASSD' {time} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_garage_mission_counter += 1
return 

:DECON_21143
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
$do_not_update_camera_crane1 = 0
mark_model_as_no_longer_needed #PORTALOO
mark_model_as_no_longer_needed #PORTAKABIN
mark_model_as_no_longer_needed #BARREL4
mark_model_as_no_longer_needed 486
mark_model_as_no_longer_needed 524
mark_model_as_no_longer_needed 406
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 16
mark_model_as_no_longer_needed 27
mark_model_as_no_longer_needed 337
mark_model_as_no_longer_needed 346
remove_blip 118@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 127@
clear_onscreen_timer $portacabin_timer
set_wanted_multiplier 1.0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 51---------------
// Originally: 555 WE TIP

:SCRASH3
script_name 'SCRASH3'
gosub @SCRASH3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SCRASH3_38
gosub @SCRASH3_18128

:SCRASH3_38
gosub @SCRASH3_18272
terminate_this_script 

:SCRASH3_47
clear_this_print 'M_FAIL'
$onmission = 1
$playing_scrash1 = 1
register_mission_given 
80@ = 1
81@ = 0
82@ = 0
65@ = 0
66@ = 0
84@ = 0
85@ = 0
set_script_limit_to_gang_size 0
load_mission_text 'VALET1'
set_fading_colour 0 {g} 0 {b} 0
terminate_all_scripts_with_this_name 'VALET'
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_198
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:SCRASH3_198
set_area_visible 1
load_cutscene 'SCRASH1'

:SCRASH3_213
if 
  not has_cutscene_loaded 
goto_if_false @SCRASH3_237
wait 0
goto @SCRASH3_213

:SCRASH3_237
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SCRASH3_254
if 
  not has_cutscene_finished 
goto_if_false @SCRASH3_278
wait 0
goto @SCRASH3_254

:SCRASH3_278
do_fade 0 {direction} Fade.Out

:SCRASH3_284
if 
  get_fading_status 
goto_if_false @SCRASH3_308
wait 0
goto @SCRASH3_284

:SCRASH3_308
clear_cutscene 
set_area_visible 0
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 
restore_camera_jumpcut 
request_model 415
request_model 240

:SCRASH3_338
if or
  not has_model_loaded 415
  not has_model_loaded 240
goto_if_false @SCRASH3_370
wait 0
goto @SCRASH3_338

:SCRASH3_370
set_car_density_multiplier 1.0
65@ = 0
if 
  65@ == 20
goto_if_false @SCRASH3_581
57@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
60@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
59@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
37@ = create_char PedType.Mission1 {modelId} 189 {x} 0.0 {y} 0.0 {z} 0.0
$valet[0] = create_char PedType.CivMale {modelId} 189 {x} 0.0 {y} 0.0 {z} 0.0
$valet_pickup_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$drop_off_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$sc3_missioncar = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0

:SCRASH3_581
57@ = add_blip_for_coord -1748.402 {y} 909.7514 {z} 23.8906
wait 500
do_fade 1000 {direction} Fade.In
281@ = 0
print 'VAL_5' {time} 10000 {flag} 1

:SCRASH3_636
wait 0
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @SCRASH3_672
94@ = 1
goto @SCRASH3_679

:SCRASH3_672
94@ = 0

:SCRASH3_679
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SCRASH3_708
gosub @SCRASH3_17374
goto @SCRASH3_18160

:SCRASH3_708
if 
is_ps2_keyboard_key_pressed 68
goto_if_false @SCRASH3_743
set_char_coordinates $scplayer {x} -1755.088 {y} 910.0911 {z} 23.8906

:SCRASH3_743
if 
is_ps2_keyboard_key_pressed 70
goto_if_false @SCRASH3_821
set_char_coordinates $scplayer {x} -1712.653 {y} 985.0446 {z} 16.5859
if 
  not is_char_dead $valet[2]
goto_if_false @SCRASH3_821
set_char_coordinates $valet[2] {x} -1700.77 {y} 984.3545 {z} 16.5936
set_char_suffers_critical_hits $valet[2] {state} False

:SCRASH3_821
if 
is_ps2_keyboard_key_pressed 71
goto_if_false @SCRASH3_856
set_char_coordinates $scplayer {x} -1753.8409 {y} 960.2274 {z} 23.8828

:SCRASH3_856
if 
is_ps2_keyboard_key_pressed 72
goto_if_false @SCRASH3_1047
if 
  is_char_dead 37@
goto_if_false @SCRASH3_912
37@ = create_char PedType.CivMale {modelId} 240 {x} -1611.454 {y} 714.3873 {z} 12.4715

:SCRASH3_912
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_939
wait 0
goto @SCRASH3_912

:SCRASH3_939
if 
  is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_978
$sc3_missioncar = create_car 551 {x} -1753.9611 {y} 951.9568 {z} 23.7422

:SCRASH3_978
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1024
set_car_coordinates $sc3_missioncar {x} -1753.9611 {y} 951.9568 {z} 23.7422
set_car_heading $sc3_missioncar {heading} 90.0

:SCRASH3_1024
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_1047
106@ = 1

:SCRASH3_1047
if 
is_ps2_keyboard_key_pressed 74
goto_if_false @SCRASH3_1108
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1108
set_car_coordinates $sc3_missioncar {x} -2031.828 {y} 179.5876 {z} 27.8359
set_car_heading $sc3_missioncar {heading} 90.0

:SCRASH3_1108
if 
is_ps2_keyboard_key_pressed 75
goto_if_false @SCRASH3_1159
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1159
set_car_coordinates $sc3_missioncar {x} -1779.759 {y} 971.5197 {z} 23.7344

:SCRASH3_1159
if 
is_ps2_keyboard_key_pressed 82
goto_if_false @SCRASH3_1188
65@ = 10
72@ = 90

:SCRASH3_1188
if 
  73@ == 1
goto_if_false @SCRASH3_1254
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_1254
print 'VAL_B1' {time} 4000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_1254
gosub @SCRASH3_15223
89@ = 0
if 
  65@ > 1
goto_if_false @SCRASH3_1486

:SCRASH3_1286
if 
  2 > 89@
goto_if_false @SCRASH3_1486
if 
  is_int_var_equal_to_constant $valet_task(89@,3i) == 6
goto_if_false @SCRASH3_1472
if 
  does_char_exist $valet(89@,3i)
goto_if_false @SCRASH3_1472
$x, $y, $z = get_dead_char_pickup_coords $valet(89@,3i)
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_1442
goto @SCRASH3_1472

:SCRASH3_1442
gosub @SCRASH3_17374
print 'VAL_9' {time} 3000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_1472
89@ += 1
goto @SCRASH3_1286

:SCRASH3_1486
if 
  $sc3_missioncar_alive == 1
goto_if_false @SCRASH3_1638
if 
  68@ == 1
goto_if_false @SCRASH3_1554
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1554
$a_Car = get_car_blocking_car $sc3_missioncar
set_var_int_to_var_int $steal_this_car = $a_Car

:SCRASH3_1554
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_1638
90@, 91@ = get_car_colours $sc3_missioncar
if or
  not is_int_lvar_equal_to_constant 90@ == 4
  not is_int_lvar_equal_to_constant 91@ == 4
goto_if_false @SCRASH3_1638
clear_prints 
gosub @SCRASH3_17374
print 'VAL_A35' {time} 4000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_1638
if 
  65@ == 0
goto_if_false @SCRASH3_1682
65@ = 1
70@ = 0
$force_valet_on_mission = 1
suppress_car_model 551

:SCRASH3_1682
if 
  65@ == 1
goto_if_false @SCRASH3_2989
if 
  70@ == 0
goto_if_false @SCRASH3_1780
if 
  locate_char_any_means_3d $scplayer {x} -1748.402 {y} 909.7514 {z} 23.8906 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_1780
set_player_control $player1 {state} False
70@ = 1

:SCRASH3_1780
if 
  70@ == 1
goto_if_false @SCRASH3_1817
do_fade 1000 {direction} Fade.Out
request_model 477
70@ = 2

:SCRASH3_1817
if 
  70@ == 2
goto_if_false @SCRASH3_2323
if and
  not get_fading_status 
  has_model_loaded 477
goto_if_false @SCRASH3_2323
delete_char $valet[0]
delete_char $valet[1]
delete_char $valet[2]
$valet_unlocked = 1
stream_script 72
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 72
if 
  $number_of_instances_of_streamed_script > 0
goto_if_false @SCRASH3_1954
$force_valet_cleanup = 1

:SCRASH3_1911
if 
  $number_of_instances_of_streamed_script > 0
goto_if_false @SCRASH3_1947
wait 0
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 72
goto @SCRASH3_1911

:SCRASH3_1947
$force_valet_cleanup = 0

:SCRASH3_1954
if 
  not has_streamed_script_loaded 72
goto_if_false @SCRASH3_1980
wait 0
goto @SCRASH3_1954

:SCRASH3_1980
start_new_streamed_script 72
$force_valet_on_mission = 2
$freeze_creating_drop_off_cars = 1
switch_ped_roads_off -1729.549 {leftBottomY} 942.886 {leftBottomZ} 40.3585 {rightTopX} -1742.7729 {rightTopY} 937.7814 {rightTopZ} 10.1928
switch_ped_roads_off -1768.524 {leftBottomY} 938.887 {leftBottomZ} 40.7496 {rightTopX} -1780.765 {rightTopY} 943.4574 {rightTopZ} 10.0929
clear_area -1722.675 {y} 935.279 {z} 23.75 {radius} 55.0 {clearParticles} False
92@ = create_car 477 {x} -1736.9611 {y} 946.0503 {z} 23.7487
set_car_can_go_against_traffic 92@ {state} False
set_car_heading 92@ {heading} 19.0
93@ = create_random_char_as_driver 92@
mark_char_as_no_longer_needed 93@
mark_car_as_no_longer_needed 92@
mark_model_as_no_longer_needed 477
if 
  not is_car_dead 92@
goto_if_false @SCRASH3_2240
86@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 92@ {x} -1753.968 {y} 952.9821 {z} 23.75 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_car -1 {vehicle} 92@
task_say -1 {phrase} SpeechId.ValetParkCar
task_wander_standard -1
close_sequence_task 86@
perform_sequence_task 93@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_2240
remove_blip 57@
switch_widescreen True
set_fixed_camera_position -1763.4821 {y} 959.9526 {z} 25.8866 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1762.601 {y} 959.5414 {z} 25.6518 {switchStyle} SwitchType.JumpCut
70@ = 3
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3000

:SCRASH3_2323
if 
  70@ == 3
goto_if_false @SCRASH3_2466
if and
  is_int_var_equal_to_constant $valet_task[0] == 2
  is_int_var_equal_to_constant $valet_task[1] == 2
  is_int_var_equal_to_constant $valet_task[2] == 2
goto_if_false @SCRASH3_2410
set_var_int_to_constant $valet_task[0] = 11
set_var_int_to_constant $valet_task[1] = 11
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
70@ = 4

:SCRASH3_2410
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2466
set_var_int_to_constant $valet_task[0] = 11
set_var_int_to_constant $valet_task[1] = 11
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
70@ = 4

:SCRASH3_2466
if 
  70@ == 4
goto_if_false @SCRASH3_2517
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2517
do_fade 700 {direction} Fade.In
70@ = 5

:SCRASH3_2517
if 
  70@ == 5
goto_if_false @SCRASH3_2587
if 
  not get_fading_status 
goto_if_false @SCRASH3_2587
print_now 'VAL_6' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 6000
70@ = 6

:SCRASH3_2587
if 
  70@ == 6
goto_if_false @SCRASH3_2651
if 
  is_skip_cutscene_button_pressed 
goto_if_false @SCRASH3_2625
70@ = 7

:SCRASH3_2625
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_2651
70@ = 7

:SCRASH3_2651
if 
  70@ == 7
goto_if_false @SCRASH3_2989
if 
  not is_char_in_any_car $scplayer
goto_if_false @SCRASH3_2722
set_char_coordinates $scplayer {x} -1747.198 {y} 909.9226 {z} 23.8906
set_char_heading $scplayer {heading} 5.6727
goto @SCRASH3_2756

:SCRASH3_2722
$a_Car = get_car_char_is_using $scplayer
if 
  not is_car_dead $a_Car
goto_if_false @SCRASH3_2756
set_car_heading $a_Car {heading} 0.0

:SCRASH3_2756
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
print_now 'VAL_A25' {time} 6000 {flag} 1
65@ = 2
$dont_clear_valets = 1
if 
  not is_char_dead $valet[2]
goto_if_false @SCRASH3_2989
63@ = add_blip_for_char $valet[2]
if 
  not is_car_dead 92@
goto_if_false @SCRASH3_2989
if 
  not is_char_in_car $valet[2] {vehicle} 92@
goto_if_false @SCRASH3_2989
if 
  not is_char_dead 93@
goto_if_false @SCRASH3_2989
delete_char 93@
warp_char_into_car $valet[2] {vehicle} 92@
$x, $y, $z = get_parking_node_in_area -1760.178 {leftBottomY} 972.2405 {leftBottomZ} 16.1633 {rightTopX} -1679.605 {rightTopY} 1064.293 {rightTopZ} 24.8629
set_var_float_to_var_float $parking_x = $x
set_var_float_to_var_float $parking_y = $y
set_var_float_to_var_float $parking_z = $z
task_car_drive_to_coord $valet[2] {vehicle} 92@ {x} $x {y} $y {z} $z {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
set_var_int_to_constant $valet_task[2] = 8

:SCRASH3_2989
if 
  65@ == 2
goto_if_false @SCRASH3_3751
if and
  95@ == 0
  94@ == 1
goto_if_false @SCRASH3_3048
print 'VAL_B3' {time} 5000 {flag} 1

:SCRASH3_3048
if 
  94@ == 1
goto_if_false @SCRASH3_3176
$x, $y, $z = get_char_coordinates $scplayer
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_3176
clear_prints 
print 'VAL_B4' {time} 5000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_3176
set_lvar_int_to_lvar_int 95@ = 94@
if 
  does_char_exist $valet[2]
goto_if_false @SCRASH3_3751
if 
  not is_char_dead $valet[2]
goto_if_false @SCRASH3_3534
$x, $y, $z = get_char_coordinates $valet[2]
if 
  is_int_var_equal_to_constant $valet_task[2] == 2
goto_if_false @SCRASH3_3273
if 
  $drop_off_car == 0
goto_if_false @SCRASH3_3273
$force_a_one_off_car = 1

:SCRASH3_3273
if 
  $tell_player_to_kill_valet == 0
goto_if_false @SCRASH3_3417
if 
  94@ == 0
goto_if_false @SCRASH3_3410
if and
  $x > -1760.178
  $y > 972.2405
  $z > 16.1633
  -1679.605 > $x
  1064.293 > $y
  24.8629 > $z
goto_if_false @SCRASH3_3410
print 'VAL_A22' {time} 5000 {flag} 1
$tell_player_to_kill_valet = 1
set_wanted_multiplier -1.0

:SCRASH3_3410
goto @SCRASH3_3534

:SCRASH3_3417
if or
  -1760.178 > $x
  972.2405 > $y
  16.1633 > $z
  $x > -1679.605
  $y > 1064.293
  $z > 24.8629
goto_if_false @SCRASH3_3534
print 'VAL_A23' {time} 4000 {flag} 1
print 'VAL_A24' {time} 5000 {flag} 1
$tell_player_to_kill_valet = 0
set_wanted_multiplier 1.0

:SCRASH3_3534
if 
  is_char_dead $valet[2]
goto_if_false @SCRASH3_3751
remove_blip 63@
96@, 97@, 98@ = get_dead_char_pickup_coords $valet[2]
set_wanted_multiplier 1.0
if and
  96@ > -1760.178
  97@ > 972.2405
  98@ > 16.1633
  -1679.605 > 96@
  1064.293 > 97@
  24.8629 > 98@
goto_if_false @SCRASH3_3704
74@ = create_pickup #CLOTHESP {pickupType} PickupType.Once {x} 96@ {y} 97@ {z} 98@
64@ = add_blip_for_pickup 74@
print_now 'VAL_8' {time} 5000 {flag} 1
65@ = 3
goto @SCRASH3_3751

:SCRASH3_3704
remove_blip 61@
remove_blip 62@
remove_blip 63@
clear_prints 
gosub @SCRASH3_17374
print_now 'VAL_9' {time} 5000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_3751
if 
  65@ == 3
goto_if_false @SCRASH3_3848
if 
  has_pickup_been_collected 74@
goto_if_false @SCRASH3_3848
100@ = 1
set_music_does_fade False
do_fade 1000 {direction} Fade.Out
remove_pickup 74@
remove_blip 64@
request_model 252
65@ = 41
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 2000
99@ = 0

:SCRASH3_3848
if 
  65@ == 41
goto_if_false @SCRASH3_4159
if 
  not get_fading_status 
goto_if_false @SCRASH3_4159
if 
  99@ == 0
goto_if_false @SCRASH3_3928
set_lvar_int_to_constant 151@ = 20802
set_lvar_int_to_lvar_int 153@ = TIMERA
153@ += 500
99@ = 1

:SCRASH3_3928
if 
  has_model_loaded 252
goto_if_false @SCRASH3_4159
if 
  does_char_exist $valet[2]
goto_if_false @SCRASH3_4016
96@, 97@, 98@ = get_dead_char_coordinates $valet[2]
96@, 97@, 98@ = get_dead_char_pickup_coords $valet[2]
if 
  is_char_head_missing $valet[2]
goto_if_false @SCRASH3_4011
100@ = 1

:SCRASH3_4011
delete_char $valet[2]

:SCRASH3_4016
101@ = create_char PedType.CivMale {modelId} 252 {x} 96@ {y} 97@ {z} 98@
set_char_coordinates 101@ {x} 96@ {y} 97@ {z} 98@
mark_char_as_no_longer_needed 101@
shut_char_up 101@ {state} True
if 
  100@ == 1
goto_if_false @SCRASH3_4084
explode_char_head 101@

:SCRASH3_4084
task_die 101@
set_player_control $player1 {state} False
give_player_clothes_outside_shop $player1 {textureName} "VALET" {modelName} "VALET" {bodyPart} BodyPart.SpecialCostume
73@ = 1
build_player_model $player1
set_player_control $player1 {state} True
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 700
65@ = 40

:SCRASH3_4159
if 
  73@ == 1
goto_if_false @SCRASH3_4227
if 
  94@ == 1
goto_if_false @SCRASH3_4227
clear_prints 
gosub @SCRASH3_17374
print_now 'VAL_B5' {time} 5000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_4227
if 
  65@ == 40
goto_if_false @SCRASH3_4296
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_4296
if 
  151@ == 0
goto_if_false @SCRASH3_4296
do_fade 600 {direction} Fade.In
65@ = 42

:SCRASH3_4296
if 
  65@ == 42
goto_if_false @SCRASH3_4381
if 
  not get_fading_status 
goto_if_false @SCRASH3_4381
set_music_does_fade True
clear_prints 
print_now 'VAL_A32' {time} 5000 {flag} 1
remove_blip 57@
57@ = add_blip_for_coord -1759.026 {y} 960.4122 {z} 23.8905
65@ = 4

:SCRASH3_4381
if 
  65@ == 4
goto_if_false @SCRASH3_4541
if 
  102@ == 0
goto_if_false @SCRASH3_4479
if 
  locate_char_on_foot_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_4479
102@ = 1
281@ = 13

:SCRASH3_4479
if 
  locate_char_on_foot_3d $scplayer {x} -1757.054 {y} 960.1191 {z} 23.8906 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SCRASH3_4541
65@ = 5
72@ = 0

:SCRASH3_4541
if 
  65@ == 5
goto_if_false @SCRASH3_6061
if 
  72@ == 0
goto_if_false @SCRASH3_4606
do_fade 1000 {direction} Fade.Out
request_model 551
request_model 402
request_car_recording 155
72@ = 1

:SCRASH3_4606
if 
  72@ == 1
goto_if_false @SCRASH3_4756
if 
  not get_fading_status 
goto_if_false @SCRASH3_4756
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -1584.371 {y} 727.5854 {z} 28.9622 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1585.114 {y} 727.2239 {z} 28.3981 {switchStyle} SwitchType.JumpCut
request_collision -1585.114 {y} 727.2239
load_scene_in_direction -1584.371 {y} 727.5854 {z} 28.9622 {heading} 270.0
72@ = 2
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000

:SCRASH3_4756
if 
  72@ == 2
goto_if_false @SCRASH3_4807
if and
  has_model_loaded 551
  has_car_recording_been_loaded 155
goto_if_false @SCRASH3_4807
remove_blip 57@
72@ = 3

:SCRASH3_4807
if 
  72@ == 3
goto_if_false @SCRASH3_5282
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
  has_model_loaded 402
  has_model_loaded 551
goto_if_false @SCRASH3_5272
set_fixed_camera_position -1621.481 {y} 738.7783 {z} 14.293 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1620.6379 {y} 738.2501 {z} 14.3895 {switchStyle} SwitchType.JumpCut
$sc3_missioncar = create_car 551 {x} -1611.379 {y} 725.24 {z} 11.8774
change_car_colour $sc3_missioncar {color1} 4 {color2} 4
start_playback_recorded_car $sc3_missioncar {path} 155
set_car_can_go_against_traffic $sc3_missioncar {state} False
37@ = create_char PedType.CivMale {modelId} 240 {x} -1611.454 {y} 714.3873 {z} 12.4715
set_char_health 37@ {health} 200
set_char_max_health 37@ {maxHealth} 200
set_char_heading 37@ {heading} 0.0
86@ = open_sequence_task 
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_5056
task_go_straight_to_coord -1 {x} -1611.5959 {y} 723.0802 {z} 12.2361 {speed} MoveState.Walk {time} -2
task_enter_car_as_driver -1 {vehicle} $sc3_missioncar {time} -2

:SCRASH3_5056
close_sequence_task 86@
perform_sequence_task 37@ {sequence} 86@
clear_sequence_task 86@
clear_area -1779.804 {y} 915.7557 {z} 23.7487 {radius} 25.0 {clearParticles} False
92@ = create_car 402 {x} -1779.804 {y} 915.7557 {z} 23.7487
set_car_can_go_against_traffic 92@ {state} False
set_car_heading 92@ {heading} 270.0
93@ = create_random_char_as_driver 92@
mark_char_as_no_longer_needed 93@
mark_car_as_no_longer_needed 92@
mark_model_as_no_longer_needed 402
if 
  not is_car_dead 92@
goto_if_false @SCRASH3_5251
86@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 92@ {x} -1753.968 {y} 952.9821 {z} 23.75 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_car -1 {vehicle} 92@
task_say -1 {phrase} SpeechId.ValetParkCar
task_wander_standard -1
close_sequence_task 86@
perform_sequence_task 93@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_5251
do_fade 1000 {direction} Fade.In
72@ = 4
goto @SCRASH3_5282

:SCRASH3_5272
request_model 402
request_model 551

:SCRASH3_5282
if 
  72@ == 4
goto_if_false @SCRASH3_5375
if 
  not get_fading_status 
goto_if_false @SCRASH3_5375
skip_cutscene_start_internal @SCRASH3_5729
print_now 'VAL_12' {time} 4000 {flag} 1
print 'VAL_13' {time} 4000 {flag} 1
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3500
72@ = 5

:SCRASH3_5375
if 
  72@ == 5
goto_if_false @SCRASH3_5419
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5419
72@ = 6

:SCRASH3_5419
if 
  72@ == 6
goto_if_false @SCRASH3_5581
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_5581
if 
  is_char_in_any_car 37@
goto_if_false @SCRASH3_5581
stop_playback_recorded_car $sc3_missioncar
if and
  not is_char_dead 37@
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_5558
86@ = open_sequence_task 
task_pause -1 {time} 800
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1571.425 {y} 725.7955 {z} 6.0391 {speed} 7.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 86@
perform_sequence_task 37@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_5558
72@ = 7
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 2000

:SCRASH3_5581
if 
  72@ == 7
goto_if_false @SCRASH3_5692
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5692
set_fixed_camera_position -1587.974 {y} 725.1835 {z} 7.7383 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1588.891 {y} 725.1658 {z} 8.1361 {switchStyle} SwitchType.JumpCut
72@ = 8
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 3000

:SCRASH3_5692
if 
  72@ == 8
goto_if_false @SCRASH3_5745
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_5745

:SCRASH3_5729
skip_cutscene_end 
do_fade 900 {direction} Fade.Out
72@ = 9

:SCRASH3_5745
if 
  72@ == 9
goto_if_false @SCRASH3_5947
if 
  not get_fading_status 
goto_if_false @SCRASH3_5947
remove_car_recording 155
switch_roads_on 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
if and
  not is_car_dead $sc3_missioncar
  not is_char_dead 37@
goto_if_false @SCRASH3_5865
if 
  is_playback_going_on_for_car $sc3_missioncar
goto_if_false @SCRASH3_5865
stop_playback_recorded_car $sc3_missioncar
delete_car $sc3_missioncar
delete_char 37@

:SCRASH3_5865
set_char_coordinates $scplayer {x} -1759.631 {y} 960.4594 {z} 23.8905
set_char_heading $scplayer {heading} 194.1832
request_collision -1748.402 {y} 909.7514
load_scene -1748.402 {y} 909.7514 {z} 23.8906
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000
72@ = 10

:SCRASH3_5947
if 
  72@ == 10
goto_if_false @SCRASH3_6061
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_6061
do_fade 900 {direction} Fade.In
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
clear_prints 
print 'VAL_A27' {time} 7000 {flag} 1
set_var_int_to_constant $valet_task[0] = 2
set_var_int_to_constant $valet_task[1] = 2
$force_a_one_off_car = generate_random_int_in_range 1 {max} 3
56@ = 1
65@ = 6

:SCRASH3_6061
if 
  $sc3_missioncar_alive == 1
goto_if_false @SCRASH3_6127
if 
  is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_6127
clear_prints 
gosub @SCRASH3_17374
print 'VAL_40' {time} 4000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_6127
if 
  56@ == 1
goto_if_false @SCRASH3_6994
if 
  107@ <> 2
goto_if_false @SCRASH3_6994
if and
  not is_int_var_equal_to_constant $valet_task[0] == 2
  not is_int_var_equal_to_constant $valet_task[1] == 2
goto_if_false @SCRASH3_6195
$force_a_one_off_car = 0

:SCRASH3_6195
if 
  56@ == 1
goto_if_false @SCRASH3_6994
if 
  $force_a_one_off_car == 0
goto_if_false @SCRASH3_6756
if 
  $create_drop_off_car_now == 0
goto_if_false @SCRASH3_6756
if 
  $drop_off_car == 0
goto_if_false @SCRASH3_6756
if 
  107@ == 0
goto_if_false @SCRASH3_6430
if 
  not is_point_on_screen -1709.886 {y} 899.3372 {z} 23.7422 {radius} 5.0
goto_if_false @SCRASH3_6430
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1709.886 {leftBottomY} 899.3372 {leftBottomZ} 23.7422 {rightTopX} 20.0 {rightTopY} 20.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @SCRASH3_6430
clear_area -1709.886 {y} 899.3372 {z} 23.7422 {radius} 5.0 {clearParticles} False
$sc3_missioncar = create_car 551 {x} -1611.379 {y} 725.24 {z} 11.8774
set_car_heading $sc3_missioncar {heading} 0.0
107@ = 1

:SCRASH3_6430
if 
  107@ == 0
goto_if_false @SCRASH3_6593
if 
  not is_point_on_screen -1674.725 {y} 933.5232 {z} 23.7365 {radius} 5.0
goto_if_false @SCRASH3_6593
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1674.725 {leftBottomY} 933.5232 {leftBottomZ} 23.7365 {rightTopX} 20.0 {rightTopY} 20.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @SCRASH3_6593
clear_area -1674.725 {y} 933.5232 {z} 23.7365 {radius} 5.0 {clearParticles} False
$sc3_missioncar = create_car 551 {x} -1674.725 {y} 933.5232 {z} 23.7365
set_car_heading $sc3_missioncar {heading} 90.0
107@ = 1

:SCRASH3_6593
if 
  107@ == 0
goto_if_false @SCRASH3_6756
if 
  not is_point_on_screen -1791.158 {y} 877.27 {z} 23.75 {radius} 5.0
goto_if_false @SCRASH3_6756
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -1791.158 {leftBottomY} 877.27 {leftBottomZ} 23.75 {rightTopX} 20.0 {rightTopY} 20.0 {rightTopZ} 20.0 {drawSphere} False
goto_if_false @SCRASH3_6756
clear_area -1791.158 {y} 877.27 {z} 23.75 {radius} 5.0 {clearParticles} False
$sc3_missioncar = create_car 551 {x} -1791.158 {y} 877.27 {z} 23.75
set_car_heading $sc3_missioncar {heading} 0.0
107@ = 1

:SCRASH3_6756
if 
  107@ == 1
goto_if_false @SCRASH3_6994
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_6994
change_car_colour $sc3_missioncar {color1} 4 {color2} 4
set_car_can_go_against_traffic $sc3_missioncar {state} False
37@ = create_char PedType.CivMale {modelId} 240 {x} -1611.454 {y} 714.3873 {z} 12.4715
set_char_health 37@ {health} 200
set_char_max_health 37@ {maxHealth} 200
if 
  not is_char_in_any_car 37@
goto_if_false @SCRASH3_6876
clear_char_tasks_immediately 37@
warp_char_into_car 37@ {vehicle} $sc3_missioncar

:SCRASH3_6876
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_6973
86@ = open_sequence_task 
task_pause -1 {time} 10000
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1758.877 {y} 952.744 {z} 23.7487 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_leave_car -1 {vehicle} $sc3_missioncar
task_say -1 {phrase} SpeechId.ValetParkCar
task_wander_standard -1
close_sequence_task 86@
perform_sequence_task 37@ {sequence} 86@
clear_sequence_task 86@

:SCRASH3_6973
68@ = 1
$sc3_missioncar_alive = 1
107@ = 2

:SCRASH3_6994
if 
  68@ == 1
goto_if_false @SCRASH3_7212
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_7164
if 
  is_char_in_car 37@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_7116
105@ = get_script_task_status 37@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 105@ == 1
goto_if_false @SCRASH3_7109
105@ = get_sequence_progress 37@
if 
  105@ == 2
goto_if_false @SCRASH3_7109
106@ = 1

:SCRASH3_7109
goto @SCRASH3_7164

:SCRASH3_7116
if 
  106@ <> 1
goto_if_false @SCRASH3_7164
gosub @SCRASH3_17374
print 'VAL_A1' {time} 4000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_7164
if 
  is_char_dead 37@
goto_if_false @SCRASH3_7212
clear_prints 
gosub @SCRASH3_17374
print 'VAL_34' {time} 4000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_7212
if 
  65@ > 6
goto_if_false @SCRASH3_7289
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_7289
if 
  not locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @SCRASH3_7289
delete_char 37@
68@ = 0

:SCRASH3_7289
if 
  65@ > 5
goto_if_false @SCRASH3_7462
if and
  108@ == 0
  112@ == 0
goto_if_false @SCRASH3_7462
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_7462
79@ = get_driver_of_car $sc3_missioncar
if and
  not is_int_lvar_equal_to_int_lvar 79@ == 37@
  not is_int_lvar_equal_to_int_var 79@ == $scplayer
  79@ <> -1
goto_if_false @SCRASH3_7462
print 'VAL_A28' {time} 4000 {flag} 1
remove_blip 60@
60@ = add_blip_for_car $sc3_missioncar
remove_blip 57@
56@ = 0
108@ = 1
set_lvar_float_to_var_float 109@ = $parking_x
set_lvar_float_to_var_float 110@ = $parking_y
set_lvar_float_to_var_float 111@ = $parking_z

:SCRASH3_7462
if 
  108@ == 1
goto_if_false @SCRASH3_7599
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_7599
if 
  locate_car_3d $sc3_missioncar {x} 109@ {y} 110@ {z} 111@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH3_7568
gosub @SCRASH3_17374
print 'VAL_A29' {time} 4000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_7568
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_7599
108@ = 2
remove_blip 60@

:SCRASH3_7599
if 
  65@ == 6
goto_if_false @SCRASH3_8396
if 
  56@ == 1
goto_if_false @SCRASH3_7850
if 
  69@ == 0
goto_if_false @SCRASH3_7772
if 
  not locate_char_any_means_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SCRASH3_7772
clear_prints 
if or
  not is_char_dead $valet[1]
  not is_char_dead $valet[0]
goto_if_false @SCRASH3_7740
print_now 'VAL_49' {time} 5000 {flag} 1

:SCRASH3_7740
remove_blip 57@
57@ = add_blip_for_coord -1759.026 {y} 960.4122 {z} 23.8905
69@ = 1

:SCRASH3_7772
if 
  69@ == 1
goto_if_false @SCRASH3_7850
if 
  locate_char_on_foot_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SCRASH3_7850
remove_blip 57@
69@ = 0

:SCRASH3_7850
if 
  56@ == 1
goto_if_false @SCRASH3_8162
if 
  locate_char_any_means_3d $scplayer {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SCRASH3_8162
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8162
if 
  locate_car_3d $sc3_missioncar {x} -1757.907 {y} 952.8868 {z} 25.9104 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SCRASH3_8162
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_8162
if 
  is_char_in_car 37@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8162
if 
  not is_char_dead $valet[1]
goto_if_false @SCRASH3_8086
if 
  locate_char_any_means_3d $valet[1] {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_8086
56@ = 2

:SCRASH3_8086
if 
  not is_char_dead $valet[0]
goto_if_false @SCRASH3_8157
if 
  locate_char_any_means_3d $valet[0] {x} -1759.026 {y} 960.4122 {z} 23.8905 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_8157
56@ = 2

:SCRASH3_8157
remove_blip 57@

:SCRASH3_8162
if 
  56@ == 2
goto_if_false @SCRASH3_8196
56@ = 3
clear_prints 
281@ = 14

:SCRASH3_8196
if 
  106@ == 1
goto_if_false @SCRASH3_8396
77@ = get_car_char_is_using $scplayer
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_8396
78@ = get_car_char_is_using 37@
if 
  not is_int_lvar_equal_to_int_lvar 77@ == 78@
goto_if_false @SCRASH3_8396
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8396
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8396
clear_prints 
print 'VAL_15' {time} 7000 {flag} 1
65@ = 7
remove_blip 57@
remove_blip 59@
59@ = add_blip_for_coord -2045.252 {y} 178.7994 {z} 27.8359
set_car_health $sc3_missioncar {health} 1000
$sc3_countdown = 150000
display_onscreen_timer_with_string $sc3_countdown {direction} TimerDirection.Down {text} 'VAL_21'
67@ = 1

:SCRASH3_8396
if 
  65@ > 6
goto_if_false @SCRASH3_8625
if or
  10 > 65@
  65@ == 13
  65@ == 20
goto_if_false @SCRASH3_8625
if 
  112@ <> 1
goto_if_false @SCRASH3_8625
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8625
if 
  not is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8569
if 
  85@ == 1
goto_if_false @SCRASH3_8569
85@ = 0
remove_blip 60@
60@ = add_blip_for_car $sc3_missioncar
set_blip_as_friendly 60@ {state} True
change_blip_display 59@ {display} BlipDisplay.Neither
clear_prints 
print 'VAL_29' {time} 5000 {flag} 1

:SCRASH3_8569
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8625
if 
  85@ == 0
goto_if_false @SCRASH3_8625
85@ = 1
remove_blip 60@
change_blip_display 59@ {display} BlipDisplay.BlipOnly

:SCRASH3_8625
if 
  65@ == 7
goto_if_false @SCRASH3_8778
if 
  locate_char_in_car_3d $scplayer {x} -2033.626 {y} 178.856 {z} 27.8359 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_8778
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8778
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_8778
remove_blip 59@
59@ = add_blip_for_coord -2045.947 {y} 178.5964 {z} 28.1397
change_blip_display 59@ {display} BlipDisplay.BlipOnly
clear_prints 
open_garage 'HBGDSFS'
65@ = 80

:SCRASH3_8778
if 
  65@ == 80
goto_if_false @SCRASH3_8978
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_8978
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2038.0551 {y} 186.7164 {z} 31.0085 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.704 {y} 185.8301 {z} 30.7068 {switchStyle} SwitchType.JumpCut
set_car_coordinates $sc3_missioncar {x} -2033.626 {y} 178.856 {z} 27.8359
set_car_heading $sc3_missioncar {heading} 90.0
114@ = open_sequence_task 
task_pause -1 {time} 1000
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -2047.517 {y} 178.5924 {z} 27.8359 {speed} 7.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_any_car -1
close_sequence_task 114@
perform_sequence_task $scplayer {sequence} 114@
clear_sequence_task 114@
65@ = 81

:SCRASH3_8978
if 
  65@ == 81
goto_if_false @SCRASH3_9039
105@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 105@ == 7
goto_if_false @SCRASH3_9039
do_fade 700 {direction} Fade.Out
65@ = 82

:SCRASH3_9039
if 
  65@ == 82
goto_if_false @SCRASH3_9104
if 
  not get_fading_status 
goto_if_false @SCRASH3_9104
close_garage 'HBGDSFS'
set_lvar_int_to_lvar_int 71@ = TIMERA
71@ += 1000
65@ = 83

:SCRASH3_9104
if 
  65@ == 83
goto_if_false @SCRASH3_9417
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 71@
goto_if_false @SCRASH3_9417
if 
  is_garage_closed 'HBGDSFS'
goto_if_false @SCRASH3_9417
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9222
41@, 42@, 43@ = get_car_coordinates $sc3_missioncar
50@ = get_car_heading $sc3_missioncar
75@, 76@ = get_car_colours $sc3_missioncar
delete_car $sc3_missioncar

:SCRASH3_9222
request_model 551

:SCRASH3_9227
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_9254
wait 0
goto @SCRASH3_9227

:SCRASH3_9254
$sc3_missioncar = create_car 551 {x} -2031.502 {y} 178.6435 {z} 27.8516
change_car_colour $sc3_missioncar {color1} 75@ {color2} 76@
set_car_heading $sc3_missioncar {heading} 270.0
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9322
warp_char_into_car $scplayer {vehicle} $sc3_missioncar

:SCRASH3_9322
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 500 {direction} Fade.In
remove_blip 59@
59@ = add_blip_for_coord -1780.069 {y} 970.9553 {z} 23.75
change_blip_display 59@ {display} BlipDisplay.BlipOnly
65@ = 8
clear_prints 
print 'VAL_20' {time} 5000 {flag} 1
print 'VAL_A31' {time} 5000 {flag} 1
set_player_control $player1 {state} True

:SCRASH3_9417
if 
  65@ == 20
goto_if_false @SCRASH3_9997
if 
  not locate_char_any_means_3d $scplayer {x} -2037.239 {y} 179.5294 {z} 28.316 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_9533
65@ = 7
remove_blip 59@
59@ = add_blip_for_coord -2033.626 {y} 178.856 {z} 27.8359
clear_prints 
print 'VAL_51' {time} 5000 {flag} 1

:SCRASH3_9533
if 
  locate_char_in_car_3d $scplayer {x} -2045.947 {y} 178.5964 {z} 28.1397 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SCRASH3_9997
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9997
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_9997
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} $sc3_missioncar {actionId} TempAction.HandbrakeStraight {time} 2000000
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9997
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_9997
do_fade 1000 {direction} Fade.Out

:SCRASH3_9680
if 
  get_fading_status 
goto_if_false @SCRASH3_9704
wait 0
goto @SCRASH3_9680

:SCRASH3_9704
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9763
41@, 42@, 43@ = get_car_coordinates $sc3_missioncar
50@ = get_car_heading $sc3_missioncar
75@, 76@ = get_car_colours $sc3_missioncar
delete_car $sc3_missioncar

:SCRASH3_9763
request_model 551

:SCRASH3_9768
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_9795
wait 0
goto @SCRASH3_9768

:SCRASH3_9795
$sc3_missioncar = create_car 551 {x} -2031.502 {y} 178.6435 {z} 27.8516
change_car_colour $sc3_missioncar {color1} 75@ {color2} 76@
set_car_heading $sc3_missioncar {heading} 270.0
set_target_car_for_mission_garage 'HBGDSFS' {vehicle} $sc3_missioncar
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_9877
warp_char_into_car $scplayer {vehicle} $sc3_missioncar

:SCRASH3_9877
set_camera_behind_player 
restore_camera_jumpcut 
wait 1000
do_fade 500 {direction} Fade.In

:SCRASH3_9893
if 
  get_fading_status 
goto_if_false @SCRASH3_9917
wait 0
goto @SCRASH3_9893

:SCRASH3_9917
remove_blip 59@
59@ = add_blip_for_coord -1780.069 {y} 970.9553 {z} 23.75
change_blip_display 59@ {display} BlipDisplay.BlipOnly
65@ = 8
clear_prints 
print 'VAL_20' {time} 5000 {flag} 1
print 'VAL_A31' {time} 5000 {flag} 1
set_player_control $player1 {state} True

:SCRASH3_9997
if 
  65@ == 8
goto_if_false @SCRASH3_10127
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_10127
if 
  locate_car_3d $sc3_missioncar {x} -1780.069 {y} 970.9553 {z} 23.75 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_10127
print 'VAL_32' {time} 5000 {flag} 1
remove_blip 59@
59@ = add_blip_for_coord -1688.214 {y} 987.1218 {z} 16.5855
65@ = 9

:SCRASH3_10127
if 
  67@ == 1
goto_if_false @SCRASH3_10195
if 
  $sc3_countdown == 0
goto_if_false @SCRASH3_10195
clear_prints 
gosub @SCRASH3_17374
print 'VAL_47' {time} 5000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_10195
if 
  65@ == 9
goto_if_false @SCRASH3_10631
if 
  85@ == 1
goto_if_false @SCRASH3_10631
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_10631
if 
  locate_stopped_car_3d $sc3_missioncar {x} -1688.214 {y} 987.1218 {z} 16.5855 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_10631
set_player_control $player1 {state} False
task_leave_any_car $scplayer
lock_car_doors $sc3_missioncar {lockStatus} CarLock.LockoutPlayerOnly
remove_blip 59@
remove_blip 60@
59@ = add_blip_for_coord -1742.3 {y} 940.8106 {z} 23.8972
change_blip_display 59@ {display} BlipDisplay.BlipOnly
clear_onscreen_timer $sc3_countdown
67@ = 0
clear_prints 
print 'VAL_A30' {time} 6000 {flag} 1
65@ = 30
113@ = create_char PedType.Mission1 {modelId} 189 {x} -1772.809 {y} 977.8892 {z} 22.6614
set_char_only_damaged_by_player 113@ {state} True
114@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1710.667 {y} 985.5689 {z} 16.5936 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} $sc3_missioncar {time} -2
task_car_temp_action -1 {vehicle} $sc3_missioncar {actionId} TempAction.ReverseRight {time} 1400
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1764.082 {y} 982.5382 {z} 21.1042 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_car_drive_to_coord -1 {vehicle} $sc3_missioncar {x} -1754.889 {y} 952.3113 {z} 23.7422 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1754.1169 {y} 959.0662 {z} 23.8828 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 147.0
close_sequence_task 114@
set_car_can_go_against_traffic $sc3_missioncar {state} False
37@ = create_char PedType.Mission1 {modelId} 240 {x} -1755.392 {y} 946.9804 {z} 23.8906
set_char_heading 37@ {heading} 0.0
perform_sequence_task 113@ {sequence} 114@
clear_sequence_task 114@

:SCRASH3_10631
if 
  65@ == 30
goto_if_false @SCRASH3_11099
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_11099
if 
  not is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_10731
if 
  112@ == 0
goto_if_false @SCRASH3_10731
set_player_control $player1 {state} True
112@ = 1
set_car_proofs $sc3_missioncar {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SCRASH3_10731
if 
  is_car_in_area_3d $sc3_missioncar {leftBottomX} -1764.199 {leftBottomY} 946.595 {leftBottomZ} 28.3546 {rightTopX} -1744.0861 {rightTopY} 957.879 {rightTopZ} 22.6221 {drawSphere} False
goto_if_false @SCRASH3_10870
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_10870
105@ = get_script_task_status 37@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 105@ == 7
goto_if_false @SCRASH3_10870
114@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} $sc3_missioncar {time} -2
task_car_drive_wander -1 {vehicle} $sc3_missioncar {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 114@
perform_sequence_task 37@ {sequence} 114@
clear_sequence_task 114@

:SCRASH3_10870
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_10937
if 
  is_char_in_car 37@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_10937
clear_prints 
gosub @SCRASH3_17374
print 'VAL_A34' {time} 5000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_10937
if 
  locate_char_on_foot_3d $scplayer {x} -1742.3 {y} 940.8106 {z} 23.8972 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_11018
67@ = 0
set_player_control $player1 {state} False
remove_blip 59@
65@ = 10
72@ = 90

:SCRASH3_11018
if 
  is_car_visibly_damaged $sc3_missioncar
goto_if_false @SCRASH3_11099
if 
  not is_char_dead 113@
goto_if_false @SCRASH3_11099
if 
  not is_char_in_car 113@ {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_11099
gosub @SCRASH3_17374
print 'VAL_B2' {time} 4000 {flag} 1
goto @SCRASH3_18128

:SCRASH3_11099
if 
  65@ > 7
goto_if_false @SCRASH3_11215
if 
  10 > 65@
goto_if_false @SCRASH3_11215
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_11215
if 
  is_car_visibly_damaged $sc3_missioncar
goto_if_false @SCRASH3_11215
65@ = 7
print 'VAL_31' {time} 5000 {flag} 1
remove_blip 59@
59@ = add_blip_for_coord -2045.252 {y} 178.7994 {z} 27.8359

:SCRASH3_11215
if 
  65@ == 10
goto_if_false @SCRASH3_14734
set_uses_collision_of_closest_object_of_type -1741.792 {y} 939.731 {z} 23.8906 {radius} 2.5 {modelId} #LAMPPOST3 {state} False
if 
  72@ == 90
goto_if_false @SCRASH3_11297
request_model 330
338@ = 1
72@ = 91

:SCRASH3_11297
if 
  72@ == 91
goto_if_false @SCRASH3_11513
if 
  has_model_loaded 330
goto_if_false @SCRASH3_11513
switch_widescreen True
set_fixed_camera_position -1738.083 {y} 938.6749 {z} 25.0378 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1738.96 {y} 939.1542 {z} 25.0127 {switchStyle} SwitchType.JumpCut
clear_area -1741.792 {y} 939.731 {z} 23.8906 {radius} 20.0 {clearParticles} False
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_11453
warp_char_from_car_to_coord $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906
goto @SCRASH3_11473

:SCRASH3_11453
set_char_coordinates $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906

:SCRASH3_11473
set_char_heading $scplayer {heading} 270.0
task_use_mobile_phone $scplayer {start} True
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 2500
72@ = 89

:SCRASH3_11513
if 
  72@ == 89
goto_if_false @SCRASH3_11571
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_11571
281@ = 1
282@ = 2
72@ = 88

:SCRASH3_11571
if 
  72@ == 88
goto_if_false @SCRASH3_11642
if and
  281@ == 0
  282@ == 0
goto_if_false @SCRASH3_11642
task_use_mobile_phone $scplayer {start} False
do_fade 1000 {direction} Fade.Out
$sc3_missioncar_alive = 0
72@ = 87

:SCRASH3_11642
if 
  72@ == 87
goto_if_false @SCRASH3_11774
if 
  not get_fading_status 
goto_if_false @SCRASH3_11774
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_11694
delete_char 37@

:SCRASH3_11694
72@ = 99
$freeze_creating_drop_off_cars = 1
if 
  not is_car_dead $drop_off_car
goto_if_false @SCRASH3_11729
delete_car $drop_off_car

:SCRASH3_11729
if 
  not is_car_dead $valet_pickup_car
goto_if_false @SCRASH3_11750
delete_car $valet_pickup_car

:SCRASH3_11750
clear_area -1741.792 {y} 939.731 {z} 23.0 {radius} 80.0 {clearParticles} False

:SCRASH3_11774
if 
  72@ == 99
goto_if_false @SCRASH3_12005
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
$pause_valet_script = 1
request_collision -1759.449 {y} 954.4333
load_scene -1759.449 {y} 954.4333 {z} 23.72
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_11885
warp_char_from_car_to_coord $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906
goto @SCRASH3_11905

:SCRASH3_11885
set_char_coordinates $scplayer {x} -1741.792 {y} 939.731 {z} 23.8906

:SCRASH3_11905
set_char_heading $scplayer {heading} 40.0
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -1738.083 {y} 938.6749 {z} 25.0378 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1738.96 {y} 939.1542 {z} 25.0127 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_11998
delete_car $sc3_missioncar

:SCRASH3_11998
72@ = 98

:SCRASH3_12005
if 
  72@ == 98
goto_if_false @SCRASH3_12182
if and
  has_model_loaded 551
  has_model_loaded 346
  has_model_loaded 240
  has_animation_loaded "POLICE"
  has_animation_loaded "MISC"
goto_if_false @SCRASH3_12149
if and
  has_model_loaded 281
  has_car_recording_been_loaded 165
  has_car_recording_been_loaded 166
  has_model_loaded 597
goto_if_false @SCRASH3_12122
72@ = 0
mark_model_as_no_longer_needed 415
mark_model_as_no_longer_needed 252
goto @SCRASH3_12142

:SCRASH3_12122
request_model 597
request_car_recording 166
request_car_recording 165
request_model 281

:SCRASH3_12142
goto @SCRASH3_12182

:SCRASH3_12149
request_animation "MISC"
request_animation "POLICE"
request_model 240
request_model 346
request_model 551

:SCRASH3_12182
if 
  72@ == 0
goto_if_false @SCRASH3_12645
do_fade 800 {direction} Fade.In
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -1759.449 {y} 954.4333 {z} 23.72 {radius} 50.0 {clearParticles} False
set_car_density_multiplier 0.0
$sc3_missioncar = create_car 551 {x} -1759.449 {y} 954.4333 {z} 23.72
change_car_colour $sc3_missioncar {color1} 4 {color2} 4
115@ = create_car 597 {x} -1711.399 {y} 903.0281 {z} 24.1296
116@ = create_car 597 {x} -1711.016 {y} 893.7642 {z} 24.0975
switch_car_siren 115@ {state} True
switch_car_siren 116@ {state} True
121@ = create_char_inside_car 115@ {pedType} PedType.CivMale {modelId} 281
122@ = create_char_inside_car 116@ {pedType} PedType.CivMale {modelId} 281
give_weapon_to_char 121@ {weaponType} WeaponType.Pistol {ammo} 99999
give_weapon_to_char 122@ {weaponType} WeaponType.Pistol {ammo} 99999
37@ = create_char PedType.CivMale {modelId} 240 {x} -1763.276 {y} 946.1676 {z} 23.8905
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_12436
warp_char_into_car 37@ {vehicle} $sc3_missioncar

:SCRASH3_12436
117@ = open_sequence_task 
task_pause -1 {time} 6500
task_leave_any_car -1
task_hands_up -1 {time} 3000
close_sequence_task 117@
perform_sequence_task 37@ {sequence} 117@
clear_sequence_task 117@
set_car_heading $sc3_missioncar {heading} 90.0
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "PLYRLEAN_LOOP" {animationFile} "MISC" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -2
$cunt_x, $cunt_y, $player_z = get_char_coordinates $scplayer
set_fixed_camera_position -1740.345 {y} 939.6078 {z} 25.3651 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1741.223 {y} 940.0797 {z} 25.2814 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 325@ = 37@
set_lvar_int_to_lvar_int 326@ = 121@
set_lvar_int_to_lvar_int 327@ = 122@
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 1000
72@ = 1

:SCRASH3_12645
if 
  72@ == 1
goto_if_false @SCRASH3_12689
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_12689
72@ = 2

:SCRASH3_12689
if 
  72@ == 2
goto_if_false @SCRASH3_12825
if and
  not is_car_dead 115@
  not is_car_dead 116@
goto_if_false @SCRASH3_12802
if and
  has_car_recording_been_loaded 165
  has_car_recording_been_loaded 166
goto_if_false @SCRASH3_12792
start_playback_recorded_car 115@ {path} 165
start_playback_recorded_car 116@ {path} 166
set_playback_speed 115@ {speed} 0.8
set_playback_speed 116@ {speed} 0.8
goto @SCRASH3_12802

:SCRASH3_12792
request_car_recording 165
request_car_recording 166

:SCRASH3_12802
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 3000
72@ = 3

:SCRASH3_12825
if 
  72@ == 3
goto_if_false @SCRASH3_12869
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_12869
72@ = 4

:SCRASH3_12869
if 
  72@ == 4
goto_if_false @SCRASH3_13087
clear_prints 
281@ = 3
282@ = 2
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_13064
if 
  not is_char_dead 121@
goto_if_false @SCRASH3_12972
117@ = open_sequence_task 
task_leave_any_car -1
task_aim_gun_at_char -1 {target} 37@ {time} 3000
close_sequence_task 117@
perform_sequence_task 121@ {sequence} 117@
clear_sequence_task 117@

:SCRASH3_12972
if 
  not is_char_dead 122@
goto_if_false @SCRASH3_13064
117@ = open_sequence_task 
task_leave_any_car -1
task_go_to_coord_while_aiming -1 {x} -1762.369 {y} 951.1278 {z} 23.7487 {speed} MoveState.Walk {turnRadius} 1.0 {stopRadius} 1.0 {target} 37@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
close_sequence_task 117@
perform_sequence_task 122@ {sequence} 117@
clear_sequence_task 117@

:SCRASH3_13064
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 6200
72@ = 5

:SCRASH3_13087
if 
  72@ == 5
goto_if_false @SCRASH3_13149
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13149
if 
  281@ == 0
goto_if_false @SCRASH3_13149
72@ = 6

:SCRASH3_13149
if 
  72@ == 6
goto_if_false @SCRASH3_13566
281@ = 5
282@ = 3
set_lvar_int_to_lvar_int 120@ = TIMERA
120@ += 17333
set_lvar_int_to_lvar_int 119@ = TIMERA
119@ += 17633
set_lvar_int_to_lvar_int 118@ = TIMERA
118@ += 4313
if and
  not is_char_dead 121@
  not is_char_dead 122@
goto_if_false @SCRASH3_13274
set_current_char_weapon 121@ {weaponType} WeaponType.Unarmed
set_current_char_weapon 122@ {weaponType} WeaponType.Unarmed
set_char_heading 121@ {heading} 0.0

:SCRASH3_13274
set_fixed_camera_position -1768.048 {y} 955.8058 {z} 25.1327 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1767.238 {y} 955.2321 {z} 25.0132 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_13346
pop_car_boot $sc3_missioncar

:SCRASH3_13346
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_13454
clear_char_tasks_immediately 37@
set_char_collision 37@ {state} False
set_char_coordinates 37@ {x} -1761.71 {y} 952.9333 {z} 23.79
set_char_heading 37@ {heading} 0.0
freeze_char_position 37@ {state} True
task_play_anim_non_interruptable 37@ {animationName} "CRM_DRGBST_01" {animationFile} "POLICE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SCRASH3_13454
set_char_coordinates 121@ {x} -1761.724 {y} 952.4515 {z} 23.72
clear_char_tasks_immediately 122@
set_char_coordinates 122@ {x} -1755.75 {y} 953.9333 {z} 23.72
task_play_anim_non_interruptable 121@ {animationName} "PLC_DRGBST_01" {animationFile} "POLICE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 25000
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 7606
72@ = 7

:SCRASH3_13566
if 
  72@ == 7
goto_if_false @SCRASH3_13680
if 
  118@ <> 0
goto_if_false @SCRASH3_13636
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 118@
goto_if_false @SCRASH3_13636
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundBonnetDent
118@ = 0

:SCRASH3_13636
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13680
if 
  281@ == 0
goto_if_false @SCRASH3_13680
72@ = 8

:SCRASH3_13680
if 
  72@ == 8
goto_if_false @SCRASH3_13855
281@ = 8
282@ = 2
set_fixed_camera_position -1757.7469 {y} 952.7751 {z} 24.8666 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1756.9091 {y} 953.301 {z} 25.0154 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 122@
goto_if_false @SCRASH3_13832
set_char_heading 122@ {heading} 90.0
task_play_anim_non_interruptable 122@ {animationName} "PLC_DRGBST_02" {animationFile} "POLICE" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SCRASH3_13832
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 3267
72@ = 9

:SCRASH3_13855
if 
  72@ == 9
goto_if_false @SCRASH3_13917
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_13917
if 
  281@ == 0
goto_if_false @SCRASH3_13917
72@ = 10

:SCRASH3_13917
if 
  72@ == 10
goto_if_false @SCRASH3_14023
281@ = 10
282@ = 2
set_fixed_camera_position -1768.048 {y} 955.8058 {z} 25.1327 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1767.238 {y} 955.2321 {z} 25.0132 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 750
72@ = 80

:SCRASH3_14023
if 
  72@ == 80
goto_if_false @SCRASH3_14091
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 120@
goto_if_false @SCRASH3_14091
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundPunchPed
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 500
72@ = 81

:SCRASH3_14091
if 
  72@ == 81
goto_if_false @SCRASH3_14159
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 119@
goto_if_false @SCRASH3_14159
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundBonnetDent
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 1900
72@ = 11

:SCRASH3_14159
if and
  72@ == 11
  281@ == 0
goto_if_false @SCRASH3_14448
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_14448
set_fixed_camera_position -1738.083 {y} 938.6749 {z} 25.0378 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1738.96 {y} 939.1542 {z} 25.0127 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 121@
  not is_char_dead 122@
  not is_car_dead 115@
  not is_car_dead 116@
  not is_char_dead 37@
goto_if_false @SCRASH3_14425
warp_char_into_car 121@ {vehicle} 115@
warp_char_into_car 122@ {vehicle} 116@
freeze_char_position 37@ {state} False
warp_char_into_car_as_passenger 37@ {handle} 116@ {seat} SeatId.RearLeft
task_car_drive_to_coord 122@ {vehicle} 116@ {x} -1790.405 {y} 905.0311 {z} 25.0203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
117@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 115@ {actionId} TempAction.ReverseRight {time} 800
task_car_drive_to_coord -1 {vehicle} 115@ {x} -1790.405 {y} 905.0311 {z} 25.0203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 117@
perform_sequence_task 121@ {sequence} 117@
clear_sequence_task 117@

:SCRASH3_14425
set_lvar_int_to_lvar_int 123@ = TIMERA
123@ += 4000
72@ = 12

:SCRASH3_14448
if 
  72@ == 12
goto_if_false @SCRASH3_14734
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 123@
goto_if_false @SCRASH3_14734
72@ = 13
do_fade 1000 {direction} Fade.Out

:SCRASH3_14499
if 
  get_fading_status 
goto_if_false @SCRASH3_14523
wait 0
goto @SCRASH3_14499

:SCRASH3_14523
if 
  does_char_exist 113@
goto_if_false @SCRASH3_14544
delete_char 113@

:SCRASH3_14544
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_14565
mark_car_as_no_longer_needed $sc3_missioncar

:SCRASH3_14565
if and
  not is_char_dead 121@
  not is_char_dead 122@
  not is_car_dead 115@
  not is_car_dead 116@
  not is_char_dead 37@
goto_if_false @SCRASH3_14626
delete_char 121@
delete_char 122@
delete_car 115@
delete_car 116@
delete_char 37@

:SCRASH3_14626
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_14647
delete_car $sc3_missioncar

:SCRASH3_14647
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_14688
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:SCRASH3_14688
wait 1000
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
clear_char_tasks_immediately $scplayer
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
goto @SCRASH3_18160

:SCRASH3_14734
if 
  65@ == 13
goto_if_false @SCRASH3_15198
if 
  locate_stopped_char_in_car_3d $scplayer {x} -2045.252 {y} 178.7994 {z} 27.8359 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @SCRASH3_14800

:SCRASH3_14800
if 
  is_char_in_area_in_car_3d $scplayer {leftBottomX} -2042.943 {leftBottomY} 167.5841 {leftBottomZ} 26.759 {rightTopX} -2055.2019 {rightTopY} 180.1328 {rightTopZ} 32.3919 {drawSphere} False
goto_if_false @SCRASH3_15198
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_15198
if 
  is_char_in_car $scplayer {vehicle} $sc3_missioncar
goto_if_false @SCRASH3_15198
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:SCRASH3_14897
if 
  get_fading_status 
goto_if_false @SCRASH3_14921
wait 0
goto @SCRASH3_14897

:SCRASH3_14921
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_14980
41@, 42@, 43@ = get_car_coordinates $sc3_missioncar
50@ = get_car_heading $sc3_missioncar
75@, 76@ = get_car_colours $sc3_missioncar
delete_car $sc3_missioncar

:SCRASH3_14980
request_model 551

:SCRASH3_14985
if 
  not has_model_loaded 551
goto_if_false @SCRASH3_15012
wait 0
goto @SCRASH3_14985

:SCRASH3_15012
$sc3_missioncar = create_car 551 {x} -2031.502 {y} 178.6435 {z} 27.8516
change_car_colour $sc3_missioncar {color1} 75@ {color2} 76@
set_car_heading $sc3_missioncar {heading} 270.0
set_target_car_for_mission_garage 'HBGDSFS' {vehicle} $sc3_missioncar
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_15094
warp_char_into_car $scplayer {vehicle} $sc3_missioncar

:SCRASH3_15094
wait 1000
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:SCRASH3_15117
if 
  get_fading_status 
goto_if_false @SCRASH3_15141
wait 0
goto @SCRASH3_15117

:SCRASH3_15141
remove_blip 59@
59@ = add_blip_for_coord -1780.069 {y} 970.9553 {z} 23.75
change_blip_display 59@ {display} BlipDisplay.BlipOnly
65@ = 8
clear_prints 
print 'VAL_33' {time} 5000 {flag} 1

:SCRASH3_15198
if 
  65@ == 11
goto_if_false @SCRASH3_15216

:SCRASH3_15216
goto @SCRASH3_636

:SCRASH3_15223
if 
  151@ <> 0
goto_if_false @SCRASH3_15414
if 
  150@ == 0
goto_if_false @SCRASH3_15277
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 151@
150@ = 1

:SCRASH3_15277
if 
  150@ == 1
goto_if_false @SCRASH3_15340
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SCRASH3_15340
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 153@
goto_if_false @SCRASH3_15340
play_mission_audio MissionAudioSlot.Slot3
150@ = 2

:SCRASH3_15340
if 
  150@ == 2
goto_if_false @SCRASH3_15414
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @SCRASH3_15414
clear_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 151@ = 152@
152@ = 0
set_lvar_int_to_lvar_int 153@ = 154@
154@ = 0
150@ = 0

:SCRASH3_15414
if 
  124@ <> 0
goto_if_false @SCRASH3_15614
if 
  125@ == 0
goto_if_false @SCRASH3_15492
125@ = 1
set_lvar_int_to_lvar_int 126@ = TIMERA
127@ = 0
set_lvar_int_to_lvar_int 334@ = 126@
add_int_lvar_to_int_lvar 334@ += 128@(127@,10i)

:SCRASH3_15492
if 
  125@ == 1
goto_if_false @SCRASH3_15614
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 334@
goto_if_false @SCRASH3_15614
set_lvar_int_to_lvar_int 281@ = 138@(127@,10i)
127@ += 1
148@ -= 1
if 
  148@ == 0
goto_if_false @SCRASH3_15594
124@ = 0
125@ = 0
goto @SCRASH3_15614

:SCRASH3_15594
set_lvar_int_to_lvar_int 334@ = 126@
add_int_lvar_to_int_lvar 334@ += 128@(127@,10i)

:SCRASH3_15614
if 
  149@ == 1
goto_if_false @SCRASH3_15678
if 
  not get_fading_status 
goto_if_false @SCRASH3_15678
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SCRASH3_15678
149@ = 0
280@ = 5

:SCRASH3_15678
switch_start 280@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SCRASH3_17372 {caseNum1} 0 {caseLabel1} @SCRASH3_15741 {caseNum2} 1 {caseLabel2} @SCRASH3_16293 {caseNum3} 2 {caseLabel3} @SCRASH3_17027 {caseNum4} 3 {caseLabel4} @SCRASH3_17119 {caseNum5} 4 {caseLabel5} @SCRASH3_17177 {caseNum6} 5 {caseLabel6} @SCRASH3_17291 {caseNum7} -1 {caseLabel7} @SCRASH3_17372

:SCRASH3_15741
if 
  280@ == 1
goto_if_false @SCRASH3_15809
332@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
336@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125

:SCRASH3_15809
set_lvar_text_label 157@s = 'SCR1_AA'
set_lvar_text_label 159@s = 'SCR1_AB'
set_lvar_text_label 161@s = 'SCR1_AC'
set_lvar_text_label 163@s = 'SCR1_AD'
set_lvar_text_label 165@s = 'SCR1_AE'
set_lvar_text_label 167@s = 'SCR1_AF'
set_lvar_text_label 169@s = 'SCR1_AG'
set_lvar_text_label 171@s = 'SCR1_AH'
set_lvar_text_label 173@s = 'SCR1_AJ'
set_lvar_text_label 175@s = 'SCR1_AK'
set_lvar_text_label 177@s = 'SCR1_AL'
set_lvar_text_label 179@s = 'SCR1_AM'
set_lvar_text_label 181@s = 'SCR1_BB'
set_lvar_text_label 183@s = 'SCR1_BA'
set_lvar_int_to_constant 236@ = 34400
set_lvar_int_to_constant 237@ = 34401
set_lvar_int_to_constant 238@ = 34402
set_lvar_int_to_constant 239@ = 34403
set_lvar_int_to_constant 240@ = 34404
set_lvar_int_to_constant 241@ = 34405
set_lvar_int_to_constant 242@ = 34406
set_lvar_int_to_constant 243@ = 34407
set_lvar_int_to_constant 244@ = 34408
set_lvar_int_to_constant 245@ = 34409
set_lvar_int_to_constant 246@ = 34410
set_lvar_int_to_constant 247@ = 34411
set_lvar_int_to_constant 248@ = 34413
set_lvar_int_to_constant 249@ = 34412
284@ = 1
285@ = 1
286@ = 3
287@ = 3
288@ = 2
289@ = 2
290@ = 3
291@ = 4
292@ = 4
293@ = 2
294@ = 3
295@ = 3
296@ = 0
297@ = 0
set_lvar_int_to_var_int 324@ = $scplayer
280@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 236@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 237@
276@ = 1
277@ = 2
goto @SCRASH3_17372

:SCRASH3_16293
if 
  281@ <> 0
goto_if_false @SCRASH3_17020
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SCRASH3_17020
if 
  is_int_lvar_equal_to_int_lvar 276@ == 281@
goto_if_false @SCRASH3_16363
278@ = 1
goto @SCRASH3_16426

:SCRASH3_16363
if 
  is_int_lvar_equal_to_int_lvar 277@ == 281@
goto_if_false @SCRASH3_16396
278@ = 2
goto @SCRASH3_16426

:SCRASH3_16396
278@ = 1
set_lvar_int_to_lvar_int 276@ = 281@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 235@(281@,40i)

:SCRASH3_16426
if 
  has_mission_audio_loaded 278@
goto_if_false @SCRASH3_17008
set_lvar_int_to_lvar_int 331@ = 283@(281@,40i)
set_lvar_int_to_lvar_int 332@ = 323@(331@,7i)
if 
  338@ <> 1
goto_if_false @SCRASH3_16654
335@ = 1
337@ = 0

:SCRASH3_16498
if 
  7 > 335@
goto_if_false @SCRASH3_16654
set_lvar_int_to_lvar_int 336@ = 323@(335@,7i)
if 
  336@ <> 0
goto_if_false @SCRASH3_16640
if 
  not is_int_lvar_equal_to_int_lvar 336@ == 332@
goto_if_false @SCRASH3_16640
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_16640
if 
  not is_char_dead 336@
goto_if_false @SCRASH3_16640
if 
  locate_char_any_means_char_3d 332@ {target} 336@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SCRASH3_16640
337@ += 1

:SCRASH3_16640
335@ += 1
goto @SCRASH3_16498

:SCRASH3_16654
if or
  338@ == 1
  337@ > 0
  283@(281@,40i) == 0
goto_if_false @SCRASH3_17001
if 
  283@(281@,40i) <> 0
goto_if_false @SCRASH3_16781
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_16781
attach_mission_audio_to_char 278@ {handle} 332@
if 
  not is_char_talking 332@
goto_if_false @SCRASH3_16774
330@ = 1
start_char_facial_talk 332@ {duration} 15000
goto @SCRASH3_16781

:SCRASH3_16774
disable_char_speech 332@ {stopNow} False

:SCRASH3_16781
if 
  283@(281@,40i) == 0
goto_if_false @SCRASH3_16810
330@ = 1

:SCRASH3_16810
if 
  330@ == 1
goto_if_false @SCRASH3_17001
play_mission_audio 278@
clear_prints 
print 155@(281@,40s) {time} 10000 {flag} 1
280@ += 1
330@ = 0
281@ += 1
set_lvar_int_to_lvar_int 279@ = 281@
if 
  235@(281@,40i) <> 0
goto_if_false @SCRASH3_17001
if 
  278@ == 1
goto_if_false @SCRASH3_16963
if 
  not is_int_lvar_equal_to_int_lvar 277@ == 281@
goto_if_false @SCRASH3_16956
load_mission_audio MissionAudioSlot.Slot2 {audioId} 235@(281@,40i)
set_lvar_int_to_lvar_int 277@ = 281@

:SCRASH3_16956
goto @SCRASH3_17001

:SCRASH3_16963
if 
  not is_int_lvar_equal_to_int_lvar 276@ == 281@
goto_if_false @SCRASH3_17001
load_mission_audio MissionAudioSlot.Slot1 {audioId} 235@(281@,40i)
set_lvar_int_to_lvar_int 276@ = 281@

:SCRASH3_17001
goto @SCRASH3_17020

:SCRASH3_17008
load_mission_audio 278@ {audioId} 235@(281@,40i)

:SCRASH3_17020
goto @SCRASH3_17372

:SCRASH3_17027
if 
  has_mission_audio_finished 278@
goto_if_false @SCRASH3_17057
280@ += 1
goto @SCRASH3_17112

:SCRASH3_17057
if 
  does_char_exist 332@
goto_if_false @SCRASH3_17096
if 
  is_char_dead 332@
goto_if_false @SCRASH3_17096
280@ += 1

:SCRASH3_17096
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_17112

:SCRASH3_17112
goto @SCRASH3_17372

:SCRASH3_17119
clear_mission_audio 278@
275@(278@,3i) = 0
clear_prints 
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_17163
stop_char_facial_talk 332@
enable_char_speech 332@

:SCRASH3_17163
280@ += 1
goto @SCRASH3_17372

:SCRASH3_17177
281@ += 1
if 
  235@(281@,40i) <> 0
goto_if_false @SCRASH3_17230
load_mission_audio 278@ {audioId} 235@(281@,40i)
set_lvar_int_to_lvar_int 275@(278@,3i) = 281@

:SCRASH3_17230
282@ -= 1
if 
  282@ <= 0
goto_if_false @SCRASH3_17269
281@ = 0
goto @SCRASH3_17277

:SCRASH3_17269
set_lvar_int_to_lvar_int 281@ = 279@

:SCRASH3_17277
280@ = 1
goto @SCRASH3_17372

:SCRASH3_17291
280@ = 1
281@ = 0
282@ = 0
124@ = 0
148@ = 0
clear_mission_audio 278@
275@(278@,3i) = 0
clear_prints 
if 
  not is_char_dead 332@
goto_if_false @SCRASH3_17365
enable_char_speech 332@

:SCRASH3_17365
goto @SCRASH3_17372

:SCRASH3_17372
return 

:SCRASH3_17374
clear_prints 
if 
  not is_minigame_in_progress 
goto_if_false @SCRASH3_17396
set_player_control $player1 {state} False

:SCRASH3_17396
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2039.153 {leftBottomY} 182.7238 {leftBottomZ} 20.8154 {rightTopX} -2057.0869 {rightTopY} 150.6935 {rightTopZ} 34.1252 {drawSphere} False
goto_if_false @SCRASH3_17792
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_17785
do_fade 1000 {direction} Fade.Out

:SCRASH3_17476
if 
  get_fading_status 
goto_if_false @SCRASH3_17500
wait 0
goto @SCRASH3_17476

:SCRASH3_17500
$car = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_17551
$car = get_car_char_is_using $scplayer
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:SCRASH3_17551
clear_area_of_cars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
clear_area_of_chars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
set_char_coordinates_no_offset $scplayer {x} -2037.886 {y} 178.9478 {z} 27.8359
set_char_heading $scplayer {heading} 270.0
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_17682
if 
  not is_char_in_any_car 37@
goto_if_false @SCRASH3_17682
delete_char 37@

:SCRASH3_17682
set_player_control $player1 {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$valet_mission_terminate = 1
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:SCRASH3_17761
if 
  get_fading_status 
goto_if_false @SCRASH3_17785
wait 0
goto @SCRASH3_17761

:SCRASH3_17785
goto @SCRASH3_18126

:SCRASH3_17792
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @SCRASH3_18126
do_fade 1000 {direction} Fade.Out

:SCRASH3_17824
if 
  get_fading_status 
goto_if_false @SCRASH3_17848
wait 0
goto @SCRASH3_17824

:SCRASH3_17848
$car = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH3_17899
$car = get_car_char_is_using $scplayer
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:SCRASH3_17899
clear_area_of_cars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
clear_area_of_chars -2039.056 {leftBottomY} 182.7439 {leftBottomZ} 32.4018 {rightTopX} -2057.3411 {rightTopY} 150.5405 {rightTopZ} 27.7805
if 
  not is_car_dead $car
goto_if_false @SCRASH3_17994
warp_char_into_car $scplayer {vehicle} $car
goto @SCRASH3_18042

:SCRASH3_17994
if 
  $car <> 0
goto_if_false @SCRASH3_18042
set_char_coordinates_no_offset $scplayer {x} -2037.886 {y} 178.9478 {z} 27.8359
set_char_heading $scplayer {heading} 270.0

:SCRASH3_18042
if 
  not is_char_dead 37@
goto_if_false @SCRASH3_18079
if 
  not is_char_in_any_car 37@
goto_if_false @SCRASH3_18079
delete_char 37@

:SCRASH3_18079
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:SCRASH3_18102
if 
  get_fading_status 
goto_if_false @SCRASH3_18126
wait 0
goto @SCRASH3_18102

:SCRASH3_18126
return 

:SCRASH3_18128
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$valet_mission_terminate = 1
$valet_unlocked = 0
return 

:SCRASH3_18160
set_int_stat StatId.PassedZero1 {value} 1
$valet_unlocked = 1
$valet_oddjob_opened = 1
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
set_int_stat StatId.PassedScrash1 {value} 1
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
$flag_scrash_mission_counter += 1
$flag_player_got_valet_uniform = 1
register_mission_passed 'SCRA_1'
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} RadarSprite.CJ
remove_blip $scrash_contact_blip
return 

:SCRASH3_18272
set_script_limit_to_gang_size 99
$playing_scrash1 = 0
$freeze_creating_drop_off_cars = 0
$force_valet_on_mission = 0
set_wanted_multiplier 1.0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_roads_on 2793.814 {leftBottomY} -1987.9351 {leftBottomZ} 15.3045 {rightTopX} 2754.324 {rightTopY} -1900.369 {rightTopZ} 9.8752
clear_onscreen_timer $sc3_countdown
remove_blip 59@
remove_blip 60@
remove_blip 57@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
set_uses_collision_of_closest_object_of_type -1741.792 {y} 939.731 {z} 23.8906 {radius} 2.5 {modelId} #LAMPPOST3 {state} True
dont_suppress_car_model 551
switch_ped_roads_back_to_original -1729.549 {leftBottomY} 942.886 {leftBottomZ} 40.3585 {rightTopX} -1742.7729 {rightTopY} 937.7814 {rightTopZ} 10.1928
switch_ped_roads_back_to_original -1768.524 {leftBottomY} 938.887 {leftBottomZ} 40.7496 {rightTopX} -1780.765 {rightTopY} 943.4574 {rightTopZ} 10.0929
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed 415
mark_model_as_no_longer_needed 551
mark_model_as_no_longer_needed 240
mark_model_as_no_longer_needed 252
mark_model_as_no_longer_needed 330
remove_car_recording 155
mark_model_as_no_longer_needed 597
mark_model_as_no_longer_needed 240
mark_model_as_no_longer_needed 281
mark_model_as_no_longer_needed 346
remove_animation "POLICE"
remove_animation "MISC"
remove_car_recording 165
remove_car_recording 166
if 
  not is_car_dead $sc3_missioncar
goto_if_false @SCRASH3_18605
set_car_proofs $sc3_missioncar {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SCRASH3_18605
$timer_mobile_start = get_game_timer 
$pause_valet_script = 0
$onmission = 0
$freeze_creating_drop_off_cars = 0
$sc3_missioncar_alive = 0
$dont_clear_valets = 0
$tell_player_to_kill_valet = 0
mission_has_finished 
return 

//-------------Mission 52---------------
// Originally: Snail Trail

:SCRASH2
script_name 'SCRASH2'
$g_SCrash2_spookKM = 0
gosub @SCRASH2_54
if 
  has_deatharrest_been_executed 
goto_if_false @SCRASH2_45
gosub @SCRASH2_20955

:SCRASH2_45
gosub @SCRASH2_21293
terminate_this_script 

:SCRASH2_54
register_mission_given 
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
144@ = 0
145@ = 0
146@ = 0
149@ = 0
153@ = 0
155@ = 1
161@ = 0
164@ = 0
165@ = 0
if 
  34@ == -99
goto_if_false @SCRASH2_605
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
81@ = create_mission_train 11 {x} 0.0 {y} 0.0 {z} 0.0 {direction} False
87@ = create_car 420 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_car 468 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:SCRASH2_404
create_mission_train 10 {x} 0.0 {y} 0.0 {z} 0.0 {direction} False {var_handle} 84@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_404
78@ = create_char PedType.CivMale {modelId} 147 {x} 0.0 {y} 0.0 {z} 0.0
79@ = create_char PedType.CivMale {modelId} 18 {x} 0.0 {y} 0.0 {z} 0.0
80@ = create_char PedType.CivMale {modelId} 46 {x} 0.0 {y} 0.0 {z} 0.0
95@ = create_pickup_with_ammo 358 {pickupType} PickupType.Once {ammo} 0 {x} 0.0 {y} 0.0 {z} 0.0
90@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
91@ = add_blip_for_car 81@
92@ = add_blip_for_char 78@
93@ = add_blip_for_char 80@
94@ = add_blip_for_pickup 95@

:SCRASH2_605
load_mission_text 'SCRASH2'
gosub @SCRASH2_20312
96@ = load_char_decision_maker DecisionMakerType.Empty
97@ = load_char_decision_maker DecisionMakerType.Tough
gosub @SCRASH2_20489
131@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
155@ = 1

:SCRASH2_661
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SCRASH2_694
36@ = 1
goto @SCRASH2_1017

:SCRASH2_694
gosub @SCRASH2_18834
gosub @SCRASH2_19245
if or
  38@ == 1
  39@ == 1
goto_if_false @SCRASH2_740
goto @SCRASH2_1017

:SCRASH2_740
gosub @SCRASH2_20209
gosub @SCRASH2_20243
if 
  is_char_dead $scplayer
goto_if_false @SCRASH2_784
37@ = 1
goto @SCRASH2_1017

:SCRASH2_784
if 
  34@ == 0
goto_if_false @SCRASH2_842
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:SCRASH2_842
if 
  34@ == 1
goto_if_false @SCRASH2_867
gosub @SCRASH2_1165

:SCRASH2_867
if 
  34@ == 2
goto_if_false @SCRASH2_892
gosub @SCRASH2_1286

:SCRASH2_892
if 
  34@ == 3
goto_if_false @SCRASH2_917
gosub @SCRASH2_2139

:SCRASH2_917
if 
  34@ == 4
goto_if_false @SCRASH2_942
gosub @SCRASH2_3032

:SCRASH2_942
if 
  34@ == 5
goto_if_false @SCRASH2_967
gosub @SCRASH2_5855

:SCRASH2_967
if 
  34@ == 6
goto_if_false @SCRASH2_992
gosub @SCRASH2_6907

:SCRASH2_992
if 
  34@ == 7
goto_if_false @SCRASH2_1017
36@ = 1

:SCRASH2_1017
if 
  38@ == 0
goto_if_false @SCRASH2_1117
if 
  37@ == 0
goto_if_false @SCRASH2_1101
if 
  36@ == 0
goto_if_false @SCRASH2_1085
goto @SCRASH2_661
goto @SCRASH2_1094

:SCRASH2_1085
gosub @SCRASH2_21206
return 

:SCRASH2_1094
goto @SCRASH2_1110

:SCRASH2_1101
gosub @SCRASH2_20955
return 

:SCRASH2_1110
goto @SCRASH2_1119

:SCRASH2_1117
return 

:SCRASH2_1119
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:SCRASH2_1165
if 
  35@ == 0
goto_if_false @SCRASH2_1213
gosub @SCRASH2_10051
print_now 'SCR2_21' {time} 7000 {flag} 1
35@ += 1

:SCRASH2_1213
if 
  35@ == 1
goto_if_false @SCRASH2_1259
if 
  has_pickup_been_collected 95@
goto_if_false @SCRASH2_1259
remove_blip 94@
35@ = 99

:SCRASH2_1259
if 
  35@ == 99
goto_if_false @SCRASH2_1284
gosub @SCRASH2_20282

:SCRASH2_1284
return 

:SCRASH2_1286
if and
  35@ > 0
  is_char_dead 78@
goto_if_false @SCRASH2_1318
37@ = 1
return 

:SCRASH2_1318
if and
  35@ > 1
  is_car_dead 81@
goto_if_false @SCRASH2_1350
37@ = 1
return 

:SCRASH2_1350
if 
  35@ == 0
goto_if_false @SCRASH2_1465
gosub @SCRASH2_10187
132@ = -1952.791
133@ = 136.5608
134@ = 25.2734
90@ = add_blip_for_coord 132@ {y} 133@ {z} 134@
change_blip_display 90@ {display} BlipDisplay.BlipOnly
print_now 'SCR2_00' {time} 8000 {flag} 1
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 6000
35@ += 1

:SCRASH2_1465
if 
  35@ == 1
goto_if_false @SCRASH2_1552
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_1552
gosub @SCRASH2_10112
set_train_speed 81@ {speed} 20.0
set_train_cruise_speed 81@ {speed} 20.0
print 'SCR2_01' {time} 10000 {flag} 1
35@ += 1

:SCRASH2_1552
if 
  35@ == 2
goto_if_false @SCRASH2_1635
if 
  locate_car_2d 81@ {x} -1944.545 {y} 130.8166 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @SCRASH2_1635
set_train_speed 81@ {speed} 4.0
set_train_cruise_speed 81@ {speed} 0.0
35@ += 1

:SCRASH2_1635
if 
  35@ == 3
goto_if_false @SCRASH2_1717
if 
  is_car_stopped 81@
goto_if_false @SCRASH2_1717
82@ = get_train_carriage 81@ {number} 1
task_enter_car_as_passenger 78@ {vehicle} 82@ {time} 500 {seat} -1
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ += 1

:SCRASH2_1717
if 
  35@ == 4
goto_if_false @SCRASH2_1938
64@ = -1978.101
65@ = 78.224
67@ = -1922.002
68@ = 203.4028
if 
  is_char_in_area_2d $scplayer {leftBottomX} 64@ {leftBottomY} 65@ {rightTopX} 67@ {rightTopY} 68@ {drawSphere} False
goto_if_false @SCRASH2_1877
lock_car_doors 81@ {lockStatus} CarLock.LockoutPlayerOnly
set_train_cruise_speed 81@ {speed} 40.0
remove_blip 90@
91@ = add_blip_for_car 81@
remove_char_elegantly 78@
167@ = 0
print_now 'SCR2_02' {time} 10000 {flag} 1
35@ = 99
goto @SCRASH2_1938

:SCRASH2_1877
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_1938
lock_car_doors 81@ {lockStatus} CarLock.LockoutPlayerOnly
set_train_cruise_speed 81@ {speed} 5.0
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ += 1

:SCRASH2_1938
if 
  35@ == 5
goto_if_false @SCRASH2_2112
64@ = -1978.101
65@ = 78.224
67@ = -1922.002
68@ = 203.4028
if 
  is_char_in_area_2d $scplayer {leftBottomX} 64@ {leftBottomY} 65@ {rightTopX} 67@ {rightTopY} 68@ {drawSphere} False
goto_if_false @SCRASH2_2079
remove_blip 90@
91@ = add_blip_for_car 81@
print_now 'SCR2_02' {time} 10000 {flag} 1
set_train_cruise_speed 81@ {speed} 10.0
35@ = 99
goto @SCRASH2_2112

:SCRASH2_2079
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_2112
37@ = 1
45@ = 1

:SCRASH2_2112
if 
  35@ == 99
goto_if_false @SCRASH2_2137
gosub @SCRASH2_20282

:SCRASH2_2137
return 

:SCRASH2_2139
if 
  is_car_dead 81@
goto_if_false @SCRASH2_2164
37@ = 1
return 

:SCRASH2_2164
if 
  35@ == 0
goto_if_false @SCRASH2_2314
119@ = 0
120@ = 0
121@ = 0
122@ = 0
138@ = 0
139@ = 0
140@ = 0
132@ = 833.7101
133@ = -1383.6429
134@ = -2.6352
48@ = 0

:SCRASH2_2268
123@(48@,3i) = -1
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_2268
set_wanted_multiplier 0.3
35@ += 1

:SCRASH2_2314
if 
  35@ == 1
goto_if_false @SCRASH2_2432
if 
  locate_car_2d 81@ {x} 132@ {y} 133@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @SCRASH2_2432
set_train_speed 81@ {speed} 16.0
set_train_cruise_speed 81@ {speed} 0.0
print_now 'SCR2_03' {time} 11000 {flag} 1
set_lvar_int_to_lvar_int 111@ = 46@
111@ += 10000
138@ = 1
35@ += 1

:SCRASH2_2432
if 
  35@ == 2
goto_if_false @SCRASH2_2515
if 
  is_int_lvar_greater_than_int_lvar 46@ > 111@
goto_if_false @SCRASH2_2515
gosub @SCRASH2_18816
print_now 'SCR2_09' {time} 9000 {flag} 1
set_lvar_int_to_lvar_int 111@ = 46@
111@ += 8000
35@ += 1

:SCRASH2_2515
if 
  35@ == 3
goto_if_false @SCRASH2_2559
if 
  is_int_lvar_greater_than_int_lvar 46@ > 111@
goto_if_false @SCRASH2_2559
35@ += 1

:SCRASH2_2559
if 
  35@ == 4
goto_if_false @SCRASH2_2630
if 
  is_car_stopped 81@
goto_if_false @SCRASH2_2630
140@ = 1
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 120000
remove_blip 91@
35@ += 1

:SCRASH2_2630
if 
  35@ == 5
goto_if_false @SCRASH2_2673
if 
  139@ == 1
goto_if_false @SCRASH2_2673
35@ = 99

:SCRASH2_2673
gosub @SCRASH2_10288
gosub @SCRASH2_10454
gosub @SCRASH2_10613
gosub @SCRASH2_10745
gosub @SCRASH2_10963
gosub @SCRASH2_11038
if and
  139@ == 0
  140@ == 1
goto_if_false @SCRASH2_2766
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_2766
139@ = 1

:SCRASH2_2766
if and
  139@ == 0
  140@ == 1
goto_if_false @SCRASH2_2817
if 
  300 > 121@
goto_if_false @SCRASH2_2817
139@ = 1

:SCRASH2_2817
if 
  161@ == 1
goto_if_false @SCRASH2_3005
if 
  not is_char_in_zone $scplayer {zone} 'SF'
goto_if_false @SCRASH2_3005
if 
  is_car_dead 89@
goto_if_false @SCRASH2_2883
161@ = 0

:SCRASH2_2883
if 
  2800 > 121@
goto_if_false @SCRASH2_3005
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_car_coordinates 89@
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  100.0 > 72@
goto_if_false @SCRASH2_2988
161@ = 0
goto @SCRASH2_3005

:SCRASH2_2988
161@ = 0
mark_car_as_no_longer_needed 89@
mark_model_as_no_longer_needed 468

:SCRASH2_3005
if 
  35@ == 99
goto_if_false @SCRASH2_3030
gosub @SCRASH2_20282

:SCRASH2_3030
return 

:SCRASH2_3032
if 
  35@ == 0
goto_if_false @SCRASH2_3284
print 'SCR2_04' {time} 5000 {flag} 1
gosub @SCRASH2_15982
gosub @SCRASH2_12265
92@ = add_blip_for_char 78@
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 10000
109@ = 0
118@ = 0
143@ = 0
142@ = 0
141@ = 0
154@ = 0
157@ = 0
160@ = 0
163@ = 0
switch_roads_off 789.595 {leftBottomY} -1387.97 {leftBottomZ} 11.5469 {rightTopX} 807.2843 {rightTopY} -1334.546 {rightTopZ} 13.725
switch_roads_off 804.9978 {leftBottomY} -1414.032 {leftBottomZ} 11.3801 {rightTopX} 908.0844 {rightTopY} -1386.618 {rightTopZ} 13.5524
switch_roads_off 802.1913 {leftBottomY} -1335.066 {leftBottomZ} 11.1828 {rightTopX} 911.4662 {rightTopY} -1313.045 {rightTopZ} 13.7469
101@ = 0
102@ = 0
35@ += 1

:SCRASH2_3284
if 
  167@ == 1
goto_if_false @SCRASH2_3385
if 
  is_char_dead 78@
goto_if_false @SCRASH2_3334
37@ = 1
45@ = 2
return 

:SCRASH2_3334
if 
  has_char_been_damaged_by_char 78@ {handle} $scplayer
goto_if_false @SCRASH2_3385
37@ = 1
45@ = 7
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000
return 

:SCRASH2_3385
if 
  156@ == 1
goto_if_false @SCRASH2_3438
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_3436
37@ = 1
45@ = 7

:SCRASH2_3436
return 

:SCRASH2_3438
if 
  157@ == 1
goto_if_false @SCRASH2_3491
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_3489
37@ = 1
45@ = 7

:SCRASH2_3489
return 

:SCRASH2_3491
if and
  168@ == 1
  141@ == 1
goto_if_false @SCRASH2_3830
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_3773
if 
  is_char_dead 79@
goto_if_false @SCRASH2_3555
157@ = 1

:SCRASH2_3555
if 
  not is_char_in_car 79@ {vehicle} 87@
goto_if_false @SCRASH2_3581
157@ = 1

:SCRASH2_3581
if 
  has_car_been_damaged_by_char 87@ {handle} $scplayer
goto_if_false @SCRASH2_3672
73@ = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH2_3664
70@ = get_char_speed $scplayer
if 
  13.0 > 70@
goto_if_false @SCRASH2_3664
73@ = 0
clear_car_last_damage_entity 87@

:SCRASH2_3664
set_lvar_int_to_lvar_int 157@ = 73@

:SCRASH2_3672
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @SCRASH2_3698
157@ = 1

:SCRASH2_3698
if 
  157@ == 1
goto_if_false @SCRASH2_3766
if 
  not is_char_in_any_car 78@
goto_if_false @SCRASH2_3748
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_3748
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
return 

:SCRASH2_3766
goto @SCRASH2_3830

:SCRASH2_3773
157@ = 1
if 
  not is_char_in_any_car 78@
goto_if_false @SCRASH2_3812
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_3812
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
return 

:SCRASH2_3830
if and
  168@ == 1
  141@ == 0
goto_if_false @SCRASH2_4066
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_4035
73@ = 0
if 
  is_char_dead 79@
goto_if_false @SCRASH2_3901
73@ = 1

:SCRASH2_3901
if 
  not is_char_in_car 79@ {vehicle} 87@
goto_if_false @SCRASH2_3927
73@ = 1

:SCRASH2_3927
if 
  has_car_been_damaged_by_char 87@ {handle} $scplayer
goto_if_false @SCRASH2_3953
73@ = 1

:SCRASH2_3953
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @SCRASH2_3979
73@ = 1

:SCRASH2_3979
if 
  73@ == 1
goto_if_false @SCRASH2_4028
mark_car_as_no_longer_needed 87@
mark_char_as_no_longer_needed 79@
168@ = 0
158@ = 0
gosub @SCRASH2_12377

:SCRASH2_4028
goto @SCRASH2_4066

:SCRASH2_4035
mark_car_as_no_longer_needed 87@
mark_char_as_no_longer_needed 79@
168@ = 0
158@ = 0
gosub @SCRASH2_12377

:SCRASH2_4066
if 
  35@ == 1
goto_if_false @SCRASH2_4115
task_go_straight_to_coord 78@ {x} 833.4493 {y} -1374.261 {z} -1.5078 {speed} MoveState.Walk {time} -1
35@ += 1

:SCRASH2_4115
if 
  35@ == 2
goto_if_false @SCRASH2_4221
40@ = get_script_task_status 78@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_4221
task_play_anim 78@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4221
if 
  35@ == 3
goto_if_false @SCRASH2_4292
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4292
if 
  not is_char_playing_anim 78@ {animationName} "ROADCROSS"
goto_if_false @SCRASH2_4292
35@ += 1

:SCRASH2_4292
if 
  35@ == 4
goto_if_false @SCRASH2_4342
gosub @SCRASH2_12646
if 
  101@ == 7
goto_if_false @SCRASH2_4342
35@ += 1

:SCRASH2_4342
if 
  35@ == 5
goto_if_false @SCRASH2_4419
task_play_anim 78@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4419
if 
  35@ == 6
goto_if_false @SCRASH2_4504
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4504
if 
  not is_char_playing_anim 78@ {animationName} "ROADCROSS"
goto_if_false @SCRASH2_4504
101@ = 8
102@ = 8
35@ += 1

:SCRASH2_4504
if 
  35@ == 7
goto_if_false @SCRASH2_4641
gosub @SCRASH2_12646
if 
  101@ == 10
goto_if_false @SCRASH2_4641
143@ = 1
set_lvar_int_to_lvar_int 105@ = 46@
105@ += 60000
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH2_4611
print_now 'SCR2_20' {time} 10000 {flag} 1
goto @SCRASH2_4627

:SCRASH2_4611
print_now 'SCR2_06' {time} 10000 {flag} 1

:SCRASH2_4627
163@ = 1
35@ += 1

:SCRASH2_4641
if 
  35@ == 8
goto_if_false @SCRASH2_4774
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_4774
56@ = open_sequence_task 
task_achieve_heading -1 {heading} 90.0
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_4774
if 
  35@ == 9
goto_if_false @SCRASH2_4903
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_4903
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_4903
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_4903
if 
  141@ == 1
goto_if_false @SCRASH2_4896
35@ += 1
goto @SCRASH2_4903

:SCRASH2_4896
35@ -= 1

:SCRASH2_4903
if 
  35@ == 10
goto_if_false @SCRASH2_5046
if 
  158@ == 1
goto_if_false @SCRASH2_5015
56@ = open_sequence_task 
task_achieve_heading -1 {heading} 180.0
task_play_anim -1 {animationName} "HIKER_POSE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
goto @SCRASH2_5039

:SCRASH2_5015
task_go_straight_to_coord 78@ {x} 821.7603 {y} -1334.683 {z} 12.5391 {speed} MoveState.Run {time} -2

:SCRASH2_5039
35@ += 1

:SCRASH2_5046
if 
  35@ == 11
goto_if_false @SCRASH2_5375
gosub @SCRASH2_12646
if 
  153@ == 0
goto_if_false @SCRASH2_5276
73@ = 0
if and
  158@ == 1
  locate_car_3d 87@ {x} 803.7784 {y} -1342.926 {z} 12.5469 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_5158
73@ = 1

:SCRASH2_5158
if and
  158@ == 0
  locate_car_3d 87@ {x} 824.4391 {y} -1330.707 {z} 12.4174 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_5220
73@ = 1

:SCRASH2_5220
if and
  73@ == 1
  is_car_stopped 87@
goto_if_false @SCRASH2_5269
task_enter_car_as_passenger 78@ {vehicle} 87@ {time} -2 {seat} SeatId.RearRight
154@ = 1
35@ += 1

:SCRASH2_5269
goto @SCRASH2_5375

:SCRASH2_5276
if 
  is_char_playing_anim 78@ {animationName} "HIKER_POSE"
goto_if_false @SCRASH2_5375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 109@
goto_if_false @SCRASH2_5375
task_play_anim 78@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 100
set_lvar_int_to_lvar_int 109@ = 46@
109@ += 250

:SCRASH2_5375
if 
  35@ == 12
goto_if_false @SCRASH2_5451
40@ = get_script_task_status 78@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_5451
set_taxi_lights 87@ {state} False
126@ = 0
set_lvar_int_to_lvar_int 88@ = 87@
35@ = 99

:SCRASH2_5451
if 
  170@ == 0
goto_if_false @SCRASH2_5499
request_model 420
load_all_models_now 
if 
  has_model_loaded 420
goto_if_false @SCRASH2_5499
170@ = 1

:SCRASH2_5499
if 
  166@ == 1
goto_if_false @SCRASH2_5571
if 
  is_int_lvar_greater_than_int_lvar 46@ > 103@
goto_if_false @SCRASH2_5571
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_5562
set_train_cruise_speed 81@ {speed} 30.0

:SCRASH2_5562
mark_mission_trains_as_no_longer_needed 
166@ = 0

:SCRASH2_5571
if and
  143@ == 1
  142@ == 0
goto_if_false @SCRASH2_5714
if 
  locate_char_any_means_3d $scplayer {x} 812.4495 {y} -1343.488 {z} 12.532 {xRadius} 80.0 {yRadius} 80.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SCRASH2_5679
142@ = 1
gosub @SCRASH2_12313
gosub @SCRASH2_12377
set_taxi_lights 87@ {state} True
goto @SCRASH2_5714

:SCRASH2_5679
if 
  is_int_lvar_greater_than_int_lvar 46@ > 105@
goto_if_false @SCRASH2_5714
37@ = 1
45@ = 3
return 

:SCRASH2_5714
if and
  141@ == 0
  168@ == 1
goto_if_false @SCRASH2_5794
if 
  locate_car_3d 87@ {x} 796.9285 {y} -1374.8669 {z} 12.3949 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_5794
141@ = 1

:SCRASH2_5794
gosub @SCRASH2_16005
gosub @SCRASH2_16193
if 
  37@ == 1
goto_if_false @SCRASH2_5828
return 

:SCRASH2_5828
if 
  35@ == 99
goto_if_false @SCRASH2_5853
gosub @SCRASH2_20282

:SCRASH2_5853
return 

:SCRASH2_5855
if 
  35@ == 0
goto_if_false @SCRASH2_6033
132@ = 366.4698
133@ = -2030.6429
134@ = 6.6582
128@ = 0
129@ = 0
127@ = 0
gosub @SCRASH2_13627
set_car_can_go_against_traffic 87@ {state} False
set_lvar_int_to_lvar_int 116@ = 46@
116@ += 3000
152@ = 1
149@ = 0
150@ = 0
159@ = 0
160@ = 0
add_stuck_car_check_with_warp 87@ {distance} 2.0 {time} 30000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 20
print_now 'SCR2_07' {time} 5000 {flag} 1
35@ += 1

:SCRASH2_6033
if 
  is_char_dead 78@
goto_if_false @SCRASH2_6065
37@ = 1
45@ = 2
return 

:SCRASH2_6065
if 
  has_char_been_damaged_by_char 78@ {handle} $scplayer
goto_if_false @SCRASH2_6100
37@ = 1
45@ = 7
return 

:SCRASH2_6100
if 
  157@ == 1
goto_if_false @SCRASH2_6153
if 
  is_int_lvar_greater_than_int_lvar 46@ > 118@
goto_if_false @SCRASH2_6151
37@ = 1
45@ = 7

:SCRASH2_6151
return 

:SCRASH2_6153
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_6431
if 
  is_char_dead 79@
goto_if_false @SCRASH2_6192
157@ = 1

:SCRASH2_6192
if 
  not is_char_in_car 79@ {vehicle} 87@
goto_if_false @SCRASH2_6218
157@ = 1

:SCRASH2_6218
if 
  has_car_been_damaged_by_char 87@ {handle} $scplayer
goto_if_false @SCRASH2_6309
73@ = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @SCRASH2_6301
70@ = get_char_speed $scplayer
if 
  13.0 > 70@
goto_if_false @SCRASH2_6301
73@ = 0
clear_car_last_damage_entity 87@

:SCRASH2_6301
set_lvar_int_to_lvar_int 157@ = 73@

:SCRASH2_6309
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @SCRASH2_6335
157@ = 1

:SCRASH2_6335
if 
  157@ == 1
goto_if_false @SCRASH2_6424
if 
  is_char_in_any_car 78@
goto_if_false @SCRASH2_6390
37@ = 1
45@ = 7
goto @SCRASH2_6422

:SCRASH2_6390
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_6422
return 

:SCRASH2_6424
goto @SCRASH2_6472

:SCRASH2_6431
157@ = 1
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000
return 

:SCRASH2_6472
if 
  35@ == 1
goto_if_false @SCRASH2_6569
if and
  100@ <> 1
  100@ <> 3
goto_if_false @SCRASH2_6569
if 
  locate_char_any_means_3d 78@ {x} 132@ {y} 133@ {z} 134@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6569
clear_onscreen_counter $g_SCrash2_spookKM
35@ = 99

:SCRASH2_6569
if 
  149@ == 0
goto_if_false @SCRASH2_6656
if 
  locate_char_any_means_3d 78@ {x} 369.3609 {y} -1671.889 {z} 31.811 {xRadius} 14.0 {yRadius} 6.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6656
149@ = 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0

:SCRASH2_6656
if 
  150@ == 0
goto_if_false @SCRASH2_6736
if 
  locate_char_any_means_3d $scplayer {x} 369.3609 {y} -1671.889 {z} 31.811 {xRadius} 14.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6729
150@ = 1

:SCRASH2_6729
goto @SCRASH2_6791

:SCRASH2_6736
if 
  locate_char_any_means_3d $scplayer {x} 370.2572 {y} -1656.79 {z} 31.7201 {xRadius} 14.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_6791
150@ = 0

:SCRASH2_6791
gosub @SCRASH2_17369
if 
  37@ == 1
goto_if_false @SCRASH2_6818
return 

:SCRASH2_6818
if and
  151@ == 0
  149@ == 1
  150@ == 1
goto_if_false @SCRASH2_6873
151@ = 1
print_now 'SCR2_18' {time} 10000 {flag} 1

:SCRASH2_6873
gosub @SCRASH2_15210
if 
  35@ == 99
goto_if_false @SCRASH2_6905
gosub @SCRASH2_20282

:SCRASH2_6905
return 

:SCRASH2_6907
if 
  is_char_dead 78@
goto_if_false @SCRASH2_6935
144@ = 1
remove_blip 92@

:SCRASH2_6935
if 
  169@ == 1
goto_if_false @SCRASH2_6981
if 
  is_char_dead 80@
goto_if_false @SCRASH2_6981
145@ = 1
remove_blip 93@

:SCRASH2_6981
if and
  144@ == 1
  145@ == 1
goto_if_false @SCRASH2_7013
35@ = 99

:SCRASH2_7013
if 
  35@ == 0
goto_if_false @SCRASH2_7345
gosub @SCRASH2_15427
93@ = add_blip_for_char 80@
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 359.4136 {y} -2036.943 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 362.2674 {y} -2035.844 {z} 6.836 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 270.0
close_sequence_task 56@
perform_sequence_task 80@ {sequence} 56@
clear_sequence_task 56@
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 363.1874 {y} -2035.844 {z} 6.836 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 90.0
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
set_lvar_int_to_lvar_int 106@ = 46@
106@ += 180000
146@ = 0
147@ = 0
98@ = 0
99@ = 0
107@ = 0
148@ = 0
print_now 'SCR2_19' {time} 10000 {flag} 1
if 
  $displayed_sniper_help_text == 0
goto_if_false @SCRASH2_7317
164@ = 0
165@ = 0
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 10000
$displayed_sniper_help_text = 1
goto @SCRASH2_7338

:SCRASH2_7317
164@ = 1
165@ = 1
112@ = 0

:SCRASH2_7338
35@ += 1

:SCRASH2_7345
if 
  35@ == 1
goto_if_false @SCRASH2_7447
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7447
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_7447
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_7447
35@ += 1

:SCRASH2_7447
if 
  35@ == 2
goto_if_false @SCRASH2_7625
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7625
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_7625
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_7625
task_char_slide_to_coord 80@ {x} 362.2674 {y} -2035.844 {z} 6.836 {angle} 270.0 {radius} 4.0
task_char_slide_to_coord 78@ {x} 363.1874 {y} -2035.844 {z} 6.836 {angle} 90.0 {radius} 4.0
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
35@ += 1

:SCRASH2_7625
if 
  35@ == 3
goto_if_false @SCRASH2_7814
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7814
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_7814
task_play_anim 78@ {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim 80@ {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 104@ = 46@
104@ += 250
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 87@
35@ += 1

:SCRASH2_7814
if 
  35@ == 4
goto_if_false @SCRASH2_7944
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_7944
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_7944
if and
  not is_char_playing_anim 78@ {animationName} "PRTIAL_HNDSHK_BIZ_01"
  not is_char_playing_anim 80@ {animationName} "PRTIAL_HNDSHK_BIZ_01"
goto_if_false @SCRASH2_7944
35@ += 1

:SCRASH2_7944
if 
  35@ == 5
goto_if_false @SCRASH2_8053
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8053
task_play_anim 78@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
50@ = generate_random_int_in_range 2000 {max} 5000
set_lvar_int_to_lvar_int 104@ = 46@
add_int_lvar_to_int_lvar 104@ += 50@
35@ += 1

:SCRASH2_8053
if 
  35@ == 6
goto_if_false @SCRASH2_8123
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8123
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_8123
clear_char_tasks 78@
35@ += 1

:SCRASH2_8123
if 
  35@ == 7
goto_if_false @SCRASH2_8232
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8232
task_play_anim 80@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
50@ = generate_random_int_in_range 5000 {max} 10000
set_lvar_int_to_lvar_int 104@ = 46@
add_int_lvar_to_int_lvar 104@ += 50@
35@ += 1

:SCRASH2_8232
if 
  35@ == 8
goto_if_false @SCRASH2_8302
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8302
if 
  is_int_lvar_greater_than_int_lvar 46@ > 104@
goto_if_false @SCRASH2_8302
clear_char_tasks 80@
35@ = 5

:SCRASH2_8302
if 
  35@ == 20
goto_if_false @SCRASH2_8559
if 
  not is_char_dead 80@
goto_if_false @SCRASH2_8428
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 361.2376 {y} -2047.8409 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.2802 {y} -2049.696 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.8605 {y} -2057.5879 {z} 6.836 {speed} MoveState.Walk {time} -2
close_sequence_task 56@
perform_sequence_task 80@ {sequence} 56@
clear_sequence_task 56@

:SCRASH2_8428
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_8536
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 361.2376 {y} -2047.8409 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.2802 {y} -2049.696 {z} 6.836 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 354.863 {y} -2060.05 {z} 6.836 {speed} MoveState.Walk {time} -2
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@

:SCRASH2_8536
print_now 'SCR2_05' {time} 10000 {flag} 1
35@ += 1

:SCRASH2_8559
if 
  35@ == 21
goto_if_false @SCRASH2_8661
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8661
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_8661
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @SCRASH2_8661
35@ += 1

:SCRASH2_8661
if 
  35@ == 22
goto_if_false @SCRASH2_8782
if and
  not is_char_dead 78@
  not is_char_dead 80@
goto_if_false @SCRASH2_8782
40@ = get_script_task_status 78@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_8782
40@ = get_script_task_status 80@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_8782
37@ = 1
45@ = 4
remove_char_elegantly 78@
remove_char_elegantly 80@
return 

:SCRASH2_8782
if 
  35@ == 30
goto_if_false @SCRASH2_8873
98@ = 3
99@ = 3
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_8835
clear_char_tasks 78@

:SCRASH2_8835
if 
  not is_char_dead 80@
goto_if_false @SCRASH2_8856
clear_char_tasks 80@

:SCRASH2_8856
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 87@
35@ += 1

:SCRASH2_8873
if 
  35@ == 31
goto_if_false @SCRASH2_8905
gosub @SCRASH2_15527
gosub @SCRASH2_15749

:SCRASH2_8905
if 
  146@ == 0
goto_if_false @SCRASH2_9434
if 
  144@ == 1
goto_if_false @SCRASH2_8964
146@ = 1
print_now 'SCR2_10' {time} 10000 {flag} 1

:SCRASH2_8964
if 
  146@ == 0
goto_if_false @SCRASH2_9023
if 
  145@ == 1
goto_if_false @SCRASH2_9023
146@ = 1
print_now 'SCR2_11' {time} 10000 {flag} 1

:SCRASH2_9023
if 
  146@ == 0
goto_if_false @SCRASH2_9083
if 
  has_char_been_damaged_by_char 78@ {handle} $scplayer
goto_if_false @SCRASH2_9083
146@ = 1
print_now 'SCR2_14' {time} 10000 {flag} 1

:SCRASH2_9083
if 
  146@ == 0
goto_if_false @SCRASH2_9143
if 
  has_char_been_damaged_by_char 80@ {handle} $scplayer
goto_if_false @SCRASH2_9143
146@ = 1
print_now 'SCR2_15' {time} 10000 {flag} 1

:SCRASH2_9143
if and
  146@ == 0
  148@ == 0
goto_if_false @SCRASH2_9229
if 
  is_char_shooting_in_area $scplayer {leftBottomX} 349.8409 {leftBottomY} -2088.7981 {topRightX} 409.7505 {topRightY} -1869.887 {drawSphere} False
goto_if_false @SCRASH2_9229
148@ = 1
set_lvar_int_to_lvar_int 107@ = 46@
107@ += 1000

:SCRASH2_9229
if and
  146@ == 0
  148@ == 1
goto_if_false @SCRASH2_9296
if 
  is_int_lvar_greater_than_int_lvar 46@ > 107@
goto_if_false @SCRASH2_9296
146@ = 1
print_now 'SCR2_12' {time} 10000 {flag} 1

:SCRASH2_9296
if 
  146@ == 0
goto_if_false @SCRASH2_9409
57@, 58@, 59@ = get_char_coordinates 80@
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  30.0 > 70@
goto_if_false @SCRASH2_9409
146@ = 1
print_now 'SCR2_13' {time} 10000 {flag} 1

:SCRASH2_9409
if 
  146@ == 1
goto_if_false @SCRASH2_9434
35@ = 30

:SCRASH2_9434
if and
  146@ == 0
  147@ == 0
goto_if_false @SCRASH2_9492
if 
  is_int_lvar_greater_than_int_lvar 46@ > 106@
goto_if_false @SCRASH2_9492
147@ = 1
35@ = 20

:SCRASH2_9492
if 
  146@ == 1
goto_if_false @SCRASH2_9798
if 
  144@ == 0
goto_if_false @SCRASH2_9654
if 
  not is_char_in_area_2d 78@ {leftBottomX} 349.8409 {leftBottomY} -2088.7981 {rightTopX} 409.7505 {rightTopY} -1869.887 {drawSphere} False
goto_if_false @SCRASH2_9654
57@, 58@, 59@ = get_char_coordinates 78@
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  70@ > 200.0
goto_if_false @SCRASH2_9654
37@ = 1
45@ = 5
return 

:SCRASH2_9654
if 
  145@ == 0
goto_if_false @SCRASH2_9798
if 
  not is_char_in_area_2d 80@ {leftBottomX} 349.8409 {leftBottomY} -2088.7981 {rightTopX} 409.7505 {rightTopY} -1869.887 {drawSphere} False
goto_if_false @SCRASH2_9798
57@, 58@, 59@ = get_char_coordinates 80@
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  70@ > 200.0
goto_if_false @SCRASH2_9798
37@ = 1
45@ = 6
return 

:SCRASH2_9798
if 
  164@ == 0
goto_if_false @SCRASH2_9869
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_9869
print_help_forever 'SNIPER1'
164@ = 1
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 15000

:SCRASH2_9869
if 
  164@ == 1
goto_if_false @SCRASH2_9960
if 
  165@ == 0
goto_if_false @SCRASH2_9960
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_9960
clear_help 
print_help_forever 'SNIPER2'
165@ = 1
set_lvar_int_to_lvar_int 112@ = 46@
112@ += 10000

:SCRASH2_9960
if 
  165@ == 1
goto_if_false @SCRASH2_10024
if 
  112@ > 0
goto_if_false @SCRASH2_10024
if 
  is_int_lvar_greater_than_int_lvar 46@ > 112@
goto_if_false @SCRASH2_10024
clear_help 
112@ = 0

:SCRASH2_10024
if 
  35@ == 99
goto_if_false @SCRASH2_10049
gosub @SCRASH2_20282

:SCRASH2_10049
return 

:SCRASH2_10051
57@ = -2063.2251
58@ = 258.3273
59@ = 35.3958
95@ = create_pickup_with_ammo 358 {pickupType} PickupType.Once {ammo} 5 {x} 57@ {y} 58@ {z} 59@
94@ = add_blip_for_pickup 95@
return 

:SCRASH2_10112
57@ = -1937.312
58@ = 221.1162
59@ = 23.8414
clear_area 57@ {y} 58@ {z} 59@ {radius} 60.0 {clearParticles} True
81@ = create_mission_train 11 {x} 57@ {y} 58@ {z} 59@ {direction} False
166@ = 1
return 

:SCRASH2_10187
57@ = -1939.52
58@ = 132.8362
59@ = 25.2734
63@ = 90.4279
clear_area 57@ {y} 58@ {z} 59@ {radius} 1.0 {clearParticles} True
78@ = create_char PedType.CivMale {modelId} 147 {x} 57@ {y} 58@ {z} 59@
set_char_heading 78@ {heading} 63@
set_char_is_target_priority 78@ {state} True
167@ = 1
return 

:SCRASH2_10288
if 
  138@ == 1
goto_if_false @SCRASH2_10308
return 

:SCRASH2_10308
if 
  41@ <> 5
goto_if_false @SCRASH2_10328
return 

:SCRASH2_10328
57@, 58@, 59@ = get_car_coordinates 81@
60@, 61@, 62@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 60@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 61@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = sqrt 70@
cset_lvar_int_to_lvar_float 119@ =# 71@
return 

:SCRASH2_10454
if 
  138@ == 1
goto_if_false @SCRASH2_10481
120@ = 0
return 

:SCRASH2_10481
if 
  41@ <> 3
goto_if_false @SCRASH2_10501
return 

:SCRASH2_10501
57@, 58@, 59@ = get_car_coordinates 81@
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 132@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 133@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = sqrt 70@
cset_lvar_int_to_lvar_float 120@ =# 71@
return 

:SCRASH2_10613
if 
  41@ <> 1
goto_if_false @SCRASH2_10633
return 

:SCRASH2_10633
57@, 58@, 59@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 64@ = 57@
sub_float_lvar_from_float_lvar 64@ -= 132@
set_lvar_float_to_lvar_float 65@ = 58@
sub_float_lvar_from_float_lvar 65@ -= 133@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 68@ = 65@
mult_float_lvar_by_float_lvar 68@ *= 65@
set_lvar_float_to_lvar_float 70@ = 67@
add_float_lvar_to_float_lvar 70@ += 68@
71@ = sqrt 70@
cset_lvar_int_to_lvar_float 121@ =# 71@
return 

:SCRASH2_10745
if 
  138@ == 1
goto_if_false @SCRASH2_10765
return 

:SCRASH2_10765
if 
  41@ <> 7
goto_if_false @SCRASH2_10785
return 

:SCRASH2_10785
70@ = 25.0
if 
  is_int_lvar_greater_or_equal_to_int_lvar 121@ >= 120@
goto_if_false @SCRASH2_10896
if 
  80 > 119@
goto_if_false @SCRASH2_10889
71@ = get_car_speed 81@
71@ += 2.0
if 
  71@ > 25.0
goto_if_false @SCRASH2_10881
71@ = 25.0

:SCRASH2_10881
set_train_speed 81@ {speed} 71@

:SCRASH2_10889
goto @SCRASH2_10953

:SCRASH2_10896
71@ = get_car_speed 81@
71@ += 2.0
if 
  71@ > 25.0
goto_if_false @SCRASH2_10945
71@ = 25.0

:SCRASH2_10945
set_train_speed 81@ {speed} 71@

:SCRASH2_10953
set_train_cruise_speed 81@ {speed} 70@
return 

:SCRASH2_10963
if 
  122@ == 0
goto_if_false @SCRASH2_11016
if 
  120@ == 0
goto_if_false @SCRASH2_11006
goto @SCRASH2_11014

:SCRASH2_11006
set_lvar_int_to_lvar_int 122@ = 120@

:SCRASH2_11014
return 

:SCRASH2_11016
if 
  5 > 120@
goto_if_false @SCRASH2_11036
return 

:SCRASH2_11036
return 

:SCRASH2_11038
73@ = 1
48@ = 0

:SCRASH2_11052
if 
  123@(48@,3i) <> -2
goto_if_false @SCRASH2_11081
73@ = 0

:SCRASH2_11081
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11052
if 
  73@ == 1
goto_if_false @SCRASH2_11122
return 

:SCRASH2_11122
48@ = 0

:SCRASH2_11129
if 
  123@(48@,3i) == -1
goto_if_false @SCRASH2_11288

:SCRASH2_11151
generate_random_int_in_range 0 {max} 5 {var_result} 123@(48@,3i)
73@ = 0
49@ = 0

:SCRASH2_11178
if 
  is_int_lvar_greater_than_int_lvar 48@ > 49@
goto_if_false @SCRASH2_11263
if 
  73@ == 0
goto_if_false @SCRASH2_11249
if 
  is_int_lvar_equal_to_int_lvar 123@(48@,3i) == 123@(49@,3i)
goto_if_false @SCRASH2_11249
73@ = 1

:SCRASH2_11249
49@ += 1
goto @SCRASH2_11178

:SCRASH2_11263
if 
  73@ == 1
goto_if_false @SCRASH2_11288
goto @SCRASH2_11151

:SCRASH2_11288
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11129
48@ = 0

:SCRASH2_11316
73@ = 0
switch_start 123@(48@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_11700 {caseNum1} 0 {caseLabel1} @SCRASH2_11390 {caseNum2} 1 {caseLabel2} @SCRASH2_11452 {caseNum3} 2 {caseLabel3} @SCRASH2_11514 {caseNum4} 3 {caseLabel4} @SCRASH2_11576 {caseNum5} 4 {caseLabel5} @SCRASH2_11638 {caseNum6} -1 {caseLabel6} @SCRASH2_11700 {caseNum7} -1 {caseLabel7} @SCRASH2_11700

:SCRASH2_11390
if 
  locate_char_any_means_3d $scplayer {x} -1982.442 {y} -598.0178 {z} 24.7266 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11445
73@ = 1

:SCRASH2_11445
goto @SCRASH2_11700

:SCRASH2_11452
if 
  locate_char_any_means_3d $scplayer {x} -1827.173 {y} -1332.306 {z} 12.9453 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11507
73@ = 1

:SCRASH2_11507
goto @SCRASH2_11700

:SCRASH2_11514
if 
  locate_char_any_means_3d $scplayer {x} -946.4463 {y} -1497.618 {z} 89.2872 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11569
73@ = 1

:SCRASH2_11569
goto @SCRASH2_11700

:SCRASH2_11576
if 
  locate_char_any_means_3d $scplayer {x} -620.5595 {y} -1144.573 {z} 42.0616 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11631
73@ = 1

:SCRASH2_11631
goto @SCRASH2_11700

:SCRASH2_11638
if 
  locate_char_any_means_3d $scplayer {x} 98.3887 {y} -1021.795 {z} 21.2188 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SCRASH2_11693
73@ = 1

:SCRASH2_11693
goto @SCRASH2_11700

:SCRASH2_11700
if 
  73@ == 1
goto_if_false @SCRASH2_12242
50@ = generate_random_int_in_range 10 {max} 14
51@ = generate_random_int_in_range 10 {max} 20
cset_lvar_float_to_lvar_int 70@ =# 51@
switch_start 123@(48@,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_12231 {caseNum1} 0 {caseLabel1} @SCRASH2_11811 {caseNum2} 1 {caseLabel2} @SCRASH2_11895 {caseNum3} 2 {caseLabel3} @SCRASH2_11979 {caseNum4} 3 {caseLabel4} @SCRASH2_12063 {caseNum5} 4 {caseLabel5} @SCRASH2_12147 {caseNum6} -1 {caseLabel6} @SCRASH2_12231 {caseNum7} -1 {caseLabel7} @SCRASH2_12231

:SCRASH2_11811
clear_area -1875.72 {y} -1267.059 {z} 12.9511 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -1875.72 {y} -1267.059 {z} 12.9511 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_11895
clear_area -1332.7209 {y} -1514.8879 {z} 22.7265 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -1332.7209 {y} -1514.8879 {z} 22.7265 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_11979
clear_area -673.6719 {y} -1127.875 {z} 48.8875 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -673.6719 {y} -1127.875 {z} 48.8875 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_12063
clear_area -321.8627 {y} -1191.647 {z} 35.5265 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} -321.8627 {y} -1191.647 {z} 35.5265 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_12147
clear_area 802.302 {y} -1362.661 {z} -2.6302 {radius} 100.0 {clearParticles} True
create_mission_train 50@ {x} 802.302 {y} -1362.661 {z} -2.6302 {direction} True {var_handle} 84@(48@,3i)
set_train_speed 84@(48@,3i) {speed} 70@
set_train_cruise_speed 84@(48@,3i) {speed} 70@
goto @SCRASH2_12231

:SCRASH2_12231
123@(48@,3i) = -2

:SCRASH2_12242
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_11316
return 

:SCRASH2_12265
83@ = get_train_carriage 81@ {number} 2
78@ = create_char_inside_car 83@ {pedType} PedType.CivMale {modelId} 147
set_char_decision_maker 78@ {handleOrTemplate} 96@
task_leave_car 78@ {vehicle} 83@
167@ = 1
return 

:SCRASH2_12313
158@ = 1
if 
  is_char_in_area_3d $scplayer {leftBottomX} 685.9716 {leftBottomY} -1433.5229 {leftBottomZ} 11.0857 {rightTopX} 965.9512 {rightTopY} -1379.386 {rightTopZ} 14.9731 {drawSphere} False
goto_if_false @SCRASH2_12375
158@ = 0

:SCRASH2_12375
return 

:SCRASH2_12377
if 
  158@ == 1
goto_if_false @SCRASH2_12442
57@ = 850.1132
58@ = -1391.708
59@ = 12.4161
63@ = 101.528
goto @SCRASH2_12482

:SCRASH2_12442
57@ = 847.1364
58@ = -1331.1281
59@ = 12.5097
63@ = 91.6504

:SCRASH2_12482
clear_area 57@ {y} 58@ {z} 59@ {radius} 10.0 {clearParticles} True
87@ = create_car 420 {x} 57@ {y} 58@ {z} 59@
set_car_heading 87@ {heading} 63@
79@ = create_char_inside_car 87@ {pedType} PedType.CivMale {modelId} 18
if 
  158@ == 1
goto_if_false @SCRASH2_12596
task_car_drive_to_coord 79@ {vehicle} 87@ {x} 801.0299 {y} -1337.929 {z} 12.3906 {speed} 12.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCarsIgnoreLights
goto @SCRASH2_12637

:SCRASH2_12596
task_car_drive_to_coord 79@ {vehicle} 87@ {x} 824.4391 {y} -1330.707 {z} 12.4174 {speed} 12.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCarsIgnoreLights
141@ = 1

:SCRASH2_12637
168@ = 1
return 

:SCRASH2_12646
if 
  153@ == 1
goto_if_false @SCRASH2_12930
if 
  163@ == 1
goto_if_false @SCRASH2_12700
40@ = get_script_task_status 78@ {taskId} 1492
goto @SCRASH2_12711

:SCRASH2_12700
40@ = get_script_task_status 78@ {taskId} 1471

:SCRASH2_12711
if 
  is_int_lvar_greater_than_int_lvar 46@ > 117@
goto_if_false @SCRASH2_12928
if and
  not is_int_lvar_equal_to_constant 40@ == 1
  not is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @SCRASH2_12928
if 
  163@ == 1
goto_if_false @SCRASH2_12876
57@, 58@, 59@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 64@ = 57@
set_lvar_float_to_lvar_float 65@ = 58@
57@, 58@, 59@ = get_char_coordinates 78@
set_lvar_float_to_lvar_float 67@ = 57@
set_lvar_float_to_lvar_float 68@ = 58@
set_lvar_float_to_lvar_float 57@ = 64@
sub_float_lvar_from_float_lvar 57@ -= 67@
set_lvar_float_to_lvar_float 58@ = 65@
sub_float_lvar_from_float_lvar 58@ -= 68@
63@ = get_heading_from_vector_2d 57@ {y} 58@

:SCRASH2_12876
task_look_at_char 78@ {target} $scplayer {time} -2
if 
  163@ == 1
goto_if_false @SCRASH2_12928
task_achieve_heading 78@ {heading} 63@
set_lvar_int_to_lvar_int 117@ = 46@
117@ += 250

:SCRASH2_12928
return 

:SCRASH2_12930
switch_start 101@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_13594 {caseNum1} 0 {caseLabel1} @SCRASH2_13058 {caseNum2} 1 {caseLabel2} @SCRASH2_13352 {caseNum3} 2 {caseLabel3} @SCRASH2_13390 {caseNum4} 3 {caseLabel4} @SCRASH2_13193 {caseNum5} 4 {caseLabel5} @SCRASH2_13276 {caseNum6} 5 {caseLabel6} @SCRASH2_13079 {caseNum7} 6 {caseLabel7} @SCRASH2_13117
switch_continued 7 {caseLabel1} @SCRASH2_13466 {caseNum2} 8 {caseLabel2} @SCRASH2_13473 {caseNum3} 9 {caseLabel3} @SCRASH2_13511 {caseNum4} 10 {caseLabel4} @SCRASH2_13587 {caseNum5} -1 {caseLabel5} @SCRASH2_13625 {caseNum6} -1 {caseLabel6} @SCRASH2_13625 {caseNum7} -1 {caseLabel7} @SCRASH2_13625 {caseNum8} -1 {caseLabel8} @SCRASH2_13625 {caseNum9} -1 {caseLabel9} @SCRASH2_13625

:SCRASH2_13058
101@ = 5
102@ = 5
goto @SCRASH2_13625

:SCRASH2_13079
task_go_straight_to_coord 78@ {x} 828.2594 {y} -1358.995 {z} -1.5078 {speed} MoveState.Walk {time} -2
101@ = 6
goto @SCRASH2_13625

:SCRASH2_13117
if 
  locate_char_any_means_3d 78@ {x} 828.2594 {y} -1358.995 {z} -1.5078 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13186
101@ = 3
102@ = 3
126@ = 2

:SCRASH2_13186
goto @SCRASH2_13625

:SCRASH2_13193
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 837.388 {y} -1346.233 {z} 6.1719 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 836.6295 {y} -1342.926 {z} 6.1719 {speed} MoveState.Walk {time} -2
close_sequence_task 56@
perform_sequence_task 78@ {sequence} 56@
clear_sequence_task 56@
101@ = 4
goto @SCRASH2_13625

:SCRASH2_13276
if 
  locate_char_any_means_3d 78@ {x} 836.6295 {y} -1342.926 {z} 6.1719 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13345
101@ = 1
102@ = 1
126@ = 3

:SCRASH2_13345
goto @SCRASH2_13625

:SCRASH2_13352
task_go_straight_to_coord 78@ {x} 822.0569 {y} -1342.302 {z} 12.519 {speed} MoveState.Walk {time} -2
101@ = 2
goto @SCRASH2_13625

:SCRASH2_13390
if 
  locate_char_any_means_3d 78@ {x} 822.0569 {y} -1342.302 {z} 12.519 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13459
101@ = 7
102@ = 7
126@ = 4

:SCRASH2_13459
goto @SCRASH2_13625

:SCRASH2_13466
goto @SCRASH2_13625

:SCRASH2_13473
task_go_straight_to_coord 78@ {x} 803.7784 {y} -1340.535 {z} 12.5469 {speed} MoveState.Walk {time} -2
101@ = 9
goto @SCRASH2_13625

:SCRASH2_13511
if 
  locate_char_any_means_3d 78@ {x} 803.7784 {y} -1340.535 {z} 12.5469 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_13580
101@ = 10
102@ = 10
126@ = 5

:SCRASH2_13580
goto @SCRASH2_13625

:SCRASH2_13587
goto @SCRASH2_13625

:SCRASH2_13594
write_debug "UNKNOWN_STATION_WALK_STATUS"

:SCRASH2_13625
return 

:SCRASH2_13627
73@ = 1
74@ = 1
if 
  127@ == 0
goto_if_false @SCRASH2_13666
73@ = 0

:SCRASH2_13666
switch_start 127@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_14144 {caseNum1} 0 {caseLabel1} @SCRASH2_13794 {caseNum2} 1 {caseLabel2} @SCRASH2_13885 {caseNum3} 2 {caseLabel3} @SCRASH2_13899 {caseNum4} 3 {caseLabel4} @SCRASH2_13913 {caseNum5} 4 {caseLabel5} @SCRASH2_13927 {caseNum6} 5 {caseLabel6} @SCRASH2_13941 {caseNum7} 6 {caseLabel7} @SCRASH2_13955
switch_continued 7 {caseLabel1} @SCRASH2_13969 {caseNum2} 8 {caseLabel2} @SCRASH2_13983 {caseNum3} 9 {caseLabel3} @SCRASH2_13997 {caseNum4} 10 {caseLabel4} @SCRASH2_14011 {caseNum5} 11 {caseLabel5} @SCRASH2_14025 {caseNum6} 12 {caseLabel6} @SCRASH2_14039 {caseNum7} 13 {caseLabel7} @SCRASH2_14053 {caseNum8} -1 {caseLabel8} @SCRASH2_14177 {caseNum9} -1 {caseLabel9} @SCRASH2_14177

:SCRASH2_13794
50@ = generate_random_int_in_range 0 {max} 3
if 
  50@ == 0
goto_if_false @SCRASH2_13828
127@ = 1

:SCRASH2_13828
if 
  50@ == 1
goto_if_false @SCRASH2_13853
127@ = 2

:SCRASH2_13853
if 
  50@ == 2
goto_if_false @SCRASH2_13878
127@ = 3

:SCRASH2_13878
goto @SCRASH2_14177

:SCRASH2_13885
127@ = 4
goto @SCRASH2_14177

:SCRASH2_13899
127@ = 6
goto @SCRASH2_14177

:SCRASH2_13913
127@ = 7
goto @SCRASH2_14177

:SCRASH2_13927
127@ = 9
goto @SCRASH2_14177

:SCRASH2_13941
127@ = 10
goto @SCRASH2_14177

:SCRASH2_13955
127@ = 5
goto @SCRASH2_14177

:SCRASH2_13969
127@ = 12
goto @SCRASH2_14177

:SCRASH2_13983
127@ = 13
goto @SCRASH2_14177

:SCRASH2_13997
127@ = 8
goto @SCRASH2_14177

:SCRASH2_14011
127@ = 13
goto @SCRASH2_14177

:SCRASH2_14025
127@ = 13
goto @SCRASH2_14177

:SCRASH2_14039
127@ = 11
goto @SCRASH2_14177

:SCRASH2_14053
50@ = generate_random_int_in_range 0 {max} 3
if 
  50@ == 0
goto_if_false @SCRASH2_14087
127@ = 9

:SCRASH2_14087
if 
  50@ == 1
goto_if_false @SCRASH2_14112
127@ = 5

:SCRASH2_14112
if 
  50@ == 2
goto_if_false @SCRASH2_14137
127@ = 12

:SCRASH2_14137
goto @SCRASH2_14177

:SCRASH2_14144
write_debug "UNKNOWN_CURRENT_TAXI_WAYPOINT"

:SCRASH2_14177
if 
  127@ == 13
goto_if_false @SCRASH2_14209
73@ = 0
74@ = 0

:SCRASH2_14209
switch_start 127@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_14847 {caseNum1} 0 {caseLabel1} @SCRASH2_14337 {caseNum2} 1 {caseLabel2} @SCRASH2_14372 {caseNum3} 2 {caseLabel3} @SCRASH2_14409 {caseNum4} 3 {caseLabel4} @SCRASH2_14446 {caseNum5} 4 {caseLabel5} @SCRASH2_14483 {caseNum6} 5 {caseLabel6} @SCRASH2_14520 {caseNum7} 6 {caseLabel7} @SCRASH2_14557
switch_continued 7 {caseLabel1} @SCRASH2_14594 {caseNum2} 8 {caseLabel2} @SCRASH2_14631 {caseNum3} 9 {caseLabel3} @SCRASH2_14668 {caseNum4} 10 {caseLabel4} @SCRASH2_14705 {caseNum5} 11 {caseLabel5} @SCRASH2_14742 {caseNum6} 12 {caseLabel6} @SCRASH2_14779 {caseNum7} 13 {caseLabel7} @SCRASH2_14816 {caseNum8} -1 {caseLabel8} @SCRASH2_14847 {caseNum9} -1 {caseLabel9} @SCRASH2_14847

:SCRASH2_14337
write_debug "TAXI_WAYPOINT_STILL_NONE"
goto @SCRASH2_14847

:SCRASH2_14372
135@ = 728.2346
136@ = -1068.5291
137@ = 21.3149
goto @SCRASH2_14847

:SCRASH2_14409
135@ = 885.8015
136@ = -1152.047
137@ = 22.7156
goto @SCRASH2_14847

:SCRASH2_14446
135@ = 623.9262
136@ = -1356.3361
137@ = 12.4009
goto @SCRASH2_14847

:SCRASH2_14483
135@ = 554.1271
136@ = -1327.217
137@ = 12.3984
goto @SCRASH2_14847

:SCRASH2_14520
135@ = 552.7402
136@ = -1401.848
137@ = 14.0907
goto @SCRASH2_14847

:SCRASH2_14557
135@ = 913.4064
136@ = -1381.0389
137@ = 12.3208
goto @SCRASH2_14847

:SCRASH2_14594
135@ = 807.6411
136@ = -1737.392
137@ = 12.3906
goto @SCRASH2_14847

:SCRASH2_14631
135@ = 318.3799
136@ = -1464.926
137@ = 33.003
goto @SCRASH2_14847

:SCRASH2_14668
135@ = 461.6126
136@ = -1433.671
137@ = 23.2117
goto @SCRASH2_14847

:SCRASH2_14705
135@ = 484.8509
136@ = -1579.22
137@ = 20.2086
goto @SCRASH2_14847

:SCRASH2_14742
135@ = 570.8074
136@ = -1580.052
137@ = 15.0078
goto @SCRASH2_14847

:SCRASH2_14779
135@ = 673.4271
136@ = -1737.34
137@ = 12.4441
goto @SCRASH2_14847

:SCRASH2_14816
set_lvar_float_to_lvar_float 135@ = 132@
set_lvar_float_to_lvar_float 136@ = 133@
set_lvar_float_to_lvar_float 137@ = 134@
goto @SCRASH2_14847

:SCRASH2_14847
if 
  73@ == 1
goto_if_false @SCRASH2_14932
if 
  128@ == 0
goto_if_false @SCRASH2_14897
73@ = 0
goto @SCRASH2_14932

:SCRASH2_14897
50@ = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_greater_than_int_lvar 50@ > 128@
goto_if_false @SCRASH2_14932
73@ = 0

:SCRASH2_14932
if 
  73@ == 1
goto_if_false @SCRASH2_14964
128@ = 0
goto @SCRASH2_14971

:SCRASH2_14964
128@ += 1

:SCRASH2_14971
if 
  not is_char_dead 79@
goto_if_false @SCRASH2_15201
if 
  73@ == 1
goto_if_false @SCRASH2_15039
task_car_drive_to_coord 79@ {vehicle} -1 {x} 135@ {y} 136@ {z} 137@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @SCRASH2_15201

:SCRASH2_15039
if 
  127@ == 13
goto_if_false @SCRASH2_15071
50@ = 15
goto @SCRASH2_15118

:SCRASH2_15071
set_lvar_int_to_lvar_int 50@ = 129@
50@ *= 3
50@ += 18
if 
  50@ > 25
goto_if_false @SCRASH2_15118
50@ = 25

:SCRASH2_15118
cset_lvar_float_to_lvar_int 70@ =# 50@
if 
  2 > 129@
goto_if_false @SCRASH2_15176
task_car_drive_to_coord 79@ {vehicle} -1 {x} 135@ {y} 136@ {z} 137@ {speed} 70@ {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
goto @SCRASH2_15201

:SCRASH2_15176
task_car_drive_to_coord 79@ {vehicle} -1 {x} 135@ {y} 136@ {z} 137@ {speed} 70@ {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:SCRASH2_15201
129@ += 1
return 

:SCRASH2_15210
if 
  is_char_dead 78@
goto_if_false @SCRASH2_15228
return 

:SCRASH2_15228
if 
  not is_char_in_car 78@ {vehicle} 87@
goto_if_false @SCRASH2_15249
return 

:SCRASH2_15249
if 
  is_car_dead 87@
goto_if_false @SCRASH2_15267
return 

:SCRASH2_15267
if 
  127@ <> 13
goto_if_false @SCRASH2_15334
if 
  locate_car_3d 87@ {x} 135@ {y} 136@ {z} 137@ {xRadius} 18.0 {yRadius} 18.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_15334
gosub @SCRASH2_13627

:SCRASH2_15334
if 
  127@ == 13
goto_if_false @SCRASH2_15425
if 
  locate_car_3d 87@ {x} 370.0204 {y} -1647.647 {z} 31.7173 {xRadius} 14.0 {yRadius} 14.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SCRASH2_15425
if 
  150@ == 1
goto_if_false @SCRASH2_15425
gosub @SCRASH2_13627

:SCRASH2_15425
return 

:SCRASH2_15427
57@ = 355.618
58@ = -2037.007
59@ = 6.836
63@ = 271.1917
clear_area 57@ {y} 58@ {z} 59@ {radius} 10.0 {clearParticles} True
80@ = create_char PedType.CivMale {modelId} 46 {x} 57@ {y} 58@ {z} 59@
set_char_heading 80@ {heading} 63@
set_char_is_target_priority 80@ {state} True
169@ = 1
return 

:SCRASH2_15527
if 
  144@ == 1
goto_if_false @SCRASH2_15547
return 

:SCRASH2_15547
switch_start 98@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_15747 {caseNum1} 3 {caseLabel1} @SCRASH2_15610 {caseNum2} 4 {caseLabel2} @SCRASH2_15658 {caseNum3} -1 {caseLabel3} @SCRASH2_15747 {caseNum4} -1 {caseLabel4} @SCRASH2_15747 {caseNum5} -1 {caseLabel5} @SCRASH2_15747 {caseNum6} -1 {caseLabel6} @SCRASH2_15747 {caseNum7} -1 {caseLabel7} @SCRASH2_15747

:SCRASH2_15610
task_smart_flee_char 78@ {threat} $scplayer {radius} 4000.0 {time} 3600000
98@ = 4
set_lvar_int_to_lvar_int 108@ = 46@
108@ += 250
goto @SCRASH2_15747

:SCRASH2_15658
if 
  is_int_lvar_greater_than_int_lvar 46@ > 108@
goto_if_false @SCRASH2_15740
40@ = get_script_task_status 78@ {taskId} 1501
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_15740
task_smart_flee_char 78@ {threat} $scplayer {radius} 4000.0 {time} 3600000
set_lvar_int_to_lvar_int 108@ = 46@
108@ += 250

:SCRASH2_15740
goto @SCRASH2_15747

:SCRASH2_15747
return 

:SCRASH2_15749
if 
  145@ == 1
goto_if_false @SCRASH2_15769
return 

:SCRASH2_15769
switch_start 99@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_15980 {caseNum1} 3 {caseLabel1} @SCRASH2_15832 {caseNum2} 4 {caseLabel2} @SCRASH2_15894 {caseNum3} -1 {caseLabel3} @SCRASH2_15980 {caseNum4} -1 {caseLabel4} @SCRASH2_15980 {caseNum5} -1 {caseLabel5} @SCRASH2_15980 {caseNum6} -1 {caseLabel6} @SCRASH2_15980 {caseNum7} -1 {caseLabel7} @SCRASH2_15980

:SCRASH2_15832
give_weapon_to_char 80@ {weaponType} WeaponType.Pistol {ammo} 99
set_char_decision_maker 80@ {handleOrTemplate} 97@
task_kill_char_on_foot_while_ducking 80@ {target} $scplayer {flags} 4 {actionDelay} 4000 {actionChance} 34
99@ = 4
set_lvar_int_to_lvar_int 110@ = 46@
110@ += 250
goto @SCRASH2_15980

:SCRASH2_15894
if 
  is_int_lvar_greater_than_int_lvar 46@ > 110@
goto_if_false @SCRASH2_15973
40@ = get_script_task_status 80@ {taskId} 1588
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @SCRASH2_15973
task_kill_char_on_foot_while_ducking 80@ {target} $scplayer {flags} 4 {actionDelay} 4000 {actionChance} 34
set_lvar_int_to_lvar_int 110@ = 46@
110@ += 250

:SCRASH2_15973
goto @SCRASH2_15980

:SCRASH2_15980
return 

:SCRASH2_15982
126@ = 0
100@ = 0
153@ = 0
return 

:SCRASH2_16005
switch_start 126@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_16165 {caseNum1} 0 {caseLabel1} @SCRASH2_16068 {caseNum2} 1 {caseLabel2} @SCRASH2_16130 {caseNum3} 2 {caseLabel3} @SCRASH2_16137 {caseNum4} 3 {caseLabel4} @SCRASH2_16144 {caseNum5} 4 {caseLabel5} @SCRASH2_16151 {caseNum6} 5 {caseLabel6} @SCRASH2_16158 {caseNum7} -1 {caseLabel7} @SCRASH2_16191

:SCRASH2_16068
if 
  locate_char_any_means_3d 78@ {x} 833.4493 {y} -1374.261 {z} -1.5078 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @SCRASH2_16123
126@ = 1

:SCRASH2_16123
goto @SCRASH2_16191

:SCRASH2_16130
goto @SCRASH2_16191

:SCRASH2_16137
goto @SCRASH2_16191

:SCRASH2_16144
goto @SCRASH2_16191

:SCRASH2_16151
goto @SCRASH2_16191

:SCRASH2_16158
goto @SCRASH2_16191

:SCRASH2_16165
write_debug "UNKNOWN_SUSPICION_AREA"

:SCRASH2_16191
return 

:SCRASH2_16193
if 
  156@ == 1
goto_if_false @SCRASH2_16213
return 

:SCRASH2_16213
if 
  is_char_shooting $scplayer
goto_if_false @SCRASH2_16236
156@ = 1

:SCRASH2_16236
73@ = 0
switch_start 126@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @SCRASH2_16752 {caseNum1} 0 {caseLabel1} @SCRASH2_16306 {caseNum2} 1 {caseLabel2} @SCRASH2_16313 {caseNum3} 2 {caseLabel3} @SCRASH2_16375 {caseNum4} 3 {caseLabel4} @SCRASH2_16474 {caseNum5} 4 {caseLabel5} @SCRASH2_16573 {caseNum6} 5 {caseLabel6} @SCRASH2_16672 {caseNum7} -1 {caseLabel7} @SCRASH2_16778

:SCRASH2_16306
goto @SCRASH2_16778

:SCRASH2_16313
if 
  is_char_in_area_3d $scplayer {leftBottomX} 783.9064 {leftBottomY} -1393.156 {leftBottomZ} -2.7078 {rightTopX} 858.4905 {rightTopY} -1322.64 {rightTopZ} -0.3006 {drawSphere} False
goto_if_false @SCRASH2_16368
73@ = 1

:SCRASH2_16368
goto @SCRASH2_16778

:SCRASH2_16375
if or
  is_char_in_area_3d $scplayer {leftBottomX} 825.3654 {leftBottomY} -1359.666 {leftBottomZ} -2.7078 {rightTopX} 842.8153 {rightTopY} -1338.8929 {rightTopZ} 7.3875 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 820.1507 {leftBottomY} -1365.766 {leftBottomZ} -2.7078 {rightTopX} 831.27 {rightTopY} -1354.908 {rightTopZ} -0.3078 {drawSphere} False
goto_if_false @SCRASH2_16467
73@ = 1

:SCRASH2_16467
goto @SCRASH2_16778

:SCRASH2_16474
if or
  is_char_in_area_3d $scplayer {leftBottomX} 819.6318 {leftBottomY} -1344.2581 {leftBottomZ} 4.9875 {rightTopX} 842.2764 {rightTopY} -1338.7419 {rightTopZ} 13.7162 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 816.749 {leftBottomY} -1345.116 {leftBottomZ} 8.8156 {rightTopX} 829.4735 {rightTopY} -1338.895 {rightTopZ} 13.7281 {drawSphere} False
goto_if_false @SCRASH2_16566
73@ = 1

:SCRASH2_16566
goto @SCRASH2_16778

:SCRASH2_16573
if or
  is_char_in_area_3d $scplayer {leftBottomX} 787.7994 {leftBottomY} -1357.323 {leftBottomZ} 11.3391 {rightTopX} 827.1069 {rightTopY} -1309.406 {rightTopZ} 13.7625 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 816.749 {leftBottomY} -1345.116 {leftBottomZ} 8.8156 {rightTopX} 829.4735 {rightTopY} -1338.895 {rightTopZ} 13.7281 {drawSphere} False
goto_if_false @SCRASH2_16665
73@ = 1

:SCRASH2_16665
goto @SCRASH2_16778

:SCRASH2_16672
if 
  154@ == 0
goto_if_false @SCRASH2_16745
if 
  is_char_in_area_3d $scplayer {leftBottomX} 787.0083 {leftBottomY} -1376.24 {leftBottomZ} 11.3391 {rightTopX} 809.962 {rightTopY} -1310.506 {rightTopZ} 13.8144 {drawSphere} False
goto_if_false @SCRASH2_16745
73@ = 1

:SCRASH2_16745
goto @SCRASH2_16778

:SCRASH2_16752
write_debug "UNKNOWN_SUSPICION_AREA"

:SCRASH2_16778
if 
  156@ == 1
goto_if_false @SCRASH2_16804
set_lvar_int_to_lvar_int 156@ = 73@

:SCRASH2_16804
if 
  156@ == 1
goto_if_false @SCRASH2_16854
set_lvar_int_to_lvar_int 118@ = 46@
118@ += 1000
task_smart_flee_char 78@ {threat} $scplayer {radius} 9999.0 {time} 10000

:SCRASH2_16854
if 
  73@ == 1
goto_if_false @SCRASH2_17004
57@, 58@, 59@ = get_char_coordinates 78@
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  100@ == 1
goto_if_false @SCRASH2_16976
if 
  72@ > 10.0
goto_if_false @SCRASH2_16969
73@ = 0

:SCRASH2_16969
goto @SCRASH2_17004

:SCRASH2_16976
if 
  72@ > 8.0
goto_if_false @SCRASH2_17004
73@ = 0

:SCRASH2_17004
if 
  73@ == 1
goto_if_false @SCRASH2_17215
if 
  100@ == 0
goto_if_false @SCRASH2_17117
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60
if 
  160@ == 0
goto_if_false @SCRASH2_17096
print_now 'SCR2_08' {time} 30000 {flag} 1
160@ = 1

:SCRASH2_17096
153@ = 1
100@ = 1
goto @SCRASH2_17208

:SCRASH2_17117
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17208
$g_SCrash2_spookKM += 1
if 
  $g_SCrash2_spookKM > 100
goto_if_false @SCRASH2_17193
$g_SCrash2_spookKM = 100
37@ = 1
45@ = 7
clear_small_prints 
return 
goto @SCRASH2_17208

:SCRASH2_17193
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17208
goto @SCRASH2_17367

:SCRASH2_17215
if 
  100@ == 1
goto_if_false @SCRASH2_17284
clear_small_prints 
100@ = 0
153@ = 0
set_lvar_int_to_lvar_int 101@ = 102@
clear_look_at 78@
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40
goto @SCRASH2_17367

:SCRASH2_17284
if 
  $g_SCrash2_spookKM > 0
goto_if_false @SCRASH2_17367
if and
  114@ > 0
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17367
$g_SCrash2_spookKM -= 1
if 
  0 > $g_SCrash2_spookKM
goto_if_false @SCRASH2_17367
$g_SCrash2_spookKM = 0
114@ = 0

:SCRASH2_17367
return 

:SCRASH2_17369
if 
  152@ == 1
goto_if_false @SCRASH2_17420
if 
  is_int_lvar_greater_than_int_lvar 46@ > 116@
goto_if_false @SCRASH2_17420
152@ = 0
116@ = 0

:SCRASH2_17420
162@ = 0
if or
  100@ == 3
  100@ == 1
goto_if_false @SCRASH2_17459
162@ = 1

:SCRASH2_17459
73@ = 0
74@ = 0
159@ = 0
if and
  150@ == 1
  149@ == 1
goto_if_false @SCRASH2_17617
57@, 58@, 59@ = get_char_coordinates 78@
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 372.661 {toY} -2088.79 {toZ} 6.836
60@, 61@, 62@ = get_char_coordinates $scplayer
70@ = get_distance_between_coords_3d 60@ {fromY} 61@ {fromZ} 62@ {toX} 372.661 {toY} -2088.79 {toZ} 6.836
if 
  is_float_lvar_greater_than_float_lvar 72@ > 70@
goto_if_false @SCRASH2_17617
159@ = 1

:SCRASH2_17617
if 
  159@ == 1
goto_if_false @SCRASH2_17809
if 
  100@ <> 3
goto_if_false @SCRASH2_17716
if 
  100@ <> 1
goto_if_false @SCRASH2_17686
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17686
100@ = 3
print_now 'SCR2_23' {time} 30000 {flag} 1
goto @SCRASH2_17807

:SCRASH2_17716
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_17807
$g_SCrash2_spookKM += 1
if 
  $g_SCrash2_spookKM > 100
goto_if_false @SCRASH2_17792
$g_SCrash2_spookKM = 100
37@ = 1
45@ = 7
clear_small_prints 
return 
goto @SCRASH2_17807

:SCRASH2_17792
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_17807
return 

:SCRASH2_17809
if 
  159@ == 0
goto_if_false @SCRASH2_17959
57@, 58@, 59@ = get_char_coordinates 78@
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  40.0 >= 72@
goto_if_false @SCRASH2_17931
if 
  152@ == 0
goto_if_false @SCRASH2_17924
73@ = 1

:SCRASH2_17924
goto @SCRASH2_17959

:SCRASH2_17931
if 
  72@ >= 100.0
goto_if_false @SCRASH2_17959
74@ = 1

:SCRASH2_17959
if 
  159@ == 0
goto_if_false @SCRASH2_18029
if 
  100@ == 3
goto_if_false @SCRASH2_18029
if and
  73@ == 0
  74@ == 0
goto_if_false @SCRASH2_18029
clear_small_prints 
100@ = 0

:SCRASH2_18029
if 
  73@ == 1
goto_if_false @SCRASH2_18288
if 
  100@ <> 1
goto_if_false @SCRASH2_18190
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60
if 
  100@ <> 3
goto_if_false @SCRASH2_18146
if 
  160@ == 0
goto_if_false @SCRASH2_18139
print_now 'SCR2_08' {time} 30000 {flag} 1
160@ = 1

:SCRASH2_18139
goto @SCRASH2_18169

:SCRASH2_18146
print_now 'SCR2_08' {time} 30000 {flag} 1
160@ = 1

:SCRASH2_18169
153@ = 1
100@ = 1
goto @SCRASH2_18281

:SCRASH2_18190
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_18281
$g_SCrash2_spookKM += 1
if 
  $g_SCrash2_spookKM > 100
goto_if_false @SCRASH2_18266
$g_SCrash2_spookKM = 100
37@ = 1
45@ = 7
clear_small_prints 
return 
goto @SCRASH2_18281

:SCRASH2_18266
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 60

:SCRASH2_18281
goto @SCRASH2_18315

:SCRASH2_18288
if 
  100@ == 1
goto_if_false @SCRASH2_18315
clear_small_prints 
100@ = 0

:SCRASH2_18315
if 
  74@ == 1
goto_if_false @SCRASH2_18365
if and
  149@ == 1
  150@ == 1
goto_if_false @SCRASH2_18365
74@ = 0

:SCRASH2_18365
if 
  74@ == 1
goto_if_false @SCRASH2_18615
if 
  100@ == 0
goto_if_false @SCRASH2_18438
130@ = 21
set_lvar_int_to_lvar_int 113@ = 46@
113@ += 1000
100@ = 2
goto @SCRASH2_18608

:SCRASH2_18438
if 
  is_int_lvar_greater_than_int_lvar 46@ > 113@
goto_if_false @SCRASH2_18530
130@ -= 1
if 
  0 > 130@
goto_if_false @SCRASH2_18514
130@ = 0
37@ = 1
45@ = 3
clear_small_prints 
return 
goto @SCRASH2_18530

:SCRASH2_18514
set_lvar_int_to_lvar_int 113@ = 46@
113@ += 1000

:SCRASH2_18530
if and
  130@ > 10
  72@ >= 140.0
goto_if_false @SCRASH2_18574
print_now 'SCR2_16' {time} 30000 {flag} 1

:SCRASH2_18574
if 
  130@ == 10
goto_if_false @SCRASH2_18608
print_now 'SCR2_16' {time} 30000 {flag} 1

:SCRASH2_18608
goto @SCRASH2_18651

:SCRASH2_18615
if 
  100@ == 2
goto_if_false @SCRASH2_18651
clear_this_print 'SCR2_16'
100@ = 0

:SCRASH2_18651
if and
  100@ <> 1
  100@ <> 3
goto_if_false @SCRASH2_18814
if 
  162@ == 1
goto_if_false @SCRASH2_18716
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40
goto @SCRASH2_18814

:SCRASH2_18716
if 
  $g_SCrash2_spookKM > 0
goto_if_false @SCRASH2_18814
if 
  is_int_lvar_greater_than_int_lvar 46@ > 114@
goto_if_false @SCRASH2_18814
$g_SCrash2_spookKM -= 1
if 
  0 > $g_SCrash2_spookKM
goto_if_false @SCRASH2_18799
$g_SCrash2_spookKM = 0
114@ = 0
goto @SCRASH2_18814

:SCRASH2_18799
set_lvar_int_to_lvar_int 114@ = 46@
114@ += 40

:SCRASH2_18814
return 

:SCRASH2_18816
display_onscreen_counter_with_string $g_SCrash2_spookKM {display} CounterDisplay.Bar {text} 'SCR2_52'
return 

:SCRASH2_18834
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @SCRASH2_18883
47@ += 1
if 
  47@ > 2
goto_if_false @SCRASH2_18881
47@ = 0

:SCRASH2_18881
clear_all_view_variables 

:SCRASH2_18883
if 
  47@ == 1
goto_if_false @SCRASH2_19115
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_18933
70@ = get_car_speed 81@
cset_var_int_to_lvar_float $7245 =# 70@

:SCRASH2_18933
set_var_int_to_lvar_int $SCrash2_view_debug = 34@
set_var_int_to_lvar_int $7240 = 35@
set_var_int_to_lvar_int $7241 = TIMERA
set_var_int_to_lvar_int $7242 = TIMERB
set_var_int_to_lvar_int $7243 = 46@
set_var_int_to_lvar_int $7244 = 119@
set_var_int_to_lvar_int $7246 = 121@
view_integer_variable $SCrash2_view_debug {_p2} "M_STAGE"
view_integer_variable $7240 {_p2} "M_GOALS"
view_integer_variable $7243 {_p2} "M_MISSION_TIMER"
view_integer_variable $7244 {_p2} "TRAIN_DISTANCE"
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_19094
view_integer_variable $7245 {_p2} "TRAIN_SPEED"

:SCRASH2_19094
view_integer_variable $7246 {_p2} "PLAYER_FROM_LS"

:SCRASH2_19115
if 
  47@ == 2
goto_if_false @SCRASH2_19133

:SCRASH2_19133
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @SCRASH2_19155
38@ = 1

:SCRASH2_19155
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @SCRASH2_19243
if 
  39@ == 0
goto_if_false @SCRASH2_19218
39@ = 1
write_debug "LEVEL_PAUSED"
goto @SCRASH2_19243

:SCRASH2_19218
39@ = 0
write_debug "LEVEL_UNPAUSED"

:SCRASH2_19243
return 

:SCRASH2_19245
if 
  not is_ps2_keyboard_key_just_pressed 74
goto_if_false @SCRASH2_19262
return 

:SCRASH2_19262
if 
  34@ == 1
goto_if_false @SCRASH2_19334
clear_area -2063.5471 {y} 253.2754 {z} 34.3043 {radius} 0.5 {clearParticles} True
set_char_coordinates $scplayer {x} -2063.5471 {y} 253.2754 {z} 34.3043
set_char_heading $scplayer {heading} 0.0

:SCRASH2_19334
if and
  34@ == 2
  4 > 35@
goto_if_false @SCRASH2_19585
if 
  166@ == 0
goto_if_false @SCRASH2_19452
clear_area -1944.025 {y} 135.5236 {z} 24.7109 {radius} 100.0 {clearParticles} True
81@ = create_mission_train 11 {x} -1944.025 {y} 135.5236 {z} 24.7109 {direction} False
set_train_speed 81@ {speed} 0.0
set_train_cruise_speed 81@ {speed} 0.0
166@ = 1

:SCRASH2_19452
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_19478
82@ = get_train_carriage 81@ {number} 1

:SCRASH2_19478
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_19506
task_enter_car_as_passenger 78@ {vehicle} 82@ {time} 100 {seat} -1

:SCRASH2_19506
clear_area -1989.161 {y} 208.5921 {z} 26.6797 {radius} 0.5 {clearParticles} True
set_char_coordinates $scplayer {x} -1989.161 {y} 208.5921 {z} 26.6797
set_char_heading $scplayer {heading} 221.8946
set_lvar_int_to_lvar_int 103@ = 46@
103@ += 60000
35@ = 4

:SCRASH2_19585
if and
  34@ == 3
  4 > 35@
goto_if_false @SCRASH2_19732
if 
  35@ == 1
goto_if_false @SCRASH2_19671
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_19664
set_mission_train_coordinates 81@ {x} 779.9327 {y} -1334.155 {z} -2.534

:SCRASH2_19664
goto @SCRASH2_19678

:SCRASH2_19671
35@ = 4

:SCRASH2_19678
clear_area 815.0453 {y} -1323.097 {z} 12.5036 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} 815.0453 {y} -1323.097 {z} 12.5036
set_char_heading $scplayer {heading} 187.142

:SCRASH2_19732
if and
  34@ == 4
  11 > 35@
goto_if_false @SCRASH2_20028
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_19803
set_char_coordinates 78@ {x} 803.7784 {y} -1342.926 {z} 12.5469
set_char_heading 78@ {heading} 92.3748

:SCRASH2_19803
if 
  168@ == 1
goto_if_false @SCRASH2_19874
if 
  not is_car_dead 87@
goto_if_false @SCRASH2_19867
set_car_coordinates 87@ {x} 799.7784 {y} -1342.926 {z} 12.5469
set_car_heading 87@ {heading} 7.9128

:SCRASH2_19867
goto @SCRASH2_19950

:SCRASH2_19874
clear_area 799.7784 {y} -1342.926 {z} 12.5469 {radius} 10.0 {clearParticles} True
87@ = create_car 420 {x} 799.7784 {y} -1342.926 {z} 12.5469
set_car_heading 87@ {heading} 7.9128
79@ = create_char_inside_car 87@ {pedType} PedType.CivMale {modelId} 18
168@ = 1

:SCRASH2_19950
if and
  not is_car_dead 81@
  166@ == 1
goto_if_false @SCRASH2_19995
set_train_cruise_speed 81@ {speed} 30.0
mark_mission_train_as_no_longer_needed 81@
166@ = 0

:SCRASH2_19995
156@ = 0
157@ = 0
158@ = 1
remove_blip 90@
35@ = 11

:SCRASH2_20028
if 
  34@ == 5
goto_if_false @SCRASH2_20207
132@ = 366.4698
133@ = -2030.6429
134@ = 6.6582
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_20146
clear_area 366.4698 {y} -2030.6429 {z} 6.6582 {radius} 5.0 {clearParticles} True
set_char_coordinates 78@ {x} 366.4698 {y} -2030.6429 {z} 6.6582
set_char_heading 78@ {heading} 179.2269

:SCRASH2_20146
clear_area 383.3648 {y} -1930.448 {z} 6.8301 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} 383.3648 {y} -1930.448 {z} 6.8301
set_char_heading $scplayer {heading} 88.4042
35@ = 1

:SCRASH2_20207
return 

:SCRASH2_20209
41@ += 1
if 
  41@ > 9
goto_if_false @SCRASH2_20241
41@ = 0

:SCRASH2_20241
return 

:SCRASH2_20243
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:SCRASH2_20282
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:SCRASH2_20312
set_player_control $player1 {state} False
load_cutscene 'SCRASH2'

:SCRASH2_20330
if 
  not has_cutscene_loaded 
goto_if_false @SCRASH2_20354
wait 0
goto @SCRASH2_20330

:SCRASH2_20354
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SCRASH2_20399
if 
  not has_cutscene_finished 
goto_if_false @SCRASH2_20423
wait 0
goto @SCRASH2_20399

:SCRASH2_20423
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:SCRASH2_20437
if 
  get_fading_status 
goto_if_false @SCRASH2_20461
wait 0
goto @SCRASH2_20437

:SCRASH2_20461
clear_cutscene 
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
return 

:SCRASH2_20489
if 
  not is_player_playing $player1
goto_if_false @SCRASH2_20516
wait 0
goto @SCRASH2_20489

:SCRASH2_20516
gosub @SCRASH2_20731
gosub @SCRASH2_20897
clear_area -1978.85 {y} 169.6607 {z} 26.6953 {radius} 3.0 {clearParticles} False
89@ = create_car 468 {x} -1978.85 {y} 169.6607 {z} 26.6953
set_car_heading 89@ {heading} 90.1127
161@ = 1
clear_area -2033.339 {y} 148.6139 {z} 27.8359 {radius} 0.5 {clearParticles} False
load_scene -2033.339 {y} 148.6139 {z} 27.8359
set_char_coordinates $scplayer {x} -2033.339 {y} 148.6139 {z} 27.8359
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 
set_player_control $player1 {state} True
switch_random_trains False
set_respawn_point_for_duration_of_mission -2026.061 {y} 148.828 {z} 27.8359
set_railtrack_resistance_mult 0.4
wait 1000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
gosub @SCRASH2_20282
return 

:SCRASH2_20731
request_model 538
request_model 570
request_model 537
request_model 569
request_model 468
request_model 147
request_model 18
request_model 46
request_model 358
request_model 346
load_all_models_now 

:SCRASH2_20781
if or
  not has_model_loaded 538
  not has_model_loaded 570
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 468
goto_if_false @SCRASH2_20828
wait 0
goto @SCRASH2_20781

:SCRASH2_20828
if or
  not has_model_loaded 147
  not has_model_loaded 18
  not has_model_loaded 46
goto_if_false @SCRASH2_20863
wait 0
goto @SCRASH2_20828

:SCRASH2_20863
if or
  not has_model_loaded 358
  not has_model_loaded 346
goto_if_false @SCRASH2_20895
wait 0
goto @SCRASH2_20863

:SCRASH2_20895
return 

:SCRASH2_20897
request_animation "MISC"
request_animation "GANGS"

:SCRASH2_20914
if or
  not has_animation_loaded "MISC"
  not has_animation_loaded "GANGS"
goto_if_false @SCRASH2_20953
wait 0
goto @SCRASH2_20914

:SCRASH2_20953
return 

:SCRASH2_20955
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SCRASH2_21197 {caseNum1} 1 {caseLabel1} @SCRASH2_21036 {caseNum2} 2 {caseLabel2} @SCRASH2_21059 {caseNum3} 3 {caseLabel3} @SCRASH2_21082 {caseNum4} 4 {caseLabel4} @SCRASH2_21105 {caseNum5} 5 {caseLabel5} @SCRASH2_21128 {caseNum6} 6 {caseLabel6} @SCRASH2_21151 {caseNum7} 7 {caseLabel7} @SCRASH2_21174

:SCRASH2_21036
print_now 'SCR2_80' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21059
print_now 'SCR2_81' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21082
print_now 'SCR2_82' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21105
print_now 'SCR2_83' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21128
print_now 'SCR2_84' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21151
print_now 'SCR2_85' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21174
print_now 'SCR2_86' {time} 5000 {flag} 1
goto @SCRASH2_21197

:SCRASH2_21197
155@ = 1
return 

:SCRASH2_21206
clear_small_prints 
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'SCRA_2'
player_made_progress 1
$flag_scrash_mission_counter += 1
remove_blip $scrash_contact_blip
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
155@ = 0
return 

:SCRASH2_21293
if 
  is_player_playing $player1
goto_if_false @SCRASH2_21398
if 
  155@ == 1
goto_if_false @SCRASH2_21398
if 
  131@ == 0
goto_if_false @SCRASH2_21359
remove_weapon_from_char $scplayer {weaponType} WeaponType.Sniper
goto @SCRASH2_21398

:SCRASH2_21359
50@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  is_int_lvar_greater_than_int_lvar 50@ > 131@
goto_if_false @SCRASH2_21398
set_char_ammo $scplayer {weaponType} WeaponType.Sniper {ammo} 131@

:SCRASH2_21398
if and
  168@ == 1
  not is_car_dead 87@
goto_if_false @SCRASH2_21428
set_taxi_lights 87@ {state} False

:SCRASH2_21428
if 
  not is_char_dead 79@
goto_if_false @SCRASH2_21449
clear_char_tasks 79@

:SCRASH2_21449
if 
  not is_char_dead 78@
goto_if_false @SCRASH2_21470
clear_look_at 78@

:SCRASH2_21470
remove_pickup 95@
mark_char_as_no_longer_needed 78@
mark_car_as_no_longer_needed 87@
mark_char_as_no_longer_needed 79@
mark_char_as_no_longer_needed 80@
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 358
48@ = 0

:SCRASH2_21512
mark_mission_train_as_no_longer_needed 84@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @SCRASH2_21512
if 
  166@ == 1
goto_if_false @SCRASH2_21591
if 
  not is_car_dead 81@
goto_if_false @SCRASH2_21591
set_train_cruise_speed 81@ {speed} 30.0
mark_mission_train_as_no_longer_needed 81@

:SCRASH2_21591
remove_blip 90@
remove_blip 91@
remove_blip 92@
remove_blip 93@
remove_blip 94@
clear_onscreen_counter $g_SCrash2_spookKM
remove_animation "MISC"
remove_animation "GANGS"
clear_help 
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 46
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 346
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
$timer_mobile_start = get_game_timer 
switch_roads_back_to_original 789.595 {leftBottomY} -1387.97 {leftBottomZ} 11.5469 {rightTopX} 807.2843 {rightTopY} -1334.546 {rightTopZ} 13.725
switch_roads_back_to_original 804.9978 {leftBottomY} -1414.032 {leftBottomZ} 11.3801 {rightTopX} 908.0844 {rightTopY} -1386.618 {rightTopZ} 13.5524
switch_roads_back_to_original 802.1913 {leftBottomY} -1335.066 {leftBottomZ} 11.1828 {rightTopX} 911.4662 {rightTopY} -1313.045 {rightTopZ} 13.7469
set_railtrack_resistance_mult -1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 53---------------
// Originally: Mountain Cloud Boys

:WUZI1
script_name 'WUZI1'
gosub @WUZI1_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI1_38
gosub @WUZI1_27957

:WUZI1_38
gosub @WUZI1_28039
terminate_this_script 

:WUZI1_47
231@ = 15
232@ = 33
233@ = 38
234@ = 39
235@ = 40
236@ = 41
237@ = 42
265@ = 0
load_mission_text 'WUZI1'
clear_this_print 'M_FAIL'
$onmission = 1
register_mission_given 
if 
  71@ == 99
goto_if_false @WUZI1_231
35@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
104@ = create_car 419 {x} 0.0 {y} 0.0 {z} 0.0
157@ = create_group DefaultTaskAllocator.StandStill
107@ = add_blip_for_char 35@
109@ = add_blip_for_char 35@
108@ = add_blip_for_char 35@

:WUZI1_231
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @WUZI1_257
goto @WUZI1_27975

:WUZI1_257
if 
is_ps2_keyboard_key_pressed 88
goto_if_false @WUZI1_328
set_char_coordinates $scplayer {x} -2175.7351 {y} 653.6188 {z} 48.4453
if 
  not is_char_dead 35@
goto_if_false @WUZI1_328
set_char_coordinates 35@ {x} -2176.7351 {y} 653.6188 {z} 48.4453

:WUZI1_328
if 
is_ps2_keyboard_key_pressed 90
goto_if_false @WUZI1_399
set_char_coordinates $scplayer {x} -2247.749 {y} 649.4075 {z} 48.4375
if 
  not is_char_dead 35@
goto_if_false @WUZI1_399
set_char_coordinates 35@ {x} -2246.749 {y} 649.4075 {z} 48.4375

:WUZI1_399
switch_start 71@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @WUZI1_695 {caseNum1} 0 {caseLabel1} @WUZI1_527 {caseNum2} 1 {caseLabel2} @WUZI1_548 {caseNum3} 2 {caseLabel3} @WUZI1_569 {caseNum4} 3 {caseLabel4} @WUZI1_583 {caseNum5} 4 {caseLabel5} @WUZI1_597 {caseNum6} 5 {caseLabel6} @WUZI1_611 {caseNum7} 6 {caseLabel7} @WUZI1_625
switch_continued 7 {caseLabel1} @WUZI1_639 {caseNum2} 8 {caseLabel2} @WUZI1_653 {caseNum3} 9 {caseLabel3} @WUZI1_667 {caseNum4} 10 {caseLabel4} @WUZI1_681 {caseNum5} -1 {caseLabel5} @WUZI1_695 {caseNum6} -1 {caseLabel6} @WUZI1_695 {caseNum7} -1 {caseLabel7} @WUZI1_695 {caseNum8} -1 {caseLabel8} @WUZI1_695 {caseNum9} -1 {caseLabel9} @WUZI1_695

:WUZI1_527
gosub @WUZI1_2353
71@ = 1
goto @WUZI1_695

:WUZI1_548
gosub @WUZI1_1167
71@ = 2
goto @WUZI1_695

:WUZI1_569
gosub @WUZI1_2631
goto @WUZI1_695

:WUZI1_583
gosub @WUZI1_7076
goto @WUZI1_695

:WUZI1_597
gosub @WUZI1_13133
goto @WUZI1_695

:WUZI1_611
gosub @WUZI1_13769
goto @WUZI1_695

:WUZI1_625
gosub @WUZI1_16453
goto @WUZI1_695

:WUZI1_639
gosub @WUZI1_17106
goto @WUZI1_695

:WUZI1_653
gosub @WUZI1_18968
goto @WUZI1_695

:WUZI1_667
gosub @WUZI1_19861
goto @WUZI1_695

:WUZI1_681
goto @WUZI1_27975
goto @WUZI1_695

:WUZI1_695
gosub @WUZI1_838
gosub @WUZI1_906
gosub @WUZI1_23148
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
228@, 229@, 230@ = get_char_coordinates $scplayer
if or
  71@ == 2
  71@ == 4
  71@ == 6
goto_if_false @WUZI1_804
gosub @WUZI1_20336
gosub @WUZI1_22823
gosub @WUZI1_23037
gosub @WUZI1_23146

:WUZI1_804
if 
  36@ == 1
goto_if_false @WUZI1_829
goto @WUZI1_27957

:WUZI1_829
goto @WUZI1_231
return 

:WUZI1_838
if 
  37@ == 1
goto_if_false @WUZI1_904
if 
  is_char_dead 35@
goto_if_false @WUZI1_904
clear_prints 
print 'WZ1_40' {time} 5000 {flag} 1
36@ = 1
goto @WUZI1_27957

:WUZI1_904
return 

:WUZI1_906
if 
  73@ == 1
goto_if_false @WUZI1_1165
if 
  72@ == 1
goto_if_false @WUZI1_1029
if 
  not is_char_dead 35@
goto_if_false @WUZI1_1029
if 
  not is_group_member 35@ {handle} $Players_Group
goto_if_false @WUZI1_1029
72@ = 0
remove_blip 108@
108@ = add_blip_for_char 35@
set_blip_as_friendly 108@ {state} True
change_blip_display 107@ {display} BlipDisplay.Neither
clear_prints 
print 'WZ1_41' {time} 4000 {flag} 1

:WUZI1_1029
if 
  72@ == 0
goto_if_false @WUZI1_1165
if 
  not is_char_dead 35@
goto_if_false @WUZI1_1165
if 
  is_group_member 35@ {handle} $Players_Group
goto_if_false @WUZI1_1096
72@ = 1
goto @WUZI1_1165

:WUZI1_1096
if 
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @WUZI1_1165
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 35@
listen_to_player_group_commands 35@ {state} False
remove_blip 108@
change_blip_display 107@ {display} BlipDisplay.Both
72@ = 1

:WUZI1_1165
return 

:WUZI1_1167
191@ = 4
load_special_character 1 {modelName} 'WUZIMU'
request_model 352
request_model 121
request_model 122
request_model 123
request_model 117
request_model 118
request_model 358
request_model 405
request_model 468
request_model 58
request_animation "WUZI"
request_car_recording 169
request_car_recording 139

:WUZI1_1249
if or
  not has_special_character_loaded 1
  not has_model_loaded 352
  not has_model_loaded 358
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 123
goto_if_false @WUZI1_1297
wait 0
goto @WUZI1_1249

:WUZI1_1297
if or
  not has_model_loaded 405
  not has_model_loaded 468
  not has_model_loaded 117
  not has_model_loaded 118
  not has_model_loaded 58
goto_if_false @WUZI1_1341
wait 0
goto @WUZI1_1297

:WUZI1_1341
if or
  not has_car_recording_been_loaded 169
  not has_car_recording_been_loaded 139
goto_if_false @WUZI1_1373
wait 0
goto @WUZI1_1341

:WUZI1_1373
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
34@ = load_char_decision_maker DecisionMakerType.Tough
clear_char_decision_maker_event_response 34@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 34@ {event} Event.Damage
clear_char_decision_maker_event_response 34@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 34@ {event} Event.ShotFired
add_char_decision_maker_event_response 34@ {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 34@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
if 
  does_object_exist $china_town_gate
goto_if_false @WUZI1_1529
delete_object $china_town_gate

:WUZI1_1529
$china_town_gate = create_object_no_offset #CT_GATEXR {x} -2179.353 {y} 661.232 {z} 50.214
set_object_collision_damage_effect $china_town_gate {state} False
mark_model_as_no_longer_needed #CT_GATEXR
68@ = create_object_no_offset #CT_STALL1 {x} -2213.4131 {y} 640.908 {z} 48.43
set_object_heading 68@ {heading} 90.0
58@ = create_object_no_offset #CT_TABLE {x} -2201.436 {y} 647.109 {z} 48.413
49@ = create_object_no_offset #CHINATGARAGEDOOR {x} -2184.415 {y} 711.556 {z} 54.523
50@ = create_object_no_offset #CHINATGARAGEDOOR {x} -2178.8701 {y} 711.556 {z} 54.523
45@ = create_object_no_offset #TMP_BIN {x} -2183.968 {y} 647.055 {z} 49.185
46@ = create_object_no_offset #TMP_BIN {x} -2172.813 {y} 654.019 {z} 49.185
47@ = create_object_no_offset #TMP_BIN {x} -2172.813 {y} 649.293 {z} 49.185
set_object_heading 46@ {heading} 270.0
set_object_heading 47@ {heading} 270.0
set_object_heading $china_town_gate {heading} 0.0
set_wanted_multiplier 0.2
alter_wanted_level $player1 {wantedLevel} 0
73@ = 1
switch_emergency_services False
77@ = 99
201@ = -2199.0
205@ = 645.4869
209@ = 48.4453
213@ = -2194.6799
217@ = 646.1572
221@ = 48.4453
202@ = -2199.0
206@ = 640.8279
210@ = 48.4453
214@ = -2194.043
218@ = 638.7194
222@ = 48.4453
203@ = -2195.8391
207@ = 635.439
211@ = 48.4453
215@ = -2189.3669
219@ = 636.7801
223@ = 48.4453
204@ = -2213.0049
208@ = 638.9453
212@ = 48.4459
216@ = -2204.7781
220@ = 639.4221
224@ = 48.4453
35@ = create_char PedType.Mission2 {modelId} 290 {x} -2155.4619 {y} 645.8904 {z} 51.3516
set_lvar_int_to_lvar_int 741@ = 35@
37@ = 1
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_current_char_weapon 35@ {weaponType} WeaponType.Unarmed
set_char_heading 35@ {heading} 180.0
set_char_health 35@ {health} 250
set_char_max_health 35@ {maxHealth} 250
161@ = 250
set_char_suffers_critical_hits 35@ {state} False
unload_special_character 1
107@ = add_blip_for_coord -2244.9951 {y} 642.8972 {z} 48.4077
if 
  not is_char_dead $scplayer
goto_if_false @WUZI1_2203
set_char_coordinates $scplayer {x} -2155.2661 {y} 645.0895 {z} 51.3516
set_char_heading $scplayer {heading} 270.0

:WUZI1_2203
if 
  not is_char_dead 35@
goto_if_false @WUZI1_2268
set_anim_group_for_char 35@ {animGroup} "BLINDMAN"
set_char_decision_maker 35@ {handleOrTemplate} 34@
set_char_never_targetted 35@ {state} True
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 35@
72@ = 1

:WUZI1_2268
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
load_scene_in_direction -2155.2661 {y} 645.0895 {z} 51.3516 {heading} 270.0
request_collision -2155.0 {y} 645.0
do_fade 1000 {direction} Fade.In
load_scene -2155.2661 {y} 645.0895 {z} 51.3
71@ = 2
42@ = 0
return 

:WUZI1_2353
load_mission_text 'WUZI1'
set_player_control $player1 {state} False
set_area_visible 1
load_cutscene 'WOOZI1A'

:WUZI1_2386
if 
  not has_cutscene_loaded 
goto_if_false @WUZI1_2410
wait 0
goto @WUZI1_2386

:WUZI1_2410
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI1_2419
if 
  not has_cutscene_finished 
goto_if_false @WUZI1_2443
wait 0
goto @WUZI1_2419

:WUZI1_2443
if 
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_2463
238@ = 1

:WUZI1_2463
do_fade 0 {direction} Fade.Out

:WUZI1_2469
if 
  get_fading_status 
goto_if_false @WUZI1_2493
wait 0
goto @WUZI1_2469

:WUZI1_2493
clear_cutscene 
if 
  238@ == 0
goto_if_false @WUZI1_2613
load_cutscene 'WOOZI1B'

:WUZI1_2524
if 
  not has_cutscene_loaded 
goto_if_false @WUZI1_2548
wait 0
goto @WUZI1_2524

:WUZI1_2548
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI1_2557
if 
  not has_cutscene_finished 
goto_if_false @WUZI1_2581
wait 0
goto @WUZI1_2557

:WUZI1_2581
do_fade 0 {direction} Fade.Out

:WUZI1_2587
if 
  get_fading_status 
goto_if_false @WUZI1_2611
wait 0
goto @WUZI1_2587

:WUZI1_2611
clear_cutscene 

:WUZI1_2613
set_area_visible 0
set_fading_colour 0 {g} 0 {b} 0
wait 0
return 

:WUZI1_2631
if 
  38@ == 0
goto_if_false @WUZI1_3754
if 
  75@ == 0
goto_if_false @WUZI1_2724
637@ = 1
638@ = 2
75@ = 1
if 
  does_object_exist $china_town_gate
goto_if_false @WUZI1_2724
set_object_rotation $china_town_gate {x} 0.0 {y} 0.0 {z} 330.0

:WUZI1_2724
if 
  75@ == 1
goto_if_false @WUZI1_2783
if 
  637@ == 0
goto_if_false @WUZI1_2783
print 'WZ1_1' {time} 8000 {flag} 1
75@ = 2

:WUZI1_2783
if 
  75@ == 2
goto_if_false @WUZI1_3754
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  43@ == 0
goto_if_false @WUZI1_2871
if or
  627.0 > $player_y
  $player_y > 657.0
goto_if_false @WUZI1_2871
43@ = 1

:WUZI1_2871
if 
  43@ == 1
goto_if_false @WUZI1_2928
if 
  637@ == 0
goto_if_false @WUZI1_2928
637@ = 3
638@ = 2
43@ = 2

:WUZI1_2928
if 
  43@ == 2
goto_if_false @WUZI1_2974
if 
  -2164.0 > $player_x
goto_if_false @WUZI1_2974
43@ = 3

:WUZI1_2974
if 
  43@ == 3
goto_if_false @WUZI1_3031
if 
  637@ == 0
goto_if_false @WUZI1_3031
637@ = 5
638@ = 3
43@ = 4

:WUZI1_3031
if 
  43@ == 4
goto_if_false @WUZI1_3087
if and
  707.0 > $player_y
  $player_y > 587.0
goto_if_false @WUZI1_3087
43@ = 5

:WUZI1_3087
if 
  43@ == 5
goto_if_false @WUZI1_3144
if 
  637@ == 0
goto_if_false @WUZI1_3144
637@ = 9
638@ = 2
43@ = 6

:WUZI1_3144
if 
  43@ == 7
goto_if_false @WUZI1_3193
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_3193
task_leave_any_car $scplayer
43@ = 8

:WUZI1_3193
if 
  43@ == 8
goto_if_false @WUZI1_3303
if 
  not is_char_in_any_car $scplayer
goto_if_false @WUZI1_3269
set_player_control $player1 {state} True
43@ = 11
if 
  not is_char_dead 35@
goto_if_false @WUZI1_3262
remove_char_from_group 35@

:WUZI1_3262
goto @WUZI1_3303

:WUZI1_3269
195@ = get_script_task_status $scplayer {taskId} 1587
if 
  is_int_lvar_equal_to_constant 195@ == 7
goto_if_false @WUZI1_3303
task_leave_any_car $scplayer

:WUZI1_3303
if 
  239@ == 1
goto_if_false @WUZI1_3367
if and
  636@ == 1
  637@ == 0
goto_if_false @WUZI1_3367
637@ = 11
638@ = 2
239@ = 2

:WUZI1_3367
if 
  239@ == 2
goto_if_false @WUZI1_3440
if and
  636@ == 1
  637@ == 0
goto_if_false @WUZI1_3440
print 'WZ1_B4' {time} 5000 {flag} 1
38@ = 1
239@ = 3

:WUZI1_3440
if 
  7 > 43@
goto_if_false @WUZI1_3754
if 
  72@ == 1
goto_if_false @WUZI1_3754
if 
  not is_char_dead 35@
goto_if_false @WUZI1_3754
if 
  locate_char_any_means_3d $scplayer {x} -2248.0769 {y} 651.3163 {z} 48.3815 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI1_3754
if 
  not locate_char_any_means_3d 35@ {x} -2248.0769 {y} 651.3163 {z} 48.3815 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @WUZI1_3611
print_now 'WZ1_2' {time} 1000 {flag} 1
goto @WUZI1_3754

:WUZI1_3611
239@ = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_3728
$car = get_car_char_is_using $scplayer
set_player_control $player1 {state} False
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 600
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 600
if 
  is_char_in_any_car 35@
goto_if_false @WUZI1_3728
132@ = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_3728
636@ = 6
remove_blip 107@
43@ = 7
73@ = 0

:WUZI1_3754
if 
  38@ == 1
goto_if_false @WUZI1_3878
if 
  not is_char_in_any_car $scplayer
goto_if_false @WUZI1_3878
if 
  not is_char_dead 35@
goto_if_false @WUZI1_3878
132@ = open_sequence_task 
task_pause -1 {time} 300
task_follow_path_nodes_to_coord -1 {x} -2244.439 {y} 643.4277 {z} 48.4375 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
253@ = 20
38@ = 2

:WUZI1_3878
if 
  38@ == 2
goto_if_false @WUZI1_7074
if 
  240@ == 0
goto_if_false @WUZI1_4389
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  646.0 > $player_y
goto_if_false @WUZI1_4389
243@ = create_random_char -2182.969 {y} 645.0695 {z} 48.4453
244@ = create_random_char -2183.6431 {y} 642.2832 {z} 48.4453
245@ = create_random_char -2190.5071 {y} 636.5036 {z} 48.4429
246@ = create_random_char -2200.647 {y} 641.6252 {z} 48.4429
247@ = create_random_char -2200.6221 {y} 642.8997 {z} 48.4429
248@ = create_random_char -2223.2429 {y} 644.5712 {z} 48.4448
249@ = create_random_char -2235.814 {y} 642.5659 {z} 48.4472
set_lvar_int_to_lvar_int 250@ = TIMERA
132@ = open_sequence_task 
task_pause -1 {time} 2000
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000
close_sequence_task 132@
perform_sequence_task 243@ {sequence} 132@
clear_sequence_task 132@
task_go_straight_to_coord 244@ {x} -2190.978 {y} 646.0287 {z} 48.4453 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord 245@ {x} -2192.9641 {y} 644.2189 {z} 48.4453 {speed} MoveState.Walk {time} -2
132@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 247@
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 6000
close_sequence_task 132@
perform_sequence_task 246@ {sequence} 132@
clear_sequence_task 132@
132@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 246@
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 6000
close_sequence_task 132@
perform_sequence_task 247@ {sequence} 132@
clear_sequence_task 132@
task_go_straight_to_coord 248@ {x} -2200.9409 {y} 644.4352 {z} 48.4429 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord 249@ {x} -2213.1709 {y} 638.7413 {z} 48.4496 {speed} MoveState.Walk {time} -2
240@ = 1

:WUZI1_4389
if 
  240@ > 0
goto_if_false @WUZI1_5233
set_lvar_int_to_lvar_int 251@ = TIMERA
sub_int_lvar_from_int_lvar 251@ -= 250@
if 
  252@ == 0
goto_if_false @WUZI1_4511
if 
  251@ > 3500
goto_if_false @WUZI1_4511
if 
  not is_char_dead 244@
goto_if_false @WUZI1_4504
task_smart_flee_point 244@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_4504
252@ = 1

:WUZI1_4511
if 
  252@ == 1
goto_if_false @WUZI1_4657
if 
  251@ > 6000
goto_if_false @WUZI1_4657
if 
  not is_char_dead 245@
goto_if_false @WUZI1_4650
132@ = open_sequence_task 
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 5000
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000
close_sequence_task 132@
perform_sequence_task 245@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_4650
252@ = 2

:WUZI1_4657
if 
  252@ == 2
goto_if_false @WUZI1_4745
if 
  251@ > 9000
goto_if_false @WUZI1_4745
if 
  not is_char_dead 246@
goto_if_false @WUZI1_4738
task_smart_flee_point 246@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_4738
252@ = 3

:WUZI1_4745
if 
  252@ == 3
goto_if_false @WUZI1_4891
if 
  251@ > 8000
goto_if_false @WUZI1_4891
if 
  not is_char_dead 247@
goto_if_false @WUZI1_4884
132@ = open_sequence_task 
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 3000
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
task_smart_flee_point -1 {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000
close_sequence_task 132@
perform_sequence_task 247@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_4884
252@ = 4

:WUZI1_4891
if 
  252@ == 4
goto_if_false @WUZI1_4979
if 
  251@ > 10000
goto_if_false @WUZI1_4979
if 
  not is_char_dead 248@
goto_if_false @WUZI1_4972
task_smart_flee_point 248@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_4972
252@ = 5

:WUZI1_4979
if 
  252@ == 5
goto_if_false @WUZI1_5067
if 
  251@ > 12000
goto_if_false @WUZI1_5067
if 
  not is_char_dead 249@
goto_if_false @WUZI1_5060
task_smart_flee_point 249@ {x} -2181.969 {y} 645.0695 {z} 48.4453 {radius} 80.0 {time} 30000

:WUZI1_5060
252@ = 6

:WUZI1_5067
if 
  252@ == 6
goto_if_false @WUZI1_5233
if 
  251@ > 52000
goto_if_false @WUZI1_5233
130@ = 0

:WUZI1_5113
if 
  7 > 130@
goto_if_false @WUZI1_5226
if 
  not is_char_dead 243@(130@,7i)
goto_if_false @WUZI1_5212
task_pause 243@(130@,7i) {time} 1
mark_char_as_no_longer_needed 243@(130@,7i)
task_wander_standard 243@(130@,7i)
switch_ped_roads_off -2239.251 {leftBottomY} 636.6675 {leftBottomZ} 53.1933 {rightTopX} -2165.0471 {rightTopY} 720.0577 {rightTopZ} 49.5456

:WUZI1_5212
130@ += 1
goto @WUZI1_5113

:WUZI1_5226
252@ = 7

:WUZI1_5233
if 
  240@ == 1
goto_if_false @WUZI1_5535
if and
  251@ > 12000
  22000 > 251@
goto_if_false @WUZI1_5535
if 
  not is_char_dead 35@
goto_if_false @WUZI1_5535
$x, $y, $z = get_char_coordinates 35@
if and
  $x > -2240.2759
  -2227.0 > $x
goto_if_false @WUZI1_5535
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @WUZI1_5535
clear_char_tasks 35@
task_pause 35@ {time} 1
flush_route 
extend_route -2232.999 {y} 643.0717 {z} 48.4466
extend_route -2213.8879 {y} 643.3788 {z} 48.4462
extend_route -2172.958 {y} 644.4861 {z} 48.4453
132@ = open_sequence_task 
task_scratch_head -1
task_look_at_char -1 {target} $scplayer {time} 5000
task_pause -1 {time} 1000
task_pause -1 {time} 0
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
637@ = 69
638@ = 4
240@ = 2
253@ = 21

:WUZI1_5535
if 
  253@ == 1
goto_if_false @WUZI1_5786
if 
  not is_char_dead 35@
goto_if_false @WUZI1_5786
158@ = get_script_task_status 35@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_5786
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_5786
132@ = open_sequence_task 
task_play_anim -1 {animationName} "WUZI_GRND_CHK" {animationFile} "WUZI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 1000
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000
task_go_straight_to_coord -1 {x} -2214.083 {y} 641.1605 {z} 48.4489 {speed} MoveState.Walk {time} -2
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
clear_char_decision_maker_event_response 34@ {event} Event.PotentialWalkIntoObject
637@ = 73
638@ = 3
253@ = 20

:WUZI1_5786
if 
  253@ == 20
goto_if_false @WUZI1_6150
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6150
158@ = get_script_task_status 35@ {taskId} -1
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6150
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_6150
flush_route 
extend_route -2232.999 {y} 643.0717 {z} 48.4466
extend_route -2213.8879 {y} 643.3788 {z} 48.4462
extend_route -2172.958 {y} 644.4861 {z} 48.4453
if 
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 13.0 {yRadius} 13.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @WUZI1_5976
254@ = 1
goto @WUZI1_5983

:WUZI1_5976
254@ = 0

:WUZI1_5983
132@ = open_sequence_task 
task_play_anim -1 {animationName} "WUZI_GRND_CHK" {animationFile} "WUZI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 1000
if 
  254@ == 1
goto_if_false @WUZI1_6096
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3500

:WUZI1_6096
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
clear_char_decision_maker_event_response 34@ {event} Event.PotentialWalkIntoObject
637@ = 73
638@ = 3
253@ = 21

:WUZI1_6150
if 
  253@ == 21
goto_if_false @WUZI1_6488
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6488
158@ = get_script_task_status 35@ {taskId} 1560
$x, $y, $z = get_char_coordinates 35@
if 
  $x > -2181.2759
goto_if_false @WUZI1_6292
132@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2172.958 {y} 644.4861 {z} 48.4453 {speed} MoveState.Run {time} -2
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 500
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
253@ = 22

:WUZI1_6292
if and
  -2243.0 > $x
  257@ == 1
goto_if_false @WUZI1_6435
257@ = 2
flush_route 
extend_route -2244.8311 {y} 643.3638 {z} 48.439
extend_route -2232.999 {y} 643.0717 {z} 48.4466
extend_route -2213.8879 {y} 643.3788 {z} 48.4462
extend_route -2172.958 {y} 644.4861 {z} 48.4453
132@ = open_sequence_task 
task_pause -1 {time} 1000
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_6435
if 
  $x > -2240.0
goto_if_false @WUZI1_6488
if or
  257@ == 0
  257@ == 2
goto_if_false @WUZI1_6488
257@ = 1

:WUZI1_6488
if 
  253@ == 22
goto_if_false @WUZI1_6633
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6633
158@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 158@ == 1
goto_if_false @WUZI1_6633
if 
  255@ == 0
goto_if_false @WUZI1_6633
132@ = get_sequence_progress 35@
if or
  132@ == 1
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6633
256@ = set_char_say_context_important 35@ {phrase} SpeechId.PainLow {overrideSilence} True {ignoreMute} False {frontEnd} False
253@ = 23
255@ = 1

:WUZI1_6633
if 
  253@ == 23
goto_if_false @WUZI1_6784
if 
  not is_char_dead 35@
goto_if_false @WUZI1_6784
158@ = get_script_task_status 35@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_6784
132@ = open_sequence_task 
task_scratch_head -1
task_look_at_char -1 {target} $scplayer {time} 5000
task_pause -1 {time} 4000
task_go_straight_to_coord -1 {x} -2176.1841 {y} 653.9911 {z} 48.4453 {speed} MoveState.Walk {time} -2
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
637@ = 78
638@ = 4
253@ = 10

:WUZI1_6784
if 
  not is_char_dead 35@
goto_if_false @WUZI1_7074
if 
  78@ == 0
goto_if_false @WUZI1_6856
if 
  not is_char_in_any_car 35@
goto_if_false @WUZI1_6856
108@ = add_blip_for_char 35@
set_blip_as_friendly 108@ {state} True
78@ = 1

:WUZI1_6856
if and
  637@ == 0
  636@ == 1
goto_if_false @WUZI1_7074
if or
  locate_char_any_means_3d $scplayer {x} -2175.8721 {y} 659.7667 {z} 49.4793 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} -2191.5129 {leftBottomY} 711.8201 {leftBottomZ} 63.4591 {rightTopX} -2171.8589 {rightTopY} 648.7307 {rightTopZ} 48.1132 {drawSphere} False
goto_if_false @WUZI1_7074
71@ = 3
42@ = 0
set_lvar_int_to_lvar_int 266@ = TIMERA
266@ += 1500
remove_char_from_group 35@
remove_blip 108@
130@ = 0

:WUZI1_7013
if 
  7 > 130@
goto_if_false @WUZI1_7074
if 
  does_char_exist 243@(130@,7i)
goto_if_false @WUZI1_7060
delete_char 243@(130@,7i)

:WUZI1_7060
130@ += 1
goto @WUZI1_7013

:WUZI1_7074
return 

:WUZI1_7076
set_wanted_multiplier 0.1
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
set_police_ignore_player $player1 {state} True
if 
  92@ == 1
goto_if_false @WUZI1_7122

:WUZI1_7122
if 
  39@ == 0
goto_if_false @WUZI1_7171
39@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WUZI1_7171
40@ = 1

:WUZI1_7171
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WUZI1_7253
if 
  40@ == 0
goto_if_false @WUZI1_7246
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 266@
goto_if_false @WUZI1_7246
42@ = 13
159@ = 0
636@ = 6

:WUZI1_7246
goto @WUZI1_7278

:WUZI1_7253
if 
  40@ == 1
goto_if_false @WUZI1_7278
40@ = 0

:WUZI1_7278
if 
  42@ == 0
goto_if_false @WUZI1_8405
set_near_clip 0.1
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CT_GATEXR {state} False
196@ = get_current_char_weapon $scplayer
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position -2172.251 {y} 660.9875 {z} 48.5695 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2173.0391 {y} 660.4017 {z} 48.7593 {switchStyle} SwitchType.JumpCut
set_object_collision_damage_effect $china_town_gate {state} True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
request_car_recording 169
100@ = create_car 405 {x} -2183.575 {y} 705.0761 {z} 52.8984
99@ = create_car 405 {x} -2174.429 {y} 703.2332 {z} 52.8918
set_car_heading 99@ {heading} 218.7637
set_car_heading 100@ {heading} 347.2325
freeze_car_position 99@ {state} True
freeze_car_position 100@ {state} True
damage_car_door 99@ {door} CarDoor.Hood
damage_car_door 99@ {door} CarDoor.Hood
damage_car_door 99@ {door} CarDoor.Hood
damage_car_door 99@ {door} CarDoor.RightFrontDoor
damage_car_door 99@ {door} CarDoor.RightFrontDoor
damage_car_door 99@ {door} CarDoor.RightFrontDoor
damage_car_door 99@ {door} CarDoor.RightRearDoor
damage_car_door 99@ {door} CarDoor.Trunk
damage_car_door 99@ {door} CarDoor.Trunk
damage_car_door 99@ {door} CarDoor.Trunk
damage_car_door 99@ {door} CarDoor.LeftFrontDoor
damage_car_door 99@ {door} CarDoor.LeftFrontDoor
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 5
damage_car_panel 99@ {panelId} 4
damage_car_panel 99@ {panelId} 4
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 1
damage_car_panel 99@ {panelId} 5
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.RightFrontDoor
damage_car_door 100@ {door} CarDoor.RightFrontDoor
damage_car_door 100@ {door} CarDoor.RightRearDoor
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 5
damage_car_door 100@ {door} CarDoor.Trunk
damage_car_door 100@ {door} CarDoor.Trunk
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.Hood
damage_car_door 100@ {door} CarDoor.LeftFrontDoor
damage_car_door 100@ {door} CarDoor.LeftFrontDoor
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 1
damage_car_panel 100@ {panelId} 5
open_car_door 99@ {door} CarDoor.RightFrontDoor
open_car_door 99@ {door} CarDoor.RightRearDoor
open_car_door 100@ {door} CarDoor.RightFrontDoor
burst_car_tyre 100@ {tireId} WheelId.RearLeft
pop_car_boot 100@
force_car_lights 99@ {lightMode} CarLights.ForceOn
explode_car_in_cutscene_shake_and_bits 99@ {shake} False {effect} False {sound} False
explode_car_in_cutscene_shake_and_bits 100@ {shake} False {effect} False {sound} False
clear_area -2180.4431 {y} 703.3992 {z} 55.7186 {radius} 20.0 {clearParticles} False
clear_area -2175.947 {y} 660.2386 {z} 49.7032 {radius} 10.0 {clearParticles} False
258@ = start_script_fire -2183.575 {y} 705.0761 {z} 52.8984 {propagation} 3 {size} 2
259@ = start_script_fire -2174.429 {y} 703.2332 {z} 52.8918 {propagation} 5 {size} 2
set_max_fire_generations 0
if 
  not is_char_dead 35@
goto_if_false @WUZI1_8350
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -2176.3301 {y} 654.2678 {z} 48.4453
set_char_coordinates $scplayer {x} -2175.3301 {y} 653.2678 {z} 48.4453
set_char_heading $scplayer {heading} 280.0
set_char_heading 35@ {heading} 270.0
task_go_straight_to_coord $scplayer {x} -2173.9519 {y} 657.6135 {z} 49.8762 {speed} MoveState.Walk {time} -2
132@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2174.469 {y} 658.379 {z} 48.4453 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 72.0
task_play_anim -1 {animationName} "WUZI_GREET_WUZI" {animationFile} "WUZI" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
754@ = 1
$play_audio_global = 1
285@ = 15
329@ = 12
289@ = 395
290@ = 4202
291@ = 7380
292@ = 13000
293@ = 14516
294@ = 17352
295@ = 19617
296@ = 21861
297@ = 23540
298@ = 26894
299@ = 28934
300@ = 33619
309@ = 15
310@ = 16
311@ = 17
312@ = 18
313@ = 19
314@ = 20
315@ = 21
316@ = 22
317@ = 23
318@ = 24
319@ = 25
320@ = 26

:WUZI1_8350
clear_area_of_cars -2168.531 {leftBottomY} 717.8694 {leftBottomZ} 68.3455 {rightTopX} -2254.3789 {rightTopY} 608.9255 {rightTopZ} 44.7364
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 7880
42@ = 1

:WUZI1_8405
if 
  42@ == 1
goto_if_false @WUZI1_8629
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_8629
flush_route 
if 
  not is_char_dead 35@
goto_if_false @WUZI1_8525
extend_route -2175.939 {y} 662.5935 {z} 48.7831
extend_route -2175.3889 {y} 658.0797 {z} 48.4453
132@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_8525
flush_route 
extend_route -2174.71 {y} 658.746 {z} 48.4453
extend_route -2175.939 {y} 662.5935 {z} 48.7831
132@ = open_sequence_task 
task_pause -1 {time} 1200
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task $scplayer {sequence} 132@
clear_sequence_task 132@
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 2
92@ = 1

:WUZI1_8629
if 
  42@ == 2
goto_if_false @WUZI1_8673
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_8673
42@ = 3

:WUZI1_8673
if 
  42@ == 3
goto_if_false @WUZI1_9104
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9104
set_fixed_camera_position -2176.8379 {y} 696.095 {z} 53.828 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2178.1709 {y} 693.774 {z} 54.725 {switchStyle} SwitchType.JumpCut
134@ = create_char PedType.CivMale {modelId} 117 {x} -2177.4619 {y} 698.151 {z} 52.923
135@ = create_char PedType.CivMale {modelId} 118 {x} -2182.4419 {y} 704.3199 {z} 52.8984
136@ = create_char PedType.CivMale {modelId} 117 {x} -2176.552 {y} 702.9572 {z} 52.8984
137@ = create_char PedType.CivMale {modelId} 118 {x} -2178.468 {y} 707.6988 {z} 52.8971
set_char_heading 134@ {heading} 77.5
set_char_heading 135@ {heading} 229.921
set_char_heading 136@ {heading} 148.6859
set_char_heading 137@ {heading} 12.4516
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
task_die 135@
task_die 136@
task_die 137@
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9081
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 35@
set_char_coordinates $scplayer {x} -2177.0339 {y} 690.892 {z} 52.9
set_char_coordinates 35@ {x} -2177.9951 {y} 690.775 {z} 52.9
set_char_heading 35@ {heading} 0.0
set_char_heading $scplayer {heading} 0.0
task_play_anim $scplayer {animationName} "CS_PLYR_PT1" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2
task_play_anim 35@ {animationName} "CS_WUZI_PT1" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2

:WUZI1_9081
42@ = 4
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000

:WUZI1_9104
if 
  42@ == 4
goto_if_false @WUZI1_9263
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9263
if 
  not is_char_dead 134@
goto_if_false @WUZI1_9263
set_char_coordinates 134@ {x} -2177.6021 {y} 698.151 {z} 53.0
set_char_heading 134@ {heading} 77.5
task_play_anim_non_interruptable 134@ {animationName} "CS_DEAD_GUY" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
freeze_char_position 134@ {state} True
set_char_collision 134@ {state} False
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 766
42@ = 5

:WUZI1_9263
if 
  42@ == 5
goto_if_false @WUZI1_9528
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9528
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9528
42@ = 6
set_fixed_camera_position -2178.1331 {y} 693.2726 {z} 54.0799 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2178.1299 {y} 694.2693 {z} 54.0 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -2177.0339 {y} 694.913 {z} 52.87
set_char_coordinates 35@ {x} -2177.9939 {y} 696.476 {z} 52.87
set_char_heading 35@ {heading} 0.0
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 35@
task_play_anim_non_interruptable $scplayer {animationName} "CS_PLYR_PT2" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2
task_play_anim_non_interruptable 35@ {animationName} "CS_WUZI_PT2" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -2
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2234

:WUZI1_9528
if 
  42@ == 6
goto_if_false @WUZI1_9677
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_9677
if 
  not is_char_dead 134@
goto_if_false @WUZI1_9677
set_char_coordinates 134@ {x} -2177.6021 {y} 698.151 {z} 53.0
task_play_anim_non_interruptable 134@ {animationName} "CS_DEAD_GUY" {animationFile} "WUZI" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
freeze_char_position 134@ {state} True
set_char_collision 134@ {state} False
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3833
42@ = 7

:WUZI1_9677
if 
  42@ == 7
goto_if_false @WUZI1_10092
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10092
if 
  not is_char_dead 35@
goto_if_false @WUZI1_10092
set_fixed_camera_position -2177.7981 {y} 695.7769 {z} 54.2318 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2177.627 {y} 696.7596 {z} 54.3015 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 8
if 
  not is_char_dead 35@
goto_if_false @WUZI1_9830
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 5000

:WUZI1_9830
101@ = create_car 405 {x} -2177.5239 {y} 642.8537 {z} 48.4453
92@ = 0
set_object_heading $china_town_gate {heading} 0.0
138@ = create_char_inside_car 101@ {pedType} PedType.Mission1 {modelId} 121
139@ = create_char_as_passenger 101@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
140@ = create_char_as_passenger 101@ {pedType} PedType.Mission1 {modelId} 123 {seat} SeatId.RearLeft
141@ = create_char_as_passenger 101@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.RearRight
give_weapon_to_char 138@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 139@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 140@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 141@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 138@ {accuracy} 60
set_char_accuracy 139@ {accuracy} 60
set_char_accuracy 140@ {accuracy} 60
set_char_accuracy 141@ {accuracy} 60
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_car_forward_speed 101@ {forwardSpeed} 20.0
set_char_decision_maker 138@ {handleOrTemplate} 34@
set_char_decision_maker 139@ {handleOrTemplate} 34@
set_char_decision_maker 140@ {handleOrTemplate} 34@
set_char_decision_maker 141@ {handleOrTemplate} 34@
156@ = create_char PedType.CivMale {modelId} 117 {x} -2180.2649 {y} 712.9368 {z} 52.905
set_lvar_int_to_lvar_int 742@ = 156@
set_char_heading 156@ {heading} 180.0

:WUZI1_10092
if 
  42@ == 8
goto_if_false @WUZI1_10220
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10220
if 
  not is_char_dead 156@
goto_if_false @WUZI1_10220
if 
  not is_char_dead 35@
goto_if_false @WUZI1_10179
set_current_char_weapon 35@ {weaponType} WeaponType.MicroUzi
task_aim_gun_at_char 35@ {target} 156@ {time} 4000

:WUZI1_10179
task_aim_gun_at_char $scplayer {target} 156@ {time} 4000
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000
42@ = 9
260@ = 1

:WUZI1_10220
if 
  42@ == 9
goto_if_false @WUZI1_10430
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10430
if 
  not is_char_dead 156@
goto_if_false @WUZI1_10406
task_hands_up 156@ {time} 5000
132@ = open_sequence_task 
task_pause -1 {time} 6000
task_play_anim -1 {animationName} "FLEE_LKAROUND_01" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 132@
perform_sequence_task $scplayer {sequence} 132@
clear_sequence_task 132@
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 8000
42@ = 10
263@ = 3
set_lvar_int_to_lvar_int 262@ = TIMERA
262@ += 8500
261@ = 1

:WUZI1_10406
set_lvar_int_to_constant 281@ = 28000
set_lvar_int_to_lvar_int 283@ = TIMERA
283@ += 6000

:WUZI1_10430
if 
  260@ == 1
goto_if_false @WUZI1_10593
if 
  263@ == 0
goto_if_false @WUZI1_10493
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStart
263@ = 1

:WUZI1_10493
if 
  slide_object 50@ {posX} -2178.8701 {posY} 711.556 {posZ} 57.523 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.08 {collisionCheck} False
goto_if_false @WUZI1_10593
if 
  263@ == 1
goto_if_false @WUZI1_10593
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStop
263@ = 2
260@ = 2

:WUZI1_10593
if 
  261@ == 1
goto_if_false @WUZI1_10637
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 262@
goto_if_false @WUZI1_10637
261@ = 2

:WUZI1_10637
if 
  261@ == 2
goto_if_false @WUZI1_10793
if 
  263@ == 3
goto_if_false @WUZI1_10700
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStart
263@ = 4

:WUZI1_10700
if 
  slide_object 50@ {posX} -2178.8701 {posY} 711.556 {posZ} 54.523 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.08 {collisionCheck} False
goto_if_false @WUZI1_10793
if 
  263@ == 4
goto_if_false @WUZI1_10793
report_mission_audio_event_at_position -2178.554 {y} 704.7785 {z} 54.2349 {soundId} ScriptSound.SoundGarageDoorStop
263@ = 5

:WUZI1_10793
if 
  42@ == 10
goto_if_false @WUZI1_10853
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_10853
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 1000
42@ = 11

:WUZI1_10853
if 
  42@ == 11
goto_if_false @WUZI1_11023
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11023
set_fixed_camera_position -2172.6741 {y} 674.1689 {z} 53.0772 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2173.2681 {y} 673.4052 {z} 52.8255 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 134@
goto_if_false @WUZI1_10964
set_char_health 134@ {health} 0

:WUZI1_10964
if and
  not is_car_dead 101@
  not is_char_dead 138@
goto_if_false @WUZI1_10993
start_playback_recorded_car 101@ {path} 169

:WUZI1_10993
set_object_collision_damage_effect $china_town_gate {state} True
42@ = 14
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 600

:WUZI1_11023
if 
  42@ == 14
goto_if_false @WUZI1_11110
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11110
break_object $china_town_gate {intensity} 0
report_mission_audio_event_at_position -2177.4221 {y} 662.1031 {z} 51.0185 {soundId} ScriptSound.SoundCarSmashGate
42@ = 12
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2800

:WUZI1_11110
if 
  42@ == 12
goto_if_false @WUZI1_11243
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11243
if 
  not is_char_dead 138@
goto_if_false @WUZI1_11243
if 
  not is_car_dead 101@
goto_if_false @WUZI1_11243
task_everyone_leave_car 101@
42@ = 13
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000
flush_route 
extend_route -2178.4719 {y} 676.4617 {z} 48.8898
extend_route -2178.4719 {y} 695.4617 {z} 52.8898

:WUZI1_11243
if 
  42@ == 13
goto_if_false @WUZI1_11408
if 
  not is_char_dead 138@
goto_if_false @WUZI1_11359
if 
  not is_char_in_any_car 138@
goto_if_false @WUZI1_11359
158@ = get_script_task_status 138@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 158@ == 7
goto_if_false @WUZI1_11359
132@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 138@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_11359
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_11408
42@ = 15
do_fade 1000 {direction} Fade.Out
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 1000

:WUZI1_11408
if 
  42@ == 15
goto_if_false @WUZI1_13131
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_13131
92@ = 0
if 
  does_object_exist $china_town_gate
goto_if_false @WUZI1_11473
delete_object $china_town_gate

:WUZI1_11473
if 
  not is_car_dead 101@
goto_if_false @WUZI1_11519
set_car_coordinates 101@ {x} -2174.7271 {y} 673.9934 {z} 51.8769
set_car_heading 101@ {heading} 337.6978

:WUZI1_11519
request_model 117
request_model 118
request_car_recording 169

:WUZI1_11532
if or
  not has_model_loaded 117
  not has_model_loaded 118
  not has_car_recording_been_loaded 169
goto_if_false @WUZI1_11567
wait 0
goto @WUZI1_11532

:WUZI1_11567
if 
  is_car_dead 101@
goto_if_false @WUZI1_11606
101@ = create_car 405 {x} -2174.7271 {y} 673.9934 {z} 51.8769

:WUZI1_11606
if 
  not is_car_dead 101@
goto_if_false @WUZI1_11651
if 
  not is_playback_going_on_for_car 101@
goto_if_false @WUZI1_11646
start_playback_recorded_car 101@ {path} 169

:WUZI1_11646
skip_to_end_and_stop_playback_recorded_car 101@

:WUZI1_11651
delete_char 138@
delete_char 139@
delete_char 140@
delete_char 141@
if 
  not is_char_dead 138@
goto_if_false @WUZI1_11757
if 
  is_char_in_any_car 138@
goto_if_false @WUZI1_11730
warp_char_from_car_to_coord 138@ {x} -2176.6489 {y} 669.7497 {z} 50.7274
goto @WUZI1_11750

:WUZI1_11730
set_char_coordinates 138@ {x} -2176.6489 {y} 669.7497 {z} 50.7274

:WUZI1_11750
goto @WUZI1_11781

:WUZI1_11757
138@ = create_char PedType.Mission1 {modelId} 121 {x} -2176.6489 {y} 669.7497 {z} 50.7274

:WUZI1_11781
set_char_heading 138@ {heading} 34.4985
if 
  not is_char_dead 139@
goto_if_false @WUZI1_11877
if 
  is_char_in_any_car 139@
goto_if_false @WUZI1_11850
warp_char_from_car_to_coord 139@ {x} -2172.771 {y} 671.1902 {z} 51.1101
goto @WUZI1_11870

:WUZI1_11850
set_char_coordinates 139@ {x} -2172.771 {y} 671.1902 {z} 51.1101

:WUZI1_11870
goto @WUZI1_11901

:WUZI1_11877
139@ = create_char PedType.Mission1 {modelId} 122 {x} -2172.771 {y} 671.1902 {z} 51.1101

:WUZI1_11901
set_char_heading 139@ {heading} 28.6454
if 
  not is_char_dead 140@
goto_if_false @WUZI1_11997
if 
  is_char_in_any_car 140@
goto_if_false @WUZI1_11970
warp_char_from_car_to_coord 140@ {x} -2176.1431 {y} 676.2279 {z} 52.4792
goto @WUZI1_11990

:WUZI1_11970
set_char_coordinates 140@ {x} -2176.1431 {y} 676.2279 {z} 52.4792

:WUZI1_11990
goto @WUZI1_12021

:WUZI1_11997
140@ = create_char PedType.Mission1 {modelId} 123 {x} -2176.1431 {y} 676.2279 {z} 52.4792

:WUZI1_12021
set_char_heading 140@ {heading} 6.8518
if 
  not is_char_dead 141@
goto_if_false @WUZI1_12117
if 
  is_char_in_any_car 141@
goto_if_false @WUZI1_12090
warp_char_from_car_to_coord 141@ {x} -2177.8201 {y} 675.736 {z} 52.3458
goto @WUZI1_12110

:WUZI1_12090
set_char_coordinates 141@ {x} -2177.8201 {y} 675.736 {z} 52.3458

:WUZI1_12110
goto @WUZI1_12141

:WUZI1_12117
141@ = create_char PedType.Mission1 {modelId} 122 {x} -2177.8201 {y} 675.736 {z} 52.3458

:WUZI1_12141
set_char_heading 141@ {heading} 6.2257
give_weapon_to_char 138@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 139@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 140@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 141@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_char_accuracy 138@ {accuracy} 60
set_char_accuracy 139@ {accuracy} 60
set_char_accuracy 140@ {accuracy} 60
set_char_accuracy 141@ {accuracy} 60
set_inform_respected_friends 138@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 139@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 140@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 141@ {radius} 30.0 {_p3} 8
flush_route 
extend_route -2178.0039 {y} 685.6806 {z} 52.8942
task_follow_point_route 141@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
extend_route -2176.0039 {y} 685.6806 {z} 52.8942
task_follow_point_route 140@ {speed} MoveState.Run {mode} RouteMode.Once
set_sense_range 138@ {range} 40.0
set_sense_range 139@ {range} 40.0
set_sense_range 140@ {range} 40.0
set_sense_range 141@ {range} 40.0
delete_char 134@
delete_char 135@
delete_char 136@
delete_char 137@
111@ = add_blip_for_char 138@
112@ = add_blip_for_char 139@
113@ = add_blip_for_char 140@
114@ = add_blip_for_char 141@
134@ = create_char PedType.CivMale {modelId} 117 {x} -2177.946 {y} 670.3361 {z} 50.8814
135@ = create_char PedType.CivMale {modelId} 118 {x} -2182.4419 {y} 704.3199 {z} 52.8984
136@ = create_char PedType.CivMale {modelId} 117 {x} -2176.552 {y} 702.9572 {z} 52.8984
137@ = create_char PedType.CivMale {modelId} 118 {x} -2178.468 {y} 707.6988 {z} 52.8971
set_char_heading 134@ {heading} 77.5
set_char_heading 135@ {heading} 229.921
set_char_heading 136@ {heading} 148.6859
set_char_heading 137@ {heading} 12.4516
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
task_die 134@
task_die 135@
task_die 136@
task_die 137@
set_char_decision_maker 138@ {handleOrTemplate} 34@
set_char_decision_maker 139@ {handleOrTemplate} 34@
set_char_decision_maker 140@ {handleOrTemplate} 34@
set_char_decision_maker 141@ {handleOrTemplate} 34@
set_char_allowed_to_duck 138@ {state} False
set_char_allowed_to_duck 139@ {state} False
set_char_stay_in_same_place 138@ {state} True
set_char_stay_in_same_place 139@ {state} True
if 
  not is_car_dead 99@
goto_if_false @WUZI1_12693
99@ = create_car 405 {x} -2174.429 {y} 703.2332 {z} 52.8918
set_car_heading 99@ {heading} 218.7637
explode_car_in_cutscene 99@

:WUZI1_12693
if 
  not is_car_dead 100@
goto_if_false @WUZI1_12747
100@ = create_car 405 {x} -2183.575 {y} 705.0761 {z} 52.8984
set_car_heading 100@ {heading} 347.2325
explode_car_in_cutscene 100@

:WUZI1_12747
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 123
if 
  does_object_exist 50@
goto_if_false @WUZI1_12796
set_object_coordinates 50@ {x} -2178.8701 {y} 711.556 {z} 54.523

:WUZI1_12796
wait 1000
clear_prints 
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CT_GATEXR {state} True
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CHINA_TOWN_GATEB {state} True
71@ = 4
38@ = 0
200@ = 1
77@ = 0
96@ = 1
$play_audio_global = 0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  not is_char_dead 35@
goto_if_false @WUZI1_13014
clear_char_tasks_immediately 35@
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2178.9719 {y} 704.3181 {z} 52.8971
set_char_coordinates 35@ {x} -2180.4231 {y} 703.6827 {z} 52.8971
set_char_heading $scplayer {heading} 190.0
set_char_heading 35@ {heading} 196.0
set_char_health 35@ {health} 250
set_current_char_weapon 35@ {weaponType} WeaponType.MicroUzi

:WUZI1_13014
$wz1_health_bar = 100
display_onscreen_counter_with_string $wz1_health_bar {display} CounterDisplay.Bar {text} 'WZ1_19'
if 
  not is_char_dead 35@
goto_if_false @WUZI1_13080
108@ = add_blip_for_char 35@
set_blip_as_friendly 108@ {state} True
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 35@

:WUZI1_13080
set_current_char_weapon $scplayer {weaponType} 196@
set_lvar_int_to_lvar_int 277@ = TIMERA
277@ += 3000
754@ = 0
remove_animation "WUZI"
do_fade 1000 {direction} Fade.In
wait 1000

:WUZI1_13131
return 

:WUZI1_13133
if 
  264@ == 0
goto_if_false @WUZI1_13190
if 
  637@ == 0
goto_if_false @WUZI1_13190
637@ = 30
264@ = 1
73@ = 1

:WUZI1_13190
if 
  264@ == 1
goto_if_false @WUZI1_13249
if 
  637@ == 0
goto_if_false @WUZI1_13249
print 'WZ1_B1' {time} 4000 {flag} 1
264@ = 2

:WUZI1_13249
if 
  72@ == 1
goto_if_false @WUZI1_13645
if 
  636@ == 1
goto_if_false @WUZI1_13645
if 
  not is_char_dead 35@
goto_if_false @WUZI1_13645
if 
  265@ == 0
goto_if_false @WUZI1_13427
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_13427
print 'WZ1_B3' {time} 5000 {flag} 1
265@ = 1

:WUZI1_13427
if 
  265@ == 1
goto_if_false @WUZI1_13645
if and
  is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_13537
265@ = 0

:WUZI1_13537
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
goto_if_false @WUZI1_13645
print 'VAL_A9' {time} 4000 {flag} 1
36@ = 1

:WUZI1_13645
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2179.7759 {leftBottomY} 654.5721 {leftBottomZ} 51.7195 {rightTopX} -2172.2871 {rightTopY} 632.6477 {rightTopZ} 48.3312 {drawSphere} False
goto_if_false @WUZI1_13767
71@ = 5
42@ = 8
77@ = 7
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2000
39@ = 0
40@ = 0
754@ = 1
set_lvar_int_to_lvar_int 266@ = TIMERA
266@ += 2500

:WUZI1_13767
return 

:WUZI1_13769
if 
  39@ == 0
goto_if_false @WUZI1_13814
39@ = 1
if 
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_13814
40@ = 1

:WUZI1_13814
if 
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_13892
if 
  40@ == 0
goto_if_false @WUZI1_13885
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 266@
goto_if_false @WUZI1_13885
42@ = 8
159@ = 0
636@ = 6

:WUZI1_13885
goto @WUZI1_13917

:WUZI1_13892
if 
  40@ == 1
goto_if_false @WUZI1_13917
40@ = 0

:WUZI1_13917
if 
  42@ == 0
goto_if_false @WUZI1_14438
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14438
42@ = 1
637@ = 47
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2176.937 {y} 641.8041 {z} 49.2832 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2177.2949 {y} 642.7374 {z} 49.3052 {switchStyle} SwitchType.JumpCut
clear_area_of_cars -2179.249 {leftBottomY} 659.2075 {leftBottomZ} 50.1335 {rightTopX} -2172.2629 {rightTopY} 641.8954 {rightTopZ} 50.377
if 
  not is_car_dead 101@
goto_if_false @WUZI1_14156
if 
  is_car_in_area_3d 101@ {leftBottomX} -2182.094 {leftBottomY} 653.1942 {leftBottomZ} 50.6565 {rightTopX} -2173.9509 {rightTopY} 636.2528 {rightTopZ} 47.0812 {drawSphere} False
goto_if_false @WUZI1_14156
set_car_coordinates 101@ {x} -2175.7151 {y} 636.0 {z} 48.445
set_car_heading 101@ {heading} 306.9228

:WUZI1_14156
146@ = create_char PedType.Mission1 {modelId} 121 {x} -2218.2251 {y} 636.991 {z} 53.9509
set_inform_respected_friends 146@ {radius} 30.0 {_p3} 8
set_char_stay_in_same_place 146@ {state} True
set_char_accuracy 146@ {accuracy} 100
set_char_decision_maker 146@ {handleOrTemplate} 34@
give_weapon_to_char 146@ {weaponType} WeaponType.Sniper {ammo} 9999
set_char_shoot_rate 146@ {rate} 20
task_aim_gun_at_coord 146@ {x} -2182.917 {y} 645.9363 {z} 48.9215 {time} -2
set_char_heading 146@ {heading} 289.0
task_toggle_duck 146@ {state} True
if 
  not is_car_dead 102@
goto_if_false @WUZI1_14354
if 
  is_car_in_area_2d 102@ {leftBottomX} -2187.0339 {leftBottomY} 633.111 {rightTopX} -2172.262 {rightTopY} 660.5647 {drawSphere} False
goto_if_false @WUZI1_14354
set_car_coordinates 102@ {x} -2176.387 {y} 641.4572 {z} 50.5019
set_car_heading 102@ {heading} 320.0

:WUZI1_14354
if 
  not is_car_dead 103@
goto_if_false @WUZI1_14438
if 
  is_car_in_area_2d 103@ {leftBottomX} -2187.0339 {leftBottomY} 633.111 {rightTopX} -2172.262 {rightTopY} 660.5647 {drawSphere} False
goto_if_false @WUZI1_14438
set_car_coordinates 103@ {x} -2175.3831 {y} 640.9232 {z} 50.5734
set_car_heading 103@ {heading} 320.0

:WUZI1_14438
if 
  42@ == 1
goto_if_false @WUZI1_14644
clear_char_tasks_immediately $scplayer
set_fixed_camera_position -2176.937 {y} 641.8041 {z} 49.2832 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2177.2949 {y} 642.7374 {z} 49.3052 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 35@
goto_if_false @WUZI1_14577
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -2175.697 {y} 650.9794 {z} 48.4429
task_go_straight_to_coord 35@ {x} -2179.958 {y} 641.7931 {z} 48.4453 {speed} MoveState.Walk {time} -2

:WUZI1_14577
set_char_coordinates $scplayer {x} -2176.897 {y} 650.9794 {z} 48.4429
task_go_straight_to_coord $scplayer {x} -2180.958 {y} 641.7931 {z} 48.4453 {speed} MoveState.Walk {time} -2
42@ = 2
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2500

:WUZI1_14644
if 
  42@ == 2
goto_if_false @WUZI1_14750
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14750
if 
  not is_char_dead 146@
goto_if_false @WUZI1_14720
task_shoot_at_coord 146@ {x} -2179.925 {y} 646.69 {z} 48.4548 {time} 200

:WUZI1_14720
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 300
42@ = 3
75@ = 0

:WUZI1_14750
if 
  42@ == 3
goto_if_false @WUZI1_14934
if 
  75@ == 0
goto_if_false @WUZI1_14867
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14867
task_dive_and_get_up $scplayer {directionX} -1.0 {directionY} -1.0 {timeOnGround} 1000
if 
  not is_char_dead 35@
goto_if_false @WUZI1_14844
task_cower 35@

:WUZI1_14844
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 400
75@ = 1

:WUZI1_14867
if 
  75@ == 1
goto_if_false @WUZI1_14934
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_14934
42@ = 4
637@ = 36
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 1000

:WUZI1_14934
if 
  42@ == 4
goto_if_false @WUZI1_15113
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15113
set_fixed_camera_position -2220.552 {y} 639.9709 {z} 53.7095 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2219.6379 {y} 639.5733 {z} 53.7963 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -2178.2981 {y} 648.3584 {z} 48.4429
set_char_heading $scplayer {heading} 133.2868
if 
  not is_char_dead 146@
goto_if_false @WUZI1_15090
task_aim_gun_at_coord 146@ {x} -2184.709 {y} 635.0774 {z} 49.4781 {time} -2

:WUZI1_15090
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 2500
42@ = 5

:WUZI1_15113
if 
  42@ == 5
goto_if_false @WUZI1_15593
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15593
147@ = create_char PedType.Mission1 {modelId} 122 {x} -2219.5869 {y} 643.4511 {z} 48.4472
148@ = create_char PedType.Mission1 {modelId} 123 {x} -2223.5869 {y} 642.4511 {z} 48.4472
149@ = create_char PedType.Mission1 {modelId} 122 {x} -2227.5869 {y} 644.4511 {z} 48.4472
150@ = create_char PedType.Mission1 {modelId} 123 {x} -2230.5869 {y} 643.4511 {z} 48.4472
set_inform_respected_friends 147@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 148@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 149@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 150@ {radius} 30.0 {_p3} 8
set_char_accuracy 147@ {accuracy} 80
set_char_accuracy 148@ {accuracy} 80
set_char_accuracy 149@ {accuracy} 80
set_char_accuracy 150@ {accuracy} 85
set_char_decision_maker 147@ {handleOrTemplate} 34@
set_char_decision_maker 148@ {handleOrTemplate} 34@
set_char_decision_maker 149@ {handleOrTemplate} 34@
set_char_decision_maker 150@ {handleOrTemplate} 34@
task_go_straight_to_coord 147@ {x} -2194.9021 {y} 645.9846 {z} 48.4453 {speed} MoveState.Run {time} -2
flush_route 
extend_route -2200.209 {y} 644.2397 {z} 48.4429
extend_route -2199.939 {y} 641.5246 {z} 48.4429
set_char_stay_in_same_place 147@ {state} True
set_char_stay_in_same_place 148@ {state} True
set_char_stay_in_same_place 149@ {state} True
set_char_stay_in_same_place 150@ {state} True
give_weapon_to_char 147@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 148@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 149@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 150@ {weaponType} WeaponType.MicroUzi {ammo} 5000
132@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_achieve_heading -1 {heading} 270.0
close_sequence_task 132@
perform_sequence_task 148@ {sequence} 132@
clear_sequence_task 132@
task_go_straight_to_coord 149@ {x} -2204.8511 {y} 641.7612 {z} 48.4429 {speed} MoveState.Run {time} -2
task_go_straight_to_coord 150@ {x} -2214.3711 {y} 641.3669 {z} 48.4515 {speed} MoveState.Run {time} -2
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 500
42@ = 6

:WUZI1_15593
if 
  42@ == 6
goto_if_false @WUZI1_15711
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15711
set_fixed_camera_position -2229.436 {y} 644.2267 {z} 48.4907 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2228.4871 {y} 643.9835 {z} 48.6883 {switchStyle} SwitchType.JumpCut
637@ = 46
set_lvar_int_to_lvar_int 41@ = TIMERA
41@ += 3000
42@ = 7

:WUZI1_15711
if 
  42@ == 7
goto_if_false @WUZI1_15755
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @WUZI1_15755
42@ = 8

:WUZI1_15755
if 
  42@ == 8
goto_if_false @WUZI1_16451
if 
  not does_char_exist 146@
goto_if_false @WUZI1_15862
146@ = create_char PedType.Mission1 {modelId} 123 {x} -2218.2251 {y} 636.991 {z} 53.9509
set_char_stay_in_same_place 146@ {state} True
set_char_decision_maker 146@ {handleOrTemplate} 34@
give_weapon_to_char 146@ {weaponType} WeaponType.Sniper {ammo} 9999
set_char_shoot_rate 146@ {rate} 20
set_char_heading 146@ {heading} 289.0
task_toggle_duck 146@ {state} True

:WUZI1_15862
if 
  not is_char_dead 146@
goto_if_false @WUZI1_15885
set_char_accuracy 146@ {accuracy} 50

:WUZI1_15885
delete_char 147@
delete_char 148@
delete_char 149@
delete_char 150@
147@ = create_char PedType.Mission1 {modelId} 121 {x} -2203.491 {y} 647.0372 {z} 48.4453
148@ = create_char PedType.Mission1 {modelId} 122 {x} -2200.6951 {y} 637.1932 {z} 48.4429
149@ = create_char PedType.Mission1 {modelId} 123 {x} -2196.9431 {y} 635.1917 {z} 48.4429
150@ = create_char PedType.Mission1 {modelId} 121 {x} -2214.3779 {y} 641.6099 {z} 48.4484
set_char_heading 147@ {heading} 255.1494
set_char_heading 148@ {heading} 285.6451
set_char_heading 149@ {heading} 295.4749
set_char_heading 150@ {heading} 277.3081
set_char_accuracy 147@ {accuracy} 60
set_char_accuracy 148@ {accuracy} 60
set_char_accuracy 149@ {accuracy} 60
set_char_accuracy 150@ {accuracy} 60
set_char_shoot_rate 147@ {rate} 85
set_char_shoot_rate 148@ {rate} 85
set_char_shoot_rate 149@ {rate} 85
set_char_shoot_rate 150@ {rate} 85
task_duck 147@ {time} 1000
task_duck 149@ {time} 3000
set_char_stay_in_same_place 147@ {state} True
set_char_stay_in_same_place 148@ {state} True
set_char_stay_in_same_place 149@ {state} True
set_char_stay_in_same_place 150@ {state} True
set_sense_range 147@ {range} 40.0
set_sense_range 148@ {range} 40.0
set_sense_range 149@ {range} 40.0
set_sense_range 150@ {range} 40.0
give_weapon_to_char 147@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 148@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 149@ {weaponType} WeaponType.MicroUzi {ammo} 5000
give_weapon_to_char 150@ {weaponType} WeaponType.MicroUzi {ammo} 5000
151@ = create_char PedType.Mission1 {modelId} 121 {x} -2205.344 {y} 648.4099 {z} 48.4429
set_inform_respected_friends 151@ {radius} 30.0 {_p3} 8
give_weapon_to_char 151@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_heading 151@ {heading} 270.0
set_char_stay_in_same_place 151@ {state} True
120@ = add_blip_for_char 147@
121@ = add_blip_for_char 148@
122@ = add_blip_for_char 149@
123@ = add_blip_for_char 150@
124@ = add_blip_for_char 151@
if 
  not is_char_dead 146@
goto_if_false @WUZI1_16353
remove_blip 119@
119@ = add_blip_for_char 146@

:WUZI1_16353
set_char_decision_maker 147@ {handleOrTemplate} 34@
set_char_decision_maker 148@ {handleOrTemplate} 34@
set_char_decision_maker 149@ {handleOrTemplate} 34@
set_char_decision_maker 150@ {handleOrTemplate} 34@
set_char_decision_maker 151@ {handleOrTemplate} 34@
71@ = 6
200@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
77@ = 8
38@ = 0
265@ = 0
754@ = 0

:WUZI1_16451
return 

:WUZI1_16453
if 
  72@ == 1
goto_if_false @WUZI1_16849
if 
  636@ == 1
goto_if_false @WUZI1_16849
if 
  not is_char_dead 35@
goto_if_false @WUZI1_16849
if 
  265@ == 0
goto_if_false @WUZI1_16631
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_16631
print 'WZ1_B3' {time} 5000 {flag} 1
265@ = 1

:WUZI1_16631
if 
  265@ == 1
goto_if_false @WUZI1_16849
if and
  is_char_in_area_3d $scplayer {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
  is_char_in_area_3d 35@ {leftBottomX} -2170.1851 {leftBottomY} 719.1667 {leftBottomZ} 63.8637 {rightTopX} -2239.2361 {rightTopY} 594.3701 {rightTopZ} 37.2048 {drawSphere} False
goto_if_false @WUZI1_16741
265@ = 0

:WUZI1_16741
if and
  not is_char_in_area_3d $scplayer {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
  not is_char_in_area_3d 35@ {leftBottomX} -2100.1851 {leftBottomY} 779.1667 {leftBottomZ} 93.8637 {rightTopX} -2279.2361 {rightTopY} 534.3701 {rightTopZ} 7.2048 {drawSphere} False
goto_if_false @WUZI1_16849
print 'VAL_A9' {time} 4000 {flag} 1
36@ = 1

:WUZI1_16849
if 
  267@ == 0
goto_if_false @WUZI1_16931
if 
  not is_char_dead 146@
goto_if_false @WUZI1_16931
if 
  is_char_shooting 146@
goto_if_false @WUZI1_16931
if 
  637@ == 0
goto_if_false @WUZI1_16931
637@ = 36
267@ = 1

:WUZI1_16931
if 
  267@ == 1
goto_if_false @WUZI1_17013
if 
  not is_char_dead 146@
goto_if_false @WUZI1_17013
if 
  is_char_shooting 146@
goto_if_false @WUZI1_17013
if 
  637@ == 0
goto_if_false @WUZI1_17013
637@ = 43
267@ = 2

:WUZI1_17013
if 
  95@ == 10
goto_if_false @WUZI1_17104
71@ = 7
42@ = 0
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2500
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 468
remove_animation "WUZI"
remove_car_recording 169
remove_car_recording 139
265@ = 0

:WUZI1_17104
return 

:WUZI1_17106
if 
  42@ == 0
goto_if_false @WUZI1_17257
if 
  636@ == 1
goto_if_false @WUZI1_17257
if 
  637@ == 0
goto_if_false @WUZI1_17257
if 
  not is_char_dead 35@
goto_if_false @WUZI1_17181
remove_char_from_group 35@

:WUZI1_17181
clear_onscreen_counter $wz1_health_bar
request_animation "GANGS"
request_animation "CAR_CHAT"
request_car_recording 136
request_car_recording 137
request_car_recording 138
637@ = 55
$play_audio_global = 1
754@ = 1
42@ = 6
72@ = 0

:WUZI1_17257
if 
  42@ == 6
goto_if_false @WUZI1_17995
if 
  636@ == 1
goto_if_false @WUZI1_17995
if 
  637@ == 0
goto_if_false @WUZI1_17995
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
  has_car_recording_been_loaded 136
  has_car_recording_been_loaded 137
  has_car_recording_been_loaded 138
goto_if_false @WUZI1_17995
754@ = 0
if 
  not is_car_dead 104@
goto_if_false @WUZI1_17412
lock_car_doors 104@ {lockStatus} CarLock.Unlocked
freeze_car_position 104@ {state} False
set_car_coordinates 104@ {x} -2218.9299 {y} 642.3626 {z} 48.4475
set_car_heading 104@ {heading} 267.1711

:WUZI1_17412
set_player_control $player1 {state} False
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_17447
$car = get_car_char_is_using $scplayer

:WUZI1_17447
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead 35@
goto_if_false @WUZI1_17480
clear_char_tasks_immediately 35@
task_toggle_duck 35@ {state} False

:WUZI1_17480
if 
  not is_car_dead $car
goto_if_false @WUZI1_17501
delete_car $car

:WUZI1_17501
set_fixed_camera_position -2212.125 {y} 644.6052 {z} 51.6509 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2213.062 {y} 644.5379 {z} 51.3082 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 104@
goto_if_false @WUZI1_17698
set_char_coordinates $scplayer {x} -2212.3799 {y} 643.0919 {z} 48.4466
set_char_heading $scplayer {heading} 180.0
task_enter_car_as_driver $scplayer {vehicle} 104@ {time} -2
set_car_proofs 104@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_char_dead 35@
goto_if_false @WUZI1_17698
set_char_shoot_rate 35@ {rate} 80
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_coordinates 35@ {x} -2217.781 {y} 640.998 {z} 48.4549
set_char_heading 35@ {heading} 77.0
task_enter_car_as_passenger 35@ {vehicle} 104@ {time} 2600 {seat} SeatId.BikeRear

:WUZI1_17698
130@ = 0

:WUZI1_17705
if 
  18 > 130@
goto_if_false @WUZI1_17746
mark_char_as_no_longer_needed 138@(130@,18i)
130@ += 1
goto @WUZI1_17705

:WUZI1_17746
105@ = create_car 405 {x} -2245.343 {y} 715.4953 {z} 48.4375
set_car_heading 105@ {heading} 180.0
138@ = create_char_inside_car 105@ {pedType} PedType.Mission1 {modelId} 122
139@ = create_char_as_passenger 105@ {pedType} PedType.Mission1 {modelId} 123 {seat} SeatId.BikeRear
give_weapon_to_char 139@ {weaponType} WeaponType.MicroUzi {ammo} 5000
start_playback_recorded_car 105@ {path} 136
106@ = create_car 405 {x} -2251.676 {y} 612.6026 {z} 42.259
set_car_heading 106@ {heading} 0.0
140@ = create_char_inside_car 106@ {pedType} PedType.Mission1 {modelId} 121
141@ = create_char_as_passenger 106@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 141@ {weaponType} WeaponType.MicroUzi {ammo} 5000
set_char_decision_maker 138@ {handleOrTemplate} 34@
set_char_decision_maker 139@ {handleOrTemplate} 34@
set_char_decision_maker 140@ {handleOrTemplate} 34@
set_char_decision_maker 141@ {handleOrTemplate} 34@
clear_char_decision_maker_event_response 34@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 34@ {event} Event.VehicleOnFire
add_char_decision_maker_event_response 34@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
42@ = 7
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2600

:WUZI1_17995
if 
  42@ == 7
goto_if_false @WUZI1_18090
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18090
set_fixed_camera_position -2217.8689 {y} 642.181 {z} 49.7208 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2218.8201 {y} 642.4485 {z} 49.5654 {switchStyle} SwitchType.JumpCut
42@ = 8

:WUZI1_18090
if 
  42@ == 8
goto_if_false @WUZI1_18171
if and
  not is_car_dead 105@
  not is_char_dead 138@
goto_if_false @WUZI1_18171
$x, $y, $z = get_car_coordinates 105@
if 
  653.8901 > $y
goto_if_false @WUZI1_18171
42@ = 9

:WUZI1_18171
if 
  42@ == 9
goto_if_false @WUZI1_18294
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_18294
if 
  not is_car_dead 104@
goto_if_false @WUZI1_18221

:WUZI1_18221
task_play_anim $scplayer {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000
637@ = 60
42@ = 10
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3200

:WUZI1_18294
if 
  42@ == 10
goto_if_false @WUZI1_18414
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18414
if 
  not is_car_dead 104@
goto_if_false @WUZI1_18414
set_car_heavy 104@ {state} True
start_playback_recorded_car 104@ {path} 138
if 
  not is_car_dead 105@
goto_if_false @WUZI1_18391
stop_playback_recorded_car 105@
start_playback_recorded_car 105@ {path} 137

:WUZI1_18391
42@ = 11
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2000

:WUZI1_18414
if 
  42@ == 11
goto_if_false @WUZI1_18569
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18569
set_fixed_camera_position -2251.02 {y} 649.9792 {z} 52.244 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 105@
goto_if_false @WUZI1_18526
$x, $y, $z = get_car_coordinates 105@
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:WUZI1_18526
report_mission_audio_event_at_position -2243.918 {y} 642.959 {z} 49.6897 {soundId} ScriptSound.SoundCarSmashCar
42@ = 12
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 800

:WUZI1_18569
if 
  42@ == 12
goto_if_false @WUZI1_18637
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18637
set_lvar_int_to_lvar_int 270@ = TIMERA
42@ = 13
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 2500

:WUZI1_18637
if 
  42@ == 13
goto_if_false @WUZI1_18869
set_lvar_int_to_lvar_int 271@ = TIMERA
sub_int_lvar_from_int_lvar 271@ -= 270@
cset_lvar_float_to_lvar_int 225@ =# 271@
set_lvar_float_to_lvar_float 226@ = 225@
226@ /= 2500.0
if and
  not is_car_dead 104@
  not is_car_dead 105@
goto_if_false @WUZI1_18843
$x, $y, $z = get_car_coordinates 105@
228@, 229@, 230@ = get_car_coordinates 104@
set_lvar_float_to_lvar_float 268@ = 228@
sub_float_var_from_float_lvar 268@ -= $x
set_lvar_float_to_lvar_float 269@ = 229@
sub_float_var_from_float_lvar 269@ -= $y
mult_float_lvar_by_float_lvar 268@ *= 226@
mult_float_lvar_by_float_lvar 269@ *= 226@
268@ /= 2.0
269@ /= 2.0
add_float_var_to_float_lvar 268@ += $x
add_float_var_to_float_lvar 269@ += $y
point_camera_at_point 268@ {y} 269@ {z} $z {switchStyle} SwitchType.JumpCut

:WUZI1_18843
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_18869
42@ = 14

:WUZI1_18869
if 
  42@ == 14
goto_if_false @WUZI1_18966
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_car_dead 104@
goto_if_false @WUZI1_18940
set_car_heavy 104@ {state} False
set_car_proofs 104@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:WUZI1_18940
71@ = 8
38@ = 0
637@ = 63
remove_blip 108@

:WUZI1_18966
return 

:WUZI1_18968
if 
  38@ == 0
goto_if_false @WUZI1_19261
set_police_ignore_player $player1 {state} False
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
if 
  not is_char_dead 35@
goto_if_false @WUZI1_19051
set_char_relationship 35@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_shoot_rate 35@ {rate} 80
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 99999

:WUZI1_19051
if 
  not is_car_dead 104@
goto_if_false @WUZI1_19181
if and
  not is_car_dead 105@
  not is_char_dead 138@
goto_if_false @WUZI1_19124
task_car_mission 138@ {vehicle} 105@ {targetVehicle} 104@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.PloughThrough
set_car_health 105@ {health} 800
109@ = add_blip_for_char 138@

:WUZI1_19124
if and
  not is_car_dead 106@
  not is_char_dead 140@
goto_if_false @WUZI1_19181
task_car_mission 140@ {vehicle} 106@ {targetVehicle} 104@ {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 20.0 {drivingStyle} DrivingMode.PloughThrough
set_car_health 106@ {health} 800
110@ = add_blip_for_char 140@

:WUZI1_19181
if 
  not is_car_dead 104@
goto_if_false @WUZI1_19212
set_car_health 104@ {health} 3000
set_can_burst_car_tyres 104@ {state} False

:WUZI1_19212
81@ = 1
82@ = 1
73@ = 1
72@ = 0
38@ = 1
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0

:WUZI1_19261
if 
  38@ == 1
goto_if_false @WUZI1_19631
if 
  272@ == 0
goto_if_false @WUZI1_19338
if 
  637@ == 0
goto_if_false @WUZI1_19338
272@ = 1
print 'WZ1_37' {time} 4000 {flag} 1

:WUZI1_19338
if 
  81@ == 1
goto_if_false @WUZI1_19416
if 
  is_char_dead 138@
goto_if_false @WUZI1_19416
if 
  273@ == 0
goto_if_false @WUZI1_19404
273@ = 1
637@ = 64

:WUZI1_19404
remove_blip 109@
81@ = 0

:WUZI1_19416
if 
  82@ == 1
goto_if_false @WUZI1_19494
if 
  is_char_dead 140@
goto_if_false @WUZI1_19494
if 
  273@ == 0
goto_if_false @WUZI1_19482
273@ = 1
637@ = 64

:WUZI1_19482
remove_blip 110@
82@ = 0

:WUZI1_19494
if and
  81@ == 0
  82@ == 0
goto_if_false @WUZI1_19631
if 
  not is_char_dead 35@
goto_if_false @WUZI1_19631
if 
  locate_char_any_means_char_3d $scplayer {target} 35@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @WUZI1_19631
637@ = 65
638@ = 3
38@ = 2
remove_blip 107@
107@ = add_blip_for_coord -2151.5891 {y} 639.5962 {z} 51.218
73@ = 1
72@ = 0

:WUZI1_19631
if 
  38@ == 2
goto_if_false @WUZI1_19859
if 
  637@ == 0
goto_if_false @WUZI1_19708
if 
  274@ == 0
goto_if_false @WUZI1_19708
274@ = 1
print 'WZ1_39' {time} 4000 {flag} 1

:WUZI1_19708
if 
  72@ == 1
goto_if_false @WUZI1_19859
if 
  locate_char_any_means_3d $scplayer {x} -2150.165 {y} 642.3364 {z} 51.2188 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI1_19859
if 
  not is_char_dead 35@
goto_if_false @WUZI1_19859
if 
  locate_char_any_means_3d 35@ {x} -2150.165 {y} 642.3364 {z} 51.2188 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @WUZI1_19859
71@ = 9
42@ = 0
637@ = 68

:WUZI1_19859
return 

:WUZI1_19861
if 
  42@ == 0
goto_if_false @WUZI1_19955
73@ = 0
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_19932
$car = get_car_char_is_using $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:WUZI1_19932
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 3000
42@ = 1

:WUZI1_19955
if 
  42@ == 1
goto_if_false @WUZI1_20247
if 
  637@ == 0
goto_if_false @WUZI1_20247
set_fixed_camera_position -2156.8721 {y} 649.7653 {z} 51.6094 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2156.3621 {y} 648.9217 {z} 51.7758 {switchStyle} SwitchType.JumpCut
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_20100
$car = get_car_char_is_using $scplayer
set_car_coordinates $car {x} -2150.165 {y} 642.3364 {z} 51.2188
set_car_heading $car {heading} 0.0

:WUZI1_20100
if 
  not is_char_dead 35@
goto_if_false @WUZI1_20224
flush_route 
extend_route -2155.1499 {y} 645.1982 {z} 51.2293
extend_route -2162.0229 {y} 645.1555 {z} 51.7499
if 
  is_char_in_any_car 35@
goto_if_false @WUZI1_20215
remove_char_from_group 35@
132@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 35@ {sequence} 132@
clear_sequence_task 132@
goto @WUZI1_20224

:WUZI1_20215
task_follow_point_route 35@ {speed} MoveState.Run {mode} RouteMode.Once

:WUZI1_20224
42@ = 2
set_lvar_int_to_lvar_int 159@ = TIMERA
159@ += 5000

:WUZI1_20247
if 
  42@ == 2
goto_if_false @WUZI1_20334
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 159@
goto_if_false @WUZI1_20334
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
if 
  not is_char_dead 35@
goto_if_false @WUZI1_20313
delete_char 35@

:WUZI1_20313
37@ = 0
set_player_control $player1 {state} True
71@ = 10

:WUZI1_20334
return 

:WUZI1_20336
if 
  200@ > 0
goto_if_false @WUZI1_20474
130@ = 0
95@ = 0

:WUZI1_20368
if 
  18 > 130@
goto_if_false @WUZI1_20474
if 
  does_char_exist 138@(130@,18i)
goto_if_false @WUZI1_20460
if 
  is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_20460
remove_blip 111@(130@,18i)
if 
  130@ > 7
goto_if_false @WUZI1_20460
95@ += 1

:WUZI1_20460
130@ += 1
goto @WUZI1_20368

:WUZI1_20474
if 
  200@ == 1
goto_if_false @WUZI1_21166
if or
  676.0 > $player_y
  676.0 > 229@
goto_if_false @WUZI1_21166
102@ = create_car 468 {x} -2191.2739 {y} 644.4189 {z} 48.4453
103@ = create_car 468 {x} -2200.2051 {y} 644.3219 {z} 48.4429
set_car_heading 102@ {heading} 270.0
set_car_heading 103@ {heading} 270.0
mark_model_as_no_longer_needed 468
request_car_recording 139
142@ = create_char_inside_car 102@ {pedType} PedType.Mission1 {modelId} 123
143@ = create_char_as_passenger 102@ {pedType} PedType.Mission1 {modelId} 121 {seat} SeatId.BikeRear
144@ = create_char_inside_car 103@ {pedType} PedType.Mission1 {modelId} 122
145@ = create_char_as_passenger 103@ {pedType} PedType.Mission1 {modelId} 123 {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
give_weapon_to_char 142@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 143@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 144@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 145@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 142@ {accuracy} 80
set_char_accuracy 143@ {accuracy} 85
set_char_accuracy 144@ {accuracy} 90
set_char_accuracy 145@ {accuracy} 85
115@ = add_blip_for_char 142@
116@ = add_blip_for_char 143@
117@ = add_blip_for_char 144@
118@ = add_blip_for_char 145@
set_char_drops_weapons_when_dead 142@ {state} False
set_char_drops_weapons_when_dead 143@ {state} False
set_char_drops_weapons_when_dead 144@ {state} False
set_char_drops_weapons_when_dead 145@ {state} False
set_car_forward_speed 102@ {forwardSpeed} 20.0
set_car_forward_speed 103@ {forwardSpeed} 20.0
set_char_decision_maker 142@ {handleOrTemplate} 34@
set_char_decision_maker 143@ {handleOrTemplate} 34@
set_char_decision_maker 144@ {handleOrTemplate} 34@
set_char_decision_maker 145@ {handleOrTemplate} 34@
set_sense_range 142@ {range} 40.0
set_sense_range 143@ {range} 40.0
set_sense_range 144@ {range} 40.0
set_sense_range 145@ {range} 40.0
set_inform_respected_friends 142@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 143@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 144@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 145@ {radius} 30.0 {_p3} 8
task_kinda_stay_in_same_place 142@ {state} True
task_kinda_stay_in_same_place 143@ {state} True
task_kinda_stay_in_same_place 144@ {state} True
task_kinda_stay_in_same_place 145@ {state} True
132@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 102@ {x} -2177.165 {y} 645.6417 {z} 48.4453 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 102@ {actionId} TempAction.HandbrakeTurnLeft {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2172.865 {y} 652.5621 {z} 48.4429 {speed} MoveState.Run {time} 4000
task_stay_in_same_place -1 {state} True
close_sequence_task 132@
perform_sequence_task 142@ {sequence} 132@
clear_sequence_task 132@
132@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 103@ {x} -2174.811 {y} 644.3727 {z} 48.4453 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_temp_action -1 {vehicle} 103@ {actionId} TempAction.HandbrakeTurnLeft {time} 2000
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2176.99 {y} 650.9326 {z} 48.4429 {speed} MoveState.Run {time} 3000
task_toggle_duck -1 {state} True
close_sequence_task 132@
perform_sequence_task 144@ {sequence} 132@
clear_sequence_task 132@
200@ = 2

:WUZI1_21166
if 
  200@ == 2
goto_if_false @WUZI1_21356
129@ = 0
if 
  not is_char_dead 142@
goto_if_false @WUZI1_21215
129@ = get_car_char_is_using 142@

:WUZI1_21215
if or
  129@ == -1
  is_char_dead 142@
goto_if_false @WUZI1_21356
if 
  not is_char_dead 143@
goto_if_false @WUZI1_21275
if 
  is_char_in_any_car 143@
goto_if_false @WUZI1_21275
task_leave_any_car 143@

:WUZI1_21275
if 
  not is_char_dead 144@
goto_if_false @WUZI1_21312
if 
  is_char_in_any_car 144@
goto_if_false @WUZI1_21312
task_leave_any_car 144@

:WUZI1_21312
if 
  not is_char_dead 145@
goto_if_false @WUZI1_21349
if 
  is_char_in_any_car 145@
goto_if_false @WUZI1_21349
task_leave_any_car 145@

:WUZI1_21349
200@ = 3

:WUZI1_21356
if 
  200@ == 4
goto_if_false @WUZI1_22821
if 
  93@ == 0
goto_if_false @WUZI1_21520
if 
  not is_char_dead 151@
goto_if_false @WUZI1_21520
if or
  -2193.0 > $player_x
  -2193.0 > 228@
goto_if_false @WUZI1_21520
93@ = 1
132@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
close_sequence_task 132@
perform_sequence_task 151@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_21520
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2171.8569 {leftBottomY} 658.2869 {leftBottomZ} 52.1667 {rightTopX} -2240.303 {rightTopY} 631.7034 {rightTopZ} 48.0251 {drawSphere} False
goto_if_false @WUZI1_21804
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI1_21700
if 
  84@ == 0
goto_if_false @WUZI1_21693
84@ = 1
130@ = 9

:WUZI1_21616
if 
  13 > 130@
goto_if_false @WUZI1_21693
if 
  not is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_21679
set_char_accuracy 138@(130@,18i) {accuracy} 100
task_shoot_at_char 138@(130@,18i) {target} $scplayer {time} -2

:WUZI1_21679
130@ += 1
goto @WUZI1_21616

:WUZI1_21693
goto @WUZI1_21804

:WUZI1_21700
if 
  84@ == 1
goto_if_false @WUZI1_21804
84@ = 0
130@ = 9

:WUZI1_21732
if 
  13 > 130@
goto_if_false @WUZI1_21804
if 
  not is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_21790
set_char_accuracy 138@(130@,18i) {accuracy} 80
clear_char_tasks 138@(130@,18i)

:WUZI1_21790
130@ += 1
goto @WUZI1_21732

:WUZI1_21804
if 
  85@ == 0
goto_if_false @WUZI1_22069
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @WUZI1_22069
130@ = generate_random_int_in_range 9 {max} 13
91@ = 0

:WUZI1_21857
if 
  4 > 91@
goto_if_false @WUZI1_22053
set_lvar_int_to_lvar_int 131@ = 130@
131@ -= 9
if and
  not is_char_dead 138@(130@,18i)
  87@(131@,4i) == 0
goto_if_false @WUZI1_22007
87@(131@,4i) = 1
flush_route 
extend_route 201@(131@,4f) {y} 205@(131@,4f) {z} 209@(131@,4f)
extend_route 213@(131@,4f) {y} 217@(131@,4f) {z} 221@(131@,4f)
task_follow_point_route 138@(130@,18i) {speed} MoveState.Run {mode} RouteMode.Once
91@ = 4
goto @WUZI1_22039

:WUZI1_22007
130@ += 1
if 
  130@ > 12
goto_if_false @WUZI1_22039
130@ = 9

:WUZI1_22039
91@ += 1
goto @WUZI1_21857

:WUZI1_22053
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 10000

:WUZI1_22069
if 
  94@ == 0
goto_if_false @WUZI1_22541
if or
  -2197.0 > $player_x
  95@ > 1
goto_if_false @WUZI1_22541
94@ = 1
152@ = create_char PedType.Mission1 {modelId} 123 {x} -2205.8611 {y} 625.282 {z} 48.4396
153@ = create_char PedType.Mission1 {modelId} 121 {x} -2207.0759 {y} 627.3953 {z} 48.4384
give_weapon_to_char 152@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 153@ {weaponType} WeaponType.MicroUzi {ammo} 500
flush_route 
extend_route -2205.8081 {y} 626.6268 {z} 48.4429
extend_route -2205.8491 {y} 635.5339 {z} 48.4453
task_follow_point_route 152@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
extend_route -2205.8081 {y} 626.6268 {z} 48.4429
extend_route -2204.5801 {y} 634.2507 {z} 48.4453
task_follow_point_route 153@ {speed} MoveState.Run {mode} RouteMode.Once
104@ = create_car 405 {x} -2267.322 {y} 659.5334 {z} 48.2969
set_car_proofs 104@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 104@ {heading} 344.0
lock_car_doors 104@ {lockStatus} CarLock.LockoutPlayerOnly
154@ = create_char_inside_car 104@ {pedType} PedType.Mission1 {modelId} 121
155@ = create_char_as_passenger 104@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 154@ {weaponType} WeaponType.MicroUzi {ammo} 500
give_weapon_to_char 155@ {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_decision_maker 152@ {handleOrTemplate} 34@
set_char_decision_maker 153@ {handleOrTemplate} 34@
set_char_decision_maker 154@ {handleOrTemplate} 34@
set_char_decision_maker 155@ {handleOrTemplate} 34@
125@ = add_blip_for_char 152@
126@ = add_blip_for_char 153@
127@ = add_blip_for_char 154@
128@ = add_blip_for_char 155@
set_sense_range 152@ {range} 40.0
set_sense_range 153@ {range} 40.0
set_sense_range 154@ {range} 40.0
set_sense_range 155@ {range} 40.0
set_inform_respected_friends 152@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 153@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 154@ {radius} 30.0 {_p3} 8
set_inform_respected_friends 155@ {radius} 30.0 {_p3} 8
start_playback_recorded_car 104@ {path} 139

:WUZI1_22541
if 
  94@ == 1
goto_if_false @WUZI1_22757
if 
  not is_car_dead 104@
goto_if_false @WUZI1_22757
$x, $y, $z = get_car_coordinates 104@
if 
  $x > -2227.0
goto_if_false @WUZI1_22757
94@ = 2
if 
  not is_char_dead 154@
goto_if_false @WUZI1_22687
flush_route 
extend_route -2214.6331 {y} 642.2872 {z} 48.447
132@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 154@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_22687
if 
  not is_char_dead 154@
goto_if_false @WUZI1_22757
flush_route 
extend_route -2214.373 {y} 639.3536 {z} 48.4511
132@ = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
close_sequence_task 132@
perform_sequence_task 155@ {sequence} 132@
clear_sequence_task 132@

:WUZI1_22757
if 
  94@ == 2
goto_if_false @WUZI1_22821
if 
  not is_car_dead 104@
goto_if_false @WUZI1_22821
if 
  not is_playback_going_on_for_car 104@
goto_if_false @WUZI1_22821
94@ = 3
freeze_car_position 104@ {state} True

:WUZI1_22821
return 

:WUZI1_22823
if 
  not is_char_dead 35@
goto_if_false @WUZI1_23033
if 
  is_char_shooting 35@
goto_if_false @WUZI1_23033
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 277@
goto_if_false @WUZI1_23033
if 
  637@ == 0
goto_if_false @WUZI1_23033
if 
  6 > 275@
goto_if_false @WUZI1_23033
276@ = generate_random_int_in_range 0 {max} 6

:WUZI1_22919
if 
  232@(276@,6i) == 0
goto_if_false @WUZI1_22980
276@ += 1
if 
  276@ > 5
goto_if_false @WUZI1_22973
276@ = 0

:WUZI1_22973
goto @WUZI1_22919

:WUZI1_22980
275@ += 1
set_lvar_int_to_lvar_int 637@ = 232@(276@,6i)
232@(276@,6i) = 0
279@ = 0
set_lvar_int_to_lvar_int 277@ = TIMERA
277@ += 8000

:WUZI1_23033
return 
return 

:WUZI1_23037
if 
  96@ == 1
goto_if_false @WUZI1_23144
if 
  not is_char_dead 35@
goto_if_false @WUZI1_23144
set_lvar_int_to_lvar_int 278@ = 161@
161@ = get_char_health 35@
if 
  not is_int_lvar_equal_to_int_lvar 161@ == 278@
goto_if_false @WUZI1_23121
set_lvar_int_to_lvar_int 278@ = 161@
279@ = 1

:WUZI1_23121
set_var_int_to_lvar_int $wz1_health_bar = 161@
$wz1_health_bar *= 100
$wz1_health_bar /= 250

:WUZI1_23144
return 

:WUZI1_23146
return 

:WUZI1_23148
if 
  281@ <> 0
goto_if_false @WUZI1_23341
if 
  280@ == 0
goto_if_false @WUZI1_23202
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 281@
280@ = 1

:WUZI1_23202
if 
  280@ == 1
goto_if_false @WUZI1_23265
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @WUZI1_23265
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 283@
goto_if_false @WUZI1_23265
play_mission_audio MissionAudioSlot.Slot3
280@ = 2

:WUZI1_23265
if or
  280@ == 2
  is_skip_cutscene_button_pressed 
goto_if_false @WUZI1_23341
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @WUZI1_23341
clear_mission_audio MissionAudioSlot.Slot3
set_lvar_int_to_lvar_int 281@ = 282@
282@ = 0
set_lvar_int_to_lvar_int 283@ = 284@
284@ = 0
280@ = 0

:WUZI1_23341
if 
  285@ <> 0
goto_if_false @WUZI1_23548
if 
  286@ == 0
goto_if_false @WUZI1_23419
286@ = 1
set_lvar_int_to_lvar_int 287@ = TIMERA
288@ = 0
set_lvar_int_to_lvar_int 750@ = 287@
add_int_lvar_to_int_lvar 750@ += 289@(288@,20i)

:WUZI1_23419
if 
  286@ == 1
goto_if_false @WUZI1_23548
if and
  is_int_lvar_greater_than_int_lvar TIMERA > 750@
  637@ == 0
goto_if_false @WUZI1_23548
set_lvar_int_to_lvar_int 637@ = 309@(288@,20i)
288@ += 1
329@ -= 1
if 
  329@ == 0
goto_if_false @WUZI1_23528
285@ = 0
286@ = 0
goto @WUZI1_23548

:WUZI1_23528
set_lvar_int_to_lvar_int 750@ = 287@
add_int_lvar_to_int_lvar 750@ += 289@(288@,20i)

:WUZI1_23548
switch_start 636@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI1_27955 {caseNum1} 0 {caseLabel1} @WUZI1_23611 {caseNum2} 1 {caseLabel2} @WUZI1_26570 {caseNum3} 2 {caseLabel3} @WUZI1_27414 {caseNum4} 3 {caseLabel4} @WUZI1_27513 {caseNum5} 4 {caseLabel5} @WUZI1_27594 {caseNum6} 5 {caseLabel6} @WUZI1_27738 {caseNum7} 6 {caseLabel7} @WUZI1_27849

:WUZI1_23611
if 
  636@ == 1
goto_if_false @WUZI1_23679
748@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125
752@ = create_char PedType.Gang2 {modelId} 290 {x} 2752.3411 {y} -1948.8669 {z} 16.3125

:WUZI1_23679
set_lvar_int_to_constant 532@ = 43800
set_lvar_int_to_constant 533@ = 43801
set_lvar_int_to_constant 534@ = 43804
set_lvar_int_to_constant 535@ = 43805
set_lvar_int_to_constant 536@ = 43806
set_lvar_int_to_constant 537@ = 43807
set_lvar_int_to_constant 538@ = 43808
set_lvar_int_to_constant 539@ = 65535
set_lvar_int_to_constant 540@ = 43809
set_lvar_int_to_constant 541@ = 43810
set_lvar_int_to_constant 542@ = 43811
set_lvar_int_to_constant 543@ = 43814
set_lvar_int_to_constant 544@ = 43812
set_lvar_int_to_constant 545@ = 43813
set_lvar_int_to_constant 546@ = 43845
set_lvar_int_to_constant 547@ = 43847
set_lvar_int_to_constant 548@ = 43844
set_lvar_int_to_constant 549@ = 43849
set_lvar_int_to_constant 550@ = 43850
set_lvar_int_to_constant 551@ = 43851
set_lvar_int_to_constant 552@ = 43852
set_lvar_int_to_constant 553@ = 43853
set_lvar_int_to_constant 554@ = 43854
set_lvar_int_to_constant 555@ = 43855
set_lvar_int_to_constant 556@ = 43856
set_lvar_int_to_constant 557@ = 43857
set_lvar_int_to_constant 558@ = 65535
set_lvar_int_to_constant 559@ = 65535
set_lvar_int_to_constant 560@ = 65535
set_lvar_int_to_constant 561@ = 43858
set_lvar_int_to_constant 562@ = 43859
set_lvar_int_to_constant 563@ = 43860
set_lvar_int_to_constant 564@ = 43861
set_lvar_int_to_constant 565@ = 43862
set_lvar_int_to_constant 566@ = 43863
set_lvar_int_to_constant 567@ = 43864
set_lvar_int_to_constant 568@ = 43865
set_lvar_int_to_constant 569@ = 43866
set_lvar_int_to_constant 570@ = 43867
set_lvar_int_to_constant 571@ = 43868
set_lvar_int_to_constant 572@ = 43869
set_lvar_int_to_constant 573@ = 43870
set_lvar_int_to_constant 574@ = 43871
set_lvar_int_to_constant 575@ = 43872
set_lvar_int_to_constant 576@ = 43873
set_lvar_int_to_constant 577@ = 43874
set_lvar_int_to_constant 578@ = 43875
set_lvar_int_to_constant 579@ = 43876
set_lvar_int_to_constant 580@ = 43877
set_lvar_int_to_constant 581@ = 43878
set_lvar_int_to_constant 582@ = 43879
set_lvar_int_to_constant 583@ = 43880
set_lvar_int_to_constant 584@ = 43881
set_lvar_int_to_constant 585@ = 43882
set_lvar_int_to_constant 586@ = 43883
set_lvar_int_to_constant 587@ = 43884
set_lvar_int_to_constant 588@ = 43885
set_lvar_int_to_constant 589@ = 43886
set_lvar_int_to_constant 590@ = 43887
set_lvar_int_to_constant 591@ = 43888
set_lvar_int_to_constant 592@ = 43889
set_lvar_int_to_constant 593@ = 43890
set_lvar_int_to_constant 594@ = 43892
set_lvar_int_to_constant 595@ = 43893
set_lvar_int_to_constant 596@ = 43894
set_lvar_int_to_constant 597@ = 43902
set_lvar_int_to_constant 598@ = 43895
set_lvar_int_to_constant 599@ = 43905
set_lvar_int_to_constant 600@ = 43815
set_lvar_int_to_constant 601@ = 43816
set_lvar_int_to_constant 602@ = 43817
set_lvar_int_to_constant 603@ = 43818
set_lvar_int_to_constant 604@ = 43832
set_lvar_int_to_constant 605@ = 43839
set_lvar_int_to_constant 606@ = 43840
set_lvar_int_to_constant 607@ = 65535
set_lvar_int_to_constant 608@ = 43826
set_lvar_int_to_constant 609@ = 43841
set_lvar_int_to_constant 610@ = 43842
set_lvar_int_to_constant 611@ = 43843
set_lvar_int_to_constant 612@ = 43844
set_lvar_int_to_constant 613@ = 43828
set_lvar_int_to_constant 614@ = 43829
set_lvar_int_to_constant 615@ = 43819
set_lvar_int_to_constant 616@ = 43820
set_lvar_int_to_constant 617@ = 43821
set_lvar_int_to_constant 618@ = 43822
set_lvar_int_to_constant 619@ = 43823
set_lvar_int_to_constant 620@ = 43836
set_lvar_int_to_constant 621@ = 43837
set_lvar_int_to_constant 622@ = 43838
set_lvar_int_to_constant 623@ = 43885
set_lvar_int_to_constant 624@ = 43883
set_lvar_text_label 333@s = 'WUZ1_AA'
set_lvar_text_label 335@s = 'WUZ1_AB'
set_lvar_text_label 337@s = 'WUZ1_CA'
set_lvar_text_label 339@s = 'WUZ1_CB'
set_lvar_text_label 341@s = 'WUZ1_CC'
set_lvar_text_label 343@s = 'WUZ1_CD'
set_lvar_text_label 345@s = 'WUZ1_CE'
set_lvar_text_label 349@s = 'WUZ1_CG'
set_lvar_text_label 351@s = 'WUZ1_CH'
set_lvar_text_label 353@s = 'WUZ1_DA'
set_lvar_text_label 355@s = 'WUZ1_DD'
set_lvar_text_label 357@s = 'WUZ1_DB'
set_lvar_text_label 359@s = 'WUZ1_DC'
set_lvar_text_label 361@s = 'WUZ1_LA'
set_lvar_text_label 363@s = 'WUZ1_LC'
set_lvar_text_label 365@s = 'WUZ1_KD'
set_lvar_text_label 367@s = 'WUZ1_MA'
set_lvar_text_label 369@s = 'WUZ1_MB'
set_lvar_text_label 371@s = 'WUZ1_MC'
set_lvar_text_label 373@s = 'WUZ1_MD'
set_lvar_text_label 375@s = 'WUZ1_ME'
set_lvar_text_label 377@s = 'WUZ1_MF'
set_lvar_text_label 379@s = 'WUZ1_MG'
set_lvar_text_label 381@s = 'WUZ1_MH'
set_lvar_text_label 383@s = 'WUZ1_MJ'
set_lvar_text_label 387@s = 'WUZ1_MH'
set_lvar_text_label 389@s = 'WUZ1_MJ'
set_lvar_text_label 391@s = 'WUZ1_NA'
set_lvar_text_label 393@s = 'WUZ1_NB'
set_lvar_text_label 395@s = 'WUZ1_NC'
set_lvar_text_label 397@s = 'WUZ1_ND'
set_lvar_text_label 399@s = 'WUZ1_NE'
set_lvar_text_label 401@s = 'WUZ1_NF'
set_lvar_text_label 403@s = 'WUZ1_NG'
set_lvar_text_label 405@s = 'WUZ1_NH'
set_lvar_text_label 407@s = 'WUZ1_NJ'
set_lvar_text_label 409@s = 'WUZ1_NK'
set_lvar_text_label 411@s = 'WUZ1_NL'
set_lvar_text_label 413@s = 'WUZ1_NM'
set_lvar_text_label 415@s = 'WUZ1_NN'
set_lvar_text_label 417@s = 'WUZ1_NO'
set_lvar_text_label 419@s = 'WUZ1_NP'
set_lvar_text_label 421@s = 'WUZ1_NQ'
set_lvar_text_label 423@s = 'WUZ1_OA'
set_lvar_text_label 425@s = 'WUZ1_OB'
set_lvar_text_label 427@s = 'WUZ1_OC'
set_lvar_text_label 429@s = 'WUZ1_OD'
set_lvar_text_label 431@s = 'WUZ1_OE'
set_lvar_text_label 433@s = 'WUZ1_OF'
set_lvar_text_label 435@s = 'WUZ1_OG'
set_lvar_text_label 437@s = 'WUZ1_OH'
set_lvar_text_label 439@s = 'WUZ1_OJ'
set_lvar_text_label 441@s = 'WUZ1_OK'
set_lvar_text_label 443@s = 'WUZ1_OL'
set_lvar_text_label 445@s = 'WUZ1_OM'
set_lvar_text_label 447@s = 'WUZ1_ON'
set_lvar_text_label 449@s = 'WUZ1_OO'
set_lvar_text_label 451@s = 'WUZ1_OP'
set_lvar_text_label 453@s = 'WUZ1_OQ'
set_lvar_text_label 455@s = 'WUZ1_OR'
set_lvar_text_label 457@s = 'WUZ1_PA'
set_lvar_text_label 459@s = 'WUZ1_PB'
set_lvar_text_label 461@s = 'WUZ1_QA'
set_lvar_text_label 463@s = 'WUZ1_RA'
set_lvar_text_label 465@s = 'WUZ1_QB'
set_lvar_text_label 467@s = 'WUZ1_RD'
set_lvar_text_label 469@s = 'WUZ1_EA'
set_lvar_text_label 471@s = 'WUZ1_EB'
set_lvar_text_label 473@s = 'WUZ1_EC'
set_lvar_text_label 475@s = 'WUZ1_EE'
set_lvar_text_label 477@s = 'WUZ1_GJ'
set_lvar_text_label 479@s = 'WUZ1_JA'
set_lvar_text_label 481@s = 'WUZ1_JB'
set_lvar_text_label 485@s = 'WUZ1_GC'
set_lvar_text_label 487@s = 'WUZ1_KA'
set_lvar_text_label 489@s = 'WUZ1_KB'
set_lvar_text_label 491@s = 'WUZ1_KC'
set_lvar_text_label 493@s = 'WUZ1_KD'
set_lvar_text_label 495@s = 'WUZ1_GE'
set_lvar_text_label 497@s = 'WUZ1_GF'
set_lvar_text_label 499@s = 'WUZ1_FA'
set_lvar_text_label 501@s = 'WUZ1_FB'
set_lvar_text_label 503@s = 'WUZ1_FC'
set_lvar_text_label 505@s = 'WUZ1_FD'
set_lvar_text_label 507@s = 'WUZ1_FE'
set_lvar_text_label 509@s = 'WUZ1_HA'
set_lvar_text_label 511@s = 'WUZ1_HB'
set_lvar_text_label 513@s = 'WUZ1_HC'
set_lvar_text_label 515@s = 'WUZ1_OM'
set_lvar_text_label 517@s = 'WUZ1_OK'
640@ = 2
641@ = 1
642@ = 2
643@ = 2
644@ = 1
645@ = 2
646@ = 2
647@ = 2
648@ = 1
649@ = 2
650@ = 2
651@ = 2
652@ = 1
653@ = 2
654@ = 2
655@ = 2
656@ = 2
657@ = 1
658@ = 2
659@ = 2
660@ = 1
661@ = 2
662@ = 3
663@ = 2
664@ = 3
665@ = 3
666@ = 2
667@ = 2
668@ = 2
669@ = 2
670@ = 2
671@ = 2
672@ = 1
673@ = 2
674@ = 2
675@ = 0
676@ = 2
677@ = 1
678@ = 2
679@ = 2
680@ = 2
681@ = 2
682@ = 2
683@ = 2
684@ = 2
685@ = 0
686@ = 2
687@ = 2
688@ = 2
689@ = 2
690@ = 2
691@ = 2
692@ = 1
693@ = 2
694@ = 2
695@ = 1
696@ = 1
697@ = 1
698@ = 2
699@ = 1
700@ = 2
701@ = 2
702@ = 1
703@ = 2
704@ = 2
705@ = 1
706@ = 1
707@ = 1
708@ = 2
709@ = 1
710@ = 2
711@ = 2
712@ = 2
713@ = 1
714@ = 2
715@ = 2
716@ = 2
717@ = 1
718@ = 2
719@ = 2
720@ = 2
721@ = 2
722@ = 2
723@ = 2
724@ = 1
725@ = 2
726@ = 2
727@ = 2
728@ = 2
729@ = 1
730@ = 2
731@ = 1
732@ = 1
set_lvar_int_to_var_int 740@ = $scplayer
636@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 532@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 533@
632@ = 1
633@ = 2
goto @WUZI1_27955

:WUZI1_26570
if 
  637@ <> 0
goto_if_false @WUZI1_27407
if 
  265@ == 0
goto_if_false @WUZI1_27407
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 755@
goto_if_false @WUZI1_27407
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @WUZI1_27407
if 
  is_int_lvar_equal_to_int_lvar 632@ == 637@
goto_if_false @WUZI1_26677
634@ = 1
goto @WUZI1_26740

:WUZI1_26677
if 
  is_int_lvar_equal_to_int_lvar 633@ == 637@
goto_if_false @WUZI1_26710
634@ = 2
goto @WUZI1_26740

:WUZI1_26710
634@ = 1
set_lvar_int_to_lvar_int 632@ = 637@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 531@(637@,100i)

:WUZI1_26740
if 
  has_mission_audio_loaded 634@
goto_if_false @WUZI1_27395
set_lvar_int_to_lvar_int 747@ = 639@(637@,100i)
set_lvar_int_to_lvar_int 748@ = 739@(747@,7i)
if 
  754@ <> 1
goto_if_false @WUZI1_26968
751@ = 1
753@ = 0

:WUZI1_26812
if 
  7 > 751@
goto_if_false @WUZI1_26968
set_lvar_int_to_lvar_int 752@ = 739@(751@,7i)
if 
  752@ <> 0
goto_if_false @WUZI1_26954
if 
  not is_int_lvar_equal_to_int_lvar 752@ == 748@
goto_if_false @WUZI1_26954
if 
  not is_char_dead 748@
goto_if_false @WUZI1_26954
if 
  not is_char_dead 752@
goto_if_false @WUZI1_26954
if 
  locate_char_any_means_char_3d 748@ {target} 752@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @WUZI1_26954
753@ += 1

:WUZI1_26954
751@ += 1
goto @WUZI1_26812

:WUZI1_26968
if or
  754@ == 1
  753@ > 0
  639@(637@,100i) == 0
goto_if_false @WUZI1_27381
if 
  639@(637@,100i) <> 0
goto_if_false @WUZI1_27113
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27113
if 
  $play_audio_global == 0
goto_if_false @WUZI1_27068
attach_mission_audio_to_char 634@ {handle} 748@

:WUZI1_27068
if 
  not is_char_talking 748@
goto_if_false @WUZI1_27106
746@ = 1
start_char_facial_talk 748@ {duration} 15000
goto @WUZI1_27113

:WUZI1_27106
disable_char_speech 748@ {stopNow} False

:WUZI1_27113
if 
  639@(637@,100i) == 0
goto_if_false @WUZI1_27142
746@ = 1

:WUZI1_27142
if 
  746@ == 1
goto_if_false @WUZI1_27374
if 
  748@ <> 0
goto_if_false @WUZI1_27201
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27201
shut_char_up_for_scripted_speech 748@ {state} True

:WUZI1_27201
play_mission_audio 634@
clear_prints 
print 331@(637@,100s) {time} 10000 {flag} 1
636@ += 1
746@ = 0
637@ += 1
set_lvar_int_to_lvar_int 635@ = 637@
if 
  531@(637@,100i) <> 0
goto_if_false @WUZI1_27374
if 
  634@ == 1
goto_if_false @WUZI1_27336
if 
  not is_int_lvar_equal_to_int_lvar 633@ == 637@
goto_if_false @WUZI1_27329
load_mission_audio MissionAudioSlot.Slot2 {audioId} 531@(637@,100i)
set_lvar_int_to_lvar_int 633@ = 637@

:WUZI1_27329
goto @WUZI1_27374

:WUZI1_27336
if 
  not is_int_lvar_equal_to_int_lvar 632@ == 637@
goto_if_false @WUZI1_27374
load_mission_audio MissionAudioSlot.Slot1 {audioId} 531@(637@,100i)
set_lvar_int_to_lvar_int 632@ = 637@

:WUZI1_27374
goto @WUZI1_27388

:WUZI1_27381
636@ = 6

:WUZI1_27388
goto @WUZI1_27407

:WUZI1_27395
load_mission_audio 634@ {audioId} 531@(637@,100i)

:WUZI1_27407
goto @WUZI1_27955

:WUZI1_27414
if 
  has_mission_audio_finished 634@
goto_if_false @WUZI1_27467
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27453
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27453
636@ += 1
goto @WUZI1_27506

:WUZI1_27467
if 
  does_char_exist 748@
goto_if_false @WUZI1_27506
if 
  is_char_dead 748@
goto_if_false @WUZI1_27506
636@ += 1

:WUZI1_27506
goto @WUZI1_27955

:WUZI1_27513
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27536
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27536
clear_mission_audio 634@
631@(634@,3i) = 0
clear_prints 
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27580
stop_char_facial_talk 748@
enable_char_speech 748@

:WUZI1_27580
636@ += 1
goto @WUZI1_27955

:WUZI1_27594
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27617
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27617
637@ += 1
if 
  531@(637@,100i) <> 0
goto_if_false @WUZI1_27670
load_mission_audio 634@ {audioId} 531@(637@,100i)
set_lvar_int_to_lvar_int 631@(634@,3i) = 637@

:WUZI1_27670
638@ -= 1
if 
  638@ <= 0
goto_if_false @WUZI1_27716
637@ = 0
638@ = 0
goto @WUZI1_27724

:WUZI1_27716
set_lvar_int_to_lvar_int 637@ = 635@

:WUZI1_27724
636@ = 1
goto @WUZI1_27955

:WUZI1_27738
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27761
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27761
636@ = 1
637@ = 0
638@ = 0
285@ = 0
329@ = 0
$play_audio_global = 0
clear_mission_audio 634@
631@(634@,3i) = 0
clear_prints 
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27842
enable_char_speech 748@

:WUZI1_27842
goto @WUZI1_27955

:WUZI1_27849
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27872
shut_char_up_for_scripted_speech 748@ {state} False

:WUZI1_27872
636@ = 2
637@ = 0
638@ = 0
285@ = 0
329@ = 0
$play_audio_global = 0
631@(634@,3i) = 0
clear_prints 
if 
  not is_char_dead 748@
goto_if_false @WUZI1_27948
enable_char_speech 748@

:WUZI1_27948
goto @WUZI1_27955

:WUZI1_27955
return 

:WUZI1_27957
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:WUZI1_27975
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 10
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'WUZI_1'
$flag_wuzi_mission_counter += 1
return 

:WUZI1_28039
130@ = 0

:WUZI1_28046
if 
  18 > 130@
goto_if_false @WUZI1_28139
remove_blip 111@(130@,18i)
if 
  not is_char_dead 138@(130@,18i)
goto_if_false @WUZI1_28125
task_kill_char_on_foot 138@(130@,18i) {target} $scplayer
set_char_keep_task 138@(130@,18i) {state} True
mark_char_as_no_longer_needed 138@(130@,18i)

:WUZI1_28125
130@ += 1
goto @WUZI1_28046

:WUZI1_28139
clear_help 
if 
  not is_car_dead 104@
goto_if_false @WUZI1_28186
set_car_heavy 104@ {state} False
set_car_proofs 104@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 104@ {lockStatus} CarLock.Unlocked

:WUZI1_28186
if 
  is_player_playing $player1
goto_if_false @WUZI1_28209
set_player_control $player1 {state} True

:WUZI1_28209
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
unload_special_character 1
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 468
remove_animation "SWAT"
remove_animation "WUZI"
remove_animation "GANGS"
remove_animation "CAR_CHAT"
remove_car_recording 136
remove_car_recording 137
remove_car_recording 138
remove_car_recording 139
remove_car_recording 169
switch_ped_roads_back_to_original -2239.251 {leftBottomY} 636.6675 {leftBottomZ} 53.1933 {rightTopX} -2165.0471 {rightTopY} 720.0577 {rightTopZ} 49.5456
clear_onscreen_counter $wz1_health_bar
switch_random_trains True
set_wanted_multiplier 1.0
if 
  not is_char_dead $scplayer
goto_if_false @WUZI1_28404
shut_char_up_for_scripted_speech $scplayer {state} False

:WUZI1_28404
if 
  not is_char_dead 35@
goto_if_false @WUZI1_28425
remove_char_elegantly 35@

:WUZI1_28425
remove_blip 107@
remove_blip 108@
remove_blip 109@
remove_blip 110@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
remove_script_fire 258@
remove_script_fire 259@
remove_decision_maker 34@
switch_emergency_services True
$onmission = 0
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CT_GATEXR {state} True
set_uses_collision_of_closest_object_of_type -2175.2129 {y} 662.718 {z} 50.8582 {radius} 10.5 {modelId} #CHINA_TOWN_GATEB {state} True
mission_has_finished 
return 

//-------------Mission 54---------------
// Originally: Ran Fa Li

:FARLIE4
script_name 'FARLIE4'
gosub @FARLIE4_47
if 
  has_deatharrest_been_executed 
goto_if_false @FARLIE4_38
gosub @FARLIE4_7851

:FARLIE4_38
gosub @FARLIE4_8352
terminate_this_script 

:FARLIE4_47
load_mission_text 'FARLIE4'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FARLIE4_73
if 
  get_fading_status 
goto_if_false @FARLIE4_97
wait 0
goto @FARLIE4_73

:FARLIE4_97
set_area_visible 1
load_cutscene 'FARL_4A'

:FARLIE4_112
if 
  not has_cutscene_loaded 
goto_if_false @FARLIE4_136
wait 0
goto @FARLIE4_112

:FARLIE4_136
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:FARLIE4_153
if 
  not has_cutscene_finished 
goto_if_false @FARLIE4_177
wait 0
goto @FARLIE4_153

:FARLIE4_177
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:FARLIE4_191
if 
  get_fading_status 
goto_if_false @FARLIE4_215
wait 0
goto @FARLIE4_191

:FARLIE4_215
clear_cutscene 
set_area_visible 0
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_286
load_scene -2154.998 {y} 645.5436 {z} 51.3516
set_char_coordinates $scplayer {x} -2154.998 {y} 645.5436 {z} 51.3516
set_char_heading $scplayer {heading} 271.113
set_camera_behind_player 

:FARLIE4_286
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
register_mission_given 
$onmission = 1
switch_roads_off -1478.2939 {leftBottomY} -65.4014 {leftBottomZ} 0.0 {rightTopX} -1395.423 {rightTopY} 2.7054 {rightTopZ} 10.0
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
46@ = load_char_decision_maker DecisionMakerType.Tough
146@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 146@ {event} Event.PedEnteredMyVehicle {taskId} TaskId.ComplexLeaveCar {respect} 0.0 {hate} 0.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 46@ {event} Event.PedEnteredMyVehicle {taskId} TaskId.ComplexLeaveCar {respect} 0.0 {hate} 0.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
37@ = add_blip_for_coord -1742.2729 {y} 1422.631 {z} 6.1842
change_blip_display 37@ {display} BlipDisplay.Neither
41@ = add_blip_for_coord -1409.9 {y} -303.4 {z} 4.5
change_garage_type 'FDORSFE' {type} GarageType.ForScriptToOpenAndClose
request_model 352

:FARLIE4_509
if 
  not has_model_loaded 352
goto_if_false @FARLIE4_536
wait 0
goto @FARLIE4_509

:FARLIE4_536
if and
  not has_char_got_weapon $scplayer {weaponType} WeaponType.MicroUzi
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Mp5
goto_if_false @FARLIE4_578
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 150
set_current_char_weapon $scplayer {weaponType} WeaponType.MicroUzi

:FARLIE4_578
TIMERA = 0
140@ = 2
print_now 'F4_T0' {time} 9000 {flag} 1

:FARLIE4_608
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_875
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @FARLIE4_650
goto @FARLIE4_8013

:FARLIE4_650
gosub @FARLIE4_8744
gosub @FARLIE4_9534
if 
  locate_char_any_means_3d $scplayer {x} -1409.9 {y} -303.4 {z} 4.5 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @FARLIE4_868
request_model 475
request_model 410

:FARLIE4_722
if or
  not has_model_loaded 475
  not has_model_loaded 410
goto_if_false @FARLIE4_754
wait 0
goto @FARLIE4_722

:FARLIE4_754
141@ = 1
remove_blip 41@
34@ = create_car 410 {x} -1425.512 {y} -21.2813 {z} 5.0078
set_car_heading 34@ {heading} 88.7848
freeze_car_position 34@ {state} True
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
set_can_burst_car_tyres 34@ {state} False
set_car_health 34@ {health} 3000
change_car_colour 34@ {color1} 3 {color2} 3
print_now 'F4_T7' {time} 4000 {flag} 1
goto @FARLIE4_882

:FARLIE4_868
goto @FARLIE4_608

:FARLIE4_875
goto @FARLIE4_7851

:FARLIE4_882
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
goto_if_false @FARLIE4_1039
wait 0
gosub @FARLIE4_8744
gosub @FARLIE4_9534
if and
  is_char_in_any_car $scplayer
  not is_car_dead 34@
goto_if_false @FARLIE4_969
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_969
$car = store_car_char_is_in $scplayer

:FARLIE4_969
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1032
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_1032
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 37@ {display} BlipDisplay.Both
freeze_car_position 34@ {state} False
goto @FARLIE4_1046

:FARLIE4_1032
goto @FARLIE4_882

:FARLIE4_1039
goto @FARLIE4_7851

:FARLIE4_1046
set_player_control $player1 {state} False
request_model 121
request_model 122
request_model 521
request_model 352
request_model 414
request_model 330
request_model 475
request_model 543

:FARLIE4_1091
if or
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 521
  not has_model_loaded 352
  not has_model_loaded 414
  not has_model_loaded 330
goto_if_false @FARLIE4_1141
wait 0
goto @FARLIE4_1091

:FARLIE4_1141
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 28000

:FARLIE4_1152
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_model_loaded 475
  not has_model_loaded 543
goto_if_false @FARLIE4_1188
wait 0
goto @FARLIE4_1152

:FARLIE4_1188
set_car_density_multiplier 0.0

:FARLIE4_1195
gosub @FARLIE4_8286
if 
  not is_car_dead $car
goto_if_false @FARLIE4_1306
if 
  locate_car_3d $car {x} -1429.619 {y} -21.2788 {z} 5.0078 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_1301
set_car_as_mission_car $car
set_car_coordinates $car {x} -1425.615 {y} -16.4956 {z} 5.0078
set_car_heading $car {heading} 271.5388

:FARLIE4_1301
wait 500

:FARLIE4_1306
clear_area -1412.5601 {y} -138.0878 {z} 5.0 {radius} 200.0 {clearParticles} True
gosub @FARLIE4_8252
set_fixed_camera_position -1430.361 {y} -18.6971 {z} 6.191 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1429.655 {y} -19.4032 {z} 6.1376 {switchStyle} SwitchType.JumpCut
49@ = create_car 414 {x} -1414.173 {y} -50.4918 {z} 5.0
set_car_heading 49@ {heading} 0.0
59@ = create_char_inside_car 49@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 59@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 59@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 49@
  not is_char_dead 59@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_1541
142@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 49@ {x} -1414.428 {y} -32.5711 {z} 5.0069 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 49@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 142@
perform_sequence_task 59@ {sequence} 142@

:FARLIE4_1541
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1565
43@ = get_car_health 34@

:FARLIE4_1565
set_var_int_to_lvar_int $f4_car_damage = 43@
$f4_car_damage /= 30
display_onscreen_counter_with_string $f4_car_damage {display} CounterDisplay.Bar {text} 'F4_D'
gosub @FARLIE4_8319
print_now 'F4_T5' {time} 5000 {flag} 1
TIMERB = 0

:FARLIE4_1626
if 
  2000 > TIMERB
goto_if_false @FARLIE4_1680
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @FARLIE4_1673
goto @FARLIE4_1760

:FARLIE4_1673
goto @FARLIE4_1626

:FARLIE4_1680
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @FARLIE4_1699
play_mission_audio MissionAudioSlot.Slot3

:FARLIE4_1699
TIMERB = 0

:FARLIE4_1706
if 
  2000 > TIMERB
goto_if_false @FARLIE4_1760
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @FARLIE4_1753
goto @FARLIE4_1760

:FARLIE4_1753
goto @FARLIE4_1706

:FARLIE4_1760
gosub @FARLIE4_8267
print_now 'F4_T8' {time} 4000 {flag} 1
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1806
freeze_car_position 34@ {state} False

:FARLIE4_1806
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
goto_if_false @FARLIE4_7844
wait 0
gosub @FARLIE4_8744
gosub @FARLIE4_9534
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_1885
if 
  has_car_been_resprayed 34@
goto_if_false @FARLIE4_1885
set_car_health 34@ {health} 3000

:FARLIE4_1885
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_2044
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_1966
if 
  40@ == 0
goto_if_false @FARLIE4_1959
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 37@ {display} BlipDisplay.Both
40@ = 1

:FARLIE4_1959
goto @FARLIE4_2021

:FARLIE4_1966
if 
  40@ == 1
goto_if_false @FARLIE4_2021
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 37@ {display} BlipDisplay.Neither
print_now 'F4_T4' {time} 4000 {flag} 1
40@ = 0

:FARLIE4_2021
43@ = get_car_health 34@
set_var_int_to_lvar_int $f4_car_damage = 43@
$f4_car_damage /= 30

:FARLIE4_2044
if or
  locate_char_any_means_3d $scplayer {x} -1467.032 {y} -133.7941 {z} 5.0078 {xRadius} 60.0 {yRadius} 60.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1347.11 {y} -49.7249 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1421.344 {y} -238.9247 {z} 5.0 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_2368
if 
  79@ == 0
goto_if_false @FARLIE4_2368
clear_area -1474.4659 {y} -162.8309 {z} 5.0234 {radius} 10.0 {clearParticles} True
51@ = create_car 414 {x} -1474.4659 {y} -162.8309 {z} 5.0234
set_car_heading 51@ {heading} 272.5542
61@ = create_char_inside_car 51@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 61@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 61@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 51@
  not is_char_dead 61@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_2361
144@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 51@ {x} -1464.8621 {y} -162.4026 {z} 5.0226 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 51@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 144@
perform_sequence_task 61@ {sequence} 144@

:FARLIE4_2361
79@ = 1

:FARLIE4_2368
if or
  locate_char_any_means_3d $scplayer {x} -1423.849 {y} -135.7411 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1347.11 {y} -49.7249 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1421.344 {y} -238.9247 {z} 5.0 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_2692
if 
  80@ == 0
goto_if_false @FARLIE4_2692
clear_area -1387.2679 {y} -126.9234 {z} 5.0078 {radius} 10.0 {clearParticles} True
50@ = create_car 414 {x} -1387.2679 {y} -126.9234 {z} 5.0078
set_car_heading 50@ {heading} 180.2388
60@ = create_char_inside_car 50@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 60@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 60@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 50@
  not is_char_dead 60@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_2685
143@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 50@ {x} -1387.225 {y} -135.6199 {z} 5.0078 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 50@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 143@
perform_sequence_task 60@ {sequence} 143@

:FARLIE4_2685
80@ = 1

:FARLIE4_2692
if or
  locate_char_any_means_3d $scplayer {x} -1427.269 {y} -238.5722 {z} 5.0234 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1347.11 {y} -49.7249 {z} 5.0078 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -1421.344 {y} -238.9247 {z} 5.0 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_3011
if 
  89@ == 0
goto_if_false @FARLIE4_3011
clear_area -1387.792 {y} -230.1776 {z} 5.0078 {radius} 10.0 {clearParticles} True
52@ = create_car 414 {x} -1387.792 {y} -230.1776 {z} 5.0078
set_car_heading 52@ {heading} 179.5878
62@ = create_char_inside_car 52@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 62@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 62@ {weaponType} WeaponType.MicroUzi
if and
  not is_car_dead 52@
  not is_char_dead $scplayer
goto_if_false @FARLIE4_3004
145@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 52@ {x} -1387.8621 {y} -240.3811 {z} 5.0078 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_leave_car -1 {vehicle} 52@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 145@
perform_sequence_task 62@ {sequence} 145@

:FARLIE4_3004
89@ = 1

:FARLIE4_3011
if and
  locate_char_any_means_3d $scplayer {x} -1399.686 {y} -184.757 {z} 5.3047 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 10.0 {drawSphere} False
  81@ == 0
goto_if_false @FARLIE4_3146
44@ = create_char PedType.Mission1 {modelId} 122 {x} -1404.049 {y} -234.7071 {z} 5.3047
set_char_heading 44@ {heading} 353.8535
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 44@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 44@ {accuracy} 80
set_char_decision_maker 44@ {handleOrTemplate} 46@
task_weapon_roll 44@ {direction} True
81@ = 1

:FARLIE4_3146
if and
  locate_char_any_means_3d $scplayer {x} -1400.184 {y} -205.7361 {z} 5.3047 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 10.0 {drawSphere} False
  82@ == 0
goto_if_false @FARLIE4_3281
45@ = create_char PedType.Mission1 {modelId} 121 {x} -1394.235 {y} -234.735 {z} 5.3047
set_char_heading 45@ {heading} 1.5813
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 45@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 45@ {accuracy} 80
set_char_decision_maker 45@ {handleOrTemplate} 46@
task_weapon_roll 45@ {direction} False
82@ = 1

:FARLIE4_3281
if and
  locate_char_any_means_3d $scplayer {x} -1407.187 {y} -239.4782 {z} 5.3047 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  83@ == 0
goto_if_false @FARLIE4_3822
69@ = create_char PedType.Mission1 {modelId} 122 {x} -1407.076 {y} -358.3559 {z} 8.3099
set_char_heading 69@ {heading} 9.5994
70@ = create_char PedType.Mission1 {modelId} 121 {x} -1476.887 {y} -291.53 {z} 8.7087
set_char_heading 70@ {heading} 258.9856
36@ = 0

:FARLIE4_3411
give_weapon_to_char 69@(36@,10i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 69@(36@,10i) {weaponType} WeaponType.MicroUzi
set_char_accuracy 69@(36@,10i) {accuracy} 80
set_char_decision_maker 69@(36@,10i) {handleOrTemplate} 46@
task_stay_in_same_place 69@(36@,10i) {state} True
task_kill_char_on_foot 69@(36@,10i) {target} $scplayer
task_toggle_duck 69@(36@,10i) {state} True
36@ += 1
  36@ >= 2
goto_if_false @FARLIE4_3411
52@ = create_car 414 {x} -1478.896 {y} -470.3535 {z} 10.9926
set_car_heading 52@ {heading} 11.1921
99@ = create_char PedType.Mission1 {modelId} 122 {x} -1478.188 {y} -476.1086 {z} 11.1411
set_char_heading 99@ {heading} 277.8792
100@ = create_char PedType.Mission1 {modelId} 122 {x} -1479.535 {y} -466.4356 {z} 11.0
set_char_heading 100@ {heading} 263.3237
53@ = create_car 414 {x} -1586.0229 {y} -359.7679 {z} 10.9926
set_car_heading 53@ {heading} 248.7342
101@ = create_char PedType.Mission1 {modelId} 122 {x} -1582.225 {y} -362.0264 {z} 11.0
set_char_heading 101@ {heading} 356.2877
102@ = create_char PedType.Mission1 {modelId} 122 {x} -1590.694 {y} -357.4667 {z} 11.1411
set_char_heading 102@ {heading} 323.3828
36@ = 0

:FARLIE4_3723
give_weapon_to_char 99@(36@,10i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 99@(36@,10i) {weaponType} WeaponType.MicroUzi
set_char_accuracy 99@(36@,10i) {accuracy} 80
set_char_decision_maker 99@(36@,10i) {handleOrTemplate} 46@
task_stay_in_same_place 99@(36@,10i) {state} True
task_kill_char_on_foot 99@(36@,10i) {target} $scplayer
36@ += 1
  36@ >= 4
goto_if_false @FARLIE4_3723
83@ = 1

:FARLIE4_3822
if and
  locate_char_any_means_3d $scplayer {x} -1570.8879 {y} -455.6748 {z} 5.0 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 10.0 {drawSphere} False
  84@ == 0
goto_if_false @FARLIE4_3999
set_car_density_multiplier 1.0
delete_char 44@
delete_char 45@
36@ = 0

:FARLIE4_3901
delete_char 59@(36@,10i)
if 
  not is_car_dead 49@(36@,10i)
goto_if_false @FARLIE4_3962
if 
  not is_char_in_car $scplayer {vehicle} 49@(36@,10i)
goto_if_false @FARLIE4_3962
delete_car 49@(36@,10i)

:FARLIE4_3962
delete_char 69@(36@,10i)
36@ += 1
  36@ >= 3
goto_if_false @FARLIE4_3901
84@ = 1

:FARLIE4_3999
if and
  locate_char_any_means_3d $scplayer {x} -2258.519 {y} 124.3485 {z} 34.3125 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  85@ == 0
goto_if_false @FARLIE4_4309
clear_area -2258.519 {y} 124.3485 {z} 34.3125 {radius} 10.0 {clearParticles} True
109@ = create_car 521 {x} -2258.519 {y} 124.3485 {z} 34.3125
129@ = add_blip_for_car 109@
set_car_driving_style 109@ {drivingStyle} DrivingMode.AvoidCars
set_car_heading 109@ {heading} 179.5562
119@ = create_char_inside_car 109@ {pedType} PedType.Mission1 {modelId} 121
120@ = create_char_as_passenger 109@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 119@ {stayOnBike} False
set_char_can_be_knocked_off_bike 120@ {stayOnBike} False
give_weapon_to_char 119@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 119@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 119@ {accuracy} 30
give_weapon_to_char 120@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 120@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 120@ {accuracy} 30
set_char_decision_maker 119@ {handleOrTemplate} 46@
set_char_decision_maker 120@ {handleOrTemplate} 46@
task_drive_by 120@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_4302
task_car_mission 119@ {vehicle} 109@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_4302
85@ = 1

:FARLIE4_4309
if and
  locate_char_any_means_3d $scplayer {x} -1817.8051 {y} -552.1889 {z} 15.0039 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  86@ == 0
goto_if_false @FARLIE4_4648
clear_area -1817.8051 {y} -552.1889 {z} 15.0039 {radius} 10.0 {clearParticles} True
110@ = create_car 521 {x} -1817.8051 {y} -552.1889 {z} 15.0039
130@ = add_blip_for_car 110@
set_car_heading 110@ {heading} 174.0251
set_car_driving_style 110@ {drivingStyle} DrivingMode.AvoidCars
121@ = create_char_inside_car 110@ {pedType} PedType.Mission1 {modelId} 121
122@ = create_char_as_passenger 110@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 121@ {stayOnBike} False
set_char_can_be_knocked_off_bike 122@ {stayOnBike} False
give_weapon_to_char 121@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 121@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 121@ {accuracy} 30
give_weapon_to_char 122@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 122@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 122@ {accuracy} 30
task_drive_by 122@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 122@ {handleOrTemplate} 46@
set_char_decision_maker 121@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_4641
38@ = open_sequence_task 
task_pause -1 {time} 5000
task_car_mission -1 {vehicle} 110@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 38@
perform_sequence_task 121@ {sequence} 38@
clear_sequence_task 38@

:FARLIE4_4641
86@ = 1

:FARLIE4_4648
if and
  locate_char_any_means_3d $scplayer {x} -1818.385 {y} -621.8912 {z} 15.312 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  87@ == 0
goto_if_false @FARLIE4_4987
clear_area -1818.385 {y} -621.8912 {z} 15.312 {radius} 10.0 {clearParticles} True
111@ = create_car 521 {x} -1818.385 {y} -621.8912 {z} 15.312
131@ = add_blip_for_car 111@
set_car_heading 111@ {heading} 1.701
set_car_driving_style 111@ {drivingStyle} DrivingMode.AvoidCars
123@ = create_char_inside_car 111@ {pedType} PedType.Mission1 {modelId} 121
124@ = create_char_as_passenger 111@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 123@ {stayOnBike} False
set_char_can_be_knocked_off_bike 124@ {stayOnBike} False
give_weapon_to_char 123@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 123@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 123@ {accuracy} 30
give_weapon_to_char 124@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 124@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 124@ {accuracy} 30
task_drive_by 124@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 124@ {handleOrTemplate} 46@
set_char_decision_maker 123@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_4980
38@ = open_sequence_task 
task_pause -1 {time} 5000
task_car_mission -1 {vehicle} 111@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 38@
perform_sequence_task 123@ {sequence} 38@
clear_sequence_task 38@

:FARLIE4_4980
87@ = 1

:FARLIE4_4987
if and
  locate_char_any_means_3d $scplayer {x} -2211.6201 {y} 580.9911 {z} 34.1691 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  157@ == 0
goto_if_false @FARLIE4_5290
clear_area -2211.6201 {y} 580.9911 {z} 34.1691 {radius} 10.0 {clearParticles} True
162@ = create_car 410 {x} -2211.6201 {y} 580.9911 {z} 34.1691
167@ = add_blip_for_car 162@
set_car_heading 162@ {heading} 176.7102
set_car_driving_style 162@ {drivingStyle} DrivingMode.AvoidCars
147@ = create_char_inside_car 162@ {pedType} PedType.Mission1 {modelId} 121
148@ = create_char_as_passenger 162@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
set_char_can_be_knocked_off_bike 148@ {stayOnBike} 2
give_weapon_to_char 147@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 147@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 147@ {accuracy} 30
give_weapon_to_char 148@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 148@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 148@ {accuracy} 30
task_drive_by 148@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 148@ {handleOrTemplate} 46@
set_char_decision_maker 147@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_5283
task_car_mission 147@ {vehicle} 162@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_5283
157@ = 1

:FARLIE4_5290
if and
  locate_char_any_means_3d $scplayer {x} -1850.127 {y} 1096.324 {z} 44.2969 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  158@ == 0
goto_if_false @FARLIE4_5586
clear_area -1850.127 {y} 1096.324 {z} 44.2969 {radius} 10.0 {clearParticles} True
163@ = create_car 475 {x} -1850.127 {y} 1096.324 {z} 44.2969
168@ = add_blip_for_car 163@
set_car_heading 163@ {heading} 81.5282
set_car_driving_style 163@ {drivingStyle} DrivingMode.AvoidCars
149@ = create_char_inside_car 163@ {pedType} PedType.Mission1 {modelId} 121
150@ = create_char_as_passenger 163@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 149@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 149@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 149@ {accuracy} 30
give_weapon_to_char 150@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 150@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 150@ {accuracy} 30
task_drive_by 150@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 150@ {handleOrTemplate} 46@
set_char_decision_maker 149@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_5579
task_car_mission 149@ {vehicle} 163@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_5579
158@ = 1

:FARLIE4_5586
if and
  locate_char_any_means_3d $scplayer {x} -1740.369 {y} 1404.4611 {z} 6.1875 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  159@ == 0
goto_if_false @FARLIE4_5882
clear_area -1740.369 {y} 1404.4611 {z} 6.1875 {radius} 10.0 {clearParticles} True
164@ = create_car 543 {x} -1740.369 {y} 1404.4611 {z} 6.1875
169@ = add_blip_for_car 164@
set_car_heading 164@ {heading} 172.1585
set_car_driving_style 164@ {drivingStyle} DrivingMode.AvoidCars
151@ = create_char_inside_car 164@ {pedType} PedType.Mission1 {modelId} 121
152@ = create_char_as_passenger 164@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 151@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 151@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 151@ {accuracy} 30
give_weapon_to_char 152@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 152@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 152@ {accuracy} 30
task_drive_by 152@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 152@ {handleOrTemplate} 46@
set_char_decision_maker 151@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_5875
task_car_mission 151@ {vehicle} 164@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_5875
159@ = 1

:FARLIE4_5882
if and
  locate_char_any_means_3d $scplayer {x} -1892.652 {y} 745.0367 {z} 44.2969 {xRadius} 300.0 {yRadius} 300.0 {zRadius} 10.0 {drawSphere} False
  160@ == 0
goto_if_false @FARLIE4_6185
clear_area -1892.652 {y} 745.0367 {z} 44.2969 {radius} 10.0 {clearParticles} True
165@ = create_car 475 {x} -1892.652 {y} 745.0367 {z} 44.2969
170@ = add_blip_for_car 165@
set_car_heading 165@ {heading} 167.9494
set_car_driving_style 165@ {drivingStyle} DrivingMode.AvoidCars
set_car_mission 165@ {carMission} CarMission.BlockPlayerClose
153@ = create_char_inside_car 165@ {pedType} PedType.Mission1 {modelId} 121
154@ = create_char_as_passenger 165@ {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear
give_weapon_to_char 153@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 153@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 153@ {accuracy} 30
give_weapon_to_char 154@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 154@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 154@ {accuracy} 30
task_drive_by 153@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
set_char_decision_maker 154@ {handleOrTemplate} 46@
set_char_decision_maker 153@ {handleOrTemplate} 46@
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_6178
task_car_mission 154@ {vehicle} 165@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:FARLIE4_6178
160@ = 1

:FARLIE4_6185
if and
  locate_char_any_means_3d $scplayer {x} -2154.207 {y} 576.4759 {z} 34.1719 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  88@ == 0
goto_if_false @FARLIE4_6377
clear_area -1818.385 {y} -621.8912 {z} 15.312 {radius} 10.0 {clearParticles} True
183@ = create_char PedType.Mission1 {modelId} 121 {x} -2154.207 {y} 576.4759 {z} 34.1719
182@ = create_car 521 {x} -2154.3821 {y} 577.5017 {z} 34.1719
set_car_heading 182@ {heading} 114.1029
set_char_heading 183@ {heading} 211.0992
give_weapon_to_char 183@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 183@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 183@ {accuracy} 90
set_char_decision_maker 183@ {handleOrTemplate} 46@
task_stay_in_same_place 183@ {state} True
88@ = 1

:FARLIE4_6377
if and
  locate_char_any_means_3d $scplayer {x} -2245.675 {y} 303.3215 {z} 34.3203 {xRadius} 150.0 {yRadius} 150.0 {zRadius} 10.0 {drawSphere} False
  88@ == 0
goto_if_false @FARLIE4_6569
clear_area -2245.675 {y} 303.3215 {z} 34.3203 {radius} 10.0 {clearParticles} True
185@ = create_char PedType.Mission1 {modelId} 121 {x} -2245.675 {y} 303.3215 {z} 34.3203
184@ = create_car 521 {x} -2244.782 {y} 304.8253 {z} 34.3203
set_car_heading 184@ {heading} 191.9683
set_char_heading 185@ {heading} 165.1429
give_weapon_to_char 185@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 185@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 185@ {accuracy} 90
set_char_decision_maker 185@ {handleOrTemplate} 46@
task_stay_in_same_place 185@ {state} True
88@ = 1

:FARLIE4_6569
if 
  not is_char_dead 119@
goto_if_false @FARLIE4_6634
if 
  not is_char_in_any_car 119@
goto_if_false @FARLIE4_6627
task_die 119@
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_6627
remove_blip 129@

:FARLIE4_6627
goto @FARLIE4_6655

:FARLIE4_6634
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_6655
remove_blip 129@

:FARLIE4_6655
if 
  not is_char_dead 121@
goto_if_false @FARLIE4_6715
if 
  not is_char_in_any_car 121@
goto_if_false @FARLIE4_6708
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_6708
remove_blip 130@

:FARLIE4_6708
goto @FARLIE4_6736

:FARLIE4_6715
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_6736
remove_blip 130@

:FARLIE4_6736
if 
  not is_char_dead 123@
goto_if_false @FARLIE4_6796
if 
  not is_char_in_any_car 123@
goto_if_false @FARLIE4_6789
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_6789
remove_blip 131@

:FARLIE4_6789
goto @FARLIE4_6817

:FARLIE4_6796
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_6817
remove_blip 131@

:FARLIE4_6817
if 
  not is_char_dead 147@
goto_if_false @FARLIE4_6877
if 
  not is_char_in_any_car 147@
goto_if_false @FARLIE4_6870
if 
  does_blip_exist 167@
goto_if_false @FARLIE4_6870
remove_blip 167@

:FARLIE4_6870
goto @FARLIE4_6898

:FARLIE4_6877
if 
  does_blip_exist 167@
goto_if_false @FARLIE4_6898
remove_blip 167@

:FARLIE4_6898
if 
  not is_char_dead 149@
goto_if_false @FARLIE4_6958
if 
  not is_char_in_any_car 149@
goto_if_false @FARLIE4_6951
if 
  does_blip_exist 168@
goto_if_false @FARLIE4_6951
remove_blip 168@

:FARLIE4_6951
goto @FARLIE4_6979

:FARLIE4_6958
if 
  does_blip_exist 168@
goto_if_false @FARLIE4_6979
remove_blip 168@

:FARLIE4_6979
if 
  not is_char_dead 151@
goto_if_false @FARLIE4_7039
if 
  not is_char_in_any_car 151@
goto_if_false @FARLIE4_7032
if 
  does_blip_exist 169@
goto_if_false @FARLIE4_7032
remove_blip 169@

:FARLIE4_7032
goto @FARLIE4_7060

:FARLIE4_7039
if 
  does_blip_exist 169@
goto_if_false @FARLIE4_7060
remove_blip 169@

:FARLIE4_7060
if 
  not is_char_dead 153@
goto_if_false @FARLIE4_7120
if 
  not is_char_in_any_car 153@
goto_if_false @FARLIE4_7113
if 
  does_blip_exist 170@
goto_if_false @FARLIE4_7113
remove_blip 170@

:FARLIE4_7113
goto @FARLIE4_7141

:FARLIE4_7120
if 
  does_blip_exist 170@
goto_if_false @FARLIE4_7141
remove_blip 170@

:FARLIE4_7141
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_7507
36@ = 0

:FARLIE4_7164
if 
  not is_char_dead 119@(36@,10i)
goto_if_false @FARLIE4_7226
if 
  locate_char_any_means_char_2d $scplayer {target} 119@(36@,10i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7226
gosub @FARLIE4_8976

:FARLIE4_7226
if 
  not is_char_dead 99@(36@,10i)
goto_if_false @FARLIE4_7288
if 
  locate_char_any_means_char_2d $scplayer {target} 99@(36@,10i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7288
gosub @FARLIE4_8976

:FARLIE4_7288
36@ += 1
  36@ >= 4
goto_if_false @FARLIE4_7164
36@ = 0

:FARLIE4_7316
if 
  not is_char_dead 69@(36@,10i)
goto_if_false @FARLIE4_7378
if 
  locate_char_any_means_char_2d $scplayer {target} 69@(36@,10i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7378
gosub @FARLIE4_8976

:FARLIE4_7378
36@ += 1
  36@ >= 2
goto_if_false @FARLIE4_7316
if 
  not is_char_dead 44@
goto_if_false @FARLIE4_7453
if 
  locate_char_any_means_char_2d $scplayer {target} 44@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7453
gosub @FARLIE4_8976

:FARLIE4_7453
if 
  not is_char_dead 45@
goto_if_false @FARLIE4_7507
if 
  locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_7507
gosub @FARLIE4_8976

:FARLIE4_7507
if 
  not is_car_dead 34@
goto_if_false @FARLIE4_7837
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @FARLIE4_7837
if 
  locate_char_any_means_3d $scplayer {x} -1742.2729 {y} 1422.631 {z} 6.1842 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @FARLIE4_7837
set_player_control $player1 {state} False
gosub @FARLIE4_8286
if 
  not is_car_dead 109@
goto_if_false @FARLIE4_7625
delete_car 109@

:FARLIE4_7625
if 
  not is_car_dead 110@
goto_if_false @FARLIE4_7646
delete_car 110@

:FARLIE4_7646
if 
  not is_car_dead 111@
goto_if_false @FARLIE4_7667
delete_car 111@

:FARLIE4_7667
if 
  not is_car_dead 162@
goto_if_false @FARLIE4_7688
delete_car 162@

:FARLIE4_7688
if 
  not is_car_dead 163@
goto_if_false @FARLIE4_7709
delete_car 163@

:FARLIE4_7709
if 
  not is_car_dead 164@
goto_if_false @FARLIE4_7730
delete_car 164@

:FARLIE4_7730
if 
  not is_car_dead 165@
goto_if_false @FARLIE4_7751
delete_car 165@

:FARLIE4_7751
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_7797
warp_char_from_car_to_coord $scplayer {x} -1741.7061 {y} 1425.384 {z} 6.1842
set_char_heading $scplayer {heading} 179.2136

:FARLIE4_7797
clear_onscreen_counter $f4_car_damage
delete_car 34@
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
wait 2000
gosub @FARLIE4_8319
goto @FARLIE4_8013

:FARLIE4_7837
goto @FARLIE4_1806

:FARLIE4_7844
goto @FARLIE4_7851

:FARLIE4_7851
if 
  does_blip_exist 37@
goto_if_false @FARLIE4_7872
remove_blip 37@

:FARLIE4_7872
if 
  does_blip_exist 35@
goto_if_false @FARLIE4_7893
remove_blip 35@

:FARLIE4_7893
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_7914
remove_blip 129@

:FARLIE4_7914
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_7935
remove_blip 130@

:FARLIE4_7935
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_7956
remove_blip 131@

:FARLIE4_7956
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if and
  is_car_dead 34@
  141@ == 1
goto_if_false @FARLIE4_8011
print_now 'F4_F' {time} 4000 {flag} 1

:FARLIE4_8011
return 

:FARLIE4_8013
$flag_wuzi_mission_counter += 1
if 
  does_blip_exist 37@
goto_if_false @FARLIE4_8041
remove_blip 37@

:FARLIE4_8041
if 
  does_blip_exist 35@
goto_if_false @FARLIE4_8062
remove_blip 35@

:FARLIE4_8062
register_mission_passed 'FAR_4'
player_made_progress 1
play_mission_passed_tune 1
print_with_number_big 'M_PASSS' {num} 6000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 6000
award_player_mission_respect 15
clear_wanted_level $player1
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_8138
remove_blip 129@

:FARLIE4_8138
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_8159
remove_blip 130@

:FARLIE4_8159
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_8180
remove_blip 131@

:FARLIE4_8180
if 
  not is_car_dead 109@
goto_if_false @FARLIE4_8201
delete_car 109@

:FARLIE4_8201
if 
  not is_car_dead 110@
goto_if_false @FARLIE4_8222
delete_car 110@

:FARLIE4_8222
if 
  not is_car_dead 111@
goto_if_false @FARLIE4_8243
delete_car 111@

:FARLIE4_8243
gosub @FARLIE4_8319
return 

:FARLIE4_8252
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
return 

:FARLIE4_8267
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:FARLIE4_8286
do_fade 500 {direction} Fade.Out

:FARLIE4_8293
if 
  get_fading_status 
goto_if_false @FARLIE4_8317
wait 0
goto @FARLIE4_8293

:FARLIE4_8317
return 

:FARLIE4_8319
do_fade 500 {direction} Fade.In

:FARLIE4_8326
if 
  get_fading_status 
goto_if_false @FARLIE4_8350
wait 0
goto @FARLIE4_8326

:FARLIE4_8350
return 

:FARLIE4_8352
$onmission = 0
clear_onscreen_counter $f4_car_damage
switch_roads_back_to_original -1478.2939 {leftBottomY} -65.4014 {leftBottomZ} 0.0 {rightTopX} -1395.423 {rightTopY} 2.7054 {rightTopZ} 10.0
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed 475
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 410
mark_model_as_no_longer_needed 543
$timer_mobile_start = get_game_timer 
if 
  does_blip_exist 37@
goto_if_false @FARLIE4_8465
remove_blip 37@

:FARLIE4_8465
if 
  does_blip_exist 35@
goto_if_false @FARLIE4_8486
remove_blip 35@

:FARLIE4_8486
if 
  does_blip_exist 41@
goto_if_false @FARLIE4_8507
remove_blip 41@

:FARLIE4_8507
if 
  does_blip_exist 129@
goto_if_false @FARLIE4_8528
remove_blip 129@

:FARLIE4_8528
if 
  does_blip_exist 130@
goto_if_false @FARLIE4_8549
remove_blip 130@

:FARLIE4_8549
if 
  does_blip_exist 131@
goto_if_false @FARLIE4_8570
remove_blip 131@

:FARLIE4_8570
if 
  does_blip_exist 167@
goto_if_false @FARLIE4_8591
remove_blip 167@

:FARLIE4_8591
if 
  does_blip_exist 168@
goto_if_false @FARLIE4_8612
remove_blip 168@

:FARLIE4_8612
if 
  does_blip_exist 169@
goto_if_false @FARLIE4_8633
remove_blip 169@

:FARLIE4_8633
if 
  does_blip_exist 170@
goto_if_false @FARLIE4_8654
remove_blip 170@

:FARLIE4_8654
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8740
if and
  is_garage_open 'FDORSFE'
  not locate_char_any_means_3d $scplayer {x} -2161.6279 {y} 654.652 {z} 51.3706 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FARLIE4_8740
close_garage 'FDORSFE'

:FARLIE4_8740
mission_has_finished 
return 

:FARLIE4_8744
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @FARLIE4_8805
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8805
set_char_coordinates $scplayer {x} -1403.283 {y} -395.7443 {z} 11.0
set_char_heading $scplayer {heading} 343.9661

:FARLIE4_8805
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @FARLIE4_8849
if 
  is_char_in_any_car $scplayer
goto_if_false @FARLIE4_8849
186@ = store_car_char_is_in $scplayer
pop_car_boot 186@

:FARLIE4_8849
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @FARLIE4_8871
goto @FARLIE4_1046

:FARLIE4_8871
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @FARLIE4_8907
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8907
task_die $scplayer

:FARLIE4_8907
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @FARLIE4_8952
if 
  not is_char_dead $scplayer
goto_if_false @FARLIE4_8952
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:FARLIE4_8952
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @FARLIE4_8974
goto @FARLIE4_1195

:FARLIE4_8974
return 

:FARLIE4_8976
if 
  TIMERB > 15000
goto_if_false @FARLIE4_9512
if 
  not is_message_being_displayed 
goto_if_false @FARLIE4_9512
switch_start $f4_rnd {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @FARLIE4_9480 {caseNum1} 0 {caseLabel1} @FARLIE4_9136 {caseNum2} 1 {caseLabel2} @FARLIE4_9179 {caseNum3} 2 {caseLabel3} @FARLIE4_9222 {caseNum4} 3 {caseLabel4} @FARLIE4_9265 {caseNum5} 4 {caseLabel5} @FARLIE4_9308 {caseNum6} 5 {caseLabel6} @FARLIE4_9351 {caseNum7} 6 {caseLabel7} @FARLIE4_9394
switch_continued 7 {caseLabel1} @FARLIE4_9437 {caseNum2} -1 {caseLabel2} @FARLIE4_9480 {caseNum3} -1 {caseLabel3} @FARLIE4_9480 {caseNum4} -1 {caseLabel4} @FARLIE4_9480 {caseNum5} -1 {caseLabel5} @FARLIE4_9480 {caseNum6} -1 {caseLabel6} @FARLIE4_9480 {caseNum7} -1 {caseLabel7} @FARLIE4_9480 {caseNum8} -1 {caseLabel8} @FARLIE4_9480 {caseNum9} -1 {caseLabel9} @FARLIE4_9480

:FARLIE4_9136
set_lvar_text_label 177@s = 'FAR4_AA'
set_lvar_int_to_constant 139@ = 15400
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9179
set_lvar_text_label 177@s = 'FAR4_AB'
set_lvar_int_to_constant 139@ = 15401
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9222
set_lvar_text_label 177@s = 'FAR4_AC'
set_lvar_int_to_constant 139@ = 15402
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9265
set_lvar_text_label 177@s = 'FAR4_AD'
set_lvar_int_to_constant 139@ = 15403
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9308
set_lvar_text_label 177@s = 'FAR4_AE'
set_lvar_int_to_constant 139@ = 15404
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9351
set_lvar_text_label 177@s = 'FAR4_AG'
set_lvar_int_to_constant 139@ = 15406
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9394
set_lvar_text_label 177@s = 'FAR4_AH'
set_lvar_int_to_constant 139@ = 15407
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9437
set_lvar_text_label 177@s = 'FAR4_AJ'
set_lvar_int_to_constant 139@ = 15408
gosub @FARLIE4_9514
TIMERB = 0
goto @FARLIE4_9480

:FARLIE4_9480
$f4_rnd += 1
if 
  $f4_rnd == 8
goto_if_false @FARLIE4_9512
$f4_rnd = 0

:FARLIE4_9512
return 

:FARLIE4_9514
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 139@
140@ = 0
return 

:FARLIE4_9534
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  140@ == 0
goto_if_false @FARLIE4_9577
play_mission_audio MissionAudioSlot.Slot1
print_now 177@s {time} 10000 {flag} 1
140@ = 1

:FARLIE4_9577
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  140@ == 1
goto_if_false @FARLIE4_9615
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 177@s
140@ = 2

:FARLIE4_9615
return 

//-------------Mission 55---------------
// Originally: Lure

:DRIV6
script_name 'DRIV6'
gosub @DRIV6_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV6_38
gosub @DRIV6_12763

:DRIV6_38
gosub @DRIV6_12845
terminate_this_script 

:DRIV6_47
register_mission_given 
load_mission_text 'FARLIE5'
$onmission = 1
wait 0
35@ = -1957.67
36@ = -2443.7
37@ = 30.83
38@ = -1571.4
39@ = -2742.0901
40@ = 47.57
49@ = 0
50@ = 14
104@ = 0

:DRIV6_152
if 
  is_int_lvar_greater_than_int_lvar 50@ > 104@
goto_if_false @DRIV6_273
140@(104@,14i) = 0
154@(104@,14i) = 0
168@(104@,14i) = 0
182@(104@,14i) = 0
196@(104@,14i) = 0
210@(104@,14i) = 0
224@(104@,14i) = 0
238@(104@,14i) = 0
104@ += 1
goto @DRIV6_152

:DRIV6_273
137@ = 0
138@ = 0
139@ = 0
$d6_player_in_ravine = 0
$d6_player_in_tunnel = 0
253@ = 0
$d6_player_reached_first_creation_pt = 0
$d6_player_reached_second_creation_pt = 0
254@ = 0
255@ = 0
$d6_player_reached_fifth_creation_pt = 0
$d6_player_reached_sixth_creation_pt = 0
98@ = 0
252@ = 0
256@ = 0
257@ = 0
260@ = 0
261@ = 0
131@ = 0
132@ = 0
134@ = 0
136@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DRIV6_442
if 
  get_fading_status 
goto_if_false @DRIV6_466
wait 0
goto @DRIV6_442

:DRIV6_466
set_area_visible 1
load_cutscene 'FARL_5A'

:DRIV6_481
if 
  not has_cutscene_loaded 
goto_if_false @DRIV6_505
wait 0
goto @DRIV6_481

:DRIV6_505
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRIV6_514
if 
  not has_cutscene_finished 
goto_if_false @DRIV6_538
wait 0
goto @DRIV6_514

:DRIV6_538
do_fade 0 {direction} Fade.Out

:DRIV6_544
if 
  get_fading_status 
goto_if_false @DRIV6_568
wait 0
goto @DRIV6_544

:DRIV6_568
clear_cutscene 
set_player_control $player1 {state} False
set_area_visible 0
if 
  136@ == 1
goto_if_false @DRIV6_727
34@ = create_car 489 {x} 0.0 {y} 0.0 {z} -100.0
104@ = 0

:DRIV6_629
if 
  is_int_lvar_greater_than_int_lvar 50@ > 104@
goto_if_false @DRIV6_727
create_car 468 {x} 94@ {y} 95@ {z} -100.0 {var_handle} 52@(104@,14i)
create_char_inside_car 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 123 {var_handle} 66@(104@,14i)
create_char_as_passenger 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear {var_handle} 80@(104@,14i)
104@ += 1
goto @DRIV6_629

:DRIV6_727
request_model 468
request_model 123
request_model 122
request_model 353

:DRIV6_745
if or
  not has_model_loaded 468
  not has_model_loaded 123
  not has_model_loaded 122
  not has_model_loaded 353
goto_if_false @DRIV6_785
wait 0
goto @DRIV6_745

:DRIV6_785
switch_car_generator $5280 {amount} 0
switch_car_generator $5281 {amount} 0
switch_car_generator $5282 {amount} 0
set_char_coordinates $scplayer {x} -2154.2 {y} 645.31 {z} 51.39
set_char_heading $scplayer {heading} 270.0
gosub @DRIV6_4442
262@ = add_blip_for_car 34@
set_blip_as_friendly 262@ {state} True
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'DRV6_8' {time} 10000 {flag} 0

:DRIV6_905
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DRIV6_931
goto @DRIV6_12781

:DRIV6_931
if 
  137@ <> 1
goto_if_false @DRIV6_1088
if 
  not is_car_dead 34@
goto_if_false @DRIV6_1088
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DRIV6_1088
remove_blip 262@
137@ = 1
263@ = add_blip_for_coord -1963.84 {y} -2441.49 {z} 30.78
print_now 'DRV6_19' {time} 10000 {flag} 0
print 'DRV6_17' {time} 7000 {flag} 0
if 
  $d6_trip_skips_available == 1
goto_if_false @DRIV6_1088
set_up_skip -1990.65 {y} -2428.6499 {z} 30.77 {heading} 225.0

:DRIV6_1088
if and
  137@ == 1
  139@ <> 1
goto_if_false @DRIV6_1498
if 
  not is_car_dead 34@
goto_if_false @DRIV6_1498
if and
  138@ <> 1
  locate_char_any_means_2d $scplayer {x} -1990.65 {y} -2428.6499 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @DRIV6_1192
clear_this_print 'DRV6_19'
138@ = 1

:DRIV6_1192
if and
  $d6_trip_skips_available <> 1
  locate_char_any_means_2d $scplayer {x} -1963.84 {y} -2441.49 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @DRIV6_1244
$d6_trip_skips_available = 1

:DRIV6_1244
if 
  locate_char_in_car_3d $scplayer {x} -1963.84 {y} -2441.49 {z} 30.78 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @DRIV6_1498
set_player_control $player1 {state} False
clear_skip 
remove_blip 263@
gosub @DRIV6_4788
264@ = add_blip_for_coord -1867.14 {y} -2442.3899 {z} 31.24
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -1867.14 {y} -2442.3899 {z} 31.24 {pointX} -1178.3199 {pointY} -2638.8501 {pointZ} 10.8 {radius} 4.0
display_onscreen_counter_with_string $d6_door_health {display} CounterDisplay.Bar {text} 'DRV6_18'
100@ = 0
$d6_door_health = 100
set_car_health 34@ {health} 9000
print_now 'DRV6_2' {time} 10000 {flag} 0
print 'DRV6_17' {time} 7000 {flag} 0
print 'DRV6_4' {time} 10000 {flag} 0
print 'DRV6_15' {time} 10000 {flag} 0
139@ = 1
TIMERB = 0

:DRIV6_1498
if 
  139@ == 1
goto_if_false @DRIV6_3767
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @DRIV6_1539
clear_wanted_level $player1

:DRIV6_1539
if 
  not is_car_dead 34@
goto_if_false @DRIV6_3767
if and
  261@ <> 1
  TIMERB > 2000
goto_if_false @DRIV6_1681
if and
  not is_char_dead 80@
  not is_char_dead 81@
goto_if_false @DRIV6_1681
task_drive_by 80@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
task_drive_by 81@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
261@ = 1

:DRIV6_1681
if 
  is_car_upsidedown 34@
goto_if_false @DRIV6_1744
if 
  252@ == 1
goto_if_false @DRIV6_1737
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
252@ = 0

:DRIV6_1737
goto @DRIV6_1784

:DRIV6_1744
if 
  252@ <> 1
goto_if_false @DRIV6_1784
set_car_proofs 34@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
252@ = 1

:DRIV6_1784
gosub @DRIV6_7450
if 
  $d6_player_reached_second_creation_pt <> 1
goto_if_false @DRIV6_1945
if 
  $d6_player_in_ravine <> 1
goto_if_false @DRIV6_1886
if 
  locate_car_2d 34@ {x} -1181.9301 {y} -2642.3301 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DRIV6_1879
gosub @DRIV6_8721
$d6_player_in_ravine = 1

:DRIV6_1879
goto @DRIV6_1938

:DRIV6_1886
if 
  not locate_car_2d 34@ {x} -1181.9301 {y} -2642.3301 {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DRIV6_1938
gosub @DRIV6_8888
$d6_player_in_ravine = 0

:DRIV6_1938
goto @DRIV6_1970

:DRIV6_1945
if 
  $d6_player_in_ravine == 1
goto_if_false @DRIV6_1970
$d6_player_in_ravine = 0

:DRIV6_1970
if 
  $d6_player_reached_fifth_creation_pt == 1
goto_if_false @DRIV6_2124
if 
  $d6_player_in_tunnel <> 1
goto_if_false @DRIV6_2065
if 
  locate_car_2d 34@ {x} -519.74 {y} -2782.1101 {xRadius} 214.0 {yRadius} 214.0 {drawSphere} False
goto_if_false @DRIV6_2058
gosub @DRIV6_8721
$d6_player_in_tunnel = 1

:DRIV6_2058
goto @DRIV6_2117

:DRIV6_2065
if 
  not locate_car_2d 34@ {x} -519.74 {y} -2782.1101 {xRadius} 214.0 {yRadius} 214.0 {drawSphere} False
goto_if_false @DRIV6_2117
gosub @DRIV6_8888
$d6_player_in_tunnel = 0

:DRIV6_2117
goto @DRIV6_2149

:DRIV6_2124
if 
  $d6_player_in_tunnel == 1
goto_if_false @DRIV6_2149
$d6_player_in_tunnel = 0

:DRIV6_2149
if 
  253@ <> 1
goto_if_false @DRIV6_2301
if 
  locate_car_3d 34@ {x} -1867.14 {y} -2442.3899 {z} 31.24 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2301
remove_blip 264@
delete_checkpoint 41@
253@ = 1
264@ = add_blip_for_coord -1178.3199 {y} -2638.8501 {z} 10.8
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -1178.3199 {y} -2638.8501 {z} 10.8 {pointX} -654.95 {pointY} -2469.3501 {pointZ} 33.3 {radius} 4.0

:DRIV6_2301
if and
  253@ == 1
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_2467
if 
  locate_car_3d 34@ {x} -1178.3199 {y} -2638.8501 {z} 10.8 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2467
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_reached_first_creation_pt = 1
264@ = add_blip_for_coord -654.95 {y} -2469.3501 {z} 33.3
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -654.95 {y} -2469.3501 {z} 33.3 {pointX} -309.54 {pointY} -2248.8101 {pointZ} 29.59 {radius} 4.0

:DRIV6_2467
if and
  $d6_player_reached_first_creation_pt == 1
  $d6_player_reached_second_creation_pt <> 1
goto_if_false @DRIV6_2633
if 
  locate_car_3d 34@ {x} -654.95 {y} -2469.3501 {z} 33.3 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2633
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_reached_second_creation_pt = 1
264@ = add_blip_for_coord -309.54 {y} -2248.8101 {z} 29.59
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -309.54 {y} -2248.8101 {z} 29.59 {pointX} -165.7 {pointY} -2421.71 {pointZ} 35.1 {radius} 4.0

:DRIV6_2633
if and
  $d6_player_reached_second_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_2799
if 
  locate_car_3d 34@ {x} -309.54 {y} -2248.8101 {z} 29.59 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2799
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
254@ = 1
264@ = add_blip_for_coord -165.7 {y} -2421.71 {z} 35.1
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -165.7 {y} -2421.71 {z} 35.1 {pointX} -191.26 {pointY} -2822.52 {pointZ} 42.09 {radius} 4.0

:DRIV6_2799
if and
  254@ == 1
  255@ <> 1
goto_if_false @DRIV6_2965
if 
  locate_car_3d 34@ {x} -165.7 {y} -2421.71 {z} 35.1 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_2965
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
255@ = 1
264@ = add_blip_for_coord -191.26 {y} -2822.52 {z} 42.09
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -191.26 {y} -2822.52 {z} 42.09 {pointX} -946.91 {pointY} -2844.8401 {pointZ} 67.36 {radius} 4.0

:DRIV6_2965
if and
  255@ == 1
  $d6_player_reached_fifth_creation_pt <> 1
goto_if_false @DRIV6_3125
if 
  locate_car_3d 34@ {x} -191.26 {y} -2822.52 {z} 42.09 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_3125
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_reached_fifth_creation_pt = 1
264@ = add_blip_for_coord -946.91 {y} -2844.8401 {z} 67.36
change_blip_colour 264@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.TubeArrow {x} -946.91 {y} -2844.8401 {z} 67.36 {pointX} 38@ {pointY} 39@ {pointZ} 40@ {radius} 4.0

:DRIV6_3125
if and
  $d6_player_reached_fifth_creation_pt == 1
  $d6_player_reached_sixth_creation_pt <> 1
goto_if_false @DRIV6_3279
if 
  locate_car_3d 34@ {x} -946.91 {y} -2844.8401 {z} 67.36 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV6_3279
remove_blip 264@
delete_checkpoint 41@
gosub @DRIV6_5926
$d6_player_reached_sixth_creation_pt = 1
265@ = add_blip_for_coord 38@ {y} 39@ {z} 40@
change_blip_colour 265@ {color} BlipColor.Red
41@ = create_checkpoint CheckpointType.Tube {x} 38@ {y} 39@ {z} 40@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 4.0

:DRIV6_3279
if 
  100 > 100@
goto_if_false @DRIV6_3350
99@ = get_car_health 34@
set_lvar_int_to_lvar_int 100@ = 99@
100@ -= 3000
100@ /= 60
set_var_int_to_lvar_int $d6_door_health = 100@
100@ *= -1
100@ += 100

:DRIV6_3350
if 
  45 >= 100@
goto_if_false @DRIV6_3439
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRIV6_3411
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 0.0
open_car_door_a_bit 34@ {door} CarDoor.RightFrontDoor {value} 0.0

:DRIV6_3411
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.Intact {angle} 0.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.Intact {angle} 0.0

:DRIV6_3439
if and
  100@ > 45
  80 >= 100@
goto_if_false @DRIV6_3535
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @DRIV6_3507
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 0.0
open_car_door_a_bit 34@ {door} CarDoor.RightFrontDoor {value} 0.0

:DRIV6_3507
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.Bashed {angle} 0.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.Bashed {angle} 0.0

:DRIV6_3535
if and
  100@ > 80
  100 > 100@
goto_if_false @DRIV6_3588
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.BashedAndSwingingFree {angle} -1.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.BashedAndSwingingFree {angle} -1.0

:DRIV6_3588
if 
  100@ >= 100
goto_if_false @DRIV6_3634
control_car_door 34@ {door} CarDoor.LeftFrontDoor {state} CarDoorState.Missing {angle} -1.0
control_car_door 34@ {door} CarDoor.RightFrontDoor {state} CarDoorState.Missing {angle} -1.0

:DRIV6_3634
if and
  100@ > 80
  256@ <> 1
goto_if_false @DRIV6_3682
print_now 'DRV6_6' {time} 7000 {flag} 0
256@ = 1

:DRIV6_3682
if and
  100@ >= 100
  257@ <> 1
goto_if_false @DRIV6_3742
clear_onscreen_counter $d6_door_health
print_now 'DRV6_16' {time} 5000 {flag} 0
TIMERA = 0
257@ = 1

:DRIV6_3742
if 
  257@ == 1
goto_if_false @DRIV6_3767
gosub @DRIV6_9159

:DRIV6_3767
if 
  137@ <> 1
goto_if_false @DRIV6_3826
if 
  is_car_dead 34@
goto_if_false @DRIV6_3826
clear_prints 
print_now 'DRV6_11' {time} 5000 {flag} 0
goto @DRIV6_12763

:DRIV6_3826
if 
  137@ == 1
goto_if_false @DRIV6_4181
if 
  not is_char_in_any_car $scplayer
goto_if_false @DRIV6_4181
if 
  139@ == 1
goto_if_false @DRIV6_4156
gosub @DRIV6_9768
266@ = 0
104@ = 0

:DRIV6_3899
if and
  is_int_lvar_greater_than_int_lvar 49@ > 104@
  266@ <> 1
goto_if_false @DRIV6_4073
if 
  not is_char_dead 66@(104@,14i)
goto_if_false @DRIV6_3992
if 
  locate_char_any_means_char_3d $scplayer {target} 66@(104@,14i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV6_3992
266@ = 1

:DRIV6_3992
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_4059
if 
  locate_char_any_means_char_3d $scplayer {target} 80@(104@,14i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV6_4059
266@ = 1

:DRIV6_4059
104@ += 1
goto @DRIV6_3899

:DRIV6_4073
if 
  266@ == 1
goto_if_false @DRIV6_4149
135@ = 0
gosub @DRIV6_12213
132@ = 1

:DRIV6_4112
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_4149
wait 0
gosub @DRIV6_12532
goto @DRIV6_4112

:DRIV6_4149
gosub @DRIV6_9452

:DRIV6_4156
clear_prints 
print_now 'DRV6_7' {time} 5000 {flag} 0
goto @DRIV6_12763

:DRIV6_4181
if 
  139@ == 1
goto_if_false @DRIV6_4435
if and
  257@ == 1
  TIMERA > 10000
goto_if_false @DRIV6_4344
135@ = 0
gosub @DRIV6_12213

:DRIV6_4239
if 
  1 > 132@
goto_if_false @DRIV6_4275
wait 0
gosub @DRIV6_12532
goto @DRIV6_4239

:DRIV6_4275
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_4312
wait 0
gosub @DRIV6_12532
goto @DRIV6_4275

:DRIV6_4312
gosub @DRIV6_9452
clear_prints 
print_now 'DRV6_7' {time} 5000 {flag} 0
goto @DRIV6_12763

:DRIV6_4344
if 
  $d6_player_reached_sixth_creation_pt == 1
goto_if_false @DRIV6_4435
if 
  locate_char_in_car_3d $scplayer {x} 38@ {y} 39@ {z} 40@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @DRIV6_4435
set_player_control $player1 {state} False
remove_blip 265@
delete_checkpoint 41@
gosub @DRIV6_10195
goto @DRIV6_12781

:DRIV6_4435
goto @DRIV6_905

:DRIV6_4442
request_model 489

:DRIV6_4447
if 
  not has_model_loaded 489
goto_if_false @DRIV6_4474
wait 0
goto @DRIV6_4447

:DRIV6_4474
clear_area -2149.95 {y} 644.31 {z} 52.35 {radius} 100.0 {clearParticles} False
34@ = create_car 489 {x} -2149.95 {y} 644.31 {z} 52.35
set_car_heading 34@ {heading} 180.0
set_car_strong 34@ {state} True
set_can_burst_car_tyres 34@ {state} False
set_car_health 34@ {health} 9000
set_car_can_be_visibly_damaged 34@ {state} False
return 

:DRIV6_4562
52@ = create_car 468 {x} -2015.66 {y} -2408.8201 {z} 30.28
set_car_heading 52@ {heading} 229.35
53@ = create_car 468 {x} -2017.0699 {y} -2410.3701 {z} 30.3
set_car_heading 53@ {heading} 225.81
104@ = 0

:DRIV6_4635
if 
  2 > 104@
goto_if_false @DRIV6_4779
create_char_inside_car 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 123 {var_handle} 66@(104@,14i)
create_char_as_passenger 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear {var_handle} 80@(104@,14i)
give_weapon_to_char 80@(104@,14i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_car_only_damaged_by_player 52@(104@,14i) {state} True
set_car_traction 52@(104@,14i) {traction} 2.0
set_char_can_be_knocked_off_bike 66@(104@,14i) {stayOnBike} 2
set_char_can_be_knocked_off_bike 80@(104@,14i) {stayOnBike} 2
49@ += 1
104@ += 1
goto @DRIV6_4635

:DRIV6_4779
98@ += 1
return 

:DRIV6_4788
do_fade 1000 {direction} Fade.Out

:DRIV6_4795
if 
  get_fading_status 
goto_if_false @DRIV6_4819
wait 0
goto @DRIV6_4795

:DRIV6_4819
clear_area 35@ {y} 36@ {z} 37@ {radius} 300.0 {clearParticles} False
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 34@
goto_if_false @DRIV6_4890
set_car_coordinates 34@ {x} 35@ {y} 36@ {z} 37@
set_car_heading 34@ {heading} 241.85

:DRIV6_4890
gosub @DRIV6_4562
set_fixed_camera_position -1955.92 {y} -2447.6899 {z} 30.78 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1962.83 {y} -2441.79 {z} 30.44 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DRIV6_4955
if 
  get_fading_status 
goto_if_false @DRIV6_4979
wait 0
goto @DRIV6_4955

:DRIV6_4979
259@ = 1
skip_cutscene_start_internal @DRIV6_5561
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5119
if and
  not is_char_dead 66@
  not is_car_dead 52@
goto_if_false @DRIV6_5064
task_car_drive_to_coord 66@ {vehicle} 52@ {x} -1977.97 {y} -2435.05 {z} 30.3 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5064
if and
  not is_char_dead 67@
  not is_car_dead 53@
goto_if_false @DRIV6_5119
task_car_drive_to_coord 67@ {vehicle} 53@ {x} -1979.45 {y} -2437.47 {z} 30.3 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5119
TIMERB = 0

:DRIV6_5126
if 
  2500 > TIMERB
goto_if_false @DRIV6_5156
wait 0
goto @DRIV6_5126

:DRIV6_5156
if 
  not is_car_dead 52@
goto_if_false @DRIV6_5223
set_fixed_camera_position -1989.91 {y} -2435.3301 {z} 30.68 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1987.22 {y} -2436.0701 {z} 30.82 {switchStyle} SwitchType.JumpCut

:DRIV6_5223
if 
  not is_car_dead 52@
goto_if_false @DRIV6_5269
set_car_coordinates 52@ {x} -1985.6 {y} -2435.1399 {z} 30.3
set_car_heading 52@ {heading} 254.67

:DRIV6_5269
if 
  not is_car_dead 53@
goto_if_false @DRIV6_5315
set_car_coordinates 53@ {x} -1986.37 {y} -2437.8 {z} 30.3
set_car_heading 53@ {heading} 250.82

:DRIV6_5315
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5439
if and
  not is_char_dead 66@
  not is_char_dead 80@
  not is_car_dead 52@
goto_if_false @DRIV6_5385
set_car_straight_line_distance 52@ {distance} 250
task_car_mission 66@ {vehicle} 52@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 10.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5385
if and
  not is_char_dead 67@
  not is_char_dead 81@
  not is_car_dead 53@
goto_if_false @DRIV6_5439
set_car_straight_line_distance 53@ {distance} 250
task_car_mission 67@ {vehicle} 53@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 10.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5439
if and
  260@ <> 1
  not is_char_dead 66@
  not is_car_dead 52@
  not is_car_dead 34@
goto_if_false @DRIV6_5554
if 
  is_char_in_car 66@ {vehicle} 52@
goto_if_false @DRIV6_5536
if 
  locate_char_in_car_car_2d 66@ {handle} 34@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DRIV6_5529
260@ = 1

:DRIV6_5529
goto @DRIV6_5543

:DRIV6_5536
260@ = 1

:DRIV6_5543
wait 0
goto @DRIV6_5439

:DRIV6_5554
259@ = 0

:DRIV6_5561
skip_cutscene_end 
if 
  259@ == 1
goto_if_false @DRIV6_5755
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5755
if and
  not is_char_dead 66@
  not is_char_dead 80@
  not is_car_dead 52@
goto_if_false @DRIV6_5676
94@, 95@, 96@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.0 {yOffset} -14.0 {zOffset} 0.0
96@ = -100.0
set_car_coordinates 52@ {x} 94@ {y} 95@ {z} 96@

:DRIV6_5676
if and
  not is_char_dead 67@
  not is_char_dead 81@
  not is_car_dead 53@
goto_if_false @DRIV6_5755
94@, 95@, 96@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} -14.0 {zOffset} 0.0
96@ = -100.0
set_car_coordinates 53@ {x} 94@ {y} 95@ {z} 96@

:DRIV6_5755
if 
  not is_car_dead 52@
goto_if_false @DRIV6_5778
set_car_straight_line_distance 52@ {distance} 20

:DRIV6_5778
if 
  not is_car_dead 53@
goto_if_false @DRIV6_5801
set_car_straight_line_distance 53@ {distance} 20

:DRIV6_5801
if 
  not is_car_dead 34@
goto_if_false @DRIV6_5909
if and
  not is_char_dead 66@
  not is_char_dead 80@
  not is_car_dead 52@
goto_if_false @DRIV6_5863
task_car_mission 66@ {vehicle} 52@ {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5863
if and
  not is_char_dead 67@
  not is_char_dead 81@
  not is_car_dead 53@
goto_if_false @DRIV6_5909
task_car_mission 67@ {vehicle} 53@ {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_5909
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:DRIV6_5926
if 
  not is_car_dead 34@
goto_if_false @DRIV6_7448
51@ = 0
104@ = 0

:DRIV6_5956
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_6085
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_6071
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 52@(104@,14i) {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DRIV6_6044
51@ += 1
goto @DRIV6_6071

:DRIV6_6044
delete_car 52@(104@,14i)
delete_char 66@(104@,14i)
delete_char 80@(104@,14i)

:DRIV6_6071
104@ += 1
goto @DRIV6_5956

:DRIV6_6085
if 
  51@ <= 2
goto_if_false @DRIV6_7448
set_lvar_int_to_lvar_int 104@ = 98@
104@ *= 2
set_lvar_int_to_lvar_int 105@ = 104@
105@ += 2
106@ = 0

:DRIV6_6140
if 
  is_int_lvar_greater_than_int_lvar 105@ > 104@
goto_if_false @DRIV6_7441
if and
  253@ == 1
  $d6_player_reached_first_creation_pt <> 1
goto_if_false @DRIV6_6300
if 
  106@ == 0
goto_if_false @DRIV6_6242
94@ = -1342.9399
95@ = -2624.45
96@ = 19.58
97@ = 261.04

:DRIV6_6242
if 
  106@ == 1
goto_if_false @DRIV6_6300
94@ = -1344.02
95@ = -2628.0701
96@ = 19.82
97@ = 260.5

:DRIV6_6300
if and
  $d6_player_reached_first_creation_pt == 1
  $d6_player_reached_second_creation_pt <> 1
goto_if_false @DRIV6_6441
if 
  106@ == 0
goto_if_false @DRIV6_6383
94@ = -708.68
95@ = -2601.46
96@ = 69.83
97@ = 338.56

:DRIV6_6383
if 
  106@ == 1
goto_if_false @DRIV6_6441
94@ = -704.89
95@ = -2602.9199
96@ = 69.9
97@ = 340.64

:DRIV6_6441
if and
  $d6_player_reached_second_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_6582
if 
  106@ == 0
goto_if_false @DRIV6_6524
94@ = -420.89
95@ = -2258.8701
96@ = 47.37
97@ = 278.1

:DRIV6_6524
if 
  106@ == 1
goto_if_false @DRIV6_6582
94@ = -420.64
95@ = -2261.3899
96@ = 47.79
97@ = 279.7

:DRIV6_6582
if and
  254@ == 1
  255@ <> 1
goto_if_false @DRIV6_6723
if 
  106@ == 0
goto_if_false @DRIV6_6665
94@ = -260.22
95@ = -2323.1201
96@ = 30.42
97@ = 222.63

:DRIV6_6665
if 
  106@ == 1
goto_if_false @DRIV6_6723
94@ = -262.81
95@ = -2326.8
96@ = 30.43
97@ = 220.93

:DRIV6_6723
if and
  255@ == 1
  $d6_player_reached_fifth_creation_pt <> 1
goto_if_false @DRIV6_6864
if 
  106@ == 0
goto_if_false @DRIV6_6806
94@ = -179.45
95@ = -2708.9099
96@ = 35.82
97@ = 177.36

:DRIV6_6806
if 
  106@ == 1
goto_if_false @DRIV6_6864
94@ = -182.07
95@ = -2709.0601
96@ = 35.77
97@ = 176.56

:DRIV6_6864
if and
  $d6_player_reached_fifth_creation_pt == 1
  $d6_player_reached_sixth_creation_pt <> 1
goto_if_false @DRIV6_7005
if 
  106@ == 0
goto_if_false @DRIV6_6947
94@ = -846.18
95@ = -2809.6001
96@ = 70.32
97@ = 112.41

:DRIV6_6947
if 
  106@ == 1
goto_if_false @DRIV6_7005
94@ = -848.6
95@ = -2806.3
96@ = 70.29
97@ = 111.76

:DRIV6_7005
clear_area 94@ {y} 95@ {z} 96@ {radius} 5.0 {clearParticles} True
create_car 468 {x} 94@ {y} 95@ {z} 96@ {var_handle} 52@(104@,14i)
create_char_inside_car 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 123 {var_handle} 66@(104@,14i)
create_char_as_passenger 52@(104@,14i) {pedType} PedType.Mission1 {modelId} 122 {seat} SeatId.BikeRear {var_handle} 80@(104@,14i)
set_car_heading 52@(104@,14i) {heading} 97@
set_car_only_damaged_by_player 52@(104@,14i) {state} True
set_car_traction 52@(104@,14i) {traction} 2.0
set_char_can_be_knocked_off_bike 66@(104@,14i) {stayOnBike} 2
set_char_can_be_knocked_off_bike 80@(104@,14i) {stayOnBike} 2
if or
  $d6_player_in_ravine == 1
  $d6_player_in_tunnel == 1
goto_if_false @DRIV6_7205
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRear {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
goto @DRIV6_7297

:DRIV6_7205
if 
  106@ == 0
goto_if_false @DRIV6_7251
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_7251
if 
  106@ == 1
goto_if_false @DRIV6_7297
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_7297
give_weapon_to_char 80@(104@,14i) {weaponType} WeaponType.Mp5 {ammo} 99999
task_drive_by 80@(104@,14i) {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
if and
  $d6_player_reached_second_creation_pt == 1
  254@ <> 1
goto_if_false @DRIV6_7399
set_car_forward_speed 52@(104@,14i) {forwardSpeed} 30.0
goto @DRIV6_7413

:DRIV6_7399
set_car_forward_speed 52@(104@,14i) {forwardSpeed} 70.0

:DRIV6_7413
49@ += 1
104@ += 1
106@ += 1
goto @DRIV6_6140

:DRIV6_7441
98@ += 1

:DRIV6_7448
return 

:DRIV6_7450
if 
  not is_car_dead 34@
goto_if_false @DRIV6_8719
104@ = 0

:DRIV6_7473
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_8719
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_8705
if and
  is_char_dead 66@(104@,14i)
  168@(104@,14i) <> 1
goto_if_false @DRIV6_7554
168@(104@,14i) = 1

:DRIV6_7554
if and
  is_char_dead 80@(104@,14i)
  182@(104@,14i) <> 1
goto_if_false @DRIV6_7596
182@(104@,14i) = 1

:DRIV6_7596
if and
  not is_char_dead 66@(104@,14i)
  182@(104@,14i) == 1
  196@(104@,14i) <> 1
goto_if_false @DRIV6_7688
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
224@(104@,14i) = 1
196@(104@,14i) = 1

:DRIV6_7688
if and
  not is_char_dead 80@(104@,14i)
  168@(104@,14i) == 1
  210@(104@,14i) <> 1
goto_if_false @DRIV6_7850
if 
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_7839
94@, 95@, 96@ = get_car_coordinates 52@(104@,14i)
warp_char_from_car_to_coord 80@(104@,14i) {x} 94@ {y} 95@ {z} -10.0
warp_char_into_car 80@(104@,14i) {vehicle} 52@(104@,14i)
task_car_mission 80@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_7839
210@(104@,14i) = 1

:DRIV6_7850
if and
  not is_char_dead 66@(104@,14i)
  196@(104@,14i) == 1
goto_if_false @DRIV6_8009
if 
  not is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_7976
if 
  224@(104@,14i) == 0
goto_if_false @DRIV6_7969
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
224@(104@,14i) = 1

:DRIV6_7969
goto @DRIV6_8009

:DRIV6_7976
if 
  224@(104@,14i) == 1
goto_if_false @DRIV6_8009
224@(104@,14i) = 0

:DRIV6_8009
if and
  not is_char_dead 80@(104@,14i)
  210@(104@,14i) == 1
goto_if_false @DRIV6_8168
if 
  not is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_8135
if 
  238@(104@,14i) == 0
goto_if_false @DRIV6_8128
task_car_mission 80@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
238@(104@,14i) = 1

:DRIV6_8128
goto @DRIV6_8168

:DRIV6_8135
if 
  238@(104@,14i) == 1
goto_if_false @DRIV6_8168
238@(104@,14i) = 0

:DRIV6_8168
if and
  not is_char_dead 66@(104@,14i)
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_8665
if and
  not is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  140@(104@,14i) == 0
goto_if_false @DRIV6_8265
task_enter_car_as_driver 66@(104@,14i) {vehicle} 52@(104@,14i) {time} 10000
140@(104@,14i) = 1

:DRIV6_8265
if and
  not is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
  154@(104@,14i) == 0
goto_if_false @DRIV6_8335
task_enter_car_as_passenger 80@(104@,14i) {vehicle} 52@(104@,14i) {time} 10000 {seat} SeatId.BikeRear
154@(104@,14i) = 1

:DRIV6_8335
if and
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_8665
if or
  140@(104@,14i) == 1
  154@(104@,14i) == 1
goto_if_false @DRIV6_8665
if or
  $d6_player_in_ravine == 1
  $d6_player_in_tunnel == 1
goto_if_false @DRIV6_8471
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRear {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars
goto @DRIV6_8603

:DRIV6_8471
set_lvar_int_to_lvar_int 106@ = 104@

:DRIV6_8479
if 
  106@ >= 2
goto_if_false @DRIV6_8511
106@ -= 2
goto @DRIV6_8479

:DRIV6_8511
if 
  106@ == 0
goto_if_false @DRIV6_8557
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_8557
if 
  106@ == 1
goto_if_false @DRIV6_8603
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_8603
task_drive_by 80@(104@,14i) {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 999999.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 60
140@(104@,14i) = 0
154@(104@,14i) = 0

:DRIV6_8665
if and
  is_char_dead 66@(104@,14i)
  is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_8705
set_car_mission 52@(104@,14i) {carMission} CarMission.None

:DRIV6_8705
104@ += 1
goto @DRIV6_7473

:DRIV6_8719
return 

:DRIV6_8721
if 
  not is_car_dead 34@
goto_if_false @DRIV6_8886
104@ = 0

:DRIV6_8744
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_8886
if and
  not is_car_dead 52@(104@,14i)
  not is_char_dead 66@(104@,14i)
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_8872
if and
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_8872
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRear {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_8872
104@ += 1
goto @DRIV6_8744

:DRIV6_8886
return 

:DRIV6_8888
if 
  not is_car_dead 34@
goto_if_false @DRIV6_9157
104@ = 0

:DRIV6_8911
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_9157
if and
  not is_car_dead 52@(104@,14i)
  not is_char_dead 66@(104@,14i)
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_9143
if and
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_9143
set_lvar_int_to_lvar_int 106@ = 104@

:DRIV6_9019
if 
  106@ >= 2
goto_if_false @DRIV6_9051
106@ -= 2
goto @DRIV6_9019

:DRIV6_9051
if 
  106@ == 0
goto_if_false @DRIV6_9097
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortLeft {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_9097
if 
  106@ == 1
goto_if_false @DRIV6_9143
task_car_mission 66@(104@,14i) {vehicle} 52@(104@,14i) {targetVehicle} 34@ {missionId} CarMission.EscortRight {cruiseSpeed} 30.0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_9143
104@ += 1
goto @DRIV6_8911

:DRIV6_9157
return 

:DRIV6_9159
if 
  not is_car_dead 34@
goto_if_false @DRIV6_9450
258@ = 1
42@, 43@, 44@ = get_offset_from_car_in_world_coords 34@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
45@, 46@, 47@ = get_offset_from_car_in_world_coords 34@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
104@ = 0

:DRIV6_9247
if and
  is_int_lvar_greater_than_int_lvar 49@ > 104@
  258@ == 1
goto_if_false @DRIV6_9425
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_9411
48@ = get_driver_of_car 52@(104@,14i)
if 
  48@ <> -1
goto_if_false @DRIV6_9411
if or
  locate_car_3d 52@(104@,14i) {x} 42@ {y} 43@ {z} 44@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  locate_car_3d 52@(104@,14i) {x} 45@ {y} 46@ {z} 47@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DRIV6_9411
258@ = 0

:DRIV6_9411
104@ += 1
goto @DRIV6_9247

:DRIV6_9425
if 
  258@ == 1
goto_if_false @DRIV6_9450
TIMERA = 0

:DRIV6_9450
return 

:DRIV6_9452
104@ = 0

:DRIV6_9459
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_9766
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_9752
if 
  not is_char_dead 66@(104@,14i)
goto_if_false @DRIV6_9578
task_car_drive_to_coord 66@(104@,14i) {vehicle} 52@(104@,14i) {x} -2148.6201 {y} 1063.98 {z} 79.73 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_char_keep_task 66@(104@,14i) {state} True
goto @DRIV6_9721

:DRIV6_9578
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_9721
if 
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_9679
94@, 95@, 96@ = get_car_coordinates 52@(104@,14i)
warp_char_from_car_to_coord 80@(104@,14i) {x} 94@ {y} 95@ {z} -10.0
warp_char_into_car 80@(104@,14i) {vehicle} 52@(104@,14i)

:DRIV6_9679
task_car_drive_to_coord 80@(104@,14i) {vehicle} 52@(104@,14i) {x} -2148.6201 {y} 1063.98 {z} 79.73 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_9721
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_9752
set_char_keep_task 80@(104@,14i) {state} True

:DRIV6_9752
104@ += 1
goto @DRIV6_9459

:DRIV6_9766
return 

:DRIV6_9768
104@ = 0

:DRIV6_9775
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_10124
if 
  not is_car_dead 52@(104@,14i)
goto_if_false @DRIV6_10110
if 
  not is_char_dead 66@(104@,14i)
goto_if_false @DRIV6_9924
task_look_at_char 66@(104@,14i) {target} $scplayer {time} 5000
if 
  is_char_in_car 66@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_9906
task_car_temp_action 66@(104@,14i) {vehicle} 52@(104@,14i) {actionId} TempAction.HandbrakeStraight {time} 2000000
goto @DRIV6_9924

:DRIV6_9906
task_enter_car_as_driver 66@(104@,14i) {vehicle} 52@(104@,14i) {time} -1

:DRIV6_9924
if 
  not is_char_dead 80@(104@,14i)
goto_if_false @DRIV6_10110
task_look_at_char 80@(104@,14i) {target} $scplayer {time} 5000
if 
  210@(104@,14i) == 1
goto_if_false @DRIV6_10063
if 
  is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_10038
task_car_temp_action 80@(104@,14i) {vehicle} 52@(104@,14i) {actionId} TempAction.HandbrakeStraight {time} 2000000
goto @DRIV6_10056

:DRIV6_10038
task_enter_car_as_driver 80@(104@,14i) {vehicle} 52@(104@,14i) {time} -1

:DRIV6_10056
goto @DRIV6_10110

:DRIV6_10063
if 
  not is_char_in_car 80@(104@,14i) {vehicle} 52@(104@,14i)
goto_if_false @DRIV6_10110
task_enter_car_as_passenger 80@(104@,14i) {vehicle} 52@(104@,14i) {time} -1 {seat} SeatId.BikeRear

:DRIV6_10110
104@ += 1
goto @DRIV6_9775

:DRIV6_10124
return 

:DRIV6_10126
104@ = 0

:DRIV6_10133
if 
  is_int_lvar_greater_than_int_lvar 49@ > 104@
goto_if_false @DRIV6_10193
delete_char 66@(104@,14i)
delete_char 80@(104@,14i)
delete_car 52@(104@,14i)
104@ += 1
goto @DRIV6_10133

:DRIV6_10193
return 

:DRIV6_10195
if 
  not is_car_dead 34@
goto_if_false @DRIV6_10218
lock_car_doors 34@ {lockStatus} CarLock.Locked

:DRIV6_10218
do_fade 1000 {direction} Fade.Out

:DRIV6_10225
if 
  get_fading_status 
goto_if_false @DRIV6_10249
wait 0
goto @DRIV6_10225

:DRIV6_10249
clear_area 38@ {y} 39@ {z} 40@ {radius} 100.0 {clearParticles} False
gosub @DRIV6_10126
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
request_model 330

:DRIV6_10297
if 
  not has_model_loaded 330
goto_if_false @DRIV6_10324
wait 0
goto @DRIV6_10297

:DRIV6_10324
267@ = create_object_no_offset 330 {x} -1561.4 {y} -2721.1001 {z} 47.57
set_object_visible 267@ {state} False
task_pick_up_object $scplayer {object} 267@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  not is_car_dead 34@
goto_if_false @DRIV6_10466
car_set_idle 34@
set_car_coordinates 34@ {x} 38@ {y} 39@ {z} -100.0
set_car_heading 34@ {heading} 55.5
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 0.0
open_car_door_a_bit 34@ {door} CarDoor.RightFrontDoor {value} 0.0

:DRIV6_10466
request_animation "CAR_CHAT"
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000

:DRIV6_10485
if or
  not has_animation_loaded "CAR_CHAT"
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DRIV6_10523
wait 0
goto @DRIV6_10485

:DRIV6_10523
set_fixed_camera_position -1573.6 {y} -2743.74 {z} 49.12 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1573.0 {y} -2743.3899 {z} 49.05 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DRIV6_10581
if 
  get_fading_status 
goto_if_false @DRIV6_10628
if 
  does_object_exist 267@
goto_if_false @DRIV6_10617
set_object_visible 267@ {state} False

:DRIV6_10617
wait 0
goto @DRIV6_10581

:DRIV6_10628
259@ = 1
skip_cutscene_start_internal @DRIV6_12111
101@ = open_sequence_task 
task_play_anim -1 {animationName} "CARFONE_IN" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 101@
perform_sequence_task $scplayer {sequence} 101@
clear_sequence_task 101@
play_mission_audio MissionAudioSlot.Slot3
TIMERA = 0

:DRIV6_10810
if 
  3000 > TIMERA
goto_if_false @DRIV6_10863
if 
  does_object_exist 267@
goto_if_false @DRIV6_10852
set_object_visible 267@ {state} False

:DRIV6_10852
wait 0
goto @DRIV6_10810

:DRIV6_10863
set_object_visible 267@ {state} True
clear_mission_audio MissionAudioSlot.Slot3
135@ = 1
gosub @DRIV6_12213
TIMERA = 0
102@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_10939
103@ = get_sequence_progress $scplayer
goto @DRIV6_10946

:DRIV6_10939
103@ = 2

:DRIV6_10946
if or
  2 > 103@
  132@ == 0
goto_if_false @DRIV6_11059
wait 0
if 
  TIMERA > 1000
goto_if_false @DRIV6_11001
gosub @DRIV6_12532

:DRIV6_11001
102@ = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_11045
103@ = get_sequence_progress $scplayer
goto @DRIV6_11052

:DRIV6_11045
103@ = 2

:DRIV6_11052
goto @DRIV6_10946

:DRIV6_11059
if 
  not is_car_dead 34@
goto_if_false @DRIV6_11172
107@, 108@, 109@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.4 {yOffset} 0.51 {zOffset} 0.65
set_fixed_camera_position 107@ {y} 108@ {z} 109@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
107@, 108@, 109@ = get_offset_from_car_in_world_coords 34@ {xOffset} -0.13 {yOffset} 0.22 {zOffset} 0.54
point_camera_at_point 107@ {y} 108@ {z} 109@ {switchStyle} SwitchType.JumpCut

:DRIV6_11172
task_play_anim $scplayer {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DRIV6_11217
if 
  1 >= 132@
goto_if_false @DRIV6_11253
wait 0
gosub @DRIV6_12532
goto @DRIV6_11217

:DRIV6_11253
101@ = open_sequence_task 
task_play_anim -1 {animationName} "CARFONE_LOOPB_TO_A" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 101@
perform_sequence_task $scplayer {sequence} 101@
clear_sequence_task 101@

:DRIV6_11369
if 
  4 >= 132@
goto_if_false @DRIV6_11405
wait 0
gosub @DRIV6_12532
goto @DRIV6_11369

:DRIV6_11405
101@ = open_sequence_task 
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 101@
perform_sequence_task $scplayer {sequence} 101@
clear_sequence_task 101@

:DRIV6_11521
if 
  5 >= 132@
goto_if_false @DRIV6_11597
wait 0
gosub @DRIV6_12532
if and
  131@ == 2
  134@ <> 1
goto_if_false @DRIV6_11590
start_char_facial_talk $scplayer {duration} 4000
134@ = 1

:DRIV6_11590
goto @DRIV6_11521

:DRIV6_11597
268@ = create_car 468 {x} -1565.89 {y} -2748.3201 {z} 48.21
set_car_heading 268@ {heading} 58.42
269@ = create_char_inside_car 268@ {pedType} PedType.Mission1 {modelId} 123
wait 1000
if and
  not is_char_dead 269@
  not is_car_dead 268@
goto_if_false @DRIV6_11702
task_car_drive_to_coord 269@ {vehicle} 268@ {x} -1574.23 {y} -2742.6201 {z} 48.2 {speed} 20.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRIV6_11702
set_fixed_camera_position -1570.65 {y} -2748.3899 {z} 48.35 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1571.99 {y} -2745.26 {z} 48.29 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11850
102@ = get_script_task_status 269@ {taskId} 1489

:DRIV6_11780
if 
  not is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @DRIV6_11850
wait 0
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11836
102@ = get_script_task_status 269@ {taskId} 1489
goto @DRIV6_11843

:DRIV6_11836
set_lvar_int_to_constant 102@ = 7

:DRIV6_11843
goto @DRIV6_11780

:DRIV6_11850
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11882
task_look_at_char 269@ {target} $scplayer {time} 3000
wait 3000

:DRIV6_11882
if 
  not is_char_dead 269@
goto_if_false @DRIV6_11920
task_look_at_coord 269@ {x} -1572.73 {y} -2747.1201 {z} 48.2 {time} -2

:DRIV6_11920
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_12034
wait 0
if 
  not is_char_dead 269@
goto_if_false @DRIV6_12013
gosub @DRIV6_12532
if and
  131@ == 2
  134@ <> 1
goto_if_false @DRIV6_12006
start_char_facial_talk 269@ {duration} 10000
134@ = 1

:DRIV6_12006
goto @DRIV6_12027

:DRIV6_12013
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
set_lvar_int_to_lvar_int 132@ = 133@

:DRIV6_12027
goto @DRIV6_11920

:DRIV6_12034
if and
  not is_char_dead 269@
  not is_car_dead 268@
goto_if_false @DRIV6_12099
stop_char_facial_talk 269@
clear_look_at 269@
task_car_drive_to_coord 269@ {vehicle} 268@ {x} -1630.35 {y} -2721.1699 {z} 48.62 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV6_12099
wait 3000
259@ = 0

:DRIV6_12111
skip_cutscene_end 
if 
  259@ == 1
goto_if_false @DRIV6_12131

:DRIV6_12131
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot3
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
delete_char 269@
delete_car 268@
delete_object 267@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
if 
  not is_car_dead 34@
goto_if_false @DRIV6_12196
lock_car_doors 34@ {lockStatus} CarLock.Unlocked

:DRIV6_12196
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:DRIV6_12213
switch_start 135@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DRIV6_12502 {caseNum1} 0 {caseLabel1} @DRIV6_12276 {caseNum2} 1 {caseLabel2} @DRIV6_12334 {caseNum3} -1 {caseLabel3} @DRIV6_12509 {caseNum4} -1 {caseLabel4} @DRIV6_12509 {caseNum5} -1 {caseLabel5} @DRIV6_12509 {caseNum6} -1 {caseLabel6} @DRIV6_12509 {caseNum7} -1 {caseLabel7} @DRIV6_12509

:DRIV6_12276
set_lvar_text_label 110@s = 'FAR5_AB'
set_lvar_text_label 112@s = 'FAR5_AA'
set_lvar_int_to_constant 124@ = 15601
set_lvar_int_to_constant 125@ = 15600
133@ = 2
goto @DRIV6_12509

:DRIV6_12334
set_lvar_text_label 110@s = 'MTG02A'
set_lvar_text_label 112@s = 'MTG02B'
set_lvar_text_label 114@s = 'MTG02C'
set_lvar_text_label 116@s = 'MTG02D'
set_lvar_text_label 118@s = 'MTG02E'
set_lvar_text_label 120@s = 'MTG02F'
set_lvar_text_label 122@s = 'FAR5_AA'
set_lvar_int_to_constant 124@ = 29408
set_lvar_int_to_constant 125@ = 29409
set_lvar_int_to_constant 126@ = 29410
set_lvar_int_to_constant 127@ = 29411
set_lvar_int_to_constant 128@ = 29412
set_lvar_int_to_constant 129@ = 29413
set_lvar_int_to_constant 130@ = 15600
133@ = 7
goto @DRIV6_12509

:DRIV6_12502
goto @DRIV6_12509

:DRIV6_12509
131@ = 0
132@ = 0
134@ = 0
return 

:DRIV6_12532
if or
  131@ == 0
  131@ == 1
goto_if_false @DRIV6_12602
if 
  is_int_lvar_greater_than_int_lvar 133@ > 132@
goto_if_false @DRIV6_12602
if 
  TIMERB > 1000
goto_if_false @DRIV6_12602
gosub @DRIV6_12667

:DRIV6_12602
if 
  131@ == 2
goto_if_false @DRIV6_12665
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV6_12665
131@ = 0
132@ += 1
134@ = 0
clear_prints 
TIMERB = 0

:DRIV6_12665
return 

:DRIV6_12667
if 
  131@ == 0
goto_if_false @DRIV6_12703
load_mission_audio MissionAudioSlot.Slot1 {audioId} 124@(132@,7i)
131@ = 1

:DRIV6_12703
if 
  131@ == 1
goto_if_false @DRIV6_12761
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV6_12761
print_now 110@(132@,7s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
131@ = 2

:DRIV6_12761
return 

:DRIV6_12763
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRIV6_12781
$flag_wuzi_mission_counter += 1
register_mission_passed 'FAR_5'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 8000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 8000
award_player_mission_respect 20
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:DRIV6_12845
if 
  not is_car_dead 34@
goto_if_false @DRIV6_12883
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_can_be_visibly_damaged 34@ {state} True

:DRIV6_12883
mark_model_as_no_longer_needed 489
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 330
remove_animation "CAR_CHAT"
remove_blip 262@
remove_blip 263@
remove_blip 264@
remove_blip 265@
gosub @DRIV6_9452
delete_checkpoint 41@
clear_onscreen_counter $d6_door_health
clear_sequence_task 101@
switch_car_generator $5280 {amount} 101
switch_car_generator $5281 {amount} 101
switch_car_generator $5282 {amount} 101
$timer_mobile_start = get_game_timer 
set_car_density_multiplier 1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 56---------------
// Originally: Amphibious Assault

:WUZI2
script_name 'WUZI2'
gosub @WUZI2_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI2_38
gosub @WUZI2_26542

:WUZI2_38
gosub @WUZI2_26652
terminate_this_script 

:WUZI2_47
register_mission_given 
$onmission = 1
257@ = get_max_wanted_level 
load_mission_text 'WUZI2'
$swim_stamina_check = get_int_stat StatId.UnderwaterBreathStamina
if 
  not is_ps2_keyboard_key_pressed 81
goto_if_false @WUZI2_242
if 
  50 >= $swim_stamina_check
goto_if_false @WUZI2_242
$swim_stamina_check = 1
set_area_visible 1
load_cutscene 'W2_ALT'

:WUZI2_135
if 
  not has_cutscene_loaded 
goto_if_false @WUZI2_159
wait 0
goto @WUZI2_135

:WUZI2_159
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI2_168
if 
  not has_cutscene_finished 
goto_if_false @WUZI2_192
wait 0
goto @WUZI2_168

:WUZI2_192
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:WUZI2_205
if 
  get_fading_status 
goto_if_false @WUZI2_229
wait 0
goto @WUZI2_205

:WUZI2_229
clear_cutscene 
set_area_visible 0
goto @WUZI2_26652

:WUZI2_242
$swim_stamina_check = 0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_area_visible 1
load_cutscene 'WOOZIE2'

:WUZI2_275
if 
  not has_cutscene_loaded 
goto_if_false @WUZI2_299
wait 0
goto @WUZI2_275

:WUZI2_299
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI2_308
if 
  not has_cutscene_finished 
goto_if_false @WUZI2_332
wait 0
goto @WUZI2_308

:WUZI2_332
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:WUZI2_345
if 
  get_fading_status 
goto_if_false @WUZI2_369
wait 0
goto @WUZI2_345

:WUZI2_369
clear_cutscene 
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
request_model 121
request_model 122
request_model 123
request_model 454
request_model 355
request_model 335
request_model #A51_SPOTBASE
request_model #A51_SPOTHOUSING
request_model #A51_SPOTBULB
request_animation "DAM_JUMP"

:WUZI2_441
if or
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 123
  not has_model_loaded 454
  not has_model_loaded 355
  not has_model_loaded 335
goto_if_false @WUZI2_490
wait 0
goto @WUZI2_441

:WUZI2_490
if or
  not has_model_loaded #A51_SPOTBASE
  not has_model_loaded #A51_SPOTHOUSING
  not has_model_loaded #A51_SPOTBULB
  not has_animation_loaded "DAM_JUMP"
goto_if_false @WUZI2_539
wait 0
goto @WUZI2_490

:WUZI2_539
34@ = load_char_decision_maker DecisionMakerType.Steal
35@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
force_weather_now WeatherType.FoggySf
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
set_char_coordinates $scplayer {x} -2153.6111 {y} 645.31 {z} 51.3516
set_char_heading $scplayer {heading} 270.0
do_fade 1500 {direction} Fade.In
36@ = add_blip_for_coord -1641.995 {y} 1309.217 {z} 6.1764
print_now 'WZI2_1' {time} 8000 {flag} 1
40@ = 0
253@ = 0
if 
  253@ == 1
goto_if_false @WUZI2_910
create_car 454 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 290@($pointer_W2,2i)
create_char PedType.CivMale {modelId} 121 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 436@($pointer_W2,7i)
add_blip_for_char 436@($pointer_W2,7i) {var_handle} 443@($pointer_W2,8i)
create_car 454 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 413@($pointer_W2,2i)
create_char PedType.CivMale {modelId} 121 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 417@($pointer_W2,6i)
259@ = add_blip_for_char 417@($pointer_W2,6i)
create_searchlight 0.0 {y} 0.0 {z} 0.0 {xPoint} 0.0 {yPoint} 0.0 {zPoint} 0.0 {radius} 0.0 {radiusPoint} 0.0 {var_handle} 383@($pointer_W2,6i)
276@ = create_checkpoint CheckpointType.Torus {x} 0.0 {y} 0.0 {z} 0.0 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 0.0

:WUZI2_910
set_lvar_text_label 127@s = 'WUZ2_AA'
set_lvar_int_to_constant 58@ = 44000
set_lvar_text_label 129@s = 'WUZ2_NA'
set_lvar_int_to_constant 59@ = 44036
set_lvar_text_label 131@s = 'WUZ2_ZA'
set_lvar_int_to_constant 60@ = 44083
set_lvar_text_label 133@s = 'WUZ2_AB'
set_lvar_int_to_constant 61@ = 44001
set_lvar_text_label 135@s = 'WUZ2_NB'
set_lvar_int_to_constant 62@ = 44037
set_lvar_text_label 137@s = 'WUZ2_ZB'
set_lvar_int_to_constant 63@ = 44084
set_lvar_text_label 139@s = 'WUZ2_AC'
set_lvar_int_to_constant 64@ = 44002
set_lvar_text_label 141@s = 'WUZ2_NC'
set_lvar_int_to_constant 65@ = 44038
set_lvar_text_label 143@s = 'WUZ2_ZC'
set_lvar_int_to_constant 66@ = 44085
set_lvar_text_label 145@s = 'WUZ2_BA'
set_lvar_int_to_constant 67@ = 44003
set_lvar_text_label 147@s = 'WUZ2_OA'
set_lvar_int_to_constant 68@ = 44039
set_lvar_text_label 149@s = 'WUZ2_ZD'
set_lvar_int_to_constant 69@ = 44086
set_lvar_text_label 151@s = 'WUZ2_BB'
set_lvar_int_to_constant 70@ = 44004
set_lvar_text_label 153@s = 'WUZ2_OB'
set_lvar_int_to_constant 71@ = 44040
set_lvar_text_label 155@s = 'WUZ2_ZE'
set_lvar_int_to_constant 72@ = 44087
set_lvar_text_label 157@s = 'WUZ2_BC'
set_lvar_int_to_constant 73@ = 44005
set_lvar_text_label 159@s = 'WUZ2_OC'
set_lvar_int_to_constant 74@ = 44041
set_lvar_text_label 161@s = 'WUZ2_ZF'
set_lvar_int_to_constant 75@ = 44088
set_lvar_text_label 163@s = 'WUZ2_CA'
set_lvar_int_to_constant 76@ = 44006
set_lvar_text_label 165@s = 'WUZ2_PA'
set_lvar_int_to_constant 77@ = 44042
set_lvar_text_label 167@s = 'WUZ2_ZG'
set_lvar_int_to_constant 78@ = 44089
set_lvar_text_label 169@s = 'WUZ2_CB'
set_lvar_int_to_constant 79@ = 44007
set_lvar_text_label 171@s = 'WUZ2_PB'
set_lvar_int_to_constant 80@ = 44043
set_lvar_text_label 173@s = 'WUZ2_ZH'
set_lvar_int_to_constant 81@ = 44090
set_lvar_text_label 175@s = 'WUZ2_CC'
set_lvar_int_to_constant 82@ = 44008
set_lvar_text_label 177@s = 'WUZ2_PC'
set_lvar_int_to_constant 83@ = 44044
set_lvar_text_label 179@s = 'WUZ2_ZJ'
set_lvar_int_to_constant 84@ = 44091
set_lvar_text_label 181@s = 'WUZ2_DA'
set_lvar_int_to_constant 85@ = 44009
set_lvar_text_label 183@s = 'WUZ2_QA'
set_lvar_int_to_constant 86@ = 44045
set_lvar_text_label 185@s = 'WUZ2_ZK'
set_lvar_int_to_constant 87@ = 44092
set_lvar_text_label 187@s = 'WUZ2_DB'
set_lvar_int_to_constant 88@ = 44010
set_lvar_text_label 189@s = 'WUZ2_QB'
set_lvar_int_to_constant 89@ = 44046
set_lvar_text_label 191@s = 'WUZ2_ZL'
set_lvar_int_to_constant 90@ = 44093
set_lvar_text_label 193@s = 'WUZ2_DC'
set_lvar_int_to_constant 91@ = 44011
set_lvar_text_label 195@s = 'WUZ2_QC'
set_lvar_int_to_constant 92@ = 44047
set_lvar_text_label 197@s = 'WUZ2_ZM'
set_lvar_int_to_constant 93@ = 44094
set_lvar_text_label 199@s = 'WUZ2_EA'
set_lvar_int_to_constant 94@ = 44012
set_lvar_text_label 201@s = 'WUZ2_RA'
set_lvar_int_to_constant 95@ = 44048
set_lvar_text_label 203@s = 'WUZ2_ZN'
set_lvar_int_to_constant 96@ = 44095
set_lvar_text_label 205@s = 'WUZ2_EB'
set_lvar_int_to_constant 97@ = 44013
set_lvar_text_label 207@s = 'WUZ2_RB'
set_lvar_int_to_constant 98@ = 44049
set_lvar_text_label 209@s = 'WUZ2_ZO'
set_lvar_int_to_constant 99@ = 44096
set_lvar_text_label 211@s = 'WUZ2_EC'
set_lvar_int_to_constant 100@ = 44014
set_lvar_text_label 213@s = 'WUZ2_RC'
set_lvar_int_to_constant 101@ = 44050
set_lvar_text_label 215@s = 'WUZ2_ZP'
set_lvar_int_to_constant 102@ = 44097
set_lvar_text_label 217@s = 'WUZ2_FA'
set_lvar_int_to_constant 103@ = 44015
set_lvar_text_label 219@s = 'WUZ2_SA'
set_lvar_int_to_constant 104@ = 44051
set_lvar_text_label 221@s = 'WUZ2_ZQ'
set_lvar_int_to_constant 105@ = 44098
set_lvar_text_label 223@s = 'WUZ2_FB'
set_lvar_int_to_constant 106@ = 44016
set_lvar_text_label 225@s = 'WUZ2_SB'
set_lvar_int_to_constant 107@ = 44052
set_lvar_text_label 227@s = 'WUZ2_ZR'
set_lvar_int_to_constant 108@ = 44099
set_lvar_text_label 229@s = 'WUZ2_FC'
set_lvar_int_to_constant 109@ = 44017
set_lvar_text_label 231@s = 'WUZ2_SC'
set_lvar_int_to_constant 110@ = 44053
set_lvar_text_label 233@s = 'WUZ2_ZS'
set_lvar_int_to_constant 111@ = 44100
set_lvar_text_label 235@s = 'WUZ2_GA'
set_lvar_int_to_constant 112@ = 44018
set_lvar_text_label 237@s = 'WUZ2_TA'
set_lvar_int_to_constant 113@ = 44054
set_lvar_text_label 239@s = 'WUZ2_ZT'
set_lvar_int_to_constant 114@ = 44101
set_lvar_text_label 241@s = 'WUZ2_GB'
set_lvar_int_to_constant 115@ = 44019
set_lvar_text_label 243@s = 'WUZ2_TB'
set_lvar_int_to_constant 116@ = 44055
set_lvar_text_label 245@s = 'WUZ2_ZU'
set_lvar_int_to_constant 117@ = 44102
set_lvar_text_label 247@s = 'WUZ2_GC'
set_lvar_int_to_constant 118@ = 44020
set_lvar_text_label 249@s = 'WUZ2_TC'
set_lvar_int_to_constant 119@ = 44056
set_lvar_text_label 251@s = 'WUZ2_ZV'
set_lvar_int_to_constant 120@ = 44103
121@ = generate_random_int_in_range 0 {max} 3
122@ = generate_random_int_in_range 0 {max} 3
123@ = 0
124@ = 10

:WUZI2_2454
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @WUZI2_2480
goto @WUZI2_26588

:WUZI2_2480
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -1641.995 {y} 1309.217 {z} 6.1764 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @WUZI2_2547
set_player_control $player1 {state} False
remove_blip 36@
goto @WUZI2_2554

:WUZI2_2547
goto @WUZI2_2454

:WUZI2_2554
do_fade 500 {direction} Fade.Out

:WUZI2_2561
if 
  get_fading_status 
goto_if_false @WUZI2_2585
wait 0
goto @WUZI2_2561

:WUZI2_2585
clear_wanted_level $player1
set_max_wanted_level 0
clear_area_of_cars -1648.875 {leftBottomY} 1319.2419 {leftBottomZ} 6.0 {rightTopX} -1636.3669 {rightTopY} 1297.54 {rightTopZ} 9.0
clear_area_of_chars -1648.875 {leftBottomY} 1319.2419 {leftBottomZ} 6.0 {rightTopX} -1636.3669 {rightTopY} 1297.54 {rightTopZ} 9.0
gosub @WUZI2_8379
gosub @WUZI2_18697
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI2_2715
warp_char_from_car_to_coord $scplayer {x} -1640.9 {y} 1310.6 {z} 6.1797
goto @WUZI2_2735

:WUZI2_2715
set_char_coordinates $scplayer {x} -1640.9 {y} 1310.6 {z} 6.1797

:WUZI2_2735
set_char_heading $scplayer {heading} 315.0
switch_widescreen True
set_player_control $player1 {state} False
47@ = 0
load_scene -1455.999 {y} 1529.144 {z} 19.179
set_fixed_camera_position -1358.484 {y} 1468.994 {z} 18.4397 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1359.312 {y} 1469.54 {z} 18.3092 {switchStyle} SwitchType.JumpCut
gosub @WUZI2_18118
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
do_fade 500 {direction} Fade.In

:WUZI2_2852
if 
  get_fading_status 
goto_if_false @WUZI2_2876
wait 0
goto @WUZI2_2852

:WUZI2_2876
skip_cutscene_start_internal @WUZI2_3040
print_now 'WZI2_2' {time} 6500 {flag} 1
TIMERA = 0

:WUZI2_2906
if 
  6500 > TIMERA
goto_if_false @WUZI2_2936
wait 0
goto @WUZI2_2906

:WUZI2_2936
set_fixed_camera_position -1511.427 {y} 1374.075 {z} 5.9802 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1511.29 {y} 1373.103 {z} 5.7898 {switchStyle} SwitchType.JumpCut
print_now 'WZI2_3' {time} 6500 {flag} 1
TIMERA = 0

:WUZI2_3010
if 
  6500 > TIMERA
goto_if_false @WUZI2_3040
wait 0
goto @WUZI2_3010

:WUZI2_3040
skip_cutscene_end 
clear_prints 
skip_cutscene_start_internal @WUZI2_3877
set_fixed_camera_position -1642.439 {y} 1308.882 {z} 11.1649 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1641.9139 {y} 1309.402 {z} 10.4912 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:WUZI2_3109
if 
  500 > TIMERA
goto_if_false @WUZI2_3139
wait 0
goto @WUZI2_3109

:WUZI2_3139
task_play_anim $scplayer {animationName} "SF_JUMPWALL" {animationFile} "DAM_JUMP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
TIMERA = 0

:WUZI2_3189
if 
  1000 > TIMERA
goto_if_false @WUZI2_3219
wait 0
goto @WUZI2_3189

:WUZI2_3219
set_time_scale 0.2
set_fixed_camera_position -1636.6639 {y} 1316.354 {z} -3.7183 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1636.729 {y} 1315.749 {z} -2.925 {switchStyle} SwitchType.JumpCut
$z = -2.925
TIMERA = 0
254@ = 0

:WUZI2_3301
if 
  $z > -3.2406
goto_if_false @WUZI2_3570
wait 0
$z -= 0.003
if 
  -3.2406 > $z
goto_if_false @WUZI2_3367
$z = -3.2406

:WUZI2_3367
point_camera_at_point -1636.729 {y} 1315.749 {z} $z {switchStyle} SwitchType.JumpCut
if and
  TIMERA > 200
  2 > 254@
goto_if_false @WUZI2_3563
if 
  254@ == 0
goto_if_false @WUZI2_3546
$x = get_water_height_at_coords -1637.354 {y} 1314.11 {waves} True
255@ = create_fx_system "WATER_SPLASH" {x} -1637.354 {y} 1314.11 {z} $x {ignoreBoundingChecks} True
256@ = create_fx_system "WATER_RIPPLES" {x} -1637.354 {y} 1314.11 {z} $x {ignoreBoundingChecks} True
report_mission_audio_event_at_position -1637.354 {y} 1314.11 {z} $x {soundId} ScriptSound.SoundPedHitWaterSplash
254@ += 1
goto @WUZI2_3563

:WUZI2_3546
play_fx_system 255@
play_fx_system 256@
254@ += 1

:WUZI2_3563
goto @WUZI2_3301

:WUZI2_3570
$z = 0.2

:WUZI2_3580
if 
  0.5 > $z
goto_if_false @WUZI2_3658
wait 0
$z += 0.014
if 
  $z > 0.5
goto_if_false @WUZI2_3646
$z = 0.5

:WUZI2_3646
set_time_scale $z
goto @WUZI2_3580

:WUZI2_3658
kill_fx_system 255@
kill_fx_system 256@

:WUZI2_3668
if 
  is_char_playing_anim $scplayer {animationName} "SF_JUMPWALL"
goto_if_false @WUZI2_3708
wait 0
goto @WUZI2_3668

:WUZI2_3708
set_char_coordinates $scplayer {x} -1636.33 {y} 1315.36 {z} -1.0
set_char_heading $scplayer {heading} 285.0
TIMERA = 0

:WUZI2_3745
if 
  500 > TIMERA
goto_if_false @WUZI2_3775
wait 0
goto @WUZI2_3745

:WUZI2_3775
set_time_scale 1.0
set_fixed_camera_position -1641.399 {y} 1314.413 {z} 1.3246 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1640.422 {y} 1314.574 {z} 1.1792 {switchStyle} SwitchType.JumpCut
47@ = 1
TIMERA = 0

:WUZI2_3847
if 
  1500 > TIMERA
goto_if_false @WUZI2_3877
wait 0
goto @WUZI2_3847

:WUZI2_3877
skip_cutscene_end 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
kill_fx_system 255@
kill_fx_system 256@
switch_widescreen False
set_player_control $player1 {state} True
set_always_draw_3d_markers True
277@ = 0
278@ = 0
280@ = -1625.651
281@ = 1317.92
279@ = 1
if 
  47@ == 0
goto_if_false @WUZI2_4018
set_char_coordinates $scplayer {x} -1636.33 {y} 1315.36 {z} -1.0
set_char_heading $scplayer {heading} 285.0
set_time_scale 1.0
restore_camera_jumpcut 
set_camera_behind_player 
goto @WUZI2_4020

:WUZI2_4018
restore_camera 

:WUZI2_4020
remove_animation "DAM_JUMP"
47@ = 0
clear_prints 
print_now 'WZI2_8' {time} 8000 {flag} 1
36@ = add_blip_for_coord -1449.642 {y} 1501.135 {z} 0.7366
$help_text_switch_W2 = 0
$help_text_flag_W2 = 0
set_lvar_text_label 260@s = 'WZI2_A0'
set_lvar_text_label 262@s = 'WZI2_A1'
set_lvar_text_label 264@s = 'WZI2_A2'
set_lvar_text_label 266@s = 'WZI2_A3'
set_lvar_text_label 268@s = 'WZI2_A4'
set_lvar_text_label 270@s = 'WZI2_A5'
set_lvar_text_label 272@s = 'WZI2_A6'
set_lvar_text_label 274@s = 'WZI2_A7'
if 
  379@ == 0
goto_if_false @WUZI2_4248
258@ = create_pickup_with_ammo 335 {pickupType} PickupType.Once {ammo} 1 {x} -1595.0 {y} 1345.0 {z} -7.5

:WUZI2_4248
TIMERB = 0

:WUZI2_4255
wait 0
gosub @WUZI2_16055
if 
  373@ == 2
goto_if_false @WUZI2_4296
remove_blip 259@
goto @WUZI2_7278

:WUZI2_4296
gosub @WUZI2_8017
if 
  289@ == 2
goto_if_false @WUZI2_4328
goto @WUZI2_6224

:WUZI2_4328
switch_start $help_text_switch_W2 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5276 {caseNum1} 0 {caseLabel1} @WUZI2_4391 {caseNum2} 1 {caseLabel2} @WUZI2_4880 {caseNum3} 2 {caseLabel3} @WUZI2_5040 {caseNum4} 3 {caseLabel4} @WUZI2_5217 {caseNum5} -1 {caseLabel5} @WUZI2_5276 {caseNum6} -1 {caseLabel6} @WUZI2_5276 {caseNum7} -1 {caseLabel7} @WUZI2_5276

:WUZI2_4391
if and
  is_char_in_area_3d $scplayer {leftBottomX} -1602.782 {leftBottomY} 1320.688 {leftBottomZ} -8.0 {rightTopX} -1606.119 {rightTopY} 1331.51 {rightTopZ} 1.0 {drawSphere} False
  287@ == 0
goto_if_false @WUZI2_4759
switch_widescreen True
set_player_control $player1 {state} False
clear_help 
clear_prints 
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track -1600.998 {fromY} 1323.041 {fromZ} 1.9093 {toX} -1600.3149 {toY} 1322.4139 {toZ} -2.0672 {time} 6000 {ease} True
camera_set_vector_move -1598.525 {fromY} 1318.594 {fromZ} 2.3701 {toX} -1598.525 {toY} 1318.594 {toZ} -2.3701 {time} 6000 {ease} True
print_now 'WZI2_5' {time} 8000 {flag} 1
TIMERA = 0

:WUZI2_4568
if 
  800 > TIMERA
goto_if_false @WUZI2_4598
wait 0
goto @WUZI2_4568

:WUZI2_4598
skip_cutscene_start_internal @WUZI2_4717

:WUZI2_4605
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_4629
wait 0
goto @WUZI2_4605

:WUZI2_4629
TIMERA = 0

:WUZI2_4636
if 
  1500 > TIMERA
goto_if_false @WUZI2_4666
wait 0
goto @WUZI2_4636

:WUZI2_4666
set_fixed_camera_position -1598.525 {y} 1318.594 {z} 1.3701 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1599.181 {y} 1319.288 {z} 1.0744 {switchStyle} SwitchType.JumpCut

:WUZI2_4717
skip_cutscene_end 
clear_prints 
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
$help_text_switch_W2 += 1
TIMERB = 0
goto @WUZI2_4873

:WUZI2_4759
if 
  is_char_in_area_3d $scplayer {leftBottomX} -1611.833 {leftBottomY} 1334.313 {leftBottomZ} 0.8012 {rightTopX} -1615.812 {rightTopY} 1329.394 {rightTopZ} -7.9862 {drawSphere} False
goto_if_false @WUZI2_4821
$help_text_switch_W2 = 3
goto @WUZI2_4873

:WUZI2_4821
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_4873
282@ = 0
goto @WUZI2_5983

:WUZI2_4873
goto @WUZI2_5276

:WUZI2_4880
if 
  is_char_in_angled_area_on_foot_3d $scplayer {leftBottomX} -1611.833 {leftBottomY} 1334.313 {leftBottomZ} 0.8012 {rightTopX} -1615.812 {rightTopY} 1329.394 {rightTopZ} -7.9862 {angle} 2.0 {drawSphere} False
goto_if_false @WUZI2_4981
if 
  287@ == 1
goto_if_false @WUZI2_4967
print_now 'WZI2_6' {time} 5000 {flag} 1

:WUZI2_4967
$help_text_switch_W2 += 1
goto @WUZI2_5033

:WUZI2_4981
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5033
282@ = 0
goto @WUZI2_5983

:WUZI2_5033
goto @WUZI2_5276

:WUZI2_5040
if 
  locate_char_on_foot_2d $scplayer {x} -1612.208 {y} 1349.552 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5158
clear_help 
if 
  379@ == 0
goto_if_false @WUZI2_5136
print_now 'WZI2_7' {time} 6000 {flag} 1
259@ = add_blip_for_pickup 258@
TIMERB = 0
goto @WUZI2_5144

:WUZI2_5136
TIMERB = 6001

:WUZI2_5144
$help_text_switch_W2 += 1
goto @WUZI2_5210

:WUZI2_5158
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5210
282@ = 0
goto @WUZI2_5983

:WUZI2_5210
goto @WUZI2_5276

:WUZI2_5217
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_5269
282@ = 0
goto @WUZI2_5983

:WUZI2_5269
goto @WUZI2_5276

:WUZI2_5276
gosub @WUZI2_5297
gosub @WUZI2_18290
goto @WUZI2_4255

:WUZI2_5297
switch_start 278@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5487 {caseNum1} 0 {caseLabel1} @WUZI2_5360 {caseNum2} 1 {caseLabel2} @WUZI2_5466 {caseNum3} -1 {caseLabel3} @WUZI2_5487 {caseNum4} -1 {caseLabel4} @WUZI2_5487 {caseNum5} -1 {caseLabel5} @WUZI2_5487 {caseNum6} -1 {caseLabel6} @WUZI2_5487 {caseNum7} -1 {caseLabel7} @WUZI2_5487

:WUZI2_5360
if 
  locate_char_on_foot_2d $scplayer {x} 280@ {y} 281@ {xRadius} 4.0 {yRadius} 4.0 {drawSphere} 279@
goto_if_false @WUZI2_5459
delete_checkpoint 276@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
if 
  6 > 277@
goto_if_false @WUZI2_5452
278@ += 1
goto @WUZI2_5459

:WUZI2_5452
278@ = -1

:WUZI2_5459
goto @WUZI2_5487

:WUZI2_5466
gosub @WUZI2_5489
278@ -= 1
goto @WUZI2_5487

:WUZI2_5487
return 

:WUZI2_5489
277@ += 1
switch_start 277@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI2_5981 {caseNum1} 1 {caseLabel1} @WUZI2_5559 {caseNum2} 2 {caseLabel2} @WUZI2_5593 {caseNum3} 3 {caseLabel3} @WUZI2_5665 {caseNum4} 4 {caseLabel4} @WUZI2_5699 {caseNum5} 5 {caseLabel5} @WUZI2_5803 {caseNum6} 6 {caseLabel6} @WUZI2_5837 {caseNum7} 7 {caseLabel7} @WUZI2_5909

:WUZI2_5559
280@ = -1604.522
281@ = 1312.674
279@ = 1
goto @WUZI2_5981

:WUZI2_5593
280@ = -1611.557
281@ = 1330.7889
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -2.2294 {pointX} -1610.672 {pointY} 1330.325 {pointZ} -2.2294 {radius} 0.8
279@ = 0
goto @WUZI2_5981

:WUZI2_5665
280@ = -1626.098
281@ = 1343.811
279@ = 1
goto @WUZI2_5981

:WUZI2_5699
if 
  379@ > 0
goto_if_false @WUZI2_5796
280@ = -1596.333
281@ = 1345.053
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -6.2933 {pointX} -1597.2729 {pointY} 1345.396 {pointZ} -6.2933 {radius} 0.8
279@ = 0
goto @WUZI2_5981
goto @WUZI2_5803

:WUZI2_5796
277@ += 1

:WUZI2_5803
280@ = -1576.722
281@ = 1338.4771
279@ = 1
goto @WUZI2_5981

:WUZI2_5837
280@ = -1559.1379
281@ = 1333.954
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -5.3882 {pointX} -1560.119 {pointY} 1334.147 {pointZ} -5.3819 {radius} 1.2
279@ = 0
goto @WUZI2_5981

:WUZI2_5909
280@ = -1548.2159
281@ = 1342.198
276@ = create_checkpoint CheckpointType.Torus {x} 280@ {y} 281@ {z} -7.0752 {pointX} -1548.608 {pointY} 1341.277 {pointZ} -7.0752 {radius} 1.2
279@ = 0
goto @WUZI2_5981

:WUZI2_5981
return 

:WUZI2_5983
wait 0
gosub @WUZI2_8017
if 
  289@ == 2
goto_if_false @WUZI2_6019
goto @WUZI2_6224

:WUZI2_6019
if 
  287@ == 0
goto_if_false @WUZI2_6154
if 
  282@ == 0
goto_if_false @WUZI2_6147
if 
  not is_char_in_angled_area_on_foot_3d $scplayer {leftBottomX} -1558.932 {leftBottomY} 1338.285 {leftBottomZ} -5.0 {rightTopX} -1563.078 {rightTopY} 1329.29 {rightTopZ} 5.0 {angle} 10.0 {drawSphere} False
goto_if_false @WUZI2_6140
if 
  289@ == 0
goto_if_false @WUZI2_6133
goto @WUZI2_6224

:WUZI2_6133
goto @WUZI2_6147

:WUZI2_6140
282@ = 1

:WUZI2_6147
goto @WUZI2_6217

:WUZI2_6154
if 
  282@ == 1
goto_if_false @WUZI2_6217
if 
  locate_char_on_foot_2d $scplayer {x} -1549.125 {y} 1339.9611 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @WUZI2_6217
282@ = 0

:WUZI2_6217
goto @WUZI2_5983

:WUZI2_6224
$player_status_W2 = -2
clear_help 
clear_prints 
remove_blip 259@
delete_checkpoint 276@
set_player_control $player1 {state} False
switch_widescreen True
if 
  289@ <> 2
goto_if_false @WUZI2_6823
set_camera_behind_player 
TIMERA = 0

:WUZI2_6283
if 
  500 > TIMERA
goto_if_false @WUZI2_6313
wait 0
goto @WUZI2_6283

:WUZI2_6313
51@, 52@, 53@ = get_active_camera_coordinates 
54@, 55@, 56@ = get_active_camera_point_at 
if 
  not is_car_dead 291@
goto_if_false @WUZI2_6365
$x, $y, $z = get_car_coordinates 291@

:WUZI2_6365
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track 54@ {fromY} 55@ {fromZ} 56@ {toX} $x {toY} $y {toZ} $z {time} 3500 {ease} True
camera_set_vector_move 51@ {fromY} 52@ {fromZ} 53@ {toX} 51@ {toY} 52@ {toZ} 53@ {time} 3500 {ease} True
print_now 'WZI2_40' {time} 8000 {flag} 1
TIMERA = 0

:WUZI2_6448
if 
  1000 > TIMERA
goto_if_false @WUZI2_6478
wait 0
goto @WUZI2_6448

:WUZI2_6478
skip_cutscene_start_internal @WUZI2_6814
wait 0

:WUZI2_6489
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_6513
wait 0
goto @WUZI2_6489

:WUZI2_6513
if 
  not is_car_dead 290@
goto_if_false @WUZI2_6543
$player_x, $player_y, $player_z = get_car_coordinates 290@

:WUZI2_6543
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track $x {fromY} $y {fromZ} $z {toX} $player_x {toY} $player_y {toZ} $player_z {time} 3000 {ease} False
camera_set_vector_move 51@ {fromY} 52@ {fromZ} 53@ {toX} 51@ {toY} 52@ {toZ} 53@ {time} 3000 {ease} False
wait 0

:WUZI2_6607
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_6645
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6607

:WUZI2_6645
print_now 'WZI2_41' {time} 8000 {flag} 1
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_track $player_x {fromY} $player_y {fromZ} $player_z {toX} 54@ {toY} 55@ {toZ} 56@ {time} 4500 {ease} True
camera_set_vector_move 51@ {fromY} 52@ {fromZ} 53@ {toX} 51@ {toY} 52@ {toZ} 53@ {time} 4500 {ease} True
wait 0

:WUZI2_6725
if 
  camera_is_vector_track_running 
goto_if_false @WUZI2_6763
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6725

:WUZI2_6763
TIMERA = 0

:WUZI2_6770
if 
  1000 > TIMERA
goto_if_false @WUZI2_6814
wait 0
gosub @WUZI2_9364
gosub @WUZI2_12194
goto @WUZI2_6770

:WUZI2_6814
skip_cutscene_end 
goto @WUZI2_7040

:WUZI2_6823
skip_cutscene_start_internal @WUZI2_7038
set_fixed_camera_position -1568.7419 {y} 1385.366 {z} 5.9871 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1569.707 {y} 1385.126 {z} 5.8767 {switchStyle} SwitchType.JumpCut
print_now 'WZI2_40' {time} 6000 {flag} 1
TIMERA = 0

:WUZI2_6904
if 
  6000 > TIMERA
goto_if_false @WUZI2_6934
wait 0
goto @WUZI2_6904

:WUZI2_6934
set_fixed_camera_position -1494.649 {y} 1350.358 {z} 6.0727 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1495.1639 {y} 1349.516 {z} 5.9146 {switchStyle} SwitchType.JumpCut
print_now 'WZI2_41' {time} 6000 {flag} 1
TIMERA = 0

:WUZI2_7008
if 
  6000 > TIMERA
goto_if_false @WUZI2_7038
wait 0
goto @WUZI2_7008

:WUZI2_7038
skip_cutscene_end 

:WUZI2_7040
print_now 'WZI2_8' {time} 6000 {flag} 1
if 
  not is_car_dead 290@
goto_if_false @WUZI2_7087
292@ = add_blip_for_car 290@
change_blip_display 292@ {display} BlipDisplay.BlipOnly

:WUZI2_7087
if 
  not is_car_dead 291@
goto_if_false @WUZI2_7118
293@ = add_blip_for_car 291@
change_blip_display 293@ {display} BlipDisplay.BlipOnly

:WUZI2_7118
407@ = add_blip_for_searchlight 383@
408@ = add_blip_for_searchlight 384@
409@ = add_blip_for_searchlight 385@
410@ = add_blip_for_searchlight 386@
if 
  not is_car_dead 413@
goto_if_false @WUZI2_7181
415@ = add_blip_for_car 413@
change_blip_display 415@ {display} BlipDisplay.BlipOnly

:WUZI2_7181
if 
  not is_car_dead 414@
goto_if_false @WUZI2_7212
416@ = add_blip_for_car 414@
change_blip_display 416@ {display} BlipDisplay.BlipOnly

:WUZI2_7212
print_now 'WZI2_8' {time} 6000 {flag} 1
$player_breath_W2 = 1
288@ = 0
$player_first_spot_W2 = 0
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks $scplayer
set_player_control $player1 {state} True
switch_widescreen False
283@ = 0

:WUZI2_7278
wait 0
37@ = get_game_timer 
set_lvar_int_to_lvar_int 38@ = 37@
sub_int_lvar_from_int_lvar 38@ -= 39@
set_lvar_int_to_lvar_int 39@ = 37@
add_int_lvar_to_int_lvar 288@ += 38@
add_int_lvar_to_int_var $guard_timer_W2[0] += 38@
add_int_lvar_to_int_var $guard_timer_W2[1] += 38@
if 
  373@ <> 2
goto_if_false @WUZI2_7459
gosub @WUZI2_8017
gosub @WUZI2_9364
gosub @WUZI2_12194
gosub @WUZI2_13003
gosub @WUZI2_14422
if 
  $p_current_square > 35
goto_if_false @WUZI2_7438
if 
  284@ == 0
goto_if_false @WUZI2_7431
284@ = 1

:WUZI2_7431
gosub @WUZI2_20108

:WUZI2_7438
gosub @WUZI2_18290
gosub @WUZI2_16055
goto @WUZI2_7466

:WUZI2_7459
gosub @WUZI2_16700

:WUZI2_7466
gosub @WUZI2_20987
if 
  283@ == 0
goto_if_false @WUZI2_7597
if 
  is_char_in_water $scplayer
goto_if_false @WUZI2_7590
if 
  287@ == 0
goto_if_false @WUZI2_7590
if 
  locate_char_on_foot_2d $scplayer {x} -1447.1281 {y} 1501.241 {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @WUZI2_7590
clear_help 
print_help_forever 'WZI2_C0'
TIMERB = 0
283@ += 1

:WUZI2_7590
goto @WUZI2_8003

:WUZI2_7597
if 
  283@ == 1
goto_if_false @WUZI2_7723
if 
  TIMERB > 8000
goto_if_false @WUZI2_7636
clear_help 

:WUZI2_7636
if 
  not is_char_in_water $scplayer
goto_if_false @WUZI2_7716
if 
  locate_char_on_foot_3d $scplayer {x} -1449.642 {y} 1501.135 {z} 0.7366 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @WUZI2_7716
clear_help 
gosub @WUZI2_22319
283@ += 1

:WUZI2_7716
goto @WUZI2_8003

:WUZI2_7723
gosub @WUZI2_23872
gosub @WUZI2_24874
gosub @WUZI2_25427
if 
  48@ == 0
goto_if_false @WUZI2_7948
if 
  locate_char_on_foot_3d $scplayer {x} -1372.733 {y} 1495.55 {z} 0.8578 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @WUZI2_7941
if 
  522@ <> 2
goto_if_false @WUZI2_7925
print_now 'WZI2_30' {time} 1000 {flag} 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WUZI2_7918
clear_prints 
print_now 'WZI2_32' {time} 6000 {flag} 1
remove_blip 36@
36@ = add_blip_for_coord -1508.558 {y} 1296.067 {z} 0.397
48@ = 1
gosub @WUZI2_18207

:WUZI2_7918
goto @WUZI2_7941

:WUZI2_7925
print_now 'WZI2_31' {time} 3000 {flag} 1

:WUZI2_7941
goto @WUZI2_8003

:WUZI2_7948
if 
  locate_char_on_foot_3d $scplayer {x} -1508.558 {y} 1296.067 {z} 0.397 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @WUZI2_8003
goto @WUZI2_26588

:WUZI2_8003
gosub @WUZI2_21524
goto @WUZI2_7278

:WUZI2_8017
287@ = 0
286@ = 0
if 
  is_char_swimming $scplayer
goto_if_false @WUZI2_8329
285@ = get_char_swim_state $scplayer
if 
  is_int_lvar_equal_to_constant 285@ == 4
goto_if_false @WUZI2_8119
287@ = 1
if 
  0 >= $player_status_W2
goto_if_false @WUZI2_8112
$player_breath_W2 = 1
$player_status_W2 = -2

:WUZI2_8112
goto @WUZI2_8144

:WUZI2_8119
if 
  is_int_lvar_equal_to_constant 285@ == 2
goto_if_false @WUZI2_8144
286@ = 1

:WUZI2_8144
if 
  289@ == 1
goto_if_false @WUZI2_8322
if or
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1559.287 {leftBottomY} 1337.199 {rightTopX} -1562.583 {rightTopY} 1327.257 {angle} -62.9096 {drawSphere} False
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1590.327 {leftBottomY} 1336.881 {rightTopX} -1607.2061 {rightTopY} 1307.5649 {angle} -37.0915 {drawSphere} False
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1616.574 {leftBottomY} 1319.3361 {rightTopX} -1632.86 {rightTopY} 1303.452 {angle} -23.9075 {drawSphere} False
  is_char_in_angled_area_2d $scplayer {leftBottomX} -1595.184 {leftBottomY} 1316.681 {rightTopX} -1603.483 {rightTopY} 1308.894 {angle} -8.3514 {drawSphere} False
goto_if_false @WUZI2_8315
289@ = 0
goto @WUZI2_8322

:WUZI2_8315
289@ = 2

:WUZI2_8322
goto @WUZI2_8377

:WUZI2_8329
if 
  289@ == 0
goto_if_false @WUZI2_8354
289@ = 1

:WUZI2_8354
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI2_8377
286@ = 1

:WUZI2_8377
return 

:WUZI2_8379
switch_roads_off -1328.999 {leftBottomY} 1239.9969 {leftBottomZ} -5.0 {rightTopX} -1655.868 {rightTopY} 1638.755 {rightTopZ} 10.0
clear_area_of_cars -1328.999 {leftBottomY} 1239.9969 {leftBottomZ} -5.0 {rightTopX} -1655.868 {rightTopY} 1638.755 {rightTopZ} 10.0
331@ = -1605.0
332@ = -1565.0
333@ = -1525.0
334@ = -1485.0
335@ = -1445.0
336@ = -1405.0
337@ = -1365.0
338@ = 1315.0
339@ = 1355.0
340@ = 1395.0
341@ = 1435.0
342@ = 1475.0
343@ = -1585.0
344@ = -1545.0
345@ = -1505.0
346@ = -1465.0
347@ = -1425.0
348@ = -1385.0
349@ = 1335.0
350@ = 1375.0
351@ = 1415.0
352@ = 1455.0
$p_current_square = 0
$p_last_square = -1
359@ = 40.0
357@ = 3.0
358@ = 0.1
290@ = create_car 454 {x} -1585.0 {y} 1375.0 {z} 1.0
anchor_boat 290@ {state} True
300@ = create_char_inside_car 290@ {pedType} PedType.Mission1 {modelId} 121
308@ = create_char PedType.Mission1 {modelId} 121 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 308@ {vehicle} 290@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 308@ {state} True
set_char_accuracy 308@ {accuracy} 80
set_char_shoot_rate 308@ {rate} 20
322@ = 0.0
309@ = create_char PedType.Mission1 {modelId} 122 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 309@ {vehicle} 290@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 309@ {state} True
set_char_accuracy 309@ {accuracy} 80
set_char_shoot_rate 309@ {rate} 20
323@ = -90.0
310@ = create_char PedType.Mission1 {modelId} 123 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 310@ {vehicle} 290@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 310@ {state} True
set_char_accuracy 310@ {accuracy} 80
set_char_shoot_rate 310@ {rate} 20
324@ = 140.0
294@ = 0
296@ = 17
$guard_status_W2[0] = 0
291@ = create_car 454 {x} -1505.0 {y} 1335.0 {z} 1.0
anchor_boat 291@ {state} True
301@ = create_char_inside_car 291@ {pedType} PedType.Mission1 {modelId} 121
311@ = create_char PedType.Mission1 {modelId} 121 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 311@ {vehicle} 291@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 311@ {state} True
set_char_accuracy 311@ {accuracy} 80
set_char_shoot_rate 311@ {rate} 20
325@ = 0.0
312@ = create_char PedType.Mission1 {modelId} 122 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 312@ {vehicle} 291@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 312@ {state} True
set_char_accuracy 312@ {accuracy} 80
set_char_shoot_rate 312@ {rate} 20
326@ = -90.0
313@ = create_char PedType.Mission1 {modelId} 123 {x} -1585.0 {y} 1375.0 {z} 4.0
attach_char_to_car 313@ {vehicle} 291@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 313@ {state} True
set_char_accuracy 313@ {accuracy} 80
set_char_shoot_rate 313@ {rate} 20
327@ = 140.0
295@ = 0
297@ = 11
$guard_status_W2[1] = 0
$attack_status_W2 = 0
return 

:WUZI2_9364
$x, $y, $z = get_char_coordinates $scplayer
$x_grid_pos_W2 = -1
$y_grid_pos_W2 = -1
$pointer_W2 = 0

:WUZI2_9399
if 
  7 > $pointer_W2
goto_if_false @WUZI2_9469
if 
  is_float_lvar_greater_than_float_var 331@($pointer_W2,7f) > $x
goto_if_false @WUZI2_9455
set_var_int_to_var_int $x_grid_pos_W2 = $pointer_W2
$pointer_W2 = 7

:WUZI2_9455
$pointer_W2 += 1
goto @WUZI2_9399

:WUZI2_9469
if 
  $x_grid_pos_W2 == -1
goto_if_false @WUZI2_9494
$x_grid_pos_W2 = 7

:WUZI2_9494
$pointer_W2 = 0

:WUZI2_9501
if 
  5 > $pointer_W2
goto_if_false @WUZI2_9571
if 
  is_float_lvar_greater_than_float_var 338@($pointer_W2,5f) > $y
goto_if_false @WUZI2_9557
set_var_int_to_var_int $y_grid_pos_W2 = $pointer_W2
$pointer_W2 = 5

:WUZI2_9557
$pointer_W2 += 1
goto @WUZI2_9501

:WUZI2_9571
if 
  $y_grid_pos_W2 == -1
goto_if_false @WUZI2_9596
$y_grid_pos_W2 = 5

:WUZI2_9596
$y_grid_pos_W2 *= 8
set_var_int_to_var_int $p_current_square = $x_grid_pos_W2
add_int_var_to_int_var $p_current_square += $y_grid_pos_W2
if 
  not is_int_var_equal_to_int_var $p_current_square == $p_last_square
goto_if_false @WUZI2_9653
gosub @WUZI2_9655
set_var_int_to_var_int $p_last_square = $p_current_square

:WUZI2_9653
return 

:WUZI2_9655
switch_start $p_current_square {numCases} 48 {hasDefaultCase} 0 {defaultLabel} @WUZI2_12067 {caseNum1} 0 {caseLabel1} @WUZI2_10043 {caseNum2} 1 {caseLabel2} @WUZI2_10043 {caseNum3} 2 {caseLabel3} @WUZI2_10099 {caseNum4} 3 {caseLabel4} @WUZI2_10099 {caseNum5} 4 {caseLabel5} @WUZI2_10155 {caseNum6} 5 {caseLabel6} @WUZI2_10211 {caseNum7} 6 {caseLabel7} @WUZI2_10267
switch_continued 7 {caseLabel1} @WUZI2_10267 {caseNum2} 8 {caseLabel2} @WUZI2_10323 {caseNum3} 9 {caseLabel3} @WUZI2_10379 {caseNum4} 10 {caseLabel4} @WUZI2_10379 {caseNum5} 11 {caseLabel5} @WUZI2_10435 {caseNum6} 12 {caseLabel6} @WUZI2_10491 {caseNum7} 13 {caseLabel7} @WUZI2_10547 {caseNum8} 14 {caseLabel8} @WUZI2_10603 {caseNum9} 15 {caseLabel9} @WUZI2_10267
switch_continued 16 {caseLabel1} @WUZI2_10659 {caseNum2} 17 {caseLabel2} @WUZI2_10715 {caseNum3} 18 {caseLabel3} @WUZI2_10771 {caseNum4} 19 {caseLabel4} @WUZI2_10827 {caseNum5} 20 {caseLabel5} @WUZI2_10883 {caseNum6} 21 {caseLabel6} @WUZI2_10939 {caseNum7} 22 {caseLabel7} @WUZI2_11041 {caseNum8} 23 {caseLabel8} @WUZI2_11143 {caseNum9} 24 {caseLabel9} @WUZI2_11199
switch_continued 25 {caseLabel1} @WUZI2_11255 {caseNum2} 26 {caseLabel2} @WUZI2_11311 {caseNum3} 27 {caseLabel3} @WUZI2_11413 {caseNum4} 28 {caseLabel4} @WUZI2_11547 {caseNum5} 29 {caseLabel5} @WUZI2_11041 {caseNum6} 30 {caseLabel6} @WUZI2_10939 {caseNum7} 31 {caseLabel7} @WUZI2_11603 {caseNum8} 32 {caseLabel8} @WUZI2_11659 {caseNum9} 33 {caseLabel9} @WUZI2_11715
switch_continued 34 {caseLabel1} @WUZI2_11413 {caseNum2} 35 {caseLabel2} @WUZI2_11311 {caseNum3} 36 {caseLabel3} @WUZI2_11803 {caseNum4} 37 {caseLabel4} @WUZI2_11891 {caseNum5} 38 {caseLabel5} @WUZI2_11979 {caseNum6} 39 {caseLabel6} @WUZI2_11979 {caseNum7} 40 {caseLabel7} @WUZI2_11659 {caseNum8} 41 {caseLabel8} @WUZI2_11659 {caseNum9} 42 {caseLabel9} @WUZI2_11715
switch_continued 43 {caseLabel1} @WUZI2_11803 {caseNum2} 44 {caseLabel2} @WUZI2_11803 {caseNum3} 45 {caseLabel3} @WUZI2_11891 {caseNum4} 46 {caseLabel4} @WUZI2_11979 {caseNum5} 47 {caseLabel5} @WUZI2_11979 {caseNum6} -1 {caseLabel6} @WUZI2_12067 {caseNum7} -1 {caseLabel7} @WUZI2_12067 {caseNum8} -1 {caseLabel8} @WUZI2_12067 {caseNum9} -1 {caseLabel9} @WUZI2_12067

:WUZI2_10043
360@ = 17
362@ = 0
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$square_attack_status_W2 = -1
goto @WUZI2_12067

:WUZI2_10099
360@ = 18
362@ = 1
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$square_attack_status_W2 = 4
goto @WUZI2_12067

:WUZI2_10155
360@ = 18
362@ = 1
364@ = 1
361@ = 12
363@ = 3
365@ = 0
$square_attack_status_W2 = 4
goto @WUZI2_12067

:WUZI2_10211
360@ = 18
362@ = 1
364@ = 1
361@ = 13
363@ = 4
365@ = 0
$square_attack_status_W2 = 4
goto @WUZI2_12067

:WUZI2_10267
360@ = 18
362@ = 1
364@ = 1
361@ = 14
363@ = 5
365@ = 0
$square_attack_status_W2 = 4
goto @WUZI2_12067

:WUZI2_10323
360@ = 17
362@ = 0
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$square_attack_status_W2 = 3
goto @WUZI2_12067

:WUZI2_10379
360@ = 18
362@ = 1
364@ = 1
361@ = 11
363@ = 2
365@ = 0
$square_attack_status_W2 = 5
goto @WUZI2_12067

:WUZI2_10435
360@ = 18
362@ = 1
364@ = 1
361@ = 12
363@ = 3
365@ = 0
$square_attack_status_W2 = 2
goto @WUZI2_12067

:WUZI2_10491
360@ = 18
362@ = 1
364@ = 1
361@ = 20
363@ = 3
365@ = 1
$square_attack_status_W2 = 1
goto @WUZI2_12067

:WUZI2_10547
360@ = 18
362@ = 1
364@ = 1
361@ = 21
363@ = 4
365@ = 1
$square_attack_status_W2 = 1
goto @WUZI2_12067

:WUZI2_10603
360@ = 18
362@ = 1
364@ = 1
361@ = 22
363@ = 5
365@ = 1
$square_attack_status_W2 = 1
goto @WUZI2_12067

:WUZI2_10659
360@ = 17
362@ = 0
364@ = 1
361@ = 20
363@ = 3
365@ = 1
$square_attack_status_W2 = 3
goto @WUZI2_12067

:WUZI2_10715
360@ = 25
362@ = 0
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$square_attack_status_W2 = 0
goto @WUZI2_12067

:WUZI2_10771
360@ = 26
362@ = 1
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$square_attack_status_W2 = 0
goto @WUZI2_12067

:WUZI2_10827
360@ = 27
362@ = 2
364@ = 2
361@ = 20
363@ = 3
365@ = 1
$square_attack_status_W2 = 2
goto @WUZI2_12067

:WUZI2_10883
360@ = 27
362@ = 2
364@ = 2
361@ = 28
363@ = 3
365@ = 2
$square_attack_status_W2 = 1
goto @WUZI2_12067

:WUZI2_10939
360@ = 27
362@ = 2
364@ = 2
if 
  $p_last_square == 29
goto_if_false @WUZI2_11006
361@ = 22
363@ = 5
365@ = 1
goto @WUZI2_11027

:WUZI2_11006
361@ = 29
363@ = 4
365@ = 2

:WUZI2_11027
$square_attack_status_W2 = 1
goto @WUZI2_12067

:WUZI2_11041
360@ = 27
362@ = 2
364@ = 2
if 
  $p_last_square == 30
goto_if_false @WUZI2_11108
361@ = 21
363@ = 4
365@ = 1
goto @WUZI2_11129

:WUZI2_11108
361@ = 30
363@ = 5
365@ = 2

:WUZI2_11129
$square_attack_status_W2 = 1
goto @WUZI2_12067

:WUZI2_11143
360@ = 27
362@ = 2
364@ = 2
361@ = 22
363@ = 5
365@ = 1
$square_attack_status_W2 = 4
goto @WUZI2_12067

:WUZI2_11199
360@ = 25
362@ = 0
364@ = 2
361@ = 28
363@ = 3
365@ = 2
$square_attack_status_W2 = 3
goto @WUZI2_12067

:WUZI2_11255
360@ = 33
362@ = 0
364@ = 3
361@ = 28
363@ = 3
365@ = 2
$square_attack_status_W2 = 0
goto @WUZI2_12067

:WUZI2_11311
if 
  $p_last_square == 34
goto_if_false @WUZI2_11357
360@ = 27
362@ = 2
364@ = 2
goto @WUZI2_11378

:WUZI2_11357
360@ = 34
362@ = 1
364@ = 3

:WUZI2_11378
361@ = 28
363@ = 3
365@ = 2
$square_attack_status_W2 = 0
goto @WUZI2_12067

:WUZI2_11413
if 
  $p_last_square == 35
goto_if_false @WUZI2_11459
360@ = 26
362@ = 1
364@ = 2
goto @WUZI2_11480

:WUZI2_11459
360@ = 35
362@ = 2
364@ = 3

:WUZI2_11480
361@ = 28
363@ = 3
365@ = 2
if 
  $p_current_square == 27
goto_if_false @WUZI2_11533
$square_attack_status_W2 = 2
goto @WUZI2_11540

:WUZI2_11533
$square_attack_status_W2 = 0

:WUZI2_11540
goto @WUZI2_12067

:WUZI2_11547
360@ = 27
362@ = 2
364@ = 2
361@ = 29
363@ = 4
365@ = 2
$square_attack_status_W2 = 2
goto @WUZI2_12067

:WUZI2_11603
360@ = 27
362@ = 2
364@ = 2
361@ = 30
363@ = 5
365@ = 2
$square_attack_status_W2 = 4
goto @WUZI2_12067

:WUZI2_11659
360@ = 33
362@ = 0
364@ = 3
361@ = 28
363@ = 3
365@ = 2
$square_attack_status_W2 = 3
goto @WUZI2_12067

:WUZI2_11715
360@ = 34
362@ = 1
364@ = 3
361@ = 28
363@ = 3
365@ = 2
if 
  $square_attack_status_W2 == 33
goto_if_false @WUZI2_11789
$square_attack_status_W2 = 0
goto @WUZI2_11796

:WUZI2_11789
$square_attack_status_W2 = 3

:WUZI2_11796
goto @WUZI2_12067

:WUZI2_11803
360@ = 35
362@ = 2
364@ = 3
361@ = 28
363@ = 3
365@ = 2
if 
  $square_attack_status_W2 == 36
goto_if_false @WUZI2_11877
$square_attack_status_W2 = 5
goto @WUZI2_11884

:WUZI2_11877
$square_attack_status_W2 = 3

:WUZI2_11884
goto @WUZI2_12067

:WUZI2_11891
360@ = 35
362@ = 2
364@ = 3
361@ = 29
363@ = 4
365@ = 2
if 
  $square_attack_status_W2 == 37
goto_if_false @WUZI2_11965
$square_attack_status_W2 = 4
goto @WUZI2_11972

:WUZI2_11965
$square_attack_status_W2 = -1

:WUZI2_11972
goto @WUZI2_12067

:WUZI2_11979
360@ = 35
362@ = 2
364@ = 3
361@ = 30
363@ = 5
365@ = 2
if 
  40 > $square_attack_status_W2
goto_if_false @WUZI2_12053
$square_attack_status_W2 = 4
goto @WUZI2_12060

:WUZI2_12053
$square_attack_status_W2 = -1

:WUZI2_12060
goto @WUZI2_12067

:WUZI2_12067
$pointer_W2 = 0

:WUZI2_12074
if 
  2 > $pointer_W2
goto_if_false @WUZI2_12192
if 
  not is_int_lvar_equal_to_int_lvar 296@($pointer_W2,2i) == 360@($pointer_W2,2i)
goto_if_false @WUZI2_12178
set_lvar_int_to_lvar_int 353@($pointer_W2,2i) = 362@($pointer_W2,2i)
set_lvar_int_to_lvar_int 355@($pointer_W2,2i) = 364@($pointer_W2,2i)
294@($pointer_W2,2i) = 1
set_lvar_int_to_lvar_int 296@($pointer_W2,2i) = 360@($pointer_W2,2i)

:WUZI2_12178
$pointer_W2 += 1
goto @WUZI2_12074

:WUZI2_12192
return 

:WUZI2_12194
$pointer_W2 = 0

:WUZI2_12201
if 
  2 > $pointer_W2
goto_if_false @WUZI2_13001
if 
  not is_car_dead 290@($pointer_W2,2i)
goto_if_false @WUZI2_12987
switch_start 294@($pointer_W2,2i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_12987 {caseNum1} 1 {caseLabel1} @WUZI2_12306 {caseNum2} 2 {caseLabel2} @WUZI2_12417 {caseNum3} 3 {caseLabel3} @WUZI2_12882 {caseNum4} -1 {caseLabel4} @WUZI2_12987 {caseNum5} -1 {caseLabel5} @WUZI2_12987 {caseNum6} -1 {caseLabel6} @WUZI2_12987 {caseNum7} -1 {caseLabel7} @WUZI2_12987

:WUZI2_12306
set_lvar_int_to_lvar_int 366@ = 353@($pointer_W2,2i)
set_lvar_int_to_lvar_int 367@ = 355@($pointer_W2,2i)
anchor_boat 290@($pointer_W2,2i) {state} False
boat_goto_coords 290@($pointer_W2,2i) {x} 343@(366@,6f) {y} 349@(367@,4f) {z} 0.0
set_boat_cruise_speed 290@($pointer_W2,2i) {maxSpeed} 7.0
get_car_speed 290@($pointer_W2,2i) {var_speed} 314@($pointer_W2,2f)
294@($pointer_W2,2i) += 1
goto @WUZI2_12987

:WUZI2_12417
set_lvar_int_to_lvar_int 366@ = 353@($pointer_W2,2i)
set_lvar_int_to_lvar_int 367@ = 355@($pointer_W2,2i)
if 
  locate_car_2d 290@($pointer_W2,2i) {x} 343@(366@,6f) {y} 349@(367@,4f) {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @WUZI2_12521
get_car_speed 290@($pointer_W2,2i) {var_speed} 314@($pointer_W2,2f)
294@($pointer_W2,2i) += 1
goto @WUZI2_12875

:WUZI2_12521
if 
  is_float_lvar_greater_than_float_lvar 357@ > 314@($pointer_W2,2f)
goto_if_false @WUZI2_12572
add_float_lvar_to_float_lvar 314@($pointer_W2,2f) += 358@
set_car_forward_speed 290@($pointer_W2,2i) {forwardSpeed} 314@($pointer_W2,2f)

:WUZI2_12572
get_car_coordinates 290@($pointer_W2,2i) {var_x} 316@($pointer_W2,2f) {var_y} 318@($pointer_W2,2f) {var_z} $z
get_car_heading 290@($pointer_W2,2i) {var_heading} 320@($pointer_W2,2f)
set_var_float_to_lvar_float $x = 343@(366@,6f)
sub_float_lvar_from_float_var $x -= 316@($pointer_W2,2f)
set_var_float_to_lvar_float $y = 349@(367@,4f)
sub_float_lvar_from_float_var $y -= 318@($pointer_W2,2f)

:WUZI2_12662
if 
  320@($pointer_W2,2f) >= 180.0
goto_if_false @WUZI2_12708
320@($pointer_W2,2f) += -360.0
goto @WUZI2_12662

:WUZI2_12708
$heading = get_heading_from_vector_2d $x {y} $y

:WUZI2_12719
if 
  $heading >= 180.0
goto_if_false @WUZI2_12757
$heading += -360.0
goto @WUZI2_12719

:WUZI2_12757
set_var_float_to_var_float $z = $heading
sub_float_lvar_from_float_var $z -= 320@($pointer_W2,2f)
if 
  -180.0 >= $z
goto_if_false @WUZI2_12808
$z += 360.0

:WUZI2_12808
if 
  $z >= 180.0
goto_if_false @WUZI2_12839
$z += -360.0

:WUZI2_12839
div_float_var_by_float_lvar $z /= 359@
add_float_var_to_float_lvar 320@($pointer_W2,2f) += $z
set_car_heading 290@($pointer_W2,2i) {heading} 320@($pointer_W2,2f)

:WUZI2_12875
goto @WUZI2_12987

:WUZI2_12882
sub_float_lvar_from_float_lvar 314@($pointer_W2,2f) -= 358@
set_car_forward_speed 290@($pointer_W2,2i) {forwardSpeed} 314@($pointer_W2,2f)
if 
  2.5 > 314@($pointer_W2,2f)
goto_if_false @WUZI2_12980
set_car_forward_speed 290@($pointer_W2,2i) {forwardSpeed} 1.0
boat_stop 290@($pointer_W2,2i)
anchor_boat 290@($pointer_W2,2i) {state} True
294@($pointer_W2,2i) = 0

:WUZI2_12980
goto @WUZI2_12987

:WUZI2_12987
$pointer_W2 += 1
goto @WUZI2_12201

:WUZI2_13001
return 

:WUZI2_13003
$pointer_W2 = 0
$player_x, $player_y, $player_z = get_char_coordinates $scplayer

:WUZI2_13024
if 
  2 > $pointer_W2
goto_if_false @WUZI2_14314
if 
  not is_car_dead 290@($pointer_W2,2i)
goto_if_false @WUZI2_14238
368@($pointer_W2,2i) = 0
switch_start $pointer_W2 {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_13399 {caseNum1} 0 {caseLabel1} @WUZI2_13136 {caseNum2} 1 {caseLabel2} @WUZI2_13278 {caseNum3} -1 {caseLabel3} @WUZI2_13399 {caseNum4} -1 {caseLabel4} @WUZI2_13399 {caseNum5} -1 {caseLabel5} @WUZI2_13399 {caseNum6} -1 {caseLabel6} @WUZI2_13399 {caseNum7} -1 {caseLabel7} @WUZI2_13399

:WUZI2_13136
if or
  $square_attack_status_W2 == 0
  $square_attack_status_W2 == 2
goto_if_false @WUZI2_13179
368@($pointer_W2,2i) = 1
goto @WUZI2_13271

:WUZI2_13179
if or
  $square_attack_status_W2 == 3
  $square_attack_status_W2 == 5
goto_if_false @WUZI2_13271
$x, $y, $z = get_car_coordinates 290@($pointer_W2,2i)
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  29.0 > $distance
goto_if_false @WUZI2_13271
368@($pointer_W2,2i) = 1

:WUZI2_13271
goto @WUZI2_13399

:WUZI2_13278
if or
  $square_attack_status_W2 == 1
  $square_attack_status_W2 == 2
goto_if_false @WUZI2_13321
368@($pointer_W2,2i) = 1
goto @WUZI2_13392

:WUZI2_13321
if or
  $square_attack_status_W2 == 4
  $square_attack_status_W2 == 5
goto_if_false @WUZI2_13392
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 290@($pointer_W2,2i) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @WUZI2_13392
368@($pointer_W2,2i) = 1

:WUZI2_13392
goto @WUZI2_13399

:WUZI2_13399
switch_start $guard_status_W2($pointer_W2,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_14231 {caseNum1} 0 {caseLabel1} @WUZI2_13466 {caseNum2} 1 {caseLabel2} @WUZI2_13732 {caseNum3} 2 {caseLabel3} @WUZI2_13841 {caseNum4} 3 {caseLabel4} @WUZI2_13986 {caseNum5} 4 {caseLabel5} @WUZI2_14136 {caseNum6} -1 {caseLabel6} @WUZI2_14231 {caseNum7} -1 {caseLabel7} @WUZI2_14231

:WUZI2_13466
if 
  $player_breath_W2 == 0
goto_if_false @WUZI2_13725
if or
  368@($pointer_W2,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13639
set_var_int_to_var_int $guard_pointer_W2 = $pointer_W2
$guard_pointer_W2 *= 3
set_var_int_to_var_int $guard_limit_W2 = $guard_pointer_W2
$guard_limit_W2 += 3

:WUZI2_13543
if 
  is_int_var_greater_than_int_var $guard_limit_W2 > $guard_pointer_W2
goto_if_false @WUZI2_13632
if 
  not is_char_dead 308@($guard_pointer_W2,6i)
goto_if_false @WUZI2_13618
set_var_float_to_lvar_float $heading = 320@($pointer_W2,2f)
sub_float_lvar_from_float_var $heading -= 322@($guard_pointer_W2,6f)
set_char_heading 308@($guard_pointer_W2,6i) {heading} $heading

:WUZI2_13618
$guard_pointer_W2 += 1
goto @WUZI2_13543

:WUZI2_13632
goto @WUZI2_13725

:WUZI2_13639
if or
  286@ == 1
  $player_status_W2 >= 3
goto_if_false @WUZI2_13689
gosub @WUZI2_14316
$guard_status_W2($pointer_W2,2i) = 3
goto @WUZI2_13725

:WUZI2_13689
if 
  0 >= $player_status_W2
goto_if_false @WUZI2_13714
288@ = 0

:WUZI2_13714
$guard_status_W2($pointer_W2,2i) += 1

:WUZI2_13725
goto @WUZI2_14231

:WUZI2_13732
if or
  368@($pointer_W2,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13790
$guard_timer_W2($pointer_W2,2i) = 0
$guard_status_W2($pointer_W2,2i) += 1
goto @WUZI2_13834

:WUZI2_13790
if or
  288@ > 6000
  286@ == 1
goto_if_false @WUZI2_13834
gosub @WUZI2_14316
$guard_status_W2($pointer_W2,2i) = 3

:WUZI2_13834
goto @WUZI2_14231

:WUZI2_13841
if or
  368@($pointer_W2,2i) == 0
  287@ == 1
goto_if_false @WUZI2_13911
if 
  $guard_timer_W2($pointer_W2,2i) > 3000
goto_if_false @WUZI2_13904
$guard_status_W2($pointer_W2,2i) = 0

:WUZI2_13904
goto @WUZI2_13979

:WUZI2_13911
if and
  3 > $player_status_W2
  286@ == 0
goto_if_false @WUZI2_13961
288@ = 0
$guard_status_W2($pointer_W2,2i) -= 1
goto @WUZI2_13979

:WUZI2_13961
gosub @WUZI2_14316
$guard_status_W2($pointer_W2,2i) = 3

:WUZI2_13979
goto @WUZI2_14231

:WUZI2_13986
if or
  368@($pointer_W2,2i) == 0
  287@ == 1
goto_if_false @WUZI2_14129
set_var_int_to_var_int $guard_pointer_W2 = $pointer_W2
$guard_pointer_W2 *= 3
set_var_int_to_var_int $guard_limit_W2 = $guard_pointer_W2
$guard_limit_W2 += 3

:WUZI2_14045
if 
  is_int_var_greater_than_int_var $guard_limit_W2 > $guard_pointer_W2
goto_if_false @WUZI2_14107
if 
  not is_char_dead 308@($guard_pointer_W2,6i)
goto_if_false @WUZI2_14093
clear_char_tasks 308@($guard_pointer_W2,6i)

:WUZI2_14093
$guard_pointer_W2 += 1
goto @WUZI2_14045

:WUZI2_14107
$guard_timer_W2($pointer_W2,2i) = 0
$guard_status_W2($pointer_W2,2i) += 1

:WUZI2_14129
goto @WUZI2_14231

:WUZI2_14136
if or
  368@($pointer_W2,2i) == 0
  287@ == 1
goto_if_false @WUZI2_14206
if 
  $guard_timer_W2($pointer_W2,2i) > 5000
goto_if_false @WUZI2_14199
$guard_status_W2($pointer_W2,2i) = 0

:WUZI2_14199
goto @WUZI2_14224

:WUZI2_14206
gosub @WUZI2_14316
$guard_status_W2($pointer_W2,2i) = 3

:WUZI2_14224
goto @WUZI2_14231

:WUZI2_14231
goto @WUZI2_14300

:WUZI2_14238
if 
  does_blip_exist 292@($pointer_W2,2i)
goto_if_false @WUZI2_14267
remove_blip 292@($pointer_W2,2i)

:WUZI2_14267
if 
  $guard_status_W2($pointer_W2,2i) <> 0
goto_if_false @WUZI2_14300
$guard_status_W2($pointer_W2,2i) = 0

:WUZI2_14300
$pointer_W2 += 1
goto @WUZI2_13024

:WUZI2_14314
return 

:WUZI2_14316
set_var_int_to_var_int $guard_pointer_W2 = $pointer_W2
$guard_pointer_W2 *= 3
set_var_int_to_var_int $guard_limit_W2 = $guard_pointer_W2
$guard_limit_W2 += 3

:WUZI2_14346
if 
  is_int_var_greater_than_int_var $guard_limit_W2 > $guard_pointer_W2
goto_if_false @WUZI2_14420
if 
  not is_char_dead 308@($guard_pointer_W2,6i)
goto_if_false @WUZI2_14406
clear_char_tasks 308@($guard_pointer_W2,6i)
task_kill_char_on_foot 308@($guard_pointer_W2,6i) {target} $scplayer

:WUZI2_14406
$guard_pointer_W2 += 1
goto @WUZI2_14346

:WUZI2_14420
return 

:WUZI2_14422
switch_start $player_status_W2 {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WUZI2_15489 {caseNum1} -2 {caseLabel1} @WUZI2_14485 {caseNum2} -1 {caseLabel2} @WUZI2_14531 {caseNum3} 0 {caseLabel3} @WUZI2_14586 {caseNum4} 1 {caseLabel4} @WUZI2_14742 {caseNum5} 2 {caseLabel5} @WUZI2_14919 {caseNum6} 3 {caseLabel6} @WUZI2_15124 {caseNum7} 4 {caseLabel7} @WUZI2_15248

:WUZI2_14485
if 
  287@ == 0
goto_if_false @WUZI2_14524
370@, 371@, $z = get_char_coordinates $scplayer
$player_status_W2 = -1

:WUZI2_14524
goto @WUZI2_15489

:WUZI2_14531
if 
  not locate_char_on_foot_2d $scplayer {x} 370@ {y} 371@ {xRadius} 2.5 {yRadius} 2.5 {drawSphere} False
goto_if_false @WUZI2_14579
$player_breath_W2 = 0
$player_status_W2 = 0

:WUZI2_14579
goto @WUZI2_15489

:WUZI2_14586
if or
  $guard_status_W2[0] > 0
  $guard_status_W2[1] > 0
goto_if_false @WUZI2_14735
if and
  3 > $guard_status_W2[0]
  3 > $guard_status_W2[1]
goto_if_false @WUZI2_14689
123@ = 0
gosub @WUZI2_17920
$player_status_W2 = 1
if 
  $player_first_spot_W2 == 0
goto_if_false @WUZI2_14682
$player_first_spot_W2 = 1

:WUZI2_14682
goto @WUZI2_14735

:WUZI2_14689
123@ = 18
gosub @WUZI2_17920
$player_status_W2 = 3
if 
  $player_first_spot_W2 == 0
goto_if_false @WUZI2_14735
$player_first_spot_W2 = 1

:WUZI2_14735
goto @WUZI2_15489

:WUZI2_14742
if or
  $guard_status_W2[0] >= 3
  $guard_status_W2[1] >= 3
goto_if_false @WUZI2_14795
123@ = 18
gosub @WUZI2_17920
$player_status_W2 = 3
goto @WUZI2_14912

:WUZI2_14795
if and
  $guard_status_W2[0] <> 1
  $guard_status_W2[1] <> 1
goto_if_false @WUZI2_14912
if or
  $guard_status_W2[0] == 2
  $guard_status_W2[1] == 2
goto_if_false @WUZI2_14859
$player_status_W2 = 2
goto @WUZI2_14912

:WUZI2_14859
if or
  $guard_status_W2[0] == 0
  $guard_status_W2[1] == 0
goto_if_false @WUZI2_14912
123@ = 9
gosub @WUZI2_17920
$player_breath_W2 = 1
$player_status_W2 = -2

:WUZI2_14912
goto @WUZI2_15489

:WUZI2_14919
if or
  $guard_status_W2[0] >= 3
  $guard_status_W2[1] >= 3
goto_if_false @WUZI2_14972
123@ = 18
gosub @WUZI2_17920
$player_status_W2 = 3
goto @WUZI2_15117

:WUZI2_14972
if and
  $guard_status_W2[0] <> 2
  $guard_status_W2[1] <> 2
goto_if_false @WUZI2_15117
if or
  $guard_status_W2[0] == 1
  $guard_status_W2[1] == 1
goto_if_false @WUZI2_15057
123@ = 0
gosub @WUZI2_18052
gosub @WUZI2_17920
$player_status_W2 = 1
goto @WUZI2_15117

:WUZI2_15057
if or
  $guard_status_W2[0] == 0
  $guard_status_W2[1] == 0
goto_if_false @WUZI2_15117
123@ = 9
gosub @WUZI2_17920
gosub @WUZI2_18052
$player_breath_W2 = 1
$player_status_W2 = -2

:WUZI2_15117
goto @WUZI2_15489

:WUZI2_15124
if and
  $guard_status_W2[0] <> 3
  $guard_status_W2[1] <> 3
goto_if_false @WUZI2_15241
if or
  $guard_status_W2[0] == 4
  $guard_status_W2[1] == 4
goto_if_false @WUZI2_15241
123@ = 27
if 
  $guard_status_W2[0] == 4
goto_if_false @WUZI2_15213
125@ = 0
goto @WUZI2_15220

:WUZI2_15213
125@ = 1

:WUZI2_15220
gosub @WUZI2_17920
$player_status_W2 = 4
gosub @WUZI2_18052

:WUZI2_15241
goto @WUZI2_15489

:WUZI2_15248
if and
  $guard_status_W2[0] <> 4
  $guard_status_W2[1] <> 4
goto_if_false @WUZI2_15482
if or
  $guard_status_W2[0] == 3
  $guard_status_W2[1] == 3
goto_if_false @WUZI2_15429
if 
  $guard_status_W2[0] == 3
goto_if_false @WUZI2_15362
if 
  125@ == 0
goto_if_false @WUZI2_15348
123@ = 45
goto @WUZI2_15355

:WUZI2_15348
123@ = 45

:WUZI2_15355
goto @WUZI2_15401

:WUZI2_15362
if 
  125@ == 1
goto_if_false @WUZI2_15394
123@ = 45
goto @WUZI2_15401

:WUZI2_15394
123@ = 45

:WUZI2_15401
gosub @WUZI2_18052
gosub @WUZI2_17920
$player_status_W2 = 3
goto @WUZI2_15482

:WUZI2_15429
if and
  $guard_status_W2[0] == 0
  $guard_status_W2[1] == 0
goto_if_false @WUZI2_15482
123@ = 36
gosub @WUZI2_17920
$player_breath_W2 = 1
$player_status_W2 = -2

:WUZI2_15482
goto @WUZI2_15489

:WUZI2_15489
switch_start $player_first_spot_W2 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @WUZI2_16053 {caseNum1} 0 {caseLabel1} @WUZI2_15552 {caseNum2} 1 {caseLabel2} @WUZI2_15602 {caseNum3} 2 {caseLabel3} @WUZI2_15634 {caseNum4} 3 {caseLabel4} @WUZI2_15737 {caseNum5} 4 {caseLabel5} @WUZI2_15840 {caseNum6} 5 {caseLabel6} @WUZI2_15943 {caseNum7} -1 {caseLabel7} @WUZI2_16053

:WUZI2_15552
if 
  284@ == 1
goto_if_false @WUZI2_15595
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1

:WUZI2_15595
goto @WUZI2_16053

:WUZI2_15602
print_help_forever 'WZI2_36'
TIMERB = 0
$player_first_spot_W2 += 1
goto @WUZI2_16053

:WUZI2_15634
if 
  TIMERB > 6000
goto_if_false @WUZI2_15730
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_15705
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
goto @WUZI2_15730

:WUZI2_15705
print_help_forever 'WZI2_37'
TIMERB = 0
$player_first_spot_W2 += 1

:WUZI2_15730
goto @WUZI2_16053

:WUZI2_15737
if 
  TIMERB > 6000
goto_if_false @WUZI2_15833
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_15808
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
goto @WUZI2_15833

:WUZI2_15808
print_help_forever 'WZI2_38'
TIMERB = 0
$player_first_spot_W2 += 1

:WUZI2_15833
goto @WUZI2_16053

:WUZI2_15840
if 
  TIMERB > 6000
goto_if_false @WUZI2_15936
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_15911
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
goto @WUZI2_15936

:WUZI2_15911
print_help_forever 'WZI2_39'
TIMERB = 0
$player_first_spot_W2 += 1

:WUZI2_15936
goto @WUZI2_16053

:WUZI2_15943
if 
  TIMERB > 6000
goto_if_false @WUZI2_16046
clear_help 
if 
  284@ == 1
goto_if_false @WUZI2_16021
print_help_forever 'WZI2_42'
TIMERB = 0
284@ += 1
$player_first_spot_W2 += 1
goto @WUZI2_16046

:WUZI2_16021
if 
  284@ == 2
goto_if_false @WUZI2_16046
$player_first_spot_W2 += 1

:WUZI2_16046
goto @WUZI2_16053

:WUZI2_16053
return 

:WUZI2_16055
372@ = 0

:WUZI2_16062
if 
  6 > 372@
goto_if_false @WUZI2_16179
if 
  not is_char_dead 308@(372@,6i)
goto_if_false @WUZI2_16158
if 
  has_char_been_damaged_by_char 308@(372@,6i) {handle} $scplayer
goto_if_false @WUZI2_16144
373@ = 1
372@ = 6
goto @WUZI2_16151

:WUZI2_16144
372@ += 1

:WUZI2_16151
goto @WUZI2_16172

:WUZI2_16158
373@ = 1
372@ = 6

:WUZI2_16172
goto @WUZI2_16062

:WUZI2_16179
if 
  373@ == 0
goto_if_false @WUZI2_16321
372@ = 0

:WUZI2_16204
if 
  6 > 372@
goto_if_false @WUZI2_16321
if 
  not is_char_dead 417@(372@,6i)
goto_if_false @WUZI2_16300
if 
  has_char_been_damaged_by_char 417@(372@,6i) {handle} $scplayer
goto_if_false @WUZI2_16286
373@ = 1
372@ = 6
goto @WUZI2_16293

:WUZI2_16286
372@ += 1

:WUZI2_16293
goto @WUZI2_16314

:WUZI2_16300
373@ = 1
372@ = 6

:WUZI2_16314
goto @WUZI2_16204

:WUZI2_16321
if 
  373@ == 1
goto_if_false @WUZI2_16353
gosub @WUZI2_16355
373@ = 2

:WUZI2_16353
return 

:WUZI2_16355
clear_help 
clear_prints 
if 
  not is_car_dead 290@
goto_if_false @WUZI2_16406
if 
  not does_blip_exist 292@
goto_if_false @WUZI2_16406
292@ = add_blip_for_car 290@
change_blip_display 292@ {display} BlipDisplay.BlipOnly

:WUZI2_16406
if 
  not is_car_dead 291@
goto_if_false @WUZI2_16453
if 
  not does_blip_exist 293@
goto_if_false @WUZI2_16453
293@ = add_blip_for_car 291@
change_blip_display 293@ {display} BlipDisplay.BlipOnly

:WUZI2_16453
if 
  not is_car_dead 413@
goto_if_false @WUZI2_16500
if 
  not does_blip_exist 415@
goto_if_false @WUZI2_16500
415@ = add_blip_for_car 413@
change_blip_display 415@ {display} BlipDisplay.BlipOnly

:WUZI2_16500
if 
  not is_car_dead 414@
goto_if_false @WUZI2_16547
if 
  not does_blip_exist 416@
goto_if_false @WUZI2_16547
416@ = add_blip_for_car 414@
change_blip_display 416@ {display} BlipDisplay.BlipOnly

:WUZI2_16547
372@ = 0

:WUZI2_16554
if 
  6 > 372@
goto_if_false @WUZI2_16670
if 
  not is_char_dead 308@(372@,6i)
goto_if_false @WUZI2_16614
set_char_accuracy 308@(372@,6i) {accuracy} 80
set_char_shoot_rate 308@(372@,6i) {rate} 50

:WUZI2_16614
if 
  not is_char_dead 417@(372@,6i)
goto_if_false @WUZI2_16656
set_char_accuracy 417@(372@,6i) {accuracy} 80
set_char_shoot_rate 417@(372@,6i) {rate} 50

:WUZI2_16656
372@ += 1
goto @WUZI2_16554

:WUZI2_16670
374@ = 0
375@ = 0
376@ = 0
377@ = 0
return 

:WUZI2_16700
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  not is_car_dead 290@
goto_if_false @WUZI2_16994
if 
  374@ == 0
goto_if_false @WUZI2_16883
if 
  locate_car_2d 290@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_16876
if 
  not is_char_dead 308@
goto_if_false @WUZI2_16811
clear_char_tasks 308@
task_kill_char_on_foot 308@ {target} $scplayer

:WUZI2_16811
if 
  not is_char_dead 309@
goto_if_false @WUZI2_16840
clear_char_tasks 309@
task_kill_char_on_foot 309@ {target} $scplayer

:WUZI2_16840
if 
  not is_char_dead 310@
goto_if_false @WUZI2_16869
clear_char_tasks 310@
task_kill_char_on_foot 310@ {target} $scplayer

:WUZI2_16869
374@ = 1

:WUZI2_16876
goto @WUZI2_16987

:WUZI2_16883
if 
  not locate_car_2d 290@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_16987
if 
  not is_char_dead 308@
goto_if_false @WUZI2_16938
clear_char_tasks 308@

:WUZI2_16938
if 
  not is_char_dead 309@
goto_if_false @WUZI2_16959
clear_char_tasks 309@

:WUZI2_16959
if 
  not is_char_dead 310@
goto_if_false @WUZI2_16980
clear_char_tasks 310@

:WUZI2_16980
374@ = 0

:WUZI2_16987
goto @WUZI2_17015

:WUZI2_16994
if 
  does_blip_exist 292@
goto_if_false @WUZI2_17015
remove_blip 292@

:WUZI2_17015
if 
  not is_car_dead 291@
goto_if_false @WUZI2_17295
if 
  375@ == 0
goto_if_false @WUZI2_17184
if 
  locate_car_2d 291@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_17177
if 
  not is_char_dead 311@
goto_if_false @WUZI2_17112
clear_char_tasks 311@
task_kill_char_on_foot 311@ {target} $scplayer

:WUZI2_17112
if 
  not is_char_dead 312@
goto_if_false @WUZI2_17141
clear_char_tasks 312@
task_kill_char_on_foot 312@ {target} $scplayer

:WUZI2_17141
if 
  not is_char_dead 313@
goto_if_false @WUZI2_17170
clear_char_tasks 313@
task_kill_char_on_foot 313@ {target} $scplayer

:WUZI2_17170
375@ = 1

:WUZI2_17177
goto @WUZI2_17288

:WUZI2_17184
if 
  not locate_car_2d 291@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_17288
if 
  not is_char_dead 311@
goto_if_false @WUZI2_17239
clear_char_tasks 311@

:WUZI2_17239
if 
  not is_char_dead 312@
goto_if_false @WUZI2_17260
clear_char_tasks 312@

:WUZI2_17260
if 
  not is_char_dead 313@
goto_if_false @WUZI2_17281
clear_char_tasks 313@

:WUZI2_17281
375@ = 0

:WUZI2_17288
goto @WUZI2_17316

:WUZI2_17295
if 
  does_blip_exist 293@
goto_if_false @WUZI2_17316
remove_blip 293@

:WUZI2_17316
if 
  not is_car_dead 413@
goto_if_false @WUZI2_17596
if 
  376@ == 0
goto_if_false @WUZI2_17485
if 
  locate_car_2d 413@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_17478
if 
  not is_char_dead 417@
goto_if_false @WUZI2_17413
clear_char_tasks 417@
task_kill_char_on_foot 417@ {target} $scplayer

:WUZI2_17413
if 
  not is_char_dead 418@
goto_if_false @WUZI2_17442
clear_char_tasks 418@
task_kill_char_on_foot 418@ {target} $scplayer

:WUZI2_17442
if 
  not is_char_dead 419@
goto_if_false @WUZI2_17471
clear_char_tasks 419@
task_kill_char_on_foot 419@ {target} $scplayer

:WUZI2_17471
376@ = 1

:WUZI2_17478
goto @WUZI2_17589

:WUZI2_17485
if 
  not locate_car_2d 413@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_17589
if 
  not is_char_dead 417@
goto_if_false @WUZI2_17540
clear_char_tasks 417@

:WUZI2_17540
if 
  not is_char_dead 418@
goto_if_false @WUZI2_17561
clear_char_tasks 418@

:WUZI2_17561
if 
  not is_char_dead 419@
goto_if_false @WUZI2_17582
clear_char_tasks 419@

:WUZI2_17582
376@ = 0

:WUZI2_17589
goto @WUZI2_17617

:WUZI2_17596
if 
  does_blip_exist 415@
goto_if_false @WUZI2_17617
remove_blip 415@

:WUZI2_17617
if 
  not is_car_dead 414@
goto_if_false @WUZI2_17897
if 
  377@ == 0
goto_if_false @WUZI2_17786
if 
  locate_car_2d 414@ {x} $player_x {y} $player_y {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
goto_if_false @WUZI2_17779
if 
  not is_char_dead 420@
goto_if_false @WUZI2_17714
clear_char_tasks 420@
task_kill_char_on_foot 420@ {target} $scplayer

:WUZI2_17714
if 
  not is_char_dead 421@
goto_if_false @WUZI2_17743
clear_char_tasks 421@
task_kill_char_on_foot 421@ {target} $scplayer

:WUZI2_17743
if 
  not is_char_dead 422@
goto_if_false @WUZI2_17772
clear_char_tasks 422@
task_kill_char_on_foot 422@ {target} $scplayer

:WUZI2_17772
377@ = 1

:WUZI2_17779
goto @WUZI2_17890

:WUZI2_17786
if 
  not locate_car_2d 414@ {x} $player_x {y} $player_y {xRadius} 85.0 {yRadius} 85.0 {drawSphere} False
goto_if_false @WUZI2_17890
if 
  not is_char_dead 420@
goto_if_false @WUZI2_17841
clear_char_tasks 420@

:WUZI2_17841
if 
  not is_char_dead 421@
goto_if_false @WUZI2_17862
clear_char_tasks 421@

:WUZI2_17862
if 
  not is_char_dead 422@
goto_if_false @WUZI2_17883
clear_char_tasks 422@

:WUZI2_17883
377@ = 0

:WUZI2_17890
goto @WUZI2_17918

:WUZI2_17897
if 
  does_blip_exist 416@
goto_if_false @WUZI2_17918
remove_blip 416@

:WUZI2_17918
return 

:WUZI2_17920
set_lvar_int_to_lvar_int 57@ = 122@
57@ *= 3
add_int_lvar_to_int_lvar 57@ += 121@
add_int_lvar_to_int_lvar 57@ += 123@
if 
  368@ == 1
goto_if_false @WUZI2_17984
set_lvar_int_to_lvar_int 378@ = 121@
goto @WUZI2_17999

:WUZI2_17984
set_lvar_int_to_lvar_int 378@ = 121@
378@ += 3

:WUZI2_17999
set_var_int_to_lvar_int $load_sample = 58@(57@,63i)
set_var_text_label s$load_text = 127@(57@,63s)
start_new_script @A_ALAP 2 124@ 308@(378@,6i) 
124@ += 1
return 

:WUZI2_18052
121@ += 1
if 
  121@ == 3
goto_if_false @WUZI2_18116
121@ = 0
122@ += 1
if 
  122@ == 3
goto_if_false @WUZI2_18116
122@ = 0

:WUZI2_18116
return 

:WUZI2_18118
380@, 381@, 381@ = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Melee
if 
  is_int_lvar_equal_to_constant 380@ == 0
goto_if_false @WUZI2_18166
379@ = 0
goto @WUZI2_18205

:WUZI2_18166
if 
  is_int_lvar_equal_to_constant 380@ == 4
goto_if_false @WUZI2_18198
379@ = 1
goto @WUZI2_18205

:WUZI2_18198
379@ = 2

:WUZI2_18205
return 

:WUZI2_18207
$guard_pointer_W2 = 0

:WUZI2_18214
if 
  6 > $guard_pointer_W2
goto_if_false @WUZI2_18288
if 
  not is_char_dead 308@($guard_pointer_W2,6i)
goto_if_false @WUZI2_18274
set_char_accuracy 308@($guard_pointer_W2,6i) {accuracy} 30
set_char_shoot_rate 308@($guard_pointer_W2,6i) {rate} 30

:WUZI2_18274
$guard_pointer_W2 += 1
goto @WUZI2_18214

:WUZI2_18288
return 

:WUZI2_18290
if 
  382@ == 1
goto_if_false @WUZI2_18640
if and
is_ps2_keyboard_key_pressed 71
  TIMERB > 200
goto_if_false @WUZI2_18345
TIMERB = 0
382@ = 0

:WUZI2_18345
line 331@ {f2} 338@ {f3} 2.0 {f4} 337@ {f5} 338@ {f6} 2.0
line 331@ {f2} 339@ {f3} 2.0 {f4} 337@ {f5} 339@ {f6} 2.0
line 331@ {f2} 340@ {f3} 2.0 {f4} 337@ {f5} 340@ {f6} 2.0
line 331@ {f2} 341@ {f3} 2.0 {f4} 337@ {f5} 341@ {f6} 2.0
line 331@ {f2} 342@ {f3} 2.0 {f4} 337@ {f5} 342@ {f6} 2.0
line 331@ {f2} 338@ {f3} 2.0 {f4} 331@ {f5} 342@ {f6} 2.0
line 332@ {f2} 338@ {f3} 2.0 {f4} 332@ {f5} 342@ {f6} 2.0
line 333@ {f2} 338@ {f3} 2.0 {f4} 333@ {f5} 342@ {f6} 2.0
line 334@ {f2} 338@ {f3} 2.0 {f4} 334@ {f5} 342@ {f6} 2.0
line 335@ {f2} 338@ {f3} 2.0 {f4} 335@ {f5} 342@ {f6} 2.0
line 336@ {f2} 338@ {f3} 2.0 {f4} 336@ {f5} 342@ {f6} 2.0
line 337@ {f2} 338@ {f3} 2.0 {f4} 337@ {f5} 342@ {f6} 2.0
goto @WUZI2_18695

:WUZI2_18640
if 
  382@ == 0
goto_if_false @WUZI2_18695
if and
is_ps2_keyboard_key_pressed 71
  TIMERB > 200
goto_if_false @WUZI2_18695
TIMERB = 0
382@ = 1

:WUZI2_18695
return 

:WUZI2_18697
383@ = create_searchlight -1474.145 {y} 1484.038 {z} 11.3824 {xPoint} -1465.1541 {yPoint} 1463.004 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
389@ = create_object_no_offset #A51_SPOTBASE {x} -1474.145 {y} 1484.038 {z} 10.8824
set_object_heading 389@ {heading} 326.1907
395@ = create_object_no_offset #A51_SPOTHOUSING {x} -1474.145 {y} 1484.038 {z} 10.8824
401@ = create_object_no_offset #A51_SPOTBULB {x} -1474.145 {y} 1484.038 {z} 10.8824
attach_searchlight_to_searchlight_object 383@ {spotTower} 389@ {spotHousing} 395@ {spotBulb} 401@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 401@ {health} 1000
move_searchlight_between_coords 383@ {fromX} -1465.1541 {fromY} 1463.004 {fromZ} -0.5 {toX} -1489.672 {toY} 1472.111 {toZ} -0.5 {speed} 0.1
set_searchlight_clip_if_colliding 383@ {state} False
428@ = 0
384@ = create_searchlight -1474.198 {y} 1494.927 {z} 11.6265 {xPoint} -1459.363 {yPoint} 1514.413 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
390@ = create_object_no_offset #A51_SPOTBASE {x} -1474.198 {y} 1494.927 {z} 10.8824
set_object_heading 390@ {heading} 34.4591
396@ = create_object_no_offset #A51_SPOTHOUSING {x} -1474.198 {y} 1494.927 {z} 10.8824
402@ = create_object_no_offset #A51_SPOTBULB {x} -1474.198 {y} 1494.927 {z} 10.8824
attach_searchlight_to_searchlight_object 384@ {spotTower} 390@ {spotHousing} 396@ {spotBulb} 402@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 402@ {health} 1000
move_searchlight_between_coords 384@ {fromX} -1459.363 {fromY} 1514.413 {fromZ} -0.5 {toX} -1491.379 {toY} 1501.309 {toZ} -0.5 {speed} 0.08
set_searchlight_clip_if_colliding 384@ {state} False
429@ = 0
385@ = create_searchlight -1369.2791 {y} 1484.219 {z} 14.3425 {xPoint} -1351.937 {yPoint} 1504.4351 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
391@ = create_object_no_offset #A51_SPOTBASE {x} -1369.2791 {y} 1484.219 {z} 13.8425
set_object_heading 391@ {heading} 32.5701
397@ = create_object_no_offset #A51_SPOTHOUSING {x} -1369.2791 {y} 1484.219 {z} 13.8425
403@ = create_object_no_offset #A51_SPOTBULB {x} -1369.2791 {y} 1484.219 {z} 13.8425
attach_searchlight_to_searchlight_object 385@ {spotTower} 391@ {spotHousing} 397@ {spotBulb} 403@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 403@ {health} 1000
move_searchlight_between_coords 385@ {fromX} -1347.1429 {fromY} 1476.63 {fromZ} -0.5 {toX} -1370.499 {toY} 1465.479 {toZ} -0.5 {speed} 0.08
set_searchlight_clip_if_colliding 385@ {state} False
430@ = 0
386@ = create_searchlight -1368.467 {y} 1494.225 {z} 14.3425 {xPoint} -1347.1429 {yPoint} 1476.63 {zPoint} -0.5 {radius} 25.0 {radiusPoint} 1.0
392@ = create_object_no_offset #A51_SPOTBASE {x} -1368.467 {y} 1494.225 {z} 13.8425
set_object_heading 392@ {heading} 327.3304
398@ = create_object_no_offset #A51_SPOTHOUSING {x} -1368.467 {y} 1494.225 {z} 13.8425
404@ = create_object_no_offset #A51_SPOTBULB {x} -1368.467 {y} 1494.225 {z} 13.8425
attach_searchlight_to_searchlight_object 386@ {spotTower} 392@ {spotHousing} 398@ {spotBulb} 404@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 404@ {health} 1000
move_searchlight_between_coords 386@ {fromX} -1351.937 {fromY} 1504.4351 {fromZ} -0.5 {toX} -1377.028 {toY} 1515.729 {toZ} -0.5 {speed} 0.1
set_searchlight_clip_if_colliding 386@ {state} False
431@ = 0
413@ = create_car 454 {x} -1491.662 {y} 1488.5 {z} 1.0
set_car_heading 413@ {heading} 180.0
anchor_boat 413@ {state} True
417@ = create_char PedType.Mission1 {modelId} 123 {x} -1521.0 {y} 1492.0 {z} 5.0
attach_char_to_car 417@ {vehicle} 413@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 417@ {state} True
set_char_accuracy 417@ {accuracy} 80
set_char_shoot_rate 417@ {rate} 20
418@ = create_char PedType.Mission1 {modelId} 122 {x} -1521.0 {y} 1492.0 {z} 5.0
attach_char_to_car 418@ {vehicle} 413@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 418@ {state} True
set_char_accuracy 418@ {accuracy} 80
set_char_shoot_rate 418@ {rate} 20
419@ = create_char PedType.Mission1 {modelId} 121 {x} -1521.0 {y} 1492.0 {z} 5.0
attach_char_to_car 419@ {vehicle} 413@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 419@ {state} True
set_char_accuracy 419@ {accuracy} 80
set_char_shoot_rate 419@ {rate} 20
414@ = create_car 454 {x} -1350.12 {y} 1488.5 {z} 1.0
set_car_heading 414@ {heading} 0.0
anchor_boat 414@ {state} True
420@ = create_char PedType.Mission1 {modelId} 123 {x} -1322.0 {y} 1489.5 {z} 5.0
attach_char_to_car 420@ {vehicle} 414@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} 2.1 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 420@ {state} True
set_char_accuracy 420@ {accuracy} 80
set_char_shoot_rate 420@ {rate} 20
421@ = create_char PedType.Mission1 {modelId} 122 {x} -1322.0 {y} 1489.5 {z} 5.0
attach_char_to_car 421@ {vehicle} 414@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 3.7 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 421@ {state} True
set_char_accuracy 421@ {accuracy} 80
set_char_shoot_rate 421@ {rate} 20
422@ = create_char PedType.Mission1 {modelId} 121 {x} -1322.0 {y} 1489.5 {z} 5.0
attach_char_to_car 422@ {vehicle} 414@ {xOffset} 1.0 {yOffset} -4.0 {zOffset} 1.15 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Ak47
task_stay_in_same_place 422@ {state} True
set_char_accuracy 422@ {accuracy} 80
set_char_shoot_rate 422@ {rate} 20
423@ = 0
return 

:WUZI2_20108
switch_start 423@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_20689 {caseNum1} 0 {caseLabel1} @WUZI2_20171 {caseNum2} 1 {caseLabel2} @WUZI2_20483 {caseNum3} -1 {caseLabel3} @WUZI2_20689 {caseNum4} -1 {caseLabel4} @WUZI2_20689 {caseNum5} -1 {caseLabel5} @WUZI2_20689 {caseNum6} -1 {caseLabel6} @WUZI2_20689 {caseNum7} -1 {caseLabel7} @WUZI2_20689

:WUZI2_20171
if 
  287@ == 0
goto_if_false @WUZI2_20476
if 
  not 424@ = is_char_in_any_searchlight $scplayer
goto_if_false @WUZI2_20392
if 
  not is_char_in_water $scplayer
goto_if_false @WUZI2_20378
if 
  not is_car_dead 413@
goto_if_false @WUZI2_20301
if 
  is_char_touching_vehicle $scplayer {handle} 413@
goto_if_false @WUZI2_20301
123@ = 18
gosub @WUZI2_17920
425@ = 0
gosub @WUZI2_20691
423@ = 1
goto @WUZI2_20689

:WUZI2_20301
if 
  not is_car_dead 414@
goto_if_false @WUZI2_20371
if 
  is_char_touching_vehicle $scplayer {handle} 414@
goto_if_false @WUZI2_20371
123@ = 18
gosub @WUZI2_17920
425@ = 1
gosub @WUZI2_20691
423@ = 1

:WUZI2_20371
goto @WUZI2_20385

:WUZI2_20378
goto @WUZI2_20689

:WUZI2_20385
goto @WUZI2_20476

:WUZI2_20392
123@ = 18
gosub @WUZI2_17920
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  -1430.0 > $player_x
goto_if_false @WUZI2_20455
425@ = 0
goto @WUZI2_20462

:WUZI2_20455
425@ = 1

:WUZI2_20462
gosub @WUZI2_20691
423@ = 1

:WUZI2_20476
goto @WUZI2_20689

:WUZI2_20483
if 
  not is_car_dead 413@(425@,2i)
goto_if_false @WUZI2_20661
if 
  287@ == 0
goto_if_false @WUZI2_20612
$x, $y, $z = get_car_coordinates 413@(425@,2i)
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  55.0 > $distance
goto_if_false @WUZI2_20598
goto @WUZI2_20689

:WUZI2_20598
123@ = 36
goto @WUZI2_20619

:WUZI2_20612
123@ = 27

:WUZI2_20619
gosub @WUZI2_17920
425@ += 2
gosub @WUZI2_20691
gosub @WUZI2_18052
423@ = 0
goto @WUZI2_20682

:WUZI2_20661
425@ += 2
gosub @WUZI2_20691
423@ = 0

:WUZI2_20682
goto @WUZI2_20689

:WUZI2_20689
return 

:WUZI2_20691
427@ = 0
switch_start 425@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @WUZI2_20985 {caseNum1} 0 {caseLabel1} @WUZI2_20761 {caseNum2} 1 {caseLabel2} @WUZI2_20873 {caseNum3} 2 {caseLabel3} @WUZI2_20761 {caseNum4} 3 {caseLabel4} @WUZI2_20873 {caseNum5} -1 {caseLabel5} @WUZI2_20985 {caseNum6} -1 {caseLabel6} @WUZI2_20985 {caseNum7} -1 {caseLabel7} @WUZI2_20985

:WUZI2_20761
426@ = 0

:WUZI2_20768
if 
  3 > 426@
goto_if_false @WUZI2_20866
if 
  not is_char_dead 417@(426@,6i)
goto_if_false @WUZI2_20852
clear_char_tasks 417@(426@,6i)
if 
  425@ == 0
goto_if_false @WUZI2_20845
task_kill_char_on_foot 417@(426@,6i) {target} $scplayer

:WUZI2_20845
427@ += 1

:WUZI2_20852
426@ += 1
goto @WUZI2_20768

:WUZI2_20866
goto @WUZI2_20985

:WUZI2_20873
426@ = 3

:WUZI2_20880
if 
  6 > 426@
goto_if_false @WUZI2_20978
if 
  not is_char_dead 417@(426@,6i)
goto_if_false @WUZI2_20964
clear_char_tasks 417@(426@,6i)
if 
  425@ == 1
goto_if_false @WUZI2_20957
task_kill_char_on_foot 417@(426@,6i) {target} $scplayer

:WUZI2_20957
427@ += 1

:WUZI2_20964
426@ += 1
goto @WUZI2_20880

:WUZI2_20978
goto @WUZI2_20985

:WUZI2_20985
return 

:WUZI2_20987
$pointer_W2 = 0

:WUZI2_20994
if 
  4 > $pointer_W2
goto_if_false @WUZI2_21117
if and
  428@($pointer_W2,6i) == 0
  does_object_exist 401@($pointer_W2,6i)
goto_if_false @WUZI2_21103
434@ = get_object_health 401@($pointer_W2,6i)
if 
  1000 > 434@
goto_if_false @WUZI2_21103
delete_searchlight 383@($pointer_W2,6i)
remove_blip 407@($pointer_W2,6i)
428@($pointer_W2,6i) += 1

:WUZI2_21103
$pointer_W2 += 1
goto @WUZI2_20994

:WUZI2_21117
return 
if 
  $help_text_flag_W2 > 0
goto_if_false @WUZI2_21497
if and
  $help_text_flag_W2 == 1
  $player_status_W2 > 0
goto_if_false @WUZI2_21229
if and
  TIMERB > 6500
  4 > $help_text_switch_W2
goto_if_false @WUZI2_21195
$help_text_switch_W2 += 1

:WUZI2_21195
clear_help 
print_help_forever 'WZI2_B4'
TIMERB = 0
$help_text_flag_W2 += 1
goto @WUZI2_21490

:WUZI2_21229
if 
  5 > $help_text_switch_W2
goto_if_false @WUZI2_21490
switch_start $help_text_switch_W2 {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @WUZI2_21439 {caseNum1} -2 {caseLabel1} @WUZI2_21310 {caseNum2} -1 {caseLabel2} @WUZI2_21347 {caseNum3} 4 {caseLabel3} @WUZI2_21404 {caseNum4} -1 {caseLabel4} @WUZI2_21490 {caseNum5} -1 {caseLabel5} @WUZI2_21490 {caseNum6} -1 {caseLabel6} @WUZI2_21490 {caseNum7} -1 {caseLabel7} @WUZI2_21490

:WUZI2_21310
print_now 'WZI2_8' {time} 7000 {flag} 1
TIMERB = 0
$help_text_switch_W2 += 1
goto @WUZI2_21490

:WUZI2_21347
if 
  TIMERB > 7000
goto_if_false @WUZI2_21397
print_now 'WZI2_9' {time} 8000 {flag} 1
TIMERB = 6500
$help_text_switch_W2 += 1

:WUZI2_21397
goto @WUZI2_21490

:WUZI2_21404
if 
  TIMERB > 8000
goto_if_false @WUZI2_21432
clear_help 
$help_text_switch_W2 += 1

:WUZI2_21432
goto @WUZI2_21490

:WUZI2_21439
if 
  TIMERB > 8000
goto_if_false @WUZI2_21483
clear_help 
print_help_forever 260@($help_text_switch_W2,8s)
TIMERB = 0
$help_text_switch_W2 += 1

:WUZI2_21483
goto @WUZI2_21490

:WUZI2_21490
goto @WUZI2_21522

:WUZI2_21497
if 
  287@ == 0
goto_if_false @WUZI2_21522
$help_text_flag_W2 = 1

:WUZI2_21522
return 

:WUZI2_21524
switch_start 435@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WUZI2_21723 {caseNum1} 0 {caseLabel1} @WUZI2_21587 {caseNum2} 1 {caseLabel2} @WUZI2_21679 {caseNum3} -1 {caseLabel3} @WUZI2_21723 {caseNum4} -1 {caseLabel4} @WUZI2_21723 {caseNum5} -1 {caseLabel5} @WUZI2_21723 {caseNum6} -1 {caseLabel6} @WUZI2_21723 {caseNum7} -1 {caseLabel7} @WUZI2_21723

:WUZI2_21587
if 
  not is_char_in_water $scplayer
goto_if_false @WUZI2_21672
if 
  is_char_in_area_3d $scplayer {leftBottomX} -1491.319 {leftBottomY} 1505.334 {leftBottomZ} 0.0 {rightTopX} -1352.436 {rightTopY} 1475.738 {rightTopZ} 15.0 {drawSphere} False
goto_if_false @WUZI2_21672
gosub @WUZI2_22064
435@ += 1
goto @WUZI2_21723

:WUZI2_21672
goto @WUZI2_21723

:WUZI2_21679
if 
  is_char_in_water $scplayer
goto_if_false @WUZI2_21716
gosub @WUZI2_21725
435@ -= 1
goto @WUZI2_21723

:WUZI2_21716
goto @WUZI2_21723

:WUZI2_21723
return 

:WUZI2_21725
$pointer_W2 = 0

:WUZI2_21732
if 
  5 > $pointer_W2
goto_if_false @WUZI2_21773
remove_blip 443@($pointer_W2,8i)
$pointer_W2 += 1
goto @WUZI2_21732

:WUZI2_21773
set_radar_zoom 0
if 
  not is_car_dead 290@
goto_if_false @WUZI2_21824
if 
  not does_blip_exist 292@
goto_if_false @WUZI2_21824
292@ = add_blip_for_car 290@
change_blip_display 292@ {display} BlipDisplay.BlipOnly

:WUZI2_21824
if 
  not is_car_dead 291@
goto_if_false @WUZI2_21871
if 
  not does_blip_exist 293@
goto_if_false @WUZI2_21871
293@ = add_blip_for_car 291@
change_blip_display 293@ {display} BlipDisplay.BlipOnly

:WUZI2_21871
if 
  not is_car_dead 413@
goto_if_false @WUZI2_21918
if 
  not does_blip_exist 415@
goto_if_false @WUZI2_21918
415@ = add_blip_for_car 413@
change_blip_display 415@ {display} BlipDisplay.BlipOnly

:WUZI2_21918
if 
  not is_car_dead 414@
goto_if_false @WUZI2_21965
if 
  not does_blip_exist 416@
goto_if_false @WUZI2_21965
416@ = add_blip_for_car 414@
change_blip_display 416@ {display} BlipDisplay.BlipOnly

:WUZI2_21965
$pointer_W2 = 0

:WUZI2_21972
if 
  4 > $pointer_W2
goto_if_false @WUZI2_22062
if 
  428@($pointer_W2,6i) == 0
goto_if_false @WUZI2_22048
if 
  not does_blip_exist 407@($pointer_W2,6i)
goto_if_false @WUZI2_22048
add_blip_for_searchlight 383@($pointer_W2,6i) {var_handle} 407@($pointer_W2,6i)

:WUZI2_22048
$pointer_W2 += 1
goto @WUZI2_21972

:WUZI2_22062
return 

:WUZI2_22064
if 
  not is_car_dead 290@
goto_if_false @WUZI2_22085
remove_blip 292@

:WUZI2_22085
if 
  not is_car_dead 291@
goto_if_false @WUZI2_22106
remove_blip 293@

:WUZI2_22106
if 
  not is_car_dead 413@
goto_if_false @WUZI2_22127
remove_blip 415@

:WUZI2_22127
if 
  not is_car_dead 414@
goto_if_false @WUZI2_22148
remove_blip 416@

:WUZI2_22148
$pointer_W2 = 0

:WUZI2_22155
if 
  4 > $pointer_W2
goto_if_false @WUZI2_22196
remove_blip 407@($pointer_W2,6i)
$pointer_W2 += 1
goto @WUZI2_22155

:WUZI2_22196
set_radar_zoom 90
$pointer_W2 = 0

:WUZI2_22207
if 
  5 > $pointer_W2
goto_if_false @WUZI2_22317
if 
  not is_char_dead 436@($pointer_W2,7i)
goto_if_false @WUZI2_22303
if 
  not does_blip_exist 443@($pointer_W2,8i)
goto_if_false @WUZI2_22303
add_blip_for_char 436@($pointer_W2,7i) {var_handle} 443@($pointer_W2,8i)
change_blip_display 443@($pointer_W2,8i) {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 443@($pointer_W2,8i) {state} True

:WUZI2_22303
$pointer_W2 += 1
goto @WUZI2_22207

:WUZI2_22317
return 

:WUZI2_22319
clear_help 
clear_prints 
if 
  379@ == 0
goto_if_false @WUZI2_22346
remove_pickup 258@

:WUZI2_22346
gosub @WUZI2_18118
if 
  379@ <> 1
goto_if_false @WUZI2_22398
258@ = create_pickup_with_ammo 335 {pickupType} PickupType.Once {ammo} 1 {x} -1456.2889 {y} 1497.905 {z} 6.7

:WUZI2_22398
remove_blip 36@
36@ = add_blip_for_coord -1372.733 {y} 1495.55 {z} 0.8578
466@ = -1442.207
470@ = 1489.462
474@ = 6.1016
478@ = 270.0
467@ = -1402.308
471@ = 1486.719
475@ = 6.0938
479@ = 301.3607
468@ = -1382.657
472@ = 1480.446
476@ = 7.5625
480@ = 180.0
469@ = -1370.584
473@ = 1486.74
477@ = 10.0313
481@ = 347.1257
436@ = create_char PedType.Mission2 {modelId} 121 {x} 466@ {y} 470@ {z} 474@
set_char_heading 436@ {heading} 478@
give_weapon_to_char 436@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 436@ {weaponType} WeaponType.Knife
set_char_decision_maker 436@ {handleOrTemplate} 34@
443@ = add_blip_for_char 436@
change_blip_display 443@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 443@ {state} True
set_char_shoot_rate 436@ {rate} 80
set_sense_range 436@ {range} 80.0
451@ = 0
437@ = create_char PedType.Mission2 {modelId} 122 {x} 467@ {y} 471@ {z} 475@
set_char_heading 437@ {heading} 479@
give_weapon_to_char 437@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 437@ {weaponType} WeaponType.Knife
set_char_decision_maker 437@ {handleOrTemplate} 34@
444@ = add_blip_for_char 437@
change_blip_display 444@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 444@ {state} True
set_char_shoot_rate 437@ {rate} 80
set_sense_range 437@ {range} 80.0
452@ = 0
438@ = create_char PedType.Mission2 {modelId} 123 {x} 468@ {y} 472@ {z} 476@
set_char_heading 438@ {heading} 480@
give_weapon_to_char 438@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 438@ {weaponType} WeaponType.Knife
set_char_decision_maker 438@ {handleOrTemplate} 34@
445@ = add_blip_for_char 438@
change_blip_display 445@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 445@ {state} True
set_char_shoot_rate 438@ {rate} 80
set_sense_range 438@ {range} 80.0
453@ = 0
439@ = create_char PedType.Mission2 {modelId} 121 {x} 469@ {y} 473@ {z} 477@
set_char_heading 439@ {heading} 481@
give_weapon_to_char 439@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 439@ {weaponType} WeaponType.Knife
set_char_decision_maker 439@ {handleOrTemplate} 34@
446@ = add_blip_for_char 439@
change_blip_display 446@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 446@ {state} True
set_char_shoot_rate 439@ {rate} 80
set_sense_range 439@ {range} 80.0
454@ = 0
482@ = -1415.15
492@ = 1489.33
502@ = 6.1092
512@ = 274.6376
483@ = -1393.05
493@ = 1490.035
503@ = 6.1016
513@ = 273.1324
484@ = -1377.694
494@ = 1494.01
504@ = 0.8594
514@ = 268.1749
485@ = -1384.855
495@ = 1493.9041
505@ = 0.8594
515@ = 86.0142
486@ = -1433.38
496@ = 1483.448
506@ = 0.625
516@ = 272.9424
487@ = -1393.022
497@ = 1483.625
507@ = 0.625
517@ = 266.08
488@ = -1392.567
498@ = 1496.2729
508@ = 0.6312
518@ = 163.775
489@ = -1423.0601
499@ = 1496.2889
509@ = 0.625
519@ = 134.281
490@ = -1423.291
500@ = 1491.614
510@ = 0.625
520@ = 172.1411
491@ = -1433.231
501@ = 1488.718
511@ = 0.625
521@ = 106.1638
458@ = 0
462@ = 1
set_var_int_to_lvar_int $pointer2_W2 = 458@
440@ = create_char PedType.Mission2 {modelId} 123 {x} 482@($pointer2_W2,10f) {y} 492@($pointer2_W2,10f) {z} 502@($pointer2_W2,10f)
set_char_heading 440@ {heading} 512@($pointer2_W2,10f)
give_weapon_to_char 440@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 440@ {weaponType} WeaponType.Knife
set_char_decision_maker 440@ {handleOrTemplate} 34@
447@ = add_blip_for_char 440@
change_blip_display 447@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 447@ {state} True
set_char_shoot_rate 440@ {rate} 80
set_sense_range 440@ {range} 80.0
455@ = 0
459@ = 2
463@ = 3
set_var_int_to_lvar_int $pointer2_W2 = 459@
441@ = create_char PedType.Mission2 {modelId} 122 {x} 482@($pointer2_W2,10f) {y} 492@($pointer2_W2,10f) {z} 502@($pointer2_W2,10f)
set_char_heading 441@ {heading} 512@($pointer2_W2,10f)
give_weapon_to_char 441@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 441@ {weaponType} WeaponType.Knife
set_char_decision_maker 441@ {handleOrTemplate} 34@
448@ = add_blip_for_char 441@
change_blip_display 448@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 448@ {state} True
set_char_shoot_rate 441@ {rate} 80
set_sense_range 441@ {range} 80.0
456@ = 0
460@ = 4
464@ = 9
set_var_int_to_lvar_int $pointer2_W2 = 460@
442@ = create_char PedType.Mission2 {modelId} 121 {x} 482@($pointer2_W2,10f) {y} 492@($pointer2_W2,10f) {z} 502@($pointer2_W2,10f)
set_char_heading 442@ {heading} 512@($pointer2_W2,10f)
give_weapon_to_char 442@ {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon 442@ {weaponType} WeaponType.Knife
set_char_decision_maker 442@ {handleOrTemplate} 34@
449@ = add_blip_for_char 442@
change_blip_display 449@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 449@ {state} True
set_char_shoot_rate 442@ {rate} 80
set_sense_range 442@ {range} 80.0
457@ = 0
print_now 'WZI2_35' {time} 7000 {flag} 1
522@ = 0
$pointer_W2 = 0

:WUZI2_23799
if 
  4 > $pointer_W2
goto_if_false @WUZI2_23863
if 
  not is_char_dead 436@($pointer_W2,7i)
goto_if_false @WUZI2_23849
set_char_decision_maker 436@($pointer_W2,7i) {handleOrTemplate} 34@

:WUZI2_23849
$pointer_W2 += 1
goto @WUZI2_23799

:WUZI2_23863
283@ = 1
return 

:WUZI2_23872
$pointer_W2 = 0
530@ = 0
531@ = 0
531@ = 0

:WUZI2_23900
if 
  7 > $pointer_W2
goto_if_false @WUZI2_24617
if 
  not is_char_dead 436@($pointer_W2,7i)
goto_if_false @WUZI2_24561
switch_start 523@($pointer_W2,7i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_24554 {caseNum1} 0 {caseLabel1} @WUZI2_24005 {caseNum2} 1 {caseLabel2} @WUZI2_24237 {caseNum3} 2 {caseLabel3} @WUZI2_24419 {caseNum4} -1 {caseLabel4} @WUZI2_24554 {caseNum5} -1 {caseLabel5} @WUZI2_24554 {caseNum6} -1 {caseLabel6} @WUZI2_24554 {caseNum7} -1 {caseLabel7} @WUZI2_24554

:WUZI2_24005
if or
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.SoundQuiet
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.AcquaintancePedHateBadlyLit
goto_if_false @WUZI2_24132
if 
  not is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.AcquaintancePedHate
goto_if_false @WUZI2_24096
523@($pointer_W2,7i) = 1
451@($pointer_W2,7i) = -1
531@ += 1
goto @WUZI2_24125

:WUZI2_24096
523@($pointer_W2,7i) = 2
451@($pointer_W2,7i) = -1
531@ += 1

:WUZI2_24125
goto @WUZI2_24230

:WUZI2_24132
if or
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.ShotFired
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.Damage
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.GunAimedAt
goto_if_false @WUZI2_24223
523@($pointer_W2,7i) = 2
451@($pointer_W2,7i) = -1
531@ += 1
goto @WUZI2_24230

:WUZI2_24223
530@ += 1

:WUZI2_24230
goto @WUZI2_24554

:WUZI2_24237
if or
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.ShotFired
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.Damage
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.GunAimedAt
goto_if_false @WUZI2_24336
523@($pointer_W2,7i) = 2
451@($pointer_W2,7i) = -1
set_lvar_int_to_var_int 532@ = $pointer_W2
531@ += 1
goto @WUZI2_24412

:WUZI2_24336
if or
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.AcquaintancePedHateBadlyLit
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.SoundQuiet
goto_if_false @WUZI2_24383
531@ += 1
goto @WUZI2_24412

:WUZI2_24383
523@($pointer_W2,7i) = 0
451@($pointer_W2,7i) = 0
530@ += 1

:WUZI2_24412
goto @WUZI2_24554

:WUZI2_24419
if or
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.AcquaintancePedHateBadlyLit
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.ShotFired
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.Damage
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.GunAimedAt
  is_char_responding_to_event 436@($pointer_W2,7i) {event} Event.SoundQuiet
goto_if_false @WUZI2_24518
set_lvar_int_to_var_int 532@ = $pointer_W2
531@ += 1
goto @WUZI2_24547

:WUZI2_24518
523@($pointer_W2,7i) = 0
451@($pointer_W2,7i) = 0
530@ += 1

:WUZI2_24547
goto @WUZI2_24554

:WUZI2_24554
goto @WUZI2_24603

:WUZI2_24561
if 
  523@($pointer_W2,7i) <> -1
goto_if_false @WUZI2_24603
remove_blip 443@($pointer_W2,8i)
523@($pointer_W2,7i) = -1

:WUZI2_24603
$pointer_W2 += 1
goto @WUZI2_23900

:WUZI2_24617
switch_start 522@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WUZI2_24872 {caseNum1} 0 {caseLabel1} @WUZI2_24680 {caseNum2} 1 {caseLabel2} @WUZI2_24744 {caseNum3} 2 {caseLabel3} @WUZI2_24808 {caseNum4} -1 {caseLabel4} @WUZI2_24872 {caseNum5} -1 {caseLabel5} @WUZI2_24872 {caseNum6} -1 {caseLabel6} @WUZI2_24872 {caseNum7} -1 {caseLabel7} @WUZI2_24872

:WUZI2_24680
if 
  531@ > 0
goto_if_false @WUZI2_24712
522@ = 2
goto @WUZI2_24737

:WUZI2_24712
if 
  531@ > 0
goto_if_false @WUZI2_24737
522@ = 1

:WUZI2_24737
goto @WUZI2_24872

:WUZI2_24744
if 
  531@ > 0
goto_if_false @WUZI2_24776
522@ = 2
goto @WUZI2_24801

:WUZI2_24776
if 
  531@ == 0
goto_if_false @WUZI2_24801
522@ = 0

:WUZI2_24801
goto @WUZI2_24872

:WUZI2_24808
if and
  531@ == 0
  531@ == 0
goto_if_false @WUZI2_24865
522@ = 0
if and
  not is_char_dead 436@(532@,7i)
  not is_char_dead $scplayer
goto_if_false @WUZI2_24865

:WUZI2_24865
goto @WUZI2_24872

:WUZI2_24872
return 

:WUZI2_24874
$pointer_W2 = 0

:WUZI2_24881
if 
  4 > $pointer_W2
goto_if_false @WUZI2_25425
if 
  451@($pointer_W2,7i) <> -1
goto_if_false @WUZI2_25411
if 
  not is_char_dead 436@($pointer_W2,7i)
goto_if_false @WUZI2_25411
switch_start 451@($pointer_W2,7i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_25411 {caseNum1} 0 {caseLabel1} @WUZI2_25008 {caseNum2} 1 {caseLabel2} @WUZI2_25100 {caseNum3} 2 {caseLabel3} @WUZI2_25221 {caseNum4} 3 {caseLabel4} @WUZI2_25347 {caseNum5} 4 {caseLabel5} @WUZI2_25404 {caseNum6} -1 {caseLabel6} @WUZI2_25411 {caseNum7} -1 {caseLabel7} @WUZI2_25411

:WUZI2_25008
43@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 466@($pointer_W2,4f) {y} 470@($pointer_W2,4f) {z} 474@($pointer_W2,4f) {speed} MoveState.Walk {vehicle} -2
task_achieve_heading -1 {heading} 478@($pointer_W2,4f)
task_stand_still -1 {time} 5000
close_sequence_task 43@
perform_sequence_task 436@($pointer_W2,7i) {sequence} 43@
clear_sequence_task 43@
451@($pointer_W2,7i) += 1
goto @WUZI2_25411

:WUZI2_25100
44@ = get_sequence_progress 436@($pointer_W2,7i)
if 
  44@ == 2
goto_if_false @WUZI2_25214
if 
  locate_char_on_foot_2d 436@($pointer_W2,7i) {x} 466@($pointer_W2,4f) {y} 470@($pointer_W2,4f) {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @WUZI2_25194
451@($pointer_W2,7i) += 1
goto @WUZI2_25214

:WUZI2_25194
clear_char_tasks 436@($pointer_W2,7i)
451@($pointer_W2,7i) -= 1

:WUZI2_25214
goto @WUZI2_25411

:WUZI2_25221
45@ = generate_random_int_in_range 7000 {max} 15000
46@ = generate_random_int_in_range 0 {max} 500
clear_char_tasks 436@($pointer_W2,7i)
43@ = open_sequence_task 
task_stand_still -1 {time} 45@
if 
  250 > 46@
goto_if_false @WUZI2_25296
task_look_about -1 {time} 8000
goto @WUZI2_25300

:WUZI2_25296
task_scratch_head -1

:WUZI2_25300
task_stand_still -1 {time} 5000
close_sequence_task 43@
perform_sequence_task 436@($pointer_W2,7i) {sequence} 43@
clear_sequence_task 43@
451@($pointer_W2,7i) += 1
goto @WUZI2_25411

:WUZI2_25347
44@ = get_sequence_progress 436@($pointer_W2,7i)
if 
  44@ == 2
goto_if_false @WUZI2_25397
clear_char_tasks 436@($pointer_W2,7i)
451@($pointer_W2,7i) -= 1

:WUZI2_25397
goto @WUZI2_25411

:WUZI2_25404
goto @WUZI2_25411

:WUZI2_25411
$pointer_W2 += 1
goto @WUZI2_24881

:WUZI2_25425
return 

:WUZI2_25427
$pointer_W2 = 4
$pointer2_W2 = 0

:WUZI2_25441
if 
  7 > $pointer_W2
goto_if_false @WUZI2_26089
if 
  451@($pointer_W2,7i) <> -1
goto_if_false @WUZI2_26068
if 
  not is_char_dead 436@($pointer_W2,7i)
goto_if_false @WUZI2_26068
set_var_int_to_lvar_int $pointer3_W2 = 458@($pointer2_W2,4i)
set_var_int_to_lvar_int $pointer4_W2 = 462@($pointer2_W2,4i)
switch_start 451@($pointer_W2,7i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WUZI2_26068 {caseNum1} 0 {caseLabel1} @WUZI2_25592 {caseNum2} 1 {caseLabel2} @WUZI2_25767 {caseNum3} 2 {caseLabel3} @WUZI2_25857 {caseNum4} 3 {caseLabel4} @WUZI2_25989 {caseNum5} 4 {caseLabel5} @WUZI2_26061 {caseNum6} -1 {caseLabel6} @WUZI2_26068 {caseNum7} -1 {caseLabel7} @WUZI2_26068

:WUZI2_25592
43@ = open_sequence_task 

:WUZI2_25597
if 
  is_int_var_greater_or_equal_to_int_var $pointer4_W2 >= $pointer3_W2
goto_if_false @WUZI2_25659
task_go_to_coord_any_means -1 {x} 482@($pointer3_W2,10f) {y} 492@($pointer3_W2,10f) {z} 502@($pointer3_W2,10f) {speed} MoveState.Walk {vehicle} -2
$pointer3_W2 += 1
goto @WUZI2_25597

:WUZI2_25659
if 
  $pointer_W2 == 6
goto_if_false @WUZI2_25702
set_sequence_to_repeat 43@ {state} True
451@($pointer_W2,7i) = 90
goto @WUZI2_25738

:WUZI2_25702
task_achieve_heading -1 {heading} 512@($pointer4_W2,10f)
task_stand_still -1 {time} 5000
task_stand_still -1 {time} 5000
451@($pointer_W2,7i) += 1

:WUZI2_25738
close_sequence_task 43@
perform_sequence_task 436@($pointer_W2,7i) {sequence} 43@
clear_sequence_task 43@
goto @WUZI2_26068

:WUZI2_25767
set_lvar_int_to_var_int 533@ = $pointer4_W2
sub_int_var_from_int_lvar 533@ -= $pointer3_W2
533@ += 3
44@ = get_sequence_progress 436@($pointer_W2,7i)
if 
  is_int_lvar_equal_to_int_lvar 44@ == 533@
goto_if_false @WUZI2_25850
if 
  $pointer_W2 == 4
goto_if_false @WUZI2_25839

:WUZI2_25839
451@($pointer_W2,7i) += 1

:WUZI2_25850
goto @WUZI2_26068

:WUZI2_25857
43@ = open_sequence_task 

:WUZI2_25862
if 
  is_int_var_greater_or_equal_to_int_var $pointer4_W2 >= $pointer3_W2
goto_if_false @WUZI2_25924
task_go_to_coord_any_means -1 {x} 482@($pointer4_W2,10f) {y} 492@($pointer4_W2,10f) {z} 502@($pointer4_W2,10f) {speed} MoveState.Walk {vehicle} -2
$pointer4_W2 -= 1
goto @WUZI2_25862

:WUZI2_25924
task_achieve_heading -1 {heading} 512@($pointer3_W2,10f)
task_stand_still -1 {time} 5000
task_stand_still -1 {time} 5000
451@($pointer_W2,7i) += 1
close_sequence_task 43@
perform_sequence_task 436@($pointer_W2,7i) {sequence} 43@
clear_sequence_task 43@
goto @WUZI2_26068

:WUZI2_25989
set_lvar_int_to_var_int 533@ = $pointer4_W2
sub_int_var_from_int_lvar 533@ -= $pointer3_W2
533@ += 3
44@ = get_sequence_progress 436@($pointer_W2,7i)
if 
  is_int_lvar_equal_to_int_lvar 44@ == 533@
goto_if_false @WUZI2_26054
451@($pointer_W2,7i) = 0

:WUZI2_26054
goto @WUZI2_26068

:WUZI2_26061
goto @WUZI2_26068

:WUZI2_26068
$pointer_W2 += 1
$pointer2_W2 += 1
goto @WUZI2_25441

:WUZI2_26089
return 
$pointer_W2 = 0
574@ = 1
573@ = get_current_char_weapon $scplayer

:WUZI2_26113
if 
  13 > $pointer_W2
goto_if_false @WUZI2_26181
get_char_weapon_in_slot $scplayer {weaponSlotId} 574@ {var_weaponType} 534@($pointer_W2,13i) {var_weaponAmmo} 547@($pointer_W2,13i) {var_weaponModel} 560@($pointer_W2,13i)
$pointer_W2 += 1
574@ += 1
goto @WUZI2_26113

:WUZI2_26181
return 
$pointer_W2 = 0

:WUZI2_26190
if 
  13 > $pointer_W2
goto_if_false @WUZI2_26260
if 
  534@($pointer_W2,13i) <> 0
goto_if_false @WUZI2_26246
request_model 560@($pointer_W2,13i)
575@ += 1

:WUZI2_26246
$pointer_W2 += 1
goto @WUZI2_26190

:WUZI2_26260
if 
  not is_int_lvar_equal_to_int_lvar 576@ == 575@
goto_if_false @WUZI2_26385
wait 0
576@ = 0
$pointer_W2 = 0

:WUZI2_26297
if 
  13 > $pointer_W2
goto_if_false @WUZI2_26378
if 
  534@($pointer_W2,13i) <> 0
goto_if_false @WUZI2_26364
if 
  has_model_loaded 560@($pointer_W2,13i)
goto_if_false @WUZI2_26364
576@ += 1

:WUZI2_26364
$pointer_W2 += 1
goto @WUZI2_26297

:WUZI2_26378
goto @WUZI2_26260

:WUZI2_26385
remove_all_char_weapons $scplayer
$pointer_W2 = 0
574@ = 1

:WUZI2_26404
if 
  13 > $pointer_W2
goto_if_false @WUZI2_26462
give_weapon_to_char $scplayer {weaponType} 534@($pointer_W2,13i) {ammo} 547@($pointer_W2,13i)
$pointer_W2 += 1
574@ += 1
goto @WUZI2_26404

:WUZI2_26462
set_current_char_weapon $scplayer {weaponType} 573@
$pointer_W2 = 0

:WUZI2_26477
if 
  13 > $pointer_W2
goto_if_false @WUZI2_26540
if 
  534@($pointer_W2,13i) <> 0
goto_if_false @WUZI2_26526
mark_model_as_no_longer_needed 560@($pointer_W2,13i)

:WUZI2_26526
$pointer_W2 += 1
goto @WUZI2_26477

:WUZI2_26540
return 

:WUZI2_26542
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  40@ == 1
goto_if_false @WUZI2_26586
print_now 41@s {time} 5000 {flag} 1

:WUZI2_26586
return 

:WUZI2_26588
$flag_wuzi_mission_counter += 1
register_mission_passed 'WUZI_2'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 11000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 11000
award_player_mission_respect 25
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:WUZI2_26652
if 
  $swim_stamina_check == 0
goto_if_false @WUZI2_27103
set_max_wanted_level 257@
if 
  is_player_playing $player1
goto_if_false @WUZI2_26702
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:WUZI2_26702
start_new_script @A_TERM 
remove_blip 259@
remove_pickup 258@
$timer_mobile_start = get_game_timer 
switch_roads_back_to_original -1328.999 {leftBottomY} 1239.9969 {leftBottomZ} -5.0 {rightTopX} -1655.868 {rightTopY} 1638.755 {rightTopZ} 10.0
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 454
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed #A51_SPOTBASE
mark_model_as_no_longer_needed #A51_SPOTHOUSING
mark_model_as_no_longer_needed #A51_SPOTBULB
remove_animation "DAM_JUMP"
remove_blip 36@
$pointer_W2 = 0

:WUZI2_26823
if 
  5 > $pointer_W2
goto_if_false @WUZI2_26873
remove_blip 443@($pointer_W2,8i)
mark_char_as_no_longer_needed 436@($pointer_W2,7i)
$pointer_W2 += 1
goto @WUZI2_26823

:WUZI2_26873
$pointer_W2 = 0

:WUZI2_26880
if 
  4 > $pointer_W2
goto_if_false @WUZI2_26948
remove_blip 407@($pointer_W2,6i)
mark_object_as_no_longer_needed 389@($pointer_W2,6i)
mark_object_as_no_longer_needed 395@($pointer_W2,6i)
mark_object_as_no_longer_needed 401@($pointer_W2,6i)
$pointer_W2 += 1
goto @WUZI2_26880

:WUZI2_26948
$pointer_W2 = 0

:WUZI2_26955
if 
  6 > $pointer_W2
goto_if_false @WUZI2_27005
mark_char_as_no_longer_needed 308@($pointer_W2,6i)
mark_char_as_no_longer_needed 417@($pointer_W2,6i)
$pointer_W2 += 1
goto @WUZI2_26955

:WUZI2_27005
$pointer_W2 = 0

:WUZI2_27012
if 
  2 > $pointer_W2
goto_if_false @WUZI2_27094
remove_blip 292@($pointer_W2,2i)
mark_char_as_no_longer_needed 300@($pointer_W2,2i)
mark_car_as_no_longer_needed 290@($pointer_W2,2i)
remove_blip 415@
mark_char_as_no_longer_needed 417@($pointer_W2,6i)
mark_car_as_no_longer_needed 413@($pointer_W2,2i)
$pointer_W2 += 1
goto @WUZI2_27012

:WUZI2_27094
release_weather 
goto @WUZI2_27255

:WUZI2_27103
if 
  is_player_playing $player1
goto_if_false @WUZI2_27126
set_player_control $player1 {state} False

:WUZI2_27126
set_char_coordinates $scplayer {x} -2154.8149 {y} 641.3157 {z} 51.3594
set_char_heading $scplayer {heading} 268.4865
load_scene -2154.8149 {y} 641.3157 {z} 51.3594
TIMERA = 0

:WUZI2_27180
if 
  500 > TIMERA
goto_if_false @WUZI2_27210
wait 0
goto @WUZI2_27180

:WUZI2_27210
do_fade 0 {direction} Fade.In
if 
  is_player_playing $player1
goto_if_false @WUZI2_27239
set_player_control $player1 {state} True

:WUZI2_27239
print_now 'WZI2_60' {time} 8000 {flag} 1

:WUZI2_27255
$onmission = 0
mission_has_finished 
return 

//-------------Mission 57---------------
// Originally: The Da Nang Thang

:WUZI5
script_name 'WUZI5'
gosub @WUZI5_47
if 
  has_deatharrest_been_executed 
goto_if_false @WUZI5_38
gosub @WUZI5_20666

:WUZI5_38
gosub @WUZI5_20753
terminate_this_script 

:WUZI5_47
$onmission = 1
register_mission_given 
load_mission_text 'WUZI4'
if 
  $onmission == 0
goto_if_false @WUZI5_302
create_char PedType.Mission5 {modelId} 118 {x} -2433.5 {y} 1536.3 {z} 16.4 {var_handle} 36@(94@,17i)
58@ = create_char PedType.Mission5 {modelId} 118 {x} -2433.5 {y} 1536.3 {z} 16.4
create_char PedType.Mission5 {modelId} 118 {x} -2389.2 {y} 1537.1 {z} 1.1 {var_handle} 59@(96@,4i)
63@ = create_pickup_with_ammo 342 {pickupType} PickupType.OnStreetSlow {ammo} 6 {x} -2412.3999 {y} 1547.9 {z} 25.0
64@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} -2427.8 {y} 1547.6 {z} 22.1
add_blip_for_char 36@(94@,17i) {var_handle} 81@(94@,9i)
53@ = create_car 473 {x} -2430.7 {y} 1563.6 {z} 0.0
54@ = create_car 473 {x} -2442.3999 {y} 1564.6 {z} 0.0
55@ = create_car 473 {x} -2426.8999 {y} 1570.6 {z} 0.0

:WUZI5_302
clear_prints 
wait 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
114@ = 0
94@ = 0
95@ = 0
96@ = 0
set_lvar_int_to_constant 97@ = 121
set_lvar_int_to_constant 98@ = 122
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
144@ = 0.0
145@ = 0.0
146@ = 0.0
147@ = 0.0
148@ = 0.0
149@ = 0.0
150@ = 0.0
151@ = 0.0
152@ = 0.0
153@ = 0.0
154@ = 0.0
155@ = 0.0
make_player_gang_disappear 
set_area_visible 1
load_cutscene 'WOOZIE4'

:WUZI5_613
if 
  not has_cutscene_loaded 
goto_if_false @WUZI5_637
wait 0
goto @WUZI5_613

:WUZI5_637
start_cutscene 
do_fade 1000 {direction} Fade.In

:WUZI5_646
if 
  not has_cutscene_finished 
goto_if_false @WUZI5_670
wait 0
goto @WUZI5_646

:WUZI5_670
do_fade 0 {direction} Fade.Out

:WUZI5_676
if 
  get_fading_status 
goto_if_false @WUZI5_700
wait 0
goto @WUZI5_676

:WUZI5_700
set_area_visible 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
force_weather_now WeatherType.ExtraSunnySf
wait 0
request_model 118
request_model 487
request_animation "CAR_CHAT"
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
158@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
157@ = load_char_decision_maker DecisionMakerType.Tough
159@ = load_char_decision_maker DecisionMakerType.Steal
clear_area -2167.8 {y} 634.9 {z} 69.7 {radius} 5.0 {clearParticles} True
34@ = create_car 487 {x} -2167.8 {y} 634.9 {z} 69.7
set_car_heading 34@ {heading} 92.3
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
35@ = create_char_inside_car 34@ {pedType} PedType.Mission5 {modelId} 118
set_char_never_targetted 35@ {state} True
set_load_collision_for_char_flag 35@ {state} True
set_char_decision_maker 35@ {handleOrTemplate} 158@
clear_area -2168.3999 {y} 639.0 {z} 69.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2168.3999 {y} 639.0 {z} 69.9
set_char_heading $scplayer {heading} 189.4
load_scene -2168.3999 {y} 639.0 {z} 69.9

:WUZI5_975
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @WUZI5_1001
goto @WUZI5_20684

:WUZI5_1001
alter_wanted_level $player1 {wantedLevel} 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1040
goto @WUZI5_20666

:WUZI5_1040
if 
  90@ == 0
goto_if_false @WUZI5_2013
if 
  91@ == 0
goto_if_false @WUZI5_1311
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2172.7 {y} 636.0 {z} 71.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2161.7 {y} 631.4 {z} 72.4 {switchStyle} SwitchType.JumpCut
shut_char_up_for_scripted_speech $scplayer {state} True
156@ = open_sequence_task 
task_enter_car_as_passenger -1 {vehicle} 34@ {time} -1 {seat} SeatId.BikeRear
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
load_scene_in_direction -2168.7 {y} 634.9 {z} 70.3 {heading} 248.0
do_fade 500 {direction} Fade.In

:WUZI5_1234
if 
  get_fading_status 
goto_if_false @WUZI5_1258
wait 0
goto @WUZI5_1234

:WUZI5_1258
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1290
goto @WUZI5_20666

:WUZI5_1290
92@ = 1
skip_cutscene_start_internal @WUZI5_1590
91@ = 1

:WUZI5_1311
if 
  91@ == 1
goto_if_false @WUZI5_1466
if 
  is_char_in_any_car $scplayer
goto_if_false @WUZI5_1466
task_play_anim 35@ {animationName} "CAR_SC1_FL" {animationFile} "CAR_CHAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 8000
task_play_anim $scplayer {animationName} "CAR_SC1_FR" {animationFile} "CAR_CHAT" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 8500
113@ = 1
115@ = 0
gosub @WUZI5_26535
TIMERA = 0
91@ = 2

:WUZI5_1466
if 
  91@ == 2
goto_if_false @WUZI5_1547
if 
  TIMERA > 9000
goto_if_false @WUZI5_1547
heli_goto_coords 34@ {x} -2167.8 {y} 634.9 {z} 80.7 {minAltitude} 0.0 {maxAltitude} 80.7
TIMERA = 0
91@ = 3

:WUZI5_1547
if 
  91@ == 3
goto_if_false @WUZI5_2013
if 
  113@ == 0
goto_if_false @WUZI5_2013
92@ = 0

:WUZI5_1590
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1624
goto @WUZI5_20666

:WUZI5_1624
if 
  92@ == 1
goto_if_false @WUZI5_1659
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0

:WUZI5_1659
do_fade 1000 {direction} Fade.Out

:WUZI5_1666
if 
  get_fading_status 
goto_if_false @WUZI5_1694
wait 0
request_car_recording 25
goto @WUZI5_1666

:WUZI5_1694
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1726
goto @WUZI5_20666

:WUZI5_1726
request_model 362
request_model 359
request_model 372
request_model 121
request_model 122
request_car_recording 25
load_all_models_now 
clear_prints 
clear_char_tasks $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_char_tasks_immediately $scplayer
attach_char_to_car $scplayer {vehicle} 34@ {xOffset} -1.4 {yOffset} 1.0 {zOffset} -0.1 {heading} Facing.Left {headingRange} 90.0 {weaponType} WeaponType.Minigun
start_playback_recorded_car 34@ {path} 25
skip_in_playback_recorded_car 34@ {amount} 750.0
set_heli_blades_full_speed 34@
remove_animation "CAR_CHAT"
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_camera_behind_player 
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  not is_car_dead 34@
goto_if_false @WUZI5_1903
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:WUZI5_1903
load_scene_in_direction -1735.7 {y} 1303.5 {z} 7.1 {heading} 120.8
do_fade 2000 {direction} Fade.In

:WUZI5_1932
if 
  get_fading_status 
goto_if_false @WUZI5_1960
wait 0
request_car_recording 25
goto @WUZI5_1932

:WUZI5_1960
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_1992
goto @WUZI5_20666

:WUZI5_1992
TIMERA = 0
91@ = 0
90@ = 1

:WUZI5_2013
if 
  90@ == 1
goto_if_false @WUZI5_4184
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @WUZI5_2127
if 
  2 > 95@
goto_if_false @WUZI5_2078
gosub @WUZI5_21147
goto @WUZI5_2127

:WUZI5_2078
if 
  not is_car_dead 34@
goto_if_false @WUZI5_2127
if 
  is_playback_going_on_for_car 34@
goto_if_false @WUZI5_2120
stop_playback_recorded_car 34@
make_heli_come_crashing_down 34@

:WUZI5_2120
91@ = 3

:WUZI5_2127
if 
  114@ == 0
goto_if_false @WUZI5_2192
if 
  TIMERA > 6000
goto_if_false @WUZI5_2192
113@ = 2
115@ = 0
gosub @WUZI5_26535
114@ = 1

:WUZI5_2192
if 
  2 > 95@
goto_if_false @WUZI5_2262
if 
  locate_char_any_means_2d $scplayer {x} -2409.1001 {y} 1541.0 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @WUZI5_2255
gosub @WUZI5_21147

:WUZI5_2255
goto @WUZI5_2276

:WUZI5_2262
gosub @WUZI5_22151
gosub @WUZI5_24641

:WUZI5_2276
if 
  not is_car_dead 34@
goto_if_false @WUZI5_3356
if 
  91@ == 0
goto_if_false @WUZI5_2386
if 
  locate_char_any_means_2d $scplayer {x} -2287.1001 {y} 1582.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_2386
113@ = 3
115@ = 0
gosub @WUZI5_26535
set_playback_speed 34@ {speed} 0.6
91@ = 1

:WUZI5_2386
if 
  91@ == 1
goto_if_false @WUZI5_2602
if 
  locate_char_any_means_2d $scplayer {x} -2483.3 {y} 1509.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_2602
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2429.5 {y} 1536.8 {z} 30.8 {radius} 1.0 {clearParticles} True
58@ = create_char PedType.Mission5 {modelId} 97@(99@,2i) {x} -2429.5 {y} 1536.8 {z} 30.8
give_weapon_to_char 58@ {weaponType} WeaponType.RocketLauncher {ammo} 12
set_char_stay_in_same_place 58@ {state} True
set_char_proofs 58@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2431.0 {y} 1530.4 {z} 30.8 {speed} MoveState.Run {time} -1
task_destroy_car -1 {vehicle} 34@
close_sequence_task 156@
perform_sequence_task 58@ {sequence} 156@
clear_sequence_task 156@
TIMERA = 0
91@ = 2

:WUZI5_2602
if 
  91@ == 2
goto_if_false @WUZI5_2674
if 
  TIMERA > 1800
goto_if_false @WUZI5_2674
113@ = 4
115@ = 0
116@ = 2
gosub @WUZI5_26535
91@ = 3

:WUZI5_2674
if 
  91@ == 3
goto_if_false @WUZI5_2797
if 
  locate_char_any_means_2d $scplayer {x} -2401.0 {y} 1499.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_2797
shake_pad PadId.Pad1 {time} 10000 {intensity} 200
140@, 141@, 142@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
add_explosion 140@ {y} 141@ {z} 142@ {type} ExplosionType.Aircraft
set_car_health 34@ {health} 300
91@ = 4

:WUZI5_2797
if 
  91@ > 3
goto_if_false @WUZI5_3041
140@, 141@, 142@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
144@ = generate_random_float_in_range -2.0 {max} 2.0
add_float_lvar_to_float_lvar 144@ += 140@
145@ = generate_random_float_in_range -2.0 {max} 2.0
add_float_lvar_to_float_lvar 145@ += 141@
set_lvar_float_to_lvar_float 146@ = 142@
147@ = generate_random_float_in_range -1.5 {max} 1.5
148@ = generate_random_float_in_range -1.5 {max} 1.5
149@ = generate_random_float_in_range 0.0 {max} 1.0
150@ = 0.0
151@ = 0.0
152@ = 0.0
153@ = 0.2
154@ = 1.0
155@ = 1.0
add_smoke_particle 144@ {y} 145@ {z} 146@ {velocityX} 147@ {velocityY} 148@ {velocityZ} 149@ {red} 150@ {green} 151@ {blue} 152@ {alpha} 153@ {size} 154@ {lastFactor} 155@

:WUZI5_3041
if 
  91@ == 4
goto_if_false @WUZI5_3293
if 
  locate_char_any_means_2d $scplayer {x} -2381.0 {y} 1489.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_3293
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
detach_char_from_car $scplayer
clear_area -2351.7 {y} 1487.4 {z} 1.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2351.7 {y} 1487.4 {z} 1.0
113@ = 4
115@ = 2
116@ = 5
gosub @WUZI5_26535
set_playback_speed 34@ {speed} 1.0
set_fixed_camera_position -2353.5 {y} 1450.2 {z} 82.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2365.3 {y} 1471.5 {z} 64.7 {switchStyle} SwitchType.JumpCut
92@ = 1
skip_cutscene_start_internal @WUZI5_3397
91@ = 5

:WUZI5_3293
if 
  91@ == 5
goto_if_false @WUZI5_3356
if 
  locate_car_2d 34@ {x} -2360.0 {y} 1481.5 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @WUZI5_3356
91@ = 6

:WUZI5_3356
if 
  7 > 91@
goto_if_false @WUZI5_4184
if 
  is_car_in_water 34@
goto_if_false @WUZI5_4184
92@ = 0

:WUZI5_3397
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_3431
goto @WUZI5_20666

:WUZI5_3431
if 
  92@ == 1
goto_if_false @WUZI5_3518
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_3473
if 
  get_fading_status 
goto_if_false @WUZI5_3497
wait 0
goto @WUZI5_3473

:WUZI5_3497
if 
  not is_car_dead 34@
goto_if_false @WUZI5_3518
skip_to_end_and_stop_playback_recorded_car 34@

:WUZI5_3518
shake_pad PadId.Pad1 {time} 0 {intensity} 0
do_fade 1000 {direction} Fade.Out

:WUZI5_3533
if 
  get_fading_status 
goto_if_false @WUZI5_3557
wait 0
goto @WUZI5_3533

:WUZI5_3557
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
detach_char_from_car $scplayer
mark_char_as_no_longer_needed 35@
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 118
request_model 342
request_model 335
request_model 349
load_all_models_now 
remove_all_char_weapons $scplayer
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Knife
clear_char_tasks_immediately $scplayer
clear_area -2351.7 {y} 1487.4 {z} 0.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2351.7 {y} 1487.4 {z} -1.0
set_char_heading $scplayer {heading} 318.0
if 
  not is_char_dead 36@
goto_if_false @WUZI5_3738
clear_char_tasks 36@

:WUZI5_3738
if 
  not is_char_dead 37@
goto_if_false @WUZI5_3759
clear_char_tasks 37@

:WUZI5_3759
if 
  not is_char_dead 38@
goto_if_false @WUZI5_3780
clear_char_tasks 38@

:WUZI5_3780
if 
  not is_char_dead 39@
goto_if_false @WUZI5_3801
clear_char_tasks 39@

:WUZI5_3801
if 
  not is_char_dead 40@
goto_if_false @WUZI5_3822
clear_char_tasks 40@

:WUZI5_3822
if 
  not is_char_dead 41@
goto_if_false @WUZI5_3850
clear_char_tasks 41@
task_toggle_duck 41@ {state} True

:WUZI5_3850
if 
  not is_char_dead 43@
goto_if_false @WUZI5_3871
clear_char_tasks 43@

:WUZI5_3871
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 86@
remove_blip 87@
remove_blip 88@
remove_blip 89@
80@ = add_blip_for_coord -2329.1001 {y} 1528.7 {z} 0.0
delete_char 58@
100@ = get_char_health $scplayer
if 
  100@ > 25
goto_if_false @WUZI5_4014
100@ /= 4
100@ *= 3
if 
  25 > 100@
goto_if_false @WUZI5_4006
100@ = 25

:WUZI5_4006
set_char_health $scplayer {health} 100@

:WUZI5_4014
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_char_tasks $scplayer
clear_prints 
draw_sphere -2329.1001 {y} 1528.7 {z} 0.0 {diameter} 4.0
do_fade 2000 {direction} Fade.In

:WUZI5_4074
if 
  get_fading_status 
goto_if_false @WUZI5_4142
draw_sphere -2329.1001 {y} 1528.7 {z} 0.0 {diameter} 4.0
wait 0
draw_sphere -2329.1001 {y} 1528.7 {z} 0.0 {diameter} 4.0
goto @WUZI5_4074

:WUZI5_4142
113@ = 12
115@ = 0
gosub @WUZI5_26535
114@ = 0
91@ = 0
90@ = 2

:WUZI5_4184
if 
  90@ == 2
goto_if_false @WUZI5_7182
if 
  91@ == 0
goto_if_false @WUZI5_4355
if 
  locate_char_any_means_3d $scplayer {x} -2329.1001 {y} 1528.7 {z} 0.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI5_4296
do_fade 500 {direction} Fade.Out
TIMERA = 0
91@ = 1
goto @WUZI5_4355

:WUZI5_4296
if 
  114@ == 0
goto_if_false @WUZI5_4355
if 
  113@ == 0
goto_if_false @WUZI5_4355
print_now 'WUZ4_02' {time} 7000 {flag} 1
114@ = 1

:WUZI5_4355
if 
  91@ == 1
goto_if_false @WUZI5_6385
if 
  TIMERA > 500
goto_if_false @WUZI5_6385
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
request_model #KMB_CONTAINER_RED
load_all_models_now 
request_animation "SWAT"

:WUZI5_4437
if 
  not has_animation_loaded "SWAT"
goto_if_false @WUZI5_4467
wait 0
goto @WUZI5_4437

:WUZI5_4467
71@ = create_object #KMB_CONTAINER_RED {x} -2323.8999 {y} 1527.3 {z} 14.0
set_object_collision 71@ {state} True
set_object_dynamic 71@ {state} False
set_object_visible 71@ {state} False
wait 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_4547
goto @WUZI5_20666

:WUZI5_4547
clear_char_tasks_immediately $scplayer
clear_area -2323.2 {y} 1530.2 {z} 16.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.2 {y} 1530.2 {z} 16.9
set_char_heading $scplayer {heading} 3.3
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead 36@
goto_if_false @WUZI5_4721
clear_area -2350.6001 {y} 1561.2 {z} 22.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 36@ {x} -2350.6001 {y} 1561.2 {z} 22.1
set_char_heading 36@ {heading} 4.7
task_play_anim 36@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:WUZI5_4721
if 
  not is_char_dead 37@
goto_if_false @WUZI5_4798
clear_area -2357.1001 {y} 1529.2 {z} 25.0 {radius} 1.0 {clearParticles} True
set_char_coordinates 37@ {x} -2357.1001 {y} 1529.2 {z} 25.0
set_char_heading 37@ {heading} 180.9
task_look_about 37@ {time} -2

:WUZI5_4798
delete_char 38@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2388.3 {y} 1553.1 {z} 25.0 {radius} 1.0 {clearParticles} True
38@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2388.3 {y} 1553.1 {z} 25.0
set_char_heading 38@ {heading} 0.0
set_char_decision_maker 38@ {handleOrTemplate} 157@
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 39@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2390.8999 {y} 1552.6 {z} 25.0 {radius} 1.0 {clearParticles} True
39@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2390.8999 {y} 1552.6 {z} 25.0
set_char_heading 39@ {heading} 0.0
set_char_decision_maker 39@ {handleOrTemplate} 157@
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 40@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2389.8 {y} 1554.9 {z} 25.0 {radius} 1.0 {clearParticles} True
40@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2389.8 {y} 1554.9 {z} 25.0
set_char_heading 40@ {heading} 220.6
set_char_decision_maker 40@ {handleOrTemplate} 157@
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 30000
if 
  not is_char_dead 39@
goto_if_false @WUZI5_5139
if 
  not is_char_dead 40@
goto_if_false @WUZI5_5139
task_chat_with_char 40@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 40@ {leadSpeaker} False {_p4} 1

:WUZI5_5139
delete_char 41@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2407.3 {y} 1547.6 {z} 25.0 {radius} 1.0 {clearParticles} True
41@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2407.3 {y} 1547.6 {z} 25.0
set_char_heading 41@ {heading} 319.2
set_char_decision_maker 41@ {handleOrTemplate} 157@
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 42@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2420.3999 {y} 1553.4 {z} 25.0 {radius} 1.0 {clearParticles} True
42@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2420.3999 {y} 1553.4 {z} 25.0
set_char_heading 42@ {heading} 180.0
set_char_decision_maker 42@ {handleOrTemplate} 158@
give_weapon_to_char 42@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 43@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2427.6001 {y} 1532.3 {z} 25.0 {radius} 1.0 {clearParticles} True
43@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2427.6001 {y} 1532.3 {z} 25.0
set_char_heading 43@ {heading} 275.0
set_char_decision_maker 43@ {handleOrTemplate} 157@
give_weapon_to_char 43@ {weaponType} WeaponType.Tec9 {ammo} 30000
delete_char 44@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2427.8999 {y} 1553.9 {z} 25.0 {radius} 1.0 {clearParticles} True
44@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2427.8999 {y} 1553.9 {z} 25.0
set_char_heading 44@ {heading} 183.8
set_char_decision_maker 44@ {handleOrTemplate} 157@
give_weapon_to_char 44@ {weaponType} WeaponType.Tec9 {ammo} 30000
clear_area -2334.5 {y} 1533.3 {z} 16.3 {radius} 1.0 {clearParticles} True
46@ = create_char PedType.Mission2 {modelId} 121 {x} -2334.5 {y} 1533.3 {z} 16.3
set_char_heading 46@ {heading} 116.3
give_weapon_to_char 46@ {weaponType} WeaponType.Shotgun {ammo} 3000
set_char_kinda_stay_in_same_place 46@ {state} True
set_char_decision_maker 46@ {handleOrTemplate} 157@
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2401.8 {y} 1530.3 {z} 30.8 {radius} 1.0 {clearParticles} True
47@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2401.8 {y} 1530.3 {z} 30.8
set_char_heading 47@ {heading} 0.0
set_char_decision_maker 47@ {handleOrTemplate} 157@
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2405.5 {y} 1530.3 {z} 30.8 {radius} 1.0 {clearParticles} True
48@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2405.5 {y} 1530.3 {z} 30.8
set_char_heading 48@ {heading} 0.0
set_char_decision_maker 48@ {handleOrTemplate} 158@
task_play_anim 48@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2426.5 {y} 1548.8 {z} 22.2 {radius} 1.0 {clearParticles} True
49@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2426.5 {y} 1548.8 {z} 22.2
set_char_heading 49@ {heading} 180.0
set_char_decision_maker 49@ {handleOrTemplate} 158@
set_char_stay_in_same_place 49@ {state} True
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2422.5 {y} 1548.8 {z} 22.2 {radius} 1.0 {clearParticles} True
50@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2422.5 {y} 1548.8 {z} 22.2
set_char_heading 50@ {heading} 180.0
set_char_decision_maker 50@ {handleOrTemplate} 158@
set_char_stay_in_same_place 50@ {state} True
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2339.2 {y} 1555.5 {z} 24.7 {radius} 1.0 {clearParticles} True
51@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2339.2 {y} 1555.5 {z} 24.7
set_char_heading 51@ {heading} 348.3
set_char_decision_maker 51@ {handleOrTemplate} 157@
set_char_kinda_stay_in_same_place 51@ {state} True
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_look_about 51@ {time} -2
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2360.0 {y} 1560.3 {z} 25.0 {radius} 1.0 {clearParticles} True
52@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2360.0 {y} 1560.3 {z} 25.0
set_char_heading 52@ {heading} 26.4
set_char_decision_maker 52@ {handleOrTemplate} 157@
set_char_kinda_stay_in_same_place 52@ {state} True
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_look_about 52@ {time} -2
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2334.7 {y} 1529.8 {z} 16.3 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 126.8
task_look_about -1 {time} -2
close_sequence_task 156@
perform_sequence_task 46@ {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2332.5 {y} 1534.4 {z} 18.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2342.5 {y} 1513.7 {z} 15.33 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
113@ = 5
115@ = 0
116@ = 1
gosub @WUZI5_26535
TIMERA = 0
91@ = 2

:WUZI5_6385
if 
  91@ == 2
goto_if_false @WUZI5_6443
if 
  TIMERA > 2000
goto_if_false @WUZI5_6443
92@ = 1
skip_cutscene_start_internal @WUZI5_6715
91@ = 3

:WUZI5_6443
if 
  91@ == 3
goto_if_false @WUZI5_6533
if 
  113@ == 0
goto_if_false @WUZI5_6533
if 
  TIMERA > 3200
goto_if_false @WUZI5_6533
113@ = 5
115@ = 1
116@ = 2
gosub @WUZI5_26535
91@ = 4

:WUZI5_6533
if 
  91@ == 4
goto_if_false @WUZI5_6671
if 
  TIMERA > 6000
goto_if_false @WUZI5_6671
clear_char_tasks_immediately $scplayer
156@ = open_sequence_task 
task_climb -1 {flag} True
task_achieve_heading -1 {heading} 85.1
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2320.3999 {y} 1535.2 {z} 18.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2354.3999 {y} 1508.1 {z} 18.9 {switchStyle} SwitchType.JumpCut
91@ = 5

:WUZI5_6671
if 
  91@ == 5
goto_if_false @WUZI5_7182
if 
  TIMERA > 8500
goto_if_false @WUZI5_7182
92@ = 0

:WUZI5_6715
skip_cutscene_end 
if 
  92@ == 1
goto_if_false @WUZI5_6815
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_6759
if 
  get_fading_status 
goto_if_false @WUZI5_6783
wait 0
goto @WUZI5_6759

:WUZI5_6783
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_6815
goto @WUZI5_20666

:WUZI5_6815
if 
  not is_char_dead 46@
goto_if_false @WUZI5_6839
set_char_decision_maker 46@ {handleOrTemplate} 159@

:WUZI5_6839
if 
  not is_char_dead 51@
goto_if_false @WUZI5_6863
set_char_decision_maker 51@ {handleOrTemplate} 159@

:WUZI5_6863
if 
  not is_char_dead 52@
goto_if_false @WUZI5_6887
set_char_decision_maker 52@ {handleOrTemplate} 159@

:WUZI5_6887
if 
  not is_char_dead 36@
goto_if_false @WUZI5_6911
set_char_decision_maker 36@ {handleOrTemplate} 159@

:WUZI5_6911
if 
  not is_char_dead 37@
goto_if_false @WUZI5_6935
set_char_decision_maker 37@ {handleOrTemplate} 159@

:WUZI5_6935
clear_char_tasks $scplayer
delete_object 71@
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
clear_area -2323.1001 {y} 1531.7 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.1001 {y} 1531.7 {z} 16.3
set_char_heading $scplayer {heading} 85.2
clear_prints 
print_now 'WUZ4_10' {time} 7000 {flag} 1
remove_blip 80@
80@ = add_blip_for_coord -2437.6001 {y} 1541.5 {z} 6.4
mark_car_as_no_longer_needed 34@
shut_all_chars_up False
shut_char_up_for_scripted_speech $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  92@ == 1
goto_if_false @WUZI5_7161
do_fade 500 {direction} Fade.In

:WUZI5_7105
if 
  get_fading_status 
goto_if_false @WUZI5_7129
wait 0
goto @WUZI5_7105

:WUZI5_7129
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_7161
goto @WUZI5_20666

:WUZI5_7161
114@ = 0
91@ = 0
90@ = 3

:WUZI5_7182
if 
  90@ == 3
goto_if_false @WUZI5_10888
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @WUZI5_7235
set_char_coordinates $scplayer {x} -2437.5 {y} 1538.4 {z} 10.7

:WUZI5_7235
if 
  91@ == 0
goto_if_false @WUZI5_7441
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2428.6001 {leftBottomY} 1532.6 {leftBottomZ} 12.2 {rightTopX} -2441.3 {rightTopY} 1549.9 {rightTopZ} 8.0 {drawSphere} False
goto_if_false @WUZI5_7386
if 
  locate_char_any_means_3d $scplayer {x} -2437.6001 {y} 1541.5 {z} 6.4 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @WUZI5_7349

:WUZI5_7349
if 
  not is_player_climbing $player1
goto_if_false @WUZI5_7379
set_player_control $player1 {state} False
91@ = 1

:WUZI5_7379
goto @WUZI5_7441

:WUZI5_7386
gosub @WUZI5_24954
if 
  locate_char_any_means_3d $scplayer {x} -2437.6001 {y} 1541.5 {z} 6.4 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @WUZI5_7441

:WUZI5_7441
if 
  91@ == 1
goto_if_false @WUZI5_8954
if 
  locate_char_any_means_3d $scplayer {x} -2437.6001 {y} 1541.5 {z} 6.4 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @WUZI5_7507

:WUZI5_7507
if 
  is_char_stopped $scplayer
goto_if_false @WUZI5_8954
do_fade 500 {direction} Fade.Out

:WUZI5_7530
if 
  get_fading_status 
goto_if_false @WUZI5_7554
wait 0
goto @WUZI5_7530

:WUZI5_7554
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_7586
goto @WUZI5_20666

:WUZI5_7586
shut_all_chars_up True
clear_area -2374.3999 {y} 1548.5 {z} 1.1 {radius} 1.0 {clearParticles} True
45@ = create_char PedType.Mission2 {modelId} 122 {x} -2374.3999 {y} 1548.5 {z} 1.1
set_char_heading 45@ {heading} 299.2
set_char_decision_maker 45@ {handleOrTemplate} 158@
give_weapon_to_char 45@ {weaponType} WeaponType.Grenade {ammo} 1
add_armour_to_char 45@ {amount} 100
remove_animation "SWAT"
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 335
delete_object 71@
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
request_animation "PARK"

:WUZI5_7708
if 
  not has_animation_loaded "PARK"
goto_if_false @WUZI5_7738
wait 0
goto @WUZI5_7708

:WUZI5_7738
73@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 48 {x} -2428.3999 {y} 1536.3 {z} 2.1
72@ = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} -2425.3 {y} 1536.4 {z} 2.1
94@ = 0

:WUZI5_7796
wait 0
if 
  15 > 94@
goto_if_false @WUZI5_7859
if 
  94@ <> 9
goto_if_false @WUZI5_7845
delete_char 36@(94@,17i)

:WUZI5_7845
94@ += 1
goto @WUZI5_7796

:WUZI5_7859
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
request_model #CJ_CHRIS_CRATE
request_model #CJ_CHRIS_CRATE_LD
request_model #CJ_CHRIS_CRATE_RD
request_model #CJ_PADLOCK
request_model 210
load_all_models_now 
clear_area -2368.8999 {y} 1551.9 {z} 1.1 {radius} 10.0 {clearParticles} True
76@ = create_object #CJ_CHRIS_CRATE {x} -2368.8999 {y} 1551.9 {z} 1.1
set_object_heading 76@ {heading} 270.0
77@ = create_object #CJ_CHRIS_CRATE_LD {x} -2371.55 {y} 1552.66 {z} 1.245
set_object_heading 77@ {heading} 270.0
78@ = create_object #CJ_CHRIS_CRATE_RD {x} -2371.55 {y} 1551.14 {z} 1.245
set_object_heading 78@ {heading} 270.0
79@ = create_object #CJ_PADLOCK {x} -2371.75 {y} 1551.9 {z} 2.1
set_object_heading 79@ {heading} 270.0
clear_area -2408.3999 {y} 1553.1 {z} 1.1 {radius} 1.0 {clearParticles} True
36@ = create_char PedType.Mission2 {modelId} 121 {x} -2408.3999 {y} 1553.1 {z} 1.1
set_char_heading 36@ {heading} 151.3
set_char_decision_maker 36@ {handleOrTemplate} 158@
task_set_ignore_weapon_range_flag 36@ {state} True
give_weapon_to_char 36@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2404.8 {y} 1555.1 {z} 1.1 {radius} 1.0 {clearParticles} True
37@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2404.8 {y} 1555.1 {z} 1.1
set_anim_group_for_char 37@ {animGroup} "GANG2"
set_char_heading 37@ {heading} 102.0
set_char_decision_maker 37@ {handleOrTemplate} 158@
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2401.3 {y} 1555.1 {z} 1.1 {radius} 1.0 {clearParticles} True
38@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2401.3 {y} 1555.1 {z} 1.1
set_anim_group_for_char 38@ {animGroup} "GANG1"
set_char_heading 38@ {heading} 90.0
set_char_decision_maker 38@ {handleOrTemplate} 158@
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2389.3999 {y} 1553.4 {z} 1.1 {radius} 1.0 {clearParticles} True
39@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2389.3999 {y} 1553.4 {z} 1.1
set_char_heading 39@ {heading} 180.0
set_char_decision_maker 39@ {handleOrTemplate} 158@
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2404.7 {y} 1545.5 {z} 1.1 {radius} 1.0 {clearParticles} True
40@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2404.7 {y} 1545.5 {z} 1.1
set_char_heading 40@ {heading} 266.2
set_char_decision_maker 40@ {handleOrTemplate} 158@
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 30000
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2406.3999 {y} 1544.7 {z} 1.1 {radius} 1.0 {clearParticles} True
41@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2406.3999 {y} 1544.7 {z} 1.1
set_char_heading 41@ {heading} 256.3
set_char_decision_maker 41@ {handleOrTemplate} 158@
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 30000
if 
  not is_char_dead 45@
goto_if_false @WUZI5_8691
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2372.5 {y} 1551.0 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
remove_blip 80@
80@ = add_blip_for_char 45@

:WUZI5_8691
clear_area -2370.3 {y} 1551.9 {z} 1.2 {radius} 30.0 {clearParticles} True
62@ = create_char PedType.Mission5 {modelId} 210 {x} -2370.3 {y} 1551.9 {z} 1.2
set_char_heading 62@ {heading} 96.2
set_char_decision_maker 62@ {handleOrTemplate} 158@
set_char_only_damaged_by_player 62@ {state} True
set_char_never_targetted 62@ {state} True
set_fixed_camera_position -2375.2 {y} 1555.9 {z} 1.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2368.8999 {y} 1547.7 {z} 3.8 {switchStyle} SwitchType.JumpCut
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_char_tasks_immediately $scplayer
clear_area -2435.6001 {y} 1551.1 {z} 4.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2435.6001 {y} 1551.1 {z} 4.0
set_char_heading $scplayer {heading} 280.8
do_fade 500 {direction} Fade.In

:WUZI5_8902
if 
  get_fading_status 
goto_if_false @WUZI5_8926
wait 0
goto @WUZI5_8902

:WUZI5_8926
92@ = 1
skip_cutscene_start_internal @WUZI5_10101
TIMERA = 0
91@ = 2

:WUZI5_8954
if 
  91@ == 2
goto_if_false @WUZI5_9054
if 
  not is_char_dead 45@
goto_if_false @WUZI5_9054
if 
  locate_char_any_means_2d 45@ {x} -2372.5 {y} 1551.0 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @WUZI5_9054
113@ = 6
115@ = 0
gosub @WUZI5_26535
91@ = 3

:WUZI5_9054
if 
  91@ == 3
goto_if_false @WUZI5_9159
if 
  113@ == 0
goto_if_false @WUZI5_9159
if 
  not is_char_dead 45@
goto_if_false @WUZI5_9159
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2376.8 {y} 1546.7 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 4

:WUZI5_9159
if 
  91@ == 4
goto_if_false @WUZI5_9654
if 
  TIMERA > 6000
goto_if_false @WUZI5_9654
do_fade 500 {direction} Fade.Out

:WUZI5_9203
if 
  get_fading_status 
goto_if_false @WUZI5_9227
wait 0
goto @WUZI5_9203

:WUZI5_9227
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_9259
goto @WUZI5_20666

:WUZI5_9259
if 
  not is_char_dead 36@
goto_if_false @WUZI5_9330
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2410.7 {y} 1548.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 90.0
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9330
if 
  not is_char_dead 37@
goto_if_false @WUZI5_9407
156@ = open_sequence_task 
task_pause -1 {time} 10
task_go_straight_to_coord -1 {x} -2409.8999 {y} 1551.0 {z} 1.1 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 181.1
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9407
if 
  not is_char_dead 38@
goto_if_false @WUZI5_9498
156@ = open_sequence_task 
task_pause -1 {time} 15
task_go_straight_to_coord -1 {x} -2406.3 {y} 1554.0 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2406.7 {y} 1553.8 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9498
set_fixed_camera_position -2414.8999 {y} 1547.8 {z} 2.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2409.7 {y} 1549.5 {z} 1.9 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:WUZI5_9556
if 
  get_fading_status 
goto_if_false @WUZI5_9580
wait 0
goto @WUZI5_9556

:WUZI5_9580
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_9612
goto @WUZI5_20666

:WUZI5_9612
113@ = 7
115@ = 0
116@ = 1
gosub @WUZI5_26535
TIMERA = 0
91@ = 5

:WUZI5_9654
if 
  91@ == 5
goto_if_false @WUZI5_10007
if 
  not is_char_dead 36@
goto_if_false @WUZI5_10007
$task_status = get_script_task_status 36@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_10007
if 
  not is_char_dead 36@
goto_if_false @WUZI5_9785
156@ = open_sequence_task 
task_aim_gun_at_coord -1 {x} -2417.5 {y} 1548.2 {z} 2.1 {time} 5000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9785
if 
  not is_char_dead 37@
goto_if_false @WUZI5_9878
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2405.0 {y} 1551.0 {z} 1.1 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 261.2
task_climb -1 {flag} True
task_achieve_heading -1 {heading} 90.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9878
if 
  not is_char_dead 38@
goto_if_false @WUZI5_9972
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2394.0 {y} 1554.4 {z} 1.1 {speed} MoveState.Sprint {time} -1
task_go_straight_to_coord -1 {x} -2393.5 {y} 1545.1 {z} 1.1 {speed} MoveState.Sprint {time} -1
task_achieve_heading -1 {heading} 0.0
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_9972
113@ = 7
115@ = 1
116@ = 2
gosub @WUZI5_26535
91@ = 6

:WUZI5_10007
if 
  91@ == 6
goto_if_false @WUZI5_10057
if 
  113@ == 0
goto_if_false @WUZI5_10057
TIMERA = 0
91@ = 7

:WUZI5_10057
if 
  91@ == 7
goto_if_false @WUZI5_10888
if 
  TIMERA > 800
goto_if_false @WUZI5_10888
92@ = 0

:WUZI5_10101
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10135
goto @WUZI5_20666

:WUZI5_10135
if 
  92@ == 1
goto_if_false @WUZI5_10458
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_10177
if 
  get_fading_status 
goto_if_false @WUZI5_10201
wait 0
goto @WUZI5_10177

:WUZI5_10201
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10233
goto @WUZI5_20666

:WUZI5_10233
if 
  not is_char_dead 36@
goto_if_false @WUZI5_10308
clear_char_tasks_immediately 36@
clear_area -2410.7 {y} 1548.2 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 36@ {x} -2410.7 {y} 1548.2 {z} 1.1
set_char_heading 36@ {heading} 90.0

:WUZI5_10308
if 
  not is_char_dead 37@
goto_if_false @WUZI5_10383
clear_char_tasks_immediately 37@
clear_area -2405.0 {y} 1551.0 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 37@ {x} -2405.0 {y} 1551.0 {z} 1.1
set_char_heading 37@ {heading} 90.0

:WUZI5_10383
if 
  not is_char_dead 38@
goto_if_false @WUZI5_10458
clear_char_tasks_immediately 38@
clear_area -2393.5 {y} 1545.1 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 38@ {x} -2393.5 {y} 1545.1 {z} 1.1
set_char_heading 38@ {heading} 0.0

:WUZI5_10458
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead 36@
goto_if_false @WUZI5_10486
set_char_decision_maker 36@ {handleOrTemplate} 157@

:WUZI5_10486
if 
  not is_char_dead 37@
goto_if_false @WUZI5_10510
set_char_decision_maker 37@ {handleOrTemplate} 157@

:WUZI5_10510
if 
  not is_char_dead 38@
goto_if_false @WUZI5_10534
set_char_decision_maker 38@ {handleOrTemplate} 157@

:WUZI5_10534
if 
  not is_char_dead 39@
goto_if_false @WUZI5_10558
set_char_decision_maker 39@ {handleOrTemplate} 157@

:WUZI5_10558
if 
  not is_char_dead 40@
goto_if_false @WUZI5_10582
set_char_decision_maker 40@ {handleOrTemplate} 157@

:WUZI5_10582
if 
  not is_char_dead 41@
goto_if_false @WUZI5_10606
set_char_decision_maker 41@ {handleOrTemplate} 157@

:WUZI5_10606
if 
  not is_char_dead 45@
goto_if_false @WUZI5_10681
clear_char_tasks 45@
clear_area -2377.0 {y} 1535.6 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 45@ {x} -2377.0 {y} 1535.6 {z} 1.1
set_char_heading 45@ {heading} 90.0

:WUZI5_10681
clear_char_tasks_immediately $scplayer
clear_area -2435.6001 {y} 1551.1 {z} 4.0 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2435.6001 {y} 1551.1 {z} 4.0
set_char_heading $scplayer {heading} 280.8
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_now 'WUZ4_05' {time} 4000 {flag} 1
if 
  92@ == 1
goto_if_false @WUZI5_10867
do_fade 500 {direction} Fade.In

:WUZI5_10811
if 
  get_fading_status 
goto_if_false @WUZI5_10835
wait 0
goto @WUZI5_10811

:WUZI5_10835
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_10867
goto @WUZI5_20666

:WUZI5_10867
114@ = 0
91@ = 0
90@ = 4

:WUZI5_10888
if 
  90@ == 4
goto_if_false @WUZI5_16191
if 
  5 > 91@
goto_if_false @WUZI5_11114
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2381.7 {leftBottomY} 1546.2 {leftBottomZ} 0.0 {rightTopX} -2365.1001 {rightTopY} 1556.1 {rightTopZ} 6.5 {drawSphere} False
goto_if_false @WUZI5_11114
if 
  113@ == 0
goto_if_false @WUZI5_11043
if 
  114@ == 0
goto_if_false @WUZI5_11043
113@ = 9
115@ = 0
116@ = 1
gosub @WUZI5_26535
114@ = 1

:WUZI5_11043
if 
  113@ == 0
goto_if_false @WUZI5_11114
if 
  114@ == 1
goto_if_false @WUZI5_11114
113@ = 9
115@ = 1
116@ = 2
gosub @WUZI5_26535
114@ = 2

:WUZI5_11114
if 
  is_char_dead 62@
goto_if_false @WUZI5_11155
clear_prints 
print_now 'WUZ4_03' {time} 4000 {flag} 1
goto @WUZI5_20666

:WUZI5_11155
if 
  91@ == 0
goto_if_false @WUZI5_11611
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @WUZI5_11229
if 
  not is_char_dead 45@
goto_if_false @WUZI5_11209
explode_char_head 45@

:WUZI5_11209
set_char_coordinates $scplayer {x} -2374.0 {y} 1551.0 {z} 2.0

:WUZI5_11229
if 
  not is_char_dead 45@
goto_if_false @WUZI5_11604
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2370.3999 {leftBottomY} 1533.6 {leftBottomZ} 1.1 {rightTopX} -2408.5 {rightTopY} 1537.4 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11344
task_shoot_at_coord 45@ {x} -2400.1001 {y} 1535.3 {z} 1.1 {time} 500
113@ = 8
115@ = 0
gosub @WUZI5_26535
91@ = 1

:WUZI5_11344
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2375.1001 {leftBottomY} 1556.2 {leftBottomZ} 1.1 {rightTopX} -2379.2 {rightTopY} 1537.3 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11443
task_shoot_at_coord 45@ {x} -2377.0 {y} 1552.4 {z} 1.1 {time} 500
113@ = 8
115@ = 0
gosub @WUZI5_26535
91@ = 1

:WUZI5_11443
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -2375.1001 {leftBottomY} 1556.2 {leftBottomZ} 1.1 {rightTopX} -2379.2 {rightTopY} 1537.3 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11597
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -2370.3999 {leftBottomY} 1533.6 {leftBottomZ} 1.1 {rightTopX} -2408.5 {rightTopY} 1537.4 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_11597
if 
  has_char_been_damaged_by_char 45@ {handle} $scplayer
goto_if_false @WUZI5_11597
remove_weapon_from_char 45@ {weaponType} WeaponType.Grenade
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_current_char_weapon 45@ {weaponType} WeaponType.Tec9
task_kill_char_on_foot 45@ {target} $scplayer
91@ = 3

:WUZI5_11597
goto @WUZI5_11611

:WUZI5_11604
91@ = 3

:WUZI5_11611
if 
  91@ == 1
goto_if_false @WUZI5_11760
if 
  not is_char_dead 45@
goto_if_false @WUZI5_11753
$task_status = get_script_task_status 45@ {taskId} 1640
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_11746
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.3999 {y} 1539.1 {z} 1.1 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 2

:WUZI5_11746
goto @WUZI5_11760

:WUZI5_11753
91@ = 3

:WUZI5_11760
if 
  91@ == 2
goto_if_false @WUZI5_12021
if 
  not is_char_dead 45@
goto_if_false @WUZI5_12014
$task_status = get_script_task_status 45@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_12007
if or
  is_char_in_area_3d $scplayer {leftBottomX} -2370.3999 {leftBottomY} 1533.6 {leftBottomZ} 0.0 {rightTopX} -2408.5 {rightTopY} 1537.4 {rightTopZ} 4.0 {drawSphere} False
  has_char_been_damaged_by_char $scplayer {handle} 45@
goto_if_false @WUZI5_11922
156@ = open_sequence_task 
task_weapon_roll -1 {direction} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 3

:WUZI5_11922
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2375.1001 {leftBottomY} 1556.2 {leftBottomZ} 1.1 {rightTopX} -2379.2 {rightTopY} 1537.3 {rightTopZ} 5.2 {drawSphere} False
goto_if_false @WUZI5_12007
156@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 45@ {sequence} 156@
clear_sequence_task 156@
91@ = 3

:WUZI5_12007
goto @WUZI5_12021

:WUZI5_12014
91@ = 3

:WUZI5_12021
if 
  91@ == 3
goto_if_false @WUZI5_12141
if 
  is_char_dead 45@
goto_if_false @WUZI5_12141
make_object_targettable 79@ {state} True
remove_blip 80@
80@ = add_blip_for_object 79@
if 
  does_object_exist 79@
goto_if_false @WUZI5_12134
160@ = get_object_health 79@
if 
  999 <= 160@
goto_if_false @WUZI5_12134
print_now 'WUZ4_09' {time} 11000 {flag} 1

:WUZI5_12134
91@ = 4

:WUZI5_12141
if 
  91@ == 4
goto_if_false @WUZI5_12244
if 
  does_object_exist 79@
goto_if_false @WUZI5_12230
160@ = get_object_health 79@
if 
  999 > 160@
goto_if_false @WUZI5_12223
break_object 79@ {intensity} 0
TIMERA = 0
91@ = 5

:WUZI5_12223
goto @WUZI5_12244

:WUZI5_12230
TIMERA = 0
91@ = 5

:WUZI5_12244
if 
  91@ == 5
goto_if_false @WUZI5_12996
if 
  TIMERA > 1000
goto_if_false @WUZI5_12996
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
delete_object 79@
clear_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoObject
mark_model_as_no_longer_needed 342
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1819

:WUZI5_12348
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @WUZI5_12374
wait 0
goto @WUZI5_12348

:WUZI5_12374
request_model 339
request_model 49
request_model 58
request_animation "GANGS"
load_all_models_now 
gosub @WUZI5_24711
clear_char_tasks_immediately $scplayer
clear_area -2373.8999 {y} 1552.1 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2373.8999 {y} 1552.1 {z} 1.1
set_char_heading $scplayer {heading} 267.0
set_fixed_camera_position -2375.0 {y} 1547.2 {z} 2.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2370.8999 {y} 1555.3 {z} 2.7 {switchStyle} SwitchType.JumpCut
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2473.3 {y} 1536.3 {z} 27.8 {radius} 1.0 {clearParticles} True
68@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2473.3 {y} 1536.3 {z} 27.8
set_char_heading 68@ {heading} 12.6
set_char_decision_maker 68@ {handleOrTemplate} 157@
give_weapon_to_char 68@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 68@ {state} True
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2476.3 {y} 1536.3 {z} 27.8 {radius} 1.0 {clearParticles} True
69@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2476.3 {y} 1536.3 {z} 27.8
set_char_heading 69@ {heading} 321.5
set_char_decision_maker 69@ {handleOrTemplate} 157@
give_weapon_to_char 69@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 69@ {state} True
99@ = generate_random_int_in_range 0 {max} 2
clear_area -2470.3 {y} 1546.9 {z} 22.6 {radius} 1.0 {clearParticles} True
70@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2470.3 {y} 1546.9 {z} 22.6
set_char_heading 70@ {heading} 265.4
set_char_decision_maker 70@ {handleOrTemplate} 157@
give_weapon_to_char 70@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 70@ {state} True
clear_area -2471.5 {y} 1548.2 {z} 32.2 {radius} 1.0 {clearParticles} True
65@ = create_char PedType.Mission2 {modelId} 49 {x} -2471.5 {y} 1548.2 {z} 32.2
set_char_heading 65@ {heading} 130.0
give_weapon_to_char 65@ {weaponType} WeaponType.Katana {ammo} 1
set_char_shoot_rate 65@ {rate} 70
remove_blip 80@
80@ = add_blip_for_char 65@
change_blip_scale 80@ {size} 1
set_char_decision_maker 65@ {handleOrTemplate} 158@
task_play_anim_non_interruptable 65@ {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
92@ = 1
skip_cutscene_start_internal @WUZI5_14511
report_mission_audio_event_at_position -2371.55 {y} 1552.66 {z} 1.245 {soundId} ScriptSound.SoundDaNangContainerOpen
TIMERA = 0
91@ = 6

:WUZI5_12996
if 
  91@ == 6
goto_if_false @WUZI5_13630
if 
  does_object_exist 77@
goto_if_false @WUZI5_13047
  rotate_object 77@ {fromAngle} 180.0 {toAngle} 2.0 {collisionCheck} False

:WUZI5_13047
if 
  does_object_exist 78@
goto_if_false @WUZI5_13080
  rotate_object 78@ {fromAngle} 360.0 {toAngle} 2.0 {collisionCheck} False

:WUZI5_13080
if 
  not is_char_dead 62@
goto_if_false @WUZI5_13179
156@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_straight_to_coord -1 {x} -2372.8 {y} 1551.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2374.3999 {y} 1551.9 {z} 1.1 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 62@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13179
if 
  TIMERA > 2000
goto_if_false @WUZI5_13630
if 
  not is_char_dead 59@
goto_if_false @WUZI5_13327
156@ = open_sequence_task 
task_pause -1 {time} 900
task_go_straight_to_coord -1 {x} -2372.8 {y} 1552.1 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2373.3999 {y} 1553.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000
close_sequence_task 156@
perform_sequence_task 59@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13327
if 
  not is_char_dead 60@
goto_if_false @WUZI5_13426
156@ = open_sequence_task 
task_pause -1 {time} 2000
task_go_straight_to_coord -1 {x} -2372.8 {y} 1552.1 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2374.1001 {y} 1550.6 {z} 1.1 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 60@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13426
if 
  not is_char_dead 61@
goto_if_false @WUZI5_13504
156@ = open_sequence_task 
task_pause -1 {time} 2500
task_go_straight_to_coord -1 {x} -2372.8 {y} 1552.1 {z} 1.1 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 6.7
close_sequence_task 156@
perform_sequence_task 61@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_13504
clear_area -2376.1001 {y} 1552.5 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2376.1001 {y} 1552.5 {z} 1.1
set_char_heading $scplayer {heading} 264.4
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2376.8999 {y} 1554.3 {z} 2.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2370.6001 {y} 1549.7 {z} 2.7 {switchStyle} SwitchType.JumpCut
TIMERA = 0
91@ = 7

:WUZI5_13630
if 
  91@ == 7
goto_if_false @WUZI5_13793
if 
  not is_char_dead 62@
goto_if_false @WUZI5_13793
$task_status = get_script_task_status 62@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_13793
156@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 156@
perform_sequence_task 62@ {sequence} 156@
clear_sequence_task 156@
113@ = 10
115@ = 0
116@ = 2
gosub @WUZI5_26535
91@ = 8

:WUZI5_13793
if 
  91@ == 8
goto_if_false @WUZI5_14161
if 
  TIMERA > 6000
goto_if_false @WUZI5_14161
if 
  113@ == 0
goto_if_false @WUZI5_14161
do_fade 500 {direction} Fade.Out

:WUZI5_13855
if 
  get_fading_status 
goto_if_false @WUZI5_13879
wait 0
goto @WUZI5_13855

:WUZI5_13879
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_13911
goto @WUZI5_20666

:WUZI5_13911
load_scene -2465.5 {y} 1547.1 {z} 22.7
if 
  not is_char_dead 70@
goto_if_false @WUZI5_14013
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2468.8999 {y} 1547.2 {z} 22.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2465.5 {y} 1547.1 {z} 22.7 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 70@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_14013
set_fixed_camera_position -2460.0 {y} 1552.1 {z} 22.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2468.1001 {y} 1543.8 {z} 25.9 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:WUZI5_14071
if 
  get_fading_status 
goto_if_false @WUZI5_14095
wait 0
goto @WUZI5_14071

:WUZI5_14095
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14127
goto @WUZI5_20666

:WUZI5_14127
report_mission_audio_event_at_position -2468.0 {y} 1547.3 {z} 22.8 {soundId} ScriptSound.SoundDaNangHeavyDoorOpen
TIMERA = 0
91@ = 9

:WUZI5_14161
if 
  91@ == 9
goto_if_false @WUZI5_14467
if 
  does_object_exist $w5_storm_freighter_door
goto_if_false @WUZI5_14212
  rotate_object $w5_storm_freighter_door {fromAngle} 90.0 {toAngle} 2.0 {collisionCheck} False

:WUZI5_14212
if 
  TIMERA > 6000
goto_if_false @WUZI5_14467
do_fade 500 {direction} Fade.Out

:WUZI5_14238
if 
  get_fading_status 
goto_if_false @WUZI5_14262
wait 0
goto @WUZI5_14238

:WUZI5_14262
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14294
goto @WUZI5_20666

:WUZI5_14294
load_scene -2471.5 {y} 1548.2 {z} 32.2
set_fixed_camera_position -2476.5 {y} 1546.5 {z} 33.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2462.6001 {y} 1546.8 {z} 32.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:WUZI5_14369
if 
  get_fading_status 
goto_if_false @WUZI5_14393
wait 0
goto @WUZI5_14369

:WUZI5_14393
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14425
goto @WUZI5_20666

:WUZI5_14425
113@ = 10
115@ = 2
116@ = 3
gosub @WUZI5_26535
TIMERA = 0
91@ = 10

:WUZI5_14467
if 
  91@ == 10
goto_if_false @WUZI5_16191
if 
  TIMERA > 7000
goto_if_false @WUZI5_16191
92@ = 0

:WUZI5_14511
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14545
goto @WUZI5_20666

:WUZI5_14545
if 
  92@ == 1
goto_if_false @WUZI5_14643
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_14587
if 
  get_fading_status 
goto_if_false @WUZI5_14611
wait 0
goto @WUZI5_14587

:WUZI5_14611
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_14643
goto @WUZI5_20666

:WUZI5_14643
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead 59@
goto_if_false @WUZI5_14929
clear_char_tasks_immediately 59@
clear_area -2373.3999 {y} 1553.3 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 59@ {x} -2373.3999 {y} 1553.3 {z} 1.1
set_char_heading 59@ {heading} 120.0
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2432.3 {y} 1544.7 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 59@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_14929
if 
  not is_char_dead 60@
goto_if_false @WUZI5_15211
clear_char_tasks_immediately 60@
clear_area -2374.1001 {y} 1550.6 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 60@ {x} -2374.1001 {y} 1550.6 {z} 1.1
set_char_heading 60@ {heading} 63.1
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2430.6001 {y} 1543.7 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 60@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_15211
if 
  not is_char_dead 61@
goto_if_false @WUZI5_15493
clear_char_tasks_immediately 61@
clear_area -2372.8 {y} 1552.1 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 61@ {x} -2372.8 {y} 1552.1 {z} 1.1
set_char_heading 61@ {heading} 90.0
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2430.3999 {y} 1545.8 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 61@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_15493
if 
  not is_char_dead 62@
goto_if_false @WUZI5_15775
clear_char_tasks_immediately 62@
clear_area -2374.3999 {y} 1551.9 {z} 1.1 {radius} 1.0 {clearParticles} True
set_char_coordinates 62@ {x} -2374.3999 {y} 1551.9 {z} 1.1
set_char_heading 62@ {heading} 90.0
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2377.1001 {y} 1546.4 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2377.2 {y} 1535.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2404.0 {y} 1534.8 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2407.6001 {y} 1544.3 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.1001 {y} 1546.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2393.3999 {y} 1554.2 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2405.2 {y} 1554.5 {z} 1.1 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -2428.3999 {y} 1544.6 {z} 1.1 {speed} MoveState.Walk {time} -1
close_sequence_task 156@
perform_sequence_task 62@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_15775
if 
  does_object_exist 77@
goto_if_false @WUZI5_15808
  rotate_object 77@ {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False

:WUZI5_15808
if 
  does_object_exist 78@
goto_if_false @WUZI5_15841
  rotate_object 78@ {fromAngle} 360.0 {toAngle} 360.0 {collisionCheck} False

:WUZI5_15841
if 
  does_object_exist $w5_storm_freighter_door
goto_if_false @WUZI5_15874
  rotate_object $w5_storm_freighter_door {fromAngle} 90.0 {toAngle} 100.0 {collisionCheck} False

:WUZI5_15874
if 
  not is_char_dead 70@
goto_if_false @WUZI5_15934
clear_area -2466.8999 {y} 1546.9 {z} 22.7 {radius} 30.0 {clearParticles} True
set_char_coordinates 70@ {x} -2466.8999 {y} 1546.9 {z} 22.7

:WUZI5_15934
if 
  not is_char_dead 65@
goto_if_false @WUZI5_15955
clear_char_tasks 65@

:WUZI5_15955
mark_model_as_no_longer_needed #CJ_PADLOCK
add_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoObject {taskId} TaskId.ComplexWalkRoundObject {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 158@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
shut_all_chars_up False
set_char_health $scplayer {health} 100
remove_animation "PARK"
remove_animation "GANGS"
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'BRIDGE' {time} 7000 {flag} 1
if 
  92@ == 1
goto_if_false @WUZI5_16177
do_fade 500 {direction} Fade.In

:WUZI5_16121
if 
  get_fading_status 
goto_if_false @WUZI5_16145
wait 0
goto @WUZI5_16121

:WUZI5_16145
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_16177
goto @WUZI5_20666

:WUZI5_16177
91@ = 0
90@ = 5

:WUZI5_16191
if 
  90@ == 5
goto_if_false @WUZI5_18809
if 
  90@ == 5
goto_if_false @WUZI5_16311
if 
  4 > 96@
goto_if_false @WUZI5_16304
if 
  is_char_dead 59@(96@,4i)
goto_if_false @WUZI5_16290
clear_prints 
print_now 'WUZ4_03' {time} 4000 {flag} 1
goto @WUZI5_20666

:WUZI5_16290
96@ += 1
goto @WUZI5_16311

:WUZI5_16304
96@ = 0

:WUZI5_16311
if 
  91@ == 0
goto_if_false @WUZI5_17136
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @WUZI5_16364
set_char_coordinates $scplayer {x} -2477.3999 {y} 1537.0 {z} 27.8

:WUZI5_16364
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2476.3999 {leftBottomY} 1538.0 {leftBottomZ} 29.8 {rightTopX} -2479.2 {rightTopY} 1550.5 {rightTopZ} 35.2 {drawSphere} False
goto_if_false @WUZI5_17136
do_fade 1000 {direction} Fade.Out

:WUZI5_16419
if 
  get_fading_status 
goto_if_false @WUZI5_16443
wait 0
goto @WUZI5_16419

:WUZI5_16443
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_16475
goto @WUZI5_20666

:WUZI5_16475
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
clear_area -2466.8999 {y} 1546.9 {z} 22.7 {radius} 30.0 {clearParticles} True
clear_area -2478.3999 {y} 1539.0 {z} 29.5 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2478.3999 {y} 1539.0 {z} 29.5
set_char_heading $scplayer {heading} 0.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
request_model #KATANA_ANIM
request_model #KATANA_LHAND
request_animation "MISC"
load_all_models_now 
74@ = create_object #KATANA_ANIM {x} -2472.6001 {y} 1538.5 {z} 32.3
if 
  not is_char_dead 65@
goto_if_false @WUZI5_16776
clear_char_tasks_immediately 65@
clear_area -2472.3 {y} 1551.5 {z} 32.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 65@ {x} -2472.3 {y} 1551.5 {z} 32.2
set_char_heading 65@ {heading} 135.0
75@ = create_object #KATANA_LHAND {x} -2117.0 {y} 654.0 {z} 59.7
task_pick_up_object 65@ {object} 75@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:WUZI5_16776
if 
  not is_char_dead 68@
goto_if_false @WUZI5_16805
set_char_decision_maker 68@ {handleOrTemplate} 158@
clear_char_tasks_immediately 68@

:WUZI5_16805
if 
  not is_char_dead 69@
goto_if_false @WUZI5_16834
set_char_decision_maker 69@ {handleOrTemplate} 158@
clear_char_tasks_immediately 69@

:WUZI5_16834
if 
  not is_char_dead 70@
goto_if_false @WUZI5_16863
set_char_decision_maker 70@ {handleOrTemplate} 158@
clear_char_tasks_immediately 70@

:WUZI5_16863
if 
  not is_char_dead 65@
goto_if_false @WUZI5_16908
140@, 141@, 142@ = get_offset_from_char_in_world_coords 65@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} -1.0

:WUZI5_16908
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2477.8999 {y} 1543.7 {z} 31.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 140@ {y} 141@ {z} 142@ {speed} MoveState.Walk {time} -1
if 
  not is_char_dead 65@
goto_if_false @WUZI5_16976
task_turn_char_to_face_char -1 {target} 65@

:WUZI5_16976
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2472.8 {y} 1554.0 {z} 33.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2474.5 {y} 1542.2 {z} 33.2 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:WUZI5_17052
if 
  get_fading_status 
goto_if_false @WUZI5_17076
wait 0
goto @WUZI5_17052

:WUZI5_17076
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_17108
goto @WUZI5_20666

:WUZI5_17108
TIMERA = 0
92@ = 1
skip_cutscene_start_internal @WUZI5_17880
91@ = 1

:WUZI5_17136
if 
  91@ == 1
goto_if_false @WUZI5_17511
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_17511
113@ = 13
115@ = 0
gosub @WUZI5_26535
clear_area 140@ {y} 141@ {z} 142@ {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 140@ {y} 141@ {z} 142@
set_char_heading $scplayer {heading} 315.0
if 
  not is_char_dead 65@
goto_if_false @WUZI5_17511
if 
  does_object_exist 75@
goto_if_false @WUZI5_17511
delete_object 75@
140@, 141@, 142@ = get_offset_from_char_in_world_coords 65@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} -1.0
set_object_coordinates 74@ {x} 140@ {y} 141@ {z} 142@
set_object_heading 74@ {heading} 315.0
140@, 141@, 142@ = get_offset_from_char_in_world_coords 65@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
clear_char_tasks_immediately 65@
task_play_anim 65@ {animationName} "KAT_THROW_K" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
clear_char_tasks_immediately $scplayer
task_play_anim $scplayer {animationName} "KAT_THROW_P" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_fixed_camera_position -2475.1001 {y} 1547.1 {z} 33.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2472.2 {y} 1553.0 {z} 33.7 {switchStyle} SwitchType.JumpCut
91@ = 3

:WUZI5_17511
if 
  91@ == 3
goto_if_false @WUZI5_17818
if 
  does_object_exist 74@
goto_if_false @WUZI5_17818
if 
  not is_char_dead 65@
goto_if_false @WUZI5_17818
if 
  is_char_playing_anim $scplayer {animationName} "KAT_THROW_P"
goto_if_false @WUZI5_17735
143@ = get_char_anim_current_time $scplayer {animationName} "KAT_THROW_P"
if 
  is_object_playing_anim 74@ {animationName} "KAT_THROW_O"
goto_if_false @WUZI5_17668
set_object_anim_current_time 74@ {animationName} "KAT_THROW_O" {time} 143@
goto @WUZI5_17735

:WUZI5_17668
if 
play_object_anim 74@ {animationName} "KAT_THROW_O" {animationFile} "MISC" {frameDelta} 10000.0 {lockF} False {loop} False
goto_if_false @WUZI5_17735
set_object_anim_speed 74@ {animationName} "KAT_THROW_O" {speed} 0.0

:WUZI5_17735
if 
  is_char_playing_anim $scplayer {animationName} "KAT_THROW_P"
goto_if_false @WUZI5_17818
143@ = get_char_anim_current_time $scplayer {animationName} "KAT_THROW_P"
if 
  143@ == 1.0
goto_if_false @WUZI5_17818
delete_object 74@
91@ = 4

:WUZI5_17818
if 
  91@ == 4
goto_if_false @WUZI5_18697
if 
  113@ == 0
goto_if_false @WUZI5_18697
if 
  TIMERA > 8000
goto_if_false @WUZI5_18697
92@ = 0

:WUZI5_17880
skip_cutscene_end 
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_17914
goto @WUZI5_20666

:WUZI5_17914
if 
  92@ == 1
goto_if_false @WUZI5_18102
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
do_fade 500 {direction} Fade.Out

:WUZI5_17956
if 
  get_fading_status 
goto_if_false @WUZI5_17980
wait 0
goto @WUZI5_17956

:WUZI5_17980
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_18012
goto @WUZI5_20666

:WUZI5_18012
delete_object 75@
delete_object 74@
if 
  not is_char_dead 65@
goto_if_false @WUZI5_18043
clear_char_tasks_immediately 65@

:WUZI5_18043
clear_char_tasks_immediately $scplayer
clear_area -2475.5 {y} 1546.7 {z} 32.2 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2475.5 {y} 1546.7 {z} 32.2
set_char_heading $scplayer {heading} 315.0

:WUZI5_18102
if 
  not is_char_dead 59@
goto_if_false @WUZI5_18177
clear_char_tasks_immediately 59@
clear_area -2439.5 {y} 1561.3 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 59@ {x} -2439.5 {y} 1561.3 {z} 16.3
set_char_heading 59@ {heading} 11.0

:WUZI5_18177
if 
  not is_char_dead 60@
goto_if_false @WUZI5_18252
clear_char_tasks_immediately 60@
clear_area -2437.7 {y} 1561.5 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 60@ {x} -2437.7 {y} 1561.5 {z} 16.3
set_char_heading 60@ {heading} 177.5

:WUZI5_18252
if 
  not is_char_dead 61@
goto_if_false @WUZI5_18327
clear_char_tasks_immediately 61@
clear_area -2438.8 {y} 1560.0 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 61@ {x} -2438.8 {y} 1560.0 {z} 16.3
set_char_heading 61@ {heading} 183.9

:WUZI5_18327
if 
  not is_char_dead 62@
goto_if_false @WUZI5_18402
clear_char_tasks_immediately 62@
clear_area -2436.6001 {y} 1561.8 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates 62@ {x} -2436.6001 {y} 1561.8 {z} 16.3
set_char_heading 62@ {heading} 9.5

:WUZI5_18402
if 
  not is_char_dead 65@
goto_if_false @WUZI5_18478
clear_area -2472.7 {y} 1551.4 {z} 32.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 65@ {x} -2472.7 {y} 1551.4 {z} 32.2
task_kill_char_on_foot 65@ {target} $scplayer
set_char_decision_maker 65@ {handleOrTemplate} 157@

:WUZI5_18478
if 
  not is_char_dead 68@
goto_if_false @WUZI5_18507
set_char_decision_maker 68@ {handleOrTemplate} 157@
clear_char_tasks_immediately 68@

:WUZI5_18507
if 
  not is_char_dead 69@
goto_if_false @WUZI5_18536
set_char_decision_maker 69@ {handleOrTemplate} 157@
clear_char_tasks_immediately 69@

:WUZI5_18536
if 
  not is_char_dead 70@
goto_if_false @WUZI5_18565
set_char_decision_maker 70@ {handleOrTemplate} 157@
clear_char_tasks_immediately 70@

:WUZI5_18565
shut_all_chars_up False
give_weapon_to_char $scplayer {weaponType} WeaponType.Katana {ammo} 1
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_camera_behind_player 
set_current_char_weapon $scplayer {weaponType} WeaponType.Katana
if 
  92@ == 1
goto_if_false @WUZI5_18690
do_fade 500 {direction} Fade.In

:WUZI5_18634
if 
  get_fading_status 
goto_if_false @WUZI5_18658
wait 0
goto @WUZI5_18634

:WUZI5_18658
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_18690
goto @WUZI5_20666

:WUZI5_18690
91@ = 5

:WUZI5_18697
if 
  is_char_dead 65@
goto_if_false @WUZI5_18718
remove_blip 80@

:WUZI5_18718
if 
  is_char_dead 65@
goto_if_false @WUZI5_18809
clear_prints 
remove_blip 80@
if 
  not is_char_dead 62@
goto_if_false @WUZI5_18772
80@ = add_blip_for_char 62@
set_blip_as_friendly 80@ {state} True

:WUZI5_18772
print_now 'WUZ4_11' {time} 4000 {flag} 1
91@ = 0
TIMERA = 0
90@ = 6

:WUZI5_18809
if 
  90@ == 6
goto_if_false @WUZI5_19695
if 
  91@ == 0
goto_if_false @WUZI5_19000
if 
  4 > 96@
goto_if_false @WUZI5_18922
if 
  is_char_dead 59@(96@,4i)
goto_if_false @WUZI5_18908
clear_prints 
print_now 'WUZ4_03' {time} 4000 {flag} 1
goto @WUZI5_20666

:WUZI5_18908
96@ += 1
goto @WUZI5_18929

:WUZI5_18922
96@ = 0

:WUZI5_18929
if 
  not is_char_dead 62@
goto_if_false @WUZI5_19000
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @WUZI5_19000
remove_blip 80@
set_player_control $player1 {state} False
91@ = 1

:WUZI5_19000
if 
  91@ == 1
goto_if_false @WUZI5_19056
do_fade 2000 {direction} Fade.Out

:WUZI5_19025
if 
  get_fading_status 
goto_if_false @WUZI5_19049
wait 0
goto @WUZI5_19025

:WUZI5_19049
91@ = 2

:WUZI5_19056
if 
  91@ == 2
goto_if_false @WUZI5_19525
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
set_fixed_camera_position -2425.8 {y} 1562.4 {z} 1.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2451.2 {y} 1582.3 {z} 3.4 {switchStyle} SwitchType.JumpCut
request_model 473
load_all_models_now 
clear_area -2430.7 {y} 1563.6 {z} 0.0 {radius} 5.0 {clearParticles} True
53@ = create_car 473 {x} -2430.7 {y} 1563.6 {z} 0.0
clear_area -2442.3999 {y} 1564.6 {z} 0.0 {radius} 5.0 {clearParticles} True
54@ = create_car 473 {x} -2442.3999 {y} 1564.6 {z} 0.0
clear_area -2426.8999 {y} 1570.6 {z} 0.0 {radius} 5.0 {clearParticles} True
55@ = create_car 473 {x} -2426.8999 {y} 1570.6 {z} 0.0
if 
  not is_char_dead 59@
goto_if_false @WUZI5_19355
attach_char_to_car 59@ {vehicle} 54@ {xOffset} 0.5 {yOffset} -1.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:WUZI5_19355
if 
  not is_char_dead 60@
goto_if_false @WUZI5_19403
attach_char_to_car 60@ {vehicle} 54@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:WUZI5_19403
if 
  not is_char_dead 61@
goto_if_false @WUZI5_19427
warp_char_into_car 61@ {vehicle} 54@

:WUZI5_19427
if 
  not is_char_dead 62@
goto_if_false @WUZI5_19451
warp_char_into_car 62@ {vehicle} 55@

:WUZI5_19451
warp_char_into_car $scplayer {vehicle} 53@
113@ = 11
115@ = 0
gosub @WUZI5_26535
do_fade 2000 {direction} Fade.In

:WUZI5_19487
if 
  get_fading_status 
goto_if_false @WUZI5_19511
wait 0
goto @WUZI5_19487

:WUZI5_19511
TIMERA = 0
91@ = 3

:WUZI5_19525
if 
  91@ == 3
goto_if_false @WUZI5_19621
if 
  TIMERA > 2000
goto_if_false @WUZI5_19621
if 
  not is_car_dead 54@
goto_if_false @WUZI5_19588
set_car_temp_action 54@ {actionId} TempAction.GoForward {time} 5000

:WUZI5_19588
if 
  not is_car_dead 55@
goto_if_false @WUZI5_19614
set_car_temp_action 55@ {actionId} TempAction.GoForward {time} 5000

:WUZI5_19614
91@ = 4

:WUZI5_19621
if 
  91@ == 4
goto_if_false @WUZI5_19695
if 
  TIMERA > 6000
goto_if_false @WUZI5_19695
delete_car 54@
delete_car 55@
delete_char 59@
delete_char 60@
delete_char 61@
delete_char 62@
goto @WUZI5_20684

:WUZI5_19695
if 
  90@ > 2
goto_if_false @WUZI5_20652
if 
  103@ == 0
goto_if_false @WUZI5_19797
if 
  is_char_in_water $scplayer
goto_if_false @WUZI5_19797
remove_blip 80@
80@ = add_blip_for_coord -2329.1001 {y} 1528.7 {z} 0.0
clear_prints 
print_now 'WUZ4_02' {time} 7000 {flag} 1
103@ = 1

:WUZI5_19797
if 
  103@ == 1
goto_if_false @WUZI5_20180
if 
  locate_char_any_means_3d $scplayer {x} -2329.1001 {y} 1528.7 {z} 0.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @WUZI5_20180
clear_prints 
do_fade 500 {direction} Fade.Out

:WUZI5_19872
if 
  get_fading_status 
goto_if_false @WUZI5_19896
wait 0
goto @WUZI5_19872

:WUZI5_19896
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
113@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
71@ = create_object #KMB_CONTAINER_RED {x} -2323.8999 {y} 1527.3 {z} 14.0
set_object_collision 71@ {state} True
set_object_dynamic 71@ {state} False
set_object_visible 71@ {state} False
wait 0
gosub @WUZI5_21045
if 
  93@ == 1
goto_if_false @WUZI5_20013
goto @WUZI5_20666

:WUZI5_20013
clear_char_tasks_immediately $scplayer
clear_area -2323.2 {y} 1530.2 {z} 16.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.2 {y} 1530.2 {z} 16.9
set_char_heading $scplayer {heading} 3.3
clear_char_tasks_immediately $scplayer
156@ = open_sequence_task 
task_climb -1 {flag} True
task_achieve_heading -1 {heading} 90.0
close_sequence_task 156@
perform_sequence_task $scplayer {sequence} 156@
clear_sequence_task 156@
set_fixed_camera_position -2320.7 {y} 1529.8 {z} 17.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2339.6001 {y} 1537.4 {z} 22.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
103@ = 2

:WUZI5_20180
if 
  103@ == 2
goto_if_false @WUZI5_20652
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @WUZI5_20652
clear_area -2323.6001 {y} 1531.9 {z} 16.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2323.6001 {y} 1531.9 {z} 16.3
set_char_heading $scplayer {heading} 95.3
delete_object 71@
remove_blip 80@
if 
  90@ == 3
goto_if_false @WUZI5_20363
if 
  91@ == 0
goto_if_false @WUZI5_20363
80@ = add_blip_for_coord -2437.8999 {y} 1551.9 {z} 16.3
print_now 'WUZ4_01' {time} 7000 {flag} 1

:WUZI5_20363
if 
  90@ == 4
goto_if_false @WUZI5_20486
if 
  4 > 91@
goto_if_false @WUZI5_20446
if 
  not is_char_dead 45@
goto_if_false @WUZI5_20439
80@ = add_blip_for_char 45@
print_now 'WUZ4_05' {time} 4000 {flag} 1

:WUZI5_20439
goto @WUZI5_20486

:WUZI5_20446
if 
  does_object_exist 79@
goto_if_false @WUZI5_20486
80@ = add_blip_for_object 79@
print_now 'WUZ4_09' {time} 11000 {flag} 1

:WUZI5_20486
if 
  90@ == 5
goto_if_false @WUZI5_20551
if 
  not is_char_dead 65@
goto_if_false @WUZI5_20535
80@ = add_blip_for_char 65@
change_blip_scale 80@ {size} 1

:WUZI5_20535
print_now 'BRIDGE' {time} 7000 {flag} 1

:WUZI5_20551
if 
  90@ == 6
goto_if_false @WUZI5_20616
if 
  not is_char_dead 62@
goto_if_false @WUZI5_20600
80@ = add_blip_for_char 62@
set_blip_as_friendly 80@ {state} True

:WUZI5_20600
print_now 'WUZ4_11' {time} 4000 {flag} 1

:WUZI5_20616
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
103@ = 0

:WUZI5_20652
gosub @WUZI5_27736
goto @WUZI5_975

:WUZI5_20666
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:WUZI5_20684
$flag_wuzi_mission_counter += 1
remove_blip $wuzi_contact_blip
print_with_number_big 'M_PASSS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
award_player_mission_respect 30
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'WUZI_4'
player_made_progress 1
return 

:WUZI5_20753
if 
  is_var_text_label_empty s$shop_name
goto_if_false @WUZI5_20771
restore_camera_jumpcut 

:WUZI5_20771
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 86@
remove_blip 87@
remove_blip 88@
remove_blip 89@
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 339
mark_model_as_no_longer_needed 342
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 473
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 49
mark_model_as_no_longer_needed 210
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
mark_model_as_no_longer_needed #KATANA_ANIM
mark_model_as_no_longer_needed #KATANA_LHAND
mark_model_as_no_longer_needed #CJ_CHRIS_CRATE
mark_model_as_no_longer_needed #CJ_CHRIS_CRATE_LD
mark_model_as_no_longer_needed #CJ_CHRIS_CRATE_RD
mark_model_as_no_longer_needed #CJ_PADLOCK
release_weather 
if 
  not is_char_dead $scplayer
goto_if_false @WUZI5_20955
shut_char_up_for_scripted_speech $scplayer {state} False

:WUZI5_20955
shut_all_chars_up False
remove_animation "CAR_CHAT"
remove_animation "SWAT"
remove_animation "PARK"
remove_animation "MISC"
remove_animation "GANGS"
detach_char_from_car $scplayer
remove_pickup 63@
remove_pickup 64@
remove_pickup 72@
remove_pickup 73@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:WUZI5_21045
if 
  90@ == 0
goto_if_false @WUZI5_21145
if 
  is_char_dead 35@
goto_if_false @WUZI5_21104
clear_prints 
print_now 'WUZ4_07' {time} 7000 {flag} 1
93@ = 1

:WUZI5_21104
if 
  is_car_dead 34@
goto_if_false @WUZI5_21145
clear_prints 
print_now 'WUZ4_08' {time} 7000 {flag} 1
93@ = 1

:WUZI5_21145
return 

:WUZI5_21147
if 
  95@ == 0
goto_if_false @WUZI5_22031
63@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 48 {x} -2414.8999 {y} 1538.7 {z} 26.0
64@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} -2412.3999 {y} 1547.9 {z} 26.0
clear_area -2355.2 {y} 1547.0 {z} 25.0 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
36@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2355.2 {y} 1547.0 {z} 25.0
set_char_heading 36@ {heading} 198.7
set_char_decision_maker 36@ {handleOrTemplate} 157@
set_char_stay_in_same_place 36@ {state} True
clear_area -2355.1001 {y} 1545.0 {z} 25.0 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
37@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2355.1001 {y} 1545.0 {z} 25.0
set_char_heading 37@ {heading} 0.6
set_char_decision_maker 37@ {handleOrTemplate} 157@
set_char_stay_in_same_place 37@ {state} True
task_chat_with_char 36@ {other} 37@ {leadSpeaker} True {_p4} 1
task_chat_with_char 37@ {other} 36@ {leadSpeaker} False {_p4} 1
clear_area -2373.0 {y} 1549.3 {z} 30.8 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
38@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2373.0 {y} 1549.3 {z} 30.8
set_char_heading 38@ {heading} 355.7
set_char_decision_maker 38@ {handleOrTemplate} 157@
set_char_stay_in_same_place 38@ {state} True
clear_area -2396.3 {y} 1560.26 {z} 30.8 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
39@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2396.3 {y} 1560.26 {z} 30.8
set_char_heading 39@ {heading} 356.2
set_char_decision_maker 39@ {handleOrTemplate} 157@
set_char_stay_in_same_place 39@ {state} True
clear_area -2478.2 {y} 1560.9 {z} 16.3 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
40@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2478.2 {y} 1560.9 {z} 16.3
set_char_heading 40@ {heading} 11.0
set_char_decision_maker 40@ {handleOrTemplate} 157@
set_char_stay_in_same_place 40@ {state} True
clear_area -2500.5 {y} 1551.0 {z} 23.2 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
41@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2500.5 {y} 1551.0 {z} 23.2
set_char_heading 41@ {heading} 339.2
set_char_decision_maker 41@ {handleOrTemplate} 157@
set_char_stay_in_same_place 41@ {state} True
clear_area -2493.7 {y} 1537.4 {z} 23.2 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
42@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2493.7 {y} 1537.4 {z} 23.2
set_char_heading 42@ {heading} 82.5
set_char_decision_maker 42@ {handleOrTemplate} 158@
set_char_stay_in_same_place 42@ {state} True
clear_area -2492.2 {y} 1537.3 {z} 23.2 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
43@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2492.2 {y} 1537.3 {z} 23.2
set_char_heading 43@ {heading} 78.2
set_char_decision_maker 43@ {handleOrTemplate} 157@
set_char_stay_in_same_place 43@ {state} True
clear_area -2453.8 {y} 1529.6 {z} 27.9 {radius} 1.0 {clearParticles} True
99@ = generate_random_int_in_range 0 {max} 2
44@ = create_char PedType.Mission2 {modelId} 97@(99@,2i) {x} -2453.8 {y} 1529.6 {z} 27.9
set_char_heading 44@ {heading} 174.6
set_char_decision_maker 44@ {handleOrTemplate} 157@
set_char_stay_in_same_place 44@ {state} True
95@ = 1

:WUZI5_22031
if 
  95@ == 1
goto_if_false @WUZI5_22149
if 
  9 > 94@
goto_if_false @WUZI5_22142
if 
  not is_char_dead 36@(94@,17i)
goto_if_false @WUZI5_22128
give_weapon_to_char 36@(94@,17i) {weaponType} WeaponType.Tec9 {ammo} 3000
add_blip_for_char 36@(94@,17i) {var_handle} 81@(94@,9i)
change_blip_scale 81@(94@,9i) {size} 1

:WUZI5_22128
94@ += 1
goto @WUZI5_22149

:WUZI5_22142
95@ = 2

:WUZI5_22149
return 

:WUZI5_22151
if 
  not is_char_dead 36@
goto_if_false @WUZI5_22559
if 
  104@ == 0
goto_if_false @WUZI5_22325
if 
  locate_char_any_means_2d $scplayer {x} -2283.6001 {y} 1582.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22325
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2355.1001 {y} 1560.0 {z} 25.0 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 360.0
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22300
task_destroy_car -1 {vehicle} 34@

:WUZI5_22300
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@
104@ = 1

:WUZI5_22325
if 
  104@ == 1
goto_if_false @WUZI5_22450
if 
  locate_char_any_means_2d $scplayer {x} -2392.0 {y} 1588.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22450
156@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -2357.6001 {y} 1529.6 {z} 25.0 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 183.9
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@
104@ = 2

:WUZI5_22450
if 
  104@ == 2
goto_if_false @WUZI5_22559
if 
  locate_char_any_means_2d $scplayer {x} -2402.6001 {y} 1499.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22559
156@ = open_sequence_task 
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22534
task_destroy_car -1 {vehicle} 34@

:WUZI5_22534
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@
104@ = 3

:WUZI5_22559
if 
  not is_char_dead 37@
goto_if_false @WUZI5_22994
if 
  105@ == 0
goto_if_false @WUZI5_22767
if 
  locate_char_any_means_2d $scplayer {x} -2283.6001 {y} 1582.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22767
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2348.2 {y} 1546.4 {z} 25.0 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} -2344.1001 {y} 1555.8 {z} 25.0 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 360.0
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22742
task_destroy_car -1 {vehicle} 34@

:WUZI5_22742
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@
105@ = 1

:WUZI5_22767
if 
  105@ == 1
goto_if_false @WUZI5_22885
if 
  locate_char_any_means_2d $scplayer {x} -2392.0 {y} 1588.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22885
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2350.5 {y} 1531.5 {z} 25.0 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 155.6
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@
105@ = 2

:WUZI5_22885
if 
  105@ == 2
goto_if_false @WUZI5_22994
if 
  locate_char_any_means_2d $scplayer {x} -2402.6001 {y} 1499.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_22994
156@ = open_sequence_task 
if 
  not is_car_dead 34@
goto_if_false @WUZI5_22969
task_destroy_car -1 {vehicle} 34@

:WUZI5_22969
close_sequence_task 156@
perform_sequence_task 37@ {sequence} 156@
clear_sequence_task 156@
105@ = 3

:WUZI5_22994
if 
  not is_char_dead 38@
goto_if_false @WUZI5_23461
if 
  106@ == 0
goto_if_false @WUZI5_23168
if 
  locate_char_any_means_2d $scplayer {x} -2283.6001 {y} 1582.6 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23168
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2372.1001 {y} 1557.4 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 360.0
if 
  not is_car_dead 34@
goto_if_false @WUZI5_23143
task_destroy_car -1 {vehicle} 34@

:WUZI5_23143
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@
106@ = 1

:WUZI5_23168
if 
  106@ == 1
goto_if_false @WUZI5_23337
if 
  locate_char_any_means_2d $scplayer {x} -2365.3999 {y} 1586.9 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23337
156@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} -2394.3999 {y} 1558.4 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_achieve_heading -1 {heading} 66.2
task_jump -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2423.0 {y} 1561.0 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@
106@ = 2

:WUZI5_23337
if 
  106@ == 2
goto_if_false @WUZI5_23461
if 
  locate_char_any_means_2d $scplayer {x} -2473.8 {y} 1585.5 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23461
156@ = open_sequence_task 
task_achieve_heading -1 {heading} 177.3
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} -2422.1001 {y} 1547.9 {z} 22.1 {speed} MoveState.Run {time} -1
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@
106@ = 3

:WUZI5_23461
if 
  not is_char_dead 39@
goto_if_false @WUZI5_23836
if 
  107@ == 0
goto_if_false @WUZI5_23626
if 
  locate_char_any_means_2d $scplayer {x} -2351.3 {y} 1586.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23626
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2426.7 {y} 1560.3 {z} 31.8 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
if 
  not is_car_dead 34@
goto_if_false @WUZI5_23601
task_destroy_car -1 {vehicle} 34@

:WUZI5_23601
close_sequence_task 156@
perform_sequence_task 39@ {sequence} 156@
clear_sequence_task 156@
107@ = 1

:WUZI5_23626
if 
  107@ == 1
goto_if_false @WUZI5_23836
if 
  locate_char_any_means_2d $scplayer {x} -2504.6001 {y} 0.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_23836
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2437.7 {y} 1560.7 {z} 16.3 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -2435.8999 {y} 1550.9 {z} 16.3 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 180.0
task_go_straight_to_coord -1 {x} -2435.8999 {y} 1532.3 {z} 16.3 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -2437.5 {y} 1528.7 {z} 16.3 {speed} MoveState.Run {time} -1
if 
  not is_car_dead 34@
goto_if_false @WUZI5_23811
task_destroy_car -1 {vehicle} 34@

:WUZI5_23811
close_sequence_task 156@
perform_sequence_task 39@ {sequence} 156@
clear_sequence_task 156@
107@ = 2

:WUZI5_23836
if 
  not is_char_dead 40@
goto_if_false @WUZI5_24069
if 
  108@ == 0
goto_if_false @WUZI5_24069
if 
  locate_char_any_means_2d $scplayer {x} -2448.6001 {y} 1590.3 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24069
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_to_coord_while_shooting -1 {x} -2494.1001 {y} 1560.7 {z} 16.3 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} -2505.2 {y} 1557.4 {z} 16.3 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} -2505.5 {y} 1532.1 {z} 16.3 {speed} MoveState.Run {turnRadius} 0.5 {stopRadius} 1.0 {target} $scplayer
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24044
task_destroy_car -1 {vehicle} 34@

:WUZI5_24044
close_sequence_task 156@
perform_sequence_task 40@ {sequence} 156@
clear_sequence_task 156@
108@ = 1

:WUZI5_24069
if 
  not is_char_dead 41@
goto_if_false @WUZI5_24200
if 
  109@ == 0
goto_if_false @WUZI5_24200
if 
  locate_char_any_means_2d $scplayer {x} -2448.6001 {y} 1590.3 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24200
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24175
task_destroy_car -1 {vehicle} 34@

:WUZI5_24175
close_sequence_task 156@
perform_sequence_task 41@ {sequence} 156@
clear_sequence_task 156@
109@ = 1

:WUZI5_24200
if 
  not is_char_dead 42@
goto_if_false @WUZI5_24354
if 
  110@ == 0
goto_if_false @WUZI5_24354
if 
  locate_char_any_means_2d $scplayer {x} -2493.5 {y} 1571.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24354
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_straight_to_coord -1 {x} -2501.3999 {y} 1539.5 {z} 23.2 {speed} MoveState.Run {time} -1
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24329
task_destroy_car -1 {vehicle} 34@

:WUZI5_24329
close_sequence_task 156@
perform_sequence_task 42@ {sequence} 156@
clear_sequence_task 156@
110@ = 1

:WUZI5_24354
if 
  not is_char_dead 43@
goto_if_false @WUZI5_24508
if 
  111@ == 0
goto_if_false @WUZI5_24508
if 
  locate_char_any_means_2d $scplayer {x} -2493.5 {y} 1571.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24508
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_go_straight_to_coord -1 {x} -2500.8999 {y} 1535.4 {z} 23.2 {speed} MoveState.Run {time} -1
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24483
task_destroy_car -1 {vehicle} 34@

:WUZI5_24483
close_sequence_task 156@
perform_sequence_task 43@ {sequence} 156@
clear_sequence_task 156@
111@ = 1

:WUZI5_24508
if 
  not is_char_dead 44@
goto_if_false @WUZI5_24639
if 
  112@ == 0
goto_if_false @WUZI5_24639
if 
  locate_char_any_means_2d $scplayer {x} -2493.5 {y} 1571.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @WUZI5_24639
156@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
if 
  not is_car_dead 34@
goto_if_false @WUZI5_24614
task_destroy_car -1 {vehicle} 34@

:WUZI5_24614
close_sequence_task 156@
perform_sequence_task 44@ {sequence} 156@
clear_sequence_task 156@
112@ = 1

:WUZI5_24639
return 

:WUZI5_24641
if 
  9 > 94@
goto_if_false @WUZI5_24702
if 
  is_char_dead 36@(94@,17i)
goto_if_false @WUZI5_24688
remove_blip 81@(94@,9i)

:WUZI5_24688
94@ += 1
goto @WUZI5_24709

:WUZI5_24702
94@ = 0

:WUZI5_24709
return 

:WUZI5_24711
clear_area -2369.3 {y} 1551.9 {z} 1.2 {radius} 1.0 {clearParticles} True
59@ = create_char PedType.Mission5 {modelId} 58 {x} -2369.3 {y} 1551.9 {z} 1.2
set_char_heading 59@ {heading} 96.2
set_char_stay_in_same_place 59@ {state} True
set_char_never_targetted 59@ {state} True
set_char_decision_maker 59@ {handleOrTemplate} 158@
clear_area -2368.3 {y} 1551.9 {z} 1.2 {radius} 1.0 {clearParticles} True
60@ = create_char PedType.Mission5 {modelId} 58 {x} -2368.3 {y} 1551.9 {z} 1.2
set_char_heading 60@ {heading} 96.2
set_char_stay_in_same_place 60@ {state} True
set_char_never_targetted 60@ {state} True
set_char_decision_maker 60@ {handleOrTemplate} 158@
clear_area -2367.3 {y} 1551.9 {z} 1.2 {radius} 1.0 {clearParticles} True
61@ = create_char PedType.Mission5 {modelId} 210 {x} -2367.3 {y} 1551.9 {z} 1.2
set_char_heading 61@ {heading} 96.2
set_char_stay_in_same_place 61@ {state} True
set_char_never_targetted 61@ {state} True
set_char_decision_maker 61@ {handleOrTemplate} 158@
return 

:WUZI5_24954
if 
  101@ == 0
goto_if_false @WUZI5_25301
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2282.3999 {leftBottomY} 1510.9 {leftBottomZ} 50.0 {rightTopX} -2534.6001 {rightTopY} 1578.5 {rightTopZ} 15.0 {drawSphere} False
goto_if_false @WUZI5_25061
if 
  is_char_shooting $scplayer
goto_if_false @WUZI5_25061
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced
goto_if_false @WUZI5_25061
101@ = 1

:WUZI5_25061
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2385.2 {leftBottomY} 1539.7 {rightTopX} -2393.0 {rightTopY} 1558.9 {drawSphere} False
goto_if_false @WUZI5_25106
101@ = 1

:WUZI5_25106
if 
  not is_char_dead 46@
goto_if_false @WUZI5_25145
if 
  is_char_shooting 46@
goto_if_false @WUZI5_25145
101@ = 1

:WUZI5_25145
if 
  not is_char_dead 51@
goto_if_false @WUZI5_25184
if 
  is_char_shooting 51@
goto_if_false @WUZI5_25184
101@ = 1

:WUZI5_25184
if 
  not is_char_dead 52@
goto_if_false @WUZI5_25223
if 
  is_char_shooting 52@
goto_if_false @WUZI5_25223
101@ = 1

:WUZI5_25223
if 
  not is_char_dead 36@
goto_if_false @WUZI5_25262
if 
  is_char_shooting 36@
goto_if_false @WUZI5_25262
101@ = 1

:WUZI5_25262
if 
  not is_char_dead 37@
goto_if_false @WUZI5_25301
if 
  is_char_shooting 37@
goto_if_false @WUZI5_25301
101@ = 1

:WUZI5_25301
if 
  101@ == 1
goto_if_false @WUZI5_25750
if 
  not is_char_dead 46@
goto_if_false @WUZI5_25343
task_turn_char_to_face_char 46@ {target} $scplayer

:WUZI5_25343
if 
  not is_char_dead 51@
goto_if_false @WUZI5_25367
task_turn_char_to_face_char 51@ {target} $scplayer

:WUZI5_25367
if 
  not is_char_dead 52@
goto_if_false @WUZI5_25391
task_turn_char_to_face_char 52@ {target} $scplayer

:WUZI5_25391
if 
  not is_char_dead 36@
goto_if_false @WUZI5_25512
156@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 158@
task_go_straight_to_coord -1 {x} -2351.0 {y} 1549.4 {z} 22.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 180.0
task_climb -1 {flag} True
task_go_straight_to_coord -1 {x} -2351.2 {y} 1547.1 {z} 25.0 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 157@
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 36@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25512
if 
  not is_char_dead 37@
goto_if_false @WUZI5_25536
task_turn_char_to_face_char 37@ {target} $scplayer

:WUZI5_25536
if 
  not is_char_dead 38@
goto_if_false @WUZI5_25605
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2385.5 {y} 1543.1 {z} 25.0 {speed} MoveState.Run {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 38@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25605
if 
  not is_char_dead 39@
goto_if_false @WUZI5_25674
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2385.8 {y} 1540.6 {z} 25.0 {speed} MoveState.Run {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 39@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25674
if 
  not is_char_dead 40@
goto_if_false @WUZI5_25743
156@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2392.1001 {y} 1556.0 {z} 25.0 {speed} MoveState.Run {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 40@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25743
101@ = 2

:WUZI5_25750
if 
  101@ == 2
goto_if_false @WUZI5_25869
if 
  not is_char_dead 48@
goto_if_false @WUZI5_25817
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @WUZI5_25810
101@ = 3

:WUZI5_25810
goto @WUZI5_25824

:WUZI5_25817
101@ = 3

:WUZI5_25824
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2400.0 {leftBottomY} 1561.0 {rightTopX} -2409.8 {rightTopY} 1540.0 {drawSphere} False
goto_if_false @WUZI5_25869
101@ = 3

:WUZI5_25869
if 
  101@ == 3
goto_if_false @WUZI5_25976
if 
  not is_char_dead 48@
goto_if_false @WUZI5_25969
156@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -2401.1001 {y} 1539.8 {z} 25.0 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 48@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_25969
101@ = 4

:WUZI5_25976
if 
  101@ == 4
goto_if_false @WUZI5_26438
if 
  is_char_in_area_2d $scplayer {leftBottomX} -2416.3999 {leftBottomY} 1535.3 {rightTopX} -2431.6001 {rightTopY} 1542.1 {drawSphere} False
goto_if_false @WUZI5_26438
if 
  not is_char_dead 42@
goto_if_false @WUZI5_26306
156@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
102@ = generate_random_int_in_range 1500 {max} 4000
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 102@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} -2420.3999 {y} 1553.4 {z} 25.0 {heading} 180.0 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 156@ {state} True
close_sequence_task 156@
perform_sequence_task 42@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_26306
if 
  not is_char_dead 49@
goto_if_false @WUZI5_26365
156@ = open_sequence_task 
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 157@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 49@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_26365
if 
  not is_char_dead 50@
goto_if_false @WUZI5_26431
156@ = open_sequence_task 
task_pause -1 {time} 1500
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 157@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 156@
perform_sequence_task 50@ {sequence} 156@
clear_sequence_task 156@

:WUZI5_26431
101@ = 5

:WUZI5_26438
if 
  101@ == 5
goto_if_false @WUZI5_26533
if or
  is_char_in_area_2d $scplayer {leftBottomX} -2418.8999 {leftBottomY} 1546.4 {rightTopX} -2435.6001 {rightTopY} 1559.0 {drawSphere} False
  has_char_been_damaged_by_char 42@ {handle} $scplayer
goto_if_false @WUZI5_26533
if 
  not is_char_dead 42@
goto_if_false @WUZI5_26533
task_kill_char_on_foot 42@ {target} $scplayer
101@ = 6

:WUZI5_26533
return 

:WUZI5_26535
if 
  113@ == 1
goto_if_false @WUZI5_26680
set_lvar_text_label 117@s = 'WUZ4_KA'
set_lvar_text_label 119@s = 'WUZ4_KB'
set_lvar_text_label 121@s = 'WUZ4_KC'
set_lvar_text_label 123@s = 'WUZ4_KD'
set_lvar_text_label 125@s = 'WUZ4_KE'
set_lvar_int_to_constant 129@ = 44221
set_lvar_int_to_constant 130@ = 44222
set_lvar_int_to_constant 131@ = 44223
set_lvar_int_to_constant 132@ = 44224
set_lvar_int_to_constant 133@ = 44225
135@ = 5

:WUZI5_26680
if 
  113@ == 2
goto_if_false @WUZI5_26825
set_lvar_text_label 117@s = 'WUZ4_LA'
set_lvar_text_label 119@s = 'WUZ4_LB'
set_lvar_text_label 121@s = 'WUZ4_LC'
set_lvar_text_label 123@s = 'WUZ4_LD'
set_lvar_text_label 125@s = 'WUZ4_LE'
set_lvar_int_to_constant 129@ = 44226
set_lvar_int_to_constant 130@ = 44227
set_lvar_int_to_constant 131@ = 44228
set_lvar_int_to_constant 132@ = 44229
set_lvar_int_to_constant 133@ = 44230
135@ = 5

:WUZI5_26825
if 
  113@ == 3
goto_if_false @WUZI5_26970
set_lvar_text_label 117@s = 'WUZ4_MA'
set_lvar_text_label 119@s = 'WUZ4_MB'
set_lvar_text_label 121@s = 'WUZ4_MC'
set_lvar_text_label 123@s = 'WUZ4_MD'
set_lvar_text_label 125@s = 'WUZ4_ME'
set_lvar_int_to_constant 129@ = 44231
set_lvar_int_to_constant 130@ = 44232
set_lvar_int_to_constant 131@ = 44233
set_lvar_int_to_constant 132@ = 44234
set_lvar_int_to_constant 133@ = 44235
135@ = 5

:WUZI5_26970
if 
  113@ == 4
goto_if_false @WUZI5_27116
set_lvar_text_label 117@s = 'WUZ4_NA'
set_lvar_text_label 119@s = 'WUZ4_NB'
set_lvar_text_label 121@s = 'WUZ4_NC'
set_lvar_text_label 123@s = 'WUZ4_NE'
set_lvar_text_label 125@s = 'WUZ4_NF'
set_lvar_int_to_constant 129@ = 44239
set_lvar_int_to_constant 130@ = 44240
set_lvar_int_to_constant 131@ = 44241
set_lvar_int_to_constant 132@ = 44242
set_lvar_int_to_constant 133@ = 44243
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27116
if 
  113@ == 5
goto_if_false @WUZI5_27190
set_lvar_text_label 117@s = 'WUZ4_AA'
set_lvar_text_label 119@s = 'WUZ4_AB'
set_lvar_int_to_constant 129@ = 44200
set_lvar_int_to_constant 130@ = 44201
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27190
if 
  113@ == 6
goto_if_false @WUZI5_27239
set_lvar_text_label 117@s = 'WUZ4_FA'
set_lvar_int_to_constant 129@ = 44209
135@ = 1

:WUZI5_27239
if 
  113@ == 7
goto_if_false @WUZI5_27313
set_lvar_text_label 117@s = 'WUZ4_CA'
set_lvar_text_label 119@s = 'WUZ4_CB'
set_lvar_int_to_constant 129@ = 44203
set_lvar_int_to_constant 130@ = 44204
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27313
if 
  113@ == 8
goto_if_false @WUZI5_27362
set_lvar_text_label 117@s = 'WUZ4_HA'
set_lvar_int_to_constant 129@ = 44214
135@ = 1

:WUZI5_27362
if 
  113@ == 9
goto_if_false @WUZI5_27436
set_lvar_text_label 117@s = 'WUZ4_JA'
set_lvar_text_label 119@s = 'WUZ4_JB'
set_lvar_int_to_constant 129@ = 44215
set_lvar_int_to_constant 130@ = 44216
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27436
if 
  113@ == 10
goto_if_false @WUZI5_27534
set_lvar_text_label 117@s = 'WUZ4_JC'
set_lvar_text_label 119@s = 'WUZ4_JD'
set_lvar_text_label 121@s = 'WUZ4_JE'
set_lvar_int_to_constant 129@ = 44217
set_lvar_int_to_constant 130@ = 44218
set_lvar_int_to_constant 131@ = 44219
set_lvar_int_to_lvar_int 135@ = 116@

:WUZI5_27534
if 
  113@ == 11
goto_if_false @WUZI5_27583
set_lvar_text_label 117@s = 'WUZ4_JF'
set_lvar_int_to_constant 129@ = 44220
135@ = 1

:WUZI5_27583
if 
  113@ == 12
goto_if_false @WUZI5_27656
set_lvar_text_label 117@s = 'WUZ4_OA'
set_lvar_text_label 119@s = 'WUZ4_ZA'
set_lvar_int_to_constant 129@ = 44244
set_lvar_int_to_constant 130@ = 44247
135@ = 2

:WUZI5_27656
if 
  113@ == 13
goto_if_false @WUZI5_27705
set_lvar_text_label 117@s = 'WUZ4_PA'
set_lvar_int_to_constant 129@ = 44246
135@ = 1

:WUZI5_27705
set_lvar_int_to_lvar_int 138@ = 115@
136@ = 0
137@ = 0
139@ = 1
return 

:WUZI5_27736
if or
  113@ == 1
  113@ == 2
  113@ == 3
  113@ == 4
  113@ == 5
goto_if_false @WUZI5_27836
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27829
gosub @WUZI5_28316
gosub @WUZI5_28423
gosub @WUZI5_28577
goto @WUZI5_27836

:WUZI5_27829
113@ = 0

:WUZI5_27836
if or
  113@ == 6
  113@ == 7
  113@ == 10
  113@ == 11
  113@ == 12
goto_if_false @WUZI5_27936
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_27929
gosub @WUZI5_28316
gosub @WUZI5_28423
gosub @WUZI5_28577
goto @WUZI5_27936

:WUZI5_27929
113@ = 0

:WUZI5_27936
if 
  113@ == 8
goto_if_false @WUZI5_28062
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_28055
gosub @WUZI5_28316
gosub @WUZI5_28423
if 
  not is_char_dead 45@
goto_if_false @WUZI5_28017
gosub @WUZI5_28577
goto @WUZI5_28048

:WUZI5_28017
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 117@(115@,6s)
136@ = 0
137@ = 0

:WUZI5_28048
goto @WUZI5_28062

:WUZI5_28055
113@ = 0

:WUZI5_28062
if 
  113@ == 9
goto_if_false @WUZI5_28188
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_28181
gosub @WUZI5_28316
gosub @WUZI5_28423
if 
  not is_char_dead 62@
goto_if_false @WUZI5_28143
gosub @WUZI5_28577
goto @WUZI5_28174

:WUZI5_28143
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 117@(115@,6s)
136@ = 0
137@ = 0

:WUZI5_28174
goto @WUZI5_28188

:WUZI5_28181
113@ = 0

:WUZI5_28188
if 
  113@ == 13
goto_if_false @WUZI5_28314
if 
  is_int_lvar_greater_than_int_lvar 135@ > 115@
goto_if_false @WUZI5_28307
gosub @WUZI5_28316
gosub @WUZI5_28423
if 
  not is_char_dead 65@
goto_if_false @WUZI5_28269
gosub @WUZI5_28577
goto @WUZI5_28300

:WUZI5_28269
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 117@(115@,6s)
136@ = 0
137@ = 0

:WUZI5_28300
goto @WUZI5_28314

:WUZI5_28307
113@ = 0

:WUZI5_28314
return 

:WUZI5_28316
if 
  is_int_lvar_greater_than_int_lvar 135@ > 138@
goto_if_false @WUZI5_28421
if 
  136@ == 0
goto_if_false @WUZI5_28378
load_mission_audio MissionAudioSlot.Slot1 {audioId} 129@(138@,6i)
138@ += 1
136@ = 1

:WUZI5_28378
if 
  137@ == 0
goto_if_false @WUZI5_28421
load_mission_audio MissionAudioSlot.Slot2 {audioId} 129@(138@,6i)
138@ += 1
137@ = 1

:WUZI5_28421
return 

:WUZI5_28423
if 
  139@ == 1
goto_if_false @WUZI5_28499
if 
  136@ == 1
goto_if_false @WUZI5_28499
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @WUZI5_28499
play_mission_audio MissionAudioSlot.Slot1
print_now 117@(115@,6s) {time} 4500 {flag} 1
136@ = 2

:WUZI5_28499
if 
  139@ == 2
goto_if_false @WUZI5_28575
if 
  137@ == 1
goto_if_false @WUZI5_28575
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @WUZI5_28575
play_mission_audio MissionAudioSlot.Slot2
print_now 117@(115@,6s) {time} 4500 {flag} 1
137@ = 2

:WUZI5_28575
return 

:WUZI5_28577
if 
  136@ == 2
goto_if_false @WUZI5_28640
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @WUZI5_28640
clear_this_print 117@(115@,6s)
115@ += 1
139@ = 2
136@ = 0

:WUZI5_28640
if 
  137@ == 2
goto_if_false @WUZI5_28703
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @WUZI5_28703
clear_this_print 117@(115@,6s)
115@ += 1
139@ = 1
137@ = 0

:WUZI5_28703
return 

//-------------Mission 58---------------
// Originally: Photo Opportunity

:SYN1
script_name 'SYN1'
gosub @SYN1_1424
if 
  has_deatharrest_been_executed 
goto_if_false @SYN1_38
gosub @SYN1_14543

:SYN1_38
gosub @SYN1_14662
terminate_this_script 

:SYN1_47
request_model 567
load_special_character 1 {modelName} 'CESAR'
request_animation "BOMBER"
load_all_models_now 

:SYN1_77
if or
  not has_model_loaded 567
  not has_special_character_loaded 1
  not has_animation_loaded "BOMBER"
goto_if_false @SYN1_118
wait 0
goto @SYN1_77

:SYN1_118
return 
379@ = add_blip_for_coord $sy1_cesar_car_x {y} $sy1_cesar_car_y {z} $sy1_cesar_car_z
51@ = add_blip_for_coord 48@ {y} 49@ {z} 50@

:SYN1_148
$sy1_cesar_car_x = -54.0
$sy1_cesar_car_y = -432.0
$sy1_cesar_car_z = 1.0
$sy1_cesar_car_h = 259.0
clear_area $sy1_cesar_car_x {y} $sy1_cesar_car_y {z} $sy1_cesar_car_z {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
377@ = create_car 567 {x} $sy1_cesar_car_x {y} $sy1_cesar_car_y {z} $sy1_cesar_car_z
376@ = create_char PedType.CivMale {modelId} 290 {x} -51.6293 {y} -430.562 {z} 0.5721
set_car_heading 377@ {heading} $sy1_cesar_car_h
set_char_heading 376@ {heading} 154.672
set_char_never_targetted 376@ {state} True
suppress_car_model 567
change_car_colour 377@ {color1} 3 {color2} 3
remove_blip 379@
379@ = add_blip_for_char 376@
set_blip_as_friendly 379@ {state} True
return 
148@ = create_char_inside_car 377@ {pedType} PedType.CivMale {modelId} 290
381@ = add_blip_for_car 377@

:SYN1_345
request_model 510
load_all_models_now 

:SYN1_352
if 
  not has_model_loaded 510
goto_if_false @SYN1_379
wait 0
goto @SYN1_352

:SYN1_379
386@ = create_car 510 {x} 387@ {y} 388@ {z} 389@
set_car_heading 386@ {heading} 390@
freeze_car_position 386@ {state} True
set_car_visible 386@ {state} False
set_heading_for_attached_player $player1 {heading} 135.0 {headingRange} 135.0
attach_char_to_bike $scplayer {vehicle} 386@ {xOffset} -0.2 {yOffset} 0.5 {zOffset} 0.0 {heading} Facing.Left {headingRange} 110.0 {pitchRange} 70.0 {weaponType} WeaponType.Camera
set_heading_for_attached_player $player1 {heading} 135.0 {headingRange} 135.0
set_radio_channel RadioChannel.UserTracks
set_car_engine_on 386@ {state} False
return 

:SYN1_498
request_model 600
request_car_recording 190
load_special_character 2 {modelName} 'RYDER2'
request_model 102
load_all_models_now 

:SYN1_527
if or
  not has_model_loaded 600
  not has_model_loaded 102
  not has_special_character_loaded 2
  not has_car_recording_been_loaded 190
goto_if_false @SYN1_567
wait 0
goto @SYN1_527

:SYN1_567
402@ = -2120.3999
403@ = -2448.458
404@ = 29.4688
405@ = 137.4828
custom_plate_for_next_car 600 {text} "_SHERM__"
clear_area 402@ {y} 403@ {z} 404@ {radius} 5.0 {clearParticles} True
392@ = create_car 600 {x} 402@ {y} 403@ {z} 404@
change_car_colour 392@ {color1} 84 {color2} 84
set_car_proofs 392@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 392@ {heading} 405@
391@ = create_char_inside_car 392@ {pedType} PedType.CivMale {modelId} 291
394@ = create_char_as_passenger 392@ {pedType} PedType.CivMale {modelId} 102 {seat} SeatId.BikeRear
343@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 391@ {handleOrTemplate} 343@
return 

:SYN1_733
request_model 477
request_car_recording 191
load_special_character 3 {modelName} 'TBONE'
load_all_models_now 

:SYN1_758
if or
  not has_model_loaded 477
  not has_special_character_loaded 3
  not has_car_recording_been_loaded 191
goto_if_false @SYN1_794
wait 0
goto @SYN1_758

:SYN1_794
416@ = -2141.4009
417@ = -2481.575
418@ = 29.4688
419@ = 317.093
clear_area 416@ {y} 417@ {z} 418@ {radius} 5.0 {clearParticles} True
407@ = create_car 477 {x} 416@ {y} 417@ {z} 418@
change_car_colour 407@ {color1} 84 {color2} 84
set_car_proofs 407@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 407@ {heading} 419@
406@ = create_char_inside_car 407@ {pedType} PedType.CivMale {modelId} 292
start_playback_recorded_car 407@ {path} 191
set_playback_speed 407@ {speed} 0.6
return 

:SYN1_934
request_model 575
request_model 478
request_car_recording 193
request_car_recording 194
load_special_character 5 {modelName} 'JIZZY'
request_model 237
load_all_models_now 

:SYN1_974
if or
  not has_model_loaded 575
  not has_model_loaded 237
  not has_model_loaded 478
  not has_special_character_loaded 5
  not has_car_recording_been_loaded 193
  not has_car_recording_been_loaded 194
goto_if_false @SYN1_1025
wait 0
goto @SYN1_974

:SYN1_1025
432@ = -2141.4009
433@ = -2481.575
434@ = 29.4688
435@ = 317.093
clear_area 432@ {y} 433@ {z} 434@ {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 575 {text} "HO_2_HO_"
421@ = create_car 575 {x} 432@ {y} 433@ {z} 434@
424@ = create_car 478 {x} -2235.7271 {y} -2572.873 {z} 30.9296
set_car_proofs 421@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 424@ {heading} 44.9335
change_car_colour 421@ {color1} 123 {color2} 5
set_car_heading 421@ {heading} 435@
423@ = create_char_inside_car 421@ {pedType} PedType.CivFemale {modelId} 237
420@ = create_char_as_passenger 421@ {pedType} PedType.CivMale {modelId} 294 {seat} SeatId.BikeRear
start_playback_recorded_car 421@ {path} 193
return 

:SYN1_1218
request_model 421
request_car_recording 192
load_special_character 4 {modelName} 'TORINO'
load_all_models_now 

:SYN1_1243
if or
  not has_model_loaded 421
  not has_special_character_loaded 4
  not has_car_recording_been_loaded 192
goto_if_false @SYN1_1279
wait 0
goto @SYN1_1243

:SYN1_1279
446@ = -2214.2749
447@ = -2475.113
448@ = 29.4688
449@ = 232.2762
custom_plate_for_next_car 421 {text} "_OMEGA__"
clear_area 446@ {y} 447@ {z} 448@ {radius} 5.0 {clearParticles} True
437@ = create_car 421 {x} 446@ {y} 447@ {z} 448@
change_car_colour 437@ {color1} 84 {color2} 84
set_car_proofs 437@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 437@ {heading} 449@
436@ = create_char_inside_car 437@ {pedType} PedType.CivMale {modelId} 293
start_playback_recorded_car 437@ {path} 192
return 

:SYN1_1424
load_mission_text 'SYN1'
register_mission_given 
$onmission = 1
wait 0
34@ = 0
35@ = 0
36@ = 0
147@ = 0
367@ = 0
37@ = 0
41@ = 0
38@ = 0
368@ = 0
42@ = 0
40@ = 0
332@ = 1
333@ = 2
334@ = 0
335@ = 1
336@ = 0
341@ = 1
347@ = -2413.0
350@ = -580.0
353@ = 133.0
348@ = -2410.0
351@ = -582.0
354@ = 133.0
349@ = -2406.0
352@ = -584.0
355@ = 133.0
402@ = -2141.1531
403@ = -2448.8711
404@ = 29.625
405@ = 107.1964
338@ = 120.0
339@ = 240.0
372@ = -2407.0
373@ = -586.0
374@ = 131.0
375@ = 4.0
48@ = -2163.489
49@ = -2404.1589
50@ = 29.6172
$sy1_cesar_car_x = -54.0
$sy1_cesar_car_y = -432.0
$sy1_cesar_car_z = 1.0
$sy1_cesar_car_h = 259.0
387@ = -2171.1731
388@ = -2422.821
389@ = 33.2969
390@ = 141.2754
53@ = -2408.437
68@ = -585.082
83@ = 133.2022
98@ = -2408.3369
113@ = -584.0877
128@ = 133.1662
54@ = -60.0461
69@ = -433.1644
84@ = 1.4904
99@ = -59.0698
114@ = -432.9484
129@ = 1.5005
55@ = -58.7976
70@ = -433.3285
85@ = 3.0796
100@ = -57.885
115@ = -432.994
130@ = 2.8444
56@ = -46.1629
71@ = -427.8859
86@ = 1.5902
101@ = -45.8006
116@ = -428.818
131@ = 1.3937
57@ = -2407.1699
72@ = -583.5895
87@ = 133.355
102@ = -2407.7661
117@ = -582.7864
132@ = 133.3749
58@ = -2407.1699
73@ = -583.5895
88@ = 133.355
103@ = -2407.967
118@ = -584.1938
133@ = 133.3749
59@ = -2172.552
74@ = -2427.4871
89@ = 30.5334
104@ = -2171.9861
119@ = -2428.304
134@ = 30.64
60@ = -2139.5691
75@ = -2452.239
90@ = 31.2226
105@ = -2140.292
120@ = -2451.5491
135@ = 31.1829
61@ = -2175.6721
76@ = -2437.23
91@ = 30.7446
106@ = -2174.6841
121@ = -2437.1331
136@ = 30.8619
62@ = -2170.4121
77@ = -2429.4299
92@ = 31.758
107@ = -2170.5
122@ = -2430.4231
137@ = 31.8365
63@ = -2246.8511
78@ = -2571.031
93@ = 32.7468
108@ = -2246.1599
123@ = -2570.311
138@ = 32.6781
64@ = -2241.519
79@ = -2568.281
94@ = 32.2372
109@ = -2242.2859
124@ = -2567.6421
139@ = 32.2906
set_lvar_text_label 154@s = 'MCES10A'
set_lvar_text_label 156@s = 'MCES10B'
set_lvar_text_label 158@s = 'MCES10C'
set_lvar_text_label 160@s = 'MCES10D'
set_lvar_text_label 162@s = 'MCES10E'
set_lvar_text_label 164@s = 'MCES10F'
set_lvar_text_label 166@s = 'MCES10G'
set_lvar_text_label 168@s = 'MCES10H'
set_lvar_text_label 170@s = 'MCES10J'
set_lvar_text_label 172@s = 'CESX_AB'
set_lvar_text_label 182@s = 'SYN1_FC'
set_lvar_text_label 184@s = 'SYN1_FD'
set_lvar_text_label 186@s = 'SYN1_IA'
set_lvar_text_label 188@s = 'SYN1_ZA'
set_lvar_text_label 192@s = 'SYN1_ZC'
set_lvar_text_label 194@s = 'SYN1_ZD'
set_lvar_text_label 196@s = 'SYN1_ZE'
set_lvar_text_label 200@s = 'SYN1_ZG'
set_lvar_text_label 206@s = 'SYN1_ZK'
set_lvar_text_label 208@s = 'SYN1_ZL'
set_lvar_text_label 210@s = 'SYN1_ZM'
set_lvar_text_label 212@s = 'SYN1_ZN'
set_lvar_text_label 216@s = 'SYN1_ZP'
set_lvar_text_label 218@s = 'SYN1_ZQ'
set_lvar_text_label 220@s = 'SYN1_ZR'
set_lvar_text_label 224@s = 'SYN1_ZT'
set_lvar_text_label 226@s = 'SYN1_ZU'
set_lvar_text_label 230@s = 'SYN1_ZW'
set_lvar_text_label 232@s = 'SYN1_ZX'
set_lvar_text_label 234@s = 'SYN1_ZY'
set_lvar_text_label 236@s = 'SYN1_ZZ'
set_lvar_text_label 238@s = 'SYN1_YA'
set_lvar_text_label 240@s = 'SYN1_YB'
set_lvar_text_label 246@s = 'SYN1_YE'
set_lvar_text_label 248@s = 'SYN1_YF'
set_lvar_text_label 252@s = 'SYN1_YH'
set_lvar_text_label 254@s = 'SYN1_YJ'
set_lvar_text_label 256@s = 'SYN1_YK'
set_lvar_int_to_constant 273@ = 25304
set_lvar_int_to_constant 274@ = 25305
set_lvar_int_to_constant 275@ = 25306
set_lvar_int_to_constant 276@ = 25307
set_lvar_int_to_constant 277@ = 25308
set_lvar_int_to_constant 278@ = 25309
set_lvar_int_to_constant 279@ = 25310
set_lvar_int_to_constant 280@ = 25311
set_lvar_int_to_constant 281@ = 25312
set_lvar_int_to_constant 282@ = 10401
set_lvar_int_to_constant 287@ = 38808
set_lvar_int_to_constant 288@ = 38809
set_lvar_int_to_constant 289@ = 38810
set_lvar_int_to_constant 292@ = 38838
set_lvar_int_to_constant 293@ = 38839
set_lvar_int_to_constant 294@ = 38840
set_lvar_int_to_constant 296@ = 38841
set_lvar_int_to_constant 299@ = 38842
set_lvar_int_to_constant 300@ = 38843
set_lvar_int_to_constant 301@ = 38844
set_lvar_int_to_constant 302@ = 38845
set_lvar_int_to_constant 304@ = 38846
set_lvar_int_to_constant 305@ = 38847
set_lvar_int_to_constant 306@ = 38848
set_lvar_int_to_constant 308@ = 38849
set_lvar_int_to_constant 309@ = 38850
set_lvar_int_to_constant 311@ = 38851
set_lvar_int_to_constant 312@ = 38852
set_lvar_int_to_constant 313@ = 38853
set_lvar_int_to_constant 314@ = 38854
set_lvar_int_to_constant 315@ = 38831
set_lvar_int_to_constant 316@ = 38832
set_lvar_int_to_constant 319@ = 38833
set_lvar_int_to_constant 320@ = 38834
set_lvar_int_to_constant 322@ = 38835
set_lvar_int_to_constant 323@ = 38836
set_lvar_int_to_constant 324@ = 38837
if 
  $flag_syn1_passed_1stime == 0
goto_if_false @SYN1_3494
$flag_syn1_passed_1stime = 1

:SYN1_3494
request_model 330
request_model 367
load_all_models_now 

:SYN1_3506
if or
  not has_model_loaded 367
  not has_model_loaded 330
goto_if_false @SYN1_3538
wait 0
goto @SYN1_3506

:SYN1_3538
set_char_coordinates $scplayer {x} -2030.312 {y} 148.0136 {z} 27.8359
set_char_heading $scplayer {heading} 293.7756
set_player_control $player1 {state} False
task_use_mobile_phone $scplayer {start} True
switch_widescreen True
set_fixed_camera_position -2024.469 {y} 136.6788 {z} 39.4814 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2025.135 {y} 137.4221 {z} 39.5473 {switchStyle} SwitchType.JumpCut
switch_car_generator $car_gen_pine {amount} 0
switch_car_generator $5278 {amount} 0
switch_car_generator $5279 {amount} 0
gosub @SYN1_47
do_fade 300 {direction} Fade.In

:SYN1_3672
if 
  get_fading_status 
goto_if_false @SYN1_3696
wait 0
goto @SYN1_3672

:SYN1_3696
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2024.469 {fromY} 136.6788 {fromZ} 39.4814 {toX} -2030.399 {toY} 144.5236 {toZ} 29.1601 {time} 3500 {ease} True
camera_set_vector_track -2025.135 {fromY} 137.4221 {fromZ} 39.5473 {toX} -2030.797 {toY} 145.4357 {toZ} 29.0639 {time} 3500 {ease} True

:SYN1_3780
wait 0
if 
  334@ <> 0
goto_if_false @SYN1_4211
if 
  336@ == 0
goto_if_false @SYN1_3848
if 
  has_mission_audio_loaded 333@
goto_if_false @SYN1_3841
clear_mission_audio 333@

:SYN1_3841
336@ = 1

:SYN1_3848
if 
  336@ == 1
goto_if_false @SYN1_3892
load_mission_audio 332@ {audioId} 272@(334@,60i)
gosub @SYN1_15794
336@ = 2

:SYN1_3892
if 
  336@ == 2
goto_if_false @SYN1_3994
if 
  has_mission_audio_loaded 332@
goto_if_false @SYN1_3994
if 
  148@ <> 0
goto_if_false @SYN1_3968
if 
  not is_char_dead 148@
goto_if_false @SYN1_3968
start_char_facial_talk 148@ {duration} 10000

:SYN1_3968
play_mission_audio 332@
print_now 152@(334@,60s) {time} 10000 {flag} 1
336@ = 3

:SYN1_3994
if 
  336@ == 3
goto_if_false @SYN1_4211
if 
  has_mission_audio_finished 332@
goto_if_false @SYN1_4150
clear_this_print 152@(334@,60s)
if 
  148@ <> 0
goto_if_false @SYN1_4076
if 
  not is_char_dead 148@
goto_if_false @SYN1_4076
stop_char_facial_talk 148@

:SYN1_4076
if 
  332@ == 1
goto_if_false @SYN1_4115
332@ = 2
333@ = 1
goto @SYN1_4129

:SYN1_4115
332@ = 1
333@ = 2

:SYN1_4129
334@ = 0
336@ = 0
goto @SYN1_4211

:SYN1_4150
if 
  not has_mission_audio_loaded 333@
goto_if_false @SYN1_4211
if 
  60 > 334@
goto_if_false @SYN1_4211
set_lvar_int_to_lvar_int 335@ = 334@
335@ += 1
load_mission_audio 333@ {audioId} 272@(335@,60i)

:SYN1_4211
if 
  39@ == 0
goto_if_false @SYN1_4266
if 
  336@ == 0
goto_if_false @SYN1_4266
334@ = 1
39@ = 1
151@ = get_game_timer 

:SYN1_4266
if 
  39@ == 1
goto_if_false @SYN1_4361
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4361
if 
  336@ == 0
goto_if_false @SYN1_4361
334@ = 2
39@ = 2
151@ = get_game_timer 

:SYN1_4361
if 
  39@ == 2
goto_if_false @SYN1_4456
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4456
if 
  336@ == 0
goto_if_false @SYN1_4456
334@ = 3
39@ = 3
151@ = get_game_timer 

:SYN1_4456
if 
  39@ == 3
goto_if_false @SYN1_4551
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4551
if 
  336@ == 0
goto_if_false @SYN1_4551
334@ = 4
39@ = 4
151@ = get_game_timer 

:SYN1_4551
if 
  39@ == 4
goto_if_false @SYN1_4663
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4663
if 
  336@ == 0
goto_if_false @SYN1_4663
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
334@ = 5
39@ = 5
151@ = get_game_timer 

:SYN1_4663
if 
  39@ == 5
goto_if_false @SYN1_4758
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4758
if 
  336@ == 0
goto_if_false @SYN1_4758
334@ = 6
39@ = 6
151@ = get_game_timer 

:SYN1_4758
if 
  39@ == 6
goto_if_false @SYN1_4853
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4853
if 
  336@ == 0
goto_if_false @SYN1_4853
334@ = 7
39@ = 7
151@ = get_game_timer 

:SYN1_4853
if 
  39@ == 7
goto_if_false @SYN1_4948
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_4948
if 
  336@ == 0
goto_if_false @SYN1_4948
334@ = 8
39@ = 8
151@ = get_game_timer 

:SYN1_4948
if 
  39@ == 8
goto_if_false @SYN1_5043
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_5043
if 
  336@ == 0
goto_if_false @SYN1_5043
334@ = 9
39@ = 9
151@ = get_game_timer 

:SYN1_5043
if or
  39@ == 9
  39@ == 10
goto_if_false @SYN1_5176
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_5176
if 
  336@ == 0
goto_if_false @SYN1_5176
set_player_control $player1 {state} True
365@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 365@ == 7
goto_if_false @SYN1_5169
task_use_mobile_phone $scplayer {start} False

:SYN1_5169
goto @SYN1_5230

:SYN1_5176
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN1_5223
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
39@ = 10

:SYN1_5223
goto @SYN1_3780

:SYN1_5230
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SYN1_5256
goto @SYN1_14568

:SYN1_5256
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @SYN1_5285
$flag_syn1_skip1 = 1
$flag_syn1_skip2 = 1

:SYN1_5285
if 
  34@ == 0
goto_if_false @SYN1_5452
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @SYN1_5452
do_fade 100 {direction} Fade.Out

:SYN1_5324
if 
  get_fading_status 
goto_if_false @SYN1_5348
wait 0
goto @SYN1_5324

:SYN1_5348
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
load_scene 387@ {y} 388@ {z} 389@
load_scene 402@ {y} 403@ {z} 404@
gosub @SYN1_345
gosub @SYN1_498
do_fade 100 {direction} Fade.In

:SYN1_5414
if 
  get_fading_status 
goto_if_false @SYN1_5438
wait 0
goto @SYN1_5414

:SYN1_5438
34@ = 5
35@ = 1

:SYN1_5452
if 
  334@ <> 0
goto_if_false @SYN1_6025
if 
  336@ == 0
goto_if_false @SYN1_5516
if 
  has_mission_audio_loaded 333@
goto_if_false @SYN1_5509
clear_mission_audio 333@

:SYN1_5509
336@ = 1

:SYN1_5516
if 
  336@ == 1
goto_if_false @SYN1_5560
load_mission_audio 332@ {audioId} 272@(334@,60i)
gosub @SYN1_15794
336@ = 2

:SYN1_5560
if 
  336@ == 2
goto_if_false @SYN1_5662
if 
  has_mission_audio_loaded 332@
goto_if_false @SYN1_5662
if 
  148@ <> 0
goto_if_false @SYN1_5636
if 
  not is_char_dead 148@
goto_if_false @SYN1_5636
start_char_facial_talk 148@ {duration} 10000

:SYN1_5636
play_mission_audio 332@
print_now 152@(334@,60s) {time} 10000 {flag} 1
336@ = 3

:SYN1_5662
if 
  336@ == 3
goto_if_false @SYN1_6025
if 
  has_mission_audio_finished 332@
goto_if_false @SYN1_5964
clear_this_print 152@(334@,60s)
if 
  148@ <> 0
goto_if_false @SYN1_5744
if 
  not is_char_dead 148@
goto_if_false @SYN1_5744
stop_char_facial_talk 148@

:SYN1_5744
if 
  332@ == 1
goto_if_false @SYN1_5783
332@ = 2
333@ = 1
goto @SYN1_5797

:SYN1_5783
332@ = 1
333@ = 2

:SYN1_5797
if and
  334@ == 10
  36@ == 2
goto_if_false @SYN1_5850
334@ = 0
336@ = 0
36@ = 3
goto @SYN1_5864

:SYN1_5850
334@ = 0
336@ = 0

:SYN1_5864
if 
  337@ == 1
goto_if_false @SYN1_5889
337@ = 2

:SYN1_5889
if 
  337@ == 0
goto_if_false @SYN1_5914
337@ = 1

:SYN1_5914
if 
  34@ == 6
goto_if_false @SYN1_5957
if 
  35@ == 13
goto_if_false @SYN1_5957
35@ = 0

:SYN1_5957
goto @SYN1_6025

:SYN1_5964
if 
  not has_mission_audio_loaded 333@
goto_if_false @SYN1_6025
if 
  60 > 334@
goto_if_false @SYN1_6025
set_lvar_int_to_lvar_int 335@ = 334@
335@ += 1
load_mission_audio 333@ {audioId} 272@(335@,60i)

:SYN1_6025
if 
  34@ == 0
goto_if_false @SYN1_6099
379@ = add_blip_for_coord $sy1_cesar_car_x {y} $sy1_cesar_car_y {z} $sy1_cesar_car_z
set_coord_blip_appearance 379@ {color} CoordAppearance.Friend
151@ = get_game_timer 
print 'SYN1_02' {time} 10000 {flag} 1
147@ = 11
34@ = 1

:SYN1_6099
if 
  34@ == 2
goto_if_false @SYN1_6173
if 
  not locate_char_in_car_3d $scplayer {x} 48@ {y} 49@ {z} 50@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN1_6173
gosub @SYN1_14986
gosub @SYN1_15457

:SYN1_6173
if 
  34@ == 1
goto_if_false @SYN1_7141
if 
  35@ == 0
goto_if_false @SYN1_6396
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN1_6396
366@ = store_car_char_is_in_no_save $scplayer
if 
  336@ == 0
goto_if_false @SYN1_6396
if 
  147@ == 11
goto_if_false @SYN1_6396
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1
goto_if_false @SYN1_6396
if 
  $flag_syn1_skip1 == 1
goto_if_false @SYN1_6348
set_up_skip -85.518 {y} -413.1554 {z} 0.4297 {heading} 240.0212

:SYN1_6348
if 
  not is_message_being_displayed 
goto_if_false @SYN1_6377
print 'SYN1_02' {time} 10000 {flag} 1

:SYN1_6377
151@ = get_game_timer 
147@ = 12
35@ = 1

:SYN1_6396
if 
  36@ == 0
goto_if_false @SYN1_6549
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @SYN1_6549
task_use_mobile_phone $scplayer {start} False
if 
  not is_car_dead 366@
goto_if_false @SYN1_6461
lock_car_doors 366@ {lockStatus} CarLock.Unlocked

:SYN1_6461
147@ = 12
35@ = 1
gosub @SYN1_148
if 
  not is_char_dead 376@
goto_if_false @SYN1_6542
task_play_anim 376@ {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN1_6542
36@ = 1

:SYN1_6549
if 
  36@ == 0
goto_if_false @SYN1_6720
if 
  locate_char_any_means_3d $scplayer {x} $sy1_cesar_car_x {y} $sy1_cesar_car_y {z} $sy1_cesar_car_z {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} True
goto_if_false @SYN1_6720
task_use_mobile_phone $scplayer {start} False
if 
  not is_car_dead 366@
goto_if_false @SYN1_6639
lock_car_doors 366@ {lockStatus} CarLock.Unlocked

:SYN1_6639
gosub @SYN1_148
if 
  not is_char_dead 376@
goto_if_false @SYN1_6706
task_play_anim 376@ {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN1_6706
147@ = 12
36@ = 1

:SYN1_6720
if 
  36@ == 1
goto_if_false @SYN1_7141
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_7141
if and
  locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
  not locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN1_6942
print_now 'SYN1_15' {time} 100 {flag} 1
if 
  41@ == 0
goto_if_false @SYN1_6942
if 
  not is_char_dead 376@
goto_if_false @SYN1_6942
380@ = get_script_task_status 376@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 380@ == 7
goto_if_false @SYN1_6942
task_play_anim 376@ {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN1_6942
if 
  locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN1_7141
clear_char_tasks 376@
if 
  41@ == 0
goto_if_false @SYN1_7008
41@ = 1

:SYN1_7008
if 
  not is_char_in_any_car $scplayer
goto_if_false @SYN1_7141
if 
  not is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_7141
if 
  $flag_syn1_skip1 == 0
goto_if_false @SYN1_7068
$flag_syn1_skip1 = 1

:SYN1_7068
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 376@
remove_blip 379@
381@ = add_blip_for_car 377@
set_blip_as_friendly 381@ {state} True
151@ = get_game_timer 
151@ -= 3000
34@ = 2
35@ = 4
42@ = 1
367@ = 0

:SYN1_7141
if 
  34@ == 1
goto_if_false @SYN1_7218
if 
  36@ == 1
goto_if_false @SYN1_7218
if 
  is_char_dead 376@
goto_if_false @SYN1_7218
clear_prints 
print 'SYN1_06' {time} 5000 {flag} 1
goto @SYN1_14543

:SYN1_7218
if or
  34@ == 2
  34@ == 3
goto_if_false @SYN1_7325
if 
  is_char_dead 376@
goto_if_false @SYN1_7284
clear_prints 
print 'SYN1_06' {time} 5000 {flag} 1
goto @SYN1_14543

:SYN1_7284
if 
  is_car_dead 377@
goto_if_false @SYN1_7325
clear_prints 
print 'SYN1_08' {time} 5000 {flag} 1
goto @SYN1_14543

:SYN1_7325
if 
  34@ == 2
goto_if_false @SYN1_8362
if and
  367@ == 1
  368@ == 1
  147@ == 12
goto_if_false @SYN1_7389
147@ = 2
goto @SYN1_7620

:SYN1_7389
if 
  147@ > 5
goto_if_false @SYN1_7620
if 
  368@ == 1
goto_if_false @SYN1_7482
if 
  36@ == 1
goto_if_false @SYN1_7482
if and
  336@ == 0
  334@ == 0
goto_if_false @SYN1_7482
334@ = 10
36@ = 2

:SYN1_7482
if 
  36@ == 1
goto_if_false @SYN1_7551
if and
  368@ == 0
  334@ == 0
  336@ == 0
goto_if_false @SYN1_7551
print_now 'SYN1_15' {time} 100 {flag} 1
set_radio_channel RadioChannel.PlaybackFM

:SYN1_7551
if 
  36@ == 3
goto_if_false @SYN1_7620
if and
  368@ == 1
  334@ == 0
  336@ == 0
goto_if_false @SYN1_7620
print_now 'SYN1_07' {time} 100 {flag} 1
set_radio_channel RadioChannel.PlaybackFM

:SYN1_7620
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_7954
if 
  is_char_in_car 376@ {vehicle} 377@
goto_if_false @SYN1_7954
if 
  147@ == 2
goto_if_false @SYN1_7755
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 3500
goto_if_false @SYN1_7755
if 
  336@ == 0
goto_if_false @SYN1_7755
334@ = 15
151@ = get_game_timer 
147@ = 3

:SYN1_7755
if 
  147@ == 3
goto_if_false @SYN1_7850
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_7850
if 
  336@ == 0
goto_if_false @SYN1_7850
334@ = 16
151@ = get_game_timer 
147@ = 4

:SYN1_7850
if 
  147@ == 4
goto_if_false @SYN1_7954
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_7954
if 
  336@ == 0
goto_if_false @SYN1_7954
print 'SYN1_13' {time} 10000 {flag} 1
151@ = get_game_timer 
147@ = 5

:SYN1_7954
if 
  35@ == 4
goto_if_false @SYN1_8362
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_8362
if 
  is_char_in_car 376@ {vehicle} 377@
goto_if_false @SYN1_8362
if 
  is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_8362
if 
  locate_char_in_car_3d $scplayer {x} 48@ {y} 49@ {z} 50@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN1_8362
if 
  $flag_syn1_skip2 == 0
goto_if_false @SYN1_8098
$flag_syn1_skip2 = 1

:SYN1_8098
set_player_control $player1 {state} False
151@ = get_game_timer 
remove_blip 51@
52@ = add_blip_for_coord 387@ {y} 388@ {z} 389@
print_now 'SYN1_14' {time} 5000 {flag} 1
34@ = 3
if 
  is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_8362
remove_char_from_group 376@
385@ = open_sequence_task 
task_leave_car -1 {vehicle} 377@
task_go_straight_to_coord -1 {x} -2160.5149 {y} -2413.449 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2162.4519 {y} -2414.229 {z} 29.6328 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2165.884 {y} -2411.885 {z} 31.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2168.957 {y} -2409.1179 {z} 33.618 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2170.8401 {y} -2414.24 {z} 33.2969 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.741 {y} -2416.9529 {z} 33.2969 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2168.3621 {y} -2419.4399 {z} 33.2969 {speed} MoveState.Walk {time} -2
close_sequence_task 385@
perform_sequence_task 376@ {sequence} 385@

:SYN1_8362
if 
  34@ == 3
goto_if_false @SYN1_8761
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 500
goto_if_false @SYN1_8427
set_player_control $player1 {state} True

:SYN1_8427
if 
  locate_char_on_foot_3d $scplayer {x} 387@ {y} 388@ {z} 389@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @SYN1_8761
do_fade 100 {direction} Fade.Out

:SYN1_8475
if 
  get_fading_status 
goto_if_false @SYN1_8499
wait 0
goto @SYN1_8475

:SYN1_8499
if 
  not is_car_dead 377@
goto_if_false @SYN1_8582
set_car_proofs 377@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 377@ {health} 1000
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_car_coordinates 377@ {x} -2160.0601 {y} -2409.6311 {z} 29.6172
set_car_heading 377@ {heading} 191.1948

:SYN1_8582
if 
  not is_char_dead 376@
goto_if_false @SYN1_8613
set_char_proofs 376@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:SYN1_8613
alter_wanted_level $player1 {wantedLevel} 0
remove_blip 52@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 30000
load_scene 387@ {y} 388@ {z} 389@
load_scene 402@ {y} 403@ {z} 404@
print_help_forever 'SYN1_44'
gosub @SYN1_345
gosub @SYN1_498
do_fade 100 {direction} Fade.In

:SYN1_8702
if 
  get_fading_status 
goto_if_false @SYN1_8726
wait 0
goto @SYN1_8702

:SYN1_8726
34@ = 5
35@ = 0
151@ = get_game_timer 
print_now 'SYN1_12' {time} 10000 {flag} 1

:SYN1_8761
if 
  34@ == 5
goto_if_false @SYN1_12683
146@ = get_camera_fov 
if 
  35@ == 0
goto_if_false @SYN1_8933
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 8000
goto_if_false @SYN1_8882
if 
  not is_car_dead 392@
goto_if_false @SYN1_8882
if 
  not is_playback_going_on_for_car 392@
goto_if_false @SYN1_8882
start_playback_recorded_car 392@ {path} 190

:SYN1_8882
if 
  149@ > 10000
goto_if_false @SYN1_8933
if 
  336@ == 0
goto_if_false @SYN1_8933
334@ = 17
35@ = 1

:SYN1_8933
if 
  35@ == 1
goto_if_false @SYN1_9158
if and
  not is_car_dead 392@
  not is_char_dead 391@
goto_if_false @SYN1_9158
if 
  not is_playback_going_on_for_car 392@
goto_if_false @SYN1_9158
397@ = open_sequence_task 
task_leave_car -1 {vehicle} 392@
task_go_straight_to_coord -1 {x} -2151.4751 {y} -2442.0649 {z} 29.6328 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2157.3879 {y} -2441.616 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2162.4709 {y} -2444.574 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.3091 {y} -2451.8779 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2166.5171 {y} -2456.9661 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2160.4199 {y} -2461.468 {z} 29.6328 {speed} MoveState.Walk {time} -2
close_sequence_task 397@
perform_sequence_task 391@ {sequence} 397@
35@ = 2

:SYN1_9158
if 
  35@ == 2
goto_if_false @SYN1_9263
if and
  not is_car_dead 392@
  not is_char_dead 391@
goto_if_false @SYN1_9263
if 
  not is_char_in_car 391@ {vehicle} 392@
goto_if_false @SYN1_9263
393@ = add_blip_for_char 391@
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9240

:SYN1_9240
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 3

:SYN1_9263
if 
  35@ == 3
goto_if_false @SYN1_9430
if 
  not is_char_dead 391@
goto_if_false @SYN1_9430
395@ = get_script_task_status 391@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 395@ == 7
goto_if_false @SYN1_9430
do_fade 500 {direction} Fade.Out

:SYN1_9333
if 
  get_fading_status 
goto_if_false @SYN1_9357
wait 0
goto @SYN1_9333

:SYN1_9357
if 
  not is_car_dead 386@
goto_if_false @SYN1_9430
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14543

:SYN1_9430
if 
  35@ == 3
goto_if_false @SYN1_9678
if 
  40@ == 0
goto_if_false @SYN1_9678
if 
  not is_char_dead 391@
goto_if_false @SYN1_9678
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9678
if 
  20.0 > 146@
goto_if_false @SYN1_9646
401@ = get_char_heading 391@
if or
  is_float_lvar_greater_than_float_lvar 401@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 401@
goto_if_false @SYN1_9607
if 
  336@ == 0
goto_if_false @SYN1_9600
clear_prints 
remove_blip 393@
gosub @SYN1_733
337@ = 0
35@ = 4

:SYN1_9600
goto @SYN1_9639

:SYN1_9607
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9639

:SYN1_9639
goto @SYN1_9678

:SYN1_9646
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 391@
goto_if_false @SYN1_9678

:SYN1_9678
if and
  35@ > 3
  7 > 35@
goto_if_false @SYN1_9821
if 
  40@ == 0
goto_if_false @SYN1_9821
if 
  336@ == 0
goto_if_false @SYN1_9821
if 
  337@ == 0
goto_if_false @SYN1_9764
334@ = 20

:SYN1_9764
if 
  337@ == 1
goto_if_false @SYN1_9789
334@ = 22

:SYN1_9789
if 
  337@ == 2
goto_if_false @SYN1_9821
334@ = 27
40@ = 1

:SYN1_9821
if 
  35@ == 4
goto_if_false @SYN1_10046
if and
  not is_car_dead 407@
  not is_char_dead 406@
goto_if_false @SYN1_10046
if 
  not is_playback_going_on_for_car 407@
goto_if_false @SYN1_10046
411@ = open_sequence_task 
task_leave_car -1 {vehicle} 407@
task_go_straight_to_coord -1 {x} -2156.689 {y} -2441.7119 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2161.1421 {y} -2444.187 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2165.8301 {y} -2449.4761 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.1379 {y} -2454.51 {z} 29.6328 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2164.094 {y} -2458.863 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2161.3359 {y} -2460.522 {z} 29.6328 {speed} MoveState.Walk {time} -2
close_sequence_task 411@
perform_sequence_task 406@ {sequence} 411@
35@ = 5

:SYN1_10046
if 
  35@ == 5
goto_if_false @SYN1_10151
if and
  not is_car_dead 407@
  not is_char_dead 406@
goto_if_false @SYN1_10151
if 
  not is_char_in_car 406@ {vehicle} 407@
goto_if_false @SYN1_10151
408@ = add_blip_for_char 406@
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10128

:SYN1_10128
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 6

:SYN1_10151
if 
  35@ == 6
goto_if_false @SYN1_10318
if 
  not is_char_dead 406@
goto_if_false @SYN1_10318
409@ = get_script_task_status 406@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 409@ == 7
goto_if_false @SYN1_10318
do_fade 500 {direction} Fade.Out

:SYN1_10221
if 
  get_fading_status 
goto_if_false @SYN1_10245
wait 0
goto @SYN1_10221

:SYN1_10245
if 
  not is_car_dead 386@
goto_if_false @SYN1_10318
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14543

:SYN1_10318
if 
  35@ == 6
goto_if_false @SYN1_10566
if 
  40@ == 1
goto_if_false @SYN1_10566
if 
  not is_char_dead 406@
goto_if_false @SYN1_10566
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10566
if 
  20.0 > 146@
goto_if_false @SYN1_10534
415@ = get_char_heading 406@
if or
  is_float_lvar_greater_than_float_lvar 415@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 415@
goto_if_false @SYN1_10495
if 
  336@ == 0
goto_if_false @SYN1_10488
clear_prints 
remove_blip 408@
gosub @SYN1_1218
337@ = 0
35@ = 7

:SYN1_10488
goto @SYN1_10527

:SYN1_10495
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10527

:SYN1_10527
goto @SYN1_10566

:SYN1_10534
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 406@
goto_if_false @SYN1_10566

:SYN1_10566
if and
  35@ > 6
  10 > 35@
goto_if_false @SYN1_10709
if 
  40@ == 1
goto_if_false @SYN1_10709
if 
  336@ == 0
goto_if_false @SYN1_10709
if 
  337@ == 0
goto_if_false @SYN1_10652
334@ = 32

:SYN1_10652
if 
  337@ == 1
goto_if_false @SYN1_10677
334@ = 33

:SYN1_10677
if 
  337@ == 2
goto_if_false @SYN1_10709
334@ = 30
40@ = 2

:SYN1_10709
if 
  35@ == 7
goto_if_false @SYN1_11087
if and
  not is_car_dead 437@
  not is_char_dead 436@
goto_if_false @SYN1_11087
if 
  is_playback_going_on_for_car 437@
goto_if_false @SYN1_10947
359@, 360@, 361@ = get_offset_from_car_in_world_coords 437@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 356@ = 359@
356@ -= 1.0
set_lvar_float_to_lvar_float 357@ = 360@
357@ -= 1.0
set_lvar_float_to_lvar_float 358@ = 361@
358@ -= 1.0
set_lvar_float_to_lvar_float 362@ = 359@
362@ += 1.0
set_lvar_float_to_lvar_float 363@ = 360@
363@ += 1.0
set_lvar_float_to_lvar_float 364@ = 361@
364@ += 1.0
if 
  is_area_occupied 356@ {leftBottomY} 357@ {leftBottomZ} 358@ {rightTopX} 362@ {rightTopY} 363@ {rightTopZ} 364@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @SYN1_10947
stop_playback_recorded_car 437@

:SYN1_10947
if 
  not is_playback_going_on_for_car 437@
goto_if_false @SYN1_11087
441@ = open_sequence_task 
task_leave_car -1 {vehicle} 437@
task_go_straight_to_coord -1 {x} -2176.855 {y} -2453.54 {z} 29.4688 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2172.5171 {y} -2453.834 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2169.3831 {y} -2456.0801 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2162.812 {y} -2459.8391 {z} 29.6328 {speed} MoveState.Walk {time} -2
close_sequence_task 441@
perform_sequence_task 436@ {sequence} 441@
35@ = 8

:SYN1_11087
if 
  35@ == 8
goto_if_false @SYN1_11192
if and
  not is_car_dead 437@
  not is_char_dead 436@
goto_if_false @SYN1_11192
if 
  not is_char_in_car 436@ {vehicle} 437@
goto_if_false @SYN1_11192
438@ = add_blip_for_char 436@
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11169

:SYN1_11169
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 9

:SYN1_11192
if 
  35@ == 9
goto_if_false @SYN1_11359
if 
  not is_char_dead 436@
goto_if_false @SYN1_11359
439@ = get_script_task_status 436@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 439@ == 7
goto_if_false @SYN1_11359
do_fade 500 {direction} Fade.Out

:SYN1_11262
if 
  get_fading_status 
goto_if_false @SYN1_11286
wait 0
goto @SYN1_11262

:SYN1_11286
if 
  not is_car_dead 386@
goto_if_false @SYN1_11359
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14543

:SYN1_11359
if 
  35@ == 9
goto_if_false @SYN1_11607
if 
  40@ == 2
goto_if_false @SYN1_11607
if 
  not is_char_dead 436@
goto_if_false @SYN1_11607
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11607
if 
  20.0 > 146@
goto_if_false @SYN1_11575
445@ = get_char_heading 436@
if or
  is_float_lvar_greater_than_float_lvar 445@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 445@
goto_if_false @SYN1_11536
if 
  336@ == 0
goto_if_false @SYN1_11529
clear_prints 
remove_blip 438@
gosub @SYN1_934
337@ = 0
35@ = 10

:SYN1_11529
goto @SYN1_11568

:SYN1_11536
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11568

:SYN1_11568
goto @SYN1_11607

:SYN1_11575
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 436@
goto_if_false @SYN1_11607

:SYN1_11607
if and
  35@ > 9
  13 > 35@
goto_if_false @SYN1_11750
if 
  40@ == 2
goto_if_false @SYN1_11750
if 
  336@ == 0
goto_if_false @SYN1_11750
if 
  337@ == 0
goto_if_false @SYN1_11693
334@ = 42

:SYN1_11693
if 
  337@ == 1
goto_if_false @SYN1_11718
334@ = 43

:SYN1_11718
if 
  337@ == 2
goto_if_false @SYN1_11750
334@ = 39
40@ = 3

:SYN1_11750
if 
  35@ == 10
goto_if_false @SYN1_11936
if and
  not is_car_dead 421@
  not is_char_dead 420@
goto_if_false @SYN1_11936
if 
  not is_playback_going_on_for_car 421@
goto_if_false @SYN1_11936
427@ = open_sequence_task 
task_leave_car -1 {vehicle} 421@
task_go_straight_to_coord -1 {x} -2173.3911 {y} -2445.9851 {z} 29.4688 {speed} MoveState.Walk {time} -2
task_stand_still -1 {time} 1500
task_go_straight_to_coord -1 {x} -2170.468 {y} -2449.187 {z} 29.4688 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2167.9741 {y} -2454.9741 {z} 29.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2163.5391 {y} -2458.7529 {z} 29.625 {speed} MoveState.Walk {time} -2
close_sequence_task 427@
perform_sequence_task 420@ {sequence} 427@
35@ = 11

:SYN1_11936
if 
  35@ == 11
goto_if_false @SYN1_12041
if and
  not is_car_dead 421@
  not is_char_dead 420@
goto_if_false @SYN1_12041
if 
  not is_char_in_car 420@ {vehicle} 421@
goto_if_false @SYN1_12041
422@ = add_blip_for_char 420@
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_12018

:SYN1_12018
print_now 'SYN1_04' {time} 5000 {flag} 1
35@ = 12

:SYN1_12041
if 
  35@ == 12
goto_if_false @SYN1_12292
if 
  not is_char_dead 420@
goto_if_false @SYN1_12292
425@ = get_script_task_status 420@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 425@ == 7
goto_if_false @SYN1_12170
426@ = get_sequence_progress 420@
if 
  426@ == 1
goto_if_false @SYN1_12170
if 
  not is_car_dead 421@
goto_if_false @SYN1_12170
if 
  not is_playback_going_on_for_car 421@
goto_if_false @SYN1_12170
start_playback_recorded_car 421@ {path} 194

:SYN1_12170
if 
  is_int_lvar_equal_to_constant 425@ == 7
goto_if_false @SYN1_12292
do_fade 500 {direction} Fade.Out

:SYN1_12195
if 
  get_fading_status 
goto_if_false @SYN1_12219
wait 0
goto @SYN1_12195

:SYN1_12219
if 
  not is_car_dead 386@
goto_if_false @SYN1_12292
detach_char_from_car $scplayer
delete_car 386@
set_char_coordinates $scplayer {x} 387@ {y} 388@ {z} 389@
set_char_heading $scplayer {heading} 210.0
print_now 'SYN1_09' {time} 7500 {flag} 1
goto @SYN1_14543

:SYN1_12292
if 
  35@ == 12
goto_if_false @SYN1_12533
if 
  40@ == 3
goto_if_false @SYN1_12533
if 
  not is_char_dead 420@
goto_if_false @SYN1_12533
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_12533
if 
  20.0 > 146@
goto_if_false @SYN1_12501
431@ = get_char_heading 420@
if or
  is_float_lvar_greater_than_float_lvar 431@ > 339@
  is_float_lvar_greater_than_float_lvar 338@ > 431@
goto_if_false @SYN1_12462
if 
  336@ == 0
goto_if_false @SYN1_12455
clear_prints 
remove_blip 422@
337@ = 0
35@ = 13

:SYN1_12455
goto @SYN1_12494

:SYN1_12462
print 'SYN1_10' {time} 3000 {flag} 1
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_12494

:SYN1_12494
goto @SYN1_12533

:SYN1_12501
print 'SYN1_05' {time} 3000 {flag} 1
if 
  has_char_been_photographed 420@
goto_if_false @SYN1_12533

:SYN1_12533
if 
  35@ == 13
goto_if_false @SYN1_12683
if 
  40@ == 3
goto_if_false @SYN1_12683
if 
  336@ == 0
goto_if_false @SYN1_12683
if 
  337@ == 0
goto_if_false @SYN1_12612
334@ = 40

:SYN1_12612
if 
  337@ == 1
goto_if_false @SYN1_12637
334@ = 41

:SYN1_12637
if 
  337@ == 2
goto_if_false @SYN1_12683
334@ = 29
40@ = 4
34@ = 6
35@ = -3

:SYN1_12683
if 
  34@ == 6
goto_if_false @SYN1_14536
if 
  35@ == -3
goto_if_false @SYN1_13020
if 
  334@ == 0
goto_if_false @SYN1_13020
do_fade 150 {direction} Fade.Out

:SYN1_12744
if 
  get_fading_status 
goto_if_false @SYN1_12768
wait 0
goto @SYN1_12744

:SYN1_12768
clear_help 
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_char_dead 376@
goto_if_false @SYN1_13020
detach_char_from_car $scplayer
if 
  not is_car_dead 386@
goto_if_false @SYN1_12823
delete_car 386@

:SYN1_12823
set_fixed_camera_position -2161.72 {y} -2411.582 {z} 31.9003 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2162.657 {y} -2411.396 {z} 32.193 {switchStyle} SwitchType.JumpCut
set_char_coordinates 376@ {x} -2169.03 {y} -2409.3269 {z} 33.618
set_char_heading 376@ {heading} 232.4401
set_char_coordinates $scplayer {x} -2170.2451 {y} -2410.9561 {z} 33.2969
set_char_heading $scplayer {heading} 322.3848
340@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2169.03 {y} -2409.3269 {z} 33.618 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2165.3879 {y} -2411.7461 {z} 31.625 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -2161.814 {y} -2414.811 {z} 29.625 {speed} MoveState.Run {time} -2
close_sequence_task 340@
35@ = -2

:SYN1_13020
if 
  35@ == -2
goto_if_false @SYN1_13113
if 
  not is_char_dead 376@
goto_if_false @SYN1_13113
perform_sequence_task 376@ {sequence} 340@
perform_sequence_task $scplayer {sequence} 340@
do_fade 150 {direction} Fade.In

:SYN1_13077
if 
  get_fading_status 
goto_if_false @SYN1_13101
wait 0
goto @SYN1_13077

:SYN1_13101
151@ = get_game_timer 
35@ = -1

:SYN1_13113
if 
  35@ == -1
goto_if_false @SYN1_13178
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 4500
goto_if_false @SYN1_13178
35@ = 0

:SYN1_13178
if 
  35@ == 0
goto_if_false @SYN1_13477
do_fade 250 {direction} Fade.Out

:SYN1_13203
if 
  get_fading_status 
goto_if_false @SYN1_13227
wait 0
goto @SYN1_13203

:SYN1_13227
if and
  not is_car_dead 377@
  not is_char_dead 376@
goto_if_false @SYN1_13477
clear_prints 
warp_char_into_car $scplayer {vehicle} 377@
warp_char_into_car_as_passenger 376@ {handle} 377@ {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 575
unload_special_character 4
unload_special_character 5
set_fixed_camera_position -2152.2549 {y} -2416.0491 {z} 30.2724 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2153.1741 {y} -2415.7009 {z} 30.4581 {switchStyle} SwitchType.JumpCut
request_car_recording 197

:SYN1_13337
if 
  not has_car_recording_been_loaded 197
goto_if_false @SYN1_13364
wait 0
goto @SYN1_13337

:SYN1_13364
if 
  not is_car_dead 377@
goto_if_false @SYN1_13393
start_playback_recorded_car 377@ {path} 197
151@ = get_game_timer 

:SYN1_13393
do_fade 100 {direction} Fade.In

:SYN1_13399
if 
  get_fading_status 
goto_if_false @SYN1_13423
wait 0
goto @SYN1_13399

:SYN1_13423
if 
  not is_char_dead 376@
goto_if_false @SYN1_13463
if 
  is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_13463
remove_char_from_group 376@

:SYN1_13463
35@ = 1
36@ = 1

:SYN1_13477
if 
  35@ == 1
goto_if_false @SYN1_13807
if 
  not is_car_dead 377@
goto_if_false @SYN1_13807
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  36@ == 1
goto_if_false @SYN1_13595
if 
  149@ > 1000
goto_if_false @SYN1_13595
point_camera_at_point -2152.8689 {y} -2416.8379 {z} 30.285 {switchStyle} SwitchType.Interpolation
36@ = 2

:SYN1_13595
if 
  36@ == 2
goto_if_false @SYN1_13690
if 
  149@ > 6000
goto_if_false @SYN1_13690
set_fixed_camera_position -2267.2939 {y} -2565.4021 {z} 31.7381 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2266.4109 {y} -2564.99 {z} 31.9617 {switchStyle} SwitchType.JumpCut
36@ = 3

:SYN1_13690
if 
  not is_playback_going_on_for_car 377@
goto_if_false @SYN1_13807
if and
  not is_car_dead 377@
  not is_char_dead 376@
goto_if_false @SYN1_13807
task_leave_car $scplayer {vehicle} 377@
task_look_at_char 376@ {target} $scplayer {time} -2
clear_area 63@ {y} 78@ {z} 93@ {radius} 50.0 {clearParticles} True
request_car_recording 198

:SYN1_13768
if 
  not has_car_recording_been_loaded 198
goto_if_false @SYN1_13795
wait 0
goto @SYN1_13768

:SYN1_13795
151@ = get_game_timer 
35@ = 2

:SYN1_13807
if 
  35@ == 2
goto_if_false @SYN1_13993
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 2000
goto_if_false @SYN1_13993
if and
  not is_char_dead $scplayer
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_13993
if 
  336@ == 0
goto_if_false @SYN1_13993
task_shuffle_to_next_car_seat 376@ {vehicle} 377@
334@ = 50
task_look_at_char $scplayer {target} 376@ {time} -2
task_turn_char_to_face_char $scplayer {target} 376@
set_fixed_camera_position 64@ {y} 79@ {z} 94@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 109@ {y} 124@ {z} 139@ {switchStyle} SwitchType.JumpCut
151@ = get_game_timer 
35@ = 3

:SYN1_13993
if 
  35@ == 3
goto_if_false @SYN1_14119
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_14119
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_14119
if 
  336@ == 0
goto_if_false @SYN1_14119
334@ = 51
task_look_at_char 376@ {target} $scplayer {time} -2
35@ = 4
151@ = get_game_timer 

:SYN1_14119
if 
  35@ == 4
goto_if_false @SYN1_14188
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1
goto_if_false @SYN1_14188
35@ = 5
151@ = get_game_timer 

:SYN1_14188
if 
  35@ == 5
goto_if_false @SYN1_14397
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 1000
goto_if_false @SYN1_14397
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_14397
if 
  336@ == 0
goto_if_false @SYN1_14397
334@ = 52
clear_look_at $scplayer
clear_look_at 376@
set_fixed_camera_position -2243.208 {y} -2568.731 {z} 32.6032 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2243.9451 {y} -2568.0559 {z} 32.605 {switchStyle} SwitchType.JumpCut
start_playback_recorded_car 377@ {path} 198
task_go_straight_to_coord $scplayer {x} -2249.509 {y} -2562.9561 {z} 30.9255 {speed} MoveState.Walk {time} -2
35@ = 6
151@ = get_game_timer 

:SYN1_14397
if 
  35@ == 6
goto_if_false @SYN1_14536
150@ = get_game_timer 
set_lvar_int_to_lvar_int 149@ = 150@
sub_int_lvar_from_int_lvar 149@ -= 151@
if 
  149@ > 3000
goto_if_false @SYN1_14536
if and
  not is_char_dead 376@
  not is_car_dead 377@
goto_if_false @SYN1_14536
if 
  not is_playback_going_on_for_car 377@
goto_if_false @SYN1_14536
clear_char_tasks $scplayer
delete_car 377@
delete_char 376@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
goto @SYN1_14568
35@ = 7

:SYN1_14536
goto @SYN1_5230

:SYN1_14543
do_fade 500 {direction} Fade.In
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN1_14568
do_fade 500 {direction} Fade.In
$flag_synd_mission_counter += 1
register_mission_passed 'SYND_1'
player_made_progress 1
if 
  is_player_playing $player1
goto_if_false @SYN1_14622
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 24

:SYN1_14622
play_mission_passed_tune 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
clear_wanted_level $player1
set_int_stat StatId.PassedSyndicate1 {value} 1
return 

:SYN1_14662
if 
  not is_char_dead $scplayer
goto_if_false @SYN1_14693
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SYN1_14693
if 
  not is_char_dead 376@
goto_if_false @SYN1_14724
set_char_proofs 376@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:SYN1_14724
clear_help 
remove_blip 393@
remove_blip 408@
remove_blip 438@
remove_blip 422@
remove_blip 51@
remove_blip 52@
remove_blip 381@
remove_blip 379@
delete_char 391@
delete_char 406@
delete_char 436@
delete_char 420@
delete_car 392@
delete_car 407@
delete_car 437@
delete_car 421@
if 
  not is_car_dead 377@
goto_if_false @SYN1_14846
if 
  not is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_14846
delete_car 377@

:SYN1_14846
unload_special_character 1
unload_special_character 2
unload_special_character 3
unload_special_character 4
unload_special_character 5
remove_char_elegantly 376@
remove_animation "BOMBER"
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 477
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 575
mark_model_as_no_longer_needed 237
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 478
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_car_generator $car_gen_pine {amount} 101
switch_car_generator $5278 {amount} 101
switch_car_generator $5279 {amount} 101
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:SYN1_14986
if 
  not is_char_dead $scplayer
goto_if_false @SYN1_15455
if 
  367@ == 0
goto_if_false @SYN1_15217
if 
  368@ == 1
goto_if_false @SYN1_15096
if 
  42@ == 1
goto_if_false @SYN1_15096
if and
  334@ == 0
  336@ == 0
goto_if_false @SYN1_15096
print_now 'SYN1_07' {time} 100 {flag} 1

:SYN1_15096
if 
  not is_car_dead 377@
goto_if_false @SYN1_15217
if 
  is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_15217
remove_blip 381@
366@ = store_car_char_is_in $scplayer
if 
  368@ == 1
goto_if_false @SYN1_15176
51@ = add_blip_for_coord 48@ {y} 49@ {z} 50@

:SYN1_15176
if 
  147@ == 5
goto_if_false @SYN1_15210
print 'SYN1_13' {time} 10000 {flag} 1

:SYN1_15210
367@ = 1

:SYN1_15217
if 
  367@ == 1
goto_if_false @SYN1_15455
if and
  not is_car_dead 377@
  not is_char_dead 376@
goto_if_false @SYN1_15455
if 
  368@ == 1
goto_if_false @SYN1_15377
if 
  38@ == 0
goto_if_false @SYN1_15370
if 
  is_char_in_car 376@ {vehicle} 377@
goto_if_false @SYN1_15368
if 
  $flag_syn1_skip2 == 1
goto_if_false @SYN1_15354
set_up_skip_for_specific_vehicle -2201.9121 {y} -2279.0359 {z} 29.4688 {heading} 230.5228 {handle} 377@

:SYN1_15354
38@ = 1
goto @SYN1_15370

:SYN1_15368
clear_skip 

:SYN1_15370
goto @SYN1_15386

:SYN1_15377
38@ = 0
clear_skip 

:SYN1_15386
if 
  not is_char_in_car $scplayer {vehicle} 377@
goto_if_false @SYN1_15455
if 
  368@ == 1
goto_if_false @SYN1_15448
remove_blip 51@
remove_blip 381@
381@ = add_blip_for_car 377@
set_blip_as_friendly 381@ {state} True

:SYN1_15448
367@ = 0

:SYN1_15455
return 

:SYN1_15457
if and
  not is_char_dead $scplayer
  not is_char_dead 376@
goto_if_false @SYN1_15792
if 
  368@ == 0
goto_if_false @SYN1_15660
if 
  not is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_15653
if 
  locate_char_any_means_char_3d $scplayer {target} 376@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN1_15646
if 
  367@ == 1
goto_if_false @SYN1_15595
remove_blip 51@
51@ = add_blip_for_coord 48@ {y} 49@ {z} 50@
goto @SYN1_15615

:SYN1_15595
remove_blip 381@
381@ = add_blip_for_car 377@
set_blip_as_friendly 381@ {state} True

:SYN1_15615
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} 376@
remove_blip 379@
42@ = 1
368@ = 1

:SYN1_15646
goto @SYN1_15660

:SYN1_15653
368@ = 1

:SYN1_15660
if 
  368@ == 1
goto_if_false @SYN1_15792
if 
  not is_group_member 376@ {handle} $Players_Group
goto_if_false @SYN1_15792
if 
  367@ == 1
goto_if_false @SYN1_15727
remove_blip 51@
goto @SYN1_15732

:SYN1_15727
remove_blip 381@

:SYN1_15732
clear_skip 
clear_prints 
379@ = add_blip_for_char 376@
set_blip_as_friendly 379@ {state} True
if 
  42@ == 1
goto_if_false @SYN1_15785
print_now 'SYN1_02' {time} 10000 {flag} 1

:SYN1_15785
368@ = 0

:SYN1_15792
return 

:SYN1_15794
if or
  334@ == 1
  334@ == 3
  334@ == 4
  334@ == 6
  334@ == 7
  334@ == 9
goto_if_false @SYN1_15854
148@ = 0

:SYN1_15854
if or
  334@ == 2
  334@ == 5
  334@ == 8
  334@ == 10
goto_if_false @SYN1_15901
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15901
if or
  334@ == 11
  334@ == 14
goto_if_false @SYN1_15934
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15934
if or
  334@ == 12
  334@ == 13
goto_if_false @SYN1_15966
148@ = 0

:SYN1_15966
if 
  334@ == 15
goto_if_false @SYN1_15992
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_15992
if 
  334@ == 16
goto_if_false @SYN1_16018
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16018
if or
  334@ == 17
  334@ == 19
  334@ == 22
  334@ == 23
  334@ == 25
  334@ == 26
goto_if_false @SYN1_16079
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16079
if or
  334@ == 18
  334@ == 20
  334@ == 21
  334@ == 24
  334@ == 27
  334@ == 28
goto_if_false @SYN1_16140
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16140
if or
  334@ == 29
  334@ == 30
  334@ == 32
  334@ == 34
goto_if_false @SYN1_16187
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16187
if or
  334@ == 31
  334@ == 33
  334@ == 35
goto_if_false @SYN1_16227
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16227
if or
  334@ == 36
  334@ == 37
  334@ == 38
  334@ == 39
  334@ == 40
  334@ == 41
goto_if_false @SYN1_16287
148@ = 0

:SYN1_16287
if or
  334@ == 42
  334@ == 43
  334@ == 44
  334@ == 45
  334@ == 46
goto_if_false @SYN1_16340
148@ = 0

:SYN1_16340
if or
  334@ == 47
  334@ == 48
  334@ == 50
  334@ == 52
goto_if_false @SYN1_16387
set_lvar_int_to_var_int 148@ = $scplayer

:SYN1_16387
if or
  334@ == 49
  334@ == 51
goto_if_false @SYN1_16420
set_lvar_int_to_lvar_int 148@ = 376@

:SYN1_16420
return 

//-------------Mission 59---------------
// Originally: Jizzy

:SYN2
script_name 'SYN2'
gosub @SYN2_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN2_38
gosub @SYN2_31186

:SYN2_38
gosub @SYN2_31357
terminate_this_script 

:SYN2_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0

:SYN2_84
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @SYN2_106
36@ = 1

:SYN2_106
38@ = get_game_timer 
set_lvar_int_to_lvar_int 40@ = 38@
sub_int_lvar_from_int_lvar 40@ -= 39@
set_lvar_int_to_lvar_int 39@ = 38@
add_int_lvar_to_int_lvar 73@ += 40@
add_int_lvar_to_int_lvar 80@ += 40@
add_int_lvar_to_int_lvar 81@ += 40@
add_int_lvar_to_int_lvar 54@ += 40@
add_int_lvar_to_int_lvar 87@ += 40@
add_int_lvar_to_int_lvar 89@ += 40@
add_int_lvar_to_int_lvar 55@ += 40@
add_int_lvar_to_int_lvar 278@ += 40@
wait 0
gosub @SYN2_546
switch_start 34@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @SYN2_464 {caseNum1} 0 {caseLabel1} @SYN2_338 {caseNum2} 1 {caseLabel2} @SYN2_352 {caseNum3} 2 {caseLabel3} @SYN2_366 {caseNum4} 3 {caseLabel4} @SYN2_380 {caseNum5} 4 {caseLabel5} @SYN2_394 {caseNum6} 5 {caseLabel6} @SYN2_408 {caseNum7} 6 {caseLabel7} @SYN2_422
switch_continued 7 {caseLabel1} @SYN2_436 {caseNum2} 8 {caseLabel2} @SYN2_450 {caseNum3} -1 {caseLabel3} @SYN2_464 {caseNum4} -1 {caseLabel4} @SYN2_464 {caseNum5} -1 {caseLabel5} @SYN2_464 {caseNum6} -1 {caseLabel6} @SYN2_464 {caseNum7} -1 {caseLabel7} @SYN2_464 {caseNum8} -1 {caseLabel8} @SYN2_464 {caseNum9} -1 {caseLabel9} @SYN2_464

:SYN2_338
gosub @SYN2_1239
goto @SYN2_464

:SYN2_352
gosub @SYN2_2839
goto @SYN2_464

:SYN2_366
gosub @SYN2_3180
goto @SYN2_464

:SYN2_380
gosub @SYN2_5407
goto @SYN2_464

:SYN2_394
gosub @SYN2_8607
goto @SYN2_464

:SYN2_408
gosub @SYN2_13932
goto @SYN2_464

:SYN2_422
gosub @SYN2_17769
goto @SYN2_464

:SYN2_436
gosub @SYN2_22631
goto @SYN2_464

:SYN2_450
gosub @SYN2_27298
goto @SYN2_464

:SYN2_464
gosub @SYN2_28607
if 
  37@ == 0
goto_if_false @SYN2_537
if 
  36@ == 0
goto_if_false @SYN2_521
goto @SYN2_84
goto @SYN2_530

:SYN2_521
gosub @SYN2_31204
return 

:SYN2_530
goto @SYN2_546

:SYN2_537
gosub @SYN2_31186
return 

:SYN2_546
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @SYN2_637
if 
  56@ == 0
goto_if_false @SYN2_611
56@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @SYN2_637

:SYN2_611
56@ = 0
write_debug "LEVEL_DEBUG_OFF"

:SYN2_637
if 
  56@ == 1
goto_if_false @SYN2_1237
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @SYN2_704
clear_all_view_variables 
57@ += 1
if 
  57@ > 3
goto_if_false @SYN2_704
57@ = 0

:SYN2_704
if 
  57@ == 1
goto_if_false @SYN2_940
set_var_int_to_lvar_int $syn2_view_debug = 34@
set_var_int_to_lvar_int $7292 = 35@
set_var_int_to_lvar_int $7293 = 205@
set_var_int_to_lvar_int $7294 = TIMERA
set_var_int_to_lvar_int $7295 = 280@
set_var_int_to_var_int $7296 = $audio_line_is_active
set_var_int_to_lvar_int $7297 = 54@
set_var_int_to_lvar_int $7298 = 247@
view_integer_variable $syn2_view_debug {_p2} "M_STAGE"
view_integer_variable $7292 {_p2} "M_GOALS"
view_integer_variable $7293 {_p2} "CONVOY_PROGRESS"
view_integer_variable $7294 {_p2} "TIMERA"
view_integer_variable $7295 {_p2} "ON_CUTSCENE_DUTY"
view_integer_variable $7296 {_p2} "AUDIO_LINE_IS_ACTIVE"
view_integer_variable $7297 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7298 {_p2} "DIALOGUE_FLAG"

:SYN2_940
if 
  57@ == 2
goto_if_false @SYN2_1153
set_var_int_to_var_int $syn2_view_debug = $syn2_mission_attempts
set_var_int_to_lvar_int $7292 = 254@
set_var_int_to_lvar_int $7293 = 253@
set_var_int_to_lvar_int $7294 = 250@
set_var_int_to_var_int $7295 = $syn2_time_until_backup
set_var_int_to_lvar_int $7296 = TIMERB
view_integer_variable $syn2_view_debug {_p2} "SYN2_MISSION_ATTEMPTS"
view_integer_variable $7292 {_p2} "THIS_CAR_HEALTH"
view_integer_variable $7293 {_p2} "LAST_CAR_HEALTH"
view_integer_variable $7294 {_p2} "PLAYER_HAS_ATTACKED_CONVOY"
view_integer_variable $7295 {_p2} "SYN2_TIME_UNTIL_BACKUP"
view_integer_variable $7296 {_p2} "TIMERB"

:SYN2_1153
if 
  57@ == 3
goto_if_false @SYN2_1237
set_var_int_to_lvar_int $syn2_view_debug = 81@
set_var_float_to_lvar_float $7288 = 266@
view_integer_variable $syn2_view_debug {_p2} "RICH_BACKUP_TIMER"
view_float_variable $7288 {_p2} "LIMO_PLAYBACK_SPEED"

:SYN2_1237
return 

:SYN2_1239
if 
  35@ == -1
goto_if_false @SYN2_1257

:SYN2_1257
if 
  35@ == 0
goto_if_false @SYN2_2711
205@ = 0
91@ = -1863.88
129@ = 727.851
167@ = 44.0619
92@ = -1816.793
130@ = 727.1199
168@ = 36.4934
93@ = -1717.459
131@ = 729.5344
169@ = 24.6517
94@ = -1709.842
132@ = 829.3579
170@ = 24.6505
95@ = -1663.017
133@ = 917.9272
171@ = 24.5226
96@ = -1563.886
134@ = 916.7482
172@ = 6.9176
97@ = -1573.613
135@ = 1016.918
173@ = 6.9562
98@ = -1585.455
136@ = 1116.871
174@ = 6.9488
99@ = -1608.572
137@ = 1214.641
175@ = 6.9488
100@ = -1678.017
138@ = 1287.1169
176@ = 6.9487
101@ = -1752.399
139@ = 1354.989
177@ = 6.9473
102@ = -1852.1379
140@ = 1364.54
178@ = 6.9488
103@ = -1938.24
141@ = 1312.347
179@ = 6.9538
104@ = -2037.692
142@ = 1298.774
180@ = 7.1712
105@ = -2135.241
143@ = 1279.317
181@ = 22.4081
106@ = -2234.502
144@ = 1276.24
182@ = 39.3992
107@ = -2265.7429
145@ = 1182.441
183@ = 55.4933
108@ = -2266.2891
146@ = 1085.145
184@ = 79.748
109@ = -2267.604
147@ = 984.6959
185@ = 73.0856
110@ = -2268.9951
148@ = 884.5173
186@ = 66.4014
111@ = -2333.293
149@ = 811.5989
187@ = 42.8954
112@ = -2390.365
150@ = 729.2283
188@ = 34.9301
113@ = -2489.3589
151@ = 711.0146
189@ = 34.9302
114@ = -2589.5071
152@ = 712.4084
190@ = 27.7727
115@ = -2689.8579
153@ = 710.8961
191@ = 32.4395
116@ = -2753.054
154@ = 633.015
192@ = 27.6617
117@ = -2744.792
155@ = 534.2344
193@ = 11.9062
118@ = -2707.741
156@ = 441.3501
194@ = 4.0892
119@ = -2751.387
157@ = 351.2291
195@ = 4.0969
120@ = -2707.8999
158@ = 261.1717
196@ = 4.0968
121@ = -2711.886
159@ = 161.0435
197@ = 4.0971
122@ = -2809.189
160@ = 137.7394
198@ = 6.9555
123@ = -2811.9089
161@ = 36.8614
199@ = 6.9488
124@ = -2811.4031
162@ = -63.2554
200@ = 6.9488
125@ = -2811.2791
163@ = -164.2748
201@ = 6.9381
126@ = -2811.6011
164@ = -264.5668
202@ = 6.9488
127@ = -2820.2041
165@ = -364.2359
203@ = 6.9488
128@ = -2818.2671
166@ = -465.0786
204@ = 6.9941
206@ = -2428.2319
214@ = -164.7728
222@ = 34.3085
207@ = -2433.5601
215@ = -164.504
223@ = 34.3446
208@ = -2452.7529
216@ = -165.8061
224@ = 34.3047
209@ = -2469.136
217@ = -165.8884
225@ = 24.9573
210@ = -2469.616
218@ = -162.4438
226@ = 24.6236
211@ = -2463.0061
219@ = -162.4879
227@ = 24.9077
212@ = -2460.374
220@ = -134.7403
228@ = 24.8394
213@ = -2478.115
221@ = -129.3914
229@ = 24.625
78@ = 0
79@ = 0
80@ = 0
84@ = 0
86@ = 0
90@ = 0
35@ += 1

:SYN2_2711
if 
  35@ == 1
goto_if_false @SYN2_2763
load_mission_text 'SYN2'
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:SYN2_2763
if 
  35@ == 2
goto_if_false @SYN2_2805
set_wanted_multiplier 0.5
suppress_car_model 575
suppress_car_model 545
35@ = 99

:SYN2_2805
if 
  35@ == 99
goto_if_false @SYN2_2837
34@ += 1
35@ = 0

:SYN2_2837
return 

:SYN2_2839
if 
  35@ == 0
goto_if_false @SYN2_2903
if 
  $syn2_mission_attempts <> 0
goto_if_false @SYN2_2896
34@ += 1
35@ = 0
goto @SYN2_2903

:SYN2_2896
35@ += 1

:SYN2_2903
if 
  35@ == 1
goto_if_false @SYN2_3153
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SYN2_2935
if 
  get_fading_status 
goto_if_false @SYN2_2959
wait 0
goto @SYN2_2935

:SYN2_2959
set_area_visible 1
load_cutscene 'SYND_2A'

:SYN2_2974
if 
  not has_cutscene_loaded 
goto_if_false @SYN2_2998
wait 0
goto @SYN2_2974

:SYN2_2998
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYN2_3007
if 
  not has_cutscene_finished 
goto_if_false @SYN2_3031
wait 0
goto @SYN2_3007

:SYN2_3031
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SYN2_3046
if 
  get_fading_status 
goto_if_false @SYN2_3070
wait 0
goto @SYN2_3046

:SYN2_3070
set_area_visible 0
set_char_coordinates $scplayer {x} -2031.254 {y} 161.408 {z} 28.0391
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:SYN2_3115
if 
  get_fading_status 
goto_if_false @SYN2_3139
wait 0
goto @SYN2_3115

:SYN2_3139
set_player_control $player1 {state} True
35@ = 99

:SYN2_3153
if 
  35@ == 99
goto_if_false @SYN2_3178
36@ = 1

:SYN2_3178
return 

:SYN2_3180
if 
  35@ == 0
goto_if_false @SYN2_3376
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SYN2_3212
if 
  get_fading_status 
goto_if_false @SYN2_3236
wait 0
goto @SYN2_3212

:SYN2_3236
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_area_visible 3
load_cutscene 'SYND_2B'

:SYN2_3262
if 
  not has_cutscene_loaded 
goto_if_false @SYN2_3286
wait 0
goto @SYN2_3262

:SYN2_3286
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYN2_3295
if 
  not has_cutscene_finished 
goto_if_false @SYN2_3319
wait 0
goto @SYN2_3295

:SYN2_3319
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SYN2_3334
if 
  get_fading_status 
goto_if_false @SYN2_3358
wait 0
goto @SYN2_3334

:SYN2_3358
set_area_visible 0
set_player_control $player1 {state} False
35@ += 1

:SYN2_3376
if 
  35@ == 1
goto_if_false @SYN2_3907
request_model 575
request_model 64
load_special_character 1 {modelName} 'JIZZY'
request_animation "GANGS"
load_all_models_now 

:SYN2_3427
if or
  not has_model_loaded 575
  not has_model_loaded 64
  not has_special_character_loaded 1
  not has_animation_loaded "GANGS"
goto_if_false @SYN2_3471
wait 0
goto @SYN2_3427

:SYN2_3471
request_model 330
request_animation "CAR_CHAT"

:SYN2_3488
if or
  not has_model_loaded 330
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN2_3527
wait 0
goto @SYN2_3488

:SYN2_3527
231@ = load_char_decision_maker DecisionMakerType.Empty
232@ = load_char_decision_maker DecisionMakerType.Tough
clear_area -2623.3589 {y} 1410.786 {z} 6.1629 {radius} 20.0 {clearParticles} True
58@ = create_char PedType.CivMale {modelId} 290 {x} -2623.3589 {y} 1410.786 {z} 6.1629
set_char_heading 58@ {heading} 192.3576
set_char_coordinates $scplayer {x} -2622.5459 {y} 1410.95 {z} 6.1702
set_char_heading $scplayer {heading} 199.6292
custom_plate_for_next_car 575 {text} "HO_2_HO_"
59@ = create_car 575 {x} -2625.449 {y} 1401.681 {z} 6.0877
set_car_heading 59@ {heading} 188.0679
set_car_health 59@ {health} 3000
change_car_colour 59@ {color1} 123 {color2} 5
set_car_hydraulics 59@ {state} False
67@ = create_char_as_passenger 59@ {pedType} PedType.Prostitute {modelId} 64 {seat} SeatId.BikeRear
set_char_get_out_upside_down_car 67@ {state} False
set_char_cant_be_dragged_out 67@ {state} True
set_char_suffers_critical_hits 67@ {state} False
set_char_never_targetted 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 231@
mark_model_as_no_longer_needed 64
set_can_burst_car_tyres 59@ {state} False
61@ = add_blip_for_car 59@
set_blip_as_friendly 61@ {state} True
set_near_clip 0.1
switch_widescreen True
set_fixed_camera_position -2622.918 {y} 1410.891 {z} 7.0207 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2622.9209 {y} 1409.891 {z} 6.9998 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -2618.0 {y} 1396.0 {z} 7.0 {heading} 211.0
do_fade 1000 {direction} Fade.In

:SYN2_3869
if 
  get_fading_status 
goto_if_false @SYN2_3893
wait 0
goto @SYN2_3869

:SYN2_3893
35@ += 1
TIMERB = 0

:SYN2_3907
if and
  35@ > 1
  7 > 35@
goto_if_false @SYN2_3956
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_3956
35@ = 7

:SYN2_3956
if 
  35@ == 2
goto_if_false @SYN2_4047
if 
  not is_char_dead 58@
goto_if_false @SYN2_4015
task_go_straight_to_coord 58@ {x} -2623.4221 {y} 1404.91 {z} 6.1537 {speed} MoveState.Walk {time} 15000

:SYN2_4015
task_go_straight_to_coord $scplayer {x} -2622.127 {y} 1405.6331 {z} 6.1587 {speed} MoveState.Walk {time} 15000
35@ += 1

:SYN2_4047
if 
  35@ == 3
goto_if_false @SYN2_4124
if 
  not is_char_dead 58@
goto_if_false @SYN2_4124
41@ = get_script_task_status 58@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_4124
TIMERA = 0
35@ += 1

:SYN2_4124
if 
  35@ == 4
goto_if_false @SYN2_4616
set_fixed_camera_position -2621.697 {y} 1403.493 {z} 7.8087 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2622.574 {y} 1403.047 {z} 7.6296 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 58@
goto_if_false @SYN2_4239
set_char_coordinates 58@ {x} -2624.0491 {y} 1402.8879 {z} 6.1406
set_char_heading 58@ {heading} 248.4552

:SYN2_4239
set_char_coordinates $scplayer {x} -2622.9741 {y} 1402.177 {z} 6.1322
set_char_heading $scplayer {heading} 86.0103
if 
  not is_char_dead 58@
goto_if_false @SYN2_4602
53@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@
perform_sequence_task 58@ {sequence} 53@
clear_sequence_task 53@

:SYN2_4602
TIMERA = 0
35@ += 1

:SYN2_4616
if 
  35@ == 5
goto_if_false @SYN2_4707
if 
  247@ > 6
goto_if_false @SYN2_4707
if 
  not is_char_dead 58@
goto_if_false @SYN2_4707
task_go_straight_to_coord 58@ {x} -2623.3589 {y} 1410.786 {z} 6.1629 {speed} MoveState.Walk {time} 15000
TIMERA = 0
35@ += 1

:SYN2_4707
if 
  35@ == 6
goto_if_false @SYN2_4758
if and
  TIMERA > 1500
  247@ > 6
goto_if_false @SYN2_4758
35@ += 1

:SYN2_4758
if and
  35@ > 1
  7 > 35@
goto_if_false @SYN2_5246
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_5246
if 
  54@ > 1000
goto_if_false @SYN2_5246
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_5239 {caseNum1} 0 {caseLabel1} @SYN2_4883 {caseNum2} 1 {caseLabel2} @SYN2_4940 {caseNum3} 2 {caseLabel3} @SYN2_4997 {caseNum4} 3 {caseLabel4} @SYN2_5054 {caseNum5} 4 {caseLabel5} @SYN2_5111 {caseNum6} 5 {caseLabel6} @SYN2_5168 {caseNum7} 6 {caseLabel7} @SYN2_5225

:SYN2_4883
set_var_text_label s$audio_string = 'SYN2_BA'
set_var_int_to_constant $audio_sound_file = 39004
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5239

:SYN2_4940
set_var_text_label s$audio_string = 'SYN2_BB'
set_var_int_to_constant $audio_sound_file = 39005
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5239

:SYN2_4997
set_var_text_label s$audio_string = 'SYN2_BC'
set_var_int_to_constant $audio_sound_file = 39006
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5239

:SYN2_5054
set_var_text_label s$audio_string = 'SYN2_BD'
set_var_int_to_constant $audio_sound_file = 39007
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5239

:SYN2_5111
set_var_text_label s$audio_string = 'SYN2_BE'
set_var_int_to_constant $audio_sound_file = 39008
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5239

:SYN2_5168
set_var_text_label s$audio_string = 'SYN2_BF'
set_var_int_to_constant $audio_sound_file = 39009
start_new_script @AUDIOL 58@ 0 1 1 0 
247@ += 1
goto @SYN2_5239

:SYN2_5225
247@ += 1
goto @SYN2_5239

:SYN2_5239
54@ = 0

:SYN2_5246
if 
  35@ == 7
goto_if_false @SYN2_5373
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
if 
  not is_char_dead 58@
goto_if_false @SYN2_5303
delete_char 58@

:SYN2_5303
remove_animation "GANGS"
unload_special_character 1
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2622.9741 {y} 1402.177 {z} 6.1322
set_char_heading $scplayer {heading} 86.0103
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
35@ = 99

:SYN2_5373
if 
  35@ == 99
goto_if_false @SYN2_5405
35@ = 0
34@ += 1

:SYN2_5405
return 

:SYN2_5407
if 
  35@ == -1
goto_if_false @SYN2_5445
60@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:SYN2_5445
if 
  35@ == 0
goto_if_false @SYN2_5517
65@ = 0
66@ = 0
$syn2_timer = 540000
print_now 'SYN2_37' {time} 7000 {flag} 1
TIMERA = 0
35@ += 1

:SYN2_5517
if 
  35@ == 1
goto_if_false @SYN2_5728
if 
  not is_car_dead 59@
goto_if_false @SYN2_5684
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_5684
remove_blip 61@
60@ = add_blip_for_coord -1929.954 {y} 724.0631 {z} 44.3047
print_now 'SYN2_01' {time} 7000 {flag} 1
request_model 352

:SYN2_5616
if 
  not has_model_loaded 352
goto_if_false @SYN2_5643
wait 0
goto @SYN2_5616

:SYN2_5643
ensure_player_has_drive_by_weapon $player1 {ammo} 250
mark_model_as_no_longer_needed 352
280@ = -1
TIMERA = 0
65@ = 0
35@ += 1

:SYN2_5684
if 
  TIMERA > 60000
goto_if_false @SYN2_5728
print_now 'SYN2_37' {time} 7000 {flag} 1
TIMERA = 0

:SYN2_5728
if 
  35@ > 1
goto_if_false @SYN2_5833
if 
  does_blip_exist 61@
goto_if_false @SYN2_5790
if 
  does_blip_exist 60@
goto_if_false @SYN2_5783
remove_blip 60@

:SYN2_5783
goto @SYN2_5833

:SYN2_5790
if 
  not does_blip_exist 60@
goto_if_false @SYN2_5833
60@ = add_blip_for_coord -1929.954 {y} 724.0631 {z} 44.3047
change_blip_colour 60@ {color} BlipColor.Yellow

:SYN2_5833
if 
  35@ == 2
goto_if_false @SYN2_7007
if 
  does_blip_exist 60@
goto_if_false @SYN2_6008
if 
  not is_car_dead 59@
goto_if_false @SYN2_6008
if 
  locate_car_3d 59@ {x} -1929.954 {y} 724.0631 {z} 44.3047 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN2_6008
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_6008
if 
  is_vehicle_on_all_wheels 59@
goto_if_false @SYN2_6008
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
set_player_control $player1 {state} False
remove_blip 60@
35@ += 1

:SYN2_6008
if 
  56@ == 1
goto_if_false @SYN2_6063
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_6063
set_char_coordinates $scplayer {x} -1929.954 {y} 724.0631 {z} 44.3047

:SYN2_6063
if 
  8 > 65@
goto_if_false @SYN2_6824
if 
  not is_message_being_displayed 
goto_if_false @SYN2_6824
if 
  not is_char_dead 67@
goto_if_false @SYN2_6824
if 
  not is_car_dead 59@
goto_if_false @SYN2_6824
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_6824
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_6824
if 
  54@ > 1000
goto_if_false @SYN2_6824
switch_start 65@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_6824 {caseNum1} 0 {caseLabel1} @SYN2_6310 {caseNum2} 1 {caseLabel2} @SYN2_6375 {caseNum3} 2 {caseLabel3} @SYN2_6440 {caseNum4} 3 {caseLabel4} @SYN2_6504 {caseNum5} 4 {caseLabel5} @SYN2_6568 {caseNum6} 5 {caseLabel6} @SYN2_6632 {caseNum7} 6 {caseLabel7} @SYN2_6696
switch_continued 7 {caseLabel1} @SYN2_6760 {caseNum2} -1 {caseLabel2} @SYN2_6824 {caseNum3} -1 {caseLabel3} @SYN2_6824 {caseNum4} -1 {caseLabel4} @SYN2_6824 {caseNum5} -1 {caseLabel5} @SYN2_6824 {caseNum6} -1 {caseLabel6} @SYN2_6824 {caseNum7} -1 {caseLabel7} @SYN2_6824 {caseNum8} -1 {caseLabel8} @SYN2_6824 {caseNum9} -1 {caseLabel9} @SYN2_6824

:SYN2_6310
set_var_text_label s$audio_string = 'SYN2_LM'
set_var_int_to_constant $audio_sound_file = 39070
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = -4000
65@ += 1
goto @SYN2_6824

:SYN2_6375
set_var_text_label s$audio_string = 'SYN2_LN'
set_var_int_to_constant $audio_sound_file = 39071
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = -2000
65@ += 1
goto @SYN2_6824

:SYN2_6440
set_var_text_label s$audio_string = 'SYN2_LO'
set_var_int_to_constant $audio_sound_file = 39072
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6824

:SYN2_6504
set_var_text_label s$audio_string = 'SYN2_LP'
set_var_int_to_constant $audio_sound_file = 39073
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6824

:SYN2_6568
set_var_text_label s$audio_string = 'SYN2_LQ'
set_var_int_to_constant $audio_sound_file = 39074
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6824

:SYN2_6632
set_var_text_label s$audio_string = 'SYN2_LR'
set_var_int_to_constant $audio_sound_file = 39075
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6824

:SYN2_6696
set_var_text_label s$audio_string = 'SYN2_LS'
set_var_int_to_constant $audio_sound_file = 39076
start_new_script @AUDIOL $scplayer 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6824

:SYN2_6760
set_var_text_label s$audio_string = 'SYN2_LT'
set_var_int_to_constant $audio_sound_file = 39077
start_new_script @AUDIOL 67@ 0 1 1 0 
54@ = 0
65@ += 1
goto @SYN2_6824

:SYN2_6824
if 
  280@ == -1
goto_if_false @SYN2_6876
if 
  TIMERA > 7000
goto_if_false @SYN2_6876
280@ = 0
73@ = 30000

:SYN2_6876
if 
  280@ == 0
goto_if_false @SYN2_7007
if 
  not is_car_dead 59@
goto_if_false @SYN2_7007
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_6978
if 
  73@ > 30000
goto_if_false @SYN2_6971
print_now 'SYN_M_1' {time} 5000 {flag} 1
73@ = 0

:SYN2_6971
goto @SYN2_7007

:SYN2_6978
if 
  30000 > 73@
goto_if_false @SYN2_7007
clear_prints 
73@ = 30000

:SYN2_7007
if 
  35@ == 3
goto_if_false @SYN2_7064
if 
  not is_car_dead 59@
goto_if_false @SYN2_7064
if 
  is_car_stopped 59@
goto_if_false @SYN2_7064
35@ += 1

:SYN2_7064
if 
  35@ == 4
goto_if_false @SYN2_7341
283@ = -1
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position -1941.845 {y} 731.7922 {z} 45.4219 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1940.973 {y} 731.3325 {z} 45.5894 {switchStyle} SwitchType.JumpCut
clear_area -1924.954 {y} 724.0631 {z} 44.3047 {radius} 20.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
if 
  not is_char_dead 67@
goto_if_false @SYN2_7277
53@ = open_sequence_task 
if 
  not is_car_dead 59@
goto_if_false @SYN2_7235
task_leave_car -1 {vehicle} 59@

:SYN2_7235
task_go_straight_to_coord -1 {x} -1921.505 {y} 719.3201 {z} 44.4375 {speed} MoveState.Walk {time} 20000
close_sequence_task 53@
perform_sequence_task 67@ {sequence} 53@
clear_sequence_task 53@

:SYN2_7277
TIMERA = 0
TIMERB = 0
set_var_text_label s$audio_string = 'SYN2_LU'
set_var_int_to_constant $audio_sound_file = 39078
start_new_script @AUDIOL 67@ 0 1 1 0 
35@ += 1

:SYN2_7341
if 
  35@ == 5
goto_if_false @SYN2_7420
if and
  TIMERA > 1000
  $audio_line_is_active == 0
goto_if_false @SYN2_7420
247@ = 0
54@ = 0
TIMERB = 0
TIMERA = 0
35@ += 1

:SYN2_7420
if and
  35@ > 5
  99 > 35@
goto_if_false @SYN2_8102
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_8102
if 
  54@ > 1000
goto_if_false @SYN2_8102
switch_start 247@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_8095 {caseNum1} 0 {caseLabel1} @SYN2_7610 {caseNum2} 1 {caseLabel2} @SYN2_7680 {caseNum3} 2 {caseLabel3} @SYN2_7749 {caseNum4} 3 {caseLabel4} @SYN2_7818 {caseNum5} 4 {caseLabel5} @SYN2_7887 {caseNum6} 5 {caseLabel6} @SYN2_7956 {caseNum7} 6 {caseLabel7} @SYN2_8025
switch_continued 7 {caseLabel1} @SYN2_8081 {caseNum2} -1 {caseLabel2} @SYN2_8095 {caseNum3} -1 {caseLabel3} @SYN2_8095 {caseNum4} -1 {caseLabel4} @SYN2_8095 {caseNum5} -1 {caseLabel5} @SYN2_8095 {caseNum6} -1 {caseLabel6} @SYN2_8095 {caseNum7} -1 {caseLabel7} @SYN2_8095 {caseNum8} -1 {caseLabel8} @SYN2_8095 {caseNum9} -1 {caseLabel9} @SYN2_8095

:SYN2_7610
set_var_text_label s$audio_string = 'SYN2_CA'
set_var_int_to_constant $audio_sound_file = 39010
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39011
247@ += 1
goto @SYN2_8095

:SYN2_7680
set_var_text_label s$audio_string = 'SYN2_CB'
set_var_int_to_constant $audio_sound_file = 39011
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39012
247@ += 1
goto @SYN2_8095

:SYN2_7749
set_var_text_label s$audio_string = 'SYN2_CC'
set_var_int_to_constant $audio_sound_file = 39012
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39013
247@ += 1
goto @SYN2_8095

:SYN2_7818
set_var_text_label s$audio_string = 'SYN2_CD'
set_var_int_to_constant $audio_sound_file = 39013
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39014
247@ += 1
goto @SYN2_8095

:SYN2_7887
set_var_text_label s$audio_string = 'SYN2_CE'
set_var_int_to_constant $audio_sound_file = 39014
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39015
247@ += 1
goto @SYN2_8095

:SYN2_7956
set_var_text_label s$audio_string = 'SYN2_CF'
set_var_int_to_constant $audio_sound_file = 39015
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39016
247@ += 1
goto @SYN2_8095

:SYN2_8025
set_var_text_label s$audio_string = 'SYN2_CG'
set_var_int_to_constant $audio_sound_file = 39016
start_new_script @AUDIOL -1 0 1 1 1 
247@ += 1
goto @SYN2_8095

:SYN2_8081
247@ += 1
goto @SYN2_8095

:SYN2_8095
54@ = 0

:SYN2_8102
if 
  35@ == 6
goto_if_false @SYN2_8205
if 
  TIMERA > 4000
goto_if_false @SYN2_8153
35@ += 1
goto @SYN2_8205

:SYN2_8153
if 
  not is_char_dead 67@
goto_if_false @SYN2_8205
41@ = get_script_task_status 67@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_8205
35@ += 1

:SYN2_8205
if 
  35@ == 7
goto_if_false @SYN2_8371
set_fixed_camera_position -1919.135 {y} 714.1419 {z} 46.9459 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1919.694 {y} 714.9576 {z} 46.7967 {switchStyle} SwitchType.JumpCut
set_near_clip 0.01
if 
  not is_char_dead 67@
goto_if_false @SYN2_8357
clear_char_tasks_immediately 67@
set_char_coordinates 67@ {x} -1920.479 {y} 716.6052 {z} 45.6103
set_char_heading 67@ {heading} 190.583
task_go_straight_to_coord 67@ {x} -1919.606 {y} 712.0557 {z} 45.6103 {speed} MoveState.Walk {time} 20000

:SYN2_8357
TIMERA = 0
35@ += 1

:SYN2_8371
if and
  35@ > 4
  TIMERB > 3000
goto_if_false @SYN2_8421
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_8421
35@ = 99

:SYN2_8421
if 
  35@ == 8
goto_if_false @SYN2_8486
if 
  TIMERA > 3000
goto_if_false @SYN2_8486
279@ = 0
gosub @SYN2_29128
TIMERA = 0
35@ += 1

:SYN2_8486
if 
  35@ == 9
goto_if_false @SYN2_8537
if and
  TIMERA > 4000
  247@ > 7
goto_if_false @SYN2_8537
35@ = 99

:SYN2_8537
if 
  35@ == 99
goto_if_false @SYN2_8605
gosub @SYN2_31023
remove_blip 61@
remove_blip 60@
delete_char 67@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
34@ += 1
35@ = 0

:SYN2_8605
return 

:SYN2_8607
if 
  35@ == 0
goto_if_false @SYN2_9192
$girl2_timer = 120000
60@ = add_blip_for_coord -2427.918 {y} -133.4192 {z} 34.3525
change_blip_colour 60@ {color} BlipColor.Yellow
print_now 'SYN2_06' {time} 10000 {flag} 1
display_onscreen_timer $girl2_timer {direction} TimerDirection.Down
request_model 237
request_model 249
request_model 545
request_model 346

:SYN2_8705
if or
  not has_model_loaded 237
  not has_model_loaded 249
  not has_model_loaded 545
  not has_model_loaded 346
goto_if_false @SYN2_8747
wait 0
goto @SYN2_8705

:SYN2_8747
load_mission_audio MissionAudioSlot.Slot3 {audioId} 20600

:SYN2_8754
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN2_8780
wait 0
goto @SYN2_8754

:SYN2_8780
71@ = create_char PedType.CivMale {modelId} 249 {x} -2427.918 {y} -133.4192 {z} 34.3525
set_char_heading 71@ {heading} 143.0822
set_char_decision_maker 71@ {handleOrTemplate} 231@
set_char_only_damaged_by_player 71@ {state} True
set_char_max_health 71@ {maxHealth} 300
set_char_health 71@ {health} 300
68@ = create_char PedType.CivFemale {modelId} 237 {x} -2428.9541 {y} -134.24 {z} 34.3525
set_char_heading 68@ {heading} 359.5201
set_char_only_damaged_by_player 68@ {state} True
set_char_decision_maker 68@ {handleOrTemplate} 231@
set_char_only_damaged_by_player 68@ {state} True
set_char_never_targetted 68@ {state} True
77@ = create_car 545 {x} -2481.0591 {y} -126.9303 {z} 24.625
set_car_heading 77@ {heading} 102.8779
set_car_health 77@ {health} 600
task_look_at_char 71@ {target} 68@ {time} -2
53@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2430.0439 {y} -133.1959 {z} 34.3525 {speed} MoveState.Walk {time} 10000
task_turn_char_to_face_char -1 {target} 68@
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} -2429.9761 {y} -135.4876 {z} 34.3525 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} -2428.1621 {y} -135.4792 {z} 34.3525 {speed} MoveState.Walk {time} 10000
task_go_straight_to_coord -1 {x} -2427.918 {y} -133.4192 {z} 34.3525 {speed} MoveState.Walk {time} 10000
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
switch_ped_roads_off -2431.115 {leftBottomY} -169.4874 {leftBottomZ} 33.0 {rightTopX} -2426.5129 {rightTopY} -117.2969 {rightTopZ} 36.0
task_stay_in_same_place 68@ {state} True
task_look_at_char 68@ {target} 71@ {time} -2
233@ = 0
35@ += 1

:SYN2_9192
if 
  35@ == 1
goto_if_false @SYN2_10548
if 
  not is_char_dead 71@
goto_if_false @SYN2_10132
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_10132
if 
  54@ > 1000
goto_if_false @SYN2_10132
if 
  not locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SYN2_9719
switch_start 233@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_9704 {caseNum1} 0 {caseLabel1} @SYN2_9362 {caseNum2} 1 {caseLabel2} @SYN2_9419 {caseNum3} 2 {caseLabel3} @SYN2_9476 {caseNum4} 3 {caseLabel4} @SYN2_9533 {caseNum5} 4 {caseLabel5} @SYN2_9590 {caseNum6} 5 {caseLabel6} @SYN2_9647 {caseNum7} -1 {caseLabel7} @SYN2_9704

:SYN2_9362
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 39063
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9704

:SYN2_9419
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 39064
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9704

:SYN2_9476
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 39065
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9704

:SYN2_9533
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 39066
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9704

:SYN2_9590
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 39067
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_9704

:SYN2_9647
set_var_text_label s$audio_string = 'DUMMY'
set_var_int_to_constant $audio_sound_file = 39068
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ = 0
goto @SYN2_9704

:SYN2_9704
54@ = -4000
goto @SYN2_10132

:SYN2_9719
switch_start 233@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_10124 {caseNum1} 0 {caseLabel1} @SYN2_9782 {caseNum2} 1 {caseLabel2} @SYN2_9839 {caseNum3} 2 {caseLabel3} @SYN2_9896 {caseNum4} 3 {caseLabel4} @SYN2_9953 {caseNum5} 4 {caseLabel5} @SYN2_10010 {caseNum6} 5 {caseLabel6} @SYN2_10067 {caseNum7} -1 {caseLabel7} @SYN2_10124

:SYN2_9782
set_var_text_label s$audio_string = 'SYN2_LF'
set_var_int_to_constant $audio_sound_file = 39063
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10124

:SYN2_9839
set_var_text_label s$audio_string = 'SYN2_LG'
set_var_int_to_constant $audio_sound_file = 39064
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10124

:SYN2_9896
set_var_text_label s$audio_string = 'SYN2_LH'
set_var_int_to_constant $audio_sound_file = 39065
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10124

:SYN2_9953
set_var_text_label s$audio_string = 'SYN2_LI'
set_var_int_to_constant $audio_sound_file = 39066
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10124

:SYN2_10010
set_var_text_label s$audio_string = 'SYN2_LJ'
set_var_int_to_constant $audio_sound_file = 39067
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ += 1
goto @SYN2_10124

:SYN2_10067
set_var_text_label s$audio_string = 'SYN2_LK'
set_var_int_to_constant $audio_sound_file = 39068
start_new_script @AUDIOL 71@ 1 1 1 0 
233@ = 0
goto @SYN2_10124

:SYN2_10124
54@ = -4000

:SYN2_10132
if 
  56@ == 1
goto_if_false @SYN2_10187
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_10187
set_char_coordinates $scplayer {x} -2421.1819 {y} -15.8972 {z} 34.1601

:SYN2_10187
if 
  is_char_on_foot $scplayer
goto_if_false @SYN2_10281
if 
  not is_char_dead 71@
goto_if_false @SYN2_10274
if 
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN2_10274
35@ += 1
clear_onscreen_timer $girl2_timer
goto @SYN2_10548

:SYN2_10274
goto @SYN2_10352

:SYN2_10281
if 
  not is_char_dead 71@
goto_if_false @SYN2_10352
if 
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_10352
35@ += 1
clear_onscreen_timer $girl2_timer
goto @SYN2_10548

:SYN2_10352
if 
  not is_char_dead 71@
goto_if_false @SYN2_10406
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @SYN2_10406
35@ += 1
clear_onscreen_timer $girl2_timer
goto @SYN2_10548

:SYN2_10406
if 
  not is_char_dead 71@
goto_if_false @SYN2_10460
if 
  is_player_targetting_char $player1 {handle} 71@
goto_if_false @SYN2_10460
35@ += 1
clear_onscreen_timer $girl2_timer
goto @SYN2_10548

:SYN2_10460
if 
  is_char_dead 71@
goto_if_false @SYN2_10495
35@ += 1
clear_onscreen_timer $girl2_timer
goto @SYN2_10548

:SYN2_10495
if 
  0 >= $girl2_timer
goto_if_false @SYN2_10548
clear_onscreen_timer $girl2_timer
gosub @SYN2_31023
print_now 'SYN_F_6' {time} 5000 {flag} 1
37@ = 1

:SYN2_10548
if 
  35@ == 2
goto_if_false @SYN2_10719
if 
  not is_char_dead 68@
goto_if_false @SYN2_10625
set_var_text_label s$audio_string = 'SYN2_LA'
set_var_int_to_constant $audio_sound_file = 39058
start_new_script @AUDIOL 68@ 0 1 1 0 

:SYN2_10625
remove_blip 60@
if 
  not is_char_dead 71@
goto_if_false @SYN2_10675
give_weapon_to_char 71@ {weaponType} WeaponType.Pistol {ammo} 9999
64@ = add_blip_for_char 71@
task_look_at_char 71@ {target} $scplayer {time} 3000

:SYN2_10675
if 
  not is_char_dead 71@
goto_if_false @SYN2_10712
TIMERA = 0
35@ += 1
goto @SYN2_10719

:SYN2_10712
35@ += 1

:SYN2_10719
if 
  35@ == 3
goto_if_false @SYN2_11224
if 
  not is_char_dead 71@
goto_if_false @SYN2_11210
if and
  TIMERA > 1000
  $audio_line_is_active == 0
goto_if_false @SYN2_11203
if 
  not is_char_dead 68@
goto_if_false @SYN2_11203
clear_char_tasks 71@
clear_char_tasks 68@
clear_look_at 68@
230@ = 0
41@ = generate_random_int_in_range 0 {max} 4
switch_start 41@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SYN2_11089 {caseNum1} 0 {caseLabel1} @SYN2_10889 {caseNum2} 1 {caseLabel2} @SYN2_10939 {caseNum3} 2 {caseLabel3} @SYN2_10989 {caseNum4} 3 {caseLabel4} @SYN2_11039 {caseNum5} -1 {caseLabel5} @SYN2_11089 {caseNum6} -1 {caseLabel6} @SYN2_11089 {caseNum7} -1 {caseLabel7} @SYN2_11089

:SYN2_10889
set_var_text_label s$audio_string = 'SYN2_LB'
set_var_int_to_constant $audio_sound_file = 39059
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11089

:SYN2_10939
set_var_text_label s$audio_string = 'SYN2_LC'
set_var_int_to_constant $audio_sound_file = 39060
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11089

:SYN2_10989
set_var_text_label s$audio_string = 'SYN2_LD'
set_var_int_to_constant $audio_sound_file = 39061
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11089

:SYN2_11039
set_var_text_label s$audio_string = 'SYN2_LE'
set_var_int_to_constant $audio_sound_file = 39062
start_new_script @AUDIOL 71@ 0 1 1 0 
goto @SYN2_11089

:SYN2_11089
set_char_accuracy 71@ {accuracy} 90
set_char_shoot_rate 71@ {rate} 100
53@ = open_sequence_task 
task_shoot_at_char -1 {target} $scplayer {time} 3000
task_go_straight_to_coord -1 {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {speed} MoveState.Sprint {time} 9999999
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
234@ = 0
gosub @SYN2_29024
235@ = 0
TIMERA = 0
35@ += 1

:SYN2_11203
goto @SYN2_11224

:SYN2_11210
gosub @SYN2_29024
35@ += 1

:SYN2_11224
if 
  35@ == 4
goto_if_false @SYN2_12065
if 
  235@ == 0
goto_if_false @SYN2_11320
if 
  TIMERA > 1000
goto_if_false @SYN2_11320
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_11320
print 'SYN2_38' {time} 7000 {flag} 1
235@ += 1

:SYN2_11320
if 
  not is_char_dead 71@
goto_if_false @SYN2_12058
if 
  locate_char_on_foot_3d 71@ {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYN2_11796
230@ += 1
if 
  8 > 230@
goto_if_false @SYN2_11535
if or
  230@ == 1
  230@ == 5
  230@ == 7
goto_if_false @SYN2_11495
task_go_to_coord_while_shooting 71@ {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {speed} MoveState.Sprint {turnRadius} 0.0 {stopRadius} 0.0 {target} $scplayer
goto @SYN2_11528

:SYN2_11495
task_go_straight_to_coord 71@ {x} 206@(230@,8f) {y} 214@(230@,8f) {z} 222@(230@,8f) {speed} MoveState.Sprint {time} 99999

:SYN2_11528
goto @SYN2_11789

:SYN2_11535
if 
  not is_car_dead 77@
goto_if_false @SYN2_11751
$x, $y, $z = get_char_coordinates 71@
if 
  locate_car_3d 77@ {x} $x {y} $y {z} $z {xRadius} 10.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN2_11706
clear_char_tasks 71@
53@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 77@ {time} 20000
task_car_drive_to_coord -1 {vehicle} 77@ {x} -2599.2871 {y} -127.2555 {z} 3.1797 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_wander -1 {vehicle} 77@ {speed} 15.0 {drivingMode} DrivingMode.PloughThrough
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
35@ += 1
goto @SYN2_11744

:SYN2_11706
task_flee_char_any_means 71@ {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 5000 {stealCarDist} 50.0
35@ += 1

:SYN2_11744
goto @SYN2_11789

:SYN2_11751
task_flee_char_any_means 71@ {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 5000 {stealCarDist} 50.0
35@ += 1

:SYN2_11789
goto @SYN2_12051

:SYN2_11796
if 
  230@ == 0
goto_if_false @SYN2_12051
if 
  is_char_in_area_3d $scplayer {leftBottomX} -2430.8789 {leftBottomY} -167.3782 {leftBottomZ} 32.3125 {rightTopX} -2426.917 {rightTopY} -143.2979 {rightTopZ} 36.3125 {drawSphere} False
goto_if_false @SYN2_11986
$x, $y, $z = get_char_coordinates $scplayer
47@, 48@, 49@ = get_char_coordinates 71@
if 
  is_float_lvar_greater_than_float_var 48@ > $y
goto_if_false @SYN2_11979
53@ = open_sequence_task 
task_shoot_at_char -1 {target} $scplayer {time} 3000
task_flee_char_any_means -1 {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 5000 {stealCarDist} 50.0
close_sequence_task 53@
perform_sequence_task 71@ {sequence} 53@
clear_sequence_task 53@
35@ += 1

:SYN2_11979
goto @SYN2_12051

:SYN2_11986
if 
  234@ == 0
goto_if_false @SYN2_12051
if 
  has_char_been_damaged_by_char $scplayer {handle} 71@
goto_if_false @SYN2_12051
task_go_straight_to_coord 71@ {x} 206@ {y} 214@ {z} 222@ {speed} MoveState.Sprint {time} 99999
234@ += 1

:SYN2_12051
goto @SYN2_12065

:SYN2_12058
35@ += 1

:SYN2_12065
if 
  35@ == 5
goto_if_false @SYN2_12486
if 
  79@ == 0
goto_if_false @SYN2_12192
if 
  not is_char_dead 71@
goto_if_false @SYN2_12192
if 
  not is_car_dead 77@
goto_if_false @SYN2_12192
if 
  is_char_in_car 71@ {vehicle} 77@
goto_if_false @SYN2_12192
41@ = get_char_health 71@
if 
  41@ > 100
goto_if_false @SYN2_12185
set_char_health 71@ {health} 100

:SYN2_12185
79@ = 1

:SYN2_12192
if 
  is_char_dead 71@
goto_if_false @SYN2_12229
TIMERA = 0
35@ += 1
goto @SYN2_12430

:SYN2_12229
if 
  not is_car_dead 77@
goto_if_false @SYN2_12327
if 
  is_char_in_car 71@ {vehicle} 77@
goto_if_false @SYN2_12327
if 
  locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SYN2_12317
set_car_cruise_speed 77@ {maxSpeed} 25.0
goto @SYN2_12327

:SYN2_12317
set_car_cruise_speed 77@ {maxSpeed} 15.0

:SYN2_12327
if 
  not is_char_in_any_car 71@
goto_if_false @SYN2_12430
41@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_12430
41@ = get_script_task_status 71@ {taskId} 1873
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_12430
task_flee_char_any_means 71@ {threat} $scplayer {safeDist} 100000.0 {time} 999999 {shoot} False {shootTime} 0 {shootCooldownTime} 0 {stealCarDist} 50.0

:SYN2_12430
if 
  56@ == 1
goto_if_false @SYN2_12486
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_12486
if 
  not is_char_dead 71@
goto_if_false @SYN2_12486
task_die 71@

:SYN2_12486
if 
  35@ == 6
goto_if_false @SYN2_12744
clear_prints 
remove_blip 64@
if 
  TIMERA > 1000
goto_if_false @SYN2_12677
if 
  not is_car_dead 59@
goto_if_false @SYN2_12670
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12638
if 
  280@ == 0
goto_if_false @SYN2_12617
print_now 'SYN_M_1' {time} 7000 {flag} 1
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1

:SYN2_12617
TIMERA = 0
35@ += 1
goto @SYN2_12670

:SYN2_12638
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1
TIMERA = 0
35@ += 1

:SYN2_12670
goto @SYN2_12744

:SYN2_12677
if 
  not is_car_dead 59@
goto_if_false @SYN2_12744
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12744
TIMERA = 0
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1
35@ += 1

:SYN2_12744
if 
  35@ == 7
goto_if_false @SYN2_12795
if 
  TIMERA > 3000
goto_if_false @SYN2_12795
TIMERA = 0
35@ += 1

:SYN2_12795
if 
  35@ == 8
goto_if_false @SYN2_12888
if 
  TIMERA > 500
goto_if_false @SYN2_12888
if 
  not is_car_dead 59@
goto_if_false @SYN2_12888
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12888
set_player_control $player1 {state} False
TIMERA = 0
35@ += 1

:SYN2_12888
if 
  35@ == 9
goto_if_false @SYN2_12961
if 
  not is_car_dead 59@
goto_if_false @SYN2_12961
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_12961
clear_mission_audio MissionAudioSlot.Slot3
90@ = 0
clear_prints 
35@ += 1

:SYN2_12961
if 
  35@ == 10
goto_if_false @SYN2_13071
283@ = -1
279@ = 1
clear_prints 
do_fade 150 {direction} Fade.Out

:SYN2_13002
if 
  get_fading_status 
goto_if_false @SYN2_13026
wait 0
goto @SYN2_13002

:SYN2_13026
gosub @SYN2_29128
do_fade 150 {direction} Fade.In

:SYN2_13040
if 
  get_fading_status 
goto_if_false @SYN2_13064
wait 0
goto @SYN2_13040

:SYN2_13064
35@ += 1

:SYN2_13071
if 
  35@ == 11
goto_if_false @SYN2_13129
if 
  TIMERA > 1000
goto_if_false @SYN2_13129
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_13129
if and
  35@ > 11
  99 > 35@
goto_if_false @SYN2_13812
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_13812
if 
  54@ > 1000
goto_if_false @SYN2_13812
switch_start 247@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @SYN2_13805 {caseNum1} 0 {caseLabel1} @SYN2_13319 {caseNum2} 1 {caseLabel2} @SYN2_13389 {caseNum3} 2 {caseLabel3} @SYN2_13459 {caseNum4} 3 {caseLabel4} @SYN2_13528 {caseNum5} 4 {caseLabel5} @SYN2_13597 {caseNum6} 5 {caseLabel6} @SYN2_13666 {caseNum7} 6 {caseLabel7} @SYN2_13735
switch_continued 7 {caseLabel1} @SYN2_13791 {caseNum2} -1 {caseLabel2} @SYN2_13805 {caseNum3} -1 {caseLabel3} @SYN2_13805 {caseNum4} -1 {caseLabel4} @SYN2_13805 {caseNum5} -1 {caseLabel5} @SYN2_13805 {caseNum6} -1 {caseLabel6} @SYN2_13805 {caseNum7} -1 {caseLabel7} @SYN2_13805 {caseNum8} -1 {caseLabel8} @SYN2_13805 {caseNum9} -1 {caseLabel9} @SYN2_13805

:SYN2_13319
set_var_text_label s$audio_string = 'SYN2_DA'
set_var_int_to_constant $audio_sound_file = 39017
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39018
247@ += 1
goto @SYN2_13805

:SYN2_13389
set_var_text_label s$audio_string = 'SYN2_DB'
set_var_int_to_constant $audio_sound_file = 39018
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39019
247@ += 1
goto @SYN2_13805

:SYN2_13459
set_var_text_label s$audio_string = 'SYN2_DC'
set_var_int_to_constant $audio_sound_file = 39019
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39020
247@ += 1
goto @SYN2_13805

:SYN2_13528
set_var_text_label s$audio_string = 'SYN2_DD'
set_var_int_to_constant $audio_sound_file = 39020
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39021
247@ += 1
goto @SYN2_13805

:SYN2_13597
set_var_text_label s$audio_string = 'SYN2_DE'
set_var_int_to_constant $audio_sound_file = 39021
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39022
247@ += 1
goto @SYN2_13805

:SYN2_13666
set_var_text_label s$audio_string = 'SYN2_DF'
set_var_int_to_constant $audio_sound_file = 39022
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39023
247@ += 1
goto @SYN2_13805

:SYN2_13735
set_var_text_label s$audio_string = 'SYN2_DG'
set_var_int_to_constant $audio_sound_file = 39023
start_new_script @AUDIOL -1 0 1 1 1 
247@ += 1
goto @SYN2_13805

:SYN2_13791
247@ += 1
goto @SYN2_13805

:SYN2_13805
54@ = 0

:SYN2_13812
if 
  35@ == 12
goto_if_false @SYN2_13861
if or
  247@ > 7
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_13861
35@ = 99

:SYN2_13861
if 
  35@ == 99
goto_if_false @SYN2_13930
gosub @SYN2_31023
mark_car_as_no_longer_needed 77@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 68@
mark_model_as_no_longer_needed 237
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 545
35@ = 0
34@ += 1

:SYN2_13930
return 

:SYN2_13932
if 
  35@ == 0
goto_if_false @SYN2_14007
60@ = add_blip_for_coord -1911.9189 {y} -629.912 {z} 23.6093
change_blip_colour 60@ {color} BlipColor.Yellow
print_now 'SYN2_14' {time} 10000 {flag} 1
88@ = 0
35@ += 1

:SYN2_14007
if 
  35@ == 1
goto_if_false @SYN2_14810
request_model 483
request_model 72
request_model 73
request_model 245
request_model 346

:SYN2_14048
if or
  not has_model_loaded 483
  not has_model_loaded 72
  not has_model_loaded 73
  not has_model_loaded 245
  not has_model_loaded 346
goto_if_false @SYN2_14093
wait 0
goto @SYN2_14048

:SYN2_14093
load_mission_audio MissionAudioSlot.Slot3 {audioId} 20600

:SYN2_14100
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN2_14126
wait 0
goto @SYN2_14100

:SYN2_14126
75@ = create_char PedType.CivMale {modelId} 72 {x} -1911.9189 {y} -629.212 {z} 23.6093
set_char_heading 75@ {heading} 180.0
76@ = create_char PedType.CivMale {modelId} 72 {x} -1907.644 {y} -623.0884 {z} 23.6093
set_char_heading 76@ {heading} 350.5407
give_weapon_to_char 76@ {weaponType} WeaponType.Pistol {ammo} 99999
69@ = create_char PedType.Prostitute {modelId} 245 {x} -1911.9189 {y} -629.912 {z} 23.6093
set_char_heading 69@ {heading} 331.492
set_char_only_damaged_by_player 69@ {state} True
set_char_never_targetted 69@ {state} True
set_char_max_health 69@ {maxHealth} 120
set_char_health 69@ {health} 120
74@ = create_car 483 {x} -1911.952 {y} -624.4892 {z} 23.6093
set_car_heading 74@ {heading} 304.9144
change_car_colour 74@ {color1} 104 {color2} 61
force_car_lights 74@ {lightMode} CarLights.ForceOn
open_car_door 74@ {door} CarDoor.RightFrontDoor
open_car_door 74@ {door} CarDoor.RightRearDoor
set_char_decision_maker 75@ {handleOrTemplate} 232@
set_char_decision_maker 76@ {handleOrTemplate} 232@
set_char_decision_maker 69@ {handleOrTemplate} 231@
set_char_relationship 76@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_stay_in_same_place 76@ {state} True
set_char_stay_in_same_place 69@ {state} True
$girl_health = get_char_health 69@
display_nth_onscreen_counter_with_string $girl_health {display} CounterDisplay.Bar {slot} 1 {text} 'SYN2_63'
request_animation "CRACK"
request_animation "MISC"

:SYN2_14422
if or
  not has_animation_loaded "CRACK"
  not has_animation_loaded "MISC"
goto_if_false @SYN2_14461
wait 0
goto @SYN2_14422

:SYN2_14461
if 
  not is_char_dead 69@
goto_if_false @SYN2_14515
task_play_anim_non_interruptable 69@ {animationName} "CRCKDETH2" {animationFile} "CRACK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN2_14515
if 
  not is_char_dead 75@
goto_if_false @SYN2_14803
53@ = open_sequence_task 
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "BITCHSLAP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "BITCHSLAP" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 75@ {sequence} 53@
clear_sequence_task 53@

:SYN2_14803
35@ += 1

:SYN2_14810
if 
  not is_char_dead 75@
goto_if_false @SYN2_14891
41@ = get_script_task_status 75@ {taskId} 1560
if 
  not is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_14891
if 
  55@ > 3000
goto_if_false @SYN2_14891
41@ = set_char_say_context 75@ {phrase} SpeechId.Fight
55@ = 0

:SYN2_14891
if 
  35@ == 2
goto_if_false @SYN2_15088
if 
  56@ == 1
goto_if_false @SYN2_14964
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_14964
set_char_coordinates $scplayer {x} -1904.041 {y} -602.5592 {z} 23.6067

:SYN2_14964
if 
  locate_char_any_means_3d $scplayer {x} -1911.9189 {y} -629.912 {z} 23.6093 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SYN2_15088
remove_blip 60@
print_now 'SYN2_15' {time} 10000 {flag} 1
if 
  not is_char_dead 75@
goto_if_false @SYN2_15057
62@ = add_blip_for_char 75@

:SYN2_15057
if 
  not is_char_dead 76@
goto_if_false @SYN2_15081
63@ = add_blip_for_char 76@

:SYN2_15081
35@ += 1

:SYN2_15088
if 
  35@ == 3
goto_if_false @SYN2_15215
if 
  is_char_dead 75@
goto_if_false @SYN2_15143
if 
  does_blip_exist 62@
goto_if_false @SYN2_15143
remove_blip 62@

:SYN2_15143
if 
  is_char_dead 76@
goto_if_false @SYN2_15180
if 
  does_blip_exist 63@
goto_if_false @SYN2_15180
remove_blip 63@

:SYN2_15180
if and
  is_char_dead 75@
  is_char_dead 76@
goto_if_false @SYN2_15215
35@ += 1
TIMERA = 0

:SYN2_15215
if 
  35@ == 4
goto_if_false @SYN2_15768
if 
  TIMERA > 1000
goto_if_false @SYN2_15768
if 
  is_char_dead 75@
goto_if_false @SYN2_15474
238@, 239@, 240@ = get_dead_char_coordinates 75@
if 
  not is_char_dead 69@
goto_if_false @SYN2_15312
$x, $y, $z = get_char_coordinates 69@

:SYN2_15312
set_lvar_float_to_lvar_float 50@ = 238@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 239@
sub_float_var_from_float_lvar 51@ -= $y
set_lvar_float_to_lvar_float 52@ = 240@
sub_float_var_from_float_lvar 52@ -= $z
44@ = get_distance_between_coords_2d 238@ {fromY} 239@ {toX} $x {toZ} $y
if 
  44@ > 0.01
goto_if_false @SYN2_15414
div_float_lvar_by_float_lvar 50@ /= 44@
div_float_lvar_by_float_lvar 51@ /= 44@

:SYN2_15414
50@ *= -0.5
51@ *= -0.5
set_lvar_float_to_lvar_float 241@ = 238@
add_float_lvar_to_float_lvar 241@ += 50@
set_lvar_float_to_lvar_float 242@ = 239@
add_float_lvar_to_float_lvar 242@ += 51@
set_lvar_float_to_lvar_float 243@ = 240@

:SYN2_15474
53@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "GETUP" {animationFile} "PED" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_go_straight_to_coord -1 {x} 241@ {y} 242@ {z} 243@ {speed} MoveState.Run {time} 99999
task_turn_char_to_face_coord -1 {x} 238@ {y} 239@ {z} 240@
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
if 
  not is_char_dead 69@
goto_if_false @SYN2_15729
set_char_bleeding 69@ {state} False
set_char_stay_in_same_place 69@ {state} False
perform_sequence_task 69@ {sequence} 53@
88@ = 1

:SYN2_15729
clear_sequence_task 53@
clear_onscreen_counter $girl_health
35@ += 1
247@ = 0
TIMERA = 0
TIMERB = 2000

:SYN2_15768
if 
  35@ > 4
goto_if_false @SYN2_16075
if 
  not is_char_dead 69@
goto_if_false @SYN2_16075
if 
  88@ == 1
goto_if_false @SYN2_15892
if 
  TIMERB > 3000
goto_if_false @SYN2_15856
41@ = set_char_say_context 69@ {phrase} SpeechId.Fight
TIMERB = 0

:SYN2_15856
41@ = get_script_task_status 69@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_15892
88@ += 1

:SYN2_15892
if 
  88@ == 2
goto_if_false @SYN2_16075
if 
  not is_car_dead 74@
goto_if_false @SYN2_16041
if 
  locate_char_any_means_car_3d 69@ {vehicle} 74@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN2_16020
53@ = open_sequence_task 
task_goto_car -1 {vehicle} 74@ {time} 20000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 74@ {time} 999999
task_car_drive_wander -1 {vehicle} 74@ {speed} 40.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 53@
goto @SYN2_16034

:SYN2_16020
53@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 53@

:SYN2_16034
goto @SYN2_16055

:SYN2_16041
53@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 53@

:SYN2_16055
perform_sequence_task 69@ {sequence} 53@
clear_sequence_task 53@
88@ += 1

:SYN2_16075
if 
  35@ == 5
goto_if_false @SYN2_16274
if 
  TIMERA > 1000
goto_if_false @SYN2_16225
if 
  not is_car_dead 59@
goto_if_false @SYN2_16218
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16204
if 
  280@ == 0
goto_if_false @SYN2_16183
print_now 'SYN_M_1' {time} 999999 {flag} 1

:SYN2_16183
TIMERA = 0
35@ += 1
goto @SYN2_16218

:SYN2_16204
TIMERA = 0
35@ += 1

:SYN2_16218
goto @SYN2_16274

:SYN2_16225
if 
  not is_car_dead 59@
goto_if_false @SYN2_16274
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16274
TIMERA = 0
35@ += 1

:SYN2_16274
if 
  35@ == 6
goto_if_false @SYN2_16419
if 
  not is_car_dead 59@
goto_if_false @SYN2_16338
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16338
clear_this_print 'SYN_M_1'

:SYN2_16338
if 
  TIMERA > 6000
goto_if_false @SYN2_16419
if 
  not is_car_dead 59@
goto_if_false @SYN2_16405
$x, $y, $z = get_car_coordinates 59@
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1

:SYN2_16405
TIMERA = 0
35@ += 1

:SYN2_16419
if 
  35@ == 7
goto_if_false @SYN2_16565
if 
  not is_car_dead 59@
goto_if_false @SYN2_16483
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16483
clear_this_print 'SYN_M_1'

:SYN2_16483
if 
  TIMERA > 500
goto_if_false @SYN2_16565
if 
  not is_car_dead 59@
goto_if_false @SYN2_16565
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16565
set_player_control $player1 {state} False
283@ = -1
TIMERA = 0
35@ += 1

:SYN2_16565
if 
  35@ == 8
goto_if_false @SYN2_16638
if 
  not is_car_dead 59@
goto_if_false @SYN2_16638
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_16638
clear_mission_audio MissionAudioSlot.Slot3
90@ = 0
clear_prints 
35@ += 1

:SYN2_16638
if 
  35@ == 9
goto_if_false @SYN2_16748
283@ = -1
279@ = 2
clear_prints 
do_fade 150 {direction} Fade.Out

:SYN2_16679
if 
  get_fading_status 
goto_if_false @SYN2_16703
wait 0
goto @SYN2_16679

:SYN2_16703
gosub @SYN2_29128
do_fade 150 {direction} Fade.In

:SYN2_16717
if 
  get_fading_status 
goto_if_false @SYN2_16741
wait 0
goto @SYN2_16717

:SYN2_16741
35@ += 1

:SYN2_16748
if 
  35@ == 10
goto_if_false @SYN2_16806
if 
  TIMERA > 1000
goto_if_false @SYN2_16806
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_16806
if and
  35@ > 10
  99 > 35@
goto_if_false @SYN2_17354
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_17354
if 
  54@ > 1000
goto_if_false @SYN2_17354
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_17347 {caseNum1} 0 {caseLabel1} @SYN2_16931 {caseNum2} 1 {caseLabel2} @SYN2_17001 {caseNum3} 2 {caseLabel3} @SYN2_17070 {caseNum4} 3 {caseLabel4} @SYN2_17139 {caseNum5} 4 {caseLabel5} @SYN2_17208 {caseNum6} 5 {caseLabel6} @SYN2_17277 {caseNum7} 6 {caseLabel7} @SYN2_17333

:SYN2_16931
set_var_text_label s$audio_string = 'SYN2_FA'
set_var_int_to_constant $audio_sound_file = 39027
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39028
247@ += 1
goto @SYN2_17347

:SYN2_17001
set_var_text_label s$audio_string = 'SYN2_FB'
set_var_int_to_constant $audio_sound_file = 39028
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39029
247@ += 1
goto @SYN2_17347

:SYN2_17070
set_var_text_label s$audio_string = 'SYN2_FC'
set_var_int_to_constant $audio_sound_file = 39029
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39030
247@ += 1
goto @SYN2_17347

:SYN2_17139
set_var_text_label s$audio_string = 'SYN2_FD'
set_var_int_to_constant $audio_sound_file = 39030
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39031
247@ += 1
goto @SYN2_17347

:SYN2_17208
set_var_text_label s$audio_string = 'SYN2_FE'
set_var_int_to_constant $audio_sound_file = 39031
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39032
247@ += 1
goto @SYN2_17347

:SYN2_17277
set_var_text_label s$audio_string = 'SYN2_FF'
set_var_int_to_constant $audio_sound_file = 39032
start_new_script @AUDIOL -1 0 1 2 1 
247@ += 1
goto @SYN2_17347

:SYN2_17333
247@ += 1
goto @SYN2_17347

:SYN2_17347
54@ = 0

:SYN2_17354
if 
  35@ == 11
goto_if_false @SYN2_17403
if or
  247@ > 6
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_17403
35@ = 99

:SYN2_17403
if 
  35@ == 99
goto_if_false @SYN2_17507
gosub @SYN2_31023
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 69@
mark_car_as_no_longer_needed 74@
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 72
mark_model_as_no_longer_needed 73
mark_model_as_no_longer_needed 245
mark_model_as_no_longer_needed 346
remove_animation "CRACK"
remove_animation "MISC"
remove_blip 61@
35@ = 0
34@ += 1

:SYN2_17507
if 
  does_char_exist 69@
goto_if_false @SYN2_17683
if 
  not is_char_dead 69@
goto_if_false @SYN2_17683
if 
  not is_char_dead 75@
goto_if_false @SYN2_17638
if or
  is_char_playing_anim 75@ {animationName} "FIGHTA_G"
  is_char_playing_anim 75@ {animationName} "BITCHSLAP"
goto_if_false @SYN2_17638
$girl_health = get_char_health 69@
if 
  TIMERB > 1000
goto_if_false @SYN2_17638
$girl_health += -1
TIMERB = 0

:SYN2_17638
if 
  1 >= $girl_health
goto_if_false @SYN2_17675
$girl_health = 1
task_die 69@
goto @SYN2_17683

:SYN2_17675
set_char_health 69@ {health} $girl_health

:SYN2_17683
if 
  does_char_exist 68@
goto_if_false @SYN2_17767
if 
  not is_char_dead 68@
goto_if_false @SYN2_17767
if 
  not locate_char_any_means_char_2d $scplayer {target} 69@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN2_17767
if 
  not is_char_on_screen 68@
goto_if_false @SYN2_17767
delete_char 68@

:SYN2_17767
return 

:SYN2_17769
if 
  35@ == -1
goto_if_false @SYN2_17905
255@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
259@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
246@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
244@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
67@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:SYN2_17905
if 
  35@ == 0
goto_if_false @SYN2_18135
if 
  not does_vehicle_exist 59@
goto_if_false @SYN2_18085
if 
  not has_model_loaded 575
goto_if_false @SYN2_17987
request_model 575

:SYN2_17960
if 
  not has_model_loaded 575
goto_if_false @SYN2_17987
wait 0
goto @SYN2_17960

:SYN2_17987
59@ = create_car 575 {x} -1894.308 {y} 712.9404 {z} 44.2969
set_car_heading 59@ {heading} 0.0
if 
  is_player_playing $player1
goto_if_false @SYN2_18044
warp_char_into_car $scplayer {vehicle} 59@

:SYN2_18044
231@ = load_char_decision_maker DecisionMakerType.Empty
load_scene -1900.754 {y} 645.3122 {z} 35.4401
switch_widescreen False
set_player_control $player1 {state} True
do_fade 0 {direction} Fade.In

:SYN2_18085
60@ = add_blip_for_coord -1964.3719 {y} 724.4017 {z} 44.2969
change_blip_colour 60@ {color} BlipColor.Yellow
print_now 'SYN2_19' {time} 10000 {flag} 1
35@ += 1

:SYN2_18135
if 
  35@ == 1
goto_if_false @SYN2_18460
if 
  does_blip_exist 60@
goto_if_false @SYN2_18371
if 
  not is_car_dead 59@
goto_if_false @SYN2_18364
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_18343
if 
  locate_car_3d 59@ {x} -1964.3719 {y} 724.4017 {z} 44.2969 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN2_18336
if 
  is_vehicle_on_all_wheels 59@
goto_if_false @SYN2_18336
clear_prints 
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:SYN2_18284
if 
  get_fading_status 
goto_if_false @SYN2_18308
wait 0
goto @SYN2_18284

:SYN2_18308
remove_blip 60@
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:SYN2_18336
goto @SYN2_18364

:SYN2_18343
remove_blip 60@
print 'SYN_M_1' {time} 7000 {flag} 1

:SYN2_18364
goto @SYN2_18460

:SYN2_18371
if 
  not is_car_dead 59@
goto_if_false @SYN2_18460
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_18460
60@ = add_blip_for_coord -1964.3719 {y} 724.4017 {z} 44.2969
change_blip_colour 60@ {color} BlipColor.Yellow
clear_this_print 'SYN_M_1'
print 'SYN2_19' {time} 7000 {flag} 1

:SYN2_18460
if 
  35@ == 2
goto_if_false @SYN2_19056
set_car_density_multiplier 0.0
clear_area -1964.3719 {y} 724.4017 {z} 44.2969 {radius} 100.0 {clearParticles} True
request_model 409
request_model 579
request_model 64
request_model 166
request_model 68
request_model 346
request_model 353
request_car_recording 539
request_car_recording 540
request_car_recording 541

:SYN2_18557
if or
  not has_model_loaded 409
  not has_model_loaded 64
  not has_model_loaded 579
  not has_model_loaded 166
  not has_model_loaded 68
goto_if_false @SYN2_18602
wait 0
goto @SYN2_18557

:SYN2_18602
if or
  not has_car_recording_been_loaded 539
  not has_car_recording_been_loaded 540
  not has_car_recording_been_loaded 541
goto_if_false @SYN2_18639
wait 0
goto @SYN2_18602

:SYN2_18639
if or
  not has_model_loaded 346
  not has_model_loaded 353
goto_if_false @SYN2_18671
wait 0
goto @SYN2_18639

:SYN2_18671
if 
  not is_car_dead 59@
goto_if_false @SYN2_18717
set_car_coordinates 59@ {x} -1964.3719 {y} 724.4017 {z} 44.2969
set_car_heading 59@ {heading} 266.5514

:SYN2_18717
244@ = create_car 409 {x} -1973.811 {y} 728.3975 {z} 44.2969
set_car_heading 244@ {heading} 269.8438
245@ = create_char_inside_car 244@ {pedType} PedType.CivMale {modelId} 166
set_char_decision_maker 245@ {handleOrTemplate} 231@
set_car_cruise_speed 244@ {maxSpeed} 15.0
change_car_colour 244@ {color1} 1 {color2} 0
start_playback_recorded_car 244@ {path} 540
skip_in_playback_recorded_car 244@ {amount} 3.0
set_car_only_damaged_by_player 244@ {state} True
255@ = create_car 579 {x} -1987.811 {y} 728.3975 {z} 44.2969
set_car_heading 255@ {heading} 269.8438
259@ = create_char_inside_car 255@ {pedType} PedType.CivMale {modelId} 166
give_weapon_to_char 259@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_decision_maker 259@ {handleOrTemplate} 231@
set_car_cruise_speed 255@ {maxSpeed} 15.0
change_car_colour 255@ {color1} 0 {color2} 0
start_playback_recorded_car 255@ {path} 541
skip_in_playback_recorded_car 255@ {amount} 3.0
248@ = create_char_as_passenger 255@ {pedType} PedType.CivMale {modelId} 166 {seat} SeatId.BikeRear
give_weapon_to_char 248@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 248@ {handleOrTemplate} 231@
switch_widescreen True
clear_help 
clear_prints 
set_fixed_camera_position -1968.579 {y} 721.6734 {z} 47.3198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -5.0 {yOffset} -2.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
TIMERA = 0
35@ += 1

:SYN2_19056
if 
  35@ > 2
goto_if_false @SYN2_19098
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_19098
35@ = 99

:SYN2_19098
if 
  35@ == 3
goto_if_false @SYN2_19251
if 
  not is_car_dead 244@
goto_if_false @SYN2_19174
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -5.0 {yOffset} -2.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SYN2_19174
if 
  TIMERA > 4000
goto_if_false @SYN2_19251
set_fixed_camera_position -1929.402 {y} 738.0927 {z} 44.7662 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1929.326 {y} 737.1227 {z} 44.9969 {switchStyle} SwitchType.JumpCut
35@ += 1

:SYN2_19251
if 
  35@ == 4
goto_if_false @SYN2_19348
if 
  not is_car_dead 244@
goto_if_false @SYN2_19348
if 
  not is_car_dead 255@
goto_if_false @SYN2_19348
if and
  not is_playback_going_on_for_car 244@
  not is_playback_going_on_for_car 255@
goto_if_false @SYN2_19348
wait 1500
247@ = 0
TIMERB = 0
35@ += 1

:SYN2_19348
if 
  35@ >= 5
goto_if_false @SYN2_19880
if 
  TIMERB > 1000
goto_if_false @SYN2_19880
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_19880
switch_start 247@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_19873 {caseNum1} 0 {caseLabel1} @SYN2_19466 {caseNum2} 1 {caseLabel2} @SYN2_19536 {caseNum3} 2 {caseLabel3} @SYN2_19606 {caseNum4} 3 {caseLabel4} @SYN2_19676 {caseNum5} 4 {caseLabel5} @SYN2_19746 {caseNum6} 5 {caseLabel6} @SYN2_19816 {caseNum7} -1 {caseLabel7} @SYN2_19873

:SYN2_19466
set_var_text_label s$audio_string = 'SYN2_HA'
set_var_int_to_constant $audio_sound_file = 39039
start_new_script @AUDIOL 246@ 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39040
247@ += 1
goto @SYN2_19873

:SYN2_19536
set_var_text_label s$audio_string = 'SYN2_HB'
set_var_int_to_constant $audio_sound_file = 39040
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39041
247@ += 1
goto @SYN2_19873

:SYN2_19606
set_var_text_label s$audio_string = 'SYN2_HC'
set_var_int_to_constant $audio_sound_file = 39041
start_new_script @AUDIOL 246@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39042
247@ += 1
goto @SYN2_19873

:SYN2_19676
set_var_text_label s$audio_string = 'SYN2_HD'
set_var_int_to_constant $audio_sound_file = 39042
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39043
247@ += 1
goto @SYN2_19873

:SYN2_19746
set_var_text_label s$audio_string = 'SYN2_HE'
set_var_int_to_constant $audio_sound_file = 39043
start_new_script @AUDIOL 246@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39044
247@ += 1
goto @SYN2_19873

:SYN2_19816
set_var_text_label s$audio_string = 'SYN2_HF'
set_var_int_to_constant $audio_sound_file = 39044
start_new_script @AUDIOL 245@ 0 1 2 1 
247@ += 1
goto @SYN2_19873

:SYN2_19873
TIMERB = 0

:SYN2_19880
if 
  35@ == 5
goto_if_false @SYN2_20499
clear_area -1924.4871 {y} 724.8195 {z} 45.134 {radius} 100.0 {clearParticles} True
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
if 
  not is_car_dead 244@
goto_if_false @SYN2_19996
set_car_coordinates 244@ {x} -1924.4871 {y} 725.2195 {z} 45.134
set_car_heading 244@ {heading} 270.0
open_car_door 244@ {door} CarDoor.RightRearDoor
freeze_car_position 244@ {state} True

:SYN2_19996
if 
  not is_car_dead 255@
goto_if_false @SYN2_20049
set_car_coordinates 255@ {x} -1932.387 {y} 725.1635 {z} 45.2749
set_car_heading 255@ {heading} 270.0
freeze_car_position 255@ {state} True

:SYN2_20049
if 
  not is_char_dead 245@
goto_if_false @SYN2_20100
clear_char_tasks_immediately 245@
set_char_coordinates 245@ {x} -1924.224 {y} 723.2358 {z} 44.4453
set_char_heading 245@ {heading} 159.4748

:SYN2_20100
67@ = create_char PedType.CivFemale {modelId} 64 {x} -1920.884 {y} 718.9793 {z} 44.4453
set_char_heading 67@ {heading} 0.0
flush_route 
extend_route -1921.819 {y} 720.555 {z} 44.4453
extend_route -1926.29 {y} 722.7397 {z} 44.4453
53@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead 244@
goto_if_false @SYN2_20211
task_enter_car_as_passenger -1 {vehicle} 244@ {time} 20000 {seat} SeatId.RearRight

:SYN2_20211
close_sequence_task 53@
perform_sequence_task 67@ {sequence} 53@
clear_sequence_task 53@
set_char_never_targetted 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 231@
246@ = create_char PedType.CivMale {modelId} 68 {x} -1923.519 {y} 718.0508 {z} 44.9828
set_char_heading 246@ {heading} 0.0
set_char_decision_maker 246@ {handleOrTemplate} 231@
flush_route 
extend_route -1922.707 {y} 719.7217 {z} 45.4453
extend_route -1924.6689 {y} 720.7556 {z} 45.4453
extend_route -1925.027 {y} 720.9464 {z} 45.4453
extend_route -1926.188 {y} 721.5566 {z} 45.4453
extend_route -1927.006 {y} 722.2399 {z} 45.4453
53@ = open_sequence_task 
task_pause -1 {time} 500
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_char_dead 67@
goto_if_false @SYN2_20416
task_turn_char_to_face_char -1 {target} 67@

:SYN2_20416
close_sequence_task 53@
perform_sequence_task 246@ {sequence} 53@
clear_sequence_task 53@
TIMERA = 0
set_fixed_camera_position -1918.223 {y} 720.1056 {z} 46.0226 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1919.156 {y} 720.4551 {z} 45.9459 {switchStyle} SwitchType.JumpCut
35@ += 1

:SYN2_20499
if 
  35@ == 6
goto_if_false @SYN2_20785
if 
  TIMERA > 7050
goto_if_false @SYN2_20785
set_fixed_camera_position -1933.54 {y} 728.0091 {z} 46.4366 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 244@
goto_if_false @SYN2_20785
point_camera_at_car 244@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 255@
goto_if_false @SYN2_20616
freeze_car_position 255@ {state} False

:SYN2_20616
freeze_car_position 244@ {state} False
if 
  not is_char_dead 67@
goto_if_false @SYN2_20654
clear_char_tasks_immediately 67@
warp_char_into_car_as_passenger 67@ {handle} 244@ {seat} SeatId.RearLeft

:SYN2_20654
open_car_door 244@ {door} CarDoor.RightRearDoor
if 
  not is_char_dead 246@
goto_if_false @SYN2_20725
clear_char_tasks_immediately 246@
set_char_coordinates 246@ {x} -1927.08 {y} 723.2823 {z} 44.4453
set_char_heading 246@ {heading} 299.9935
task_enter_car_as_passenger 246@ {vehicle} 244@ {time} 20000 {seat} SeatId.RearRight

:SYN2_20725
if 
  not is_char_dead 245@
goto_if_false @SYN2_20778
clear_char_tasks_immediately 245@
clear_look_at 245@
if 
  not is_car_dead 244@
goto_if_false @SYN2_20778
task_enter_car_as_driver 245@ {vehicle} 244@ {time} 5000

:SYN2_20778
35@ += 1

:SYN2_20785
if 
  35@ == 7
goto_if_false @SYN2_20955
if 
  not is_car_dead 244@
goto_if_false @SYN2_20955
if 
  not is_char_dead 245@
goto_if_false @SYN2_20955
if 
  is_char_in_car 245@ {vehicle} 244@
goto_if_false @SYN2_20955
if 
  not is_char_dead 246@
goto_if_false @SYN2_20955
if 
  is_char_in_car 246@ {vehicle} 244@
goto_if_false @SYN2_20955
if 
  247@ > 5
goto_if_false @SYN2_20955
task_car_drive_to_coord 245@ {vehicle} 244@ {x} -1902.027 {y} 726.5126 {z} 45.2216 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
TIMERA = 0
35@ += 1

:SYN2_20955
if 
  35@ == 8
goto_if_false @SYN2_21072
if 
  TIMERA > 500
goto_if_false @SYN2_21072
if 
  not is_char_dead 259@
goto_if_false @SYN2_21058
if 
  not is_car_dead 255@
goto_if_false @SYN2_21058
task_car_drive_to_coord 259@ {vehicle} 255@ {x} -1902.027 {y} 726.5126 {z} 45.2216 {speed} 18.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:SYN2_21058
TIMERA = 0
35@ += 1

:SYN2_21072
if 
  35@ == 9
goto_if_false @SYN2_21116
if 
  TIMERA > 2000
goto_if_false @SYN2_21116
35@ = 99

:SYN2_21116
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @SYN2_21336
if 
  not is_char_dead 67@
goto_if_false @SYN2_21336
$x, $y, $z = get_offset_from_char_in_world_coords 67@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
$heading = get_char_heading 67@
save_newline_to_debug_file 
save_string_to_debug_file "PREACHER POINT = "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21336
if 
  35@ == 888
goto_if_false @SYN2_21828
if 
  TIMERA > 1000
goto_if_false @SYN2_21828
if 
  not is_car_dead 244@
goto_if_false @SYN2_21601
if 
  is_car_stopped 244@
goto_if_false @SYN2_21601
if 
is_recording_going_on_for_car 244@
goto_if_false @SYN2_21601
stop_recording_car 244@
$x, $y, $z = get_car_coordinates 244@
$heading = get_car_heading 244@
save_newline_to_debug_file 
save_string_to_debug_file "RICH CAR STOPPED AT "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21601
if 
  not is_car_dead 255@
goto_if_false @SYN2_21828
if 
  is_car_stopped 255@
goto_if_false @SYN2_21828
if 
is_recording_going_on_for_car 255@
goto_if_false @SYN2_21828
stop_recording_car 255@
$x, $y, $z = get_car_coordinates 255@
$heading = get_car_heading 255@
save_newline_to_debug_file 
save_string_to_debug_file "MIB_CAR STOPPED AT "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:SYN2_21828
if 
  35@ == 99
goto_if_false @SYN2_22629
if 
  not does_char_exist 246@
goto_if_false @SYN2_21894
246@ = create_char PedType.CivMale {modelId} 68 {x} 0.0 {y} 0.0 {z} 0.0
set_char_decision_maker 246@ {handleOrTemplate} 231@

:SYN2_21894
if 
  not does_char_exist 67@
goto_if_false @SYN2_21942
67@ = create_char PedType.CivFemale {modelId} 64 {x} 0.0 {y} 0.0 {z} 0.0
set_char_decision_maker 67@ {handleOrTemplate} 231@

:SYN2_21942
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 353
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
if 
  not is_car_dead 255@
goto_if_false @SYN2_22079
if 
  is_playback_going_on_for_car 255@
goto_if_false @SYN2_22043
stop_playback_recorded_car 255@

:SYN2_22043
freeze_car_position 255@ {state} False
if 
  not is_char_dead 259@
goto_if_false @SYN2_22079
clear_char_tasks_immediately 259@
warp_char_into_car 259@ {vehicle} 255@

:SYN2_22079
if 
  not is_car_dead 244@
goto_if_false @SYN2_22123
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_22116
stop_playback_recorded_car 244@

:SYN2_22116
freeze_car_position 244@ {state} False

:SYN2_22123
if 
  not is_car_dead 244@
goto_if_false @SYN2_22235
if 
  not is_char_dead 245@
goto_if_false @SYN2_22168
clear_char_tasks_immediately 245@
warp_char_into_car 245@ {vehicle} 244@

:SYN2_22168
if 
  not is_char_dead 67@
goto_if_false @SYN2_22199
clear_char_tasks_immediately 67@
warp_char_into_car_as_passenger 67@ {handle} 244@ {seat} SeatId.RearLeft

:SYN2_22199
if 
  not is_char_dead 246@
goto_if_false @SYN2_22230
clear_char_tasks_immediately 246@
warp_char_into_car_as_passenger 246@ {handle} 244@ {seat} SeatId.RearRight

:SYN2_22230
close_all_car_doors 244@

:SYN2_22235
if 
  not is_car_dead 255@
goto_if_false @SYN2_22347
if 
  not is_car_dead 244@
goto_if_false @SYN2_22347
if 
  not is_char_dead 259@
goto_if_false @SYN2_22347
start_playback_recorded_car_using_ai 255@ {pathId} 539
skip_in_playback_recorded_car 255@ {amount} 0.0
set_car_driving_style 255@ {drivingStyle} DrivingMode.AvoidCarsObeyLights
set_car_proofs 255@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 255@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 255@ {state} True
set_car_traction 255@ {traction} 2.0

:SYN2_22347
if 
  not is_car_dead 244@
goto_if_false @SYN2_22524
clear_area -1908.786 {y} 726.1257 {z} 45.097 {radius} 5.0 {clearParticles} True
set_car_coordinates 244@ {x} -1908.786 {y} 726.1257 {z} 45.097
set_car_heading 244@ {heading} 273.1095
freeze_car_position 244@ {state} False
set_car_forward_speed 244@ {forwardSpeed} 10.0
set_car_proofs 244@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
lock_car_doors 244@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heavy 244@ {state} True
set_car_traction 244@ {traction} 2.0
set_car_health 244@ {health} 1850
start_playback_recorded_car_using_ai 244@ {pathId} 539
skip_in_playback_recorded_car 244@ {amount} 5.0
set_car_driving_style 244@ {drivingStyle} DrivingMode.AvoidCarsObeyLights
add_upsidedown_car_check 244@
add_stuck_car_check 244@ {distance} 2.0 {time} 3000

:SYN2_22524
switch_ped_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
switch_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
clear_prints 
switch_widescreen False
set_player_control $player1 {state} True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
34@ += 1
35@ = 0

:SYN2_22629
return 

:SYN2_22631
if 
  35@ == 0
goto_if_false @SYN2_22899
suppress_car_model 409
suppress_car_model 579
252@ = 15.0
if 
  not is_char_dead 246@
goto_if_false @SYN2_22700
249@ = add_blip_for_char 246@
set_char_get_out_upside_down_car 246@ {state} False

:SYN2_22700
if 
  not is_char_dead 67@
goto_if_false @SYN2_22723
set_char_get_out_upside_down_car 67@ {state} False

:SYN2_22723
if 
  not is_char_dead 245@
goto_if_false @SYN2_22746
set_char_get_out_upside_down_car 245@ {state} False

:SYN2_22746
if 
  not is_char_dead 259@
goto_if_false @SYN2_22770
263@ = add_blip_for_char 259@

:SYN2_22770
if 
  not is_char_dead 248@
goto_if_false @SYN2_22794
264@ = add_blip_for_char 248@

:SYN2_22794
250@ = 0
251@ = 0
$syn2_time_until_backup = 30000
250@ = 0
87@ = 0
clear_prints 
print_now 'SYN2_70' {time} 10000 {flag} 1
if 
  not is_car_dead 244@
goto_if_false @SYN2_22871
lock_car_doors 244@ {lockStatus} CarLock.Locked

:SYN2_22871
set_car_density_multiplier 0.65
set_ped_density_multiplier 1.0
265@ = 0
35@ += 1

:SYN2_22899
if 
  265@ == 0
goto_if_false @SYN2_22963
if 
  does_blip_exist 61@
goto_if_false @SYN2_22956
print 'SYN_M_1' {time} 5000 {flag} 1
265@ = 1

:SYN2_22956
goto @SYN2_23013

:SYN2_22963
if 
  not does_blip_exist 61@
goto_if_false @SYN2_23013
clear_this_print 'SYN_M_1'
print 'SYN2_70' {time} 5000 {flag} 1
265@ = 0

:SYN2_23013
if 
  35@ == 1
goto_if_false @SYN2_27224
if 
  not is_car_dead 244@
goto_if_false @SYN2_24037
if 
  250@ == 0
goto_if_false @SYN2_23161
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_23098
266@ = 0.3
goto @SYN2_23154

:SYN2_23098
if 
  268@ <> 1
goto_if_false @SYN2_23154
if 
  not is_char_dead 245@
goto_if_false @SYN2_23154
task_car_drive_wander 245@ {vehicle} 244@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
268@ = 1

:SYN2_23154
goto @SYN2_23575

:SYN2_23161
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_23519
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 0.0
47@, 48@, 49@ = get_char_coordinates $scplayer
44@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -10.0 {zOffset} 0.0
47@, 48@, 49@ = get_char_coordinates $scplayer
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
if 
  is_float_lvar_greater_than_float_lvar 45@ > 44@
goto_if_false @SYN2_23333
add_timed_val_to_float_lvar 266@ +=@ 0.1
goto @SYN2_23512

:SYN2_23333
$x, $y, $z = get_car_coordinates 244@
47@, 48@, 49@ = get_char_coordinates $scplayer
44@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 47@ {toY} 48@ {toZ} 49@
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 244@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_23432
add_timed_val_to_float_lvar 266@ +=@ 0.05
goto @SYN2_23473

:SYN2_23432
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 244@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @SYN2_23473
add_timed_val_to_float_lvar 266@ +=@ -0.01

:SYN2_23473
if 
  0.6 > 266@
goto_if_false @SYN2_23504
266@ = 0.6

:SYN2_23504
set_lvar_float_to_lvar_float 267@ = 44@

:SYN2_23512
goto @SYN2_23575

:SYN2_23519
if 
  268@ <> 1
goto_if_false @SYN2_23575
if 
  not is_char_dead 245@
goto_if_false @SYN2_23575
task_car_drive_wander 245@ {vehicle} 244@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
268@ = 1

:SYN2_23575
if 
  266@ > 1.5
goto_if_false @SYN2_23606
266@ = 1.5

:SYN2_23606
if 
  is_playback_going_on_for_car 244@
goto_if_false @SYN2_23630
set_playback_speed 244@ {speed} 266@

:SYN2_23630
if 
  is_car_stuck_on_roof 244@
goto_if_false @SYN2_23716
if 
  not is_car_on_screen 244@
goto_if_false @SYN2_23716
$x, $y, $z = get_car_coordinates 244@
$heading = get_car_heading 244@
$z += 1.0
set_car_coordinates 244@ {x} $x {y} $y {z} $z
set_car_heading 244@ {heading} $heading

:SYN2_23716
if 
  is_car_stuck 244@
goto_if_false @SYN2_24037
if 
  not is_car_on_screen 244@
goto_if_false @SYN2_24027
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 244@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_23991
$x, $y, $z = get_car_coordinates 244@
41@ = 1

:SYN2_23805
if 
  20 > 41@
goto_if_false @SYN2_23952
47@, 48@, 49@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 41@
if 
  not is_point_on_screen 47@ {y} 48@ {z} 49@ {radius} 5.0
goto_if_false @SYN2_23938
if 
  not is_point_obscured_by_a_mission_entity 47@ {y} 48@ {z} 49@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @SYN2_23924
41@ = 25
goto @SYN2_23931

:SYN2_23924
41@ += 1

:SYN2_23931
goto @SYN2_23945

:SYN2_23938
41@ += 1

:SYN2_23945
goto @SYN2_23805

:SYN2_23952
if 
  41@ == 25
goto_if_false @SYN2_23984
set_car_coordinates 244@ {x} $x {y} $y {z} $z

:SYN2_23984
goto @SYN2_24020

:SYN2_23991
if 
  not is_char_dead 245@
goto_if_false @SYN2_24020
task_car_temp_action 245@ {vehicle} 244@ {actionId} TempAction.Reverse {time} 1000

:SYN2_24020
goto @SYN2_24037

:SYN2_24027
set_car_forward_speed 244@ {forwardSpeed} -10.0

:SYN2_24037
if 
  not is_car_dead 255@
goto_if_false @SYN2_24775
if 
  is_playback_going_on_for_car 255@
goto_if_false @SYN2_24418
if 
  not is_car_dead 244@
goto_if_false @SYN2_24406
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -10.0 {zOffset} 0.0
47@, 48@, 49@ = get_car_coordinates 255@
44@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
47@, 48@, 49@ = get_car_coordinates 255@
45@ = get_distance_between_coords_2d $x {fromY} $y {toX} 47@ {toZ} 48@
if 
  is_float_lvar_greater_than_float_lvar 45@ > 44@
goto_if_false @SYN2_24327
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -15.0 {zOffset} 0.0
if 
  not locate_car_3d 255@ {x} $x {y} $y {z} $z {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SYN2_24312
add_timed_val_to_float_lvar 269@ +=@ -0.2
goto @SYN2_24320

:SYN2_24312
set_lvar_float_to_lvar_float 269@ = 266@

:SYN2_24320
goto @SYN2_24377

:SYN2_24327
if 
  271@ <> 2
goto_if_false @SYN2_24359
set_car_driving_style 255@ {drivingStyle} DrivingMode.PloughThrough
271@ = 2

:SYN2_24359
set_lvar_float_to_lvar_float 269@ = 266@
269@ += 3.0

:SYN2_24377
set_playback_speed 255@ {speed} 269@
273@, 274@, 275@ = get_car_coordinates 244@
goto @SYN2_24411

:SYN2_24406
stop_playback_recorded_car 255@

:SYN2_24411
goto @SYN2_24775

:SYN2_24418
if 
  not is_car_dead 244@
goto_if_false @SYN2_24516
if 
  271@ <> 99
goto_if_false @SYN2_24495
if 
  not is_char_dead 259@
goto_if_false @SYN2_24495
task_car_mission 259@ {vehicle} 255@ {targetVehicle} 244@ {missionId} CarMission.EscortRear {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough
271@ = 99

:SYN2_24495
273@, 274@, 275@ = get_car_coordinates 244@
goto @SYN2_24775

:SYN2_24516
if 
  100 > 271@
goto_if_false @SYN2_24592
if 
  not is_char_dead 259@
goto_if_false @SYN2_24585
task_car_drive_to_coord 259@ {vehicle} 255@ {x} 273@ {y} 274@ {z} 275@ {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
271@ = 100

:SYN2_24585
goto @SYN2_24775

:SYN2_24592
if 
  locate_car_3d 255@ {x} 273@ {y} 274@ {z} 275@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN2_24775
if 
  271@ <> 101
goto_if_false @SYN2_24775
if 
  not is_char_dead 259@
goto_if_false @SYN2_24710
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 259@ {sequence} 53@
clear_sequence_task 53@

:SYN2_24710
if 
  not is_char_dead 248@
goto_if_false @SYN2_24768
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 248@ {sequence} 53@
clear_sequence_task 53@

:SYN2_24768
271@ = 101

:SYN2_24775
if 
  250@ == 0
goto_if_false @SYN2_25084
if 
  not is_car_dead 244@
goto_if_false @SYN2_24849
if 
  has_car_been_damaged_by_char 244@ {handle} $scplayer
goto_if_false @SYN2_24849
250@ = 1
276@ = 1
TIMERA = 0

:SYN2_24849
if 
  not is_car_dead 255@
goto_if_false @SYN2_24898
if 
  has_car_been_damaged_by_char 255@ {handle} $scplayer
goto_if_false @SYN2_24898
250@ = 1
276@ = 1

:SYN2_24898
if 
  not is_car_dead 244@
goto_if_false @SYN2_24997
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 244@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @SYN2_24990
if 
  89@ > 5000
goto_if_false @SYN2_24983
276@ = 1
250@ = 1

:SYN2_24983
goto @SYN2_24997

:SYN2_24990
89@ = 0

:SYN2_24997
if 
  250@ == 1
goto_if_false @SYN2_25084
if 
  not is_car_dead 244@
goto_if_false @SYN2_25038
set_car_driving_style 244@ {drivingStyle} DrivingMode.AvoidCars

:SYN2_25038
if 
  not is_car_dead 244@
goto_if_false @SYN2_25084
82@ = get_car_health 244@
set_lvar_int_to_lvar_int 83@ = 82@
83@ -= 100
81@ = 0

:SYN2_25084
if and
  276@ > 0
  7 > 276@
goto_if_false @SYN2_25668
if 
  TIMERB > 1000
goto_if_false @SYN2_25668
if 
  not is_char_dead 246@
goto_if_false @SYN2_25668
if 
  locate_char_any_means_char_3d $scplayer {target} 246@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYN2_25668
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_25668
switch_start 276@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SYN2_25668 {caseNum1} 1 {caseLabel1} @SYN2_25261 {caseNum2} 2 {caseLabel2} @SYN2_25338 {caseNum3} 3 {caseLabel3} @SYN2_25415 {caseNum4} 4 {caseLabel4} @SYN2_25492 {caseNum5} 5 {caseLabel5} @SYN2_25569 {caseNum6} 6 {caseLabel6} @SYN2_25633 {caseNum7} -1 {caseLabel7} @SYN2_25668

:SYN2_25261
set_var_text_label s$audio_string = 'SYN2_JA'
set_var_int_to_constant $audio_sound_file = 39045
start_new_script @AUDIOL 246@ 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39046
276@ += 1
TIMERB = 0
goto @SYN2_25668

:SYN2_25338
set_var_text_label s$audio_string = 'SYN2_JB'
set_var_int_to_constant $audio_sound_file = 39046
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39049
276@ += 1
TIMERB = 0
goto @SYN2_25668

:SYN2_25415
set_var_text_label s$audio_string = 'SYN2_JE'
set_var_int_to_constant $audio_sound_file = 39049
start_new_script @AUDIOL 246@ 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39050
276@ += 1
TIMERB = 0
goto @SYN2_25668

:SYN2_25492
set_var_text_label s$audio_string = 'SYN2_JF'
set_var_int_to_constant $audio_sound_file = 39050
start_new_script @AUDIOL 246@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39051
276@ += 1
TIMERB = 0
goto @SYN2_25668

:SYN2_25569
set_var_text_label s$audio_string = 'SYN2_JG'
set_var_int_to_constant $audio_sound_file = 39051
start_new_script @AUDIOL 246@ 0 1 1 1 
276@ += 1
TIMERB = 0
goto @SYN2_25668

:SYN2_25633
276@ += 1
if 
  not is_car_dead 244@
goto_if_false @SYN2_25661
clear_car_last_damage_entity 244@

:SYN2_25661
goto @SYN2_25668

:SYN2_25668
if and
  276@ == 7
  278@ > 10000
goto_if_false @SYN2_26111
if 
  not is_car_dead 244@
goto_if_false @SYN2_26111
if 
  has_car_been_damaged_by_char 244@ {handle} $scplayer
goto_if_false @SYN2_26111
if 
  not is_message_being_displayed 
goto_if_false @SYN2_26106
277@ += 1
if 
  277@ > 4
goto_if_false @SYN2_25774
277@ = 0

:SYN2_25774
switch_start 277@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SYN2_26087 {caseNum1} 0 {caseLabel1} @SYN2_25837 {caseNum2} 1 {caseLabel2} @SYN2_25887 {caseNum3} 2 {caseLabel3} @SYN2_25937 {caseNum4} 3 {caseLabel4} @SYN2_25987 {caseNum5} 4 {caseLabel5} @SYN2_26037 {caseNum6} -1 {caseLabel6} @SYN2_26087 {caseNum7} -1 {caseLabel7} @SYN2_26087

:SYN2_25837
set_var_text_label s$audio_string = 'SYN2_KA'
set_var_int_to_constant $audio_sound_file = 39053
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_26087

:SYN2_25887
set_var_text_label s$audio_string = 'SYN2_KB'
set_var_int_to_constant $audio_sound_file = 39054
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_26087

:SYN2_25937
set_var_text_label s$audio_string = 'SYN2_KC'
set_var_int_to_constant $audio_sound_file = 39055
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_26087

:SYN2_25987
set_var_text_label s$audio_string = 'SYN2_KD'
set_var_int_to_constant $audio_sound_file = 39056
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_26087

:SYN2_26037
set_var_text_label s$audio_string = 'SYN2_KE'
set_var_int_to_constant $audio_sound_file = 39057
start_new_script @AUDIOL 246@ 0 1 1 0 
goto @SYN2_26087

:SYN2_26087
278@ = 0
clear_car_last_damage_entity 244@
goto @SYN2_26111

:SYN2_26106
clear_car_last_damage_entity 244@

:SYN2_26111
if 
  250@ == 1
goto_if_false @SYN2_26352
if 
  not is_char_dead 248@
goto_if_false @SYN2_26352
if 
  not is_car_dead 255@
goto_if_false @SYN2_26352
if 
  not is_char_dead 259@
goto_if_false @SYN2_26281
if 
  is_char_in_car 248@ {vehicle} 255@
goto_if_false @SYN2_26203
goto @SYN2_26274

:SYN2_26203
41@ = get_script_task_status 248@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_26274
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 248@ {sequence} 53@
clear_sequence_task 53@

:SYN2_26274
goto @SYN2_26352

:SYN2_26281
41@ = get_script_task_status 248@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @SYN2_26352
53@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_kinda_stay_in_same_place -1 {state} True
close_sequence_task 53@
perform_sequence_task 248@ {sequence} 53@
clear_sequence_task 53@

:SYN2_26352
41@ = 0

:SYN2_26359
if 
  2 > 41@
goto_if_false @SYN2_26891
if 
  does_vehicle_exist 255@(41@,4i)
goto_if_false @SYN2_26877
if 
  not is_car_dead 255@(41@,4i)
goto_if_false @SYN2_26877
if 
  not is_car_dead 244@
goto_if_false @SYN2_26877
$x, $y, $z = get_car_coordinates 244@
if 
  not locate_car_3d 255@(41@,4i) {x} $x {y} $y {z} $z {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @SYN2_26877
$x, $y, $z = get_char_coordinates $scplayer
if 
  not locate_car_3d 255@(41@,4i) {x} $x {y} $y {z} $z {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @SYN2_26877
if 
  not is_car_on_screen 255@(41@,4i)
goto_if_false @SYN2_26877
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} 0.0 {yOffset} -15.0 {zOffset} 0.0
42@ = 1

:SYN2_26609
if 
  20 > 42@
goto_if_false @SYN2_26756
47@, 48@, 49@ = get_nth_closest_car_node $x {fromY} $y {fromZ} $z {n} 42@
if 
  not is_point_on_screen 47@ {y} 48@ {z} 49@ {radius} 5.0
goto_if_false @SYN2_26742
if 
  not is_point_obscured_by_a_mission_entity 47@ {y} 48@ {z} 49@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @SYN2_26728
42@ = 25
goto @SYN2_26735

:SYN2_26728
42@ += 1

:SYN2_26735
goto @SYN2_26749

:SYN2_26742
42@ += 1

:SYN2_26749
goto @SYN2_26609

:SYN2_26756
if 
  42@ == 25
goto_if_false @SYN2_26877
set_car_coordinates 255@(41@,4i) {x} 47@ {y} 48@ {z} 49@
if 
  not is_car_dead 244@
goto_if_false @SYN2_26822
$x, $y, $z = get_car_coordinates 244@

:SYN2_26822
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 47@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 48@
$heading = get_heading_from_vector_2d 50@ {y} 51@
set_car_heading 255@(41@,4i) {heading} $heading

:SYN2_26877
41@ += 1
goto @SYN2_26359

:SYN2_26891
if 
  56@ == 1
goto_if_false @SYN2_26950
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @SYN2_26950
if 
  not is_car_dead 244@
goto_if_false @SYN2_26950
set_car_health 244@ {health} 499

:SYN2_26950
41@ = 0
if 
  is_char_dead 246@
goto_if_false @SYN2_27001
if 
  does_blip_exist 249@
goto_if_false @SYN2_26994
remove_blip 249@

:SYN2_26994
41@ += 1

:SYN2_27001
if 
  is_char_dead 259@
goto_if_false @SYN2_27045
if 
  does_blip_exist 263@
goto_if_false @SYN2_27038
remove_blip 263@

:SYN2_27038
41@ += 1

:SYN2_27045
if 
  is_char_dead 248@
goto_if_false @SYN2_27089
if 
  does_blip_exist 264@
goto_if_false @SYN2_27082
remove_blip 264@

:SYN2_27082
41@ += 1

:SYN2_27089
if 
  41@ == 3
goto_if_false @SYN2_27114
35@ = 99

:SYN2_27114
if 
  not is_char_dead 246@
goto_if_false @SYN2_27224
if 
  not locate_char_any_means_char_2d $scplayer {target} 246@ {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @SYN2_27217
if 
  87@ > 20000
goto_if_false @SYN2_27210
gosub @SYN2_31023
print_now 'SYN2_71' {time} 5000 {flag} 1
37@ = 1

:SYN2_27210
goto @SYN2_27224

:SYN2_27217
87@ = 0

:SYN2_27224
if 
  35@ == 99
goto_if_false @SYN2_27296
34@ += 1
35@ = 0
TIMERA = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 20600

:SYN2_27270
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN2_27296
wait 0
goto @SYN2_27270

:SYN2_27296
return 

:SYN2_27298
if 
  35@ == 0
goto_if_false @SYN2_27432
if 
  TIMERA > 3000
goto_if_false @SYN2_27432
if 
  not is_car_dead 59@
goto_if_false @SYN2_27418
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_27386
print 'SYN_M_1' {time} 7000 {flag} 1

:SYN2_27386
$x, $y, $z = get_car_coordinates 59@
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 59@
play_mission_audio MissionAudioSlot.Slot3
90@ = 1

:SYN2_27418
TIMERA = 0
35@ += 1

:SYN2_27432
if 
  35@ == 1
goto_if_false @SYN2_27543
if 
  not is_car_dead 59@
goto_if_false @SYN2_27543
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_27543
if 
  TIMERA > 2000
goto_if_false @SYN2_27532
set_player_control $player1 {state} False
283@ = -1
TIMERA = 0
35@ += 1

:SYN2_27532
clear_this_print 'SYN_M_1'

:SYN2_27543
if 
  35@ == 2
goto_if_false @SYN2_27616
if 
  not is_car_dead 59@
goto_if_false @SYN2_27616
if 
  is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_27616
clear_prints 
clear_mission_audio MissionAudioSlot.Slot3
90@ = 0
35@ += 1

:SYN2_27616
if 
  35@ == 3
goto_if_false @SYN2_27768
279@ = 0
283@ = -1
clear_prints 
do_fade 150 {direction} Fade.Out

:SYN2_27657
if 
  get_fading_status 
goto_if_false @SYN2_27681
wait 0
goto @SYN2_27657

:SYN2_27681
gosub @SYN2_29128
do_fade 150 {direction} Fade.In

:SYN2_27695
if 
  get_fading_status 
goto_if_false @SYN2_27719
wait 0
goto @SYN2_27695

:SYN2_27719
if 
  not is_car_dead 255@
goto_if_false @SYN2_27740
delete_car 255@

:SYN2_27740
if 
  not is_car_dead 256@
goto_if_false @SYN2_27761
delete_car 256@

:SYN2_27761
35@ += 1

:SYN2_27768
if 
  35@ == 4
goto_if_false @SYN2_27826
if 
  TIMERA > 1000
goto_if_false @SYN2_27826
247@ = 0
TIMERA = 0
35@ += 1

:SYN2_27826
if and
  35@ > 4
  99 > 35@
goto_if_false @SYN2_28375
if 
  $audio_line_is_active == 0
goto_if_false @SYN2_28375
if 
  54@ > 1000
goto_if_false @SYN2_28375
switch_start 247@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SYN2_28368 {caseNum1} 0 {caseLabel1} @SYN2_27951 {caseNum2} 1 {caseLabel2} @SYN2_28021 {caseNum3} 2 {caseLabel3} @SYN2_28090 {caseNum4} 3 {caseLabel4} @SYN2_28159 {caseNum5} 4 {caseLabel5} @SYN2_28228 {caseNum6} 5 {caseLabel6} @SYN2_28297 {caseNum7} 6 {caseLabel7} @SYN2_28354

:SYN2_27951
set_var_text_label s$audio_string = 'SYN2_GA'
set_var_int_to_constant $audio_sound_file = 39033
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39034
247@ += 1
goto @SYN2_28368

:SYN2_28021
set_var_text_label s$audio_string = 'SYN2_GB'
set_var_int_to_constant $audio_sound_file = 39034
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39035
247@ += 1
goto @SYN2_28368

:SYN2_28090
set_var_text_label s$audio_string = 'SYN2_GC'
set_var_int_to_constant $audio_sound_file = 39035
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39036
247@ += 1
goto @SYN2_28368

:SYN2_28159
set_var_text_label s$audio_string = 'SYN2_GD'
set_var_int_to_constant $audio_sound_file = 39036
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39038
247@ += 1
goto @SYN2_28368

:SYN2_28228
set_var_text_label s$audio_string = 'SYN2_GF'
set_var_int_to_constant $audio_sound_file = 39038
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 39037
247@ += 1
goto @SYN2_28368

:SYN2_28297
set_var_text_label s$audio_string = 'SYN2_GE'
set_var_int_to_constant $audio_sound_file = 39037
start_new_script @AUDIOL $scplayer 0 1 2 1 
247@ += 1
goto @SYN2_28368

:SYN2_28354
247@ += 1
goto @SYN2_28368

:SYN2_28368
54@ = 0

:SYN2_28375
if 
  35@ == 5
goto_if_false @SYN2_28424
if or
  247@ > 6
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN2_28424
35@ = 99

:SYN2_28424
if 
  35@ == 99
goto_if_false @SYN2_28605
do_fade 500 {direction} Fade.Out

:SYN2_28449
if 
  get_fading_status 
goto_if_false @SYN2_28473
wait 0
goto @SYN2_28449

:SYN2_28473
gosub @SYN2_31023
if 
  not is_car_dead 59@
goto_if_false @SYN2_28528
$x, $y, $z = get_car_coordinates 59@
clear_area $x {y} $y {z} $z {radius} 15.0 {clearParticles} True

:SYN2_28528
do_fade 500 {direction} Fade.In

:SYN2_28535
if 
  get_fading_status 
goto_if_false @SYN2_28559
wait 0
goto @SYN2_28535

:SYN2_28559
$audio_line_is_active = 0
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @SYN2_28591
alter_wanted_level $player1 {wantedLevel} 2

:SYN2_28591
36@ = 1
34@ += 1

:SYN2_28605
return 

:SYN2_28607
if 
  90@ == 1
goto_if_false @SYN2_28644
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @SYN2_28644
play_mission_audio MissionAudioSlot.Slot3

:SYN2_28644
if 
  7 > 34@
goto_if_false @SYN2_28724
if 
  does_char_exist 67@
goto_if_false @SYN2_28724
if 
  is_char_dead 67@
goto_if_false @SYN2_28724
gosub @SYN2_31023
print_now 'SYN_F_5' {time} 5000 {flag} 1
37@ = 1

:SYN2_28724
if 
  does_char_exist 68@
goto_if_false @SYN2_28786
if 
  is_char_dead 68@
goto_if_false @SYN2_28786
gosub @SYN2_31023
print_now 'SYN_F_5' {time} 5000 {flag} 1
37@ = 1

:SYN2_28786
if 
  does_char_exist 69@
goto_if_false @SYN2_28848
if 
  is_char_dead 69@
goto_if_false @SYN2_28848
gosub @SYN2_31023
print_now 'SYN_F_5' {time} 5000 {flag} 1
37@ = 1

:SYN2_28848
if 
  does_vehicle_exist 59@
goto_if_false @SYN2_28910
if 
  is_car_dead 59@
goto_if_false @SYN2_28910
gosub @SYN2_31023
print_now 'SYN_F_2' {time} 5000 {flag} 1
37@ = 1

:SYN2_28910
if 
  34@ > 2
goto_if_false @SYN2_29022
if 
  not is_car_dead 59@
goto_if_false @SYN2_29022
if 
  not is_char_in_car $scplayer {vehicle} 59@
goto_if_false @SYN2_29001
if 
  not does_blip_exist 61@
goto_if_false @SYN2_28994
61@ = add_blip_for_car 59@
set_blip_as_friendly 61@ {state} True

:SYN2_28994
goto @SYN2_29022

:SYN2_29001
if 
  does_blip_exist 61@
goto_if_false @SYN2_29022
remove_blip 61@

:SYN2_29022
return 

:SYN2_29024
if 
  not is_char_dead 68@
goto_if_false @SYN2_29126
clear_char_tasks 68@
53@ = open_sequence_task 
task_duck -1 {time} 2000
if 
  not is_char_dead 71@
goto_if_false @SYN2_29090
task_smart_flee_char -1 {threat} 71@ {radius} 100.0 {time} 60000

:SYN2_29090
task_wander_standard -1
close_sequence_task 53@
perform_sequence_task 68@ {sequence} 53@
clear_sequence_task 53@
78@ = 0
86@ = 99

:SYN2_29126
return 

:SYN2_29128
280@ = 1
285@ = get_current_char_weapon $scplayer
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @SYN2_29214
remove_weapon_from_char $scplayer {weaponType} WeaponType.BrassKnuckles
284@ = 1
request_model 331

:SYN2_29180
if 
  not has_model_loaded 331
goto_if_false @SYN2_29207
wait 0
goto @SYN2_29180

:SYN2_29207
goto @SYN2_29221

:SYN2_29214
284@ = 0

:SYN2_29221
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN2_29297
request_animation "CAR_CHAT"

:SYN2_29263
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN2_29297
wait 0
goto @SYN2_29263

:SYN2_29297
if 
  not has_model_loaded 330
goto_if_false @SYN2_29345
request_model 330

:SYN2_29318
if 
  not has_model_loaded 330
goto_if_false @SYN2_29345
wait 0
goto @SYN2_29318

:SYN2_29345
if 
  not is_car_dead 59@
goto_if_false @SYN2_29452
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} -0.49 {yOffset} 0.05 {zOffset} 0.183
clear_area $x {y} $y {z} $z {radius} 2.0 {clearParticles} True
$x, $y, $z = get_car_coordinates 59@
$heading = get_car_heading 59@
set_car_coordinates 59@ {x} $x {y} $y {z} $z
set_car_heading 59@ {heading} $heading

:SYN2_29452
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 59@
goto_if_false @SYN2_29491
freeze_car_position 59@ {state} True
close_all_car_doors 59@

:SYN2_29491
$x, $y, $z = get_char_coordinates $scplayer
if 
  279@ == 0
goto_if_false @SYN2_29597
if 
  not is_car_dead 59@
goto_if_false @SYN2_29597
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} 0.01 {yOffset} 0.75 {zOffset} 0.77
50@, 51@, 52@ = get_offset_from_car_in_world_coords 59@ {xOffset} -0.36 {yOffset} 0.12 {zOffset} 0.66

:SYN2_29597
if 
  279@ == 1
goto_if_false @SYN2_29689
if 
  not is_car_dead 59@
goto_if_false @SYN2_29689
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} -0.04 {yOffset} 0.68 {zOffset} 0.69
50@, 51@, 52@ = get_offset_from_car_in_world_coords 59@ {xOffset} -0.55 {yOffset} -0.29 {zOffset} 0.64

:SYN2_29689
if 
  279@ == 2
goto_if_false @SYN2_29781
if 
  not is_car_dead 59@
goto_if_false @SYN2_29781
$x, $y, $z = get_offset_from_car_in_world_coords 59@ {xOffset} 0.51 {yOffset} -0.9 {zOffset} 0.84
50@, 51@, 52@ = get_offset_from_car_in_world_coords 59@ {xOffset} -0.41 {yOffset} -0.14 {zOffset} 0.64

:SYN2_29781
85@ = create_object 330 {x} $x {y} $y {z} $z
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 59@
goto_if_false @SYN2_29851
attach_char_to_car $scplayer {vehicle} 59@ {xOffset} -0.49 {yOffset} 0.05 {zOffset} 0.183 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:SYN2_29851
if 
  279@ == 0
goto_if_false @SYN2_30225
53@ = open_sequence_task 
task_pick_up_object -1 {object} 85@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@

:SYN2_30225
if 
  279@ == 1
goto_if_false @SYN2_30567
53@ = open_sequence_task 
task_pick_up_object -1 {object} 85@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB_TO_A" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@

:SYN2_30567
if 
  279@ == 2
goto_if_false @SYN2_30951
53@ = open_sequence_task 
task_pick_up_object -1 {object} 85@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA_TO_B" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPB_TO_A" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_LOOPA" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "CARFONE_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 53@

:SYN2_30951
perform_sequence_task $scplayer {sequence} 53@
clear_sequence_task 53@
wait 0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 50@ {y} 51@ {z} 52@ {switchStyle} SwitchType.JumpCut
set_near_clip 0.01
TIMERA = 0
return 

:SYN2_31023
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  284@ == 1
goto_if_false @SYN2_31078
give_weapon_to_char $scplayer {weaponType} WeaponType.BrassKnuckles {ammo} 1
284@ = 0
mark_model_as_no_longer_needed 331

:SYN2_31078
set_current_char_weapon $scplayer {weaponType} 285@
clear_prints 
set_player_control $player1 {state} True
if 
  not is_car_dead 59@
goto_if_false @SYN2_31159
freeze_car_position 59@ {state} False
if 
  280@ == 1
goto_if_false @SYN2_31159
detach_char_from_car $scplayer
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 59@
delete_object 85@

:SYN2_31159
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
remove_blip 263@
remove_blip 264@
280@ = 0
return 

:SYN2_31186
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN2_31204
if 
  $syn2_mission_attempts == 0
goto_if_false @SYN2_31291
remove_blip $synd_contact_blip
remove_blip $garage_contact_blip
remove_blip $scrash_contact_blip
$synd_contact_blip = add_sprite_blip_for_contact_point $syndX {y} $syndY {z} $syndZ {sprite} $synd_blip_icon
$flag_synd_mission_counter += 1
$syn2_mission_attempts = 1
print_now 'SYN2_60' {time} 10000 {flag} 1
goto @SYN2_31355

:SYN2_31291
$flag_synd_mission_counter += 1
register_mission_passed 'SYND_2'
print_with_number_big 'M_PASSS' {num} 3000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 3000
award_player_mission_respect 20
play_mission_passed_tune 1
set_int_stat StatId.PassedSyndicate2 {value} 1
player_made_progress 1

:SYN2_31355
return 

:SYN2_31357
if 
  is_player_playing $player1
goto_if_false @SYN2_31384
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0

:SYN2_31384
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_car_dead 59@
goto_if_false @SYN2_31427
set_can_burst_car_tyres 59@ {state} True

:SYN2_31427
if 
  is_player_playing $player1
goto_if_false @SYN2_31448
clear_char_tasks $scplayer

:SYN2_31448
switch_ped_roads_on -2431.115 {leftBottomY} -169.4874 {leftBottomZ} 33.0 {rightTopX} -2426.5129 {rightTopY} -117.2969 {rightTopZ} 36.0
switch_ped_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
switch_roads_on -1950.0 {leftBottomY} 718.0 {leftBottomZ} 44.0 {rightTopX} -1912.0 {rightTopY} 731.0 {rightTopZ} 48.0
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 575
mark_model_as_no_longer_needed 64
unload_special_character 1
remove_animation "GANGS"
mark_model_as_no_longer_needed 237
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 545
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 72
mark_model_as_no_longer_needed 73
mark_model_as_no_longer_needed 245
mark_model_as_no_longer_needed 346
remove_animation "CRACK"
remove_animation "FIGHT_D"
remove_animation "MISC"
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 579
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 330
remove_animation "CAR_CHAT"
remove_blip 60@
remove_blip 61@
remove_blip 62@
remove_blip 63@
remove_blip 64@
remove_blip 249@
remove_decision_maker 232@
remove_decision_maker 231@
clear_onscreen_counter $girl_health
clear_onscreen_timer $syn2_time_until_backup
clear_onscreen_timer $girl2_timer
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
dont_suppress_car_model 575
dont_suppress_car_model 545
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 60---------------
// Originally: Outrider

:SYN3
script_name 'SYN3'
gosub @SYN3_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN3_38
gosub @SYN3_19140

:SYN3_38
gosub @SYN3_19234
terminate_this_script 

:SYN3_47
register_mission_given 
load_mission_text 'SYN3'
$onmission = 1
wait 0
38@ = -1832.33
39@ = -14.59
40@ = 15.39
41@ = 270.0
42@ = -1815.04
43@ = 2.59
44@ = 14.99
45@ = -2127.4199
46@ = -100.65
47@ = 34.37
56@ = 9.5
103@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
57@ = 1
142@ = 0
143@ = 0
144@ = 0
145@ = 0
97@ = 0

:SYN3_272
if 
  3 > 97@
goto_if_false @SYN3_337
146@(97@,3i) = 0
149@(97@,3i) = 0
180@(97@,3i) = 0
97@ += 1
goto @SYN3_272

:SYN3_337
97@ = 0

:SYN3_344
if 
  6 > 97@
goto_if_false @SYN3_398
155@(97@,6i) = 0
183@(97@,6i) = 0
97@ += 1
goto @SYN3_344

:SYN3_398
97@ = 0

:SYN3_405
if 
  3 > 97@
goto_if_false @SYN3_448
152@(97@,3i) = 0
97@ += 1
goto @SYN3_405

:SYN3_448
97@ = 0

:SYN3_455
if 
  6 > 97@
goto_if_false @SYN3_509
164@(97@,6i) = 0
189@(97@,6i) = 0
97@ += 1
goto @SYN3_455

:SYN3_509
97@ = 0

:SYN3_516
if 
  3 > 97@
goto_if_false @SYN3_559
161@(97@,3i) = 0
97@ += 1
goto @SYN3_516

:SYN3_559
97@ = 0

:SYN3_566
if 
  3 > 97@
goto_if_false @SYN3_631
170@(97@,3i) = 0
173@(97@,3i) = 0
195@(97@,3i) = 0
97@ += 1
goto @SYN3_566

:SYN3_631
176@ = 0
177@ = 0
178@ = 0
179@ = 0
198@ = -1
97@ = 0

:SYN3_673
if 
  4 > 97@
goto_if_false @SYN3_716
199@(97@,4i) = 0
97@ += 1
goto @SYN3_673

:SYN3_716
205@ = 0
97@ = 0

:SYN3_730
if 
  4 > 97@
goto_if_false @SYN3_773
206@(97@,4i) = 0
97@ += 1
goto @SYN3_730

:SYN3_773
210@ = 0
128@ = 0
129@ = 0
131@ = 0
211@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SYN3_823
if 
  get_fading_status 
goto_if_false @SYN3_847
wait 0
goto @SYN3_823

:SYN3_847
clear_this_print_big_now TextStyle.Middle
if 
  211@ == 1
goto_if_false @SYN3_944
35@ = create_car 468 {x} 0.0 {y} 0.0 {z} -100.0
214@ = add_blip_for_car 35@
36@ = create_car 440 {x} 0.0 {y} 0.0 {z} -100.0
37@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 173
215@ = add_blip_for_car 36@

:SYN3_944
request_model 421
request_model 359
request_model 358
request_model 468
request_model 330
request_model #BODYARMOUR

:SYN3_973
if or
  not has_model_loaded 421
  not has_model_loaded 359
  not has_model_loaded 358
  not has_model_loaded 468
  not has_model_loaded 330
  not has_model_loaded #BODYARMOUR
goto_if_false @SYN3_1024
wait 0
goto @SYN3_973

:SYN3_1024
248@ = get_max_wanted_level 
set_player_control $player1 {state} False
switch_widescreen True
clear_area -2030.4 {y} 148.83 {z} 27.84 {radius} 100.0 {clearParticles} False
load_scene -2030.4 {y} 148.83 {z} 27.84
set_char_coordinates $scplayer {x} -2030.4 {y} 148.83 {z} 27.84
set_char_heading $scplayer {heading} 270.0
set_fixed_camera_position -2027.45 {y} 150.01 {z} 29.01 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2028.92 {y} 149.37 {z} 29.03 {switchStyle} SwitchType.JumpCut
132@ = 0
gosub @SYN3_17788
task_use_mobile_phone $scplayer {start} True
do_fade 1000 {direction} Fade.In

:SYN3_1190
if 
  get_fading_status 
goto_if_false @SYN3_1214
wait 0
goto @SYN3_1190

:SYN3_1214
wait 1500

:SYN3_1219
if 
  2 > 129@
goto_if_false @SYN3_1346
wait 0
if 
  is_player_playing $player1
goto_if_false @SYN3_1318
gosub @SYN3_18315
if and
  128@ == 2
  129@ == 1
  131@ <> 1
goto_if_false @SYN3_1311
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_1311
goto @SYN3_1339

:SYN3_1318
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
131@ = 0
set_lvar_int_to_lvar_int 129@ = 130@

:SYN3_1339
goto @SYN3_1219

:SYN3_1346
stop_char_facial_talk $scplayer
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} True

:SYN3_1373
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_1538
wait 0
if and
  is_player_playing $player1
  not is_char_in_water $scplayer
  not is_char_in_air $scplayer
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYN3_1489
gosub @SYN3_18315
if and
  128@ == 2
  129@ == 7
  131@ <> 1
goto_if_false @SYN3_1482
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_1482
goto @SYN3_1531

:SYN3_1489
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
131@ = 0
if 
  is_player_playing $player1
goto_if_false @SYN3_1523
stop_char_facial_talk $scplayer

:SYN3_1523
set_lvar_int_to_lvar_int 129@ = 130@

:SYN3_1531
goto @SYN3_1373

:SYN3_1538
stop_char_facial_talk $scplayer
95@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_1579
task_use_mobile_phone $scplayer {start} False

:SYN3_1579
mark_model_as_no_longer_needed 330
set_everyone_ignore_player $player1 {state} False
wait 2500
custom_plate_for_next_car 421 {text} "_OMEGA__"
34@ = create_car 421 {x} -1665.27 {y} 412.923 {z} 6.192
set_car_heading 34@ {heading} 134.44
change_car_colour 34@ {color1} 84 {color2} 84
212@ = add_blip_for_car 34@
set_blip_as_friendly 212@ {state} True
freeze_car_position 34@ {state} True
print_now 'SYN3_18' {time} 10000 {flag} 0

:SYN3_1691
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SYN3_1717
goto @SYN3_19158

:SYN3_1717
if and
  134@ <> 1
  not is_car_dead 34@
goto_if_false @SYN3_2669
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 34@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_2669
remove_blip 212@
134@ = 1
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:SYN3_1810
if 
  get_fading_status 
goto_if_false @SYN3_1834
wait 0
goto @SYN3_1810

:SYN3_1834
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_1870
warp_char_from_car_to_coord $scplayer {x} -1672.64 {y} 404.17 {z} 6.18

:SYN3_1870
clear_area -1665.27 {y} 412.923 {z} 6.192 {radius} 50.0 {clearParticles} False
if 
  not is_car_dead 34@
goto_if_false @SYN3_1917
set_car_visible 34@ {state} False

:SYN3_1917
make_player_safe_for_cutscene $player1
load_cutscene 'SYND_3A'

:SYN3_1933
if 
  not has_cutscene_loaded 
goto_if_false @SYN3_1957
wait 0
goto @SYN3_1933

:SYN3_1957
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYN3_1966
if 
  not has_cutscene_finished 
goto_if_false @SYN3_1990
wait 0
goto @SYN3_1966

:SYN3_1990
do_fade 0 {direction} Fade.Out

:SYN3_1996
if 
  get_fading_status 
goto_if_false @SYN3_2020
wait 0
goto @SYN3_1996

:SYN3_2020
clear_cutscene 
set_player_control $player1 {state} False
load_special_character 1 {modelName} 'TORINO'
load_special_character 2 {modelName} 'TBONE'

:SYN3_2055
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
goto_if_false @SYN3_2085
wait 0
goto @SYN3_2055

:SYN3_2085
if 
  not is_car_dead 34@
goto_if_false @SYN3_2356
set_car_visible 34@ {state} True
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_2144
warp_char_from_car_to_coord $scplayer {x} -1665.27 {y} 412.923 {z} -4.192

:SYN3_2144
warp_char_into_car $scplayer {vehicle} 34@
137@ = 1
freeze_car_position 34@ {state} False
100@ = create_char_as_passenger 34@ {pedType} PedType.Mission1 {modelId} 290 {seat} SeatId.BikeRear
set_char_health 100@ {health} 500
set_char_max_health 100@ {maxHealth} 500
set_char_never_targetted 100@ {state} True
set_char_suffers_critical_hits 100@ {state} False
set_char_cant_be_dragged_out 100@ {state} True
set_char_stay_in_car_when_jacked 100@ {state} True
set_char_get_out_upside_down_car 100@ {state} False
101@ = create_char_as_passenger 34@ {pedType} PedType.Mission1 {modelId} 291 {seat} SeatId.RearLeft
set_char_health 101@ {health} 500
set_char_max_health 101@ {maxHealth} 500
set_char_never_targetted 101@ {state} True
set_char_suffers_critical_hits 101@ {state} False
set_char_cant_be_dragged_out 101@ {state} True
set_char_stay_in_car_when_jacked 101@ {state} True
set_char_get_out_upside_down_car 101@ {state} False
102@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 102@ {event} Event.VehicleOnFire
set_char_decision_maker 100@ {handleOrTemplate} 102@
set_char_decision_maker 101@ {handleOrTemplate} 102@
clear_all_char_relationships 100@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 100@ {relationshipType} RelationshipType.Hate
clear_all_char_relationships 101@ {relationshipType} RelationshipType.Dislike
clear_all_char_relationships 101@ {relationshipType} RelationshipType.Hate

:SYN3_2356
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.RocketLauncher
if 
  91@ == 0
goto_if_false @SYN3_2394
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.RocketLauncherHs

:SYN3_2394
92@ = 20
sub_int_lvar_from_int_lvar 92@ -= 91@
if 
  92@ > 0
goto_if_false @SYN3_2470
89@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 92@ {x} -1831.0 {y} -21.43 {z} 15.16
247@ = add_blip_for_pickup 89@
goto @SYN3_2477

:SYN3_2470
135@ = 1

:SYN3_2477
93@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
94@ = 40
sub_int_lvar_from_int_lvar 94@ -= 93@
if 
  94@ > 0
goto_if_false @SYN3_2548
90@ = create_pickup_with_ammo 358 {pickupType} PickupType.Once {ammo} 94@ {x} -1837.0 {y} -21.43 {z} 15.16

:SYN3_2548
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 358
gosub @SYN3_6547
35@ = create_car 468 {x} -1830.16 {y} -17.64 {z} 14.79
set_car_heading 35@ {heading} 268.78
wait 500
do_fade 1500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
213@ = add_blip_for_coord 42@ {y} 43@ {z} 44@
print_now 'SYN3_1' {time} 10000 {flag} 0
if 
  135@ <> 1
goto_if_false @SYN3_2669

:SYN3_2669
if and
  134@ == 1
  136@ <> 1
  not is_car_dead 34@
goto_if_false @SYN3_3214
if and
  137@ == 1
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SYN3_3013
remove_blip 213@
212@ = add_blip_for_car 34@
set_blip_as_friendly 212@ {state} True
gosub @SYN3_18546
if 
  is_char_dead 100@
goto_if_false @SYN3_2795
clear_mission_audio MissionAudioSlot.Slot2
print_now 'SYN3_27' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_2795
if 
  is_char_dead 101@
goto_if_false @SYN3_2834
print_now 'SYN3_28' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_2834
if 
  is_car_dead 34@
goto_if_false @SYN3_2873
print_now 'SYN3_19' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_2873
if 
  is_car_dead 36@
goto_if_false @SYN3_2912
print_now 'SYN3_15' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_2912
if 
  is_char_dead 37@
goto_if_false @SYN3_2951
print_now 'SYN3_16' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_2951
if 
  is_car_dead 35@
goto_if_false @SYN3_2990
print_now 'SYN3_14' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_2990
print_now 'SYN3_26' {time} 7000 {flag} 0
137@ = 0

:SYN3_3013
if and
  137@ == 0
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @SYN3_3081
remove_blip 212@
213@ = add_blip_for_coord 42@ {y} 43@ {z} 44@
print_now 'SYN3_1' {time} 7000 {flag} 0
137@ = 1

:SYN3_3081
if 
  137@ == 1
goto_if_false @SYN3_3214
if 
  locate_char_in_car_3d $scplayer {x} 42@ {y} 43@ {z} 44@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SYN3_3214
remove_blip 213@
136@ = 1
set_player_control $player1 {state} False
gosub @SYN3_16390
if 
  not is_car_dead 35@
goto_if_false @SYN3_3198
214@ = add_blip_for_car 35@
set_blip_as_friendly 214@ {state} True

:SYN3_3198
print_now 'SYN3_25' {time} 10000 {flag} 0

:SYN3_3214
if and
  136@ == 1
  138@ <> 1
goto_if_false @SYN3_3579
if 
  not is_car_dead 35@
goto_if_false @SYN3_3579
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @SYN3_3579
remove_blip 214@
gosub @SYN3_6701
138@ = 1
if 
  not is_car_dead 36@
goto_if_false @SYN3_3331
215@ = add_blip_for_car 36@
set_blip_as_friendly 215@ {state} True
change_blip_display 215@ {display} BlipDisplay.BlipOnly

:SYN3_3331
216@ = add_blip_for_coord -2007.75 {y} 533.24 {z} 33.91
set_coord_blip_appearance 216@ {color} CoordAppearance.Enemy
print_now 'SYN3_2' {time} 10000 {flag} 0
141@ = 0
TIMERB = 0
gosub @SYN3_6965
gosub @SYN3_8754
142@ = 1
switch_roads_off -2005.23 {leftBottomY} 517.16 {leftBottomZ} 33.0 {rightTopX} -2002.6899 {rightTopY} 554.12 {rightTopZ} 36.0
switch_roads_off -2097.8 {leftBottomY} 319.42 {leftBottomZ} 33.0 {rightTopX} -2035.5699 {rightTopY} 321.05 {rightTopZ} 36.0
switch_roads_off -2150.1799 {leftBottomY} 138.75 {leftBottomZ} 33.0 {rightTopX} -2145.71 {rightTopY} 160.84 {rightTopZ} 36.0
switch_roads_off -2168.24 {leftBottomY} 42.13 {leftBottomZ} 33.0 {rightTopX} -2165.99 {rightTopY} 61.7 {rightTopZ} 36.0
switch_random_trains False
249@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} -2060.03 {y} 304.18 {z} 35.81
140@ = 0
gosub @SYN3_14963

:SYN3_3579
if 
  139@ <> 1
goto_if_false @SYN3_6540
if 
  134@ == 1
goto_if_false @SYN3_3661
if 
  135@ <> 1
goto_if_false @SYN3_3661
if 
  has_pickup_been_collected 89@
goto_if_false @SYN3_3661
remove_blip 247@
135@ = 1

:SYN3_3661
if and
  138@ == 1
  not is_car_dead 36@
goto_if_false @SYN3_5972
if and
  141@ <> 1
  TIMERB >= 10000
goto_if_false @SYN3_3772
if 
  does_blip_exist 247@
goto_if_false @SYN3_3749
print_now 'SYN3_3' {time} 7000 {flag} 0
goto @SYN3_3765

:SYN3_3749
print_now 'SYN3_4' {time} 7000 {flag} 0

:SYN3_3765
141@ = 1

:SYN3_3772
if or
  57@ >= 1
  57@ == -1
goto_if_false @SYN3_3947
if or
  locate_char_any_means_2d $scplayer {x} -1999.7 {y} 527.27 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -1999.7 {y} 527.27 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_3901
if 
  142@ == 1
goto_if_false @SYN3_3894
gosub @SYN3_9322
142@ = 0

:SYN3_3894
goto @SYN3_3933

:SYN3_3901
if 
  142@ == 0
goto_if_false @SYN3_3933
gosub @SYN3_8754
142@ = 1

:SYN3_3933
198@ = 0
gosub @SYN3_11986

:SYN3_3947
if or
  57@ >= 2
  57@ == -1
goto_if_false @SYN3_4122
if or
  locate_char_any_means_2d $scplayer {x} -2085.74 {y} 320.74 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -2085.74 {y} 320.74 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_4076
if 
  143@ == 1
goto_if_false @SYN3_4069
gosub @SYN3_9464
143@ = 0

:SYN3_4069
goto @SYN3_4108

:SYN3_4076
if 
  143@ == 0
goto_if_false @SYN3_4108
gosub @SYN3_8896
143@ = 1

:SYN3_4108
198@ = 1
gosub @SYN3_11986

:SYN3_4122
if or
  57@ >= 3
  57@ == -1
goto_if_false @SYN3_4297
if or
  locate_char_any_means_2d $scplayer {x} -2146.6201 {y} 146.06 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -2146.6201 {y} 146.06 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_4251
if 
  144@ == 1
goto_if_false @SYN3_4244
gosub @SYN3_9606
144@ = 0

:SYN3_4244
goto @SYN3_4283

:SYN3_4251
if 
  144@ == 0
goto_if_false @SYN3_4283
gosub @SYN3_9038
144@ = 1

:SYN3_4283
198@ = 2
gosub @SYN3_11986

:SYN3_4297
if or
  57@ >= 4
  57@ == -1
goto_if_false @SYN3_4472
if or
  locate_char_any_means_2d $scplayer {x} -2166.9199 {y} 48.75 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
  locate_car_2d 36@ {x} -2166.9199 {y} 48.75 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN3_4426
if 
  145@ == 1
goto_if_false @SYN3_4419
gosub @SYN3_9748
145@ = 0

:SYN3_4419
goto @SYN3_4458

:SYN3_4426
if 
  145@ == 0
goto_if_false @SYN3_4458
gosub @SYN3_9180
145@ = 1

:SYN3_4458
198@ = 3
gosub @SYN3_11986

:SYN3_4472
gosub @SYN3_10412
gosub @SYN3_13834
if 
  205@ <> 1
goto_if_false @SYN3_4782
switch_start 57@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_4775 {caseNum1} 1 {caseLabel1} @SYN3_4567 {caseNum2} 2 {caseLabel2} @SYN3_4619 {caseNum3} 3 {caseLabel3} @SYN3_4671 {caseNum4} 4 {caseLabel4} @SYN3_4723 {caseNum5} -1 {caseLabel5} @SYN3_4782 {caseNum6} -1 {caseLabel6} @SYN3_4782 {caseNum7} -1 {caseLabel7} @SYN3_4782

:SYN3_4567
if 
  locate_car_2d 36@ {x} -2007.75 {y} 533.24 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_4612
205@ = 1

:SYN3_4612
goto @SYN3_4782

:SYN3_4619
if 
  locate_car_2d 36@ {x} -2079.24 {y} 323.74 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SYN3_4664
205@ = 1

:SYN3_4664
goto @SYN3_4782

:SYN3_4671
if 
  locate_car_2d 36@ {x} -2149.6201 {y} 152.06 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_4716
205@ = 1

:SYN3_4716
goto @SYN3_4782

:SYN3_4723
if 
  locate_car_2d 36@ {x} -2169.4199 {y} 54.75 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN3_4768
205@ = 1

:SYN3_4768
goto @SYN3_4782

:SYN3_4775
goto @SYN3_4782

:SYN3_4782
if 
  205@ == 1
goto_if_false @SYN3_4810
set_car_cruise_speed 36@ {maxSpeed} 0.0

:SYN3_4810
switch_start 57@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_5173 {caseNum1} 1 {caseLabel1} @SYN3_4873 {caseNum2} 2 {caseLabel2} @SYN3_4948 {caseNum3} 3 {caseLabel3} @SYN3_5023 {caseNum4} 4 {caseLabel4} @SYN3_5098 {caseNum5} -1 {caseLabel5} @SYN3_5180 {caseNum6} -1 {caseLabel6} @SYN3_5180 {caseNum7} -1 {caseLabel7} @SYN3_5180

:SYN3_4873
if and
  206@ <> 1
  locate_car_2d 36@ {x} -2007.75 {y} 533.24 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_4941
print_now 'SYN3_9' {time} 10000 {flag} 0
206@ = 1

:SYN3_4941
goto @SYN3_5180

:SYN3_4948
if and
  207@ <> 1
  locate_car_2d 36@ {x} -2079.24 {y} 323.74 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_5016
print_now 'SYN3_9' {time} 10000 {flag} 0
207@ = 1

:SYN3_5016
goto @SYN3_5180

:SYN3_5023
if and
  208@ <> 1
  locate_car_2d 36@ {x} -2149.6201 {y} 152.06 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_5091
print_now 'SYN3_9' {time} 10000 {flag} 0
208@ = 1

:SYN3_5091
goto @SYN3_5180

:SYN3_5098
if and
  209@ <> 1
  locate_car_2d 36@ {x} -2169.4199 {y} 54.75 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN3_5166
print_now 'SYN3_9' {time} 10000 {flag} 0
209@ = 1

:SYN3_5166
goto @SYN3_5180

:SYN3_5173
goto @SYN3_5180

:SYN3_5180
if 
  57@ == 1
goto_if_false @SYN3_5348
gosub @SYN3_11056
if or
  176@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2016.3 {leftBottomY} 434.74 {rightTopX} -1960.98 {rightTopY} 454.11 {drawSphere} False
goto_if_false @SYN3_5348
gosub @SYN3_11584
gosub @SYN3_7439
gosub @SYN3_8896
143@ = 1
gosub @SYN3_9890
57@ = 2
if 
  205@ == 1
goto_if_false @SYN3_5325
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5325
print_now 'SYN3_5' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5348
if and
  57@ == 2
  not is_car_dead 36@
goto_if_false @SYN3_5521
gosub @SYN3_11165
if or
  177@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2133.8701 {leftBottomY} 308.44 {rightTopX} -2124.45 {rightTopY} 330.0 {drawSphere} False
goto_if_false @SYN3_5521
gosub @SYN3_11665
gosub @SYN3_7941
gosub @SYN3_9038
144@ = 1
gosub @SYN3_10064
57@ = 3
if 
  205@ == 1
goto_if_false @SYN3_5498
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5498
print_now 'SYN3_5' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5521
if and
  57@ == 3
  not is_car_dead 36@
goto_if_false @SYN3_5694
gosub @SYN3_11320
if or
  178@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2171.21 {leftBottomY} 90.96 {rightTopX} -2151.6299 {rightTopY} 92.36 {drawSphere} False
goto_if_false @SYN3_5694
gosub @SYN3_11785
gosub @SYN3_8411
gosub @SYN3_9180
145@ = 1
gosub @SYN3_10238
57@ = 4
if 
  205@ == 1
goto_if_false @SYN3_5671
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5671
print_now 'SYN3_7' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5694
if and
  57@ == 4
  not is_car_dead 36@
goto_if_false @SYN3_5839
gosub @SYN3_11475
if or
  179@ == 1
  is_car_in_area_2d 36@ {leftBottomX} -2177.54 {leftBottomY} 7.1 {rightTopX} -2157.29 {rightTopY} 19.76 {drawSphere} False
goto_if_false @SYN3_5839
gosub @SYN3_11905
57@ = -1
if 
  205@ == 1
goto_if_false @SYN3_5816
set_car_cruise_speed 36@ {maxSpeed} 56@
205@ = 0

:SYN3_5816
print_now 'SYN3_8' {time} 10000 {flag} 0
gosub @SYN3_14963

:SYN3_5839
if 
  140@ == 1
goto_if_false @SYN3_5923
if 
  not is_car_dead 35@
goto_if_false @SYN3_5911
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @SYN3_5904
remove_blip 214@
140@ = 0

:SYN3_5904
goto @SYN3_5923

:SYN3_5911
remove_blip 214@
140@ = 0

:SYN3_5923
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_5972
99@ = store_car_char_is_in $scplayer
if 
  210@ <> 1
goto_if_false @SYN3_5972
210@ = 1

:SYN3_5972
if 
  136@ <> 1
goto_if_false @SYN3_6125
if 
  134@ == 1
goto_if_false @SYN3_6086
if 
  is_char_dead 100@
goto_if_false @SYN3_6047
print_now 'SYN3_27' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_6047
if 
  is_char_dead 101@
goto_if_false @SYN3_6086
print_now 'SYN3_28' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_6086
if 
  is_car_dead 34@
goto_if_false @SYN3_6125
print_now 'SYN3_19' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_6125
if 
  134@ == 1
goto_if_false @SYN3_6278
if 
  is_car_dead 36@
goto_if_false @SYN3_6182
print_now 'SYN3_15' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_6182
if 
  is_char_dead 37@
goto_if_false @SYN3_6221
print_now 'SYN3_16' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_6221
if 
  138@ <> 1
goto_if_false @SYN3_6278
if 
  is_car_dead 35@
goto_if_false @SYN3_6278
print_now 'SYN3_14' {time} 4000 {flag} 0
goto @SYN3_19140

:SYN3_6278
if and
  138@ == 1
  not is_car_dead 36@
  not is_char_dead 37@
goto_if_false @SYN3_6540
95@ = get_script_task_status 37@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_6428
if and
  locate_car_3d 36@ {x} 45@ {y} 46@ {z} 47@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 45@ {y} 46@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_6421
139@ = 1
gosub @SYN3_15036
goto @SYN3_19158

:SYN3_6421
goto @SYN3_6540

:SYN3_6428
if and
  locate_car_3d 36@ {x} 45@ {y} 46@ {z} 47@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 45@ {y} 46@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_6540
task_car_drive_to_coord 37@ {vehicle} 36@ {x} 45@ {y} 46@ {z} 47@ {speed} 56@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
139@ = 1
gosub @SYN3_15036
goto @SYN3_19158

:SYN3_6540
goto @SYN3_1691

:SYN3_6547
request_model 440
request_model 173

:SYN3_6557
if or
  not has_model_loaded 440
  not has_model_loaded 173
goto_if_false @SYN3_6589
wait 0
goto @SYN3_6557

:SYN3_6589
36@ = create_car 440 {x} 38@ {y} 39@ {z} 40@
37@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 173
set_car_heading 36@ {heading} 41@
set_car_heavy 36@ {state} True
203@ = 1
lock_car_doors 36@ {lockStatus} CarLock.Locked
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} False
204@ = 1
set_can_burst_car_tyres 36@ {state} False
vehicle_can_be_targetted_by_hs_missile 36@ {state} False
mark_model_as_no_longer_needed 440
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 468
return 

:SYN3_6701
if and
  not is_car_dead 36@
  not is_char_dead 37@
goto_if_false @SYN3_6963
98@ = open_sequence_task 
flush_route 
extend_route -1814.77 {y} -0.45 {z} 15.38
task_drive_point_route_advanced -1 {vehicle} 36@ {speed} 56@ {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
extend_route -1746.5699 {y} 306.18 {z} 6.08
extend_route -1858.6899 {y} 418.9 {z} 16.06
extend_route -1899.05 {y} 605.47 {z} 34.06
extend_route -2004.3101 {y} 605.61 {z} 34.06
extend_route -2004.29 {y} 320.22 {z} 34.04
extend_route -2146.6799 {y} 320.06 {z} 34.2
extend_route -2167.1299 {y} -70.2 {z} 34.21
task_drive_point_route_advanced -1 {vehicle} 36@ {speed} 56@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
extend_route 45@ {y} -70.33 {z} 34.22
extend_route 45@ {y} 46@ {z} 47@
task_drive_point_route_advanced -1 {vehicle} 36@ {speed} 56@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
close_sequence_task 98@
perform_sequence_task 37@ {sequence} 98@
clear_sequence_task 98@

:SYN3_6963
return 

:SYN3_6965
request_model 492
request_model 123
request_model 122
request_model 353

:SYN3_6983
if or
  not has_model_loaded 492
  not has_model_loaded 123
  not has_model_loaded 122
  not has_model_loaded 353
goto_if_false @SYN3_7023
wait 0
goto @SYN3_6983

:SYN3_7023
remove_blip 216@
61@ = create_char PedType.Mission2 {modelId} 123 {x} -2000.75 {y} 537.24 {z} 33.91
62@ = create_char PedType.Mission2 {modelId} 122 {x} -2007.75 {y} 543.24 {z} 33.91
63@ = create_char PedType.Mission2 {modelId} 123 {x} -2012.75 {y} 537.24 {z} 33.91
88@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 88@ {event} Event.GunAimedAt
97@ = 0

:SYN3_7121
if 
  3 > 97@
goto_if_false @SYN3_7230
set_char_decision_maker 61@(97@,3i) {handleOrTemplate} 88@
set_char_stay_in_same_place 61@(97@,3i) {state} True
give_weapon_to_char 61@(97@,3i) {weaponType} WeaponType.Mp5 {ammo} 99999
add_blip_for_char 61@(97@,3i) {var_handle} 220@(97@,3i)
set_char_only_damaged_by_player 61@(97@,3i) {state} True
149@(97@,3i) = 1
97@ += 1
goto @SYN3_7121

:SYN3_7230
58@ = create_car 492 {x} -2000.75 {y} 527.24 {z} 33.91
59@ = create_car 492 {x} -2007.75 {y} 533.24 {z} 33.91
60@ = create_car 492 {x} -2012.75 {y} 527.24 {z} 33.91
set_car_heading 58@ {heading} 70.0
set_car_heading 59@ {heading} 110.0
set_car_heading 60@ {heading} 250.0
97@ = 0

:SYN3_7336
if 
  3 > 97@
goto_if_false @SYN3_7437
car_set_idle 58@(97@,3i)
set_car_heavy 58@(97@,3i) {state} True
lock_car_doors 58@(97@,3i) {lockStatus} CarLock.Locked
add_blip_for_car 58@(97@,3i) {var_handle} 217@(97@,3i)
set_car_only_damaged_by_player 58@(97@,3i) {state} True
146@(97@,3i) = 1
97@ += 1
goto @SYN3_7336

:SYN3_7437
return 

:SYN3_7439
request_model 355

:SYN3_7444
if 
  not has_model_loaded 355
goto_if_false @SYN3_7471
wait 0
goto @SYN3_7444

:SYN3_7471
64@ = create_car 492 {x} -2085.74 {y} 314.74 {z} 33.97
65@ = create_car 492 {x} -2079.24 {y} 323.74 {z} 33.97
66@ = create_car 492 {x} -2085.74 {y} 326.74 {z} 33.97
set_car_heading 64@ {heading} 340.0
set_car_heading 65@ {heading} 20.0
set_car_heading 66@ {heading} 160.0
97@ = 0

:SYN3_7577
if 
  3 > 97@
goto_if_false @SYN3_7651
car_set_idle 64@(97@,3i)
set_car_heavy 64@(97@,3i) {state} True
lock_car_doors 64@(97@,3i) {lockStatus} CarLock.Locked
set_car_only_damaged_by_player 64@(97@,3i) {state} True
97@ += 1
goto @SYN3_7577

:SYN3_7651
67@ = create_char PedType.Mission2 {modelId} 123 {x} -2075.74 {y} 314.74 {z} 33.97
68@ = create_char PedType.Mission2 {modelId} 122 {x} -2069.24 {y} 323.74 {z} 33.97
69@ = create_char PedType.Mission2 {modelId} 123 {x} -2075.74 {y} 326.74 {z} 33.97
70@ = create_char PedType.Mission2 {modelId} 122 {x} -2076.97 {y} 309.56 {z} 40.99
71@ = create_char PedType.Mission2 {modelId} 123 {x} -2073.97 {y} 309.56 {z} 40.99
72@ = create_char PedType.Mission2 {modelId} 122 {x} -2063.46 {y} 309.56 {z} 40.99
97@ = 0

:SYN3_7802
if 
  6 > 97@
goto_if_false @SYN3_7939
set_char_decision_maker 67@(97@,6i) {handleOrTemplate} 88@
set_char_stay_in_same_place 67@(97@,6i) {state} True
if 
  97@ >= 3
goto_if_false @SYN3_7884
give_weapon_to_char 67@(97@,6i) {weaponType} WeaponType.Ak47 {ammo} 99999
goto @SYN3_7914

:SYN3_7884
give_weapon_to_char 67@(97@,6i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_heading 67@(97@,6i) {heading} 270.0

:SYN3_7914
set_char_only_damaged_by_player 67@(97@,6i) {state} True
97@ += 1
goto @SYN3_7802

:SYN3_7939
return 

:SYN3_7941
73@ = create_car 492 {x} -2141.1201 {y} 146.06 {z} 34.07
74@ = create_car 492 {x} -2149.6201 {y} 152.06 {z} 34.07
75@ = create_car 492 {x} -2153.1201 {y} 146.06 {z} 34.07
set_car_heading 73@ {heading} 290.0
set_car_heading 74@ {heading} 70.0
set_car_heading 75@ {heading} 110.0
97@ = 0

:SYN3_8047
if 
  3 > 97@
goto_if_false @SYN3_8121
car_set_idle 73@(97@,3i)
set_car_heavy 73@(97@,3i) {state} True
lock_car_doors 73@(97@,3i) {lockStatus} CarLock.Locked
set_car_only_damaged_by_player 73@(97@,3i) {state} True
97@ += 1
goto @SYN3_8047

:SYN3_8121
76@ = create_char PedType.Mission2 {modelId} 123 {x} -2141.1201 {y} 156.06 {z} 34.07
77@ = create_char PedType.Mission2 {modelId} 122 {x} -2149.6201 {y} 162.06 {z} 34.07
78@ = create_char PedType.Mission2 {modelId} 123 {x} -2153.1201 {y} 156.06 {z} 34.07
79@ = create_char PedType.Mission2 {modelId} 123 {x} -2135.6799 {y} 164.2 {z} 41.29
80@ = create_char PedType.Mission2 {modelId} 122 {x} -2135.6899 {y} 160.93 {z} 41.29
81@ = create_char PedType.Mission2 {modelId} 123 {x} -2135.24 {y} 153.77 {z} 40.72
97@ = 0

:SYN3_8272
if 
  6 > 97@
goto_if_false @SYN3_8409
set_char_decision_maker 76@(97@,6i) {handleOrTemplate} 88@
set_char_stay_in_same_place 76@(97@,6i) {state} True
if 
  97@ >= 3
goto_if_false @SYN3_8368
give_weapon_to_char 76@(97@,6i) {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_heading 76@(97@,6i) {heading} 90.0
goto @SYN3_8384

:SYN3_8368
give_weapon_to_char 76@(97@,6i) {weaponType} WeaponType.Mp5 {ammo} 99999

:SYN3_8384
set_char_only_damaged_by_player 76@(97@,6i) {state} True
97@ += 1
goto @SYN3_8272

:SYN3_8409
return 

:SYN3_8411
82@ = create_car 492 {x} -2161.4199 {y} 48.75 {z} 35.04
83@ = create_car 492 {x} -2169.4199 {y} 54.75 {z} 35.04
84@ = create_car 492 {x} -2173.4199 {y} 48.75 {z} 35.04
set_car_heading 82@ {heading} 70.0
set_car_heading 83@ {heading} 110.0
set_car_heading 84@ {heading} 250.0
97@ = 0

:SYN3_8517
if 
  3 > 97@
goto_if_false @SYN3_8591
car_set_idle 82@(97@,3i)
set_car_heavy 82@(97@,3i) {state} True
lock_car_doors 82@(97@,3i) {lockStatus} CarLock.Locked
set_car_only_damaged_by_player 82@(97@,3i) {state} True
97@ += 1
goto @SYN3_8517

:SYN3_8591
85@ = create_char PedType.Mission2 {modelId} 123 {x} -2161.4199 {y} 58.75 {z} 35.04
86@ = create_char PedType.Mission2 {modelId} 122 {x} -2169.4199 {y} 64.75 {z} 35.04
87@ = create_char PedType.Mission2 {modelId} 123 {x} -2173.4199 {y} 58.75 {z} 35.04
97@ = 0

:SYN3_8670
if 
  3 > 97@
goto_if_false @SYN3_8752
set_char_decision_maker 85@(97@,3i) {handleOrTemplate} 88@
set_char_stay_in_same_place 85@(97@,3i) {state} True
give_weapon_to_char 85@(97@,3i) {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_only_damaged_by_player 85@(97@,3i) {state} True
97@ += 1
goto @SYN3_8670

:SYN3_8752
return 

:SYN3_8754
97@ = 0

:SYN3_8761
if 
  3 > 97@
goto_if_false @SYN3_8824
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_8810
freeze_car_position_and_dont_load_collision 58@(97@,3i) {state} True

:SYN3_8810
97@ += 1
goto @SYN3_8761

:SYN3_8824
97@ = 0

:SYN3_8831
if 
  3 > 97@
goto_if_false @SYN3_8894
if 
  not is_char_dead 61@(97@,3i)
goto_if_false @SYN3_8880
freeze_char_position_and_dont_load_collision 61@(97@,3i) {state} True

:SYN3_8880
97@ += 1
goto @SYN3_8831

:SYN3_8894
return 

:SYN3_8896
97@ = 0

:SYN3_8903
if 
  3 > 97@
goto_if_false @SYN3_8966
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_8952
freeze_car_position_and_dont_load_collision 64@(97@,3i) {state} True

:SYN3_8952
97@ += 1
goto @SYN3_8903

:SYN3_8966
97@ = 0

:SYN3_8973
if 
  6 > 97@
goto_if_false @SYN3_9036
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_9022
freeze_char_position_and_dont_load_collision 67@(97@,6i) {state} True

:SYN3_9022
97@ += 1
goto @SYN3_8973

:SYN3_9036
return 

:SYN3_9038
97@ = 0

:SYN3_9045
if 
  3 > 97@
goto_if_false @SYN3_9108
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_9094
freeze_car_position_and_dont_load_collision 73@(97@,3i) {state} True

:SYN3_9094
97@ += 1
goto @SYN3_9045

:SYN3_9108
97@ = 0

:SYN3_9115
if 
  6 > 97@
goto_if_false @SYN3_9178
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_9164
freeze_char_position_and_dont_load_collision 76@(97@,6i) {state} True

:SYN3_9164
97@ += 1
goto @SYN3_9115

:SYN3_9178
return 

:SYN3_9180
97@ = 0

:SYN3_9187
if 
  3 > 97@
goto_if_false @SYN3_9250
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_9236
freeze_car_position_and_dont_load_collision 82@(97@,3i) {state} True

:SYN3_9236
97@ += 1
goto @SYN3_9187

:SYN3_9250
97@ = 0

:SYN3_9257
if 
  3 > 97@
goto_if_false @SYN3_9320
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_9306
freeze_char_position_and_dont_load_collision 85@(97@,3i) {state} True

:SYN3_9306
97@ += 1
goto @SYN3_9257

:SYN3_9320
return 

:SYN3_9322
97@ = 0

:SYN3_9329
if 
  3 > 97@
goto_if_false @SYN3_9392
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_9378
freeze_car_position_and_dont_load_collision 58@(97@,3i) {state} False

:SYN3_9378
97@ += 1
goto @SYN3_9329

:SYN3_9392
97@ = 0

:SYN3_9399
if 
  3 > 97@
goto_if_false @SYN3_9462
if 
  not is_char_dead 61@(97@,3i)
goto_if_false @SYN3_9448
freeze_char_position_and_dont_load_collision 61@(97@,3i) {state} False

:SYN3_9448
97@ += 1
goto @SYN3_9399

:SYN3_9462
return 

:SYN3_9464
97@ = 0

:SYN3_9471
if 
  3 > 97@
goto_if_false @SYN3_9534
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_9520
freeze_car_position_and_dont_load_collision 64@(97@,3i) {state} False

:SYN3_9520
97@ += 1
goto @SYN3_9471

:SYN3_9534
97@ = 0

:SYN3_9541
if 
  6 > 97@
goto_if_false @SYN3_9604
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_9590
freeze_char_position_and_dont_load_collision 67@(97@,6i) {state} False

:SYN3_9590
97@ += 1
goto @SYN3_9541

:SYN3_9604
return 

:SYN3_9606
97@ = 0

:SYN3_9613
if 
  3 > 97@
goto_if_false @SYN3_9676
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_9662
freeze_car_position_and_dont_load_collision 73@(97@,3i) {state} False

:SYN3_9662
97@ += 1
goto @SYN3_9613

:SYN3_9676
97@ = 0

:SYN3_9683
if 
  6 > 97@
goto_if_false @SYN3_9746
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_9732
freeze_char_position_and_dont_load_collision 76@(97@,6i) {state} False

:SYN3_9732
97@ += 1
goto @SYN3_9683

:SYN3_9746
return 

:SYN3_9748
97@ = 0

:SYN3_9755
if 
  3 > 97@
goto_if_false @SYN3_9818
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_9804
freeze_car_position_and_dont_load_collision 82@(97@,3i) {state} False

:SYN3_9804
97@ += 1
goto @SYN3_9755

:SYN3_9818
97@ = 0

:SYN3_9825
if 
  3 > 97@
goto_if_false @SYN3_9888
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_9874
freeze_char_position_and_dont_load_collision 85@(97@,3i) {state} False

:SYN3_9874
97@ += 1
goto @SYN3_9825

:SYN3_9888
return 

:SYN3_9890
97@ = 0

:SYN3_9897
if 
  3 > 97@
goto_if_false @SYN3_9976
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_9962
add_blip_for_car 64@(97@,3i) {var_handle} 223@(97@,3i)
152@(97@,3i) = 1

:SYN3_9962
97@ += 1
goto @SYN3_9897

:SYN3_9976
97@ = 0

:SYN3_9983
if 
  6 > 97@
goto_if_false @SYN3_10062
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_10048
add_blip_for_char 67@(97@,6i) {var_handle} 226@(97@,6i)
155@(97@,6i) = 1

:SYN3_10048
97@ += 1
goto @SYN3_9983

:SYN3_10062
return 

:SYN3_10064
97@ = 0

:SYN3_10071
if 
  3 > 97@
goto_if_false @SYN3_10150
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_10136
add_blip_for_car 73@(97@,3i) {var_handle} 232@(97@,3i)
161@(97@,3i) = 1

:SYN3_10136
97@ += 1
goto @SYN3_10071

:SYN3_10150
97@ = 0

:SYN3_10157
if 
  6 > 97@
goto_if_false @SYN3_10236
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_10222
add_blip_for_char 76@(97@,6i) {var_handle} 235@(97@,6i)
164@(97@,6i) = 1

:SYN3_10222
97@ += 1
goto @SYN3_10157

:SYN3_10236
return 

:SYN3_10238
97@ = 0

:SYN3_10245
if 
  3 > 97@
goto_if_false @SYN3_10324
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_10310
add_blip_for_car 82@(97@,3i) {var_handle} 241@(97@,3i)
170@(97@,3i) = 1

:SYN3_10310
97@ += 1
goto @SYN3_10245

:SYN3_10324
97@ = 0

:SYN3_10331
if 
  3 > 97@
goto_if_false @SYN3_10410
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_10396
add_blip_for_char 85@(97@,3i) {var_handle} 244@(97@,3i)
173@(97@,3i) = 1

:SYN3_10396
97@ += 1
goto @SYN3_10331

:SYN3_10410
return 

:SYN3_10412
97@ = 0

:SYN3_10419
if 
  3 > 97@
goto_if_false @SYN3_10553
if and
  149@(97@,3i) == 1
  is_char_dead 61@(97@,3i)
goto_if_false @SYN3_10488
remove_blip 220@(97@,3i)
149@(97@,3i) = 0

:SYN3_10488
if and
  146@(97@,3i) == 1
  is_car_dead 58@(97@,3i)
goto_if_false @SYN3_10539
remove_blip 217@(97@,3i)
146@(97@,3i) = 0

:SYN3_10539
97@ += 1
goto @SYN3_10419

:SYN3_10553
97@ = 0

:SYN3_10560
if 
  6 > 97@
goto_if_false @SYN3_10643
if and
  155@(97@,6i) == 1
  is_char_dead 67@(97@,6i)
goto_if_false @SYN3_10629
remove_blip 226@(97@,6i)
155@(97@,6i) = 0

:SYN3_10629
97@ += 1
goto @SYN3_10560

:SYN3_10643
97@ = 0

:SYN3_10650
if 
  3 > 97@
goto_if_false @SYN3_10733
if and
  152@(97@,3i) == 1
  is_car_dead 64@(97@,3i)
goto_if_false @SYN3_10719
remove_blip 223@(97@,3i)
152@(97@,3i) = 0

:SYN3_10719
97@ += 1
goto @SYN3_10650

:SYN3_10733
97@ = 0

:SYN3_10740
if 
  6 > 97@
goto_if_false @SYN3_10823
if and
  164@(97@,6i) == 1
  is_char_dead 76@(97@,6i)
goto_if_false @SYN3_10809
remove_blip 235@(97@,6i)
164@(97@,6i) = 0

:SYN3_10809
97@ += 1
goto @SYN3_10740

:SYN3_10823
97@ = 0

:SYN3_10830
if 
  3 > 97@
goto_if_false @SYN3_10913
if and
  161@(97@,3i) == 1
  is_car_dead 73@(97@,3i)
goto_if_false @SYN3_10899
remove_blip 232@(97@,3i)
161@(97@,3i) = 0

:SYN3_10899
97@ += 1
goto @SYN3_10830

:SYN3_10913
97@ = 0

:SYN3_10920
if 
  3 > 97@
goto_if_false @SYN3_11054
if and
  173@(97@,3i) == 1
  is_char_dead 85@(97@,3i)
goto_if_false @SYN3_10989
remove_blip 244@(97@,3i)
173@(97@,3i) = 0

:SYN3_10989
if and
  170@(97@,3i) == 1
  is_car_dead 82@(97@,3i)
goto_if_false @SYN3_11040
remove_blip 241@(97@,3i)
170@(97@,3i) = 0

:SYN3_11040
97@ += 1
goto @SYN3_10920

:SYN3_11054
return 

:SYN3_11056
176@ = 1
97@ = 0

:SYN3_11070
if and
  3 > 97@
  176@ == 1
goto_if_false @SYN3_11163
if 
  not is_char_dead 61@(97@,3i)
goto_if_false @SYN3_11122
176@ = 0

:SYN3_11122
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_11149
176@ = 0

:SYN3_11149
97@ += 1
goto @SYN3_11070

:SYN3_11163
return 

:SYN3_11165
177@ = 1
97@ = 0

:SYN3_11179
if and
  6 > 97@
  177@ == 1
goto_if_false @SYN3_11245
if 
  not is_char_dead 67@(97@,6i)
goto_if_false @SYN3_11231
177@ = 0

:SYN3_11231
97@ += 1
goto @SYN3_11179

:SYN3_11245
97@ = 0

:SYN3_11252
if and
  3 > 97@
  177@ == 1
goto_if_false @SYN3_11318
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_11304
177@ = 0

:SYN3_11304
97@ += 1
goto @SYN3_11252

:SYN3_11318
return 

:SYN3_11320
178@ = 1
97@ = 0

:SYN3_11334
if and
  6 > 97@
  178@ == 1
goto_if_false @SYN3_11400
if 
  not is_char_dead 76@(97@,6i)
goto_if_false @SYN3_11386
178@ = 0

:SYN3_11386
97@ += 1
goto @SYN3_11334

:SYN3_11400
97@ = 0

:SYN3_11407
if and
  3 > 97@
  178@ == 1
goto_if_false @SYN3_11473
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_11459
178@ = 0

:SYN3_11459
97@ += 1
goto @SYN3_11407

:SYN3_11473
return 

:SYN3_11475
179@ = 1
97@ = 0

:SYN3_11489
if and
  3 > 97@
  179@ == 1
goto_if_false @SYN3_11582
if 
  not is_char_dead 85@(97@,3i)
goto_if_false @SYN3_11541
179@ = 0

:SYN3_11541
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_11568
179@ = 0

:SYN3_11568
97@ += 1
goto @SYN3_11489

:SYN3_11582
return 

:SYN3_11584
97@ = 0

:SYN3_11591
if 
  3 > 97@
goto_if_false @SYN3_11663
remove_blip 220@(97@,3i)
remove_blip 217@(97@,3i)
149@(97@,3i) = 0
146@(97@,3i) = 0
97@ += 1
goto @SYN3_11591

:SYN3_11663
return 

:SYN3_11665
97@ = 0

:SYN3_11672
if 
  6 > 97@
goto_if_false @SYN3_11724
remove_blip 226@(97@,6i)
155@(97@,6i) = 0
97@ += 1
goto @SYN3_11672

:SYN3_11724
97@ = 0

:SYN3_11731
if 
  3 > 97@
goto_if_false @SYN3_11783
remove_blip 223@(97@,3i)
152@(97@,3i) = 0
97@ += 1
goto @SYN3_11731

:SYN3_11783
return 

:SYN3_11785
97@ = 0

:SYN3_11792
if 
  6 > 97@
goto_if_false @SYN3_11844
remove_blip 235@(97@,6i)
164@(97@,6i) = 0
97@ += 1
goto @SYN3_11792

:SYN3_11844
97@ = 0

:SYN3_11851
if 
  3 > 97@
goto_if_false @SYN3_11903
remove_blip 232@(97@,3i)
161@(97@,3i) = 0
97@ += 1
goto @SYN3_11851

:SYN3_11903
return 

:SYN3_11905
97@ = 0

:SYN3_11912
if 
  3 > 97@
goto_if_false @SYN3_11984
remove_blip 244@(97@,3i)
remove_blip 241@(97@,3i)
173@(97@,3i) = 0
170@(97@,3i) = 0
97@ += 1
goto @SYN3_11912

:SYN3_11984
return 

:SYN3_11986
if 
  not is_car_dead 36@
goto_if_false @SYN3_13494
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_12093 {caseNum1} 0 {caseLabel1} @SYN3_12065 {caseNum2} 1 {caseLabel2} @SYN3_12079 {caseNum3} 2 {caseLabel3} @SYN3_12079 {caseNum4} 3 {caseLabel4} @SYN3_12065 {caseNum5} -1 {caseLabel5} @SYN3_12107 {caseNum6} -1 {caseLabel6} @SYN3_12107 {caseNum7} -1 {caseLabel7} @SYN3_12107

:SYN3_12065
250@ = 3
goto @SYN3_12107

:SYN3_12079
250@ = 6
goto @SYN3_12107

:SYN3_12093
198@ = -1
goto @SYN3_12107

:SYN3_12107
if 
  198@ == -1
goto_if_false @SYN3_12127
return 

:SYN3_12127
97@ = 0

:SYN3_12134
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_12529
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_12508 {caseNum1} 0 {caseLabel1} @SYN3_12216 {caseNum2} 1 {caseLabel2} @SYN3_12289 {caseNum3} 2 {caseLabel3} @SYN3_12362 {caseNum4} 3 {caseLabel4} @SYN3_12435 {caseNum5} -1 {caseLabel5} @SYN3_12515 {caseNum6} -1 {caseLabel6} @SYN3_12515 {caseNum7} -1 {caseLabel7} @SYN3_12515

:SYN3_12216
set_lvar_int_to_lvar_int 251@(97@,6i) = 61@(97@,3i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 180@(97@,3i)
if 
  3 > 97@
goto_if_false @SYN3_12282
set_lvar_int_to_lvar_int 257@(97@,3i) = 58@(97@,3i)

:SYN3_12282
goto @SYN3_12515

:SYN3_12289
set_lvar_int_to_lvar_int 251@(97@,6i) = 67@(97@,6i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 183@(97@,6i)
if 
  3 > 97@
goto_if_false @SYN3_12355
set_lvar_int_to_lvar_int 257@(97@,3i) = 64@(97@,3i)

:SYN3_12355
goto @SYN3_12515

:SYN3_12362
set_lvar_int_to_lvar_int 251@(97@,6i) = 76@(97@,6i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 189@(97@,6i)
if 
  3 > 97@
goto_if_false @SYN3_12428
set_lvar_int_to_lvar_int 257@(97@,3i) = 73@(97@,3i)

:SYN3_12428
goto @SYN3_12515

:SYN3_12435
set_lvar_int_to_lvar_int 251@(97@,6i) = 85@(97@,3i)
set_lvar_int_to_lvar_int 260@(97@,6i) = 195@(97@,3i)
if 
  3 > 97@
goto_if_false @SYN3_12501
set_lvar_int_to_lvar_int 257@(97@,3i) = 82@(97@,3i)

:SYN3_12501
goto @SYN3_12515

:SYN3_12508
goto @SYN3_12515

:SYN3_12515
97@ += 1
goto @SYN3_12134

:SYN3_12529
if 
  199@(198@,4i) <> 1
goto_if_false @SYN3_12558
gosub @SYN3_13496

:SYN3_12558
38@, 39@, 40@ = get_car_coordinates 36@
48@, 49@, 50@ = get_char_coordinates $scplayer
97@ = 0

:SYN3_12593
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_13292
if 
  not is_char_dead 251@(97@,6i)
goto_if_false @SYN3_13278
51@, 52@, 53@ = get_char_coordinates 251@(97@,6i)
54@ = get_distance_between_coords_2d 38@ {fromY} 39@ {toX} 51@ {toZ} 52@
if 
  35.0 > 54@
goto_if_false @SYN3_12784
if 
  260@(97@,6i) <> 3
goto_if_false @SYN3_12777
set_char_accuracy 251@(97@,6i) {accuracy} 85
95@ = get_script_task_status 251@(97@,6i) {taskId} 1650
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_12766
task_destroy_car 251@(97@,6i) {vehicle} 36@

:SYN3_12766
260@(97@,6i) = 3

:SYN3_12777
goto @SYN3_13278

:SYN3_12784
55@ = get_distance_between_coords_2d 48@ {fromY} 49@ {toX} 51@ {toZ} 52@
if and
  35.0 > 55@
  199@(198@,4i) == 1
goto_if_false @SYN3_12929
if 
  260@(97@,6i) <> 2
goto_if_false @SYN3_12922
set_char_accuracy 251@(97@,6i) {accuracy} 60
95@ = get_script_task_status 251@(97@,6i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_12911
task_kill_char_on_foot 251@(97@,6i) {target} $scplayer

:SYN3_12911
260@(97@,6i) = 2

:SYN3_12922
goto @SYN3_13278

:SYN3_12929
if 
  199@(198@,4i) == 1
goto_if_false @SYN3_13078
if 
  260@(97@,6i) <> 1
goto_if_false @SYN3_12995
set_char_accuracy 251@(97@,6i) {accuracy} 60
260@(97@,6i) = 1

:SYN3_12995
if 
  260@(97@,6i) == 1
goto_if_false @SYN3_13071
95@ = get_script_task_status 251@(97@,6i) {taskId} 1640
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13071
task_shoot_at_coord 251@(97@,6i) {x} 48@ {y} 49@ {z} 50@ {time} 10000

:SYN3_13071
goto @SYN3_13278

:SYN3_13078
if 
  260@(97@,6i) <> 0
goto_if_false @SYN3_13122
set_char_accuracy 251@(97@,6i) {accuracy} 60
260@(97@,6i) = 0

:SYN3_13122
if 
  260@(97@,6i) == 0
goto_if_false @SYN3_13278
if 
  35.0 > 55@
goto_if_false @SYN3_13222
95@ = get_script_task_status 251@(97@,6i) {taskId} 1589
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13215
task_aim_gun_at_char 251@(97@,6i) {target} $scplayer {time} 9999999

:SYN3_13215
goto @SYN3_13278

:SYN3_13222
95@ = get_script_task_status 251@(97@,6i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 95@ == 7
goto_if_false @SYN3_13278
task_aim_gun_at_coord 251@(97@,6i) {x} 48@ {y} 49@ {z} 50@ {time} 9999999

:SYN3_13278
97@ += 1
goto @SYN3_12593

:SYN3_13292
97@ = 0

:SYN3_13299
if 
  is_int_lvar_greater_than_int_lvar 250@ > 97@
goto_if_false @SYN3_13494
switch_start 198@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @SYN3_13473 {caseNum1} 0 {caseLabel1} @SYN3_13381 {caseNum2} 1 {caseLabel2} @SYN3_13404 {caseNum3} 2 {caseLabel3} @SYN3_13427 {caseNum4} 3 {caseLabel4} @SYN3_13450 {caseNum5} -1 {caseLabel5} @SYN3_13480 {caseNum6} -1 {caseLabel6} @SYN3_13480 {caseNum7} -1 {caseLabel7} @SYN3_13480

:SYN3_13381
set_lvar_int_to_lvar_int 180@(97@,3i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13404
set_lvar_int_to_lvar_int 183@(97@,6i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13427
set_lvar_int_to_lvar_int 189@(97@,6i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13450
set_lvar_int_to_lvar_int 195@(97@,3i) = 260@(97@,6i)
goto @SYN3_13480

:SYN3_13473
goto @SYN3_13480

:SYN3_13480
97@ += 1
goto @SYN3_13299

:SYN3_13494
return 

:SYN3_13496
97@ = 0

:SYN3_13503
if and
  is_int_lvar_greater_than_int_lvar 250@ > 97@
  199@(198@,4i) <> 1
goto_if_false @SYN3_13832
if 
  not is_char_dead 251@(97@,6i)
goto_if_false @SYN3_13747
96@ = get_char_highest_priority_event 251@(97@,6i)
$player_x, $player_y, $player_z = get_char_coordinates 251@(97@,6i)
set_lvar_float_to_var_float 266@ = $player_x
266@ -= 10.0
set_lvar_float_to_var_float 267@ = $player_y
267@ -= 10.0
set_lvar_float_to_var_float 268@ = $player_z
268@ -= 10.0
set_lvar_float_to_var_float 269@ = $player_x
269@ += 10.0
set_lvar_float_to_var_float 270@ = $player_y
270@ += 10.0
set_lvar_float_to_var_float 271@ = $player_z
271@ += 10.0
if or
  is_int_lvar_equal_to_constant 96@ == 49
  is_projectile_in_area 266@ {leftBottomY} 267@ {leftBottomZ} 268@ {rightTopX} 269@ {rightTopY} 270@ {rightTopZ} 271@
goto_if_false @SYN3_13740
199@(198@,4i) = 1

:SYN3_13740
goto @SYN3_13758

:SYN3_13747
199@(198@,4i) = 1

:SYN3_13758
if 
  3 > 97@
goto_if_false @SYN3_13818
if and
  is_car_dead 257@(97@,3i)
  199@(198@,4i) <> 1
goto_if_false @SYN3_13818
199@(198@,4i) = 1

:SYN3_13818
97@ += 1
goto @SYN3_13503

:SYN3_13832
return 

:SYN3_13834
if and
  not is_car_dead 36@
  not is_char_dead 37@
goto_if_false @SYN3_14961
if 
  57@ == 1
goto_if_false @SYN3_14092
gosub @SYN3_11056
if 
  176@ == 1
goto_if_false @SYN3_13937
if 
  203@ <> 1
goto_if_false @SYN3_13930
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_13930
goto @SYN3_14092

:SYN3_13937
if 
  203@ <> 1
goto_if_false @SYN3_13969
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_13969
97@ = 0

:SYN3_13976
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14092
if 
  not is_car_dead 58@(97@,3i)
goto_if_false @SYN3_14078
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 58@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14078
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14078
97@ += 1
goto @SYN3_13976

:SYN3_14092
if 
  57@ == 2
goto_if_false @SYN3_14329
gosub @SYN3_11165
if 
  177@ == 1
goto_if_false @SYN3_14174
if 
  203@ <> 1
goto_if_false @SYN3_14167
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14167
goto @SYN3_14329

:SYN3_14174
if 
  203@ <> 1
goto_if_false @SYN3_14206
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14206
97@ = 0

:SYN3_14213
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14329
if 
  not is_car_dead 64@(97@,3i)
goto_if_false @SYN3_14315
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 64@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14315
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14315
97@ += 1
goto @SYN3_14213

:SYN3_14329
if 
  57@ == 3
goto_if_false @SYN3_14566
gosub @SYN3_11320
if 
  178@ == 1
goto_if_false @SYN3_14411
if 
  203@ <> 1
goto_if_false @SYN3_14404
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14404
goto @SYN3_14566

:SYN3_14411
if 
  203@ <> 1
goto_if_false @SYN3_14443
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14443
97@ = 0

:SYN3_14450
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14566
if 
  not is_car_dead 73@(97@,3i)
goto_if_false @SYN3_14552
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 73@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14552
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14552
97@ += 1
goto @SYN3_14450

:SYN3_14566
if 
  57@ == 4
goto_if_false @SYN3_14803
gosub @SYN3_11475
if 
  179@ == 1
goto_if_false @SYN3_14648
if 
  203@ <> 1
goto_if_false @SYN3_14641
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14641
goto @SYN3_14803

:SYN3_14648
if 
  203@ <> 1
goto_if_false @SYN3_14680
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14680
97@ = 0

:SYN3_14687
if and
  3 > 97@
  203@ <> 0
goto_if_false @SYN3_14803
if 
  not is_car_dead 82@(97@,3i)
goto_if_false @SYN3_14789
if and
  is_char_in_car 37@ {vehicle} 36@
  locate_char_in_car_car_2d 37@ {handle} 82@(97@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN3_14789
set_car_heavy 36@ {state} False
203@ = 0

:SYN3_14789
97@ += 1
goto @SYN3_14687

:SYN3_14803
if and
  57@ == -1
  203@ <> 1
goto_if_false @SYN3_14842
set_car_heavy 36@ {state} True
203@ = 1

:SYN3_14842
if 
  203@ == 1
goto_if_false @SYN3_14914
set_car_driving_style 36@ {drivingStyle} DrivingMode.AvoidCars
if 
  204@ <> 1
goto_if_false @SYN3_14907
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} True {meleeProof} False
204@ = 1

:SYN3_14907
goto @SYN3_14961

:SYN3_14914
set_car_driving_style 36@ {drivingStyle} DrivingMode.SlowDownForCars
if 
  204@ == 1
goto_if_false @SYN3_14961
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
204@ = 0

:SYN3_14961
return 

:SYN3_14963
if 
  not is_car_dead 35@
goto_if_false @SYN3_15034
if and
  not is_char_in_car $scplayer {vehicle} 35@
  140@ <> 1
goto_if_false @SYN3_15034
214@ = add_blip_for_car 35@
set_blip_as_friendly 214@ {state} True
change_blip_display 214@ {display} BlipDisplay.MarkerOnly
140@ = 1

:SYN3_15034
return 

:SYN3_15036
do_fade 1000 {direction} Fade.Out

:SYN3_15043
if 
  get_fading_status 
goto_if_false @SYN3_15067
wait 0
goto @SYN3_15043

:SYN3_15067
set_player_control $player1 {state} False
clear_area -2170.5801 {y} -206.92 {z} 34.57 {radius} 100.0 {clearParticles} False
request_collision -2170.5801 {y} -206.92
load_scene_in_direction -2170.5801 {y} -206.92 {z} 34.57 {heading} 270.0
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_car_dead 36@
goto_if_false @SYN3_15187
set_car_coordinates 36@ {x} -2170.5801 {y} -206.92 {z} 34.57
set_car_heading 36@ {heading} 91.13

:SYN3_15187
if 
  not is_char_dead 37@
goto_if_false @SYN3_15281
clear_char_tasks_immediately 37@
if 
  is_char_in_any_car 37@
goto_if_false @SYN3_15251
warp_char_from_car_to_coord 37@ {x} -2170.45 {y} -209.19 {z} 34.37
goto @SYN3_15271

:SYN3_15251
set_char_coordinates 37@ {x} -2170.45 {y} -209.19 {z} 34.37

:SYN3_15271
set_char_heading 37@ {heading} 207.63

:SYN3_15281
272@ = 0
if 
  210@ == 1
goto_if_false @SYN3_15391
if 
  not is_car_dead 99@
goto_if_false @SYN3_15368
if or
  is_char_in_car $scplayer {vehicle} 99@
  locate_char_any_means_car_2d $scplayer {vehicle} 99@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_15368
272@ = 1

:SYN3_15368
if 
  272@ == 0
goto_if_false @SYN3_15391
delete_car 99@

:SYN3_15391
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_15439
warp_char_from_car_to_coord $scplayer {x} -2169.4399 {y} -210.34 {z} 34.37
goto @SYN3_15459

:SYN3_15439
set_char_coordinates $scplayer {x} -2169.4399 {y} -210.34 {z} 34.37

:SYN3_15459
set_char_heading $scplayer {heading} 48.2
if and
  272@ == 1
  not is_car_dead 99@
goto_if_false @SYN3_15560
if 
  locate_car_2d 99@ {x} -2170.45 {y} -209.19 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN3_15560
set_car_coordinates 99@ {x} -2154.28 {y} -275.18 {z} -100.0
set_car_heading 99@ {heading} 270.0

:SYN3_15560
wait 1000
switch_widescreen True
if 
  not is_char_dead 37@
goto_if_false @SYN3_15605
task_look_at_char $scplayer {target} 37@ {time} -2
task_look_at_char 37@ {target} $scplayer {time} -2

:SYN3_15605
set_fixed_camera_position -2172.3501 {y} -210.03 {z} 35.67 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2170.27 {y} -210.1 {z} 35.4 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SYN3_15663
if 
  get_fading_status 
goto_if_false @SYN3_15687
wait 0
goto @SYN3_15663

:SYN3_15687
133@ = 1
skip_cutscene_start_internal @SYN3_15921
132@ = 2
gosub @SYN3_17788
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SYN3_15751
if 
  1 > 129@
goto_if_false @SYN3_15827
wait 0
gosub @SYN3_18315
if and
  128@ == 2
  131@ <> 1
goto_if_false @SYN3_15820
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_15820
goto @SYN3_15751

:SYN3_15827
stop_char_facial_talk $scplayer

:SYN3_15832
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_15909
wait 0
gosub @SYN3_18315
if and
  128@ == 2
  131@ <> 1
goto_if_false @SYN3_15902
start_char_facial_talk $scplayer {duration} 10000
131@ = 1

:SYN3_15902
goto @SYN3_15832

:SYN3_15909
stop_char_facial_talk $scplayer
133@ = 0

:SYN3_15921
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:SYN3_15930
if 
  get_fading_status 
goto_if_false @SYN3_15954
wait 0
goto @SYN3_15930

:SYN3_15954
if 
  133@ == 1
goto_if_false @SYN3_15972

:SYN3_15972
stop_char_facial_talk $scplayer
clear_look_at $scplayer
clear_char_tasks_immediately $scplayer
clear_prints 
delete_car 36@
delete_char 37@
clear_area -2127.0801 {y} -87.75 {z} 35.32 {radius} 20.0 {clearParticles} False
request_collision -2127.0801 {y} -87.75
load_scene -2127.0801 {y} -87.75 {z} 35.32
if and
  272@ == 1
  not is_car_dead 99@
goto_if_false @SYN3_16120
set_car_coordinates 99@ {x} -2127.0801 {y} -87.75 {z} -100.0
set_car_heading 99@ {heading} 0.0
warp_char_into_car $scplayer {vehicle} 99@
goto @SYN3_16150

:SYN3_16120
set_char_coordinates $scplayer {x} -2127.0801 {y} -87.75 {z} -100.0
set_char_heading $scplayer {heading} 0.0

:SYN3_16150
remove_blip 214@
remove_blip 247@
remove_blip 215@
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 440
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 355
switch_roads_back_to_original -2005.23 {leftBottomY} 517.16 {leftBottomZ} 33.0 {rightTopX} -2002.6899 {rightTopY} 554.12 {rightTopZ} 36.0
switch_roads_back_to_original -2097.8 {leftBottomY} 319.42 {leftBottomZ} 33.0 {rightTopX} -2035.5699 {rightTopY} 321.05 {rightTopZ} 36.0
switch_roads_back_to_original -2150.1799 {leftBottomY} 138.75 {leftBottomZ} 33.0 {rightTopX} -2145.71 {rightTopY} 160.84 {rightTopZ} 36.0
switch_roads_back_to_original -2168.24 {leftBottomY} 42.13 {leftBottomZ} 33.0 {rightTopX} -2165.99 {rightTopY} 61.7 {rightTopZ} 36.0
switch_random_trains True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
wait 1000
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:SYN3_16364
if 
  get_fading_status 
goto_if_false @SYN3_16388
wait 0
goto @SYN3_16364

:SYN3_16388
return 

:SYN3_16390
do_fade 1000 {direction} Fade.Out

:SYN3_16397
if 
  get_fading_status 
goto_if_false @SYN3_16421
wait 0
goto @SYN3_16397

:SYN3_16421
set_player_control $player1 {state} False
switch_widescreen True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 42@ {y} 43@ {z} 44@ {radius} 100.0 {clearParticles} False
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
if 
  not is_car_dead 36@
goto_if_false @SYN3_16521
set_car_coordinates 36@ {x} 38@ {y} 39@ {z} 40@
set_car_heading 36@ {heading} 41@

:SYN3_16521
if 
  not is_car_dead 35@
goto_if_false @SYN3_16567
set_car_coordinates 35@ {x} -1830.16 {y} -17.64 {z} 14.79
set_car_heading 35@ {heading} 268.78

:SYN3_16567
if 
  not is_car_dead 34@
goto_if_false @SYN3_16636
if 
  not is_char_in_any_car $scplayer
goto_if_false @SYN3_16607
warp_char_into_car $scplayer {vehicle} 34@

:SYN3_16607
set_car_coordinates 34@ {x} 42@ {y} 43@ {z} 44@
set_car_heading 34@ {heading} 90.0
car_set_idle 34@

:SYN3_16636
request_animation "CAR_CHAT"

:SYN3_16648
if 
  not has_animation_loaded "CAR_CHAT"
goto_if_false @SYN3_16682
wait 0
goto @SYN3_16648

:SYN3_16682
132@ = 1
gosub @SYN3_17788
if 
  not is_char_dead 100@
goto_if_false @SYN3_16780
task_play_anim 100@ {animationName} "CAR_SC3_FR" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 101@
goto_if_false @SYN3_16780
task_look_at_char 101@ {target} 100@ {time} -2

:SYN3_16780
set_fixed_camera_position -1815.98 {y} 3.07 {z} 15.31 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1815.5 {y} 2.94 {z} 15.25 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SYN3_16838
if 
  get_fading_status 
goto_if_false @SYN3_16862
wait 0
goto @SYN3_16838

:SYN3_16862
133@ = 1
skip_cutscene_start_internal @SYN3_17540

:SYN3_16876
if 
  1 > 129@
goto_if_false @SYN3_16957
wait 0
gosub @SYN3_18315
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_16950
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_16950
goto @SYN3_16876

:SYN3_16957
if 
  not is_char_dead 100@
goto_if_false @SYN3_16988
stop_char_facial_talk 100@
task_look_at_char $scplayer {target} 100@ {time} -1

:SYN3_16988
if 
  2 > 129@
goto_if_false @SYN3_17069
wait 0
gosub @SYN3_18315
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_17062
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_17062
goto @SYN3_16988

:SYN3_17069
if 
  not is_char_dead 100@
goto_if_false @SYN3_17090
stop_char_facial_talk 100@

:SYN3_17090
if 
  3 > 129@
goto_if_false @SYN3_17171
wait 0
gosub @SYN3_18315
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_17164
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_17164
goto @SYN3_17090

:SYN3_17171
if 
  not is_char_dead 100@
goto_if_false @SYN3_17192
stop_char_facial_talk 100@

:SYN3_17192
clear_look_at $scplayer
wait 200
task_leave_any_car $scplayer
wait 500
if 
  not is_char_dead 100@
goto_if_false @SYN3_17238
task_look_at_char 100@ {target} $scplayer {time} -1

:SYN3_17238
wait 2000
if 
  not is_char_dead 101@
goto_if_false @SYN3_17264
clear_look_at 101@

:SYN3_17264
129@ = 5

:SYN3_17271
if 
  6 > 129@
goto_if_false @SYN3_17352
wait 0
gosub @SYN3_18315
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 100@
goto_if_false @SYN3_17345
start_char_facial_talk 100@ {duration} 10000
131@ = 1

:SYN3_17345
goto @SYN3_17271

:SYN3_17352
if 
  not is_char_dead 100@
goto_if_false @SYN3_17373
stop_char_facial_talk 100@

:SYN3_17373
if 
  not is_char_dead 101@
goto_if_false @SYN3_17399
task_look_at_char 101@ {target} $scplayer {time} -1

:SYN3_17399
wait 1000

:SYN3_17404
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_17486
wait 0
gosub @SYN3_18315
if and
  128@ == 2
  131@ <> 1
  not is_char_dead 101@
goto_if_false @SYN3_17479
start_char_facial_talk 101@ {duration} 10000
131@ = 1

:SYN3_17479
goto @SYN3_17404

:SYN3_17486
if 
  not is_char_dead 101@
goto_if_false @SYN3_17507
stop_char_facial_talk 101@

:SYN3_17507
wait 1000
if 
  not is_char_dead 100@
goto_if_false @SYN3_17533
clear_look_at 100@

:SYN3_17533
133@ = 0

:SYN3_17540
skip_cutscene_end 
do_fade 700 {direction} Fade.Out

:SYN3_17549
if 
  get_fading_status 
goto_if_false @SYN3_17573
wait 0
goto @SYN3_17549

:SYN3_17573
if 
  133@ == 1
goto_if_false @SYN3_17591

:SYN3_17591
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_look_at $scplayer
clear_char_tasks $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN3_17651
warp_char_from_car_to_coord $scplayer {x} -1816.1899 {y} -1.19 {z} 14.15
goto @SYN3_17671

:SYN3_17651
set_char_coordinates $scplayer {x} -1816.1899 {y} -1.19 {z} 14.15

:SYN3_17671
set_char_heading $scplayer {heading} 132.83
delete_car 34@
delete_char 100@
delete_char 101@
unload_special_character 1
unload_special_character 2
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_animation "CAR_CHAT"
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_max_wanted_level 0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:SYN3_17762
if 
  get_fading_status 
goto_if_false @SYN3_17786
wait 0
goto @SYN3_17762

:SYN3_17786
return 

:SYN3_17788
switch_start 132@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @SYN3_18285 {caseNum1} 0 {caseLabel1} @SYN3_17851 {caseNum2} 1 {caseLabel2} @SYN3_18041 {caseNum3} 2 {caseLabel3} @SYN3_18223 {caseNum4} -1 {caseLabel4} @SYN3_18292 {caseNum5} -1 {caseLabel5} @SYN3_18292 {caseNum6} -1 {caseLabel6} @SYN3_18292 {caseNum7} -1 {caseLabel7} @SYN3_18292

:SYN3_17851
set_lvar_text_label 104@s = 'MJIZ01A'
set_lvar_text_label 106@s = 'MJIZ01B'
set_lvar_text_label 108@s = 'MJIZ01C'
set_lvar_text_label 110@s = 'MJIZ01D'
set_lvar_text_label 112@s = 'MJIZ01E'
set_lvar_text_label 114@s = 'MJIZ01F'
set_lvar_text_label 116@s = 'MJIZ01G'
set_lvar_text_label 118@s = 'MJIZ01H'
set_lvar_int_to_constant 120@ = 26800
set_lvar_int_to_constant 121@ = 26801
set_lvar_int_to_constant 122@ = 26802
set_lvar_int_to_constant 123@ = 26803
set_lvar_int_to_constant 124@ = 26804
set_lvar_int_to_constant 125@ = 26805
set_lvar_int_to_constant 126@ = 26806
set_lvar_int_to_constant 127@ = 26807
130@ = 8
goto @SYN3_18292

:SYN3_18041
set_lvar_text_label 104@s = 'SYN3_CA'
set_lvar_text_label 106@s = 'SYN3_CB'
set_lvar_text_label 108@s = 'SYN3_CC'
set_lvar_text_label 110@s = 'SYN3_CD'
set_lvar_text_label 112@s = 'SYN3_CE'
set_lvar_text_label 114@s = 'SYN3_CF'
set_lvar_text_label 116@s = 'SYN3_CG'
set_lvar_int_to_constant 120@ = 39213
set_lvar_int_to_constant 121@ = 39214
set_lvar_int_to_constant 122@ = 39215
set_lvar_int_to_constant 123@ = 39216
set_lvar_int_to_constant 124@ = 39217
set_lvar_int_to_constant 125@ = 39218
set_lvar_int_to_constant 126@ = 39219
130@ = 7
goto @SYN3_18292

:SYN3_18223
set_lvar_text_label 104@s = 'SYN3_EA'
set_lvar_text_label 106@s = 'SYN3_EB'
set_lvar_int_to_constant 120@ = 39221
set_lvar_int_to_constant 121@ = 39222
130@ = 2
goto @SYN3_18292

:SYN3_18285
goto @SYN3_18292

:SYN3_18292
128@ = 0
129@ = 0
131@ = 0
return 

:SYN3_18315
if or
  128@ == 0
  128@ == 1
goto_if_false @SYN3_18385
if 
  is_int_lvar_greater_than_int_lvar 130@ > 129@
goto_if_false @SYN3_18385
if 
  TIMERB > 1000
goto_if_false @SYN3_18385
gosub @SYN3_18450

:SYN3_18385
if 
  128@ == 2
goto_if_false @SYN3_18448
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN3_18448
128@ = 0
129@ += 1
131@ = 0
clear_prints 
TIMERB = 0

:SYN3_18448
return 

:SYN3_18450
if 
  128@ == 0
goto_if_false @SYN3_18486
load_mission_audio MissionAudioSlot.Slot1 {audioId} 120@(129@,8i)
128@ = 1

:SYN3_18486
if 
  128@ == 1
goto_if_false @SYN3_18544
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN3_18544
print_now 104@(129@,8s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
128@ = 2

:SYN3_18544
return 

:SYN3_18546
clear_mission_audio MissionAudioSlot.Slot2
switch_start 103@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SYN3_18693 {caseNum1} 0 {caseLabel1} @SYN3_18613 {caseNum2} 1 {caseLabel2} @SYN3_18629 {caseNum3} 2 {caseLabel3} @SYN3_18645 {caseNum4} 3 {caseLabel4} @SYN3_18661 {caseNum5} 4 {caseLabel5} @SYN3_18677 {caseNum6} -1 {caseLabel6} @SYN3_18700 {caseNum7} -1 {caseLabel7} @SYN3_18700

:SYN3_18613
load_mission_audio MissionAudioSlot.Slot2 {audioId} 40802
goto @SYN3_18700

:SYN3_18629
load_mission_audio MissionAudioSlot.Slot2 {audioId} 40801
goto @SYN3_18700

:SYN3_18645
load_mission_audio MissionAudioSlot.Slot2 {audioId} 40803
goto @SYN3_18700

:SYN3_18661
load_mission_audio MissionAudioSlot.Slot2 {audioId} 40800
goto @SYN3_18700

:SYN3_18677
load_mission_audio MissionAudioSlot.Slot2 {audioId} 40804
goto @SYN3_18700

:SYN3_18693
goto @SYN3_18700

:SYN3_18700
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot1

:SYN3_18709
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SYN3_18813
wait 0
if or
  is_char_dead 100@
  is_char_dead 101@
  is_car_dead 34@
  is_car_dead 36@
  is_char_dead 37@
  is_car_dead 35@
goto_if_false @SYN3_18771
return 

:SYN3_18771
if and
  135@ <> 1
  has_pickup_been_collected 89@
goto_if_false @SYN3_18806
remove_blip 247@
135@ = 1

:SYN3_18806
goto @SYN3_18709

:SYN3_18813
play_mission_audio MissionAudioSlot.Slot2
switch_start 103@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @SYN3_18995 {caseNum1} 0 {caseLabel1} @SYN3_18880 {caseNum2} 1 {caseLabel2} @SYN3_18903 {caseNum3} 2 {caseLabel3} @SYN3_18926 {caseNum4} 3 {caseLabel4} @SYN3_18949 {caseNum5} 4 {caseLabel5} @SYN3_18972 {caseNum6} -1 {caseLabel6} @SYN3_19002 {caseNum7} -1 {caseLabel7} @SYN3_19002

:SYN3_18880
print_now 'TORX_AC' {time} 3000 {flag} 1
goto @SYN3_19002

:SYN3_18903
print_now 'TORX_AB' {time} 3000 {flag} 1
goto @SYN3_19002

:SYN3_18926
print_now 'TORX_AD' {time} 3000 {flag} 1
goto @SYN3_19002

:SYN3_18949
print_now 'TORX_AA' {time} 3000 {flag} 1
goto @SYN3_19002

:SYN3_18972
print_now 'TORX_AE' {time} 3000 {flag} 1
goto @SYN3_19002

:SYN3_18995
goto @SYN3_19002

:SYN3_19002
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SYN3_19106
wait 0
if or
  is_char_dead 100@
  is_char_dead 101@
  is_car_dead 34@
  is_car_dead 36@
  is_char_dead 37@
  is_car_dead 35@
goto_if_false @SYN3_19064
return 

:SYN3_19064
if and
  135@ <> 1
  has_pickup_been_collected 89@
goto_if_false @SYN3_19099
remove_blip 247@
135@ = 1

:SYN3_19099
goto @SYN3_19002

:SYN3_19106
103@ += 1
if 
  103@ > 4
goto_if_false @SYN3_19138
103@ = 0

:SYN3_19138
return 

:SYN3_19140
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN3_19158
$flag_synd_mission_counter += 1
register_mission_passed 'SYND_3'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 9000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 9000
award_player_mission_respect 25
set_max_wanted_level 248@
alter_wanted_level_no_drop $player1 {wantedLevel} 3
play_mission_passed_tune 1
remove_blip $synd_contact_blip
return 

:SYN3_19234
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 440
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed #BODYARMOUR
remove_pickup 89@
remove_pickup 90@
remove_pickup 249@
remove_blip 212@
remove_blip 213@
remove_blip 214@
remove_blip 247@
remove_blip 215@
remove_blip 216@
gosub @SYN3_11584
gosub @SYN3_11665
gosub @SYN3_11785
gosub @SYN3_11905
clear_sequence_task 98@
if 
  is_player_playing $player1
goto_if_false @SYN3_19404
set_everyone_ignore_player $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:SYN3_19404
unload_special_character 1
unload_special_character 2
remove_char_elegantly 100@
remove_char_elegantly 101@
remove_animation "CAR_CHAT"
switch_roads_back_to_original -2005.23 {leftBottomY} 517.16 {leftBottomZ} 33.0 {rightTopX} -2002.6899 {rightTopY} 554.12 {rightTopZ} 36.0
switch_roads_back_to_original -2097.8 {leftBottomY} 319.42 {leftBottomZ} 33.0 {rightTopX} -2035.5699 {rightTopY} 321.05 {rightTopZ} 36.0
switch_roads_back_to_original -2150.1799 {leftBottomY} 138.75 {leftBottomZ} 33.0 {rightTopX} -2145.71 {rightTopY} 160.84 {rightTopZ} 36.0
switch_roads_back_to_original -2168.24 {leftBottomY} 42.13 {leftBottomZ} 33.0 {rightTopX} -2165.99 {rightTopY} 61.7 {rightTopZ} 36.0
switch_random_trains True
remove_decision_maker 88@
remove_decision_maker 102@
if 
  not is_car_dead 34@
goto_if_false @SYN3_19599
freeze_car_position 34@ {state} False

:SYN3_19599
set_max_wanted_level 248@
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 61---------------
// Originally: Ice Cold Killa

:SYND4
script_name 'SYND4'
gosub @SYND4_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYND4_38
gosub @SYND4_12026

:SYND4_38
gosub @SYND4_12403
terminate_this_script 

:SYND4_47
$off1_X = 0.0
$off_X = 0.0
$off1_Y = 0.0
$off_Y = 0.0
$syn4_offsetX = 0.0
$syn4_offsetY = 0.0
$syn4_rnd = 0
$s4_has_phone = 0
$s4_j_health = 0
$s4_limo_hlth = 0
117@ = 0
97@ = 2
load_mission_text 'SYN4'
switch_entry_exit 'PDOMES' {state} True
switch_entry_exit 'PDOMES2' {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SYND4_201
if 
  get_fading_status 
goto_if_false @SYND4_225
wait 0
goto @SYND4_201

:SYND4_225
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'SYND_4A'

:SYND4_264
if 
  not has_cutscene_loaded 
goto_if_false @SYND4_288
wait 0
goto @SYND4_264

:SYND4_288
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SYND4_305
if 
  not has_cutscene_finished 
goto_if_false @SYND4_329
wait 0
goto @SYND4_305

:SYND4_329
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:SYND4_343
if 
  get_fading_status 
goto_if_false @SYND4_367
wait 0
goto @SYND4_343

:SYND4_367
clear_cutscene 
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_428
set_char_coordinates_dont_warp_gang $scplayer {x} -2031.197 {y} 161.1839 {z} 27.8516
set_char_heading $scplayer {heading} 268.0468
set_camera_behind_player 

:SYND4_428
set_fading_colour 0 {g} 0 {b} 0
request_model 347
request_model 163
request_model 164
request_model 409
request_model 352
request_model 575
request_model 409
request_model 71
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
55@ = load_char_decision_maker DecisionMakerType.Empty
47@ = load_char_decision_maker DecisionMakerType.Tough
88@ = load_char_decision_maker DecisionMakerType.Tough

:SYND4_520
if or
  not has_model_loaded 347
  not has_model_loaded 163
  not has_model_loaded 164
  not has_model_loaded 409
  not has_model_loaded 352
goto_if_false @SYND4_567
wait 0
goto @SYND4_520

:SYND4_567
if or
  not has_model_loaded 409
  not has_model_loaded 575
  not has_model_loaded 71
goto_if_false @SYND4_603
wait 0
goto @SYND4_567

:SYND4_603
load_scene_in_direction -2031.197 {y} 161.1839 {z} 27.8359 {heading} 268.0468
clear_area -2624.5491 {y} 1412.131 {z} 6.1094 {radius} 10.0 {clearParticles} True
52@ = create_group DefaultTaskAllocator.StandStill
53@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker 52@ {handleOrTemplate} 53@
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_739
58@ = open_sequence_task 
flush_route 
extend_route -2643.9929 {y} 1405.895 {z} 905.2734
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_kill_char_on_foot -1 {target} $scplayer
task_stay_in_same_place -1 {state} True
flush_route 
close_sequence_task 58@

:SYND4_739
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_915
120@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2664.2859 {y} 1420.9041 {z} 905.2812 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 120@
121@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2662.241 {y} 1418.222 {z} 905.277 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 121@
122@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2671.8579 {y} 1420.603 {z} 905.2812 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 122@
123@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2667.2209 {y} 1421.774 {z} 905.2812 {speed} MoveState.Walk {vehicle} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 123@

:SYND4_915
72@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2674.1709 {y} 1394.553 {z} 917.3582 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 94.4524
set_sequence_to_repeat 72@ {state} True
close_sequence_task 72@
81@ = open_sequence_task 
flush_route 
extend_route -2666.1421 {y} 1420.576 {z} 905.277
extend_route -2654.3301 {y} 1420.092 {z} 905.2812
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
close_sequence_task 81@
73@ = open_sequence_task 
flush_route 
extend_route -2663.897 {y} 1420.509 {z} 905.2812
extend_route -2655.542 {y} 1418.905 {z} 905.2812
extend_route -2648.7451 {y} 1416.988 {z} 905.2812
extend_route -2645.2759 {y} 1410.547 {z} 905.2812
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 73@
67@ = open_sequence_task 
flush_route 
extend_route -2627.8311 {y} 1404.959 {z} 905.4609
extend_route -2627.5139 {y} 1406.6071 {z} 905.4609
extend_route -2635.9241 {y} 1408.306 {z} 905.4609
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
task_pause -1 {time} 4000
flush_route 
extend_route -2629.4509 {y} 1406.7729 {z} 905.4609
extend_route -2626.7151 {y} 1403.41 {z} 905.4609
extend_route -2629.2241 {y} 1402.585 {z} 905.4598
extend_route -2639.5129 {y} 1399.569 {z} 911.4133
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
close_sequence_task 67@
57@ = open_sequence_task 
flush_route 
extend_route -2663.0239 {y} 1430.271 {z} 911.3984
extend_route -2677.8411 {y} 1429.663 {z} 911.3921
extend_route -2688.7571 {y} 1426.88 {z} 905.4531
extend_route -2686.4929 {y} 1422.207 {z} 905.4531
extend_route -2677.769 {y} 1421.948 {z} 905.4531
extend_route -2664.3181 {y} 1423.618 {z} 905.2734
extend_route -2651.408 {y} 1423.601 {z} 905.2734
extend_route -2642.1011 {y} 1416.098 {z} 905.2812
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
extend_route -2633.106 {y} 1415.7209 {z} 905.4531
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
close_sequence_task 57@
42@ = open_sequence_task 
task_look_about -1 {time} 4000
task_pause -1 {time} 1000
task_scratch_head -1
set_sequence_to_repeat 42@ {state} True
close_sequence_task 42@
68@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
set_sequence_to_repeat 68@ {state} True
close_sequence_task 68@
62@ = create_car 409 {x} -2634.061 {y} 1395.498 {z} 6.1186
set_car_heading 62@ {heading} 3.5285
change_car_colour 62@ {color1} 0 {color2} 0
set_can_burst_car_tyres 62@ {state} False
set_car_health 62@ {health} 2000
63@ = create_car 409 {x} -2613.48 {y} 1416.568 {z} 6.1432
set_car_heading 63@ {heading} 272.3133
change_car_colour 63@ {color1} 0 {color2} 0
set_can_burst_car_tyres 63@ {state} False
set_car_health 63@ {health} 2000
custom_plate_for_next_car 575 {text} "HO_2_HO_"
64@ = create_car 575 {x} -2611.4709 {y} 1409.036 {z} 6.1335
set_car_heading 64@ {heading} 274.4727
change_car_colour 64@ {color1} 4 {color2} 4
set_car_health 64@ {health} 1000
124@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2622.981 {y} 1413.1071 {z} 6.1137 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 196.019
set_sequence_to_repeat 124@ {state} True
close_sequence_task 124@
125@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2626.4089 {y} 1411.96 {z} 6.1094 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 190.6977
set_sequence_to_repeat 125@ {state} True
close_sequence_task 125@
49@ = create_char PedType.Mission2 {modelId} 163 {x} -2622.981 {y} 1413.1071 {z} 6.1137
set_char_heading 49@ {heading} 196.019
50@ = create_char PedType.Mission2 {modelId} 164 {x} -2626.4089 {y} 1411.96 {z} 6.1094
set_char_heading 50@ {heading} 190.6977
give_weapon_to_char 49@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 49@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 49@ {accuracy} 90
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 50@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 50@ {accuracy} 90
set_char_decision_maker 49@ {handleOrTemplate} 47@
set_char_decision_maker 50@ {handleOrTemplate} 47@
perform_sequence_task 49@ {sequence} 124@
perform_sequence_task 50@ {sequence} 125@
59@ = add_blip_for_coord -2623.937 {y} 1410.79 {z} 6.1152
60@ = add_blip_for_coord -2636.385 {y} 1402.485 {z} 905.4609
set_blip_entry_exit 60@ {x} -2661.74 {y} 1423.483 {radius} 100.0
change_blip_display 60@ {display} BlipDisplay.Neither
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_2049
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 200
set_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced

:SYND4_2049
TIMERA = 0
set_fading_colour 0 {g} 0 {b} 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
print_now 'SYN4_20' {time} 9000 {flag} 1

:SYND4_2095
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_3486
wait 0
gosub @SYND4_12909
gosub @SYND4_13723
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SYND4_2151
goto @SYND4_12241

:SYND4_2151
if 
  117@ == 0
goto_if_false @SYND4_2369
if 
  not is_char_dead 49@
goto_if_false @SYND4_2269
if 
  is_player_targetting_char $player1 {handle} 49@
goto_if_false @SYND4_2269
if 
  not is_char_dead 49@
goto_if_false @SYND4_2233
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_2233
if 
  not is_char_dead 50@
goto_if_false @SYND4_2262
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_2262
117@ = 1

:SYND4_2269
if 
  not is_char_dead 50@
goto_if_false @SYND4_2369
if 
  is_player_targetting_char $player1 {handle} 50@
goto_if_false @SYND4_2369
if 
  not is_char_dead 49@
goto_if_false @SYND4_2333
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_2333
if 
  not is_char_dead 50@
goto_if_false @SYND4_2362
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_2362
117@ = 1

:SYND4_2369
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_3424
if 
  locate_char_on_foot_3d $scplayer {x} -2623.937 {y} 1410.79 {z} 6.1152 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} True
goto_if_false @SYND4_3424
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_2456
set_player_control $player1 {state} False

:SYND4_2456
apply_brakes_to_players_car $player1 {state} True
set_char_heading $scplayer {heading} 0.0
remove_blip 59@
gosub @SYND4_12777
if and
  not is_char_dead 49@
  not is_char_dead 50@
goto_if_false @SYND4_3185
if and
  not has_char_been_damaged_by_char 49@ {handle} $scplayer
  not has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @SYND4_3185
task_look_at_char 50@ {target} $scplayer {time} 6000
gosub @SYND4_12777
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_2597
set_char_coordinates_dont_warp_gang $scplayer {x} -2624.1121 {y} 1410.473 {z} 6.1149
set_char_heading $scplayer {heading} 13.4662

:SYND4_2597
task_look_at_char 49@ {target} $scplayer {time} 6000
set_fixed_camera_position -2623.7151 {y} 1409.642 {z} 7.7873 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2623.8711 {y} 1410.6281 {z} 7.7269 {switchStyle} SwitchType.JumpCut
wait 1000
$syn4_rnd = generate_random_int_in_range 0 {max} 3
switch_start $syn4_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYND4_3117 {caseNum1} 0 {caseLabel1} @SYND4_2736 {caseNum2} 1 {caseLabel2} @SYND4_2863 {caseNum3} 2 {caseLabel3} @SYND4_2990 {caseNum4} -1 {caseLabel4} @SYND4_3117 {caseNum5} -1 {caseLabel5} @SYND4_3117 {caseNum6} -1 {caseLabel6} @SYND4_3117 {caseNum7} -1 {caseLabel7} @SYND4_3117

:SYND4_2736
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39411

:SYND4_2749
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYND4_2775
wait 0
goto @SYND4_2749

:SYND4_2775
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN4_BA' {time} 4000 {flag} 1
TIMERB = 0

:SYND4_2802
if 
  4000 > TIMERB
goto_if_false @SYND4_2856
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_2849
goto @SYND4_3349

:SYND4_2849
goto @SYND4_2802

:SYND4_2856
goto @SYND4_3117

:SYND4_2863
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39412

:SYND4_2876
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYND4_2902
wait 0
goto @SYND4_2876

:SYND4_2902
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN4_BB' {time} 4000 {flag} 1
TIMERB = 0

:SYND4_2929
if 
  4000 > TIMERB
goto_if_false @SYND4_2983
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_2976
goto @SYND4_3349

:SYND4_2976
goto @SYND4_2929

:SYND4_2983
goto @SYND4_3117

:SYND4_2990
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39413

:SYND4_3003
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYND4_3029
wait 0
goto @SYND4_3003

:SYND4_3029
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN4_BC' {time} 4000 {flag} 1
TIMERB = 0

:SYND4_3056
if 
  4000 > TIMERB
goto_if_false @SYND4_3110
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_3103
goto @SYND4_3349

:SYND4_3103
goto @SYND4_3056

:SYND4_3110
goto @SYND4_3117

:SYND4_3117
TIMERB = 0

:SYND4_3124
if 
  1000 > TIMERB
goto_if_false @SYND4_3185
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_3178
70@ = 1
goto @SYND4_3349

:SYND4_3178
goto @SYND4_3124

:SYND4_3185
set_fixed_camera_position -2671.127 {y} 1432.594 {z} 25.4663 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2670.4299 {y} 1431.881 {z} 25.3871 {switchStyle} SwitchType.JumpCut
print_now 'SYN4_12' {time} 5000 {flag} 1
create_birds 2682.4199 {yFrom} 1420.2371 {zFrom} 28.0 {xTo} -2630.365 {yTo} 1411.699 {zTo} 28.0 {quantity} 3 {type} 0
TIMERB = 0

:SYND4_3295
if 
  5000 > TIMERB
goto_if_false @SYND4_3349
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_3342
goto @SYND4_3349

:SYND4_3342
goto @SYND4_3295

:SYND4_3349
gosub @SYND4_12808
61@ = add_blip_for_coord -2661.9241 {y} 1424.278 {z} 22.8906
if 
  70@ == 1
goto_if_false @SYND4_3410
print_now 'SYN4_12' {time} 5000 {flag} 1

:SYND4_3410
apply_brakes_to_players_car $player1 {state} False
goto @SYND4_3493

:SYND4_3424
if 
  locate_char_any_means_3d $scplayer {x} -2660.145 {y} 1419.2111 {z} 22.8906 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @SYND4_3479
goto @SYND4_3493

:SYND4_3479
goto @SYND4_2095

:SYND4_3486
goto @SYND4_12026

:SYND4_3493
request_model 28
request_model 30
request_model 40
request_model 63
request_model 19
request_model 352
request_model 214
request_model 346
load_special_character 1 {modelName} 'JIZZY'
request_model 246
request_animation "SWAT"

:SYND4_3554
if or
  not has_model_loaded 28
  not has_model_loaded 30
  not has_model_loaded 40
  not has_model_loaded 63
  not has_model_loaded 19
goto_if_false @SYND4_3596
wait 0
goto @SYND4_3554

:SYND4_3596
if or
  not has_model_loaded 352
  not has_model_loaded 214
  not has_model_loaded 346
  not has_special_character_loaded 1
  not has_animation_loaded "SWAT"
  not has_model_loaded 246
goto_if_false @SYND4_3650
wait 0
goto @SYND4_3596

:SYND4_3650
if 
goto_if_false @SYND4_3672
wait 0
goto @SYND4_3650

:SYND4_3672
39@ = create_char PedType.Special {modelId} 290 {x} -2669.127 {y} 1426.9189 {z} 905.4609
set_char_area_visible 39@ {areaId} 3
set_anim_group_for_char 39@ {animGroup} "GANG1"
set_relationship RelationshipType.Hate {ofPedType} PedType.Special {toPedType} PedType.Player1
set_char_heading 39@ {heading} 238.0256
set_sense_range 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 55@
44@ = create_char PedType.CivFemale {modelId} 63 {x} -2667.656 {y} 1425.854 {z} 905.4609
set_char_area_visible 44@ {areaId} 3
set_char_heading 44@ {heading} 76.4221
set_char_never_targetted 44@ {state} True
task_chat_with_char 39@ {other} 44@ {leadSpeaker} True {_p4} 1
task_chat_with_char 44@ {other} 39@ {leadSpeaker} False {_p4} 1
43@ = add_blip_for_char 39@
change_blip_display 43@ {display} BlipDisplay.Neither
79@ = open_sequence_task 
task_sit_down -1 {time} 200000
task_look_about -1 {time} 2000
set_sequence_to_repeat 79@ {state} True
close_sequence_task 79@
80@ = open_sequence_task 
task_pause -1 {time} 1000
perform_sequence_task -1 {sequence} 79@
close_sequence_task 80@
34@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.2361 {y} 1429.884 {z} 905.4609
set_char_heading 34@ {heading} 133.1702
perform_sequence_task 34@ {sequence} 80@
35@ = create_char PedType.Mission1 {modelId} 30 {x} -2667.1021 {y} 1430.024 {z} 905.4609
set_char_heading 35@ {heading} 180.876
perform_sequence_task 35@ {sequence} 79@
36@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.064 {y} 1428.402 {z} 905.4609
set_char_heading 36@ {heading} 106.0457
perform_sequence_task 36@ {sequence} 79@
37@ = create_char PedType.Mission1 {modelId} 63 {x} -2668.1169 {y} 1429.933 {z} 905.4609
set_char_heading 37@ {heading} 180.876
perform_sequence_task 37@ {sequence} 80@
112@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2655.5081 {y} 1410.566 {z} 905.2734 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 263.3926
task_pause -1 {time} 2000
task_go_to_coord_any_means -1 {x} -2655.8921 {y} 1406.675 {z} 905.2734 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 181.7338
task_pause -1 {time} 2000
set_sequence_to_repeat 112@ {state} True
close_sequence_task 112@
113@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2660.2681 {y} 1413.959 {z} 905.2734 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 348.451
task_pause -1 {time} 2000
task_go_to_coord_any_means -1 {x} -2662.8411 {y} 1413.7321 {z} 905.2808 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 96.5734
task_pause -1 {time} 2000
set_sequence_to_repeat 113@ {state} True
close_sequence_task 113@
102@ = create_char PedType.Mission3 {modelId} 214 {x} -2655.5081 {y} 1410.566 {z} 905.2734
set_char_heading 102@ {heading} 263.3926
103@ = create_char PedType.Mission3 {modelId} 214 {x} -2660.2681 {y} 1413.959 {z} 905.2734
set_char_heading 103@ {heading} 348.451
perform_sequence_task 102@ {sequence} 112@
perform_sequence_task 103@ {sequence} 113@
104@ = create_char PedType.Mission3 {modelId} 28 {x} -2657.269 {y} 1403.575 {z} 905.2812
set_char_heading 104@ {heading} 271.0479
105@ = create_char PedType.Mission3 {modelId} 63 {x} -2654.6169 {y} 1404.656 {z} 905.2812
set_char_heading 105@ {heading} 87.3589
task_chat_with_char 104@ {other} 105@ {leadSpeaker} True {_p4} 1
task_chat_with_char 105@ {other} 104@ {leadSpeaker} True {_p4} 1
40@ = 0

:SYND4_4439
if 
  not is_char_dead 34@(40@,5i)
goto_if_false @SYND4_4529
set_char_area_visible 34@(40@,5i) {areaId} 3
set_char_is_target_priority 34@(40@,5i) {state} True
give_weapon_to_char 34@(40@,5i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 34@(40@,5i) {weaponType} WeaponType.MicroUzi
set_char_accuracy 34@(40@,5i) {accuracy} 70
set_char_decision_maker 34@(40@,5i) {handleOrTemplate} 55@

:SYND4_4529
if 
  not is_char_dead 102@(40@,10i)
goto_if_false @SYND4_4560
set_char_area_visible 102@(40@,10i) {areaId} 3

:SYND4_4560
40@ += 1
  40@ >= 4
goto_if_false @SYND4_4439
$onmission = 1
register_mission_given 
54@ = add_blip_for_coord -2655.075 {y} 1431.7889 {z} 912.4016
set_blip_entry_exit 54@ {x} -2661.74 {y} 1423.483 {radius} 100.0
change_blip_display 54@ {display} BlipDisplay.Neither
set_camera_behind_player 
flush_route 
extend_route -2653.217 {y} 1424.8669 {z} 906.7266
TIMERA = 0

:SYND4_4665
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_5236
wait 0
if 
  117@ == 0
goto_if_false @SYND4_4903
if 
  not is_char_dead 49@
goto_if_false @SYND4_4803
if 
  is_player_targetting_char $player1 {handle} 49@
goto_if_false @SYND4_4803
if 
  not is_char_dead 49@
goto_if_false @SYND4_4767
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_4767
if 
  not is_char_dead 50@
goto_if_false @SYND4_4796
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_4796
117@ = 1

:SYND4_4803
if 
  not is_char_dead 50@
goto_if_false @SYND4_4903
if 
  is_player_targetting_char $player1 {handle} 50@
goto_if_false @SYND4_4903
if 
  not is_char_dead 49@
goto_if_false @SYND4_4867
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 49@ {target} $scplayer

:SYND4_4867
if 
  not is_char_dead 50@
goto_if_false @SYND4_4896
clear_char_tasks_immediately $scplayer
task_kill_char_on_foot 50@ {target} $scplayer

:SYND4_4896
117@ = 1

:SYND4_4903
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @SYND4_4925
goto @SYND4_12241

:SYND4_4925
gosub @SYND4_12909
gosub @SYND4_13723
if and
  locate_char_any_means_3d $scplayer {x} -2661.01 {y} 1415.384 {z} 921.1953 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  48@ == 0
goto_if_false @SYND4_5229
switch_entry_exit 'PDOMES' {state} False
if 
  does_blip_exist 59@
goto_if_false @SYND4_5028
remove_blip 59@

:SYND4_5028
remove_blip 61@
45@ = add_blip_for_coord -2667.3679 {y} 1427.4351 {z} 905.4609
set_blip_entry_exit 45@ {x} -2661.74 {y} 1423.483 {radius} 100.0
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_5124
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} -2661.0549 {y} 1416.019 {z} 921.1953
set_char_heading $scplayer {heading} 180.0

:SYND4_5124
48@ = 1
if 
  not is_char_dead 49@
goto_if_false @SYND4_5152
delete_char 49@

:SYND4_5152
if 
  not is_char_dead 50@
goto_if_false @SYND4_5173
delete_char 50@

:SYND4_5173
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_5199
set_char_heading $scplayer {heading} 197.6688

:SYND4_5199
print_now 'SYN4_99' {time} 4000 {flag} 1
set_wanted_multiplier 0.0
goto @SYND4_5243

:SYND4_5229
goto @SYND4_4665

:SYND4_5236
goto @SYND4_12026

:SYND4_5243
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12019
wait 0
gosub @SYND4_12909
gosub @SYND4_13723
if 
  46@ == 0
goto_if_false @SYND4_7633
if 
  83@ == 1
goto_if_false @SYND4_5327
115@ = 1
goto @SYND4_12026

:SYND4_5327
40@ = 0

:SYND4_5334
if 
  has_char_been_damaged_by_char 34@(40@,5i) {handle} $scplayer
goto_if_false @SYND4_5387
print_now 'SYN4_08' {time} 4000 {flag} 1
83@ = 1
TIMERA = 0

:SYND4_5387
40@ += 1
  40@ >= 4
goto_if_false @SYND4_5334
if 
  has_char_been_damaged_by_char 39@ {handle} $scplayer
goto_if_false @SYND4_5457
print_now 'SYN4_06' {time} 4000 {flag} 1
83@ = 1
TIMERA = 0

:SYND4_5457
if 
  has_char_been_damaged_by_char 44@ {handle} $scplayer
goto_if_false @SYND4_5506
print_now 'SYN4_08' {time} 4000 {flag} 1
83@ = 1
TIMERA = 0

:SYND4_5506
if 
  locate_char_any_means_3d $scplayer {x} -2668.7161 {y} 1421.8459 {z} 905.277 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @SYND4_7633
switch_entry_exit 'PDOMES2' {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:SYND4_5582
if 
  get_fading_status 
goto_if_false @SYND4_5606
wait 0
goto @SYND4_5582

:SYND4_5606
40@ = 0

:SYND4_5613
delete_char 34@(40@,5i)
40@ += 1
  40@ >= 4
goto_if_false @SYND4_5613
if 
  not is_char_dead 44@
goto_if_false @SYND4_5664
delete_char 44@

:SYND4_5664
if 
  does_blip_exist 43@
goto_if_false @SYND4_5685
remove_blip 43@

:SYND4_5685
if 
  not is_char_dead 39@
goto_if_false @SYND4_5706
delete_char 39@

:SYND4_5706
load_cutscene 'SYND_4B'

:SYND4_5717
if 
  not has_cutscene_loaded 
goto_if_false @SYND4_5741
wait 0
goto @SYND4_5717

:SYND4_5741
start_cutscene 
do_fade 1000 {direction} Fade.In

:SYND4_5750
if 
  not has_cutscene_finished 
goto_if_false @SYND4_5774
wait 0
goto @SYND4_5750

:SYND4_5774
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:SYND4_5789
if 
  get_fading_status 
goto_if_false @SYND4_5813
wait 0
goto @SYND4_5789

:SYND4_5813
gosub @SYND4_12777
39@ = create_char PedType.Special {modelId} 290 {x} -2669.127 {y} 1426.9189 {z} 905.4609
set_char_area_visible 39@ {areaId} 3
set_anim_group_for_char 39@ {animGroup} "GANG1"
set_relationship RelationshipType.Hate {ofPedType} PedType.Special {toPedType} PedType.Player1
set_char_heading 39@ {heading} 238.0256
set_sense_range 39@ {range} 5.0
set_char_decision_maker 39@ {handleOrTemplate} 55@
34@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.2361 {y} 1429.884 {z} 905.4609
set_char_heading 34@ {heading} 133.1702
perform_sequence_task 34@ {sequence} 80@
35@ = create_char PedType.Mission1 {modelId} 30 {x} -2667.1021 {y} 1430.024 {z} 905.4609
set_char_heading 35@ {heading} 180.876
perform_sequence_task 35@ {sequence} 79@
36@ = create_char PedType.Mission1 {modelId} 28 {x} -2665.064 {y} 1428.402 {z} 905.4609
set_char_heading 36@ {heading} 106.0457
perform_sequence_task 36@ {sequence} 79@
37@ = create_char PedType.Mission1 {modelId} 63 {x} -2668.1169 {y} 1429.933 {z} 905.4609
set_char_heading 37@ {heading} 180.876
perform_sequence_task 37@ {sequence} 80@
43@ = add_blip_for_char 39@
change_blip_display 43@ {display} BlipDisplay.Neither
unload_special_character 1
40@ = 0

:SYND4_6094
set_char_area_visible 34@(40@,5i) {areaId} 3
give_weapon_to_char 34@(40@,5i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 34@(40@,5i) {weaponType} WeaponType.MicroUzi
40@ += 1
  40@ >= 4
goto_if_false @SYND4_6094
if 
  not is_char_dead 39@
goto_if_false @SYND4_6208
set_fixed_camera_position -2669.571 {y} 1410.871 {z} 907.8965 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 39@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:SYND4_6208
87@ = create_char PedType.Mission1 {modelId} 163 {x} -2667.1521 {y} 1421.553 {z} 905.2812
set_char_heading 87@ {heading} 275.4244
task_toggle_ped_threat_scanner 87@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_area_visible 87@ {areaId} 3
wait 100
do_fade 0 {direction} Fade.In

:SYND4_6271
if 
  get_fading_status 
goto_if_false @SYND4_6295
wait 0
goto @SYND4_6271

:SYND4_6295
print_now 'SYN4_05' {time} 4000 {flag} 1
if 
  not is_char_dead 87@
goto_if_false @SYND4_6335
perform_sequence_task 87@ {sequence} 73@

:SYND4_6335
40@ = 0

:SYND4_6342
if 
  not is_char_dead 102@(40@,10i)
goto_if_false @SYND4_6382
clear_char_tasks_immediately 102@(40@,10i)
task_duck 102@(40@,10i) {time} -2

:SYND4_6382
40@ += 1
  40@ >= 4
goto_if_false @SYND4_6342
if 
  not is_char_dead 39@
goto_if_false @SYND4_6493
clear_char_tasks 39@
set_char_coordinates_dont_warp_gang 39@ {x} -2664.4619 {y} 1421.766 {z} 905.277
set_char_heading 39@ {heading} 249.6271
perform_sequence_task 39@ {sequence} 73@
add_armour_to_char 39@ {amount} 150
set_char_health 39@ {health} 300
set_char_max_health 39@ {maxHealth} 300
set_char_suffers_critical_hits 39@ {state} False

:SYND4_6493
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_6546
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} -2666.6379 {y} 1410.3051 {z} 905.2812
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:SYND4_6546
wait 1000
TIMERB = 0

:SYND4_6558
if 
  3000 > TIMERB
goto_if_false @SYND4_6612
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_6605
goto @SYND4_6612

:SYND4_6605
goto @SYND4_6558

:SYND4_6612
gosub @SYND4_12808
128@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2639.2771 {y} 1409.022 {z} 905.4646 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 63.4408
close_sequence_task 128@
126@ = open_sequence_task 
perform_sequence_task -1 {sequence} 128@
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 126@ {state} True
close_sequence_task 126@
127@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2639.3521 {y} 1402.766 {z} 905.4646 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 73.286
close_sequence_task 127@
129@ = open_sequence_task 
perform_sequence_task -1 {sequence} 127@
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 129@ {state} True
close_sequence_task 129@
130@ = create_char PedType.Mission1 {modelId} 163 {x} -2639.2771 {y} 1409.022 {z} 905.4646
set_char_area_visible 130@ {areaId} 1
set_char_heading 130@ {heading} 63.4408
set_char_decision_maker 130@ {handleOrTemplate} 55@
perform_sequence_task 130@ {sequence} 126@
131@ = create_char PedType.Mission1 {modelId} 164 {x} -2639.3521 {y} 1402.766 {z} 905.4646
set_char_area_visible 131@ {areaId} 1
set_char_heading 131@ {heading} 73.286
set_char_decision_maker 131@ {handleOrTemplate} 55@
perform_sequence_task 131@ {sequence} 129@
give_weapon_to_char 130@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 130@ {weaponType} WeaponType.MicroUzi
give_weapon_to_char 131@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 131@ {weaponType} WeaponType.MicroUzi
if 
  not is_char_dead 34@
goto_if_false @SYND4_7331
set_char_coordinates_dont_warp_gang 34@ {x} -2671.761 {y} 1420.303 {z} 905.2812
set_char_heading 34@ {heading} 214.6866

:SYND4_7331
if 
  not is_char_dead 35@
goto_if_false @SYND4_7377
set_char_coordinates_dont_warp_gang 35@ {x} -2665.095 {y} 1421.339 {z} 905.2812
set_char_heading 35@ {heading} 167.6077

:SYND4_7377
if 
  not is_char_dead 39@
goto_if_false @SYND4_7456
clear_char_tasks_immediately 39@
change_blip_display 43@ {display} BlipDisplay.Neither
set_char_coordinates_dont_warp_gang 39@ {x} -2621.4651 {y} 1411.338 {z} 905.4609
freeze_char_position 39@ {state} True
set_char_heading 39@ {heading} 277.734
set_char_area_visible 39@ {areaId} 0
74@ = 1

:SYND4_7456
if 
  not is_char_dead 87@
goto_if_false @SYND4_7514
clear_char_tasks_immediately 87@
set_char_coordinates_dont_warp_gang 87@ {x} -2625.8359 {y} 1404.75 {z} 6.0938
set_char_heading 87@ {heading} 279.9147
set_char_area_visible 87@ {areaId} 0

:SYND4_7514
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
40@ = 0

:SYND4_7529
if 
  not is_char_dead 34@(40@,5i)
goto_if_false @SYND4_7582
clear_char_tasks_immediately 34@(40@,5i)
task_kill_char_on_foot 34@(40@,5i) {target} $scplayer
set_char_decision_maker 34@(40@,5i) {handleOrTemplate} 47@

:SYND4_7582
40@ += 1
  40@ >= 4
goto_if_false @SYND4_7529
change_blip_display 60@ {display} BlipDisplay.Both
change_blip_display 45@ {display} BlipDisplay.Neither
set_camera_behind_player 
41@ = 1
46@ = 1

:SYND4_7633
if 
  locate_char_any_means_3d $scplayer {x} -2640.998 {y} 1406.275 {z} 905.4609 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYND4_7767
if and
  not is_char_dead 130@
  98@ == 0
goto_if_false @SYND4_7724
clear_char_tasks_immediately 130@
task_kill_char_on_foot 130@ {target} $scplayer
98@ = 1

:SYND4_7724
if and
  not is_char_dead 131@
  99@ == 0
goto_if_false @SYND4_7767
clear_char_tasks_immediately 131@
task_kill_char_on_foot 131@ {target} $scplayer
99@ = 1

:SYND4_7767
if 
  46@ == 1
goto_if_false @SYND4_11400
if 
  41@ == 1
goto_if_false @SYND4_9218
if and
  is_char_dead 39@
  85@ == 0
goto_if_false @SYND4_7854
if 
  does_blip_exist 60@
goto_if_false @SYND4_7847
remove_blip 60@

:SYND4_7847
goto @SYND4_12241

:SYND4_7854
if 
  not is_char_dead 39@
goto_if_false @SYND4_7997
if and
  locate_char_any_means_3d 39@ {x} -2636.385 {y} 1402.485 {z} 905.4609 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  74@ == 0
goto_if_false @SYND4_7997
if 
  not is_char_dead 39@
goto_if_false @SYND4_7997
clear_char_tasks 39@
change_blip_display 43@ {display} BlipDisplay.Neither
set_char_coordinates_dont_warp_gang 39@ {x} -2621.4651 {y} 1411.338 {z} 6.1094
set_char_heading 39@ {heading} 277.734
set_char_area_visible 39@ {areaId} 0
74@ = 1

:SYND4_7997
if or
  locate_char_any_means_3d $scplayer {x} -2624.8 {y} 1411.54 {z} 6.1015 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2661.8501 {y} 1426.39 {z} 22.8985 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYND4_9218
gosub @SYND4_12843
if 
  not is_char_dead 39@
goto_if_false @SYND4_8132
set_char_coordinates_dont_warp_gang 39@ {x} -2621.4651 {y} 1411.338 {z} 6.1094
freeze_char_position 39@ {state} False

:SYND4_8132
switch_entry_exit 'PDOMES' {state} False
switch_entry_exit 'PDOMES2' {state} False
mark_road_node_as_dont_wander -2686.415 {y} 1235.572 {z} 54.4297
mark_road_node_as_dont_wander -2671.2981 {y} 1236.4919 {z} 54.4297
if 
  is_car_dead 64@
goto_if_false @SYND4_8353
delete_car 64@
clear_area -2611.4709 {y} 1409.036 {z} 6.1335 {radius} 20.0 {clearParticles} True
request_model 448
request_model 155

:SYND4_8247
if or
  not has_model_loaded 448
  not has_model_loaded 155
goto_if_false @SYND4_8279
wait 0
goto @SYND4_8247

:SYND4_8279
64@ = create_car 448 {x} -2611.4709 {y} 1409.036 {z} 6.1335
set_car_heading 64@ {heading} 274.4727
132@ = create_char_inside_car 64@ {pedType} PedType.CivMale {modelId} 155
delete_char 87@
if 
  not is_char_dead 39@
goto_if_false @SYND4_8353
set_char_can_be_knocked_off_bike 39@ {stayOnBike} 3

:SYND4_8353
75@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 64@ {time} 5000
task_pause -1 {time} 1000
task_car_drive_wander -1 {vehicle} 64@ {speed} 20.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 75@
76@ = open_sequence_task 
task_leave_car -1 {vehicle} 64@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
change_car_colour 64@ {color1} 4 {color2} 4
clear_area -2621.8101 {y} 1398.744 {z} 6.086 {radius} 20.0 {clearParticles} True
remove_blip 60@
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_9218
set_char_area_visible $scplayer {areaId} 0
force_weather_now WeatherType.FoggySf
set_area_visible 0
set_camera_behind_player 
if 
  not is_char_dead 39@
goto_if_false @SYND4_8535
set_char_coordinates_dont_warp_gang 39@ {x} -2624.4851 {y} 1411.353 {z} 6.1015
set_char_heading 39@ {heading} 267.9166

:SYND4_8535
if 
  not is_char_dead 87@
goto_if_false @SYND4_8625
clear_char_tasks_immediately 87@
set_char_coordinates_dont_warp_gang 87@ {x} -2620.604 {y} 1406.97 {z} 6.1016
set_char_heading 87@ {heading} 277.7697
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 87@ {weaponType} WeaponType.Pistol
set_char_decision_maker 87@ {handleOrTemplate} 88@
set_char_accuracy 87@ {accuracy} 30
set_char_shoot_rate 87@ {rate} 30

:SYND4_8625
delete_char 44@
40@ = 0

:SYND4_8637
delete_char 34@(40@,5i)
40@ += 1
  40@ >= 4
goto_if_false @SYND4_8637
gosub @SYND4_12777
if and
  not is_char_dead 39@
  not is_car_dead 64@
goto_if_false @SYND4_8759
set_fixed_camera_position -2626.019 {y} 1411.502 {z} 9.1763 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2625.0591 {y} 1411.35 {z} 8.9421 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 39@
perform_sequence_task 39@ {sequence} 75@

:SYND4_8759
if 
  not is_char_dead 87@
goto_if_false @SYND4_8793
clear_char_tasks_immediately 87@
task_enter_car_as_passenger 87@ {vehicle} 64@ {time} 5000 {seat} SeatId.BikeRear

:SYND4_8793
gosub @SYND4_12876
TIMERB = 0

:SYND4_8807
if 
  4000 > TIMERB
goto_if_false @SYND4_8859
wait 0
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_char_dead 132@
goto_if_false @SYND4_8852

:SYND4_8852
goto @SYND4_8807

:SYND4_8859
85@ = 1
gosub @SYND4_12808
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_8919
set_char_coordinates_dont_warp_gang $scplayer {x} -2627.1001 {y} 1410.399 {z} 6.1015
set_char_heading $scplayer {heading} 279.1925

:SYND4_8919
133@ = open_sequence_task 
task_pause -1 {time} 4000
task_drive_by -1 {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 10.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 30
set_sequence_to_repeat 133@ {state} True
close_sequence_task 133@
if 
  not is_car_dead 64@
goto_if_false @SYND4_9172
if and
  not is_char_dead 87@
  not is_char_dead 39@
goto_if_false @SYND4_9063
if 
  not is_char_in_car 87@ {vehicle} 64@
goto_if_false @SYND4_9044
warp_char_into_car_as_passenger 87@ {handle} 64@ {seat} SeatId.BikeRear

:SYND4_9044
task_toggle_ped_threat_scanner 87@ {onFoot} True {inCar} True {duringScriptTask} True
perform_sequence_task 87@ {sequence} 133@

:SYND4_9063
if and
  not is_char_dead 39@
  not is_car_dead 64@
goto_if_false @SYND4_9172
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 39@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 39@ {accuracy} 90
if 
  not is_char_in_car 39@ {vehicle} 64@
goto_if_false @SYND4_9172
if 
  not is_char_dead 132@
goto_if_false @SYND4_9164
if 
  is_char_in_any_car 132@
goto_if_false @SYND4_9164
delete_char 132@

:SYND4_9164
warp_char_into_car 39@ {vehicle} 64@

:SYND4_9172
clear_prints 
change_blip_display 43@ {display} BlipDisplay.Both
print_now 'SYN4_02' {time} 10000 {flag} 1
TIMERA = 0
set_wanted_multiplier 1.0
41@ = 2

:SYND4_9218
if 
  not is_char_dead 39@
goto_if_false @SYND4_9388
$off_X, $off_Y, $off1_X = get_char_coordinates 39@
if 
  is_char_in_any_car 39@
goto_if_false @SYND4_9272
$car = store_car_char_is_in_no_save 39@

:SYND4_9272
$s4_event = get_char_highest_priority_event 39@
if 
  is_int_var_equal_to_constant $s4_event == 7
goto_if_false @SYND4_9334
clear_char_tasks 39@
task_flee_char_any_means 39@ {threat} $scplayer {safeDist} 200.0 {time} 9999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 1000 {stealCarDist} 10.0

:SYND4_9334
if 
  is_int_var_equal_to_constant $s4_event == 17
goto_if_false @SYND4_9388
clear_char_tasks 39@
task_flee_char_any_means 39@ {threat} $scplayer {safeDist} 200.0 {time} 9999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 1000 {stealCarDist} 10.0

:SYND4_9388
if 
  not is_char_dead 87@
goto_if_false @SYND4_9474
$s4_event = get_char_highest_priority_event 87@
if 
  is_int_var_equal_to_constant $s4_event == 17
goto_if_false @SYND4_9443
clear_char_tasks 87@
task_kill_char_on_foot 87@ {target} $scplayer

:SYND4_9443
if 
  is_int_var_equal_to_constant $s4_event == 7
goto_if_false @SYND4_9474
clear_char_tasks 87@
task_kill_char_on_foot 87@ {target} $scplayer

:SYND4_9474
if 
  not is_car_dead $car
goto_if_false @SYND4_9709
90@ = get_car_health $car
if 
  200 > 90@
goto_if_false @SYND4_9590
89@ = 1
if and
  not is_char_dead 87@
  93@ == 0
goto_if_false @SYND4_9583
134@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} $car
task_die -1
close_sequence_task 134@
perform_sequence_task 87@ {sequence} 134@
93@ = 1

:SYND4_9583
goto @SYND4_9597

:SYND4_9590
89@ = 0

:SYND4_9597
if and
  is_car_on_fire $car
  94@ == 0
  not is_char_dead 39@
goto_if_false @SYND4_9709
135@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} $car
task_flee_char_any_means -1 {threat} $scplayer {safeDist} 200.0 {time} 9999999 {shoot} True {shootTime} 3000 {shootCooldownTime} 1000 {stealCarDist} 10.0
set_sequence_to_repeat 135@ {state} True
close_sequence_task 135@
set_char_decision_maker 39@ {handleOrTemplate} 55@
TIMERB = 0
perform_sequence_task 39@ {sequence} 135@
94@ = 1

:SYND4_9709
if 
  41@ == 2
goto_if_false @SYND4_10228
if and
  is_car_dead 64@
  77@ == 0
goto_if_false @SYND4_9773
print_now 'SYN4_32' {time} 5000 {flag} 1
goto @SYND4_12026

:SYND4_9773
if and
  not is_car_dead 64@
  not is_char_dead 39@
goto_if_false @SYND4_9834
if 
  is_char_in_car 39@ {vehicle} 64@
goto_if_false @SYND4_9827
77@ = 0
goto @SYND4_9834

:SYND4_9827
77@ = 1

:SYND4_9834
if 
  not is_char_dead 39@
goto_if_false @SYND4_10117
if 
  locate_char_any_means_3d $scplayer {x} $off_X {y} $off_Y {z} $off1_X {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @SYND4_10008
if and
  not is_car_dead 64@
  86@ == 0
goto_if_false @SYND4_10001
if 
  not is_car_on_fire 64@
goto_if_false @SYND4_10001
if 
  89@ == 0
goto_if_false @SYND4_9975
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 25.0 {drivingStyle} DrivingMode.AvoidCars
goto @SYND4_9994

:SYND4_9975
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 32.0 {drivingStyle} DrivingMode.AvoidCars

:SYND4_9994
86@ = 1

:SYND4_10001
goto @SYND4_10117

:SYND4_10008
if and
  not is_car_dead 64@
  86@ == 1
goto_if_false @SYND4_10117
if 
  not is_car_on_fire 64@
goto_if_false @SYND4_10117
if 
  89@ == 0
goto_if_false @SYND4_10091
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 23.0 {drivingStyle} DrivingMode.AvoidCars
goto @SYND4_10110

:SYND4_10091
task_car_mission 39@ {vehicle} 64@ {targetVehicle} -1 {missionId} CarMission.Cruise {cruiseSpeed} 28.0 {drivingStyle} DrivingMode.AvoidCars

:SYND4_10110
86@ = 0

:SYND4_10117
if 
  not is_char_dead 39@
goto_if_false @SYND4_10228
if 
  not locate_char_any_means_3d $scplayer {x} $off_X {y} $off_Y {z} $off1_X {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @SYND4_10198
print_now 'SYN4_29' {time} 4000 {flag} 1
goto @SYND4_12026

:SYND4_10198
if and
  not is_char_in_any_car 39@
  91@ == 0
goto_if_false @SYND4_10228
91@ = 1

:SYND4_10228
if and
  not is_char_dead 39@
  not is_car_dead 64@
  not is_char_dead $scplayer
goto_if_false @SYND4_10943
if 
  is_char_in_any_car $scplayer
goto_if_false @SYND4_10943
84@ = store_car_char_is_in $scplayer
92@ += 1
if 
  92@ > 100
goto_if_false @SYND4_10315
clear_car_last_damage_entity 64@
92@ = 0

:SYND4_10315
if and
  not is_car_dead 84@
  TIMERA > 12000
goto_if_false @SYND4_10943
if 
  has_car_been_damaged_by_car 64@ {other} 84@
goto_if_false @SYND4_10943
if 
  not is_message_being_displayed 
goto_if_false @SYND4_10943
100@ += 1
if 
  100@ == 1
goto_if_false @SYND4_10427
set_lvar_text_label 118@s = 'SYN4_AA'
set_lvar_int_to_constant 96@ = 39400
gosub @SYND4_13703

:SYND4_10427
if 
  100@ == 2
goto_if_false @SYND4_10476
set_lvar_text_label 118@s = 'SYN4_AB'
set_lvar_int_to_constant 96@ = 39401
gosub @SYND4_13703

:SYND4_10476
if 
  100@ == 3
goto_if_false @SYND4_10525
set_lvar_text_label 118@s = 'SYN4_AC'
set_lvar_int_to_constant 96@ = 39402
gosub @SYND4_13703

:SYND4_10525
if 
  100@ == 4
goto_if_false @SYND4_10574
set_lvar_text_label 118@s = 'SYN4_AD'
set_lvar_int_to_constant 96@ = 39403
gosub @SYND4_13703

:SYND4_10574
if 
  100@ == 5
goto_if_false @SYND4_10623
set_lvar_text_label 118@s = 'SYN4_AE'
set_lvar_int_to_constant 96@ = 39404
gosub @SYND4_13703

:SYND4_10623
if 
  100@ == 6
goto_if_false @SYND4_10672
set_lvar_text_label 118@s = 'SYN4_AF'
set_lvar_int_to_constant 96@ = 39405
gosub @SYND4_13703

:SYND4_10672
if 
  100@ == 7
goto_if_false @SYND4_10721
set_lvar_text_label 118@s = 'SYN4_AG'
set_lvar_int_to_constant 96@ = 39406
gosub @SYND4_13703

:SYND4_10721
if 
  100@ == 8
goto_if_false @SYND4_10770
set_lvar_text_label 118@s = 'SYN4_AH'
set_lvar_int_to_constant 96@ = 39407
gosub @SYND4_13703

:SYND4_10770
if 
  100@ == 9
goto_if_false @SYND4_10819
set_lvar_text_label 118@s = 'SYN4_AJ'
set_lvar_int_to_constant 96@ = 39408
gosub @SYND4_13703

:SYND4_10819
if 
  100@ == 10
goto_if_false @SYND4_10868
set_lvar_text_label 118@s = 'SYN4_AK'
set_lvar_int_to_constant 96@ = 39409
gosub @SYND4_13703

:SYND4_10868
if 
  100@ == 11
goto_if_false @SYND4_10924
set_lvar_text_label 118@s = 'SYN4_AL'
set_lvar_int_to_constant 96@ = 39410
gosub @SYND4_13703
100@ = 0

:SYND4_10924
TIMERA = 0
92@ = 0
clear_car_last_damage_entity 64@

:SYND4_10943
if and
  is_char_dead 39@
  56@ == 0
goto_if_false @SYND4_11091
if 
  does_blip_exist 43@
goto_if_false @SYND4_10987
remove_blip 43@

:SYND4_10987
request_model #MOBILE1993B

:SYND4_10992
if 
  not has_model_loaded #MOBILE1993B
goto_if_false @SYND4_11019
wait 0
goto @SYND4_10992

:SYND4_11019
136@ = get_ground_z_for_3d_coord $off_X {y} $off_Y {z} $off1_X
136@ += 0.5
78@ = create_object_no_offset #MOBILE1993B {x} $off_X {y} $off_Y {z} 136@
69@ = add_blip_for_object 78@
print_now 'SYN4_33' {time} 4000 {flag} 1
56@ = 1

:SYND4_11091
if 
  56@ == 1
goto_if_false @SYND4_11138
draw_corona $off_X {y} $off_Y {z} 136@ {size} 0.2 {coronaType} CoronaType.Ring {flareType} FlareType.None {r} 200 {g} 200 {b} 200

:SYND4_11138
if and
  locate_char_any_means_3d $scplayer {x} $off_X {y} $off_Y {z} $off1_X {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
  56@ == 1
  not is_char_in_any_car $scplayer
goto_if_false @SYND4_11271
clear_prints 
delete_object 78@
if 
  does_blip_exist 69@
goto_if_false @SYND4_11220
remove_blip 69@

:SYND4_11220
if 
  does_blip_exist 43@
goto_if_false @SYND4_11241
remove_blip 43@

:SYND4_11241
print_now 'SYN4_11' {time} 2000 {flag} 1
TIMERB = 0
56@ = 2

:SYND4_11271
if and
  56@ == 2
  TIMERB > 2000
  not is_char_stuck_under_car $scplayer
goto_if_false @SYND4_11400
gosub @SYND4_12777

:SYND4_11309
request_model 330

:SYND4_11314
if 
  not has_model_loaded 330
goto_if_false @SYND4_11341
wait 0
goto @SYND4_11314

:SYND4_11341
clear_wanted_level $player1
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11374
clear_char_tasks $scplayer
task_use_mobile_phone $scplayer {start} True

:SYND4_11374
wait 2000
gosub @SYND4_12808
46@ = 2
TIMERB = 0

:SYND4_11400
if 
  46@ == 2
goto_if_false @SYND4_12012
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYND4_11449
95@ = 6
95@ = 6

:SYND4_11449
if and
  97@ == 2
  95@ == 0
goto_if_false @SYND4_11534
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11498
start_char_facial_talk $scplayer {duration} 10000

:SYND4_11498
set_lvar_text_label 118@s = 'MCES11A'
set_lvar_int_to_constant 96@ = 25314
gosub @SYND4_13703
95@ = 1

:SYND4_11534
if and
  97@ == 2
  95@ == 1
goto_if_false @SYND4_11616
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11580
stop_char_facial_talk $scplayer

:SYND4_11580
set_lvar_text_label 118@s = 'MCES11B'
set_lvar_int_to_constant 96@ = 25315
gosub @SYND4_13703
95@ = 2

:SYND4_11616
if and
  97@ == 2
  95@ == 2
goto_if_false @SYND4_11701
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11665
start_char_facial_talk $scplayer {duration} 10000

:SYND4_11665
set_lvar_text_label 118@s = 'MCES11C'
set_lvar_int_to_constant 96@ = 25316
gosub @SYND4_13703
95@ = 3

:SYND4_11701
if and
  97@ == 2
  95@ == 3
goto_if_false @SYND4_11783
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11747
stop_char_facial_talk $scplayer

:SYND4_11747
set_lvar_text_label 118@s = 'MCES11D'
set_lvar_int_to_constant 96@ = 25317
gosub @SYND4_13703
95@ = 4

:SYND4_11783
if and
  97@ == 2
  95@ == 4
goto_if_false @SYND4_11844
set_lvar_text_label 118@s = 'MCES11E'
set_lvar_int_to_constant 96@ = 25318
gosub @SYND4_13703
95@ = 5

:SYND4_11844
if and
  97@ == 2
  95@ == 5
goto_if_false @SYND4_11929
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11893
start_char_facial_talk $scplayer {duration} 10000

:SYND4_11893
set_lvar_text_label 118@s = 'MCES11F'
set_lvar_int_to_constant 96@ = 25319
gosub @SYND4_13703
95@ = 6

:SYND4_11929
if and
  97@ == 2
  95@ == 6
goto_if_false @SYND4_12012
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11975
stop_char_facial_talk $scplayer

:SYND4_11975
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_11998
task_use_mobile_phone $scplayer {start} False

:SYND4_11998
gosub @SYND4_12808
goto @SYND4_12241

:SYND4_12012
goto @SYND4_5243

:SYND4_12019
goto @SYND4_12026

:SYND4_12026
if 
  does_blip_exist 43@
goto_if_false @SYND4_12047
remove_blip 43@

:SYND4_12047
if 
  does_blip_exist 45@
goto_if_false @SYND4_12068
remove_blip 45@

:SYND4_12068
if 
  does_blip_exist 54@
goto_if_false @SYND4_12089
remove_blip 54@

:SYND4_12089
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if or
  41@ == 1
  115@ == 1
goto_if_false @SYND4_12237
gosub @SYND4_12843
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12230
41@ = 1
set_area_visible 0
request_collision -2623.8049 {y} 1409.816
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates_dont_warp_gang $scplayer {x} -2624.4609 {y} 1410.7061 {z} 6.1015
set_char_heading $scplayer {heading} 176.884
load_scene -2624.4609 {y} 1410.7061 {z} 6.1015

:SYND4_12230
gosub @SYND4_12876

:SYND4_12237
set_camera_behind_player 
return 

:SYND4_12241
clear_prints 
if 
  does_blip_exist 43@
goto_if_false @SYND4_12264
remove_blip 43@

:SYND4_12264
if 
  does_blip_exist 45@
goto_if_false @SYND4_12285
remove_blip 45@

:SYND4_12285
if 
  does_blip_exist 54@
goto_if_false @SYND4_12306
remove_blip 54@

:SYND4_12306
$flag_synd_mission_counter += 1
print_with_number_big 'M_PASSS' {num} 12000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 12000
remove_blip $synd_contact_blip
award_player_mission_respect 30
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'SYND_4'
player_made_progress 1
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point -1717.05 {y} 1280.91 {z} 6.23 {sprite} $garage_blip_icon
return 

:SYND4_12403
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12424
stop_char_facial_talk $scplayer

:SYND4_12424
if 
  not is_char_dead 39@
goto_if_false @SYND4_12445
remove_char_elegantly 39@

:SYND4_12445
switch_entry_exit 'PDOMES' {state} False
switch_entry_exit 'PDOMES2' {state} False
set_wanted_multiplier 1.0
unmark_all_road_nodes_as_dont_wander 
if 
  does_blip_exist 69@
goto_if_false @SYND4_12501
remove_blip 69@

:SYND4_12501
if 
  does_blip_exist 59@
goto_if_false @SYND4_12522
remove_blip 59@

:SYND4_12522
if 
  does_blip_exist 43@
goto_if_false @SYND4_12543
remove_blip 43@

:SYND4_12543
if 
  does_blip_exist 45@
goto_if_false @SYND4_12564
remove_blip 45@

:SYND4_12564
if 
  does_blip_exist 54@
goto_if_false @SYND4_12585
remove_blip 54@

:SYND4_12585
if 
  does_blip_exist 60@
goto_if_false @SYND4_12606
remove_blip 60@

:SYND4_12606
if 
  does_blip_exist 61@
goto_if_false @SYND4_12627
remove_blip 61@

:SYND4_12627
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 30
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed #MOBILE1993B
mark_model_as_no_longer_needed #WAREHOUSE_DOOR2B
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 409
mark_model_as_no_longer_needed 575
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 214
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 448
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed 246
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12752
clear_wanted_level $player1

:SYND4_12752
remove_animation "SWAT"
unload_special_character 1
$onmission = 0
release_weather 
mission_has_finished 
return 

:SYND4_12777
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12806
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False

:SYND4_12806
return 

:SYND4_12808
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12841
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 

:SYND4_12841
return 

:SYND4_12843
do_fade 500 {direction} Fade.Out

:SYND4_12850
if 
  get_fading_status 
goto_if_false @SYND4_12874
wait 0
goto @SYND4_12850

:SYND4_12874
return 

:SYND4_12876
do_fade 500 {direction} Fade.In

:SYND4_12883
if 
  get_fading_status 
goto_if_false @SYND4_12907
wait 0
goto @SYND4_12883

:SYND4_12907
return 

:SYND4_12909
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @SYND4_12970
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_12970
set_char_coordinates_dont_warp_gang $scplayer {x} -2623.9771 {y} 1404.812 {z} 6.111
set_char_heading $scplayer {heading} 352.628

:SYND4_12970
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @SYND4_13008
if 
  not is_car_dead 64@
goto_if_false @SYND4_13008
freeze_car_position 64@ {state} True

:SYND4_13008
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @SYND4_13044
$the_area_name = get_area_visible 
view_integer_variable $the_area_name {_p2} "AREA_NAME"

:SYND4_13044
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @SYND4_13095
create_birds -2616.1089 {yFrom} 1408.629 {zFrom} 6.5 {xTo} -2618.498 {yTo} 1415.866 {zTo} 6.5 {quantity} 3 {type} 0

:SYND4_13095
if 
is_ps2_keyboard_key_just_pressed 71
goto_if_false @SYND4_13158
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_13158
set_char_coordinates_dont_warp_gang $scplayer {x} -2661.1919 {y} 1426.1281 {z} 22.8906
set_char_heading $scplayer {heading} 188.7666
set_camera_behind_player 

:SYND4_13158
if 
is_ps2_keyboard_key_just_pressed 69
goto_if_false @SYND4_13221
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_13221
set_char_coordinates_dont_warp_gang $scplayer {x} -2661.4929 {y} 1403.067 {z} 905.277
set_char_heading $scplayer {heading} 85.1708
set_camera_behind_player 

:SYND4_13221
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @SYND4_13265
if 
  not is_char_dead $scplayer
goto_if_false @SYND4_13265
view_integer_variable $s4_j_health {_p2} "HEALTH"

:SYND4_13265
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @SYND4_13287
goto @SYND4_11309

:SYND4_13287
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @SYND4_13326
if 
  not is_car_dead 64@
goto_if_false @SYND4_13326
set_car_health 64@ {health} 200

:SYND4_13326
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @SYND4_13701
if 
  not is_char_dead 39@
goto_if_false @SYND4_13364
set_char_health 39@ {health} 1

:SYND4_13364
gosub @SYND4_12777
set_char_coordinates_dont_warp_gang 39@ {x} -2659.3821 {y} 1530.248 {z} 53.9453
set_char_heading 39@ {heading} 0.0
set_fixed_camera_position -2655.093 {y} 1543.8459 {z} 55.7815 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2655.4451 {y} 1542.918 {z} 55.652 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 39@
goto_if_false @SYND4_13480
clear_char_tasks_immediately 39@
task_jump 39@ {state} False

:SYND4_13480
wait 1000
set_time_scale 0.4
if 
  not is_char_dead 39@
goto_if_false @SYND4_13549
set_fixed_camera_position -2630.0559 {y} 1557.202 {z} 18.3729 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 39@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:SYND4_13549
TIMERB = 0

:SYND4_13556
if 
  750 > TIMERB
goto_if_false @SYND4_13610
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_13603
goto @SYND4_13678

:SYND4_13603
goto @SYND4_13556

:SYND4_13610
set_time_scale 1.0
TIMERB = 0

:SYND4_13624
if 
  1500 > TIMERB
goto_if_false @SYND4_13678
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYND4_13671
goto @SYND4_13678

:SYND4_13671
goto @SYND4_13624

:SYND4_13678
gosub @SYND4_12808
print_now 'SYN4_29' {time} 4000 {flag} 1

:SYND4_13701
return 

:SYND4_13703
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 96@
97@ = 0
return 

:SYND4_13723
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  97@ == 0
goto_if_false @SYND4_13766
play_mission_audio MissionAudioSlot.Slot1
print_now 118@s {time} 10000 {flag} 1
97@ = 1

:SYND4_13766
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  97@ == 1
goto_if_false @SYND4_13804
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 118@s
97@ = 2

:SYND4_13804
return 

//-------------Mission 62---------------
// Originally: Toreno's Last Flight

:SYN6
script_name 'SYN6'
gosub @SYN6_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN6_38
gosub @SYN6_9151

:SYN6_38
gosub @SYN6_9238
terminate_this_script 

:SYN6_47
$onmission = 1
$tlf_underway = 1
register_mission_given 
set_player_control $player1 {state} False
load_scene -2034.255 {y} 176.5 {z} 27.8359
do_fade 2000 {direction} Fade.Out

:SYN6_94
if 
  get_fading_status 
goto_if_false @SYN6_118
wait 0
goto @SYN6_94

:SYN6_118
set_area_visible 0
load_mission_text 'SYN6'
request_model 487
request_model 521
request_model 355
request_model 346
request_model 24
request_model 25
request_model 359
request_model 413
request_model 330
request_model 348
load_all_models_now 

:SYN6_183
if or
  not has_model_loaded 487
  not has_model_loaded 521
  not has_model_loaded 355
  not has_model_loaded 346
  not has_model_loaded 24
goto_if_false @SYN6_229
wait 0
goto @SYN6_183

:SYN6_229
if or
  not has_model_loaded 359
  not has_model_loaded 25
  not has_model_loaded 413
  not has_model_loaded 330
  not has_model_loaded 348
goto_if_false @SYN6_275
wait 0
goto @SYN6_229

:SYN6_275
if 
  not is_player_playing $player1
goto_if_false @SYN6_302
wait 0
goto @SYN6_275

:SYN6_302
47@ = create_char PedType.CivMale {modelId} 24 {x} -1691.72 {y} 703.6754 {z} 29.6065
48@ = create_char PedType.CivMale {modelId} 25 {x} -1701.061 {y} 712.767 {z} 23.8976
49@ = create_char PedType.CivMale {modelId} 25 {x} -1688.3719 {y} 687.4631 {z} 20.615
50@ = create_char PedType.CivMale {modelId} 25 {x} -1686.15 {y} 701.9777 {z} 29.6065
51@ = create_char PedType.CivMale {modelId} 24 {x} -1681.696 {y} 680.8264 {z} 18.8009
52@ = create_char PedType.CivMale {modelId} 25 {x} -1690.15 {y} 716.6064 {z} 29.6065
set_char_heading 47@ {heading} 82.107
set_char_heading 48@ {heading} 224.7688
set_char_heading 49@ {heading} 118.1096
task_kinda_stay_in_same_place 49@ {state} True
set_char_heading 50@ {heading} 239.6
task_stay_in_same_place 50@ {state} True
task_toggle_duck 50@ {state} True
set_char_heading 51@ {heading} 86.9582
task_kinda_stay_in_same_place 51@ {state} True
set_char_heading 52@ {heading} 222.9582
77@ = 0

:SYN6_541
if 
  5 > 77@
goto_if_false @SYN6_622
give_weapon_to_char 47@(77@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_only_damaged_by_player 47@(77@,6i) {state} True
set_char_relationship 47@(77@,6i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_is_target_priority 47@(77@,6i) {state} True
77@ += 1
goto @SYN6_541

:SYN6_622
give_weapon_to_char 52@ {weaponType} WeaponType.RocketLauncher {ammo} 9999
set_char_only_damaged_by_player 52@ {state} True
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_is_target_priority 52@ {state} True
set_char_drops_weapons_when_dead 52@ {state} False
task_stay_in_same_place 52@ {state} True
set_char_accuracy 52@ {accuracy} 100
set_char_shoot_rate 52@ {rate} 50
set_char_weapon_skill 52@ {skill} WeaponSkill.Poor
63@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 60 {x} -1688.86 {y} 695.3077 {z} 30.3452
64@ = create_pickup_with_ammo 355 {pickupType} PickupType.Once {ammo} 120 {x} -1683.4969 {y} 716.2739 {z} 30.6452
53@ = create_car 487 {x} -1680.502 {y} 705.6951 {z} 29.6065
set_heli_blades_full_speed 53@
set_car_heading 53@ {heading} 90.0
open_car_door 53@ {door} CarDoor.RightRearDoor
open_car_door 53@ {door} CarDoor.LeftRearDoor
set_car_proofs 53@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
change_car_colour 53@ {color1} 10 {color2} 125
57@ = create_car 521 {x} -1705.198 {y} 682.3814 {z} 23.8906
mark_model_as_no_longer_needed 521
set_car_heading 57@ {heading} 181.5462
set_can_burst_car_tyres 57@ {state} False
58@ = create_car 413 {x} -1665.8 {y} 682.1571 {z} 13.8891
set_car_heading 58@ {heading} 214.5462
change_car_colour 58@ {color1} 7 {color2} 1
open_car_door 58@ {door} CarDoor.LeftRearDoor
mark_model_as_no_longer_needed 413
60@ = -1
61@ = 0
65@ = 0
72@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
81@ = 0
82@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
89@ = 0
92@ = 0
91@ = 0
93@ = 0
94@ = 0
140@ = 1
141@ = 2
142@ = 0
143@ = 1
144@ = 0
145@ = 0
set_lvar_text_label 106@s = 'MWUZ01A'
set_lvar_text_label 108@s = 'MWUZ01B'
set_lvar_text_label 110@s = 'MWUZ01C'
set_lvar_text_label 112@s = 'MWUZ01D'
set_lvar_text_label 114@s = 'MWUZ01E'
set_lvar_text_label 116@s = 'MWUZ01F'
set_lvar_text_label 118@s = 'MWUZ01G'
set_lvar_text_label 120@s = 'MWUZ01H'
set_lvar_text_label 122@s = 'MWUZ01J'
set_lvar_text_label 124@s = 'MWUZ01K'
set_lvar_int_to_constant 129@ = 30009
set_lvar_int_to_constant 130@ = 30010
set_lvar_int_to_constant 131@ = 30011
set_lvar_int_to_constant 132@ = 30012
set_lvar_int_to_constant 133@ = 30013
set_lvar_int_to_constant 134@ = 30014
set_lvar_int_to_constant 135@ = 30015
set_lvar_int_to_constant 136@ = 30016
set_lvar_int_to_constant 137@ = 30017
set_lvar_int_to_constant 138@ = 30018
load_mission_audio MissionAudioSlot.Slot3 {audioId} 20804
TIMERA = 0
switch_widescreen True
set_char_coordinates $scplayer {x} -2030.25 {y} 148.8279 {z} 27.8359
set_char_heading $scplayer {heading} 350.0
set_fixed_camera_position -2024.214 {y} 147.8178 {z} 28.9808 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2025.1591 {y} 148.1366 {z} 29.046 {switchStyle} SwitchType.JumpCut
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
load_scene_in_direction -2024.137 {y} 149.9411 {z} 27.8359 {heading} 348.3137
wait 0
do_fade 2500 {direction} Fade.In
load_scene_in_direction -2024.137 {y} 149.9411 {z} 27.8359 {heading} 348.3137
wait 0
task_go_straight_to_coord $scplayer {x} -2026.675 {y} 148.8807 {z} 27.8359 {speed} MoveState.Walk {time} -2

:SYN6_1531
if 
  get_fading_status 
goto_if_false @SYN6_1555
wait 0
goto @SYN6_1531

:SYN6_1555
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN6_1574
play_mission_audio MissionAudioSlot.Slot3

:SYN6_1574
wait 0
TIMERA = 0
84@ = 4
85@ = 0
86@ = 1

:SYN6_1606
wait 0
if 
  142@ <> 0
goto_if_false @SYN6_1963
if 
  144@ == 0
goto_if_false @SYN6_1681
if 
  has_mission_audio_loaded 141@
goto_if_false @SYN6_1667
clear_mission_audio 141@

:SYN6_1667
144@ = 1
145@ = 1

:SYN6_1681
if 
  144@ == 1
goto_if_false @SYN6_1718
load_mission_audio 140@ {audioId} 128@(142@,12i)
144@ = 2

:SYN6_1718
if 
  144@ == 2
goto_if_false @SYN6_1778
if 
  has_mission_audio_loaded 140@
goto_if_false @SYN6_1778
play_mission_audio 140@
print_now 104@(142@,12s) {time} 10000 {flag} 1
144@ = 3

:SYN6_1778
if 
  144@ == 3
goto_if_false @SYN6_1963
if 
  has_mission_audio_finished 140@
goto_if_false @SYN6_1902
clear_this_print 104@(142@,12s)
if 
  140@ == 1
goto_if_false @SYN6_1860
140@ = 2
141@ = 1
goto @SYN6_1874

:SYN6_1860
140@ = 1
141@ = 2

:SYN6_1874
142@ = 0
144@ = 0
145@ = 0
goto @SYN6_1963

:SYN6_1902
if 
  not has_mission_audio_loaded 141@
goto_if_false @SYN6_1963
if 
  10 > 142@
goto_if_false @SYN6_1963
set_lvar_int_to_lvar_int 143@ = 142@
143@ += 1
load_mission_audio 141@ {audioId} 128@(143@,12i)

:SYN6_1963
if 
  89@ == 1
goto_if_false @SYN6_1985
shake_cam 20

:SYN6_1985
if 
  84@ <> -13
goto_if_false @SYN6_2796
if 
  84@ > 4
goto_if_false @SYN6_2161
if 
  85@ == 1
goto_if_false @SYN6_2091
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYN6_2091

:SYN6_2056
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SYN6_2084
wait 0
goto @SYN6_2056

:SYN6_2084
84@ = 100

:SYN6_2091
if 
  86@ == 1
goto_if_false @SYN6_2161
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN6_2161

:SYN6_2126
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN6_2154
wait 0
goto @SYN6_2126

:SYN6_2154
84@ = 10

:SYN6_2161
if 
  84@ == 4
goto_if_false @SYN6_2217
if 
  TIMERA > 1000
goto_if_false @SYN6_2217
clear_char_tasks $scplayer
task_use_mobile_phone $scplayer {start} True
84@ = 5

:SYN6_2217
if 
  84@ == 5
goto_if_false @SYN6_2275
if 
  TIMERA > 5000
goto_if_false @SYN6_2275
142@ = 1
TIMERA = 0
84@ = 7

:SYN6_2275
if 
  84@ == 7
goto_if_false @SYN6_2326
if 
  TIMERA > 2500
goto_if_false @SYN6_2326
84@ = 10
TIMERA = 0

:SYN6_2326
if 
  84@ == 10
goto_if_false @SYN6_2387
86@ = 0
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
84@ = 15
85@ = 1
TIMERA = 0

:SYN6_2387
if 
  84@ > 10
goto_if_false @SYN6_2796
if 
  145@ == 0
goto_if_false @SYN6_2796
switch_start 84@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @SYN6_2796 {caseNum1} 15 {caseLabel1} @SYN6_2551 {caseNum2} 20 {caseLabel2} @SYN6_2572 {caseNum3} 30 {caseLabel3} @SYN6_2593 {caseNum4} 40 {caseLabel4} @SYN6_2614 {caseNum5} 50 {caseLabel5} @SYN6_2635 {caseNum6} 60 {caseLabel6} @SYN6_2656 {caseNum7} 70 {caseLabel7} @SYN6_2677
switch_continued 80 {caseLabel1} @SYN6_2698 {caseNum2} 90 {caseLabel2} @SYN6_2719 {caseNum3} 100 {caseLabel3} @SYN6_2740 {caseNum4} -1 {caseLabel4} @SYN6_2796 {caseNum5} -1 {caseLabel5} @SYN6_2796 {caseNum6} -1 {caseLabel6} @SYN6_2796 {caseNum7} -1 {caseLabel7} @SYN6_2796 {caseNum8} -1 {caseLabel8} @SYN6_2796 {caseNum9} -1 {caseLabel9} @SYN6_2796

:SYN6_2551
142@ = 2
84@ = 20
goto @SYN6_2796

:SYN6_2572
142@ = 3
84@ = 30
goto @SYN6_2796

:SYN6_2593
142@ = 4
84@ = 40
goto @SYN6_2796

:SYN6_2614
142@ = 5
84@ = 50
goto @SYN6_2796

:SYN6_2635
142@ = 6
84@ = 60
goto @SYN6_2796

:SYN6_2656
142@ = 7
84@ = 70
goto @SYN6_2796

:SYN6_2677
142@ = 8
84@ = 90
goto @SYN6_2796

:SYN6_2698
142@ = 9
84@ = 90
goto @SYN6_2796

:SYN6_2719
142@ = 10
84@ = 100
goto @SYN6_2796

:SYN6_2740
142@ = 0
task_use_mobile_phone $scplayer {start} False
mark_model_as_no_longer_needed 330
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
print_now 'SYN6_01' {time} 6000 {flag} 1
84@ = 110
goto @SYN6_2796

:SYN6_2796
if 
  84@ == 110
goto_if_false @SYN6_2860
clear_char_tasks $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
34@ = add_blip_for_coord -1680.377 {y} 705.462 {z} 30.2209
84@ = -13
85@ = 0

:SYN6_2860
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SYN6_2882
goto @SYN6_9169

:SYN6_2882
if 
is_ps2_keyboard_key_pressed 80
goto_if_false @SYN6_2904
alter_wanted_level $player1 {wantedLevel} 2

:SYN6_2904
if 
is_ps2_keyboard_key_pressed 79
goto_if_false @SYN6_2926
alter_wanted_level $player1 {wantedLevel} 0

:SYN6_2926
$game_timer = get_game_timer 
if 
  not is_player_playing $player1
goto_if_false @SYN6_2954
goto @SYN6_9151

:SYN6_2954
if 
  78@ == 1
goto_if_false @SYN6_3003
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN6_3003
60@ = 6
78@ = 0

:SYN6_3003
if 
  60@ == -99
goto_if_false @SYN6_3044
149@ = create_car 487 {x} -1680.502 {y} 705.6951 {z} 29.6065

:SYN6_3044
if 
  60@ == -1
goto_if_false @SYN6_3838
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @SYN6_3150
clear_area -1704.324 {y} 637.5129 {z} 23.8959 {radius} 0.5 {clearParticles} False
load_scene -1704.324 {y} 637.5129 {z} 23.8959
set_char_coordinates $scplayer {x} -1704.324 {y} 637.5129 {z} 23.8959
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:SYN6_3150
if 
  locate_char_any_means_3d $scplayer {x} -1699.991 {y} 686.4141 {z} 20.0 {xRadius} 60.0 {yRadius} 60.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @SYN6_3244
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3244
if 
  60@ == -1
goto_if_false @SYN6_3343
if 
  does_char_exist 47@
goto_if_false @SYN6_3343
if 
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @SYN6_3343
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3343
if 
  60@ == -1
goto_if_false @SYN6_3442
if 
  does_char_exist 48@
goto_if_false @SYN6_3442
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @SYN6_3442
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3442
if 
  60@ == -1
goto_if_false @SYN6_3541
if 
  does_char_exist 49@
goto_if_false @SYN6_3541
if 
  has_char_been_damaged_by_char 49@ {handle} $scplayer
goto_if_false @SYN6_3541
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3541
if 
  60@ == -1
goto_if_false @SYN6_3640
if 
  does_char_exist 50@
goto_if_false @SYN6_3640
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @SYN6_3640
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3640
if 
  60@ == -1
goto_if_false @SYN6_3739
if 
  does_char_exist 51@
goto_if_false @SYN6_3739
if 
  has_char_been_damaged_by_char 51@ {handle} $scplayer
goto_if_false @SYN6_3739
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3739
if 
  60@ == -1
goto_if_false @SYN6_3838
if 
  does_char_exist 52@
goto_if_false @SYN6_3838
if 
  has_char_been_damaged_by_char 52@ {handle} $scplayer
goto_if_false @SYN6_3838
84@ = -13
clear_char_tasks $scplayer
remove_blip 34@
62@ = add_blip_for_pickup 63@
change_blip_colour 62@ {color} BlipColor.Green
72@ = 1
60@ += 1

:SYN6_3838
if 
  72@ == 1
goto_if_false @SYN6_4097
if 
  73@ == 0
goto_if_false @SYN6_3974
if 
  not is_char_dead 52@
goto_if_false @SYN6_3974
clear_char_tasks 52@
69@, 70@, 71@ = get_char_coordinates $scplayer
69@ += 5.0
70@ += 5.0
71@ += 15.0
clear_char_tasks 52@
task_shoot_at_coord 52@ {x} 69@ {y} 70@ {z} 71@ {time} -1
73@ = 1
TIMERB = 0

:SYN6_3974
if 
  not is_char_dead 47@
goto_if_false @SYN6_4003
clear_char_tasks 47@
task_kill_char_on_foot 47@ {target} $scplayer

:SYN6_4003
if 
  not is_char_dead 48@
goto_if_false @SYN6_4032
clear_char_tasks 48@
task_kill_char_on_foot 48@ {target} $scplayer

:SYN6_4032
if 
  not is_char_dead 49@
goto_if_false @SYN6_4061
clear_char_tasks 49@
task_kill_char_on_foot 49@ {target} $scplayer

:SYN6_4061
if 
  not is_char_dead 51@
goto_if_false @SYN6_4090
clear_char_tasks 51@
task_kill_char_on_foot 51@ {target} $scplayer

:SYN6_4090
72@ = 2

:SYN6_4097
if 
  73@ == 1
goto_if_false @SYN6_4179
if 
  TIMERB > 4000
goto_if_false @SYN6_4179
if 
  not is_char_dead 52@
goto_if_false @SYN6_4179
clear_char_tasks 52@
73@ = 99
TIMERB = 0
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999

:SYN6_4179
if 
  73@ == 2
goto_if_false @SYN6_4223
if 
  TIMERB > 6000
goto_if_false @SYN6_4223
73@ = 0

:SYN6_4223
if 
  65@ == 0
goto_if_false @SYN6_4248
65@ = 1

:SYN6_4248
if 
  2 > 65@
goto_if_false @SYN6_4448
if 
  60@ > 4
goto_if_false @SYN6_4448
if 
  80@ == 0
goto_if_false @SYN6_4366
if 
  not is_car_dead 149@
goto_if_false @SYN6_4366
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 250.0 {yRadius} 250.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @SYN6_4366
pause_playback_recorded_car 149@
80@ = 1

:SYN6_4366
if 
  80@ == 1
goto_if_false @SYN6_4448
if 
  not is_car_dead 149@
goto_if_false @SYN6_4448
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 250.0 {yRadius} 250.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @SYN6_4448
unpause_playback_recorded_car 149@
80@ = 0

:SYN6_4448
if 
  65@ == 1
goto_if_false @SYN6_4557
if 
  has_pickup_been_collected 63@
goto_if_false @SYN6_4557
clear_prints 
print_now 'SYN6_20' {time} 6000 {flag} 1
remove_blip 62@
if 
  not is_car_dead 149@
goto_if_false @SYN6_4550
34@ = add_blip_for_car 149@
display_onscreen_counter_with_string $health_counter {display} CounterDisplay.Bar {text} 'SYN6_05'
unpause_playback_recorded_car 149@

:SYN6_4550
65@ = 2

:SYN6_4557
if 
  65@ == 2
goto_if_false @SYN6_4575

:SYN6_4575
if 
  60@ == 0
goto_if_false @SYN6_4855
if 
  60@ == 0
goto_if_false @SYN6_4709
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -1695.668 {leftBottomY} 693.7705 {leftBottomZ} 29.5938 {rightTopX} -1665.865 {rightTopY} 693.7705 {rightTopZ} 59.5943 {angle} 28.0 {drawSphere} False
goto_if_false @SYN6_4709
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN6_4695
90@ = store_car_char_is_in $scplayer
91@ = 1

:SYN6_4695
92@ = 1
60@ += 1

:SYN6_4709
if 
  60@ == 0
goto_if_false @SYN6_4782
if 
  locate_char_any_means_3d $scplayer {x} -1683.8199 {y} 686.5125 {z} 23.9687 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYN6_4782
60@ += 1

:SYN6_4782
if 
  60@ == 0
goto_if_false @SYN6_4855
if 
  locate_char_any_means_3d $scplayer {x} -1683.797 {y} 692.3915 {z} 27.586 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @SYN6_4855
60@ += 1

:SYN6_4855
if 
  60@ > 1
goto_if_false @SYN6_5160
if 
  61@ == 0
goto_if_false @SYN6_5160
if 
  locate_char_any_means_2d $scplayer {x} -1448.006 {y} -1533.036 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SYN6_5160
41@ = create_char PedType.CivMale {modelId} 24 {x} -1450.256 {y} -1543.012 {z} 100.7579
42@ = create_char PedType.CivMale {modelId} 24 {x} -1422.854 {y} -1542.103 {z} 100.7514
43@ = create_char PedType.CivMale {modelId} 24 {x} -1431.0959 {y} -1506.962 {z} 100.7262
44@ = create_char PedType.CivMale {modelId} 24 {x} -1448.4771 {y} -1511.918 {z} 100.7579
set_char_heading 41@ {heading} 269.8948
set_char_heading 42@ {heading} 26.8258
set_char_heading 43@ {heading} 223.7033
set_char_heading 44@ {heading} 266.9233
77@ = 0

:SYN6_5072
if 
  4 > 77@
goto_if_false @SYN6_5153
give_weapon_to_char 41@(77@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_only_damaged_by_player 41@(77@,6i) {state} True
set_char_relationship 41@(77@,6i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_is_target_priority 41@(77@,6i) {state} True
77@ += 1
goto @SYN6_5072

:SYN6_5153
61@ += 1

:SYN6_5160
if 
  60@ == 1
goto_if_false @SYN6_6028
if 
  has_car_recording_been_loaded 110
goto_if_false @SYN6_6024
if 
  not get_fading_status 
goto_if_false @SYN6_6017
clear_this_print 'SYN6_02'
delete_car 53@
149@ = create_car 487 {x} -1680.502 {y} 705.6951 {z} 29.6065
set_heli_blades_full_speed 149@
change_car_colour 149@ {color1} 10 {color2} 125
56@ = create_object #CARDBOARDBOX2 {x} -1680.931 {y} 705.7776 {z} 30.6065
set_object_collision 56@ {state} False
freeze_object_position 56@ {state} True
set_object_collision 56@ {state} False
set_car_heading 149@ {heading} 90.0
lock_car_doors 149@ {lockStatus} CarLock.LockoutPlayerOnly
set_vehicle_can_be_targetted 149@ {state} True
remove_blip 34@
set_car_only_damaged_by_player 149@ {state} True
set_car_health 149@ {health} 1500
150@ = create_char_inside_car 149@ {pedType} PedType.CivMale {modelId} 24
set_char_is_target_priority 150@ {state} True
151@ = create_char_as_passenger 149@ {pedType} PedType.CivMale {modelId} 24 {seat} SeatId.RearLeft
152@ = create_char_as_passenger 149@ {pedType} PedType.CivMale {modelId} 24 {seat} SeatId.RearRight
open_car_door 149@ {door} CarDoor.RightRearDoor
open_car_door 149@ {door} CarDoor.LeftRearDoor
39@ = 0

:SYN6_5415
if 
  2 > 39@
goto_if_false @SYN6_5535
set_char_stay_in_same_place 151@(39@,2i) {state} True
give_weapon_to_char 152@ {weaponType} WeaponType.Ak47 {ammo} 9999
give_weapon_to_char 151@ {weaponType} WeaponType.DesertEagle {ammo} 9999
set_char_only_damaged_by_player 151@(39@,2i) {state} True
set_char_suffers_critical_hits 151@(39@,2i) {state} False
set_char_health 151@(39@,2i) {health} 300
set_char_is_target_priority 151@(39@,2i) {state} True
set_char_health 151@(39@,2i) {health} 500
39@ += 1
goto @SYN6_5415

:SYN6_5535
if 
  is_char_in_car 151@ {vehicle} 149@
goto_if_false @SYN6_5636
$x, $y, $z = get_car_coordinates 149@
warp_char_from_car_to_coord 151@ {x} $x {y} $y {z} $z
detach_char_from_car 151@
set_char_allowed_to_duck 151@ {state} True
attach_char_to_car 151@ {vehicle} 149@ {xOffset} -1.0 {yOffset} -0.3 {zOffset} 0.0 {heading} Facing.Left {headingRange} 180.0 {weaponType} WeaponType.Ak47
set_char_heading 151@ {heading} 200.0

:SYN6_5636
if 
  is_char_in_car 152@ {vehicle} 149@
goto_if_false @SYN6_5735
$x, $y, $z = get_car_coordinates 149@
warp_char_from_car_to_coord 152@ {x} $x {y} $y {z} $z
detach_char_from_car 152@
set_char_allowed_to_duck 152@ {state} True
attach_char_to_car 152@ {vehicle} 149@ {xOffset} 1.2 {yOffset} -0.3 {zOffset} 0.0 {heading} Facing.Right {headingRange} 180.0 {weaponType} WeaponType.Ak47
task_turn_char_to_face_char 152@ {target} $scplayer

:SYN6_5735
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position -1675.1949 {y} 699.6955 {z} 36.8409 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1675.7729 {y} 700.2547 {z} 36.2466 {switchStyle} SwitchType.JumpCut
89@ = 1
if 
  92@ == 0
goto_if_false @SYN6_5870
set_char_coordinates $scplayer {x} -1683.849 {y} 692.0139 {z} 27.586
set_char_heading $scplayer {heading} 304.0
goto @SYN6_5955

:SYN6_5870
if 
  91@ == 1
goto_if_false @SYN6_5948
if 
  not is_car_dead 90@
goto_if_false @SYN6_5941
set_car_coordinates 90@ {x} -1667.77 {y} 728.9113 {z} 49.8973
set_car_heading 90@ {heading} 135.4521
freeze_car_position 90@ {state} True

:SYN6_5941
goto @SYN6_5955

:SYN6_5948
freeze_char_position $scplayer {state} True

:SYN6_5955
set_fading_colour 1 {g} 0 {b} 0
start_playback_recorded_car 149@ {path} 110
task_toggle_duck 151@ {state} True
task_toggle_duck 152@ {state} True
if 
  not is_char_dead 50@
goto_if_false @SYN6_6000

:SYN6_6000
set_playback_speed 149@ {speed} 3.0
60@ += 1

:SYN6_6017
goto @SYN6_6028

:SYN6_6024
request_car_recording 110

:SYN6_6028
if 
  not is_car_dead 149@
goto_if_false @SYN6_7667
if 
  60@ == 2
goto_if_false @SYN6_6089
if 
  not get_fading_status 
goto_if_false @SYN6_6089
60@ += 1
TIMERB = 0

:SYN6_6089
if 
  60@ == 3
goto_if_false @SYN6_6114
60@ += 1

:SYN6_6114
if 
  60@ == 4
goto_if_false @SYN6_6184
if 
  TIMERB > 1100
goto_if_false @SYN6_6184
if 
  not is_car_dead 149@
goto_if_false @SYN6_6177
set_playback_speed 149@ {speed} 0.85

:SYN6_6177
60@ += 1

:SYN6_6184
if 
  60@ == 5
goto_if_false @SYN6_6310
if 
  TIMERB > 3000
goto_if_false @SYN6_6284
delete_object 56@
89@ = 0
set_fixed_camera_position -1681.265 {y} 685.2078 {z} 30.6465 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1681.2629 {y} 686.2019 {z} 30.5389 {switchStyle} SwitchType.JumpCut

:SYN6_6284
if 
  TIMERB > 6500
goto_if_false @SYN6_6310
60@ += 1

:SYN6_6310
if 
  60@ == 6
goto_if_false @SYN6_6885
if 
  not get_fading_status 
goto_if_false @SYN6_6885
if 
  is_car_dead 57@
goto_if_false @SYN6_6402
mark_car_as_no_longer_needed 57@
57@ = create_car 521 {x} -1705.198 {y} 682.3814 {z} 23.8906
set_car_heading 57@ {heading} 181.5462
goto @SYN6_6478

:SYN6_6402
if 
  not locate_car_2d 57@ {x} -1703.949 {y} 690.2634 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @SYN6_6478
mark_car_as_no_longer_needed 57@
57@ = create_car 521 {x} -1705.198 {y} 682.3814 {z} 23.8906
set_car_heading 57@ {heading} 181.5462

:SYN6_6478
78@ = 0
clear_this_print 'SYN6_03'
set_fading_colour 1 {g} 0 {b} 0
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
print_now 'SYN6_03' {time} 8000 {flag} 1
set_all_cars_can_be_damaged True
if 
  not is_car_dead 149@
goto_if_false @SYN6_6590
if 
  not is_char_dead 151@
goto_if_false @SYN6_6567

:SYN6_6567
if 
  not is_playback_going_on_for_car 149@
goto_if_false @SYN6_6590
start_playback_recorded_car 149@ {path} 110

:SYN6_6590
delete_object 56@
89@ = 0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  92@ == 1
goto_if_false @SYN6_6686
if 
  91@ == 1
goto_if_false @SYN6_6679
if 
  not is_car_dead 90@
goto_if_false @SYN6_6672
freeze_car_position 90@ {state} False

:SYN6_6672
goto @SYN6_6686

:SYN6_6679
freeze_char_position $scplayer {state} False

:SYN6_6686
if 
  not is_char_dead 52@
goto_if_false @SYN6_6722
clear_char_tasks 52@
task_kinda_stay_in_same_place 52@ {state} True
task_kill_char_on_foot 52@ {target} $scplayer

:SYN6_6722
if 
  not is_char_dead 50@
goto_if_false @SYN6_6765
clear_char_tasks 50@
task_toggle_duck 50@ {state} False
task_kinda_stay_in_same_place 50@ {state} True
task_kill_char_on_foot 50@ {target} $scplayer

:SYN6_6765
set_playback_speed 149@ {speed} 1.0
if 
  92@ == 1
goto_if_false @SYN6_6855
if 
  91@ == 1
goto_if_false @SYN6_6855
set_playback_speed 149@ {speed} 1.5
if 
  not is_char_dead 151@
goto_if_false @SYN6_6847
give_weapon_to_char 151@ {weaponType} WeaponType.RocketLauncher {ammo} 9999

:SYN6_6847
set_car_health 149@ {health} 3000

:SYN6_6855
$health_counter = 100
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 5000
60@ = 8

:SYN6_6885
if 
  60@ == 9
goto_if_false @SYN6_6963
if 
  locate_car_3d 149@ {x} -1437.098 {y} -1527.995 {z} 100.7504 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN6_6963
stop_playback_recorded_car 149@
60@ += 1

:SYN6_6963
if 
  60@ == 10
goto_if_false @SYN6_7178
if 
  not is_car_dead 149@
goto_if_false @SYN6_7178
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @SYN6_7178
print_now 'SYN6_07' {time} 5000 {flag} 1
60@ += 1
if 
  not is_char_dead 151@
goto_if_false @SYN6_7097
task_toggle_duck 151@ {state} False
detach_char_from_car 151@
clear_char_tasks 151@
task_kill_char_on_foot 151@ {target} $scplayer

:SYN6_7097
if 
  not is_char_dead 152@
goto_if_false @SYN6_7138
task_toggle_duck 152@ {state} False
clear_char_tasks 152@
detach_char_from_car 152@
task_kill_char_on_foot 152@ {target} $scplayer

:SYN6_7138
set_car_cruise_speed 149@ {maxSpeed} 70.0
heli_goto_coords 149@ {x} -23.2666 {y} 1210.6689 {z} 100.3528 {minAltitude} 70.0 {maxAltitude} 70.0

:SYN6_7178
if 
  60@ == 10
goto_if_false @SYN6_7376
if 
  not is_car_dead 149@
goto_if_false @SYN6_7376
if 
  has_car_been_damaged_by_char 149@ {handle} $scplayer
goto_if_false @SYN6_7376
print_now 'SYN6_07' {time} 5000 {flag} 1
60@ += 1
if 
  not is_char_dead 151@
goto_if_false @SYN6_7295
task_toggle_duck 151@ {state} False
detach_char_from_car 151@
clear_char_tasks 151@
task_kill_char_on_foot 151@ {target} $scplayer

:SYN6_7295
if 
  not is_char_dead 152@
goto_if_false @SYN6_7336
task_toggle_duck 152@ {state} False
clear_char_tasks 152@
detach_char_from_car 152@
task_kill_char_on_foot 152@ {target} $scplayer

:SYN6_7336
set_car_cruise_speed 149@ {maxSpeed} 70.0
heli_goto_coords 149@ {x} -23.2666 {y} 1210.6689 {z} 100.3528 {minAltitude} 70.0 {maxAltitude} 70.0

:SYN6_7376
if 
  60@ == 11
goto_if_false @SYN6_7545
if 
  not is_char_dead 41@
goto_if_false @SYN6_7430
clear_char_tasks 41@
set_char_keep_task 41@ {state} True
task_kill_char_on_foot 41@ {target} $scplayer

:SYN6_7430
if 
  not is_char_dead 42@
goto_if_false @SYN6_7466
clear_char_tasks 42@
set_char_keep_task 42@ {state} True
task_kill_char_on_foot 42@ {target} $scplayer

:SYN6_7466
if 
  not is_char_dead 43@
goto_if_false @SYN6_7502
clear_char_tasks 43@
set_char_keep_task 43@ {state} True
task_kill_char_on_foot 43@ {target} $scplayer

:SYN6_7502
if 
  not is_char_dead 44@
goto_if_false @SYN6_7538
clear_char_tasks 44@
set_char_keep_task 44@ {state} True
task_kill_char_on_foot 44@ {target} $scplayer

:SYN6_7538
60@ += 1

:SYN6_7545
if 
  60@ == 8
goto_if_false @SYN6_7667
if 
  has_car_recording_been_loaded 111
goto_if_false @SYN6_7663
if 
  not is_playback_going_on_for_car 149@
goto_if_false @SYN6_7656
if 
  60@ == 8
goto_if_false @SYN6_7633
start_playback_recorded_car 149@ {path} 111
60@ += 1
goto @SYN6_7656

:SYN6_7633
print_now 'SYN6_06' {time} 5000 {flag} 1
goto @SYN6_9151

:SYN6_7656
goto @SYN6_7667

:SYN6_7663
request_car_recording 111

:SYN6_7667
if 
  60@ > 4
goto_if_false @SYN6_9026
if 
  not is_car_dead 149@
goto_if_false @SYN6_8426
79@ = 0
$health_counter = get_car_health 149@
$health_counter -= 250
$health_counter /= 10
if 
  $health_counter > 100
goto_if_false @SYN6_7756
$health_counter = 100

:SYN6_7756
if 
  1 > $health_counter
goto_if_false @SYN6_7848
if 
  83@ == 0
goto_if_false @SYN6_7841
if 
  60@ <> 99
goto_if_false @SYN6_7841
stop_playback_recorded_car 149@
make_heli_come_crashing_down 149@
60@ = 99
83@ = 1
TIMERA = 0

:SYN6_7841
$health_counter = 0

:SYN6_7848
if 
  60@ > 7
goto_if_false @SYN6_8058
if 
  92@ <> 1
goto_if_false @SYN6_8058
if 
  91@ <> 1
goto_if_false @SYN6_8058
if 
  79@ == 0
goto_if_false @SYN6_7968
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 149@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN6_7968
set_playback_speed 149@ {speed} 0.75
79@ = 1

:SYN6_7968
if 
  79@ == 0
goto_if_false @SYN6_8058
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 149@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SYN6_8041
set_playback_speed 149@ {speed} 0.5
79@ = 1
goto @SYN6_8058

:SYN6_8041
set_playback_speed 149@ {speed} 0.3
79@ = 1

:SYN6_8058
if 
  10 > 60@
goto_if_false @SYN6_8322
if 
  81@ == 0
goto_if_false @SYN6_8171
if 
  not is_car_dead 149@
goto_if_false @SYN6_8171
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 560.0 {yRadius} 560.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @SYN6_8171
clear_prints 
print_now 'SYN6_12' {time} 6000 {flag} 1
81@ = 1

:SYN6_8171
if 
  81@ == 1
goto_if_false @SYN6_8266
if 
  not is_car_dead 149@
goto_if_false @SYN6_8266
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 400.0 {yRadius} 400.0 {zRadius} 400.0 {drawSphere} False
goto_if_false @SYN6_8266
clear_prints 
print_now 'SYN6_13' {time} 6000 {flag} 1
81@ = 0

:SYN6_8266
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 149@ {xRadius} 700.0 {yRadius} 700.0 {drawSphere} False
goto_if_false @SYN6_8322
clear_prints 
print_now 'SYN6_08' {time} 6000 {flag} 1
goto @SYN6_9151

:SYN6_8322
if 
  60@ > 10
goto_if_false @SYN6_8419
if 
  60@ <> 99
goto_if_false @SYN6_8419
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 149@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @SYN6_8419
clear_prints 
print_now 'SYN6_10' {time} 6000 {flag} 1
goto @SYN6_9151

:SYN6_8419
goto @SYN6_8477

:SYN6_8426
clear_prints 
if 
  83@ == 0
goto_if_false @SYN6_8477
60@ = 99
stop_playback_recorded_car 149@
make_heli_come_crashing_down 149@
83@ = 1
TIMERA = 0

:SYN6_8477
if 
  10 > 60@
goto_if_false @SYN6_9026
39@ = 0

:SYN6_8502
if 
  2 > 39@
goto_if_false @SYN6_9026
if 
  not is_char_dead 151@(39@,2i)
goto_if_false @SYN6_9003
38@ = get_char_health 151@(39@,2i)
if 
  93@(39@,3i) == 0
goto_if_false @SYN6_8623
if 
  50 > 38@
goto_if_false @SYN6_8623
task_toggle_duck 151@(39@,2i) {state} False
93@(39@,3i) = 1
detach_char_from_car 151@(39@,2i)

:SYN6_8623
if 
  60@ > 6
goto_if_false @SYN6_8996
if 
  not is_char_dead 152@
goto_if_false @SYN6_8735
88@ = get_script_task_status 152@ {taskId} 1957
if 
  is_int_lvar_equal_to_constant 88@ == 7
goto_if_false @SYN6_8735
if 
  locate_char_any_means_char_2d 152@ {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN6_8735
set_current_char_weapon 152@ {weaponType} WeaponType.Ak47
task_kill_char_on_foot_timed 152@ {target} $scplayer {time} 4000

:SYN6_8735
if 
  not is_char_dead 151@
goto_if_false @SYN6_8996
87@ = get_script_task_status 151@ {taskId} 1957
if 
  is_int_lvar_equal_to_constant 87@ == 7
goto_if_false @SYN6_8996
if 
  92@ == 1
goto_if_false @SYN6_8904
if 
  locate_char_any_means_char_2d 151@ {target} $scplayer {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @SYN6_8897
if 
  92@ <> 1
goto_if_false @SYN6_8854
set_current_char_weapon 151@ {weaponType} WeaponType.DesertEagle

:SYN6_8854
if 
  92@ == 1
goto_if_false @SYN6_8886
set_current_char_weapon 151@ {weaponType} WeaponType.Ak47
set_char_accuracy 151@ {accuracy} 100

:SYN6_8886
task_kill_char_on_foot_timed 151@ {target} $scplayer {time} 4000

:SYN6_8897
goto @SYN6_8996

:SYN6_8904
if 
  locate_char_any_means_char_2d 151@ {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @SYN6_8996
if 
  92@ <> 1
goto_if_false @SYN6_8960
set_current_char_weapon 151@ {weaponType} WeaponType.DesertEagle

:SYN6_8960
if 
  92@ == 1
goto_if_false @SYN6_8985
set_current_char_weapon 151@ {weaponType} WeaponType.Ak47

:SYN6_8985
task_kill_char_on_foot_timed 151@ {target} $scplayer {time} 4000

:SYN6_8996
goto @SYN6_9012

:SYN6_9003
detach_char_from_car 151@(39@,2i)

:SYN6_9012
39@ += 1
goto @SYN6_8502

:SYN6_9026
if 
  83@ == 1
goto_if_false @SYN6_9144
if 
  TIMERA > 5000
goto_if_false @SYN6_9144
if 
  not is_char_dead 151@
goto_if_false @SYN6_9091
task_toggle_duck 151@ {state} False
detach_char_from_car 151@

:SYN6_9091
if 
  not is_char_dead 152@
goto_if_false @SYN6_9119
task_toggle_duck 152@ {state} False
detach_char_from_car 152@

:SYN6_9119
clear_prints 
print_now 'SYN6_09' {time} 6000 {flag} 1
goto @SYN6_9169

:SYN6_9144
goto @SYN6_1606

:SYN6_9151
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN6_9169
remove_blip $garage_contact_blip
$flag_synd_mission_counter += 1
print_with_number_big 'M_PASSS' {num} 18000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 18000
award_player_mission_respect 50
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'SYND_6'
player_made_progress 1
return 

:SYN6_9238
$tlf_underway = 2
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 34@
remove_blip 62@
if 
  not is_char_dead $scplayer
goto_if_false @SYN6_9282
remove_weapon_from_char $scplayer {weaponType} WeaponType.RocketLauncher

:SYN6_9282
clear_onscreen_counter $health_counter
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 348
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 63---------------
// Originally: Yay Ka-Boom-Boom

:SYN7
script_name 'SYN7'
gosub @SYN7_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN7_38
gosub @SYN7_15914

:SYN7_38
gosub @SYN7_16015
terminate_this_script 

:SYN7_47
load_mission_text 'SYN7'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SYN7_73
if 
  get_fading_status 
goto_if_false @SYN7_97
wait 0
goto @SYN7_73

:SYN7_97
request_ipl "CRACK"
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #CRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #CF_EXT_DEM_SFS {state} False
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #LODCRACKFACT_SFS {state} True
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #LODEXT_DEM_SFS {state} False
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'SYND_7'

:SYN7_249
if 
  not has_cutscene_loaded 
goto_if_false @SYN7_273
wait 0
goto @SYN7_249

:SYN7_273
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:SYN7_290
if 
  not has_cutscene_finished 
goto_if_false @SYN7_314
wait 0
goto @SYN7_290

:SYN7_314
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:SYN7_328
if 
  get_fading_status 
goto_if_false @SYN7_352
wait 0
goto @SYN7_328

:SYN7_352
clear_cutscene 
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_420
set_char_coordinates $scplayer {x} -2031.197 {y} 161.1839 {z} 27.8516
set_char_heading $scplayer {heading} 268.0468
set_camera_behind_player 
set_player_control $player1 {state} False

:SYN7_420
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
48@ = 0
$s7_timer = 40000
117@ = 2
register_mission_given 
35@ = load_char_decision_maker DecisionMakerType.Empty
34@ = load_char_decision_maker DecisionMakerType.Weak
36@ = load_char_decision_maker DecisionMakerType.Tough
wait 0
goto @SYN7_1167

:SYN7_493
130@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2160.533 {y} -247.0836 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 130@ {state} True
close_sequence_task 130@
131@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2163.7671 {y} -249.1202 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_pause -1 {time} 1000
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 131@ {state} True
close_sequence_task 131@
132@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2167.6311 {y} -249.1143 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_pause -1 {time} 500
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 132@ {state} True
close_sequence_task 132@
133@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2157.0 {y} -248.9899 {z} 35.5234 {speed} MoveState.Walk {vehicle} -1
task_pause -1 {time} 250
task_play_anim -1 {animationName} "WASH_UP" {animationFile} "INT_HOUSE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 133@ {state} True
close_sequence_task 133@
86@ = create_char PedType.Mission1 {modelId} 144 {x} -2146.0449 {y} -242.5144 {z} 35.5234
set_char_heading 86@ {heading} 90.433
set_char_weapon_skill 86@ {skill} WeaponSkill.Pro
give_weapon_to_char 86@ {weaponType} WeaponType.Pistol {ammo} 9999
set_char_accuracy 86@ {accuracy} 30
set_char_shoot_rate 86@ {rate} 30
set_char_decision_maker 86@ {handleOrTemplate} 36@
87@ = create_char PedType.CivFemale {modelId} 145 {x} -2160.533 {y} -247.0836 {z} 35.5234
set_char_heading 87@ {heading} 176.3351
perform_sequence_task 87@ {sequence} 130@
88@ = create_char PedType.CivFemale {modelId} 145 {x} -2163.7671 {y} -249.1202 {z} 35.5234
set_char_heading 88@ {heading} 11.5708
perform_sequence_task 88@ {sequence} 131@
89@ = create_char PedType.CivMale {modelId} 146 {x} -2167.6311 {y} -249.1143 {z} 35.5234
set_char_heading 89@ {heading} 1.311
perform_sequence_task 89@ {sequence} 132@
90@ = create_char PedType.CivMale {modelId} 146 {x} -2157.0 {y} -248.9899 {z} 35.5234
set_char_heading 90@ {heading} 0.8891
perform_sequence_task 90@ {sequence} 133@
47@ = 0

:SYN7_1083
if 
  47@ <> 0
goto_if_false @SYN7_1144
if 
  not is_char_dead 86@(47@,8i)
goto_if_false @SYN7_1144
set_char_is_target_priority 86@(47@,8i) {state} False
set_char_decision_maker 86@(47@,8i) {handleOrTemplate} 34@

:SYN7_1144
47@ += 1
  47@ >= 5
goto_if_false @SYN7_1083
return 

:SYN7_1167
set_group_separation_range $Players_Group {range} 100.0
switch_ped_roads_off -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_roads_off -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_off -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
TIMERA = 0
set_camera_behind_player 
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_1308
set_char_heading $scplayer {heading} 280.0

:SYN7_1308
40@ = add_blip_for_coord -1688.901 {y} 1035.95 {z} 43.7187
request_model 549
request_model 50
request_animation "CAR"
request_model 330
request_model #HEALTH
request_model 346

:SYN7_1359
if or
  not has_model_loaded 549
  not has_model_loaded 50
  not has_animation_loaded "CAR"
  not has_model_loaded 330
  not has_model_loaded #HEALTH
goto_if_false @SYN7_1407
wait 0
goto @SYN7_1359

:SYN7_1407
if 
  not has_model_loaded 346
goto_if_false @SYN7_1434
wait 0
goto @SYN7_1407

:SYN7_1434
121@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} -2182.6521 {y} -247.3813 {z} 36.4
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True
45@ = create_object #WONGS_GATE {x} -2127.0 {y} -80.8 {z} 34.3281
set_object_heading 45@ {heading} 180.0
46@ = create_object #DYN_RAMP {x} -2175.2 {y} -209.7745 {z} 34.3281
set_object_heading 46@ {heading} 85.6854
custom_plate_for_next_car 549 {text} "TIMEBOMB"
38@ = create_car 549 {x} -1688.901 {y} 1035.95 {z} 44.6
set_vehicle_dirt_level 38@ {level} 12.0
freeze_car_position 38@ {state} True
set_can_burst_car_tyres 38@ {state} False
set_car_heading 38@ {heading} 90.0
set_car_health 38@ {health} 1000
37@ = create_char PedType.CivMale {modelId} 50 {x} -1689.12 {y} 1038.2 {z} 44.2
set_char_health 37@ {health} 800
set_char_max_health 37@ {maxHealth} 800
set_char_never_targetted 37@ {state} True
set_char_collision 37@ {state} False
set_char_heading 37@ {heading} 0.0
task_play_anim 37@ {animationName} "FIXN_CAR_LOOP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_char_accuracy 37@ {accuracy} 100
set_char_decision_maker 37@ {handleOrTemplate} 35@
set_ped_density_multiplier 0.5
set_car_density_multiplier 1.0
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Player1 {toPedType} PedType.Mission1
TIMERB = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000

:SYN7_1790
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN7_1816
wait 0
goto @SYN7_1790

:SYN7_1816
play_mission_audio MissionAudioSlot.Slot3
gosub @SYN7_16548
set_fixed_camera_position -2029.134 {y} 164.0932 {z} 29.0052 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2029.778 {y} 163.3323 {z} 28.9291 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_1901
task_use_mobile_phone $scplayer {start} True

:SYN7_1901
wait 2000
print_now 'MTG01A' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 29400

:SYN7_1933
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_1959
wait 0
goto @SYN7_1933

:SYN7_1959
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:SYN7_1970
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_1996
wait 0
goto @SYN7_1970

:SYN7_1996
wait 500
gosub @SYN7_16581

:SYN7_2008
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_14647
wait 0
gosub @SYN7_16684
gosub @SYN7_16977
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  113@ <> 8
  113@ <> 0
goto_if_false @SYN7_2080
113@ = 7

:SYN7_2080
if and
  117@ == 2
  113@ == 0
goto_if_false @SYN7_2141
set_lvar_text_label 127@s = 'MTG01B'
set_lvar_int_to_constant 118@ = 29401
gosub @SYN7_16957
113@ = 1

:SYN7_2141
if and
  117@ == 2
  113@ == 1
goto_if_false @SYN7_2226
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2190
start_char_facial_talk $scplayer {duration} 5000

:SYN7_2190
set_lvar_text_label 127@s = 'MTG01C'
set_lvar_int_to_constant 118@ = 29402
gosub @SYN7_16957
113@ = 2

:SYN7_2226
if and
  117@ == 2
  113@ == 2
goto_if_false @SYN7_2308
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2272
stop_char_facial_talk $scplayer

:SYN7_2272
set_lvar_text_label 127@s = 'MTG01D'
set_lvar_int_to_constant 118@ = 29403
gosub @SYN7_16957
113@ = 3

:SYN7_2308
if and
  117@ == 2
  113@ == 3
goto_if_false @SYN7_2393
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2357
start_char_facial_talk $scplayer {duration} 5000

:SYN7_2357
set_lvar_text_label 127@s = 'MTG01E'
set_lvar_int_to_constant 118@ = 29404
gosub @SYN7_16957
113@ = 4

:SYN7_2393
if and
  117@ == 2
  113@ == 4
goto_if_false @SYN7_2475
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2439
stop_char_facial_talk $scplayer

:SYN7_2439
set_lvar_text_label 127@s = 'MTG01F'
set_lvar_int_to_constant 118@ = 29405
gosub @SYN7_16957
113@ = 5

:SYN7_2475
if and
  117@ == 2
  113@ == 5
goto_if_false @SYN7_2536
set_lvar_text_label 127@s = 'MTG01G'
set_lvar_int_to_constant 118@ = 29406
gosub @SYN7_16957
113@ = 6

:SYN7_2536
if and
  117@ == 2
  113@ == 6
goto_if_false @SYN7_2621
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2585
start_char_facial_talk $scplayer {duration} 5000

:SYN7_2585
set_lvar_text_label 127@s = 'MTG01H'
set_lvar_int_to_constant 118@ = 29407
gosub @SYN7_16957
113@ = 7

:SYN7_2621
if and
  117@ == 2
  113@ == 7
goto_if_false @SYN7_2718
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2667
stop_char_facial_talk $scplayer

:SYN7_2667
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2690
task_use_mobile_phone $scplayer {start} False

:SYN7_2690
mark_model_as_no_longer_needed 330
print_now 'SYN7_01' {time} 9000 {flag} 1
113@ = 8

:SYN7_2718
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @SYN7_2740
goto @SYN7_14730

:SYN7_2740
$s7_velocity = get_char_speed $scplayer
if or
  locate_char_any_means_3d $scplayer {x} -2129.3081 {y} -129.0417 {z} 34.3203 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 500.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2149.624 {y} -244.8758 {z} 35.5234 {xRadius} 98.0 {yRadius} 98.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @SYN7_2854
$s7_in_compound = 1
set_wanted_multiplier 0.0
goto @SYN7_2868

:SYN7_2854
$s7_in_compound = 0
set_wanted_multiplier 1.0

:SYN7_2868
if and
  48@ == 0
  not is_char_dead $scplayer
goto_if_false @SYN7_5825
if 
  locate_char_any_means_3d $scplayer {x} -1699.484 {y} 1030.651 {z} 44.2187 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN7_5825
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_2962
set_player_control $player1 {state} False

:SYN7_2962
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_3001
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:SYN7_3001
113@ = 8
gosub @SYN7_16548
set_fixed_camera_position -1721.071 {y} 1024.804 {z} 49.7941 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1720.161 {y} 1025.186 {z} 49.6318 {switchStyle} SwitchType.JumpCut
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_3099
task_leave_any_car $scplayer
wait 2000
goto @SYN7_3124

:SYN7_3099
task_go_straight_to_coord $scplayer {x} -1696.49 {y} 1034.98 {z} 45.11 {speed} MoveState.Walk {time} 2000

:SYN7_3124
gosub @SYN7_16618
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1825

:SYN7_3138
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @SYN7_3164
wait 0
goto @SYN7_3138

:SYN7_3164
request_model 145
request_model 146
request_model 144
request_model 48
request_model 46
request_model 352
request_model 412
request_animation "INT_HOUSE"

:SYN7_3210
if or
  not has_model_loaded 145
  not has_model_loaded 146
  not has_model_loaded 144
  not has_model_loaded 48
  not has_model_loaded 46
goto_if_false @SYN7_3255
wait 0
goto @SYN7_3210

:SYN7_3255
if or
  not has_model_loaded 352
  not has_model_loaded 412
  not has_animation_loaded "INT_HOUSE"
goto_if_false @SYN7_3300
wait 0
goto @SYN7_3255

:SYN7_3300
request_car_recording 483

:SYN7_3305
if 
  not has_car_recording_been_loaded 483
goto_if_false @SYN7_3332
wait 0
goto @SYN7_3305

:SYN7_3332
if 
  not is_char_dead 37@
goto_if_false @SYN7_3394
137@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1692.068 {y} 1036.196 {z} 44.2109 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} 37@
task_toggle_duck -1 {state} True
close_sequence_task 137@

:SYN7_3394
if 
  not is_car_dead 38@
goto_if_false @SYN7_3510
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_3465
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_3465
warp_char_from_car_to_coord $scplayer {x} -1693.321 {y} 1034.3199 {z} 44.2109

:SYN7_3465
set_char_coordinates $scplayer {x} -1693.321 {y} 1034.3199 {z} 44.2109
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_heading $scplayer {heading} 329.4165
perform_sequence_task $scplayer {sequence} 137@

:SYN7_3510
wait 1500
clear_prints 
set_fixed_camera_position -1694.2159 {y} 1036.72 {z} 45.3716 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1693.236 {y} 1036.801 {z} 45.1866 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
TIMERA = 0
if 
  not is_car_dead 38@
goto_if_false @SYN7_3620
39@ = add_blip_for_car 38@
change_blip_display 39@ {display} BlipDisplay.Neither
set_blip_as_friendly 39@ {state} True

:SYN7_3620
if 
  not is_char_dead 37@
goto_if_false @SYN7_3644
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundMechanicAttachCarBomb

:SYN7_3644
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39800

:SYN7_3657
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_3683
wait 0
goto @SYN7_3657

:SYN7_3683
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AA' {time} 3000 {flag} 1
TIMERA = 0

:SYN7_3710
if 
  2000 > TIMERA
goto_if_false @SYN7_3764
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_3757
goto @SYN7_5270

:SYN7_3757
goto @SYN7_3710

:SYN7_3764
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39801

:SYN7_3777
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_3803
wait 0
goto @SYN7_3777

:SYN7_3803
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AB' {time} 2000 {flag} 1
TIMERA = 0

:SYN7_3830
if 
  1000 > TIMERA
goto_if_false @SYN7_3884
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_3877
goto @SYN7_5270

:SYN7_3877
goto @SYN7_3830

:SYN7_3884
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_3948
138@ = open_sequence_task 
task_play_anim -1 {animationName} "FIXN_CAR_OUT" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
close_sequence_task 138@

:SYN7_3948
if and
  not is_char_dead $scplayer
  not is_car_dead 38@
goto_if_false @SYN7_4011
task_toggle_duck $scplayer {state} False
task_go_straight_to_coord $scplayer {x} -1690.423 {y} 1034.0031 {z} 44.2109 {speed} MoveState.Walk {time} 6000
task_enter_car_as_driver $scplayer {vehicle} 38@ {time} -1

:SYN7_4011
TIMERA = 0

:SYN7_4018
if 
  500 > TIMERA
goto_if_false @SYN7_4072
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4065
goto @SYN7_5270

:SYN7_4065
goto @SYN7_4018

:SYN7_4072
if 
  not is_char_dead 37@
goto_if_false @SYN7_4096
perform_sequence_task 37@ {sequence} 138@

:SYN7_4096
if 
  not is_char_dead 37@
goto_if_false @SYN7_4120
report_mission_audio_event_at_char 37@ {soundId} ScriptSound.SoundMechanicSlideOut

:SYN7_4120
TIMERA = 0

:SYN7_4127
if 
  1500 > TIMERA
goto_if_false @SYN7_4181
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4174
goto @SYN7_5270

:SYN7_4174
goto @SYN7_4127

:SYN7_4181
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39802

:SYN7_4194
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_4220
wait 0
goto @SYN7_4194

:SYN7_4220
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AC' {time} 3000 {flag} 1
if 
  not is_char_dead 37@
goto_if_false @SYN7_4264
start_char_facial_talk 37@ {duration} 5000

:SYN7_4264
set_fixed_camera_position -1690.172 {y} 1033.266 {z} 45.4626 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1689.64 {y} 1034.11 {z} 45.3904 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 37@
goto_if_false @SYN7_4346
set_char_collision 37@ {state} True
task_turn_char_to_face_char 37@ {target} $scplayer

:SYN7_4346
if 
  not is_car_dead 38@
goto_if_false @SYN7_4482
set_car_coordinates 38@ {x} -1688.901 {y} 1034.95 {z} 43.7187
if 
  not is_char_dead 37@
goto_if_false @SYN7_4475
task_look_at_char $scplayer {target} 37@ {time} 5000
task_play_anim 37@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_coordinates 37@ {x} -1689.12 {y} 1036.9 {z} 44.3187
set_char_heading 37@ {heading} 180.0

:SYN7_4475
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed

:SYN7_4482
TIMERB = 0

:SYN7_4489
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_4539
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4532
goto @SYN7_5270

:SYN7_4532
goto @SYN7_4489

:SYN7_4539
if 
  not is_char_dead 37@
goto_if_false @SYN7_4560
stop_char_facial_talk 37@

:SYN7_4560
TIMERA = 0

:SYN7_4567
if 
  2500 > TIMERA
goto_if_false @SYN7_4621
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4614
goto @SYN7_5270

:SYN7_4614
goto @SYN7_4567

:SYN7_4621
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39803

:SYN7_4634
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_4660
wait 0
goto @SYN7_4634

:SYN7_4660
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AD' {time} 4000 {flag} 1
if 
  not is_char_dead 37@
goto_if_false @SYN7_4704
start_char_facial_talk 37@ {duration} 5000

:SYN7_4704
TIMERB = 0

:SYN7_4711
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_4761
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4754
goto @SYN7_5270

:SYN7_4754
goto @SYN7_4711

:SYN7_4761
if 
  not is_char_dead 37@
goto_if_false @SYN7_4782
stop_char_facial_talk 37@

:SYN7_4782
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39804

:SYN7_4795
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_4821
wait 0
goto @SYN7_4795

:SYN7_4821
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_4845
start_char_facial_talk $scplayer {duration} 5000

:SYN7_4845
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_AE' {time} 4000 {flag} 1
TIMERB = 0

:SYN7_4872
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN7_4922
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_4915
goto @SYN7_5270

:SYN7_4915
goto @SYN7_4872

:SYN7_4922
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_4943
stop_char_facial_talk $scplayer

:SYN7_4943
if 
  not is_car_dead 38@
goto_if_false @SYN7_5004
if 
  not is_char_dead 37@
goto_if_false @SYN7_5004
clear_char_tasks 37@
task_go_to_coord_any_means 37@ {x} -1683.17 {y} 1037.342 {z} 45.2173 {speed} MoveState.Walk {vehicle} -1

:SYN7_5004
TIMERA = 0

:SYN7_5011
if 
  1000 > TIMERA
goto_if_false @SYN7_5065
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_5058
goto @SYN7_5270

:SYN7_5058
goto @SYN7_5011

:SYN7_5065
gosub @SYN7_16618
clear_prints 
clear_area -1704.693 {y} 1027.476 {z} 44.211 {radius} 30.0 {clearParticles} True
load_scene_in_direction -1696.585 {y} 1038.498 {z} 44.2173 {heading} 150.0018
if 
  not is_car_dead 38@
goto_if_false @SYN7_5151
freeze_car_position 38@ {state} False
start_playback_recorded_car 38@ {path} 483

:SYN7_5151
set_fixed_camera_position -1696.99 {y} 1045.54 {z} 48.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1701.21 {y} 1036.55 {z} 45.7 {switchStyle} SwitchType.JumpCut
gosub @SYN7_16651
TIMERA = 0

:SYN7_5216
if 
  2000 > TIMERA
goto_if_false @SYN7_5270
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @SYN7_5263
goto @SYN7_5270

:SYN7_5263
goto @SYN7_5216

:SYN7_5270
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_5291
stop_char_facial_talk $scplayer

:SYN7_5291
delete_char 37@
remove_animation "CAR"
if 
  not is_car_dead 38@
goto_if_false @SYN7_5353
freeze_car_position 38@ {state} False
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_5353
warp_char_into_car $scplayer {vehicle} 38@

:SYN7_5353
if 
  not is_car_dead 38@
goto_if_false @SYN7_5451
if 
  is_playback_going_on_for_car 38@
goto_if_false @SYN7_5397
skip_to_end_and_stop_playback_recorded_car 38@
goto @SYN7_5451

:SYN7_5397
clear_area -1704.615 {y} 1026.202 {z} 44.1953 {radius} 20.0 {clearParticles} True
set_car_coordinates 38@ {x} -1704.615 {y} 1026.202 {z} 44.1953
set_car_heading 38@ {heading} 168.8963

:SYN7_5451
TIMERA = 0
remove_blip 40@
change_blip_display 39@ {display} BlipDisplay.Neither
41@ = add_blip_for_coord -2128.1201 {y} -83.3848 {z} 34.314
gosub @SYN7_16581
print_now 'SYN7_03' {time} 7000 {flag} 1
139@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2128.8479 {y} -79.3918 {z} 34.2565 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 0.0
set_sequence_to_repeat 139@ {state} True
close_sequence_task 139@
140@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -2128.8479 {y} -79.3918 {z} 34.2565 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 0.0
set_sequence_to_repeat 140@ {state} True
close_sequence_task 140@
42@ = create_char PedType.Mission1 {modelId} 144 {x} -2128.8479 {y} -79.3918 {z} 34.2565
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_heading 42@ {heading} 0.0
43@ = create_char PedType.Mission1 {modelId} 48 {x} -2128.8479 {y} -79.3918 {z} 34.2565
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_heading 43@ {heading} 0.0
perform_sequence_task 42@ {sequence} 139@
perform_sequence_task 43@ {sequence} 140@
47@ = 0

:SYN7_5723
set_char_accuracy 42@(47@,3i) {accuracy} 40
set_char_decision_maker 42@(47@,3i) {handleOrTemplate} 36@
set_char_relationship 42@(47@,3i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@(47@,3i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_sense_range 42@(47@,3i) {range} 150.0
set_char_is_target_priority 42@(47@,3i) {state} True
47@ += 1
  47@ >= 2
goto_if_false @SYN7_5723
48@ = 1

:SYN7_5825
if 
  48@ == 1
goto_if_false @SYN7_8021
if and
  locate_char_any_means_3d $scplayer {x} -2124.501 {y} -77.7719 {z} 34.1719 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
  not is_char_dead 42@
  not is_char_dead 43@
goto_if_false @SYN7_6020
if 
  83@ == 0
goto_if_false @SYN7_6020
gosub @SYN7_493
print_now 'SYN7_52' {time} 4000 {flag} 1
83@ = 1
if 
  does_blip_exist 41@
goto_if_false @SYN7_5972
change_blip_display 41@ {display} BlipDisplay.Neither

:SYN7_5972
if 
  not is_char_dead 42@
goto_if_false @SYN7_5996
84@ = add_blip_for_char 42@

:SYN7_5996
if 
  not is_char_dead 43@
goto_if_false @SYN7_6020
85@ = add_blip_for_char 43@

:SYN7_6020
if 
  not is_char_dead 43@
goto_if_false @SYN7_6169
if 
  locate_char_any_means_3d 43@ {x} -2126.9109 {y} -79.3953 {z} 34.2567 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_6098
115@ = 1
goto @SYN7_6169

:SYN7_6098
switch_ped_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
115@ = 0

:SYN7_6169
if 
  not is_char_dead 42@
goto_if_false @SYN7_6318
if 
  locate_char_any_means_3d 42@ {x} -2126.9109 {y} -79.3953 {z} 34.2567 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_6247
114@ = 1
goto @SYN7_6318

:SYN7_6247
switch_ped_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
114@ = 0

:SYN7_6318
if 
  83@ == 1
goto_if_false @SYN7_6410
if 
  is_char_dead 42@
goto_if_false @SYN7_6373
if 
  does_blip_exist 84@
goto_if_false @SYN7_6373
remove_blip 84@

:SYN7_6373
if 
  is_char_dead 43@
goto_if_false @SYN7_6410
if 
  does_blip_exist 85@
goto_if_false @SYN7_6410
remove_blip 85@

:SYN7_6410
120@ = get_area_visible 
if and
  is_char_dead 42@
  is_char_dead 43@
  120@ == 0
goto_if_false @SYN7_8021
gosub @SYN7_16618
request_animation "ON_LOOKERS"

:SYN7_6464
if 
  not has_animation_loaded "ON_LOOKERS"
goto_if_false @SYN7_6500
wait 0
goto @SYN7_6464

:SYN7_6500
gosub @SYN7_16548
52@ = create_char PedType.Mission1 {modelId} 46 {x} -2125.8711 {y} -97.1422 {z} 34.3281
set_char_weapon_skill 52@ {skill} WeaponSkill.Pro
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 9999
task_play_anim 52@ {animationName} "POINT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 3000
if or
  115@ == 1
  114@ == 1
goto_if_false @SYN7_6676
set_fixed_camera_position -2113.1499 {y} -72.3184 {z} 40.9064 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2113.918 {y} -72.8274 {z} 40.5167 {switchStyle} SwitchType.JumpCut
goto @SYN7_6727

:SYN7_6676
set_fixed_camera_position -2125.6421 {y} -95.0874 {z} 35.6371 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2125.762 {y} -96.0758 {z} 35.7291 {switchStyle} SwitchType.JumpCut

:SYN7_6727
gosub @SYN7_16651
$s7_rnd_1 = generate_random_int_in_range 0 {max} 3
switch_start $s7_rnd_1 {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYN7_7004 {caseNum1} 0 {caseLabel1} @SYN7_6806 {caseNum2} 1 {caseLabel2} @SYN7_6872 {caseNum3} 2 {caseLabel3} @SYN7_6938 {caseNum4} -1 {caseLabel4} @SYN7_7004 {caseNum5} -1 {caseLabel5} @SYN7_7004 {caseNum6} -1 {caseLabel6} @SYN7_7004 {caseNum7} -1 {caseLabel7} @SYN7_7004

:SYN7_6806
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39805

:SYN7_6819
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_6845
wait 0
goto @SYN7_6819

:SYN7_6845
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_BA' {time} 4000 {flag} 1
goto @SYN7_7004

:SYN7_6872
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39806

:SYN7_6885
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_6911
wait 0
goto @SYN7_6885

:SYN7_6911
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_BB' {time} 4000 {flag} 1
goto @SYN7_7004

:SYN7_6938
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39807

:SYN7_6951
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_6977
wait 0
goto @SYN7_6951

:SYN7_6977
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_BC' {time} 4000 {flag} 1
goto @SYN7_7004

:SYN7_7004
wait 4000
if and
  not is_char_dead $scplayer
  not is_car_dead 38@
goto_if_false @SYN7_7103
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_7103
clear_area -2127.7991 {y} -68.8104 {z} 34.1719 {radius} 10.0 {clearParticles} True
set_car_coordinates 38@ {x} -2127.7991 {y} -68.8104 {z} 34.1719
set_car_heading 38@ {heading} 180.0

:SYN7_7103
clear_area -2129.2561 {y} -74.4958 {z} 34.1719 {radius} 100.0 {clearParticles} True
50@ = create_char PedType.Mission1 {modelId} 144 {x} -2119.011 {y} -99.2082 {z} 34.3281
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 1000
51@ = create_char PedType.Mission1 {modelId} 48 {x} -2121.1731 {y} -108.9207 {z} 34.3281
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 1000
53@ = create_char PedType.Mission1 {modelId} 48 {x} -2104.2 {y} -162.4759 {z} 34.3273
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 1000
54@ = create_char PedType.Mission1 {modelId} 46 {x} -2100.0959 {y} -157.8681 {z} 34.3273
set_char_weapon_skill 54@ {skill} WeaponSkill.Pro
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 9999
55@ = create_char PedType.Mission1 {modelId} 144 {x} -2162.635 {y} -224.1719 {z} 35.5156
set_char_heading 55@ {heading} 350.5417
give_weapon_to_char 55@ {weaponType} WeaponType.MicroUzi {ammo} 1000
47@ = 0

:SYN7_7323
if 
  not is_char_dead 50@(47@,10i)
goto_if_false @SYN7_7414
set_char_shoot_rate 50@(47@,10i) {rate} 30
set_char_accuracy 50@(47@,10i) {accuracy} 30
set_char_is_target_priority 50@(47@,10i) {state} True
set_char_decision_maker 50@(47@,10i) {handleOrTemplate} 36@
set_char_relationship 50@(47@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 50@(47@,10i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1

:SYN7_7414
47@ += 1
  47@ >= 6
goto_if_false @SYN7_7323
141@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2126.144 {y} -82.2896 {z} 34.3203 {speed} MoveState.Run {time} -1
task_goto_char -1 {target} $scplayer {time} -1 {radius} 5.0
close_sequence_task 141@
perform_sequence_task 50@ {sequence} 141@
perform_sequence_task 51@ {sequence} 141@
if 
  not is_char_dead 52@
goto_if_false @SYN7_7564
clear_char_tasks_immediately 52@
task_play_anim 52@ {animationName} "POINT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 3000

:SYN7_7564
task_goto_char 53@ {target} $scplayer {time} -1 {radius} 5.0
task_goto_char 54@ {target} $scplayer {time} -1 {radius} 5.0
set_fixed_camera_position -2119.3999 {y} -92.22 {z} 34.61 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2170.1699 {y} -161.04 {z} 46.68 {switchStyle} SwitchType.JumpCut
$s7_rnd_1 = generate_random_int_in_range 0 {max} 3
switch_start $s7_rnd_1 {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SYN7_7915 {caseNum1} 0 {caseLabel1} @SYN7_7717 {caseNum2} 1 {caseLabel2} @SYN7_7783 {caseNum3} 2 {caseLabel3} @SYN7_7849 {caseNum4} -1 {caseLabel4} @SYN7_7915 {caseNum5} -1 {caseLabel5} @SYN7_7915 {caseNum6} -1 {caseLabel6} @SYN7_7915 {caseNum7} -1 {caseLabel7} @SYN7_7915

:SYN7_7717
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39808

:SYN7_7730
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_7756
wait 0
goto @SYN7_7730

:SYN7_7756
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_CA' {time} 4000 {flag} 1
goto @SYN7_7915

:SYN7_7783
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39809

:SYN7_7796
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_7822
wait 0
goto @SYN7_7796

:SYN7_7822
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_CB' {time} 4000 {flag} 1
goto @SYN7_7915

:SYN7_7849
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 39810

:SYN7_7862
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN7_7888
wait 0
goto @SYN7_7862

:SYN7_7888
play_mission_audio MissionAudioSlot.Slot1
print_now 'SYN7_CC' {time} 4000 {flag} 1
goto @SYN7_7915

:SYN7_7915
wait 4000
gosub @SYN7_16581
remove_blip 41@
70@ = add_blip_for_coord -2175.2429 {y} -209.7745 {z} 34.3281
if and
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_7999
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_7999
change_blip_display 70@ {display} BlipDisplay.Neither

:SYN7_7999
TIMERB = 0
report_mission_audio_event_at_object 45@ {soundId} ScriptSound.SoundMeshGateOpenStart
48@ = 2

:SYN7_8021
if and
  48@ == 2
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_8540
if 
  does_object_exist 45@
goto_if_false @SYN7_8177
$x, $y, $z = get_object_coordinates 45@
if 
  -2117.0 > $x
goto_if_false @SYN7_8144
  slide_object 45@ {posX} -2117.0 {posY} -80.8 {posZ} 34.3281 {speedX} 0.2 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto @SYN7_8177

:SYN7_8144
if 
  122@ == 0
goto_if_false @SYN7_8177
report_mission_audio_event_at_object 45@ {soundId} ScriptSound.SoundMeshGateOpenStop
122@ = 1

:SYN7_8177
if and
  locate_char_any_means_3d $scplayer {x} -2138.2119 {y} -201.8113 {z} 34.3281 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  72@ == 0
goto_if_false @SYN7_8329
print_now 'SYN7_35' {time} 4000 {flag} 1
47@ = 0

:SYN7_8255
delete_char 50@(47@,10i)
47@ += 1
  47@ >= 6
goto_if_false @SYN7_8255
47@ = 0

:SYN7_8292
delete_char 42@(47@,3i)
47@ += 1
  47@ >= 2
goto_if_false @SYN7_8292
72@ = 1

:SYN7_8329
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_8540
if 
  locate_char_any_means_3d $scplayer {x} -2181.76 {y} -209.4146 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN7_8444
print_now 'SYN7_34' {time} 6000 {flag} 1
remove_blip 70@
71@ = add_blip_for_coord -2184.0591 {y} -263.4215 {z} 35.5234
48@ = 3

:SYN7_8444
if 
  locate_char_any_means_3d $scplayer {x} -2184.9829 {y} -218.1104 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN7_8540
print_now 'SYN7_34' {time} 6000 {flag} 1
remove_blip 70@
71@ = add_blip_for_coord -2184.0591 {y} -263.4215 {z} 35.5234
48@ = 3

:SYN7_8540
if and
  48@ == 3
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_10153
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_10151
if and
  locate_char_any_means_3d $scplayer {x} -2150.5271 {y} -241.7461 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  not is_char_dead 86@
  94@ == 0
goto_if_false @SYN7_8916
$s7_rnd_1 = generate_random_int_in_range 0 {max} 5
switch_start $s7_rnd_1 {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SYN7_8909 {caseNum1} 0 {caseLabel1} @SYN7_8719 {caseNum2} 1 {caseLabel2} @SYN7_8757 {caseNum3} 2 {caseLabel3} @SYN7_8795 {caseNum4} 3 {caseLabel4} @SYN7_8833 {caseNum5} 4 {caseLabel5} @SYN7_8871 {caseNum6} -1 {caseLabel6} @SYN7_8909 {caseNum7} -1 {caseLabel7} @SYN7_8909

:SYN7_8719
set_lvar_text_label 127@s = 'SYN7_DA'
set_lvar_int_to_constant 118@ = 39811
gosub @SYN7_16957
goto @SYN7_8909

:SYN7_8757
set_lvar_text_label 127@s = 'SYN7_DB'
set_lvar_int_to_constant 118@ = 39812
gosub @SYN7_16957
goto @SYN7_8909

:SYN7_8795
set_lvar_text_label 127@s = 'SYN7_DC'
set_lvar_int_to_constant 118@ = 39813
gosub @SYN7_16957
goto @SYN7_8909

:SYN7_8833
set_lvar_text_label 127@s = 'SYN7_DD'
set_lvar_int_to_constant 118@ = 39814
gosub @SYN7_16957
goto @SYN7_8909

:SYN7_8871
set_lvar_text_label 127@s = 'SYN7_DE'
set_lvar_int_to_constant 118@ = 39815
gosub @SYN7_16957
goto @SYN7_8909

:SYN7_8909
94@ = 1

:SYN7_8916
if 
  locate_char_any_means_3d $scplayer {x} -2184.0591 {y} -263.4215 {z} 35.5234 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} 73@
goto_if_false @SYN7_10135
print_help_forever 'SYN7_20'
73@ = 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @SYN7_10128
48@ = 4
clear_help 
if 
  not is_car_dead 38@
goto_if_false @SYN7_9056
freeze_car_position 38@ {state} True
set_car_lights_on 38@ {state} False
74@ = open_sequence_task 
task_leave_car -1 {vehicle} 38@
close_sequence_task 74@

:SYN7_9056
142@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -2146.042 {y} -259.7312 {z} 39.7195 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} -2146.229 {y} -267.7039 {z} 39.7195 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} -2156.51 {y} -268.1435 {z} 39.7195 {speed} MoveState.Run {time} -2
close_sequence_task 142@
60@ = create_char PedType.Mission1 {modelId} 144 {x} -2140.9309 {y} -253.9011 {z} 39.7195
set_char_heading 60@ {heading} 150.6317
perform_sequence_task 60@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
flush_route 
extend_route -2157.7261 {y} -231.4555 {z} 35.5234
extend_route -2153.749 {y} -236.6368 {z} 35.5234
extend_route -2153.623 {y} -246.5058 {z} 35.5234
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_follow_path_nodes_to_coord -1 {x} -2162.2639 {y} -260.4177 {z} 35.5234 {speed} MoveState.Run {time} -2
task_follow_path_nodes_to_coord -1 {x} -2167.7649 {y} -261.495 {z} 35.5234 {speed} MoveState.Run {time} -2
close_sequence_task 142@
61@ = create_char PedType.Mission1 {modelId} 48 {x} -2162.2361 {y} -230.954 {z} 35.522
set_char_heading 61@ {heading} 231.2343
perform_sequence_task 61@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
flush_route 
extend_route -2157.7261 {y} -231.4555 {z} 35.5234
extend_route -2153.749 {y} -236.6368 {z} 35.5234
extend_route -2153.623 {y} -246.5058 {z} 35.5234
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_follow_path_nodes_to_coord -1 {x} -2154.9231 {y} -248.2299 {z} 35.5234 {speed} MoveState.Run {time} -2
close_sequence_task 142@
62@ = create_char PedType.Mission1 {modelId} 46 {x} -2168.3369 {y} -228.406 {z} 35.522
set_char_heading 62@ {heading} 294.489
perform_sequence_task 62@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
flush_route 
extend_route -2157.7261 {y} -231.4555 {z} 35.5234
extend_route -2153.749 {y} -236.6368 {z} 35.5234
extend_route -2153.623 {y} -246.5058 {z} 35.5234
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_follow_path_nodes_to_coord -1 {x} -2156.835 {y} -234.232 {z} 35.5234 {speed} MoveState.Run {time} -2
close_sequence_task 142@
63@ = create_char PedType.Mission1 {modelId} 46 {x} -2168.74 {y} -231.348 {z} 35.5234
set_char_heading 63@ {heading} 278.3553
perform_sequence_task 63@ {sequence} 142@
clear_sequence_task 142@
64@ = create_char PedType.Mission1 {modelId} 46 {x} -2162.417 {y} -227.2437 {z} 35.5143
set_char_heading 64@ {heading} 196.0546
task_stay_in_same_place 64@ {state} True
47@ = 0

:SYN7_9683
set_char_shoot_rate 60@(47@,10i) {rate} 30
set_char_accuracy 60@(47@,10i) {accuracy} 30
set_char_is_target_priority 60@(47@,10i) {state} True
if 
  47@ == 4
goto_if_false @SYN7_9766
set_char_weapon_skill 60@(47@,10i) {skill} WeaponSkill.Pro
give_weapon_to_char 60@(47@,10i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @SYN7_9791

:SYN7_9766
give_weapon_to_char 60@(47@,10i) {weaponType} WeaponType.MicroUzi {ammo} 30000
set_current_char_weapon 60@(47@,10i) {weaponType} WeaponType.MicroUzi

:SYN7_9791
set_char_decision_maker 60@(47@,10i) {handleOrTemplate} 36@
set_char_relationship 60@(47@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 60@(47@,10i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
47@ += 1
  47@ >= 5
goto_if_false @SYN7_9683
gosub @SYN7_16548
delete_char 87@
delete_char 88@
delete_char 89@
delete_char 90@
load_scene_in_direction -2150.4399 {y} -239.1755 {z} 35.5234 {heading} 52.2777
set_fixed_camera_position -2152.8601 {y} -236.6111 {z} 37.0321 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2153.623 {y} -235.9684 {z} 36.9637 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 64@
goto_if_false @SYN7_10011
task_play_anim 64@ {animationName} "POINT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 4000

:SYN7_10011
print_now 'SYN7_37' {time} 4000 {flag} 1
set_wanted_multiplier 0.0
wait 4000
gosub @SYN7_16581
if and
  not is_car_dead 38@
  not is_char_dead $scplayer
goto_if_false @SYN7_10075
task_leave_car $scplayer {vehicle} 38@

:SYN7_10075
remove_blip 71@
display_onscreen_timer_with_string $s7_timer {direction} TimerDirection.Down {text} 'SYN7_18'
75@ = add_blip_for_coord -2162.9641 {y} -225.5678 {z} 35.5156
TIMERA = 0
clear_wanted_level $player1

:SYN7_10128
goto @SYN7_10144

:SYN7_10135
clear_help 
73@ = 1

:SYN7_10144
goto @SYN7_10153

:SYN7_10151
clear_help 

:SYN7_10153
if 
  48@ == 4
goto_if_false @SYN7_12141
if and
  TIMERA > 4000
  78@ == 0
goto_if_false @SYN7_10204
78@ = 1

:SYN7_10204
if 
  $s7_timer == 0
goto_if_false @SYN7_10236
76@ = 1
goto @SYN7_11885

:SYN7_10236
if or
  locate_char_any_means_3d $scplayer {x} -2162.9641 {y} -225.5678 {z} 35.5156 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2186.166 {y} -216.9555 {z} 35.5143 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @SYN7_12141
gosub @SYN7_16618
gosub @SYN7_16548
load_scene -2187.5049 {y} -263.5027 {z} 36.5551
load_scene_in_direction -2157.0591 {y} -262.1108 {z} 35.5156 {heading} 89.9913
remove_blip 75@
41@ = add_blip_for_coord -2127.2 {y} -84.9324 {z} 34.3273
clear_onscreen_timer $s7_timer
set_fixed_camera_position -2168.97 {y} -262.731 {z} 36.3878 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2169.968 {y} -262.7543 {z} 36.453 {switchStyle} SwitchType.JumpCut
gosub @SYN7_16651
if 
  not is_car_dead 38@
goto_if_false @SYN7_10489
explode_car_in_cutscene_shake_and_bits 38@ {shake} True {effect} True {sound} True

:SYN7_10489
wait 100
add_explosion -2187.5049 {y} -263.5027 {z} 36.5551 {type} ExplosionType.Grenade
wait 500
add_explosion -2187.1799 {y} -263.8283 {z} 39.8421 {type} ExplosionType.Grenade
wait 500
add_explosion -2187.1799 {y} -263.8283 {z} 42.8421 {type} ExplosionType.Grenade
wait 500
add_explosion -2187.4319 {y} -259.6525 {z} 42.0391 {type} ExplosionType.Grenade
add_explosion -2188.3989 {y} -266.6203 {z} 42.6058 {type} ExplosionType.Grenade
wait 500
add_explosion -2185.595 {y} -265.3064 {z} 47.5696 {type} ExplosionType.Grenade
wait 500
add_explosion -2184.7739 {y} -262.4794 {z} 37.4383 {type} ExplosionType.Grenade
add_explosion -2187.574 {y} -262.5659 {z} 39.7252 {type} ExplosionType.Grenade
wait 500
if 
  locate_char_any_means_3d $scplayer {x} -2163.6001 {y} -225.62 {z} 36.0 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_10840
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_10803
$car = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984
clear_area -2162.7339 {y} -225.3373 {z} 35.4984 {radius} 10.0 {clearParticles} True
delete_car $car
goto @SYN7_10823

:SYN7_10803
set_char_coordinates $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984

:SYN7_10823
set_char_heading $scplayer {heading} 0.0
77@ = 0

:SYN7_10840
if 
  locate_char_any_means_3d $scplayer {x} -2186.166 {y} -216.9555 {z} 35.5143 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_11025
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN7_10968
$car = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984
clear_area -2162.7339 {y} -225.3373 {z} 35.4984 {radius} 10.0 {clearParticles} True
delete_car $car
goto @SYN7_10988

:SYN7_10968
set_char_coordinates $scplayer {x} -2162.7339 {y} -225.3373 {z} 35.4984

:SYN7_10988
set_char_coordinates $scplayer {x} -2181.3311 {y} -217.6694 {z} 35.5078
set_char_heading $scplayer {heading} 286.3482
77@ = 1

:SYN7_11025
gosub @SYN7_16618
remove_ipl "CRACK"
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #CRACKFACT_SFS {state} False
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #CF_EXT_DEM_SFS {state} True
set_visibility_of_closest_object_of_type -2166.8601 {y} -236.5 {z} 40.86 {radius} 40.0 {modelId} #LODCRACKFACT_SFS {state} False
set_visibility_of_closest_object_of_type -2185.49 {y} -215.55 {z} 34.31 {radius} 40.0 {modelId} #LODEXT_DEM_SFS {state} True
wait 1000
if 
  77@ == 0
goto_if_false @SYN7_11214
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_11214
set_char_coordinates $scplayer {x} -2160.729 {y} -220.985 {z} 34.3203
set_char_heading $scplayer {heading} 336.7796

:SYN7_11214
if 
  77@ == 1
goto_if_false @SYN7_11278
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_11278
set_char_coordinates $scplayer {x} -2175.5129 {y} -214.8866 {z} 34.3203
set_char_heading $scplayer {heading} 298.3929

:SYN7_11278
gosub @SYN7_14654
load_scene_in_direction -2162.283 {y} -220.5315 {z} 34.3203 {heading} 324.4546
gosub @SYN7_16581
95@ = create_char PedType.Mission1 {modelId} 144 {x} -2132.0439 {y} -168.6656 {z} 34.3273
set_char_heading 95@ {heading} 168.3635
task_go_straight_to_coord 95@ {x} -2141.7661 {y} -206.9254 {z} 34.3203 {speed} MoveState.Run {time} -1
96@ = create_char PedType.Mission1 {modelId} 48 {x} -2136.8779 {y} -167.5268 {z} 34.3203
set_char_heading 96@ {heading} 172.0629
task_go_straight_to_coord 96@ {x} -2141.7661 {y} -206.9254 {z} 34.3203 {speed} MoveState.Run {time} -1
105@ = create_car 412 {x} -2124.606 {y} -87.9687 {z} 34.3203
set_can_burst_car_tyres 105@ {state} False
set_car_cruise_speed 105@ {maxSpeed} 40.0
set_car_heading 105@ {heading} 231.2455
97@ = create_char_inside_car 105@ {pedType} PedType.Mission1 {modelId} 144
98@ = create_char_as_passenger 105@ {pedType} PedType.Mission1 {modelId} 144 {seat} SeatId.BikeRear
99@ = create_char PedType.Mission1 {modelId} 144 {x} -2103.291 {y} -133.9342 {z} 34.3273
set_char_heading 99@ {heading} 170.6763
100@ = create_char PedType.Mission1 {modelId} 48 {x} -2107.3701 {y} -146.9669 {z} 34.3273
set_char_heading 100@ {heading} 174.6227
101@ = create_char PedType.Mission1 {modelId} 48 {x} -2145.116 {y} -181.3902 {z} 37.6913
set_char_heading 101@ {heading} 176.688
task_stay_in_same_place 101@ {state} True
task_toggle_duck 101@ {state} True
102@ = create_char PedType.Mission1 {modelId} 48 {x} -2111.8081 {y} -159.8649 {z} 34.3273
set_char_heading 102@ {heading} 138.7297
task_stay_in_same_place 102@ {state} True
47@ = 0

:SYN7_11674
give_weapon_to_char 95@(47@,10i) {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_accuracy 95@(47@,10i) {accuracy} 30
set_char_shoot_rate 95@(47@,10i) {rate} 30
set_char_decision_maker 95@(47@,10i) {handleOrTemplate} 36@
set_char_relationship 95@(47@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 95@(47@,10i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_sense_range 95@(47@,10i) {range} 70.0
set_char_is_target_priority 95@(47@,10i) {state} True
47@ += 1
  47@ >= 8
goto_if_false @SYN7_11674
request_car_recording 485

:SYN7_11799
if 
  not has_car_recording_been_loaded 485
goto_if_false @SYN7_11826
wait 0
goto @SYN7_11799

:SYN7_11826
if 
  not is_car_dead 105@
goto_if_false @SYN7_11855
start_playback_recorded_car 105@ {path} 485
pause_playback_recorded_car 105@

:SYN7_11855
gosub @SYN7_16651
if and
  76@ == 1
  not is_char_dead $scplayer
goto_if_false @SYN7_12118

:SYN7_11885
$x, $y, $z = get_char_coordinates $scplayer
47@ = 0

:SYN7_11906
task_die $scplayer
$x, $y, $z = get_char_coordinates $scplayer
$s7_rnd = generate_random_float_in_range -3.0 {max} 3.0
add_float_var_to_float_var $x += $s7_rnd
add_float_var_to_float_var $y += $s7_rnd
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade
$x, $y, $z = get_char_coordinates $scplayer
$s7_rnd = generate_random_float_in_range -3.0 {max} 3.0
add_float_var_to_float_var $x += $s7_rnd
add_float_var_to_float_var $y += $s7_rnd
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade
$x, $y, $z = get_char_coordinates $scplayer
$s7_rnd = generate_random_float_in_range -3.0 {max} 3.0
add_float_var_to_float_var $x += $s7_rnd
add_float_var_to_float_var $y += $s7_rnd
add_explosion $x {y} $y {z} $z {type} ExplosionType.Grenade
wait 500
47@ += 1
  47@ >= 4
goto_if_false @SYN7_11906
goto @SYN7_15914

:SYN7_12118
print_now 'SYN7_23' {time} 4000 {flag} 1
48@ = 5

:SYN7_12141
if 
  48@ == 5
goto_if_false @SYN7_13767
if 
  124@ == 0
goto_if_false @SYN7_12332
if or
  locate_char_any_means_3d $scplayer {x} -2118.54 {y} -169.3188 {z} 34.3273 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2118.54 {y} -169.3188 {z} 34.3273 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @SYN7_12332
if 
  not is_char_dead 102@
goto_if_false @SYN7_12325
126@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_toggle_duck -1 {state} True
task_weapon_roll -1 {direction} False
task_toggle_duck -1 {state} True
close_sequence_task 126@
perform_sequence_task 102@ {sequence} 126@
clear_sequence_task 126@

:SYN7_12325
124@ = 1

:SYN7_12332
if 
  123@ == 1
goto_if_false @SYN7_12437
if 
  not is_car_dead 105@
goto_if_false @SYN7_12437
if 
  not is_playback_going_on_for_car 105@
goto_if_false @SYN7_12437
if 
  not is_char_dead 97@
goto_if_false @SYN7_12406
task_leave_car 97@ {vehicle} 105@

:SYN7_12406
if 
  not is_char_dead 98@
goto_if_false @SYN7_12430
task_leave_car 98@ {vehicle} 105@

:SYN7_12430
123@ = 2

:SYN7_12437
if and
  is_char_in_area_3d $scplayer {leftBottomX} -2097.7229 {leftBottomY} -109.9725 {leftBottomZ} 30.0 {rightTopX} -2155.9919 {rightTopY} -122.742 {rightTopZ} 40.0 {drawSphere} False
  123@ == 0
goto_if_false @SYN7_12541
if and
  not is_car_dead 105@
  is_playback_going_on_for_car 105@
goto_if_false @SYN7_12534
if 
  not is_car_dead 105@
goto_if_false @SYN7_12534
unpause_playback_recorded_car 105@

:SYN7_12534
123@ = 1

:SYN7_12541
if and
  $s7_in_compound == 0
  123@ == 0
goto_if_false @SYN7_12629
if and
  not is_car_dead 105@
  is_playback_going_on_for_car 105@
goto_if_false @SYN7_12608
if 
  not is_car_dead 105@
goto_if_false @SYN7_12608
unpause_playback_recorded_car 105@

:SYN7_12608
TIMERA = 0
79@ = 1
123@ = 1

:SYN7_12629
if and
  locate_char_any_means_3d $scplayer {x} -2127.3701 {y} -85.497 {z} 35.5234 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
  79@ == 0
goto_if_false @SYN7_12714
TIMERA = 0
79@ = 1
print_now 'SYN7_13' {time} 3000 {flag} 1

:SYN7_12714
if and
  TIMERA > 4500
  79@ == 1
goto_if_false @SYN7_13122
if 
  not is_car_dead 105@
goto_if_false @SYN7_12789
if 
  125@ == 0
goto_if_false @SYN7_12789
107@ = add_blip_for_car 105@
set_blip_as_friendly 107@ {state} True

:SYN7_12789
81@ = add_blip_for_coord -2145.9629 {y} -117.1968 {z} 38.1988
change_blip_display 81@ {display} BlipDisplay.Neither
remove_blip 41@
print_now 'SYN7_38' {time} 5000 {flag} 1
79@ = 2
108@ = create_char PedType.Mission1 {modelId} 48 {x} -2107.3701 {y} -146.9669 {z} 34.3273
set_char_heading 108@ {heading} 174.6227
109@ = create_char PedType.Mission1 {modelId} 144 {x} -2107.3701 {y} -146.9669 {z} 34.3273
set_char_heading 109@ {heading} 174.6227
110@ = create_char PedType.Mission1 {modelId} 48 {x} -2136.1089 {y} -180.0674 {z} 34.3203
set_char_heading 110@ {heading} 297.2213
111@ = create_char PedType.Mission1 {modelId} 144 {x} -2140.6001 {y} -169.5873 {z} 34.3203
set_char_heading 111@ {heading} 258.2443
112@ = create_char PedType.Mission1 {modelId} 144 {x} -2143.4629 {y} -147.7724 {z} 35.3922
set_char_heading 112@ {heading} 209.4012
47@ = 0

:SYN7_13024
give_weapon_to_char 108@(47@,5i) {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_decision_maker 108@(47@,5i) {handleOrTemplate} 36@
set_char_relationship 108@(47@,5i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 108@(47@,5i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_sense_range 108@(47@,5i) {range} 70.0
set_char_is_target_priority 108@(47@,5i) {state} True
47@ += 1
  47@ >= 5
goto_if_false @SYN7_13024

:SYN7_13122
if and
  TIMERA > 10000
  79@ == 2
goto_if_false @SYN7_13155
79@ = 3

:SYN7_13155
if 
  is_car_dead 105@
goto_if_false @SYN7_13199
if 
  does_blip_exist 107@
goto_if_false @SYN7_13192
remove_blip 107@

:SYN7_13192
change_blip_display 81@ {display} BlipDisplay.Both

:SYN7_13199
if 
  not is_car_dead 105@
goto_if_false @SYN7_13308
if and
  not is_char_in_car $scplayer {vehicle} 105@
  79@ > 1
goto_if_false @SYN7_13278
change_blip_display 107@ {display} BlipDisplay.Both
if 
  does_blip_exist 81@
goto_if_false @SYN7_13271
change_blip_display 81@ {display} BlipDisplay.Neither

:SYN7_13271
goto @SYN7_13308

:SYN7_13278
change_blip_display 107@ {display} BlipDisplay.Neither
if 
  does_blip_exist 81@
goto_if_false @SYN7_13308
change_blip_display 81@ {display} BlipDisplay.Both

:SYN7_13308
if 
  $s7_in_compound == 0
goto_if_false @SYN7_13432
if 
  does_blip_exist 41@
goto_if_false @SYN7_13347
remove_blip 41@

:SYN7_13347
if 
  does_blip_exist 81@
goto_if_false @SYN7_13368
remove_blip 81@

:SYN7_13368
if 
  does_blip_exist 81@
goto_if_false @SYN7_13389
remove_blip 107@

:SYN7_13389
48@ = 6
82@ = add_blip_for_coord -2029.603 {y} 156.7249 {z} 27.8429
print_now 'SYN7_39' {time} 6000 {flag} 1

:SYN7_13432
if or
  locate_char_any_means_3d $scplayer {x} -2149.364 {y} -111.5658 {z} 40.9064 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} -2143.429 {y} -111.1119 {z} 41.0391 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @SYN7_13767
if and
  $s7_velocity > 10.0
  is_char_in_any_car $scplayer
goto_if_false @SYN7_13767
$car = store_car_char_is_in $scplayer
set_car_forward_speed $car {forwardSpeed} 25.0
switch_widescreen True
clear_help 
clear_prints 
set_time_scale 0.4
set_char_heading $scplayer {heading} 0.6201
set_fixed_camera_position -2133.0649 {y} -103.294 {z} 37.6357 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
wait 1700
set_time_scale 1.0
switch_widescreen False
restore_camera_jumpcut 
if 
  locate_char_any_means_3d $scplayer {x} -2146.676 {y} -90.7008 {z} 40.5966 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @SYN7_13767
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_13739
set_char_coordinates $scplayer {x} -2152.4231 {y} -75.3105 {z} 34.3203
set_char_heading $scplayer {heading} 357.8863

:SYN7_13739
set_camera_behind_player 
if 
  not is_car_dead $car
goto_if_false @SYN7_13767
set_car_forward_speed $car {forwardSpeed} 0.0

:SYN7_13767
if 
  does_object_exist 45@
goto_if_false @SYN7_13862
$x, $y, $z = get_object_coordinates 45@
if and
  $x > -2127.0
  79@ == 1
goto_if_false @SYN7_13862
  slide_object 45@ {posX} -2127.0 {posY} -80.8 {posZ} 34.3281 {speedX} 0.2 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False

:SYN7_13862
if 
  48@ == 6
goto_if_false @SYN7_13961
if 
  does_blip_exist 107@
goto_if_false @SYN7_13901
remove_blip 107@

:SYN7_13901
if 
  locate_char_any_means_3d $scplayer {x} -2029.603 {y} 156.7249 {z} 27.8429 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @SYN7_13961
remove_blip 82@
goto @SYN7_14730

:SYN7_13961
if and
  not is_car_dead 38@
  48@ <> 0
  48@ <= 3
goto_if_false @SYN7_14246
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @SYN7_14139
print_now 'SYN7_32' {time} 100 {flag} 1
if 
  49@ == 0
goto_if_false @SYN7_14132
change_blip_display 39@ {display} BlipDisplay.Both
if 
  48@ == 1
goto_if_false @SYN7_14075
change_blip_display 41@ {display} BlipDisplay.Neither

:SYN7_14075
if 
  48@ == 2
goto_if_false @SYN7_14100
change_blip_display 70@ {display} BlipDisplay.Neither

:SYN7_14100
if 
  48@ == 3
goto_if_false @SYN7_14125
change_blip_display 71@ {display} BlipDisplay.Neither

:SYN7_14125
49@ = 1

:SYN7_14132
goto @SYN7_14246

:SYN7_14139
if 
  49@ == 1
goto_if_false @SYN7_14246
change_blip_display 39@ {display} BlipDisplay.Neither
if 
  48@ == 1
goto_if_false @SYN7_14189
change_blip_display 41@ {display} BlipDisplay.Both

:SYN7_14189
if 
  48@ == 2
goto_if_false @SYN7_14214
change_blip_display 70@ {display} BlipDisplay.Both

:SYN7_14214
if 
  48@ == 3
goto_if_false @SYN7_14239
change_blip_display 71@ {display} BlipDisplay.Both

:SYN7_14239
49@ = 0

:SYN7_14246
if and
  is_car_dead 38@
  4 > 48@
goto_if_false @SYN7_14292
print_now 'SYN7_36' {time} 4000 {flag} 1
goto @SYN7_15914

:SYN7_14292
if and
  is_car_dead 105@
  48@ >= 5
  79@ >= 2
goto_if_false @SYN7_14640
if 
  48@ <> 6
goto_if_false @SYN7_14356
print_now 'SYN7_53' {time} 4000 {flag} 1

:SYN7_14356
if 
  does_blip_exist 107@
goto_if_false @SYN7_14377
remove_blip 107@

:SYN7_14377
if 
  $s7_in_compound == 1
goto_if_false @SYN7_14640
mark_car_as_no_longer_needed 105@
125@ = 1
if 
  not locate_char_any_means_3d $scplayer {x} -2116.2639 {y} -200.0631 {z} 34.3273 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @SYN7_14551
clear_area -2116.2639 {y} -200.0631 {z} 34.3273 {radius} 10.0 {clearParticles} True
105@ = create_car 412 {x} -2116.2639 {y} -200.0631 {z} 34.3273
set_can_burst_car_tyres 105@ {state} False
set_car_cruise_speed 105@ {maxSpeed} 40.0
set_car_heading 105@ {heading} 352.5713
107@ = add_blip_for_car 105@
set_blip_as_friendly 107@ {state} True
goto @SYN7_14640

:SYN7_14551
clear_area -2116.2639 {y} -200.0631 {z} 34.3273 {radius} 10.0 {clearParticles} True
105@ = create_car 412 {x} -2124.606 {y} -87.9687 {z} 34.3203
set_can_burst_car_tyres 105@ {state} False
set_car_cruise_speed 105@ {maxSpeed} 40.0
set_car_heading 105@ {heading} 231.2455
107@ = add_blip_for_car 105@
set_blip_as_friendly 107@ {state} True

:SYN7_14640
goto @SYN7_2008

:SYN7_14647
goto @SYN7_15914

:SYN7_14654
47@ = 0

:SYN7_14661
delete_char 86@(47@,8i)
47@ += 1
  47@ >= 5
goto_if_false @SYN7_14661
47@ = 0

:SYN7_14698
delete_char 60@(47@,10i)
47@ += 1
  47@ >= 5
goto_if_false @SYN7_14698
return 

:SYN7_14730
remove_blip $garage_contact_blip
remove_ipl "BARRIERS2"
print_with_number_big 'M_PASSS' {num} 25000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 25000
award_player_mission_respect 60
clear_wanted_level $player1
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'SYND_7'
$flag_synd_mission_counter += 1
set_int_stat StatId.CitiesPassed {value} 2
set_int_stat StatId.PassedSyndicateAndWoozie {value} 1
switch_roads_on -2696.4641 {leftBottomY} 1239.866 {leftBottomZ} 40.7599 {rightTopX} -2665.3589 {rightTopY} 2190.96 {rightTopZ} 70.8125
switch_roads_on -2740.6941 {leftBottomY} 2233.6179 {leftBottomZ} 40.8431 {rightTopX} -2720.9099 {rightTopY} 2338.2241 {rightTopZ} 80.4822
switch_roads_on -2695.584 {leftBottomY} 1237.981 {leftBottomZ} 40.7328 {rightTopX} -2664.417 {rightTopY} 1454.767 {rightTopZ} 60.8126
switch_roads_on -995.0013 {leftBottomY} -416.2032 {leftBottomZ} 30.4207 {rightTopX} -940.5399 {rightTopY} -251.8564 {rightTopZ} 40.6762
switch_roads_on -205.8387 {leftBottomY} 250.7443 {leftBottomZ} 7.2472 {rightTopX} -131.0039 {rightTopY} 481.8496 {rightTopZ} 15.9152
switch_roads_on -100.7515 {leftBottomY} -927.8298 {leftBottomZ} 18.0 {rightTopX} -68.3752 {rightTopY} -891.9871 {rightTopZ} 14.0
switch_roads_on 609.7595 {leftBottomY} 327.3437 {leftBottomZ} 15.8783 {rightTopX} 429.8884 {rightTopY} 616.0168 {rightTopZ} 20.289
switch_roads_on 317.1688 {leftBottomY} 707.7672 {leftBottomZ} 7.0 {rightTopX} 437.5726 {rightTopY} 709.0657 {rightTopZ} 20.5578
switch_roads_on 391.1194 {leftBottomY} 640.015 {leftBottomZ} 7.0 {rightTopX} 402.2627 {rightTopY} 664.798 {rightTopZ} 18.5098
switch_roads_on 289.2904 {leftBottomY} 636.3991 {leftBottomZ} 7.8675 {rightTopX} 409.4943 {rightTopY} 702.3849 {rightTopZ} 20.0345
switch_roads_on 300.3153 {leftBottomY} 718.7909 {leftBottomZ} 7.7846 {rightTopX} 316.7906 {rightTopY} 781.0926 {rightTopZ} 14.0795
switch_roads_on 254.9982 {leftBottomY} 837.029 {leftBottomZ} 10.1731 {rightTopX} 270.7453 {rightTopY} 929.2404 {rightTopZ} 30.2553
switch_roads_on 210.7811 {leftBottomY} 939.2068 {leftBottomZ} 10.9062 {rightTopX} 249.4799 {rightTopY} 959.1111 {rightTopZ} 30.2141
switch_roads_on 230.4545 {leftBottomY} 946.0961 {leftBottomZ} 20.6674 {rightTopX} 255.9772 {rightTopY} 969.2755 {rightTopZ} 30.4776
switch_roads_on 249.4279 {leftBottomY} 899.7975 {leftBottomZ} 10.5871 {rightTopX} 268.6826 {rightTopY} 933.5995 {rightTopZ} 30.3975
switch_roads_on 312.1081 {leftBottomY} 694.1089 {leftBottomZ} 6.0 {rightTopX} 324.0811 {rightTopY} 733.0005 {rightTopZ} 10.0
switch_roads_on 324.4526 {leftBottomY} 804.9198 {leftBottomZ} 9.6186 {rightTopX} 332.8747 {rightTopY} 814.356 {rightTopZ} 14.3925
switch_roads_on 1690.819 {leftBottomY} 376.5103 {leftBottomZ} 28.1103 {rightTopX} 1730.223 {rightTopY} 445.2955 {rightTopZ} 30.8414
switch_roads_on 1643.536 {leftBottomY} 227.3723 {leftBottomZ} 27.4457 {rightTopX} 1673.062 {rightTopY} 295.5788 {rightTopZ} 30.0815
switch_roads_on 1673.765 {leftBottomY} 388.1013 {leftBottomZ} 40.2331 {rightTopX} 1815.8621 {rightTopY} 804.9291 {rightTopZ} 10.0
switch_roads_on 1705.156 {leftBottomY} 308.3448 {leftBottomZ} 20.0 {rightTopX} 1710.948 {rightTopY} 316.4094 {rightTopZ} 23.5612
switch_roads_on -12.7067 {leftBottomY} -1522.455 {leftBottomZ} 1.0 {rightTopX} 80.8463 {rightTopY} -1517.111 {rightTopZ} 5.0
switch_roads_on -16.3392 {leftBottomY} -1532.882 {leftBottomZ} 0.0394 {rightTopX} 69.3401 {rightTopY} -1523.771 {rightTopZ} 5.922
switch_roads_on 618.7253 {leftBottomY} -1189.606 {leftBottomZ} 18.0 {rightTopX} 623.5441 {rightTopY} -1161.981 {rightTopZ} 22.0
switch_roads_on -33.4208 {leftBottomY} -1341.84 {leftBottomZ} 9.0 {rightTopX} 35.3764 {rightTopY} -1303.948 {rightTopZ} 13.0
switch_roads_on -41.2393 {leftBottomY} -1385.87 {leftBottomZ} 8.0 {rightTopX} -3.5883 {rightTopY} -1368.856 {rightTopZ} 10.5
switch_roads_on -1690.705 {leftBottomY} 539.6102 {leftBottomZ} 30.3278 {rightTopX} -1100.567 {rightTopY} 1140.569 {rightTopZ} 50.735
switch_roads_on -1799.541 {leftBottomY} 379.7155 {leftBottomZ} 16.0 {rightTopX} -1780.199 {rightTopY} 392.2779 {rightTopZ} 18.0
switch_roads_on -1092.429 {leftBottomY} 1286.505 {leftBottomZ} 30.0 {rightTopX} -1077.038 {rightTopY} 1319.495 {rightTopZ} 35.0
switch_roads_on -1860.1331 {leftBottomY} 314.7891 {leftBottomZ} 38.0 {rightTopX} -1638.563 {rightTopY} 557.4354 {rightTopZ} 40.0
switch_roads_on -1737.333 {leftBottomY} 455.9431 {leftBottomZ} 30.3573 {rightTopX} -1710.363 {rightTopY} 500.6261 {rightTopZ} 40.4891
switch_roads_on -1689.229 {leftBottomY} 513.0995 {leftBottomZ} 30.2597 {rightTopX} -1679.124 {rightTopY} 524.8383 {rightTopZ} 40.25
switch_roads_on -1742.906 {leftBottomY} 500.7302 {leftBottomZ} 30.4679 {rightTopX} -1650.312 {rightTopY} 551.8201 {rightTopZ} 40.7455
switch_roads_off -1761.95 {leftBottomY} 507.8931 {leftBottomZ} 35.0533 {rightTopX} -1751.361 {rightTopY} 531.5917 {rightTopZ} 41.3335
return 

:SYN7_15914
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_15991
if 
  has_char_been_arrested $scplayer
goto_if_false @SYN7_15984
override_next_restart -1605.792 {y} 716.8598 {z} 11.0241 {heading} 355.2978

:SYN7_15984
goto @SYN7_16013

:SYN7_15991
override_next_restart -2670.2849 {y} 616.4364 {z} 13.4531 {heading} 183.1042

:SYN7_16013
return 

:SYN7_16015
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16036
stop_char_facial_talk $scplayer

:SYN7_16036
remove_car_recording 483
remove_car_recording 485
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_onscreen_timer $s7_timer
switch_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2175.8169 {leftBottomY} -55.8818 {leftBottomZ} 27.0 {rightTopX} -2059.2051 {rightTopY} -99.4399 {rightTopZ} 37.0
switch_ped_roads_back_to_original -2107.98 {leftBottomY} -71.8985 {leftBottomZ} 30.0 {rightTopX} -2160.2561 {rightTopY} -89.7108 {rightTopZ} 37.0
if 
  does_blip_exist 40@
goto_if_false @SYN7_16182
remove_blip 40@

:SYN7_16182
if 
  does_blip_exist 39@
goto_if_false @SYN7_16203
remove_blip 39@

:SYN7_16203
if 
  does_blip_exist 41@
goto_if_false @SYN7_16224
remove_blip 41@

:SYN7_16224
if 
  does_blip_exist 70@
goto_if_false @SYN7_16245
remove_blip 70@

:SYN7_16245
if 
  does_blip_exist 71@
goto_if_false @SYN7_16266
remove_blip 71@

:SYN7_16266
if 
  does_blip_exist 75@
goto_if_false @SYN7_16287
remove_blip 75@

:SYN7_16287
if 
  does_blip_exist 81@
goto_if_false @SYN7_16308
remove_blip 81@

:SYN7_16308
if 
  does_blip_exist 107@
goto_if_false @SYN7_16329
remove_blip 107@

:SYN7_16329
47@ = 0

:SYN7_16336
if 
  does_blip_exist 84@(47@,2i)
goto_if_false @SYN7_16365
remove_blip 84@(47@,2i)

:SYN7_16365
47@ += 1
  47@ >= 2
goto_if_false @SYN7_16336
if 
  is_any_pickup_at_coords -2182.6521 {y} -247.3813 {z} 36.4
goto_if_false @SYN7_16419
remove_pickup 121@

:SYN7_16419
$onmission = 0
set_group_separation_range $Players_Group {range} 30.0
$timer_mobile_start = get_game_timer 
remove_all_script_fires 
mark_model_as_no_longer_needed 549
mark_model_as_no_longer_needed 50
remove_animation "CAR"
remove_animation "ON_LOOKERS"
remove_animation "INT_HOUSE"
mark_model_as_no_longer_needed 144
mark_model_as_no_longer_needed 48
mark_model_as_no_longer_needed 46
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 412
mark_model_as_no_longer_needed #DYN_RAMP
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 145
mark_model_as_no_longer_needed 146
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed #HEALTH
mark_model_as_no_longer_needed 346
mission_has_finished 
return 

:SYN7_16548
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16579
clear_prints 
clear_help 
switch_widescreen True
set_player_control $player1 {state} False

:SYN7_16579
return 

:SYN7_16581
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16616
clear_prints 
clear_help 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 

:SYN7_16616
return 

:SYN7_16618
do_fade 500 {direction} Fade.Out

:SYN7_16625
if 
  get_fading_status 
goto_if_false @SYN7_16649
wait 0
goto @SYN7_16625

:SYN7_16649
return 

:SYN7_16651
do_fade 500 {direction} Fade.In

:SYN7_16658
if 
  get_fading_status 
goto_if_false @SYN7_16682
wait 0
goto @SYN7_16658

:SYN7_16682
return 

:SYN7_16684
if 
is_ps2_keyboard_key_just_pressed 89
goto_if_false @SYN7_16775
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16752
set_char_coordinates $scplayer {x} -1705.882 {y} 1028.967 {z} 44.1953
set_char_heading $scplayer {heading} 299.134
113@ = 8

:SYN7_16752
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16775
task_use_mobile_phone $scplayer {start} False

:SYN7_16775
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @SYN7_16836
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16836
set_char_coordinates $scplayer {x} -2064.0569 {y} -68.6422 {z} 34.1563
set_char_heading $scplayer {heading} 94.0454

:SYN7_16836
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @SYN7_16872
remove_ipl "CRACK"
request_ipl "FUKDCRAK"

:SYN7_16872
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @SYN7_16933
if 
  not is_char_dead $scplayer
goto_if_false @SYN7_16933
set_char_coordinates $scplayer {x} -2064.0569 {y} -68.6422 {z} 34.1563
set_char_heading $scplayer {heading} 94.0454

:SYN7_16933
if 
is_ps2_keyboard_key_just_pressed 76
goto_if_false @SYN7_16955
48@ = 5

:SYN7_16955
return 

:SYN7_16957
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 118@
117@ = 0
return 

:SYN7_16977
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  117@ == 0
goto_if_false @SYN7_17020
play_mission_audio MissionAudioSlot.Slot1
print_now 127@s {time} 10000 {flag} 1
117@ = 1

:SYN7_17020
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  117@ == 1
goto_if_false @SYN7_17058
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 127@s
117@ = 2

:SYN7_17058
return 

//-------------Mission 64---------------
// Originally: Pier 69

:SYN5
script_name 'SYN5'
gosub @SYN5_47
if 
  has_deatharrest_been_executed 
goto_if_false @SYN5_38
gosub @SYN5_23151

:SYN5_38
gosub @SYN5_23260
terminate_this_script 

:SYN5_47
$onmission = 1
register_mission_given 
load_mission_text 'SYN5'
if 
  $onmission == 0
goto_if_false @SYN5_693
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
47@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
48@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
49@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
50@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
$wuzi = create_char PedType.Mission1 {modelId} 120 {x} -1674.5 {y} 1337.0 {z} 6.2
36@ = create_char PedType.Mission1 {modelId} 108@(107@,7i) {x} -1675.7 {y} 1336.1 {z} 6.2
37@ = create_char PedType.Mission1 {modelId} 108@(107@,7i) {x} -1675.7 {y} 1336.1 {z} 6.2
38@ = create_char PedType.Mission1 {modelId} 108@(107@,7i) {x} -1675.7 {y} 1336.1 {z} 6.2
35@ = create_char PedType.Mission2 {modelId} 293 {x} -1716.0 {y} 1349.8 {z} 6.2
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1716.8 {y} 1351.6 {z} 6.2
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1717.5 {y} 1350.7 {z} 6.2
55@ = create_car 600 {x} -1774.2 {y} 1376.8 {z} 5.7
$ryder = create_char_inside_car 55@ {pedType} PedType.Mission2 {modelId} 291
39@ = create_char_as_passenger 55@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} -1
40@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1774.2 {y} 1376.8 {z} 5.7
56@ = create_car 566 {x} -1784.2 {y} 1379.8 {z} 5.7
41@ = create_char_inside_car 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
42@ = create_char_as_passenger 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
57@ = create_car 566 {x} -1795.0 {y} 1383.6 {z} 5.7
43@ = create_char_inside_car 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
44@ = create_char_as_passenger 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
58@ = create_car 487 {x} -1583.3 {y} 1420.2 {z} 25.7
34@ = create_char_as_passenger 58@ {pedType} PedType.Mission2 {modelId} 292 {seat} SeatId.BikeRear

:SYN5_693
clear_prints 
clear_this_print_big_now TextStyle.Middle
wait 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
133@ = 0
91@ = 0
92@ = 0
93@ = 3
94@ = 0
95@ = 0
96@ = 0
98@ = 0
99@ = 6
97@ = 0
106@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
107@ = 0
106@ = 0
set_lvar_int_to_constant 108@ = 173
set_lvar_int_to_constant 109@ = 174
set_lvar_int_to_constant 111@ = 102
set_lvar_int_to_constant 112@ = 103
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0.0
192@ = 0.0
193@ = 0.0
127@ = 0
128@ = 0
129@ = 0
130@ = 80
set_fading_colour 0 {g} 0 {b} 0
wait 0
force_weather WeatherType.SunnySf
do_fade 500 {direction} Fade.Out

:SYN5_1136
if 
  get_fading_status 
goto_if_false @SYN5_1160
wait 0
goto @SYN5_1136

:SYN5_1160
make_player_gang_disappear 
load_special_character 1 {modelName} 'CESAR'
request_model 358
request_model 429
request_model #SNIPER_ANIM
request_animation "MISC"
request_model 173
request_model 174
request_model 330
request_model 372
request_model 120
request_model 117
request_model 567
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
196@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
197@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
clear_area -1748.3 {y} 1263.0 {z} 7.0 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
77@ = create_car 567 {x} -1748.3 {y} 1263.0 {z} 7.0
set_car_heading 77@ {heading} 291.3
change_car_colour 77@ {color1} 3 {color2} 3
clear_area -1720.7 {y} 1277.3 {z} 16.9 {radius} 2.0 {clearParticles} True
$cesar = create_char PedType.Mission1 {modelId} 290 {x} -1720.7 {y} 1277.3 {z} 16.9
set_char_heading $cesar {heading} 317.9
give_weapon_to_char $cesar {weaponType} WeaponType.Sniper {ammo} 12
set_char_never_targetted $cesar {state} True
set_char_decision_maker $cesar {handleOrTemplate} 197@
set_char_only_damaged_by_player $cesar {state} True
set_char_stay_in_same_place $cesar {state} True
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
79@ = add_blip_for_char $cesar
set_blip_as_friendly 79@ {state} True
clear_area -1717.5 {y} 1281.6 {z} 6.2 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1717.5 {y} 1281.6 {z} 6.2
set_char_heading $scplayer {heading} 143.8
switch_random_trains False
switch_ped_roads_off -1755.6 {leftBottomY} 1256.6 {leftBottomZ} 0.0 {rightTopX} -1598.2 {rightTopY} 1660.1 {rightTopZ} 50.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -1716.7 {y} 1282.6 {z} 6.5 {radius} 2.0 {clearParticles} True
set_fixed_camera_position -1716.7 {y} 1282.6 {z} 6.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1722.3 {y} 1276.0 {z} 16.9 {switchStyle} SwitchType.JumpCut
enable_ambient_crime False
TIMERA = 0
do_fade 500 {direction} Fade.In

:SYN5_1694
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @SYN5_1720
goto @SYN5_23169

:SYN5_1720
alter_wanted_level $player1 {wantedLevel} 0
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_1759
goto @SYN5_8953

:SYN5_1759
if 
  90@ == 1
goto_if_false @SYN5_1784
goto @SYN5_23151

:SYN5_1784
if 
  87@ == 0
goto_if_false @SYN5_2799
if 
  88@ == 0
goto_if_false @SYN5_1906
if 
  TIMERA > 500
goto_if_false @SYN5_1906
if 
  133@ == 0
goto_if_false @SYN5_1906
132@ = 1
134@ = 0
gosub @SYN5_30472
133@ = 1
89@ = 1
skip_cutscene_start_internal @SYN5_2000
88@ = 1

:SYN5_1906
if 
  88@ == 1
goto_if_false @SYN5_1956
if 
  132@ == 0
goto_if_false @SYN5_1956
TIMERA = 0
88@ = 2

:SYN5_1956
if 
  88@ == 2
goto_if_false @SYN5_2197
if 
  TIMERA > 1000
goto_if_false @SYN5_2197
89@ = 0

:SYN5_2000
skip_cutscene_end 
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_2034
goto @SYN5_8953

:SYN5_2034
if 
  90@ == 1
goto_if_false @SYN5_2059
goto @SYN5_23151

:SYN5_2059
if 
  89@ == 1
goto_if_false @SYN5_2094
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0

:SYN5_2094
clear_area -1721.4 {y} 1276.2 {z} 16.9 {radius} 1.0 {clearParticles} True
set_char_coordinates $cesar {x} -1721.4 {y} 1276.2 {z} 16.9
set_char_heading $cesar {heading} 326.3
print_now 'SYN5_01' {time} 7000 {flag} 1
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
88@ = 3

:SYN5_2197
if 
  88@ == 3
goto_if_false @SYN5_2799
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @SYN5_2733
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
mark_car_as_no_longer_needed 77@
mark_model_as_no_longer_needed 567
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
if 
  is_char_in_any_car $scplayer
goto_if_false @SYN5_2341
set_char_coordinates $scplayer {x} -1728.0 {y} 1257.4 {z} 16.9
set_char_heading $scplayer {heading} 42.2

:SYN5_2341
clear_area -1673.7 {y} 1369.0 {z} 7.0 {radius} 150.0 {clearParticles} True
clear_area -1690.0 {y} 1318.0 {z} 7.0 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 128@ = 429
gosub @SYN5_29241
75@ = create_car 429 {x} -1690.0 {y} 1318.0 {z} 7.0
set_car_heading 75@ {heading} 57.0
freeze_car_position 75@ {state} True
lock_car_doors 75@ {lockStatus} CarLock.Locked
clear_area -1721.4 {y} 1276.2 {z} 16.9 {radius} 5.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1722.8 {y} 1272.5 {z} 16.9
set_char_heading $scplayer {heading} 326.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -1721.4 {y} 1276.2 {z} 16.9
set_char_heading $cesar {heading} 326.3
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Sniper
goto_if_false @SYN5_2575
remove_all_char_weapons $cesar
127@ = 1

:SYN5_2575
89@ = 1
skip_cutscene_start_internal @SYN5_5917
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1720.79 {y} 1275.4 {z} 16.9 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
remove_blip 79@
132@ = 2
134@ = 0
135@ = 2
gosub @SYN5_30472
set_fixed_camera_position -1725.2 {y} 1270.5 {z} 18.87 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1702.2 {y} 1316.1 {z} 22.4 {switchStyle} SwitchType.JumpCut
88@ = 0
87@ = 1

:SYN5_2733
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @SYN5_2799
load_scene -1725.7 {y} 1267.0 {z} 17.3
set_char_coordinates $scplayer {x} -1725.7 {y} 1267.0 {z} 17.3
set_char_heading $scplayer {heading} 308.8
set_camera_behind_player 
restore_camera_jumpcut 

:SYN5_2799
if 
  87@ == 1
goto_if_false @SYN5_7288
if 
  88@ == 0
goto_if_false @SYN5_3023
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_3023
task_turn_char_to_face_char $scplayer {target} $cesar
if 
  127@ == 0
goto_if_false @SYN5_2986
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@
73@ = create_object #SNIPER_ANIM {x} -1714.2 {y} 1266.5 {z} 18.3
goto @SYN5_3016

:SYN5_2986
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@

:SYN5_3016
88@ = 1

:SYN5_3023
if 
  88@ == 1
goto_if_false @SYN5_3243
if 
  132@ == 0
goto_if_false @SYN5_3243
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_3243
191@, 192@, 193@ = get_offset_from_char_in_world_coords $cesar {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
set_char_coordinates $scplayer {x} 191@ {y} 192@ {z} 193@
191@ = get_char_heading $cesar
191@ += 180.0
set_char_heading $scplayer {heading} 191@
132@ = 2
134@ = 2
135@ = 4
gosub @SYN5_30472
set_fixed_camera_position -1722.04 {y} 1273.2 {z} 18.81 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1708.2 {y} 1299.9 {z} 17.76 {switchStyle} SwitchType.JumpCut
88@ = 2

:SYN5_3243
if 
  88@ == 2
goto_if_false @SYN5_3466
if 
  127@ == 0
goto_if_false @SYN5_3441
191@, 192@, 193@ = get_offset_from_char_in_world_coords $cesar {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
remove_all_char_weapons $cesar
set_object_coordinates 73@ {x} 191@ {y} 192@ {z} 193@
191@ = get_char_heading $scplayer
set_object_heading 73@ {heading} 191@
task_play_anim $cesar {animationName} "PASS_RIFLE_PED" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim $scplayer {animationName} "PASS_RIFLE_PLY" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
88@ = 3
goto @SYN5_3466

:SYN5_3441
if 
  132@ == 0
goto_if_false @SYN5_3466
88@ = 3

:SYN5_3466
if 
  88@ == 3
goto_if_false @SYN5_3800
if 
  127@ == 0
goto_if_false @SYN5_3793
if 
  does_object_exist 73@
goto_if_false @SYN5_3786
if 
  is_char_playing_anim $scplayer {animationName} "PASS_RIFLE_PLY"
goto_if_false @SYN5_3702
131@ = get_char_anim_current_time $scplayer {animationName} "PASS_RIFLE_PLY"
if 
  is_object_playing_anim 73@ {animationName} "PASS_RIFLE_O"
goto_if_false @SYN5_3633
set_object_anim_current_time 73@ {animationName} "PASS_RIFLE_O" {time} 131@
goto @SYN5_3702

:SYN5_3633
if 
play_object_anim 73@ {animationName} "PASS_RIFLE_O" {animationFile} "MISC" {frameDelta} 10000.0 {lockF} False {loop} False
goto_if_false @SYN5_3702
set_object_anim_speed 73@ {animationName} "PASS_RIFLE_O" {speed} 0.0

:SYN5_3702
if 
  is_char_playing_anim $scplayer {animationName} "PASS_RIFLE_PLY"
goto_if_false @SYN5_3786
194@ = get_char_anim_current_time $scplayer {animationName} "PASS_RIFLE_PLY"
if 
  194@ == 1.0
goto_if_false @SYN5_3786
88@ = 4

:SYN5_3786
goto @SYN5_3800

:SYN5_3793
88@ = 4

:SYN5_3800
if 
  88@ == 4
goto_if_false @SYN5_3952
if 
  127@ == 0
goto_if_false @SYN5_3841
delete_object 73@

:SYN5_3841
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  24 > 91@
goto_if_false @SYN5_3892
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 24
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper
goto @SYN5_3899

:SYN5_3892
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper

:SYN5_3899
task_aim_gun_at_coord $scplayer {x} -1715.4 {y} 1287.5 {z} 16.5 {time} -1
task_achieve_heading $cesar {heading} 332.1
gosub @SYN5_23800
TIMERA = 0
88@ = 5

:SYN5_3952
if 
  88@ == 5
goto_if_false @SYN5_4245
if 
  TIMERA > 2000
goto_if_false @SYN5_4245
if 
  132@ == 0
goto_if_false @SYN5_4245
if 
  not is_char_dead 45@
goto_if_false @SYN5_4084
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1711.1 {y} 1354.0 {z} 16.0 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 200.0
task_look_about -1 {time} -1
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_4084
if 
  not is_char_dead 46@
goto_if_false @SYN5_4152
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1686.6 {y} 1376.2 {z} 13.8 {speed} MoveState.Walk {time} -1
task_look_about -1 {time} -1
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@

:SYN5_4152
set_fixed_camera_position -1707.1 {y} 1329.7 {z} 18.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1701.8 {y} 1360.3 {z} 9.0 {switchStyle} SwitchType.JumpCut
132@ = 2
134@ = 4
135@ = 5
gosub @SYN5_30472
TIMERA = 0
88@ = 6

:SYN5_4245
if 
  88@ == 6
goto_if_false @SYN5_4490
if 
  TIMERA > 5000
goto_if_false @SYN5_4490
if 
  not is_char_dead 48@
goto_if_false @SYN5_4383
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1682.7 {y} 1343.1 {z} 16.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1672.7 {y} 1342.6 {z} 16.2 {speed} MoveState.Walk {time} -1
set_char_heading 48@ {heading} 4.0
task_look_about -1 {time} -1
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_4383
set_near_clip 0.1
set_fixed_camera_position -1712.2 {y} 1354.2 {z} 18.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1675.7 {y} 1338.4 {z} 9.9 {switchStyle} SwitchType.JumpCut
132@ = 2
134@ = 5
135@ = 6
gosub @SYN5_30472
gosub @SYN5_24432
TIMERA = 0
88@ = 7

:SYN5_4490
if 
  88@ == 7
goto_if_false @SYN5_4675
if 
  TIMERA > 4000
goto_if_false @SYN5_4675
if 
  132@ == 0
goto_if_false @SYN5_4675
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_4568
set_char_visible $wuzi {state} True

:SYN5_4568
set_near_clip 0.9
set_fixed_camera_position -1722.2 {y} 1271.7 {z} 20.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1709.7 {y} 1305.0 {z} 7.4 {switchStyle} SwitchType.JumpCut
task_use_mobile_phone $cesar {start} True
132@ = 2
134@ = 6
135@ = 7
gosub @SYN5_30472
TIMERA = 0
88@ = 8

:SYN5_4675
if 
  88@ == 8
goto_if_false @SYN5_4772
if 
  TIMERA > 2000
goto_if_false @SYN5_4772
if 
  132@ == 0
goto_if_false @SYN5_4772
132@ = 2
134@ = 7
135@ = 9
gosub @SYN5_30472
TIMERA = 0
88@ = 9

:SYN5_4772
if 
  88@ == 9
goto_if_false @SYN5_4879
if 
  132@ == 0
goto_if_false @SYN5_4879
$task_status = get_script_task_status $cesar {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_4844
task_use_mobile_phone $cesar {start} False

:SYN5_4844
132@ = 2
134@ = 9
135@ = 11
gosub @SYN5_30472
88@ = 10

:SYN5_4879
if 
  88@ == 10
goto_if_false @SYN5_5383
if 
  132@ == 0
goto_if_false @SYN5_5383
$task_status = get_script_task_status $cesar {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_4951
task_use_mobile_phone $cesar {start} False

:SYN5_4951
if 
  not is_char_dead 36@
goto_if_false @SYN5_5042
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1683.4 {y} 1326.9 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1673.4 {y} 1335.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_toggle_duck -1 {state} False
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5042
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_5134
195@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -1684.8 {y} 1324.7 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1675.7 {y} 1336.1 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_5134
if 
  not is_char_dead 37@
goto_if_false @SYN5_5226
195@ = open_sequence_task 
task_pause -1 {time} 700
task_go_straight_to_coord -1 {x} -1687.2 {y} 1323.8 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.0 {y} 1334.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5226
if 
  not is_char_dead 38@
goto_if_false @SYN5_5318
195@ = open_sequence_task 
task_pause -1 {time} 800
task_go_straight_to_coord -1 {x} -1689.0 {y} 1325.4 {z} 6.0 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1678.0 {y} 1333.7 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5318
set_fixed_camera_position -1693.9 {y} 1318.9 {z} 7.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1686.1 {y} 1320.8 {z} 6.6 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 11

:SYN5_5383
if 
  88@ == 11
goto_if_false @SYN5_5874
if 
  TIMERA > 3000
goto_if_false @SYN5_5874
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_5512
set_char_coordinates $wuzi {x} -1681.4 {y} 1326.4 {z} 6.2
set_char_heading $wuzi {heading} 300.1
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_5512
if 
  not is_char_dead 36@
goto_if_false @SYN5_5604
set_char_coordinates 36@ {x} -1684.1 {y} 1324.1 {z} 6.2
set_char_heading 36@ {heading} 311.1
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5604
if 
  not is_char_dead 37@
goto_if_false @SYN5_5696
set_char_coordinates 37@ {x} -1683.0 {y} 1321.7 {z} 6.2
set_char_heading 37@ {heading} 333.4
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5696
if 
  not is_char_dead 38@
goto_if_false @SYN5_5788
set_char_coordinates 38@ {x} -1685.4 {y} 1323.6 {z} 6.2
set_char_heading 38@ {heading} 323.8
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1671.6 {y} 1339.0 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_5788
set_fixed_camera_position -1678.4 {y} 1318.3 {z} 7.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1680.6 {y} 1330.0 {z} 8.9 {switchStyle} SwitchType.JumpCut
132@ = 2
134@ = 11
135@ = 14
gosub @SYN5_30472
88@ = 12

:SYN5_5874
if 
  88@ == 12
goto_if_false @SYN5_7288
if 
  132@ == 0
goto_if_false @SYN5_7288
89@ = 0

:SYN5_5917
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0
do_fade 500 {direction} Fade.Out

:SYN5_5943
if 
  get_fading_status 
goto_if_false @SYN5_5967
wait 0
goto @SYN5_5943

:SYN5_5967
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_5999
goto @SYN5_8953

:SYN5_5999
if 
  90@ == 1
goto_if_false @SYN5_6024
goto @SYN5_23151

:SYN5_6024
set_near_clip 0.9
if 
  89@ == 1
goto_if_false @SYN5_6334
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  24 > 91@
goto_if_false @SYN5_6086
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 24

:SYN5_6086
delete_object 73@
remove_all_char_weapons $cesar
clear_prints 
$task_status = get_script_task_status $cesar {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 1
goto_if_false @SYN5_6134
task_use_mobile_phone $cesar {start} False

:SYN5_6134
clear_char_tasks_immediately $cesar
set_char_heading $cesar {heading} 332.1
set_char_heading $scplayer {heading} 332.1
gosub @SYN5_23800
gosub @SYN5_24432
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_6196
set_char_visible $wuzi {state} True

:SYN5_6196
if 
  not is_char_dead 45@
goto_if_false @SYN5_6242
set_char_coordinates 45@ {x} -1711.1 {y} 1354.0 {z} 16.0
set_char_heading 45@ {heading} 200.0

:SYN5_6242
if 
  not is_char_dead 46@
goto_if_false @SYN5_6288
set_char_coordinates 46@ {x} -1686.6 {y} 1376.2 {z} 13.8
set_char_heading 46@ {heading} 200.0

:SYN5_6288
if 
  not is_char_dead 48@
goto_if_false @SYN5_6334
set_char_coordinates 48@ {x} -1672.7 {y} 1342.6 {z} 16.2
set_char_heading 48@ {heading} 4.0

:SYN5_6334
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_6446
clear_char_tasks_immediately $wuzi
set_char_coordinates $wuzi {x} -1681.9 {y} 1335.8 {z} 16.2
set_char_heading $wuzi {heading} 337.1
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1681.7 {y} 1335.5 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 331.0
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_6446
if 
  not is_char_dead 36@
goto_if_false @SYN5_6558
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} -1688.2 {y} 1334.3 {z} 16.2
set_char_heading 36@ {heading} 257.0
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1686.1 {y} 1334.1 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 294.0
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_6558
if 
  not is_char_dead 37@
goto_if_false @SYN5_6670
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} -1685.8 {y} 1336.4 {z} 16.2
set_char_heading 37@ {heading} 320.0
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1683.9 {y} 1338.4 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 316.8
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_6670
if 
  not is_char_dead 38@
goto_if_false @SYN5_6782
clear_char_tasks_immediately 38@
set_char_coordinates 38@ {x} -1688.3 {y} 1335.6 {z} 16.2
set_char_heading 38@ {heading} 312.6
195@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_go_straight_to_coord -1 {x} -1685.2 {y} 1340.5 {z} 16.2 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 310.0
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_6782
if 
  not is_char_dead 45@
goto_if_false @SYN5_6813
80@ = add_blip_for_char 45@
change_blip_scale 80@ {size} 1

:SYN5_6813
if 
  not is_char_dead 46@
goto_if_false @SYN5_6844
81@ = add_blip_for_char 46@
change_blip_scale 81@ {size} 1

:SYN5_6844
if 
  not is_char_dead 47@
goto_if_false @SYN5_6875
82@ = add_blip_for_char 47@
change_blip_scale 82@ {size} 1

:SYN5_6875
if 
  not is_char_dead 48@
goto_if_false @SYN5_6906
83@ = add_blip_for_char 48@
change_blip_scale 83@ {size} 1

:SYN5_6906
if 
  not is_char_dead 49@
goto_if_false @SYN5_6937
84@ = add_blip_for_char 49@
change_blip_scale 84@ {size} 1

:SYN5_6937
if 
  not is_char_dead 50@
goto_if_false @SYN5_6968
85@ = add_blip_for_char 50@
change_blip_scale 85@ {size} 1

:SYN5_6968
if 
  not is_char_dead 49@
goto_if_false @SYN5_7014
set_char_coordinates 49@ {x} -1669.5 {y} 1346.0 {z} 15.2
set_char_heading 49@ {heading} 142.0

:SYN5_7014
if 
  not is_char_dead 46@
goto_if_false @SYN5_7060
set_char_coordinates 46@ {x} -1694.7 {y} 1369.7 {z} 15.9
set_char_heading 46@ {heading} 129.8

:SYN5_7060
set_char_coordinates $scplayer {x} -1720.4 {y} 1275.5 {z} 16.9
set_char_heading $scplayer {heading} 328.4
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper
clear_char_tasks_immediately $scplayer
delete_object 73@
mark_model_as_no_longer_needed #SNIPER_ANIM
remove_animation "MISC"
mark_model_as_no_longer_needed 330
mark_car_as_no_longer_needed 75@
mark_model_as_no_longer_needed 429
shut_all_chars_up False
shut_char_up_for_scripted_speech $cesar {state} True
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'SYN5_02' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In

:SYN5_7193
if 
  get_fading_status 
goto_if_false @SYN5_7217
wait 0
goto @SYN5_7193

:SYN5_7217
if 
  87@ == 10
goto_if_false @SYN5_7242
goto @SYN5_8953

:SYN5_7242
if 
  90@ == 1
goto_if_false @SYN5_7267
goto @SYN5_23151

:SYN5_7267
TIMERA = 0
88@ = 0
87@ = 3

:SYN5_7288
if 
  87@ == 3
goto_if_false @SYN5_8953
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @SYN5_7489
if 
  not is_char_dead 45@
goto_if_false @SYN5_7349
set_char_only_damaged_by_player 45@ {state} False
explode_char_head 45@

:SYN5_7349
if 
  not is_char_dead 46@
goto_if_false @SYN5_7377
set_char_only_damaged_by_player 46@ {state} False
explode_char_head 46@

:SYN5_7377
if 
  not is_char_dead 47@
goto_if_false @SYN5_7405
set_char_only_damaged_by_player 47@ {state} False
explode_char_head 47@

:SYN5_7405
if 
  not is_char_dead 48@
goto_if_false @SYN5_7433
set_char_only_damaged_by_player 48@ {state} False
explode_char_head 48@

:SYN5_7433
if 
  not is_char_dead 49@
goto_if_false @SYN5_7461
set_char_only_damaged_by_player 49@ {state} False
explode_char_head 49@

:SYN5_7461
if 
  not is_char_dead 50@
goto_if_false @SYN5_7489
set_char_only_damaged_by_player 50@ {state} False
explode_char_head 50@

:SYN5_7489
if 
  88@ == 0
goto_if_false @SYN5_8805
if 
  132@ == 0
goto_if_false @SYN5_8229
if 
  92@ == 0
goto_if_false @SYN5_7597
if 
  TIMERA > 7000
goto_if_false @SYN5_7597
132@ = 3
134@ = 1
135@ = 2
gosub @SYN5_30472
92@ = 1

:SYN5_7597
if 
  92@ == 1
goto_if_false @SYN5_7668
if 
  3 > 93@
goto_if_false @SYN5_7668
132@ = 3
134@ = 3
135@ = 4
gosub @SYN5_30472
92@ = 2

:SYN5_7668
if 
  92@ == 2
goto_if_false @SYN5_7739
if 
  2 > 93@
goto_if_false @SYN5_7739
132@ = 3
134@ = 4
135@ = 5
gosub @SYN5_30472
92@ = 3

:SYN5_7739
if 
  132@ == 0
goto_if_false @SYN5_7810
if 
  92@ == 3
goto_if_false @SYN5_7810
132@ = 3
134@ = 2
135@ = 3
gosub @SYN5_30472
92@ = 4

:SYN5_7810
if 
  92@ == 4
goto_if_false @SYN5_7881
if 
  1 > 93@
goto_if_false @SYN5_7881
132@ = 3
134@ = 5
135@ = 6
gosub @SYN5_30472
92@ = 5

:SYN5_7881
if 
  98@ == 0
goto_if_false @SYN5_7906
98@ = 3

:SYN5_7906
if 
  98@ == 3
goto_if_false @SYN5_8017
if 
  3 > 99@
goto_if_false @SYN5_8017
if or
  not is_char_dead 48@
  not is_char_dead 49@
  not is_char_dead 50@
goto_if_false @SYN5_8010
132@ = 4
134@ = 3
135@ = 4
gosub @SYN5_30472
98@ = 4
goto @SYN5_8017

:SYN5_8010
98@ = 5

:SYN5_8017
if 
  132@ == 0
goto_if_false @SYN5_8114
if 
  98@ == 4
goto_if_false @SYN5_8114
if and
  is_char_dead 48@
  is_char_dead 49@
  is_char_dead 50@
goto_if_false @SYN5_8114
132@ = 4
134@ = 4
135@ = 5
gosub @SYN5_30472
98@ = 6

:SYN5_8114
if 
  132@ == 0
goto_if_false @SYN5_8229
if 
  98@ == 5
goto_if_false @SYN5_8229
if 
  3 > 99@
goto_if_false @SYN5_8229
if or
  not is_char_dead 45@
  not is_char_dead 46@
  not is_char_dead 47@
goto_if_false @SYN5_8229
132@ = 4
134@ = 4
135@ = 5
gosub @SYN5_30472
98@ = 6

:SYN5_8229
if 
  not is_char_dead 36@
goto_if_false @SYN5_8276
if 
  TIMERA > 10000
goto_if_false @SYN5_8276
set_char_only_damaged_by_player 36@ {state} False
explode_char_head 36@

:SYN5_8276
if 
  not is_char_dead 37@
goto_if_false @SYN5_8323
if 
  TIMERA > 20000
goto_if_false @SYN5_8323
set_char_only_damaged_by_player 37@ {state} False
explode_char_head 37@

:SYN5_8323
if 
  not is_char_dead 38@
goto_if_false @SYN5_8370
if 
  TIMERA > 30000
goto_if_false @SYN5_8370
set_char_only_damaged_by_player 38@ {state} False
explode_char_head 38@

:SYN5_8370
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_8421
if 
  TIMERA > 40000
goto_if_false @SYN5_8421
set_char_only_damaged_by_player $wuzi {state} False
87@ = 10

:SYN5_8421
if 
  6 > 106@
goto_if_false @SYN5_8522
if 
  100@(106@,6i) == 0
goto_if_false @SYN5_8508
if 
  is_char_dead 45@(106@,6i)
goto_if_false @SYN5_8508
remove_blip 80@(106@,6i)
99@ -= 1
100@(106@,6i) = 1

:SYN5_8508
106@ += 1
goto @SYN5_8529

:SYN5_8522
106@ = 0

:SYN5_8529
if 
  3 > 97@
goto_if_false @SYN5_8621
if 
  94@(97@,3i) == 0
goto_if_false @SYN5_8607
if 
  is_char_dead 36@(97@,3i)
goto_if_false @SYN5_8607
93@ -= 1
94@(97@,3i) = 1

:SYN5_8607
97@ += 1
goto @SYN5_8628

:SYN5_8621
97@ = 0

:SYN5_8628
gosub @SYN5_26437
if 
  is_char_dead 45@
goto_if_false @SYN5_8805
if 
  is_char_dead 46@
goto_if_false @SYN5_8805
if 
  is_char_dead 47@
goto_if_false @SYN5_8805
if 
  is_char_dead 48@
goto_if_false @SYN5_8805
if 
  is_char_dead 49@
goto_if_false @SYN5_8805
if 
  is_char_dead 50@
goto_if_false @SYN5_8805
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
TIMERA = 0
88@ = 1

:SYN5_8805
if 
  88@ == 1
goto_if_false @SYN5_8953
if 
  TIMERA > 2000
goto_if_false @SYN5_8953
set_player_control $player1 {state} False
clear_prints 
do_fade 500 {direction} Fade.Out

:SYN5_8858
if 
  get_fading_status 
goto_if_false @SYN5_8882
wait 0
goto @SYN5_8858

:SYN5_8882
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_8914
goto @SYN5_8953

:SYN5_8914
if 
  90@ == 1
goto_if_false @SYN5_8939
goto @SYN5_23151

:SYN5_8939
88@ = 0
87@ = 4

:SYN5_8953
if 
  87@ == 10
goto_if_false @SYN5_9658
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @SYN5_9451
if 
  88@ == 0
goto_if_false @SYN5_9451
do_fade 500 {direction} Fade.Out

:SYN5_9021
if 
  get_fading_status 
goto_if_false @SYN5_9045
wait 0
goto @SYN5_9021

:SYN5_9045
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
delete_char $wuzi
delete_char $cesar
clear_area -1673.7 {y} 1369.0 {z} 7.0 {radius} 150.0 {clearParticles} True
clear_area -1677.2 {y} 1347.8 {z} 16.2 {radius} 1.0 {clearParticles} True
$wuzi = create_char PedType.Mission1 {modelId} 120 {x} -1677.2 {y} 1347.8 {z} 16.2
set_char_heading $wuzi {heading} 356.6
give_weapon_to_char $wuzi {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker $wuzi {handleOrTemplate} 197@
load_scene -1677.2 {y} 1347.8 {z} 16.2
set_fixed_camera_position -1675.3 {y} 1349.0 {z} 17.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1684.1 {y} 1343.9 {z} 18.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:SYN5_9267
if 
  get_fading_status 
goto_if_false @SYN5_9291
wait 0
goto @SYN5_9267

:SYN5_9291
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_9346
task_play_anim_non_interruptable $wuzi {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:SYN5_9346
if 
  93@ > 0
goto_if_false @SYN5_9399
132@ = 5
134@ = 3
135@ = 4
gosub @SYN5_30472
goto @SYN5_9437

:SYN5_9399
132@ = 5
134@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_9437
TIMERB = 0
88@ = 1

:SYN5_9451
if 
  88@ == 1
goto_if_false @SYN5_9658
if 
  132@ == 0
goto_if_false @SYN5_9658
if 
  TIMERB > 4000
goto_if_false @SYN5_9658
do_fade 500 {direction} Fade.Out

:SYN5_9513
if 
  get_fading_status 
goto_if_false @SYN5_9537
wait 0
goto @SYN5_9513

:SYN5_9537
191@, 192@, 193@ = get_char_coordinates $scplayer
load_scene 191@ {y} 192@ {z} 193@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'SYN5_05' {time} 5500 {flag} 1
do_fade 500 {direction} Fade.In

:SYN5_9627
if 
  get_fading_status 
goto_if_false @SYN5_9651
wait 0
goto @SYN5_9627

:SYN5_9651
goto @SYN5_23151

:SYN5_9658
if 
  87@ == 4
goto_if_false @SYN5_17454
if 
  88@ == 0
goto_if_false @SYN5_10641
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
request_car_recording 27
request_car_recording 28
request_model 600
request_model 566
request_model 487
request_model 413
request_model 102
request_model 103
load_special_character 2 {modelName} 'RYDER2'
load_special_character 3 {modelName} 'TORINO'
load_special_character 4 {modelName} 'TBONE'
request_model 343
request_model 355
load_all_models_now 
shut_all_chars_up True
shut_char_up_for_scripted_speech $cesar {state} False
76@ = create_car 413 {x} -1634.3 {y} 1253.4 {z} 6.1
set_car_heading 76@ {heading} 44.5
lock_car_doors 76@ {lockStatus} CarLock.LockoutPlayerOnly
start_playback_recorded_car 76@ {path} 27
skip_in_playback_recorded_car 76@ {amount} 35.0
clear_char_tasks_immediately $wuzi
set_char_coordinates $wuzi {x} -1678.7 {y} 1347.5 {z} 16.2
set_char_heading $wuzi {heading} 32.6
set_char_decision_maker $wuzi {handleOrTemplate} 197@
task_play_anim $wuzi {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000
if 
  not is_char_dead 36@
goto_if_false @SYN5_10050
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} -1686.1 {y} 1348.7 {z} 16.2
set_char_heading 36@ {heading} 33.6
set_char_decision_maker 36@ {handleOrTemplate} 197@
task_play_anim 36@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000

:SYN5_10050
if 
  not is_char_dead 37@
goto_if_false @SYN5_10150
clear_char_tasks_immediately 37@
set_char_coordinates 37@ {x} -1687.7 {y} 1347.7 {z} 16.2
set_char_heading 37@ {heading} 60.6
set_char_decision_maker 37@ {handleOrTemplate} 197@
task_play_anim 37@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000

:SYN5_10150
if 
  not is_char_dead 38@
goto_if_false @SYN5_10250
clear_char_tasks_immediately 38@
set_char_coordinates 38@ {x} -1688.7 {y} 1346.1 {z} 16.2
set_char_heading 38@ {heading} 41.8
set_char_decision_maker 38@ {handleOrTemplate} 197@
task_play_anim 38@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000

:SYN5_10250
clear_area -1721.4 {y} 1276.2 {z} 16.9 {radius} 5.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1720.4 {y} 1275.5 {z} 16.9
set_char_heading $scplayer {heading} 328.4
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -1721.4 {y} 1276.2 {z} 16.9
set_char_heading $cesar {heading} 326.3
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Sniper
if 
  24 > 91@
goto_if_false @SYN5_10395
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 24
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper
goto @SYN5_10402

:SYN5_10395
set_current_char_weapon $scplayer {weaponType} WeaponType.Sniper

:SYN5_10402
clear_area -1706.4 {y} 1327.1 {z} 6.4 {radius} 100.0 {clearParticles} True
set_car_density_multiplier 0.0
clear_char_decision_maker_event_response 196@ {event} Event.PotentialWalkIntoPed
set_fixed_camera_position -1722.2 {y} 1271.7 {z} 20.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1709.7 {y} 1305.0 {z} 7.4 {switchStyle} SwitchType.JumpCut
switch_widescreen True
make_player_gang_disappear 
do_fade 1000 {direction} Fade.In

:SYN5_10504
if 
  get_fading_status 
goto_if_false @SYN5_10528
wait 0
goto @SYN5_10504

:SYN5_10528
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_10560
goto @SYN5_8953

:SYN5_10560
if 
  90@ == 1
goto_if_false @SYN5_10585
goto @SYN5_23151

:SYN5_10585
132@ = 7
134@ = 0
135@ = 1
gosub @SYN5_30472
89@ = 1
skip_cutscene_start_internal @SYN5_14729
TIMERA = 0
88@ = 1

:SYN5_10641
if 
  88@ == 1
goto_if_false @SYN5_11744
if 
  132@ == 0
goto_if_false @SYN5_11744
if 
  TIMERA > 4000
goto_if_false @SYN5_11744
do_fade 500 {direction} Fade.Out

:SYN5_10703
if 
  get_fading_status 
goto_if_false @SYN5_10727
wait 0
goto @SYN5_10703

:SYN5_10727
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_10759
goto @SYN5_8953

:SYN5_10759
if 
  90@ == 1
goto_if_false @SYN5_10784
goto @SYN5_23151

:SYN5_10784
if 
  not is_car_dead 76@
goto_if_false @SYN5_10814
open_car_door 76@ {door} CarDoor.LeftRearDoor
open_car_door 76@ {door} CarDoor.RightRearDoor

:SYN5_10814
gosub @SYN5_25123
if 
  not is_char_dead 35@
goto_if_false @SYN5_10929
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1345.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1349.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1360.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 35@ {sequence} 195@
clear_sequence_task 195@

:SYN5_10929
if 
  not is_char_dead 45@
goto_if_false @SYN5_11037
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1346.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1350.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1361.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11037
if 
  not is_char_dead 46@
goto_if_false @SYN5_11145
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1343.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1351.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1362.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11145
if 
  not is_char_dead 47@
goto_if_false @SYN5_11253
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1342.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1352.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1363.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11253
if 
  not is_char_dead 48@
goto_if_false @SYN5_11361
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1709.4 {y} 1341.3 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1697.7 {y} 1353.2 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1676.1 {y} 1364.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_11361
gosub @SYN5_25613
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 55@ {x} -1704.0 {y} 1333.5 {z} 5.9 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1676.9 {y} 1360.6 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 56@ {x} -1706.6 {y} 1340.2 {z} 5.9 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 195@
perform_sequence_task 41@ {sequence} 195@
clear_sequence_task 195@
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 57@ {x} -1718.4 {y} 1345.7 {z} 6.2 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 195@
perform_sequence_task 43@ {sequence} 195@
clear_sequence_task 195@
set_fixed_camera_position -1711.0 {y} 1343.8 {z} 7.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1726.7 {y} 1357.6 {z} 9.9 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:SYN5_11621
if 
  get_fading_status 
goto_if_false @SYN5_11645
wait 0
goto @SYN5_11621

:SYN5_11645
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_11677
goto @SYN5_8953

:SYN5_11677
if 
  90@ == 1
goto_if_false @SYN5_11702
goto @SYN5_23151

:SYN5_11702
132@ = 7
134@ = 2
135@ = 3
gosub @SYN5_30472
TIMERA = 0
88@ = 2

:SYN5_11744
if 
  88@ == 2
goto_if_false @SYN5_11881
if 
  TIMERA > 4000
goto_if_false @SYN5_11881
gosub @SYN5_26264
set_fixed_camera_position -1698.3 {y} 1327.6 {z} 7.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1701.2 {y} 1332.3 {z} 7.6 {switchStyle} SwitchType.JumpCut
132@ = 7
134@ = 3
135@ = 5
gosub @SYN5_30472
TIMERA = 0
88@ = 3

:SYN5_11881
if 
  88@ == 3
goto_if_false @SYN5_12029
if 
  132@ == 0
goto_if_false @SYN5_12029
if 
  not is_char_dead $ryder
goto_if_false @SYN5_12029
if 
  not is_char_in_any_car $ryder
goto_if_false @SYN5_12029
if 
  not is_char_dead 39@
goto_if_false @SYN5_12015
195@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1665.0 {y} 1370.9 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_12015
TIMERA = 0
88@ = 4

:SYN5_12029
if 
  88@ == 4
goto_if_false @SYN5_12900
do_fade 1000 {direction} Fade.Out

:SYN5_12054
if 
  get_fading_status 
goto_if_false @SYN5_12078
wait 0
goto @SYN5_12054

:SYN5_12078
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_12110
goto @SYN5_8953

:SYN5_12110
if 
  90@ == 1
goto_if_false @SYN5_12135
goto @SYN5_23151

:SYN5_12135
if 
  not is_char_dead 35@
goto_if_false @SYN5_12193
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -1629.2 {y} 1414.2 {z} 6.2
set_char_heading 35@ {heading} 87.6
hide_char_weapon_for_scripted_cutscene 35@ {state} True

:SYN5_12193
if 
  not is_char_dead 45@
goto_if_false @SYN5_12290
clear_char_tasks_immediately 45@
set_char_coordinates 45@ {x} -1629.3 {y} 1412.4 {z} 6.2
set_char_heading 45@ {heading} 76.7
task_play_anim 45@ {animationName} "SEAT_IDLE" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12290
if 
  not is_char_dead 46@
goto_if_false @SYN5_12351
clear_char_tasks_immediately 46@
set_char_coordinates 46@ {x} -1626.5 {y} 1414.2 {z} 6.2
set_char_heading 46@ {heading} 116.9
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12351
if 
  not is_char_dead 47@
goto_if_false @SYN5_12412
clear_char_tasks_immediately 47@
set_char_coordinates 47@ {x} -1628.5 {y} 1414.9 {z} 6.2
set_char_heading 47@ {heading} 50.5
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12412
if 
  not is_char_dead 48@
goto_if_false @SYN5_12473
clear_char_tasks_immediately 48@
set_char_coordinates 48@ {x} -1629.7 {y} 1416.0 {z} 6.2
set_char_heading 48@ {heading} 222.8
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000

:SYN5_12473
task_chat_with_char 47@ {other} 48@ {leadSpeaker} True {_p4} 1
task_chat_with_char 48@ {other} 47@ {leadSpeaker} False {_p4} 1
if 
  not is_char_dead $ryder
goto_if_false @SYN5_12555
clear_char_tasks_immediately $ryder
set_char_coordinates $ryder {x} -1636.5 {y} 1412.5 {z} 6.2
set_char_heading $ryder {heading} 280.9
hide_char_weapon_for_scripted_cutscene $ryder {state} True

:SYN5_12555
if 
  not is_char_dead 39@
goto_if_false @SYN5_12687
clear_char_tasks_immediately 39@
set_char_coordinates 39@ {x} -1634.9 {y} 1408.3 {z} 6.2
set_char_heading 39@ {heading} 293.5
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1629.6 {y} 1411.7 {z} 6.2 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_12687
task_greet_partner $ryder {partner} 35@ {approachRatio} 0.5 {greetStyle} 5
load_scene -1629.2 {y} 1414.2 {z} 6.2
set_fixed_camera_position -1637.6 {y} 1410.8 {z} 8.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1626.4 {y} 1414.8 {z} 6.8 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:SYN5_12777
if 
  get_fading_status 
goto_if_false @SYN5_12801
wait 0
goto @SYN5_12777

:SYN5_12801
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_12833
goto @SYN5_8953

:SYN5_12833
if 
  90@ == 1
goto_if_false @SYN5_12858
goto @SYN5_23151

:SYN5_12858
132@ = 7
134@ = 7
135@ = 8
gosub @SYN5_30472
TIMERA = 0
88@ = 5

:SYN5_12900
if 
  88@ == 5
goto_if_false @SYN5_12977
if 
  TIMERA > 3500
goto_if_false @SYN5_12977
if 
  not is_car_dead 58@
goto_if_false @SYN5_12977
start_playback_recorded_car 58@ {path} 28
skip_in_playback_recorded_car 58@ {amount} 10.0
88@ = 6

:SYN5_12977
if 
  88@ == 6
goto_if_false @SYN5_13378
if 
  TIMERA > 6000
goto_if_false @SYN5_13378
do_fade 500 {direction} Fade.Out

:SYN5_13021
if 
  get_fading_status 
goto_if_false @SYN5_13045
wait 0
goto @SYN5_13021

:SYN5_13045
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_13077
goto @SYN5_8953

:SYN5_13077
if 
  90@ == 1
goto_if_false @SYN5_13102
goto @SYN5_23151

:SYN5_13102
if 
  not is_char_dead $ryder
goto_if_false @SYN5_13128
set_char_heading $ryder {heading} 150.0

:SYN5_13128
if 
  not is_char_dead 39@
goto_if_false @SYN5_13154
set_char_heading 39@ {heading} 150.0

:SYN5_13154
camera_reset_new_scriptables 
camera_persist_pos True
camera_persist_track True
camera_set_vector_move -1657.1 {fromY} 1666.8 {fromZ} 3.4 {toX} -1599.1 {toY} 1432.0 {toZ} 15.1 {time} 11000 {ease} True
camera_set_vector_track -1676.2 {fromY} 1618.2 {fromZ} 11.4 {toX} -1614.1 {toY} 1428.9 {toZ} 15.4 {time} 11000 {ease} True
load_scene -1657.1 {y} 1666.8 {z} 3.4
do_fade 500 {direction} Fade.In

:SYN5_13262
if 
  get_fading_status 
goto_if_false @SYN5_13286
wait 0
goto @SYN5_13262

:SYN5_13286
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_13318
goto @SYN5_8953

:SYN5_13318
if 
  90@ == 1
goto_if_false @SYN5_13343
goto @SYN5_23151

:SYN5_13343
132@ = 7
134@ = 8
135@ = 10
gosub @SYN5_30472
88@ = 7

:SYN5_13378
if 
  88@ == 7
goto_if_false @SYN5_13536
if 
  not is_car_dead 58@
goto_if_false @SYN5_13536
if 
  locate_car_2d 58@ {x} -1629.1 {y} 1429.5 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @SYN5_13536
if 
  is_playback_going_on_for_car 58@
goto_if_false @SYN5_13471
stop_playback_recorded_car 58@

:SYN5_13471
heli_goto_coords 58@ {x} -1629.1 {y} 1429.5 {z} 19.3 {minAltitude} 0.0 {maxAltitude} 19.3
132@ = 7
134@ = 10
135@ = 11
gosub @SYN5_30472
88@ = 8

:SYN5_13536
if 
  88@ == 8
goto_if_false @SYN5_13695
if 
  132@ == 0
goto_if_false @SYN5_13695
camera_reset_new_scriptables 
if 
  not is_car_dead 58@
goto_if_false @SYN5_13695
set_heli_orientation 58@ {angle} 270.0
heli_goto_coords 58@ {x} -615.5 {y} 1513.9 {z} 54.8 {minAltitude} 0.0 {maxAltitude} 25.5
set_fixed_camera_position -1647.6 {y} 1409.7 {z} 8.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1590.8 {y} 1426.7 {z} 13.8 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 9

:SYN5_13695
if 
  88@ == 9
goto_if_false @SYN5_14226
if 
  TIMERA > 1000
goto_if_false @SYN5_14226
if 
  not is_char_dead 35@
goto_if_false @SYN5_13799
clear_char_tasks 35@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1628.8 {y} 1421.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 35@ {sequence} 195@
clear_sequence_task 195@

:SYN5_13799
if 
  not is_char_dead 45@
goto_if_false @SYN5_13866
clear_char_tasks 45@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1626.8 {y} 1419.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_13866
if 
  not is_char_dead 46@
goto_if_false @SYN5_13933
clear_char_tasks 46@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1630.8 {y} 1423.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@

:SYN5_13933
if 
  not is_char_dead 47@
goto_if_false @SYN5_14000
clear_char_tasks 47@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1632.8 {y} 1425.7 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@

:SYN5_14000
if 
  not is_char_dead 48@
goto_if_false @SYN5_14067
clear_char_tasks 48@
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1634.0 {y} 1423.0 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_14067
if 
  not is_char_dead $ryder
goto_if_false @SYN5_14122
give_weapon_to_char $ryder {weaponType} WeaponType.Teargas {ammo} 1
set_current_char_weapon $ryder {weaponType} WeaponType.Teargas
task_shoot_at_coord $ryder {x} -1652.5 {y} 1396.0 {z} 6.2 {time} 500

:SYN5_14122
if 
  not is_char_dead 39@
goto_if_false @SYN5_14184
give_weapon_to_char 39@ {weaponType} WeaponType.Teargas {ammo} 1
set_current_char_weapon 39@ {weaponType} WeaponType.Teargas
195@ = open_sequence_task 
task_pause -1 {time} 500
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_14184
132@ = 7
134@ = 11
135@ = 12
gosub @SYN5_30472
TIMERA = 0
88@ = 10

:SYN5_14226
if 
  88@ == 10
goto_if_false @SYN5_14319
if 
  not is_char_dead 39@
goto_if_false @SYN5_14319
$task_status = get_script_task_status 39@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_14319
task_shoot_at_coord 39@ {x} -1653.1 {y} 1400.0 {z} 7.0 {time} 500
88@ = 11

:SYN5_14319
if 
  88@ == 11
goto_if_false @SYN5_14565
if 
  132@ == 0
goto_if_false @SYN5_14565
if 
  TIMERA > 2000
goto_if_false @SYN5_14565
if 
  not is_char_dead $ryder
goto_if_false @SYN5_14565
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_14565
195@ = open_sequence_task 
task_pause -1 {time} 500
task_go_straight_to_coord -1 {x} -1649.1 {y} 1395.0 {z} 7.0 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
132@ = 7
134@ = 12
135@ = 14
gosub @SYN5_30472
set_fixed_camera_position -1665.9 {y} 1386.8 {z} 11.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1641.2 {y} 1407.9 {z} 9.9 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 12

:SYN5_14565
if 
  88@ == 12
goto_if_false @SYN5_14685
if 
  TIMERA > 1500
goto_if_false @SYN5_14685
59@ = create_fx_system "TEARGASAD" {x} -1656.5 {y} 1398.0 {z} 6.2 {ignoreBoundingChecks} True
play_fx_system 59@
60@ = create_fx_system "TEARGASAD" {x} -1656.0 {y} 1393.0 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 60@
88@ = 13

:SYN5_14685
if 
  88@ == 13
goto_if_false @SYN5_17454
if 
  TIMERA > 5000
goto_if_false @SYN5_17454
89@ = 0

:SYN5_14729
skip_cutscene_end 
if 
  89@ == 1
goto_if_false @SYN5_14766
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0

:SYN5_14766
do_fade 500 {direction} Fade.Out

:SYN5_14773
if 
  get_fading_status 
goto_if_false @SYN5_14797
wait 0
goto @SYN5_14773

:SYN5_14797
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_14829
goto @SYN5_8953

:SYN5_14829
if 
  90@ == 1
goto_if_false @SYN5_14854
goto @SYN5_23151

:SYN5_14854
if 
  89@ == 1
goto_if_false @SYN5_15197
camera_reset_new_scriptables 
gosub @SYN5_25123
gosub @SYN5_25613
if 
  not is_car_dead 55@
goto_if_false @SYN5_14934
set_car_coordinates 55@ {x} -1702.9 {y} 1335.5 {z} 5.9
set_car_heading 55@ {heading} 271.8

:SYN5_14934
if 
  not is_car_dead 56@
goto_if_false @SYN5_14980
set_car_coordinates 56@ {x} -1706.6 {y} 1340.2 {z} 5.9
set_car_heading 56@ {heading} 271.8

:SYN5_14980
if 
  not is_car_dead 57@
goto_if_false @SYN5_15026
set_car_coordinates 57@ {x} -1718.4 {y} 1345.7 {z} 6.2
set_car_heading 57@ {heading} 231.8

:SYN5_15026
if 
  not is_car_dead 76@
goto_if_false @SYN5_15107
open_car_door 76@ {door} CarDoor.LeftRearDoor
open_car_door 76@ {door} CarDoor.RightRearDoor
if 
  is_playback_going_on_for_car 76@
goto_if_false @SYN5_15077
stop_playback_recorded_car 76@

:SYN5_15077
set_car_coordinates 76@ {x} -1722.3 {y} 1365.6 {z} 6.2
set_car_heading 76@ {heading} 325.6

:SYN5_15107
remove_car_recording 27
kill_fx_system 59@
kill_fx_system 60@
59@ = create_fx_system "TEARGASAD" {x} -1656.5 {y} 1398.0 {z} 6.2 {ignoreBoundingChecks} True
play_fx_system 59@
60@ = create_fx_system "TEARGASAD" {x} -1656.0 {y} 1393.0 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 60@

:SYN5_15197
clear_char_tasks_immediately $wuzi
clear_char_tasks_immediately $cesar
clear_char_tasks_immediately $scplayer
give_weapon_to_char $cesar {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker $cesar {handleOrTemplate} 196@
task_shoot_at_coord $wuzi {x} -1685.2 {y} 1363.1 {z} 7.8 {time} -1
if 
  not is_char_dead 36@
goto_if_false @SYN5_15290
task_shoot_at_coord 36@ {x} -1682.2 {y} 1364.1 {z} 7.8 {time} -1

:SYN5_15290
if 
  not is_char_dead 37@
goto_if_false @SYN5_15328
task_shoot_at_coord 37@ {x} -1694.2 {y} 1355.1 {z} 7.8 {time} -1

:SYN5_15328
if 
  not is_char_dead 38@
goto_if_false @SYN5_15366
task_shoot_at_coord 38@ {x} -1704.2 {y} 1343.1 {z} 7.8 {time} -1

:SYN5_15366
if 
  not is_char_dead 35@
goto_if_false @SYN5_15665
clear_char_tasks_immediately 35@
if 
  not is_char_in_any_car 35@
goto_if_false @SYN5_15430
set_char_coordinates 35@ {x} -1618.9 {y} 1401.8 {z} 6.2
goto @SYN5_15450

:SYN5_15430
warp_char_from_car_to_coord 35@ {x} -1618.9 {y} 1401.8 {z} 6.2

:SYN5_15450
set_char_heading 35@ {heading} 110.5
hide_char_weapon_for_scripted_cutscene 35@ {state} False
198@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} -1619.3 {y} 1412.1 {z} 6.2 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_turn_char_to_face_char -1 {target} $scplayer
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 4000
close_sequence_task 198@
199@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} -1635.0 {y} 1430.4 {z} 6.2 {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_turn_char_to_face_char -1 {target} $scplayer
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 4000
close_sequence_task 199@
200@ = open_sequence_task 
perform_sequence_task -1 {sequence} 198@
perform_sequence_task -1 {sequence} 199@
perform_sequence_task -1 {sequence} 199@
perform_sequence_task -1 {sequence} 198@
set_sequence_to_repeat 200@ {state} True
close_sequence_task 200@
perform_sequence_task 35@ {sequence} 200@
clear_sequence_task 198@
clear_sequence_task 199@
clear_sequence_task 200@
79@ = add_blip_for_char 35@

:SYN5_15665
if 
  not is_char_dead 39@
goto_if_false @SYN5_15791
clear_char_tasks_immediately 39@
set_char_coordinates 39@ {x} -1631.2 {y} 1410.3 {z} 6.2
set_char_heading 39@ {heading} 137.6
195@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_15791
40@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1697.9 {y} 1345.7 {z} 6.1
set_char_accuracy 40@ {accuracy} 130@
set_char_only_damaged_by_player 40@ {state} True
clear_char_tasks_immediately 40@
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_heading 40@ {heading} 146.8
set_char_decision_maker 40@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 40@ {state} True
195@ = open_sequence_task 
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 40@ {sequence} 195@
clear_sequence_task 195@
if 
  not is_char_dead 41@
goto_if_false @SYN5_16030
clear_char_tasks_immediately 41@
set_char_stay_in_same_place 41@ {state} False
set_char_kinda_stay_in_same_place 41@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1690.4 {y} 1367.5 {z} 8.8 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 230.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 41@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16030
if 
  not is_char_dead 42@
goto_if_false @SYN5_16141
clear_char_tasks_immediately 42@
set_char_stay_in_same_place 42@ {state} False
set_char_kinda_stay_in_same_place 42@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1690.9 {y} 1363.8 {z} 8.8 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 230.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 42@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16141
if 
  not is_char_dead 43@
goto_if_false @SYN5_16252
clear_char_tasks_immediately 43@
set_char_stay_in_same_place 43@ {state} False
set_char_kinda_stay_in_same_place 43@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1698.8 {y} 1352.4 {z} 6.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 251.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 43@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16252
if 
  not is_char_dead 44@
goto_if_false @SYN5_16363
clear_char_tasks_immediately 44@
set_char_stay_in_same_place 44@ {state} False
set_char_kinda_stay_in_same_place 44@ {state} True
195@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -1682.5 {y} 1364.4 {z} 6.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 182.5
task_shoot_at_coord -1 {x} -1684.9 {y} 1353.3 {z} 13.6 {time} -2
close_sequence_task 195@
perform_sequence_task 44@ {sequence} 195@
clear_sequence_task 195@

:SYN5_16363
61@ = create_fx_system "TEARGASAD" {x} -1657.8 {y} 1405.0 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 61@
62@ = create_fx_system "TEARGASAD" {x} -1643.3 {y} 1390.7 {z} 7.0 {ignoreBoundingChecks} True
play_fx_system 62@
if 
  not is_char_dead 45@
goto_if_false @SYN5_16522
clear_char_tasks_immediately 45@
set_char_coordinates 45@ {x} -1647.7 {y} 1421.8 {z} 6.2
set_char_heading 45@ {heading} 186.5
set_char_stay_in_same_place 45@ {state} False
set_char_kinda_stay_in_same_place 45@ {state} True
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 45@ {target} $scplayer

:SYN5_16522
if 
  not is_char_dead 46@
goto_if_false @SYN5_16591
clear_char_tasks_immediately 46@
set_char_coordinates 46@ {x} -1672.6 {y} 1373.9 {z} 8.8
set_char_heading 46@ {heading} 136.4
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 46@ {target} $scplayer

:SYN5_16591
if 
  not is_char_dead 47@
goto_if_false @SYN5_16660
clear_char_tasks_immediately 47@
set_char_coordinates 47@ {x} -1631.8 {y} 1398.7 {z} 6.2
set_char_heading 47@ {heading} 105.9
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 47@ {target} $scplayer

:SYN5_16660
if 
  not is_char_dead 48@
goto_if_false @SYN5_16743
clear_char_tasks_immediately 48@
set_char_coordinates 48@ {x} -1658.7 {y} 1387.3 {z} 6.2
set_char_heading 48@ {heading} 144.5
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_stay_in_same_place 48@ {state} False
set_char_kinda_stay_in_same_place 48@ {state} True
task_kill_char_on_foot 48@ {target} $scplayer

:SYN5_16743
107@ = generate_random_int_in_range 0 {max} 2
51@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1645.8 {y} 1401.5 {z} 8.8
set_char_accuracy 51@ {accuracy} 130@
set_char_heading 51@ {heading} 129.4
set_char_decision_maker 51@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 51@ {state} True
set_char_only_damaged_by_player 51@ {state} True
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 51@ {target} $scplayer
107@ = generate_random_int_in_range 0 {max} 2
52@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1670.5 {y} 1364.8 {z} 6.2
set_char_accuracy 52@ {accuracy} 130@
set_char_heading 52@ {heading} 129.4
set_char_decision_maker 52@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 52@ {state} True
set_char_only_damaged_by_player 52@ {state} True
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 52@ {target} $scplayer
107@ = generate_random_int_in_range 0 {max} 2
53@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1687.5 {y} 1367.8 {z} 6.2
set_char_accuracy 53@ {accuracy} 130@
set_char_heading 53@ {heading} 124.5
set_char_decision_maker 53@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 53@ {state} True
set_char_only_damaged_by_player 53@ {state} True
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 53@ {target} $scplayer
107@ = generate_random_int_in_range 0 {max} 2
54@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1657.3 {y} 1379.8 {z} 8.8
set_char_accuracy 54@ {accuracy} 130@
set_char_heading 54@ {heading} 140.5
set_char_decision_maker 54@ {handleOrTemplate} 196@
set_char_kinda_stay_in_same_place 54@ {state} True
set_char_only_damaged_by_player 54@ {state} True
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_kill_char_on_foot 54@ {target} $scplayer
delete_car 58@
delete_char $ryder
remove_car_recording 28
unload_special_character 2
unload_special_character 3
remove_animation "GRENADE"
mark_car_as_no_longer_needed 58@
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 413
mark_car_as_no_longer_needed 75@
mark_model_as_no_longer_needed 429
set_car_density_multiplier 1.0
add_char_decision_maker_event_response 196@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 196@ {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 100.0 {hate} 0.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
load_scene -1720.4 {y} 1275.5 {z} 16.9
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowLimited
126@ = 1
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_now 'SYN5_06' {time} 4000 {flag} 1
do_fade 500 {direction} Fade.In

:SYN5_17359
if 
  get_fading_status 
goto_if_false @SYN5_17383
wait 0
goto @SYN5_17359

:SYN5_17383
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_17415
goto @SYN5_8953

:SYN5_17415
if 
  90@ == 1
goto_if_false @SYN5_17440
goto @SYN5_23151

:SYN5_17440
88@ = 0
87@ = 5

:SYN5_17454
if 
  87@ == 5
goto_if_false @SYN5_21573
if 
  88@ == 0
goto_if_false @SYN5_17806
if 
  locate_char_any_means_2d $scplayer {x} -1708.6 {y} 1331.1 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @SYN5_17542
set_ped_density_multiplier 0.0
goto @SYN5_17549

:SYN5_17542
set_ped_density_multiplier 1.0

:SYN5_17549
gosub @SYN5_29054
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @SYN5_17599
if 
  not is_char_dead 35@
goto_if_false @SYN5_17599
set_char_only_damaged_by_player 35@ {state} False
explode_char_head 35@

:SYN5_17599
if 
  is_char_dead 35@
goto_if_false @SYN5_17806
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @SYN5_17806
clear_prints 
remove_blip 79@
do_fade 1000 {direction} Fade.Out

:SYN5_17654
if 
  get_fading_status 
goto_if_false @SYN5_17678
wait 0
goto @SYN5_17654

:SYN5_17678
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_17710
goto @SYN5_8953

:SYN5_17710
if 
  90@ == 1
goto_if_false @SYN5_17735
goto @SYN5_23151

:SYN5_17735
request_animation "DANCING"
request_animation "KISSING"
request_animation "MISC"
request_animation "RYDER"
request_model #DYN_WOODPILE2
request_model 452
load_special_character 2 {modelName} 'RYDER2'
load_all_models_now 
88@ = 1

:SYN5_17806
if 
  88@ == 1
goto_if_false @SYN5_19605
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
set_player_drunkenness $player1 {intensity} 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
clear_area -1629.438 {y} 1422.6479 {z} 6.2 {radius} 60.0 {clearParticles} True
load_scene -1629.438 {y} 1422.6479 {z} 6.2
delete_char 35@
35@ = create_char PedType.Mission2 {modelId} 293 {x} -1629.438 {y} 1422.6479 {z} 6.2
set_char_health 35@ {health} 500
add_armour_to_char 35@ {amount} 100
set_char_accuracy 35@ {accuracy} 130@
set_char_heading 35@ {heading} 260.0
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_bleeding 35@ {state} True
set_char_decision_maker 35@ {handleOrTemplate} 197@
195@ = open_sequence_task 
task_play_anim -1 {animationName} "RYD_DIE_PT1" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 195@
perform_sequence_task 35@ {sequence} 195@
clear_sequence_task 195@
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -1639.9 {y} 1410.3 {z} 6.2
set_char_heading $scplayer {heading} 325.8
91@ = 0
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Mp5
if 
  91@ > 0
goto_if_false @SYN5_18145
set_current_char_weapon $scplayer {weaponType} WeaponType.Mp5
goto @SYN5_18232

:SYN5_18145
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.MicroUzi
if 
  91@ > 0
goto_if_false @SYN5_18187
set_current_char_weapon $scplayer {weaponType} WeaponType.MicroUzi
goto @SYN5_18232

:SYN5_18187
91@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Tec9
if 
  91@ == 0
goto_if_false @SYN5_18225
give_weapon_to_char $scplayer {weaponType} WeaponType.Tec9 {ammo} 300

:SYN5_18225
set_current_char_weapon $scplayer {weaponType} WeaponType.Tec9

:SYN5_18232
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1632.2 {y} 1419.3 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
set_camera_behind_player 
restore_camera 
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_18306
remove_char_from_group $cesar

:SYN5_18306
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -1638.1 {y} 1408.8 {z} 6.2
set_char_heading $cesar {heading} 325.8
set_char_decision_maker $cesar {handleOrTemplate} 197@
give_weapon_to_char $cesar {weaponType} WeaponType.Tec9 {ammo} 30000
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1630.5 {y} 1417.9 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@
clear_char_tasks_immediately $wuzi
set_char_coordinates $wuzi {x} -1645.7 {y} 1409.0 {z} 6.2
set_char_heading $wuzi {heading} 328.5
set_char_decision_maker $wuzi {handleOrTemplate} 197@
give_weapon_to_char $wuzi {weaponType} WeaponType.Tec9 {ammo} 30000
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1640.2 {y} 1414.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 35@
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@
if 
  not is_char_dead 39@
goto_if_false @SYN5_18579
set_char_decision_maker 39@ {handleOrTemplate} 197@
clear_char_tasks_immediately 39@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 39@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18579
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
if 
  not is_char_dead 45@
goto_if_false @SYN5_18672
set_char_decision_maker 45@ {handleOrTemplate} 197@
clear_char_tasks_immediately 45@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18672
delete_char 46@
if 
  not is_char_dead 47@
goto_if_false @SYN5_18745
set_char_decision_maker 47@ {handleOrTemplate} 197@
clear_char_tasks_immediately 47@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18745
if 
  not is_char_dead 48@
goto_if_false @SYN5_18813
set_char_decision_maker 48@ {handleOrTemplate} 197@
clear_char_tasks_immediately 48@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_hands_up -1 {time} 50000
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@

:SYN5_18813
delete_char 36@
delete_char 37@
delete_char 38@
$ryder = create_char PedType.Mission2 {modelId} 291 {x} -1633.1 {y} 1394.1 {z} 6.2
set_char_accuracy $ryder {accuracy} 130@
set_char_heading $ryder {heading} 268.0
set_char_decision_maker $ryder {handleOrTemplate} 197@
set_char_only_damaged_by_player $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
add_armour_to_char $ryder {amount} 100
67@ = create_random_char -1502.8 {y} 1379.5 {z} 3.1
set_char_heading 67@ {heading} 123.3
task_play_anim 67@ {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
68@ = create_random_char -1503.2 {y} 1377.3 {z} 3.1
set_char_heading 68@ {heading} 37.1
task_play_anim 68@ {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
69@ = create_random_char -1506.0 {y} 1375.2 {z} 3.1
set_char_heading 69@ {heading} 291.9
task_play_anim 69@ {animationName} "DAN_LOOP_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
70@ = create_random_char -1509.2 {y} 1379.3 {z} 2.8
71@ = create_random_char -1510.2 {y} 1379.3 {z} 2.8
task_turn_char_to_face_char 70@ {target} 71@
task_play_anim 70@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char 71@ {target} 70@
task_play_anim 71@ {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
72@ = start_script_fire -1505.0 {y} 1379.2 {z} 2.1 {propagation} 0 {size} 1
78@ = create_object_no_offset #DYN_WOODPILE2 {x} -1505.0 {y} 1379.2 {z} 2.1
set_object_scale 78@ {scale} 0.5
set_object_collision_damage_effect 78@ {state} False
65@ = create_car 452 {x} -1504.0 {y} 1388.7 {z} 0.0
set_car_heading 65@ {heading} 282.0
anchor_boat 65@ {state} True
set_car_straight_line_distance 65@ {distance} 255
66@ = create_car 452 {x} -1519.9 {y} 1382.3 {z} 0.0
set_car_heading 66@ {heading} 314.0
anchor_boat 66@ {state} True
set_fixed_camera_position -1643.8 {y} 1408.3 {z} 7.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.1 {y} 1416.7 {z} 7.9 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:SYN5_19468
if 
  get_fading_status 
goto_if_false @SYN5_19492
wait 0
goto @SYN5_19468

:SYN5_19492
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_19524
goto @SYN5_8953

:SYN5_19524
if 
  90@ == 1
goto_if_false @SYN5_19549
goto @SYN5_23151

:SYN5_19549
89@ = 1
skip_cutscene_start_internal @SYN5_20987
132@ = 8
134@ = 0
135@ = 1
gosub @SYN5_30472
TIMERA = 0
88@ = 2

:SYN5_19605
if 
  88@ == 2
goto_if_false @SYN5_19810
if 
  not is_char_dead 35@
goto_if_false @SYN5_19810
if 
  locate_char_any_means_2d 35@ {x} -1626.6 {y} 1421.8 {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @SYN5_19810
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} -1624.4 {y} 1423.8 {z} 6.2
set_char_heading 35@ {heading} 135.0
task_play_anim_non_interruptable 35@ {animationName} "RYD_DIE_PT2" {animationFile} "RYDER" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_fixed_camera_position -1633.2 {y} 1416.9 {z} 7.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1624.2 {y} 1424.9 {z} 6.8 {switchStyle} SwitchType.JumpCut
88@ = 3

:SYN5_19810
if 
  88@ == 3
goto_if_false @SYN5_19945
if 
  not is_char_dead 35@
goto_if_false @SYN5_19945
if 
  is_char_playing_anim 35@ {animationName} "RYD_DIE_PT2"
goto_if_false @SYN5_19945
194@ = get_char_anim_current_time 35@ {animationName} "RYD_DIE_PT2"
if 
  194@ > 0.783
goto_if_false @SYN5_19945
set_char_anim_speed 35@ {animName} "RYD_DIE_PT2" {animSpeed} 0.0
88@ = 4

:SYN5_19945
if 
  88@ == 4
goto_if_false @SYN5_20136
if 
  132@ == 0
goto_if_false @SYN5_20136
if 
  not is_char_dead 35@
goto_if_false @SYN5_20136
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 35@
task_shoot_at_char -1 {target} 35@ {time} 1000
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
195@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 35@
task_shoot_at_char -1 {target} 35@ {time} 1000
close_sequence_task 195@
perform_sequence_task $cesar {sequence} 195@
clear_sequence_task 195@
if 
  is_char_playing_anim 35@ {animationName} "RYD_DIE_PT2"
goto_if_false @SYN5_20129
set_char_anim_speed 35@ {animName} "RYD_DIE_PT2" {animSpeed} 1.0

:SYN5_20129
88@ = 5

:SYN5_20136
if 
  88@ == 5
goto_if_false @SYN5_20275
if 
  not is_char_dead 35@
goto_if_false @SYN5_20275
if 
  is_char_playing_anim 35@ {animationName} "RYD_DIE_PT2"
goto_if_false @SYN5_20275
194@ = get_char_anim_current_time 35@ {animationName} "RYD_DIE_PT2"
if 
  194@ > 0.98
goto_if_false @SYN5_20275
set_char_coordinates 35@ {x} -1622.1 {y} 1425.5 {z} 6.2
TIMERA = 0
88@ = 6

:SYN5_20275
if 
  88@ == 6
goto_if_false @SYN5_20425
if 
  TIMERA > 2000
goto_if_false @SYN5_20425
if 
  not is_char_dead $ryder
goto_if_false @SYN5_20411
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1621.0 {y} 1396.0 {z} 7.4 {speed} MoveState.Run {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
point_camera_at_char $ryder {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
132@ = 8
134@ = 1
135@ = 4
gosub @SYN5_30472

:SYN5_20411
TIMERA = 0
88@ = 7

:SYN5_20425
if 
  88@ == 7
goto_if_false @SYN5_20663
if 
  not is_char_dead $ryder
goto_if_false @SYN5_20663
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_20663
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1614.8199 {y} 1397.204 {z} 7.277 {speed} MoveState.Run {time} -1
task_char_slide_to_coord -1 {x} -1614.8199 {y} 1397.204 {z} 7.277 {angle} 287.0 {radius} 0.9
task_play_anim_non_interruptable -1 {animationName} "RUN_DIVE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
set_fixed_camera_position -1617.8 {y} 1398.8 {z} 7.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1614.2 {y} 1396.3 {z} 8.0 {switchStyle} SwitchType.JumpCut
TIMERA = 0
88@ = 8

:SYN5_20663
if 
  88@ == 8
goto_if_false @SYN5_20734
if 
  132@ == 0
goto_if_false @SYN5_20734
132@ = 8
134@ = 4
135@ = 6
gosub @SYN5_30472
88@ = 9

:SYN5_20734
if 
  88@ == 9
goto_if_false @SYN5_20847
if 
  not is_char_dead $ryder
goto_if_false @SYN5_20847
if 
  is_char_playing_anim $ryder {animationName} "RUN_DIVE"
goto_if_false @SYN5_20847
194@ = get_char_anim_current_time $ryder {animationName} "RUN_DIVE"
if 
  194@ > 0.98
goto_if_false @SYN5_20847
TIMERA = 0
88@ = 10

:SYN5_20847
if 
  88@ == 10
goto_if_false @SYN5_20918
if 
  TIMERA > 500
goto_if_false @SYN5_20918
report_mission_audio_event_at_position -1609.2 {y} 1401.7 {z} 5.8 {soundId} ScriptSound.SoundPedHitWaterSplash
TIMERA = 0
88@ = 11

:SYN5_20918
if 
  88@ == 11
goto_if_false @SYN5_20962
if 
  TIMERA > 1000
goto_if_false @SYN5_20962
88@ = 12

:SYN5_20962
if 
  88@ == 12
goto_if_false @SYN5_21573
89@ = 0

:SYN5_20987
skip_cutscene_end 
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21021
goto @SYN5_8953

:SYN5_21021
if 
  90@ == 1
goto_if_false @SYN5_21046
goto @SYN5_23151

:SYN5_21046
if 
  89@ == 1
goto_if_false @SYN5_21184
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
132@ = 0
do_fade 500 {direction} Fade.Out

:SYN5_21088
if 
  get_fading_status 
goto_if_false @SYN5_21112
wait 0
goto @SYN5_21088

:SYN5_21112
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21144
goto @SYN5_8953

:SYN5_21144
if 
  90@ == 1
goto_if_false @SYN5_21169
goto @SYN5_23151

:SYN5_21169
delete_char 35@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $cesar

:SYN5_21184
if 
  not is_char_dead $ryder
goto_if_false @SYN5_21309
if 
  not is_car_dead 65@
goto_if_false @SYN5_21309
set_char_drowns_in_water $ryder {state} False
clear_char_tasks_immediately $ryder
set_char_coordinates $ryder {x} -1543.9 {y} 1401.6 {z} 0.0
191@, 192@, 193@ = get_offset_from_car_in_world_coords 65@ {xOffset} -1.0 {yOffset} 2.0 {zOffset} 0.0
task_swim_to_coord $ryder {x} 191@ {y} 192@ {z} 193@
set_swim_speed $ryder {speed} 2.3
79@ = add_blip_for_char $ryder

:SYN5_21309
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
mark_car_as_no_longer_needed 57@
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 174
task_go_straight_to_coord $cesar {x} -1616.5 {y} 1402.9 {z} 6.2 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord $wuzi {x} -1615.5 {y} 1398.4 {z} 6.2 {speed} MoveState.Walk {time} -2
unload_special_character 4
remove_animation "MISC"
remove_animation "RYDER"
clear_prints 
print 'SYN5_07' {time} 7000 {flag} 1
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:SYN5_21471
if 
  get_fading_status 
goto_if_false @SYN5_21495
wait 0
goto @SYN5_21471

:SYN5_21495
gosub @SYN5_23605
if 
  87@ == 10
goto_if_false @SYN5_21527
goto @SYN5_8953

:SYN5_21527
if 
  90@ == 1
goto_if_false @SYN5_21552
goto @SYN5_23151

:SYN5_21552
133@ = 0
88@ = 0
87@ = 6

:SYN5_21573
if 
  87@ == 6
goto_if_false @SYN5_22930
if 
  133@ == 0
goto_if_false @SYN5_21659
if 
  is_char_in_water $scplayer
goto_if_false @SYN5_21659
clear_this_print 'SYN5_07'
print_now 'SYN5_08' {time} 7000 {flag} 1
133@ = 1

:SYN5_21659
if 
  133@ == 1
goto_if_false @SYN5_21762
if 
  not is_car_dead 66@
goto_if_false @SYN5_21762
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 66@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @SYN5_21762
86@ = add_blip_for_car 66@
set_blip_as_friendly 86@ {state} True
print_now 'SYN5_11' {time} 7000 {flag} 1
133@ = 2

:SYN5_21762
if 
  133@ == 2
goto_if_false @SYN5_21904
if 
  not is_car_dead 66@
goto_if_false @SYN5_21876
if 
  is_char_in_car $scplayer {vehicle} 66@
goto_if_false @SYN5_21876
if 
  not is_char_dead 67@
goto_if_false @SYN5_21869
132@ = 9
134@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_21869
133@ = 3

:SYN5_21876
if 
  is_char_in_any_boat $scplayer
goto_if_false @SYN5_21904
remove_blip 86@
133@ = 3

:SYN5_21904
if 
  133@ == 3
goto_if_false @SYN5_21981
if 
  132@ == 0
goto_if_false @SYN5_21981
if 
  132@ == 0
goto_if_false @SYN5_21981
print_now 'SYN5_12' {time} 7000 {flag} 1
133@ = 4

:SYN5_21981
if 
  133@ == 4
goto_if_false @SYN5_22178
if 
  132@ == 0
goto_if_false @SYN5_22178
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22178
if 
  not is_car_dead 65@
goto_if_false @SYN5_22178
if 
  is_char_in_car $ryder {vehicle} 65@
goto_if_false @SYN5_22178
if 
  not is_car_dead 66@
goto_if_false @SYN5_22178
if 
  is_char_in_car $scplayer {vehicle} 66@
goto_if_false @SYN5_22178
if 
  locate_char_any_means_char_2d $scplayer {target} $ryder {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @SYN5_22178
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22178
132@ = 11
134@ = 0
gosub @SYN5_30472
133@ = 5

:SYN5_22178
if 
  88@ == 0
goto_if_false @SYN5_22366
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22366
if 
  not is_car_dead 65@
goto_if_false @SYN5_22366
if 
  not locate_char_any_means_2d $ryder {x} 191@ {y} 192@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @SYN5_22351
$task_status = get_script_task_status $ryder {taskId} 2017
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_22344
191@, 192@, 193@ = get_offset_from_car_in_world_coords 65@ {xOffset} -1.0 {yOffset} 2.0 {zOffset} 0.0
task_swim_to_coord $ryder {x} 191@ {y} 192@ {z} 193@
set_swim_speed $ryder {speed} 2.3

:SYN5_22344
goto @SYN5_22366

:SYN5_22351
warp_char_into_car $ryder {vehicle} 65@
88@ = 1

:SYN5_22366
if 
  88@ == 1
goto_if_false @SYN5_22488
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22488
if or
  locate_char_any_means_char_2d $scplayer {target} $ryder {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  has_char_been_damaged_by_char $ryder {handle} $scplayer
goto_if_false @SYN5_22446
88@ = 2

:SYN5_22446
if 
  not is_car_dead 65@
goto_if_false @SYN5_22488
if 
  has_car_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @SYN5_22488
88@ = 2

:SYN5_22488
if 
  88@ == 2
goto_if_false @SYN5_22612
if 
  125@ == 4
goto_if_false @SYN5_22612
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22612
if 
  not locate_char_any_means_char_2d $scplayer {target} $ryder {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @SYN5_22612
if 
  not is_char_on_screen $ryder
goto_if_false @SYN5_22612
clear_prints 
print_now 'SYN5_09' {time} 4000 {flag} 1
goto @SYN5_23151

:SYN5_22612
if 
  not is_char_dead $ryder
goto_if_false @SYN5_22872
if 
  not is_car_dead 65@
goto_if_false @SYN5_22695
if 
  is_char_in_car $ryder {vehicle} 65@
goto_if_false @SYN5_22688
if 
  88@ > 1
goto_if_false @SYN5_22688
gosub @SYN5_27551

:SYN5_22688
goto @SYN5_22872

:SYN5_22695
if 
  125@ == 0
goto_if_false @SYN5_22750
task_swim_to_coord $ryder {x} -1491.2 {y} 1387.4 {z} 0.0
set_swim_speed $ryder {speed} 2.3
125@ = 1

:SYN5_22750
if 
  125@ == 1
goto_if_false @SYN5_22872
$task_status = get_script_task_status $ryder {taskId} 2017
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_22872
195@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_go_straight_to_coord -1 {x} -1497.2 {y} 1383.5 {z} 1.6 {speed} MoveState.Run {time} 1
task_achieve_heading -1 {heading} 64.5
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 2

:SYN5_22872
if 
  is_car_dead 66@
goto_if_false @SYN5_22893
remove_blip 86@

:SYN5_22893
if 
  is_char_dead $ryder
goto_if_false @SYN5_22930
TIMERA = 0
88@ = 0
87@ = 7

:SYN5_22930
if 
  87@ == 7
goto_if_false @SYN5_23137
if 
  TIMERA > 2000
goto_if_false @SYN5_23077
if 
  88@ == 0
goto_if_false @SYN5_23077
if 
  is_char_in_any_boat $scplayer
goto_if_false @SYN5_23070
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
132@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
shut_all_chars_up True
132@ = 10
134@ = 0
gosub @SYN5_30472
88@ = 1
goto @SYN5_23077

:SYN5_23070
goto @SYN5_23169

:SYN5_23077
if 
  88@ == 1
goto_if_false @SYN5_23137
if 
  132@ == 0
goto_if_false @SYN5_23137
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_player_control $player1 {state} True
goto @SYN5_23169

:SYN5_23137
gosub @SYN5_32238
goto @SYN5_1694

:SYN5_23151
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:SYN5_23169
$flag_synd_mission_counter += 1
print_with_number_big 'M_PASSS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
award_player_mission_respect 40
remove_blip $synd_contact_blip
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'SYND_5'
player_made_progress 1
remove_blip $garage_contact_blip
$garage_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $garage_blip_icon
return 

:SYN5_23260
if 
  is_var_text_label_empty s$shop_name
goto_if_false @SYN5_23278
restore_camera_jumpcut 

:SYN5_23278
delete_object 73@
remove_blip 79@
remove_animation "DANCING"
remove_animation "KISSING"
remove_animation "MISC"
remove_animation "RYDER"
remove_blip 80@
remove_blip 81@
remove_blip 82@
remove_blip 83@
remove_blip 84@
remove_blip 85@
remove_blip 79@
remove_blip 86@
kill_fx_system 59@
kill_fx_system 60@
kill_fx_system 61@
kill_fx_system 62@
mark_model_as_no_longer_needed 600
mark_model_as_no_longer_needed 566
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 452
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 120
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 174
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 413
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed #SNIPER_ANIM
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed #DYN_WOODPILE2
mark_model_as_no_longer_needed 355
remove_script_fire 72@
if 
  not is_char_dead $scplayer
goto_if_false @SYN5_23511
shut_char_up_for_scripted_speech $scplayer {state} False

:SYN5_23511
shut_all_chars_up False
release_weather 
remove_char_elegantly $cesar
remove_char_elegantly $ryder
remove_char_elegantly 34@
remove_char_elegantly 35@
switch_ped_roads_back_to_original -1755.6 {leftBottomY} 1256.6 {leftBottomZ} 0.0 {rightTopX} -1598.2 {rightTopY} 1660.1 {rightTopZ} 50.0
unload_special_character 1
unload_special_character 2
unload_special_character 3
unload_special_character 4
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:SYN5_23605
if 
  10 > 87@
goto_if_false @SYN5_23664
if 
  is_char_dead $cesar
goto_if_false @SYN5_23664
clear_prints 
print_now 'SYN5_04' {time} 7000 {flag} 1
90@ = 1

:SYN5_23664
if 
  87@ == 3
goto_if_false @SYN5_23714
if 
  is_char_dead $wuzi
goto_if_false @SYN5_23714
clear_prints 
88@ = 0
87@ = 10

:SYN5_23714
if or
  87@ == 2
  87@ > 3
goto_if_false @SYN5_23798
if 
  87@ <> 10
goto_if_false @SYN5_23798
if 
  is_char_dead $wuzi
goto_if_false @SYN5_23798
clear_prints 
print_now 'SYN5_05' {time} 7000 {flag} 1
90@ = 1

:SYN5_23798
return 

:SYN5_23800
if 
  is_char_dead 45@
goto_if_false @SYN5_23905
107@ = generate_random_int_in_range 0 {max} 2
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1713.16 {y} 1356.5699 {z} 16.2
set_char_heading 45@ {heading} 44.5
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 45@ {state} True
set_char_decision_maker 45@ {handleOrTemplate} 197@
set_char_stay_in_same_place 45@ {state} True
set_char_only_damaged_by_player 45@ {state} True

:SYN5_23905
if 
  is_char_dead 46@
goto_if_false @SYN5_24010
107@ = generate_random_int_in_range 0 {max} 2
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1682.9 {y} 1379.8 {z} 13.8
set_char_heading 46@ {heading} 36.8
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 46@ {state} True
set_char_decision_maker 46@ {handleOrTemplate} 197@
set_char_stay_in_same_place 46@ {state} True
set_char_only_damaged_by_player 46@ {state} True

:SYN5_24010
if 
  is_char_dead 47@
goto_if_false @SYN5_24115
107@ = generate_random_int_in_range 0 {max} 2
47@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.2 {y} 1393.2 {z} 20.5
set_char_heading 47@ {heading} 276.9
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 47@ {state} True
set_char_decision_maker 47@ {handleOrTemplate} 197@
set_char_stay_in_same_place 47@ {state} True
set_char_only_damaged_by_player 47@ {state} True

:SYN5_24115
if 
  is_char_dead 48@
goto_if_false @SYN5_24220
107@ = generate_random_int_in_range 0 {max} 2
48@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1686.4 {y} 1345.6 {z} 16.2
set_char_heading 48@ {heading} 4.0
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 48@ {state} True
set_char_decision_maker 48@ {handleOrTemplate} 197@
set_char_stay_in_same_place 48@ {state} True
set_char_only_damaged_by_player 48@ {state} True

:SYN5_24220
if 
  is_char_dead 49@
goto_if_false @SYN5_24325
107@ = generate_random_int_in_range 0 {max} 2
49@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1661.0 {y} 1362.2 {z} 17.4
set_char_heading 49@ {heading} 236.8
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 49@ {state} True
set_char_decision_maker 49@ {handleOrTemplate} 197@
set_char_stay_in_same_place 49@ {state} True
set_char_only_damaged_by_player 49@ {state} True

:SYN5_24325
if 
  is_char_dead 50@
goto_if_false @SYN5_24430
107@ = generate_random_int_in_range 0 {max} 2
50@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1641.6 {y} 1369.9 {z} 17.4
set_char_heading 50@ {heading} 211.1
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 300000
task_set_ignore_weapon_range_flag 50@ {state} True
set_char_decision_maker 50@ {handleOrTemplate} 197@
set_char_stay_in_same_place 50@ {state} True
set_char_only_damaged_by_player 50@ {state} True

:SYN5_24430
return 

:SYN5_24432
if 
  is_char_dead $wuzi
goto_if_false @SYN5_24602
$wuzi = create_char PedType.Mission1 {modelId} 120 {x} -1687.4 {y} 1321.1 {z} 6.2
set_char_heading $wuzi {heading} 326.8
set_char_visible $wuzi {state} False
give_weapon_to_char $wuzi {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_never_targetted $wuzi {state} True
set_char_decision_maker $wuzi {handleOrTemplate} 197@
set_char_stay_in_same_place $wuzi {state} True
set_char_only_damaged_by_player $wuzi {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@

:SYN5_24602
if 
  is_char_dead 36@
goto_if_false @SYN5_24775
36@ = create_char PedType.Mission1 {modelId} 117 {x} -1689.5 {y} 1320.2 {z} 6.2
set_char_heading 36@ {heading} 312.1
give_weapon_to_char 36@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_duck 36@ {time} 360000000
set_char_never_targetted 36@ {state} True
set_char_decision_maker 36@ {handleOrTemplate} 197@
set_char_stay_in_same_place 36@ {state} True
set_char_only_damaged_by_player 36@ {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@

:SYN5_24775
if 
  is_char_dead 37@
goto_if_false @SYN5_24948
37@ = create_char PedType.Mission1 {modelId} 117 {x} -1688.1 {y} 1319.3 {z} 6.2
set_char_heading 37@ {heading} 327.2
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_duck 37@ {time} 360000000
set_char_never_targetted 37@ {state} True
set_char_decision_maker 37@ {handleOrTemplate} 197@
set_char_stay_in_same_place 37@ {state} True
set_char_only_damaged_by_player 37@ {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@

:SYN5_24948
if 
  is_char_dead 38@
goto_if_false @SYN5_25121
38@ = create_char PedType.Mission1 {modelId} 117 {x} -1686.5 {y} 1318.0 {z} 6.2
set_char_heading 38@ {heading} 346.0
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 30000
task_duck 38@ {time} 360000000
set_char_never_targetted 38@ {state} True
set_char_decision_maker 38@ {handleOrTemplate} 197@
set_char_stay_in_same_place 38@ {state} True
set_char_only_damaged_by_player 38@ {state} True
195@ = open_sequence_task 
task_set_ignore_weapon_range_flag -1 {state} True
task_toggle_duck -1 {state} True
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@

:SYN5_25121
return 

:SYN5_25123
if 
  is_char_dead 35@
goto_if_false @SYN5_25219
35@ = create_char PedType.Mission2 {modelId} 293 {x} -1716.0 {y} 1349.8 {z} 6.2
set_char_accuracy 35@ {accuracy} 130@
set_anim_group_for_char 35@ {animGroup} "GANG2"
set_char_heading 35@ {heading} 229.4
give_weapon_to_char 35@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_decision_maker 35@ {handleOrTemplate} 197@
set_char_stay_in_same_place 35@ {state} True

:SYN5_25219
if 
  is_char_dead 45@
goto_if_false @SYN5_25306
107@ = generate_random_int_in_range 0 {max} 2
45@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1716.8 {y} 1351.6 {z} 6.2
set_char_accuracy 45@ {accuracy} 130@
set_char_heading 45@ {heading} 229.4
set_char_decision_maker 45@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 45@ {state} True

:SYN5_25306
if 
  is_char_dead 46@
goto_if_false @SYN5_25405
107@ = generate_random_int_in_range 0 {max} 2
46@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1720.5 {y} 1353.7 {z} 6.2
set_char_accuracy 46@ {accuracy} 130@
set_anim_group_for_char 46@ {animGroup} "GANG2"
set_char_heading 46@ {heading} 229.4
set_char_decision_maker 46@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 46@ {state} True

:SYN5_25405
if 
  is_char_dead 47@
goto_if_false @SYN5_25502
107@ = generate_random_int_in_range 0 {max} 2
47@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1718.4 {y} 1351.3 {z} 6.2
set_char_accuracy 47@ {accuracy} 130@
set_char_heading 47@ {heading} 236.0
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 47@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 47@ {state} True

:SYN5_25502
if 
  is_char_dead 48@
goto_if_false @SYN5_25611
107@ = generate_random_int_in_range 0 {max} 2
48@ = create_char PedType.Mission2 {modelId} 108@(107@,7i) {x} -1718.2 {y} 1353.3 {z} 6.2
set_char_accuracy 48@ {accuracy} 130@
set_anim_group_for_char 48@ {animGroup} "GANG1"
set_char_heading 48@ {heading} 301.0
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 48@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 48@ {state} True

:SYN5_25611
return 

:SYN5_25613
if 
  is_car_dead 55@
goto_if_false @SYN5_25693
custom_plate_for_next_car 600 {text} "_SHERM__"
55@ = create_car 600 {x} -1774.2 {y} 1376.8 {z} 5.7
change_car_colour 55@ {color1} 84 {color2} 84
set_car_heading 55@ {heading} 251.8
lock_car_doors 55@ {lockStatus} CarLock.LockoutPlayerOnly

:SYN5_25693
if 
  is_char_dead $ryder
goto_if_false @SYN5_25769
$ryder = create_char_inside_car 55@ {pedType} PedType.Mission2 {modelId} 291
set_char_accuracy $ryder {accuracy} 130@
give_weapon_to_char $ryder {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_decision_maker $ryder {handleOrTemplate} 197@
set_char_only_damaged_by_player $ryder {state} True
set_char_suffers_critical_hits $ryder {state} False
add_armour_to_char $ryder {amount} 100

:SYN5_25769
if 
  is_char_dead 39@
goto_if_false @SYN5_25846
107@ = generate_random_int_in_range 3 {max} 5
39@ = create_char_as_passenger 55@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} -1
set_char_accuracy 39@ {accuracy} 130@
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 39@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 39@ {state} True

:SYN5_25846
if 
  is_car_dead 56@
goto_if_false @SYN5_25902
56@ = create_car 566 {x} -1784.2 {y} 1379.8 {z} 5.7
set_car_heading 56@ {heading} 251.8
lock_car_doors 56@ {lockStatus} CarLock.LockoutPlayerOnly

:SYN5_25902
if 
  is_char_dead 41@
goto_if_false @SYN5_25977
107@ = generate_random_int_in_range 3 {max} 5
41@ = create_char_inside_car 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
set_char_accuracy 41@ {accuracy} 130@
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 41@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 41@ {state} True

:SYN5_25977
if 
  is_char_dead 42@
goto_if_false @SYN5_26054
107@ = generate_random_int_in_range 3 {max} 5
42@ = create_char_as_passenger 56@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
set_char_accuracy 42@ {accuracy} 130@
give_weapon_to_char 42@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 42@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 42@ {state} True

:SYN5_26054
if 
  is_car_dead 57@
goto_if_false @SYN5_26110
57@ = create_car 566 {x} -1795.0 {y} 1383.6 {z} 5.7
set_car_heading 57@ {heading} 251.8
lock_car_doors 57@ {lockStatus} CarLock.LockoutPlayerOnly

:SYN5_26110
if 
  is_char_dead 43@
goto_if_false @SYN5_26185
107@ = generate_random_int_in_range 3 {max} 5
43@ = create_char_inside_car 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i)
set_char_accuracy 43@ {accuracy} 130@
give_weapon_to_char 43@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 43@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 43@ {state} True

:SYN5_26185
if 
  is_char_dead 44@
goto_if_false @SYN5_26262
107@ = generate_random_int_in_range 3 {max} 5
44@ = create_char_as_passenger 57@ {pedType} PedType.Mission2 {modelId} 108@(107@,7i) {seat} SeatId.BikeRear
set_char_accuracy 44@ {accuracy} 130@
give_weapon_to_char 44@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 44@ {handleOrTemplate} 196@
set_char_only_damaged_by_player 44@ {state} True

:SYN5_26262
return 

:SYN5_26264
if 
  is_car_dead 58@
goto_if_false @SYN5_26372
58@ = create_car 487 {x} -1600.9 {y} 1424.6 {z} 300.8
set_car_heading 58@ {heading} 97.2
lock_car_doors 58@ {lockStatus} CarLock.LockoutPlayerOnly
set_heli_reached_target_distance 58@ {distance} 3
set_heli_blades_full_speed 58@
set_car_forward_speed 58@ {forwardSpeed} 10.0
heli_goto_coords 58@ {x} -1600.9 {y} 1424.6 {z} 300.0 {minAltitude} 0.0 {maxAltitude} 300.0

:SYN5_26372
if 
  is_char_dead 34@
goto_if_false @SYN5_26435
34@ = create_char_as_passenger 58@ {pedType} PedType.Mission2 {modelId} 292 {seat} SeatId.BikeRear
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_decision_maker 34@ {handleOrTemplate} 197@
set_char_suffers_critical_hits 34@ {state} False
set_char_only_damaged_by_player 34@ {state} True

:SYN5_26435
return 

:SYN5_26437
if 
  not is_char_dead 45@
goto_if_false @SYN5_26586
if 
  115@ == 0
goto_if_false @SYN5_26586
195@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1705.8 {y} 1359.5 {z} 16.2 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1701.3 {y} 1356.7 {z} 16.2 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 236.7
task_set_char_decision_maker -1 {handleOrTemplate} 196@
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26561
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_26561
close_sequence_task 195@
perform_sequence_task 45@ {sequence} 195@
clear_sequence_task 195@
115@ = 1

:SYN5_26586
if 
  not is_char_dead 46@
goto_if_false @SYN5_26726
if 
  116@ == 0
goto_if_false @SYN5_26726
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26701
task_go_straight_to_coord -1 {x} -1703.3 {y} 1361.5 {z} 16.2 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1699.8 {y} 1357.9 {z} 16.2 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_26701
close_sequence_task 195@
perform_sequence_task 46@ {sequence} 195@
clear_sequence_task 195@
116@ = 1

:SYN5_26726
if 
  not is_char_dead 47@
goto_if_false @SYN5_26866
if 
  117@ == 0
goto_if_false @SYN5_26866
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26841
task_go_straight_to_coord -1 {x} -1689.2 {y} 1371.8 {z} 14.0 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 202.3
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_shoot_at_coord -1 {x} -1687.6 {y} 1367.1 {z} 15.0 {time} -2

:SYN5_26841
close_sequence_task 195@
perform_sequence_task 47@ {sequence} 195@
clear_sequence_task 195@
117@ = 1

:SYN5_26866
if 
  not is_char_dead 48@
goto_if_false @SYN5_26969
if 
  118@ == 0
goto_if_false @SYN5_26969
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_26944
task_achieve_heading -1 {heading} 107.3
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_26944
close_sequence_task 195@
perform_sequence_task 48@ {sequence} 195@
clear_sequence_task 195@
118@ = 1

:SYN5_26969
if 
  not is_char_dead 49@
goto_if_false @SYN5_27086
if 
  119@ == 0
goto_if_false @SYN5_27086
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_27061
task_go_straight_to_coord -1 {x} -1674.2 {y} 1345.9 {z} 16.2 {speed} MoveState.Run {time} -1
task_set_char_decision_maker -1 {handleOrTemplate} 196@
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_27061
close_sequence_task 195@
perform_sequence_task 49@ {sequence} 195@
clear_sequence_task 195@
119@ = 1

:SYN5_27086
if 
  not is_char_dead 50@
goto_if_false @SYN5_27241
if 
  120@ == 0
goto_if_false @SYN5_27241
task_set_ignore_weapon_range_flag 50@ {state} True
195@ = open_sequence_task 
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_27216
task_go_straight_to_coord -1 {x} -1643.6 {y} 1368.7 {z} 17.8 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 136.5
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} -1661.5 {y} 1354.3 {z} 15.1 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $wuzi

:SYN5_27216
close_sequence_task 195@
perform_sequence_task 50@ {sequence} 195@
clear_sequence_task 195@
120@ = 1

:SYN5_27241
if 
  not is_char_dead $wuzi
goto_if_false @SYN5_27318
if 
  121@ == 0
goto_if_false @SYN5_27318
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task $wuzi {sequence} 195@
clear_sequence_task 195@
121@ = 1

:SYN5_27318
if 
  not is_char_dead 36@
goto_if_false @SYN5_27395
if 
  122@ == 0
goto_if_false @SYN5_27395
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task 36@ {sequence} 195@
clear_sequence_task 195@
122@ = 1

:SYN5_27395
if 
  not is_char_dead 37@
goto_if_false @SYN5_27472
if 
  123@ == 0
goto_if_false @SYN5_27472
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task 37@ {sequence} 195@
clear_sequence_task 195@
123@ = 1

:SYN5_27472
if 
  not is_char_dead 38@
goto_if_false @SYN5_27549
if 
  124@ == 0
goto_if_false @SYN5_27549
195@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 196@
close_sequence_task 195@
perform_sequence_task 38@ {sequence} 195@
clear_sequence_task 195@
124@ = 1

:SYN5_27549
return 

:SYN5_27551
if 
  not is_char_dead $ryder
goto_if_false @SYN5_29052
if 
  not is_car_dead 65@
goto_if_false @SYN5_29052
if 
  is_char_in_car $ryder {vehicle} 65@
goto_if_false @SYN5_29052
if 
  125@ == 0
goto_if_false @SYN5_27923
set_char_drowns_in_water $ryder {state} True
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1500.087 {y} 1396.939 {z} -0.7305 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1347.703 {y} 1319.215 {z} 0.0282 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1250.0699 {y} 1178.178 {z} -0.1243 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1158.0 {y} 1033.016 {z} -0.1089 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1054.175 {y} 920.3442 {z} 0.0405 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -1005.599 {y} 787.5093 {z} 0.2581 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -883.1418 {y} 608.1723 {z} -0.1191 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -735.4338 {y} 521.1882 {z} -0.1478 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 1
return 

:SYN5_27923
if 
  125@ == 1
goto_if_false @SYN5_28266
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28266
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} -572.1049 {y} 467.9407 {z} 0.3352 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -404.1097 {y} 430.3622 {z} 0.3394 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -233.5327 {y} 424.5564 {z} 0.2022 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} -63.8903 {y} 409.6541 {z} 0.0351 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 106.3031 {y} 423.1877 {z} -0.0997 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 274.607 {y} 452.5373 {z} 0.0679 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 442.7346 {y} 482.1971 {z} 0.239 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 611.5419 {y} 513.3603 {z} 0.1773 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 2
return 

:SYN5_28266
if 
  125@ == 2
goto_if_false @SYN5_28609
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28609
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} 779.744 {y} 547.2416 {z} 0.1644 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 945.0496 {y} 589.466 {z} 0.0676 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1113.1169 {y} 620.2682 {z} -0.0797 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1282.496 {y} 600.009 {z} -0.1302 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1451.739 {y} 568.6847 {z} -0.1388 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1620.593 {y} 536.4412 {z} -0.0845 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1789.897 {y} 510.063 {z} -0.3449 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 1959.2061 {y} 491.1599 {z} -0.0624 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 3
return 

:SYN5_28609
if 
  125@ == 3
goto_if_false @SYN5_28898
$task_status = get_script_task_status $ryder {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @SYN5_28898
195@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2130.127 {y} 479.1175 {z} 0.132 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2301.9819 {y} 467.9901 {z} -0.1513 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2471.6641 {y} 456.259 {z} -0.0586 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2641.9819 {y} 442.9174 {z} 0.4767 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2812.749 {y} 425.1894 {z} 0.0436 {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2982.4719 {y} 401.9557 {z} -0.7104 {speed} 100.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_temp_action -1 {vehicle} 65@ {actionId} TempAction.GoForward {time} 860000
close_sequence_task 195@
perform_sequence_task $ryder {sequence} 195@
clear_sequence_task 195@
125@ = 4

:SYN5_28898
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 65@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @SYN5_28946
set_boat_cruise_speed 65@ {maxSpeed} 40.0
goto @SYN5_29052

:SYN5_28946
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 65@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @SYN5_28994
set_boat_cruise_speed 65@ {maxSpeed} 30.0
goto @SYN5_29052

:SYN5_28994
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 65@ {xRadius} 180.0 {yRadius} 180.0 {drawSphere} False
goto_if_false @SYN5_29042
set_boat_cruise_speed 65@ {maxSpeed} 20.0
goto @SYN5_29052

:SYN5_29042
set_boat_cruise_speed 65@ {maxSpeed} 10.0

:SYN5_29052
return 

:SYN5_29054
if 
  126@ == 1
goto_if_false @SYN5_29118
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_29118
remove_blip 79@
79@ = add_blip_for_char $cesar
set_blip_as_friendly 79@ {state} True
126@ = 0

:SYN5_29118
if 
  126@ == 0
goto_if_false @SYN5_29239
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @SYN5_29239
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_29203
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:SYN5_29203
remove_blip 79@
if 
  not is_char_dead 35@
goto_if_false @SYN5_29232
79@ = add_blip_for_char 35@

:SYN5_29232
126@ = 1

:SYN5_29239
return 

:SYN5_29241
129@ = generate_random_int_in_range 1 {max} 37
if 
  129@ == 1
goto_if_false @SYN5_29283
custom_plate_for_next_car 128@ {text} "GOT_M00_"

:SYN5_29283
if 
  129@ == 2
goto_if_false @SYN5_29316
custom_plate_for_next_car 128@ {text} "M00TV_4U"

:SYN5_29316
if 
  129@ == 3
goto_if_false @SYN5_29349
custom_plate_for_next_car 128@ {text} "MATHEW_2"

:SYN5_29349
if 
  129@ == 4
goto_if_false @SYN5_29382
custom_plate_for_next_car 128@ {text} "D4_DEW0R"

:SYN5_29382
if 
  129@ == 5
goto_if_false @SYN5_29415
custom_plate_for_next_car 128@ {text} "D0DE_777"

:SYN5_29415
if 
  129@ == 6
goto_if_false @SYN5_29448
custom_plate_for_next_car 128@ {text} "DAM0_666"

:SYN5_29448
if 
  129@ == 7
goto_if_false @SYN5_29481
custom_plate_for_next_car 128@ {text} "C0NEY_88"

:SYN5_29481
if 
  129@ == 8
goto_if_false @SYN5_29514
custom_plate_for_next_car 128@ {text} "PRE4CHER"

:SYN5_29514
if 
  129@ == 9
goto_if_false @SYN5_29547
custom_plate_for_next_car 128@ {text} "DBP_4NDY"

:SYN5_29547
if 
  129@ == 10
goto_if_false @SYN5_29580
custom_plate_for_next_car 128@ {text} "EV1L_SLY"

:SYN5_29580
if 
  129@ == 11
goto_if_false @SYN5_29613
custom_plate_for_next_car 128@ {text} "N1_R4V3N"

:SYN5_29613
if 
  129@ == 12
goto_if_false @SYN5_29646
custom_plate_for_next_car 128@ {text} "D1VX_Z00"

:SYN5_29646
if 
  129@ == 13
goto_if_false @SYN5_29678
custom_plate_for_next_car 128@ {text} "MR_B3NN"

:SYN5_29678
if 
  129@ == 14
goto_if_false @SYN5_29711
custom_plate_for_next_car 128@ {text} "R3D_R4SP"

:SYN5_29711
if 
  129@ == 15
goto_if_false @SYN5_29744
custom_plate_for_next_car 128@ {text} "LA_B0MBA"

:SYN5_29744
if 
  129@ == 16
goto_if_false @SYN5_29777
custom_plate_for_next_car 128@ {text} "L3337_0G"

:SYN5_29777
if 
  129@ == 17
goto_if_false @SYN5_29810
custom_plate_for_next_car 128@ {text} "BUDD4H_X"

:SYN5_29810
if 
  129@ == 18
goto_if_false @SYN5_29843
custom_plate_for_next_car 128@ {text} "T3H_BUCK"

:SYN5_29843
if 
  129@ == 19
goto_if_false @SYN5_29876
custom_plate_for_next_car 128@ {text} "CHUNKY_1"

:SYN5_29876
if 
  129@ == 20
goto_if_false @SYN5_29909
custom_plate_for_next_car 128@ {text} "EV1L_BNZ"

:SYN5_29909
if 
  129@ == 21
goto_if_false @SYN5_29942
custom_plate_for_next_car 128@ {text} "S4ND_M4N"

:SYN5_29942
if 
  129@ == 22
goto_if_false @SYN5_29975
custom_plate_for_next_car 128@ {text} "RKK_DBP1"

:SYN5_29975
if 
  129@ == 23
goto_if_false @SYN5_30008
custom_plate_for_next_car 128@ {text} "RE1_K0KU"

:SYN5_30008
if 
  129@ == 24
goto_if_false @SYN5_30041
custom_plate_for_next_car 128@ {text} "S3XY_JUD"

:SYN5_30041
if 
  129@ == 25
goto_if_false @SYN5_30074
custom_plate_for_next_car 128@ {text} "SUNRA_93"

:SYN5_30074
if 
  129@ == 26
goto_if_false @SYN5_30107
custom_plate_for_next_car 128@ {text} "UG_FUX69"

:SYN5_30107
if 
  129@ == 27
goto_if_false @SYN5_30140
custom_plate_for_next_car 128@ {text} "LI0N_CUM"

:SYN5_30140
if 
  129@ == 28
goto_if_false @SYN5_30173
custom_plate_for_next_car 128@ {text} "RKK_PWND"

:SYN5_30173
if 
  129@ == 29
goto_if_false @SYN5_30206
custom_plate_for_next_car 128@ {text} "HAZE_B0B"

:SYN5_30206
if 
  129@ == 30
goto_if_false @SYN5_30239
custom_plate_for_next_car 128@ {text} "T3H_FLUF"

:SYN5_30239
if 
  129@ == 31
goto_if_false @SYN5_30272
custom_plate_for_next_car 128@ {text} "BM_4NDY_"

:SYN5_30272
if 
  129@ == 32
goto_if_false @SYN5_30305
custom_plate_for_next_car 128@ {text} "BM_D34N_"

:SYN5_30305
if 
  129@ == 33
goto_if_false @SYN5_30338
custom_plate_for_next_car 128@ {text} "BM_L4C3Y"

:SYN5_30338
if 
  129@ == 34
goto_if_false @SYN5_30371
custom_plate_for_next_car 128@ {text} "BM_D3V__"

:SYN5_30371
if 
  129@ == 35
goto_if_false @SYN5_30404
custom_plate_for_next_car 128@ {text} "NU_SK00L"

:SYN5_30404
if 
  129@ == 36
goto_if_false @SYN5_30437
custom_plate_for_next_car 128@ {text} "G4L_AVET"

:SYN5_30437
if 
  129@ == 37
goto_if_false @SYN5_30470
custom_plate_for_next_car 128@ {text} "M0J0_J0J"

:SYN5_30470
return 

:SYN5_30472
if 
  132@ == 1
goto_if_false @SYN5_30521
set_lvar_text_label 136@s = 'SYN5_AA'
set_lvar_int_to_constant 168@ = 39600
184@ = 1

:SYN5_30521
if 
  132@ == 2
goto_if_false @SYN5_30881
set_lvar_text_label 136@s = 'SYN5_BA'
set_lvar_text_label 138@s = 'SYN5_BB'
set_lvar_text_label 140@s = 'SYN5_BC'
set_lvar_text_label 142@s = 'SYN5_BD'
set_lvar_text_label 144@s = 'SYN5_BE'
set_lvar_text_label 146@s = 'SYN5_BF'
set_lvar_text_label 148@s = 'MOBRING'
set_lvar_text_label 150@s = 'SYN5_BG'
set_lvar_text_label 152@s = 'SYN5_BH'
set_lvar_text_label 154@s = 'SYN5_BJ'
set_lvar_text_label 156@s = 'SYN5_BK'
set_lvar_text_label 158@s = 'SYN5_BL'
set_lvar_text_label 160@s = 'SYN5_BM'
set_lvar_text_label 162@s = 'SYN5_BN'
set_lvar_int_to_constant 168@ = 39601
set_lvar_int_to_constant 169@ = 39602
set_lvar_int_to_constant 170@ = 39603
set_lvar_int_to_constant 171@ = 39604
set_lvar_int_to_constant 172@ = 39605
set_lvar_int_to_constant 173@ = 39606
set_lvar_int_to_constant 174@ = 20804
set_lvar_int_to_constant 175@ = 39607
set_lvar_int_to_constant 176@ = 39608
set_lvar_int_to_constant 177@ = 39609
set_lvar_int_to_constant 178@ = 39610
set_lvar_int_to_constant 179@ = 39611
set_lvar_int_to_constant 180@ = 39612
set_lvar_int_to_constant 181@ = 39613
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_30881
if 
  132@ == 3
goto_if_false @SYN5_31027
set_lvar_text_label 138@s = 'SYN5_CB'
set_lvar_text_label 140@s = 'SYN5_CC'
set_lvar_text_label 142@s = 'SYN5_CD'
set_lvar_text_label 144@s = 'SYN5_CE'
set_lvar_text_label 146@s = 'SYN5_CF'
set_lvar_int_to_constant 169@ = 39615
set_lvar_int_to_constant 170@ = 39616
set_lvar_int_to_constant 171@ = 39617
set_lvar_int_to_constant 172@ = 39618
set_lvar_int_to_constant 173@ = 39619
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31027
if 
  132@ == 4
goto_if_false @SYN5_31173
set_lvar_text_label 136@s = 'SYN5_DA'
set_lvar_text_label 138@s = 'SYN5_DB'
set_lvar_text_label 140@s = 'SYN5_DC'
set_lvar_text_label 142@s = 'SYN5_DD'
set_lvar_text_label 144@s = 'SYN5_DE'
set_lvar_int_to_constant 168@ = 39620
set_lvar_int_to_constant 169@ = 39621
set_lvar_int_to_constant 170@ = 39622
set_lvar_int_to_constant 171@ = 39623
set_lvar_int_to_constant 172@ = 39624
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31173
if 
  132@ == 5
goto_if_false @SYN5_31295
set_lvar_text_label 136@s = 'SYN5_EA'
set_lvar_text_label 138@s = 'SYN5_EB'
set_lvar_text_label 140@s = 'SYN5_EC'
set_lvar_text_label 142@s = 'SYN5_ED'
set_lvar_int_to_constant 168@ = 39625
set_lvar_int_to_constant 169@ = 39626
set_lvar_int_to_constant 170@ = 39627
set_lvar_int_to_constant 171@ = 39628
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31295
if 
  132@ == 7
goto_if_false @SYN5_31585
set_lvar_text_label 136@s = 'SYN5_GZ'
set_lvar_text_label 140@s = 'SYN5_GC'
set_lvar_text_label 142@s = 'SYN5_GD'
set_lvar_text_label 144@s = 'SYN5_GE'
set_lvar_text_label 150@s = 'SYN5_GH'
set_lvar_text_label 152@s = 'SYN5_GJ'
set_lvar_text_label 154@s = 'SYN5_GK'
set_lvar_text_label 156@s = 'SYN5_GL'
set_lvar_text_label 158@s = 'SYN5_GM'
set_lvar_text_label 160@s = 'SYN5_GX'
set_lvar_text_label 162@s = 'SYN5_GW'
set_lvar_int_to_constant 168@ = 39648
set_lvar_int_to_constant 170@ = 39633
set_lvar_int_to_constant 171@ = 39634
set_lvar_int_to_constant 172@ = 39635
set_lvar_int_to_constant 175@ = 39638
set_lvar_int_to_constant 176@ = 39639
set_lvar_int_to_constant 177@ = 39640
set_lvar_int_to_constant 178@ = 39641
set_lvar_int_to_constant 179@ = 39642
set_lvar_int_to_constant 180@ = 39646
set_lvar_int_to_constant 181@ = 39645
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31585
if 
  132@ == 8
goto_if_false @SYN5_31755
set_lvar_text_label 136@s = 'SYN5_HH'
set_lvar_text_label 138@s = 'SYN5_HA'
set_lvar_text_label 140@s = 'SYN5_HB'
set_lvar_text_label 142@s = 'SYN5_HC'
set_lvar_text_label 144@s = 'SYN5_HK'
set_lvar_text_label 146@s = 'SYN5_HL'
set_lvar_int_to_constant 168@ = 39656
set_lvar_int_to_constant 169@ = 39649
set_lvar_int_to_constant 170@ = 39650
set_lvar_int_to_constant 171@ = 39651
set_lvar_int_to_constant 172@ = 39658
set_lvar_int_to_constant 173@ = 39659
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31755
if 
  132@ == 9
goto_if_false @SYN5_31853
set_lvar_text_label 136@s = 'SYN5_JA'
set_lvar_text_label 138@s = 'SYN5_JB'
set_lvar_text_label 140@s = 'SYN5_JC'
set_lvar_int_to_constant 168@ = 39660
set_lvar_int_to_constant 169@ = 39661
set_lvar_int_to_constant 170@ = 39662
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_31853
if 
  132@ == 10
goto_if_false @SYN5_32020
set_lvar_text_label 136@s = 'MOBRING'
set_lvar_text_label 138@s = 'SYN5_KA'
set_lvar_text_label 140@s = 'SYN5_KB'
set_lvar_text_label 142@s = 'SYN5_KC'
set_lvar_text_label 144@s = 'SYN5_KD'
set_lvar_text_label 146@s = 'SYN5_KE'
set_lvar_int_to_constant 168@ = 20804
set_lvar_int_to_constant 169@ = 39663
set_lvar_int_to_constant 170@ = 39664
set_lvar_int_to_constant 171@ = 39665
set_lvar_int_to_constant 172@ = 39666
set_lvar_int_to_constant 173@ = 39667
184@ = 6

:SYN5_32020
if 
  132@ == 11
goto_if_false @SYN5_32093
set_lvar_text_label 136@s = 'SYN5_HE'
set_lvar_text_label 138@s = 'SYN5_HF'
set_lvar_int_to_constant 168@ = 39653
set_lvar_int_to_constant 169@ = 39654
184@ = 2

:SYN5_32093
if 
  132@ == 14
goto_if_false @SYN5_32207
set_lvar_text_label 136@s = 'CESX_BA'
set_lvar_text_label 138@s = 'CESX_BB'
set_lvar_text_label 140@s = 'CESX_BC'
set_lvar_text_label 142@s = 'CESX_BD'
set_lvar_int_to_constant 168@ = 10406
set_lvar_int_to_constant 169@ = 10407
set_lvar_int_to_constant 170@ = 10408
set_lvar_int_to_constant 171@ = 10409
set_lvar_int_to_lvar_int 184@ = 135@

:SYN5_32207
set_lvar_int_to_lvar_int 187@ = 134@
185@ = 0
186@ = 0
188@ = 1
return 

:SYN5_32238
if or
  132@ == 1
  132@ == 2
  132@ == 5
  132@ == 7
  132@ == 8
  132@ == 10
goto_if_false @SYN5_32345
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32338
gosub @SYN5_33325
gosub @SYN5_33432
gosub @SYN5_33586
goto @SYN5_32345

:SYN5_32338
132@ = 0

:SYN5_32345
if or
  132@ == 3
  132@ == 4
goto_if_false @SYN5_32478
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32471
gosub @SYN5_33325
gosub @SYN5_33432
if 
  not is_char_dead $cesar
goto_if_false @SYN5_32433
gosub @SYN5_33586
goto @SYN5_32464

:SYN5_32433
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_32464
goto @SYN5_32478

:SYN5_32471
132@ = 0

:SYN5_32478
if 
  132@ == 9
goto_if_false @SYN5_32604
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32597
gosub @SYN5_33325
gosub @SYN5_33432
if 
  not is_char_dead 67@
goto_if_false @SYN5_32559
gosub @SYN5_33586
goto @SYN5_32590

:SYN5_32559
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_32590
goto @SYN5_32604

:SYN5_32597
132@ = 0

:SYN5_32604
if 
  132@ == 11
goto_if_false @SYN5_32730
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32723
gosub @SYN5_33325
gosub @SYN5_33432
if 
  not is_char_dead $ryder
goto_if_false @SYN5_32685
gosub @SYN5_33586
goto @SYN5_32716

:SYN5_32685
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_32716
goto @SYN5_32730

:SYN5_32723
132@ = 0

:SYN5_32730
if 
  87@ == 5
goto_if_false @SYN5_33323
if 
  88@ == 0
goto_if_false @SYN5_33323
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_32792
goto @SYN5_32909

:SYN5_32792
if 
  14 > 132@
goto_if_false @SYN5_32909
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_32836
134@ += 1

:SYN5_32836
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
clear_prints 
set_lvar_int_to_lvar_int 189@ = 132@
set_lvar_int_to_lvar_int 190@ = 134@
132@ = 14
134@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_32909
if 
  132@ == 14
goto_if_false @SYN5_33100
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_33077
if 
  is_int_lvar_greater_than_int_lvar 184@ > 134@
goto_if_false @SYN5_33047
gosub @SYN5_33325
gosub @SYN5_33432
if 
  not is_char_dead $cesar
goto_if_false @SYN5_33009
gosub @SYN5_33586
goto @SYN5_33040

:SYN5_33009
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
185@ = 0
186@ = 0

:SYN5_33040
goto @SYN5_33070

:SYN5_33047
print 'SYN5_10' {time} 7000 {flag} 1
132@ = 15

:SYN5_33070
goto @SYN5_33100

:SYN5_33077
print 'SYN5_10' {time} 7000 {flag} 1
132@ = 15

:SYN5_33100
if 
  132@ == 15
goto_if_false @SYN5_33153
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_33153
132@ = 16
134@ = 0
clear_prints 

:SYN5_33153
if 
  132@ == 16
goto_if_false @SYN5_33323
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @SYN5_33268
TIMERB = 0
set_lvar_int_to_lvar_int 132@ = 189@
set_lvar_int_to_lvar_int 134@ = 190@
gosub @SYN5_30472
if 
  189@ == 0
goto_if_false @SYN5_33261
print_now 'SYN5_06' {time} 4000 {flag} 1
TIMERB = 0

:SYN5_33261
goto @SYN5_33323

:SYN5_33268
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 136@(134@,16s)
132@ = 14
134@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 135@ = 134@
135@ += 1
gosub @SYN5_30472

:SYN5_33323
return 

:SYN5_33325
if 
  is_int_lvar_greater_than_int_lvar 184@ > 187@
goto_if_false @SYN5_33430
if 
  185@ == 0
goto_if_false @SYN5_33387
load_mission_audio MissionAudioSlot.Slot1 {audioId} 168@(187@,16i)
187@ += 1
185@ = 1

:SYN5_33387
if 
  186@ == 0
goto_if_false @SYN5_33430
load_mission_audio MissionAudioSlot.Slot2 {audioId} 168@(187@,16i)
187@ += 1
186@ = 1

:SYN5_33430
return 

:SYN5_33432
if 
  188@ == 1
goto_if_false @SYN5_33508
if 
  185@ == 1
goto_if_false @SYN5_33508
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @SYN5_33508
play_mission_audio MissionAudioSlot.Slot1
print_now 136@(134@,16s) {time} 4500 {flag} 1
185@ = 2

:SYN5_33508
if 
  188@ == 2
goto_if_false @SYN5_33584
if 
  186@ == 1
goto_if_false @SYN5_33584
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @SYN5_33584
play_mission_audio MissionAudioSlot.Slot2
print_now 136@(134@,16s) {time} 4500 {flag} 1
186@ = 2

:SYN5_33584
return 

:SYN5_33586
if 
  185@ == 2
goto_if_false @SYN5_33649
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @SYN5_33649
clear_this_print 136@(134@,16s)
134@ += 1
188@ = 2
185@ = 0

:SYN5_33649
if 
  186@ == 2
goto_if_false @SYN5_33712
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @SYN5_33712
clear_this_print 136@(134@,16s)
134@ += 1
188@ = 1
186@ = 0

:SYN5_33712
return 

//-------------Mission 65---------------
// Originally: T-Bone Mendez

:DRIV2
script_name 'DRIV2'
gosub @DRIV2_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV2_38
gosub @DRIV2_12867

:DRIV2_38
gosub @DRIV2_12949
terminate_this_script 

:DRIV2_47
register_mission_given 
load_mission_text 'FARLIE2'
$onmission = 1
wait 0
37@ = 4
$d2_num_packages_collected = 0
119@ = 0

:DRIV2_92
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_262
123@(119@,4i) = 0
175@(119@,4i) = 0
130@(119@,4i) = 0
139@(119@,4i) = 0
143@(119@,4i) = 0
147@(119@,4i) = 0
151@(119@,4i) = 0
66@(119@,4i) = 1000
70@(119@,4i) = 1000
159@(119@,4i) = 0
62@(119@,4f) = 20.0
115@(119@,4i) = 0
119@ += 1
goto @DRIV2_92

:DRIV2_262
90@ = -2730.1399
91@ = 84.24
92@ = 3.04
78@ = -2600.53
82@ = 1337.91
86@ = 5.6
79@ = -2855.52
83@ = 719.95
87@ = 26.84
80@ = -1897.9399
84@ = -576.43
88@ = 22.99
81@ = -2811.49
85@ = -326.14
89@ = 5.72
93@ = -2622.49
94@ = 1406.6
95@ = 6.15
122@ = 0
127@ = 0
128@ = 0
129@ = 0
134@ = 0
135@ = 1
136@ = 2
137@ = 3
138@ = 4
163@ = 0
164@ = 1
165@ = 2
155@ = 0
156@ = 0
157@ = 0
158@ = 0
166@ = 0
75@ = -2143.27
76@ = 918.38
77@ = 79.42
167@ = 0
168@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
179@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DRIV2_655
if 
  get_fading_status 
goto_if_false @DRIV2_679
wait 0
goto @DRIV2_655

:DRIV2_679
set_area_visible 3
load_cutscene 'FARL_2A'

:DRIV2_694
if 
  not has_cutscene_loaded 
goto_if_false @DRIV2_718
wait 0
goto @DRIV2_694

:DRIV2_718
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRIV2_727
if 
  not has_cutscene_finished 
goto_if_false @DRIV2_751
wait 0
goto @DRIV2_727

:DRIV2_751
do_fade 0 {direction} Fade.Out

:DRIV2_757
if 
  get_fading_status 
goto_if_false @DRIV2_781
wait 0
goto @DRIV2_757

:DRIV2_781
clear_cutscene 
set_player_control $player1 {state} False
set_area_visible 0
request_model 521
request_model 498
request_model #KMB_PACKET
request_model 100
request_model 47
request_model 352

:DRIV2_822
if or
  not has_model_loaded 521
  not has_model_loaded 498
  not has_model_loaded #KMB_PACKET
  not has_model_loaded 100
  not has_model_loaded 47
  not has_model_loaded 352
goto_if_false @DRIV2_872
wait 0
goto @DRIV2_822

:DRIV2_872
request_animation "BIKES"
request_animation "MISC"

:DRIV2_889
if or
  not has_animation_loaded "BIKES"
  not has_animation_loaded "MISC"
goto_if_false @DRIV2_928
wait 0
goto @DRIV2_889

:DRIV2_928
load_scene -2625.26 {y} 1407.3199 {z} 5.62
set_char_coordinates $scplayer {x} -2625.26 {y} 1407.3199 {z} 5.62
set_char_heading $scplayer {heading} 224.0
change_garage_type 'TBON' {type} GarageType.ForScriptToOpenAndClose
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In
if 
  179@ == 1
goto_if_false @DRIV2_1206
34@ = create_car 498 {x} 0.0 {y} 0.0 {z} -100.0
184@ = add_blip_for_car 34@
119@ = 0

:DRIV2_1075
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_1206
create_object #KMB_PACKET {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 38@(119@,4i)
add_blip_for_object 38@(119@,4i) {var_handle} 180@(119@,4i)
create_char PedType.Mission1 {modelId} 100 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 54@(119@,4i)
create_car 521 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 58@(119@,4i)
119@ += 1
goto @DRIV2_1075

:DRIV2_1206
switch_roads_off -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
184@ = add_blip_for_coord -1814.8199 {y} 381.4 {z} 17.09
set_coord_blip_appearance 184@ {color} CoordAppearance.Friend
print_now 'DRV3_11' {time} 10000 {flag} 0

:DRIV2_1281
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DRIV2_1307
goto @DRIV2_12885

:DRIV2_1307
if 
  127@ <> 1
goto_if_false @DRIV2_2338
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_1374
36@ = store_car_char_is_in $scplayer
if 
  174@ <> 1
goto_if_false @DRIV2_1374
174@ = 1

:DRIV2_1374
if and
  122@ <> 1
  locate_char_any_means_2d $scplayer {x} -1814.8199 {y} 381.4 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @DRIV2_1438
remove_blip 184@
gosub @DRIV2_3466
122@ = 1

:DRIV2_1438
if 
  122@ == 1
goto_if_false @DRIV2_2338
121@ = get_area_visible 
if 
  121@ == 0
goto_if_false @DRIV2_2249
119@ = 0

:DRIV2_1486
if and
  is_int_lvar_greater_than_int_lvar 37@ > 119@
  128@ <> 1
goto_if_false @DRIV2_1583
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_1569
110@ = get_char_highest_priority_event 54@(119@,4i)
if 
  is_int_lvar_equal_to_constant 110@ == 49
goto_if_false @DRIV2_1569
128@ = 1

:DRIV2_1569
119@ += 1
goto @DRIV2_1486

:DRIV2_1583
if 
  128@ <> 1
goto_if_false @DRIV2_2249
if and
  129@ <> 1
  is_projectile_in_area -1824.8199 {leftBottomY} 371.4 {leftBottomZ} 12.09 {rightTopX} -1804.8199 {rightTopY} 391.4 {rightTopZ} 22.09
goto_if_false @DRIV2_1665
129@ = 1
TIMERA = 0

:DRIV2_1665
if 
  129@ == 1
goto_if_false @DRIV2_2249
119@ = 0

:DRIV2_1690
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_2223
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_2209
$player_x, $player_y, $player_z = get_char_coordinates 54@(119@,4i)
set_lvar_float_to_var_float 186@ = $player_x
186@ -= 3.0
set_lvar_float_to_var_float 187@ = $player_x
187@ += 3.0
set_lvar_float_to_var_float 188@ = $player_y
188@ -= 3.0
set_lvar_float_to_var_float 189@ = $player_y
189@ += 3.0
set_lvar_float_to_var_float 190@ = $player_z
190@ -= 3.0
set_lvar_float_to_var_float 191@ = $player_z
191@ += 3.0
if or
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.Molotov {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.Rocket {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.WeakRocket {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.Small {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
  is_explosion_in_area ExplosionType.RcVehicle {leftBottomX} 186@ {leftBottomY} 188@ {leftBottomZ} 190@ {rightTopX} 187@ {rightTopY} 189@ {rightTopZ} 191@
goto_if_false @DRIV2_2209
if 
  not is_char_dead 54@
goto_if_false @DRIV2_2019
task_die 54@

:DRIV2_2019
if 
  not is_char_dead 55@
goto_if_false @DRIV2_2040
task_die 55@

:DRIV2_2040
if 
  not is_char_dead 56@
goto_if_false @DRIV2_2061
task_die 56@

:DRIV2_2061
if 
  not is_char_dead 57@
goto_if_false @DRIV2_2082
task_die 57@

:DRIV2_2082
if 
  not is_car_dead 58@
goto_if_false @DRIV2_2103
explode_car 58@

:DRIV2_2103
if 
  not is_car_dead 59@
goto_if_false @DRIV2_2124
explode_car 59@

:DRIV2_2124
if 
  not is_car_dead 60@
goto_if_false @DRIV2_2145
explode_car 60@

:DRIV2_2145
if 
  not is_car_dead 61@
goto_if_false @DRIV2_2166
explode_car 61@

:DRIV2_2166
delete_object 38@
delete_object 39@
delete_object 40@
delete_object 41@
print_now 'DRV3_9' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_2209
119@ += 1
goto @DRIV2_1690

:DRIV2_2223
if 
  TIMERA > 2000
goto_if_false @DRIV2_2249
128@ = 1

:DRIV2_2249
if or
  locate_char_any_means_2d $scplayer {x} -1814.8199 {y} 381.4 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  128@ == 1
goto_if_false @DRIV2_2338
remove_blip 184@
gosub @DRIV2_9220
127@ = 1
TIMERA = 0
print_help_forever 'DRV3_H'
TIMERB = 0

:DRIV2_2338
if 
  127@ == 1
goto_if_false @DRIV2_3459
if 
  171@ <> 1
goto_if_false @DRIV2_2402
if 
  TIMERB > 12000
goto_if_false @DRIV2_2402
clear_help 
171@ = 1

:DRIV2_2402
if 
  173@ <> 1
goto_if_false @DRIV2_2642
if or
  is_char_on_any_bike $scplayer
  is_char_on_foot $scplayer
goto_if_false @DRIV2_2635
119@ = 0

:DRIV2_2448
if and
  is_int_lvar_greater_than_int_lvar 37@ > 119@
  173@ <> 1
goto_if_false @DRIV2_2635
if and
  does_object_exist 38@(119@,4i)
  123@(119@,4i) <> 1
goto_if_false @DRIV2_2621
if or
  is_object_attached 38@(119@,4i)
  is_char_holding_object -1 {handle} 38@(119@,4i)
goto_if_false @DRIV2_2621
if 
  locate_char_any_means_object_2d $scplayer {object} 38@(119@,4i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRIV2_2621
print_help_forever 'DRV3_H'
173@ = 1
if 
  171@ <> 1
goto_if_false @DRIV2_2614
171@ = 1

:DRIV2_2614
TIMERB = 0

:DRIV2_2621
119@ += 1
goto @DRIV2_2448

:DRIV2_2635
goto @DRIV2_2688

:DRIV2_2642
if 
  172@ <> 1
goto_if_false @DRIV2_2688
if 
  TIMERB > 12000
goto_if_false @DRIV2_2688
clear_help 
172@ = 1

:DRIV2_2688
gosub @DRIV2_4732
gosub @DRIV2_6146
gosub @DRIV2_6715
gosub @DRIV2_6912
gosub @DRIV2_7110
if and
  155@ <> 1
  166@ <> 1
goto_if_false @DRIV2_2899
if 
  TIMERA > 280000
goto_if_false @DRIV2_2899
gosub @DRIV2_8109
155@ = 1
if or
  is_int_lvar_equal_to_int_lvar 130@ == 138@
  is_int_lvar_equal_to_int_lvar 131@ == 138@
  is_int_lvar_equal_to_int_lvar 132@ == 138@
  is_int_lvar_equal_to_int_lvar 133@ == 138@
goto_if_false @DRIV2_2899
set_lvar_int_to_lvar_int 192@ = 37@
sub_int_var_from_int_lvar 192@ -= $d2_num_packages_collected
if 
  192@ > 1
goto_if_false @DRIV2_2883
print_now 'DRV3_5' {time} 10000 {flag} 0
goto @DRIV2_2899

:DRIV2_2883
print_now 'DRV3_6' {time} 10000 {flag} 0

:DRIV2_2899
gosub @DRIV2_8280
gosub @DRIV2_7295
gosub @DRIV2_8654
gosub @DRIV2_7865
119@ = 0

:DRIV2_2934
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_3128
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_3114
get_script_task_status 54@(119@,4i) {taskId} -1 {var_status} 111@(119@,4i)
if and
  115@(119@,4i) == 0
  is_int_lvar_equal_to_constant 111@(119@,4i) == 7
goto_if_false @DRIV2_3048
set_char_relationship 54@(119@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
115@(119@,4i) = 1

:DRIV2_3048
if and
  115@(119@,4i) == 1
  not is_int_lvar_equal_to_constant 111@(119@,4i) == 7
goto_if_false @DRIV2_3114
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Hate
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Dislike
115@(119@,4i) = 0

:DRIV2_3114
119@ += 1
goto @DRIV2_2934

:DRIV2_3128
if and
  is_int_var_equal_to_int_lvar $d2_num_packages_collected == 37@
  166@ <> 1
goto_if_false @DRIV2_3191
185@ = add_blip_for_coord 93@ {y} 94@ {z} 95@
print_now 'DRV3_10' {time} 7000 {flag} 0
166@ = 1

:DRIV2_3191
if 
  166@ == 1
goto_if_false @DRIV2_3265
if 
  locate_char_any_means_3d $scplayer {x} 93@ {y} 94@ {z} 95@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @DRIV2_3265
gosub @DRIV2_11200
goto @DRIV2_12885

:DRIV2_3265
if 
  155@ == 1
goto_if_false @DRIV2_3363
gosub @DRIV2_8485
if 
  156@ == 1
goto_if_false @DRIV2_3363
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @DRIV2_3340
gosub @DRIV2_11715

:DRIV2_3340
print_now 'DRV3_7' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_3363
gosub @DRIV2_9032
if 
  157@ == 1
goto_if_false @DRIV2_3411
print_now 'DRV3_8' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_3411
gosub @DRIV2_9121
if 
  158@ == 1
goto_if_false @DRIV2_3459
print_now 'DRV3_9' {time} 5000 {flag} 0
goto @DRIV2_12867

:DRIV2_3459
goto @DRIV2_1281

:DRIV2_3466
clear_area -1814.8199 {y} 381.4 {z} 17.09 {radius} 100.0 {clearParticles} True
set_car_model_components 498 {component1} 0 {component2} 0
34@ = create_car 498 {x} -1814.8199 {y} 381.4 {z} 9.96
set_car_heading 34@ {heading} 33.27
pop_car_door 34@ {door} CarDoor.LeftRearDoor {visibility} False
open_car_door 34@ {door} CarDoor.RightRearDoor
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
184@ = add_blip_for_car 34@
set_blip_as_friendly 184@ {state} True
58@ = create_car 521 {x} -1814.86 {y} 376.0 {z} 15.68
set_car_heading 58@ {heading} 26.65
59@ = create_car 521 {x} -1817.4399 {y} 380.33 {z} 15.68
set_car_heading 59@ {heading} 23.76
60@ = create_car 521 {x} -1818.09 {y} 377.08 {z} 15.68
set_car_heading 60@ {heading} 32.17
61@ = create_car 521 {x} -1816.66 {y} 374.73 {z} 15.68
set_car_heading 61@ {heading} 30.21
119@ = 0

:DRIV2_3717
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_3783
set_car_only_damaged_by_player 58@(119@,4i) {state} True
set_can_burst_car_tyres 58@(119@,4i) {state} False
freeze_car_position 58@(119@,4i) {state} True
119@ += 1
goto @DRIV2_3717

:DRIV2_3783
35@ = create_car 521 {x} -1819.01 {y} 386.28 {z} 16.58
set_car_heading 35@ {heading} 49.56
set_car_only_damaged_by_player 35@ {state} True
set_can_burst_car_tyres 35@ {state} False
54@ = create_char PedType.Mission1 {modelId} 100 {x} -1811.85 {y} 375.88 {z} 15.68
set_char_heading 54@ {heading} 27.32
55@ = create_char_inside_car 59@ {pedType} PedType.Mission1 {modelId} 100
56@ = create_char_inside_car 60@ {pedType} PedType.Mission1 {modelId} 47
57@ = create_char_inside_car 61@ {pedType} PedType.Mission1 {modelId} 47
193@ = copy_char_decision_maker -1
add_char_decision_maker_event_response 193@ {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} False
119@ = 0

:DRIV2_3948
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4073
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_4059
set_char_decision_maker 54@(119@,4i) {handleOrTemplate} 193@
give_weapon_to_char 54@(119@,4i) {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_can_be_knocked_off_bike 54@(119@,4i) {stayOnBike} 2
set_char_only_damaged_by_player 54@(119@,4i) {state} True
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Hate
clear_all_char_relationships 54@(119@,4i) {relationshipType} RelationshipType.Dislike

:DRIV2_4059
119@ += 1
goto @DRIV2_3948

:DRIV2_4073
119@ = 0

:DRIV2_4080
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4246
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_4193
if 
  119@ == 0
goto_if_false @DRIV2_4174
set_char_proofs 54@(119@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_visible 54@(119@,4i) {state} False
goto @DRIV2_4193

:DRIV2_4174
set_char_proofs 54@(119@,4i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRIV2_4193
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_4232
set_car_proofs 58@(119@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DRIV2_4232
119@ += 1
goto @DRIV2_4080

:DRIV2_4246
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
38@ = create_object #KMB_PACKET {x} -1812.3 {y} 377.57 {z} 9.34
119@ = 0

:DRIV2_4291
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4558
if 
  119@ <> 0
goto_if_false @DRIV2_4420
create_object #KMB_PACKET {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 38@(119@,4i)
attach_object_to_car 38@(119@,4i) {handle} 58@(119@,4i) {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@(119@,4i) = 164@
goto @DRIV2_4492

:DRIV2_4420
if 
  not is_char_dead 54@
goto_if_false @DRIV2_4492
task_pick_up_object 54@ {object} 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_lvar_int_to_lvar_int 159@ = 165@
set_object_visible 38@ {state} False

:DRIV2_4492
set_object_collision 38@(119@,4i) {state} True
set_object_dynamic 38@(119@,4i) {state} True
set_object_proofs 38@(119@,4i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_object_collision_damage_effect 38@(119@,4i) {state} False
119@ += 1
goto @DRIV2_4291

:DRIV2_4558
return 

:DRIV2_4560
119@ = 0

:DRIV2_4567
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_4730
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_4716
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 134@
goto_if_false @DRIV2_4716
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 78@(119@,4f) {y} 82@(119@,4f) {z} 86@(119@,4f) {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 137@

:DRIV2_4716
119@ += 1
goto @DRIV2_4567

:DRIV2_4730
return 

:DRIV2_4732
119@ = 0

:DRIV2_4739
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6106
if and
  does_object_exist 38@(119@,4i)
  123@(119@,4i) <> 1
goto_if_false @DRIV2_6092
if or
  is_object_attached 38@(119@,4i)
  is_char_holding_object -1 {handle} 38@(119@,4i)
goto_if_false @DRIV2_5857
if 
  locate_char_any_means_object_3d $scplayer {object} 38@(119@,4i) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @DRIV2_5666
if or
  is_char_on_any_bike $scplayer
  is_char_on_foot $scplayer
goto_if_false @DRIV2_5666
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
  167@ <> 1
goto_if_false @DRIV2_5584
104@, 105@, 108@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -3.0 {zOffset} 0.0
106@, 107@, 108@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 3.0 {zOffset} 0.0
if 
  is_object_in_angled_area_2d 38@(119@,4i) {leftBottomX} 104@ {leftBottomY} 105@ {rightTopX} 106@ {rightTopY} 107@ {angle} 3.0 {drawSphere} False
goto_if_false @DRIV2_5238
if 
  is_char_on_any_bike $scplayer
goto_if_false @DRIV2_5069
task_play_anim $scplayer {animationName} "BIKES_SNATCH_L" {animationFile} "BIKES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 220
goto @DRIV2_5231

:DRIV2_5069
96@, 97@, 98@ = get_char_coordinates $scplayer
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
50@(119@,4f) += 0.25
if 
  is_float_lvar_greater_or_equal_to_float_lvar 98@ >= 50@(119@,4f)
goto_if_false @DRIV2_5196
task_play_anim $scplayer {animationName} "PICKUP_BOX" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180
goto @DRIV2_5231

:DRIV2_5196
task_play_anim $scplayer {animationName} "GRAB_L" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180

:DRIV2_5231
goto @DRIV2_5467

:DRIV2_5238
if 
  is_char_on_any_bike $scplayer
goto_if_false @DRIV2_5305
task_play_anim $scplayer {animationName} "BIKES_SNATCH_R" {animationFile} "BIKES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 220
goto @DRIV2_5467

:DRIV2_5305
96@, 97@, 98@ = get_char_coordinates $scplayer
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
50@(119@,4f) += 0.25
if 
  is_float_lvar_greater_or_equal_to_float_lvar 98@ >= 50@(119@,4f)
goto_if_false @DRIV2_5432
task_play_anim $scplayer {animationName} "PICKUP_BOX" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180
goto @DRIV2_5467

:DRIV2_5432
task_play_anim $scplayer {animationName} "GRAB_R" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 180

:DRIV2_5467
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
delete_object 38@(119@,4i)
remove_blip 180@(119@,4i)
add_one_off_sound 42@(119@,4f) {y} 46@(119@,4f) {z} 50@(119@,4f) {soundId} 65535
print_now 'DRV3_4' {time} 5000 {flag} 0
123@(119@,4i) = 1
$d2_num_packages_collected += 1
goto @DRIV2_5666

:DRIV2_5584
if 
  not is_message_being_displayed 
goto_if_false @DRIV2_5626
print_now 'DRV3_3' {time} 1 {flag} 0
168@ = 1
goto @DRIV2_5666

:DRIV2_5626
if 
  168@ == 1
goto_if_false @DRIV2_5666
print_now 'DRV3_3' {time} 1 {flag} 0
168@ = 1

:DRIV2_5666
if 
  123@(119@,4i) <> 1
goto_if_false @DRIV2_5850
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_5850
if and
  is_char_in_car $scplayer {vehicle} 58@(119@,4i)
  is_object_attached 38@(119@,4i)
goto_if_false @DRIV2_5850
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
delete_object 38@(119@,4i)
remove_blip 180@(119@,4i)
add_one_off_sound 42@(119@,4f) {y} 46@(119@,4f) {z} 50@(119@,4f) {soundId} 65535
print_now 'DRV3_4' {time} 5000 {flag} 0
123@(119@,4i) = 1
$d2_num_packages_collected += 1

:DRIV2_5850
goto @DRIV2_6011

:DRIV2_5857
if 
  is_char_touching_object $scplayer {object} 38@(119@,4i)
goto_if_false @DRIV2_6011
if or
  is_char_on_any_bike $scplayer
  is_char_on_foot $scplayer
goto_if_false @DRIV2_6011
get_object_coordinates 38@(119@,4i) {var_x} 42@(119@,4f) {var_y} 46@(119@,4f) {var_z} 50@(119@,4f)
delete_object 38@(119@,4i)
remove_blip 180@(119@,4i)
add_one_off_sound 42@(119@,4f) {y} 46@(119@,4f) {z} 50@(119@,4f) {soundId} 65535
print_now 'DRV3_4' {time} 5000 {flag} 0
123@(119@,4i) = 1
$d2_num_packages_collected += 1

:DRIV2_6011
if 
  123@(119@,4i) == 1
goto_if_false @DRIV2_6092
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_6092
give_weapon_to_char 54@(119@,4i) {weaponType} WeaponType.MicroUzi {ammo} 99999
task_kill_char_on_foot 54@(119@,4i) {target} $scplayer
147@(119@,4i) = 1

:DRIV2_6092
119@ += 1
goto @DRIV2_4739

:DRIV2_6106
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @DRIV2_6137
167@ = 1
goto @DRIV2_6144

:DRIV2_6137
167@ = 0

:DRIV2_6144
return 

:DRIV2_6146
119@ = 0

:DRIV2_6153
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6713
if and
  not is_car_dead 58@(119@,4i)
  not is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 134@
  123@(119@,4i) <> 1
goto_if_false @DRIV2_6699
get_car_health 58@(119@,4i) {var_health} 66@(119@,4i)
if 
  is_object_attached 38@(119@,4i)
goto_if_false @DRIV2_6373
if 
  locate_char_in_car_car_2d $scplayer {handle} 58@(119@,4i) {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @DRIV2_6366
set_lvar_int_to_lvar_int 74@ = 70@(119@,4i)
sub_int_lvar_from_int_lvar 74@ -= 66@(119@,4i)
if 
  74@ >= 2
goto_if_false @DRIV2_6366
detach_object 38@(119@,4i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_lvar_int_to_lvar_int 159@(119@,4i) = 163@

:DRIV2_6366
goto @DRIV2_6683

:DRIV2_6373
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_6683
if 
  not is_char_holding_object 54@(119@,4i) {handle} -1
goto_if_false @DRIV2_6683
if 
  143@(119@,4i) <> 1
goto_if_false @DRIV2_6498
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6491
task_go_to_object 54@(119@,4i) {object} 38@(119@,4i) {time} -1 {radius} 1.0
143@(119@,4i) = 1

:DRIV2_6491
goto @DRIV2_6683

:DRIV2_6498
109@ = get_script_task_status 54@(119@,4i) {taskId} 1762
if 
  is_int_lvar_equal_to_constant 109@ == 7
goto_if_false @DRIV2_6641
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6612
task_pick_up_object 54@(119@,4i) {object} 38@(119@,4i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
set_lvar_int_to_lvar_int 159@(119@,4i) = 165@

:DRIV2_6612
143@(119@,4i) = 0
139@(119@,4i) = 0
goto @DRIV2_6683

:DRIV2_6641
if 
  not does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6683
143@(119@,4i) = 0
139@(119@,4i) = 0

:DRIV2_6683
set_lvar_int_to_lvar_int 70@(119@,4i) = 66@(119@,4i)

:DRIV2_6699
119@ += 1
goto @DRIV2_6153

:DRIV2_6713
return 

:DRIV2_6715
119@ = 0

:DRIV2_6722
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_6910
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_6896
if and
  not is_object_attached 38@(119@,4i)
  not is_char_holding_object -1 {handle} 38@(119@,4i)
  is_object_static 38@(119@,4i)
goto_if_false @DRIV2_6852
if 
  175@(119@,4i) <> 1
goto_if_false @DRIV2_6845
freeze_object_position 38@(119@,4i) {state} True
175@(119@,4i) = 1

:DRIV2_6845
goto @DRIV2_6896

:DRIV2_6852
if 
  175@(119@,4i) == 1
goto_if_false @DRIV2_6896
freeze_object_position 38@(119@,4i) {state} False
175@(119@,4i) = 0

:DRIV2_6896
119@ += 1
goto @DRIV2_6722

:DRIV2_6910
return 

:DRIV2_6912
119@ = 0

:DRIV2_6919
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7108
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7094
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 135@
  not locate_char_in_car_2d 54@(119@,4i) {x} 75@ {y} 76@ {xRadius} 400.0 {yRadius} 400.0 {drawSphere} False
goto_if_false @DRIV2_7094
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 75@ {y} 76@ {z} 77@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 136@

:DRIV2_7094
119@ += 1
goto @DRIV2_6919

:DRIV2_7108
return 

:DRIV2_7110
119@ = 0

:DRIV2_7117
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7293
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7279
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 136@
  locate_char_in_car_2d 54@(119@,4i) {x} 75@ {y} 76@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @DRIV2_7279
task_car_drive_wander 54@(119@,4i) {vehicle} 58@(119@,4i) {speed} 62@(119@,4f) {drivingMode} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 135@

:DRIV2_7279
119@ += 1
goto @DRIV2_7117

:DRIV2_7293
return 

:DRIV2_7295
119@ = 0

:DRIV2_7302
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_7863
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  143@(119@,4i) <> 1
  147@(119@,4i) <> 1
goto_if_false @DRIV2_7849
if 
  not is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
goto_if_false @DRIV2_7457
if 
  139@(119@,4i) == 0
goto_if_false @DRIV2_7450
task_enter_car_as_driver 54@(119@,4i) {vehicle} 58@(119@,4i) {time} -1
139@(119@,4i) = 1

:DRIV2_7450
goto @DRIV2_7849

:DRIV2_7457
if 
  139@(119@,4i) == 1
goto_if_false @DRIV2_7849
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 135@
goto_if_false @DRIV2_7527
task_car_drive_wander 54@(119@,4i) {vehicle} 58@(119@,4i) {speed} 62@(119@,4f) {drivingMode} DrivingMode.AvoidCars

:DRIV2_7527
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 136@
goto_if_false @DRIV2_7588
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 75@ {y} 76@ {z} 77@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_7588
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 137@
goto_if_false @DRIV2_7661
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 78@(119@,4f) {y} 82@(119@,4f) {z} 86@(119@,4f) {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_7661
if 
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
goto_if_false @DRIV2_7722
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 90@ {y} 91@ {z} 92@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_7722
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_7838
if 
  is_char_holding_object 54@(119@,4i) {handle} 38@(119@,4i)
goto_if_false @DRIV2_7838
drop_object 54@(119@,4i) {state} False
attach_object_to_car 38@(119@,4i) {handle} 58@(119@,4i) {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@(119@,4i) = 164@

:DRIV2_7838
139@(119@,4i) = 0

:DRIV2_7849
119@ += 1
goto @DRIV2_7302

:DRIV2_7863
return 

:DRIV2_7865
119@ = 0

:DRIV2_7872
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8107
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
  147@(119@,4i) == 1
goto_if_false @DRIV2_8093
if 
  151@(119@,4i) == 1
goto_if_false @DRIV2_8035
if 
  not locate_char_any_means_char_2d 54@(119@,4i) {target} $scplayer {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @DRIV2_8028
task_car_mission 54@(119@,4i) {vehicle} 58@(119@,4i) {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 62@(119@,4f) {drivingStyle} DrivingMode.AvoidCars
151@(119@,4i) = 0

:DRIV2_8028
goto @DRIV2_8093

:DRIV2_8035
if 
  locate_char_any_means_char_2d 54@(119@,4i) {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @DRIV2_8093
task_kill_char_on_foot 54@(119@,4i) {target} $scplayer
151@(119@,4i) = 1

:DRIV2_8093
119@ += 1
goto @DRIV2_7872

:DRIV2_8107
return 

:DRIV2_8109
119@ = 0

:DRIV2_8116
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8278
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_8264
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  not is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
  147@(119@,4i) <> 1
goto_if_false @DRIV2_8264
task_car_drive_to_coord 54@(119@,4i) {vehicle} 58@(119@,4i) {x} 90@ {y} 91@ {z} 92@ {speed} 62@(119@,4f) {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 138@

:DRIV2_8264
119@ += 1
goto @DRIV2_8116

:DRIV2_8278
return 

:DRIV2_8280
119@ = 0

:DRIV2_8287
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8483
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_8469
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 137@
  147@(119@,4i) <> 1
  locate_char_in_car_3d 54@(119@,4i) {x} 78@(119@,4f) {y} 82@(119@,4f) {z} 86@(119@,4f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @DRIV2_8469
task_car_drive_wander 54@(119@,4i) {vehicle} 58@(119@,4i) {speed} 62@(119@,4f) {drivingMode} DrivingMode.AvoidCars
set_lvar_int_to_lvar_int 130@(119@,4i) = 135@

:DRIV2_8469
119@ += 1
goto @DRIV2_8287

:DRIV2_8483
return 

:DRIV2_8485
119@ = 0

:DRIV2_8492
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_8652
if and
  does_object_exist 38@(119@,4i)
  not is_char_dead 54@(119@,4i)
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_8638
if and
  is_object_attached 38@(119@,4i)
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
goto_if_false @DRIV2_8638
if 
  locate_object_2d 38@(119@,4i) {x} 90@ {y} 91@ {xRadius} 20.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @DRIV2_8638
156@ = 1
set_lvar_int_to_lvar_int 120@ = 119@

:DRIV2_8638
119@ += 1
goto @DRIV2_8492

:DRIV2_8652
return 

:DRIV2_8654
96@, 97@, 98@ = get_char_coordinates $scplayer
119@ = 0

:DRIV2_8675
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9030
if and
  not is_car_dead 58@(119@,4i)
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_9016
if and
  is_char_in_car 54@(119@,4i) {vehicle} 58@(119@,4i)
  147@(119@,4i) <> 1
goto_if_false @DRIV2_9016
if and
  is_int_lvar_equal_to_int_lvar 130@(119@,4i) == 138@
  locate_car_2d 58@(119@,4i) {x} 90@ {y} 91@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @DRIV2_8832
62@(119@,4f) = 15.0
goto @DRIV2_9000

:DRIV2_8832
100@, 101@, 102@ = get_car_coordinates 58@(119@,4i)
99@ = get_distance_between_coords_3d 96@ {fromY} 97@ {fromZ} 98@ {toX} 100@ {toY} 101@ {toZ} 102@
if 
  0.0 > 99@
goto_if_false @DRIV2_8904
99@ = 0.0

:DRIV2_8904
if 
  50.0 >= 99@
goto_if_false @DRIV2_8986
set_lvar_float_to_lvar_float 62@(119@,4f) = 99@
62@(119@,4f) *= 0.4
62@(119@,4f) *= -1.0
62@(119@,4f) += 40.0
goto @DRIV2_9000

:DRIV2_8986
62@(119@,4f) = 20.0

:DRIV2_9000
set_car_cruise_speed 58@(119@,4i) {maxSpeed} 62@(119@,4f)

:DRIV2_9016
119@ += 1
goto @DRIV2_8675

:DRIV2_9030
return 

:DRIV2_9032
119@ = 0

:DRIV2_9039
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9119
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_9105
if 
  is_object_in_water 38@(119@,4i)
goto_if_false @DRIV2_9105
157@ = 1

:DRIV2_9105
119@ += 1
goto @DRIV2_9039

:DRIV2_9119
return 

:DRIV2_9121
119@ = 0

:DRIV2_9128
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9218
if and
  is_car_dead 58@(119@,4i)
  does_object_exist 38@(119@,4i)
  is_int_lvar_equal_to_int_lvar 159@(119@,4i) == 164@
goto_if_false @DRIV2_9204
delete_object 38@(119@,4i)
158@ = 1

:DRIV2_9204
119@ += 1
goto @DRIV2_9128

:DRIV2_9218
return 

:DRIV2_9220
clear_area -1814.8199 {y} 381.4 {z} 17.09 {radius} 100.0 {clearParticles} False
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_char_in_any_car $scplayer
goto_if_false @DRIV2_9301
set_char_coordinates $scplayer {x} -1771.9399 {y} 336.35 {z} 8.94
set_char_heading $scplayer {heading} 49.66

:DRIV2_9301
if 
  174@ == 1
goto_if_false @DRIV2_9365
if 
  not is_car_dead 36@
goto_if_false @DRIV2_9365
set_car_coordinates 36@ {x} -1766.6 {y} 330.71 {z} 8.23
set_car_heading 36@ {heading} 45.1

:DRIV2_9365
if 
  not is_char_dead 54@
goto_if_false @DRIV2_9411
set_char_visible 54@ {state} True
if 
  does_object_exist 38@
goto_if_false @DRIV2_9411
set_object_visible 38@ {state} True

:DRIV2_9411
119@ = 0

:DRIV2_9418
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_9482
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_9468
freeze_car_position 58@(119@,4i) {state} False

:DRIV2_9468
119@ += 1
goto @DRIV2_9418

:DRIV2_9482
169@ = 1
170@ = 0
skip_cutscene_start_internal @DRIV2_10330
set_fixed_camera_position -1808.39 {y} 374.18 {z} 17.98 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1813.41 {y} 376.31 {z} 17.32 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 54@
  not is_car_dead 58@
goto_if_false @DRIV2_9585
task_enter_car_as_driver 54@ {vehicle} 58@ {time} -1

:DRIV2_9585
194@ = 0

:DRIV2_9592
if and
  194@ <> 1
  not is_char_dead 54@
goto_if_false @DRIV2_9673
wait 0
if and
  not is_char_dead 54@
  not is_car_dead 58@
goto_if_false @DRIV2_9666
if 
  is_char_in_car 54@ {vehicle} 58@
goto_if_false @DRIV2_9666
194@ = 1

:DRIV2_9666
goto @DRIV2_9592

:DRIV2_9673
wait 1000
switch_roads_back_to_original -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
set_fixed_camera_position -1832.36 {y} 380.48 {z} 18.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 58@
goto_if_false @DRIV2_9860
point_camera_at_car 58@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 54@
  does_object_exist 38@
goto_if_false @DRIV2_9860
if 
  is_char_holding_object 54@ {handle} 38@
goto_if_false @DRIV2_9814
drop_object 54@ {state} False

:DRIV2_9814
attach_object_to_car 38@ {handle} 58@ {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@ = 164@

:DRIV2_9860
if and
  not is_car_dead 59@
  not is_char_dead 55@
goto_if_false @DRIV2_9913
task_car_drive_to_coord 55@ {vehicle} 59@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 63@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_9913
wait 150
if and
  not is_car_dead 60@
  not is_char_dead 56@
goto_if_false @DRIV2_9971
task_car_drive_to_coord 56@ {vehicle} 60@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 64@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_9971
wait 150
if and
  not is_car_dead 58@
  not is_char_dead 54@
goto_if_false @DRIV2_10029
task_car_drive_to_coord 54@ {vehicle} 58@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 62@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_10029
wait 100
if and
  not is_car_dead 61@
  not is_char_dead 57@
goto_if_false @DRIV2_10086
task_car_drive_to_coord 57@ {vehicle} 61@ {x} -1854.74 {y} 533.22 {z} 33.12 {speed} 65@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DRIV2_10086
wait 7000
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_10134
warp_char_from_car_to_coord $scplayer {x} -1820.72 {y} 382.73 {z} 16.04
goto @DRIV2_10154

:DRIV2_10134
set_char_coordinates $scplayer {x} -1820.72 {y} 382.73 {z} 16.04

:DRIV2_10154
set_char_heading $scplayer {heading} 326.45
if 
  not is_car_dead 35@
goto_if_false @DRIV2_10190
task_enter_car_as_driver $scplayer {vehicle} 35@ {time} -1

:DRIV2_10190
set_fixed_camera_position -1818.1 {y} 380.01 {z} 16.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
TIMERB = 0

:DRIV2_10238
if 
  4000 > TIMERB
goto_if_false @DRIV2_10316
wait 0
if and
  TIMERB > 0
  170@ <> 1
goto_if_false @DRIV2_10309
print_now 'DRV3_2' {time} 10000 {flag} 0
170@ = 1

:DRIV2_10309
goto @DRIV2_10238

:DRIV2_10316
gosub @DRIV2_4560
169@ = 0

:DRIV2_10330
skip_cutscene_end 
if 
  169@ == 1
goto_if_false @DRIV2_10799
switch_roads_back_to_original -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
if and
  not is_char_dead 54@
  not is_car_dead 58@
goto_if_false @DRIV2_10534
if 
  not is_char_in_car 54@ {vehicle} 58@
goto_if_false @DRIV2_10430
warp_char_into_car 54@ {vehicle} 58@

:DRIV2_10430
if 
  does_object_exist 38@
goto_if_false @DRIV2_10534
if 
  not is_object_attached 38@
goto_if_false @DRIV2_10534
if 
  is_char_holding_object 54@ {handle} 38@
goto_if_false @DRIV2_10488
drop_object 54@ {state} False

:DRIV2_10488
attach_object_to_car 38@ {handle} 58@ {xOffset} 0.0 {yOffset} -0.9 {zOffset} 0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_lvar_int_to_lvar_int 159@ = 164@

:DRIV2_10534
if and
  not is_car_dead 58@
  not is_char_dead 54@
goto_if_false @DRIV2_10575
set_car_coordinates 58@ {x} -1894.59 {y} 582.43 {z} 34.56

:DRIV2_10575
if and
  not is_car_dead 59@
  not is_char_dead 55@
goto_if_false @DRIV2_10616
set_car_coordinates 59@ {x} -1893.5601 {y} 574.34 {z} 34.55

:DRIV2_10616
if and
  not is_car_dead 60@
  not is_char_dead 56@
goto_if_false @DRIV2_10657
set_car_coordinates 60@ {x} -1899.96 {y} 581.25 {z} 34.56

:DRIV2_10657
if and
  not is_car_dead 61@
  not is_char_dead 57@
goto_if_false @DRIV2_10698
set_car_coordinates 61@ {x} -1898.95 {y} 574.08 {z} 34.56

:DRIV2_10698
if 
  not is_car_dead 35@
goto_if_false @DRIV2_10758
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_10750
warp_char_from_car_to_coord $scplayer {x} -1819.01 {y} 386.28 {z} 6.58

:DRIV2_10750
warp_char_into_car $scplayer {vehicle} 35@

:DRIV2_10758
gosub @DRIV2_4560
if 
  170@ <> 1
goto_if_false @DRIV2_10799
print_now 'DRV3_2' {time} 10000 {flag} 0

:DRIV2_10799
119@ = 0

:DRIV2_10806
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_10886
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_10872
add_blip_for_object 38@(119@,4i) {var_handle} 180@(119@,4i)
change_blip_colour 180@(119@,4i) {color} BlipColor.Red

:DRIV2_10872
119@ += 1
goto @DRIV2_10806

:DRIV2_10886
if 
  not is_car_dead 34@
goto_if_false @DRIV2_10917
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_10917
119@ = 0

:DRIV2_10924
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11035
if 
  not is_char_dead 54@(119@,4i)
goto_if_false @DRIV2_10982
set_char_proofs 54@(119@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_10982
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_11021
set_car_proofs 58@(119@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_11021
119@ += 1
goto @DRIV2_10924

:DRIV2_11035
if 
  not is_car_dead 35@
goto_if_false @DRIV2_11066
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_11066
119@ = 0

:DRIV2_11073
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11137
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_11123
set_load_collision_for_car_flag 58@(119@,4i) {state} False

:DRIV2_11123
119@ += 1
goto @DRIV2_11073

:DRIV2_11137
if 
  not is_car_dead 35@
goto_if_false @DRIV2_11160
set_load_collision_for_car_flag 35@ {state} False

:DRIV2_11160
if 
  not is_car_dead 34@
goto_if_false @DRIV2_11183
set_load_collision_for_car_flag 34@ {state} False

:DRIV2_11183
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
return 

:DRIV2_11200
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:DRIV2_11214
if 
  get_fading_status 
goto_if_false @DRIV2_11238
wait 0
goto @DRIV2_11214

:DRIV2_11238
clear_area 93@ {y} 94@ {z} 95@ {radius} 50.0 {clearParticles} False
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_11377
35@ = store_car_char_is_in $scplayer
set_car_coordinates 35@ {x} 93@ {y} 94@ {z} 95@
set_car_heading 35@ {heading} 340.37
195@ = open_sequence_task 
task_leave_car -1 {vehicle} 35@
task_go_straight_to_coord -1 {x} -2625.96 {y} 1417.8199 {z} 6.15 {speed} MoveState.Walk {time} -1
close_sequence_task 195@
perform_sequence_task $scplayer {sequence} 195@
clear_sequence_task 195@
goto @DRIV2_11430

:DRIV2_11377
delete_car 35@
set_char_coordinates $scplayer {x} 93@ {y} 94@ {z} 95@
set_char_heading $scplayer {heading} 10.0
task_go_straight_to_coord $scplayer {x} -2625.96 {y} 1417.8199 {z} 6.15 {speed} MoveState.Walk {time} -1

:DRIV2_11430
set_fixed_camera_position -2626.02 {y} 1403.8 {z} 6.95 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2624.5601 {y} 1406.1899 {z} 7.03 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DRIV2_11488
if 
  get_fading_status 
goto_if_false @DRIV2_11512
wait 0
goto @DRIV2_11488

:DRIV2_11512
169@ = 1
skip_cutscene_start_internal @DRIV2_11538
wait 2000
169@ = 0

:DRIV2_11538
skip_cutscene_end 
if 
  169@ == 1
goto_if_false @DRIV2_11558

:DRIV2_11558
if 
  169@ <> 1
goto_if_false @DRIV2_11607
do_fade 1000 {direction} Fade.Out

:DRIV2_11583
if 
  get_fading_status 
goto_if_false @DRIV2_11607
wait 0
goto @DRIV2_11583

:DRIV2_11607
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2624.28 {y} 1410.9301 {z} 6.15
set_char_heading $scplayer {heading} 194.52
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
if 
  169@ <> 1
goto_if_false @DRIV2_11706
do_fade 1000 {direction} Fade.In

:DRIV2_11682
if 
  get_fading_status 
goto_if_false @DRIV2_11706
wait 0
goto @DRIV2_11682

:DRIV2_11706
set_player_control $player1 {state} True
return 

:DRIV2_11715
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:DRIV2_11729
if 
  get_fading_status 
goto_if_false @DRIV2_11753
wait 0
goto @DRIV2_11729

:DRIV2_11753
mark_car_as_no_longer_needed 35@
clear_area 90@ {y} 91@ {z} 92@ {radius} 100.0 {clearParticles} False
119@ = 0

:DRIV2_11783
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_11921
if 
  not is_int_lvar_equal_to_int_lvar 119@ == 120@
goto_if_false @DRIV2_11907
delete_char 54@(119@,4i)
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_11889
if 
  not is_char_in_car $scplayer {vehicle} 58@(119@,4i)
goto_if_false @DRIV2_11882
delete_car 58@(119@,4i)

:DRIV2_11882
goto @DRIV2_11898

:DRIV2_11889
delete_car 58@(119@,4i)

:DRIV2_11898
delete_object 38@(119@,4i)

:DRIV2_11907
119@ += 1
goto @DRIV2_11783

:DRIV2_11921
121@ = get_area_visible 
96@, 97@, 98@ = get_char_coordinates $scplayer
103@ = get_char_heading $scplayer
197@ = get_water_height_at_coords 96@ {y} 97@ {waves} False
196@ = get_ground_z_for_3d_coord 96@ {y} 97@ {z} 98@
if 
  is_float_lvar_greater_than_float_lvar 197@ > 196@
goto_if_false @DRIV2_12002
set_lvar_float_to_lvar_float 196@ = 197@

:DRIV2_12002
set_char_coordinates $scplayer {x} -2762.8201 {y} 98.13 {z} -100.0
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_12056
35@ = store_car_char_is_in $scplayer
set_car_heading 35@ {heading} 354.04

:DRIV2_12056
set_area_visible 0
request_collision 90@ {y} 91@
load_scene 90@ {y} 91@ {z} 92@
clear_help 
switch_widescreen True
set_fixed_camera_position -2736.4299 {y} 87.02 {z} 4.27 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2735.5701 {y} 86.18 {z} 4.27 {switchStyle} SwitchType.JumpCut
open_garage 'TBON'
if and
  not is_char_dead 54@(120@,4i)
  not is_car_dead 58@(120@,4i)
goto_if_false @DRIV2_12368
set_car_coordinates 58@(120@,4i) {x} -2720.9199 {y} 83.65 {z} 3.69
set_car_heading 58@(120@,4i) {heading} 85.84
if 
  not is_char_in_car 54@(120@,4i) {vehicle} 58@(120@,4i)
goto_if_false @DRIV2_12301
if 
  is_char_in_any_car 54@(120@,4i)
goto_if_false @DRIV2_12285
warp_char_from_car_to_coord 54@(120@,4i) {x} -2720.9199 {y} 83.65 {z} -6.31

:DRIV2_12285
warp_char_into_car 54@(120@,4i) {vehicle} 58@(120@,4i)

:DRIV2_12301
set_car_straight_line_distance 58@(120@,4i) {distance} 2
task_car_drive_to_coord 54@(120@,4i) {vehicle} 58@(120@,4i) {x} -2730.1101 {y} 65.22 {z} 3.91 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_car_forward_speed 58@(120@,4i) {forwardSpeed} 7.0

:DRIV2_12368
delete_car 34@
do_fade 500 {direction} Fade.In

:DRIV2_12380
if 
  get_fading_status 
goto_if_false @DRIV2_12404
wait 0
goto @DRIV2_12380

:DRIV2_12404
169@ = 1
skip_cutscene_start_internal @DRIV2_12599
if 
  not is_char_dead 54@(120@,4i)
goto_if_false @DRIV2_12456
100@, 101@, 102@ = get_char_coordinates 54@(120@,4i)

:DRIV2_12456
if 
  101@ > 71.36
goto_if_false @DRIV2_12543
wait 0
if 
  not is_char_dead 54@(120@,4i)
goto_if_false @DRIV2_12526
100@, 101@, 102@ = get_char_coordinates 54@(120@,4i)
goto @DRIV2_12536

:DRIV2_12526
101@ = 71.36

:DRIV2_12536
goto @DRIV2_12456

:DRIV2_12543
close_garage 'TBON'

:DRIV2_12554
if 
  not is_garage_closed 'TBON'
goto_if_false @DRIV2_12587
wait 0
goto @DRIV2_12554

:DRIV2_12587
wait 1000
169@ = 0

:DRIV2_12599
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:DRIV2_12608
if 
  get_fading_status 
goto_if_false @DRIV2_12632
wait 0
goto @DRIV2_12608

:DRIV2_12632
delete_char 54@(120@,4i)
delete_car 58@(120@,4i)
if 
  169@ == 1
goto_if_false @DRIV2_12734
if 
  not is_garage_closed 'TBON'
goto_if_false @DRIV2_12734
close_garage 'TBON'

:DRIV2_12701
if 
  not is_garage_closed 'TBON'
goto_if_false @DRIV2_12734
wait 0
goto @DRIV2_12701

:DRIV2_12734
set_area_visible 121@
request_collision 96@ {y} 97@
load_scene 96@ {y} 97@ {z} 196@
set_char_coordinates $scplayer {x} 96@ {y} 97@ {z} 196@
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV2_12811
35@ = store_car_char_is_in $scplayer
set_car_heading 35@ {heading} 103@
goto @DRIV2_12819

:DRIV2_12811
set_char_heading $scplayer {heading} 103@

:DRIV2_12819
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:DRIV2_12841
if 
  get_fading_status 
goto_if_false @DRIV2_12865
wait 0
goto @DRIV2_12841

:DRIV2_12865
return 

:DRIV2_12867
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRIV2_12885
$flag_synd_mission_counter += 1
register_mission_passed 'FAR_2'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 20
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:DRIV2_12949
mark_model_as_no_longer_needed 498
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed #KMB_PACKET
mark_model_as_no_longer_needed 100
mark_model_as_no_longer_needed 47
mark_model_as_no_longer_needed 352
remove_animation "BIKES"
remove_animation "MISC"
119@ = 0

:DRIV2_13001
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_13092
remove_blip 180@(119@,4i)
if 
  does_object_exist 38@(119@,4i)
goto_if_false @DRIV2_13078
if 
  not is_object_on_screen 38@(119@,4i)
goto_if_false @DRIV2_13078
delete_object 38@(119@,4i)

:DRIV2_13078
119@ += 1
goto @DRIV2_13001

:DRIV2_13092
remove_blip 184@
remove_blip 185@
if 
  not is_car_dead 34@
goto_if_false @DRIV2_13133
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_13133
119@ = 0

:DRIV2_13140
if 
  is_int_lvar_greater_than_int_lvar 37@ > 119@
goto_if_false @DRIV2_13223
if 
  not is_car_dead 58@(119@,4i)
goto_if_false @DRIV2_13209
set_car_proofs 58@(119@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_car_position 58@(119@,4i) {state} False

:DRIV2_13209
119@ += 1
goto @DRIV2_13140

:DRIV2_13223
if 
  not is_car_dead 35@
goto_if_false @DRIV2_13254
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DRIV2_13254
remove_decision_maker 193@
clear_sequence_task 195@
clear_help 
switch_roads_back_to_original -2014.8199 {leftBottomY} 181.4 {leftBottomZ} -13.0 {rightTopX} -1614.8199 {rightTopY} 581.4 {rightTopZ} 47.0
if 
  is_player_playing $player1
goto_if_false @DRIV2_13321
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:DRIV2_13321
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 66---------------
// Originally: Mike Toreno

:DRIV3
script_name 'DRIV3'
gosub @DRIV3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DRIV3_38
gosub @DRIV3_16007

:DRIV3_38
gosub @DRIV3_16025
terminate_this_script 

:DRIV3_47
$onmission = 1
register_mission_given 
wait 0
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out
set_fading_colour 0 {g} 0 {b} 0

:DRIV3_82
if 
  get_fading_status 
goto_if_false @DRIV3_106
wait 0
goto @DRIV3_82

:DRIV3_106
load_mission_text 'FARLIE3'
set_area_visible 3
load_cutscene 'FARL_3A'

:DRIV3_132
if 
  not has_cutscene_loaded 
goto_if_false @DRIV3_156
wait 0
goto @DRIV3_132

:DRIV3_156
start_cutscene 
do_fade 1000 {direction} Fade.In

:DRIV3_165
if 
  not has_cutscene_finished 
goto_if_false @DRIV3_189
wait 0
goto @DRIV3_165

:DRIV3_189
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DRIV3_204
if 
  get_fading_status 
goto_if_false @DRIV3_228
wait 0
goto @DRIV3_204

:DRIV3_228
clear_cutscene 
set_area_visible 0
127@ = add_blip_for_coord -2071.0 {y} 209.0 {z} 35.0
remove_blip 127@
80@ = -1906.656
81@ = 283.016
82@ = 41.0
104@ = 0
105@ = 0
106@ = 0
132@ = 0
107@ = 0
112@ = 0
108@ = 0
59@ = -2615.0
60@ = 1397.0
61@ = 6.0
101@ = 0
$int_distance_player_girl = 0
$flag_is_farlie3_running = 1
103@ = 0
71@ = -1550.416
72@ = -436.4436
73@ = 6.9871
$timer_countdown_farlie3 = 0
74@ = 0.0
75@ = -20.0
76@ = 0.0
100@ = 0
102@ = 0
109@ = 0
110@ = 0
89@ = 1
90@ = 0
91@ = 0
92@ = 0
93@ = 0
$flag_phone_dialog_driv3 = 0
94@ = 0
95@ = 0
98@ = 0
111@ = 0
99@ = 0
96@ = 0
97@ = 0
if 
  does_blip_exist $2653
goto_if_false @DRIV3_603
remove_blip $2653

:DRIV3_603
55@ = create_pickup_with_ammo 348 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} -1542.022 {y} -437.7364 {z} 5.9258
set_var_text_label s$farlie3_text[0] = 'FAR3_CA'
set_var_text_label s$farlie3_text[1] = 'FAR3_CB'
set_var_text_label s$farlie3_text[2] = 'FAR3_DA'
set_var_text_label s$farlie3_text[3] = 'FAR3_CC'
set_var_text_label s$farlie3_text[4] = 'FAR3_DB'
set_var_text_label s$farlie3_text[5] = 'FAR3_EA'
set_lvar_int_to_constant 133@ = 15200
set_lvar_int_to_constant 134@ = 15201
set_lvar_int_to_constant 135@ = 15210
set_lvar_int_to_constant 136@ = 15202
set_lvar_int_to_constant 137@ = 15211
set_lvar_int_to_constant 138@ = 15215
set_var_text_label s$farlie3_text[6] = 'FAR3_CF'
set_var_text_label s$farlie3_text[7] = 'FAR3_CD'
set_var_text_label s$farlie3_text[8] = 'FAR3_DC'
set_var_text_label s$farlie3_text[9] = 'FAR3_EB'
set_lvar_int_to_constant 139@ = 15205
set_lvar_int_to_constant 140@ = 15203
set_lvar_int_to_constant 141@ = 15212
set_lvar_int_to_constant 142@ = 15216
set_var_text_label s$farlie3_text[10] = 'FAR3_CJ'
set_var_text_label s$farlie3_text[11] = 'FAR3_CK'
set_var_text_label s$farlie3_text[12] = 'FAR3_DD'
set_var_text_label s$farlie3_text[13] = 'FAR3_DE'
set_var_text_label s$farlie3_text[14] = 'FAR3_EC'
set_lvar_int_to_constant 143@ = 15208
set_lvar_int_to_constant 144@ = 15209
set_lvar_int_to_constant 145@ = 15213
set_lvar_int_to_constant 146@ = 15214
set_lvar_int_to_constant 147@ = 15217
set_var_text_label s$farlie3_text[15] = 'FAR3_HA'
set_var_text_label s$farlie3_text[16] = 'FAR3_HB'
set_var_text_label s$farlie3_text[17] = 'FAR3_HC'
set_lvar_int_to_constant 148@ = 15225
set_lvar_int_to_constant 149@ = 15226
set_lvar_int_to_constant 150@ = 15227
set_var_text_label s$farlie3_text[18] = 'FAR3_JA'
set_var_text_label s$farlie3_text[19] = 'FAR3_JB'
set_var_text_label s$farlie3_text[20] = 'FAR3_JC'
set_var_text_label s$farlie3_text[21] = 'FAR3_JD'
set_var_text_label s$farlie3_text[22] = 'FAR3_JE'
set_var_text_label s$farlie3_text[23] = 'FAR3_JF'
set_var_text_label s$farlie3_text[24] = 'FAR3_JG'
set_lvar_int_to_constant 151@ = 15228
set_lvar_int_to_constant 152@ = 15229
set_lvar_int_to_constant 153@ = 15230
set_lvar_int_to_constant 154@ = 15231
set_lvar_int_to_constant 155@ = 15232
set_lvar_int_to_constant 156@ = 15233
set_lvar_int_to_constant 157@ = 15234
set_var_text_label s$farlie3_text[25] = 'FAR3_MA'
set_var_text_label s$farlie3_text[26] = 'FAR3_MB'
set_var_text_label s$farlie3_text[27] = 'FAR3_MC'
set_var_text_label s$farlie3_text[28] = 'FAR3_MD'
set_var_text_label s$farlie3_text[29] = 'FAR3_ME'
set_var_text_label s$farlie3_text[30] = 'FAR3_MF'
set_var_text_label s$farlie3_text[31] = 'FAR3_MG'
set_var_text_label s$farlie3_text[32] = 'FAR3_MH'
set_var_text_label s$farlie3_text[33] = 'FAR3_MJ'
set_var_text_label s$farlie3_text[34] = 'FAR3_MK'
set_var_text_label s$farlie3_text[35] = 'FAR3_ML'
set_var_text_label s$farlie3_text[36] = 'FAR3_MM'
set_var_text_label s$farlie3_text[37] = 'FAR3_MN'
set_var_text_label s$farlie3_text[38] = 'FAR3_MO'
set_lvar_int_to_constant 158@ = 15242
set_lvar_int_to_constant 159@ = 15243
set_lvar_int_to_constant 160@ = 15244
set_lvar_int_to_constant 161@ = 15245
set_lvar_int_to_constant 162@ = 15246
set_lvar_int_to_constant 163@ = 15247
set_lvar_int_to_constant 164@ = 15248
set_lvar_int_to_constant 165@ = 15249
set_lvar_int_to_constant 166@ = 15250
set_lvar_int_to_constant 167@ = 15251
set_lvar_int_to_constant 168@ = 15252
set_lvar_int_to_constant 169@ = 15253
set_lvar_int_to_constant 170@ = 15254
set_lvar_int_to_constant 171@ = 15255
86@ = load_char_decision_maker DecisionMakerType.Tough
87@ = load_char_decision_maker DecisionMakerType.Tough
request_model 352
request_model 482
load_special_character 2 {modelName} 'TBONE'
load_all_models_now 

:DRIV3_1527
if or
  not has_special_character_loaded 2
  not has_model_loaded 352
  not has_model_loaded 482
goto_if_false @DRIV3_1563
wait 0
goto @DRIV3_1527

:DRIV3_1563
set_char_heading $scplayer {heading} 214.0
set_camera_behind_player 

:DRIV3_1575
wait 0
if 
  89@ == 1
goto_if_false @DRIV3_1604
gosub @DRIV3_1736

:DRIV3_1604
if 
  90@ == 1
goto_if_false @DRIV3_1629
gosub @DRIV3_6822

:DRIV3_1629
if 
  94@ == 1
goto_if_false @DRIV3_1654
gosub @DRIV3_8253

:DRIV3_1654
if 
  91@ == 1
goto_if_false @DRIV3_1679
gosub @DRIV3_11222

:DRIV3_1679
if 
  92@ == 1
goto_if_false @DRIV3_1704
goto @DRIV3_15909

:DRIV3_1704
if 
  93@ == 1
goto_if_false @DRIV3_1729
goto @DRIV3_16007

:DRIV3_1729
goto @DRIV3_1575

:DRIV3_1736
54@ = generate_random_int_in_range 1 {max} 4
if 
  54@ == 1
goto_if_false @DRIV3_1833
56@ = -1303.76
57@ = -615.4308
58@ = 13.1485
62@ = -1271.832
63@ = -180.8179
64@ = 13.1443
84@ = 0.0

:DRIV3_1833
if 
  54@ == 2
goto_if_false @DRIV3_1921
56@ = -1216.233
57@ = 51.366
58@ = 13.0
62@ = -1288.832
63@ = -159.8179
64@ = 13.1443
84@ = 120.0

:DRIV3_1921
if 
  54@ == 3
goto_if_false @DRIV3_2009
56@ = -1125.319
57@ = 368.3488
58@ = 13.1329
62@ = -1319.832
63@ = -96.8179
64@ = 13.8443
84@ = 140.0

:DRIV3_2009
request_model 426

:DRIV3_2014
if 
  not has_model_loaded 426
goto_if_false @DRIV3_2041
wait 0
goto @DRIV3_2014

:DRIV3_2041
38@ = create_car 426 {x} -2620.0 {y} 1398.0 {z} 6.5
set_car_heading 38@ {heading} 204.0
114@ = add_blip_for_car 38@
set_blip_as_friendly 114@ {state} True
set_car_health 38@ {health} 2500
113@ = find_max_number_of_group_members 
set_script_limit_to_gang_size 113@
make_room_in_player_gang_for_mission_peds 2
if 
  is_player_playing $player1
goto_if_false @DRIV3_2134
shut_char_up_for_scripted_speech $scplayer {state} True

:DRIV3_2134
53@ = create_char PedType.Mission2 {modelId} 291 {x} -2623.6399 {y} 1403.9 {z} 6.2
set_char_get_out_upside_down_car 53@ {state} False
add_char_decision_maker_event_response 87@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_char_accuracy 53@ {accuracy} 95
set_player_group_to_follow_always $player1 {state} True
shut_char_up_for_scripted_speech 53@ {state} True
task_enter_car_as_passenger 53@ {vehicle} 38@ {time} -1 {seat} SeatId.BikeRear
set_char_drowns_in_water 53@ {state} True
set_char_relationship 53@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_decision_maker 53@ {handleOrTemplate} 87@
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_never_targetted 53@ {state} True
set_char_only_damaged_by_player 53@ {state} True
load_scene_in_direction -2623.6399 {y} 1403.9 {z} 6.2 {heading} 214.0
do_fade 1000 {direction} Fade.In

:DRIV3_2319
if 
  get_fading_status 
goto_if_false @DRIV3_2343
wait 0
goto @DRIV3_2319

:DRIV3_2343
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
$timer_countdown_farlie3 += 330000
display_onscreen_timer_with_string $timer_countdown_farlie3 {direction} TimerDirection.Down {text} 'DRI2_9'
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15218

:DRIV3_2391
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_2417
wait 0
goto @DRIV3_2391

:DRIV3_2417
print_now 'FAR3_FA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_2437
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_2463
wait 0
goto @DRIV3_2437

:DRIV3_2463
clear_this_print 'FAR3_FA'
print_now 'DRI2_1' {time} 5000 {flag} 1
request_model 121
request_model 122
request_model 123

:DRIV3_2502
if or
  not has_model_loaded 121
  not has_model_loaded 122
  not has_model_loaded 123
goto_if_false @DRIV3_2536
wait 0
goto @DRIV3_2502

:DRIV3_2536
if 
  not is_car_dead 38@
goto_if_false @DRIV3_2857

:DRIV3_2552
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @DRIV3_2857
wait 0
if 
  is_char_dead 53@
goto_if_false @DRIV3_2651
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 

:DRIV3_2651
if 
  is_car_dead 38@
goto_if_false @DRIV3_2674
goto @DRIV3_2857

:DRIV3_2674
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DRIV3_2733
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 1
93@ = 0
return 

:DRIV3_2733
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_2850
89@ = 0
93@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15221

:DRIV3_2776
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_2802
wait 0
goto @DRIV3_2776

:DRIV3_2802
print_now 'FAR3_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_2822
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_2848
wait 0
goto @DRIV3_2822

:DRIV3_2848
return 

:DRIV3_2850
goto @DRIV3_2552

:DRIV3_2857
if 
  not is_char_dead 53@
goto_if_false @DRIV3_2911
clear_this_print 'DRI2_1'
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_2911
set_group_member $Players_Group {handle} 53@

:DRIV3_2911
remove_blip 114@
mark_model_as_no_longer_needed 426
TIMERB = 0
116@ = add_short_range_sprite_blip_for_coord 71@ {y} 72@ {z} 73@ {sprite} RadarSprite.MapHere
remove_blip 116@
if 
  not is_char_dead $scplayer
goto_if_false @DRIV3_4398

:DRIV3_2965
if 
  not locate_char_any_means_3d $scplayer {x} 71@ {y} 72@ {z} 73@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 35.0 {drawSphere} False
goto_if_false @DRIV3_4398
wait 0
gosub @DRIV3_14595
if 
  93@ == 1
goto_if_false @DRIV3_3038
return 

:DRIV3_3038
if 
  109@ == 0
goto_if_false @DRIV3_4391
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_3080
38@ = store_car_char_is_in $scplayer

:DRIV3_3080
if and
  $flag_phone_dialog_driv3 >= 0
  6 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_3112
gosub @DRIV3_15530

:DRIV3_3112
if 
  $flag_phone_dialog_driv3 == 6
goto_if_false @DRIV3_3264
if 
  TIMERA > 15000
goto_if_false @DRIV3_3264
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15224

:DRIV3_3160
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3186
wait 0
goto @DRIV3_3160

:DRIV3_3186
print_now 'FAR3_GC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3206
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3232
wait 0
goto @DRIV3_3206

:DRIV3_3232
clear_this_print 'FAR3_GC'
TIMERA = 0
$flag_phone_dialog_driv3 = 7
102@ = 0

:DRIV3_3264
if 
  $flag_phone_dialog_driv3 == 7
goto_if_false @DRIV3_3351
if 
  not is_char_dead 53@
goto_if_false @DRIV3_3351
if and
  is_char_in_zone $scplayer {zone} 'DOH'
  is_char_in_zone 53@ {zone} 'DOH'
goto_if_false @DRIV3_3351
$flag_phone_dialog_driv3 = 8
132@ = 6

:DRIV3_3351
if and
  $flag_phone_dialog_driv3 >= 8
  12 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_3383
gosub @DRIV3_15530

:DRIV3_3383
if 
  $flag_phone_dialog_driv3 == 12
goto_if_false @DRIV3_3535
if 
  TIMERA > 10000
goto_if_false @DRIV3_3535
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15223

:DRIV3_3431
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3457
wait 0
goto @DRIV3_3431

:DRIV3_3457
print_now 'FAR3_GB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3477
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3503
wait 0
goto @DRIV3_3477

:DRIV3_3503
clear_this_print 'FAR3_GB'
TIMERA = 0
$flag_phone_dialog_driv3 = 13
102@ = 0

:DRIV3_3535
if 
  $flag_phone_dialog_driv3 == 13
goto_if_false @DRIV3_3629
if 
  not is_char_dead 53@
goto_if_false @DRIV3_3629
if and
  is_char_in_zone $scplayer {zone} 'EASB'
  is_char_in_zone 53@ {zone} 'EASB'
goto_if_false @DRIV3_3629
$flag_phone_dialog_driv3 = 14
132@ = 10
TIMERA = 0

:DRIV3_3629
if and
  $flag_phone_dialog_driv3 >= 14
  19 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_3661
gosub @DRIV3_15530

:DRIV3_3661
if 
  $flag_phone_dialog_driv3 == 19
goto_if_false @DRIV3_3806
if 
  TIMERA > 8000
goto_if_false @DRIV3_3806
TIMERA = 0
$flag_phone_dialog_driv3 = 20
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15207

:DRIV3_3723
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3749
wait 0
goto @DRIV3_3723

:DRIV3_3749
print_now 'FAR3_CH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3769
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3795
wait 0
goto @DRIV3_3769

:DRIV3_3795
clear_this_print 'FAR3_CH'

:DRIV3_3806
if 
  $flag_phone_dialog_driv3 == 20
goto_if_false @DRIV3_3958
if 
  TIMERA > 8000
goto_if_false @DRIV3_3958
TIMERA = 0
$flag_phone_dialog_driv3 = 21
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15222

:DRIV3_3868
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_3894
wait 0
goto @DRIV3_3868

:DRIV3_3894
print_now 'FAR3_GA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_3914
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_3940
wait 0
goto @DRIV3_3914

:DRIV3_3940
clear_this_print 'FAR3_GA'
102@ = 0

:DRIV3_3958
if 
  102@ == 0
goto_if_false @DRIV3_4116
if 
  103@ == 0
goto_if_false @DRIV3_4116
if 
  200000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4116
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15219

:DRIV3_4026
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_4052
wait 0
goto @DRIV3_4026

:DRIV3_4052
print_now 'FAR3_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_4072
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_4098
wait 0
goto @DRIV3_4072

:DRIV3_4098
clear_this_print 'FAR3_FB'
103@ = 1

:DRIV3_4116
if 
  102@ == 0
goto_if_false @DRIV3_4274
if 
  103@ == 1
goto_if_false @DRIV3_4274
if 
  100000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4274
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15220

:DRIV3_4184
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_4210
wait 0
goto @DRIV3_4184

:DRIV3_4210
print_now 'FAR3_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_4230
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_4256
wait 0
goto @DRIV3_4230

:DRIV3_4256
clear_this_print 'FAR3_FC'
103@ = 2

:DRIV3_4274
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_4391
89@ = 0
93@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15221

:DRIV3_4317
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_4343
wait 0
goto @DRIV3_4317

:DRIV3_4343
print_now 'FAR3_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_4363
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_4389
wait 0
goto @DRIV3_4363

:DRIV3_4389
return 

:DRIV3_4391
goto @DRIV3_2965

:DRIV3_4398
clear_help 
remove_blip 116@
remove_blip 127@
request_model 463

:DRIV3_4415
if 
  not has_model_loaded 463
goto_if_false @DRIV3_4442
wait 0
goto @DRIV3_4415

:DRIV3_4442
display_onscreen_counter_with_string $int_distance_player_girl {display} CounterDisplay.Bar {text} 'DRI2_17'
35@ = create_car 482 {x} 56@ {y} 57@ {z} 58@
change_car_colour 35@ {color1} 6 {color2} 0
115@ = add_blip_for_car 35@
change_blip_display 115@ {display} BlipDisplay.MarkerOnly
set_car_heading 35@ {heading} 84@
41@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 123
set_char_proofs 41@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_suffers_critical_hits 41@ {state} False
set_char_decision_maker 41@ {handleOrTemplate} 86@
set_char_relationship 41@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 41@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
add_char_decision_maker_event_response 86@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
set_car_health 35@ {health} 1000
lock_car_doors 35@ {lockStatus} CarLock.SkipShutDoors
set_car_only_damaged_by_player 35@ {state} True
131@ = 0

:DRIV3_4630
if 
  3 > 131@
goto_if_false @DRIV3_4812
if or
  131@ == 0
  131@ == 2
goto_if_false @DRIV3_4692
create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 121 {seat} 131@ {var_handle} 42@(131@,9i)

:DRIV3_4692
if 
  131@ == 1
goto_if_false @DRIV3_4729
create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 122 {seat} 131@ {var_handle} 42@(131@,9i)

:DRIV3_4729
give_weapon_to_char 42@(131@,9i) {weaponType} WeaponType.MicroUzi {ammo} 1000
set_current_char_weapon 42@(131@,9i) {weaponType} WeaponType.MicroUzi
if 
  131@ == 0
goto_if_false @DRIV3_4798
set_char_decision_maker 42@ {handleOrTemplate} 86@
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1

:DRIV3_4798
131@ += 1
goto @DRIV3_4630

:DRIV3_4812
if 
  not is_car_dead 35@
goto_if_false @DRIV3_5062
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 2.0 {yOffset} -6.0 {zOffset} -0.3
36@ = create_car 463 {x} 77@ {y} 78@ {z} 79@
set_car_heading 36@ {heading} 84@
51@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 122
give_weapon_to_char 51@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_current_char_weapon 51@ {weaponType} WeaponType.MicroUzi
set_char_decision_maker 51@ {handleOrTemplate} 86@
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 51@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_car_straight_line_distance 36@ {distance} 255
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -2.0 {yOffset} -6.0 {zOffset} -0.3
37@ = create_car 463 {x} 77@ {y} 78@ {z} 79@
set_car_heading 37@ {heading} 84@
52@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 121
give_weapon_to_char 52@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_current_char_weapon 52@ {weaponType} WeaponType.MicroUzi
set_char_decision_maker 52@ {handleOrTemplate} 86@
set_char_relationship 52@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 52@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
set_car_straight_line_distance 37@ {distance} 255

:DRIV3_5062
if 
  $flag_phone_dialog_driv3 <> 21
goto_if_false @DRIV3_5094
132@ = 18
$flag_phone_dialog_driv3 = 24

:DRIV3_5094
if 
  98@ <> 1
goto_if_false @DRIV3_6806
wait 0
gosub @DRIV3_14595
if 
  93@ == 1
goto_if_false @DRIV3_5143
return 

:DRIV3_5143
if and
  $flag_phone_dialog_driv3 >= 21
  24 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_5182
102@ = 1
gosub @DRIV3_15530

:DRIV3_5182
if and
  $flag_phone_dialog_driv3 >= 24
  30 >= $flag_phone_dialog_driv3
goto_if_false @DRIV3_5221
gosub @DRIV3_15530
102@ = 1

:DRIV3_5221
if 
  95@ == 0
goto_if_false @DRIV3_5294
if 
  $flag_phone_dialog_driv3 == 31
goto_if_false @DRIV3_5287
print_now 'DRI2_18' {time} 5000 {flag} 1
$flag_phone_dialog_driv3 = 32
TIMERA = 0

:DRIV3_5287
goto @DRIV3_5301

:DRIV3_5294
$flag_phone_dialog_driv3 = 32

:DRIV3_5301
if 
  $flag_phone_dialog_driv3 == 32
goto_if_false @DRIV3_5352
if 
  TIMERA > 7000
goto_if_false @DRIV3_5352
102@ = 0
$flag_phone_dialog_driv3 = 33

:DRIV3_5352
if 
  not is_car_dead 35@
goto_if_false @DRIV3_6767
if and
  locate_char_any_means_3d $scplayer {x} 65@ {y} 66@ {z} 67@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
  locate_car_3d 35@ {x} 62@ {y} 63@ {z} 64@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DRIV3_5448
98@ = 1

:DRIV3_5448
if 
  95@ == 0
goto_if_false @DRIV3_5747
if and
  locate_char_any_means_3d $scplayer {x} 65@ {y} 66@ {z} 67@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
  is_car_on_screen 35@
goto_if_false @DRIV3_5747
if 
  not is_char_dead 41@
goto_if_false @DRIV3_5557
task_car_drive_to_coord 41@ {vehicle} 35@ {x} 62@ {y} 63@ {z} 64@ {speed} 25.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DRIV3_5557
if 
  not is_car_dead 36@
goto_if_false @DRIV3_5581
set_car_escort_car_right 36@ {handle} 35@

:DRIV3_5581
if 
  not is_car_dead 37@
goto_if_false @DRIV3_5605
set_car_escort_car_left 37@ {handle} 35@

:DRIV3_5605
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15238

:DRIV3_5616
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_5642
wait 0
goto @DRIV3_5616

:DRIV3_5642
print_now 'FAR3_KD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_5662
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_5688
wait 0
goto @DRIV3_5662

:DRIV3_5688
clear_this_print 'FAR3_KD'
change_blip_display 115@ {display} BlipDisplay.Both
clear_onscreen_timer $timer_countdown_farlie3
clear_onscreen_counter $int_distance_player_girl
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_5740
38@ = store_car_char_is_in $scplayer

:DRIV3_5740
95@ = 1

:DRIV3_5747
if 
  not is_car_dead 35@
goto_if_false @DRIV3_6085
if or
  95@ == 1
  95@ == 2
goto_if_false @DRIV3_5854
if 
  locate_car_3d 35@ {x} 62@ {y} 63@ {z} 64@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV3_5854
set_car_cruise_speed 35@ {maxSpeed} 0.0
set_car_mission 35@ {carMission} CarMission.StopForever
95@ = 3

:DRIV3_5854
if 
  not is_car_dead 35@
goto_if_false @DRIV3_5884
65@, 66@, 67@ = get_car_coordinates 35@

:DRIV3_5884
68@, 69@, 70@ = get_char_coordinates $scplayer
88@ = get_distance_between_coords_3d 68@ {fromY} 69@ {fromZ} 70@ {toX} 65@ {toY} 66@ {toZ} 67@
if or
  54@ == 3
  54@ == 2
goto_if_false @DRIV3_6019
if 
  88@ > 1000.0
goto_if_false @DRIV3_5984
88@ = 1000.0
goto @DRIV3_6012

:DRIV3_5984
129@ = 1000.0
sub_float_lvar_from_float_lvar 129@ -= 88@
129@ /= 10.0

:DRIV3_6012
goto @DRIV3_6085

:DRIV3_6019
if 
  88@ > 500.0
goto_if_false @DRIV3_6057
88@ = 500.0
goto @DRIV3_6085

:DRIV3_6057
129@ = 500.0
sub_float_lvar_from_float_lvar 129@ -= 88@
129@ /= 5.0

:DRIV3_6085
if 
  129@ > 0.0
goto_if_false @DRIV3_6114
cset_var_int_to_lvar_float $int_distance_player_girl =# 129@

:DRIV3_6114
if 
  95@ <> 1
goto_if_false @DRIV3_6651
if 
  109@ == 0
goto_if_false @DRIV3_6583
if 
  102@ == 0
goto_if_false @DRIV3_6308
if 
  103@ == 0
goto_if_false @DRIV3_6308
if 
  200000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6308
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15219

:DRIV3_6218
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_6244
wait 0
goto @DRIV3_6218

:DRIV3_6244
print_now 'FAR3_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_6264
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_6290
wait 0
goto @DRIV3_6264

:DRIV3_6290
clear_this_print 'FAR3_FB'
103@ = 1

:DRIV3_6308
if 
  102@ == 0
goto_if_false @DRIV3_6466
if 
  103@ == 1
goto_if_false @DRIV3_6466
if 
  100000 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6466
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15220

:DRIV3_6376
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_6402
wait 0
goto @DRIV3_6376

:DRIV3_6402
print_now 'FAR3_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_6422
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_6448
wait 0
goto @DRIV3_6422

:DRIV3_6448
clear_this_print 'FAR3_FC'
103@ = 2

:DRIV3_6466
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6583
89@ = 0
93@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15221

:DRIV3_6509
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_6535
wait 0
goto @DRIV3_6509

:DRIV3_6535
print_now 'FAR3_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_6555
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_6581
wait 0
goto @DRIV3_6555

:DRIV3_6581
return 

:DRIV3_6583
if 
  95@ == 0
goto_if_false @DRIV3_6651
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_6651
89@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_6651
if 
  95@ == 1
goto_if_false @DRIV3_6760
if 
  not is_car_dead 35@
goto_if_false @DRIV3_6760
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 35@ {xRadius} 400.0 {yRadius} 400.0 {zRadius} 400.0 {drawSphere} False
goto_if_false @DRIV3_6760
90@ = 0
89@ = 0
93@ = 1
print_now 'DRI2_26' {time} 5000 {flag} 1
return 

:DRIV3_6760
goto @DRIV3_6799

:DRIV3_6767
89@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_6799
goto @DRIV3_5094

:DRIV3_6806
89@ = 0
90@ = 1
return 

:DRIV3_6822
173@ = open_sequence_task 
task_leave_car -1 {vehicle} 35@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 173@
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_6870
38@ = store_car_char_is_in $scplayer

:DRIV3_6870
131@ = 0

:DRIV3_6877
if 
  3 > 131@
goto_if_false @DRIV3_7089
if 
  not is_char_dead 42@(131@,9i)
goto_if_false @DRIV3_7043
add_blip_for_char 42@(131@,9i) {var_handle} 124@(131@,3i)
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7004
perform_sequence_task 42@(131@,9i) {sequence} 173@
set_char_decision_maker 42@(131@,9i) {handleOrTemplate} 86@
set_char_relationship 42@(131@,9i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@(131@,9i) {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
goto @DRIV3_7036

:DRIV3_7004
90@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_7036
goto @DRIV3_7075

:DRIV3_7043
90@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_7075
131@ += 1
goto @DRIV3_6877

:DRIV3_7089
if 
  does_blip_exist 115@
goto_if_false @DRIV3_7112
change_blip_display 115@ {display} BlipDisplay.BlipOnly

:DRIV3_7112
if 
  not is_char_dead 41@
goto_if_false @DRIV3_7166
set_char_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_suffers_critical_hits 41@ {state} True
117@ = add_blip_for_char 41@
perform_sequence_task 41@ {sequence} 173@

:DRIV3_7166
clear_sequence_task 173@
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7539
freeze_car_position 35@ {state} True
lock_car_doors 35@ {lockStatus} CarLock.Locked
if 
  not is_char_dead 51@
goto_if_false @DRIV3_7370
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7370
if 
  not locate_char_any_means_car_3d 51@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DRIV3_7309
set_char_health 51@ {health} 0
mark_char_as_no_longer_needed 51@
if 
  not is_car_dead 36@
goto_if_false @DRIV3_7302
mark_car_as_no_longer_needed 36@

:DRIV3_7302
goto @DRIV3_7370

:DRIV3_7309
if 
  not is_car_dead 36@
goto_if_false @DRIV3_7370
173@ = open_sequence_task 
task_leave_car -1 {vehicle} 36@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 173@
perform_sequence_task 51@ {sequence} 173@
clear_sequence_task 173@
118@ = add_blip_for_char 51@

:DRIV3_7370
if 
  not is_char_dead 52@
goto_if_false @DRIV3_7539
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7539
if 
  not locate_char_any_means_car_3d 52@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DRIV3_7478
set_char_health 52@ {health} 0
mark_char_as_no_longer_needed 52@
if 
  not is_car_dead 37@
goto_if_false @DRIV3_7471
mark_car_as_no_longer_needed 37@

:DRIV3_7471
goto @DRIV3_7539

:DRIV3_7478
if 
  not is_car_dead 37@
goto_if_false @DRIV3_7539
173@ = open_sequence_task 
task_leave_car -1 {vehicle} 37@
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 173@
perform_sequence_task 52@ {sequence} 173@
clear_sequence_task 173@
119@ = add_blip_for_char 52@

:DRIV3_7539
print_now 'DRI2_12' {time} 5000 {flag} 1

:DRIV3_7555
if 
  $timer_countdown_farlie3 > 0
goto_if_false @DRIV3_8216
wait 0
gosub @DRIV3_14595
if 
  93@ == 1
goto_if_false @DRIV3_7604
return 

:DRIV3_7604
if 
  109@ == 0
goto_if_false @DRIV3_7832
if 
  not locate_char_any_means_3d $scplayer {x} 62@ {y} 63@ {z} 64@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @DRIV3_7832
if 
  105@ == 0
goto_if_false @DRIV3_7705
print_now 'DRI2_47' {time} 5000 {flag} 1
105@ = 1

:DRIV3_7705
if 
  105@ == 1
goto_if_false @DRIV3_7832
if 
  95@ == 1
goto_if_false @DRIV3_7832
if 
  not is_car_dead 35@
goto_if_false @DRIV3_7832
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 35@ {xRadius} 400.0 {yRadius} 400.0 {zRadius} 400.0 {drawSphere} False
goto_if_false @DRIV3_7832
90@ = 0
89@ = 0
93@ = 1
print_now 'DRI2_26' {time} 5000 {flag} 1
return 

:DRIV3_7832
131@ = 0

:DRIV3_7839
if 
  3 > 131@
goto_if_false @DRIV3_7920
if 
  is_char_dead 42@(131@,9i)
goto_if_false @DRIV3_7906
if 
  does_blip_exist 124@(131@,3i)
goto_if_false @DRIV3_7906
remove_blip 124@(131@,3i)

:DRIV3_7906
131@ += 1
goto @DRIV3_7839

:DRIV3_7920
131@ = 0

:DRIV3_7927
if 
  2 > 131@
goto_if_false @DRIV3_8008
if 
  is_char_dead 51@(131@,2i)
goto_if_false @DRIV3_7994
if 
  does_blip_exist 118@(131@,2i)
goto_if_false @DRIV3_7994
remove_blip 118@(131@,2i)

:DRIV3_7994
131@ += 1
goto @DRIV3_7927

:DRIV3_8008
if 
  is_char_dead 41@
goto_if_false @DRIV3_8045
if 
  does_blip_exist 117@
goto_if_false @DRIV3_8045
remove_blip 117@

:DRIV3_8045
if 
  not is_car_dead 35@
goto_if_false @DRIV3_8177
if and
  is_char_dead 42@
  is_char_dead 43@
  is_char_dead 44@
  is_char_dead 41@
goto_if_false @DRIV3_8170
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 117@
if 
  is_char_dead 51@
goto_if_false @DRIV3_8170
remove_blip 118@
if 
  is_char_dead 52@
goto_if_false @DRIV3_8170
remove_blip 119@
90@ = 0
94@ = 1
return 

:DRIV3_8170
goto @DRIV3_8209

:DRIV3_8177
90@ = 0
93@ = 1
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_8209
goto @DRIV3_7555

:DRIV3_8216
90@ = 0
93@ = 1
explode_car 35@
print_now 'DRI2_5' {time} 5000 {flag} 1
return 

:DRIV3_8253
if 
  99@ == 0
goto_if_false @DRIV3_9964
178@ = 0
wait 2000
set_player_control $player1 {state} False
switch_widescreen True
wait 2000
do_fade 1000 {direction} Fade.Out

:DRIV3_8306
if 
  get_fading_status 
goto_if_false @DRIV3_8330
wait 0
goto @DRIV3_8306

:DRIV3_8330
request_model 409

:DRIV3_8335
if 
  not has_model_loaded 409
goto_if_false @DRIV3_8362
wait 0
goto @DRIV3_8335

:DRIV3_8362
if 
  not is_car_dead 35@
goto_if_false @DRIV3_8454
set_car_coordinates 35@ {x} -1321.8 {y} -189.79 {z} 13.46
set_car_heading 35@ {heading} 60.0
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} 10.5 {zOffset} -0.2
34@ = create_car 409 {x} 77@ {y} 78@ {z} 79@

:DRIV3_8454
mark_model_as_no_longer_needed 409
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9073
if 
  does_blip_exist 115@
goto_if_false @DRIV3_8498
change_blip_display 115@ {display} BlipDisplay.Both

:DRIV3_8498
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} -6.5 {zOffset} -0.5
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_8564
warp_char_from_car_to_coord $scplayer {x} 77@ {y} 78@ {z} 79@
goto @DRIV3_8578

:DRIV3_8564
set_char_coordinates $scplayer {x} 77@ {y} 78@ {z} 79@

:DRIV3_8578
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -1.0 {yOffset} -3.5 {zOffset} -0.2
if 
  not is_car_dead 36@
goto_if_false @DRIV3_8666
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -8.0 {yOffset} -8.0 {zOffset} -0.9
set_car_coordinates 36@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_8666
if 
  not is_car_dead 37@
goto_if_false @DRIV3_8725
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 8.0 {yOffset} -8.0 {zOffset} -0.9
set_car_coordinates 37@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_8725
if 
  not is_car_dead 38@
goto_if_false @DRIV3_8784
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 15.0 {yOffset} -20.0 {zOffset} -0.9
set_car_coordinates 38@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_8784
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -2.0 {yOffset} -6.5 {zOffset} -0.5
set_fixed_camera_position 77@ {y} 78@ {z} 79@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
load_special_character 1 {modelName} 'TORINO'

:DRIV3_8868
if 
  not has_special_character_loaded 1
goto_if_false @DRIV3_8894
wait 0
goto @DRIV3_8868

:DRIV3_8894
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9066
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} -6.0 {yOffset} -20.0 {zOffset} 0.0
40@ = create_char PedType.Mission2 {modelId} 290 {x} 77@ {y} 78@ {z} 79@
set_char_drowns_in_water 40@ {state} True
shut_char_up_for_scripted_speech 40@ {state} True
set_char_get_out_upside_down_car 40@ {state} False
set_char_stay_in_same_place 40@ {state} True
85@ = get_char_heading 40@
set_char_relationship 40@ {relationshipType} RelationshipType.Like {pedType} PedType.Player1
set_char_decision_maker 40@ {handleOrTemplate} 87@
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 1000
set_char_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_never_targetted 40@ {state} True
set_char_only_damaged_by_player 40@ {state} True
task_leave_car 40@ {vehicle} 35@
set_car_health 35@ {health} 1000

:DRIV3_9066
goto @DRIV3_9105

:DRIV3_9073
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_9105
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
mark_model_as_no_longer_needed 352
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9191
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9191
if 
  not is_char_dead $scplayer
goto_if_false @DRIV3_9191
set_char_visible $scplayer {state} False
set_char_visible 53@ {state} False
set_char_visible 40@ {state} False

:DRIV3_9191
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9398
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9391
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_9247
remove_char_from_group 53@

:DRIV3_9247
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} -20.0 {zOffset} 0.0
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_9313
warp_char_from_car_to_coord 53@ {x} 77@ {y} 78@ {z} 79@
goto @DRIV3_9327

:DRIV3_9313
set_char_coordinates 53@ {x} 77@ {y} 78@ {z} 79@

:DRIV3_9327
set_char_stay_in_same_place 53@ {state} True
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 3.0 {yOffset} -20.0 {zOffset} 0.0
set_char_coordinates $scplayer {x} 77@ {y} 78@ {z} 79@
task_turn_char_to_face_coord $scplayer {x} 56@ {y} 57@ {z} 58@

:DRIV3_9391
goto @DRIV3_9430

:DRIV3_9398
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_9430
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 41@
delete_char 51@
delete_char 52@
delete_char 51@
delete_char 52@
delete_car 36@
delete_car 37@
clear_area 56@ {y} 57@ {z} 58@ {radius} 1500.0 {clearParticles} True
load_cutscene 'FARL_3B'

:DRIV3_9509
if 
  not has_cutscene_loaded 
goto_if_false @DRIV3_9533
wait 0
goto @DRIV3_9509

:DRIV3_9533
do_fade 1000 {direction} Fade.In
clear_area 56@ {y} 57@ {z} 58@ {radius} 1500.0 {clearParticles} True
start_cutscene 

:DRIV3_9560
if 
  not has_cutscene_finished 
goto_if_false @DRIV3_9602
wait 0
clear_area 56@ {y} 57@ {z} 58@ {radius} 1500.0 {clearParticles} True
goto @DRIV3_9560

:DRIV3_9602
clear_cutscene 
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9627
set_char_visible 53@ {state} True

:DRIV3_9627
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9650
set_char_visible 40@ {state} True

:DRIV3_9650
if 
  is_player_playing $player1
goto_if_false @DRIV3_9673
set_char_visible $scplayer {state} True

:DRIV3_9673
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9775
freeze_car_position 35@ {state} False
lock_car_doors 35@ {lockStatus} CarLock.Locked
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9727
task_destroy_car 40@ {vehicle} 35@

:DRIV3_9727
if 
  not is_char_dead 53@
goto_if_false @DRIV3_9775
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_9767
remove_char_from_group 53@

:DRIV3_9767
task_destroy_car 53@ {vehicle} 35@

:DRIV3_9775
do_fade 0 {direction} Fade.Out
if 
  not is_car_dead 35@
goto_if_false @DRIV3_9865
77@, 78@, 79@ = get_offset_from_car_in_world_coords 35@ {xOffset} 6.0 {yOffset} -6.5 {zOffset} -0.5
56@, 57@, 58@ = get_car_coordinates 35@
83@ = get_heading_from_vector_2d 56@ {y} 57@
task_turn_char_to_face_coord $scplayer {x} 56@ {y} 57@ {z} 58@

:DRIV3_9865
clear_area 56@ {y} 57@ {z} 58@ {radius} 1000.0 {clearParticles} True
wait 2000
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1000 {direction} Fade.In

:DRIV3_9899
if 
  get_fading_status 
goto_if_false @DRIV3_9923
wait 0
goto @DRIV3_9899

:DRIV3_9923
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} True
print_now 'DRI2_33' {time} 10000 {flag} 1
99@ = 1

:DRIV3_9964
if 
  not is_char_dead 40@
goto_if_false @DRIV3_9987
goto @DRIV3_10019

:DRIV3_9987
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_10019
if 
  is_char_dead 53@
goto_if_false @DRIV3_10095
89@ = 0
90@ = 0
94@ = 0
91@ = 0
92@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 

:DRIV3_10095
if 
  96@ == 0
goto_if_false @DRIV3_10578
if 
  is_car_dead 35@
goto_if_false @DRIV3_10578
96@ = 1
remove_blip 115@
alter_wanted_level_no_drop $player1 {wantedLevel} 2
TIMERB = 0
set_group_separation_range $Players_Group {range} 30.0
if 
  not is_char_dead 40@
goto_if_false @DRIV3_10237
set_char_stay_in_same_place 40@ {state} False
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_10215
set_group_member $Players_Group {handle} 40@

:DRIV3_10215
set_char_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @DRIV3_10269

:DRIV3_10237
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_10269
if 
  not is_char_dead 53@
goto_if_false @DRIV3_10319
set_char_stay_in_same_place 53@ {state} False
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_10319
set_group_member $Players_Group {handle} 53@

:DRIV3_10319
if 
  not is_char_dead 53@
goto_if_false @DRIV3_10578
if 
  not is_char_dead 40@
goto_if_false @DRIV3_10578
if 
  locate_char_any_means_char_3d $scplayer {target} 40@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @DRIV3_10578
if 
  locate_char_any_means_char_3d $scplayer {target} 53@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @DRIV3_10578
print_now 'DRI2_4' {time} 5000 {flag} 1
if 
  is_car_in_water 35@
goto_if_false @DRIV3_10478
print 'DRI2_34' {time} 10000 {flag} 1
goto @DRIV3_10494

:DRIV3_10478
print 'DRI2_24' {time} 10000 {flag} 1

:DRIV3_10494
if 
  100@ == 0
goto_if_false @DRIV3_10539
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56
goto @DRIV3_10578

:DRIV3_10539
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
if 
  108@ == 0
goto_if_false @DRIV3_10578
108@ = 1

:DRIV3_10578
if 
  107@ == 0
goto_if_false @DRIV3_10690
if 
  not is_char_dead 40@
goto_if_false @DRIV3_10690
if 
  not is_char_dead 53@
goto_if_false @DRIV3_10690
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_10690
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_10690
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_10690
set_police_ignore_player $player1 {state} False
107@ = 1

:DRIV3_10690
if 
  96@ == 1
goto_if_false @DRIV3_10762
gosub @DRIV3_14040
if 
  93@ == 1
goto_if_false @DRIV3_10735
return 

:DRIV3_10735
gosub @DRIV3_14595
if 
  93@ == 1
goto_if_false @DRIV3_10762
return 

:DRIV3_10762
if 
  not locate_char_any_means_3d $scplayer {x} 56@ {y} 57@ {z} 58@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @DRIV3_10836
if 
  97@ == 0
goto_if_false @DRIV3_10829
97@ = 1

:DRIV3_10829
goto @DRIV3_10861

:DRIV3_10836
if 
  97@ == 1
goto_if_false @DRIV3_10861
97@ = 0

:DRIV3_10861
if 
  not is_car_dead 35@
goto_if_false @DRIV3_10891
56@, 57@, 58@ = get_car_coordinates 35@

:DRIV3_10891
if 
  96@ == 1
goto_if_false @DRIV3_11220
remove_blip 115@
if 
  locate_char_any_means_char_3d $scplayer {target} 53@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @DRIV3_11184
if 
  100@ == 0
goto_if_false @DRIV3_11027
if 
  not does_blip_exist 123@
goto_if_false @DRIV3_11020
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56
print_now 'DRI2_34' {time} 5000 {flag} 1

:DRIV3_11020
goto @DRIV3_11098

:DRIV3_11027
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_11098
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_11098
108@ = 1

:DRIV3_11098
if 
  not is_char_dead 40@
goto_if_false @DRIV3_11141
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_11141
set_group_member $Players_Group {handle} 40@

:DRIV3_11141
if 
  not is_char_dead 53@
goto_if_false @DRIV3_11184
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_11184
set_group_member $Players_Group {handle} 53@

:DRIV3_11184
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 38@
mark_model_as_no_longer_needed 482
mark_model_as_no_longer_needed 409
91@ = 1
94@ = 0
return 

:DRIV3_11220
return 

:DRIV3_11222
gosub @DRIV3_14040
if 
  93@ == 1
goto_if_false @DRIV3_11249
return 

:DRIV3_11249
gosub @DRIV3_14595
if 
  93@ == 1
goto_if_false @DRIV3_11276
return 

:DRIV3_11276
if 
  100@ == 1
goto_if_false @DRIV3_11301
gosub @DRIV3_13426

:DRIV3_11301
if 
  107@ == 0
goto_if_false @DRIV3_11413
if 
  not is_char_dead 40@
goto_if_false @DRIV3_11413
if 
  not is_char_dead 53@
goto_if_false @DRIV3_11413
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_11413
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_11413
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_11413
set_police_ignore_player $player1 {state} False
107@ = 1

:DRIV3_11413
if 
  not is_char_dead 40@
goto_if_false @DRIV3_11896
if 
  110@ == 0
goto_if_false @DRIV3_11896
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_11889
if 
  112@ == 0
goto_if_false @DRIV3_11882
38@ = store_car_char_is_in $scplayer
39@ = get_maximum_number_of_passengers 38@
if 
  2 > 39@
goto_if_false @DRIV3_11875
clear_mission_audio MissionAudioSlot.Slot1
if 
  111@ == 0
goto_if_false @DRIV3_11627
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15241

:DRIV3_11544
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_11570
wait 0
goto @DRIV3_11544

:DRIV3_11570
print_now 'FAR3_LC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_11590
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_11616
wait 0
goto @DRIV3_11590

:DRIV3_11616
clear_this_print 'FAR3_LC'

:DRIV3_11627
if 
  111@ == 1
goto_if_false @DRIV3_11735
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15239

:DRIV3_11652
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_11678
wait 0
goto @DRIV3_11652

:DRIV3_11678
print_now 'FAR3_LA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_11698
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_11724
wait 0
goto @DRIV3_11698

:DRIV3_11724
clear_this_print 'FAR3_LA'

:DRIV3_11735
if 
  111@ == 2
goto_if_false @DRIV3_11843
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15240

:DRIV3_11760
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_11786
wait 0
goto @DRIV3_11760

:DRIV3_11786
print_now 'FAR3_LB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_11806
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_11832
wait 0
goto @DRIV3_11806

:DRIV3_11832
clear_this_print 'FAR3_LB'

:DRIV3_11843
111@ += 1
if 
  111@ >= 3
goto_if_false @DRIV3_11875
111@ = 0

:DRIV3_11875
112@ = 1

:DRIV3_11882
goto @DRIV3_11896

:DRIV3_11889
112@ = 0

:DRIV3_11896
if 
  100@ == 0
goto_if_false @DRIV3_12039
if or
  locate_char_any_means_3d $scplayer {x} -1734.05 {y} -579.94 {z} 15.56 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  not locate_char_any_means_3d $scplayer {x} 62@ {y} 63@ {z} 64@ {xRadius} 600.0 {yRadius} 600.0 {zRadius} 600.0 {drawSphere} False
goto_if_false @DRIV3_12039
100@ = 1
if 
  not is_wanted_level_greater $player1 {wantedLevel} 3
goto_if_false @DRIV3_12025
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:DRIV3_12025
set_police_ignore_player $player1 {state} False
107@ = 1

:DRIV3_12039
if 
  110@ == 0
goto_if_false @DRIV3_13424
if 
  109@ == 0
goto_if_false @DRIV3_13424
if 
  100@ == 0
goto_if_false @DRIV3_12349
if 
  locate_char_any_means_3d $scplayer {x} -1734.05 {y} -579.94 {z} 15.56 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DRIV3_12301
if 
  does_blip_exist 123@
goto_if_false @DRIV3_12301
remove_blip 123@
if 
  not is_wanted_level_greater $player1 {wantedLevel} 3
goto_if_false @DRIV3_12187
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:DRIV3_12187
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray
print 'DRI2_46' {time} 5000 {flag} 1
104@ = 1
if 
  not is_char_dead 40@
goto_if_false @DRIV3_12260
clear_char_relationship 40@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
set_char_relationship 40@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop

:DRIV3_12260
if 
  not is_char_dead 53@
goto_if_false @DRIV3_12294
clear_char_relationship 53@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop

:DRIV3_12294
100@ = 1

:DRIV3_12301
if 
  locate_char_any_means_3d $scplayer {x} -1734.05 {y} -579.94 {z} 15.56 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DRIV3_12349

:DRIV3_12349
if 
  108@ == 1
goto_if_false @DRIV3_13424
if 
  100@ == 1
goto_if_false @DRIV3_12555
if and
  $flag_phone_dialog_driv3 >= 33
  47 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_12555
if 
  is_char_in_any_car $scplayer
goto_if_false @DRIV3_12555
if 
  not is_char_dead 40@
goto_if_false @DRIV3_12555
if 
  not is_char_dead 53@
goto_if_false @DRIV3_12555
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_12555
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_12555
if 
  $flag_phone_dialog_driv3 == 33
goto_if_false @DRIV3_12548
132@ = 25
if 
  TIMERA > 10000
goto_if_false @DRIV3_12541
gosub @DRIV3_15530

:DRIV3_12541
goto @DRIV3_12555

:DRIV3_12548
gosub @DRIV3_15530

:DRIV3_12555
if 
  locate_char_any_means_3d $scplayer {x} 59@ {y} 60@ {z} 61@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DRIV3_13424
91@ = 0
92@ = 1
178@ = 0
set_player_control $player1 {state} False
switch_widescreen True
TIMERA = 0
TIMERB = 0

:DRIV3_12643
if 
  8000 > TIMERA
goto_if_false @DRIV3_13394
wait 0
if 
  178@ == 0
goto_if_false @DRIV3_12874
77@, 78@, 79@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 3.0 {yOffset} 8.0 {zOffset} 0.4
set_fixed_camera_position 77@ {y} 78@ {z} 79@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
clear_area 59@ {y} 60@ {z} 61@ {radius} 100.0 {clearParticles} True
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15257

:DRIV3_12777
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_12803
wait 0
goto @DRIV3_12777

:DRIV3_12803
print_now 'FAR3_NA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_12823
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_12849
wait 0
goto @DRIV3_12823

:DRIV3_12849
clear_this_print 'FAR3_NA'
178@ = 1
TIMERB = 0

:DRIV3_12874
if 
  178@ == 1
goto_if_false @DRIV3_13144
if 
  TIMERB > 500
goto_if_false @DRIV3_13144
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13144
77@, 78@, 79@ = get_offset_from_char_in_world_coords 40@ {xOffset} 3.0 {yOffset} -2.0 {zOffset} 0.5
set_fixed_camera_position 77@ {y} 78@ {z} 79@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char 40@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_13015
remove_char_from_group 40@

:DRIV3_13015
if 
  is_char_in_any_car 40@
goto_if_false @DRIV3_13036
task_leave_any_car 40@

:DRIV3_13036
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 15258

:DRIV3_13047
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_13073
wait 0
goto @DRIV3_13047

:DRIV3_13073
print_now 'FAR3_NB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:DRIV3_13093
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_13119
wait 0
goto @DRIV3_13093

:DRIV3_13119
clear_this_print 'FAR3_NB'
TIMERB = 0
178@ = 2

:DRIV3_13144
if 
  178@ == 2
goto_if_false @DRIV3_13296
if 
  TIMERB > 500
goto_if_false @DRIV3_13296
178@ = 3
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13228
task_go_straight_to_coord 40@ {x} -2624.5701 {y} 1410.46 {z} 6.5 {speed} MoveState.Walk {time} -1

:DRIV3_13228
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13296
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_13268
remove_char_from_group 53@

:DRIV3_13268
if 
  is_char_in_any_car 53@
goto_if_false @DRIV3_13296
task_leave_any_car 53@
TIMERB = 0

:DRIV3_13296
if 
  178@ == 3
goto_if_false @DRIV3_13387
if 
  TIMERB > 200
goto_if_false @DRIV3_13387
178@ = 4
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13380
task_go_straight_to_coord 53@ {x} -2625.5701 {y} 1409.46 {z} 6.5 {speed} MoveState.Walk {time} -1

:DRIV3_13380
TIMERB = 0

:DRIV3_13387
goto @DRIV3_12643

:DRIV3_13394
delete_char 40@
delete_char 53@
mark_car_as_no_longer_needed 38@
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False

:DRIV3_13424
return 

:DRIV3_13426
if 
  100@ == 1
goto_if_false @DRIV3_14038
if 
  104@ == 0
goto_if_false @DRIV3_13704
if and
  110@ == 0
  109@ == 0
goto_if_false @DRIV3_13704
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @DRIV3_13704
104@ = 1
if 
  not does_blip_exist 128@
goto_if_false @DRIV3_13560
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray
print 'DRI2_46' {time} 5000 {flag} 1

:DRIV3_13560
if 
  does_blip_exist 123@
goto_if_false @DRIV3_13581
remove_blip 123@

:DRIV3_13581
if 
  does_blip_exist 120@
goto_if_false @DRIV3_13602
remove_blip 120@

:DRIV3_13602
add_char_decision_maker_event_response 87@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleGangDriveby {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} False
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13670
set_char_relationship 40@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
clear_char_relationship 40@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop

:DRIV3_13670
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13704
set_char_relationship 53@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
clear_char_relationship 53@ {relationshipType} RelationshipType.Like {toPedType} PedType.Cop

:DRIV3_13704
if 
  104@ == 1
goto_if_false @DRIV3_14038
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @DRIV3_14038
if 
  not is_char_dead 40@
goto_if_false @DRIV3_13837
clear_char_relationship 40@ {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_13789
remove_char_from_group 40@

:DRIV3_13789
clear_char_tasks 40@
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_13828
set_group_member $Players_Group {handle} 40@
set_group_follow_status $Players_Group {state} True

:DRIV3_13828
set_char_relationship 40@ {relationshipType} RelationshipType.Like {pedType} PedType.Cop

:DRIV3_13837
if 
  not is_char_dead 53@
goto_if_false @DRIV3_13925
clear_char_relationship 53@ {relationshipType} RelationshipType.Hate {toPedType} PedType.Cop
if 
  is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_13886
remove_char_from_group 53@

:DRIV3_13886
clear_char_tasks 53@
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_13925
set_group_member $Players_Group {handle} 53@
set_group_follow_status $Players_Group {state} True

:DRIV3_13925
clear_char_decision_maker_event_response 87@ {event} Event.AcquaintancePedHate
104@ = 0
TIMERA = 0
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_14017
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_14017
108@ = 1

:DRIV3_14017
if 
  does_blip_exist 128@
goto_if_false @DRIV3_14038
remove_blip 128@

:DRIV3_14038
return 

:DRIV3_14040
if 
  not is_char_dead 40@
goto_if_false @DRIV3_14554
if 
  110@ == 0
goto_if_false @DRIV3_14194
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_14194
print_now 'DRI2_3' {time} 5000 {flag} 1
if 
  does_blip_exist 120@
goto_if_false @DRIV3_14130
remove_blip 120@

:DRIV3_14130
if 
  does_blip_exist 123@
goto_if_false @DRIV3_14151
remove_blip 123@

:DRIV3_14151
if 
  does_blip_exist 127@
goto_if_false @DRIV3_14172
remove_blip 127@

:DRIV3_14172
121@ = add_blip_for_char 40@
set_blip_as_friendly 121@ {state} True
110@ = 1

:DRIV3_14194
if 
  110@ == 1
goto_if_false @DRIV3_14547
if 
  locate_char_any_means_char_3d $scplayer {target} 40@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @DRIV3_14547
if 
  not is_group_member 40@ {handle} $Players_Group
goto_if_false @DRIV3_14275
set_group_member $Players_Group {handle} 40@

:DRIV3_14275
110@ = 0
remove_blip 121@
if 
  109@ == 0
goto_if_false @DRIV3_14547
if 
  100@ == 1
goto_if_false @DRIV3_14495
if 
  104@ == 0
goto_if_false @DRIV3_14419
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_14412
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_14412
108@ = 1

:DRIV3_14412
goto @DRIV3_14488

:DRIV3_14419
if 
  not does_blip_exist 128@
goto_if_false @DRIV3_14451
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray

:DRIV3_14451
print_now 'DRI2_46' {time} 5000 {flag} 1
if 
  does_blip_exist 123@
goto_if_false @DRIV3_14488
remove_blip 123@

:DRIV3_14488
goto @DRIV3_14547

:DRIV3_14495
if 
  not does_blip_exist 123@
goto_if_false @DRIV3_14531
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56

:DRIV3_14531
print_now 'DRI2_34' {time} 5000 {flag} 1

:DRIV3_14547
goto @DRIV3_14593

:DRIV3_14554
94@ = 0
94@ = 0
93@ = 1
print_now 'DRI2_22' {time} 5000 {flag} 1
return 

:DRIV3_14593
return 

:DRIV3_14595
if 
  not is_char_dead 53@
goto_if_false @DRIV3_15480
if 
  109@ == 0
goto_if_false @DRIV3_14770
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_14770
print_now 'DRI2_32' {time} 5000 {flag} 1
if 
  does_blip_exist 120@
goto_if_false @DRIV3_14685
remove_blip 120@

:DRIV3_14685
if 
  does_blip_exist 127@
goto_if_false @DRIV3_14706
remove_blip 127@

:DRIV3_14706
if 
  does_blip_exist 123@
goto_if_false @DRIV3_14727
remove_blip 123@

:DRIV3_14727
if 
  does_blip_exist 116@
goto_if_false @DRIV3_14748
remove_blip 116@

:DRIV3_14748
122@ = add_blip_for_char 53@
set_blip_as_friendly 122@ {state} True
109@ = 1

:DRIV3_14770
if 
  109@ == 1
goto_if_false @DRIV3_15473
if 
  not is_char_dead 53@
goto_if_false @DRIV3_15427
if 
  locate_char_any_means_char_3d $scplayer {target} 53@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @DRIV3_15420
if 
  not is_group_member 53@ {handle} $Players_Group
goto_if_false @DRIV3_14867
set_group_member $Players_Group {handle} 53@

:DRIV3_14867
109@ = 0
remove_blip 122@
if 
  110@ == 0
goto_if_false @DRIV3_15157
if 
  91@ == 1
goto_if_false @DRIV3_15157
if 
  100@ == 1
goto_if_false @DRIV3_15105
if 
  104@ == 0
goto_if_false @DRIV3_15029
if 
  not does_blip_exist 120@
goto_if_false @DRIV3_15022
120@ = add_blip_for_coord 59@ {y} 60@ {z} 61@
print_now 'DRI2_25' {time} 5000 {flag} 1
if 
  108@ == 0
goto_if_false @DRIV3_15022
108@ = 1

:DRIV3_15022
goto @DRIV3_15098

:DRIV3_15029
if 
  not does_blip_exist 128@
goto_if_false @DRIV3_15061
128@ = add_sprite_blip_for_coord 80@ {y} 81@ {z} 82@ {sprite} RadarSprite.Spray

:DRIV3_15061
print_now 'DRI2_46' {time} 5000 {flag} 1
if 
  does_blip_exist 123@
goto_if_false @DRIV3_15098
remove_blip 123@

:DRIV3_15098
goto @DRIV3_15157

:DRIV3_15105
if 
  not does_blip_exist 123@
goto_if_false @DRIV3_15141
123@ = add_blip_for_coord -1734.05 {y} -579.94 {z} 15.56

:DRIV3_15141
print_now 'DRI2_34' {time} 5000 {flag} 1

:DRIV3_15157
if 
  89@ == 1
goto_if_false @DRIV3_15420
if and
  $flag_phone_dialog_driv3 >= 5
  8 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_15236
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15236
127@ = add_blip_for_coord -2071.0 {y} 209.0 {z} 35.0

:DRIV3_15236
if and
  $flag_phone_dialog_driv3 >= 9
  15 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_15297
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15297
127@ = add_blip_for_coord -1772.0 {y} 152.0 {z} 152.0

:DRIV3_15297
if and
  $flag_phone_dialog_driv3 >= 15
  24 > $flag_phone_dialog_driv3
goto_if_false @DRIV3_15352
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15352
116@ = add_blip_for_coord 71@ {y} 72@ {z} 73@

:DRIV3_15352
if 
  89@ == 1
goto_if_false @DRIV3_15420
if 
  0 >= $timer_countdown_farlie3
goto_if_false @DRIV3_15420
89@ = 0
93@ = 1
print_now 'FAR3_FD' {time} 5000 {flag} 1
return 

:DRIV3_15420
goto @DRIV3_15473

:DRIV3_15427
90@ = 0
89@ = 0
94@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 

:DRIV3_15473
goto @DRIV3_15528

:DRIV3_15480
90@ = 0
89@ = 0
94@ = 0
93@ = 1
print_now 'DRI2_31' {time} 5000 {flag} 1
return 
return 

:DRIV3_15528
return 

:DRIV3_15530
if 
  106@ == 0
goto_if_false @DRIV3_15570
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 133@(132@,40i)
106@ = 1

:DRIV3_15570
if 
  106@ == 1
goto_if_false @DRIV3_15837
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DRIV3_15837
play_mission_audio MissionAudioSlot.Slot1
print_now $farlie3_text(132@,40s) {time} 10000 {flag} 1
if 
  $flag_phone_dialog_driv3 == 0
goto_if_false @DRIV3_15646
102@ = 1

:DRIV3_15646
if 
  $flag_phone_dialog_driv3 == 5
goto_if_false @DRIV3_15700
if 
  not does_blip_exist 127@
goto_if_false @DRIV3_15700
127@ = add_blip_for_coord -2071.0 {y} 209.0 {z} 35.0

:DRIV3_15700
if 
  $flag_phone_dialog_driv3 == 8
goto_if_false @DRIV3_15730
remove_blip 127@
102@ = 1

:DRIV3_15730
if 
  $flag_phone_dialog_driv3 == 11
goto_if_false @DRIV3_15768
127@ = add_blip_for_coord -1772.0 {y} 152.0 {z} 152.0

:DRIV3_15768
if 
  $flag_phone_dialog_driv3 == 14
goto_if_false @DRIV3_15798
102@ = 1
remove_blip 127@

:DRIV3_15798
if 
  $flag_phone_dialog_driv3 == 18
goto_if_false @DRIV3_15830
116@ = add_blip_for_coord 71@ {y} 72@ {z} 73@

:DRIV3_15830
106@ = 2

:DRIV3_15837
if 
  106@ == 2
goto_if_false @DRIV3_15907
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DRIV3_15907
TIMERA = 0
106@ = 0
clear_this_print $farlie3_text(132@,40s)
132@ += 1
$flag_phone_dialog_driv3 += 1

:DRIV3_15907
return 

:DRIV3_15909
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $synd_contact_blip
print_with_number_big 'M_PASSS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 7000
award_player_mission_respect 25
$flag_synd_mission_counter += 1
register_mission_passed 'FAR_3'
player_made_progress 1
remove_blip $synd_contact_blip
$synd_contact_blip = add_sprite_blip_for_contact_point $garageX {y} $garageY {z} $garageZ {sprite} $synd_blip_icon
set_int_stat StatId.PassedFarlie3 {value} 1
return 

:DRIV3_16007
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DRIV3_16025
$onmission = 0
$flag_is_farlie3_running = 0
if 
  is_player_playing $player1
goto_if_false @DRIV3_16062
shut_char_up_for_scripted_speech $scplayer {state} False

:DRIV3_16062
set_police_ignore_player $player1 {state} False
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 482
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 122
mark_model_as_no_longer_needed 123
remove_pickup 55@
mark_model_as_no_longer_needed 409
131@ = 0

:DRIV3_16108
if 
  3 > 131@
goto_if_false @DRIV3_16149
mark_char_as_no_longer_needed 42@(131@,9i)
131@ += 1
goto @DRIV3_16108

:DRIV3_16149
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
remove_char_elegantly 40@
remove_char_elegantly 53@
unload_special_character 1
unload_special_character 2
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 34@
mark_model_as_no_longer_needed 463
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 114@
remove_blip 115@
remove_blip 116@
remove_blip 117@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 127@
remove_blip 118@
remove_blip 119@
remove_blip 128@
mark_car_as_no_longer_needed 38@
mark_model_as_no_longer_needed 426
clear_onscreen_timer $timer_countdown_farlie3
clear_onscreen_counter $int_distance_player_girl
$2653 = add_short_range_sprite_blip_for_coord -1908.9 {y} 292.3 {z} 40.0 {sprite} RadarSprite.Spray
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 67---------------
// Originally: Zeroing In

:STEAL1
script_name 'STEAL1'
gosub @STEAL1_581
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL1_38
gosub @STEAL1_7641

:STEAL1_38
gosub @STEAL1_7730
terminate_this_script 

:STEAL1_47
request_model 558
request_model 41
load_all_models_now 

:STEAL1_58
if or
  not has_model_loaded 558
  not has_model_loaded 41
goto_if_false @STEAL1_89
wait 0
goto @STEAL1_58

:STEAL1_89
suppress_car_model 558
438@ = -2027.335
439@ = 326.0038
440@ = 34.2344
441@ = 88.2674
445@ = -2025.443
446@ = 323.5849
447@ = 34.1015
448@ = 77.8368
clear_area 438@ {y} 439@ {z} 440@ {radius} 5.0 {clearParticles} True
435@ = create_car 558 {x} 438@ {y} 439@ {z} 440@
set_car_heading 435@ {heading} 441@
lock_car_doors 435@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_only_damaged_by_player 435@ {state} True
443@ = create_char PedType.CivFemale {modelId} 41 {x} 445@ {y} 446@ {z} 447@
set_char_heading 443@ {heading} 448@
set_load_collision_for_car_flag 435@ {state} False
436@ = add_blip_for_car_old 435@ {color} BlipColor.Yellow {display} BlipDisplay.MarkerOnly
change_car_colour 435@ {color1} 5 {color2} 1
return 

:STEAL1_287
mark_model_as_no_longer_needed 558
return 
$mod_garage_blips = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:STEAL1_314
request_model 602

:STEAL1_319
if 
  not has_model_loaded 602
goto_if_false @STEAL1_346
wait 0
goto @STEAL1_319

:STEAL1_346
450@ = -2043.911
451@ = 179.1213
452@ = 27.8507
453@ = 270.0
clear_area 450@ {y} 451@ {z} 452@ {radius} 5.0 {clearParticles} True
449@ = create_car 602 {x} 450@ {y} 451@ {z} 452@
set_car_heading 449@ {heading} 453@
warp_char_into_car $scplayer {vehicle} 449@
return 

:STEAL1_439
load_special_character 1 {modelName} 'ZERO'
request_animation "CAR_CHAT"

:STEAL1_464
if or
  not has_special_character_loaded 1
  not has_animation_loaded "CAR_CHAT"
goto_if_false @STEAL1_502
wait 0
goto @STEAL1_464

:STEAL1_502
455@ = -2034.566
456@ = 175.2188
457@ = 27.8516
458@ = 13.516
clear_area 455@ {y} 456@ {z} 457@ {radius} 5.0 {clearParticles} True
454@ = create_char PedType.CivMale {modelId} 290 {x} 455@ {y} 456@ {z} 457@
return 

:STEAL1_581
register_mission_given 
$onmission = 1
wait 0
34@ = 0
36@ = 0
37@ = 0
35@ = 0
38@ = 1
39@ = 1
40@ = 0
50@ = 0
90@ = 500
$st1_final_dest = 57
$st1_route = 2
$st1_route_nx = 3
$st1_cruise_speed = 35.0
51@ = 0
52@ = 0
400@ = 0
404@ = 1
402@ = 1
403@ = 2
401@ = 0
60@ = -16776961
61@ = -8355496
43@ = -16776961
44@ = -12566358
45@ = -8355496
46@ = 0
47@ = 0
62@ = 255
63@ = 0
64@ = 0
65@ = 255
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 16777216
71@ = 65536
72@ = 256
73@ = 1
119@ = -2711.3
120@ = 118.81
121@ = 3.99
122@ = 2.07
123@ = 178.25
352@ = -2033.175
353@ = 178.6755
354@ = 27.8516
102@ = -2708.79
108@ = -9.59
114@ = 3.98
304@ = -2689.74
310@ = 91.48
316@ = 5.04
305@ = -2692.04
311@ = 91.71
317@ = 4.39
307@ = -2904.51
313@ = 1181.5601
319@ = 13.71
308@ = -2916.9199
314@ = 1182.0601
320@ = 13.59
309@ = -2917.76
315@ = 1176.9301
321@ = 13.67
322@ = -2899.05
324@ = 1170.08
326@ = 13.03
323@ = -2898.6599
325@ = 1166.74
327@ = 13.21
328@ = 0.0
334@ = 0.0
340@ = 0.0
329@ = 0.0
335@ = 0.0
341@ = 0.0
330@ = 0.0
336@ = 0.0
342@ = 0.0
331@ = 0.0
337@ = 0.0
343@ = 0.0
332@ = 0.0
338@ = 0.0
344@ = 0.0
333@ = 0.0
339@ = 0.0
345@ = 0.0
405@ = -2704.72
415@ = 113.56
425@ = 5.52
406@ = -2701.1201
416@ = 100.21
426@ = 5.47
407@ = -2699.8401
417@ = 94.03
427@ = 6.41
408@ = -2710.6001
418@ = 126.88
428@ = 5.13
409@ = 0.0
419@ = 0.0
429@ = 0.0
set_lvar_text_label 372@s = 'STL1_AA'
set_lvar_text_label 374@s = 'STL1_AB'
set_lvar_text_label 376@s = 'STL1_AC'
set_lvar_text_label 378@s = 'STL1_AD'
set_lvar_text_label 380@s = 'STL1_AE'
set_lvar_int_to_constant 384@ = 36600
set_lvar_int_to_constant 385@ = 36601
set_lvar_int_to_constant 386@ = 36602
set_lvar_int_to_constant 387@ = 36603
set_lvar_int_to_constant 388@ = 36604
load_mission_text 'STEAL1'
85@ = 0
86@ = 1
48@ = 2
force_weather_now WeatherType.SunnySf
set_area_visible 1
load_cutscene 'STEAL_1'

:STEAL1_1716
if 
  not has_cutscene_loaded 
goto_if_false @STEAL1_1740
wait 0
goto @STEAL1_1716

:STEAL1_1740
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL1_1749
if 
  not has_cutscene_finished 
goto_if_false @STEAL1_1773
wait 0
goto @STEAL1_1749

:STEAL1_1773
do_fade 0 {direction} Fade.Out

:STEAL1_1779
if 
  get_fading_status 
goto_if_false @STEAL1_1803
wait 0
goto @STEAL1_1779

:STEAL1_1803
clear_cutscene 
set_area_visible 0
set_player_control $player1 {state} False

:STEAL1_1816
wait 0
if 
  400@ <> 0
goto_if_false @STEAL1_2159
if 
  401@ == 0
goto_if_false @STEAL1_1884
if 
  has_mission_audio_loaded 403@
goto_if_false @STEAL1_1877
clear_mission_audio 403@

:STEAL1_1877
401@ = 1

:STEAL1_1884
if 
  401@ == 1
goto_if_false @STEAL1_1921
load_mission_audio 402@ {audioId} 383@(400@,17i)
401@ = 2

:STEAL1_1921
if 
  401@ == 2
goto_if_false @STEAL1_1981
if 
  has_mission_audio_loaded 402@
goto_if_false @STEAL1_1981
play_mission_audio 402@
print_now 370@(400@,6s) {time} 10000 {flag} 1
401@ = 3

:STEAL1_1981
if 
  401@ == 3
goto_if_false @STEAL1_2159
if 
  has_mission_audio_finished 402@
goto_if_false @STEAL1_2098
clear_this_print 370@(400@,6s)
if 
  402@ == 1
goto_if_false @STEAL1_2063
402@ = 2
403@ = 1
goto @STEAL1_2077

:STEAL1_2063
402@ = 1
403@ = 2

:STEAL1_2077
400@ = 0
401@ = 0
goto @STEAL1_2159

:STEAL1_2098
if 
  not has_mission_audio_loaded 403@
goto_if_false @STEAL1_2159
if 
  60 > 400@
goto_if_false @STEAL1_2159
set_lvar_int_to_lvar_int 404@ = 400@
404@ += 1
load_mission_audio 403@ {audioId} 383@(404@,17i)

:STEAL1_2159
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @STEAL1_2181
goto @STEAL1_7659

:STEAL1_2181
if 
  not is_char_dead $scplayer
goto_if_false @STEAL1_2305
if 
  3 > 34@
goto_if_false @STEAL1_2305
if 
  35@ == 0
goto_if_false @STEAL1_2264
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL1_2264
449@ = store_car_char_is_in $scplayer
35@ = 1

:STEAL1_2264
if 
  35@ == 1
goto_if_false @STEAL1_2305
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL1_2305
35@ = 0

:STEAL1_2305
if 
  34@ == 0
goto_if_false @STEAL1_3948
if 
  37@ == 0
goto_if_false @STEAL1_2779
clear_area 352@ {y} 353@ {z} 354@ {radius} 25.0 {clearParticles} True
open_garage 'HBGDSFS'
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2037.601 {y} 183.5734 {z} 30.4011 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.017 {y} 182.7901 {z} 30.1884 {switchStyle} SwitchType.JumpCut
gosub @STEAL1_314
gosub @STEAL1_439
gosub @STEAL1_47
gosub @STEAL1_7974
load_scene_in_direction -2029.9041 {y} 179.7978 {z} 29.0075 {heading} 130.0
do_fade 500 {direction} Fade.In

:STEAL1_2489
if 
  get_fading_status 
goto_if_false @STEAL1_2513
wait 0
goto @STEAL1_2489

:STEAL1_2513
if and
  not is_car_dead 449@
  not is_char_dead 454@
goto_if_false @STEAL1_2779
if 
  401@ == 0
goto_if_false @STEAL1_2779
400@ = 1
366@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2032.55 {y} 176.89 {z} 28.95 {speed} MoveState.Walk {time} -2
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "CAR_TALKM_IN" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_LOOP" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim -1 {animationName} "CAR_TALKM_OUT" {animationFile} "CAR_CHAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
close_sequence_task 366@
perform_sequence_task 454@ {sequence} 366@
task_car_drive_to_coord $scplayer {vehicle} 449@ {x} 352@ {y} 353@ {z} 354@ {speed} 12.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
80@ = get_game_timer 
37@ = 1

:STEAL1_2779
if 
  37@ > 0
goto_if_false @STEAL1_2869
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_2869
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL1_2869
80@ -= 10000
37@ = 5

:STEAL1_2869
if 
  37@ == 1
goto_if_false @STEAL1_2964
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_2964
if 
  401@ == 0
goto_if_false @STEAL1_2964
400@ = 2
80@ = get_game_timer 
37@ = 2

:STEAL1_2964
if 
  37@ == 2
goto_if_false @STEAL1_3110
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3110
if 
  401@ == 0
goto_if_false @STEAL1_3110
400@ = 3
80@ = get_game_timer 
set_fixed_camera_position -2031.2419 {y} 175.4691 {z} 29.0587 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2031.501 {y} 176.4334 {z} 29.007 {switchStyle} SwitchType.JumpCut
37@ = 3

:STEAL1_3110
if 
  37@ == 3
goto_if_false @STEAL1_3392
if and
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_3392
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3392
if 
  401@ == 0
goto_if_false @STEAL1_3392
clear_prints 
do_fade 100 {direction} Fade.Out

:STEAL1_3215
if 
  get_fading_status 
goto_if_false @STEAL1_3239
wait 0
goto @STEAL1_3215

:STEAL1_3239
set_fixed_camera_position -2022.5179 {y} 322.6858 {z} 34.6179 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2023.382 {y} 323.1579 {z} 34.7936 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -2022.5179 {y} 322.6858 {z} 34.6179 {heading} 50.0
do_fade 100 {direction} Fade.In

:STEAL1_3318
if 
  get_fading_status 
goto_if_false @STEAL1_3342
wait 0
goto @STEAL1_3318

:STEAL1_3342
400@ = 4
if and
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_3392
task_enter_car_as_driver 443@ {vehicle} 435@ {time} -1
80@ = get_game_timer 
37@ = 4

:STEAL1_3392
if 
  37@ == 4
goto_if_false @STEAL1_3570
if 
  not is_car_dead 435@
goto_if_false @STEAL1_3570
if 
  not is_char_dead 443@
goto_if_false @STEAL1_3570
if 
  is_char_sitting_in_car 443@ {vehicle} 435@
goto_if_false @STEAL1_3570
if 
  401@ == 0
goto_if_false @STEAL1_3570
400@ = 5
80@ = get_game_timer 
369@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 435@ {x} 125@ {y} 185@ {z} 245@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 435@ {x} 126@ {y} 186@ {z} 246@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 369@
perform_sequence_task 443@ {sequence} 369@
37@ = 5

:STEAL1_3570
if 
  37@ == 5
goto_if_false @STEAL1_3948
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 1000
goto_if_false @STEAL1_3948
if 
  401@ == 0
goto_if_false @STEAL1_3948
clear_prints 
do_fade 500 {direction} Fade.Out

:STEAL1_3655
if 
  get_fading_status 
goto_if_false @STEAL1_3679
wait 0
goto @STEAL1_3655

:STEAL1_3679
close_garage 'HBGDSFS'
clear_char_tasks $scplayer
if 
  not is_car_dead 449@
goto_if_false @STEAL1_3786
load_scene -2028.827 {y} 178.4434 {z} 27.8516
warp_char_from_car_to_coord $scplayer {x} -2030.672 {y} 179.1596 {z} 28.9611
set_car_coordinates 449@ {x} -2028.827 {y} 178.4434 {z} 27.8516
set_car_heading 449@ {heading} 266.8448
warp_char_into_car $scplayer {vehicle} 449@

:STEAL1_3786
load_mission_audio MissionAudioSlot.Slot3 {audioId} 45400

:STEAL1_3795
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @STEAL1_3821
wait 0
goto @STEAL1_3795

:STEAL1_3821
if and
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_3869
if 
  not is_char_in_car 443@ {vehicle} 435@
goto_if_false @STEAL1_3869
warp_char_into_car 443@ {vehicle} 435@

:STEAL1_3869
remove_animation "CAR_CHAT"
restore_camera_jumpcut 
set_camera_behind_player 
delete_char 454@
unload_special_character 1
mark_model_as_no_longer_needed 602
switch_widescreen False
do_fade 500 {direction} Fade.In

:STEAL1_3910
if 
  get_fading_status 
goto_if_false @STEAL1_3934
wait 0
goto @STEAL1_3910

:STEAL1_3934
set_player_control $player1 {state} True
34@ = 1

:STEAL1_3948
if 
  34@ == 1
goto_if_false @STEAL1_4090
if and
  not is_char_dead $scplayer
  not is_car_dead 435@
  not is_char_dead 443@
goto_if_false @STEAL1_4090
if 
  is_char_in_car 443@ {vehicle} 435@
goto_if_false @STEAL1_4090
set_player_control $player1 {state} True
print 'STL1_03' {time} 7000 {flag} 1
add_stuck_car_check_with_warp 435@ {distance} 1.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
task_car_drive_to_coord 443@ {vehicle} 435@ {x} 126@ {y} 186@ {z} 246@ {speed} 35.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
34@ = 2

:STEAL1_4090
if 
  is_car_dead 435@
goto_if_false @STEAL1_4131
clear_prints 
print_now 'STL1_07' {time} 5000 {flag} 1
goto @STEAL1_7641

:STEAL1_4131
if 
  34@ == 2
goto_if_false @STEAL1_5957
if and
  not is_car_dead 435@
  not is_char_dead 443@
  not is_char_dead $scplayer
goto_if_false @STEAL1_5934
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @STEAL1_4207
40@ = 3
set_car_temp_action 435@ {actionId} TempAction.HandbrakeStraight {time} 2000

:STEAL1_4207
if 
  locate_char_any_means_char_3d $scplayer {target} 443@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @STEAL1_4281
if 
  45.0 > $st1_cruise_speed
goto_if_false @STEAL1_4274
$st1_cruise_speed += 0.1

:STEAL1_4274
goto @STEAL1_4312

:STEAL1_4281
if 
  $st1_cruise_speed > 30.0
goto_if_false @STEAL1_4312
$st1_cruise_speed -= 0.1

:STEAL1_4312
set_car_cruise_speed 435@ {maxSpeed} $st1_cruise_speed
442@ = get_car_speed 435@
438@, 439@, 440@ = get_car_coordinates 435@
if 
  is_int_var_greater_than_int_var $st1_final_dest > $st1_route
goto_if_false @STEAL1_4474
if 
  locate_char_in_car_3d 443@ {x} 124@($st1_route,60f) {y} 184@($st1_route,60f) {z} 244@($st1_route,60f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @STEAL1_4467
$st1_route += 1
$st1_route_nx += 1
task_car_drive_to_coord 443@ {vehicle} 435@ {x} 124@($st1_route,60f) {y} 184@($st1_route,60f) {z} 244@($st1_route,60f) {speed} $st1_cruise_speed {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:STEAL1_4467
goto @STEAL1_4667

:STEAL1_4474
if 
  locate_char_in_car_3d 443@ {x} 124@($st1_route,60f) {y} 184@($st1_route,60f) {z} 244@($st1_route,60f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @STEAL1_4557
task_car_drive_wander 443@ {vehicle} 435@ {speed} 35.0 {drivingMode} DrivingMode.AvoidCars
$st1_route += 1
$st1_route_nx += 1

:STEAL1_4557
if 
  is_int_var_greater_than_int_var $st1_route > $st1_final_dest
goto_if_false @STEAL1_4667
if 
  not is_car_on_screen 435@
goto_if_false @STEAL1_4667
349@, 350@, 351@ = get_char_coordinates $scplayer
87@ = get_distance_between_coords_2d 438@ {fromY} 439@ {toX} 349@ {toZ} 350@
if 
  87@ > 200.0
goto_if_false @STEAL1_4667
print_now 'STL1_09' {time} 5000 {flag} 1
goto @STEAL1_7641

:STEAL1_4667
if and
  40@ == 2
  49@ == 0
goto_if_false @STEAL1_4760
95@ = get_game_timer 
if 
  locate_char_any_means_3d $scplayer {x} 438@ {y} 439@ {z} 440@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @STEAL1_4753
49@ = 1
goto @STEAL1_4760

:STEAL1_4753
49@ = 0

:STEAL1_4760
if 
  49@ == 1
goto_if_false @STEAL1_5055
if 
  442@ > 10.0
goto_if_false @STEAL1_5055
357@, 358@, 359@ = get_car_speed_vector 435@
set_lvar_float_to_lvar_float 364@ = 357@
mult_float_lvar_by_float_lvar 364@ *= 357@
set_lvar_float_to_lvar_float 365@ = 358@
mult_float_lvar_by_float_lvar 365@ *= 358@
set_lvar_float_to_lvar_float 361@ = 364@
add_float_lvar_to_float_lvar 361@ += 365@
360@ = sqrt 361@
355@ = get_car_forward_x 435@
356@ = get_car_forward_y 435@
set_lvar_float_to_lvar_float 364@ = 357@
mult_float_lvar_by_float_lvar 364@ *= 355@
set_lvar_float_to_lvar_float 365@ = 358@
mult_float_lvar_by_float_lvar 365@ *= 356@
set_lvar_float_to_lvar_float 362@ = 364@
add_float_lvar_to_float_lvar 362@ += 365@
set_lvar_float_to_lvar_float 364@ = 362@
mult_float_lvar_by_float_lvar 364@ *= 362@
set_lvar_float_to_lvar_float 365@ = 361@
sub_float_lvar_from_float_lvar 365@ -= 364@
363@ = sqrt 365@
set_lvar_float_to_lvar_float 364@ = 363@
div_float_lvar_by_float_lvar 364@ /= 362@
if 
  364@ > 2.2
goto_if_false @STEAL1_5041
set_car_temp_action 435@ {actionId} TempAction.HandbrakeStraight {time} 2000
40@ = 3
49@ = 0
goto @STEAL1_5055

:STEAL1_5041
40@ = 2
49@ = 0

:STEAL1_5055
if 
  40@ == 3
goto_if_false @STEAL1_5187
if 
  not is_car_dead 435@
goto_if_false @STEAL1_5187
clear_prints 
clear_char_tasks 443@
set_car_cruise_speed 435@ {maxSpeed} 0.0
print_now 'STL1_05' {time} 5000 {flag} 1
remove_stuck_car_check 435@
remove_blip 436@
436@ = add_blip_for_car 435@
set_blip_as_friendly 436@ {state} True
if 
  is_car_stopped 435@
goto_if_false @STEAL1_5187
task_leave_car_and_flee 443@ {vehicle} 435@ {x} 438@ {y} 439@ {z} 440@
34@ = 3

:STEAL1_5187
if 
  40@ == 0
goto_if_false @STEAL1_5338
remove_blip 436@
445@, 446@, 447@ = get_car_coordinates 435@
436@ = add_blip_for_coord 445@ {y} 446@ {z} 447@
if 
  not locate_char_any_means_3d $scplayer {x} 438@ {y} 439@ {z} 440@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @STEAL1_5284
play_mission_audio MissionAudioSlot.Slot3

:STEAL1_5284
62@ = 255
63@ = 0
64@ = 0
65@ = 255
gosub @STEAL1_7793
80@ = get_game_timer 
84@ = get_game_timer 
40@ = 1

:STEAL1_5338
if 
  40@ == 1
goto_if_false @STEAL1_5779
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
set_lvar_int_to_lvar_int 83@ = 81@
sub_int_lvar_from_int_lvar 83@ -= 84@
if 
  83@ > 1000
goto_if_false @STEAL1_5453
if 
  52@ == 0
goto_if_false @STEAL1_5453
print 'STL1_03' {time} 8000 {flag} 1
52@ = 1

:STEAL1_5453
if 
  82@ > 30
goto_if_false @STEAL1_5483
gosub @STEAL1_7793
80@ = get_game_timer 

:STEAL1_5483
if 
  not is_char_dead 443@
goto_if_false @STEAL1_5703
if or
  locate_char_any_means_2d $scplayer {x} 445@ {y} 446@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  locate_char_in_car_char_3d $scplayer {target} 443@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @STEAL1_5626
if 
  51@ == 0
goto_if_false @STEAL1_5594
print_help 'STL1_04'
51@ = 1

:STEAL1_5594
remove_blip 436@
80@ = get_game_timer 
436@ = add_blip_for_car 435@
49@ = 0
40@ = 2

:STEAL1_5626
if 
  locate_char_in_car_char_3d $scplayer {target} 443@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @STEAL1_5703
if 
  51@ == 1
goto_if_false @STEAL1_5703
print_now 'STL1_02' {time} 12000 {flag} 1
51@ = 2

:STEAL1_5703
if 
  128 > 65@
goto_if_false @STEAL1_5737
print_now 'STL1_10' {time} 100 {flag} 1

:STEAL1_5737
if 
  is_int_lvar_equal_to_int_lvar 65@ == 69@
goto_if_false @STEAL1_5779
print_now 'STL1_09' {time} 7000 {flag} 1
goto @STEAL1_7641

:STEAL1_5779
if 
  40@ == 2
goto_if_false @STEAL1_5934
if 
  not is_car_dead 435@
goto_if_false @STEAL1_5934
if 
  87@ > 200.0
goto_if_false @STEAL1_5841
40@ = 0

:STEAL1_5841
81@ = get_game_timer 
set_lvar_int_to_lvar_int 82@ = 81@
sub_int_lvar_from_int_lvar 82@ -= 80@
if 
  82@ > 2000
goto_if_false @STEAL1_5904
if 
  not is_car_on_screen 435@
goto_if_false @STEAL1_5904
40@ = 0

:STEAL1_5904
if 
  not is_car_on_screen 435@
goto_if_false @STEAL1_5934
40@ = 0
goto @STEAL1_5934

:STEAL1_5934
if 
  is_char_dead 443@
goto_if_false @STEAL1_5957
34@ = 3

:STEAL1_5957
if 
  34@ == 3
goto_if_false @STEAL1_7409
if and
  not is_car_dead 435@
  not is_char_dead $scplayer
goto_if_false @STEAL1_7409
if 
  50@ == 0
goto_if_false @STEAL1_6028
lock_car_doors 435@ {lockStatus} CarLock.Unlocked
50@ = 1

:STEAL1_6028
if 
  50@ == 1
goto_if_false @STEAL1_6152
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6152
remove_blip 436@
print_now 'STL1_06' {time} 5000 {flag} 1
53@ = add_blip_for_coord 352@ {y} 353@ {z} 354@
change_garage_type 'HBGDSFS' {type} GarageType.ForScriptToOpenAndClose
request_car_recording 171

:STEAL1_6118
if 
  not has_car_recording_been_loaded 171
goto_if_false @STEAL1_6145
wait 0
goto @STEAL1_6118

:STEAL1_6145
50@ = 2

:STEAL1_6152
if 
  50@ == 2
goto_if_false @STEAL1_6437
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6437
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6437
if 
  locate_char_in_car_3d $scplayer {x} 352@ {y} 353@ {z} 354@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL1_6437
if 
  is_char_sitting_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6437
clear_area 352@ {y} 353@ {z} 354@ {radius} 25.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2031.2419 {y} 175.4691 {z} 29.0587 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2031.501 {y} 176.4334 {z} 29.007 {switchStyle} SwitchType.JumpCut
open_garage 'HBGDSFS'
remove_blip 53@
352@ = -2043.911
353@ = 179.1213
354@ = 27.8507
437@ = get_car_health 435@
437@ /= 10
437@ *= 100
90@ = 2000
add_int_lvar_to_int_lvar 90@ += 437@
50@ = 21

:STEAL1_6437
if 
  50@ == 21
goto_if_false @STEAL1_6577
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6577
if 
  is_garage_open 'HBGDSFS'
goto_if_false @STEAL1_6577
clear_area 352@ {y} 353@ {z} 354@ {radius} 25.0 {clearParticles} True
start_playback_recorded_car 435@ {path} 171
set_fixed_camera_position -2037.601 {y} 183.5734 {z} 30.4011 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.017 {y} 182.7901 {z} 30.1884 {switchStyle} SwitchType.JumpCut
50@ = 3

:STEAL1_6577
if 
  50@ == 3
goto_if_false @STEAL1_6692
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6692
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_6692
if 
  locate_stopped_char_in_car_3d $scplayer {x} 352@ {y} 353@ {z} 354@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @STEAL1_6692
close_garage 'HBGDSFS'
clear_prints 
50@ = 32

:STEAL1_6692
if 
  50@ == 31
goto_if_false @STEAL1_6781
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6781
367@ = open_sequence_task 
task_leave_car -1 {vehicle} 435@
task_go_straight_to_coord -1 {x} -2035.4709 {y} 176.6342 {z} 27.8359 {speed} MoveState.Walk {time} -2
close_sequence_task 367@
perform_sequence_task $scplayer {sequence} 367@
50@ = 32

:STEAL1_6781
if 
  50@ == 32
goto_if_false @STEAL1_6864
if 
  not is_car_dead 435@
goto_if_false @STEAL1_6864
close_garage 'HBGDSFS'
do_fade 1500 {direction} Fade.Out

:STEAL1_6833
if 
  get_fading_status 
goto_if_false @STEAL1_6857
wait 0
goto @STEAL1_6833

:STEAL1_6857
50@ = 41

:STEAL1_6864
if 
  50@ == 41
goto_if_false @STEAL1_7283
set_player_control $player1 {state} False
switch_widescreen True
set_fading_colour 0 {g} 0 {b} 1
459@, 460@, 461@ = get_char_coordinates $scplayer
462@ = get_char_heading $scplayer
do_fade 500 {direction} Fade.Out

:STEAL1_6930
if 
  get_fading_status 
goto_if_false @STEAL1_6972
wait 0
if 
  not is_player_playing $player1
goto_if_false @STEAL1_6965
terminate_this_script 

:STEAL1_6965
goto @STEAL1_6930

:STEAL1_6972
load_scene_in_direction -2690.908 {y} 206.6429 {z} 7.2879 {heading} 88.2793
set_char_coordinates $scplayer {x} -2691.1641 {y} 206.6478 {z} 3.3359
set_fixed_camera_position -2689.916 {y} 206.5855 {z} 7.399 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2690.908 {y} 206.6429 {z} 7.2879 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In
print_now 'JAP_MOD' {time} 6000 {flag} 1
wait 6000
print_now 'WANG_C' {time} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:STEAL1_7121
if 
  get_fading_status 
goto_if_false @STEAL1_7163
wait 0
if 
  not is_player_playing $player1
goto_if_false @STEAL1_7156
terminate_this_script 

:STEAL1_7156
goto @STEAL1_7121

:STEAL1_7163
load_scene_in_direction 459@ {y} 460@ {z} 461@ {heading} 462@
461@ -= 1.0
set_char_coordinates $scplayer {x} 459@ {y} 460@ {z} 461@
set_char_heading $scplayer {heading} 462@
do_fade 500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
activate_garage 'MDS1SFS'
remove_blip $mod_garage_blips
$mod_garage_blips = add_short_range_sprite_blip_for_coord -2728.5 {y} 212.2 {z} 3.4 {sprite} RadarSprite.ModGarage
$japcar_mod_garage_open = 1
50@ = 4

:STEAL1_7283
if 
  50@ == 4
goto_if_false @STEAL1_7409
if 
  is_garage_closed 'HBGDSFS'
goto_if_false @STEAL1_7409
switch_widescreen False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2032.4709 {y} 176.6342 {z} 27.8359
delete_car 435@
set_char_heading $scplayer {heading} 267.9
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:STEAL1_7378
if 
  get_fading_status 
goto_if_false @STEAL1_7402
wait 0
goto @STEAL1_7378

:STEAL1_7402
goto @STEAL1_7659

:STEAL1_7409
if 
  not is_char_dead $scplayer
goto_if_false @STEAL1_7634
if and
  50@ > 1
  4 > 50@
goto_if_false @STEAL1_7634
if 
  not is_car_dead 435@
goto_if_false @STEAL1_7634
if 
  35@ == 0
goto_if_false @STEAL1_7565
print_now 'STL1_11' {time} 100 {flag} 1
if 
  is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_7565
remove_blip 436@
remove_blip 53@
print_now 'STL1_06' {time} 5000 {flag} 1
53@ = add_blip_for_coord 352@ {y} 353@ {z} 354@
35@ = 1

:STEAL1_7565
if 
  35@ == 1
goto_if_false @STEAL1_7634
if 
  not is_char_in_car $scplayer {vehicle} 435@
goto_if_false @STEAL1_7634
remove_blip 53@
remove_blip 436@
436@ = add_blip_for_car 435@
set_blip_as_friendly 436@ {state} True
35@ = 0

:STEAL1_7634
goto @STEAL1_1816

:STEAL1_7641
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STEAL1_7659
$flag_steal_mission_counter += 1
switch_car_generator $steal_car_cargen1 {amount} 101
register_mission_passed 'STEAL_1'
player_made_progress 1
play_mission_passed_tune 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
clear_wanted_level $player1
return 

:STEAL1_7730
clear_mission_audio MissionAudioSlot.Slot3
remove_blip 436@
remove_blip 53@
remove_blip 436@
release_weather 
delete_char 443@
delete_car 435@
gosub @STEAL1_287
mark_model_as_no_longer_needed 602
mark_model_as_no_longer_needed 41
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:STEAL1_7793
if 
  255 > 63@
goto_if_false @STEAL1_7826
63@ += 1
64@ += 1

:STEAL1_7826
if 
  63@ == 255
goto_if_false @STEAL1_7852
65@ -= 1

:STEAL1_7852
set_lvar_int_to_lvar_int 74@ = 62@
mult_int_lvar_by_int_lvar 74@ *= 70@
set_lvar_int_to_lvar_int 75@ = 63@
mult_int_lvar_by_int_lvar 75@ *= 71@
set_lvar_int_to_lvar_int 76@ = 64@
mult_int_lvar_by_int_lvar 76@ *= 72@
set_lvar_int_to_lvar_int 77@ = 65@
mult_int_lvar_by_int_lvar 77@ *= 73@
set_lvar_int_to_lvar_int 78@ = 74@
add_int_lvar_to_int_lvar 78@ += 75@
set_lvar_int_to_lvar_int 79@ = 76@
add_int_lvar_to_int_lvar 79@ += 77@
set_lvar_int_to_lvar_int 60@ = 78@
add_int_lvar_to_int_lvar 60@ += 79@
change_blip_colour 436@ {color} 60@
return 

:STEAL1_7974
124@ = -2017.001
184@ = 322.4644
244@ = 34.7593
125@ = -2036.439
185@ = 322.4642
245@ = 34.0156
126@ = -2148.5049
186@ = 227.5995
246@ = 34.8814
127@ = -2244.575
187@ = 211.4546
247@ = 34.884
128@ = -2252.426
188@ = 110.4054
248@ = 34.8813
129@ = -2254.3979
189@ = 64.4779
249@ = 34.8865
130@ = -2333.1941
190@ = 52.1153
250@ = 34.8895
131@ = -2373.793
191@ = -39.8936
251@ = 34.8887
132@ = -2411.406
192@ = -71.5329
252@ = 34.8695
133@ = -2421.9861
193@ = -171.5927
253@ = 34.8702
134@ = -2514.4871
194@ = -209.5909
254@ = 24.5432
135@ = -2612.3379
195@ = -208.1451
255@ = 3.8877
136@ = -2700.542
196@ = -205.7518
256@ = 3.8928
137@ = -2703.4551
197@ = -105.7246
257@ = 3.8899
138@ = -2704.9331
198@ = -88.0339
258@ = 3.8934
139@ = -2791.198
199@ = -69.7781
259@ = 6.7409
140@ = -2807.2419
200@ = 29.8687
260@ = 6.7487
141@ = -2807.9221
201@ = 131.0431
261@ = 6.7324
142@ = -2807.2471
202@ = 232.0953
262@ = 6.7535
143@ = -2831.376
203@ = 329.6273
263@ = 4.0742
144@ = -2851.8401
204@ = 427.8425
264@ = 4.0745
145@ = -2831.418
205@ = 526.6416
265@ = 4.6276
146@ = -2821.271
206@ = 626.4095
266@ = 7.8679
147@ = -2849.5249
207@ = 720.4027
267@ = 28.129
148@ = -2840.613
208@ = 819.4821
268@ = 40.6696
149@ = -2816.873
209@ = 897.241
269@ = 43.6833
150@ = -2776.396
210@ = 809.4246
270@ = 50.6937
151@ = -2676.2871
211@ = 810.1769
271@ = 49.5432
152@ = -2575.5581
212@ = 807.5107
272@ = 49.5239
153@ = -2528.4619
213@ = 809.4405
273@ = 49.5356
154@ = -2526.564
214@ = 908.4559
274@ = 64.537
155@ = -2525.0891
215@ = 999.8545
275@ = 77.8166
156@ = -2594.6899
216@ = 1006.409
276@ = 77.8242
157@ = -2587.4741
217@ = 1092.979
277@ = 56.2406
158@ = -2591.7119
218@ = 1135.302
278@ = 55.135
159@ = -2658.5491
219@ = 1209.7679
279@ = 55.1386
160@ = -2669.4741
220@ = 1309.309
280@ = 55.1228
161@ = -2677.5391
221@ = 1409.63
281@ = 55.1226
162@ = -2669.2939
222@ = 1509.889
282@ = 58.6901
163@ = -2674.542
223@ = 1610.948
283@ = 64.4835
164@ = -2675.343
224@ = 1711.907
284@ = 67.4134
165@ = -2675.344
225@ = 1812.691
285@ = 67.4802
166@ = -2675.333
226@ = 1913.553
286@ = 64.6734
167@ = -2675.791
227@ = 2013.889
287@ = 59.035
168@ = -2670.814
228@ = 2114.105
288@ = 55.1467
169@ = -2679.106
229@ = 2214.438
289@ = 55.1239
170@ = -2720.0139
230@ = 2305.998
290@ = 63.1498
171@ = -2720.7439
231@ = 2353.887
291@ = 71.5011
172@ = -2677.1499
232@ = 2440.762
292@ = 47.2891
173@ = -2593.738
233@ = 2490.0811
293@ = 22.1514
174@ = -2513.9399
234@ = 2429.6121
294@ = 16.4114
175@ = -2413.627
235@ = 2430.877
295@ = 11.8649
176@ = -2339.4141
236@ = 2395.623
296@ = 5.5583
177@ = -2422.8391
237@ = 2340.198
297@ = 4.5444
178@ = -2462.575
238@ = 2334.2649
298@ = 4.5459
179@ = -2467.3269
239@ = 2276.376
299@ = 4.5468
180@ = -2560.3081
240@ = 2313.5659
300@ = 4.5508
181@ = -2560.2859
241@ = 2316.4419
301@ = 4.5491
return 

//-------------Mission 68---------------
// Originally: Test Drive

:STEAL2
script_name 'STEAL2'
gosub @STEAL2_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL2_38
gosub @STEAL2_26013

:STEAL2_38
gosub @STEAL2_26109
terminate_this_script 

:STEAL2_47
$onmission = 1
register_mission_given 
load_mission_text 'STEAL2'
clear_prints 
wait 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
162@ = 0.0
163@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
168@ = 0.0
112@ = 0
113@ = 0
114@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
160@ = 0
161@ = 0
108@ = 0
109@ = 0
make_player_gang_disappear 
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'STEAL_2'

:STEAL2_331
if 
  not has_cutscene_loaded 
goto_if_false @STEAL2_355
wait 0
goto @STEAL2_331

:STEAL2_355
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL2_364
if 
  not has_cutscene_finished 
goto_if_false @STEAL2_388
wait 0
goto @STEAL2_364

:STEAL2_388
do_fade 0 {direction} Fade.Out

:STEAL2_394
if 
  get_fading_status 
goto_if_false @STEAL2_418
wait 0
goto @STEAL2_394

:STEAL2_418
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 560
request_model 562
request_model 147
request_vehicle_mod #NTO_B_S
load_special_character 1 {modelName} 'CESAR'
load_all_models_now 
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
169@ = load_char_decision_maker DecisionMakerType.Tough
170@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
load_scene -2032.4 {y} 171.8 {z} 27.8
clear_area -2032.4 {y} 171.8 {z} 27.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2032.4 {y} 171.8 {z} 27.8
set_char_heading $scplayer {heading} 308.7
clear_area -2032.3 {y} 161.9 {z} 28.0 {radius} 1.0 {clearParticles} True
$cesar = create_char PedType.Mission1 {modelId} 290 {x} -2032.3 {y} 161.9 {z} 28.0
set_char_never_targetted $cesar {state} True
set_char_decision_maker $cesar {handleOrTemplate} 170@
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowLimited
set_char_decision_maker $cesar {handleOrTemplate} 169@
104@ = 1
clear_area -1656.2 {y} 1210.2 {z} 12.3 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 110@ = 562
gosub @STEAL2_27694
34@ = create_car 562 {x} -1656.2 {y} 1210.2 {z} 12.3
set_car_strong 34@ {state} True
set_car_heading 34@ {heading} 316.1
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_driving_style 34@ {drivingStyle} DrivingMode.AvoidCars
set_car_health 34@ {health} 2000
set_can_burst_car_tyres 34@ {state} False
freeze_car_position 34@ {state} True
$car = add_vehicle_mod 34@ {modelId} #NTO_B_S
clear_area -1662.3 {y} 1211.0 {z} 12.3 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 110@ = 560
gosub @STEAL2_27694
35@ = create_car 560 {x} -1662.3 {y} 1211.0 {z} 12.3
set_car_heading 35@ {heading} 316.1
lock_car_doors 35@ {lockStatus} CarLock.LockoutPlayerOnly
change_car_colour 35@ {color1} 59 {color2} 12
set_car_health 35@ {health} 2000
freeze_car_position 35@ {state} True
$car = add_vehicle_mod 35@ {modelId} #NTO_B_S
switch_random_trains False
98@ = add_blip_for_coord -1632.9 {y} 1207.4 {z} 6.1
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True

:STEAL2_988
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @STEAL2_1014
goto @STEAL2_26031

:STEAL2_1014
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_1046
goto @STEAL2_26013

:STEAL2_1046
if 
  99@ == 0
goto_if_false @STEAL2_6415
if 
  100@ == 0
goto_if_false @STEAL2_1619
gosub @STEAL2_26414
if 
  114@ == 0
goto_if_false @STEAL2_1135
112@ = 1
113@ = 0
gosub @STEAL2_30237
114@ = 1

:STEAL2_1135
if 
  114@ == 1
goto_if_false @STEAL2_1215
if 
  112@ == 0
goto_if_false @STEAL2_1215
print 'STE2_01' {time} 7000 {flag} 1
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
TIMERB = 0
114@ = 2

:STEAL2_1215
if 
  114@ == 2
goto_if_false @STEAL2_1319
if 
  TIMERB > 7000
goto_if_false @STEAL2_1319
if 
  112@ == 0
goto_if_false @STEAL2_1319
112@ = 2
113@ = 0
gosub @STEAL2_30237
TIMERB = 0
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 3

:STEAL2_1319
if 
  114@ == 3
goto_if_false @STEAL2_1402
if 
  TIMERB > 7000
goto_if_false @STEAL2_1402
if 
  112@ == 0
goto_if_false @STEAL2_1402
112@ = 3
113@ = 0
gosub @STEAL2_30237
114@ = 4

:STEAL2_1402
if 
  114@ == 4
goto_if_false @STEAL2_1459
if 
  112@ == 0
goto_if_false @STEAL2_1459
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 5

:STEAL2_1459
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_1619
if 
  locate_char_any_means_3d $scplayer {x} -1632.9 {y} 1207.4 {z} 6.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL2_1619
if 
  locate_char_any_means_3d $cesar {x} -1632.9 {y} 1207.4 {z} 6.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL2_1619
set_player_control $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
112@ = 0
100@ = 1

:STEAL2_1619
if 
  100@ == 1
goto_if_false @STEAL2_2108
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
set_ped_density_multiplier 0.0
clear_area -1662.3 {y} 1211.0 {z} 13.4 {radius} 15.0 {clearParticles} True
lock_car_doors 35@ {lockStatus} CarLock.Unlocked
remove_blip 98@
clear_area -1656.7 {y} 1213.8 {z} 12.7 {radius} 1.0 {clearParticles} True
96@ = create_char PedType.Mission1 {modelId} 147 {x} -1656.7 {y} 1213.8 {z} 12.7
set_char_heading 96@ {heading} 132.3
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_1792
remove_char_from_group $cesar
clear_char_tasks $cesar

:STEAL2_1792
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1642.3 {y} 1204.1 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1651.2 {y} 1204.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1663.5 {y} 1204.2 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 171@
perform_sequence_task $scplayer {sequence} 171@
clear_sequence_task 171@
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1640.3 {y} 1204.4 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1651.7 {y} 1205.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1662.3 {y} 1204.8 {z} 6.2 {speed} MoveState.Walk {time} -1
close_sequence_task 171@
perform_sequence_task $cesar {sequence} 171@
clear_sequence_task 171@
112@ = 4
113@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
set_fixed_camera_position -1624.5 {y} 1201.5 {z} 7.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1664.6 {y} 1207.1 {z} 10.9 {switchStyle} SwitchType.JumpCut
101@ = 1
skip_cutscene_start_internal @STEAL2_2979
TIMERA = 0
114@ = 0
100@ = 2

:STEAL2_2108
if 
  100@ == 2
goto_if_false @STEAL2_2684
if 
  114@ == 0
goto_if_false @STEAL2_2207
if 
  112@ == 0
goto_if_false @STEAL2_2207
112@ = 4
113@ = generate_random_int_in_range 3 {max} 6
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
114@ = 1

:STEAL2_2207
if 
  114@ == 1
goto_if_false @STEAL2_2288
if 
  112@ == 0
goto_if_false @STEAL2_2288
112@ = 4
113@ = generate_random_int_in_range 6 {max} 9
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237
114@ = 2

:STEAL2_2288
if 
  TIMERA > 8000
goto_if_false @STEAL2_2684
clear_char_tasks_immediately $scplayer
clear_area -1659.6 {y} 1203.3 {z} 11.4 {radius} 400.0 {clearParticles} True
set_char_coordinates $scplayer {x} -1659.6 {y} 1203.3 {z} 11.4
set_char_heading $scplayer {heading} 96.8
clear_char_tasks_immediately $cesar
clear_area -1659.8 {y} 1205.0 {z} 11.4 {radius} 1.0 {clearParticles} True
set_char_coordinates $cesar {x} -1659.8 {y} 1205.0 {z} 11.4
set_char_heading $cesar {heading} 91.3
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1662.6 {y} 1202.6 {z} 12.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1666.0 {y} 1208.8 {z} 12.7 {speed} MoveState.Walk {time} -1
task_enter_car_as_driver -1 {vehicle} 35@ {time} -1
close_sequence_task 171@
perform_sequence_task $scplayer {sequence} 171@
clear_sequence_task 171@
171@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -1662.7 {y} 1204.8 {z} 12.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1662.9 {y} 1206.5 {z} 12.7 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -1660.3 {y} 1208.8 {z} 12.7 {speed} MoveState.Walk {time} -1
task_pause -1 {time} 1000
task_enter_car_as_driver -1 {vehicle} 34@ {time} -1
close_sequence_task 171@
perform_sequence_task $cesar {sequence} 171@
clear_sequence_task 171@
set_fixed_camera_position -1661.1 {y} 1219.7 {z} 15.15 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1658.9 {y} 1204.6 {z} 13.85 {switchStyle} SwitchType.JumpCut
TIMERA = 0
100@ = 3

:STEAL2_2684
if 
  100@ == 3
goto_if_false @STEAL2_2785
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_2785
107@ = get_sequence_progress $cesar
if 
  107@ == 2
goto_if_false @STEAL2_2785
112@ = 5
113@ = 0
gosub @STEAL2_30237
100@ = 4

:STEAL2_2785
if 
  100@ == 4
goto_if_false @STEAL2_2936
if 
  113@ == 2
goto_if_false @STEAL2_2936
if 
  not is_char_dead 96@
goto_if_false @STEAL2_2929
171@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1660.6 {y} 1210.1 {z} 12.7 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1664.0 {y} 1205.3 {z} 12.7 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} -1651.3 {y} 1203.2 {z} 6.2 {speed} MoveState.Run {time} -1
close_sequence_task 171@
perform_sequence_task 96@ {sequence} 171@
clear_sequence_task 171@

:STEAL2_2929
100@ = 5

:STEAL2_2936
if 
  100@ == 5
goto_if_false @STEAL2_5670
if 
  112@ == 0
goto_if_false @STEAL2_5670
101@ = 0

:STEAL2_2979
skip_cutscene_end 
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_3013
goto @STEAL2_26013

:STEAL2_3013
if 
  101@ == 1
goto_if_false @STEAL2_3197
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
112@ = 0
do_fade 500 {direction} Fade.Out

:STEAL2_3055
if 
  get_fading_status 
goto_if_false @STEAL2_3079
wait 0
goto @STEAL2_3055

:STEAL2_3079
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_3111
goto @STEAL2_26013

:STEAL2_3111
if 
  not is_char_dead 96@
goto_if_false @STEAL2_3171
clear_area -1651.3 {y} 1203.2 {z} 6.2 {radius} 1.0 {clearParticles} True
set_char_coordinates 96@ {x} -1651.3 {y} 1203.2 {z} 6.2

:STEAL2_3171
clear_char_tasks_immediately $cesar
warp_char_into_car $cesar {vehicle} 34@
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 35@

:STEAL2_3197
if 
  is_char_in_car $cesar {vehicle} 34@
goto_if_false @STEAL2_5670
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_5670
freeze_car_position 34@ {state} False
freeze_car_position 35@ {state} False
mark_char_as_no_longer_needed 96@
mark_model_as_no_longer_needed 147
request_model 414
request_model #CARDBOARDBOX
request_model 449
load_all_models_now 
set_car_model_components 414 {component1} 1 {component2} 1
clear_area -1580.1 {y} 938.2 {z} 6.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 110@ = 414
gosub @STEAL2_27694
36@ = create_car 414 {x} -1580.1 {y} 938.2 {z} 6.8
set_car_heading 36@ {heading} 90.0
set_load_collision_for_car_flag 36@ {state} True
clear_area -1576.0 {y} 938.9 {z} 6.5 {radius} 5.0 {clearParticles} True
58@ = create_random_char -1576.0 {y} 938.9 {z} 6.5
set_char_heading 58@ {heading} 84.9
set_char_decision_maker 58@ {handleOrTemplate} 170@
clear_area -1575.1 {y} 940.7 {z} 6.4 {radius} 10.0 {clearParticles} True
80@ = create_object #CARDBOARDBOX {x} -1575.1 {y} 940.7 {z} 6.4
set_object_collision 80@ {state} True
set_object_dynamic 80@ {state} True
81@ = create_object #CARDBOARDBOX {x} -1574.9 {y} 941.7 {z} 6.4
set_object_collision 81@ {state} True
set_object_dynamic 81@ {state} True
82@ = create_object #CARDBOARDBOX {x} -1573.1 {y} 942.7 {z} 6.4
set_object_collision 82@ {state} True
set_object_dynamic 82@ {state} True
83@ = create_object #CARDBOARDBOX {x} -1575.1 {y} 940.7 {z} 7.0
set_object_collision 83@ {state} True
set_object_dynamic 83@ {state} True
84@ = create_object #CARDBOARDBOX {x} -1573.1 {y} 942.7 {z} 7.0
set_object_collision 84@ {state} True
set_object_dynamic 84@ {state} True
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_3764
clear_area -1626.9 {y} 1202.5 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -1626.9 {y} 1202.5 {z} 5.7
set_car_heading 38@ {heading} 222.7
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_3764
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_3893
clear_area -1609.2 {y} 1160.4 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -1609.2 {y} 1160.4 {z} 5.7
set_car_heading 39@ {heading} 184.3
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_3893
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4022
clear_area -1600.9 {y} 1111.7 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -1600.9 {y} 1111.7 {z} 5.7
set_car_heading 40@ {heading} 183.3
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_4022
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4151
clear_area -1608.2 {y} 1094.0 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = create_car 108@ {x} -1608.2 {y} 1094.0 {z} 5.7
set_car_heading 41@ {heading} 180.0
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_random_char_as_driver 41@
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_4151
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4280
clear_area -1608.2 {y} 1046.5 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -1608.2 {y} 1046.5 {z} 5.7
set_car_heading 42@ {heading} 183.5
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_4280
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4409
clear_area -1595.7 {y} 1012.0 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -1595.7 {y} 1012.0 {z} 5.7
set_car_heading 43@ {heading} 207.3
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_4409
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4538
clear_area -1540.5 {y} 959.8 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -1540.5 {y} 959.8 {z} 5.7
set_car_heading 44@ {heading} 24.3
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_4538
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4667
clear_area -1556.0 {y} 995.6 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -1556.0 {y} 995.6 {z} 5.7
set_car_heading 45@ {heading} 41.0
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_4667
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4796
clear_area -1587.6 {y} 1036.7 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -1587.6 {y} 1036.7 {z} 5.7
set_car_heading 46@ {heading} 3.3
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_4796
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_4925
clear_area -1579.6 {y} 1140.1 {z} 5.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = create_car 108@ {x} -1579.6 {y} 1140.1 {z} 5.7
set_car_heading 48@ {heading} 2.0
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_random_char_as_driver 48@
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_4925
clear_area -1542.9 {y} 974.0 {z} 5.3 {radius} 5.0 {clearParticles} True
95@ = create_mission_train 9 {x} -1542.9 {y} 974.0 {z} 5.3 {direction} False
set_train_speed 95@ {speed} 0.0
set_train_cruise_speed 95@ {speed} 0.0
lock_car_doors 95@ {lockStatus} CarLock.Locked
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_5129
clear_area -1592.8 {y} 934.7 {z} 6.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = create_car 108@ {x} -1592.8 {y} 934.7 {z} 6.2
set_car_heading 49@ {heading} 91.3
lock_car_doors 49@ {lockStatus} CarLock.Locked
71@ = create_random_char_as_driver 49@
set_load_collision_for_car_flag 49@ {state} True
set_char_can_be_shot_in_vehicle 71@ {state} False

:STEAL2_5129
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_5258
clear_area -1608.8 {y} 934.3 {z} 6.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
50@ = create_car 108@ {x} -1608.8 {y} 934.3 {z} 6.2
set_car_heading 50@ {heading} 91.3
lock_car_doors 50@ {lockStatus} CarLock.Locked
72@ = create_random_char_as_driver 50@
set_load_collision_for_car_flag 50@ {state} True
set_char_can_be_shot_in_vehicle 72@ {state} False

:STEAL2_5258
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_5387
clear_area -1704.4 {y} 916.0 {z} 23.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
51@ = create_car 108@ {x} -1704.4 {y} 916.0 {z} 23.4
set_car_heading 51@ {heading} 269.1
lock_car_doors 51@ {lockStatus} CarLock.Locked
73@ = create_random_char_as_driver 51@
set_load_collision_for_car_flag 51@ {state} True
set_char_can_be_shot_in_vehicle 73@ {state} False

:STEAL2_5387
clear_area -1642.2 {y} 1210.5 {z} 6.2 {radius} 15.0 {clearParticles} True
97@ = create_random_char -1642.2 {y} 1210.5 {z} 6.2
set_char_decision_maker 97@ {handleOrTemplate} 170@
171@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1645.5 {y} 1214.0 {z} 6.2 {speed} MoveState.Walk {time} -1
task_play_anim -1 {animationName} "COWER" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 30000
close_sequence_task 171@
perform_sequence_task 97@ {sequence} 171@
clear_sequence_task 171@
set_car_density_multiplier 0.0
set_fixed_camera_position -1640.4 {y} 1212.9 {z} 6.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1651.3 {y} 1215.3 {z} 10.6 {switchStyle} SwitchType.JumpCut
if 
  101@ == 1
goto_if_false @STEAL2_5656
do_fade 500 {direction} Fade.In

:STEAL2_5600
if 
  get_fading_status 
goto_if_false @STEAL2_5624
wait 0
goto @STEAL2_5600

:STEAL2_5624
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_5656
goto @STEAL2_26013

:STEAL2_5656
TIMERA = 0
100@ = 6

:STEAL2_5670
if 
  100@ == 6
goto_if_false @STEAL2_5924
if 
  not is_char_dead 97@
goto_if_false @STEAL2_5924
if 
  locate_char_any_means_2d 97@ {x} -1646.0 {y} 1214.4 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @STEAL2_5924
start_playback_recorded_car 34@ {path} 70
if 
  not is_car_dead 38@
goto_if_false @STEAL2_5772
start_playback_recorded_car 38@ {path} 71

:STEAL2_5772
if 
  not is_car_dead 39@
goto_if_false @STEAL2_5795
start_playback_recorded_car 39@ {path} 72

:STEAL2_5795
if 
  not is_car_dead 40@
goto_if_false @STEAL2_5818
start_playback_recorded_car 40@ {path} 73

:STEAL2_5818
if 
  not is_car_dead 41@
goto_if_false @STEAL2_5841
start_playback_recorded_car 41@ {path} 74

:STEAL2_5841
if 
  not is_car_dead 42@
goto_if_false @STEAL2_5864
start_playback_recorded_car 42@ {path} 75

:STEAL2_5864
if 
  not is_car_dead 43@
goto_if_false @STEAL2_5887
start_playback_recorded_car 43@ {path} 76

:STEAL2_5887
if 
  not is_car_dead 95@
goto_if_false @STEAL2_5910
start_playback_recorded_car 95@ {path} 77

:STEAL2_5910
TIMERA = 0
100@ = 7

:STEAL2_5924
if 
  100@ == 7
goto_if_false @STEAL2_5989
if 
  TIMERA > 500
goto_if_false @STEAL2_5989
112@ = 6
113@ = 0
gosub @STEAL2_30237
100@ = 8

:STEAL2_5989
if 
  100@ == 8
goto_if_false @STEAL2_6325
if 
  TIMERA > 2500
goto_if_false @STEAL2_6325
if 
  not is_char_dead 97@
goto_if_false @STEAL2_6060
task_smart_flee_char 97@ {threat} $scplayer {radius} 200.0 {time} 600000

:STEAL2_6060
pause_playback_recorded_car 34@
if 
  not is_car_dead 38@
goto_if_false @STEAL2_6086
pause_playback_recorded_car 38@

:STEAL2_6086
if 
  not is_car_dead 39@
goto_if_false @STEAL2_6107
pause_playback_recorded_car 39@

:STEAL2_6107
if 
  not is_car_dead 40@
goto_if_false @STEAL2_6128
pause_playback_recorded_car 40@

:STEAL2_6128
if 
  not is_car_dead 41@
goto_if_false @STEAL2_6149
pause_playback_recorded_car 41@

:STEAL2_6149
if 
  not is_car_dead 42@
goto_if_false @STEAL2_6170
pause_playback_recorded_car 42@

:STEAL2_6170
if 
  not is_car_dead 43@
goto_if_false @STEAL2_6191
pause_playback_recorded_car 43@

:STEAL2_6191
if 
  not is_car_dead 95@
goto_if_false @STEAL2_6212
pause_playback_recorded_car 95@

:STEAL2_6212
set_ped_density_multiplier 0.5
shut_all_chars_up False
98@ = add_blip_for_car 34@
set_blip_as_friendly 98@ {state} True
mark_char_as_no_longer_needed 97@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print 'STE2_02' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
114@ = 0
105@ = 1
100@ = 0
99@ = 1

:STEAL2_6325
if 
  100@ == 0
goto_if_false @STEAL2_6415
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @STEAL2_6415
load_scene -1638.7 {y} 1199.4 {z} 6.2
set_char_coordinates $scplayer {x} -1638.7 {y} 1199.4 {z} 6.2
set_char_coordinates $cesar {x} -1639.7 {y} 1199.4 {z} 6.2

:STEAL2_6415
if 
  99@ == 1
goto_if_false @STEAL2_7393
if 
  114@ == 0
goto_if_false @STEAL2_6530
if 
  112@ == 0
goto_if_false @STEAL2_6530
if 
  TIMERB > 7000
goto_if_false @STEAL2_6530
112@ = 7
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_6530
if 
  114@ == 1
goto_if_false @STEAL2_6587
if 
  112@ == 0
goto_if_false @STEAL2_6587
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 2

:STEAL2_6587
if 
  103@ == 0
goto_if_false @STEAL2_6605

:STEAL2_6605
if 
  100@ == 0
goto_if_false @STEAL2_6678
if 
  not locate_char_any_means_3d $scplayer {x} -1656.2 {y} 1210.2 {z} 12.3 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @STEAL2_6678
100@ = 1

:STEAL2_6678
if 
  100@ == 1
goto_if_false @STEAL2_6989
unpause_playback_recorded_car 34@
if 
  not is_car_dead 38@
goto_if_false @STEAL2_6722
unpause_playback_recorded_car 38@

:STEAL2_6722
if 
  not is_car_dead 39@
goto_if_false @STEAL2_6743
unpause_playback_recorded_car 39@

:STEAL2_6743
if 
  not is_car_dead 40@
goto_if_false @STEAL2_6764
unpause_playback_recorded_car 40@

:STEAL2_6764
if 
  not is_car_dead 41@
goto_if_false @STEAL2_6785
unpause_playback_recorded_car 41@

:STEAL2_6785
if 
  not is_car_dead 42@
goto_if_false @STEAL2_6806
unpause_playback_recorded_car 42@

:STEAL2_6806
if 
  not is_car_dead 43@
goto_if_false @STEAL2_6827
unpause_playback_recorded_car 43@

:STEAL2_6827
if 
  not is_car_dead 95@
goto_if_false @STEAL2_6848
unpause_playback_recorded_car 95@

:STEAL2_6848
if 
  not is_car_dead 44@
goto_if_false @STEAL2_6879
set_car_cruise_speed 44@ {maxSpeed} 15.0
car_wander_randomly 44@

:STEAL2_6879
if 
  not is_car_dead 45@
goto_if_false @STEAL2_6910
set_car_cruise_speed 45@ {maxSpeed} 15.0
car_wander_randomly 45@

:STEAL2_6910
if 
  not is_car_dead 46@
goto_if_false @STEAL2_6941
set_car_cruise_speed 46@ {maxSpeed} 15.0
car_wander_randomly 46@

:STEAL2_6941
if 
  not is_car_dead 48@
goto_if_false @STEAL2_6972
set_car_cruise_speed 48@ {maxSpeed} 15.0
car_wander_randomly 48@

:STEAL2_6972
request_model 597
request_model 281
100@ = 2

:STEAL2_6989
if 
  100@ == 2
goto_if_false @STEAL2_7393
gosub @STEAL2_26853
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_7393
start_playback_recorded_car 34@ {path} 79
if 
  not is_car_dead 95@
goto_if_false @STEAL2_7060
start_playback_recorded_car 95@ {path} 78

:STEAL2_7060
if 
  not is_car_dead 49@
goto_if_false @STEAL2_7116
set_car_forward_speed 49@ {forwardSpeed} 15.0
set_car_cruise_speed 49@ {maxSpeed} 15.0
car_goto_coordinates 49@ {x} -1881.4 {y} 1038.7 {z} 44.8

:STEAL2_7116
if 
  not is_car_dead 50@
goto_if_false @STEAL2_7172
set_car_forward_speed 50@ {forwardSpeed} 15.0
set_car_cruise_speed 50@ {maxSpeed} 15.0
car_goto_coordinates 50@ {x} -1880.1 {y} 1029.8 {z} 44.8

:STEAL2_7172
if 
  not is_car_dead 51@
goto_if_false @STEAL2_7213
set_car_forward_speed 51@ {forwardSpeed} 15.0
set_car_cruise_speed 51@ {maxSpeed} 15.0
car_wander_randomly 51@

:STEAL2_7213
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 70@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 48@
mark_object_as_no_longer_needed 80@
mark_object_as_no_longer_needed 81@
mark_object_as_no_longer_needed 82@
mark_object_as_no_longer_needed 83@
mark_object_as_no_longer_needed 84@
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed #CARDBOARDBOX
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 2

:STEAL2_7393
if 
  99@ == 2
goto_if_false @STEAL2_9654
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_7503
if 
  112@ == 0
goto_if_false @STEAL2_7503
112@ = 8
113@ = 0
159@ = 1
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_7503
if 
  114@ == 1
goto_if_false @STEAL2_7612
if 
  locate_car_2d 34@ {x} -1702.4 {y} 921.4 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_7612
if 
  112@ == 0
goto_if_false @STEAL2_7612
112@ = 8
113@ = 1
159@ = 2
gosub @STEAL2_30237
114@ = 2

:STEAL2_7612
if 
  114@ == 2
goto_if_false @STEAL2_7669
if 
  112@ == 0
goto_if_false @STEAL2_7669
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_7669
if 
  103@ == 0
goto_if_false @STEAL2_7687

:STEAL2_7687
if 
  100@ == 0
goto_if_false @STEAL2_7722
request_model 597
request_model 281
100@ = 1

:STEAL2_7722
if 
  100@ == 1
goto_if_false @STEAL2_9397
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_7869
clear_area -1802.9 {y} 853.6 {z} 23.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -1802.9 {y} 853.6 {z} 23.4
set_car_heading 37@ {heading} 89.3
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_7869
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_7998
clear_area -1852.2 {y} 836.7 {z} 33.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -1852.2 {y} 836.7 {z} 33.8
set_car_heading 39@ {heading} 270.9
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_7998
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8127
clear_area -1876.7 {y} 836.3 {z} 33.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -1876.7 {y} 836.3 {z} 33.8
set_car_heading 40@ {heading} 270.9
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_8127
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8256
clear_area -1903.1 {y} 826.2 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -1903.1 {y} 826.2 {z} 33.7
set_car_heading 42@ {heading} 178.0
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_8256
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8385
clear_area -1915.7 {y} 836.6 {z} 34.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -1915.7 {y} 836.6 {z} 34.2
set_car_heading 43@ {heading} 272.0
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_8385
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8514
clear_area -1902.8 {y} 866.4 {z} 34.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -1902.8 {y} 866.4 {z} 34.2
set_car_heading 44@ {heading} 179.4
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_8514
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8643
clear_area -1902.7 {y} 882.1 {z} 34.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -1902.7 {y} 882.1 {z} 34.2
set_car_heading 45@ {heading} 179.4
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_8643
clear_area -1805.5 {y} 900.3 {z} 23.9 {radius} 5.0 {clearParticles} True
68@ = create_random_char -1805.5 {y} 900.3 {z} 23.9
set_char_heading 68@ {heading} 352.4
clear_area -1804.5 {y} 901.3 {z} 23.9 {radius} 5.0 {clearParticles} True
69@ = create_random_char -1804.5 {y} 901.3 {z} 23.9
set_char_heading 69@ {heading} 169.0
task_chat_with_char 68@ {other} 69@ {leadSpeaker} True {_p4} 1
task_chat_with_char 69@ {other} 68@ {leadSpeaker} False {_p4} 1
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_8904
clear_area -1988.1 {y} 933.5 {z} 43.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
57@ = create_car 108@ {x} -1988.1 {y} 933.5 {z} 43.9
set_car_heading 57@ {heading} 85.7
lock_car_doors 57@ {lockStatus} CarLock.Locked
79@ = create_random_char_as_driver 57@
set_load_collision_for_car_flag 57@ {state} True
set_char_can_be_shot_in_vehicle 79@ {state} False

:STEAL2_8904
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_9033
clear_area -2007.7 {y} 1039.2 {z} 55.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
52@ = create_car 108@ {x} -2007.7 {y} 1039.2 {z} 55.2
set_car_heading 52@ {heading} 178.1
lock_car_doors 52@ {lockStatus} CarLock.Locked
74@ = create_random_char_as_driver 52@
set_load_collision_for_car_flag 52@ {state} True
set_char_can_be_shot_in_vehicle 74@ {state} False

:STEAL2_9033
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_9162
clear_area -2009.2 {y} 962.6 {z} 44.1 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
53@ = create_car 108@ {x} -2009.2 {y} 962.6 {z} 44.1
set_car_heading 53@ {heading} 179.8
lock_car_doors 53@ {lockStatus} CarLock.Locked
75@ = create_random_char_as_driver 53@
set_load_collision_for_car_flag 53@ {state} True
set_char_can_be_shot_in_vehicle 75@ {state} False

:STEAL2_9162
if 
  has_model_loaded 597
goto_if_false @STEAL2_9276
clear_area -1998.2 {y} 825.3 {z} 44.1 {radius} 5.0 {clearParticles} True
54@ = create_car 597 {x} -1998.2 {y} 825.3 {z} 44.1
set_car_heading 54@ {heading} 6.4
76@ = create_char_inside_car 54@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 54@ {drivingStyle} DrivingMode.AvoidCars
lock_car_doors 54@ {lockStatus} CarLock.Locked
set_load_collision_for_car_flag 54@ {state} True
set_char_can_be_shot_in_vehicle 76@ {state} False

:STEAL2_9276
if 
  has_model_loaded 597
goto_if_false @STEAL2_9390
clear_area -1997.5 {y} 815.6 {z} 44.1 {radius} 5.0 {clearParticles} True
55@ = create_car 597 {x} -1997.5 {y} 815.6 {z} 44.1
set_car_heading 55@ {heading} 1.0
77@ = create_char_inside_car 55@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 55@ {drivingStyle} DrivingMode.AvoidCars
lock_car_doors 55@ {lockStatus} CarLock.Locked
set_load_collision_for_car_flag 55@ {state} True
set_char_can_be_shot_in_vehicle 77@ {state} False

:STEAL2_9390
100@ = 2

:STEAL2_9397
if 
  100@ == 2
goto_if_false @STEAL2_9654
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_9654
mark_car_as_no_longer_needed 51@
mark_char_as_no_longer_needed 73@
start_playback_recorded_car 34@ {path} 81
if 
  not is_car_dead 95@
goto_if_false @STEAL2_9471
start_playback_recorded_car 95@ {path} 80

:STEAL2_9471
if 
  not is_car_dead 37@
goto_if_false @STEAL2_9527
set_car_forward_speed 37@ {forwardSpeed} 15.0
set_car_cruise_speed 37@ {maxSpeed} 15.0
car_goto_coordinates 37@ {x} -1881.4 {y} 853.7 {z} 35.7

:STEAL2_9527
if 
  not is_car_dead 39@
goto_if_false @STEAL2_9583
set_car_forward_speed 39@ {forwardSpeed} 15.0
set_car_cruise_speed 39@ {maxSpeed} 15.0
car_goto_coordinates 39@ {x} -1717.8 {y} 755.3 {z} 24.8

:STEAL2_9583
if 
  not is_car_dead 40@
goto_if_false @STEAL2_9619
set_car_forward_speed 40@ {forwardSpeed} 15.0
set_car_cruise_speed 40@ {maxSpeed} 15.0

:STEAL2_9619
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 3

:STEAL2_9654
if 
  99@ == 3
goto_if_false @STEAL2_10099
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_9802
if 
  locate_car_2d 34@ {x} -1855.2 {y} 916.9 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_9802
if 
  112@ == 0
goto_if_false @STEAL2_9802
112@ = 8
113@ = 2
159@ = 3
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_9802
if 
  114@ == 1
goto_if_false @STEAL2_9859
if 
  112@ == 0
goto_if_false @STEAL2_9859
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 2

:STEAL2_9859
if 
  103@ == 0
goto_if_false @STEAL2_9877

:STEAL2_9877
if 
  100@ == 0
goto_if_false @STEAL2_9902
100@ = 1

:STEAL2_9902
if 
  100@ == 1
goto_if_false @STEAL2_10099
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_10099
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
delete_object 80@
delete_object 81@
delete_object 82@
delete_object 83@
delete_object 84@
if 
  not is_car_dead 95@
goto_if_false @STEAL2_10064
start_playback_recorded_car 95@ {path} 83

:STEAL2_10064
start_playback_recorded_car 34@ {path} 84
114@ = 0
103@ = 0
100@ = 0
99@ = 4

:STEAL2_10099
if 
  99@ == 4
goto_if_false @STEAL2_12834
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_10209
if 
  112@ == 0
goto_if_false @STEAL2_10209
112@ = 8
113@ = 3
159@ = 4
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_10209
if 
  114@ == 1
goto_if_false @STEAL2_10259
if 
  112@ == 0
goto_if_false @STEAL2_10259
alter_wanted_level_no_drop $player1 {wantedLevel} 2
114@ = 2

:STEAL2_10259
if 
  114@ == 2
goto_if_false @STEAL2_10316
if 
  112@ == 0
goto_if_false @STEAL2_10316
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_10316
if 
  103@ == 0
goto_if_false @STEAL2_10334

:STEAL2_10334
if 
  100@ == 0
goto_if_false @STEAL2_11841
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10481
clear_area -2350.7 {y} 1091.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = create_car 108@ {x} -2350.7 {y} 1091.2 {z} 54.2
set_car_heading 36@ {heading} 72.3
lock_car_doors 36@ {lockStatus} CarLock.Locked
58@ = create_random_char_as_driver 36@
set_load_collision_for_car_flag 36@ {state} True
set_char_can_be_shot_in_vehicle 58@ {state} False

:STEAL2_10481
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10610
clear_area -2347.8 {y} 1081.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -2347.8 {y} 1081.2 {z} 54.2
set_car_heading 37@ {heading} 73.7
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_10610
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10746
clear_area -2124.1001 {y} 1080.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -2124.1001 {y} 1080.8 {z} 54.2
set_car_heading 38@ {heading} 90.7
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_car_stay_in_slow_lane 38@ {state} True
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_10746
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_10882
clear_area -2132.0 {y} 1059.0 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -2132.0 {y} 1059.0 {z} 54.2
set_car_heading 39@ {heading} 269.2
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_car_stay_in_fast_lane 39@ {state} True
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_10882
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11018
clear_area -2166.7 {y} 1050.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -2166.7 {y} 1050.8 {z} 54.2
set_car_heading 40@ {heading} 270.2
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_car_stay_in_slow_lane 40@ {state} True
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_11018
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11154
clear_area -2231.0 {y} 1059.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = create_car 108@ {x} -2231.0 {y} 1059.8 {z} 54.2
set_car_heading 41@ {heading} 268.2
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_random_char_as_driver 41@
set_car_stay_in_fast_lane 41@ {state} True
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_11154
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11290
clear_area -2299.5 {y} 1052.1 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -2299.5 {y} 1052.1 {z} 54.2
set_car_heading 42@ {heading} 272.2
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_car_stay_in_slow_lane 42@ {state} True
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_11290
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11426
clear_area -2338.1001 {y} 1066.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -2338.1001 {y} 1066.2 {z} 54.2
set_car_heading 43@ {heading} 255.2
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_car_stay_in_fast_lane 43@ {state} True
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_11426
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11562
clear_area -2344.3 {y} 1058.8 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -2344.3 {y} 1058.8 {z} 54.2
set_car_heading 44@ {heading} 257.1
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_car_stay_in_slow_lane 44@ {state} True
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_11562
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11698
clear_area -2446.5 {y} 1097.0 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -2446.5 {y} 1097.0 {z} 54.2
set_car_heading 45@ {heading} 266.7
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_car_stay_in_fast_lane 45@ {state} True
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_11698
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_11834
clear_area -2427.5 {y} 1087.2 {z} 54.2 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -2427.5 {y} 1087.2 {z} 54.2
set_car_heading 46@ {heading} 261.0
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_car_stay_in_slow_lane 46@ {state} True
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_11834
100@ = 1

:STEAL2_11841
if 
  100@ == 1
goto_if_false @STEAL2_12183
if 
  locate_car_2d 34@ {x} -1990.0 {y} 838.0 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_12183
if 
  not is_car_dead 51@
goto_if_false @STEAL2_11920
start_playback_recorded_car 51@ {path} 85

:STEAL2_11920
if 
  not is_car_dead 52@
goto_if_false @STEAL2_11976
set_car_forward_speed 52@ {forwardSpeed} 15.0
set_car_cruise_speed 52@ {maxSpeed} 15.0
car_goto_coordinates 52@ {x} -2008.2 {y} 581.2 {z} 35.3

:STEAL2_11976
if 
  not is_car_dead 53@
goto_if_false @STEAL2_12032
set_car_forward_speed 53@ {forwardSpeed} 15.0
set_car_cruise_speed 53@ {maxSpeed} 15.0
car_goto_coordinates 53@ {x} -2008.2 {y} 571.2 {z} 35.3

:STEAL2_12032
if 
  not is_car_dead 54@
goto_if_false @STEAL2_12104
set_car_forward_speed 54@ {forwardSpeed} 15.0
set_car_cruise_speed 54@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_12104
set_car_follow_car 54@ {handle} 34@ {radius} 10.0
switch_car_siren 54@ {state} True

:STEAL2_12104
if 
  not is_car_dead 55@
goto_if_false @STEAL2_12176
set_car_forward_speed 55@ {forwardSpeed} 15.0
set_car_cruise_speed 55@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_12176
set_car_follow_car 55@ {handle} 34@ {radius} 20.0
switch_car_siren 55@ {state} True

:STEAL2_12176
100@ = 2

:STEAL2_12183
if 
  100@ == 2
goto_if_false @STEAL2_12834
request_model 437
request_model 461
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_12834
mark_char_as_no_longer_needed 79@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_car_as_no_longer_needed 57@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 95@
mark_model_as_no_longer_needed 449
start_playback_recorded_car 34@ {path} 86
if 
  not is_car_dead 38@
goto_if_false @STEAL2_12317
start_playback_recorded_car 38@ {path} 87

:STEAL2_12317
if 
  not is_car_dead 51@
goto_if_false @STEAL2_12354
if 
  not is_playback_going_on_for_car 51@
goto_if_false @STEAL2_12354
stop_playback_recorded_car 51@

:STEAL2_12354
remove_car_recording 85
if 
  not is_car_dead 39@
goto_if_false @STEAL2_12414
set_car_forward_speed 39@ {forwardSpeed} 15.0
set_car_cruise_speed 39@ {maxSpeed} 15.0
car_goto_coordinates 39@ {x} -1896.9 {y} 1060.1 {z} 44.2

:STEAL2_12414
if 
  not is_car_dead 40@
goto_if_false @STEAL2_12470
set_car_forward_speed 40@ {forwardSpeed} 15.0
set_car_cruise_speed 40@ {maxSpeed} 15.0
car_goto_coordinates 40@ {x} -1896.9 {y} 1050.1 {z} 44.2

:STEAL2_12470
if 
  not is_car_dead 41@
goto_if_false @STEAL2_12526
set_car_forward_speed 41@ {forwardSpeed} 15.0
set_car_cruise_speed 41@ {maxSpeed} 15.0
car_goto_coordinates 41@ {x} -1906.9 {y} 1060.1 {z} 48.2

:STEAL2_12526
if 
  not is_car_dead 42@
goto_if_false @STEAL2_12582
set_car_forward_speed 42@ {forwardSpeed} 15.0
set_car_cruise_speed 42@ {maxSpeed} 15.0
car_goto_coordinates 42@ {x} -1906.9 {y} 1050.1 {z} 48.2

:STEAL2_12582
if 
  not is_car_dead 43@
goto_if_false @STEAL2_12638
set_car_forward_speed 43@ {forwardSpeed} 15.0
set_car_cruise_speed 43@ {maxSpeed} 15.0
car_goto_coordinates 43@ {x} -1916.9 {y} 1060.1 {z} 52.2

:STEAL2_12638
if 
  not is_car_dead 44@
goto_if_false @STEAL2_12694
set_car_forward_speed 44@ {forwardSpeed} 15.0
set_car_cruise_speed 44@ {maxSpeed} 15.0
car_goto_coordinates 44@ {x} -1916.9 {y} 1050.1 {z} 52.2

:STEAL2_12694
if 
  not is_car_dead 45@
goto_if_false @STEAL2_12750
set_car_forward_speed 45@ {forwardSpeed} 15.0
set_car_cruise_speed 45@ {maxSpeed} 15.0
car_goto_coordinates 45@ {x} -1926.9 {y} 1060.1 {z} 56.2

:STEAL2_12750
if 
  not is_car_dead 46@
goto_if_false @STEAL2_12806
set_car_forward_speed 46@ {forwardSpeed} 15.0
set_car_cruise_speed 46@ {maxSpeed} 15.0
car_goto_coordinates 46@ {x} -1926.9 {y} 1050.1 {z} 56.2

:STEAL2_12806
114@ = 0
103@ = 0
100@ = 0
99@ = 5

:STEAL2_12834
if 
  99@ == 5
goto_if_false @STEAL2_14364
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_12944
if 
  112@ == 0
goto_if_false @STEAL2_12944
112@ = 8
113@ = 4
159@ = 5
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_12944
if 
  114@ == 1
goto_if_false @STEAL2_12985
print_help 'STE2_03'
give_non_player_car_nitro 34@
114@ = 2

:STEAL2_12985
if 
  114@ == 2
goto_if_false @STEAL2_13094
if 
  locate_car_2d 34@ {x} -2319.8 {y} 1080.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_13094
if 
  112@ == 0
goto_if_false @STEAL2_13094
112@ = 8
113@ = 5
159@ = 6
gosub @STEAL2_30237
114@ = 3

:STEAL2_13094
if 
  114@ == 3
goto_if_false @STEAL2_13151
if 
  112@ == 0
goto_if_false @STEAL2_13151
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 4

:STEAL2_13151
if 
  103@ == 0
goto_if_false @STEAL2_13169

:STEAL2_13169
if 
  100@ == 0
goto_if_false @STEAL2_14004
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13316
clear_area -2503.3 {y} 1237.0 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
47@ = create_car 108@ {x} -2503.3 {y} 1237.0 {z} 33.7
set_car_heading 47@ {heading} 249.3
lock_car_doors 47@ {lockStatus} CarLock.Locked
69@ = create_random_char_as_driver 47@
set_load_collision_for_car_flag 47@ {state} True
set_char_can_be_shot_in_vehicle 69@ {state} False

:STEAL2_13316
clear_area -2741.5 {y} 1058.2 {z} 48.1 {radius} 5.0 {clearParticles} True
50@ = create_car 461 {x} -2741.5 {y} 1058.2 {z} 48.1
set_car_heading 50@ {heading} 337.2
72@ = create_random_char_as_driver 50@
set_load_collision_for_car_flag 50@ {state} True
set_char_can_be_shot_in_vehicle 72@ {state} False
clear_area -2513.7 {y} 1246.2 {z} 34.1 {radius} 5.0 {clearParticles} True
52@ = create_car 437 {x} -2513.7 {y} 1246.2 {z} 34.1
set_car_heading 52@ {heading} 82.5
74@ = create_random_char_as_driver 52@
set_load_collision_for_car_flag 52@ {state} True
lock_car_doors 52@ {lockStatus} CarLock.Locked
set_char_can_be_shot_in_vehicle 74@ {state} False
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13610
clear_area -2471.6001 {y} 1219.7 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
53@ = create_car 108@ {x} -2471.6001 {y} 1219.7 {z} 33.7
set_car_heading 53@ {heading} 50.8
lock_car_doors 53@ {lockStatus} CarLock.Locked
75@ = create_random_char_as_driver 53@
set_load_collision_for_car_flag 53@ {state} True
set_char_can_be_shot_in_vehicle 75@ {state} False

:STEAL2_13610
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13739
clear_area -2459.1001 {y} 1224.3 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
54@ = create_car 108@ {x} -2459.1001 {y} 1224.3 {z} 33.7
set_car_heading 54@ {heading} 163.8
lock_car_doors 54@ {lockStatus} CarLock.Locked
76@ = create_random_char_as_driver 54@
set_load_collision_for_car_flag 54@ {state} True
set_char_can_be_shot_in_vehicle 76@ {state} False

:STEAL2_13739
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13868
clear_area -2458.1001 {y} 1234.3 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
55@ = create_car 108@ {x} -2458.1001 {y} 1234.3 {z} 33.7
set_car_heading 55@ {heading} 178.2
lock_car_doors 55@ {lockStatus} CarLock.Locked
77@ = create_random_char_as_driver 55@
set_load_collision_for_car_flag 55@ {state} True
set_char_can_be_shot_in_vehicle 77@ {state} False

:STEAL2_13868
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_13997
clear_area -2474.5 {y} 1196.9 {z} 34.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
56@ = create_car 108@ {x} -2474.5 {y} 1196.9 {z} 34.4
set_car_heading 56@ {heading} 310.3
lock_car_doors 56@ {lockStatus} CarLock.Locked
78@ = create_random_char_as_driver 56@
set_load_collision_for_car_flag 56@ {state} True
set_char_can_be_shot_in_vehicle 78@ {state} False

:STEAL2_13997
100@ = 1

:STEAL2_14004
if 
  100@ == 1
goto_if_false @STEAL2_14364
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_14364
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
if 
  not is_car_dead 47@
goto_if_false @STEAL2_14204
set_car_forward_speed 47@ {forwardSpeed} 15.0
set_car_cruise_speed 47@ {maxSpeed} 15.0
car_goto_coordinates 47@ {x} -2293.5 {y} 1172.3 {z} 54.8

:STEAL2_14204
if 
  not is_car_dead 50@
goto_if_false @STEAL2_14227
start_playback_recorded_car 50@ {path} 91

:STEAL2_14227
if 
  not is_car_dead 52@
goto_if_false @STEAL2_14250
start_playback_recorded_car 52@ {path} 90

:STEAL2_14250
if 
  not is_car_dead 53@
goto_if_false @STEAL2_14273
start_playback_recorded_car 53@ {path} 89

:STEAL2_14273
if 
  not is_car_dead 56@
goto_if_false @STEAL2_14329
set_car_forward_speed 56@ {forwardSpeed} 15.0
set_car_cruise_speed 56@ {maxSpeed} 15.0
car_goto_coordinates 56@ {x} -2283.5 {y} 1172.3 {z} 54.8

:STEAL2_14329
start_playback_recorded_car 34@ {path} 88
114@ = 0
103@ = 0
100@ = 0
99@ = 6

:STEAL2_14364
if 
  99@ == 6
goto_if_false @STEAL2_15242
gosub @STEAL2_26853
if 
  103@ == 0
goto_if_false @STEAL2_14407

:STEAL2_14407
if 
  100@ == 0
goto_if_false @STEAL2_14931
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_14554
clear_area -2533.8 {y} 1242.8 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = create_car 108@ {x} -2533.8 {y} 1242.8 {z} 33.7
set_car_heading 48@ {heading} 288.3
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_random_char_as_driver 48@
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_14554
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_14683
clear_area -2594.0 {y} 1213.9 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = create_car 108@ {x} -2594.0 {y} 1213.9 {z} 33.7
set_car_heading 49@ {heading} 317.3
lock_car_doors 49@ {lockStatus} CarLock.Locked
71@ = create_random_char_as_driver 49@
set_load_collision_for_car_flag 49@ {state} True
set_char_can_be_shot_in_vehicle 71@ {state} False

:STEAL2_14683
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_14812
clear_area -2732.8999 {y} 1098.0 {z} 45.0 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
51@ = create_car 108@ {x} -2732.8999 {y} 1098.0 {z} 45.0
set_car_heading 51@ {heading} 218.5
lock_car_doors 51@ {lockStatus} CarLock.Locked
73@ = create_random_char_as_driver 51@
set_load_collision_for_car_flag 51@ {state} True
set_char_can_be_shot_in_vehicle 73@ {state} False

:STEAL2_14812
if 
  not is_car_dead 48@
goto_if_false @STEAL2_14868
set_car_forward_speed 48@ {forwardSpeed} 15.0
set_car_cruise_speed 48@ {maxSpeed} 15.0
car_goto_coordinates 48@ {x} -2303.5 {y} 1172.3 {z} 54.8

:STEAL2_14868
if 
  not is_car_dead 49@
goto_if_false @STEAL2_14924
set_car_forward_speed 49@ {forwardSpeed} 15.0
set_car_cruise_speed 49@ {maxSpeed} 15.0
car_goto_coordinates 49@ {x} -2313.5 {y} 1060.1 {z} 44.2

:STEAL2_14924
100@ = 1

:STEAL2_14931
if 
  100@ == 1
goto_if_false @STEAL2_15064
if 
  not is_car_dead 50@
goto_if_false @STEAL2_15057
if 
  locate_car_2d 34@ {x} -2599.3 {y} 1206.5 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_15050
if 
  is_playback_going_on_for_car 50@
goto_if_false @STEAL2_15043
stop_playback_recorded_car 50@
mark_car_as_no_longer_needed 50@
100@ = 2
goto @STEAL2_15050

:STEAL2_15043
100@ = 2

:STEAL2_15050
goto @STEAL2_15064

:STEAL2_15057
100@ = 2

:STEAL2_15064
if 
  100@ == 2
goto_if_false @STEAL2_15242
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_15242
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
remove_car_recording 91
start_playback_recorded_car 34@ {path} 92
mark_model_as_no_longer_needed 461
114@ = 0
103@ = 0
100@ = 0
99@ = 7

:STEAL2_15242
if 
  99@ == 7
goto_if_false @STEAL2_18173
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_15345
if 
  112@ == 0
goto_if_false @STEAL2_15345
112@ = 9
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_15345
if 
  114@ == 1
goto_if_false @STEAL2_15454
if 
  locate_car_2d 34@ {x} -2622.2 {y} 999.7 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_15454
if 
  112@ == 0
goto_if_false @STEAL2_15454
112@ = 8
113@ = 7
159@ = 8
gosub @STEAL2_30237
114@ = 2

:STEAL2_15454
if 
  114@ == 2
goto_if_false @STEAL2_15563
if 
  locate_car_2d 34@ {x} -2608.8999 {y} 913.3 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_15563
if 
  112@ == 0
goto_if_false @STEAL2_15563
112@ = 8
113@ = 8
159@ = 9
gosub @STEAL2_30237
114@ = 3

:STEAL2_15563
if 
  114@ == 3
goto_if_false @STEAL2_15620
if 
  112@ == 0
goto_if_false @STEAL2_15620
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 4

:STEAL2_15620
if 
  103@ == 0
goto_if_false @STEAL2_15638

:STEAL2_15638
if 
  100@ == 0
goto_if_false @STEAL2_17603
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_15785
clear_area -2595.6001 {y} 1006.4 {z} 76.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = create_car 108@ {x} -2595.6001 {y} 1006.4 {z} 76.7
set_car_heading 36@ {heading} 89.4
lock_car_doors 36@ {lockStatus} CarLock.Locked
58@ = create_random_char_as_driver 36@
set_load_collision_for_car_flag 36@ {state} True
set_char_can_be_shot_in_vehicle 58@ {state} False

:STEAL2_15785
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_15914
clear_area -2595.6001 {y} 1000.9 {z} 76.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -2595.6001 {y} 1000.9 {z} 76.7
set_car_heading 37@ {heading} 274.4
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_15914
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16043
clear_area -2604.0 {y} 963.9 {z} 76.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -2604.0 {y} 963.9 {z} 76.7
set_car_heading 38@ {heading} 360.0
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_16043
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16172
clear_area -2616.3999 {y} 905.6 {z} 64.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
39@ = create_car 108@ {x} -2616.3999 {y} 905.6 {z} 64.5
set_car_heading 39@ {heading} 269.5
lock_car_doors 39@ {lockStatus} CarLock.Locked
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
set_char_can_be_shot_in_vehicle 61@ {state} False

:STEAL2_16172
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16301
clear_area -2536.8999 {y} 911.1 {z} 63.5 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
40@ = create_car 108@ {x} -2536.8999 {y} 911.1 {z} 63.5
set_car_heading 40@ {heading} 89.8
lock_car_doors 40@ {lockStatus} CarLock.Locked
62@ = create_random_char_as_driver 40@
set_load_collision_for_car_flag 40@ {state} True
set_char_can_be_shot_in_vehicle 62@ {state} False

:STEAL2_16301
if 
  has_model_loaded 597
goto_if_false @STEAL2_16415
clear_area -2609.3 {y} 1012.8 {z} 76.8 {radius} 5.0 {clearParticles} True
41@ = create_car 597 {x} -2609.3 {y} 1012.8 {z} 76.8
set_car_heading 41@ {heading} 178.8
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_char_inside_car 41@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 41@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_16415
if 
  has_model_loaded 597
goto_if_false @STEAL2_16529
clear_area -2603.7 {y} 1011.2 {z} 76.8 {radius} 5.0 {clearParticles} True
42@ = create_car 597 {x} -2603.7 {y} 1011.2 {z} 76.8
set_car_heading 42@ {heading} 179.1
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_char_inside_car 42@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 42@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_16529
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16665
clear_area -2590.0 {y} 705.9 {z} 26.6 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -2590.0 {y} 705.9 {z} 26.6
set_car_heading 43@ {heading} 268.3
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_car_driving_style 43@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_16665
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16801
clear_area -2463.0 {y} 710.6 {z} 33.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -2463.0 {y} 710.6 {z} 33.9
set_car_heading 44@ {heading} 90.3
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_car_driving_style 44@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_16801
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_16930
clear_area -2501.6001 {y} 562.7 {z} 13.1 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
45@ = create_car 108@ {x} -2501.6001 {y} 562.7 {z} 13.1
set_car_heading 45@ {heading} 271.8
lock_car_doors 45@ {lockStatus} CarLock.Locked
67@ = create_random_char_as_driver 45@
set_load_collision_for_car_flag 45@ {state} True
set_char_can_be_shot_in_vehicle 67@ {state} False

:STEAL2_16930
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17066
clear_area -2390.8999 {y} 581.7 {z} 23.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -2390.8999 {y} 581.7 {z} 23.9
set_car_heading 46@ {heading} 184.1
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_car_driving_style 46@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_17066
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17195
clear_area -2361.7 {y} 510.9 {z} 27.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
47@ = create_car 108@ {x} -2361.7 {y} 510.9 {z} 27.9
set_car_heading 47@ {heading} 100.0
lock_car_doors 47@ {lockStatus} CarLock.Locked
69@ = create_random_char_as_driver 47@
set_load_collision_for_car_flag 47@ {state} True
set_char_can_be_shot_in_vehicle 69@ {state} False

:STEAL2_17195
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17324
clear_area -2281.3 {y} 569.6 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
48@ = create_car 108@ {x} -2281.3 {y} 569.6 {z} 33.7
set_car_heading 48@ {heading} 87.6
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_random_char_as_driver 48@
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_17324
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17460
clear_area -2358.8999 {y} 569.9 {z} 23.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
49@ = create_car 108@ {x} -2358.8999 {y} 569.9 {z} 23.7
set_car_heading 49@ {heading} 90.7
lock_car_doors 49@ {lockStatus} CarLock.Locked
71@ = create_random_char_as_driver 49@
set_car_driving_style 49@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 49@ {state} True
set_char_can_be_shot_in_vehicle 71@ {state} False

:STEAL2_17460
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_17596
clear_area -2373.1001 {y} 569.6 {z} 23.4 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
50@ = create_car 108@ {x} -2373.1001 {y} 569.6 {z} 23.4
set_car_heading 50@ {heading} 91.3
lock_car_doors 50@ {lockStatus} CarLock.Locked
72@ = create_random_char_as_driver 50@
set_car_driving_style 50@ {drivingStyle} DrivingMode.StopForCarsIgnoreLights
set_load_collision_for_car_flag 50@ {state} True
set_char_can_be_shot_in_vehicle 72@ {state} False

:STEAL2_17596
100@ = 1

:STEAL2_17603
if 
  100@ == 1
goto_if_false @STEAL2_17866
if 
  locate_car_2d 34@ {x} -2610.7 {y} 992.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_17866
if 
  not is_car_dead 38@
goto_if_false @STEAL2_17715
set_car_forward_speed 38@ {forwardSpeed} 15.0
set_car_cruise_speed 38@ {maxSpeed} 15.0
car_goto_coordinates 38@ {x} -2736.3999 {y} 1006.9 {z} 53.0

:STEAL2_17715
if 
  not is_car_dead 41@
goto_if_false @STEAL2_17787
set_car_forward_speed 41@ {forwardSpeed} 15.0
set_car_cruise_speed 41@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_17787
set_car_follow_car 41@ {handle} 34@ {radius} 10.0
switch_car_siren 41@ {state} True

:STEAL2_17787
if 
  not is_car_dead 42@
goto_if_false @STEAL2_17859
set_car_forward_speed 42@ {forwardSpeed} 15.0
set_car_cruise_speed 42@ {maxSpeed} 40.0
if 
  not is_car_dead 34@
goto_if_false @STEAL2_17859
set_car_follow_car 42@ {handle} 34@ {radius} 20.0
switch_car_siren 42@ {state} True

:STEAL2_17859
100@ = 2

:STEAL2_17866
if 
  100@ == 2
goto_if_false @STEAL2_18008
if 
  locate_car_2d 34@ {x} -2610.3999 {y} 922.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_18008
if 
  not is_car_dead 39@
goto_if_false @STEAL2_17945
start_playback_recorded_car 39@ {path} 93

:STEAL2_17945
if 
  not is_car_dead 40@
goto_if_false @STEAL2_18001
set_car_forward_speed 40@ {forwardSpeed} 15.0
set_car_cruise_speed 40@ {maxSpeed} 15.0
car_goto_coordinates 40@ {x} -2604.0 {y} 963.9 {z} 76.7

:STEAL2_18001
100@ = 3

:STEAL2_18008
if 
  100@ == 3
goto_if_false @STEAL2_18173
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_18173
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
if 
  not is_car_dead 43@
goto_if_false @STEAL2_18115
start_playback_recorded_car 43@ {path} 95

:STEAL2_18115
if 
  not is_car_dead 44@
goto_if_false @STEAL2_18138
start_playback_recorded_car 44@ {path} 96

:STEAL2_18138
start_playback_recorded_car 34@ {path} 94
114@ = 0
103@ = 0
100@ = 0
99@ = 8

:STEAL2_18173
if 
  99@ == 8
goto_if_false @STEAL2_18866
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_18321
if 
  locate_car_2d 34@ {x} -2528.8999 {y} 737.7 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_18321
if 
  112@ == 0
goto_if_false @STEAL2_18321
112@ = 8
113@ = 9
159@ = 10
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_18321
if 
  114@ == 1
goto_if_false @STEAL2_18378
if 
  112@ == 0
goto_if_false @STEAL2_18378
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 2

:STEAL2_18378
if 
  103@ == 0
goto_if_false @STEAL2_18396

:STEAL2_18396
if 
  100@ == 0
goto_if_false @STEAL2_18421
100@ = 1

:STEAL2_18421
if 
  100@ == 1
goto_if_false @STEAL2_18866
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_18866
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
if 
  not is_car_dead 45@
goto_if_false @STEAL2_18551
set_car_forward_speed 45@ {forwardSpeed} 15.0
set_car_cruise_speed 45@ {maxSpeed} 15.0
car_goto_coordinates 45@ {x} -2400.7 {y} 562.2 {z} 23.4

:STEAL2_18551
if 
  not is_car_dead 46@
goto_if_false @STEAL2_18607
set_car_forward_speed 46@ {forwardSpeed} 15.0
set_car_cruise_speed 46@ {maxSpeed} 15.0
car_goto_coordinates 46@ {x} -2319.5 {y} 424.7 {z} 33.6

:STEAL2_18607
if 
  not is_car_dead 47@
goto_if_false @STEAL2_18663
set_car_forward_speed 47@ {forwardSpeed} 15.0
set_car_cruise_speed 47@ {maxSpeed} 15.0
car_goto_coordinates 47@ {x} -2383.1001 {y} 551.4 {z} 23.6

:STEAL2_18663
if 
  not is_car_dead 48@
goto_if_false @STEAL2_18719
set_car_forward_speed 48@ {forwardSpeed} 15.0
set_car_cruise_speed 48@ {maxSpeed} 15.0
car_goto_coordinates 48@ {x} -2372.8999 {y} 569.6 {z} 23.4

:STEAL2_18719
if 
  not is_car_dead 49@
goto_if_false @STEAL2_18775
set_car_forward_speed 49@ {forwardSpeed} 15.0
set_car_cruise_speed 49@ {maxSpeed} 15.0
car_goto_coordinates 49@ {x} -2516.5 {y} 569.9 {z} 13.1

:STEAL2_18775
if 
  not is_car_dead 50@
goto_if_false @STEAL2_18831
set_car_forward_speed 50@ {forwardSpeed} 15.0
set_car_cruise_speed 50@ {maxSpeed} 15.0
car_goto_coordinates 50@ {x} -2383.8999 {y} 655.8 {z} 33.6

:STEAL2_18831
start_playback_recorded_car 34@ {path} 97
114@ = 0
103@ = 0
100@ = 0
99@ = 9

:STEAL2_18866
if 
  99@ == 9
goto_if_false @STEAL2_20783
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_18989
if 
  locate_car_2d 34@ {x} -2528.6001 {y} 656.4 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_18989
112@ = 10
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_18989
if 
  114@ == 1
goto_if_false @STEAL2_19098
if 
  locate_car_2d 34@ {x} -2375.0 {y} 566.2 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_19098
if 
  112@ == 0
goto_if_false @STEAL2_19098
112@ = 8
113@ = 10
159@ = 11
gosub @STEAL2_30237
114@ = 2

:STEAL2_19098
if 
  114@ == 2
goto_if_false @STEAL2_19146
if 
  112@ == 0
goto_if_false @STEAL2_19146
clear_wanted_level $player1
114@ = 3

:STEAL2_19146
if 
  114@ == 3
goto_if_false @STEAL2_19203
if 
  112@ == 0
goto_if_false @STEAL2_19203
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 4

:STEAL2_19203
if 
  103@ == 0
goto_if_false @STEAL2_19221

:STEAL2_19221
if 
  100@ == 0
goto_if_false @STEAL2_20329
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19368
clear_area -2269.1001 {y} 5748.0 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
36@ = create_car 108@ {x} -2269.1001 {y} 5748.0 {z} 33.7
set_car_heading 36@ {heading} 182.3
lock_car_doors 36@ {lockStatus} CarLock.Locked
58@ = create_random_char_as_driver 36@
set_load_collision_for_car_flag 36@ {state} True
set_char_can_be_shot_in_vehicle 58@ {state} False

:STEAL2_19368
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19497
clear_area -2251.1001 {y} 561.9 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
37@ = create_car 108@ {x} -2251.1001 {y} 561.9 {z} 33.7
set_car_heading 37@ {heading} 271.1
lock_car_doors 37@ {lockStatus} CarLock.Locked
59@ = create_random_char_as_driver 37@
set_load_collision_for_car_flag 37@ {state} True
set_char_can_be_shot_in_vehicle 59@ {state} False

:STEAL2_19497
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19626
clear_area -2212.5 {y} 569.9 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
38@ = create_car 108@ {x} -2212.5 {y} 569.9 {z} 33.7
set_car_heading 38@ {heading} 91.3
lock_car_doors 38@ {lockStatus} CarLock.Locked
60@ = create_random_char_as_driver 38@
set_load_collision_for_car_flag 38@ {state} True
set_char_can_be_shot_in_vehicle 60@ {state} False

:STEAL2_19626
clear_area -2229.3999 {y} 532.7 {z} 34.0 {radius} 5.0 {clearParticles} True
39@ = create_car 437 {x} -2229.3999 {y} 532.7 {z} 34.0
set_car_heading 39@ {heading} 180.3
61@ = create_random_char_as_driver 39@
set_load_collision_for_car_flag 39@ {state} True
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19827
clear_area -2342.8 {y} 505.3 {z} 28.3 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
41@ = create_car 108@ {x} -2342.8 {y} 505.3 {z} 28.3
set_car_heading 41@ {heading} 269.2
lock_car_doors 41@ {lockStatus} CarLock.Locked
63@ = create_random_char_as_driver 41@
set_load_collision_for_car_flag 41@ {state} True
set_char_can_be_shot_in_vehicle 63@ {state} False

:STEAL2_19827
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_19956
clear_area -2293.5 {y} 505.4 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
42@ = create_car 108@ {x} -2293.5 {y} 505.4 {z} 33.7
set_car_heading 42@ {heading} 270.0
lock_car_doors 42@ {lockStatus} CarLock.Locked
64@ = create_random_char_as_driver 42@
set_load_collision_for_car_flag 42@ {state} True
set_char_can_be_shot_in_vehicle 64@ {state} False

:STEAL2_19956
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_20085
clear_area -2238.8999 {y} 511.2 {z} 34.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
43@ = create_car 108@ {x} -2238.8999 {y} 511.2 {z} 34.7
set_car_heading 43@ {heading} 90.6
lock_car_doors 43@ {lockStatus} CarLock.Locked
65@ = create_random_char_as_driver 43@
set_load_collision_for_car_flag 43@ {state} True
set_char_can_be_shot_in_vehicle 65@ {state} False

:STEAL2_20085
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_20214
clear_area -2224.0 {y} 496.6 {z} 33.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
44@ = create_car 108@ {x} -2224.0 {y} 496.6 {z} 33.7
set_car_heading 44@ {heading} 0.0
lock_car_doors 44@ {lockStatus} CarLock.Locked
66@ = create_random_char_as_driver 44@
set_load_collision_for_car_flag 44@ {state} True
set_char_can_be_shot_in_vehicle 66@ {state} False

:STEAL2_20214
clear_area -2232.2 {y} 529.5 {z} 34.2 {radius} 5.0 {clearParticles} True
77@ = create_random_char -2232.2 {y} 529.5 {z} 34.2
set_char_heading 77@ {heading} 174.2
clear_area -2232.5 {y} 531.0 {z} 34.2 {radius} 5.0 {clearParticles} True
78@ = create_random_char -2232.5 {y} 531.0 {z} 34.2
set_char_heading 78@ {heading} 174.2
100@ = 1

:STEAL2_20329
if 
  100@ == 1
goto_if_false @STEAL2_20783
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_20783
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
if 
  not is_car_dead 36@
goto_if_false @STEAL2_20479
set_car_forward_speed 36@ {forwardSpeed} 15.0
set_car_cruise_speed 36@ {maxSpeed} 15.0
car_goto_coordinates 36@ {x} -2174.8999 {y} 561.8 {z} 33.6

:STEAL2_20479
if 
  not is_car_dead 37@
goto_if_false @STEAL2_20535
set_car_forward_speed 37@ {forwardSpeed} 15.0
set_car_cruise_speed 37@ {maxSpeed} 15.0
car_goto_coordinates 37@ {x} -2160.2 {y} 561.9 {z} 33.6

:STEAL2_20535
if 
  not is_car_dead 41@
goto_if_false @STEAL2_20591
set_car_forward_speed 41@ {forwardSpeed} 15.0
set_car_cruise_speed 41@ {maxSpeed} 15.0
car_goto_coordinates 41@ {x} -2252.6001 {y} 505.7 {z} 33.7

:STEAL2_20591
if 
  not is_car_dead 42@
goto_if_false @STEAL2_20647
set_car_forward_speed 42@ {forwardSpeed} 15.0
set_car_cruise_speed 42@ {maxSpeed} 15.0
car_goto_coordinates 42@ {x} -2239.3999 {y} 505.7 {z} 33.7

:STEAL2_20647
if 
  not is_car_dead 43@
goto_if_false @STEAL2_20703
set_car_forward_speed 43@ {forwardSpeed} 15.0
set_car_cruise_speed 43@ {maxSpeed} 15.0
car_goto_coordinates 43@ {x} -2361.2 {y} 511.5 {z} 27.9

:STEAL2_20703
start_playback_recorded_car 34@ {path} 98
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 449
request_model #DYN_ROADBARRIER_3
request_model #DYN_ROADBARRIER_4
request_model #KMB_SKIP
request_model #DYN_DUMPSTER
request_model 486
request_model 524
request_model #DYN_RAMP
114@ = 0
103@ = 0
100@ = 0
99@ = 10

:STEAL2_20783
if 
  99@ == 10
goto_if_false @STEAL2_21758
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_20931
if 
  locate_car_2d 34@ {x} -2264.5 {y} 546.1 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_20931
if 
  112@ == 0
goto_if_false @STEAL2_20931
112@ = 8
113@ = 11
159@ = 12
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_20931
if 
  114@ == 1
goto_if_false @STEAL2_21010
if 
  locate_car_2d 34@ {x} -2224.1001 {y} 454.8 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @STEAL2_21010
print_now 'STE2_04' {time} 4000 {flag} 1
114@ = 2

:STEAL2_21010
if 
  114@ == 2
goto_if_false @STEAL2_21067
if 
  112@ == 0
goto_if_false @STEAL2_21067
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_21067
if 
  103@ == 0
goto_if_false @STEAL2_21085

:STEAL2_21085
if 
  100@ == 0
goto_if_false @STEAL2_21126
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_21126
100@ = 1

:STEAL2_21126
if 
  100@ == 1
goto_if_false @STEAL2_21758
if 
  locate_char_in_car_2d $scplayer {x} -2213.8999 {y} 453.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @STEAL2_21758
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
108@, 109@ = get_random_car_model_in_memory True
if 
  108@ >= 0
goto_if_false @STEAL2_21401
clear_area -2228.8 {y} 521.1 {z} 33.8 {radius} 5.0 {clearParticles} True
set_lvar_int_to_lvar_int 110@ = 108@
gosub @STEAL2_27694
46@ = create_car 108@ {x} -2228.8 {y} 521.1 {z} 33.8
set_car_heading 46@ {heading} 179.4
lock_car_doors 46@ {lockStatus} CarLock.Locked
68@ = create_random_char_as_driver 46@
set_load_collision_for_car_flag 46@ {state} True
set_char_can_be_shot_in_vehicle 68@ {state} False

:STEAL2_21401
if 
  has_model_loaded 597
goto_if_false @STEAL2_21515
clear_area -2149.3999 {y} 462.0 {z} 33.8 {radius} 5.0 {clearParticles} True
47@ = create_car 597 {x} -2149.3999 {y} 462.0 {z} 33.8
set_car_heading 47@ {heading} 174.8
lock_car_doors 47@ {lockStatus} CarLock.Locked
69@ = create_char_inside_car 47@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 47@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 47@ {state} True
set_char_can_be_shot_in_vehicle 69@ {state} False

:STEAL2_21515
if 
  has_model_loaded 597
goto_if_false @STEAL2_21629
clear_area -2148.8 {y} 444.0 {z} 33.8 {radius} 5.0 {clearParticles} True
48@ = create_car 597 {x} -2148.8 {y} 444.0 {z} 33.8
set_car_heading 48@ {heading} 360.0
lock_car_doors 48@ {lockStatus} CarLock.Locked
70@ = create_char_inside_car 48@ {pedType} PedType.Mission1 {modelId} 281
set_car_driving_style 48@ {drivingStyle} DrivingMode.AvoidCars
set_load_collision_for_car_flag 48@ {state} True
set_char_can_be_shot_in_vehicle 70@ {state} False

:STEAL2_21629
if 
  not is_car_dead 34@
goto_if_false @STEAL2_21652
start_playback_recorded_car 34@ {path} 65

:STEAL2_21652
if 
  not is_car_dead 47@
goto_if_false @STEAL2_21682
start_playback_recorded_car 47@ {path} 66
switch_car_siren 47@ {state} True

:STEAL2_21682
if 
  not is_car_dead 48@
goto_if_false @STEAL2_21712
start_playback_recorded_car 48@ {path} 67
switch_car_siren 48@ {state} True

:STEAL2_21712
clear_this_print 'STE2_04'
TIMERB = 0
114@ = 0
103@ = 0
100@ = 0
99@ = 11

:STEAL2_21758
if 
  99@ == 11
goto_if_false @STEAL2_22885
if 
  114@ == 0
goto_if_false @STEAL2_21855
if 
  TIMERB > 1000
goto_if_false @STEAL2_21855
112@ = 11
113@ = 0
gosub @STEAL2_30237
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_21855
if 
  114@ == 1
goto_if_false @STEAL2_21905
if 
  112@ == 0
goto_if_false @STEAL2_21905
alter_wanted_level_no_drop $player1 {wantedLevel} 2
114@ = 2

:STEAL2_21905
if 
  114@ == 2
goto_if_false @STEAL2_21962
if 
  112@ == 0
goto_if_false @STEAL2_21962
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_21962
if 
  103@ == 0
goto_if_false @STEAL2_21980

:STEAL2_21980
if 
  100@ == 0
goto_if_false @STEAL2_22816
clear_area -2128.1001 {y} 496.6 {z} 34.0 {radius} 100.0 {clearParticles} True
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
mark_car_as_no_longer_needed 57@
80@ = create_object #DYN_ROADBARRIER_3 {x} -2128.1001 {y} 496.6 {z} 34.0
set_object_heading 80@ {heading} 270.0
81@ = create_object #DYN_ROADBARRIER_4 {x} -2128.1001 {y} 501.6 {z} 34.0
set_object_heading 81@ {heading} 270.0
82@ = create_object #DYN_ROADBARRIER_3 {x} -2128.1001 {y} 503.6 {z} 34.0
set_object_heading 82@ {heading} 270.0
83@ = create_object #DYN_ROADBARRIER_4 {x} -2128.1001 {y} 506.8 {z} 34.0
set_object_heading 83@ {heading} 270.0
84@ = create_object #DYN_ROADBARRIER_3 {x} -2128.1001 {y} 511.6 {z} 34.0
set_object_heading 84@ {heading} 270.0
85@ = create_object #DYN_ROADBARRIER_3 {x} -2016.1 {y} 496.6 {z} 34.0
set_object_heading 85@ {heading} 90.0
86@ = create_object #DYN_ROADBARRIER_4 {x} -2016.1 {y} 501.6 {z} 34.0
set_object_heading 86@ {heading} 90.0
87@ = create_object #DYN_ROADBARRIER_3 {x} -2016.1 {y} 503.6 {z} 34.0
set_object_heading 87@ {heading} 90.0
88@ = create_object #DYN_ROADBARRIER_4 {x} -2016.1 {y} 506.8 {z} 34.0
set_object_heading 88@ {heading} 90.0
89@ = create_object #DYN_ROADBARRIER_3 {x} -2016.1 {y} 511.6 {z} 34.0
set_object_heading 89@ {heading} 90.0
90@ = create_object #KMB_SKIP {x} -2096.1001 {y} 501.8 {z} 34.0
set_object_heading 90@ {heading} 90.0
91@ = create_object #DYN_DUMPSTER {x} -2096.1001 {y} 504.8 {z} 34.0
set_object_heading 91@ {heading} 270.0
92@ = create_object #DYN_RAMP {x} -2056.8999 {y} 503.8 {z} 34.0
set_object_heading 92@ {heading} 270.0
if 
  has_model_loaded 486
goto_if_false @STEAL2_22697
36@ = create_car 486 {x} -2084.6001 {y} 501.2 {z} 34.4
set_car_heading 36@ {heading} 269.7
set_load_collision_for_car_flag 36@ {state} True

:STEAL2_22697
if 
  has_model_loaded 486
goto_if_false @STEAL2_22753
37@ = create_car 486 {x} -2045.1 {y} 500.9 {z} 34.3
set_car_heading 37@ {heading} 156.1
set_load_collision_for_car_flag 37@ {state} True

:STEAL2_22753
if 
  has_model_loaded 524
goto_if_false @STEAL2_22809
38@ = create_car 524 {x} -2048.3 {y} 508.4 {z} 35.0
set_car_heading 38@ {heading} 88.4
set_load_collision_for_car_flag 38@ {state} True

:STEAL2_22809
100@ = 1

:STEAL2_22816
if 
  100@ == 1
goto_if_false @STEAL2_22885
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_22885
start_playback_recorded_car 34@ {path} 99
114@ = 0
103@ = 0
100@ = 0
99@ = 12

:STEAL2_22885
if 
  99@ == 12
goto_if_false @STEAL2_23173
gosub @STEAL2_26853
if 
  114@ == 0
goto_if_false @STEAL2_22928

:STEAL2_22928
if 
  103@ == 0
goto_if_false @STEAL2_22946

:STEAL2_22946
if 
  100@ == 0
goto_if_false @STEAL2_22971
100@ = 1

:STEAL2_22971
if 
  100@ == 1
goto_if_false @STEAL2_23173
if 
  not is_playback_going_on_for_car 34@
goto_if_false @STEAL2_23173
set_car_density_multiplier 1.0
171@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2009.7 {y} 192.2 {z} 26.0 {speed} 45.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2031.7 {y} 180.1 {z} 27.4 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 171@
perform_sequence_task $cesar {sequence} 171@
clear_sequence_task 171@
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_23145
remove_blip 98@
98@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4

:STEAL2_23145
114@ = 0
103@ = 0
100@ = 0
99@ = 13

:STEAL2_23173
if 
  99@ == 13
goto_if_false @STEAL2_23938
if 
  114@ == 0
goto_if_false @STEAL2_23368
if 
  112@ == 0
goto_if_false @STEAL2_23368
112@ = 12
113@ = 0
gosub @STEAL2_30237
if 
  not is_car_dead 47@
goto_if_false @STEAL2_23347
if 
  not is_car_dead 48@
goto_if_false @STEAL2_23347
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 47@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @STEAL2_23347
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 48@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @STEAL2_23347
clear_wanted_level $player1

:STEAL2_23347
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
114@ = 1

:STEAL2_23368
if 
  114@ == 1
goto_if_false @STEAL2_23427
if 
  112@ == 0
goto_if_false @STEAL2_23427
print 'STE2_05' {time} 4000 {flag} 1
114@ = 2

:STEAL2_23427
if 
  114@ == 2
goto_if_false @STEAL2_23484
if 
  112@ == 0
goto_if_false @STEAL2_23484
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
114@ = 3

:STEAL2_23484
if 
  100@ == 0
goto_if_false @STEAL2_23845
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_23845
set_ped_density_multiplier 1.0
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
mark_char_as_no_longer_needed 79@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_car_as_no_longer_needed 38@
mark_car_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
mark_car_as_no_longer_needed 43@
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 46@
mark_car_as_no_longer_needed 47@
mark_car_as_no_longer_needed 48@
mark_car_as_no_longer_needed 49@
mark_car_as_no_longer_needed 50@
mark_car_as_no_longer_needed 51@
mark_car_as_no_longer_needed 52@
mark_car_as_no_longer_needed 53@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 56@
mark_car_as_no_longer_needed 57@
mark_car_as_no_longer_needed 95@
mark_object_as_no_longer_needed 80@
mark_object_as_no_longer_needed 81@
mark_object_as_no_longer_needed 82@
mark_object_as_no_longer_needed 83@
mark_object_as_no_longer_needed 84@
mark_object_as_no_longer_needed 85@
mark_object_as_no_longer_needed 86@
mark_object_as_no_longer_needed 87@
mark_object_as_no_longer_needed 88@
mark_object_as_no_longer_needed 89@
mark_object_as_no_longer_needed 90@
mark_object_as_no_longer_needed 91@
mark_object_as_no_longer_needed 92@
mark_object_as_no_longer_needed 93@
mark_object_as_no_longer_needed 94@
100@ = 1

:STEAL2_23845
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_23938
if 
  locate_char_in_car_3d $scplayer {x} -2024.7 {y} 179.4 {z} 27.4 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL2_23938
clear_wanted_level $player1
set_player_control $player1 {state} False
100@ = 0
99@ = 14

:STEAL2_23938
if 
  99@ == 14
goto_if_false @STEAL2_24933
if 
  100@ == 0
goto_if_false @STEAL2_24525
do_fade 500 {direction} Fade.Out

:STEAL2_23981
if 
  get_fading_status 
goto_if_false @STEAL2_24005
wait 0
goto @STEAL2_23981

:STEAL2_24005
open_garage 'HBGDSFS'

:STEAL2_24016
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @STEAL2_24049
wait 0
goto @STEAL2_24016

:STEAL2_24049
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24081
goto @STEAL2_26013

:STEAL2_24081
set_area_visible 1
shut_all_chars_up True
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
112@ = 0
request_animation "PLAYIDLES"
load_all_models_now 
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_area_visible $scplayer {areaId} 1
clear_area -2043.7 {y} 171.4 {z} 27.6 {radius} 100.0 {clearParticles} True
set_vehicle_area_visible 34@ {interiorId} 1
set_car_coordinates 34@ {x} -2043.7 {y} 171.4 {z} 27.6
set_car_heading 34@ {heading} 91.6
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
set_char_area_visible $cesar {areaId} 1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -2045.4 {y} 173.1 {z} 27.8
set_char_heading $cesar {heading} 325.5
set_vehicle_area_visible 35@ {interiorId} 1
set_car_coordinates 35@ {x} -2033.8 {y} 178.6 {z} 27.6
set_car_heading 35@ {heading} 90.0
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_24337
warp_char_into_car $scplayer {vehicle} 35@

:STEAL2_24337
171@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 35@ {x} -2044.4 {y} 177.6 {z} 27.6 {speed} 5.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 171@
perform_sequence_task $scplayer {sequence} 171@
clear_sequence_task 171@
set_fixed_camera_position -2049.3 {y} 172.8 {z} 28.78 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2034.7 {y} 177.4 {z} 29.8 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:STEAL2_24462
if 
  get_fading_status 
goto_if_false @STEAL2_24486
wait 0
goto @STEAL2_24462

:STEAL2_24486
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24518
goto @STEAL2_26013

:STEAL2_24518
100@ = 1

:STEAL2_24525
if 
  100@ == 1
goto_if_false @STEAL2_24628
if 
  is_car_in_area_2d 35@ {leftBottomX} -2039.3 {leftBottomY} 175.1 {rightTopX} -2041.9 {rightTopY} 181.6 {drawSphere} False
goto_if_false @STEAL2_24628
task_play_anim $cesar {animationName} "STRETCH" {animationFile} "PLAYIDLES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
100@ = 2

:STEAL2_24628
if 
  100@ == 2
goto_if_false @STEAL2_24933
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL2_24933
do_fade 500 {direction} Fade.Out

:STEAL2_24682
if 
  get_fading_status 
goto_if_false @STEAL2_24706
wait 0
goto @STEAL2_24682

:STEAL2_24706
close_garage 'HBGDSFS'

:STEAL2_24717
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @STEAL2_24750
wait 0
goto @STEAL2_24717

:STEAL2_24750
gosub @STEAL2_26289
if 
  102@ == 1
goto_if_false @STEAL2_24782
goto @STEAL2_26013

:STEAL2_24782
shut_all_chars_up False
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene -2045.4 {y} 173.1 {z} 27.8
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.8
set_char_heading $scplayer {heading} 277.5
do_fade 500 {direction} Fade.In
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 

:STEAL2_24902
if 
  get_fading_status 
goto_if_false @STEAL2_24926
wait 0
goto @STEAL2_24902

:STEAL2_24926
goto @STEAL2_26031

:STEAL2_24933
if 
  99@ == 0
goto_if_false @STEAL2_25141
if 
  not has_car_recording_been_loaded 70
goto_if_false @STEAL2_24970
request_car_recording 70

:STEAL2_24970
if 
  not has_car_recording_been_loaded 71
goto_if_false @STEAL2_24989
request_car_recording 71

:STEAL2_24989
if 
  not has_car_recording_been_loaded 72
goto_if_false @STEAL2_25008
request_car_recording 72

:STEAL2_25008
if 
  not has_car_recording_been_loaded 73
goto_if_false @STEAL2_25027
request_car_recording 73

:STEAL2_25027
if 
  not has_car_recording_been_loaded 74
goto_if_false @STEAL2_25046
request_car_recording 74

:STEAL2_25046
if 
  not has_car_recording_been_loaded 75
goto_if_false @STEAL2_25065
request_car_recording 75

:STEAL2_25065
if 
  not has_car_recording_been_loaded 76
goto_if_false @STEAL2_25084
request_car_recording 76

:STEAL2_25084
if 
  not has_car_recording_been_loaded 77
goto_if_false @STEAL2_25103
request_car_recording 77

:STEAL2_25103
if 
  not has_car_recording_been_loaded 78
goto_if_false @STEAL2_25122
request_car_recording 78

:STEAL2_25122
if 
  not has_car_recording_been_loaded 79
goto_if_false @STEAL2_25141
request_car_recording 79

:STEAL2_25141
if 
  99@ == 2
goto_if_false @STEAL2_25254
if 
  not has_car_recording_been_loaded 80
goto_if_false @STEAL2_25178
request_car_recording 80

:STEAL2_25178
if 
  not has_car_recording_been_loaded 81
goto_if_false @STEAL2_25197
request_car_recording 81

:STEAL2_25197
if 
  not has_car_recording_been_loaded 83
goto_if_false @STEAL2_25216
request_car_recording 83

:STEAL2_25216
if 
  not has_car_recording_been_loaded 84
goto_if_false @STEAL2_25235
request_car_recording 84

:STEAL2_25235
if 
  not has_car_recording_been_loaded 85
goto_if_false @STEAL2_25254
request_car_recording 85

:STEAL2_25254
if 
  99@ == 4
goto_if_false @STEAL2_25310
if 
  not has_car_recording_been_loaded 86
goto_if_false @STEAL2_25291
request_car_recording 86

:STEAL2_25291
if 
  not has_car_recording_been_loaded 87
goto_if_false @STEAL2_25310
request_car_recording 87

:STEAL2_25310
if 
  99@ == 5
goto_if_false @STEAL2_25404
if 
  not has_car_recording_been_loaded 88
goto_if_false @STEAL2_25347
request_car_recording 88

:STEAL2_25347
if 
  not has_car_recording_been_loaded 89
goto_if_false @STEAL2_25366
request_car_recording 89

:STEAL2_25366
if 
  not has_car_recording_been_loaded 90
goto_if_false @STEAL2_25385
request_car_recording 90

:STEAL2_25385
if 
  not has_car_recording_been_loaded 91
goto_if_false @STEAL2_25404
request_car_recording 91

:STEAL2_25404
if 
  99@ == 6
goto_if_false @STEAL2_25460
if 
  not has_car_recording_been_loaded 92
goto_if_false @STEAL2_25441
request_car_recording 92

:STEAL2_25441
if 
  not has_car_recording_been_loaded 93
goto_if_false @STEAL2_25460
request_car_recording 93

:STEAL2_25460
if 
  99@ == 7
goto_if_false @STEAL2_25554
if 
  not has_car_recording_been_loaded 94
goto_if_false @STEAL2_25497
request_car_recording 94

:STEAL2_25497
if 
  not has_car_recording_been_loaded 95
goto_if_false @STEAL2_25516
request_car_recording 95

:STEAL2_25516
if 
  not has_car_recording_been_loaded 96
goto_if_false @STEAL2_25535
request_car_recording 96

:STEAL2_25535
if 
  not has_car_recording_been_loaded 97
goto_if_false @STEAL2_25554
request_car_recording 97

:STEAL2_25554
if 
  99@ == 8
goto_if_false @STEAL2_25648
if 
  not has_car_recording_been_loaded 98
goto_if_false @STEAL2_25591
request_car_recording 98

:STEAL2_25591
if 
  not has_car_recording_been_loaded 65
goto_if_false @STEAL2_25610
request_car_recording 65

:STEAL2_25610
if 
  not has_car_recording_been_loaded 66
goto_if_false @STEAL2_25629
request_car_recording 66

:STEAL2_25629
if 
  not has_car_recording_been_loaded 67
goto_if_false @STEAL2_25648
request_car_recording 67

:STEAL2_25648
if 
  99@ == 11
goto_if_false @STEAL2_25685
if 
  not has_car_recording_been_loaded 99
goto_if_false @STEAL2_25685
request_car_recording 99

:STEAL2_25685
if 
  99@ > 0
goto_if_false @STEAL2_25956
if 
  13 > 99@
goto_if_false @STEAL2_25956
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @STEAL2_25793
if 
  not is_car_on_screen 34@
goto_if_false @STEAL2_25793
clear_prints 
print_now 'STE2_06' {time} 4000 {flag} 1
goto @STEAL2_26013

:STEAL2_25793
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 35@ {xRadius} 120.0 {yRadius} 120.0 {drawSphere} False
goto_if_false @STEAL2_25865
if 
  not is_car_on_screen 35@
goto_if_false @STEAL2_25865
clear_prints 
print_now 'STE2_09' {time} 4000 {flag} 1
goto @STEAL2_26013

:STEAL2_25865
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_25956
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 35@ {xRadius} 160.0 {yRadius} 160.0 {drawSphere} False
goto_if_false @STEAL2_25956
if 
  not is_car_on_screen 35@
goto_if_false @STEAL2_25956
clear_prints 
print_now 'STE2_08' {time} 4000 {flag} 1
goto @STEAL2_26013

:STEAL2_25956
if 
  99@ > 0
goto_if_false @STEAL2_25999
if 
  14 > 99@
goto_if_false @STEAL2_25999
gosub @STEAL2_26597

:STEAL2_25999
gosub @STEAL2_28925
goto @STEAL2_988

:STEAL2_26013
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STEAL2_26031
$flag_steal_mission_counter += 1
switch_car_generator $steal_car_cargen2 {amount} 101
switch_car_generator $steal_car_cargen3 {amount} 101
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'STEAL_2'
player_made_progress 1
return 

:STEAL2_26109
if 
  is_var_text_label_empty s$shop_name
goto_if_false @STEAL2_26127
restore_camera_jumpcut 

:STEAL2_26127
remove_char_elegantly $cesar
if 
  not is_char_dead $scplayer
goto_if_false @STEAL2_26155
shut_char_up_for_scripted_speech $scplayer {state} False

:STEAL2_26155
shut_all_chars_up False
mark_model_as_no_longer_needed 560
mark_model_as_no_longer_needed 562
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 414
mark_model_as_no_longer_needed #CARDBOARDBOX
mark_model_as_no_longer_needed 449
mark_model_as_no_longer_needed 597
mark_model_as_no_longer_needed 281
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 461
mark_vehicle_mod_as_no_longer_needed #NTO_B_S
mark_model_as_no_longer_needed 486
mark_model_as_no_longer_needed 524
mark_model_as_no_longer_needed #DYN_ROADBARRIER_3
mark_model_as_no_longer_needed #DYN_ROADBARRIER_4
mark_model_as_no_longer_needed #KMB_SKIP
mark_model_as_no_longer_needed #DYN_DUMPSTER
mark_model_as_no_longer_needed #DYN_RAMP
dont_suppress_any_car_models 
remove_animation "PLAYIDLES"
remove_blip 98@
unload_special_character 1
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:STEAL2_26289
if 
  is_char_dead $cesar
goto_if_false @STEAL2_26330
clear_prints 
print_now 'STE2_07' {time} 4000 {flag} 1
102@ = 1

:STEAL2_26330
if 
  is_car_dead 35@
goto_if_false @STEAL2_26371
clear_prints 
print_now 'STE2_08' {time} 4000 {flag} 1
102@ = 1

:STEAL2_26371
if 
  is_car_dead 34@
goto_if_false @STEAL2_26412
clear_prints 
print_now 'STE2_08' {time} 4000 {flag} 1
102@ = 1

:STEAL2_26412
return 

:STEAL2_26414
if 
  104@ == 1
goto_if_false @STEAL2_26478
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_26478
remove_blip 98@
98@ = add_blip_for_char $cesar
set_blip_as_friendly 98@ {state} True
104@ = 0

:STEAL2_26478
if 
  104@ == 0
goto_if_false @STEAL2_26595
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @STEAL2_26595
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_26563
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:STEAL2_26563
remove_blip 98@
98@ = add_blip_for_coord -1632.9 {y} 1207.4 {z} 6.1
104@ = 1

:STEAL2_26595
return 

:STEAL2_26597
if 
  105@ == 0
goto_if_false @STEAL2_26749
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_26749
clear_this_print 'IN_VEH'
remove_blip 98@
if 
  99@ == 13
goto_if_false @STEAL2_26711
98@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
print 'STE2_05' {time} 4000 {flag} 1
goto @STEAL2_26742

:STEAL2_26711
98@ = add_blip_for_car 34@
set_blip_as_friendly 98@ {state} True
print 'STE2_02' {time} 7000 {flag} 1

:STEAL2_26742
105@ = 1

:STEAL2_26749
if 
  105@ == 1
goto_if_false @STEAL2_26851
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @STEAL2_26851
clear_this_print 'STE2_05'
clear_this_print 'STE2_02'
print 'STE2_11' {time} 7000 {flag} 1
remove_blip 98@
98@ = add_blip_for_car 35@
set_blip_as_friendly 98@ {state} True
105@ = 0

:STEAL2_26851
return 

:STEAL2_26853
162@, 163@, $z = get_char_coordinates $scplayer
164@, 165@, $z = get_car_coordinates 34@
166@ = get_distance_between_coords_2d 162@ {fromY} 163@ {toX} 164@ {toZ} 165@
if 
  21.0 > 166@
goto_if_false @STEAL2_26962
166@ /= 20.0
set_lvar_float_to_lvar_float 167@ = 166@
166@ = 2.0
sub_float_lvar_from_float_lvar 166@ -= 167@
goto @STEAL2_27008

:STEAL2_26962
166@ -= 20.0
166@ /= 90.0
set_lvar_float_to_lvar_float 167@ = 166@
166@ = 1.0
sub_float_lvar_from_float_lvar 166@ -= 167@

:STEAL2_27008
166@ += 0.3
set_lvar_float_to_lvar_float 168@ = 166@
if 
  168@ > 2.0
goto_if_false @STEAL2_27057
168@ = 2.0

:STEAL2_27057
if 
  0.5 > 168@
goto_if_false @STEAL2_27088
168@ = 0.5

:STEAL2_27088
if 
  is_playback_going_on_for_car 34@
goto_if_false @STEAL2_27112
set_playback_speed 34@ {speed} 168@

:STEAL2_27112
if 
  not is_car_dead 95@
goto_if_false @STEAL2_27152
if 
  is_playback_going_on_for_car 95@
goto_if_false @STEAL2_27152
set_playback_speed 95@ {speed} 168@

:STEAL2_27152
if 
  99@ == 1
goto_if_false @STEAL2_27410
if 
  not is_car_dead 38@
goto_if_false @STEAL2_27210
if 
  is_playback_going_on_for_car 38@
goto_if_false @STEAL2_27210
set_playback_speed 38@ {speed} 168@

:STEAL2_27210
if 
  not is_car_dead 39@
goto_if_false @STEAL2_27250
if 
  is_playback_going_on_for_car 39@
goto_if_false @STEAL2_27250
set_playback_speed 39@ {speed} 168@

:STEAL2_27250
if 
  not is_car_dead 40@
goto_if_false @STEAL2_27290
if 
  is_playback_going_on_for_car 40@
goto_if_false @STEAL2_27290
set_playback_speed 40@ {speed} 168@

:STEAL2_27290
if 
  not is_car_dead 41@
goto_if_false @STEAL2_27330
if 
  is_playback_going_on_for_car 41@
goto_if_false @STEAL2_27330
set_playback_speed 41@ {speed} 168@

:STEAL2_27330
if 
  not is_car_dead 42@
goto_if_false @STEAL2_27370
if 
  is_playback_going_on_for_car 42@
goto_if_false @STEAL2_27370
set_playback_speed 42@ {speed} 168@

:STEAL2_27370
if 
  not is_car_dead 43@
goto_if_false @STEAL2_27410
if 
  is_playback_going_on_for_car 43@
goto_if_false @STEAL2_27410
set_playback_speed 43@ {speed} 168@

:STEAL2_27410
if 
  99@ == 4
goto_if_false @STEAL2_27452
if 
  not is_car_dead 51@
goto_if_false @STEAL2_27452
set_playback_speed 51@ {speed} 168@

:STEAL2_27452
if 
  99@ == 5
goto_if_false @STEAL2_27494
if 
  not is_car_dead 38@
goto_if_false @STEAL2_27494
set_playback_speed 38@ {speed} 168@

:STEAL2_27494
if 
  99@ == 6
goto_if_false @STEAL2_27584
if 
  not is_car_dead 50@
goto_if_false @STEAL2_27536
set_playback_speed 50@ {speed} 168@

:STEAL2_27536
if 
  not is_car_dead 52@
goto_if_false @STEAL2_27560
set_playback_speed 52@ {speed} 168@

:STEAL2_27560
if 
  not is_car_dead 53@
goto_if_false @STEAL2_27584
set_playback_speed 53@ {speed} 168@

:STEAL2_27584
if 
  99@ == 7
goto_if_false @STEAL2_27626
if 
  not is_car_dead 39@
goto_if_false @STEAL2_27626
set_playback_speed 39@ {speed} 168@

:STEAL2_27626
if 
  99@ == 8
goto_if_false @STEAL2_27692
if 
  not is_car_dead 43@
goto_if_false @STEAL2_27668
set_playback_speed 43@ {speed} 168@

:STEAL2_27668
if 
  not is_car_dead 44@
goto_if_false @STEAL2_27692
set_playback_speed 44@ {speed} 168@

:STEAL2_27692
return 

:STEAL2_27694
111@ = generate_random_int_in_range 1 {max} 37
if 
  111@ == 1
goto_if_false @STEAL2_27736
custom_plate_for_next_car 110@ {text} "GOT_M00_"

:STEAL2_27736
if 
  111@ == 2
goto_if_false @STEAL2_27769
custom_plate_for_next_car 110@ {text} "M00TV_4U"

:STEAL2_27769
if 
  111@ == 3
goto_if_false @STEAL2_27802
custom_plate_for_next_car 110@ {text} "MATHEW_2"

:STEAL2_27802
if 
  111@ == 4
goto_if_false @STEAL2_27835
custom_plate_for_next_car 110@ {text} "D4_DEW0R"

:STEAL2_27835
if 
  111@ == 5
goto_if_false @STEAL2_27868
custom_plate_for_next_car 110@ {text} "D0DE_777"

:STEAL2_27868
if 
  111@ == 6
goto_if_false @STEAL2_27901
custom_plate_for_next_car 110@ {text} "DAM0_666"

:STEAL2_27901
if 
  111@ == 7
goto_if_false @STEAL2_27934
custom_plate_for_next_car 110@ {text} "C0NEY_88"

:STEAL2_27934
if 
  111@ == 8
goto_if_false @STEAL2_27967
custom_plate_for_next_car 110@ {text} "PRE4CHER"

:STEAL2_27967
if 
  111@ == 9
goto_if_false @STEAL2_28000
custom_plate_for_next_car 110@ {text} "DBP_4NDY"

:STEAL2_28000
if 
  111@ == 10
goto_if_false @STEAL2_28033
custom_plate_for_next_car 110@ {text} "EV1L_SLY"

:STEAL2_28033
if 
  111@ == 11
goto_if_false @STEAL2_28066
custom_plate_for_next_car 110@ {text} "N1_R4V3N"

:STEAL2_28066
if 
  111@ == 12
goto_if_false @STEAL2_28099
custom_plate_for_next_car 110@ {text} "D1VX_Z00"

:STEAL2_28099
if 
  111@ == 13
goto_if_false @STEAL2_28131
custom_plate_for_next_car 110@ {text} "MR_B3NN"

:STEAL2_28131
if 
  111@ == 14
goto_if_false @STEAL2_28164
custom_plate_for_next_car 110@ {text} "R3D_R4SP"

:STEAL2_28164
if 
  111@ == 15
goto_if_false @STEAL2_28197
custom_plate_for_next_car 110@ {text} "LA_B0MBA"

:STEAL2_28197
if 
  111@ == 16
goto_if_false @STEAL2_28230
custom_plate_for_next_car 110@ {text} "L3337_0G"

:STEAL2_28230
if 
  111@ == 17
goto_if_false @STEAL2_28263
custom_plate_for_next_car 110@ {text} "BUDD4H_X"

:STEAL2_28263
if 
  111@ == 18
goto_if_false @STEAL2_28296
custom_plate_for_next_car 110@ {text} "T3H_BUCK"

:STEAL2_28296
if 
  111@ == 19
goto_if_false @STEAL2_28329
custom_plate_for_next_car 110@ {text} "CHUNKY_1"

:STEAL2_28329
if 
  111@ == 20
goto_if_false @STEAL2_28362
custom_plate_for_next_car 110@ {text} "EV1L_BNZ"

:STEAL2_28362
if 
  111@ == 21
goto_if_false @STEAL2_28395
custom_plate_for_next_car 110@ {text} "S4ND_M4N"

:STEAL2_28395
if 
  111@ == 22
goto_if_false @STEAL2_28428
custom_plate_for_next_car 110@ {text} "RKK_DBP1"

:STEAL2_28428
if 
  111@ == 23
goto_if_false @STEAL2_28461
custom_plate_for_next_car 110@ {text} "RE1_K0KU"

:STEAL2_28461
if 
  111@ == 24
goto_if_false @STEAL2_28494
custom_plate_for_next_car 110@ {text} "S3XY_JUD"

:STEAL2_28494
if 
  111@ == 25
goto_if_false @STEAL2_28527
custom_plate_for_next_car 110@ {text} "SUNRA_93"

:STEAL2_28527
if 
  111@ == 26
goto_if_false @STEAL2_28560
custom_plate_for_next_car 110@ {text} "UG_FUX69"

:STEAL2_28560
if 
  111@ == 27
goto_if_false @STEAL2_28593
custom_plate_for_next_car 110@ {text} "LI0N_CUM"

:STEAL2_28593
if 
  111@ == 28
goto_if_false @STEAL2_28626
custom_plate_for_next_car 110@ {text} "RKK_PWND"

:STEAL2_28626
if 
  111@ == 29
goto_if_false @STEAL2_28659
custom_plate_for_next_car 110@ {text} "HAZE_B0B"

:STEAL2_28659
if 
  111@ == 30
goto_if_false @STEAL2_28692
custom_plate_for_next_car 110@ {text} "T3H_FLUF"

:STEAL2_28692
if 
  111@ == 31
goto_if_false @STEAL2_28725
custom_plate_for_next_car 110@ {text} "BM_4NDY_"

:STEAL2_28725
if 
  111@ == 32
goto_if_false @STEAL2_28758
custom_plate_for_next_car 110@ {text} "BM_D34N_"

:STEAL2_28758
if 
  111@ == 33
goto_if_false @STEAL2_28791
custom_plate_for_next_car 110@ {text} "BM_L4C3Y"

:STEAL2_28791
if 
  111@ == 34
goto_if_false @STEAL2_28824
custom_plate_for_next_car 110@ {text} "BM_D3V__"

:STEAL2_28824
if 
  111@ == 35
goto_if_false @STEAL2_28857
custom_plate_for_next_car 110@ {text} "NU_SK00L"

:STEAL2_28857
if 
  111@ == 36
goto_if_false @STEAL2_28890
custom_plate_for_next_car 110@ {text} "G4L_AVET"

:STEAL2_28890
if 
  111@ == 37
goto_if_false @STEAL2_28923
custom_plate_for_next_car 110@ {text} "M0J0_J0J"

:STEAL2_28923
return 

:STEAL2_28925
if 
  112@ == 1
goto_if_false @STEAL2_29051
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29044
gosub @STEAL2_32124
gosub @STEAL2_32231
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29006
gosub @STEAL2_32385
goto @STEAL2_29037

:STEAL2_29006
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29037
goto @STEAL2_29051

:STEAL2_29044
112@ = 0

:STEAL2_29051
if or
  112@ == 4
  112@ == 5
  112@ == 6
goto_if_false @STEAL2_29137
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29130
gosub @STEAL2_32124
gosub @STEAL2_32231
gosub @STEAL2_32385
goto @STEAL2_29137

:STEAL2_29130
112@ = 0

:STEAL2_29137
if or
  112@ == 7
  112@ == 8
  112@ == 9
  112@ == 10
  112@ == 11
  112@ == 12
goto_if_false @STEAL2_29298
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29291
gosub @STEAL2_32124
gosub @STEAL2_32231
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29253
gosub @STEAL2_32385
goto @STEAL2_29284

:STEAL2_29253
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29284
goto @STEAL2_29298

:STEAL2_29291
112@ = 0

:STEAL2_29298
if 
  99@ == 0
goto_if_false @STEAL2_30235
if 
  100@ == 0
goto_if_false @STEAL2_30235
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_29704
if 
  locate_char_any_means_char_3d $cesar {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @STEAL2_29697
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @STEAL2_29543
if or
  112@ == 2
  112@ == 3
goto_if_false @STEAL2_29543
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29536
gosub @STEAL2_32124
gosub @STEAL2_32231
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29498
gosub @STEAL2_32385
goto @STEAL2_29529

:STEAL2_29498
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29529
goto @STEAL2_29543

:STEAL2_29536
112@ = 0

:STEAL2_29543
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @STEAL2_29697
if or
  112@ == 2
  112@ == 3
goto_if_false @STEAL2_29697
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29690
gosub @STEAL2_32124
gosub @STEAL2_32231
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29652
gosub @STEAL2_32385
goto @STEAL2_29683

:STEAL2_29652
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29683
goto @STEAL2_29697

:STEAL2_29690
112@ = 0

:STEAL2_29697
goto @STEAL2_29821

:STEAL2_29704
if 
  14 > 112@
goto_if_false @STEAL2_29821
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29748
113@ += 1

:STEAL2_29748
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
clear_prints 
set_lvar_int_to_lvar_int 160@ = 112@
set_lvar_int_to_lvar_int 161@ = 113@
112@ = 14
113@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237

:STEAL2_29821
if 
  112@ == 14
goto_if_false @STEAL2_30012
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_29989
if 
  is_int_lvar_greater_than_int_lvar 154@ > 113@
goto_if_false @STEAL2_29959
gosub @STEAL2_32124
gosub @STEAL2_32231
if 
  not is_char_dead $cesar
goto_if_false @STEAL2_29921
gosub @STEAL2_32385
goto @STEAL2_29952

:STEAL2_29921
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
155@ = 0
156@ = 0

:STEAL2_29952
goto @STEAL2_29982

:STEAL2_29959
print 'STE2_10' {time} 7000 {flag} 1
112@ = 15

:STEAL2_29982
goto @STEAL2_30012

:STEAL2_29989
print 'STE2_10' {time} 7000 {flag} 1
112@ = 15

:STEAL2_30012
if 
  112@ == 15
goto_if_false @STEAL2_30065
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_30065
112@ = 16
113@ = 0
clear_prints 

:STEAL2_30065
if 
  112@ == 16
goto_if_false @STEAL2_30235
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @STEAL2_30180
TIMERB = 0
set_lvar_int_to_lvar_int 112@ = 160@
set_lvar_int_to_lvar_int 113@ = 161@
gosub @STEAL2_30237
if 
  160@ == 0
goto_if_false @STEAL2_30173
print 'STE2_01' {time} 7000 {flag} 1
TIMERB = 0

:STEAL2_30173
goto @STEAL2_30235

:STEAL2_30180
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 115@(113@,13s)
112@ = 14
113@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 159@ = 113@
159@ += 1
gosub @STEAL2_30237

:STEAL2_30235
return 

:STEAL2_30237
if 
  112@ == 1
goto_if_false @STEAL2_30286
set_lvar_text_label 115@s = 'STL2_AA'
set_lvar_int_to_constant 141@ = 36800
154@ = 1

:STEAL2_30286
if 
  112@ == 2
goto_if_false @STEAL2_30599
set_lvar_text_label 115@s = 'STL2_BA'
set_lvar_text_label 117@s = 'STL2_BB'
set_lvar_text_label 119@s = 'STL2_BC'
set_lvar_text_label 121@s = 'STL2_BD'
set_lvar_text_label 123@s = 'STL2_BE'
set_lvar_text_label 125@s = 'STL2_BF'
set_lvar_text_label 127@s = 'STL2_BG'
set_lvar_text_label 129@s = 'STL2_BH'
set_lvar_text_label 131@s = 'STL2_BJ'
set_lvar_text_label 133@s = 'STL2_BK'
set_lvar_text_label 135@s = 'STL2_BL'
set_lvar_text_label 137@s = 'STL2_BM'
set_lvar_int_to_constant 141@ = 36801
set_lvar_int_to_constant 142@ = 36802
set_lvar_int_to_constant 143@ = 36803
set_lvar_int_to_constant 144@ = 36804
set_lvar_int_to_constant 145@ = 36805
set_lvar_int_to_constant 146@ = 36806
set_lvar_int_to_constant 147@ = 36807
set_lvar_int_to_constant 148@ = 36808
set_lvar_int_to_constant 149@ = 36809
set_lvar_int_to_constant 150@ = 36810
set_lvar_int_to_constant 151@ = 36811
set_lvar_int_to_constant 152@ = 36812
154@ = 12

:STEAL2_30599
if 
  112@ == 3
goto_if_false @STEAL2_30792
set_lvar_text_label 115@s = 'STL2_CA'
set_lvar_text_label 117@s = 'STL2_CB'
set_lvar_text_label 119@s = 'STL2_CC'
set_lvar_text_label 121@s = 'STL2_CD'
set_lvar_text_label 123@s = 'STL2_CE'
set_lvar_text_label 125@s = 'STL2_CF'
set_lvar_text_label 127@s = 'STL2_CG'
set_lvar_int_to_constant 141@ = 36813
set_lvar_int_to_constant 142@ = 36814
set_lvar_int_to_constant 143@ = 36815
set_lvar_int_to_constant 144@ = 36816
set_lvar_int_to_constant 145@ = 36817
set_lvar_int_to_constant 146@ = 36818
set_lvar_int_to_constant 147@ = 36819
154@ = 7

:STEAL2_30792
if 
  112@ == 4
goto_if_false @STEAL2_31034
set_lvar_text_label 115@s = 'STL2_DA'
set_lvar_text_label 117@s = 'STL2_DB'
set_lvar_text_label 119@s = 'STL2_DC'
set_lvar_text_label 121@s = 'STL2_DD'
set_lvar_text_label 123@s = 'STL2_DE'
set_lvar_text_label 125@s = 'STL2_DF'
set_lvar_text_label 127@s = 'STL2_DH'
set_lvar_text_label 129@s = 'STL2_DJ'
set_lvar_text_label 131@s = 'STL2_DK'
set_lvar_int_to_constant 141@ = 36820
set_lvar_int_to_constant 142@ = 36821
set_lvar_int_to_constant 143@ = 36822
set_lvar_int_to_constant 144@ = 36823
set_lvar_int_to_constant 145@ = 36824
set_lvar_int_to_constant 146@ = 36825
set_lvar_int_to_constant 147@ = 36826
set_lvar_int_to_constant 148@ = 36827
set_lvar_int_to_constant 149@ = 36828
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_31034
if 
  112@ == 5
goto_if_false @STEAL2_31179
set_lvar_text_label 115@s = 'STL2_EA'
set_lvar_text_label 117@s = 'STL2_EB'
set_lvar_text_label 119@s = 'STL2_EC'
set_lvar_text_label 121@s = 'STL2_ED'
set_lvar_text_label 123@s = 'STL2_EE'
set_lvar_int_to_constant 141@ = 36829
set_lvar_int_to_constant 142@ = 36830
set_lvar_int_to_constant 143@ = 36831
set_lvar_int_to_constant 144@ = 36832
set_lvar_int_to_constant 145@ = 36833
154@ = 5

:STEAL2_31179
if 
  112@ == 6
goto_if_false @STEAL2_31228
set_lvar_text_label 115@s = 'STL2_EF'
set_lvar_int_to_constant 141@ = 36834
154@ = 1

:STEAL2_31228
if 
  112@ == 7
goto_if_false @STEAL2_31325
set_lvar_text_label 115@s = 'STL2_FA'
set_lvar_text_label 117@s = 'STL2_FB'
set_lvar_text_label 119@s = 'STL2_FC'
set_lvar_int_to_constant 141@ = 36835
set_lvar_int_to_constant 142@ = 36836
set_lvar_int_to_constant 143@ = 36837
154@ = 3

:STEAL2_31325
if 
  112@ == 8
goto_if_false @STEAL2_31615
set_lvar_text_label 115@s = 'STL2_FD'
set_lvar_text_label 117@s = 'STL2_FE'
set_lvar_text_label 119@s = 'STL2_FF'
set_lvar_text_label 121@s = 'STL2_FG'
set_lvar_text_label 123@s = 'STL2_FH'
set_lvar_text_label 125@s = 'STL2_FJ'
set_lvar_text_label 129@s = 'STL2_FO'
set_lvar_text_label 131@s = 'STL2_FP'
set_lvar_text_label 133@s = 'STL2_FQ'
set_lvar_text_label 135@s = 'STL2_HB'
set_lvar_text_label 137@s = 'STL2_HC'
set_lvar_int_to_constant 141@ = 36838
set_lvar_int_to_constant 142@ = 36839
set_lvar_int_to_constant 143@ = 36840
set_lvar_int_to_constant 144@ = 36841
set_lvar_int_to_constant 145@ = 36842
set_lvar_int_to_constant 146@ = 36843
set_lvar_int_to_constant 148@ = 36848
set_lvar_int_to_constant 149@ = 36849
set_lvar_int_to_constant 150@ = 36850
set_lvar_int_to_constant 151@ = 36855
set_lvar_int_to_constant 152@ = 36856
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_31615
if 
  112@ == 9
goto_if_false @STEAL2_31712
set_lvar_text_label 115@s = 'STL2_FL'
set_lvar_text_label 117@s = 'STL2_FM'
set_lvar_text_label 119@s = 'STL2_FN'
set_lvar_int_to_constant 141@ = 36845
set_lvar_int_to_constant 142@ = 36846
set_lvar_int_to_constant 143@ = 36847
154@ = 3

:STEAL2_31712
if 
  112@ == 10
goto_if_false @STEAL2_31833
set_lvar_text_label 115@s = 'STL2_FR'
set_lvar_text_label 117@s = 'STL2_GA'
set_lvar_text_label 119@s = 'STL2_GB'
set_lvar_text_label 121@s = 'STL2_HA'
set_lvar_int_to_constant 141@ = 36851
set_lvar_int_to_constant 142@ = 36852
set_lvar_int_to_constant 143@ = 36853
set_lvar_int_to_constant 144@ = 36854
154@ = 4

:STEAL2_31833
if 
  112@ == 11
goto_if_false @STEAL2_31906
set_lvar_text_label 115@s = 'STL2_HD'
set_lvar_text_label 117@s = 'STL2_HE'
set_lvar_int_to_constant 141@ = 36857
set_lvar_int_to_constant 142@ = 36858
154@ = 2

:STEAL2_31906
if 
  112@ == 12
goto_if_false @STEAL2_31979
set_lvar_text_label 115@s = 'STL2_HF'
set_lvar_text_label 117@s = 'STL2_HG'
set_lvar_int_to_constant 141@ = 36859
set_lvar_int_to_constant 142@ = 36860
154@ = 2

:STEAL2_31979
if 
  112@ == 14
goto_if_false @STEAL2_32093
set_lvar_text_label 115@s = 'CESX_BA'
set_lvar_text_label 117@s = 'CESX_BB'
set_lvar_text_label 119@s = 'CESX_BC'
set_lvar_text_label 121@s = 'CESX_BD'
set_lvar_int_to_constant 141@ = 10406
set_lvar_int_to_constant 142@ = 10407
set_lvar_int_to_constant 143@ = 10408
set_lvar_int_to_constant 144@ = 10409
set_lvar_int_to_lvar_int 154@ = 159@

:STEAL2_32093
set_lvar_int_to_lvar_int 157@ = 113@
155@ = 0
156@ = 0
158@ = 1
return 

:STEAL2_32124
if 
  is_int_lvar_greater_than_int_lvar 154@ > 157@
goto_if_false @STEAL2_32229
if 
  155@ == 0
goto_if_false @STEAL2_32186
load_mission_audio MissionAudioSlot.Slot1 {audioId} 141@(157@,13i)
157@ += 1
155@ = 1

:STEAL2_32186
if 
  156@ == 0
goto_if_false @STEAL2_32229
load_mission_audio MissionAudioSlot.Slot2 {audioId} 141@(157@,13i)
157@ += 1
156@ = 1

:STEAL2_32229
return 

:STEAL2_32231
if 
  158@ == 1
goto_if_false @STEAL2_32307
if 
  155@ == 1
goto_if_false @STEAL2_32307
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL2_32307
play_mission_audio MissionAudioSlot.Slot1
print_now 115@(113@,13s) {time} 4500 {flag} 1
155@ = 2

:STEAL2_32307
if 
  158@ == 2
goto_if_false @STEAL2_32383
if 
  156@ == 1
goto_if_false @STEAL2_32383
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @STEAL2_32383
play_mission_audio MissionAudioSlot.Slot2
print_now 115@(113@,13s) {time} 4500 {flag} 1
156@ = 2

:STEAL2_32383
return 

:STEAL2_32385
if 
  155@ == 2
goto_if_false @STEAL2_32448
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL2_32448
clear_this_print 115@(113@,13s)
113@ += 1
158@ = 2
155@ = 0

:STEAL2_32448
if 
  156@ == 2
goto_if_false @STEAL2_32511
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @STEAL2_32511
clear_this_print 115@(113@,13s)
113@ += 1
158@ = 1
156@ = 0

:STEAL2_32511
return 

//-------------Mission 69---------------
// Originally: Customs Fast Track

:STEAL4
script_name 'STEAL4'
gosub @STEAL4_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL4_38
gosub @STEAL4_29969

:STEAL4_38
gosub @STEAL4_30816
terminate_this_script 

:STEAL4_47
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0

:STEAL4_89
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @STEAL4_115
36@ = 1

:STEAL4_115
39@ += 1
if 
  39@ > 9
goto_if_false @STEAL4_147
39@ = 0

:STEAL4_147
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 60@ += 42@
add_int_lvar_to_int_lvar 61@ += 42@
add_int_lvar_to_int_lvar 62@ += 42@
add_int_lvar_to_int_lvar 63@ += 42@
add_int_lvar_to_int_lvar 64@ += 42@
gosub @STEAL4_700
if 
  67@ == 1
goto_if_false @STEAL4_248
goto @STEAL4_598

:STEAL4_248
if 
is_ps2_keyboard_key_just_pressed 138
goto_if_false @STEAL4_302
34@ = 10
35@ = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL4_302
86@ = store_car_char_is_in $scplayer

:STEAL4_302
switch_start 34@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @STEAL4_584 {caseNum1} 0 {caseLabel1} @STEAL4_430 {caseNum2} 1 {caseLabel2} @STEAL4_444 {caseNum3} 2 {caseLabel3} @STEAL4_458 {caseNum4} 3 {caseLabel4} @STEAL4_472 {caseNum5} 4 {caseLabel5} @STEAL4_486 {caseNum6} 5 {caseLabel6} @STEAL4_500 {caseNum7} 6 {caseLabel7} @STEAL4_514
switch_continued 7 {caseLabel1} @STEAL4_528 {caseNum2} 8 {caseLabel2} @STEAL4_542 {caseNum3} 9 {caseLabel3} @STEAL4_556 {caseNum4} 10 {caseLabel4} @STEAL4_570 {caseNum5} -1 {caseLabel5} @STEAL4_584 {caseNum6} -1 {caseLabel6} @STEAL4_584 {caseNum7} -1 {caseLabel7} @STEAL4_584 {caseNum8} -1 {caseLabel8} @STEAL4_584 {caseNum9} -1 {caseLabel9} @STEAL4_584

:STEAL4_430
gosub @STEAL4_1358
goto @STEAL4_584

:STEAL4_444
gosub @STEAL4_2503
goto @STEAL4_584

:STEAL4_458
gosub @STEAL4_3836
goto @STEAL4_584

:STEAL4_472
gosub @STEAL4_5024
goto @STEAL4_584

:STEAL4_486
gosub @STEAL4_7747
goto @STEAL4_584

:STEAL4_500
gosub @STEAL4_10598
goto @STEAL4_584

:STEAL4_514
gosub @STEAL4_12659
goto @STEAL4_584

:STEAL4_528
gosub @STEAL4_14739
goto @STEAL4_584

:STEAL4_542
gosub @STEAL4_19626
goto @STEAL4_584

:STEAL4_556
gosub @STEAL4_19628
goto @STEAL4_584

:STEAL4_570
gosub @STEAL4_22092
goto @STEAL4_584

:STEAL4_584
gosub @STEAL4_31331
gosub @STEAL4_25745

:STEAL4_598
if 
  38@ == 0
goto_if_false @STEAL4_698
if 
  37@ == 0
goto_if_false @STEAL4_682
if 
  36@ == 0
goto_if_false @STEAL4_666
goto @STEAL4_89
goto @STEAL4_675

:STEAL4_666
gosub @STEAL4_30732
return 

:STEAL4_675
goto @STEAL4_691

:STEAL4_682
gosub @STEAL4_29969
return 

:STEAL4_691
goto @STEAL4_700

:STEAL4_698
return 

:STEAL4_700
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @STEAL4_791
if 
  65@ == 0
goto_if_false @STEAL4_765
65@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @STEAL4_791

:STEAL4_765
65@ = 0
write_debug "LEVEL_DEBUG_OFF"

:STEAL4_791
if 
  65@ == 1
goto_if_false @STEAL4_1356
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @STEAL4_858
clear_all_view_variables 
66@ += 1
if 
  66@ > 2
goto_if_false @STEAL4_858
66@ = 0

:STEAL4_858
if 
  66@ == 1
goto_if_false @STEAL4_1110
set_var_int_to_lvar_int $STEAL4_view_debug = 34@
set_var_int_to_lvar_int $7407 = 35@
set_var_int_to_lvar_int $7408 = 124@
set_var_int_to_lvar_int $7409 = 155@
set_var_int_to_lvar_int $7410 = 153@
set_var_int_to_lvar_int $7411 = 154@
set_var_int_to_lvar_int $7412 = 132@
set_var_int_to_lvar_int $7413 = 61@
view_integer_variable $STEAL4_view_debug {_p2} "M_STAGE"
view_integer_variable $7407 {_p2} "M_GOALS"
view_integer_variable $7408 {_p2} "PLAYER_ON_FOOT"
view_integer_variable $7409 {_p2} "CONVERSATION_FLAG"
view_integer_variable $7410 {_p2} "ACTIVE_CONVERSATION"
view_integer_variable $7411 {_p2} "CONVERSATION_STATUS"
view_integer_variable $7412 {_p2} "CRANE_HELP_FLAG"
view_integer_variable $7413 {_p2} "CRANE_HELP_TIMER"

:STEAL4_1110
if 
  66@ == 2
goto_if_false @STEAL4_1253
view_float_variable $magno_arm_rotate_y {_p2} "MAGNO_ARM_ROTATE_Y"
view_float_variable $magno_cabin_h {_p2} "MAGNO_CABIN_H"
view_float_variable $magno_arm_h {_p2} "MAGNO_ARM_H"
view_float_variable $magno_base_x {_p2} "MAGNO_BASE_X"
view_float_variable $magno_base_y {_p2} "MAGNO_BASE_Y"
view_float_variable $crane_rope_length {_p2} "CRANE_ROPE_LENGTH"

:STEAL4_1253
if 
  67@ == 0
goto_if_false @STEAL4_1316
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @STEAL4_1309
write_debug "LEVEL_PAUSED"
67@ = 1

:STEAL4_1309
goto @STEAL4_1356

:STEAL4_1316
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @STEAL4_1356
write_debug "LEVEL_UNPAUSED"
67@ = 0

:STEAL4_1356
return 

:STEAL4_1358
if 
  35@ == -1
goto_if_false @STEAL4_1608
83@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
107@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
104@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
118@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
109@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
119@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
105@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
118@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
106@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
108@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:STEAL4_1608
if 
  35@ == 0
goto_if_false @STEAL4_2439
$buddy_health = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
139@ = 0
140@ = 0
135@ = 0
136@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:STEAL4_1787
if 
  get_fading_status 
goto_if_false @STEAL4_1811
wait 0
goto @STEAL4_1787

:STEAL4_1811
load_mission_text 'STEAL4'
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'STEAL_4'

:STEAL4_1861
if 
  not has_cutscene_loaded 
goto_if_false @STEAL4_1885
wait 0
goto @STEAL4_1861

:STEAL4_1885
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL4_1894
if 
  not has_cutscene_finished 
goto_if_false @STEAL4_1918
wait 0
goto @STEAL4_1894

:STEAL4_1918
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:STEAL4_1933
if 
  get_fading_status 
goto_if_false @STEAL4_1957
wait 0
goto @STEAL4_1933

:STEAL4_1957
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
clear_area -2036.17 {y} 179.2839 {z} 27.8359 {radius} 10.0 {clearParticles} True
load_special_character 1 {modelName} 'CESAR'
request_model 567

:STEAL4_2010
if or
  not has_special_character_loaded 1
  not has_model_loaded 567
goto_if_false @STEAL4_2041
wait 0
goto @STEAL4_2010

:STEAL4_2041
custom_plate_for_next_car 567 {text} "LVA4L"
82@ = create_car 567 {x} -2034.7061 {y} 177.7413 {z} 27.8359
change_car_colour 82@ {color1} 3 {color2} 3
set_car_heading 82@ {heading} 244.5958
mark_model_as_no_longer_needed 567
68@ = create_char_as_passenger 82@ {pedType} PedType.Mission2 {modelId} 290 {seat} SeatId.BikeRear
set_char_never_targetted 68@ {state} True
set_char_drowns_in_water 68@ {state} False
set_char_health 68@ {health} 400
set_char_max_health 68@ {maxHealth} 400
set_char_cant_be_dragged_out 68@ {state} True
set_char_suffers_critical_hits 68@ {state} False
set_char_coordinates $scplayer {x} -2035.53 {y} 180.7482 {z} 27.8359
set_char_heading $scplayer {heading} 209.6339
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_random_trains False
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_player_group_to_follow_always $player1 {state} True
171@ = load_char_decision_maker DecisionMakerType.Tough
168@ = load_char_decision_maker DecisionMakerType.Empty
172@ = load_char_decision_maker DecisionMakerType.Empty
if 
  does_object_exist $magno_base
goto_if_false @STEAL4_2273
$magno_base_x, $magno_base_y, $magno_base_z = get_object_coordinates $magno_base

:STEAL4_2273
$magno_arm_rotate_y = 15.0
$magno_cabin_h = 207.615
$magno_arm_h = 207.615
$magno_base_x = -1586.7
$magno_base_y = 84.7958
$crane_rope_length = 0.639
gosub @STEAL4_28749
43@ = 0

:STEAL4_2347
if 
  10 > 43@
goto_if_false @STEAL4_2390
141@(43@,10i) = 0
43@ += 1
goto @STEAL4_2347

:STEAL4_2390
switch_widescreen False
set_wanted_multiplier 0.001
do_fade 1000 {direction} Fade.In

:STEAL4_2408
if 
  get_fading_status 
goto_if_false @STEAL4_2432
wait 0
goto @STEAL4_2408

:STEAL4_2432
35@ += 1

:STEAL4_2439
if 
  35@ == 1
goto_if_false @STEAL4_2501
print_now 'ST4_05' {time} 5000 {flag} 1
TIMERA = 0
34@ += 1
35@ = 0
56@ = 0

:STEAL4_2501
return 

:STEAL4_2503
if 
  35@ == 0
goto_if_false @STEAL4_2774
$disable_crane = 1
92@ = create_object_no_offset #KMB_CONTAINER_BLUE {x} -1570.986 {y} 55.2009 {z} 17.746
set_object_heading 92@ {heading} 40.4082
93@ = create_object_no_offset #KMB_CONTAINER_BLUE {x} -1564.401 {y} 62.1434 {z} 17.7537
set_object_heading 93@ {heading} 235.0724
94@ = create_object_no_offset #KMB_CONTAINER_BLUE {x} -1582.202 {y} 54.1735 {z} 17.7537
set_object_heading 94@ {heading} 0.0
96@ = create_object_no_offset #KMB_CONTAINER_RED {x} -1658.85 {y} 44.8514 {z} 4.06
set_object_heading 96@ {heading} 315.2922
95@ = create_object_no_offset #KMB_CONTAINER_YEL {x} -1649.476 {y} 9.1182 {z} 4.06
set_object_heading 95@ {heading} 315.1249
43@ = 0

:STEAL4_2700
if 
  4 > 43@
goto_if_false @STEAL4_2763
if 
  does_object_exist 92@(43@,9i)
goto_if_false @STEAL4_2749
freeze_object_position 92@(43@,9i) {state} True

:STEAL4_2749
43@ += 1
goto @STEAL4_2700

:STEAL4_2763
set_radio_channel RadioChannel.PlaybackFM
35@ += 1

:STEAL4_2774
if 
  35@ == 1
goto_if_false @STEAL4_2923
if 
  56@ == 0
goto_if_false @STEAL4_2843
if 
  TIMERA > 6000
goto_if_false @STEAL4_2843
153@ = 1
56@ = 1

:STEAL4_2843
if 
  not is_car_dead 82@
goto_if_false @STEAL4_2923
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_2923
if 
  not is_char_dead 68@
goto_if_false @STEAL4_2916
set_group_member $Players_Group {handle} 68@
set_char_drowns_in_water 68@ {state} False
126@ = 1

:STEAL4_2916
35@ += 1

:STEAL4_2923
if 
  35@ == 2
goto_if_false @STEAL4_3072
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3072
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3072
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3072
if 
  153@ == 0
goto_if_false @STEAL4_3072
35@ += 1
remove_blip 108@
108@ = add_blip_for_coord -1585.63 {y} 90.3697 {z} 2.7752
print_now 'ST4_43' {time} 7000 {flag} 1
56@ = 0
TIMERA = 0

:STEAL4_3072
if 
  35@ > 2
goto_if_false @STEAL4_3141
if 
  56@ == 0
goto_if_false @STEAL4_3141
if 
  TIMERA > 8000
goto_if_false @STEAL4_3141
153@ = 2
56@ = 1

:STEAL4_3141
if 
  35@ == 3
goto_if_false @STEAL4_3498
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3274
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3274
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3274
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3274
if 
  locate_car_2d 82@ {x} -1585.63 {y} 90.3697 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @STEAL4_3274
35@ = 99

:STEAL4_3274
if 
  65@ == 1
goto_if_false @STEAL4_3399
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @STEAL4_3399
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3399
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3399
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3399
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3399
set_car_coordinates 82@ {x} -1585.63 {y} 90.3 {z} 5.0

:STEAL4_3399
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3498
if 
  locate_char_on_foot_2d 68@ {x} -1585.63 {y} 90.3697 {xRadius} 70.0 {yRadius} 70.0 {drawSphere} False
goto_if_false @STEAL4_3498
if 
  locate_char_on_foot_2d $scplayer {x} -1585.63 {y} 90.3697 {xRadius} 70.0 {yRadius} 70.0 {drawSphere} False
goto_if_false @STEAL4_3498
35@ = 99

:STEAL4_3498
if 
  35@ == 99
goto_if_false @STEAL4_3530
35@ = 0
34@ += 1

:STEAL4_3530
if 
  not is_char_dead 68@
goto_if_false @STEAL4_3729
if 
  not is_car_dead 82@
goto_if_false @STEAL4_3729
if 
  is_char_in_car 68@ {vehicle} 82@
goto_if_false @STEAL4_3678
if 
  not is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3639
if 
  133@ <> 1
goto_if_false @STEAL4_3632
133@ = 1
gosub @STEAL4_29801

:STEAL4_3632
goto @STEAL4_3671

:STEAL4_3639
if 
  133@ <> 0
goto_if_false @STEAL4_3671
133@ = 0
gosub @STEAL4_29801

:STEAL4_3671
goto @STEAL4_3729

:STEAL4_3678
if 
  not is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_3729
if 
  133@ <> 1
goto_if_false @STEAL4_3729
133@ = 1
gosub @STEAL4_29801

:STEAL4_3729
gosub @STEAL4_28047
if 
  126@ <> 1
goto_if_false @STEAL4_3782
if 
  does_blip_exist 108@
goto_if_false @STEAL4_3775
remove_blip 108@

:STEAL4_3775
goto @STEAL4_3834

:STEAL4_3782
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_3834
108@ = add_blip_for_coord -1585.63 {y} 90.3697 {z} 2.7752
print_now 'ST4_43' {time} 7000 {flag} 1

:STEAL4_3834
return 

:STEAL4_3836
if 
  35@ == 0
goto_if_false @STEAL4_3900
clear_prints 
print_now 'ST4_13' {time} 5000 {flag} 1
$disable_crane = 0
56@ = 0
TIMERA = 0
35@ += 1

:STEAL4_3900
if 
  35@ == 1
goto_if_false @STEAL4_4434
138@ = 0
if 
  56@ == 0
goto_if_false @STEAL4_3976
if 
  TIMERA > 5500
goto_if_false @STEAL4_3976
153@ = 3
56@ += 1

:STEAL4_3976
if 
  126@ <> 1
goto_if_false @STEAL4_4029
if 
  does_blip_exist 108@
goto_if_false @STEAL4_4022
remove_blip 108@
$disable_crane = 1

:STEAL4_4022
goto @STEAL4_4088

:STEAL4_4029
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_4088
108@ = add_blip_for_coord -1585.63 {y} 90.3697 {z} 2.7752
print_now 'ST4_13' {time} 7000 {flag} 1
$disable_crane = 0

:STEAL4_4088
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_4427
$disable_crane_exit = 1
$disable_crane_slide = 1
remove_blip 108@
60@ = 30000
61@ = 8000
if 
  not is_char_dead 68@
goto_if_false @STEAL4_4212
remove_char_from_group 68@
clear_char_tasks_immediately 68@
set_char_decision_maker 68@ {handleOrTemplate} 168@
set_char_coordinates 68@ {x} -1627.8311 {y} 63.8863 {z} 2.9167
set_char_heading 68@ {heading} 299.601
set_char_drowns_in_water 68@ {state} False

:STEAL4_4212
156@ = -1620.938
157@ = 75.4195
158@ = 4.1
159@ = 20.7795
160@ = -1632.786
161@ = 61.2888
162@ = 4.1
163@ = 6.6851
164@ = -1644.017
165@ = 50.9619
166@ = 4.1
167@ = 39.4583
clear_help 
clear_prints 
43@ = 0

:STEAL4_4343
if 
  4 > 43@
goto_if_false @STEAL4_4406
if 
  does_object_exist 92@(43@,9i)
goto_if_false @STEAL4_4392
freeze_object_position 92@(43@,9i) {state} False

:STEAL4_4392
43@ += 1
goto @STEAL4_4343

:STEAL4_4406
gosub @STEAL4_28047
35@ += 1
goto @STEAL4_4434

:STEAL4_4427
gosub @STEAL4_28047

:STEAL4_4434
if 
  35@ == 2
goto_if_false @STEAL4_4552
gosub @STEAL4_35172
enable_crane_controls False {down} False {release} False
$disable_crane = 1
switch_widescreen True
set_fixed_camera_position -1517.693 {y} 60.1951 {z} 57.7488 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1518.545 {y} 60.208 {z} 57.2246 {switchStyle} SwitchType.JumpCut
clear_prints 
TIMERA = 0
56@ = 0
35@ += 1

:STEAL4_4552
if and
  35@ > 2
  6 > 35@
goto_if_false @STEAL4_4664
if 
  138@ == 0
goto_if_false @STEAL4_4640
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_4633
gosub @STEAL4_35172
35@ = 6
138@ = 1

:STEAL4_4633
goto @STEAL4_4664

:STEAL4_4640
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_4664
138@ = 0

:STEAL4_4664
if 
  35@ == 3
goto_if_false @STEAL4_4715
if 
  TIMERA > 1000
goto_if_false @STEAL4_4715
153@ = 4
35@ += 1

:STEAL4_4715
if 
  35@ == 4
goto_if_false @STEAL4_4759
if 
  TIMERA > 2500
goto_if_false @STEAL4_4759
35@ += 1

:STEAL4_4759
if 
  35@ == 5
goto_if_false @STEAL4_4849
set_fixed_camera_position -1631.9969 {y} 64.4568 {z} 3.1424 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.031 {y} 64.5624 {z} 3.3783 {switchStyle} SwitchType.JumpCut
56@ = 0
35@ += 1
TIMERA = 0

:STEAL4_4849
if 
  35@ == 6
goto_if_false @STEAL4_4892
if 
  153@ == 0
goto_if_false @STEAL4_4892
35@ += 1

:STEAL4_4892
if 
  35@ == 7
goto_if_false @STEAL4_4958
$magno_camera_type = 1
$reset_crane_camera = 1
display_hud False
display_radar False
switch_widescreen False
$disable_crane = 0
enable_crane_controls True {down} True {release} True
35@ = 99

:STEAL4_4958
if 
  35@ == 99
goto_if_false @STEAL4_5022
request_model 589

:STEAL4_4981
if 
  not has_model_loaded 589
goto_if_false @STEAL4_5008
wait 0
goto @STEAL4_4981

:STEAL4_5008
35@ = 0
34@ += 1

:STEAL4_5022
return 

:STEAL4_5024
if and
  35@ > 0
  3 > 35@
goto_if_false @STEAL4_5143
if 
  138@ == 0
goto_if_false @STEAL4_5119
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_5112
$magno_camera_type = 1
$reset_crane_camera = 1
138@ = 1
35@ = 3

:STEAL4_5112
goto @STEAL4_5143

:STEAL4_5119
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_5143
138@ = 0

:STEAL4_5143
switch_start 35@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @STEAL4_7590 {caseNum1} 0 {caseLabel1} @STEAL4_5271 {caseNum2} 1 {caseLabel2} @STEAL4_5528 {caseNum3} 2 {caseLabel3} @STEAL4_5582 {caseNum4} 3 {caseLabel4} @STEAL4_5638 {caseNum5} 4 {caseLabel5} @STEAL4_5781 {caseNum6} 5 {caseLabel6} @STEAL4_6011 {caseNum7} 6 {caseLabel7} @STEAL4_6462
switch_continued 7 {caseLabel1} @STEAL4_7311 {caseNum2} 99 {caseLabel2} @STEAL4_7569 {caseNum3} -1 {caseLabel3} @STEAL4_7590 {caseNum4} -1 {caseLabel4} @STEAL4_7590 {caseNum5} -1 {caseLabel5} @STEAL4_7590 {caseNum6} -1 {caseLabel6} @STEAL4_7590 {caseNum7} -1 {caseLabel7} @STEAL4_7590 {caseNum8} -1 {caseLabel8} @STEAL4_7590 {caseNum9} -1 {caseLabel9} @STEAL4_7590

:STEAL4_5271
if 
  138@ == 0
goto_if_false @STEAL4_5428
if 
  133@ <> 3
goto_if_false @STEAL4_5321
133@ = 3
gosub @STEAL4_29801

:STEAL4_5321
$disable_crane = 1
$magno_camera_type = 0
$reset_crane_camera = 1
TIMERA = 0
print_help_forever 'ST4_H08'
if 
  not is_char_dead 68@
goto_if_false @STEAL4_5414
set_char_decision_maker 68@ {handleOrTemplate} 172@
set_char_coordinates 68@ {x} -1626.981 {y} 65.4201 {z} 2.5495
set_char_heading 68@ {heading} 306.9205

:STEAL4_5414
35@ += 1
goto @STEAL4_5521

:STEAL4_5428
if 
  133@ <> 3
goto_if_false @STEAL4_5460
133@ = 3
gosub @STEAL4_29801

:STEAL4_5460
if 
  not is_char_dead 68@
goto_if_false @STEAL4_5514
set_char_decision_maker 68@ {handleOrTemplate} 172@
set_char_coordinates 68@ {x} -1626.981 {y} 65.4201 {z} 2.5495
set_char_heading 68@ {heading} 306.9205

:STEAL4_5514
35@ = 3

:STEAL4_5521
goto @STEAL4_7590

:STEAL4_5528
if 
  TIMERA > 3000
goto_if_false @STEAL4_5575
$magno_camera_type = 1
$reset_crane_camera = 1
TIMERA = 0
35@ += 1

:STEAL4_5575
goto @STEAL4_7590

:STEAL4_5582
if 
  TIMERA > 3000
goto_if_false @STEAL4_5631
clear_help 
$magno_camera_type = 1
$reset_crane_camera = 1
TIMERA = 0
35@ += 1

:STEAL4_5631
goto @STEAL4_7590

:STEAL4_5638
display_hud True
display_radar True
clear_help 
enable_crane_controls True {down} True {release} True
$magno_camera_type = 1
$reset_crane_camera = 1
$disable_crane = 0
$disable_crane_rotate = 0
$disable_manual_control = 0
$disable_crane_slide = 0
128@ = 0
print_now 'ST4_T01' {time} 5000 {flag} 1
109@ = add_blip_for_object 92@
110@ = add_blip_for_object 93@
111@ = add_blip_for_object 94@
61@ = 10000
132@ = 0
TIMERA = 0
35@ += 1
goto @STEAL4_7590

:STEAL4_5781
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_6004
set_lvar_int_to_lvar_int 106@ = 91@
enable_crane_controls True {down} True {release} False
128@ = 1
if 
  does_blip_exist 109@
goto_if_false @STEAL4_5874
remove_blip 109@

:STEAL4_5874
if 
  does_blip_exist 110@
goto_if_false @STEAL4_5895
remove_blip 110@

:STEAL4_5895
if 
  does_blip_exist 111@
goto_if_false @STEAL4_5916
remove_blip 111@

:STEAL4_5916
remove_blip 108@
108@ = add_blip_for_coord 156@ {y} 157@ {z} 158@
$disable_crane_rotate = 0
$disable_manual_control = 0
clear_help 
print_now 'ST4_T02' {time} 5000 {flag} 1
132@ = 0
61@ = 500
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_6004
goto @STEAL4_7590

:STEAL4_6011
if 
  does_object_exist 106@
goto_if_false @STEAL4_6279
  locate_object_3d 106@ {x} 156@ {y} 157@ {z} 158@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} True
if 
  locate_object_2d 106@ {x} 156@ {y} 157@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_6132
if 
  128@ <> 0
goto_if_false @STEAL4_6125
enable_crane_controls True {down} True {release} True
128@ = 0

:STEAL4_6125
goto @STEAL4_6165

:STEAL4_6132
if 
  128@ <> 1
goto_if_false @STEAL4_6165
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_6165
if 
  locate_object_3d 106@ {x} 156@ {y} 157@ {z} 158@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_6252
if 
  132@ <> 4
goto_if_false @STEAL4_6245
clear_help 
print_help_forever 'ST4_H03'
132@ = 4

:STEAL4_6245
goto @STEAL4_6279

:STEAL4_6252
if 
  132@ == 4
goto_if_false @STEAL4_6279
clear_help 
132@ = 0

:STEAL4_6279
if 
  does_object_exist 106@
goto_if_false @STEAL4_6455
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_6455
TIMERA = 0
set_lvar_int_to_lvar_int 104@ = 106@
clear_prints 
clear_help 
if 
  does_blip_exist 109@
goto_if_false @STEAL4_6368
remove_blip 109@

:STEAL4_6368
if 
  does_blip_exist 110@
goto_if_false @STEAL4_6389
remove_blip 110@

:STEAL4_6389
if 
  does_blip_exist 111@
goto_if_false @STEAL4_6410
remove_blip 111@

:STEAL4_6410
if 
  does_blip_exist 108@
goto_if_false @STEAL4_6431
remove_blip 108@

:STEAL4_6431
35@ += 1
139@ = 0
173@ = 0.0

:STEAL4_6455
goto @STEAL4_7590

:STEAL4_6462
if 
  139@ == 1
goto_if_false @STEAL4_6681
if 
  has_object_collided_with_anything 106@
goto_if_false @STEAL4_6681
if 
  173@ > 14.0
goto_if_false @STEAL4_6674
$x, $y, $z = get_object_coordinates 106@
custom_plate_for_next_car 589 {text} "N13_LLF"
84@ = create_car 589 {x} $x {y} $y {z} $z
change_car_colour 84@ {color1} 11 {color2} 0
attach_car_to_object 84@ {handle} 106@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 106@ {handle} 84@
break_object 106@ {intensity} 1
if 
  not is_car_dead 84@
goto_if_false @STEAL4_6667
detach_car 84@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
explode_car 84@

:STEAL4_6667
140@ = 1

:STEAL4_6674
139@ = 2

:STEAL4_6681
if 
  does_object_exist 106@
goto_if_false @STEAL4_6758
173@ = get_object_speed 106@
if 
  173@ > 5.0
goto_if_false @STEAL4_6758
if 
  139@ == 0
goto_if_false @STEAL4_6758
set_object_records_collisions 106@ {state} True
139@ = 1

:STEAL4_6758
if 
  TIMERA > 1000
goto_if_false @STEAL4_7304
if 
  140@ <> 1
goto_if_false @STEAL4_7292
if 
  does_object_exist 106@
goto_if_false @STEAL4_7285
if or
  is_object_static 106@
  TIMERA > 2000
goto_if_false @STEAL4_7285
clear_help 
$disable_crane = 1
do_fade 150 {direction} Fade.Out

:STEAL4_6851
if 
  get_fading_status 
goto_if_false @STEAL4_6875
wait 0
goto @STEAL4_6851

:STEAL4_6875
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_6901
set_rope_height_for_object $magno_arm {height} 0.5

:STEAL4_6901
release_entity_from_rope_for_object $magno_arm
delete_object 104@
101@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 156@ {y} 157@ {z} 158@
set_object_heading 101@ {heading} 159@
custom_plate_for_next_car 589 {text} "N13_LLF"
84@ = create_car 589 {x} 0.0 {y} 0.0 {z} 0.0
change_car_colour 84@ {color1} 11 {color2} 0
mark_model_as_no_longer_needed 589
attach_car_to_object 84@ {handle} 101@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 101@ {handle} 84@
135@ = 1
if 
  not is_char_dead 68@
goto_if_false @STEAL4_7086
set_char_coordinates 68@ {x} -1619.436 {y} 68.7884 {z} 2.5495
set_char_heading 68@ {heading} 0.0

:STEAL4_7086
switch_widescreen True
set_fixed_camera_position -1618.103 {y} 66.5178 {z} 4.5138 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1618.392 {y} 67.4668 {z} 4.3861 {switchStyle} SwitchType.JumpCut
enable_crane_controls False {down} False {release} False
load_scene 156@ {y} 157@ {z} 158@
do_fade 150 {direction} Fade.In

:STEAL4_7167
if 
  get_fading_status 
goto_if_false @STEAL4_7191
wait 0
goto @STEAL4_7167

:STEAL4_7191
if 
  not is_char_dead 68@
goto_if_false @STEAL4_7212
task_scratch_head 68@

:STEAL4_7212
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37012

:STEAL4_7225
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_7251
wait 0
goto @STEAL4_7225

:STEAL4_7251
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_FA' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:STEAL4_7285
goto @STEAL4_7304

:STEAL4_7292
wait 2000
37@ = 1

:STEAL4_7304
goto @STEAL4_7590

:STEAL4_7311
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_7562
$reset_crane_camera = 1
$disable_crane = 0
clear_mission_audio MissionAudioSlot.Slot1
do_fade 0 {direction} Fade.In
switch_widescreen False
enable_crane_controls True {down} True {release} True
if 
  does_object_exist 92@
goto_if_false @STEAL4_7396
109@ = add_blip_for_object 92@

:STEAL4_7396
if 
  does_object_exist 93@
goto_if_false @STEAL4_7420
110@ = add_blip_for_object 93@

:STEAL4_7420
if 
  does_object_exist 94@
goto_if_false @STEAL4_7444
111@ = add_blip_for_object 94@

:STEAL4_7444
if 
  not is_char_dead 68@
goto_if_false @STEAL4_7516
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1642.827 {y} 54.0446 {z} 2.5495 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 306.0
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_7516
clear_prints 
print 'ST4_T04' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
132@ = 0
35@ = 99

:STEAL4_7562
goto @STEAL4_7590

:STEAL4_7569
34@ += 1
35@ = 0
goto @STEAL4_7590

:STEAL4_7590
if 
  35@ > 0
goto_if_false @STEAL4_7745
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @STEAL4_7745
if 
  141@ == 0
goto_if_false @STEAL4_7666
print_help 'ST4_H10'
141@ = 1
goto @STEAL4_7745

:STEAL4_7666
if 
  142@ == 0
goto_if_false @STEAL4_7709
print_help 'ST4_H05'
142@ = 1
goto @STEAL4_7745

:STEAL4_7709
if 
  143@ == 0
goto_if_false @STEAL4_7745
print_help 'ST4_H07'
143@ = 1

:STEAL4_7745
return 

:STEAL4_7747
if 
  35@ == 0
goto_if_false @STEAL4_7903
TIMERA = 0
TIMERB = 0
132@ = 0
if 
  does_object_exist 92@
goto_if_false @STEAL4_7809
freeze_object_position 92@ {state} True

:STEAL4_7809
if 
  does_object_exist 93@
goto_if_false @STEAL4_7832
freeze_object_position 93@ {state} True

:STEAL4_7832
if 
  does_object_exist 94@
goto_if_false @STEAL4_7855
freeze_object_position 94@ {state} True

:STEAL4_7855
if 
  $st4_mission_attempts == 0
goto_if_false @STEAL4_7887
151@ = 0
goto @STEAL4_7896

:STEAL4_7887
151@ = generate_random_int_in_range 0 {max} 2

:STEAL4_7896
35@ += 1

:STEAL4_7903
if 
  35@ == 1
goto_if_false @STEAL4_8145
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_8145
freeze_object_position 91@ {state} False
set_lvar_int_to_lvar_int 106@ = 91@
enable_crane_controls True {down} True {release} False
$disable_crane_rotate = 0
$disable_manual_control = 0
128@ = 1
clear_prints 
print_now 'ST4_T06' {time} 7000 {flag} 1
if 
  does_blip_exist 109@
goto_if_false @STEAL4_8053
remove_blip 109@

:STEAL4_8053
if 
  does_blip_exist 110@
goto_if_false @STEAL4_8074
remove_blip 110@

:STEAL4_8074
if 
  does_blip_exist 111@
goto_if_false @STEAL4_8095
remove_blip 111@

:STEAL4_8095
remove_blip 108@
108@ = add_blip_for_coord 160@ {y} 161@ {z} 162@
clear_help 
132@ = 0
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_8145
if 
  35@ == 2
goto_if_false @STEAL4_8292
if 
  151@ == 0
goto_if_false @STEAL4_8240
request_model 404
if 
  has_model_loaded 404
goto_if_false @STEAL4_8233
TIMERA = 20000
35@ += 1
print_now 'ST4_T06' {time} 7000 {flag} 1

:STEAL4_8233
goto @STEAL4_8292

:STEAL4_8240
request_model 559
if 
  has_model_loaded 559
goto_if_false @STEAL4_8292
TIMERA = 20000
35@ += 1
print_now 'ST4_T06' {time} 7000 {flag} 1

:STEAL4_8292
if 
  35@ == 3
goto_if_false @STEAL4_8783
if 
  does_object_exist 106@
goto_if_false @STEAL4_8599
  locate_object_3d 106@ {x} 160@ {y} 161@ {z} 162@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} True
if 
  locate_object_2d 106@ {x} 160@ {y} 161@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_8431
if 
  128@ <> 0
goto_if_false @STEAL4_8424
enable_crane_controls True {down} True {release} True
128@ = 0

:STEAL4_8424
goto @STEAL4_8464

:STEAL4_8431
if 
  128@ <> 1
goto_if_false @STEAL4_8464
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_8464
if 
  locate_object_3d 106@ {x} 160@ {y} 161@ {z} 162@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_8551
if 
  132@ <> 2
goto_if_false @STEAL4_8544
clear_help 
print_help_forever 'ST4_H03'
132@ = 2

:STEAL4_8544
goto @STEAL4_8599

:STEAL4_8551
if 
  132@ == 2
goto_if_false @STEAL4_8599
if 
  61@ > 10000
goto_if_false @STEAL4_8590
clear_prints 

:STEAL4_8590
clear_help 
132@ = 0

:STEAL4_8599
if 
  does_object_exist 106@
goto_if_false @STEAL4_8783
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_8783
enable_crane_controls True {down} True {release} True
128@ = 0
set_lvar_int_to_lvar_int 104@ = 106@
if 
  does_blip_exist 109@
goto_if_false @STEAL4_8692
remove_blip 109@

:STEAL4_8692
if 
  does_blip_exist 110@
goto_if_false @STEAL4_8713
remove_blip 110@

:STEAL4_8713
if 
  does_blip_exist 111@
goto_if_false @STEAL4_8734
remove_blip 111@

:STEAL4_8734
if 
  does_blip_exist 108@
goto_if_false @STEAL4_8755
remove_blip 108@

:STEAL4_8755
TIMERA = 0
139@ = 0
140@ = 0
35@ += 1

:STEAL4_8783
if 
  35@ == 4
goto_if_false @STEAL4_9254
if 
  139@ == 1
goto_if_false @STEAL4_9074
if 
  has_object_collided_with_anything 106@
goto_if_false @STEAL4_9074
if 
  173@ > 14.0
goto_if_false @STEAL4_9067
$x, $y, $z = get_object_coordinates 106@
if 
  151@ == 0
goto_if_false @STEAL4_8912
86@ = create_car 404 {x} $x {y} $y {z} $z
goto @STEAL4_8929

:STEAL4_8912
86@ = create_car 559 {x} $x {y} $y {z} $z

:STEAL4_8929
attach_car_to_object 86@ {handle} 106@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 106@ {handle} 86@
break_object 106@ {intensity} 1
if 
  not is_car_dead 86@
goto_if_false @STEAL4_9025
detach_car 86@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
explode_car 86@

:STEAL4_9025
if 
  151@ == 0
goto_if_false @STEAL4_9055
mark_model_as_no_longer_needed 404
goto @STEAL4_9060

:STEAL4_9055
mark_model_as_no_longer_needed 559

:STEAL4_9060
140@ = 1

:STEAL4_9067
139@ = 2

:STEAL4_9074
if 
  does_object_exist 106@
goto_if_false @STEAL4_9151
173@ = get_object_speed 106@
if 
  173@ > 5.0
goto_if_false @STEAL4_9151
if 
  139@ == 0
goto_if_false @STEAL4_9151
set_object_records_collisions 106@ {state} True
139@ = 1

:STEAL4_9151
if 
  TIMERA > 1000
goto_if_false @STEAL4_9254
if 
  140@ <> 1
goto_if_false @STEAL4_9242
if 
  does_object_exist 106@
goto_if_false @STEAL4_9235
if or
  is_object_static 106@
  TIMERA > 2000
goto_if_false @STEAL4_9235
35@ += 1

:STEAL4_9235
goto @STEAL4_9254

:STEAL4_9242
wait 2000
37@ = 1

:STEAL4_9254
if 
  35@ == 5
goto_if_false @STEAL4_10327
if 
  151@ == 0
goto_if_false @STEAL4_9955
clear_help 
clear_prints 
do_fade 150 {direction} Fade.Out

:STEAL4_9301
if 
  get_fading_status 
goto_if_false @STEAL4_9325
wait 0
goto @STEAL4_9301

:STEAL4_9325
switch_widescreen True
$disable_crane = 1
enable_crane_controls False {down} False {release} False
release_entity_from_rope_for_object $magno_arm
delete_object 104@
102@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 160@ {y} 161@ {z} 162@
set_object_heading 102@ {heading} 163@
85@ = create_car 404 {x} -1632.786 {y} 61.2888 {z} 2.2888
46@ = get_object_heading 102@
46@ += 180.0
set_car_heading 85@ {heading} 46@
sort_out_object_collision_with_car 102@ {handle} 85@
if 
  not is_char_dead 68@
goto_if_false @STEAL4_9482
set_char_coordinates 68@ {x} -1631.028 {y} 54.3581 {z} 2.5495
set_char_heading 68@ {heading} 5.3011

:STEAL4_9482
set_fixed_camera_position -1632.001 {y} 52.1951 {z} 4.5485 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.943 {y} 53.181 {z} 4.3914 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_9559
set_rope_height_for_object $magno_arm {height} 0.5

:STEAL4_9559
do_fade 150 {direction} Fade.In

:STEAL4_9566
if 
  get_fading_status 
goto_if_false @STEAL4_9590
wait 0
goto @STEAL4_9566

:STEAL4_9590
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37013

:STEAL4_9603
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_9629
wait 0
goto @STEAL4_9603

:STEAL4_9629
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_FB' {time} 5000 {flag} 1
if 
  not is_car_dead 85@
goto_if_false @STEAL4_9839
$x, $y, $z = get_car_coordinates 85@
$heading = get_car_heading 85@
save_newline_to_debug_file 
save_string_to_debug_file "OPEN_CONTAINER2_CAR = "
save_float_to_debug_file $x
save_float_to_debug_file $y
save_float_to_debug_file $z
save_float_to_debug_file $heading

:STEAL4_9839
43@ = 0
TIMERA = 0

:STEAL4_9853
if 
  43@ == 0
goto_if_false @STEAL4_9934
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  TIMERA > 5000
goto_if_false @STEAL4_9923
do_fade 0 {direction} Fade.In
35@ += 1
43@ = 1
goto @STEAL4_9927

:STEAL4_9923
wait 0

:STEAL4_9927
goto @STEAL4_9853

:STEAL4_9934
35@ = 0
34@ += 1
goto @STEAL4_10327

:STEAL4_9955
clear_help 
clear_prints 
do_fade 150 {direction} Fade.Out

:STEAL4_9966
if 
  get_fading_status 
goto_if_false @STEAL4_9990
wait 0
goto @STEAL4_9966

:STEAL4_9990
switch_widescreen True
$disable_crane = 1
enable_crane_controls False {down} False {release} False
release_entity_from_rope_for_object $magno_arm
delete_object 104@
102@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 160@ {y} 161@ {z} 162@
set_object_heading 102@ {heading} 163@
86@ = create_car 559 {x} -1632.786 {y} 61.2888 {z} 2.2888
46@ = get_object_heading 102@
46@ += 180.0
set_car_heading 86@ {heading} 46@
sort_out_object_collision_with_car 102@ {handle} 86@
set_fixed_camera_position -1632.001 {y} 52.1951 {z} 4.5485 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1631.943 {y} 53.181 {z} 4.3914 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_10178
set_rope_height_for_object $magno_arm {height} 0.5

:STEAL4_10178
if 
  does_object_exist $magno_base
goto_if_false @STEAL4_10208
$magno_base_x, $magno_base_y, $magno_base_z = get_object_coordinates $magno_base

:STEAL4_10208
$magno_arm_rotate_y = 15.0
$magno_cabin_h = 133.5261
$magno_arm_h = 133.5261
$magno_base_x = -1610.626
$magno_base_y = 60.8742
$crane_rope_length = 0.639
gosub @STEAL4_28749
gosub @STEAL4_14506
do_fade 150 {direction} Fade.In

:STEAL4_10289
if 
  get_fading_status 
goto_if_false @STEAL4_10313
wait 0
goto @STEAL4_10289

:STEAL4_10313
TIMERA = 0
35@ += 1

:STEAL4_10327
if 
  35@ == 6
goto_if_false @STEAL4_10441
if 
  TIMERA > 1000
goto_if_false @STEAL4_10441
if or
  not is_message_being_displayed 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_10441
do_fade 0 {direction} Fade.In
if 
  not is_car_dead 86@
goto_if_false @STEAL4_10427
set_car_coordinates 86@ {x} 174@ {y} 175@ {z} 176@
set_car_heading 86@ {heading} 177@

:STEAL4_10427
35@ = 0
34@ += 2

:STEAL4_10441
if 
  35@ > 0
goto_if_false @STEAL4_10596
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @STEAL4_10596
if 
  141@ == 0
goto_if_false @STEAL4_10517
print_help 'ST4_H10'
141@ = 1
goto @STEAL4_10596

:STEAL4_10517
if 
  142@ == 0
goto_if_false @STEAL4_10560
print_help 'ST4_H05'
142@ = 1
goto @STEAL4_10596

:STEAL4_10560
if 
  143@ == 0
goto_if_false @STEAL4_10596
print_help 'ST4_H07'
143@ = 1

:STEAL4_10596
return 

:STEAL4_10598
if 
  35@ == 0
goto_if_false @STEAL4_10977
$reset_crane_camera = 1
$disable_crane = 0
enable_crane_controls True {down} True {release} True
clear_mission_audio MissionAudioSlot.Slot1
switch_widescreen False
if 
  does_object_exist 92@
goto_if_false @STEAL4_10670
109@ = add_blip_for_object 92@

:STEAL4_10670
if 
  does_object_exist 93@
goto_if_false @STEAL4_10694
110@ = add_blip_for_object 93@

:STEAL4_10694
if 
  does_object_exist 94@
goto_if_false @STEAL4_10718
111@ = add_blip_for_object 94@

:STEAL4_10718
if 
  not is_char_dead 68@
goto_if_false @STEAL4_10790
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1658.476 {y} 33.234 {z} 2.8213 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 299.6011
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_10790
clear_prints 
print 'ST4_T04' {time} 7000 {flag} 1
TIMERA = 0
TIMERB = 0
132@ = 0
if 
  not is_char_dead 68@
goto_if_false @STEAL4_10901
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1650.464 {y} 44.1144 {z} 2.5495 {speed} MoveState.Run {time} 10000
task_achieve_heading -1 {heading} 317.7216
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_10901
if 
  does_object_exist 92@
goto_if_false @STEAL4_10924
freeze_object_position 92@ {state} True

:STEAL4_10924
if 
  does_object_exist 93@
goto_if_false @STEAL4_10947
freeze_object_position 93@ {state} True

:STEAL4_10947
if 
  does_object_exist 94@
goto_if_false @STEAL4_10970
freeze_object_position 94@ {state} True

:STEAL4_10970
35@ += 1

:STEAL4_10977
if 
  35@ == 1
goto_if_false @STEAL4_11219
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if or
  is_int_lvar_equal_to_int_lvar 91@ == 92@
  is_int_lvar_equal_to_int_lvar 91@ == 93@
  is_int_lvar_equal_to_int_lvar 91@ == 94@
goto_if_false @STEAL4_11219
freeze_object_position 91@ {state} False
set_lvar_int_to_lvar_int 106@ = 91@
enable_crane_controls True {down} True {release} False
$disable_crane_rotate = 0
$disable_manual_control = 0
128@ = 1
clear_prints 
print_now 'ST4_T06' {time} 7000 {flag} 1
if 
  does_blip_exist 109@
goto_if_false @STEAL4_11127
remove_blip 109@

:STEAL4_11127
if 
  does_blip_exist 110@
goto_if_false @STEAL4_11148
remove_blip 110@

:STEAL4_11148
if 
  does_blip_exist 111@
goto_if_false @STEAL4_11169
remove_blip 111@

:STEAL4_11169
remove_blip 108@
108@ = add_blip_for_coord 164@ {y} 165@ {z} 166@
clear_help 
132@ = 0
TIMERA = 20000
TIMERB = 0
35@ += 1

:STEAL4_11219
if 
  35@ == 2
goto_if_false @STEAL4_11289
request_model 559
if 
  has_model_loaded 559
goto_if_false @STEAL4_11289
TIMERA = 20000
35@ += 1
print_now 'ST4_T06' {time} 7000 {flag} 1

:STEAL4_11289
if 
  35@ == 3
goto_if_false @STEAL4_11780
if 
  does_object_exist 106@
goto_if_false @STEAL4_11596
  locate_object_3d 106@ {x} 164@ {y} 165@ {z} 166@ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} True
if 
  locate_object_2d 106@ {x} 164@ {y} 165@ {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_11428
if 
  128@ <> 0
goto_if_false @STEAL4_11421
enable_crane_controls True {down} True {release} True
128@ = 0

:STEAL4_11421
goto @STEAL4_11461

:STEAL4_11428
if 
  128@ <> 1
goto_if_false @STEAL4_11461
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_11461
if 
  locate_object_3d 106@ {x} 164@ {y} 165@ {z} 166@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @STEAL4_11548
if 
  132@ <> 2
goto_if_false @STEAL4_11541
clear_help 
print_help_forever 'ST4_H03'
132@ = 2

:STEAL4_11541
goto @STEAL4_11596

:STEAL4_11548
if 
  132@ == 2
goto_if_false @STEAL4_11596
if 
  61@ > 10000
goto_if_false @STEAL4_11587
clear_prints 

:STEAL4_11587
clear_help 
132@ = 0

:STEAL4_11596
if 
  does_object_exist 106@
goto_if_false @STEAL4_11780
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 106@
goto_if_false @STEAL4_11780
enable_crane_controls True {down} True {release} True
128@ = 0
set_lvar_int_to_lvar_int 104@ = 106@
if 
  does_blip_exist 109@
goto_if_false @STEAL4_11689
remove_blip 109@

:STEAL4_11689
if 
  does_blip_exist 110@
goto_if_false @STEAL4_11710
remove_blip 110@

:STEAL4_11710
if 
  does_blip_exist 111@
goto_if_false @STEAL4_11731
remove_blip 111@

:STEAL4_11731
if 
  does_blip_exist 108@
goto_if_false @STEAL4_11752
remove_blip 108@

:STEAL4_11752
TIMERA = 0
139@ = 0
140@ = 0
35@ += 1

:STEAL4_11780
if 
  35@ == 4
goto_if_false @STEAL4_12179
if 
  139@ == 1
goto_if_false @STEAL4_11999
if 
  has_object_collided_with_anything 106@
goto_if_false @STEAL4_11999
if 
  173@ > 14.0
goto_if_false @STEAL4_11992
$x, $y, $z = get_object_coordinates 106@
86@ = create_car 559 {x} $x {y} $y {z} $z
attach_car_to_object 86@ {handle} 106@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 180.0
sort_out_object_collision_with_car 106@ {handle} 86@
break_object 106@ {intensity} 1
if 
  not is_car_dead 86@
goto_if_false @STEAL4_11980
detach_car 86@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
explode_car 86@

:STEAL4_11980
mark_model_as_no_longer_needed 559
140@ = 1

:STEAL4_11992
139@ = 2

:STEAL4_11999
if 
  does_object_exist 106@
goto_if_false @STEAL4_12076
173@ = get_object_speed 106@
if 
  173@ > 5.0
goto_if_false @STEAL4_12076
if 
  139@ == 0
goto_if_false @STEAL4_12076
set_object_records_collisions 106@ {state} True
139@ = 1

:STEAL4_12076
if 
  TIMERA > 1000
goto_if_false @STEAL4_12179
if 
  140@ <> 1
goto_if_false @STEAL4_12167
if 
  does_object_exist 106@
goto_if_false @STEAL4_12160
if or
  is_object_static 106@
  TIMERA > 2000
goto_if_false @STEAL4_12160
35@ += 1

:STEAL4_12160
goto @STEAL4_12179

:STEAL4_12167
wait 2000
37@ = 1

:STEAL4_12179
if 
  35@ == 5
goto_if_false @STEAL4_12543
clear_help 
clear_prints 
do_fade 150 {direction} Fade.Out

:STEAL4_12208
if 
  get_fading_status 
goto_if_false @STEAL4_12232
wait 0
goto @STEAL4_12208

:STEAL4_12232
switch_widescreen True
enable_crane_controls False {down} False {release} False
$disable_crane = 1
release_entity_from_rope_for_object $magno_arm
delete_object 104@
103@ = create_object_no_offset #KMB_CONTAINER_OPEN {x} 164@ {y} 165@ {z} 166@
set_object_heading 103@ {heading} 167@
86@ = create_car 559 {x} -1644.017 {y} 50.9619 {z} 3.0354
46@ = get_object_heading 103@
46@ += 180.0
set_car_heading 86@ {heading} 46@
sort_out_object_collision_with_car 103@ {handle} 86@
set_fixed_camera_position -1637.048 {y} 45.8035 {z} 3.6546 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1637.986 {y} 46.1327 {z} 3.5431 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $magno_base
goto_if_false @STEAL4_12424
$magno_base_x, $magno_base_y, $magno_base_z = get_object_coordinates $magno_base

:STEAL4_12424
$magno_arm_rotate_y = 15.0
$magno_cabin_h = 133.5261
$magno_arm_h = 133.5261
$magno_base_x = -1610.626
$magno_base_y = 60.8742
$crane_rope_length = 0.4
gosub @STEAL4_28749
gosub @STEAL4_14506
do_fade 150 {direction} Fade.In

:STEAL4_12505
if 
  get_fading_status 
goto_if_false @STEAL4_12529
wait 0
goto @STEAL4_12505

:STEAL4_12529
TIMERA = 0
35@ += 1

:STEAL4_12543
if 
  35@ == 6
goto_if_false @STEAL4_12657
if 
  TIMERA > 1000
goto_if_false @STEAL4_12657
if or
  not is_message_being_displayed 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_12657
do_fade 0 {direction} Fade.In
if 
  not is_car_dead 86@
goto_if_false @STEAL4_12643
set_car_coordinates 86@ {x} 174@ {y} 175@ {z} 176@
set_car_heading 86@ {heading} 177@

:STEAL4_12643
35@ = 0
34@ += 1

:STEAL4_12657
return 

:STEAL4_12659
if 
  35@ == -1
goto_if_false @STEAL4_12724
70@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0

:STEAL4_12724
if 
  35@ == 0
goto_if_false @STEAL4_12877
if 
  not is_car_dead 87@
goto_if_false @STEAL4_12863
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1686.422 {y} 25.8359 {z} 2.7752 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1643.394 {y} 19.6494 {z} 3.6706 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
if 
  not is_char_dead 70@
goto_if_false @STEAL4_12858
perform_sequence_task 70@ {sequence} 49@

:STEAL4_12858
clear_sequence_task 49@

:STEAL4_12863
35@ += 1
TIMERA = 0

:STEAL4_12877
if 
  35@ > 0
goto_if_false @STEAL4_12919
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STEAL4_12919
35@ = 99

:STEAL4_12919
if 
  35@ == 1
goto_if_false @STEAL4_13042
if 
  TIMERA > 500
goto_if_false @STEAL4_13042
if 
  not is_car_dead 87@
goto_if_false @STEAL4_12986
$x, $y, $z = get_car_coordinates 87@

:STEAL4_12986
load_scene $x {y} $y {z} $z
if 
  not is_car_dead 86@
goto_if_false @STEAL4_13035
set_car_coordinates 86@ {x} 174@ {y} 175@ {z} 176@
set_car_heading 86@ {heading} 177@

:STEAL4_13035
35@ += 1

:STEAL4_13042
if 
  35@ == 2
goto_if_false @STEAL4_13215
if 
  6000 > TIMERA
goto_if_false @STEAL4_13176
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13124
$x, $y, $z = get_offset_from_car_in_world_coords 87@ {xOffset} 2.0 {yOffset} -3.0 {zOffset} 0.0

:STEAL4_13124
set_fixed_camera_position -1680.0861 {y} 28.3067 {z} 3.8465 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @STEAL4_13215

:STEAL4_13176
set_fixed_camera_position -1643.223 {y} 13.6026 {z} 4.1338 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
35@ += 1

:STEAL4_13215
if 
  35@ == 3
goto_if_false @STEAL4_13425
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13278
$x, $y, $z = get_offset_from_car_in_world_coords 87@ {xOffset} -6.0 {yOffset} 1.0 {zOffset} 1.0

:STEAL4_13278
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  20000 > TIMERA
goto_if_false @STEAL4_13383
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13376
43@ = get_script_task_status 70@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_13376
56@ = 0
194@ = 0
35@ += 1

:STEAL4_13376
goto @STEAL4_13425

:STEAL4_13383
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13404
clear_char_tasks 70@

:STEAL4_13404
35@ += 1
56@ = 0
194@ = 0

:STEAL4_13425
if 
  35@ == 4
goto_if_false @STEAL4_13842
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13567
49@ = open_sequence_task 
task_pause -1 {time} 1800
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13494
task_leave_car -1 {vehicle} 87@

:STEAL4_13494
task_go_straight_to_coord -1 {x} -1638.837 {y} 27.1035 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_13549
task_kill_char_on_foot -1 {target} 68@

:STEAL4_13549
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_13567
if 
  not is_char_dead 71@
goto_if_false @STEAL4_13690
49@ = open_sequence_task 
task_pause -1 {time} 0
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13617
task_leave_car -1 {vehicle} 87@

:STEAL4_13617
task_go_straight_to_coord -1 {x} -1639.676 {y} 29.1963 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_13672
task_kill_char_on_foot -1 {target} 68@

:STEAL4_13672
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_13690
if 
  not is_char_dead 72@
goto_if_false @STEAL4_13814
49@ = open_sequence_task 
task_pause -1 {time} 1000
if 
  not is_car_dead 87@
goto_if_false @STEAL4_13741
task_leave_car -1 {vehicle} 87@

:STEAL4_13741
task_go_straight_to_coord -1 {x} -1641.28 {y} 27.2014 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_13796
task_kill_char_on_foot -1 {target} 68@

:STEAL4_13796
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_13814
56@ = 0
194@ = 0
35@ += 1
TIMERA = 0

:STEAL4_13842
if 
  35@ == 5
goto_if_false @STEAL4_13995
if 
  not is_char_dead 70@
goto_if_false @STEAL4_13995
if 
  not is_char_in_any_car 70@
goto_if_false @STEAL4_13995
if 
  56@ == 0
goto_if_false @STEAL4_13995
set_lvar_text_label 189@s = 'STL4_GA'
set_lvar_int_to_constant 191@ = 37015
set_lvar_int_to_lvar_int 192@ = 70@
193@ = 0
gosub @STEAL4_35611
if 
  194@ == 4
goto_if_false @STEAL4_13995
194@ = 0
56@ += 1
35@ = 99

:STEAL4_13995
if 
  35@ == 99
goto_if_false @STEAL4_14504
$magno_arm_h = 130.0
if 
  not is_car_dead 87@
goto_if_false @STEAL4_14069
set_car_coordinates 87@ {x} -1642.876 {y} 19.5037 {z} 2.5547
set_car_heading 87@ {heading} 259.5122

:STEAL4_14069
if 
  not is_char_dead 70@
goto_if_false @STEAL4_14197
clear_char_tasks_immediately 70@
set_char_coordinates 70@ {x} -1638.837 {y} 27.1035 {z} 2.8213
set_char_heading 70@ {heading} 0.0
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14156
task_goto_char -1 {target} 68@ {time} 10000 {radius} 25.0

:STEAL4_14156
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14179
task_kill_char_on_foot -1 {target} 68@

:STEAL4_14179
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_14197
if 
  not is_char_dead 71@
goto_if_false @STEAL4_14325
clear_char_tasks_immediately 71@
set_char_coordinates 71@ {x} -1639.676 {y} 29.1963 {z} 2.8213
set_char_heading 71@ {heading} 0.0
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14284
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_14284
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14307
task_kill_char_on_foot -1 {target} 68@

:STEAL4_14307
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_14325
if 
  not is_char_dead 72@
goto_if_false @STEAL4_14453
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} -1641.28 {y} 27.2014 {z} 2.8213
set_char_heading 72@ {heading} 0.0
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14412
task_goto_char -1 {target} 68@ {time} 10000 {radius} 18.0

:STEAL4_14412
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14435
task_kill_char_on_foot -1 {target} 68@

:STEAL4_14435
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_14453
clear_prints 
clear_help 
$reset_crane_camera = 1
$disable_crane_exit = 0
switch_widescreen False
enable_crane_controls True {down} True {release} True
$disable_crane = 0
35@ = 0
34@ += 1

:STEAL4_14504
return 

:STEAL4_14506
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14546
if 
  not is_car_dead 86@
goto_if_false @STEAL4_14546
warp_char_into_car 68@ {vehicle} 86@

:STEAL4_14546
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14572
give_weapon_to_char 68@ {weaponType} WeaponType.Pistol {ammo} 9999

:STEAL4_14572
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37011

:STEAL4_14585
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_14611
wait 0
goto @STEAL4_14585

:STEAL4_14611
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_EA' {time} 5000 {flag} 1
if 
  not is_car_dead 86@
goto_if_false @STEAL4_14730
set_car_cruise_speed 86@ {maxSpeed} 3.5
set_car_health 86@ {health} 2000
set_can_burst_car_tyres 86@ {state} False
vehicle_does_provide_cover 86@ {state} False
174@, 175@, 176@ = get_offset_from_car_in_world_coords 86@ {xOffset} 0.0 {yOffset} 15.0 {zOffset} 0.0
177@ = get_car_heading 86@
car_goto_coordinates_accurate 86@ {x} 174@ {y} 175@ {z} 176@

:STEAL4_14730
gosub @STEAL4_28299
return 

:STEAL4_14739
switch_start 35@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @STEAL4_18818 {caseNum1} 0 {caseLabel1} @STEAL4_14867 {caseNum2} 1 {caseLabel2} @STEAL4_14975 {caseNum3} 2 {caseLabel3} @STEAL4_15148 {caseNum4} 3 {caseLabel4} @STEAL4_16252 {caseNum5} 4 {caseLabel5} @STEAL4_16671 {caseNum6} 5 {caseLabel6} @STEAL4_16798 {caseNum7} 6 {caseLabel7} @STEAL4_17195
switch_continued 99 {caseLabel1} @STEAL4_18797 {caseNum2} -1 {caseLabel2} @STEAL4_18818 {caseNum3} -1 {caseLabel3} @STEAL4_18818 {caseNum4} -1 {caseLabel4} @STEAL4_18818 {caseNum5} -1 {caseLabel5} @STEAL4_18818 {caseNum6} -1 {caseLabel6} @STEAL4_18818 {caseNum7} -1 {caseLabel7} @STEAL4_18818 {caseNum8} -1 {caseLabel8} @STEAL4_18818 {caseNum9} -1 {caseLabel9} @STEAL4_18818

:STEAL4_14867
clear_prints 
if 
  133@ <> 2
goto_if_false @STEAL4_14901
133@ = 2
gosub @STEAL4_29801

:STEAL4_14901
194@ = 0
display_nth_onscreen_counter_with_string $buddy_health {display} CounterDisplay.Bar {slot} 1 {text} 'ST4_30'
print_help 'ST4_H09'
if 
  not is_char_dead 68@
goto_if_false @STEAL4_14961
set_char_decision_maker 68@ {handleOrTemplate} 168@

:STEAL4_14961
35@ += 1
goto @STEAL4_18818

:STEAL4_14975
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15127
49@ = open_sequence_task 
if 
  not is_car_dead 86@
goto_if_false @STEAL4_15019
task_leave_car -1 {vehicle} 86@

:STEAL4_15019
if 
  not is_char_dead 70@
goto_if_false @STEAL4_15042
task_kill_char_on_foot -1 {target} 70@

:STEAL4_15042
if 
  not is_char_dead 71@
goto_if_false @STEAL4_15065
task_kill_char_on_foot -1 {target} 71@

:STEAL4_15065
if 
  not is_char_dead 72@
goto_if_false @STEAL4_15088
task_kill_char_on_foot -1 {target} 72@

:STEAL4_15088
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@
56@ = 0
194@ = 0
35@ += 1

:STEAL4_15127
TIMERA = 0
TIMERB = 0
goto @STEAL4_18818

:STEAL4_15148
if 
  56@ == 0
goto_if_false @STEAL4_15251
set_lvar_text_label 189@s = 'STL4_HA'
set_lvar_int_to_constant 191@ = 37018
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35611
if 
  194@ == 4
goto_if_false @STEAL4_15251
194@ = 0
56@ += 1
TIMERA = 0

:STEAL4_15251
if 
  TIMERA > 45000
goto_if_false @STEAL4_15286
35@ += 1
goto @STEAL4_15319

:STEAL4_15286
if and
  is_char_dead 70@
  is_char_dead 71@
  is_char_dead 72@
goto_if_false @STEAL4_15319
35@ += 1

:STEAL4_15319
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_15792
if 
  124@ == 0
goto_if_false @STEAL4_15785
clear_help 
43@ = 0

:STEAL4_15364
if 
  3 > 43@
goto_if_false @STEAL4_15513
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_15499
set_char_accuracy 70@(43@,6i) {accuracy} 30
44@ = get_char_health 70@(43@,6i)
if 
  200 > 44@
goto_if_false @STEAL4_15490
44@ += 100
if 
  44@ > 200
goto_if_false @STEAL4_15478
44@ = 200

:STEAL4_15478
set_char_health 70@(43@,6i) {health} 44@

:STEAL4_15490
clear_char_tasks 70@(43@,6i)

:STEAL4_15499
43@ += 1
goto @STEAL4_15364

:STEAL4_15513
if 
  not is_char_dead 70@
goto_if_false @STEAL4_15596
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15565
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_15565
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_15596
if 
  not is_char_dead 71@
goto_if_false @STEAL4_15679
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15648
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_15648
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_15679
if 
  not is_char_dead 72@
goto_if_false @STEAL4_15778
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15731
task_goto_char -1 {target} 68@ {time} 10000 {radius} 22.0

:STEAL4_15731
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15760
task_kill_char_on_foot -1 {target} 68@

:STEAL4_15760
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_15778
124@ = 1

:STEAL4_15785
goto @STEAL4_16245

:STEAL4_15792
if 
  124@ == 1
goto_if_false @STEAL4_16245
print_help_forever 'ST4_H09'
43@ = 0

:STEAL4_15828
if 
  3 > 43@
goto_if_false @STEAL4_15941
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_15927
set_char_accuracy 70@(43@,6i) {accuracy} 40
44@ = get_char_health 70@(43@,6i)
if 
  44@ > 50
goto_if_false @STEAL4_15918
set_char_health 70@(43@,6i) {health} 50

:STEAL4_15918
clear_char_tasks 70@(43@,6i)

:STEAL4_15927
43@ += 1
goto @STEAL4_15828

:STEAL4_15941
if 
  not is_char_dead 70@
goto_if_false @STEAL4_16040
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_15993
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_15993
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16022
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16022
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16040
if 
  not is_char_dead 71@
goto_if_false @STEAL4_16139
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16092
task_goto_char -1 {target} 68@ {time} 10000 {radius} 22.0

:STEAL4_16092
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16121
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16121
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16139
if 
  not is_char_dead 72@
goto_if_false @STEAL4_16238
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16191
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_16191
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16220
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16220
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16238
124@ = 0

:STEAL4_16245
goto @STEAL4_18818

:STEAL4_16252
clear_area -1711.59 {y} 44.8495 {z} 2.7813 {radius} 20.0 {clearParticles} True
88@ = create_car 405 {x} -1711.59 {y} 44.8495 {z} 2.7813
set_car_heading 88@ {heading} 232.9281
set_car_straight_line_distance 88@ {distance} 50
73@ = create_char_inside_car 88@ {pedType} PedType.Mission1 {modelId} 24
74@ = create_char_as_passenger 88@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.BikeRear
75@ = create_char_as_passenger 88@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.RearLeft
115@ = add_blip_for_char 73@
116@ = add_blip_for_char 74@
117@ = add_blip_for_char 75@
clear_area -1697.04 {y} 14.7378 {z} 2.7813 {radius} 5.0 {clearParticles} True
if 
  not is_car_dead 88@
goto_if_false @STEAL4_16525
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 88@ {x} -1686.422 {y} 25.8359 {z} 2.7752 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 88@ {x} -1647.938 {y} 27.2328 {z} 2.5408 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16520
perform_sequence_task 73@ {sequence} 49@

:STEAL4_16520
clear_sequence_task 49@

:STEAL4_16525
43@ = 3

:STEAL4_16532
if 
  6 > 43@
goto_if_false @STEAL4_16643
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_16629
give_weapon_to_char 70@(43@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_decision_maker 70@(43@,6i) {handleOrTemplate} 171@
set_char_accuracy 70@(43@,6i) {accuracy} 40
set_char_health 70@(43@,6i) {health} 50
set_char_suffers_critical_hits 70@(43@,6i) {state} False

:STEAL4_16629
43@ += 1
goto @STEAL4_16532

:STEAL4_16643
TIMERA = 0
194@ = 0
35@ += 1
goto @STEAL4_18818

:STEAL4_16671
if 
  15000 > TIMERA
goto_if_false @STEAL4_16763
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16749
43@ = get_script_task_status 73@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_16742
35@ += 1

:STEAL4_16742
goto @STEAL4_16756

:STEAL4_16749
35@ += 1

:STEAL4_16756
goto @STEAL4_16791

:STEAL4_16763
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16784
clear_char_tasks 73@

:STEAL4_16784
35@ += 1

:STEAL4_16791
goto @STEAL4_18818

:STEAL4_16798
if 
  not is_char_dead 73@
goto_if_false @STEAL4_16914
49@ = open_sequence_task 
if 
  not is_car_dead 88@
goto_if_false @STEAL4_16842
task_leave_car -1 {vehicle} 88@

:STEAL4_16842
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16873
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_16873
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16896
task_kill_char_on_foot -1 {target} 68@

:STEAL4_16896
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_16914
if 
  not is_char_dead 74@
goto_if_false @STEAL4_17037
49@ = open_sequence_task 
task_pause -1 {time} 1000
if 
  not is_car_dead 88@
goto_if_false @STEAL4_16965
task_leave_car -1 {vehicle} 88@

:STEAL4_16965
if 
  not is_char_dead 68@
goto_if_false @STEAL4_16996
task_goto_char -1 {target} 68@ {time} 10000 {radius} 22.0

:STEAL4_16996
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17019
task_kill_char_on_foot -1 {target} 68@

:STEAL4_17019
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17037
if 
  not is_char_dead 75@
goto_if_false @STEAL4_17160
49@ = open_sequence_task 
task_pause -1 {time} 1500
if 
  not is_car_dead 88@
goto_if_false @STEAL4_17088
task_leave_car -1 {vehicle} 88@

:STEAL4_17088
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17119
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_17119
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17142
task_kill_char_on_foot -1 {target} 68@

:STEAL4_17142
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17160
TIMERA = 0
56@ = 0
194@ = 0
35@ += 1
goto @STEAL4_18818

:STEAL4_17195
if 
  56@ == 0
goto_if_false @STEAL4_17291
set_lvar_text_label 189@s = 'STL4_GB'
set_lvar_int_to_constant 191@ = 37016
set_lvar_int_to_lvar_int 192@ = 73@
193@ = 0
gosub @STEAL4_35611
if 
  194@ == 4
goto_if_false @STEAL4_17291
194@ = 0
56@ += 1

:STEAL4_17291
if 
  56@ == 1
goto_if_false @STEAL4_17387
set_lvar_text_label 189@s = 'STL4_HC'
set_lvar_int_to_constant 191@ = 37020
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35611
if 
  194@ == 4
goto_if_false @STEAL4_17387
194@ = 0
56@ += 1

:STEAL4_17387
if and
  is_char_dead 70@
  is_char_dead 71@
  is_char_dead 72@
  is_char_dead 73@
  is_char_dead 74@
goto_if_false @STEAL4_17446
if 
  is_char_dead 75@
goto_if_false @STEAL4_17446
35@ = 99

:STEAL4_17446
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_18058
if 
  124@ == 0
goto_if_false @STEAL4_18051
clear_help 
43@ = 0

:STEAL4_17491
if 
  6 > 43@
goto_if_false @STEAL4_17640
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_17626
set_char_accuracy 70@(43@,6i) {accuracy} 30
44@ = get_char_health 70@(43@,6i)
if 
  200 > 44@
goto_if_false @STEAL4_17617
44@ += 100
if 
  44@ > 200
goto_if_false @STEAL4_17605
44@ = 200

:STEAL4_17605
set_char_health 70@(43@,6i) {health} 44@

:STEAL4_17617
clear_char_tasks 70@(43@,6i)

:STEAL4_17626
43@ += 1
goto @STEAL4_17491

:STEAL4_17640
if 
  not is_char_dead 70@
goto_if_false @STEAL4_17707
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 30.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17707
if 
  not is_char_dead 71@
goto_if_false @STEAL4_17774
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 32.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17774
if 
  not is_char_dead 72@
goto_if_false @STEAL4_17842
49@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_17824
task_kill_char_on_foot -1 {target} 68@

:STEAL4_17824
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17842
if 
  not is_char_dead 73@
goto_if_false @STEAL4_17909
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 34.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17909
if 
  not is_char_dead 74@
goto_if_false @STEAL4_17976
49@ = open_sequence_task 
task_goto_char -1 {target} $scplayer {time} 10000 {radius} 28.0
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_17976
if 
  not is_char_dead 75@
goto_if_false @STEAL4_18044
49@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18026
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18026
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18044
124@ = 1

:STEAL4_18051
goto @STEAL4_18790

:STEAL4_18058
if 
  124@ == 1
goto_if_false @STEAL4_18790
print_help_forever 'ST4_H09'
43@ = 0

:STEAL4_18094
if 
  6 > 43@
goto_if_false @STEAL4_18207
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_18193
set_char_accuracy 70@(43@,6i) {accuracy} 40
44@ = get_char_health 70@(43@,6i)
if 
  44@ > 50
goto_if_false @STEAL4_18184
set_char_health 70@(43@,6i) {health} 50

:STEAL4_18184
clear_char_tasks 70@(43@,6i)

:STEAL4_18193
43@ += 1
goto @STEAL4_18094

:STEAL4_18207
if 
  not is_char_dead 70@
goto_if_false @STEAL4_18306
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18259
task_goto_char -1 {target} 68@ {time} 10000 {radius} 28.0

:STEAL4_18259
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18288
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18288
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18306
if 
  not is_char_dead 71@
goto_if_false @STEAL4_18399
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18358
task_goto_char -1 {target} 68@ {time} 10000 {radius} 32.0

:STEAL4_18358
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18381
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18381
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18399
if 
  not is_char_dead 72@
goto_if_false @STEAL4_18498
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18451
task_goto_char -1 {target} 68@ {time} 10000 {radius} 26.0

:STEAL4_18451
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18480
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18480
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18498
if 
  not is_char_dead 73@
goto_if_false @STEAL4_18591
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18550
task_goto_char -1 {target} 68@ {time} 10000 {radius} 29.0

:STEAL4_18550
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18573
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18573
close_sequence_task 49@
perform_sequence_task 73@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18591
if 
  not is_char_dead 74@
goto_if_false @STEAL4_18684
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18643
task_goto_char -1 {target} 68@ {time} 10000 {radius} 24.0

:STEAL4_18643
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18666
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18666
close_sequence_task 49@
perform_sequence_task 74@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18684
if 
  not is_char_dead 75@
goto_if_false @STEAL4_18783
49@ = open_sequence_task 
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18736
task_goto_char -1 {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_18736
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_18765
task_kill_char_on_foot -1 {target} 68@

:STEAL4_18765
close_sequence_task 49@
perform_sequence_task 75@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_18783
124@ = 0

:STEAL4_18790
goto @STEAL4_18818

:STEAL4_18797
35@ = 0
34@ += 2
goto @STEAL4_18818

:STEAL4_18818
if 
  not is_char_dead 68@
goto_if_false @STEAL4_19102
43@ = get_script_task_status 68@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_19102
49@ = open_sequence_task 
if 
  not is_char_dead 70@
goto_if_false @STEAL4_18904
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 70@
goto @STEAL4_19077

:STEAL4_18904
if 
  not is_char_dead 71@
goto_if_false @STEAL4_18940
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 71@
goto @STEAL4_19077

:STEAL4_18940
if 
  not is_char_dead 72@
goto_if_false @STEAL4_18976
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 72@
goto @STEAL4_19077

:STEAL4_18976
if 
  not is_char_dead 73@
goto_if_false @STEAL4_19012
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 73@
goto @STEAL4_19077

:STEAL4_19012
if 
  not is_char_dead 74@
goto_if_false @STEAL4_19048
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 74@
goto @STEAL4_19077

:STEAL4_19048
if 
  not is_char_dead 75@
goto_if_false @STEAL4_19077
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 75@

:STEAL4_19077
task_pause -1 {time} 1000
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_19102
if 
  6 > 39@
goto_if_false @STEAL4_19356
set_lvar_int_to_lvar_int 43@ = 39@
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_19356
if 
  does_object_exist 105@
goto_if_false @STEAL4_19356
if 
  not is_object_static 105@
goto_if_false @STEAL4_19356
46@ = get_object_speed 105@
if 
  46@ > 4.0
goto_if_false @STEAL4_19274
if 
  is_char_touching_object_on_foot 70@(43@,6i) {object} 105@
goto_if_false @STEAL4_19274
45@ = get_script_task_status 70@(43@,6i) {taskId} 1470
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_19274
task_die 70@(43@,6i)

:STEAL4_19274
if 
  locate_char_on_foot_object_3d 70@(43@,6i) {object} 105@ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @STEAL4_19356
45@ = get_script_task_status 70@(43@,6i) {taskId} 1470
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_19356
task_die 70@(43@,6i)

:STEAL4_19356
if 
  39@ == 1
goto_if_false @STEAL4_19518
if 
  does_vehicle_exist 87@
goto_if_false @STEAL4_19446
if 
  not is_car_dead 87@
goto_if_false @STEAL4_19446
$x, $y, $z = get_car_coordinates 87@
if 
  0.0 > $z
goto_if_false @STEAL4_19446
explode_car 87@

:STEAL4_19446
if 
  does_vehicle_exist 88@
goto_if_false @STEAL4_19518
if 
  not is_car_dead 88@
goto_if_false @STEAL4_19518
$x, $y, $z = get_car_coordinates 88@
if 
  0.0 > $z
goto_if_false @STEAL4_19518
explode_car 88@

:STEAL4_19518
if 
  39@ == 2
goto_if_false @STEAL4_19624
43@ = 0

:STEAL4_19543
if 
  6 > 43@
goto_if_false @STEAL4_19624
if 
  is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_19610
if 
  does_blip_exist 112@(43@,6i)
goto_if_false @STEAL4_19610
remove_blip 112@(43@,6i)

:STEAL4_19610
43@ += 1
goto @STEAL4_19543

:STEAL4_19624
return 

:STEAL4_19626
return 

:STEAL4_19628
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_19680
if 
  124@ == 0
goto_if_false @STEAL4_19673
clear_help 
124@ = 1

:STEAL4_19673
goto @STEAL4_19716

:STEAL4_19680
if 
  124@ == 1
goto_if_false @STEAL4_19716
print_help_forever 'ST4_H09'
124@ = 0

:STEAL4_19716
switch_start 35@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @STEAL4_21959 {caseNum1} 0 {caseLabel1} @STEAL4_19844 {caseNum2} 1 {caseLabel2} @STEAL4_19865 {caseNum3} 2 {caseLabel3} @STEAL4_19898 {caseNum4} 3 {caseLabel4} @STEAL4_19958 {caseNum5} 4 {caseLabel5} @STEAL4_20344 {caseNum6} 5 {caseLabel6} @STEAL4_20373 {caseNum7} 6 {caseLabel7} @STEAL4_20854
switch_continued 7 {caseLabel1} @STEAL4_21073 {caseNum2} 8 {caseLabel2} @STEAL4_21240 {caseNum3} 9 {caseLabel3} @STEAL4_21861 {caseNum4} 99 {caseLabel4} @STEAL4_21938 {caseNum5} -1 {caseLabel5} @STEAL4_21959 {caseNum6} -1 {caseLabel6} @STEAL4_21959 {caseNum7} -1 {caseLabel7} @STEAL4_21959 {caseNum8} -1 {caseLabel8} @STEAL4_21959 {caseNum9} -1 {caseLabel9} @STEAL4_21959

:STEAL4_19844
TIMERA = 0
35@ += 1
goto @STEAL4_21959

:STEAL4_19865
if 
  TIMERA > 2000
goto_if_false @STEAL4_19891
35@ += 1

:STEAL4_19891
goto @STEAL4_21959

:STEAL4_19898
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_19930
set_player_control $player1 {state} False
goto @STEAL4_19937

:STEAL4_19930
$disable_crane = 1

:STEAL4_19937
TIMERA = 0
35@ += 1
goto @STEAL4_21959

:STEAL4_19958
if 
  TIMERA > 0
goto_if_false @STEAL4_20337
switch_widescreen True
$disable_crane = 1
enable_crane_controls False {down} False {release} False
set_fixed_camera_position -1675.598 {y} 25.4341 {z} 2.8434 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1674.722 {y} 25.8894 {z} 3.0036 {switchStyle} SwitchType.JumpCut
80@ = create_char PedType.Mission1 {modelId} 24 {x} -1676.095 {y} 26.8479 {z} 2.5869
set_char_heading 80@ {heading} 314.8203
120@ = add_blip_for_char 80@
81@ = create_char PedType.Mission1 {modelId} 24 {x} -1674.4041 {y} 23.8107 {z} 2.6233
set_char_heading 81@ {heading} 314.8204
121@ = add_blip_for_char 81@
43@ = 0

:STEAL4_20137
if 
  2 > 43@
goto_if_false @STEAL4_20217
set_char_decision_maker 80@(43@,2i) {handleOrTemplate} 172@
set_char_accuracy 80@(43@,2i) {accuracy} 20
set_char_health 80@(43@,2i) {health} 100
give_weapon_to_char 80@(43@,2i) {weaponType} WeaponType.Pistol {ammo} 9999
43@ += 1
goto @STEAL4_20137

:STEAL4_20217
task_go_straight_to_coord 80@ {x} -1664.113 {y} 34.4836 {z} 2.5869 {speed} MoveState.Run {time} 999999
task_go_straight_to_coord 81@ {x} -1662.307 {y} 31.2954 {z} 2.5869 {speed} MoveState.Run {time} 999999
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37017

:STEAL4_20284
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_20310
wait 0
goto @STEAL4_20284

:STEAL4_20310
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_GC' {time} 5000 {flag} 1
35@ += 1

:STEAL4_20337
goto @STEAL4_21959

:STEAL4_20344
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_20366
35@ += 1

:STEAL4_20366
goto @STEAL4_21959

:STEAL4_20373
switch_widescreen False
enable_crane_controls True {down} True {release} True
$disable_crane = 0
if 
  not is_char_dead 80@
goto_if_false @STEAL4_20438
set_char_coordinates 80@ {x} -1657.3979 {y} 32.9707 {z} 2.8213
set_char_heading 80@ {heading} 320.0

:STEAL4_20438
if 
  not is_char_dead 81@
goto_if_false @STEAL4_20484
set_char_coordinates 81@ {x} -1655.264 {y} 31.706 {z} 2.8213
set_char_heading 81@ {heading} 320.0

:STEAL4_20484
43@ = 0

:STEAL4_20491
if 
  2 > 43@
goto_if_false @STEAL4_20653
if 
  not is_char_dead 80@(43@,2i)
goto_if_false @STEAL4_20639
set_char_decision_maker 80@(43@,2i) {handleOrTemplate} 171@
set_char_accuracy 80@(43@,2i) {accuracy} 20
set_char_health 80@(43@,2i) {health} 100
give_weapon_to_char 80@(43@,2i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship 80@(43@,2i) {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_relationship 80@(43@,2i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
if 
  not is_char_dead 68@
goto_if_false @STEAL4_20639
task_goto_char 80@(43@,2i) {target} 68@ {time} 10000 {radius} 20.0

:STEAL4_20639
43@ += 1
goto @STEAL4_20491

:STEAL4_20653
if 
  not is_char_dead 68@
goto_if_false @STEAL4_20693
if 
  not is_char_dead 80@
goto_if_false @STEAL4_20693
task_kill_char_on_foot 68@ {target} 80@

:STEAL4_20693
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_20732
$disable_crane = 0
$reset_crane_camera = 1
goto @STEAL4_20741

:STEAL4_20732
restore_camera_jumpcut 
set_player_control $player1 {state} True

:STEAL4_20741
clear_prints 
if 
  not is_car_dead 86@
goto_if_false @STEAL4_20790
if 
  not does_blip_exist 119@
goto_if_false @STEAL4_20790
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True

:STEAL4_20790
if 
  not is_char_dead 68@
goto_if_false @STEAL4_20840
add_char_decision_maker_event_response 168@ {event} Event.PotentialGetRunOver {taskId} TaskId.ComplexGetOutOfWayOfCar {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 100.0 {inCar} False {onFoot} True

:STEAL4_20840
35@ += 1
goto @STEAL4_21959

:STEAL4_20854
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21066
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21066
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21024
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_21024
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 86@ {time} 999999 {radius} 10.0
task_enter_car_as_passenger -1 {vehicle} 86@ {time} 999999 {seat} SeatId.BikeRear
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 30000
56@ = 0
194@ = 0
35@ += 1

:STEAL4_21024
if and
  is_char_dead 80@
  is_char_dead 81@
goto_if_false @STEAL4_21066
35@ += 1
56@ = 0
194@ = 0

:STEAL4_21066
goto @STEAL4_21959

:STEAL4_21073
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21233
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21233
if 
  not is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21209
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 86@ {time} 999999 {radius} 10.0
task_enter_car_as_passenger -1 {vehicle} 86@ {time} 999999 {seat} SeatId.BikeRear
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@
TIMERA = 30000
35@ += 1
56@ = generate_random_int_in_range 0 {max} 2
goto @STEAL4_21233

:STEAL4_21209
TIMERA = 30000
35@ += 1
56@ = generate_random_int_in_range 0 {max} 2

:STEAL4_21233
goto @STEAL4_21959

:STEAL4_21240
if 
  56@ == 0
goto_if_false @STEAL4_21336
set_lvar_text_label 189@s = 'STL4_JA'
set_lvar_int_to_constant 191@ = 37021
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35611
if 
  194@ == 4
goto_if_false @STEAL4_21336
194@ = 0
56@ = 2

:STEAL4_21336
if 
  56@ == 1
goto_if_false @STEAL4_21432
set_lvar_text_label 189@s = 'STL4_JB'
set_lvar_int_to_constant 191@ = 37022
set_lvar_int_to_lvar_int 192@ = 68@
193@ = 0
gosub @STEAL4_35611
if 
  194@ == 4
goto_if_false @STEAL4_21432
194@ = 0
56@ = 2

:STEAL4_21432
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21629
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21629
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21629
if 
  not is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21629
if 
  TIMERA > 35000
goto_if_false @STEAL4_21546
print_now 'ST4_29' {time} 5000 {flag} 1
TIMERA = 0

:STEAL4_21546
43@ = get_script_task_status 68@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_21629
49@ = open_sequence_task 
task_goto_car -1 {vehicle} 86@ {time} 999999 {radius} 10.0
task_enter_car_as_passenger -1 {vehicle} 86@ {time} 999999 {seat} SeatId.BikeRear
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_21629
if 
  194@ == 0
goto_if_false @STEAL4_21759
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21759
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21759
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21759
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21759
if 
  TIMERA > 30000
goto_if_false @STEAL4_21759
print_now 'ST4_28' {time} 5000 {flag} 1
TIMERA = 0

:STEAL4_21759
if 
  194@ == 0
goto_if_false @STEAL4_21854
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21854
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21854
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21854
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_21854
35@ += 1

:STEAL4_21854
goto @STEAL4_21959

:STEAL4_21861
if 
  not is_car_dead 86@
goto_if_false @STEAL4_21919
if 
  not is_char_dead 68@
goto_if_false @STEAL4_21919
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_21919
set_char_get_out_upside_down_car 68@ {state} False

:STEAL4_21919
clear_onscreen_counter $buddy_health
35@ = 99
goto @STEAL4_21959

:STEAL4_21938
35@ = 0
34@ += 1
goto @STEAL4_21959

:STEAL4_21959
if 
  35@ > 3
goto_if_false @STEAL4_22090
if 
  does_blip_exist 119@
goto_if_false @STEAL4_22040
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22033
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22033
remove_blip 119@

:STEAL4_22033
goto @STEAL4_22090

:STEAL4_22040
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22090
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22090
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True

:STEAL4_22090
return 

:STEAL4_22092
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_22144
if 
  124@ == 0
goto_if_false @STEAL4_22137
clear_help 
124@ = 1

:STEAL4_22137
goto @STEAL4_22180

:STEAL4_22144
if 
  124@ == 1
goto_if_false @STEAL4_22180
print_help_forever 'ST4_H09'
124@ = 0

:STEAL4_22180
if 
  35@ == -1
goto_if_false @STEAL4_22218
119@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:STEAL4_22218
if 
  35@ == 0
goto_if_false @STEAL4_22362
print_now 'ST4_26' {time} 5000 {flag} 1
remove_blip 108@
108@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
if 
  does_blip_exist 120@
goto_if_false @STEAL4_22298
remove_blip 120@

:STEAL4_22298
if 
  does_blip_exist 121@
goto_if_false @STEAL4_22319
remove_blip 121@

:STEAL4_22319
TIMERA = 20000
TIMERB = 0
56@ = 0
62@ = 0
set_wanted_multiplier 1.0
35@ += 1

:STEAL4_22362
if 
  35@ == 1
goto_if_false @STEAL4_23898
if 
  56@ == 0
goto_if_false @STEAL4_22438
if 
  62@ > 5500
goto_if_false @STEAL4_22431
153@ = 5
56@ += 1

:STEAL4_22431
goto @STEAL4_22669

:STEAL4_22438
if 
  56@ == 1
goto_if_false @STEAL4_22512
if 
  153@ == 0
goto_if_false @STEAL4_22505
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22498
137@ = get_car_health 86@

:STEAL4_22498
56@ += 1

:STEAL4_22505
goto @STEAL4_22669

:STEAL4_22512
if 
  56@ == 2
goto_if_false @STEAL4_22587
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22580
43@ = get_car_health 86@
if 
  is_int_lvar_greater_than_int_lvar 137@ > 43@
goto_if_false @STEAL4_22580
56@ += 1

:STEAL4_22580
goto @STEAL4_22669

:STEAL4_22587
if 
  56@ == 3
goto_if_false @STEAL4_22626
153@ = 7
56@ += 1
goto @STEAL4_22669

:STEAL4_22626
if 
  56@ == 4
goto_if_false @STEAL4_22669
if 
  153@ == 0
goto_if_false @STEAL4_22669
56@ += 1

:STEAL4_22669
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22859
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22859
if 
  locate_car_3d 86@ {x} -2024.7 {y} 179.4 {z} 27.4 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL4_22859
if 
  not is_char_dead 68@
goto_if_false @STEAL4_22859
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_22843
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_22836
if 
  is_vehicle_on_all_wheels 86@
goto_if_false @STEAL4_22836
set_player_control $player1 {state} False
35@ += 1

:STEAL4_22836
goto @STEAL4_22859

:STEAL4_22843
print_now 'ST4_27' {time} 6000 {flag} 1

:STEAL4_22859
if 
  not is_char_dead 68@
goto_if_false @STEAL4_22931
if 
  not is_car_dead 86@
goto_if_false @STEAL4_22931
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_22931
if 
  does_blip_exist 107@
goto_if_false @STEAL4_22931
remove_blip 107@

:STEAL4_22931
if 
  not is_car_dead 86@
goto_if_false @STEAL4_23612
if 
  not is_char_dead 68@
goto_if_false @STEAL4_23612
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_23612
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_23539
if 
  not does_blip_exist 119@
goto_if_false @STEAL4_23055
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True
print_now 'ST4_05' {time} 5000 {flag} 1
goto @STEAL4_23055

:STEAL4_23055
if 
  does_blip_exist 108@
goto_if_false @STEAL4_23076
remove_blip 108@

:STEAL4_23076
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  TIMERA > 30000
goto_if_false @STEAL4_23532
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_23532
178@ += 1
if 
  178@ > 5
goto_if_false @STEAL4_23174
178@ = 0

:STEAL4_23174
switch_start 178@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STEAL4_23525 {caseNum1} 0 {caseLabel1} @STEAL4_23237 {caseNum2} 1 {caseLabel2} @STEAL4_23285 {caseNum3} 2 {caseLabel3} @STEAL4_23333 {caseNum4} 3 {caseLabel4} @STEAL4_23381 {caseNum5} 4 {caseLabel5} @STEAL4_23429 {caseNum6} 5 {caseLabel6} @STEAL4_23477 {caseNum7} -1 {caseLabel7} @STEAL4_23525

:STEAL4_23237
set_var_text_label s$audio_string = 'CESX_AA'
set_var_int_to_constant $audio_sound_file = 10400
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23525

:STEAL4_23285
set_var_text_label s$audio_string = 'CESX_AB'
set_var_int_to_constant $audio_sound_file = 10401
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23525

:STEAL4_23333
set_var_text_label s$audio_string = 'CESX_AC'
set_var_int_to_constant $audio_sound_file = 10402
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23525

:STEAL4_23381
set_var_text_label s$audio_string = 'CESX_AD'
set_var_int_to_constant $audio_sound_file = 10403
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23525

:STEAL4_23429
set_var_text_label s$audio_string = 'CESX_AE'
set_var_int_to_constant $audio_sound_file = 10404
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23525

:STEAL4_23477
set_var_text_label s$audio_string = 'CESX_AF'
set_var_int_to_constant $audio_sound_file = 10405
start_new_script @AUDIOL 68@ 0 0 1 0 
goto @STEAL4_23525

:STEAL4_23525
TIMERA = 0

:STEAL4_23532
goto @STEAL4_23612

:STEAL4_23539
if 
  does_blip_exist 119@
goto_if_false @STEAL4_23560
remove_blip 119@

:STEAL4_23560
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_23612
108@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
print_now 'ST4_26' {time} 7000 {flag} 1

:STEAL4_23612
if 
  not is_car_dead 86@
goto_if_false @STEAL4_23706
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_23675
if 
  does_blip_exist 119@
goto_if_false @STEAL4_23668
remove_blip 119@

:STEAL4_23668
goto @STEAL4_23706

:STEAL4_23675
if 
  not does_blip_exist 119@
goto_if_false @STEAL4_23706
119@ = add_blip_for_car 86@
set_blip_as_friendly 119@ {state} True

:STEAL4_23706
if 
  not is_car_dead 86@
goto_if_false @STEAL4_23898
if 
  is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_23898
if 
  not is_char_dead 68@
goto_if_false @STEAL4_23898
if 
  not is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_23846
if 
  TIMERB > 20000
goto_if_false @STEAL4_23818
print_now 'ST4_27' {time} 7000 {flag} 1
TIMERB = 0

:STEAL4_23818
if 
  does_blip_exist 108@
goto_if_false @STEAL4_23839
remove_blip 108@

:STEAL4_23839
goto @STEAL4_23898

:STEAL4_23846
if 
  not does_blip_exist 108@
goto_if_false @STEAL4_23898
108@ = add_blip_for_coord -2024.7 {y} 179.4 {z} 27.4
print_now 'ST4_26' {time} 7000 {flag} 1

:STEAL4_23898
if 
  35@ == 2
goto_if_false @STEAL4_24971
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:STEAL4_23930
if 
  get_fading_status 
goto_if_false @STEAL4_23954
wait 0
goto @STEAL4_23930

:STEAL4_23954
open_garage 'HBGDSFS'

:STEAL4_23965
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @STEAL4_23998
wait 0
goto @STEAL4_23965

:STEAL4_23998
set_area_visible 1
if 
  is_player_playing $player1
goto_if_false @STEAL4_24025
set_char_area_visible $scplayer {areaId} 1

:STEAL4_24025
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2045.2 {y} 170.8 {z} 29.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2040.1 {y} 181.6 {z} 29.1 {switchStyle} SwitchType.JumpCut
50@ = -2040.1
50@ += 2045.2
51@ = 181.6
51@ -= 170.8
52@ = 29.1
52@ -= 29.4
50@ *= 4.0
51@ *= 4.0
52@ *= 4.0
$x = -2045.2
add_float_lvar_to_float_var $x += 50@
$y = 170.8
add_float_lvar_to_float_var $y += 51@
$z = 29.4
add_float_lvar_to_float_var $z += 52@
$heading = get_heading_from_vector_2d 50@ {y} 51@
load_scene_in_direction $x {y} $y {z} $z {heading} $heading
if 
  not is_char_dead 68@
goto_if_false @STEAL4_24310
set_char_area_visible 68@ {areaId} 1

:STEAL4_24310
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24333
set_vehicle_area_visible 86@ {interiorId} 1

:STEAL4_24333
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24376
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_24376
warp_char_into_car $scplayer {vehicle} 86@

:STEAL4_24376
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24422
set_car_coordinates 86@ {x} -2033.8 {y} 178.6 {z} 27.6
set_car_heading 86@ {heading} 90.0

:STEAL4_24422
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 86@ {x} -2044.4 {y} 177.6 {z} 27.6 {speed} 5.0 {driveStyle} DriveMode.Accurate {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2034.731 {y} 177.1182 {z} 27.8359 {speed} MoveState.Walk {time} 50000
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
do_fade 500 {direction} Fade.In

:STEAL4_24515
if 
  get_fading_status 
goto_if_false @STEAL4_24539
wait 0
goto @STEAL4_24515

:STEAL4_24539
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @STEAL4_24632
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37034

:STEAL4_24579
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_24605
wait 0
goto @STEAL4_24579

:STEAL4_24605
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_NA' {time} 5000 {flag} 1
goto @STEAL4_24691

:STEAL4_24632
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 37035

:STEAL4_24645
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_24671
wait 0
goto @STEAL4_24645

:STEAL4_24671
play_mission_audio MissionAudioSlot.Slot1
print_now 'STL4_NB' {time} 5000 {flag} 1

:STEAL4_24691
TIMERA = 0

:STEAL4_24698
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_24876
if 
  not is_char_dead 68@
goto_if_false @STEAL4_24865
if 
  not is_car_dead 86@
goto_if_false @STEAL4_24865
if 
  is_char_in_car 68@ {vehicle} 86@
goto_if_false @STEAL4_24865
if 
  not is_char_in_car $scplayer {vehicle} 86@
goto_if_false @STEAL4_24865
43@ = get_script_task_status 68@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @STEAL4_24865
49@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2034.731 {y} 177.1182 {z} 27.8359 {speed} MoveState.Walk {time} 50000
close_sequence_task 49@
perform_sequence_task 68@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_24865
wait 0
goto @STEAL4_24698

:STEAL4_24876
if 
  TIMERA <= 5000
goto_if_false @STEAL4_24906
wait 0
goto @STEAL4_24876

:STEAL4_24906
do_fade 1000 {direction} Fade.Out

:STEAL4_24913
if 
  get_fading_status 
goto_if_false @STEAL4_24937
wait 0
goto @STEAL4_24913

:STEAL4_24937
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @STEAL4_24964
set_char_area_visible $scplayer {areaId} 0

:STEAL4_24964
35@ += 1

:STEAL4_24971
if 
  35@ == 3
goto_if_false @STEAL4_25743
if 
  not is_car_dead 86@
goto_if_false @STEAL4_25049
43@ = get_car_health 86@
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 1000.0
46@ *= 5000.0
cset_lvar_int_to_lvar_float 152@ =# 46@

:STEAL4_25049
clear_char_tasks_immediately $scplayer
delete_char 68@
delete_car 86@
clear_prints 
close_garage 'HBGDSFS'

:STEAL4_25077
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @STEAL4_25110
wait 0
goto @STEAL4_25077

:STEAL4_25110
set_char_coordinates $scplayer {x} -1569.625 {y} 122.3311 {z} 2.5469
set_fixed_camera_position -1571.141 {y} 131.4032 {z} 3.3235 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1571.6851 {y} 132.226 {z} 3.4872 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -1571.6851 {y} 132.226 {z} 3.4872 {heading} 0.0
clear_area -1570.718 {y} 131.0493 {z} 3.3547 {radius} 50.0 {clearParticles} True
switch_widescreen True
$steal4_flag = 1
start_new_script @IMPEXPM 
$import_export_is_active = 1

:STEAL4_25253
if 
  not has_model_loaded #NF_BLACKBOARD
goto_if_false @STEAL4_25279
wait 0
goto @STEAL4_25253

:STEAL4_25279
clear_help 
do_fade 1500 {direction} Fade.In

:STEAL4_25288
if 
  get_fading_status 
goto_if_false @STEAL4_25312
wait 0
goto @STEAL4_25288

:STEAL4_25312
clear_help 
print_now 'ST4_45' {time} 5000 {flag} 1
wait 5000
print_now 'ST4_46' {time} 5000 {flag} 1
wait 5000
do_fade 500 {direction} Fade.Out

:STEAL4_25363
if 
  get_fading_status 
goto_if_false @STEAL4_25387
wait 0
goto @STEAL4_25363

:STEAL4_25387
set_fixed_camera_position -1554.593 {y} -60.4267 {z} 75.7247 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1554.782 {y} -59.6013 {z} 75.193 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -1554.782 {y} -59.6013 {z} 75.193 {heading} 0.0
do_fade 500 {direction} Fade.In

:STEAL4_25467
if 
  get_fading_status 
goto_if_false @STEAL4_25491
wait 0
goto @STEAL4_25467

:STEAL4_25491
print_now 'ST4_47' {time} 5000 {flag} 1
wait 5000
print_now 'ST4_48' {time} 5000 {flag} 1
wait 5000
do_fade 500 {direction} Fade.Out

:STEAL4_25540
if 
  get_fading_status 
goto_if_false @STEAL4_25564
wait 0
goto @STEAL4_25540

:STEAL4_25564
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.3
set_char_heading $scplayer {heading} 277.5
load_scene -2045.4 {y} 173.1 {z} 27.8
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5

:STEAL4_25633
if 
  is_char_waiting_for_world_collision $scplayer
goto_if_false @STEAL4_25660
wait 0
goto @STEAL4_25633

:STEAL4_25660
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.3
set_char_heading $scplayer {heading} 277.5
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 1000 {direction} Fade.In

:STEAL4_25705
if 
  get_fading_status 
goto_if_false @STEAL4_25729
wait 0
goto @STEAL4_25705

:STEAL4_25729
set_player_control $player1 {state} True
36@ = 1

:STEAL4_25743
return 

:STEAL4_25745
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_25820
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if 
  91@ <> -1
goto_if_false @STEAL4_25820
if 
  not is_int_lvar_equal_to_int_lvar 105@ == 91@
goto_if_false @STEAL4_25820
set_lvar_int_to_lvar_int 105@ = 91@

:STEAL4_25820
if 
  not is_char_dead 68@
goto_if_false @STEAL4_25950
if 
  does_object_exist 105@
goto_if_false @STEAL4_25950
if 
  not is_object_static 105@
goto_if_false @STEAL4_25950
46@ = get_object_speed 105@
if 
  46@ > 4.0
goto_if_false @STEAL4_25950
if 
  is_char_touching_object_on_foot 68@ {object} 105@
goto_if_false @STEAL4_25950
45@ = get_script_task_status 68@ {taskId} 1470
if 
  is_int_lvar_equal_to_constant 45@ == 7
goto_if_false @STEAL4_25950
task_die 68@

:STEAL4_25950
if 
  39@ == 8
goto_if_false @STEAL4_26336
if 
  135@ == 1
goto_if_false @STEAL4_26336
if 
  does_object_exist 101@
goto_if_false @STEAL4_26336
if 
  does_vehicle_exist 84@
goto_if_false @STEAL4_26336
if 
  not is_car_dead 84@
goto_if_false @STEAL4_26336
$x, $y, $z = get_offset_from_object_in_world_coords 101@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
57@, 58@, 59@ = get_object_coordinates 101@
50@ = 1.0
set_lvar_float_to_var_float 51@ = $z
sub_float_lvar_from_float_lvar 51@ -= 59@
53@ = 0.0
54@ = 1.0
46@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
if and
  is_float_lvar_greater_than_float_var 59@ > $z
  46@ > 120.0
goto_if_false @STEAL4_26336
$x, $y, $z = get_car_coordinates 84@
57@, 58@, 59@ = get_offset_from_car_in_world_coords 84@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 179@ = 57@
sub_float_var_from_float_lvar 179@ -= $x
set_lvar_float_to_lvar_float 180@ = 58@
sub_float_var_from_float_lvar 180@ -= $y
set_lvar_float_to_lvar_float 181@ = 59@
sub_float_var_from_float_lvar 181@ -= $z
181@ += 0.1
179@ *= 0.05
180@ *= 0.05
181@ *= 0.05
detach_car 84@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
64@ = 0
135@ += 1

:STEAL4_26336
if 
  135@ == 2
goto_if_false @STEAL4_26432
if 
  300 > 64@
goto_if_false @STEAL4_26425
if 
  not is_car_dead 84@
goto_if_false @STEAL4_26418
apply_force_to_car 84@ {xOffset} 179@ {yOffset} 180@ {zOffset} 181@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:STEAL4_26418
goto @STEAL4_26432

:STEAL4_26425
135@ += 1

:STEAL4_26432
if 
  39@ == 9
goto_if_false @STEAL4_26818
if 
  136@ == 1
goto_if_false @STEAL4_26818
if 
  does_object_exist 102@
goto_if_false @STEAL4_26818
if 
  does_vehicle_exist 85@
goto_if_false @STEAL4_26818
if 
  not is_car_dead 85@
goto_if_false @STEAL4_26818
$x, $y, $z = get_offset_from_object_in_world_coords 102@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
57@, 58@, 59@ = get_object_coordinates 102@
50@ = 1.0
set_lvar_float_to_var_float 51@ = $z
sub_float_lvar_from_float_lvar 51@ -= 59@
53@ = 0.0
54@ = 1.0
46@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
if and
  is_float_lvar_greater_than_float_var 59@ > $z
  46@ > 120.0
goto_if_false @STEAL4_26818
$x, $y, $z = get_car_coordinates 85@
57@, 58@, 59@ = get_offset_from_car_in_world_coords 85@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 179@ = 57@
sub_float_var_from_float_lvar 179@ -= $x
set_lvar_float_to_lvar_float 180@ = 58@
sub_float_var_from_float_lvar 180@ -= $y
set_lvar_float_to_lvar_float 181@ = 59@
sub_float_var_from_float_lvar 181@ -= $z
181@ += 0.1
179@ *= 0.05
180@ *= 0.05
181@ *= 0.05
detach_car 85@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
64@ = 0
136@ += 1

:STEAL4_26818
if 
  135@ == 2
goto_if_false @STEAL4_26914
if 
  300 > 64@
goto_if_false @STEAL4_26907
if 
  not is_car_dead 85@
goto_if_false @STEAL4_26900
apply_force_to_car 85@ {xOffset} 179@ {yOffset} 180@ {zOffset} 181@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:STEAL4_26900
goto @STEAL4_26914

:STEAL4_26907
136@ += 1

:STEAL4_26914
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_27263
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if 
  91@ == -1
goto_if_false @STEAL4_27263
if 
  does_object_exist 105@
goto_if_false @STEAL4_27263
if 
  182@ > 15.0
goto_if_false @STEAL4_27255
if 
  not is_car_dead 82@
goto_if_false @STEAL4_27039
if 
  is_vehicle_touching_object 82@ {handle} 105@
goto_if_false @STEAL4_27039
explode_car 82@

:STEAL4_27039
if 
  not is_car_dead 84@
goto_if_false @STEAL4_27095
if 
  not is_vehicle_attached 84@
goto_if_false @STEAL4_27095
if 
  is_vehicle_touching_object 84@ {handle} 105@
goto_if_false @STEAL4_27095
explode_car 84@

:STEAL4_27095
if 
  not is_car_dead 86@
goto_if_false @STEAL4_27135
if 
  is_vehicle_touching_object 86@ {handle} 105@
goto_if_false @STEAL4_27135
explode_car 86@

:STEAL4_27135
if 
  not is_car_dead 87@
goto_if_false @STEAL4_27175
if 
  is_vehicle_touching_object 87@ {handle} 105@
goto_if_false @STEAL4_27175
explode_car 87@

:STEAL4_27175
if 
  not is_car_dead 88@
goto_if_false @STEAL4_27215
if 
  is_vehicle_touching_object 88@ {handle} 105@
goto_if_false @STEAL4_27215
explode_car 88@

:STEAL4_27215
if 
  not is_car_dead 89@
goto_if_false @STEAL4_27255
if 
  is_vehicle_touching_object 89@ {handle} 105@
goto_if_false @STEAL4_27255
explode_car 89@

:STEAL4_27255
182@ = get_object_speed 105@

:STEAL4_27263
if 
  39@ == 4
goto_if_false @STEAL4_27392
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL4_27392
if 
  not is_car_dead 82@
goto_if_false @STEAL4_27379
if 
  not is_char_in_car $scplayer {vehicle} 82@
goto_if_false @STEAL4_27372
43@ = store_car_char_is_in_no_save $scplayer
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 86@
goto_if_false @STEAL4_27372
mark_car_as_no_longer_needed 82@
82@ = store_car_char_is_in $scplayer

:STEAL4_27372
goto @STEAL4_27392

:STEAL4_27379
mark_car_as_no_longer_needed 82@
82@ = store_car_char_is_in $scplayer

:STEAL4_27392
if 
  39@ == 5
goto_if_false @STEAL4_27517
if 
  does_char_exist 68@
goto_if_false @STEAL4_27517
if 
  not is_char_dead 68@
goto_if_false @STEAL4_27517
43@ = get_char_health 68@
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 500.0
46@ *= 100.0
if 
  46@ > 100.0
goto_if_false @STEAL4_27509
46@ = 100.0

:STEAL4_27509
cset_var_int_to_lvar_float $buddy_health =# 46@

:STEAL4_27517
if 
  39@ == 6
goto_if_false @STEAL4_27588
if 
  does_vehicle_exist 89@
goto_if_false @STEAL4_27588
if 
  is_car_dead 89@
goto_if_false @STEAL4_27588
if 
  does_blip_exist 118@
goto_if_false @STEAL4_27588
remove_blip 118@

:STEAL4_27588
if 
  39@ == 8
goto_if_false @STEAL4_27768
43@ = 0

:STEAL4_27613
if 
  6 > 43@
goto_if_false @STEAL4_27694
if 
  does_blip_exist 112@(43@,6i)
goto_if_false @STEAL4_27680
if 
  is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_27680
remove_blip 112@(43@,6i)

:STEAL4_27680
43@ += 1
goto @STEAL4_27613

:STEAL4_27694
if 
  does_blip_exist 120@
goto_if_false @STEAL4_27731
if 
  is_char_dead 80@
goto_if_false @STEAL4_27731
remove_blip 120@

:STEAL4_27731
if 
  does_blip_exist 121@
goto_if_false @STEAL4_27768
if 
  is_char_dead 81@
goto_if_false @STEAL4_27768
remove_blip 121@

:STEAL4_27768
if 
  128@ == 1
goto_if_false @STEAL4_27849
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_27849
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if 
  83@ <> -1
goto_if_false @STEAL4_27849
enable_crane_controls True {down} True {release} True
128@ = 2

:STEAL4_27849
if 
  128@ == 2
goto_if_false @STEAL4_27930
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_27930
83@, 69@, 91@ = grab_entity_on_rope_for_object $magno_arm
if 
  83@ == -1
goto_if_false @STEAL4_27930
enable_crane_controls True {down} True {release} False
128@ = 1

:STEAL4_27930
if 
  39@ == 7
goto_if_false @STEAL4_28045
if 
  does_vehicle_exist 86@
goto_if_false @STEAL4_27999
if 
  is_car_dead 86@
goto_if_false @STEAL4_27999
wait 2000
37@ = 1
140@ = 2

:STEAL4_27999
if 
  does_char_exist 68@
goto_if_false @STEAL4_28045
if 
  is_char_dead 68@
goto_if_false @STEAL4_28045
37@ = 1
140@ = 3

:STEAL4_28045
return 

:STEAL4_28047
if 
  126@ == 1
goto_if_false @STEAL4_28173
if 
  not is_char_dead 68@
goto_if_false @STEAL4_28173
if 
  not is_group_member 68@ {handle} $Players_Group
goto_if_false @STEAL4_28173
if 
  $player_is_in_crane <> 2
goto_if_false @STEAL4_28134
print_now 'ST4_42' {time} 5000 {flag} 1

:STEAL4_28134
126@ += 1
if 
  133@ <> 1
goto_if_false @STEAL4_28173
133@ = 1
gosub @STEAL4_29801

:STEAL4_28173
if 
  126@ == 2
goto_if_false @STEAL4_28297
if 
  not is_char_dead 68@
goto_if_false @STEAL4_28297
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_28297
set_group_member $Players_Group {handle} 68@
set_char_drowns_in_water 68@ {state} False
126@ = 1
if 
  133@ <> 3
goto_if_false @STEAL4_28297
133@ = 3
gosub @STEAL4_29801

:STEAL4_28297
return 

:STEAL4_28299
request_model 405
request_model 346
request_model 24

:STEAL4_28313
if or
  not has_model_loaded 559
  not has_model_loaded 405
  not has_model_loaded 346
  not has_model_loaded 24
goto_if_false @STEAL4_28354
wait 0
goto @STEAL4_28313

:STEAL4_28354
clear_area -1711.59 {y} 44.8495 {z} 2.7813 {radius} 20.0 {clearParticles} True
87@ = create_car 405 {x} -1711.59 {y} 44.8495 {z} 2.7813
set_car_heading 87@ {heading} 232.9281
set_car_straight_line_distance 87@ {distance} 100
70@ = create_char_inside_car 87@ {pedType} PedType.Mission1 {modelId} 24
71@ = create_char_as_passenger 87@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.BikeRear
72@ = create_char_as_passenger 87@ {pedType} PedType.Mission1 {modelId} 24 {seat} SeatId.RearLeft
112@ = add_blip_for_char 70@
113@ = add_blip_for_char 71@
114@ = add_blip_for_char 72@
43@ = 0

:STEAL4_28489
if 
  3 > 43@
goto_if_false @STEAL4_28600
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_28586
give_weapon_to_char 70@(43@,6i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_decision_maker 70@(43@,6i) {handleOrTemplate} 171@
set_char_accuracy 70@(43@,6i) {accuracy} 40
set_char_health 70@(43@,6i) {health} 70
set_char_suffers_critical_hits 70@(43@,6i) {state} False

:STEAL4_28586
43@ += 1
goto @STEAL4_28489

:STEAL4_28600
clear_area -1697.04 {y} 14.7378 {z} 2.7813 {radius} 5.0 {clearParticles} True
return 
if 
  not is_car_dead 87@
goto_if_false @STEAL4_28747
49@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1686.422 {y} 25.8359 {z} 2.7752 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 87@ {x} -1643.394 {y} 19.6494 {z} 3.6706 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 49@
if 
  not is_char_dead 70@
goto_if_false @STEAL4_28742
perform_sequence_task 70@ {sequence} 49@

:STEAL4_28742
clear_sequence_task 49@

:STEAL4_28747
return 

:STEAL4_28749
if 
  does_object_exist $magno_base
goto_if_false @STEAL4_28779
set_object_coordinates_and_velocity $magno_base {x} $magno_base_x {y} $magno_base_y {z} $magno_base_z

:STEAL4_28779
if 
  does_object_exist $magno_base_LOD
goto_if_false @STEAL4_28809
set_object_coordinates_and_velocity $magno_base_LOD {x} $magno_base_x {y} $magno_base_y {z} $magno_base_z

:STEAL4_28809
if 
  does_object_exist $magno_base
goto_if_false @STEAL4_28930
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_28930
$x, $y, $z = get_offset_from_object_in_world_coords $magno_base {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
set_object_heading $magno_cabin {heading} $magno_cabin_h
set_object_coordinates_and_velocity $magno_cabin {x} $x {y} $y {z} $z
if 
  does_object_exist $magno_cabin_LOD
goto_if_false @STEAL4_28930
set_object_heading $magno_cabin_LOD {heading} $magno_cabin_h
set_object_coordinates_and_velocity $magno_cabin_LOD {x} $x {y} $y {z} $z

:STEAL4_28930
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_29075
if 
  does_object_exist $magno_cabin
goto_if_false @STEAL4_29075
$x, $y, $z = get_offset_from_object_in_world_coords $magno_cabin {xOffset} 0.0 {yOffset} -2.185 {zOffset} 8.51
$magno_arm_h = get_object_heading $magno_cabin
set_object_coordinates_and_velocity $magno_arm {x} $x {y} $y {z} $z
set_object_rotation $magno_arm {x} $magno_arm_rotate_y {y} 0.0 {z} $magno_arm_h
if 
  does_object_exist $magno_arm_LOD
goto_if_false @STEAL4_29075
set_object_coordinates_and_velocity $magno_arm_LOD {x} $x {y} $y {z} $z
set_object_rotation $magno_arm_LOD {x} $magno_arm_rotate_y {y} 0.0 {z} $magno_arm_h

:STEAL4_29075
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_29107
set_rope_height_for_object $magno_arm {height} $crane_rope_length
$crane_rope_length = get_rope_height_for_object $magno_arm

:STEAL4_29107
release_entity_from_rope_for_object $magno_arm
if 
  does_object_exist $magno_arm
goto_if_false @STEAL4_29136
set_rope_height_for_object $magno_arm {height} $crane_rope_length

:STEAL4_29136
return 
if 
  not is_char_dead 70@
goto_if_false @STEAL4_29267
clear_char_tasks_immediately 70@
set_char_coordinates 70@ {x} -1638.942 {y} 26.9517 {z} 3.0869
set_char_heading 70@ {heading} 339.6872
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1638.837 {y} 27.1035 {z} 2.8213 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29249
task_kill_char_on_foot -1 {target} 68@

:STEAL4_29249
close_sequence_task 49@
perform_sequence_task 70@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_29267
if 
  not is_char_dead 71@
goto_if_false @STEAL4_29396
clear_char_tasks_immediately 71@
set_char_coordinates 71@ {x} -1639.896 {y} 21.6694 {z} 3.0869
set_char_heading 71@ {heading} 359.1165
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1639.896 {y} 21.6694 {z} 3.5869 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29378
task_kill_char_on_foot -1 {target} 68@

:STEAL4_29378
close_sequence_task 49@
perform_sequence_task 71@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_29396
if 
  not is_char_dead 72@
goto_if_false @STEAL4_29525
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} -1641.3459 {y} 27.048 {z} 3.0869
set_char_heading 72@ {heading} 331.6584
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1641.3459 {y} 27.048 {z} 3.5869 {speed} MoveState.Run {time} 999999
task_kinda_stay_in_same_place -1 {state} True
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29507
task_kill_char_on_foot -1 {target} 68@

:STEAL4_29507
close_sequence_task 49@
perform_sequence_task 72@ {sequence} 49@
clear_sequence_task 49@

:STEAL4_29525
if 
  not is_car_dead 87@
goto_if_false @STEAL4_29571
set_car_coordinates 87@ {x} -1642.7061 {y} 19.5606 {z} 3.4189
set_car_heading 87@ {heading} 263.1502

:STEAL4_29571
43@ = 0

:STEAL4_29578
if 
  3 > 43@
goto_if_false @STEAL4_29642
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_29628
set_char_decision_maker 70@(43@,6i) {handleOrTemplate} 171@

:STEAL4_29628
43@ += 1
goto @STEAL4_29578

:STEAL4_29642
return 
switch_start 131@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_29767 {caseNum1} 0 {caseLabel1} @STEAL4_29707 {caseNum2} 1 {caseLabel2} @STEAL4_29737 {caseNum3} -1 {caseLabel3} @STEAL4_29767 {caseNum4} -1 {caseLabel4} @STEAL4_29767 {caseNum5} -1 {caseLabel5} @STEAL4_29767 {caseNum6} -1 {caseLabel6} @STEAL4_29767 {caseNum7} -1 {caseLabel7} @STEAL4_29767

:STEAL4_29707
print_now 'ST4_11' {time} 6000 {flag} 1
131@ += 1
goto @STEAL4_29767

:STEAL4_29737
print_now 'ST4_12' {time} 6000 {flag} 1
131@ += 1
goto @STEAL4_29767

:STEAL4_29767
if 
  131@ > 1
goto_if_false @STEAL4_29792
131@ = 0

:STEAL4_29792
60@ = 0
return 

:STEAL4_29801
if 
  does_char_exist 68@
goto_if_false @STEAL4_29967
if 
  not is_char_dead 68@
goto_if_false @STEAL4_29967
if 
  does_blip_exist 107@
goto_if_false @STEAL4_29854
remove_blip 107@

:STEAL4_29854
if 
  133@ == 1
goto_if_false @STEAL4_29887
107@ = add_blip_for_char 68@
set_blip_as_friendly 107@ {state} True

:STEAL4_29887
if 
  133@ == 2
goto_if_false @STEAL4_29927
107@ = add_blip_for_char 68@
set_blip_as_friendly 107@ {state} True
change_blip_display 107@ {display} BlipDisplay.BlipOnly

:STEAL4_29927
if 
  133@ == 3
goto_if_false @STEAL4_29967
107@ = add_blip_for_char 68@
set_blip_as_friendly 107@ {state} True
change_blip_display 107@ {display} BlipDisplay.Neither

:STEAL4_29967
return 

:STEAL4_29969
clear_prints 
if 
  $player_is_in_crane == 2
goto_if_false @STEAL4_30575
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:STEAL4_30003
if 
  get_fading_status 
goto_if_false @STEAL4_30027
wait 0
goto @STEAL4_30003

:STEAL4_30027
clear_onscreen_counter $buddy_health
$remove_player_from_crane = 1
switch_start 140@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @STEAL4_30488 {caseNum1} 1 {caseLabel1} @STEAL4_30102 {caseNum2} 2 {caseLabel2} @STEAL4_30232 {caseNum3} 3 {caseLabel3} @STEAL4_30362 {caseNum4} -1 {caseLabel4} @STEAL4_30488 {caseNum5} -1 {caseLabel5} @STEAL4_30488 {caseNum6} -1 {caseLabel6} @STEAL4_30488 {caseNum7} -1 {caseLabel7} @STEAL4_30488

:STEAL4_30102
if 
  not is_car_dead 82@
goto_if_false @STEAL4_30225
set_car_traction 82@ {traction} 2.0
if 
  not is_char_dead 68@
goto_if_false @STEAL4_30152
warp_char_into_car 68@ {vehicle} 82@

:STEAL4_30152
$x, $y, $z = get_car_coordinates 82@
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
set_car_coordinates 82@ {x} $x {y} $y {z} $z
set_car_heading 82@ {heading} 130.0
task_car_drive_wander 68@ {vehicle} 82@ {speed} 40.0 {drivingMode} DrivingMode.AvoidCars

:STEAL4_30225
goto @STEAL4_30488

:STEAL4_30232
if 
  not is_car_dead 82@
goto_if_false @STEAL4_30355
set_car_traction 82@ {traction} 2.0
if 
  not is_char_dead 68@
goto_if_false @STEAL4_30282
warp_char_into_car 68@ {vehicle} 82@

:STEAL4_30282
$x, $y, $z = get_car_coordinates 82@
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
set_car_coordinates 82@ {x} $x {y} $y {z} $z
set_car_heading 82@ {heading} 130.0
task_car_drive_wander 68@ {vehicle} 82@ {speed} 40.0 {drivingMode} DrivingMode.AvoidCars

:STEAL4_30355
goto @STEAL4_30488

:STEAL4_30362
43@ = 0

:STEAL4_30369
if 
  6 > 43@
goto_if_false @STEAL4_30433
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_30419
task_kill_char_on_foot 70@(43@,6i) {target} $scplayer

:STEAL4_30419
43@ += 1
goto @STEAL4_30369

:STEAL4_30433
if 
  not is_char_dead 80@
goto_if_false @STEAL4_30457
task_kill_char_on_foot 80@ {target} $scplayer

:STEAL4_30457
if 
  not is_char_dead 81@
goto_if_false @STEAL4_30481
task_kill_char_on_foot 81@ {target} $scplayer

:STEAL4_30481
goto @STEAL4_30488

:STEAL4_30488
if 
  does_vehicle_exist 86@
goto_if_false @STEAL4_30509
delete_car 86@

:STEAL4_30509
if 
  not is_car_dead 84@
goto_if_false @STEAL4_30530
delete_car 84@

:STEAL4_30530
do_fade 1000 {direction} Fade.In

:STEAL4_30537
if 
  get_fading_status 
goto_if_false @STEAL4_30561
wait 0
goto @STEAL4_30537

:STEAL4_30561
$st4_mission_attempts += 1
set_player_control $player1 {state} True

:STEAL4_30575
switch_start 140@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @STEAL4_30707 {caseNum1} 1 {caseLabel1} @STEAL4_30638 {caseNum2} 2 {caseLabel2} @STEAL4_30661 {caseNum3} 3 {caseLabel3} @STEAL4_30684 {caseNum4} -1 {caseLabel4} @STEAL4_30707 {caseNum5} -1 {caseLabel5} @STEAL4_30707 {caseNum6} -1 {caseLabel6} @STEAL4_30707 {caseNum7} -1 {caseLabel7} @STEAL4_30707

:STEAL4_30638
print_now 'ST4_44' {time} 5000 {flag} 1
goto @STEAL4_30707

:STEAL4_30661
print_now 'ST4_03' {time} 5000 {flag} 1
goto @STEAL4_30707

:STEAL4_30684
print_now 'ST4_02' {time} 5000 {flag} 1
goto @STEAL4_30707

:STEAL4_30707
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
$disable_crane = 1
return 

:STEAL4_30732
clear_prints 
set_area_visible 0
print_with_number_big 'M_PASSS' {num} 152@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 152@
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
$flag_steal_mission_counter += 1
player_made_progress 1
$disable_crane = 0
switch_car_generator $steal_car_cargen4 {amount} 101
register_mission_passed 'STEAL_4'
return 

:STEAL4_30816
if 
  is_player_playing $player1
goto_if_false @STEAL4_30839
set_char_area_visible $scplayer {areaId} 0

:STEAL4_30839
set_area_visible 0
start_new_script @CLEANAU 
clear_help 
display_hud True
display_radar True
$steal4_flag = 0
$player_is_in_crane = 0
$reset_crane_camera = 0
$disable_crane_exit = 0
$finish_crane_loading_script = 0
$disable_crane_slide = 0
clear_onscreen_counter $buddy_health
if 
  is_player_playing $player1
goto_if_false @STEAL4_30979
set_player_group_to_follow_always $player1 {state} False
if 
  not is_char_dead 80@
goto_if_false @STEAL4_30955
task_kill_char_on_foot 80@ {target} $scplayer

:STEAL4_30955
if 
  not is_char_dead 81@
goto_if_false @STEAL4_30979
task_kill_char_on_foot 81@ {target} $scplayer

:STEAL4_30979
set_script_limit_to_gang_size 99
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
43@ = 0

:STEAL4_31000
if 
  6 > 43@
goto_if_false @STEAL4_31089
if 
  is_player_playing $player1
goto_if_false @STEAL4_31066
if 
  not is_char_dead 70@(43@,6i)
goto_if_false @STEAL4_31066
task_kill_char_on_foot 70@(43@,6i) {target} $scplayer

:STEAL4_31066
mark_char_as_no_longer_needed 70@(43@,6i)
43@ += 1
goto @STEAL4_31000

:STEAL4_31089
mark_char_as_no_longer_needed 80@
mark_char_as_no_longer_needed 81@
mark_car_as_no_longer_needed 82@
mark_car_as_no_longer_needed 83@
mark_car_as_no_longer_needed 84@
mark_car_as_no_longer_needed 86@
mark_car_as_no_longer_needed 87@
mark_car_as_no_longer_needed 88@
mark_car_as_no_longer_needed 89@
switch_random_trains True
unload_special_character 1
mark_model_as_no_longer_needed 589
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 559
mark_model_as_no_longer_needed 458
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 404
remove_blip 107@
remove_blip 118@
remove_blip 108@
43@ = 0

:STEAL4_31213
if 
  6 > 43@
goto_if_false @STEAL4_31254
remove_blip 112@(43@,6i)
43@ += 1
goto @STEAL4_31213

:STEAL4_31254
remove_blip 119@
remove_blip 109@
remove_blip 110@
remove_blip 120@
remove_blip 121@
remove_decision_maker 168@
remove_decision_maker 171@
remove_decision_maker 172@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:STEAL4_31331
switch_start 153@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @STEAL4_31492 {caseNum1} 1 {caseLabel1} @STEAL4_31394 {caseNum2} 2 {caseLabel2} @STEAL4_31408 {caseNum3} 3 {caseLabel3} @STEAL4_31422 {caseNum4} 4 {caseLabel4} @STEAL4_31436 {caseNum5} 5 {caseLabel5} @STEAL4_31450 {caseNum6} 6 {caseLabel6} @STEAL4_31464 {caseNum7} 7 {caseLabel7} @STEAL4_31478

:STEAL4_31394
gosub @STEAL4_31526
goto @STEAL4_31524

:STEAL4_31408
gosub @STEAL4_32020
goto @STEAL4_31524

:STEAL4_31422
gosub @STEAL4_32630
goto @STEAL4_31524

:STEAL4_31436
gosub @STEAL4_33046
goto @STEAL4_31524

:STEAL4_31450
gosub @STEAL4_33409
goto @STEAL4_31524

:STEAL4_31464
gosub @STEAL4_34047
goto @STEAL4_31524

:STEAL4_31478
gosub @STEAL4_34596
goto @STEAL4_31524

:STEAL4_31492
if 
  154@ <> 0
goto_if_false @STEAL4_31517
154@ = 0

:STEAL4_31517
goto @STEAL4_31524

:STEAL4_31524
return 

:STEAL4_31526
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_31828 {caseNum1} 0 {caseLabel1} @STEAL4_31589 {caseNum2} 1 {caseLabel2} @STEAL4_31610 {caseNum3} 2 {caseLabel3} @STEAL4_31694 {caseNum4} 3 {caseLabel4} @STEAL4_31778 {caseNum5} 4 {caseLabel5} @STEAL4_31792 {caseNum6} -1 {caseLabel6} @STEAL4_31828 {caseNum7} -1 {caseLabel7} @STEAL4_31828

:STEAL4_31589
188@ = 0
154@ = 1
goto @STEAL4_31828

:STEAL4_31610
if 
  not is_char_dead 68@
goto_if_false @STEAL4_31664
if 
  not locate_char_any_means_char_2d $scplayer {target} 68@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @STEAL4_31664
154@ = 2

:STEAL4_31664
if 
  is_char_dead 68@
goto_if_false @STEAL4_31687
154@ = 3

:STEAL4_31687
goto @STEAL4_31828

:STEAL4_31694
if 
  not is_char_dead 68@
goto_if_false @STEAL4_31748
if 
  locate_char_any_means_char_2d $scplayer {target} 68@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @STEAL4_31748
154@ = 1

:STEAL4_31748
if 
  is_char_dead 68@
goto_if_false @STEAL4_31771
154@ = 3

:STEAL4_31771
goto @STEAL4_31828

:STEAL4_31778
153@ = 0
goto @STEAL4_31828

:STEAL4_31792
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_31821
154@ = 3
153@ = 0

:STEAL4_31821
goto @STEAL4_31828

:STEAL4_31828
switch_start 155@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_31997 {caseNum1} 0 {caseLabel1} @STEAL4_31891 {caseNum2} 1 {caseLabel2} @STEAL4_31944 {caseNum3} -1 {caseLabel3} @STEAL4_32018 {caseNum4} -1 {caseLabel4} @STEAL4_32018 {caseNum5} -1 {caseLabel5} @STEAL4_32018 {caseNum6} -1 {caseLabel6} @STEAL4_32018 {caseNum7} -1 {caseLabel7} @STEAL4_32018

:STEAL4_31891
set_lvar_text_label 183@s = 'STL4_AA'
set_lvar_int_to_constant 185@ = 37000
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_32018

:STEAL4_31944
set_lvar_text_label 183@s = 'STL4_AB'
set_lvar_int_to_constant 185@ = 37001
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_32018

:STEAL4_31997
154@ = 3
gosub @STEAL4_35199
goto @STEAL4_32018

:STEAL4_32018
return 

:STEAL4_32020
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_32332 {caseNum1} 0 {caseLabel1} @STEAL4_32083 {caseNum2} 1 {caseLabel2} @STEAL4_32104 {caseNum3} 2 {caseLabel3} @STEAL4_32193 {caseNum4} 3 {caseLabel4} @STEAL4_32282 {caseNum5} 4 {caseLabel5} @STEAL4_32296 {caseNum6} -1 {caseLabel6} @STEAL4_32332 {caseNum7} -1 {caseLabel7} @STEAL4_32332

:STEAL4_32083
188@ = 0
154@ = 1
goto @STEAL4_32332

:STEAL4_32104
if 
  not is_char_dead 68@
goto_if_false @STEAL4_32163
if 
  not locate_char_any_means_char_3d 68@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_32163
154@ = 2

:STEAL4_32163
if 
  is_char_dead 68@
goto_if_false @STEAL4_32186
154@ = 3

:STEAL4_32186
goto @STEAL4_32332

:STEAL4_32193
if 
  not is_char_dead 68@
goto_if_false @STEAL4_32252
if 
  locate_char_any_means_char_3d 68@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @STEAL4_32252
154@ = 1

:STEAL4_32252
if 
  is_char_dead 68@
goto_if_false @STEAL4_32275
154@ = 3

:STEAL4_32275
goto @STEAL4_32332

:STEAL4_32282
153@ = 0
goto @STEAL4_32332

:STEAL4_32296
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_32325
154@ = 3
153@ = 0

:STEAL4_32325
goto @STEAL4_32332

:STEAL4_32332
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_32607 {caseNum1} 0 {caseLabel1} @STEAL4_32395 {caseNum2} 1 {caseLabel2} @STEAL4_32448 {caseNum3} 2 {caseLabel3} @STEAL4_32501 {caseNum4} 3 {caseLabel4} @STEAL4_32554 {caseNum5} -1 {caseLabel5} @STEAL4_32628 {caseNum6} -1 {caseLabel6} @STEAL4_32628 {caseNum7} -1 {caseLabel7} @STEAL4_32628

:STEAL4_32395
set_lvar_text_label 183@s = 'STL4_BA'
set_lvar_int_to_constant 185@ = 37002
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_32628

:STEAL4_32448
set_lvar_text_label 183@s = 'STL4_BB'
set_lvar_int_to_constant 185@ = 37003
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_32628

:STEAL4_32501
set_lvar_text_label 183@s = 'STL4_BC'
set_lvar_int_to_constant 185@ = 37004
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_32628

:STEAL4_32554
set_lvar_text_label 183@s = 'STL4_BD'
set_lvar_int_to_constant 185@ = 37005
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_32628

:STEAL4_32607
154@ = 3
gosub @STEAL4_35199
goto @STEAL4_32628

:STEAL4_32628
return 

:STEAL4_32630
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_32801 {caseNum1} 0 {caseLabel1} @STEAL4_32693 {caseNum2} 1 {caseLabel2} @STEAL4_32714 {caseNum3} 2 {caseLabel3} @STEAL4_32744 {caseNum4} 3 {caseLabel4} @STEAL4_32751 {caseNum5} 4 {caseLabel5} @STEAL4_32765 {caseNum6} -1 {caseLabel6} @STEAL4_32801 {caseNum7} -1 {caseLabel7} @STEAL4_32801

:STEAL4_32693
188@ = 0
154@ = 1
goto @STEAL4_32801

:STEAL4_32714
if 
  is_char_dead 68@
goto_if_false @STEAL4_32737
154@ = 3

:STEAL4_32737
goto @STEAL4_32801

:STEAL4_32744
goto @STEAL4_32801

:STEAL4_32751
153@ = 0
goto @STEAL4_32801

:STEAL4_32765
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_32794
154@ = 3
153@ = 0

:STEAL4_32794
goto @STEAL4_32801

:STEAL4_32801
switch_start 155@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @STEAL4_33023 {caseNum1} 0 {caseLabel1} @STEAL4_32864 {caseNum2} 1 {caseLabel2} @STEAL4_32917 {caseNum3} 2 {caseLabel3} @STEAL4_32970 {caseNum4} -1 {caseLabel4} @STEAL4_33044 {caseNum5} -1 {caseLabel5} @STEAL4_33044 {caseNum6} -1 {caseLabel6} @STEAL4_33044 {caseNum7} -1 {caseLabel7} @STEAL4_33044

:STEAL4_32864
set_lvar_text_label 183@s = 'STL4_CA'
set_lvar_int_to_constant 185@ = 37006
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_33044

:STEAL4_32917
set_lvar_text_label 183@s = 'STL4_CB'
set_lvar_int_to_constant 185@ = 37007
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_33044

:STEAL4_32970
set_lvar_text_label 183@s = 'STL4_CC'
set_lvar_int_to_constant 185@ = 37008
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_33044

:STEAL4_33023
154@ = 3
gosub @STEAL4_35199
goto @STEAL4_33044

:STEAL4_33044
return 

:STEAL4_33046
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_33217 {caseNum1} 0 {caseLabel1} @STEAL4_33109 {caseNum2} 1 {caseLabel2} @STEAL4_33130 {caseNum3} 2 {caseLabel3} @STEAL4_33160 {caseNum4} 3 {caseLabel4} @STEAL4_33167 {caseNum5} 4 {caseLabel5} @STEAL4_33181 {caseNum6} -1 {caseLabel6} @STEAL4_33217 {caseNum7} -1 {caseLabel7} @STEAL4_33217

:STEAL4_33109
188@ = 0
154@ = 1
goto @STEAL4_33217

:STEAL4_33130
if 
  is_char_dead 68@
goto_if_false @STEAL4_33153
154@ = 3

:STEAL4_33153
goto @STEAL4_33217

:STEAL4_33160
goto @STEAL4_33217

:STEAL4_33167
153@ = 0
goto @STEAL4_33217

:STEAL4_33181
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_33210
154@ = 3
153@ = 0

:STEAL4_33210
goto @STEAL4_33217

:STEAL4_33217
switch_start 155@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @STEAL4_33386 {caseNum1} 0 {caseLabel1} @STEAL4_33280 {caseNum2} 1 {caseLabel2} @STEAL4_33333 {caseNum3} -1 {caseLabel3} @STEAL4_33407 {caseNum4} -1 {caseLabel4} @STEAL4_33407 {caseNum5} -1 {caseLabel5} @STEAL4_33407 {caseNum6} -1 {caseLabel6} @STEAL4_33407 {caseNum7} -1 {caseLabel7} @STEAL4_33407

:STEAL4_33280
set_lvar_text_label 183@s = 'STL4_DA'
set_lvar_int_to_constant 185@ = 37009
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_33407

:STEAL4_33333
set_lvar_text_label 183@s = 'STL4_DB'
set_lvar_int_to_constant 185@ = 37010
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_33407

:STEAL4_33386
154@ = 3
gosub @STEAL4_35199
goto @STEAL4_33407

:STEAL4_33407
return 

:STEAL4_33409
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_33749 {caseNum1} 0 {caseLabel1} @STEAL4_33472 {caseNum2} 1 {caseLabel2} @STEAL4_33493 {caseNum3} 2 {caseLabel3} @STEAL4_33603 {caseNum4} 3 {caseLabel4} @STEAL4_33699 {caseNum5} 4 {caseLabel5} @STEAL4_33713 {caseNum6} -1 {caseLabel6} @STEAL4_33749 {caseNum7} -1 {caseLabel7} @STEAL4_33749

:STEAL4_33472
188@ = 0
154@ = 1
goto @STEAL4_33749

:STEAL4_33493
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL4_33523
154@ = 2
goto @STEAL4_33573

:STEAL4_33523
if 
  not is_char_dead 68@
goto_if_false @STEAL4_33573
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_33573
154@ = 2

:STEAL4_33573
if 
  is_char_dead 68@
goto_if_false @STEAL4_33596
154@ = 3

:STEAL4_33596
goto @STEAL4_33749

:STEAL4_33603
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL4_33669
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_dead 68@
goto_if_false @STEAL4_33669
if 
  is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_33669
154@ = 1

:STEAL4_33669
if 
  is_char_dead 68@
goto_if_false @STEAL4_33692
154@ = 3

:STEAL4_33692
goto @STEAL4_33749

:STEAL4_33699
153@ = 0
goto @STEAL4_33749

:STEAL4_33713
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_33742
154@ = 3
153@ = 0

:STEAL4_33742
goto @STEAL4_33749

:STEAL4_33749
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_34024 {caseNum1} 0 {caseLabel1} @STEAL4_33812 {caseNum2} 1 {caseLabel2} @STEAL4_33865 {caseNum3} 2 {caseLabel3} @STEAL4_33918 {caseNum4} 3 {caseLabel4} @STEAL4_33971 {caseNum5} -1 {caseLabel5} @STEAL4_34045 {caseNum6} -1 {caseLabel6} @STEAL4_34045 {caseNum7} -1 {caseLabel7} @STEAL4_34045

:STEAL4_33812
set_lvar_text_label 183@s = 'STL4_LA'
set_lvar_int_to_constant 185@ = 37025
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34045

:STEAL4_33865
set_lvar_text_label 183@s = 'STL4_LB'
set_lvar_int_to_constant 185@ = 37026
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34045

:STEAL4_33918
set_lvar_text_label 183@s = 'STL4_LC'
set_lvar_int_to_constant 185@ = 37027
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34045

:STEAL4_33971
set_lvar_text_label 183@s = 'STL4_LD'
set_lvar_int_to_constant 185@ = 37028
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34045

:STEAL4_34024
154@ = 3
gosub @STEAL4_35199
goto @STEAL4_34045

:STEAL4_34045
return 

:STEAL4_34047
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_34298 {caseNum1} 0 {caseLabel1} @STEAL4_34110 {caseNum2} 1 {caseLabel2} @STEAL4_34131 {caseNum3} 2 {caseLabel3} @STEAL4_34241 {caseNum4} 3 {caseLabel4} @STEAL4_34248 {caseNum5} 4 {caseLabel5} @STEAL4_34262 {caseNum6} -1 {caseLabel6} @STEAL4_34298 {caseNum7} -1 {caseLabel7} @STEAL4_34298

:STEAL4_34110
188@ = 0
154@ = 1
goto @STEAL4_34298

:STEAL4_34131
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL4_34161
154@ = 3
goto @STEAL4_34211

:STEAL4_34161
if 
  not is_char_dead 68@
goto_if_false @STEAL4_34211
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_34211
154@ = 3

:STEAL4_34211
if 
  is_char_dead 68@
goto_if_false @STEAL4_34234
154@ = 3

:STEAL4_34234
goto @STEAL4_34298

:STEAL4_34241
goto @STEAL4_34298

:STEAL4_34248
153@ = 0
goto @STEAL4_34298

:STEAL4_34262
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_34291
154@ = 3
153@ = 0

:STEAL4_34291
goto @STEAL4_34298

:STEAL4_34298
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_34573 {caseNum1} 0 {caseLabel1} @STEAL4_34361 {caseNum2} 1 {caseLabel2} @STEAL4_34414 {caseNum3} 2 {caseLabel3} @STEAL4_34467 {caseNum4} 3 {caseLabel4} @STEAL4_34520 {caseNum5} -1 {caseLabel5} @STEAL4_34594 {caseNum6} -1 {caseLabel6} @STEAL4_34594 {caseNum7} -1 {caseLabel7} @STEAL4_34594

:STEAL4_34361
set_lvar_text_label 183@s = 'STL4_LA'
set_lvar_int_to_constant 185@ = 37025
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34594

:STEAL4_34414
set_lvar_text_label 183@s = 'STL4_LB'
set_lvar_int_to_constant 185@ = 37026
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34594

:STEAL4_34467
set_lvar_text_label 183@s = 'STL4_LC'
set_lvar_int_to_constant 185@ = 37027
set_lvar_int_to_var_int 186@ = $scplayer
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34594

:STEAL4_34520
set_lvar_text_label 183@s = 'STL4_LD'
set_lvar_int_to_constant 185@ = 37028
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_34594

:STEAL4_34573
154@ = 3
gosub @STEAL4_35199
goto @STEAL4_34594

:STEAL4_34594
return 

:STEAL4_34596
switch_start 154@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_34847 {caseNum1} 0 {caseLabel1} @STEAL4_34659 {caseNum2} 1 {caseLabel2} @STEAL4_34680 {caseNum3} 2 {caseLabel3} @STEAL4_34790 {caseNum4} 3 {caseLabel4} @STEAL4_34797 {caseNum5} 4 {caseLabel5} @STEAL4_34811 {caseNum6} -1 {caseLabel6} @STEAL4_34847 {caseNum7} -1 {caseLabel7} @STEAL4_34847

:STEAL4_34659
188@ = 0
154@ = 1
goto @STEAL4_34847

:STEAL4_34680
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL4_34710
154@ = 3
goto @STEAL4_34760

:STEAL4_34710
if 
  not is_char_dead 68@
goto_if_false @STEAL4_34760
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_char_in_car 68@ {vehicle} $car
goto_if_false @STEAL4_34760
154@ = 3

:STEAL4_34760
if 
  is_char_dead 68@
goto_if_false @STEAL4_34783
154@ = 3

:STEAL4_34783
goto @STEAL4_34847

:STEAL4_34790
goto @STEAL4_34847

:STEAL4_34797
153@ = 0
goto @STEAL4_34847

:STEAL4_34811
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_34840
154@ = 3
153@ = 0

:STEAL4_34840
goto @STEAL4_34847

:STEAL4_34847
switch_start 155@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @STEAL4_35122 {caseNum1} 0 {caseLabel1} @STEAL4_34910 {caseNum2} 1 {caseLabel2} @STEAL4_34963 {caseNum3} 2 {caseLabel3} @STEAL4_35016 {caseNum4} 3 {caseLabel4} @STEAL4_35069 {caseNum5} -1 {caseLabel5} @STEAL4_35143 {caseNum6} -1 {caseLabel6} @STEAL4_35143 {caseNum7} -1 {caseLabel7} @STEAL4_35143

:STEAL4_34910
set_lvar_text_label 183@s = 'STL4_MA'
set_lvar_int_to_constant 185@ = 37030
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_35143

:STEAL4_34963
set_lvar_text_label 183@s = 'STL4_MB'
set_lvar_int_to_constant 185@ = 37031
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_35143

:STEAL4_35016
set_lvar_text_label 183@s = 'STL4_MC'
set_lvar_int_to_constant 185@ = 37032
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_35143

:STEAL4_35069
set_lvar_text_label 183@s = 'STL4_MD'
set_lvar_int_to_constant 185@ = 37033
set_lvar_int_to_lvar_int 186@ = 68@
187@ = 0
gosub @STEAL4_35199
goto @STEAL4_35143

:STEAL4_35122
154@ = 3
gosub @STEAL4_35199
goto @STEAL4_35143

:STEAL4_35143
return 
if 
  153@ <> 0
goto_if_false @STEAL4_35170
154@ = 4

:STEAL4_35170
return 

:STEAL4_35172
if 
  153@ <> 0
goto_if_false @STEAL4_35197
154@ = 3

:STEAL4_35197
return 

:STEAL4_35199
if 
  154@ <> 3
goto_if_false @STEAL4_35552
switch_start 188@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STEAL4_35545 {caseNum1} -1 {caseLabel1} @STEAL4_35280 {caseNum2} 0 {caseLabel2} @STEAL4_35311 {caseNum3} 1 {caseLabel3} @STEAL4_35352 {caseNum4} 2 {caseLabel4} @STEAL4_35395 {caseNum5} 3 {caseLabel5} @STEAL4_35470 {caseNum6} 4 {caseLabel6} @STEAL4_35506 {caseNum7} -1 {caseLabel7} @STEAL4_35545

:STEAL4_35280
186@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
goto @STEAL4_35545

:STEAL4_35311
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 185@
if 
  not is_char_dead 186@
goto_if_false @STEAL4_35338

:STEAL4_35338
188@ += 1
goto @STEAL4_35545

:STEAL4_35352
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_35388
play_mission_audio MissionAudioSlot.Slot1
print_now 183@s {time} 3000 {flag} 1
188@ += 1

:STEAL4_35388
goto @STEAL4_35545

:STEAL4_35395
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_35424
188@ += 1
goto @STEAL4_35463

:STEAL4_35424
if 
  does_char_exist 186@
goto_if_false @STEAL4_35463
if 
  is_char_dead 186@
goto_if_false @STEAL4_35463
188@ += 1

:STEAL4_35463
goto @STEAL4_35545

:STEAL4_35470
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  not is_char_dead 186@
goto_if_false @STEAL4_35492

:STEAL4_35492
188@ += 1
goto @STEAL4_35545

:STEAL4_35506
if 
  154@ <> 2
goto_if_false @STEAL4_35538
155@ += 1
188@ = 0

:STEAL4_35538
goto @STEAL4_35545

:STEAL4_35545
goto @STEAL4_35609

:STEAL4_35552
if 
  188@ <> 0
goto_if_false @STEAL4_35574
clear_mission_audio MissionAudioSlot.Slot1

:STEAL4_35574
if 
  not is_char_dead 186@
goto_if_false @STEAL4_35590

:STEAL4_35590
clear_this_print 183@s
188@ = 0
155@ = 0

:STEAL4_35609
return 

:STEAL4_35611
switch_start 194@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STEAL4_35969 {caseNum1} -1 {caseLabel1} @STEAL4_35674 {caseNum2} 0 {caseLabel2} @STEAL4_35705 {caseNum3} 1 {caseLabel3} @STEAL4_35753 {caseNum4} 2 {caseLabel4} @STEAL4_35853 {caseNum5} 3 {caseLabel5} @STEAL4_35928 {caseNum6} -1 {caseLabel6} @STEAL4_35969 {caseNum7} -1 {caseLabel7} @STEAL4_35969

:STEAL4_35674
192@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
goto @STEAL4_35969

:STEAL4_35705
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 191@
if 
  not is_char_dead 192@
goto_if_false @STEAL4_35739
disable_char_speech 192@ {stopNow} False

:STEAL4_35739
194@ += 1
goto @STEAL4_35969

:STEAL4_35753
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL4_35846
if 
  not is_char_dead 192@
goto_if_false @STEAL4_35825
if 
  not is_char_talking 192@
goto_if_false @STEAL4_35825
if 
  193@ == 1
goto_if_false @STEAL4_35825
attach_mission_audio_to_char MissionAudioSlot.Slot1 {handle} 192@

:STEAL4_35825
play_mission_audio MissionAudioSlot.Slot1
print_now 189@s {time} 10000 {flag} 1
194@ += 1

:STEAL4_35846
goto @STEAL4_35969

:STEAL4_35853
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL4_35882
194@ += 1
goto @STEAL4_35921

:STEAL4_35882
if 
  does_char_exist 192@
goto_if_false @STEAL4_35921
if 
  is_char_dead 192@
goto_if_false @STEAL4_35921
194@ += 1

:STEAL4_35921
goto @STEAL4_35969

:STEAL4_35928
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
if 
  not is_char_dead 192@
goto_if_false @STEAL4_35955
enable_char_speech 192@

:STEAL4_35955
194@ += 1
goto @STEAL4_35969

:STEAL4_35969
return 

//-------------Mission 70---------------
// Originally: Puncture Wounds

:STEAL5
script_name 'STEAL5'
gosub @STEAL5_47
if 
  has_deatharrest_been_executed 
goto_if_false @STEAL5_38
gosub @STEAL5_5099

:STEAL5_38
gosub @STEAL5_5195
terminate_this_script 

:STEAL5_47
$onmission = 1
register_mission_given 
load_mission_text 'STEAL5'
if 
  $onmission == 0
goto_if_false @STEAL5_128
36@ = create_object #TEMP_STINGER2 {x} -2025.8 {y} 169.2 {z} 27.7
40@ = add_blip_for_coord -2025.8 {y} 169.2 {z} 27.7

:STEAL5_128
clear_prints 
wait 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
$s5_stingers_left = 3
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
79@ = 0.0
80@ = 0.0
81@ = 0.0
82@ = 0.0
83@ = 0.0
84@ = 0.0
85@ = 0.0
86@ = 0.0
87@ = 0.0
88@ = 0.0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
73@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
make_player_gang_disappear 
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
load_scene -2031.0 {y} 149.0 {z} 29.0
load_cutscene 'STEAL_5'

:STEAL5_422
if 
  not has_cutscene_loaded 
goto_if_false @STEAL5_446
wait 0
goto @STEAL5_422

:STEAL5_446
start_cutscene 
do_fade 1000 {direction} Fade.In

:STEAL5_455
if 
  not has_cutscene_finished 
goto_if_false @STEAL5_479
wait 0
goto @STEAL5_455

:STEAL5_479
do_fade 0 {direction} Fade.Out

:STEAL5_485
if 
  get_fading_status 
goto_if_false @STEAL5_509
wait 0
goto @STEAL5_485

:STEAL5_509
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 561
request_model 549
request_model 40
request_model #TEMP_STINGER2
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1822

:STEAL5_574
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @STEAL5_600
wait 0
goto @STEAL5_574

:STEAL5_600
load_all_models_now 
clear_area -2025.8 {y} 169.2 {z} 27.7 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 49@ = 549
gosub @STEAL5_7258
39@ = create_car 549 {x} -2025.8 {y} 169.2 {z} 27.7
clear_area -1913.5 {y} -593.8 {z} 36.9 {radius} 5.0 {clearParticles} True
set_lvar_int_to_constant 49@ = 561
gosub @STEAL5_7258
34@ = create_car 561 {x} -1913.5 {y} -593.8 {z} 36.9
set_car_heading 34@ {heading} 180.0
set_can_respray_car 34@ {changeColors} False
set_car_can_go_against_traffic 34@ {state} True
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 34@ {state} False
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} False
45@ = 1
set_car_driving_style 34@ {drivingStyle} DrivingMode.AvoidCars
set_car_only_damaged_by_player 34@ {state} True
add_stuck_car_check_with_warp 34@ {distance} 0.5 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 7
35@ = create_char_inside_car 34@ {pedType} PedType.CivFemale {modelId} 40
set_load_collision_for_char_flag 35@ {state} True
set_char_can_be_shot_in_vehicle 35@ {state} False
display_onscreen_counter_with_string $s5_stingers_left {display} CounterDisplay.Number {text} 'STE5_04'
print_now 'STE5_12' {time} 7000 {flag} 1
clear_area -2028.6 {y} 162.9 {z} 27.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2028.6 {y} 162.9 {z} 27.8
set_char_heading $scplayer {heading} 336.6
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
change_garage_type 'AMUMIS' {type} GarageType.ForScriptToOpenAndClose
do_fade 500 {direction} Fade.In
TIMERB = 0

:STEAL5_971
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @STEAL5_997
goto @STEAL5_5117

:STEAL5_997
gosub @STEAL5_5303
if 
  44@ == 1
goto_if_false @STEAL5_1029
goto @STEAL5_5099

:STEAL5_1029
if 
  41@ == 0
goto_if_false @STEAL5_1072
if 
  47@ == 1
goto_if_false @STEAL5_1072
gosub @STEAL5_5405

:STEAL5_1072
if 
  41@ == 0
goto_if_false @STEAL5_1735
if 
  45@ == 1
goto_if_false @STEAL5_1191
if 
  not is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1191
remove_blip 40@
40@ = add_blip_for_car 39@
set_blip_as_friendly 40@ {state} True
if 
  TIMERB > 14000
goto_if_false @STEAL5_1182
print_now 'STE5_06' {time} 4000 {flag} 1

:STEAL5_1182
clear_help 
45@ = 0

:STEAL5_1191
if 
  45@ == 0
goto_if_false @STEAL5_1290
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1290
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} False
if 
  TIMERB > 14000
goto_if_false @STEAL5_1283
print_now 'STE5_07' {time} 4000 {flag} 1

:STEAL5_1283
45@ = 1

:STEAL5_1290
if 
  TIMERB > 14000
goto_if_false @STEAL5_1395
if 
  $s5_stingers_left == 3
goto_if_false @STEAL5_1393
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1377
if 
  not is_minigame_in_progress 
goto_if_false @STEAL5_1370
print_help_forever 'STE5_03'

:STEAL5_1370
goto @STEAL5_1379

:STEAL5_1377
clear_help 

:STEAL5_1379
47@ = 1
goto @STEAL5_1395

:STEAL5_1393
clear_help 

:STEAL5_1395
if 
  $s5_stingers_left == 0
goto_if_false @STEAL5_1457
if 
  TIMERA > 5000
goto_if_false @STEAL5_1457
clear_prints 
print_now 'STE5_05' {time} 4000 {flag} 1
goto @STEAL5_5099

:STEAL5_1457
gosub @STEAL5_6321
gosub @STEAL5_6445
gosub @STEAL5_6500
if 
  42@ == 0
goto_if_false @STEAL5_1563
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_1563
print_now 'STE5_01' {time} 7000 {flag} 1
print_with_number 'STE5_02' {num} 3 {duration} 7000 {flag} 1
TIMERB = 0
42@ = 1

:STEAL5_1563
if 
  42@ == 1
goto_if_false @STEAL5_1735
if 
  is_car_tyre_burst 34@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_1735
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
remove_stuck_car_check 34@
if 
  not is_char_dead 35@
goto_if_false @STEAL5_1735
89@ = open_sequence_task 
task_leave_any_car -1
task_smart_flee_char -1 {threat} $scplayer {radius} 100.0 {time} 100000
close_sequence_task 89@
perform_sequence_task 35@ {sequence} 89@
clear_sequence_task 89@
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
set_car_watertight 34@ {state} False
print_now 'STE5_13' {time} 7000 {flag} 1
TIMERA = 0
42@ = 0
41@ = 1

:STEAL5_1735
if 
  41@ == 1
goto_if_false @STEAL5_2832
if 
  42@ == 0
goto_if_false @STEAL5_1832
if 
  not is_char_in_any_car $scplayer
goto_if_false @STEAL5_1825
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @STEAL5_1825
42@ = 1

:STEAL5_1825
gosub @STEAL5_5405

:STEAL5_1832
if 
  42@ == 1
goto_if_false @STEAL5_1956
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
51@ = 0
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
43@ = 1
skip_cutscene_start_internal @STEAL5_2403
task_use_mobile_phone $scplayer {start} True
clear_help 
clear_onscreen_counter $s5_stingers_left
51@ = 3
53@ = 0
gosub @STEAL5_8489
TIMERA = 0
42@ = 2

:STEAL5_1956
if 
  42@ == 2
goto_if_false @STEAL5_2039
if 
  TIMERA > 2000
goto_if_false @STEAL5_2039
if 
  51@ == 0
goto_if_false @STEAL5_2039
51@ = 1
53@ = 0
gosub @STEAL5_8489
42@ = 3

:STEAL5_2039
if 
  42@ == 3
goto_if_false @STEAL5_2089
if 
  51@ == 0
goto_if_false @STEAL5_2089
task_use_mobile_phone $scplayer {start} False
42@ = 4

:STEAL5_2089
if 
  42@ == 4
goto_if_false @STEAL5_2291
$task_status = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_2291
89@ = open_sequence_task 
task_goto_car -1 {vehicle} 34@ {time} -2 {radius} 1.0
close_sequence_task 89@
perform_sequence_task $scplayer {sequence} 89@
clear_sequence_task 89@
set_music_does_fade False
draw_subtitles_before_fade False
do_fade 700 {direction} Fade.Out

:STEAL5_2188
if 
  get_fading_status 
goto_if_false @STEAL5_2212
wait 0
goto @STEAL5_2188

:STEAL5_2212
load_mission_audio MissionAudioSlot.Slot3 {audioId} 32000

:STEAL5_2219
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @STEAL5_2245
wait 0
goto @STEAL5_2219

:STEAL5_2245
gosub @STEAL5_5303
if 
  44@ == 1
goto_if_false @STEAL5_2277
goto @STEAL5_5099

:STEAL5_2277
TIMERA = 0
42@ = 5

:STEAL5_2291
if 
  42@ == 5
goto_if_false @STEAL5_2360
if 
  TIMERA > 1000
goto_if_false @STEAL5_2360
play_mission_audio MissionAudioSlot.Slot3
51@ = 2
53@ = 0
gosub @STEAL5_8489
42@ = 6

:STEAL5_2360
if 
  42@ == 6
goto_if_false @STEAL5_2832
if 
  51@ == 0
goto_if_false @STEAL5_2832
43@ = 0

:STEAL5_2403
skip_cutscene_end 
gosub @STEAL5_5303
if 
  44@ == 1
goto_if_false @STEAL5_2437
goto @STEAL5_5099

:STEAL5_2437
set_music_does_fade True
draw_subtitles_before_fade True
if 
  43@ == 1
goto_if_false @STEAL5_2545
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
51@ = 0
do_fade 500 {direction} Fade.Out

:STEAL5_2487
if 
  get_fading_status 
goto_if_false @STEAL5_2511
wait 0
goto @STEAL5_2487

:STEAL5_2511
gosub @STEAL5_5303
if 
  44@ == 1
goto_if_false @STEAL5_2543
goto @STEAL5_5099

:STEAL5_2543
clear_prints 

:STEAL5_2545
clear_mission_audio MissionAudioSlot.Slot3
clear_char_tasks_immediately $scplayer
delete_char 35@
if 
  not is_car_dead 34@
goto_if_false @STEAL5_2618
warp_char_into_car $scplayer {vehicle} 34@
set_car_only_damaged_by_player 34@ {state} False
fix_car_tyre 34@ {tireId} WheelId.FrontRight
fix_car_tyre 34@ {tireId} WheelId.FrontLeft
fix_car_tyre 34@ {tireId} WheelId.RearLeft
fix_car_tyre 34@ {tireId} WheelId.RearRight

:STEAL5_2618
delete_object 36@
83@, 84@, 85@ = get_char_coordinates $scplayer
load_scene 83@ {y} 84@ {z} 85@
mark_car_as_no_longer_needed 39@
mark_char_as_no_longer_needed 35@
mark_model_as_no_longer_needed 549
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed #TEMP_STINGER2
set_car_only_damaged_by_player 34@ {state} False
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
remove_blip 40@
40@ = add_blip_for_coord -2026.9 {y} 179.1 {z} 27.5
45@ = 1
clear_prints 
print_now 'STE5_11' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In

:STEAL5_2762
if 
  get_fading_status 
goto_if_false @STEAL5_2786
wait 0
goto @STEAL5_2762

:STEAL5_2786
gosub @STEAL5_5303
if 
  44@ == 1
goto_if_false @STEAL5_2818
goto @STEAL5_5099

:STEAL5_2818
42@ = 0
41@ = 2

:STEAL5_2832
if 
  41@ == 2
goto_if_false @STEAL5_4228
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @STEAL5_2911
if 
  not is_car_dead 34@
goto_if_false @STEAL5_2911
set_car_coordinates 34@ {x} -2011.8 {y} 176.5 {z} 26.6
set_car_heading 34@ {heading} 97.7

:STEAL5_2911
if 
  42@ == 0
goto_if_false @STEAL5_3383
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3383
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STEAL5_3383
if 
  locate_char_in_car_3d $scplayer {x} -2033.1 {y} 178.6 {z} 27.8 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @STEAL5_3383
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:STEAL5_3026
if 
  get_fading_status 
goto_if_false @STEAL5_3050
wait 0
goto @STEAL5_3026

:STEAL5_3050
set_area_visible 1
remove_blip 40@
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
51@ = 0
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_area_visible $scplayer {areaId} 1
clear_area -2033.3 {y} 179.1 {z} 27.4 {radius} 25.0 {clearParticles} True
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3178
set_vehicle_area_visible 34@ {interiorId} 1
set_car_coordinates 34@ {x} -2033.3 {y} 179.1 {z} 27.4
set_car_heading 34@ {heading} 90.8

:STEAL5_3178
load_scene_in_direction -2048.1001 {y} 178.0 {z} 28.8 {heading} 270.0
set_fixed_camera_position -2048.1001 {y} 178.0 {z} 28.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2037.9 {y} 178.8 {z} 27.4 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:STEAL5_3258
if 
  get_fading_status 
goto_if_false @STEAL5_3282
wait 0
goto @STEAL5_3258

:STEAL5_3282
open_garage 'HBGDSFS'

:STEAL5_3293
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @STEAL5_3326
wait 0
goto @STEAL5_3293

:STEAL5_3326
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3376
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} -2045.4 {y} 178.3 {z} 27.6 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:STEAL5_3376
42@ = 1

:STEAL5_3383
if 
  42@ == 1
goto_if_false @STEAL5_3510
if 
  not is_car_dead 34@
goto_if_false @STEAL5_3510
$task_status = get_script_task_status $scplayer {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_3510
89@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} -2035.4709 {y} 176.6342 {z} 27.8359 {speed} MoveState.Walk {time} -1
close_sequence_task 89@
perform_sequence_task $scplayer {sequence} 89@
clear_sequence_task 89@
TIMERA = 0
42@ = 2

:STEAL5_3510
if 
  42@ == 2
goto_if_false @STEAL5_4041
if 
  TIMERA > 2000
goto_if_false @STEAL5_4041
do_fade 500 {direction} Fade.Out

:STEAL5_3554
if 
  get_fading_status 
goto_if_false @STEAL5_3578
wait 0
goto @STEAL5_3554

:STEAL5_3578
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene -2045.4 {y} 173.1 {z} 27.8
load_scene_in_direction -2045.4 {y} 173.1 {z} 27.8 {heading} 309.5
clear_prints 
clear_char_tasks_immediately $scplayer
delete_car 34@
clear_area -2027.2 {y} 179.5 {z} 27.8 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2027.2 {y} 179.5 {z} 27.8
set_char_heading $scplayer {heading} 275.9
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
close_garage 'HBGDSFS'

:STEAL5_3727
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @STEAL5_3760
wait 0
goto @STEAL5_3727

:STEAL5_3760
$showroom_cash_pickup = create_protection_pickup -1969.463 {y} 289.5335 {z} 34.6719 {revenueLimit} $showroom_revenue {revenueRate} $showroom_revenue
set_player_control $player1 {state} False
switch_widescreen True
load_scene -1980.301 {y} 288.1622 {z} 38.2246
set_fixed_camera_position -1980.301 {y} 288.1622 {z} 38.2246 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1979.313 {y} 288.0155 {z} 38.1743 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:STEAL5_3872
if 
  get_fading_status 
goto_if_false @STEAL5_3896
wait 0
goto @STEAL5_3872

:STEAL5_3896
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -1972.1851 {y} 291.1454 {z} 35.7724 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1971.343 {y} 290.6249 {z} 35.6284 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $showroom_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:STEAL5_4003
if 
  get_fading_status 
goto_if_false @STEAL5_4027
wait 0
goto @STEAL5_4003

:STEAL5_4027
do_fade 500 {direction} Fade.In
goto @STEAL5_5117

:STEAL5_4041
if 
  45@ == 1
goto_if_false @STEAL5_4123
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STEAL5_4123
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
clear_prints 
print_now 'STE5_08' {time} 4000 {flag} 1
45@ = 0

:STEAL5_4123
if 
  45@ == 0
goto_if_false @STEAL5_4228
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STEAL5_4228
remove_blip 40@
if 
  42@ == 0
goto_if_false @STEAL5_4203
40@ = add_blip_for_coord -2033.1 {y} 178.6 {z} 27.8

:STEAL5_4203
clear_prints 
print_now 'STE5_11' {time} 7000 {flag} 1
45@ = 1

:STEAL5_4228
if 
  41@ == 10
goto_if_false @STEAL5_5085
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @STEAL5_4788
if 
  50@ == 0
goto_if_false @STEAL5_4788
clear_prints 
do_fade 500 {direction} Fade.Out

:STEAL5_4298
if 
  get_fading_status 
goto_if_false @STEAL5_4322
wait 0
goto @STEAL5_4298

:STEAL5_4322
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
51@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -2125.5 {y} -2467.5 {z} 29.6 {radius} 1.0 {clearParticles} True
86@, 87@, 88@ = get_char_coordinates $scplayer
request_collision -2125.5 {y} -2467.5
load_scene -2125.5 {y} -2467.5 {z} 29.6
set_char_coordinates $scplayer {x} -2125.5 {y} -2467.5 {z} 29.6
if 
  not is_char_dead 35@
goto_if_false @STEAL5_4467
clear_char_tasks 35@

:STEAL5_4467
request_collision -2117.8 {y} -2456.8
load_scene -2115.6001 {y} -2456.5 {z} 30.6
load_all_models_now 
if 
  not is_car_dead 34@
goto_if_false @STEAL5_4573
remove_stuck_car_check 34@
clear_area -2117.8 {y} -2456.8 {z} 29.3 {radius} 30.0 {clearParticles} True
set_car_coordinates 34@ {x} -2117.8 {y} -2456.8 {z} 29.3
set_car_heading 34@ {heading} 233.8

:STEAL5_4573
set_fixed_camera_position -2106.0 {y} -2465.7 {z} 30.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2112.2 {y} -2461.1001 {z} 29.6 {switchStyle} SwitchType.JumpCut
print_now 'STE5_14' {time} 5000 {flag} 1
do_fade 500 {direction} Fade.In

:STEAL5_4647
if 
  get_fading_status 
goto_if_false @STEAL5_4671
wait 0
goto @STEAL5_4647

:STEAL5_4671
open_garage 'AMUMIS'

:STEAL5_4682
if 
  not is_garage_open 'AMUMIS'
goto_if_false @STEAL5_4715
wait 0
goto @STEAL5_4682

:STEAL5_4715
if 
  not is_char_dead 35@
goto_if_false @STEAL5_4781
if 
  not is_car_dead 34@
goto_if_false @STEAL5_4781
task_car_drive_to_coord 35@ {vehicle} 34@ {x} -2108.0 {y} -2464.2 {z} 29.6 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:STEAL5_4781
50@ = 1

:STEAL5_4788
if 
  50@ == 1
goto_if_false @STEAL5_5085
if 
  not is_char_dead 35@
goto_if_false @STEAL5_5085
$task_status = get_script_task_status 35@ {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_5085
close_garage 'AMUMIS'

:STEAL5_4862
if 
  not is_garage_closed 'AMUMIS'
goto_if_false @STEAL5_4895
wait 0
goto @STEAL5_4862

:STEAL5_4895
do_fade 500 {direction} Fade.Out

:STEAL5_4902
if 
  get_fading_status 
goto_if_false @STEAL5_4926
wait 0
goto @STEAL5_4902

:STEAL5_4926
request_collision 86@ {y} 87@
88@ -= 1.0
load_scene 86@ {y} 87@ {z} 88@
load_all_models_now 
clear_area 86@ {y} 87@ {z} 88@ {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 86@ {y} 87@ {z} 88@
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'STE5_14' {time} 5500 {flag} 1
do_fade 500 {direction} Fade.In

:STEAL5_5054
if 
  get_fading_status 
goto_if_false @STEAL5_5078
wait 0
goto @STEAL5_5054

:STEAL5_5078
goto @STEAL5_5099

:STEAL5_5085
gosub @STEAL5_8785
goto @STEAL5_971

:STEAL5_5099
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STEAL5_5117
$flag_steal_mission_counter += 1
remove_blip $steal_contact_blip
switch_car_generator $steal_car_cargen5 {amount} 101
clear_prints 
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'STEAL_5'
player_made_progress 1
return 

:STEAL5_5195
if 
  is_var_text_label_empty s$shop_name
goto_if_false @STEAL5_5213
restore_camera_jumpcut 

:STEAL5_5213
set_music_does_fade True
remove_blip 40@
clear_mission_audio MissionAudioSlot.Slot3
clear_onscreen_counter $s5_stingers_left
if 
  not is_char_dead $scplayer
goto_if_false @STEAL5_5254
shut_char_up_for_scripted_speech $scplayer {state} False

:STEAL5_5254
shut_all_chars_up False
delete_object 36@
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 561
mark_model_as_no_longer_needed 549
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed #TEMP_STINGER2
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:STEAL5_5303
if 
  is_car_dead 34@
goto_if_false @STEAL5_5344
clear_prints 
print_now 'STE5_09' {time} 4000 {flag} 1
44@ = 1

:STEAL5_5344
if 
  41@ == 0
goto_if_false @STEAL5_5403
if 
  is_car_dead 39@
goto_if_false @STEAL5_5403
clear_prints 
print_now 'STE5_10' {time} 7000 {flag} 1
44@ = 1

:STEAL5_5403
return 

:STEAL5_5405
if 
  not is_car_dead 39@
goto_if_false @STEAL5_5652
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @STEAL5_5652
if 
  TIMERA > 5000
goto_if_false @STEAL5_5632
if 
  $s5_stingers_left > 0
goto_if_false @STEAL5_5627
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @STEAL5_5620
delete_object 36@
83@, 84@, 85@ = get_offset_from_car_in_world_coords 39@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} -0.5
$heading = get_car_heading 39@
$heading += 90.0
85@ = get_ground_z_for_3d_coord 83@ {y} 84@ {z} 85@
36@ = create_object #TEMP_STINGER2 {x} 83@ {y} 84@ {z} 85@
set_object_heading 36@ {heading} $heading
report_mission_audio_event_at_position 83@ {y} 84@ {z} 85@ {soundId} ScriptSound.SoundStingerFire
78@ = 1
$s5_stingers_left -= 1
TIMERA = 0

:STEAL5_5620
goto @STEAL5_5632

:STEAL5_5627
clear_onscreen_counter $s5_stingers_left

:STEAL5_5632
if 
  $s5_stingers_left <> 3
goto_if_false @STEAL5_5652
clear_help 

:STEAL5_5652
if 
  78@ == 1
goto_if_false @STEAL5_5735
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @STEAL5_5735
83@, 84@, 85@ = get_offset_from_car_in_world_coords 39@ {xOffset} 0.0 {yOffset} -3.0 {zOffset} -0.5
report_mission_audio_event_at_position 83@ {y} 84@ {z} 85@ {soundId} ScriptSound.SoundStingerReload
78@ = 2

:STEAL5_5735
if 
  does_object_exist 36@
goto_if_false @STEAL5_6297
79@, 81@, 85@ = get_offset_from_object_in_world_coords 36@ {xOffset} -0.5 {yOffset} 2.5 {zOffset} 0.0
80@, 82@, 85@ = get_offset_from_object_in_world_coords 36@ {xOffset} -0.5 {yOffset} -2.5 {zOffset} 0.0
if 
  is_char_in_any_car $scplayer
goto_if_false @STEAL5_5968
38@ = store_car_char_is_in_no_save $scplayer
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 79@ {leftBottomY} 81@ {rightTopX} 80@ {rightTopY} 82@ {angle} 1.0 {drawSphere} False
goto_if_false @STEAL5_5968
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_5893
burst_car_tyre 38@ {tireId} WheelId.FrontRight

:STEAL5_5893
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.FrontLeft
goto_if_false @STEAL5_5918
burst_car_tyre 38@ {tireId} WheelId.FrontLeft

:STEAL5_5918
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.RearLeft
goto_if_false @STEAL5_5943
burst_car_tyre 38@ {tireId} WheelId.RearLeft

:STEAL5_5943
if 
  not is_car_tyre_burst 38@ {tireId} WheelId.RearRight
goto_if_false @STEAL5_5968
burst_car_tyre 38@ {tireId} WheelId.RearRight

:STEAL5_5968
if 
  not is_char_dead 35@
goto_if_false @STEAL5_6119
if 
  is_char_in_angled_area_in_car_2d 35@ {leftBottomX} 79@ {leftBottomY} 81@ {rightTopX} 80@ {rightTopY} 82@ {angle} 1.0 {drawSphere} False
goto_if_false @STEAL5_6119
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_6044
burst_car_tyre 34@ {tireId} WheelId.FrontRight

:STEAL5_6044
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.FrontLeft
goto_if_false @STEAL5_6069
burst_car_tyre 34@ {tireId} WheelId.FrontLeft

:STEAL5_6069
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.RearLeft
goto_if_false @STEAL5_6094
burst_car_tyre 34@ {tireId} WheelId.RearLeft

:STEAL5_6094
if 
  not is_car_tyre_burst 34@ {tireId} WheelId.RearRight
goto_if_false @STEAL5_6119
burst_car_tyre 34@ {tireId} WheelId.RearRight

:STEAL5_6119
37@ = get_random_car_of_type_in_angled_area_no_save 79@ {leftBottomY} 81@ {rightTopX} 80@ {rightTopY} 82@ {angle} 1.0 {modelId} -1
if 
  not is_car_dead 37@
goto_if_false @STEAL5_6297
if 
  not is_int_lvar_equal_to_int_lvar 37@ == 34@
goto_if_false @STEAL5_6297
if 
  not is_int_lvar_equal_to_int_lvar 37@ == 39@
goto_if_false @STEAL5_6297
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.FrontRight
goto_if_false @STEAL5_6222
burst_car_tyre 37@ {tireId} WheelId.FrontRight

:STEAL5_6222
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.FrontLeft
goto_if_false @STEAL5_6247
burst_car_tyre 37@ {tireId} WheelId.FrontLeft

:STEAL5_6247
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.RearLeft
goto_if_false @STEAL5_6272
burst_car_tyre 37@ {tireId} WheelId.RearLeft

:STEAL5_6272
if 
  not is_car_tyre_burst 37@ {tireId} WheelId.RearRight
goto_if_false @STEAL5_6297
burst_car_tyre 37@ {tireId} WheelId.RearRight

:STEAL5_6297
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @STEAL5_6319
burst_car_tyre 34@ {tireId} WheelId.FrontRight

:STEAL5_6319
return 

:STEAL5_6321
if 
  not is_car_dead 34@
goto_if_false @STEAL5_6443
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @STEAL5_6385
set_car_cruise_speed 34@ {maxSpeed} 50.0
goto @STEAL5_6443

:STEAL5_6385
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @STEAL5_6433
set_car_cruise_speed 34@ {maxSpeed} 20.0
goto @STEAL5_6443

:STEAL5_6433
set_car_cruise_speed 34@ {maxSpeed} 15.0

:STEAL5_6443
return 

:STEAL5_6445
if 
  not is_car_dead 34@
goto_if_false @STEAL5_6498
if 
  is_car_on_screen 34@
goto_if_false @STEAL5_6491
set_car_watertight 34@ {state} False
goto @STEAL5_6498

:STEAL5_6491
set_car_watertight 34@ {state} True

:STEAL5_6498
return 

:STEAL5_6500
if 
  not is_char_dead 35@
goto_if_false @STEAL5_7256
if 
  is_char_in_car 35@ {vehicle} 34@
goto_if_false @STEAL5_7256
if 
  46@ == 0
goto_if_false @STEAL5_6847
89@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1913.1 {y} -593.8 {z} 38.3 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1912.6 {y} -744.7 {z} 44.7 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1914.2 {y} -894.9 {z} 45.0 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1914.3 {y} -1045.0 {z} 38.3 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1907.9 {y} -1195.2 {z} 39.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1910.7 {y} -1345.3 {z} 40.4 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1795.1 {y} -1442.4 {z} 35.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1658.5 {y} -1506.1 {z} 35.7 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 89@
perform_sequence_task 35@ {sequence} 89@
clear_sequence_task 89@
46@ = 1

:STEAL5_6847
if 
  46@ == 1
goto_if_false @STEAL5_7188
$task_status = get_script_task_status 35@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_7188
89@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1704.1 {y} -1649.1 {z} 36.3 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1832.4 {y} -1727.6 {z} 29.2 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1954.5 {y} -1815.3 {z} 34.4 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2046.9 {y} -1932.7 {z} 52.4 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2106.8 {y} -2070.0 {z} 63.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2213.2 {y} -2175.1001 {z} 42.2 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2160.3999 {y} -2315.1001 {z} 30.5 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord -1 {vehicle} 34@ {x} -2120.2 {y} -2456.7 {z} 29.6 {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 89@
perform_sequence_task 35@ {sequence} 89@
clear_sequence_task 89@
46@ = 2

:STEAL5_7188
if 
  46@ == 2
goto_if_false @STEAL5_7256
$task_status = get_script_task_status 35@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @STEAL5_7256
50@ = 0
41@ = 10
46@ = 3

:STEAL5_7256
return 

:STEAL5_7258
48@ = generate_random_int_in_range 1 {max} 37
if 
  48@ == 1
goto_if_false @STEAL5_7300
custom_plate_for_next_car 49@ {text} "GOT_M00_"

:STEAL5_7300
if 
  48@ == 2
goto_if_false @STEAL5_7333
custom_plate_for_next_car 49@ {text} "M00TV_4U"

:STEAL5_7333
if 
  48@ == 3
goto_if_false @STEAL5_7366
custom_plate_for_next_car 49@ {text} "MATHEW_2"

:STEAL5_7366
if 
  48@ == 4
goto_if_false @STEAL5_7399
custom_plate_for_next_car 49@ {text} "D4_DEW0R"

:STEAL5_7399
if 
  48@ == 5
goto_if_false @STEAL5_7432
custom_plate_for_next_car 49@ {text} "D0DE_777"

:STEAL5_7432
if 
  48@ == 6
goto_if_false @STEAL5_7465
custom_plate_for_next_car 49@ {text} "DAM0_666"

:STEAL5_7465
if 
  48@ == 7
goto_if_false @STEAL5_7498
custom_plate_for_next_car 49@ {text} "C0NEY_88"

:STEAL5_7498
if 
  48@ == 8
goto_if_false @STEAL5_7531
custom_plate_for_next_car 49@ {text} "PRE4CHER"

:STEAL5_7531
if 
  48@ == 9
goto_if_false @STEAL5_7564
custom_plate_for_next_car 49@ {text} "DBP_4NDY"

:STEAL5_7564
if 
  48@ == 10
goto_if_false @STEAL5_7597
custom_plate_for_next_car 49@ {text} "EV1L_SLY"

:STEAL5_7597
if 
  48@ == 11
goto_if_false @STEAL5_7630
custom_plate_for_next_car 49@ {text} "N1_R4V3N"

:STEAL5_7630
if 
  48@ == 12
goto_if_false @STEAL5_7663
custom_plate_for_next_car 49@ {text} "D1VX_Z00"

:STEAL5_7663
if 
  48@ == 13
goto_if_false @STEAL5_7695
custom_plate_for_next_car 49@ {text} "MR_B3NN"

:STEAL5_7695
if 
  48@ == 14
goto_if_false @STEAL5_7728
custom_plate_for_next_car 49@ {text} "R3D_R4SP"

:STEAL5_7728
if 
  48@ == 15
goto_if_false @STEAL5_7761
custom_plate_for_next_car 49@ {text} "LA_B0MBA"

:STEAL5_7761
if 
  48@ == 16
goto_if_false @STEAL5_7794
custom_plate_for_next_car 49@ {text} "L3337_0G"

:STEAL5_7794
if 
  48@ == 17
goto_if_false @STEAL5_7827
custom_plate_for_next_car 49@ {text} "BUDD4H_X"

:STEAL5_7827
if 
  48@ == 18
goto_if_false @STEAL5_7860
custom_plate_for_next_car 49@ {text} "T3H_BUCK"

:STEAL5_7860
if 
  48@ == 19
goto_if_false @STEAL5_7893
custom_plate_for_next_car 49@ {text} "CHUNKY_1"

:STEAL5_7893
if 
  48@ == 20
goto_if_false @STEAL5_7926
custom_plate_for_next_car 49@ {text} "EV1L_BNZ"

:STEAL5_7926
if 
  48@ == 21
goto_if_false @STEAL5_7959
custom_plate_for_next_car 49@ {text} "S4ND_M4N"

:STEAL5_7959
if 
  48@ == 22
goto_if_false @STEAL5_7992
custom_plate_for_next_car 49@ {text} "RKK_DBP1"

:STEAL5_7992
if 
  48@ == 23
goto_if_false @STEAL5_8025
custom_plate_for_next_car 49@ {text} "RE1_K0KU"

:STEAL5_8025
if 
  48@ == 24
goto_if_false @STEAL5_8058
custom_plate_for_next_car 49@ {text} "S3XY_JUD"

:STEAL5_8058
if 
  48@ == 25
goto_if_false @STEAL5_8091
custom_plate_for_next_car 49@ {text} "SUNRA_93"

:STEAL5_8091
if 
  48@ == 26
goto_if_false @STEAL5_8124
custom_plate_for_next_car 49@ {text} "UG_FUX69"

:STEAL5_8124
if 
  48@ == 27
goto_if_false @STEAL5_8157
custom_plate_for_next_car 49@ {text} "LI0N_CUM"

:STEAL5_8157
if 
  48@ == 28
goto_if_false @STEAL5_8190
custom_plate_for_next_car 49@ {text} "RKK_PWND"

:STEAL5_8190
if 
  48@ == 29
goto_if_false @STEAL5_8223
custom_plate_for_next_car 49@ {text} "HAZE_B0B"

:STEAL5_8223
if 
  48@ == 30
goto_if_false @STEAL5_8256
custom_plate_for_next_car 49@ {text} "T3H_FLUF"

:STEAL5_8256
if 
  48@ == 31
goto_if_false @STEAL5_8289
custom_plate_for_next_car 49@ {text} "BM_4NDY_"

:STEAL5_8289
if 
  48@ == 32
goto_if_false @STEAL5_8322
custom_plate_for_next_car 49@ {text} "BM_D34N_"

:STEAL5_8322
if 
  48@ == 33
goto_if_false @STEAL5_8355
custom_plate_for_next_car 49@ {text} "BM_L4C3Y"

:STEAL5_8355
if 
  48@ == 34
goto_if_false @STEAL5_8388
custom_plate_for_next_car 49@ {text} "BM_D3V__"

:STEAL5_8388
if 
  48@ == 35
goto_if_false @STEAL5_8421
custom_plate_for_next_car 49@ {text} "NU_SK00L"

:STEAL5_8421
if 
  48@ == 36
goto_if_false @STEAL5_8454
custom_plate_for_next_car 49@ {text} "G4L_AVET"

:STEAL5_8454
if 
  48@ == 37
goto_if_false @STEAL5_8487
custom_plate_for_next_car 49@ {text} "M0J0_J0J"

:STEAL5_8487
return 

:STEAL5_8489
if 
  51@ == 1
goto_if_false @STEAL5_8634
set_lvar_text_label 55@s = 'STL5_AA'
set_lvar_text_label 57@s = 'STL5_AB'
set_lvar_text_label 59@s = 'STL5_AC'
set_lvar_text_label 61@s = 'STL5_AD'
set_lvar_text_label 63@s = 'STL5_AE'
set_lvar_int_to_constant 67@ = 37200
set_lvar_int_to_constant 68@ = 37201
set_lvar_int_to_constant 69@ = 37202
set_lvar_int_to_constant 70@ = 37203
set_lvar_int_to_constant 71@ = 37204
73@ = 5

:STEAL5_8634
if 
  51@ == 2
goto_if_false @STEAL5_8707
set_lvar_text_label 55@s = 'STL5_AF'
set_lvar_text_label 57@s = 'STL5_AG'
set_lvar_int_to_constant 67@ = 37205
set_lvar_int_to_constant 68@ = 37206
73@ = 2

:STEAL5_8707
if 
  51@ == 3
goto_if_false @STEAL5_8754
set_lvar_text_label 55@s = 'MOBRING'
set_lvar_int_to_constant 67@ = 23000
73@ = 1

:STEAL5_8754
set_lvar_int_to_lvar_int 76@ = 53@
74@ = 0
75@ = 0
77@ = 1
return 

:STEAL5_8785
if or
  51@ == 1
  51@ == 2
  51@ == 3
goto_if_false @STEAL5_8871
if 
  is_int_lvar_greater_than_int_lvar 73@ > 53@
goto_if_false @STEAL5_8864
gosub @STEAL5_8873
gosub @STEAL5_8980
gosub @STEAL5_9134
goto @STEAL5_8871

:STEAL5_8864
51@ = 0

:STEAL5_8871
return 

:STEAL5_8873
if 
  is_int_lvar_greater_than_int_lvar 73@ > 76@
goto_if_false @STEAL5_8978
if 
  74@ == 0
goto_if_false @STEAL5_8935
load_mission_audio MissionAudioSlot.Slot1 {audioId} 67@(76@,6i)
76@ += 1
74@ = 1

:STEAL5_8935
if 
  75@ == 0
goto_if_false @STEAL5_8978
load_mission_audio MissionAudioSlot.Slot2 {audioId} 67@(76@,6i)
76@ += 1
75@ = 1

:STEAL5_8978
return 

:STEAL5_8980
if 
  77@ == 1
goto_if_false @STEAL5_9056
if 
  74@ == 1
goto_if_false @STEAL5_9056
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @STEAL5_9056
play_mission_audio MissionAudioSlot.Slot1
print_now 55@(53@,6s) {time} 4500 {flag} 1
74@ = 2

:STEAL5_9056
if 
  77@ == 2
goto_if_false @STEAL5_9132
if 
  75@ == 1
goto_if_false @STEAL5_9132
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @STEAL5_9132
play_mission_audio MissionAudioSlot.Slot2
print_now 55@(53@,6s) {time} 4500 {flag} 1
75@ = 2

:STEAL5_9132
return 

:STEAL5_9134
if 
  74@ == 2
goto_if_false @STEAL5_9197
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @STEAL5_9197
clear_this_print 55@(53@,6s)
53@ += 1
77@ = 2
74@ = 0

:STEAL5_9197
if 
  75@ == 2
goto_if_false @STEAL5_9260
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @STEAL5_9260
clear_this_print 55@(53@,6s)
53@ += 1
77@ = 1
75@ = 0

:STEAL5_9260
return 

//-------------Mission 71---------------
// Originally: Back to School

:DSKOOL
script_name 'DSKOOL'
gosub @DSKOOL_47
if 
  has_deatharrest_been_executed 
goto_if_false @DSKOOL_38
gosub @DSKOOL_24457

:DSKOOL_38
gosub @DSKOOL_24618
terminate_this_script 

:DSKOOL_47
$onmission = 1
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_74
register_mission_given 

:DSKOOL_74
load_mission_text 'DS'
if 
  $onmission == 0
goto_if_false @DSKOOL_291
$instructor_car = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
$dummy_car1 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
$dummy_car2 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
$trafficcones[20] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
$trafficcones[30] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
57@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
58@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
59@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
55@ = create_random_char 0.0 {y} 0.0 {z} 100.0
56@ = create_random_char 0.0 {y} 0.0 {z} 100.0

:DSKOOL_291
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
clear_this_print_big_now TextStyle.Middle
wait 0
do_fade 500 {direction} Fade.Out

:DSKOOL_316
if 
  get_fading_status 
goto_if_false @DSKOOL_340
wait 0
goto @DSKOOL_316

:DSKOOL_340
34@ = 0
39@ = 0
43@ = 0
44@ = 0
54@ = 0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
$mission_selection = 1
50@ = 1
$start_coordsx = -2050.6001
$start_coordsy = -130.0
$noticeboard_x = -2031.2
$noticeboard_y = -118.0
$noticeboard_z = 1034.2
61@ = 0
62@ = 0
63@ = 0
64@ = 0
86@ = 0
87@ = 0
88@ = 0
89@ = 0
90@ = 0
60@ = 0
49@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
request_model 411
request_model 496
request_model 429
request_model 597
request_model 281
request_model #TRAFFICCONE
request_model #TEMP_STINGER2
request_model #GARYS_LUV_RAMP
request_model #AD_JUMP
request_model #AD_ROADMARK1
request_model #AD_ROADMARK2
request_model #AD_FINISH
request_model 420
request_model 506
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRONZE"
load_sprite 2 {spriteName} "SILVER"
load_sprite 3 {spriteName} "GOLD"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
load_sprite 10 {spriteName} "NAWTXT"
load_all_models_now 
load_scene -2031.1 {y} -118.2 {z} 1034.2
clear_this_big_print 'FAR_1'
enable_ambient_crime False
switch_roads_off -2015.37 {leftBottomY} -76.08 {leftBottomZ} 10.0 {rightTopX} -2078.3 {rightTopY} -66.75 {rightTopZ} 50.0
clear_wanted_level $player1
deactivate_garage 'BODLAWN'
deactivate_garage 'MODLAST'
deactivate_garage 'MDSSFSE'
if 
  $japcar_mod_garage_open == 1
goto_if_false @DSKOOL_887
deactivate_garage 'MDS1SFS'
deactivate_garage 'VECMOD'

:DSKOOL_887
set_no_resprays True
if 
  $f1_scripted_cut == 0
goto_if_false @DSKOOL_1425

:DSKOOL_909
if 
  $f1_scripted_cut == 0
goto_if_false @DSKOOL_1425
wait 0
if 
  39@ == 0
goto_if_false @DSKOOL_1228
$f1_which_missions_are_open_flag = 1
set_player_control $player1 {state} False
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_char_coordinates $scplayer {x} -2031.7 {y} -116.4 {z} 1034.2
set_char_heading $scplayer {heading} 86.9
request_model 50
load_all_models_now 
clear_area -2033.2 {y} -116.5 {z} 1034.2 {radius} 30.0 {clearParticles} True
91@ = create_char PedType.Mission1 {modelId} 50 {x} -2033.2 {y} -116.5 {z} 1034.2
shut_char_up_for_scripted_speech 91@ {state} True
set_char_decision_maker 91@ {handleOrTemplate} 49@
set_char_heading 91@ {heading} 270.0
set_char_never_targetted 91@ {state} True
set_char_keep_task 91@ {state} True
task_stand_still 91@ {time} -2
set_fixed_camera_position -2030.7 {y} -115.8 {z} 1035.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2033.9 {y} -116.1 {z} 1035.7 {switchStyle} SwitchType.JumpCut
61@ = 1
62@ = 0
gosub @DSKOOL_46093
if 
  not is_char_dead 91@
goto_if_false @DSKOOL_1200
start_char_facial_talk 91@ {duration} 20000

:DSKOOL_1200
do_fade 1000 {direction} Fade.In
skip_cutscene_start_internal @DSKOOL_1264
TIMERA = 0
39@ = 1

:DSKOOL_1228
if 
  39@ == 1
goto_if_false @DSKOOL_1411
if 
  61@ == 0
goto_if_false @DSKOOL_1411

:DSKOOL_1264
skip_cutscene_end 
if 
  not is_char_dead 91@
goto_if_false @DSKOOL_1287
stop_char_facial_talk 91@

:DSKOOL_1287
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
61@ = 0
do_fade 500 {direction} Fade.Out

:DSKOOL_1311
if 
  get_fading_status 
goto_if_false @DSKOOL_1335
wait 0
goto @DSKOOL_1311

:DSKOOL_1335
clear_prints 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
39@ = 0
$f1_scripted_cut = 1
do_fade 500 {direction} Fade.In

:DSKOOL_1380
if 
  get_fading_status 
goto_if_false @DSKOOL_1404
wait 0
goto @DSKOOL_1380

:DSKOOL_1404
goto @DSKOOL_24457

:DSKOOL_1411
gosub @DSKOOL_45998
goto @DSKOOL_909

:DSKOOL_1425
set_player_control $player1 {state} False
clear_help 
clear_prints 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
gosub @DSKOOL_30329
34@ = 0
39@ = 0
use_text_commands True
44@ = 255
43@ = 2
if 
  17 > $f1_which_missions_are_open_flag
goto_if_false @DSKOOL_1516
set_var_int_to_lvar_int $mission_selection = 50@

:DSKOOL_1516
if 
  $mission_selection == 3
goto_if_false @DSKOOL_1541
$mission_selection = 4

:DSKOOL_1541
if 
  $mission_selection == 6
goto_if_false @DSKOOL_1566
$mission_selection = 7

:DSKOOL_1566
if 
  $mission_selection == 8
goto_if_false @DSKOOL_1591
$mission_selection = 9

:DSKOOL_1591
if 
  $mission_selection == 12
goto_if_false @DSKOOL_1616
$mission_selection = 13

:DSKOOL_1616
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
set_char_coordinates $scplayer {x} -2035.4 {y} -119.1 {z} 33.2
load_scene -2035.4 {y} -119.1 {z} 33.2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 3800

:DSKOOL_1671
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DSKOOL_1697
wait 0
goto @DSKOOL_1671

:DSKOOL_1697
play_mission_audio MissionAudioSlot.Slot3
clear_extra_colours False
display_hud False
display_radar False
do_fade 500 {direction} Fade.In
gosub @DSKOOL_25654

:DSKOOL_1727
if 
  get_fading_status 
goto_if_false @DSKOOL_1758
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_1727

:DSKOOL_1758
gosub @DSKOOL_25654

:DSKOOL_1765
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DSKOOL_1791
goto @DSKOOL_24495

:DSKOOL_1791
gosub @DSKOOL_25654
if 
  39@ == 0
goto_if_false @DSKOOL_2755
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DSKOOL_2113
50@ -= 1
$mission_selection -= 1
if 
  50@ == 3
goto_if_false @DSKOOL_1895
50@ = 2

:DSKOOL_1895
if 
  50@ == 6
goto_if_false @DSKOOL_1920
50@ = 5

:DSKOOL_1920
if 
  50@ == 8
goto_if_false @DSKOOL_1945
50@ = 7

:DSKOOL_1945
if 
  50@ == 12
goto_if_false @DSKOOL_1970
50@ = 11

:DSKOOL_1970
if 
  $mission_selection == 3
goto_if_false @DSKOOL_1995
$mission_selection = 2

:DSKOOL_1995
if 
  $mission_selection == 6
goto_if_false @DSKOOL_2020
$mission_selection = 5

:DSKOOL_2020
if 
  $mission_selection == 8
goto_if_false @DSKOOL_2045
$mission_selection = 7

:DSKOOL_2045
if 
  $mission_selection == 12
goto_if_false @DSKOOL_2070
$mission_selection = 11

:DSKOOL_2070
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2113
if 
  4 > 34@
goto_if_false @DSKOOL_2113
34@ = 3

:DSKOOL_2113
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DSKOOL_2394
50@ += 1
$mission_selection += 1
if 
  50@ == 3
goto_if_false @DSKOOL_2176
50@ = 4

:DSKOOL_2176
if 
  50@ == 6
goto_if_false @DSKOOL_2201
50@ = 7

:DSKOOL_2201
if 
  50@ == 8
goto_if_false @DSKOOL_2226
50@ = 9

:DSKOOL_2226
if 
  50@ == 12
goto_if_false @DSKOOL_2251
50@ = 13

:DSKOOL_2251
if 
  $mission_selection == 3
goto_if_false @DSKOOL_2276
$mission_selection = 4

:DSKOOL_2276
if 
  $mission_selection == 6
goto_if_false @DSKOOL_2301
$mission_selection = 7

:DSKOOL_2301
if 
  $mission_selection == 8
goto_if_false @DSKOOL_2326
$mission_selection = 9

:DSKOOL_2326
if 
  $mission_selection == 12
goto_if_false @DSKOOL_2351
$mission_selection = 13

:DSKOOL_2351
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2394
if 
  4 > 34@
goto_if_false @DSKOOL_2394
34@ = 3

:DSKOOL_2394
if 
  1 > $mission_selection
goto_if_false @DSKOOL_2428
set_var_int_to_var_int $mission_selection = $f1_which_missions_are_open_flag
set_lvar_int_to_var_int 50@ = $f1_which_missions_are_open_flag

:DSKOOL_2428
if 
  is_int_var_greater_than_int_var $mission_selection > $f1_which_missions_are_open_flag
goto_if_false @DSKOOL_2461
$mission_selection = 1
50@ = 1

:DSKOOL_2461
if 
  $f1_which_missions_are_open_flag > 1
goto_if_false @DSKOOL_2583

:DSKOOL_2479
if 
  -100 > $LStickX
goto_if_false @DSKOOL_2531
wait 0
gosub @DSKOOL_25654
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @DSKOOL_2479

:DSKOOL_2531
if 
  $LStickX > 100
goto_if_false @DSKOOL_2583
wait 0
gosub @DSKOOL_25654
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @DSKOOL_2531

:DSKOOL_2583
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DSKOOL_2618
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_2583

:DSKOOL_2618
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DSKOOL_2653
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_2618

:DSKOOL_2653
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DSKOOL_2755
if or
  $mission_selection == 4
  $mission_selection == 7
  $mission_selection == 9
  $mission_selection == 13
goto_if_false @DSKOOL_2723
39@ = 1
goto @DSKOOL_2755

:DSKOOL_2723
if 
  4 > 34@
goto_if_false @DSKOOL_2748
34@ = 3

:DSKOOL_2748
goto @DSKOOL_3661

:DSKOOL_2755
if 
  39@ == 1
goto_if_false @DSKOOL_3135
if 
  4 > 34@
goto_if_false @DSKOOL_2798
34@ = 3

:DSKOOL_2798
if 
  34@ == 0
goto_if_false @DSKOOL_2823
34@ = 5

:DSKOOL_2823
gosub @DSKOOL_30100
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 320.0 {offsetTop} 160.0 {key} 'DS1_59'
gosub @DSKOOL_30100
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 100.0 {offsetTop} 205.0 {key} 'DS1_60'
gosub @DSKOOL_30100
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 101.0 {offsetTop} 231.0 {key} 'DS1_61'
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DSKOOL_3004
goto @DSKOOL_3661

:DSKOOL_3004
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DSKOOL_3135
if 
  $mission_selection == 4
goto_if_false @DSKOOL_3053
$mission_selection = 3

:DSKOOL_3053
if 
  $mission_selection == 7
goto_if_false @DSKOOL_3078
$mission_selection = 6

:DSKOOL_3078
if 
  $mission_selection == 9
goto_if_false @DSKOOL_3103
$mission_selection = 8

:DSKOOL_3103
if 
  $mission_selection == 13
goto_if_false @DSKOOL_3128
$mission_selection = 12

:DSKOOL_3128
goto @DSKOOL_3661

:DSKOOL_3135
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @DSKOOL_3280
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_3273
$f1_the360_best_score = 100
$f1_the180_best_score = 100
$f1_whiprightterminate_best_score = 100
$f1_popcontrol_best_score = 100
$f1_burnlapright_best_score = 100
$f1_conecoilright_best_score = 100
$f1_the90_best_score = 100
$f1_wheelieweave_best_score = 100
$f1_spinrightgo_best_score = 100
$f1_pittechnique_best_score = 100
$f1_alleyoop_best_score = 100
$f1_cityslicking_best_score = 100
switch_car_generator $f1_chunky {amount} 101
switch_car_generator $f1_dbp {amount} 101
$driving_test_passed = 1

:DSKOOL_3273
$f1_which_missions_are_open_flag = 16

:DSKOOL_3280
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_3647
gosub @DSKOOL_25654
do_fade 500 {direction} Fade.Out

:DSKOOL_3311
if 
  get_fading_status 
goto_if_false @DSKOOL_3349
gosub @DSKOOL_25654
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_3311

:DSKOOL_3349
gosub @DSKOOL_25654
clear_mission_audio MissionAudioSlot.Slot3
clear_prints 
clear_extra_colours True
set_char_area_visible $scplayer {areaId} 3
set_area_visible 3
request_collision -2031.1 {y} -118.2
load_scene -2031.1 {y} -118.2 {z} 1034.2
set_char_coordinates $scplayer {x} -2029.7 {y} -115.5 {z} 1034.2
set_char_heading $scplayer {heading} 0.0
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_3473
if 
  is_playback_going_on_for_car $instructor_car
goto_if_false @DSKOOL_3473
stop_playback_recorded_car $instructor_car

:DSKOOL_3473
delete_car $instructor_car
clear_area -2051.0 {y} -174.0 {z} 34.0 {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_char 55@
delete_char 56@
delete_car $dummy_car1
delete_car $dummy_car2
delete_object 57@
delete_object 58@
delete_object 59@
remove_car_recording 1
remove_car_recording 2
remove_car_recording 3
remove_car_recording 4
remove_car_recording 5
remove_car_recording 7
remove_car_recording 9
remove_car_recording 10
remove_car_recording 11
remove_car_recording 13
remove_car_recording 14
remove_car_recording 15
remove_car_recording 16
gosub @DSKOOL_35436
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:DSKOOL_3616
if 
  get_fading_status 
goto_if_false @DSKOOL_3640
wait 0
goto @DSKOOL_3616

:DSKOOL_3640
goto @DSKOOL_24457

:DSKOOL_3647
gosub @DSKOOL_29081
goto @DSKOOL_1765

:DSKOOL_3661
do_fade 500 {direction} Fade.Out

:DSKOOL_3668
if 
  get_fading_status 
goto_if_false @DSKOOL_3699
wait 0
gosub @DSKOOL_25654
goto @DSKOOL_3668

:DSKOOL_3699
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_3720
stop_playback_recorded_car $instructor_car

:DSKOOL_3720
clear_mission_audio MissionAudioSlot.Slot3
delete_car $instructor_car
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_char 55@
delete_char 56@
delete_car $dummy_car1
delete_car $dummy_car2
delete_car $instructor_car
delete_object 57@
delete_object 58@
delete_object 59@
gosub @DSKOOL_35436
34@ = 5
display_hud True
display_radar True
if 
  $mission_selection == 1
goto_if_false @DSKOOL_5391

:DSKOOL_3836
gosub @DSKOOL_30220

:DSKOOL_3843
$perfect_heading = 180.0
$car_timer = 11000
gosub @DSKOOL_30329
$instructor_car = create_car 411 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} 180.0
gosub @DSKOOL_35490
if 
  34@ == 0
goto_if_false @DSKOOL_3997
set_fixed_camera_position -2028.3 {y} -143.0 {z} 38.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.3 {y} -129.9 {z} 34.2 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_3995
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_3995
return 

:DSKOOL_3997
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_big 'DS1_88' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_44' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_4067
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_4102
$instructor_car_dead_flag = 2
goto @DSKOOL_5329

:DSKOOL_4102
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_4134
goto @DSKOOL_24457

:DSKOOL_4134
if 
  $car_started == 0
goto_if_false @DSKOOL_4216
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_4202
print_big 'DS1_88' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_44' {time} 5000 {flag} 4

:DSKOOL_4202
gosub @DSKOOL_31215
goto @DSKOOL_5384

:DSKOOL_4216
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_5384
gosub @DSKOOL_31535
$perfect_heading = get_car_heading $instructor_car
if 
  $variablec == 0
goto_if_false @DSKOOL_4321
if 
  $perfect_heading > 80.0
goto_if_false @DSKOOL_4321
if 
  90.0 > $perfect_heading
goto_if_false @DSKOOL_4321
$variablec = 1
40@ = 1

:DSKOOL_4321
if 
  40@ == 1
goto_if_false @DSKOOL_4540
if 
  $variablec == 1
goto_if_false @DSKOOL_4406
if 
  $perfect_heading > 350.0
goto_if_false @DSKOOL_4406
if 
  360.0 > $perfect_heading
goto_if_false @DSKOOL_4406
$variablec = 2

:DSKOOL_4406
if 
  $variablec == 2
goto_if_false @DSKOOL_4473
if 
  $perfect_heading > 270.0
goto_if_false @DSKOOL_4473
if 
  280.0 > $perfect_heading
goto_if_false @DSKOOL_4473
$variablec = 3

:DSKOOL_4473
if 
  $variablec == 3
goto_if_false @DSKOOL_4540
if 
  $perfect_heading > 170.0
goto_if_false @DSKOOL_4540
if 
  180.0 > $perfect_heading
goto_if_false @DSKOOL_4540
$variablec = 4

:DSKOOL_4540
if 
  $variablec == 0
goto_if_false @DSKOOL_4614
if 
  $perfect_heading > 270.0
goto_if_false @DSKOOL_4614
if 
  280.0 > $perfect_heading
goto_if_false @DSKOOL_4614
40@ = 2
$variablec = 1

:DSKOOL_4614
if 
  40@ == 2
goto_if_false @DSKOOL_4833
if 
  $variablec == 1
goto_if_false @DSKOOL_4699
if 
  $perfect_heading > 350.0
goto_if_false @DSKOOL_4699
if 
  360.0 > $perfect_heading
goto_if_false @DSKOOL_4699
$variablec = 2

:DSKOOL_4699
if 
  $variablec == 2
goto_if_false @DSKOOL_4766
if 
  $perfect_heading > 80.0
goto_if_false @DSKOOL_4766
if 
  90.0 > $perfect_heading
goto_if_false @DSKOOL_4766
$variablec = 3

:DSKOOL_4766
if 
  $variablec == 3
goto_if_false @DSKOOL_4833
if 
  $perfect_heading > 170.0
goto_if_false @DSKOOL_4833
if 
  180.0 > $perfect_heading
goto_if_false @DSKOOL_4833
$variablec = 4

:DSKOOL_4833
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
  $car_timer == 0
goto_if_false @DSKOOL_5384
gosub @DSKOOL_31569
gosub @DSKOOL_31609
if 
  $variablec == 4
goto_if_false @DSKOOL_4902
$heading_score = 100

:DSKOOL_4902
if 
  $variablec == 3
goto_if_false @DSKOOL_4927
$heading_score = 75

:DSKOOL_4927
if 
  $variablec == 2
goto_if_false @DSKOOL_4952
$heading_score = 50

:DSKOOL_4952
if 
  $variablec == 1
goto_if_false @DSKOOL_4977
$heading_score = 25

:DSKOOL_4977
if 
  $variablec == 0
goto_if_false @DSKOOL_5002
$heading_score = 0

:DSKOOL_5002
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_5050
$overall_score = 0

:DSKOOL_5050
if 
  $variablec == 0
goto_if_false @DSKOOL_5075
$overall_score = 0

:DSKOOL_5075
gosub @DSKOOL_31853
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the360_best_score
goto_if_false @DSKOOL_5145
set_lvar_int_to_var_int 47@ = $f1_the360_best_score
set_var_int_to_var_int $f1_the360_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_5152

:DSKOOL_5145
45@ = 0

:DSKOOL_5152
if 
  $f1_which_missions_are_open_flag == 1
goto_if_false @DSKOOL_5216
if 
  $overall_score > 69
goto_if_false @DSKOOL_5216
41@ = 2
$f1_which_missions_are_open_flag = 2
$instructor_car_dead_flag = 2
50@ = 2

:DSKOOL_5216
TIMERA = 0

:DSKOOL_5223
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_5283
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_5283
$instructor_car_dead_flag = 2
goto @DSKOOL_5329

:DSKOOL_5283
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_5322
goto @DSKOOL_5329

:DSKOOL_5322
goto @DSKOOL_5223

:DSKOOL_5329
gosub @DSKOOL_35152
gosub @DSKOOL_35436
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_5377
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_5384

:DSKOOL_5377
goto @DSKOOL_3836

:DSKOOL_5384
goto @DSKOOL_4067

:DSKOOL_5391
if 
  $mission_selection == 2
goto_if_false @DSKOOL_6710

:DSKOOL_5409
gosub @DSKOOL_30220

:DSKOOL_5416
$perfect_heading = 0.0
$car_timer = 11000
gosub @DSKOOL_30329
$instructor_car = create_car 496 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} 180.0
gosub @DSKOOL_35490
if 
  34@ == 0
goto_if_false @DSKOOL_5570
set_fixed_camera_position -2060.2 {y} -227.3 {z} 36.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2049.5 {y} -210.6 {z} 34.0 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_5568
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_5568
return 

:DSKOOL_5570
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -2.0 {yOffset} 82.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 2.0 {yOffset} 88.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_45' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_5698
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_5733
$instructor_car_dead_flag = 2
goto @DSKOOL_6648

:DSKOOL_5733
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_5765
goto @DSKOOL_24457

:DSKOOL_5765
if 
  $car_started == 0
goto_if_false @DSKOOL_5847
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_5833
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_45' {time} 5000 {flag} 4

:DSKOOL_5833
gosub @DSKOOL_31215
goto @DSKOOL_6703

:DSKOOL_5847
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_6703
gosub @DSKOOL_31535
if 
  $variablec == 0
goto_if_false @DSKOOL_5925
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_5925
$variablec = 1

:DSKOOL_5925
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_6703
gosub @DSKOOL_31569
gosub @DSKOOL_31609
if 
  $variablec == 0
goto_if_false @DSKOOL_5980
$position_score = 0

:DSKOOL_5980
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_6028
$heading_score = 100
goto @DSKOOL_6321

:DSKOOL_6028
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_6061
$heading_score = 100
goto @DSKOOL_6321

:DSKOOL_6061
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_6104
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_6104
$heading_score = 100

:DSKOOL_6104
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_6191
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_6191
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_6321

:DSKOOL_6191
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_6236
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_6236
$heading_score = 100

:DSKOOL_6236
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_6321
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_6321
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_6321

:DSKOOL_6321
if 
  1 > $heading_score
goto_if_false @DSKOOL_6346
$heading_score = 0

:DSKOOL_6346
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_6394
$overall_score = 0

:DSKOOL_6394
gosub @DSKOOL_31853
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the180_best_score
goto_if_false @DSKOOL_6464
set_lvar_int_to_var_int 47@ = $f1_the180_best_score
set_var_int_to_var_int $f1_the180_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_6471

:DSKOOL_6464
45@ = 0

:DSKOOL_6471
if 
  $f1_which_missions_are_open_flag == 2
goto_if_false @DSKOOL_6535
if 
  $overall_score > 69
goto_if_false @DSKOOL_6535
41@ = 2
$f1_which_missions_are_open_flag = 4
$instructor_car_dead_flag = 2
50@ = 4

:DSKOOL_6535
TIMERA = 0

:DSKOOL_6542
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_6602
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_6602
$instructor_car_dead_flag = 2
goto @DSKOOL_6648

:DSKOOL_6602
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_6641
goto @DSKOOL_6648

:DSKOOL_6641
goto @DSKOOL_6542

:DSKOOL_6648
gosub @DSKOOL_35152
gosub @DSKOOL_35436
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_6696
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_6703

:DSKOOL_6696
goto @DSKOOL_5409

:DSKOOL_6703
goto @DSKOOL_5698

:DSKOOL_6710
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_8322

:DSKOOL_6735
gosub @DSKOOL_30220

:DSKOOL_6742
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30329
if 
  $mission_selection == 3
goto_if_false @DSKOOL_6795
$perfect_positionx += 20.0

:DSKOOL_6795
if 
  $mission_selection == 4
goto_if_false @DSKOOL_6823
$perfect_positionx -= 20.0

:DSKOOL_6823
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
gosub @DSKOOL_35490
if 
  34@ == 0
goto_if_false @DSKOOL_6950
set_fixed_camera_position -2022.6 {y} -173.4 {z} 36.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2034.2 {y} -165.4 {z} 34.5 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_6948
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_6948
return 

:DSKOOL_6950
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7004
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 40.0 {yOffset} 37.0 {zOffset} 0.0
goto @DSKOOL_7033

:DSKOOL_7004
$finish_leftx, $finish_lefty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} -40.0 {yOffset} 37.0 {zOffset} 0.0

:DSKOOL_7033
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_32' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_7074
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_7109
$instructor_car_dead_flag = 2
goto @DSKOOL_8260

:DSKOOL_7109
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_7141
goto @DSKOOL_24457

:DSKOOL_7141
if 
  $car_started == 0
goto_if_false @DSKOOL_7223
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_7209
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_32' {time} 5000 {flag} 4

:DSKOOL_7209
gosub @DSKOOL_31215
goto @DSKOOL_8315

:DSKOOL_7223
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_8315
gosub @DSKOOL_31535
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_8315
gosub @DSKOOL_31569
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7310
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
goto @DSKOOL_7326

:DSKOOL_7310
set_var_float_to_var_float $perfect_positionx = $finish_leftx
set_var_float_to_var_float $perfect_positiony = $finish_lefty

:DSKOOL_7326
gosub @DSKOOL_31609
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_7381
$heading_score = 0
goto @DSKOOL_7933

:DSKOOL_7381
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_7414
$heading_score = 0
goto @DSKOOL_7933

:DSKOOL_7414
if 
  $mission_selection == 3
goto_if_false @DSKOOL_7683
if 
  $instructor_car_heading_int == 90
goto_if_false @DSKOOL_7464
$heading_score = 100
goto @DSKOOL_7933

:DSKOOL_7464
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_7533
if 
  85 > $instructor_car_heading_int
goto_if_false @DSKOOL_7533
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_7933

:DSKOOL_7533
if 
  $instructor_car_heading_int > 84
goto_if_false @DSKOOL_7576
if 
  96 > $instructor_car_heading_int
goto_if_false @DSKOOL_7576
$heading_score = 100

:DSKOOL_7576
if 
  $instructor_car_heading_int > 95
goto_if_false @DSKOOL_7676
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_7676
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 90
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_7933

:DSKOOL_7676
goto @DSKOOL_7933

:DSKOOL_7683
if 
  $instructor_car_heading_int == 270
goto_if_false @DSKOOL_7716
$heading_score = 100
goto @DSKOOL_7933

:DSKOOL_7716
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_7786
if 
  265 > $instructor_car_heading_int
goto_if_false @DSKOOL_7786
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.37
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_7933

:DSKOOL_7786
if 
  $instructor_car_heading_int > 264
goto_if_false @DSKOOL_7831
if 
  276 > $instructor_car_heading_int
goto_if_false @DSKOOL_7831
$heading_score = 100

:DSKOOL_7831
if 
  $instructor_car_heading_int > 275
goto_if_false @DSKOOL_7933
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_7933
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 270
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_7933

:DSKOOL_7933
if 
  1 > $heading_score
goto_if_false @DSKOOL_7958
$heading_score = 0

:DSKOOL_7958
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_8006
$overall_score = 0

:DSKOOL_8006
gosub @DSKOOL_31853
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_whiprightterminate_best_score
goto_if_false @DSKOOL_8076
set_lvar_int_to_var_int 47@ = $f1_whiprightterminate_best_score
set_var_int_to_var_int $f1_whiprightterminate_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_8083

:DSKOOL_8076
45@ = 0

:DSKOOL_8083
if 
  $f1_which_missions_are_open_flag == 4
goto_if_false @DSKOOL_8147
if 
  $overall_score > 69
goto_if_false @DSKOOL_8147
41@ = 2
$f1_which_missions_are_open_flag = 5
$instructor_car_dead_flag = 2
50@ = 5

:DSKOOL_8147
TIMERA = 0

:DSKOOL_8154
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_8214
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_8214
$instructor_car_dead_flag = 2
goto @DSKOOL_8260

:DSKOOL_8214
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_8253
goto @DSKOOL_8260

:DSKOOL_8253
goto @DSKOOL_8154

:DSKOOL_8260
gosub @DSKOOL_35152
gosub @DSKOOL_35436
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_8308
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_8315

:DSKOOL_8308
goto @DSKOOL_6735

:DSKOOL_8315
goto @DSKOOL_7074

:DSKOOL_8322
if 
  $mission_selection == 5
goto_if_false @DSKOOL_9825

:DSKOOL_8340
gosub @DSKOOL_30220

:DSKOOL_8347
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30329
$instructor_car = create_car 597 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
$perfect_positionx, $perfect_positiony, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 2.0 {yOffset} 38.0 {zOffset} -0.5
$car_posx, $car_posy, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} -2.0 {yOffset} 40.0 {zOffset} -0.5
59@ = create_object #TEMP_STINGER2 {x} -2050.8 {y} -167.0 {z} 34.6
set_object_heading 59@ {heading} 90.0
gosub @DSKOOL_35490
if 
  34@ == 0
goto_if_false @DSKOOL_8595
set_fixed_camera_position -2047.7 {y} -243.3 {z} 37.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2049.7 {y} -227.4 {z} 34.1 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_8593
55@ = create_char_inside_car $instructor_car {pedType} PedType.Mission1 {modelId} 281

:DSKOOL_8593
return 

:DSKOOL_8595
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 104.0 {zOffset} 0.0
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_30' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_8665
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_8700
$instructor_car_dead_flag = 2
goto @DSKOOL_9758

:DSKOOL_8700
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_8732
goto @DSKOOL_24457

:DSKOOL_8732
if 
  $car_started == 0
goto_if_false @DSKOOL_8814
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_8800
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_30' {time} 5000 {flag} 4

:DSKOOL_8800
gosub @DSKOOL_31215
goto @DSKOOL_9818

:DSKOOL_8814
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_9818
gosub @DSKOOL_31535
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $perfect_positionx {leftBottomY} $perfect_positiony {rightTopX} $car_posx {rightTopY} $car_posy {drawSphere} False
goto_if_false @DSKOOL_8892
if 
  not is_car_tyre_burst $instructor_car {tireId} WheelId.RearRight
goto_if_false @DSKOOL_8892
burst_car_tyre $instructor_car {tireId} WheelId.RearRight

:DSKOOL_8892
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_9818
gosub @DSKOOL_31569
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 1.0
goto_if_false @DSKOOL_9068
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_9054
$players_distance_from_perfectpos -= 1.0
$players_distance_from_perfectpos *= 11.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_9061

:DSKOOL_9054
$position_score = 0

:DSKOOL_9061
goto @DSKOOL_9075

:DSKOOL_9068
$position_score = 100

:DSKOOL_9075
if 
  not is_car_tyre_burst $instructor_car {tireId} WheelId.RearRight
goto_if_false @DSKOOL_9100
$position_score = 0

:DSKOOL_9100
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_9148
$heading_score = 0
goto @DSKOOL_9431

:DSKOOL_9148
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_9181
$heading_score = 100
goto @DSKOOL_9431

:DSKOOL_9181
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_9214
$heading_score = 0
goto @DSKOOL_9431

:DSKOOL_9214
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_9284
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_9284
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_9431

:DSKOOL_9284
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_9329
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_9329
$heading_score = 100

:DSKOOL_9329
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_9431
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_9431
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_9431

:DSKOOL_9431
if 
  1 > $heading_score
goto_if_false @DSKOOL_9456
$heading_score = 0

:DSKOOL_9456
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_9504
$overall_score = 0

:DSKOOL_9504
gosub @DSKOOL_31853
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_popcontrol_best_score
goto_if_false @DSKOOL_9574
set_lvar_int_to_var_int 47@ = $f1_popcontrol_best_score
set_var_int_to_var_int $f1_popcontrol_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_9581

:DSKOOL_9574
45@ = 0

:DSKOOL_9581
if 
  $f1_which_missions_are_open_flag == 5
goto_if_false @DSKOOL_9645
if 
  $overall_score > 69
goto_if_false @DSKOOL_9645
41@ = 2
$f1_which_missions_are_open_flag = 7
$instructor_car_dead_flag = 2
50@ = 7

:DSKOOL_9645
TIMERA = 0

:DSKOOL_9652
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_9712
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_9712
$instructor_car_dead_flag = 2
goto @DSKOOL_9758

:DSKOOL_9712
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_9751
goto @DSKOOL_9758

:DSKOOL_9751
goto @DSKOOL_9652

:DSKOOL_9758
gosub @DSKOOL_35152
delete_object 59@
gosub @DSKOOL_35436
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_9811
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_9818

:DSKOOL_9811
goto @DSKOOL_8340

:DSKOOL_9818
goto @DSKOOL_8665

:DSKOOL_9825
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_11927

:DSKOOL_9850
gosub @DSKOOL_30220

:DSKOOL_9857
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30329
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
gosub @DSKOOL_35490
if 
  $mission_selection == 6
goto_if_false @DSKOOL_10186
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 50.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check2ax, $area_check2ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 38.0 {zOffset} 0.0
$area_check2bx, $area_check2by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check3ax, $area_check3ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check3bx, $area_check3by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} -4.0 {zOffset} 0.0
$area_check4ax, $area_check4ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check4bx, $area_check4by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 8.0 {zOffset} 0.0
59@ = create_object #AD_FINISH {x} -2050.5 {y} -135.5 {z} 34.35

:DSKOOL_10186
if 
  $mission_selection == 7
goto_if_false @DSKOOL_10510
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 50.0 {zOffset} 0.0
$area_check2ax, $area_check2ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} 0.0
$area_check2bx, $area_check2by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 38.0 {zOffset} 0.0
$area_check3ax, $area_check3ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check3bx, $area_check3by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} -4.0 {zOffset} 0.0
$area_check4ax, $area_check4ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
$area_check4bx, $area_check4by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 8.0 {zOffset} 0.0
$car_posx, $car_posy, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 8.0 {yOffset} 0.0 {zOffset} 0.0
59@ = create_object #AD_FINISH {x} -2058.5 {y} -135.5 {z} 34.35
set_car_coordinates $instructor_car {x} $car_posx {y} $car_posy {z} $player_z
set_car_heading $instructor_car {heading} $perfect_heading

:DSKOOL_10510
if 
  34@ == 0
goto_if_false @DSKOOL_10605
set_fixed_camera_position -2054.6001 {y} -109.1 {z} 36.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2054.6001 {y} -122.0 {z} 34.2 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_10603
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_10603
return 

:DSKOOL_10605
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_29' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_10646
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_10681
$instructor_car_dead_flag = 2
goto @DSKOOL_11860

:DSKOOL_10681
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_10713
goto @DSKOOL_24457

:DSKOOL_10713
if 
  $car_started == 0
goto_if_false @DSKOOL_10795
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_10781
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_29' {time} 5000 {flag} 4

:DSKOOL_10781
gosub @DSKOOL_31215
goto @DSKOOL_11920

:DSKOOL_10795
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_11920
if 
  $car_timer > 90000
goto_if_false @DSKOOL_10839
set_player_control $player1 {state} False

:DSKOOL_10839
if 
  $variablea == 0
goto_if_false @DSKOOL_10894
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_10894
$variablea = 1

:DSKOOL_10894
if 
  $variablea == 1
goto_if_false @DSKOOL_10949
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check2ax {leftBottomY} $area_check2ay {rightTopX} $area_check2bx {rightTopY} $area_check2by {drawSphere} False
goto_if_false @DSKOOL_10949
$variablea = 2

:DSKOOL_10949
if 
  $variablea == 2
goto_if_false @DSKOOL_11004
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check3ax {leftBottomY} $area_check3ay {rightTopX} $area_check3bx {rightTopY} $area_check3by {drawSphere} False
goto_if_false @DSKOOL_11004
$variablea = 3

:DSKOOL_11004
if 
  $variablea == 3
goto_if_false @DSKOOL_11066
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check4ax {leftBottomY} $area_check4ay {rightTopX} $area_check4bx {rightTopY} $area_check4by {drawSphere} False
goto_if_false @DSKOOL_11066
$lap_counter += 1
$variablea = 0

:DSKOOL_11066
clear_prints 
if 
  4 > $lap_counter
goto_if_false @DSKOOL_11127
set_var_int_to_var_int $variabled = $lap_counter
$variabled += 1
print_with_number_now 'DS1_73' {num} $variabled {duration} 5000 {flag} 4
goto @DSKOOL_11143

:DSKOOL_11127
print_now 'DS1_74' {time} 5000 {flag} 4

:DSKOOL_11143
if or
  is_car_stopped $instructor_car
  $lap_counter == 5
goto_if_false @DSKOOL_11920
gosub @DSKOOL_31569
set_var_int_to_var_int $variablea = $car_timer
set_var_int_to_var_int $overall_secs = $variablea
$overall_secs /= 1000
set_var_int_to_var_int $overall_millisecs = $overall_secs
$overall_millisecs *= 1000
set_var_int_to_var_int $variablec = $variablea
sub_int_var_from_int_var $variablec -= $overall_millisecs
set_var_int_to_var_int $overall_millisecs = $variablec
$overall_millisecs /= 10
$time_score = 0
if 
  5 > $lap_counter
goto_if_false @DSKOOL_11283
$time_score = 0
goto @DSKOOL_11541

:DSKOOL_11283
if 
  36000 > $variablea
goto_if_false @DSKOOL_11311
$time_score = 100

:DSKOOL_11311
if 
  $variablea >= 36000
goto_if_false @DSKOOL_11412
if 
  40000 > $variablea
goto_if_false @DSKOOL_11412
set_var_int_to_var_int $variablec = $variablea
$variablec -= 35999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0075
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 100
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_11412
if 
  $variablea >= 40000
goto_if_false @DSKOOL_11513
if 
  45000 > $variablea
goto_if_false @DSKOOL_11513
set_var_int_to_var_int $variablec = $variablea
$variablec -= 39999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0138
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 70
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_11513
if 
  $variablea >= 45000
goto_if_false @DSKOOL_11541
$time_score = 0

:DSKOOL_11541
if 
  1 > $time_score
goto_if_false @DSKOOL_11566
$time_score = 0

:DSKOOL_11566
if 
  $time_score > 99
goto_if_false @DSKOOL_11591
$time_score = 100

:DSKOOL_11591
set_var_int_to_var_int $overall_score = $time_score
gosub @DSKOOL_31853
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_burnlapright_best_score
goto_if_false @DSKOOL_11669
set_lvar_int_to_var_int 47@ = $f1_burnlapright_best_score
set_var_int_to_var_int $f1_burnlapright_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_11676

:DSKOOL_11669
45@ = 0

:DSKOOL_11676
if 
  $f1_which_missions_are_open_flag == 7
goto_if_false @DSKOOL_11740
if 
  $overall_score > 69
goto_if_false @DSKOOL_11740
41@ = 2
$f1_which_missions_are_open_flag = 9
$instructor_car_dead_flag = 2
50@ = 9

:DSKOOL_11740
$lap_counter = 6
TIMERA = 0

:DSKOOL_11754
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_11814
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_11814
$instructor_car_dead_flag = 2
goto @DSKOOL_11860

:DSKOOL_11814
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_11853
goto @DSKOOL_11860

:DSKOOL_11853
goto @DSKOOL_11754

:DSKOOL_11860
gosub @DSKOOL_35152
delete_object 59@
gosub @DSKOOL_35436
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_11913
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_11920

:DSKOOL_11913
goto @DSKOOL_9850

:DSKOOL_11920
goto @DSKOOL_10646

:DSKOOL_11927
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_13423

:DSKOOL_11952
gosub @DSKOOL_30220

:DSKOOL_11959
request_model 429

:DSKOOL_11964
if 
  not has_model_loaded 429
goto_if_false @DSKOOL_11991
wait 0
goto @DSKOOL_11964

:DSKOOL_11991
$perfect_heading = 180.0
$car_timer = 11000
gosub @DSKOOL_30329
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
59@ = create_object #AD_ROADMARK1 {x} -2050.0 {y} -172.5 {z} 34.35
set_object_heading 59@ {heading} 180.0
gosub @DSKOOL_35490
if 
  34@ == 0
goto_if_false @DSKOOL_12176
set_fixed_camera_position -2042.1 {y} -223.4 {z} 36.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2049.1001 {y} -210.0 {z} 34.8 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_12174
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_12174
return 

:DSKOOL_12176
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_offset_from_object_in_world_coords $trafficcones[15] {xOffset} 0.0 {yOffset} 5.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_36' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_12275
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_12310
$instructor_car_dead_flag = 2
goto @DSKOOL_13356

:DSKOOL_12310
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_12342
goto @DSKOOL_24457

:DSKOOL_12342
if 
  $car_started == 0
goto_if_false @DSKOOL_12424
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_12410
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_36' {time} 5000 {flag} 4

:DSKOOL_12410
gosub @DSKOOL_31215
goto @DSKOOL_13416

:DSKOOL_12424
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_13416
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2042.0 {leftBottomY} -126.0 {rightTopX} -2058.0 {rightTopY} -220.0 {drawSphere} False
goto_if_false @DSKOOL_12485
set_player_control $player1 {state} False

:DSKOOL_12485
if 
  $lap_counter == 0
goto_if_false @DSKOOL_12552
if 
  locate_car_3d $instructor_car {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DSKOOL_12552
$lap_counter = 1

:DSKOOL_12552
if 
  $lap_counter == 1
goto_if_false @DSKOOL_12619
if 
  locate_stopped_car_3d $instructor_car {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DSKOOL_12619
$lap_counter = 2

:DSKOOL_12619
gosub @DSKOOL_31535
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_13416
gosub @DSKOOL_31569
if 
  $lap_counter > 0
goto_if_false @DSKOOL_12681
gosub @DSKOOL_31609
goto @DSKOOL_12688

:DSKOOL_12681
$position_score = 0

:DSKOOL_12688
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_12736
$heading_score = 100
goto @DSKOOL_13029

:DSKOOL_12736
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_12769
$heading_score = 100
goto @DSKOOL_13029

:DSKOOL_12769
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_12812
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_12812
$heading_score = 100

:DSKOOL_12812
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_12899
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_12899
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_13029

:DSKOOL_12899
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_12944
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_12944
$heading_score = 100

:DSKOOL_12944
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_13029
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_13029
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_13029

:DSKOOL_13029
if 
  1 > $heading_score
goto_if_false @DSKOOL_13054
$heading_score = 0

:DSKOOL_13054
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_13102
$overall_score = 0

:DSKOOL_13102
gosub @DSKOOL_31853
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_conecoilright_best_score
goto_if_false @DSKOOL_13172
set_lvar_int_to_var_int 47@ = $f1_conecoilright_best_score
set_var_int_to_var_int $f1_conecoilright_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_13179

:DSKOOL_13172
45@ = 0

:DSKOOL_13179
if 
  $f1_which_missions_are_open_flag == 9
goto_if_false @DSKOOL_13243
if 
  $overall_score > 69
goto_if_false @DSKOOL_13243
41@ = 2
$f1_which_missions_are_open_flag = 10
$instructor_car_dead_flag = 2
50@ = 10

:DSKOOL_13243
TIMERA = 0

:DSKOOL_13250
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_13310
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_13310
$instructor_car_dead_flag = 2
goto @DSKOOL_13356

:DSKOOL_13310
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_13349
goto @DSKOOL_13356

:DSKOOL_13349
goto @DSKOOL_13250

:DSKOOL_13356
gosub @DSKOOL_35152
delete_object 59@
gosub @DSKOOL_35436
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_13409
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_13416

:DSKOOL_13409
goto @DSKOOL_11952

:DSKOOL_13416
goto @DSKOOL_12275

:DSKOOL_13423
if 
  $mission_selection == 10
goto_if_false @DSKOOL_15321

:DSKOOL_13441
gosub @DSKOOL_30220

:DSKOOL_13448
$perfect_heading = 270.0
$car_timer = 6000
gosub @DSKOOL_30329
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx += 6.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car1 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car1 {heading} $perfect_heading
freeze_car_position $dummy_car1 {state} True
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx -= 6.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car2 = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car2 {heading} $perfect_heading
freeze_car_position $dummy_car2 {state} True
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$instructor_car = create_car 429 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $instructor_car {heading} 180.0
if 
  34@ == 0
goto_if_false @DSKOOL_13747
set_fixed_camera_position -2045.8 {y} -210.5 {z} 35.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2053.5 {y} -198.1 {z} 34.2 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_13745
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_13745
return 

:DSKOOL_13747
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_1' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_13788
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_13823
$instructor_car_dead_flag = 2
goto @DSKOOL_15256

:DSKOOL_13823
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_13855
goto @DSKOOL_24457

:DSKOOL_13855
if 
  $car_started == 0
goto_if_false @DSKOOL_13937
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_13923
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_1' {time} 5000 {flag} 4

:DSKOOL_13923
gosub @DSKOOL_31215
goto @DSKOOL_15314

:DSKOOL_13937
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_15314
gosub @DSKOOL_31535
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_15314
gosub @DSKOOL_31569
$perfect_positiony -= 75.0
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @DSKOOL_14130
if 
  5.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_14116
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 22.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_14123

:DSKOOL_14116
$position_score = 0

:DSKOOL_14123
goto @DSKOOL_14137

:DSKOOL_14130
$position_score = 100

:DSKOOL_14137
add_int_var_to_int_var $overall_score += $position_score
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_14193
$heading_score = 0
goto @DSKOOL_14737

:DSKOOL_14193
if 
  $instructor_car_heading_int == 90
goto_if_false @DSKOOL_14225
$heading_score = 100
goto @DSKOOL_14737

:DSKOOL_14225
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_14258
$heading_score = 0
goto @DSKOOL_14737

:DSKOOL_14258
if 
  $instructor_car_heading_int == 270
goto_if_false @DSKOOL_14291
$heading_score = 100
goto @DSKOOL_14737

:DSKOOL_14291
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_14360
if 
  85 > $instructor_car_heading_int
goto_if_false @DSKOOL_14360
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_14737

:DSKOOL_14360
if 
  $instructor_car_heading_int > 84
goto_if_false @DSKOOL_14403
if 
  96 > $instructor_car_heading_int
goto_if_false @DSKOOL_14403
$heading_score = 100

:DSKOOL_14403
if 
  $instructor_car_heading_int > 95
goto_if_false @DSKOOL_14503
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_14503
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 90
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_14737

:DSKOOL_14503
if 
  $instructor_car_heading_int > 180
goto_if_false @DSKOOL_14590
if 
  265 > $instructor_car_heading_int
goto_if_false @DSKOOL_14590
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_14737

:DSKOOL_14590
if 
  $instructor_car_heading_int > 264
goto_if_false @DSKOOL_14635
if 
  276 > $instructor_car_heading_int
goto_if_false @DSKOOL_14635
$heading_score = 100

:DSKOOL_14635
if 
  $instructor_car_heading_int > 275
goto_if_false @DSKOOL_14737
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_14737
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 270
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 1.16
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_14737

:DSKOOL_14737
if 
  1 > $heading_score
goto_if_false @DSKOOL_14762
$heading_score = 0

:DSKOOL_14762
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_14810
$overall_score = 0

:DSKOOL_14810
gosub @DSKOOL_31763
$other_car_damage = 200
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_14897
$dummy_car1_health = get_car_health $dummy_car1
$total_dummy_car1_health = 1000
sub_int_var_from_int_var $total_dummy_car1_health -= $dummy_car1_health
$total_dummy_car1_health /= 10
if 
  $total_dummy_car1_health > 100
goto_if_false @DSKOOL_14897
$total_dummy_car1_health = 100

:DSKOOL_14897
if 
  not is_car_dead $dummy_car2
goto_if_false @DSKOOL_14969
$dummy_car2_health = get_car_health $dummy_car2
$total_dummy_car2_health = 1000
sub_int_var_from_int_var $total_dummy_car2_health -= $dummy_car2_health
$total_dummy_car2_health /= 10
if 
  $total_dummy_car2_health > 100
goto_if_false @DSKOOL_14969
$total_dummy_car2_health = 100

:DSKOOL_14969
set_var_int_to_var_int $other_car_damage = $total_dummy_car1_health
add_int_var_to_int_var $other_car_damage += $total_dummy_car2_health
set_var_int_to_var_int $total_car_damage = $player_car_damage
add_int_var_to_int_var $total_car_damage += $other_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_the90_best_score
goto_if_false @DSKOOL_15072
set_lvar_int_to_var_int 47@ = $f1_the90_best_score
set_var_int_to_var_int $f1_the90_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_15079

:DSKOOL_15072
45@ = 0

:DSKOOL_15079
if 
  $f1_which_missions_are_open_flag == 10
goto_if_false @DSKOOL_15143
if 
  $overall_score > 69
goto_if_false @DSKOOL_15143
41@ = 2
$f1_which_missions_are_open_flag = 11
$instructor_car_dead_flag = 2
50@ = 11

:DSKOOL_15143
TIMERA = 0

:DSKOOL_15150
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_15210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_15210
$instructor_car_dead_flag = 2
goto @DSKOOL_15256

:DSKOOL_15210
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_15249
goto @DSKOOL_15256

:DSKOOL_15249
goto @DSKOOL_15150

:DSKOOL_15256
gosub @DSKOOL_35152
delete_car $dummy_car1
delete_car $dummy_car2
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_15307
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_15314

:DSKOOL_15307
goto @DSKOOL_13441

:DSKOOL_15314
goto @DSKOOL_13788

:DSKOOL_15321
if 
  $mission_selection == 11
goto_if_false @DSKOOL_16925

:DSKOOL_15339
gosub @DSKOOL_30220

:DSKOOL_15346
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30329
$instructor_car = create_car 429 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_var_float_to_var_float $car_posx = $perfect_positionx
$car_posx += 1.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 25.0
$perfect_heading = 90.0
58@ = create_object #GARYS_LUV_RAMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_object_heading 58@ {heading} 270.0
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -50.0 {yOffset} 30.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 50.0 {yOffset} 200.0 {zOffset} 0.0
if 
  34@ == 0
goto_if_false @DSKOOL_15621
set_fixed_camera_position -2052.6001 {y} -138.4 {z} 34.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2044.2 {y} -208.2 {z} 37.1 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_15619
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_15619
return 

:DSKOOL_15621
clear_prints 
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 100.0 {zOffset} 0.0
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_34' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_15691
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_15726
$instructor_car_dead_flag = 2
goto @DSKOOL_16865

:DSKOOL_15726
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_15758
goto @DSKOOL_24457

:DSKOOL_15758
if 
  $car_started == 0
goto_if_false @DSKOOL_15840
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_15826
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_34' {time} 5000 {flag} 4

:DSKOOL_15826
gosub @DSKOOL_31215
goto @DSKOOL_16918

:DSKOOL_15840
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_16918
if 
  locate_char_any_means_3d $scplayer {x} $finish_rightx {y} $finish_righty {z} $perfect_positionz {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DSKOOL_15898

:DSKOOL_15898
if 
  is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_15985
$variableb = get_car_roll $instructor_car
if 
  4.0 > $variableb
goto_if_false @DSKOOL_15985
if 
  $variableb > -4.0
goto_if_false @DSKOOL_15985
apply_brakes_to_players_car $player1 {state} True

:DSKOOL_15985
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_16918
gosub @DSKOOL_31569
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_16918
gosub @DSKOOL_31569
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 1.0
goto_if_false @DSKOOL_16184
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_16170
$players_distance_from_perfectpos -= 1.0
$players_distance_from_perfectpos *= 11.0
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_16177

:DSKOOL_16170
$position_score = 0

:DSKOOL_16177
goto @DSKOOL_16191

:DSKOOL_16184
$position_score = 100

:DSKOOL_16191
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_16239
$heading_score = 0
goto @DSKOOL_16522

:DSKOOL_16239
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_16272
$heading_score = 100
goto @DSKOOL_16522

:DSKOOL_16272
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_16305
$heading_score = 0
goto @DSKOOL_16522

:DSKOOL_16305
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_16375
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_16375
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_16522

:DSKOOL_16375
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_16420
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_16420
$heading_score = 100

:DSKOOL_16420
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_16522
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_16522
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_16522

:DSKOOL_16522
if 
  1 > $heading_score
goto_if_false @DSKOOL_16547
$heading_score = 0

:DSKOOL_16547
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_16595
$overall_score = 0

:DSKOOL_16595
gosub @DSKOOL_31763
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_wheelieweave_best_score
goto_if_false @DSKOOL_16681
set_lvar_int_to_var_int 47@ = $f1_wheelieweave_best_score
set_var_int_to_var_int $f1_wheelieweave_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_16688

:DSKOOL_16681
45@ = 0

:DSKOOL_16688
if 
  $f1_which_missions_are_open_flag == 11
goto_if_false @DSKOOL_16752
if 
  $overall_score > 69
goto_if_false @DSKOOL_16752
41@ = 2
$f1_which_missions_are_open_flag = 13
$instructor_car_dead_flag = 2
50@ = 13

:DSKOOL_16752
TIMERA = 0

:DSKOOL_16759
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_16819
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_16819
$instructor_car_dead_flag = 2
goto @DSKOOL_16865

:DSKOOL_16819
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_16858
goto @DSKOOL_16865

:DSKOOL_16858
goto @DSKOOL_16759

:DSKOOL_16865
gosub @DSKOOL_35152
delete_object 58@
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_16911
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_16918

:DSKOOL_16911
goto @DSKOOL_15339

:DSKOOL_16918
goto @DSKOOL_15691

:DSKOOL_16925
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_18334

:DSKOOL_16950
gosub @DSKOOL_30220

:DSKOOL_16957
$perfect_heading = 0.0
$car_timer = 6000
gosub @DSKOOL_30329
$instructor_car = create_car 420 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_freebies_in_vehicle $instructor_car {state} False
gosub @DSKOOL_35490
if 
  34@ == 0
goto_if_false @DSKOOL_17116
set_fixed_camera_position -2051.8999 {y} -185.5 {z} 37.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2052.2 {y} -152.9 {z} 34.3 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_17114
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_17114
return 

:DSKOOL_17116
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17170
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} 6.5 {yOffset} -40.0 {zOffset} 0.0
goto @DSKOOL_17199

:DSKOOL_17170
$finish_leftx, $finish_lefty, $perfect_positionz = get_offset_from_car_in_world_coords $instructor_car {xOffset} -6.5 {yOffset} -40.0 {zOffset} 0.0

:DSKOOL_17199
clear_prints 
print_big 'DSREVE' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_28' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_17240
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_17275
$instructor_car_dead_flag = 2
goto @DSKOOL_18272

:DSKOOL_17275
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_17307
goto @DSKOOL_24457

:DSKOOL_17307
if 
  $car_started == 0
goto_if_false @DSKOOL_17389
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_17375
print_big 'DSREVE' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_28' {time} 5000 {flag} 4

:DSKOOL_17375
gosub @DSKOOL_31215
goto @DSKOOL_18327

:DSKOOL_17389
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_18327
gosub @DSKOOL_31535
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_18327
gosub @DSKOOL_31569
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17476
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
goto @DSKOOL_17492

:DSKOOL_17476
set_var_float_to_var_float $perfect_positionx = $finish_leftx
set_var_float_to_var_float $perfect_positiony = $finish_lefty

:DSKOOL_17492
gosub @DSKOOL_31609
if 
  $mission_selection == 12
goto_if_false @DSKOOL_17569
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2046.9 {leftBottomY} -161.4 {rightTopX} -2041.2 {rightTopY} -174.5 {drawSphere} False
goto_if_false @DSKOOL_17562
$position_score = 0

:DSKOOL_17562
goto @DSKOOL_17614

:DSKOOL_17569
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2054.2 {leftBottomY} -161.4 {rightTopX} -2060.0 {rightTopY} -174.5 {drawSphere} False
goto_if_false @DSKOOL_17614
$position_score = 0

:DSKOOL_17614
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_17662
$heading_score = 0
goto @DSKOOL_17945

:DSKOOL_17662
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_17695
$heading_score = 100
goto @DSKOOL_17945

:DSKOOL_17695
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_17728
$heading_score = 0
goto @DSKOOL_17945

:DSKOOL_17728
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_17798
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_17798
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_17945

:DSKOOL_17798
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_17843
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_17843
$heading_score = 100

:DSKOOL_17843
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_17945
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_17945
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_17945

:DSKOOL_17945
if 
  1 > $heading_score
goto_if_false @DSKOOL_17970
$heading_score = 0

:DSKOOL_17970
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_18018
$overall_score = 0

:DSKOOL_18018
gosub @DSKOOL_31853
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_spinrightgo_best_score
goto_if_false @DSKOOL_18088
set_lvar_int_to_var_int 47@ = $f1_spinrightgo_best_score
set_var_int_to_var_int $f1_spinrightgo_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_18095

:DSKOOL_18088
45@ = 0

:DSKOOL_18095
if 
  $f1_which_missions_are_open_flag == 13
goto_if_false @DSKOOL_18159
if 
  $overall_score > 69
goto_if_false @DSKOOL_18159
41@ = 2
$f1_which_missions_are_open_flag = 14
$instructor_car_dead_flag = 2
50@ = 14

:DSKOOL_18159
TIMERA = 0

:DSKOOL_18166
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_18226
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_18226
$instructor_car_dead_flag = 2
goto @DSKOOL_18272

:DSKOOL_18226
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_18265
goto @DSKOOL_18272

:DSKOOL_18265
goto @DSKOOL_18166

:DSKOOL_18272
gosub @DSKOOL_35152
gosub @DSKOOL_35436
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_18320
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_18327

:DSKOOL_18320
goto @DSKOOL_16950

:DSKOOL_18327
goto @DSKOOL_17240

:DSKOOL_18334
if 
  $mission_selection == 14
goto_if_false @DSKOOL_20041

:DSKOOL_18352
gosub @DSKOOL_30220

:DSKOOL_18359
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30329
$instructor_car = create_car 597 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_freebies_in_vehicle $instructor_car {state} False
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 10.0
$dummy_car1 = create_car 597 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car1 {heading} $perfect_heading
56@ = create_random_char_as_driver $dummy_car1
set_car_cruise_speed $dummy_car1 {maxSpeed} 0.0
59@ = create_object #AD_ROADMARK2 {x} -2045.0 {y} -177.5 {z} 34.35
set_object_heading 59@ {heading} 180.0
57@ = create_object #AD_ROADMARK2 {x} -2057.0 {y} -177.5 {z} 34.35
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -12.0 {yOffset} -4.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 12.0 {yOffset} 100.0 {zOffset} 0.0
if 
  34@ == 0
goto_if_false @DSKOOL_18698
set_fixed_camera_position -2047.0 {y} -220.2 {z} 36.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2050.2 {y} -193.9 {z} 32.5 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_18696
55@ = create_char_inside_car $instructor_car {pedType} PedType.Mission1 {modelId} 281

:DSKOOL_18696
return 

:DSKOOL_18698
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_35' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_18739
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_18774
$instructor_car_dead_flag = 2
goto @DSKOOL_19966

:DSKOOL_18774
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_18806
goto @DSKOOL_24457

:DSKOOL_18806
if 
  $car_started == 0
goto_if_false @DSKOOL_18888
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_18874
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_35' {time} 5000 {flag} 4

:DSKOOL_18874
gosub @DSKOOL_31215
goto @DSKOOL_20034

:DSKOOL_18888
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_20034
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_20034
if 
  not is_car_in_area_2d $dummy_car1 {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_18964
freeze_car_position $dummy_car1 {state} True
set_player_control $player1 {state} False

:DSKOOL_18964
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @DSKOOL_19008
freeze_car_position $dummy_car1 {state} True
set_player_control $player1 {state} False

:DSKOOL_19008
$instructor_car_heading = get_car_heading $dummy_car1
if or
  $instructor_car_heading > 340.0
  20.0 > $instructor_car_heading
goto_if_false @DSKOOL_19061
freeze_car_position $dummy_car1 {state} True
set_player_control $player1 {state} False

:DSKOOL_19061
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_20034
freeze_car_position $dummy_car1 {state} True
gosub @DSKOOL_31569
$perfect_positionx, $perfect_positiony, $perfect_positionz = get_car_coordinates $dummy_car1
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 4.0
goto_if_false @DSKOOL_19242
if 
  11.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_19228
$players_distance_from_perfectpos -= 4.0
$players_distance_from_perfectpos *= 14.14
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_19235

:DSKOOL_19228
$position_score = 0

:DSKOOL_19235
goto @DSKOOL_19249

:DSKOOL_19242
$position_score = 100

:DSKOOL_19249
add_int_var_to_int_var $overall_score += $position_score
$instructor_car_heading = get_car_heading $dummy_car1
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_19305
$heading_score = 100
goto @DSKOOL_19598

:DSKOOL_19305
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_19338
$heading_score = 100
goto @DSKOOL_19598

:DSKOOL_19338
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_19381
if 
  21 > $instructor_car_heading_int
goto_if_false @DSKOOL_19381
$heading_score = 100

:DSKOOL_19381
if 
  $instructor_car_heading_int > 179
goto_if_false @DSKOOL_19468
if 
  340 > $instructor_car_heading_int
goto_if_false @DSKOOL_19468
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_19598

:DSKOOL_19468
if 
  $instructor_car_heading_int > 339
goto_if_false @DSKOOL_19513
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_19513
$heading_score = 100

:DSKOOL_19513
if 
  $instructor_car_heading_int > 20
goto_if_false @DSKOOL_19598
if 
  180 > $instructor_car_heading_int
goto_if_false @DSKOOL_19598
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_19598

:DSKOOL_19598
if 
  1 > $heading_score
goto_if_false @DSKOOL_19623
$heading_score = 0

:DSKOOL_19623
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_19671
$overall_score = 0

:DSKOOL_19671
gosub @DSKOOL_31763
if 
  3 > $player_car_damage
goto_if_false @DSKOOL_19703
$player_car_damage = 0

:DSKOOL_19703
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_pittechnique_best_score
goto_if_false @DSKOOL_19782
set_lvar_int_to_var_int 47@ = $f1_pittechnique_best_score
set_var_int_to_var_int $f1_pittechnique_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_19789

:DSKOOL_19782
45@ = 0

:DSKOOL_19789
if 
  $f1_which_missions_are_open_flag == 14
goto_if_false @DSKOOL_19853
if 
  $overall_score > 69
goto_if_false @DSKOOL_19853
41@ = 2
$f1_which_missions_are_open_flag = 15
$instructor_car_dead_flag = 2
50@ = 15

:DSKOOL_19853
TIMERA = 0

:DSKOOL_19860
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_19920
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_19920
$instructor_car_dead_flag = 2
goto @DSKOOL_19966

:DSKOOL_19920
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_19959
goto @DSKOOL_19966

:DSKOOL_19959
goto @DSKOOL_19860

:DSKOOL_19966
gosub @DSKOOL_35152
delete_car $dummy_car1
delete_object 59@
delete_object 57@
delete_char 56@
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_20027
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_20034

:DSKOOL_20027
goto @DSKOOL_18352

:DSKOOL_20034
goto @DSKOOL_18739

:DSKOOL_20041
if 
  $mission_selection == 15
goto_if_false @DSKOOL_22693

:DSKOOL_20059
gosub @DSKOOL_30220

:DSKOOL_20066
$perfect_heading = 180.0
$car_timer = 6000
gosub @DSKOOL_30329
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy += 20.0
$instructor_car = create_car 429 {x} $perfect_positionx {y} $car_posy {z} $perfect_positionz
set_car_heading $instructor_car {heading} $perfect_heading
set_car_can_be_visibly_damaged $instructor_car {state} False
set_var_float_to_var_float $car_posx = $perfect_positionx
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 55.0
$perfect_heading = 90.0
57@ = create_object #AD_JUMP {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_object_heading 57@ {heading} 180.0
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 75.0
$dummy_car1 = create_car 411 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car1 {heading} $perfect_heading
freeze_car_position $dummy_car1 {state} True
set_var_float_to_var_float $car_posy = $perfect_positiony
$car_posy -= 80.0
$dummy_car2 = create_car 411 {x} $car_posx {y} $car_posy {z} $perfect_positionz
set_car_heading $dummy_car2 {heading} $perfect_heading
freeze_car_position $dummy_car2 {state} True
if 
  34@ == 0
goto_if_false @DSKOOL_20399
set_fixed_camera_position -2061.2 {y} -158.9 {z} 37.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2040.3 {y} -197.0 {z} 35.1 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_20397
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_20397
return 

:DSKOOL_20399
clear_prints 
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_33' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_20440
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_20475
$instructor_car_dead_flag = 2
goto @DSKOOL_22623

:DSKOOL_20475
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_20507
goto @DSKOOL_24457

:DSKOOL_20507
if 
  $car_started == 0
goto_if_false @DSKOOL_20589
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_20575
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_33' {time} 5000 {flag} 4

:DSKOOL_20575
gosub @DSKOOL_31215
goto @DSKOOL_22686

:DSKOOL_20589
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_22686
gosub @DSKOOL_31535
if 
  $lap_counter == 0
goto_if_false @DSKOOL_20685
if 
  is_car_in_area_3d $instructor_car {leftBottomX} -2047.0 {leftBottomY} -186.0 {leftBottomZ} 37.2 {rightTopX} -2054.0 {rightTopY} -190.0 {rightTopZ} 39.0 {drawSphere} False
goto_if_false @DSKOOL_20685
$lap_counter = 1

:DSKOOL_20685
if 
  $lap_counter == 1
goto_if_false @DSKOOL_20765
set_car_health $instructor_car {health} 1000
if 
  not is_car_in_air_proper $instructor_car
goto_if_false @DSKOOL_20765
if 
  is_car_upsidedown $instructor_car
goto_if_false @DSKOOL_20765
set_car_health $instructor_car {health} 700
set_car_can_be_visibly_damaged $instructor_car {state} True
$lap_counter = 2

:DSKOOL_20765
if 
  not is_car_in_air_proper $instructor_car
goto_if_false @DSKOOL_20804
if 
  is_car_upsidedown $instructor_car
goto_if_false @DSKOOL_20804
apply_brakes_to_players_car $player1 {state} True

:DSKOOL_20804
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2042.0 {leftBottomY} -100.0 {rightTopX} -2058.0 {rightTopY} -280.0 {drawSphere} False
goto_if_false @DSKOOL_20849
set_player_control $player1 {state} False

:DSKOOL_20849
$instructor_car_heading = get_car_heading $instructor_car
if or
  $instructor_car_heading > 200.0
  160.0 > $instructor_car_heading
goto_if_false @DSKOOL_20898
$variableb = 1.0

:DSKOOL_20898
36@ = get_car_roll $instructor_car
if 
  37@ == 0
goto_if_false @DSKOOL_20980
if 
  36@ > 5.0
goto_if_false @DSKOOL_20952
38@ = 1

:DSKOOL_20952
if 
  -5.0 > 36@
goto_if_false @DSKOOL_20980
38@ = 2

:DSKOOL_20980
if 
  38@ == 1
goto_if_false @DSKOOL_21319
if 
  37@ == 0
goto_if_false @DSKOOL_21044
if 
  36@ > 90.0
goto_if_false @DSKOOL_21044
37@ = 1

:DSKOOL_21044
if 
  37@ == 1
goto_if_false @DSKOOL_21090
if 
  36@ > 170.0
goto_if_false @DSKOOL_21090
37@ = 2

:DSKOOL_21090
if 
  37@ == 2
goto_if_false @DSKOOL_21157
if 
  0.0 > 36@
goto_if_false @DSKOOL_21157
if 
  36@ > -170.0
goto_if_false @DSKOOL_21157
37@ = 3

:DSKOOL_21157
if 
  37@ == 3
goto_if_false @DSKOOL_21252
if 
  0.0 > 36@
goto_if_false @DSKOOL_21224
if 
  36@ > -90.0
goto_if_false @DSKOOL_21224
37@ = 4

:DSKOOL_21224
if 
  36@ > 10.0
goto_if_false @DSKOOL_21252
37@ = 0

:DSKOOL_21252
if 
  37@ == 4
goto_if_false @DSKOOL_21319
if 
  0.0 > 36@
goto_if_false @DSKOOL_21319
if 
  36@ > -5.0
goto_if_false @DSKOOL_21319
37@ = 5

:DSKOOL_21319
if 
  38@ == 2
goto_if_false @DSKOOL_21658
if 
  37@ == 0
goto_if_false @DSKOOL_21383
if 
  -90.0 > 36@
goto_if_false @DSKOOL_21383
37@ = 1

:DSKOOL_21383
if 
  37@ == 1
goto_if_false @DSKOOL_21429
if 
  -170.0 > 36@
goto_if_false @DSKOOL_21429
37@ = 2

:DSKOOL_21429
if 
  37@ == 2
goto_if_false @DSKOOL_21496
if 
  36@ > 0.0
goto_if_false @DSKOOL_21496
if 
  170.0 > 36@
goto_if_false @DSKOOL_21496
37@ = 3

:DSKOOL_21496
if 
  37@ == 3
goto_if_false @DSKOOL_21591
if 
  36@ > 0.0
goto_if_false @DSKOOL_21563
if 
  90.0 > 36@
goto_if_false @DSKOOL_21563
37@ = 4

:DSKOOL_21563
if 
  -10.0 > 36@
goto_if_false @DSKOOL_21591
37@ = 0

:DSKOOL_21591
if 
  37@ == 4
goto_if_false @DSKOOL_21658
if 
  36@ > 0.0
goto_if_false @DSKOOL_21658
if 
  5.0 > 36@
goto_if_false @DSKOOL_21658
37@ = 5

:DSKOOL_21658
if 
  is_car_stopped $instructor_car
goto_if_false @DSKOOL_22686
gosub @DSKOOL_31569
if 
  37@ == 5
goto_if_false @DSKOOL_21706
$position_score = 100

:DSKOOL_21706
if 
  37@ == 4
goto_if_false @DSKOOL_21731
$position_score = 80

:DSKOOL_21731
if 
  37@ == 3
goto_if_false @DSKOOL_21756
$position_score = 60

:DSKOOL_21756
if 
  37@ == 2
goto_if_false @DSKOOL_21781
$position_score = 40

:DSKOOL_21781
if 
  37@ == 1
goto_if_false @DSKOOL_21806
$position_score = 20

:DSKOOL_21806
if 
  37@ == 0
goto_if_false @DSKOOL_21831
$position_score = 0

:DSKOOL_21831
if 
  $lap_counter == 0
goto_if_false @DSKOOL_21856
$position_score = 0

:DSKOOL_21856
if 
  is_car_upsidedown $instructor_car
goto_if_false @DSKOOL_21879
$position_score = 0

:DSKOOL_21879
if 
  not is_car_in_area_2d $instructor_car {leftBottomX} -2042.0 {leftBottomY} -215.0 {rightTopX} -2058.0 {rightTopY} -280.0 {drawSphere} False
goto_if_false @DSKOOL_21924
$position_score = 0

:DSKOOL_21924
$instructor_car_heading = get_car_heading $instructor_car
cset_var_int_to_var_float $instructor_car_heading_int =# $instructor_car_heading
if 
  $instructor_car_heading_int == 0
goto_if_false @DSKOOL_21972
$heading_score = 0
goto @DSKOOL_22255

:DSKOOL_21972
if 
  $instructor_car_heading_int == 180
goto_if_false @DSKOOL_22005
$heading_score = 100
goto @DSKOOL_22255

:DSKOOL_22005
if 
  $instructor_car_heading_int == 360
goto_if_false @DSKOOL_22038
$heading_score = 0
goto @DSKOOL_22255

:DSKOOL_22038
if 
  $instructor_car_heading_int > 0
goto_if_false @DSKOOL_22108
if 
  175 > $instructor_car_heading_int
goto_if_false @DSKOOL_22108
cset_var_float_to_var_int $variableb =# $instructor_car_heading_int
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @DSKOOL_22255

:DSKOOL_22108
if 
  $instructor_car_heading_int > 174
goto_if_false @DSKOOL_22153
if 
  186 > $instructor_car_heading_int
goto_if_false @DSKOOL_22153
$heading_score = 100

:DSKOOL_22153
if 
  $instructor_car_heading_int > 185
goto_if_false @DSKOOL_22255
if 
  360 > $instructor_car_heading_int
goto_if_false @DSKOOL_22255
set_var_int_to_var_int $variablea = $instructor_car_heading_int
$variablea -= 180
cset_var_float_to_var_int $variableb =# $variablea
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @DSKOOL_22255

:DSKOOL_22255
if 
  1 > $heading_score
goto_if_false @DSKOOL_22280
$heading_score = 0

:DSKOOL_22280
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @DSKOOL_22328
$overall_score = 0

:DSKOOL_22328
gosub @DSKOOL_31763
if 
  2 > $player_car_damage
goto_if_false @DSKOOL_22360
$player_car_damage = 0

:DSKOOL_22360
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_alleyoop_best_score
goto_if_false @DSKOOL_22439
set_lvar_int_to_var_int 47@ = $f1_alleyoop_best_score
set_var_int_to_var_int $f1_alleyoop_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_22446

:DSKOOL_22439
45@ = 0

:DSKOOL_22446
if 
  $f1_which_missions_are_open_flag == 15
goto_if_false @DSKOOL_22510
if 
  $overall_score > 69
goto_if_false @DSKOOL_22510
41@ = 2
$f1_which_missions_are_open_flag = 16
$instructor_car_dead_flag = 2
50@ = 16

:DSKOOL_22510
TIMERA = 0

:DSKOOL_22517
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_22577
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_22577
$instructor_car_dead_flag = 2
goto @DSKOOL_22623

:DSKOOL_22577
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_22616
goto @DSKOOL_22623

:DSKOOL_22616
goto @DSKOOL_22517

:DSKOOL_22623
gosub @DSKOOL_35152
delete_car $dummy_car1
delete_car $dummy_car2
delete_object 57@
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_22679
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_22686

:DSKOOL_22679
goto @DSKOOL_20059

:DSKOOL_22686
goto @DSKOOL_20440

:DSKOOL_22693
if 
  $mission_selection == 16
goto_if_false @DSKOOL_24457

:DSKOOL_22711
gosub @DSKOOL_30220

:DSKOOL_22718
$perfect_heading = 180.0
$car_timer = 0
gosub @DSKOOL_30329
$perfect_positionx = -2046.7
$perfect_positiony = -90.2
$perfect_positionz = 33.9
$cone_coords_x = -1724.3
$cone_coords_y = 1294.0
$cone_coords_z = 6.0
$instructor_car = create_car 506 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading $instructor_car {heading} 0.0
set_car_watertight $instructor_car {state} True
if 
  34@ == 0
goto_if_false @DSKOOL_22931
set_fixed_camera_position -2017.3 {y} -45.0 {z} 34.41 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2039.0 {y} -100.3 {z} 37.4 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_22929
55@ = create_random_char_as_driver $instructor_car

:DSKOOL_22929
return 

:DSKOOL_22931
clear_prints 
set_car_density_multiplier 0.5
load_scene $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
35@ = add_blip_for_coord $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z
42@ = create_checkpoint CheckpointType.TubeArrow {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z {pointX} $perfect_positionx {pointY} $perfect_positiony {pointZ} $perfect_positionz {radius} 5.0
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_31' {time} 5000 {flag} 4
gosub @DSKOOL_31041

:DSKOOL_23034
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_23069
$instructor_car_dead_flag = 2
goto @DSKOOL_24136

:DSKOOL_23069
gosub @DSKOOL_31109
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_23101
goto @DSKOOL_24457

:DSKOOL_23101
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_23126
goto @DSKOOL_24136

:DSKOOL_23126
if 
  $car_started == 0
goto_if_false @DSKOOL_23208
if 
  $instructor_car_dead_flag <> 2
goto_if_false @DSKOOL_23194
print_big 'DSTART' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DS1_31' {time} 5000 {flag} 4

:DSKOOL_23194
gosub @DSKOOL_31215
goto @DSKOOL_24450

:DSKOOL_23208
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_24450
if 
  $car_timer > 260000
goto_if_false @DSKOOL_23252
set_player_control $player1 {state} False

:DSKOOL_23252
if 
  $lap_counter == 0
goto_if_false @DSKOOL_23373
if 
  locate_car_3d $instructor_car {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DSKOOL_23373
remove_blip 35@
35@ = add_blip_for_coord $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
delete_checkpoint 42@
42@ = create_checkpoint CheckpointType.TubeEnd {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz {pointX} $perfect_positionx {pointY} $perfect_positiony {pointZ} $perfect_positionz {radius} 5.0
$lap_counter = 1

:DSKOOL_23373
if 
  $lap_counter == 1
goto_if_false @DSKOOL_23445
if 
  locate_car_3d $instructor_car {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DSKOOL_23445
remove_blip 35@
$lap_counter = 2

:DSKOOL_23445
clear_prints 
if or
  is_car_stopped $instructor_car
  $lap_counter == 2
  is_car_in_water $instructor_car
  $car_timer >= 140000
goto_if_false @DSKOOL_24450
gosub @DSKOOL_31569
delete_checkpoint 42@
set_var_int_to_var_int $variablea = $car_timer
set_var_int_to_var_int $overall_secs = $variablea
$overall_secs /= 1000
set_var_int_to_var_int $overall_millisecs = $overall_secs
$overall_millisecs *= 1000
set_var_int_to_var_int $variablec = $variablea
sub_int_var_from_int_var $variablec -= $overall_millisecs
set_var_int_to_var_int $overall_millisecs = $variablec
$overall_millisecs /= 10
$time_score = 0
if 
  2 > $lap_counter
goto_if_false @DSKOOL_23607
$time_score = 0
goto @DSKOOL_23865

:DSKOOL_23607
if 
  100000 > $variablea
goto_if_false @DSKOOL_23635
$time_score = 100

:DSKOOL_23635
if 
  $variablea >= 100000
goto_if_false @DSKOOL_23736
if 
  120000 > $variablea
goto_if_false @DSKOOL_23736
set_var_int_to_var_int $variablec = $variablea
$variablec -= 99999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0015
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 100
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_23736
if 
  $variablea >= 120000
goto_if_false @DSKOOL_23837
if 
  140000 > $variablea
goto_if_false @DSKOOL_23837
set_var_int_to_var_int $variablec = $variablea
$variablec -= 119999
cset_var_float_to_var_int $variableb =# $variablec
$variableb *= 0.0035
cset_var_int_to_var_float $variablea =# $variableb
$time_score = 70
sub_int_var_from_int_var $time_score -= $variablea

:DSKOOL_23837
if 
  $variablea >= 140000
goto_if_false @DSKOOL_23865
$time_score = 0

:DSKOOL_23865
if 
  1 > $time_score
goto_if_false @DSKOOL_23890
$time_score = 0

:DSKOOL_23890
if 
  $time_score > 99
goto_if_false @DSKOOL_23915
$time_score = 100

:DSKOOL_23915
set_var_int_to_var_int $overall_score = $time_score
gosub @DSKOOL_31763
set_var_int_to_var_int $total_car_damage = $player_car_damage
sub_int_var_from_int_var $overall_score -= $total_car_damage
gosub @DSKOOL_32476
if 
  is_int_var_greater_than_int_var $overall_score > $f1_cityslicking_best_score
goto_if_false @DSKOOL_24009
set_lvar_int_to_var_int 47@ = $f1_cityslicking_best_score
set_var_int_to_var_int $f1_cityslicking_best_score = $overall_score
41@ = 1
gosub @DSKOOL_32958
goto @DSKOOL_24016

:DSKOOL_24009
45@ = 0

:DSKOOL_24016
$lap_counter = 5
TIMERA = 0

:DSKOOL_24030
wait 0
gosub @DSKOOL_32505
if 
  41@ <> 2
goto_if_false @DSKOOL_24090
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DSKOOL_24090
$instructor_car_dead_flag = 2
goto @DSKOOL_24136

:DSKOOL_24090
gosub @DSKOOL_33258
gosub @DSKOOL_35069
if 
  $finished_watching_scores == 1
goto_if_false @DSKOOL_24129
goto @DSKOOL_24136

:DSKOOL_24129
goto @DSKOOL_24030

:DSKOOL_24136
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_24385
if 
  $f1_which_missions_are_open_flag == 16
goto_if_false @DSKOOL_24385
if 
  $overall_score > 69
goto_if_false @DSKOOL_24385
do_fade 500 {direction} Fade.Out

:DSKOOL_24197
if 
  get_fading_status 
goto_if_false @DSKOOL_24221
wait 0
goto @DSKOOL_24197

:DSKOOL_24221
set_area_visible 3
set_char_area_visible $scplayer {areaId} 3
clear_extra_colours True
request_collision -2031.1 {y} -118.2
load_scene -2031.1 {y} -118.2 {z} 1034.2
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2029.7 {y} -115.5 {z} 1034.2
set_char_heading $scplayer {heading} 0.0
clear_char_tasks_immediately $scplayer
delete_car $instructor_car
clear_area -2051.0 {y} -174.0 {z} 34.0 {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:DSKOOL_24354
if 
  get_fading_status 
goto_if_false @DSKOOL_24378
wait 0
goto @DSKOOL_24354

:DSKOOL_24378
goto @DSKOOL_24495

:DSKOOL_24385
gosub @DSKOOL_35152
remove_blip 35@
delete_checkpoint 42@
set_car_density_multiplier 1.0
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_24443
clear_prints 
goto @DSKOOL_1425
goto @DSKOOL_24450

:DSKOOL_24443
goto @DSKOOL_22711

:DSKOOL_24450
goto @DSKOOL_23034

:DSKOOL_24457
clear_prints 
if 
  $instructor_car_dead_flag == 1
goto_if_false @DSKOOL_24493
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:DSKOOL_24493
return 

:DSKOOL_24495
if 
  $driving_test_passed == 0
goto_if_false @DSKOOL_24616
remove_blip $dschool_contact_blip
$dschool_contact_blip = add_short_range_sprite_blip_for_contact_point $testsX {y} $testsY {z} $testsZ {sprite} RadarSprite.School
change_blip_display $dschool_contact_blip {display} BlipDisplay.BlipOnly
switch_car_generator $f1_chunky {amount} 101
switch_car_generator $f1_dbp {amount} 101
clear_prints 
print_with_number_big 'DS_PASS' {num} 15 {duration} 5000 {style} TextStyle.Middle
increment_float_stat StatId.DrivingSkill {value} 40.0
play_mission_passed_tune 2
clear_wanted_level $player1
register_mission_passed 'FAR_1'
player_made_progress 1
$driving_test_passed = 1

:DSKOOL_24616
return 

:DSKOOL_24618
if 
  $f1_bronze_award == 0
goto_if_false @DSKOOL_24866
if 
  $f1_the360_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_the180_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_whiprightterminate_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_popcontrol_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_burnlapright_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_conecoilright_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_the90_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_wheelieweave_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_spinrightgo_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_pittechnique_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_alleyoop_best_score >= 70
goto_if_false @DSKOOL_24866
if 
  $f1_cityslicking_best_score >= 70
goto_if_false @DSKOOL_24866
switch_car_generator $f1_bronze_car_gen {amount} 101
$f1_bronze_award = 1

:DSKOOL_24866
if 
  $f1_silver_award == 0
goto_if_false @DSKOOL_25114
if 
  $f1_the360_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_the180_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_whiprightterminate_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_popcontrol_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_burnlapright_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_conecoilright_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_the90_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_wheelieweave_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_spinrightgo_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_pittechnique_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_alleyoop_best_score >= 85
goto_if_false @DSKOOL_25114
if 
  $f1_cityslicking_best_score >= 85
goto_if_false @DSKOOL_25114
switch_car_generator $f1_silver_car_gen {amount} 101
$f1_silver_award = 1

:DSKOOL_25114
if 
  $f1_gold_award == 0
goto_if_false @DSKOOL_25362
if 
  $f1_the360_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_the180_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_whiprightterminate_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_popcontrol_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_burnlapright_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_conecoilright_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_the90_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_wheelieweave_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_spinrightgo_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_pittechnique_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_alleyoop_best_score == 100
goto_if_false @DSKOOL_25362
if 
  $f1_cityslicking_best_score == 100
goto_if_false @DSKOOL_25362
switch_car_generator $f1_gold_car_gen {amount} 101
$f1_gold_award = 1

:DSKOOL_25362
clear_onscreen_timer $car_timer
use_text_commands False
release_weather 
mark_model_as_no_longer_needed 429
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed #TRAFFICCONE
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 496
mark_model_as_no_longer_needed 411
mark_model_as_no_longer_needed 506
mark_model_as_no_longer_needed 597
mark_model_as_no_longer_needed 281
mark_model_as_no_longer_needed #TEMP_STINGER2
mark_model_as_no_longer_needed #GARYS_LUV_RAMP
mark_model_as_no_longer_needed #AD_JUMP
mark_model_as_no_longer_needed #AD_ROADMARK1
mark_model_as_no_longer_needed #AD_ROADMARK2
mark_model_as_no_longer_needed #AD_FINISH
switch_roads_back_to_original -2015.37 {leftBottomY} -76.08 {leftBottomZ} 10.0 {rightTopX} -2078.3 {rightTopY} -66.75 {rightTopZ} 50.0
allow_fixed_camera_collision False
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDrivingAwardTrackStop
activate_garage 'BODLAWN'
activate_garage 'MODLAST'
activate_garage 'MDSSFSE'
if 
  $japcar_mod_garage_open == 1
goto_if_false @DSKOOL_25576
activate_garage 'MDS1SFS'
activate_garage 'VECMOD'

:DSKOOL_25576
set_no_resprays False
if 
  not is_char_dead $scplayer
goto_if_false @DSKOOL_25603
shut_char_up_for_scripted_speech $scplayer {state} False

:DSKOOL_25603
shut_all_chars_up False
remove_texture_dictionary 
set_car_density_multiplier 1.0
display_hud True
display_radar True
remove_blip 35@
delete_checkpoint 42@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:DSKOOL_25654
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 44@
if 
  43@ == 1
goto_if_false @DSKOOL_25776
if 
  255 > 44@
goto_if_false @DSKOOL_25769
44@ += 5
if 
  44@ > 255
goto_if_false @DSKOOL_25762
44@ = 255

:DSKOOL_25762
goto @DSKOOL_25776

:DSKOOL_25769
43@ = 2

:DSKOOL_25776
if 
  43@ == 3
goto_if_false @DSKOOL_25858
if 
  44@ > 0
goto_if_false @DSKOOL_25851
44@ -= 5
if 
  0 > 44@
goto_if_false @DSKOOL_25844
44@ = 0

:DSKOOL_25844
goto @DSKOOL_25858

:DSKOOL_25851
43@ = 0

:DSKOOL_25858
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @DSKOOL_30158
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $mission_selection == 1
goto_if_false @DSKOOL_25970
display_text 322.0 {offsetTop} 31.0 {key} 'DS_P'
set_lvar_int_to_var_int 46@ = $f1_the360_best_score
gosub @DSKOOL_27923

:DSKOOL_25970
if 
  $mission_selection == 2
goto_if_false @DSKOOL_26024
display_text 322.0 {offsetTop} 31.0 {key} 'DS_O'
set_lvar_int_to_var_int 46@ = $f1_the180_best_score
gosub @DSKOOL_27923

:DSKOOL_26024
if 
  $mission_selection == 3
goto_if_false @DSKOOL_26078
display_text 322.0 {offsetTop} 31.0 {key} 'DS_I'
set_lvar_int_to_var_int 46@ = $f1_whiprightterminate_best_score
gosub @DSKOOL_27923

:DSKOOL_26078
if 
  $mission_selection == 4
goto_if_false @DSKOOL_26132
display_text 322.0 {offsetTop} 31.0 {key} 'DS_I'
set_lvar_int_to_var_int 46@ = $f1_whiprightterminate_best_score
gosub @DSKOOL_27923

:DSKOOL_26132
if 
  $mission_selection == 5
goto_if_false @DSKOOL_26186
display_text 322.0 {offsetTop} 31.0 {key} 'DS_F'
set_lvar_int_to_var_int 46@ = $f1_popcontrol_best_score
gosub @DSKOOL_27923

:DSKOOL_26186
if 
  $mission_selection == 6
goto_if_false @DSKOOL_26240
display_text 322.0 {offsetTop} 31.0 {key} 'DS_E'
set_lvar_int_to_var_int 46@ = $f1_burnlapright_best_score
gosub @DSKOOL_27923

:DSKOOL_26240
if 
  $mission_selection == 7
goto_if_false @DSKOOL_26294
display_text 322.0 {offsetTop} 31.0 {key} 'DS_E'
set_lvar_int_to_var_int 46@ = $f1_burnlapright_best_score
gosub @DSKOOL_27923

:DSKOOL_26294
if 
  $mission_selection == 8
goto_if_false @DSKOOL_26348
display_text 322.0 {offsetTop} 31.0 {key} 'DS_N'
set_lvar_int_to_var_int 46@ = $f1_conecoilright_best_score
gosub @DSKOOL_27923

:DSKOOL_26348
if 
  $mission_selection == 9
goto_if_false @DSKOOL_26402
display_text 322.0 {offsetTop} 31.0 {key} 'DS_N'
set_lvar_int_to_var_int 46@ = $f1_conecoilright_best_score
gosub @DSKOOL_27923

:DSKOOL_26402
if 
  $mission_selection == 10
goto_if_false @DSKOOL_26456
display_text 322.0 {offsetTop} 31.0 {key} 'DS_A'
set_lvar_int_to_var_int 46@ = $f1_the90_best_score
gosub @DSKOOL_27923

:DSKOOL_26456
if 
  $mission_selection == 11
goto_if_false @DSKOOL_26510
display_text 322.0 {offsetTop} 31.0 {key} 'DS_K'
set_lvar_int_to_var_int 46@ = $f1_wheelieweave_best_score
gosub @DSKOOL_27923

:DSKOOL_26510
if 
  $mission_selection == 12
goto_if_false @DSKOOL_26564
display_text 322.0 {offsetTop} 31.0 {key} 'DS_C'
set_lvar_int_to_var_int 46@ = $f1_spinrightgo_best_score
gosub @DSKOOL_27923

:DSKOOL_26564
if 
  $mission_selection == 13
goto_if_false @DSKOOL_26618
display_text 322.0 {offsetTop} 31.0 {key} 'DS_C'
set_lvar_int_to_var_int 46@ = $f1_spinrightgo_best_score
gosub @DSKOOL_27923

:DSKOOL_26618
if 
  $mission_selection == 14
goto_if_false @DSKOOL_26672
display_text 322.0 {offsetTop} 31.0 {key} 'DS_L'
set_lvar_int_to_var_int 46@ = $f1_pittechnique_best_score
gosub @DSKOOL_27923

:DSKOOL_26672
if 
  $mission_selection == 15
goto_if_false @DSKOOL_26726
display_text 322.0 {offsetTop} 31.0 {key} 'DS_J'
set_lvar_int_to_var_int 46@ = $f1_alleyoop_best_score
gosub @DSKOOL_27923

:DSKOOL_26726
if 
  $mission_selection == 16
goto_if_false @DSKOOL_26780
display_text 322.0 {offsetTop} 31.0 {key} 'DS_G'
set_lvar_int_to_var_int 46@ = $f1_cityslicking_best_score
gosub @DSKOOL_27923

:DSKOOL_26780
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DSKOOL_26875
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 360.0 {key} 'DS1_53'
goto @DSKOOL_26908

:DSKOOL_26875
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 360.0 {key} 'DS1_53'

:DSKOOL_26908
if 
  39@ <> 1
goto_if_false @DSKOOL_27335
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DSKOOL_27021
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 340.0 {key} 'DS1_54'
goto @DSKOOL_27054

:DSKOOL_27021
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 340.0 {key} 'DS1_54'

:DSKOOL_27054
if 
  $f1_which_missions_are_open_flag <> 1
goto_if_false @DSKOOL_27207
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DSKOOL_27167
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'DS1_52'
goto @DSKOOL_27200

:DSKOOL_27167
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'DS1_52'

:DSKOOL_27200
goto @DSKOOL_27335

:DSKOOL_27207
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Radar
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DSKOOL_27302
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'DS1_52'
goto @DSKOOL_27335

:DSKOOL_27302
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'DS1_52'

:DSKOOL_27335
gosub @DSKOOL_29980
set_text_scale 0.32 {heightScale} 1.25
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Health
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 150.0 {offsetTop} 360.0 {key} 'DS1_63'
if 
  39@ <> 1
goto_if_false @DSKOOL_27669
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Health
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
set_text_scale 0.32 {heightScale} 1.25
display_text 150.0 {offsetTop} 340.0 {key} 'SCH_PRS'
if 
  $f1_which_missions_are_open_flag <> 1
goto_if_false @DSKOOL_27581
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Health
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'DS1_62'

:DSKOOL_27581
if 
  $f1_which_missions_are_open_flag == 1
goto_if_false @DSKOOL_27669
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Health
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'DS1_62'

:DSKOOL_27669
set_text_scale 0.52 {heightScale} 1.45
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:DSKOOL_27923
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
if 
  70 > 46@
goto_if_false @DSKOOL_27985
45@ = 1

:DSKOOL_27985
if 
  46@ > 69
goto_if_false @DSKOOL_28028
if 
  85 > 46@
goto_if_false @DSKOOL_28028
45@ = 2

:DSKOOL_28028
if 
  46@ > 84
goto_if_false @DSKOOL_28071
if 
  100 > 46@
goto_if_false @DSKOOL_28071
45@ = 3

:DSKOOL_28071
if 
  46@ == 100
goto_if_false @DSKOOL_28096
45@ = 4

:DSKOOL_28096
gosub @DSKOOL_29980
set_text_right_justify False
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
if 
  45@ > 1
goto_if_false @DSKOOL_28186
display_text_with_number 217.0 {offsetTop} 75.0 {key} 'DS1_58' {num} 46@
goto @DSKOOL_28381

:DSKOOL_28186
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @DSKOOL_28225
display_text 175.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28225
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @DSKOOL_28264
display_text 83.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28264
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @DSKOOL_28303
display_text 89.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28303
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @DSKOOL_28342
display_text 147.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28342
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @DSKOOL_28381
display_text 65.0 {offsetTop} 75.0 {key} 'DS1_67'

:DSKOOL_28381
if 
  45@ > 1
goto_if_false @DSKOOL_28486
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @DSKOOL_28566

:DSKOOL_28486
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:DSKOOL_28566
set_sprites_draw_before_fade True
if 
  45@ == 1
goto_if_false @DSKOOL_28743
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @DSKOOL_28649
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
goto @DSKOOL_28685

:DSKOOL_28649
draw_sprite 10 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_28685
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 266.0 {offsetTop} 375.0 {key} 'DS1_68'

:DSKOOL_28743
if 
  45@ == 2
goto_if_false @DSKOOL_28855
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 280.0 {offsetTop} 375.0 {key} 'DS1_57'

:DSKOOL_28855
if 
  45@ == 3
goto_if_false @DSKOOL_28967
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 283.0 {offsetTop} 375.0 {key} 'DS1_56'

:DSKOOL_28967
if 
  45@ == 4
goto_if_false @DSKOOL_29079
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DSKOOL_29980
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 294.0 {offsetTop} 375.0 {key} 'DS1_55'

:DSKOOL_29079
return 

:DSKOOL_29081
if 
  34@ == 0
goto_if_false @DSKOOL_29406
if 
  $mission_selection == 1
goto_if_false @DSKOOL_29124
gosub @DSKOOL_3843

:DSKOOL_29124
if 
  $mission_selection == 2
goto_if_false @DSKOOL_29149
gosub @DSKOOL_5416

:DSKOOL_29149
if 
  $mission_selection == 4
goto_if_false @DSKOOL_29174
gosub @DSKOOL_6742

:DSKOOL_29174
if 
  $mission_selection == 5
goto_if_false @DSKOOL_29199
gosub @DSKOOL_8347

:DSKOOL_29199
if 
  $mission_selection == 7
goto_if_false @DSKOOL_29224
gosub @DSKOOL_9857

:DSKOOL_29224
if 
  $mission_selection == 9
goto_if_false @DSKOOL_29249
gosub @DSKOOL_11959

:DSKOOL_29249
if 
  $mission_selection == 10
goto_if_false @DSKOOL_29274
gosub @DSKOOL_13448

:DSKOOL_29274
if 
  $mission_selection == 11
goto_if_false @DSKOOL_29299
gosub @DSKOOL_15346

:DSKOOL_29299
if 
  $mission_selection == 13
goto_if_false @DSKOOL_29324
gosub @DSKOOL_16957

:DSKOOL_29324
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29349
gosub @DSKOOL_18359

:DSKOOL_29349
if 
  $mission_selection == 15
goto_if_false @DSKOOL_29374
gosub @DSKOOL_20066

:DSKOOL_29374
if 
  $mission_selection == 16
goto_if_false @DSKOOL_29399
gosub @DSKOOL_22718

:DSKOOL_29399
34@ = 1

:DSKOOL_29406
if 
  34@ == 1
goto_if_false @DSKOOL_29643
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29577
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_29570
if 
  not has_car_recording_been_loaded 14
goto_if_false @DSKOOL_29477
request_car_recording 14

:DSKOOL_29477
if 
  not has_car_recording_been_loaded 3
goto_if_false @DSKOOL_29496
request_car_recording 3

:DSKOOL_29496
if 
  has_car_recording_been_loaded 14
goto_if_false @DSKOOL_29570
if 
  has_car_recording_been_loaded 3
goto_if_false @DSKOOL_29570
start_playback_recorded_car $instructor_car {path} 14
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_29556
start_playback_recorded_car $dummy_car1 {path} 3

:DSKOOL_29556
43@ = 3
34@ = 2

:DSKOOL_29570
goto @DSKOOL_29643

:DSKOOL_29577
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_29643
if 
  not has_car_recording_been_loaded $mission_selection
goto_if_false @DSKOOL_29621
request_car_recording $mission_selection
goto @DSKOOL_29643

:DSKOOL_29621
start_playback_recorded_car $instructor_car {path} $mission_selection
43@ = 3
34@ = 2

:DSKOOL_29643
if 
  34@ == 2
goto_if_false @DSKOOL_29728
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_29714
if 
  not is_playback_going_on_for_car $instructor_car
goto_if_false @DSKOOL_29707
43@ = 1
34@ = 4

:DSKOOL_29707
goto @DSKOOL_29728

:DSKOOL_29714
43@ = 1
34@ = 4

:DSKOOL_29728
if 
  34@ == 3
goto_if_false @DSKOOL_29760
43@ = 1
34@ = 4

:DSKOOL_29760
if 
  34@ == 4
goto_if_false @DSKOOL_29978
if 
  43@ == 2
goto_if_false @DSKOOL_29978
if 
  $mission_selection == 14
goto_if_false @DSKOOL_29835
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_29835
stop_playback_recorded_car $dummy_car1

:DSKOOL_29835
stop_playback_recorded_car $instructor_car
delete_car $instructor_car
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_char 55@
delete_char 56@
delete_car $dummy_car1
delete_car $dummy_car2
delete_car $instructor_car
delete_object 57@
delete_object 58@
delete_object 59@
remove_car_recording 1
remove_car_recording 2
remove_car_recording 3
remove_car_recording 4
remove_car_recording 5
remove_car_recording 7
remove_car_recording 9
remove_car_recording 10
remove_car_recording 11
remove_car_recording 13
remove_car_recording 14
remove_car_recording 15
remove_car_recording 16
gosub @DSKOOL_35436
34@ = 0

:DSKOOL_29978
return 

:DSKOOL_29980
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:DSKOOL_30042
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:DSKOOL_30100
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:DSKOOL_30158
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 

:DSKOOL_30220
do_fade 500 {direction} Fade.Out

:DSKOOL_30227
if 
  get_fading_status 
goto_if_false @DSKOOL_30251
wait 0
goto @DSKOOL_30227

:DSKOOL_30251
if 
  $mission_selection == 16
goto_if_false @DSKOOL_30290
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
goto @DSKOOL_30304

:DSKOOL_30290
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0

:DSKOOL_30304
restore_camera_jumpcut 
set_camera_behind_player 
force_weather_now WeatherType.ExtraSunnySf
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_extra_colours False
return 

:DSKOOL_30329
$area_check1ax = 0.0
$area_check1ay = 0.0
$area_check1bx = 0.0
$area_check1by = 0.0
$area_check2ax = 0.0
$area_check2ay = 0.0
$area_check2bx = 0.0
$area_check2by = 0.0
$area_check3ax = 0.0
$area_check3ay = 0.0
$area_check3bx = 0.0
$area_check3by = 0.0
$area_check4ax = 0.0
$area_check4ay = 0.0
$area_check4bx = 0.0
$area_check4by = 0.0
$button_pressed = 0
$car_posx = 0.0
$car_posy = 0.0
$cone_coords_x = 0.0
$cone_coords_y = 0.0
$cone_coords_z = 0.0
$cone_circle_radius = 10.0
$car_started = 0
$circle_start_x = 0.0
$circle_start_y = 0.0
$camera_positionx = 0.0
$camera_positiony = 0.0
$camera_positionz = 0.0
$camera_position_int = 0
$dummy_car1_health = 0
$dummy_car2_health = 0
$finish_leftx = 0.0
$finish_lefty = 0.0
$finish_rightx = 0.0
$finish_righty = 0.0
$finished_watching_scores = 0
$heading_score = 0
$instructor_car_speed = 0.0
$instructor_car_heading = 0.0
$instructor_car_heading_int = 0
$instructor_car_health = 0
$instructor_car_dead_flag = 0
$lap_counter = 0
$lap1_secs = 0
$lap1_millisecs = 0
$lap2_secs = 0
$lap2_millisecs = 0
$lap3_secs = 0
$lap3_millisecs = 0
$lap4_secs = 0
$lap4_millisecs = 0
$lap5_secs = 0
$lap5_millisecs = 0
$overall_lap1 = 0
$overall_lap2 = 0
$overall_lap3 = 0
$overall_lap4 = 0
$overall_lap5 = 0
$overall_secs = 0
$overall_millisecs = 0
$overall_score = 0
$other_car_damage = 0
set_var_float_to_var_float $perfect_positionx = $start_coordsx
set_var_float_to_var_float $perfect_positiony = $start_coordsy
$perfect_positionz = get_ground_z_for_3d_coord $perfect_positionx {y} $perfect_positiony {z} 50.0
$player_car_damage = 0
$players_distance_from_perfectpos = 0.0
$position_score = 0
$time_score = 0
$total_instructor_car_health = 0
$total_dummy_car1_health = 0
$total_dummy_car2_health = 0
$total_car_damage = 0
$variablea = 0
$variableb = 0.0
$variablec = 0
$variabled = 0
$where_to_place_cones = 0.0
36@ = 0.0
37@ = 0
38@ = 0
41@ = 0
40@ = 0
return 

:DSKOOL_31041
warp_char_into_car $scplayer {vehicle} $instructor_car
lock_car_doors $instructor_car {lockStatus} CarLock.LockedPlayerInside
wait 0
restore_camera_jumpcut 
set_camera_behind_player 
clear_wanted_level $player1
do_fade 500 {direction} Fade.In

:DSKOOL_31076
if 
  get_fading_status 
goto_if_false @DSKOOL_31100
wait 0
goto @DSKOOL_31076

:DSKOOL_31100
set_player_control $player1 {state} True
return 

:DSKOOL_31109
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_31176
if 
  $car_started == 1
goto_if_false @DSKOOL_31169
if 
  not is_char_in_car $scplayer {vehicle} $instructor_car
goto_if_false @DSKOOL_31169
$instructor_car_dead_flag = 1

:DSKOOL_31169
goto @DSKOOL_31213

:DSKOOL_31176
if 
  is_car_in_water $instructor_car
goto_if_false @DSKOOL_31206
$instructor_car_dead_flag = 2
goto @DSKOOL_31213

:DSKOOL_31206
$instructor_car_dead_flag = 1

:DSKOOL_31213
return 

:DSKOOL_31215
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_31258
if 
  is_char_in_car $scplayer {vehicle} $instructor_car
goto_if_false @DSKOOL_31258
$instructor_car_speed = get_car_speed $instructor_car

:DSKOOL_31258
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DSKOOL_31533
if 
  $instructor_car_speed > 0.5
goto_if_false @DSKOOL_31533
clear_prints 
if or
  $mission_selection == 10
  $mission_selection == 12
  $mission_selection == 13
  $mission_selection == 5
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_31371
display_onscreen_timer $car_timer {direction} TimerDirection.Down
set_timer_beep_countdown_time $car_timer {timeInSec} 3

:DSKOOL_31371
if or
  $mission_selection == 15
  $mission_selection == 8
  $mission_selection == 9
  $mission_selection == 2
  $mission_selection == 1
goto_if_false @DSKOOL_31431
display_onscreen_timer $car_timer {direction} TimerDirection.Down
set_timer_beep_countdown_time $car_timer {timeInSec} 3

:DSKOOL_31431
if or
  $mission_selection == 6
  $mission_selection == 7
  $mission_selection == 16
goto_if_false @DSKOOL_31470
display_onscreen_timer $car_timer {direction} TimerDirection.Up

:DSKOOL_31470
if 
  $mission_selection == 14
goto_if_false @DSKOOL_31526
if 
  not is_car_dead $dummy_car1
goto_if_false @DSKOOL_31526
set_car_forward_speed $dummy_car1 {forwardSpeed} 6.0
set_car_temp_action $dummy_car1 {actionId} TempAction.GoForward {time} 864000000

:DSKOOL_31526
$car_started = 1

:DSKOOL_31533
return 

:DSKOOL_31535
if 
  $car_timer == 0
goto_if_false @DSKOOL_31567
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True

:DSKOOL_31567
return 

:DSKOOL_31569
set_player_control $player1 {state} False
freeze_car_position $instructor_car {state} True
freeze_onscreen_timer True
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDrivingAwardTrackStart
return 

:DSKOOL_31609
$player_x, $player_y, $player_z = get_car_coordinates $instructor_car
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @DSKOOL_31746
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @DSKOOL_31732
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 10.42
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @DSKOOL_31739

:DSKOOL_31732
$position_score = 0

:DSKOOL_31739
goto @DSKOOL_31753

:DSKOOL_31746
$position_score = 100

:DSKOOL_31753
add_int_var_to_int_var $overall_score += $position_score
return 

:DSKOOL_31763
$instructor_car_health = get_car_health $instructor_car
$player_car_damage = 1000
sub_int_var_from_int_var $player_car_damage -= $instructor_car_health
if 
  $mission_selection == 16
goto_if_false @DSKOOL_31819
$player_car_damage /= 10
goto @DSKOOL_31826

:DSKOOL_31819
$player_car_damage /= 2

:DSKOOL_31826
if 
  $player_car_damage > 100
goto_if_false @DSKOOL_31851
$player_car_damage = 100

:DSKOOL_31851
return 

:DSKOOL_31853
$total_car_damage = 0
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @DSKOOL_31944

:DSKOOL_31885
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_31944
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_31930
$total_car_damage += 10

:DSKOOL_31930
$trafficcone_counter += 1
goto @DSKOOL_31885

:DSKOOL_31944
if 
  $mission_selection == 2
goto_if_false @DSKOOL_32021

:DSKOOL_31962
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_32021
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32007
$total_car_damage += 10

:DSKOOL_32007
$trafficcone_counter += 1
goto @DSKOOL_31962

:DSKOOL_32021
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_32105

:DSKOOL_32046
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_32105
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32091
$total_car_damage += 10

:DSKOOL_32091
$trafficcone_counter += 1
goto @DSKOOL_32046

:DSKOOL_32105
if 
  $mission_selection == 5
goto_if_false @DSKOOL_32182

:DSKOOL_32123
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_32182
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32168
$total_car_damage += 10

:DSKOOL_32168
$trafficcone_counter += 1
goto @DSKOOL_32123

:DSKOOL_32182
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_32266

:DSKOOL_32207
if 
  42 > $trafficcone_counter
goto_if_false @DSKOOL_32266
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32252
$total_car_damage += 10

:DSKOOL_32252
$trafficcone_counter += 1
goto @DSKOOL_32207

:DSKOOL_32266
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_32350

:DSKOOL_32291
if 
  30 > $trafficcone_counter
goto_if_false @DSKOOL_32350
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32336
$total_car_damage += 10

:DSKOOL_32336
$trafficcone_counter += 1
goto @DSKOOL_32291

:DSKOOL_32350
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_32434

:DSKOOL_32375
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_32434
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_32420
$total_car_damage += 10

:DSKOOL_32420
$trafficcone_counter += 1
goto @DSKOOL_32375

:DSKOOL_32434
$total_car_damage *= 2
if 
  $total_car_damage > 90
goto_if_false @DSKOOL_32466
$total_car_damage = 100

:DSKOOL_32466
sub_int_var_from_int_var $overall_score -= $total_car_damage
return 

:DSKOOL_32476
if 
  1 > $overall_score
goto_if_false @DSKOOL_32501
$overall_score = 0

:DSKOOL_32501
clear_prints 
return 

:DSKOOL_32505
if 
  not is_car_dead $instructor_car
goto_if_false @DSKOOL_32956
if 
  $camera_position_int == 0
goto_if_false @DSKOOL_32701
$camera_positionx, $camera_positiony, $camera_positionz = get_car_coordinates $instructor_car
$camera_positionz += 5.0
$camera_positionx, $camera_positiony, $z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 15.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
60@ = get_player_in_car_camera_mode 
if or
  60@ == 1
  60@ == 2
  60@ == 3
goto_if_false @DSKOOL_32671
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
goto @DSKOOL_32680

:DSKOOL_32671
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:DSKOOL_32680
set_interpolation_parameters 50.0 {time} 2000
allow_fixed_camera_collision True
$camera_position_int = 1

:DSKOOL_32701
if 
  TIMERA > 3000
goto_if_false @DSKOOL_32838
if 
  6000 > TIMERA
goto_if_false @DSKOOL_32838
if 
  $camera_position_int == 1
goto_if_false @DSKOOL_32838
$camera_positionx, $camera_positiony, $z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 15.0 {zOffset} 5.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 2

:DSKOOL_32838
if 
  TIMERA > 6000
goto_if_false @DSKOOL_32956
if 
  $camera_position_int == 2
goto_if_false @DSKOOL_32956
$camera_positionx, $camera_positiony, $z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -15.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car $instructor_car {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 3

:DSKOOL_32956
return 

:DSKOOL_32958
45@ = 0
if 
  $overall_score > 69
goto_if_false @DSKOOL_33067
if 
  85 > $overall_score
goto_if_false @DSKOOL_33067
if and
  47@ > 69
  85 > 47@
goto_if_false @DSKOOL_33040
45@ = 0
goto @DSKOOL_33067

:DSKOOL_33040
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
45@ = 2

:DSKOOL_33067
if 
  $overall_score > 84
goto_if_false @DSKOOL_33169
if 
  100 > $overall_score
goto_if_false @DSKOOL_33169
if and
  47@ > 84
  100 > 47@
goto_if_false @DSKOOL_33142
45@ = 0
goto @DSKOOL_33169

:DSKOOL_33142
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
45@ = 3

:DSKOOL_33169
if 
  $overall_score == 100
goto_if_false @DSKOOL_33256
if 
  47@ == 100
goto_if_false @DSKOOL_33219
45@ = 0
goto @DSKOOL_33256

:DSKOOL_33219
increment_float_stat StatId.DrivingSkill {value} 30.0
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
45@ = 4

:DSKOOL_33256
return 

:DSKOOL_33258
display_hud False
display_radar False
clear_prints 
clear_onscreen_timer $car_timer
if 
  2 > 45@
goto_if_false @DSKOOL_33331
draw_window 160.0 {leftTopY} 220.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DS1_65' {zIndex} 3
goto @DSKOOL_33364

:DSKOOL_33331
draw_window 160.0 {leftTopY} 200.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3

:DSKOOL_33364
if or
  $mission_selection == 6
  $mission_selection == 7
  $mission_selection == 16
goto_if_false @DSKOOL_33672
gosub @DSKOOL_30042
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 255.0 {key} 'DS1_72'
gosub @DSKOOL_30042
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $overall_millisecs > 9
goto_if_false @DSKOOL_33531
display_text_with_2_numbers 450.0 {offsetTop} 255.0 {key} 'DS1_21' {num1} $overall_secs {num2} $overall_millisecs
goto @DSKOOL_33558

:DSKOOL_33531
display_text_with_2_numbers 450.0 {offsetTop} 255.0 {key} 'DS1_22' {num1} $overall_secs {num2} $overall_millisecs

:DSKOOL_33558
gosub @DSKOOL_30042
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 275.0 {key} 'DS1_23'
gosub @DSKOOL_30042
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 275.0 {key} 'DS1_69' {num} $time_score
goto @DSKOOL_33886

:DSKOOL_33672
gosub @DSKOOL_30042
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 255.0 {key} 'DS1_5'
gosub @DSKOOL_30042
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 255.0 {key} 'DS1_69' {num} $heading_score
gosub @DSKOOL_30042
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 275.0 {key} 'DS1_6'
gosub @DSKOOL_30042
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 275.0 {key} 'DS1_69' {num} $position_score

:DSKOOL_33886
gosub @DSKOOL_30042
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 295.0 {key} 'DS1_7'
gosub @DSKOOL_30042
set_text_right_justify True
51@, 52@, 53@, 54@ = get_hud_colour 0
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text_with_number 450.0 {offsetTop} 295.0 {key} 'DS1_70' {num} $total_car_damage
gosub @DSKOOL_30042
51@, 52@, 53@, 54@ = get_hud_colour HudObject.Armor
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 315.0 {key} 'DS1_10'
gosub @DSKOOL_30042
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 450.0 {offsetTop} 315.0 {key} 'DS1_69' {num} $overall_score
if or
  41@ == 1
  41@ == 2
goto_if_false @DSKOOL_34476
if 
  45@ > 0
goto_if_false @DSKOOL_34476
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 199.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
draw_sprite 4 {offsetLeft} 392.0 {offsetTop} 199.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
if 
  45@ == 2
goto_if_false @DSKOOL_34285
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_34285
if 
  45@ == 3
goto_if_false @DSKOOL_34339
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_34339
if 
  45@ == 4
goto_if_false @DSKOOL_34393
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DSKOOL_34393
gosub @DSKOOL_30158
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 323.0 {offsetTop} 65.0 {key} 'DS1_47'

:DSKOOL_34476
if or
  41@ == 1
  41@ == 2
goto_if_false @DSKOOL_34568
gosub @DSKOOL_30158
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 323.0 {offsetTop} 110.0 {key} 'DS1_46'

:DSKOOL_34568
if 
  41@ <> 2
goto_if_false @DSKOOL_34873
gosub @DSKOOL_30042
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 340.0 {offsetTop} 345.0 {key} 'SCH_PRS'
gosub @DSKOOL_30042
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 345.0 {key} 'DS1_66'
gosub @DSKOOL_30042
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 340.0 {offsetTop} 365.0 {key} 'DS1_63'
gosub @DSKOOL_30042
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 365.0 {key} 'DS1_53'
goto @DSKOOL_35067

:DSKOOL_34873
gosub @DSKOOL_30042
set_text_scale 0.52 {heightScale} 1.45
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 180.0 {offsetTop} 345.0 {key} 'DS1_71'
gosub @DSKOOL_30042
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 340.0 {offsetTop} 365.0 {key} 'SCH_PRS'
gosub @DSKOOL_30042
set_text_scale 0.52 {heightScale} 1.45
51@, 52@, 53@, 54@ = get_hud_colour 6
set_text_colour 51@ {green} 52@ {blue} 53@ {alpha} 54@
display_text 180.0 {offsetTop} 365.0 {key} 'DS1_66'

:DSKOOL_35067
return 

:DSKOOL_35069
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DSKOOL_35125
if 
  $button_pressed == 1
goto_if_false @DSKOOL_35118
$button_pressed = 0
$finished_watching_scores = 1

:DSKOOL_35118
goto @DSKOOL_35150

:DSKOOL_35125
if 
  $button_pressed == 0
goto_if_false @DSKOOL_35150
$button_pressed = 1

:DSKOOL_35150
return 

:DSKOOL_35152
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDrivingAwardTrackStop
clear_prints 
do_fade 500 {direction} Fade.Out

:DSKOOL_35181
if 
  get_fading_status 
goto_if_false @DSKOOL_35205
wait 0
goto @DSKOOL_35181

:DSKOOL_35205
clear_prints 
clear_this_big_print 'DS1_46'
clear_this_big_print 'DS1_47'
allow_fixed_camera_collision False
apply_brakes_to_players_car $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  $instructor_car_dead_flag == 2
goto_if_false @DSKOOL_35323
clear_prints 
if 
  is_char_in_any_car $scplayer
goto_if_false @DSKOOL_35302
warp_char_from_car_to_coord $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z
goto @DSKOOL_35316

:DSKOOL_35302
set_char_coordinates $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z

:DSKOOL_35316
goto @DSKOOL_35374

:DSKOOL_35323
if 
  is_char_in_any_car $scplayer
goto_if_false @DSKOOL_35360
warp_char_from_car_to_coord $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z
goto @DSKOOL_35374

:DSKOOL_35360
set_char_coordinates $scplayer {x} $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z

:DSKOOL_35374
clear_prints 
wait 0
clear_prints 
delete_car $instructor_car
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
wait 0
clear_prints 
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
display_hud True
display_radar True
return 

:DSKOOL_35436
clear_prints 
$trafficcone_counter = 0

:DSKOOL_35445
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_35488
clear_prints 
delete_object $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35445

:DSKOOL_35488
return 

:DSKOOL_35490
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @DSKOOL_35574

:DSKOOL_35515
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_35574
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35515

:DSKOOL_35574
if 
  $mission_selection == 2
goto_if_false @DSKOOL_35651

:DSKOOL_35592
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_35651
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35592

:DSKOOL_35651
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_35735

:DSKOOL_35676
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_35735
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35676

:DSKOOL_35735
if 
  $mission_selection == 5
goto_if_false @DSKOOL_35812

:DSKOOL_35753
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_35812
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35753

:DSKOOL_35812
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_35896

:DSKOOL_35837
if 
  42 > $trafficcone_counter
goto_if_false @DSKOOL_35896
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35837

:DSKOOL_35896
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_35980

:DSKOOL_35921
if 
  30 > $trafficcone_counter
goto_if_false @DSKOOL_35980
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_35921

:DSKOOL_35980
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_36064

:DSKOOL_36005
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_36064
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @DSKOOL_36005

:DSKOOL_36064
if 
  $mission_selection == 1
goto_if_false @DSKOOL_36768
$cone_circle_radius = 6.0
$where_to_place_cones = 0.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_36157
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 0.0
goto_if_false @DSKOOL_36240
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36240
if 
  $where_to_place_cones == 24.0
goto_if_false @DSKOOL_36275
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36275
if 
  $where_to_place_cones == 48.0
goto_if_false @DSKOOL_36310
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36310
if 
  $where_to_place_cones == 72.0
goto_if_false @DSKOOL_36345
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36345
if 
  $where_to_place_cones == 96.0
goto_if_false @DSKOOL_36380
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36380
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_36415
set_object_coordinates $trafficcones[5] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36415
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_36450
set_object_coordinates $trafficcones[6] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36450
if 
  $where_to_place_cones == 168.0
goto_if_false @DSKOOL_36485
set_object_coordinates $trafficcones[7] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36485
if 
  $where_to_place_cones == 192.0
goto_if_false @DSKOOL_36520
set_object_coordinates $trafficcones[8] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36520
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_36555
set_object_coordinates $trafficcones[9] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36555
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_36590
set_object_coordinates $trafficcones[10] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36590
if 
  $where_to_place_cones == 264.0
goto_if_false @DSKOOL_36625
set_object_coordinates $trafficcones[11] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36625
if 
  $where_to_place_cones == 288.0
goto_if_false @DSKOOL_36660
set_object_coordinates $trafficcones[12] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36660
if 
  $where_to_place_cones == 312.0
goto_if_false @DSKOOL_36695
set_object_coordinates $trafficcones[13] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36695
if 
  $where_to_place_cones == 336.0
goto_if_false @DSKOOL_36730
set_object_coordinates $trafficcones[14] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36730
$where_to_place_cones += 24.0
if 
  360.0 > $where_to_place_cones
goto_if_false @DSKOOL_36768
goto @DSKOOL_36157

:DSKOOL_36768
if 
  $mission_selection == 2
goto_if_false @DSKOOL_37657
$cone_circle_radius = 6.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 0.0 {yOffset} 86.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_36861
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_36944
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36944
if 
  $where_to_place_cones == 150.0
goto_if_false @DSKOOL_36979
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_36979
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_37014
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_37014
if 
  $where_to_place_cones == 210.0
goto_if_false @DSKOOL_37049
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_37049
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_37084
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_37084
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_37122
goto @DSKOOL_36861

:DSKOOL_37122
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 74.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 74.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 78.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 78.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 82.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 82.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -7.0 {yOffset} 86.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 86.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 82.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 74.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 78.0 {zOffset} -0.5
$trafficcone_counter = 7

:DSKOOL_37543
if 
  25 > $trafficcone_counter
goto_if_false @DSKOOL_37657
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_37643
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_37643
$trafficcone_counter += 1
goto @DSKOOL_37543

:DSKOOL_37657
if or
  $mission_selection == 12
  $mission_selection == 13
goto_if_false @DSKOOL_38148
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -20.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_38034
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_38148
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_38134
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_38134
$trafficcone_counter += 1
goto @DSKOOL_38034

:DSKOOL_38148
if 
  $mission_selection == 12
goto_if_false @DSKOOL_38655
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} -22.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} 8.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} 10.0 {yOffset} -26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 10.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} 9.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 6.5 {yOffset} -44.0 {zOffset} -0.5
$trafficcone_counter = 15

:DSKOOL_38541
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_38655
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_38641
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_38641
$trafficcone_counter += 1
goto @DSKOOL_38541

:DSKOOL_38655
if 
  $mission_selection == 13
goto_if_false @DSKOOL_39162
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} -22.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} -24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} -10.0 {yOffset} -26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} -10.0 {yOffset} -30.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -36.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} -9.0 {yOffset} -44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} -6.5 {yOffset} -44.0 {zOffset} -0.5
$trafficcone_counter = 15

:DSKOOL_39048
if 
  31 > $trafficcone_counter
goto_if_false @DSKOOL_39162
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_39148
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39148
$trafficcone_counter += 1
goto @DSKOOL_39048

:DSKOOL_39162
if or
  $mission_selection == 6
  $mission_selection == 7
goto_if_false @DSKOOL_40865
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 2.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 2.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 14.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 14.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 38.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 38.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 50.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_39608
if 
  18 > $trafficcone_counter
goto_if_false @DSKOOL_39722
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_39708
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39708
$trafficcone_counter += 1
goto @DSKOOL_39608

:DSKOOL_39722
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 50.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_39787
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 126.0
goto_if_false @DSKOOL_39870
set_object_coordinates $trafficcones[18] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39870
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_39905
set_object_coordinates $trafficcones[19] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39905
if 
  $where_to_place_cones == 162.0
goto_if_false @DSKOOL_39940
set_object_coordinates $trafficcones[20] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39940
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_39975
set_object_coordinates $trafficcones[21] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_39975
if 
  $where_to_place_cones == 198.0
goto_if_false @DSKOOL_40010
set_object_coordinates $trafficcones[22] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40010
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_40045
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40045
if 
  $where_to_place_cones == 234.0
goto_if_false @DSKOOL_40080
set_object_coordinates $trafficcones[24] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40080
$where_to_place_cones += 18.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_40118
goto @DSKOOL_39787

:DSKOOL_40118
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 2.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 14.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 26.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 38.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 50.0 {zOffset} -0.5
$trafficcone_counter = 25

:DSKOOL_40355
if 
  35 > $trafficcone_counter
goto_if_false @DSKOOL_40469
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_40455
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40455
$trafficcone_counter += 1
goto @DSKOOL_40355

:DSKOOL_40469
$where_to_place_cones = 270.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} -4.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_40534
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 306.0
goto_if_false @DSKOOL_40617
set_object_coordinates $trafficcones[35] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40617
if 
  $where_to_place_cones == 324.0
goto_if_false @DSKOOL_40652
set_object_coordinates $trafficcones[36] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40652
if 
  $where_to_place_cones == 342.0
goto_if_false @DSKOOL_40687
set_object_coordinates $trafficcones[37] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40687
if 
  $where_to_place_cones == 360.0
goto_if_false @DSKOOL_40722
set_object_coordinates $trafficcones[38] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40722
if 
  $where_to_place_cones == 378.0
goto_if_false @DSKOOL_40757
set_object_coordinates $trafficcones[39] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40757
if 
  $where_to_place_cones == 396.0
goto_if_false @DSKOOL_40792
set_object_coordinates $trafficcones[40] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40792
if 
  $where_to_place_cones == 414.0
goto_if_false @DSKOOL_40827
set_object_coordinates $trafficcones[41] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_40827
$where_to_place_cones += 18.0
if 
  451.0 > $where_to_place_cones
goto_if_false @DSKOOL_40865
goto @DSKOOL_40534

:DSKOOL_40865
if 
  $mission_selection == 5
goto_if_false @DSKOOL_41855
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} 2.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 44.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 48.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 48.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 52.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 52.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 56.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 56.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 64.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 64.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 68.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 68.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 72.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 72.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 76.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 76.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} 6.0 {yOffset} 80.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 80.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 84.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[23] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 84.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[24] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 88.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 88.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 92.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 92.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 96.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 96.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 100.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 100.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 104.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 104.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 108.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[35] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 108.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[36] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 108.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_41741
if 
  37 > $trafficcone_counter
goto_if_false @DSKOOL_41855
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_41841
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_41841
$trafficcone_counter += 1
goto @DSKOOL_41741

:DSKOOL_41855
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_42651
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 8.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 12.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 16.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 24.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 28.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} 4.0 {yOffset} 32.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_42370
if 
  21 > $trafficcone_counter
goto_if_false @DSKOOL_42484
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_42470
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42470
$trafficcone_counter += 1
goto @DSKOOL_42370

:DSKOOL_42484
$where_to_place_cones = 90.0
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42548
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} 4.0 {yOffset} 30.0 {zOffset} -0.5
goto @DSKOOL_42577

:DSKOOL_42548
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -4.0 {yOffset} 30.0 {zOffset} -0.5

:DSKOOL_42577
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_42603
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y

:DSKOOL_42651
if 
  $mission_selection == 3
goto_if_false @DSKOOL_42774
if 
  $where_to_place_cones == 126.0
goto_if_false @DSKOOL_42704
set_object_coordinates $trafficcones[21] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42704
if 
  $where_to_place_cones == 144.0
goto_if_false @DSKOOL_42739
set_object_coordinates $trafficcones[22] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42739
if 
  $where_to_place_cones == 162.0
goto_if_false @DSKOOL_42774
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42774
if 
  $mission_selection == 4
goto_if_false @DSKOOL_42897
if 
  $where_to_place_cones == 198.0
goto_if_false @DSKOOL_42827
set_object_coordinates $trafficcones[21] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42827
if 
  $where_to_place_cones == 216.0
goto_if_false @DSKOOL_42862
set_object_coordinates $trafficcones[22] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42862
if 
  $where_to_place_cones == 234.0
goto_if_false @DSKOOL_42897
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42897
if or
  $mission_selection == 3
  $mission_selection == 4
goto_if_false @DSKOOL_43048
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_42957
set_object_coordinates $trafficcones[24] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_42957
$where_to_place_cones += 18.0
if 
  $mission_selection == 3
goto_if_false @DSKOOL_43020
if 
  181.0 > $where_to_place_cones
goto_if_false @DSKOOL_43013
goto @DSKOOL_42603

:DSKOOL_43013
goto @DSKOOL_43048

:DSKOOL_43020
if 
  235.0 > $where_to_place_cones
goto_if_false @DSKOOL_43048
goto @DSKOOL_42603

:DSKOOL_43048
if 
  $mission_selection == 3
goto_if_false @DSKOOL_43670
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} 8.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} 8.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} 12.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} 16.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} 16.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} 20.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} 20.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} 24.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} 24.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[35] {vehicle} $instructor_car {xOffset} 28.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[36] {vehicle} $instructor_car {xOffset} 28.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[37] {vehicle} $instructor_car {xOffset} 32.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[38] {vehicle} $instructor_car {xOffset} 32.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[39] {vehicle} $instructor_car {xOffset} 36.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[40] {vehicle} $instructor_car {xOffset} 36.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[41] {vehicle} $instructor_car {xOffset} 40.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[42] {vehicle} $instructor_car {xOffset} 40.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[43] {vehicle} $instructor_car {xOffset} 44.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[44] {vehicle} $instructor_car {xOffset} 44.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[45] {vehicle} $instructor_car {xOffset} 44.0 {yOffset} 37.0 {zOffset} -0.5
$trafficcone_counter = 25

:DSKOOL_43556
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_43670
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_43656
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_43656
$trafficcone_counter += 1
goto @DSKOOL_43556

:DSKOOL_43670
if 
  $mission_selection == 4
goto_if_false @DSKOOL_44292
place_object_relative_to_car $trafficcones[25] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[26] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[27] {vehicle} $instructor_car {xOffset} -12.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[28] {vehicle} $instructor_car {xOffset} -12.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[29] {vehicle} $instructor_car {xOffset} -16.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[30] {vehicle} $instructor_car {xOffset} -16.0 {yOffset} 32.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[31] {vehicle} $instructor_car {xOffset} -20.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[32] {vehicle} $instructor_car {xOffset} -20.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[33] {vehicle} $instructor_car {xOffset} -24.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[34] {vehicle} $instructor_car {xOffset} -24.0 {yOffset} 33.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[35] {vehicle} $instructor_car {xOffset} -28.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[36] {vehicle} $instructor_car {xOffset} -28.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[37] {vehicle} $instructor_car {xOffset} -32.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[38] {vehicle} $instructor_car {xOffset} -32.0 {yOffset} 34.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[39] {vehicle} $instructor_car {xOffset} -36.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[40] {vehicle} $instructor_car {xOffset} -36.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[41] {vehicle} $instructor_car {xOffset} -40.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[42] {vehicle} $instructor_car {xOffset} -40.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[43] {vehicle} $instructor_car {xOffset} -44.0 {yOffset} 39.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[44] {vehicle} $instructor_car {xOffset} -44.0 {yOffset} 35.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[45] {vehicle} $instructor_car {xOffset} -44.0 {yOffset} 37.0 {zOffset} -0.5
$trafficcone_counter = 25

:DSKOOL_44178
if 
  46 > $trafficcone_counter
goto_if_false @DSKOOL_44292
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_44278
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_44278
$trafficcone_counter += 1
goto @DSKOOL_44178

:DSKOOL_44292
if 
  $mission_selection == 8
goto_if_false @DSKOOL_44776
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} 1.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 60.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_44662
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_44776
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_44762
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_44762
$trafficcone_counter += 1
goto @DSKOOL_44662

:DSKOOL_44776
if 
  $mission_selection == 9
goto_if_false @DSKOOL_45260
place_object_relative_to_car $trafficcones[0] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[1] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[2] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[3] {vehicle} $instructor_car {xOffset} 1.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[4] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 20.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[5] {vehicle} $instructor_car {xOffset} -8.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[6] {vehicle} $instructor_car {xOffset} -6.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[7] {vehicle} $instructor_car {xOffset} -4.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[8] {vehicle} $instructor_car {xOffset} -2.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[9] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 40.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[10] {vehicle} $instructor_car {xOffset} 7.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[11] {vehicle} $instructor_car {xOffset} 5.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[12] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[13] {vehicle} $instructor_car {xOffset} 1.0 {yOffset} 60.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[14] {vehicle} $instructor_car {xOffset} -1.0 {yOffset} 60.0 {zOffset} -0.5
$trafficcone_counter = 0

:DSKOOL_45146
if 
  15 > $trafficcone_counter
goto_if_false @DSKOOL_45260
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_45246
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45246
$trafficcone_counter += 1
goto @DSKOOL_45146

:DSKOOL_45260
if or
  $mission_selection == 8
  $mission_selection == 9
goto_if_false @DSKOOL_45996
$cone_circle_radius = 8.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords $instructor_car {xOffset} -0.5 {yOffset} 81.0 {zOffset} -0.5
$cone_coords_z = get_ground_z_for_3d_coord $circle_start_x {y} $circle_start_y {z} 40.0
$cone_coords_z += 0.4

:DSKOOL_45360
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 90.0
goto_if_false @DSKOOL_45443
set_object_coordinates $trafficcones[23] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45443
if 
  $where_to_place_cones == 120.0
goto_if_false @DSKOOL_45478
set_object_coordinates $trafficcones[24] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45478
if 
  $where_to_place_cones == 150.0
goto_if_false @DSKOOL_45513
set_object_coordinates $trafficcones[25] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45513
if 
  $where_to_place_cones == 180.0
goto_if_false @DSKOOL_45548
set_object_coordinates $trafficcones[26] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45548
if 
  $where_to_place_cones == 210.0
goto_if_false @DSKOOL_45583
set_object_coordinates $trafficcones[27] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45583
if 
  $where_to_place_cones == 240.0
goto_if_false @DSKOOL_45618
set_object_coordinates $trafficcones[28] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45618
if 
  $where_to_place_cones == 270.0
goto_if_false @DSKOOL_45653
set_object_coordinates $trafficcones[29] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45653
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @DSKOOL_45691
goto @DSKOOL_45360

:DSKOOL_45691
place_object_relative_to_car $trafficcones[15] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} 80.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[16] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[17] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[18] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[19] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[20] {vehicle} $instructor_car {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[21] {vehicle} $instructor_car {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.5
place_object_relative_to_car $trafficcones[22] {vehicle} $instructor_car {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.5
$trafficcone_counter = 15

:DSKOOL_45882
if 
  23 > $trafficcone_counter
goto_if_false @DSKOOL_45996
if 
  does_object_exist $trafficcones($trafficcone_counter,46i)
goto_if_false @DSKOOL_45982
$cone_coords_x, $cone_coords_y, $cone_coords_z = get_object_coordinates $trafficcones($trafficcone_counter,46i)
$cone_coords_z = get_ground_z_for_3d_coord $cone_coords_x {y} $cone_coords_y {z} 40.0
$cone_coords_z += 0.4
set_object_coordinates $trafficcones($trafficcone_counter,46i) {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:DSKOOL_45982
$trafficcone_counter += 1
goto @DSKOOL_45882

:DSKOOL_45996
return 

:DSKOOL_45998
if 
  61@ == 1
goto_if_false @DSKOOL_46091
if 
  is_int_lvar_greater_than_int_lvar 86@ > 62@
goto_if_false @DSKOOL_46063
gosub @DSKOOL_46259
gosub @DSKOOL_46366
gosub @DSKOOL_46520
goto @DSKOOL_46091

:DSKOOL_46063
if 
  not is_char_dead 91@
goto_if_false @DSKOOL_46084
stop_char_facial_talk 91@

:DSKOOL_46084
61@ = 0

:DSKOOL_46091
return 

:DSKOOL_46093
if 
  61@ == 1
goto_if_false @DSKOOL_46228
set_lvar_text_label 65@s = 'MEC_D1'
set_lvar_text_label 67@s = 'MEC_D2'
set_lvar_text_label 69@s = 'MEC_D3'
set_lvar_text_label 71@s = 'MEC_D4'
set_lvar_text_label 73@s = 'MEC_D5'
set_lvar_int_to_constant 79@ = 26002
set_lvar_int_to_constant 80@ = 26003
set_lvar_int_to_constant 81@ = 26004
set_lvar_int_to_constant 82@ = 26005
set_lvar_int_to_constant 83@ = 26006
86@ = 5

:DSKOOL_46228
set_lvar_int_to_lvar_int 89@ = 62@
87@ = 0
88@ = 0
90@ = 1
return 

:DSKOOL_46259
if 
  is_int_lvar_greater_than_int_lvar 86@ > 89@
goto_if_false @DSKOOL_46364
if 
  87@ == 0
goto_if_false @DSKOOL_46321
load_mission_audio MissionAudioSlot.Slot1 {audioId} 79@(89@,7i)
89@ += 1
87@ = 1

:DSKOOL_46321
if 
  88@ == 0
goto_if_false @DSKOOL_46364
load_mission_audio MissionAudioSlot.Slot2 {audioId} 79@(89@,7i)
89@ += 1
88@ = 1

:DSKOOL_46364
return 

:DSKOOL_46366
if 
  90@ == 1
goto_if_false @DSKOOL_46442
if 
  87@ == 1
goto_if_false @DSKOOL_46442
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DSKOOL_46442
play_mission_audio MissionAudioSlot.Slot1
print_now 65@(62@,7s) {time} 4500 {flag} 1
87@ = 2

:DSKOOL_46442
if 
  90@ == 2
goto_if_false @DSKOOL_46518
if 
  88@ == 1
goto_if_false @DSKOOL_46518
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @DSKOOL_46518
play_mission_audio MissionAudioSlot.Slot2
print_now 65@(62@,7s) {time} 4500 {flag} 1
88@ = 2

:DSKOOL_46518
return 

:DSKOOL_46520
if 
  87@ == 2
goto_if_false @DSKOOL_46583
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DSKOOL_46583
clear_this_print 65@(62@,7s)
62@ += 1
90@ = 2
87@ = 0

:DSKOOL_46583
if 
  88@ == 2
goto_if_false @DSKOOL_46646
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DSKOOL_46646
clear_this_print 65@(62@,7s)
62@ += 1
90@ = 1
88@ = 0

:DSKOOL_46646
return 

//-------------Mission 72---------------
// Originally: Air Raid

:ZERO1
gosub @ZERO1_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO1_27
gosub @ZERO1_17267

:ZERO1_27
gosub @ZERO1_17506
terminate_this_script 

:ZERO1_36
$onmission = 1
disable_all_entry_exits True
set_script_limit_to_gang_size 0
register_mission_given 
script_name 'ZERO1'
set_player_control $player1 {state} False
load_mission_text 'ZERO1'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO1_97
if 
  get_fading_status 
goto_if_false @ZERO1_121
wait 0
goto @ZERO1_97

:ZERO1_121
set_area_visible 6
set_char_coordinates $scplayer {x} -2214.436 {y} 123.9208 {z} 56.4219
359@, 360@ = get_time_of_day 
if or
  359@ > 21
  4 > 359@
goto_if_false @ZERO1_193
359@ = 5
set_time_of_day 359@ {minutes} 360@

:ZERO1_193
load_cutscene 'ZERO_1'
request_model 366

:ZERO1_209
if 
  not has_cutscene_loaded 
goto_if_false @ZERO1_233
wait 0
goto @ZERO1_209

:ZERO1_233
start_cutscene 
wait 200
do_fade 1000 {direction} Fade.In

:ZERO1_247
if 
  not has_cutscene_finished 
goto_if_false @ZERO1_271
wait 0
goto @ZERO1_247

:ZERO1_271
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:ZERO1_292
if 
  get_fading_status 
goto_if_false @ZERO1_316
wait 0
goto @ZERO1_292

:ZERO1_316
clear_cutscene 
set_area_visible 0
force_weather_now WeatherType.SunnySf
361@ = 0
363@ = 0
362@ = 0
364@ = 0
166@ = 0
147@ = 1
148@ = 0
149@ = 0
150@ = 0
165@ = 0
177@ = 0
$fleet_destroyed_counter = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
$mission_countdown_zero1 = 210000
57@ = -2239.4529
58@ = 120.4904
59@ = 56.6585
143@ = 97.5
144@ = 160.0
145@ = 14.0
146@ = 280.0
60@ = -2321.4961
68@ = 211.349
61@ = -2252.5811
69@ = 235.0999
62@ = -2122.6931
70@ = 65.552
63@ = -2233.54
71@ = 16.5174
64@ = -2508.457
72@ = 181.6713
65@ = -2502.908
73@ = 184.0278
66@ = -2508.3679
74@ = 183.8913
67@ = -2504.021
75@ = 187.1988
330@ = 0
331@ = 25
332@ = 25
333@ = 25
334@ = 25
77@ = -2237.24
81@ = 143.33
85@ = 57.0
78@ = -2219.5
82@ = 128.68
86@ = 56.72
79@ = -2224.5
83@ = 149.05
87@ = 59.01
80@ = -2226.7
84@ = 94.8
88@ = 50.87
set_var_int_to_lvar_int $transmitter_overallhealth = 331@
add_int_lvar_to_int_var $transmitter_overallhealth += 332@
add_int_lvar_to_int_var $transmitter_overallhealth += 333@
add_int_lvar_to_int_var $transmitter_overallhealth += 334@
340@ = get_game_timer 
$transmitter_overallhealth = 100
151@ = 0
152@ = 1
153@ = 1
154@ = 1
155@ = 1
156@ = 1
157@ = 1
158@ = 1
159@ = 1
329@ = 0
TIMERA = 0
328@ = 0
set_car_density_multiplier 0.0
34@ = create_object #MINIGUN_BASE {x} 57@ {y} 58@ {z} 59@
set_object_collision 34@ {state} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} -2214.436 {y} 123.9208 {z} 56.4219
set_object_heading 34@ {heading} 90.0
display_onscreen_timer_with_string $mission_countdown_zero1 {direction} TimerDirection.Down {text} 'ZER1_26'
display_onscreen_counter_with_string $transmitter_overallhealth {display} CounterDisplay.Bar {text} 'ZER1_20'
357@ = get_game_timer 
328@ = 0

:ZERO1_1087
if 
  4 > 328@
goto_if_false @ZERO1_1152
create_object #WONGS_ERECTION {x} 77@(328@,4f) {y} 81@(328@,4f) {z} 85@(328@,4f) {var_handle} 45@(328@,10i)
328@ += 1
goto @ZERO1_1087

:ZERO1_1152
if 
  not has_model_loaded 366
goto_if_false @ZERO1_1179
wait 0
goto @ZERO1_1152

:ZERO1_1179
load_special_character 1 {modelName} 'ZERO'

:ZERO1_1192
if 
  not has_special_character_loaded 1
goto_if_false @ZERO1_1218
wait 0
goto @ZERO1_1192

:ZERO1_1218
switch_widescreen True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2261.8379 {fromY} 118.3496 {fromZ} 55.8344 {toX} -2248.469 {toY} 121.3517 {toZ} 60.4838 {time} 6800 {ease} True
camera_set_vector_track -2261.123 {fromY} 118.8753 {fromZ} 55.3739 {toX} -2247.6101 {toY} 121.8521 {toZ} 60.3731 {time} 6800 {ease} True
request_animation "ON_LOOKERS"
load_scene_in_direction -2259.8379 {y} 122.3496 {z} 40.8344 {heading} 290.0

:ZERO1_1342
if 
  not has_animation_loaded "ON_LOOKERS"
goto_if_false @ZERO1_1378
wait 0
goto @ZERO1_1342

:ZERO1_1378
wait 1000
do_fade 500 {direction} Fade.In
set_fading_colour 0 {g} 0 {b} 0

:ZERO1_1398
if 
  get_fading_status 
goto_if_false @ZERO1_1422
wait 0
goto @ZERO1_1398

:ZERO1_1422
55@ = create_char PedType.CivMale {modelId} 290 {x} -2214.29 {y} 125.49 {z} 56.5985
set_char_health 55@ {health} 1000
set_char_proofs 55@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
335@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 335@ {event} Event.PotentialWalkIntoFire
clear_char_decision_maker_event_response 335@ {event} Event.FireNearby
add_char_decision_maker_event_response 335@ {event} Event.FireNearby {taskId} TaskId.ComplexExtinguishFires {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
set_char_decision_maker 55@ {handleOrTemplate} 335@
if 
  not is_char_dead 55@
goto_if_false @ZERO1_1646
369@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2231.323 {y} 129.7854 {z} 56.5985 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 0.0
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 0
close_sequence_task 369@
perform_sequence_task 55@ {sequence} 369@
clear_sequence_task 369@

:ZERO1_1646
369@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2239.7029 {y} 119.9904 {z} 56.5985 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 0.0
close_sequence_task 369@
perform_sequence_task $scplayer {sequence} 369@
clear_sequence_task 369@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44600

:ZERO1_1710
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_1736
wait 0
goto @ZERO1_1710

:ZERO1_1736
print_now 'ZER1_AA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_1756
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_1782
wait 0
goto @ZERO1_1756

:ZERO1_1782
clear_this_print 'ZER1_AA'
request_model #WONGS_ERECTION2
request_model 464
request_model 362
request_model #RCBOMB

:ZERO1_1813
if or
  not has_model_loaded #WONGS_ERECTION2
  not has_model_loaded 464
  not has_model_loaded #RCBOMB
  not has_model_loaded 362
goto_if_false @ZERO1_1855
wait 0
goto @ZERO1_1813

:ZERO1_1855
328@ = 0

:ZERO1_1862
if 
  8 > 328@
goto_if_false @ZERO1_1927
add_blip_for_coord 0.0 {y} 0.0 {z} 0.0 {var_handle} 178@(328@,10i)
remove_blip 178@(328@,10i)
328@ += 1
goto @ZERO1_1862

:ZERO1_1927
wait 0
if 
  147@ == 1
goto_if_false @ZERO1_1956
gosub @ZERO1_3231

:ZERO1_1956
if 
  148@ == 1
goto_if_false @ZERO1_1981
gosub @ZERO1_5321

:ZERO1_1981
if 
  149@ == 1
goto_if_false @ZERO1_2006
goto @ZERO1_17199

:ZERO1_2006
if 
  150@ == 1
goto_if_false @ZERO1_2031
goto @ZERO1_17267

:ZERO1_2031
goto @ZERO1_1927

:ZERO1_2038
clear_area -2208.1001 {y} 175.86 {z} 40.46 {radius} 25.0 {clearParticles} True
if 
  4 > 328@
goto_if_false @ZERO1_2594
create_car 464 {x} 60@(330@,8f) {y} 68@(330@,8f) {z} 70.0 {var_handle} 35@(328@,10i)
turn_car_to_face_coord 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_health 35@(328@,10i) {health} 260
add_stuck_car_check 35@(328@,10i) {distance} 3.0 {time} 3000
set_car_proofs 35@(328@,10i) {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
plane_starts_in_air 35@(328@,10i)
set_car_forward_speed 35@(328@,10i) {forwardSpeed} 14.0
if 
  not does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_2259
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly
goto @ZERO1_2295

:ZERO1_2259
remove_blip 178@(328@,10i)
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly

:ZERO1_2295
set_car_status 35@(328@,10i) {status} EntityStatus.Physics
create_object #RCBOMB {x} 60@(328@,8f) {y} 68@(328@,8f) {z} 130.0 {var_handle} 188@(328@,10i)
attach_object_to_car 188@(328@,10i) {handle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
place_object_relative_to_car 188@(328@,10i) {vehicle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 258@(328@,10f)
set_object_collision 188@(328@,10i) {state} False
set_object_dynamic 188@(328@,10i) {state} False
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.5
plane_goto_coords 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 13.5
set_plane_throttle 35@(328@,10i) {throttle} -0.8
152@(328@,8i) = 0
167@(328@,10i) = 0
151@ = 1
get_game_timer 336@(328@,10i)
330@ += 1
if 
  330@ > 3
goto_if_false @ZERO1_2580
330@ = 0

:ZERO1_2580
set_police_ignore_player $player1 {state} True
set_wanted_multiplier 0.001

:ZERO1_2594
return 

:ZERO1_2596
if or
  328@ > 4
  328@ == 4
goto_if_false @ZERO1_3229
create_car 464 {x} 60@(328@,8f) {y} 68@(328@,8f) {z} 85.0 {var_handle} 35@(328@,10i)
turn_car_to_face_coord 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_proofs 35@(328@,10i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 35@(328@,10i) {health} 260
add_stuck_car_check 35@(328@,10i) {distance} 3.0 {time} 10000
if 
  not does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_2777
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly
goto @ZERO1_2813

:ZERO1_2777
remove_blip 178@(328@,10i)
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly

:ZERO1_2813
set_car_status 35@(328@,10i) {status} EntityStatus.Physics
set_car_heading 35@(328@,10i) {heading} 258.0
plane_starts_in_air 35@(328@,10i)
set_car_forward_speed 35@(328@,10i) {forwardSpeed} 14.0
167@(328@,10i) = 0
152@(328@,8i) = 0
create_object #RCBOMB {x} 60@(328@,8f) {y} 68@(328@,8f) {z} 120.0 {var_handle} 188@(328@,10i)
attach_object_to_car 188@(328@,10i) {handle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
place_object_relative_to_car 188@(328@,10i) {vehicle} 35@(328@,10i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 258@(328@,10f)
set_object_collision 188@(328@,10i) {state} False
set_object_dynamic 188@(328@,10i) {state} False
get_game_timer 336@(328@,10i)
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.5
plane_goto_coords 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 69.5
set_plane_throttle 35@(328@,10i) {throttle} -0.8
if 
  not is_char_dead 55@
goto_if_false @ZERO1_3229
if 
  361@ == 0
goto_if_false @ZERO1_3229
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44608

:ZERO1_3139
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3165
wait 0
goto @ZERO1_3139

:ZERO1_3165
print_now 'ZER1_BD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3185
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3211
wait 0
goto @ZERO1_3185

:ZERO1_3211
clear_this_print 'ZER1_BD'
361@ = 1

:ZERO1_3229
return 

:ZERO1_3231
TIMERA = 0
if 
  $fleet_destroyed_counter == 0
goto_if_false @ZERO1_5075
177@ = 0
TIMERB = 0

:ZERO1_3270
if 
  177@ <> 10
goto_if_false @ZERO1_4640
wait 0
if 
  177@ == 0
goto_if_false @ZERO1_3501
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44601

:ZERO1_3319
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3345
wait 0
goto @ZERO1_3319

:ZERO1_3345
print_now 'ZER1_AB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3365
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3391
wait 0
goto @ZERO1_3365

:ZERO1_3391
clear_this_print 'ZER1_AC'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44602

:ZERO1_3411
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3437
wait 0
goto @ZERO1_3411

:ZERO1_3437
print_now 'ZER1_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3457
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3483
wait 0
goto @ZERO1_3457

:ZERO1_3483
clear_this_print 'ZER1_AC'
177@ = 1

:ZERO1_3501
if 
  TIMERB > 4500
goto_if_false @ZERO1_3708
if 
  177@ == 1
goto_if_false @ZERO1_3708
177@ = 2
camera_reset_new_scriptables 
set_fixed_camera_position -2240.4851 {y} 119.5912 {z} 58.4997 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2239.875 {y} 120.376 {z} 58.6143 {switchStyle} SwitchType.JumpCut
clear_area 57@ {y} 58@ {z} 59@ {radius} 1000.0 {clearParticles} True
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44605

:ZERO1_3625
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3651
wait 0
goto @ZERO1_3625

:ZERO1_3651
print_now 'ZER1_BA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3671
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_3697
wait 0
goto @ZERO1_3671

:ZERO1_3697
clear_this_print 'ZER1_BA'

:ZERO1_3708
if 
  TIMERB > 7500
goto_if_false @ZERO1_4023
if 
  177@ == 2
goto_if_false @ZERO1_4023
177@ = 3
set_fixed_camera_position -2231.676 {y} 127.7127 {z} 57.9036 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2231.9651 {y} 128.6361 {z} 58.1563 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 55@
goto_if_false @ZERO1_3863
task_play_anim 55@ {animationName} "POINTUP_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:ZERO1_3863
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44606
if 
  151@ == 0
goto_if_false @ZERO1_3940
328@ = 0

:ZERO1_3897
if 
  2 > 328@
goto_if_false @ZERO1_3940
wait 0
gosub @ZERO1_2038
328@ += 1
goto @ZERO1_3897

:ZERO1_3940
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_3966
wait 0
goto @ZERO1_3940

:ZERO1_3966
print_now 'ZER1_BB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_3986
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_4012
wait 0
goto @ZERO1_3986

:ZERO1_4012
clear_this_print 'ZER1_BB'

:ZERO1_4023
if 
  TIMERB > 12000
goto_if_false @ZERO1_4347
if 
  177@ == 3
goto_if_false @ZERO1_4347
if 
  not is_car_dead 36@
goto_if_false @ZERO1_4347
92@, 93@, 94@ = get_offset_from_car_in_world_coords 36@ {xOffset} 2.0 {yOffset} 1.5 {zOffset} -1.0
set_fixed_camera_position 92@ {y} 93@ {z} 94@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_char_dead 55@
goto_if_false @ZERO1_4156
point_camera_at_char 55@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:ZERO1_4156
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44603

:ZERO1_4165
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_4191
wait 0
goto @ZERO1_4165

:ZERO1_4191
print_now 'ZER1_AD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_4211
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_4237
wait 0
goto @ZERO1_4211

:ZERO1_4237
clear_this_print 'ZER1_AD'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44604

:ZERO1_4257
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_4283
wait 0
goto @ZERO1_4257

:ZERO1_4283
print_now 'ZER1_AE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_4303
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_4329
wait 0
goto @ZERO1_4303

:ZERO1_4329
clear_this_print 'ZER1_AE'
177@ = 4

:ZERO1_4347
if 
  TIMERB > 17000
goto_if_false @ZERO1_4515
if 
  177@ == 4
goto_if_false @ZERO1_4515
177@ = 5
set_char_coordinates $scplayer {x} -2239.7029 {y} 119.9904 {z} 56.5985
set_char_heading $scplayer {heading} 0.0
if 
  does_object_exist 34@
goto_if_false @ZERO1_4448
task_look_at_object $scplayer {object} 34@ {time} 3000

:ZERO1_4448
set_fixed_camera_position -2239.688 {y} 122.1658 {z} 57.6384 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2239.2371 {y} 121.2862 {z} 57.7886 {switchStyle} SwitchType.JumpCut
print_now 'ZER1_22' {time} 5000 {flag} 1

:ZERO1_4515
if 
  is_skip_cutscene_button_pressed 
goto_if_false @ZERO1_4607
177@ = 10
clear_mission_audio MissionAudioSlot.Slot1
if 
  151@ == 0
goto_if_false @ZERO1_4607
328@ = 0

:ZERO1_4564
if 
  2 > 328@
goto_if_false @ZERO1_4607
wait 0
gosub @ZERO1_2038
328@ += 1
goto @ZERO1_4564

:ZERO1_4607
if 
  TIMERB > 20000
goto_if_false @ZERO1_4633
177@ = 10

:ZERO1_4633
goto @ZERO1_3270

:ZERO1_4640
if 
  not is_car_dead 35@
goto_if_false @ZERO1_4701
set_car_coordinates 35@ {x} 60@ {y} 68@ {z} 95.0
turn_car_to_face_coord 35@ {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_forward_speed 35@ {forwardSpeed} 10.0

:ZERO1_4701
if 
  not is_car_dead 36@
goto_if_false @ZERO1_4762
set_car_coordinates 36@ {x} 61@ {y} 69@ {z} 95.0
turn_car_to_face_coord 36@ {x} 77@(329@,4f) {y} 81@(329@,4f)
set_car_forward_speed 36@ {forwardSpeed} 10.0

:ZERO1_4762
attach_char_to_object $scplayer {handle} 34@ {xOffset} -0.25 {yOffset} -0.5 {zOffset} 1.25 {heading} Facing.Back {headingRange} 360.0 {weaponType} WeaponType.Minigun
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $scplayer {weaponType} WeaponType.Minigun
add_ammo_to_char $scplayer {weaponType} WeaponType.Minigun {ammo} 200000
set_heading_for_attached_player $player1 {heading} 270.0 {headingRange} 300.0
clear_char_tasks $scplayer
switch_widescreen False
set_player_control $player1 {state} True
alter_wanted_level $player1 {wantedLevel} 0
camera_reset_new_scriptables 
restore_camera 
if 
  does_object_exist 34@
goto_if_false @ZERO1_4885
set_object_visible 34@ {state} False

:ZERO1_4885
if 
  not is_char_dead 55@
goto_if_false @ZERO1_4911
give_weapon_to_char 55@ {weaponType} WeaponType.Extinguisher {ammo} 1000

:ZERO1_4911
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
print_help 'ZER1_24'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_5045
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44609

:ZERO1_4962
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_4988
wait 0
goto @ZERO1_4962

:ZERO1_4988
print_now 'ZER1_BE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_5008
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_5034
wait 0
goto @ZERO1_5008

:ZERO1_5034
clear_this_print 'ZER1_BE'

:ZERO1_5045
set_police_ignore_player $player1 {state} True
set_wanted_multiplier 0.001
147@ = 0
148@ = 1
return 

:ZERO1_5075
if 
  $fleet_destroyed_counter == 1
goto_if_false @ZERO1_5298
if 
  151@ == 0
goto_if_false @ZERO1_5275
328@ = 0

:ZERO1_5118
if 
  4 > 328@
goto_if_false @ZERO1_5268
wait 0
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_5200
set_car_health 35@(328@,10i) {health} 20
if 
  not is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_5200
delete_car 35@(328@,10i)

:ZERO1_5200
mark_car_as_no_longer_needed 35@(328@,10i)
if 
  does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_5238
remove_blip 178@(328@,10i)

:ZERO1_5238
remove_stuck_car_check 35@(328@,10i)
gosub @ZERO1_2038
328@ += 1
goto @ZERO1_5118

:ZERO1_5268
151@ = 1

:ZERO1_5275
147@ = 0
148@ = 1
TIMERA = 0
return 

:ZERO1_5298
147@ = 0
148@ = 1
TIMERA = 0
return 

:ZERO1_5321
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @ZERO1_5370
147@ = 0
148@ = 0
149@ = 1
150@ = 0
return 

:ZERO1_5370
gosub @ZERO1_13662
if 
  150@ == 1
goto_if_false @ZERO1_5425
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_5425
if 
  is_char_dead 55@
goto_if_false @ZERO1_5477
148@ = 0
150@ = 1
clear_mission_audio MissionAudioSlot.Slot1
print_now 'ZER1_25' {time} 5000 {flag} 1
return 

:ZERO1_5477
328@ = 0

:ZERO1_5484
if 
  8 > 328@
goto_if_false @ZERO1_8884
wait 0
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_8859
if 
  not is_char_dead 55@
goto_if_false @ZERO1_6048
if 
  165@ == 0
goto_if_false @ZERO1_5721
if 
  not is_char_responding_to_event 55@ {event} Event.FireNearby
goto_if_false @ZERO1_5721
369@ = open_sequence_task 
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_turn_char_to_face_coord -1 {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f)
task_play_anim -1 {animationName} "LKUP_POINT" {animationFile} "ON_LOOKERS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_scratch_head -1
close_sequence_task 369@
perform_sequence_task 55@ {sequence} 369@
clear_sequence_task 369@
165@ = 1

:ZERO1_5721
if 
  165@ == 1
goto_if_false @ZERO1_5775
56@ = get_script_task_status 55@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 56@ == 7
goto_if_false @ZERO1_5775
165@ = 0

:ZERO1_5775
if 
  364@ == 1
goto_if_false @ZERO1_5882
if 
  has_char_been_damaged_by_weapon 55@ {weaponType} WeaponType.Minigun
goto_if_false @ZERO1_5882
clear_char_last_weapon_damage 55@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44620

:ZERO1_5829
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_5855
wait 0
goto @ZERO1_5829

:ZERO1_5855
print_now 'ZER1_DB' {time} 5000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
364@ = 0

:ZERO1_5882
if 
  364@ == 0
goto_if_false @ZERO1_6041
if 
  has_char_been_damaged_by_weapon 55@ {weaponType} WeaponType.Minigun
goto_if_false @ZERO1_6041
clear_char_last_weapon_damage 55@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44619

:ZERO1_5936
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_6014
wait 0
if 
  is_char_dead 55@
goto_if_false @ZERO1_6007
148@ = 0
150@ = 1
clear_mission_audio MissionAudioSlot.Slot1
print_now 'ZER1_25' {time} 5000 {flag} 1
return 

:ZERO1_6007
goto @ZERO1_5936

:ZERO1_6014
print_now 'ZER1_DA' {time} 5000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
364@ = 1

:ZERO1_6041
goto @ZERO1_6084

:ZERO1_6048
148@ = 0
150@ = 1
clear_mission_audio MissionAudioSlot.Slot1
print_now 'ZER1_25' {time} 5000 {flag} 1
return 

:ZERO1_6084
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_8841
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6244
356@ = get_game_timer 
set_lvar_int_to_lvar_int 346@(328@,10i) = 356@
sub_int_lvar_from_int_lvar 346@(328@,10i) -= 336@(328@,10i)
if 
  346@(328@,10i) > 45000
goto_if_false @ZERO1_6244
explode_car 35@(328@,10i)
152@(328@,8i) = 1
167@(328@,10i) = 0
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6244
delete_object 188@(328@,10i)

:ZERO1_6244
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6366
if 
  does_car_have_stuck_car_check 35@(328@,10i)
goto_if_false @ZERO1_6366
if 
  is_car_stuck 35@(328@,10i)
goto_if_false @ZERO1_6366
explode_car 35@(328@,10i)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6344
delete_object 188@(328@,10i)

:ZERO1_6344
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6366
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6468
if 
  not is_car_in_air_proper 35@(328@,10i)
goto_if_false @ZERO1_6468
explode_car 35@(328@,10i)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6446
delete_object 188@(328@,10i)

:ZERO1_6446
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6468
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6574
if 
  has_car_been_damaged_by_weapon 35@(328@,10i) {weaponType} WeaponType.Minigun
goto_if_false @ZERO1_6574
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6541
delete_object 188@(328@,10i)

:ZERO1_6541
set_car_health 35@(328@,10i) {health} 20
152@(328@,8i) = 1
167@(328@,10i) = 0

:ZERO1_6574
if 
  152@(328@,8i) == 0
goto_if_false @ZERO1_6714
if 
  167@(328@,10i) == 0
goto_if_false @ZERO1_6714
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_6707
if 
  locate_car_3d 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {xRadius} 18.0 {yRadius} 18.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @ZERO1_6707
167@(328@,10i) = 1

:ZERO1_6707
goto @ZERO1_6714

:ZERO1_6714
if 
  167@(328@,10i) == 1
goto_if_false @ZERO1_6791
gosub @ZERO1_10905
if 
  150@ == 1
goto_if_false @ZERO1_6791
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_6791
if 
  150@ == 1
goto_if_false @ZERO1_6839
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_6839
if 
  167@(328@,10i) > 2
goto_if_false @ZERO1_6989
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_6989
if 
  locate_car_2d 35@(328@,10i) {x} 60@(328@,8f) {y} 68@(328@,8f) {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @ZERO1_6989
delete_car 35@(328@,10i)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_6965
delete_object 188@(328@,10i)

:ZERO1_6965
152@(328@,8i) = 1
167@(328@,10i) = 0
return 

:ZERO1_6989
if 
  167@(328@,10i) == 2
goto_if_false @ZERO1_7142
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_7142
if 
  locate_car_2d 35@(328@,10i) {x} 95@(328@,8f) {y} 103@(328@,8f) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @ZERO1_7142
plane_goto_coords 35@(328@,10i) {x} 119@(328@,8f) {y} 127@(328@,8f) {z} 135@(328@,8f) {minAltitude} 5.0 {maxAltitude} 0.5
set_plane_throttle 35@(328@,10i) {throttle} -1.1
167@(328@,10i) = 3

:ZERO1_7142
if 
  167@(328@,10i) == 3
goto_if_false @ZERO1_7291
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_7291
if 
  locate_car_2d 35@(328@,10i) {x} 119@(328@,8f) {y} 127@(328@,8f) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @ZERO1_7291
plane_goto_coords 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} 3.0 {maxAltitude} 0.0
set_plane_throttle 35@(328@,10i) {throttle} -0.9
167@(328@,10i) = 4

:ZERO1_7291
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_8823
if 
  locate_car_3d 35@(328@,10i) {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 11.0 {drawSphere} False
goto_if_false @ZERO1_8816
89@, 90@, 91@ = get_car_coordinates 35@(328@,10i)
explode_car 35@(328@,10i)
delete_car 35@(328@,10i)
add_explosion 89@ {y} 90@ {z} 91@ {type} ExplosionType.Grenade
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_7447
delete_object 188@(328@,10i)

:ZERO1_7447
if 
  not is_char_dead 55@
goto_if_false @ZERO1_7580
if 
  362@ == 0
goto_if_false @ZERO1_7580
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44617

:ZERO1_7490
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_7516
wait 0
goto @ZERO1_7490

:ZERO1_7516
print_now 'ZER1_BN' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_7536
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_7562
wait 0
goto @ZERO1_7536

:ZERO1_7562
clear_this_print 'ZER1_BN'
362@ = 1

:ZERO1_7580
152@(328@,8i) = 1
167@(328@,10i) = 0
if 
  329@ == 3
goto_if_false @ZERO1_7956
if 
  334@ > 5
goto_if_false @ZERO1_7652
334@ -= 5
goto @ZERO1_7956

:ZERO1_7652
163@ = 1
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 61.5 {type} ExplosionType.Object
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 365@(329@,4i)
147@ = 0
148@ = 0
150@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_7928
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44621

:ZERO1_7845
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_7871
wait 0
goto @ZERO1_7845

:ZERO1_7871
print_now 'ZER1_EA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_7891
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_7917
wait 0
goto @ZERO1_7891

:ZERO1_7917
clear_this_print 'ZER1_EA'

:ZERO1_7928
clear_onscreen_counter $transmitter_overallhealth
clear_onscreen_timer $mission_countdown_zero1
print_now 'ZER1_19' {time} 5000 {flag} 1
return 

:ZERO1_7956
if 
  329@ == 2
goto_if_false @ZERO1_8376
if 
  333@ > 5
goto_if_false @ZERO1_8006
333@ -= 5
goto @ZERO1_8376

:ZERO1_8006
162@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8376
gosub @ZERO1_14045
if 
  150@ == 1
goto_if_false @ZERO1_8084
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8084
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8376
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44614

:ZERO1_8109
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8135
wait 0
goto @ZERO1_8109

:ZERO1_8135
print_now 'ZER1_BK' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8155
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8181
wait 0
goto @ZERO1_8155

:ZERO1_8181
clear_this_print 'ZER1_BK'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44615

:ZERO1_8201
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8227
wait 0
goto @ZERO1_8201

:ZERO1_8227
print_now 'ZER1_BL' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8247
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8273
wait 0
goto @ZERO1_8247

:ZERO1_8273
clear_this_print 'ZER1_BL'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44616

:ZERO1_8293
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8319
wait 0
goto @ZERO1_8293

:ZERO1_8319
print_now 'ZER1_BM' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8339
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8365
wait 0
goto @ZERO1_8339

:ZERO1_8365
clear_this_print 'ZER1_BM'

:ZERO1_8376
if 
  329@ == 1
goto_if_false @ZERO1_8596
if 
  332@ > 5
goto_if_false @ZERO1_8426
332@ -= 5
goto @ZERO1_8596

:ZERO1_8426
161@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8596
gosub @ZERO1_14045
if 
  150@ == 1
goto_if_false @ZERO1_8504
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8504
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44613

:ZERO1_8513
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8539
wait 0
goto @ZERO1_8513

:ZERO1_8539
print_now 'ZER1_BJ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8559
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8585
wait 0
goto @ZERO1_8559

:ZERO1_8585
clear_this_print 'ZER1_BJ'

:ZERO1_8596
if 
  329@ == 0
goto_if_false @ZERO1_8816
if 
  331@ > 5
goto_if_false @ZERO1_8646
331@ -= 5
goto @ZERO1_8816

:ZERO1_8646
160@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_8816
gosub @ZERO1_14045
if 
  150@ == 1
goto_if_false @ZERO1_8724
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_8724
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44611

:ZERO1_8733
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_8759
wait 0
goto @ZERO1_8733

:ZERO1_8759
print_now 'ZER1_BG' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_8779
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_8805
wait 0
goto @ZERO1_8779

:ZERO1_8805
clear_this_print 'ZER1_BG'

:ZERO1_8816
goto @ZERO1_8834

:ZERO1_8823
152@(328@,8i) = 1

:ZERO1_8834
goto @ZERO1_8852

:ZERO1_8841
152@(328@,8i) = 1

:ZERO1_8852
goto @ZERO1_8870

:ZERO1_8859
152@(328@,8i) = 1

:ZERO1_8870
328@ += 1
goto @ZERO1_5484

:ZERO1_8884
if 
  1 > $fleet_destroyed_counter
goto_if_false @ZERO1_9398
328@ = 0

:ZERO1_8909
if 
  4 > 328@
goto_if_false @ZERO1_9111
if 
  152@(328@,8i) == 1
goto_if_false @ZERO1_9097
if 
  does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_8978
remove_blip 178@(328@,10i)

:ZERO1_8978
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_9007
delete_object 188@(328@,10i)

:ZERO1_9007
remove_stuck_car_check 35@(328@,10i)
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_9081
if 
  is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_9072
mark_car_as_no_longer_needed 35@(328@,10i)
goto @ZERO1_9081

:ZERO1_9072
delete_car 35@(328@,10i)

:ZERO1_9081
mark_car_as_no_longer_needed 35@(328@,10i)
$fleet_destroyed_counter += 1

:ZERO1_9097
328@ += 1
goto @ZERO1_8909

:ZERO1_9111
if 
  152@ == 1
goto_if_false @ZERO1_9391
if 
  153@ == 1
goto_if_false @ZERO1_9391
if 
  154@ == 1
goto_if_false @ZERO1_9391
if 
  155@ == 1
goto_if_false @ZERO1_9391
$fleet_destroyed_counter += 1
148@ = 0
147@ = 1
151@ = 0
$fleet_destroyed_counter += 1
remove_blip 178@
remove_blip 179@
remove_blip 180@
remove_blip 181@
328@ = 0

:ZERO1_9245
if 
  4 > 328@
goto_if_false @ZERO1_9391
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_9294
set_car_health 35@(328@,10i) {health} 20

:ZERO1_9294
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_9359
if 
  is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_9350
mark_car_as_no_longer_needed 35@(328@,10i)
goto @ZERO1_9359

:ZERO1_9350
delete_car 35@(328@,10i)

:ZERO1_9359
mark_car_as_no_longer_needed 35@(328@,10i)
remove_stuck_car_check 35@(328@,10i)
328@ += 1
goto @ZERO1_9245

:ZERO1_9391
goto @ZERO1_10087

:ZERO1_9398
328@ = 0

:ZERO1_9405
if 
  4 > 328@
goto_if_false @ZERO1_10101
if 
  152@(328@,8i) == 1
goto_if_false @ZERO1_10087
if 
  does_blip_exist 178@(328@,10i)
goto_if_false @ZERO1_9474
remove_blip 178@(328@,10i)

:ZERO1_9474
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_9503
delete_object 188@(328@,10i)

:ZERO1_9503
remove_stuck_car_check 35@(328@,10i)
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_9577
if 
  is_car_on_screen 35@(328@,10i)
goto_if_false @ZERO1_9568
mark_car_as_no_longer_needed 35@(328@,10i)
goto @ZERO1_9577

:ZERO1_9568
delete_car 35@(328@,10i)

:ZERO1_9577
mark_car_as_no_longer_needed 35@(328@,10i)
356@ = get_game_timer 
set_lvar_int_to_lvar_int 358@ = 356@
sub_int_lvar_from_int_lvar 358@ -= 357@
if and
  210000 > $mission_countdown_zero1
  $mission_countdown_zero1 > 190000
goto_if_false @ZERO1_9671
if 
  TIMERB > 12000
goto_if_false @ZERO1_9671
gosub @ZERO1_2038
TIMERB = 0

:ZERO1_9671
if and
  190000 > $mission_countdown_zero1
  $mission_countdown_zero1 > 120000
goto_if_false @ZERO1_9735
if 
  TIMERB > 6000
goto_if_false @ZERO1_9735
gosub @ZERO1_2038
TIMERB = 0

:ZERO1_9735
if and
  120000 > $mission_countdown_zero1
  $mission_countdown_zero1 > 0
goto_if_false @ZERO1_9796
if 
  TIMERB > 3500
goto_if_false @ZERO1_9796
gosub @ZERO1_2038
TIMERB = 0

:ZERO1_9796
if 
  152@ == 1
goto_if_false @ZERO1_10087
if 
  153@ == 1
goto_if_false @ZERO1_10087
if 
  154@ == 1
goto_if_false @ZERO1_10087
if 
  155@ == 1
goto_if_false @ZERO1_10087
if 
  156@ == 1
goto_if_false @ZERO1_10087
if 
  157@ == 1
goto_if_false @ZERO1_10087
if 
  158@ == 1
goto_if_false @ZERO1_10087
if 
  159@ == 1
goto_if_false @ZERO1_10087
gosub @ZERO1_2038
if 
  363@ == 0
goto_if_false @ZERO1_10080
if 
  not is_char_dead 55@
goto_if_false @ZERO1_10080
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44618

:ZERO1_9990
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_10016
wait 0
goto @ZERO1_9990

:ZERO1_10016
print_now 'ZER1_CA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_10036
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_10062
wait 0
goto @ZERO1_10036

:ZERO1_10062
clear_this_print 'ZER1_CA'
363@ = 1

:ZERO1_10080
TIMERB = 0

:ZERO1_10087
328@ += 1
goto @ZERO1_9405

:ZERO1_10101
if 
  210000 > $mission_countdown_zero1
goto_if_false @ZERO1_10778
if 
  156@ == 1
goto_if_false @ZERO1_10778
if 
  157@ == 1
goto_if_false @ZERO1_10778
if 
  158@ == 1
goto_if_false @ZERO1_10778
if 
  159@ == 1
goto_if_false @ZERO1_10778
if 
  does_blip_exist 182@
goto_if_false @ZERO1_10215
remove_blip 182@

:ZERO1_10215
if 
  does_blip_exist 183@
goto_if_false @ZERO1_10236
remove_blip 183@

:ZERO1_10236
if 
  does_blip_exist 184@
goto_if_false @ZERO1_10257
remove_blip 184@

:ZERO1_10257
if 
  does_blip_exist 185@
goto_if_false @ZERO1_10278
remove_blip 185@

:ZERO1_10278
if 
  not is_car_dead 39@
goto_if_false @ZERO1_10301
set_car_health 39@ {health} 10

:ZERO1_10301
if 
  not is_car_dead 40@
goto_if_false @ZERO1_10324
set_car_health 40@ {health} 10

:ZERO1_10324
if 
  not is_car_dead 41@
goto_if_false @ZERO1_10347
set_car_health 41@ {health} 10

:ZERO1_10347
if 
  not is_car_dead 42@
goto_if_false @ZERO1_10370
set_car_health 42@ {health} 10

:ZERO1_10370
if 
  does_object_exist 192@
goto_if_false @ZERO1_10391
delete_object 192@

:ZERO1_10391
if 
  does_object_exist 193@
goto_if_false @ZERO1_10412
delete_object 193@

:ZERO1_10412
if 
  does_object_exist 194@
goto_if_false @ZERO1_10433
delete_object 194@

:ZERO1_10433
if 
  does_object_exist 195@
goto_if_false @ZERO1_10454
delete_object 195@

:ZERO1_10454
if 
  not is_car_dead 39@
goto_if_false @ZERO1_10503
if 
  is_car_on_screen 39@
goto_if_false @ZERO1_10498
mark_car_as_no_longer_needed 39@
goto @ZERO1_10503

:ZERO1_10498
delete_car 39@

:ZERO1_10503
mark_car_as_no_longer_needed 39@
if 
  not is_car_dead 40@
goto_if_false @ZERO1_10557
if 
  is_car_on_screen 40@
goto_if_false @ZERO1_10552
mark_car_as_no_longer_needed 40@
goto @ZERO1_10557

:ZERO1_10552
delete_car 40@

:ZERO1_10557
mark_car_as_no_longer_needed 40@
if 
  not is_car_dead 41@
goto_if_false @ZERO1_10611
if 
  is_car_on_screen 41@
goto_if_false @ZERO1_10606
mark_car_as_no_longer_needed 41@
goto @ZERO1_10611

:ZERO1_10606
delete_car 41@

:ZERO1_10611
mark_car_as_no_longer_needed 41@
if 
  not is_car_dead 42@
goto_if_false @ZERO1_10665
if 
  is_car_on_screen 42@
goto_if_false @ZERO1_10660
mark_car_as_no_longer_needed 42@
goto @ZERO1_10665

:ZERO1_10660
delete_car 42@

:ZERO1_10665
mark_car_as_no_longer_needed 42@
remove_stuck_car_check 39@
remove_stuck_car_check 40@
remove_stuck_car_check 41@
remove_stuck_car_check 42@
356@ = get_game_timer 
set_lvar_int_to_lvar_int 350@ = 356@
sub_int_lvar_from_int_lvar 350@ -= 340@
if 
  350@ > 45000
goto_if_false @ZERO1_10778
328@ = 4

:ZERO1_10739
if 
  8 > 328@
goto_if_false @ZERO1_10778
gosub @ZERO1_2596
328@ += 1
goto @ZERO1_10739

:ZERO1_10778
if 
  1 >= $mission_countdown_zero1
goto_if_false @ZERO1_10903
328@ = 0

:ZERO1_10803
if 
  8 > 328@
goto_if_false @ZERO1_10873
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_10859
explode_car 35@(328@,10i)
mark_car_as_no_longer_needed 35@(328@,10i)

:ZERO1_10859
328@ += 1
goto @ZERO1_10803

:ZERO1_10873
147@ = 0
148@ = 0
149@ = 1
150@ = 0
return 

:ZERO1_10903
return 

:ZERO1_10905
248@(328@,10i) = 0
get_car_coordinates 35@(328@,10i) {var_x} 268@(328@,10f) {var_y} 278@(328@,10f) {var_z} 288@(328@,10f)
get_ground_z_for_3d_coord 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {var_groundZ} 318@(328@,10f)
if 
  does_object_exist 188@(328@,10i)
goto_if_false @ZERO1_11273
set_lvar_float_to_lvar_float 238@(328@,10f) = 288@(328@,10f)
sub_float_lvar_from_float_lvar 238@(328@,10f) -= 318@(328@,10f)
if 
  238@(328@,10f) > 0.5
goto_if_false @ZERO1_11157
set_visibility_of_closest_object_of_type 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {radius} 10.0 {modelId} #RCBOMB {state} True
sub_timed_val_from_float_lvar 258@(328@,10f) -=@ 0.05
if 
  -0.5 > 258@(328@,10f)
goto_if_false @ZERO1_11150
258@(328@,10f) = -0.5
248@(328@,10i) = 1

:ZERO1_11150
goto @ZERO1_11273

:ZERO1_11157
set_lvar_float_to_lvar_float 258@(328@,10f) = 238@(328@,10f)
258@(328@,10f) -= 1.0
258@(328@,10f) *= -1.0
if 
  258@(328@,10f) > 0.0
goto_if_false @ZERO1_11273
258@(328@,10f) = 0.0
set_visibility_of_closest_object_of_type 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {radius} 10.0 {modelId} #RCBOMB {state} False

:ZERO1_11273
if 
  167@(328@,10i) == 1
goto_if_false @ZERO1_11661
get_game_timer 218@(328@,10i)
if 
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 228@(328@,10i)
goto_if_false @ZERO1_11661
if 
  208@(328@,10i) == 0
goto_if_false @ZERO1_11601
if 
  248@(328@,10i) == 1
goto_if_false @ZERO1_11594
258@(328@,10f) -= 0.5
detach_object 188@(328@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_dynamic 188@(328@,10i) {state} True
set_object_collision 188@(328@,10i) {state} True
add_to_object_velocity 188@(328@,10i) {x} 0.0 {y} 0.0 {z} 0.0
set_lvar_int_to_lvar_int 228@(328@,10i) = 218@(328@,10i)
228@(328@,10i) += 2500
set_lvar_int_to_lvar_int 198@(328@,10i) = 188@(328@,10i)
188@(328@,10i) = -1
set_object_records_collisions 198@(328@,10i) {state} True
set_lvar_int_to_lvar_int 298@(328@,10i) = 218@(328@,10i)
298@(328@,10i) += 250
set_lvar_int_to_lvar_int 308@(328@,10i) = 218@(328@,10i)
308@(328@,10i) += 3000
208@(328@,10i) = 1

:ZERO1_11594
goto @ZERO1_11661

:ZERO1_11601
if 
  208@(328@,10i) == 2
goto_if_false @ZERO1_11661
if 
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 298@(328@,10i)
goto_if_false @ZERO1_11661
208@(328@,10i) = 0

:ZERO1_11661
if 
  208@(328@,10i) == 1
goto_if_false @ZERO1_13660
if 
  does_object_exist 198@(328@,10i)
goto_if_false @ZERO1_13660
get_object_coordinates 198@(328@,10i) {var_x} 268@(328@,10f) {var_y} 278@(328@,10f) {var_z} 288@(328@,10f)
get_ground_z_for_3d_coord 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {var_groundZ} 318@(328@,10f)
318@(328@,10f) += 0.5
if 
  6.0 > 318@(328@,10f)
goto_if_false @ZERO1_11816
318@(328@,10f) = 6.0

:ZERO1_11816
if or
  has_object_collided_with_anything 198@(328@,10i)
  is_int_lvar_greater_than_int_lvar 218@(328@,10i) > 308@(328@,10i)
  is_object_in_water 198@(328@,10i)
goto_if_false @ZERO1_13660
set_object_records_collisions 198@(328@,10i) {state} False
add_explosion 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {type} ExplosionType.Grenade
mark_object_as_no_longer_needed 198@(328@,10i)
delete_object 198@(328@,10i)
198@(328@,10i) = -1
208@(328@,10i) = 2
167@(328@,10i) = 2
if 
  not is_char_dead 55@
goto_if_false @ZERO1_12081
if 
  166@ == 0
goto_if_false @ZERO1_12081
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44607

:ZERO1_11991
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_12017
wait 0
goto @ZERO1_11991

:ZERO1_12017
print_now 'ZER1_BC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_12037
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_12063
wait 0
goto @ZERO1_12037

:ZERO1_12063
clear_this_print 'ZER1_BC'
166@ = 1

:ZERO1_12081
if 
  not is_car_dead 35@(328@,10i)
goto_if_false @ZERO1_12361
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 4.0
if 
  locate_car_2d 35@(328@,10i) {x} -2235.6599 {y} 182.43 {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @ZERO1_12217
get_offset_from_car_in_world_coords 35@(328@,10i) {xOffset} -25.0 {yOffset} 0.0 {zOffset} 5.0 {var_x} 119@(328@,8f) {var_y} 127@(328@,8f) {var_z} 135@(328@,8f)
goto @ZERO1_12262

:ZERO1_12217
get_offset_from_car_in_world_coords 35@(328@,10i) {xOffset} 25.0 {yOffset} 0.0 {zOffset} 5.0 {var_x} 119@(328@,8f) {var_y} 127@(328@,8f) {var_z} 135@(328@,8f)

:ZERO1_12262
get_offset_from_car_in_world_coords 35@(328@,10i) {xOffset} 0.0 {yOffset} 20.0 {zOffset} 4.0 {var_x} 95@(328@,8f) {var_y} 103@(328@,8f) {var_z} 111@(328@,8f)
plane_goto_coords 35@(328@,10i) {x} 95@(328@,8f) {y} 103@(328@,8f) {z} 111@(328@,8f) {minAltitude} -1.0 {maxAltitude} 0.5
set_plane_throttle 35@(328@,10i) {throttle} -0.9

:ZERO1_12361
if 
  160@ == 0
goto_if_false @ZERO1_12658
if 
  does_object_exist 45@
goto_if_false @ZERO1_12658
if 
  locate_object_3d 45@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_12658
if 
  331@ > 5
goto_if_false @ZERO1_12481
331@ -= 5
goto @ZERO1_12658

:ZERO1_12481
160@ = 1
gosub @ZERO1_14045
if 
  150@ == 1
goto_if_false @ZERO1_12543
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_12543
if 
  not is_char_dead 55@
goto_if_false @ZERO1_12658
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44611

:ZERO1_12568
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_12594
wait 0
goto @ZERO1_12568

:ZERO1_12594
print_now 'ZER1_BG' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_12614
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_12640
wait 0
goto @ZERO1_12614

:ZERO1_12640
clear_this_print 'ZER1_BG'
331@ = 0

:ZERO1_12658
if 
  161@ == 0
goto_if_false @ZERO1_12955
if 
  does_object_exist 46@
goto_if_false @ZERO1_12955
if 
  locate_object_3d 46@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_12955
if 
  332@ > 5
goto_if_false @ZERO1_12778
332@ -= 5
goto @ZERO1_12955

:ZERO1_12778
161@ = 1
gosub @ZERO1_14045
if 
  150@ == 1
goto_if_false @ZERO1_12840
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_12840
if 
  not is_char_dead 55@
goto_if_false @ZERO1_12955
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44613

:ZERO1_12865
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_12891
wait 0
goto @ZERO1_12865

:ZERO1_12891
print_now 'ZER1_BJ' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_12911
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_12937
wait 0
goto @ZERO1_12911

:ZERO1_12937
clear_this_print 'ZER1_BJ'
332@ = 0

:ZERO1_12955
if 
  162@ == 0
goto_if_false @ZERO1_13252
if 
  does_object_exist 47@
goto_if_false @ZERO1_13252
if 
  locate_object_3d 47@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_13252
if 
  333@ > 5
goto_if_false @ZERO1_13075
333@ -= 5
goto @ZERO1_13252

:ZERO1_13075
162@ = 1
gosub @ZERO1_14045
if 
  150@ == 1
goto_if_false @ZERO1_13137
147@ = 0
148@ = 0
149@ = 0
150@ = 1
return 

:ZERO1_13137
if 
  not is_char_dead 55@
goto_if_false @ZERO1_13252
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44614

:ZERO1_13162
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_13188
wait 0
goto @ZERO1_13162

:ZERO1_13188
print_now 'ZER1_BK' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_13208
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_13234
wait 0
goto @ZERO1_13208

:ZERO1_13234
clear_this_print 'ZER1_BK'
333@ = 0

:ZERO1_13252
if 
  163@ == 0
goto_if_false @ZERO1_13660
if 
  does_object_exist 48@
goto_if_false @ZERO1_13660
if 
  locate_object_3d 48@ {x} 268@(328@,10f) {y} 278@(328@,10f) {z} 288@(328@,10f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @ZERO1_13660
if 
  334@ > 5
goto_if_false @ZERO1_13372
334@ -= 5
goto @ZERO1_13660

:ZERO1_13372
163@ = 1
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 365@(329@,4i)
334@ = 0
147@ = 0
148@ = 0
150@ = 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_13632
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44621

:ZERO1_13549
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_13575
wait 0
goto @ZERO1_13549

:ZERO1_13575
print_now 'ZER1_EA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_13595
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_13621
wait 0
goto @ZERO1_13595

:ZERO1_13621
clear_this_print 'ZER1_EA'

:ZERO1_13632
clear_onscreen_counter $transmitter_overallhealth
clear_onscreen_timer $mission_countdown_zero1
print_now 'ZER1_19' {time} 5000 {flag} 1
return 

:ZERO1_13660
return 

:ZERO1_13662
if or
  329@ > 3
  5 >= $transmitter_overallhealth
goto_if_false @ZERO1_14011
147@ = 0
148@ = 0
150@ = 1
if 
  does_object_exist 45@(329@,10i)
goto_if_false @ZERO1_13868
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 61.5 {type} ExplosionType.Object
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 365@(329@,4i)

:ZERO1_13868
if 
  not is_char_dead 55@
goto_if_false @ZERO1_13976
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44621

:ZERO1_13893
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_13919
wait 0
goto @ZERO1_13893

:ZERO1_13919
print_now 'ZER1_EA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_13939
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_13965
wait 0
goto @ZERO1_13939

:ZERO1_13965
clear_this_print 'ZER1_EA'

:ZERO1_13976
clear_onscreen_counter $transmitter_overallhealth
clear_onscreen_timer $mission_countdown_zero1
print_now 'ZER1_19' {time} 5000 {flag} 1
return 
goto @ZERO1_14043

:ZERO1_14011
set_var_int_to_lvar_int $transmitter_overallhealth = 331@
add_int_lvar_to_int_var $transmitter_overallhealth += 332@
add_int_lvar_to_int_var $transmitter_overallhealth += 333@
add_int_lvar_to_int_var $transmitter_overallhealth += 334@

:ZERO1_14043
return 

:ZERO1_14045
delete_object 45@(329@,10i)
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 61.5 {type} ExplosionType.Object
add_explosion 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {type} ExplosionType.Grenade
create_object #WONGS_ERECTION2 {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {var_handle} 45@(329@,10i)
set_object_heading 45@(329@,10i) {heading} 143@(329@,4f)
start_script_fire 77@(329@,4f) {y} 81@(329@,4f) {z} 85@(329@,4f) {propagation} 5 {size} 3 {var_handle} 365@(329@,4i)
if and
  4 > 329@
  329@ >= 0
goto_if_false @ZERO1_15204
329@ += 1
if 
  329@ == 1
goto_if_false @ZERO1_14395
60@ = -2308.4961
68@ = 131.349
61@ = -2080.5811
69@ = 122.0999
62@ = -2308.6931
70@ = 190.552
63@ = -2124.54
71@ = 63.5174
64@ = -2112.457
72@ = 143.6713
65@ = -2111.908
73@ = 149.0278
66@ = -2110.3679
74@ = 126.8913
67@ = -2110.021
75@ = 120.1988

:ZERO1_14395
if 
  329@ == 2
goto_if_false @ZERO1_14573
60@ = -2308.4961
68@ = 131.349
61@ = -2080.5811
69@ = 122.0999
62@ = -2308.6931
70@ = 190.552
63@ = -2124.54
71@ = 63.5174
64@ = -2112.457
72@ = 143.6713
65@ = -2111.908
73@ = 149.0278
66@ = -2110.3679
74@ = 126.8913
67@ = -2110.021
75@ = 120.1988

:ZERO1_14573
if 
  329@ == 3
goto_if_false @ZERO1_14758
clear_char_decision_maker_event_response 335@ {event} Event.FireNearby
60@ = -2119.4961
68@ = 91.349
61@ = -2258.5811
69@ = 169.0999
62@ = -2278.6931
70@ = 66.552
63@ = -2248.54
71@ = 181.5174
64@ = -2180.457
72@ = 22.6713
65@ = -2181.908
73@ = 25.0278
66@ = -2181.3679
74@ = 18.8913
67@ = -2180.021
75@ = 18.1988

:ZERO1_14758
set_lvar_float_to_lvar_float 76@ = 85@(329@,4f)
76@ += 10.0
if 
  not is_car_dead 35@
goto_if_false @ZERO1_14833
plane_goto_coords 35@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
336@ = get_game_timer 

:ZERO1_14833
if 
  not is_car_dead 36@
goto_if_false @ZERO1_14886
plane_goto_coords 36@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
337@ = get_game_timer 

:ZERO1_14886
if 
  not is_car_dead 37@
goto_if_false @ZERO1_14939
plane_goto_coords 37@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
338@ = get_game_timer 

:ZERO1_14939
if 
  not is_car_dead 38@
goto_if_false @ZERO1_14992
plane_goto_coords 38@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
339@ = get_game_timer 

:ZERO1_14992
if 
  not is_car_dead 39@
goto_if_false @ZERO1_15045
plane_goto_coords 39@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
340@ = get_game_timer 

:ZERO1_15045
if 
  not is_car_dead 40@
goto_if_false @ZERO1_15098
plane_goto_coords 40@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
341@ = get_game_timer 

:ZERO1_15098
if 
  not is_car_dead 41@
goto_if_false @ZERO1_15151
plane_goto_coords 41@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
342@ = get_game_timer 

:ZERO1_15151
if 
  not is_car_dead 42@
goto_if_false @ZERO1_15204
plane_goto_coords 42@ {x} 77@(329@,4f) {y} 81@(329@,4f) {z} 76@ {minAltitude} -1.0 {maxAltitude} 0.5
343@ = get_game_timer 

:ZERO1_15204
return 
add_blip_for_car 35@(328@,10i) {var_handle} 178@(328@,10i)
change_blip_display 178@(328@,10i) {display} BlipDisplay.BlipOnly
return 

:ZERO1_15235
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
clear_wanted_level $player1

:ZERO1_15255
if 
  get_fading_status 
goto_if_false @ZERO1_15279
wait 0
goto @ZERO1_15255

:ZERO1_15279
switch_widescreen True
set_player_control $player1 {state} False
set_heading_for_attached_player $player1 {heading} 270.0 {headingRange} 270.0
request_animation "CASINO"

:ZERO1_15315
if 
  not has_animation_loaded "CASINO"
goto_if_false @ZERO1_15347
wait 0
goto @ZERO1_15315

:ZERO1_15347
remove_animation "ON_LOOKERS"
clear_char_decision_maker_event_response 335@ {event} Event.FireNearby
task_shoot_at_coord $scplayer {x} -2237.22 {y} 170.55 {z} 58.45 {time} 3000
if 
  is_char_dead 55@
goto_if_false @ZERO1_15450
55@ = create_char PedType.CivMale {modelId} 290 {x} -2235.0 {y} 123.0 {z} 57.1
set_char_health 55@ {health} 1000
set_char_heading 55@ {heading} 160.0

:ZERO1_15450
if 
  not is_char_dead 55@
goto_if_false @ZERO1_15659
clear_char_tasks 55@
set_char_coordinates 55@ {x} -2235.0 {y} 123.0 {z} 57.1
set_char_heading 55@ {heading} 160.0
369@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -2237.9299 {y} 121.4 {z} 57.0 {speed} MoveState.Run {time} -1
task_play_anim -1 {animationName} "MANWIND" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_achieve_heading -1 {heading} 100.0
task_scratch_head -1
task_chat_with_char -1 {other} $scplayer {leadSpeaker} True {_p4} 1
close_sequence_task 369@
perform_sequence_task 55@ {sequence} 369@
clear_sequence_task 369@
set_fixed_camera_position -2242.8369 {y} 130.3954 {z} 60.7181 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2242.324 {y} 129.5807 {z} 60.4482 {switchStyle} SwitchType.JumpCut

:ZERO1_15659
do_fade 1000 {direction} Fade.In
set_fading_colour 0 {g} 0 {b} 0

:ZERO1_15674
if 
  get_fading_status 
goto_if_false @ZERO1_15698
wait 0
goto @ZERO1_15674

:ZERO1_15698
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44624

:ZERO1_15707
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_15733
wait 0
goto @ZERO1_15707

:ZERO1_15733
print_now 'ZER1_FA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_15753
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_15779
wait 0
goto @ZERO1_15753

:ZERO1_15779
clear_this_print 'ZER1_FA'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44625

:ZERO1_15799
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_15825
wait 0
goto @ZERO1_15799

:ZERO1_15825
print_now 'ZER1_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_15845
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_15871
wait 0
goto @ZERO1_15845

:ZERO1_15871
clear_this_print 'ZER1_FB'
177@ = 0
TIMERB = 0
TIMERA = 0

:ZERO1_15903
if 
  177@ <> 10
goto_if_false @ZERO1_17016
wait 0
if 
  177@ == 0
goto_if_false @ZERO1_16328
if 
  TIMERA > 2000
goto_if_false @ZERO1_16328
177@ = 1
set_fixed_camera_position -2238.853 {y} 124.0934 {z} 57.5797 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2238.4761 {y} 123.2044 {z} 57.8399 {switchStyle} SwitchType.JumpCut
TIMERA = 0
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16054
task_look_at_char $scplayer {target} 55@ {time} 3500

:ZERO1_16054
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44626

:ZERO1_16063
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16089
wait 0
goto @ZERO1_16063

:ZERO1_16089
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16113
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16113
print_now 'ZER1_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16133
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16159
wait 0
goto @ZERO1_16133

:ZERO1_16159
clear_this_print 'ZER1_FC'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16191
stop_char_facial_talk 55@

:ZERO1_16191
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44627

:ZERO1_16200
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16226
wait 0
goto @ZERO1_16200

:ZERO1_16226
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16250
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16250
print_now 'ZER1_FD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16270
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16296
wait 0
goto @ZERO1_16270

:ZERO1_16296
clear_this_print 'ZER1_FD'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16328
stop_char_facial_talk 55@

:ZERO1_16328
if 
  177@ == 1
goto_if_false @ZERO1_16434
if 
  TIMERA > 100
goto_if_false @ZERO1_16434
177@ = 2
TIMERA = 0
detach_char_from_car $scplayer
set_fixed_camera_position -2237.9751 {y} 122.7383 {z} 58.3408 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2238.1931 {y} 121.7735 {z} 58.4879 {switchStyle} SwitchType.JumpCut

:ZERO1_16434
if 
  177@ == 2
goto_if_false @ZERO1_16983
if 
  TIMERA > 200
goto_if_false @ZERO1_16983
177@ = 3
TIMERA = 0
369@ = open_sequence_task 
task_achieve_heading -1 {heading} 270.0
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16526
task_chat_with_char -1 {other} 55@ {leadSpeaker} False {_p4} 1

:ZERO1_16526
close_sequence_task 369@
perform_sequence_task $scplayer {sequence} 369@
clear_sequence_task 369@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44628

:ZERO1_16553
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16579
wait 0
goto @ZERO1_16553

:ZERO1_16579
print_now 'ZER1_FE' {time} 10000 {flag} 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16619
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16619
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16623
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16649
wait 0
goto @ZERO1_16623

:ZERO1_16649
clear_this_print 'ZER1_FE'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16681
stop_char_facial_talk 55@

:ZERO1_16681
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44630

:ZERO1_16690
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16716
wait 0
goto @ZERO1_16690

:ZERO1_16716
print_now 'ZER1_FG' {time} 10000 {flag} 1
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16756
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16756
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16760
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16786
wait 0
goto @ZERO1_16760

:ZERO1_16786
clear_this_print 'ZER1_FG'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16818
stop_char_facial_talk 55@

:ZERO1_16818
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16839
task_scratch_head 55@

:ZERO1_16839
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44629

:ZERO1_16848
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO1_16874
wait 0
goto @ZERO1_16848

:ZERO1_16874
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16898
start_char_facial_talk 55@ {duration} 10000

:ZERO1_16898
print_now 'ZER1_FF' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO1_16918
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO1_16944
wait 0
goto @ZERO1_16918

:ZERO1_16944
clear_this_print 'ZER1_FF'
if 
  not is_char_dead 55@
goto_if_false @ZERO1_16976
stop_char_facial_talk 55@

:ZERO1_16976
177@ = 10

:ZERO1_16983
if 
  TIMERB > 14000
goto_if_false @ZERO1_17009
177@ = 10

:ZERO1_17009
goto @ZERO1_15903

:ZERO1_17016
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:ZERO1_17031
if 
  get_fading_status 
goto_if_false @ZERO1_17055
wait 0
goto @ZERO1_17031

:ZERO1_17055
switch_widescreen False
clear_onscreen_counter $transmitter_overallhealth
clear_onscreen_timer $mission_countdown_zero1
detach_char_from_car $scplayer
if 
  not is_char_dead $scplayer
goto_if_false @ZERO1_17135
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
task_achieve_heading $scplayer {heading} 90.0

:ZERO1_17135
wait 500
restore_camera_jumpcut 
clear_area -2246.0259 {y} 134.895 {z} 34.3047 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In

:ZERO1_17173
if 
  get_fading_status 
goto_if_false @ZERO1_17197
wait 0
goto @ZERO1_17173

:ZERO1_17197
return 

:ZERO1_17199
gosub @ZERO1_15235
set_player_control $player1 {state} True
print_with_number_big 'M_PASS' {num} 3000 {duration} 100 {style} TextStyle.Middle
add_score $player1 {money} 3000
play_mission_passed_tune 1
player_made_progress 1
register_mission_passed 'ZERO_1'
$flag_zero_mission_counter += 1
return 

:ZERO1_17267
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
wait 5000
do_fade 500 {direction} Fade.Out
set_fading_colour 0 {g} 0 {b} 0

:ZERO1_17303
if 
  get_fading_status 
goto_if_false @ZERO1_17327
wait 0
goto @ZERO1_17303

:ZERO1_17327
clear_onscreen_counter $transmitter_overallhealth
clear_onscreen_timer $mission_countdown_zero1
detach_char_from_car $scplayer
switch_widescreen False
if 
  not is_char_dead $scplayer
goto_if_false @ZERO1_17407
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
task_achieve_heading $scplayer {heading} 90.0

:ZERO1_17407
load_scene -2246.0259 {y} 134.895 {z} 34.3047
restore_camera_jumpcut 
clear_area -2246.0259 {y} 134.895 {z} 34.3047 {radius} 1000.0 {clearParticles} True
do_fade 1000 {direction} Fade.In

:ZERO1_17457
if 
  get_fading_status 
goto_if_false @ZERO1_17481
wait 0
goto @ZERO1_17457

:ZERO1_17481
if 
  not is_char_dead $scplayer
goto_if_false @ZERO1_17504
set_player_control $player1 {state} True

:ZERO1_17504
return 

:ZERO1_17506
detach_char_from_car $scplayer
release_weather 
set_fading_colour 0 {g} 0 {b} 0
remove_all_script_fires 
$onmission = 0
set_police_ignore_player $player1 {state} False
set_wanted_multiplier 1.0
remove_rc_buggy 
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 464
mark_model_as_no_longer_needed 465
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed #WONGS_ERECTION
mark_model_as_no_longer_needed #RCBOMB
mark_model_as_no_longer_needed #WONGS_ERECTION2
mark_model_as_no_longer_needed #MINIGUN_BASE
mark_model_as_no_longer_needed 366
unload_special_character 1
clear_onscreen_counter $transmitter_overallhealth
clear_onscreen_timer $mission_countdown_zero1
delete_car 35@
delete_car 36@
delete_car 37@
delete_car 38@
delete_car 39@
delete_car 40@
delete_car 41@
delete_car 42@
delete_car 43@
delete_car 44@
clear_small_prints 
camera_reset_new_scriptables 
disable_all_entry_exits False
delete_object 45@
delete_object 46@
delete_object 47@
delete_object 48@
delete_object 49@
delete_object 50@
delete_object 51@
delete_object 52@
delete_object 53@
delete_object 54@
delete_object 188@
delete_object 189@
delete_object 190@
delete_object 191@
delete_object 192@
delete_object 193@
delete_object 194@
delete_object 195@
delete_object 196@
delete_object 197@
delete_object 198@
delete_object 199@
delete_object 200@
delete_object 201@
delete_object 202@
delete_object 203@
delete_object 204@
delete_object 205@
delete_object 206@
delete_object 207@
remove_blip 178@
remove_blip 179@
remove_blip 180@
remove_blip 181@
remove_blip 182@
remove_blip 183@
remove_blip 184@
remove_blip 185@
remove_blip 186@
remove_blip 187@
remove_stuck_car_check 35@
remove_stuck_car_check 36@
remove_stuck_car_check 37@
remove_stuck_car_check 38@
remove_stuck_car_check 39@
remove_stuck_car_check 40@
remove_stuck_car_check 41@
remove_stuck_car_check 42@
remove_stuck_car_check 43@
remove_stuck_car_check 44@
$timer_mobile_start = get_game_timer 
remove_char_elegantly 55@
mark_object_as_no_longer_needed 34@
remove_animation "CASINO"
remove_animation "ON_LOOKERS"
mission_has_finished 
return 

//-------------Mission 73---------------
// Originally: Supply Lines...

:ZERO2
gosub @ZERO2_36
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO2_27
gosub @ZERO2_9413

:ZERO2_27
gosub @ZERO2_9415
terminate_this_script 

:ZERO2_36
119@ = 0
$onmission = 1
register_mission_given 
script_name 'ZERO2'
set_player_control $player1 {state} False
load_mission_text 'ZERO2'
display_car_names False
set_fading_colour 0 {g} 0 {b} 0
set_police_ignore_player $player1 {state} True
set_area_visible 6
set_player_control $player1 {state} False
force_weather_now WeatherType.SunnySf
load_cutscene 'ZERO_2'

:ZERO2_126
if 
  not has_cutscene_loaded 
goto_if_false @ZERO2_150
wait 0
goto @ZERO2_126

:ZERO2_150
start_cutscene 
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} False

:ZERO2_166
if 
  not has_cutscene_finished 
goto_if_false @ZERO2_190
wait 0
goto @ZERO2_166

:ZERO2_190
clear_cutscene 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:ZERO2_213
if 
  get_fading_status 
goto_if_false @ZERO2_237
wait 0
goto @ZERO2_213

:ZERO2_237
clear_cutscene 
set_area_visible 0
set_player_control $player1 {state} False
96@ = 1
97@ = 0
98@ = 0
99@ = 0
110@ = 0
108@ = 0
109@ = 0
116@ = 0
117@ = 0
100@ = 0
101@ = 0
111@ = 0
112@ = 0
113@ = 0
121@ = 0
59@ = 390000.0
set_lvar_float_to_lvar_float 60@ = 59@
63@ = -2006.77
68@ = 365.69
73@ = 34.35
78@ = 0.0
64@ = -2250.573
69@ = 22.8303
74@ = 34.4634
79@ = 180.0
65@ = -2266.27
70@ = 53.1194
75@ = 34.38
80@ = 90.0
66@ = -2441.4241
71@ = 41.963
76@ = 33.004
81@ = 90.0
67@ = -1728.08
72@ = 850.89
77@ = 23.73
82@ = 270.0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
122@ = 0
83@ = -2205.4399
84@ = 128.99
85@ = 57.33
86@ = 90.0
87@ = -2227.0
88@ = 113.0
89@ = 35.5
61@ = 100.0
$timer_time_limit_converted_int = 100
TIMERA = 0
129@ = 0
disable_all_entry_exits True
request_model 464
request_model 459
request_model 352
request_model 510
request_model 468
load_special_character 1 {modelName} 'ZERO'
load_all_models_now 

:ZERO2_760
if or
  not has_model_loaded 464
  not has_model_loaded 459
  not has_model_loaded 352
  not has_model_loaded 510
  not has_model_loaded 468
goto_if_false @ZERO2_807
wait 0
goto @ZERO2_760

:ZERO2_807
if 
  not has_special_character_loaded 1
goto_if_false @ZERO2_833
wait 0
goto @ZERO2_807

:ZERO2_833
56@ = load_char_decision_maker DecisionMakerType.Empty

:ZERO2_840
wait 0
if 
  96@ == 1
goto_if_false @ZERO2_869
gosub @ZERO2_951

:ZERO2_869
if 
  116@ == 1
goto_if_false @ZERO2_894
gosub @ZERO2_7177

:ZERO2_894
if 
  100@ == 1
goto_if_false @ZERO2_919
goto @ZERO2_9384

:ZERO2_919
if 
  101@ == 1
goto_if_false @ZERO2_944
goto @ZERO2_9413

:ZERO2_944
goto @ZERO2_840

:ZERO2_951
clear_area 87@ {y} 88@ {z} 89@ {radius} 1000.0 {clearParticles} True
35@ = create_car 459 {x} -2250.8999 {y} 124.6 {z} 28.48
set_load_collision_for_car_flag 35@ {state} False
freeze_car_position 35@ {state} True
open_car_door 35@ {door} CarDoor.LeftRearDoor
open_car_door 35@ {door} CarDoor.RightRearDoor
warp_char_into_car $scplayer {vehicle} 35@
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_car_dead 35@
goto_if_false @ZERO2_1086
57@ = create_char_as_passenger 35@ {pedType} PedType.CivMale {modelId} 290 {seat} SeatId.BikeRear
set_car_health 35@ {health} 1000
set_car_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:ZERO2_1086
set_police_ignore_player $player1 {state} True
give_remote_controlled_model_to_player $player1 {x} 83@ {y} 84@ {z} 85@ {angle} 40.09 {modelId} 464
34@ = get_remote_controlled_car $player1
set_car_heading 34@ {heading} 90.0
set_enable_rc_detonate_on_contact False
set_enable_rc_detonate False
set_car_health 34@ {health} 1100
set_car_proofs 34@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
129@ = 0

:ZERO2_1171
if 
  5 > 129@
goto_if_false @ZERO2_1776
wait 0
clear_area 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {radius} 1000.0 {clearParticles} True
if 
  129@ == 0
goto_if_false @ZERO2_1286
create_car 468 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1000

:ZERO2_1286
if 
  129@ == 1
goto_if_false @ZERO2_1349
create_car 510 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500

:ZERO2_1349
if 
  129@ == 2
goto_if_false @ZERO2_1412
create_car 459 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500

:ZERO2_1412
if 
  129@ == 3
goto_if_false @ZERO2_1475
create_car 459 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500

:ZERO2_1475
if 
  129@ == 4
goto_if_false @ZERO2_1549
create_car 459 {x} 63@(129@,5f) {y} 68@(129@,5f) {z} 73@(129@,5f) {var_handle} 46@(129@,5i)
set_car_health 46@(129@,5i) {health} 1500
lock_car_doors 46@(129@,5i) {lockStatus} CarLock.SkipShutDoors

:ZERO2_1549
set_car_heading 46@(129@,5i) {heading} 78@(129@,5f)
set_car_proofs 46@(129@,5i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
create_random_char_as_driver 46@(129@,5i) {var_handle} 36@(129@,5i)
give_weapon_to_char 36@(129@,5i) {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 36@(129@,5i) {accuracy} 60
set_load_collision_for_car_flag 46@(129@,5i) {state} False
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_1728
create_random_char_as_passenger 46@(129@,5i) {seat} SeatId.BikeRear {var_handle} 51@(129@,5i)
give_weapon_to_char 51@(129@,5i) {weaponType} WeaponType.MicroUzi {ammo} 500
set_char_accuracy 51@(129@,5i) {accuracy} 60
set_char_decision_maker 51@(129@,5i) {handleOrTemplate} 56@
set_char_decision_maker 36@(129@,5i) {handleOrTemplate} 56@

:ZERO2_1728
task_car_drive_wander 36@(129@,5i) {vehicle} 46@(129@,5i) {speed} 3.0 {drivingMode} DrivingMode.StopForCars
103@(129@,5i) = 0
129@ += 1
goto @ZERO2_1171

:ZERO2_1776
TIMERB = 0
set_fixed_camera_position -2273.8411 {y} 45.5794 {z} 37.0987 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2273.2971 {y} 46.4174 {z} 37.1385 {switchStyle} SwitchType.JumpCut
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area -2285.54 {y} 41.31 {z} 35.01 {radius} 1000.0 {clearParticles} True
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -2273.8411 {fromY} 45.5794 {fromZ} 37.0987 {toX} -2280.6531 {toY} 50.3058 {toZ} 35.7357 {time} 5000 {ease} True
camera_set_vector_track -2273.2971 {fromY} 46.4174 {fromZ} 37.1385 {toX} -2280.054 {toY} 51.104 {toZ} 35.6677 {time} 5000 {ease} True
switch_widescreen True
TIMERA = 0
TIMERB = 0
load_scene_in_direction -2273.8411 {y} 45.5794 {z} 37.0987 {heading} 310.0
set_fading_colour 0 {g} 0 {b} 0
wait 1000
do_fade 1000 {direction} Fade.In
120@ = 0

:ZERO2_2023
if 
  120@ <> 10
goto_if_false @ZERO2_2460
wait 0
if 
  120@ == 0
goto_if_false @ZERO2_2169
120@ = 1
skip_cutscene_start_internal @ZERO2_2460
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44801

:ZERO2_2086
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2112
wait 0
goto @ZERO2_2086

:ZERO2_2112
print_now 'ZER2_AB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2132
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2158
wait 0
goto @ZERO2_2132

:ZERO2_2158
clear_this_print 'ZER2_AB'

:ZERO2_2169
if 
  120@ == 1
goto_if_false @ZERO2_2286
120@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44802

:ZERO2_2203
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2229
wait 0
goto @ZERO2_2203

:ZERO2_2229
print_now 'ZER2_AC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2249
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2275
wait 0
goto @ZERO2_2249

:ZERO2_2275
clear_this_print 'ZER2_AC'

:ZERO2_2286
if 
  120@ == 2
goto_if_false @ZERO2_2403
120@ = 3
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44803

:ZERO2_2320
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2346
wait 0
goto @ZERO2_2320

:ZERO2_2346
print_now 'ZER2_AD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2366
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2392
wait 0
goto @ZERO2_2366

:ZERO2_2392
clear_this_print 'ZER2_AD'

:ZERO2_2403
if 
  is_skip_cutscene_button_pressed 
goto_if_false @ZERO2_2427
clear_mission_audio MissionAudioSlot.Slot1
120@ = 10

:ZERO2_2427
if 
  TIMERA > 5000
goto_if_false @ZERO2_2453
120@ = 10

:ZERO2_2453
goto @ZERO2_2023

:ZERO2_2460
skip_cutscene_end 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_2477
if 
  get_fading_status 
goto_if_false @ZERO2_2501
wait 0
goto @ZERO2_2477

:ZERO2_2501
camera_reset_new_scriptables 
if 
  not is_car_dead 35@
goto_if_false @ZERO2_2556
set_car_coordinates 35@ {x} -2233.8999 {y} 122.6 {z} 700.48
set_car_heading 35@ {heading} 90.0
freeze_car_position 35@ {state} True

:ZERO2_2556
set_radio_channel RadioChannel.RadioX
if 
  not is_car_dead 35@
goto_if_false @ZERO2_2581
close_all_car_doors 35@

:ZERO2_2581
switch_widescreen False
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
restore_camera_jumpcut 
if 
  not is_car_dead 34@
goto_if_false @ZERO2_2641
point_camera_at_car 34@ {mode} CameraMode.CamOnAString {switchStyle} SwitchType.JumpCut
freeze_car_position 34@ {state} False
wait 0
set_camera_zoom 1

:ZERO2_2641
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:ZERO2_2656
if 
  get_fading_status 
goto_if_false @ZERO2_2680
wait 0
goto @ZERO2_2656

:ZERO2_2680
set_player_control $player1 {state} True
129@ = 0

:ZERO2_2694
if 
  5 > 129@
goto_if_false @ZERO2_2762
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_2748
add_blip_for_char 36@(129@,5i) {var_handle} 123@(129@,5i)

:ZERO2_2748
129@ += 1
goto @ZERO2_2694

:ZERO2_2762
display_onscreen_counter_with_string $timer_time_limit_converted_int {display} CounterDisplay.Bar {text} 'ZER2_28'
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44800

:ZERO2_2791
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_2817
wait 0
goto @ZERO2_2791

:ZERO2_2817
print_now 'ZER2_AA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_2837
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_2863
wait 0
goto @ZERO2_2837

:ZERO2_2863
clear_this_print 'ZER2_AA'
if 
  not is_car_dead 34@
goto_if_false @ZERO2_7019

:ZERO2_2890
if 
  110@ <> 1
goto_if_false @ZERO2_7019
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_3017
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ZERO2_2989
sub_timed_val_from_float_lvar 59@ -=@ 20.0
set_lvar_float_to_lvar_float 61@ = 59@
div_float_lvar_by_float_lvar 61@ /= 60@
61@ *= 100.0
cset_var_int_to_lvar_float $timer_time_limit_converted_int =# 61@

:ZERO2_2989
83@, 84@, 85@ = get_car_coordinates 34@
58@ = get_city_from_coords 83@ {y} 84@ {z} 85@

:ZERO2_3017
if or
  is_int_lvar_equal_to_constant 58@ == 1
  is_int_lvar_equal_to_constant 58@ == 3
goto_if_false @ZERO2_3052
explode_car 34@
explode_car 34@

:ZERO2_3052
if 
  119@ == 0
goto_if_false @ZERO2_3095
print_help 'ZER2_1'
119@ = 1
TIMERA = 0

:ZERO2_3095
if 
  119@ == 1
goto_if_false @ZERO2_3159
if 
  TIMERA > 8000
goto_if_false @ZERO2_3159
clear_help 
print_help 'ZER2_2'
119@ = 2
TIMERA = 0

:ZERO2_3159
if 
  119@ == 2
goto_if_false @ZERO2_3223
if 
  TIMERA > 8000
goto_if_false @ZERO2_3223
clear_help 
print_help 'ZER2_30'
119@ = 3
TIMERA = 0

:ZERO2_3223
if 
  119@ == 3
goto_if_false @ZERO2_3285
if 
  TIMERA > 8000
goto_if_false @ZERO2_3285
clear_help 
print_now 'ZER2_14' {time} 10000 {flag} 1
119@ = 4

:ZERO2_3285
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @ZERO2_3353
wait 0
wait 0
wait 0
wait 0
96@ = 0
97@ = 0
98@ = 0
100@ = 1
101@ = 0
return 

:ZERO2_3353
if 
  122@ == 0
goto_if_false @ZERO2_3488
if 
  50 >= $timer_time_limit_converted_int
goto_if_false @ZERO2_3488
122@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44811

:ZERO2_3405
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_3431
wait 0
goto @ZERO2_3405

:ZERO2_3431
print_now 'ZER2_DA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_3451
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_3477
wait 0
goto @ZERO2_3451

:ZERO2_3477
clear_this_print 'ZER2_DA'

:ZERO2_3488
if 
  122@ == 1
goto_if_false @ZERO2_3623
if 
  10 >= $timer_time_limit_converted_int
goto_if_false @ZERO2_3623
122@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44812

:ZERO2_3540
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_3566
wait 0
goto @ZERO2_3540

:ZERO2_3566
print_now 'ZER2_DB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_3586
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_3612
wait 0
goto @ZERO2_3586

:ZERO2_3612
clear_this_print 'ZER2_DB'

:ZERO2_3623
if 
  0 >= $timer_time_limit_converted_int
goto_if_false @ZERO2_4040
if 
  not is_car_dead 34@
goto_if_false @ZERO2_3671
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True

:ZERO2_3671
clear_onscreen_counter $timer_time_limit_converted_int
TIMERA = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_42' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44623

:ZERO2_3773
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_3799
wait 0
goto @ZERO2_3773

:ZERO2_3799
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_3803
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_3855
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_3848
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_3848
goto @ZERO2_3803

:ZERO2_3855
remove_rc_buggy 
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_3946
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_3916
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_3936

:ZERO2_3916
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_3936
set_char_heading $scplayer {heading} 90.0

:ZERO2_3946
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_3961
if 
  get_fading_status 
goto_if_false @ZERO2_3985
wait 0
goto @ZERO2_3961

:ZERO2_3985
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_4014
if 
  get_fading_status 
goto_if_false @ZERO2_4038
wait 0
goto @ZERO2_4014

:ZERO2_4038
return 

:ZERO2_4040
if 
  is_car_dead 34@
goto_if_false @ZERO2_4390
clear_onscreen_counter $timer_time_limit_converted_int
101@ = 1
set_player_control $player1 {state} False
96@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44622

:ZERO2_4123
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4149
wait 0
goto @ZERO2_4123

:ZERO2_4149
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4153
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4205
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_4198
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_4198
goto @ZERO2_4153

:ZERO2_4205
remove_rc_buggy 
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_4296
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_4266
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_4286

:ZERO2_4266
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_4286
set_char_heading $scplayer {heading} 90.0

:ZERO2_4296
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_4311
if 
  get_fading_status 
goto_if_false @ZERO2_4335
wait 0
goto @ZERO2_4311

:ZERO2_4335
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_4364
if 
  get_fading_status 
goto_if_false @ZERO2_4388
wait 0
goto @ZERO2_4364

:ZERO2_4388
return 

:ZERO2_4390
129@ = 0

:ZERO2_4397
if 
  5 > 129@
goto_if_false @ZERO2_6915
if 
  not is_car_dead 34@
goto_if_false @ZERO2_5037
83@, 84@, 85@ = get_car_coordinates 34@
if 
  111@(129@,5i) == 0
goto_if_false @ZERO2_5037
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_4516
if 
  103@(129@,5i) == 1
goto_if_false @ZERO2_4509

:ZERO2_4509
goto @ZERO2_5037

:ZERO2_4516
111@(129@,5i) = 1
remove_blip 123@(129@,5i)
mark_car_as_no_longer_needed 46@(129@,5i)
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_4579
mark_char_as_no_longer_needed 51@(129@,5i)

:ZERO2_4579
121@ += 1
111@(129@,5i) = 1
if 
  121@ == 1
goto_if_false @ZERO2_4707
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44806

:ZERO2_4624
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4650
wait 0
goto @ZERO2_4624

:ZERO2_4650
print_now 'ZER2_CA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4670
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4696
wait 0
goto @ZERO2_4670

:ZERO2_4696
clear_this_print 'ZER2_CA'

:ZERO2_4707
if 
  121@ == 2
goto_if_false @ZERO2_4817
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44808

:ZERO2_4734
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4760
wait 0
goto @ZERO2_4734

:ZERO2_4760
print_now 'ZER2_CC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4780
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4806
wait 0
goto @ZERO2_4780

:ZERO2_4806
clear_this_print 'ZER2_CC'

:ZERO2_4817
if 
  121@ == 3
goto_if_false @ZERO2_4927
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44809

:ZERO2_4844
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4870
wait 0
goto @ZERO2_4844

:ZERO2_4870
print_now 'ZER2_CD' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_4890
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_4916
wait 0
goto @ZERO2_4890

:ZERO2_4916
clear_this_print 'ZER2_CD'

:ZERO2_4927
if 
  121@ == 4
goto_if_false @ZERO2_5037
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44810

:ZERO2_4954
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_4980
wait 0
goto @ZERO2_4954

:ZERO2_4980
print_now 'ZER2_CE' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_5000
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_5026
wait 0
goto @ZERO2_5000

:ZERO2_5026
clear_this_print 'ZER2_CE'

:ZERO2_5037
if 
  not is_car_dead 34@
goto_if_false @ZERO2_6567
95@ = get_game_timer 
if 
  not locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_5137
91@, 92@, 93@ = get_car_coordinates 34@
set_lvar_int_to_lvar_int 94@ = 95@
94@ += 4000
117@ = 0

:ZERO2_5137
if 
  locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_5625
if 
  is_int_lvar_greater_than_int_lvar 95@ > 94@
goto_if_false @ZERO2_5625
if 
  119@ > 3
goto_if_false @ZERO2_5625
if 
  117@ == 0
goto_if_false @ZERO2_5252
print_help 'ZER2_4'
117@ = 1

:ZERO2_5252
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO2_5625
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_car_health 34@ {health} 1
clear_onscreen_counter $timer_time_limit_converted_int
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_5451
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_5421
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_5441

:ZERO2_5421
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_5441
set_char_heading $scplayer {heading} 90.0

:ZERO2_5451
add_explosion 91@ {y} 92@ {z} 93@ {type} ExplosionType.Grenade
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44623

:ZERO2_5473
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_5499
wait 0
goto @ZERO2_5473

:ZERO2_5499
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_5503
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_5529
wait 0
goto @ZERO2_5503

:ZERO2_5529
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_5546
if 
  get_fading_status 
goto_if_false @ZERO2_5570
wait 0
goto @ZERO2_5546

:ZERO2_5570
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_5599
if 
  get_fading_status 
goto_if_false @ZERO2_5623
wait 0
goto @ZERO2_5599

:ZERO2_5623
return 

:ZERO2_5625
if 
  not is_car_dead 46@(129@,5i)
goto_if_false @ZERO2_6560
if 
  103@(129@,5i) == 0
goto_if_false @ZERO2_6313
if or
  has_car_been_damaged_by_car 46@(129@,5i) {other} 34@
  has_car_been_damaged_by_weapon 46@(129@,5i) {weaponType} WeaponType.M4
goto_if_false @ZERO2_6313
103@(129@,5i) = 1
if or
  129@ == 2
  129@ == 1
goto_if_false @ZERO2_6021
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_6014
task_leave_car_and_flee 36@(129@,5i) {vehicle} 46@(129@,5i) {x} 83@ {y} 84@ {z} 85@
task_destroy_car 36@(129@,5i) {vehicle} 34@
if 
  129@ == 1
goto_if_false @ZERO2_5904
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44805

:ZERO2_5821
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_5847
wait 0
goto @ZERO2_5821

:ZERO2_5847
print_now 'ZER2_BB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_5867
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_5893
wait 0
goto @ZERO2_5867

:ZERO2_5893
clear_this_print 'ZER2_BB'

:ZERO2_5904
if 
  129@ == 2
goto_if_false @ZERO2_6014
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44804

:ZERO2_5931
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_5957
wait 0
goto @ZERO2_5931

:ZERO2_5957
print_now 'ZER2_BA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_5977
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_6003
wait 0
goto @ZERO2_5977

:ZERO2_6003
clear_this_print 'ZER2_BA'

:ZERO2_6014
goto @ZERO2_6102

:ZERO2_6021
if 
  not is_car_dead 46@(129@,5i)
goto_if_false @ZERO2_6102
if 
  not is_char_dead 36@(129@,5i)
goto_if_false @ZERO2_6102
if 
  129@ <> 4
goto_if_false @ZERO2_6102
task_car_drive_wander 36@(129@,5i) {vehicle} 46@(129@,5i) {speed} 12.0 {drivingMode} DrivingMode.PloughThrough

:ZERO2_6102
if or
  129@ == 3
  129@ == 0
goto_if_false @ZERO2_6203
if 
  not is_car_dead 34@
goto_if_false @ZERO2_6203
if 
  not is_char_dead 51@(129@,5i)
goto_if_false @ZERO2_6203
task_drive_by 51@(129@,5i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 1000.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100

:ZERO2_6203
if 
  129@ == 0
goto_if_false @ZERO2_6313
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44631

:ZERO2_6230
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_6256
wait 0
goto @ZERO2_6230

:ZERO2_6256
print_now 'ZER1_FH' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_6276
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_6302
wait 0
goto @ZERO2_6276

:ZERO2_6302
clear_this_print 'ZER1_FH'

:ZERO2_6313
if 
  119@ == 4
goto_if_false @ZERO2_6560
if 
  not is_car_dead 46@(129@,5i)
goto_if_false @ZERO2_6560
if 
  locate_car_3d 46@(129@,5i) {x} 83@ {y} 84@ {z} 85@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @ZERO2_6458
if 
  is_car_on_screen 46@(129@,5i)
goto_if_false @ZERO2_6458
if 
  98@ == 0
goto_if_false @ZERO2_6458
print 'ZER2_7' {time} 5000 {flag} 1
98@ = 1

:ZERO2_6458
if 
  locate_car_3d 46@(129@,5i) {x} 83@ {y} 84@ {z} 85@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @ZERO2_6560
if 
  is_car_on_screen 46@(129@,5i)
goto_if_false @ZERO2_6560
if 
  98@ == 1
goto_if_false @ZERO2_6560
print_help 'ZER2_30'
98@ = 2

:ZERO2_6560
goto @ZERO2_6901

:ZERO2_6567
101@ = 1
set_player_control $player1 {state} False
96@ = 0
print_now 'ZER2_8' {time} 5000 {flag} 1
clear_onscreen_counter $timer_time_limit_converted_int
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_6698
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_6668
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_6688

:ZERO2_6668
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_6688
set_char_heading $scplayer {heading} 90.0

:ZERO2_6698
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44622

:ZERO2_6723
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_6749
wait 0
goto @ZERO2_6723

:ZERO2_6749
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_6753
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_6805
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_6798
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_6798
goto @ZERO2_6753

:ZERO2_6805
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_6822
if 
  get_fading_status 
goto_if_false @ZERO2_6846
wait 0
goto @ZERO2_6822

:ZERO2_6846
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_6875
if 
  get_fading_status 
goto_if_false @ZERO2_6899
wait 0
goto @ZERO2_6875

:ZERO2_6899
return 

:ZERO2_6901
129@ += 1
goto @ZERO2_4397

:ZERO2_6915
if 
  111@ == 1
goto_if_false @ZERO2_7012
if 
  112@ == 1
goto_if_false @ZERO2_7012
if 
  113@ == 1
goto_if_false @ZERO2_7012
if 
  114@ == 1
goto_if_false @ZERO2_7012
if 
  115@ == 1
goto_if_false @ZERO2_7012
110@ = 1

:ZERO2_7012
goto @ZERO2_2890

:ZERO2_7019
96@ = 0
100@ = 0
116@ = 1
108@ = 0
128@ = add_blip_for_coord -2237.3101 {y} 140.08 {z} 57.23
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44816

:ZERO2_7076
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_7102
wait 0
goto @ZERO2_7076

:ZERO2_7102
print_now 'ZER2_EB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_7122
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_7148
wait 0
goto @ZERO2_7122

:ZERO2_7148
clear_this_print 'ZER2_EB'
print_now 'ZER2_41' {time} 5000 {flag} 1
return 

:ZERO2_7177
if 
  not is_car_dead 34@
goto_if_false @ZERO2_8352
62@ = get_car_speed 34@
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ZERO2_7262
sub_timed_val_from_float_lvar 59@ -=@ 20.0
set_lvar_float_to_lvar_float 61@ = 59@
div_float_lvar_by_float_lvar 61@ /= 60@
61@ *= 100.0
cset_var_int_to_lvar_float $timer_time_limit_converted_int =# 61@

:ZERO2_7262
if or
  is_int_lvar_equal_to_constant 58@ == 1
  is_int_lvar_equal_to_constant 58@ == 3
goto_if_false @ZERO2_7297
explode_car 34@
explode_car 34@

:ZERO2_7297
95@ = get_game_timer 
if 
  not locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_7381
91@, 92@, 93@ = get_car_coordinates 34@
set_lvar_int_to_lvar_int 94@ = 95@
94@ += 4000
117@ = 0

:ZERO2_7381
if 
  locate_car_3d 34@ {x} 91@ {y} 92@ {z} 93@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO2_7889
if 
  is_int_lvar_greater_than_int_lvar 95@ > 94@
goto_if_false @ZERO2_7889
if 
  119@ > 3
goto_if_false @ZERO2_7889
if 
  117@ == 0
goto_if_false @ZERO2_7496
print_help 'ZER2_4'
117@ = 1

:ZERO2_7496
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO2_7889
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_8' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_car_health 34@ {health} 1
clear_onscreen_counter $timer_time_limit_converted_int
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_7695
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_7665
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_7685

:ZERO2_7665
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_7685
set_char_heading $scplayer {heading} 90.0

:ZERO2_7695
add_explosion 91@ {y} 92@ {z} 93@ {type} ExplosionType.Grenade
explode_car 34@
explode_car 34@
explode_car 34@
explode_car 34@
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44623

:ZERO2_7737
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_7763
wait 0
goto @ZERO2_7737

:ZERO2_7763
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_7767
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_7793
wait 0
goto @ZERO2_7767

:ZERO2_7793
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_7810
if 
  get_fading_status 
goto_if_false @ZERO2_7834
wait 0
goto @ZERO2_7810

:ZERO2_7834
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_7863
if 
  get_fading_status 
goto_if_false @ZERO2_7887
wait 0
goto @ZERO2_7863

:ZERO2_7887
return 

:ZERO2_7889
if 
  locate_car_3d 34@ {x} -2237.3101 {y} 140.08 {z} 57.23 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @ZERO2_8345
set_player_control $player1 {state} False
96@ = 0
100@ = 1
116@ = 0
108@ = 0
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True
print_with_number_big 'M_PASS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
play_mission_passed_tune 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44818

:ZERO2_8026
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8052
wait 0
goto @ZERO2_8026

:ZERO2_8052
print_now 'ZER2_FB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8072
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8098
wait 0
goto @ZERO2_8072

:ZERO2_8098
clear_this_print 'ZER2_FB'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44819

:ZERO2_8118
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8144
wait 0
goto @ZERO2_8118

:ZERO2_8144
print_now 'ZER2_FC' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8164
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8190
wait 0
goto @ZERO2_8164

:ZERO2_8190
clear_this_print 'ZER2_FC'
remove_rc_buggy 
clear_onscreen_counter $timer_time_limit_converted_int
load_scene -2245.0259 {y} 126.895 {z} 34.3047
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_8314
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_8284
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_8304

:ZERO2_8284
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_8304
set_char_heading $scplayer {heading} 90.0

:ZERO2_8314
wait 1200

:ZERO2_8319
if 
  get_fading_status 
goto_if_false @ZERO2_8343
wait 0
goto @ZERO2_8319

:ZERO2_8343
return 

:ZERO2_8345
goto @ZERO2_8688

:ZERO2_8352
101@ = 1
set_player_control $player1 {state} False
96@ = 0
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
TIMERA = 0
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_8485
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_8455
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_8475

:ZERO2_8455
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_8475
set_char_heading $scplayer {heading} 90.0

:ZERO2_8485
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44622

:ZERO2_8494
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8520
wait 0
goto @ZERO2_8494

:ZERO2_8520
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8524
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8576
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_8569
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_8569
goto @ZERO2_8524

:ZERO2_8576
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_8593
if 
  get_fading_status 
goto_if_false @ZERO2_8617
wait 0
goto @ZERO2_8593

:ZERO2_8617
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_8646
if 
  get_fading_status 
goto_if_false @ZERO2_8670
wait 0
goto @ZERO2_8646

:ZERO2_8670
print_now 'ZER2_8' {time} 10000 {flag} 1
return 

:ZERO2_8688
if 
  122@ == 0
goto_if_false @ZERO2_8823
if 
  50 >= $timer_time_limit_converted_int
goto_if_false @ZERO2_8823
122@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44811

:ZERO2_8740
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8766
wait 0
goto @ZERO2_8740

:ZERO2_8766
print_now 'ZER2_DA' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8786
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8812
wait 0
goto @ZERO2_8786

:ZERO2_8812
clear_this_print 'ZER2_DA'

:ZERO2_8823
if 
  122@ == 1
goto_if_false @ZERO2_8958
if 
  20 >= $timer_time_limit_converted_int
goto_if_false @ZERO2_8958
122@ = 2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44812

:ZERO2_8875
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_8901
wait 0
goto @ZERO2_8875

:ZERO2_8901
print_now 'ZER2_DB' {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_8921
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_8947
wait 0
goto @ZERO2_8921

:ZERO2_8947
clear_this_print 'ZER2_DB'

:ZERO2_8958
if 
  0 >= $timer_time_limit_converted_int
goto_if_false @ZERO2_9382
if 
  not is_car_dead 34@
goto_if_false @ZERO2_9006
set_car_engine_on 34@ {state} False
set_car_heavy 34@ {state} True

:ZERO2_9006
TIMERA = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 1
set_player_control $player1 {state} False
print_now 'ZER2_42' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
TIMERA = 0
clear_onscreen_counter $timer_time_limit_converted_int
if 
  not is_char_dead $scplayer
goto_if_false @ZERO2_9195
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_9165
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
goto @ZERO2_9185

:ZERO2_9165
set_char_coordinates $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203

:ZERO2_9185
set_char_heading $scplayer {heading} 90.0

:ZERO2_9195
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44623

:ZERO2_9204
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @ZERO2_9230
wait 0
goto @ZERO2_9204

:ZERO2_9230
play_mission_audio MissionAudioSlot.Slot1

:ZERO2_9234
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @ZERO2_9286
wait 0
if 
  not is_car_dead 34@
goto_if_false @ZERO2_9279
set_car_forward_speed 34@ {forwardSpeed} 0.0

:ZERO2_9279
goto @ZERO2_9234

:ZERO2_9286
remove_rc_buggy 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:ZERO2_9303
if 
  get_fading_status 
goto_if_false @ZERO2_9327
wait 0
goto @ZERO2_9303

:ZERO2_9327
load_scene -2245.0259 {y} 126.895 {z} 34.3047
wait 1000
do_fade 1000 {direction} Fade.In

:ZERO2_9356
if 
  get_fading_status 
goto_if_false @ZERO2_9380
wait 0
goto @ZERO2_9356

:ZERO2_9380
return 

:ZERO2_9382
return 

:ZERO2_9384
clear_wanted_level $player1
register_mission_passed 'ZERO_2'
player_made_progress 1
$flag_zero_mission_counter += 1
return 

:ZERO2_9413
return 

:ZERO2_9415
disable_all_entry_exits False
camera_reset_new_scriptables 
display_car_names True
if 
  is_player_playing $player1
goto_if_false @ZERO2_9494
set_player_control $player1 {state} True
if 
  is_char_in_any_car $scplayer
goto_if_false @ZERO2_9494
warp_char_from_car_to_coord $scplayer {x} -2244.4441 {y} 136.8633 {z} 34.3203
set_char_heading $scplayer {heading} 90.0

:ZERO2_9494
$onmission = 0
set_police_ignore_player $player1 {state} False
if 
  not is_car_dead 35@
goto_if_false @ZERO2_9554
set_car_health 35@ {health} 300
set_load_collision_for_car_flag 35@ {state} True
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:ZERO2_9554
mark_car_as_no_longer_needed 35@
release_weather 
remove_blip 128@
delete_car 46@
delete_car 47@
delete_car 48@
delete_car 49@
delete_car 50@
delete_char 51@
delete_char 54@
remove_blip 123@
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 127@
remove_rc_buggy 
mark_model_as_no_longer_needed 459
mark_model_as_no_longer_needed 464
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 510
mark_model_as_no_longer_needed 468
unload_special_character 1
remove_char_elegantly 57@
clear_onscreen_counter $timer_time_limit_converted_int
$timer_mobile_start = get_game_timer 
clear_prints 
mission_has_finished 
return 

//-------------Mission 74---------------
// Originally: New Model Army

:ZERO4
script_name 'ZERO4'
gosub @ZERO4_47
if 
  has_deatharrest_been_executed 
goto_if_false @ZERO4_38
gosub @ZERO4_26437

:ZERO4_38
gosub @ZERO4_26462
terminate_this_script 

:ZERO4_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0

:ZERO4_133
wait 0
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @ZERO4_186
66@ += 1
if 
  66@ > 8
goto_if_false @ZERO4_184
66@ = 0

:ZERO4_184
clear_all_view_variables 

:ZERO4_186
if 
  66@ == 1
goto_if_false @ZERO4_396
set_var_int_to_lvar_int $ZERO4_view_debug = 34@
set_var_int_to_lvar_int $7425 = 35@
set_var_int_to_lvar_int $7426 = 62@
set_var_int_to_lvar_int $7427 = 64@
set_var_int_to_lvar_int $7428 = 63@
set_var_int_to_lvar_int $7429 = 65@
set_var_int_to_lvar_int $7430 = TIMERA
set_var_int_to_lvar_int $7431 = TIMERB
view_integer_variable $ZERO4_view_debug {_p2} "M_STAGE"
view_integer_variable $7425 {_p2} "M_GOALS"
view_integer_variable $7426 {_p2} "DIALOGUE_FLAG"
view_integer_variable $7427 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7428 {_p2} "HELP_FLAG"
view_integer_variable $7429 {_p2} "HELP_TIMER"
view_integer_variable $7430 {_p2} "TIMERA"
view_integer_variable $7431 {_p2} "TIMERB"

:ZERO4_396
if 
  66@ == 2
goto_if_false @ZERO4_659
set_var_int_to_lvar_int $ZERO4_view_debug = 110@
set_var_int_to_lvar_int $7425 = 111@
set_var_int_to_lvar_int $7426 = 112@
set_var_int_to_lvar_int $7427 = 113@
set_var_int_to_lvar_int $7428 = 115@
set_var_int_to_lvar_int $7429 = 116@
set_var_int_to_lvar_int $7430 = 117@
set_var_int_to_lvar_int $7431 = 118@
view_integer_variable $ZERO4_view_debug {_p2} "PCAR_PROGRESS"
view_integer_variable $7425 {_p2} "PCAR_LIVES_LEFT"
view_integer_variable $7426 {_p2} "FIRST_BRIDGE"
view_integer_variable $7427 {_p2} "SECOND_BRIDGE"
view_integer_variable $7428 {_p2} "FIRST_BRIDGE_LAID"
view_integer_variable $7429 {_p2} "SECOND_BRIDGE_LAID"
view_integer_variable $7430 {_p2} "FIRST_BRIDGE_PLANK"
view_integer_variable $7431 {_p2} "SECOND_BRIDGE_PLANK"

:ZERO4_659
if 
  66@ == 3
goto_if_false @ZERO4_916
set_var_int_to_lvar_int $ZERO4_view_debug = 119@
set_var_int_to_lvar_int $7425 = 120@
set_var_int_to_lvar_int $7426 = 121@
set_var_int_to_lvar_int $7427 = 122@
set_var_int_to_lvar_int $7428 = 123@
set_var_int_to_lvar_int $7429 = 102@
set_var_int_to_lvar_int $7430 = 103@
set_var_int_to_lvar_int $7431 = 124@
view_integer_variable $ZERO4_view_debug {_p2} "PCAR_IS_PAUSED"
view_integer_variable $7425 {_p2} "PCAR_IS_OBSTRUCTED"
view_integer_variable $7426 {_p2} "BOMB_IS_ARMED"
view_integer_variable $7427 {_p2} "HELI_IS_CARRYING"
view_integer_variable $7428 {_p2} "CIRCLE_IS_PRESSED"
view_integer_variable $7429 {_p2} "RC_BOMB_TIMER"
view_integer_variable $7430 {_p2} "PHELI_PICKUP_TIMER"
view_integer_variable $7431 {_p2} "OHELI_FLAG"

:ZERO4_916
if 
  66@ == 4
goto_if_false @ZERO4_1153
set_var_int_to_lvar_int $ZERO4_view_debug = 125@
set_var_int_to_lvar_int $7425 = 126@
set_var_int_to_lvar_int $7426 = 127@
set_var_int_to_lvar_int $7427 = 128@
set_var_int_to_lvar_int $7428 = 129@
set_var_int_to_lvar_int $7429 = 130@
set_var_int_to_lvar_int $7430 = 134@
set_var_int_to_var_int $7431 = $z4_pcar_health
view_integer_variable $ZERO4_view_debug {_p2} "OHELI_ROCK"
view_integer_variable $7425 {_p2} "OHELI_GOTO"
view_integer_variable $7426 {_p2} "PHELI_LIVES"
view_integer_variable $7427 {_p2} "OTANK_FLAG[0]"
view_integer_variable $7428 {_p2} "OTANK_FLAG[1]"
view_integer_variable $7429 {_p2} "OTANK_FLAG[2]"
view_integer_variable $7430 {_p2} "RESPAWNED_TANKS"
view_integer_variable $7431 {_p2} "Z4_PCAR_HEALTH"

:ZERO4_1153
if 
  66@ == 5
goto_if_false @ZERO4_1397
set_var_int_to_lvar_int $ZERO4_view_debug = 131@
set_var_int_to_lvar_int $7425 = 132@
set_var_int_to_lvar_int $7426 = 133@
set_var_int_to_lvar_int $7427 = 135@
set_var_int_to_lvar_int $7428 = 136@
set_var_int_to_lvar_int $7429 = 107@
set_var_int_to_lvar_int $7430 = 137@
set_var_int_to_lvar_int $7431 = 138@
view_integer_variable $ZERO4_view_debug {_p2} "OTANK_GOTO[0]"
view_integer_variable $7425 {_p2} "OTANK_GOTO[1]"
view_integer_variable $7426 {_p2} "OTANK_GOTO[2]"
view_integer_variable $7427 {_p2} "LAST_HEALTH"
view_integer_variable $7428 {_p2} "BANDIT_TAKING_DAMAGE"
view_integer_variable $7429 {_p2} "PCAR_TIMER"
view_integer_variable $7430 {_p2} "PCAR_HALTED"
view_integer_variable $7431 {_p2} "PCAR_R3_PRESSED"

:ZERO4_1397
if 
  66@ == 6
goto_if_false @ZERO4_1610
set_var_int_to_lvar_int $ZERO4_view_debug = 139@
set_var_int_to_lvar_int $7425 = 140@
set_var_int_to_lvar_int $7426 = 141@
set_var_int_to_lvar_int $7427 = 142@
set_var_int_to_var_int $7428 = $zero4_timer
set_var_int_to_lvar_int $7429 = 155@
set_var_int_to_lvar_int $7430 = 156@
view_integer_variable $ZERO4_view_debug {_p2} "OTANK_TARGET[0]"
view_integer_variable $7425 {_p2} "OTANK_TARGET[1]"
view_integer_variable $7426 {_p2} "OTANK_TARGET[2]"
view_integer_variable $7427 {_p2} "CARRIED_OBJECT"
view_integer_variable $7428 {_p2} "ZERO4_TIMER"
view_integer_variable $7429 {_p2} "GET_PLANK1"
view_integer_variable $7430 {_p2} "GET_PLANK2"

:ZERO4_1610
if 
  66@ == 7
goto_if_false @ZERO4_1891
set_var_int_to_lvar_int $ZERO4_view_debug = 159@
set_var_int_to_lvar_int $7425 = 160@
set_var_int_to_lvar_int $7426 = 161@
set_var_int_to_lvar_int $7427 = 162@
set_var_int_to_lvar_int $7428 = 163@
set_var_int_to_lvar_int $7429 = 164@
set_var_int_to_lvar_int $7430 = 165@
set_var_int_to_lvar_int $7431 = 166@
view_integer_variable $ZERO4_view_debug {_p2} "FIRST_PICKUP_HELP"
view_integer_variable $7425 {_p2} "FIRST_TIME_STUCK_AT_RIVER"
view_integer_variable $7426 {_p2} "PLANK_BLIP"
view_integer_variable $7427 {_p2} "STUCK_AT_RIVER_DIALOGUE"
view_integer_variable $7428 {_p2} "OBSTRUCT_AUDIO1"
view_integer_variable $7429 {_p2} "OBSTRUCT_AUDIO2"
view_integer_variable $7430 {_p2} "PLAY_FIRST_TIME_BLOCKED_AUDIO"
view_integer_variable $7431 {_p2} "BOMB_BLIP"

:ZERO4_1891
if 
  66@ == 8
goto_if_false @ZERO4_2083
set_var_int_to_lvar_int $ZERO4_view_debug = 167@
set_var_int_to_lvar_int $7425 = 168@
set_var_int_to_lvar_int $7426 = 169@
set_var_int_to_lvar_int $7427 = 170@
set_var_int_to_lvar_int $7428 = 171@
view_integer_variable $ZERO4_view_debug {_p2} "FIRST_TIME_TAKING_DAMAGE_FROM_TANK"
view_integer_variable $7425 {_p2} "BOMB_TANK_DIALOGUE"
view_integer_variable $7426 {_p2} "DEAD_DIALOGUE"
view_integer_variable $7427 {_p2} "NEARLY_DEAD_DIALOGUE"
view_integer_variable $7428 {_p2} "STUCK_AT_RIVER"

:ZERO4_2083
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @ZERO4_2105
38@ = 1

:ZERO4_2105
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @ZERO4_2134
gosub @ZERO4_24198
36@ = 1

:ZERO4_2134
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @ZERO4_2222
if 
  67@ == 0
goto_if_false @ZERO4_2197
67@ = 1
write_debug "LEVEL_PAUSED"
goto @ZERO4_2222

:ZERO4_2197
67@ = 0
write_debug "LEVEL_UNPAUSED"

:ZERO4_2222
if 
  67@ == 1
goto_if_false @ZERO4_2247
goto @ZERO4_23828

:ZERO4_2247
39@ += 1
if 
  39@ > 9
goto_if_false @ZERO4_2279
39@ = 0

:ZERO4_2279
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 102@ += 42@
add_int_lvar_to_int_lvar 103@ += 42@
add_int_lvar_to_int_lvar 104@ += 42@
add_int_lvar_to_int_lvar 105@ += 42@
add_int_lvar_to_int_lvar 106@ += 42@
add_int_lvar_to_int_lvar 107@ += 42@
add_int_lvar_to_int_lvar 108@ += 42@
add_int_lvar_to_int_lvar 109@ += 42@
if 
  34@ == 0
goto_if_false @ZERO4_6793
if 
  35@ == -1
goto_if_false @ZERO4_2701
68@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
69@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
70@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
77@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
142@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0
96@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
543@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0

:ZERO4_2701
110@ = 0
111@ = 0
112@ = 0
113@ = 0
115@ = 0
116@ = 0
117@ = -1
118@ = -1
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 99
129@ = 99
130@ = 99
131@ = 0
132@ = 0
133@ = 0
134@ = 0
$z4_pcar_health = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
155@ = 0
156@ = 0
43@ = 0

:ZERO4_2953
if 
  12 > 43@
goto_if_false @ZERO4_2996
143@(43@,12i) = 0
43@ += 1
goto @ZERO4_2953

:ZERO4_2996
157@ = 0
158@ = 0
76@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
542@ = 0
172@ = 0
173@ = -1115.1219
175@ = 1029.26
177@ = 1342.483
174@ = -1106.916
176@ = 1056.403
178@ = 1342.053
179@ = -1115.1219
181@ = 1029.26
183@ = 1342.483
180@ = -1098.931
182@ = 1070.193
184@ = 1341.467
185@ = -1115.1219
187@ = 1029.26
189@ = 342.4828
186@ = -1098.257
188@ = 1063.368
190@ = 1341.791
191@ = -975.6996
308@ = 1061.162
425@ = 1344.8
192@ = -978.6938
309@ = 1061.163
426@ = 1344.554
193@ = -981.6267
310@ = 1061.594
427@ = 1343.677
194@ = -984.4323
311@ = 1062.194
428@ = 1342.66
195@ = -987.3215
312@ = 1063.042
429@ = 1341.941
196@ = -990.1523
313@ = 1064.209
430@ = 1341.847
197@ = -992.064
314@ = 1066.6281
431@ = 1341.692
198@ = -994.1041
315@ = 1068.89
432@ = 1341.474
199@ = -996.1589
316@ = 1071.105
433@ = 1341.261
200@ = -998.0826
317@ = 1073.413
434@ = 1341.215
201@ = -1000.138
318@ = 1075.662
435@ = 1341.332
202@ = -1002.858
319@ = 1076.918
436@ = 1341.709
203@ = -1005.518
320@ = 1078.249
437@ = 1342.229
204@ = -1008.56
321@ = 1078.889
438@ = 1342.339
205@ = -1011.59
322@ = 1079.111
439@ = 1342.3459
206@ = -1014.66
323@ = 1079.339
440@ = 1342.318
207@ = -1017.696
324@ = 1079.674
441@ = 1342.458
208@ = -1020.666
325@ = 1080.433
442@ = 1342.718
209@ = -1023.609
326@ = 1081.364
443@ = 1342.59
210@ = -1026.4969
327@ = 1082.288
444@ = 1342.452
211@ = -1029.5341
328@ = 1082.446
445@ = 1342.314
212@ = -1031.7271
329@ = 1080.38
446@ = 1342.1689
213@ = -1031.45
330@ = 1077.3831
447@ = 1342.259
214@ = -1030.556
331@ = 1074.519
448@ = 1342.3669
215@ = -1028.476
332@ = 1072.276
449@ = 1342.547
216@ = -1026.12
333@ = 1070.452
450@ = 1342.934
217@ = -1023.345
334@ = 1069.297
451@ = 1342.8621
218@ = -1020.924
335@ = 1067.455
452@ = 1342.679
219@ = -1019.808
336@ = 1064.636
453@ = 1342.3669
220@ = -1019.498
337@ = 1061.604
454@ = 1342.15
221@ = -1020.352
338@ = 1058.707
455@ = 1342.0031
222@ = -1022.205
339@ = 1056.248
456@ = 1341.946
223@ = -1024.6541
340@ = 1054.396
457@ = 1342.0291
224@ = -1026.949
341@ = 1052.463
458@ = 1341.672
225@ = -1029.535
342@ = 1050.962
459@ = 1341.421
226@ = -1032.204
343@ = 1049.5389
460@ = 1341.3979
227@ = -1035.146
344@ = 1048.822
461@ = 1341.167
228@ = -1038.131
345@ = 1048.269
462@ = 1340.837
229@ = -1040.29
346@ = 1046.1639
463@ = 1340.975
230@ = -1042.149
347@ = 1043.761
464@ = 1341.278
231@ = -1043.827
348@ = 1041.252
465@ = 1341.3979
232@ = -1045.285
349@ = 1038.573
466@ = 1341.563
233@ = -1047.2419
350@ = 1036.283
467@ = 1341.951
234@ = -1049.558
351@ = 1034.348
468@ = 1342.022
235@ = -1052.5811
352@ = 1034.296
469@ = 1342.218
236@ = -1054.624
353@ = 1036.551
470@ = 1342.324
237@ = -1055.726
354@ = 1039.338
471@ = 1342.655
238@ = -1056.5909
355@ = 1042.222
472@ = 1343.016
239@ = -1057.64
356@ = 1045.126
473@ = 1343.071
240@ = -1058.8669
357@ = 1047.8831
474@ = 1343.278
241@ = -1059.9659
358@ = 1050.707
475@ = 1343.335
242@ = -1062.282
359@ = 1052.656
476@ = 1342.973
243@ = -1065.312
360@ = 1052.257
477@ = 1342.9871
244@ = -1067.413
361@ = 1050.103
478@ = 1343.338
245@ = -1069.6801
362@ = 1048.061
479@ = 1343.303
246@ = -1072.397
363@ = 1046.49
480@ = 1343.299
247@ = -1074.844
364@ = 1044.621
481@ = 1343.278
248@ = -1077.2791
365@ = 1042.863
482@ = 1343.309
249@ = -1080.09
366@ = 1041.396
483@ = 1343.312
250@ = -1082.901
367@ = 1039.968
484@ = 1343.1591
251@ = -1085.723
368@ = 1038.973
485@ = 1342.7469
252@ = -1088.693
369@ = 1038.244
486@ = 1342.491
253@ = -1091.744
370@ = 1038.05
487@ = 1342.389
254@ = -1094.634
371@ = 1038.856
488@ = 1342.213
255@ = -1096.468
372@ = 1041.286
489@ = 1342.353
256@ = -1095.897
373@ = 1044.239
490@ = 1342.386
257@ = -1094.407
374@ = 1046.863
491@ = 1342.303
258@ = -1092.616
375@ = 1049.353
492@ = 1342.144
259@ = -1090.795
376@ = 1051.8521
493@ = 1342.036
260@ = -1089.037
377@ = 1054.2889
494@ = 1341.924
261@ = -1087.131
378@ = 1056.6801
495@ = 1341.963
262@ = -1084.63
379@ = 1058.476
496@ = 1342.046
263@ = -1082.026
380@ = 1060.059
497@ = 1342.0699
264@ = -1079.6801
381@ = 1061.984
498@ = 1342.161
265@ = -1077.382
382@ = 1064.059
499@ = 1342.054
266@ = -1075.0229
383@ = 1066.061
500@ = 1341.9561
267@ = -1072.5439
384@ = 1067.771
501@ = 1341.676
268@ = -1069.934
385@ = 1069.4
502@ = 1341.464
269@ = -1067.392
386@ = 1071.067
503@ = 1340.9399
270@ = -1065.172
387@ = 1073.217
504@ = 1340.98
271@ = -1063.084
388@ = 1075.436
505@ = 1341.265
272@ = -1061.741
389@ = 1078.158
506@ = 1341.507
273@ = -1060.928
390@ = 1081.111
507@ = 1341.705
274@ = -1059.851
391@ = 1083.965
508@ = 1341.717
275@ = -1059.0959
392@ = 1086.929
509@ = 1341.7729
276@ = -1059.464
393@ = 1089.908
510@ = 1341.8879
277@ = -1061.656
394@ = 1092.006
511@ = 1342.118
278@ = -1064.4139
395@ = 1093.172
512@ = 1342.3781
279@ = -1067.396
396@ = 1093.724
513@ = 1342.255
280@ = -1070.3719
397@ = 1094.422
514@ = 1342.176
281@ = -1073.385
398@ = 1094.066
515@ = 1342.0389
282@ = -1075.899
399@ = 1092.264
516@ = 1342.026
283@ = -1078.33
400@ = 1090.476
517@ = 1341.8831
284@ = -1080.692
401@ = 1088.514
518@ = 1341.762
285@ = -1082.786
402@ = 1086.317
519@ = 1341.725
286@ = -1084.715
403@ = 1083.926
520@ = 1341.718
287@ = -1086.7111
404@ = 1081.678
521@ = 1341.657
288@ = -1088.739
405@ = 1079.458
522@ = 1341.739
289@ = -1090.599
406@ = 1077.074
523@ = 1341.7371
290@ = -1091.925
407@ = 1074.311
524@ = 1341.754
291@ = -1093.073
408@ = 1071.465
525@ = 1341.751
292@ = -1094.317
409@ = 1068.679
526@ = 1341.752
293@ = -1095.859
410@ = 1066.073
527@ = 1341.752
294@ = -1097.911
411@ = 1063.855
528@ = 1341.739
295@ = -1100.731
412@ = 1062.77
529@ = 1341.786
296@ = -1103.847
413@ = 1062.781
530@ = 1341.79
297@ = -1106.772
414@ = 1061.895
531@ = 1341.79
298@ = -1109.576
415@ = 1060.658
532@ = 1341.825
299@ = -1112.578
416@ = 1060.848
533@ = 1341.9
300@ = -1116.12
417@ = 1059.64
534@ = 1342.25
set_lvar_float_to_lvar_float 301@ = 300@
set_lvar_float_to_lvar_float 418@ = 417@
set_lvar_float_to_lvar_float 535@ = 534@
set_lvar_float_to_lvar_float 302@ = 300@
set_lvar_float_to_lvar_float 419@ = 417@
set_lvar_float_to_lvar_float 536@ = 534@
set_lvar_float_to_lvar_float 303@ = 300@
set_lvar_float_to_lvar_float 420@ = 417@
set_lvar_float_to_lvar_float 537@ = 534@
set_lvar_float_to_lvar_float 304@ = 300@
set_lvar_float_to_lvar_float 421@ = 417@
set_lvar_float_to_lvar_float 538@ = 534@
set_lvar_float_to_lvar_float 305@ = 300@
set_lvar_float_to_lvar_float 422@ = 417@
set_lvar_float_to_lvar_float 539@ = 534@
set_lvar_float_to_lvar_float 306@ = 300@
set_lvar_float_to_lvar_float 423@ = 417@
set_lvar_float_to_lvar_float 540@ = 534@
set_lvar_float_to_lvar_float 307@ = 300@
set_lvar_float_to_lvar_float 424@ = 417@
set_lvar_float_to_lvar_float 541@ = 534@
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
gosub @ZERO4_26379

:ZERO4_6793
if 
  34@ == 1
goto_if_false @ZERO4_9245
if 
  35@ == 0
goto_if_false @ZERO4_8237
load_mission_text 'ZERO4'
set_area_visible 6
load_cutscene 'ZERO_4'

:ZERO4_6855
if 
  not has_cutscene_loaded 
goto_if_false @ZERO4_6879
wait 0
goto @ZERO4_6855

:ZERO4_6879
start_cutscene 
do_fade 1000 {direction} Fade.In

:ZERO4_6888
if 
  not has_cutscene_finished 
goto_if_false @ZERO4_6912
wait 0
goto @ZERO4_6888

:ZERO4_6912
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:ZERO4_6927
if 
  get_fading_status 
goto_if_false @ZERO4_6951
wait 0
goto @ZERO4_6927

:ZERO4_6951
set_area_visible 0
set_player_control $player1 {state} False
hide_all_frontend_blips True
set_player_in_car_camera_mode 2
store_clock 
force_weather_now WeatherType.ExtraSunnySf
clear_wanted_level $player1
set_wanted_multiplier 0.1
request_model 441
request_model 501
request_model 481
request_model 564
load_all_models_now 

:ZERO4_7010
if or
  not has_model_loaded 441
  not has_model_loaded 501
  not has_model_loaded 481
  not has_model_loaded 564
goto_if_false @ZERO4_7052
wait 0
goto @ZERO4_7010

:ZERO4_7052
set_char_area_visible $scplayer {areaId} 10
clear_area -1004.097 {y} 1000.789 {z} 1349.749 {radius} 300.0 {clearParticles} True
69@ = create_car 481 {x} -1004.097 {y} 1000.789 {z} 1349.749
freeze_car_position 69@ {state} True
warp_char_into_car $scplayer {vehicle} 69@
lock_car_doors 69@ {lockStatus} CarLock.LockedPlayerInside
set_vehicle_area_visible 69@ {interiorId} 10
68@ = create_car 441 {x} -975.6997 {y} 1061.162 {z} 1344.8
set_car_heading 68@ {heading} 90.0
set_vehicle_area_visible 68@ {interiorId} 10
set_car_proofs 68@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 68@ {health} 2000
70@ = create_car 501 {x} -973.759 {y} 1077.152 {z} 1350.399
set_car_heading 70@ {heading} 90.0
set_vehicle_area_visible 70@ {interiorId} 10
94@ = create_object #MINI_MAGNET {x} -973.759 {y} 1077.152 {z} 1344.399
attach_object_to_car 94@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_collision 94@ {state} True
freeze_car_position 70@ {state} True
set_car_coordinates 70@ {x} -973.759 {y} 1077.152 {z} 1346.399
set_heli_blades_full_speed 70@
heli_goto_coords 70@ {x} -973.759 {y} 1077.152 {z} 1344.399 {minAltitude} 344.0 {maxAltitude} 3.0
71@ = create_car 501 {x} -1131.694 {y} 1041.791 {z} 1350.141
set_car_heading 71@ {heading} 270.0
set_vehicle_area_visible 71@ {interiorId} 10
98@ = add_blip_for_car 71@
set_blip_as_friendly 98@ {state} False
change_blip_display 98@ {display} BlipDisplay.BlipOnly
change_blip_scale 98@ {size} 2
95@ = create_object #MINI_MAGNET {x} -973.759 {y} 1077.152 {z} 1344.399
attach_object_to_car 95@ {handle} 71@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_collision 95@ {state} True
set_heli_blades_full_speed 71@
heli_goto_coords 71@ {x} -1131.694 {y} 1041.791 {z} 1344.141 {minAltitude} 344.0 {maxAltitude} 3.0
77@ = create_object_no_offset #BARREL2 {x} -1007.213 {y} 1078.535 {z} 1342.682
78@ = create_object_no_offset #BARREL2 {x} -1093.137 {y} 1037.856 {z} 1342.7321
79@ = create_object_no_offset #BARREL2 {x} -1073.4659 {y} 1094.407 {z} 1342.322
set_object_rotation 77@ {x} 0.0 {y} 90.0 {z} 0.0
set_object_rotation 78@ {x} 0.0 {y} 90.0 {z} 0.0
set_object_rotation 79@ {x} 0.0 {y} 90.0 {z} 0.0
87@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1064.0 {z} 1344.147
88@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1065.0 {z} 1344.146
89@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1066.0 {z} 1344.144
90@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1067.0 {z} 1344.1429
91@ = create_object_no_offset #KMB_PLANK {x} -973.0 {y} 1068.0 {z} 1344.142
set_object_heading 87@ {heading} 270.0
set_object_heading 88@ {heading} 270.0
set_object_heading 89@ {heading} 270.0
set_object_heading 90@ {heading} 270.0
set_object_heading 91@ {heading} 270.0
92@ = create_object_no_offset #RCBOMB {x} -974.5125 {y} 1072.045 {z} 1344.298
set_object_heading 92@ {heading} 90.0
72@ = create_car 564 {x} -1076.873 {y} 1046.542 {z} 1343.365
73@ = create_car 564 {x} -1073.193 {y} 1070.426 {z} 1341.375
74@ = create_car 564 {x} -1106.479 {y} 1060.975 {z} 1341.864
set_car_heading 72@ {heading} 286.4071
set_car_heading 73@ {heading} 145.4881
set_car_heading 74@ {heading} 278.5302
99@ = add_blip_for_car 72@
100@ = add_blip_for_car 73@
101@ = add_blip_for_car 74@
change_blip_display 99@ {display} BlipDisplay.BlipOnly
change_blip_display 100@ {display} BlipDisplay.BlipOnly
change_blip_display 101@ {display} BlipDisplay.BlipOnly
set_vehicle_area_visible 72@ {interiorId} 10
set_vehicle_area_visible 73@ {interiorId} 10
set_vehicle_area_visible 74@ {interiorId} 10
change_blip_scale 99@ {size} 2
change_blip_scale 100@ {size} 2
change_blip_scale 101@ {size} 2
set_area_visible 10
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
enable_crane_controls False {down} False {release} False
display_hud False
display_radar True
set_radar_zoom 100
load_scene -975.6997 {y} 1061.162 {z} 344.7998
switch_widescreen True
set_fixed_camera_position -987.9526 {y} 1099.303 {z} 1352.45 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -987.5282 {y} 1098.519 {z} 1351.9969 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:ZERO4_8170
if 
  get_fading_status 
goto_if_false @ZERO4_8194
wait 0
goto @ZERO4_8170

:ZERO4_8194
TIMERA = 0
TIMERB = 0
62@ = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
$audio_line_is_active = 0
35@ += 1

:ZERO4_8237
if 
  35@ > 0
goto_if_false @ZERO4_8728
if 
  TIMERB > 1000
goto_if_false @ZERO4_8728
if 
  $audio_line_is_active == 0
goto_if_false @ZERO4_8728
switch_start 62@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_8714 {caseNum1} 0 {caseLabel1} @ZERO4_8355 {caseNum2} 1 {caseLabel2} @ZERO4_8417 {caseNum3} 2 {caseLabel3} @ZERO4_8479 {caseNum4} 3 {caseLabel4} @ZERO4_8541 {caseNum5} 4 {caseLabel5} @ZERO4_8603 {caseNum6} 5 {caseLabel6} @ZERO4_8665 {caseNum7} -1 {caseLabel7} @ZERO4_8714

:ZERO4_8355
set_var_text_label s$audio_string = 'ZER4_AA'
set_var_int_to_constant $audio_sound_file = 45200
start_new_script @AUDIOL -1 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 45201
goto @ZERO4_8714

:ZERO4_8417
set_var_text_label s$audio_string = 'ZER4_AB'
set_var_int_to_constant $audio_sound_file = 45201
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 45202
goto @ZERO4_8714

:ZERO4_8479
set_var_text_label s$audio_string = 'ZER4_AC'
set_var_int_to_constant $audio_sound_file = 45202
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 45203
goto @ZERO4_8714

:ZERO4_8541
set_var_text_label s$audio_string = 'ZER4_AD'
set_var_int_to_constant $audio_sound_file = 45203
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 45204
goto @ZERO4_8714

:ZERO4_8603
set_var_text_label s$audio_string = 'ZER4_AE'
set_var_int_to_constant $audio_sound_file = 45204
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 45205
goto @ZERO4_8714

:ZERO4_8665
set_var_text_label s$audio_string = 'ZER4_AF'
set_var_int_to_constant $audio_sound_file = 45205
start_new_script @AUDIOL -1 0 1 2 1 
goto @ZERO4_8714

:ZERO4_8714
62@ += 1
TIMERB = 0

:ZERO4_8728
if 
  35@ == 1
goto_if_false @ZERO4_8840
if 
  TIMERA > 4000
goto_if_false @ZERO4_8840
set_interpolation_parameters 0.0 {time} 7000
set_fixed_camera_position -982.6354 {y} 1055.88 {z} 1348.926 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -981.919 {y} 1056.504 {z} 1348.614 {switchStyle} SwitchType.JumpCut
TIMERA = 0
35@ += 1

:ZERO4_8840
if 
  35@ == 2
goto_if_false @ZERO4_8952
if 
  TIMERA > 2000
goto_if_false @ZERO4_8952
set_interpolation_parameters 0.0 {time} 10000
set_fixed_camera_position -1137.938 {y} 1058.032 {z} 1355.257 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1136.989 {y} 1058.099 {z} 1354.947 {switchStyle} SwitchType.Interpolation
TIMERA = 0
35@ += 1

:ZERO4_8952
if 
  35@ == 3
goto_if_false @ZERO4_9002
if and
  62@ > 6
  $audio_line_is_active == 0
goto_if_false @ZERO4_9002
35@ = 99

:ZERO4_9002
if 
  35@ > 0
goto_if_false @ZERO4_9044
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ZERO4_9044
35@ = 99

:ZERO4_9044
if 
  35@ == 99
goto_if_false @ZERO4_9245
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_interpolation_parameters 50.0 {time} 500
clear_prints 
set_fixed_camera_position -968.2972 {y} 1077.413 {z} 1346.686 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -969.2341 {y} 1077.368 {z} 1346.339 {switchStyle} SwitchType.JumpCut
switch_widescreen False
clear_prints 
set_player_control $player1 {state} True
if 
  not is_car_dead 70@
goto_if_false @ZERO4_9207
freeze_car_position 70@ {state} False
set_car_coordinates 70@ {x} -973.759 {y} 1077.152 {z} 1349.399
set_car_heading 70@ {heading} 90.0

:ZERO4_9207
if 
  not is_car_dead 71@
goto_if_false @ZERO4_9230
freeze_car_position 71@ {state} False

:ZERO4_9230
wait 0
set_camera_behind_player 
restore_camera_jumpcut 
gosub @ZERO4_26379

:ZERO4_9245
if 
  34@ == 2
goto_if_false @ZERO4_23828
if 
  35@ == 0
goto_if_false @ZERO4_9505
if 
  not is_car_dead 68@
goto_if_false @ZERO4_9319
97@ = add_blip_for_car 68@
set_blip_as_friendly 97@ {state} True
change_blip_scale 97@ {size} 2

:ZERO4_9319
if 
  not is_car_dead 70@
goto_if_false @ZERO4_9343
take_remote_control_of_car $player1 {vehicle} 70@

:ZERO4_9343
set_enable_rc_detonate False
set_enable_rc_detonate_on_contact False
request_car_recording 521

:ZERO4_9356
if 
  not has_car_recording_been_loaded 521
goto_if_false @ZERO4_9383
wait 0
goto @ZERO4_9356

:ZERO4_9383
if 
  not is_car_dead 68@
goto_if_false @ZERO4_9417
start_playback_recorded_car 68@ {path} 521
set_playback_speed 68@ {speed} 0.5

:ZERO4_9417
110@ = 0
111@ = 3
127@ = 3
$zero4_timer = 480000
display_onscreen_timer_with_string $zero4_timer {direction} TimerDirection.Down {text} 'Z4_M11'
display_nth_onscreen_counter_with_string $z4_pcar_health {display} CounterDisplay.Bar {slot} 1 {text} 'Z4_M06'
65@ = -1000
64@ = 10000
35@ += 1

:ZERO4_9505
if 
  35@ == 1
goto_if_false @ZERO4_23803
remove_oil_puddles_in_area -963.0789 {leftBottomY} 1006.747 {rightTopX} -1152.824 {rightTopY} 1105.155
if 
  not has_car_recording_been_loaded 521
goto_if_false @ZERO4_9573
request_car_recording 521
goto @ZERO4_23803

:ZERO4_9573
set_time_of_day 0 {minutes} 30
43@ = 0

:ZERO4_9586
if 
  10 > 43@
goto_if_false @ZERO4_9686
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_9672
$x, $y, $z = get_object_coordinates 77@(43@,10i)
if 
  1335.0 > $z
goto_if_false @ZERO4_9672
delete_object 77@(43@,10i)

:ZERO4_9672
43@ += 1
goto @ZERO4_9586

:ZERO4_9686
43@ = 0

:ZERO4_9693
if 
  5 > 43@
goto_if_false @ZERO4_9822
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_9808
$x, $y, $z = get_object_coordinates 87@(43@,5i)
if 
  1335.0 > $z
goto_if_false @ZERO4_9808
set_object_coordinates 87@(43@,5i) {x} -973.0 {y} 1064.0 {z} 1345.147
set_object_heading 87@(43@,5i) {heading} 270.0

:ZERO4_9808
43@ += 1
goto @ZERO4_9693

:ZERO4_9822
43@ = 0

:ZERO4_9829
if 
  3 > 43@
goto_if_false @ZERO4_9949
if 
  does_vehicle_exist 72@(43@,3i)
goto_if_false @ZERO4_9935
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_9935
$x, $y, $z = get_car_coordinates 72@(43@,3i)
if 
  1335.0 > $z
goto_if_false @ZERO4_9935
explode_car 72@(43@,3i)

:ZERO4_9935
43@ += 1
goto @ZERO4_9829

:ZERO4_9949
if 
  does_object_exist 92@
goto_if_false @ZERO4_10005
$x, $y, $z = get_object_coordinates 92@
if 
  1335.0 > $z
goto_if_false @ZERO4_10005
delete_object 92@

:ZERO4_10005
if and
  159@ == 0
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_10450
if 
  not is_car_dead 70@
goto_if_false @ZERO4_10450
$x, $y, $z = get_offset_from_car_in_world_coords 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0
43@ = 0

:ZERO4_10079
if 
  10 > 43@
goto_if_false @ZERO4_10204
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_10190
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_10190
clear_help 
print_help 'Z4_H13'
159@ += 1
43@ = 10

:ZERO4_10190
43@ += 1
goto @ZERO4_10079

:ZERO4_10204
if 
  159@ == 0
goto_if_false @ZERO4_10354
43@ = 0

:ZERO4_10229
if 
  5 > 43@
goto_if_false @ZERO4_10354
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_10340
if 
  locate_object_3d 87@(43@,5i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_10340
clear_help 
print_help 'Z4_H13'
159@ += 1
43@ = 5

:ZERO4_10340
43@ += 1
goto @ZERO4_10229

:ZERO4_10354
if 
  159@ == 0
goto_if_false @ZERO4_10450
if 
  does_object_exist 92@
goto_if_false @ZERO4_10450
if 
  locate_object_3d 92@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_10450
clear_help 
print_help 'Z4_H13'
159@ += 1

:ZERO4_10450
if and
  159@ == 1
  not is_message_being_displayed 
goto_if_false @ZERO4_10506
if 
  142@ <> 0
goto_if_false @ZERO4_10506
159@ += 1
print_help 'Z4_H14'

:ZERO4_10506
if and
  143@ == 0
  65@ > 1000
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_10561
print_help 'Z4_H1'
65@ = 0
143@ += 1

:ZERO4_10561
if and
  143@ == 1
  65@ > 1000
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  110@ > 18
goto_if_false @ZERO4_10623
print_help 'Z4_H4'
65@ = 0
143@ += 1

:ZERO4_10623
if and
  65@ > 1000
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_10901
switch_start 542@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_10901 {caseNum1} 0 {caseLabel1} @ZERO4_10709 {caseNum2} 1 {caseLabel2} @ZERO4_10741 {caseNum3} 2 {caseLabel3} @ZERO4_10773 {caseNum4} 3 {caseLabel4} @ZERO4_10805 {caseNum5} 4 {caseLabel5} @ZERO4_10837 {caseNum6} 5 {caseLabel6} @ZERO4_10869 {caseNum7} -1 {caseLabel7} @ZERO4_10901

:ZERO4_10709
print_help 'Z4_H17'
65@ = 0
542@ += 1
goto @ZERO4_10901

:ZERO4_10741
print_help 'Z4_H18'
65@ = 0
542@ += 1
goto @ZERO4_10901

:ZERO4_10773
print_help 'Z4_H19'
65@ = 0
542@ += 1
goto @ZERO4_10901

:ZERO4_10805
print_help 'Z4_H20'
65@ = 0
542@ += 1
goto @ZERO4_10901

:ZERO4_10837
print_help 'Z4_H21'
65@ = 0
542@ += 1
goto @ZERO4_10901

:ZERO4_10869
print_help 'Z4_H22'
65@ = 0
542@ += 1
goto @ZERO4_10901

:ZERO4_10901
if 
  120@ <> 0
goto_if_false @ZERO4_10962
if 
  157@ == 1
goto_if_false @ZERO4_10962
if 
  165@ == 0
goto_if_false @ZERO4_10962
165@ += 1

:ZERO4_10962
if and
  165@ == 1
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @ZERO4_11406
if 
  165@ == 0
goto_if_false @ZERO4_11204
if 
  64@ > 1000
goto_if_false @ZERO4_11204
163@ = generate_random_int_in_range 0 {max} 3
164@ = generate_random_int_in_range 0 {max} 3
if 
  163@ == 0
goto_if_false @ZERO4_11088
set_var_text_label s$audio_string = 'ZER4_BA'
set_var_int_to_constant $audio_sound_file = 45206

:ZERO4_11088
if 
  163@ == 1
goto_if_false @ZERO4_11130
set_var_text_label s$audio_string = 'ZER4_BB'
set_var_int_to_constant $audio_sound_file = 45207

:ZERO4_11130
if 
  163@ == 2
goto_if_false @ZERO4_11172
set_var_text_label s$audio_string = 'ZER4_BC'
set_var_int_to_constant $audio_sound_file = 45208

:ZERO4_11172
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
165@ += 1

:ZERO4_11204
if 
  165@ == 1
goto_if_false @ZERO4_11406
if 
  64@ > 1000
goto_if_false @ZERO4_11406
if 
  163@ == 0
goto_if_false @ZERO4_11283
set_var_text_label s$audio_string = 'ZER4_CA'
set_var_int_to_constant $audio_sound_file = 45209

:ZERO4_11283
if 
  163@ == 1
goto_if_false @ZERO4_11325
set_var_text_label s$audio_string = 'ZER4_CB'
set_var_int_to_constant $audio_sound_file = 45210

:ZERO4_11325
if 
  163@ == 2
goto_if_false @ZERO4_11367
set_var_text_label s$audio_string = 'ZER4_CC'
set_var_int_to_constant $audio_sound_file = 45211

:ZERO4_11367
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
165@ += 1
163@ = 0

:ZERO4_11406
if and
  165@ == 2
  120@ <> 0
goto_if_false @ZERO4_11490
if 
  64@ > 1000
goto_if_false @ZERO4_11490
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_11490
print_help 'Z4_H5'
165@ += 1
64@ = 0

:ZERO4_11490
if 
  165@ == 3
goto_if_false @ZERO4_11838
if and
  120@ == 1
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  64@ > 10000
  $audio_line_is_active == 0
goto_if_false @ZERO4_11838
if 
  157@ == 1
goto_if_false @ZERO4_11838
163@ += 1
if 
  163@ > 4
goto_if_false @ZERO4_11595
163@ = 0

:ZERO4_11595
switch_start 163@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @ZERO4_11813 {caseNum1} 0 {caseLabel1} @ZERO4_11658 {caseNum2} 1 {caseLabel2} @ZERO4_11689 {caseNum3} 2 {caseLabel3} @ZERO4_11720 {caseNum4} 3 {caseLabel4} @ZERO4_11751 {caseNum5} 4 {caseLabel5} @ZERO4_11782 {caseNum6} -1 {caseLabel6} @ZERO4_11813 {caseNum7} -1 {caseLabel7} @ZERO4_11813

:ZERO4_11658
set_var_text_label s$audio_string = 'ZER4_DA'
set_var_int_to_constant $audio_sound_file = 45212
goto @ZERO4_11813

:ZERO4_11689
set_var_text_label s$audio_string = 'ZER4_DB'
set_var_int_to_constant $audio_sound_file = 45213
goto @ZERO4_11813

:ZERO4_11720
set_var_text_label s$audio_string = 'ZER4_DC'
set_var_int_to_constant $audio_sound_file = 45214
goto @ZERO4_11813

:ZERO4_11751
set_var_text_label s$audio_string = 'ZER4_DD'
set_var_int_to_constant $audio_sound_file = 45215
goto @ZERO4_11813

:ZERO4_11782
set_var_text_label s$audio_string = 'ZER4_DE'
set_var_int_to_constant $audio_sound_file = 45216
goto @ZERO4_11813

:ZERO4_11813
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_11838
if 
  172@ == 0
goto_if_false @ZERO4_11889
if and
  is_car_dead 72@
  is_car_dead 73@
  is_car_dead 74@
goto_if_false @ZERO4_11889
172@ = 1

:ZERO4_11889
if 
  172@ == 0
goto_if_false @ZERO4_12930
if 
  110@ > 42
goto_if_false @ZERO4_12040
if 
  167@ == 0
goto_if_false @ZERO4_12040
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @ZERO4_12040
if 
  64@ > 1000
goto_if_false @ZERO4_12040
set_var_text_label s$audio_string = 'ZER4_EA'
set_var_int_to_constant $audio_sound_file = 45217
start_new_script @AUDIOL -1 0 1 1 0 
167@ += 1
64@ = 0

:ZERO4_12040
if 
  167@ == 1
goto_if_false @ZERO4_12155
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
goto_if_false @ZERO4_12155
if 
  64@ > 1000
goto_if_false @ZERO4_12155
set_var_text_label s$audio_string = 'ZER4_EB'
set_var_int_to_constant $audio_sound_file = 45218
start_new_script @AUDIOL -1 0 1 1 0 
167@ += 1
64@ = 0

:ZERO4_12155
if 
  167@ == 2
goto_if_false @ZERO4_12296
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_12296
if 
  549@ == 0
goto_if_false @ZERO4_12289
print_now 'Z4_M26' {time} 7000 {flag} 1
if 
  does_object_exist 92@
goto_if_false @ZERO4_12282
166@ = add_blip_for_object 92@
set_blip_as_friendly 166@ {state} True
167@ += 1
64@ = 0

:ZERO4_12282
goto @ZERO4_12296

:ZERO4_12289
167@ += 1

:ZERO4_12296
if 
  167@ == 3
goto_if_false @ZERO4_12406
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_12406
if 
  549@ <> 0
goto_if_false @ZERO4_12406
if 
  does_blip_exist 166@
goto_if_false @ZERO4_12383
remove_blip 166@

:ZERO4_12383
print_now 'Z4_M27' {time} 7000 {flag} 1
167@ += 1

:ZERO4_12406
if 
  167@ == 4
goto_if_false @ZERO4_12471
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  549@ == 0
goto_if_false @ZERO4_12471
print_help 'Z4_H11'
167@ += 1
64@ = 0

:ZERO4_12471
if 
  167@ == 5
goto_if_false @ZERO4_12923
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  64@ > 10000
  $audio_line_is_active == 0
  545@ == 1
goto_if_false @ZERO4_12923
168@ += 1
if 
  168@ > 5
goto_if_false @ZERO4_12558
168@ = 0

:ZERO4_12558
43@ = 0

:ZERO4_12565
if 
  3 > 43@
goto_if_false @ZERO4_12624
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_12610
43@ = 99

:ZERO4_12610
43@ += 1
goto @ZERO4_12565

:ZERO4_12624
if 
  43@ == 99
goto_if_false @ZERO4_12916
switch_start 168@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @ZERO4_12891 {caseNum1} 0 {caseLabel1} @ZERO4_12705 {caseNum2} 1 {caseLabel2} @ZERO4_12736 {caseNum3} 2 {caseLabel3} @ZERO4_12767 {caseNum4} 3 {caseLabel4} @ZERO4_12798 {caseNum5} 4 {caseLabel5} @ZERO4_12829 {caseNum6} 5 {caseLabel6} @ZERO4_12860 {caseNum7} -1 {caseLabel7} @ZERO4_12891

:ZERO4_12705
set_var_text_label s$audio_string = 'ZER4_FA'
set_var_int_to_constant $audio_sound_file = 45219
goto @ZERO4_12891

:ZERO4_12736
set_var_text_label s$audio_string = 'ZER4_FB'
set_var_int_to_constant $audio_sound_file = 45220
goto @ZERO4_12891

:ZERO4_12767
set_var_text_label s$audio_string = 'ZER4_FC'
set_var_int_to_constant $audio_sound_file = 45221
goto @ZERO4_12891

:ZERO4_12798
set_var_text_label s$audio_string = 'ZER4_FD'
set_var_int_to_constant $audio_sound_file = 45222
goto @ZERO4_12891

:ZERO4_12829
set_var_text_label s$audio_string = 'ZER4_FE'
set_var_int_to_constant $audio_sound_file = 45223
goto @ZERO4_12891

:ZERO4_12860
set_var_text_label s$audio_string = 'ZER4_FF'
set_var_int_to_constant $audio_sound_file = 45224
goto @ZERO4_12891

:ZERO4_12891
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_12916
545@ = 0

:ZERO4_12923
goto @ZERO4_12951

:ZERO4_12930
if 
  does_blip_exist 166@
goto_if_false @ZERO4_12951
remove_blip 166@

:ZERO4_12951
if 
  does_blip_exist 166@
goto_if_false @ZERO4_12988
if 
  is_object_attached 92@
goto_if_false @ZERO4_12988
remove_blip 166@

:ZERO4_12988
if 
  171@ == 1
goto_if_false @ZERO4_13110
if 
  160@ == 0
goto_if_false @ZERO4_13110
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_13110
set_var_text_label s$audio_string = 'ZER4_GA'
set_var_int_to_constant $audio_sound_file = 45225
start_new_script @AUDIOL -1 0 1 1 0 
160@ += 1
64@ = 0

:ZERO4_13110
if 
  160@ == 1
goto_if_false @ZERO4_13248
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
goto_if_false @ZERO4_13248
if 
  171@ == 1
goto_if_false @ZERO4_13234
if 
  548@ <> 1
goto_if_false @ZERO4_13234
print_now 'Z4_M28' {time} 7000 {flag} 1
if 
  does_object_exist 89@
goto_if_false @ZERO4_13234
161@ = add_blip_for_object 89@

:ZERO4_13234
160@ += 1
64@ = 0

:ZERO4_13248
if 
  160@ == 2
goto_if_false @ZERO4_13372
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  $audio_line_is_active == 0
  64@ > 1000
  548@ == 1
goto_if_false @ZERO4_13372
if 
  171@ == 1
goto_if_false @ZERO4_13337
print_now 'Z4_M29' {time} 7000 {flag} 1

:ZERO4_13337
if 
  does_blip_exist 161@
goto_if_false @ZERO4_13358
remove_blip 161@

:ZERO4_13358
160@ += 1
64@ = 0

:ZERO4_13372
if and
  160@ == 3
  171@ == 1
  $audio_line_is_active == 0
  64@ > 10000
goto_if_false @ZERO4_13640
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
goto_if_false @ZERO4_13640
162@ += 1
if 
  162@ > 2
goto_if_false @ZERO4_13459
162@ = 0

:ZERO4_13459
switch_start 162@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_13615 {caseNum1} 0 {caseLabel1} @ZERO4_13522 {caseNum2} 1 {caseLabel2} @ZERO4_13553 {caseNum3} 2 {caseLabel3} @ZERO4_13584 {caseNum4} -1 {caseLabel4} @ZERO4_13615 {caseNum5} -1 {caseLabel5} @ZERO4_13615 {caseNum6} -1 {caseLabel6} @ZERO4_13615 {caseNum7} -1 {caseLabel7} @ZERO4_13615

:ZERO4_13522
set_var_text_label s$audio_string = 'ZER4_HA'
set_var_int_to_constant $audio_sound_file = 45226
goto @ZERO4_13615

:ZERO4_13553
set_var_text_label s$audio_string = 'ZER4_HB'
set_var_int_to_constant $audio_sound_file = 45227
goto @ZERO4_13615

:ZERO4_13584
set_var_text_label s$audio_string = 'ZER4_HC'
set_var_int_to_constant $audio_sound_file = 45228
goto @ZERO4_13615

:ZERO4_13615
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_13640
if 
  not is_car_dead 68@
goto_if_false @ZERO4_14137
43@ = get_car_health 68@
if 
  1400 > 43@
goto_if_false @ZERO4_14137
if and
  not is_message_being_displayed 
  not is_help_message_being_displayed 
  64@ > 10000
  $audio_line_is_active == 0
goto_if_false @ZERO4_14137
$x, $y, $z = get_car_coordinates 68@
set_lvar_float_to_var_float 56@ = $x
56@ -= 5.0
set_lvar_float_to_var_float 57@ = $y
57@ -= 5.0
set_lvar_float_to_var_float 58@ = $z
58@ -= 5.0
set_lvar_float_to_var_float 59@ = $x
59@ += 5.0
set_lvar_float_to_var_float 60@ = $y
60@ += 5.0
set_lvar_float_to_var_float 61@ = $z
61@ += 5.0
if 
  not is_explosion_in_area ExplosionType.Small {leftBottomX} 56@ {leftBottomY} 57@ {leftBottomZ} 58@ {rightTopX} 59@ {rightTopY} 60@ {rightTopZ} 61@
goto_if_false @ZERO4_14088
170@ += 1
if 
  170@ > 2
goto_if_false @ZERO4_13900
170@ = 0

:ZERO4_13900
switch_start 170@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_14056 {caseNum1} 0 {caseLabel1} @ZERO4_13963 {caseNum2} 1 {caseLabel2} @ZERO4_13994 {caseNum3} 2 {caseLabel3} @ZERO4_14025 {caseNum4} -1 {caseLabel4} @ZERO4_14056 {caseNum5} -1 {caseLabel5} @ZERO4_14056 {caseNum6} -1 {caseLabel6} @ZERO4_14056 {caseNum7} -1 {caseLabel7} @ZERO4_14056

:ZERO4_13963
set_var_text_label s$audio_string = 'ZER4_KA'
set_var_int_to_constant $audio_sound_file = 45235
goto @ZERO4_14056

:ZERO4_13994
set_var_text_label s$audio_string = 'ZER4_KB'
set_var_int_to_constant $audio_sound_file = 45236
goto @ZERO4_14056

:ZERO4_14025
set_var_text_label s$audio_string = 'ZER4_KC'
set_var_int_to_constant $audio_sound_file = 45237
goto @ZERO4_14056

:ZERO4_14056
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0
goto @ZERO4_14137

:ZERO4_14088
set_var_text_label s$audio_string = 'ZER4_LC'
set_var_int_to_constant $audio_sound_file = 45240
start_new_script @AUDIOL -1 0 1 1 0 
64@ = 0

:ZERO4_14137
if and
  149@ == 99
  150@ == 0
goto_if_false @ZERO4_14207
if 
  111@ == 3
goto_if_false @ZERO4_14207
clear_help 
print_help 'Z4_H12'
150@ += 1
65@ = 0

:ZERO4_14207
if 
  150@ == 1
goto_if_false @ZERO4_14232
150@ = 99

:ZERO4_14232
if 
  is_car_dead 70@
goto_if_false @ZERO4_14546
if 
  122@ == 1
goto_if_false @ZERO4_14445
if 
  does_object_exist 142@
goto_if_false @ZERO4_14379
detach_object 142@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
if 
  is_int_lvar_equal_to_int_lvar 142@ == 92@
goto_if_false @ZERO4_14365
121@ = 1
set_object_records_collisions 92@ {state} True
102@ = 0

:ZERO4_14365
142@ = 0
goto @ZERO4_14445

:ZERO4_14379
if 
  does_vehicle_exist 76@
goto_if_false @ZERO4_14445
detach_car 76@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
76@ = 0

:ZERO4_14445
wait 1000
set_lvar_int_to_lvar_int 543@ = 70@
mark_car_as_no_longer_needed 70@
127@ -= 1
if 
  127@ > 0
goto_if_false @ZERO4_14539
set_fixed_camera_position -968.2972 {y} 1077.413 {z} 1346.686 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -969.2341 {y} 1077.368 {z} 1346.339 {switchStyle} SwitchType.JumpCut

:ZERO4_14539
70@ = 0

:ZERO4_14546
if 
  not is_car_dead 70@
goto_if_false @ZERO4_14621
if 
  544@ == 1
goto_if_false @ZERO4_14621
if 
  109@ > 10000
goto_if_false @ZERO4_14621
set_car_proofs 70@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
544@ = 0

:ZERO4_14621
if 
  70@ == 0
goto_if_false @ZERO4_14968
if 
  127@ <> 0
goto_if_false @ZERO4_14968
restore_camera 
extinguish_fire_at_point -973.759 {y} 1077.152 {z} 1350.399 {radius} 200.0
70@ = create_car 501 {x} -973.759 {y} 1077.152 {z} 1350.399
set_car_proofs 70@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
544@ = 1
109@ = 0
set_car_heading 70@ {heading} 90.0
set_heli_blades_full_speed 70@
set_vehicle_area_visible 70@ {interiorId} 10
take_remote_control_of_car $player1 {vehicle} 70@
if 
  127@ == 2
goto_if_false @ZERO4_14797
print_now 'Z4_M14' {time} 5000 {flag} 1

:ZERO4_14797
if 
  127@ == 1
goto_if_false @ZERO4_14831
print_now 'Z4_M23' {time} 5000 {flag} 1

:ZERO4_14831
if 
  not does_object_exist 94@
goto_if_false @ZERO4_14870
94@ = create_object #MINI_MAGNET {x} -973.759 {y} 1077.152 {z} 1344.399

:ZERO4_14870
attach_object_to_car 94@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_collision 94@ {state} True
if 
  127@ == 0
goto_if_false @ZERO4_14947
set_car_visible 70@ {state} False
set_object_visible 94@ {state} False

:ZERO4_14947
if 
  does_vehicle_exist 543@
goto_if_false @ZERO4_14968
delete_car 543@

:ZERO4_14968
if 
  68@ == 0
goto_if_false @ZERO4_15361
68@ = create_car 441 {x} -975.6997 {y} 1061.162 {z} 1344.8
set_car_heading 68@ {heading} 90.0
set_vehicle_area_visible 68@ {interiorId} 10
set_car_proofs 68@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
start_playback_recorded_car 68@ {path} 521
set_playback_speed 68@ {speed} 0.5
97@ = add_blip_for_car 68@
set_blip_as_friendly 97@ {state} True
set_car_health 68@ {health} 2000
change_blip_scale 97@ {size} 2
if 
  111@ == 2
goto_if_false @ZERO4_15225
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @ZERO4_15183
set_var_text_label s$audio_string = 'ZER4_MA'
set_var_int_to_constant $audio_sound_file = 45242
start_new_script @AUDIOL -1 0 1 1 0 
goto @ZERO4_15225

:ZERO4_15183
set_var_text_label s$audio_string = 'ZER4_MB'
set_var_int_to_constant $audio_sound_file = 45243
start_new_script @AUDIOL -1 0 1 1 0 

:ZERO4_15225
if 
  111@ == 1
goto_if_false @ZERO4_15361
43@ = generate_random_int_in_range 0 {max} 2
if 
  43@ == 0
goto_if_false @ZERO4_15319
set_var_text_label s$audio_string = 'ZER4_MC'
set_var_int_to_constant $audio_sound_file = 45244
start_new_script @AUDIOL -1 0 1 1 0 
goto @ZERO4_15361

:ZERO4_15319
set_var_text_label s$audio_string = 'ZER4_MD'
set_var_int_to_constant $audio_sound_file = 45245
start_new_script @AUDIOL -1 0 1 1 0 

:ZERO4_15361
if 
  not is_car_dead 68@
goto_if_false @ZERO4_15928
43@ = get_car_health 68@
if 
  1000 > 43@
goto_if_false @ZERO4_15928
$x, $y, $z = get_car_coordinates 68@
set_lvar_float_to_var_float 56@ = $x
56@ -= 5.0
set_lvar_float_to_var_float 57@ = $y
57@ -= 5.0
set_lvar_float_to_var_float 58@ = $z
58@ -= 5.0
set_lvar_float_to_var_float 59@ = $x
59@ += 5.0
set_lvar_float_to_var_float 60@ = $y
60@ += 5.0
set_lvar_float_to_var_float 61@ = $z
61@ += 5.0
explode_car 68@
if 
  not is_explosion_in_area ExplosionType.Small {leftBottomX} 56@ {leftBottomY} 57@ {leftBottomZ} 58@ {rightTopX} 59@ {rightTopY} 60@ {rightTopZ} 61@
goto_if_false @ZERO4_15810
169@ += 1
if 
  169@ > 2
goto_if_false @ZERO4_15596
169@ = 0

:ZERO4_15596
switch_start 169@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_15752 {caseNum1} 0 {caseLabel1} @ZERO4_15659 {caseNum2} 1 {caseLabel2} @ZERO4_15690 {caseNum3} 2 {caseLabel3} @ZERO4_15721 {caseNum4} -1 {caseLabel4} @ZERO4_15752 {caseNum5} -1 {caseLabel5} @ZERO4_15752 {caseNum6} -1 {caseLabel6} @ZERO4_15752 {caseNum7} -1 {caseLabel7} @ZERO4_15752

:ZERO4_15659
set_var_text_label s$audio_string = 'ZER4_LA'
set_var_int_to_constant $audio_sound_file = 45238
goto @ZERO4_15752

:ZERO4_15690
set_var_text_label s$audio_string = 'ZER4_LB'
set_var_int_to_constant $audio_sound_file = 45239
goto @ZERO4_15752

:ZERO4_15721
set_var_text_label s$audio_string = 'ZER4_LD'
set_var_int_to_constant $audio_sound_file = 45241
goto @ZERO4_15752

:ZERO4_15752
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_15774
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_15803
wait 0
goto @ZERO4_15774

:ZERO4_15803
goto @ZERO4_15885

:ZERO4_15810
set_var_text_label s$audio_string = 'ZER4_LC'
set_var_int_to_constant $audio_sound_file = 45240
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_15856
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_15885
wait 0
goto @ZERO4_15856

:ZERO4_15885
mark_car_as_no_longer_needed 68@
stop_playback_recorded_car 68@
remove_blip 97@
68@ = 0
111@ -= 1
110@ = 0
137@ = 0

:ZERO4_15928
if 
  does_vehicle_exist 71@
goto_if_false @ZERO4_16155
if 
  is_car_dead 71@
goto_if_false @ZERO4_16155
if 
  does_object_exist 95@
goto_if_false @ZERO4_15981
delete_object 95@

:ZERO4_15981
if 
  does_object_exist 77@(125@,10i)
goto_if_false @ZERO4_16148
if 
  is_object_attached 77@(125@,10i)
goto_if_false @ZERO4_16148
detach_object 77@(125@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 77@(125@,10i) {state} True
if 
  is_object_intersecting_world 77@(125@,10i)
goto_if_false @ZERO4_16148
$x, $y, $z = get_object_coordinates 77@(125@,10i)
$heading = get_object_heading 77@(125@,10i)
$z += 1.0
set_object_coordinates 77@(125@,10i) {x} $x {y} $y {z} $z
set_object_heading 77@(125@,10i) {heading} $heading

:ZERO4_16148
71@ = 0

:ZERO4_16155
if 
  115@ == 0
goto_if_false @ZERO4_16397
43@ = 0

:ZERO4_16180
if 
  5 > 43@
goto_if_false @ZERO4_16397
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_16383
if 
  not is_object_attached 87@(43@,5i)
goto_if_false @ZERO4_16383
if 
  locate_object_3d 87@(43@,5i) {x} -1043.5081 {y} 1041.38 {z} 1341.2939 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_16383
set_object_coordinates 87@(43@,5i) {x} -1043.5081 {y} 1041.38 {z} 1341.2939
set_object_rotation 87@(43@,5i) {x} -2.77 {y} -2.13 {z} -38.12
freeze_object_position 87@(43@,5i) {state} True
report_mission_audio_event_at_object 87@(43@,5i) {soundId} ScriptSound.SoundBonnetDent
115@ = 1
set_lvar_int_to_lvar_int 117@ = 43@
43@ = 5

:ZERO4_16383
43@ += 1
goto @ZERO4_16180

:ZERO4_16397
if 
  115@ == 1
goto_if_false @ZERO4_16480
if 
  does_object_exist 87@(117@,5i)
goto_if_false @ZERO4_16480
if 
  is_object_attached 87@(117@,5i)
goto_if_false @ZERO4_16480
freeze_object_position 87@(117@,5i) {state} False
115@ = 0
117@ = -1

:ZERO4_16480
if 
  not is_car_dead 68@
goto_if_false @ZERO4_16698
if 
  119@ == 0
goto_if_false @ZERO4_16613
if 
  115@ == 0
goto_if_false @ZERO4_16606
if 
  locate_car_3d 68@ {x} -1041.83 {y} 1044.25 {z} 1341.42 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_16606
pause_playback_recorded_car 68@
119@ = 1
155@ = 1
171@ = 1

:ZERO4_16606
goto @ZERO4_16698

:ZERO4_16613
if 
  115@ == 1
goto_if_false @ZERO4_16698
if 
  locate_car_3d 68@ {x} -1041.83 {y} 1044.25 {z} 1341.42 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_16698
unpause_playback_recorded_car 68@
119@ = 0
171@ = 0

:ZERO4_16698
if 
  155@ == 1
goto_if_false @ZERO4_16757
if 
  147@ == 99
goto_if_false @ZERO4_16757
print_now 'Z4_M20' {time} 7000 {flag} 1
155@ += 1

:ZERO4_16757
if 
  155@ == 2
goto_if_false @ZERO4_16935
if 
  does_object_exist 142@
goto_if_false @ZERO4_16935
43@ = 0
44@ = 0

:ZERO4_16805
if 
  5 > 43@
goto_if_false @ZERO4_16894
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_16880
if 
  is_int_lvar_equal_to_int_lvar 87@(43@,5i) == 142@
goto_if_false @ZERO4_16880
44@ = 1
43@ = 5

:ZERO4_16880
43@ += 1
goto @ZERO4_16805

:ZERO4_16894
if 
  44@ == 1
goto_if_false @ZERO4_16935
print_now 'Z4_M21' {time} 7000 {flag} 1
155@ += 1

:ZERO4_16935
if 
  155@ == 3
goto_if_false @ZERO4_16980
if 
  115@ == 1
goto_if_false @ZERO4_16980
clear_prints 
155@ = 99

:ZERO4_16980
if 
  116@ == 0
goto_if_false @ZERO4_17222
43@ = 0

:ZERO4_17005
if 
  5 > 43@
goto_if_false @ZERO4_17222
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_17208
if 
  not is_object_attached 87@(43@,5i)
goto_if_false @ZERO4_17208
if 
  locate_object_3d 87@(43@,5i) {x} -1062.833 {y} 1076.6281 {z} 1341.23 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_17208
set_object_coordinates 87@(43@,5i) {x} -1062.833 {y} 1076.6281 {z} 1341.23
set_object_rotation 87@(43@,5i) {x} 4.7 {y} -4.77 {z} -31.58
freeze_object_position 87@(43@,5i) {state} True
report_mission_audio_event_at_object 87@(43@,5i) {soundId} ScriptSound.SoundBonnetDent
116@ = 1
set_lvar_int_to_lvar_int 118@ = 43@
43@ = 5

:ZERO4_17208
43@ += 1
goto @ZERO4_17005

:ZERO4_17222
if 
  116@ == 1
goto_if_false @ZERO4_17305
if 
  does_object_exist 87@(118@,5i)
goto_if_false @ZERO4_17305
if 
  is_object_attached 87@(118@,5i)
goto_if_false @ZERO4_17305
freeze_object_position 87@(118@,5i) {state} False
116@ = 0
118@ = -1

:ZERO4_17305
if 
  not is_car_dead 68@
goto_if_false @ZERO4_17523
if 
  119@ == 0
goto_if_false @ZERO4_17438
if 
  116@ == 0
goto_if_false @ZERO4_17431
if 
  locate_car_3d 68@ {x} -1064.09 {y} 1074.37 {z} 1341.3199 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_17431
pause_playback_recorded_car 68@
171@ = 1
119@ = 1
156@ = 1

:ZERO4_17431
goto @ZERO4_17523

:ZERO4_17438
if 
  116@ == 1
goto_if_false @ZERO4_17523
if 
  locate_car_3d 68@ {x} -1064.09 {y} 1074.37 {z} 1341.3199 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @ZERO4_17523
unpause_playback_recorded_car 68@
171@ = 0
119@ = 0

:ZERO4_17523
if 
  156@ == 1
goto_if_false @ZERO4_17564
print_now 'Z4_M20' {time} 7000 {flag} 1
156@ += 1

:ZERO4_17564
if 
  156@ == 2
goto_if_false @ZERO4_17742
if 
  does_object_exist 142@
goto_if_false @ZERO4_17742
43@ = 0
44@ = 0

:ZERO4_17612
if 
  5 > 43@
goto_if_false @ZERO4_17701
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_17687
if 
  is_int_lvar_equal_to_int_lvar 87@(43@,5i) == 142@
goto_if_false @ZERO4_17687
44@ = 1
43@ = 5

:ZERO4_17687
43@ += 1
goto @ZERO4_17612

:ZERO4_17701
if 
  44@ == 1
goto_if_false @ZERO4_17742
print_now 'Z4_M21' {time} 7000 {flag} 1
156@ += 1

:ZERO4_17742
if 
  156@ == 3
goto_if_false @ZERO4_17787
if 
  116@ == 1
goto_if_false @ZERO4_17787
clear_prints 
156@ = 99

:ZERO4_17787
if 
  137@ == 0
goto_if_false @ZERO4_19148
if 
  119@ == 0
goto_if_false @ZERO4_18441
if 
  120@ == 0
goto_if_false @ZERO4_18434
if 
  not is_car_dead 68@
goto_if_false @ZERO4_18434
108@ = 0
157@ = 0
$x, $y, $z = get_offset_from_car_in_world_coords 68@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 0.0
43@ = 0

:ZERO4_17907
if 
  10 > 43@
goto_if_false @ZERO4_18094
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_18080
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_18080
56@, 57@, 58@ = get_object_coordinates 77@(43@,10i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.8 > 46@
goto_if_false @ZERO4_18080
pause_playback_recorded_car 68@
119@ = 1
120@ = 1
157@ = 1
goto @ZERO4_18434

:ZERO4_18080
43@ += 1
goto @ZERO4_17907

:ZERO4_18094
43@ = 0

:ZERO4_18101
if 
  3 > 43@
goto_if_false @ZERO4_18324
if 
  does_vehicle_exist 72@(43@,3i)
goto_if_false @ZERO4_18310
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_18310
if 
  locate_car_3d 72@(43@,3i) {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO4_18310
56@, 57@, 58@ = get_car_coordinates 72@(43@,3i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.9 > 46@
goto_if_false @ZERO4_18310
pause_playback_recorded_car 68@
119@ = 1
120@ = 1
157@ = 2
print_now 'Z4_M18' {time} 5000 {flag} 1
goto @ZERO4_18434

:ZERO4_18310
43@ += 1
goto @ZERO4_18101

:ZERO4_18324
if 
  not is_car_dead 70@
goto_if_false @ZERO4_18408
if 
  locate_car_3d 70@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_18408
pause_playback_recorded_car 68@
119@ = 1
120@ = 1
goto @ZERO4_18434

:ZERO4_18408
if 
  120@ == 1
goto_if_false @ZERO4_18434
108@ = 30000

:ZERO4_18434
goto @ZERO4_19148

:ZERO4_18441
if 
  120@ == 1
goto_if_false @ZERO4_19148
if 
  not is_car_dead 68@
goto_if_false @ZERO4_19148
$x, $y, $z = get_offset_from_car_in_world_coords 68@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 0.0
120@ = 0
43@ = 0

:ZERO4_18518
if 
  10 > 43@
goto_if_false @ZERO4_18693
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_18679
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO4_18679
56@, 57@, 58@ = get_object_coordinates 77@(43@,10i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.9 > 46@
goto_if_false @ZERO4_18679
120@ = 1
157@ = 1
goto @ZERO4_19148

:ZERO4_18679
43@ += 1
goto @ZERO4_18518

:ZERO4_18693
43@ = 0

:ZERO4_18700
if 
  3 > 43@
goto_if_false @ZERO4_18895
if 
  does_vehicle_exist 72@(43@,3i)
goto_if_false @ZERO4_18881
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_18881
if 
  locate_car_3d 72@(43@,3i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_18881
56@, 57@, 58@ = get_car_coordinates 72@(43@,3i)
46@ = get_distance_between_coords_2d $x {fromY} $y {toX} 56@ {toZ} 57@
if 
  0.8 > 46@
goto_if_false @ZERO4_18881
120@ = 1
157@ = 2
goto @ZERO4_19148

:ZERO4_18881
43@ += 1
goto @ZERO4_18700

:ZERO4_18895
if 
  not is_car_dead 70@
goto_if_false @ZERO4_18967
if 
  locate_car_3d 70@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_18967
120@ = 1
goto @ZERO4_19148

:ZERO4_18967
if and
  120@ == 1
  108@ > 30000
  3 > 158@
goto_if_false @ZERO4_19075
if 
  157@ == 1
goto_if_false @ZERO4_19034
print 'Z4_M18' {time} 5000 {flag} 1

:ZERO4_19034
if 
  157@ == 2
goto_if_false @ZERO4_19068
print 'Z4_M25' {time} 5000 {flag} 1

:ZERO4_19068
108@ = 0

:ZERO4_19075
if 
  120@ == 0
goto_if_false @ZERO4_19148
unpause_playback_recorded_car 68@
119@ = 0
157@ = 0
clear_prints 
if and
  108@ > 1000
  30000 > 108@
goto_if_false @ZERO4_19148
158@ += 1

:ZERO4_19148
if 
  137@ == 0
goto_if_false @ZERO4_19568
if 
  not is_car_dead 68@
goto_if_false @ZERO4_19568
if 
  has_car_been_damaged_by_weapon 68@ {weaponType} WeaponType.MicroUzi
goto_if_false @ZERO4_19212
545@ = 1
clear_car_last_weapon_damage 68@

:ZERO4_19212
$z4_pcar_health = get_car_health 68@
$z4_pcar_health += -1000
cset_lvar_float_to_var_int 46@ =# $z4_pcar_health
46@ /= 1000.0
46@ *= 100.0
cset_var_int_to_lvar_float $z4_pcar_health =# 46@
if 
  is_int_lvar_greater_than_int_var 135@ > $z4_pcar_health
goto_if_false @ZERO4_19297
136@ = 1
107@ = 0

:ZERO4_19297
set_lvar_int_to_var_int 135@ = $z4_pcar_health
if 
  136@ == 1
goto_if_false @ZERO4_19393
if 
  119@ == 1
goto_if_false @ZERO4_19353
unpause_playback_recorded_car 68@
119@ = 0

:ZERO4_19353
if 
  is_playback_going_on_for_car 68@
goto_if_false @ZERO4_19393
set_playback_speed 68@ {speed} -0.2
136@ += 1
107@ = 0

:ZERO4_19393
if 
  136@ == 2
goto_if_false @ZERO4_19444
if 
  107@ > 4000
goto_if_false @ZERO4_19444
136@ += 1
107@ = 0

:ZERO4_19444
if 
  136@ == 3
goto_if_false @ZERO4_19498
set_playback_speed 68@ {speed} 0.5
pause_playback_recorded_car 68@
119@ = 1
107@ = 0
136@ += 1

:ZERO4_19498
if 
  136@ == 4
goto_if_false @ZERO4_19568
if 
  107@ > 4000
goto_if_false @ZERO4_19568
unpause_playback_recorded_car 68@
119@ = 0
136@ = 0
107@ = 0
120@ = 0

:ZERO4_19568
if 
  not is_car_dead 70@
goto_if_false @ZERO4_20518
if 
  546@ == 1
goto_if_false @ZERO4_20518
if 
  122@ <> 0
goto_if_false @ZERO4_20511
if 
  548@ == 1
goto_if_false @ZERO4_20062
56@, 57@, 58@ = get_car_coordinates 70@
58@ = get_ground_z_for_3d_coord 56@ {y} 57@ {z} 58@
43@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} 1.7 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19746
43@ = 1

:ZERO4_19746
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19819
43@ = 1

:ZERO4_19819
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.2 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19892
43@ = 1

:ZERO4_19892
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} -0.2 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_19965
43@ = 1

:ZERO4_19965
if 
  43@ == 1
goto_if_false @ZERO4_20048
set_object_collision 142@ {state} False
if 
  not is_car_dead 70@
goto_if_false @ZERO4_20041
apply_force_to_car 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.005 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:ZERO4_20041
goto @ZERO4_20062

:ZERO4_20048
set_object_collision 142@ {state} True
546@ = 0

:ZERO4_20062
if 
  547@ == 1
goto_if_false @ZERO4_20504
56@, 57@, 58@ = get_car_coordinates 70@
58@ = get_ground_z_for_3d_coord 56@ {y} 57@ {z} 58@
43@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20188
43@ = 1

:ZERO4_20188
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20261
43@ = 1

:ZERO4_20261
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20334
43@ = 1

:ZERO4_20334
$x, $y, $z = get_offset_from_object_in_world_coords 142@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
set_lvar_float_to_var_float 46@ = $z
46@ += 0.5
if 
  is_float_lvar_greater_than_float_var 58@ > $z
goto_if_false @ZERO4_20407
43@ = 1

:ZERO4_20407
if 
  43@ == 1
goto_if_false @ZERO4_20490
set_object_collision 142@ {state} False
if 
  not is_car_dead 70@
goto_if_false @ZERO4_20483
apply_force_to_car 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.005 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:ZERO4_20483
goto @ZERO4_20504

:ZERO4_20490
set_object_collision 142@ {state} True
546@ = 0

:ZERO4_20504
goto @ZERO4_20518

:ZERO4_20511
546@ = 0

:ZERO4_20518
if 
  not is_car_dead 70@
goto_if_false @ZERO4_21716
if 
  122@ == 0
goto_if_false @ZERO4_21420
if 
  123@ == 0
goto_if_false @ZERO4_21389
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  103@ > 1000
goto_if_false @ZERO4_21375
123@ = 1
$x, $y, $z = get_offset_from_car_in_world_coords 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0
43@ = 0

:ZERO4_20638
if 
  10 > 43@
goto_if_false @ZERO4_20924
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_20910
if 
  locate_object_3d 77@(43@,10i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_20910
44@ = 0
if 
  is_object_attached 77@(43@,10i)
goto_if_false @ZERO4_20756
44@ = 1

:ZERO4_20756
if 
  44@ == 0
goto_if_false @ZERO4_20910
set_lvar_int_to_lvar_int 142@ = 77@(43@,10i)
46@ = get_object_heading 77@(43@,10i)
attach_object_to_car 142@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 0.0
if 
  does_object_exist 142@
goto_if_false @ZERO4_20860
report_mission_audio_event_at_object 142@ {soundId} ScriptSound.SoundBonnetDent

:ZERO4_20860
set_object_collision 94@ {state} True
sort_out_object_collision_with_car 142@ {handle} 70@
43@ = 10
122@ = 1
547@ = 1
546@ = 1
goto @ZERO4_21368

:ZERO4_20910
43@ += 1
goto @ZERO4_20638

:ZERO4_20924
43@ = 0

:ZERO4_20931
if 
  5 > 43@
goto_if_false @ZERO4_21153
if 
  does_object_exist 87@(43@,5i)
goto_if_false @ZERO4_21139
if 
  locate_object_3d 87@(43@,5i) {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_21139
set_lvar_int_to_lvar_int 142@ = 87@(43@,5i)
attach_object_to_car 142@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  does_object_exist 142@
goto_if_false @ZERO4_21089
report_mission_audio_event_at_object 142@ {soundId} ScriptSound.SoundBonnetDent

:ZERO4_21089
set_object_collision 94@ {state} True
sort_out_object_collision_with_car 142@ {handle} 70@
43@ = 6
122@ = 1
548@ = 1
546@ = 1
goto @ZERO4_21368

:ZERO4_21139
43@ += 1
goto @ZERO4_20931

:ZERO4_21153
if 
  does_object_exist 92@
goto_if_false @ZERO4_21368
if 
  locate_object_3d 92@ {x} $x {y} $y {z} $z {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_21368
set_lvar_int_to_lvar_int 142@ = 92@
attach_object_to_car 142@ {handle} 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  does_object_exist 142@
goto_if_false @ZERO4_21332
if 
  is_object_intersecting_world 142@
goto_if_false @ZERO4_21324
apply_force_to_car 70@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:ZERO4_21324
report_mission_audio_event_at_object 142@ {soundId} ScriptSound.SoundBonnetDent

:ZERO4_21332
set_object_collision 94@ {state} True
sort_out_object_collision_with_car 142@ {handle} 70@
122@ = 1
549@ = 1
goto @ZERO4_21368

:ZERO4_21368
goto @ZERO4_21382

:ZERO4_21375
123@ = 0

:ZERO4_21382
goto @ZERO4_21413

:ZERO4_21389
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO4_21413
123@ = 0

:ZERO4_21413
goto @ZERO4_21716

:ZERO4_21420
if 
  123@ == 1
goto_if_false @ZERO4_21469
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO4_21462
123@ = 0

:ZERO4_21462
goto @ZERO4_21716

:ZERO4_21469
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ZERO4_21716
if 
  does_object_exist 142@
goto_if_false @ZERO4_21643
if 
  not is_object_intersecting_world 142@
goto_if_false @ZERO4_21636
detach_object 142@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
if 
  is_int_lvar_equal_to_int_lvar 142@ == 92@
goto_if_false @ZERO4_21601
121@ = 1
set_object_records_collisions 92@ {state} True
102@ = 0

:ZERO4_21601
142@ = 0
123@ = 1
549@ = 0
548@ = 0
547@ = 0

:ZERO4_21636
goto @ZERO4_21716

:ZERO4_21643
if 
  does_vehicle_exist 76@
goto_if_false @ZERO4_21716
detach_car 76@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0
76@ = 0
123@ = 1

:ZERO4_21716
if 
  does_object_exist 92@
goto_if_false @ZERO4_21839
if 
  121@ == 1
goto_if_false @ZERO4_21832
if or
  has_object_collided_with_anything 92@
  102@ > 10000
goto_if_false @ZERO4_21832
if 
  102@ > 500
goto_if_false @ZERO4_21832
$x, $y, $z = get_object_coordinates 92@
add_explosion $x {y} $y {z} $z {type} ExplosionType.Small
delete_object 92@
121@ = 0

:ZERO4_21832
goto @ZERO4_21879

:ZERO4_21839
92@ = create_object_no_offset #RCBOMB {x} -974.5125 {y} 1072.045 {z} 1344.298
set_object_heading 92@ {heading} 90.0
121@ = 0

:ZERO4_21879
if 
  not is_car_dead 68@
goto_if_false @ZERO4_22061
set_lvar_int_to_lvar_int 43@ = 110@

:ZERO4_21903
if 
  117 > 43@
goto_if_false @ZERO4_22036
if 
  not is_car_dead 68@
goto_if_false @ZERO4_22015
if 
  locate_car_2d 68@ {x} 191@(43@,117f) {y} 308@(43@,117f) {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_22001
set_lvar_int_to_lvar_int 110@ = 43@
110@ += 1
goto @ZERO4_22008

:ZERO4_22001
43@ = 117

:ZERO4_22008
goto @ZERO4_22022

:ZERO4_22015
110@ = 0

:ZERO4_22022
43@ += 1
goto @ZERO4_21903

:ZERO4_22036
if 
  110@ > 116
goto_if_false @ZERO4_22061
110@ = 116

:ZERO4_22061
if 
  not is_car_dead 71@
goto_if_false @ZERO4_23144
if 
  124@ == 0
goto_if_false @ZERO4_22423
125@ = -1
43@ = 3

:ZERO4_22109
if 
  10 > 43@
goto_if_false @ZERO4_22176
if 
  not does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_22162
set_lvar_int_to_lvar_int 125@ = 43@
43@ = 10

:ZERO4_22162
43@ += 1
goto @ZERO4_22109

:ZERO4_22176
if 
  125@ > -1
goto_if_false @ZERO4_22328
create_object #BARREL2 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 77@(125@,10i)
attach_object_to_car 77@(125@,10i) {handle} 71@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -1.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 0.0
if 
  does_object_exist 77@(125@,10i)
goto_if_false @ZERO4_22295
report_mission_audio_event_at_object 77@(125@,10i) {soundId} ScriptSound.SoundBonnetDent

:ZERO4_22295
set_object_collision 95@ {state} False
sort_out_object_collision_with_car 77@(125@,10i) {handle} 71@
124@ += 1
goto @ZERO4_22423

:ZERO4_22328
43@ = 3

:ZERO4_22335
if 
  10 > 43@
goto_if_false @ZERO4_22423
if 
  does_object_exist 77@(43@,10i)
goto_if_false @ZERO4_22409
if 
  not is_object_on_screen 77@(43@,10i)
goto_if_false @ZERO4_22409
delete_object 77@(43@,10i)
43@ = 10

:ZERO4_22409
43@ += 1
goto @ZERO4_22335

:ZERO4_22423
if 
  124@ == 1
goto_if_false @ZERO4_22538
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 30
if 
  126@ > 114
goto_if_false @ZERO4_22481
126@ = 114

:ZERO4_22481
set_heli_stabiliser 71@ {state} False
set_heli_reached_target_distance 71@ {distance} 0
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 5.0 {maxAltitude} 352.0
124@ += 1

:ZERO4_22538
if 
  124@ == 2
goto_if_false @ZERO4_22821
if 
  locate_car_3d 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @ZERO4_22726
if 
  is_int_lvar_greater_than_int_lvar 110@ > 126@
goto_if_false @ZERO4_22712
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 10
if 
  126@ > 114
goto_if_false @ZERO4_22669
126@ = 114

:ZERO4_22669
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 5.0 {maxAltitude} 352.0
goto @ZERO4_22719

:ZERO4_22712
124@ += 1

:ZERO4_22719
goto @ZERO4_22821

:ZERO4_22726
if 
  is_int_lvar_greater_than_int_lvar 110@ > 126@
goto_if_false @ZERO4_22821
set_lvar_int_to_lvar_int 126@ = 110@
126@ += 10
if 
  126@ > 114
goto_if_false @ZERO4_22785
126@ = 114

:ZERO4_22785
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 5.0 {maxAltitude} 352.0

:ZERO4_22821
if 
  124@ == 3
goto_if_false @ZERO4_22882
heli_goto_coords 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {minAltitude} 1.0 {maxAltitude} 343.0
124@ += 1

:ZERO4_22882
if 
  124@ == 4
goto_if_false @ZERO4_22961
if 
  locate_car_3d 71@ {x} 191@(126@,117f) {y} 308@(126@,117f) {z} 425@(126@,117f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 5.0 {drawSphere} False
goto_if_false @ZERO4_22961
124@ += 1

:ZERO4_22961
if 
  124@ == 5
goto_if_false @ZERO4_23019
detach_object 77@(125@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 95@ {state} True
124@ += 1

:ZERO4_23019
if 
  124@ == 6
goto_if_false @ZERO4_23074
heli_goto_coords 71@ {x} -1131.694 {y} 1041.791 {z} 1345.141 {minAltitude} 5.0 {maxAltitude} 350.0
124@ += 1

:ZERO4_23074
if 
  124@ == 7
goto_if_false @ZERO4_23137
if 
  locate_car_2d 71@ {x} -1131.694 {y} 1041.791 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @ZERO4_23137
124@ = 0

:ZERO4_23137
goto @ZERO4_23179

:ZERO4_23144
if 
  124@ <> 99
goto_if_false @ZERO4_23179
mark_car_as_no_longer_needed 71@
remove_blip 98@
124@ = 99

:ZERO4_23179
43@ = 0

:ZERO4_23186
if 
  3 > 43@
goto_if_false @ZERO4_23498
if 
  not is_car_dead 72@(43@,3i)
goto_if_false @ZERO4_23484
44@ = 0

:ZERO4_23231
if 
  10 > 44@
goto_if_false @ZERO4_23484
if 
  does_object_exist 77@(44@,10i)
goto_if_false @ZERO4_23470
if 
  is_vehicle_touching_object 72@(43@,3i) {handle} 77@(44@,10i)
goto_if_false @ZERO4_23470
46@ = get_object_speed 77@(44@,10i)
if 
  46@ > 5.0
goto_if_false @ZERO4_23386
45@ = get_car_health 72@(43@,3i)
45@ += -200
if 
  0 >= 45@
goto_if_false @ZERO4_23374
45@ = 1

:ZERO4_23374
set_car_health 72@(43@,3i) {health} 45@

:ZERO4_23386
if 
  122@ == 1
goto_if_false @ZERO4_23470
if 
  is_int_lvar_equal_to_int_lvar 142@ == 77@(44@,10i)
goto_if_false @ZERO4_23470
detach_object 142@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_object_collision 94@ {state} True
122@ = 0
103@ = 0

:ZERO4_23470
44@ += 1
goto @ZERO4_23231

:ZERO4_23484
43@ += 1
goto @ZERO4_23186

:ZERO4_23498
44@ = 0

:ZERO4_23505
if 
  3 > 44@
goto_if_false @ZERO4_23552
set_lvar_int_to_lvar_int 551@ = 44@
gosub @ZERO4_24681
44@ += 1
goto @ZERO4_23505

:ZERO4_23552
if 
  not is_car_dead 68@
goto_if_false @ZERO4_23630
if 
  locate_car_3d 68@ {x} -1131.6 {y} 1057.7 {z} 1345.7 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @ZERO4_23630
gosub @ZERO4_24198
36@ = 1

:ZERO4_23630
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @ZERO4_23659
gosub @ZERO4_23930
37@ = 1

:ZERO4_23659
if 
  111@ == 0
goto_if_false @ZERO4_23707
gosub @ZERO4_23930
print_now 'Z4_M15' {time} 5000 {flag} 1
37@ = 1

:ZERO4_23707
if 
  127@ == 0
goto_if_false @ZERO4_23755
gosub @ZERO4_23930
print_now 'Z4_M13' {time} 5000 {flag} 1
37@ = 1

:ZERO4_23755
if 
  0 >= $zero4_timer
goto_if_false @ZERO4_23803
gosub @ZERO4_23930
print_now 'Z4_M12' {time} 5000 {flag} 1
37@ = 1

:ZERO4_23803
if 
  35@ == 99
goto_if_false @ZERO4_23828
gosub @ZERO4_26379

:ZERO4_23828
if 
  38@ == 0
goto_if_false @ZERO4_23928
if 
  37@ == 0
goto_if_false @ZERO4_23912
if 
  36@ == 0
goto_if_false @ZERO4_23896
goto @ZERO4_133
goto @ZERO4_23905

:ZERO4_23896
gosub @ZERO4_26460
return 

:ZERO4_23905
goto @ZERO4_23921

:ZERO4_23912
gosub @ZERO4_26437
return 

:ZERO4_23921
goto @ZERO4_23930

:ZERO4_23928
return 

:ZERO4_23930
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_help 
clear_onscreen_timer $zero4_timer
clear_onscreen_counter $z4_pcar_health
wait 100
62@ = generate_random_int_in_range 0 {max} 3
switch_start 62@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @ZERO4_24129 {caseNum1} 0 {caseLabel1} @ZERO4_24036 {caseNum2} 1 {caseLabel2} @ZERO4_24067 {caseNum3} 2 {caseLabel3} @ZERO4_24098 {caseNum4} -1 {caseLabel4} @ZERO4_24129 {caseNum5} -1 {caseLabel5} @ZERO4_24129 {caseNum6} -1 {caseLabel6} @ZERO4_24129 {caseNum7} -1 {caseLabel7} @ZERO4_24129

:ZERO4_24036
set_var_text_label s$audio_string = 'ZER4_NA'
set_var_int_to_constant $audio_sound_file = 45246
goto @ZERO4_24129

:ZERO4_24067
set_var_text_label s$audio_string = 'ZER4_NB'
set_var_int_to_constant $audio_sound_file = 45247
goto @ZERO4_24129

:ZERO4_24098
set_var_text_label s$audio_string = 'ZER4_NC'
set_var_int_to_constant $audio_sound_file = 45248
goto @ZERO4_24129

:ZERO4_24129
start_new_script @AUDIOL -1 0 1 1 0 
wait 100

:ZERO4_24151
if 
  $audio_line_is_active == 1
goto_if_false @ZERO4_24180
wait 0
goto @ZERO4_24151

:ZERO4_24180
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
return 

:ZERO4_24198
clear_onscreen_timer $zero4_timer
clear_onscreen_counter $z4_pcar_health
62@ = 0

:ZERO4_24215
if 
  550@ == 0
goto_if_false @ZERO4_24679
wait 0
if and
  TIMERB > 1000
  $audio_line_is_active == 0
goto_if_false @ZERO4_24672
switch_start 62@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @ZERO4_24622 {caseNum1} 0 {caseLabel1} @ZERO4_24391 {caseNum2} 1 {caseLabel2} @ZERO4_24422 {caseNum3} 2 {caseLabel3} @ZERO4_24453 {caseNum4} 3 {caseLabel4} @ZERO4_24484 {caseNum5} 4 {caseLabel5} @ZERO4_24515 {caseNum6} 5 {caseLabel6} @ZERO4_24546 {caseNum7} 6 {caseLabel7} @ZERO4_24577
switch_continued 7 {caseLabel1} @ZERO4_24608 {caseNum2} -1 {caseLabel2} @ZERO4_24622 {caseNum3} -1 {caseLabel3} @ZERO4_24622 {caseNum4} -1 {caseLabel4} @ZERO4_24622 {caseNum5} -1 {caseLabel5} @ZERO4_24622 {caseNum6} -1 {caseLabel6} @ZERO4_24622 {caseNum7} -1 {caseLabel7} @ZERO4_24622 {caseNum8} -1 {caseLabel8} @ZERO4_24622 {caseNum9} -1 {caseLabel9} @ZERO4_24622

:ZERO4_24391
set_var_text_label s$audio_string = 'ZER4_OA'
set_var_int_to_constant $audio_sound_file = 45249
goto @ZERO4_24622

:ZERO4_24422
set_var_text_label s$audio_string = 'ZER4_OB'
set_var_int_to_constant $audio_sound_file = 45250
goto @ZERO4_24622

:ZERO4_24453
set_var_text_label s$audio_string = 'ZER4_OC'
set_var_int_to_constant $audio_sound_file = 45251
goto @ZERO4_24622

:ZERO4_24484
set_var_text_label s$audio_string = 'ZER4_OD'
set_var_int_to_constant $audio_sound_file = 45252
goto @ZERO4_24622

:ZERO4_24515
set_var_text_label s$audio_string = 'ZER4_OE'
set_var_int_to_constant $audio_sound_file = 45253
goto @ZERO4_24622

:ZERO4_24546
set_var_text_label s$audio_string = 'ZER4_OF'
set_var_int_to_constant $audio_sound_file = 45254
goto @ZERO4_24622

:ZERO4_24577
set_var_text_label s$audio_string = 'ZER4_OG'
set_var_int_to_constant $audio_sound_file = 45255
goto @ZERO4_24622

:ZERO4_24608
550@ = 1
goto @ZERO4_24622

:ZERO4_24622
if 
  550@ == 0
goto_if_false @ZERO4_24672
start_new_script @AUDIOL -1 0 1 1 0 
TIMERB = 0
62@ += 1

:ZERO4_24672
goto @ZERO4_24215

:ZERO4_24679
return 

:ZERO4_24681
if 
  not is_car_dead 72@(551@,3i)
goto_if_false @ZERO4_26328
if 
  139@(551@,3i) == 0
goto_if_false @ZERO4_25442
if 
  is_int_lvar_equal_to_int_lvar 39@ == 551@
goto_if_false @ZERO4_25435
if 
  not is_car_dead 68@
goto_if_false @ZERO4_24830
$x, $y, $z = get_car_coordinates 68@
if 
  locate_car_3d 72@(551@,3i) {x} $x {y} $y {z} $z {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ZERO4_24830
set_lvar_int_to_lvar_int 139@(551@,3i) = 68@

:ZERO4_24830
if 
  128@(551@,3i) <> 99
goto_if_false @ZERO4_25435
if 
  139@(551@,3i) == 0
goto_if_false @ZERO4_25435
if 
  128@(551@,3i) == 0
goto_if_false @ZERO4_25063
set_lvar_int_to_lvar_int 43@ = 131@(551@,3i)
if 
  551@ == 0
goto_if_false @ZERO4_24956
car_goto_coordinates_accurate 72@(551@,3i) {x} 173@(43@,2f) {y} 175@(43@,2f) {z} 177@(43@,2f)

:ZERO4_24956
if 
  551@ == 1
goto_if_false @ZERO4_25004
car_goto_coordinates_accurate 72@(551@,3i) {x} 179@(43@,2f) {y} 181@(43@,2f) {z} 183@(43@,2f)

:ZERO4_25004
if 
  551@ == 2
goto_if_false @ZERO4_25052
car_goto_coordinates_accurate 72@(551@,3i) {x} 185@(43@,2f) {y} 187@(43@,2f) {z} 189@(43@,2f)

:ZERO4_25052
128@(551@,3i) += 1

:ZERO4_25063
if 
  128@(551@,3i) == 1
goto_if_false @ZERO4_25435
set_lvar_int_to_lvar_int 43@ = 131@(551@,3i)
if 
  551@ == 0
goto_if_false @ZERO4_25195
if 
  locate_car_3d 72@(551@,3i) {x} 173@(43@,2f) {y} 175@(43@,2f) {z} 177@(43@,2f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_25195
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25195
if 
  551@ == 1
goto_if_false @ZERO4_25293
if 
  locate_car_3d 72@(551@,3i) {x} 179@(43@,2f) {y} 181@(43@,2f) {z} 183@(43@,2f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_25293
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25293
if 
  551@ == 2
goto_if_false @ZERO4_25391
if 
  locate_car_3d 72@(551@,3i) {x} 185@(43@,2f) {y} 187@(43@,2f) {z} 189@(43@,2f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @ZERO4_25391
131@(551@,3i) += 1
128@(551@,3i) = 0

:ZERO4_25391
if 
  131@(551@,3i) > 1
goto_if_false @ZERO4_25435
128@(551@,3i) = 99
131@(551@,3i) = 0

:ZERO4_25435
goto @ZERO4_26321

:ZERO4_25442
if 
  not is_car_dead 139@(551@,3i)
goto_if_false @ZERO4_26310
$x, $y, $z = get_car_coordinates 139@(551@,3i)
if 
  locate_car_3d 72@(551@,3i) {x} $x {y} $y {z} $z {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @ZERO4_26292
46@ = get_car_heading 72@(551@,3i)
56@, 57@, 58@ = get_car_coordinates 72@(551@,3i)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
47@ = get_heading_from_vector_2d 50@ {y} 51@
set_lvar_float_to_lvar_float 48@ = 47@
sub_float_lvar_from_float_lvar 48@ -= 46@
if 
  48@ > 180.0
goto_if_false @ZERO4_25646
48@ += -360.0

:ZERO4_25646
if 
  -180.0 > 48@
goto_if_false @ZERO4_25677
48@ += 360.0

:ZERO4_25677
48@ *= 0.1
add_float_lvar_to_float_lvar 46@ += 48@
set_car_heading 72@(551@,3i) {heading} 46@
if 
  104@(551@,3i) > 500
goto_if_false @ZERO4_26285
$x, $y, $z = get_car_coordinates 139@(551@,3i)
56@, 57@, 58@ = get_car_coordinates 72@(551@,3i)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$x, $y, $z = get_offset_from_car_in_world_coords 72@(551@,3i) {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
set_lvar_float_to_var_float 53@ = $x
sub_float_lvar_from_float_lvar 53@ -= 56@
set_lvar_float_to_var_float 54@ = $y
sub_float_lvar_from_float_lvar 54@ -= 57@
set_lvar_float_to_var_float 55@ = $z
sub_float_lvar_from_float_lvar 55@ -= 58@
46@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
if 
  5.0 > 46@
goto_if_false @ZERO4_26285
46@ = get_angle_between_2d_vectors 1.0 {y1} 52@ {x2} 1.0 {y2} 0.0
if 
  45.0 > 46@
goto_if_false @ZERO4_26285
552@, 553@, 554@ = get_offset_from_car_in_world_coords 72@(551@,3i) {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.35
$x, $y, $z = get_car_coordinates 139@(551@,3i)
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 552@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 553@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 554@
46@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 552@ {toY} 553@ {toZ} 554@
div_float_lvar_by_float_lvar 50@ /= 46@
div_float_lvar_by_float_lvar 51@ /= 46@
div_float_lvar_by_float_lvar 52@ /= 46@
50@ *= 10.0
51@ *= 10.0
52@ *= 10.0
set_lvar_float_to_lvar_float 555@ = 552@
add_float_lvar_to_float_lvar 555@ += 50@
set_lvar_float_to_lvar_float 556@ = 553@
add_float_lvar_to_float_lvar 556@ += 51@
set_lvar_float_to_lvar_float 557@ = 554@
add_float_lvar_to_float_lvar 557@ += 52@
if 
  is_int_lvar_equal_to_int_lvar 139@(551@,3i) == 68@
goto_if_false @ZERO4_26240
print_now 'Z4_M19' {time} 5000 {flag} 1

:ZERO4_26240
report_mission_audio_event_at_car 72@(551@,3i) {soundId} ScriptSound.SoundMinitankFire
fire_single_bullet 552@ {fromY} 553@ {fromZ} 554@ {toX} 555@ {toY} 556@ {toZ} 557@ {energy} 50
104@(551@,3i) = 0

:ZERO4_26285
goto @ZERO4_26303

:ZERO4_26292
139@(551@,3i) = 0

:ZERO4_26303
goto @ZERO4_26321

:ZERO4_26310
139@(551@,3i) = 0

:ZERO4_26321
goto @ZERO4_26377

:ZERO4_26328
if 
  does_blip_exist 99@(551@,3i)
goto_if_false @ZERO4_26368
remove_blip 99@(551@,3i)
104@(551@,3i) = 0

:ZERO4_26368
mark_car_as_no_longer_needed 72@(551@,3i)

:ZERO4_26377
return 

:ZERO4_26379
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:ZERO4_26437
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
wait 5000
return 

:ZERO4_26460
return 

:ZERO4_26462
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:ZERO4_26476
if 
  get_fading_status 
goto_if_false @ZERO4_26500
wait 0
goto @ZERO4_26476

:ZERO4_26500
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_scene -2246.9829 {y} 136.9301 {z} 34.3125
request_collision -2246.9829 {y} 136.9301
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
set_player_control $player1 {state} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2244.6689 {y} 132.1672 {z} 34.3203
set_char_heading $scplayer {heading} 92.111

:ZERO4_26598
if 
  is_char_waiting_for_world_collision $scplayer
goto_if_false @ZERO4_26625
wait 0
goto @ZERO4_26598

:ZERO4_26625
set_char_coordinates $scplayer {x} -2244.6689 {y} 132.1672 {z} 34.3203
set_char_heading $scplayer {heading} 92.111
set_camera_behind_player 
restore_camera_jumpcut 
load_scene -2244.6689 {y} 132.1672 {z} 34.3203
set_player_is_in_stadium False
hide_all_frontend_blips False
delete_car 68@
delete_car 69@
delete_car 70@
delete_car 71@
delete_car 72@
delete_car 73@
delete_car 74@
43@ = 0

:ZERO4_26726
if 
  10 > 43@
goto_if_false @ZERO4_26767
delete_object 77@(43@,10i)
43@ += 1
goto @ZERO4_26726

:ZERO4_26767
43@ = 0

:ZERO4_26774
if 
  5 > 43@
goto_if_false @ZERO4_26815
delete_object 87@(43@,5i)
43@ += 1
goto @ZERO4_26774

:ZERO4_26815
delete_object 92@
display_hud True
clear_onscreen_timer $zero4_timer
clear_onscreen_counter $z4_pcar_health
mark_model_as_no_longer_needed 441
mark_model_as_no_longer_needed 564
mark_model_as_no_longer_needed 501
mark_model_as_no_longer_needed 481
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
set_radar_zoom 0
restore_clock 
release_weather 
if 
  36@ == 1
goto_if_false @ZERO4_27224
$zero_cash_pickup = create_protection_pickup -2243.0071 {y} 136.9601 {z} 34.8203 {revenueLimit} $zero_revenue {revenueRate} $zero_revenue
set_player_control $player1 {state} False
switch_widescreen True
do_fade 500 {direction} Fade.Out

:ZERO4_26970
if 
  get_fading_status 
goto_if_false @ZERO4_26994
wait 0
goto @ZERO4_26970

:ZERO4_26994
load_scene -2254.8721 {y} 133.2548 {z} 38.7597
set_fixed_camera_position -2254.8721 {y} 133.2548 {z} 38.7597 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2253.8989 {y} 133.2602 {z} 38.527 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:ZERO4_27069
if 
  get_fading_status 
goto_if_false @ZERO4_27093
wait 0
goto @ZERO4_27069

:ZERO4_27093
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -2246.7871 {y} 136.6037 {z} 36.2636 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2245.825 {y} 136.601 {z} 35.9893 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $zero_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:ZERO4_27200
if 
  get_fading_status 
goto_if_false @ZERO4_27224
wait 0
goto @ZERO4_27200

:ZERO4_27224
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
remove_rc_buggy 
if 
  36@ == 1
goto_if_false @ZERO4_27317
print_with_number_big 'M_PASS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
register_mission_passed 'ZERO_4'
player_made_progress 1
add_score $player1 {money} 7000
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $zero_contact_blip
$flag_zero_mission_counter += 1

:ZERO4_27317
$timer_mobile_start = get_game_timer 
set_player_control $player1 {state} True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 75---------------
// Originally: Monster

:TORENO1
script_name 'TORENO1'
gosub @TORENO1_47
if 
  has_deatharrest_been_executed 
goto_if_false @TORENO1_38
gosub @TORENO1_14439

:TORENO1_38
gosub @TORENO1_14529
terminate_this_script 

:TORENO1_47
$onmission = 1
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
force_weather WeatherType.SunnyCountryside
load_mission_text 'TORENO1'
load_cutscene 'DESERT1'

:TORENO1_90
if 
  not has_cutscene_loaded 
goto_if_false @TORENO1_114
wait 0
goto @TORENO1_90

:TORENO1_114
clear_area -694.4335 {y} 964.9288 {z} 11.2431 {radius} 100.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:TORENO1_147
if 
  not has_cutscene_finished 
goto_if_false @TORENO1_171
wait 0
goto @TORENO1_147

:TORENO1_171
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:TORENO1_184
if 
  get_fading_status 
goto_if_false @TORENO1_208
wait 0
goto @TORENO1_184

:TORENO1_208
clear_cutscene 
release_weather 
wait 0
34@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
46@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
83@ = 0
84@ = 0
85@ = 0
86@ = 0
34@ = 0
40@ = 0
88@ = 0
195@ = 33
36@ = 35
37@ = 0
52@ = 582.7242
59@ = 356.2812
66@ = 60.2072
73@ = 52.2072
53@ = 581.7789
60@ = 329.3647
67@ = 0.5427
74@ = 2.0841
54@ = 569.0
61@ = 323.5937
68@ = 0.7585
75@ = 3.8106
55@ = 577.7526
62@ = 335.6341
69@ = 0.4929
76@ = 1.8511
56@ = 583.3384
63@ = 355.0323
70@ = 0.4993
77@ = 2.637
57@ = 582.7242
64@ = 356.2812
71@ = 64.2072
78@ = 56.2072
58@ = 582.7242
65@ = 356.2812
72@ = 66.2072
79@ = 58.2072
90@ = -824.7935
125@ = 1078.275
160@ = 34.9479
91@ = -955.9566
126@ = 1359.621
161@ = 33.8826
92@ = -1030.999
127@ = 1446.298
162@ = 38.34
93@ = -1132.675
128@ = 1759.152
163@ = 35.3673
94@ = -1088.92
129@ = 1981.801
164@ = 125.1471
95@ = -990.0067
130@ = 2014.025
165@ = 113.5758
96@ = -1028.137
131@ = 2116.468
166@ = 88.2456
97@ = -1102.431
132@ = 2369.9451
167@ = 84.0834
98@ = -1130.04
133@ = 2323.3091
168@ = 87.9125
99@ = -1150.184
134@ = 2261.9431
169@ = 96.1878
100@ = -1293.377
135@ = 2221.605
170@ = 98.322
101@ = -1349.91
136@ = 2342.396
171@ = 94.5565
102@ = -1285.214
137@ = 2441.4221
172@ = 88.557
103@ = -1248.606
138@ = 2596.99
173@ = 89.817
104@ = -1174.87
139@ = 2304.5891
174@ = 113.1954
105@ = -1094.353
140@ = 2304.949
175@ = 85.4543
106@ = -1108.603
141@ = 2491.6931
176@ = 79.8438
107@ = -1224.7629
142@ = 2680.323
177@ = 46.8193
108@ = -1333.673
143@ = 2660.2051
178@ = 49.0624
109@ = -1622.432
144@ = 2670.262
179@ = 53.5027
110@ = -1646.642
145@ = 2478.291
180@ = 85.833
111@ = -1742.658
146@ = 2458.6631
181@ = 71.4663
112@ = -1687.3
147@ = 2394.6931
182@ = 58.0739
113@ = -1752.384
148@ = 2299.2939
183@ = 37.9221
114@ = -1687.584
149@ = 2336.405
184@ = 32.4859
115@ = -1575.405
150@ = 2275.4121
185@ = 55.2948
116@ = -1508.816
151@ = 1929.009
186@ = 46.1035
117@ = -1330.147
152@ = 1888.01
187@ = 46.2572
118@ = -1147.85
153@ = 1721.926
188@ = 43.41
119@ = -1036.475
154@ = 1564.297
189@ = 32.8195
120@ = -995.6179
155@ = 1395.26
190@ = 40.9086
121@ = -810.2653
156@ = 1149.114
191@ = 33.024
122@ = -702.602
157@ = 1118.1899
192@ = 35.5621
123@ = -700.9643
158@ = 955.246
193@ = 12.7168
34@ = 0

:TORENO1_1670
if 
  34 > 34@
goto_if_false @TORENO1_1716
160@(34@,35f) -= 1.0
34@ += 1
goto @TORENO1_1670

:TORENO1_1716
34@ = 0
224@ = 0
225@ = 1
226@ = 2
227@ = 0
228@ = 0
229@ = 0
230@ = 0
231@ = 0
232@ = 0
233@ = 0
set_var_text_label s$des1_text[1] = 'DES1_BA'
set_var_text_label s$des1_text[2] = 'DES1_BB'
set_var_text_label s$des1_text[3] = 'DES1_BC'
set_var_text_label s$des1_text[4] = 'DES1_BD'
set_var_text_label s$des1_text[5] = 'DES1_BE'
set_var_text_label s$des1_text[6] = 'DES1_BF'
set_var_text_label s$des1_text[7] = 'DES1_BG'
set_var_text_label s$des1_text[8] = 'DES1_BH'
set_var_text_label s$des1_text[9] = 'DES1_CA'
set_var_text_label s$des1_text[10] = 'DES1_CB'
set_var_text_label s$des1_text[11] = 'DES1_CC'
set_var_text_label s$des1_text[12] = 'DES1_CD'
set_var_text_label s$des1_text[13] = 'DES1_CE'
set_var_text_label s$des1_text[14] = 'DES1_CF'
set_var_text_label s$des1_text[15] = 'DES1_CG'
set_var_text_label s$des1_text[16] = 'DES1_BJ'
set_lvar_int_to_constant 208@ = 12817
set_lvar_int_to_constant 209@ = 12818
set_lvar_int_to_constant 210@ = 12819
set_lvar_int_to_constant 211@ = 12820
set_lvar_int_to_constant 212@ = 12821
set_lvar_int_to_constant 213@ = 12822
set_lvar_int_to_constant 214@ = 12823
set_lvar_int_to_constant 215@ = 12824
set_lvar_int_to_constant 216@ = 12826
set_lvar_int_to_constant 217@ = 12827
set_lvar_int_to_constant 218@ = 12828
set_lvar_int_to_constant 219@ = 12829
set_lvar_int_to_constant 220@ = 12830
set_lvar_int_to_constant 221@ = 12831
set_lvar_int_to_constant 222@ = 12832
set_lvar_int_to_constant 223@ = 12825
set_var_text_label s$des1_board_name = 'DES1_45'
set_var_text_label s$7436 = 'DES1_46'
set_var_text_label s$7438 = 'DES1_47'
set_var_text_label s$7440 = 'DES1_48'
set_var_text_label s$7442 = 'DES1_49'
200@ = 260
201@ = 300
202@ = 330
203@ = 360
204@ = 390
205@ = 0
set_fading_colour 0 {g} 0 {b} 0
wait 0
do_fade 1500 {direction} Fade.Out

:TORENO1_2281
if 
  get_fading_status 
goto_if_false @TORENO1_2305
wait 0
goto @TORENO1_2281

:TORENO1_2305
set_player_control $player1 {state} False
switch_widescreen True
request_model 444
request_model 25
request_animation "GANGS"

:TORENO1_2334
if or
  not has_model_loaded 444
  not has_model_loaded 25
  not has_animation_loaded "GANGS"
goto_if_false @TORENO1_2374
wait 0
goto @TORENO1_2334

:TORENO1_2374
clear_area -694.4335 {y} 964.9288 {z} 11.2431 {radius} 50.0 {clearParticles} True
80@ = create_car 444 {x} -694.4335 {y} 964.9288 {z} 11.2431
set_car_heading 80@ {heading} 85.85
freeze_car_position 80@ {state} True
81@ = create_char PedType.Mission1 {modelId} 25 {x} -698.2989 {y} 963.026 {z} 11.3035
set_char_heading 81@ {heading} 211.0638
39@ = get_car_health 80@
set_char_coordinates $scplayer {x} -697.7833 {y} 961.7714 {z} 11.2955
set_char_heading $scplayer {heading} 15.8778
set_fixed_camera_position -699.15 {y} 961.41 {z} 12.76 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -685.7 {y} 971.97 {z} 13.1 {switchStyle} SwitchType.JumpCut
display_car_names False
display_zone_names False
do_fade 1500 {direction} Fade.In

:TORENO1_2576
if 
  get_fading_status 
goto_if_false @TORENO1_2600
wait 0
goto @TORENO1_2576

:TORENO1_2600
if 
  not is_char_dead 81@
goto_if_false @TORENO1_2632
task_look_at_char $scplayer {target} 81@ {time} 20000
clear_char_tasks 81@

:TORENO1_2632
224@ = 0
225@ = 1
226@ = 2
227@ = 0
233@ = 0
228@ = 0
skip_cutscene_start_internal @TORENO1_4801

:TORENO1_2681
wait 0
if 
  228@ == 0
goto_if_false @TORENO1_4801
if 
  224@ <> 0
goto_if_false @TORENO1_3068
if 
  227@ == 0
goto_if_false @TORENO1_2767
if 
  has_mission_audio_loaded 226@
goto_if_false @TORENO1_2760
clear_mission_audio 226@

:TORENO1_2760
227@ = 1

:TORENO1_2767
if 
  227@ == 1
goto_if_false @TORENO1_2804
load_mission_audio 225@ {audioId} 207@(224@,17i)
227@ = 2

:TORENO1_2804
if 
  227@ == 2
goto_if_false @TORENO1_2864
if 
  has_mission_audio_loaded 225@
goto_if_false @TORENO1_2864
play_mission_audio 225@
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
227@ = 3

:TORENO1_2864
if 
  227@ == 3
goto_if_false @TORENO1_3068
if 
  has_mission_audio_finished 225@
goto_if_false @TORENO1_3007
clear_this_print $des1_text(224@,17s)
if 
  not is_char_dead 81@
goto_if_false @TORENO1_2928
stop_char_facial_talk 81@

:TORENO1_2928
stop_char_facial_talk $scplayer
if 
  225@ == 1
goto_if_false @TORENO1_2972
225@ = 2
226@ = 1
goto @TORENO1_2986

:TORENO1_2972
225@ = 1
226@ = 2

:TORENO1_2986
224@ = 0
227@ = 0
goto @TORENO1_3068

:TORENO1_3007
if 
  not has_mission_audio_loaded 226@
goto_if_false @TORENO1_3068
if 
  8 > 224@
goto_if_false @TORENO1_3068
set_lvar_int_to_lvar_int 233@ = 224@
233@ += 1
load_mission_audio 226@ {audioId} 207@(233@,17i)

:TORENO1_3068
switch_start 229@ {numCases} 9 {hasDefaultCase} 1 {defaultLabel} @TORENO1_4701 {caseNum1} 0 {caseLabel1} @TORENO1_3196 {caseNum2} 1 {caseLabel2} @TORENO1_3312 {caseNum3} 2 {caseLabel3} @TORENO1_3468 {caseNum4} 3 {caseLabel4} @TORENO1_3624 {caseNum5} 4 {caseLabel5} @TORENO1_3780 {caseNum6} 5 {caseLabel6} @TORENO1_4010 {caseNum7} 6 {caseLabel7} @TORENO1_4150
switch_continued 7 {caseLabel1} @TORENO1_4311 {caseNum2} 8 {caseLabel2} @TORENO1_4531 {caseNum3} -1 {caseLabel3} @TORENO1_4794 {caseNum4} -1 {caseLabel4} @TORENO1_4794 {caseNum5} -1 {caseLabel5} @TORENO1_4794 {caseNum6} -1 {caseLabel6} @TORENO1_4794 {caseNum7} -1 {caseLabel7} @TORENO1_4794 {caseNum8} -1 {caseLabel8} @TORENO1_4794 {caseNum9} -1 {caseLabel9} @TORENO1_4794

:TORENO1_3196
if 
  227@ == 0
goto_if_false @TORENO1_3305
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3286
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3286
224@ = 1
229@ = 1
232@ = get_game_timer 

:TORENO1_3305
goto @TORENO1_4794

:TORENO1_3312
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3461
if 
  227@ == 0
goto_if_false @TORENO1_3461
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3442
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3442
224@ = 2
229@ = 2
232@ = get_game_timer 

:TORENO1_3461
goto @TORENO1_4794

:TORENO1_3468
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3617
if 
  227@ == 0
goto_if_false @TORENO1_3617
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3598
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKF" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3598
224@ = 3
229@ = 3
232@ = get_game_timer 

:TORENO1_3617
goto @TORENO1_4794

:TORENO1_3624
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_3773
if 
  227@ == 0
goto_if_false @TORENO1_3773
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3754
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_3754
224@ = 4
229@ = 4
232@ = get_game_timer 

:TORENO1_3773
goto @TORENO1_4794

:TORENO1_3780
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4003
if 
  227@ == 0
goto_if_false @TORENO1_4003
if 
  not is_char_dead 81@
goto_if_false @TORENO1_3877
stop_char_facial_talk 81@
start_char_facial_talk $scplayer {duration} 4000
clear_char_tasks 81@
clear_char_tasks 81@

:TORENO1_3877
87@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKF" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 87@
perform_sequence_task $scplayer {sequence} 87@
clear_sequence_task 87@
224@ = 5
229@ = 5
232@ = get_game_timer 

:TORENO1_4003
goto @TORENO1_4794

:TORENO1_4010
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4143
if 
  227@ == 0
goto_if_false @TORENO1_4143
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
task_play_anim $scplayer {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
224@ = 16
229@ = 6
232@ = get_game_timer 

:TORENO1_4143
goto @TORENO1_4794

:TORENO1_4150
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4304
if 
  227@ == 0
goto_if_false @TORENO1_4304
clear_char_tasks $scplayer
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4285
stop_char_facial_talk $scplayer
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_4285
224@ = 6
229@ = 7
232@ = get_game_timer 

:TORENO1_4304
goto @TORENO1_4794

:TORENO1_4311
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4524
if 
  227@ == 0
goto_if_false @TORENO1_4524
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4505
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
87@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 87@
perform_sequence_task 81@ {sequence} 87@
clear_sequence_task 87@

:TORENO1_4505
224@ = 7
229@ = 8
232@ = get_game_timer 

:TORENO1_4524
goto @TORENO1_4794

:TORENO1_4531
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4694
if 
  227@ == 0
goto_if_false @TORENO1_4694
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4646
clear_char_tasks 81@
task_play_anim 81@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_4646
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4675
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000

:TORENO1_4675
224@ = 8
229@ = 9
232@ = get_game_timer 

:TORENO1_4694
goto @TORENO1_4794

:TORENO1_4701
231@ = get_game_timer 
set_lvar_int_to_lvar_int 230@ = 231@
sub_int_lvar_from_int_lvar 230@ -= 232@
if 
  230@ > 1000
goto_if_false @TORENO1_4787
if 
  227@ == 0
goto_if_false @TORENO1_4787
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4780
stop_char_facial_talk 81@

:TORENO1_4780
228@ = 1

:TORENO1_4787
goto @TORENO1_4794

:TORENO1_4794
goto @TORENO1_2681

:TORENO1_4801
skip_cutscene_end 
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4824
stop_char_facial_talk 81@

:TORENO1_4824
stop_char_facial_talk $scplayer
clear_mission_audio 225@
clear_mission_audio 226@
clear_char_tasks $scplayer
if 
  not is_char_dead 81@
goto_if_false @TORENO1_4865
clear_char_tasks 81@

:TORENO1_4865
clear_prints 
set_lvar_int_to_lvar_int 48@ = 204@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 204@
sub_int_lvar_from_int_lvar 49@ -= 35@
skip_cutscene_start_internal @TORENO1_5013
if 
  49@ > 9
goto_if_false @TORENO1_4967
print_with_2_numbers_now 'DES1_69' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle
goto @TORENO1_4989

:TORENO1_4967
print_with_2_numbers_now 'DES1_70' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle

:TORENO1_4989
if 
  is_message_being_displayed 
goto_if_false @TORENO1_5013
wait 0
goto @TORENO1_4989

:TORENO1_5013
skip_cutscene_end 
clear_prints 
do_fade 1000 {direction} Fade.Out

:TORENO1_5024
if 
  get_fading_status 
goto_if_false @TORENO1_5048
wait 0
goto @TORENO1_5024

:TORENO1_5048
delete_char 81@
set_char_coordinates $scplayer {x} -691.7533 {y} 960.2396 {z} 11.209
skip_cutscene_start_internal @TORENO1_5084
use_text_commands True

:TORENO1_5084
skip_cutscene_end 
clear_prints 
delete_menu 206@
remove_animation "GANGS"
clear_look_at $scplayer
restore_camera_jumpcut 
clear_char_tasks $scplayer
print 'DES1_10' {time} 10000 {flag} 1
if 
  not is_car_dead 80@
goto_if_false @TORENO1_5173
freeze_car_position 80@ {state} False
delete_char 81@
82@ = add_blip_for_car 80@
set_blip_as_friendly 82@ {state} True

:TORENO1_5173
set_char_coordinates $scplayer {x} -697.7833 {y} 961.7714 {z} 11.2955
set_char_heading $scplayer {heading} 15.8778
restore_camera_jumpcut 
switch_widescreen False
do_fade 1000 {direction} Fade.In

:TORENO1_5216
if 
  get_fading_status 
goto_if_false @TORENO1_5240
wait 0
goto @TORENO1_5216

:TORENO1_5240
set_player_control $player1 {state} True

:TORENO1_5247
wait 0
if 
  83@ == 0
goto_if_false @TORENO1_5563
if 
  not is_car_dead 80@
goto_if_false @TORENO1_5538
if 
  is_char_sitting_in_car $scplayer {vehicle} 80@
goto_if_false @TORENO1_5511
clear_prints 
remove_blip 82@
82@ = add_blip_for_coord -719.5559 {y} 980.5707 {z} 11.1371
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
199@ = create_checkpoint CheckpointType.TubeArrow {x} -719.5559 {y} 980.5707 {z} 11.1371 {pointX} 90@(88@,35f) {pointY} 125@(88@,35f) {pointZ} 160@(88@,35f) {radius} 6.0
print 'DES1_58' {time} 5000 {flag} 1
38@ = get_controller_mode 
if 
  2 > 38@
goto_if_false @TORENO1_5443
print_help_forever 'DES1_59'
goto @TORENO1_5490

:TORENO1_5443
if 
  38@ == 2
goto_if_false @TORENO1_5479
print_help_forever 'DES1_60'
goto @TORENO1_5490

:TORENO1_5479
print_help_forever 'DES1_61'

:TORENO1_5490
85@ = 1
83@ = 1
goto @TORENO1_5531

:TORENO1_5511
clear_prints 
clear_help 
print 'DES1_10' {time} 1000 {flag} 1

:TORENO1_5531
goto @TORENO1_5563

:TORENO1_5538
clear_prints 
print 'DES1_11' {time} 2000 {flag} 1
goto @TORENO1_14439

:TORENO1_5563
if 
  83@ == 1
goto_if_false @TORENO1_6129
if 
  not is_car_dead 80@
goto_if_false @TORENO1_6104
if 
  is_char_sitting_in_car $scplayer {vehicle} 80@
goto_if_false @TORENO1_6027
if 
  85@ == 0
goto_if_false @TORENO1_5827
clear_prints 
print 'DES1_58' {time} 5000 {flag} 1
remove_blip 82@
82@ = add_blip_for_coord -719.5559 {y} 980.5707 {z} 11.1371
199@ = create_checkpoint CheckpointType.TubeArrow {x} -719.5559 {y} 980.5707 {z} 11.1371 {pointX} 90@(88@,35f) {pointY} 125@(88@,35f) {pointZ} 160@(88@,35f) {radius} 6.0
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
38@ = get_controller_mode 
if 
  2 > 38@
goto_if_false @TORENO1_5773
print_help_forever 'DES1_59'
goto @TORENO1_5820

:TORENO1_5773
if 
  38@ == 2
goto_if_false @TORENO1_5809
print_help_forever 'DES1_60'
goto @TORENO1_5820

:TORENO1_5809
print_help_forever 'DES1_61'

:TORENO1_5820
85@ = 1

:TORENO1_5827
if 
  locate_char_in_car_3d $scplayer {x} -719.5559 {y} 980.5707 {z} 11.1371 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.5 {drawSphere} False
goto_if_false @TORENO1_6020
clear_prints 
add_one_off_sound -719.5559 {y} 980.5707 {z} 11.1371 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 82@
delete_checkpoint 199@
43@ = get_game_timer 
89@ = 1
199@ = create_checkpoint CheckpointType.TubeArrow {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(89@,35f) {pointY} 125@(89@,35f) {pointZ} 160@(89@,35f) {radius} 6.0
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
86@ = 1
83@ = 2

:TORENO1_6020
goto @TORENO1_6097

:TORENO1_6027
if 
  85@ == 1
goto_if_false @TORENO1_6081
remove_blip 82@
delete_checkpoint 199@
82@ = add_blip_for_car 80@
set_blip_as_friendly 82@ {state} True
85@ = 0
clear_help 
clear_prints 

:TORENO1_6081
print 'DES1_10' {time} 4000 {flag} 1

:TORENO1_6097
goto @TORENO1_6129

:TORENO1_6104
clear_prints 
print 'DES1_11' {time} 2000 {flag} 1
goto @TORENO1_14439

:TORENO1_6129
if 
  83@ == 2
goto_if_false @TORENO1_7669
draw_rect 58@ {y} 65@ {width} 72@ {height} 79@ {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 57@ {y} 64@ {width} 71@ {height} 78@ {r} 180 {g} 180 {b} 180 {a} 255
draw_rect 52@ {y} 59@ {width} 66@ {height} 73@ {r} 0 {g} 0 {b} 0 {a} 255
set_lvar_int_to_lvar_int 37@ = 89@
gosub @TORENO1_14303
set_text_scale 69@ {heightScale} 76@
set_text_centre True
if 
  37@ == 11
goto_if_false @TORENO1_6268
set_text_proportional False

:TORENO1_6268
display_text_with_2_numbers 583.7526 {offsetTop} 62@ {key} 'DES1_67' {num1} 37@ {num2} 36@
gosub @TORENO1_14303
set_text_scale 69@ {heightScale} 76@
44@ = get_game_timer 
set_lvar_int_to_lvar_int 47@ = 44@
sub_int_lvar_from_int_lvar 47@ -= 43@
47@ /= 1000
gosub @TORENO1_14303
if 
  is_int_lvar_greater_than_int_lvar 47@ > 204@
goto_if_false @TORENO1_6375
set_text_colour 180 {green} 0 {blue} 0 {alpha} 255

:TORENO1_6375
set_lvar_int_to_lvar_int 48@ = 47@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 47@
sub_int_lvar_from_int_lvar 49@ -= 35@
set_text_centre True
set_text_scale 70@ {heightScale} 77@
if or
  49@ == 11
  48@ == 11
goto_if_false @TORENO1_6462
set_text_proportional False

:TORENO1_6462
if 
  48@ > 99
goto_if_false @TORENO1_6505
clear_prints 
print 'DES1_28' {time} 4000 {flag} 1
goto @TORENO1_14439

:TORENO1_6505
if 
  49@ > 9
goto_if_false @TORENO1_6553
display_text_with_2_numbers 56@ {offsetTop} 63@ {key} 'DES1_65' {num1} 48@ {num2} 49@
goto @TORENO1_6576

:TORENO1_6553
display_text_with_2_numbers 56@ {offsetTop} 63@ {key} 'DES1_66' {num1} 48@ {num2} 49@

:TORENO1_6576
if 
  not is_car_dead 80@
goto_if_false @TORENO1_7066
if 
  not is_char_in_car $scplayer {vehicle} 80@
goto_if_false @TORENO1_6844
if 
  86@ == 1
goto_if_false @TORENO1_6673
delete_checkpoint 199@
remove_blip 82@
82@ = add_blip_for_car 80@
set_blip_as_friendly 82@ {state} True
50@ = get_game_timer 
86@ = 0
goto @TORENO1_6837

:TORENO1_6673
51@ = get_game_timer 
set_lvar_int_to_lvar_int 47@ = 51@
sub_int_lvar_from_int_lvar 47@ -= 50@
49@ = 10000
sub_int_lvar_from_int_lvar 49@ -= 47@
49@ /= 1000
if 
  49@ > 0
goto_if_false @TORENO1_6812
clear_prints 
add_next_message_to_previous_briefs False
if 
  2 > 49@
goto_if_false @TORENO1_6786
print_with_number 'DES1_26' {num} 49@ {duration} 4000 {flag} 1
goto @TORENO1_6805

:TORENO1_6786
print_with_number 'DES1_25' {num} 49@ {duration} 4000 {flag} 1

:TORENO1_6805
goto @TORENO1_6837

:TORENO1_6812
clear_prints 
print 'DES1_27' {time} 4000 {flag} 1
goto @TORENO1_14439

:TORENO1_6837
goto @TORENO1_7059

:TORENO1_6844
if 
  86@ == 0
goto_if_false @TORENO1_7059
remove_blip 82@
clear_prints 
print 'DES1_44' {time} 4000 {flag} 1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 195@ >= 89@
goto_if_false @TORENO1_6965
199@ = create_checkpoint CheckpointType.TubeArrow {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(89@,35f) {pointY} 125@(89@,35f) {pointZ} 160@(89@,35f) {radius} 6.0
goto @TORENO1_7019

:TORENO1_6965
199@ = create_checkpoint CheckpointType.TubeEnd {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(195@,35f) {pointY} 125@(195@,35f) {pointZ} 160@(195@,35f) {radius} 6.0

:TORENO1_7019
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
86@ = 1

:TORENO1_7059
goto @TORENO1_7091

:TORENO1_7066
clear_prints 
print 'DES1_43' {time} 4000 {flag} 1
goto @TORENO1_14439

:TORENO1_7091
if 
  86@ == 1
goto_if_false @TORENO1_7669
if 
  is_int_lvar_greater_than_int_lvar 195@ > 88@
goto_if_false @TORENO1_7543
if 
  locate_char_in_car_3d $scplayer {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO1_7536
clear_help 
add_one_off_sound 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 199@
remove_blip 82@
88@ += 1
set_lvar_int_to_lvar_int 89@ = 88@
89@ += 1
if 
  is_int_lvar_greater_than_int_lvar 88@ > 195@
goto_if_false @TORENO1_7269
set_lvar_int_to_lvar_int 88@ = 195@

:TORENO1_7269
if 
  is_int_lvar_greater_or_equal_to_int_lvar 195@ >= 89@
goto_if_false @TORENO1_7382
199@ = create_checkpoint CheckpointType.TubeArrow {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(89@,35f) {pointY} 125@(89@,35f) {pointZ} 160@(89@,35f) {radius} 6.0
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy
goto @TORENO1_7469

:TORENO1_7382
199@ = create_checkpoint CheckpointType.TubeEnd {x} 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f) {pointX} 90@(195@,35f) {pointY} 125@(195@,35f) {pointZ} 160@(195@,35f) {radius} 6.0
82@ = add_blip_for_coord 90@(88@,35f) {y} 125@(88@,35f) {z} 160@(88@,35f)
set_coord_blip_appearance 82@ {color} CoordAppearance.Enemy

:TORENO1_7469
if 
  not is_car_dead 80@
goto_if_false @TORENO1_7536
39@ = get_car_health 80@
39@ += 200
if 
  39@ > 1000
goto_if_false @TORENO1_7528
39@ = 1000

:TORENO1_7528
set_car_health 80@ {health} 39@

:TORENO1_7536
goto @TORENO1_7669

:TORENO1_7543
if 
  locate_char_in_car_3d $scplayer {x} 90@(195@,35f) {y} 125@(195@,35f) {z} 160@(195@,35f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO1_7669
delete_checkpoint 199@
remove_blip 82@
gosub @TORENO1_7811
if 
  5 > 205@
goto_if_false @TORENO1_7646
goto @TORENO1_14457
goto @TORENO1_7669

:TORENO1_7646
print_now 'DES1_68' {time} 5000 {flag} 1
goto @TORENO1_14439

:TORENO1_7669
if 
is_ps2_keyboard_key_pressed 135
goto_if_false @TORENO1_7693
43@ -= 1000

:TORENO1_7693
if 
is_ps2_keyboard_key_pressed 97
goto_if_false @TORENO1_7736
196@, 197@, 198@ = get_char_coordinates $scplayer
set_char_coordinates $scplayer {x} 196@ {y} 197@ {z} 198@

:TORENO1_7736
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @TORENO1_7782
45@ = 360000
43@ = 0
gosub @TORENO1_7811
goto @TORENO1_14457

:TORENO1_7782
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @TORENO1_7804
goto @TORENO1_14457

:TORENO1_7804
goto @TORENO1_5247

:TORENO1_7811
45@ = get_game_timer 
do_fade 1000 {direction} Fade.Out
request_model 25
request_animation "GANGS"
set_player_control $player1 {state} False
switch_widescreen True

:TORENO1_7847
if 
  get_fading_status 
goto_if_false @TORENO1_7871
wait 0
goto @TORENO1_7847

:TORENO1_7871
if or
  not has_model_loaded 25
  not has_animation_loaded "GANGS"
goto_if_false @TORENO1_7906
wait 0
goto @TORENO1_7871

:TORENO1_7906
clear_area -684.8021 {y} 948.1096 {z} 11.125 {radius} 100.0 {clearParticles} True
if 
  not is_car_dead 80@
goto_if_false @TORENO1_7976
set_car_coordinates 80@ {x} -680.7953 {y} 953.2972 {z} 11.125
set_car_heading 80@ {heading} 238.0439

:TORENO1_7976
if 
  is_char_in_any_car $scplayer
goto_if_false @TORENO1_8019
warp_char_from_car_to_coord $scplayer {x} -684.8021 {y} 948.1096 {z} 11.125
goto @TORENO1_8039

:TORENO1_8019
set_char_coordinates $scplayer {x} -684.8021 {y} 948.1096 {z} 11.125

:TORENO1_8039
set_char_heading $scplayer {heading} 124.6699
81@ = create_char PedType.Mission3 {modelId} 25 {x} -687.6009 {y} 946.4823 {z} 12.0389
set_char_heading 81@ {heading} 293.1942
set_fixed_camera_position -688.32 {y} 945.02 {z} 14.13 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -680.57 {y} 951.17 {z} 10.63 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 46@ = 45@
sub_int_lvar_from_int_lvar 46@ -= 43@
46@ /= 1000
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
clear_prints 
do_fade 1500 {direction} Fade.In

:TORENO1_8213
if 
  get_fading_status 
goto_if_false @TORENO1_8237
wait 0
goto @TORENO1_8213

:TORENO1_8237
if 
  10 > 49@
goto_if_false @TORENO1_8284
print_with_2_numbers_now 'DES1_32' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle
goto @TORENO1_8306

:TORENO1_8284
print_with_2_numbers_now 'DES1_33' {num1} 48@ {num2} 49@ {duration} 4000 {style} TextStyle.Middle

:TORENO1_8306
205@ = 5
34@ = 0

:TORENO1_8320
if 
  5 > 34@
goto_if_false @TORENO1_8382
if 
  is_int_lvar_greater_than_int_lvar 200@(34@,5i) > 46@
goto_if_false @TORENO1_8368
205@ -= 1

:TORENO1_8368
34@ += 1
goto @TORENO1_8320

:TORENO1_8382
switch_start 205@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TORENO1_12100 {caseNum1} 0 {caseLabel1} @TORENO1_8445 {caseNum2} 1 {caseLabel2} @TORENO1_9176 {caseNum3} 2 {caseLabel3} @TORENO1_9907 {caseNum4} 3 {caseLabel4} @TORENO1_10638 {caseNum5} 4 {caseLabel5} @TORENO1_11369 {caseNum6} -1 {caseLabel6} @TORENO1_12744 {caseNum7} -1 {caseLabel7} @TORENO1_12744

:TORENO1_8445
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} 'DES1_50' {row1} s$des1_board_name {row2} s$7436 {row3} s$7438 {row4} s$7440 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_8837
if 
  5 > 34@
goto_if_false @TORENO1_8906
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_8837

:TORENO1_8906
40@ = 0
34@ = 0

:TORENO1_8920
if 
  5 > 34@
goto_if_false @TORENO1_9169
if 
  34@ == 0
goto_if_false @TORENO1_9009
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_9080

:TORENO1_9009
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_9080
if 
  10 > 49@
goto_if_false @TORENO1_9130
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_9155

:TORENO1_9130
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_9155
34@ += 1
goto @TORENO1_8920

:TORENO1_9169
goto @TORENO1_12744

:TORENO1_9176
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$des1_board_name {row1} 'DES1_50' {row2} s$7436 {row3} s$7438 {row4} s$7440 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_9568
if 
  5 > 34@
goto_if_false @TORENO1_9637
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_9568

:TORENO1_9637
34@ = 0
40@ = 0

:TORENO1_9651
if 
  5 > 34@
goto_if_false @TORENO1_9900
if 
  34@ == 1
goto_if_false @TORENO1_9740
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_9811

:TORENO1_9740
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_9811
if 
  10 > 49@
goto_if_false @TORENO1_9861
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_9886

:TORENO1_9861
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_9886
34@ += 1
goto @TORENO1_9651

:TORENO1_9900
goto @TORENO1_12744

:TORENO1_9907
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$des1_board_name {row1} s$7436 {row2} 'DES1_50' {row3} s$7438 {row4} s$7440 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_10299
if 
  5 > 34@
goto_if_false @TORENO1_10368
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_10299

:TORENO1_10368
40@ = 0
34@ = 0

:TORENO1_10382
if 
  5 > 34@
goto_if_false @TORENO1_10631
if 
  34@ == 2
goto_if_false @TORENO1_10471
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_10542

:TORENO1_10471
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_10542
if 
  10 > 49@
goto_if_false @TORENO1_10592
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_10617

:TORENO1_10592
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_10617
34@ += 1
goto @TORENO1_10382

:TORENO1_10631
goto @TORENO1_12744

:TORENO1_10638
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$des1_board_name {row1} s$7436 {row2} s$7438 {row3} 'DES1_50' {row4} s$7440 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_11030
if 
  5 > 34@
goto_if_false @TORENO1_11099
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_11030

:TORENO1_11099
34@ = 0
40@ = 0

:TORENO1_11113
if 
  5 > 34@
goto_if_false @TORENO1_11362
if 
  34@ == 3
goto_if_false @TORENO1_11202
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_11273

:TORENO1_11202
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_11273
if 
  10 > 49@
goto_if_false @TORENO1_11323
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_11348

:TORENO1_11323
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_11348
34@ += 1
goto @TORENO1_11113

:TORENO1_11362
goto @TORENO1_12744

:TORENO1_11369
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$des1_board_name {row1} s$7436 {row2} s$7438 {row3} s$7440 {row4} 'DES1_50' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_11761
if 
  5 > 34@
goto_if_false @TORENO1_11830
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_11761

:TORENO1_11830
34@ = 0
40@ = 0

:TORENO1_11844
if 
  5 > 34@
goto_if_false @TORENO1_12093
if 
  34@ == 4
goto_if_false @TORENO1_11933
set_lvar_int_to_lvar_int 48@ = 46@
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 46@
sub_int_lvar_from_int_lvar 49@ -= 35@
goto @TORENO1_12004

:TORENO1_11933
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
activate_menu_item 206@ {row} 34@ {state} False
40@ += 1

:TORENO1_12004
if 
  10 > 49@
goto_if_false @TORENO1_12054
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_12079

:TORENO1_12054
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_12079
34@ += 1
goto @TORENO1_11844

:TORENO1_12093
goto @TORENO1_12744

:TORENO1_12100
206@ = create_menu 'DES1_34' {topLeftX} 354.0 {topLeftY} 200.0 {width} 80.0 {numColumns} 3 {interactive} False {background} True {alignment} Align.Center
set_menu_column 206@ {column} 0 {title} 'DES1_52' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 1 {title} 'DES1_53' {row0} s$des1_board_name {row1} s$7436 {row2} s$7438 {row3} s$7440 {row4} s$7442 {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 206@ {column} 2 {title} 'DES1_54' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
34@ = 0

:TORENO1_12486
if 
  5 > 34@
goto_if_false @TORENO1_12555
set_lvar_int_to_lvar_int 35@ = 34@
35@ += 1
set_menu_item_with_number 206@ {column} 0 {row} 34@ {gxt} 'DES1_51' {number} 35@
34@ += 1
goto @TORENO1_12486

:TORENO1_12555
34@ = 0
40@ = 0

:TORENO1_12569
if 
  5 > 34@
goto_if_false @TORENO1_12737
set_lvar_int_to_lvar_int 48@ = 200@(40@,5i)
48@ /= 60
set_lvar_int_to_lvar_int 35@ = 48@
35@ *= 60
set_lvar_int_to_lvar_int 49@ = 200@(40@,5i)
sub_int_lvar_from_int_lvar 49@ -= 35@
40@ += 1
if 
  10 > 49@
goto_if_false @TORENO1_12698
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_66' {number1} 48@ {number2} 49@
goto @TORENO1_12723

:TORENO1_12698
set_menu_item_with_2_numbers 206@ {column} 2 {row} 34@ {gxt} 'DES1_65' {number1} 48@ {number2} 49@

:TORENO1_12723
34@ += 1
goto @TORENO1_12569

:TORENO1_12737
goto @TORENO1_12744

:TORENO1_12744
if 
  is_message_being_displayed 
goto_if_false @TORENO1_12768
wait 0
goto @TORENO1_12744

:TORENO1_12768
224@ = 0
225@ = 1
226@ = 2
227@ = 0
233@ = 0
228@ = 0
229@ = 0

:TORENO1_12817
wait 0
if 
  228@ == 0
goto_if_false @TORENO1_13642
if 
  224@ <> 0
goto_if_false @TORENO1_13117
if 
  227@ == 0
goto_if_false @TORENO1_12903
if 
  has_mission_audio_loaded 226@
goto_if_false @TORENO1_12896
clear_mission_audio 226@

:TORENO1_12896
227@ = 1

:TORENO1_12903
if 
  227@ == 1
goto_if_false @TORENO1_12940
load_mission_audio 225@ {audioId} 207@(224@,17i)
227@ = 2

:TORENO1_12940
if 
  227@ == 2
goto_if_false @TORENO1_13000
if 
  has_mission_audio_loaded 225@
goto_if_false @TORENO1_13000
play_mission_audio 225@
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
227@ = 3

:TORENO1_13000
if 
  227@ == 3
goto_if_false @TORENO1_13117
if 
  has_mission_audio_finished 225@
goto_if_false @TORENO1_13117
clear_this_print $des1_text(224@,17s)
if 
  225@ == 1
goto_if_false @TORENO1_13082
225@ = 2
226@ = 1
goto @TORENO1_13096

:TORENO1_13082
225@ = 1
226@ = 2

:TORENO1_13096
224@ = 0
227@ = 0
228@ = 1

:TORENO1_13117
if 
  229@ == 0
goto_if_false @TORENO1_13635
if 
  not is_char_dead 81@
goto_if_false @TORENO1_13207
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000
task_play_anim 81@ {animationName} "PRTIAL_GNGTLKF" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:TORENO1_13207
switch_start 205@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TORENO1_13575 {caseNum1} 0 {caseLabel1} @TORENO1_13270 {caseNum2} 1 {caseLabel2} @TORENO1_13331 {caseNum3} 2 {caseLabel3} @TORENO1_13392 {caseNum4} 3 {caseLabel4} @TORENO1_13453 {caseNum5} 4 {caseLabel5} @TORENO1_13514 {caseNum6} -1 {caseLabel6} @TORENO1_13635 {caseNum7} -1 {caseLabel7} @TORENO1_13635

:TORENO1_13270
if 
  227@ == 0
goto_if_false @TORENO1_13302
224@ = 9
229@ = 1

:TORENO1_13302
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
42@ = 5000
goto @TORENO1_13635

:TORENO1_13331
if 
  227@ == 0
goto_if_false @TORENO1_13363
224@ = 15
229@ = 1

:TORENO1_13363
42@ = 4000
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13635

:TORENO1_13392
if 
  227@ == 0
goto_if_false @TORENO1_13424
224@ = 10
229@ = 1

:TORENO1_13424
42@ = 3000
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13635

:TORENO1_13453
if 
  227@ == 0
goto_if_false @TORENO1_13485
224@ = 14
229@ = 1

:TORENO1_13485
42@ = 2000
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13635

:TORENO1_13514
if 
  227@ == 0
goto_if_false @TORENO1_13546
224@ = 11
229@ = 1

:TORENO1_13546
42@ = 1000
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13635

:TORENO1_13575
if 
  227@ == 0
goto_if_false @TORENO1_13607
224@ = 13
229@ = 1

:TORENO1_13607
42@ = 0
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
goto @TORENO1_13635

:TORENO1_13635
goto @TORENO1_12817

:TORENO1_13642
delete_menu 206@
if 
  not is_char_dead 81@
goto_if_false @TORENO1_13750
task_look_at_char $scplayer {target} 81@ {time} 4000
clear_char_tasks 81@
87@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -688.0 {y} 944.0 {z} 14.0 {speed} MoveState.Walk {time} 20000
task_go_straight_to_coord -1 {x} -688.0 {y} 938.0 {z} 14.0 {speed} MoveState.Walk {time} 3000
close_sequence_task 87@
perform_sequence_task 81@ {sequence} 87@
clear_sequence_task 87@

:TORENO1_13750
set_fixed_camera_position -685.08 {y} 949.38 {z} 12.36 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -688.21 {y} 938.04 {z} 14.72 {switchStyle} SwitchType.JumpCut
clear_prints 
if 
  5 > 205@
goto_if_false @TORENO1_14171
84@ = 0
if 
  not is_char_dead 81@
goto_if_false @TORENO1_13857
stop_char_facial_talk 81@
start_char_facial_talk 81@ {duration} 4000

:TORENO1_13857
224@ = 12

:TORENO1_13864
if 
  84@ == 0
goto_if_false @TORENO1_14171
if 
  224@ <> 0
goto_if_false @TORENO1_14160
if 
  227@ == 0
goto_if_false @TORENO1_13946
if 
  has_mission_audio_loaded 226@
goto_if_false @TORENO1_13939
clear_mission_audio 226@

:TORENO1_13939
227@ = 1

:TORENO1_13946
if 
  227@ == 1
goto_if_false @TORENO1_13983
load_mission_audio 225@ {audioId} 207@(224@,17i)
227@ = 2

:TORENO1_13983
if 
  227@ == 2
goto_if_false @TORENO1_14043
if 
  has_mission_audio_loaded 225@
goto_if_false @TORENO1_14043
play_mission_audio 225@
print_now $des1_text(224@,17s) {time} 10000 {flag} 1
227@ = 3

:TORENO1_14043
if 
  227@ == 3
goto_if_false @TORENO1_14160
if 
  has_mission_audio_finished 225@
goto_if_false @TORENO1_14160
clear_this_print $des1_text(224@,17s)
if 
  225@ == 1
goto_if_false @TORENO1_14125
225@ = 2
226@ = 1
goto @TORENO1_14139

:TORENO1_14125
225@ = 1
226@ = 2

:TORENO1_14139
224@ = 0
227@ = 0
84@ = 1

:TORENO1_14160
wait 0
goto @TORENO1_13864

:TORENO1_14171
84@ = 0

:TORENO1_14178
if 
  84@ == 0
goto_if_false @TORENO1_14273
if 
  not is_char_dead 81@
goto_if_false @TORENO1_14255
41@ = get_script_task_status 81@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 41@ == 7
goto_if_false @TORENO1_14248
84@ = 1

:TORENO1_14248
goto @TORENO1_14262

:TORENO1_14255
84@ = 1

:TORENO1_14262
wait 0
goto @TORENO1_14178

:TORENO1_14273
clear_char_tasks $scplayer
clear_look_at $scplayer
delete_char 81@
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:TORENO1_14303
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:TORENO1_14439
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TORENO1_14457
print_with_number_big 'M_PASS' {num} 42@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 42@
clear_wanted_level $player1
play_mission_passed_tune 1
set_int_stat StatId.PassedDesert1 {value} 1
register_mission_passed 'DESERT1'
player_made_progress 1
remove_blip $desert_contact_blip
$flag_desert_mission_counter += 1
return 

:TORENO1_14529
$timer_mobile_start = get_game_timer 
use_text_commands False
mark_car_as_no_longer_needed 80@
delete_menu 206@
remove_char_elegantly 81@
mark_char_as_no_longer_needed 81@
remove_blip 82@
delete_checkpoint 199@
mark_model_as_no_longer_needed 444
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 348
remove_animation "ON_LOOKERS"
remove_animation "GANGS"
set_car_density_multiplier 1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 76---------------
// Originally: Highjack

:TORENO2
script_name 'TORENO2'
gosub @TORENO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @TORENO2_38
gosub @TORENO2_10697

:TORENO2_38
gosub @TORENO2_10787
terminate_this_script 

:TORENO2_47
$onmission = 1
register_mission_given 
load_mission_text 'TORENO2'
clear_prints 
wait 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
75@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
111@ = 0.0
112@ = 0.0
113@ = 0.0
114@ = 0.0
115@ = 0.0
116@ = 0.0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0.0
53@ = 0.0
54@ = 0
117@ = 0.0
118@ = 0.0
119@ = 0.0
120@ = 0.0
121@ = 0.0
122@ = 0.0
123@ = 0.0
55@ = 0
56@ = 0
124@ = 0.0
73@ = 0
74@ = 0
75@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
57@ = 0
62@ = 0.0
63@ = 0.0
64@ = 0.0
65@ = 0.0
66@ = 0.0
67@ = 0.0
68@ = 0.0
69@ = 0.0
70@ = 0.0
71@ = 0.0
72@ = 0.0
clear_area -685.1 {y} 922.0 {z} 10.9 {radius} 180.0 {clearParticles} True
clear_area -692.2 {y} 948.0 {z} 11.2 {radius} 100.0 {clearParticles} True
force_weather_now WeatherType.ExtraSunnyVegas
make_player_gang_disappear 
load_cutscene 'DESERT2'

:TORENO2_646
if 
  not has_cutscene_loaded 
goto_if_false @TORENO2_670
wait 0
goto @TORENO2_646

:TORENO2_670
start_cutscene 
do_fade 1000 {direction} Fade.In

:TORENO2_679
if 
  not has_cutscene_finished 
goto_if_false @TORENO2_703
wait 0
goto @TORENO2_679

:TORENO2_703
do_fade 0 {direction} Fade.Out

:TORENO2_709
if 
  get_fading_status 
goto_if_false @TORENO2_733
wait 0
goto @TORENO2_709

:TORENO2_733
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
release_weather 
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 514
request_model 461
request_model 584
request_model 567
request_animation "BIKELEAP"
load_special_character 1 {modelName} 'CESAR'
load_path_nodes_in_area -1695.1 {leftBottomY} 587.6 {rightTopX} -1771.3 {rightTopY} -1310.0
remove_group $Players_Group
set_player_group_recruitment $player1 {state} False
set_player_group_to_follow_always $player1 {state} True
load_all_models_now 
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -701.09 {y} 917.26 {z} 12.08 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -694.0 {y} 938.7 {z} 16.69 {switchStyle} SwitchType.JumpCut
suppress_car_model 403
suppress_car_model 409
suppress_car_model 413
suppress_car_model 414
suppress_car_model 418
suppress_car_model 423
suppress_car_model 428
suppress_car_model 431
suppress_car_model 437
suppress_car_model 440
suppress_car_model 455
suppress_car_model 456
suppress_car_model 458
suppress_car_model 482
suppress_car_model 483
suppress_car_model 489
suppress_car_model 498
suppress_car_model 499
suppress_car_model 508
suppress_car_model 524
suppress_car_model 525
suppress_car_model 527
suppress_car_model 552
suppress_car_model 582
suppress_car_model 588
suppress_car_model 461
suppress_car_model 462
suppress_car_model 463
suppress_car_model 468
suppress_car_model 509
suppress_car_model 510
suppress_car_model 521
suppress_car_model 522
suppress_car_model 581
suppress_car_model 586
clear_area -693.6 {y} 924.5 {z} 11.3 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} -693.6 {y} 924.5 {z} 11.3
set_char_heading $scplayer {heading} 71.2
clear_area -685.1 {y} 922.0 {z} 10.9 {radius} 180.0 {clearParticles} True
clear_area -692.2 {y} 948.0 {z} 11.2 {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 461 {text} "PREACHER"
36@ = create_car 461 {x} -712.5 {y} 943.5 {z} 10.8
set_car_heading 36@ {heading} 32.7
clear_area -709.0 {y} 952.0 {z} 11.2 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
39@ = create_car 567 {x} -709.0 {y} 952.0 {z} 11.2
set_car_heading 39@ {heading} 240.7
change_car_colour 39@ {color1} 3 {color2} 3
$cesar = create_char PedType.Mission1 {modelId} 290 {x} -703.7 {y} 932.4 {z} 11.4
set_char_get_out_upside_down_car $cesar {state} False
set_char_heading $cesar {heading} 214.6
set_char_never_targetted $cesar {state} True
set_char_only_damaged_by_player $cesar {state} True
set_char_cant_be_dragged_out $cesar {state} True
126@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
set_char_decision_maker $cesar {handleOrTemplate} 126@
set_next_desired_move_state MoveState.Walk
125@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} 10000 {radius} 3.0 {heading} 0.0
task_pause -1 {time} 5300
task_go_straight_to_coord -1 {x} -710.0 {y} 938.4 {z} 11.4 {speed} MoveState.Walk {time} -1
close_sequence_task 125@
perform_sequence_task $cesar {sequence} 125@
clear_sequence_task 125@
set_next_desired_move_state MoveState.Walk
125@ = open_sequence_task 
task_goto_char_offset -1 {target} $cesar {time} 10000 {radius} 5.0 {heading} 0.0
task_pause -1 {time} 5000
task_go_straight_to_coord -1 {x} -708.0 {y} 937.9 {z} 11.4 {speed} MoveState.Walk {time} -1
close_sequence_task 125@
perform_sequence_task $scplayer {sequence} 125@
clear_sequence_task 125@
shut_all_chars_up True
43@ = 1
skip_cutscene_start_internal @TORENO2_1800
load_mission_audio MissionAudioSlot.Slot3 {audioId} 19400

:TORENO2_1576
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @TORENO2_1602
wait 0
goto @TORENO2_1576

:TORENO2_1602
TIMERB = 0
do_fade 500 {direction} Fade.In

:TORENO2_1616
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @TORENO2_1642
goto @TORENO2_10715

:TORENO2_1642
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_1674
goto @TORENO2_10697

:TORENO2_1674
if 
  41@ == 0
goto_if_false @TORENO2_2182
if 
  42@ == 0
goto_if_false @TORENO2_1757
if 
  TIMERB > 1000
goto_if_false @TORENO2_1757
73@ = 1
74@ = 0
gosub @TORENO2_15177
42@ = 1

:TORENO2_1757
if 
  42@ == 1
goto_if_false @TORENO2_2182
if 
  73@ == 0
goto_if_false @TORENO2_2182
43@ = 0

:TORENO2_1800
skip_cutscene_end 
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_1834
goto @TORENO2_10697

:TORENO2_1834
if 
  43@ == 1
goto_if_false @TORENO2_1932
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
73@ = 0
do_fade 500 {direction} Fade.Out

:TORENO2_1876
if 
  get_fading_status 
goto_if_false @TORENO2_1900
wait 0
goto @TORENO2_1876

:TORENO2_1900
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_1932
goto @TORENO2_10697

:TORENO2_1932
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -710.0 {y} 938.4 {z} 11.4
set_char_heading $scplayer {heading} 47.9
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} -708.0 {y} 937.9 {z} 11.4
set_char_heading $cesar {heading} 47.9
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
46@ = 1
set_player_group_recruitment $player1 {state} False
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowLimited
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True
print_now 'TOR1_01' {time} 7000 {flag} 1
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  43@ == 1
goto_if_false @TORENO2_2168
do_fade 500 {direction} Fade.In

:TORENO2_2112
if 
  get_fading_status 
goto_if_false @TORENO2_2136
wait 0
goto @TORENO2_2112

:TORENO2_2136
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_2168
goto @TORENO2_10697

:TORENO2_2168
42@ = 0
41@ = 1

:TORENO2_2182
if 
  41@ == 1
goto_if_false @TORENO2_2486
if 
  42@ == 0
goto_if_false @TORENO2_2472
if 
  46@ == 1
goto_if_false @TORENO2_2472
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_2472
34@ = create_car 514 {x} -1687.8 {y} 537.7 {z} 36.8
set_car_heading 34@ {heading} 137.0
37@ = create_car 584 {x} -1679.5 {y} 545.9 {z} 36.9
set_car_heading 37@ {heading} 137.0
attach_trailer_to_cab 37@ {cab} 34@
set_can_burst_car_tyres 34@ {state} False
lock_car_doors 34@ {lockStatus} CarLock.LockoutPlayerOnly
35@ = create_random_char_as_driver 34@
set_car_only_damaged_by_player 34@ {state} True
set_char_can_be_shot_in_vehicle 35@ {state} False
set_car_cruise_speed 34@ {maxSpeed} 0.0
set_car_driving_style 34@ {drivingStyle} DrivingMode.AvoidCars
set_car_stay_in_slow_lane 34@ {state} True
mark_car_as_no_longer_needed 39@
mark_model_as_no_longer_needed 567
clear_prints 
shut_char_up_for_scripted_speech $cesar {state} True
73@ = 2
74@ = 0
gosub @TORENO2_15177
remove_blip 40@
if 
  not is_car_dead 34@
goto_if_false @TORENO2_2458
40@ = add_blip_for_car 34@

:TORENO2_2458
75@ = 0
41@ = 2

:TORENO2_2472
gosub @TORENO2_11832
gosub @TORENO2_11512

:TORENO2_2486
if 
  41@ == 2
goto_if_false @TORENO2_5717
if 
  is_char_in_any_car $scplayer
goto_if_false @TORENO2_2598
if 
  is_char_in_any_car $cesar
goto_if_false @TORENO2_2598
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @TORENO2_2598
load_scene -1641.0 {y} 586.5 {z} 38.5
set_char_coordinates $scplayer {x} -1641.0 {y} 586.5 {z} 38.5
set_car_heading 36@ {heading} 136.9

:TORENO2_2598
if 
  75@ == 0
goto_if_false @TORENO2_2657
if 
  73@ == 0
goto_if_false @TORENO2_2657
print_now 'TOR1_04' {time} 7000 {flag} 1
75@ = 1

:TORENO2_2657
if 
  75@ == 1
goto_if_false @TORENO2_3140
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_3140
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_3140
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -1042.5 {leftBottomY} 1016.4 {leftBottomZ} 15.3 {rightTopX} -810.5 {rightTopY} 1300.7 {rightTopZ} 50.0 {angle} 250.0 {drawSphere} False
goto_if_false @TORENO2_2837
if 
  105@ == 0
goto_if_false @TORENO2_2830
if 
  73@ == 0
goto_if_false @TORENO2_2830
73@ = 3
74@ = 0
gosub @TORENO2_15177
105@ = 1

:TORENO2_2830
goto @TORENO2_2844

:TORENO2_2837
105@ = 0

:TORENO2_2844
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -881.0 {leftBottomY} 1029.0 {leftBottomZ} 50.9 {rightTopX} -970.2 {rightTopY} 955.7 {rightTopZ} 33.0 {angle} -20.0 {drawSphere} False
goto_if_false @TORENO2_2985
if 
  106@ == 0
goto_if_false @TORENO2_2978
if 
  73@ == 0
goto_if_false @TORENO2_2978
73@ = 4
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177
106@ = 1

:TORENO2_2978
goto @TORENO2_2992

:TORENO2_2985
106@ = 0

:TORENO2_2992
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -774.9 {leftBottomY} 1445.6 {leftBottomZ} 10.0 {rightTopX} -1187.0 {rightTopY} 1275.6 {rightTopZ} 50.0 {angle} -250.0 {drawSphere} False
goto_if_false @TORENO2_3133
if 
  107@ == 0
goto_if_false @TORENO2_3126
if 
  73@ == 0
goto_if_false @TORENO2_3126
73@ = 5
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177
107@ = 1

:TORENO2_3126
goto @TORENO2_3140

:TORENO2_3133
107@ = 0

:TORENO2_3140
if 
  2 > 75@
goto_if_false @TORENO2_3264
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} -1143.8 {leftBottomY} 1041.0 {leftBottomZ} 50.9 {rightTopX} -1393.7 {rightTopY} 797.3 {rightTopZ} 33.0 {angle} -60.0 {drawSphere} False
goto_if_false @TORENO2_3264
if 
  73@ == 0
goto_if_false @TORENO2_3264
73@ = 6
74@ = 1
108@ = 6
gosub @TORENO2_15177
75@ = 3

:TORENO2_3264
if 
  75@ == 3
goto_if_false @TORENO2_3411
if 
  73@ == 0
goto_if_false @TORENO2_3411
if 
  locate_char_in_car_car_2d $scplayer {handle} 34@ {xRadius} 180.0 {yRadius} 180.0 {drawSphere} False
goto_if_false @TORENO2_3411
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_3411
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_3411
shut_char_up_for_scripted_speech $scplayer {state} True
73@ = 6
74@ = 0
108@ = 1
gosub @TORENO2_15177
75@ = 4

:TORENO2_3411
if 
  75@ == 4
goto_if_false @TORENO2_3461
if 
  73@ == 0
goto_if_false @TORENO2_3461
shut_char_up_for_scripted_speech $scplayer {state} False
75@ = 5

:TORENO2_3461
if 
  42@ == 0
goto_if_false @TORENO2_3616
if 
  locate_char_in_car_car_2d $scplayer {handle} 34@ {xRadius} 180.0 {yRadius} 180.0 {drawSphere} False
goto_if_false @TORENO2_3606
set_car_forward_speed 34@ {forwardSpeed} 35.0
if 
  not is_char_dead 35@
goto_if_false @TORENO2_3592
125@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1914.6 {y} -1187.7 {z} 30.0 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 125@
perform_sequence_task 35@ {sequence} 125@
clear_sequence_task 125@

:TORENO2_3592
42@ = 1
goto @TORENO2_3616

:TORENO2_3606
set_car_heading 34@ {heading} 137.0

:TORENO2_3616
if 
  42@ == 1
goto_if_false @TORENO2_3722
if 
  locate_char_in_car_car_3d $scplayer {vehicle} 34@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @TORENO2_3722
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_3722
print_now 'TOR1_10' {time} 11000 {flag} 1
set_car_cruise_speed 34@ {maxSpeed} 37.0
42@ = 2

:TORENO2_3722
if 
  42@ == 2
goto_if_false @TORENO2_5682
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_5682
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_5682
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_4178
if 
  47@ == 0
goto_if_false @TORENO2_3966
task_play_anim $cesar {animationName} "BK_RDY_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 2
print_now 'HOLD_1' {time} 7000 {flag} 1
47@ = 1

:TORENO2_3966
if 
  47@ == 1
goto_if_false @TORENO2_4171
if 
  61@ == 0
goto_if_false @TORENO2_4021
60@ = get_game_timer 
61@ = 1
goto @TORENO2_4171

:TORENO2_4021
59@ = get_game_timer 
set_lvar_int_to_lvar_int 58@ = 59@
sub_int_lvar_from_int_lvar 58@ -= 60@
if 
  58@ > 3500
goto_if_false @TORENO2_4127
set_player_control $player1 {state} False
attach_car_to_car 36@ {handle} 34@ {xOffset} -2.692 {yOffset} 2.484 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
42@ = 0
54@ = 0
41@ = 3

:TORENO2_4127
if 
  54@ == 0
goto_if_false @TORENO2_4171
if 
  58@ > 1000
goto_if_false @TORENO2_4171
54@ = 1

:TORENO2_4171
goto @TORENO2_4203

:TORENO2_4178
clear_this_print 'HOLD_1'
61@ = 0
47@ = 0

:TORENO2_4203
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 12.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_4653
if 
  48@ == 0
goto_if_false @TORENO2_4646
if 
  51@ == 0
goto_if_false @TORENO2_4516
if 
  is_char_playing_anim $cesar {animationName} "BK_BLNCE_IN"
goto_if_false @TORENO2_4466
52@ = get_char_anim_current_time $cesar {animationName} "BK_BLNCE_IN"
if 
  52@ == 1.0
goto_if_false @TORENO2_4459
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4459
goto @TORENO2_4516

:TORENO2_4466
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4516
if 
  51@ == 2
goto_if_false @TORENO2_4583
task_play_anim $cesar {animationName} "BK_RDY_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:TORENO2_4583
if 
  73@ == 0
goto_if_false @TORENO2_4639
73@ = 10
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177

:TORENO2_4639
48@ = 1

:TORENO2_4646
goto @TORENO2_4660

:TORENO2_4653
48@ = 0

:TORENO2_4660
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -6.0 {yOffset} 8.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -6.0 {yOffset} -8.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_5110
if 
  49@ == 0
goto_if_false @TORENO2_5103
if 
  51@ == 0
goto_if_false @TORENO2_4973
if 
  is_char_playing_anim $cesar {animationName} "BK_BLNCE_IN"
goto_if_false @TORENO2_4923
52@ = get_char_anim_current_time $cesar {animationName} "BK_BLNCE_IN"
if 
  52@ == 1.0
goto_if_false @TORENO2_4916
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4916
goto @TORENO2_4973

:TORENO2_4923
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_4973
if 
  51@ == 2
goto_if_false @TORENO2_5040
task_play_anim $cesar {animationName} "BK_RDY_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:TORENO2_5040
if 
  73@ == 0
goto_if_false @TORENO2_5096
73@ = 7
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177

:TORENO2_5096
49@ = 1

:TORENO2_5103
goto @TORENO2_5117

:TORENO2_5110
49@ = 0

:TORENO2_5117
111@, 112@, 113@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} 10.0
114@, 115@, 116@ = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} -8.0 {zOffset} -10.0
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 111@ {leftBottomY} 112@ {leftBottomZ} 113@ {rightTopX} 114@ {rightTopY} 115@ {rightTopZ} 116@ {angle} 3.0 {drawSphere} False
goto_if_false @TORENO2_5567
if 
  50@ == 0
goto_if_false @TORENO2_5560
if 
  51@ == 0
goto_if_false @TORENO2_5430
if 
  is_char_playing_anim $cesar {animationName} "BK_BLNCE_IN"
goto_if_false @TORENO2_5380
52@ = get_char_anim_current_time $cesar {animationName} "BK_BLNCE_IN"
if 
  52@ == 1.0
goto_if_false @TORENO2_5373
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_5373
goto @TORENO2_5430

:TORENO2_5380
task_play_anim $cesar {animationName} "BK_BLNCE_IN" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
51@ = 1

:TORENO2_5430
if 
  51@ == 2
goto_if_false @TORENO2_5497
task_play_anim $cesar {animationName} "BK_RDY_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 1

:TORENO2_5497
if 
  73@ == 0
goto_if_false @TORENO2_5553
73@ = 9
74@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177

:TORENO2_5553
50@ = 1

:TORENO2_5560
goto @TORENO2_5574

:TORENO2_5567
50@ = 0

:TORENO2_5574
if and
  47@ == 0
  48@ == 0
  49@ == 0
  50@ == 0
goto_if_false @TORENO2_5682
if 
  51@ > 0
goto_if_false @TORENO2_5682
task_play_anim $cesar {animationName} "BK_BLNCE_OUT" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
51@ = 0

:TORENO2_5682
gosub @TORENO2_12035
gosub @TORENO2_11512
gosub @TORENO2_11832
gosub @TORENO2_12104
gosub @TORENO2_12228

:TORENO2_5717
if 
  41@ == 3
goto_if_false @TORENO2_8119
if 
  42@ == 0
goto_if_false @TORENO2_5803
remove_char_from_group $cesar
task_play_anim $cesar {animationName} "BK_JMP" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@ = 1

:TORENO2_5803
if 
  42@ == 1
goto_if_false @TORENO2_5889
if 
  is_char_playing_anim $cesar {animationName} "BK_JMP"
goto_if_false @TORENO2_5889
52@ = get_char_anim_current_time $cesar {animationName} "BK_JMP"
if 
  52@ == 1.0
goto_if_false @TORENO2_5889
42@ = 2

:TORENO2_5889
if 
  42@ == 2
goto_if_false @TORENO2_6058
if 
  not is_car_dead 36@
goto_if_false @TORENO2_5931
remove_char_from_car_maintain_position $cesar {vehicle} 36@

:TORENO2_5931
attach_char_to_car $cesar {vehicle} 34@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Unarmed
task_play_anim $cesar {animationName} "TRUCK_GETIN" {animationFile} "BIKELEAP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  not is_car_dead 36@
goto_if_false @TORENO2_6044
detach_car 36@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:TORENO2_6044
set_player_control $player1 {state} True
42@ = 3

:TORENO2_6058
if 
  42@ > 3
goto_if_false @TORENO2_6092
53@ = get_car_heading 34@
set_char_heading $cesar {heading} 53@

:TORENO2_6092
if 
  42@ == 3
goto_if_false @TORENO2_6195
if 
  is_char_playing_anim $cesar {animationName} "TRUCK_GETIN"
goto_if_false @TORENO2_6195
52@ = get_char_anim_current_time $cesar {animationName} "TRUCK_GETIN"
if 
  52@ > 0.41
goto_if_false @TORENO2_6195
56@ = 1
42@ = 4

:TORENO2_6195
if 
  42@ == 4
goto_if_false @TORENO2_6358
if 
  is_char_playing_anim $cesar {animationName} "TRUCK_GETIN"
goto_if_false @TORENO2_6358
52@ = get_char_anim_current_time $cesar {animationName} "TRUCK_GETIN"
if 
  52@ > 0.66
goto_if_false @TORENO2_6358
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6358
task_play_anim 35@ {animationName} "TRUCK_DRIVER" {animationFile} "BIKELEAP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
54@ = 1
42@ = 5

:TORENO2_6358
if 
  42@ == 5
goto_if_false @TORENO2_6593
if 
  is_char_playing_anim $cesar {animationName} "TRUCK_GETIN"
goto_if_false @TORENO2_6593
52@ = get_char_anim_current_time $cesar {animationName} "TRUCK_GETIN"
if 
  52@ == 1.0
goto_if_false @TORENO2_6593
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6540
warp_char_from_car_to_coord 35@ {x} 0.0 {y} 0.0 {z} 0.0
warp_char_into_car_as_passenger 35@ {handle} 34@ {seat} -1
task_play_anim 35@ {animationName} "STRUGGLE_DRIVER" {animationFile} "BIKELEAP" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:TORENO2_6540
task_play_anim $cesar {animationName} "STRUGGLE_CESAR" {animationFile} "BIKELEAP" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@ = 6

:TORENO2_6593
if 
  42@ == 6
goto_if_false @TORENO2_6692
if 
  54@ == 16
goto_if_false @TORENO2_6692
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6692
clear_char_tasks $cesar
clear_char_tasks 35@
125@ = open_sequence_task 
task_leave_car_immediately -1 {vehicle} 34@
close_sequence_task 125@
perform_sequence_task 35@ {sequence} 125@
clear_sequence_task 125@
42@ = 8

:TORENO2_6692
if 
  42@ == 8
goto_if_false @TORENO2_6884
if 
  not is_char_dead 35@
goto_if_false @TORENO2_6884
if 
  not is_char_in_any_car 35@
goto_if_false @TORENO2_6884
set_car_temp_action 34@ {actionId} TempAction.None {time} -1
set_car_only_damaged_by_player 34@ {state} False
task_dead 35@
detach_char_from_car $cesar
warp_char_into_car_as_passenger $cesar {handle} 34@ {seat} -1
45@ = 1
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
mark_model_as_no_longer_needed 461
remove_animation "BIKELEAP"
release_path_nodes 
clear_prints 
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
shut_char_up_for_scripted_speech $cesar {state} False
print_now 'TOR1_11' {time} 4000 {flag} 1
42@ = 0
73@ = 0
75@ = 0
41@ = 4

:TORENO2_6884
if 
  54@ == 1
goto_if_false @TORENO2_6943
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 200
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 2

:TORENO2_6943
if 
  54@ == 2
goto_if_false @TORENO2_7021
if 
  TIMERA > 200
goto_if_false @TORENO2_7021
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 300
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 3

:TORENO2_7021
if 
  54@ == 3
goto_if_false @TORENO2_7099
if 
  TIMERA > 300
goto_if_false @TORENO2_7099
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnRight {time} 200
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 4

:TORENO2_7099
if 
  54@ == 4
goto_if_false @TORENO2_7177
if 
  TIMERA > 200
goto_if_false @TORENO2_7177
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 5

:TORENO2_7177
if 
  54@ == 5
goto_if_false @TORENO2_7255
if 
  TIMERA > 500
goto_if_false @TORENO2_7255
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 6

:TORENO2_7255
if 
  54@ == 6
goto_if_false @TORENO2_7333
if 
  TIMERA > 500
goto_if_false @TORENO2_7333
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 7

:TORENO2_7333
if 
  54@ == 7
goto_if_false @TORENO2_7411
if 
  TIMERA > 1000
goto_if_false @TORENO2_7411
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnRight {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 8

:TORENO2_7411
if 
  54@ == 8
goto_if_false @TORENO2_7489
if 
  TIMERA > 500
goto_if_false @TORENO2_7489
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 9

:TORENO2_7489
if 
  54@ == 9
goto_if_false @TORENO2_7567
if 
  TIMERA > 1000
goto_if_false @TORENO2_7567
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 10

:TORENO2_7567
if 
  54@ == 10
goto_if_false @TORENO2_7645
if 
  TIMERA > 500
goto_if_false @TORENO2_7645
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 11

:TORENO2_7645
if 
  54@ == 11
goto_if_false @TORENO2_7723
if 
  TIMERA > 1000
goto_if_false @TORENO2_7723
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnRight {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 12

:TORENO2_7723
if 
  54@ == 12
goto_if_false @TORENO2_7801
if 
  TIMERA > 500
goto_if_false @TORENO2_7801
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 13

:TORENO2_7801
if 
  54@ == 13
goto_if_false @TORENO2_7879
if 
  TIMERA > 1000
goto_if_false @TORENO2_7879
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.TurnLeft {time} 500
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 14

:TORENO2_7879
if 
  54@ == 14
goto_if_false @TORENO2_7957
if 
  TIMERA > 500
goto_if_false @TORENO2_7957
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.GoForward {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 15

:TORENO2_7957
if 
  54@ == 15
goto_if_false @TORENO2_8035
if 
  TIMERA > 1000
goto_if_false @TORENO2_8035
set_car_status 34@ {status} EntityStatus.Physics
set_car_temp_action 34@ {actionId} TempAction.HandbrakeStraight {time} 1000
set_car_cruise_speed 34@ {maxSpeed} 35.0
TIMERA = 0
54@ = 16

:TORENO2_8035
if 
  56@ == 1
goto_if_false @TORENO2_8105
if 
  not is_car_door_fully_open 34@ {door} CarDoor.LeftFrontDoor
goto_if_false @TORENO2_8098
124@ += 0.1
open_car_door_a_bit 34@ {door} CarDoor.LeftFrontDoor {value} 124@
goto @TORENO2_8105

:TORENO2_8098
56@ = 2

:TORENO2_8105
gosub @TORENO2_12228
gosub @TORENO2_12035

:TORENO2_8119
if 
  41@ == 4
goto_if_false @TORENO2_8617
if 
  is_char_in_any_car $scplayer
goto_if_false @TORENO2_8198
if 
  is_char_in_any_car $cesar
goto_if_false @TORENO2_8198
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @TORENO2_8198
42@ = 0
41@ = 5

:TORENO2_8198
if 
  42@ == 0
goto_if_false @TORENO2_8377
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_8377
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_8309
remove_blip 40@
40@ = add_blip_for_coord -2016.5 {y} 157.7 {z} 26.7
print 'TOR1_06' {time} 7000 {flag} 1
55@ = 1
goto @TORENO2_8352

:TORENO2_8309
remove_blip 40@
40@ = add_blip_for_car 37@
set_blip_as_friendly 40@ {state} True
print 'TOR1_21' {time} 7000 {flag} 1
55@ = 0

:TORENO2_8352
set_radio_channel RadioChannel.PlaybackFM
45@ = 1
42@ = 1
TIMERB = 0

:TORENO2_8377
if 
  42@ == 1
goto_if_false @TORENO2_8617
if 
  75@ == 0
goto_if_false @TORENO2_8496
if 
  TIMERB > 7000
goto_if_false @TORENO2_8496
if 
  55@ == 1
goto_if_false @TORENO2_8496
if 
  45@ == 1
goto_if_false @TORENO2_8496
73@ = 11
74@ = 0
gosub @TORENO2_15177
75@ = 1

:TORENO2_8496
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_8603
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_8603
if 
  locate_car_3d 34@ {x} -2016.5 {y} 157.7 {z} 26.7 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TORENO2_8603
set_player_control $player1 {state} False
42@ = 0
41@ = 5

:TORENO2_8603
gosub @TORENO2_11122
gosub @TORENO2_11303

:TORENO2_8617
if 
  41@ == 5
goto_if_false @TORENO2_9737
if 
  42@ == 0
goto_if_false @TORENO2_8707
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True
clear_prints 
do_fade 500 {direction} Fade.Out

:TORENO2_8676
if 
  get_fading_status 
goto_if_false @TORENO2_8700
wait 0
goto @TORENO2_8676

:TORENO2_8700
42@ = 1

:TORENO2_8707
if 
  42@ == 1
goto_if_false @TORENO2_9379
request_animation "POLICE"

:TORENO2_8735
if 
  not has_animation_loaded "POLICE"
goto_if_false @TORENO2_8767
wait 0
goto @TORENO2_8735

:TORENO2_8767
open_garage 'HBGDSFS'

:TORENO2_8778
if 
  not is_garage_open 'HBGDSFS'
goto_if_false @TORENO2_8811
wait 0
goto @TORENO2_8778

:TORENO2_8811
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_8843
goto @TORENO2_10697

:TORENO2_8843
request_collision -1998.7 {y} 178.4
load_scene_in_direction -1998.7 {y} 178.4 {z} 26.3 {heading} 270.0
clear_area -1998.7 {y} 178.4 {z} 26.3 {radius} 200.0 {clearParticles} False
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
if 
  not is_car_dead 37@
goto_if_false @TORENO2_8988
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_8988
detach_trailer_from_cab 37@ {cab} 34@
set_car_coordinates 37@ {x} -1998.7 {y} 178.4 {z} 26.3
set_car_heading 37@ {heading} 88.7

:TORENO2_8988
set_car_coordinates 34@ {x} -2006.7 {y} 178.4 {z} 26.3
set_car_heading 34@ {heading} 88.7
wait 0
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_9054
goto @TORENO2_10697

:TORENO2_9054
if 
  not is_car_dead 37@
goto_if_false @TORENO2_9078
attach_trailer_to_cab 37@ {cab} 34@

:TORENO2_9078
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2035.3 {y} 180.5 {z} 27.8
set_char_heading $scplayer {heading} 277.5
125@ = open_sequence_task 
task_play_anim -1 {animationName} "COPTRAF_COME" {animationFile} "POLICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 125@
perform_sequence_task $scplayer {sequence} 125@
clear_sequence_task 125@
clear_char_tasks_immediately $cesar
warp_char_into_car $cesar {vehicle} 34@
task_car_drive_to_coord $cesar {vehicle} 34@ {x} -2053.3 {y} 178.8 {z} 27.8 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
73@ = 0
shut_all_chars_up True
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -2038.0 {y} 182.8 {z} 29.2 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2001.0 {y} 166.2 {z} 31.2 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:TORENO2_9316
if 
  get_fading_status 
goto_if_false @TORENO2_9340
wait 0
goto @TORENO2_9316

:TORENO2_9340
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_9372
goto @TORENO2_10697

:TORENO2_9372
42@ = 2

:TORENO2_9379
if 
  42@ == 2
goto_if_false @TORENO2_9545
$task_status = get_script_task_status $scplayer {taskId} 1541
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @TORENO2_9545
125@ = open_sequence_task 
task_play_anim -1 {animationName} "COPTRAF_COME" {animationFile} "POLICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "COPTRAF_LEFT" {animationFile} "POLICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 125@
perform_sequence_task $scplayer {sequence} 125@
clear_sequence_task 125@
TIMERA = 0
42@ = 3

:TORENO2_9545
if 
  42@ == 3
goto_if_false @TORENO2_9737
if 
  TIMERA > 5000
goto_if_false @TORENO2_9737
do_fade 500 {direction} Fade.Out

:TORENO2_9589
if 
  get_fading_status 
goto_if_false @TORENO2_9613
wait 0
goto @TORENO2_9589

:TORENO2_9613
unload_special_character 1
delete_car 34@
delete_car 37@
close_garage 'HBGDSFS'

:TORENO2_9638
if 
  not is_garage_closed 'HBGDSFS'
goto_if_false @TORENO2_9671
wait 0
goto @TORENO2_9638

:TORENO2_9671
shut_all_chars_up False
do_fade 500 {direction} Fade.In
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 

:TORENO2_9706
if 
  get_fading_status 
goto_if_false @TORENO2_9730
wait 0
goto @TORENO2_9706

:TORENO2_9730
goto @TORENO2_10715

:TORENO2_9737
if 
  3 > 41@
goto_if_false @TORENO2_9823
if 
  not is_char_dead 35@
goto_if_false @TORENO2_9823
if 
  locate_car_2d 34@ {x} -1914.6 {y} -1187.7 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TORENO2_9823
42@ = 0
41@ = 6

:TORENO2_9823
if 
  41@ == 6
goto_if_false @TORENO2_10683
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @TORENO2_10561
if 
  42@ == 0
goto_if_false @TORENO2_10561
clear_prints 
do_fade 500 {direction} Fade.Out

:TORENO2_9893
if 
  get_fading_status 
goto_if_false @TORENO2_9917
wait 0
goto @TORENO2_9893

:TORENO2_9917
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_9949
goto @TORENO2_10697

:TORENO2_9949
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
73@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -1932.8 {y} -991.8 {z} 31.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1959.7 {y} -1019.9 {z} 43.1 {switchStyle} SwitchType.JumpCut
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1915.0 {leftBottomY} -977.8 {rightTopX} -2013.4 {rightTopY} -1074.8 {drawSphere} False
goto_if_false @TORENO2_10095
set_char_coordinates $scplayer {x} -1984.5 {y} -1072.9 {z} 31.5

:TORENO2_10095
if 
  is_char_in_area_2d $cesar {leftBottomX} -1915.0 {leftBottomY} -977.8 {rightTopX} -2013.4 {rightTopY} -1074.8 {drawSphere} False
goto_if_false @TORENO2_10153
set_char_coordinates $cesar {x} -1984.5 {y} -1074.9 {z} 31.5

:TORENO2_10153
request_collision -1984.3 {y} -1045.7
load_scene -1984.3 {y} -1045.7 {z} 31.6
clear_area -1984.3 {y} -1045.7 {z} 31.6 {radius} 25.0 {clearParticles} True
set_car_coordinates 34@ {x} -1984.3 {y} -1045.7 {z} 31.6
set_car_heading 34@ {heading} 0.0
if 
  not is_car_dead 37@
goto_if_false @TORENO2_10290
set_car_coordinates 37@ {x} -1984.3 {y} -1055.7 {z} 31.6
set_car_heading 37@ {heading} 0.0
attach_trailer_to_cab 37@ {cab} 34@

:TORENO2_10290
if 
  not is_char_dead 35@
goto_if_false @TORENO2_10461
125@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1984.8 {y} -1022.1 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1954.4 {y} -1007.4 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1943.6 {y} -1040.1 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord -1 {vehicle} 34@ {x} -1946.6 {y} -1018.0 {z} 31.6 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
close_sequence_task 125@
perform_sequence_task 35@ {sequence} 125@
clear_sequence_task 125@

:TORENO2_10461
print_now 'TOR1_12' {time} 11000 {flag} 1
do_fade 1000 {direction} Fade.In

:TORENO2_10484
if 
  get_fading_status 
goto_if_false @TORENO2_10515
wait 0
gosub @TORENO2_12035
goto @TORENO2_10484

:TORENO2_10515
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_10547
goto @TORENO2_10697

:TORENO2_10547
skip_cutscene_start_internal @TORENO2_10624
42@ = 1

:TORENO2_10561
if 
  42@ == 1
goto_if_false @TORENO2_10683
gosub @TORENO2_12035
if 
  locate_car_2d 34@ {x} -1943.6 {y} -1040.1 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @TORENO2_10683

:TORENO2_10624
skip_cutscene_end 
gosub @TORENO2_10920
if 
  44@ == 1
goto_if_false @TORENO2_10658
goto @TORENO2_10697

:TORENO2_10658
clear_prints 
print_now 'TOR1_12' {time} 4000 {flag} 1
goto @TORENO2_10697

:TORENO2_10683
gosub @TORENO2_12933
goto @TORENO2_1616

:TORENO2_10697
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:TORENO2_10715
$flag_desert_mission_counter += 1
print_with_number_big 'M_PASS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 7000
set_int_stat StatId.PassedDesert12 {value} 1
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'DESERT2'
remove_blip $desert_contact_blip
player_made_progress 1
return 

:TORENO2_10787
if 
  is_var_text_label_empty s$shop_name
goto_if_false @TORENO2_10805
restore_camera_jumpcut 

:TORENO2_10805
if 
  not is_char_dead $scplayer
goto_if_false @TORENO2_10828
shut_char_up_for_scripted_speech $scplayer {state} False

:TORENO2_10828
shut_all_chars_up False
release_path_nodes 
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 567
remove_char_elegantly $cesar
unload_special_character 1
remove_animation "BIKELEAP"
remove_animation "POLICE"
remove_blip 40@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:TORENO2_10920
if 
  3 > 41@
goto_if_false @TORENO2_10979
if 
  is_car_dead 36@
goto_if_false @TORENO2_10979
clear_prints 
print_now 'TOR1_02' {time} 4000 {flag} 1
44@ = 1

:TORENO2_10979
if 
  41@ > 1
goto_if_false @TORENO2_11079
if 
  is_car_dead 34@
goto_if_false @TORENO2_11038
clear_prints 
print_now 'TOR1_14' {time} 4000 {flag} 1
44@ = 1

:TORENO2_11038
if 
  is_car_dead 37@
goto_if_false @TORENO2_11079
clear_prints 
print_now 'TOR1_14' {time} 4000 {flag} 1
44@ = 1

:TORENO2_11079
if 
  is_char_dead $cesar
goto_if_false @TORENO2_11120
clear_prints 
print_now 'TOR1_03' {time} 4000 {flag} 1
44@ = 1

:TORENO2_11120
return 

:TORENO2_11122
if 
  45@ == 0
goto_if_false @TORENO2_11237
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_11237
if 
  not is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_11205
remove_blip 40@
40@ = add_blip_for_car 37@
set_blip_as_friendly 40@ {state} True
goto @TORENO2_11230

:TORENO2_11205
remove_blip 40@
40@ = add_blip_for_coord -2016.5 {y} 157.7 {z} 26.7

:TORENO2_11230
45@ = 1

:TORENO2_11237
if 
  45@ == 1
goto_if_false @TORENO2_11301
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_11301
remove_blip 40@
40@ = add_blip_for_car 34@
set_blip_as_friendly 40@ {state} True
45@ = 0

:TORENO2_11301
return 

:TORENO2_11303
if 
  45@ == 1
goto_if_false @TORENO2_11510
if 
  not is_car_dead 37@
goto_if_false @TORENO2_11510
set_car_health 37@ {health} 1000
if 
  55@ == 1
goto_if_false @TORENO2_11425
if 
  not is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_11425
remove_blip 40@
40@ = add_blip_for_car 37@
set_blip_as_friendly 40@ {state} True
print_now 'TOR1_21' {time} 4000 {flag} 1
55@ = 0

:TORENO2_11425
if 
  55@ == 0
goto_if_false @TORENO2_11510
if 
  is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_11510
remove_blip 40@
40@ = add_blip_for_coord -2016.5 {y} 157.7 {z} 26.7
print 'TOR1_06' {time} 4000 {flag} 1
55@ = 1

:TORENO2_11510
return 

:TORENO2_11512
if 
  46@ == 1
goto_if_false @TORENO2_11830
if 
  45@ == 0
goto_if_false @TORENO2_11700
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_11700
clear_this_print 76@(74@,8s)
clear_this_print 'TOR1_20'
remove_blip 40@
if 
  not is_car_dead 34@
goto_if_false @TORENO2_11616
40@ = add_blip_for_car 34@

:TORENO2_11616
if 
  TIMERB > 8000
goto_if_false @TORENO2_11693
if 
  is_char_in_car $cesar {vehicle} 36@
goto_if_false @TORENO2_11677
print_now 'TOR1_05' {time} 4000 {flag} 1
goto @TORENO2_11693

:TORENO2_11677
print_now 'TOR1_16' {time} 4000 {flag} 1

:TORENO2_11693
45@ = 1

:TORENO2_11700
if 
  45@ == 1
goto_if_false @TORENO2_11830
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_11830
clear_this_print 76@(74@,8s)
clear_this_print 'TOR1_10'
clear_this_print 'TOR1_16'
remove_blip 40@
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True
if 
  TIMERB > 8000
goto_if_false @TORENO2_11823
print_now 'TOR1_20' {time} 4000 {flag} 1

:TORENO2_11823
45@ = 0

:TORENO2_11830
return 

:TORENO2_11832
if 
  46@ == 1
goto_if_false @TORENO2_11896
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_11896
remove_blip 40@
40@ = add_blip_for_char $cesar
set_blip_as_friendly 40@ {state} True
46@ = 0

:TORENO2_11896
if 
  46@ == 0
goto_if_false @TORENO2_12033
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO2_12033
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_11981
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:TORENO2_11981
remove_blip 40@
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_12019
45@ = 1
goto @TORENO2_12026

:TORENO2_12019
45@ = 0

:TORENO2_12026
46@ = 1

:TORENO2_12033
return 

:TORENO2_12035
if 
  not is_car_dead 34@
goto_if_false @TORENO2_12102
if 
  not is_car_dead 37@
goto_if_false @TORENO2_12102
set_car_health 37@ {health} 1000
if 
  not is_trailer_attached_to_cab 37@ {cab} 34@
goto_if_false @TORENO2_12102
attach_trailer_to_cab 37@ {cab} 34@

:TORENO2_12102
return 

:TORENO2_12104
if 
  not is_car_dead 34@
goto_if_false @TORENO2_12226
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @TORENO2_12168
set_car_cruise_speed 34@ {maxSpeed} 37.0
goto @TORENO2_12226

:TORENO2_12168
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 34@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @TORENO2_12216
set_car_cruise_speed 34@ {maxSpeed} 20.0
goto @TORENO2_12226

:TORENO2_12216
set_car_cruise_speed 34@ {maxSpeed} 15.0

:TORENO2_12226
return 

:TORENO2_12228
if 
  not is_car_dead 34@
goto_if_false @TORENO2_12931
120@, 121@, $z = get_offset_from_car_in_world_coords 34@ {xOffset} -3.0 {yOffset} 2.0 {zOffset} 0.0
122@, 123@, $z = get_offset_from_car_in_world_coords 34@ {xOffset} 3.0 {yOffset} 11.0 {zOffset} 0.0
38@ = get_random_car_of_type_in_area_no_save 120@ {leftBottomY} 121@ {rightTopX} 122@ {rightTopY} 123@ {modelId} -1
if 
  not is_car_dead 38@
goto_if_false @TORENO2_12931
if 
  not is_int_lvar_equal_to_int_lvar 38@ == 36@
goto_if_false @TORENO2_12931
57@ = get_car_health 38@
if 
  57@ > 500
goto_if_false @TORENO2_12931
69@ = get_car_speed 34@
69@ *= 0.02
120@ = get_car_forward_x 34@
121@ = get_car_forward_y 34@
set_lvar_float_to_lvar_float 122@ = 121@
123@ = -1.0
mult_float_lvar_by_float_lvar 123@ *= 120@
65@, 66@, 67@ = get_car_coordinates 38@
62@, 63@, 64@ = get_car_coordinates 34@
sub_float_lvar_from_float_lvar 65@ -= 62@
sub_float_lvar_from_float_lvar 66@ -= 63@
set_lvar_float_to_lvar_float 70@ = 122@
mult_float_lvar_by_float_lvar 70@ *= 65@
set_lvar_float_to_lvar_float 71@ = 123@
mult_float_lvar_by_float_lvar 71@ *= 66@
set_lvar_float_to_lvar_float 68@ = 70@
add_float_lvar_to_float_lvar 68@ += 71@
if 
  2.5 > 68@
goto_if_false @TORENO2_12921
if 
  68@ > -2.5
goto_if_false @TORENO2_12921
if 
  68@ > 0.0
goto_if_false @TORENO2_12615
68@ = 1.0
goto @TORENO2_12625

:TORENO2_12615
68@ = -1.0

:TORENO2_12625
set_lvar_float_to_lvar_float 70@ = 120@
mult_float_lvar_by_float_lvar 70@ *= 69@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 122@
71@ *= 0.5
set_lvar_float_to_lvar_float 72@ = 69@
mult_float_lvar_by_float_lvar 72@ *= 71@
set_lvar_float_to_lvar_float 62@ = 70@
add_float_lvar_to_float_lvar 62@ += 72@
set_lvar_float_to_lvar_float 70@ = 121@
mult_float_lvar_by_float_lvar 70@ *= 69@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 123@
71@ *= 0.5
set_lvar_float_to_lvar_float 72@ = 69@
mult_float_lvar_by_float_lvar 72@ *= 71@
set_lvar_float_to_lvar_float 63@ = 70@
add_float_lvar_to_float_lvar 63@ += 72@
set_lvar_float_to_lvar_float 64@ = 69@
64@ += 0.008
64@ *= 0.5
65@ = -1.0
mult_float_lvar_by_float_lvar 65@ *= 68@
mult_float_lvar_by_float_lvar 65@ *= 122@
mult_float_lvar_by_float_lvar 65@ *= 69@
66@ = -1.0
mult_float_lvar_by_float_lvar 66@ *= 68@
mult_float_lvar_by_float_lvar 66@ *= 123@
mult_float_lvar_by_float_lvar 66@ *= 69@
67@ = 0.0
play_mission_audio MissionAudioSlot.Slot3
set_car_status 38@ {status} EntityStatus.Physics
apply_force_to_car 38@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@
set_car_health 38@ {health} 499

:TORENO2_12921
clear_car_last_damage_entity 38@
mark_car_as_no_longer_needed 38@

:TORENO2_12931
return 

:TORENO2_12933
if 
  73@ == 1
goto_if_false @TORENO2_13005
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_12998
gosub @TORENO2_16465
gosub @TORENO2_16572
gosub @TORENO2_16726
goto @TORENO2_13005

:TORENO2_12998
73@ = 0

:TORENO2_13005
if or
  41@ == 1
  41@ == 2
goto_if_false @TORENO2_14376
if or
  14 > 41@
  41@ == 16
goto_if_false @TORENO2_14376
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_13789
if 
  locate_char_any_means_char_3d $cesar {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @TORENO2_13782
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @TORENO2_13285
if or
  73@ == 2
  73@ == 3
  73@ == 4
  73@ == 5
  73@ == 6
goto_if_false @TORENO2_13285
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13278
gosub @TORENO2_16465
gosub @TORENO2_16572
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13240
gosub @TORENO2_16726
goto @TORENO2_13271

:TORENO2_13240
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13271
goto @TORENO2_13285

:TORENO2_13278
73@ = 0

:TORENO2_13285
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @TORENO2_13460
if or
  73@ == 2
  73@ == 3
  73@ == 4
  73@ == 5
  73@ == 6
goto_if_false @TORENO2_13460
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13453
gosub @TORENO2_16465
gosub @TORENO2_16572
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13415
gosub @TORENO2_16726
goto @TORENO2_13446

:TORENO2_13415
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13446
goto @TORENO2_13460

:TORENO2_13453
73@ = 0

:TORENO2_13460
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @TORENO2_13621
if or
  73@ == 7
  73@ == 9
  73@ == 10
goto_if_false @TORENO2_13621
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13614
gosub @TORENO2_16465
gosub @TORENO2_16572
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13576
gosub @TORENO2_16726
goto @TORENO2_13607

:TORENO2_13576
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13607
goto @TORENO2_13621

:TORENO2_13614
73@ = 0

:TORENO2_13621
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @TORENO2_13782
if or
  73@ == 7
  73@ == 9
  73@ == 10
goto_if_false @TORENO2_13782
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13775
gosub @TORENO2_16465
gosub @TORENO2_16572
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_13737
gosub @TORENO2_16726
goto @TORENO2_13768

:TORENO2_13737
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_13768
goto @TORENO2_13782

:TORENO2_13775
73@ = 0

:TORENO2_13782
goto @TORENO2_13906

:TORENO2_13789
if 
  14 > 73@
goto_if_false @TORENO2_13906
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_13833
74@ += 1

:TORENO2_13833
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
clear_prints 
set_lvar_int_to_lvar_int 109@ = 73@
set_lvar_int_to_lvar_int 110@ = 74@
73@ = 14
74@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177

:TORENO2_13906
if 
  73@ == 14
goto_if_false @TORENO2_14097
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_14074
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14044
gosub @TORENO2_16465
gosub @TORENO2_16572
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_14006
gosub @TORENO2_16726
goto @TORENO2_14037

:TORENO2_14006
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_14037
goto @TORENO2_14067

:TORENO2_14044
print 'TOR1_13' {time} 4000 {flag} 1
73@ = 15

:TORENO2_14067
goto @TORENO2_14097

:TORENO2_14074
print 'TOR1_13' {time} 4000 {flag} 1
73@ = 15

:TORENO2_14097
if 
  73@ == 15
goto_if_false @TORENO2_14150
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_14150
73@ = 16
74@ = 0
clear_prints 

:TORENO2_14150
if 
  73@ == 16
goto_if_false @TORENO2_14376
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @TORENO2_14321
TIMERB = 0
set_lvar_int_to_lvar_int 73@ = 109@
set_lvar_int_to_lvar_int 74@ = 110@
gosub @TORENO2_15177
if 
  109@ == 0
goto_if_false @TORENO2_14314
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @TORENO2_14277
print 'TOR1_05' {time} 7000 {flag} 1
goto @TORENO2_14293

:TORENO2_14277
print 'TOR1_20' {time} 4000 {flag} 1

:TORENO2_14293
TIMERB = 0
74@ = 0
73@ = 0

:TORENO2_14314
goto @TORENO2_14376

:TORENO2_14321
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
73@ = 14
74@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177

:TORENO2_14376
if 
  41@ == 4
goto_if_false @TORENO2_15175
if 
  42@ == 1
goto_if_false @TORENO2_15175
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14557
if 
  73@ == 11
goto_if_false @TORENO2_14557
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14550
gosub @TORENO2_16465
gosub @TORENO2_16572
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_14512
gosub @TORENO2_16726
goto @TORENO2_14543

:TORENO2_14512
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_14543
goto @TORENO2_14557

:TORENO2_14550
73@ = 0

:TORENO2_14557
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14693
if 
  17 > 73@
goto_if_false @TORENO2_14693
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14620
74@ += 1

:TORENO2_14620
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_this_print 76@(74@,8s)
set_lvar_int_to_lvar_int 109@ = 73@
set_lvar_int_to_lvar_int 110@ = 74@
73@ = 17
74@ = generate_random_int_in_range 0 {max} 6
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177

:TORENO2_14693
if 
  73@ == 17
goto_if_false @TORENO2_14906
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14854
if 
  is_int_lvar_greater_than_int_lvar 100@ > 74@
goto_if_false @TORENO2_14831
gosub @TORENO2_16465
gosub @TORENO2_16572
if 
  not is_char_dead $cesar
goto_if_false @TORENO2_14793
gosub @TORENO2_16726
goto @TORENO2_14824

:TORENO2_14793
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
101@ = 0
102@ = 0

:TORENO2_14824
goto @TORENO2_14854

:TORENO2_14831
print 'TOR1_11' {time} 4000 {flag} 1
73@ = 18

:TORENO2_14854
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14906
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
73@ = 19
74@ = 0
clear_prints 

:TORENO2_14906
if 
  73@ == 18
goto_if_false @TORENO2_14959
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_14959
73@ = 19
74@ = 0
clear_prints 

:TORENO2_14959
if 
  73@ == 19
goto_if_false @TORENO2_15175
if 
  is_char_sitting_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_15101
TIMERB = 0
set_lvar_int_to_lvar_int 73@ = 109@
set_lvar_int_to_lvar_int 74@ = 110@
gosub @TORENO2_15177
if 
  109@ == 0
goto_if_false @TORENO2_15101
if 
  55@ == 1
goto_if_false @TORENO2_15085
print 'TOR1_06' {time} 4000 {flag} 1
goto @TORENO2_15101

:TORENO2_15085
print 'TOR1_21' {time} 4000 {flag} 1

:TORENO2_15101
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @TORENO2_15175
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 76@(74@,8s)
73@ = 17
74@ = generate_random_int_in_range 0 {max} 6
set_lvar_int_to_lvar_int 108@ = 74@
108@ += 1
gosub @TORENO2_15177

:TORENO2_15175
return 

:TORENO2_15177
if 
  73@ == 1
goto_if_false @TORENO2_15334
set_lvar_text_label 76@s = 'DES2_AA'
set_lvar_text_label 78@s = 'DES2_AB'
set_lvar_text_label 80@s = 'DES2_AC'
set_lvar_text_label 82@s = 'DES2_AD'
set_lvar_text_label 84@s = 'DES2_AE'
set_lvar_text_label 86@s = 'DES2_AF'
set_lvar_int_to_constant 92@ = 13000
set_lvar_int_to_constant 93@ = 13001
set_lvar_int_to_constant 94@ = 13002
set_lvar_int_to_constant 95@ = 13003
set_lvar_int_to_constant 96@ = 13004
set_lvar_int_to_constant 97@ = 13005
100@ = 6

:TORENO2_15334
if 
  73@ == 2
goto_if_false @TORENO2_15403
set_lvar_text_label 76@s = 'DES2_BA'
set_lvar_text_label 78@s = 'DES2_BB'
set_lvar_int_to_constant 92@ = 13006
set_lvar_int_to_constant 93@ = 13007
100@ = 2

:TORENO2_15403
if 
  73@ == 3
goto_if_false @TORENO2_15450
set_lvar_text_label 76@s = 'DES2_BC'
set_lvar_int_to_constant 92@ = 13008
100@ = 1

:TORENO2_15450
if 
  73@ == 4
goto_if_false @TORENO2_15542
set_lvar_text_label 76@s = 'DES2_CA'
set_lvar_text_label 78@s = 'DES2_CB'
set_lvar_text_label 80@s = 'DES2_CC'
set_lvar_int_to_constant 92@ = 13009
set_lvar_int_to_constant 93@ = 13010
set_lvar_int_to_constant 94@ = 13011
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15542
if 
  73@ == 5
goto_if_false @TORENO2_15634
set_lvar_text_label 76@s = 'DES2_DA'
set_lvar_text_label 78@s = 'DES2_DB'
set_lvar_text_label 80@s = 'DES2_DC'
set_lvar_int_to_constant 92@ = 13012
set_lvar_int_to_constant 93@ = 13013
set_lvar_int_to_constant 94@ = 13014
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15634
if 
  73@ == 6
goto_if_false @TORENO2_15792
set_lvar_text_label 76@s = 'DES2_EA'
set_lvar_text_label 78@s = 'DES2_EB'
set_lvar_text_label 80@s = 'DES2_EC'
set_lvar_text_label 82@s = 'DES2_ED'
set_lvar_text_label 84@s = 'DES2_EE'
set_lvar_text_label 86@s = 'DES2_EF'
set_lvar_int_to_constant 92@ = 13015
set_lvar_int_to_constant 93@ = 13016
set_lvar_int_to_constant 94@ = 13017
set_lvar_int_to_constant 95@ = 13018
set_lvar_int_to_constant 96@ = 13019
set_lvar_int_to_constant 97@ = 13020
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15792
if 
  73@ == 7
goto_if_false @TORENO2_15884
set_lvar_text_label 76@s = 'DES2_FA'
set_lvar_text_label 78@s = 'DES2_FB'
set_lvar_text_label 80@s = 'DES2_FC'
set_lvar_int_to_constant 92@ = 13021
set_lvar_int_to_constant 93@ = 13022
set_lvar_int_to_constant 94@ = 13023
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15884
if 
  73@ == 9
goto_if_false @TORENO2_15976
set_lvar_text_label 76@s = 'DES2_HA'
set_lvar_text_label 78@s = 'DES2_HB'
set_lvar_text_label 80@s = 'DES2_HC'
set_lvar_int_to_constant 92@ = 13027
set_lvar_int_to_constant 93@ = 13028
set_lvar_int_to_constant 94@ = 13029
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_15976
if 
  73@ == 10
goto_if_false @TORENO2_16068
set_lvar_text_label 76@s = 'DES2_JA'
set_lvar_text_label 78@s = 'DES2_JB'
set_lvar_text_label 80@s = 'DES2_JC'
set_lvar_int_to_constant 92@ = 13030
set_lvar_int_to_constant 93@ = 13031
set_lvar_int_to_constant 94@ = 13032
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16068
if 
  73@ == 11
goto_if_false @TORENO2_16115
set_lvar_text_label 76@s = 'DES2_KA'
set_lvar_int_to_constant 92@ = 13033
100@ = 1

:TORENO2_16115
if 
  73@ == 12
goto_if_false @TORENO2_16162
set_lvar_text_label 76@s = 'DES2_LA'
set_lvar_int_to_constant 92@ = 13038
100@ = 1

:TORENO2_16162
if 
  73@ == 14
goto_if_false @TORENO2_16276
set_lvar_text_label 76@s = 'CESX_BA'
set_lvar_text_label 78@s = 'CESX_BB'
set_lvar_text_label 80@s = 'CESX_BC'
set_lvar_text_label 82@s = 'CESX_BD'
set_lvar_int_to_constant 92@ = 10406
set_lvar_int_to_constant 93@ = 10407
set_lvar_int_to_constant 94@ = 10408
set_lvar_int_to_constant 95@ = 10409
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16276
if 
  73@ == 17
goto_if_false @TORENO2_16434
set_lvar_text_label 76@s = 'CESX_AA'
set_lvar_text_label 78@s = 'CESX_AB'
set_lvar_text_label 80@s = 'CESX_AC'
set_lvar_text_label 82@s = 'CESX_AD'
set_lvar_text_label 84@s = 'CESX_AE'
set_lvar_text_label 86@s = 'CESX_AF'
set_lvar_int_to_constant 92@ = 10400
set_lvar_int_to_constant 93@ = 10401
set_lvar_int_to_constant 94@ = 10402
set_lvar_int_to_constant 95@ = 10403
set_lvar_int_to_constant 96@ = 10404
set_lvar_int_to_constant 97@ = 10405
set_lvar_int_to_lvar_int 100@ = 108@

:TORENO2_16434
set_lvar_int_to_lvar_int 103@ = 74@
101@ = 0
102@ = 0
104@ = 1
return 

:TORENO2_16465
if 
  is_int_lvar_greater_than_int_lvar 100@ > 103@
goto_if_false @TORENO2_16570
if 
  101@ == 0
goto_if_false @TORENO2_16527
load_mission_audio MissionAudioSlot.Slot1 {audioId} 92@(103@,8i)
103@ += 1
101@ = 1

:TORENO2_16527
if 
  102@ == 0
goto_if_false @TORENO2_16570
load_mission_audio MissionAudioSlot.Slot2 {audioId} 92@(103@,8i)
103@ += 1
102@ = 1

:TORENO2_16570
return 

:TORENO2_16572
if 
  104@ == 1
goto_if_false @TORENO2_16648
if 
  101@ == 1
goto_if_false @TORENO2_16648
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @TORENO2_16648
play_mission_audio MissionAudioSlot.Slot1
print_now 76@(74@,8s) {time} 4500 {flag} 1
101@ = 2

:TORENO2_16648
if 
  104@ == 2
goto_if_false @TORENO2_16724
if 
  102@ == 1
goto_if_false @TORENO2_16724
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @TORENO2_16724
play_mission_audio MissionAudioSlot.Slot2
print_now 76@(74@,8s) {time} 4500 {flag} 1
102@ = 2

:TORENO2_16724
return 

:TORENO2_16726
if 
  101@ == 2
goto_if_false @TORENO2_16789
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @TORENO2_16789
clear_this_print 76@(74@,8s)
74@ += 1
104@ = 2
101@ = 0

:TORENO2_16789
if 
  102@ == 2
goto_if_false @TORENO2_16852
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @TORENO2_16852
clear_this_print 76@(74@,8s)
74@ += 1
104@ = 1
102@ = 0

:TORENO2_16852
return 

//-------------Mission 77---------------
// Originally: Interdiction

:DES3
script_name 'DES3'
gosub @DES3_47
if 
  has_deatharrest_been_executed 
goto_if_false @DES3_38
gosub @DES3_26916

:DES3_38
gosub @DES3_27032
terminate_this_script 

:DES3_47
register_mission_given 
$onmission = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
66@ = load_char_decision_maker DecisionMakerType.Empty
67@ = load_char_decision_maker DecisionMakerType.Tough

:DES3_147
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @DES3_173
36@ = 1

:DES3_173
39@ += 1
if 
  39@ > 10
goto_if_false @DES3_205
39@ = 0

:DES3_205
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 64@ += 42@
add_int_lvar_to_int_lvar 65@ += 42@
add_int_lvar_to_int_lvar 135@ += 42@
add_int_lvar_to_int_lvar 136@ += 42@
add_int_lvar_to_int_lvar 137@ += 42@
add_int_lvar_to_int_lvar 138@ += 42@
sub_int_lvar_from_int_lvar 224@ -= 42@
add_int_lvar_to_int_lvar 139@ += 42@
gosub @DES3_575
switch_start 34@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @DES3_466 {caseNum1} 0 {caseLabel1} @DES3_368 {caseNum2} 1 {caseLabel2} @DES3_382 {caseNum3} 2 {caseLabel3} @DES3_396 {caseNum4} 3 {caseLabel4} @DES3_410 {caseNum5} 4 {caseLabel5} @DES3_424 {caseNum6} 5 {caseLabel6} @DES3_438 {caseNum7} 6 {caseLabel7} @DES3_452

:DES3_368
gosub @DES3_2306
goto @DES3_466

:DES3_382
gosub @DES3_2848
goto @DES3_466

:DES3_396
gosub @DES3_5177
goto @DES3_466

:DES3_410
gosub @DES3_5992
goto @DES3_466

:DES3_424
gosub @DES3_10729
goto @DES3_466

:DES3_438
gosub @DES3_12361
goto @DES3_466

:DES3_452
gosub @DES3_14045
goto @DES3_466

:DES3_466
gosub @DES3_16382

:DES3_473
if 
  38@ == 0
goto_if_false @DES3_573
if 
  37@ == 0
goto_if_false @DES3_557
if 
  36@ == 0
goto_if_false @DES3_541
goto @DES3_147
goto @DES3_550

:DES3_541
gosub @DES3_26934
return 

:DES3_550
goto @DES3_566

:DES3_557
gosub @DES3_26916
return 

:DES3_566
goto @DES3_575

:DES3_573
return 

:DES3_575
if 
is_ps2_keyboard_key_just_pressed 88
goto_if_false @DES3_666
if 
  68@ == 0
goto_if_false @DES3_640
68@ = 1
write_debug "LEVEL_DEBUG_ON"
goto @DES3_666

:DES3_640
68@ = 0
write_debug "LEVEL_DEBUG_OFF"

:DES3_666
if 
  68@ == 1
goto_if_false @DES3_2304
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @DES3_733
69@ += 1
if 
  69@ > 6
goto_if_false @DES3_731
69@ = 0

:DES3_731
clear_all_view_variables 

:DES3_733
if 
  69@ == 1
goto_if_false @DES3_943
set_var_int_to_lvar_int $DES3_view_debug = 34@
set_var_int_to_lvar_int $7480 = 35@
set_var_int_to_lvar_int $7481 = 62@
set_var_int_to_lvar_int $7482 = 64@
set_var_int_to_lvar_int $7483 = 63@
set_var_int_to_lvar_int $7484 = 65@
set_var_int_to_lvar_int $7485 = TIMERA
set_var_int_to_lvar_int $7486 = TIMERB
view_integer_variable $DES3_view_debug {_p2} "M_STAGE"
view_integer_variable $7480 {_p2} "M_GOALS"
view_integer_variable $7481 {_p2} "DIALOGUE_FLAG"
view_integer_variable $7482 {_p2} "DIALOGUE_TIMER"
view_integer_variable $7483 {_p2} "HELP_FLAG"
view_integer_variable $7484 {_p2} "HELP_TIMER"
view_integer_variable $7485 {_p2} "TIMERA"
view_integer_variable $7486 {_p2} "TIMERB"

:DES3_943
if 
  69@ == 2
goto_if_false @DES3_1217
set_var_int_to_lvar_int $DES3_view_debug = 108@
set_var_int_to_lvar_int $7480 = 119@
set_var_int_to_lvar_int $7481 = 120@
set_var_int_to_lvar_int $7482 = 121@
set_var_int_to_lvar_int $7483 = 122@
set_var_int_to_lvar_int $7484 = 127@
set_var_int_to_lvar_int $7485 = 128@
set_var_int_to_lvar_int $7486 = 131@
view_integer_variable $DES3_view_debug {_p2} "PHELI_PROGRESS"
view_integer_variable $7480 {_p2} "BRAVO_PED_FLAG[0]"
view_integer_variable $7481 {_p2} "BRAVO_PED_FLAG[1]"
view_integer_variable $7482 {_p2} "BRAVO_PED_FLAG[2]"
view_integer_variable $7483 {_p2} "BRAVO_PED_FLAG[3]"
view_integer_variable $7484 {_p2} "ALPHA_HELIS_FUCKED"
view_integer_variable $7485 {_p2} "BRAVO_HELIS_FUCKED"
view_integer_variable $7486 {_p2} "TOTAL_FUCKED_HELIS"

:DES3_1217
if 
  69@ == 3
goto_if_false @DES3_1455
set_var_int_to_lvar_int $DES3_view_debug = 109@
set_var_int_to_lvar_int $7480 = 112@
set_var_int_to_lvar_int $7481 = 115@
set_var_int_to_lvar_int $7482 = 116@
set_var_int_to_lvar_int $7483 = 117@
set_var_int_to_lvar_int $7484 = 118@
set_var_int_to_lvar_int $7485 = 129@
view_integer_variable $DES3_view_debug {_p2} "ALPHA_HELI_AI"
view_integer_variable $7480 {_p2} "ALPHA_HELI_GOALS"
view_integer_variable $7481 {_p2} "ALPHA_PED_FLAG[0]"
view_integer_variable $7482 {_p2} "ALPHA_PED_FLAG[1]"
view_integer_variable $7483 {_p2} "ALPHA_PED_FLAG[2]"
view_integer_variable $7484 {_p2} "ALPHA_PED_FLAG[3]"
view_integer_variable $7485 {_p2} "ALPHA_HELI_CONTROL"

:DES3_1455
if 
  69@ == 4
goto_if_false @DES3_1668
set_var_int_to_lvar_int $DES3_view_debug = 123@
set_var_int_to_lvar_int $7480 = 124@
set_var_int_to_lvar_int $7481 = 125@
set_var_int_to_lvar_int $7482 = 126@
set_var_float_to_lvar_float $7491 = 140@
set_var_int_to_lvar_int $7484 = 137@
view_integer_variable $DES3_view_debug {_p2} "ALPHA_PED_ATTACHED[0]"
view_integer_variable $7480 {_p2} "ALPHA_PED_ATTACHED[1]"
view_integer_variable $7481 {_p2} "ALPHA_PED_ATTACHED[2]"
view_integer_variable $7482 {_p2} "ALPHA_PED_ATTACHED[3]"
view_float_variable $7491 {_p2} "FED_DISTANCE"
view_integer_variable $7484 {_p2} "FED_TIMER"

:DES3_1668
if 
  69@ == 5
goto_if_false @DES3_1915
set_var_float_to_lvar_float $DES3_view_debug_f = 199@
set_var_float_to_lvar_float $7488 = 202@
set_var_float_to_lvar_float $7489 = 205@
set_var_float_to_lvar_float $7490 = 208@
set_var_float_to_lvar_float $7491 = 211@
set_var_float_to_lvar_float $7492 = 221@
set_var_float_to_lvar_float $7493 = 222@
set_var_float_to_lvar_float $7494 = 223@
view_float_variable $DES3_view_debug_f {_p2} "SWING_SPEED_X"
view_float_variable $7488 {_p2} "SWING_ACCEL_X"
view_float_variable $7489 {_p2} "SWING_ROT_X"
view_float_variable $7490 {_p2} "SWING_DEST_X"
view_float_variable $7491 {_p2} "SWING_DIST_X"
view_float_variable $7492 {_p2} "SWING_ANGLE_FOR_XY"
view_float_variable $7493 {_p2} "SWING_DIRECT_DIST"
view_float_variable $7494 {_p2} "SWING_2D_DIST"

:DES3_1915
if 
  69@ == 6
goto_if_false @DES3_2169
set_var_float_to_lvar_float $DES3_view_debug_f = 220@
set_var_float_to_lvar_float $7488 = 213@
set_var_int_to_lvar_int $7481 = 110@
set_var_int_to_lvar_int $7482 = 113@
set_var_int_to_lvar_int $7483 = 83@
set_var_int_to_lvar_int $7484 = 76@
set_var_int_to_lvar_int $7485 = 133@
set_var_int_to_lvar_int $7486 = 130@
view_float_variable $DES3_view_debug_f {_p2} "SWING_ANGLE_FOR_Z"
view_float_variable $7488 {_p2} "SWING_DIST_Z"
view_integer_variable $7481 {_p2} "BRAVO_HELI_AI"
view_integer_variable $7482 {_p2} "BRAVO_HELI_GOALS"
view_integer_variable $7483 {_p2} "BRAVO_PILOT"
view_integer_variable $7484 {_p2} "BRAVO_HELI"
view_integer_variable $7485 {_p2} "TOTAL_CREATED_HELIS"
view_integer_variable $7486 {_p2} "BRAVO_HELI_CONTROL"

:DES3_2169
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @DES3_2191
38@ = 1

:DES3_2191
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @DES3_2279
if 
  70@ == 0
goto_if_false @DES3_2254
70@ = 1
write_debug "LEVEL_PAUSED"
goto @DES3_2279

:DES3_2254
70@ = 0
write_debug "LEVEL_UNPAUSED"

:DES3_2279
if 
  70@ == 1
goto_if_false @DES3_2304
goto @DES3_473

:DES3_2304
return 

:DES3_2306
if 
  35@ == -1
goto_if_false @DES3_2642
74@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
76@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
285@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
286@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
78@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0
81@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
82@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
83@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
84@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
102@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
103@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
107@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:DES3_2642
108@ = 0
set_lvar_int_to_constant 109@ = 0
set_lvar_int_to_constant 110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
43@ = 0

:DES3_2698
if 
  4 > 43@
goto_if_false @DES3_2763
115@(43@,4i) = 0
119@(43@,4i) = 0
123@(43@,4i) = 0
43@ += 1
goto @DES3_2698

:DES3_2763
127@ = 0
128@ = 0
129@ = 0
130@ = 0
$pheli_health = 0
131@ = 0
132@ = 0
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_text 'DSERT3'
gosub @DES3_26858
return 

:DES3_2848
if 
  35@ == 0
goto_if_false @DES3_3481
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:DES3_2880
if 
  get_fading_status 
goto_if_false @DES3_2904
wait 0
goto @DES3_2880

:DES3_2904
clear_area -691.0 {y} 941.0 {z} 13.0 {radius} 10.0 {clearParticles} True
load_cutscene 'DESERT3'

:DES3_2939
if 
  not has_cutscene_loaded 
goto_if_false @DES3_2963
wait 0
goto @DES3_2939

:DES3_2963
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES3_2972
if 
  not has_cutscene_finished 
goto_if_false @DES3_2996
wait 0
goto @DES3_2972

:DES3_2996
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES3_3009
if 
  get_fading_status 
goto_if_false @DES3_3033
wait 0
goto @DES3_3009

:DES3_3033
clear_cutscene 
clear_area -701.5853 {y} 965.8546 {z} 11.3768 {radius} 5.0 {clearParticles} True
request_model 424

:DES3_3064
if 
  not has_model_loaded 424
goto_if_false @DES3_3091
wait 0
goto @DES3_3064

:DES3_3091
$car = create_car 424 {x} -701.5853 {y} 965.8546 {z} 11.3768
set_car_heading $car {heading} 90.4785
mark_model_as_no_longer_needed 424
set_radio_channel RadioChannel.WCTR
if 
  $desert3_mission_attempts > 0
goto_if_false @DES3_3173
set_up_skip -426.8536 {y} 2213.783 {z} 41.4297 {heading} 9.9101

:DES3_3173
set_char_coordinates $scplayer {x} -688.7614 {y} 946.5271 {z} 12.0312
set_char_heading $scplayer {heading} 94.6779
set_camera_behind_player 
restore_camera_jumpcut 
force_weather WeatherType.ExtraSunnyDesert
101@ = add_blip_for_coord -429.025 {y} 2226.2229 {z} 41.4297
print 'AIR1_13' {time} 5000 {flag} 1
request_model 568
request_model 471
request_model 468
request_model 360
load_all_models_now 

:DES3_3269
if or
  not has_model_loaded 568
  not has_model_loaded 471
  not has_model_loaded 468
  not has_model_loaded 360
goto_if_false @DES3_3311
wait 0
goto @DES3_3269

:DES3_3311
do_fade 500 {direction} Fade.In

:DES3_3318
if 
  get_fading_status 
goto_if_false @DES3_3342
wait 0
goto @DES3_3318

:DES3_3342
set_player_control $player1 {state} True
71@ = create_car 471 {x} -434.5365 {y} 2237.5669 {z} 41.869
72@ = create_car 468 {x} -426.2288 {y} 2240.4099 {z} 41.4297
73@ = create_car 568 {x} -428.1476 {y} 2235.207 {z} 42.3505
set_car_heading 71@ {heading} 291.5598
set_car_heading 72@ {heading} 179.3694
set_car_heading 73@ {heading} 102.7597
mark_model_as_no_longer_needed 471
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 568
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13200
35@ += 1

:DES3_3481
if 
  35@ == 1
goto_if_false @DES3_3767
if 
  68@ == 1
goto_if_false @DES3_3554
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_3554
set_char_coordinates $scplayer {x} -424.6452 {y} 2207.541 {z} 41.4297

:DES3_3554
if 
  locate_char_any_means_3d $scplayer {x} -429.025 {y} 2226.2229 {z} 41.4297 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DES3_3767
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_3705
$car = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_3684
if 
  is_vehicle_on_all_wheels $car
goto_if_false @DES3_3677
set_player_control $player1 {state} False
35@ += 1

:DES3_3677
goto @DES3_3698

:DES3_3684
set_player_control $player1 {state} False
35@ += 1

:DES3_3698
goto @DES3_3767

:DES3_3705
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -429.025 {y} 2226.2229 {z} 41.4297 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DES3_3767
set_player_control $player1 {state} False
35@ += 1

:DES3_3767
if 
  35@ == 2
goto_if_false @DES3_3956
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_3949
$car = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_3860
if 
  is_car_stopped $car
goto_if_false @DES3_3853
35@ += 1

:DES3_3853
goto @DES3_3942

:DES3_3860
do_fade 500 {direction} Fade.Out

:DES3_3867
if 
  get_fading_status 
goto_if_false @DES3_3891
wait 0
goto @DES3_3867

:DES3_3891
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead $car
goto_if_false @DES3_3935
set_car_coordinates $car {x} -429.025 {y} 2226.2229 {z} 41.4297

:DES3_3935
35@ += 1

:DES3_3942
goto @DES3_3956

:DES3_3949
35@ += 1

:DES3_3956
if 
  35@ == 3
goto_if_false @DES3_4210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_4005
134@ = 1
goto @DES3_4012

:DES3_4005
134@ = 0

:DES3_4012
remove_blip 101@
clear_skip 
clear_area -432.3058 {y} 2234.375 {z} 41.4697 {radius} 5.0 {clearParticles} True
set_fixed_camera_position -433.342 {y} 2232.176 {z} 43.6323 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -432.7942 {y} 2232.9971 {z} 43.4724 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -433.0047 {y} 2230.2461 {z} 40.4297
set_char_heading $scplayer {heading} 341.959
task_go_straight_to_coord $scplayer {x} -432.3058 {y} 2234.375 {z} 41.4697 {speed} MoveState.Walk {time} 5000
do_fade 500 {direction} Fade.In

:DES3_4172
if 
  get_fading_status 
goto_if_false @DES3_4196
wait 0
goto @DES3_4172

:DES3_4196
TIMERA = 0
35@ += 1

:DES3_4210
if 
  35@ > 3
goto_if_false @DES3_4309
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_4284
if 
  134@ == 0
goto_if_false @DES3_4277
35@ = 99
134@ = 1

:DES3_4277
goto @DES3_4309

:DES3_4284
if 
  134@ == 1
goto_if_false @DES3_4309
134@ = 0

:DES3_4309
if 
  35@ == 4
goto_if_false @DES3_4411
if 
  TIMERA > 1000
goto_if_false @DES3_4411
set_var_text_label s$audio_string = 'DES3_AA'
set_var_int_to_constant $audio_sound_file = 13200
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13201
TIMERB = 0
35@ += 1

:DES3_4411
if 
  35@ == 5
goto_if_false @DES3_4591
if 
  TIMERB > 1000
goto_if_false @DES3_4591
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4591
set_fixed_camera_position -433.6039 {y} 2235.21 {z} 43.11 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -432.6751 {y} 2234.8511 {z} 43.0197 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'DES3_AB'
set_var_int_to_constant $audio_sound_file = 13201
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13202
task_look_about $scplayer {time} 2000
TIMERB = 0
35@ += 1

:DES3_4591
if 
  35@ == 6
goto_if_false @DES3_4785
if 
  TIMERB > 1000
goto_if_false @DES3_4785
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4785
set_fixed_camera_position -430.2061 {y} 2236.6951 {z} 42.8085 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -429.379 {y} 2237.2339 {z} 42.9687 {switchStyle} SwitchType.JumpCut
set_var_text_label s$audio_string = 'DES3_AC'
set_var_int_to_constant $audio_sound_file = 13202
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13203
camera_reset_new_scriptables 
camera_persist_fov True
camera_set_lerp_fov 70.0 {to} 100.0 {time} 10000 {ease} True
TIMERB = 0
35@ += 1

:DES3_4785
if 
  35@ == 7
goto_if_false @DES3_4905
if 
  TIMERB > 1000
goto_if_false @DES3_4905
if 
  $audio_line_is_active == 0
goto_if_false @DES3_4905
set_var_text_label s$audio_string = 'DES3_AD'
set_var_int_to_constant $audio_sound_file = 13203
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13204
TIMERB = 0
35@ += 1

:DES3_4905
if 
  35@ == 8
goto_if_false @DES3_5014
if 
  TIMERB > 1000
goto_if_false @DES3_5014
if 
  $audio_line_is_active == 0
goto_if_false @DES3_5014
set_var_text_label s$audio_string = 'DES3_AE'
set_var_int_to_constant $audio_sound_file = 13204
start_new_script @AUDIOL -1 0 1 1 1 
TIMERB = 0
35@ += 1

:DES3_5014
if 
  35@ == 9
goto_if_false @DES3_5076
if 
  TIMERB > 1000
goto_if_false @DES3_5076
if 
  $audio_line_is_active == 0
goto_if_false @DES3_5076
35@ = 99

:DES3_5076
if 
  35@ == 99
goto_if_false @DES3_5175
$desert3_mission_attempts += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -432.3058 {y} 2234.375 {z} 41.4697
set_char_heading $scplayer {heading} 341.959
mark_car_as_no_longer_needed $car
camera_reset_new_scriptables 
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
gosub @DES3_26858

:DES3_5175
return 

:DES3_5177
if 
  35@ == 0
goto_if_false @DES3_5260
97@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 40 {x} -431.3719 {y} 2240.1321 {z} 42.6177
106@ = add_blip_for_pickup 97@
print_now 'AIR1_15' {time} 5000 {flag} 1
TIMERA = 0
35@ += 1

:DES3_5260
if 
  35@ == 1
goto_if_false @DES3_5429
if or
  has_pickup_been_collected 97@
  TIMERA > 7000
goto_if_false @DES3_5429
remove_blip 106@
remove_blip 101@
101@ = add_blip_for_coord -804.5877 {y} 2377.843 {z} 151.7558
print_now 'AIR1_16' {time} 7000 {flag} 1
request_animation "BOMBER"

:DES3_5358
if 
  not has_animation_loaded "BOMBER"
goto_if_false @DES3_5390
wait 0
goto @DES3_5358

:DES3_5390
request_model 343

:DES3_5395
if 
  not has_model_loaded 343
goto_if_false @DES3_5422
wait 0
goto @DES3_5395

:DES3_5422
35@ += 1

:DES3_5429
if 
  35@ == 2
goto_if_false @DES3_5715
if 
  68@ == 1
goto_if_false @DES3_5502
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_5502
set_char_coordinates $scplayer {x} -798.1865 {y} 2419.4099 {z} 155.9362

:DES3_5502
if 
  locate_char_any_means_3d $scplayer {x} -804.5877 {y} 2377.843 {z} 151.7558 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DES3_5715
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_5653
80@ = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_5632
if 
  is_vehicle_on_all_wheels 80@
goto_if_false @DES3_5625
set_player_control $player1 {state} False
35@ += 1

:DES3_5625
goto @DES3_5646

:DES3_5632
set_player_control $player1 {state} False
35@ += 1

:DES3_5646
goto @DES3_5715

:DES3_5653
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -804.5877 {y} 2377.843 {z} 151.7558 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @DES3_5715
set_player_control $player1 {state} False
35@ += 1

:DES3_5715
if 
  35@ == 3
goto_if_false @DES3_5904
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_5897
$car = store_car_char_is_in_no_save $scplayer
if and
  not is_char_in_any_heli $scplayer
  not is_char_in_any_plane $scplayer
goto_if_false @DES3_5808
if 
  is_car_stopped $car
goto_if_false @DES3_5801
35@ += 1

:DES3_5801
goto @DES3_5890

:DES3_5808
do_fade 500 {direction} Fade.Out

:DES3_5815
if 
  get_fading_status 
goto_if_false @DES3_5839
wait 0
goto @DES3_5815

:DES3_5839
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead $car
goto_if_false @DES3_5883
set_car_coordinates $car {x} -804.5877 {y} 2377.843 {z} 151.7558

:DES3_5883
35@ += 1

:DES3_5890
goto @DES3_5904

:DES3_5897
35@ += 1

:DES3_5904
if 
  35@ == 4
goto_if_false @DES3_5965
do_fade 500 {direction} Fade.Out

:DES3_5929
if 
  get_fading_status 
goto_if_false @DES3_5953
wait 0
goto @DES3_5929

:DES3_5953
remove_blip 101@
35@ = 99

:DES3_5965
if 
  35@ == 99
goto_if_false @DES3_5990
gosub @DES3_26858

:DES3_5990
return 

:DES3_5992
if 
  35@ == 0
goto_if_false @DES3_6261
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_6034
134@ = 1

:DES3_6034
100@ = 0
set_player_control $player1 {state} False
request_model 487
request_model 165
request_model 166
request_model 61
request_model 355
request_model 417
request_animation "BOMBER"
load_all_models_now 

:DES3_6089
if or
  not has_model_loaded 487
  not has_model_loaded 165
  not has_model_loaded 166
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded 417
goto_if_false @DES3_6140
wait 0
goto @DES3_6089

:DES3_6140
if 
  not has_animation_loaded "BOMBER"
goto_if_false @DES3_6172
wait 0
goto @DES3_6140

:DES3_6172
request_car_recording 530
request_car_recording 531
request_car_recording 532
request_car_recording 533
request_car_recording 534
request_car_recording 535

:DES3_6202
if or
  not has_car_recording_been_loaded 530
  not has_car_recording_been_loaded 531
  not has_car_recording_been_loaded 532
  not has_car_recording_been_loaded 533
  not has_car_recording_been_loaded 534
  not has_car_recording_been_loaded 535
goto_if_false @DES3_6254
wait 0
goto @DES3_6202

:DES3_6254
35@ += 1

:DES3_6261
if 
  35@ > 0
goto_if_false @DES3_6360
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_6335
if 
  134@ == 0
goto_if_false @DES3_6328
35@ = 99
134@ = 1

:DES3_6328
goto @DES3_6360

:DES3_6335
if 
  134@ == 1
goto_if_false @DES3_6360
134@ = 0

:DES3_6360
if 
  35@ == 1
goto_if_false @DES3_6593
clear_char_tasks_immediately $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
clear_area -800.611 {y} 2404.7881 {z} 155.168 {radius} 5.0 {clearParticles} True
clear_area -800.8441 {y} 2408.354 {z} 155.4525 {radius} 5.0 {clearParticles} True
set_char_coordinates $scplayer {x} -800.611 {y} 2404.7881 {z} 155.168
set_char_heading $scplayer {heading} 342.2393
task_go_straight_to_coord $scplayer {x} -800.8441 {y} 2408.354 {z} 155.4525 {speed} MoveState.Walk {time} 10000
set_fixed_camera_position -797.7917 {y} 2403.7351 {z} 157.1193 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -798.3541 {y} 2404.542 {z} 156.9353 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 500 {direction} Fade.In

:DES3_6555
if 
  get_fading_status 
goto_if_false @DES3_6579
wait 0
goto @DES3_6555

:DES3_6579
35@ += 1
TIMERA = 0

:DES3_6593
if 
  35@ == 2
goto_if_false @DES3_6674
if or
  locate_char_on_foot_3d $scplayer {x} -800.8441 {y} 2408.354 {z} 155.4525 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
  TIMERA > 5000
goto_if_false @DES3_6674
35@ += 1

:DES3_6674
if 
  35@ == 3
goto_if_false @DES3_6869
94@ = create_object 343 {x} 0.0 {y} 0.0 {z} 0.0
49@ = open_sequence_task 
task_pick_up_object -1 {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@
35@ += 1

:DES3_6869
if 
  35@ == 4
goto_if_false @DES3_6977
if 
  is_char_playing_anim $scplayer {animationName} "BOM_PLANT_LOOP"
goto_if_false @DES3_6977
set_fixed_camera_position -789.7653 {y} 2416.895 {z} 163.5839 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -790.3218 {y} 2416.124 {z} 163.2729 {switchStyle} SwitchType.JumpCut
35@ += 1

:DES3_6977
if 
  35@ == 5
goto_if_false @DES3_7178
43@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 43@ == 7
goto_if_false @DES3_7178
drop_object $scplayer {state} False
freeze_object_position 94@ {state} True
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 0.05
set_object_coordinates 94@ {x} $x {y} $y {z} $z
100@ = create_fx_system_on_object "SMOKE_FLARE" {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {ignoreBoundingChecks} True
play_fx_system 100@
clear_char_tasks $scplayer
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13205
35@ += 1

:DES3_7178
if 
  35@ == 6
goto_if_false @DES3_7222
if 
  TIMERA > 4000
goto_if_false @DES3_7222
35@ += 1

:DES3_7222
if 
  35@ == 7
goto_if_false @DES3_7388
set_fixed_camera_position -779.9253 {y} 2418.3379 {z} 157.8122 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -778.9708 {y} 2418.6289 {z} 157.7476 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -786.2731 {y} 2416.113 {z} 156.0893
set_char_heading $scplayer {heading} 284.998
task_go_straight_to_coord $scplayer {x} -782.2095 {y} 2417.0271 {z} 156.1289 {speed} MoveState.Walk {time} 5000
camera_reset_new_scriptables 
camera_persist_fov True
camera_set_lerp_fov 70.0 {to} 100.0 {time} 10000 {ease} True
TIMERA = 0
35@ += 1

:DES3_7388
if 
  35@ == 8
goto_if_false @DES3_7515
if 
  TIMERA > 1000
goto_if_false @DES3_7515
set_var_text_label s$audio_string = 'DES3_BA'
set_var_int_to_constant $audio_sound_file = 13205
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13206
task_look_at_coord $scplayer {x} -809.4514 {y} 2426.5149 {z} 158.8622 {time} 99999
TIMERA = 0
35@ += 1

:DES3_7515
if 
  35@ == 9
goto_if_false @DES3_7636
if 
  TIMERA > 1000
goto_if_false @DES3_7636
if 
  $audio_line_is_active == 0
goto_if_false @DES3_7636
set_var_text_label s$audio_string = 'DES3_BB'
set_var_int_to_constant $audio_sound_file = 13206
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13207
TIMERA = 0
35@ += 1

:DES3_7636
if 
  35@ == 10
goto_if_false @DES3_7698
if 
  TIMERA > 1000
goto_if_false @DES3_7698
if 
  $audio_line_is_active == 0
goto_if_false @DES3_7698
35@ += 1

:DES3_7698
if 
  35@ == 11
goto_if_false @DES3_8436
do_fade 500 {direction} Fade.Out

:DES3_7723
if 
  get_fading_status 
goto_if_false @DES3_7747
wait 0
goto @DES3_7723

:DES3_7747
196@ = get_radio_channel 
set_radio_channel RadioChannel.UserTracks
if 
  does_vehicle_exist 71@
goto_if_false @DES3_7824
if 
  not is_car_dead 71@
goto_if_false @DES3_7824
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 71@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DES3_7824
mark_car_as_no_longer_needed 71@

:DES3_7824
if 
  does_vehicle_exist 73@
goto_if_false @DES3_7892
if 
  not is_car_dead 73@
goto_if_false @DES3_7892
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 73@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DES3_7892
mark_car_as_no_longer_needed 73@

:DES3_7892
if 
  does_vehicle_exist 72@
goto_if_false @DES3_7960
if 
  not is_car_dead 72@
goto_if_false @DES3_7960
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 72@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @DES3_7960
mark_car_as_no_longer_needed 72@

:DES3_7960
$x = -778.9708
$x += 779.9253
$y = 2418.6289
$y -= 2418.3379
$heading = get_heading_from_vector_2d $x {y} $y
load_scene_in_direction -1373.0 {y} 2004.0 {z} 108.0 {heading} $heading
gosub @DES3_17557
if 
  not is_car_dead 74@
goto_if_false @DES3_8142
start_playback_recorded_car 74@ {path} 530
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
77@ = create_car 417 {x} $x {y} $y {z} $z
set_heli_blades_full_speed 77@
start_playback_recorded_car 77@ {path} 531
set_car_visible 77@ {state} False
switch_widescreen True
warp_char_into_car_as_passenger $scplayer {handle} 74@ {seat} SeatId.BikeRear

:DES3_8142
108@ = 0
62@ = 0
if 
  not is_car_dead 77@
goto_if_false @DES3_8219
disable_heli_audio 77@ {state} True
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8219
if 
  not is_car_dead 74@
goto_if_false @DES3_8277
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8277
do_fade 500 {direction} Fade.In

:DES3_8284
if 
  get_fading_status 
goto_if_false @DES3_8422
if 
  not is_car_dead 77@
goto_if_false @DES3_8353
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8353
if 
  not is_car_dead 74@
goto_if_false @DES3_8411
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8411
wait 0
goto @DES3_8284

:DES3_8422
TIMERA = 0
35@ += 1

:DES3_8436
if 
  35@ == 12
goto_if_false @DES3_8608
if 
  not is_car_dead 77@
goto_if_false @DES3_8510
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8510
if 
  not is_car_dead 74@
goto_if_false @DES3_8568
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8568
if 
  TIMERA > 11700
goto_if_false @DES3_8608
do_fade 300 {direction} Fade.Out
TIMERA = 0
35@ += 1

:DES3_8608
if 
  35@ == 13
goto_if_false @DES3_8806
if 
  get_fading_status 
goto_if_false @DES3_8760
if 
  not is_car_dead 77@
goto_if_false @DES3_8695
$x, $y, $z = get_car_coordinates 77@
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0

:DES3_8695
if 
  not is_car_dead 74@
goto_if_false @DES3_8753
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 5.0 {yOffset} -10.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_8753
goto @DES3_8806

:DES3_8760
set_fixed_camera_position -1047.62 {y} 2164.925 {z} 88.4215 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
TIMERA = 0
35@ += 1

:DES3_8806
if 
  35@ == 14
goto_if_false @DES3_9254
if 
  not is_car_dead 74@
goto_if_false @DES3_8861
if 
  is_playback_going_on_for_car 74@
goto_if_false @DES3_8861
stop_playback_recorded_car 74@

:DES3_8861
gosub @DES3_18288
gosub @DES3_23443
if 
  not is_car_dead 75@
goto_if_false @DES3_8904
start_playback_recorded_car 75@ {path} 532
pause_playback_recorded_car 75@

:DES3_8904
if 
  not is_car_dead 76@
goto_if_false @DES3_8933
start_playback_recorded_car 76@ {path} 533
pause_playback_recorded_car 76@

:DES3_8933
if 
  not is_car_dead 74@
goto_if_false @DES3_8962
start_playback_recorded_car 74@ {path} 535
pause_playback_recorded_car 74@

:DES3_8962
set_fixed_camera_position -798.5942 {y} 2436.1841 {z} 172.1772 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 74@
goto_if_false @DES3_9039
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_9039
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
load_scene_in_direction -778.0 {y} 2465.0 {z} 168.0 {heading} 45.0
if 
  not is_car_dead 75@
goto_if_false @DES3_9095
unpause_playback_recorded_car 75@

:DES3_9095
if 
  not is_car_dead 76@
goto_if_false @DES3_9116
unpause_playback_recorded_car 76@

:DES3_9116
if 
  not is_car_dead 74@
goto_if_false @DES3_9137
unpause_playback_recorded_car 74@

:DES3_9137
do_fade 300 {direction} Fade.In

:DES3_9144
if 
  get_fading_status 
goto_if_false @DES3_9226
if 
  not is_car_dead 74@
goto_if_false @DES3_9202
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_9202
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
wait 0
goto @DES3_9144

:DES3_9226
62@ = 0
TIMERB = 0
TIMERA = 0
35@ += 1

:DES3_9254
if 
  35@ == 15
goto_if_false @DES3_10273
if 
  62@ <> 7
goto_if_false @DES3_10006
if 
  not is_car_dead 74@
goto_if_false @DES3_9335
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_9335
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  TIMERB > 1000
goto_if_false @DES3_9999
switch_start 62@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @DES3_9999 {caseNum1} 0 {caseLabel1} @DES3_9430 {caseNum2} 1 {caseLabel2} @DES3_9520 {caseNum3} 2 {caseLabel3} @DES3_9610 {caseNum4} 3 {caseLabel4} @DES3_9700 {caseNum5} 4 {caseLabel5} @DES3_9790 {caseNum6} 5 {caseLabel6} @DES3_9881 {caseNum7} 6 {caseLabel7} @DES3_9960

:DES3_9430
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9513
set_var_text_label s$audio_string = 'DES3_BC'
set_var_int_to_constant $audio_sound_file = 13207
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13208
TIMERB = 0
62@ += 1

:DES3_9513
goto @DES3_9999

:DES3_9520
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9603
set_var_text_label s$audio_string = 'DES3_BD'
set_var_int_to_constant $audio_sound_file = 13208
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13209
TIMERB = 0
62@ += 1

:DES3_9603
goto @DES3_9999

:DES3_9610
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9693
set_var_text_label s$audio_string = 'DES3_BE'
set_var_int_to_constant $audio_sound_file = 13209
start_new_script @AUDIOL -1 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13210
TIMERB = 0
62@ += 1

:DES3_9693
goto @DES3_9999

:DES3_9700
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9783
set_var_text_label s$audio_string = 'DES3_BF'
set_var_int_to_constant $audio_sound_file = 13210
start_new_script @AUDIOL -1 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13211
TIMERB = 0
62@ += 1

:DES3_9783
goto @DES3_9999

:DES3_9790
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9874
set_var_text_label s$audio_string = 'DES3_BG'
set_var_int_to_constant $audio_sound_file = 13211
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13212
TIMERB = 0
62@ += 1

:DES3_9874
goto @DES3_9999

:DES3_9881
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9953
set_var_text_label s$audio_string = 'DES3_BH'
set_var_int_to_constant $audio_sound_file = 13212
start_new_script @AUDIOL -1 0 1 2 1 
TIMERB = 0
62@ += 1

:DES3_9953
goto @DES3_9999

:DES3_9960
if 
  $audio_line_is_active == 0
goto_if_false @DES3_9992
TIMERB = 0
62@ += 1

:DES3_9992
goto @DES3_9999

:DES3_9999
goto @DES3_10273

:DES3_10006
if 
  TIMERB > 2000
goto_if_false @DES3_10215
if 
  not is_car_dead 74@
goto_if_false @DES3_10070
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_10070
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 75@
goto_if_false @DES3_10120
if 
  is_playback_going_on_for_car 75@
goto_if_false @DES3_10120
stop_playback_recorded_car 75@

:DES3_10120
if 
  not is_car_dead 76@
goto_if_false @DES3_10157
if 
  is_playback_going_on_for_car 76@
goto_if_false @DES3_10157
stop_playback_recorded_car 76@

:DES3_10157
if 
  not is_car_dead 74@
goto_if_false @DES3_10194
if 
  is_playback_going_on_for_car 74@
goto_if_false @DES3_10194
stop_playback_recorded_car 74@

:DES3_10194
do_fade 150 {direction} Fade.Out
35@ += 1
goto @DES3_10273

:DES3_10215
if 
  not is_car_dead 74@
goto_if_false @DES3_10260
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_10260
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_10273
if 
  35@ == 16
goto_if_false @DES3_10376
if 
  get_fading_status 
goto_if_false @DES3_10369
if 
  not is_car_dead 74@
goto_if_false @DES3_10349
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -15.0 {yOffset} 5.0 {zOffset} -3.0

:DES3_10349
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @DES3_10376

:DES3_10369
35@ = 99

:DES3_10376
if 
  35@ == 99
goto_if_false @DES3_10727
do_fade 0 {direction} Fade.Out
if 
  does_object_exist 94@
goto_if_false @DES3_10510
if 
  is_char_holding_object $scplayer {handle} 94@
goto_if_false @DES3_10442
drop_object $scplayer {state} True

:DES3_10442
if 
  100@ == 0
goto_if_false @DES3_10503
100@ = create_fx_system_on_object "SMOKE_FLARE" {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {ignoreBoundingChecks} True
play_fx_system 100@

:DES3_10503
goto @DES3_10624

:DES3_10510
$x = -800.8441
$y = 2408.354
$z = 155.4525
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 1.0
94@ = create_object 343 {x} $x {y} $y {z} $z
100@ = create_fx_system_on_object "SMOKE_FLARE" {object} 94@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.1 {ignoreBoundingChecks} True
play_fx_system 100@

:DES3_10624
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
load_scene -806.467 {y} 2420.75 {z} 155.9102
set_char_coordinates $scplayer {x} -806.467 {y} 2420.75 {z} 155.9102
set_char_heading $scplayer {heading} 190.8497
if 
  does_vehicle_exist 77@
goto_if_false @DES3_10699
delete_car 77@

:DES3_10699
gosub @DES3_17660
gosub @DES3_19147
gosub @DES3_24422
gosub @DES3_26858

:DES3_10727
return 

:DES3_10729
if 
  35@ == 0
goto_if_false @DES3_11344
request_model 487
request_model 165
request_model 166
request_model 61
request_model 355
request_model 417

:DES3_10776
if or
  not has_model_loaded 487
  not has_model_loaded 165
  not has_model_loaded 166
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded 417
goto_if_false @DES3_10827
wait 0
goto @DES3_10776

:DES3_10827
133@ = 0
231@ = -780.6791
232@ = 2482.3391
233@ = 170.8723
234@ = 151.9289
gosub @DES3_18288
259@ = -750.933
260@ = 2465.2849
261@ = 180.7247
262@ = 144.1498
gosub @DES3_23443
227@ = -772.2108
228@ = 2419.843
229@ = 174.0836
230@ = 176.9396
gosub @DES3_17557
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -789.7678 {y} 2416.916 {z} 156.022
set_char_heading $scplayer {heading} 190.8497
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
TIMERA = 0
111@ = 0
114@ = 0
set_lvar_int_to_constant 109@ = 5
112@ = 0
set_lvar_int_to_constant 110@ = 0
113@ = 0
force_weather_now WeatherType.ExtraSunnyDesert
$pheli_health = 100
print_now 'AIR1_06' {time} 7000 {flag} 1
display_onscreen_counter_with_string $pheli_health {display} CounterDisplay.Bar {text} 'AIR1_17'
if 
  not is_car_dead 71@
goto_if_false @DES3_11140
vehicle_can_be_targetted_by_hs_missile 71@ {state} False

:DES3_11140
if 
  not is_car_dead 72@
goto_if_false @DES3_11163
vehicle_can_be_targetted_by_hs_missile 72@ {state} False

:DES3_11163
if 
  not is_car_dead 73@
goto_if_false @DES3_11186
vehicle_can_be_targetted_by_hs_missile 73@ {state} False

:DES3_11186
if 
  not is_car_dead 74@
goto_if_false @DES3_11209
vehicle_can_be_targetted_by_hs_missile 74@ {state} False

:DES3_11209
98@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} -770.752 {y} 2423.6299 {z} 157.0753
99@ = create_pickup_with_ammo 359 {pickupType} PickupType.Once {ammo} 20 {x} -808.1523 {y} 2430.7881 {z} 156.9872
set_max_fire_generations 3
set_wanted_multiplier 0.5
set_max_wanted_level 2
switch_police_helis False
197@ = 0
129@ = 1
130@ = 1
set_radio_channel 196@
do_fade 150 {direction} Fade.In

:DES3_11313
if 
  get_fading_status 
goto_if_false @DES3_11337
wait 0
goto @DES3_11313

:DES3_11337
35@ += 1

:DES3_11344
if 
  not is_car_dead 74@
goto_if_false @DES3_11704
if 
  139@ > 50
goto_if_false @DES3_11660
43@ = get_car_health 74@
if 
  43@ > 100
goto_if_false @DES3_11653
43@ = 0
if 
  not is_car_dead 75@
goto_if_false @DES3_11490
$x, $y, $z = get_car_coordinates 75@
if 
  locate_car_3d 74@ {x} $x {y} $y {z} $z {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DES3_11490
43@ = 1

:DES3_11490
if 
  43@ == 0
goto_if_false @DES3_11587
if 
  not is_car_dead 76@
goto_if_false @DES3_11587
$x, $y, $z = get_car_coordinates 76@
if 
  locate_car_3d 74@ {x} $x {y} $y {z} $z {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @DES3_11587
43@ = 1

:DES3_11587
if 
  43@ == 1
goto_if_false @DES3_11653
43@ = get_car_health 74@
43@ += -5
if 
  0 > 43@
goto_if_false @DES3_11645
43@ = 1

:DES3_11645
set_car_health 74@ {health} 43@

:DES3_11653
139@ = 0

:DES3_11660
43@ = get_car_health 74@
cset_lvar_float_to_lvar_int 46@ =# 43@
46@ /= 5000.0
46@ *= 100.0
cset_var_int_to_lvar_float $pheli_health =# 46@

:DES3_11704
if 
  35@ == 1
goto_if_false @DES3_12253
if 
  133@ == 5
goto_if_false @DES3_11772
if 
  197@ == 0
goto_if_false @DES3_11772
set_lvar_int_to_constant 109@ = 5
197@ += 1

:DES3_11772
if 
  5 > 133@
goto_if_false @DES3_11901
if 
  75@ == 0
goto_if_false @DES3_11901
if 
  129@ == 0
goto_if_false @DES3_11901
231@ = -344.9471
232@ = 2724.4209
233@ = 186.0
234@ = 110.0
gosub @DES3_18288
set_lvar_int_to_constant 109@ = 0
112@ = 0
129@ += 1
TIMERA = 0

:DES3_11901
if 
  5 > 133@
goto_if_false @DES3_12030
if 
  76@ == 0
goto_if_false @DES3_12030
if 
  130@ == 0
goto_if_false @DES3_12030
259@ = -324.9471
260@ = 2704.4209
261@ = 186.0
262@ = 110.0
gosub @DES3_23443
set_lvar_int_to_constant 110@ = 0
113@ = 0
130@ += 1
TIMERB = 0

:DES3_12030
if 
  129@ > 0
goto_if_false @DES3_12094
if 
  75@ == 0
goto_if_false @DES3_12094
127@ += 1
131@ += 1
129@ = 0
TIMERA = 0

:DES3_12094
if 
  130@ > 0
goto_if_false @DES3_12158
if 
  76@ == 0
goto_if_false @DES3_12158
128@ += 1
131@ += 1
130@ = 0
TIMERB = 0

:DES3_12158
if 
  68@ == 1
goto_if_false @DES3_12200
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_12200
131@ = 5

:DES3_12200
if 
  131@ == 5
goto_if_false @DES3_12232
TIMERA = 0
35@ += 1

:DES3_12232
gosub @DES3_17718
gosub @DES3_19279
gosub @DES3_24554

:DES3_12253
if 
  35@ == 2
goto_if_false @DES3_12297
if 
  TIMERA > 2000
goto_if_false @DES3_12297
35@ = 99

:DES3_12297
if 
  35@ == 99
goto_if_false @DES3_12359
set_wanted_multiplier 1.0
set_max_wanted_level 6
clear_onscreen_counter $pheli_health
gosub @DES3_17660
gosub @DES3_19147
gosub @DES3_24422
gosub @DES3_26858

:DES3_12359
return 

:DES3_12361
if 
  35@ == 0
goto_if_false @DES3_12673
request_model 417
request_model 61
request_model 355
request_model #KMB_HOLDALL
request_model #KMB_PARACHUTE
request_model 508
request_model 68
request_model 75
request_model 568

:DES3_12421
if or
  not has_model_loaded 417
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded #KMB_HOLDALL
  not has_model_loaded #KMB_PARACHUTE
goto_if_false @DES3_12467
wait 0
goto @DES3_12421

:DES3_12467
if or
  not has_model_loaded 508
  not has_model_loaded 568
goto_if_false @DES3_12499
wait 0
goto @DES3_12467

:DES3_12499
request_car_recording 536
request_car_recording 537
request_car_recording 538

:DES3_12514
if or
  not has_car_recording_been_loaded 536
  not has_car_recording_been_loaded 537
  not has_car_recording_been_loaded 538
goto_if_false @DES3_12551
wait 0
goto @DES3_12514

:DES3_12551
gosub @DES3_17557
if 
  not is_car_dead 74@
goto_if_false @DES3_12582
start_playback_recorded_car 74@ {path} 536

:DES3_12582
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
freeze_char_position $scplayer {state} True
switch_widescreen True
set_fixed_camera_position -720.812 {y} 2476.1819 {z} 171.2749 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -721.6284 {y} 2475.6069 {z} 171.2184 {switchStyle} SwitchType.JumpCut
TIMERA = 0
35@ += 1

:DES3_12673
if and
  35@ > 0
  TIMERA > 3000
goto_if_false @DES3_12723
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DES3_12723
35@ = 99

:DES3_12723
if 
  35@ == 1
goto_if_false @DES3_12900
if 
  5000 > TIMERA
goto_if_false @DES3_12825
if 
  not is_car_dead 74@
goto_if_false @DES3_12818
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 3.0 {yOffset} -5.0 {zOffset} -2.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:DES3_12818
goto @DES3_12900

:DES3_12825
do_fade 300 {direction} Fade.Out

:DES3_12832
if 
  get_fading_status 
goto_if_false @DES3_12856
wait 0
goto @DES3_12832

:DES3_12856
if 
  not is_car_dead 74@
goto_if_false @DES3_12893
if 
  is_playback_going_on_for_car 74@
goto_if_false @DES3_12893
stop_playback_recorded_car 74@

:DES3_12893
35@ += 1

:DES3_12900
if 
  35@ == 2
goto_if_false @DES3_13189
if 
  not is_car_dead 74@
goto_if_false @DES3_13189
do_fade 300 {direction} Fade.In
start_playback_recorded_car_looped 74@ {pathId} 538
set_fixed_camera_position 247.7597 {y} 2515.937 {z} 82.7789 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 246.7721 {y} 2515.894 {z} 82.6276 {switchStyle} SwitchType.JumpCut
skip_in_playback_recorded_car 74@ {amount} 100.0
96@ = create_object #KMB_HOLDALL {x} 0.0 {y} 0.0 {z} 0.0
attach_object_to_car 96@ {handle} 74@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} -0.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_visible 96@ {state} False
95@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
attach_object_to_car 95@ {handle} 74@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -2.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_visible 95@ {state} False
TIMERA = 0
142@ = 2.0
143@ = -7.0
144@ = 1.0
35@ += 1

:DES3_13189
if 
  35@ == 3
goto_if_false @DES3_13426
if 
  does_object_exist 95@
goto_if_false @DES3_13246
$x, $y, $z = get_offset_from_object_in_world_coords 95@ {xOffset} 142@ {yOffset} 143@ {zOffset} 144@

:DES3_13246
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  TIMERA > 7000
goto_if_false @DES3_13426
set_fixed_camera_position 296.2388 {y} 2480.553 {z} 97.5696 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 295.5632 {y} 2481.1531 {z} 97.141 {switchStyle} SwitchType.JumpCut
if 
  does_object_exist 96@
goto_if_false @DES3_13367
detach_object 96@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:DES3_13367
set_object_visible 96@ {state} True
if 
  does_object_exist 95@
goto_if_false @DES3_13412
detach_object 95@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:DES3_13412
TIMERA = 0
35@ += 1

:DES3_13426
if 
  35@ == 4
goto_if_false @DES3_13616
if 
  TIMERA > 1200
goto_if_false @DES3_13558
208@ = 264.2501
209@ = 2877.011
210@ = 13.7096
gosub @DES3_16532
if 
  does_object_exist 96@
goto_if_false @DES3_13544
$x, $y, $z = get_object_coordinates 96@
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundParachuteOpen

:DES3_13544
TIMERA = 0
35@ += 1

:DES3_13558
if 
  does_object_exist 95@
goto_if_false @DES3_13616
$x, $y, $z = get_object_velocity 95@
$z *= -0.1
add_to_object_velocity 95@ {x} 0.0 {y} 0.0 {z} $z

:DES3_13616
if 
  35@ == 5
goto_if_false @DES3_13725
gosub @DES3_16957
if 
  TIMERA > 5000
goto_if_false @DES3_13667
35@ = 99

:DES3_13667
if 
  does_object_exist 95@
goto_if_false @DES3_13725
$x, $y, $z = get_object_velocity 95@
$z *= -0.5
add_to_object_velocity 95@ {x} 0.0 {y} 0.0 {z} $z

:DES3_13725
if 
  35@ == 99
goto_if_false @DES3_14043
do_fade 0 {direction} Fade.In
if 
  not is_car_dead 80@
goto_if_false @DES3_13780
107@ = add_blip_for_car 80@
goto @DES3_13840

:DES3_13780
mark_car_as_no_longer_needed 80@
clear_area -804.5877 {y} 2377.843 {z} 151.7558 {radius} 5.0 {clearParticles} True
80@ = create_car 568 {x} -804.5877 {y} 2377.843 {z} 151.7558
107@ = add_blip_for_car 80@

:DES3_13840
$x, $y, $z = get_char_coordinates $scplayer
clear_area $x {y} $y {z} $z {radius} 20.0 {clearParticles} True
set_blip_as_friendly 107@ {state} True
mark_model_as_no_longer_needed 568
79@ = create_car 508 {x} -680.7584 {y} 2466.0811 {z} 114.9057
set_car_heading 79@ {heading} 75.939
92@ = create_char_inside_car 79@ {pedType} PedType.CivMale {modelId} 68
93@ = create_char_as_passenger 79@ {pedType} PedType.CivFemale {modelId} 75 {seat} SeatId.BikeRear
task_car_drive_to_coord 92@ {vehicle} 79@ {x} -726.9384 {y} 2357.3879 {z} 125.5138 {speed} 10.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 75
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_char_position $scplayer {state} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
wait 0
delete_object 96@
delete_object 95@
gosub @DES3_17660
gosub @DES3_26858

:DES3_14043
return 

:DES3_14045
if 
  35@ == 0
goto_if_false @DES3_14308
print_now 'AIR1_09' {time} 7000 {flag} 1
request_model 487
request_model 61
request_model 355
request_model #KMB_HOLDALL
request_model #KMB_PARACHUTE
request_model 165
request_model 166

:DES3_14113
if or
  not has_model_loaded 487
  not has_model_loaded 61
  not has_model_loaded 355
  not has_model_loaded #KMB_HOLDALL
  not has_model_loaded 165
  not has_model_loaded 166
goto_if_false @DES3_14164
wait 0
goto @DES3_14113

:DES3_14164
if 
  not has_model_loaded #KMB_PARACHUTE
goto_if_false @DES3_14191
wait 0
goto @DES3_14164

:DES3_14191
214@ = 216.9669
215@ = 2689.1489
216@ = 90.0
208@ = 264.2501
209@ = 2877.011
210@ = 13.7096
if 
  does_object_exist 96@
goto_if_false @DES3_14272
delete_object 96@

:DES3_14272
gosub @DES3_16532
105@ = add_blip_for_object 96@
set_object_scale 96@ {scale} 0.3
switch_police_helis True
35@ += 1

:DES3_14308
if 
  35@ == 1
goto_if_false @DES3_14516
if 
  68@ == 1
goto_if_false @DES3_14381
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @DES3_14381
set_char_coordinates $scplayer {x} 417.0 {y} 2493.0 {z} 27.83

:DES3_14381
if 
  226@ == 0
goto_if_false @DES3_14516
if 
  does_object_exist 96@
goto_if_false @DES3_14516
$x, $y, $z = get_object_coordinates 96@
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @DES3_14516
if 
  does_blip_exist 107@
goto_if_false @DES3_14492
remove_blip 107@

:DES3_14492
delete_object 96@
remove_blip 105@
TIMERA = 0
35@ += 1

:DES3_14516
if 
  35@ == 2
goto_if_false @DES3_14691
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 269.6016 {y} 2868.4641 {z} 15.2584 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 269.2238 {y} 2869.373 {z} 15.0806 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 265.7708 {y} 2873.0779 {z} 13.4336
set_char_heading $scplayer {heading} 266.1126
set_var_text_label s$audio_string = 'DES3_CA'
set_var_int_to_constant $audio_sound_file = 13213
start_new_script @AUDIOL -1 0 1 1 0 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13214
TIMERB = 0
35@ += 1

:DES3_14691
if 
  35@ == 3
goto_if_false @DES3_14812
if 
  TIMERB > 1000
goto_if_false @DES3_14812
if 
  $audio_line_is_active == 0
goto_if_false @DES3_14812
set_var_text_label s$audio_string = 'DES3_CB'
set_var_int_to_constant $audio_sound_file = 13214
start_new_script @AUDIOL $scplayer 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13215
35@ += 1
TIMERB = 0

:DES3_14812
if 
  35@ == 4
goto_if_false @DES3_14933
if 
  TIMERB > 1000
goto_if_false @DES3_14933
if 
  $audio_line_is_active == 0
goto_if_false @DES3_14933
set_var_text_label s$audio_string = 'DES3_CC'
set_var_int_to_constant $audio_sound_file = 13215
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13216
35@ += 1
TIMERB = 0

:DES3_14933
if 
  35@ == 5
goto_if_false @DES3_15042
if 
  TIMERB > 1000
goto_if_false @DES3_15042
if 
  $audio_line_is_active == 0
goto_if_false @DES3_15042
set_var_text_label s$audio_string = 'DES3_CD'
set_var_int_to_constant $audio_sound_file = 13216
start_new_script @AUDIOL -1 0 1 2 1 
35@ += 1
TIMERB = 0

:DES3_15042
if 
  35@ == 6
goto_if_false @DES3_15127
if 
  TIMERB > 1000
goto_if_false @DES3_15127
if 
  $audio_line_is_active == 0
goto_if_false @DES3_15127
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
35@ += 1

:DES3_15127
if 
  35@ == 7
goto_if_false @DES3_15195
print_now 'AIR1_10' {time} 7000 {flag} 1
101@ = add_blip_for_coord -394.8462 {y} 2226.6221 {z} 41.4259
198@ = 0
35@ += 1

:DES3_15195
if 
  35@ == 8
goto_if_false @DES3_15594
if 
  198@ == 0
goto_if_false @DES3_15304
if 
  locate_char_any_means_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DES3_15297
open_garage 'GHOSTDR'
198@ = 1

:DES3_15297
goto @DES3_15370

:DES3_15304
if 
  not locate_char_any_means_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @DES3_15370
close_garage 'GHOSTDR'
198@ = 0

:DES3_15370
if 
  does_blip_exist 101@
goto_if_false @DES3_15550
if 
  is_char_in_any_car $scplayer
goto_if_false @DES3_15488
if 
  locate_char_in_car_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @DES3_15481
$car = store_car_char_is_in_no_save $scplayer
if 
  is_vehicle_on_all_wheels $car
goto_if_false @DES3_15481
35@ += 1

:DES3_15481
goto @DES3_15543

:DES3_15488
if 
  locate_char_on_foot_3d $scplayer {x} -394.8462 {y} 2226.6221 {z} 41.4259 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @DES3_15543
35@ += 1

:DES3_15543
goto @DES3_15594

:DES3_15550
if 
  TIMERA > 60000
goto_if_false @DES3_15594
print_now 'AIR1_11' {time} 7000 {flag} 1
TIMERA = 0

:DES3_15594
if 
  35@ == 9
goto_if_false @DES3_15740
set_player_control $player1 {state} False
close_garage 'GHOSTDR'
do_fade 1000 {direction} Fade.Out

:DES3_15637
if 
  get_fading_status 
goto_if_false @DES3_15661
wait 0
goto @DES3_15637

:DES3_15661
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -389.8034 {y} 2230.7419 {z} 41.4297
set_char_heading $scplayer {heading} 270.0
set_camera_in_front_of_player 
restore_camera_jumpcut 

:DES3_15700
if 
  not is_garage_closed 'GHOSTDR'
goto_if_false @DES3_15733
wait 0
goto @DES3_15700

:DES3_15733
36@ = 1

:DES3_15740
if 
  132@ == 0
goto_if_false @DES3_15906
if 
  does_vehicle_exist 75@
goto_if_false @DES3_15906
if 
  not is_car_dead 75@
goto_if_false @DES3_15906
$x, $y, $z = get_char_coordinates $scplayer
if 
  not locate_car_3d 75@ {x} $x {y} $y {z} $z {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @DES3_15860
activate_heli_speed_cheat 75@ {power} 10
goto @DES3_15906

:DES3_15860
$des3_heat = 100
display_onscreen_counter_with_string $des3_heat {display} CounterDisplay.Bar {text} 'AIR1_12'
132@ = 1
print_now 'AIR1_11' {time} 7000 {flag} 1

:DES3_15906
if 
  132@ == 1
goto_if_false @DES3_16230
if 
  does_vehicle_exist 75@
goto_if_false @DES3_16230
if 
  not is_car_dead 75@
goto_if_false @DES3_16202
$x, $y, $z = get_char_coordinates $scplayer
56@, 57@, 58@ = get_car_coordinates 75@
140@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 56@ {toY} 57@ {toZ} 58@
if 
  175.0 > 140@
goto_if_false @DES3_16085
if 
  100 > $des3_heat
goto_if_false @DES3_16078
if 
  137@ > 100
goto_if_false @DES3_16078
$des3_heat += 1
137@ = 0

:DES3_16078
goto @DES3_16135

:DES3_16085
if 
  $des3_heat > 0
goto_if_false @DES3_16135
if 
  137@ > 100
goto_if_false @DES3_16135
$des3_heat += -1
137@ = 0

:DES3_16135
if 
  $des3_heat == 0
goto_if_false @DES3_16195
set_lvar_int_to_constant 109@ = 99
112@ = 0
print_now 'AIR1_10' {time} 7000 {flag} 1
132@ = 2
clear_onscreen_counter $des3_heat

:DES3_16195
goto @DES3_16230

:DES3_16202
print_now 'AIR1_10' {time} 7000 {flag} 1
132@ = 2
clear_onscreen_counter $des3_heat

:DES3_16230
if 
  35@ > 1
goto_if_false @DES3_16332
if 
  does_blip_exist 101@
goto_if_false @DES3_16294
if 
  132@ == 1
goto_if_false @DES3_16287
remove_blip 101@

:DES3_16287
goto @DES3_16332

:DES3_16294
if 
  132@ == 2
goto_if_false @DES3_16332
101@ = add_blip_for_coord -450.9301 {y} 2238.45 {z} 43.4409

:DES3_16332
if 
  39@ == 3
goto_if_false @DES3_16373
if 
  does_vehicle_exist 75@
goto_if_false @DES3_16373
gosub @DES3_19279

:DES3_16373
gosub @DES3_16957
return 

:DES3_16382
if 
  does_blip_exist 107@
goto_if_false @DES3_16450
if 
  not is_car_dead 80@
goto_if_false @DES3_16445
if 
  is_char_in_car $scplayer {vehicle} 80@
goto_if_false @DES3_16438
remove_blip 107@

:DES3_16438
goto @DES3_16450

:DES3_16445
remove_blip 107@

:DES3_16450
if 
  does_vehicle_exist 74@
goto_if_false @DES3_16505
if 
  is_car_dead 74@
goto_if_false @DES3_16505
37@ = 1
print_now 'AIR1_08' {time} 5000 {flag} 1

:DES3_16505
if 
  39@ == 7
goto_if_false @DES3_16530
gosub @DES3_26440

:DES3_16530
return 

:DES3_16532
if 
  does_object_exist 96@
goto_if_false @DES3_16577
214@, 215@, 216@ = get_object_coordinates 96@
216@ += 6.679
delete_object 96@

:DES3_16577
96@ = create_object_no_offset #KMB_PARACHUTE {x} 214@ {y} 215@ {z} 216@
set_object_collision 96@ {state} False
set_object_dynamic 96@ {state} False
199@ = 1.0
200@ = 0.5
201@ = 0.0
205@ = 0.0
206@ = 0.0
207@ = 0.0
224@ = 80000
cset_lvar_float_to_lvar_int 225@ =# 224@
222@ = get_distance_between_coords_3d 214@ {fromY} 215@ {fromZ} 216@ {toX} 208@ {toY} 209@ {toZ} 210@
223@ = get_distance_between_coords_2d 214@ {fromY} 215@ {toX} 208@ {toZ} 209@
set_lvar_float_to_lvar_float 211@ = 214@
sub_float_lvar_from_float_lvar 211@ -= 208@
set_lvar_float_to_lvar_float 212@ = 215@
sub_float_lvar_from_float_lvar 212@ -= 209@
set_lvar_float_to_lvar_float 213@ = 216@
sub_float_lvar_from_float_lvar 213@ -= 210@
set_lvar_float_to_lvar_float 217@ = 208@
sub_float_lvar_from_float_lvar 217@ -= 214@
set_lvar_float_to_lvar_float 218@ = 209@
sub_float_lvar_from_float_lvar 218@ -= 215@
set_lvar_float_to_lvar_float 219@ = 210@
sub_float_lvar_from_float_lvar 219@ -= 216@
div_float_lvar_by_float_lvar 217@ /= 222@
div_float_lvar_by_float_lvar 218@ /= 222@
div_float_lvar_by_float_lvar 219@ /= 222@
set_lvar_float_to_lvar_float 50@ = 223@
51@ = 0.0
set_lvar_float_to_lvar_float 53@ = 223@
set_lvar_float_to_lvar_float 54@ = 213@
220@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
set_lvar_float_to_lvar_float 50@ = 211@
51@ = 0.0
set_lvar_float_to_lvar_float 53@ = 211@
set_lvar_float_to_lvar_float 54@ = 212@
221@ = get_angle_between_2d_vectors 50@ {y1} 51@ {x2} 53@ {y2} 54@
226@ = 1
return 

:DES3_16957
if 
  226@ == 1
goto_if_false @DES3_17555
if 
  224@ > 1000
goto_if_false @DES3_17424
if 
  does_object_exist 96@
goto_if_false @DES3_17417
if 
  205@ > 180.0
goto_if_false @DES3_17041
205@ = -180.0

:DES3_17041
if 
  -180.0 > 205@
goto_if_false @DES3_17072
205@ = 180.0

:DES3_17072
if 
  205@ >= 0.0
goto_if_false @DES3_17110
202@ = -0.01
goto @DES3_17120

:DES3_17110
202@ = 0.01

:DES3_17120
add_timed_float_lvar_to_float_lvar 199@ +=@ 202@
if 
  199@ > 1.0
goto_if_false @DES3_17159
199@ = 1.0

:DES3_17159
if 
  -1.0 > 199@
goto_if_false @DES3_17190
199@ = -1.0

:DES3_17190
add_timed_float_lvar_to_float_lvar 205@ +=@ 199@
cset_lvar_float_to_lvar_int 46@ =# 224@
set_lvar_float_to_lvar_float 47@ = 225@
sub_float_lvar_from_float_lvar 47@ -= 46@
div_float_lvar_by_float_lvar 47@ /= 225@
mult_float_lvar_by_float_lvar 47@ *= 222@
set_lvar_float_to_lvar_float 50@ = 217@
mult_float_lvar_by_float_lvar 50@ *= 47@
set_lvar_float_to_lvar_float 51@ = 218@
mult_float_lvar_by_float_lvar 51@ *= 47@
set_lvar_float_to_lvar_float 52@ = 219@
mult_float_lvar_by_float_lvar 52@ *= 47@
set_var_float_to_lvar_float $x = 214@
add_float_lvar_to_float_var $x += 50@
set_var_float_to_lvar_float $y = 215@
add_float_lvar_to_float_var $y += 51@
set_var_float_to_lvar_float $z = 216@
add_float_lvar_to_float_var $z += 52@
set_lvar_float_to_var_float 145@ = $x
set_lvar_float_to_var_float 146@ = $y
set_lvar_float_to_var_float 147@ = $z
if 
  is_float_lvar_greater_than_float_lvar 210@ > 147@
goto_if_false @DES3_17385
set_lvar_float_to_lvar_float 147@ = 210@

:DES3_17385
set_object_coordinates 96@ {x} 145@ {y} 146@ {z} 147@
set_object_rotation 96@ {x} 205@ {y} 0.0 {z} 90.0

:DES3_17417
goto @DES3_17555

:DES3_17424
145@, 146@, 147@ = get_object_coordinates 96@
147@ = get_ground_z_for_3d_coord 145@ {y} 146@ {z} 147@
147@ += 0.5
if 
  is_float_lvar_greater_than_float_lvar 210@ > 147@
goto_if_false @DES3_17489
set_lvar_float_to_lvar_float 147@ = 210@

:DES3_17489
delete_object 96@
remove_blip 105@
96@ = create_object_no_offset #KMB_HOLDALL {x} 145@ {y} 146@ {z} 147@
set_object_scale 96@ {scale} 0.3
105@ = add_blip_for_object 96@
freeze_object_position 96@ {state} True
set_object_collision 96@ {state} False
226@ = 0

:DES3_17555
return 

:DES3_17557
74@ = create_car 417 {x} 227@ {y} 228@ {z} 229@
set_car_heading 74@ {heading} 230@
set_heli_blades_full_speed 74@
set_heli_stabiliser 74@ {state} True
81@ = create_char_inside_car 74@ {pedType} PedType.Mission1 {modelId} 61
set_car_health 74@ {health} 5000
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
104@ = add_blip_for_car 74@
set_blip_as_friendly 104@ {state} True
set_load_collision_for_car_flag 74@ {state} False
set_car_only_damaged_by_player 74@ {state} True
return 

:DES3_17660
if 
  does_char_exist 81@
goto_if_false @DES3_17681
delete_char 81@

:DES3_17681
if 
  does_vehicle_exist 74@
goto_if_false @DES3_17702
delete_car 74@

:DES3_17702
mark_model_as_no_longer_needed 417
mark_model_as_no_longer_needed 61
remove_blip 104@
return 

:DES3_17718
if 
  not is_car_dead 74@
goto_if_false @DES3_18286
if 
  111@ == 0
goto_if_false @DES3_18286
if 
  114@ == 0
goto_if_false @DES3_18069
151@ = -784.6607
166@ = 2442.231
181@ = 180.0
152@ = -804.959
167@ = 2425.5759
182@ = 180.0
153@ = -787.8075
168@ = 2405.689
183@ = 180.0
154@ = -772.5547
169@ = 2413.2229
184@ = 180.0
155@ = -772.9753
170@ = 2432.2839
185@ = 180.0
156@ = -789.0908
171@ = 2424.8521
186@ = 180.0
157@ = -802.8
172@ = 2431.0901
187@ = 180.0
158@ = -772.5547
173@ = 2413.2229
188@ = 180.0
108@ = 0
heli_goto_coords 74@ {x} 151@(108@,15f) {y} 166@(108@,15f) {z} 181@(108@,15f) {minAltitude} 15.0 {maxAltitude} 181@(108@,15f)
activate_heli_speed_cheat 74@ {power} 1
114@ += 1

:DES3_18069
if 
  locate_car_3d 74@ {x} 151@(108@,15f) {y} 166@(108@,15f) {z} 181@(108@,15f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @DES3_18229
43@ = generate_random_int_in_range 0 {max} 8
if 
  is_int_lvar_equal_to_int_lvar 43@ == 108@
goto_if_false @DES3_18183
43@ += 1
if 
  43@ > 7
goto_if_false @DES3_18183
43@ = 0

:DES3_18183
set_lvar_int_to_lvar_int 108@ = 43@
heli_goto_coords 74@ {x} 151@(108@,15f) {y} 166@(108@,15f) {z} 181@(108@,15f) {minAltitude} 15.0 {maxAltitude} 181@(108@,15f)

:DES3_18229
43@ = get_car_health 74@
if 
  300 >= 43@
goto_if_false @DES3_18286
if 
  111@ <> 99
goto_if_false @DES3_18286
make_heli_come_crashing_down 74@
111@ = 99

:DES3_18286
return 

:DES3_18288
if 
  not does_vehicle_exist 75@
goto_if_false @DES3_18341
75@ = create_car 487 {x} 0.0 {y} 0.0 {z} 0.0
vehicle_can_be_targetted_by_hs_missile 75@ {state} True
set_load_collision_for_car_flag 75@ {state} False

:DES3_18341
if 
  not does_char_exist 82@
goto_if_false @DES3_18370
82@ = create_char_inside_car 75@ {pedType} PedType.Mission2 {modelId} 166

:DES3_18370
if 
  not does_char_exist 84@
goto_if_false @DES3_18411
84@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18411
if 
  not does_char_exist 85@
goto_if_false @DES3_18452
85@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18452
if 
  not does_char_exist 86@
goto_if_false @DES3_18493
86@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18493
if 
  not does_char_exist 87@
goto_if_false @DES3_18534
87@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_18534
if 
  not is_car_dead 75@
goto_if_false @DES3_18607
set_car_coordinates 75@ {x} 231@ {y} 232@ {z} 233@
set_car_heading 75@ {heading} 234@
set_heli_blades_full_speed 75@
change_car_colour 75@ {color1} 0 {color2} 0
set_heli_stabiliser 75@ {state} True
set_car_only_damaged_by_player 75@ {state} True
lock_car_doors 75@ {lockStatus} CarLock.Locked

:DES3_18607
if 
  not is_char_dead 82@
goto_if_false @DES3_18652
set_char_can_be_shot_in_vehicle 82@ {state} False
set_char_cant_be_dragged_out 82@ {state} True
set_char_can_be_shot_in_vehicle 82@ {state} False
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_18652
if 
  not is_car_dead 75@
goto_if_false @DES3_19079
if 
  not is_char_dead 84@
goto_if_false @DES3_18723
attach_char_to_car 84@ {vehicle} 75@ {xOffset} 1.0 {yOffset} 1.25 {zOffset} -0.1 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47
123@ = 1

:DES3_18723
if 
  not is_char_dead 85@
goto_if_false @DES3_18778
attach_char_to_car 85@ {vehicle} 75@ {xOffset} 1.1 {yOffset} -0.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47
124@ = 1

:DES3_18778
if 
  not is_char_dead 86@
goto_if_false @DES3_18833
attach_char_to_car 86@ {vehicle} 75@ {xOffset} -1.0 {yOffset} 1.25 {zOffset} -0.1 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47
125@ = 1

:DES3_18833
if 
  not is_char_dead 87@
goto_if_false @DES3_18888
attach_char_to_car 87@ {vehicle} 75@ {xOffset} -1.1 {yOffset} -0.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47
126@ = 1

:DES3_18888
43@ = 0

:DES3_18895
if 
  4 > 43@
goto_if_false @DES3_19079
if 
  not is_char_dead 84@(43@,4i)
goto_if_false @DES3_19065
set_char_shoot_rate 84@(43@,4i) {rate} 20
set_char_accuracy 84@(43@,4i) {accuracy} 27
if or
  43@ == 0
  43@ == 2
goto_if_false @DES3_19009
set_char_max_health 84@(43@,4i) {maxHealth} 125
set_char_health 84@(43@,4i) {health} 125
goto @DES3_19031

:DES3_19009
set_char_max_health 84@(43@,4i) {maxHealth} 100
set_char_health 84@(43@,4i) {health} 100

:DES3_19031
set_char_only_damaged_by_player 84@(43@,4i) {state} True
set_char_decision_maker 84@(43@,4i) {handleOrTemplate} 66@
115@(43@,4i) = 0

:DES3_19065
43@ += 1
goto @DES3_18895

:DES3_19079
if 
  not is_car_dead 75@
goto_if_false @DES3_19124
if 
  does_blip_exist 102@
goto_if_false @DES3_19116
remove_blip 102@

:DES3_19116
102@ = add_blip_for_car 75@

:DES3_19124
set_lvar_int_to_constant 109@ = 0
112@ = 0
133@ += 1
return 

:DES3_19147
if 
  does_char_exist 82@
goto_if_false @DES3_19168
delete_char 82@

:DES3_19168
43@ = 0

:DES3_19175
if 
  4 > 43@
goto_if_false @DES3_19236
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_19222
delete_char 84@(43@,4i)

:DES3_19222
43@ += 1
goto @DES3_19175

:DES3_19236
if 
  does_vehicle_exist 75@
goto_if_false @DES3_19257
delete_car 75@

:DES3_19257
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 355
return 

:DES3_19279
if 
  TIMERA > 240000
goto_if_false @DES3_19333
if 
  not is_car_dead 75@
goto_if_false @DES3_19333
explode_car 75@
explode_car 75@
TIMERA = 0

:DES3_19333
switch_start 109@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DES3_22132 {caseNum1} 0 {caseLabel1} @DES3_19396 {caseNum2} 4 {caseLabel2} @DES3_21962 {caseNum3} 5 {caseLabel3} @DES3_19903 {caseNum4} -1 {caseLabel4} @DES3_22132 {caseNum5} -1 {caseLabel5} @DES3_22132 {caseNum6} -1 {caseLabel6} @DES3_22132 {caseNum7} -1 {caseLabel7} @DES3_22132

:DES3_19396
if 
  not is_car_dead 75@
goto_if_false @DES3_19896
if 
  112@ == 0
goto_if_false @DES3_19475
if 
  not is_car_dead 74@
goto_if_false @DES3_19475
heli_follow_entity 75@ {char} -1 {vehicle} 74@ {radius} 20.0
112@ += 1
135@ = 0

:DES3_19475
if 
  112@ == 1
goto_if_false @DES3_19845
if 
  10000 > 135@
goto_if_false @DES3_19816
if 
  not is_car_dead 74@
goto_if_false @DES3_19809
$x, $y, $z = get_car_coordinates 74@
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} 10.0 {yOffset} -10.0 {zOffset} 5.0
if 
  not locate_car_3d 75@ {x} $x {y} $y {z} $z {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @DES3_19809
56@, 57@, 58@ = get_car_coordinates 75@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 56@ {toY} 57@ {toZ} 58@
if 
  $distance > 0.01
goto_if_false @DES3_19802
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_19802
goto @DES3_19809

:DES3_19809
goto @DES3_19845

:DES3_19816
heli_follow_entity 75@ {char} $scplayer {vehicle} -1 {radius} 20.0
112@ += 1
135@ = 0

:DES3_19845
if 
  112@ == 2
goto_if_false @DES3_19896
if 
  135@ > 25000
goto_if_false @DES3_19896
112@ = 0
135@ = 0

:DES3_19896
goto @DES3_22132

:DES3_19903
if 
  not is_car_dead 75@
goto_if_false @DES3_21550
if 
  112@ == 0
goto_if_false @DES3_19992
heli_keep_entity_in_view 75@ {char} $scplayer {vehicle} -1 {minAltitude} 15.0 {maxAltitude} 170.0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
112@ += 1

:DES3_19992
if 
  112@ == 1
goto_if_false @DES3_20206
if 
  39@ == 10
goto_if_false @DES3_20206
56@, 57@, 58@ = get_char_coordinates $scplayer
if 
  locate_car_2d 75@ {x} 56@ {y} 57@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @DES3_20206
$x, $y, $z = get_car_coordinates 75@
46@ = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_lvar_float 47@ = 58@
sub_float_lvar_from_float_lvar 47@ -= 46@
if 
  5.0 > 47@
goto_if_false @DES3_20206
set_lvar_float_to_var_float 148@ = $x
set_lvar_float_to_var_float 149@ = $y
set_lvar_float_to_lvar_float 150@ = 46@
150@ += 10.0
heli_goto_coords 75@ {x} 148@ {y} 149@ {z} 150@ {minAltitude} 10.0 {maxAltitude} 0.0
112@ += 1

:DES3_20206
if 
  112@ == 2
goto_if_false @DES3_20621
if 
  locate_car_3d 75@ {x} 148@ {y} 149@ {z} 150@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @DES3_20403
46@ = get_car_speed 75@
if 
  46@ > 1.0
goto_if_false @DES3_20375
50@, 51@, 52@ = get_car_speed_vector 75@
50@ *= -0.001
51@ *= -0.001
52@ *= -0.001
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @DES3_20396

:DES3_20375
freeze_car_position 75@ {state} True
135@ = 0
112@ += 1

:DES3_20396
goto @DES3_20621

:DES3_20403
46@ = get_car_speed 75@
if 
  10.0 > 46@
goto_if_false @DES3_20621
$x, $y, $z = get_car_coordinates 75@
set_lvar_float_to_lvar_float 50@ = 148@
sub_float_var_from_float_lvar 50@ -= $x
set_lvar_float_to_lvar_float 51@ = 149@
sub_float_var_from_float_lvar 51@ -= $y
set_lvar_float_to_lvar_float 52@ = 150@
sub_float_var_from_float_lvar 52@ -= $z
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 148@ {toY} 149@ {toZ} 150@
if 
  $distance > 0.01
goto_if_false @DES3_20621
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_20621
if 
  112@ == 3
goto_if_false @DES3_20825
if 
  135@ > 1500
goto_if_false @DES3_20825
freeze_car_position 75@ {state} True
if 
  not is_char_dead 84@
goto_if_false @DES3_20811
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} 1.0 {yOffset} 1.25 {zOffset} -0.1
delete_char 84@
84@ = create_swat_rope PedType.Mission2 {modelId} 165 {x} $x {y} $y {z} $z
set_char_shoot_rate 84@ {rate} 30
set_char_accuracy 84@ {accuracy} 27
set_char_max_health 84@ {maxHealth} 125
set_char_health 84@ {health} 125
set_char_only_damaged_by_player 84@ {state} True
set_char_decision_maker 84@ {handleOrTemplate} 66@
give_weapon_to_char 84@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 84@ {range} 2000.0
123@ = 0
115@ = 1

:DES3_20811
135@ = 0
112@ += 1

:DES3_20825
if 
  112@ == 4
goto_if_false @DES3_21014
if 
  135@ > 0
goto_if_false @DES3_21014
if 
  not is_char_dead 85@
goto_if_false @DES3_21000
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} 1.1 {yOffset} -0.3 {zOffset} -0.1
delete_char 85@
85@ = create_swat_rope PedType.Mission2 {modelId} 166 {x} $x {y} $y {z} $z
set_char_shoot_rate 85@ {rate} 30
set_char_accuracy 85@ {accuracy} 27
set_char_health 85@ {health} 100
set_char_only_damaged_by_player 85@ {state} True
set_char_decision_maker 85@ {handleOrTemplate} 66@
give_weapon_to_char 85@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 85@ {range} 2000.0
124@ = 0
116@ = 1

:DES3_21000
135@ = 0
112@ += 1

:DES3_21014
if 
  112@ == 5
goto_if_false @DES3_21211
if 
  135@ > 2000
goto_if_false @DES3_21211
if 
  not is_char_dead 86@
goto_if_false @DES3_21197
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} -1.0 {yOffset} 1.25 {zOffset} -0.1
delete_char 86@
86@ = create_swat_rope PedType.Mission2 {modelId} 165 {x} $x {y} $y {z} $z
set_char_shoot_rate 86@ {rate} 30
set_char_accuracy 86@ {accuracy} 27
set_char_max_health 86@ {maxHealth} 125
set_char_health 86@ {health} 125
set_char_only_damaged_by_player 86@ {state} True
set_char_decision_maker 86@ {handleOrTemplate} 66@
give_weapon_to_char 86@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 86@ {range} 2000.0
125@ = 0
117@ = 1

:DES3_21197
135@ = 0
112@ += 1

:DES3_21211
if 
  112@ == 6
goto_if_false @DES3_21401
if 
  135@ > 500
goto_if_false @DES3_21401
if 
  not is_char_dead 87@
goto_if_false @DES3_21387
$x, $y, $z = get_offset_from_car_in_world_coords 75@ {xOffset} -1.1 {yOffset} -0.3 {zOffset} -0.1
delete_char 87@
87@ = create_swat_rope PedType.Mission2 {modelId} 165 {x} $x {y} $y {z} $z
set_char_shoot_rate 87@ {rate} 30
set_char_accuracy 87@ {accuracy} 27
set_char_health 87@ {health} 100
set_char_only_damaged_by_player 87@ {state} True
set_char_decision_maker 87@ {handleOrTemplate} 66@
give_weapon_to_char 87@ {weaponType} WeaponType.Ak47 {ammo} 9999
set_follow_node_threshold_distance 87@ {range} 2000.0
126@ = 0
118@ = 1

:DES3_21387
135@ = 0
112@ += 1

:DES3_21401
if 
  112@ == 7
goto_if_false @DES3_21525
if or
  115@ == 2
  is_char_dead 84@
goto_if_false @DES3_21525
if or
  116@ == 2
  is_char_dead 85@
goto_if_false @DES3_21525
if or
  117@ == 2
  is_char_dead 86@
goto_if_false @DES3_21525
if or
  118@ == 2
  is_char_dead 87@
goto_if_false @DES3_21525
135@ = 0
112@ += 1

:DES3_21525
if 
  112@ == 8
goto_if_false @DES3_21550
109@ = 99

:DES3_21550
set_lvar_int_to_lvar_int 43@ = 39@
43@ -= 5
if and
  4 > 43@
  43@ > -1
goto_if_false @DES3_21955
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_21955
if 
  not is_char_dead 84@(43@,4i)
goto_if_false @DES3_21955
if 
  123@(43@,4i) == 0
goto_if_false @DES3_21955
if 
  115@(43@,4i) == 0
goto_if_false @DES3_21719
44@ = get_script_task_status 84@(43@,4i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DES3_21719
task_kill_char_on_foot 84@(43@,4i) {target} $scplayer

:DES3_21719
if 
  115@(43@,4i) == 1
goto_if_false @DES3_21810
44@ = get_script_task_status 84@(43@,4i) {taskId} 1283
if 
  is_int_lvar_equal_to_constant 44@ == 7
goto_if_false @DES3_21810
set_char_decision_maker 84@(43@,4i) {handleOrTemplate} 67@
set_char_relationship 84@(43@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
115@(43@,4i) += 1

:DES3_21810
if 
  115@(43@,4i) == 2
goto_if_false @DES3_21892
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
115@(43@,4i) += 1

:DES3_21892
if 
  115@(43@,4i) == 3
goto_if_false @DES3_21955
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0
115@(43@,4i) = 0

:DES3_21955
goto @DES3_22132

:DES3_21962
if 
  not is_car_dead 75@
goto_if_false @DES3_22125
if 
  112@ == 0
goto_if_false @DES3_22023
heli_keep_entity_in_view 75@ {char} $scplayer {vehicle} -1 {minAltitude} 25.0 {maxAltitude} 15.0
112@ += 1

:DES3_22023
46@ = get_car_speed 75@
if 
  5.0 > 46@
goto_if_false @DES3_22125
50@, 51@, 52@ = get_car_speed_vector 75@
50@ *= 0.0001
51@ *= 0.0001
52@ *= 0.0001
apply_force_to_car 75@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_22125
goto @DES3_22132

:DES3_22132
if 
  109@ == 99
goto_if_false @DES3_22366
if 
  not is_car_dead 75@
goto_if_false @DES3_22366
vehicle_can_be_targetted_by_hs_missile 75@ {state} False
freeze_car_position 75@ {state} False
43@ = get_car_health 75@
if 
  300 >= 43@
goto_if_false @DES3_22267
mark_char_as_no_longer_needed 82@
if 
  not is_char_dead 82@
goto_if_false @DES3_22236
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_22236
make_heli_come_crashing_down 75@
mark_car_as_no_longer_needed 75@
75@ = 0
82@ = 0
goto @DES3_22345

:DES3_22267
mark_char_as_no_longer_needed 82@
if 
  not is_char_dead 82@
goto_if_false @DES3_22296
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_22296
heli_goto_coords 75@ {x} 204.0 {y} 2816.0 {z} 186.0 {minAltitude} 50.0 {maxAltitude} 186.0
mark_car_as_no_longer_needed 75@
75@ = 0
82@ = 0

:DES3_22345
if 
  does_blip_exist 102@
goto_if_false @DES3_22366
remove_blip 102@

:DES3_22366
if 
  not is_car_dead 75@
goto_if_false @DES3_22481
if and
  123@ == 1
  is_char_dead 84@
goto_if_false @DES3_22481
if and
  124@ == 1
  is_char_dead 85@
goto_if_false @DES3_22481
if and
  125@ == 1
  is_char_dead 86@
goto_if_false @DES3_22481
if and
  126@ == 1
  is_char_dead 87@
goto_if_false @DES3_22481
109@ = 99

:DES3_22481
set_lvar_int_to_lvar_int 43@ = 39@
43@ -= 5
if and
  4 > 43@
  43@ > -1
goto_if_false @DES3_23063
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_23063
if 
  not is_char_dead 84@(43@,4i)
goto_if_false @DES3_23063
if 
  123@(43@,4i) == 1
goto_if_false @DES3_23063
if 
  115@(43@,4i) == 0
goto_if_false @DES3_22705
if 
  not is_char_dead 81@
goto_if_false @DES3_22694
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
115@(43@,4i) += 1
goto @DES3_22705

:DES3_22694
115@(43@,4i) += 1

:DES3_22705
if 
  115@(43@,4i) == 1
goto_if_false @DES3_22876
if or
  43@ == 1
  43@ == 3
  109@ == 4
goto_if_false @DES3_22876
if 
  locate_char_any_means_char_3d 84@(43@,4i) {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @DES3_22876
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 84@(43@,4i) {rate} 100
115@(43@,4i) += 1

:DES3_22876
if 
  115@(43@,4i) == 2
goto_if_false @DES3_23063
if or
  43@ == 1
  43@ == 3
  109@ == 4
goto_if_false @DES3_23063
if 
  not locate_char_any_means_char_3d 84@(43@,4i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @DES3_23063
if 
  not is_char_dead 81@
goto_if_false @DES3_23063
clear_char_tasks 84@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 84@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 84@(43@,4i) {rate} 20
115@(43@,4i) = 1

:DES3_23063
if 
  not is_car_dead 75@
goto_if_false @DES3_23131
43@ = get_car_health 75@
if 
  300 >= 43@
goto_if_false @DES3_23131
if 
  109@ <> 99
goto_if_false @DES3_23131
109@ = 99

:DES3_23131
43@ = 0

:DES3_23138
if 
  4 > 43@
goto_if_false @DES3_23260
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_23246
if 
  is_char_dead 84@(43@,4i)
goto_if_false @DES3_23246
detach_char_from_car 84@(43@,4i)
115@(43@,4i) = 0
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0

:DES3_23246
43@ += 1
goto @DES3_23138

:DES3_23260
if and
  is_car_dead 75@
  75@ <> 0
goto_if_false @DES3_23441
mark_char_as_no_longer_needed 82@
if 
  not is_char_dead 82@
goto_if_false @DES3_23312
set_char_decision_maker 82@ {handleOrTemplate} 66@

:DES3_23312
mark_car_as_no_longer_needed 75@
75@ = 0
82@ = 0
43@ = 0

:DES3_23338
if 
  4 > 43@
goto_if_false @DES3_23420
if 
  does_char_exist 84@(43@,4i)
goto_if_false @DES3_23406
set_lvar_int_to_lvar_int 263@ = 84@(43@,4i)
gosub @DES3_26311
84@(43@,4i) = 0

:DES3_23406
43@ += 1
goto @DES3_23338

:DES3_23420
if 
  does_blip_exist 102@
goto_if_false @DES3_23441
remove_blip 102@

:DES3_23441
return 

:DES3_23443
if 
  does_vehicle_exist 76@
goto_if_false @DES3_23471
mark_car_as_no_longer_needed 76@
76@ = 0

:DES3_23471
if 
  not does_vehicle_exist 76@
goto_if_false @DES3_23524
76@ = create_car 487 {x} 0.0 {y} 0.0 {z} 0.0
vehicle_can_be_targetted_by_hs_missile 76@ {state} True
set_load_collision_for_car_flag 76@ {state} False

:DES3_23524
if 
  does_char_exist 83@
goto_if_false @DES3_23576
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_23569
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_23569
83@ = 0

:DES3_23576
if 
  not does_char_exist 83@
goto_if_false @DES3_23605
83@ = create_char_inside_car 76@ {pedType} PedType.Mission2 {modelId} 166

:DES3_23605
43@ = 0

:DES3_23612
if 
  4 > 43@
goto_if_false @DES3_23684
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_23670
mark_char_as_no_longer_needed 88@(43@,4i)
88@(43@,4i) = 0

:DES3_23670
43@ += 1
goto @DES3_23612

:DES3_23684
if 
  not does_char_exist 88@
goto_if_false @DES3_23725
88@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23725
if 
  not does_char_exist 89@
goto_if_false @DES3_23766
89@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23766
if 
  not does_char_exist 90@
goto_if_false @DES3_23807
90@ = create_char PedType.Mission2 {modelId} 165 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23807
if 
  not does_char_exist 91@
goto_if_false @DES3_23848
91@ = create_char PedType.Mission2 {modelId} 166 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_23848
if 
  not is_car_dead 76@
goto_if_false @DES3_23921
set_car_coordinates 76@ {x} 259@ {y} 260@ {z} 261@
set_car_heading 76@ {heading} 262@
set_heli_blades_full_speed 76@
change_car_colour 76@ {color1} 0 {color2} 0
set_heli_stabiliser 76@ {state} True
set_car_only_damaged_by_player 76@ {state} True
lock_car_doors 76@ {lockStatus} CarLock.Locked

:DES3_23921
if 
  not is_char_dead 83@
goto_if_false @DES3_23966
set_char_can_be_shot_in_vehicle 83@ {state} False
set_char_cant_be_dragged_out 83@ {state} True
set_char_can_be_shot_in_vehicle 83@ {state} False
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_23966
if 
  not is_car_dead 76@
goto_if_false @DES3_24354
if 
  not is_char_dead 88@
goto_if_false @DES3_24030
attach_char_to_car 88@ {vehicle} 76@ {xOffset} 1.0 {yOffset} 1.25 {zOffset} 0.2 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47

:DES3_24030
if 
  not is_char_dead 89@
goto_if_false @DES3_24078
attach_char_to_car 89@ {vehicle} 76@ {xOffset} 1.1 {yOffset} -0.3 {zOffset} 0.2 {heading} Facing.Right {headingRange} 310.0 {weaponType} WeaponType.Ak47

:DES3_24078
if 
  not is_char_dead 90@
goto_if_false @DES3_24126
attach_char_to_car 90@ {vehicle} 76@ {xOffset} -1.0 {yOffset} 1.25 {zOffset} 0.2 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47

:DES3_24126
if 
  not is_char_dead 91@
goto_if_false @DES3_24174
attach_char_to_car 91@ {vehicle} 76@ {xOffset} -1.1 {yOffset} -0.3 {zOffset} 0.2 {heading} Facing.Left {headingRange} 50.0 {weaponType} WeaponType.Ak47

:DES3_24174
43@ = 0

:DES3_24181
if 
  4 > 43@
goto_if_false @DES3_24354
if 
  not is_char_dead 88@(43@,4i)
goto_if_false @DES3_24340
set_char_shoot_rate 88@(43@,4i) {rate} 30
set_char_accuracy 88@(43@,4i) {accuracy} 27
if or
  43@ == 0
  43@ == 2
goto_if_false @DES3_24295
set_char_max_health 88@(43@,4i) {maxHealth} 125
set_char_health 88@(43@,4i) {health} 125
goto @DES3_24306

:DES3_24295
set_char_health 88@(43@,4i) {health} 100

:DES3_24306
set_char_only_damaged_by_player 88@(43@,4i) {state} True
set_char_decision_maker 88@(43@,4i) {handleOrTemplate} 66@
119@(43@,4i) = 0

:DES3_24340
43@ += 1
goto @DES3_24181

:DES3_24354
if 
  not is_car_dead 76@
goto_if_false @DES3_24399
if 
  does_blip_exist 103@
goto_if_false @DES3_24391
remove_blip 103@

:DES3_24391
103@ = add_blip_for_car 76@

:DES3_24399
110@ = 0
113@ = 0
133@ += 1
return 

:DES3_24422
if 
  does_char_exist 83@
goto_if_false @DES3_24443
delete_char 83@

:DES3_24443
43@ = 0

:DES3_24450
if 
  4 > 43@
goto_if_false @DES3_24511
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_24497
delete_char 88@(43@,4i)

:DES3_24497
43@ += 1
goto @DES3_24450

:DES3_24511
if 
  does_vehicle_exist 76@
goto_if_false @DES3_24532
delete_car 76@

:DES3_24532
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 355
return 

:DES3_24554
if 
  TIMERB > 240000
goto_if_false @DES3_24608
if 
  not is_car_dead 76@
goto_if_false @DES3_24608
explode_car 76@
explode_car 76@
TIMERB = 0

:DES3_24608
if 
  not is_car_dead 76@
goto_if_false @DES3_25318
if 
  110@ == 0
goto_if_false @DES3_25107
if 
  113@ == 0
goto_if_false @DES3_24705
if 
  not is_car_dead 74@
goto_if_false @DES3_24705
heli_follow_entity 76@ {char} -1 {vehicle} 74@ {radius} 20.0
113@ += 1
136@ = 0

:DES3_24705
if 
  113@ == 1
goto_if_false @DES3_25054
if 
  15000 > 136@
goto_if_false @DES3_25025
if 
  not is_car_dead 74@
goto_if_false @DES3_25018
$x, $y, $z = get_offset_from_car_in_world_coords 74@ {xOffset} -10.0 {yOffset} -10.0 {zOffset} 0.0
if 
  not locate_car_3d 76@ {x} $x {y} $y {z} $z {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @DES3_25018
56@, 57@, 58@ = get_car_coordinates 76@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 56@ {toY} 57@ {toZ} 58@
if 
  $distance > 0.01
goto_if_false @DES3_25018
div_float_lvar_by_float_var 50@ /= $distance
div_float_lvar_by_float_var 51@ /= $distance
div_float_lvar_by_float_var 52@ /= $distance
50@ *= 0.01
51@ *= 0.01
52@ *= 0.01
apply_force_to_car 76@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_25018
goto @DES3_25054

:DES3_25025
heli_follow_entity 76@ {char} $scplayer {vehicle} -1 {radius} 20.0
113@ += 1
136@ = 0

:DES3_25054
if 
  113@ == 2
goto_if_false @DES3_25107
if 
  136@ > 35000
goto_if_false @DES3_25107
113@ = 0
136@ = 0

:DES3_25107
if 
  110@ == 99
goto_if_false @DES3_25318
freeze_car_position 76@ {state} False
43@ = get_car_health 76@
if 
  300 >= 43@
goto_if_false @DES3_25219
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_25188
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_25188
make_heli_come_crashing_down 76@
mark_car_as_no_longer_needed 76@
76@ = 0
83@ = 0
goto @DES3_25297

:DES3_25219
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_25248
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_25248
heli_goto_coords 76@ {x} 204.0 {y} 2816.0 {z} 186.0 {minAltitude} 50.0 {maxAltitude} 186.0
mark_car_as_no_longer_needed 76@
76@ = 0
83@ = 0

:DES3_25297
if 
  does_blip_exist 103@
goto_if_false @DES3_25318
remove_blip 103@

:DES3_25318
set_lvar_int_to_lvar_int 43@ = 39@
if 
  4 > 43@
goto_if_false @DES3_25832
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_25832
if 
  not is_char_dead 88@(43@,4i)
goto_if_false @DES3_25832
if 
  119@(43@,4i) == 0
goto_if_false @DES3_25488
if 
  not is_char_dead 81@
goto_if_false @DES3_25488
clear_char_tasks 88@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 88@(43@,4i) {sequence} 49@
clear_sequence_task 49@
119@(43@,4i) += 1

:DES3_25488
if 
  119@(43@,4i) == 1
goto_if_false @DES3_25652
if or
  43@ == 1
  43@ == 3
goto_if_false @DES3_25652
if 
  locate_char_any_means_char_3d 88@(43@,4i) {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @DES3_25652
clear_char_tasks 88@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 88@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 88@(43@,4i) {rate} 100
119@(43@,4i) += 1

:DES3_25652
if 
  119@(43@,4i) == 2
goto_if_false @DES3_25832
if or
  43@ == 1
  43@ == 3
goto_if_false @DES3_25832
if 
  not locate_char_any_means_char_3d 88@(43@,4i) {target} $scplayer {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @DES3_25832
if 
  not is_char_dead 81@
goto_if_false @DES3_25832
clear_char_tasks 88@(43@,4i)
49@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 81@
task_stay_in_same_place -1 {state} True
close_sequence_task 49@
perform_sequence_task 88@(43@,4i) {sequence} 49@
clear_sequence_task 49@
set_char_shoot_rate 88@(43@,4i) {rate} 30
119@(43@,4i) = 1

:DES3_25832
if 
  39@ == 4
goto_if_false @DES3_25937
if 
  not is_car_dead 76@
goto_if_false @DES3_25937
if 
  is_char_dead 88@
goto_if_false @DES3_25937
if 
  is_char_dead 89@
goto_if_false @DES3_25937
if 
  is_char_dead 90@
goto_if_false @DES3_25937
if 
  is_char_dead 91@
goto_if_false @DES3_25937
110@ = 99

:DES3_25937
if 
  not is_car_dead 76@
goto_if_false @DES3_26012
43@ = get_car_health 76@
if 
  300 >= 43@
goto_if_false @DES3_26012
if 
  110@ <> 99
goto_if_false @DES3_26012
110@ = 99
vehicle_can_be_targetted_by_hs_missile 76@ {state} False

:DES3_26012
set_lvar_int_to_lvar_int 43@ = 39@
if 
  4 > 43@
goto_if_false @DES3_26128
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_26128
if 
  is_char_dead 88@(43@,4i)
goto_if_false @DES3_26128
detach_char_from_car 88@(43@,4i)
119@(43@,4i) = 0
set_lvar_int_to_lvar_int 263@ = 88@(43@,4i)
gosub @DES3_26311
88@(43@,4i) = 0

:DES3_26128
if and
  is_car_dead 76@
  76@ <> 0
goto_if_false @DES3_26309
mark_char_as_no_longer_needed 83@
if 
  not is_char_dead 83@
goto_if_false @DES3_26180
set_char_decision_maker 83@ {handleOrTemplate} 66@

:DES3_26180
mark_car_as_no_longer_needed 76@
76@ = 0
83@ = 0
43@ = 0

:DES3_26206
if 
  4 > 43@
goto_if_false @DES3_26288
if 
  does_char_exist 88@(43@,4i)
goto_if_false @DES3_26274
set_lvar_int_to_lvar_int 263@ = 88@(43@,4i)
gosub @DES3_26311
88@(43@,4i) = 0

:DES3_26274
43@ += 1
goto @DES3_26206

:DES3_26288
if 
  does_blip_exist 103@
goto_if_false @DES3_26309
remove_blip 103@

:DES3_26309
return 

:DES3_26311
264@ = 0
if 
  264@ == -1
goto_if_false @DES3_26360
265@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0

:DES3_26360
if 
  20 > 264@
goto_if_false @DES3_26438
if 
  not does_char_exist 265@(264@,20i)
goto_if_false @DES3_26424
set_lvar_int_to_lvar_int 265@(264@,20i) = 263@
264@ = 20
goto @DES3_26431

:DES3_26424
264@ += 1

:DES3_26431
goto @DES3_26360

:DES3_26438
return 

:DES3_26440
264@ = 0

:DES3_26447
if 
  20 > 264@
goto_if_false @DES3_26528
if 
  does_char_exist 265@(264@,20i)
goto_if_false @DES3_26514
if 
  is_char_dead 265@(264@,20i)
goto_if_false @DES3_26514
remove_char_elegantly 265@(264@,20i)

:DES3_26514
264@ += 1
goto @DES3_26447

:DES3_26528
264@ = 0

:DES3_26535
if 
  4 > 264@
goto_if_false @DES3_26687
if 
  does_char_exist 84@(264@,4i)
goto_if_false @DES3_26613
if 
  is_char_dead 84@(264@,4i)
goto_if_false @DES3_26613
remove_char_elegantly 84@(264@,4i)
84@(264@,4i) = 0

:DES3_26613
if 
  does_char_exist 88@(264@,4i)
goto_if_false @DES3_26673
if 
  is_char_dead 88@(264@,4i)
goto_if_false @DES3_26673
remove_char_elegantly 88@(264@,4i)
88@(264@,4i) = 0

:DES3_26673
264@ += 1
goto @DES3_26535

:DES3_26687
return 
if 
  not is_car_dead 286@
goto_if_false @DES3_26719
$x, $y, $z = get_car_coordinates 286@

:DES3_26719
if 
  not is_car_dead 285@
goto_if_false @DES3_26856
56@, 57@, 58@ = get_car_coordinates 285@
set_lvar_float_to_var_float 50@ = $x
sub_float_lvar_from_float_lvar 50@ -= 56@
set_lvar_float_to_var_float 51@ = $y
sub_float_lvar_from_float_lvar 51@ -= 57@
set_lvar_float_to_var_float 52@ = $z
sub_float_lvar_from_float_lvar 52@ -= 58@
50@ *= -0.0001
51@ *= -0.0001
52@ *= -0.0001
apply_force_to_car 285@ {xOffset} 50@ {yOffset} 51@ {zOffset} 52@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DES3_26856
return 

:DES3_26858
34@ += 1
35@ = 0
62@ = 0
63@ = 0
64@ = 0
65@ = 0
TIMERA = 0
TIMERB = 0
return 

:DES3_26916
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DES3_26934
print_with_number_big 'M_PASS' {num} 1000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 1000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'DESERT3'
player_made_progress 1
$flag_desert_mission_counter += 1
set_int_stat StatId.PassedDesert3 {value} 1
do_fade 1000 {direction} Fade.In

:DES3_27006
if 
  get_fading_status 
goto_if_false @DES3_27030
wait 0
goto @DES3_27006

:DES3_27030
return 

:DES3_27032
if 
  not is_garage_closed 'GHOSTDR'
goto_if_false @DES3_27065
close_garage 'GHOSTDR'

:DES3_27065
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
mark_model_as_no_longer_needed 568
mark_model_as_no_longer_needed 471
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 360
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed #KMB_HOLDALL
mark_model_as_no_longer_needed 417
mark_model_as_no_longer_needed 508
mark_model_as_no_longer_needed #KMB_PARACHUTE
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 75
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
remove_blip 106@
remove_blip 107@
remove_animation "BOMBER"
release_weather 
clear_onscreen_counter $pheli_health
clear_onscreen_counter $des3_heat
remove_pickup 97@
remove_pickup 98@
remove_pickup 99@
if 
  is_player_playing $player1
goto_if_false @DES3_27253
hide_char_weapon_for_scripted_cutscene $scplayer {state} False

:DES3_27253
remove_decision_maker 66@
remove_decision_maker 67@
kill_fx_system 100@
set_player_control $player1 {state} True
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
switch_police_helis True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 78---------------
// Originally: Verdant Meadows

:DESERT4
script_name 'DESERT4'
gosub @DESERT4_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT4_38
gosub @DESERT4_292

:DESERT4_38
gosub @DESERT4_429
terminate_this_script 

:DESERT4_47
register_mission_given 
$onmission = 1
wait 0
load_mission_text 'DSERT4'
force_weather WeatherType.ExtraSunnyDesert
clear_area -688.1717 {y} 937.9888 {z} 12.6328 {radius} 10.0 {clearParticles} True
load_cutscene 'DESERT4'

:DESERT4_110
if 
  not has_cutscene_loaded 
goto_if_false @DESERT4_134
wait 0
goto @DESERT4_110

:DESERT4_134
start_cutscene 
do_fade 1000 {direction} Fade.In

:DESERT4_143
if 
  not has_cutscene_finished 
goto_if_false @DESERT4_167
wait 0
goto @DESERT4_143

:DESERT4_167
do_fade 0 {direction} Fade.Out

:DESERT4_173
if 
  get_fading_status 
goto_if_false @DESERT4_197
wait 0
goto @DESERT4_173

:DESERT4_197
release_weather 
clear_cutscene 
set_char_coordinates $scplayer {x} -696.0359 {y} 948.1198 {z} 11.276
set_char_heading $scplayer {heading} 33.1992
restore_camera_jumpcut 
set_player_control $player1 {state} True
load_scene -696.0359 {y} 948.1198 {z} 11.276
do_fade 1000 {direction} Fade.In
wait 1000
print_now 'BUY_AIR' {time} 10000 {flag} 1
goto @DESERT4_310

:DESERT4_292
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DESERT4_310
$flag_desert_mission_counter += 1
register_mission_passed 'DESERT4'
remove_blip $desert_contact_blip
switch_car_generator $area51_gen {amount} 101
switch_car_generator $5180 {amount} 101
start_new_script @BUY3 
remove_blip $airstrip_contact_blip
$airstrip_contact_blip = add_short_range_sprite_blip_for_contact_point $propertyX[2] {y} $propertyY[2] {z} $propertyZ[2] {sprite} RadarSprite.PropertyG
change_blip_display $airstrip_contact_blip {display} BlipDisplay.BlipOnly
remove_blip $desert2_contact_blip
$desert2_contact_blip = add_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $desert2_blip_icon
change_blip_display $desert2_contact_blip {display} BlipDisplay.BlipOnly
set_int_stat StatId.PassedDesert4 {value} 1
set_max_wanted_level 6
player_made_progress 1
return 

:DESERT4_429
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 79---------------
// Originally: N.O.E.

:DESERT6
script_name 'DESERT6'
gosub @DESERT6_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT6_38
gosub @DESERT6_10307

:DESERT6_38
gosub @DESERT6_10519
terminate_this_script 

:DESERT6_47
register_mission_given 
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
78@ = 1
79@ = 0
80@ = 0
81@ = 0
82@ = -1
83@ = 0
84@ = 0
86@ = 0
85@ = 0
48@ = 0

:DESERT6_231
87@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @DESERT6_231
48@ = 0

:DESERT6_270
184@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_270
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
if 
  34@ == -99
goto_if_false @DESERT6_694
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
125@ = create_car 476 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:DESERT6_463
create_car 520 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 126@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_463
48@ = 0

:DESERT6_518
create_char PedType.CivMale {modelId} 43 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 123@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_518
48@ = 0

:DESERT6_574
create_object #AMMO_CAPSULE {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 128@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_574
133@ = add_blip_for_car 125@
132@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
48@ = 0

:DESERT6_657
add_blip_for_car 126@(48@,2i) {var_handle} 134@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_657

:DESERT6_694
load_mission_text 'DSERT6'
gosub @DESERT6_9725
136@ = load_char_decision_maker DecisionMakerType.Empty
gosub @DESERT6_9939

:DESERT6_726
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DESERT6_759
36@ = 1
goto @DESERT6_1014

:DESERT6_759
gosub @DESERT6_9057
gosub @DESERT6_9410
if or
  38@ == 1
  39@ == 1
goto_if_false @DESERT6_805
goto @DESERT6_1014

:DESERT6_805
gosub @DESERT6_9622
gosub @DESERT6_9656
if 
  is_char_dead $scplayer
goto_if_false @DESERT6_849
37@ = 1
goto @DESERT6_1014

:DESERT6_849
if 
  34@ == 0
goto_if_false @DESERT6_907
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:DESERT6_907
if 
  34@ == 1
goto_if_false @DESERT6_932
gosub @DESERT6_1162

:DESERT6_932
if 
  34@ == 2
goto_if_false @DESERT6_957
gosub @DESERT6_1336

:DESERT6_957
if 
  34@ == 3
goto_if_false @DESERT6_982
gosub @DESERT6_2968

:DESERT6_982
if 
  34@ == 4
goto_if_false @DESERT6_1007
36@ = 1

:DESERT6_1007
gosub @DESERT6_6815

:DESERT6_1014
if 
  38@ == 0
goto_if_false @DESERT6_1114
if 
  37@ == 0
goto_if_false @DESERT6_1098
if 
  36@ == 0
goto_if_false @DESERT6_1082
goto @DESERT6_726
goto @DESERT6_1091

:DESERT6_1082
gosub @DESERT6_10459
return 

:DESERT6_1091
goto @DESERT6_1107

:DESERT6_1098
gosub @DESERT6_10307
return 

:DESERT6_1107
goto @DESERT6_1116

:DESERT6_1114
return 

:DESERT6_1116
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:DESERT6_1162
if 
  35@ == 0
goto_if_false @DESERT6_1228
print_now 'DES6_00' {time} 7000 {flag} 1
gosub @DESERT6_6258
81@ = 1
gosub @DESERT6_7633
set_radio_channel RadioChannel.UserTracks
35@ += 1

:DESERT6_1228
if 
  is_car_dead 125@
goto_if_false @DESERT6_1260
37@ = 1
45@ = 1
return 

:DESERT6_1260
if 
  35@ == 1
goto_if_false @DESERT6_1309
if 
  is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_1309
remove_blip 133@
35@ = 99

:DESERT6_1309
if 
  35@ == 99
goto_if_false @DESERT6_1334
gosub @DESERT6_9695

:DESERT6_1334
return 

:DESERT6_1336
if 
  35@ == 0
goto_if_false @DESERT6_1620
181@ = 0
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 2000
159@ = -2135.5901
160@ = -2488.4541
161@ = 55.895
132@ = add_blip_for_coord 159@ {y} 160@ {z} 161@
set_lvar_float_to_lvar_float 70@ = 160@
70@ += 1.0
152@ = create_checkpoint CheckpointType.Torus {x} 159@ {y} 160@ {z} 161@ {pointX} 159@ {pointY} 70@ {pointZ} 161@ {radius} 25.0
$g_Desert6_visibilityKM = 0
138@ = 0
163@ = 0
165@ = 0
166@ = 0
172@ = 0
$g_Desert6_timerKM = 10
$g_Desert6_timerKM *= 60000
display_onscreen_timer_with_string $g_Desert6_timerKM {direction} TimerDirection.Down {text} 'DES6_51'
162@ = get_char_height_above_ground $scplayer
48@ = 0

:DESERT6_1559
177@(48@,2i) = 0
150@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_1559
load_mission_audio MissionAudioSlot.Slot3 {audioId} 30600
set_disable_military_zones True
35@ += 1

:DESERT6_1620
if 
  is_car_dead 125@
goto_if_false @DESERT6_1709
48@ = 0

:DESERT6_1643
if 
  does_object_exist 128@(48@,4i)
goto_if_false @DESERT6_1672
delete_object 128@(48@,4i)

:DESERT6_1672
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_1643
37@ = 1
45@ = 1
return 

:DESERT6_1709
gosub @DESERT6_4831
if 
  37@ == 1
goto_if_false @DESERT6_1736
return 

:DESERT6_1736
if 
  $g_Desert6_timerKM == 0
goto_if_false @DESERT6_1770
37@ = 1
45@ = 3
return 

:DESERT6_1770
if 
  35@ == 1
goto_if_false @DESERT6_1867
if 
  is_int_lvar_greater_than_int_lvar 46@ > 137@
goto_if_false @DESERT6_1867
70@ = get_char_height_above_ground $scplayer
sub_float_lvar_from_float_lvar 70@ -= 162@
if 
  70@ > 2.0
goto_if_false @DESERT6_1867
display_onscreen_counter_with_string $g_Desert6_visibilityKM {display} CounterDisplay.Bar {text} 'DES6_50'
35@ += 1

:DESERT6_1867
if 
  35@ == 2
goto_if_false @DESERT6_2061
set_lvar_float_to_lvar_float 57@ = 159@
57@ -= 25.0
set_lvar_float_to_lvar_float 58@ = 160@
58@ -= 2.0
set_lvar_float_to_lvar_float 59@ = 161@
59@ -= 25.0
set_lvar_float_to_lvar_float 60@ = 159@
60@ += 25.0
set_lvar_float_to_lvar_float 61@ = 160@
61@ += 2.0
set_lvar_float_to_lvar_float 62@ = 161@
62@ += 25.0
if and
  is_char_in_area_3d $scplayer {leftBottomX} 57@ {leftBottomY} 58@ {leftBottomZ} 59@ {rightTopX} 60@ {rightTopY} 61@ {rightTopZ} 62@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_2061
remove_blip 132@
delete_checkpoint 152@
gosub @DESERT6_6561
35@ = 99

:DESERT6_2061
gosub @DESERT6_4188
gosub @DESERT6_5173
if 
  165@ == 1
goto_if_false @DESERT6_2119
if 
  is_int_lvar_greater_than_int_lvar 46@ > 140@
goto_if_false @DESERT6_2119
166@ = 1

:DESERT6_2119
if 
  166@ == 1
goto_if_false @DESERT6_2175
gosub @DESERT6_5600
50@ = 30
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_2175
gosub @DESERT6_6031
if 
  168@ == 0
goto_if_false @DESERT6_2331
57@, 58@, 59@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 159@ {toY} 160@ {toZ} 161@
if 
  500.0 > 72@
goto_if_false @DESERT6_2331
if 
  is_point_on_screen 159@ {y} 160@ {z} 161@ {radius} 5.0
goto_if_false @DESERT6_2331
print_now 'DES6_09' {time} 7000 {flag} 1
168@ = 1
169@ = 1
set_lvar_int_to_lvar_int 144@ = 46@
144@ += 7000

:DESERT6_2331
if 
  169@ == 1
goto_if_false @DESERT6_2375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 144@
goto_if_false @DESERT6_2375
169@ = 0

:DESERT6_2375
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 2
goto_if_false @DESERT6_2471
if and
  is_local_var_bit_set_const 85@ {bitIndex} 1
  80@ == 0
goto_if_false @DESERT6_2439
81@ = 2
gosub @DESERT6_7633
goto @DESERT6_2471

:DESERT6_2439
if and
  80@ == 1
  $g_Desert6_visibilityKM >= 40
goto_if_false @DESERT6_2471
gosub @DESERT6_7857

:DESERT6_2471
if and
  163@ == 1
  165@ == 0
  169@ == 0
goto_if_false @DESERT6_2549
if and
  not is_local_var_bit_set_const 85@ {bitIndex} 2
  80@ == 2
  79@ == 1
  $g_Desert6_visibilityKM >= 40
goto_if_false @DESERT6_2549
gosub @DESERT6_7788

:DESERT6_2549
if and
  not is_local_var_bit_set_const 85@ {bitIndex} 3
  is_local_var_bit_set_const 85@ {bitIndex} 2
  80@ == 0
goto_if_false @DESERT6_2595
81@ = 3
gosub @DESERT6_7633

:DESERT6_2595
if and
  165@ == 1
  not is_local_var_bit_set_const 85@ {bitIndex} 3
  80@ == 3
  79@ == 1
goto_if_false @DESERT6_2641
gosub @DESERT6_7788

:DESERT6_2641
if 
  167@ == 0
goto_if_false @DESERT6_2707
if and
  is_local_var_bit_set_const 85@ {bitIndex} 3
  79@ <> 2
goto_if_false @DESERT6_2707
print_now 'DES6_06' {time} 7000 {flag} 1
167@ = 1

:DESERT6_2707
if 
  180@ == 0
goto_if_false @DESERT6_2820
if 
  is_char_in_area_2d $scplayer {leftBottomX} -67.0004 {leftBottomY} 1646.886 {rightTopX} 423.298 {rightTopY} 2132.188 {drawSphere} False
goto_if_false @DESERT6_2820
if or
  is_char_in_any_plane $scplayer
  is_char_in_any_heli $scplayer
goto_if_false @DESERT6_2820
if 
  not is_message_being_displayed 
goto_if_false @DESERT6_2820
print_now 'AREA51' {time} 7000 {flag} 1
180@ = 1

:DESERT6_2820
if 
  181@ == 0
goto_if_false @DESERT6_2887
if 
  is_int_lvar_greater_than_int_lvar 46@ > 137@
goto_if_false @DESERT6_2887
gosub @DESERT6_7788
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 5000
181@ = 1

:DESERT6_2887
if 
  183@ == 0
goto_if_false @DESERT6_2941
if 
  is_local_var_bit_set_const 85@ {bitIndex} 1
goto_if_false @DESERT6_2941
print_help 'DES6_12'
183@ = 1

:DESERT6_2941
if 
  35@ == 99
goto_if_false @DESERT6_2966
gosub @DESERT6_9695

:DESERT6_2966
return 

:DESERT6_2968
if 
  35@ == 0
goto_if_false @DESERT6_3201
print_now 'DES6_10' {time} 5000 {flag} 1
set_lvar_int_to_lvar_int 137@ = 46@
137@ += 5000
153@ = -76.4228
154@ = 2478.6399
155@ = 14.2844
156@ = 433.6483
157@ = 2525.658
158@ = 18.6279
set_lvar_float_to_lvar_float 159@ = 156@
sub_float_lvar_from_float_lvar 159@ -= 153@
159@ /= 2.0
add_float_lvar_to_float_lvar 159@ += 153@
set_lvar_float_to_lvar_float 160@ = 157@
sub_float_lvar_from_float_lvar 160@ -= 154@
160@ /= 2.0
add_float_lvar_to_float_lvar 160@ += 154@
set_lvar_float_to_lvar_float 161@ = 158@
sub_float_lvar_from_float_lvar 161@ -= 155@
161@ /= 2.0
add_float_lvar_to_float_lvar 161@ += 155@
132@ = add_blip_for_coord 159@ {y} 160@ {z} 161@
35@ += 1

:DESERT6_3201
if 
  is_car_dead 125@
goto_if_false @DESERT6_3233
37@ = 1
45@ = 1
return 

:DESERT6_3233
gosub @DESERT6_4831
if 
  37@ == 1
goto_if_false @DESERT6_3260
return 

:DESERT6_3260
if 
  $g_Desert6_timerKM == 0
goto_if_false @DESERT6_3294
37@ = 1
45@ = 3
return 

:DESERT6_3294
if 
  35@ == 1
goto_if_false @DESERT6_3437
  locate_char_any_means_3d $scplayer {x} 159@ {y} 160@ {z} 161@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
if and
  is_char_in_area_3d $scplayer {leftBottomX} 153@ {leftBottomY} 154@ {leftBottomZ} 155@ {rightTopX} 156@ {rightTopY} 157@ {rightTopZ} 158@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 125@
  is_car_stopped 125@
  not is_car_in_air_proper 125@
goto_if_false @DESERT6_3437
remove_blip 132@
gosub @DESERT6_7788
set_player_control $player1 {state} False
165@ = 0
141@ = 0
35@ += 1

:DESERT6_3437
if 
  35@ == 2
goto_if_false @DESERT6_3487
if 
  is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @DESERT6_3487
set_player_control $player1 {state} True
35@ = 99

:DESERT6_3487
gosub @DESERT6_4188
gosub @DESERT6_5173
if 
  165@ == 1
goto_if_false @DESERT6_3545
if 
  is_int_lvar_greater_than_int_lvar 46@ > 140@
goto_if_false @DESERT6_3545
166@ = 1

:DESERT6_3545
if 
  166@ == 1
goto_if_false @DESERT6_3601
gosub @DESERT6_5600
50@ = 30
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_3601
gosub @DESERT6_6031
if 
  170@ == 0
goto_if_false @DESERT6_3730
57@, 58@, 59@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 159@ {toY} 160@ {toZ} 161@
if 
  500.0 > 72@
goto_if_false @DESERT6_3730
print_now 'DES6_11' {time} 7000 {flag} 1
170@ = 1
171@ = 1
set_lvar_int_to_lvar_int 145@ = 46@
145@ += 7000

:DESERT6_3730
if 
  171@ == 1
goto_if_false @DESERT6_3808
if 
  is_int_lvar_greater_than_int_lvar 46@ > 145@
goto_if_false @DESERT6_3792
171@ = 0
clear_this_print 'DES6_11'
goto @DESERT6_3808

:DESERT6_3792
print_now 'DES6_11' {time} 7000 {flag} 1

:DESERT6_3808
if 
  172@ == 0
goto_if_false @DESERT6_3833
gosub @DESERT6_6621

:DESERT6_3833
if and
  170@ == 1
  80@ <> 4
  not is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @DESERT6_3963
switch_start 79@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DESERT6_3963 {caseNum1} 0 {caseLabel1} @DESERT6_3928 {caseNum2} 1 {caseLabel2} @DESERT6_3949 {caseNum3} -1 {caseLabel3} @DESERT6_3963 {caseNum4} -1 {caseLabel4} @DESERT6_3963 {caseNum5} -1 {caseLabel5} @DESERT6_3963 {caseNum6} -1 {caseLabel6} @DESERT6_3963 {caseNum7} -1 {caseLabel7} @DESERT6_3963

:DESERT6_3928
81@ = 4
gosub @DESERT6_7633
goto @DESERT6_3963

:DESERT6_3949
gosub @DESERT6_7857
goto @DESERT6_3963

:DESERT6_3963
if 
  180@ == 0
goto_if_false @DESERT6_4076
if 
  is_char_in_area_2d $scplayer {leftBottomX} -67.0004 {leftBottomY} 1646.886 {rightTopX} 423.298 {rightTopY} 2132.188 {drawSphere} False
goto_if_false @DESERT6_4076
if or
  is_char_in_any_plane $scplayer
  is_char_in_any_heli $scplayer
goto_if_false @DESERT6_4076
if 
  not is_message_being_displayed 
goto_if_false @DESERT6_4076
print_now 'AREA51' {time} 7000 {flag} 1
180@ = 1

:DESERT6_4076
if 
  35@ == 99
goto_if_false @DESERT6_4101
gosub @DESERT6_9695

:DESERT6_4101
return 

:DESERT6_4103
57@ = 323.5454
58@ = 2540.2539
59@ = 15.8085
63@ = 180.0
clear_area 57@ {y} 58@ {z} 59@ {radius} 15.0 {clearParticles} True
125@ = create_car 476 {x} 57@ {y} 58@ {z} 59@
set_car_heading 125@ {heading} 63@
return 

:DESERT6_4188
57@, 58@, 59@ = get_car_coordinates 125@
70@ = get_ground_z_for_3d_coord 57@ {y} 58@ {z} 59@
71@ = get_water_height_at_coords 57@ {y} 58@ {waves} False
if 
  is_float_lvar_greater_than_float_lvar 71@ > 70@
goto_if_false @DESERT6_4256
set_lvar_float_to_lvar_float 70@ = 71@

:DESERT6_4256
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 70@
if 
  71@ > 40.0
goto_if_false @DESERT6_4581
if 
  163@ == 1
goto_if_false @DESERT6_4527
if 
  is_int_lvar_greater_than_int_lvar 46@ > 138@
goto_if_false @DESERT6_4454
$g_Desert6_visibilityKM += 1
if 
  $g_Desert6_visibilityKM > 100
goto_if_false @DESERT6_4362
$g_Desert6_visibilityKM = 100

:DESERT6_4362
if and
  $g_Desert6_visibilityKM == 100
  165@ == 0
goto_if_false @DESERT6_4439
165@ = 1
166@ = 0
182@ = 0
50@ = 3
50@ *= 1000
set_lvar_int_to_lvar_int 140@ = 46@
add_int_lvar_to_int_lvar 140@ += 50@

:DESERT6_4439
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 80

:DESERT6_4454
if and
  165@ == 0
  169@ == 0
  179@ == 0
goto_if_false @DESERT6_4520
if 
  79@ <> 2
goto_if_false @DESERT6_4520
print_now 'DES6_07' {time} 1000 {flag} 1

:DESERT6_4520
goto @DESERT6_4574

:DESERT6_4527
if 
  71@ > 41.0
goto_if_false @DESERT6_4574
163@ = 1
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 80
play_mission_audio MissionAudioSlot.Slot3

:DESERT6_4574
goto @DESERT6_4829

:DESERT6_4581
if 
  163@ == 1
goto_if_false @DESERT6_4738
163@ = 0
if 
  $g_Desert6_visibilityKM > 0
goto_if_false @DESERT6_4646
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 40
goto @DESERT6_4653

:DESERT6_4646
138@ = 0

:DESERT6_4653
if 
  165@ == 1
goto_if_false @DESERT6_4702
50@ = 10
50@ *= 1000
set_lvar_int_to_lvar_int 141@ = 46@
add_int_lvar_to_int_lvar 141@ += 50@

:DESERT6_4702
165@ = 0
140@ = 0
clear_this_print 'DES6_07'
clear_mission_audio MissionAudioSlot.Slot3
goto @DESERT6_4829

:DESERT6_4738
if 
  $g_Desert6_visibilityKM > 0
goto_if_false @DESERT6_4829
if 
  is_int_lvar_greater_than_int_lvar 46@ > 138@
goto_if_false @DESERT6_4829
$g_Desert6_visibilityKM -= 1
if 
  $g_Desert6_visibilityKM == 0
goto_if_false @DESERT6_4814
138@ = 0
goto @DESERT6_4829

:DESERT6_4814
set_lvar_int_to_lvar_int 138@ = 46@
138@ += 40

:DESERT6_4829
return 

:DESERT6_4831
if 
  not is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_5111
if 
  164@ == 1
goto_if_false @DESERT6_5027
if 
  is_int_lvar_greater_than_int_lvar 46@ > 139@
goto_if_false @DESERT6_5020
if 
  $g_Desert6_failureKM == 0
goto_if_false @DESERT6_4928
37@ = 1
45@ = 2
return 
goto @DESERT6_5020

:DESERT6_4928
$g_Desert6_failureKM -= 1
set_lvar_int_to_lvar_int 139@ = 46@
139@ += 1000
clear_small_prints 
add_next_message_to_previous_briefs False
if 
  $g_Desert6_failureKM == 1
goto_if_false @DESERT6_5001
print_with_number_now 'DES6_04' {num} $g_Desert6_failureKM {duration} 1500 {flag} 1
goto @DESERT6_5020

:DESERT6_5001
print_with_number_now 'DES6_03' {num} $g_Desert6_failureKM {duration} 1500 {flag} 1

:DESERT6_5020
goto @DESERT6_5104

:DESERT6_5027
$g_Desert6_failureKM = 30
set_lvar_int_to_lvar_int 139@ = 46@
139@ += 1000
add_next_message_to_previous_briefs False
print_with_number_now 'DES6_03' {num} $g_Desert6_failureKM {duration} 1500 {flag} 1
remove_blip 132@
133@ = add_blip_for_car 125@
set_blip_as_friendly 133@ {state} True
clear_mission_audio MissionAudioSlot.Slot3
164@ = 1

:DESERT6_5104
goto @DESERT6_5171

:DESERT6_5111
if 
  164@ == 1
goto_if_false @DESERT6_5171
164@ = 0
remove_blip 133@
132@ = add_blip_for_coord 159@ {y} 160@ {z} 161@
139@ = 0
$g_Desert6_failureKM = 0
clear_small_prints 

:DESERT6_5171
return 

:DESERT6_5173
179@ = 0
48@ = 0

:DESERT6_5187
73@ = 0
if 
  184@(48@,2i) == 1
goto_if_false @DESERT6_5577
179@ = 1
if or
  is_car_dead 126@(48@,2i)
  is_char_dead 123@(48@,2i)
goto_if_false @DESERT6_5259
73@ = 1

:DESERT6_5259
if 
  73@ == 0
goto_if_false @DESERT6_5304
if 
  is_car_in_water 126@(48@,2i)
goto_if_false @DESERT6_5304
73@ = 1

:DESERT6_5304
if 
  73@ == 0
goto_if_false @DESERT6_5485
if 
  177@(48@,2i) == 1
goto_if_false @DESERT6_5430
if 
  is_car_in_air_proper 126@(48@,2i)
goto_if_false @DESERT6_5393
177@(48@,2i) = 0
150@(48@,2i) = 0
goto @DESERT6_5423

:DESERT6_5393
if 
  is_int_lvar_greater_than_int_lvar 46@ > 150@(48@,2i)
goto_if_false @DESERT6_5423
73@ = 1

:DESERT6_5423
goto @DESERT6_5485

:DESERT6_5430
if 
  not is_car_in_air_proper 126@(48@,2i)
goto_if_false @DESERT6_5485
177@(48@,2i) = 1
set_lvar_int_to_lvar_int 150@(48@,2i) = 46@
150@(48@,2i) += 5000

:DESERT6_5485
if 
  73@ == 1
goto_if_false @DESERT6_5577
mark_car_as_no_longer_needed 126@(48@,2i)
mark_char_as_no_longer_needed 123@(48@,2i)
remove_blip 134@(48@,2i)
184@(48@,2i) = 0
if 
  165@ == 1
goto_if_false @DESERT6_5575
set_lvar_int_to_lvar_int 140@ = 46@
140@ += 2000

:DESERT6_5575
return 

:DESERT6_5577
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_5187
return 

:DESERT6_5600
57@, 58@, 59@ = get_char_coordinates $scplayer
48@ = 0

:DESERT6_5621
if 
  184@(48@,2i) == 0
goto_if_false @DESERT6_6008
50@ = generate_random_int_in_range 150 {max} 200
cset_lvar_float_to_lvar_int 70@ =# 50@
51@ = generate_random_int_in_range 0 {max} 2
if 
  51@ == 0
goto_if_false @DESERT6_5704
add_float_lvar_to_float_lvar 57@ += 70@
goto @DESERT6_5712

:DESERT6_5704
sub_float_lvar_from_float_lvar 57@ -= 70@

:DESERT6_5712
50@ = generate_random_int_in_range 150 {max} 200
cset_lvar_float_to_lvar_int 70@ =# 50@
51@ = generate_random_int_in_range 0 {max} 2
if 
  51@ == 0
goto_if_false @DESERT6_5773
add_float_lvar_to_float_lvar 58@ += 70@
goto @DESERT6_5781

:DESERT6_5773
sub_float_lvar_from_float_lvar 58@ -= 70@

:DESERT6_5781
70@ = get_ground_z_for_3d_coord 57@ {y} 58@ {z} 59@
71@ = get_water_height_at_coords 57@ {y} 58@ {waves} False
if 
  is_float_lvar_greater_than_float_lvar 71@ > 70@
goto_if_false @DESERT6_5835
set_lvar_float_to_lvar_float 70@ = 71@

:DESERT6_5835
set_lvar_float_to_lvar_float 59@ = 70@
59@ += 200.0
create_car 520 {x} 57@ {y} 58@ {z} 59@ {var_handle} 126@(48@,2i)
plane_starts_in_air 126@(48@,2i)
plane_attack_player 126@(48@,2i) {handle} $player1 {radius} 10.0
add_blip_for_car 126@(48@,2i) {var_handle} 134@(48@,2i)
change_blip_display 134@(48@,2i) {display} BlipDisplay.BlipOnly
create_char_inside_car 126@(48@,2i) {pedType} PedType.CivMale {modelId} 43 {var_handle} 123@(48@,2i)
set_char_decision_maker 123@(48@,2i) {handleOrTemplate} 136@
177@(48@,2i) = 0
150@(48@,2i) = 0
184@(48@,2i) = 1
166@ = 0
182@ = 1
return 

:DESERT6_6008
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_5621
return 

:DESERT6_6031
if 
  165@ == 1
goto_if_false @DESERT6_6051
return 

:DESERT6_6051
if 
  is_int_lvar_greater_than_int_lvar 141@ > 46@
goto_if_false @DESERT6_6072
return 

:DESERT6_6072
if 
  182@ == 0
goto_if_false @DESERT6_6092
return 

:DESERT6_6092
60@, 61@, 62@ = get_char_coordinates $scplayer
48@ = 0

:DESERT6_6113
if 
  184@(48@,2i) == 1
goto_if_false @DESERT6_6235
57@, 58@, 59@ = get_car_coordinates 126@(48@,2i)
70@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  70@ > 250.0
goto_if_false @DESERT6_6235
remove_char_elegantly 123@(48@,2i)
delete_car 126@(48@,2i)
remove_blip 134@(48@,2i)
184@(48@,2i) = 0

:DESERT6_6235
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_6113
return 

:DESERT6_6258
if 
  is_car_dead 125@
goto_if_false @DESERT6_6276
return 

:DESERT6_6276
128@ = create_object #AMMO_CAPSULE {x} 370.5 {y} 2498.75 {z} 25.5
129@ = create_object #AMMO_CAPSULE {x} 371.25 {y} 2498.3501 {z} 25.3
130@ = create_object #AMMO_CAPSULE {x} 371.25 {y} 2499.1499 {z} 25.7
131@ = create_object #AMMO_CAPSULE {x} 372.0 {y} 2498.3501 {z} 25.4
attach_object_to_car 128@ {handle} 125@ {xOffset} -0.75 {yOffset} 0.3 {zOffset} -1.05 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 129@ {handle} 125@ {xOffset} -0.25 {yOffset} 0.3 {zOffset} -1.1 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 130@ {handle} 125@ {xOffset} 0.25 {yOffset} 0.3 {zOffset} -1.1 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 131@ {handle} 125@ {xOffset} 0.75 {yOffset} 0.3 {zOffset} -1.05 {xRotation} 88.0 {yRotation} 0.0 {zRotation} 0.0
48@ = 0

:DESERT6_6527
set_object_collision 128@(48@,4i) {state} False
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6527
return 

:DESERT6_6561
172@ = 0
48@ = 0

:DESERT6_6575
set_lvar_int_to_lvar_int 146@(48@,4i) = 46@
173@(48@,4i) = 0
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6575
return 

:DESERT6_6621
48@ = 0

:DESERT6_6628
if 
  173@(48@,4i) == 0
goto_if_false @DESERT6_6733
if 
  is_int_lvar_greater_than_int_lvar 46@ > 146@(48@,4i)
goto_if_false @DESERT6_6733
detach_object 128@(48@,4i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} True
set_object_dynamic 128@(48@,4i) {state} True
report_mission_audio_event_at_object 128@(48@,4i) {soundId} ScriptSound.SoundBonnetDent
173@(48@,4i) = 1

:DESERT6_6733
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6628
48@ = 0

:DESERT6_6761
if 
  173@(48@,4i) == 0
goto_if_false @DESERT6_6785
return 

:DESERT6_6785
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_6761
172@ = 1
return 

:DESERT6_6815
switch_start 79@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @DESERT6_6899 {caseNum1} 0 {caseLabel1} @DESERT6_6878 {caseNum2} 1 {caseLabel2} @DESERT6_6878 {caseNum3} 2 {caseLabel3} @DESERT6_6885 {caseNum4} 3 {caseLabel4} @DESERT6_6878 {caseNum5} 4 {caseLabel5} @DESERT6_6878 {caseNum6} -1 {caseLabel6} @DESERT6_6935 {caseNum7} -1 {caseLabel7} @DESERT6_6935

:DESERT6_6878
goto @DESERT6_6935

:DESERT6_6885
gosub @DESERT6_7075
goto @DESERT6_6935

:DESERT6_6899
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:DESERT6_6935
return 

:DESERT6_6937
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @DESERT6_6958
return 

:DESERT6_6958
50@ = 1
87@(50@,3i) = 1
load_mission_audio 50@ {audioId} 90@(84@,11i)
84@ += 1
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @DESERT6_7016
return 

:DESERT6_7016
50@ += 1
if 
  50@ > 2
goto_if_false @DESERT6_7043
return 

:DESERT6_7043
87@(50@,3i) = 1
load_mission_audio 50@ {audioId} 90@(84@,11i)
84@ += 1
return 

:DESERT6_7075
gosub @DESERT6_8047
if 
  79@ == 3
goto_if_false @DESERT6_7109
gosub @DESERT6_7325
return 

:DESERT6_7109
switch_start 87@(78@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DESERT6_7292 {caseNum1} 0 {caseLabel1} @DESERT6_7176 {caseNum2} 1 {caseLabel2} @DESERT6_7185 {caseNum3} 2 {caseLabel3} @DESERT6_7221 {caseNum4} 3 {caseLabel4} @DESERT6_7260 {caseNum5} -1 {caseLabel5} @DESERT6_7323 {caseNum6} -1 {caseLabel6} @DESERT6_7323 {caseNum7} -1 {caseLabel7} @DESERT6_7323

:DESERT6_7176
return 
goto @DESERT6_7323

:DESERT6_7185
if 
  not has_mission_audio_loaded 78@
goto_if_false @DESERT6_7203
return 

:DESERT6_7203
87@(78@,3i) = 2
goto @DESERT6_7323

:DESERT6_7221
play_mission_audio 78@
print_now 101@(82@,11s) {time} 10000 {flag} 1
87@(78@,3i) = 3
return 
goto @DESERT6_7323

:DESERT6_7260
if 
  not has_mission_audio_finished 78@
goto_if_false @DESERT6_7278
return 

:DESERT6_7278
gosub @DESERT6_7378
goto @DESERT6_7323

:DESERT6_7292
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:DESERT6_7323
return 

:DESERT6_7325
50@ = 1

:DESERT6_7332
if 
  2 >= 50@
goto_if_false @DESERT6_7369
clear_mission_audio 50@
50@ += 1
goto @DESERT6_7332

:DESERT6_7369
gosub @DESERT6_7507
return 

:DESERT6_7378
87@(78@,3i) = 0
82@ += 1
if 
  is_int_lvar_equal_to_int_lvar 82@ == 83@
goto_if_false @DESERT6_7424
gosub @DESERT6_7507
return 

:DESERT6_7424
if 
  is_int_lvar_greater_than_int_lvar 83@ > 84@
goto_if_false @DESERT6_7473
87@(78@,3i) = 1
load_mission_audio 78@ {audioId} 90@(84@,11i)
84@ += 1

:DESERT6_7473
78@ += 1
if 
  78@ > 2
goto_if_false @DESERT6_7505
78@ = 1

:DESERT6_7505
return 

:DESERT6_7507
set_local_var_bit_lvar 85@ {var_bitIndex} 80@
80@ = 0
79@ = 0
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:DESERT6_7571
if 
  2 > 50@
goto_if_false @DESERT6_7614
87@(50@,3i) = 0
50@ += 1
goto @DESERT6_7571

:DESERT6_7614
clear_small_prints 
set_lvar_int_to_lvar_int 86@ = 46@
86@ += 120
return 

:DESERT6_7633
if 
  79@ <> 0
goto_if_false @DESERT6_7658
gosub @DESERT6_7857

:DESERT6_7658
if 
  is_int_lvar_greater_than_int_lvar 86@ > 46@
goto_if_false @DESERT6_7679
return 

:DESERT6_7679
86@ = 0
set_lvar_int_to_lvar_int 80@ = 81@
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:DESERT6_7736
if 
  2 > 50@
goto_if_false @DESERT6_7779
87@(50@,3i) = 0
50@ += 1
goto @DESERT6_7736

:DESERT6_7779
gosub @DESERT6_7886
return 

:DESERT6_7788
if 
  79@ <> 1
goto_if_false @DESERT6_7848
write_debug "A_CONVERSATION_HAS_NOT_BEEN_PREPARED"
return 

:DESERT6_7848
79@ = 2
return 

:DESERT6_7857
if 
  79@ == 0
goto_if_false @DESERT6_7877
return 

:DESERT6_7877
gosub @DESERT6_7325
return 

:DESERT6_7886
switch_start 80@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DESERT6_8005 {caseNum1} 1 {caseLabel1} @DESERT6_7949 {caseNum2} 2 {caseLabel2} @DESERT6_7963 {caseNum3} 3 {caseLabel3} @DESERT6_7977 {caseNum4} 4 {caseLabel4} @DESERT6_7991 {caseNum5} -1 {caseLabel5} @DESERT6_8031 {caseNum6} -1 {caseLabel6} @DESERT6_8031 {caseNum7} -1 {caseLabel7} @DESERT6_8031

:DESERT6_7949
gosub @DESERT6_8127
goto @DESERT6_8031

:DESERT6_7963
gosub @DESERT6_8600
goto @DESERT6_8031

:DESERT6_7977
gosub @DESERT6_8797
goto @DESERT6_8031

:DESERT6_7991
gosub @DESERT6_9011
goto @DESERT6_8031

:DESERT6_8005
write_debug "UNKNOWN_CONVERSATION"
return 

:DESERT6_8031
gosub @DESERT6_6937
79@ = 1
return 

:DESERT6_8047
if 
  is_char_dead $scplayer
goto_if_false @DESERT6_8072
79@ = 3
return 

:DESERT6_8072
if 
  is_car_dead 125@
goto_if_false @DESERT6_8097
79@ = 3
return 

:DESERT6_8097
if 
  not is_char_in_car $scplayer {vehicle} 125@
goto_if_false @DESERT6_8125
79@ = 3
return 

:DESERT6_8125
return 

:DESERT6_8127
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 13400
set_lvar_text_label 101@(50@,11s) = 'DES6_AA'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13401
set_lvar_text_label 101@(50@,11s) = 'DES6_AB'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13402
set_lvar_text_label 101@(50@,11s) = 'DES6_AD'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13403
set_lvar_text_label 101@(50@,11s) = 'DES6_AE'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13404
set_lvar_text_label 101@(50@,11s) = 'DES6_AF'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13405
set_lvar_text_label 101@(50@,11s) = 'DES6_AG'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13406
set_lvar_text_label 101@(50@,11s) = 'DES6_AH'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13407
set_lvar_text_label 101@(50@,11s) = 'DES6_AJ'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13408
set_lvar_text_label 101@(50@,11s) = 'DES6_AK'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13409
set_lvar_text_label 101@(50@,11s) = 'DES6_AM'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13410
set_lvar_text_label 101@(50@,11s) = 'DES6_AN'
50@ += 1
if 
  50@ > 11
goto_if_false @DESERT6_8590
write_debug "TOO_MANY_CONVERSATION_LINES"

:DESERT6_8590
set_lvar_int_to_lvar_int 83@ = 50@
return 

:DESERT6_8600
50@ = generate_random_int_in_range 0 {max} 4
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DESERT6_8788 {caseNum1} 0 {caseLabel1} @DESERT6_8672 {caseNum2} 1 {caseLabel2} @DESERT6_8701 {caseNum3} 2 {caseLabel3} @DESERT6_8730 {caseNum4} 3 {caseLabel4} @DESERT6_8759 {caseNum5} -1 {caseLabel5} @DESERT6_8788 {caseNum6} -1 {caseLabel6} @DESERT6_8788 {caseNum7} -1 {caseLabel7} @DESERT6_8788

:DESERT6_8672
set_lvar_int_to_constant 90@ = 13411
set_lvar_text_label 101@s = 'DES6_BA'
goto @DESERT6_8788

:DESERT6_8701
set_lvar_int_to_constant 90@ = 13412
set_lvar_text_label 101@s = 'DES6_BB'
goto @DESERT6_8788

:DESERT6_8730
set_lvar_int_to_constant 90@ = 13413
set_lvar_text_label 101@s = 'DES6_BC'
goto @DESERT6_8788

:DESERT6_8759
set_lvar_int_to_constant 90@ = 13414
set_lvar_text_label 101@s = 'DES6_BD'
goto @DESERT6_8788

:DESERT6_8788
83@ = 1
return 

:DESERT6_8797
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 13415
set_lvar_text_label 101@(50@,11s) = 'DES6_CA'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13416
set_lvar_text_label 101@(50@,11s) = 'DES6_CB'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13417
set_lvar_text_label 101@(50@,11s) = 'DES6_CC'
50@ += 1
set_lvar_int_to_constant 90@(50@,11i) = 13418
set_lvar_text_label 101@(50@,11s) = 'DES6_CD'
50@ += 1
if 
  50@ > 11
goto_if_false @DESERT6_9001
write_debug "TOO_MANY_CONVERSATION_LINES"

:DESERT6_9001
set_lvar_int_to_lvar_int 83@ = 50@
return 

:DESERT6_9011
50@ = 0
set_lvar_int_to_constant 90@(50@,11i) = 13419
set_lvar_text_label 101@(50@,11s) = 'DES6_DA'
83@ = 1
return 

:DESERT6_9057
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @DESERT6_9106
47@ += 1
if 
  47@ > 2
goto_if_false @DESERT6_9104
47@ = 0

:DESERT6_9104
clear_all_view_variables 

:DESERT6_9106
if 
  47@ == 1
goto_if_false @DESERT6_9280
set_var_int_to_lvar_int $Desert6_view_debug = 34@
set_var_int_to_lvar_int $7501 = 35@
set_var_int_to_lvar_int $7502 = 46@
set_var_int_to_lvar_int $7503 = 80@
set_var_int_to_lvar_int $7504 = 85@
$7505 = 0
$7506 = 0
$7507 = 0
view_integer_variable $Desert6_view_debug {_p2} "M_STAGE"
view_integer_variable $7501 {_p2} "M_GOALS"
view_integer_variable $7502 {_p2} "M_MISSION_TIMER"
view_integer_variable $7503 {_p2} "CONVERSATION"
view_integer_variable $7504 {_p2} "CONVERSATIONSPLAYED"

:DESERT6_9280
if 
  47@ == 2
goto_if_false @DESERT6_9298

:DESERT6_9298
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @DESERT6_9320
38@ = 1

:DESERT6_9320
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @DESERT6_9408
if 
  39@ == 0
goto_if_false @DESERT6_9383
39@ = 1
write_debug "LEVEL_PAUSED"
goto @DESERT6_9408

:DESERT6_9383
39@ = 0
write_debug "LEVEL_UNPAUSED"

:DESERT6_9408
return 

:DESERT6_9410
if 
  not is_ps2_keyboard_key_just_pressed 74
goto_if_false @DESERT6_9427
return 

:DESERT6_9427
if 
  34@ == 2
goto_if_false @DESERT6_9548
if 
  2 > 35@
goto_if_false @DESERT6_9531
clear_area -2246.7061 {y} -2539.1001 {z} 30.7512 {radius} 25.0 {clearParticles} True
set_char_coordinates $scplayer {x} -2246.7061 {y} -2539.1001 {z} 30.7512
set_char_heading $scplayer {heading} 144.5365
35@ = 2
goto @DESERT6_9548

:DESERT6_9531
remove_blip 132@
delete_checkpoint 152@
35@ = 99

:DESERT6_9548
if 
  34@ == 3
goto_if_false @DESERT6_9620
clear_area 384.4035 {y} 2449.3501 {z} 15.4921 {radius} 25.0 {clearParticles} True
set_char_coordinates $scplayer {x} 384.4035 {y} 2449.3501 {z} 15.4921
set_char_heading $scplayer {heading} 7.1386

:DESERT6_9620
return 

:DESERT6_9622
41@ += 1
if 
  41@ > 9
goto_if_false @DESERT6_9654
41@ = 0

:DESERT6_9654
return 

:DESERT6_9656
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:DESERT6_9695
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:DESERT6_9725
if 
  not is_char_dead $scplayer
goto_if_false @DESERT6_9748
set_player_control $player1 {state} False

:DESERT6_9748
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:DESERT6_9763
if 
  get_fading_status 
goto_if_false @DESERT6_9787
wait 0
goto @DESERT6_9763

:DESERT6_9787
clear_area 335.0 {y} 2529.0 {z} 16.0 {radius} 20.0 {clearParticles} True
load_cutscene 'DESERT6'

:DESERT6_9822
if 
  not has_cutscene_loaded 
goto_if_false @DESERT6_9846
wait 0
goto @DESERT6_9822

:DESERT6_9846
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
force_weather WeatherType.ExtraSunnyDesert

:DESERT6_9867
if 
  not has_cutscene_finished 
goto_if_false @DESERT6_9891
wait 0
goto @DESERT6_9867

:DESERT6_9891
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:DESERT6_9905
if 
  get_fading_status 
goto_if_false @DESERT6_9929
wait 0
goto @DESERT6_9905

:DESERT6_9929
clear_cutscene 
restore_camera_jumpcut 
switch_widescreen False
return 

:DESERT6_9939
if 
  not is_player_playing $player1
goto_if_false @DESERT6_9966
wait 0
goto @DESERT6_9939

:DESERT6_9966
switch_car_generator $d5_bronze_generator {amount} 0
switch_car_generator $d5_silver_generator {amount} 0
switch_car_generator $d5_gold_generator {amount} 0
clear_area 368.1973 {y} 2519.4209 {z} 15.5961 {radius} 300.0 {clearParticles} False
gosub @DESERT6_10197
gosub @DESERT6_10305
gosub @DESERT6_4103
133@ = add_blip_for_car 125@
set_blip_as_friendly 133@ {state} True
clear_area 331.9908 {y} 2533.7671 {z} 15.8044 {radius} 0.5 {clearParticles} False
load_scene 331.9908 {y} 2533.7671 {z} 15.8044
set_char_coordinates $scplayer {x} 331.9908 {y} 2533.7671 {z} 15.8044
set_char_heading $scplayer {heading} 48.4743
set_camera_behind_player 
force_weather_now WeatherType.ExtraSunnyDesert
switch_ambient_planes False
wait 500
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
if 
  not is_char_dead $scplayer
goto_if_false @DESERT6_10171
set_player_control $player1 {state} True

:DESERT6_10171
set_respawn_point_for_duration_of_mission 322.8019 {y} 2530.124 {z} 15.8089
gosub @DESERT6_9695
return 

:DESERT6_10197
request_model 476
request_model 520
request_model 43
request_model #AMMO_CAPSULE
load_all_models_now 

:DESERT6_10218
if or
  not has_model_loaded 476
  not has_model_loaded 520
goto_if_false @DESERT6_10250
wait 0
goto @DESERT6_10218

:DESERT6_10250
if 
  not has_model_loaded 43
goto_if_false @DESERT6_10276
wait 0
goto @DESERT6_10250

:DESERT6_10276
if 
  not has_model_loaded #AMMO_CAPSULE
goto_if_false @DESERT6_10303
wait 0
goto @DESERT6_10276

:DESERT6_10303
return 

:DESERT6_10305
return 

:DESERT6_10307
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DESERT6_10457 {caseNum1} 1 {caseLabel1} @DESERT6_10388 {caseNum2} 2 {caseLabel2} @DESERT6_10411 {caseNum3} 3 {caseLabel3} @DESERT6_10434 {caseNum4} -1 {caseLabel4} @DESERT6_10457 {caseNum5} -1 {caseLabel5} @DESERT6_10457 {caseNum6} -1 {caseLabel6} @DESERT6_10457 {caseNum7} -1 {caseLabel7} @DESERT6_10457

:DESERT6_10388
print_now 'DES6_99' {time} 5000 {flag} 1
goto @DESERT6_10457

:DESERT6_10411
print_now 'DES6_98' {time} 5000 {flag} 1
goto @DESERT6_10457

:DESERT6_10434
print_now 'DES6_97' {time} 5000 {flag} 1
goto @DESERT6_10457

:DESERT6_10457
return 

:DESERT6_10459
print_with_number_big 'M_PASS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'DESERT6'
player_made_progress 1
$flag_desert_mission_counter += 1
return 

:DESERT6_10519
mark_car_as_no_longer_needed 125@
48@ = 0

:DESERT6_10531
mark_car_as_no_longer_needed 126@(48@,2i)
mark_char_as_no_longer_needed 123@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_10531
48@ = 0

:DESERT6_10577
delete_object 128@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @DESERT6_10577
remove_blip 133@
remove_blip 132@
48@ = 0

:DESERT6_10624
remove_blip 134@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @DESERT6_10624
clear_onscreen_counter $g_Desert6_visibilityKM
clear_onscreen_timer $g_Desert6_timerKM
delete_checkpoint 152@
clear_mission_audio MissionAudioSlot.Slot3
mark_model_as_no_longer_needed 476
mark_model_as_no_longer_needed 520
mark_model_as_no_longer_needed 43
mark_model_as_no_longer_needed #AMMO_CAPSULE
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_ambient_planes True
release_weather 
set_disable_military_zones False
$timer_mobile_start = get_game_timer 
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @DESERT6_10753
switch_car_generator $d5_bronze_generator {amount} 101

:DESERT6_10753
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @DESERT6_10778
switch_car_generator $d5_silver_generator {amount} 101

:DESERT6_10778
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @DESERT6_10803
switch_car_generator $d5_gold_generator {amount} 101

:DESERT6_10803
$onmission = 0
mission_has_finished 
return 

//-------------Mission 80---------------
// Originally: Stowaway

:DESERT9
script_name 'DESERT9'
gosub @DESERT9_49

:DESERT9_18
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT9_38
gosub @DESERT9_21846

:DESERT9_38
gosub @DESERT9_21954

:DESERT9_45
mission_has_finished 
terminate_this_script 

:DESERT9_49
register_mission_given 
load_mission_text 'DSERT9'
set_wanted_multiplier 0.0
set_script_limit_to_gang_size 0
set_char_area_visible $scplayer {areaId} 0
$onmission = 1
switch_entry_exit 'DESHOUS' {state} False
150@ = 100.0
if 
  150@ == 0.0
goto_if_false @DESERT9_372
91@ = create_object #BARREL1 {x} 0.0 {y} 0.0 {z} 0.0
225@ = create_object #BARREL1 {x} 0.0 {y} 0.0 {z} 0.0
56@ = create_object #KB_BARREL {x} 0.0 {y} 0.0 {z} 0.0
35@ = create_car 461 {x} 426.6481 {y} 2535.7129 {z} 15.5538
set_car_heading 35@ {heading} 107.0
152@ = add_blip_for_coord 74@ {y} 75@ {z} 76@
$para_pickup = create_pickup 371 {pickupType} PickupType.Once {x} 1797.6021 {y} -1308.881 {z} 133.8128
153@ = add_blip_for_car 35@
49@ = create_object #CR_GUNCRATE {x} 365.0146 {y} 2500.676 {z} 15.492
50@ = create_object #CR_CRATESTACK {x} 365.9573 {y} 2502.7629 {z} 15.4921
51@ = create_object #CR_CRATESTACK {x} 365.5524 {y} 2503.46 {z} 15.492
52@ = create_object #CR_CRATESTACK {x} 364.5623 {y} 2503.406 {z} 15.4921

:DESERT9_372
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DESERT9_398
goto @DESERT9_21869

:DESERT9_398
if 
is_ps2_keyboard_key_pressed 68
goto_if_false @DESERT9_468

:DESERT9_413
if 
  not has_model_loaded 371
goto_if_false @DESERT9_445
request_model 371
wait 0
goto @DESERT9_413

:DESERT9_445
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
68@ = 0
71@ = 0

:DESERT9_468
switch_start 68@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @DESERT9_764 {caseNum1} 0 {caseLabel1} @DESERT9_596 {caseNum2} 2 {caseLabel2} @DESERT9_652 {caseNum3} 3 {caseLabel3} @DESERT9_666 {caseNum4} 4 {caseLabel4} @DESERT9_680 {caseNum5} 5 {caseLabel5} @DESERT9_694 {caseNum6} 6 {caseLabel6} @DESERT9_708 {caseNum7} 7 {caseLabel7} @DESERT9_722
switch_continued 8 {caseLabel1} @DESERT9_736 {caseNum2} 9 {caseLabel2} @DESERT9_750 {caseNum3} 20 {caseLabel3} @DESERT9_610 {caseNum4} 21 {caseLabel4} @DESERT9_624 {caseNum5} 22 {caseLabel5} @DESERT9_638 {caseNum6} -1 {caseLabel6} @DESERT9_764 {caseNum7} -1 {caseLabel7} @DESERT9_764 {caseNum8} -1 {caseLabel8} @DESERT9_764 {caseNum9} -1 {caseLabel9} @DESERT9_764

:DESERT9_596
gosub @DESERT9_864
goto @DESERT9_764

:DESERT9_610
gosub @DESERT9_889
goto @DESERT9_764

:DESERT9_624
gosub @DESERT9_4350
goto @DESERT9_764

:DESERT9_638
gosub @DESERT9_4519
goto @DESERT9_764

:DESERT9_652
gosub @DESERT9_6284
goto @DESERT9_764

:DESERT9_666
gosub @DESERT9_7444
goto @DESERT9_764

:DESERT9_680
gosub @DESERT9_11098
goto @DESERT9_764

:DESERT9_694
gosub @DESERT9_12941
goto @DESERT9_764

:DESERT9_708
gosub @DESERT9_13168
goto @DESERT9_764

:DESERT9_722
gosub @DESERT9_13222
goto @DESERT9_764

:DESERT9_736
gosub @DESERT9_13784
goto @DESERT9_764

:DESERT9_750
gosub @DESERT9_14291
goto @DESERT9_764

:DESERT9_764
gosub @DESERT9_21693
gosub @DESERT9_792
gosub @DESERT9_20462
goto @DESERT9_372

:DESERT9_792
switch_start 68@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DESERT9_862 {caseNum1} 2 {caseLabel1} @DESERT9_855 {caseNum2} -1 {caseLabel2} @DESERT9_862 {caseNum3} -1 {caseLabel3} @DESERT9_862 {caseNum4} -1 {caseLabel4} @DESERT9_862 {caseNum5} -1 {caseLabel5} @DESERT9_862 {caseNum6} -1 {caseLabel6} @DESERT9_862 {caseNum7} -1 {caseLabel7} @DESERT9_862

:DESERT9_855
goto @DESERT9_862

:DESERT9_862
return 

:DESERT9_864
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
68@ = 20
return 

:DESERT9_889
set_fading_colour 0 {g} 0 {b} 0
if 
  71@ == 0
goto_if_false @DESERT9_936
set_char_area_visible $scplayer {areaId} 0
do_fade 1000 {direction} Fade.Out
71@ = 1

:DESERT9_936
if 
  71@ == 1
goto_if_false @DESERT9_1110
if 
  not get_fading_status 
goto_if_false @DESERT9_1110
clear_char_tasks_immediately $scplayer
clear_area_of_cars -120.5297 {leftBottomY} 2593.665 {leftBottomZ} 69.1939 {rightTopX} 502.5016 {rightTopY} 2365.418 {rightTopZ} -1.2447
clear_area_of_chars -120.5297 {leftBottomY} 2593.665 {leftBottomZ} 69.1939 {rightTopX} 502.5016 {rightTopY} 2365.418 {rightTopZ} -1.2447
set_char_coordinates_no_offset $scplayer {x} 222.7755 {y} 2508.9719 {z} 15.5214
request_model 592
request_model 422
request_model 165
request_model 352
request_model 166
request_car_recording 450
request_car_recording 168
request_car_recording 452
request_car_recording 453
load_all_models_now 
71@ = 1

:DESERT9_1110
if 
  71@ == 1
goto_if_false @DESERT9_1607
if and
  has_model_loaded 592
  has_model_loaded 422
  has_model_loaded 165
  has_model_loaded 352
  has_model_loaded 166
goto_if_false @DESERT9_1607
if and
  has_car_recording_been_loaded 450
  has_car_recording_been_loaded 168
  has_car_recording_been_loaded 452
  has_car_recording_been_loaded 453
goto_if_false @DESERT9_1607
34@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
36@ = create_car 422 {x} -22.1321 {y} 2504.9419 {z} 15.2566
37@ = create_car 422 {x} -15.9009 {y} 2507.28 {z} 15.2543
38@ = create_car 422 {x} -17.3227 {y} 2501.011 {z} 15.252
change_car_colour 36@ {color1} 0 {color2} 0
change_car_colour 37@ {color1} 0 {color2} 0
change_car_colour 38@ {color1} 0 {color2} 0
set_car_heading 36@ {heading} 270.0
set_car_heading 37@ {heading} 270.0
set_car_heading 38@ {heading} 270.0
40@ = create_char_inside_car 36@ {pedType} PedType.Mission1 {modelId} 166
41@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 165
42@ = create_char_inside_car 38@ {pedType} PedType.Mission1 {modelId} 165
43@ = create_char_as_passenger 36@ {pedType} PedType.Mission1 {modelId} 165 {seat} SeatId.BikeRear
44@ = create_char_as_passenger 37@ {pedType} PedType.Mission1 {modelId} 166 {seat} SeatId.BikeRear
45@ = create_char PedType.Mission1 {modelId} 165 {x} -28.1475 {y} 2492.8069 {z} 15.2513
46@ = create_char PedType.Mission1 {modelId} 166 {x} -28.1475 {y} 2493.8069 {z} 15.2513
47@ = create_char PedType.Mission1 {modelId} 166 {x} -28.1475 {y} 2494.8069 {z} 15.2513
attach_char_to_car 45@ {vehicle} 36@ {xOffset} 0.5 {yOffset} -1.0 {zOffset} 0.4 {heading} Facing.Forward {headingRange} 10.0 {weaponType} WeaponType.MicroUzi
attach_char_to_car 46@ {vehicle} 37@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 0.4 {heading} Facing.Forward {headingRange} 10.0 {weaponType} WeaponType.MicroUzi
attach_char_to_car 47@ {vehicle} 37@ {xOffset} 0.5 {yOffset} -1.0 {zOffset} 0.4 {heading} Facing.Forward {headingRange} 10.0 {weaponType} WeaponType.MicroUzi
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1500
71@ = 2

:DESERT9_1607
if 
  71@ == 2
goto_if_false @DESERT9_1914
if 
  is_int_lvar_greater_than_int_lvar 86@ > TIMERA
goto_if_false @DESERT9_1914
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
  not is_car_dead 34@
goto_if_false @DESERT9_1914
if and
  has_car_recording_been_loaded 450
  has_car_recording_been_loaded 168
  has_car_recording_been_loaded 452
  has_car_recording_been_loaded 453
goto_if_false @DESERT9_1894
start_playback_recorded_car 36@ {path} 450
start_playback_recorded_car 37@ {path} 453
start_playback_recorded_car 38@ {path} 452
start_playback_recorded_car 34@ {path} 168
set_car_engine_on 34@ {state} True
set_playback_speed 36@ {speed} 0.8
set_playback_speed 37@ {speed} 0.9
set_playback_speed 38@ {speed} 0.8
set_fixed_camera_position -123.0824 {y} 2533.0569 {z} 21.679 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
load_scene_in_direction -123.0824 {y} 2533.0569 {z} 21.679 {heading} 100.0
request_collision -123.0824 {y} 2533.0569
do_fade 600 {direction} Fade.In
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5000
set_lvar_int_to_lvar_int 155@ = TIMERA
155@ += 1000
71@ = 3
goto @DESERT9_1914

:DESERT9_1894
request_car_recording 450
request_car_recording 168
request_car_recording 452
request_car_recording 453

:DESERT9_1914
if 
  71@ == 3
goto_if_false @DESERT9_2227
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
  not is_car_dead 34@
goto_if_false @DESERT9_2227
148@ = 0.0
149@ = 0.0
150@ = 0.0
$x, $y, $z = get_car_coordinates 36@
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
$x, $y, $z = get_car_coordinates 37@
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
$x, $y, $z = get_car_coordinates 38@
add_float_var_to_float_lvar 148@ += $x
add_float_var_to_float_lvar 149@ += $y
add_float_var_to_float_lvar 150@ += $z
148@ /= 3.0
149@ /= 3.0
150@ /= 3.0
point_camera_at_point 148@ {y} 149@ {z} 150@ {switchStyle} SwitchType.JumpCut
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_2176
71@ = 4

:DESERT9_2176
if 
  155@ <> 0
goto_if_false @DESERT9_2227
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 155@
goto_if_false @DESERT9_2227
626@ = 1
155@ = 0

:DESERT9_2227
if 
  71@ == 4
goto_if_false @DESERT9_2700
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_2534
if and
  not is_char_dead 40@
  not is_char_dead 41@
  not is_char_dead 42@
goto_if_false @DESERT9_2534
stop_playback_recorded_car 36@
stop_playback_recorded_car 37@
stop_playback_recorded_car 38@
set_car_coordinates 36@ {x} 90.1321 {y} 2504.9419 {z} 15.4766
set_car_coordinates 37@ {x} 83.9009 {y} 2510.28 {z} 15.4766
set_car_coordinates 38@ {x} 85.3227 {y} 2497.011 {z} 15.4766
task_car_drive_to_coord 40@ {vehicle} 36@ {x} 400.2219 {y} 2504.9419 {z} 15.4766 {speed} 12.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 41@ {vehicle} 37@ {x} 400.2219 {y} 2510.28 {z} 15.4766 {speed} 12.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 42@ {vehicle} 38@ {x} 400.2219 {y} 2497.011 {z} 15.4766 {speed} 12.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
set_car_heading 36@ {heading} 270.0
set_car_heading 37@ {heading} 270.0
set_car_heading 38@ {heading} 270.0
set_car_forward_speed 36@ {forwardSpeed} 12.0
set_car_forward_speed 37@ {forwardSpeed} 12.0
set_car_forward_speed 38@ {forwardSpeed} 12.0

:DESERT9_2534
set_playback_speed 34@ {speed} 0.7
set_char_heading $scplayer {heading} 270.0
66@ = open_sequence_task 
task_play_anim -1 {animationName} "FLEE_LKAROUND_01" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 66@
perform_sequence_task $scplayer {sequence} 66@
clear_sequence_task 66@
626@ = 2
set_fixed_camera_position 224.1743 {y} 2508.426 {z} 16.7184 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 223.194 {y} 2508.5349 {z} 16.8827 {switchStyle} SwitchType.JumpCut
71@ = 5
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1700

:DESERT9_2700
if 
  71@ == 5
goto_if_false @DESERT9_3194
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3194
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_3011
if and
  not is_char_dead 40@
  not is_char_dead 41@
  not is_char_dead 42@
goto_if_false @DESERT9_3011
set_car_coordinates 36@ {x} 90.1321 {y} 2504.9419 {z} 15.4766
set_car_coordinates 37@ {x} 83.9009 {y} 2510.28 {z} 15.4766
set_car_coordinates 38@ {x} 85.3227 {y} 2497.011 {z} 15.4766
task_car_drive_to_coord 40@ {vehicle} 36@ {x} 400.2219 {y} 2504.9419 {z} 15.4766 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 41@ {vehicle} 37@ {x} 400.2219 {y} 2510.28 {z} 15.4766 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 42@ {vehicle} 38@ {x} 400.2219 {y} 2497.011 {z} 15.4766 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
set_car_heading 36@ {heading} 270.0
set_car_heading 37@ {heading} 270.0
set_car_heading 38@ {heading} 270.0
set_car_forward_speed 36@ {forwardSpeed} 30.0
set_car_forward_speed 37@ {forwardSpeed} 30.0
set_car_forward_speed 38@ {forwardSpeed} 30.0

:DESERT9_3011
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3032
stop_playback_recorded_car 34@

:DESERT9_3032
set_fixed_camera_position 125.3001 {y} 2504.3291 {z} 15.5565 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 124.312 {y} 2504.3611 {z} 15.7067 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2700
71@ = 6
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3134
set_car_engine_on 34@ {state} True
set_heli_blades_full_speed 34@

:DESERT9_3134
set_char_coordinates $scplayer {x} 412.6561 {y} 2530.908 {z} 15.617
set_char_heading $scplayer {heading} 136.0
74@ = 25.6646
75@ = 2504.646
76@ = 29.1834

:DESERT9_3194
if 
  71@ == 6
goto_if_false @DESERT9_3485
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3326
set_lvar_int_to_lvar_int 115@ = TIMERA
sub_int_lvar_from_int_lvar 115@ -= 86@
115@ += 2700
cset_lvar_float_to_lvar_int 156@ =# 115@
156@ /= 20.0
set_var_float_to_lvar_float $x = 74@
add_float_lvar_to_float_var $x += 156@
156@ /= 14.0
set_var_float_to_lvar_float $z = 76@
sub_float_lvar_from_float_var $z -= 156@
set_car_coordinates_no_offset 34@ {x} $x {y} 75@ {z} $z

:DESERT9_3326
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3485
set_char_coordinates $scplayer {x} 403.0466 {y} 2522.1899 {z} 15.4843
task_go_straight_to_coord $scplayer {x} 415.1068 {y} 2528.624 {z} 15.5375 {speed} MoveState.Run {time} -2
load_scene_in_direction 404.7372 {y} 2524.8569 {z} 15.5671 {heading} 300.0
set_fixed_camera_position 404.7372 {y} 2524.8569 {z} 15.5671 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 405.6275 {y} 2525.301 {z} 15.6661 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2500
71@ = 8

:DESERT9_3485
if 
  71@ == 7
goto_if_false @DESERT9_3881
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3881
71@ = 8
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3881
set_car_coordinates 34@ {x} 380.6384 {y} 2503.927 {z} 15.4884
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_3779
if and
  not is_char_dead 40@
  not is_char_dead 41@
  not is_char_dead 42@
goto_if_false @DESERT9_3779
set_car_coordinates 36@ {x} 331.2219 {y} 2504.9419 {z} 15.4766
set_car_coordinates 37@ {x} 338.2219 {y} 2507.9419 {z} 15.4766
set_car_coordinates 38@ {x} 325.2219 {y} 2501.9419 {z} 15.4766
task_car_drive_to_coord 40@ {vehicle} 36@ {x} 430.2219 {y} 2504.9419 {z} 15.4766 {speed} 13.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 41@ {vehicle} 37@ {x} 430.2219 {y} 2507.28 {z} 15.4766 {speed} 13.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_drive_to_coord 42@ {vehicle} 38@ {x} 430.2219 {y} 2501.011 {z} 15.4766 {speed} 13.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:DESERT9_3779
set_car_heading 34@ {heading} 270.0
set_car_forward_speed 34@ {forwardSpeed} 7.0
set_heli_blades_full_speed 34@
set_fixed_camera_position 413.1315 {y} 2533.2971 {z} 15.8551 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 412.508 {y} 2532.519 {z} 15.9255 {switchStyle} SwitchType.JumpCut
81@ = 0.0
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000

:DESERT9_3881
if 
  71@ == 8
goto_if_false @DESERT9_3953
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_3953
do_fade 800 {direction} Fade.Out
if 
  not is_car_dead 34@
goto_if_false @DESERT9_3953
stop_playback_recorded_car 34@
71@ = 9

:DESERT9_3953
if 
  71@ == 9
goto_if_false @DESERT9_4238
if 
  not get_fading_status 
goto_if_false @DESERT9_4238
if 
  not is_car_dead 34@
goto_if_false @DESERT9_4005
stop_playback_recorded_car 34@

:DESERT9_4005
if and
  not is_car_dead 36@
  not is_car_dead 37@
  not is_car_dead 38@
goto_if_false @DESERT9_4046
stop_playback_recorded_car 36@
stop_playback_recorded_car 37@
stop_playback_recorded_car 38@

:DESERT9_4046
mark_model_as_no_longer_needed 592
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 166
remove_car_recording 450
remove_car_recording 168
remove_car_recording 452
remove_car_recording 453
delete_car 36@
delete_car 37@
delete_car 38@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
if 
  not is_car_dead 34@
goto_if_false @DESERT9_4192
set_car_coordinates 34@ {x} 394.6384 {y} 2497.927 {z} 15.4884
set_car_heading 34@ {heading} 90.0

:DESERT9_4192
71@ = 0
if 
  157@ > 0
goto_if_false @DESERT9_4231
68@ = 22
goto @DESERT9_4238

:DESERT9_4231
68@ = 21

:DESERT9_4238
if 
  is_skip_cutscene_button_pressed 
goto_if_false @DESERT9_4296
if 
  not get_fading_status 
goto_if_false @DESERT9_4296
if 
  157@ == 0
goto_if_false @DESERT9_4296
do_fade 600 {direction} Fade.Out
157@ = 1

:DESERT9_4296
if 
  157@ == 1
goto_if_false @DESERT9_4348
if 
  not get_fading_status 
goto_if_false @DESERT9_4348
629@ = 5
157@ = 2
71@ = 9

:DESERT9_4348
return 

:DESERT9_4350
load_cutscene 'DESERT9'

:DESERT9_4361
if 
  not has_cutscene_loaded 
goto_if_false @DESERT9_4385
wait 0
goto @DESERT9_4361

:DESERT9_4385
start_cutscene 
do_fade 1000 {direction} Fade.In

:DESERT9_4394
if 
  not has_cutscene_finished 
goto_if_false @DESERT9_4418
wait 0
goto @DESERT9_4394

:DESERT9_4418
if 
  is_skip_cutscene_button_pressed 
goto_if_false @DESERT9_4456
if 
  157@ == 0
goto_if_false @DESERT9_4456
157@ = 2

:DESERT9_4456
set_player_control $player1 {state} False
switch_widescreen True
do_fade 0 {direction} Fade.Out

:DESERT9_4473
if 
  get_fading_status 
goto_if_false @DESERT9_4497
wait 0
goto @DESERT9_4473

:DESERT9_4497
clear_cutscene 
switch_widescreen True
set_player_control $player1 {state} False
68@ = 22
return 

:DESERT9_4519
if 
  71@ == 0
goto_if_false @DESERT9_4626
set_char_area_visible $scplayer {areaId} 0
request_model 592
request_model 422
request_model 165
request_model 352
request_model 166
request_model 461
request_model 363
request_model 364
request_animation "AIRPORT"
request_animation "CARRY"
request_car_recording 149
request_car_recording 135
request_car_recording 134
71@ = 1

:DESERT9_4626
if 
  71@ == 1
goto_if_false @DESERT9_4743
if and
  has_model_loaded 422
  has_model_loaded 165
  has_model_loaded 352
  has_model_loaded 166
  has_model_loaded 461
  has_car_recording_been_loaded 134
goto_if_false @DESERT9_4743
if and
  has_model_loaded 363
  has_model_loaded 364
  has_animation_loaded "AIRPORT"
  has_animation_loaded "CARRY"
  has_car_recording_been_loaded 149
  has_car_recording_been_loaded 135
goto_if_false @DESERT9_4743
71@ = 2

:DESERT9_4743
if 
  71@ == 2
goto_if_false @DESERT9_5554
36@ = create_car 422 {x} 366.764 {y} 2512.655 {z} 15.5677
37@ = create_car 422 {x} 367.134 {y} 2490.1741 {z} 15.4884
38@ = create_car 422 {x} 357.6567 {y} 2509.594 {z} 15.5221
change_car_colour 36@ {color1} 0 {color2} 0
change_car_colour 37@ {color1} 0 {color2} 0
change_car_colour 38@ {color1} 0 {color2} 0
40@ = create_char PedType.Mission1 {modelId} 166 {x} 359.7588 {y} 2511.4741 {z} 15.5501
41@ = create_char PedType.Mission1 {modelId} 165 {x} 369.7111 {y} 2505.8379 {z} 15.4921
42@ = create_char PedType.Mission1 {modelId} 165 {x} 363.5374 {y} 2497.6741 {z} 15.4921
43@ = create_char_as_passenger 36@ {pedType} PedType.Mission1 {modelId} 165 {seat} SeatId.BikeRear
44@ = create_char_as_passenger 37@ {pedType} PedType.Mission1 {modelId} 166 {seat} SeatId.BikeRear
45@ = create_char PedType.Mission1 {modelId} 165 {x} 363.6662 {y} 2500.094 {z} 15.4921
if 
  not is_car_dead 34@
goto_if_false @DESERT9_5013
set_car_heading 34@ {heading} 90.0

:DESERT9_5013
control_movable_vehicle_part 34@ {range} 1.0
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 9999
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 9999
give_weapon_to_char 42@ {weaponType} WeaponType.MicroUzi {ammo} 9999
open_car_door 36@ {door} CarDoor.LeftFrontDoor
open_car_door 36@ {door} CarDoor.RightFrontDoor
49@ = create_object #CR_GUNCRATE {x} 365.0146 {y} 2500.676 {z} 15.492
50@ = create_object #CR_CRATESTACK {x} 365.9573 {y} 2502.7629 {z} 15.4921
51@ = create_object #CR_CRATESTACK {x} 365.5524 {y} 2503.46 {z} 15.492
52@ = create_object #CR_CRATESTACK {x} 364.5623 {y} 2503.406 {z} 15.4921
set_object_heading 50@ {heading} 245.0
clear_area 435.2751 {y} 2527.5229 {z} 15.871 {radius} 10.0 {clearParticles} False
35@ = create_car 461 {x} 435.2751 {y} 2527.5229 {z} 15.871
set_car_heading 35@ {heading} 90.0
set_can_burst_car_tyres 35@ {state} False
set_char_heading 40@ {heading} 340.9066
set_char_heading 41@ {heading} 309.4871
set_char_heading 42@ {heading} 175.4073
task_play_anim 40@ {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 41@ {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 42@ {animationName} "IDLE_ARMED" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_char_coordinates $scplayer {x} 412.6561 {y} 2530.908 {z} 15.617
set_char_heading $scplayer {heading} 136.0
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
if 
  not is_car_dead 34@
goto_if_false @DESERT9_5463
start_playback_recorded_car 34@ {path} 149
set_playback_speed 34@ {speed} 0.0

:DESERT9_5463
set_fixed_camera_position 350.8692 {y} 2488.9319 {z} 17.5906 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 351.4443 {y} 2489.7471 {z} 17.52 {switchStyle} SwitchType.JumpCut
load_scene 367.134 {y} 2490.1741 {z} 15.4884
71@ = 3
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000

:DESERT9_5554
if 
  71@ == 3
goto_if_false @DESERT9_5745
if 
  is_int_lvar_greater_than_int_lvar 86@ > TIMERA
goto_if_false @DESERT9_5745
if and
  not is_char_dead 45@
  does_object_exist 52@
goto_if_false @DESERT9_5665
66@ = open_sequence_task 
task_complex_pickup_object -1 {object} 52@
task_go_straight_to_coord -1 {x} 360.2195 {y} 2500.0229 {z} 15.4921 {speed} MoveState.Walk {time} -2
close_sequence_task 66@
perform_sequence_task 45@ {sequence} 66@
clear_sequence_task 66@

:DESERT9_5665
do_fade 1000 {direction} Fade.In
if 
  157@ == 0
goto_if_false @DESERT9_5713
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
goto @DESERT9_5720

:DESERT9_5713
86@ = 0

:DESERT9_5720
71@ = 4
clear_prints 
print 'DES9_3' {time} 4000 {flag} 1

:DESERT9_5745
if 
  71@ == 4
goto_if_false @DESERT9_5954
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_5954
switch_widescreen True
set_fixed_camera_position 438.18 {y} 2526.1931 {z} 17.1554 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 437.2076 {y} 2526.3391 {z} 16.9735 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 426.895 {y} 2529.479 {z} 15.6483
if 
  not is_car_dead 35@
goto_if_false @DESERT9_5883
task_enter_car_as_driver $scplayer {vehicle} 35@ {time} -2

:DESERT9_5883
print 'DES9_4' {time} 3000 {flag} 1
if 
  157@ == 0
goto_if_false @DESERT9_5940
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000
goto @DESERT9_5947

:DESERT9_5940
86@ = 0

:DESERT9_5947
71@ = 5

:DESERT9_5954
if 
  71@ == 5
goto_if_false @DESERT9_6209
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_6209
clear_prints 
print 'DES9_44' {time} 4000 {flag} 1
if 
  not is_car_dead 35@
goto_if_false @DESERT9_6054
if 
  not is_char_in_any_car $scplayer
goto_if_false @DESERT9_6054
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} 35@

:DESERT9_6054
56@ = create_object #KB_BARREL {x} 0.0 {y} 0.0 {z} 0.0
set_object_collision 56@ {state} False
set_object_visible 56@ {state} False
if 
  not is_car_dead 34@
goto_if_false @DESERT9_6145
attach_object_to_car 56@ {handle} 34@ {xOffset} 0.0 {yOffset} -15.223 {zOffset} -1.489 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DESERT9_6145
158@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel
if 
  158@ == 0
goto_if_false @DESERT9_6182
give_weapon_to_char $scplayer {weaponType} WeaponType.Satchel {ammo} 1

:DESERT9_6182
set_camera_behind_player 
restore_camera_jumpcut 
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000
71@ = 6

:DESERT9_6209
if 
  71@ == 6
goto_if_false @DESERT9_6282
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_6282
switch_widescreen False
set_player_control $player1 {state} True
clear_prints 
print 'DES9_A4' {time} 4000 {flag} 1
68@ = 2

:DESERT9_6282
return 

:DESERT9_6284
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  73@ > 0
goto_if_false @DESERT9_6407
if 
  not is_car_dead 34@
goto_if_false @DESERT9_6407
74@, 75@, 76@ = get_car_coordinates 34@
remove_blip 152@
152@ = add_blip_for_coord 74@ {y} 75@ {z} 76@
change_blip_display 152@ {display} BlipDisplay.BlipOnly
if 
  -83.0 > 74@
goto_if_false @DESERT9_6407
68@ = 8
71@ = 0

:DESERT9_6407
if 
  not is_car_dead 35@
goto_if_false @DESERT9_6687
148@, 149@, 150@ = get_car_coordinates 35@
154@ = 2499.7
sub_float_lvar_from_float_lvar 154@ -= 149@
154@ = abs_lvar_float 
154@ /= 10.0
if 
  154@ > 2.0
goto_if_false @DESERT9_6501
154@ = 2.0

:DESERT9_6501
if 
  0.2 > 154@
goto_if_false @DESERT9_6532
154@ = 0.2

:DESERT9_6532
set_vehicle_air_resistance_multiplier 35@ {multiplier} 154@
154@ -= 2.0
154@ = abs_lvar_float 
154@ *= 50.0
set_lvar_float_to_lvar_float 159@ = 74@
sub_float_lvar_from_float_lvar 159@ -= 148@
159@ = abs_lvar_float 
set_lvar_float_to_lvar_float 160@ = 159@
160@ /= 100.0
if 
  160@ > 1.0
goto_if_false @DESERT9_6635
160@ = 1.0

:DESERT9_6635
159@ = 1.0
sub_float_lvar_from_float_lvar 159@ -= 160@
mult_float_lvar_by_float_lvar 159@ *= 154@
cset_lvar_int_to_lvar_float 88@ =# 159@
shake_cam 88@
88@ -= 256
abs_lvar_int 88@

:DESERT9_6687
if 
  73@ == 0
goto_if_false @DESERT9_6792
if 
  not is_car_dead 35@
goto_if_false @DESERT9_6792
if 
  not locate_char_any_means_3d $scplayer {x} 412.6561 {y} 2530.908 {z} 15.617 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DESERT9_6792
set_lvar_int_to_lvar_int 72@ = TIMERA
72@ += 8000
73@ = 2

:DESERT9_6792
if 
  73@ == 2
goto_if_false @DESERT9_7010
if or
  is_char_in_any_car $scplayer
  is_int_lvar_greater_than_int_lvar TIMERA > 72@
  locate_char_any_means_3d $scplayer {x} 354.8564 {y} 2500.1521 {z} 18.3701 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @DESERT9_7010
if 
  not is_car_dead 34@
goto_if_false @DESERT9_7010
set_lvar_int_to_lvar_int 72@ = TIMERA
72@ += 1350
73@ = 3
if 
  not is_char_dead 40@
goto_if_false @DESERT9_6934
task_kill_char_on_foot 40@ {target} $scplayer

:DESERT9_6934
if 
  not is_char_dead 41@
goto_if_false @DESERT9_6965
task_toggle_duck 41@ {state} True
task_kill_char_on_foot 41@ {target} $scplayer

:DESERT9_6965
if 
  not is_char_dead 42@
goto_if_false @DESERT9_6989
task_kill_char_on_foot 42@ {target} $scplayer

:DESERT9_6989
if 
  not is_char_dead 45@
goto_if_false @DESERT9_7010
clear_char_tasks_immediately 45@

:DESERT9_7010
if 
  73@ == 3
goto_if_false @DESERT9_7064
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 72@
goto_if_false @DESERT9_7064
set_playback_speed 34@ {speed} 1.0
73@ = 4

:DESERT9_7064
if 
  73@ == 4
goto_if_false @DESERT9_7442
$x, $y, $z = get_object_coordinates 56@
148@, 149@, 150@ = get_char_coordinates $scplayer
146@ = get_distance_between_coords_2d $x {fromY} $y {toX} 148@ {toZ} 149@
162@ = 200.0
div_float_lvar_by_float_lvar 162@ /= 146@
if 
  162@ > 1.0
goto_if_false @DESERT9_7176
162@ = 1.0

:DESERT9_7176
if 
  0.3 > 162@
goto_if_false @DESERT9_7207
162@ = 0.3

:DESERT9_7207
if 
  not is_car_dead 34@
goto_if_false @DESERT9_7231
set_playback_speed 34@ {speed} 162@

:DESERT9_7231
if 
  not locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @DESERT9_7312
if 
  2 > 163@
goto_if_false @DESERT9_7305
gosub @DESERT9_16137
163@ = 1

:DESERT9_7305
goto @DESERT9_7337

:DESERT9_7312
if 
  163@ == 1
goto_if_false @DESERT9_7337
163@ = 2

:DESERT9_7337
if 
  locate_char_any_means_object_3d $scplayer {object} 56@ {xRadius} 4.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @DESERT9_7442
if 
  not is_car_dead 35@
goto_if_false @DESERT9_7442
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @DESERT9_7442
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} True
remove_blip 152@
set_player_control $player1 {state} False
71@ = 20
68@ = 3
set_radio_channel RadioChannel.UserTracks

:DESERT9_7442
return 

:DESERT9_7444
439@ = 1
if 
  is_skip_cutscene_button_pressed 
goto_if_false @DESERT9_7542
if 
  11 > 71@
goto_if_false @DESERT9_7496
86@ = 0
71@ = 11

:DESERT9_7496
if and
  71@ > 19
  23 > 71@
goto_if_false @DESERT9_7542
86@ = 0
71@ = 24
65@ = 1

:DESERT9_7542
if 
  71@ == 20
goto_if_false @DESERT9_7691
if 
  not is_car_dead 34@
goto_if_false @DESERT9_7691
switch_widescreen True
set_player_control $player1 {state} False
if 
  is_playback_going_on_for_car 34@
goto_if_false @DESERT9_7608
stop_playback_recorded_car 34@

:DESERT9_7608
start_playback_recorded_car 34@ {path} 135
if 
  not is_car_dead 35@
goto_if_false @DESERT9_7646
freeze_car_position 35@ {state} True
set_car_visible 35@ {state} False

:DESERT9_7646
set_char_visible $scplayer {state} False
delete_car 36@
delete_car 37@
delete_car 38@
mark_model_as_no_longer_needed 422
request_animation "AIRPORT"
71@ = 21

:DESERT9_7691
if 
  71@ == 21
goto_if_false @DESERT9_7816
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 66.4737 {fromY} 2494.1179 {fromZ} 17.9816 {toX} -43.8545 {toY} 2492.9021 {toZ} 19.8651 {time} 5500 {ease} True
camera_set_vector_track 67.4593 {fromY} 2494.2871 {fromZ} 17.9942 {toX} -44.3218 {toY} 2493.1841 {toZ} 20.7031 {time} 5500 {ease} True
71@ = 22
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4500

:DESERT9_7816
if 
  71@ == 22
goto_if_false @DESERT9_7867
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_7867
do_fade 1000 {direction} Fade.Out
71@ = 23

:DESERT9_7867
if 
  71@ == 23
goto_if_false @DESERT9_7905
if 
  not get_fading_status 
goto_if_false @DESERT9_7905
71@ = 0

:DESERT9_7905
if 
  71@ == 24
goto_if_false @DESERT9_7937
do_fade 1000 {direction} Fade.Out
71@ = 25

:DESERT9_7937
if 
  71@ == 25
goto_if_false @DESERT9_7982
if 
  not get_fading_status 
goto_if_false @DESERT9_7982
71@ = 0
65@ = 1

:DESERT9_7982
if 
  71@ == 0
goto_if_false @DESERT9_8581
if 
  not is_car_dead 35@
goto_if_false @DESERT9_8030
freeze_car_position 35@ {state} False
set_car_visible 35@ {state} True

:DESERT9_8030
set_area_visible 9
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_8057
set_char_area_visible $scplayer {areaId} 9

:DESERT9_8057
delete_char 44@
44@ = create_char PedType.Mission3 {modelId} 165 {x} 316.0887 {y} 983.9927 {z} 1958.1379
set_char_heading 44@ {heading} 90.0
if 
  not is_char_dead 44@
goto_if_false @DESERT9_8120
set_char_area_visible 44@ {areaId} 9

:DESERT9_8120
if 
  not is_char_dead 44@
goto_if_false @DESERT9_8166
set_char_coordinates 44@ {x} 317.081 {y} 979.907 {z} 1960.108
set_char_heading 44@ {heading} 90.0

:DESERT9_8166
if 
  not is_car_dead 35@
goto_if_false @DESERT9_8189
set_vehicle_area_visible 35@ {interiorId} 9

:DESERT9_8189
display_radar False
85@ = create_object #D9_RUNWAY {x} 305.191 {y} 1030.752 {z} 1938.134
request_car_recording 150
request_car_recording 152

:DESERT9_8226
if or
  not has_car_recording_been_loaded 150
  not has_car_recording_been_loaded 152
goto_if_false @DESERT9_8258
wait 0
goto @DESERT9_8226

:DESERT9_8258
if 
  not is_car_dead 35@
goto_if_false @DESERT9_8374
set_car_coordinates 35@ {x} 331.8417 {y} 1038.314 {z} 1956.177
if 
  not is_char_in_any_car $scplayer
goto_if_false @DESERT9_8318
warp_char_into_car $scplayer {vehicle} 35@

:DESERT9_8318
clear_prints 
set_char_area_visible $scplayer {areaId} 9
set_char_visible $scplayer {state} True
start_playback_recorded_car 35@ {path} 150
skip_to_end_and_stop_playback_recorded_car 35@
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT9_8374
warp_char_into_car $scplayer {vehicle} 35@

:DESERT9_8374
load_scene 331.8417 {y} 1038.314 {z} 1956.177
request_collision 331.8417 {y} 1038.314
wait 800
camera_reset_new_scriptables 
set_fixed_camera_position 320.1115 {y} 1035.373 {z} 1948.1541 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 168@ = TIMERA
wait 500
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2200
request_model 371

:DESERT9_8485
if 
  not has_model_loaded 371
goto_if_false @DESERT9_8512
wait 0
goto @DESERT9_8485

:DESERT9_8512
do_fade 600 {direction} Fade.In
print 'DES9_A5' {time} 4000 {flag} 1
if 
  65@ == 1
goto_if_false @DESERT9_8574
71@ = 11
86@ = 0
goto @DESERT9_8581

:DESERT9_8574
71@ = 1

:DESERT9_8581
if and
  71@ > 0
  20 > 71@
goto_if_false @DESERT9_8613
gosub @DESERT9_17051

:DESERT9_8613
if 
  435@ == 0
goto_if_false @DESERT9_8657
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 168@
goto_if_false @DESERT9_8657
435@ = 1

:DESERT9_8657
if 
  does_object_exist 85@
goto_if_false @DESERT9_8697
164@, 165@, 166@ = get_object_coordinates 85@
165@ += 0.05

:DESERT9_8697
if 
  71@ == 1
goto_if_false @DESERT9_8762
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_8762
task_leave_any_car $scplayer
71@ = 2
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 300

:DESERT9_8762
if 
  71@ == 2
goto_if_false @DESERT9_8894
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_8894
if 
  not is_car_dead 34@
goto_if_false @DESERT9_8820
delete_car 34@

:DESERT9_8820
set_fixed_camera_position 317.7203 {y} 1027.301 {z} 1949.071 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 316.9413 {y} 1026.675 {z} 1949.027 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000
71@ = 3

:DESERT9_8894
if 
  71@ == 3
goto_if_false @DESERT9_9043
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9043
delete_object 85@
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 317.7203 {fromY} 1027.301 {fromZ} 1949.071 {toX} 317.7203 {toY} 1027.301 {toZ} 1949.071 {time} 1000 {ease} True
camera_set_vector_track 316.9413 {fromY} 1026.675 {fromZ} 1949.027 {toX} 317.3408 {toY} 1026.377 {toZ} 1949.13 {time} 1000 {ease} True
71@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1500

:DESERT9_9043
if 
  71@ == 4
goto_if_false @DESERT9_9402
set_lvar_int_to_lvar_int 169@ = 86@
sub_int_lvar_from_int_lvar 169@ -= TIMERA
cset_lvar_float_to_lvar_int 170@ =# 169@
170@ /= 2000.0
170@ -= 1.0
170@ = abs_lvar_float 
292@, 312@, 332@ = get_object_coordinates 96@
if 
  312@ > 1020.214
goto_if_false @DESERT9_9294
if 
  not is_car_dead 35@
goto_if_false @DESERT9_9169
start_playback_recorded_car 35@ {path} 152

:DESERT9_9169
task_dive_and_get_up $scplayer {directionX} 1.0 {directionY} 0.0 {timeOnGround} 1000
71@ = 6
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2000
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 317.7203 {fromY} 1027.301 {fromZ} 1949.071 {toX} 317.7203 {toY} 1027.301 {toZ} 1949.071 {time} 2000 {ease} True
camera_set_vector_track 317.3408 {fromY} 1026.377 {fromZ} 1949.13 {toX} 317.1811 {toY} 1027.991 {toZ} 1948.589 {time} 2000 {ease} True

:DESERT9_9294
set_lvar_float_to_lvar_float 148@ = 292@
148@ -= 317.5107
set_lvar_float_to_lvar_float 149@ = 312@
149@ -= 1024.8149
set_lvar_float_to_lvar_float 150@ = 332@
150@ -= 1949.35
mult_float_lvar_by_float_lvar 148@ *= 170@
mult_float_lvar_by_float_lvar 149@ *= 170@
mult_float_lvar_by_float_lvar 150@ *= 170@
148@ += 317.5107
149@ += 1024.8149
150@ += 1949.35

:DESERT9_9402
if 
  71@ == 5
goto_if_false @DESERT9_9434
292@, 312@, 332@ = get_object_coordinates 96@

:DESERT9_9434
if 
  71@ == 6
goto_if_false @DESERT9_9494
292@, 312@, 332@ = get_object_coordinates 96@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9494
71@ = 11
clear_prints 

:DESERT9_9494
if 
  71@ == 7
goto_if_false @DESERT9_9667
camera_reset_new_scriptables 
set_fixed_camera_position 316.0625 {y} 988.6853 {z} 1957.741 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 316.0338 {y} 987.7417 {z} 1958.0699 {switchStyle} SwitchType.JumpCut
71@ = 8
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2000
if 
  not is_char_dead 44@
goto_if_false @DESERT9_9667
set_char_coordinates 44@ {x} 315.7535 {y} 983.4348 {z} 1958.265
set_char_heading 44@ {heading} 0.0
task_play_anim 44@ {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000

:DESERT9_9667
if 
  71@ == 8
goto_if_false @DESERT9_9891
if 
  has_model_loaded 371
goto_if_false @DESERT9_9886
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_9879
clear_prints 
print 'DES9_45' {time} 4000 {flag} 1
set_fixed_camera_position 317.5727 {y} 1024.791 {z} 1949.854 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 317.4102 {y} 1023.809 {z} 1949.95 {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 317.9964 {y} 1023.477 {z} 1949.033
set_char_heading $scplayer {heading} 121.0
if 
  not is_char_dead 44@
goto_if_false @DESERT9_9856
give_weapon_to_char 44@ {weaponType} WeaponType.Parachute {ammo} 1
set_death_weapons_persist 44@ {state} True

:DESERT9_9856
71@ = 9
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000

:DESERT9_9879
goto @DESERT9_9891

:DESERT9_9886
request_model 371

:DESERT9_9891
if 
  71@ == 9
goto_if_false @DESERT9_10153
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_10153
set_fixed_camera_position 318.8293 {y} 975.9706 {z} 1960.759 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 318.3584 {y} 976.8294 {z} 1960.557 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 44@
goto_if_false @DESERT9_10114
set_char_coordinates 44@ {x} 317.4929 {y} 981.1245 {z} 1958.806
set_char_heading 44@ {heading} 90.0

:DESERT9_10025
if 
  not has_animation_loaded "AIRPORT"
goto_if_false @DESERT9_10069
request_animation "AIRPORT"
wait 0
goto @DESERT9_10025

:DESERT9_10069
task_play_anim 44@ {animationName} "THRW_BARL_THRW" {animationFile} "AIRPORT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DESERT9_10114
print 'DES9_46' {time} 4000 {flag} 1
71@ = 10
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1100

:DESERT9_10153
if 
  71@ == 10
goto_if_false @DESERT9_10220
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_10220
435@ = 2
71@ = 11
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 2900

:DESERT9_10220
if 
  71@ == 11
goto_if_false @DESERT9_11096
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_11096
request_model 371

:DESERT9_10262
if 
  not has_model_loaded 371
goto_if_false @DESERT9_10289
wait 0
goto @DESERT9_10262

:DESERT9_10289
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @DESERT9_10339
warp_char_from_car_to_coord $scplayer {x} 318.1163 {y} 1024.791 {z} 1948.729
goto @DESERT9_10359

:DESERT9_10339
set_char_coordinates $scplayer {x} 318.1163 {y} 1024.791 {z} 1948.729

:DESERT9_10359
set_char_heading $scplayer {heading} 121.0
if 
  not is_car_dead 35@
goto_if_false @DESERT9_10416
if 
  is_playback_going_on_for_car 35@
goto_if_false @DESERT9_10406
stop_playback_recorded_car 35@

:DESERT9_10406
delete_car 35@
mark_model_as_no_longer_needed 461

:DESERT9_10416
set_char_heading $scplayer {heading} 225.0
if 
  not is_char_dead 44@
goto_if_false @DESERT9_10462
set_char_coordinates 44@ {x} 317.4565 {y} 980.5405 {z} 1958.9351

:DESERT9_10462
if 
  not is_car_dead 35@
goto_if_false @DESERT9_10499
if 
  is_playback_going_on_for_car 35@
goto_if_false @DESERT9_10499
stop_playback_recorded_car 35@

:DESERT9_10499
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
delete_object 85@
if 
  not is_car_dead 34@
goto_if_false @DESERT9_10540
delete_car 34@

:DESERT9_10540
if 
  is_player_playing $player1
goto_if_false @DESERT9_10563
disable_player_sprint $player1 {state} True

:DESERT9_10563
174@ = create_fx_system "CLOUDFAST" {x} 315.2994 {y} 1028.151 {z} 1936.464 {ignoreBoundingChecks} True
play_fx_system 174@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
40@ = create_char PedType.Mission3 {modelId} 165 {x} 313.4011 {y} 1012.37 {z} 1951.588
41@ = create_char PedType.Mission3 {modelId} 166 {x} 312.5008 {y} 1004.962 {z} 1953.297
42@ = create_char PedType.Mission3 {modelId} 165 {x} 318.7976 {y} 988.7245 {z} 1957.0439
43@ = create_char PedType.Mission3 {modelId} 166 {x} 313.1324 {y} 991.6313 {z} 1956.374
if 
  not is_car_dead 35@
goto_if_false @DESERT9_10751
freeze_car_position 35@ {state} False
set_car_visible 35@ {state} True

:DESERT9_10751
set_char_visible $scplayer {state} True
set_char_shoot_rate 40@ {rate} 100
set_char_shoot_rate 41@ {rate} 100
set_char_shoot_rate 42@ {rate} 100
set_char_shoot_rate 43@ {rate} 100
set_char_weapon_skill 40@ {skill} WeaponSkill.Pro
set_char_weapon_skill 41@ {skill} WeaponSkill.Pro
set_char_weapon_skill 42@ {skill} WeaponSkill.Pro
set_char_weapon_skill 43@ {skill} WeaponSkill.Pro
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
set_char_heading 40@ {heading} 288.4161
set_char_heading 41@ {heading} 298.9878
set_char_heading 42@ {heading} 85.3329
set_char_heading 43@ {heading} 308.2083
if 
  not is_char_dead 40@
goto_if_false @DESERT9_10884
set_char_area_visible 40@ {areaId} 9

:DESERT9_10884
if 
  not is_char_dead 41@
goto_if_false @DESERT9_10907
set_char_area_visible 41@ {areaId} 9

:DESERT9_10907
if 
  not is_char_dead 42@
goto_if_false @DESERT9_10930
set_char_area_visible 42@ {areaId} 9

:DESERT9_10930
if 
  not is_char_dead 43@
goto_if_false @DESERT9_10953
set_char_area_visible 43@ {areaId} 9

:DESERT9_10953
if 
  not is_char_dead 44@
goto_if_false @DESERT9_11030
set_char_coordinates 44@ {x} 317.881 {y} 979.907 {z} 1960.108
if 
  not has_char_got_weapon 44@ {weaponType} WeaponType.Parachute
goto_if_false @DESERT9_11030
give_weapon_to_char 44@ {weaponType} WeaponType.Parachute {ammo} 1
set_death_weapons_persist 44@ {state} True
set_char_shoot_rate 44@ {rate} 100

:DESERT9_11030
68@ = 4
178@ = 0
439@ = 0
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11082
set_char_proofs $scplayer {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False

:DESERT9_11082
171@ = 1
$para_control_off = 1

:DESERT9_11096
return 

:DESERT9_11098
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @DESERT9_11151
if 
  not is_car_dead 35@
goto_if_false @DESERT9_11151
start_recording_car 35@ {_p2} 152

:DESERT9_11151
if 
is_ps2_keyboard_key_pressed 50
goto_if_false @DESERT9_11203
if 
  not is_car_dead 35@
goto_if_false @DESERT9_11203
if 
is_recording_going_on_for_car 35@
goto_if_false @DESERT9_11203
stop_recording_car 35@

:DESERT9_11203
if 
  178@ == 0
goto_if_false @DESERT9_11495
if or
  is_last_building_model_shot_by_player $player1 {modelId} #CARGO_TEST
  is_last_building_model_shot_by_player $player1 {modelId} #CARGO_STUFF
  is_last_building_model_shot_by_player $player1 {modelId} #CARGO_STORE
goto_if_false @DESERT9_11280
clear_last_building_model_shot_by_player $player1
add_explosion 316.0 {y} 1000.0 {z} 1954.6 {type} ExplosionType.Aircraft

:DESERT9_11280
if 
  is_explosion_in_area -1 {leftBottomX} 325.0714 {leftBottomY} 967.935 {leftBottomZ} 1971.838 {rightTopX} 310.7184 {rightTopY} 1047.574 {rightTopZ} 1939.683
goto_if_false @DESERT9_11495
178@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11363
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DESERT9_11363
159@ = 972.5745
88@ = 0

:DESERT9_11380
if 
  1050.574 >= 159@
goto_if_false @DESERT9_11495
set_lvar_float_to_lvar_float 160@ = 159@
160@ -= 5.0
if 
  is_explosion_in_area -1 {leftBottomX} 325.0714 {leftBottomY} 159@ {leftBottomZ} 1971.838 {rightTopX} 310.7184 {rightTopY} 160@ {rightTopZ} 1939.683
goto_if_false @DESERT9_11471
462@(88@,15i) = 1

:DESERT9_11471
88@ += 1
159@ += 5.0
goto @DESERT9_11380

:DESERT9_11495
if 
  178@ == 1
goto_if_false @DESERT9_11520
gosub @DESERT9_19937

:DESERT9_11520
if 
  173@ == 0
goto_if_false @DESERT9_11577
if 
  is_char_dead 44@
goto_if_false @DESERT9_11577
print 'DES9_27' {time} 4000 {flag} 1
173@ = 1

:DESERT9_11577
if 
  173@ == 1
goto_if_false @DESERT9_11702
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @DESERT9_11702
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
clear_prints 
if 
  178@ == 0
goto_if_false @DESERT9_11679
print 'DES9_A1' {time} 4000 {flag} 1
print 'DES9_A2' {time} 4000 {flag} 1
goto @DESERT9_11695

:DESERT9_11679
print 'DES9_26' {time} 4000 {flag} 1

:DESERT9_11695
173@ = 2

:DESERT9_11702
if 
  180@ == 0
goto_if_false @DESERT9_11781
if 
  1942.27 > $player_z
goto_if_false @DESERT9_11781
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11772
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DESERT9_11772
180@ = 1
use_detonator 

:DESERT9_11781
if 
  173@ == 2
goto_if_false @DESERT9_11946
if 
  1940.27 > $player_z
goto_if_false @DESERT9_11946
if 
  178@ == 1
goto_if_false @DESERT9_11894
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_11887
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
kill_fx_system 174@
68@ = 9
71@ = 0
$player_fall_safe = 1

:DESERT9_11887
goto @DESERT9_11946

:DESERT9_11894
clear_prints 
print 'DES9_39' {time} 4000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
gosub @DESERT9_21954
set_area_visible 0
goto @DESERT9_45

:DESERT9_11946
if 
  not is_char_dead 44@
goto_if_false @DESERT9_12166
148@, 149@, 150@ = get_char_coordinates 44@
if and
  1940.0 > 150@
  not is_char_in_air $scplayer
goto_if_false @DESERT9_12166
clear_prints 
print 'DES9_29' {time} 5000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_pickup $para_pickup
wait 1000
do_fade 1000 {direction} Fade.Out

:DESERT9_12053
if 
  get_fading_status 
goto_if_false @DESERT9_12077
wait 0
goto @DESERT9_12053

:DESERT9_12077
set_area_visible 0
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 408.6996 {y} 2538.272 {z} 15.6057
set_char_heading $scplayer {heading} 139.0
gosub @DESERT9_21954
wait 1500
do_fade 1000 {direction} Fade.In

:DESERT9_12135
if 
  get_fading_status 
goto_if_false @DESERT9_12159
wait 0
goto @DESERT9_12135

:DESERT9_12159
goto @DESERT9_45

:DESERT9_12166
if and
  1938.0 > $player_z
  not is_char_dead $scplayer
goto_if_false @DESERT9_12896
clear_prints 
if 
  2 > 173@
goto_if_false @DESERT9_12896
do_fade 1000 {direction} Fade.Out

:DESERT9_12219
if 
  get_fading_status 
goto_if_false @DESERT9_12243
wait 0
goto @DESERT9_12219

:DESERT9_12243
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene 125.1739 {y} 1074.067 {z} 12.0
request_model 445
request_model 91
request_animation "PARACHUTE"

:DESERT9_12293
if or
  not has_model_loaded 445
  not has_model_loaded 91
  not has_animation_loaded "PARACHUTE"
goto_if_false @DESERT9_12337
wait 0
goto @DESERT9_12293

:DESERT9_12337
set_fixed_camera_position 125.1739 {y} 1074.067 {z} 12.8138 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 124.591 {y} 1073.27 {z} 12.9688 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 122.3556 {y} 1069.892 {z} 99.6832
181@ = create_car 445 {x} 119.3556 {y} 1069.892 {z} 13.665
182@ = create_char_as_passenger 181@ {pedType} PedType.CivMale {modelId} 91 {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 364
set_car_heading 181@ {heading} 180.0
set_char_coordinates $scplayer {x} 119.3 {y} 1070.47 {z} 189.3266
set_char_velocity $scplayer {x} 0.0 {y} 0.0 {z} 0.0
do_fade 1000 {direction} Fade.In

:DESERT9_12537
if 
  get_fading_status 
goto_if_false @DESERT9_12561
wait 0
goto @DESERT9_12537

:DESERT9_12561
set_char_coordinates $scplayer {x} 119.3 {y} 1070.47 {z} 80.3266
set_char_velocity $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:DESERT9_12601
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_12883
184@ = get_char_height_above_ground $scplayer
if and
  4.8 > 184@
  183@ == 0
goto_if_false @DESERT9_12872
183@ = 1
task_die_named_anim $scplayer {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
if 
  not is_car_dead 181@
goto_if_false @DESERT9_12872
pop_car_door 181@ {door} CarDoor.LeftFrontDoor {visibility} True
pop_car_door 181@ {door} CarDoor.LeftRearDoor {visibility} True
pop_car_door 181@ {door} CarDoor.RightFrontDoor {visibility} True
burst_car_tyre 181@ {tireId} WheelId.FrontLeft
burst_car_tyre 181@ {tireId} WheelId.FrontRight
burst_car_tyre 181@ {tireId} WheelId.RearLeft
damage_car_panel 181@ {panelId} 4
damage_car_panel 181@ {panelId} 0
damage_car_panel 181@ {panelId} 6
damage_car_panel 181@ {panelId} 6
apply_force_to_car 181@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.15 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  not is_char_dead 182@
goto_if_false @DESERT9_12872
clear_char_tasks 182@
task_leave_car_and_flee 182@ {vehicle} 181@ {x} 119.3556 {y} 1069.892 {z} 13.665

:DESERT9_12872
wait 0
goto @DESERT9_12601

:DESERT9_12883
remove_animation "PARACHUTE"

:DESERT9_12896
if 
  $player_y > 1033.0
goto_if_false @DESERT9_12928
shake_cam 40
goto @DESERT9_12932

:DESERT9_12928
shake_cam 10

:DESERT9_12932
gosub @DESERT9_17051
return 

:DESERT9_12941
switch_widescreen True
$para_control_off = 1

:DESERT9_12952
if 
  185@ == 0
goto_if_false @DESERT9_13101
set_area_visible 0
if 
  not is_car_dead 34@
goto_if_false @DESERT9_12995
delete_car 34@

:DESERT9_12995
34@ = create_car 592 {x} 316.212 {y} 1003.495 {z} 1957.5291
start_playback_recorded_car 34@ {path} 134
set_car_heading 34@ {heading} 180.0
attach_camera_to_char $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} -2.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 4000
185@ = 1

:DESERT9_13101
if 
  185@ == 1
goto_if_false @DESERT9_13155
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13155
$para_control_off = 0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
return 

:DESERT9_13155
wait 0
goto @DESERT9_12952
return 

:DESERT9_13168
set_area_visible 0

:DESERT9_13172
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DESERT9_13198
goto @DESERT9_21869

:DESERT9_13198
if 
is_ps2_keyboard_key_pressed 84
goto_if_false @DESERT9_13213

:DESERT9_13213
goto @DESERT9_13172
return 

:DESERT9_13222
if 
  71@ == 0
goto_if_false @DESERT9_13304
186@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
start_playback_recorded_car 186@ {path} 134
set_playback_speed 186@ {speed} 1.0
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000
71@ = 1

:DESERT9_13304
if 
  71@ == 1
goto_if_false @DESERT9_13528
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13528
clear_prints 
print 'DES9_42' {time} 5000 {flag} 1
set_char_visible $scplayer {state} False
set_area_visible 0
34@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
start_playback_recorded_car 34@ {path} 134
set_car_health 34@ {health} 350
if 
  not is_car_dead 186@
goto_if_false @DESERT9_13487
set_playback_speed 186@ {speed} 0.5
attach_camera_to_vehicle_look_at_vehicle 186@ {xOffset} 15.0 {yOffset} 15.0 {zOffset} 10.0 {vehicle} 34@ {tilt} 15.0 {switchStyle} SwitchType.JumpCut
set_car_visible 186@ {state} False

:DESERT9_13487
switch_widescreen True
set_player_control $player1 {state} False
203@ = 1
71@ = 3
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5000

:DESERT9_13528
if 
  203@ == 1
goto_if_false @DESERT9_13671
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 204@
goto_if_false @DESERT9_13671
if 
  not is_car_dead 34@
goto_if_false @DESERT9_13671
$x, $y, $z = get_car_coordinates 34@
if 
  6 > 206@
goto_if_false @DESERT9_13633
add_explosion $x {y} $y {z} $z {type} ExplosionType.Aircraft
goto @DESERT9_13646

:DESERT9_13633
add_explosion_no_sound $x {y} $y {z} $z {type} ExplosionType.Aircraft

:DESERT9_13646
206@ += 1
204@ = generate_random_int_in_range 100 {max} 250
add_int_lvar_to_int_lvar 204@ += TIMERA

:DESERT9_13671
if 
  71@ == 3
goto_if_false @DESERT9_13738
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_13738
71@ = 4
do_fade 1000 {direction} Fade.Out
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 1000

:DESERT9_13738
if 
  71@ == 4
goto_if_false @DESERT9_13782
if 
  not get_fading_status 
goto_if_false @DESERT9_13782
force_death_restart 
set_camera_behind_player 
restore_camera_jumpcut 
goto @DESERT9_18

:DESERT9_13782
return 

:DESERT9_13784
if 
  71@ == 0
goto_if_false @DESERT9_14198
if 
  not is_car_dead 34@
goto_if_false @DESERT9_14198
set_fixed_camera_position -158.5012 {y} 2492.1609 {z} 31.0353 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -157.5606 {y} 2492.4451 {z} 31.2209 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
set_playback_speed 34@ {speed} 1.0
if 
  not is_car_dead 36@
goto_if_false @DESERT9_13930
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @DESERT9_13930
delete_car 36@

:DESERT9_13930
if 
  not is_car_dead 186@
goto_if_false @DESERT9_13951
delete_car 186@

:DESERT9_13951
if 
  not is_car_dead 37@
goto_if_false @DESERT9_13991
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @DESERT9_13991
delete_car 37@

:DESERT9_13991
if 
  not is_car_dead 38@
goto_if_false @DESERT9_14031
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @DESERT9_14031
delete_car 38@

:DESERT9_14031
414@ = 0

:DESERT9_14038
if 
  8 > 414@
goto_if_false @DESERT9_14079
delete_char 40@(414@,8i)
414@ += 1
goto @DESERT9_14038

:DESERT9_14079
414@ = 0

:DESERT9_14086
if 
  15 > 414@
goto_if_false @DESERT9_14127
delete_object 225@(414@,15i)
414@ += 1
goto @DESERT9_14086

:DESERT9_14127
414@ = 0

:DESERT9_14134
if 
  5 > 414@
goto_if_false @DESERT9_14175
delete_object 49@(414@,6i)
414@ += 1
goto @DESERT9_14134

:DESERT9_14175
71@ = 1
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3000

:DESERT9_14198
if 
  71@ == 1
goto_if_false @DESERT9_14289
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_14289
print 'DES9_32' {time} 4000 {flag} 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
goto @DESERT9_18

:DESERT9_14289
return 

:DESERT9_14291
set_var_int_to_lvar_int $cut_timerr = TIMERA
sub_int_var_from_int_var $cut_timerr -= $start_timerr
if 
  71@ == 0
goto_if_false @DESERT9_14671
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_14356
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:DESERT9_14356
set_var_int_to_lvar_int $start_timerr = TIMERA
set_var_int_to_lvar_int $cut_timerr = TIMERA
sub_int_var_from_int_var $cut_timerr -= $start_timerr
$x, $y, $z = get_char_velocity $scplayer
186@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
start_playback_recorded_car 186@ {path} 134
set_playback_speed 186@ {speed} 0.5
set_char_coordinates $scplayer {x} 177.9967 {y} 1099.621 {z} 1977.491
set_char_heading $scplayer {heading} 180.0
set_char_velocity $scplayer {x} $x {y} -30.0 {z} $z
set_car_visible 186@ {state} True
control_movable_vehicle_part 186@ {range} 1.0
set_area_visible 0
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
switch_widescreen True
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 5300
197@ = 175.5399
198@ = 1097.84
199@ = 1978.912
200@ = 185.4931
201@ = 1028.03
202@ = 1763.16
190@ = 175.0676
191@ = 1097.025
192@ = 1979.246
193@ = 185.4931
194@ = 1028.03
195@ = 1763.16
71@ = 999
203@ = 1

:DESERT9_14671
if 
  203@ == 1
goto_if_false @DESERT9_14814
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 204@
goto_if_false @DESERT9_14814
if 
  not is_car_dead 186@
goto_if_false @DESERT9_14814
$x, $y, $z = get_car_coordinates 186@
if 
  6 > 206@
goto_if_false @DESERT9_14776
add_explosion $x {y} $y {z} $z {type} ExplosionType.Aircraft
goto @DESERT9_14789

:DESERT9_14776
add_explosion_no_sound $x {y} $y {z} $z {type} ExplosionType.Aircraft

:DESERT9_14789
206@ += 1
204@ = generate_random_int_in_range 100 {max} 250
add_int_lvar_to_int_lvar 204@ += TIMERA

:DESERT9_14814
if 
  69@ <> 1
goto_if_false @DESERT9_14883
if 
  205@ == 0
goto_if_false @DESERT9_14883
if 
  $cut_timerr > 4070
goto_if_false @DESERT9_14883
gosub @DESERT9_21869
205@ = 1

:DESERT9_14883
if 
  $cut_timerr > 8070
goto_if_false @DESERT9_14924
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
goto @DESERT9_18

:DESERT9_14924
if 
  71@ == 999
goto_if_false @DESERT9_15196
set_char_heading $scplayer {heading} 180.0
cset_lvar_float_to_var_int 196@ =# $cut_timerr
196@ /= 8070.0
$x, $y, $z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 187@ = $x
set_lvar_float_to_lvar_float 189@ = 196@
189@ *= 7.5
add_float_var_to_float_lvar 189@ += $z
189@ -= 2.5
set_lvar_float_to_var_float 188@ = $y
188@ -= 5.0
set_fixed_camera_position 187@ {y} 188@ {z} 189@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_lvar_float_to_lvar_float 187@ = 200@
sub_float_lvar_from_float_lvar 187@ -= 197@
set_lvar_float_to_lvar_float 188@ = 201@
sub_float_lvar_from_float_lvar 188@ -= 198@
set_lvar_float_to_lvar_float 189@ = 202@
sub_float_lvar_from_float_lvar 189@ -= 199@
cset_lvar_float_to_var_int 196@ =# $cut_timerr
196@ /= 8070.0
mult_float_lvar_by_float_lvar 187@ *= 196@
mult_float_lvar_by_float_lvar 188@ *= 196@
mult_float_lvar_by_float_lvar 189@ *= 196@
add_float_lvar_to_float_lvar 187@ += 197@
add_float_lvar_to_float_lvar 188@ += 198@
add_float_lvar_to_float_lvar 189@ += 199@
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:DESERT9_15196
if 
  71@ == 40
goto_if_false @DESERT9_15229
set_lvar_int_to_lvar_int 88@ = TIMERA
71@ = 41

:DESERT9_15229
if 
  69@ <> 1
goto_if_false @DESERT9_15336
if 
  71@ == 41
goto_if_false @DESERT9_15336
set_var_int_to_lvar_int $d9_counting = TIMERA
sub_int_lvar_from_int_var $d9_counting -= 88@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15336
71@ = 42
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
gosub @DESERT9_21869
goto @DESERT9_18

:DESERT9_15336
if 
  71@ == 1
goto_if_false @DESERT9_15571
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15571
clear_prints 
print 'DES9_42' {time} 5000 {flag} 1
set_char_visible $scplayer {state} False
set_area_visible 0
34@ = create_car 592 {x} 339.9034 {y} 2499.8049 {z} 15.4884
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
start_playback_recorded_car 34@ {path} 134
set_car_health 34@ {health} 350
if 
  not is_car_dead 186@
goto_if_false @DESERT9_15519
set_playback_speed 186@ {speed} 0.5
attach_camera_to_vehicle_look_at_vehicle 186@ {xOffset} 15.0 {yOffset} 15.0 {zOffset} 10.0 {vehicle} 34@ {tilt} 15.0 {switchStyle} SwitchType.JumpCut
set_car_visible 186@ {state} False

:DESERT9_15519
switch_widescreen True
set_player_control $player1 {state} False
add_explosion 179.0872 {y} 1127.109 {z} 1959.8051 {type} ExplosionType.Aircraft
71@ = 10
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80

:DESERT9_15571
if 
  71@ == 10
goto_if_false @DESERT9_15630
add_explosion 178.0018 {y} 1120.319 {z} 1963.485 {type} ExplosionType.Aircraft
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80
71@ = 11

:DESERT9_15630
if 
  71@ == 11
goto_if_false @DESERT9_15689
add_explosion 177.9817 {y} 1114.131 {z} 1967.356 {type} ExplosionType.Aircraft
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 80
71@ = 12

:DESERT9_15689
if 
  71@ == 12
goto_if_false @DESERT9_15749
add_explosion 179.386 {y} 1109.9189 {z} 1972.504 {type} ExplosionType.Aircraft
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 3760
71@ = 3

:DESERT9_15749
if 
  71@ == 2
goto_if_false @DESERT9_15767

:DESERT9_15767
if 
  71@ == 3
goto_if_false @DESERT9_15827
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15827
71@ = 4
set_lvar_int_to_lvar_int 86@ = TIMERA
86@ += 6000

:DESERT9_15827
if 
  71@ == 4
goto_if_false @DESERT9_15873
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 86@
goto_if_false @DESERT9_15873
force_death_restart 
goto @DESERT9_18

:DESERT9_15873
return 
set_fixed_camera_position -189.0987 {y} 2493.957 {z} 66.7341 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -188.1982 {y} 2494.105 {z} 66.3252 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 34@
goto_if_false @DESERT9_15953

:DESERT9_15953
set_lvar_int_to_lvar_int 57@ = TIMERA
57@ += 4000

:DESERT9_15969
wait 0
if 
  58@ == 0
goto_if_false @DESERT9_16040
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 57@
goto_if_false @DESERT9_16040
do_fade 1000 {direction} Fade.Out
set_lvar_int_to_lvar_int 57@ = TIMERA
57@ += 1000
58@ = 1

:DESERT9_16040
if 
  58@ == 1
goto_if_false @DESERT9_16128
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 57@
goto_if_false @DESERT9_16128
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 0 {direction} Fade.In
print 'DES9_32' {time} 5000 {flag} 1
gosub @DESERT9_21846
goto @DESERT9_18

:DESERT9_16128
goto @DESERT9_15969
return 

:DESERT9_16137
if 
  207@ == 0
goto_if_false @DESERT9_16523
208@ = 2000
209@ = 2300
210@ = 2600
211@ = 4000
212@ = 4300
213@ = 4600
214@ = 6000
215@ = 6300
216@ = 6600
217@ = 8000
218@ = 8300
219@ = 8600
220@ = 10000
221@ = 10300
222@ = 10600
240@ = 1
241@ = 1
242@ = 1
243@ = 1
244@ = 1
245@ = 1
246@ = 1
247@ = 1
248@ = 0
249@ = 1
250@ = 1
251@ = 1
252@ = 1
253@ = 1
254@ = 1
255@ = 0

:DESERT9_16387
if 
  15 > 255@
goto_if_false @DESERT9_16516
223@ = generate_random_int_in_range -500 {max} 500
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
add_int_lvar_to_int_lvar 208@(255@,15i) += TIMERA
add_int_lvar_to_int_lvar 208@(255@,15i) += 223@
255@ += 1
goto @DESERT9_16387

:DESERT9_16516
207@ = 1

:DESERT9_16523
if 
  207@ == 1
goto_if_false @DESERT9_17049
if 
  15 > 224@
goto_if_false @DESERT9_17049
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 208@(224@,15i)
goto_if_false @DESERT9_17049
277@ = 0

:DESERT9_16589
if 
  15 > 277@
goto_if_false @DESERT9_16707
if 
  does_object_exist 225@(277@,15i)
goto_if_false @DESERT9_16693
if 
  not is_object_on_screen 225@(277@,15i)
goto_if_false @DESERT9_16693
$x, $y, $z = get_object_coordinates 225@(277@,15i)
if 
  is_float_var_greater_than_float_var $x > $player_x
goto_if_false @DESERT9_16693
delete_object 225@(277@,15i)

:DESERT9_16693
277@ += 1
goto @DESERT9_16589

:DESERT9_16707
if 
  not is_car_dead 34@
goto_if_false @DESERT9_16731
259@ = get_car_speed 34@

:DESERT9_16731
set_lvar_float_to_lvar_float 257@ = 74@
257@ += 18.538
258@ = 15.61
set_lvar_float_to_lvar_float 260@ = 259@
260@ -= 18.0
260@ *= -1.0
if 
  240@(224@,15i) == 1
goto_if_false @DESERT9_16965
261@ = generate_random_float_in_range -10.0 {max} 10.0
create_object #KB_BARREL {x} 257@ {y} 75@ {z} 258@ {var_handle} 225@(224@,15i)
set_object_heading 225@(224@,15i) {heading} 90.0
set_object_dynamic 225@(224@,15i) {state} False
set_object_dynamic 225@(224@,15i) {state} True
set_object_velocity 225@(224@,15i) {xSpeed} 260@ {ySpeed} 261@ {zSpeed} 0.0
set_object_rotation 225@(224@,15i) {x} 0.0 {y} 0.0 {z} 0.0
set_lvar_float_to_lvar_float 151@ = 260@
151@ *= 2.0
add_to_object_rotation_velocity 225@(224@,15i) {x} 0.0 {y} 151@ {z} 0.0

:DESERT9_16965
if 
  240@(224@,15i) == 2
goto_if_false @DESERT9_17042
256@ = create_car 422 {x} 257@ {y} 75@ {z} 258@
set_car_heading 256@ {heading} 270.0
set_car_forward_speed 256@ {forwardSpeed} 260@
set_car_rotation_velocity 256@ {x} 0.0 {y} 23.0 {z} 0.0

:DESERT9_17042
224@ += 1

:DESERT9_17049
return 

:DESERT9_17051
if 
  111@ == 0
goto_if_false @DESERT9_17517
111@ = 1
set_lvar_int_to_lvar_int 112@ = TIMERA
112@ += 1000
278@ = 316.465
282@ = 981.694
286@ = 1958.96
279@ = 315.248
283@ = 981.694
287@ = 1958.96
280@ = 316.465
284@ = 981.909
288@ = 1959.92
281@ = 315.248
285@ = 981.909
289@ = 1959.92
290@ = -0.996
291@ = 0.232
352@ = 3
353@ = 4
354@ = 4
355@ = 5
356@ = 6
357@ = 1
358@ = 3
359@ = 3
360@ = 4
361@ = 5
362@ = 2
363@ = 2
364@ = 6
365@ = 6
366@ = 7
367@ = 6
368@ = 6
369@ = 7
370@ = 7
371@ = 8
372@ = 0
373@ = 0
374@ = 300
375@ = 0
376@ = 0
377@ = 0
378@ = 0
379@ = 0
380@ = 0
381@ = 0
382@ = 0
383@ = 0
384@ = 300
385@ = 0
386@ = 300
387@ = 0
388@ = 300
389@ = 0
390@ = 300
391@ = 0

:DESERT9_17517
if 
  111@ == 1
goto_if_false @DESERT9_17837
393@ = 0
392@ = 0

:DESERT9_17549
if 
  4 > 392@
goto_if_false @DESERT9_17830
440@ = 0.0

:DESERT9_17577
if 
  5.0 > 440@
goto_if_false @DESERT9_17816
set_lvar_float_to_lvar_float 292@(393@,20f) = 278@(392@,4f)
set_lvar_float_to_lvar_float 312@(393@,20f) = 440@
mult_float_lvar_by_float_lvar 312@(393@,20f) *= 290@
add_float_lvar_to_float_lvar 312@(393@,20f) += 282@(392@,4f)
set_lvar_float_to_lvar_float 332@(393@,20f) = 440@
mult_float_lvar_by_float_lvar 332@(393@,20f) *= 291@
add_float_lvar_to_float_lvar 332@(393@,20f) += 286@(392@,4f)
create_object #KB_BARREL {x} 292@(393@,20f) {y} 312@(393@,20f) {z} 332@(393@,20f) {var_handle} 91@(393@,20i)
set_lvar_int_to_lvar_int 114@ = TIMERA
set_object_rotation 91@(393@,20i) {x} 0.0 {y} 13.0 {z} 90.0
set_object_dynamic 91@(393@,20i) {state} False
set_object_dynamic 91@(393@,20i) {state} True
freeze_object_position 91@(393@,20i) {state} True
393@ += 1
440@ += 1.0
goto @DESERT9_17577

:DESERT9_17816
392@ += 1
goto @DESERT9_17549

:DESERT9_17830
111@ = 2

:DESERT9_17837
if 
  111@ == 2
goto_if_false @DESERT9_19935
414@ = 0
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  439@ == 0
goto_if_false @DESERT9_17947
if 
  990.0 >= $player_y
goto_if_false @DESERT9_17947
439@ = 1
if 
  not is_char_dead 44@
goto_if_false @DESERT9_17947
set_char_relationship 44@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:DESERT9_17947
if 
  60@ == 0
goto_if_false @DESERT9_18018
if 
  1021.0 > $player_y
goto_if_false @DESERT9_18018
if 
  not is_char_dead 40@
goto_if_false @DESERT9_18018
set_char_relationship 40@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
60@ = 1

:DESERT9_18018
if 
  61@ == 0
goto_if_false @DESERT9_18089
if 
  1011.0 > $player_y
goto_if_false @DESERT9_18089
if 
  not is_char_dead 41@
goto_if_false @DESERT9_18089
set_char_relationship 41@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
61@ = 1

:DESERT9_18089
if 
  62@ == 0
goto_if_false @DESERT9_18160
if 
  1000.0 > $player_y
goto_if_false @DESERT9_18160
if 
  not is_char_dead 42@
goto_if_false @DESERT9_18160
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
62@ = 1

:DESERT9_18160
if 
  63@ == 0
goto_if_false @DESERT9_18231
if 
  1000.0 > $player_y
goto_if_false @DESERT9_18231
if 
  not is_char_dead 43@
goto_if_false @DESERT9_18231
set_char_relationship 43@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
63@ = 1

:DESERT9_18231
if 
  439@ == 0
goto_if_false @DESERT9_18429
if or
  1021.0 > $player_y
  435@ == 1
goto_if_false @DESERT9_18429
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 436@
goto_if_false @DESERT9_18429
set_lvar_int_to_lvar_int 436@ = TIMERA
436@ += 6500
set_lvar_int_to_lvar_int 437@ = TIMERA
435@ += 1
if 
  not is_char_dead 44@
goto_if_false @DESERT9_18429
if 
  has_animation_loaded "AIRPORT"
goto_if_false @DESERT9_18418
task_play_anim 44@ {animationName} "THRW_BARL_THRW" {animationFile} "AIRPORT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 3000
goto @DESERT9_18429

:DESERT9_18418
request_animation "AIRPORT"

:DESERT9_18429
if 
  20 > 414@
goto_if_false @DESERT9_19935
if 
  is_int_lvar_greater_or_equal_to_int_lvar 435@ >= 352@(414@,20i)
goto_if_false @DESERT9_19921
if 
  415@(414@,20i) == 0
goto_if_false @DESERT9_18591
set_lvar_int_to_lvar_int 438@ = 437@
add_int_lvar_to_int_lvar 438@ += 372@(414@,20i)
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 438@
goto_if_false @DESERT9_18591
415@(414@,20i) = 1
if 
  414@ == 5
goto_if_false @DESERT9_18591
set_object_coordinates 96@ {x} 315.1264 {y} 986.6496 {z} 1957.926
415@(414@,20i) = 6

:DESERT9_18591
if 
  415@(414@,20i) == 1
goto_if_false @DESERT9_18671
if 
  10 > 414@
goto_if_false @DESERT9_18649
415@(414@,20i) = 2
goto @DESERT9_18660

:DESERT9_18649
415@(414@,20i) = 3

:DESERT9_18660
set_object_collision 91@(414@,20i) {state} False

:DESERT9_18671
if 
  415@(414@,20i) == 2
goto_if_false @DESERT9_18758
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 981.691 {posZ} 1959.418 {speedX} 0.0 {speedY} 0.183 {speedZ} 0.0412 {collisionCheck} False
goto_if_false @DESERT9_18758
415@(414@,20i) = 4

:DESERT9_18758
if 
  415@(414@,20i) == 3
goto_if_false @DESERT9_18845
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 981.909 {posZ} 1960.339 {speedX} 0.0 {speedY} 0.183 {speedZ} 0.0412 {collisionCheck} False
goto_if_false @DESERT9_18845
415@(414@,20i) = 5

:DESERT9_18845
if 
  415@(414@,20i) == 4
goto_if_false @DESERT9_18932
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 984.242 {posZ} 1958.532 {speedX} 0.0 {speedY} 0.287 {speedZ} 0.1 {collisionCheck} False
goto_if_false @DESERT9_18932
415@(414@,20i) = 5

:DESERT9_18932
if 
  415@(414@,20i) == 5
goto_if_false @DESERT9_19019
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 984.242 {posZ} 1958.532 {speedX} 0.0 {speedY} 0.21 {speedZ} 0.162 {collisionCheck} False
goto_if_false @DESERT9_19019
415@(414@,20i) = 6

:DESERT9_19019
if 
  415@(414@,20i) == 6
goto_if_false @DESERT9_19106
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 1027.9611 {posZ} 1948.424 {speedX} 0.0 {speedY} 0.244 {speedZ} 0.0564 {collisionCheck} False
goto_if_false @DESERT9_19106
415@(414@,20i) = 7

:DESERT9_19106
if 
  415@(414@,20i) == 7
goto_if_false @DESERT9_19193
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 1039.494 {posZ} 1942.693 {speedX} 0.0 {speedY} 0.432 {speedZ} 0.2145 {collisionCheck} False
goto_if_false @DESERT9_19193
415@(414@,20i) = 8

:DESERT9_19193
if 
  415@(414@,20i) == 8
goto_if_false @DESERT9_19280
if 
  slide_object 91@(414@,20i) {posX} 292@(414@,20f) {posY} 1086.9091 {posZ} 1908.631 {speedX} 0.0 {speedY} 0.882 {speedZ} 0.6645 {collisionCheck} False
goto_if_false @DESERT9_19280
415@(414@,20i) = 9

:DESERT9_19280
if 
  415@(414@,20i) == 9
goto_if_false @DESERT9_19324
set_object_visible 91@(414@,20i) {state} False
415@(414@,20i) = 10

:DESERT9_19324
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 113@
goto_if_false @DESERT9_19558
if and
  2 <= 415@(414@,20i)
  415@(414@,20i) < 8
goto_if_false @DESERT9_19558
get_object_coordinates 91@(414@,20i) {var_x} 292@(414@,20f) {var_y} 144@ {var_z} 145@
set_lvar_float_to_var_float 148@ = $player_x
sub_float_lvar_from_float_lvar 148@ -= 292@(414@,20f)
set_lvar_float_to_var_float 149@ = $player_y
sub_float_lvar_from_float_lvar 149@ -= 144@
set_lvar_float_to_var_float 150@ = $player_z
sub_float_lvar_from_float_lvar 150@ -= 145@
148@ = abs_lvar_float 
if 
  0.6 > 148@
goto_if_false @DESERT9_19558
if and
  0.5 > 149@
  149@ > 0.0
goto_if_false @DESERT9_19558
if 
  0.6 > 150@
goto_if_false @DESERT9_19558
clear_char_tasks_immediately $scplayer
task_fall_and_get_up $scplayer {fallDown} False {timeOnGround} 0
set_lvar_int_to_lvar_int 113@ = TIMERA
113@ += 1500

:DESERT9_19558
444@ = 0

:DESERT9_19565
if 
  4 > 444@
goto_if_false @DESERT9_19842
if 
  not is_char_dead 40@(444@,8i)
goto_if_false @DESERT9_19828
if and
  2 <= 415@(414@,20i)
  415@(414@,20i) < 8
goto_if_false @DESERT9_19828
441@, 442@, 443@ = get_char_coordinates 40@(444@,8i)
get_object_coordinates 91@(414@,20i) {var_x} 292@(414@,20f) {var_y} 144@ {var_z} 145@
set_lvar_float_to_lvar_float 148@ = 441@
sub_float_lvar_from_float_lvar 148@ -= 292@(414@,20f)
set_lvar_float_to_lvar_float 149@ = 442@
sub_float_lvar_from_float_lvar 149@ -= 144@
set_lvar_float_to_lvar_float 150@ = 443@
sub_float_lvar_from_float_lvar 150@ -= 145@
148@ = abs_lvar_float 
if 
  0.6 > 148@
goto_if_false @DESERT9_19828
if and
  0.5 > 149@
  149@ > 0.0
goto_if_false @DESERT9_19828
if 
  0.6 > 150@
goto_if_false @DESERT9_19828
clear_char_tasks_immediately 40@(444@,8i)
task_fall_and_get_up 40@(444@,8i) {fallDown} False {timeOnGround} 0

:DESERT9_19828
444@ += 1
goto @DESERT9_19565

:DESERT9_19842
116@(414@,20f) += 20.0
set_object_rotation 91@(414@,20i) {x} 0.0 {y} 116@(414@,20f) {z} 90.0
if 
  116@(414@,20f) == 360.0
goto_if_false @DESERT9_19921
116@(414@,20f) = 0.0

:DESERT9_19921
414@ += 1
goto @DESERT9_18429

:DESERT9_19935
return 

:DESERT9_19937
88@ = 0

:DESERT9_19944
if 
  15 > 88@
goto_if_false @DESERT9_20401
if 
  462@(88@,15i) == 1
goto_if_false @DESERT9_20018
set_lvar_int_to_lvar_int 447@(88@,15i) = TIMERA
447@(88@,15i) += 120
462@(88@,15i) = 2

:DESERT9_20018
if 
  462@(88@,15i) == 2
goto_if_false @DESERT9_20387
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 447@(88@,15i)
goto_if_false @DESERT9_20387
462@(88@,15i) = 3
set_lvar_int_to_lvar_int 89@ = 88@
89@ -= 1
set_lvar_int_to_lvar_int 90@ = 88@
90@ += 1
if 
  0 > 89@
goto_if_false @DESERT9_20129
89@ = 0

:DESERT9_20129
if 
  90@ > 14
goto_if_false @DESERT9_20154
90@ = 14

:DESERT9_20154
if 
  462@(89@,15i) == 0
goto_if_false @DESERT9_20187
462@(89@,15i) = 1

:DESERT9_20187
if 
  462@(90@,15i) == 0
goto_if_false @DESERT9_20220
462@(90@,15i) = 1

:DESERT9_20220
cset_lvar_float_to_lvar_int 161@ =# 88@
160@ = 5.0
mult_float_lvar_by_float_lvar 160@ *= 161@
159@ = 967.5745
add_float_lvar_to_float_lvar 159@ += 160@
set_lvar_float_to_lvar_float 160@ = 159@
160@ += 5.0
if and
  is_float_lvar_greater_than_float_var 160@ > $player_y
  is_float_var_greater_than_float_lvar $player_y > 159@
goto_if_false @DESERT9_20334
if 
  $player_fall_state == 0
goto_if_false @DESERT9_20334
69@ = 1

:DESERT9_20334
159@ += 2.25
set_lvar_float_to_lvar_float 160@ = 161@
160@ *= -1.19
160@ += 1962.38
add_explosion 315.8258 {y} 159@ {z} 160@ {type} ExplosionType.Aircraft

:DESERT9_20387
88@ += 1
goto @DESERT9_19944

:DESERT9_20401
if 
  69@ == 1
goto_if_false @DESERT9_20460
task_fall_and_get_up $scplayer {fallDown} False {timeOnGround} 0
68@ = 7
71@ = 0
clear_prints 
print 'DES9_42' {time} 4000 {flag} 1

:DESERT9_20460
return 

:DESERT9_20462
if 
  477@ <> 0
goto_if_false @DESERT9_20662
if 
  478@ == 0
goto_if_false @DESERT9_20540
478@ = 1
set_lvar_int_to_lvar_int 479@ = TIMERA
480@ = 0
set_lvar_int_to_lvar_int 682@ = 479@
add_int_lvar_to_int_lvar 682@ += 481@(480@,10i)

:DESERT9_20540
if 
  478@ == 1
goto_if_false @DESERT9_20662
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 682@
goto_if_false @DESERT9_20662
set_lvar_int_to_lvar_int 626@ = 491@(480@,10i)
480@ += 1
501@ -= 1
if 
  501@ == 0
goto_if_false @DESERT9_20642
477@ = 0
478@ = 0
goto @DESERT9_20662

:DESERT9_20642
set_lvar_int_to_lvar_int 682@ = 479@
add_int_lvar_to_int_lvar 682@ += 481@(480@,10i)

:DESERT9_20662
switch_start 629@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DESERT9_21691 {caseNum1} 0 {caseLabel1} @DESERT9_20725 {caseNum2} 1 {caseLabel2} @DESERT9_20833 {caseNum3} 2 {caseLabel3} @DESERT9_21362 {caseNum4} 3 {caseLabel4} @DESERT9_21438 {caseNum5} 4 {caseLabel5} @DESERT9_21496 {caseNum6} 5 {caseLabel6} @DESERT9_21610 {caseNum7} -1 {caseLabel7} @DESERT9_21691

:DESERT9_20725
set_lvar_text_label 504@s = 'DES9_BA'
set_lvar_text_label 506@s = 'DES9_BB'
set_lvar_int_to_constant 583@ = 13802
set_lvar_int_to_constant 584@ = 13803
632@ = 0
633@ = 0
set_lvar_int_to_var_int 672@ = $scplayer
629@ = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 583@
load_mission_audio MissionAudioSlot.Slot2 {audioId} 584@
623@ = 1
624@ = 2
goto @DESERT9_21691

:DESERT9_20833
if 
  626@ <> 0
goto_if_false @DESERT9_21355
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 630@
goto_if_false @DESERT9_21355
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @DESERT9_21355
if 
  is_int_lvar_equal_to_int_lvar 623@ == 626@
goto_if_false @DESERT9_20922
625@ = 1
goto @DESERT9_20985

:DESERT9_20922
if 
  is_int_lvar_equal_to_int_lvar 624@ == 626@
goto_if_false @DESERT9_20955
625@ = 2
goto @DESERT9_20985

:DESERT9_20955
625@ = 1
set_lvar_int_to_lvar_int 623@ = 626@
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 582@(626@,40i)

:DESERT9_20985
if 
  has_mission_audio_loaded 625@
goto_if_false @DESERT9_21343
if 
  631@(626@,40i) <> 0
goto_if_false @DESERT9_21116
set_lvar_int_to_lvar_int 679@ = 631@(626@,40i)
set_lvar_int_to_lvar_int 680@ = 671@(679@,7i)
if 
  not is_char_dead 680@
goto_if_false @DESERT9_21116
attach_mission_audio_to_char 625@ {handle} 680@
if 
  not is_char_talking 680@
goto_if_false @DESERT9_21109
678@ = 1
start_char_facial_talk 680@ {duration} 15000
goto @DESERT9_21116

:DESERT9_21109
disable_char_speech 680@ {stopNow} False

:DESERT9_21116
if 
  631@(626@,40i) == 0
goto_if_false @DESERT9_21145
678@ = 1

:DESERT9_21145
if 
  678@ == 1
goto_if_false @DESERT9_21336
play_mission_audio 625@
clear_prints 
print 502@(626@,40s) {time} 10000 {flag} 1
629@ += 1
678@ = 0
626@ += 1
set_lvar_int_to_lvar_int 627@ = 626@
if 
  582@(626@,40i) <> 0
goto_if_false @DESERT9_21336
if 
  625@ == 1
goto_if_false @DESERT9_21298
if 
  not is_int_lvar_equal_to_int_lvar 624@ == 626@
goto_if_false @DESERT9_21291
load_mission_audio MissionAudioSlot.Slot2 {audioId} 582@(626@,40i)
set_lvar_int_to_lvar_int 624@ = 626@

:DESERT9_21291
goto @DESERT9_21336

:DESERT9_21298
if 
  not is_int_lvar_equal_to_int_lvar 623@ == 626@
goto_if_false @DESERT9_21336
load_mission_audio MissionAudioSlot.Slot1 {audioId} 582@(626@,40i)
set_lvar_int_to_lvar_int 623@ = 626@

:DESERT9_21336
goto @DESERT9_21355

:DESERT9_21343
load_mission_audio 625@ {audioId} 582@(626@,40i)

:DESERT9_21355
goto @DESERT9_21691

:DESERT9_21362
if 
  has_mission_audio_finished 625@
goto_if_false @DESERT9_21392
629@ += 1
goto @DESERT9_21431

:DESERT9_21392
if 
  does_char_exist 680@
goto_if_false @DESERT9_21431
if 
  is_char_dead 680@
goto_if_false @DESERT9_21431
629@ += 1

:DESERT9_21431
goto @DESERT9_21691

:DESERT9_21438
clear_mission_audio 625@
622@(625@,3i) = 0
clear_prints 
if 
  not is_char_dead 680@
goto_if_false @DESERT9_21482
stop_char_facial_talk 680@
enable_char_speech 680@

:DESERT9_21482
629@ += 1
goto @DESERT9_21691

:DESERT9_21496
626@ += 1
if 
  582@(626@,40i) <> 0
goto_if_false @DESERT9_21549
load_mission_audio 625@ {audioId} 582@(626@,40i)
set_lvar_int_to_lvar_int 622@(625@,3i) = 626@

:DESERT9_21549
628@ -= 1
if 
  628@ <= 0
goto_if_false @DESERT9_21588
626@ = 0
goto @DESERT9_21596

:DESERT9_21588
set_lvar_int_to_lvar_int 626@ = 627@

:DESERT9_21596
629@ = 1
goto @DESERT9_21691

:DESERT9_21610
629@ = 1
626@ = 0
628@ = 0
477@ = 0
501@ = 0
clear_mission_audio 625@
622@(625@,3i) = 0
clear_prints 
if 
  not is_char_dead 680@
goto_if_false @DESERT9_21684
enable_char_speech 680@

:DESERT9_21684
goto @DESERT9_21691

:DESERT9_21691
return 

:DESERT9_21693
if 
  171@ == 1
goto_if_false @DESERT9_21844
if 
  684@ == 0
goto_if_false @DESERT9_21768
set_lvar_int_to_lvar_int 683@ = TIMERA
683@ += 5000
print 'DES9_A9' {time} 4000 {flag} 1
684@ = 1

:DESERT9_21768
if 
  684@ == 1
goto_if_false @DESERT9_21844
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 683@
goto_if_false @DESERT9_21844
set_lvar_int_to_lvar_int 683@ = TIMERA
683@ += 4500
print 'DES9_A6' {time} 4500 {flag} 1
684@ = 2

:DESERT9_21844
return 

:DESERT9_21846
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_pickup $para_pickup
return 

:DESERT9_21869
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Detonator
goto_if_false @DESERT9_21894
remove_weapon_from_char $scplayer {weaponType} WeaponType.Detonator

:DESERT9_21894
$flag_desert_mission_counter += 1
register_mission_passed 'DESERT9'
print_with_number_big 'M_PASS' {num} 20000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 20000
player_made_progress 1
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:DESERT9_21954
$player_fall_safe = 0
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_21992
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:DESERT9_21992
set_player_fire_button $player1 {enabled} True
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_22033
set_char_area_visible $scplayer {areaId} 0
set_area_visible 0
set_char_visible $scplayer {state} True

:DESERT9_22033
camera_reset_new_scriptables 
if 
  not is_char_dead $scplayer
goto_if_false @DESERT9_22080
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_char_position $scplayer {state} False
disable_player_sprint $player1 {state} False

:DESERT9_22080
switch_entry_exit 'DESHOUS' {state} True
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 592
mark_model_as_no_longer_needed 422
mark_model_as_no_longer_needed 165
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 166
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 371
remove_animation "AIRPORT"
remove_animation "CARRY"
mark_model_as_no_longer_needed 335
remove_car_recording 150
remove_car_recording 152
remove_car_recording 149
remove_car_recording 167
remove_car_recording 168
unload_special_character 1
remove_car_recording 149
414@ = 0

:DESERT9_22218
if 
  8 > 414@
goto_if_false @DESERT9_22279
if 
  not is_char_dead 40@(414@,8i)
goto_if_false @DESERT9_22265
delete_char 40@(414@,8i)

:DESERT9_22265
414@ += 1
goto @DESERT9_22218

:DESERT9_22279
414@ = 0

:DESERT9_22286
if 
  15 > 414@
goto_if_false @DESERT9_22327
delete_object 225@(414@,15i)
414@ += 1
goto @DESERT9_22286

:DESERT9_22327
remove_all_script_fires 
if 
  not is_car_dead 36@
goto_if_false @DESERT9_22369
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @DESERT9_22369
delete_car 36@

:DESERT9_22369
if 
  not is_car_dead 186@
goto_if_false @DESERT9_22390
delete_car 186@

:DESERT9_22390
if 
  not is_car_dead 37@
goto_if_false @DESERT9_22430
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @DESERT9_22430
delete_car 37@

:DESERT9_22430
if 
  not is_car_dead 38@
goto_if_false @DESERT9_22470
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @DESERT9_22470
delete_car 38@

:DESERT9_22470
if 
  not is_car_dead 34@
goto_if_false @DESERT9_22491
delete_car 34@

:DESERT9_22491
if 
  not is_car_dead 35@
goto_if_false @DESERT9_22545
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT9_22545
set_vehicle_area_visible 35@ {interiorId} 0
set_car_visible 35@ {state} True
mark_car_as_no_longer_needed 35@

:DESERT9_22545
if 
  68@ <> 9
goto_if_false @DESERT9_22591
if 
  not is_car_dead 186@
goto_if_false @DESERT9_22584
delete_car 186@

:DESERT9_22584
goto @DESERT9_22612

:DESERT9_22591
if 
  not is_car_dead 186@
goto_if_false @DESERT9_22612
mark_car_as_no_longer_needed 186@

:DESERT9_22612
kill_fx_system 174@
remove_blip 152@
if 
  is_player_playing $player1
goto_if_false @DESERT9_22645
disable_player_sprint $player1 {state} False

:DESERT9_22645
set_char_can_be_knocked_off_bike $scplayer {stayOnBike} False
remove_blip 152@
remove_blip 153@
display_radar True
$onmission = 0
$timer_mobile_start = get_game_timer 
$para_control_off = 0
return 
return 

//-------------Mission 81---------------
// Originally: Black Project

:MAF4
script_name 'MAF4'
gosub @MAF4_47
if 
  has_deatharrest_been_executed 
goto_if_false @MAF4_38
gosub @MAF4_29854

:MAF4_38
gosub @MAF4_30178
terminate_this_script 

:MAF4_47
register_mission_given 
wait 0
load_mission_text 'DSERT8'
force_weather_now WeatherType.SunnyDesert
34@ = get_int_stat StatId.Fat
if 
  34@ > 600
goto_if_false @MAF4_326
load_cutscene 'D8_ALT'

:MAF4_105
if 
  not has_cutscene_loaded 
goto_if_false @MAF4_129
wait 0
goto @MAF4_105

:MAF4_129
clear_area 405.2136 {y} 2525.8999 {z} 16.4918 {radius} 7.5 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:MAF4_162
if 
  not has_cutscene_finished 
goto_if_false @MAF4_186
wait 0
goto @MAF4_162

:MAF4_186
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MAF4_199
if 
  get_fading_status 
goto_if_false @MAF4_223
wait 0
goto @MAF4_199

:MAF4_223
clear_cutscene 
clear_area 419.4488 {y} 2529.9141 {z} 15.6219 {radius} 0.5 {clearParticles} False
load_scene 419.4488 {y} 2529.9141 {z} 15.6219
set_char_coordinates $scplayer {x} 419.4488 {y} 2529.9141 {z} 15.6219
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
goto @MAF4_30178
goto @MAF4_451

:MAF4_326
clear_area $desert2X {y} $desert2Y {z} $desert2Z {radius} 100.0 {clearParticles} False
load_cutscene 'DESERT8'

:MAF4_355
if 
  not has_cutscene_loaded 
goto_if_false @MAF4_379
wait 0
goto @MAF4_355

:MAF4_379
start_cutscene 
do_fade 1000 {direction} Fade.In

:MAF4_388
if 
  not has_cutscene_finished 
goto_if_false @MAF4_412
wait 0
goto @MAF4_388

:MAF4_412
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MAF4_427
if 
  get_fading_status 
goto_if_false @MAF4_451
wait 0
goto @MAF4_427

:MAF4_451
49@ = 108.51
56@ = 1917.2679
63@ = 17.63
70@ = 135.323
77@ = 1917.776
84@ = 18.71
50@ = 180.018
57@ = 1904.214
64@ = 17.255
71@ = 243.707
78@ = 1903.543
85@ = 18.639
51@ = 239.0798
58@ = 1904.087
65@ = 16.899
72@ = 188.371
79@ = 1905.376
86@ = 16.825
52@ = 166.119
59@ = 1857.384
66@ = 16.764
73@ = 276.669
80@ = 1856.339
87@ = 16.671
53@ = 191.28
60@ = 1822.46
67@ = 16.83
74@ = 252.37
81@ = 1821.89
88@ = 17.04
54@ = 138.07
61@ = 1823.01
68@ = 16.88
75@ = 105.1
82@ = 1867.21
89@ = 16.97
55@ = 192.9
62@ = 1809.5601
69@ = 16.8
76@ = 144.2
83@ = 1812.52
90@ = 16.78
163@ = 0
164@ = 0
165@ = 0
166@ = 0

:MAF4_899
if 
  7 > 165@
goto_if_false @MAF4_942
167@(165@,7i) = 0
165@ += 1
goto @MAF4_899

:MAF4_942
174@ = 0
175@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
198@ = 0
203@ = 0
204@ = 0
set_wanted_multiplier 0.0
set_fading_colour 0 {g} 0 {b} 0
wait 500
request_model 287
request_model 356
request_model #A51_SPOTBULB
request_model #A51_SPOTHOUSING
request_model #A51_SPOTBASE
request_model 483
load_special_character 1 {modelName} 'TRUTH'
request_car_recording 340
request_car_recording 341
request_model 335
request_model 347
request_model 358
request_model 369
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1809
load_mission_audio MissionAudioSlot.Slot2 {audioId} 41418
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13642
load_all_models_now 

:MAF4_1319
if or
  not has_model_loaded 287
  not has_model_loaded 356
  not has_model_loaded #A51_SPOTBULB
  not has_model_loaded #A51_SPOTHOUSING
  not has_model_loaded #A51_SPOTBASE
  not has_model_loaded 483
goto_if_false @MAF4_1371
wait 0
goto @MAF4_1319

:MAF4_1371
if or
  not has_special_character_loaded 1
  not has_car_recording_been_loaded 340
  not has_car_recording_been_loaded 341
  not has_model_loaded 335
  not has_model_loaded 347
  not has_model_loaded 358
goto_if_false @MAF4_1422
wait 0
goto @MAF4_1371

:MAF4_1422
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_mission_audio_loaded MissionAudioSlot.Slot2
  not has_model_loaded 369
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_1461
wait 0
goto @MAF4_1422

:MAF4_1461
set_disable_military_zones True
load_scene_in_direction 49.8744 {y} 1900.2889 {z} 17.7833 {heading} 99.0
160@ = load_char_decision_maker DecisionMakerType.Steal
159@ = load_char_decision_maker DecisionMakerType.Empty
161@ = load_char_decision_maker DecisionMakerType.Weak
162@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission3
107@ = create_car 483 {x} 22.4045 {y} 1881.61 {z} 16.6484
set_car_heading 107@ {heading} 306.3276
change_car_colour 107@ {color1} 1 {color2} 1
give_vehicle_paintjob 107@ {paintjobId} 0
106@ = create_char_as_passenger 107@ {pedType} PedType.Special {modelId} 290 {seat} SeatId.BikeRear
set_char_decision_maker 106@ {handleOrTemplate} 159@
warp_char_into_car $scplayer {vehicle} 107@
set_fixed_camera_position 49.8744 {y} 1900.2889 {z} 17.7833 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 48.9571 {y} 1899.896 {z} 17.8444 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 36.09 {y} 1921.04 {z} 18.93
set_char_heading $scplayer {heading} 268.5112
load_scene 106.9 {y} -1923.21 {z} 18.35
clear_area 82.775 {y} 1917.325 {z} 17.733 {radius} 150.0 {clearParticles} True
set_car_density_multiplier 0.1
set_ped_density_multiplier 0.1
set_radar_zoom 75
force_interior_lighting_for_player $player1 {state} True
set_time_of_day 23 {minutes} 30
TIMERA = 0
switch_widescreen True
set_player_control $player1 {state} False
shut_char_up $scplayer {state} True
do_fade 1000 {direction} Fade.In
146@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 108.48 {y} 1919.29 {z} 18.56
147@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 228.91 {y} 1858.65 {z} 14.8
148@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 247.016 {y} 1859.22 {z} 14.08
149@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 273.61 {y} 1816.3199 {z} 1.02
150@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 255.36 {y} 1802.007 {z} 7.47
151@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 292.46 {y} 1817.89 {z} 1.015
show_blips_on_all_levels True
delete_object $a51ventcover
clear_area 22.4045 {y} 1881.61 {z} 400.0 {radius} 400.0 {clearParticles} False
clear_wanted_level $player1

:MAF4_1996
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MAF4_2022
goto @MAF4_29924

:MAF4_2022
if 
  5 > 164@
goto_if_false @MAF4_13441
if 
  164@ == 0
goto_if_false @MAF4_2116
if 
  not is_car_dead 107@
goto_if_false @MAF4_2116
if 
  not is_char_dead 106@
goto_if_false @MAF4_2116
start_playback_recorded_car 107@ {path} 340
task_look_at_char $scplayer {target} 106@ {time} 10000
164@ = 1

:MAF4_2116
if 
  164@ == 1
goto_if_false @MAF4_2217
if 
  not is_car_dead 107@
goto_if_false @MAF4_2217
if 
  not is_char_dead 106@
goto_if_false @MAF4_2217
if 
  not is_playback_going_on_for_car 107@
goto_if_false @MAF4_2217
176@ = 0
177@ = 0
skip_cutscene_start_internal @MAF4_8236
TIMERA = 0
164@ = 2

:MAF4_2217
if 
  164@ == 2
goto_if_false @MAF4_2442
if 
  TIMERA > 1000
goto_if_false @MAF4_2442
if 
  not is_car_dead 107@
goto_if_false @MAF4_2442
if 
  not is_char_dead 106@
goto_if_false @MAF4_2442
if 
  is_char_sitting_in_car $scplayer {vehicle} 107@
goto_if_false @MAF4_2442
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_LA' {time} 3000 {flag} 1

:MAF4_2325
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_2351
wait 0
goto @MAF4_2325

:MAF4_2351
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13643
play_mission_audio MissionAudioSlot.Slot2
print_now 'TRUX_AS' {time} 2500 {flag} 1

:MAF4_2378
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_2404
wait 0
goto @MAF4_2378

:MAF4_2404
if 
  not is_car_dead 107@
goto_if_false @MAF4_2428
task_leave_car $scplayer {vehicle} 107@

:MAF4_2428
TIMERA = 0
164@ = 3

:MAF4_2442
if 
  164@ == 3
goto_if_false @MAF4_2684
if 
  not is_car_dead 107@
goto_if_false @MAF4_2684
if 
  not is_char_dead 106@
goto_if_false @MAF4_2684
if 
  not is_char_in_car $scplayer {vehicle} 107@
goto_if_false @MAF4_2684
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_2684
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_2684
if 
  is_char_in_car 106@ {vehicle} 107@
goto_if_false @MAF4_2568
task_shuffle_to_next_car_seat 106@ {vehicle} 107@

:MAF4_2568
if 
  not is_car_dead 107@
goto_if_false @MAF4_2595
task_look_at_vehicle $scplayer {vehicle} 107@ {time} 5000

:MAF4_2595
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_LC' {time} 2000 {flag} 1

:MAF4_2615
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_2641
wait 0
goto @MAF4_2615

:MAF4_2641
wait 350
if 
  not is_car_dead 107@
goto_if_false @MAF4_2670
start_playback_recorded_car 107@ {path} 341

:MAF4_2670
TIMERA = 0
164@ = 4

:MAF4_2684
if 
  164@ == 4
goto_if_false @MAF4_13441
if 
  TIMERA > 4000
goto_if_false @MAF4_13441
35@ = create_searchlight 161.513 {y} 1932.9821 {z} 35.391 {xPoint} 49@ {yPoint} 56@ {zPoint} 63@ {radius} 12.5 {radiusPoint} 0.5
42@ = create_object_no_offset #A51_SPOTBULB {x} 103.946 {y} 1901.047 {z} 36.246
92@ = create_object_no_offset #A51_SPOTHOUSING {x} 103.946 {y} 1901.047 {z} 36.246
93@ = create_object_no_offset #A51_SPOTBASE {x} 103.946 {y} 1901.047 {z} 36.246
attach_searchlight_to_searchlight_object 35@ {spotTower} 93@ {spotHousing} 92@ {spotBulb} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 42@ {health} 5000
set_object_only_damaged_by_player 42@ {state} True
136@ = create_fx_system_on_object "SHOOTLIGHT" {object} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
36@ = create_searchlight 233.067 {y} 1934.892 {z} 33.139 {xPoint} 50@ {yPoint} 57@ {zPoint} 64@ {radius} 10.5 {radiusPoint} 0.5
43@ = create_object_no_offset #A51_SPOTBULB {x} 161.962 {y} 1933.043 {z} 36.246
94@ = create_object_no_offset #A51_SPOTHOUSING {x} 161.962 {y} 1933.043 {z} 36.246
95@ = create_object_no_offset #A51_SPOTBASE {x} 161.962 {y} 1933.043 {z} 36.246
attach_searchlight_to_searchlight_object 36@ {spotTower} 95@ {spotHousing} 94@ {spotBulb} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 43@ {health} 5000
set_object_only_damaged_by_player 43@ {state} True
137@ = create_fx_system_on_object "SHOOTLIGHT" {object} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
37@ = create_searchlight 266.713 {y} 1894.979 {z} 34.139 {xPoint} 51@ {yPoint} 58@ {zPoint} 65@ {radius} 10.5 {radiusPoint} 0.5
44@ = create_object_no_offset #A51_SPOTBULB {x} 233.486 {y} 1934.7889 {z} 36.246
96@ = create_object_no_offset #A51_SPOTHOUSING {x} 233.486 {y} 1934.7889 {z} 36.246
97@ = create_object_no_offset #A51_SPOTBASE {x} 233.486 {y} 1934.7889 {z} 36.246
attach_searchlight_to_searchlight_object 37@ {spotTower} 97@ {spotHousing} 96@ {spotBulb} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 44@ {health} 5000
set_object_only_damaged_by_player 44@ {state} True
138@ = create_fx_system_on_object "SHOOTLIGHT" {object} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
38@ = create_searchlight 261.97 {y} 1808.0699 {z} 34.05 {xPoint} 52@ {yPoint} 59@ {zPoint} 66@ {radius} 10.5 {radiusPoint} 0.5
45@ = create_object_no_offset #A51_SPOTBULB {x} 267.116 {y} 1895.241 {z} 36.246
98@ = create_object_no_offset #A51_SPOTHOUSING {x} 267.116 {y} 1895.241 {z} 36.246
99@ = create_object_no_offset #A51_SPOTBASE {x} 267.116 {y} 1895.241 {z} 36.246
attach_searchlight_to_searchlight_object 38@ {spotTower} 99@ {spotHousing} 98@ {spotBulb} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 45@ {health} 5000
set_object_only_damaged_by_player 45@ {state} True
139@ = create_fx_system_on_object "SHOOTLIGHT" {object} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
39@ = create_searchlight 164.228 {y} 1837.892 {z} 34.05 {xPoint} 53@ {yPoint} 60@ {zPoint} 67@ {radius} 10.5 {radiusPoint} 0.5
46@ = create_object_no_offset #A51_SPOTBULB {x} 262.145 {y} 1807.62 {z} 36.246
100@ = create_object_no_offset #A51_SPOTHOUSING {x} 262.145 {y} 1807.62 {z} 36.246
101@ = create_object_no_offset #A51_SPOTBASE {x} 262.145 {y} 1807.62 {z} 36.246
attach_searchlight_to_searchlight_object 39@ {spotTower} 101@ {spotHousing} 100@ {spotBulb} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 46@ {health} 5000
set_object_only_damaged_by_player 46@ {state} True
140@ = create_fx_system_on_object "SHOOTLIGHT" {object} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
40@ = create_searchlight 103.887 {y} 1901.057 {z} 35.723 {xPoint} 54@ {yPoint} 61@ {zPoint} 68@ {radius} 10.5 {radiusPoint} 0.5
47@ = create_object_no_offset #A51_SPOTBULB {x} 166.003 {y} 1849.937 {z} 36.246
102@ = create_object_no_offset #A51_SPOTHOUSING {x} 166.003 {y} 1849.937 {z} 36.246
103@ = create_object_no_offset #A51_SPOTBASE {x} 166.003 {y} 1849.937 {z} 36.246
attach_searchlight_to_searchlight_object 40@ {spotTower} 103@ {spotHousing} 102@ {spotBulb} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 47@ {health} 5000
set_object_only_damaged_by_player 47@ {state} True
141@ = create_fx_system_on_object "SHOOTLIGHT" {object} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
41@ = create_searchlight 261.97 {y} 1808.0699 {z} 36.05 {xPoint} 55@ {yPoint} 62@ {zPoint} 69@ {radius} 10.5 {radiusPoint} 0.5
48@ = create_object_no_offset #A51_SPOTBULB {x} 113.439 {y} 1814.405 {z} 36.246
104@ = create_object_no_offset #A51_SPOTHOUSING {x} 113.439 {y} 1814.405 {z} 36.246
105@ = create_object_no_offset #A51_SPOTBASE {x} 113.439 {y} 1814.405 {z} 36.246
attach_searchlight_to_searchlight_object 41@ {spotTower} 105@ {spotHousing} 104@ {spotBulb} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 48@ {health} 5000
set_object_only_damaged_by_player 48@ {state} True
142@ = create_fx_system_on_object "SHOOTLIGHT" {object} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
gosub @MAF4_29621
178@ = 1
109@ = create_char PedType.Mission1 {modelId} 287 {x} 112.39 {y} 1931.193 {z} 17.77
set_char_decision_maker 109@ {handleOrTemplate} 160@
give_weapon_to_char 109@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 109@ {range} 200.0
flush_patrol_route 
extend_patrol_route 114.51 {y} 1914.793 {z} 18.8 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 112.39 {y} 1931.193 {z} 18.77 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 109@ {speed} MoveState.Walk {mode} RouteMode.Loop
205@ = add_blip_for_char 109@
set_blip_always_display_on_zoomed_radar 205@ {state} True
change_blip_display 205@ {display} BlipDisplay.BlipOnly
set_inform_respected_friends 109@ {radius} 20.0 {_p3} 1
110@ = create_char PedType.Mission1 {modelId} 287 {x} 125.135 {y} 1916.59 {z} 17.9
set_char_decision_maker 110@ {handleOrTemplate} 160@
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 110@ {range} 200.0
flush_patrol_route 
extend_patrol_route 124.716 {y} 1890.25 {z} 18.33 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 159.0 {y} 1887.9 {z} 19.5 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 161.32 {y} 1914.42 {z} 18.6 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 125.135 {y} 1916.59 {z} 18.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 110@ {speed} MoveState.Walk {mode} RouteMode.Loop
206@ = add_blip_for_char 110@
set_blip_always_display_on_zoomed_radar 206@ {state} True
change_blip_display 206@ {display} BlipDisplay.BlipOnly
set_char_accuracy 110@ {accuracy} 85
set_inform_respected_friends 110@ {radius} 30.0 {_p3} 1
111@ = create_char PedType.Mission1 {modelId} 287 {x} 131.37 {y} 1821.139 {z} 16.6
set_char_decision_maker 111@ {handleOrTemplate} 160@
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 111@ {range} 200.0
flush_patrol_route 
extend_patrol_route 130.62 {y} 1855.297 {z} 17.73 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 102.09 {y} 1858.6 {z} 17.7 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 102.94 {y} 1839.78 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 131.37 {y} 1821.139 {z} 17.6 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 111@ {speed} MoveState.Walk {mode} RouteMode.Loop
207@ = add_blip_for_char 111@
set_blip_always_display_on_zoomed_radar 207@ {state} True
change_blip_display 207@ {display} BlipDisplay.BlipOnly
set_char_accuracy 111@ {accuracy} 80
set_inform_respected_friends 111@ {radius} 30.0 {_p3} 1
112@ = create_char PedType.Mission1 {modelId} 287 {x} 163.458 {y} 1824.58 {z} 17.64
set_char_heading 112@ {heading} 180.123
set_char_decision_maker 112@ {handleOrTemplate} 160@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 112@ {range} 200.0
208@ = add_blip_for_char 112@
set_blip_always_display_on_zoomed_radar 208@ {state} True
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_char_accuracy 112@ {accuracy} 85
set_inform_respected_friends 112@ {radius} 30.0 {_p3} 1
113@ = create_char PedType.Mission1 {modelId} 287 {x} 189.91 {y} 1916.399 {z} 16.64
set_char_decision_maker 113@ {handleOrTemplate} 160@
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 113@ {range} 200.0
flush_patrol_route 
extend_patrol_route 168.0187 {y} 1916.2791 {z} 18.37 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 189.91 {y} 1916.399 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 113@ {speed} MoveState.Walk {mode} RouteMode.Loop
209@ = add_blip_for_char 113@
set_blip_always_display_on_zoomed_radar 209@ {state} True
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_char_accuracy 113@ {accuracy} 85
set_inform_respected_friends 113@ {radius} 30.0 {_p3} 1
114@ = create_char PedType.Mission1 {modelId} 287 {x} 191.535 {y} 1809.588 {z} 16.641
set_char_decision_maker 114@ {handleOrTemplate} 160@
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 114@ {range} 200.0
flush_patrol_route 
extend_patrol_route 131.24 {y} 1811.194 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 191.535 {y} 1809.588 {z} 17.641 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 114@ {speed} MoveState.Walk {mode} RouteMode.Loop
210@ = add_blip_for_char 114@
set_blip_always_display_on_zoomed_radar 210@ {state} True
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_char_accuracy 114@ {accuracy} 85
set_inform_respected_friends 114@ {radius} 30.0 {_p3} 1
115@ = create_char PedType.Mission1 {modelId} 287 {x} 195.36 {y} 1872.92 {z} 16.64
set_char_decision_maker 115@ {handleOrTemplate} 160@
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 115@ {range} 200.0
flush_patrol_route 
extend_patrol_route 231.095 {y} 1872.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 195.36 {y} 1872.92 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 115@ {speed} MoveState.Walk {mode} RouteMode.Loop
211@ = add_blip_for_char 115@
set_blip_always_display_on_zoomed_radar 211@ {state} True
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_char_accuracy 115@ {accuracy} 85
set_inform_respected_friends 115@ {radius} 20.0 {_p3} 1
116@ = create_char PedType.Mission1 {modelId} 287 {x} 108.673 {y} 1886.1801 {z} 17.04
set_char_decision_maker 116@ {handleOrTemplate} 160@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 116@ {range} 200.0
flush_patrol_route 
extend_patrol_route 107.065 {y} 1865.8 {z} 17.78 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 126.78 {y} 1864.25 {z} 17.8 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 127.842 {y} 1885.04 {z} 18.027 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 108.673 {y} 1886.1801 {z} 18.04 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 116@ {speed} MoveState.Walk {mode} RouteMode.Loop
212@ = add_blip_for_char 116@
set_blip_always_display_on_zoomed_radar 212@ {state} True
change_blip_display 212@ {display} BlipDisplay.BlipOnly
set_char_accuracy 116@ {accuracy} 85
set_inform_respected_friends 116@ {radius} 30.0 {_p3} 1
117@ = create_char PedType.Mission1 {modelId} 287 {x} 173.671 {y} 1886.8409 {z} 19.9
set_char_decision_maker 117@ {handleOrTemplate} 160@
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 117@ {range} 200.0
flush_patrol_route 
extend_patrol_route 174.25 {y} 1866.51 {z} 20.7 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 173.671 {y} 1886.8409 {z} 20.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 117@ {speed} MoveState.Walk {mode} RouteMode.Loop
213@ = add_blip_for_char 117@
set_blip_always_display_on_zoomed_radar 213@ {state} True
change_blip_display 213@ {display} BlipDisplay.BlipOnly
set_char_accuracy 117@ {accuracy} 85
set_inform_respected_friends 117@ {radius} 30.0 {_p3} 1
118@ = create_char PedType.Mission1 {modelId} 287 {x} 249.99 {y} 1874.78 {z} 19.6
set_char_decision_maker 118@ {handleOrTemplate} 160@
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 118@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.99 {y} 1906.5601 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 249.99 {y} 1874.78 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 118@ {speed} MoveState.Walk {mode} RouteMode.Loop
214@ = add_blip_for_char 118@
set_blip_always_display_on_zoomed_radar 214@ {state} True
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_char_accuracy 118@ {accuracy} 85
set_inform_respected_friends 118@ {radius} 30.0 {_p3} 1
119@ = create_char PedType.Mission1 {modelId} 287 {x} 224.26 {y} 1916.79 {z} 16.64
set_char_decision_maker 119@ {handleOrTemplate} 160@
give_weapon_to_char 119@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 119@ {range} 200.0
flush_patrol_route 
extend_patrol_route 204.475 {y} 1915.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 204.628 {y} 1904.521 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 221.645 {y} 1905.13 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 224.26 {y} 1916.79 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 119@ {speed} MoveState.Walk {mode} RouteMode.Loop
215@ = add_blip_for_char 119@
set_blip_always_display_on_zoomed_radar 215@ {state} True
change_blip_display 215@ {display} BlipDisplay.BlipOnly
set_char_accuracy 119@ {accuracy} 85
set_inform_respected_friends 119@ {radius} 30.0 {_p3} 1
120@ = create_char PedType.Mission1 {modelId} 287 {x} 209.07 {y} 1833.63 {z} 16.64
set_char_heading 120@ {heading} 346.579
set_char_decision_maker 120@ {handleOrTemplate} 160@
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 120@ {range} 200.0
216@ = add_blip_for_char 120@
set_blip_always_display_on_zoomed_radar 216@ {state} True
change_blip_display 216@ {display} BlipDisplay.BlipOnly
set_char_accuracy 120@ {accuracy} 85
set_inform_respected_friends 120@ {radius} 30.0 {_p3} 1
121@ = create_char PedType.Mission1 {modelId} 287 {x} 268.027 {y} 1862.269 {z} 17.64
set_char_decision_maker 121@ {handleOrTemplate} 160@
give_weapon_to_char 121@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 121@ {range} 200.0
flush_patrol_route 
extend_patrol_route 266.9 {y} 1822.3 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 268.027 {y} 1862.269 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 121@ {speed} MoveState.Walk {mode} RouteMode.Loop
217@ = add_blip_for_char 121@
set_blip_always_display_on_zoomed_radar 217@ {state} True
change_blip_display 217@ {display} BlipDisplay.BlipOnly
set_char_accuracy 121@ {accuracy} 85
set_inform_respected_friends 121@ {radius} 30.0 {_p3} 1
122@ = create_char PedType.Mission1 {modelId} 287 {x} 221.16 {y} 1858.28 {z} 20.63
set_char_decision_maker 122@ {handleOrTemplate} 160@
give_weapon_to_char 122@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 122@ {accuracy} 90
set_follow_node_threshold_distance 122@ {range} 200.0
flush_patrol_route 
extend_patrol_route 198.711 {y} 1857.64 {z} 19.633 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 221.16 {y} 1858.28 {z} 20.63 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 122@ {speed} MoveState.Walk {mode} RouteMode.Loop
218@ = add_blip_for_char 122@
set_blip_always_display_on_zoomed_radar 218@ {state} True
change_blip_display 218@ {display} BlipDisplay.BlipOnly
set_char_accuracy 122@ {accuracy} 90
set_inform_respected_friends 122@ {radius} 30.0 {_p3} 1
123@ = create_char PedType.Mission1 {modelId} 287 {x} 218.45 {y} 1820.78 {z} 16.64
set_char_decision_maker 123@ {handleOrTemplate} 160@
give_weapon_to_char 123@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 123@ {accuracy} 90
set_follow_node_threshold_distance 123@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.31 {y} 1821.924 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 218.45 {y} 1820.78 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 123@ {speed} MoveState.Walk {mode} RouteMode.Loop
219@ = add_blip_for_char 123@
set_blip_always_display_on_zoomed_radar 219@ {state} True
change_blip_display 219@ {display} BlipDisplay.BlipOnly
set_char_accuracy 123@ {accuracy} 80
set_inform_respected_friends 123@ {radius} 30.0 {_p3} 1
do_fade 100 {direction} Fade.Out

:MAF4_6742
if 
  get_fading_status 
goto_if_false @MAF4_6766
wait 0
goto @MAF4_6742

:MAF4_6766
set_fixed_camera_position 312.659 {y} 1806.521 {z} 26.272 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 311.7959 {y} 1807.022 {z} 26.2183 {switchStyle} SwitchType.JumpCut
load_scene_in_direction 312.659 {y} 1806.521 {z} 26.272 {heading} 60.2
do_fade 100 {direction} Fade.In
print_now 'DST8_1' {time} 7000 {flag} 1
set_char_coordinates $scplayer {x} 69.91 {y} 1916.007 {z} 16.648
set_char_heading $scplayer {heading} 273.363
TIMERA = 0

:MAF4_6898
if 
  7000 > TIMERA
goto_if_false @MAF4_6928
wait 0
goto @MAF4_6898

:MAF4_6928
print_now 'DST8_18' {time} 8000 {flag} 1
set_fixed_camera_position 232.5476 {y} 1911.022 {z} 34.7955 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 231.9904 {y} 1910.261 {z} 34.4617 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MAF4_7002
if 
  4000 > TIMERA
goto_if_false @MAF4_7032
wait 0
goto @MAF4_7002

:MAF4_7032
set_fixed_camera_position 183.9385 {y} 1801.77 {z} 29.0751 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 184.8011 {y} 1802.215 {z} 28.8356 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MAF4_7090
if 
  4000 > TIMERA
goto_if_false @MAF4_7120
wait 0
goto @MAF4_7090

:MAF4_7120
set_fixed_camera_position 120.4534 {y} 1943.522 {z} 29.8174 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 120.5729 {y} 1942.533 {z} 29.7278 {switchStyle} SwitchType.JumpCut
print_now 'DST8_19' {time} 4000 {flag} 1
print 'DST8_47' {time} 4000 {flag} 1
print 'DST8_48' {time} 4000 {flag} 1
TIMERA = 0

:MAF4_7226
if 
  12000 > TIMERA
goto_if_false @MAF4_7256
wait 0
goto @MAF4_7226

:MAF4_7256
124@ = create_char PedType.Mission3 {modelId} 287 {x} 103.9055 {y} 1900.535 {z} 24.4985
set_char_decision_maker 124@ {handleOrTemplate} 159@
set_char_heading 124@ {heading} 6.0802
give_weapon_to_char 124@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 124@ {state} True
set_char_health 124@ {health} 10
220@ = add_blip_for_char 124@
set_blip_always_display_on_zoomed_radar 220@ {state} True
change_blip_display 220@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 124@ {handleOrTemplate} 162@
125@ = create_char PedType.Mission3 {modelId} 287 {x} 113.3839 {y} 1814.261 {z} 24.4985
set_char_decision_maker 125@ {handleOrTemplate} 159@
set_char_heading 125@ {heading} 5.0273
give_weapon_to_char 125@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 125@ {state} True
set_char_health 125@ {health} 10
221@ = add_blip_for_char 125@
set_blip_always_display_on_zoomed_radar 221@ {state} True
change_blip_display 221@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 125@ {handleOrTemplate} 162@
126@ = create_char PedType.Mission3 {modelId} 287 {x} 165.6023 {y} 1850.0699 {z} 24.4985
set_char_decision_maker 126@ {handleOrTemplate} 159@
set_char_heading 126@ {heading} 5.0273
give_weapon_to_char 126@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 126@ {state} True
set_char_health 126@ {health} 10
222@ = add_blip_for_char 126@
set_blip_always_display_on_zoomed_radar 222@ {state} True
change_blip_display 222@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 126@ {handleOrTemplate} 162@
127@ = create_char PedType.Mission3 {modelId} 287 {x} 261.8728 {y} 1807.938 {z} 24.4985
set_char_decision_maker 127@ {handleOrTemplate} 159@
set_char_heading 127@ {heading} 5.0273
give_weapon_to_char 127@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 127@ {state} True
set_char_health 127@ {health} 10
223@ = add_blip_for_char 127@
set_blip_always_display_on_zoomed_radar 223@ {state} True
change_blip_display 223@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 127@ {handleOrTemplate} 162@
128@ = create_char PedType.Mission3 {modelId} 287 {x} 267.1389 {y} 1895.485 {z} 24.4985
set_char_decision_maker 128@ {handleOrTemplate} 159@
set_char_heading 128@ {heading} 119.7683
give_weapon_to_char 128@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 128@ {state} True
set_char_health 128@ {health} 10
224@ = add_blip_for_char 128@
set_blip_always_display_on_zoomed_radar 224@ {state} True
change_blip_display 224@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 128@ {handleOrTemplate} 162@
129@ = create_char PedType.Mission3 {modelId} 287 {x} 161.9575 {y} 1933.342 {z} 24.4985
set_char_decision_maker 129@ {handleOrTemplate} 159@
set_char_heading 129@ {heading} 119.7683
give_weapon_to_char 129@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 129@ {state} True
set_char_health 129@ {health} 10
225@ = add_blip_for_char 129@
set_blip_always_display_on_zoomed_radar 225@ {state} True
change_blip_display 225@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 129@ {handleOrTemplate} 162@
130@ = create_char PedType.Mission3 {modelId} 287 {x} 233.6724 {y} 1934.623 {z} 24.4985
set_char_decision_maker 130@ {handleOrTemplate} 159@
set_char_heading 130@ {heading} 119.7683
give_weapon_to_char 130@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 130@ {state} True
set_char_health 130@ {health} 10
226@ = add_blip_for_char 130@
set_blip_always_display_on_zoomed_radar 226@ {state} True
change_blip_display 226@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 130@ {handleOrTemplate} 162@
set_fixed_camera_position 113.0058 {y} 1934.089 {z} 18.245 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 113.0995 {y} 1933.1121 {z} 18.4334 {switchStyle} SwitchType.JumpCut
print_now 'DST8_21' {time} 5000 {flag} 1
TIMERA = 0

:MAF4_8009
if 
  5000 > TIMERA
goto_if_false @MAF4_8039
wait 0
goto @MAF4_8009

:MAF4_8039
set_fixed_camera_position 112.0028 {y} 1893.8459 {z} 19.5192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 111.2033 {y} 1894.447 {z} 19.5192 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_pos True
camera_set_vector_move 112.0028 {fromY} 1893.8459 {fromZ} 19.5192 {toX} 112.0028 {toY} 1893.8459 {toZ} 35.5192 {time} 6000 {ease} True
print_now 'DST8_22' {time} 6500 {flag} 1
TIMERA = 0

:MAF4_8156
if 
  6500 > TIMERA
goto_if_false @MAF4_8186
wait 0
goto @MAF4_8156

:MAF4_8186
177@ = 1
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 70
give_weapon_to_char $scplayer {weaponType} WeaponType.Infrared {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 35
176@ = 1

:MAF4_8236
skip_cutscene_end 
if 
  176@ == 0
goto_if_false @MAF4_13283
do_fade 250 {direction} Fade.Out
clear_prints 

:MAF4_8265
if 
  get_fading_status 
goto_if_false @MAF4_8289
wait 0
goto @MAF4_8265

:MAF4_8289
if 
  not is_car_dead 107@
goto_if_false @MAF4_8326
if 
  is_playback_going_on_for_car 107@
goto_if_false @MAF4_8326
stop_playback_recorded_car 107@

:MAF4_8326
if 
  is_char_in_any_car $scplayer
goto_if_false @MAF4_8372
warp_char_from_car_to_coord $scplayer {x} 69.91 {y} 1916.007 {z} 16.648
set_char_heading $scplayer {heading} 273.363

:MAF4_8372
set_char_coordinates $scplayer {x} 69.91 {y} 1916.007 {z} 16.648
set_char_heading $scplayer {heading} 273.363
delete_char 106@
delete_car 107@
unload_special_character 1
mark_model_as_no_longer_needed 483
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
if 
  177@ == 0
goto_if_false @MAF4_8492
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 70
give_weapon_to_char $scplayer {weaponType} WeaponType.Infrared {ammo} 1
give_weapon_to_char $scplayer {weaponType} WeaponType.Sniper {ammo} 35

:MAF4_8492
if 
  178@ == 0
goto_if_false @MAF4_9840
35@ = create_searchlight 161.513 {y} 1932.9821 {z} 35.391 {xPoint} 49@ {yPoint} 56@ {zPoint} 63@ {radius} 12.5 {radiusPoint} 0.5
42@ = create_object_no_offset #A51_SPOTBULB {x} 103.946 {y} 1901.047 {z} 36.246
92@ = create_object_no_offset #A51_SPOTHOUSING {x} 103.946 {y} 1901.047 {z} 36.246
93@ = create_object_no_offset #A51_SPOTBASE {x} 103.946 {y} 1901.047 {z} 36.246
attach_searchlight_to_searchlight_object 35@ {spotTower} 93@ {spotHousing} 92@ {spotBulb} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 42@ {health} 5000
set_object_only_damaged_by_player 42@ {state} True
136@ = create_fx_system_on_object "SHOOTLIGHT" {object} 42@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
36@ = create_searchlight 233.067 {y} 1934.892 {z} 33.139 {xPoint} 50@ {yPoint} 57@ {zPoint} 64@ {radius} 10.5 {radiusPoint} 0.5
43@ = create_object_no_offset #A51_SPOTBULB {x} 161.962 {y} 1933.043 {z} 36.246
94@ = create_object_no_offset #A51_SPOTHOUSING {x} 161.962 {y} 1933.043 {z} 36.246
95@ = create_object_no_offset #A51_SPOTBASE {x} 161.962 {y} 1933.043 {z} 36.246
attach_searchlight_to_searchlight_object 36@ {spotTower} 95@ {spotHousing} 94@ {spotBulb} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 43@ {health} 5000
set_object_only_damaged_by_player 43@ {state} True
137@ = create_fx_system_on_object "SHOOTLIGHT" {object} 43@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
37@ = create_searchlight 266.713 {y} 1894.979 {z} 34.139 {xPoint} 51@ {yPoint} 58@ {zPoint} 65@ {radius} 10.5 {radiusPoint} 0.5
44@ = create_object_no_offset #A51_SPOTBULB {x} 233.486 {y} 1934.7889 {z} 36.246
96@ = create_object_no_offset #A51_SPOTHOUSING {x} 233.486 {y} 1934.7889 {z} 36.246
97@ = create_object_no_offset #A51_SPOTBASE {x} 233.486 {y} 1934.7889 {z} 36.246
attach_searchlight_to_searchlight_object 37@ {spotTower} 97@ {spotHousing} 96@ {spotBulb} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 44@ {health} 5000
set_object_only_damaged_by_player 44@ {state} True
138@ = create_fx_system_on_object "SHOOTLIGHT" {object} 44@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
38@ = create_searchlight 261.97 {y} 1808.0699 {z} 34.05 {xPoint} 52@ {yPoint} 59@ {zPoint} 66@ {radius} 10.5 {radiusPoint} 0.5
45@ = create_object_no_offset #A51_SPOTBULB {x} 267.116 {y} 1895.241 {z} 36.246
98@ = create_object_no_offset #A51_SPOTHOUSING {x} 267.116 {y} 1895.241 {z} 36.246
99@ = create_object_no_offset #A51_SPOTBASE {x} 267.116 {y} 1895.241 {z} 36.246
attach_searchlight_to_searchlight_object 38@ {spotTower} 99@ {spotHousing} 98@ {spotBulb} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 45@ {health} 5000
set_object_only_damaged_by_player 45@ {state} True
139@ = create_fx_system_on_object "SHOOTLIGHT" {object} 45@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
39@ = create_searchlight 164.228 {y} 1837.892 {z} 34.05 {xPoint} 53@ {yPoint} 60@ {zPoint} 67@ {radius} 10.5 {radiusPoint} 0.5
46@ = create_object_no_offset #A51_SPOTBULB {x} 262.145 {y} 1807.62 {z} 36.246
100@ = create_object_no_offset #A51_SPOTHOUSING {x} 262.145 {y} 1807.62 {z} 36.246
101@ = create_object_no_offset #A51_SPOTBASE {x} 262.145 {y} 1807.62 {z} 36.246
attach_searchlight_to_searchlight_object 39@ {spotTower} 101@ {spotHousing} 100@ {spotBulb} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 46@ {health} 5000
set_object_only_damaged_by_player 46@ {state} True
140@ = create_fx_system_on_object "SHOOTLIGHT" {object} 46@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
40@ = create_searchlight 103.887 {y} 1901.057 {z} 35.723 {xPoint} 54@ {yPoint} 61@ {zPoint} 68@ {radius} 10.5 {radiusPoint} 0.5
47@ = create_object_no_offset #A51_SPOTBULB {x} 166.003 {y} 1849.937 {z} 36.246
102@ = create_object_no_offset #A51_SPOTHOUSING {x} 166.003 {y} 1849.937 {z} 36.246
103@ = create_object_no_offset #A51_SPOTBASE {x} 166.003 {y} 1849.937 {z} 36.246
attach_searchlight_to_searchlight_object 40@ {spotTower} 103@ {spotHousing} 102@ {spotBulb} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 47@ {health} 5000
set_object_only_damaged_by_player 47@ {state} True
141@ = create_fx_system_on_object "SHOOTLIGHT" {object} 47@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
41@ = create_searchlight 261.97 {y} 1808.0699 {z} 36.05 {xPoint} 55@ {yPoint} 62@ {zPoint} 69@ {radius} 10.5 {radiusPoint} 0.5
48@ = create_object_no_offset #A51_SPOTBULB {x} 113.439 {y} 1814.405 {z} 36.246
104@ = create_object_no_offset #A51_SPOTHOUSING {x} 113.439 {y} 1814.405 {z} 36.246
105@ = create_object_no_offset #A51_SPOTBASE {x} 113.439 {y} 1814.405 {z} 36.246
attach_searchlight_to_searchlight_object 41@ {spotTower} 105@ {spotHousing} 104@ {spotBulb} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768
set_object_health 48@ {health} 5000
set_object_only_damaged_by_player 48@ {state} True
142@ = create_fx_system_on_object "SHOOTLIGHT" {object} 48@ {xOffset} 0.0 {yOffset} 1.181 {zOffset} 0.768 {ignoreBoundingChecks} True
gosub @MAF4_29621

:MAF4_9840
165@ = 0

:MAF4_9847
if 
  22 > 165@
goto_if_false @MAF4_9897
delete_char 109@(165@,22i)
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_9847

:MAF4_9897
109@ = create_char PedType.Mission1 {modelId} 287 {x} 112.39 {y} 1931.193 {z} 17.77
set_char_decision_maker 109@ {handleOrTemplate} 160@
give_weapon_to_char 109@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 109@ {range} 200.0
flush_patrol_route 
extend_patrol_route 114.51 {y} 1914.793 {z} 18.8 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 112.39 {y} 1931.193 {z} 18.77 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 109@ {speed} MoveState.Walk {mode} RouteMode.Loop
205@ = add_blip_for_char 109@
set_blip_always_display_on_zoomed_radar 205@ {state} True
change_blip_display 205@ {display} BlipDisplay.BlipOnly
set_inform_respected_friends 109@ {radius} 20.0 {_p3} 1
110@ = create_char PedType.Mission1 {modelId} 287 {x} 125.135 {y} 1916.59 {z} 17.9
set_char_decision_maker 110@ {handleOrTemplate} 160@
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 110@ {range} 200.0
flush_patrol_route 
extend_patrol_route 124.716 {y} 1890.25 {z} 18.33 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 159.0 {y} 1887.9 {z} 19.5 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 161.32 {y} 1914.42 {z} 18.6 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 125.135 {y} 1916.59 {z} 18.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 110@ {speed} MoveState.Walk {mode} RouteMode.Loop
206@ = add_blip_for_char 110@
set_blip_always_display_on_zoomed_radar 206@ {state} True
change_blip_display 206@ {display} BlipDisplay.BlipOnly
set_char_accuracy 110@ {accuracy} 80
set_inform_respected_friends 110@ {radius} 30.0 {_p3} 1
111@ = create_char PedType.Mission1 {modelId} 287 {x} 131.37 {y} 1821.139 {z} 16.6
set_char_decision_maker 111@ {handleOrTemplate} 160@
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 111@ {range} 200.0
flush_patrol_route 
extend_patrol_route 130.62 {y} 1855.297 {z} 17.73 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 102.09 {y} 1858.6 {z} 17.7 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 102.94 {y} 1839.78 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 131.37 {y} 1821.139 {z} 17.6 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 111@ {speed} MoveState.Walk {mode} RouteMode.Loop
207@ = add_blip_for_char 111@
set_blip_always_display_on_zoomed_radar 207@ {state} True
change_blip_display 207@ {display} BlipDisplay.BlipOnly
set_char_accuracy 111@ {accuracy} 80
set_inform_respected_friends 111@ {radius} 30.0 {_p3} 1
112@ = create_char PedType.Mission1 {modelId} 287 {x} 163.458 {y} 1824.58 {z} 17.64
set_char_heading 112@ {heading} 180.123
set_char_decision_maker 112@ {handleOrTemplate} 160@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 112@ {range} 200.0
208@ = add_blip_for_char 112@
set_blip_always_display_on_zoomed_radar 208@ {state} True
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_char_accuracy 112@ {accuracy} 85
set_inform_respected_friends 112@ {radius} 30.0 {_p3} 1
113@ = create_char PedType.Mission1 {modelId} 287 {x} 189.91 {y} 1916.399 {z} 16.64
set_char_decision_maker 113@ {handleOrTemplate} 160@
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 113@ {range} 200.0
flush_patrol_route 
extend_patrol_route 168.0187 {y} 1916.2791 {z} 18.37 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 189.91 {y} 1916.399 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 113@ {speed} MoveState.Walk {mode} RouteMode.Loop
209@ = add_blip_for_char 113@
set_blip_always_display_on_zoomed_radar 209@ {state} True
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_char_accuracy 113@ {accuracy} 85
set_inform_respected_friends 113@ {radius} 30.0 {_p3} 1
114@ = create_char PedType.Mission1 {modelId} 287 {x} 191.535 {y} 1809.588 {z} 16.641
set_char_decision_maker 114@ {handleOrTemplate} 160@
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 114@ {range} 200.0
flush_patrol_route 
extend_patrol_route 131.24 {y} 1811.194 {z} 17.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 191.535 {y} 1809.588 {z} 17.641 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 114@ {speed} MoveState.Walk {mode} RouteMode.Loop
210@ = add_blip_for_char 114@
set_blip_always_display_on_zoomed_radar 210@ {state} True
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_char_accuracy 114@ {accuracy} 85
set_inform_respected_friends 114@ {radius} 30.0 {_p3} 1
115@ = create_char PedType.Mission1 {modelId} 287 {x} 195.36 {y} 1872.92 {z} 16.64
set_char_decision_maker 115@ {handleOrTemplate} 160@
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 115@ {range} 200.0
flush_patrol_route 
extend_patrol_route 231.095 {y} 1872.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 195.36 {y} 1872.92 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 115@ {speed} MoveState.Walk {mode} RouteMode.Loop
211@ = add_blip_for_char 115@
set_blip_always_display_on_zoomed_radar 211@ {state} True
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_char_accuracy 115@ {accuracy} 85
set_inform_respected_friends 115@ {radius} 20.0 {_p3} 1
116@ = create_char PedType.Mission1 {modelId} 287 {x} 108.673 {y} 1886.1801 {z} 17.04
set_char_decision_maker 116@ {handleOrTemplate} 160@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 116@ {range} 200.0
flush_patrol_route 
extend_patrol_route 107.065 {y} 1865.8 {z} 17.78 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 126.78 {y} 1864.25 {z} 17.8 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 127.842 {y} 1885.04 {z} 18.027 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 108.673 {y} 1886.1801 {z} 18.04 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 116@ {speed} MoveState.Walk {mode} RouteMode.Loop
212@ = add_blip_for_char 116@
set_blip_always_display_on_zoomed_radar 212@ {state} True
change_blip_display 212@ {display} BlipDisplay.BlipOnly
set_char_accuracy 116@ {accuracy} 85
set_inform_respected_friends 116@ {radius} 30.0 {_p3} 1
117@ = create_char PedType.Mission1 {modelId} 287 {x} 173.671 {y} 1886.8409 {z} 19.9
set_char_decision_maker 117@ {handleOrTemplate} 160@
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 117@ {range} 200.0
flush_patrol_route 
extend_patrol_route 174.25 {y} 1866.51 {z} 20.7 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 173.671 {y} 1886.8409 {z} 20.9 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 117@ {speed} MoveState.Walk {mode} RouteMode.Loop
213@ = add_blip_for_char 117@
set_blip_always_display_on_zoomed_radar 213@ {state} True
change_blip_display 213@ {display} BlipDisplay.BlipOnly
set_char_accuracy 117@ {accuracy} 85
set_inform_respected_friends 117@ {radius} 30.0 {_p3} 1
118@ = create_char PedType.Mission1 {modelId} 287 {x} 249.99 {y} 1874.78 {z} 19.6
set_char_decision_maker 118@ {handleOrTemplate} 160@
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 118@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.99 {y} 1906.5601 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 249.99 {y} 1874.78 {z} 20.6 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 118@ {speed} MoveState.Walk {mode} RouteMode.Loop
214@ = add_blip_for_char 118@
set_blip_always_display_on_zoomed_radar 214@ {state} True
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_char_accuracy 118@ {accuracy} 85
set_inform_respected_friends 118@ {radius} 30.0 {_p3} 1
119@ = create_char PedType.Mission1 {modelId} 287 {x} 224.26 {y} 1916.79 {z} 16.64
set_char_decision_maker 119@ {handleOrTemplate} 160@
give_weapon_to_char 119@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 119@ {range} 200.0
flush_patrol_route 
extend_patrol_route 204.475 {y} 1915.9 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 204.628 {y} 1904.521 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route 221.645 {y} 1905.13 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 224.26 {y} 1916.79 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 119@ {speed} MoveState.Walk {mode} RouteMode.Loop
215@ = add_blip_for_char 119@
set_blip_always_display_on_zoomed_radar 215@ {state} True
change_blip_display 215@ {display} BlipDisplay.BlipOnly
set_char_accuracy 119@ {accuracy} 85
set_inform_respected_friends 119@ {radius} 30.0 {_p3} 1
120@ = create_char PedType.Mission1 {modelId} 287 {x} 209.07 {y} 1833.63 {z} 16.64
set_char_heading 120@ {heading} 346.579
set_char_decision_maker 120@ {handleOrTemplate} 160@
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 120@ {range} 200.0
216@ = add_blip_for_char 120@
set_blip_always_display_on_zoomed_radar 216@ {state} True
change_blip_display 216@ {display} BlipDisplay.BlipOnly
set_char_accuracy 120@ {accuracy} 85
set_inform_respected_friends 120@ {radius} 30.0 {_p3} 1
121@ = create_char PedType.Mission1 {modelId} 287 {x} 268.027 {y} 1862.269 {z} 17.64
set_char_decision_maker 121@ {handleOrTemplate} 160@
give_weapon_to_char 121@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 121@ {range} 200.0
flush_patrol_route 
extend_patrol_route 266.9 {y} 1822.3 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 268.027 {y} 1862.269 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 121@ {speed} MoveState.Walk {mode} RouteMode.Loop
217@ = add_blip_for_char 121@
set_blip_always_display_on_zoomed_radar 217@ {state} True
change_blip_display 217@ {display} BlipDisplay.BlipOnly
set_char_accuracy 121@ {accuracy} 85
set_inform_respected_friends 121@ {radius} 30.0 {_p3} 1
122@ = create_char PedType.Mission1 {modelId} 287 {x} 221.16 {y} 1858.28 {z} 20.63
set_char_decision_maker 122@ {handleOrTemplate} 160@
give_weapon_to_char 122@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 122@ {accuracy} 90
set_follow_node_threshold_distance 122@ {range} 200.0
flush_patrol_route 
extend_patrol_route 198.711 {y} 1857.64 {z} 19.633 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 221.16 {y} 1858.28 {z} 20.63 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 122@ {speed} MoveState.Walk {mode} RouteMode.Loop
218@ = add_blip_for_char 122@
set_blip_always_display_on_zoomed_radar 218@ {state} True
change_blip_display 218@ {display} BlipDisplay.BlipOnly
set_char_accuracy 122@ {accuracy} 90
set_inform_respected_friends 122@ {radius} 30.0 {_p3} 1
123@ = create_char PedType.Mission1 {modelId} 287 {x} 218.45 {y} 1820.78 {z} 16.64
set_char_decision_maker 123@ {handleOrTemplate} 160@
give_weapon_to_char 123@ {weaponType} WeaponType.M4 {ammo} 9999
set_char_accuracy 123@ {accuracy} 90
set_follow_node_threshold_distance 123@ {range} 200.0
flush_patrol_route 
extend_patrol_route 250.31 {y} 1821.924 {z} 17.64 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 218.45 {y} 1820.78 {z} 17.64 {animationName} "NONE" {animationFile} "NONE"
task_follow_patrol_route 123@ {speed} MoveState.Walk {mode} RouteMode.Loop
219@ = add_blip_for_char 123@
set_blip_always_display_on_zoomed_radar 219@ {state} True
change_blip_display 219@ {display} BlipDisplay.BlipOnly
set_char_accuracy 123@ {accuracy} 80
set_inform_respected_friends 123@ {radius} 30.0 {_p3} 1
124@ = create_char PedType.Mission3 {modelId} 287 {x} 103.9055 {y} 1900.535 {z} 24.4985
set_char_decision_maker 124@ {handleOrTemplate} 159@
set_char_heading 124@ {heading} 6.0802
give_weapon_to_char 124@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 124@ {state} True
set_char_health 124@ {health} 10
220@ = add_blip_for_char 124@
set_blip_always_display_on_zoomed_radar 220@ {state} True
change_blip_display 220@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 124@ {handleOrTemplate} 162@
125@ = create_char PedType.Mission3 {modelId} 287 {x} 113.3839 {y} 1814.261 {z} 24.4985
set_char_decision_maker 125@ {handleOrTemplate} 159@
set_char_heading 125@ {heading} 5.0273
give_weapon_to_char 125@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 125@ {state} True
set_char_health 125@ {health} 10
221@ = add_blip_for_char 125@
set_blip_always_display_on_zoomed_radar 221@ {state} True
change_blip_display 221@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 125@ {handleOrTemplate} 162@
126@ = create_char PedType.Mission3 {modelId} 287 {x} 165.6023 {y} 1850.0699 {z} 24.4985
set_char_decision_maker 126@ {handleOrTemplate} 159@
set_char_heading 126@ {heading} 5.0273
give_weapon_to_char 126@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 126@ {state} True
set_char_health 126@ {health} 10
222@ = add_blip_for_char 126@
set_blip_always_display_on_zoomed_radar 222@ {state} True
change_blip_display 222@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 126@ {handleOrTemplate} 162@
127@ = create_char PedType.Mission3 {modelId} 287 {x} 261.8728 {y} 1807.938 {z} 24.4985
set_char_decision_maker 127@ {handleOrTemplate} 159@
set_char_heading 127@ {heading} 5.0273
give_weapon_to_char 127@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 127@ {state} True
set_char_health 127@ {health} 10
223@ = add_blip_for_char 127@
set_blip_always_display_on_zoomed_radar 223@ {state} True
change_blip_display 223@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 127@ {handleOrTemplate} 162@
128@ = create_char PedType.Mission3 {modelId} 287 {x} 267.1389 {y} 1895.485 {z} 24.4985
set_char_decision_maker 128@ {handleOrTemplate} 159@
set_char_heading 128@ {heading} 119.7683
give_weapon_to_char 128@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 128@ {state} True
set_char_health 128@ {health} 10
224@ = add_blip_for_char 128@
set_blip_always_display_on_zoomed_radar 224@ {state} True
change_blip_display 224@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 128@ {handleOrTemplate} 162@
129@ = create_char PedType.Mission3 {modelId} 287 {x} 161.9575 {y} 1933.342 {z} 24.4985
set_char_decision_maker 129@ {handleOrTemplate} 159@
set_char_heading 129@ {heading} 119.7683
give_weapon_to_char 129@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 129@ {state} True
set_char_health 129@ {health} 10
225@ = add_blip_for_char 129@
set_blip_always_display_on_zoomed_radar 225@ {state} True
change_blip_display 225@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 129@ {handleOrTemplate} 162@
130@ = create_char PedType.Mission3 {modelId} 287 {x} 233.6724 {y} 1934.623 {z} 24.4985
set_char_decision_maker 130@ {handleOrTemplate} 159@
set_char_heading 130@ {heading} 119.7683
give_weapon_to_char 130@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 130@ {state} True
set_char_health 130@ {health} 10
226@ = add_blip_for_char 130@
set_blip_always_display_on_zoomed_radar 226@ {state} True
change_blip_display 226@ {display} BlipDisplay.BlipOnly
set_char_decision_maker 130@ {handleOrTemplate} 162@
load_scene_in_direction 69.91 {y} 1916.007 {z} 16.648 {heading} 273.4
do_fade 250 {direction} Fade.In

:MAF4_13283
clear_char_tasks_immediately $scplayer
set_time_of_day 21 {minutes} 30
clear_prints 
camera_reset_new_scriptables 
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
if 
  not is_car_dead 107@
goto_if_false @MAF4_13352
if 
  is_playback_going_on_for_car 107@
goto_if_false @MAF4_13352
stop_playback_recorded_car 107@

:MAF4_13352
delete_char 106@
delete_car 107@
unload_special_character 1
mark_model_as_no_longer_needed 483
227@ = add_blip_for_coord 211.604 {y} 1811.0909 {z} 20.8
print_now 'DST8_38' {time} 5000 {flag} 1
print 'DST8_7' {time} 5000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13600
164@ = 5

:MAF4_13441
if 
  164@ == 5
goto_if_false @MAF4_19124
if 
  192@ == 0
goto_if_false @MAF4_13513
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Infrared
goto_if_false @MAF4_13513
print_help 'DST8_37'
192@ = 1

:MAF4_13513
if 
  195@ == 0
goto_if_false @MAF4_13706
134@, 135@ = get_time_of_day 
if 
  134@ == 5
goto_if_false @MAF4_13706
if 
  135@ > 29
goto_if_false @MAF4_13706
do_fade 500 {direction} Fade.Out
193@ = 1

:MAF4_13589
if 
  get_fading_status 
goto_if_false @MAF4_13613
wait 0
goto @MAF4_13589

:MAF4_13613
set_char_coordinates $scplayer {x} 296.348 {y} 2474.2771 {z} 15.477
set_char_heading $scplayer {heading} 359.722
set_camera_behind_player 
do_fade 500 {direction} Fade.In
print_now 'DST8_41' {time} 5000 {flag} 1

:MAF4_13668
if 
  get_fading_status 
goto_if_false @MAF4_13692
wait 0
goto @MAF4_13668

:MAF4_13692
goto @MAF4_29854
195@ = 1

:MAF4_13706
if 
  193@ == 0
goto_if_false @MAF4_14035
if 
  194@ == 0
goto_if_false @MAF4_13803
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 52.5 {leftBottomY} 1952.11 {rightTopX} 295.92 {rightTopY} 1775.9301 {drawSphere} False
goto_if_false @MAF4_13803
print_now 'DST8_39' {time} 5000 {flag} 1
194@ = 1

:MAF4_13803
if 
  194@ == 1
goto_if_false @MAF4_14035
if 
  is_char_in_area_2d $scplayer {leftBottomX} 52.5 {leftBottomY} 1952.11 {rightTopX} 295.92 {rightTopY} 1775.9301 {drawSphere} False
goto_if_false @MAF4_13873
194@ = 0
goto @MAF4_14035

:MAF4_13873
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 36.9 {leftBottomY} 1961.8199 {rightTopX} 319.56 {rightTopY} 1760.29 {drawSphere} False
goto_if_false @MAF4_14035
do_fade 500 {direction} Fade.Out

:MAF4_13918
if 
  get_fading_status 
goto_if_false @MAF4_13942
wait 0
goto @MAF4_13918

:MAF4_13942
set_char_coordinates $scplayer {x} 296.348 {y} 2474.2771 {z} 15.477
set_char_heading $scplayer {heading} 359.722
set_camera_behind_player 
do_fade 500 {direction} Fade.In
print_now 'DST8_40' {time} 5000 {flag} 1

:MAF4_13997
if 
  get_fading_status 
goto_if_false @MAF4_14021
wait 0
goto @MAF4_13997

:MAF4_14021
goto @MAF4_29854
194@ = 2

:MAF4_14035
if 
  3 > 175@
goto_if_false @MAF4_14878
if 
  2 > 175@
goto_if_false @MAF4_14871
if 
  182@ == 0
goto_if_false @MAF4_14144
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 211.604 {y} 1811.0909 {z} 20.8 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MAF4_14144
182@ = 1

:MAF4_14144
if 
  182@ == 1
goto_if_false @MAF4_14871
if 
  179@ == 0
goto_if_false @MAF4_14255
remove_blip 227@
227@ = add_blip_for_coord 214.0 {y} 1872.0 {z} 12.14
print_now 'DST8_8' {time} 5000 {flag} 1
TIMERB = 0
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStart
179@ = 1

:MAF4_14255
if 
  179@ == 1
goto_if_false @MAF4_14419
if 
  180@ == 0
goto_if_false @MAF4_14346
if 
  slide_object $frontdoorr_a51 {posX} 219.941 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14346
180@ = 1

:MAF4_14346
if 
  181@ == 0
goto_if_false @MAF4_14419
if 
  slide_object $frontdoorl_a51 {posX} 207.842 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14419
181@ = 1

:MAF4_14419
if 
  179@ == 1
goto_if_false @MAF4_14500
if 
  180@ == 1
goto_if_false @MAF4_14500
if 
  181@ == 1
goto_if_false @MAF4_14500
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStop
179@ = 2

:MAF4_14500
if 
  179@ == 2
goto_if_false @MAF4_14564
if 
  TIMERB > 30000
goto_if_false @MAF4_14564
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStart
179@ = 3

:MAF4_14564
if 
  179@ == 3
goto_if_false @MAF4_14728
if 
  180@ == 1
goto_if_false @MAF4_14655
if 
  slide_object $frontdoorr_a51 {posX} 215.941 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14655
180@ = 0

:MAF4_14655
if 
  181@ == 1
goto_if_false @MAF4_14728
if 
  slide_object $frontdoorl_a51 {posX} 211.842 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14728
181@ = 0

:MAF4_14728
if 
  179@ == 3
goto_if_false @MAF4_14871
if 
  180@ == 0
goto_if_false @MAF4_14871
if 
  181@ == 0
goto_if_false @MAF4_14871
report_mission_audio_event_at_position 213.85 {y} 1874.6801 {z} 14.12 {soundId} ScriptSound.SoundBlastDoorSlideStop
remove_blip 227@
227@ = add_blip_for_coord 211.604 {y} 1811.0909 {z} 20.8
print_now 'DST8_9' {time} 5000 {flag} 1
179@ = 0
180@ = 0
180@ = 0
182@ = 0

:MAF4_14871
goto @MAF4_15024

:MAF4_14878
if 
  180@ == 5
goto_if_false @MAF4_14951
if 
  slide_object $frontdoorr_a51 {posX} 215.941 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_14951
180@ = 6

:MAF4_14951
if 
  181@ == 5
goto_if_false @MAF4_15024
if 
  slide_object $frontdoorl_a51 {posX} 211.842 {posY} 1874.571 {posZ} 13.903 {speedX} 0.1 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_15024
181@ = 6

:MAF4_15024
if 
  191@ == 0
goto_if_false @MAF4_15167
if 
  is_char_in_area_3d $scplayer {leftBottomX} 254.37 {leftBottomY} 1850.1 {leftBottomZ} 21.7 {rightTopX} 207.08 {rightTopY} 1873.36 {rightTopZ} 10.0 {drawSphere} False
goto_if_false @MAF4_15167
165@ = 0

:MAF4_15097
if 
  7 > 165@
goto_if_false @MAF4_15160
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15146
switch_on_ground_searchlight 35@(165@,7i) {state} False

:MAF4_15146
165@ += 1
goto @MAF4_15097

:MAF4_15160
191@ = 1

:MAF4_15167
if 
  191@ == 1
goto_if_false @MAF4_15310
if 
  not is_char_in_area_3d $scplayer {leftBottomX} 254.37 {leftBottomY} 1850.1 {leftBottomZ} 21.7 {rightTopX} 207.08 {rightTopY} 1873.36 {rightTopZ} 10.0 {drawSphere} False
goto_if_false @MAF4_15310
165@ = 0

:MAF4_15240
if 
  7 > 165@
goto_if_false @MAF4_15303
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15289
switch_on_ground_searchlight 35@(165@,7i) {state} True

:MAF4_15289
165@ += 1
goto @MAF4_15240

:MAF4_15303
191@ = 0

:MAF4_15310
165@ = 0

:MAF4_15317
if 
  7 > 165@
goto_if_false @MAF4_15478
if 
  167@(165@,7i) == 0
goto_if_false @MAF4_15464
if 
  does_object_exist 42@(165@,7i)
goto_if_false @MAF4_15464
91@ = get_object_health 42@(165@,7i)
if 
  5000 > 91@
goto_if_false @MAF4_15464
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15464
delete_searchlight 35@(165@,7i)
play_and_kill_fx_system 136@(165@,7i)
174@ += 1
167@(165@,7i) = 1

:MAF4_15464
165@ += 1
goto @MAF4_15317

:MAF4_15478
if 
  175@ == 0
goto_if_false @MAF4_15620
165@ = 0

:MAF4_15503
if and
  7 > 165@
  175@ == 0
goto_if_false @MAF4_15620
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15606
if 
  is_char_in_searchlight 35@(165@,7i) {handle} $scplayer
goto_if_false @MAF4_15606
198@ = 1
199@ = 0
gosub @MAF4_29738
TIMERA = 0
175@ = 1

:MAF4_15606
165@ += 1
goto @MAF4_15503

:MAF4_15620
if 
  175@ == 1
goto_if_false @MAF4_15792
if 
  TIMERA > 10000
goto_if_false @MAF4_15792
165@ = 0
175@ = 0

:MAF4_15671
if 
  7 > 165@
goto_if_false @MAF4_15753
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_15739
if 
  is_char_in_searchlight 35@(165@,7i) {handle} $scplayer
goto_if_false @MAF4_15739
175@ = 2

:MAF4_15739
165@ += 1
goto @MAF4_15671

:MAF4_15753
if 
  175@ == 0
goto_if_false @MAF4_15792
198@ = 2
201@ = 0
gosub @MAF4_29621

:MAF4_15792
if and
  174@ > 2
  2 > 175@
goto_if_false @MAF4_15824
175@ = 2

:MAF4_15824
if 
  175@ == 2
goto_if_false @MAF4_15987
remove_blip 227@
198@ = 3
196@ = 0
227@ = add_blip_for_coord 246.0 {y} 1862.64 {z} 19.89
165@ = 15

:MAF4_15888
if 
  22 > 165@
goto_if_false @MAF4_15959
if 
  not is_char_dead 109@(165@,22i)
goto_if_false @MAF4_15945
set_lvar_int_to_lvar_int 153@ = 109@(165@,22i)
gosub @MAF4_29816

:MAF4_15945
165@ += 1
goto @MAF4_15888

:MAF4_15959
gosub @MAF4_29738
180@ = 5
181@ = 5
175@ = 3

:MAF4_15987
165@ = 0

:MAF4_15994
if 
  22 > 165@
goto_if_false @MAF4_16084
if 
  is_char_dead 109@(165@,22i)
goto_if_false @MAF4_16070
if 
  does_blip_exist 205@(165@,22i)
goto_if_false @MAF4_16070
remove_blip 205@(165@,22i)
mark_char_as_no_longer_needed 109@(165@,22i)

:MAF4_16070
165@ += 1
goto @MAF4_15994

:MAF4_16084
if 
  175@ == 3
goto_if_false @MAF4_16183
if 
  locate_char_any_means_2d $scplayer {x} 246.0 {y} 1862.64 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MAF4_16183
print_help 'DST8_10'
remove_blip 227@
227@ = add_blip_for_coord 224.99 {y} 1859.1801 {z} 12.31
175@ = 4

:MAF4_16183
gosub @MAF4_29473
if 
  198@ == 1
goto_if_false @MAF4_16399
if 
  199@ == 0
goto_if_false @MAF4_16399
if 
  197@ == 0
goto_if_false @MAF4_16399
if 
  200@ > 1
goto_if_false @MAF4_16291
set_lvar_int_to_constant 156@ = 13604
set_lvar_text_label 157@s = 'DES8_BD'
gosub @MAF4_29431

:MAF4_16291
if 
  200@ == 1
goto_if_false @MAF4_16345
set_lvar_int_to_constant 156@ = 13602
set_lvar_text_label 157@s = 'DES8_BB'
gosub @MAF4_29431
200@ += 1

:MAF4_16345
if 
  200@ == 0
goto_if_false @MAF4_16399
set_lvar_int_to_constant 156@ = 13601
set_lvar_text_label 157@s = 'DES8_BA'
gosub @MAF4_29431
200@ += 1

:MAF4_16399
if 
  198@ == 2
goto_if_false @MAF4_16608
if 
  201@ == 0
goto_if_false @MAF4_16608
if 
  197@ == 0
goto_if_false @MAF4_16608
if 
  202@ > 1
goto_if_false @MAF4_16500
set_lvar_int_to_constant 156@ = 13607
set_lvar_text_label 157@s = 'DES8_CC'
gosub @MAF4_29431

:MAF4_16500
if 
  202@ == 1
goto_if_false @MAF4_16554
set_lvar_int_to_constant 156@ = 13606
set_lvar_text_label 157@s = 'DES8_CB'
gosub @MAF4_29431
202@ += 1

:MAF4_16554
if 
  202@ == 0
goto_if_false @MAF4_16608
set_lvar_int_to_constant 156@ = 13605
set_lvar_text_label 157@s = 'DES8_CA'
gosub @MAF4_29431
202@ += 1

:MAF4_16608
if 
  198@ == 3
goto_if_false @MAF4_16862
if 
  196@ == 0
goto_if_false @MAF4_16691
if 
  197@ == 0
goto_if_false @MAF4_16691
set_lvar_int_to_constant 156@ = 13611
set_lvar_text_label 157@s = 'DES8_DC'
gosub @MAF4_29431

:MAF4_16691
if 
  196@ == 1
goto_if_false @MAF4_16756
if 
  197@ == 0
goto_if_false @MAF4_16756
set_lvar_int_to_constant 156@ = 13617
set_lvar_text_label 157@s = 'DES8_EE'
gosub @MAF4_29431

:MAF4_16756
if 
  196@ == 2
goto_if_false @MAF4_16821
if 
  197@ == 0
goto_if_false @MAF4_16821
set_lvar_int_to_constant 156@ = 13616
set_lvar_text_label 157@s = 'DES8_ED'
gosub @MAF4_29431

:MAF4_16821
if 
  196@ == 3
goto_if_false @MAF4_16862
print_now 'DST8_14' {time} 7000 {flag} 1
196@ = 4

:MAF4_16862
if 
  183@ == 0
goto_if_false @MAF4_19124
if or
  is_char_in_area_3d $scplayer {leftBottomX} 207.917 {leftBottomY} 1874.33 {leftBottomZ} 10.0 {rightTopX} 2224.917 {rightTopY} 1868.78 {rightTopZ} 14.6 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} 224.99 {y} 1859.1801 {z} 12.31 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 2.0 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 201.99 {leftBottomY} 1874.7 {leftBottomZ} 12.3 {rightTopX} 225.47 {rightTopY} 1851.4301 {rightTopZ} 14.31 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} 226.38 {y} 1872.33 {z} 12.93 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @MAF4_19124
do_fade 250 {direction} Fade.Out
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 

:MAF4_17052
if 
  get_fading_status 
goto_if_false @MAF4_17076
wait 0
goto @MAF4_17052

:MAF4_17076
delete_object $a51ventcover
$a51ventcover = create_object #A51_VENTCOVERB {x} 245.968 {y} 1862.843 {z} 19.49
set_object_rotation $a51ventcover {x} 0.0 {y} 0.0 {z} -140.998
dont_remove_object $a51ventcover
switch_widescreen True
set_player_control $player1 {state} False
mark_model_as_no_longer_needed #A51_SPOTBULB
mark_model_as_no_longer_needed #A51_SPOTHOUSING
mark_model_as_no_longer_needed #A51_SPOTBASE
mark_model_as_no_longer_needed 483
unload_special_character 1
remove_car_recording 340
remove_car_recording 341
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 347
request_model 583
request_model 70
request_model 468
load_all_models_now 

:MAF4_17199
if or
  not has_model_loaded 583
  not has_model_loaded 70
  not has_model_loaded 468
goto_if_false @MAF4_17235
wait 0
goto @MAF4_17199

:MAF4_17235
clear_prints 
165@ = 0

:MAF4_17244
if 
  7 > 165@
goto_if_false @MAF4_17294
delete_searchlight 35@(165@,7i)
delete_object 42@(165@,7i)
165@ += 1
goto @MAF4_17244

:MAF4_17294
delete_object 92@
delete_object 93@
delete_object 94@
delete_object 95@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
delete_object 100@
delete_object 101@
delete_object 102@
delete_object 103@
delete_object 104@
delete_object 105@
165@ = 0

:MAF4_17371
if 
  22 > 165@
goto_if_false @MAF4_17421
delete_char 109@(165@,22i)
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_17371

:MAF4_17421
if 
  locate_char_any_means_2d $scplayer {x} 225.0 {y} 1859.0 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MAF4_17496
set_char_coordinates $scplayer {x} 224.44 {y} 1859.34 {z} 12.14
set_char_heading $scplayer {heading} 6.82
goto @MAF4_17526

:MAF4_17496
set_char_coordinates $scplayer {x} 214.14 {y} 1872.3879 {z} 12.14
set_char_heading $scplayer {heading} 267.68

:MAF4_17526
delete_object $frontdoorr_a51
delete_object $frontdoorl_a51
$frontdoorr_a51 = create_object_no_offset #A51_BLASTDOORR {x} 215.941 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorr_a51 {heading} 0.0
$frontdoorl_a51 = create_object_no_offset #A51_BLASTDOORL {x} 211.842 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorl_a51 {heading} 0.0
dont_remove_object $frontdoorr_a51
dont_remove_object $frontdoorl_a51
remove_blip 227@
110@ = create_char PedType.Mission1 {modelId} 287 {x} 248.128 {y} 1860.7321 {z} 8.76
set_char_heading 110@ {heading} 266.82
set_char_decision_maker 110@ {handleOrTemplate} 160@
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 110@ {range} 5.0
206@ = add_blip_for_char 110@
change_blip_display 206@ {display} BlipDisplay.BlipOnly
task_play_anim 110@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_blip_always_display_on_zoomed_radar 206@ {state} True
111@ = create_char PedType.Mission1 {modelId} 287 {x} 245.1791 {y} 1879.571 {z} 10.4609
set_char_heading 111@ {heading} 266.1505
set_char_decision_maker 111@ {handleOrTemplate} 160@
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 111@ {range} 5.0
set_char_accuracy 111@ {accuracy} 80
207@ = add_blip_for_char 111@
change_blip_display 207@ {display} BlipDisplay.BlipOnly
task_play_anim 111@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_blip_always_display_on_zoomed_radar 207@ {state} True
112@ = create_char PedType.Mission1 {modelId} 287 {x} 245.1999 {y} 1863.952 {z} 7.5618
set_char_heading 112@ {heading} 175.5655
set_char_decision_maker 112@ {handleOrTemplate} 160@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 112@ {range} 5.0
208@ = add_blip_for_char 112@
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 208@ {state} True
113@ = create_char PedType.Mission1 {modelId} 287 {x} 261.9116 {y} 1870.728 {z} 7.7578
set_char_decision_maker 113@ {handleOrTemplate} 160@
set_char_heading 113@ {heading} 186.0656
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 113@ {range} 5.0
flush_patrol_route 
extend_patrol_route 261.6897 {y} 1860.464 {z} 7.765 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 256.1913 {y} 1859.627 {z} 7.765 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 256.0048 {y} 1870.207 {z} 7.79 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 261.9116 {y} 1870.728 {z} 7.7578 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 113@ {speed} MoveState.Walk {mode} RouteMode.Loop
209@ = add_blip_for_char 113@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 209@ {state} True
132@ = create_car 583 {x} 241.0877 {y} 1843.951 {z} 7.7578
set_car_heading 132@ {heading} 268.7216
114@ = create_char PedType.Mission1 {modelId} 287 {x} 243.0288 {y} 1846.451 {z} 7.765
set_char_decision_maker 114@ {handleOrTemplate} 160@
set_char_health 114@ {health} 10
set_char_heading 114@ {heading} 270.7867
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 114@ {range} 5.0
flush_patrol_route 
extend_patrol_route 255.3062 {y} 1846.276 {z} 7.7734 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 243.0288 {y} 1846.451 {z} 7.765 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 114@ {speed} MoveState.Walk {mode} RouteMode.Loop
210@ = add_blip_for_char 114@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 210@ {state} True
228@ = add_blip_for_coord 267.015 {y} 1862.51 {z} 7.76
set_blip_always_display_on_zoomed_radar 228@ {state} True
player_take_off_goggles $player1 {animate} False
load_scene 248.83 {y} 1827.63 {z} 7.46
load_scene_in_direction 282.28 {y} 1814.04 {z} 7.54 {heading} 326.0
do_fade 500 {direction} Fade.In
set_radar_zoom 100
131@ = create_char PedType.Mission1 {modelId} 287 {x} 248.925 {y} 1832.3149 {z} 6.55
set_char_heading 131@ {heading} 1.5
give_weapon_to_char 131@ {weaponType} WeaponType.M4 {ammo} 9999
task_play_anim 131@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
skip_cutscene_start_internal @MAF4_19024
set_fixed_camera_position 278.6251 {y} 1812.837 {z} 4.8301 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 279.2745 {y} 1813.558 {z} 5.0711 {switchStyle} SwitchType.JumpCut
print_now 'DST8_42' {time} 5000 {flag} 1
TIMERA = 0

:MAF4_18632
if 
  5000 > TIMERA
goto_if_false @MAF4_18662
wait 0
goto @MAF4_18632

:MAF4_18662
load_scene_in_direction 255.93 {y} 1838.05 {z} 7.73 {heading} 142.0
set_fixed_camera_position 252.5037 {y} 1836.2419 {z} 8.5554 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 252.0391 {y} 1835.363 {z} 8.4453 {switchStyle} SwitchType.JumpCut
print_now 'DST8_43' {time} 8000 {flag} 1
TIMERA = 0

:MAF4_18758
if 
  4000 > TIMERA
goto_if_false @MAF4_18788
wait 0
goto @MAF4_18758

:MAF4_18788
load_scene 249.6 {y} 1869.03 {z} 11.0
set_fixed_camera_position 262.0718 {y} 1869.7271 {z} 13.162 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 261.4835 {y} 1868.9969 {z} 12.8154 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MAF4_18863
if 
  4000 > TIMERA
goto_if_false @MAF4_18893
wait 0
goto @MAF4_18863

:MAF4_18893
load_scene_in_direction 223.75 {y} 1822.5699 {z} 7.51 {heading} 68.0
set_fixed_camera_position 217.0121 {y} 1822.658 {z} 6.4205 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 216.015 {y} 1822.672 {z} 6.4959 {switchStyle} SwitchType.JumpCut
delete_char 131@
print_now 'DST8_44' {time} 5000 {flag} 1
TIMERA = 0

:MAF4_18994
if 
  5000 > TIMERA
goto_if_false @MAF4_19024
wait 0
goto @MAF4_18994

:MAF4_19024
skip_cutscene_end 
delete_char 131@
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'DST8_45' {time} 5000 {flag} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundClaxonStart
TIMERB = 0
203@ = 1
196@ = 0
197@ = 0
164@ = 6
183@ = 1

:MAF4_19124
if 
  183@ == 1
goto_if_false @MAF4_26649
if 
  203@ == 1
goto_if_false @MAF4_19186
if 
  TIMERB > 5000
goto_if_false @MAF4_19186
203@ = 2

:MAF4_19186
if 
  203@ == 2
goto_if_false @MAF4_20716
gosub @MAF4_29473
if 
  3 > 184@
goto_if_false @MAF4_20549
if 
  196@ == 0
goto_if_false @MAF4_19294
if 
  197@ == 0
goto_if_false @MAF4_19294
set_lvar_int_to_constant 156@ = 13620
set_lvar_text_label 157@s = 'DES8_FB'
gosub @MAF4_29431

:MAF4_19294
if 
  196@ == 1
goto_if_false @MAF4_19366
if 
  197@ == 0
goto_if_false @MAF4_19366
set_lvar_int_to_constant 156@ = 13621
set_lvar_text_label 157@s = 'DES8_FC'
gosub @MAF4_29431
TIMERB = 0

:MAF4_19366
if 
  TIMERB > 10000
goto_if_false @MAF4_19457
if 
  196@ == 2
goto_if_false @MAF4_19457
if 
  197@ == 0
goto_if_false @MAF4_19457
set_lvar_int_to_constant 156@ = 13625
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_19457
if 
  TIMERB > 7500
goto_if_false @MAF4_19548
if 
  196@ == 3
goto_if_false @MAF4_19548
if 
  197@ == 0
goto_if_false @MAF4_19548
set_lvar_int_to_constant 156@ = 13626
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_19548
if 
  TIMERB > 5500
goto_if_false @MAF4_19639
if 
  196@ == 4
goto_if_false @MAF4_19639
if 
  197@ == 0
goto_if_false @MAF4_19639
set_lvar_int_to_constant 156@ = 13631
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_19639
if 
  TIMERB > 8000
goto_if_false @MAF4_19730
if 
  196@ == 5
goto_if_false @MAF4_19730
if 
  197@ == 0
goto_if_false @MAF4_19730
set_lvar_int_to_constant 156@ = 13622
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_19730
if 
  TIMERB > 12000
goto_if_false @MAF4_19821
if 
  196@ == 6
goto_if_false @MAF4_19821
if 
  197@ == 0
goto_if_false @MAF4_19821
set_lvar_int_to_constant 156@ = 13632
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_19821
if 
  TIMERB > 12500
goto_if_false @MAF4_19912
if 
  196@ == 7
goto_if_false @MAF4_19912
if 
  197@ == 0
goto_if_false @MAF4_19912
set_lvar_int_to_constant 156@ = 13628
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_19912
if 
  TIMERB > 12000
goto_if_false @MAF4_20003
if 
  196@ == 8
goto_if_false @MAF4_20003
if 
  197@ == 0
goto_if_false @MAF4_20003
set_lvar_int_to_constant 156@ = 13624
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_20003
if 
  TIMERB > 25000
goto_if_false @MAF4_20094
if 
  196@ == 9
goto_if_false @MAF4_20094
if 
  197@ == 0
goto_if_false @MAF4_20094
set_lvar_int_to_constant 156@ = 13633
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_20094
if 
  TIMERB > 15000
goto_if_false @MAF4_20185
if 
  196@ == 10
goto_if_false @MAF4_20185
if 
  197@ == 0
goto_if_false @MAF4_20185
set_lvar_int_to_constant 156@ = 13634
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_20185
if 
  TIMERB > 20000
goto_if_false @MAF4_20276
if 
  196@ == 11
goto_if_false @MAF4_20276
if 
  197@ == 0
goto_if_false @MAF4_20276
set_lvar_int_to_constant 156@ = 13627
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_20276
if 
  TIMERB > 15000
goto_if_false @MAF4_20367
if 
  196@ == 12
goto_if_false @MAF4_20367
if 
  197@ == 0
goto_if_false @MAF4_20367
set_lvar_int_to_constant 156@ = 13635
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_20367
if 
  TIMERB > 10000
goto_if_false @MAF4_20458
if 
  196@ == 13
goto_if_false @MAF4_20458
if 
  197@ == 0
goto_if_false @MAF4_20458
set_lvar_int_to_constant 156@ = 13623
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_20458
if 
  TIMERB > 12000
goto_if_false @MAF4_20549
if 
  196@ == 14
goto_if_false @MAF4_20549
if 
  197@ == 0
goto_if_false @MAF4_20549
set_lvar_int_to_constant 156@ = 13629
set_lvar_text_label 157@s = 'DUMMY'
gosub @MAF4_29431
TIMERB = 0

:MAF4_20549
if 
  187@ == 2
goto_if_false @MAF4_20716
if 
  196@ == 0
goto_if_false @MAF4_20651
if 
  TIMERB > 2000
goto_if_false @MAF4_20651
if 
  197@ == 0
goto_if_false @MAF4_20651
set_lvar_int_to_constant 156@ = 13636
set_lvar_text_label 157@s = 'DST8_34'
gosub @MAF4_29431

:MAF4_20651
if 
  196@ == 1
goto_if_false @MAF4_20716
if 
  197@ == 0
goto_if_false @MAF4_20716
set_lvar_int_to_constant 156@ = 13637
set_lvar_text_label 157@s = 'DES8_HB'
gosub @MAF4_29431

:MAF4_20716
if 
  184@ == 0
goto_if_false @MAF4_21878
if 
  is_char_in_area_3d $scplayer {leftBottomX} 266.53 {leftBottomY} 1849.53 {leftBottomZ} 8.0 {rightTopX} 237.01 {rightTopY} 1837.55 {rightTopZ} 10.52 {drawSphere} False
goto_if_false @MAF4_21878
115@ = create_char PedType.Mission1 {modelId} 287 {x} 248.5208 {y} 1806.681 {z} 6.5619
set_char_decision_maker 115@ {handleOrTemplate} 160@
set_char_heading 115@ {heading} 359.2584
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 115@ {range} 5.0
flush_patrol_route 
extend_patrol_route 248.8298 {y} 1835.772 {z} 6.5471 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 248.5208 {y} 1809.681 {z} 6.5619 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 115@ {speed} MoveState.Walk {mode} RouteMode.Loop
211@ = add_blip_for_char 115@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_char_accuracy 115@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 211@ {state} True
116@ = create_char PedType.Mission1 {modelId} 287 {x} 254.1943 {y} 1835.365 {z} 3.7175
set_char_heading 116@ {heading} 271.2598
set_char_decision_maker 116@ {handleOrTemplate} 160@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 116@ {range} 5.0
212@ = add_blip_for_char 116@
change_blip_display 212@ {display} BlipDisplay.BlipOnly
task_play_anim 116@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 6000
set_blip_always_display_on_zoomed_radar 212@ {state} True
set_char_accuracy 116@ {accuracy} 80
117@ = create_char PedType.Mission1 {modelId} 287 {x} 249.41 {y} 1825.84 {z} 4.7
set_char_decision_maker 117@ {handleOrTemplate} 160@
set_char_heading 117@ {heading} 180.5658
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 117@ {range} 5.0
flush_patrol_route 
extend_patrol_route 249.63 {y} 1816.64 {z} 4.71 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 249.41 {y} 1825.84 {z} 4.7 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 117@ {speed} MoveState.Walk {mode} RouteMode.Loop
213@ = add_blip_for_char 117@
change_blip_display 213@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 213@ {state} True
118@ = create_char PedType.Mission1 {modelId} 287 {x} 236.5669 {y} 1813.103 {z} 6.4213
set_char_decision_maker 118@ {handleOrTemplate} 160@
set_char_heading 118@ {heading} 167.7513
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 118@ {range} 5.0
flush_patrol_route 
extend_patrol_route 236.0416 {y} 1803.519 {z} 6.4219 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 243.165 {y} 1803.049 {z} 6.4219 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 236.0416 {y} 1803.519 {z} 6.4219 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 236.5669 {y} 1813.103 {z} 6.4213 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 118@ {speed} MoveState.Walk {mode} RouteMode.Loop
214@ = add_blip_for_char 118@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 214@ {state} True
120@ = create_char PedType.Mission1 {modelId} 287 {x} 284.416 {y} 1816.59 {z} 3.8
set_char_decision_maker 120@ {handleOrTemplate} 160@
set_char_heading 120@ {heading} 83.92
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 120@ {range} 5.0
flush_patrol_route 
extend_patrol_route 265.829 {y} 1816.3101 {z} 4.7 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 284.416 {y} 1816.59 {z} 4.72 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 120@ {speed} MoveState.Walk {mode} RouteMode.Loop
216@ = add_blip_for_char 120@
change_blip_display 216@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 216@ {state} True
121@ = create_char PedType.Mission1 {modelId} 70 {x} 245.3671 {y} 1830.29 {z} 6.5547
set_char_heading 121@ {heading} 178.5107
set_char_decision_maker 121@ {handleOrTemplate} 161@
set_char_health 121@ {health} 10
task_play_anim 121@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
122@ = create_char PedType.Mission1 {modelId} 70 {x} 213.3669 {y} 1825.511 {z} 5.4141
set_char_heading 122@ {heading} 67.6565
set_char_decision_maker 122@ {handleOrTemplate} 161@
set_char_health 122@ {health} 10
task_play_anim 122@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
123@ = create_char PedType.Mission1 {modelId} 70 {x} 214.1768 {y} 1818.739 {z} 5.4216
set_char_heading 123@ {heading} 113.5239
set_char_decision_maker 123@ {handleOrTemplate} 161@
set_char_health 123@ {health} 10
task_play_anim 123@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
184@ = 1

:MAF4_21878
if 
  184@ == 1
goto_if_false @MAF4_22763
if 
  is_char_in_area_3d $scplayer {leftBottomX} 301.6813 {leftBottomY} 1821.801 {leftBottomZ} 7.1396 {rightTopX} 272.5243 {rightTopY} 1826.948 {rightTopZ} 10.3607 {drawSphere} False
goto_if_false @MAF4_22763
124@ = create_char PedType.Mission1 {modelId} 287 {x} 280.7216 {y} 1840.162 {z} 6.7266
set_char_decision_maker 124@ {handleOrTemplate} 160@
set_char_heading 124@ {heading} 262.0249
give_weapon_to_char 124@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 124@ {range} 5.0
flush_patrol_route 
extend_patrol_route 292.8436 {y} 1839.781 {z} 6.7266 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 280.7216 {y} 1840.162 {z} 6.7266 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 124@ {speed} MoveState.Walk {mode} RouteMode.Loop
220@ = add_blip_for_char 124@
change_blip_display 220@ {display} BlipDisplay.BlipOnly
set_char_accuracy 124@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 220@ {state} True
125@ = create_char PedType.Mission1 {modelId} 287 {x} 301.3004 {y} 1839.902 {z} 6.7266
set_char_decision_maker 125@ {handleOrTemplate} 160@
set_char_heading 125@ {heading} 91.0904
give_weapon_to_char 125@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 125@ {range} 5.0
flush_patrol_route 
extend_patrol_route 328.527 {y} 1839.673 {z} 6.8281 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 301.3004 {y} 1839.902 {z} 6.7266 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 125@ {speed} MoveState.Walk {mode} RouteMode.Loop
221@ = add_blip_for_char 125@
set_char_accuracy 125@ {accuracy} 80
change_blip_display 221@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 221@ {state} True
126@ = create_char PedType.Mission1 {modelId} 287 {x} 329.3857 {y} 1855.295 {z} 6.8357
set_char_decision_maker 126@ {handleOrTemplate} 160@
set_char_heading 126@ {heading} 272.6715
give_weapon_to_char 126@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 126@ {range} 5.0
flush_patrol_route 
extend_patrol_route 317.411 {y} 1855.274 {z} 6.7341 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 329.3857 {y} 1855.295 {z} 6.8357 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 126@ {speed} MoveState.Walk {mode} RouteMode.Loop
222@ = add_blip_for_char 126@
change_blip_display 222@ {display} BlipDisplay.BlipOnly
set_char_accuracy 126@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 222@ {state} True
127@ = create_char PedType.Mission1 {modelId} 287 {x} 298.3582 {y} 1856.054 {z} 6.8281
set_char_decision_maker 127@ {handleOrTemplate} 160@
set_char_heading 127@ {heading} 167.8933
give_weapon_to_char 127@ {weaponType} WeaponType.M4 {ammo} 9999
set_follow_node_threshold_distance 127@ {range} 5.0
flush_patrol_route 
extend_patrol_route 297.3482 {y} 1868.002 {z} 7.7578 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 298.3582 {y} 1856.054 {z} 6.8281 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 127@ {speed} MoveState.Walk {mode} RouteMode.Loop
223@ = add_blip_for_char 127@
change_blip_display 223@ {display} BlipDisplay.BlipOnly
set_char_accuracy 127@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 223@ {state} True
128@ = create_char PedType.Mission1 {modelId} 287 {x} 313.7065 {y} 1845.551 {z} 6.7341
set_char_heading 128@ {heading} 2.8719
set_char_decision_maker 128@ {handleOrTemplate} 160@
give_weapon_to_char 128@ {weaponType} WeaponType.M4 {ammo} 99999
set_follow_node_threshold_distance 128@ {range} 5.0
224@ = add_blip_for_char 128@
change_blip_display 224@ {display} BlipDisplay.BlipOnly
set_char_accuracy 128@ {accuracy} 80
set_blip_always_display_on_zoomed_radar 224@ {state} True
143@ = create_object_no_offset #A51_LABDOOR {x} 268.66 {y} 1864.059 {z} 7.5
dont_remove_object 143@
set_object_proofs 143@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
184@ = 2

:MAF4_22763
if 
  185@ == 0
goto_if_false @MAF4_22891
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 212.93 {y} 1822.8199 {z} 5.41 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MAF4_22891
TIMERA = 0
set_player_control $player1 {state} False
set_char_heading $scplayer {heading} 92.24
task_play_anim $scplayer {animationName} "ATM" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 500
185@ = 1

:MAF4_22891
if 
  185@ == 1
goto_if_false @MAF4_22967
if 
  TIMERA > 500
goto_if_false @MAF4_22967
clear_char_tasks $scplayer
print_now 'DES8_21' {time} 4000 {flag} 1
set_area51_sam_site False
set_player_control $player1 {state} True
185@ = 2

:MAF4_22967
165@ = 0

:MAF4_22974
if 
  22 > 165@
goto_if_false @MAF4_23064
if 
  is_char_dead 109@(165@,22i)
goto_if_false @MAF4_23050
if 
  does_blip_exist 205@(165@,22i)
goto_if_false @MAF4_23050
remove_blip 205@(165@,22i)
mark_char_as_no_longer_needed 109@(165@,22i)

:MAF4_23050
165@ += 1
goto @MAF4_22974

:MAF4_23064
if 
  184@ == 2
goto_if_false @MAF4_23247
if 
  locate_char_any_means_3d $scplayer {x} 287.0 {y} 1870.0 {z} 9.0 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @MAF4_23247
print_now 'DST8_46' {time} 5000 {flag} 1
133@ = create_char PedType.Mission1 {modelId} 70 {x} 276.57 {y} 1854.53 {z} 7.75
set_char_heading 133@ {heading} 175.15
set_char_decision_maker 133@ {handleOrTemplate} 159@
set_char_health 133@ {health} 10
task_stay_in_same_place 133@ {state} True
task_play_anim 133@ {animationName} "ATM" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000
186@ = 1
184@ = 3

:MAF4_23247
if 
  186@ == 1
goto_if_false @MAF4_23537
if 
  not is_char_dead 133@
goto_if_false @MAF4_23482
if or
  has_char_been_damaged_by_char 133@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 133@
  is_char_shooting_in_area $scplayer {leftBottomX} 282.25 {leftBottomY} 1852.36 {topRightX} 264.28 {topRightY} 1863.6899 {drawSphere} False
  is_char_in_area_2d $scplayer {leftBottomX} 282.25 {leftBottomY} 1852.36 {rightTopX} 264.28 {rightTopY} 1863.6899 {drawSphere} False
goto_if_false @MAF4_23475
task_hands_up 133@ {time} 20000
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MAF4_23412
attach_mission_audio_to_char MissionAudioSlot.Slot2 {handle} 133@
play_mission_audio MissionAudioSlot.Slot2
print_now 'DES8_AA' {time} 2000 {flag} 1

:MAF4_23412
145@ = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 276.57 {y} 1854.53 {z} 8.75
set_char_decision_maker 133@ {handleOrTemplate} 161@
229@ = add_blip_for_pickup 145@
print 'DST8_25' {time} 5000 {flag} 1
186@ = 2

:MAF4_23475
goto @MAF4_23537

:MAF4_23482
145@ = create_pickup #KEYCARD {pickupType} PickupType.Once {x} 276.57 {y} 1854.53 {z} 8.75
229@ = add_blip_for_pickup 145@
print_now 'DST8_25' {time} 5000 {flag} 1
186@ = 2

:MAF4_23537
if 
  186@ == 2
goto_if_false @MAF4_23639
if 
  is_char_dead 133@
goto_if_false @MAF4_23611
if 
  204@ == 0
goto_if_false @MAF4_23611
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'DST8_25'
204@ = 1

:MAF4_23611
if 
  has_pickup_been_collected 145@
goto_if_false @MAF4_23639
remove_blip 229@
186@ = 3

:MAF4_23639
if 
  184@ == 3
goto_if_false @MAF4_23808
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 267.015 {y} 1862.51 {z} 7.76 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 5.0 {drawSphere} True
goto_if_false @MAF4_23808
if 
  186@ == 3
goto_if_false @MAF4_23792
set_char_heading $scplayer {heading} 6.3
TIMERA = 0
set_player_control $player1 {state} False
task_play_anim $scplayer {animationName} "ATM" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 500
184@ = 4
goto @MAF4_23808

:MAF4_23792
print_now 'DST8_24' {time} 5000 {flag} 1

:MAF4_23808
if 
  184@ == 4
goto_if_false @MAF4_25042
if 
  does_object_exist 143@
goto_if_false @MAF4_25042
if 
  TIMERA > 500
goto_if_false @MAF4_25042
187@ = 1
if 
  does_object_exist 143@
goto_if_false @MAF4_23892
report_mission_audio_event_at_object 143@ {soundId} ScriptSound.SoundShutterDoorStart

:MAF4_23892
delete_char 115@
delete_char 118@
delete_char 121@
delete_char 122@
delete_char 123@
delete_char 110@
delete_char 111@
delete_char 112@
delete_char 113@
delete_char 114@
clear_char_tasks $scplayer
set_player_control $player1 {state} True
115@ = create_char PedType.Mission1 {modelId} 287 {x} 261.5664 {y} 1891.85 {z} 7.4446
set_char_decision_maker 115@ {handleOrTemplate} 159@
set_char_heading 115@ {heading} 212.7731
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 115@ {state} True
set_char_health 115@ {health} 150
set_char_accuracy 115@ {accuracy} 80
211@ = add_blip_for_char 115@
change_blip_display 211@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 211@ {state} True
set_lvar_int_to_lvar_int 153@ = 115@
gosub @MAF4_29816
118@ = create_char PedType.Mission1 {modelId} 287 {x} 268.4905 {y} 1890.074 {z} 4.875
set_char_decision_maker 118@ {handleOrTemplate} 159@
set_char_heading 118@ {heading} 176.3921
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 118@ {state} True
set_char_health 118@ {health} 150
set_char_accuracy 118@ {accuracy} 30
214@ = add_blip_for_char 118@
change_blip_display 214@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 214@ {state} True
set_lvar_int_to_lvar_int 153@ = 118@
gosub @MAF4_29816
122@ = create_char PedType.Mission1 {modelId} 287 {x} 274.3991 {y} 1880.725 {z} -1.3518
set_char_decision_maker 122@ {handleOrTemplate} 159@
set_char_heading 122@ {heading} 65.8577
give_weapon_to_char 122@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 122@ {state} True
set_char_health 122@ {health} 150
set_char_accuracy 122@ {accuracy} 80
218@ = add_blip_for_char 122@
change_blip_display 218@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 218@ {state} True
set_lvar_int_to_lvar_int 153@ = 122@
gosub @MAF4_29816
123@ = create_char PedType.Mission1 {modelId} 287 {x} 268.9641 {y} 1878.019 {z} -4.5078
set_char_decision_maker 123@ {handleOrTemplate} 159@
set_char_heading 123@ {heading} 352.3847
give_weapon_to_char 123@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 123@ {state} True
set_char_health 123@ {health} 150
set_char_accuracy 123@ {accuracy} 40
219@ = add_blip_for_char 123@
change_blip_display 219@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 219@ {state} True
set_lvar_int_to_lvar_int 153@ = 123@
gosub @MAF4_29816
110@ = create_char PedType.Mission1 {modelId} 287 {x} 262.9983 {y} 1883.624 {z} -9.2031
set_char_decision_maker 110@ {handleOrTemplate} 159@
set_char_heading 110@ {heading} 259.5976
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 110@ {state} True
set_char_health 110@ {health} 100
set_char_accuracy 110@ {accuracy} 80
206@ = add_blip_for_char 110@
change_blip_display 206@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 206@ {state} True
set_lvar_int_to_lvar_int 153@ = 110@
gosub @MAF4_29816
111@ = create_char PedType.Mission1 {modelId} 287 {x} 268.0892 {y} 1889.709 {z} -13.8984
set_char_decision_maker 111@ {handleOrTemplate} 159@
set_char_heading 111@ {heading} 197.1955
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 111@ {state} True
set_char_health 111@ {health} 150
set_char_accuracy 111@ {accuracy} 25
207@ = add_blip_for_char 111@
change_blip_display 207@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 207@ {state} True
set_lvar_int_to_lvar_int 153@ = 111@
gosub @MAF4_29816
112@ = create_char PedType.Mission1 {modelId} 287 {x} 274.8945 {y} 1884.525 {z} -18.5859
set_char_decision_maker 112@ {handleOrTemplate} 159@
set_char_heading 112@ {heading} 117.7696
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 112@ {state} True
set_char_health 112@ {health} 120
set_char_accuracy 112@ {accuracy} 80
208@ = add_blip_for_char 112@
change_blip_display 208@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 208@ {state} True
set_lvar_int_to_lvar_int 153@ = 112@
gosub @MAF4_29816
113@ = create_char PedType.Mission1 {modelId} 287 {x} 270.4637 {y} 1878.031 {z} -22.7266
set_char_decision_maker 113@ {handleOrTemplate} 159@
set_char_heading 113@ {heading} 117.7696
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 113@ {state} True
set_char_health 113@ {health} 150
set_char_accuracy 113@ {accuracy} 85
209@ = add_blip_for_char 113@
change_blip_display 209@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 209@ {state} True
set_lvar_int_to_lvar_int 153@ = 113@
gosub @MAF4_29816
114@ = create_char PedType.Mission1 {modelId} 287 {x} 262.6877 {y} 1883.484 {z} -27.9766
set_char_decision_maker 114@ {handleOrTemplate} 159@
set_char_heading 114@ {heading} 117.7696
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 114@ {state} True
set_char_health 114@ {health} 150
set_char_accuracy 114@ {accuracy} 80
210@ = add_blip_for_char 114@
change_blip_display 210@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 210@ {state} True
set_lvar_int_to_lvar_int 153@ = 114@
gosub @MAF4_29816
mark_car_as_no_longer_needed 132@
mark_model_as_no_longer_needed 583
144@ = create_pickup_with_ammo 370 {pickupType} PickupType.Once {ammo} 0 {x} 268.7 {y} 1884.1 {z} -30.085
remove_blip 228@
228@ = add_blip_for_pickup 144@
set_blip_always_display_on_zoomed_radar 228@ {state} True
clear_prints 
print_now 'DST8_34' {time} 5000 {flag} 1
184@ = 5

:MAF4_25042
if 
  187@ == 1
goto_if_false @MAF4_25160
if 
  does_object_exist 143@
goto_if_false @MAF4_25160
if 
  slide_object 143@ {posX} 268.66 {posY} 1864.059 {posZ} 12.2 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.08 {collisionCheck} False
goto_if_false @MAF4_25160
report_mission_audio_event_at_object 143@ {soundId} ScriptSound.SoundShutterDoorStop
196@ = 0
197@ = 0
TIMERB = 0
187@ = 2

:MAF4_25160
if 
  184@ == 5
goto_if_false @MAF4_26071
if 
  has_pickup_been_collected 144@
goto_if_false @MAF4_26071
remove_blip 228@
set_player_control $player1 {state} False
switch_widescreen True
set_time_of_day 9 {minutes} 0
set_char_coordinates $scplayer {x} 268.591 {y} 1884.469 {z} -31.0869
set_char_heading $scplayer {heading} 180.99
task_jetpack $scplayer
set_fixed_camera_position 268.5177 {y} 1886.297 {z} -29.5611 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 268.5393 {y} 1885.316 {z} -29.7523 {switchStyle} SwitchType.JumpCut
set_interpolation_parameters 0.0 {time} 3000
request_model 352
request_model 483
load_special_character 1 {modelName} 'TRUTH'
print_now 'DST8_26' {time} 7000 {flag} 1

:MAF4_25351
if or
  not has_model_loaded 352
  not has_model_loaded 483
  not has_special_character_loaded 1
goto_if_false @MAF4_25387
wait 0
goto @MAF4_25351

:MAF4_25387
delete_car 132@
mark_model_as_no_longer_needed 583
165@ = 0

:MAF4_25404
if 
  22 > 165@
goto_if_false @MAF4_25454
delete_char 109@(165@,22i)
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_25404

:MAF4_25454
112@ = create_char PedType.Mission1 {modelId} 287 {x} 139.9523 {y} 1929.079 {z} 18.2062
set_char_decision_maker 112@ {handleOrTemplate} 159@
give_weapon_to_char 112@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 112@ {state} True
set_char_health 112@ {health} 50
set_char_accuracy 112@ {accuracy} 30
113@ = create_char PedType.Mission1 {modelId} 287 {x} 127.6658 {y} 1885.153 {z} 17.0346
set_char_decision_maker 113@ {handleOrTemplate} 159@
give_weapon_to_char 113@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 113@ {state} True
set_char_health 113@ {health} 50
set_char_accuracy 113@ {accuracy} 30
114@ = create_char PedType.Mission1 {modelId} 287 {x} 114.7912 {y} 1830.386 {z} 16.6406
set_char_decision_maker 114@ {handleOrTemplate} 159@
give_weapon_to_char 114@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 114@ {state} True
set_char_health 114@ {health} 50
set_char_accuracy 114@ {accuracy} 40
115@ = create_char PedType.Mission1 {modelId} 287 {x} 205.6079 {y} 1860.557 {z} 19.6406
set_char_decision_maker 115@ {handleOrTemplate} 159@
give_weapon_to_char 115@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 115@ {state} True
set_char_health 115@ {health} 50
set_char_accuracy 115@ {accuracy} 30
116@ = create_char PedType.Mission1 {modelId} 287 {x} 245.2025 {y} 1881.998 {z} 19.1052
set_char_decision_maker 116@ {handleOrTemplate} 159@
give_weapon_to_char 116@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 116@ {state} True
set_char_health 116@ {health} 50
set_char_accuracy 116@ {accuracy} 40
117@ = create_char PedType.Mission1 {modelId} 287 {x} 262.8257 {y} 1807.6689 {z} 24.4985
set_char_decision_maker 117@ {handleOrTemplate} 159@
give_weapon_to_char 117@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 117@ {state} True
set_char_health 117@ {health} 50
set_char_accuracy 117@ {accuracy} 30
118@ = create_char PedType.Mission1 {modelId} 287 {x} 279.2588 {y} 1863.757 {z} 16.6406
set_char_decision_maker 118@ {handleOrTemplate} 159@
give_weapon_to_char 118@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 118@ {state} True
set_char_health 118@ {health} 50
set_char_accuracy 118@ {accuracy} 30
119@ = create_char PedType.Mission1 {modelId} 287 {x} 279.2344 {y} 1901.905 {z} 16.6406
set_char_decision_maker 119@ {handleOrTemplate} 159@
give_weapon_to_char 119@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 119@ {state} True
set_char_health 119@ {health} 50
set_char_accuracy 119@ {accuracy} 40
120@ = create_char PedType.Mission1 {modelId} 287 {x} 254.6844 {y} 1907.714 {z} 19.4742
set_char_decision_maker 120@ {handleOrTemplate} 159@
give_weapon_to_char 120@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 120@ {state} True
set_char_health 120@ {health} 50
set_char_accuracy 120@ {accuracy} 30
delete_object 143@
143@ = create_object_no_offset #A51_LABDOOR {x} 268.66 {y} 1864.059 {z} 7.5
TIMERA = 0
184@ = 6

:MAF4_26071
if 
  189@ == 1
goto_if_false @MAF4_26160
if 
  does_object_exist $launchdoor_a51
goto_if_false @MAF4_26160
if 
  slide_object $launchdoor_a51 {posX} 276.14 {posY} 1884.0601 {posZ} 15.924 {speedX} 0.05 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
goto_if_false @MAF4_26160
189@ = 2

:MAF4_26160
if 
  184@ == 6
goto_if_false @MAF4_26237
if 
  TIMERA > 1000
goto_if_false @MAF4_26237
point_camera_at_point 268.5247 {y} 1886.084 {z} -28.5841 {switchStyle} SwitchType.Interpolation
189@ = 1
TIMERA = 0
184@ = 7

:MAF4_26237
if 
  184@ == 7
goto_if_false @MAF4_26649
if 
  TIMERA > 4000
goto_if_false @MAF4_26649
force_weather_now WeatherType.SunnyDesert
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 200
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
set_object_coordinates $launchdoor_a51 {x} 276.14 {y} 1884.0601 {z} 15.924
set_player_enter_car_button $player1 {enabled} False
clear_prints 
remove_blip 228@
set_radar_zoom 0
228@ = add_blip_for_coord 268.9 {y} 1884.33 {z} 19.91
109@ = create_char PedType.Mission1 {modelId} 287 {x} 271.62 {y} 1878.08 {z} -2.32
set_char_decision_maker 109@ {handleOrTemplate} 159@
set_char_heading 109@ {heading} 212.7731
give_weapon_to_char 109@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 109@ {state} True
set_char_health 109@ {health} 50
set_char_accuracy 109@ {accuracy} 30
set_lvar_int_to_lvar_int 153@ = 109@
gosub @MAF4_29816
110@ = create_char PedType.Mission1 {modelId} 287 {x} 266.112 {y} 1876.84 {z} 7.44
set_char_decision_maker 110@ {handleOrTemplate} 159@
set_char_heading 110@ {heading} 328.04
give_weapon_to_char 110@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 110@ {state} True
set_char_health 110@ {health} 50
set_char_accuracy 110@ {accuracy} 30
set_lvar_int_to_lvar_int 153@ = 110@
gosub @MAF4_29816
111@ = create_char PedType.Mission1 {modelId} 287 {x} 274.432 {y} 1888.28 {z} 3.21
set_char_decision_maker 111@ {handleOrTemplate} 159@
set_char_heading 111@ {heading} 328.0
give_weapon_to_char 111@ {weaponType} WeaponType.M4 {ammo} 9999
task_stay_in_same_place 111@ {state} True
set_char_health 111@ {health} 50
set_char_accuracy 111@ {accuracy} 30
set_lvar_int_to_lvar_int 153@ = 111@
gosub @MAF4_29816
183@ = 2
188@ = 1
184@ = 8

:MAF4_26649
if 
  183@ == 2
goto_if_false @MAF4_29424
if 
  187@ == 3
goto_if_false @MAF4_26887
gosub @MAF4_29473
if 
  196@ == 0
goto_if_false @MAF4_26757
if 
  197@ == 0
goto_if_false @MAF4_26757
set_lvar_int_to_constant 156@ = 13638
set_lvar_text_label 157@s = 'DST8_35'
gosub @MAF4_29431

:MAF4_26757
if 
  196@ == 1
goto_if_false @MAF4_26822
if 
  197@ == 0
goto_if_false @MAF4_26822
set_lvar_int_to_constant 156@ = 13639
set_lvar_text_label 157@s = 'DES8_JB'
gosub @MAF4_29431

:MAF4_26822
if 
  196@ == 2
goto_if_false @MAF4_26887
if 
  197@ == 0
goto_if_false @MAF4_26887
set_lvar_int_to_constant 156@ = 13640
set_lvar_text_label 157@s = 'DES8_JC'
gosub @MAF4_29431

:MAF4_26887
if 
  8 > 188@
goto_if_false @MAF4_27309
if 
  188@ == 1
goto_if_false @MAF4_26948
print_help 'DST8_27'
TIMERB = 0
188@ = 2

:MAF4_26948
if 
  188@ == 2
goto_if_false @MAF4_27010
if 
  TIMERB > 6000
goto_if_false @MAF4_27010
print_help 'DST8_28'
TIMERB = 0
188@ = 3

:MAF4_27010
if 
  188@ == 3
goto_if_false @MAF4_27072
if 
  TIMERB > 6000
goto_if_false @MAF4_27072
print_help 'DST8_29'
TIMERB = 0
188@ = 4

:MAF4_27072
if 
  188@ == 4
goto_if_false @MAF4_27134
if 
  TIMERB > 6000
goto_if_false @MAF4_27134
print_help 'DST8_30'
TIMERB = 0
188@ = 5

:MAF4_27134
if 
  188@ == 5
goto_if_false @MAF4_27196
if 
  TIMERB > 6000
goto_if_false @MAF4_27196
print_help 'DST8_31'
TIMERB = 0
188@ = 6

:MAF4_27196
if 
  188@ == 6
goto_if_false @MAF4_27258
if 
  TIMERB > 6000
goto_if_false @MAF4_27258
print_help 'DST8_33'
TIMERB = 0
188@ = 7

:MAF4_27258
if 
  188@ == 7
goto_if_false @MAF4_27309
if 
  TIMERB > 6000
goto_if_false @MAF4_27309
TIMERB = 0
188@ = 8

:MAF4_27309
if 
  184@ == 8
goto_if_false @MAF4_28264
if 
  locate_char_any_means_3d $scplayer {x} 268.73 {y} 1883.96 {z} 17.85 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @MAF4_28264
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundClaxonStop
187@ = 3
196@ = 0
197@ = 0
report_mission_audio_event_at_position 268.73 {y} 1883.96 {z} 17.85 {soundId} ScriptSound.SoundClaxonStart
42@ = create_object_no_offset #A51_SPOTBULB {x} 103.946 {y} 1901.047 {z} 36.246
92@ = create_object_no_offset #A51_SPOTHOUSING {x} 103.946 {y} 1901.047 {z} 36.246
93@ = create_object_no_offset #A51_SPOTBASE {x} 103.946 {y} 1901.047 {z} 36.246
set_object_health 42@ {health} 5000
set_object_only_damaged_by_player 42@ {state} True
43@ = create_object_no_offset #A51_SPOTBULB {x} 161.962 {y} 1933.043 {z} 36.246
94@ = create_object_no_offset #A51_SPOTHOUSING {x} 161.962 {y} 1933.043 {z} 36.246
95@ = create_object_no_offset #A51_SPOTBASE {x} 161.962 {y} 1933.043 {z} 36.246
set_object_health 43@ {health} 5000
set_object_only_damaged_by_player 43@ {state} True
44@ = create_object_no_offset #A51_SPOTBULB {x} 233.486 {y} 1934.7889 {z} 36.246
96@ = create_object_no_offset #A51_SPOTHOUSING {x} 233.486 {y} 1934.7889 {z} 36.246
97@ = create_object_no_offset #A51_SPOTBASE {x} 233.486 {y} 1934.7889 {z} 36.246
set_object_health 44@ {health} 5000
set_object_only_damaged_by_player 44@ {state} True
45@ = create_object_no_offset #A51_SPOTBULB {x} 267.116 {y} 1895.241 {z} 36.246
98@ = create_object_no_offset #A51_SPOTHOUSING {x} 267.116 {y} 1895.241 {z} 36.246
99@ = create_object_no_offset #A51_SPOTBASE {x} 267.116 {y} 1895.241 {z} 36.246
set_object_health 45@ {health} 5000
set_object_only_damaged_by_player 45@ {state} True
46@ = create_object_no_offset #A51_SPOTBULB {x} 262.145 {y} 1807.62 {z} 36.246
100@ = create_object_no_offset #A51_SPOTHOUSING {x} 262.145 {y} 1807.62 {z} 36.246
101@ = create_object_no_offset #A51_SPOTBASE {x} 262.145 {y} 1807.62 {z} 36.246
set_object_health 46@ {health} 5000
set_object_only_damaged_by_player 46@ {state} True
47@ = create_object_no_offset #A51_SPOTBULB {x} 166.003 {y} 1849.937 {z} 36.246
102@ = create_object_no_offset #A51_SPOTHOUSING {x} 166.003 {y} 1849.937 {z} 36.246
103@ = create_object_no_offset #A51_SPOTBASE {x} 166.003 {y} 1849.937 {z} 36.246
set_object_health 47@ {health} 5000
set_object_only_damaged_by_player 47@ {state} True
48@ = create_object_no_offset #A51_SPOTBULB {x} 113.439 {y} 1814.405 {z} 36.246
104@ = create_object_no_offset #A51_SPOTHOUSING {x} 113.439 {y} 1814.405 {z} 36.246
105@ = create_object_no_offset #A51_SPOTBASE {x} 113.439 {y} 1814.405 {z} 36.246
set_object_health 48@ {health} 5000
set_object_only_damaged_by_player 48@ {state} True
165@ = 0

:MAF4_28031
if 
  22 > 165@
goto_if_false @MAF4_28095
if 
  not is_char_dead 109@(165@,22i)
goto_if_false @MAF4_28081
task_kill_char_on_foot 109@(165@,22i) {target} $scplayer

:MAF4_28081
165@ += 1
goto @MAF4_28031

:MAF4_28095
remove_blip 228@
228@ = add_blip_for_coord -794.8 {y} 2425.1841 {z} 156.124
print_now 'DST8_35' {time} 7000 {flag} 1
107@ = create_car 483 {x} -783.169 {y} 2430.03 {z} 156.23
freeze_car_position_and_dont_load_collision 107@ {state} True
set_car_heading 107@ {heading} 171.04
change_car_colour 107@ {color1} 1 {color2} 1
give_vehicle_paintjob 107@ {paintjobId} 0
106@ = create_char_inside_car 107@ {pedType} PedType.Special {modelId} 290
set_char_decision_maker 106@ {handleOrTemplate} 159@
set_car_proofs 107@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs 106@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_vehicle_is_considered_by_player 107@ {state} False
190@ = 1
184@ = 9

:MAF4_28264
if 
  184@ == 9
goto_if_false @MAF4_28385
if 
  not locate_char_any_means_2d $scplayer {x} 276.14 {y} 1884.0601 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @MAF4_28385
165@ = 0

:MAF4_28327
if 
  22 > 165@
goto_if_false @MAF4_28378
mark_char_as_no_longer_needed 109@(165@,22i)
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 356
165@ += 1
goto @MAF4_28327

:MAF4_28378
184@ = 10

:MAF4_28385
if 
  190@ == 1
goto_if_false @MAF4_28533
if 
  not is_char_dead 106@
goto_if_false @MAF4_28533
if 
  locate_char_any_means_char_2d 106@ {target} $scplayer {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @MAF4_28533
report_mission_audio_event_at_position 268.73 {y} 1883.96 {z} 17.85 {soundId} ScriptSound.SoundClaxonStop
if 
  not is_car_dead 107@
goto_if_false @MAF4_28493
freeze_car_position_and_dont_load_collision 107@ {state} False

:MAF4_28493
108@ = create_car 468 {x} -776.66 {y} 2426.4099 {z} 156.11
set_car_heading 108@ {heading} 175.776
190@ = 2

:MAF4_28533
if 
  190@ == 2
goto_if_false @MAF4_28761
if 
  locate_char_any_means_3d $scplayer {x} -791.14 {y} 2425.3301 {z} 156.2 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MAF4_28761
clear_area -810.94 {y} 2360.4199 {z} 150.81 {radius} 200.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
do_fade 500 {direction} Fade.Out
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41431
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13644

:MAF4_28665
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MAF4_28695
wait 0
goto @MAF4_28665

:MAF4_28695
if 
  get_fading_status 
goto_if_false @MAF4_28719
wait 0
goto @MAF4_28695

:MAF4_28719
set_char_coordinates $scplayer {x} -791.178 {y} 2425.3401 {z} 156.16
set_char_heading $scplayer {heading} 256.615
clear_char_tasks_immediately $scplayer
190@ = 3

:MAF4_28761
if 
  190@ == 3
goto_if_false @MAF4_29307
set_fixed_camera_position -785.0004 {y} 2435.679 {z} 157.5931 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -784.9536 {y} 2434.6819 {z} 157.5342 {switchStyle} SwitchType.JumpCut
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
do_fade 250 {direction} Fade.In
play_mission_audio MissionAudioSlot.Slot1
print_now 'TRUX_BH' {time} 2000 {flag} 1

:MAF4_28864
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_28890
wait 0
goto @MAF4_28864

:MAF4_28890
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 41432
play_mission_audio MissionAudioSlot.Slot2
print_now 'DES8_MB' {time} 3000 {flag} 1
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MAF4_28961
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_28987
wait 0
goto @MAF4_28961

:MAF4_28987
clear_char_tasks_immediately $scplayer
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 13645

:MAF4_29003
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_29029
wait 0
goto @MAF4_29003

:MAF4_29029
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_MC' {time} 3000 {flag} 1

:MAF4_29049
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_29075
wait 0
goto @MAF4_29049

:MAF4_29075
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 13646
if 
  not is_car_dead 107@
goto_if_false @MAF4_29136
car_goto_coordinates 107@ {x} -810.94 {y} 2360.4199 {z} 150.81
TIMERA = 0
190@ = 4

:MAF4_29136
if 
  not is_car_dead 107@
goto_if_false @MAF4_29163
task_look_at_vehicle $scplayer {vehicle} 107@ {time} 5000

:MAF4_29163
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @MAF4_29189
wait 0
goto @MAF4_29163

:MAF4_29189
play_mission_audio MissionAudioSlot.Slot2
print_now 'DES8_MD' {time} 2000 {flag} 1

:MAF4_29209
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @MAF4_29235
wait 0
goto @MAF4_29209

:MAF4_29235
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_29261
wait 0
goto @MAF4_29235

:MAF4_29261
play_mission_audio MissionAudioSlot.Slot1
print_now 'DES8_ME' {time} 2000 {flag} 1

:MAF4_29281
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_29307
wait 0
goto @MAF4_29281

:MAF4_29307
if 
  190@ == 4
goto_if_false @MAF4_29424
if 
  TIMERA > 2000
goto_if_false @MAF4_29424
do_fade 500 {direction} Fade.Out

:MAF4_29351
if 
  get_fading_status 
goto_if_false @MAF4_29375
wait 0
goto @MAF4_29351

:MAF4_29375
clear_char_tasks_immediately $scplayer
delete_car 107@
delete_char 106@
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
do_fade 500 {direction} Fade.In
goto @MAF4_29924
190@ = 5

:MAF4_29424
goto @MAF4_1996

:MAF4_29431
if 
  197@ == 0
goto_if_false @MAF4_29471
load_mission_audio MissionAudioSlot.Slot1 {audioId} 156@
set_lvar_text_label 154@s = 157@s
197@ = 1

:MAF4_29471
return 

:MAF4_29473
if 
  197@ == 1
goto_if_false @MAF4_29552
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MAF4_29552
if 
  not is_lvar_text_label_equal_to_text_label 154@s == 'DUMMY'
goto_if_false @MAF4_29541
print_now 154@s {time} 4000 {flag} 1

:MAF4_29541
play_mission_audio MissionAudioSlot.Slot1
197@ = 2

:MAF4_29552
if 
  197@ == 2
goto_if_false @MAF4_29619
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @MAF4_29619
196@ += 1
199@ += 1
201@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
197@ = 0

:MAF4_29619
return 

:MAF4_29621
165@ = 0

:MAF4_29628
if 
  7 > 165@
goto_if_false @MAF4_29736
if 
  does_searchlight_exist 35@(165@,7i)
goto_if_false @MAF4_29722
move_searchlight_between_coords 35@(165@,7i) {fromX} 49@(165@,7f) {fromY} 56@(165@,7f) {fromZ} 63@(165@,7f) {toX} 70@(165@,7f) {toY} 77@(165@,7f) {toZ} 84@(165@,7f) {speed} 0.3

:MAF4_29722
165@ += 1
goto @MAF4_29628

:MAF4_29736
return 

:MAF4_29738
166@ = 0

:MAF4_29745
if 
  7 > 166@
goto_if_false @MAF4_29814
if 
  does_searchlight_exist 35@(166@,7i)
goto_if_false @MAF4_29800
point_searchlight_at_char 35@(166@,7i) {handle} $scplayer {speed} 0.125

:MAF4_29800
166@ += 1
goto @MAF4_29745

:MAF4_29814
return 

:MAF4_29816
152@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 152@
perform_sequence_task 153@ {sequence} 152@
clear_sequence_task 152@
return 

:MAF4_29854
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
delete_object $a51ventcover
$a51ventcover = create_object #A51_VENTCOVERB {x} 245.968 {y} 1862.843 {z} 19.49
set_object_rotation $a51ventcover {x} 0.0 {y} 0.0 {z} -140.998
dont_remove_object $a51ventcover
return 

:MAF4_29924
$flag_desert_mission_counter += 1
set_int_stat StatId.PassedDesert8 {value} 1
$3242 = create_pickup_with_ammo 351 {pickupType} PickupType.OnStreetSlow {ammo} 30 {x} 297.8289 {y} 1846.623 {z} 6.7266
$3243 = create_pickup_with_ammo 370 {pickupType} PickupType.OnStreetSlow {ammo} 0 {x} 268.7 {y} 1884.1 {z} -30.085
$3343 = create_pickup #BODYARMOUR {pickupType} PickupType.OnStreetSlow {x} 266.2813 {y} 1816.3979 {z} 1.594
$goggle_pickups = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} 212.8813 {y} 1811.005 {z} 21.4187
$3250 = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} 1270.52 {y} -795.5929 {z} 1084.254
$3251 = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} -350.499 {y} 1608.437 {z} 75.642
$3252 = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} -2224.6799 {y} 129.1278 {z} 1035.62
remove_blip $desert2_contact_blip
register_mission_passed 'DESERT8'
play_mission_passed_tune 1
player_made_progress 1
print_with_number_big 'M_PASSD' {num} 1 {duration} 5000 {style} TextStyle.Middle
clear_wanted_level $player1
remove_blip $desert2_contact_blip
return 

:MAF4_30178
$onmission = 0
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed #A51_SPOTBULB
mark_model_as_no_longer_needed #A51_SPOTHOUSING
mark_model_as_no_longer_needed #A51_SPOTBASE
mark_model_as_no_longer_needed 483
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 583
mark_model_as_no_longer_needed 70
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 369
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_radar_zoom 0
release_weather 
force_interior_lighting_for_player $player1 {state} False
set_disable_military_zones False
if 
  is_player_playing $player1
goto_if_false @MAF4_30315
shut_char_up $scplayer {state} False
set_player_enter_car_button $player1 {enabled} False

:MAF4_30315
mark_char_as_no_longer_needed 106@
unload_special_character 1
delete_object 143@
remove_pickup 144@
remove_pickup 145@
remove_pickup 146@
remove_pickup 147@
remove_pickup 148@
remove_pickup 149@
remove_pickup 150@
remove_pickup 151@
show_blips_on_all_levels False
if 
  does_object_exist $launchdoor_a51
goto_if_false @MAF4_30409
set_object_coordinates $launchdoor_a51 {x} 268.664 {y} 1884.0601 {z} 15.925

:MAF4_30409
delete_object $frontdoorr_a51
delete_object $frontdoorl_a51
$frontdoorr_a51 = create_object_no_offset #A51_BLASTDOORR {x} 215.941 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorr_a51 {heading} 0.0
$frontdoorl_a51 = create_object_no_offset #A51_BLASTDOORL {x} 211.842 {y} 1874.571 {z} 13.903
set_object_heading $frontdoorl_a51 {heading} 0.0
dont_remove_object $frontdoorr_a51
dont_remove_object $frontdoorl_a51
165@ = 0

:MAF4_30500
if 
  22 > 165@
goto_if_false @MAF4_30541
remove_blip 205@(165@,22i)
165@ += 1
goto @MAF4_30500

:MAF4_30541
remove_blip 227@
remove_blip 228@
remove_blip 229@
165@ = 0

:MAF4_30563
if 
  7 > 165@
goto_if_false @MAF4_30613
delete_searchlight 35@(165@,7i)
delete_object 42@(165@,7i)
165@ += 1
goto @MAF4_30563

:MAF4_30613
delete_object 92@
delete_object 93@
delete_object 94@
delete_object 95@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
delete_object 100@
delete_object 101@
delete_object 102@
delete_object 103@
delete_object 104@
delete_object 105@
release_weather 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_area51_sam_site True
set_wanted_multiplier 1.0
release_weather 
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 82---------------
// Originally: Green Goo

:DES10
gosub @DES10_36
if 
  has_deatharrest_been_executed 
goto_if_false @DES10_27
gosub @DES10_4098

:DES10_27
gosub @DES10_4501
terminate_this_script 

:DES10_36
$onmission = 1
register_mission_given 
script_name 'DES10'
wait 0
load_mission_text 'DSERT10'
force_weather_now WeatherType.ExtraSunnyDesert
make_player_gang_disappear 
57@ = get_int_stat StatId.Fat
if 
  57@ > 600
goto_if_false @DES10_330
load_cutscene 'D10_ALT'

:DES10_114
if 
  not has_cutscene_loaded 
goto_if_false @DES10_138
wait 0
goto @DES10_114

:DES10_138
clear_area 405.2136 {y} 2525.8999 {z} 16.4918 {radius} 7.5 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES10_171
if 
  not has_cutscene_finished 
goto_if_false @DES10_195
wait 0
goto @DES10_171

:DES10_195
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES10_208
if 
  get_fading_status 
goto_if_false @DES10_232
wait 0
goto @DES10_208

:DES10_232
clear_cutscene 
clear_area 419.4488 {y} 2529.9141 {z} 15.6219 {radius} 0.5 {clearParticles} False
load_scene 419.4488 {y} 2529.9141 {z} 15.6219
set_char_coordinates $scplayer {x} 419.4488 {y} 2529.9141 {z} 15.6219
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
return 
goto @DES10_461

:DES10_330
load_cutscene 'DES_10A'

:DES10_341
if 
  not has_cutscene_loaded 
goto_if_false @DES10_365
wait 0
goto @DES10_341

:DES10_365
clear_area 419.6919 {y} 2529.9141 {z} 16.6612 {radius} 6.86 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES10_398
if 
  not has_cutscene_finished 
goto_if_false @DES10_422
wait 0
goto @DES10_398

:DES10_422
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES10_435
if 
  get_fading_status 
goto_if_false @DES10_459
wait 0
goto @DES10_435

:DES10_459
clear_cutscene 

:DES10_461
release_weather 
request_model 352
request_model 537
request_model 569
request_model 353
request_model 432
request_model 287
request_model 370
load_all_models_now 

:DES10_500
if or
  not has_model_loaded 352
  not has_model_loaded 537
  not has_model_loaded 569
  not has_model_loaded 353
  not has_model_loaded 432
  not has_model_loaded 287
goto_if_false @DES10_552
wait 0
goto @DES10_500

:DES10_552
if 
  not is_player_playing $player1
goto_if_false @DES10_579
wait 0
goto @DES10_552

:DES10_579
switch_random_trains False
clear_area 419.4488 {y} 2529.9141 {z} 15.6219 {radius} 0.5 {clearParticles} False
load_scene 419.4488 {y} 2529.9141 {z} 15.6219
set_char_coordinates $scplayer {x} 419.4488 {y} 2529.9141 {z} 15.6219
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
set_relationship RelationshipType.Like {ofPedType} PedType.Gang8 {toPedType} PedType.Player1

:DES10_664
if 
  not has_model_loaded 370
goto_if_false @DES10_691
wait 0
goto @DES10_664

:DES10_691
make_player_gang_reappear 
do_fade 1500 {direction} Fade.In
set_player_control $player1 {state} True
58@ = create_mission_train 13 {x} 2120.2571 {y} 2694.0581 {z} 9.8359 {direction} False
lock_car_doors 58@ {lockStatus} CarLock.Locked
set_train_speed 58@ {speed} 5.0
set_train_cruise_speed 58@ {speed} 5.0
print_now 'DE10_01' {time} 5000 {flag} 1
$x, $y, $z = get_car_coordinates 58@
$z += 10.0
44@ = 0

:DES10_805
if 
  12 > 44@
goto_if_false @DES10_946
create_char PedType.CivMale {modelId} 287 {x} $x {y} $y {z} $z {var_handle} 66@(44@,12i)
task_stay_in_same_place 66@(44@,12i) {state} True
set_char_only_damaged_by_player 66@(44@,12i) {state} True
give_weapon_to_char 66@(44@,12i) {weaponType} WeaponType.Mp5 {ammo} 9999
task_kill_char_on_foot 66@(44@,12i) {target} $scplayer
set_char_relationship 66@(44@,12i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 66@(44@,12i) {range} 150.0
set_load_collision_for_char_flag 66@(44@,12i) {state} False
44@ += 1
goto @DES10_805

:DES10_946
attach_char_to_car 66@ {vehicle} 58@ {xOffset} -0.0032 {yOffset} -8.3584 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 67@ {vehicle} 58@ {xOffset} 0.1129 {yOffset} 6.521 {zOffset} 1.9285 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Mp5
59@ = get_train_carriage 58@ {number} 1
attach_char_to_car 68@ {vehicle} 59@ {xOffset} -0.014 {yOffset} -7.179 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 69@ {vehicle} 59@ {xOffset} -1.0891 {yOffset} 0.6968 {zOffset} -0.055 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Mp5
78@ = create_object_no_offset #KMILITARY_CRATE {x} $x {y} $y {z} $z
attach_object_to_car 78@ {handle} 59@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
make_object_targettable 78@ {state} True
set_object_health 78@ {health} 180
81@ = add_blip_for_object 78@
84@ = create_object_no_offset #KMILITARY_BASE {x} $x {y} $y {z} $z
attach_object_to_car 84@ {handle} 59@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
85@ = create_object_no_offset #BLOCKPALLET {x} $x {y} $y {z} $z
attach_object_to_car 85@ {handle} 59@ {xOffset} 0.2634 {yOffset} 1.2508 {zOffset} -0.3321 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
86@ = create_object_no_offset #TEMP_CRATE1 {x} $x {y} $y {z} $z
attach_object_to_car 86@ {handle} 59@ {xOffset} 1.1025 {yOffset} -7.3122 {zOffset} -1.0766 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
87@ = create_object_no_offset #TEMP_CRATE1 {x} $x {y} $y {z} $z
attach_object_to_car 87@ {handle} 59@ {xOffset} 0.8835 {yOffset} -6.5365 {zOffset} -1.1047 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 93.7464
88@ = create_object_no_offset #TEMP_CRATE1 {x} $x {y} $y {z} $z
attach_object_to_car 88@ {handle} 59@ {xOffset} 1.1395 {yOffset} -5.6969 {zOffset} -1.0827 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 83.6459
89@ = create_object_no_offset #K_SMASHBOXES {x} $x {y} $y {z} $z
attach_object_to_car 89@ {handle} 59@ {xOffset} 0.4817 {yOffset} -1.5356 {zOffset} -1.0651 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 93.1856
60@ = get_train_carriage 58@ {number} 2
attach_char_to_car 70@ {vehicle} 60@ {xOffset} -0.014 {yOffset} -7.179 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 71@ {vehicle} 60@ {xOffset} -1.0891 {yOffset} 0.6968 {zOffset} -0.055 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Mp5
61@ = get_train_carriage 58@ {number} 3
attach_char_to_car 72@ {vehicle} 61@ {xOffset} 0.3372 {yOffset} -1.3877 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 73@ {vehicle} 61@ {xOffset} -0.0956 {yOffset} 2.1291 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
79@ = create_object_no_offset #KMILITARY_CRATE {x} $x {y} $y {z} $z
attach_object_to_car 79@ {handle} 61@ {xOffset} -0.0403 {yOffset} 4.0293 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
make_object_targettable 79@ {state} True
set_object_health 79@ {health} 180
82@ = add_blip_for_object 79@
90@ = create_object_no_offset #KMILITARY_BASE {x} $x {y} $y {z} $z
attach_object_to_car 90@ {handle} 61@ {xOffset} -0.0403 {yOffset} 4.0293 {zOffset} -1.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 2.7605
91@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 91@ {handle} 61@ {xOffset} -0.0177 {yOffset} 0.6971 {zOffset} -1.0662 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 91.0
92@ = create_object_no_offset #K_SMASHBOXES {x} $x {y} $y {z} $z
attach_object_to_car 92@ {handle} 61@ {xOffset} -0.0228 {yOffset} -2.9213 {zOffset} -1.0651 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 87.9095
93@ = create_object_no_offset #K_SMASHBOXES {x} $x {y} $y {z} $z
attach_object_to_car 93@ {handle} 61@ {xOffset} 0.1054 {yOffset} 6.4364 {zOffset} -1.0651 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 89.7187
96@ = create_object_no_offset #K_CARGO4 {x} $x {y} $y {z} $z
attach_object_to_car 96@ {handle} 61@ {xOffset} 0.4192 {yOffset} -6.0624 {zOffset} -1.0628 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 2.7605
62@ = get_train_carriage 58@ {number} 4
attach_char_to_car 74@ {vehicle} 62@ {xOffset} -0.516 {yOffset} 7.4724 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
103@ = create_car 432 {x} $x {y} $y {z} $z
lock_car_doors 103@ {lockStatus} CarLock.Locked
attach_car_to_car 103@ {handle} 62@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
63@ = get_train_carriage 58@ {number} 5
attach_char_to_car 75@ {vehicle} 63@ {xOffset} 0.2861 {yOffset} -5.3712 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 76@ {vehicle} 63@ {xOffset} -0.2277 {yOffset} 7.3808 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
attach_char_to_car 77@ {vehicle} 63@ {xOffset} 0.6604 {yOffset} 3.8015 {zOffset} -0.055 {heading} Facing.Right {headingRange} 360.0 {weaponType} WeaponType.Mp5
80@ = create_object_no_offset #KMILITARY_CRATE {x} $x {y} $y {z} $z
attach_object_to_car 80@ {handle} 63@ {xOffset} 0.0853 {yOffset} 5.9501 {zOffset} -1.0583 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967
make_object_targettable 80@ {state} True
set_object_health 80@ {health} 180
83@ = add_blip_for_object 80@
97@ = create_object_no_offset #KMILITARY_BASE {x} $x {y} $y {z} $z
attach_object_to_car 97@ {handle} 63@ {xOffset} 0.0853 {yOffset} 5.9501 {zOffset} -1.0583 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 92.239
98@ = create_object_no_offset #K_CARGO4 {x} $x {y} $y {z} $z
attach_object_to_car 98@ {handle} 63@ {xOffset} -0.8464 {yOffset} -6.5879 {zOffset} -1.0628 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.12
100@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 100@ {handle} 63@ {xOffset} 0.8877 {yOffset} 0.1707 {zOffset} -1.0564 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 177.5167
101@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 101@ {handle} 63@ {xOffset} -0.6907 {yOffset} 0.205 {zOffset} -1.0662 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 179.6863
102@ = create_object_no_offset #K_CARGO1 {x} $x {y} $y {z} $z
attach_object_to_car 102@ {handle} 63@ {xOffset} 0.0036 {yOffset} 2.2326 {zOffset} -1.0644 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 267.6086
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 36@ = $game_timer
36@ += 600000
35@ = 0
109@ = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 40600

:DES10_2637
wait 0
$game_timer = get_game_timer 
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DES10_2668
goto @DES10_4116

:DES10_2668
if 
  not is_car_dead 58@
goto_if_false @DES10_2694
set_train_cruise_speed 58@ {speed} 10.0

:DES10_2694
if 
  109@ == 0
goto_if_false @DES10_2766
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 58@ {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @DES10_2766
print_now 'DE10_06' {time} 5000 {flag} 1
109@ += 1

:DES10_2766
44@ = 0

:DES10_2773
if 
  3 > 44@
goto_if_false @DES10_3984
if 
  104@(44@,3i) == 0
goto_if_false @DES10_2851
if 
  does_object_exist 78@(44@,3i)
goto_if_false @DES10_2851
107@ += 1
104@(44@,3i) += 1

:DES10_2851
if 
  104@(44@,3i) == 1
goto_if_false @DES10_2920
if 
  has_object_been_damaged 78@(44@,3i)
goto_if_false @DES10_2920
remove_blip 81@(44@,3i)
108@ += 1
104@(44@,3i) += 1

:DES10_2920
if 
  104@(44@,3i) == 2
goto_if_false @DES10_3379
if 
  is_int_lvar_equal_to_int_lvar 108@ == 107@
goto_if_false @DES10_3343
$x, $y, $z = get_object_coordinates 78@(44@,3i)
$z += 1.0
delete_object 78@(44@,3i)
create_object_no_offset #GREEN_GLOOP {x} $x {y} $y {z} $z {var_handle} 78@(44@,3i)
if 
  44@ == 0
goto_if_false @DES10_3102
if 
  not is_car_dead 59@
goto_if_false @DES10_3095
attach_object_to_car 78@(44@,3i) {handle} 59@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -0.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967

:DES10_3095
goto @DES10_3243

:DES10_3102
if 
  44@ == 1
goto_if_false @DES10_3185
if 
  not is_car_dead 61@
goto_if_false @DES10_3178
attach_object_to_car 78@(44@,3i) {handle} 61@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -0.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967

:DES10_3178
goto @DES10_3243

:DES10_3185
if 
  not is_car_dead 63@
goto_if_false @DES10_3243
attach_object_to_car 78@(44@,3i) {handle} 63@ {xOffset} -0.0485 {yOffset} 5.578 {zOffset} -0.0661 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 90.1967

:DES10_3243
set_object_collision 78@(44@,3i) {state} False
add_blip_for_object 78@(44@,3i) {var_handle} 81@(44@,3i)
print_now 'DE10_02' {time} 5000 {flag} 1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 40600
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DES10_3325
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 78@(44@,3i)
play_mission_audio MissionAudioSlot.Slot3

:DES10_3325
104@(44@,3i) = 4
goto @DES10_3379

:DES10_3343
mark_object_as_no_longer_needed 78@(44@,3i)
print_now 'DE10_03' {time} 5000 {flag} 1
104@(44@,3i) += 1

:DES10_3379
if 
  104@(44@,3i) == 4
goto_if_false @DES10_3646
$x, $y, $z = get_object_coordinates 78@(44@,3i)
add_float_lvar_to_float_lvar 110@ += 111@
if 
  110@ > 0.2
goto_if_false @DES10_3458
111@ = -0.01

:DES10_3458
if 
  0.0 > 110@
goto_if_false @DES10_3499
110@ = 0.0
111@ = 0.01

:DES10_3499
draw_weaponshop_corona $x {y} $y {z} $z {size} 110@ {coronaType} CoronaType.Moon {flareType} FlareType.Headlights {r} 0 {g} 255 {b} 0
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @DES10_3646
delete_object 78@(44@,3i)
clear_mission_audio MissionAudioSlot.Slot3
print_now 'DE10_04' {time} 5000 {flag} 1
remove_blip 81@(44@,3i)
add_blip_for_coord 408.7383 {y} 2515.8379 {z} 15.4918 {var_handle} 81@(44@,3i)
104@(44@,3i) += 1
35@ += 1

:DES10_3646
if 
  104@(44@,3i) == 5
goto_if_false @DES10_3970
if 
  locate_char_any_means_3d $scplayer {x} 408.7383 {y} 2515.8379 {z} 15.4918 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @DES10_3970
do_fade 1000 {direction} Fade.Out

:DES10_3723
if 
  get_fading_status 
goto_if_false @DES10_3747
wait 0
goto @DES10_3723

:DES10_3747
clear_char_tasks_immediately $scplayer
load_cutscene 'DES_10B'

:DES10_3763
if 
  not has_cutscene_loaded 
goto_if_false @DES10_3787
wait 0
goto @DES10_3763

:DES10_3787
clear_area 398.7038 {y} 2529.7351 {z} 16.563 {radius} 7.35 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:DES10_3820
if 
  not has_cutscene_finished 
goto_if_false @DES10_3844
wait 0
goto @DES10_3820

:DES10_3844
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DES10_3857
if 
  get_fading_status 
goto_if_false @DES10_3881
wait 0
goto @DES10_3857

:DES10_3881
clear_cutscene 
clear_area 402.8737 {y} 2531.582 {z} 15.5558 {radius} 0.5 {clearParticles} False
load_scene 402.8737 {y} 2531.582 {z} 15.5558
set_char_coordinates $scplayer {x} 402.8737 {y} 2531.582 {z} 15.5558
set_char_heading $scplayer {heading} 224.0
set_camera_behind_player 
set_player_control $player1 {state} True
goto @DES10_4116

:DES10_3970
44@ += 1
goto @DES10_2773

:DES10_3984
if 
  35@ == 0
goto_if_false @DES10_4091
if 
  not is_car_dead 58@
goto_if_false @DES10_4091
if 
  is_int_var_greater_than_int_lvar $game_timer > 36@
goto_if_false @DES10_4091
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 58@ {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DES10_4091
print_now 'DE10_05' {time} 5000 {flag} 1
goto @DES10_4098

:DES10_4091
goto @DES10_2637

:DES10_4098
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:DES10_4116
$pilot_revenue = 10000
112@ = create_pickup 370 {pickupType} PickupType.OnStreetSlow {x} 431.045 {y} 2537.78 {z} 16.2463
$pilot_cash_pickup = create_protection_pickup 420.5204 {y} 2532.687 {z} 16.0869 {revenueLimit} $pilot_revenue {revenueRate} $pilot_revenue
set_player_control $player1 {state} False
wait 0
switch_widescreen True
load_scene 407.8369 {y} 2515.6499 {z} 18.9138
set_fixed_camera_position 407.8369 {y} 2515.6499 {z} 18.9138 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 408.3296 {y} 2516.52 {z} 18.9449 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:DES10_4265
if 
  get_fading_status 
goto_if_false @DES10_4289
wait 0
goto @DES10_4265

:DES10_4289
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position 419.7284 {y} 2526.5459 {z} 16.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 419.897 {y} 2527.531 {z} 16.8356 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $pilot_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:DES10_4396
if 
  get_fading_status 
goto_if_false @DES10_4420
wait 0
goto @DES10_4396

:DES10_4420
do_fade 500 {direction} Fade.In
set_int_stat StatId.PassedDesert10 {value} 1
restore_camera_jumpcut 
$flag_desert_mission_counter += 1
print_with_number_big 'M_PASS' {num} 20000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 20000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'DESER10'
player_made_progress 1
remove_blip $desert2_contact_blip
return 

:DES10_4501
if 
  is_int_lvar_equal_to_int_lvar 108@ == 107@
goto_if_false @DES10_4524
clear_mission_audio MissionAudioSlot.Slot3

:DES10_4524
remove_blip 81@
remove_blip 82@
remove_blip 83@
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 537
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 432
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 370
switch_random_trains True
$onmission = 0
mission_has_finished 
return 

//-------------Mission 83---------------
// Originally: Learning to Fly

:DESERT5
script_name 'DESERT5'
gosub @DESERT5_47
if 
  has_deatharrest_been_executed 
goto_if_false @DESERT5_38
gosub @DESERT5_29947

:DESERT5_38
gosub @DESERT5_30139
terminate_this_script 

:DESERT5_47
clear_this_print 'M_FAIL'
$onmission = 1
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_85
register_mission_given 

:DESERT5_85
load_mission_text 'DSERT5'
set_fading_colour 0 {g} 0 {b} 0
wait 0
do_fade 500 {direction} Fade.Out

:DESERT5_115
if 
  get_fading_status 
goto_if_false @DESERT5_139
wait 0
goto @DESERT5_115

:DESERT5_139
$noticeboard_x = 415.55
$noticeboard_y = 2533.5701
$noticeboard_z = 19.18
230@ = 0
226@ = 0
227@ = 0
229@ = 0
228@ = 0
231@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
237@ = 0
238@ = 0
44@ = -81.36
45@ = 2476.0
46@ = 435.92
47@ = 2528.6201
set_lvar_float_to_lvar_float 48@ = 44@
add_float_lvar_to_float_lvar 48@ += 46@
48@ /= 2.0
set_lvar_float_to_lvar_float 49@ = 45@
add_float_lvar_to_float_lvar 49@ += 47@
49@ /= 2.0
50@ = 321.52
set_lvar_float_to_lvar_float 51@ = 49@
52@ = 17.16
73@ = -383.79
set_lvar_float_to_lvar_float 76@ = 49@
79@ = 147.09
set_lvar_float_to_lvar_float 74@ = 73@
74@ -= 300.0
set_lvar_float_to_lvar_float 77@ = 76@
set_lvar_float_to_lvar_float 80@ = 79@
80@ -= 20.0
set_lvar_float_to_lvar_float 75@ = 73@
75@ -= 650.0
set_lvar_float_to_lvar_float 78@ = 76@
set_lvar_float_to_lvar_float 81@ = 79@
81@ += 10.0
53@ = -383.79
set_lvar_float_to_lvar_float 54@ = 49@
55@ = 85.09
set_lvar_float_to_lvar_float 82@ = 44@
set_lvar_float_to_lvar_float 83@ = 49@
84@ = 33.3
set_lvar_float_to_lvar_float 109@ = 50@
109@ -= 500.0
set_lvar_float_to_lvar_float 110@ = 51@
set_lvar_float_to_lvar_float 111@ = 52@
111@ += 120.0
56@ = 308.0
set_lvar_float_to_lvar_float 57@ = 49@
58@ = 17.07
63@ = 3
66@ = 2
set_lvar_float_to_lvar_float 112@ = 48@
set_lvar_float_to_lvar_float 113@ = 49@
114@ = 80.0
set_lvar_float_to_lvar_float 115@ = 112@
115@ += 200.0
129@ = 15.0
set_lvar_float_to_lvar_float 136@ = 48@
set_lvar_float_to_lvar_float 137@ = 49@
138@ = 15.53
set_lvar_float_to_lvar_float 139@ = 136@
139@ += 350.0
set_lvar_float_to_lvar_float 140@ = 137@
141@ = 900.0
$d5_plane_reached_takeoff_point = 0
$d5_plane_taken_off = 0
$d5_plane_reached_required_altitude = 0
159@ = 0
160@ = 0
177@ = 0
178@ = 0
215@ = 0
216@ = 0
218@ = 0
219@ = 0
if 
  219@ == 1
goto_if_false @DESERT5_954
35@ = create_car 476 {x} 0.0 {y} 0.0 {z} -100.0
70@ = create_char PedType.Mission1 {modelId} 0 {x} 0.0 {y} 0.0 {z} -100.0
156@ = 0

:DESERT5_894
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_954
create_car 514 {x} 0.0 {y} 0.0 {z} -100.0 {var_handle} 60@(156@,3i)
156@ += 1
goto @DESERT5_894

:DESERT5_954
clear_this_print_big_now TextStyle.Middle
clear_area_of_cars 44@ {leftBottomY} 45@ {leftBottomZ} 0.0 {rightTopX} 46@ {rightTopY} 47@ {rightTopZ} 50.0
show_update_stats False
set_area51_sam_site False
switch_police_helis False
239@ = get_max_wanted_level 
set_max_wanted_level 0
request_model 476
request_model 425
request_model 514
request_model 400
request_model 513
stream_script 1
load_all_models_now 

:DESERT5_1034
if or
  not has_model_loaded 476
  not has_model_loaded 425
  not has_model_loaded 514
  not has_model_loaded 400
  not has_model_loaded 513
goto_if_false @DESERT5_1081
wait 0
goto @DESERT5_1034

:DESERT5_1081
if 
  not has_streamed_script_loaded 1
goto_if_false @DESERT5_1107
wait 0
goto @DESERT5_1081

:DESERT5_1107
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRFLY"
load_sprite 2 {spriteName} "SILFLY"
load_sprite 3 {spriteName} "GOLFLY"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
load_sprite 10 {spriteName} "NAWTXT"
set_always_draw_3d_markers True
if 
  $d5_watched_first_cutscene == 0
goto_if_false @DESERT5_2570
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 50.0 {clearParticles} False
set_char_coordinates $scplayer {x} 414.8 {y} 2534.2 {z} 18.18
set_char_heading $scplayer {heading} 200.0
set_lvar_text_label 179@s = 'MTOR04A'
set_lvar_text_label 181@s = 'MTOR04B'
set_lvar_text_label 183@s = 'MTOR04C'
set_lvar_text_label 185@s = 'MTOR04D'
set_lvar_text_label 187@s = 'MTOR04E'
set_lvar_text_label 189@s = 'MTOR04F'
set_lvar_text_label 191@s = 'MTOR04G'
set_lvar_text_label 193@s = 'MTOR04H'
set_lvar_text_label 195@s = 'MTOR04J'
set_lvar_text_label 197@s = 'MTOR04K'
set_lvar_text_label 199@s = 'MTOR04L'
set_lvar_text_label 201@s = 'MTOR04M'
set_lvar_int_to_constant 203@ = 29618
set_lvar_int_to_constant 204@ = 29619
set_lvar_int_to_constant 205@ = 29620
set_lvar_int_to_constant 206@ = 29621
set_lvar_int_to_constant 207@ = 29622
set_lvar_int_to_constant 208@ = 29623
set_lvar_int_to_constant 209@ = 29624
set_lvar_int_to_constant 210@ = 29625
set_lvar_int_to_constant 211@ = 29626
set_lvar_int_to_constant 212@ = 29627
set_lvar_int_to_constant 213@ = 29628
set_lvar_int_to_constant 214@ = 29629
217@ = 12
215@ = 0
218@ = 0
set_player_control $player1 {state} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen True
request_model 330
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23000

:DESERT5_1616
if or
  not has_model_loaded 330
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DESERT5_1647
wait 0
goto @DESERT5_1616

:DESERT5_1647
task_use_mobile_phone $scplayer {start} True
play_mission_audio MissionAudioSlot.Slot3
set_fixed_camera_position 415.83 {y} 2532.9399 {z} 19.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 415.28 {y} 2533.6499 {z} 19.5 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:DESERT5_1716
if 
  get_fading_status 
goto_if_false @DESERT5_1740
wait 0
goto @DESERT5_1716

:DESERT5_1740
240@ = 1
skip_cutscene_start_internal @DESERT5_2377
wait 600
clear_mission_audio MissionAudioSlot.Slot3
wait 1000
216@ = 0

:DESERT5_1775
if 
  1 > 216@
goto_if_false @DESERT5_1811
wait 0
gosub @DESERT5_29716
goto @DESERT5_1775

:DESERT5_1811
if 
  2 > 216@
goto_if_false @DESERT5_1887
wait 0
gosub @DESERT5_29716
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_1880
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_1880
goto @DESERT5_1811

:DESERT5_1887
stop_char_facial_talk $scplayer

:DESERT5_1892
if 
  3 > 216@
goto_if_false @DESERT5_1968
wait 0
gosub @DESERT5_29716
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_1961
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_1961
goto @DESERT5_1892

:DESERT5_1968
stop_char_facial_talk $scplayer

:DESERT5_1973
if 
  5 > 216@
goto_if_false @DESERT5_2009
wait 0
gosub @DESERT5_29716
goto @DESERT5_1973

:DESERT5_2009
if 
  6 > 216@
goto_if_false @DESERT5_2085
wait 0
gosub @DESERT5_29716
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_2078
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_2078
goto @DESERT5_2009

:DESERT5_2085
stop_char_facial_talk $scplayer

:DESERT5_2090
if 
  8 > 216@
goto_if_false @DESERT5_2216
wait 0
gosub @DESERT5_29716
if and
  215@ == 2
  216@ == 7
  218@ <> 1
goto_if_false @DESERT5_2209
set_fixed_camera_position 414.83 {y} 2532.1299 {z} 19.43 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 415.01 {y} 2533.1101 {z} 19.42 {switchStyle} SwitchType.JumpCut
218@ = 1

:DESERT5_2209
goto @DESERT5_2090

:DESERT5_2216
if 
  10 > 216@
goto_if_false @DESERT5_2252
wait 0
gosub @DESERT5_29716
goto @DESERT5_2216

:DESERT5_2252
if 
  11 > 216@
goto_if_false @DESERT5_2328
wait 0
gosub @DESERT5_29716
if and
  215@ == 2
  218@ <> 1
goto_if_false @DESERT5_2321
start_char_facial_talk $scplayer {duration} 10000
218@ = 1

:DESERT5_2321
goto @DESERT5_2252

:DESERT5_2328
stop_char_facial_talk $scplayer

:DESERT5_2333
if 
  is_int_lvar_greater_than_int_lvar 217@ > 216@
goto_if_false @DESERT5_2370
wait 0
gosub @DESERT5_29716
goto @DESERT5_2333

:DESERT5_2370
240@ = 0

:DESERT5_2377
skip_cutscene_end 
if 
  240@ <> 1
goto_if_false @DESERT5_2404
task_use_mobile_phone $scplayer {start} False

:DESERT5_2404
do_fade 1000 {direction} Fade.Out

:DESERT5_2411
if 
  get_fading_status 
goto_if_false @DESERT5_2435
wait 0
goto @DESERT5_2411

:DESERT5_2435
if 
  240@ == 1
goto_if_false @DESERT5_2460
task_use_mobile_phone $scplayer {start} False

:DESERT5_2460
stop_char_facial_talk $scplayer
clear_mission_audio MissionAudioSlot.Slot3
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
set_char_coordinates $scplayer {x} 413.94 {y} $noticeboard_y {z} 18.18
set_char_heading $scplayer {heading} 270.0
178@ = 1
$d5_watched_first_cutscene = 1
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 1000 {direction} Fade.In

:DESERT5_2539
if 
  get_fading_status 
goto_if_false @DESERT5_2563
wait 0
goto @DESERT5_2539

:DESERT5_2563
goto @DESERT5_29947

:DESERT5_2570
set_char_coordinates $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18
set_char_heading $scplayer {heading} 90.0

:DESERT5_2600
set_player_control $player1 {state} False
clear_help 
clear_prints 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
238@ = 0
231@ = 0
230@ = 0
use_text_commands True
227@ = 255
226@ = 2
set_lvar_int_to_var_int 34@ = $d5_last_played
if 
  34@ == 3
goto_if_false @DESERT5_2726
34@ = 4

:DESERT5_2726
if 
  34@ == 5
goto_if_false @DESERT5_2751
34@ = 6

:DESERT5_2751
display_hud False
display_radar False
load_mission_audio MissionAudioSlot.Slot3 {audioId} 3800

:DESERT5_2766
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DESERT5_2792
wait 0
goto @DESERT5_2766

:DESERT5_2792
do_fade 1000 {direction} Fade.In
gosub @DESERT5_20476

:DESERT5_2806
if 
  get_fading_status 
goto_if_false @DESERT5_2837
wait 0
gosub @DESERT5_20476
goto @DESERT5_2806

:DESERT5_2837
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @DESERT5_2863
goto @DESERT5_29990

:DESERT5_2863
gosub @DESERT5_20476
if 
  230@ == 0
goto_if_false @DESERT5_3392
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DESERT5_3035
34@ -= 1
$d5_last_played -= 1
if 
  34@ == 3
goto_if_false @DESERT5_2967
34@ = 2

:DESERT5_2967
if 
  34@ == 5
goto_if_false @DESERT5_2992
34@ = 4

:DESERT5_2992
if 
  $d5_total_missions_open > 1
goto_if_false @DESERT5_3035
if 
  4 > 231@
goto_if_false @DESERT5_3035
231@ = 3

:DESERT5_3035
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DESERT5_3166
34@ += 1
$d5_last_played += 1
if 
  34@ == 3
goto_if_false @DESERT5_3098
34@ = 4

:DESERT5_3098
if 
  34@ == 5
goto_if_false @DESERT5_3123
34@ = 6

:DESERT5_3123
if 
  $d5_total_missions_open > 1
goto_if_false @DESERT5_3166
if 
  4 > 231@
goto_if_false @DESERT5_3166
231@ = 3

:DESERT5_3166
if 
  1 > 34@
goto_if_false @DESERT5_3200
set_lvar_int_to_var_int 34@ = $d5_total_missions_open
set_var_int_to_var_int $d5_last_played = $d5_total_missions_open

:DESERT5_3200
if 
  is_int_lvar_greater_than_int_var 34@ > $d5_total_missions_open
goto_if_false @DESERT5_3233
34@ = 1
$d5_last_played = 1

:DESERT5_3233
if or
  -100 > $LStickX
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DESERT5_3304
wait 0
gosub @DESERT5_20476
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @DESERT5_3233

:DESERT5_3304
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_3392
if or
  34@ == 4
  34@ == 6
goto_if_false @DESERT5_3360
230@ = 1
goto @DESERT5_3392

:DESERT5_3360
if 
  4 > 231@
goto_if_false @DESERT5_3385
231@ = 3

:DESERT5_3385
goto @DESERT5_3793

:DESERT5_3392
if 
  230@ == 1
goto_if_false @DESERT5_3722
if 
  4 > 231@
goto_if_false @DESERT5_3435
231@ = 3

:DESERT5_3435
if 
  231@ == 0
goto_if_false @DESERT5_3460
231@ = 5

:DESERT5_3460
gosub @DESERT5_24729
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 320.0 {offsetTop} 140.0 {key} 'DES5_FH'
gosub @DESERT5_24729
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 182.0 {offsetTop} 185.0 {key} 'DES5_FI'
gosub @DESERT5_24729
set_text_centre False
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 182.0 {offsetTop} 211.0 {key} 'DES5_FJ'
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @DESERT5_3641
goto @DESERT5_3793

:DESERT5_3641
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @DESERT5_3722
if 
  34@ == 4
goto_if_false @DESERT5_3690
34@ = 3

:DESERT5_3690
if 
  34@ == 6
goto_if_false @DESERT5_3715
34@ = 5

:DESERT5_3715
goto @DESERT5_3793

:DESERT5_3722
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @DESERT5_3751
$d5_total_missions_open = 12
$pilot_test_passed = 1

:DESERT5_3751
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_3775
goto @DESERT5_29947

:DESERT5_3775
force_weather_now WeatherType.ExtraSunnyDesert
gosub @DESERT5_23134
goto @DESERT5_2837

:DESERT5_3793
do_fade 500 {direction} Fade.Out

:DESERT5_3800
if 
  get_fading_status 
goto_if_false @DESERT5_3831
wait 0
gosub @DESERT5_20476
goto @DESERT5_3800

:DESERT5_3831
if 
  not is_car_dead 35@
goto_if_false @DESERT5_3852
stop_playback_recorded_car 35@

:DESERT5_3852
delete_car 35@
restore_camera_jumpcut 
delete_char 70@
156@ = 0

:DESERT5_3871
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_3913
delete_car 60@(156@,3i)
156@ += 1
goto @DESERT5_3871

:DESERT5_3913
clear_mission_audio MissionAudioSlot.Slot3
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 500.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
231@ = 5
display_hud True
display_radar True
if 
  34@ == 1
goto_if_false @DESERT5_5468

:DESERT5_3977
gosub @DESERT5_24907

:DESERT5_3984
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_reached_takeoff_point = 0
$d5_plane_taken_off = 0
157@ = 0
35@ = create_car 476 {x} 50@ {y} 51@ {z} 52@
set_car_heading 35@ {heading} 90.0
if 
  231@ == 0
goto_if_false @DESERT5_4135
set_fixed_camera_position 172.6 {y} 2466.1399 {z} 17.05 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_4135
wait 500
clear_prints 
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_4165
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_4204
232@ = 2
goto @DESERT5_5415

:DESERT5_4204
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_4273
if 
  is_car_in_water 35@
goto_if_false @DESERT5_4266
232@ = 2
goto @DESERT5_5415
goto @DESERT5_4273

:DESERT5_4266
goto @DESERT5_29947

:DESERT5_4273
if 
  233@ == 0
goto_if_false @DESERT5_4355
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_25173
if 
  233@ == 1
goto_if_false @DESERT5_4348
print_now 'DES5_1B' {time} 10000 {flag} 4

:DESERT5_4348
goto @DESERT5_5461

:DESERT5_4355
if 
  not is_car_dead 35@
goto_if_false @DESERT5_5461
if 
  $d5_plane_taken_off <> 1
goto_if_false @DESERT5_4561
if 
  $d5_plane_reached_takeoff_point <> 1
goto_if_false @DESERT5_4459
$d5_cur_pitch = get_car_pitch 35@
if 
  5.0 >= $d5_cur_pitch
goto_if_false @DESERT5_4459
$d5_plane_reached_takeoff_point = 1
print_now 'DES5_1C' {time} 10000 {flag} 4

:DESERT5_4459
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_4524
$d5_plane_taken_off = 1
print_now 'DES5_1I' {time} 10000 {flag} 4
goto @DESERT5_4561

:DESERT5_4524
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_4561
236@ = 1

:DESERT5_4561
if 
  $d5_plane_taken_off == 1
goto_if_false @DESERT5_4986
if 
  157@ <> 1
goto_if_false @DESERT5_4725
151@ = get_plane_undercarriage_position 35@
if 
  151@ > 0.0
goto_if_false @DESERT5_4718
157@ = 1
220@ = add_blip_for_coord 73@ {y} 76@ {z} 79@
118@ = create_checkpoint CheckpointType.Torus {x} 73@ {y} 76@ {z} 79@ {pointX} 0.0 {pointY} 76@ {pointZ} 79@ {radius} 129@
116@ = 0
clear_prints 
print_now 'DES5_1F' {time} 7000 {flag} 4
print 'DES5_1J' {time} 10000 {flag} 4

:DESERT5_4718
goto @DESERT5_4986

:DESERT5_4725
if 
  locate_char_in_car_3d $scplayer {x} 73@(116@,3f) {y} 76@(116@,3f) {z} 79@(116@,3f) {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_4986
remove_blip 220@
delete_checkpoint 118@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
116@ += 1
if 
  3 > 116@
goto_if_false @DESERT5_4979
220@ = add_blip_for_coord 73@(116@,3f) {y} 76@(116@,3f) {z} 79@(116@,3f)
118@ = create_checkpoint CheckpointType.Torus {x} 73@(116@,3f) {y} 76@(116@,3f) {z} 79@(116@,3f) {pointX} 0.0 {pointY} 76@(116@,3f) {pointZ} 79@(116@,3f) {radius} 129@
if 
  116@ == 1
goto_if_false @DESERT5_4938
print_now 'DES5_1G' {time} 10000 {flag} 4

:DESERT5_4938
if 
  116@ == 2
goto_if_false @DESERT5_4972
print_now 'DES5_1H' {time} 10000 {flag} 4

:DESERT5_4972
goto @DESERT5_4986

:DESERT5_4979
235@ = 1

:DESERT5_4986
if 
  $d5_plane_taken_off == 1
goto_if_false @DESERT5_5027
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_5027
236@ = 1

:DESERT5_5027
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_5070
236@ = 1

:DESERT5_5070
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_5461
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_5169
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 30
148@ = 45
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_5197

:DESERT5_5169
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_5197
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[0]
goto_if_false @DESERT5_5246
set_lvar_int_to_var_int 237@ = $d5_best_scores[0]
set_var_int_to_var_int $d5_best_scores[0] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_5246
if 
  $d5_total_missions_open == 1
goto_if_false @DESERT5_5317
if 
  $overall_score > 69
goto_if_false @DESERT5_5317
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 2
$d5_last_played = 2
232@ = 2

:DESERT5_5317
gosub @DESERT5_27620

:DESERT5_5324
if 
  219@ == 0
goto_if_false @DESERT5_5415
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_5384
232@ = 2
goto @DESERT5_5415

:DESERT5_5384
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_5408
goto @DESERT5_5415

:DESERT5_5408
goto @DESERT5_5324

:DESERT5_5415
gosub @DESERT5_27200
if 
  232@ == 2
goto_if_false @DESERT5_5454
goto @DESERT5_2600
goto @DESERT5_5461

:DESERT5_5454
goto @DESERT5_3977

:DESERT5_5461
goto @DESERT5_4165

:DESERT5_5468
if 
  34@ == 2
goto_if_false @DESERT5_6924

:DESERT5_5486
gosub @DESERT5_24907

:DESERT5_5493
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
159@ = 0
160@ = 0
158@ = 0
35@ = create_car 476 {x} 53@ {y} 54@ {z} 55@
set_car_heading 35@ {heading} 270.0
if 
  231@ == 0
goto_if_false @DESERT5_5644
set_fixed_camera_position 27.29 {y} 2466.3101 {z} 16.76 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_5644
set_plane_undercarriage_up 35@ {state} True
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_2J' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_5688
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_5727
232@ = 2
goto @DESERT5_6871

:DESERT5_5727
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_5796
if 
  is_car_in_water 35@
goto_if_false @DESERT5_5789
232@ = 2
goto @DESERT5_6871
goto @DESERT5_5796

:DESERT5_5789
goto @DESERT5_29947

:DESERT5_5796
if 
  233@ == 0
goto_if_false @DESERT5_5937
if 
  not is_car_dead 35@
goto_if_false @DESERT5_5930
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 30.0
220@ = add_blip_for_coord 82@ {y} 83@ {z} 84@
118@ = create_checkpoint CheckpointType.Torus {x} 82@ {y} 83@ {z} 84@ {pointX} -200.0 {pointY} 83@ {pointZ} 84@ {radius} 129@
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_2J' {time} 5000 {flag} 4
233@ = 1

:DESERT5_5930
goto @DESERT5_6917

:DESERT5_5937
if 
  not is_car_dead 35@
goto_if_false @DESERT5_6917
if 
  159@ == 0
goto_if_false @DESERT5_6171
if 
  158@ <> 1
goto_if_false @DESERT5_6041
151@ = get_plane_undercarriage_position 35@
if 
  1.0 > 151@
goto_if_false @DESERT5_6041
158@ = 1
print_now 'DES5_2C' {time} 5000 {flag} 4

:DESERT5_6041
if 
  locate_char_in_car_3d $scplayer {x} 82@ {y} 83@ {z} 84@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_6164
remove_blip 220@
delete_checkpoint 118@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
159@ = 1
220@ = add_blip_for_coord 308.0 {y} 49@ {z} 52@
clear_prints 
print_now 'DES5_2I' {time} 5000 {flag} 4
print 'DES5_2D' {time} 7000 {flag} 4

:DESERT5_6164
goto @DESERT5_6368

:DESERT5_6171
  is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} True
if 
  160@ <> 1
goto_if_false @DESERT5_6321
37@, 38@, 39@ = get_car_coordinates 35@
if 
  17.66 >= 39@
goto_if_false @DESERT5_6314
160@ = 1
clear_prints 
print_now 'DES5_2E' {time} 7000 {flag} 4
print 'DES5_2F' {time} 7000 {flag} 4
print 'DES5_2G' {time} 7000 {flag} 4

:DESERT5_6314
goto @DESERT5_6368

:DESERT5_6321
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_6368
235@ = 1

:DESERT5_6368
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_6483
if 
  159@ <> 1
goto_if_false @DESERT5_6416
236@ = 1
goto @DESERT5_6483

:DESERT5_6416
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_6460
236@ = 1
goto @DESERT5_6483

:DESERT5_6460
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_6483
236@ = 1

:DESERT5_6483
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_6526
236@ = 1

:DESERT5_6526
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_6917
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_6625
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 25
148@ = 40
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_6653

:DESERT5_6625
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_6653
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[1]
goto_if_false @DESERT5_6702
set_lvar_int_to_var_int 237@ = $d5_best_scores[1]
set_var_int_to_var_int $d5_best_scores[1] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_6702
if 
  $d5_total_missions_open == 2
goto_if_false @DESERT5_6773
if 
  $overall_score > 69
goto_if_false @DESERT5_6773
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 4
$d5_last_played = 4
232@ = 2

:DESERT5_6773
gosub @DESERT5_27620

:DESERT5_6780
if 
  219@ == 0
goto_if_false @DESERT5_6871
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_6840
232@ = 2
goto @DESERT5_6871

:DESERT5_6840
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_6864
goto @DESERT5_6871

:DESERT5_6864
goto @DESERT5_6780

:DESERT5_6871
gosub @DESERT5_27200
if 
  232@ == 2
goto_if_false @DESERT5_6910
goto @DESERT5_2600
goto @DESERT5_6917

:DESERT5_6910
goto @DESERT5_5486

:DESERT5_6917
goto @DESERT5_5688

:DESERT5_6924
if or
  34@ == 3
  34@ == 4
goto_if_false @DESERT5_8503

:DESERT5_6949
gosub @DESERT5_24907

:DESERT5_6956
gosub @DESERT5_19958
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_taken_off = 0
116@ = 0
35@ = create_car 476 {x} 50@ {y} 51@ {z} 52@
set_car_heading 35@ {heading} 90.0
if 
  231@ == 0
goto_if_false @DESERT5_7114
set_plane_undercarriage_up 35@ {state} True
set_fixed_camera_position -1251.02 {y} 2301.3201 {z} 140.44 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_7114
wait 500
clear_prints 
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_7144
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_7183
232@ = 2
goto @DESERT5_8402

:DESERT5_7183
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_7252
if 
  is_car_in_water 35@
goto_if_false @DESERT5_7245
232@ = 2
goto @DESERT5_8402
goto @DESERT5_7252

:DESERT5_7245
goto @DESERT5_29947

:DESERT5_7252
if 
  233@ == 0
goto_if_false @DESERT5_7445
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_25173
if 
  233@ == 1
goto_if_false @DESERT5_7438
116@ = 0
220@ = add_blip_for_coord 85@ {y} 93@ {z} 101@
119@ = create_checkpoint CheckpointType.Torus {x} 85@ {y} 93@ {z} 101@ {pointX} 0.0 {pointY} 93@ {pointZ} 101@ {radius} 129@
120@ = create_checkpoint CheckpointType.Torus {x} 86@ {y} 94@ {z} 102@ {pointX} 85@ {pointY} 93@ {pointZ} 101@ {radius} 129@
print_now 'DES5_3B' {time} 10000 {flag} 4
print 'DES5_3C' {time} 7000 {flag} 4
print 'DES5_3D' {time} 10000 {flag} 4

:DESERT5_7438
goto @DESERT5_8496

:DESERT5_7445
if 
  not is_car_dead 35@
goto_if_false @DESERT5_8496
if 
  $d5_plane_taken_off <> 1
goto_if_false @DESERT5_7521
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_7521
$d5_plane_taken_off = 1

:DESERT5_7521
if 
  locate_char_in_car_3d $scplayer {x} 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f) {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_7973
remove_blip 220@
delete_checkpoint 119@(116@,8i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
116@ += 1
if 
  8 > 116@
goto_if_false @DESERT5_7966
220@ = add_blip_for_coord 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f)
set_lvar_int_to_lvar_int 117@ = 116@
117@ += 1
if 
  8 > 117@
goto_if_false @DESERT5_7743
create_checkpoint CheckpointType.Torus {x} 85@(117@,8f) {y} 93@(117@,8f) {z} 101@(117@,8f) {pointX} 85@(116@,8f) {pointY} 93@(116@,8f) {pointZ} 101@(116@,8f) {radius} 129@ {var_handle} 119@(117@,8i)

:DESERT5_7743
if 
  116@ == 1
goto_if_false @DESERT5_7818
if 
  34@ == 4
goto_if_false @DESERT5_7802
print_now 'DES5_3F' {time} 10000 {flag} 4
goto @DESERT5_7818

:DESERT5_7802
print_now 'DES5_3E' {time} 10000 {flag} 4

:DESERT5_7818
if 
  116@ == 2
goto_if_false @DESERT5_7893
if 
  34@ == 4
goto_if_false @DESERT5_7877
print_now 'DES5_3G' {time} 10000 {flag} 4
goto @DESERT5_7893

:DESERT5_7877
print_now 'DES5_3H' {time} 10000 {flag} 4

:DESERT5_7893
if 
  116@ == 3
goto_if_false @DESERT5_7959
print_now 'DES5_3K' {time} 10000 {flag} 4
print 'DES5_3L' {time} 7000 {flag} 4
print 'DES5_3M' {time} 10000 {flag} 4

:DESERT5_7959
goto @DESERT5_7973

:DESERT5_7966
235@ = 1

:DESERT5_7973
if 
  $d5_plane_taken_off == 1
goto_if_false @DESERT5_8014
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_8014
236@ = 1

:DESERT5_8014
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_8057
236@ = 1

:DESERT5_8057
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_8496
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_8156
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 60
148@ = 75
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_8184

:DESERT5_8156
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_8184
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[2]
goto_if_false @DESERT5_8233
set_lvar_int_to_var_int 237@ = $d5_best_scores[2]
set_var_int_to_var_int $d5_best_scores[2] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_8233
if 
  $d5_total_missions_open == 4
goto_if_false @DESERT5_8304
if 
  $overall_score > 69
goto_if_false @DESERT5_8304
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 6
$d5_last_played = 6
232@ = 2

:DESERT5_8304
gosub @DESERT5_27620

:DESERT5_8311
if 
  219@ == 0
goto_if_false @DESERT5_8402
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_8371
232@ = 2
goto @DESERT5_8402

:DESERT5_8371
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_8395
goto @DESERT5_8402

:DESERT5_8395
goto @DESERT5_8311

:DESERT5_8402
gosub @DESERT5_27200
156@ = 0

:DESERT5_8416
if 
  8 > 156@
goto_if_false @DESERT5_8457
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_8416

:DESERT5_8457
if 
  232@ == 2
goto_if_false @DESERT5_8489
goto @DESERT5_2600
goto @DESERT5_8496

:DESERT5_8489
goto @DESERT5_6949

:DESERT5_8496
goto @DESERT5_7144

:DESERT5_8503
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_10300

:DESERT5_8528
gosub @DESERT5_24907

:DESERT5_8535
gosub @DESERT5_19958
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_taken_off = 0
116@ = 0
161@ = 0
35@ = create_car 476 {x} 50@ {y} 51@ {z} 52@
set_car_heading 35@ {heading} 90.0
if 
  231@ == 0
goto_if_false @DESERT5_8700
set_plane_undercarriage_up 35@ {state} True
set_fixed_camera_position -394.09 {y} 2601.47 {z} 134.89 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_8700
wait 500
clear_prints 
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_8730
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_8769
232@ = 2
goto @DESERT5_10199

:DESERT5_8769
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_8838
if 
  is_car_in_water 35@
goto_if_false @DESERT5_8831
232@ = 2
goto @DESERT5_10199
goto @DESERT5_8838

:DESERT5_8831
goto @DESERT5_29947

:DESERT5_8838
if 
  233@ == 0
goto_if_false @DESERT5_8999
print_now 'DES5_1A' {time} 5000 {flag} 4
gosub @DESERT5_25173
if 
  233@ == 1
goto_if_false @DESERT5_8992
116@ = 0
220@ = add_blip_for_coord 85@ {y} 93@ {z} 101@
119@ = create_checkpoint CheckpointType.Torus {x} 85@ {y} 93@ {z} 101@ {pointX} 0.0 {pointY} 93@ {pointZ} 101@ {radius} 129@
120@ = create_checkpoint CheckpointType.Torus {x} 86@ {y} 94@ {z} 102@ {pointX} 85@ {pointY} 93@ {pointZ} 101@ {radius} 129@
print_now 'DES5_3B' {time} 10000 {flag} 4

:DESERT5_8992
goto @DESERT5_10293

:DESERT5_8999
if 
  not is_car_dead 35@
goto_if_false @DESERT5_10293
if 
  $d5_plane_taken_off <> 1
goto_if_false @DESERT5_9075
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_9075
$d5_plane_taken_off = 1

:DESERT5_9075
if 
  161@ <> 1
goto_if_false @DESERT5_9609
if 
  locate_char_in_car_3d $scplayer {x} 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f) {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_9602
remove_blip 220@
delete_checkpoint 119@(116@,8i)
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
116@ += 1
if 
  8 > 116@
goto_if_false @DESERT5_9506
220@ = add_blip_for_coord 85@(116@,8f) {y} 93@(116@,8f) {z} 101@(116@,8f)
set_lvar_int_to_lvar_int 117@ = 116@
117@ += 1
if 
  8 > 117@
goto_if_false @DESERT5_9315
create_checkpoint CheckpointType.Torus {x} 85@(117@,8f) {y} 93@(117@,8f) {z} 101@(117@,8f) {pointX} 85@(116@,8f) {pointY} 93@(116@,8f) {pointZ} 101@(116@,8f) {radius} 129@ {var_handle} 119@(117@,8i)

:DESERT5_9315
if 
  116@ == 1
goto_if_false @DESERT5_9390
if 
  34@ == 6
goto_if_false @DESERT5_9374
print_now 'DES5_3H' {time} 10000 {flag} 4
goto @DESERT5_9390

:DESERT5_9374
print_now 'DES5_3G' {time} 10000 {flag} 4

:DESERT5_9390
if 
  116@ == 2
goto_if_false @DESERT5_9465
if 
  34@ == 6
goto_if_false @DESERT5_9449
print_now 'DES5_3G' {time} 10000 {flag} 4
goto @DESERT5_9465

:DESERT5_9449
print_now 'DES5_3H' {time} 10000 {flag} 4

:DESERT5_9465
if 
  116@ == 3
goto_if_false @DESERT5_9499
print_now 'DES5_3K' {time} 10000 {flag} 4

:DESERT5_9499
goto @DESERT5_9602

:DESERT5_9506
161@ = 1
220@ = add_blip_for_coord 308.0 {y} 45@ {z} 52@
if 
  34@ == 6
goto_if_false @DESERT5_9570
print_now 'DES5_5I' {time} 10000 {flag} 4
goto @DESERT5_9586

:DESERT5_9570
print_now 'DES5_5H' {time} 10000 {flag} 4

:DESERT5_9586
print 'DES5_5J' {time} 10000 {flag} 4

:DESERT5_9602
goto @DESERT5_9689

:DESERT5_9609
  is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} True
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_9689
235@ = 1

:DESERT5_9689
if and
  $d5_plane_taken_off == 1
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_9811
if 
  161@ <> 1
goto_if_false @DESERT5_9744
236@ = 1
goto @DESERT5_9811

:DESERT5_9744
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_9788
236@ = 1
goto @DESERT5_9811

:DESERT5_9788
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_9811
236@ = 1

:DESERT5_9811
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_9854
236@ = 1

:DESERT5_9854
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_10293
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_9953
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 80
148@ = 95
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_9981

:DESERT5_9953
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_9981
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[3]
goto_if_false @DESERT5_10030
set_lvar_int_to_var_int 237@ = $d5_best_scores[3]
set_var_int_to_var_int $d5_best_scores[3] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_10030
if 
  $d5_total_missions_open == 6
goto_if_false @DESERT5_10101
if 
  $overall_score > 69
goto_if_false @DESERT5_10101
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 7
$d5_last_played = 7
232@ = 2

:DESERT5_10101
gosub @DESERT5_27620

:DESERT5_10108
if 
  219@ == 0
goto_if_false @DESERT5_10199
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_10168
232@ = 2
goto @DESERT5_10199

:DESERT5_10168
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_10192
goto @DESERT5_10199

:DESERT5_10192
goto @DESERT5_10108

:DESERT5_10199
gosub @DESERT5_27200
156@ = 0

:DESERT5_10213
if 
  8 > 156@
goto_if_false @DESERT5_10254
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_10213

:DESERT5_10254
if 
  232@ == 2
goto_if_false @DESERT5_10286
goto @DESERT5_2600
goto @DESERT5_10293

:DESERT5_10286
goto @DESERT5_8528

:DESERT5_10293
goto @DESERT5_8730

:DESERT5_10300
if 
  34@ == 7
goto_if_false @DESERT5_11736

:DESERT5_10318
gosub @DESERT5_24907

:DESERT5_10325
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
$d5_plane_taken_off = 0
$d5_plane_reached_required_altitude = 0
set_lvar_float_to_lvar_float 132@ = 111@
234@ = 0
35@ = create_car 425 {x} 50@ {y} 51@ {z} 15.07
set_car_heading 35@ {heading} 270.0
car_set_idle 35@
if 
  231@ == 0
goto_if_false @DESERT5_10491
set_fixed_camera_position 323.02 {y} 2446.8101 {z} 117.65 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_10491
241@ = 1

:DESERT5_10498
if 
  241@ == 1
goto_if_false @DESERT5_10566
wait 0
if 
  not is_car_dead 35@
goto_if_false @DESERT5_10559
if 
  is_car_stopped 35@
goto_if_false @DESERT5_10559
241@ = 0

:DESERT5_10559
goto @DESERT5_10498

:DESERT5_10566
wait 500
clear_prints 
print_now 'DES5_7A' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_10596
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_10635
232@ = 2
goto @DESERT5_11683

:DESERT5_10635
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_10704
if 
  is_car_in_water 35@
goto_if_false @DESERT5_10697
232@ = 2
goto @DESERT5_11683
goto @DESERT5_10704

:DESERT5_10697
goto @DESERT5_29947

:DESERT5_10704
if 
  233@ == 0
goto_if_false @DESERT5_10816
print_now 'DES5_7A' {time} 10000 {flag} 4
if 
  not is_car_dead 35@
goto_if_false @DESERT5_10809
if 
  is_car_in_air_proper 35@
goto_if_false @DESERT5_10809
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_7B' {time} 10000 {flag} 4
233@ = 1

:DESERT5_10809
goto @DESERT5_11729

:DESERT5_10816
if 
  not is_car_dead 35@
goto_if_false @DESERT5_11729
if 
  $d5_plane_reached_required_altitude <> 1
goto_if_false @DESERT5_10922
37@, 38@, 39@ = get_car_coordinates 35@
if 
  is_float_lvar_greater_or_equal_to_float_lvar 39@ >= 132@
goto_if_false @DESERT5_10922
$d5_plane_reached_required_altitude = 1
print_now 'DES5_7C' {time} 5000 {flag} 4
print 'DES5_7D' {time} 10000 {flag} 4

:DESERT5_10922
if 
  $d5_plane_reached_required_altitude == 1
goto_if_false @DESERT5_11194
if 
  234@ <> 1
goto_if_false @DESERT5_11121
40@ = get_car_heading 35@
if and
  40@ >= 80.0
  100.0 >= 40@
goto_if_false @DESERT5_11114
234@ = 1
220@ = add_blip_for_coord 109@ {y} 110@ {z} 111@
118@ = create_checkpoint CheckpointType.Torus {x} 109@ {y} 110@ {z} 111@ {pointX} 0.0 {pointY} 110@ {pointZ} 111@ {radius} 129@
clear_prints 
print_now 'DES5_7F' {time} 10000 {flag} 4
print 'DES5_7G' {time} 10000 {flag} 4
print 'DES5_7H' {time} 10000 {flag} 4
print 'DES5_7I' {time} 10000 {flag} 4

:DESERT5_11114
goto @DESERT5_11194

:DESERT5_11121
if 
  locate_char_in_car_3d $scplayer {x} 109@ {y} 110@ {z} 111@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_11194
remove_blip 220@
delete_checkpoint 118@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
235@ = 1

:DESERT5_11194
if 
  $d5_plane_taken_off <> 1
goto_if_false @DESERT5_11254
37@, 38@, 39@ = get_car_coordinates 35@
if 
  39@ >= 25.0
goto_if_false @DESERT5_11254
$d5_plane_taken_off = 1

:DESERT5_11254
if 
  $d5_plane_taken_off == 1
goto_if_false @DESERT5_11295
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_11295
236@ = 1

:DESERT5_11295
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_11338
236@ = 1

:DESERT5_11338
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_11729
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_11437
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 45
148@ = 60
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_11465

:DESERT5_11437
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_11465
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[4]
goto_if_false @DESERT5_11514
set_lvar_int_to_var_int 237@ = $d5_best_scores[4]
set_var_int_to_var_int $d5_best_scores[4] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_11514
if 
  $d5_total_missions_open == 7
goto_if_false @DESERT5_11585
if 
  $overall_score > 69
goto_if_false @DESERT5_11585
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 8
$d5_last_played = 8
232@ = 2

:DESERT5_11585
gosub @DESERT5_27620

:DESERT5_11592
if 
  219@ == 0
goto_if_false @DESERT5_11683
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_11652
232@ = 2
goto @DESERT5_11683

:DESERT5_11652
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_11676
goto @DESERT5_11683

:DESERT5_11676
goto @DESERT5_11592

:DESERT5_11683
gosub @DESERT5_27200
if 
  232@ == 2
goto_if_false @DESERT5_11722
goto @DESERT5_2600
goto @DESERT5_11729

:DESERT5_11722
goto @DESERT5_10318

:DESERT5_11729
goto @DESERT5_10596

:DESERT5_11736
if 
  34@ == 8
goto_if_false @DESERT5_12955

:DESERT5_11754
gosub @DESERT5_24907

:DESERT5_11761
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
162@ = 0
35@ = create_car 425 {x} 53@ {y} 54@ {z} 55@
set_car_heading 35@ {heading} 270.0
set_heli_blades_full_speed 35@
if 
  231@ == 0
goto_if_false @DESERT5_11903
set_fixed_camera_position 301.56 {y} 2455.21 {z} 55.82 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_11903
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_8A' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_11940
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_11979
232@ = 2
goto @DESERT5_12902

:DESERT5_11979
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_12048
if 
  is_car_in_water 35@
goto_if_false @DESERT5_12041
232@ = 2
goto @DESERT5_12902
goto @DESERT5_12048

:DESERT5_12041
goto @DESERT5_29947

:DESERT5_12048
if 
  233@ == 0
goto_if_false @DESERT5_12175
if 
  not is_car_dead 35@
goto_if_false @DESERT5_12168
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 15.0
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_8A' {time} 10000 {flag} 4
print 'DES5_8B' {time} 10000 {flag} 4
220@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
233@ = 1

:DESERT5_12168
goto @DESERT5_12948

:DESERT5_12175
if 
  not is_car_dead 35@
goto_if_false @DESERT5_12948
if 
  162@ <> 1
goto_if_false @DESERT5_12321
if 
  locate_char_in_car_2d $scplayer {x} 56@ {y} 57@ {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @DESERT5_12314
162@ = 1
print_now 'DES5_8G' {time} 4000 {flag} 4
print 'DES5_8C' {time} 10000 {flag} 4
print 'DES5_8D' {time} 10000 {flag} 4
print 'DES5_8E' {time} 10000 {flag} 4

:DESERT5_12314
goto @DESERT5_12399

:DESERT5_12321
  locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_12399
235@ = 1

:DESERT5_12399
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_12514
if 
  162@ <> 1
goto_if_false @DESERT5_12447
236@ = 1
goto @DESERT5_12514

:DESERT5_12447
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_12491
236@ = 1
goto @DESERT5_12514

:DESERT5_12491
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_12514
236@ = 1

:DESERT5_12514
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_12557
236@ = 1

:DESERT5_12557
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_12948
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_12656
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 30
148@ = 45
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_12684

:DESERT5_12656
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_12684
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[5]
goto_if_false @DESERT5_12733
set_lvar_int_to_var_int 237@ = $d5_best_scores[5]
set_var_int_to_var_int $d5_best_scores[5] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_12733
if 
  $d5_total_missions_open == 8
goto_if_false @DESERT5_12804
if 
  $overall_score > 69
goto_if_false @DESERT5_12804
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 9
$d5_last_played = 9
232@ = 2

:DESERT5_12804
gosub @DESERT5_27620

:DESERT5_12811
if 
  219@ == 0
goto_if_false @DESERT5_12902
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_12871
232@ = 2
goto @DESERT5_12902

:DESERT5_12871
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_12895
goto @DESERT5_12902

:DESERT5_12895
goto @DESERT5_12811

:DESERT5_12902
gosub @DESERT5_27200
if 
  232@ == 2
goto_if_false @DESERT5_12941
goto @DESERT5_2600
goto @DESERT5_12948

:DESERT5_12941
goto @DESERT5_11754

:DESERT5_12948
goto @DESERT5_11940

:DESERT5_12955
if 
  34@ == 9
goto_if_false @DESERT5_15284

:DESERT5_12973
gosub @DESERT5_24907

:DESERT5_12980
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
169@ = 0
35@ = create_car 425 {x} 53@ {y} 54@ {z} 55@
set_car_heading 35@ {heading} 270.0
set_heli_blades_full_speed 35@
if 
  231@ == 0
goto_if_false @DESERT5_13233
set_fixed_camera_position 365.5 {y} 2339.25 {z} 63.23 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 363.09 {y} 2473.76 {z} 33.46 {switchStyle} SwitchType.JumpCut
69@ = 418.5
156@ = 0

:DESERT5_13147
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13224
create_car 514 {x} 69@ {y} 49@ {z} 17.1 {var_handle} 60@(156@,3i)
69@ -= 40.0
170@(156@,3i) = 0
156@ += 1
goto @DESERT5_13147

:DESERT5_13224
TIMERB = 0
return 

:DESERT5_13233
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_9A' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_13270
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_13305
232@ = 2
goto @DESERT5_15096

:DESERT5_13305
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_13374
if 
  is_car_in_water 35@
goto_if_false @DESERT5_13367
232@ = 2
goto @DESERT5_15096
goto @DESERT5_13374

:DESERT5_13367
goto @DESERT5_29947

:DESERT5_13374
if 
  233@ == 0
goto_if_false @DESERT5_13604
if 
  not is_car_dead 35@
goto_if_false @DESERT5_13597
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 15.0
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_9A' {time} 10000 {flag} 4
print 'DES5_9B' {time} 10000 {flag} 4
69@ = 418.5
156@ = 0

:DESERT5_13490
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13583
create_car 514 {x} 69@ {y} 49@ {z} 17.1 {var_handle} 60@(156@,3i)
add_blip_for_car 60@(156@,3i) {var_handle} 221@(156@,3i)
163@(156@,3i) = 1
69@ -= 40.0
156@ += 1
goto @DESERT5_13490

:DESERT5_13583
59@ = 0
233@ = 1

:DESERT5_13597
goto @DESERT5_15277

:DESERT5_13604
if 
  not is_car_dead 35@
goto_if_false @DESERT5_15277
if 
  169@ <> 1
goto_if_false @DESERT5_14515
168@ = 1
switch_start 59@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DESERT5_14494 {caseNum1} 0 {caseLabel1} @DESERT5_13708 {caseNum2} 1 {caseLabel2} @DESERT5_14293 {caseNum3} -1 {caseLabel3} @DESERT5_14508 {caseNum4} -1 {caseLabel4} @DESERT5_14508 {caseNum5} -1 {caseLabel5} @DESERT5_14508 {caseNum6} -1 {caseLabel6} @DESERT5_14508 {caseNum7} -1 {caseLabel7} @DESERT5_14508

:DESERT5_13708
156@ = 0

:DESERT5_13715
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_13824
if 
  is_car_dead 60@(156@,3i)
goto_if_false @DESERT5_13803
if 
  163@(156@,3i) == 1
goto_if_false @DESERT5_13796
remove_blip 221@(156@,3i)
163@(156@,3i) = 0

:DESERT5_13796
goto @DESERT5_13810

:DESERT5_13803
168@ = 0

:DESERT5_13810
156@ += 1
goto @DESERT5_13715

:DESERT5_13824
if 
  168@ == 1
goto_if_false @DESERT5_14286
59@ = 1
64@ = create_car 400 {x} 22.61 {y} 2322.0601 {z} 22.35
65@ = create_car 400 {x} 74.58 {y} 2375.99 {z} 16.52
67@ = create_char_inside_car 64@ {pedType} PedType.Mission1 {modelId} 7
68@ = create_char_inside_car 65@ {pedType} PedType.Mission1 {modelId} 7
flush_route 
extend_route 76.44 {y} 2327.46 {z} 20.63
extend_route 74.58 {y} 2375.99 {z} 16.52
extend_route 19.12 {y} 2370.77 {z} 18.97
extend_route 22.61 {y} 2322.0601 {z} 22.35
71@ = open_sequence_task 
task_drive_point_route -1 {vehicle} 64@ {speed} 10.0
set_sequence_to_repeat 71@ {state} True
close_sequence_task 71@
perform_sequence_task 67@ {sequence} 71@
clear_sequence_task 71@
flush_route 
extend_route 19.12 {y} 2370.77 {z} 18.97
extend_route 22.61 {y} 2322.0601 {z} 22.35
extend_route 76.44 {y} 2327.46 {z} 20.63
extend_route 74.58 {y} 2375.99 {z} 16.52
72@ = open_sequence_task 
task_drive_point_route -1 {vehicle} 65@ {speed} 10.0
set_sequence_to_repeat 72@ {state} True
close_sequence_task 72@
perform_sequence_task 68@ {sequence} 72@
clear_sequence_task 72@
156@ = 0

:DESERT5_14150
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_14221
lock_car_doors 64@(156@,2i) {lockStatus} CarLock.Locked
add_blip_for_car 64@(156@,2i) {var_handle} 224@(156@,2i)
166@(156@,2i) = 1
156@ += 1
goto @DESERT5_14150

:DESERT5_14221
print_now 'DES5_9D' {time} 10000 {flag} 4
156@ = 0

:DESERT5_14244
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_14286
mark_car_as_no_longer_needed 60@(156@,3i)
156@ += 1
goto @DESERT5_14244

:DESERT5_14286
goto @DESERT5_14508

:DESERT5_14293
156@ = 0

:DESERT5_14300
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_14409
if 
  is_car_dead 64@(156@,2i)
goto_if_false @DESERT5_14388
if 
  166@(156@,2i) == 1
goto_if_false @DESERT5_14381
remove_blip 224@(156@,2i)
166@(156@,2i) = 0

:DESERT5_14381
goto @DESERT5_14395

:DESERT5_14388
168@ = 0

:DESERT5_14395
156@ += 1
goto @DESERT5_14300

:DESERT5_14409
if 
  168@ == 1
goto_if_false @DESERT5_14487
59@ = -1
220@ = add_blip_for_coord 56@ {y} 57@ {z} 58@
print_now 'DES5_9E' {time} 10000 {flag} 4
print 'DES5_5J' {time} 10000 {flag} 4
169@ = 1

:DESERT5_14487
goto @DESERT5_14508

:DESERT5_14494
169@ = 1
goto @DESERT5_14508

:DESERT5_14508
goto @DESERT5_14593

:DESERT5_14515
  locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
if and
  is_car_stopped_in_area_2d 35@ {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
  not is_car_in_air_proper 35@
  not is_car_upsidedown 35@
goto_if_false @DESERT5_14593
235@ = 1

:DESERT5_14593
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_14708
if 
  169@ <> 1
goto_if_false @DESERT5_14641
236@ = 1
goto @DESERT5_14708

:DESERT5_14641
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 44@ {leftBottomY} 45@ {rightTopX} 46@ {rightTopY} 47@ {drawSphere} False
goto_if_false @DESERT5_14685
236@ = 1
goto @DESERT5_14708

:DESERT5_14685
if 
  is_car_upsidedown 35@
goto_if_false @DESERT5_14708
236@ = 1

:DESERT5_14708
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_14751
236@ = 1

:DESERT5_14751
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_15277
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_14850
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 80
148@ = 105
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_14878

:DESERT5_14850
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_14878
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[6]
goto_if_false @DESERT5_14927
set_lvar_int_to_var_int 237@ = $d5_best_scores[6]
set_var_int_to_var_int $d5_best_scores[6] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_14927
if 
  $d5_total_missions_open == 9
goto_if_false @DESERT5_14998
if 
  $overall_score > 69
goto_if_false @DESERT5_14998
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 10
$d5_last_played = 10
232@ = 2

:DESERT5_14998
gosub @DESERT5_27620

:DESERT5_15005
if 
  219@ == 0
goto_if_false @DESERT5_15096
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_15065
232@ = 2
goto @DESERT5_15096

:DESERT5_15065
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_15089
goto @DESERT5_15096

:DESERT5_15089
goto @DESERT5_15005

:DESERT5_15096
gosub @DESERT5_27200
clear_sequence_task 71@
clear_sequence_task 72@
156@ = 0

:DESERT5_15120
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_15171
delete_car 60@(156@,3i)
remove_blip 221@(156@,3i)
156@ += 1
goto @DESERT5_15120

:DESERT5_15171
156@ = 0

:DESERT5_15178
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_15238
delete_char 67@(156@,2i)
delete_car 64@(156@,2i)
remove_blip 224@(156@,2i)
156@ += 1
goto @DESERT5_15178

:DESERT5_15238
if 
  232@ == 2
goto_if_false @DESERT5_15270
goto @DESERT5_2600
goto @DESERT5_15277

:DESERT5_15270
goto @DESERT5_12973

:DESERT5_15277
goto @DESERT5_13270

:DESERT5_15284
if 
  34@ == 10
goto_if_false @DESERT5_16962

:DESERT5_15302
gosub @DESERT5_24907

:DESERT5_15309
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
173@ = 0
174@ = 0
35@ = create_car 513 {x} 53@ {y} 113@ {z} 114@
set_car_heading 35@ {heading} 270.0
if 
  231@ == 0
goto_if_false @DESERT5_15453
set_fixed_camera_position 269.53 {y} 2445.3 {z} 88.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_15453
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_AA' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_15490
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_15529
232@ = 2
goto @DESERT5_16899

:DESERT5_15529
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_15598
if 
  is_car_in_water 35@
goto_if_false @DESERT5_15591
232@ = 2
goto @DESERT5_16899
goto @DESERT5_15598

:DESERT5_15591
goto @DESERT5_29947

:DESERT5_15598
if 
  233@ == 0
goto_if_false @DESERT5_15785
if 
  not is_car_dead 35@
goto_if_false @DESERT5_15778
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 20.0
233@ = 1
220@ = add_blip_for_coord 112@ {y} 113@ {z} 114@
127@ = create_checkpoint CheckpointType.Torus {x} 112@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
128@ = create_checkpoint CheckpointType.Torus {x} 115@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_AA' {time} 7000 {flag} 4
print 'DES5_AB' {time} 10000 {flag} 4

:DESERT5_15778
goto @DESERT5_16955

:DESERT5_15785
if 
  not is_car_dead 35@
goto_if_false @DESERT5_16955
if 
  173@ <> 1
goto_if_false @DESERT5_15943
if 
  locate_char_in_car_3d $scplayer {x} 112@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_15936
remove_blip 220@
delete_checkpoint 127@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
173@ = 1
print_now 'DES5_AC' {time} 5000 {flag} 4
$d5_last_pitch = get_car_pitch 35@
$d5_pitch_progress = 0.0
$d5_negative_progress = 0.0

:DESERT5_15936
goto @DESERT5_16488

:DESERT5_15943
if 
  174@ <> 1
goto_if_false @DESERT5_16415
$d5_cur_roll = get_car_roll 35@
if 
  0.0 > $d5_cur_roll
goto_if_false @DESERT5_16000
$d5_cur_roll += 360.0

:DESERT5_16000
$d5_plane_up_component = get_car_upright_value 35@
if 
  $d5_plane_up_component >= 0.0
goto_if_false @DESERT5_16074
if and
  $d5_cur_roll >= 20.0
  340.0 >= $d5_cur_roll
goto_if_false @DESERT5_16067
236@ = 1

:DESERT5_16067
goto @DESERT5_16112

:DESERT5_16074
if or
  160.0 >= $d5_cur_roll
  $d5_cur_roll >= 200.0
goto_if_false @DESERT5_16112
236@ = 1

:DESERT5_16112
$d5_cur_pitch = get_car_pitch 35@
set_var_float_to_var_float $d5_pitch_diff = $d5_cur_pitch
sub_float_var_from_float_var $d5_pitch_diff -= $d5_last_pitch
set_var_float_to_var_float $d5_last_pitch = $d5_cur_pitch
if 
  $d5_pitch_diff > 180.0
goto_if_false @DESERT5_16175
$d5_pitch_diff -= 360.0

:DESERT5_16175
if 
  -180.0 > $d5_pitch_diff
goto_if_false @DESERT5_16206
$d5_pitch_diff += 360.0

:DESERT5_16206
if 
  0.0 > $d5_pitch_diff
goto_if_false @DESERT5_16242
add_float_var_to_float_var $d5_negative_progress += $d5_pitch_diff
goto @DESERT5_16304

:DESERT5_16242
if 
  0.0 > $d5_negative_progress
goto_if_false @DESERT5_16278
add_float_var_to_float_var $d5_negative_progress += $d5_pitch_diff
goto @DESERT5_16304

:DESERT5_16278
add_float_var_to_float_var $d5_pitch_progress += $d5_negative_progress
$d5_negative_progress = 0.0
add_float_var_to_float_var $d5_pitch_progress += $d5_pitch_diff

:DESERT5_16304
if 
  -20.0 > $d5_negative_progress
goto_if_false @DESERT5_16332
236@ = 1

:DESERT5_16332
if 
  236@ <> 1
goto_if_false @DESERT5_16408
if 
  $d5_pitch_progress >= 360.0
goto_if_false @DESERT5_16408
174@ = 1
220@ = add_blip_for_coord 115@ {y} 113@ {z} 114@
print_now 'DES5_AD' {time} 10000 {flag} 4

:DESERT5_16408
goto @DESERT5_16488

:DESERT5_16415
if 
  locate_char_in_car_3d $scplayer {x} 115@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_16488
remove_blip 220@
delete_checkpoint 128@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
235@ = 1

:DESERT5_16488
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_16511
236@ = 1

:DESERT5_16511
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_16554
236@ = 1

:DESERT5_16554
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_16955
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_16653
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 21
148@ = 27
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_16681

:DESERT5_16653
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_16681
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[7]
goto_if_false @DESERT5_16730
set_lvar_int_to_var_int 237@ = $d5_best_scores[7]
set_var_int_to_var_int $d5_best_scores[7] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_16730
if 
  $d5_total_missions_open == 10
goto_if_false @DESERT5_16801
if 
  $overall_score > 69
goto_if_false @DESERT5_16801
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 11
$d5_last_played = 11
232@ = 2

:DESERT5_16801
gosub @DESERT5_27620

:DESERT5_16808
if 
  219@ == 0
goto_if_false @DESERT5_16899
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_16868
232@ = 2
goto @DESERT5_16899

:DESERT5_16868
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_16892
goto @DESERT5_16899

:DESERT5_16892
goto @DESERT5_16808

:DESERT5_16899
gosub @DESERT5_27200
delete_checkpoint 127@
delete_checkpoint 128@
if 
  232@ == 2
goto_if_false @DESERT5_16948
goto @DESERT5_2600
goto @DESERT5_16955

:DESERT5_16948
goto @DESERT5_15302

:DESERT5_16955
goto @DESERT5_15490

:DESERT5_16962
if 
  34@ == 11
goto_if_false @DESERT5_18542

:DESERT5_16980
gosub @DESERT5_24907

:DESERT5_16987
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
173@ = 0
174@ = 0
35@ = create_car 513 {x} 53@ {y} 113@ {z} 114@
set_car_heading 35@ {heading} 270.0
if 
  231@ == 0
goto_if_false @DESERT5_17131
set_fixed_camera_position 292.95 {y} 2445.3 {z} 93.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 35@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:DESERT5_17131
freeze_car_position 35@ {state} True
wait 500
clear_prints 
print_now 'DES5_AA' {time} 5000 {flag} 4
gosub @DESERT5_24944

:DESERT5_17168
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_17207
232@ = 2
goto @DESERT5_18479

:DESERT5_17207
gosub @DESERT5_25097
if 
  232@ == 1
goto_if_false @DESERT5_17276
if 
  is_car_in_water 35@
goto_if_false @DESERT5_17269
232@ = 2
goto @DESERT5_18479
goto @DESERT5_17276

:DESERT5_17269
goto @DESERT5_29947

:DESERT5_17276
if 
  233@ == 0
goto_if_false @DESERT5_17463
if 
  not is_car_dead 35@
goto_if_false @DESERT5_17456
freeze_car_position 35@ {state} False
set_car_forward_speed 35@ {forwardSpeed} 20.0
233@ = 1
220@ = add_blip_for_coord 112@ {y} 113@ {z} 114@
127@ = create_checkpoint CheckpointType.Torus {x} 112@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
128@ = create_checkpoint CheckpointType.Torus {x} 115@ {y} 113@ {z} 114@ {pointX} 0.0 {pointY} 113@ {pointZ} 114@ {radius} 129@
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
print_now 'DES5_AA' {time} 7000 {flag} 4
print 'DES5_BB' {time} 10000 {flag} 4

:DESERT5_17456
goto @DESERT5_18535

:DESERT5_17463
if 
  not is_car_dead 35@
goto_if_false @DESERT5_18535
if 
  173@ <> 1
goto_if_false @DESERT5_17654
if 
  locate_char_in_car_3d $scplayer {x} 112@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_17647
remove_blip 220@
delete_checkpoint 127@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
173@ = 1
clear_prints 
print_now 'DES5_BC' {time} 5000 {flag} 4
$d5_last_roll = get_car_roll 35@
if 
  0.0 > $d5_last_roll
goto_if_false @DESERT5_17627
$d5_last_roll += 360.0

:DESERT5_17627
$d5_roll_progress = 0.0
$d5_negative_progress = 0.0

:DESERT5_17647
goto @DESERT5_18068

:DESERT5_17654
if 
  174@ <> 1
goto_if_false @DESERT5_17995
$d5_cur_roll = get_car_roll 35@
if 
  0.0 > $d5_cur_roll
goto_if_false @DESERT5_17711
$d5_cur_roll += 360.0

:DESERT5_17711
set_var_float_to_var_float $d5_roll_diff = $d5_cur_roll
sub_float_var_from_float_var $d5_roll_diff -= $d5_last_roll
set_var_float_to_var_float $d5_last_roll = $d5_cur_roll
if 
  $d5_roll_diff > 180.0
goto_if_false @DESERT5_17766
$d5_roll_diff -= 360.0

:DESERT5_17766
if 
  -180.0 > $d5_roll_diff
goto_if_false @DESERT5_17797
$d5_roll_diff += 360.0

:DESERT5_17797
if 
  0.0 > $d5_roll_diff
goto_if_false @DESERT5_17833
add_float_var_to_float_var $d5_negative_progress += $d5_roll_diff
goto @DESERT5_17895

:DESERT5_17833
if 
  0.0 > $d5_negative_progress
goto_if_false @DESERT5_17869
add_float_var_to_float_var $d5_negative_progress += $d5_roll_diff
goto @DESERT5_17895

:DESERT5_17869
add_float_var_to_float_var $d5_roll_progress += $d5_negative_progress
$d5_negative_progress = 0.0
add_float_var_to_float_var $d5_roll_progress += $d5_roll_diff

:DESERT5_17895
if 
  -20.0 > $d5_negative_progress
goto_if_false @DESERT5_17930
236@ = 1
goto @DESERT5_17988

:DESERT5_17930
if 
  $d5_roll_progress >= 360.0
goto_if_false @DESERT5_17988
174@ = 1
220@ = add_blip_for_coord 115@ {y} 113@ {z} 114@
print_now 'DES5_AD' {time} 10000 {flag} 4

:DESERT5_17988
goto @DESERT5_18068

:DESERT5_17995
if 
  locate_char_in_car_3d $scplayer {x} 115@ {y} 113@ {z} 114@ {xRadius} 129@ {yRadius} 129@ {zRadius} 129@ {drawSphere} False
goto_if_false @DESERT5_18068
remove_blip 220@
delete_checkpoint 128@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
235@ = 1

:DESERT5_18068
if 
  not is_car_in_air_proper 35@
goto_if_false @DESERT5_18091
236@ = 1

:DESERT5_18091
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_18134
236@ = 1

:DESERT5_18134
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_18535
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_18233
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 18
148@ = 23
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_18261

:DESERT5_18233
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_18261
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[8]
goto_if_false @DESERT5_18310
set_lvar_int_to_var_int 237@ = $d5_best_scores[8]
set_var_int_to_var_int $d5_best_scores[8] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_18310
if 
  $d5_total_missions_open == 11
goto_if_false @DESERT5_18381
if 
  $overall_score > 69
goto_if_false @DESERT5_18381
increment_int_stat StatId.FlyingSkill {value} 60
238@ = 2
$d5_total_missions_open = 12
$d5_last_played = 12
232@ = 2

:DESERT5_18381
gosub @DESERT5_27620

:DESERT5_18388
if 
  219@ == 0
goto_if_false @DESERT5_18479
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_18448
232@ = 2
goto @DESERT5_18479

:DESERT5_18448
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_18472
goto @DESERT5_18479

:DESERT5_18472
goto @DESERT5_18388

:DESERT5_18479
gosub @DESERT5_27200
delete_checkpoint 127@
delete_checkpoint 128@
if 
  232@ == 2
goto_if_false @DESERT5_18528
goto @DESERT5_2600
goto @DESERT5_18535

:DESERT5_18528
goto @DESERT5_16980

:DESERT5_18535
goto @DESERT5_17168

:DESERT5_18542
if 
  34@ == 12
goto_if_false @DESERT5_19958

:DESERT5_18560
gosub @DESERT5_24907

:DESERT5_18567
$car_timer = 0
238@ = 0
232@ = 0
233@ = 0
235@ = 0
236@ = 0
175@ = 0
176@ = 0
if 
  231@ == 0
goto_if_false @DESERT5_18780
70@ = create_char PedType.Mission1 {modelId} 0 {x} 46@ {y} 49@ {z} 250.0
set_char_heading 70@ {heading} 90.0
freeze_char_position 70@ {state} True
set_var_float_to_lvar_float $ai_target_x = 136@
set_var_float_to_lvar_float $ai_target_y = 137@
set_var_float_to_lvar_float $ai_target_z = 138@
start_new_streamed_script 1 {args} -1 -10.0 10.0 -5.0 -2.0 10.0 12.0 1 70@ 
stream_script 1
attach_camera_to_char_look_at_char 70@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 4.0 {char} 70@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:DESERT5_18780
set_char_coordinates $scplayer {x} 139@ {y} 140@ {z} 141@
set_char_heading $scplayer {heading} 90.0
request_model 371

:DESERT5_18809
if 
  not has_model_loaded 371
goto_if_false @DESERT5_18836
wait 0
goto @DESERT5_18809

:DESERT5_18836
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
$para_float_Vy = 5.0
$para_float_Vz = -5.0
$para_flare_Vy = 8.5
$para_flare_Vz = -1.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 15.0
$para_pickup_flag = 0

:DESERT5_18912
if 
  2 > $player_has_parachute
goto_if_false @DESERT5_18941
wait 0
goto @DESERT5_18912

:DESERT5_18941
135@ = create_object #BASEJUMP_TARGET {x} 136@ {y} 137@ {z} 138@
set_object_heading 135@ {heading} 90.0
143@ = create_checkpoint CheckpointType.Torus {x} 136@ {y} 137@ {z} 138@ {pointX} 136@ {pointY} 137@ {pointZ} 900.0 {radius} 6.5
wait 500
clear_prints 
print_now 'DES5_CA' {time} 7000 {flag} 4
print 'DES5_CI' {time} 10000 {flag} 4
gosub @DESERT5_24944

:DESERT5_19046
wait 0
force_weather_now WeatherType.ExtraSunnyDesert
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_19085
232@ = 2
goto @DESERT5_19842

:DESERT5_19085
if 
  233@ == 0
goto_if_false @DESERT5_19147
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'
220@ = add_blip_for_coord 136@ {y} 137@ {z} 138@
233@ = 1
goto @DESERT5_19951

:DESERT5_19147
if 
  176@ <> 1
goto_if_false @DESERT5_19331
if 
  175@ <> 1
goto_if_false @DESERT5_19241
41@, 42@, 43@ = get_char_coordinates $scplayer
if 
  300.0 >= 43@
goto_if_false @DESERT5_19241
175@ = 1
print_now 'DES5_CC' {time} 10000 {flag} 4

:DESERT5_19241
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @DESERT5_19331
176@ = 1
clear_prints 
print_now 'DES5_CD' {time} 7000 {flag} 4
print 'DES5_CF' {time} 7000 {flag} 4
print 'DES5_CH' {time} 7000 {flag} 4
print 'DES5_CE' {time} 7000 {flag} 4

:DESERT5_19331
if 
  176@ == 1
goto_if_false @DESERT5_19440
if 
  $player_landed == 1
goto_if_false @DESERT5_19440
41@, 42@, 43@ = get_char_coordinates $scplayer
142@ = get_distance_between_coords_2d 41@ {fromY} 42@ {toX} 136@ {toZ} 137@
if 
  10.0 >= 142@
goto_if_false @DESERT5_19433
235@ = 1
goto @DESERT5_19440

:DESERT5_19433
236@ = 1

:DESERT5_19440
if 
  not locate_char_any_means_2d $scplayer {x} -450.0 {y} 49@ {xRadius} 1250.0 {yRadius} 1250.0 {drawSphere} False
goto_if_false @DESERT5_19483
236@ = 1

:DESERT5_19483
if or
  235@ == 1
  236@ == 1
goto_if_false @DESERT5_19951
gosub @DESERT5_25367
if 
  235@ == 1
goto_if_false @DESERT5_19582
gosub @DESERT5_25988
gosub @DESERT5_26721
147@ = 55
148@ = 70
gosub @DESERT5_26882
gosub @DESERT5_27044
goto @DESERT5_19610

:DESERT5_19582
$overall_secs = 0
$position_score = 0
145@ = 0
$overall_score = 0

:DESERT5_19610
if 
  is_int_var_greater_than_int_var $overall_score > $d5_best_scores[9]
goto_if_false @DESERT5_19659
set_lvar_int_to_var_int 237@ = $d5_best_scores[9]
set_var_int_to_var_int $d5_best_scores[9] = $overall_score
238@ = 1
gosub @DESERT5_25412

:DESERT5_19659
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_19744
if 
  $overall_score > 69
goto_if_false @DESERT5_19744
238@ = 2
$d5_total_missions_open = 12
$d5_last_played = 12
232@ = 2
increment_int_stat StatId.FlyingSkill {value} 60
$pilot_test_passed = 1
177@ = 1

:DESERT5_19744
gosub @DESERT5_27620

:DESERT5_19751
if 
  219@ == 0
goto_if_false @DESERT5_19842
wait 0
gosub @DESERT5_29325
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DESERT5_19811
232@ = 2
goto @DESERT5_19842

:DESERT5_19811
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DESERT5_19835
goto @DESERT5_19842

:DESERT5_19835
goto @DESERT5_19751

:DESERT5_19842
gosub @DESERT5_27200
freeze_char_position $scplayer {state} False
if 
  177@ == 1
goto_if_false @DESERT5_19912
do_fade 500 {direction} Fade.In

:DESERT5_19881
if 
  get_fading_status 
goto_if_false @DESERT5_19905
wait 0
goto @DESERT5_19881

:DESERT5_19905
goto @DESERT5_29990

:DESERT5_19912
if 
  232@ == 2
goto_if_false @DESERT5_19944
goto @DESERT5_2600
goto @DESERT5_19951

:DESERT5_19944
goto @DESERT5_18560

:DESERT5_19951
goto @DESERT5_19046

:DESERT5_19958
85@ = -383.79
set_lvar_float_to_lvar_float 93@ = 49@
101@ = 147.09
set_lvar_float_to_lvar_float 86@ = 85@
86@ -= 300.0
set_lvar_float_to_lvar_float 91@ = 85@
91@ -= 300.0
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20090
set_lvar_float_to_lvar_float 94@ = 93@
94@ -= 300.0
set_lvar_float_to_lvar_float 99@ = 93@
99@ += 300.0
goto @DESERT5_20126

:DESERT5_20090
set_lvar_float_to_lvar_float 94@ = 93@
94@ += 300.0
set_lvar_float_to_lvar_float 99@ = 93@
99@ -= 300.0

:DESERT5_20126
set_lvar_float_to_lvar_float 102@ = 101@
set_lvar_float_to_lvar_float 107@ = 101@
130@ = 350.0
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20194
131@ = 270.0
goto @DESERT5_20204

:DESERT5_20194
131@ = 90.0

:DESERT5_20204
set_lvar_float_to_lvar_float 133@ = 85@
133@ -= 600.0
set_lvar_float_to_lvar_float 134@ = 93@
156@ = 2

:DESERT5_20237
if 
  5 >= 156@
goto_if_false @DESERT5_20405
cos 131@ {var_result} 85@(156@,8f)
sin 131@ {var_result} 93@(156@,8f)
mult_float_lvar_by_float_lvar 85@(156@,8f) *= 130@
mult_float_lvar_by_float_lvar 93@(156@,8f) *= 130@
add_float_lvar_to_float_lvar 85@(156@,8f) += 133@
add_float_lvar_to_float_lvar 93@(156@,8f) += 134@
set_lvar_float_to_lvar_float 101@(156@,8f) = 101@
if or
  34@ == 3
  34@ == 5
goto_if_false @DESERT5_20381
131@ -= 60.0
goto @DESERT5_20391

:DESERT5_20381
131@ += 60.0

:DESERT5_20391
156@ += 1
goto @DESERT5_20237

:DESERT5_20405
set_lvar_float_to_lvar_float 92@ = 85@
set_lvar_float_to_lvar_float 100@ = 93@
set_lvar_float_to_lvar_float 108@ = 101@
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_20474
92@ += 20.0
108@ -= 30.0

:DESERT5_20474
return 

:DESERT5_20476
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 227@
if 
  226@ == 1
goto_if_false @DESERT5_20598
if 
  255 > 227@
goto_if_false @DESERT5_20591
227@ += 5
if 
  227@ > 255
goto_if_false @DESERT5_20584
227@ = 255

:DESERT5_20584
goto @DESERT5_20598

:DESERT5_20591
226@ = 2

:DESERT5_20598
if 
  226@ == 3
goto_if_false @DESERT5_20680
if 
  227@ > 0
goto_if_false @DESERT5_20673
227@ -= 5
if 
  0 > 227@
goto_if_false @DESERT5_20666
227@ = 0

:DESERT5_20666
goto @DESERT5_20680

:DESERT5_20673
226@ = 0

:DESERT5_20680
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @DESERT5_24787
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  34@ == 1
goto_if_false @DESERT5_20792
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MA'
set_lvar_int_to_var_int 228@ = $d5_best_scores[0]
gosub @DESERT5_22125

:DESERT5_20792
if 
  34@ == 2
goto_if_false @DESERT5_20846
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MB'
set_lvar_int_to_var_int 228@ = $d5_best_scores[1]
gosub @DESERT5_22125

:DESERT5_20846
if 
  34@ == 3
goto_if_false @DESERT5_20900
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MC'
set_lvar_int_to_var_int 228@ = $d5_best_scores[2]
gosub @DESERT5_22125

:DESERT5_20900
if 
  34@ == 4
goto_if_false @DESERT5_20954
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MC'
set_lvar_int_to_var_int 228@ = $d5_best_scores[2]
gosub @DESERT5_22125

:DESERT5_20954
if 
  34@ == 5
goto_if_false @DESERT5_21008
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MD'
set_lvar_int_to_var_int 228@ = $d5_best_scores[3]
gosub @DESERT5_22125

:DESERT5_21008
if 
  34@ == 6
goto_if_false @DESERT5_21062
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MD'
set_lvar_int_to_var_int 228@ = $d5_best_scores[3]
gosub @DESERT5_22125

:DESERT5_21062
if 
  34@ == 7
goto_if_false @DESERT5_21116
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_ME'
set_lvar_int_to_var_int 228@ = $d5_best_scores[4]
gosub @DESERT5_22125

:DESERT5_21116
if 
  34@ == 8
goto_if_false @DESERT5_21170
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MF'
set_lvar_int_to_var_int 228@ = $d5_best_scores[5]
gosub @DESERT5_22125

:DESERT5_21170
if 
  34@ == 9
goto_if_false @DESERT5_21224
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MG'
set_lvar_int_to_var_int 228@ = $d5_best_scores[6]
gosub @DESERT5_22125

:DESERT5_21224
if 
  34@ == 10
goto_if_false @DESERT5_21278
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MH'
set_lvar_int_to_var_int 228@ = $d5_best_scores[7]
gosub @DESERT5_22125

:DESERT5_21278
if 
  34@ == 11
goto_if_false @DESERT5_21332
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MI'
set_lvar_int_to_var_int 228@ = $d5_best_scores[8]
gosub @DESERT5_22125

:DESERT5_21332
if 
  34@ == 12
goto_if_false @DESERT5_21386
display_text 322.0 {offsetTop} 31.0 {key} 'DES5_MJ'
set_lvar_int_to_var_int 228@ = $d5_best_scores[9]
gosub @DESERT5_22125

:DESERT5_21386
gosub @DESERT5_24667
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 360.0 {key} 'DES5_FO'
if 
  230@ <> 1
goto_if_false @DESERT5_21655
gosub @DESERT5_24667
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 340.0 {key} 'DES5_FP'
gosub @DESERT5_24667
if 
  $d5_total_missions_open <> 1
goto_if_false @DESERT5_21592
152@, 153@, 154@, 155@ = get_hud_colour 6
goto @DESERT5_21608

:DESERT5_21592
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Radar

:DESERT5_21608
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'DES5_FN'

:DESERT5_21655
gosub @DESERT5_24667
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Health
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
set_text_scale 0.32 {heightScale} 1.25
display_text 150.0 {offsetTop} 360.0 {key} 'DES5_FL'
if 
  230@ <> 1
goto_if_false @DESERT5_21883
gosub @DESERT5_24667
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Health
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
set_text_scale 0.32 {heightScale} 1.25
display_text 150.0 {offsetTop} 340.0 {key} 'SCH_PRS'
gosub @DESERT5_24667
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Health
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'DES5_FK'

:DESERT5_21883
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:DESERT5_22125
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
if 
  70 > 228@
goto_if_false @DESERT5_22187
229@ = 1

:DESERT5_22187
if 
  228@ > 69
goto_if_false @DESERT5_22230
if 
  85 > 228@
goto_if_false @DESERT5_22230
229@ = 2

:DESERT5_22230
if 
  228@ > 84
goto_if_false @DESERT5_22273
if 
  100 > 228@
goto_if_false @DESERT5_22273
229@ = 3

:DESERT5_22273
if 
  228@ == 100
goto_if_false @DESERT5_22298
229@ = 4

:DESERT5_22298
gosub @DESERT5_24667
set_text_right_justify False
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
if 
  229@ > 1
goto_if_false @DESERT5_22392
display_text_with_number 320.0 {offsetTop} 75.0 {key} 'DES5_FQ' {num} 228@
goto @DESERT5_22413

:DESERT5_22392
display_text 320.0 {offsetTop} 75.0 {key} 'DES5_FR'

:DESERT5_22413
if 
  229@ > 1
goto_if_false @DESERT5_22518
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @DESERT5_22598

:DESERT5_22518
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:DESERT5_22598
set_sprites_draw_before_fade True
if 
  229@ == 1
goto_if_false @DESERT5_22784
242@ = get_current_language 
if 
  is_int_lvar_equal_to_constant 242@ == 0
goto_if_false @DESERT5_22686
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
goto @DESERT5_22722

:DESERT5_22686
draw_sprite 10 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_22722
gosub @DESERT5_24667
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FS'

:DESERT5_22784
if 
  229@ == 2
goto_if_false @DESERT5_22900
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DESERT5_24667
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FF'

:DESERT5_22900
if 
  229@ == 3
goto_if_false @DESERT5_23016
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DESERT5_24667
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FE'

:DESERT5_23016
if 
  229@ == 4
goto_if_false @DESERT5_23132
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @DESERT5_24667
set_text_centre True
152@, 153@, 154@, 155@ = get_hud_colour HudObject.Armor
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 375.0 {key} 'DES5_FD'

:DESERT5_23132
return 

:DESERT5_23134
if 
  231@ == 0
goto_if_false @DESERT5_23413
if 
  34@ == 1
goto_if_false @DESERT5_23177
gosub @DESERT5_3984

:DESERT5_23177
if 
  34@ == 2
goto_if_false @DESERT5_23202
gosub @DESERT5_5493

:DESERT5_23202
if 
  34@ == 4
goto_if_false @DESERT5_23227
gosub @DESERT5_6956

:DESERT5_23227
if 
  34@ == 6
goto_if_false @DESERT5_23252
gosub @DESERT5_8535

:DESERT5_23252
if 
  34@ == 7
goto_if_false @DESERT5_23277
gosub @DESERT5_10325

:DESERT5_23277
if 
  34@ == 8
goto_if_false @DESERT5_23302
gosub @DESERT5_11761

:DESERT5_23302
if 
  34@ == 9
goto_if_false @DESERT5_23327
gosub @DESERT5_12980

:DESERT5_23327
if 
  34@ == 10
goto_if_false @DESERT5_23352
gosub @DESERT5_15309

:DESERT5_23352
if 
  34@ == 11
goto_if_false @DESERT5_23377
gosub @DESERT5_16987

:DESERT5_23377
if 
  34@ == 12
goto_if_false @DESERT5_23402
gosub @DESERT5_18567

:DESERT5_23402
play_mission_audio MissionAudioSlot.Slot3
231@ = 1

:DESERT5_23413
if 
  231@ == 1
goto_if_false @DESERT5_23711
if 
  34@ <> 12
goto_if_false @DESERT5_23616
if 
  not is_car_dead 35@
goto_if_false @DESERT5_23595
150@ = 589
add_int_lvar_to_int_lvar 150@ += 34@
if 
  34@ == 4
goto_if_false @DESERT5_23506
150@ -= 1

:DESERT5_23506
if 
  34@ >= 6
goto_if_false @DESERT5_23531
150@ -= 2

:DESERT5_23531
if 
  not has_car_recording_been_loaded 150@
goto_if_false @DESERT5_23559
request_car_recording 150@
goto @DESERT5_23588

:DESERT5_23559
start_playback_recorded_car 35@ {path} 150@
gosub @DESERT5_24311
226@ = 3
231@ = 2

:DESERT5_23588
goto @DESERT5_23609

:DESERT5_23595
226@ = 3
231@ = 2

:DESERT5_23609
goto @DESERT5_23711

:DESERT5_23616
if 
  not is_char_dead 70@
goto_if_false @DESERT5_23697
if 
  is_char_playing_anim 70@ {animationName} "FALL_SKYDIVE"
goto_if_false @DESERT5_23690
freeze_char_position 70@ {state} False
TIMERB = 0
226@ = 3
231@ = 2

:DESERT5_23690
goto @DESERT5_23711

:DESERT5_23697
226@ = 3
231@ = 2

:DESERT5_23711
if 
  231@ == 2
goto_if_false @DESERT5_24069
if 
  34@ <> 12
goto_if_false @DESERT5_23992
if 
  not is_car_dead 35@
goto_if_false @DESERT5_23971
if 
  not is_playback_going_on_for_car 35@
goto_if_false @DESERT5_23807
freeze_car_position 35@ {state} True
226@ = 1
231@ = 4
goto @DESERT5_23964

:DESERT5_23807
set_heli_blades_full_speed 35@
if 
  34@ == 9
goto_if_false @DESERT5_23964
fire_hunter_gun 35@
if and
  172@ <> 1
  not is_car_dead 62@
  TIMERB > 3000
goto_if_false @DESERT5_23878
explode_car_in_cutscene 62@
172@ = 1

:DESERT5_23878
if and
  171@ <> 1
  not is_car_dead 61@
  TIMERB > 4500
goto_if_false @DESERT5_23921
explode_car_in_cutscene 61@
171@ = 1

:DESERT5_23921
if and
  170@ <> 1
  not is_car_dead 60@
  TIMERB > 6000
goto_if_false @DESERT5_23964
explode_car_in_cutscene 60@
170@ = 1

:DESERT5_23964
goto @DESERT5_23985

:DESERT5_23971
226@ = 1
231@ = 4

:DESERT5_23985
goto @DESERT5_24069

:DESERT5_23992
if 
  not is_char_dead 70@
goto_if_false @DESERT5_24055
if 
  TIMERB > 15000
goto_if_false @DESERT5_24048
freeze_char_position 70@ {state} True
226@ = 1
231@ = 4

:DESERT5_24048
goto @DESERT5_24069

:DESERT5_24055
226@ = 1
231@ = 4

:DESERT5_24069
if 
  231@ == 3
goto_if_false @DESERT5_24124
if 
  not is_car_dead 35@
goto_if_false @DESERT5_24110
freeze_car_position 35@ {state} True

:DESERT5_24110
226@ = 1
231@ = 4

:DESERT5_24124
if 
  231@ == 4
goto_if_false @DESERT5_24309
if 
  226@ == 2
goto_if_false @DESERT5_24309
stop_playback_recorded_car 35@
restore_camera_jumpcut 
delete_char 70@
delete_car 35@
156@ = 0

:DESERT5_24184
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_24226
delete_car 60@(156@,3i)
156@ += 1
goto @DESERT5_24184

:DESERT5_24226
remove_car_recording 590
remove_car_recording 591
remove_car_recording 592
remove_car_recording 593
remove_car_recording 594
remove_car_recording 595
remove_car_recording 596
remove_car_recording 597
remove_car_recording 598
clear_mission_audio MissionAudioSlot.Slot3
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
231@ = 0

:DESERT5_24309
return 

:DESERT5_24311
switch_start 34@ {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @DESERT5_24636 {caseNum1} 1 {caseLabel1} @DESERT5_24439 {caseNum2} 2 {caseLabel2} @DESERT5_24463 {caseNum3} 3 {caseLabel3} @DESERT5_24487 {caseNum4} 4 {caseLabel4} @DESERT5_24487 {caseNum5} 5 {caseLabel5} @DESERT5_24516 {caseNum6} 6 {caseLabel6} @DESERT5_24516 {caseNum7} 7 {caseLabel7} @DESERT5_24540
switch_continued 9 {caseLabel1} @DESERT5_24564 {caseNum2} 10 {caseLabel2} @DESERT5_24588 {caseNum3} 11 {caseLabel3} @DESERT5_24612 {caseNum4} -1 {caseLabel4} @DESERT5_24643 {caseNum5} -1 {caseLabel5} @DESERT5_24643 {caseNum6} -1 {caseLabel6} @DESERT5_24643 {caseNum7} -1 {caseLabel7} @DESERT5_24643 {caseNum8} -1 {caseLabel8} @DESERT5_24643 {caseNum9} -1 {caseLabel9} @DESERT5_24643

:DESERT5_24439
load_scene 172.6 {y} 2466.1399 {z} 17.05
goto @DESERT5_24643

:DESERT5_24463
load_scene 27.29 {y} 2466.3101 {z} 16.76
goto @DESERT5_24643

:DESERT5_24487
load_scene_in_direction -1251.02 {y} 2301.3201 {z} 120.44 {heading} 60.0
goto @DESERT5_24643

:DESERT5_24516
load_scene -394.09 {y} 2601.47 {z} 134.89
goto @DESERT5_24643

:DESERT5_24540
load_scene 323.02 {y} 2446.8101 {z} 117.65
goto @DESERT5_24643

:DESERT5_24564
load_scene 365.5 {y} 2339.25 {z} 63.23
goto @DESERT5_24643

:DESERT5_24588
load_scene 269.53 {y} 2445.3 {z} 88.46
goto @DESERT5_24643

:DESERT5_24612
load_scene 292.95 {y} 2445.3 {z} 93.46
goto @DESERT5_24643

:DESERT5_24636
goto @DESERT5_24643

:DESERT5_24643
load_scene_in_direction 412.38 {y} 2533.6499 {z} 18.18 {heading} 90.0
return 

:DESERT5_24667
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:DESERT5_24729
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:DESERT5_24787
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 

:DESERT5_24849
set_text_draw_before_fade True
set_text_justify True
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.4
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 

:DESERT5_24907
do_fade 500 {direction} Fade.Out

:DESERT5_24914
if 
  get_fading_status 
goto_if_false @DESERT5_24938
wait 0
goto @DESERT5_24914

:DESERT5_24938
restore_camera_jumpcut 
set_camera_behind_player 
return 

:DESERT5_24944
if 
  34@ <> 12
goto_if_false @DESERT5_24986
if 
  not is_car_dead 35@
goto_if_false @DESERT5_24986
warp_char_into_car $scplayer {vehicle} 35@

:DESERT5_24986
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
request_collision $player_x {y} $player_y
load_scene $player_x {y} $player_y {z} $player_z
wait 0
if 
  34@ <> 9
goto_if_false @DESERT5_25045
force_weather_now WeatherType.ExtraSunnyDesert

:DESERT5_25045
display_hud True
display_radar True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 500 {direction} Fade.In

:DESERT5_25064
if 
  get_fading_status 
goto_if_false @DESERT5_25088
wait 0
goto @DESERT5_25064

:DESERT5_25088
set_player_control $player1 {state} True
return 

:DESERT5_25097
if 
  not is_car_dead 35@
goto_if_false @DESERT5_25164
if 
  233@ == 1
goto_if_false @DESERT5_25157
if 
  not is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_25157
232@ = 1

:DESERT5_25157
goto @DESERT5_25171

:DESERT5_25164
232@ = 1

:DESERT5_25171
return 

:DESERT5_25173
if 
  not is_car_dead 35@
goto_if_false @DESERT5_25216
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_25216
$d5_mission_plane_speed = get_car_speed 35@

:DESERT5_25216
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @DESERT5_25331
if 
  $d5_mission_plane_speed > 0.1
goto_if_false @DESERT5_25331
clear_prints 
if or
  34@ == 1
  34@ == 3
  34@ == 4
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_25324
display_onscreen_timer_with_string $car_timer {direction} TimerDirection.Up {text} 'DES5_T4'

:DESERT5_25324
233@ = 1

:DESERT5_25331
return 
if 
  $car_timer == 0
goto_if_false @DESERT5_25365
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True

:DESERT5_25365
return 

:DESERT5_25367
set_player_control $player1 {state} False
if 
  34@ <> 12
goto_if_false @DESERT5_25399
goto @DESERT5_25406

:DESERT5_25399
freeze_char_position $scplayer {state} True

:DESERT5_25406
freeze_onscreen_timer True
return 

:DESERT5_25412
229@ = 0
if 
  $overall_score > 69
goto_if_false @DESERT5_25501
if 
  85 > $overall_score
goto_if_false @DESERT5_25501
if and
  237@ > 69
  85 > 237@
goto_if_false @DESERT5_25494
229@ = 0
goto @DESERT5_25501

:DESERT5_25494
229@ = 2

:DESERT5_25501
if 
  $overall_score > 84
goto_if_false @DESERT5_25583
if 
  100 > $overall_score
goto_if_false @DESERT5_25583
if and
  237@ > 84
  100 > 237@
goto_if_false @DESERT5_25576
229@ = 0
goto @DESERT5_25583

:DESERT5_25576
229@ = 3

:DESERT5_25583
if 
  $overall_score == 100
goto_if_false @DESERT5_25640
if 
  237@ == 100
goto_if_false @DESERT5_25633
229@ = 0
goto @DESERT5_25640

:DESERT5_25633
229@ = 4

:DESERT5_25640
243@ = 1
244@ = 1
245@ = 1
156@ = 0

:DESERT5_25668
if 
  10 > 156@
goto_if_false @DESERT5_25862
if 
  $d5_bronze_generator_unlocked <> 1
goto_if_false @DESERT5_25740
if and
  70 > $d5_best_scores(156@,10i)
  243@ == 1
goto_if_false @DESERT5_25740
243@ = 0

:DESERT5_25740
if 
  $d5_silver_generator_unlocked <> 1
goto_if_false @DESERT5_25794
if and
  85 > $d5_best_scores(156@,10i)
  244@ == 1
goto_if_false @DESERT5_25794
244@ = 0

:DESERT5_25794
if 
  $d5_gold_generator_unlocked <> 1
goto_if_false @DESERT5_25848
if and
  100 > $d5_best_scores(156@,10i)
  245@ == 1
goto_if_false @DESERT5_25848
245@ = 0

:DESERT5_25848
156@ += 1
goto @DESERT5_25668

:DESERT5_25862
if and
  $d5_bronze_generator_unlocked <> 1
  243@ == 1
goto_if_false @DESERT5_25901
switch_car_generator $d5_bronze_generator {amount} 101
$d5_bronze_generator_unlocked = 1

:DESERT5_25901
if and
  $d5_silver_generator_unlocked <> 1
  244@ == 1
goto_if_false @DESERT5_25940
switch_car_generator $d5_silver_generator {amount} 101
$d5_silver_generator_unlocked = 1

:DESERT5_25940
if and
  $d5_gold_generator_unlocked <> 1
  245@ == 1
goto_if_false @DESERT5_25986
switch_car_generator $d5_gold_generator {amount} 101
switch_car_generator $gen_car_flying[25] {amount} 101
$d5_gold_generator_unlocked = 1

:DESERT5_25986
return 

:DESERT5_25988
if or
  34@ == 1
  34@ == 3
  34@ == 4
  34@ == 7
  34@ == 10
  34@ == 11
goto_if_false @DESERT5_26055
$position_score = 100
goto @DESERT5_26669

:DESERT5_26055
if 
  34@ <> 12
goto_if_false @DESERT5_26487
if 
  not is_car_dead 35@
goto_if_false @DESERT5_26473
$position_score = 100
if 
  34@ == 2
goto_if_false @DESERT5_26165
if 
  not is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} False
goto_if_false @DESERT5_26165
$position_score -= 50

:DESERT5_26165
if or
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_26241
if 
  not is_car_stopped_in_area_3d 35@ {leftBottomX} 288.0 {leftBottomY} 45@ {leftBottomZ} 16.0 {rightTopX} 328.0 {rightTopY} 47@ {rightTopZ} 18.0 {drawSphere} True
goto_if_false @DESERT5_26241
$position_score -= 50

:DESERT5_26241
if 
  34@ == 8
goto_if_false @DESERT5_26308
if 
  not locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
goto_if_false @DESERT5_26308
$position_score -= 50

:DESERT5_26308
if 
  34@ == 9
goto_if_false @DESERT5_26375
if 
  not locate_stopped_car_3d 35@ {x} 56@ {y} 57@ {z} 58@ {xRadius} 26.31 {yRadius} 26.31 {zRadius} 26.31 {drawSphere} True
goto_if_false @DESERT5_26375
$position_score -= 50

:DESERT5_26375
40@ = get_car_heading 35@
if or
  40@ < 260.0
  280.0 < 40@
goto_if_false @DESERT5_26466
if and
  40@ >= 181.0
  359.0 >= 40@
goto_if_false @DESERT5_26459
$position_score -= 10
goto @DESERT5_26466

:DESERT5_26459
$position_score -= 25

:DESERT5_26466
goto @DESERT5_26480

:DESERT5_26473
$position_score = 0

:DESERT5_26480
goto @DESERT5_26669

:DESERT5_26487
if 
  0.8 >= 142@
goto_if_false @DESERT5_26522
$position_score = 100
goto @DESERT5_26669

:DESERT5_26522
if 
  2.1 >= 142@
goto_if_false @DESERT5_26557
$position_score = 85
goto @DESERT5_26669

:DESERT5_26557
if 
  4.0 >= 142@
goto_if_false @DESERT5_26592
$position_score = 75
goto @DESERT5_26669

:DESERT5_26592
if 
  6.0 >= 142@
goto_if_false @DESERT5_26627
$position_score = 70
goto @DESERT5_26669

:DESERT5_26627
if 
  10.0 >= 142@
goto_if_false @DESERT5_26662
$position_score = 35
goto @DESERT5_26669

:DESERT5_26662
$position_score = 0

:DESERT5_26669
if 
  0 > $position_score
goto_if_false @DESERT5_26694
$position_score = 0

:DESERT5_26694
if 
  $position_score > 100
goto_if_false @DESERT5_26719
$position_score = 100

:DESERT5_26719
return 

:DESERT5_26721
if 
  34@ <> 12
goto_if_false @DESERT5_26873
if 
  not is_car_dead 35@
goto_if_false @DESERT5_26859
36@ = get_car_health 35@
$player_car_damage = 1000
sub_int_var_from_int_var $player_car_damage -= $instructor_car_health
145@ = 1000
sub_int_lvar_from_int_lvar 145@ -= 36@
145@ /= 10
if 
  0 > 145@
goto_if_false @DESERT5_26827
145@ = 0

:DESERT5_26827
if 
  145@ > 100
goto_if_false @DESERT5_26852
145@ = 100

:DESERT5_26852
goto @DESERT5_26866

:DESERT5_26859
145@ = 100

:DESERT5_26866
goto @DESERT5_26880

:DESERT5_26873
145@ = 0

:DESERT5_26880
return 

:DESERT5_26882
set_var_int_to_var_int $overall_secs = $car_timer
$overall_secs /= 1000
if 
  is_int_lvar_greater_or_equal_to_int_var 147@ >= $overall_secs
goto_if_false @DESERT5_26931
146@ = 100
goto @DESERT5_27042

:DESERT5_26931
set_lvar_int_to_var_int 146@ = $overall_secs
sub_int_lvar_from_int_lvar 146@ -= 147@
146@ *= 30
set_lvar_int_to_lvar_int 149@ = 148@
sub_int_lvar_from_int_lvar 149@ -= 147@
div_int_lvar_by_int_lvar 146@ /= 149@
146@ *= -1
146@ += 100
if 
  0 > 146@
goto_if_false @DESERT5_27017
146@ = 0

:DESERT5_27017
if 
  146@ > 100
goto_if_false @DESERT5_27042
146@ = 100

:DESERT5_27042
return 

:DESERT5_27044
set_var_int_to_lvar_int $overall_score = 146@
if or
  34@ == 2
  34@ == 5
  34@ == 6
  34@ == 8
  34@ == 9
  34@ == 12
goto_if_false @DESERT5_27120
add_int_var_to_int_var $overall_score += $position_score
$overall_score /= 2

:DESERT5_27120
if 
  34@ <> 12
goto_if_false @DESERT5_27146
sub_int_lvar_from_int_var $overall_score -= 145@

:DESERT5_27146
if 
  0 > $overall_score
goto_if_false @DESERT5_27171
$overall_score = 0

:DESERT5_27171
if 
  $overall_score > 100
goto_if_false @DESERT5_27196
$overall_score = 100

:DESERT5_27196
clear_prints 
return 

:DESERT5_27200
set_player_control $player1 {state} False
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPilotAwardTrackStop
do_fade 500 {direction} Fade.Out

:DESERT5_27234
if 
  get_fading_status 
goto_if_false @DESERT5_27265
wait 0
gosub @DESERT5_29325
goto @DESERT5_27234

:DESERT5_27265
delete_menu 144@
clear_help 
clear_prints 
clear_this_big_print 'DES5_SA'
clear_this_big_print 'DES5_SB'
set_text_scale 1.0 {heightScale} 1.0
apply_brakes_to_players_car $player1 {state} False
if 
  34@ == 12
goto_if_false @DESERT5_27350
delete_object 135@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute
mark_model_as_no_longer_needed 371

:DESERT5_27350
restore_camera_jumpcut 
delete_char 70@
clear_char_tasks_immediately $scplayer
remove_blip 220@
delete_checkpoint 118@
delete_checkpoint 143@
if 
  232@ == 2
goto_if_false @DESERT5_27397
clear_prints 

:DESERT5_27397
if 
  not is_car_dead 35@
goto_if_false @DESERT5_27439
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_27439
freeze_car_position 35@ {state} True

:DESERT5_27439
freeze_char_position $scplayer {state} True
wait 0
request_collision 412.38 {y} 2533.6499
load_scene 412.38 {y} 2533.6499 {z} 18.18
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
if 
  not is_car_dead 35@
goto_if_false @DESERT5_27520
freeze_car_position 35@ {state} False

:DESERT5_27520
freeze_char_position $scplayer {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @DESERT5_27570
warp_char_from_car_to_coord $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18
goto @DESERT5_27590

:DESERT5_27570
set_char_coordinates $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18

:DESERT5_27590
set_char_heading $scplayer {heading} 90.0
delete_car 35@
restore_camera_jumpcut 
set_camera_behind_player 
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
return 

:DESERT5_27620
set_player_control $player1 {state} False
do_fade 200 {direction} Fade.Out

:DESERT5_27634
if 
  get_fading_status 
goto_if_false @DESERT5_27658
wait 0
goto @DESERT5_27634

:DESERT5_27658
clear_help 
clear_prints 
clear_onscreen_timer $car_timer
remove_blip 220@
delete_checkpoint 118@
if or
  34@ == 3
  34@ == 4
  34@ == 5
  34@ == 6
goto_if_false @DESERT5_27764
156@ = 0

:DESERT5_27723
if 
  8 > 156@
goto_if_false @DESERT5_27764
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_27723

:DESERT5_27764
if 
  34@ == 9
goto_if_false @DESERT5_27880
156@ = 0

:DESERT5_27789
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_27831
remove_blip 221@(156@,3i)
156@ += 1
goto @DESERT5_27789

:DESERT5_27831
156@ = 0

:DESERT5_27838
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_27880
remove_blip 224@(156@,2i)
156@ += 1
goto @DESERT5_27838

:DESERT5_27880
if or
  34@ == 10
  34@ == 11
goto_if_false @DESERT5_27915
delete_checkpoint 127@
delete_checkpoint 128@

:DESERT5_27915
if 
  34@ == 12
goto_if_false @DESERT5_27960
delete_object 135@
delete_checkpoint 143@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute
mark_model_as_no_longer_needed 371
clear_char_tasks_immediately $scplayer

:DESERT5_27960
restore_camera_jumpcut 
delete_char 70@
if 
  232@ == 2
goto_if_false @DESERT5_27987
clear_prints 

:DESERT5_27987
if 
  not is_car_dead 35@
goto_if_false @DESERT5_28029
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @DESERT5_28029
freeze_car_position 35@ {state} True

:DESERT5_28029
freeze_char_position $scplayer {state} True
wait 0
request_collision 412.38 {y} 2533.6499
load_scene 300.0 {y} 2501.9399 {z} 19.65
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
if 
  not is_car_dead 35@
goto_if_false @DESERT5_28110
freeze_car_position 35@ {state} False

:DESERT5_28110
freeze_char_position $scplayer {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @DESERT5_28160
warp_char_from_car_to_coord $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18
goto @DESERT5_28180

:DESERT5_28160
set_char_coordinates $scplayer {x} 412.38 {y} 2533.6499 {z} 18.18

:DESERT5_28180
set_char_heading $scplayer {heading} 90.0
delete_car 35@
display_hud False
display_radar False
set_fixed_camera_position 370.0 {y} 2501.9399 {z} 19.65 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 320.0 {y} 2501.9399 {z} 19.65 {switchStyle} SwitchType.JumpCut
144@ = create_menu 'DUMMY' {topLeftX} 184.0 {topLeftY} 200.0 {width} 128.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Center
set_menu_column 144@ {column} 1 {title} 'DUMMY' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation 144@ {column} 0 {alignment} Align.Left
set_menu_column_orientation 144@ {column} 1 {alignment} Align.Center
set_menu_column_width 144@ {column} 0 {width} 192
set_menu_column_width 144@ {column} 1 {width} 64
270@ = 0
if and
  238@ > 0
  229@ > 0
goto_if_false @DESERT5_28509
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1

:DESERT5_28509
set_lvar_text_label 246@(270@,12s) = 'DES5_S3'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SC' {number} $overall_secs
270@ += 1
if or
  34@ == 2
  34@ == 5
  34@ == 6
  34@ == 8
  34@ == 9
  34@ == 12
goto_if_false @DESERT5_28656
set_lvar_text_label 246@(270@,12s) = 'DES5_S5'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SD' {number} $position_score
270@ += 1

:DESERT5_28656
if 
  34@ <> 12
goto_if_false @DESERT5_28721
set_lvar_text_label 246@(270@,12s) = 'DES5_S6'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SD' {number} 145@
270@ += 1

:DESERT5_28721
set_lvar_text_label 246@(270@,12s) = 'DES5_S7'
set_menu_item_with_number 144@ {column} 1 {row} 270@ {gxt} 'DES5_SD' {number} $overall_score
270@ += 1
if 
  238@ == 2
goto_if_false @DESERT5_29045
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
set_lvar_text_label 246@(270@,12s) = 'DES5_SF'
270@ += 1
if 
  $d5_pilot_licence_obtained <> 1
goto_if_false @DESERT5_29045
271@ = get_int_stat StatId.FlyingSkill
if 
  271@ >= 180
goto_if_false @DESERT5_29045
$d5_pilot_licence_obtained = 1
156@ = 0

:DESERT5_28895
if 
  24 >= 156@
goto_if_false @DESERT5_28963
if and
  156@ <> 8
  156@ <> 9
goto_if_false @DESERT5_28949
switch_car_generator $gen_car_flying(156@,28i) {amount} 101

:DESERT5_28949
156@ += 1
goto @DESERT5_28895

:DESERT5_28963
switch_car_generator $gen_car_flying[27] {amount} 101
156@ = 0

:DESERT5_28977
if 
  11 >= 156@
goto_if_false @DESERT5_29020
switch_car_generator $car_gen_locked_sf_planes(156@,12i) {amount} 0
156@ += 1
goto @DESERT5_28977

:DESERT5_29020
set_lvar_text_label 246@(270@,12s) = 'DES5_SG'
270@ += 1

:DESERT5_29045
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
if 
  238@ == 2
goto_if_false @DESERT5_29113
set_lvar_text_label 246@(270@,12s) = 'DES5_S8'
goto @DESERT5_29131

:DESERT5_29113
set_lvar_text_label 246@(270@,12s) = 'DES5_SE'

:DESERT5_29131
270@ += 1
set_lvar_text_label 246@(270@,12s) = 'DES5_S9'
270@ += 1

:DESERT5_29163
if 
  12 > 270@
goto_if_false @DESERT5_29213
set_lvar_text_label 246@(270@,12s) = 'DUMMY'
270@ += 1
goto @DESERT5_29163

:DESERT5_29213
set_menu_column 144@ {column} 0 {title} 'DUMMY' {row0} 246@s {row1} 248@s {row2} 250@s {row3} 252@s {row4} 254@s {row5} 256@s {row6} 258@s {row7} 260@s {row8} 262@s {row9} 264@s {row10} 266@s {row11} 268@s
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPilotAwardTrackStart
do_fade 500 {direction} Fade.In

:DESERT5_29292
if 
  get_fading_status 
goto_if_false @DESERT5_29323
wait 0
gosub @DESERT5_29325
goto @DESERT5_29292

:DESERT5_29323
return 

:DESERT5_29325
if or
  238@ == 1
  238@ == 2
goto_if_false @DESERT5_29714
gosub @DESERT5_24849
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 320.0 {offsetTop} 120.0 {key} 'DES5_SB'
if 
  229@ > 0
goto_if_false @DESERT5_29714
gosub @DESERT5_24849
152@, 153@, 154@, 155@ = get_hud_colour 6
set_text_colour 152@ {green} 153@ {blue} 154@ {alpha} 155@
display_text 320.0 {offsetTop} 85.0 {key} 'DES5_SA'
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 261.7 {offsetTop} 200.0 {width} -50.0 {height} 50.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 378.3 {offsetTop} 200.0 {width} 50.0 {height} 50.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
if 
  229@ == 2
goto_if_false @DESERT5_29606
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 91.7 {height} 79.2 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_29606
if 
  229@ == 3
goto_if_false @DESERT5_29660
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 91.7 {height} 79.2 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_29660
if 
  229@ == 4
goto_if_false @DESERT5_29714
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 91.7 {height} 79.2 {r} 160 {g} 160 {b} 160 {a} 255

:DESERT5_29714
return 

:DESERT5_29716
if or
  215@ == 0
  215@ == 1
goto_if_false @DESERT5_29786
if 
  is_int_lvar_greater_than_int_lvar 217@ > 216@
goto_if_false @DESERT5_29786
if 
  TIMERB > 200
goto_if_false @DESERT5_29786
gosub @DESERT5_29851

:DESERT5_29786
if 
  215@ == 2
goto_if_false @DESERT5_29849
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DESERT5_29849
215@ = 0
216@ += 1
218@ = 0
clear_prints 
TIMERB = 0

:DESERT5_29849
return 

:DESERT5_29851
if 
  215@ == 0
goto_if_false @DESERT5_29887
load_mission_audio MissionAudioSlot.Slot1 {audioId} 203@(216@,12i)
215@ = 1

:DESERT5_29887
if 
  215@ == 1
goto_if_false @DESERT5_29945
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DESERT5_29945
print_now 179@(216@,12s) {time} 10000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
215@ = 2

:DESERT5_29945
return 

:DESERT5_29947
clear_prints 
if or
  232@ == 1
  not is_player_playing $player1
goto_if_false @DESERT5_29988
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:DESERT5_29988
return 

:DESERT5_29990
if 
  $pilot_test_passed <> 1
goto_if_false @DESERT5_30015
$pilot_test_passed = 1

:DESERT5_30015
if 
  $pilot_test_passed == 1
goto_if_false @DESERT5_30137
register_mission_passed 'DESERT5'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
set_int_stat StatId.PassedDesert5 {value} 1
award_player_mission_respect 5
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $pilot_contact_blip
$pilot_contact_blip = add_short_range_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $pilot_blip_icon
remove_blip $desert2_contact_blip
$desert2_contact_blip = add_sprite_blip_for_contact_point $desert2X {y} $desert2Y {z} $desert2Z {sprite} $desert2_blip_icon
$flag_desert_mission_counter += 1

:DESERT5_30137
return 

:DESERT5_30139
mark_model_as_no_longer_needed 476
mark_model_as_no_longer_needed 425
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 400
mark_model_as_no_longer_needed 513
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed 330
mark_streamed_script_as_no_longer_needed 1
remove_texture_dictionary 
remove_blip 220@
delete_checkpoint 118@
156@ = 0

:DESERT5_30197
if 
  8 > 156@
goto_if_false @DESERT5_30238
delete_checkpoint 119@(156@,8i)
156@ += 1
goto @DESERT5_30197

:DESERT5_30238
delete_checkpoint 127@
delete_checkpoint 128@
delete_checkpoint 143@
156@ = 0

:DESERT5_30260
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_30302
remove_blip 221@(156@,3i)
156@ += 1
goto @DESERT5_30260

:DESERT5_30302
156@ = 0

:DESERT5_30309
if 
  is_int_lvar_greater_than_int_lvar 66@ > 156@
goto_if_false @DESERT5_30351
remove_blip 224@(156@,2i)
156@ += 1
goto @DESERT5_30309

:DESERT5_30351
clear_help 
clear_this_big_print 'DES5_SA'
clear_this_big_print 'DES5_SB'
clear_sequence_task 71@
clear_sequence_task 72@
set_always_draw_3d_markers False
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
use_text_commands False
delete_menu 144@
delete_object 135@
$para_pickup_flag = 1
if 
  not is_car_dead 35@
goto_if_false @DESERT5_30445
stop_playback_recorded_car 35@

:DESERT5_30445
delete_car 35@
156@ = 0

:DESERT5_30457
if 
  is_int_lvar_greater_than_int_lvar 63@ > 156@
goto_if_false @DESERT5_30499
delete_car 60@(156@,3i)
156@ += 1
goto @DESERT5_30457

:DESERT5_30499
remove_car_recording 590
remove_car_recording 591
remove_car_recording 592
remove_car_recording 593
remove_car_recording 594
remove_car_recording 595
remove_car_recording 596
remove_car_recording 597
remove_car_recording 598
clear_mission_audio MissionAudioSlot.Slot3
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPilotAwardTrackStop
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
release_weather 
display_radar True
show_update_stats True
set_area51_sam_site True
switch_police_helis True
set_max_wanted_level 239@
if 
  is_var_text_label_empty s$shop_name
goto_if_false @DESERT5_30618
restore_camera_jumpcut 

:DESERT5_30618
delete_char 70@
set_camera_behind_player 
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 84---------------
// Originally: Fender Ketchup

:CASINO1
script_name 'CASINO1'
gosub @CASINO1_484
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO1_38
gosub @CASINO1_19524

:CASINO1_38
gosub @CASINO1_19606
terminate_this_script 

:CASINO1_47
load_scene 326@ {y} 327@ {z} 328@
load_special_character 1 {modelName} 'SINDACO'
request_model 533
request_animation "CAR"
load_all_models_now 

:CASINO1_85
if or
  not has_model_loaded 533
  not has_special_character_loaded 1
  not has_animation_loaded "CAR"
goto_if_false @CASINO1_123
wait 0
goto @CASINO1_85

:CASINO1_123
return 

:CASINO1_125
326@ = 1903.8571
327@ = 974.1888
328@ = 9.8127
329@ = 177.4801
set_radio_channel RadioChannel.KRose
322@ = create_car 533 {x} 326@ {y} 327@ {z} 328@
set_car_heading 322@ {heading} 329@
set_can_burst_car_tyres 322@ {state} False
324@ = create_char PedType.Special {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
attach_char_to_car 324@ {vehicle} 322@ {xOffset} 0.0 {yOffset} 1.266 {zOffset} 0.391 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
set_char_health 324@ {health} 300
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
320@ = load_char_decision_maker DecisionMakerType.Empty
set_char_decision_maker 324@ {handleOrTemplate} 320@
clear_char_decision_maker_event_response 320@ {event} Event.PotentialGetRunOver
clear_char_decision_maker_event_response 320@ {event} Event.PotentialWalkIntoPed
clear_char_decision_maker_event_response 320@ {event} Event.PotentialWalkIntoVehicle
set_car_health 322@ {health} 1000
return 
323@ = add_blip_for_car 322@
50@ = add_blip_for_coord 79@ {y} 80@ {z} 81@

:CASINO1_372
mark_model_as_no_longer_needed 533
return 

:CASINO1_379
request_model 118

:CASINO1_383
if 
  not has_model_loaded 118
goto_if_false @CASINO1_409
wait 0
goto @CASINO1_383

:CASINO1_409
337@ = 1911.024
338@ = 956.8084
339@ = 9.8203
340@ = 95.5462
334@ = create_char PedType.CivMale {modelId} 118 {x} 337@ {y} 338@ {z} 339@
set_char_heading 334@ {heading} 340@
return 

:CASINO1_477
delete_char 334@
return 

:CASINO1_484
register_mission_given 
$onmission = 1
wait 0
34@ = -1
35@ = 0
36@ = 0
98@ = 0
$ca1_random_dialogue = 0
47@ = 0
48@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
44@ = 0
45@ = 0
95@ = 0
38@ = 0
49@ = 0
$ca1_spooked = 0
58@ = 0
59@ = 0
57@ = 0
335@ = 1
70@ = 0.1
79@ = 1904.75
80@ = 960.74
81@ = 9.36
308@ = 1427.4
312@ = 2666.3999
316@ = 13.01
303@ = 1
304@ = 2
305@ = 0
306@ = 1
307@ = 0
set_lvar_text_label 104@s = 'CAS1_AA'
set_lvar_text_label 106@s = 'CAS1_AB'
set_lvar_text_label 108@s = 'CAS1_AC'
set_lvar_text_label 110@s = 'CAS1_AD'
set_lvar_text_label 112@s = 'CAS1_AE'
set_lvar_text_label 114@s = 'CAS1_BA'
set_lvar_text_label 116@s = 'CAS1_BB'
set_lvar_text_label 118@s = 'CAS1_BC'
set_lvar_text_label 120@s = 'CAS1_BD'
set_lvar_text_label 122@s = 'CAS1_BE'
set_lvar_text_label 124@s = 'CAS1_CA'
set_lvar_text_label 126@s = 'CAS1_CB'
set_lvar_text_label 128@s = 'CAS1_CC'
set_lvar_text_label 130@s = 'CAS1_CD'
set_lvar_text_label 132@s = 'CAS1_CE'
set_lvar_text_label 134@s = 'CAS1_DA'
set_lvar_text_label 136@s = 'CAS1_DB'
set_lvar_text_label 138@s = 'CAS1_DC'
set_lvar_text_label 140@s = 'CAS1_DD'
set_lvar_text_label 142@s = 'CAS1_DE'
set_lvar_text_label 144@s = 'CAS1_EA'
set_lvar_text_label 146@s = 'CAS1_EB'
set_lvar_text_label 148@s = 'CAS1_EC'
set_lvar_text_label 150@s = 'CAS1_ED'
set_lvar_text_label 152@s = 'CAS1_EE'
set_lvar_text_label 154@s = 'CAS1_EF'
set_lvar_text_label 156@s = 'CAS1_EG'
set_lvar_text_label 158@s = 'CAS1_EH'
set_lvar_text_label 160@s = 'CAS1_EI'
set_lvar_text_label 162@s = 'CAS1_EJ'
set_lvar_text_label 164@s = 'CAS1_EK'
set_lvar_text_label 166@s = 'CAS1_EL'
set_lvar_text_label 168@s = 'CAS1_EM'
set_lvar_text_label 170@s = 'CAS1_EN'
set_lvar_text_label 172@s = 'CAS1_EO'
set_lvar_text_label 174@s = 'CAS1_EP'
set_lvar_text_label 176@s = 'CAS1_EQ'
set_lvar_text_label 180@s = 'CAS1_ES'
set_lvar_text_label 182@s = 'CAS1_ET'
set_lvar_text_label 184@s = 'CAS1_EU'
set_lvar_text_label 186@s = 'CAS1_EV'
set_lvar_text_label 190@s = 'CAS1_EX'
set_lvar_text_label 192@s = 'CAS1_EY'
set_lvar_text_label 194@s = 'CAS1_EZ'
set_lvar_text_label 196@s = 'CAS1_FA'
set_lvar_text_label 198@s = 'CAS1_FB'
set_lvar_text_label 200@s = 'CAS1_GA'
set_lvar_text_label 202@s = 'CAS1_GB'
set_lvar_text_label 204@s = 'CAS1_GC'
set_lvar_text_label 206@s = 'CAS1_GD'
set_lvar_text_label 208@s = 'CAS1_GE'
set_lvar_text_label 210@s = 'CAS1_HA'
set_lvar_text_label 212@s = 'CAS1_HB'
set_lvar_text_label 214@s = 'CAS1_HC'
set_lvar_text_label 216@s = 'CAS1_HD'
set_lvar_text_label 218@s = 'CAS1_HE'
set_lvar_text_label 220@s = 'CAS1_JA'
set_lvar_text_label 222@s = 'CAS1_JB'
set_lvar_text_label 224@s = 'CAS1B00'
set_lvar_text_label 226@s = 'CAS1B02'
set_lvar_text_label 228@s = 'CAS1B03'
set_lvar_text_label 230@s = 'CAS1B04'
set_lvar_text_label 232@s = 'CAS1B05'
set_lvar_text_label 234@s = 'CAS1B06'
set_lvar_int_to_constant 237@ = 7007
set_lvar_int_to_constant 238@ = 7008
set_lvar_int_to_constant 239@ = 7009
set_lvar_int_to_constant 240@ = 7010
set_lvar_int_to_constant 241@ = 7011
set_lvar_int_to_constant 242@ = 7012
set_lvar_int_to_constant 243@ = 7013
set_lvar_int_to_constant 244@ = 7014
set_lvar_int_to_constant 245@ = 7015
set_lvar_int_to_constant 246@ = 7016
set_lvar_int_to_constant 247@ = 7017
set_lvar_int_to_constant 248@ = 7018
set_lvar_int_to_constant 249@ = 7019
set_lvar_int_to_constant 250@ = 7020
set_lvar_int_to_constant 251@ = 7021
set_lvar_int_to_constant 252@ = 7022
set_lvar_int_to_constant 253@ = 7023
set_lvar_int_to_constant 254@ = 7024
set_lvar_int_to_constant 255@ = 7025
set_lvar_int_to_constant 256@ = 7026
set_lvar_int_to_constant 257@ = 7027
set_lvar_int_to_constant 258@ = 7028
set_lvar_int_to_constant 259@ = 7029
set_lvar_int_to_constant 260@ = 7030
set_lvar_int_to_constant 261@ = 7031
set_lvar_int_to_constant 262@ = 7032
set_lvar_int_to_constant 263@ = 7033
set_lvar_int_to_constant 264@ = 7034
set_lvar_int_to_constant 265@ = 7035
set_lvar_int_to_constant 266@ = 7036
set_lvar_int_to_constant 267@ = 7037
set_lvar_int_to_constant 268@ = 7038
set_lvar_int_to_constant 269@ = 7039
set_lvar_int_to_constant 270@ = 7040
set_lvar_int_to_constant 271@ = 7041
set_lvar_int_to_constant 272@ = 7042
set_lvar_int_to_constant 273@ = 7043
set_lvar_int_to_constant 275@ = 7044
set_lvar_int_to_constant 276@ = 7045
set_lvar_int_to_constant 277@ = 7046
set_lvar_int_to_constant 278@ = 7047
set_lvar_int_to_constant 280@ = 7049
set_lvar_int_to_constant 281@ = 7050
set_lvar_int_to_constant 282@ = 7051
set_lvar_int_to_constant 283@ = 7052
set_lvar_int_to_constant 284@ = 7053
set_lvar_int_to_constant 285@ = 7055
set_lvar_int_to_constant 286@ = 7056
set_lvar_int_to_constant 287@ = 7057
set_lvar_int_to_constant 288@ = 7058
set_lvar_int_to_constant 289@ = 7059
set_lvar_int_to_constant 290@ = 7060
set_lvar_int_to_constant 291@ = 7061
set_lvar_int_to_constant 292@ = 7062
set_lvar_int_to_constant 293@ = 7063
set_lvar_int_to_constant 294@ = 7064
set_lvar_int_to_constant 295@ = 7065
set_lvar_int_to_constant 296@ = 7066
set_lvar_int_to_constant 297@ = 7000
set_lvar_int_to_constant 298@ = 7002
set_lvar_int_to_constant 299@ = 7003
set_lvar_int_to_constant 300@ = 7004
set_lvar_int_to_constant 301@ = 7005
set_lvar_int_to_constant 302@ = 7006
load_mission_text 'CASINO1'
set_player_group_recruitment $player1 {state} False
do_fade 500 {direction} Fade.Out

:CASINO1_2189
if 
  get_fading_status 
goto_if_false @CASINO1_2213
wait 0
goto @CASINO1_2189

:CASINO1_2213
set_area_visible 11
load_cutscene 'CAS_1A'

:CASINO1_2228
if 
  not has_cutscene_loaded 
goto_if_false @CASINO1_2252
wait 0
goto @CASINO1_2228

:CASINO1_2252
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO1_2261
if 
  not has_cutscene_finished 
goto_if_false @CASINO1_2285
wait 0
goto @CASINO1_2261

:CASINO1_2285
do_fade 0 {direction} Fade.Out

:CASINO1_2291
if 
  get_fading_status 
goto_if_false @CASINO1_2315
wait 0
goto @CASINO1_2291

:CASINO1_2315
clear_cutscene 
set_player_control $player1 {state} False
alter_wanted_level $player1 {wantedLevel} 0
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_first_person_in_car_camera_mode False
set_fixed_camera_position 1908.156 {y} 977.3071 {z} 10.2294 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1907.488 {y} 976.5921 {z} 10.4377 {switchStyle} SwitchType.JumpCut
clear_area 1903.27 {y} 955.95 {z} 9.8203 {radius} 30.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1909.826 {y} 977.4828 {z} 9.8127
set_char_heading $scplayer {heading} 136.9741
request_model #TRDCSGRGDOOR_LVS
load_all_models_now 

:CASINO1_2470
if 
  not has_model_loaded #TRDCSGRGDOOR_LVS
goto_if_false @CASINO1_2496
wait 0
goto @CASINO1_2470

:CASINO1_2496
gosub @CASINO1_47
gosub @CASINO1_125
load_scene_in_direction 1908.156 {y} 977.3071 {z} 10.2294 {heading} 136.9741
switch_widescreen True
wait 150
do_fade 1500 {direction} Fade.In

:CASINO1_2548
if 
  get_fading_status 
goto_if_false @CASINO1_2572
wait 0
goto @CASINO1_2548

:CASINO1_2572
if 
  not is_char_dead 324@
goto_if_false @CASINO1_2601
task_look_at_char $scplayer {target} 324@ {time} 100000

:CASINO1_2601
wait 0
if 
  305@ <> 0
goto_if_false @CASINO1_3234
if 
  307@ == 0
goto_if_false @CASINO1_2669
if 
  has_mission_audio_loaded 304@
goto_if_false @CASINO1_2662
clear_mission_audio 304@

:CASINO1_2662
307@ = 1

:CASINO1_2669
if 
  307@ == 1
goto_if_false @CASINO1_2706
load_mission_audio 303@ {audioId} 236@(305@,67i)
307@ = 2

:CASINO1_2706
if 
  307@ == 2
goto_if_false @CASINO1_2864
if 
  has_mission_audio_loaded 303@
goto_if_false @CASINO1_2864
if or
  305@ == 61
  305@ == 63
goto_if_false @CASINO1_2789
if 
  not is_char_dead 324@
goto_if_false @CASINO1_2789
start_char_facial_talk 324@ {duration} 10000

:CASINO1_2789
if or
  305@ == 62
  305@ == 64
goto_if_false @CASINO1_2838
if 
  not is_char_dead $scplayer
goto_if_false @CASINO1_2838
start_char_facial_talk $scplayer {duration} 10000

:CASINO1_2838
play_mission_audio 303@
print_now 102@(305@,67s) {time} 10000 {flag} 1
307@ = 3

:CASINO1_2864
if 
  307@ == 3
goto_if_false @CASINO1_3234
if 
  has_mission_audio_finished 303@
goto_if_false @CASINO1_3173
clear_this_print 102@(305@,67s)
if or
  305@ == 61
  305@ == 63
goto_if_false @CASINO1_2953
if 
  not is_char_dead 324@
goto_if_false @CASINO1_2953
stop_char_facial_talk 324@

:CASINO1_2953
if or
  305@ == 62
  305@ == 64
goto_if_false @CASINO1_2999
if 
  not is_char_dead $scplayer
goto_if_false @CASINO1_2999
stop_char_facial_talk $scplayer

:CASINO1_2999
if 
  303@ == 1
goto_if_false @CASINO1_3038
303@ = 2
304@ = 1
goto @CASINO1_3052

:CASINO1_3038
303@ = 1
304@ = 2

:CASINO1_3052
305@ = 0
307@ = 0
if 
  35@ == 0
goto_if_false @CASINO1_3091
35@ = 1

:CASINO1_3091
if 
  35@ == 4
goto_if_false @CASINO1_3116
35@ = 5

:CASINO1_3116
if 
  35@ == 3
goto_if_false @CASINO1_3141
35@ = 4

:CASINO1_3141
if 
  35@ == 7
goto_if_false @CASINO1_3166
35@ = 8

:CASINO1_3166
goto @CASINO1_3234

:CASINO1_3173
if 
  not has_mission_audio_loaded 304@
goto_if_false @CASINO1_3234
if 
  66 > 305@
goto_if_false @CASINO1_3234
set_lvar_int_to_lvar_int 306@ = 305@
306@ += 1
load_mission_audio 304@ {audioId} 236@(306@,67i)

:CASINO1_3234
if 
  not is_char_dead 324@
goto_if_false @CASINO1_3359
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_LOW"
goto_if_false @CASINO1_3359
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_LOW"
if 
  96@ == 1.0
goto_if_false @CASINO1_3359
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_3359
if 
  35@ > 0
goto_if_false @CASINO1_3401
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_3401
35@ = 10

:CASINO1_3401
if 
  35@ == 0
goto_if_false @CASINO1_3451
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3451
305@ = 61

:CASINO1_3451
if 
  35@ == 1
goto_if_false @CASINO1_3500
task_go_straight_to_coord $scplayer {x} 1905.45 {y} 973.9371 {z} 9.8127 {speed} MoveState.Walk {time} -2
35@ = 2

:CASINO1_3500
if 
  35@ == 2
goto_if_false @CASINO1_3629
97@ = get_script_task_status $scplayer {taskId} 1491
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_3629
if 
  not is_char_dead 324@
goto_if_false @CASINO1_3629
task_turn_char_to_face_char $scplayer {target} 324@
set_fixed_camera_position 1903.005 {y} 974.7813 {z} 11.1887 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1903.7321 {y} 974.0975 {z} 11.2553 {switchStyle} SwitchType.JumpCut
35@ = 3

:CASINO1_3629
if 
  35@ == 3
goto_if_false @CASINO1_3679
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3679
305@ = 62

:CASINO1_3679
if or
  35@ == 4
  35@ == 5
goto_if_false @CASINO1_3741
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False

:CASINO1_3741
if 
  35@ == 9
goto_if_false @CASINO1_3796
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.05 {collisionCheck} False

:CASINO1_3796
if 
  35@ == 4
goto_if_false @CASINO1_3846
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_3846
305@ = 63

:CASINO1_3846
if 
  35@ == 5
goto_if_false @CASINO1_3897
if 
  not is_car_dead 322@
goto_if_false @CASINO1_3897
task_enter_car_as_driver $scplayer {vehicle} 322@ {time} -2
35@ = 6

:CASINO1_3897
if 
  35@ == 6
goto_if_false @CASINO1_4039
97@ = get_script_task_status $scplayer {taskId} 1483
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_4039
set_fixed_camera_position 1906.528 {y} 970.1409 {z} 10.433 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1905.823 {y} 970.8365 {z} 10.5694 {switchStyle} SwitchType.JumpCut
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False
35@ = 7

:CASINO1_4039
if 
  35@ == 7
goto_if_false @CASINO1_4089
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_4089
305@ = 64

:CASINO1_4089
if 
  35@ == 8
goto_if_false @CASINO1_4164
if 
  not is_car_dead 322@
goto_if_false @CASINO1_4164
task_car_drive_to_coord $scplayer {vehicle} 322@ {x} 1903.27 {y} 955.95 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
35@ = 9

:CASINO1_4164
if 
  35@ == 9
goto_if_false @CASINO1_4218
97@ = get_script_task_status $scplayer {taskId} 1489
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_4218
35@ = 10

:CASINO1_4218
if 
  35@ <> 10
goto_if_false @CASINO1_4243
goto @CASINO1_2601

:CASINO1_4243
if 
  not is_car_dead 322@
goto_if_false @CASINO1_4356
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.82 {z} 11.438
set_car_coordinates 322@ {x} 1903.27 {y} 955.95 {z} 9.8203
set_car_heading 322@ {heading} 180.7793
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_4348
warp_char_from_car_to_coord $scplayer {x} 1903.27 {y} 955.95 {z} 9.8203

:CASINO1_4348
warp_char_into_car $scplayer {vehicle} 322@

:CASINO1_4356
mark_model_as_no_longer_needed #TRDCSGRGDOOR_LVS
set_camera_behind_player 
restore_camera_jumpcut 
clear_look_at $scplayer
switch_widescreen False
set_player_control $player1 {state} True
35@ = 0

:CASINO1_4387
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO1_4413
goto @CASINO1_19542

:CASINO1_4413
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @CASINO1_4435
$ca1_spooked = 100

:CASINO1_4435
if 
  305@ <> 0
goto_if_false @CASINO1_4774
if 
  307@ == 0
goto_if_false @CASINO1_4499
if 
  has_mission_audio_loaded 304@
goto_if_false @CASINO1_4492
clear_mission_audio 304@

:CASINO1_4492
307@ = 1

:CASINO1_4499
if 
  307@ == 1
goto_if_false @CASINO1_4536
load_mission_audio 303@ {audioId} 236@(305@,67i)
307@ = 2

:CASINO1_4536
if 
  307@ == 2
goto_if_false @CASINO1_4596
if 
  has_mission_audio_loaded 303@
goto_if_false @CASINO1_4596
play_mission_audio 303@
print_now 102@(305@,67s) {time} 10000 {flag} 1
307@ = 3

:CASINO1_4596
if 
  307@ == 3
goto_if_false @CASINO1_4774
if 
  has_mission_audio_finished 303@
goto_if_false @CASINO1_4713
clear_this_print 102@(305@,67s)
if 
  303@ == 1
goto_if_false @CASINO1_4678
303@ = 2
304@ = 1
goto @CASINO1_4692

:CASINO1_4678
303@ = 1
304@ = 2

:CASINO1_4692
305@ = 0
307@ = 0
goto @CASINO1_4774

:CASINO1_4713
if 
  not has_mission_audio_loaded 304@
goto_if_false @CASINO1_4774
if 
  66 > 305@
goto_if_false @CASINO1_4774
set_lvar_int_to_lvar_int 306@ = 305@
306@ += 1
load_mission_audio 304@ {audioId} 236@(306@,67i)

:CASINO1_4774
if or
  is_char_in_zone $scplayer {zone} 'PINT'
  is_char_in_zone $scplayer {zone} 'BINT'
  is_char_in_zone $scplayer {zone} 'JTN'
  is_char_in_zone $scplayer {zone} 'JTS'
  is_char_in_zone $scplayer {zone} 'JTW'
  is_char_in_zone $scplayer {zone} 'JTE'
goto_if_false @CASINO1_4967
if and
  98@ == 0
  38@ == 0
goto_if_false @CASINO1_4924
print 'CAS1_10' {time} 5000 {flag} 1
alter_wanted_level_no_drop $player1 {wantedLevel} 3
38@ = 1

:CASINO1_4924
if 
  38@ == 1
goto_if_false @CASINO1_4967
if 
  not is_wanted_level_greater $player1 {wantedLevel} 2
goto_if_false @CASINO1_4967
38@ = 0

:CASINO1_4967
if 
  34@ == -1
goto_if_false @CASINO1_5335
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.05 {collisionCheck} False
if 
  $flag_cas1_passed_1stime == 0
goto_if_false @CASINO1_5308
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_5301
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5301
if 
  $ca1_random_dialogue == 0
goto_if_false @CASINO1_5187
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5142
305@ = 65
$ca1_random_dialogue += 1
101@ = get_game_timer 

:CASINO1_5142
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_5187
101@ = get_game_timer 

:CASINO1_5187
if 
  $ca1_random_dialogue == 1
goto_if_false @CASINO1_5301
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5256
305@ = 66
$ca1_random_dialogue += 1
34@ = 0
101@ = get_game_timer 

:CASINO1_5256
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_5301
101@ = get_game_timer 

:CASINO1_5301
goto @CASINO1_5335

:CASINO1_5308
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.82 {z} 11.438
34@ = 0

:CASINO1_5335
if 
  34@ == 0
goto_if_false @CASINO1_5473
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_5473
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5473
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_5473
clear_prints 
print 'CAS1_11' {time} 5000 {flag} 1
print 'CAS1_12' {time} 5000 {flag} 1
98@ = 2
34@ = 2
36@ = 1

:CASINO1_5473
if 
  5 > 34@
goto_if_false @CASINO1_5794
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_5794
if 
  36@ == 0
goto_if_false @CASINO1_5655
if 
  is_char_sitting_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5655
clear_prints 
set_first_person_in_car_camera_mode False
101@ = get_game_timer 
remove_blip 323@
remove_blip 50@
if and
  34@ > 0
  4 > 34@
goto_if_false @CASINO1_5616
clear_onscreen_counter $ca1_spooked
display_onscreen_counter_with_string $ca1_spooked {display} CounterDisplay.Bar {text} 'CAS1_05'

:CASINO1_5616
if 
  34@ == 4
goto_if_false @CASINO1_5648
50@ = add_blip_for_coord 79@ {y} 80@ {z} 81@

:CASINO1_5648
36@ = 1

:CASINO1_5655
if 
  36@ == 1
goto_if_false @CASINO1_5794
if 
  not is_char_sitting_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_5794
clear_prints 
set_first_person_in_car_camera_mode True
remove_blip 323@
323@ = add_blip_for_car 322@
set_blip_as_friendly 323@ {state} True
if and
  34@ > 0
  4 > 34@
goto_if_false @CASINO1_5748
clear_onscreen_counter $ca1_spooked

:CASINO1_5748
if 
  34@ == 4
goto_if_false @CASINO1_5771
remove_blip 50@

:CASINO1_5771
print_now 'CAS1_01' {time} 7500 {flag} 2
36@ = 0

:CASINO1_5794
if 
  34@ == 2
goto_if_false @CASINO1_6007
if and
  not is_char_dead $scplayer
  not is_char_dead 324@
goto_if_false @CASINO1_6007
display_onscreen_counter_with_string $ca1_spooked {display} CounterDisplay.Bar {text} 'CAS1_05'
37@ = generate_random_int_in_range 0 {max} 4
if 
  37@ == 0
goto_if_false @CASINO1_5894
print_help 'CAS1_06'
34@ = 3

:CASINO1_5894
if 
  37@ == 1
goto_if_false @CASINO1_5930
print_help 'CAS1_07'
34@ = 3

:CASINO1_5930
if 
  37@ == 2
goto_if_false @CASINO1_5966
print_help 'CAS1_08'
34@ = 3

:CASINO1_5966
if 
  37@ == 3
goto_if_false @CASINO1_6002
print_help 'CAS1_09'
34@ = 3

:CASINO1_6002
74@ = get_game_timer 

:CASINO1_6007
if 
  34@ == 3
goto_if_false @CASINO1_15346
if and
  not is_car_dead 322@
  not is_char_dead $scplayer
  not is_char_dead 324@
goto_if_false @CASINO1_15346
if 
  335@ == 0
goto_if_false @CASINO1_6163
if 
  not is_char_dead 334@
goto_if_false @CASINO1_6163
if 
  not locate_char_any_means_3d $scplayer {x} 1910.75 {y} 960.74 {z} 10.86 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @CASINO1_6163
if 
  not is_char_on_screen 334@
goto_if_false @CASINO1_6163
gosub @CASINO1_477
335@ = 1

:CASINO1_6163
if 
  is_car_door_damaged 322@ {door} CarDoor.Hood
goto_if_false @CASINO1_6214
task_die 324@
detach_char_from_car 324@
print_now 'CAS1_04' {time} 5000 {flag} 1
goto @CASINO1_19524

:CASINO1_6214
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_15346
if 
  8 > 49@
goto_if_false @CASINO1_6443
73@ = get_game_timer 
set_lvar_int_to_lvar_int 72@ = 73@
sub_int_lvar_from_int_lvar 72@ -= 74@
if 
  72@ > 30000
goto_if_false @CASINO1_6443
37@ = generate_random_int_in_range 0 {max} 4
if 
  37@ == 0
goto_if_false @CASINO1_6334
print_help 'CAS1_06'
74@ = get_game_timer 

:CASINO1_6334
if 
  37@ == 1
goto_if_false @CASINO1_6368
print_help 'CAS1_07'
74@ = get_game_timer 

:CASINO1_6368
if 
  37@ == 2
goto_if_false @CASINO1_6402
print_help 'CAS1_08'
74@ = get_game_timer 

:CASINO1_6402
if 
  37@ == 3
goto_if_false @CASINO1_6436
print_help 'CAS1_09'
74@ = get_game_timer 

:CASINO1_6436
49@ += 1

:CASINO1_6443
if 
  $ca1_spooked > 100
goto_if_false @CASINO1_6506
$ca1_spooked = 100
$ca1_random_dialogue = 0
clear_onscreen_counter $ca1_spooked
50@ = add_blip_for_coord 79@ {y} 80@ {z} 81@
62@ = get_game_timer 
34@ = 4

:CASINO1_6506
if and
  39@ == 0
  41@ == 0
  40@ == 0
goto_if_false @CASINO1_6601
if 
  71@ > 15.0
goto_if_false @CASINO1_6601
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_6601
331@ = get_car_heading 322@
333@ = 0.0
39@ = 1

:CASINO1_6601
if 
  39@ == 1
goto_if_false @CASINO1_6835
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_6676
332@ = get_car_heading 322@
set_lvar_float_to_lvar_float 330@ = 332@
sub_float_lvar_from_float_lvar 330@ -= 331@
add_float_lvar_to_float_lvar 333@ += 330@
331@ = get_car_heading 322@

:CASINO1_6676
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_6835
if 
  0.0 > 333@
goto_if_false @CASINO1_6724
333@ += 360.0

:CASINO1_6724
if 
  333@ > 0.0
goto_if_false @CASINO1_6828
if and
  333@ > 14.0
  210.0 > 333@
goto_if_false @CASINO1_6790
$ca1_spooked += 7
goto @CASINO1_6828

:CASINO1_6790
if and
  333@ > 90.0
  270.0 > 333@
goto_if_false @CASINO1_6828
$ca1_spooked += 3

:CASINO1_6828
39@ = 0

:CASINO1_6835
if and
  40@ == 0
  39@ == 0
  41@ == 0
goto_if_false @CASINO1_6895
if 
  is_car_in_air_proper 322@
goto_if_false @CASINO1_6895
53@ = get_game_timer 
40@ = 1

:CASINO1_6895
if 
  40@ == 1
goto_if_false @CASINO1_6973
if 
  not is_car_in_air_proper 322@
goto_if_false @CASINO1_6973
52@ = get_game_timer 
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
51@ /= 250
add_int_lvar_to_int_var $ca1_spooked += 51@
40@ = 0

:CASINO1_6973
if and
  41@ == 0
  39@ == 0
  40@ == 0
  20 > 59@
goto_if_false @CASINO1_7123
if 
  1.0 > 71@
goto_if_false @CASINO1_7123
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @CASINO1_7123
52@ = get_game_timer 
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
if 
  51@ > 3000
goto_if_false @CASINO1_7123
69@ = 0.0
70@ = 0.15
41@ = 1

:CASINO1_7123
if 
  41@ == 1
goto_if_false @CASINO1_7333
91@, 92@, 93@, 94@ = get_position_of_analogue_sticks PadId.Pad1
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @CASINO1_7181
41@ = 0

:CASINO1_7181
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_7205
41@ = 0

:CASINO1_7205
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @CASINO1_7333
if 
  not is_int_lvar_equal_to_int_lvar 91@ == 95@
goto_if_false @CASINO1_7333
if and
  69@ >= 0.0
  70@ >= 0.0
goto_if_false @CASINO1_7333
53@ = get_game_timer 
add_float_lvar_to_float_lvar 69@ += 70@
70@ -= 0.025
cset_lvar_int_to_lvar_float 54@ =# 69@
add_int_lvar_to_int_var $ca1_spooked += 54@
add_int_lvar_to_int_lvar 59@ += 54@
set_lvar_int_to_lvar_int 95@ = 91@

:CASINO1_7333
71@ = get_car_speed 322@
if 
  42@ == 0
goto_if_false @CASINO1_7410
if 
  71@ > 30.0
goto_if_false @CASINO1_7410
if 
  40 > 58@
goto_if_false @CASINO1_7410
65@ = get_game_timer 
42@ = 1

:CASINO1_7410
if 
  42@ == 1
goto_if_false @CASINO1_7515
64@ = get_game_timer 
set_lvar_int_to_lvar_int 63@ = 64@
sub_int_lvar_from_int_lvar 63@ -= 65@
if 
  63@ > 600
goto_if_false @CASINO1_7487
65@ = get_game_timer 
58@ += 1
$ca1_spooked += 1

:CASINO1_7487
if 
  30.0 > 71@
goto_if_false @CASINO1_7515
42@ = 0

:CASINO1_7515
if 
  43@ == 0
goto_if_false @CASINO1_7581
if 
  $stunt_flags_hj > 0
goto_if_false @CASINO1_7581
set_lvar_int_to_var_int 55@ = $cash_reward
55@ /= 5
add_int_lvar_to_int_var $ca1_spooked += 55@
43@ = 1

:CASINO1_7581
if 
  43@ == 1
goto_if_false @CASINO1_7624
if 
  $stunt_flags_hj == 0
goto_if_false @CASINO1_7624
43@ = 0

:CASINO1_7624
if and
  44@ == 0
  46@ == 0
goto_if_false @CASINO1_8338
if 
  71@ > 15.0
goto_if_false @CASINO1_8324
91@, 92@, 93@, 94@ = get_position_of_analogue_sticks PadId.Pad1
if 
  91@ <> 0
goto_if_false @CASINO1_8303
56@ += 1
if 
  56@ > 20
goto_if_false @CASINO1_8296
if or
  91@ > 96
  -96 > 91@
goto_if_false @CASINO1_8296
if 
  45@ == 0
goto_if_false @CASINO1_8296
if 
  20 > 57@
goto_if_false @CASINO1_7804
$ca1_spooked += 1
57@ += 1

:CASINO1_7804
if 
  91@ > 0
goto_if_false @CASINO1_8050
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_7965
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_7958
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNR" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 1
56@ = 0
45@ = 1

:CASINO1_7958
goto @CASINO1_8050

:CASINO1_7965
if 
  not is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_8050
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNR" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
56@ = 0
45@ = 1

:CASINO1_8050
if 
  0 > 91@
goto_if_false @CASINO1_8296
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_8211
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_8204
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNL" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 1
56@ = 0
45@ = 1

:CASINO1_8204
goto @CASINO1_8296

:CASINO1_8211
if 
  not is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_8296
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_TURNL" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
56@ = 0
45@ = 1

:CASINO1_8296
goto @CASINO1_8317

:CASINO1_8303
45@ = 0
56@ = 0

:CASINO1_8317
goto @CASINO1_8338

:CASINO1_8324
45@ = 0
56@ = 0

:CASINO1_8338
if 
  46@ == 0
goto_if_false @CASINO1_8424
if 
  71@ > 15.0
goto_if_false @CASINO1_8424
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_8424
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_8424
46@ = 1

:CASINO1_8424
if 
  46@ == 1
goto_if_false @CASINO1_8558
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO1_8558
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CASINO1_8558
78@ += 1
if 
  78@ > 12
goto_if_false @CASINO1_8558
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_BUMP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
77@ = get_game_timer 
46@ = 2

:CASINO1_8558
if 
  46@ == 2
goto_if_false @CASINO1_8710
76@ = get_game_timer 
set_lvar_int_to_lvar_int 75@ = 76@
sub_int_lvar_from_int_lvar 75@ -= 77@
if 
  75@ > 1000
goto_if_false @CASINO1_8710
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_8710
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_8710
$ca1_spooked += 1
78@ = 0
46@ = 0

:CASINO1_8710
if 
  71@ > 30.0
goto_if_false @CASINO1_9065
88@, 89@, 90@ = get_offset_from_car_in_world_coords 322@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 82@ = 88@
82@ -= 0.1
set_lvar_float_to_lvar_float 83@ = 89@
83@ -= 0.1
set_lvar_float_to_lvar_float 84@ = 90@
84@ -= 0.1
set_lvar_float_to_lvar_float 85@ = 88@
85@ += 0.1
set_lvar_float_to_lvar_float 86@ = 89@
86@ += 0.1
set_lvar_float_to_lvar_float 87@ = 90@
87@ += 0.1
if 
  48@ == 0
goto_if_false @CASINO1_8939
if 
  is_area_occupied 82@ {leftBottomY} 83@ {leftBottomZ} 84@ {rightTopX} 85@ {rightTopY} 86@ {rightTopZ} 87@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @CASINO1_8939
68@ = get_game_timer 
48@ = 1

:CASINO1_8939
if 
  48@ == 1
goto_if_false @CASINO1_9065
67@ = get_game_timer 
set_lvar_int_to_lvar_int 66@ = 67@
sub_int_lvar_from_int_lvar 66@ -= 68@
if 
  66@ > 50
goto_if_false @CASINO1_9065
if 
  is_area_occupied 82@ {leftBottomY} 83@ {leftBottomZ} 84@ {rightTopX} 85@ {rightTopY} 86@ {rightTopZ} 87@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @CASINO1_9058
$ca1_spooked += 1
48@ = 0
goto @CASINO1_9065

:CASINO1_9058
48@ = 0

:CASINO1_9065
if or
  40@ == 1
  39@ == 1
  41@ == 1
  45@ == 1
goto_if_false @CASINO1_9241
if 
  98@ == 0
goto_if_false @CASINO1_9241
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_9241
$ca1_random_dialogue = generate_random_int_in_range 0 {max} 6
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_9241
if 
  6 > $ca1_random_dialogue
goto_if_false @CASINO1_9234
$ca1_random_dialogue += 1
goto @CASINO1_9241

:CASINO1_9234
$ca1_random_dialogue -= 1

:CASINO1_9241
if 
  98@ == 1
goto_if_false @CASINO1_13989
if 
  $ca1_random_dialogue == 0
goto_if_false @CASINO1_9369
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9309
305@ = 27

:CASINO1_9309
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9369
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_9369
if 
  $ca1_random_dialogue == 1
goto_if_false @CASINO1_9479
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9419
305@ = 28

:CASINO1_9419
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9479
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_9479
if 
  $ca1_random_dialogue == 2
goto_if_false @CASINO1_9589
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9529
305@ = 29

:CASINO1_9529
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9589
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_9589
if 
  $ca1_random_dialogue == 3
goto_if_false @CASINO1_9699
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9639
305@ = 30

:CASINO1_9639
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9699
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_9699
if 
  $ca1_random_dialogue == 4
goto_if_false @CASINO1_9809
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9749
305@ = 31

:CASINO1_9749
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9809
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_9809
if 
  $ca1_random_dialogue == 5
goto_if_false @CASINO1_9919
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9859
305@ = 32

:CASINO1_9859
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_9919
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_9919
if 
  $ca1_random_dialogue == 6
goto_if_false @CASINO1_10029
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_9969
305@ = 33

:CASINO1_9969
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10029
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10029
if 
  $ca1_random_dialogue == 7
goto_if_false @CASINO1_10139
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10079
305@ = 21

:CASINO1_10079
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10139
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10139
if 
  $ca1_random_dialogue == 8
goto_if_false @CASINO1_10249
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10189
305@ = 22

:CASINO1_10189
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10249
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10249
if 
  $ca1_random_dialogue == 9
goto_if_false @CASINO1_10359
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10299
305@ = 23

:CASINO1_10299
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10359
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10359
if 
  $ca1_random_dialogue == 10
goto_if_false @CASINO1_10469
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10409
305@ = 45

:CASINO1_10409
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10469
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10469
if 
  $ca1_random_dialogue == 11
goto_if_false @CASINO1_10579
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10519
305@ = 46

:CASINO1_10519
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10579
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10579
if 
  $ca1_random_dialogue == 12
goto_if_false @CASINO1_10689
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10629
305@ = 47

:CASINO1_10629
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10689
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10689
if 
  $ca1_random_dialogue == 13
goto_if_false @CASINO1_10799
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10739
305@ = 48

:CASINO1_10739
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10799
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10799
if 
  $ca1_random_dialogue == 14
goto_if_false @CASINO1_10909
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10849
305@ = 24

:CASINO1_10849
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_10909
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_10909
if 
  $ca1_random_dialogue == 15
goto_if_false @CASINO1_11019
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_10959
305@ = 25

:CASINO1_10959
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11019
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11019
if 
  $ca1_random_dialogue == 16
goto_if_false @CASINO1_11129
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11069
305@ = 26

:CASINO1_11069
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11129
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11129
if 
  $ca1_random_dialogue == 17
goto_if_false @CASINO1_11239
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11179
305@ = 34

:CASINO1_11179
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11239
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11239
if 
  $ca1_random_dialogue == 18
goto_if_false @CASINO1_11349
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11289
305@ = 35

:CASINO1_11289
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11349
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11349
if 
  $ca1_random_dialogue == 19
goto_if_false @CASINO1_11459
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11399
305@ = 36

:CASINO1_11399
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11459
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11459
if 
  $ca1_random_dialogue == 20
goto_if_false @CASINO1_11569
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11509
305@ = 37

:CASINO1_11509
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11569
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11569
if 
  $ca1_random_dialogue == 21
goto_if_false @CASINO1_11679
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11619
305@ = 40

:CASINO1_11619
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11679
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11679
if 
  $ca1_random_dialogue == 22
goto_if_false @CASINO1_11789
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11729
305@ = 39

:CASINO1_11729
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11789
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11789
if 
  $ca1_random_dialogue == 23
goto_if_false @CASINO1_11899
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11839
305@ = 40

:CASINO1_11839
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_11899
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_11899
if 
  $ca1_random_dialogue == 24
goto_if_false @CASINO1_12009
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_11949
305@ = 41

:CASINO1_11949
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12009
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12009
if 
  $ca1_random_dialogue == 25
goto_if_false @CASINO1_12119
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12059
305@ = 42

:CASINO1_12059
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12119
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12119
if 
  $ca1_random_dialogue == 26
goto_if_false @CASINO1_12229
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12169
305@ = 44

:CASINO1_12169
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12229
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12229
if 
  $ca1_random_dialogue == 27
goto_if_false @CASINO1_12339
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12279
305@ = 44

:CASINO1_12279
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12339
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12339
if 
  $ca1_random_dialogue == 28
goto_if_false @CASINO1_12449
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12389
305@ = 6

:CASINO1_12389
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12449
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12449
if 
  $ca1_random_dialogue == 29
goto_if_false @CASINO1_12559
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12499
305@ = 7

:CASINO1_12499
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12559
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12559
if 
  $ca1_random_dialogue == 30
goto_if_false @CASINO1_12669
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12609
305@ = 8

:CASINO1_12609
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12669
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12669
if 
  $ca1_random_dialogue == 31
goto_if_false @CASINO1_12779
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12719
305@ = 9

:CASINO1_12719
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12779
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12779
if 
  $ca1_random_dialogue == 32
goto_if_false @CASINO1_12889
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12829
305@ = 10

:CASINO1_12829
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12889
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12889
if 
  $ca1_random_dialogue == 33
goto_if_false @CASINO1_12999
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_12939
305@ = 11

:CASINO1_12939
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_12999
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_12999
if 
  $ca1_random_dialogue == 34
goto_if_false @CASINO1_13109
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13049
305@ = 12

:CASINO1_13049
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13109
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13109
if 
  $ca1_random_dialogue == 35
goto_if_false @CASINO1_13219
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13159
305@ = 13

:CASINO1_13159
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13219
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13219
if 
  $ca1_random_dialogue == 36
goto_if_false @CASINO1_13329
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13269
305@ = 14

:CASINO1_13269
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13329
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13329
if 
  $ca1_random_dialogue == 37
goto_if_false @CASINO1_13439
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13379
305@ = 15

:CASINO1_13379
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13439
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13439
if 
  $ca1_random_dialogue == 38
goto_if_false @CASINO1_13549
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13489
305@ = 16

:CASINO1_13489
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13549
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13549
if 
  $ca1_random_dialogue == 39
goto_if_false @CASINO1_13659
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13599
305@ = 17

:CASINO1_13599
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13659
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13659
if 
  $ca1_random_dialogue == 40
goto_if_false @CASINO1_13769
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13709
305@ = 18

:CASINO1_13709
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13769
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13769
if 
  $ca1_random_dialogue == 41
goto_if_false @CASINO1_13879
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13819
305@ = 19

:CASINO1_13819
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13879
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13879
if 
  $ca1_random_dialogue == 42
goto_if_false @CASINO1_13989
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_13929
305@ = 20

:CASINO1_13929
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_13989
set_var_int_to_var_int $ca1_random_dialogue_last = $ca1_random_dialogue
101@ = get_game_timer 
98@ = 2

:CASINO1_13989
if 
  98@ == 2
goto_if_false @CASINO1_14054
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_14054
98@ = 0

:CASINO1_14054
if 
  98@ == 0
goto_if_false @CASINO1_14478
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 10000
goto_if_false @CASINO1_14478
if and
  $ca1_spooked >= 0
  34 > $ca1_spooked
goto_if_false @CASINO1_14234
$ca1_random_dialogue = generate_random_int_in_range 28 {max} 32
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_14234
if 
  32 > $ca1_random_dialogue
goto_if_false @CASINO1_14209
$ca1_random_dialogue += 1
goto @CASINO1_14234

:CASINO1_14209
if 
  $ca1_random_dialogue > 28
goto_if_false @CASINO1_14234
$ca1_random_dialogue -= 1

:CASINO1_14234
if and
  $ca1_spooked > 33
  67 > $ca1_spooked
goto_if_false @CASINO1_14356
$ca1_random_dialogue = generate_random_int_in_range 33 {max} 37
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_14356
if 
  37 > $ca1_random_dialogue
goto_if_false @CASINO1_14331
$ca1_random_dialogue += 1
goto @CASINO1_14356

:CASINO1_14331
if 
  $ca1_random_dialogue > 33
goto_if_false @CASINO1_14356
$ca1_random_dialogue -= 1

:CASINO1_14356
if and
  $ca1_spooked > 66
  100 > $ca1_spooked
goto_if_false @CASINO1_14478
$ca1_random_dialogue = generate_random_int_in_range 38 {max} 42
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_14478
if 
  42 > $ca1_random_dialogue
goto_if_false @CASINO1_14453
$ca1_random_dialogue += 1
goto @CASINO1_14478

:CASINO1_14453
if 
  $ca1_random_dialogue > 38
goto_if_false @CASINO1_14478
$ca1_random_dialogue -= 1

:CASINO1_14478
if 
  42@ == 1
goto_if_false @CASINO1_14651
if 
  98@ == 0
goto_if_false @CASINO1_14651
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_14651
$ca1_random_dialogue = generate_random_int_in_range 7 {max} 9
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_14651
if 
  9 > $ca1_random_dialogue
goto_if_false @CASINO1_14626
$ca1_random_dialogue += 1
goto @CASINO1_14651

:CASINO1_14626
if 
  $ca1_random_dialogue > 7
goto_if_false @CASINO1_14651
$ca1_random_dialogue -= 1

:CASINO1_14651
if 
  43@ == 1
goto_if_false @CASINO1_14824
if 
  98@ == 0
goto_if_false @CASINO1_14824
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_14824
$ca1_random_dialogue = generate_random_int_in_range 14 {max} 16
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_14824
if 
  16 > $ca1_random_dialogue
goto_if_false @CASINO1_14799
$ca1_random_dialogue += 1
goto @CASINO1_14824

:CASINO1_14799
if 
  $ca1_random_dialogue > 14
goto_if_false @CASINO1_14824
$ca1_random_dialogue -= 1

:CASINO1_14824
if or
  46@ == 2
  48@ == 1
goto_if_false @CASINO1_15004
if 
  98@ == 0
goto_if_false @CASINO1_15004
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15004
$ca1_random_dialogue = generate_random_int_in_range 17 {max} 24
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_15004
if 
  24 > $ca1_random_dialogue
goto_if_false @CASINO1_14979
$ca1_random_dialogue += 1
goto @CASINO1_15004

:CASINO1_14979
if 
  $ca1_random_dialogue > 17
goto_if_false @CASINO1_15004
$ca1_random_dialogue -= 1

:CASINO1_15004
if 
  is_car_on_fire 322@
goto_if_false @CASINO1_15175
if 
  98@ == 0
goto_if_false @CASINO1_15175
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15175
$ca1_random_dialogue = generate_random_int_in_range 10 {max} 13
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_15175
if 
  13 > $ca1_random_dialogue
goto_if_false @CASINO1_15150
$ca1_random_dialogue += 1
goto @CASINO1_15175

:CASINO1_15150
if 
  $ca1_random_dialogue > 10
goto_if_false @CASINO1_15175
$ca1_random_dialogue -= 1

:CASINO1_15175
if 
  is_car_upsidedown 322@
goto_if_false @CASINO1_15346
if 
  98@ == 0
goto_if_false @CASINO1_15346
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 5000
goto_if_false @CASINO1_15346
$ca1_random_dialogue = generate_random_int_in_range 25 {max} 27
101@ = get_game_timer 
98@ = 1
if 
  is_int_var_equal_to_int_var $ca1_random_dialogue == $ca1_random_dialogue_last
goto_if_false @CASINO1_15346
if 
  27 > $ca1_random_dialogue
goto_if_false @CASINO1_15321
$ca1_random_dialogue += 1
goto @CASINO1_15346

:CASINO1_15321
if 
  $ca1_random_dialogue > 25
goto_if_false @CASINO1_15346
$ca1_random_dialogue -= 1

:CASINO1_15346
if 
  not is_char_dead 324@
goto_if_false @CASINO1_17351
if and
  $ca1_spooked >= 0
  34 > $ca1_spooked
goto_if_false @CASINO1_15988
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_15988
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_LOW"
goto_if_false @CASINO1_15535
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_LOW"
if 
  96@ == 1.0
goto_if_false @CASINO1_15528
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 1

:CASINO1_15528
goto @CASINO1_15988

:CASINO1_15535
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_15648
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_15648
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_15648
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_15761
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_15761
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_15761
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_15872
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_15872
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_15872
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_MED"
goto_if_false @CASINO1_15988
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_MED"
if 
  96@ == 1.0
goto_if_false @CASINO1_15988
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_LOW" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 2

:CASINO1_15988
if and
  $ca1_spooked > 33
  67 > $ca1_spooked
goto_if_false @CASINO1_16718
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_16718
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_MED"
goto_if_false @CASINO1_16161
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_MED"
if 
  96@ == 1.0
goto_if_false @CASINO1_16154
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 2

:CASINO1_16154
goto @CASINO1_16718

:CASINO1_16161
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_16274
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_16274
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16274
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_16387
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_16387
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16387
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_16498
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_16498
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16498
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_HIGH"
goto_if_false @CASINO1_16609
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_HIGH"
if 
  96@ > 1.0
goto_if_false @CASINO1_16609
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16609
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_LOW"
goto_if_false @CASINO1_16718
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_LOW"
if 
  96@ == 1.0
goto_if_false @CASINO1_16718
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_MED" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_16718
if and
  $ca1_spooked > 66
  100 > $ca1_spooked
goto_if_false @CASINO1_17351
if and
  45@ == 0
  46@ == 0
goto_if_false @CASINO1_17351
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_HIGH"
goto_if_false @CASINO1_16894
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_HIGH"
if 
  96@ == 1.0
goto_if_false @CASINO1_16887
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 3

:CASINO1_16887
goto @CASINO1_17351

:CASINO1_16894
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNR"
goto_if_false @CASINO1_17008
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNR"
if 
  96@ == 1.0
goto_if_false @CASINO1_17008
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_17008
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_TURNL"
goto_if_false @CASINO1_17122
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_TURNL"
if 
  96@ == 1.0
goto_if_false @CASINO1_17122
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_17122
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_BUMP"
goto_if_false @CASINO1_17234
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_BUMP"
if 
  96@ == 1.0
goto_if_false @CASINO1_17234
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0

:CASINO1_17234
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_MED"
goto_if_false @CASINO1_17351
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_MED"
if 
  96@ == 1.0
goto_if_false @CASINO1_17351
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 2

:CASINO1_17351
if 
  34@ > 3
goto_if_false @CASINO1_17570
if 
  47@ == 0
goto_if_false @CASINO1_17433
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
47@ = 1

:CASINO1_17433
if 
  47@ == 1
goto_if_false @CASINO1_17570
if 
  is_char_playing_anim 324@ {animationName} "TYD2CAR_HIGH"
goto_if_false @CASINO1_17570
96@ = get_char_anim_current_time 324@ {animationName} "TYD2CAR_HIGH"
if 
  96@ == 1.0
goto_if_false @CASINO1_17570
task_play_anim_non_interruptable 324@ {animationName} "TYD2CAR_HIGH" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
$ca1_test = 2

:CASINO1_17570
if 
  34@ == 4
goto_if_false @CASINO1_18500
if and
  not is_char_dead $scplayer
  not is_car_dead 322@
goto_if_false @CASINO1_18500
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_18229
if 
  $ca1_random_dialogue == 0
goto_if_false @CASINO1_17735
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17690
305@ = 49
$ca1_random_dialogue += 1
101@ = get_game_timer 

:CASINO1_17690
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17735
101@ = get_game_timer 

:CASINO1_17735
if 
  $ca1_random_dialogue == 1
goto_if_false @CASINO1_17842
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17797
305@ = 50
$ca1_random_dialogue += 1
101@ = get_game_timer 

:CASINO1_17797
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17842
101@ = get_game_timer 

:CASINO1_17842
if 
  $ca1_random_dialogue == 2
goto_if_false @CASINO1_17949
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_17904
305@ = 51
$ca1_random_dialogue += 1
101@ = get_game_timer 

:CASINO1_17904
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_17949
101@ = get_game_timer 

:CASINO1_17949
if 
  $ca1_random_dialogue == 3
goto_if_false @CASINO1_18056
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18011
305@ = 52
$ca1_random_dialogue += 1
101@ = get_game_timer 

:CASINO1_18011
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_18056
101@ = get_game_timer 

:CASINO1_18056
if 
  $ca1_random_dialogue == 4
goto_if_false @CASINO1_18163
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18118
305@ = 53
$ca1_random_dialogue += 1
101@ = get_game_timer 

:CASINO1_18118
99@ = get_game_timer 
set_lvar_int_to_lvar_int 100@ = 99@
sub_int_lvar_from_int_lvar 100@ -= 101@
if 
  100@ > 500
goto_if_false @CASINO1_18163
101@ = get_game_timer 

:CASINO1_18163
if 
  $ca1_random_dialogue == 5
goto_if_false @CASINO1_18229
if and
  307@ == 0
  305@ == 0
goto_if_false @CASINO1_18229
print 'CAS1_03' {time} 7000 {flag} 1
$ca1_random_dialogue += 1

:CASINO1_18229
if 
  is_char_in_car $scplayer {vehicle} 322@
goto_if_false @CASINO1_18500
if 
  335@ == 1
goto_if_false @CASINO1_18321
if 
  locate_char_any_means_3d $scplayer {x} 1910.75 {y} 960.74 {z} 10.86 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CASINO1_18321
335@ = 2

:CASINO1_18321
if 
  locate_char_any_means_3d $scplayer {x} 79@ {y} 80@ {z} 81@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO1_18500
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO1_18500
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
if and
  not is_char_dead 324@
  not is_char_dead $scplayer
goto_if_false @CASINO1_18500
do_fade 300 {direction} Fade.Out

:CASINO1_18437
if 
  get_fading_status 
goto_if_false @CASINO1_18461
wait 0
goto @CASINO1_18437

:CASINO1_18461
clear_area 79@ {y} 80@ {z} 81@ {radius} 35.0 {clearParticles} True
gosub @CASINO1_379
34@ = 5
35@ = 0

:CASINO1_18500
if 
  34@ == 5
goto_if_false @CASINO1_19367
if and
  35@ > 0
  3 > 35@
goto_if_false @CASINO1_18580
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.1 {collisionCheck} False

:CASINO1_18580
if 
  35@ == 0
goto_if_false @CASINO1_18824
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_18824
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1907.11 {y} 953.0226 {z} 10.9148 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1906.713 {y} 953.9378 {z} 10.9839 {switchStyle} SwitchType.JumpCut
request_car_recording 179

:CASINO1_18686
if 
  not has_car_recording_been_loaded 179
goto_if_false @CASINO1_18713
wait 0
goto @CASINO1_18686

:CASINO1_18713
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_18824
start_playback_recorded_car 322@ {path} 179
pause_playback_recorded_car 322@
do_fade 300 {direction} Fade.In

:CASINO1_18754
if 
  get_fading_status 
goto_if_false @CASINO1_18778
wait 0
goto @CASINO1_18754

:CASINO1_18778
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_18824
task_leave_car $scplayer {vehicle} 322@
task_enter_car_as_driver 334@ {vehicle} 322@ {time} -1
35@ = 1

:CASINO1_18824
if 
  35@ == 1
goto_if_false @CASINO1_19131
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.05 {collisionCheck} False
goto_if_false @CASINO1_18890

:CASINO1_18890
if and
  not is_car_dead 322@
  not is_char_dead 334@
goto_if_false @CASINO1_19131
if 
  is_char_on_foot $scplayer
goto_if_false @CASINO1_18974
97@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 97@ == 7
goto_if_false @CASINO1_18974
task_turn_char_to_face_char $scplayer {target} 334@
task_look_at_char $scplayer {target} 334@ {time} -2

:CASINO1_18974
if 
  is_char_in_car 334@ {vehicle} 322@
goto_if_false @CASINO1_19092
clear_look_at $scplayer
task_go_straight_to_coord $scplayer {x} 1900.7271 {y} 951.1921 {z} 9.8203 {speed} MoveState.Walk {time} -2
set_fixed_camera_position 1901.262 {y} 961.8007 {z} 11.2363 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1901.62 {y} 960.8673 {z} 11.2165 {switchStyle} SwitchType.JumpCut
unpause_playback_recorded_car 322@
35@ = 2
goto @CASINO1_19131

:CASINO1_19092
336@ = get_script_task_status 334@ {taskId} 1483
if 
  is_int_lvar_equal_to_constant 336@ == 7
goto_if_false @CASINO1_19131
task_enter_car_as_driver 334@ {vehicle} 322@ {time} -1

:CASINO1_19131
if 
  35@ == 2
goto_if_false @CASINO1_19193
if 
  not is_car_dead 322@
goto_if_false @CASINO1_19193
if 
  not is_playback_going_on_for_car 322@
goto_if_false @CASINO1_19193
53@ = get_game_timer 
35@ = 3

:CASINO1_19193
if 
  35@ == 3
goto_if_false @CASINO1_19295
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.2 {collisionCheck} False
52@ = get_game_timer 
set_lvar_int_to_lvar_int 51@ = 52@
sub_int_lvar_from_int_lvar 51@ -= 53@
if 
  51@ > 1250
goto_if_false @CASINO1_19295
35@ = 4

:CASINO1_19295
if 
  35@ == 4
goto_if_false @CASINO1_19367
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.82 {z} 11.438
clear_char_tasks_immediately $scplayer
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
35@ = 5
goto @CASINO1_19542

:CASINO1_19367
if 
  34@ > -2
goto_if_false @CASINO1_19517
if 
  not is_char_dead 324@
goto_if_false @CASINO1_19460
325@ = get_char_health 324@
if 
  325@ == 0
goto_if_false @CASINO1_19460
task_die 324@
detach_char_from_car 324@
print_now 'CAS1_04' {time} 5000 {flag} 1
goto @CASINO1_19524

:CASINO1_19460
if 
  is_car_in_water 322@
goto_if_false @CASINO1_19517
$ca1_test = 999
task_die 324@
detach_char_from_car 324@
print_now 'CAS1_04' {time} 5000 {flag} 1
goto @CASINO1_19524

:CASINO1_19517
goto @CASINO1_4387

:CASINO1_19524
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO1_19542
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO1'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 10
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:CASINO1_19606
gosub @CASINO1_372
if 
  not is_char_dead 324@
goto_if_false @CASINO1_19637
task_dive_from_attachment_and_get_up 324@ {time} 10000

:CASINO1_19637
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.62 {z} 11.438
remove_blip 323@
remove_blip 50@
if 
  34@ == 5
goto_if_false @CASINO1_19700
delete_char 334@
delete_char 324@
delete_car 322@

:CASINO1_19700
mark_model_as_no_longer_needed 533
mark_model_as_no_longer_needed 118
unload_special_character 1
remove_animation "CAR"
remove_decision_maker 320@
set_first_person_in_car_camera_mode True
clear_onscreen_counter $ca1_spooked
if 
  $flag_cas1_passed_1stime == 0
goto_if_false @CASINO1_19759
$flag_cas1_passed_1stime = 1

:CASINO1_19759
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 85---------------
// Originally: Explosive Situation

:CASINO2
script_name 'CASINO2'
gosub @CASINO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO2_38
gosub @CASINO2_16369

:CASINO2_38
gosub @CASINO2_16536
terminate_this_script 

:CASINO2_47
load_mission_text 'CASINO2'
$disable_all_cranes = 1
$c2_time_left = 0
$c2_cp = 0
set_fading_colour 0 {g} 0 {b} 0
138@ = 542.6064
144@ = 880.7817
150@ = -36.4105
139@ = 585.3983
145@ = 870.3217
151@ = -38.6206
140@ = 518.1696
146@ = 814.9295
152@ = -9.7489
141@ = 484.6667
147@ = 937.2839
153@ = -16.6201
142@ = 438.5849
148@ = 870.4443
154@ = -4.264
143@ = 455.1732
149@ = 803.1501
155@ = 5.3843
156@ = 561.1495
162@ = 875.8472
168@ = -37.2976
157@ = 585.9339
163@ = 851.1839
169@ = -36.1799
158@ = 464.2791
164@ = 860.6772
170@ = -17.3952
159@ = 443.1031
165@ = 902.137
171@ = -7.5636
160@ = 429.2553
166@ = 923.7551
172@ = 0.5245
161@ = 476.2539
167@ = 779.3841
173@ = 8.0929
register_mission_given 
$onmission = 1
53@ = load_char_decision_maker DecisionMakerType.Weak
127@ = load_char_decision_maker DecisionMakerType.Empty
252@ = load_char_decision_maker DecisionMakerType.Normal
78@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASINO2_547
if 
  get_fading_status 
goto_if_false @CASINO2_571
wait 0
goto @CASINO2_547

:CASINO2_571
load_cutscene 'CAS_2'

:CASINO2_582
if 
  not has_cutscene_loaded 
goto_if_false @CASINO2_606
wait 0
goto @CASINO2_582

:CASINO2_606
set_area_visible 11
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CASINO2_627
if 
  not has_cutscene_finished 
goto_if_false @CASINO2_651
wait 0
goto @CASINO2_627

:CASINO2_651
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:CASINO2_665
if 
  get_fading_status 
goto_if_false @CASINO2_689
wait 0
goto @CASINO2_665

:CASINO2_689
clear_cutscene 
set_area_visible 0
suppress_car_model 406
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_814
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
load_scene 2028.932 {y} 1023.292 {z} 9.8127
clear_area 2028.932 {y} 1023.292 {z} 9.8127 {radius} 20.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2028.932 {y} 1023.292 {z} 9.8127
set_char_heading $scplayer {heading} 278.4092
set_camera_behind_player 
wait 500

:CASINO2_814
request_model 260

:CASINO2_819
if 
  not has_model_loaded 260
goto_if_false @CASINO2_846
wait 0
goto @CASINO2_819

:CASINO2_846
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True
182@ = create_char PedType.CivMale {modelId} 260 {x} 819.707 {y} 857.8054 {z} 11.0547
set_char_heading 182@ {heading} 204.1414
set_char_decision_maker 182@ {handleOrTemplate} 53@
60@ = create_object #DES_QUARRYGATE2 {x} 806.5 {y} 846.9 {z} 8.6822
set_object_heading 60@ {heading} 0.0
61@ = create_object #DES_QUARRYGATE {x} 810.3 {y} 838.6 {z} 8.6822
set_object_heading 61@ {heading} 45.0
186@ = add_blip_for_coord 811.1817 {y} 843.9733 {z} 8.9859
print_now 'PD_16' {time} 8000 {flag} 1
191@ = create_object #GUNBOX {x} 600.8789 {y} 826.5641 {z} -44.2392
set_object_heading 191@ {heading} 131.8763
191@ = create_object #GUNBOX {x} 599.4742 {y} 827.0499 {z} -44.2844
set_object_heading 191@ {heading} 129.5516
191@ = create_object #GUNBOX {x} 600.8787 {y} 828.1313 {z} -44.271
set_object_heading 191@ {heading} 72.6773
191@ = create_object #GUNBOX {x} 671.1311 {y} 816.2497 {z} -43.9456
set_object_heading 191@ {heading} 280.6081
191@ = create_object #GUNBOX {x} 672.9714 {y} 817.7601 {z} -43.9456
set_object_heading 191@ {heading} 295.8181
191@ = create_object #GUNBOX {x} 673.1854 {y} 817.8634 {z} -43.9456
set_object_heading 191@ {heading} 295.8181
set_wanted_multiplier 0.0

:CASINO2_1218
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_1413
wait 0
gosub @CASINO2_18096
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO2_1267
goto @CASINO2_16387

:CASINO2_1267
if 
  locate_char_any_means_3d $scplayer {x} 811.1817 {y} 843.9733 {z} 8.9859 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO2_1406
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CASINO2_1329
if 
  get_fading_status 
goto_if_false @CASINO2_1353
wait 0
goto @CASINO2_1329

:CASINO2_1353
remove_blip 186@
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_1399
83@ = store_car_char_is_in $scplayer
set_car_status 83@ {status} EntityStatus.Physics
set_car_temp_action 83@ {actionId} TempAction.HandbrakeTurnRight {time} 1500

:CASINO2_1399
goto @CASINO2_1425

:CASINO2_1406
goto @CASINO2_1218

:CASINO2_1413
wait 1000
goto @CASINO2_16369

:CASINO2_1425
84@ = 662.1465
88@ = 917.9582
92@ = -41.8491
96@ = 318.2808
85@ = 583.0025
89@ = 934.0627
93@ = -43.9531
97@ = 114.8609
86@ = 552.9266
90@ = 846.8138
94@ = -42.8758
98@ = 197.0568
87@ = 640.8603
91@ = 810.404
95@ = -43.9531
99@ = 250.0977
246@ = 2
262@ = 2
request_model 330
request_model 153
request_model 71
request_model 260
request_model 346
request_model 337
request_model 530
request_model 406

:CASINO2_1638
if 
  not has_model_loaded 330
goto_if_false @CASINO2_1665
wait 0
goto @CASINO2_1638

:CASINO2_1665
if or
  not has_model_loaded 153
  not has_model_loaded 71
  not has_model_loaded 260
  not has_model_loaded 346
goto_if_false @CASINO2_1706
wait 0
goto @CASINO2_1665

:CASINO2_1706
if or
  not has_model_loaded 337
  not has_model_loaded 530
  not has_model_loaded 406
goto_if_false @CASINO2_1743
wait 0
goto @CASINO2_1706

:CASINO2_1743
254@ = create_car 406 {x} 684.158 {y} 899.4011 {z} -41.382
set_car_heading 254@ {heading} 50.0
250@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 661.397 {y} 917.1706 {z} -41.4059 {speed} MoveState.Walk {vehicle} -1
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 250@ {state} True
close_sequence_task 250@
251@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 662.605 {y} 916.313 {z} -41.4059 {speed} MoveState.Walk {vehicle} -1
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 251@ {state} True
close_sequence_task 251@
215@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 661.397 {y} 917.1706 {z} -41.4059 {speed} MoveState.Walk {vehicle} -1
set_sequence_to_repeat 215@ {state} True
close_sequence_task 215@
212@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 590.1505 {y} 875.5482 {z} -43.4973 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 40000
set_sequence_to_repeat 212@ {state} True
close_sequence_task 212@
72@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 72@
59@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 416.7344 {y} 894.5847 {z} 1.64 {speed} MoveState.Run {vehicle} -1
close_sequence_task 59@
185@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 811.1705 {y} 840.3314 {z} 8.8556 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 835.0692 {y} 854.228 {z} 11.5339 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 831.1895 {y} 869.6328 {z} 11.7659 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 812.9305 {y} 865.5474 {z} 11.2512 {speed} MoveState.Walk {vehicle} -1
close_sequence_task 185@
217@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
set_sequence_to_repeat 217@ {state} True
close_sequence_task 217@
206@ = open_sequence_task 
flush_route 
extend_route 652.6294 {y} 920.1244 {z} -41.6245
extend_route 643.2743 {y} 944.6199 {z} -36.1984
extend_route 650.2857 {y} 948.2803 {z} -35.9383
extend_route 676.3673 {y} 939.0834 {z} -31.2018
extend_route 695.1881 {y} 918.9306 {z} -31.3478
extend_route 709.0739 {y} 891.5104 {z} -28.7325
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
extend_route 728.9528 {y} 889.2318 {z} -27.4689
extend_route 718.7523 {y} 918.5203 {z} -19.886
task_follow_point_route -1 {speed} MoveState.Sprint {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 206@
55@ = open_sequence_task 
task_stand_still -1 {time} 4000
task_scratch_head -1
task_look_about -1 {time} 4000
set_sequence_to_repeat 55@ {state} True
close_sequence_task 55@
56@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 625.9337 {y} 831.7066 {z} -43.9531 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
task_go_to_coord_any_means -1 {x} 629.7086 {y} 863.9051 {z} -43.9456 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
task_go_to_coord_any_means -1 {x} 633.362 {y} 899.4764 {z} -43.8397 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
set_sequence_to_repeat 56@ {state} True
close_sequence_task 56@
57@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 531.6239 {y} 860.3109 {z} -43.6083 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 536.4184 {y} 852.4755 {z} -43.4897 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 548.7656 {y} 858.6099 {z} -43.83 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 544.7462 {y} 868.412 {z} -43.0847 {speed} MoveState.Walk {vehicle} -1
set_sequence_to_repeat 57@ {state} True
close_sequence_task 57@
58@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 580.5311 {y} 830.0402 {z} -30.9456 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
task_go_to_coord_any_means -1 {x} 570.5531 {y} 828.2956 {z} -26.8808 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 561.6993 {y} 826.1243 {z} -23.1406 {speed} MoveState.Walk {vehicle} -1
task_look_about -1 {time} 2000
set_sequence_to_repeat 58@ {state} True
close_sequence_task 58@
205@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 576.2826 {y} 880.9235 {z} -44.6488 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 575.4687 {y} 871.9396 {z} -44.6139 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 577.0265 {y} 862.7321 {z} -44.0826 {speed} MoveState.Walk {vehicle} -1
task_go_to_coord_any_means -1 {x} 584.0759 {y} 844.0593 {z} -43.4072 {speed} MoveState.Walk {vehicle} -1
set_sequence_to_repeat 205@ {state} True
close_sequence_task 205@
211@ = open_sequence_task 
flush_route 
extend_route 473.5352 {y} 916.5417 {z} -19.6808
extend_route 467.0137 {y} 925.6787 {z} -19.4363
extend_route 476.3217 {y} 939.0852 {z} -17.1781
extend_route 493.3413 {y} 945.0632 {z} -16.4974
extend_route 508.5752 {y} 956.9808 {z} -15.2792
extend_route 493.3413 {y} 945.0632 {z} -16.4974
extend_route 476.3217 {y} 939.0852 {z} -17.1781
extend_route 467.0137 {y} 925.6787 {z} -19.4363
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
set_sequence_to_repeat 211@ {state} True
close_sequence_task 211@
221@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 420.7673 {y} 866.2073 {z} 5.7531 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 221@
222@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 413.9022 {y} 863.8785 {z} 7.0415 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} True
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 222@
198@ = create_char PedType.Mission1 {modelId} 153 {x} 590.366 {y} 876.7747 {z} -43.4973
set_char_heading 198@ {heading} 177.7406
set_char_decision_maker 198@ {handleOrTemplate} 252@
give_weapon_to_char 198@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 198@ {weaponType} WeaponType.Pistol
set_char_health 198@ {health} 200
set_char_max_health 198@ {maxHealth} 200
task_stay_in_same_place 198@ {state} True
task_use_mobile_phone 198@ {start} True
197@ = create_object #CJ_DYN_PLUNGE_1 {x} 591.2704 {y} 876.7986 {z} -43.4973
set_object_heading 197@ {heading} 270.0
187@ = create_car 530 {x} 640.8603 {y} 810.404 {z} -43.9531
set_car_heading 187@ {heading} 250.0977
control_movable_vehicle_part 187@ {range} 0.5
190@ = open_sequence_task 
if 
  not is_car_dead 187@
goto_if_false @CASINO2_3477
flush_route 
extend_route 667.7962 {y} 819.8148 {z} -43.9456
extend_route 655.5785 {y} 831.1092 {z} -43.9456
extend_route 643.8084 {y} 819.2715 {z} -43.9456
extend_route 605.1934 {y} 820.2333 {z} -44.0023
task_drive_point_route_advanced -1 {vehicle} 187@ {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
extend_route 608.6918 {y} 819.8881 {z} -43.9456
extend_route 643.8084 {y} 819.2715 {z} -43.9456
extend_route 655.5785 {y} 831.1092 {z} -43.9456
extend_route 667.7962 {y} 819.8148 {z} -43.9456
task_drive_point_route_advanced -1 {vehicle} 187@ {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
flush_route 
set_sequence_to_repeat 190@ {state} True

:CASINO2_3477
close_sequence_task 190@
43@ = create_char PedType.Mission1 {modelId} 260 {x} 625.9337 {y} 831.7066 {z} -43.9531
set_char_heading 43@ {heading} 156.9796
set_char_decision_maker 43@ {handleOrTemplate} 53@
perform_sequence_task 43@ {sequence} 56@
44@ = create_char PedType.Mission2 {modelId} 260 {x} 531.6239 {y} 860.3109 {z} -43.6083
set_char_heading 44@ {heading} 156.9796
set_char_decision_maker 44@ {handleOrTemplate} 78@
give_weapon_to_char 44@ {weaponType} WeaponType.Shovel {ammo} 30000
set_current_char_weapon 44@ {weaponType} WeaponType.Shovel
perform_sequence_task 44@ {sequence} 57@
45@ = create_char PedType.Mission1 {modelId} 260 {x} 637.8237 {y} 825.2736 {z} -41.2744
set_char_heading 45@ {heading} 309.4228
set_char_decision_maker 45@ {handleOrTemplate} 53@
46@ = create_char PedType.Mission1 {modelId} 260 {x} 638.5316 {y} 826.1287 {z} -41.2291
set_char_heading 46@ {heading} 144.6359
set_char_decision_maker 46@ {handleOrTemplate} 53@
47@ = create_char PedType.Mission1 {modelId} 260 {x} 583.0614 {y} 849.4081 {z} -43.5974
set_char_heading 47@ {heading} 26.0656
set_char_decision_maker 47@ {handleOrTemplate} 53@
perform_sequence_task 47@ {sequence} 205@
49@ = create_char PedType.Mission2 {modelId} 71 {x} 491.5784 {y} 940.8132 {z} -17.1478
give_weapon_to_char 49@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 49@ {weaponType} WeaponType.Pistol
set_char_heading 49@ {heading} 279.9455
set_char_decision_maker 49@ {handleOrTemplate} 78@
perform_sequence_task 49@ {sequence} 211@
50@ = create_char PedType.Mission2 {modelId} 71 {x} 590.1505 {y} 875.5482 {z} -43.4973
set_char_heading 50@ {heading} 278.2997
set_char_decision_maker 50@ {handleOrTemplate} 78@
give_weapon_to_char 50@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 50@ {weaponType} WeaponType.Pistol
perform_sequence_task 50@ {sequence} 212@
51@ = create_char PedType.Mission1 {modelId} 260 {x} 655.8689 {y} 904.3282 {z} -42.0397
set_char_heading 51@ {heading} 330.4476
set_char_decision_maker 51@ {handleOrTemplate} 53@
52@ = create_char PedType.Mission1 {modelId} 260 {x} 654.8843 {y} 906.4748 {z} -42.0822
set_char_heading 52@ {heading} 324.192
give_weapon_to_char 52@ {weaponType} WeaponType.Shovel {ammo} 30000
set_current_char_weapon 52@ {weaponType} WeaponType.Shovel
set_char_decision_maker 52@ {handleOrTemplate} 53@
35@ = 0

:CASINO2_3982
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_4016
set_sense_range 43@(35@,10i) {range} 15.0

:CASINO2_4016
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_3982
if 
  not is_car_dead 187@
goto_if_false @CASINO2_4082
183@ = create_char_inside_car 187@ {pedType} PedType.Mission1 {modelId} 260
set_char_decision_maker 183@ {handleOrTemplate} 53@
perform_sequence_task 183@ {sequence} 190@

:CASINO2_4082
set_camera_behind_player 
35@ = 0

:CASINO2_4091
create_object_no_offset #DYNAMITE {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {var_handle} 109@(35@,4i)
set_object_proofs 109@(35@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
create_object_no_offset #DYNO_BOX_A {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {var_handle} 121@(35@,4i)
set_object_collision 109@(35@,4i) {state} False
set_object_heading 121@(35@,4i) {heading} 96@(35@,4f)
create_object_no_offset #DYNO_BOX_B {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {var_handle} 113@(35@,4i)
set_object_heading 113@(35@,4i) {heading} 96@(35@,4f)
add_blip_for_object 109@(35@,4i) {var_handle} 101@(35@,4i)
change_blip_display 101@(35@,4i) {display} BlipDisplay.Both
make_object_targettable 113@(35@,4i) {state} False
make_object_targettable 109@(35@,4i) {state} False
make_object_targettable 121@(35@,4i) {state} False
set_object_health 113@(35@,4i) {health} 1000
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_4091
attach_object_to_object 112@ {handle} 116@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.4 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_object 124@ {handle} 116@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 116@ {handle} 187@ {xOffset} 0.0 {yOffset} 0.8 {zOffset} -0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
77@ = create_object #PRIVATESIGN3 {x} 470.3749 {y} 965.7881 {z} 4.5134
set_object_heading 77@ {heading} 311.2527
76@ = create_object #PRIVATESIGN1 {x} 546.1226 {y} 879.7054 {z} -42.1212
set_object_heading 76@ {heading} 76.924
132@ = add_blip_for_coord 542.6064 {y} 880.7817 {z} -36.3928
change_blip_display 132@ {display} BlipDisplay.Neither
133@ = add_blip_for_coord 585.3983 {y} 870.3217 {z} -39.4206
change_blip_display 133@ {display} BlipDisplay.Neither
134@ = add_blip_for_coord 518.1917 {y} 814.9812 {z} -9.7609
change_blip_display 134@ {display} BlipDisplay.Neither
135@ = add_blip_for_coord 479.1757 {y} 930.0793 {z} -16.6475
change_blip_display 135@ {display} BlipDisplay.Neither
136@ = add_blip_for_coord 437.9441 {y} 869.2394 {z} -4.0196
change_blip_display 136@ {display} BlipDisplay.Neither
137@ = add_blip_for_coord 455.1732 {y} 803.1501 {z} 5.3872
change_blip_display 137@ {display} BlipDisplay.Neither
204@ = add_blip_for_coord 1030.157 {y} 744.3469 {z} 9.7922
change_blip_display 204@ {display} BlipDisplay.Neither
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_4771
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_4771
83@ = store_car_char_is_in $scplayer
set_car_status 83@ {status} EntityStatus.Physics
set_car_temp_action 83@ {actionId} TempAction.HandbrakeTurnRight {time} 1500

:CASINO2_4771
gosub @CASINO2_17980
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_4921
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_4867
set_car_coordinates 83@ {x} 777.9584 {y} 838.6478 {z} 4.861
set_car_heading 83@ {heading} 0.0
warp_char_from_car_to_coord $scplayer {x} 774.3173 {y} 835.658 {z} 4.8819
goto @CASINO2_4887

:CASINO2_4867
set_char_coordinates $scplayer {x} 775.5965 {y} 834.8624 {z} 4.8713

:CASINO2_4887
task_go_to_coord_any_means $scplayer {x} 771.6103 {y} 836.6703 {z} 4.8969 {speed} MoveState.Walk {vehicle} -1
set_char_heading $scplayer {heading} 87.4579

:CASINO2_4921
load_scene_in_direction 773.9383 {y} 834.7843 {z} 4.8835 {heading} 74.4105
set_fixed_camera_position 776.3613 {y} 837.3477 {z} 7.3533 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 775.4211 {y} 837.4819 {z} 7.0403 {switchStyle} SwitchType.JumpCut
wait 500
gosub @CASINO2_18063
print_now 'PD_01' {time} 4500 {flag} 1
TIMERA = 0

:CASINO2_5029
if 
  4500 > TIMERA
goto_if_false @CASINO2_5083
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5076
goto @CASINO2_5639

:CASINO2_5076
goto @CASINO2_5029

:CASINO2_5083
load_scene_in_direction 610.9529 {y} 869.6495 {z} -40.7211 {heading} 77.0
set_fixed_camera_position 610.9529 {y} 869.6495 {z} -40.7211 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 610.0316 {y} 870.0207 {z} -40.8371 {switchStyle} SwitchType.JumpCut
print_now 'PD_20' {time} 5000 {flag} 1
TIMERA = 0

:CASINO2_5179
if 
  2000 > TIMERA
goto_if_false @CASINO2_5233
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5226
goto @CASINO2_5639

:CASINO2_5226
goto @CASINO2_5179

:CASINO2_5233
if and
  not is_char_dead 51@
  not is_char_dead 52@
goto_if_false @CASINO2_5270
perform_sequence_task 51@ {sequence} 251@
perform_sequence_task 52@ {sequence} 250@

:CASINO2_5270
TIMERA = 0

:CASINO2_5277
if 
  3000 > TIMERA
goto_if_false @CASINO2_5331
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5324
goto @CASINO2_5639

:CASINO2_5324
goto @CASINO2_5277

:CASINO2_5331
set_fixed_camera_position 664.9276 {y} 918.5754 {z} -40.8955 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 663.9788 {y} 918.2599 {z} -40.9078 {switchStyle} SwitchType.JumpCut
print_now 'PD_21' {time} 4000 {flag} 1
if 
  not is_char_dead 46@
goto_if_false @CASINO2_5450
task_play_anim 46@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_5450
TIMERA = 0

:CASINO2_5457
if 
  4000 > TIMERA
goto_if_false @CASINO2_5511
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5504
goto @CASINO2_5639

:CASINO2_5504
goto @CASINO2_5457

:CASINO2_5511
set_fixed_camera_position 661.5589 {y} 921.2776 {z} -40.5538 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 661.9819 {y} 920.3747 {z} -40.6291 {switchStyle} SwitchType.JumpCut
print_now 'PD_27' {time} 6000 {flag} 1
TIMERA = 0

:CASINO2_5585
if 
  6000 > TIMERA
goto_if_false @CASINO2_5639
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_5632
goto @CASINO2_5639

:CASINO2_5632
goto @CASINO2_5585

:CASINO2_5639
if and
  not is_char_dead 51@
  not is_char_dead 52@
goto_if_false @CASINO2_5676
perform_sequence_task 51@ {sequence} 251@
perform_sequence_task 52@ {sequence} 250@

:CASINO2_5676
if 
  not is_char_dead 46@
goto_if_false @CASINO2_5728
task_play_anim 46@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_5728
gosub @CASINO2_18028
gosub @CASINO2_18002
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_5793
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 775.4108 {y} 834.5572 {z} 4.8721
set_char_heading $scplayer {heading} 93.2533

:CASINO2_5793
gosub @CASINO2_18063
clear_prints 
$c2_time_left = 150000
display_onscreen_timer_with_string $c2_time_left {direction} TimerDirection.Down {text} 'PD_25'
goto @CASINO2_8497

:CASINO2_5835
request_model 117
request_model 410
request_animation "CARRY"

:CASINO2_5853
if or
  not has_model_loaded 117
  not has_model_loaded 410
  not has_animation_loaded "CARRY"
goto_if_false @CASINO2_5893
wait 0
goto @CASINO2_5853

:CASINO2_5893
48@ = create_char PedType.Mission2 {modelId} 71 {x} 580.5311 {y} 830.0402 {z} -30.9456
set_char_heading 48@ {heading} 57.3299
set_char_decision_maker 48@ {handleOrTemplate} 78@
give_weapon_to_char 48@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 48@ {weaponType} WeaponType.Pistol
perform_sequence_task 48@ {sequence} 58@
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
lock_car_doors 223@ {lockStatus} CarLock.Locked
freeze_car_position 223@ {state} True
pop_car_boot 223@
set_car_heading 223@ {heading} 292.6477
224@ = create_char PedType.CivMale {modelId} 117 {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493
set_char_suffers_critical_hits 224@ {state} False
set_char_never_targetted 224@ {state} True
set_char_only_damaged_by_player 224@ {state} True
set_char_decision_maker 224@ {handleOrTemplate} 127@
request_model 428
request_model 349

:CASINO2_6109
if or
  not has_model_loaded 428
  not has_model_loaded 349
goto_if_false @CASINO2_6141
wait 0
goto @CASINO2_6109

:CASINO2_6141
clear_area 812.6123 {y} 845.2352 {z} 9.1419 {radius} 20.0 {clearParticles} True
73@ = create_car 428 {x} 812.6123 {y} 845.2352 {z} 9.1419
set_car_heading 73@ {heading} 101.1888
74@ = create_car 428 {x} 812.4752 {y} 840.8808 {z} 8.9765
set_car_heading 74@ {heading} 101.8471
75@ = create_car 428 {x} 422.5194 {y} 856.283 {z} 6.1078
set_car_heading 75@ {heading} 33.0215
62@ = create_char_inside_car 73@ {pedType} PedType.Mission2 {modelId} 71
63@ = create_char_as_passenger 73@ {pedType} PedType.Mission2 {modelId} 71 {seat} SeatId.BikeRear
64@ = create_char_inside_car 74@ {pedType} PedType.Mission2 {modelId} 71
65@ = create_char_as_passenger 74@ {pedType} PedType.Mission2 {modelId} 71 {seat} SeatId.BikeRear
35@ = 0

:CASINO2_6323
give_weapon_to_char 62@(35@,10i) {weaponType} WeaponType.Shotgun {ammo} 30000
set_current_char_weapon 62@(35@,10i) {weaponType} WeaponType.Shotgun
set_char_decision_maker 62@(35@,10i) {handleOrTemplate} 78@
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_6323
clear_area 783.6387 {y} 841.395 {z} 4.8177 {radius} 20.0 {clearParticles} True
task_car_drive_to_coord 62@ {vehicle} 73@ {x} 783.6387 {y} 841.395 {z} 4.8177 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_to_coord 64@ {vehicle} 74@ {x} 781.6849 {y} 833.6969 {z} 4.8296 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
131@ = 1
clear_prints 
gosub @CASINO2_18028
35@ = 0

:CASINO2_6496
if and
  35@ <> 5
  35@ <> 6
  35@ <> 7
goto_if_false @CASINO2_6557
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_6557
delete_char 43@(35@,10i)

:CASINO2_6557
if 
  35@ == 7
goto_if_false @CASINO2_6616
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_6616
clear_char_tasks_immediately 43@(35@,10i)
task_kill_char_on_foot 43@(35@,10i) {target} $scplayer

:CASINO2_6616
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_6496
if 
  not is_char_dead 182@
goto_if_false @CASINO2_6658
delete_char 182@

:CASINO2_6658
if 
  not is_char_dead 183@
goto_if_false @CASINO2_6679
delete_char 183@

:CASINO2_6679
if 
  not is_char_dead 198@
goto_if_false @CASINO2_6700
delete_char 198@

:CASINO2_6700
request_model 468

:CASINO2_6705
if 
  not has_model_loaded 468
goto_if_false @CASINO2_6732
wait 0
goto @CASINO2_6705

:CASINO2_6732
82@ = create_car 468 {x} 583.0051 {y} 881.9482 {z} -45.0648
set_can_burst_car_tyres 82@ {state} False
set_car_heading 82@ {heading} 93.6785
clear_area 583.0051 {y} 881.9482 {z} -45.0648 {radius} 10.0 {clearParticles} True
clear_area 583.0051 {y} 881.9482 {z} -45.0648 {radius} 10.0 {clearParticles} True
192@ = add_blip_for_car 82@
set_blip_as_friendly 192@ {state} True
gosub @CASINO2_17980
force_weather_now WeatherType.SandstormDesert
set_fixed_camera_position 772.3265 {y} 828.7196 {z} 5.8497 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 773.1074 {y} 829.3431 {z} 5.8867 {switchStyle} SwitchType.JumpCut
gosub @CASINO2_18063
TIMERA = 0

:CASINO2_6911
if 
  2000 > TIMERA
goto_if_false @CASINO2_6965
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_6958
goto @CASINO2_7851

:CASINO2_6958
goto @CASINO2_6911

:CASINO2_6965
set_fixed_camera_position 772.3265 {y} 828.7196 {z} 5.8497 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 773.1074 {y} 829.3431 {z} 5.8867 {switchStyle} SwitchType.JumpCut
print_now 'PD_10' {time} 3500 {flag} 1
TIMERA = 0

:CASINO2_7039
if 
  1000 > TIMERA
goto_if_false @CASINO2_7093
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7086
goto @CASINO2_7851

:CASINO2_7086
goto @CASINO2_7039

:CASINO2_7093
if 
  not is_car_dead 74@
goto_if_false @CASINO2_7114
task_everyone_leave_car 74@

:CASINO2_7114
TIMERA = 0

:CASINO2_7121
if 
  500 > TIMERA
goto_if_false @CASINO2_7175
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7168
goto @CASINO2_7851

:CASINO2_7168
goto @CASINO2_7121

:CASINO2_7175
if 
  not is_car_dead 73@
goto_if_false @CASINO2_7196
task_everyone_leave_car 73@

:CASINO2_7196
TIMERA = 0

:CASINO2_7203
if 
  2000 > TIMERA
goto_if_false @CASINO2_7257
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7250
goto @CASINO2_7851

:CASINO2_7250
goto @CASINO2_7203

:CASINO2_7257
set_fixed_camera_position 587.0494 {y} 883.9788 {z} -44.1279 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 586.0945 {y} 883.6844 {z} -44.1663 {switchStyle} SwitchType.JumpCut
print_now 'PD_11' {time} 4000 {flag} 1
TIMERA = 0

:CASINO2_7331
if 
  4000 > TIMERA
goto_if_false @CASINO2_7385
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7378
goto @CASINO2_7851

:CASINO2_7378
goto @CASINO2_7331

:CASINO2_7385
set_fixed_camera_position 560.5041 {y} 888.881 {z} -42.2954 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 559.5857 {y} 888.5298 {z} -42.1132 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:CASINO2_7443
if 
  100 > TIMERA
goto_if_false @CASINO2_7496
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7489
goto @CASINO2_7851

:CASINO2_7489
goto @CASINO2_7443

:CASINO2_7496
set_interpolation_parameters 0.0 {time} 5000
set_fixed_camera_position 560.5041 {y} 888.881 {z} -42.2954 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 561.1447 {y} 888.1351 {z} -42.1132 {switchStyle} SwitchType.Interpolation
TIMERA = 0

:CASINO2_7564
if 
  5000 > TIMERA
goto_if_false @CASINO2_7618
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7611
goto @CASINO2_7851

:CASINO2_7611
goto @CASINO2_7564

:CASINO2_7618
set_fixed_camera_position 584.2947 {y} 833.9013 {z} -23.7385 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 583.8419 {y} 833.3374 {z} -24.4291 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:CASINO2_7676
if 
  100 > TIMERA
goto_if_false @CASINO2_7729
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7722
goto @CASINO2_7851

:CASINO2_7722
goto @CASINO2_7676

:CASINO2_7729
set_interpolation_parameters 0.0 {time} 4000
set_fixed_camera_position 584.2947 {y} 833.9013 {z} -23.7385 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 583.3537 {y} 833.6394 {z} -23.5241 {switchStyle} SwitchType.Interpolation
TIMERA = 0

:CASINO2_7797
if 
  4000 > TIMERA
goto_if_false @CASINO2_7851
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_7844
goto @CASINO2_7851

:CASINO2_7844
goto @CASINO2_7797

:CASINO2_7851
gosub @CASINO2_18028
clear_prints 
gosub @CASINO2_18002
gosub @CASINO2_18063
set_object_heading 60@ {heading} 115.0
set_object_heading 61@ {heading} -65.0
if 
  not is_car_dead 73@
goto_if_false @CASINO2_7930
set_car_coordinates 73@ {x} 783.6387 {y} 841.395 {z} 4.8177

:CASINO2_7930
if 
  not is_car_dead 74@
goto_if_false @CASINO2_7966
set_car_coordinates 74@ {x} 781.6849 {y} 833.6969 {z} 4.8296

:CASINO2_7966
131@ = 1
125@ = create_object_no_offset #BARRIER_4ANDY {x} 783.3699 {y} 847.4722 {z} 4.8193
set_object_heading 125@ {heading} 10.654
125@ = create_object_no_offset #BARRIER_4ANDY {x} 778.0906 {y} 847.8346 {z} 4.8515
set_object_heading 125@ {heading} 10.5331
if 
  not is_char_dead 62@
goto_if_false @CASINO2_8138
if 
  not is_char_in_any_car 62@
goto_if_false @CASINO2_8108
set_char_coordinates 62@ {x} 781.9483 {y} 848.7029 {z} 4.828
set_char_heading 62@ {heading} 20.7251
goto @CASINO2_8138

:CASINO2_8108
warp_char_from_car_to_coord 62@ {x} 781.9483 {y} 848.7029 {z} 4.828
set_char_heading 62@ {heading} 20.7251

:CASINO2_8138
if 
  not is_char_dead 63@
goto_if_false @CASINO2_8237
if 
  not is_char_in_any_car 63@
goto_if_false @CASINO2_8207
set_char_coordinates 63@ {x} 777.5142 {y} 849.4856 {z} 4.8551
set_char_heading 63@ {heading} 22.0536
goto @CASINO2_8237

:CASINO2_8207
warp_char_from_car_to_coord 63@ {x} 777.5142 {y} 849.4856 {z} 4.8551
set_char_heading 63@ {heading} 22.0536

:CASINO2_8237
if 
  not is_char_dead 64@
goto_if_false @CASINO2_8336
if 
  not is_char_in_any_car 64@
goto_if_false @CASINO2_8306
set_char_coordinates 64@ {x} 773.2135 {y} 821.8822 {z} 4.3934
set_char_heading 64@ {heading} 168.8133
goto @CASINO2_8336

:CASINO2_8306
warp_char_from_car_to_coord 64@ {x} 773.2135 {y} 821.8822 {z} 4.3934
set_char_heading 64@ {heading} 168.8133

:CASINO2_8336
if 
  not is_char_dead 65@
goto_if_false @CASINO2_8435
if 
  not is_char_in_any_car 65@
goto_if_false @CASINO2_8405
set_char_coordinates 65@ {x} 778.8481 {y} 819.9525 {z} 4.3237
set_char_heading 65@ {heading} 156.0701
goto @CASINO2_8435

:CASINO2_8405
warp_char_from_car_to_coord 65@ {x} 778.8481 {y} 819.9525 {z} 4.3237
set_char_heading 65@ {heading} 156.0701

:CASINO2_8435
35@ = 0

:CASINO2_8442
if 
  not is_char_dead 62@(35@,10i)
goto_if_false @CASINO2_8474
perform_sequence_task 62@(35@,10i) {sequence} 72@

:CASINO2_8474
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_8442
return 

:CASINO2_8497
TIMERB = 0
clear_prints 
print_now 'PD_26' {time} 7000 {flag} 1

:CASINO2_8522
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_15940
wait 0
256@ += 1
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @CASINO2_8571
goto @CASINO2_16387

:CASINO2_8571
gosub @CASINO2_18096
gosub @CASINO2_20290
gosub @CASINO2_20418
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_8622
218@, 219@, 220@ = get_char_coordinates $scplayer

:CASINO2_8622
gosub @CASINO2_17840
if and
  22000 >= $c2_time_left
  234@ == 0
goto_if_false @CASINO2_8680
if 
  257@ == 1
goto_if_false @CASINO2_8673

:CASINO2_8673
234@ = 1

:CASINO2_8680
if and
  20000 >= $c2_time_left
  234@ == 1
goto_if_false @CASINO2_8760
if 
  257@ == 1
goto_if_false @CASINO2_8753
set_lvar_text_label 264@s = 'CAS2_BA'
set_lvar_int_to_constant 247@ = 7415
gosub @CASINO2_20270

:CASINO2_8753
234@ = 2

:CASINO2_8760
if and
  6000 >= $c2_time_left
  234@ == 2
goto_if_false @CASINO2_8840
if 
  257@ == 1
goto_if_false @CASINO2_8833
set_lvar_text_label 264@s = 'CAS2_BB'
set_lvar_int_to_constant 247@ = 7416
gosub @CASINO2_20270

:CASINO2_8833
234@ = 3

:CASINO2_8840
if and
  3800 >= $c2_time_left
  234@ == 3
goto_if_false @CASINO2_8920
if 
  257@ == 1
goto_if_false @CASINO2_8913
set_lvar_text_label 264@s = 'CAS2_BC'
set_lvar_int_to_constant 247@ = 7417
gosub @CASINO2_20270

:CASINO2_8913
234@ = 4

:CASINO2_8920
if and
  2800 >= $c2_time_left
  234@ == 4
goto_if_false @CASINO2_9000
if 
  257@ == 1
goto_if_false @CASINO2_8993
set_lvar_text_label 264@s = 'CAS2_BD'
set_lvar_int_to_constant 247@ = 7418
gosub @CASINO2_20270

:CASINO2_8993
234@ = 5

:CASINO2_9000
if and
  is_car_dead 254@
  81@ == 0
goto_if_false @CASINO2_9046
print_now 'PD_33' {time} 4000 {flag} 1
goto @CASINO2_16369

:CASINO2_9046
if and
  not is_char_dead 198@
  not is_char_dead $scplayer
goto_if_false @CASINO2_9109
if and
  is_char_shooting 198@
  259@ == 0
goto_if_false @CASINO2_9109
clear_char_tasks_immediately 198@
task_use_mobile_phone 198@ {start} False
259@ = 1

:CASINO2_9109
if and
  1800 >= $c2_time_left
  not is_char_dead 198@
goto_if_false @CASINO2_9535
if 
  257@ == 1
goto_if_false @CASINO2_9512
gosub @CASINO2_17980
clear_help 
clear_prints 
set_fixed_camera_position 586.0814 {y} 876.6778 {z} -41.6123 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 587.0665 {y} 876.6669 {z} -41.7839 {switchStyle} SwitchType.JumpCut
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7419
request_animation "MISC"

:CASINO2_9232
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_animation_loaded "MISC"
goto_if_false @CASINO2_9266
wait 0
goto @CASINO2_9232

:CASINO2_9266
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS2_BE' {time} 2000 {flag} 1
wait 1000
TIMERA = 0

:CASINO2_9298
if 
  1000 > TIMERA
goto_if_false @CASINO2_9352
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_9345
goto @CASINO2_9490

:CASINO2_9345
goto @CASINO2_9298

:CASINO2_9352
if 
  not is_char_dead 198@
goto_if_false @CASINO2_9429
clear_char_tasks_immediately 198@
set_char_decision_maker 198@ {handleOrTemplate} 53@
set_char_heading 198@ {heading} 270.0
task_play_anim 198@ {animationName} "PLUNGER_01" {animationFile} "MISC" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_9429
TIMERA = 0

:CASINO2_9436
if 
  2000 > TIMERA
goto_if_false @CASINO2_9490
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_9483
goto @CASINO2_9490

:CASINO2_9483
goto @CASINO2_9436

:CASINO2_9490
remove_animation "MISC"
gosub @CASINO2_17015
gosub @CASINO2_18002

:CASINO2_9512
print_now 'PD_19' {time} 4000 {flag} 1
goto @CASINO2_16369

:CASINO2_9535
if and
  is_char_dead 198@
  189@ == 0
goto_if_false @CASINO2_9570
clear_onscreen_timer $c2_time_left
189@ = 1

:CASINO2_9570
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_9610
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_9610
193@ = store_car_char_is_in $scplayer

:CASINO2_9610
if and
  not is_car_dead 193@
  not is_car_dead 187@
  196@ == 1
goto_if_false @CASINO2_9966
if and
  has_car_been_damaged_by_car 187@ {other} 193@
  194@ == 0
goto_if_false @CASINO2_9966
194@ = 1
if 
  not is_car_dead 187@
goto_if_false @CASINO2_9801
if 
  does_object_exist 124@
goto_if_false @CASINO2_9710
set_object_collision 124@ {state} False

:CASINO2_9710
if 
  does_object_exist 112@
goto_if_false @CASINO2_9778
set_object_collision 112@ {state} False
detach_object 112@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 112@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.4

:CASINO2_9778
if 
  does_object_exist 116@
goto_if_false @CASINO2_9801
set_object_collision 116@ {state} False

:CASINO2_9801
break_object 116@ {intensity} 1
delete_object 124@
set_lvar_float_to_lvar_float 100@ = 95@
100@ += 0.3
change_blip_colour 104@ {color} BlipColor.Red
213@ = create_fx_system "EXPLOSION_CRATE" {x} 87@ {y} 91@ {z} 95@ {ignoreBoundingChecks} True
report_mission_audio_event_at_object 116@ {soundId} ScriptSound.SoundExplosion
play_and_kill_fx_system 213@
120@ = 1
36@ = 2
126@ += 1
if and
  not is_char_dead 183@
  not is_car_dead 187@
goto_if_false @CASINO2_9966
if and
  is_char_in_car 183@ {vehicle} 187@
  not is_car_dead 187@
goto_if_false @CASINO2_9966
task_leave_car 183@ {vehicle} 187@
task_kill_char_on_foot 183@ {target} $scplayer

:CASINO2_9966
if and
  not locate_char_any_means_3d $scplayer {x} 429.469 {y} 916.0814 {z} 0.9027 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  227@ == 0
goto_if_false @CASINO2_10146
66@ = create_char PedType.Mission2 {modelId} 71 {x} 416.5302 {y} 862.1686 {z} 6.7328
set_char_heading 66@ {heading} 357.0781
give_weapon_to_char 66@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 66@ {weaponType} WeaponType.Pistol
perform_sequence_task 66@ {sequence} 217@
67@ = create_char PedType.Mission2 {modelId} 71 {x} 423.9201 {y} 861.7891 {z} 5.5413
set_char_heading 67@ {heading} 352.4637
give_weapon_to_char 67@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 67@ {weaponType} WeaponType.Pistol
perform_sequence_task 67@ {sequence} 217@
227@ = 1

:CASINO2_10146
if 
  does_object_exist 112@
goto_if_false @CASINO2_10176
87@, 91@, 95@ = get_object_coordinates 112@

:CASINO2_10176
if and
  is_char_in_model $scplayer {modelId} 530
  188@ <> 2
  120@ <> 1
goto_if_false @CASINO2_10283
print_help_forever 'PD_17'
$car = store_car_char_is_in $scplayer
if 
  does_object_exist 124@
goto_if_false @CASINO2_10244

:CASINO2_10244
if 
  does_object_exist 112@
goto_if_false @CASINO2_10260

:CASINO2_10260
if 
  does_object_exist 116@
goto_if_false @CASINO2_10276

:CASINO2_10276
goto @CASINO2_10351

:CASINO2_10283
if 
  does_object_exist 124@
goto_if_false @CASINO2_10299

:CASINO2_10299
if 
  does_object_exist 112@
goto_if_false @CASINO2_10315

:CASINO2_10315
if 
  does_object_exist 116@
goto_if_false @CASINO2_10331

:CASINO2_10331
if 
  79@ <> 4
goto_if_false @CASINO2_10351
clear_help 

:CASINO2_10351
if or
  is_char_in_model $scplayer {modelId} 406
  is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_10482
35@ = 0

:CASINO2_10385
if 
  does_object_exist 113@(35@,4i)
goto_if_false @CASINO2_10416
set_object_collision 113@(35@,4i) {state} False

:CASINO2_10416
if 
  does_object_exist 121@(35@,4i)
goto_if_false @CASINO2_10447
set_object_collision 121@(35@,4i) {state} False

:CASINO2_10447
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_10385
196@ = 1
goto @CASINO2_10579

:CASINO2_10482
35@ = 0

:CASINO2_10489
if 
  does_object_exist 113@(35@,4i)
goto_if_false @CASINO2_10520
set_object_collision 113@(35@,4i) {state} True

:CASINO2_10520
if 
  does_object_exist 121@(35@,4i)
goto_if_false @CASINO2_10551
set_object_collision 121@(35@,4i) {state} True

:CASINO2_10551
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_10489
196@ = 0

:CASINO2_10579
35@ = 0

:CASINO2_10586
if 
  not is_char_dead 43@(35@,10i)
goto_if_false @CASINO2_11098
231@, 232@, 233@ = get_char_coordinates 43@(35@,10i)
if 
  locate_char_any_means_3d $scplayer {x} 231@ {y} 232@ {z} 233@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO2_11098
if and
  129@ == 0
  256@ > 300
  131@ == 0
goto_if_false @CASINO2_11073
if 
  not is_message_being_displayed 
goto_if_false @CASINO2_11073
249@ = 0

:CASINO2_10719
130@ = generate_random_int_in_range 0 {max} 6
if 
  is_int_lvar_equal_to_int_lvar 130@ == 248@
goto_if_false @CASINO2_10779
249@ += 1
if 
  5 > 249@
goto_if_false @CASINO2_10779
goto @CASINO2_10719

:CASINO2_10779
switch_start 130@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO2_11058 {caseNum1} 0 {caseLabel1} @CASINO2_10842 {caseNum2} 1 {caseLabel2} @CASINO2_10878 {caseNum3} 2 {caseLabel3} @CASINO2_10914 {caseNum4} 3 {caseLabel4} @CASINO2_10950 {caseNum5} 4 {caseLabel5} @CASINO2_10986 {caseNum6} 5 {caseLabel6} @CASINO2_11022 {caseNum7} -1 {caseLabel7} @CASINO2_11058

:CASINO2_10842
set_lvar_text_label 264@s = 'CAS2_AA'
set_lvar_int_to_constant 247@ = 7400
gosub @CASINO2_20270
goto @CASINO2_11058

:CASINO2_10878
set_lvar_text_label 264@s = 'CAS2_AB'
set_lvar_int_to_constant 247@ = 7401
gosub @CASINO2_20270
goto @CASINO2_11058

:CASINO2_10914
set_lvar_text_label 264@s = 'CAS2_AC'
set_lvar_int_to_constant 247@ = 7402
gosub @CASINO2_20270
goto @CASINO2_11058

:CASINO2_10950
set_lvar_text_label 264@s = 'CAS2_AJ'
set_lvar_int_to_constant 247@ = 7409
gosub @CASINO2_20270
goto @CASINO2_11058

:CASINO2_10986
set_lvar_text_label 264@s = 'CAS2_AK'
set_lvar_int_to_constant 247@ = 7410
gosub @CASINO2_20270
goto @CASINO2_11058

:CASINO2_11022
set_lvar_text_label 264@s = 'CAS2_AL'
set_lvar_int_to_constant 247@ = 7411
gosub @CASINO2_20270
goto @CASINO2_11058

:CASINO2_11058
set_lvar_int_to_lvar_int 248@ = 130@
256@ = 0

:CASINO2_11073
if 
  128@ == 0
goto_if_false @CASINO2_11098
128@ = 1

:CASINO2_11098
35@ += 1
  35@ >= 10
goto_if_false @CASINO2_10586
35@ = 0

:CASINO2_11126
if and
  locate_char_any_means_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  128@ == 1
  36@ == 2
goto_if_false @CASINO2_11371
if 
  not is_message_being_displayed 
goto_if_false @CASINO2_11371
130@ = generate_random_int_in_range 0 {max} 3
if 
  130@ == 0
goto_if_false @CASINO2_11263
set_lvar_text_label 264@s = 'CAS2_AD'
set_lvar_int_to_constant 247@ = 7403
gosub @CASINO2_20270

:CASINO2_11263
if 
  130@ == 1
goto_if_false @CASINO2_11310
set_lvar_text_label 264@s = 'CAS2_AE'
set_lvar_int_to_constant 247@ = 7404
gosub @CASINO2_20270

:CASINO2_11310
if 
  130@ == 2
goto_if_false @CASINO2_11357
set_lvar_text_label 264@s = 'CAS2_AF'
set_lvar_int_to_constant 247@ = 7405
gosub @CASINO2_20270

:CASINO2_11357
128@ = 2
TIMERB = 0

:CASINO2_11371
if 
  117@(35@,4i) == 0
goto_if_false @CASINO2_12001
if 
  does_object_exist 112@
goto_if_false @CASINO2_11423
87@, 91@, 95@ = get_object_coordinates 112@

:CASINO2_11423
if and
  locate_char_in_car_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  117@(35@,4i) == 0
goto_if_false @CASINO2_11890
if or
  is_char_in_model $scplayer {modelId} 406
  is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_11890
if and
  35@ == 3
  not is_car_dead 187@
  not is_char_dead 183@
goto_if_false @CASINO2_11570
if 
  is_char_in_car 183@ {vehicle} 187@
goto_if_false @CASINO2_11570
task_leave_car 183@ {vehicle} 187@

:CASINO2_11570
if 
  35@ == 0
goto_if_false @CASINO2_11656
if and
  not is_char_dead 51@
  not is_char_dead $scplayer
goto_if_false @CASINO2_11622
clear_char_tasks_immediately 51@
perform_sequence_task 51@ {sequence} 206@

:CASINO2_11622
if and
  not is_char_dead 52@
  not is_char_dead $scplayer
goto_if_false @CASINO2_11656
clear_char_tasks_immediately 52@
perform_sequence_task 52@ {sequence} 206@

:CASINO2_11656
if 
  225@ == 0
goto_if_false @CASINO2_11697
print_now 'PD_29' {time} 4000 {flag} 1
225@ = 1

:CASINO2_11697
shake_pad PadId.Pad1 {time} 300 {intensity} 200
break_object 113@(35@,4i) {intensity} 1
set_lvar_float_to_lvar_float 100@ = 92@(35@,4f)
100@ += 0.3
make_object_targettable 113@(35@,4i) {state} False
set_object_coordinates 109@(35@,4i) {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 100@
change_blip_colour 101@(35@,4i) {color} BlipColor.Red
create_fx_system "EXPLOSION_CRATE" {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {ignoreBoundingChecks} True {var_handle} 37@(35@,4i)
play_and_kill_fx_system 37@(35@,4i)
report_mission_audio_event_at_object 113@(35@,4i) {soundId} ScriptSound.SoundCarSmashCar
117@(35@,4i) = 1
36@ = 2
126@ += 1
gosub @CASINO2_16275

:CASINO2_11890
if and
  locate_char_any_means_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  36@ == 0
goto_if_false @CASINO2_12001
if and
  not is_char_in_model $scplayer {modelId} 406
  not is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_12001
print_now 'PD_02' {time} 4000 {flag} 1
36@ = 1

:CASINO2_12001
if and
  105@(35@,4i) == 0
  117@(35@,4i) == 1
goto_if_false @CASINO2_12232
set_lvar_float_to_lvar_float 100@ = 92@(35@,4f)
100@ += 0.3
if 
  locate_char_any_means_3d $scplayer {x} 84@(35@,4f) {y} 88@(35@,4f) {z} 92@(35@,4f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @CASINO2_12232
80@ = 0
if or
  is_char_in_model $scplayer {modelId} 406
  is_char_in_model $scplayer {modelId} 486
goto_if_false @CASINO2_12151
80@ = 1

:CASINO2_12151
if 
  80@ == 0
goto_if_false @CASINO2_12232
remove_blip 101@(35@,4i)
105@(35@,4i) = 1
set_object_collision 109@(35@,4i) {state} False
delete_object 109@(35@,4i)
shake_pad PadId.Pad1 {time} 200 {intensity} 100
gosub @CASINO2_16008
126@ = 5

:CASINO2_12232
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_11126
if 
  126@ == 4
goto_if_false @CASINO2_12330
if 
  not is_char_dead 50@
goto_if_false @CASINO2_12300
clear_char_tasks_immediately 50@
task_kill_char_on_foot 50@ {target} $scplayer

:CASINO2_12300
print_now 'PD_12' {time} 4000 {flag} 1
81@ = 1
126@ = 5

:CASINO2_12330
if and
  79@ == 3
  235@ == 0
goto_if_false @CASINO2_13897
if 
  not is_car_dead 82@
goto_if_false @CASINO2_12457
if and
  is_char_in_car $scplayer {vehicle} 82@
  203@ == 0
goto_if_false @CASINO2_12457
change_blip_display 132@ {display} BlipDisplay.BlipOnly
174@ = create_checkpoint CheckpointType.TubeArrow {x} 138@ {y} 144@ {z} 150@ {pointX} 156@ {pointY} 162@ {pointZ} 168@ {radius} 4.0
print_now 'PD_23' {time} 4000 {flag} 1
203@ = 1

:CASINO2_12457
if 
  not is_car_dead 82@
goto_if_false @CASINO2_12789
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @CASINO2_12524
if 
  255@ == 0
goto_if_false @CASINO2_12517
255@ = 1

:CASINO2_12517
goto @CASINO2_12565

:CASINO2_12524
if 
  255@ == 1
goto_if_false @CASINO2_12565
print_now 'PD_X' {time} 4000 {flag} 1
255@ = 0

:CASINO2_12565
if 
  is_char_in_car $scplayer {vehicle} 82@
goto_if_false @CASINO2_12719
if 
  216@ == 0
goto_if_false @CASINO2_12712
if 
  6 > $c2_cp
goto_if_false @CASINO2_12698
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.BlipOnly
delete_checkpoint 174@($c2_cp,6i)
create_checkpoint CheckpointType.TubeArrow {x} 138@($c2_cp,6f) {y} 144@($c2_cp,6f) {z} 150@($c2_cp,6f) {pointX} 156@($c2_cp,6f) {pointY} 162@($c2_cp,6f) {pointZ} 168@($c2_cp,6f) {radius} 4.0 {var_handle} 174@($c2_cp,6i)

:CASINO2_12698
change_blip_display 192@ {display} BlipDisplay.Neither
216@ = 1

:CASINO2_12712
goto @CASINO2_12789

:CASINO2_12719
if 
  216@ == 1
goto_if_false @CASINO2_12789
if 
  6 > $c2_cp
goto_if_false @CASINO2_12775
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_cp,6i)

:CASINO2_12775
change_blip_display 192@ {display} BlipDisplay.Both
216@ = 0

:CASINO2_12789
if 
  216@ == 1
goto_if_false @CASINO2_13534
if and
  -4.0 > 220@
  $c2_cp > 4
goto_if_false @CASINO2_12924
if 
  6 > $c2_cp
goto_if_false @CASINO2_12873
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_cp,6i)

:CASINO2_12873
change_blip_display 136@ {display} BlipDisplay.BlipOnly
178@ = create_checkpoint CheckpointType.TubeArrow {x} 142@ {y} 148@ {z} 154@ {pointX} 160@ {pointY} 166@ {pointZ} 172@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_cp = 4

:CASINO2_12924
if and
  -16.0 > 220@
  $c2_cp > 3
goto_if_false @CASINO2_13041
if 
  6 > $c2_cp
goto_if_false @CASINO2_12990
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_cp,6i)

:CASINO2_12990
change_blip_display 135@ {display} BlipDisplay.BlipOnly
177@ = create_checkpoint CheckpointType.TubeArrow {x} 141@ {y} 147@ {z} 153@ {pointX} 159@ {pointY} 165@ {pointZ} 171@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_cp = 3

:CASINO2_13041
if and
  -30.0 > 220@
  $c2_cp > 2
goto_if_false @CASINO2_13158
if 
  6 > $c2_cp
goto_if_false @CASINO2_13107
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_cp,6i)

:CASINO2_13107
change_blip_display 134@ {display} BlipDisplay.BlipOnly
176@ = create_checkpoint CheckpointType.TubeArrow {x} 140@ {y} 146@ {z} 152@ {pointX} 158@ {pointY} 164@ {pointZ} 170@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_cp = 2

:CASINO2_13158
if and
  -40.0 > 220@
  $c2_cp <> 0
goto_if_false @CASINO2_13275
if 
  6 > $c2_cp
goto_if_false @CASINO2_13224
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_cp,6i)

:CASINO2_13224
change_blip_display 132@ {display} BlipDisplay.BlipOnly
174@ = create_checkpoint CheckpointType.TubeArrow {x} 138@ {y} 144@ {z} 150@ {pointX} 156@ {pointY} 162@ {pointZ} 168@ {radius} 4.0
change_blip_display 204@ {display} BlipDisplay.Neither
$c2_cp = 0

:CASINO2_13275
if 
  6 > $c2_cp
goto_if_false @CASINO2_13534
if and
  locate_char_any_means_3d $scplayer {x} 138@($c2_cp,6f) {y} 144@($c2_cp,6f) {z} 150@($c2_cp,6f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  216@ == 1
goto_if_false @CASINO2_13534
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_cp,6i)
$c2_cp += 1
if 
  6 > $c2_cp
goto_if_false @CASINO2_13468
create_checkpoint CheckpointType.TubeArrow {x} 138@($c2_cp,6f) {y} 144@($c2_cp,6f) {z} 150@($c2_cp,6f) {pointX} 156@($c2_cp,6f) {pointY} 162@($c2_cp,6f) {pointZ} 168@($c2_cp,6f) {radius} 4.0 {var_handle} 174@($c2_cp,6i)
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.BlipOnly

:CASINO2_13468
if 
  $c2_cp == 6
goto_if_false @CASINO2_13534
change_blip_display 204@ {display} BlipDisplay.Both
if 
  226@ == 0
goto_if_false @CASINO2_13534
print_now 'PD_28' {time} 7000 {flag} 1
226@ = 1

:CASINO2_13534
if and
  is_car_dead 82@
  235@ == 0
goto_if_false @CASINO2_13814
mark_car_as_no_longer_needed 82@
if 
  does_blip_exist 192@
goto_if_false @CASINO2_13583
remove_blip 192@

:CASINO2_13583
if 
  260@ == 0
goto_if_false @CASINO2_13694
clear_area 639.3412 {y} 850.4575 {z} -43.9534 {radius} 15.0 {clearParticles} True
82@ = create_car 468 {x} 639.3412 {y} 850.4575 {z} -43.9534
set_can_burst_car_tyres 82@ {state} False
set_car_heading 82@ {heading} 90.0
192@ = add_blip_for_car 82@
set_blip_as_friendly 192@ {state} True
260@ = 1
goto @CASINO2_13780

:CASINO2_13694
clear_area 583.0051 {y} 881.9482 {z} -45.0648 {radius} 15.0 {clearParticles} True
82@ = create_car 468 {x} 583.0051 {y} 881.9482 {z} -45.0648
set_can_burst_car_tyres 82@ {state} False
set_car_heading 82@ {heading} 93.6785
192@ = add_blip_for_car 82@
set_blip_as_friendly 192@ {state} True
260@ = 0

:CASINO2_13780
if 
  258@ == 0
goto_if_false @CASINO2_13814
print_now 'PD_34' {time} 4000 {flag} 1

:CASINO2_13814
if and
  not is_car_dead 82@
  not is_char_dead $scplayer
goto_if_false @CASINO2_13897
$x, $y, $z = get_char_coordinates $scplayer
$x, $y, 266@ = get_car_coordinates 82@
266@ -= 6.0
if 
  is_float_lvar_greater_than_float_var 266@ > $z
goto_if_false @CASINO2_13897
explode_car 82@

:CASINO2_13897
if 
  79@ > 0
goto_if_false @CASINO2_15548
if and
  TIMERA > 3000
  79@ == 1
goto_if_false @CASINO2_13964
print_now 'PD_22' {time} 4000 {flag} 1
79@ = 2

:CASINO2_13964
if and
  TIMERA > 7000
  79@ == 2
goto_if_false @CASINO2_14004
gosub @CASINO2_5835
79@ = 3

:CASINO2_14004
if 
  79@ == 3
goto_if_false @CASINO2_14100
if 
  is_car_dead 223@
goto_if_false @CASINO2_14061
print_now 'PD_30' {time} 4000 {flag} 1
goto @CASINO2_16369

:CASINO2_14061
if 
  is_char_dead 224@
goto_if_false @CASINO2_14100
print_now 'PD_31' {time} 4000 {flag} 1
goto @CASINO2_16369

:CASINO2_14100
if 
  79@ <> 4
goto_if_false @CASINO2_15548
if 
  locate_char_any_means_3d $scplayer {x} 1030.157 {y} 744.3469 {z} 9.7922 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO2_15548
set_player_control $player1 {state} False
if 
  does_blip_exist 204@
goto_if_false @CASINO2_14194
remove_blip 204@

:CASINO2_14194
35@ = 0

:CASINO2_14201
if 
  does_blip_exist 132@(35@,6i)
goto_if_false @CASINO2_14230
remove_blip 132@(35@,6i)

:CASINO2_14230
35@ += 1
  35@ >= 5
goto_if_false @CASINO2_14201
clear_prints 
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_15523
gosub @CASINO2_18028
clear_area 1023.937 {y} 738.5938 {z} 9.808 {radius} 30.0 {clearParticles} True
if 
  not is_car_dead 223@
goto_if_false @CASINO2_14323
freeze_car_position 223@ {state} False

:CASINO2_14323
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_14440
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_14420
269@ = store_car_char_is_in $scplayer
set_car_coordinates 269@ {x} 1025.296 {y} 746.0016 {z} 9.8302
set_car_heading 269@ {heading} 300.0064
warp_char_from_car_to_coord $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989
goto @CASINO2_14440

:CASINO2_14420
set_char_coordinates $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989

:CASINO2_14440
if 
  not is_char_dead 224@
goto_if_false @CASINO2_14491
clear_char_tasks_immediately 224@
set_char_coordinates 224@ {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493

:CASINO2_14491
set_char_heading $scplayer {heading} 232.6414
228@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.1799 {z} 9.8005
set_object_heading 228@ {heading} 90.0
set_object_collision 228@ {state} False
229@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 229@ {state} False
230@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 230@ {state} False
attach_object_to_object 229@ {handle} 228@ {xOffset} 0.2 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 40.0
attach_object_to_object 230@ {handle} 228@ {xOffset} 0.3 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 45.0 {zRotation} 60.0
if 
  not is_char_dead 224@
goto_if_false @CASINO2_14701
task_complex_pickup_object 224@ {object} 228@

:CASINO2_14701
gosub @CASINO2_17980
load_scene 1028.9351 {y} 741.1799 {z} 9.8005
set_fixed_camera_position 1026.36 {y} 737.9733 {z} 11.3745 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1026.991 {y} 738.7281 {z} 11.1933 {switchStyle} SwitchType.JumpCut
gosub @CASINO2_18063
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_14835
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_14835
print_now 'CAS2_CA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7420

:CASINO2_14862
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASINO2_14888
wait 0
goto @CASINO2_14862

:CASINO2_14888
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:CASINO2_14899
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASINO2_14925
wait 0
goto @CASINO2_14899

:CASINO2_14925
print_now 'CAS2_CB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7421

:CASINO2_14952
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASINO2_14978
wait 0
goto @CASINO2_14952

:CASINO2_14978
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:CASINO2_14989
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASINO2_15015
wait 0
goto @CASINO2_14989

:CASINO2_15015
TIMERA = 0

:CASINO2_15022
if 
  2000 > TIMERA
goto_if_false @CASINO2_15076
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_15069
goto @CASINO2_15390

:CASINO2_15069
goto @CASINO2_15022

:CASINO2_15076
gosub @CASINO2_18028
if 
  not is_car_dead 223@
goto_if_false @CASINO2_15104
delete_car 223@

:CASINO2_15104
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
set_fixed_camera_position 1020.499 {y} 740.7717 {z} 14.7072 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 223@
goto_if_false @CASINO2_15184
point_camera_at_car 223@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:CASINO2_15184
if or
  not is_char_dead 224@
  not is_car_dead 223@
goto_if_false @CASINO2_15262
delete_object 229@
delete_object 230@
delete_object 228@
warp_char_into_car 224@ {vehicle} 223@
task_car_drive_to_coord 224@ {vehicle} 223@ {x} 1052.568 {y} 754.0004 {z} 9.8094 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:CASINO2_15262
TIMERA = 0

:CASINO2_15269
if 
  10 > TIMERA
goto_if_false @CASINO2_15322
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_15315
goto @CASINO2_15390

:CASINO2_15315
goto @CASINO2_15269

:CASINO2_15322
gosub @CASINO2_18063
TIMERA = 0

:CASINO2_15336
if 
  3000 > TIMERA
goto_if_false @CASINO2_15390
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_15383
goto @CASINO2_15390

:CASINO2_15383
goto @CASINO2_15336

:CASINO2_15390
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_15411
clear_char_tasks_immediately $scplayer

:CASINO2_15411
if 
  does_object_exist 228@
goto_if_false @CASINO2_15432
delete_object 228@

:CASINO2_15432
if 
  does_object_exist 229@
goto_if_false @CASINO2_15453
delete_object 229@

:CASINO2_15453
if 
  does_object_exist 230@
goto_if_false @CASINO2_15474
delete_object 230@

:CASINO2_15474
if 
  not is_char_dead 224@
goto_if_false @CASINO2_15495
delete_char 224@

:CASINO2_15495
if 
  not is_car_dead 223@
goto_if_false @CASINO2_15516
delete_car 223@

:CASINO2_15516
gosub @CASINO2_18002

:CASINO2_15523
print_help 'PD_32'
79@ = 4
TIMERA = 0

:CASINO2_15548
if and
  79@ == 4
  TIMERA > 4000
goto_if_false @CASINO2_15581
goto @CASINO2_16387

:CASINO2_15581
if 
  locate_char_any_means_3d $scplayer {x} 454.5292 {y} 804.0931 {z} 5.3702 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO2_15636
258@ = 1

:CASINO2_15636
if 
  locate_char_any_means_3d $scplayer {x} 447.3409 {y} 811.1259 {z} 5.4896 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO2_15691
258@ = 0

:CASINO2_15691
if 
  not locate_char_any_means_3d $scplayer {x} 562.4489 {y} 871.3499 {z} -17.0245 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 250.0 {drawSphere} False
goto_if_false @CASINO2_15753
257@ = 0
goto @CASINO2_15760

:CASINO2_15753
257@ = 1

:CASINO2_15760
if and
  not locate_char_any_means_3d $scplayer {x} 562.4489 {y} 871.3499 {z} -17.0245 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 250.0 {drawSphere} False
  79@ == 3
  6 > $c2_cp
goto_if_false @CASINO2_15933
if 
  235@ == 0
goto_if_false @CASINO2_15933
change_blip_display 132@($c2_cp,6i) {display} BlipDisplay.Neither
change_blip_display 192@($c2_cp,1i) {display} BlipDisplay.Neither
delete_checkpoint 174@($c2_cp,6i)
$c2_cp = 6
change_blip_display 204@ {display} BlipDisplay.Both
if 
  226@ == 0
goto_if_false @CASINO2_15926
print_now 'PD_28' {time} 4000 {flag} 1
226@ = 1

:CASINO2_15926
235@ = 1

:CASINO2_15933
goto @CASINO2_8522

:CASINO2_15940
goto @CASINO2_16369

:CASINO2_15947
if 
  42@ == 0
goto_if_false @CASINO2_15999
if 
  41@ == 1
goto_if_false @CASINO2_15999
print 'CAS4_AD' {time} 4000 {flag} 1

:CASINO2_15999
42@ = 1
return 

:CASINO2_16008
if 
  34@ == 0
goto_if_false @CASINO2_16073
gosub @CASINO2_15947
print 'PD_05' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16073
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16073
if 
  34@ == 1
goto_if_false @CASINO2_16131
print_now 'PD_06' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16131
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16131
if 
  34@ == 2
goto_if_false @CASINO2_16189
print_now 'PD_07' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16189
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16189
if 
  34@ == 3
goto_if_false @CASINO2_16266
print_now 'PD_08' {time} 4000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_16247
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPickupStandard

:CASINO2_16247
TIMERA = 0
79@ = 1
clear_onscreen_timer $c2_time_left

:CASINO2_16266
34@ += 1
return 

:CASINO2_16275
if 
  54@ == 0
goto_if_false @CASINO2_16301
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1

:CASINO2_16301
return 
if 
  41@ == 0
goto_if_false @CASINO2_16328
41@ = 1

:CASINO2_16328
return 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'PD_09' {time} 4000 {flag} 1
wait 4000
return 

:CASINO2_16369
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO2_16387
start_new_script @HEIST 
start_new_script @QUARRYS 
remove_blip $Theheist_contact_blip
$Theheist_contact_blip = add_sprite_blip_for_contact_point $TheheistX {y} $TheheistY {z} $TheheistZ {sprite} $Theheist_blip_icon
set_blip_entry_exit $Theheist_contact_blip {x} 2024.39 {y} 1008.62 {radius} 20.0
$flag_casino_mission_counter += 1
register_mission_passed 'CASEEN2'
print_with_number_big 'M_PASSS' {num} 7000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 7000
award_player_mission_respect 15
player_made_progress 1
play_mission_passed_tune 1
clear_wanted_level $player1
release_weather 
force_weather WeatherType.SunnyLa
remove_blip $quarry_contact_blip
$quarry_contact_blip = add_short_range_sprite_blip_for_contact_point $quarryX {y} $quarryY {z} $quarryZ {sprite} RadarSprite.Bulldozer
return 

:CASINO2_16536
if 
  $player_fall_state > 0
goto_if_false @CASINO2_16561
$player_fall_state = 6

:CASINO2_16561
$disable_all_cranes = 0
clear_onscreen_timer $c2_time_left
35@ = 0

:CASINO2_16580
if 
  does_blip_exist 101@(35@,4i)
goto_if_false @CASINO2_16609
remove_blip 101@(35@,4i)

:CASINO2_16609
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_16580
35@ = 0

:CASINO2_16637
if 
  does_blip_exist 132@(35@,6i)
goto_if_false @CASINO2_16666
remove_blip 132@(35@,6i)

:CASINO2_16666
35@ += 1
  35@ >= 5
goto_if_false @CASINO2_16637
if 
  does_blip_exist 204@
goto_if_false @CASINO2_16708
remove_blip 204@

:CASINO2_16708
if 
  does_blip_exist 192@
goto_if_false @CASINO2_16729
remove_blip 192@

:CASINO2_16729
if 
  does_blip_exist 186@
goto_if_false @CASINO2_16750
remove_blip 186@

:CASINO2_16750
if 
  not is_car_dead 73@
goto_if_false @CASINO2_16771
delete_car 73@

:CASINO2_16771
if 
  not is_car_dead 74@
goto_if_false @CASINO2_16792
delete_car 74@

:CASINO2_16792
if 
  not is_car_dead 75@
goto_if_false @CASINO2_16813
delete_car 75@

:CASINO2_16813
if 
  does_object_exist 60@
goto_if_false @CASINO2_16839
set_object_heading 60@ {heading} 0.0

:CASINO2_16839
if 
  does_object_exist 61@
goto_if_false @CASINO2_16865
set_object_heading 61@ {heading} 15.0

:CASINO2_16865
if 
  does_object_exist 77@
goto_if_false @CASINO2_16886
delete_object 77@

:CASINO2_16886
if 
  does_object_exist 76@
goto_if_false @CASINO2_16907
delete_object 76@

:CASINO2_16907
mark_model_as_no_longer_needed 260
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 153
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 337
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 410
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 406
remove_animation "CARRY"
remove_animation "MISC"
$timer_mobile_start = get_game_timer 
clear_wanted_level $player1
dont_suppress_car_model 406
release_weather 
mission_has_finished 
$onmission = 0
return 

:CASINO2_17015
35@ = 0

:CASINO2_17022
if 
  does_object_exist 109@(35@,4i)
goto_if_false @CASINO2_17817
switch_start 35@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO2_17648 {caseNum1} 0 {caseLabel1} @CASINO2_17105 {caseNum2} 1 {caseLabel2} @CASINO2_17205 {caseNum3} 2 {caseLabel3} @CASINO2_17263 {caseNum4} 3 {caseLabel4} @CASINO2_17321 {caseNum5} -1 {caseLabel5} @CASINO2_17648 {caseNum6} -1 {caseLabel6} @CASINO2_17648 {caseNum7} -1 {caseLabel7} @CASINO2_17648

:CASINO2_17105
if 
  not is_char_dead 51@
goto_if_false @CASINO2_17126
delete_char 51@

:CASINO2_17126
if 
  not is_char_dead 52@
goto_if_false @CASINO2_17147
delete_char 52@

:CASINO2_17147
set_fixed_camera_position 656.9689 {y} 914.2382 {z} -38.7741 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 657.7072 {y} 914.8211 {z} -39.1131 {switchStyle} SwitchType.JumpCut
goto @CASINO2_17648

:CASINO2_17205
set_fixed_camera_position 578.0302 {y} 926.3607 {z} -39.6861 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 578.5041 {y} 927.1686 {z} -40.0363 {switchStyle} SwitchType.JumpCut
goto @CASINO2_17648

:CASINO2_17263
set_fixed_camera_position 543.1476 {y} 853.9489 {z} -38.0164 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 543.9039 {y} 853.3993 {z} -38.3712 {switchStyle} SwitchType.JumpCut
goto @CASINO2_17648

:CASINO2_17321
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_17582
if and
  not is_car_dead 187@
  188@ == 0
  not is_char_in_model $scplayer {modelId} 530
goto_if_false @CASINO2_17582
if 
  does_object_exist 124@
goto_if_false @CASINO2_17429
detach_object 124@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 124@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.6

:CASINO2_17429
if 
  does_object_exist 112@
goto_if_false @CASINO2_17490
detach_object 112@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 112@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.6

:CASINO2_17490
if 
  does_object_exist 116@
goto_if_false @CASINO2_17551
detach_object 116@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
place_object_relative_to_car 116@ {vehicle} 187@ {xOffset} 0.0 {yOffset} 1.8 {zOffset} -0.6

:CASINO2_17551
if 
  not is_char_dead 183@
goto_if_false @CASINO2_17577
clear_char_tasks_immediately 183@
delete_char 183@

:CASINO2_17577
delete_car 187@

:CASINO2_17582
$x, $y, $z = get_object_coordinates 112@
set_fixed_camera_position 635.8651 {y} 827.8486 {z} -34.5451 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
goto @CASINO2_17648

:CASINO2_17648
if 
  does_object_exist 121@(35@,4i)
goto_if_false @CASINO2_17679
freeze_object_position 121@(35@,4i) {state} True

:CASINO2_17679
$x, $y, $z = get_object_coordinates 109@(35@,4i)
add_explosion_variable_shake $x {y} $y {z} $z {type} 11 {shake} 5.0
create_fx_system "EXPLOSION_SMALL" {x} $x {y} $y {z} $z {ignoreBoundingChecks} True {var_handle} 199@(35@,4i)
play_and_kill_fx_system 199@(35@,4i)
delete_object 109@(35@,4i)
if 
  117@(35@,4i) == 0
goto_if_false @CASINO2_17803
break_object 113@(35@,4i) {intensity} 1

:CASINO2_17803
wait 2000
kill_fx_system 199@(35@,4i)

:CASINO2_17817
35@ += 1
  35@ >= 4
goto_if_false @CASINO2_17022
return 

:CASINO2_17840
if 
  not is_char_dead 51@
goto_if_false @CASINO2_17909
if 
  locate_char_any_means_3d 51@ {x} 718.7523 {y} 918.5203 {z} -19.886 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO2_17909
remove_char_elegantly 51@

:CASINO2_17909
if 
  not is_char_dead 52@
goto_if_false @CASINO2_17978
if 
  locate_char_any_means_3d 52@ {x} 718.7523 {y} 918.5203 {z} -19.886 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO2_17978
remove_char_elegantly 52@

:CASINO2_17978
return 

:CASINO2_17980
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:CASINO2_18002
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:CASINO2_18028
do_fade 500 {direction} Fade.Out

:CASINO2_18035
if 
  get_fading_status 
goto_if_false @CASINO2_18059
wait 0
goto @CASINO2_18035

:CASINO2_18059
clear_prints 
return 

:CASINO2_18063
do_fade 500 {direction} Fade.In

:CASINO2_18070
if 
  get_fading_status 
goto_if_false @CASINO2_18094
wait 0
goto @CASINO2_18070

:CASINO2_18094
return 

:CASINO2_18096
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @CASINO2_18241
if 
  not is_car_dead 187@
goto_if_false @CASINO2_18241
attach_object_to_car 124@ {handle} 187@ {xOffset} -0.4 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 112@ {handle} 187@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 116@ {handle} 187@ {xOffset} -0.4 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0

:CASINO2_18241
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @CASINO2_18520
request_model 117
request_model 410
request_animation "CARRY"

:CASINO2_18274
if or
  not has_model_loaded 117
  not has_model_loaded 410
  not has_animation_loaded "CARRY"
goto_if_false @CASINO2_18314
wait 0
goto @CASINO2_18274

:CASINO2_18314
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
lock_car_doors 223@ {lockStatus} CarLock.Locked
freeze_car_position 223@ {state} True
pop_car_boot 223@
set_car_heading 223@ {heading} 292.6477
224@ = create_char PedType.CivMale {modelId} 117 {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493
set_char_suffers_critical_hits 224@ {state} False
set_char_never_targetted 224@ {state} True
set_char_only_damaged_by_player 224@ {state} True
set_char_decision_maker 224@ {handleOrTemplate} 127@
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_18520
set_char_coordinates $scplayer {x} 1010.221 {y} 736.1201 {z} 9.8047
set_char_heading $scplayer {heading} 275.6392
79@ = 3
$c2_cp = 6
235@ = 1

:CASINO2_18520
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @CASINO2_18665
if 
  not is_car_dead 187@
goto_if_false @CASINO2_18665
attach_object_to_car 124@ {handle} 187@ {xOffset} -0.6 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 112@ {handle} 187@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 116@ {handle} 187@ {xOffset} -0.6 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0

:CASINO2_18665
if 
is_ps2_keyboard_key_just_pressed 69
goto_if_false @CASINO2_18810
if 
  not is_car_dead 187@
goto_if_false @CASINO2_18810
attach_object_to_car 124@ {handle} 187@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 112@ {handle} 187@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_car 116@ {handle} 187@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0

:CASINO2_18810
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @CASINO2_18833
$c2_time_left = 25000

:CASINO2_18833
if 
is_ps2_keyboard_key_just_pressed 89
goto_if_false @CASINO2_18898
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_18898
clear_prints 
set_char_coordinates $scplayer {x} 820.8088 {y} 847.8527 {z} 10.0376
set_char_heading $scplayer {heading} 114.6715
set_camera_behind_player 

:CASINO2_18898
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @CASINO2_18985
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_18985
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_18985
270@ = store_car_char_is_in $scplayer
set_car_coordinates 270@ {x} 495.8263 {y} 820.5667 {z} -9.8729
set_car_heading 270@ {heading} 30.4329
set_camera_behind_player 

:CASINO2_18985
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @CASINO2_19068
75@ = create_car 428 {x} 428.4801 {y} 840.5771 {z} 5.5835
set_car_heading 75@ {heading} 28.5847
mark_model_as_no_longer_needed 428
66@ = create_char_inside_car 75@ {pedType} PedType.Mission2 {modelId} 71
67@ = create_char_as_passenger 75@ {pedType} PedType.Mission2 {modelId} 71 {seat} SeatId.BikeRear
mark_model_as_no_longer_needed 71

:CASINO2_19068
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @CASINO2_19153
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_19133
clear_prints 
set_char_coordinates $scplayer {x} 658.134 {y} 947.6506 {z} -35.8939
set_char_heading $scplayer {heading} 194.3468
set_camera_behind_player 

:CASINO2_19133
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete

:CASINO2_19153
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @CASINO2_20268
request_model 117
request_model 410

:CASINO2_19177
if or
  not has_model_loaded 117
  not has_model_loaded 410
goto_if_false @CASINO2_19208
wait 0
goto @CASINO2_19177

:CASINO2_19208
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
lock_car_doors 223@ {lockStatus} CarLock.Locked
pop_car_boot 223@
set_car_heading 223@ {heading} 292.6477
224@ = create_char PedType.CivMale {modelId} 117 {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493
gosub @CASINO2_18028
clear_area 1032.678 {y} 741.7072 {z} 9.8044 {radius} 10.0 {clearParticles} True
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO2_19385
warp_char_from_car_to_coord $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989
goto @CASINO2_19405

:CASINO2_19385
set_char_coordinates $scplayer {x} 1028.168 {y} 741.3518 {z} 9.7989

:CASINO2_19405
if 
  not is_char_dead 224@
goto_if_false @CASINO2_19451
set_char_coordinates 224@ {x} 1029.173 {y} 740.8435 {z} 9.8018
set_char_heading 224@ {heading} 63.6493

:CASINO2_19451
set_char_heading $scplayer {heading} 232.6414
request_animation "CARRY"

:CASINO2_19470
if 
  not has_animation_loaded "CARRY"
goto_if_false @CASINO2_19501
wait 0
goto @CASINO2_19470

:CASINO2_19501
228@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.1799 {z} 9.8005
set_object_heading 228@ {heading} 90.0
set_object_collision 228@ {state} False
229@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 229@ {state} False
230@ = create_object #DYNAMITE {x} 1028.9351 {y} 741.0 {z} 9.8005
set_object_collision 230@ {state} False
attach_object_to_object 229@ {handle} 228@ {xOffset} 0.2 {yOffset} 0.0 {zOffset} -0.2 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 40.0
attach_object_to_object 230@ {handle} 228@ {xOffset} 0.3 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 45.0 {zRotation} 60.0
clear_char_tasks_immediately $scplayer
if 
  not is_char_dead 224@
goto_if_false @CASINO2_19706
task_complex_pickup_object 224@ {object} 228@

:CASINO2_19706
gosub @CASINO2_17980
set_fixed_camera_position 1026.36 {y} 737.9733 {z} 11.3745 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1026.991 {y} 738.7281 {z} 11.1933 {switchStyle} SwitchType.JumpCut
gosub @CASINO2_18063
if 
  not is_char_dead $scplayer
goto_if_false @CASINO2_19823
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO2_19823
print_now 'PD_32' {time} 4000 {flag} 1
wait 1000
TIMERA = 0

:CASINO2_19851
if 
  3000 > TIMERA
goto_if_false @CASINO2_19905
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_19898
goto @CASINO2_20219

:CASINO2_19898
goto @CASINO2_19851

:CASINO2_19905
gosub @CASINO2_18028
if 
  not is_car_dead 223@
goto_if_false @CASINO2_19933
delete_car 223@

:CASINO2_19933
223@ = create_car 410 {x} 1032.678 {y} 741.7072 {z} 9.8044
set_fixed_camera_position 1020.499 {y} 740.7717 {z} 14.7072 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead 223@
goto_if_false @CASINO2_20013
point_camera_at_car 223@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:CASINO2_20013
if or
  not is_char_dead 224@
  not is_car_dead 223@
goto_if_false @CASINO2_20091
delete_object 228@
delete_object 229@
delete_object 230@
warp_char_into_car 224@ {vehicle} 223@
task_car_drive_to_coord 224@ {vehicle} 223@ {x} 1065.901 {y} 775.0016 {z} 9.8227 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:CASINO2_20091
TIMERA = 0

:CASINO2_20098
if 
  10 > TIMERA
goto_if_false @CASINO2_20151
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_20144
goto @CASINO2_15390

:CASINO2_20144
goto @CASINO2_20098

:CASINO2_20151
gosub @CASINO2_18063
TIMERA = 0

:CASINO2_20165
if 
  2000 > TIMERA
goto_if_false @CASINO2_20219
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO2_20212
goto @CASINO2_15390

:CASINO2_20212
goto @CASINO2_20165

:CASINO2_20219
if 
  not is_char_dead 224@
goto_if_false @CASINO2_20240
delete_char 224@

:CASINO2_20240
if 
  not is_car_dead 223@
goto_if_false @CASINO2_20261
delete_car 223@

:CASINO2_20261
gosub @CASINO2_18002

:CASINO2_20268
return 

:CASINO2_20270
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 247@
246@ = 0
return 

:CASINO2_20290
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  246@ == 0
goto_if_false @CASINO2_20358
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_lvar_text_label_equal_to_text_label 264@s == 'DUMMY'
goto_if_false @CASINO2_20351
print_now 264@s {time} 10000 {flag} 1

:CASINO2_20351
246@ = 1

:CASINO2_20358
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  246@ == 1
goto_if_false @CASINO2_20396
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 264@s
246@ = 2

:CASINO2_20396
return 
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 261@
262@ = 0
return 

:CASINO2_20418
if and
  has_mission_audio_loaded MissionAudioSlot.Slot3
  262@ == 0
goto_if_false @CASINO2_20470
set_mission_audio_position MissionAudioSlot.Slot3 {x} 591.091 {y} 877.4084 {z} -43.4973
play_mission_audio MissionAudioSlot.Slot3
262@ = 1

:CASINO2_20470
if and
  has_mission_audio_finished MissionAudioSlot.Slot3
  262@ == 1
goto_if_false @CASINO2_20503
clear_mission_audio MissionAudioSlot.Slot3
262@ = 2

:CASINO2_20503
return 

//-------------Mission 86---------------
// Originally: You've Had Your Chips

:CASINO3
script_name 'CASINO3'
gosub @CASINO3_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO3_38
gosub @CASINO3_14111

:CASINO3_38
gosub @CASINO3_14221
terminate_this_script 

:CASINO3_47
register_mission_given 
load_mission_text 'CASINO3'
$onmission = 1
wait 0
set_area_visible 11
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_char_coordinates $scplayer {x} 2027.391 {y} 1008.087 {z} 9.8203
set_char_heading $scplayer {heading} 297.1696
load_cutscene 'CAS_3'

:CASINO3_136
if 
  not has_cutscene_loaded 
goto_if_false @CASINO3_160
wait 0
goto @CASINO3_136

:CASINO3_160
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO3_169
if 
  not has_cutscene_finished 
goto_if_false @CASINO3_193
wait 0
goto @CASINO3_169

:CASINO3_193
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO3_206
if 
  get_fading_status 
goto_if_false @CASINO3_230
wait 0
goto @CASINO3_206

:CASINO3_230
clear_cutscene 
set_area_visible 0
73@ = load_char_decision_maker DecisionMakerType.Empty
wait 0
set_fading_colour 0 {g} 0 {b} 0
request_model 401
request_model 445
request_model 50
request_model 50
request_model 336
request_model 346
request_model 351
request_model 352
request_model 124
request_model 125
request_model 126
request_model 127
request_model 530
load_all_models_now 

:CASINO3_316
if or
  not has_model_loaded 346
  not has_model_loaded 401
goto_if_false @CASINO3_348
wait 0
goto @CASINO3_316

:CASINO3_348
if or
  not has_model_loaded 50
  not has_model_loaded 124
  not has_model_loaded 125
  not has_model_loaded 351
  not has_model_loaded 352
goto_if_false @CASINO3_392
wait 0
goto @CASINO3_348

:CASINO3_392
if or
  not has_model_loaded 530
  not has_model_loaded 127
  not has_model_loaded 127
goto_if_false @CASINO3_427
wait 0
goto @CASINO3_392

:CASINO3_427
if or
  not has_model_loaded 50
  not has_model_loaded 336
  not has_model_loaded 445
goto_if_false @CASINO3_463
wait 0
goto @CASINO3_427

:CASINO3_463
load_scene 2031.168 {y} 1030.918 {z} 9.813
51@ = 99
186@ = 0
187@ = 0
36@ = 0
53@ = 5
54@ = 0
55@ = 0
117@ = 0
142@ = 0
143@ = 0
56@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 1
141@ = 0
91@ = 0
93@ = 0
94@ = 0
118@ = 0
149@ = 0
151@ = 0
152@ = 0
153@ = 0
155@ = 0
154@ = 0
156@ = 0
36@ = 0
157@ = 0
122@ = 0
124@ = 0
169@ = 0
170@ = 0
247@ = 0
171@ = 1
238@ = 1
239@ = 2
240@ = 0
241@ = 1
242@ = 0
243@ = 0
set_lvar_text_label 195@s = 'CAS3_AA'
set_lvar_text_label 197@s = 'CAS3_AB'
set_lvar_text_label 199@s = 'CAS3_AC'
set_lvar_text_label 201@s = 'CAS3_AD'
set_lvar_text_label 203@s = 'CAS3_BA'
set_lvar_text_label 205@s = 'CAS3_BB'
set_lvar_text_label 207@s = 'CAS3_BC'
set_lvar_text_label 209@s = 'CAS3_BD'
set_lvar_text_label 211@s = 'CAS3_BE'
set_lvar_text_label 213@s = 'CAS3_CA'
set_lvar_text_label 215@s = 'CAS3_CB'
set_lvar_text_label 217@s = 'CAS3_CC'
set_lvar_int_to_constant 224@ = 7600
set_lvar_int_to_constant 225@ = 7601
set_lvar_int_to_constant 226@ = 7602
set_lvar_int_to_constant 227@ = 7603
set_lvar_int_to_constant 228@ = 7604
set_lvar_int_to_constant 229@ = 7605
set_lvar_int_to_constant 230@ = 7606
set_lvar_int_to_constant 231@ = 7607
set_lvar_int_to_constant 232@ = 7608
set_lvar_int_to_constant 233@ = 7609
set_lvar_int_to_constant 234@ = 7610
set_lvar_int_to_constant 235@ = 7611
34@ = get_max_wanted_level 
if 
  55@ == -13
goto_if_false @CASINO3_1077
179@ = create_car 445 {x} 1029.856 {y} 2142.8579 {z} 9.813

:CASINO3_1077
set_object_collision $fourdragons_door {state} True
57@ = create_car 401 {x} 2014.72 {y} 1035.238 {z} 9.8127
set_car_heading 57@ {heading} 1.0755
change_car_colour 57@ {color1} 10 {color2} 2
58@ = create_car 445 {x} 1044.271 {y} 2096.7141 {z} 9.813
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_car_heading 58@ {heading} 27.1148
change_car_colour 58@ {color1} 2 {color2} 1
60@ = create_car 530 {x} 1063.887 {y} 2134.7241 {z} 9.8203
set_car_heading 60@ {heading} 252.0755
61@ = create_car 530 {x} 1060.146 {y} 2083.9861 {z} 9.8203
set_car_heading 61@ {heading} 233.609
76@ = create_char_inside_car 61@ {pedType} PedType.CivMale {modelId} 50
give_weapon_to_char 76@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_can_be_shot_in_vehicle 76@ {state} True
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 530
71@ = create_char_inside_car 58@ {pedType} PedType.Mission1 {modelId} 124
give_weapon_to_char 71@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 71@ {heading} 56.724
set_char_decision_maker 71@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 71@ {state} False
72@ = create_char_as_passenger 58@ {pedType} PedType.Mission1 {modelId} 125 {seat} SeatId.BikeRear
give_weapon_to_char 72@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 72@ {heading} 148.026
set_char_decision_maker 72@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 72@ {state} False
81@ = create_char PedType.Mission1 {modelId} 127 {x} 1064.213 {y} 2140.6941 {z} 9.8203
give_weapon_to_char 81@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_heading 81@ {heading} 156.0958
set_char_decision_maker 81@ {handleOrTemplate} 73@
82@ = create_char PedType.Mission1 {modelId} 125 {x} 1093.068 {y} 2107.3411 {z} 9.8203
give_weapon_to_char 82@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 82@ {heading} 115.2591
set_char_decision_maker 82@ {handleOrTemplate} 73@
83@ = create_char PedType.Mission1 {modelId} 124 {x} 1092.082 {y} 2116.792 {z} 14.3504
give_weapon_to_char 83@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 83@ {heading} 115.409
set_char_decision_maker 83@ {handleOrTemplate} 73@
80@ = create_char PedType.Mission1 {modelId} 126 {x} 1083.688 {y} 2121.5991 {z} 14.3504
give_weapon_to_char 80@ {weaponType} WeaponType.Spas12 {ammo} 2000
set_char_decision_maker 80@ {handleOrTemplate} 73@
add_armour_to_char 80@ {amount} 50
set_char_heading 80@ {heading} 115.6952
74@ = create_char PedType.Mission1 {modelId} 50 {x} 1056.655 {y} 2108.551 {z} 9.8203
set_char_heading 74@ {heading} 186.9465
set_char_decision_maker 74@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 74@ {state} True
75@ = create_char PedType.Mission1 {modelId} 50 {x} 1092.6071 {y} 2116.9121 {z} 9.8203
set_char_heading 75@ {heading} 116.0465
set_char_decision_maker 75@ {handleOrTemplate} 73@
set_char_can_be_shot_in_vehicle 75@ {state} True
257@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1074.903 {y} 2139.6111 {z} 10.7203
set_object_proofs 257@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
266@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1074.903 {y} 2139.6111 {z} 10.7203
set_object_collision 257@ {state} True
set_object_rotation 257@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 266@ {x} 0.0 {y} 0.0 {z} 180.0
258@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1069.485 {y} 2139.6111 {z} 10.7203
set_object_proofs 258@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
267@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1069.485 {y} 2139.6111 {z} 10.7203
set_object_collision 258@ {state} True
set_object_rotation 258@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 267@ {x} 0.0 {y} 0.0 {z} 180.0
259@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1062.4561 {y} 2139.6111 {z} 10.7203
set_object_proofs 259@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
268@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1062.4561 {y} 2139.6111 {z} 10.7203
set_object_collision 259@ {state} True
set_object_rotation 259@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 268@ {x} 0.0 {y} 0.0 {z} 180.0
260@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1081.2679 {y} 2123.686 {z} 10.7203
set_object_proofs 260@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
269@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1081.2679 {y} 2123.686 {z} 10.7203
set_object_rotation 260@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 269@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 260@ {state} True
261@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1081.236 {y} 2130.6809 {z} 10.7203
set_object_proofs 261@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
270@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1081.236 {y} 2130.6809 {z} 10.7203
set_object_rotation 261@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 270@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 261@ {state} True
262@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1086.855 {y} 2077.532 {z} 10.7203
set_object_proofs 262@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
271@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1086.855 {y} 2077.532 {z} 10.7203
set_object_collision 262@ {state} True
263@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1091.818 {y} 2121.2571 {z} 10.7203
set_object_proofs 263@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
272@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1091.818 {y} 2121.2571 {z} 10.7203
set_object_rotation 263@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_rotation 272@ {x} 0.0 {y} 0.0 {z} 180.0
set_object_collision 263@ {state} True
264@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1094.163 {y} 2102.3521 {z} 10.7203
set_object_proofs 264@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
273@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1094.163 {y} 2102.3521 {z} 10.7203
set_object_rotation 264@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 273@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 264@ {state} True
265@ = create_object_no_offset #CJ_CHIP_MAKER_BITS {x} 1094.163 {y} 2092.3521 {z} 10.7203
set_object_proofs 265@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
274@ = create_object_no_offset #CJ_CHIP_MAKER {x} 1094.163 {y} 2092.3521 {z} 10.7203
set_object_rotation 265@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_rotation 274@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_collision 265@ {state} True
284@ = 0

:CASINO3_2636
if 
  9 > 284@
goto_if_false @CASINO3_2691
275@(284@,9i) = 0
set_object_health 257@(284@,9i) {health} 1000
284@ += 1
goto @CASINO3_2636

:CASINO3_2691
106@ = create_object_no_offset #KMB_CONTAINER_RED {x} 1023.181 {y} 2106.604 {z} 14.7301
set_object_rotation 106@ {x} 0.0 {y} 0.0 {z} 0.0
107@ = create_object_no_offset #KMB_CONTAINER_RED {x} 1077.014 {y} 2070.7429 {z} 14.7635
set_object_rotation 107@ {x} 0.0 {y} 0.0 {z} 0.0
139@ = 0.0
140@ = 0.0
37@ = add_blip_for_coord 1057.636 {y} 2089.6941 {z} 9.8203
load_scene 2031.168 {y} 1030.918 {z} 9.813
request_collision 2031.168 {y} 1030.918
display_zone_names False
set_camera_behind_player 
restore_camera_jumpcut 
wait 1000
do_fade 1000 {direction} Fade.In

:CASINO3_2866
if 
  get_fading_status 
goto_if_false @CASINO3_2890
wait 0
goto @CASINO3_2866

:CASINO3_2890
print_now 'CA3_1' {time} 10000 {flag} 1
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
display_zone_names True

:CASINO3_2921
wait 0
if 
  does_object_exist $ca3_loadingbay
goto_if_false @CASINO3_2961
set_object_coordinates $ca3_loadingbay {x} 1055.629 {y} 2087.6699 {z} 0.299

:CASINO3_2961
if 
  240@ <> 0
goto_if_false @CASINO3_3314
if 
  242@ == 0
goto_if_false @CASINO3_3032
if 
  has_mission_audio_loaded 239@
goto_if_false @CASINO3_3018
clear_mission_audio 239@

:CASINO3_3018
242@ = 1
243@ = 1

:CASINO3_3032
if 
  242@ == 1
goto_if_false @CASINO3_3069
load_mission_audio 238@ {audioId} 223@(240@,15i)
242@ = 2

:CASINO3_3069
if 
  242@ == 2
goto_if_false @CASINO3_3129
if 
  has_mission_audio_loaded 238@
goto_if_false @CASINO3_3129
play_mission_audio 238@
print_now 193@(240@,15s) {time} 10000 {flag} 1
242@ = 3

:CASINO3_3129
if 
  242@ == 3
goto_if_false @CASINO3_3314
if 
  has_mission_audio_finished 238@
goto_if_false @CASINO3_3253
clear_this_print 193@(240@,15s)
if 
  238@ == 1
goto_if_false @CASINO3_3211
238@ = 2
239@ = 1
goto @CASINO3_3225

:CASINO3_3211
238@ = 1
239@ = 2

:CASINO3_3225
240@ = 0
242@ = 0
243@ = 0
goto @CASINO3_3314

:CASINO3_3253
if 
  not has_mission_audio_loaded 239@
goto_if_false @CASINO3_3314
if 
  10 > 240@
goto_if_false @CASINO3_3314
set_lvar_int_to_lvar_int 241@ = 240@
241@ += 1
load_mission_audio 239@ {audioId} 223@(241@,15i)

:CASINO3_3314
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO3_3336
goto @CASINO3_14129

:CASINO3_3336
set_object_rotation 106@ {x} 0.0 {y} 0.0 {z} 139@
if 
  36@ <> 1
goto_if_false @CASINO3_3382
139@ += 0.2

:CASINO3_3382
if 
  36@ == 1
goto_if_false @CASINO3_3410
139@ += 0.4

:CASINO3_3410
if 
  139@ > 359.0
goto_if_false @CASINO3_3441
139@ = 0.0

:CASINO3_3441
set_object_rotation 107@ {x} 0.0 {y} 0.0 {z} 140@
140@ += 0.25
if 
  140@ > 359.0
goto_if_false @CASINO3_3500
140@ = 0.0

:CASINO3_3500
if 
  36@ == 1
goto_if_false @CASINO3_3595
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3595

:CASINO3_3535
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3563
wait 0
goto @CASINO3_3535

:CASINO3_3563
if 
  150@ > 1
goto_if_false @CASINO3_3595
150@ = 10
36@ = 0

:CASINO3_3595
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @CASINO3_3642
set_char_coordinates $scplayer {x} 1002.171 {y} 2079.4431 {z} 9.8203
set_camera_behind_player 
give_weapon_to_char $scplayer {weaponType} WeaponType.Spas12 {ammo} 2000

:CASINO3_3642
if 
  155@ == 1
goto_if_false @CASINO3_3719
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3719

:CASINO3_3677
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3705
wait 0
goto @CASINO3_3677

:CASINO3_3705
153@ = 5
155@ = 0

:CASINO3_3719
if 
  156@ == 1
goto_if_false @CASINO3_3796
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3796

:CASINO3_3754
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3782
wait 0
goto @CASINO3_3754

:CASINO3_3782
154@ = 5
156@ = 0

:CASINO3_3796
if 
  157@ == 1
goto_if_false @CASINO3_3873
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3873

:CASINO3_3831
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CASINO3_3859
wait 0
goto @CASINO3_3831

:CASINO3_3859
55@ = 40
157@ = 0

:CASINO3_3873
if 
  171@ == 1
goto_if_false @CASINO3_3938
if 
  $ca3_driven_to_factory == 1
goto_if_false @CASINO3_3938
set_up_skip 1009.683 {y} 1987.64 {z} 9.6796 {heading} 1.816
171@ = 0

:CASINO3_3938
if 
  53@ == 5
goto_if_false @CASINO3_4110
if 
  not is_char_dead 71@
goto_if_false @CASINO3_4053
if 
  locate_char_any_means_char_2d $scplayer {target} 71@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CASINO3_4053
clear_skip 
171@ = 0
clear_prints 
print_now 'CA3_2' {time} 6000 {flag} 1
53@ = 10
34@ = get_max_wanted_level 
set_max_wanted_level 0
$ca3_driven_to_factory = 1

:CASINO3_4053
if 
  locate_char_any_means_3d $scplayer {x} 1009.683 {y} 1987.64 {z} 9.6796 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO3_4110
clear_skip 
171@ = 0

:CASINO3_4110
if 
  53@ == 10
goto_if_false @CASINO3_4358
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1048.428 {leftBottomY} 2093.521 {rightTopX} 1048.822 {rightTopY} 2081.844 {angle} 15.0 {drawSphere} False
goto_if_false @CASINO3_4185
55@ = 1
53@ = 99

:CASINO3_4185
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1055.174 {leftBottomY} 2064.71 {rightTopX} 1054.835 {rightTopY} 21099.8105 {angle} 15.0 {drawSphere} False
goto_if_false @CASINO3_4258
if 
  is_char_shooting $scplayer
goto_if_false @CASINO3_4258
170@ = 1
TIMERB = 0

:CASINO3_4258
if 
  does_char_exist 76@
goto_if_false @CASINO3_4307
if 
  has_char_been_damaged_by_char 76@ {handle} $scplayer
goto_if_false @CASINO3_4307
55@ = 1
53@ = 99

:CASINO3_4307
if 
  170@ == 1
goto_if_false @CASINO3_4358
if 
  TIMERB > 500
goto_if_false @CASINO3_4358
55@ = 1
53@ = 99

:CASINO3_4358
if 
  55@ == 0
goto_if_false @CASINO3_4729
if 
  0 > 53@
goto_if_false @CASINO3_4729
if 
  151@ == 0
goto_if_false @CASINO3_4485
if 
  not is_char_dead 76@
goto_if_false @CASINO3_4485
if 
  not is_car_dead 61@
goto_if_false @CASINO3_4485
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1030.442 {y} 2106.3191 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
151@ = 1

:CASINO3_4485
if 
  151@ == 1
goto_if_false @CASINO3_4624
if 
  not is_char_dead 76@
goto_if_false @CASINO3_4624
if 
  not is_car_dead 61@
goto_if_false @CASINO3_4624
if 
  locate_car_3d 61@ {x} 1030.442 {y} 2106.3191 {z} 9.8203 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_4624
151@ = 2
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1060.146 {y} 2084.9861 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_4624
if 
  151@ == 2
goto_if_false @CASINO3_4729
if 
  not is_char_dead 76@
goto_if_false @CASINO3_4729
if 
  not is_car_dead 61@
goto_if_false @CASINO3_4729
if 
  locate_car_3d 61@ {x} 1060.146 {y} 2084.9861 {z} 9.8203 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_4729
151@ = 0

:CASINO3_4729
if 
  55@ == 1
goto_if_false @CASINO3_6971
if 
  149@ == 0
goto_if_false @CASINO3_5875
if 
  153@ == 0
goto_if_false @CASINO3_5210
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 500 {direction} Fade.Out

:CASINO3_4804
if 
  get_fading_status 
goto_if_false @CASINO3_4828
wait 0
goto @CASINO3_4804

:CASINO3_4828
89@ = create_char PedType.Mission1 {modelId} 127 {x} 1083.01 {y} 2099.1311 {z} 14.3504
set_char_heading 89@ {heading} 186.4201
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 89@ {handleOrTemplate} 73@
87@ = create_char PedType.Mission1 {modelId} 124 {x} 1084.281 {y} 2097.948 {z} 14.3504
set_char_heading 87@ {heading} 153.4201
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 87@ {handleOrTemplate} 73@
set_char_coordinates $scplayer {x} 1050.532 {y} 2087.9331 {z} 9.8203
set_char_heading $scplayer {heading} 282.0
switch_widescreen True
set_fixed_camera_position 1088.848 {y} 2094.239 {z} 17.2308 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1087.869 {y} 2094.2219 {z} 17.0277 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:CASINO3_5024
if 
  get_fading_status 
goto_if_false @CASINO3_5048
wait 0
goto @CASINO3_5024

:CASINO3_5048
TIMERA = 0
153@ = 1
if 
  not is_char_dead 89@
goto_if_false @CASINO3_5106
flush_route 
extend_route 1083.361 {y} 2093.45 {z} 14.3504
task_follow_point_route 89@ {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5106
if 
  not is_char_dead 87@
goto_if_false @CASINO3_5150
flush_route 
extend_route 1084.752 {y} 2093.208 {z} 14.3504
task_follow_point_route 87@ {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5150
if 
  not is_char_dead $scplayer
goto_if_false @CASINO3_5210
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO3_5210
flush_route 
extend_route 1057.532 {y} 2087.9331 {z} 9.8203
task_follow_point_route $scplayer {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5210
if 
  153@ == 1
goto_if_false @CASINO3_5360
if 
  TIMERA > 1000
goto_if_false @CASINO3_5254
155@ = 1

:CASINO3_5254
if 
  TIMERA > 3000
goto_if_false @CASINO3_5360
240@ = 8
if 
  not is_char_dead 89@
goto_if_false @CASINO3_5309
clear_char_tasks 89@
task_turn_char_to_face_char 89@ {target} $scplayer

:CASINO3_5309
if 
  not is_char_dead 87@
goto_if_false @CASINO3_5353
flush_route 
extend_route 1082.375 {y} 2090.25 {z} 14.3504
task_follow_point_route 87@ {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_5353
153@ = 2

:CASINO3_5360
if 
  153@ == 2
goto_if_false @CASINO3_5565
if 
  TIMERA > 6000
goto_if_false @CASINO3_5565
240@ = 9
if 
  not is_char_dead 89@
goto_if_false @CASINO3_5453
clear_char_tasks 89@
flush_route 
extend_route 1088.526 {y} 2112.616 {z} 14.3504
task_follow_point_route 89@ {speed} MoveState.Run {mode} RouteMode.Once

:CASINO3_5453
if 
  not is_char_dead 76@
goto_if_false @CASINO3_5519
if 
  not is_car_dead 61@
goto_if_false @CASINO3_5519
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203 {speed} 9.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_5519
if 
  not is_char_dead 87@
goto_if_false @CASINO3_5551
clear_char_tasks 87@
task_aim_gun_at_char 87@ {target} $scplayer {time} 4000

:CASINO3_5551
153@ = 3
TIMERA = 0

:CASINO3_5565
if 
  153@ == 3
goto_if_false @CASINO3_5687
if 
  TIMERA > 2000
goto_if_false @CASINO3_5687
153@ = 5
155@ = 0
if 
  not is_char_dead 76@
goto_if_false @CASINO3_5687
clear_char_tasks 76@
167@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1088.783 {y} 2077.573 {z} 9.8203 {speed} MoveState.Run {time} -1
close_sequence_task 167@
perform_sequence_task 76@ {sequence} 167@
clear_sequence_task 167@

:CASINO3_5687
if 
  153@ == 5
goto_if_false @CASINO3_5875
switch_widescreen False
if 
  not is_char_dead 76@
goto_if_false @CASINO3_5761
if 
  is_char_sitting_in_any_car 76@
goto_if_false @CASINO3_5761
warp_char_from_car_to_coord 76@ {x} 1088.783 {y} 2077.573 {z} 9.8203

:CASINO3_5761
if 
  not is_car_dead 61@
goto_if_false @CASINO3_5807
set_car_coordinates 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203
set_car_heading 61@ {heading} 273.0

:CASINO3_5807
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks $scplayer
if 
  not is_car_dead 58@
goto_if_false @CASINO3_5847
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_5847
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
55@ = 2
141@ = 1

:CASINO3_5875
if 
  149@ > 0
goto_if_false @CASINO3_6971
if 
  154@ == 0
goto_if_false @CASINO3_6264
set_everyone_ignore_player $player1 {state} True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:CASINO3_5932
if 
  get_fading_status 
goto_if_false @CASINO3_5956
wait 0
goto @CASINO3_5932

:CASINO3_5956
set_char_coordinates $scplayer {x} 1050.532 {y} 2087.9331 {z} 9.8203
set_char_heading $scplayer {heading} 282.0
89@ = create_char PedType.Mission1 {modelId} 127 {x} 1086.869 {y} 2078.6101 {z} 14.3504
set_char_heading 89@ {heading} 86.4201
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 89@ {handleOrTemplate} 73@
87@ = create_char PedType.Mission1 {modelId} 124 {x} 1086.42 {y} 2077.292 {z} 14.3504
set_char_heading 87@ {heading} 74.4201
give_weapon_to_char 87@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 87@ {handleOrTemplate} 73@
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1075.725 {y} 2094.5449 {z} 18.0271 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1074.8521 {y} 2094.5291 {z} 17.5392 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:CASINO3_6159
if 
  get_fading_status 
goto_if_false @CASINO3_6183
wait 0
goto @CASINO3_6159

:CASINO3_6183
TIMERA = 0
154@ = 1
240@ = 7
if 
  not is_char_dead $scplayer
goto_if_false @CASINO3_6264
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO3_6264
flush_route 
extend_route 1057.532 {y} 2087.9331 {z} 9.8203
task_follow_point_route $scplayer {speed} MoveState.Walk {mode} RouteMode.Once

:CASINO3_6264
if 
  154@ == 1
goto_if_false @CASINO3_6620
if 
  TIMERA > 300
goto_if_false @CASINO3_6580
if 
  169@ == 0
goto_if_false @CASINO3_6580
if 
  not is_char_dead 87@
goto_if_false @CASINO3_6390
clear_char_tasks 87@
task_go_to_coord_while_aiming 87@ {x} 1079.871 {y} 2079.303 {z} 14.3516 {speed} MoveState.Walk {turnRadius} 0.5 {stopRadius} 0.5 {target} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0

:CASINO3_6390
if 
  not is_char_dead 76@
goto_if_false @CASINO3_6456
if 
  not is_car_dead 61@
goto_if_false @CASINO3_6456
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203 {speed} 9.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_6456
if 
  not is_char_dead 71@
goto_if_false @CASINO3_6536
clear_char_tasks 71@
168@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1064.677 {y} 2094.79 {z} 13.6896 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
close_sequence_task 168@
perform_sequence_task 71@ {sequence} 168@
clear_sequence_task 168@
task_stay_in_same_place 71@ {state} True

:CASINO3_6536
if 
  not is_char_dead 72@
goto_if_false @CASINO3_6566
task_toggle_duck 72@ {state} True
task_stay_in_same_place 72@ {state} True

:CASINO3_6566
156@ = 1
169@ = 1

:CASINO3_6580
if 
  TIMERA > 4000
goto_if_false @CASINO3_6620
240@ = 6
154@ = 3
TIMERA = 0

:CASINO3_6620
if 
  154@ == 3
goto_if_false @CASINO3_6742
if 
  TIMERA > 3000
goto_if_false @CASINO3_6742
154@ = 5
156@ = 0
if 
  not is_char_dead 76@
goto_if_false @CASINO3_6742
clear_char_tasks 76@
167@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1088.783 {y} 2077.573 {z} 9.8203 {speed} MoveState.Run {time} -1
close_sequence_task 167@
perform_sequence_task 76@ {sequence} 167@
clear_sequence_task 167@

:CASINO3_6742
if 
  154@ == 5
goto_if_false @CASINO3_6971
switch_widescreen False
if 
  not is_char_dead 87@
goto_if_false @CASINO3_6805
clear_char_tasks 87@
set_char_coordinates 87@ {x} 1079.871 {y} 2079.303 {z} 14.3516

:CASINO3_6805
if 
  not is_char_dead 76@
goto_if_false @CASINO3_6857
if 
  is_char_sitting_in_any_car 76@
goto_if_false @CASINO3_6857
warp_char_from_car_to_coord 76@ {x} 1088.783 {y} 2077.573 {z} 9.8203

:CASINO3_6857
if 
  not is_car_dead 61@
goto_if_false @CASINO3_6903
set_car_coordinates 61@ {x} 1076.809 {y} 2080.5259 {z} 9.8203
set_car_heading 61@ {heading} 273.0

:CASINO3_6903
restore_camera_jumpcut 
set_camera_behind_player 
clear_char_tasks $scplayer
if 
  not is_car_dead 58@
goto_if_false @CASINO3_6943
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_6943
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
55@ = 2
141@ = 1

:CASINO3_6971
if 
  55@ == 2
goto_if_false @CASINO3_7231
remove_blip 37@
284@ = 0

:CASINO3_7001
if 
  9 > 284@
goto_if_false @CASINO3_7113
275@(284@,9i) = 0
add_blip_for_object 257@(284@,9i) {var_handle} 40@(284@,11i)
set_object_proofs 257@(284@,9i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
change_blip_scale 40@(284@,11i) {size} 2
set_object_health 257@(284@,9i) {health} 1000
make_object_targettable 257@(284@,9i) {state} True
284@ += 1
goto @CASINO3_7001

:CASINO3_7113
clear_prints 
print_now 'CA3_7' {time} 6000 {flag} 1
if 
  not is_char_dead 76@
goto_if_false @CASINO3_7160
clear_char_tasks 76@
task_kill_char_on_foot 76@ {target} $scplayer

:CASINO3_7160
if 
  149@ > 0
goto_if_false @CASINO3_7192
gosub @CASINO3_13413
55@ = 4

:CASINO3_7192
if 
  149@ == 0
goto_if_false @CASINO3_7224
gosub @CASINO3_12849
55@ = 4

:CASINO3_7224
gosub @CASINO3_14056

:CASINO3_7231
if 
  55@ == 8
goto_if_false @CASINO3_7360
print_now 'CA3_23' {time} 6000 {flag} 1
set_max_wanted_level 34@
39@ = add_blip_for_coord 1918.59 {y} 958.3391 {z} 9.8203
change_blip_colour 39@ {color} BlipColor.Yellow
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 50
request_model 117
request_model 118
request_model 421
55@ = 9

:CASINO3_7325
if or
  not has_model_loaded 117
  not has_model_loaded 421
  not has_model_loaded 118
goto_if_false @CASINO3_7360
wait 0
goto @CASINO3_7325

:CASINO3_7360
if 
  55@ == 9
goto_if_false @CASINO3_7704
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @CASINO3_7421
if 
  not is_minigame_in_progress 
goto_if_false @CASINO3_7421
set_player_control $player1 {state} True

:CASINO3_7421
if 
  locate_char_any_means_3d $scplayer {x} 1918.59 {y} 958.3391 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO3_7704
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO3_7606
set_player_control $player1 {state} False
if 
  is_char_stopped $scplayer
goto_if_false @CASINO3_7599
69@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 69@ {heading} 197.2609
change_car_colour 69@ {color1} 4 {color2} 2
if 
  not is_car_dead 69@
goto_if_false @CASINO3_7592
68@ = create_char_inside_car 69@ {pedType} PedType.Mission2 {modelId} 117
67@ = create_char_as_passenger 69@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:CASINO3_7592
55@ = 15

:CASINO3_7599
goto @CASINO3_7704

:CASINO3_7606
set_player_control $player1 {state} False
69@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 69@ {heading} 197.2609
change_car_colour 69@ {color1} 4 {color2} 2
if 
  not is_car_dead 69@
goto_if_false @CASINO3_7697
68@ = create_char_inside_car 69@ {pedType} PedType.Mission2 {modelId} 117
67@ = create_char_as_passenger 69@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:CASINO3_7697
55@ = 15

:CASINO3_7704
if 
  55@ == 15
goto_if_false @CASINO3_7989
mark_car_as_no_longer_needed 179@
mark_car_as_no_longer_needed 58@
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
clear_prints 
clear_area 1913.682 {y} 962.0125 {z} 9.8203 {radius} 20.0 {clearParticles} True
clear_area 1903.468 {y} 967.1692 {z} 9.8127 {radius} 20.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 1922.234 {y} 951.8628 {z} 12.2282 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1921.715 {y} 952.7101 {z} 12.1171 {switchStyle} SwitchType.JumpCut
55@ = 17
TIMERA = 0
clear_char_tasks $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO3_7943
166@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 166@
perform_sequence_task $scplayer {sequence} 166@
clear_sequence_task 166@
goto @CASINO3_7989

:CASINO3_7943
166@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 166@
perform_sequence_task $scplayer {sequence} 166@
clear_sequence_task 166@

:CASINO3_7989
if 
  55@ == 17
goto_if_false @CASINO3_8053
if 
  TIMERA > 1000
goto_if_false @CASINO3_8053
55@ = 20
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart

:CASINO3_8053
if 
  55@ == 20
goto_if_false @CASINO3_8356
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_8156
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_8156
if 
  TIMERA > 4000
goto_if_false @CASINO3_8356
55@ = 30
if 
  not is_char_dead 68@
goto_if_false @CASINO3_8356
if 
  not is_car_dead 69@
goto_if_false @CASINO3_8356
task_car_drive_to_coord 68@ {vehicle} 69@ {x} 1909.04 {y} 959.7415 {z} 9.8203 {speed} 7.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_fixed_camera_position 1914.8311 {y} 962.6716 {z} 11.3214 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1913.837 {y} 962.5726 {z} 11.2813 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1913.682 {y} 962.0125 {z} 9.8203
set_char_heading $scplayer {heading} 100.3
TIMERA = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop

:CASINO3_8356
if 
  55@ == 30
goto_if_false @CASINO3_8548
if 
  not is_car_dead 69@
goto_if_false @CASINO3_8548
if 
  locate_car_2d 69@ {x} 1909.04 {y} 959.7415 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_8495
55@ = 35
if 
  not is_char_dead 67@
goto_if_false @CASINO3_8461
task_look_at_char 67@ {target} $scplayer {time} -1

:CASINO3_8461
240@ = 10
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
TIMERA = 0

:CASINO3_8495
if 
  TIMERA > 10000
goto_if_false @CASINO3_8548
55@ = 35
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
TIMERA = 0

:CASINO3_8548
if 
  55@ == 35
goto_if_false @CASINO3_8711
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_8651
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_8651
if 
  TIMERA > 3000
goto_if_false @CASINO3_8711
55@ = 36
TIMERA = 0
247@ = 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop

:CASINO3_8711
if 
  247@ > 0
goto_if_false @CASINO3_8852
if 
  243@ == 0
goto_if_false @CASINO3_8852
switch_start 247@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO3_8852 {caseNum1} 1 {caseLabel1} @CASINO3_8810 {caseNum2} 2 {caseLabel2} @CASINO3_8831 {caseNum3} -1 {caseLabel3} @CASINO3_8852 {caseNum4} -1 {caseLabel4} @CASINO3_8852 {caseNum5} -1 {caseLabel5} @CASINO3_8852 {caseNum6} -1 {caseLabel6} @CASINO3_8852 {caseNum7} -1 {caseLabel7} @CASINO3_8852

:CASINO3_8810
240@ = 11
247@ = 2
goto @CASINO3_8852

:CASINO3_8831
240@ = 12
247@ = 0
goto @CASINO3_8852

:CASINO3_8852
if 
  55@ == 36
goto_if_false @CASINO3_9104
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_8955
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_8955
if 
  TIMERA > 2000
goto_if_false @CASINO3_9104
if 
  TIMERA > 4000
goto_if_false @CASINO3_9104
if 
  not is_car_dead 69@
goto_if_false @CASINO3_9104
if 
  not is_char_dead 68@
goto_if_false @CASINO3_9104
clear_char_tasks 68@
55@ = 37
task_car_drive_to_coord 68@ {vehicle} 69@ {x} 1915.04 {y} 940.7415 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
TIMERA = 0
if 
  not is_char_dead 67@
goto_if_false @CASINO3_9104
task_look_at_char $scplayer {target} 67@ {time} -1

:CASINO3_9104
if 
  55@ == 37
goto_if_false @CASINO3_9233
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_9207
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_9207
if 
  TIMERA > 4000
goto_if_false @CASINO3_9233
55@ = 40

:CASINO3_9233
if 
  55@ == 40
goto_if_false @CASINO3_9473
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @CASINO3_9336
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:CASINO3_9336
157@ = 0
if 
  not is_char_dead 67@
goto_if_false @CASINO3_9369
clear_char_tasks_immediately 67@
delete_char 67@

:CASINO3_9369
if 
  not is_char_dead 68@
goto_if_false @CASINO3_9395
clear_char_tasks_immediately 68@
delete_char 68@

:CASINO3_9395
delete_car 69@
switch_widescreen False
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.82 {z} 11.438
set_object_heading $fourdragons_door {heading} 0.0
55@ = 45
clear_prints 
goto @CASINO3_14129

:CASINO3_9473
if 
  1 > 55@
goto_if_false @CASINO3_10031
if 
  is_char_in_angled_area_2d $scplayer {leftBottomX} 1030.105 {leftBottomY} 2095.7151 {rightTopX} 1054.818 {rightTopY} 2098.7781 {angle} 30.0 {drawSphere} False
goto_if_false @CASINO3_9668
if 
  149@ == 0
goto_if_false @CASINO3_9601
if 
  not is_char_dead 71@
goto_if_false @CASINO3_9601
if 
  has_char_spotted_char_in_front 71@ {handle} $scplayer
goto_if_false @CASINO3_9601
149@ = 1
150@ = 1

:CASINO3_9601
if 
  149@ == 0
goto_if_false @CASINO3_9668
if 
  not is_char_dead 72@
goto_if_false @CASINO3_9668
if 
  has_char_spotted_char_in_front 72@ {handle} $scplayer
goto_if_false @CASINO3_9668
149@ = 1
150@ = 1

:CASINO3_9668
if 
  149@ == 0
goto_if_false @CASINO3_9735
if 
  does_char_exist 71@
goto_if_false @CASINO3_9735
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @CASINO3_9735
149@ = 1
150@ = 1

:CASINO3_9735
if 
  149@ == 0
goto_if_false @CASINO3_9802
if 
  does_char_exist 72@
goto_if_false @CASINO3_9802
if 
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @CASINO3_9802
149@ = 1
150@ = 1

:CASINO3_9802
if 
  149@ == 0
goto_if_false @CASINO3_9869
if 
  not is_car_dead 58@
goto_if_false @CASINO3_9869
if 
  has_car_been_damaged_by_char 58@ {handle} $scplayer
goto_if_false @CASINO3_9869
149@ = 1
150@ = 1

:CASINO3_9869
if 
  149@ == 3
goto_if_false @CASINO3_9950
if 
  does_char_exist 71@
goto_if_false @CASINO3_9950
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @CASINO3_9950
149@ = 4
gosub @CASINO3_12691
55@ = 1
53@ = 99

:CASINO3_9950
if 
  149@ == 3
goto_if_false @CASINO3_10031
if 
  does_char_exist 72@
goto_if_false @CASINO3_10031
if 
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @CASINO3_10031
149@ = 4
gosub @CASINO3_12691
55@ = 1
53@ = 99

:CASINO3_10031
if 
  150@ == 1
goto_if_false @CASINO3_10247
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1039.3 {y} 2100.4351 {z} 12.2503 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1040.13 {y} 2099.906 {z} 12.0705 {switchStyle} SwitchType.JumpCut
240@ = 1
if 
  not is_char_dead 71@
goto_if_false @CASINO3_10160
if 
  not is_char_dead 72@
goto_if_false @CASINO3_10160
task_look_at_char 71@ {target} 72@ {time} -1

:CASINO3_10160
240@ = 1
TIMERB = 0
150@ = 3
if 
  not is_char_dead 76@
goto_if_false @CASINO3_10247
if 
  not is_car_dead 61@
goto_if_false @CASINO3_10247
task_car_drive_to_coord 76@ {vehicle} 61@ {x} 1076.804 {y} 2080.491 {z} 9.8203 {speed} 9.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO3_10247
if 
  150@ == 3
goto_if_false @CASINO3_10331
if 
  TIMERB > 1000
goto_if_false @CASINO3_10291
36@ = 1

:CASINO3_10291
if 
  TIMERB > 3000
goto_if_false @CASINO3_10331
150@ = 5
240@ = 2
TIMERB = 0

:CASINO3_10331
if 
  150@ == 5
goto_if_false @CASINO3_10451
if 
  not is_car_dead 58@
goto_if_false @CASINO3_10451
if 
  not is_char_dead 71@
goto_if_false @CASINO3_10437
clear_char_tasks 71@
137@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1062.345 {y} 2087.3181 {z} 9.8203 {speed} MoveState.Run {time} 10000
close_sequence_task 137@
perform_sequence_task 71@ {sequence} 137@
clear_sequence_task 137@

:CASINO3_10437
150@ = 6
TIMERB = 0

:CASINO3_10451
if 
  150@ == 6
goto_if_false @CASINO3_10590
if 
  TIMERB > 1000
goto_if_false @CASINO3_10590
if 
  not is_car_dead 58@
goto_if_false @CASINO3_10590
if 
  not is_char_dead 72@
goto_if_false @CASINO3_10576
clear_char_tasks 72@
138@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1056.874 {y} 2084.136 {z} 9.8203 {speed} MoveState.Run {time} 10000
close_sequence_task 138@
perform_sequence_task 72@ {sequence} 138@
clear_sequence_task 138@

:CASINO3_10576
TIMERB = 0
150@ = 8

:CASINO3_10590
if 
  150@ == 8
goto_if_false @CASINO3_10634
if 
  TIMERB > 3700
goto_if_false @CASINO3_10634
150@ = 10

:CASINO3_10634
if 
  150@ == 10
goto_if_false @CASINO3_10854
switch_widescreen False
36@ = 0
set_char_heading $scplayer {heading} 228.0
if 
  not is_char_dead 71@
goto_if_false @CASINO3_10724
clear_char_tasks_immediately 71@
set_char_coordinates 71@ {x} 1073.558 {y} 2094.4131 {z} 13.6896
set_char_heading 71@ {heading} 83.0

:CASINO3_10724
if 
  not is_char_dead 72@
goto_if_false @CASINO3_10775
clear_char_tasks_immediately 72@
set_char_coordinates 72@ {x} 1066.0959 {y} 2098.8501 {z} 13.7429
set_char_heading 72@ {heading} 132.0

:CASINO3_10775
if 
  not is_car_dead 61@
goto_if_false @CASINO3_10811
set_car_coordinates 61@ {x} 1076.804 {y} 2080.491 {z} 9.8203

:CASINO3_10811
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
print_now 'CA3_8' {time} 6000 {flag} 1
set_player_control $player1 {state} True
150@ = 99
149@ = 99

:CASINO3_10854
if 
  141@ == 1
goto_if_false @CASINO3_11401
284@ = 0

:CASINO3_10879
if 
  9 > 284@
goto_if_false @CASINO3_11232
if 
  275@(284@,9i) == 0
goto_if_false @CASINO3_11218
52@ = get_object_health 257@(284@,9i)
if 
  has_object_been_damaged_by_weapon 257@(284@,9i) {weaponType} WeaponType.Spas12
goto_if_false @CASINO3_10960
52@ = 0

:CASINO3_10960
if 
  has_object_been_damaged_by_weapon 257@(284@,9i) {weaponType} WeaponType.Shotgun
goto_if_false @CASINO3_10989
52@ = 0

:CASINO3_10989
if 
  has_object_been_damaged_by_weapon 257@(284@,9i) {weaponType} WeaponType.Sawnoff
goto_if_false @CASINO3_11018
52@ = 0

:CASINO3_11018
if 
  52@ == 0
goto_if_false @CASINO3_11218
125@, 126@, 127@ = get_object_coordinates 257@(284@,9i)
create_fx_system "OVERHEAT_CAR_ELECTRIC" {x} 125@ {y} 126@ {z} 127@ {ignoreBoundingChecks} True {var_handle} 248@(284@,9i)
127@ += 1.0
add_explosion_variable_shake 125@ {y} 126@ {z} 127@ {type} 11 {shake} 1.0
break_object 257@(284@,9i) {intensity} 1
remove_blip 40@(284@,11i)
make_object_targettable 257@(284@,9i) {state} False
if 
  51@ <> 99
goto_if_false @CASINO3_11183
kill_fx_system 248@(51@,9i)

:CASINO3_11183
play_fx_system 248@(284@,9i)
set_lvar_int_to_lvar_int 51@ = 284@
275@(284@,9i) += 1
117@ += 1

:CASINO3_11218
284@ += 1
goto @CASINO3_10879

:CASINO3_11232
if 
  148@ == 0
goto_if_false @CASINO3_11369
if 
  not is_char_dead 81@
goto_if_false @CASINO3_11369
if 
  locate_char_any_means_3d 81@ {x} 1067.5811 {y} 2122.251 {z} 9.8203 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO3_11369
clear_char_tasks 81@
129@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 5000 {actionChance} 60
close_sequence_task 129@
perform_sequence_task 81@ {sequence} 129@
clear_sequence_task 129@
148@ = 1

:CASINO3_11369
if 
  117@ == 9
goto_if_false @CASINO3_11401
55@ = 8
141@ = 99

:CASINO3_11401
if 
  186@ == 0
goto_if_false @CASINO3_11846
if 
  117@ == 3
goto_if_false @CASINO3_11846
172@ = create_char PedType.Mission1 {modelId} 50 {x} 1020.017 {y} 2082.8999 {z} 17.9296
give_weapon_to_char 172@ {weaponType} WeaponType.Spas12 {ammo} 2000
set_char_heading 172@ {heading} 269.9465
set_char_decision_maker 172@ {handleOrTemplate} 73@
if 
  not is_char_dead 172@
goto_if_false @CASINO3_11575
clear_char_tasks 172@
175@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1038.717 {y} 2082.7981 {z} 13.9297 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 175@
perform_sequence_task 172@ {sequence} 175@
clear_sequence_task 175@

:CASINO3_11575
173@ = create_char PedType.Mission1 {modelId} 50 {x} 1020.263 {y} 2097.1851 {z} 13.9297
give_weapon_to_char 173@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_heading 173@ {heading} 274.9465
set_char_decision_maker 173@ {handleOrTemplate} 73@
if 
  not is_char_dead 173@
goto_if_false @CASINO3_11701
clear_char_tasks 173@
176@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1038.426 {y} 2098.644 {z} 9.8203 {speed} MoveState.Run {time} -2
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 176@
perform_sequence_task 173@ {sequence} 176@
clear_sequence_task 176@

:CASINO3_11701
174@ = create_char PedType.Mission1 {modelId} 50 {x} 1019.671 {y} 2078.126 {z} 13.9297
give_weapon_to_char 174@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_heading 174@ {heading} 267.9465
set_char_decision_maker 174@ {handleOrTemplate} 73@
if 
  not is_char_dead 174@
goto_if_false @CASINO3_11839
clear_char_tasks 174@
177@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1068.708 {y} 2085.24 {z} 9.8203 {speed} MoveState.Run {time} -2
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 177@
perform_sequence_task 174@ {sequence} 177@
clear_sequence_task 177@

:CASINO3_11839
186@ = 1

:CASINO3_11846
if 
  187@ == 0
goto_if_false @CASINO3_11982
if 
  117@ > 5
goto_if_false @CASINO3_11982
custom_plate_for_next_car 445 {text} "G1RUYHUN"
179@ = create_car 445 {x} 1029.856 {y} 2142.8579 {z} 9.813
set_car_heading 179@ {heading} 205.1437
change_car_colour 179@ {color1} 123 {color2} 10
set_car_proofs 179@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
lock_car_doors 179@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 179@ {state} True
set_can_burst_car_tyres 179@ {state} False
187@ = 1

:CASINO3_11982
if 
  187@ == 1
goto_if_false @CASINO3_12269
if 
  117@ > 5
goto_if_false @CASINO3_12269
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12269
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 179@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @CASINO3_12269
178@ = create_char_inside_car 179@ {pedType} PedType.Mission1 {modelId} 124
set_char_decision_maker 178@ {handleOrTemplate} 73@
give_weapon_to_char 178@ {weaponType} WeaponType.MicroUzi {ammo} 2000
180@ = create_char_as_passenger 179@ {pedType} PedType.Mission1 {modelId} 125 {seat} SeatId.RearLeft
set_char_decision_maker 180@ {handleOrTemplate} 73@
give_weapon_to_char 180@ {weaponType} WeaponType.MicroUzi {ammo} 2000
task_drive_by 180@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 90
181@ = create_char_as_passenger 179@ {pedType} PedType.Mission1 {modelId} 127 {seat} SeatId.RearRight
set_char_decision_maker 181@ {handleOrTemplate} 73@
give_weapon_to_char 181@ {weaponType} WeaponType.MicroUzi {ammo} 2000
task_drive_by 181@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 90
freeze_car_position 179@ {state} False
set_car_temp_action 179@ {actionId} TempAction.GoForward {time} 5500
lock_car_doors 179@ {lockStatus} CarLock.Unlocked
187@ = 2
TIMERB = 0

:CASINO3_12269
if 
  187@ == 2
goto_if_false @CASINO3_12422
if 
  TIMERB > 6500
goto_if_false @CASINO3_12422
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12422
if 
  not is_char_dead 178@
goto_if_false @CASINO3_12422
if 
  is_car_stopped 179@
goto_if_false @CASINO3_12422
set_car_proofs 179@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_tasks 178@
182@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 182@
perform_sequence_task 178@ {sequence} 182@
clear_sequence_task 182@
187@ = 3
TIMERB = 0

:CASINO3_12422
if 
  187@ == 3
goto_if_false @CASINO3_12553
if 
  TIMERB > 15000
goto_if_false @CASINO3_12553
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12553
if 
  not is_char_dead 181@
goto_if_false @CASINO3_12553
if 
  is_car_stopped 179@
goto_if_false @CASINO3_12553
clear_char_tasks 181@
184@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 184@
perform_sequence_task 181@ {sequence} 184@
clear_sequence_task 184@
187@ = 4

:CASINO3_12553
if 
  187@ == 4
goto_if_false @CASINO3_12684
if 
  TIMERB > 25000
goto_if_false @CASINO3_12684
if 
  not is_car_dead 179@
goto_if_false @CASINO3_12684
if 
  not is_char_dead 180@
goto_if_false @CASINO3_12684
if 
  is_car_stopped 179@
goto_if_false @CASINO3_12684
clear_char_tasks 180@
183@ = open_sequence_task 
task_leave_any_car -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 183@
perform_sequence_task 180@ {sequence} 183@
clear_sequence_task 183@
187@ = 5

:CASINO3_12684
goto @CASINO3_2921

:CASINO3_12691
if 
  not is_char_dead 71@
goto_if_false @CASINO3_12715
task_kill_char_on_foot 71@ {target} $scplayer

:CASINO3_12715
if 
  not is_char_dead 72@
goto_if_false @CASINO3_12739
task_kill_char_on_foot 72@ {target} $scplayer

:CASINO3_12739
if 
  not is_char_dead 74@
goto_if_false @CASINO3_12795
set_char_coordinates 74@ {x} 1084.126 {y} 2107.637 {z} 14.3504
set_char_heading 74@ {heading} 111.4468
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 2000

:CASINO3_12795
88@ = create_char PedType.Mission1 {modelId} 124 {x} 1084.71 {y} 2116.7361 {z} 14.3504
set_char_heading 88@ {heading} 94.4201
give_weapon_to_char 88@ {weaponType} WeaponType.MicroUzi {ammo} 2000
set_char_decision_maker 88@ {handleOrTemplate} 73@
return 

:CASINO3_12849
if 
  144@ == 0
goto_if_false @CASINO3_13411
if 
  not is_char_dead 87@
goto_if_false @CASINO3_12924
clear_char_tasks 87@
135@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 135@
perform_sequence_task 87@ {sequence} 135@
clear_sequence_task 135@

:CASINO3_12924
if 
  not is_char_dead 81@
goto_if_false @CASINO3_12999
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1067.5811 {y} 2122.251 {z} 9.8203 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 129@
perform_sequence_task 81@ {sequence} 129@
clear_sequence_task 129@

:CASINO3_12999
if 
  not is_char_dead 82@
goto_if_false @CASINO3_13085
128@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1085.5959 {y} 2106.8301 {z} 9.8203 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 2.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 82@ {sequence} 128@
clear_sequence_task 128@

:CASINO3_13085
if 
  not is_char_dead 83@
goto_if_false @CASINO3_13178
130@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1082.391 {y} 2091.1299 {z} 14.3504 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 130@
perform_sequence_task 83@ {sequence} 130@
clear_sequence_task 130@

:CASINO3_13178
if 
  not is_char_dead 89@
goto_if_false @CASINO3_13214
clear_char_tasks 89@
task_kill_char_on_foot 89@ {target} $scplayer
task_stay_in_same_place 89@ {state} True

:CASINO3_13214
if 
  not is_char_dead 74@
goto_if_false @CASINO3_13253
clear_char_tasks 74@
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 2000
task_kill_char_on_foot 74@ {target} $scplayer

:CASINO3_13253
if 
  not is_char_dead 75@
goto_if_false @CASINO3_13356
clear_char_tasks 75@
give_weapon_to_char 75@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_coordinates 75@ {x} 1057.0551 {y} 2122.3191 {z} 13.6896
set_char_heading 75@ {heading} 279.0
79@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
perform_sequence_task 75@ {sequence} 79@
clear_sequence_task 79@

:CASINO3_13356
if 
  not is_char_dead 71@
goto_if_false @CASINO3_13380
task_kill_char_on_foot 71@ {target} $scplayer

:CASINO3_13380
if 
  not is_char_dead 72@
goto_if_false @CASINO3_13404
task_kill_char_on_foot 72@ {target} $scplayer

:CASINO3_13404
144@ = 1

:CASINO3_13411
return 

:CASINO3_13413
if 
  144@ == 0
goto_if_false @CASINO3_14054
if 
  not is_char_dead 87@
goto_if_false @CASINO3_13488
clear_char_tasks 87@
135@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 135@
perform_sequence_task 87@ {sequence} 135@
clear_sequence_task 135@

:CASINO3_13488
if 
  not is_char_dead 88@
goto_if_false @CASINO3_13545
clear_char_tasks 88@
136@ = open_sequence_task 
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 136@
perform_sequence_task 88@ {sequence} 136@
clear_sequence_task 136@

:CASINO3_13545
if 
  not is_char_dead 74@
goto_if_false @CASINO3_13612
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 2000
clear_char_tasks 74@
78@ = open_sequence_task 
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 78@
perform_sequence_task 74@ {sequence} 78@
clear_sequence_task 78@

:CASINO3_13612
if 
  not is_char_dead 75@
goto_if_false @CASINO3_13715
give_weapon_to_char 75@ {weaponType} WeaponType.MicroUzi {ammo} 2000
clear_char_tasks 75@
set_char_coordinates 75@ {x} 1057.0551 {y} 2122.3191 {z} 13.6896
set_char_heading 75@ {heading} 279.0
79@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
perform_sequence_task 75@ {sequence} 79@
clear_sequence_task 79@

:CASINO3_13715
if 
  not is_char_dead 81@
goto_if_false @CASINO3_13790
129@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1067.5811 {y} 2122.251 {z} 9.8203 {speed} MoveState.Run {time} -2
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 129@
perform_sequence_task 81@ {sequence} 129@
clear_sequence_task 129@

:CASINO3_13790
if 
  not is_char_dead 82@
goto_if_false @CASINO3_13870
128@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1085.5959 {y} 2106.8301 {z} 9.8203 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 2.0 {target} $scplayer
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 128@
perform_sequence_task 82@ {sequence} 128@
clear_sequence_task 128@

:CASINO3_13870
if 
  not is_char_dead 83@
goto_if_false @CASINO3_13963
130@ = open_sequence_task 
task_go_to_coord_while_shooting -1 {x} 1082.391 {y} 2091.1299 {z} 14.3504 {speed} MoveState.Run {turnRadius} 100.0 {stopRadius} 1.0 {target} $scplayer
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 130@
perform_sequence_task 83@ {sequence} 130@
clear_sequence_task 130@

:CASINO3_13963
if 
  not is_char_dead 89@
goto_if_false @CASINO3_13999
clear_char_tasks 89@
task_stay_in_same_place 89@ {state} True
task_kill_char_on_foot 89@ {target} $scplayer

:CASINO3_13999
if 
  not is_char_dead 71@
goto_if_false @CASINO3_14023
task_kill_char_on_foot 71@ {target} $scplayer

:CASINO3_14023
if 
  not is_char_dead 72@
goto_if_false @CASINO3_14047
task_kill_char_on_foot 72@ {target} $scplayer

:CASINO3_14047
144@ = 1

:CASINO3_14054
return 

:CASINO3_14056
if 
  not is_char_dead 80@
goto_if_false @CASINO3_14109
131@ = open_sequence_task 
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 131@
perform_sequence_task 80@ {sequence} 131@
clear_sequence_task 131@

:CASINO3_14109
return 

:CASINO3_14111
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO3_14129
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO3'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 20
add_score $player1 {money} 10000
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point 2026.603 {y} 1007.735 {z} 9.8127 {sprite} $casino_blip_icon
return 

:CASINO3_14221
if 
  not is_car_dead 58@
goto_if_false @CASINO3_14252
set_car_proofs 58@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_14252
if 
  not is_car_dead 179@
goto_if_false @CASINO3_14283
set_car_proofs 179@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:CASINO3_14283
if 
  does_object_exist $fourdragons_door
goto_if_false @CASINO3_14329
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.62 {z} 11.438
set_object_heading $fourdragons_door {heading} 0.0

:CASINO3_14329
set_max_wanted_level 34@
$timer_mobile_start = get_game_timer 
clear_wanted_level $player1
if 
  does_object_exist $ca3_loadingbay
goto_if_false @CASINO3_14380
set_object_coordinates $ca3_loadingbay {x} 1055.629 {y} 2087.6699 {z} 12.469

:CASINO3_14380
remove_blip 37@
remove_blip 39@
284@ = 0

:CASINO3_14397
if 
  9 > 284@
goto_if_false @CASINO3_14438
remove_blip 40@(284@,11i)
284@ += 1
goto @CASINO3_14397

:CASINO3_14438
if 
  51@ <> 99
goto_if_false @CASINO3_14465
kill_fx_system 248@(51@,9i)

:CASINO3_14465
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 351
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 445
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 530
remove_all_script_fires 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 87---------------
// Originally: Fish in a Barrel

:CASINO7
script_name 'CASINO7'
gosub @CASINO7_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO7_38
gosub @CASINO7_301

:CASINO7_38
gosub @CASINO7_360
terminate_this_script 

:CASINO7_47
load_mission_text 'CASINO7'
register_mission_given 
$onmission = 1
wait 0
set_area_visible 11
load_cutscene 'CAS_7B'

:CASINO7_86
if 
  not has_cutscene_loaded 
goto_if_false @CASINO7_110
wait 0
goto @CASINO7_86

:CASINO7_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO7_119
if 
  not has_cutscene_finished 
goto_if_false @CASINO7_143
wait 0
goto @CASINO7_119

:CASINO7_143
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO7_156
if 
  get_fading_status 
goto_if_false @CASINO7_180
wait 0
goto @CASINO7_156

:CASINO7_180
clear_cutscene 
set_area_visible 0
set_fading_colour 0 {g} 0 {b} 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
request_collision 2025.8 {y} 1007.87
load_scene_in_direction 2025.8 {y} 1007.87 {z} 9.81 {heading} 279.83
set_char_coordinates $scplayer {x} 2025.8 {y} 1007.87 {z} 9.81
set_char_heading $scplayer {heading} 279.83
restore_camera_jumpcut 
set_player_control $player1 {state} True
do_fade 2000 {direction} Fade.In
goto @CASINO7_319

:CASINO7_301
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO7_319
remove_blip $casino_contact_blip
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO7'
set_int_stat StatId.PassedCasino7 {value} 1
clear_wanted_level $player1
player_made_progress 1
return 

:CASINO7_360
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 88---------------
// Originally: Don Peyote

:CASINO4
script_name 'CASINO4'
gosub @CASINO4_86
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO4_38
gosub @CASINO4_45852

:CASINO4_38
gosub @CASINO4_45937
terminate_this_script 
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:CASINO4_62
if 
  get_fading_status 
goto_if_false @CASINO4_86
wait 0
goto @CASINO4_62

:CASINO4_86
register_mission_given 
$onmission = 1
force_weather WeatherType.SunnyVegas
load_mission_text 'CASINO4'
load_cutscene 'CAS_4A'

:CASINO4_121
if 
  not has_cutscene_loaded 
goto_if_false @CASINO4_145
wait 0
goto @CASINO4_121

:CASINO4_145
clear_area 2027.359 {y} 1007.738 {z} 9.8127 {radius} 10.0 {clearParticles} True
set_char_heading $scplayer {heading} 265.5486
294@ = get_game_timer 
295@ = 0
if 
  295@ == 99
goto_if_false @CASINO4_316
289@ = create_car 291@ {x} 2044.621 {y} 1110.198 {z} 9.6719
290@ = create_random_char_as_driver 289@
73@ = create_random_char_as_driver 289@
75@ = create_random_char_as_driver 289@
74@ = create_random_char_as_driver 289@
76@ = create_random_char_as_driver 289@
136@ = create_fx_system "PUKE" {x} 95@ {y} 96@ {z} 97@ {ignoreBoundingChecks} True
137@ = create_fx_system "PUKE" {x} 95@ {y} 96@ {z} 97@ {ignoreBoundingChecks} True

:CASINO4_316
make_player_gang_disappear 
start_cutscene 
do_fade 1000 {direction} Fade.In
TIMERA = 0

:CASINO4_334
if 
  not has_cutscene_finished 
goto_if_false @CASINO4_857
293@ = get_game_timer 
set_lvar_int_to_lvar_int 296@ = 293@
sub_int_lvar_from_int_lvar 296@ -= 294@
if 
  296@ > 15000
goto_if_false @CASINO4_846
if 
  TIMERA > 2000
goto_if_false @CASINO4_846
switch_start 295@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CASINO4_832 {caseNum1} 0 {caseLabel1} @CASINO4_469 {caseNum2} 1 {caseLabel2} @CASINO4_574 {caseNum3} 2 {caseLabel3} @CASINO4_647 {caseNum4} 3 {caseLabel4} @CASINO4_752 {caseNum5} -1 {caseLabel5} @CASINO4_839 {caseNum6} -1 {caseLabel6} @CASINO4_839 {caseNum7} -1 {caseLabel7} @CASINO4_839

:CASINO4_469
291@, 292@ = get_random_car_model_in_memory True
if 
  291@ <> -1
goto_if_false @CASINO4_560
289@ = create_car 291@ {x} 2051.5439 {y} 1100.511 {z} 9.6719
set_vehicle_to_fade_in 289@ {alpha} 0
set_car_heading 289@ {heading} 183.2183
290@ = create_random_char_as_driver 289@
car_wander_randomly 289@
mark_char_as_no_longer_needed 290@
mark_car_as_no_longer_needed 289@

:CASINO4_560
295@ += 1
goto @CASINO4_839

:CASINO4_574
290@ = create_random_char 2034.814 {y} 993.6725 {z} 9.813
set_char_heading 290@ {heading} 357.2051
task_follow_path_nodes_to_coord 290@ {x} 2033.856 {y} 1051.804 {z} 9.8203 {speed} MoveState.Walk {time} -2
mark_char_as_no_longer_needed 290@
295@ += 1
goto @CASINO4_839

:CASINO4_647
291@, 292@ = get_random_car_model_in_memory True
if 
  291@ <> -1
goto_if_false @CASINO4_738
289@ = create_car 291@ {x} 2051.5439 {y} 1100.511 {z} 9.6719
set_vehicle_to_fade_in 289@ {alpha} 0
set_car_heading 289@ {heading} 183.2183
290@ = create_random_char_as_driver 289@
car_wander_randomly 289@
mark_char_as_no_longer_needed 290@
mark_car_as_no_longer_needed 289@

:CASINO4_738
295@ += 1
goto @CASINO4_839

:CASINO4_752
290@ = create_random_char 2033.856 {y} 1041.804 {z} 9.8203
set_char_heading 290@ {heading} 181.0345
task_follow_path_nodes_to_coord 290@ {x} 2032.257 {y} 986.0109 {z} 9.813 {speed} MoveState.Walk {time} -2
mark_char_as_no_longer_needed 290@
295@ = 0
goto @CASINO4_839
295@ = 0

:CASINO4_832
goto @CASINO4_839

:CASINO4_839
TIMERA = 0

:CASINO4_846
wait 0
goto @CASINO4_334

:CASINO4_857
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO4_870
if 
  get_fading_status 
goto_if_false @CASINO4_894
wait 0
goto @CASINO4_870

:CASINO4_894
clear_cutscene 
make_player_gang_reappear 
release_weather 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
39@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
set_group_decision_maker $Players_Group {handleOrTemplate} 39@
37@ = load_char_decision_maker DecisionMakerType.Tough
38@ = load_char_decision_maker DecisionMakerType.Empty
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:CASINO4_957
if 
  get_fading_status 
goto_if_false @CASINO4_981
wait 0
goto @CASINO4_957

:CASINO4_981
mark_char_as_no_longer_needed 290@
mark_car_as_no_longer_needed 289@
wait 0
load_special_character 1 {modelName} 'MACCER'
load_special_character 2 {modelName} 'PAUL'
load_all_models_now 

:CASINO4_1023
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
goto_if_false @CASINO4_1053
wait 0
goto @CASINO4_1023

:CASINO4_1053
switch_widescreen False
44@ = 0
45@ = 0
46@ = 0
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
55@ = 0
54@ = 0
56@ = 0
57@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
62@ = 0
98@ = 0
63@ = 0
64@ = 0
65@ = 0
91@ = 0.0
92@ = 0.0
93@ = 0.0
95@ = 0.0
96@ = 0.0
97@ = 0.0
99@ = 0
100@ = 0

:CASINO4_1292
if 
  4 > 99@
goto_if_false @CASINO4_1335
101@(99@,4i) = 0
99@ += 1
goto @CASINO4_1292

:CASINO4_1335
119@ = 0
120@ = 0
135@ = 0
121@ = 0
122@ = 0
123@ = 0
133@ = 0
134@ = 0
124@ = 0
125@ = 0
126@ = 0
130@ = 0
131@ = 0
132@ = 99999
94@ = 0.0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
271@ = 0
272@ = 0
273@ = 0
274@ = 0
275@ = 0
276@ = 0
277@ = 0
282@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
127@ = 0
128@ = 0
set_var_text_label s$cas4_text[7] = 'CAS4_BA'
set_var_text_label s$cas4_text[8] = 'CAS4_BB'
set_var_text_label s$cas4_text[9] = 'CAS4_CA'
set_var_text_label s$cas4_text[10] = 'CAS4_CB'
set_var_text_label s$cas4_text[11] = 'CAS4_CC'
set_var_text_label s$cas4_text[12] = 'CAS4_CD'
set_var_text_label s$cas4_text[13] = 'CAS4_CE'
set_var_text_label s$cas4_text[14] = 'CAS4_CF'
set_var_text_label s$cas4_text[15] = 'CAS4_CG'
set_var_text_label s$cas4_text[16] = 'CAS4_CH'
set_var_text_label s$cas4_text[17] = 'CAS4_CJ'
set_var_text_label s$cas4_text[18] = 'CAS4_CK'
set_var_text_label s$cas4_text[19] = 'CAS4_CL'
set_var_text_label s$cas4_text[20] = 'CAS4_DA'
set_var_text_label s$cas4_text[21] = 'CAS4_DB'
set_var_text_label s$cas4_text[22] = 'CAS4_DC'
set_var_text_label s$cas4_text[23] = 'CAS4_DD'
set_var_text_label s$cas4_text[24] = 'CAS4_DE'
set_var_text_label s$cas4_text[25] = 'CAS4_EA'
set_var_text_label s$cas4_text[26] = 'CAS4_EB'
set_var_text_label s$cas4_text[27] = 'CAS4_EC'
set_var_text_label s$cas4_text[28] = 'CAS4_ED'
set_var_text_label s$cas4_text[29] = 'CAS4_EE'
set_var_text_label s$cas4_text[30] = 'CAS4_EF'
set_var_text_label s$cas4_text[31] = 'CAS4_EG'
set_var_text_label s$cas4_text[32] = 'CAS4_EH'
set_var_text_label s$cas4_text[33] = 'CAS4_FA'
set_var_text_label s$cas4_text[34] = 'CAS4_FB'
set_var_text_label s$cas4_text[35] = 'CAS4_FC'
set_var_text_label s$cas4_text[36] = 'CAS4_GA'
set_var_text_label s$cas4_text[37] = 'CAS4_GB'
set_var_text_label s$cas4_text[38] = 'CAS4_HA'
set_var_text_label s$cas4_text[39] = 'CAS4_HB'
set_var_text_label s$cas4_text[40] = 'CAS4_HC'
set_var_text_label s$cas4_text[41] = 'CAS4_HD'
set_var_text_label s$cas4_text[42] = 'CAS4_JA'
set_var_text_label s$cas4_text[43] = 'CAS4_JB'
set_var_text_label s$cas4_text[44] = 'CAS4_JC'
set_var_text_label s$cas4_text[45] = 'CAS4_JD'
set_var_text_label s$cas4_text[46] = 'CAS4_KA'
set_var_text_label s$cas4_text[47] = 'CAS4_KB'
set_var_text_label s$cas4_text[48] = 'CAS4_KC'
set_var_text_label s$cas4_text[49] = 'CAS4_KD'
set_var_text_label s$cas4_text[50] = 'CAS4_KE'
set_var_text_label s$cas4_text[51] = 'CAS4_KF'
set_var_text_label s$cas4_text[52] = 'CAS4_KG'
set_var_text_label s$cas4_text[53] = 'CAS4_KH'
set_var_text_label s$cas4_text[54] = 'CAS4_KJ'
set_var_text_label s$cas4_text[55] = 'CAS4_LA'
set_var_text_label s$cas4_text[56] = 'CAS4_LB'
set_var_text_label s$cas4_text[57] = 'CAS4_LC'
set_var_text_label s$cas4_text[58] = 'CAS4_LD'
set_var_text_label s$cas4_text[59] = 'CAS4_LE'
set_var_text_label s$cas4_text[60] = 'CAS4_MA'
set_var_text_label s$cas4_text[61] = 'CAS4_NA'
set_var_text_label s$cas4_text[62] = 'CAS4_NB'
set_var_text_label s$cas4_text[63] = 'CAS4_NC'
set_var_text_label s$cas4_text[64] = 'CAS4_ND'
set_var_text_label s$cas4_text[65] = 'CAS4_NE'
set_var_text_label s$cas4_text[66] = 'CAS4_NF'
set_var_text_label s$cas4_text[67] = 'CAS4_NG'
set_var_text_label s$cas4_text[68] = 'CAS4_NH'
set_var_text_label s$cas4_text[69] = 'CAS4_NJ'
set_var_text_label s$cas4_text[70] = 'CAS4_OA'
set_var_text_label s$cas4_text[71] = 'CAS4_OB'
set_var_text_label s$cas4_text[72] = 'CAS4_OC'
set_var_text_label s$cas4_text[73] = 'CAS4_OD'
set_var_text_label s$cas4_text[74] = 'CAS4_OE'
set_var_text_label s$cas4_text[75] = 'CAS4_OF'
set_var_text_label s$cas4_text[76] = 'CAS4_OG'
set_var_text_label s$cas4_text[77] = 'CAS4_OH'
set_var_text_label s$cas4_text[78] = 'CAS4_OJ'
set_var_text_label s$cas4_text[79] = 'CAS4_OK'
set_var_text_label s$cas4_text[80] = 'CAS4_OL'
set_var_text_label s$cas4_text[81] = 'CAS4_OM'
set_var_text_label s$cas4_text[82] = 'CAS4_PA'
set_var_text_label s$cas4_text[83] = 'CAS4_PB'
set_var_text_label s$cas4_text[85] = 'CAS4_PD'
set_var_text_label s$cas4_text[86] = 'CAS4_PE'
set_var_text_label s$cas4_text[87] = 'CAS4_PF'
set_var_text_label s$cas4_text[88] = 'CAS4_PG'
set_var_text_label s$cas4_text[89] = 'CAS4_PH'
set_var_text_label s$cas4_text[90] = 'CAS4_PJ'
set_var_text_label s$cas4_text[91] = 'CAS4_PK'
set_var_text_label s$cas4_text[92] = 'CAS4_QA'
set_var_text_label s$cas4_text[93] = 'CAS4_QB'
set_var_text_label s$cas4_text[94] = 'CAS4_RA'
set_var_text_label s$cas4_text[95] = 'CAS4_RB'
set_var_text_label s$cas4_text[97] = 'CAS4_RD'
set_var_text_label s$cas4_text[98] = 'CAS4_RE'
set_var_text_label s$cas4_text[99] = 'CAS4_SA'
set_var_text_label s$cas4_text[100] = 'CAS4_TA'
set_var_text_label s$cas4_text[101] = 'CAS4_TB'
set_var_text_label s$cas4_text[102] = 'CAS4_TC'
set_var_text_label s$cas4_text[103] = 'CAS4_FD'
set_var_text_label s$cas4_text[104] = 'CAS4_FE'
set_var_text_label s$cas4_text[105] = 'CAS4_FF'
set_var_text_label s$cas4_text[106] = 'CAS4_FG'
set_var_text_label s$cas4_text[107] = 'CAS4_FH'
set_var_text_label s$cas4_text[108] = 'CAS4_FJ'
set_var_text_label s$cas4_text[109] = 'CAS4_FK'
set_var_text_label s$cas4_text[110] = 'CAS4_FL'
set_var_text_label s$cas4_text[111] = 'MACX_AF'
set_var_text_label s$cas4_text[112] = 'MACX_AG'
set_var_text_label s$cas4_text[113] = 'MACX_AI'
set_lvar_int_to_constant 145@ = 7800
set_lvar_int_to_constant 146@ = 7801
set_lvar_int_to_constant 147@ = 7802
set_lvar_int_to_constant 148@ = 7803
set_lvar_int_to_constant 149@ = 7804
set_lvar_int_to_constant 150@ = 7805
set_lvar_int_to_constant 151@ = 7806
set_lvar_int_to_constant 152@ = 7807
set_lvar_int_to_constant 153@ = 7808
set_lvar_int_to_constant 154@ = 7809
set_lvar_int_to_constant 155@ = 7810
set_lvar_int_to_constant 156@ = 7811
set_lvar_int_to_constant 157@ = 7812
set_lvar_int_to_constant 158@ = 7813
set_lvar_int_to_constant 159@ = 7814
set_lvar_int_to_constant 160@ = 7815
set_lvar_int_to_constant 161@ = 7816
set_lvar_int_to_constant 162@ = 7817
set_lvar_int_to_constant 163@ = 7818
set_lvar_int_to_constant 164@ = 7819
set_lvar_int_to_constant 165@ = 7820
set_lvar_int_to_constant 166@ = 7821
set_lvar_int_to_constant 167@ = 7822
set_lvar_int_to_constant 168@ = 7823
set_lvar_int_to_constant 169@ = 7824
set_lvar_int_to_constant 170@ = 7825
set_lvar_int_to_constant 171@ = 7826
set_lvar_int_to_constant 172@ = 7827
set_lvar_int_to_constant 173@ = 7828
set_lvar_int_to_constant 174@ = 7837
set_lvar_int_to_constant 175@ = 7838
set_lvar_int_to_constant 176@ = 7839
set_lvar_int_to_constant 177@ = 7840
set_lvar_int_to_constant 178@ = 7841
set_lvar_int_to_constant 179@ = 7842
set_lvar_int_to_constant 180@ = 7843
set_lvar_int_to_constant 181@ = 7844
set_lvar_int_to_constant 182@ = 7845
set_lvar_int_to_constant 183@ = 7846
set_lvar_int_to_constant 184@ = 7847
set_lvar_int_to_constant 185@ = 7848
set_lvar_int_to_constant 186@ = 7849
set_lvar_int_to_constant 187@ = 7850
set_lvar_int_to_constant 188@ = 7851
set_lvar_int_to_constant 189@ = 7852
set_lvar_int_to_constant 190@ = 7853
set_lvar_int_to_constant 191@ = 7854
set_lvar_int_to_constant 192@ = 7855
set_lvar_int_to_constant 193@ = 7856
set_lvar_int_to_constant 194@ = 7857
set_lvar_int_to_constant 195@ = 7858
set_lvar_int_to_constant 196@ = 7859
set_lvar_int_to_constant 197@ = 7860
set_lvar_int_to_constant 198@ = 7861
set_lvar_int_to_constant 199@ = 7862
set_lvar_int_to_constant 200@ = 7863
set_lvar_int_to_constant 201@ = 7864
set_lvar_int_to_constant 202@ = 7865
set_lvar_int_to_constant 203@ = 7866
set_lvar_int_to_constant 204@ = 7867
set_lvar_int_to_constant 205@ = 7868
set_lvar_int_to_constant 206@ = 7869
set_lvar_int_to_constant 207@ = 7870
set_lvar_int_to_constant 208@ = 7871
set_lvar_int_to_constant 209@ = 7872
set_lvar_int_to_constant 210@ = 7873
set_lvar_int_to_constant 211@ = 7874
set_lvar_int_to_constant 212@ = 7875
set_lvar_int_to_constant 213@ = 7876
set_lvar_int_to_constant 214@ = 7877
set_lvar_int_to_constant 215@ = 7878
set_lvar_int_to_constant 216@ = 7879
set_lvar_int_to_constant 217@ = 7880
set_lvar_int_to_constant 218@ = 7881
set_lvar_int_to_constant 219@ = 7882
set_lvar_int_to_constant 220@ = 7883
set_lvar_int_to_constant 221@ = 7884
set_lvar_int_to_constant 223@ = 7885
set_lvar_int_to_constant 224@ = 7886
set_lvar_int_to_constant 225@ = 7887
set_lvar_int_to_constant 226@ = 7888
set_lvar_int_to_constant 227@ = 7889
set_lvar_int_to_constant 228@ = 7890
set_lvar_int_to_constant 229@ = 7891
set_lvar_int_to_constant 230@ = 7892
set_lvar_int_to_constant 231@ = 7893
set_lvar_int_to_constant 232@ = 7894
set_lvar_int_to_constant 233@ = 7895
set_lvar_int_to_constant 235@ = 7896
set_lvar_int_to_constant 236@ = 7897
set_lvar_int_to_constant 237@ = 7898
set_lvar_int_to_constant 238@ = 7900
set_lvar_int_to_constant 239@ = 7901
set_lvar_int_to_constant 240@ = 7902
set_lvar_int_to_constant 241@ = 7829
set_lvar_int_to_constant 242@ = 7830
set_lvar_int_to_constant 243@ = 7831
set_lvar_int_to_constant 244@ = 7832
set_lvar_int_to_constant 245@ = 7833
set_lvar_int_to_constant 246@ = 7834
set_lvar_int_to_constant 247@ = 7835
set_lvar_int_to_constant 248@ = 7836
set_lvar_int_to_constant 249@ = 23205
set_lvar_int_to_constant 250@ = 23206
set_lvar_int_to_constant 251@ = 23208
set_lvar_int_to_constant 286@ = 14200
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
287@ = 0
288@ = 0
283@ = 0
284@ = 0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 1
make_room_in_player_gang_for_mission_peds 2
wait 1000

:CASINO4_4043
wait 0
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @CASINO4_4082
set_char_coordinates $scplayer {x} -725.0 {y} 2392.6899 {z} 128.0

:CASINO4_4082
if 
is_ps2_keyboard_key_pressed 50
goto_if_false @CASINO4_4117
set_char_coordinates $scplayer {x} -45.0 {y} 2322.0 {z} 23.0

:CASINO4_4117
if 
is_ps2_keyboard_key_pressed 51
goto_if_false @CASINO4_4152
set_char_coordinates $scplayer {x} 2062.0 {y} 1362.0 {z} 10.7

:CASINO4_4152
if 
is_ps2_keyboard_key_pressed 71
goto_if_false @CASINO4_4175
TIMERA = 27000

:CASINO4_4175
if 
is_ps2_keyboard_key_pressed 99
goto_if_false @CASINO4_4249
122@ = 0
123@ = 0
134@ = 0
133@ = 0
124@ = 0
125@ = 0
126@ = 0
94@ = 0.0

:CASINO4_4249
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @CASINO4_4821
252@ = 103
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
if 
  255@ == 0
goto_if_false @CASINO4_4343
252@ = 103
257@ = 103
260@ = get_game_timer 

:CASINO4_4343
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_4821
if 
  252@ <> 0
goto_if_false @CASINO4_4704
if 
  255@ == 0
goto_if_false @CASINO4_4429
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_4422
clear_mission_audio 254@

:CASINO4_4422
255@ = 1

:CASINO4_4429
if 
  255@ == 1
goto_if_false @CASINO4_4466
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_4466
if 
  255@ == 2
goto_if_false @CASINO4_4526
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_4526
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_4526
if 
  255@ == 3
goto_if_false @CASINO4_4704
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_4643
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_4608
253@ = 2
254@ = 1
goto @CASINO4_4622

:CASINO4_4608
253@ = 1
254@ = 2

:CASINO4_4622
252@ = 0
255@ = 0
goto @CASINO4_4704

:CASINO4_4643
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_4704
if 
  102 > 252@
goto_if_false @CASINO4_4704
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_4704
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_4814
if 
  255@ == 0
goto_if_false @CASINO4_4814
if 
  110 > 257@
goto_if_false @CASINO4_4807
257@ += 1
set_lvar_int_to_lvar_int 252@ = 257@
260@ = get_game_timer 
goto @CASINO4_4814

:CASINO4_4807
256@ = 1

:CASINO4_4814
goto @CASINO4_4343

:CASINO4_4821
if 
is_ps2_keyboard_key_pressed 48
goto_if_false @CASINO4_4852
TIMERA = 27000
TIMERB = 27000

:CASINO4_4852
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO4_4874
goto @CASINO4_45870

:CASINO4_4874
if and
  47@ == 0
  48@ == 0
goto_if_false @CASINO4_5063

:CASINO4_4899
if 
  get_fading_status 
goto_if_false @CASINO4_4923
wait 0
goto @CASINO4_4899

:CASINO4_4923
66@ = add_blip_for_coord -735.0 {y} 2398.6899 {z} 126.0
set_coord_blip_appearance 66@ {color} CoordAppearance.Friend
set_char_heading $scplayer {heading} 265.5486
set_camera_behind_player 
print 'CAS4_01' {time} 10000 {flag} 1
48@ = 1
do_fade 1500 {direction} Fade.In

:CASINO4_4992
if 
  get_fading_status 
goto_if_false @CASINO4_5016
wait 0
goto @CASINO4_4992

:CASINO4_5016
set_player_control $player1 {state} True
if 
  $played_casino4_before == 1
goto_if_false @CASINO4_5063
set_up_skip -698.0 {y} 2398.0 {z} 131.0 {heading} 60.0

:CASINO4_5063
if and
  47@ == 0
  48@ == 1
goto_if_false @CASINO4_5645
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_5112
77@ = store_car_char_is_in $scplayer

:CASINO4_5112
if 
  locate_char_any_means_3d $scplayer {x} -735.0 {y} 2398.6899 {z} 126.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO4_5179
remove_blip 66@
47@ = 1
goto @CASINO4_5645

:CASINO4_5179
if 
  44@ == 0
goto_if_false @CASINO4_5645
if 
  locate_char_any_means_3d $scplayer {x} -735.0 {y} 2398.6899 {z} 126.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @CASINO4_5645
if 
  $played_casino4_before == 0
goto_if_false @CASINO4_5270
$played_casino4_before = 1

:CASINO4_5270
request_animation "SUNBATHE"

:CASINO4_5282
if 
  not has_animation_loaded "SUNBATHE"
goto_if_false @CASINO4_5316
wait 0
goto @CASINO4_5282

:CASINO4_5316
71@ = create_char PedType.Special {modelId} 290 {x} -751.1198 {y} 2395.199 {z} 128.2378
set_char_heading 71@ {heading} 246.0
set_char_decision_maker 71@ {handleOrTemplate} 38@
set_char_never_targetted 71@ {state} True
set_char_suffers_critical_hits 71@ {state} False
72@ = create_char PedType.Special {modelId} 291 {x} -752.2823 {y} 2391.054 {z} 127.8083
set_char_heading 72@ {heading} 220.2451
set_char_decision_maker 72@ {handleOrTemplate} 38@
set_char_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_proofs 72@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_never_targetted 72@ {state} True
set_char_suffers_critical_hits 72@ {state} False
81@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} -1
task_play_anim -1 {animationName} "SBATHE_F_LIEB2SIT" {animationFile} "SUNBATHE" {blendSpeed} 60000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 81@
perform_sequence_task 72@ {sequence} 81@
clear_sequence_task 81@
80@ = open_sequence_task 
task_look_at_char -1 {target} $scplayer {time} -1
task_play_anim -1 {animationName} "SBATHE_F_LIEB2SIT" {animationFile} "SUNBATHE" {blendSpeed} 60000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 80@
perform_sequence_task 71@ {sequence} 80@
clear_sequence_task 80@
set_char_relationship 71@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_relationship 72@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
44@ = 1

:CASINO4_5645
if and
  47@ == 1
  49@ == 0
goto_if_false @CASINO4_6615
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:CASINO4_5684
if 
  get_fading_status 
goto_if_false @CASINO4_5708
wait 0
goto @CASINO4_5684

:CASINO4_5708
switch_widescreen True
make_player_gang_disappear 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
force_weather WeatherType.SunnyDesert
delete_char 71@
delete_char 72@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
remove_animation "SUNBATHE"

:CASINO4_5765
if 
  get_fading_status 
goto_if_false @CASINO4_5789
wait 0
goto @CASINO4_5765

:CASINO4_5789
clear_area -738.0978 {y} 2391.592 {z} 127.9015 {radius} 100.0 {clearParticles} True
if 
  not is_car_dead 77@
goto_if_false @CASINO4_5897
if 
  locate_car_3d 77@ {x} -738.0 {y} 2391.0 {z} 127.0 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_5897
set_car_coordinates 77@ {x} -735.0 {y} 2398.6899 {z} 126.0

:CASINO4_5897
make_player_safe_for_cutscene $player1
load_cutscene 'CAS_4B'

:CASINO4_5913
if 
  not has_cutscene_loaded 
goto_if_false @CASINO4_5937
wait 0
goto @CASINO4_5913

:CASINO4_5937
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO4_5946
if 
  not has_cutscene_finished 
goto_if_false @CASINO4_5970
wait 0
goto @CASINO4_5946

:CASINO4_5970
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO4_5985
if 
  get_fading_status 
goto_if_false @CASINO4_6009
wait 0
goto @CASINO4_5985

:CASINO4_6009
release_weather 
add_char_decision_maker_event_response 38@ {event} Event.VehicleOnFire {taskId} TaskId.ComplexLeaveCarAndFlee {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} False
71@ = create_char PedType.Special {modelId} 290 {x} -751.1198 {y} 2395.199 {z} 128.2378
set_char_decision_maker 71@ {handleOrTemplate} 38@
set_char_never_targetted 71@ {state} True
set_char_suffers_critical_hits 71@ {state} False
72@ = create_char PedType.Special {modelId} 291 {x} -752.2823 {y} 2391.054 {z} 127.8083
set_char_decision_maker 72@ {handleOrTemplate} 38@
set_char_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_proofs 72@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_never_targetted 72@ {state} True
set_char_suffers_critical_hits 72@ {state} False
set_char_relationship 71@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_relationship 72@ {relationshipType} RelationshipType.Respect {pedType} PedType.Player1
set_char_max_health 72@ {maxHealth} 200
set_char_health 72@ {health} 200
set_char_max_health 71@ {maxHealth} 200
set_char_health 71@ {health} 200
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_6300
set_char_coordinates 72@ {x} -738.0978 {y} 2385.592 {z} 124.9015
set_char_heading 72@ {heading} 0.0
set_char_coordinates 71@ {x} -736.8244 {y} 2385.1021 {z} 125.0871
set_char_heading 71@ {heading} 0.0

:CASINO4_6300
request_model 478
request_model 32
request_model 34
request_animation "SMOKING"
request_model 346
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_6395
clear_char_tasks $scplayer
clear_char_tasks 72@
clear_char_tasks 71@
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True

:CASINO4_6395
if or
  not has_model_loaded 478
  not has_model_loaded 32
  not has_model_loaded 34
  not has_animation_loaded "SMOKING"
goto_if_false @CASINO4_6441
wait 0
goto @CASINO4_6395

:CASINO4_6441
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO4_6484
set_char_coordinates $scplayer {x} -738.0603 {y} 2388.3459 {z} 125.1527
goto @CASINO4_6504

:CASINO4_6484
warp_char_from_car_to_coord $scplayer {x} -738.0603 {y} 2388.3459 {z} 125.1527

:CASINO4_6504
set_char_heading $scplayer {heading} 176.0
request_animation "PAULNMAC"

:CASINO4_6526
if 
  not has_animation_loaded "PAULNMAC"
goto_if_false @CASINO4_6560
wait 0
goto @CASINO4_6526

:CASINO4_6560
restore_camera_jumpcut 
switch_widescreen False
make_player_gang_reappear 
do_fade 1500 {direction} Fade.In

:CASINO4_6575
if 
  get_fading_status 
goto_if_false @CASINO4_6599
wait 0
goto @CASINO4_6575

:CASINO4_6599
set_player_control $player1 {state} True
clear_prints 
49@ = 1

:CASINO4_6615
if 
  44@ == 1
goto_if_false @CASINO4_6762
if or
  is_char_dead 72@
  is_char_dead 71@
goto_if_false @CASINO4_6762
clear_prints 
if and
  is_char_dead 71@
  is_char_dead 72@
goto_if_false @CASINO4_6700
print 'CAS4_47' {time} 3000 {flag} 1
goto @CASINO4_6755

:CASINO4_6700
if 
  is_char_dead 71@
goto_if_false @CASINO4_6739
print 'CAS4_05' {time} 3000 {flag} 1
goto @CASINO4_6755

:CASINO4_6739
print 'CAS4_04' {time} 3000 {flag} 1

:CASINO4_6755
goto @CASINO4_45852

:CASINO4_6762
if 
  51@ == 0
goto_if_false @CASINO4_22496
if 
  49@ == 1
goto_if_false @CASINO4_22496
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @CASINO4_6887
77@ = store_car_char_is_in $scplayer
135@ = get_maximum_number_of_passengers 77@
if 
  119@ == 1
goto_if_false @CASINO4_6855
135@ -= 1

:CASINO4_6855
if 
  120@ == 1
goto_if_false @CASINO4_6880
135@ -= 1

:CASINO4_6880
goto @CASINO4_7224

:CASINO4_6887
if 
  not is_char_dead 72@
goto_if_false @CASINO4_7053
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_7053
if 
  119@ == 1
goto_if_false @CASINO4_6996
if 
  not is_char_dead 72@
goto_if_false @CASINO4_6996
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_6974
task_leave_any_car 72@

:CASINO4_6974
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
119@ = 0

:CASINO4_6996
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_7053
90@ = get_script_task_status 72@ {taskId} 1587
if and
  not is_int_lvar_equal_to_constant 90@ == 1
  not is_int_lvar_equal_to_constant 90@ == 0
goto_if_false @CASINO4_7053
task_leave_any_car 72@

:CASINO4_7053
if 
  not is_char_dead 71@
goto_if_false @CASINO4_7203
if 
  120@ == 1
goto_if_false @CASINO4_7146
if 
  not is_char_dead 71@
goto_if_false @CASINO4_7146
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_7124
task_leave_any_car 71@

:CASINO4_7124
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
120@ = 0

:CASINO4_7146
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_7203
90@ = get_script_task_status 71@ {taskId} 1587
if and
  not is_int_lvar_equal_to_constant 90@ == 1
  not is_int_lvar_equal_to_constant 90@ == 0
goto_if_false @CASINO4_7203
task_leave_any_car 71@

:CASINO4_7203
130@ = 0
131@ = 0
135@ = 0

:CASINO4_7224
if 
  121@ > 0
goto_if_false @CASINO4_7326
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_7326
if 
  135@ > 1
goto_if_false @CASINO4_7326
clear_char_tasks 72@
clear_char_tasks 71@
274@ = 0
275@ = 0
276@ = 0
277@ = 0
121@ = 0

:CASINO4_7326
if 
  121@ == 0
goto_if_false @CASINO4_8633
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_8626
if 
  not is_char_dead 72@
goto_if_false @CASINO4_7984
if 
  119@ == 0
goto_if_false @CASINO4_7898
if 
  locate_char_in_car_char_3d $scplayer {target} 72@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_7850
if 
  135@ > 0
goto_if_false @CASINO4_7606
if 
  not is_car_dead 77@
goto_if_false @CASINO4_7599
if 
  is_char_sitting_in_car 72@ {vehicle} 77@
goto_if_false @CASINO4_7509
remove_blip 67@
135@ -= 1
119@ = 1
goto @CASINO4_7599

:CASINO4_7509
if 
  130@ == 0
goto_if_false @CASINO4_7553
task_enter_car_as_passenger 72@ {vehicle} 77@ {time} -2 {seat} -1
130@ = 1
goto @CASINO4_7599

:CASINO4_7553
90@ = get_script_task_status 72@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_7599
clear_char_tasks 72@
task_enter_car_as_passenger 72@ {vehicle} 77@ {time} -2 {seat} -1

:CASINO4_7599
goto @CASINO4_7843

:CASINO4_7606
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @CASINO4_7843
if 
  120@ == 1
goto_if_false @CASINO4_7843
if 
  not is_char_dead 71@
goto_if_false @CASINO4_7678
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
120@ = 0

:CASINO4_7678
if 
  121@ == 0
goto_if_false @CASINO4_7843
89@ = open_sequence_task 
task_goto_char -1 {target} 71@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 71@
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
89@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_7765
task_leave_any_car -1

:CASINO4_7765
task_goto_char -1 {target} 72@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 72@
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@
clear_prints 
print 'CAS4_44' {time} 10000 {flag} 1
282@ = 1
132@ = 6
121@ = 1

:CASINO4_7843
goto @CASINO4_7891

:CASINO4_7850
90@ = get_script_task_status 72@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_7884
clear_char_tasks 72@

:CASINO4_7884
130@ = 0

:CASINO4_7891
goto @CASINO4_7984

:CASINO4_7898
if 
  not locate_char_in_car_char_3d $scplayer {target} 72@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_7984
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_7955
task_leave_any_car 72@

:CASINO4_7955
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
130@ = 0
119@ = 0

:CASINO4_7984
if 
  121@ == 0
goto_if_false @CASINO4_8626
if 
  not is_char_dead 71@
goto_if_false @CASINO4_8626
if 
  120@ == 0
goto_if_false @CASINO4_8540
if 
  locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_8492
if 
  135@ > 0
goto_if_false @CASINO4_8248
if 
  not is_car_dead 77@
goto_if_false @CASINO4_8241
if 
  is_char_sitting_in_car 71@ {vehicle} 77@
goto_if_false @CASINO4_8151
remove_blip 68@
135@ -= 1
120@ = 1
goto @CASINO4_8241

:CASINO4_8151
if 
  131@ == 0
goto_if_false @CASINO4_8195
task_enter_car_as_passenger 71@ {vehicle} 77@ {time} -2 {seat} -1
131@ = 1
goto @CASINO4_8241

:CASINO4_8195
90@ = get_script_task_status 71@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8241
clear_char_tasks 71@
task_enter_car_as_passenger 71@ {vehicle} 77@ {time} -2 {seat} -1

:CASINO4_8241
goto @CASINO4_8485

:CASINO4_8248
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @CASINO4_8485
if 
  119@ == 1
goto_if_false @CASINO4_8485
if 
  not is_char_dead 72@
goto_if_false @CASINO4_8320
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
119@ = 0

:CASINO4_8320
if 
  121@ == 0
goto_if_false @CASINO4_8485
89@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_8363
task_leave_any_car -1

:CASINO4_8363
task_goto_char -1 {target} 71@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 71@
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
89@ = open_sequence_task 
task_goto_char -1 {target} 72@ {time} -1 {radius} 2.0
task_turn_char_to_face_char -1 {target} 72@
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@
clear_prints 
print 'CAS4_44' {time} 10000 {flag} 1
282@ = 2
132@ = 6
121@ = 1

:CASINO4_8485
goto @CASINO4_8533

:CASINO4_8492
90@ = get_script_task_status 71@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_8533
clear_char_tasks 71@
131@ = 0

:CASINO4_8533
goto @CASINO4_8626

:CASINO4_8540
if 
  not locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_8626
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_8597
task_leave_any_car 71@

:CASINO4_8597
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
131@ = 0
120@ = 0

:CASINO4_8626
goto @CASINO4_10210

:CASINO4_8633
if 
  121@ == 1
goto_if_false @CASINO4_8802
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_8795
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8795
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_8795
40@, 41@, 42@ = get_offset_from_char_in_world_coords 71@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.0
task_char_slide_to_coord 72@ {x} 40@ {y} 41@ {z} 42@ {angle} 43@ {radius} 0.5
gosub @CASINO4_38628
121@ = 2

:CASINO4_8795
goto @CASINO4_10210

:CASINO4_8802
if 
  121@ == 2
goto_if_false @CASINO4_10210
if 
  252@ <> 0
goto_if_false @CASINO4_9159
if 
  255@ == 0
goto_if_false @CASINO4_8884
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_8877
clear_mission_audio 254@

:CASINO4_8877
255@ = 1

:CASINO4_8884
if 
  255@ == 1
goto_if_false @CASINO4_8921
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_8921
if 
  255@ == 2
goto_if_false @CASINO4_8981
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_8981
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_8981
if 
  255@ == 3
goto_if_false @CASINO4_9159
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_9098
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_9063
253@ = 2
254@ = 1
goto @CASINO4_9077

:CASINO4_9063
253@ = 1
254@ = 2

:CASINO4_9077
252@ = 0
255@ = 0
goto @CASINO4_9159

:CASINO4_9098
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_9159
if 
  110 > 252@
goto_if_false @CASINO4_9159
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_9159
if 
  282@ == 1
goto_if_false @CASINO4_9730
if 
  275@ == 0
goto_if_false @CASINO4_9723
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_9723
switch_start 274@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_9651 {caseNum1} 0 {caseLabel1} @CASINO4_9271 {caseNum2} 1 {caseLabel2} @CASINO4_9315 {caseNum3} 2 {caseLabel3} @CASINO4_9399 {caseNum4} 3 {caseLabel4} @CASINO4_9483 {caseNum5} 4 {caseLabel5} @CASINO4_9567 {caseNum6} -1 {caseLabel6} @CASINO4_9723 {caseNum7} -1 {caseLabel7} @CASINO4_9723

:CASINO4_9271
if 
  255@ == 0
goto_if_false @CASINO4_9308
252@ = 9
274@ = 1
260@ = get_game_timer 

:CASINO4_9308
goto @CASINO4_9723

:CASINO4_9315
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9392
if 
  255@ == 0
goto_if_false @CASINO4_9392
252@ = 10
274@ = 2
260@ = get_game_timer 

:CASINO4_9392
goto @CASINO4_9723

:CASINO4_9399
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9476
if 
  255@ == 0
goto_if_false @CASINO4_9476
252@ = 11
274@ = 3
260@ = get_game_timer 

:CASINO4_9476
goto @CASINO4_9723

:CASINO4_9483
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9560
if 
  255@ == 0
goto_if_false @CASINO4_9560
252@ = 12
274@ = 4
260@ = get_game_timer 

:CASINO4_9560
goto @CASINO4_9723

:CASINO4_9567
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9644
if 
  255@ == 0
goto_if_false @CASINO4_9644
252@ = 19
274@ = 5
260@ = get_game_timer 

:CASINO4_9644
goto @CASINO4_9723

:CASINO4_9651
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9716
if 
  255@ == 0
goto_if_false @CASINO4_9716
275@ = 1

:CASINO4_9716
goto @CASINO4_9723

:CASINO4_9723
goto @CASINO4_10210

:CASINO4_9730
if 
  282@ == 2
goto_if_false @CASINO4_10210
if 
  277@ == 0
goto_if_false @CASINO4_10210
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10210
switch_start 276@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @CASINO4_10138 {caseNum1} 0 {caseLabel1} @CASINO4_9842 {caseNum2} 1 {caseLabel2} @CASINO4_9886 {caseNum3} 2 {caseLabel3} @CASINO4_9970 {caseNum4} 3 {caseLabel4} @CASINO4_10054 {caseNum5} -1 {caseLabel5} @CASINO4_10210 {caseNum6} -1 {caseLabel6} @CASINO4_10210 {caseNum7} -1 {caseLabel7} @CASINO4_10210

:CASINO4_9842
if 
  255@ == 0
goto_if_false @CASINO4_9879
252@ = 13
276@ = 1
260@ = get_game_timer 

:CASINO4_9879
goto @CASINO4_10210

:CASINO4_9886
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_9963
if 
  255@ == 0
goto_if_false @CASINO4_9963
252@ = 14
276@ = 2
260@ = get_game_timer 

:CASINO4_9963
goto @CASINO4_10210

:CASINO4_9970
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10047
if 
  255@ == 0
goto_if_false @CASINO4_10047
252@ = 15
276@ = 3
260@ = get_game_timer 

:CASINO4_10047
goto @CASINO4_10210

:CASINO4_10054
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10131
if 
  255@ == 0
goto_if_false @CASINO4_10131
252@ = 16
276@ = 4
260@ = get_game_timer 

:CASINO4_10131
goto @CASINO4_10210

:CASINO4_10138
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_10203
if 
  255@ == 0
goto_if_false @CASINO4_10203
277@ = 1

:CASINO4_10203
goto @CASINO4_10210

:CASINO4_10210
if or
  is_char_dead 72@
  is_char_dead 71@
goto_if_false @CASINO4_10339
clear_prints 
if and
  is_char_dead 71@
  is_char_dead 72@
goto_if_false @CASINO4_10277
print 'CAS4_47' {time} 3000 {flag} 1
goto @CASINO4_10332

:CASINO4_10277
if 
  is_char_dead 71@
goto_if_false @CASINO4_10316
print 'CAS4_05' {time} 3000 {flag} 1
goto @CASINO4_10332

:CASINO4_10316
print 'CAS4_04' {time} 3000 {flag} 1

:CASINO4_10332
goto @CASINO4_45852

:CASINO4_10339
if 
  121@ == 0
goto_if_false @CASINO4_11029
if and
  119@ == 0
  120@ == 0
goto_if_false @CASINO4_10581
if 
  135@ > 1
goto_if_false @CASINO4_10494
if 
  132@ <> 0
goto_if_false @CASINO4_10487
clear_this_print 'CAS4_19'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10487
print 'CAS4_37' {time} 7000 {flag} 1
132@ = 0

:CASINO4_10487
goto @CASINO4_10581

:CASINO4_10494
if 
  132@ <> 1
goto_if_false @CASINO4_10581
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10581
print 'CAS4_19' {time} 7000 {flag} 1
132@ = 1

:CASINO4_10581
if and
  119@ == 1
  120@ == 0
goto_if_false @CASINO4_10805
if 
  135@ > 0
goto_if_false @CASINO4_10718
if 
  132@ <> 2
goto_if_false @CASINO4_10711
clear_this_print 'CAS4_19'
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10711
print 'CAS4_03' {time} 7000 {flag} 1
132@ = 2

:CASINO4_10711
goto @CASINO4_10805

:CASINO4_10718
if 
  132@ <> 3
goto_if_false @CASINO4_10805
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10805
print 'CAS4_19' {time} 7000 {flag} 1
132@ = 3

:CASINO4_10805
if and
  119@ == 0
  120@ == 1
goto_if_false @CASINO4_11029
if 
  135@ > 0
goto_if_false @CASINO4_10942
if 
  132@ <> 4
goto_if_false @CASINO4_10935
clear_this_print 'CAS4_19'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_37'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_10935
print 'CAS4_02' {time} 7000 {flag} 1
132@ = 4

:CASINO4_10935
goto @CASINO4_11029

:CASINO4_10942
if 
  132@ <> 5
goto_if_false @CASINO4_11029
clear_this_print 'CAS4_37'
clear_this_print 'CAS4_03'
clear_this_print 'CAS4_02'
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_11029
print 'CAS4_19' {time} 7000 {flag} 1
132@ = 5

:CASINO4_11029
if 
  126@ == 0
goto_if_false @CASINO4_18452
if 
  129@ == 1
goto_if_false @CASINO4_18261
if 
  TIMERA > 30000
goto_if_false @CASINO4_18254
if 
  252@ <> 0
goto_if_false @CASINO4_11477
if 
  255@ == 0
goto_if_false @CASINO4_11148
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_11141
clear_mission_audio 254@

:CASINO4_11141
255@ = 1

:CASINO4_11148
if 
  255@ == 1
goto_if_false @CASINO4_11185
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_11185
if 
  255@ == 2
goto_if_false @CASINO4_11299
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_11299
play_mission_audio 253@
if 
  252@ <> 65
goto_if_false @CASINO4_11292
if 
  252@ <> 67
goto_if_false @CASINO4_11292
if 
  252@ <> 78
goto_if_false @CASINO4_11292
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1

:CASINO4_11292
255@ = 3

:CASINO4_11299
if 
  255@ == 3
goto_if_false @CASINO4_11477
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_11416
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_11381
253@ = 2
254@ = 1
goto @CASINO4_11395

:CASINO4_11381
253@ = 1
254@ = 2

:CASINO4_11395
252@ = 0
255@ = 0
goto @CASINO4_11477

:CASINO4_11416
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_11477
if 
  110 > 252@
goto_if_false @CASINO4_11477
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_11477
if 
  287@ <> 0
goto_if_false @CASINO4_11711
if 
  288@ == 0
goto_if_false @CASINO4_11539
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO4_11532
clear_mission_audio MissionAudioSlot.Slot3

:CASINO4_11532
288@ = 1

:CASINO4_11539
if 
  288@ == 1
goto_if_false @CASINO4_11575
load_mission_audio MissionAudioSlot.Slot3 {audioId} 285@(287@,2i)
288@ = 2

:CASINO4_11575
if 
  288@ == 2
goto_if_false @CASINO4_11660
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO4_11660
if 
  287@ == 1
goto_if_false @CASINO4_11649
if 
  not is_char_dead 71@
goto_if_false @CASINO4_11649
attach_mission_audio_to_char MissionAudioSlot.Slot3 {handle} 71@

:CASINO4_11649
play_mission_audio MissionAudioSlot.Slot3
288@ = 3

:CASINO4_11660
if 
  288@ == 3
goto_if_false @CASINO4_11711
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @CASINO4_11711
clear_mission_audio MissionAudioSlot.Slot3
287@ = 0
288@ = 0

:CASINO4_11711
if 
  5 > 122@
goto_if_false @CASINO4_15652
if and
  not is_char_dead 72@
  not is_car_dead 77@
goto_if_false @CASINO4_15645
if 
  122@ == 0
goto_if_false @CASINO4_12681
if 
  263@ == 1
goto_if_false @CASINO4_12674
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_12674
switch_start 280@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_12573 {caseNum1} 0 {caseLabel1} @CASINO4_11927 {caseNum2} 1 {caseLabel2} @CASINO4_11985 {caseNum3} 2 {caseLabel3} @CASINO4_12069 {caseNum4} 3 {caseLabel4} @CASINO4_12153 {caseNum5} 4 {caseLabel5} @CASINO4_12237 {caseNum6} 5 {caseLabel6} @CASINO4_12321 {caseNum7} 6 {caseLabel7} @CASINO4_12405
switch_continued 7 {caseLabel1} @CASINO4_12489 {caseNum2} -1 {caseLabel2} @CASINO4_12674 {caseNum3} -1 {caseLabel3} @CASINO4_12674 {caseNum4} -1 {caseLabel4} @CASINO4_12674 {caseNum5} -1 {caseLabel5} @CASINO4_12674 {caseNum6} -1 {caseLabel6} @CASINO4_12674 {caseNum7} -1 {caseLabel7} @CASINO4_12674 {caseNum8} -1 {caseLabel8} @CASINO4_12674 {caseNum9} -1 {caseLabel9} @CASINO4_12674

:CASINO4_11927
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
if 
  255@ == 0
goto_if_false @CASINO4_11978
252@ = 62
280@ = 1
260@ = get_game_timer 

:CASINO4_11978
goto @CASINO4_12674

:CASINO4_11985
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12062
if 
  255@ == 0
goto_if_false @CASINO4_12062
252@ = 63
280@ = 2
260@ = get_game_timer 

:CASINO4_12062
goto @CASINO4_12674

:CASINO4_12069
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12146
if 
  255@ == 0
goto_if_false @CASINO4_12146
252@ = 64
280@ = 3
260@ = get_game_timer 

:CASINO4_12146
goto @CASINO4_12674

:CASINO4_12153
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12230
if 
  255@ == 0
goto_if_false @CASINO4_12230
252@ = 65
280@ = 4
260@ = get_game_timer 

:CASINO4_12230
goto @CASINO4_12674

:CASINO4_12237
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12314
if 
  255@ == 0
goto_if_false @CASINO4_12314
252@ = 66
280@ = 5
260@ = get_game_timer 

:CASINO4_12314
goto @CASINO4_12674

:CASINO4_12321
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12398
if 
  255@ == 0
goto_if_false @CASINO4_12398
252@ = 67
280@ = 6
260@ = get_game_timer 

:CASINO4_12398
goto @CASINO4_12674

:CASINO4_12405
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12482
if 
  255@ == 0
goto_if_false @CASINO4_12482
252@ = 68
280@ = 7
260@ = get_game_timer 

:CASINO4_12482
goto @CASINO4_12674

:CASINO4_12489
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12566
if 
  255@ == 0
goto_if_false @CASINO4_12566
252@ = 69
280@ = 8
260@ = get_game_timer 

:CASINO4_12566
goto @CASINO4_12674

:CASINO4_12573
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12667
if 
  255@ == 0
goto_if_false @CASINO4_12667
132@ = 99
request_animation "FOOD"
TIMERB = 0
280@ = 0
122@ = 1

:CASINO4_12667
goto @CASINO4_12674

:CASINO4_12674
goto @CASINO4_15645

:CASINO4_12681
if 
  122@ == 1
goto_if_false @CASINO4_14083
if 
  TIMERB > 5000
goto_if_false @CASINO4_13915
switch_start 280@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @CASINO4_13814 {caseNum1} 0 {caseLabel1} @CASINO4_12846 {caseNum2} 1 {caseLabel2} @CASINO4_12890 {caseNum3} 2 {caseLabel3} @CASINO4_12974 {caseNum4} 3 {caseLabel4} @CASINO4_13058 {caseNum5} 4 {caseLabel5} @CASINO4_13142 {caseNum6} 5 {caseLabel6} @CASINO4_13226 {caseNum7} 6 {caseLabel7} @CASINO4_13310
switch_continued 7 {caseLabel1} @CASINO4_13394 {caseNum2} 8 {caseLabel2} @CASINO4_13478 {caseNum3} 9 {caseLabel3} @CASINO4_13562 {caseNum4} 10 {caseLabel4} @CASINO4_13646 {caseNum5} 11 {caseLabel5} @CASINO4_13730 {caseNum6} -1 {caseLabel6} @CASINO4_13908 {caseNum7} -1 {caseLabel7} @CASINO4_13908 {caseNum8} -1 {caseLabel8} @CASINO4_13908 {caseNum9} -1 {caseLabel9} @CASINO4_13908

:CASINO4_12846
if 
  255@ == 0
goto_if_false @CASINO4_12883
252@ = 70
280@ = 1
260@ = get_game_timer 

:CASINO4_12883
goto @CASINO4_13908

:CASINO4_12890
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_12967
if 
  255@ == 0
goto_if_false @CASINO4_12967
252@ = 71
280@ = 2
260@ = get_game_timer 

:CASINO4_12967
goto @CASINO4_13908

:CASINO4_12974
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13051
if 
  255@ == 0
goto_if_false @CASINO4_13051
252@ = 72
280@ = 3
260@ = get_game_timer 

:CASINO4_13051
goto @CASINO4_13908

:CASINO4_13058
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13135
if 
  255@ == 0
goto_if_false @CASINO4_13135
252@ = 73
280@ = 4
260@ = get_game_timer 

:CASINO4_13135
goto @CASINO4_13908

:CASINO4_13142
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13219
if 
  255@ == 0
goto_if_false @CASINO4_13219
252@ = 74
280@ = 5
260@ = get_game_timer 

:CASINO4_13219
goto @CASINO4_13908

:CASINO4_13226
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13303
if 
  255@ == 0
goto_if_false @CASINO4_13303
252@ = 75
280@ = 6
260@ = get_game_timer 

:CASINO4_13303
goto @CASINO4_13908

:CASINO4_13310
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13387
if 
  255@ == 0
goto_if_false @CASINO4_13387
252@ = 76
280@ = 7
260@ = get_game_timer 

:CASINO4_13387
goto @CASINO4_13908

:CASINO4_13394
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13471
if 
  255@ == 0
goto_if_false @CASINO4_13471
252@ = 77
280@ = 8
260@ = get_game_timer 

:CASINO4_13471
goto @CASINO4_13908

:CASINO4_13478
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13555
if 
  255@ == 0
goto_if_false @CASINO4_13555
252@ = 78
280@ = 9
260@ = get_game_timer 

:CASINO4_13555
goto @CASINO4_13908

:CASINO4_13562
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13639
if 
  255@ == 0
goto_if_false @CASINO4_13639
252@ = 79
280@ = 10
260@ = get_game_timer 

:CASINO4_13639
goto @CASINO4_13908

:CASINO4_13646
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13723
if 
  255@ == 0
goto_if_false @CASINO4_13723
252@ = 80
280@ = 11
260@ = get_game_timer 

:CASINO4_13723
goto @CASINO4_13908

:CASINO4_13730
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13807
if 
  255@ == 0
goto_if_false @CASINO4_13807
252@ = 81
280@ = 12
260@ = get_game_timer 

:CASINO4_13807
goto @CASINO4_13908

:CASINO4_13814
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_13901
if 
  255@ == 0
goto_if_false @CASINO4_13901
TIMERA = 0
124@ = 0
128@ = 1
122@ = 9999

:CASINO4_13901
goto @CASINO4_13908

:CASINO4_13908
goto @CASINO4_14076

:CASINO4_13915
if and
  has_animation_loaded "FOOD"
  is_car_stopped 77@
goto_if_false @CASINO4_14076
95@, 96@, 97@ = get_offset_from_car_in_world_coords 77@ {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
89@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 95@ {y} 96@ {z} 97@ {speed} MoveState.Sprint {time} 5000
task_play_anim -1 {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_enter_car_as_passenger -1 {vehicle} 77@ {time} -2 {seat} -1
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
122@ = 2
124@ = 1

:CASINO4_14076
goto @CASINO4_15645

:CASINO4_14083
if 
  122@ <> 3
goto_if_false @CASINO4_14951
if 
  3 > 122@
goto_if_false @CASINO4_14951
switch_start 280@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_14879 {caseNum1} 0 {caseLabel1} @CASINO4_14247 {caseNum2} 1 {caseLabel2} @CASINO4_14291 {caseNum3} 2 {caseLabel3} @CASINO4_14375 {caseNum4} 3 {caseLabel4} @CASINO4_14459 {caseNum5} 4 {caseLabel5} @CASINO4_14543 {caseNum6} 5 {caseLabel6} @CASINO4_14627 {caseNum7} 6 {caseLabel7} @CASINO4_14711
switch_continued 7 {caseLabel1} @CASINO4_14795 {caseNum2} -1 {caseLabel2} @CASINO4_14951 {caseNum3} -1 {caseLabel3} @CASINO4_14951 {caseNum4} -1 {caseLabel4} @CASINO4_14951 {caseNum5} -1 {caseLabel5} @CASINO4_14951 {caseNum6} -1 {caseLabel6} @CASINO4_14951 {caseNum7} -1 {caseLabel7} @CASINO4_14951 {caseNum8} -1 {caseLabel8} @CASINO4_14951 {caseNum9} -1 {caseLabel9} @CASINO4_14951

:CASINO4_14247
if 
  255@ == 0
goto_if_false @CASINO4_14284
252@ = 70
280@ = 1
260@ = get_game_timer 

:CASINO4_14284
goto @CASINO4_14951

:CASINO4_14291
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14368
if 
  255@ == 0
goto_if_false @CASINO4_14368
252@ = 71
280@ = 2
260@ = get_game_timer 

:CASINO4_14368
goto @CASINO4_14951

:CASINO4_14375
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14452
if 
  255@ == 0
goto_if_false @CASINO4_14452
252@ = 72
280@ = 3
260@ = get_game_timer 

:CASINO4_14452
goto @CASINO4_14951

:CASINO4_14459
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14536
if 
  255@ == 0
goto_if_false @CASINO4_14536
252@ = 73
280@ = 4
260@ = get_game_timer 

:CASINO4_14536
goto @CASINO4_14951

:CASINO4_14543
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14620
if 
  255@ == 0
goto_if_false @CASINO4_14620
252@ = 74
280@ = 5
260@ = get_game_timer 

:CASINO4_14620
goto @CASINO4_14951

:CASINO4_14627
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14704
if 
  255@ == 0
goto_if_false @CASINO4_14704
252@ = 75
280@ = 6
260@ = get_game_timer 

:CASINO4_14704
goto @CASINO4_14951

:CASINO4_14711
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14788
if 
  255@ == 0
goto_if_false @CASINO4_14788
252@ = 76
280@ = 7
260@ = get_game_timer 

:CASINO4_14788
goto @CASINO4_14951

:CASINO4_14795
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14872
if 
  255@ == 0
goto_if_false @CASINO4_14872
252@ = 77
280@ = 8
260@ = get_game_timer 

:CASINO4_14872
goto @CASINO4_14951

:CASINO4_14879
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_14944
if 
  255@ == 0
goto_if_false @CASINO4_14944
281@ = 1

:CASINO4_14944
goto @CASINO4_14951

:CASINO4_14951
if 
  122@ == 2
goto_if_false @CASINO4_15173
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15041
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
TIMERA = 0
goto @CASINO4_15166

:CASINO4_15041
if 
  is_char_playing_anim 72@ {animationName} "EAT_VOMIT_P"
goto_if_false @CASINO4_15166
95@, 96@, 97@ = get_offset_from_char_in_world_coords 72@ {xOffset} 0.355 {yOffset} -0.116 {zOffset} 0.048
94@ = get_char_anim_current_time 72@ {animationName} "EAT_VOMIT_P"
136@ = create_fx_system "PUKE" {x} 95@ {y} 96@ {z} 97@ {ignoreBoundingChecks} True
134@ = 0
94@ = 0.0
122@ = 3

:CASINO4_15166
goto @CASINO4_15645

:CASINO4_15173
if 
  122@ == 3
goto_if_false @CASINO4_15545
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15291
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
if 
  134@ == 1
goto_if_false @CASINO4_15284
stop_fx_system 136@
kill_fx_system 136@
134@ = 0

:CASINO4_15284
TIMERA = 0

:CASINO4_15291
if 
  94@ <> 1.0
goto_if_false @CASINO4_15500
if 
  134@ == 0
goto_if_false @CASINO4_15393
if 
  94@ >= 0.42
goto_if_false @CASINO4_15393
play_fx_system 136@
if 
  255@ == 0
goto_if_false @CASINO4_15386
252@ = 78
260@ = get_game_timer 

:CASINO4_15386
134@ = 1

:CASINO4_15393
if 
  not is_char_dead 72@
goto_if_false @CASINO4_15483
if 
  is_char_playing_anim 72@ {animationName} "EAT_VOMIT_P"
goto_if_false @CASINO4_15466
94@ = get_char_anim_current_time 72@ {animationName} "EAT_VOMIT_P"
goto @CASINO4_15476

:CASINO4_15466
94@ = 1.0

:CASINO4_15476
goto @CASINO4_15493

:CASINO4_15483
94@ = 1.0

:CASINO4_15493
goto @CASINO4_15538

:CASINO4_15500
stop_fx_system 136@
kill_fx_system 136@
TIMERA = 0
134@ = 0
124@ = 0
122@ = 4

:CASINO4_15538
goto @CASINO4_15645

:CASINO4_15545
90@ = get_script_task_status 72@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_15645
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
TIMERA = 0
if 
  134@ == 1
goto_if_false @CASINO4_15645
stop_fx_system 136@
kill_fx_system 136@
134@ = 0

:CASINO4_15645
goto @CASINO4_18254

:CASINO4_15652
if 
  5 > 123@
goto_if_false @CASINO4_18198
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_18191
if 
  123@ == 0
goto_if_false @CASINO4_16298
if 
  265@ == 1
goto_if_false @CASINO4_16284
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_16284
switch_start 278@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_16183 {caseNum1} 0 {caseLabel1} @CASINO4_15803 {caseNum2} 1 {caseLabel2} @CASINO4_15847 {caseNum3} 2 {caseLabel3} @CASINO4_15931 {caseNum4} 3 {caseLabel4} @CASINO4_16015 {caseNum5} 4 {caseLabel5} @CASINO4_16099 {caseNum6} -1 {caseLabel6} @CASINO4_16284 {caseNum7} -1 {caseLabel7} @CASINO4_16284

:CASINO4_15803
if 
  255@ == 0
goto_if_false @CASINO4_15840
252@ = 50
278@ = 1
260@ = get_game_timer 

:CASINO4_15840
goto @CASINO4_16284

:CASINO4_15847
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_15924
if 
  255@ == 0
goto_if_false @CASINO4_15924
252@ = 51
278@ = 2
260@ = get_game_timer 

:CASINO4_15924
goto @CASINO4_16284

:CASINO4_15931
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16008
if 
  255@ == 0
goto_if_false @CASINO4_16008
252@ = 52
278@ = 3
260@ = get_game_timer 

:CASINO4_16008
goto @CASINO4_16284

:CASINO4_16015
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16092
if 
  255@ == 0
goto_if_false @CASINO4_16092
252@ = 53
278@ = 5
260@ = get_game_timer 

:CASINO4_16092
goto @CASINO4_16284

:CASINO4_16099
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16176
if 
  255@ == 0
goto_if_false @CASINO4_16176
252@ = 54
278@ = 5
260@ = get_game_timer 

:CASINO4_16176
goto @CASINO4_16284

:CASINO4_16183
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16277
if 
  255@ == 0
goto_if_false @CASINO4_16277
132@ = 99
request_animation "FOOD"
TIMERB = 0
278@ = 0
123@ = 1

:CASINO4_16277
goto @CASINO4_16284

:CASINO4_16284
279@ = 0
goto @CASINO4_18191

:CASINO4_16298
if 
  123@ == 1
goto_if_false @CASINO4_17252
if 
  TIMERB > 5000
goto_if_false @CASINO4_17001
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_16994
switch_start 278@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @CASINO4_16882 {caseNum1} 0 {caseLabel1} @CASINO4_16411 {caseNum2} 1 {caseLabel2} @CASINO4_16455 {caseNum3} 2 {caseLabel3} @CASINO4_16539 {caseNum4} 3 {caseLabel4} @CASINO4_16630 {caseNum5} 4 {caseLabel5} @CASINO4_16714 {caseNum6} 5 {caseLabel6} @CASINO4_16798 {caseNum7} -1 {caseLabel7} @CASINO4_16994

:CASINO4_16411
if 
  255@ == 0
goto_if_false @CASINO4_16448
252@ = 55
278@ = 2
260@ = get_game_timer 

:CASINO4_16448
goto @CASINO4_16994

:CASINO4_16455
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16532
if 
  255@ == 0
goto_if_false @CASINO4_16532
252@ = 56
278@ = 3
260@ = get_game_timer 

:CASINO4_16532
goto @CASINO4_16994

:CASINO4_16539
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16623
if 
  255@ == 0
goto_if_false @CASINO4_16623
252@ = 57
278@ = 5
287@ = 1
260@ = get_game_timer 

:CASINO4_16623
goto @CASINO4_16994

:CASINO4_16630
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16707
if 
  255@ == 0
goto_if_false @CASINO4_16707
252@ = 58
278@ = 5
260@ = get_game_timer 

:CASINO4_16707
goto @CASINO4_16994

:CASINO4_16714
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16791
if 
  255@ == 0
goto_if_false @CASINO4_16791
252@ = 58
278@ = 5
260@ = get_game_timer 

:CASINO4_16791
goto @CASINO4_16994

:CASINO4_16798
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16875
if 
  255@ == 0
goto_if_false @CASINO4_16875
252@ = 59
278@ = 6
260@ = get_game_timer 

:CASINO4_16875
goto @CASINO4_16994

:CASINO4_16882
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_16987
if 
  255@ == 0
goto_if_false @CASINO4_16987
132@ = 99
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot3
287@ = 0
288@ = 0
125@ = 0
123@ = 9999

:CASINO4_16987
goto @CASINO4_16994

:CASINO4_16994
goto @CASINO4_17245

:CASINO4_17001
if and
  has_animation_loaded "PAULNMAC"
  is_car_stopped 77@
goto_if_false @CASINO4_17245
95@, 96@, 97@ = get_offset_from_car_in_world_coords 77@ {xOffset} 4.0 {yOffset} 2.0 {zOffset} 0.0
89@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 95@ {y} 96@ {z} 97@ {speed} MoveState.Sprint {time} 5000
task_play_anim -1 {animationName} "PISS_IN" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_LOOP" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_OUT" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_enter_car_as_passenger -1 {vehicle} 77@ {time} -2 {seat} -1
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@
123@ = 2
125@ = 1

:CASINO4_17245
goto @CASINO4_18191

:CASINO4_17252
if 
  123@ == 2
goto_if_false @CASINO4_17560
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_17320
123@ = 5
125@ = 0
goto @CASINO4_17553

:CASINO4_17320
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_17403
90@ = get_sequence_progress 71@
if 
  90@ > 4
goto_if_false @CASINO4_17403
if 
  133@ == 1
goto_if_false @CASINO4_17403
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17403
if 
  is_char_playing_anim 71@ {animationName} "PISS_IN"
goto_if_false @CASINO4_17553
95@, 96@, 97@ = get_offset_from_char_in_world_coords 71@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.2
94@ = get_char_anim_current_time 71@ {animationName} "PISS_IN"
137@ = create_fx_system_on_char_with_direction "PETROLCAN" {char} 71@ {xOffset} 0.0 {yOffset} 0.116 {zOffset} 0.048 {xDirection} 95@ {yDirection} 96@ {zDirection} 97@ {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 137@ {handle} 71@ {pedBone} PedBone.Pelvis1
94@ = 0.0
123@ = 3
133@ = 0

:CASINO4_17553
goto @CASINO4_18191

:CASINO4_17560
if 
  123@ == 3
goto_if_false @CASINO4_17915
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_17667
123@ = 5
125@ = 0
if 
  133@ == 1
goto_if_false @CASINO4_17660
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17660
goto @CASINO4_17750

:CASINO4_17667
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_17750
90@ = get_sequence_progress 71@
if 
  90@ > 4
goto_if_false @CASINO4_17750
if 
  133@ == 1
goto_if_false @CASINO4_17750
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17750
if 
  is_char_playing_anim 71@ {animationName} "PISS_IN"
goto_if_false @CASINO4_17908
94@ = get_char_anim_current_time 71@ {animationName} "PISS_IN"
if 
  94@ <> 1.0
goto_if_false @CASINO4_17908
if 
  133@ == 0
goto_if_false @CASINO4_17908
if 
  94@ >= 0.6
goto_if_false @CASINO4_17908
if 
  255@ == 0
goto_if_false @CASINO4_17882
252@ = 60
260@ = get_game_timer 

:CASINO4_17882
play_fx_system 137@
287@ = 1
133@ = 1
123@ = 4

:CASINO4_17908
goto @CASINO4_18191

:CASINO4_17915
90@ = get_script_task_status 71@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_18004
123@ = 5
125@ = 0
if 
  133@ == 1
goto_if_false @CASINO4_17997
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_17997
goto @CASINO4_18087

:CASINO4_18004
if 
  is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_18087
90@ = get_sequence_progress 71@
if 
  90@ > 4
goto_if_false @CASINO4_18087
if 
  133@ == 1
goto_if_false @CASINO4_18087
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_18087
if 
  is_char_playing_anim 71@ {animationName} "PISS_OUT"
goto_if_false @CASINO4_18191
94@ = get_char_anim_current_time 71@ {animationName} "PISS_OUT"
if 
  133@ == 1
goto_if_false @CASINO4_18191
if 
  94@ >= 0.42
goto_if_false @CASINO4_18191
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
133@ = 0

:CASINO4_18191
goto @CASINO4_18254

:CASINO4_18198
125@ = 0
126@ = 1
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_18254
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_18254
goto @CASINO4_18445

:CASINO4_18261
if 
  125@ == 1
goto_if_false @CASINO4_18349
if 
  not is_char_dead 71@
goto_if_false @CASINO4_18307
clear_char_tasks 71@
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_18307
stop_fx_system 137@
kill_fx_system 137@
clear_mission_audio MissionAudioSlot.Slot3
123@ = 5
125@ = 0
133@ = 0
126@ = 1

:CASINO4_18349
if 
  124@ == 1
goto_if_false @CASINO4_18445
if 
  not is_char_dead 72@
goto_if_false @CASINO4_18395
clear_char_tasks 72@
shut_char_up_for_scripted_speech 72@ {state} False

:CASINO4_18395
stop_fx_system 136@
kill_fx_system 136@
clear_mission_audio MissionAudioSlot.Slot3
remove_animation "FOOD"
122@ = 5
128@ = 1
124@ = 0
134@ = 0

:CASINO4_18445
goto @CASINO4_18522

:CASINO4_18452
if 
  133@ == 1
goto_if_false @CASINO4_18487
stop_fx_system 137@
kill_fx_system 137@
133@ = 0

:CASINO4_18487
if 
  134@ == 1
goto_if_false @CASINO4_18522
stop_fx_system 136@
kill_fx_system 136@
134@ = 0

:CASINO4_18522
if and
  120@ == 1
  119@ == 1
goto_if_false @CASINO4_18723
129@ = 1
if 
  52@ == 0
goto_if_false @CASINO4_18716
if and
  124@ == 0
  125@ == 0
goto_if_false @CASINO4_18716
if and
  not is_char_dead 72@
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_18716
if and
  is_char_sitting_in_car 72@ {vehicle} 77@
  is_char_sitting_in_car 71@ {vehicle} 77@
goto_if_false @CASINO4_18716
TIMERA = 0
clear_prints 
print 'CAS4_16' {time} 8000 {flag} 1
70@ = add_blip_for_coord -24.0 {y} 2331.0 {z} 24.0
52@ = 1
272@ = 0
273@ = 0

:CASINO4_18716
goto @CASINO4_20428

:CASINO4_18723
129@ = 0
if 
  52@ == 1
goto_if_false @CASINO4_18760
remove_blip 70@
52@ = 0

:CASINO4_18760
if 
  272@ == 0
goto_if_false @CASINO4_19142
if 
  252@ <> 0
goto_if_false @CASINO4_19142
if 
  255@ == 0
goto_if_false @CASINO4_18842
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_18835
clear_mission_audio 254@

:CASINO4_18835
255@ = 1

:CASINO4_18842
if 
  255@ == 1
goto_if_false @CASINO4_18879
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_18879
if 
  255@ == 2
goto_if_false @CASINO4_18964
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_18964
play_mission_audio 253@
if or
  252@ == 7
  252@ == 8
goto_if_false @CASINO4_18957
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1

:CASINO4_18957
255@ = 3

:CASINO4_18964
if 
  255@ == 3
goto_if_false @CASINO4_19142
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_19081
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_19046
253@ = 2
254@ = 1
goto @CASINO4_19060

:CASINO4_19046
253@ = 1
254@ = 2

:CASINO4_19060
252@ = 0
255@ = 0
goto @CASINO4_19142

:CASINO4_19081
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_19142
if 
  110 > 252@
goto_if_false @CASINO4_19142
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_19142
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_20428
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_20428
if or
  locate_char_any_means_char_3d $scplayer {target} 72@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_20400
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_19997
284@ = 0
283@ = 1
if 
  272@ == 0
goto_if_false @CASINO4_19990
if and
  120@ == 1
  119@ == 0
goto_if_false @CASINO4_19532
if 
  locate_char_any_means_char_3d $scplayer {target} 72@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_19532
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19453 {caseNum1} 0 {caseLabel1} @CASINO4_19409 {caseNum2} -1 {caseLabel2} @CASINO4_19532 {caseNum3} -1 {caseLabel3} @CASINO4_19532 {caseNum4} -1 {caseLabel4} @CASINO4_19532 {caseNum5} -1 {caseLabel5} @CASINO4_19532 {caseNum6} -1 {caseLabel6} @CASINO4_19532 {caseNum7} -1 {caseLabel7} @CASINO4_19532

:CASINO4_19409
if 
  255@ == 0
goto_if_false @CASINO4_19446
252@ = 40
273@ = 1
260@ = get_game_timer 

:CASINO4_19446
goto @CASINO4_19532

:CASINO4_19453
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19525
if 
  255@ == 0
goto_if_false @CASINO4_19525
273@ = 0
272@ = 1

:CASINO4_19525
goto @CASINO4_19532

:CASINO4_19532
if and
  120@ == 0
  119@ == 1
goto_if_false @CASINO4_19779
if 
  locate_char_any_means_char_3d $scplayer {target} 71@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_19779
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19700 {caseNum1} 0 {caseLabel1} @CASINO4_19656 {caseNum2} -1 {caseLabel2} @CASINO4_19779 {caseNum3} -1 {caseLabel3} @CASINO4_19779 {caseNum4} -1 {caseLabel4} @CASINO4_19779 {caseNum5} -1 {caseLabel5} @CASINO4_19779 {caseNum6} -1 {caseLabel6} @CASINO4_19779 {caseNum7} -1 {caseLabel7} @CASINO4_19779

:CASINO4_19656
if 
  255@ == 0
goto_if_false @CASINO4_19693
252@ = 39
273@ = 1
260@ = get_game_timer 

:CASINO4_19693
goto @CASINO4_19779

:CASINO4_19700
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19772
if 
  255@ == 0
goto_if_false @CASINO4_19772
273@ = 0
272@ = 1

:CASINO4_19772
goto @CASINO4_19779

:CASINO4_19779
if and
  120@ == 0
  119@ == 0
goto_if_false @CASINO4_19990
switch_start 273@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_19911 {caseNum1} 0 {caseLabel1} @CASINO4_19867 {caseNum2} -1 {caseLabel2} @CASINO4_19990 {caseNum3} -1 {caseLabel3} @CASINO4_19990 {caseNum4} -1 {caseLabel4} @CASINO4_19990 {caseNum5} -1 {caseLabel5} @CASINO4_19990 {caseNum6} -1 {caseLabel6} @CASINO4_19990 {caseNum7} -1 {caseLabel7} @CASINO4_19990

:CASINO4_19867
if 
  255@ == 0
goto_if_false @CASINO4_19904
252@ = 38
273@ = 1
260@ = get_game_timer 

:CASINO4_19904
goto @CASINO4_19990

:CASINO4_19911
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_19983
if 
  255@ == 0
goto_if_false @CASINO4_19983
273@ = 0
272@ = 1

:CASINO4_19983
goto @CASINO4_19990

:CASINO4_19990
goto @CASINO4_20393

:CASINO4_19997
272@ = 0
273@ = 0
if 
  284@ == 0
goto_if_false @CASINO4_20393
switch_start 283@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_20283 {caseNum1} 0 {caseLabel1} @CASINO4_20092 {caseNum2} 1 {caseLabel2} @CASINO4_20165 {caseNum3} -1 {caseLabel3} @CASINO4_20393 {caseNum4} -1 {caseLabel4} @CASINO4_20393 {caseNum5} -1 {caseLabel5} @CASINO4_20393 {caseNum6} -1 {caseLabel6} @CASINO4_20393 {caseNum7} -1 {caseLabel7} @CASINO4_20393

:CASINO4_20092
if 
  255@ == 0
goto_if_false @CASINO4_20158
if 
  not is_char_dead 71@
goto_if_false @CASINO4_20139
stop_char_facial_talk 71@
start_char_facial_talk 71@ {duration} 3000

:CASINO4_20139
252@ = 7
283@ = 1
260@ = get_game_timer 

:CASINO4_20158
goto @CASINO4_20393

:CASINO4_20165
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_20276
if 
  255@ == 0
goto_if_false @CASINO4_20276
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_20257
stop_char_facial_talk 71@
start_char_facial_talk 72@ {duration} 3000

:CASINO4_20257
252@ = 8
283@ = 2
260@ = get_game_timer 

:CASINO4_20276
goto @CASINO4_20393

:CASINO4_20283
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_20386
if 
  255@ == 0
goto_if_false @CASINO4_20386
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_20372
stop_char_facial_talk 71@
stop_char_facial_talk 72@

:CASINO4_20372
283@ = 0
284@ = 1

:CASINO4_20386
goto @CASINO4_20393

:CASINO4_20393
goto @CASINO4_20428

:CASINO4_20400
272@ = 0
273@ = 0
284@ = 0
283@ = 1

:CASINO4_20428
if 
  52@ == 1
goto_if_false @CASINO4_22496
if and
  124@ == 0
  125@ == 0
goto_if_false @CASINO4_22466
if 
  265@ == 0
goto_if_false @CASINO4_22459
if 
  252@ <> 0
goto_if_false @CASINO4_20828
if 
  255@ == 0
goto_if_false @CASINO4_20553
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_20546
clear_mission_audio 254@

:CASINO4_20546
255@ = 1

:CASINO4_20553
if 
  255@ == 1
goto_if_false @CASINO4_20590
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_20590
if 
  255@ == 2
goto_if_false @CASINO4_20650
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_20650
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_20650
if 
  255@ == 3
goto_if_false @CASINO4_20828
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_20767
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_20732
253@ = 2
254@ = 1
goto @CASINO4_20746

:CASINO4_20732
253@ = 1
254@ = 2

:CASINO4_20746
252@ = 0
255@ = 0
goto @CASINO4_20828

:CASINO4_20767
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_20828
if 
  110 > 252@
goto_if_false @CASINO4_20828
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_20828
if 
  263@ == 0
goto_if_false @CASINO4_21492
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_21485
switch_start 262@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @CASINO4_21344 {caseNum1} 0 {caseLabel1} @CASINO4_20922 {caseNum2} 1 {caseLabel2} @CASINO4_21008 {caseNum3} 2 {caseLabel3} @CASINO4_21092 {caseNum4} 3 {caseLabel4} @CASINO4_21176 {caseNum5} 4 {caseLabel5} @CASINO4_21260 {caseNum6} -1 {caseLabel6} @CASINO4_21485 {caseNum7} -1 {caseLabel7} @CASINO4_21485

:CASINO4_20922
if 
  255@ == 0
goto_if_false @CASINO4_21001
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_20982
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:CASINO4_20982
252@ = 20
262@ = 1
260@ = get_game_timer 

:CASINO4_21001
goto @CASINO4_21485

:CASINO4_21008
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21085
if 
  255@ == 0
goto_if_false @CASINO4_21085
252@ = 21
262@ = 2
260@ = get_game_timer 

:CASINO4_21085
goto @CASINO4_21485

:CASINO4_21092
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21169
if 
  255@ == 0
goto_if_false @CASINO4_21169
252@ = 22
262@ = 3
260@ = get_game_timer 

:CASINO4_21169
goto @CASINO4_21485

:CASINO4_21176
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21253
if 
  255@ == 0
goto_if_false @CASINO4_21253
252@ = 23
262@ = 4
260@ = get_game_timer 

:CASINO4_21253
goto @CASINO4_21485

:CASINO4_21260
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21337
if 
  255@ == 0
goto_if_false @CASINO4_21337
252@ = 24
262@ = 5
260@ = get_game_timer 

:CASINO4_21337
goto @CASINO4_21485

:CASINO4_21344
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21478
if 
  255@ == 0
goto_if_false @CASINO4_21478
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_21444
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_21444
263@ = 1
if 
  TIMERA > 25000
goto_if_false @CASINO4_21478
TIMERA = 25000

:CASINO4_21478
goto @CASINO4_21485

:CASINO4_21485
goto @CASINO4_22459

:CASINO4_21492
if and
  265@ == 0
  128@ == 1
goto_if_false @CASINO4_22459
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_22459
switch_start 264@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_22325 {caseNum1} 0 {caseLabel1} @CASINO4_21658 {caseNum2} 1 {caseLabel2} @CASINO4_21737 {caseNum3} 2 {caseLabel3} @CASINO4_21821 {caseNum4} 3 {caseLabel4} @CASINO4_21905 {caseNum5} 4 {caseLabel5} @CASINO4_21989 {caseNum6} 5 {caseLabel6} @CASINO4_22073 {caseNum7} 6 {caseLabel7} @CASINO4_22157
switch_continued 7 {caseLabel1} @CASINO4_22241 {caseNum2} -1 {caseLabel2} @CASINO4_22459 {caseNum3} -1 {caseLabel3} @CASINO4_22459 {caseNum4} -1 {caseLabel4} @CASINO4_22459 {caseNum5} -1 {caseLabel5} @CASINO4_22459 {caseNum6} -1 {caseLabel6} @CASINO4_22459 {caseNum7} -1 {caseLabel7} @CASINO4_22459 {caseNum8} -1 {caseLabel8} @CASINO4_22459 {caseNum9} -1 {caseLabel9} @CASINO4_22459

:CASINO4_21658
if 
  255@ == 0
goto_if_false @CASINO4_21730
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_21711
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True

:CASINO4_21711
252@ = 25
264@ = 1
260@ = get_game_timer 

:CASINO4_21730
goto @CASINO4_22459

:CASINO4_21737
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21814
if 
  255@ == 0
goto_if_false @CASINO4_21814
252@ = 26
264@ = 2
260@ = get_game_timer 

:CASINO4_21814
goto @CASINO4_22459

:CASINO4_21821
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21898
if 
  255@ == 0
goto_if_false @CASINO4_21898
252@ = 27
264@ = 3
260@ = get_game_timer 

:CASINO4_21898
goto @CASINO4_22459

:CASINO4_21905
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_21982
if 
  255@ == 0
goto_if_false @CASINO4_21982
252@ = 28
264@ = 4
260@ = get_game_timer 

:CASINO4_21982
goto @CASINO4_22459

:CASINO4_21989
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22066
if 
  255@ == 0
goto_if_false @CASINO4_22066
252@ = 29
264@ = 5
260@ = get_game_timer 

:CASINO4_22066
goto @CASINO4_22459

:CASINO4_22073
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22150
if 
  255@ == 0
goto_if_false @CASINO4_22150
252@ = 30
264@ = 6
260@ = get_game_timer 

:CASINO4_22150
goto @CASINO4_22459

:CASINO4_22157
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22234
if 
  255@ == 0
goto_if_false @CASINO4_22234
252@ = 31
264@ = 7
260@ = get_game_timer 

:CASINO4_22234
goto @CASINO4_22459

:CASINO4_22241
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22318
if 
  255@ == 0
goto_if_false @CASINO4_22318
252@ = 32
264@ = 8
260@ = get_game_timer 

:CASINO4_22318
goto @CASINO4_22459

:CASINO4_22325
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_22452
if 
  255@ == 0
goto_if_false @CASINO4_22452
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_22418
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_22418
265@ = 1
if 
  TIMERA > 25000
goto_if_false @CASINO4_22452
TIMERA = 25000

:CASINO4_22452
goto @CASINO4_22459

:CASINO4_22459
goto @CASINO4_22496

:CASINO4_22466
if 
  52@ == 1
goto_if_false @CASINO4_22496
remove_blip 70@
52@ = 0

:CASINO4_22496
if and
  49@ == 1
  60@ == 0
goto_if_false @CASINO4_22714
if 
  locate_char_any_means_3d $scplayer {x} -32.0 {y} 2337.0 {z} 24.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @CASINO4_22714
custom_plate_for_next_car 478 {text} "__TIM___"
78@ = create_car 478 {x} -50.0 {y} 2358.0 {z} 24.0
lock_car_doors 78@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_can_be_damaged 78@ {state} False
set_car_heading 78@ {heading} 188.0
freeze_car_position 78@ {state} True
custom_plate_for_next_car 478 {text} "_TAMMY__"
79@ = create_car 478 {x} -46.0 {y} 2355.0 {z} 24.0
lock_car_doors 79@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heading 79@ {heading} 188.0
freeze_car_position 79@ {state} True
set_car_can_be_damaged 79@ {state} False
60@ = 1

:CASINO4_22714
if and
  52@ == 1
  51@ == 0
  49@ == 1
goto_if_false @CASINO4_29650
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_29650
if and
  locate_char_any_means_3d $scplayer {x} -24.0 {y} 2331.0 {z} 24.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_char_any_means_3d 72@ {x} -24.0 {y} 2331.0 {z} 24.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
  locate_char_any_means_3d 71@ {x} -24.0 {y} 2331.0 {z} 24.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO4_29650
remove_blip 70@
clear_prints 
set_fixed_camera_position -21.46 {y} 2335.3301 {z} 23.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -49.14 {y} 2356.75 {z} 26.09 {switchStyle} SwitchType.JumpCut
make_player_gang_disappear 
switch_widescreen True
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
clear_area -24.0 {y} 2331.0 {z} 24.0 {radius} 50.0 {clearParticles} True
remove_animation "PAULNMAC"
remove_animation "FOOD"
request_animation "SMOKING"
request_model 346

:CASINO4_23027
if or
  not has_animation_loaded "SMOKING"
  not has_model_loaded 346
goto_if_false @CASINO4_23065
wait 0
goto @CASINO4_23027

:CASINO4_23065
73@ = create_char PedType.Mission2 {modelId} 32 {x} -32.3702 {y} 2348.239 {z} 23.1328
set_char_heading 73@ {heading} 180.1098
set_char_is_target_priority 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Pistol {ammo} 3000
109@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 73@ {sequence} 109@
clear_sequence_task 109@
74@ = create_char PedType.Mission2 {modelId} 34 {x} -34.288 {y} 2350.2041 {z} 23.1328
set_char_heading 74@ {heading} 177.5823
set_char_is_target_priority 74@ {state} True
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 3000
109@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 74@ {sequence} 109@
clear_sequence_task 109@
set_fixed_camera_position -21.46 {y} 2335.3301 {z} 23.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -49.14 {y} 2356.75 {z} 26.09 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_23651
clear_area -25.7433 {y} 2334.6289 {z} 23.1328 {radius} 100.0 {clearParticles} True
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_23475
77@ = store_car_char_is_in $scplayer
set_car_mission 77@ {carMission} CarMission.EmergencyVehicleStop
warp_char_from_car_to_coord $scplayer {x} -25.7433 {y} 2334.6289 {z} 23.1328
set_car_coordinates 77@ {x} -24.0 {y} 2331.0 {z} 24.0
goto @CASINO4_23495

:CASINO4_23475
set_char_coordinates $scplayer {x} -25.7433 {y} 2334.6289 {z} 23.1328

:CASINO4_23495
set_char_heading $scplayer {heading} 35.8419
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_23548
warp_char_from_car_to_coord 72@ {x} -23.6752 {y} 2335.531 {z} 23.1328
goto @CASINO4_23568

:CASINO4_23548
set_char_coordinates 72@ {x} -23.6752 {y} 2334.531 {z} 23.1328

:CASINO4_23568
set_char_heading 72@ {heading} 35.8419
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_23621
warp_char_from_car_to_coord 71@ {x} -27.9403 {y} 2335.105 {z} 23.1328
goto @CASINO4_23641

:CASINO4_23621
set_char_coordinates 71@ {x} -27.9403 {y} 2334.105 {z} 23.1328

:CASINO4_23641
set_char_heading 71@ {heading} 35.8419

:CASINO4_23651
82@ = open_sequence_task 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_23676
task_leave_any_car -1

:CASINO4_23676
task_go_straight_to_coord -1 {x} -31.7411 {y} 2342.6799 {z} 23.125 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 35.5196
close_sequence_task 82@
perform_sequence_task $scplayer {sequence} 82@
clear_sequence_task 82@
clear_char_decision_maker_event_response 38@ {event} Event.PotentialWalkIntoPed
if 
  not is_char_dead 71@
goto_if_false @CASINO4_23852
set_char_proofs 71@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
remove_char_from_group 71@
80@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_23794
task_leave_any_car -1

:CASINO4_23794
task_go_straight_to_coord -1 {x} -33.0398 {y} 2342.354 {z} 23.125 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 37.553
close_sequence_task 80@
perform_sequence_task 71@ {sequence} 80@
clear_sequence_task 80@
set_char_decision_maker 71@ {handleOrTemplate} 38@

:CASINO4_23852
if 
  not is_char_dead 72@
goto_if_false @CASINO4_23971
set_char_proofs 72@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
remove_char_from_group 72@
81@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_23913
task_leave_any_car -1

:CASINO4_23913
task_go_straight_to_coord -1 {x} -30.0669 {y} 2344.002 {z} 23.125 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 19.556
close_sequence_task 81@
perform_sequence_task 72@ {sequence} 81@
clear_sequence_task 81@
set_char_decision_maker 72@ {handleOrTemplate} 38@

:CASINO4_23971
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
TIMERB = 0

:CASINO4_24048
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_24867
if 
  252@ <> 0
goto_if_false @CASINO4_24409
if 
  255@ == 0
goto_if_false @CASINO4_24134
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_24127
clear_mission_audio 254@

:CASINO4_24127
255@ = 1

:CASINO4_24134
if 
  255@ == 1
goto_if_false @CASINO4_24171
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_24171
if 
  255@ == 2
goto_if_false @CASINO4_24231
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_24231
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_24231
if 
  255@ == 3
goto_if_false @CASINO4_24409
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_24348
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_24313
253@ = 2
254@ = 1
goto @CASINO4_24327

:CASINO4_24313
253@ = 1
254@ = 2

:CASINO4_24327
252@ = 0
255@ = 0
goto @CASINO4_24409

:CASINO4_24348
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_24409
if 
  110 > 252@
goto_if_false @CASINO4_24409
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_24409
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_24767 {caseNum1} 0 {caseLabel1} @CASINO4_24472 {caseNum2} 1 {caseLabel2} @CASINO4_24529 {caseNum3} 2 {caseLabel3} @CASINO4_24649 {caseNum4} -1 {caseLabel4} @CASINO4_24860 {caseNum5} -1 {caseLabel5} @CASINO4_24860 {caseNum6} -1 {caseLabel6} @CASINO4_24860 {caseNum7} -1 {caseLabel7} @CASINO4_24860

:CASINO4_24472
if 
  255@ == 0
goto_if_false @CASINO4_24522
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 3000
252@ = 33
257@ = 1
260@ = get_game_timer 

:CASINO4_24522
goto @CASINO4_24860

:CASINO4_24529
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24642
if 
  255@ == 0
goto_if_false @CASINO4_24642
if 
  not is_char_dead 71@
goto_if_false @CASINO4_24616
stop_char_facial_talk 71@
start_char_facial_talk 71@ {duration} 3000

:CASINO4_24616
252@ = 34
257@ = 2
skip_cutscene_start_internal @CASINO4_27873
260@ = get_game_timer 

:CASINO4_24642
goto @CASINO4_24860

:CASINO4_24649
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24760
if 
  255@ == 0
goto_if_false @CASINO4_24760
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_24741
stop_char_facial_talk 71@
start_char_facial_talk 72@ {duration} 3000

:CASINO4_24741
252@ = 35
257@ = 3
260@ = get_game_timer 

:CASINO4_24760
goto @CASINO4_24860

:CASINO4_24767
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_24853
if 
  255@ == 0
goto_if_false @CASINO4_24853
if 
  not is_char_dead 72@
goto_if_false @CASINO4_24846
stop_char_facial_talk 72@

:CASINO4_24846
256@ = 1

:CASINO4_24853
goto @CASINO4_24860

:CASINO4_24860
goto @CASINO4_24048

:CASINO4_24867
53@ = 0

:CASINO4_24874
if 
  53@ == 0
goto_if_false @CASINO4_24966
if or
  locate_char_any_means_3d $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  TIMERB > 10000
goto_if_false @CASINO4_24955
53@ = 1

:CASINO4_24955
wait 0
goto @CASINO4_24874

:CASINO4_24966
set_char_coordinates $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125
set_char_heading $scplayer {heading} 37.553
if 
  not is_char_dead 72@
goto_if_false @CASINO4_25047
clear_char_tasks 72@
set_char_coordinates 72@ {x} -30.0669 {y} 2344.002 {z} 23.125
set_char_heading 72@ {heading} 19.556

:CASINO4_25047
if 
  not is_char_dead 71@
goto_if_false @CASINO4_25098
clear_char_tasks 71@
set_char_coordinates 71@ {x} -33.0398 {y} 2342.354 {z} 23.125
set_char_heading 71@ {heading} 37.553

:CASINO4_25098
set_fixed_camera_position -29.85 {y} 2341.05 {z} 23.81 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -48.53 {y} 2366.47 {z} 31.65 {switchStyle} SwitchType.JumpCut
request_model 31
request_model 33
request_animation "MISC"
if and
  not is_char_dead 73@
  not is_char_dead 74@
goto_if_false @CASINO4_25229
82@ = open_sequence_task 
task_look_at_char -1 {target} 73@ {time} 3000
task_look_at_char -1 {target} 74@ {time} 3000
close_sequence_task 82@
perform_sequence_task $scplayer {sequence} 82@
clear_sequence_task 82@

:CASINO4_25229
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0

:CASINO4_25299
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_27873
if 
  252@ <> 0
goto_if_false @CASINO4_25744
if 
  255@ == 0
goto_if_false @CASINO4_25385
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_25378
clear_mission_audio 254@

:CASINO4_25378
255@ = 1

:CASINO4_25385
if 
  255@ == 1
goto_if_false @CASINO4_25422
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_25422
if 
  255@ == 2
goto_if_false @CASINO4_25482
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_25482
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_25482
if 
  255@ == 3
goto_if_false @CASINO4_25744
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_25683
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_25564
253@ = 2
254@ = 1
goto @CASINO4_25578

:CASINO4_25564
253@ = 1
254@ = 2

:CASINO4_25578
if 
  not is_char_dead 75@
goto_if_false @CASINO4_25599
stop_char_facial_talk 75@

:CASINO4_25599
if 
  not is_char_dead 73@
goto_if_false @CASINO4_25620
stop_char_facial_talk 73@

:CASINO4_25620
if 
  not is_char_dead 76@
goto_if_false @CASINO4_25641
stop_char_facial_talk 76@

:CASINO4_25641
if 
  not is_char_dead 74@
goto_if_false @CASINO4_25662
stop_char_facial_talk 74@

:CASINO4_25662
252@ = 0
255@ = 0
goto @CASINO4_25744

:CASINO4_25683
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_25744
if 
  110 > 252@
goto_if_false @CASINO4_25744
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_25744
switch_start 257@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @CASINO4_27794 {caseNum1} 0 {caseLabel1} @CASINO4_25872 {caseNum2} 1 {caseLabel2} @CASINO4_25940 {caseNum3} 2 {caseLabel3} @CASINO4_26173 {caseNum4} 3 {caseLabel4} @CASINO4_26281 {caseNum5} 4 {caseLabel5} @CASINO4_26956 {caseNum6} 5 {caseLabel6} @CASINO4_27064 {caseNum7} 6 {caseLabel7} @CASINO4_27286
switch_continued 7 {caseLabel1} @CASINO4_27560 {caseNum2} -1 {caseLabel2} @CASINO4_27866 {caseNum3} -1 {caseLabel3} @CASINO4_27866 {caseNum4} -1 {caseLabel4} @CASINO4_27866 {caseNum5} -1 {caseLabel5} @CASINO4_27866 {caseNum6} -1 {caseLabel6} @CASINO4_27866 {caseNum7} -1 {caseLabel7} @CASINO4_27866 {caseNum8} -1 {caseLabel8} @CASINO4_27866 {caseNum9} -1 {caseLabel9} @CASINO4_27866

:CASINO4_25872
if 
  255@ == 0
goto_if_false @CASINO4_25933
if 
  not is_char_dead 73@
goto_if_false @CASINO4_25914
start_char_facial_talk 73@ {duration} 10000

:CASINO4_25914
252@ = 103
257@ = 1
260@ = get_game_timer 

:CASINO4_25933
goto @CASINO4_27866

:CASINO4_25940
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26166
if 
  255@ == 0
goto_if_false @CASINO4_26166
if 
  has_animation_loaded "MISC"
goto_if_false @CASINO4_26158
clear_look_at $scplayer
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_26108
task_look_at_char $scplayer {target} 71@ {time} 6000
task_look_at_char 72@ {target} 71@ {time} 6000
82@ = open_sequence_task 
task_look_at_char -1 {target} 72@ {time} 3000
task_look_at_char -1 {target} $scplayer {time} 3000
close_sequence_task 82@
perform_sequence_task 71@ {sequence} 82@
clear_sequence_task 82@

:CASINO4_26108
if 
  not is_char_dead 74@
goto_if_false @CASINO4_26132
start_char_facial_talk 74@ {duration} 10000

:CASINO4_26132
252@ = 104
257@ = 2
260@ = get_game_timer 
goto @CASINO4_26166

:CASINO4_26158
request_animation "MISC"

:CASINO4_26166
goto @CASINO4_27866

:CASINO4_26173
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26274
if 
  255@ == 0
goto_if_false @CASINO4_26274
if 
  not is_char_dead 74@
goto_if_false @CASINO4_26255
start_char_facial_talk 74@ {duration} 10000

:CASINO4_26255
252@ = 105
257@ = 3
260@ = get_game_timer 

:CASINO4_26274
goto @CASINO4_27866

:CASINO4_26281
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_26949
if or
  not has_model_loaded 31
  not has_model_loaded 33
goto_if_false @CASINO4_26355
request_model 31
request_model 33
goto @CASINO4_26949

:CASINO4_26355
if 
  255@ == 0
goto_if_false @CASINO4_26949
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_26409
clear_look_at $scplayer
clear_look_at 72@
clear_look_at 71@

:CASINO4_26409
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_26544
82@ = open_sequence_task 
task_stand_still -1 {time} 2000
task_play_anim -1 {animationName} "PLYR_SHKHEAD" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 82@
perform_sequence_task 71@ {sequence} 82@
clear_sequence_task 82@
task_look_at_char $scplayer {target} 71@ {time} 6000
82@ = open_sequence_task 
task_stand_still -1 {time} 3000
task_scratch_head -1
close_sequence_task 82@
perform_sequence_task 72@ {sequence} 82@
clear_sequence_task 82@

:CASINO4_26544
clear_look_at $scplayer
76@ = create_char PedType.Mission2 {modelId} 31 {x} -45.2021 {y} 2350.3201 {z} 23.125
set_char_heading 76@ {heading} 176.976
set_anim_group_for_char 76@ {animGroup} "SEXYWOMAN"
set_char_is_target_priority 76@ {state} True
set_char_decision_maker 76@ {handleOrTemplate} 38@
flush_route 
extend_route -44.052 {y} 2348.615 {z} 23.125
extend_route -39.8254 {y} 2346.7329 {z} 23.125
extend_route -36.6941 {y} 2346.5 {z} 23.125
109@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 109@
perform_sequence_task 76@ {sequence} 109@
clear_sequence_task 109@
75@ = create_char PedType.Mission2 {modelId} 33 {x} -46.1256 {y} 2351.387 {z} 23.125
set_char_heading 75@ {heading} 176.976
set_char_decision_maker 75@ {handleOrTemplate} 38@
flush_route 
extend_route -44.052 {y} 2348.615 {z} 23.125
extend_route -39.8254 {y} 2346.7329 {z} 23.125
extend_route -38.286 {y} 2346.675 {z} 23.125
extend_route -36.1799 {y} 2348.4121 {z} 23.125
109@ = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 109@
perform_sequence_task 75@ {sequence} 109@
clear_sequence_task 109@
set_fixed_camera_position -36.34 {y} 2345.1899 {z} 24.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -50.23 {y} 2366.3201 {z} 23.72 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @CASINO4_26930
start_char_facial_talk 75@ {duration} 10000

:CASINO4_26930
252@ = 106
257@ = 4
260@ = get_game_timer 

:CASINO4_26949
goto @CASINO4_27866

:CASINO4_26956
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27057
if 
  255@ == 0
goto_if_false @CASINO4_27057
if 
  not is_char_dead 75@
goto_if_false @CASINO4_27038
start_char_facial_talk 75@ {duration} 10000

:CASINO4_27038
252@ = 107
257@ = 5
260@ = get_game_timer 

:CASINO4_27057
goto @CASINO4_27866

:CASINO4_27064
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27279
if 
  255@ == 0
goto_if_false @CASINO4_27279
if 
  not is_char_dead 76@
goto_if_false @CASINO4_27260
90@ = get_script_task_status 76@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_27253
task_play_anim 76@ {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
252@ = 108
if 
  not is_char_dead 76@
goto_if_false @CASINO4_27241
start_char_facial_talk 76@ {duration} 10000

:CASINO4_27241
257@ = 6
260@ = get_game_timer 

:CASINO4_27253
goto @CASINO4_27279

:CASINO4_27260
252@ = 108
257@ = 6
260@ = get_game_timer 

:CASINO4_27279
goto @CASINO4_27866

:CASINO4_27286
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27553
if 
  255@ == 0
goto_if_false @CASINO4_27553
set_fixed_camera_position -30.33 {y} 2342.29 {z} 24.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -41.67 {y} 2352.5 {z} 23.55 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 75@
goto_if_false @CASINO4_27454
task_play_anim 75@ {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO4_27454
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27510
task_play_anim 73@ {animationName} "M_SMK_OUT" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:CASINO4_27510
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27534
start_char_facial_talk 73@ {duration} 10000

:CASINO4_27534
252@ = 109
257@ = 7
260@ = get_game_timer 

:CASINO4_27553
goto @CASINO4_27866

:CASINO4_27560
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27787
if 
  255@ == 0
goto_if_false @CASINO4_27787
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27744
109@ = open_sequence_task 
task_play_anim -1 {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "COLT45_RELOAD" {animationFile} "COLT45" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_aim_gun_at_char -1 {target} $scplayer {time} 6000
close_sequence_task 109@
perform_sequence_task 73@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_27744
if 
  not is_char_dead 73@
goto_if_false @CASINO4_27768
start_char_facial_talk 73@ {duration} 10000

:CASINO4_27768
252@ = 110
257@ = 8
260@ = get_game_timer 

:CASINO4_27787
goto @CASINO4_27866

:CASINO4_27794
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_27859
if 
  255@ == 0
goto_if_false @CASINO4_27859
256@ = 1

:CASINO4_27859
goto @CASINO4_27866

:CASINO4_27866
goto @CASINO4_25299

:CASINO4_27873
skip_cutscene_end 
make_player_gang_reappear 
clear_mission_audio 253@
clear_mission_audio 254@
add_char_decision_maker_event_response 38@ {event} Event.PotentialWalkIntoPed {taskId} TaskId.ComplexAvoidOtherPedWhileWandering {respect} 100.0 {hate} 0.0 {like} 0.0 {dislike} 100.0 {inCar} True {onFoot} False

:CASINO4_27921
if or
  not has_model_loaded 32
  not has_model_loaded 34
  not has_model_loaded 31
  not has_model_loaded 33
  not has_model_loaded 346
goto_if_false @CASINO4_27981
wait 0
request_model 34
request_model 31
request_model 33
request_model 346
goto @CASINO4_27921

:CASINO4_27981
delete_char 73@
mark_char_as_no_longer_needed 73@
73@ = create_char PedType.Mission2 {modelId} 32 {x} -32.3702 {y} 2348.239 {z} 23.125
set_char_heading 73@ {heading} 180.1098
set_char_is_target_priority 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Pistol {ammo} 3000
delete_char 74@
mark_char_as_no_longer_needed 74@
74@ = create_char PedType.Mission2 {modelId} 34 {x} -34.288 {y} 2350.2041 {z} 23.125
set_char_heading 74@ {heading} 177.5823
set_char_is_target_priority 74@ {state} True
give_weapon_to_char 74@ {weaponType} WeaponType.Pistol {ammo} 3000
delete_char 76@
mark_char_as_no_longer_needed 76@
76@ = create_char PedType.Mission2 {modelId} 31 {x} -36.6941 {y} 2346.5 {z} 23.125
set_char_heading 76@ {heading} 259.6481
set_anim_group_for_char 76@ {animGroup} "SEXYWOMAN"
set_char_is_target_priority 76@ {state} True
delete_char 75@
mark_char_as_no_longer_needed 75@
75@ = create_char PedType.Mission2 {modelId} 33 {x} -36.1799 {y} 2348.4121 {z} 23.125
set_char_heading 75@ {heading} 265.8938
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_28257
warp_char_from_car_to_coord $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125
goto @CASINO4_28277

:CASINO4_28257
set_char_coordinates $scplayer {x} -31.7411 {y} 2342.6799 {z} 23.125

:CASINO4_28277
set_char_heading $scplayer {heading} 37.553
if 
  not is_char_dead 72@
goto_if_false @CASINO4_28381
clear_char_tasks 72@
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_28351
warp_char_from_car_to_coord 72@ {x} -30.0669 {y} 2344.002 {z} 23.125
goto @CASINO4_28371

:CASINO4_28351
set_char_coordinates 72@ {x} -30.0669 {y} 2344.002 {z} 23.125

:CASINO4_28371
set_char_heading 72@ {heading} 19.556

:CASINO4_28381
if 
  not is_char_dead 71@
goto_if_false @CASINO4_28475
clear_char_tasks 71@
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_28445
warp_char_from_car_to_coord 71@ {x} -33.0398 {y} 2342.354 {z} 23.125
goto @CASINO4_28465

:CASINO4_28445
set_char_coordinates 71@ {x} -33.0398 {y} 2342.354 {z} 23.125

:CASINO4_28465
set_char_heading 71@ {heading} 37.553

:CASINO4_28475
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_28510
task_toggle_duck 71@ {state} True
task_toggle_duck 72@ {state} True

:CASINO4_28510
34@, 35@, 36@ = get_char_coordinates $scplayer
if and
  not is_char_dead 73@
  not is_car_dead 79@
goto_if_false @CASINO4_28669
freeze_car_position 79@ {state} False
83@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -46.3592 {y} 2346.9771 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 79@ {time} 3000 {seat} SeatId.BikeRear
task_drive_by -1 {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 10.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
close_sequence_task 83@
perform_sequence_task 73@ {sequence} 83@
clear_sequence_task 83@
goto @CASINO4_28714

:CASINO4_28669
if or
  is_car_dead 79@
  is_char_dead 76@
goto_if_false @CASINO4_28714
if 
  not is_char_dead 73@
goto_if_false @CASINO4_28714
task_kill_char_on_foot 73@ {target} $scplayer

:CASINO4_28714
if and
  not is_char_dead 74@
  not is_car_dead 78@
goto_if_false @CASINO4_28859
freeze_car_position 78@ {state} False
84@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -44.9959 {y} 2346.3811 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_passenger -1 {vehicle} 78@ {time} 3000 {seat} SeatId.BikeRear
task_drive_by -1 {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 10.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50
close_sequence_task 84@
perform_sequence_task 74@ {sequence} 84@
clear_sequence_task 84@
goto @CASINO4_28904

:CASINO4_28859
if or
  is_car_dead 78@
  is_char_dead 75@
goto_if_false @CASINO4_28904
if 
  not is_char_dead 74@
goto_if_false @CASINO4_28904
task_kill_char_on_foot 74@ {target} $scplayer

:CASINO4_28904
if and
  not is_char_dead 75@
  not is_car_dead 78@
goto_if_false @CASINO4_29012
freeze_car_position 78@ {state} False
86@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -44.9959 {y} 2346.3811 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_driver -1 {vehicle} 78@ {time} 3000
close_sequence_task 86@
perform_sequence_task 75@ {sequence} 86@
clear_sequence_task 86@
goto @CASINO4_29041

:CASINO4_29012
if and
  is_car_dead 78@
  not is_char_dead 75@
goto_if_false @CASINO4_29041
task_kill_char_on_foot 75@ {target} $scplayer

:CASINO4_29041
if and
  not is_char_dead 76@
  not is_car_dead 79@
goto_if_false @CASINO4_29149
freeze_car_position 79@ {state} False
85@ = open_sequence_task 
task_shoot_at_coord -1 {x} 34@ {y} 35@ {z} 36@ {time} 5000
task_go_straight_to_coord -1 {x} -46.3592 {y} 2346.9771 {z} 23.1348 {speed} MoveState.Run {time} 10000
task_enter_car_as_driver -1 {vehicle} 79@ {time} 3000
close_sequence_task 85@
perform_sequence_task 76@ {sequence} 85@
clear_sequence_task 85@
goto @CASINO4_29178

:CASINO4_29149
if and
  is_car_dead 79@
  not is_char_dead 76@
goto_if_false @CASINO4_29178
task_kill_char_on_foot 76@ {target} $scplayer

:CASINO4_29178
set_police_ignore_player $player1 {state} False
if 
  not is_car_dead 78@
goto_if_false @CASINO4_29215
set_car_can_be_damaged 78@ {state} True
set_car_only_damaged_by_player 78@ {state} True

:CASINO4_29215
if 
  not is_car_dead 79@
goto_if_false @CASINO4_29245
set_car_can_be_damaged 79@ {state} True
set_car_only_damaged_by_player 79@ {state} True

:CASINO4_29245
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_29296
clear_char_tasks $scplayer
clear_char_tasks 72@
clear_char_tasks 71@
clear_look_at $scplayer
clear_look_at 72@
clear_look_at 71@

:CASINO4_29296
remove_animation "SMOKING"
remove_animation "MISC"
clear_char_decision_maker_event_response 38@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 38@ {event} Event.ShotFired
add_char_decision_maker_event_response 38@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 38@ {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
clear_group_decision_maker_event_response 39@ {event} Event.Damage
add_group_decision_maker_event_response 39@ {event} Event.ShotFired {taskId} TaskId.GroupUseMemberDecision {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_29513
if 
  not is_group_member 72@ {handle} $Players_Group
goto_if_false @CASINO4_29486
set_group_member $Players_Group {handle} 72@

:CASINO4_29486
if 
  not is_group_member 71@ {handle} $Players_Group
goto_if_false @CASINO4_29513
set_group_member $Players_Group {handle} 71@

:CASINO4_29513
set_lvar_int_to_lvar_int 113@ = 73@
set_lvar_int_to_lvar_int 114@ = 76@
set_lvar_int_to_lvar_int 115@ = 75@
set_lvar_int_to_lvar_int 116@ = 74@
272@ = 0
273@ = 0
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  46@ == 0
goto_if_false @CASINO4_29633
69@ = add_blip_for_coord 2175.21 {y} 1679.37 {z} 9.85
print_now 'CAS4_06' {time} 8000 {flag} 1
46@ = 1

:CASINO4_29633
51@ = 1
132@ = 9999999

:CASINO4_29650
if 
  51@ > 0
goto_if_false @CASINO4_33641
if 
  not is_char_dead 71@
goto_if_false @CASINO4_29906
if 
  120@ == 1
goto_if_false @CASINO4_29836
if 
  not locate_char_any_means_char_2d $scplayer {target} 71@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CASINO4_29829
remove_char_from_group 71@
if 
  not is_char_in_any_car 71@
goto_if_false @CASINO4_29771
task_tired 71@ {time} 60000
goto @CASINO4_29807

:CASINO4_29771
80@ = open_sequence_task 
task_leave_any_car -1
task_tired -1 {time} 60000
close_sequence_task 80@
perform_sequence_task 71@ {sequence} 80@
clear_sequence_task 80@

:CASINO4_29807
68@ = add_blip_for_char 71@
set_blip_as_friendly 68@ {state} True
120@ = 0

:CASINO4_29829
goto @CASINO4_29906

:CASINO4_29836
if 
  locate_char_any_means_char_2d $scplayer {target} 71@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_29906
if 
  not is_group_member 71@ {handle} $Players_Group
goto_if_false @CASINO4_29894
set_group_member $Players_Group {handle} 71@

:CASINO4_29894
remove_blip 68@
120@ = 1

:CASINO4_29906
if 
  not is_char_dead 72@
goto_if_false @CASINO4_30144
if 
  119@ == 1
goto_if_false @CASINO4_30074
if 
  not locate_char_any_means_char_2d $scplayer {target} 72@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CASINO4_30067
remove_char_from_group 72@
if 
  not is_char_in_any_car 72@
goto_if_false @CASINO4_30009
task_tired 72@ {time} 60000
goto @CASINO4_30045

:CASINO4_30009
80@ = open_sequence_task 
task_leave_any_car -1
task_tired -1 {time} 60000
close_sequence_task 80@
perform_sequence_task 72@ {sequence} 80@
clear_sequence_task 80@

:CASINO4_30045
67@ = add_blip_for_char 72@
set_blip_as_friendly 67@ {state} True
119@ = 0

:CASINO4_30067
goto @CASINO4_30144

:CASINO4_30074
if 
  locate_char_any_means_char_2d $scplayer {target} 72@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @CASINO4_30144
if 
  not is_group_member 72@ {handle} $Players_Group
goto_if_false @CASINO4_30132
set_group_member $Players_Group {handle} 72@

:CASINO4_30132
remove_blip 67@
119@ = 1

:CASINO4_30144
if and
  119@ == 1
  120@ == 1
goto_if_false @CASINO4_32754
if 
  269@ == 0
goto_if_false @CASINO4_32677
if 
  252@ <> 0
goto_if_false @CASINO4_30526
if 
  255@ == 0
goto_if_false @CASINO4_30251
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_30244
clear_mission_audio 254@

:CASINO4_30244
255@ = 1

:CASINO4_30251
if 
  255@ == 1
goto_if_false @CASINO4_30288
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_30288
if 
  255@ == 2
goto_if_false @CASINO4_30348
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_30348
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_30348
if 
  255@ == 3
goto_if_false @CASINO4_30526
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_30465
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_30430
253@ = 2
254@ = 1
goto @CASINO4_30444

:CASINO4_30430
253@ = 1
254@ = 2

:CASINO4_30444
252@ = 0
255@ = 0
goto @CASINO4_30526

:CASINO4_30465
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_30526
if 
  110 > 252@
goto_if_false @CASINO4_30526
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_30526
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_32677
if 
  267@ == 0
goto_if_false @CASINO4_31597
if 
  271@ == 0
goto_if_false @CASINO4_30852
switch_start 270@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_30766 {caseNum1} 0 {caseLabel1} @CASINO4_30638 {caseNum2} 1 {caseLabel2} @CASINO4_30682 {caseNum3} -1 {caseLabel3} @CASINO4_30845 {caseNum4} -1 {caseLabel4} @CASINO4_30845 {caseNum5} -1 {caseLabel5} @CASINO4_30845 {caseNum6} -1 {caseLabel6} @CASINO4_30845 {caseNum7} -1 {caseLabel7} @CASINO4_30845

:CASINO4_30638
if 
  255@ == 0
goto_if_false @CASINO4_30675
252@ = 36
270@ = 1
260@ = get_game_timer 

:CASINO4_30675
goto @CASINO4_30845

:CASINO4_30682
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_30759
if 
  255@ == 0
goto_if_false @CASINO4_30759
252@ = 37
270@ = 2
260@ = get_game_timer 

:CASINO4_30759
goto @CASINO4_30845

:CASINO4_30766
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_30838
if 
  255@ == 0
goto_if_false @CASINO4_30838
271@ = 1
TIMERB = 0

:CASINO4_30838
goto @CASINO4_30845

:CASINO4_30845
goto @CASINO4_31590

:CASINO4_30852
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_31590
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_31590
if 
  TIMERB > 10000
goto_if_false @CASINO4_31590
switch_start 266@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @CASINO4_31469 {caseNum1} 0 {caseLabel1} @CASINO4_30963 {caseNum2} 1 {caseLabel2} @CASINO4_31049 {caseNum3} 2 {caseLabel3} @CASINO4_31133 {caseNum4} 3 {caseLabel4} @CASINO4_31217 {caseNum5} 4 {caseLabel5} @CASINO4_31301 {caseNum6} 5 {caseLabel6} @CASINO4_31385 {caseNum7} -1 {caseLabel7} @CASINO4_31590

:CASINO4_30963
if 
  255@ == 0
goto_if_false @CASINO4_31042
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_31023
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:CASINO4_31023
252@ = 46
266@ = 1
260@ = get_game_timer 

:CASINO4_31042
goto @CASINO4_31590

:CASINO4_31049
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31126
if 
  255@ == 0
goto_if_false @CASINO4_31126
252@ = 47
266@ = 2
260@ = get_game_timer 

:CASINO4_31126
goto @CASINO4_31590

:CASINO4_31133
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31210
if 
  255@ == 0
goto_if_false @CASINO4_31210
252@ = 48
266@ = 3
260@ = get_game_timer 

:CASINO4_31210
goto @CASINO4_31590

:CASINO4_31217
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31294
if 
  255@ == 0
goto_if_false @CASINO4_31294
252@ = 49
266@ = 4
260@ = get_game_timer 

:CASINO4_31294
goto @CASINO4_31590

:CASINO4_31301
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31378
if 
  255@ == 0
goto_if_false @CASINO4_31378
252@ = 92
266@ = 5
260@ = get_game_timer 

:CASINO4_31378
goto @CASINO4_31590

:CASINO4_31385
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31462
if 
  255@ == 0
goto_if_false @CASINO4_31462
252@ = 93
266@ = 6
260@ = get_game_timer 

:CASINO4_31462
goto @CASINO4_31590

:CASINO4_31469
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31583
if 
  255@ == 0
goto_if_false @CASINO4_31583
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_31569
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_31569
267@ = 1
TIMERB = 0

:CASINO4_31583
goto @CASINO4_31590

:CASINO4_31590
goto @CASINO4_32677

:CASINO4_31597
if 
  269@ == 0
goto_if_false @CASINO4_32677
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_32677
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_32677
if 
  TIMERB > 10000
goto_if_false @CASINO4_32677
switch_start 268@ {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @CASINO4_32563 {caseNum1} 0 {caseLabel1} @CASINO4_31791 {caseNum2} 1 {caseLabel2} @CASINO4_31877 {caseNum3} 2 {caseLabel3} @CASINO4_31961 {caseNum4} 3 {caseLabel4} @CASINO4_31975 {caseNum5} 4 {caseLabel5} @CASINO4_32059 {caseNum6} 5 {caseLabel6} @CASINO4_32143 {caseNum7} 6 {caseLabel7} @CASINO4_32227
switch_continued 7 {caseLabel1} @CASINO4_32311 {caseNum2} 8 {caseLabel2} @CASINO4_32395 {caseNum3} 9 {caseLabel3} @CASINO4_32479 {caseNum4} -1 {caseLabel4} @CASINO4_32677 {caseNum5} -1 {caseLabel5} @CASINO4_32677 {caseNum6} -1 {caseLabel6} @CASINO4_32677 {caseNum7} -1 {caseLabel7} @CASINO4_32677 {caseNum8} -1 {caseLabel8} @CASINO4_32677 {caseNum9} -1 {caseLabel9} @CASINO4_32677

:CASINO4_31791
if 
  255@ == 0
goto_if_false @CASINO4_31870
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_31851
shut_char_up_for_scripted_speech 72@ {state} True
shut_char_up_for_scripted_speech 71@ {state} True
shut_char_up_for_scripted_speech $scplayer {state} True

:CASINO4_31851
252@ = 82
268@ = 1
260@ = get_game_timer 

:CASINO4_31870
goto @CASINO4_32677

:CASINO4_31877
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_31954
if 
  255@ == 0
goto_if_false @CASINO4_31954
252@ = 83
268@ = 2
260@ = get_game_timer 

:CASINO4_31954
goto @CASINO4_32677

:CASINO4_31961
268@ = 3
goto @CASINO4_32677

:CASINO4_31975
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32052
if 
  255@ == 0
goto_if_false @CASINO4_32052
252@ = 85
268@ = 4
260@ = get_game_timer 

:CASINO4_32052
goto @CASINO4_32677

:CASINO4_32059
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32136
if 
  255@ == 0
goto_if_false @CASINO4_32136
252@ = 86
268@ = 5
260@ = get_game_timer 

:CASINO4_32136
goto @CASINO4_32677

:CASINO4_32143
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32220
if 
  255@ == 0
goto_if_false @CASINO4_32220
252@ = 87
268@ = 6
260@ = get_game_timer 

:CASINO4_32220
goto @CASINO4_32677

:CASINO4_32227
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32304
if 
  255@ == 0
goto_if_false @CASINO4_32304
252@ = 88
268@ = 7
260@ = get_game_timer 

:CASINO4_32304
goto @CASINO4_32677

:CASINO4_32311
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32388
if 
  255@ == 0
goto_if_false @CASINO4_32388
252@ = 89
268@ = 8
260@ = get_game_timer 

:CASINO4_32388
goto @CASINO4_32677

:CASINO4_32395
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32472
if 
  255@ == 0
goto_if_false @CASINO4_32472
252@ = 90
268@ = 9
260@ = get_game_timer 

:CASINO4_32472
goto @CASINO4_32677

:CASINO4_32479
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32556
if 
  255@ == 0
goto_if_false @CASINO4_32556
252@ = 91
268@ = 10
260@ = get_game_timer 

:CASINO4_32556
goto @CASINO4_32677

:CASINO4_32563
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_32670
if 
  255@ == 0
goto_if_false @CASINO4_32670
if and
  not is_char_dead 71@
  not is_car_dead 77@
goto_if_false @CASINO4_32663
shut_char_up_for_scripted_speech 72@ {state} False
shut_char_up_for_scripted_speech 71@ {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_32663
269@ = 1

:CASINO4_32670
goto @CASINO4_32677

:CASINO4_32677
if 
  46@ == 0
goto_if_false @CASINO4_32747
272@ = 0
69@ = add_blip_for_coord 2175.21 {y} 1679.37 {z} 9.85
clear_prints 
print 'CAS4_06' {time} 8000 {flag} 1
46@ = 1

:CASINO4_32747
goto @CASINO4_33641

:CASINO4_32754
if 
  46@ == 1
goto_if_false @CASINO4_32784
remove_blip 69@
46@ = 0

:CASINO4_32784
if and
  119@ == 0
  120@ == 0
goto_if_false @CASINO4_32852
if 
  132@ <> 0
goto_if_false @CASINO4_32852
clear_prints 
print 'CAS4_37' {time} 7000 {flag} 1
132@ = 0

:CASINO4_32852
if and
  119@ == 1
  120@ == 0
goto_if_false @CASINO4_32920
if 
  132@ <> 1
goto_if_false @CASINO4_32920
clear_prints 
print 'CAS4_03' {time} 7000 {flag} 1
132@ = 1

:CASINO4_32920
if and
  119@ == 0
  120@ == 1
goto_if_false @CASINO4_32988
if 
  132@ <> 2
goto_if_false @CASINO4_32988
clear_prints 
print 'CAS4_02' {time} 7000 {flag} 1
132@ = 2

:CASINO4_32988
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_33641
if 
  272@ == 0
goto_if_false @CASINO4_33641
if 
  252@ <> 0
goto_if_false @CASINO4_33358
if 
  255@ == 0
goto_if_false @CASINO4_33083
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_33076
clear_mission_audio 254@

:CASINO4_33076
255@ = 1

:CASINO4_33083
if 
  255@ == 1
goto_if_false @CASINO4_33120
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_33120
if 
  255@ == 2
goto_if_false @CASINO4_33180
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_33180
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_33180
if 
  255@ == 3
goto_if_false @CASINO4_33358
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_33297
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_33262
253@ = 2
254@ = 1
goto @CASINO4_33276

:CASINO4_33262
253@ = 1
254@ = 2

:CASINO4_33276
252@ = 0
255@ = 0
goto @CASINO4_33358

:CASINO4_33297
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_33358
if 
  110 > 252@
goto_if_false @CASINO4_33358
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_33358
if 
  not is_message_being_displayed 
goto_if_false @CASINO4_33641
switch_start 273@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_33562 {caseNum1} 0 {caseLabel1} @CASINO4_33434 {caseNum2} 1 {caseLabel2} @CASINO4_33478 {caseNum3} -1 {caseLabel3} @CASINO4_33641 {caseNum4} -1 {caseLabel4} @CASINO4_33641 {caseNum5} -1 {caseLabel5} @CASINO4_33641 {caseNum6} -1 {caseLabel6} @CASINO4_33641 {caseNum7} -1 {caseLabel7} @CASINO4_33641

:CASINO4_33434
if 
  255@ == 0
goto_if_false @CASINO4_33471
252@ = 40
273@ = 1
260@ = get_game_timer 

:CASINO4_33471
goto @CASINO4_33641

:CASINO4_33478
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_33555
if 
  255@ == 0
goto_if_false @CASINO4_33555
252@ = 41
273@ = 2
260@ = get_game_timer 

:CASINO4_33555
goto @CASINO4_33641

:CASINO4_33562
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_33634
if 
  255@ == 0
goto_if_false @CASINO4_33634
273@ = 0
272@ = 1

:CASINO4_33634
goto @CASINO4_33641

:CASINO4_33641
if 
  51@ == 1
goto_if_false @CASINO4_34168
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_33683
77@ = store_car_char_is_in $scplayer

:CASINO4_33683
if and
  not is_char_dead 73@
  not is_car_dead 79@
goto_if_false @CASINO4_33737
if 
  is_char_in_car 73@ {vehicle} 79@
goto_if_false @CASINO4_33730
55@ = 1

:CASINO4_33730
goto @CASINO4_33744

:CASINO4_33737
55@ = 1

:CASINO4_33744
if and
  55@ == 1
  64@ == 0
goto_if_false @CASINO4_33877
if and
  not is_char_dead 76@
  not is_car_dead 79@
  not is_car_dead 77@
goto_if_false @CASINO4_33877
87@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 79@ {x} -44.86 {y} 2345.23 {z} 23.16 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_mission -1 {vehicle} 79@ {targetVehicle} 77@ {missionId} CarMission.RamPlayerClose {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 87@
perform_sequence_task 76@ {sequence} 87@
clear_sequence_task 87@
64@ = 1

:CASINO4_33877
if and
  not is_char_dead 74@
  not is_car_dead 78@
goto_if_false @CASINO4_33931
if 
  is_char_in_car 74@ {vehicle} 78@
goto_if_false @CASINO4_33924
54@ = 1

:CASINO4_33924
goto @CASINO4_33938

:CASINO4_33931
54@ = 1

:CASINO4_33938
if and
  54@ == 1
  65@ == 0
goto_if_false @CASINO4_34071
if and
  not is_char_dead 75@
  not is_car_dead 78@
  not is_car_dead 77@
goto_if_false @CASINO4_34071
88@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 78@ {x} -50.86 {y} 2349.23 {z} 23.16 {speed} 30.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_car_mission -1 {vehicle} 78@ {targetVehicle} 77@ {missionId} CarMission.RamPlayerClose {cruiseSpeed} 35.0 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 88@
perform_sequence_task 75@ {sequence} 88@
clear_sequence_task 88@
65@ = 1

:CASINO4_34071
if and
  54@ == 1
  55@ == 1
goto_if_false @CASINO4_34168
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_34147
set_char_proofs 72@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True
set_char_proofs 71@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True

:CASINO4_34147
clear_char_decision_maker_event_response 38@ {event} Event.ShotFiredWhizzedBy
clear_char_decision_maker_event_response 38@ {event} Event.ShotFired
51@ = 2

:CASINO4_34168
if and
  51@ == 2
  98@ == 0
goto_if_false @CASINO4_35547
if 
  is_char_dead 76@
goto_if_false @CASINO4_34223
61@ = 0
goto @CASINO4_34279

:CASINO4_34223
if 
  not is_car_dead 79@
goto_if_false @CASINO4_34279
if 
  is_char_in_car 76@ {vehicle} 79@
goto_if_false @CASINO4_34272
61@ = 1
goto @CASINO4_34279

:CASINO4_34272
61@ = 0

:CASINO4_34279
if 
  is_char_dead 75@
goto_if_false @CASINO4_34309
62@ = 0
goto @CASINO4_34379

:CASINO4_34309
if 
  not is_car_dead 78@
goto_if_false @CASINO4_34372
if 
  is_char_in_car 75@ {vehicle} 78@
goto_if_false @CASINO4_34358
62@ = 1
goto @CASINO4_34365

:CASINO4_34358
62@ = 0

:CASINO4_34365
goto @CASINO4_34379

:CASINO4_34372
62@ = 0

:CASINO4_34379
if 
  not is_char_dead 73@
goto_if_false @CASINO4_34553
if or
  is_car_dead 79@
  not is_char_in_any_car 73@
  61@ == 0
goto_if_false @CASINO4_34553
90@ = get_script_task_status 73@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34553
90@ = get_script_task_status 73@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34528
if 
  56@ == 0
goto_if_false @CASINO4_34521
task_kill_char_on_foot 73@ {target} $scplayer
56@ = 1

:CASINO4_34521
goto @CASINO4_34553

:CASINO4_34528
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34553
56@ = 0

:CASINO4_34553
if 
  not is_char_dead 76@
goto_if_false @CASINO4_34722
if or
  is_car_dead 79@
  61@ == 0
goto_if_false @CASINO4_34722
90@ = get_script_task_status 76@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34722
90@ = get_script_task_status 76@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34697
if 
  58@ == 0
goto_if_false @CASINO4_34690
task_kill_char_on_foot 76@ {target} $scplayer
58@ = 1

:CASINO4_34690
goto @CASINO4_34722

:CASINO4_34697
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34722
58@ = 0

:CASINO4_34722
if 
  not is_char_dead 74@
goto_if_false @CASINO4_34896
if or
  is_car_dead 78@
  not is_char_in_any_car 74@
  62@ == 0
goto_if_false @CASINO4_34896
90@ = get_script_task_status 74@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34896
90@ = get_script_task_status 74@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_34871
if 
  59@ == 0
goto_if_false @CASINO4_34864
task_kill_char_on_foot 74@ {target} $scplayer
59@ = 1

:CASINO4_34864
goto @CASINO4_34896

:CASINO4_34871
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_34896
59@ = 0

:CASINO4_34896
if 
  not is_char_dead 75@
goto_if_false @CASINO4_35065
if or
  is_car_dead 78@
  62@ == 0
goto_if_false @CASINO4_35065
90@ = get_script_task_status 75@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_35065
90@ = get_script_task_status 75@ {taskId} 1506
if and
  not is_int_lvar_equal_to_constant 90@ == 0
  not is_int_lvar_equal_to_constant 90@ == 1
goto_if_false @CASINO4_35040
if 
  57@ == 0
goto_if_false @CASINO4_35033
task_kill_char_on_foot 75@ {target} $scplayer
57@ = 1

:CASINO4_35033
goto @CASINO4_35065

:CASINO4_35040
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_35065
57@ = 0

:CASINO4_35065
if and
  not is_char_dead 76@
  not is_car_dead 79@
goto_if_false @CASINO4_35306
if 
  is_char_in_car 76@ {vehicle} 79@
goto_if_false @CASINO4_35306
set_car_cruise_speed 79@ {maxSpeed} 35.0
if and
  not locate_char_any_means_char_2d $scplayer {target} 76@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
  not is_car_on_screen 79@
goto_if_false @CASINO4_35306
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @CASINO4_35306
91@, 92@, 93@ = get_char_coordinates $scplayer
95@, 96@, 97@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -10.0 {yOffset} -10.0 {zOffset} 0.0
if 
  not is_point_obscured_by_a_mission_entity 95@ {y} 96@ {z} 97@ {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CASINO4_35306
if 
  not is_point_on_screen 95@ {y} 96@ {z} 97@ {radius} 4.0
goto_if_false @CASINO4_35306
set_car_coordinates 79@ {x} 95@ {y} 96@ {z} 97@
turn_car_to_face_coord 79@ {x} 91@ {y} 92@
set_car_mission 79@ {carMission} CarMission.RamPlayerClose

:CASINO4_35306
if and
  not is_char_dead 75@
  not is_car_dead 78@
goto_if_false @CASINO4_35547
if 
  is_char_in_car 75@ {vehicle} 78@
goto_if_false @CASINO4_35547
set_car_cruise_speed 78@ {maxSpeed} 35.0
if and
  not locate_char_any_means_char_2d $scplayer {target} 75@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
  not is_car_on_screen 78@
goto_if_false @CASINO4_35547
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @CASINO4_35547
91@, 92@, 93@ = get_char_coordinates $scplayer
95@, 96@, 97@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -13.0 {yOffset} -13.0 {zOffset} 0.0
if 
  not is_point_obscured_by_a_mission_entity 95@ {y} 96@ {z} 97@ {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @CASINO4_35547
if 
  not is_point_on_screen 95@ {y} 96@ {z} 97@ {radius} 4.0
goto_if_false @CASINO4_35547
set_car_coordinates 78@ {x} 95@ {y} 96@ {z} 97@
turn_car_to_face_coord 78@ {x} 91@ {y} 92@
set_car_mission 78@ {carMission} CarMission.RamPlayerClose

:CASINO4_35547
99@ = 0
100@ = 0

:CASINO4_35561
if 
  4 > 99@
goto_if_false @CASINO4_35649
if 
  is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_35617
101@(99@,4i) = 1
goto @CASINO4_35635

:CASINO4_35617
101@(99@,4i) = 0
100@ += 1

:CASINO4_35635
99@ += 1
goto @CASINO4_35561

:CASINO4_35649
if or
  46@ == 1
  45@ == 1
goto_if_false @CASINO4_38621
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_38621
if 
  45@ == 0
goto_if_false @CASINO4_35957
if and
  100@ > 0
  98@ == 0
goto_if_false @CASINO4_35814
if 
  locate_char_any_means_3d $scplayer {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CASINO4_35807
gosub @CASINO4_39171
98@ = 1
45@ = 1

:CASINO4_35807
goto @CASINO4_35950

:CASINO4_35814
if and
  locate_char_any_means_3d $scplayer {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_char_any_means_3d 72@ {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
  locate_char_any_means_3d 71@ {x} 2175.21 {y} 1679.37 {z} 9.85 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASINO4_35950
remove_blip 69@
45@ = 1
clear_prints 

:CASINO4_35950
goto @CASINO4_38621

:CASINO4_35957
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_38621
clear_prints 
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:CASINO4_35994
if 
  get_fading_status 
goto_if_false @CASINO4_36018
wait 0
goto @CASINO4_35994

:CASINO4_36018
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 74@
mark_car_as_no_longer_needed 79@
mark_car_as_no_longer_needed 78@
switch_widescreen True
set_fixed_camera_position 2188.26 {y} 1678.0 {z} 11.19 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2153.54 {y} 1692.9399 {z} 12.04 {switchStyle} SwitchType.JumpCut
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_36460
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_36167
warp_char_from_car_to_coord 71@ {x} 2179.708 {y} 1680.568 {z} 10.0469
goto @CASINO4_36187

:CASINO4_36167
set_char_coordinates 71@ {x} 2179.708 {y} 1680.568 {z} 10.0469

:CASINO4_36187
set_char_heading 71@ {heading} 266.3517
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_36240
warp_char_from_car_to_coord 72@ {x} 2179.708 {y} 1677.568 {z} 10.0469
goto @CASINO4_36260

:CASINO4_36240
set_char_coordinates 72@ {x} 2179.708 {y} 1677.568 {z} 10.0469

:CASINO4_36260
set_char_heading 72@ {heading} 266.3517
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_36313
warp_char_from_car_to_coord $scplayer {x} 2179.759 {y} 1678.957 {z} 10.0469
goto @CASINO4_36333

:CASINO4_36313
set_char_coordinates $scplayer {x} 2179.759 {y} 1678.957 {z} 10.0469

:CASINO4_36333
set_char_heading $scplayer {heading} 269.249
remove_decision_maker 38@
38@ = load_char_decision_maker DecisionMakerType.Empty
clear_char_decision_maker_event_response 38@ {event} Event.PotentialWalkIntoPed
set_char_decision_maker 71@ {handleOrTemplate} 38@
set_char_decision_maker 72@ {handleOrTemplate} 38@
task_go_straight_to_coord $scplayer {x} 2187.0 {y} 1680.0 {z} 11.4 {speed} MoveState.Walk {time} -1
remove_char_from_group 71@
task_go_straight_to_coord 71@ {x} 2187.0 {y} 1680.0 {z} 11.4 {speed} MoveState.Walk {time} -1
remove_char_from_group 72@
task_go_straight_to_coord 72@ {x} 2187.0 {y} 1680.0 {z} 11.4 {speed} MoveState.Walk {time} -1

:CASINO4_36460
do_fade 1000 {direction} Fade.In

:CASINO4_36467
if 
  get_fading_status 
goto_if_false @CASINO4_36491
wait 0
goto @CASINO4_36467

:CASINO4_36491
TIMERA = 0
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0

:CASINO4_36568
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_37165
if 
  252@ <> 0
goto_if_false @CASINO4_36929
if 
  255@ == 0
goto_if_false @CASINO4_36654
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_36647
clear_mission_audio 254@

:CASINO4_36647
255@ = 1

:CASINO4_36654
if 
  255@ == 1
goto_if_false @CASINO4_36691
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_36691
if 
  255@ == 2
goto_if_false @CASINO4_36751
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_36751
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_36751
if 
  255@ == 3
goto_if_false @CASINO4_36929
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_36868
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_36833
253@ = 2
254@ = 1
goto @CASINO4_36847

:CASINO4_36833
253@ = 1
254@ = 2

:CASINO4_36847
252@ = 0
255@ = 0
goto @CASINO4_36929

:CASINO4_36868
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_36929
if 
  110 > 252@
goto_if_false @CASINO4_36929
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_36929
switch_start 257@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @CASINO4_37065 {caseNum1} 0 {caseLabel1} @CASINO4_36992 {caseNum2} -1 {caseLabel2} @CASINO4_37158 {caseNum3} -1 {caseLabel3} @CASINO4_37158 {caseNum4} -1 {caseLabel4} @CASINO4_37158 {caseNum5} -1 {caseLabel5} @CASINO4_37158 {caseNum6} -1 {caseLabel6} @CASINO4_37158 {caseNum7} -1 {caseLabel7} @CASINO4_37158

:CASINO4_36992
if 
  255@ == 0
goto_if_false @CASINO4_37058
if 
  not is_char_dead 72@
goto_if_false @CASINO4_37039
stop_char_facial_talk 72@
start_char_facial_talk 72@ {duration} 3000

:CASINO4_37039
252@ = 99
257@ = 1
260@ = get_game_timer 

:CASINO4_37058
goto @CASINO4_37158

:CASINO4_37065
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_37151
if 
  255@ == 0
goto_if_false @CASINO4_37151
if 
  not is_char_dead 72@
goto_if_false @CASINO4_37144
stop_char_facial_talk 72@

:CASINO4_37144
256@ = 1

:CASINO4_37151
goto @CASINO4_37158

:CASINO4_37158
goto @CASINO4_36568

:CASINO4_37165
if 
  50@ == 0
goto_if_false @CASINO4_37328
wait 0
if 
  locate_char_any_means_2d $scplayer {x} 2187.0 {y} 1680.0 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @CASINO4_37232
50@ = 1

:CASINO4_37232
if 
  TIMERA > 15000
goto_if_false @CASINO4_37321
if 
  not is_point_obscured_by_a_mission_entity 2195.3501 {y} 1680.058 {z} 11.4 {radiusX} 1.5 {radiusY} 1.5 {radiusZ} 3.0
goto_if_false @CASINO4_37314
set_char_coordinates $scplayer {x} 2187.0 {y} 1680.0 {z} 11.4

:CASINO4_37314
50@ = 1

:CASINO4_37321
goto @CASINO4_37165

:CASINO4_37328
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASINO4_37343
if 
  get_fading_status 
goto_if_false @CASINO4_37367
wait 0
goto @CASINO4_37343

:CASINO4_37367
force_weather WeatherType.SunnyVegas
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
mark_car_as_no_longer_needed 289@
remove_char_elegantly 72@
remove_char_elegantly 71@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 31
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 346
unload_special_character 1
unload_special_character 2
make_player_safe_for_cutscene $player1
set_area_visible 2
load_cutscene 'CAS_4C'

:CASINO4_37479
if 
  not has_cutscene_loaded 
goto_if_false @CASINO4_37503
wait 0
goto @CASINO4_37479

:CASINO4_37503
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO4_37512
if 
  not has_cutscene_finished 
goto_if_false @CASINO4_37536
wait 0
goto @CASINO4_37512

:CASINO4_37536
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO4_37551
if 
  get_fading_status 
goto_if_false @CASINO4_37575
wait 0
goto @CASINO4_37551

:CASINO4_37575
set_area_visible 0
release_weather 
restore_camera_jumpcut 
delete_char 72@
mark_char_as_no_longer_needed 72@
delete_char 71@
mark_char_as_no_longer_needed 71@
set_char_coordinates $scplayer {x} 2187.0 {y} 1680.0 {z} 10.106
set_char_heading $scplayer {heading} 90.0
load_scene 2187.0 {y} 1680.0 {z} 10.106
request_model 330

:CASINO4_37655
if 
  not has_model_loaded 330
goto_if_false @CASINO4_37682
wait 0
goto @CASINO4_37655

:CASINO4_37682
set_fixed_camera_position 2186.5239 {y} 1679.363 {z} 11.6094 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2186.9829 {y} 1680.246 {z} 11.7063 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
do_fade 1500 {direction} Fade.In

:CASINO4_37753
if 
  get_fading_status 
goto_if_false @CASINO4_37777
wait 0
goto @CASINO4_37753

:CASINO4_37777
task_use_mobile_phone $scplayer {start} True
wait 2000
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
skip_cutscene_start_internal @CASINO4_38532

:CASINO4_37866
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_38532
if 
  252@ <> 0
goto_if_false @CASINO4_38227
if 
  255@ == 0
goto_if_false @CASINO4_37952
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_37945
clear_mission_audio 254@

:CASINO4_37945
255@ = 1

:CASINO4_37952
if 
  255@ == 1
goto_if_false @CASINO4_37989
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_37989
if 
  255@ == 2
goto_if_false @CASINO4_38049
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_38049
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_38049
if 
  255@ == 3
goto_if_false @CASINO4_38227
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_38166
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_38131
253@ = 2
254@ = 1
goto @CASINO4_38145

:CASINO4_38131
253@ = 1
254@ = 2

:CASINO4_38145
252@ = 0
255@ = 0
goto @CASINO4_38227

:CASINO4_38166
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_38227
if 
  110 > 252@
goto_if_false @CASINO4_38227
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_38227
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_38448 {caseNum1} 0 {caseLabel1} @CASINO4_38290 {caseNum2} 1 {caseLabel2} @CASINO4_38347 {caseNum3} 2 {caseLabel3} @CASINO4_38404 {caseNum4} -1 {caseLabel4} @CASINO4_38525 {caseNum5} -1 {caseLabel5} @CASINO4_38525 {caseNum6} -1 {caseLabel6} @CASINO4_38525 {caseNum7} -1 {caseLabel7} @CASINO4_38525

:CASINO4_38290
if 
  255@ == 0
goto_if_false @CASINO4_38340
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 3000
252@ = 100
257@ = 1
260@ = get_game_timer 

:CASINO4_38340
goto @CASINO4_38525

:CASINO4_38347
if 
  255@ == 0
goto_if_false @CASINO4_38397
252@ = 101
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 3000
257@ = 2
260@ = get_game_timer 

:CASINO4_38397
goto @CASINO4_38525

:CASINO4_38404
if 
  255@ == 0
goto_if_false @CASINO4_38441
252@ = 102
257@ = 3
260@ = get_game_timer 

:CASINO4_38441
goto @CASINO4_38525

:CASINO4_38448
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_38518
if 
  255@ == 0
goto_if_false @CASINO4_38518
stop_char_facial_talk $scplayer
256@ = 1

:CASINO4_38518
goto @CASINO4_38525

:CASINO4_38525
goto @CASINO4_37866

:CASINO4_38532
skip_cutscene_end 
make_player_gang_reappear 
stop_char_facial_talk $scplayer
clear_mission_audio 253@
clear_mission_audio 254@
90@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_38587
task_use_mobile_phone $scplayer {start} False

:CASINO4_38587
mark_model_as_no_longer_needed 330
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
goto @CASINO4_45870
49@ = 1

:CASINO4_38621
goto @CASINO4_4043

:CASINO4_38628
if and
  not is_char_dead 71@
  not is_char_dead 72@
goto_if_false @CASINO4_39169
89@ = open_sequence_task 
task_goto_char -1 {target} 71@ {time} -1 {radius} 1.2
task_turn_char_to_face_char -1 {target} 71@
task_play_anim -1 {animationName} "PNM_LOOP_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE2_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE1_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_A" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 89@ {state} True
close_sequence_task 89@
perform_sequence_task 72@ {sequence} 89@
clear_sequence_task 89@
89@ = open_sequence_task 
task_goto_char -1 {target} 72@ {time} -1 {radius} 1.2
task_turn_char_to_face_char -1 {target} 72@
task_play_anim -1 {animationName} "PNM_LOOP_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE2_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_ARGUE1_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PNM_LOOP_B" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 89@ {state} True
close_sequence_task 89@
perform_sequence_task 71@ {sequence} 89@
clear_sequence_task 89@

:CASINO4_39169
return 

:CASINO4_39171
set_group_decision_maker $Players_Group {handleOrTemplate} -1
set_police_ignore_player $player1 {state} True
set_wanted_multiplier 0.0
set_lvar_int_to_lvar_int 113@ = 73@
set_lvar_int_to_lvar_int 114@ = 76@
set_lvar_int_to_lvar_int 115@ = 75@
set_lvar_int_to_lvar_int 116@ = 74@
99@ = 0
100@ = 0

:CASINO4_39238
if 
  4 > 99@
goto_if_false @CASINO4_39346
if 
  is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_39294
101@(99@,4i) = 1
goto @CASINO4_39332

:CASINO4_39294
clear_char_tasks 113@(99@,4i)
set_current_char_weapon 113@(99@,4i) {weaponType} WeaponType.Unarmed
101@(99@,4i) = 0
100@ += 1

:CASINO4_39332
99@ += 1
goto @CASINO4_39238

:CASINO4_39346
if 
  100@ > 0
goto_if_false @CASINO4_45850
remove_blip 69@
46@ = 0
set_player_control $player1 {state} False
switch_widescreen True
clear_area 2165.6121 {y} 1680.619 {z} 9.8047 {radius} 50.0 {clearParticles} True
clear_prints 
set_fixed_camera_position 2171.9099 {y} 1669.08 {z} 10.32 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2164.9299 {y} 1708.54 {z} 16.85 {switchStyle} SwitchType.JumpCut
request_animation "MISC"
request_animation "GANGS"
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
if 
  not is_car_dead 78@
goto_if_false @CASINO4_39610
if 
  not is_char_dead 75@
goto_if_false @CASINO4_39610
if 
  is_char_in_car 75@ {vehicle} 78@
goto_if_false @CASINO4_39610
set_car_coordinates 78@ {x} 2096.136 {y} 1643.952 {z} 9.7768
set_car_heading 78@ {heading} 270.9418
task_car_drive_to_coord 75@ {vehicle} 78@ {x} 2158.5181 {y} 1681.402 {z} 9.8047 {speed} 30.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:CASINO4_39610
if 
  not is_car_dead 79@
goto_if_false @CASINO4_39725
if 
  not is_char_dead 76@
goto_if_false @CASINO4_39725
if 
  is_char_in_car 76@ {vehicle} 79@
goto_if_false @CASINO4_39725
set_car_coordinates 79@ {x} 2080.9341 {y} 1643.649 {z} 9.6757
set_car_heading 79@ {heading} 271.0448
task_car_drive_to_coord 76@ {vehicle} 79@ {x} 2154.2749 {y} 1664.964 {z} 9.8125 {speed} 30.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:CASINO4_39725
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_40152
77@ = store_car_char_is_in $scplayer
if 
  not is_car_dead 77@
goto_if_false @CASINO4_40145
set_car_mission 77@ {carMission} CarMission.StopForever
53@ = 0
TIMERB = 0

:CASINO4_39786
if 
  53@ == 0
goto_if_false @CASINO4_40145
if 
  63@ == 0
goto_if_false @CASINO4_40108
if 
  not is_car_dead 77@
goto_if_false @CASINO4_40108
if 
  is_car_stopped 77@
goto_if_false @CASINO4_40108
109@ = open_sequence_task 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_39879
task_leave_any_car -1

:CASINO4_39879
task_go_straight_to_coord -1 {x} 2171.0 {y} 1671.0 {z} 11.0 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task $scplayer {sequence} 109@
clear_sequence_task 109@
if 
  not is_char_dead 71@
goto_if_false @CASINO4_40007
remove_char_from_group 71@
109@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_39966
task_leave_any_car -1

:CASINO4_39966
task_go_straight_to_coord -1 {x} 2172.0 {y} 1669.0 {z} 10.8125 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 71@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40007
if 
  not is_char_dead 72@
goto_if_false @CASINO4_40094
remove_char_from_group 72@
109@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_40053
task_leave_any_car -1

:CASINO4_40053
task_go_straight_to_coord -1 {x} 2170.0 {y} 1673.0 {z} 10.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 72@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40094
53@ = 1
63@ = 1

:CASINO4_40108
if 
  TIMERB > 20000
goto_if_false @CASINO4_40134
53@ = 1

:CASINO4_40134
wait 0
goto @CASINO4_39786

:CASINO4_40145
goto @CASINO4_40382

:CASINO4_40152
109@ = open_sequence_task 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_40177
task_leave_any_car -1

:CASINO4_40177
task_go_straight_to_coord -1 {x} 2165.6121 {y} 1680.619 {z} 9.8047 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task $scplayer {sequence} 109@
clear_sequence_task 109@
if 
  not is_char_dead 71@
goto_if_false @CASINO4_40300
109@ = open_sequence_task 
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_40259
task_leave_any_car -1

:CASINO4_40259
task_go_straight_to_coord -1 {x} 2166.4431 {y} 1678.606 {z} 9.8125 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 71@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40300
if 
  not is_char_dead 72@
goto_if_false @CASINO4_40382
109@ = open_sequence_task 
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_40341
task_leave_any_car -1

:CASINO4_40341
task_go_straight_to_coord -1 {x} 2166.7061 {y} 1683.291 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 109@
perform_sequence_task 72@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_40382
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
53@ = 0
300@ = 0
301@ = 0
302@ = 0
TIMERB = 0

:CASINO4_40487
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_41565
if 
  252@ <> 0
goto_if_false @CASINO4_40853
if 
  255@ == 0
goto_if_false @CASINO4_40573
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_40566
clear_mission_audio 254@

:CASINO4_40566
255@ = 1

:CASINO4_40573
if 
  255@ == 1
goto_if_false @CASINO4_40610
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_40610
if 
  255@ == 2
goto_if_false @CASINO4_40670
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_40670
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_40670
if 
  255@ == 3
goto_if_false @CASINO4_40853
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_40792
stop_char_facial_talk $scplayer
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_40757
253@ = 2
254@ = 1
goto @CASINO4_40771

:CASINO4_40757
253@ = 1
254@ = 2

:CASINO4_40771
252@ = 0
255@ = 0
goto @CASINO4_40853

:CASINO4_40792
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_40853
if 
  110 > 252@
goto_if_false @CASINO4_40853
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_40853
switch_start 257@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO4_41060 {caseNum1} 0 {caseLabel1} @CASINO4_40916 {caseNum2} 1 {caseLabel2} @CASINO4_40968 {caseNum3} -1 {caseLabel3} @CASINO4_41186 {caseNum4} -1 {caseLabel4} @CASINO4_41186 {caseNum5} -1 {caseLabel5} @CASINO4_41186 {caseNum6} -1 {caseLabel6} @CASINO4_41186 {caseNum7} -1 {caseLabel7} @CASINO4_41186

:CASINO4_40916
if 
  255@ == 0
goto_if_false @CASINO4_40961
start_char_facial_talk $scplayer {duration} 3000
252@ = 94
257@ = 1
260@ = get_game_timer 

:CASINO4_40961
goto @CASINO4_41186

:CASINO4_40968
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_41053
if 
  255@ == 0
goto_if_false @CASINO4_41053
start_char_facial_talk $scplayer {duration} 3000
252@ = 95
257@ = 2
260@ = get_game_timer 

:CASINO4_41053
goto @CASINO4_41186

:CASINO4_41060
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_41179
if 
  255@ == 0
goto_if_false @CASINO4_41179
if 
  300@ == 1
goto_if_false @CASINO4_41179
if 
  301@ == 1
goto_if_false @CASINO4_41179
if 
  302@ == 1
goto_if_false @CASINO4_41179
256@ = 1

:CASINO4_41179
goto @CASINO4_41186

:CASINO4_41186
90@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 90@ == 7
goto_if_false @CASINO4_41222
300@ = 1

:CASINO4_41222
if 
  301@ == 0
goto_if_false @CASINO4_41377
if 
  not is_car_dead 79@
goto_if_false @CASINO4_41370
303@ = get_driver_of_car 79@
if 
  303@ <> -1
goto_if_false @CASINO4_41356
if 
  locate_car_3d 79@ {x} 2154.2749 {y} 1664.964 {z} 9.8125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO4_41349
set_car_mission 79@ {carMission} CarMission.StopForever
task_everyone_leave_car 79@
301@ = 1

:CASINO4_41349
goto @CASINO4_41363

:CASINO4_41356
301@ = 1

:CASINO4_41363
goto @CASINO4_41377

:CASINO4_41370
301@ = 1

:CASINO4_41377
if 
  302@ == 0
goto_if_false @CASINO4_41532
if 
  not is_car_dead 78@
goto_if_false @CASINO4_41525
303@ = get_driver_of_car 78@
if 
  303@ <> -1
goto_if_false @CASINO4_41511
if 
  locate_car_3d 78@ {x} 2158.5181 {y} 1681.402 {z} 9.8047 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASINO4_41504
set_car_mission 78@ {carMission} CarMission.StopForever
task_everyone_leave_car 78@
302@ = 1

:CASINO4_41504
goto @CASINO4_41518

:CASINO4_41511
300@ = 1

:CASINO4_41518
goto @CASINO4_41532

:CASINO4_41525
302@ = 1

:CASINO4_41532
if 
  TIMERB > 20000
goto_if_false @CASINO4_41558
256@ = 1

:CASINO4_41558
goto @CASINO4_40487

:CASINO4_41565
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
mark_model_as_no_longer_needed 478

:CASINO4_41580
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "MISC"
goto_if_false @CASINO4_41636
request_animation "GANGS"
request_animation "MISC"
wait 0
goto @CASINO4_41580

:CASINO4_41636
clear_area 2175.21 {y} 1679.37 {z} 9.85 {radius} 50.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO4_41708
warp_char_from_car_to_coord $scplayer {x} 2171.0 {y} 1671.0 {z} 9.8125
goto @CASINO4_41728

:CASINO4_41708
set_char_coordinates $scplayer {x} 2171.0 {y} 1671.0 {z} 9.8125

:CASINO4_41728
set_char_heading $scplayer {heading} 109.2628
if 
  not is_char_dead 72@
goto_if_false @CASINO4_41847
set_char_decision_maker 72@ {handleOrTemplate} 37@
119@ = 0
clear_char_tasks_immediately 72@
if 
  is_char_in_any_car 72@
goto_if_false @CASINO4_41817
warp_char_from_car_to_coord 72@ {x} 2170.0 {y} 1673.0 {z} 9.8125
goto @CASINO4_41837

:CASINO4_41817
set_char_coordinates 72@ {x} 2170.0 {y} 1673.0 {z} 9.8125

:CASINO4_41837
set_char_heading 72@ {heading} 153.2628

:CASINO4_41847
if 
  not is_char_dead 71@
goto_if_false @CASINO4_41956
set_char_decision_maker 71@ {handleOrTemplate} 38@
120@ = 0
clear_char_tasks_immediately 71@
if 
  is_char_in_any_car 71@
goto_if_false @CASINO4_41926
warp_char_from_car_to_coord 71@ {x} 2172.0 {y} 1669.0 {z} 9.8125
goto @CASINO4_41946

:CASINO4_41926
set_char_coordinates 71@ {x} 2172.0 {y} 1669.0 {z} 9.8125

:CASINO4_41946
set_char_heading 71@ {heading} 133.2628

:CASINO4_41956
91@, 92@, 93@ = get_char_coordinates $scplayer
if 
  not is_char_dead 113@
goto_if_false @CASINO4_42131
if 
  is_char_in_any_car 113@
goto_if_false @CASINO4_42029
warp_char_from_car_to_coord 113@ {x} 2163.4299 {y} 1660.7209 {z} 9.8203
goto @CASINO4_42049

:CASINO4_42029
set_char_coordinates 113@ {x} 2163.4299 {y} 1660.7209 {z} 9.8203

:CASINO4_42049
set_char_heading 113@ {heading} 327.8448
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 113@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42131
if 
  not is_char_dead 114@
goto_if_false @CASINO4_42292
if 
  is_char_in_any_car 114@
goto_if_false @CASINO4_42190
warp_char_from_car_to_coord 114@ {x} 2162.6909 {y} 1664.223 {z} 9.8203
goto @CASINO4_42210

:CASINO4_42190
set_char_coordinates 114@ {x} 2162.6909 {y} 1664.223 {z} 9.8203

:CASINO4_42210
set_char_heading 114@ {heading} 355.144
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 114@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42292
if 
  not is_char_dead 115@
goto_if_false @CASINO4_42453
if 
  is_char_in_any_car 115@
goto_if_false @CASINO4_42351
warp_char_from_car_to_coord 115@ {x} 2166.5659 {y} 1661.498 {z} 9.8203
goto @CASINO4_42371

:CASINO4_42351
set_char_coordinates 115@ {x} 2166.5659 {y} 1661.498 {z} 9.8203

:CASINO4_42371
set_char_heading 115@ {heading} 343.0
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 115@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42453
if 
  not is_char_dead 116@
goto_if_false @CASINO4_42614
if 
  is_char_in_any_car 116@
goto_if_false @CASINO4_42512
warp_char_from_car_to_coord 116@ {x} 2160.908 {y} 1664.875 {z} 9.8047
goto @CASINO4_42532

:CASINO4_42512
set_char_coordinates 116@ {x} 2160.908 {y} 1664.875 {z} 9.8047

:CASINO4_42532
set_char_heading 116@ {heading} 315.7
109@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "SCRATCHBALLS_01" {animationFile} "MISC" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 109@
perform_sequence_task 116@ {sequence} 109@
clear_sequence_task 109@

:CASINO4_42614
set_fixed_camera_position 2171.6499 {y} 1673.89 {z} 11.12 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2158.3999 {y} 1649.6801 {z} 11.08 {switchStyle} SwitchType.JumpCut
make_player_gang_disappear 
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
skip_cutscene_start_internal @CASINO4_43726

:CASINO4_42744
wait 0
if 
  256@ == 0
goto_if_false @CASINO4_43726
if 
  252@ <> 0
goto_if_false @CASINO4_43105
if 
  255@ == 0
goto_if_false @CASINO4_42830
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_42823
clear_mission_audio 254@

:CASINO4_42823
255@ = 1

:CASINO4_42830
if 
  255@ == 1
goto_if_false @CASINO4_42867
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_42867
if 
  255@ == 2
goto_if_false @CASINO4_42927
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_42927
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_42927
if 
  255@ == 3
goto_if_false @CASINO4_43105
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_43044
clear_this_print $cas4_text(252@,114s)
if 
  253@ == 1
goto_if_false @CASINO4_43009
253@ = 2
254@ = 1
goto @CASINO4_43023

:CASINO4_43009
253@ = 1
254@ = 2

:CASINO4_43023
252@ = 0
255@ = 0
goto @CASINO4_43105

:CASINO4_43044
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_43105
if 
  110 > 252@
goto_if_false @CASINO4_43105
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_43105
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_43626 {caseNum1} 0 {caseLabel1} @CASINO4_43168 {caseNum2} 1 {caseLabel2} @CASINO4_43270 {caseNum3} 2 {caseLabel3} @CASINO4_43497 {caseNum4} -1 {caseLabel4} @CASINO4_43719 {caseNum5} -1 {caseLabel5} @CASINO4_43719 {caseNum6} -1 {caseLabel6} @CASINO4_43719 {caseNum7} -1 {caseLabel7} @CASINO4_43719

:CASINO4_43168
if 
  255@ == 0
goto_if_false @CASINO4_43263
257@ = 1
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43247
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43236
task_look_at_char 71@ {target} 72@ {time} 10000

:CASINO4_43236
task_look_at_char $scplayer {target} 72@ {time} 10000

:CASINO4_43247
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43263

:CASINO4_43263
goto @CASINO4_43719

:CASINO4_43270
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43490
if 
  255@ == 0
goto_if_false @CASINO4_43490
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43352
start_char_facial_talk 71@ {duration} 3000

:CASINO4_43352
252@ = 97
257@ = 2
299@ = 0

:CASINO4_43373
if 
  4 > 299@
goto_if_false @CASINO4_43453
if 
  not is_char_dead 113@(299@,4i)
goto_if_false @CASINO4_43439
task_go_straight_to_coord 113@(299@,4i) {x} 2167.999 {y} 1666.121 {z} 9.8203 {speed} MoveState.Walk {time} -1

:CASINO4_43439
299@ += 1
goto @CASINO4_43373

:CASINO4_43453
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43469

:CASINO4_43469
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43485

:CASINO4_43485
260@ = get_game_timer 

:CASINO4_43490
goto @CASINO4_43719

:CASINO4_43497
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43619
if 
  255@ == 0
goto_if_false @CASINO4_43619
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43576
stop_char_facial_talk 71@

:CASINO4_43576
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43600
start_char_facial_talk 72@ {duration} 3000

:CASINO4_43600
252@ = 98
257@ = 3
260@ = get_game_timer 

:CASINO4_43619
goto @CASINO4_43719

:CASINO4_43626
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_43712
if 
  255@ == 0
goto_if_false @CASINO4_43712
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43705
stop_char_facial_talk 72@

:CASINO4_43705
256@ = 1

:CASINO4_43712
goto @CASINO4_43719

:CASINO4_43719
goto @CASINO4_42744

:CASINO4_43726
skip_cutscene_end 
make_player_gang_reappear 
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43751
stop_char_facial_talk 71@

:CASINO4_43751
if 
  not is_char_dead 72@
goto_if_false @CASINO4_43772
stop_char_facial_talk 72@

:CASINO4_43772
clear_mission_audio 253@
clear_mission_audio 254@
99@ = 3

:CASINO4_43789
if 
  99@ > -1
goto_if_false @CASINO4_43924
if 
  not is_char_dead 71@
goto_if_false @CASINO4_43910
if 
  not is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_43910
clear_look_at 71@
task_kill_char_on_foot 71@ {target} 113@(99@,4i)
set_lvar_int_to_lvar_int 298@ = 113@(99@,4i)
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
117@ = add_blip_for_char 71@
set_blip_as_friendly 117@ {state} True
change_blip_scale 117@ {size} 2
99@ = -1

:CASINO4_43910
99@ -= 1
goto @CASINO4_43789

:CASINO4_43924
99@ = 0

:CASINO4_43931
if 
  4 > 99@
goto_if_false @CASINO4_44066
if 
  not is_char_dead 72@
goto_if_false @CASINO4_44052
if 
  not is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_44052
clear_look_at 72@
task_kill_char_on_foot 72@ {target} 113@(99@,4i)
set_lvar_int_to_lvar_int 297@ = 113@(99@,4i)
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
118@ = add_blip_for_char 72@
set_blip_as_friendly 118@ {state} True
change_blip_scale 118@ {size} 2
99@ = 4

:CASINO4_44052
99@ += 1
goto @CASINO4_43931

:CASINO4_44066
99@ = 0

:CASINO4_44073
if 
  4 > 99@
goto_if_false @CASINO4_44270
if 
  not is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_44256
add_blip_for_char 113@(99@,4i) {var_handle} 105@(99@,4i)
change_blip_display 105@(99@,4i) {display} BlipDisplay.BlipOnly
change_blip_scale 105@(99@,4i) {size} 2
set_char_relationship 113@(99@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Special
set_char_relationship 113@(99@,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
if 
  2 > 99@
goto_if_false @CASINO4_44228
if 
  not is_char_dead 72@
goto_if_false @CASINO4_44221
task_kill_char_on_foot 113@(99@,4i) {target} 72@

:CASINO4_44221
goto @CASINO4_44256

:CASINO4_44228
if 
  not is_char_dead 71@
goto_if_false @CASINO4_44256
task_kill_char_on_foot 113@(99@,4i) {target} 71@

:CASINO4_44256
99@ += 1
goto @CASINO4_44073

:CASINO4_44270
restore_camera_jumpcut 
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
clear_char_tasks $scplayer
clear_look_at $scplayer
set_player_control $player1 {state} True
switch_widescreen False
remove_animation "MISC"
remove_animation "GANGS"
252@ = 0
253@ = 1
254@ = 2
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
TIMERB = 0
53@ = 0

:CASINO4_44408
if 
  53@ == 0
goto_if_false @CASINO4_45775
if 
  252@ <> 0
goto_if_false @CASINO4_44821
if 
  255@ == 0
goto_if_false @CASINO4_44490
if 
  has_mission_audio_loaded 254@
goto_if_false @CASINO4_44483
clear_mission_audio 254@

:CASINO4_44483
255@ = 1

:CASINO4_44490
if 
  255@ == 1
goto_if_false @CASINO4_44527
load_mission_audio 253@ {audioId} 138@(252@,114i)
255@ = 2

:CASINO4_44527
if 
  255@ == 2
goto_if_false @CASINO4_44587
if 
  has_mission_audio_loaded 253@
goto_if_false @CASINO4_44587
play_mission_audio 253@
print_now $cas4_text(252@,114s) {time} 10000 {flag} 1
255@ = 3

:CASINO4_44587
if 
  255@ == 3
goto_if_false @CASINO4_44821
if 
  has_mission_audio_finished 253@
goto_if_false @CASINO4_44760
clear_this_print $cas4_text(252@,114s)
if 
  not is_char_dead 71@
goto_if_false @CASINO4_44658
stop_char_facial_talk 71@
shut_char_up_for_scripted_speech 71@ {state} False

:CASINO4_44658
if 
  not is_char_dead 72@
goto_if_false @CASINO4_44686
stop_char_facial_talk 72@
shut_char_up_for_scripted_speech 72@ {state} False

:CASINO4_44686
if 
  253@ == 1
goto_if_false @CASINO4_44725
253@ = 2
254@ = 1
goto @CASINO4_44739

:CASINO4_44725
253@ = 1
254@ = 2

:CASINO4_44739
252@ = 0
255@ = 0
goto @CASINO4_44821

:CASINO4_44760
if 
  not has_mission_audio_loaded 254@
goto_if_false @CASINO4_44821
if 
  110 > 252@
goto_if_false @CASINO4_44821
set_lvar_int_to_lvar_int 261@ = 252@
261@ += 1
load_mission_audio 254@ {audioId} 138@(261@,114i)

:CASINO4_44821
switch_start 257@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @CASINO4_45208 {caseNum1} 0 {caseLabel1} @CASINO4_44884 {caseNum2} 1 {caseLabel2} @CASINO4_44978 {caseNum3} 2 {caseLabel3} @CASINO4_45093 {caseNum4} -1 {caseLabel4} @CASINO4_45280 {caseNum5} -1 {caseLabel5} @CASINO4_45280 {caseNum6} -1 {caseLabel6} @CASINO4_45280 {caseNum7} -1 {caseLabel7} @CASINO4_45280

:CASINO4_44884
if 
  TIMERB > 5000
goto_if_false @CASINO4_44971
if 
  255@ == 0
goto_if_false @CASINO4_44971
if 
  not is_char_dead 71@
goto_if_false @CASINO4_44952
shut_char_up_for_scripted_speech 71@ {state} True
start_char_facial_talk 71@ {duration} 3000

:CASINO4_44952
252@ = 112
257@ = 1
260@ = get_game_timer 

:CASINO4_44971
goto @CASINO4_45280

:CASINO4_44978
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 7000
goto_if_false @CASINO4_45086
if 
  255@ == 0
goto_if_false @CASINO4_45086
252@ = 17
if 
  not is_char_dead 72@
goto_if_false @CASINO4_45074
shut_char_up_for_scripted_speech 72@ {state} True
start_char_facial_talk 72@ {duration} 3000

:CASINO4_45074
257@ = 2
260@ = get_game_timer 

:CASINO4_45086
goto @CASINO4_45280

:CASINO4_45093
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 7000
goto_if_false @CASINO4_45201
if 
  255@ == 0
goto_if_false @CASINO4_45201
if 
  not is_char_dead 71@
goto_if_false @CASINO4_45182
shut_char_up_for_scripted_speech 71@ {state} True
start_char_facial_talk 71@ {duration} 3000

:CASINO4_45182
252@ = 111
257@ = 3
260@ = get_game_timer 

:CASINO4_45201
goto @CASINO4_45280

:CASINO4_45208
259@ = get_game_timer 
set_lvar_int_to_lvar_int 258@ = 259@
sub_int_lvar_from_int_lvar 258@ -= 260@
if 
  258@ > 1000
goto_if_false @CASINO4_45273
if 
  255@ == 0
goto_if_false @CASINO4_45273
256@ = 1

:CASINO4_45273
goto @CASINO4_45280

:CASINO4_45280
99@ = 0

:CASINO4_45287
if 
  4 > 99@
goto_if_false @CASINO4_45655
if 
  101@(99@,4i) == 0
goto_if_false @CASINO4_45641
if 
  is_char_dead 113@(99@,4i)
goto_if_false @CASINO4_45641
if 
  is_int_lvar_equal_to_int_lvar 298@ == 113@(99@,4i)
goto_if_false @CASINO4_45476
299@ = 3

:CASINO4_45377
if 
  299@ > -1
goto_if_false @CASINO4_45476
if 
  not is_char_dead 71@
goto_if_false @CASINO4_45462
if 
  not is_char_dead 113@(299@,4i)
goto_if_false @CASINO4_45462
task_kill_char_on_foot 71@ {target} 113@(299@,4i)
set_lvar_int_to_lvar_int 298@ = 113@(299@,4i)
299@ = -1

:CASINO4_45462
299@ -= 1
goto @CASINO4_45377

:CASINO4_45476
if 
  is_int_lvar_equal_to_int_lvar 297@ == 113@(99@,4i)
goto_if_false @CASINO4_45605
299@ = 0

:CASINO4_45506
if 
  4 > 299@
goto_if_false @CASINO4_45605
if 
  not is_char_dead 72@
goto_if_false @CASINO4_45591
if 
  not is_char_dead 113@(299@,4i)
goto_if_false @CASINO4_45591
task_kill_char_on_foot 72@ {target} 113@(299@,4i)
set_lvar_int_to_lvar_int 297@ = 113@(299@,4i)
299@ = 4

:CASINO4_45591
299@ += 1
goto @CASINO4_45506

:CASINO4_45605
remove_blip 105@(99@,4i)
mark_char_as_no_longer_needed 113@(99@,4i)
101@(99@,4i) = 1
100@ -= 1

:CASINO4_45641
99@ += 1
goto @CASINO4_45287

:CASINO4_45655
if 
  1 > 100@
goto_if_false @CASINO4_45734
53@ = 1
if 
  46@ == 0
goto_if_false @CASINO4_45734
mark_car_as_no_longer_needed 77@
clear_area 2175.21 {y} 1679.37 {z} 9.85 {radius} 10.0 {clearParticles} True
46@ = 1

:CASINO4_45734
if or
  is_char_dead 72@
  is_char_dead 71@
goto_if_false @CASINO4_45764
clear_prints 
53@ = 1

:CASINO4_45764
wait 0
goto @CASINO4_44408

:CASINO4_45775
clear_mission_audio 254@
clear_mission_audio 253@
set_wanted_multiplier 1.0
remove_blip 118@
remove_blip 117@
if and
  not is_char_dead 72@
  not is_char_dead 71@
goto_if_false @CASINO4_45850
stop_char_facial_talk 71@
stop_char_facial_talk 72@
clear_char_tasks_immediately 72@
clear_char_tasks_immediately 71@
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:CASINO4_45850
return 

:CASINO4_45852
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:CASINO4_45870
$flag_casino_mission_counter += 1
set_int_stat StatId.PassedCasino4 {value} 1
register_mission_passed 'CASINO4'
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
clear_wanted_level $player1
player_made_progress 1
remove_blip $casino_contact_blip
return 

:CASINO4_45937
$timer_mobile_start = get_game_timer 
set_police_ignore_player $player1 {state} False
if 
  is_player_playing $player1
goto_if_false @CASINO4_45972
shut_char_up_for_scripted_speech $scplayer {state} False

:CASINO4_45972
kill_fx_system 136@
kill_fx_system 137@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
remove_blip 69@
remove_blip 68@
remove_blip 67@
remove_blip 70@
remove_blip 66@
remove_blip 105@
remove_blip 106@
remove_blip 107@
remove_blip 108@
remove_blip 117@
remove_blip 118@
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
mark_car_as_no_longer_needed 289@
remove_char_elegantly 72@
remove_char_elegantly 71@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 303@
mark_char_as_no_longer_needed 113@
mark_char_as_no_longer_needed 114@
mark_char_as_no_longer_needed 115@
mark_char_as_no_longer_needed 116@
mark_char_as_no_longer_needed 290@
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 31
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 346
remove_animation "SUNBATHE"
remove_animation "PAULNMAC"
remove_animation "FOOD"
remove_animation "SMOKING"
remove_animation "MISC"
remove_animation "GANGS"
remove_decision_maker 37@
remove_decision_maker 38@
remove_decision_maker 39@
unload_special_character 1
unload_special_character 2
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 89---------------
// Originally: Intensive Care

:CASINO5
script_name 'CASINO5'
gosub @CASINO5_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO5_38
gosub @CASINO5_12932

:CASINO5_38
gosub @CASINO5_12978
terminate_this_script 

:CASINO5_47
register_mission_given 
$onmission = 1
load_mission_text 'CASINO5'
set_char_coordinates $scplayer {x} 2175.4121 {y} 1681.548 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 9.8203
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_5A'

:CASINO5_150
if 
  not has_cutscene_loaded 
goto_if_false @CASINO5_174
wait 0
goto @CASINO5_150

:CASINO5_174
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO5_183
if 
  not has_cutscene_finished 
goto_if_false @CASINO5_207
wait 0
goto @CASINO5_183

:CASINO5_207
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO5_222
if 
  get_fading_status 
goto_if_false @CASINO5_246
wait 0
goto @CASINO5_222

:CASINO5_246
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
load_scene 2175.4121 {y} 1681.548 {z} 9.8203
request_model 416
request_model 470
request_model 275
request_model 124
request_model 125
load_special_character 1 {modelName} 'SINDACO'
request_model 353
request_animation "GANGS"

:CASINO5_329
if or
  not has_model_loaded 416
  not has_model_loaded 470
  not has_model_loaded 275
  not has_model_loaded 124
  not has_model_loaded 125
goto_if_false @CASINO5_374
wait 0
goto @CASINO5_329

:CASINO5_374
if or
  not has_special_character_loaded 1
  not has_model_loaded 353
  not has_animation_loaded "GANGS"
goto_if_false @CASINO5_414
wait 0
goto @CASINO5_374

:CASINO5_414
47@ = load_char_decision_maker DecisionMakerType.Tough
49@ = load_char_decision_maker DecisionMakerType.Normal
48@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
54@ = 0
if 
  54@ == 1
goto_if_false @CASINO5_547
72@ = create_char PedType.Mission1 {modelId} 124 {x} 0.0 {y} 0.0 {z} 0.0
create_char PedType.Mission1 {modelId} 124 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 99@(40@,2i)
create_car 416 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 97@(40@,2i)

:CASINO5_547
set_fading_colour 0 {g} 0 {b} 0
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 0 {direction} Fade.In
print_now 'CAS5_00' {time} 8000 {flag} 1
44@ = add_blip_for_coord 1604.158 {y} 1838.765 {z} 9.828
set_lvar_text_label 140@s = 'CAS5_AA'
set_lvar_int_to_constant 124@ = 8000
set_lvar_text_label 142@s = 'CAS5_AB'
set_lvar_int_to_constant 125@ = 8001
set_lvar_text_label 144@s = 'CAS5_BA'
set_lvar_int_to_constant 126@ = 8002
set_lvar_text_label 146@s = 'CAS5_BB'
set_lvar_int_to_constant 127@ = 8003
set_lvar_text_label 148@s = 'CAS5_BC'
set_lvar_int_to_constant 128@ = 8004
set_lvar_text_label 150@s = 'CAS5_BD'
set_lvar_int_to_constant 129@ = 8005
set_lvar_text_label 152@s = 'CAS5_BE'
set_lvar_int_to_constant 130@ = 8006
set_lvar_text_label 154@s = 'CAS5_CA'
set_lvar_int_to_constant 131@ = 8007
set_lvar_text_label 156@s = 'CAS5_CB'
set_lvar_int_to_constant 132@ = 8008
set_lvar_text_label 158@s = 'CAS5_CC'
set_lvar_int_to_constant 133@ = 8009
set_lvar_text_label 160@s = 'CAS5_CD'
set_lvar_int_to_constant 134@ = 8010
set_lvar_text_label 162@s = 'CAS5_CE'
set_lvar_int_to_constant 135@ = 8011
set_lvar_text_label 164@s = 'CAS5_CF'
set_lvar_int_to_constant 136@ = 8012
set_lvar_text_label 166@s = 'CAS5_CG'
set_lvar_int_to_constant 137@ = 8013
set_lvar_text_label 168@s = 'CAS5_DA'
set_lvar_int_to_constant 138@ = 8014
set_lvar_text_label 170@s = 'CAS5_DB'
set_lvar_int_to_constant 139@ = 8015
set_lvar_int_to_lvar_int 122@ = 123@
TIMERB = 0

:CASINO5_979
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO5_1005
goto @CASINO5_12838

:CASINO5_1005
if 
  56@ == 0
goto_if_false @CASINO5_1186
if 
  locate_char_any_means_3d $scplayer {x} 1604.158 {y} 1838.765 {z} 9.828 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @CASINO5_1186
clear_area 1604.158 {y} 1838.765 {z} 9.828 {radius} 30.0 {clearParticles} True
suppress_car_model 470
custom_plate_for_next_car 470 {text} "H_CARMAN"
clear_area 1624.598 {y} 1850.6071 {z} 9.828 {radius} 8.0 {clearParticles} True
55@ = create_car 470 {x} 1624.598 {y} 1850.6071 {z} 9.828
set_car_heading 55@ {heading} 180.0
set_car_strong 55@ {state} True
56@ += 1

:CASINO5_1186
if 
  locate_char_any_means_3d $scplayer {x} 1604.158 {y} 1838.765 {z} 9.828 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO5_1325
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO5_1309
clear_prints 
set_player_control $player1 {state} False
do_fade 400 {direction} Fade.Out

:CASINO5_1266
if 
  get_fading_status 
goto_if_false @CASINO5_1290
wait 0
goto @CASINO5_1266

:CASINO5_1290
remove_blip 44@
goto @CASINO5_1339
goto @CASINO5_1325

:CASINO5_1309
print_now 'CAS5_01' {time} 4000 {flag} 1

:CASINO5_1325
gosub @CASINO5_10202
goto @CASINO5_979

:CASINO5_1339
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 1595.199 {y} 1838.316 {z} 12.4095 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1596.1801 {y} 1838.252 {z} 12.2269 {switchStyle} SwitchType.JumpCut
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1426
$SLOT_status[0] = -2

:CASINO5_1426
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1451
$SLOT_status[1] = -2

:CASINO5_1451
50@ = store_car_char_is_in $scplayer
set_car_health 50@ {health} 2000
clear_area 1604.158 {y} 1838.765 {z} 9.828 {radius} 15.0 {clearParticles} True
do_fade 0 {direction} Fade.In
42@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1606.106 {y} 1825.0649 {z} 9.828 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 100
close_sequence_task 42@
perform_sequence_task $scplayer {sequence} 42@
clear_sequence_task 42@
43@ = 0
46@ = 0

:CASINO5_1567
if 
  2 > 43@
goto_if_false @CASINO5_1604
wait 0
43@ = get_sequence_progress $scplayer
goto @CASINO5_1567

:CASINO5_1604
skip_cutscene_start_internal @CASINO5_1831
123@ = 4

:CASINO5_1618
if 
  7 > 122@
goto_if_false @CASINO5_1654
wait 0
gosub @CASINO5_10202
goto @CASINO5_1618

:CASINO5_1654
42@ = open_sequence_task 
task_stand_still -1 {time} 3800
if 
  not is_car_dead 50@
goto_if_false @CASINO5_1691
task_enter_car_as_driver -1 {vehicle} 50@ {time} -1

:CASINO5_1691
close_sequence_task 42@
perform_sequence_task $scplayer {sequence} 42@
clear_sequence_task 42@
40@ = 0

:CASINO5_1716
if 
  40@ == 0
goto_if_false @CASINO5_1787
wait 0
if 
  not is_car_dead 50@
goto_if_false @CASINO5_1780
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @CASINO5_1780
40@ = 1

:CASINO5_1780
goto @CASINO5_1716

:CASINO5_1787
46@ = 1
TIMERA = 0

:CASINO5_1801
if 
  500 > TIMERA
goto_if_false @CASINO5_1831
wait 0
goto @CASINO5_1801

:CASINO5_1831
skip_cutscene_end 
clear_prints 
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1860
$SLOT_status[0] = -2

:CASINO5_1860
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO5_1885
$SLOT_status[1] = -2

:CASINO5_1885
if or
  not is_char_getting_in_to_a_car $scplayer
  not is_char_in_any_car $scplayer
goto_if_false @CASINO5_1935
clear_char_tasks_immediately $scplayer
if 
  not is_car_dead 50@
goto_if_false @CASINO5_1935
warp_char_into_car $scplayer {vehicle} 50@

:CASINO5_1935
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'CAS5_03' {time} 8000 {flag} 1
mark_road_node_as_dont_wander 2066.25 {y} 956.0 {z} 9.125
mark_road_node_as_dont_wander 2048.625 {y} 953.8749 {z} 9.125
mark_road_node_as_dont_wander 2032.5 {y} 973.25 {z} 9.5
mark_road_node_as_dont_wander 2027.25 {y} 1093.125 {z} 9.625
mark_road_node_as_dont_wander 2030.125 {y} 1273.0 {z} 9.625
mark_road_node_as_dont_wander 2029.0 {y} 1453.25 {z} 9.625
mark_road_node_as_dont_wander 2033.75 {y} 1713.125 {z} 9.625
mark_road_node_as_dont_wander 2112.125 {y} 1863.125 {z} 9.75
mark_road_node_as_dont_wander 2104.0 {y} 1969.125 {z} 9.75
mark_road_node_as_dont_wander 2108.25 {y} 2022.0 {z} 9.625
mark_road_node_as_dont_wander 2107.625 {y} 2113.125 {z} 9.625
mark_road_node_as_dont_wander 2091.25 {y} 2283.125 {z} 9.625
mark_road_node_as_dont_wander 2005.625 {y} 2393.25 {z} 9.625
mark_road_node_as_dont_wander 1605.375 {y} 2589.75 {z} 9.625
mark_road_node_as_dont_wander 1477.375 {y} 2563.125 {z} 9.625
mark_road_node_as_dont_wander 1385.625 {y} 2575.0 {z} 9.625
mark_road_node_as_dont_wander 1293.875 {y} 2574.625 {z} 9.625
mark_road_node_as_dont_wander 1528.125 {y} 2773.125 {z} 9.625
mark_road_node_as_dont_wander 2127.375 {y} 2792.875 {z} 9.625
mark_road_node_as_dont_wander 2397.375 {y} 2713.125 {z} 9.625
mark_road_node_as_dont_wander 2404.625 {y} 2513.125 {z} 9.625
mark_road_node_as_dont_wander 2628.625 {y} 2301.75 {z} 9.625
mark_road_node_as_dont_wander 2787.25 {y} 2303.5 {z} 9.625
mark_road_node_as_dont_wander 2860.125 {y} 2293.0 {z} 9.625
mark_road_node_as_dont_wander 2796.125 {y} 2135.375 {z} 9.75
mark_road_node_as_dont_wander 2796.125 {y} 2090.875 {z} 9.625
mark_road_node_as_dont_wander 2638.375 {y} 2135.375 {z} 9.625
mark_road_node_as_dont_wander 2638.375 {y} 2090.875 {z} 9.75
mark_road_node_as_dont_wander 2621.625 {y} 1473.125 {z} 9.625
mark_road_node_as_dont_wander 2645.375 {y} 1313.125 {z} 9.75
mark_road_node_as_dont_wander 2547.25 {y} 923.125 {z} 9.625
mark_road_node_as_dont_wander 2287.25 {y} 957.8749 {z} 9.625
mark_road_node_as_dont_wander 2147.25 {y} 963.2499 {z} 9.625
clear_area 2152.0291 {y} 1912.4561 {z} 9.6797 {radius} 10.0 {clearParticles} True
57@ = create_car 416 {x} 2152.0291 {y} 1912.4561 {z} 9.6797
set_car_heading 57@ {heading} 0.0
set_car_health 57@ {health} 2000
60@ = add_blip_for_car 57@
lock_car_doors 57@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 57@ {state} False
66@ = create_char_inside_car 57@ {pedType} PedType.Mission1 {modelId} 275
set_char_cant_be_dragged_out 66@ {state} True
set_char_decision_maker 66@ {handleOrTemplate} 48@
69@ = create_char_as_passenger 57@ {pedType} PedType.Mission1 {modelId} 275 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 69@ {state} True
set_char_decision_maker 69@ {handleOrTemplate} 48@
task_car_drive_wander 66@ {vehicle} 57@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
63@ = 0
93@ = 0
clear_area 2050.291 {y} 1358.516 {z} 9.6719 {radius} 10.0 {clearParticles} True
58@ = create_car 416 {x} 2050.291 {y} 1358.516 {z} 9.6719
set_car_heading 58@ {heading} 180.0
set_car_health 58@ {health} 2000
61@ = add_blip_for_car 58@
lock_car_doors 58@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 58@ {state} False
67@ = create_char_inside_car 58@ {pedType} PedType.Mission1 {modelId} 275
set_char_cant_be_dragged_out 67@ {state} True
set_char_decision_maker 67@ {handleOrTemplate} 48@
70@ = create_char_as_passenger 58@ {pedType} PedType.Mission1 {modelId} 275 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 70@ {state} True
set_char_decision_maker 70@ {handleOrTemplate} 48@
task_car_drive_wander 67@ {vehicle} 58@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
64@ = 0
94@ = 0
clear_area 2544.98 {y} 1395.797 {z} 9.78 {radius} 10.0 {clearParticles} True
59@ = create_car 416 {x} 2544.98 {y} 1395.797 {z} 9.78
set_car_heading 59@ {heading} 180.0
set_car_health 59@ {health} 2000
62@ = add_blip_for_car 59@
lock_car_doors 59@ {lockStatus} CarLock.LockoutPlayerOnly
set_load_collision_for_car_flag 59@ {state} False
68@ = create_char_inside_car 59@ {pedType} PedType.Mission1 {modelId} 275
set_char_cant_be_dragged_out 68@ {state} True
set_char_decision_maker 68@ {handleOrTemplate} 48@
71@ = create_char_as_passenger 59@ {pedType} PedType.Mission1 {modelId} 275 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out 71@ {state} True
set_char_decision_maker 71@ {handleOrTemplate} 48@
task_car_drive_wander 68@ {vehicle} 59@ {speed} 15.0 {drivingMode} DrivingMode.StopForCars
65@ = 0
95@ = 0
73@ = 0
74@ = -1
76@ = 0
80@ = 0

:CASINO5_3077
wait 0
40@ = 0

:CASINO5_3088
if 
  3 > 40@
goto_if_false @CASINO5_7042
if and
  not is_car_dead 57@(40@,3i)
  6 > 63@(40@,3i)
goto_if_false @CASINO5_7028
switch_start 63@(40@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7028 {caseNum1} 0 {caseLabel1} @CASINO5_3204 {caseNum2} 1 {caseLabel2} @CASINO5_4019 {caseNum3} 2 {caseLabel3} @CASINO5_4588 {caseNum4} 3 {caseLabel4} @CASINO5_5080 {caseNum5} 4 {caseLabel5} @CASINO5_5177 {caseNum6} 5 {caseLabel6} @CASINO5_5731 {caseNum7} -1 {caseLabel7} @CASINO5_7028

:CASINO5_3204
if or
  is_char_dead 66@(40@,3i)
  is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_3272
77@ = 0
if 
  76@ == 0
goto_if_false @CASINO5_3265
gosub @CASINO5_7432

:CASINO5_3265
goto @CASINO5_3426

:CASINO5_3272
if 
  has_car_been_damaged_by_char 57@(40@,3i) {handle} $scplayer
goto_if_false @CASINO5_3334
77@ = 1
if 
  76@ == 0
goto_if_false @CASINO5_3327
gosub @CASINO5_7432

:CASINO5_3327
goto @CASINO5_3426

:CASINO5_3334
if 
  78@ == 0
goto_if_false @CASINO5_3419
if and
  locate_char_any_means_car_2d $scplayer {vehicle} 57@(40@,3i) {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
  is_car_on_screen 57@(40@,3i)
goto_if_false @CASINO5_3419
print_now 'CAS5_04' {time} 8000 {flag} 1
78@ = 1

:CASINO5_3419
goto @CASINO5_7028

:CASINO5_3426
if 
  77@ == 0
goto_if_false @CASINO5_3508
if 
  76@ == 0
goto_if_false @CASINO5_3485
print_now 'CAS5_07' {time} 8000 {flag} 1
goto @CASINO5_3501

:CASINO5_3485
print_now 'CAS5_08' {time} 8000 {flag} 1

:CASINO5_3501
goto @CASINO5_3565

:CASINO5_3508
if 
  76@ == 0
goto_if_false @CASINO5_3549
print_now 'CAS5_05' {time} 8000 {flag} 1
goto @CASINO5_3565

:CASINO5_3549
print_now 'CAS5_06' {time} 8000 {flag} 1

:CASINO5_3565
remove_blip 60@(40@,3i)
76@ += 1
81@(40@,3i) = 0
set_car_temp_action 57@(40@,3i) {actionId} TempAction.HandbrakeStraight {time} 5000
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_3787
clear_char_tasks 66@(40@,3i)
42@ = open_sequence_task 
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 1500
task_play_anim -1 {animationName} "PRTIAL_GNGTLKH" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKG" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_stand_still -1 {time} 5000
close_sequence_task 42@
perform_sequence_task 66@(40@,3i) {sequence} 42@
clear_sequence_task 42@
81@(40@,3i) += 1

:CASINO5_3787
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_3968
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_leave_any_car -1
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} 1500
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_play_anim -1 {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000
task_stand_still -1 {time} 5000
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
81@(40@,3i) += 2

:CASINO5_3968
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_4008
63@(40@,3i) = 3
goto @CASINO5_7028

:CASINO5_4008
63@(40@,3i) += 1

:CASINO5_4019
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4202
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4158
if 
  not is_char_in_any_car 66@(40@,3i)
goto_if_false @CASINO5_4151
43@ = get_sequence_progress 66@(40@,3i)
if 
  43@ == 5
goto_if_false @CASINO5_4151
task_enter_car_as_driver 66@(40@,3i) {vehicle} 57@(40@,3i) {time} -2
81@(40@,3i) -= 1

:CASINO5_4151
goto @CASINO5_4202

:CASINO5_4158
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4202
81@(40@,3i) -= 1

:CASINO5_4202
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4432
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_4388
if 
  not is_char_in_any_car 69@(40@,3i)
goto_if_false @CASINO5_4381
43@ = get_sequence_progress 69@(40@,3i)
if 
  43@ == 5
goto_if_false @CASINO5_4381
if 
  is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4350
task_enter_car_as_driver 69@(40@,3i) {vehicle} 57@(40@,3i) {time} -2
goto @CASINO5_4370

:CASINO5_4350
task_enter_car_as_passenger 69@(40@,3i) {vehicle} 57@(40@,3i) {time} -2 {seat} SeatId.BikeRear

:CASINO5_4370
81@(40@,3i) -= 2

:CASINO5_4381
goto @CASINO5_4432

:CASINO5_4388
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4432
81@(40@,3i) -= 2

:CASINO5_4432
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_4581
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4485
81@(40@,3i) += 1

:CASINO5_4485
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_4516
81@(40@,3i) += 2

:CASINO5_4516
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_4563
63@(40@,3i) = 3
goto @CASINO5_7028
goto @CASINO5_4574

:CASINO5_4563
63@(40@,3i) += 1

:CASINO5_4574
goto @CASINO5_4588

:CASINO5_4581
goto @CASINO5_7028

:CASINO5_4588
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4730
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4686
if 
  is_char_in_car 66@(40@,3i) {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_4679
81@(40@,3i) -= 1

:CASINO5_4679
goto @CASINO5_4730

:CASINO5_4686
if or
  81@(40@,3i) == 1
  81@(40@,3i) == 3
goto_if_false @CASINO5_4730
81@(40@,3i) -= 1

:CASINO5_4730
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4872
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_4828
if 
  is_char_in_car 69@(40@,3i) {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_4821
81@(40@,3i) -= 2

:CASINO5_4821
goto @CASINO5_4872

:CASINO5_4828
if or
  81@(40@,3i) == 2
  81@(40@,3i) == 3
goto_if_false @CASINO5_4872
81@(40@,3i) -= 2

:CASINO5_4872
if 
  81@(40@,3i) == 0
goto_if_false @CASINO5_5073
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_4944
task_car_drive_wander 66@(40@,3i) {vehicle} 57@(40@,3i) {speed} 15.0 {drivingMode} DrivingMode.StopForCars
goto @CASINO5_5055

:CASINO5_4944
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_5055
87@ = get_driver_of_car 57@(40@,3i)
42@ = open_sequence_task 
if 
  not is_int_lvar_equal_to_int_lvar 87@ == 69@(40@,3i)
goto_if_false @CASINO5_5015
task_shuffle_to_next_car_seat -1 {vehicle} 57@(40@,3i)

:CASINO5_5015
task_car_drive_wander -1 {vehicle} 57@(40@,3i) {speed} 15.0 {drivingMode} DrivingMode.StopForCars
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@

:CASINO5_5055
63@(40@,3i) += 1
goto @CASINO5_5080

:CASINO5_5073
goto @CASINO5_7028

:CASINO5_5080
if or
  locate_char_any_means_car_2d $scplayer {vehicle} 57@(40@,3i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
  is_car_on_screen 57@(40@,3i)
goto_if_false @CASINO5_5131
goto @CASINO5_7028

:CASINO5_5131
mark_car_as_no_longer_needed 57@(40@,3i)
mark_char_as_no_longer_needed 66@(40@,3i)
mark_char_as_no_longer_needed 69@(40@,3i)
63@(40@,3i) = 10000
goto @CASINO5_7028

:CASINO5_5177
if 
  not is_char_dead 72@
goto_if_false @CASINO5_5703
if or
  is_char_dead 66@(40@,3i)
  is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_5256
print_now 'CAS5_10' {time} 8000 {flag} 1
63@(40@,3i) = 5
goto @CASINO5_5696

:CASINO5_5256
if 
  has_car_been_damaged_by_char 57@(40@,3i) {handle} $scplayer
goto_if_false @CASINO5_5313
print_now 'CAS5_09' {time} 8000 {flag} 1
63@(40@,3i) = 5
goto @CASINO5_5696

:CASINO5_5313
if 
  TIMERA > 120000
goto_if_false @CASINO5_5574
if or
  locate_char_any_means_car_2d $scplayer {vehicle} 57@(40@,3i) {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
  is_car_on_screen 57@(40@,3i)
goto_if_false @CASINO5_5422
if 
  is_char_in_car $scplayer {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_5408
89@ = 1

:CASINO5_5408
goto @CASINO5_7028
goto @CASINO5_5567

:CASINO5_5422
remove_blip 60@(40@,3i)
if 
  does_char_exist 72@
goto_if_false @CASINO5_5452
delete_char 72@

:CASINO5_5452
if 
  does_char_exist 66@(40@,3i)
goto_if_false @CASINO5_5481
delete_char 66@(40@,3i)

:CASINO5_5481
if 
  does_char_exist 69@(40@,3i)
goto_if_false @CASINO5_5510
delete_char 69@(40@,3i)

:CASINO5_5510
if 
  does_vehicle_exist 57@(40@,3i)
goto_if_false @CASINO5_5539
delete_car 57@(40@,3i)

:CASINO5_5539
51@ = 1
set_lvar_text_label 52@s = 'CAS5_32'
goto @CASINO5_12932

:CASINO5_5567
goto @CASINO5_5696

:CASINO5_5574
if 
  2 > 79@
goto_if_false @CASINO5_5689
if 
  79@ == 0
goto_if_false @CASINO5_5653
if 
  not is_message_being_displayed 
goto_if_false @CASINO5_5646
print_now 'CAS5_30' {time} 8000 {flag} 1
79@ += 1

:CASINO5_5646
goto @CASINO5_5689

:CASINO5_5653
if 
  not is_message_being_displayed 
goto_if_false @CASINO5_5689
print_now 'CAS5_31' {time} 8000 {flag} 1
79@ += 1

:CASINO5_5689
goto @CASINO5_7028

:CASINO5_5696
goto @CASINO5_5731

:CASINO5_5703
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_5731
if 
  not is_char_dead 72@
goto_if_false @CASINO5_6993
if 
  80@ == 0
goto_if_false @CASINO5_6171
41@ = 0

:CASINO5_5772
if 
  3 > 41@
goto_if_false @CASINO5_5865
if 
  not is_int_lvar_equal_to_int_lvar 40@ == 41@
goto_if_false @CASINO5_5851
remove_blip 60@(41@,3i)
if 
  3 > 63@(41@,3i)
goto_if_false @CASINO5_5851
63@(41@,3i) = 3

:CASINO5_5851
41@ += 1
goto @CASINO5_5772

:CASINO5_5865
mark_model_as_no_longer_needed 275
remove_animation "GANGS"
request_model 405
if 
  89@ == 0
goto_if_false @CASINO5_6120
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_6028
clear_char_tasks 66@(40@,3i)
task_car_drive_wander 66@(40@,3i) {vehicle} 57@(40@,3i) {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6014
task_drive_by 69@(40@,3i) {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.FixedRight {rightHandCarSeat} True {fireRate} 35

:CASINO5_6014
88@ = 0
goto @CASINO5_6120

:CASINO5_6028
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6120
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_shuffle_to_next_car_seat -1 {vehicle} 57@(40@,3i)
task_car_drive_wander -1 {vehicle} 57@(40@,3i) {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
88@ = 1

:CASINO5_6120
switch_car_siren 57@(40@,3i) {state} True
set_car_health 57@(40@,3i) {health} 96@
80@ = 1
92@ = 0
112@ = 0
goto @CASINO5_6986

:CASINO5_6171
90@ = get_car_health 57@(40@,3i)
if 
  has_car_been_damaged_by_char 57@(40@,3i) {handle} $scplayer
goto_if_false @CASINO5_6298
set_lvar_int_to_lvar_int 91@ = 96@
sub_int_lvar_from_int_lvar 91@ -= 90@
if 
  has_car_been_damaged_by_weapon 57@(40@,3i) {weaponType} WeaponType.AnyWeapon
goto_if_false @CASINO5_6283
91@ /= 20
if 
  91@ == 0
goto_if_false @CASINO5_6276
91@ = 1

:CASINO5_6276
goto @CASINO5_6290

:CASINO5_6283
91@ *= 2

:CASINO5_6290
add_int_lvar_to_int_lvar 92@ += 91@

:CASINO5_6298
set_car_health 57@(40@,3i) {health} 96@
clear_car_last_damage_entity 57@(40@,3i)
if 
  200 > 92@
goto_if_false @CASINO5_6526
if 
  not is_char_in_car $scplayer {vehicle} 57@(40@,3i)
goto_if_false @CASINO5_6519
if 
  is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_6505
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6498
if 
  88@ == 0
goto_if_false @CASINO5_6491
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_shuffle_to_next_car_seat -1 {vehicle} 57@(40@,3i)
task_car_drive_wander -1 {vehicle} 57@(40@,3i) {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
88@ = 1

:CASINO5_6491
goto @CASINO5_7028

:CASINO5_6498
goto @CASINO5_6512

:CASINO5_6505
goto @CASINO5_7028

:CASINO5_6512
goto @CASINO5_6526

:CASINO5_6519
89@ = 1

:CASINO5_6526
set_car_health 57@(40@,3i) {health} 3000
if 
  89@ == 0
goto_if_false @CASINO5_6570
set_car_temp_action 57@(40@,3i) {actionId} TempAction.HandbrakeStraight {time} 5000

:CASINO5_6570
if 
  not is_char_dead 66@(40@,3i)
goto_if_false @CASINO5_6657
clear_char_tasks 66@(40@,3i)
42@ = open_sequence_task 
task_leave_car -1 {vehicle} 57@(40@,3i)
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 42@
perform_sequence_task 66@(40@,3i) {sequence} 42@
clear_sequence_task 42@
goto @CASINO5_6657

:CASINO5_6657
if 
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6744
clear_char_tasks 69@(40@,3i)
42@ = open_sequence_task 
task_leave_car -1 {vehicle} 57@(40@,3i)
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 42@
perform_sequence_task 69@(40@,3i) {sequence} 42@
clear_sequence_task 42@
goto @CASINO5_6744

:CASINO5_6744
if 
  89@ == 0
goto_if_false @CASINO5_6884
remove_blip 60@(40@,3i)
add_blip_for_car 57@(40@,3i) {var_handle} 60@(40@,3i)
set_blip_as_friendly 60@(40@,3i) {state} True
lock_car_doors 57@(40@,3i) {lockStatus} CarLock.Unlocked
if or
  not is_char_dead 66@(40@,3i)
  not is_char_dead 69@(40@,3i)
goto_if_false @CASINO5_6861
print_now 'CAS5_11' {time} 8000 {flag} 1
goto @CASINO5_6877

:CASINO5_6861
print_now 'CAS5_12' {time} 8000 {flag} 1

:CASINO5_6877
goto @CASINO5_6893

:CASINO5_6884
remove_blip 60@(40@,3i)

:CASINO5_6893
set_car_density_multiplier 0.6
set_ped_density_multiplier 0.6
unmark_all_road_nodes_as_dont_wander 
109@ = 100.0
106@ = 0
101@ = -1
102@ = -1
107@ = -10.0
108@ = -10.0
77@ = 0
set_car_health 57@(40@,3i) {health} 1250
goto @CASINO5_8780

:CASINO5_6986
goto @CASINO5_7021

:CASINO5_6993
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_7021
goto @CASINO5_7028

:CASINO5_7028
40@ += 1
goto @CASINO5_3088

:CASINO5_7042
gosub @CASINO5_7056
goto @CASINO5_3077

:CASINO5_7056
if 
  TIMERB > 500
goto_if_false @CASINO5_7430
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
40@ = 0

:CASINO5_7096
if 
  3 > 40@
goto_if_false @CASINO5_7423
if 
  not is_car_dead 57@(40@,3i)
goto_if_false @CASINO5_7409
if 
  63@(40@,3i) == 0
goto_if_false @CASINO5_7365
$x, $y, $z = get_car_coordinates 57@(40@,3i)
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
switch_start 93@(40@,3i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7358 {caseNum1} 0 {caseLabel1} @CASINO5_7258 {caseNum2} 1 {caseLabel2} @CASINO5_7308 {caseNum3} -1 {caseLabel3} @CASINO5_7358 {caseNum4} -1 {caseLabel4} @CASINO5_7358 {caseNum5} -1 {caseLabel5} @CASINO5_7358 {caseNum6} -1 {caseLabel6} @CASINO5_7358 {caseNum7} -1 {caseLabel7} @CASINO5_7358

:CASINO5_7258
if 
  120.0 > $distance
goto_if_false @CASINO5_7301
set_load_collision_for_car_flag 57@(40@,3i) {state} True
93@(40@,3i) += 1

:CASINO5_7301
goto @CASINO5_7358

:CASINO5_7308
if 
  $distance > 140.0
goto_if_false @CASINO5_7351
set_load_collision_for_car_flag 57@(40@,3i) {state} False
93@(40@,3i) -= 1

:CASINO5_7351
goto @CASINO5_7358

:CASINO5_7358
goto @CASINO5_7409

:CASINO5_7365
if 
  93@(40@,3i) == 0
goto_if_false @CASINO5_7409
set_load_collision_for_car_flag 57@(40@,3i) {state} True
93@(40@,3i) = 1

:CASINO5_7409
40@ += 1
goto @CASINO5_7096

:CASINO5_7423
TIMERB = 0

:CASINO5_7430
return 

:CASINO5_7432
45@ = generate_random_int_in_range 0 {max} 2
switch_start 40@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO5_7642 {caseNum1} 0 {caseLabel1} @CASINO5_7504 {caseNum2} 1 {caseLabel2} @CASINO5_7550 {caseNum3} 2 {caseLabel3} @CASINO5_7596 {caseNum4} -1 {caseLabel4} @CASINO5_7642 {caseNum5} -1 {caseLabel5} @CASINO5_7642 {caseNum6} -1 {caseLabel6} @CASINO5_7642 {caseNum7} -1 {caseLabel7} @CASINO5_7642

:CASINO5_7504
if 
  45@ == 0
goto_if_false @CASINO5_7536
74@ = 1
goto @CASINO5_7543

:CASINO5_7536
74@ = 2

:CASINO5_7543
goto @CASINO5_7642

:CASINO5_7550
if 
  45@ == 0
goto_if_false @CASINO5_7582
74@ = 0
goto @CASINO5_7589

:CASINO5_7582
74@ = 2

:CASINO5_7589
goto @CASINO5_7642

:CASINO5_7596
if 
  45@ == 0
goto_if_false @CASINO5_7628
74@ = 0
goto @CASINO5_7635

:CASINO5_7628
74@ = 1

:CASINO5_7635
goto @CASINO5_7642

:CASINO5_7642
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_7980
96@ = 5000
set_car_health 57@(74@,3i) {health} 96@
set_can_burst_car_tyres 57@(74@,3i) {state} False
if 
  not is_char_dead 66@(74@,3i)
goto_if_false @CASINO5_7731
clear_char_tasks 66@(74@,3i)
delete_char 66@(74@,3i)

:CASINO5_7731
create_char_inside_car 57@(74@,3i) {pedType} PedType.Mission1 {modelId} 124 {var_handle} 66@(74@,3i)
set_char_cant_be_dragged_out 66@(74@,3i) {state} True
give_weapon_to_char 66@(74@,3i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 66@(74@,3i) {weaponType} WeaponType.Mp5
set_char_decision_maker 66@(74@,3i) {handleOrTemplate} 47@
if 
  not is_char_dead 69@(74@,3i)
goto_if_false @CASINO5_7837
clear_char_tasks 69@(74@,3i)
delete_char 69@(74@,3i)

:CASINO5_7837
create_char_as_passenger 57@(74@,3i) {pedType} PedType.Mission1 {modelId} 125 {seat} SeatId.BikeRear {var_handle} 69@(74@,3i)
set_char_cant_be_dragged_out 69@(74@,3i) {state} True
give_weapon_to_char 69@(74@,3i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 69@(74@,3i) {weaponType} WeaponType.Mp5
set_char_decision_maker 69@(74@,3i) {handleOrTemplate} 47@
72@ = create_char_as_passenger 57@(74@,3i) {pedType} PedType.Special {modelId} 290 {seat} SeatId.RearLeft
set_char_stay_in_car_when_jacked 72@ {state} True
set_char_force_die_in_car 72@ {state} True
set_char_decision_maker 72@ {handleOrTemplate} 48@
set_char_get_out_upside_down_car 72@ {state} False
TIMERA = 0
79@ = 0
63@(74@,3i) = 4

:CASINO5_7980
return 

:CASINO5_7982
105@ = 0

:CASINO5_7989
if 
  2 > 105@
goto_if_false @CASINO5_8778
if and
  not is_char_dead 99@(105@,2i)
  not is_car_dead 97@(105@,2i)
goto_if_false @CASINO5_8416
switch_start 101@(105@,2i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO5_8409 {caseNum1} 1 {caseLabel1} @CASINO5_8103 {caseNum2} 2 {caseLabel2} @CASINO5_8332 {caseNum3} -1 {caseLabel3} @CASINO5_8409 {caseNum4} -1 {caseLabel4} @CASINO5_8409 {caseNum5} -1 {caseLabel5} @CASINO5_8409 {caseNum6} -1 {caseLabel6} @CASINO5_8409 {caseNum7} -1 {caseLabel7} @CASINO5_8409

:CASINO5_8103
if 
  106@ == 0
goto_if_false @CASINO5_8135
gosub @CASINO5_9852
goto @CASINO5_8325

:CASINO5_8135
$x, $y, $z = get_car_coordinates 97@(105@,2i)
$z = get_distance_between_coords_2d 1074.4611 {fromY} 2392.2271 {toX} $x {toZ} $y
$distance = get_distance_between_coords_2d 1010.673 {fromY} 1487.184 {toX} $x {toZ} $y
clear_char_tasks 99@(105@,2i)
if 
  is_float_var_greater_than_float_var $distance > $z
goto_if_false @CASINO5_8272
task_car_drive_to_coord 99@(105@,2i) {vehicle} 97@(105@,2i) {x} 1074.4611 {y} 2392.2271 {z} 9.6796 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @CASINO5_8314

:CASINO5_8272
task_car_drive_to_coord 99@(105@,2i) {vehicle} 97@(105@,2i) {x} 1010.673 {y} 1487.184 {z} 9.6797 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:CASINO5_8314
101@(105@,2i) = 2

:CASINO5_8325
goto @CASINO5_8409

:CASINO5_8332
if 
  106@ == 0
goto_if_false @CASINO5_8402
101@(105@,2i) = 1
clear_char_tasks 99@(105@,2i)
task_car_mission 99@(105@,2i) {vehicle} 97@(105@,2i) {targetVehicle} 57@(74@,3i) {missionId} CarMission.RamPlayerClose {cruiseSpeed} 32.0 {drivingStyle} DrivingMode.AvoidCars

:CASINO5_8402
goto @CASINO5_8409

:CASINO5_8409
goto @CASINO5_8764

:CASINO5_8416
switch_start 101@(105@,2i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @CASINO5_8483 {caseNum1} -1 {caseLabel1} @CASINO5_8519 {caseNum2} 0 {caseLabel2} @CASINO5_8526 {caseNum3} -1 {caseLabel3} @CASINO5_8764 {caseNum4} -1 {caseLabel4} @CASINO5_8764 {caseNum5} -1 {caseLabel5} @CASINO5_8764 {caseNum6} -1 {caseLabel6} @CASINO5_8764 {caseNum7} -1 {caseLabel7} @CASINO5_8764

:CASINO5_8483
mark_char_as_no_longer_needed 99@(105@,2i)
mark_car_as_no_longer_needed 97@(105@,2i)
101@(105@,2i) = -1
goto @CASINO5_8764

:CASINO5_8519
goto @CASINO5_8764

:CASINO5_8526
if 
  103@(105@,2i) > 9000
goto_if_false @CASINO5_8757
if 
  has_model_loaded 405
goto_if_false @CASINO5_8757
gosub @CASINO5_10001
if 
  114@ == 1
goto_if_false @CASINO5_8757
create_car 405 {x} 118@ {y} 119@ {z} 120@ {var_handle} 97@(105@,2i)
set_car_heading 97@(105@,2i) {heading} 121@
lock_car_doors 97@(105@,2i) {lockStatus} CarLock.LockoutPlayerOnly
set_car_can_be_visibly_damaged 97@(105@,2i) {state} False
set_car_health 97@(105@,2i) {health} 5000
create_char_inside_car 97@(105@,2i) {pedType} PedType.Mission1 {modelId} 125 {var_handle} 99@(105@,2i)
give_weapon_to_char 99@(105@,2i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_char_decision_maker 99@(105@,2i) {handleOrTemplate} 48@
set_char_cant_be_dragged_out 99@(105@,2i) {state} True
task_car_mission 99@(105@,2i) {vehicle} 97@(105@,2i) {targetVehicle} 57@(74@,3i) {missionId} CarMission.RamPlayerClose {cruiseSpeed} 32.0 {drivingStyle} DrivingMode.AvoidCars
101@(105@,2i) = 1

:CASINO5_8757
goto @CASINO5_8764

:CASINO5_8764
105@ += 1
goto @CASINO5_7989

:CASINO5_8778
return 

:CASINO5_8780
wait 0
if 
  not is_char_dead 72@
goto_if_false @CASINO5_9817
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_9810
if 
  is_char_in_car $scplayer {vehicle} 57@(74@,3i)
goto_if_false @CASINO5_9197
if 
  110@ == 0
goto_if_false @CASINO5_8999
remove_blip 60@(74@,3i)
44@ = add_blip_for_coord 981.4241 {y} 2132.469 {z} 9.8203
if 
  77@ == 0
goto_if_false @CASINO5_8976
print_now 'CAS5_13' {time} 8000 {flag} 1
101@ = 0
102@ = 0
103@ = 0
104@ = 0
77@ = 1
mark_car_as_no_longer_needed 55@
mark_model_as_no_longer_needed 470
goto @CASINO5_8992

:CASINO5_8976
print_now 'CAS5_14' {time} 8000 {flag} 1

:CASINO5_8992
110@ = 1

:CASINO5_8999
if 
  locate_char_in_car_2d $scplayer {x} 981.4241 {y} 2132.469 {xRadius} 109@ {yRadius} 109@ {drawSphere} False
goto_if_false @CASINO5_9130
if 
  locate_char_in_car_3d $scplayer {x} 981.4241 {y} 2132.469 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO5_9088
goto @CASINO5_10933

:CASINO5_9088
if 
  106@ == 0
goto_if_false @CASINO5_9123
109@ = 120.0
106@ = 1

:CASINO5_9123
goto @CASINO5_9165

:CASINO5_9130
if 
  106@ == 1
goto_if_false @CASINO5_9165
109@ = 100.0
106@ = 0

:CASINO5_9165
if 
  112@ == 1
goto_if_false @CASINO5_9190
gosub @CASINO5_10202

:CASINO5_9190
goto @CASINO5_9550

:CASINO5_9197
if 
  110@ == 1
goto_if_false @CASINO5_9270
remove_blip 44@
add_blip_for_car 57@(74@,3i) {var_handle} 60@(74@,3i)
set_blip_as_friendly 60@(74@,3i) {state} True
print_now 'CAS5_15' {time} 8000 {flag} 1
110@ = 0

:CASINO5_9270
if 
  2 > 111@
goto_if_false @CASINO5_9550
if 
  111@ == 0
goto_if_false @CASINO5_9415
if 
  not is_char_dead 66@(74@,3i)
goto_if_false @CASINO5_9401
if 
  not is_char_in_any_car 66@(74@,3i)
goto_if_false @CASINO5_9394
set_var_int_to_constant $load_sample = 8016
set_var_text_label s$load_text = 'CAS5_EA'
start_new_script @A_ALAP 2 100 66@(74@,3i) 
111@ += 1

:CASINO5_9394
goto @CASINO5_9408

:CASINO5_9401
111@ += 1

:CASINO5_9408
goto @CASINO5_9550

:CASINO5_9415
if 
  not is_char_dead 69@(74@,3i)
goto_if_false @CASINO5_9543
if 
  not is_char_in_any_car 69@(74@,3i)
goto_if_false @CASINO5_9536
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_9536
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 8017
set_var_text_label s$load_text = 'CAS5_EB'
start_new_script @A_ALAP 2 100 69@(74@,3i) 
111@ += 1

:CASINO5_9536
goto @CASINO5_9550

:CASINO5_9543
111@ += 1

:CASINO5_9550
if 
  112@ == 0
goto_if_false @CASINO5_9758
if 
  not is_car_dead 97@
goto_if_false @CASINO5_9638
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 97@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CASINO5_9638
print_now 'CAS5_16' {time} 8000 {flag} 1
112@ = 1

:CASINO5_9638
if 
  112@ == 0
goto_if_false @CASINO5_9726
if 
  not is_car_dead 98@
goto_if_false @CASINO5_9726
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 98@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CASINO5_9726
print_now 'CAS5_16' {time} 8000 {flag} 1
112@ = 1

:CASINO5_9726
if 
  112@ == 1
goto_if_false @CASINO5_9758
TIMERB = 0
123@ = 7

:CASINO5_9758
37@ = get_game_timer 
set_lvar_int_to_lvar_int 39@ = 37@
sub_int_lvar_from_int_lvar 39@ -= 38@
set_lvar_int_to_lvar_int 38@ = 37@
add_int_lvar_to_int_lvar 103@ += 39@
add_int_lvar_to_int_lvar 104@ += 39@
gosub @CASINO5_7982

:CASINO5_9810
goto @CASINO5_9845

:CASINO5_9817
51@ = 1
set_lvar_text_label 52@s = 'CAS5_17'
goto @CASINO5_12932

:CASINO5_9845
goto @CASINO5_8780

:CASINO5_9852
if 
  103@(105@,2i) > 500
goto_if_false @CASINO5_9999
if and
  not locate_char_any_means_car_2d $scplayer {vehicle} 97@(105@,2i) {xRadius} 75.0 {yRadius} 75.0 {drawSphere} False
  not is_car_on_screen 97@(105@,2i)
goto_if_false @CASINO5_9988
gosub @CASINO5_10001
if 
  114@ == 1
goto_if_false @CASINO5_9988
set_car_coordinates 97@(105@,2i) {x} 118@ {y} 119@ {z} 120@
set_car_heading 97@(105@,2i) {heading} 121@
set_car_forward_speed 97@(105@,2i) {forwardSpeed} 32.0

:CASINO5_9988
103@(105@,2i) = 0

:CASINO5_9999
return 

:CASINO5_10001
113@ = 1
114@ = 0

:CASINO5_10015
if and
  10 > 113@
  114@ == 0
goto_if_false @CASINO5_10200
115@, 116@, 117@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 107@(105@,2f) {zOffset} 0.0
118@, 119@, 120@, 121@ = get_nth_closest_car_node_with_heading 115@ {yCoord} 116@ {zCoord} 117@ {nth} 113@
if 
  not is_point_obscured_by_a_mission_entity 118@ {y} 119@ {z} 120@ {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @CASINO5_10186
if 
  not is_point_on_screen 118@ {y} 119@ {z} 120@ {radius} 5.0
goto_if_false @CASINO5_10186
clear_area 118@ {y} 119@ {z} 120@ {radius} 5.0 {clearParticles} True
114@ = 1

:CASINO5_10186
113@ += 1
goto @CASINO5_10015

:CASINO5_10200
return 

:CASINO5_10202
switch_start 123@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CASINO5_10931 {caseNum1} 0 {caseLabel1} @CASINO5_10330 {caseNum2} 1 {caseLabel2} @CASINO5_10363 {caseNum3} 2 {caseLabel3} @CASINO5_10452 {caseNum4} 4 {caseLabel4} @CASINO5_10499 {caseNum5} 5 {caseLabel5} @CASINO5_10588 {caseNum6} 7 {caseLabel6} @CASINO5_10635 {caseNum7} 8 {caseLabel7} @CASINO5_10677
switch_continued 9 {caseLabel1} @CASINO5_10813 {caseNum2} 10 {caseLabel2} @CASINO5_10898 {caseNum3} -1 {caseLabel3} @CASINO5_10931 {caseNum4} -1 {caseLabel4} @CASINO5_10931 {caseNum5} -1 {caseLabel5} @CASINO5_10931 {caseNum6} -1 {caseLabel6} @CASINO5_10931 {caseNum7} -1 {caseLabel7} @CASINO5_10931 {caseNum8} -1 {caseLabel8} @CASINO5_10931 {caseNum9} -1 {caseLabel9} @CASINO5_10931

:CASINO5_10330
if 
  TIMERB > 8500
goto_if_false @CASINO5_10356
123@ += 1

:CASINO5_10356
goto @CASINO5_10931

:CASINO5_10363
if 
  2 > 122@
goto_if_false @CASINO5_10438
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 0 100 
122@ += 1
123@ += 1
goto @CASINO5_10452

:CASINO5_10438
123@ = 3
goto @CASINO5_10931

:CASINO5_10452
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_10492
123@ = 1
$SLOT_status($preload_slot,2i) = -4

:CASINO5_10492
goto @CASINO5_10931

:CASINO5_10499
if 
  7 > 122@
goto_if_false @CASINO5_10574
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 0 100 
122@ += 1
123@ += 1
goto @CASINO5_10588

:CASINO5_10574
123@ = 6
goto @CASINO5_10931

:CASINO5_10588
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO5_10628
123@ = 4
$SLOT_status($preload_slot,2i) = -4

:CASINO5_10628
goto @CASINO5_10931

:CASINO5_10635
if 
  TIMERB > 8500
goto_if_false @CASINO5_10670
122@ = generate_random_int_in_range 7 {max} 14
123@ += 1

:CASINO5_10670
goto @CASINO5_10931

:CASINO5_10677
if 
  not is_car_dead 97@
goto_if_false @CASINO5_10728
if 
  has_car_been_damaged_by_car 57@(74@,3i) {other} 97@
goto_if_false @CASINO5_10723
123@ = 9

:CASINO5_10723
clear_car_last_damage_entity 97@

:CASINO5_10728
if 
  not is_car_dead 98@
goto_if_false @CASINO5_10797
if 
  123@ <> 9
goto_if_false @CASINO5_10792
if 
  has_car_been_damaged_by_car 57@(74@,3i) {other} 98@
goto_if_false @CASINO5_10792
123@ = 9

:CASINO5_10792
clear_car_last_damage_entity 98@

:CASINO5_10797
clear_car_last_damage_entity 57@(74@,3i)
goto @CASINO5_10931

:CASINO5_10813
set_var_int_to_lvar_int $load_sample = 124@(122@,16i)
set_var_text_label s$load_text = 140@(122@,16s)
start_new_script @A_ALAP 2 100 72@ 
123@ = 10
122@ += 1
if 
  122@ == 14
goto_if_false @CASINO5_10891
122@ = 7

:CASINO5_10891
TIMERB = 0

:CASINO5_10898
if 
  TIMERB > 10000
goto_if_false @CASINO5_10924
123@ = 8

:CASINO5_10924
goto @CASINO5_10931

:CASINO5_10931
return 

:CASINO5_10933
do_fade 0 {direction} Fade.Out

:CASINO5_10939
if 
  get_fading_status 
goto_if_false @CASINO5_10963
wait 0
goto @CASINO5_10939

:CASINO5_10963
clear_prints 
clear_area 979.7058 {y} 2137.2471 {z} 9.8203 {radius} 200.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_11032
set_car_health 57@(74@,3i) {health} 3000

:CASINO5_11032
request_model 126
request_model 127
request_model #CJ_WHEELCHAIR1

:CASINO5_11045
if or
  not has_model_loaded 126
  not has_model_loaded 127
  not has_model_loaded #CJ_WHEELCHAIR1
goto_if_false @CASINO5_11080
wait 0
goto @CASINO5_11045

:CASINO5_11080
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_11182
set_car_coordinates 57@(74@,3i) {x} 979.7058 {y} 2137.2471 {z} 9.8203
set_car_heading 57@(74@,3i) {heading} 237.8897
warp_char_from_car_to_coord $scplayer {x} 998.5278 {y} 2118.5891 {z} 9.8203
172@ = create_char_inside_car 57@(74@,3i) {pedType} PedType.Mission1 {modelId} 126
set_char_decision_maker 172@ {handleOrTemplate} 48@

:CASINO5_11182
set_fixed_camera_position 972.8329 {y} 2141.334 {z} 11.0496 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 973.6994 {y} 2140.8391 {z} 11.1103 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:CASINO5_11240
if 
  get_fading_status 
goto_if_false @CASINO5_11264
wait 0
goto @CASINO5_11240

:CASINO5_11264
if and
  not is_car_dead 57@(74@,3i)
  not is_char_dead 172@
goto_if_false @CASINO5_11351
42@ = open_sequence_task 
task_car_temp_action -1 {vehicle} 57@(74@,3i) {actionId} TempAction.ReverseStraight {time} 500
task_car_temp_action -1 {vehicle} 57@(74@,3i) {actionId} TempAction.HandbrakeStraight {time} 300
task_stand_still -1 {time} 8000
close_sequence_task 42@
perform_sequence_task 172@ {sequence} 42@
clear_sequence_task 42@

:CASINO5_11351
46@ = 0

:CASINO5_11358
if 
  46@ == 0
goto_if_false @CASINO5_11436
wait 0
if 
  not is_char_dead 172@
goto_if_false @CASINO5_11429
43@ = get_sequence_progress 172@
if 
  43@ > 0
goto_if_false @CASINO5_11429
46@ = 1

:CASINO5_11429
goto @CASINO5_11358

:CASINO5_11436
if and
  not is_char_dead 172@
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_11696
warp_char_from_car_to_coord 172@ {x} 971.7789 {y} 2137.2881 {z} 9.8203
set_char_heading 172@ {heading} 316.6316
clear_char_tasks_immediately 172@
42@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 974.2065 {y} 2140.1079 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_look_at_vehicle -1 {vehicle} 57@(74@,3i) {time} 8000
task_stand_still -1 {time} 8000
close_sequence_task 42@
perform_sequence_task 172@ {sequence} 42@
clear_sequence_task 42@
if 
  not is_char_in_any_car $scplayer
goto_if_false @CASINO5_11591
warp_char_into_car $scplayer {vehicle} 57@(74@,3i)

:CASINO5_11591
173@ = create_char PedType.Mission1 {modelId} 127 {x} 975.8311 {y} 2144.959 {z} 9.8203
set_char_heading 173@ {heading} 162.2693
set_char_decision_maker 173@ {handleOrTemplate} 48@
42@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 975.0208 {y} 2141.366 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_look_at_char -1 {target} 173@ {time} 8000
task_stand_still -1 {time} 8000
close_sequence_task 42@
perform_sequence_task 173@ {sequence} 42@
clear_sequence_task 42@

:CASINO5_11696
46@ = 0

:CASINO5_11703
if 
  46@ == 0
goto_if_false @CASINO5_11781
wait 0
if 
  not is_char_dead 172@
goto_if_false @CASINO5_11774
43@ = get_sequence_progress 172@
if 
  43@ > 0
goto_if_false @CASINO5_11774
46@ = 1

:CASINO5_11774
goto @CASINO5_11703

:CASINO5_11781
set_var_int_to_constant $load_sample = 8014
set_var_text_label s$load_text = 'CAS5_DA'
start_new_script @A_ALAP 2 200 172@ 
46@ = 0

:CASINO5_11826
if 
  46@ == 0
goto_if_false @CASINO5_11904
wait 0
if 
  not is_char_dead 173@
goto_if_false @CASINO5_11897
43@ = get_sequence_progress 173@
if 
  43@ > 0
goto_if_false @CASINO5_11897
46@ = 1

:CASINO5_11897
goto @CASINO5_11826

:CASINO5_11904
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @CASINO5_11937
wait 0
goto @CASINO5_11904

:CASINO5_11937
set_var_int_to_constant $load_sample = 8015
set_var_text_label s$load_text = 'CAS5_DB'
start_new_script @A_ALAP 2 200 173@ 
TIMERA = 0

:CASINO5_11982
if 
  4500 > TIMERA
goto_if_false @CASINO5_12012
wait 0
goto @CASINO5_11982

:CASINO5_12012
do_fade 0 {direction} Fade.Out

:CASINO5_12018
if 
  get_fading_status 
goto_if_false @CASINO5_12042
wait 0
goto @CASINO5_12018

:CASINO5_12042
174@ = create_object #CJ_WHEELCHAIR1 {x} 971.5 {y} 2140.5 {z} 9.8203
set_object_heading 174@ {heading} 180.0
if 
  not is_char_dead 72@
goto_if_false @CASINO5_12179
warp_char_from_car_to_coord 72@ {x} 0.0 {y} 0.0 {z} 0.0
attach_char_to_object 72@ {handle} 174@ {xOffset} 0.0 {yOffset} -0.575 {zOffset} 0.525 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim 72@ {animationName} "SEAT_DOWN" {animationFile} "PED" {blendSpeed} 9.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:CASINO5_12179
if 
  not is_char_dead 172@
goto_if_false @CASINO5_12225
set_char_coordinates 172@ {x} 972.5 {y} 2140.5 {z} 9.8203
set_char_heading 172@ {heading} 0.0

:CASINO5_12225
if 
  not is_char_dead 173@
goto_if_false @CASINO5_12271
set_char_coordinates 173@ {x} 971.5 {y} 2139.5 {z} 9.8203
set_char_heading 173@ {heading} 0.0

:CASINO5_12271
46@ = 0

:CASINO5_12278
if 
  46@ == 0
goto_if_false @CASINO5_12378
wait 0
if 
  not is_char_dead 72@
goto_if_false @CASINO5_12371
if 
  is_char_playing_anim 72@ {animationName} "SEAT_DOWN"
goto_if_false @CASINO5_12371
set_char_anim_current_time 72@ {animationName} "SEAT_DOWN" {time} 1.0
46@ = 1

:CASINO5_12371
goto @CASINO5_12278

:CASINO5_12378
set_fixed_camera_position 971.4178 {y} 2146.135 {z} 14.0976 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 971.5663 {y} 2145.2749 {z} 13.6106 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:CASINO5_12436
if 
  200 > TIMERA
goto_if_false @CASINO5_12466
wait 0
goto @CASINO5_12436

:CASINO5_12466
if 
  not is_char_dead 172@
goto_if_false @CASINO5_12487
clear_char_tasks 172@

:CASINO5_12487
do_fade 500 {direction} Fade.In

:CASINO5_12494
if 
  get_fading_status 
goto_if_false @CASINO5_12518
wait 0
goto @CASINO5_12494

:CASINO5_12518
if 
  not is_char_dead 172@
goto_if_false @CASINO5_12558
task_go_straight_to_coord 172@ {x} 972.8889 {y} 2148.0391 {z} 9.8203 {speed} MoveState.Walk {time} -2

:CASINO5_12558
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_12616
task_car_drive_to_coord $scplayer {vehicle} 57@(74@,3i) {x} 991.3741 {y} 2136.312 {z} 9.8203 {speed} 5.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:CASINO5_12616
TIMERA = 0

:CASINO5_12623
if 
  1700 > TIMERA
goto_if_false @CASINO5_12653
wait 0
goto @CASINO5_12623

:CASINO5_12653
do_fade 1000 {direction} Fade.Out

:CASINO5_12660
if 
  get_fading_status 
goto_if_false @CASINO5_12684
wait 0
goto @CASINO5_12660

:CASINO5_12684
if 
  not is_car_dead 57@(74@,3i)
goto_if_false @CASINO5_12750
set_car_forward_speed 57@(74@,3i) {forwardSpeed} 0.0
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0
warp_char_into_car $scplayer {vehicle} 57@(74@,3i)

:CASINO5_12750
detach_char_from_car 72@
delete_char 72@
delete_char 172@
delete_char 173@
delete_object 174@
clear_char_tasks $scplayer
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen True
TIMERA = 0

:CASINO5_12802
if 
  200 > TIMERA
goto_if_false @CASINO5_12832
wait 0
goto @CASINO5_12802

:CASINO5_12832
do_fade 0 {direction} Fade.In

:CASINO5_12838
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO5'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 5000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 5000
award_player_mission_respect 5
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $vcrash_contact_blip
$vcrash_contact_blip = add_sprite_blip_for_contact_point $vcrashX {y} $vcrashY {z} $vcrashZ {sprite} $crash_blip_icon
start_new_script @VCRASH 
return 

:CASINO5_12932
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  51@ == 1
goto_if_false @CASINO5_12976
print_now 52@s {time} 5000 {flag} 1

:CASINO5_12976
return 

:CASINO5_12978
start_new_script @A_TERM 
unmark_all_road_nodes_as_dont_wander 
if 
  is_player_playing $player1
goto_if_false @CASINO5_13015
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:CASINO5_13015
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
remove_blip 44@
remove_blip 60@
remove_blip 61@
remove_blip 62@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 99@
mark_char_as_no_longer_needed 100@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 57@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
mark_car_as_no_longer_needed 97@
mark_car_as_no_longer_needed 98@
dont_suppress_car_model 470
unload_special_character 1
mark_model_as_no_longer_needed 275
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 416
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #CJ_WHEELCHAIR1
remove_animation "GANGS"
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 90---------------
// Originally: The Meat Business

:CASINO6
script_name 'CASINO6'
gosub @CASINO6_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO6_38
gosub @CASINO6_31431

:CASINO6_38
gosub @CASINO6_32179
terminate_this_script 

:CASINO6_47
register_mission_given 
$onmission = 1
switch_entry_exit 'ABATOIR' {state} True
load_mission_text 'CASINO6'
set_char_coordinates $scplayer {x} 2179.9341 {y} 1684.1479 {z} 10.0533
set_char_heading $scplayer {heading} 108.0825
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} False
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_6A'

:CASINO6_157
if 
  not has_cutscene_loaded 
goto_if_false @CASINO6_181
wait 0
goto @CASINO6_157

:CASINO6_181
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO6_190
if 
  not has_cutscene_finished 
goto_if_false @CASINO6_214
wait 0
goto @CASINO6_190

:CASINO6_214
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO6_227
if 
  get_fading_status 
goto_if_false @CASINO6_251
wait 0
goto @CASINO6_227

:CASINO6_251
clear_cutscene 
set_area_visible 0
set_script_limit_to_gang_size 99
if 
  230@ == 1
goto_if_false @CASINO6_342
316@ = create_car 405 {x} 0.0 {y} 0.0 {z} 0.0
218@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
40@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:CASINO6_342
set_player_group_recruitment $player1 {state} False
start_new_script @A_CONT 
set_char_area_visible $scplayer {areaId} 0
load_scene_in_direction 2179.9341 {y} 1684.1479 {z} 10.0533 {heading} 108.0825
34@ = load_char_decision_maker DecisionMakerType.Empty
35@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Special {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Special {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Special
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
310@ = get_player_group $player1
set_group_default_task_allocator 310@ {defaultTaskAllocator} DefaultTaskAllocator.FollowLimited
load_special_character 1 {modelName} 'ROSE'

:CASINO6_460
if 
  not has_special_character_loaded 1
goto_if_false @CASINO6_486
wait 0
goto @CASINO6_460

:CASINO6_486
39@ = create_char PedType.Special {modelId} 290 {x} 2181.3721 {y} 1680.926 {z} 10.0636
set_char_heading 39@ {heading} 71.6745
set_char_area_visible 39@ {areaId} 0
remove_blip 40@
40@ = add_blip_for_char 39@
change_blip_display 40@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 40@ {state} True
set_char_decision_maker 39@ {handleOrTemplate} 34@
set_char_never_targetted 39@ {state} True
set_char_suffers_critical_hits 39@ {state} False
set_char_health 39@ {health} 300
set_char_never_leaves_group 39@ {state} True
set_group_member 310@ {handle} 39@
set_char_shoot_rate 39@ {rate} 100
218@ = add_blip_for_coord 967.3132 {y} 2161.1541 {z} 9.8203
print_now 'CAS6_10' {time} 8000 {flag} 1
freeze_char_position $scplayer {state} False
set_player_control $player1 {state} True
231@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 958.9762 {y} 2096.8359 {z} 1011.1
do_fade 500 {direction} Fade.In

:CASINO6_689
if 
  get_fading_status 
goto_if_false @CASINO6_713
wait 0
goto @CASINO6_689

:CASINO6_713
set_lvar_text_label 366@s = 'CAS6_AA'
set_lvar_int_to_constant 320@ = 8200
set_lvar_int_to_var_int 343@ = $scplayer
set_lvar_text_label 368@s = 'CAS6_AB'
set_lvar_int_to_constant 321@ = 8201
set_lvar_int_to_lvar_int 344@ = 39@
set_lvar_text_label 370@s = 'CAS6_AC'
set_lvar_int_to_constant 322@ = 8202
set_lvar_int_to_lvar_int 345@ = 39@
set_lvar_text_label 372@s = 'CAS6_AD'
set_lvar_int_to_constant 323@ = 8203
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 374@s = 'CAS6_AE'
set_lvar_int_to_constant 324@ = 8204
set_lvar_int_to_var_int 347@ = $scplayer
set_lvar_text_label 376@s = 'CAS6_AF'
set_lvar_int_to_constant 325@ = 8205
set_lvar_int_to_lvar_int 348@ = 39@
set_lvar_text_label 378@s = 'CAS6_BA'
set_lvar_int_to_constant 326@ = 8206
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 380@s = 'CAS6_BB'
set_lvar_int_to_constant 327@ = 8207
set_lvar_int_to_lvar_int 350@ = 39@
set_lvar_text_label 382@s = 'CAS6_BC'
set_lvar_int_to_constant 328@ = 8208
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 384@s = 'CAS6_BD'
set_lvar_int_to_constant 329@ = 8209
set_lvar_int_to_var_int 352@ = $scplayer
set_lvar_text_label 386@s = 'CAS6_BE'
set_lvar_int_to_constant 330@ = 8210
set_lvar_int_to_lvar_int 353@ = 39@
set_lvar_text_label 388@s = 'CAS6_BF'
set_lvar_int_to_constant 331@ = 8211
set_lvar_int_to_lvar_int 354@ = 39@
set_lvar_text_label 390@s = 'CAS6_BH'
set_lvar_int_to_constant 332@ = 8212
set_lvar_int_to_lvar_int 355@ = 39@
set_lvar_text_label 392@s = 'CAS6_BK'
set_lvar_int_to_constant 333@ = 8213
set_lvar_int_to_var_int 356@ = $scplayer
set_lvar_text_label 394@s = 'CAS6_BL'
set_lvar_int_to_constant 334@ = 8214
set_lvar_int_to_lvar_int 357@ = 39@
set_lvar_text_label 396@s = 'CAS6_BM'
set_lvar_int_to_constant 335@ = 8215
set_lvar_int_to_lvar_int 358@ = 39@
set_lvar_text_label 398@s = 'CAS6_BN'
set_lvar_int_to_constant 336@ = 8216
set_lvar_int_to_lvar_int 359@ = 39@
set_lvar_text_label 400@s = 'CAS6_CA'
set_lvar_int_to_constant 337@ = 8217
set_lvar_int_to_lvar_int 360@ = 39@
set_lvar_text_label 402@s = 'CAS6_CB'
set_lvar_int_to_constant 338@ = 8218
set_lvar_int_to_lvar_int 361@ = 39@
TIMERB = 0

:CASINO6_1290
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_1739
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO6_1381
switch_entry_exit 'ABATOIR' {state} True
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
goto @CASINO6_31283

:CASINO6_1381
286@ = get_area_visible 
if 
  286@ <> 0
goto_if_false @CASINO6_1502
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  locate_char_any_means_2d $scplayer {x} 967.3132 {y} 2161.1541 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @CASINO6_1466
goto @CASINO6_2758
goto @CASINO6_1502

:CASINO6_1466
freeze_char_position 39@ {state} True
remove_blip 218@
remove_blip 40@
remove_char_from_group 39@
315@ = 0
goto @CASINO6_1774

:CASINO6_1502
if 
  locate_char_any_means_2d $scplayer {x} 967.3132 {y} 2161.1541 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CASINO6_1711
if 
  not locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @CASINO6_1641
if 
  2 > 317@
goto_if_false @CASINO6_1596
317@ = 2

:CASINO6_1596
if 
  232@ == 0
goto_if_false @CASINO6_1634
switch_entry_exit 'ABATOIR' {state} False
232@ = 1

:CASINO6_1634
goto @CASINO6_1711

:CASINO6_1641
if 
  5 > 319@
goto_if_false @CASINO6_1673
318@ = 17
319@ = 5

:CASINO6_1673
if 
  232@ == 1
goto_if_false @CASINO6_1711
switch_entry_exit 'ABATOIR' {state} True
232@ = 0

:CASINO6_1711
gosub @CASINO6_29738
gosub @CASINO6_2522
gosub @CASINO6_1949
goto @CASINO6_1767

:CASINO6_1739
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31431

:CASINO6_1767
goto @CASINO6_1290

:CASINO6_1774
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_1914
286@ = get_area_visible 
if 
  286@ == 0
goto_if_false @CASINO6_1907
freeze_char_position 39@ {state} False
set_char_never_leaves_group 39@ {state} True
set_group_member 310@ {handle} 39@
remove_blip 40@
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True
change_blip_display 40@ {display} BlipDisplay.BlipOnly
218@ = add_blip_for_coord 967.3132 {y} 2161.1541 {z} 9.8203
TIMERA = 0
317@ = 3
goto @CASINO6_1290

:CASINO6_1907
goto @CASINO6_1942

:CASINO6_1914
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31431

:CASINO6_1942
goto @CASINO6_1774

:CASINO6_1949
switch_start 319@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @CASINO6_2520 {caseNum1} 0 {caseLabel1} @CASINO6_2012 {caseNum2} 1 {caseLabel2} @CASINO6_2045 {caseNum3} 2 {caseLabel3} @CASINO6_2172 {caseNum4} 3 {caseLabel4} @CASINO6_2258 {caseNum5} 4 {caseLabel5} @CASINO6_2351 {caseNum6} 5 {caseLabel6} @CASINO6_2398 {caseNum7} 6 {caseLabel7} @CASINO6_2473

:CASINO6_2012
if 
  TIMERB > 8000
goto_if_false @CASINO6_2038
319@ += 1

:CASINO6_2038
goto @CASINO6_2520

:CASINO6_2045
if 
  6 > 318@
goto_if_false @CASINO6_2158
if 
  locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @CASINO6_2151
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 100 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_2151
goto @CASINO6_2172

:CASINO6_2158
319@ = 3
goto @CASINO6_2520

:CASINO6_2172
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2251
if 
  315@ == 1
goto_if_false @CASINO6_2233
318@ = 6
319@ = 3
goto @CASINO6_2240

:CASINO6_2233
319@ = 1

:CASINO6_2240
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2251
goto @CASINO6_2520

:CASINO6_2258
if 
  315@ == 1
goto_if_false @CASINO6_2351
if 
  17 > 318@
goto_if_false @CASINO6_2351
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 1 100 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_2351
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2391
319@ = 3
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2391
goto @CASINO6_2520

:CASINO6_2398
if 
  19 > 318@
goto_if_false @CASINO6_2473
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 100 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_2473
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_2513
319@ = 5
$SLOT_status($preload_slot,2i) = -4

:CASINO6_2513
goto @CASINO6_2520

:CASINO6_2520
return 

:CASINO6_2522
switch_start 317@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_2756 {caseNum1} 0 {caseLabel1} @CASINO6_2585 {caseNum2} 1 {caseLabel2} @CASINO6_2653 {caseNum3} 2 {caseLabel3} @CASINO6_2686 {caseNum4} 3 {caseLabel4} @CASINO6_2723 {caseNum5} -1 {caseLabel5} @CASINO6_2756 {caseNum6} -1 {caseLabel6} @CASINO6_2756 {caseNum7} -1 {caseLabel7} @CASINO6_2756

:CASINO6_2585
if 
  not locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @CASINO6_2646
print_now 'CAS6_11' {time} 8000 {flag} 1
TIMERA = 0
317@ += 1

:CASINO6_2646
goto @CASINO6_2756

:CASINO6_2653
if 
  TIMERA > 20000
goto_if_false @CASINO6_2679
317@ -= 1

:CASINO6_2679
goto @CASINO6_2756

:CASINO6_2686
print_now 'CAS6_12' {time} 8000 {flag} 1
TIMERA = 0
317@ += 1
goto @CASINO6_2756

:CASINO6_2723
if 
  TIMERA > 20000
goto_if_false @CASINO6_2749
317@ = 0

:CASINO6_2749
goto @CASINO6_2756

:CASINO6_2756
return 

:CASINO6_2758
clear_wanted_level $player1
if 
  not is_car_dead 316@
goto_if_false @CASINO6_3064
if 
  is_car_in_area_2d 316@ {leftBottomX} 960.4431 {leftBottomY} 2087.9751 {rightTopX} 996.5055 {rightTopY} 2182.1531 {drawSphere} False
goto_if_false @CASINO6_3054
if 
  not is_car_upsidedown 316@
goto_if_false @CASINO6_3054
233@ = 1
241@, 242@, 243@ = get_car_coordinates 316@
244@ = get_car_heading 316@
234@ = get_car_model 316@
235@, 236@ = get_car_colours 316@
237@, 238@ = get_extra_car_colours 316@
216@ = 0

:CASINO6_2899
if 
  4 > 216@
goto_if_false @CASINO6_2958
if 
  is_car_tyre_burst 316@ {tireId} 216@
goto_if_false @CASINO6_2944
set_local_var_bit_lvar 239@ {var_bitIndex} 216@

:CASINO6_2944
216@ += 1
goto @CASINO6_2899

:CASINO6_2958
if 
  is_this_model_a_car 234@
goto_if_false @CASINO6_3047
216@ = 0

:CASINO6_2981
if 
  6 > 216@
goto_if_false @CASINO6_3040
if 
  is_car_door_damaged 316@ {door} 216@
goto_if_false @CASINO6_3026
set_local_var_bit_lvar 240@ {var_bitIndex} 216@

:CASINO6_3026
216@ += 1
goto @CASINO6_2981

:CASINO6_3040
goto @CASINO6_3054

:CASINO6_3047
240@ = -1

:CASINO6_3054
fix_car 316@
mark_model_as_no_longer_needed 234@

:CASINO6_3064
286@ = 0

:CASINO6_3071
if 
  286@ == 0
goto_if_false @CASINO6_3108
wait 0
286@ = get_char_area_visible $scplayer
goto @CASINO6_3071

:CASINO6_3108
do_fade 0 {direction} Fade.Out

:CASINO6_3114
if 
  get_fading_status 
goto_if_false @CASINO6_3138
wait 0
goto @CASINO6_3114

:CASINO6_3138
set_char_coordinates_dont_warp_gang $scplayer {x} 963.7808 {y} 2165.3501 {z} 1010.031
set_player_control $player1 {state} False
disable_player_sprint $player1 {state} True
if 
  not is_char_dead 39@
goto_if_false @CASINO6_3268
if 
  not is_char_in_any_car 39@
goto_if_false @CASINO6_3231
set_char_coordinates 39@ {x} 963.8596 {y} 2162.615 {z} 1010.031
goto @CASINO6_3251

:CASINO6_3231
warp_char_from_car_to_coord 39@ {x} 963.8596 {y} 2162.615 {z} 1010.031

:CASINO6_3251
freeze_char_position 39@ {state} True
remove_blip 40@
remove_char_from_group 39@

:CASINO6_3268
remove_blip 218@
if 
  not is_car_dead 316@
goto_if_false @CASINO6_3294
delete_car 316@

:CASINO6_3294
319@ = 0
318@ = 0
clear_area_of_chars 930.0 {leftBottomY} 2178.0 {leftBottomZ} 1008.0 {rightTopX} 964.0 {rightTopY} 2095.0 {rightTopZ} 1014.0
make_player_safe_for_cutscene $player1
set_area_visible 1
load_cutscene 'CAS6B_1'

:CASINO6_3360
if 
  not has_cutscene_loaded 
goto_if_false @CASINO6_3384
wait 0
goto @CASINO6_3360

:CASINO6_3384
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO6_3393
if 
  not has_cutscene_finished 
goto_if_false @CASINO6_3417
wait 0
goto @CASINO6_3393

:CASINO6_3417
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO6_3432
if 
  get_fading_status 
goto_if_false @CASINO6_3456
wait 0
goto @CASINO6_3432

:CASINO6_3456
if 
  not was_cutscene_skipped 
goto_if_false @CASINO6_3576
load_cutscene 'CAS6B_2'

:CASINO6_3480
if 
  not has_cutscene_loaded 
goto_if_false @CASINO6_3504
wait 0
goto @CASINO6_3480

:CASINO6_3504
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO6_3513
if 
  not has_cutscene_finished 
goto_if_false @CASINO6_3537
wait 0
goto @CASINO6_3513

:CASINO6_3537
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO6_3552
if 
  get_fading_status 
goto_if_false @CASINO6_3576
wait 0
goto @CASINO6_3552

:CASINO6_3576
switch_widescreen True
load_scene 942.8142 {y} 2111.4839 {z} 1010.031
request_collision 942.8142 {y} 2111.4839
set_char_coordinates $scplayer {x} 961.4175 {y} 2111.3899 {z} 1010.03
set_char_heading $scplayer {heading} 100.0
freeze_char_position $scplayer {state} False
36@ = 0
request_model 124
request_model 125
request_model 126
request_model 127
request_model 344
request_model 353
request_model 341
request_model 336
request_model 366
request_model #BODYARMOUR
request_model #AB_CARCASS
request_model #AB_HOOK
request_model #FREEZER_DOOR
request_model #SEC_KEYPAD
request_model #CARDBOARDBOX2
request_model #CJ_MEAT_BAG_1
request_model #CJ_MEAT_1
request_model #CJ_MEAT_2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1812

:CASINO6_3745
if or
  not has_model_loaded 124
  not has_model_loaded 125
  not has_model_loaded 126
  not has_model_loaded 127
  not has_model_loaded 344
goto_if_false @CASINO6_3788
wait 0
goto @CASINO6_3745

:CASINO6_3788
if or
  not has_model_loaded 353
  not has_model_loaded 341
  not has_model_loaded 336
  not has_model_loaded 366
  not has_model_loaded #BODYARMOUR
goto_if_false @CASINO6_3834
wait 0
goto @CASINO6_3788

:CASINO6_3834
if or
  not has_model_loaded #AB_CARCASS
  not has_model_loaded #AB_HOOK
  not has_model_loaded #FREEZER_DOOR
  not has_model_loaded #SEC_KEYPAD
  not has_model_loaded #CARDBOARDBOX2
  not has_model_loaded #CJ_MEAT_BAG_1
goto_if_false @CASINO6_3886
wait 0
goto @CASINO6_3834

:CASINO6_3886
if or
  not has_model_loaded #CJ_MEAT_1
  not has_model_loaded #CJ_MEAT_2
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO6_3922
wait 0
goto @CASINO6_3886

:CASINO6_3922
220@, 230@, 230@ = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Melee
if 
  is_int_lvar_equal_to_constant 220@ == 9
goto_if_false @CASINO6_3975
set_lvar_int_to_constant 220@ = 5
mark_model_as_no_longer_needed 341
goto @CASINO6_3982

:CASINO6_3975
set_lvar_int_to_constant 220@ = 9

:CASINO6_3982
set_max_fire_generations 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_4109
set_char_coordinates 39@ {x} 959.7906 {y} 2108.6699 {z} 1010.03
set_char_heading 39@ {heading} 51.5
set_char_area_visible 39@ {areaId} 1
freeze_char_position 39@ {state} False
remove_blip 40@
40@ = add_blip_for_char 39@
change_blip_display 40@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 40@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
set_blip_as_friendly 40@ {state} True
set_char_decision_maker 39@ {handleOrTemplate} 34@
set_char_health 39@ {health} 300

:CASINO6_4109
display_onscreen_counter_with_string $rosenbergs_health_C6 {display} CounterDisplay.Bar {text} 'CAS6_C0'
41@ = 0
42@ = 0
44@ = 0
51@ = 0
37@ = create_pickup 366 {pickupType} PickupType.Once {x} 962.9547 {y} 2101.918 {z} 1011.0
43@ = create_object_no_offset 366 {x} 959.9 {y} 2098.1001 {z} 1010.6
set_object_rotation 43@ {x} 0.0 {y} 45.0 {z} 90.0
38@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 958.4733 {y} 2144.251 {z} 1011.0
set_radar_zoom 95
287@ = 0
227@ = 0
309@ = 0
305@ = 0
306@ = 0
180@ = 1.062
set_lvar_float_to_lvar_float 178@ = 180@
178@ *= 2.0
178@ *= 3.1416
178@ /= 360.0
176@ = 0.0
177@ = -0.0001
162@ = 1
161@ = 0
163@ = 0
181@ = 945.725
189@ = 2175.24
182@ = 946.787
190@ = 2174.1851
183@ = 946.787
191@ = 2118.155
184@ = 945.725
192@ = 2117.0691
185@ = 938.357
193@ = 2117.0691
186@ = 937.262
194@ = 2118.155
187@ = 937.262
195@ = 2174.1851
188@ = 938.357
196@ = 2175.24
197@ = 1016.288
160@ = create_object_no_offset #SEC_KEYPAD {x} 946.35 {y} 2113.55 {z} 1011.522
set_object_collision 160@ {state} False
freeze_object_position 160@ {state} True
154@ = create_object_no_offset #CARDBOARDBOX2 {x} 937.262 {y} 2126.155 {z} 197@
set_object_dynamic 154@ {state} False
set_object_collision 154@ {state} False
set_object_visible 154@ {state} False
148@ = 6
164@ = 0.0
170@ = 0.0
142@ = create_object_no_offset #AB_CARCASS {x} 937.228 {y} 2121.157 {z} 197@
attach_object_to_object 142@ {handle} 154@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
155@ = create_object_no_offset #CARDBOARDBOX2 {x} 940.356 {y} 2175.24 {z} 197@
set_object_dynamic 155@ {state} False
set_object_collision 155@ {state} False
set_object_visible 155@ {state} False
149@ = 0
165@ = 90.0
171@ = 0.0
143@ = create_object_no_offset #AB_CARCASS {x} 940.356 {y} 2175.2639 {z} 197@
attach_object_to_object 143@ {handle} 155@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
156@ = create_object_no_offset #CARDBOARDBOX2 {x} 946.846 {y} 2135.2639 {z} 197@
set_object_dynamic 156@ {state} False
set_object_collision 156@ {state} False
set_object_visible 156@ {state} False
150@ = 2
166@ = 0.0
172@ = 0.0
144@ = create_object_no_offset #AB_CARCASS {x} 946.846 {y} 2135.2639 {z} 197@
attach_object_to_object 144@ {handle} 156@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
157@ = create_object_no_offset #AB_HOOK {x} 941.727 {y} 2117.0759 {z} 197@
151@ = 4
167@ = 90.0
173@ = 45.0
set_object_rotation 157@ {x} 0.0 {y} 0.0 {z} 173@
158@ = create_object_no_offset #AB_HOOK {x} 937.228 {y} 2162.24 {z} 197@
152@ = 6
168@ = 0.0
174@ = -45.0
set_object_rotation 158@ {x} 0.0 {y} 0.0 {z} 174@
159@ = create_object_no_offset #AB_HOOK {x} 946.846 {y} 2172.24 {z} 197@
153@ = 2
169@ = 0.0
175@ = 135.0
set_object_rotation 159@ {x} 0.0 {y} 0.0 {z} 175@
245@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 933.6226 {y} 2118.948 {z} 1012.313
set_object_heading 245@ {heading} 65.0793
246@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 933.1715 {y} 2133.366 {z} 1012.767
set_object_heading 246@ {heading} 65.0783
247@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 942.9017 {y} 2155.644 {z} 1013.479
set_object_heading 247@ {heading} 64.6149
248@ = create_object_no_offset #CJ_MEAT_BAG_1 {x} 950.8132 {y} 2166.6699 {z} 1012.296
set_object_heading 248@ {heading} 88.701
249@ = create_object_no_offset #CJ_MEAT_2 {x} 942.7145 {y} 2154.6331 {z} 1011.213
set_object_heading 249@ {heading} 73.973
250@ = create_object_no_offset #CJ_MEAT_2 {x} 950.4804 {y} 2155.572 {z} 1011.902
set_object_heading 250@ {heading} 131.2515
251@ = create_object_no_offset #CJ_MEAT_2 {x} 942.3651 {y} 2118.8679 {z} 1011.241
set_object_heading 251@ {heading} 64.6148
252@ = create_object_no_offset #CJ_MEAT_2 {x} 950.6234 {y} 2132.0959 {z} 1011.947
set_object_heading 252@ {heading} 24.2141
253@ = create_object_no_offset #CJ_MEAT_2 {x} 934.5715 {y} 2171.1731 {z} 1011.266
set_object_heading 253@ {heading} 354.6342
202@ = create_object_no_offset #FREEZER_DOOR {x} 951.859 {y} 2121.6479 {z} 1012.094
set_object_proofs 202@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
203@ = create_object_no_offset #SEC_KEYPAD {x} 950.9305 {y} 2114.3479 {z} 1011.522
set_object_heading 203@ {heading} 180.0
freeze_object_position 203@ {state} True
set_object_collision 203@ {state} False
204@ = 0
214@ = 0.0
215@ = 0.001
289@ = -1
206@ = open_sequence_task 
task_achieve_heading -1 {heading} 180.0
task_stand_still -1 {time} 800
close_sequence_task 206@
208@ = create_object_no_offset #AB_CARCASS {x} 962.4035 {y} 2119.8169 {z} 197@
209@ = create_object_no_offset #AB_CARCASS {x} 962.4035 {y} 2121.6411 {z} 197@
210@ = create_object_no_offset #AB_CARCASS {x} 962.4035 {y} 2124.842 {z} 197@
211@ = create_object_no_offset #AB_CARCASS {x} 955.9693 {y} 2128.8169 {z} 197@
212@ = create_object_no_offset #AB_CARCASS {x} 955.9693 {y} 2131.6411 {z} 197@
213@ = create_object_no_offset #AB_CARCASS {x} 955.9693 {y} 2134.842 {z} 197@
140@ = 29
141@ = 0
216@ = 0

:CASINO6_5751
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_5795
111@(216@,29i) = -1
216@ += 1
goto @CASINO6_5751

:CASINO6_5795
53@ = create_char PedType.Mission2 {modelId} 126 {x} 937.3484 {y} 2112.0779 {z} 1010.031
set_char_heading 53@ {heading} 264.0
set_char_health 53@ {health} 200
set_char_max_health 53@ {maxHealth} 200
82@ = add_blip_for_char 53@
change_blip_display 82@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 82@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 53@ {state} True
give_weapon_to_char 53@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 53@ {weaponType} WeaponType.Mp5
set_char_accuracy 53@ {accuracy} 30
set_char_decision_maker 53@ {handleOrTemplate} 34@
111@ = 0
54@ = create_char PedType.Mission2 {modelId} 127 {x} 937.135 {y} 2108.9399 {z} 1010.031
set_char_heading 54@ {heading} 271.5
set_char_health 54@ {health} 200
set_char_max_health 54@ {maxHealth} 200
83@ = add_blip_for_char 54@
change_blip_display 83@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 83@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 54@ {state} True
give_weapon_to_char 54@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 54@ {weaponType} WeaponType.Mp5
set_char_accuracy 54@ {accuracy} 30
set_char_decision_maker 54@ {handleOrTemplate} 34@
112@ = 0
55@ = create_char PedType.Mission2 {modelId} 124 {x} 939.319 {y} 2124.8879 {z} 1010.031
set_char_heading 55@ {heading} 195.0
set_char_health 53@ {health} 200
set_char_max_health 53@ {maxHealth} 200
84@ = add_blip_for_char 55@
change_blip_display 84@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 84@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 55@ {weaponType} 220@ {ammo} 0
set_current_char_weapon 55@ {weaponType} 220@
113@ = 0
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stand_still -1 {time} 800
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 940.5833 {y} 2116.1689 {z} 1010.031 {speed} MoveState.Run {time} -1
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} 39@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 55@ {sequence} 290@
clear_sequence_task 290@
56@ = create_char PedType.Mission2 {modelId} 125 {x} 937.819 {y} 2137.4871 {z} 1010.03
set_char_heading 56@ {heading} 188.0
set_char_health 53@ {health} 200
set_char_max_health 53@ {maxHealth} 200
85@ = add_blip_for_char 56@
change_blip_display 85@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 85@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 56@ {weaponType} WeaponType.BaseballBat {ammo} 0
set_current_char_weapon 56@ {weaponType} WeaponType.BaseballBat
set_char_accuracy 56@ {accuracy} 35
114@ = 0
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stand_still -1 {time} 800
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 940.5833 {y} 2116.1689 {z} 1010.031 {speed} MoveState.Run {time} -1
task_jump -1 {state} True
task_kill_char_on_foot -1 {target} 39@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 56@ {sequence} 290@
clear_sequence_task 290@
57@ = create_char PedType.Mission2 {modelId} 127 {x} 948.0 {y} 2124.0 {z} 1010.031
set_char_heading 57@ {heading} 135.0
set_char_health 57@ {health} 200
set_char_max_health 57@ {maxHealth} 200
86@ = add_blip_for_char 57@
change_blip_display 86@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 86@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 57@ {state} True
set_char_accuracy 57@ {accuracy} 30
115@ = 0
254@ = create_object_no_offset 344 {x} 948.0 {y} 2124.0 {z} 1010.031
set_object_dynamic 254@ {state} False
set_object_collision 254@ {state} False
task_pick_up_object 57@ {object} 254@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
256@ = create_fx_system_on_object "FIRE" {object} 254@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.6 {ignoreBoundingChecks} True
290@ = open_sequence_task 
task_stand_still -1 {time} 200
task_play_anim -1 {animationName} "UZI_RELOAD" {animationFile} "UZI" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 300
task_play_anim -1 {animationName} "WEAPON_START_THROW" {animationFile} "GRENADE" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "WEAPON_THROW" {animationFile} "GRENADE" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stand_still -1 {time} 500
task_go_to_coord_any_means -1 {x} 944.032 {y} 2119.907 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 290@
perform_sequence_task 57@ {sequence} 290@
clear_sequence_task 290@
58@ = create_char PedType.Mission2 {modelId} 125 {x} 940.7016 {y} 2138.9331 {z} 1010.031
set_char_heading 58@ {heading} 180.0
set_char_health 58@ {health} 200
set_char_max_health 58@ {maxHealth} 200
87@ = add_blip_for_char 58@
change_blip_display 87@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 87@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 58@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 58@ {weaponType} WeaponType.Mp5
set_char_accuracy 58@ {accuracy} 30
116@ = 0
set_lvar_int_to_lvar_int 291@ = 58@
292@ = 0
293@ = 1
295@ = 940.8504
296@ = 2120.21
297@ = 1010.031
298@ = 184.0
gosub @CASINO6_21012
59@ = create_char PedType.Mission2 {modelId} 124 {x} 938.9517 {y} 2132.4031 {z} 1010.031
set_char_heading 59@ {heading} 170.0
set_char_health 59@ {health} 200
set_char_max_health 59@ {maxHealth} 200
88@ = add_blip_for_char 59@
change_blip_display 88@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 88@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 59@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 59@ {weaponType} WeaponType.Mp5
set_char_accuracy 59@ {accuracy} 30
117@ = 0
set_lvar_int_to_lvar_int 291@ = 59@
292@ = 0
293@ = 1
295@ = 933.7762
296@ = 2120.5891
297@ = 1010.031
298@ = 230.0
gosub @CASINO6_21012
60@ = create_char PedType.Mission2 {modelId} 126 {x} 942.4279 {y} 2129.262 {z} 1011.228
set_char_heading 60@ {heading} 180.0
set_char_health 60@ {health} 200
set_char_max_health 60@ {maxHealth} 200
89@ = add_blip_for_char 60@
change_blip_display 89@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 89@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_toggle_duck 60@ {state} True
task_stay_in_same_place 60@ {state} True
give_weapon_to_char 60@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 60@ {weaponType} WeaponType.Mp5
set_char_accuracy 60@ {accuracy} 30
118@ = 0
61@ = create_char PedType.Mission2 {modelId} 125 {x} 941.8554 {y} 2141.05 {z} 1010.03
set_char_heading 61@ {heading} 198.3264
set_char_health 61@ {health} 200
set_char_max_health 61@ {maxHealth} 200
90@ = add_blip_for_char 61@
change_blip_display 90@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 90@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 61@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 61@ {weaponType} WeaponType.Mp5
set_char_accuracy 61@ {accuracy} 30
119@ = 0
set_lvar_int_to_lvar_int 291@ = 61@
292@ = 0
293@ = 1
295@ = 950.5577
296@ = 2126.7339
297@ = 1010.031
298@ = 150.0
gosub @CASINO6_21012
set_fixed_camera_position 946.2746 {y} 2122.199 {z} 1011.263 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 947.4866 {y} 2124.386 {z} 1011.263 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
clear_wanted_level $player1
set_max_wanted_level 0
219@ = 0
wait 0
280@ = 0.2
set_time_scale 280@
TIMERA = 0

:CASINO6_7669
if 
  100 > TIMERA
goto_if_false @CASINO6_7698
wait 0
goto @CASINO6_7669

:CASINO6_7698
do_fade 0 {direction} Fade.In
skip_cutscene_start_internal @CASINO6_9497
274@ = 0.25
mult_float_lvar_by_float_lvar 274@ *= 280@
276@ = -0.0001
mult_float_lvar_by_float_lvar 276@ *= 280@
278@ = 0.4
mult_float_lvar_by_float_lvar 278@ *= 280@
275@ = 0.2
mult_float_lvar_by_float_lvar 275@ *= 280@
277@ = -0.05
mult_float_lvar_by_float_lvar 277@ *= 280@
mult_float_lvar_by_float_lvar 277@ *= 280@
279@ = 0.0

:CASINO6_7819
if 
  281@ == 0
goto_if_false @CASINO6_7913
wait 0
if 
  not is_char_dead 57@
goto_if_false @CASINO6_7899
if 
  is_char_playing_anim 57@ {animationName} "UZI_RELOAD"
goto_if_false @CASINO6_7892
281@ = 1

:CASINO6_7892
goto @CASINO6_7906

:CASINO6_7899
281@ = 1

:CASINO6_7906
goto @CASINO6_7819

:CASINO6_7913
play_fx_system 256@

:CASINO6_7918
if 
  281@ == 0
goto_if_false @CASINO6_8014
wait 0
if 
  not is_char_dead 57@
goto_if_false @CASINO6_8000
if 
  is_char_playing_anim 57@ {animationName} "WEAPON_THROW"
goto_if_false @CASINO6_7993
281@ = 1

:CASINO6_7993
goto @CASINO6_8007

:CASINO6_8000
281@ = 1

:CASINO6_8007
goto @CASINO6_7918

:CASINO6_8014
281@ = 0

:CASINO6_8021
if 
  281@ == 0
goto_if_false @CASINO6_8160
wait 0
if 
  not is_char_dead 57@
goto_if_false @CASINO6_8146
if 
  is_char_playing_anim 57@ {animationName} "WEAPON_THROW"
goto_if_false @CASINO6_8139
282@ = get_char_anim_current_time 57@ {animationName} "WEAPON_THROW"
if 
  282@ >= 0.3
goto_if_false @CASINO6_8139
281@ = 1

:CASINO6_8139
goto @CASINO6_8153

:CASINO6_8146
281@ = 1

:CASINO6_8153
goto @CASINO6_8021

:CASINO6_8160
if 
  not is_char_dead 57@
goto_if_false @CASINO6_8297
268@, 269@, 270@ = get_object_coordinates 254@
drop_object 57@ {state} False
kill_fx_system 256@
delete_object 254@
219@ = 1
255@ = create_object_no_offset 344 {x} 268@ {y} 269@ {z} 270@
257@ = create_fx_system_on_object "FIRE" {object} 255@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.6 {ignoreBoundingChecks} True
play_fx_system 257@
271@ = 0.0
272@ = 0.0
273@ = 0.0

:CASINO6_8297
198@ = cos 241.0
199@ = sin 241.0
$z = 5000.0

:CASINO6_8327
if 
  1010.031 < $z
goto_if_false @CASINO6_8760
wait 0
add_float_lvar_to_float_lvar 274@ += 276@
add_float_lvar_to_float_lvar 278@ += 274@
set_lvar_float_to_lvar_float 200@ = 278@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 278@
mult_float_lvar_by_float_lvar 201@ *= 199@
add_timed_float_lvar_to_float_lvar 275@ +=@ 277@
add_timed_float_lvar_to_float_lvar 279@ +=@ 275@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
set_var_float_to_lvar_float $z = 270@
add_float_lvar_to_float_var $z += 279@
set_object_coordinates 255@ {x} $x {y} $y {z} $z
add_timed_val_to_float_lvar 271@ +=@ 1.0
add_timed_val_to_float_lvar 272@ +=@ 1.0
add_timed_val_to_float_lvar 273@ +=@ 1.0
set_object_rotation 255@ {x} 271@ {y} 272@ {z} 273@
set_lvar_float_to_lvar_float 283@ = 278@
283@ += 1.5
set_lvar_float_to_lvar_float 284@ = 278@
284@ -= 1.0
set_lvar_float_to_lvar_float 200@ = 283@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 283@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
set_fixed_camera_position $x {y} $y {z} 270@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_lvar_float_to_lvar_float 200@ = 284@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 284@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
point_camera_at_point $x {y} $y {z} 270@ {switchStyle} SwitchType.JumpCut
if 
  1010.5 >= $z
goto_if_false @CASINO6_8753
freeze_object_position 255@ {state} True

:CASINO6_8753
goto @CASINO6_8327

:CASINO6_8760
kill_fx_system 257@
delete_object 255@
mark_model_as_no_longer_needed 344
219@ = 2
258@ = create_fx_system "EXPLOSION_MOLOTOV" {x} $x {y} $y {z} 1010.0 {ignoreBoundingChecks} True
play_and_kill_fx_system 258@
set_heathaze_effect True
259@ = start_script_fire 940.35 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2
219@ = 3
260@ = start_script_fire 941.1 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 4
261@ = start_script_fire 941.5 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 5
262@ = start_script_fire 942.3 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 6
263@ = start_script_fire 942.9 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1
219@ = 7
264@ = start_script_fire 943.65 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2
219@ = 8
TIMERA = 0

:CASINO6_9021
if 
  220 > TIMERA
goto_if_false @CASINO6_9262
wait 0
add_float_lvar_to_float_lvar 278@ += 274@
set_lvar_float_to_lvar_float 283@ = 278@
283@ += 1.5
set_lvar_float_to_lvar_float 284@ = 278@
284@ -= 1.0
set_lvar_float_to_lvar_float 200@ = 283@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 283@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
set_fixed_camera_position $x {y} $y {z} 270@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_lvar_float_to_lvar_float 200@ = 284@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 284@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 268@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 269@
add_float_lvar_to_float_var $y += 201@
point_camera_at_point $x {y} $y {z} 270@ {switchStyle} SwitchType.JumpCut
goto @CASINO6_9021

:CASINO6_9262
285@ = 61.0
224@, 225@, 226@ = get_active_camera_coordinates 
TIMERA = 0

:CASINO6_9290
if 
  1000 > TIMERA
goto_if_false @CASINO6_9320
wait 0
goto @CASINO6_9290

:CASINO6_9320
TIMERA = 0

:CASINO6_9327
if 
  700 > TIMERA
goto_if_false @CASINO6_9460
wait 0
198@ = cos 285@
199@ = sin 285@
set_lvar_float_to_lvar_float 200@ = 284@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 284@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 224@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 225@
add_float_lvar_to_float_var $y += 201@
point_camera_at_point $x {y} $y {z} 270@ {switchStyle} SwitchType.JumpCut
285@ -= 0.25
goto @CASINO6_9327

:CASINO6_9460
TIMERA = 0

:CASINO6_9467
if 
  1000 > TIMERA
goto_if_false @CASINO6_9497
wait 0
goto @CASINO6_9467

:CASINO6_9497
skip_cutscene_end 
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_start 219@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CASINO6_9836 {caseNum1} 0 {caseLabel1} @CASINO6_9637 {caseNum2} 1 {caseLabel2} @CASINO6_9670 {caseNum3} 2 {caseLabel3} @CASINO6_9685 {caseNum4} 3 {caseLabel4} @CASINO6_9709 {caseNum5} 4 {caseLabel5} @CASINO6_9733 {caseNum6} 5 {caseLabel6} @CASINO6_9757 {caseNum7} 6 {caseLabel7} @CASINO6_9781
switch_continued 7 {caseLabel1} @CASINO6_9805 {caseNum2} -1 {caseLabel2} @CASINO6_9836 {caseNum3} -1 {caseLabel3} @CASINO6_9836 {caseNum4} -1 {caseLabel4} @CASINO6_9836 {caseNum5} -1 {caseLabel5} @CASINO6_9836 {caseNum6} -1 {caseLabel6} @CASINO6_9836 {caseNum7} -1 {caseLabel7} @CASINO6_9836 {caseNum8} -1 {caseLabel8} @CASINO6_9836 {caseNum9} -1 {caseLabel9} @CASINO6_9836

:CASINO6_9637
if 
  not is_char_dead 57@
goto_if_false @CASINO6_9660
drop_object 57@ {state} False

:CASINO6_9660
kill_fx_system 256@
delete_object 254@

:CASINO6_9670
kill_fx_system 257@
delete_object 255@
mark_model_as_no_longer_needed 344

:CASINO6_9685
259@ = start_script_fire 940.35 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2

:CASINO6_9709
260@ = start_script_fire 941.1 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9733
261@ = start_script_fire 941.5 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9757
262@ = start_script_fire 942.3 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9781
263@ = start_script_fire 942.9 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 1

:CASINO6_9805
264@ = start_script_fire 943.65 {y} 2114.0 {z} 1010.03 {propagation} 0 {size} 2
goto @CASINO6_9836

:CASINO6_9836
kill_fx_system 258@
clear_help 
print_help 'CAS6_G0'
TIMERA = 0
set_heathaze_effect False
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
switch_entry_exit 'ABATOIR' {state} False
265@ = 0
266@ = 0
267@ = 0
set_time_scale 1.0
if 
  not is_char_dead 53@
goto_if_false @CASINO6_10004
111@ = 0
set_lvar_int_to_lvar_int 291@ = 53@
292@ = 0
295@ = 945.2795
296@ = 2108.657
297@ = 1010.031
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242

:CASINO6_10004
if 
  not is_char_dead 54@
goto_if_false @CASINO6_10087
112@ = 0
set_lvar_int_to_lvar_int 291@ = 54@
292@ = 0
295@ = 937.135
296@ = 2108.9399
297@ = 1010.031
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242

:CASINO6_10087
if 
  not is_char_dead 55@
goto_if_false @CASINO6_10162
clear_char_tasks 55@
set_char_coordinates 55@ {x} 941.481 {y} 2111.887 {z} 1010.031
set_char_heading 55@ {heading} 260.0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_10162
task_kill_char_on_foot 55@ {target} 39@

:CASINO6_10162
if 
  not is_char_dead 56@
goto_if_false @CASINO6_10321
clear_char_tasks 56@
set_char_coordinates 56@ {x} 939.6515 {y} 2123.3059 {z} 1010.031
set_char_heading 56@ {heading} 187.5
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stand_still -1 {time} 800
task_stay_in_same_place -1 {state} False
task_go_straight_to_coord -1 {x} 940.5833 {y} 2116.1689 {z} 1010.031 {speed} MoveState.Run {time} -1
task_jump -1 {state} True
if 
  not is_char_dead 39@
goto_if_false @CASINO6_10296
task_kill_char_on_foot -1 {target} 39@

:CASINO6_10296
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 56@ {sequence} 290@
clear_sequence_task 290@

:CASINO6_10321
if 
  not is_char_dead 57@
goto_if_false @CASINO6_10411
clear_char_tasks 57@
set_char_coordinates 57@ {x} 944.032 {y} 2119.907 {z} 1010.031
set_char_heading 57@ {heading} 160.0
task_toggle_duck 57@ {state} True
task_stay_in_same_place 57@ {state} True
give_weapon_to_char 57@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 57@ {weaponType} WeaponType.Mp5
task_kill_char_on_foot 57@ {target} $scplayer

:CASINO6_10411
if 
  not is_char_dead 60@
goto_if_false @CASINO6_10435
task_kill_char_on_foot 60@ {target} $scplayer

:CASINO6_10435
set_lvar_text_label 366@s = 'CAS6_EP'
set_lvar_int_to_constant 320@ = 8235
set_lvar_int_to_var_int 343@ = $scplayer
set_lvar_text_label 368@s = 'CAS6_EQ'
set_lvar_int_to_constant 321@ = 8236
set_lvar_int_to_var_int 344@ = $scplayer
set_lvar_text_label 370@s = 'CAS6_ED'
set_lvar_int_to_constant 322@ = 8224
set_lvar_int_to_lvar_int 345@ = 39@
set_lvar_text_label 372@s = 'CAS6_DA'
set_lvar_int_to_constant 323@ = 8219
set_lvar_int_to_lvar_int 346@ = 39@
set_lvar_text_label 374@s = 'CAS6_DB'
set_lvar_int_to_constant 324@ = 8220
set_lvar_int_to_var_int 347@ = $scplayer
set_lvar_text_label 376@s = 'CAS6_ET'
set_lvar_int_to_constant 325@ = 8239
set_lvar_int_to_lvar_int 348@ = 39@
set_lvar_text_label 378@s = 'CAS6_EU'
set_lvar_int_to_constant 326@ = 8240
set_lvar_int_to_var_int 349@ = $scplayer
set_lvar_text_label 380@s = 'CAS6_EA'
set_lvar_int_to_constant 327@ = 8221
set_lvar_int_to_lvar_int 350@ = 39@
set_lvar_text_label 382@s = 'CAS6_EB'
set_lvar_int_to_constant 328@ = 8222
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 384@s = 'CAS6_EC'
set_lvar_int_to_constant 329@ = 8223
set_lvar_int_to_lvar_int 352@ = 39@
set_lvar_text_label 386@s = 'CAS6_GH'
set_lvar_int_to_constant 330@ = 8250
set_lvar_int_to_lvar_int 353@ = 39@
set_lvar_text_label 388@s = 'CAS6_GJ'
set_lvar_int_to_constant 331@ = 8251
set_lvar_int_to_lvar_int 354@ = 39@
set_lvar_text_label 390@s = 'CAS6_GK'
set_lvar_int_to_constant 332@ = 8252
set_lvar_int_to_lvar_int 355@ = 39@
set_lvar_text_label 392@s = 'CAS6_FM'
set_lvar_int_to_constant 333@ = 8245
set_lvar_int_to_lvar_int 356@ = 39@
222@ = get_game_timer 

:CASINO6_10860
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_11364
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO6_10951
switch_entry_exit 'ABATOIR' {state} True
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
goto @CASINO6_31283

:CASINO6_10951
if 
  227@ == 2
goto_if_false @CASINO6_10976
goto @CASINO6_31431

:CASINO6_10976
221@ = get_game_timer 
set_lvar_int_to_lvar_int 223@ = 221@
sub_int_lvar_from_int_lvar 223@ -= 222@
set_lvar_int_to_lvar_int 222@ = 221@
add_int_lvar_to_int_lvar 42@ += 223@
add_int_lvar_to_int_lvar 51@ += 223@
add_int_lvar_to_int_lvar 163@ += 223@
add_int_lvar_to_int_lvar 207@ += 223@
add_int_lvar_to_int_lvar 306@ += 223@
gosub @CASINO6_11417
gosub @CASINO6_15444
gosub @CASINO6_20395
gosub @CASINO6_21452
gosub @CASINO6_23635
if 
  302@ <> 2
goto_if_false @CASINO6_11105
gosub @CASINO6_25377

:CASINO6_11105
216@ = get_char_health 39@
set_var_int_to_lvar_int $rosenbergs_health_C6 = 216@
$rosenbergs_health_C6 /= 3
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_11299
216@ = 0

:CASINO6_11154
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_11292
if 
  111@(216@,29i) <> -1
goto_if_false @CASINO6_11278
if 
  is_char_dead 53@(216@,29i)
goto_if_false @CASINO6_11278
mark_char_as_no_longer_needed 53@(216@,29i)
remove_blip 82@(216@,29i)
111@(216@,29i) = -1
141@ += 1
if 
  is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_11278
set_char_decision_maker 39@ {handleOrTemplate} 34@

:CASINO6_11278
216@ += 1
goto @CASINO6_11154

:CASINO6_11292
goto @CASINO6_11336

:CASINO6_11299
gosub @CASINO6_27225
286@ = get_area_visible 
if 
  286@ == 0
goto_if_false @CASINO6_11336
goto @CASINO6_28003

:CASINO6_11336
gosub @CASINO6_25554
gosub @CASINO6_25126
gosub @CASINO6_26515
goto @CASINO6_11410

:CASINO6_11364
if 
  227@ == 0
goto_if_false @CASINO6_11403
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'

:CASINO6_11403
goto @CASINO6_31431

:CASINO6_11410
goto @CASINO6_10860

:CASINO6_11417
switch_start 287@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_15442 {caseNum1} 0 {caseLabel1} @CASINO6_11480 {caseNum2} 1 {caseLabel2} @CASINO6_12819 {caseNum3} 2 {caseLabel3} @CASINO6_13891 {caseNum4} 3 {caseLabel4} @CASINO6_15168 {caseNum5} 4 {caseLabel5} @CASINO6_15305 {caseNum6} -1 {caseLabel6} @CASINO6_15442 {caseNum7} -1 {caseLabel7} @CASINO6_15442

:CASINO6_11480
if 
  is_char_in_area_2d $scplayer {leftBottomX} 935.0 {leftBottomY} 2114.0 {rightTopX} 947.0 {rightTopY} 2116.0 {drawSphere} False
goto_if_false @CASINO6_12812
287@ += 1
62@ = create_char PedType.Mission2 {modelId} 124 {x} 944.947 {y} 2146.821 {z} 1010.03
set_char_heading 62@ {heading} 180.0
set_char_health 62@ {health} 200
set_char_max_health 62@ {maxHealth} 200
91@ = add_blip_for_char 62@
change_blip_display 91@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 91@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 62@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 62@ {weaponType} WeaponType.Mp5
set_char_accuracy 62@ {accuracy} 35
120@ = 0
set_lvar_int_to_lvar_int 291@ = 62@
292@ = 0
293@ = 0
295@ = 950.4513
296@ = 2133.938
297@ = 1010.03
298@ = 156.0
gosub @CASINO6_21012
63@ = create_char PedType.Mission2 {modelId} 125 {x} 938.7369 {y} 2146.927 {z} 1010.031
set_char_heading 63@ {heading} 180.0
set_char_health 63@ {health} 200
set_char_max_health 63@ {maxHealth} 200
92@ = add_blip_for_char 63@
change_blip_display 92@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 92@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 63@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 63@ {weaponType} WeaponType.Mp5
set_char_accuracy 63@ {accuracy} 40
121@ = 0
set_lvar_int_to_lvar_int 291@ = 63@
292@ = 0
293@ = 0
295@ = 935.2033
296@ = 2135.9231
297@ = 1010.031
298@ = 195.0
gosub @CASINO6_21012
64@ = create_char PedType.Mission2 {modelId} 126 {x} 938.8906 {y} 2150.719 {z} 1010.031
set_char_heading 64@ {heading} 222.0
set_char_health 64@ {health} 200
set_char_max_health 64@ {maxHealth} 200
93@ = add_blip_for_char 64@
change_blip_display 93@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 93@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 64@ {weaponType} WeaponType.Mp5
set_char_accuracy 64@ {accuracy} 35
122@ = 0
set_lvar_int_to_lvar_int 291@ = 64@
292@ = 0
295@ = 941.6102
296@ = 2144.1331
297@ = 1010.03
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242
65@ = create_char PedType.Mission2 {modelId} 125 {x} 951.4207 {y} 2146.3669 {z} 1010.03
set_char_heading 65@ {heading} 148.0
94@ = add_blip_for_char 65@
change_blip_display 94@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 94@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 65@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 65@ {weaponType} WeaponType.Mp5
set_char_accuracy 65@ {accuracy} 40
set_char_shoot_rate 65@ {rate} 60
123@ = 0
set_lvar_int_to_lvar_int 291@ = 65@
292@ = 0
293@ = 0
295@ = 946.5566
296@ = 2141.394
297@ = 1010.031
298@ = 180.0
gosub @CASINO6_21012
66@ = create_char PedType.Mission2 {modelId} 126 {x} 932.7236 {y} 2146.7839 {z} 1010.031
set_char_heading 66@ {heading} 220.0
set_char_health 66@ {health} 150
set_char_max_health 66@ {maxHealth} 150
95@ = add_blip_for_char 66@
change_blip_display 95@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 95@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 66@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 66@ {weaponType} WeaponType.Mp5
set_char_accuracy 66@ {accuracy} 35
124@ = 0
set_lvar_int_to_lvar_int 291@ = 66@
292@ = 0
293@ = 0
295@ = 937.0684
296@ = 2141.9961
297@ = 1010.031
298@ = 180.0
gosub @CASINO6_21012
if 
  not is_char_dead 53@
goto_if_false @CASINO6_12587
if 
  2 > 41@
goto_if_false @CASINO6_12513
295@ = 940.4404
296@ = 2111.781
297@ = 1010.031
298@ = 350.3034
goto @CASINO6_12553

:CASINO6_12513
295@ = 959.418
296@ = 2104.8669
297@ = 1010.03
298@ = 167.1333

:CASINO6_12553
set_lvar_int_to_lvar_int 291@ = 53@
292@ = 0
293@ = 1
clear_char_tasks 53@
gosub @CASINO6_21127

:CASINO6_12587
if 
  not is_char_dead 54@
goto_if_false @CASINO6_12812
if 
  2 > 41@
goto_if_false @CASINO6_12668
295@ = 943.3311
296@ = 2111.7129
297@ = 1010.031
298@ = 0.2979
goto @CASINO6_12812

:CASINO6_12668
set_lvar_int_to_lvar_int 291@ = 54@
292@ = 0
293@ = 1
clear_char_tasks 54@
if 
  not is_char_dead 53@
goto_if_false @CASINO6_12765
295@ = 943.3311
296@ = 2111.7129
297@ = 1010.031
298@ = 0.2979
gosub @CASINO6_21012
goto @CASINO6_12812

:CASINO6_12765
295@ = 959.418
296@ = 2104.8669
297@ = 1010.03
298@ = 167.1333
gosub @CASINO6_21127

:CASINO6_12812
goto @CASINO6_15442

:CASINO6_12819
if or
  is_char_in_area_2d $scplayer {leftBottomX} 930.0 {leftBottomY} 2120.0 {rightTopX} 952.25 {rightTopY} 2125.0 {drawSphere} False
  is_char_in_area_2d $scplayer {leftBottomX} 952.25 {leftBottomY} 2140.0 {rightTopX} 967.0 {rightTopY} 2147.0 {drawSphere} False
goto_if_false @CASINO6_13884
287@ += 1
67@ = create_char PedType.Mission2 {modelId} 124 {x} 951.3571 {y} 2143.1599 {z} 1010.031
set_char_heading 67@ {heading} 90.0
set_char_health 67@ {health} 200
set_char_max_health 67@ {maxHealth} 200
96@ = add_blip_for_char 67@
change_blip_display 96@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 96@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 67@ {weaponType} WeaponType.BaseballBat {ammo} 3000
125@ = 0
set_lvar_int_to_lvar_int 291@ = 67@
292@ = 0
295@ = 943.5978
296@ = 2138.572
297@ = 1010.031
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242
68@ = create_char PedType.Mission2 {modelId} 127 {x} 932.6479 {y} 2144.1179 {z} 1010.031
set_char_heading 68@ {heading} 270.0
set_char_health 68@ {health} 200
set_char_max_health 68@ {maxHealth} 200
97@ = add_blip_for_char 68@
change_blip_display 97@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 97@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 68@ {weaponType} WeaponType.BaseballBat {ammo} 3000
126@ = 0
set_lvar_int_to_lvar_int 291@ = 68@
292@ = 0
295@ = 940.223
296@ = 2139.4189
297@ = 1010.031
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242
69@ = create_char PedType.Mission2 {modelId} 126 {x} 950.7346 {y} 2156.7161 {z} 1010.03
set_char_heading 69@ {heading} 135.0
set_char_health 69@ {health} 150
set_char_max_health 69@ {maxHealth} 150
98@ = add_blip_for_char 69@
change_blip_display 98@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 98@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 69@ {state} True
give_weapon_to_char 69@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 69@ {weaponType} WeaponType.Mp5
set_char_accuracy 69@ {accuracy} 35
set_char_decision_maker 69@ {handleOrTemplate} 35@
task_kill_char_on_foot 69@ {target} $scplayer
127@ = 0
70@ = create_char PedType.Mission2 {modelId} 125 {x} 933.3263 {y} 2160.188 {z} 1010.031
set_char_heading 70@ {heading} 214.0
99@ = add_blip_for_char 70@
change_blip_display 99@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 99@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 70@ {state} True
give_weapon_to_char 70@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 70@ {weaponType} WeaponType.Mp5
set_char_accuracy 70@ {accuracy} 40
set_char_decision_maker 70@ {handleOrTemplate} 35@
task_kill_char_on_foot 70@ {target} $scplayer
128@ = 0
71@ = create_char PedType.Mission2 {modelId} 124 {x} 942.5138 {y} 2165.1001 {z} 1011.228
set_char_heading 71@ {heading} 180.0
set_char_health 71@ {health} 150
set_char_max_health 71@ {maxHealth} 150
100@ = add_blip_for_char 71@
change_blip_display 100@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 100@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 71@ {state} True
give_weapon_to_char 71@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 71@ {weaponType} WeaponType.Mp5
set_char_accuracy 71@ {accuracy} 35
set_char_shoot_rate 71@ {rate} 60
task_toggle_duck 71@ {state} True
task_kill_char_on_foot 71@ {target} $scplayer
129@ = 0
72@ = create_char PedType.Mission2 {modelId} 125 {x} 950.2886 {y} 2172.3799 {z} 1010.03
set_char_heading 72@ {heading} 163.5
101@ = add_blip_for_char 72@
change_blip_display 101@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 101@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 72@ {state} True
give_weapon_to_char 72@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 72@ {weaponType} WeaponType.Mp5
set_char_accuracy 72@ {accuracy} 40
set_char_decision_maker 72@ {handleOrTemplate} 35@
task_kill_char_on_foot 72@ {target} $scplayer
130@ = 0
73@ = create_char PedType.Mission2 {modelId} 126 {x} 934.5824 {y} 2172.3181 {z} 1010.03
set_char_heading 73@ {heading} 197.0
set_char_health 73@ {health} 150
set_char_max_health 73@ {maxHealth} 150
102@ = add_blip_for_char 73@
change_blip_display 102@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 102@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 73@ {weaponType} WeaponType.Mp5
set_char_accuracy 73@ {accuracy} 35
set_char_decision_maker 73@ {handleOrTemplate} 35@
task_kill_char_on_foot 73@ {target} $scplayer
131@ = 0

:CASINO6_13884
goto @CASINO6_15442

:CASINO6_13891
if 
  is_char_in_area_2d $scplayer {leftBottomX} 951.5627 {leftBottomY} 2146.9441 {rightTopX} 932.642 {rightTopY} 2141.283 {drawSphere} False
goto_if_false @CASINO6_15161
287@ += 1
74@ = create_char PedType.Mission2 {modelId} 127 {x} 954.0464 {y} 2157.825 {z} 1010.031
set_char_heading 74@ {heading} 30.0
set_char_health 74@ {health} 150
set_char_max_health 74@ {maxHealth} 150
103@ = add_blip_for_char 74@
change_blip_display 103@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 103@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 74@ {weaponType} WeaponType.Mp5
set_char_accuracy 74@ {accuracy} 40
132@ = 0
set_lvar_int_to_lvar_int 291@ = 74@
292@ = 0
295@ = 944.0997
296@ = 2173.731
297@ = 1010.03
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242
75@ = create_char PedType.Mission2 {modelId} 124 {x} 952.8911 {y} 2165.843 {z} 1010.031
set_char_heading 75@ {heading} 180.0
set_char_health 75@ {health} 150
set_char_max_health 75@ {maxHealth} 150
104@ = add_blip_for_char 75@
change_blip_display 104@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 104@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 75@ {weaponType} WeaponType.Mp5
set_char_accuracy 75@ {accuracy} 35
set_char_shoot_rate 75@ {rate} 70
133@ = 0
set_lvar_int_to_lvar_int 291@ = 75@
292@ = 0
295@ = 949.5583
296@ = 2159.8479
297@ = 1010.031
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242
76@ = create_char PedType.Mission2 {modelId} 126 {x} 953.709 {y} 2167.353 {z} 1010.031
set_char_heading 76@ {heading} 180.0
set_char_health 76@ {health} 150
set_char_max_health 76@ {maxHealth} 150
105@ = add_blip_for_char 76@
change_blip_display 105@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 105@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
give_weapon_to_char 76@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 76@ {weaponType} WeaponType.Mp5
set_char_accuracy 76@ {accuracy} 40
134@ = 0
set_lvar_int_to_lvar_int 291@ = 76@
292@ = 0
295@ = 947.7441
296@ = 2162.7581
297@ = 1010.031
set_lvar_int_to_var_int 294@ = $scplayer
gosub @CASINO6_21242
77@ = create_char PedType.Mission2 {modelId} 127 {x} 955.1686 {y} 2155.968 {z} 1013.643
set_char_heading 77@ {heading} 25.0
set_char_health 77@ {health} 150
set_char_max_health 77@ {maxHealth} 150
106@ = add_blip_for_char 77@
change_blip_display 106@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 106@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 77@ {state} True
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 77@ {weaponType} WeaponType.Mp5
set_char_accuracy 77@ {accuracy} 35
task_toggle_duck 77@ {state} True
task_kill_char_on_foot 77@ {target} $scplayer
135@ = 0
78@ = create_char PedType.Mission2 {modelId} 124 {x} 957.3302 {y} 2172.3589 {z} 1011.832
set_char_heading 78@ {heading} 88.0
set_char_health 78@ {health} 150
set_char_max_health 78@ {maxHealth} 150
107@ = add_blip_for_char 78@
change_blip_display 107@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 107@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 78@ {state} True
give_weapon_to_char 78@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 78@ {weaponType} WeaponType.Mp5
set_char_accuracy 78@ {accuracy} 40
task_toggle_duck 78@ {state} True
task_kill_char_on_foot 78@ {target} $scplayer
136@ = 0
79@ = create_char PedType.Mission2 {modelId} 126 {x} 955.526 {y} 2175.9839 {z} 1010.031
set_char_heading 79@ {heading} 169.0
set_char_health 79@ {health} 150
set_char_max_health 79@ {maxHealth} 150
108@ = add_blip_for_char 79@
change_blip_display 108@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 108@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 79@ {state} True
give_weapon_to_char 79@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 79@ {weaponType} WeaponType.Mp5
set_char_accuracy 79@ {accuracy} 35
task_toggle_duck 79@ {state} True
task_kill_char_on_foot 79@ {target} $scplayer
137@ = 0
80@ = create_char PedType.Mission2 {modelId} 125 {x} 959.0216 {y} 2172.0 {z} 1010.031
set_char_heading 80@ {heading} 283.0
set_char_health 80@ {health} 150
set_char_max_health 80@ {maxHealth} 150
109@ = add_blip_for_char 80@
change_blip_display 109@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 109@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 80@ {state} True
give_weapon_to_char 80@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 80@ {weaponType} WeaponType.Mp5
set_char_accuracy 80@ {accuracy} 40
task_toggle_duck 80@ {state} True
task_kill_char_on_foot 80@ {target} $scplayer
138@ = 0
81@ = create_char PedType.Mission2 {modelId} 126 {x} 958.8845 {y} 2152.1169 {z} 1011.832
set_char_heading 81@ {heading} 0.0
set_char_health 81@ {health} 150
set_char_max_health 81@ {maxHealth} 150
110@ = add_blip_for_char 81@
change_blip_display 110@ {display} BlipDisplay.BlipOnly
set_blip_entry_exit 110@ {x} 968.3954 {y} 2160.9651 {radius} 1.0
task_stay_in_same_place 81@ {state} True
give_weapon_to_char 81@ {weaponType} WeaponType.Mp5 {ammo} 3000
set_current_char_weapon 81@ {weaponType} WeaponType.Mp5
set_char_accuracy 81@ {accuracy} 35
task_toggle_duck 81@ {state} True
task_kill_char_on_foot 81@ {target} $scplayer
139@ = 0

:CASINO6_15161
goto @CASINO6_15442

:CASINO6_15168
if 
  is_char_in_area_2d $scplayer {leftBottomX} 952.7594 {leftBottomY} 2156.425 {rightTopX} 955.3043 {rightTopY} 2166.761 {drawSphere} False
goto_if_false @CASINO6_15298
287@ += 1
if 
  not is_char_dead 79@
goto_if_false @CASINO6_15298
set_lvar_int_to_lvar_int 291@ = 79@
292@ = 0
293@ = 0
295@ = 960.9915
296@ = 2177.387
297@ = 1010.031
298@ = 107.0
gosub @CASINO6_21012

:CASINO6_15298
goto @CASINO6_15442

:CASINO6_15305
if 
  is_char_in_area_2d $scplayer {leftBottomX} 961.765 {leftBottomY} 2174.8989 {rightTopX} 965.3094 {rightTopY} 2171.5879 {drawSphere} False
goto_if_false @CASINO6_15435
287@ += 1
if 
  not is_char_dead 80@
goto_if_false @CASINO6_15435
set_lvar_int_to_lvar_int 291@ = 80@
292@ = 0
293@ = 0
295@ = 958.909
296@ = 2158.502
297@ = 1010.031
298@ = 0.0
gosub @CASINO6_21012

:CASINO6_15435
goto @CASINO6_15442

:CASINO6_15442
return 

:CASINO6_15444
switch_start 41@ {numCases} 23 {hasDefaultCase} 0 {defaultLabel} @CASINO6_20393 {caseNum1} 0 {caseLabel1} @CASINO6_15637 {caseNum2} 1 {caseLabel2} @CASINO6_15665 {caseNum3} 2 {caseLabel3} @CASINO6_16043 {caseNum4} 3 {caseLabel4} @CASINO6_16474 {caseNum5} 4 {caseLabel5} @CASINO6_16807 {caseNum6} 5 {caseLabel6} @CASINO6_17074 {caseNum7} 6 {caseLabel7} @CASINO6_17217
switch_continued 7 {caseLabel1} @CASINO6_17502 {caseNum2} 8 {caseLabel2} @CASINO6_17552 {caseNum3} 9 {caseLabel3} @CASINO6_17671 {caseNum4} 10 {caseLabel4} @CASINO6_17721 {caseNum5} 11 {caseLabel5} @CASINO6_17811 {caseNum6} 12 {caseLabel6} @CASINO6_17872 {caseNum7} 13 {caseLabel7} @CASINO6_18328 {caseNum8} 14 {caseLabel8} @CASINO6_18447 {caseNum9} 15 {caseLabel9} @CASINO6_18634
switch_continued 16 {caseLabel1} @CASINO6_18756 {caseNum2} 17 {caseLabel2} @CASINO6_18924 {caseNum3} 18 {caseLabel3} @CASINO6_19444 {caseNum4} 19 {caseLabel4} @CASINO6_19548 {caseNum5} 20 {caseLabel5} @CASINO6_19899 {caseNum6} 21 {caseLabel6} @CASINO6_20032 {caseNum7} 22 {caseLabel7} @CASINO6_20118 {caseNum8} -1 {caseLabel8} @CASINO6_20393 {caseNum9} -1 {caseLabel9} @CASINO6_20393

:CASINO6_15637
task_stay_in_same_place 39@ {state} True
task_toggle_duck 39@ {state} True
41@ += 1
goto @CASINO6_20393

:CASINO6_15665
if and
  is_char_dead 55@
  is_char_dead 56@
goto_if_false @CASINO6_15793
290@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 959.2689 {y} 2098.5901 {z} 1010.03 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 255.0
task_toggle_duck -1 {state} True
task_stand_still -1 {time} 300
task_stand_still -1 {time} 300
task_toggle_duck -1 {state} False
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ += 1
goto @CASINO6_16036

:CASINO6_15793
if 
  36@ == 1
goto_if_false @CASINO6_15918
290@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 959.2689 {y} 2098.5901 {z} 1010.03 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 255.0
task_toggle_duck -1 {state} True
task_stand_still -1 {time} 300
task_stand_still -1 {time} 300
task_toggle_duck -1 {state} False
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ += 1
goto @CASINO6_16036

:CASINO6_15918
if 
  45@ == 0
goto_if_false @CASINO6_16036
52@ = generate_random_int_in_range 0 {max} 101
if 
  50 > 52@
goto_if_false @CASINO6_15992
set_var_int_to_constant $load_sample = 8227
set_var_text_label s$load_text = 'CAS6_EG'
goto @CASINO6_16014

:CASINO6_15992
set_var_int_to_constant $load_sample = 8225
set_var_text_label s$load_text = 'CAS6_EE'

:CASINO6_16014
start_new_script @A_ALAP 2 50 39@ 
45@ = 1

:CASINO6_16036
goto @CASINO6_20393

:CASINO6_16043
288@ = get_sequence_progress 39@
if 
  288@ == 6
goto_if_false @CASINO6_16467
give_weapon_to_char 39@ {weaponType} WeaponType.Extinguisher {ammo} 3000
set_current_char_weapon 39@ {weaponType} WeaponType.Extinguisher
delete_object 43@
set_var_int_to_constant $load_sample = 8228
set_var_text_label s$load_text = 'CAS6_EH'
start_new_script @A_ALAP 2 100 39@ 
51@ = 0
if and
  is_char_dead 53@
  is_char_dead 54@
goto_if_false @CASINO6_16268
clear_char_tasks 39@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 946.1957 {y} 2112.3721 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
51@ = 0
41@ = 4
goto @CASINO6_16467

:CASINO6_16268
if 
  36@ == 1
goto_if_false @CASINO6_16391
clear_char_tasks 39@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 946.1957 {y} 2112.3721 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ = 4
goto @CASINO6_16467

:CASINO6_16391
set_lvar_int_to_lvar_int 291@ = 39@
292@ = 0
293@ = 0
295@ = 957.9808
296@ = 2100.7141
297@ = 1010.031
298@ = 346.0
gosub @CASINO6_21344
41@ += 1

:CASINO6_16467
goto @CASINO6_20393

:CASINO6_16474
if and
  is_char_dead 53@
  is_char_dead 54@
goto_if_false @CASINO6_16600
clear_char_tasks 39@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 945.1309 {y} 2112.7109 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ += 1
goto @CASINO6_16800

:CASINO6_16600
if 
  36@ == 1
goto_if_false @CASINO6_16730
clear_char_tasks 39@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 945.1309 {y} 2112.7109 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 79.1071
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ += 1
51@ = 0
goto @CASINO6_16800

:CASINO6_16730
if and
  46@ == 0
  51@ > 500
goto_if_false @CASINO6_16800
set_var_int_to_constant $load_sample = 8226
set_var_text_label s$load_text = 'CAS6_EF'
start_new_script @A_ALAP 2 100 39@ 
46@ = 1

:CASINO6_16800
goto @CASINO6_20393

:CASINO6_16807
if 
  locate_char_on_foot_2d 39@ {x} 945.1309 {y} 2112.7109 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @CASINO6_16958
if 
  161@ == 0
goto_if_false @CASINO6_16877
41@ = 21
goto @CASINO6_16951

:CASINO6_16877
if 
  287@ > 0
goto_if_false @CASINO6_16909
41@ = 6
goto @CASINO6_16951

:CASINO6_16909
if and
  is_char_dead 57@
  is_char_dead 58@
goto_if_false @CASINO6_16944
41@ = 6
goto @CASINO6_16951

:CASINO6_16944
41@ += 1

:CASINO6_16951
goto @CASINO6_17067

:CASINO6_16958
if and
  47@ == 0
  51@ > 2500
goto_if_false @CASINO6_17067
if 
  36@ == 0
goto_if_false @CASINO6_17067
if or
  not is_char_dead 57@
  not is_char_dead 58@
goto_if_false @CASINO6_17067
set_var_int_to_constant $load_sample = 8229
set_var_text_label s$load_text = 'CAS6_EJ'
start_new_script @A_ALAP 2 101 39@ 
47@ = 1

:CASINO6_17067
goto @CASINO6_20393

:CASINO6_17074
if 
  287@ > 0
goto_if_false @CASINO6_17106
41@ += 1
goto @CASINO6_17210

:CASINO6_17106
if and
  is_char_dead 57@
  is_char_dead 58@
goto_if_false @CASINO6_17210
if 
  not locate_char_on_foot_2d 39@ {x} 945.1309 {y} 2112.7109 {xRadius} 1.5 {yRadius} 1.5 {drawSphere} False
goto_if_false @CASINO6_17203
task_go_to_coord_any_means 39@ {x} 945.1309 {y} 2112.7109 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
41@ -= 1
goto @CASINO6_17210

:CASINO6_17203
41@ += 1

:CASINO6_17210
goto @CASINO6_20393

:CASINO6_17217
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_17383
if 
  36@ == 0
goto_if_false @CASINO6_17383
if 
  is_char_in_area_3d $scplayer {leftBottomX} 930.0 {leftBottomY} 2114.0 {leftBottomZ} 1010.0 {rightTopX} 966.0 {rightTopY} 2095.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_17346
set_var_int_to_constant $load_sample = 8230
set_var_text_label s$load_text = 'CAS6_EK'
start_new_script @A_ALAP 2 101 39@ 
goto @CASINO6_17383

:CASINO6_17346
set_var_int_to_constant $load_sample = 8231
set_var_text_label s$load_text = 'CAS6_EL'
start_new_script @A_ALAP 2 101 39@ 

:CASINO6_17383
clear_char_tasks 39@
42@ = 0
if or
  not is_script_fire_extinguished 264@
  not is_script_fire_extinguished 263@
goto_if_false @CASINO6_17480
clear_char_tasks 39@
290@ = open_sequence_task 
task_shoot_at_coord -1 {x} 943.2 {y} 2114.0 {z} 1011.0 {time} 3000
task_stand_still -1 {time} 500
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
goto @CASINO6_17488

:CASINO6_17480
42@ = 10000

:CASINO6_17488
41@ += 1
goto @CASINO6_20393

:CASINO6_17502
if 
  42@ > 2850
goto_if_false @CASINO6_17545
remove_script_fire 264@
remove_script_fire 263@
265@ = 1
41@ += 1

:CASINO6_17545
goto @CASINO6_20393

:CASINO6_17552
clear_char_tasks 39@
42@ = 0
if or
  not is_script_fire_extinguished 262@
  not is_script_fire_extinguished 261@
goto_if_false @CASINO6_17649
clear_char_tasks 39@
290@ = open_sequence_task 
task_shoot_at_coord -1 {x} 941.9 {y} 2114.0 {z} 1011.0 {time} 2000
task_stand_still -1 {time} 500
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
goto @CASINO6_17657

:CASINO6_17649
42@ = 10000

:CASINO6_17657
41@ += 1
goto @CASINO6_20393

:CASINO6_17671
if 
  42@ > 1250
goto_if_false @CASINO6_17714
remove_script_fire 262@
remove_script_fire 261@
266@ = 1
41@ += 1

:CASINO6_17714
goto @CASINO6_20393

:CASINO6_17721
clear_char_tasks 39@
42@ = 0
if or
  not is_script_fire_extinguished 260@
  not is_script_fire_extinguished 259@
goto_if_false @CASINO6_17789
clear_char_tasks 39@
task_shoot_at_coord 39@ {x} 940.7 {y} 2114.0 {z} 1011.0 {time} 3000
goto @CASINO6_17797

:CASINO6_17789
42@ = 10000

:CASINO6_17797
41@ += 1
goto @CASINO6_20393

:CASINO6_17811
if 
  42@ > 2850
goto_if_false @CASINO6_17865
remove_script_fire 260@
remove_script_fire 259@
267@ = 1
302@ = 2
set_heathaze_effect False
41@ += 1

:CASINO6_17865
goto @CASINO6_20393

:CASINO6_17872
if 
  287@ > 0
goto_if_false @CASINO6_18196
if 
  287@ == 1
goto_if_false @CASINO6_17990
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_17976
clear_char_tasks 39@
task_go_to_coord_any_means 39@ {x} 960.0 {y} 2110.0 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
41@ = 15
goto @CASINO6_17983

:CASINO6_17976
41@ = 13

:CASINO6_17983
goto @CASINO6_18127

:CASINO6_17990
if 
  287@ == 2
goto_if_false @CASINO6_18090
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_18076
clear_char_tasks 39@
task_go_to_coord_any_means 39@ {x} 960.0 {y} 2110.0 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
41@ = 15
goto @CASINO6_18083

:CASINO6_18076
41@ = 13

:CASINO6_18083
goto @CASINO6_18127

:CASINO6_18090
if 
  287@ > 2
goto_if_false @CASINO6_18127
clear_char_tasks 39@
41@ = 19
goto @CASINO6_20393

:CASINO6_18127
if 
  36@ == 0
goto_if_false @CASINO6_18189
set_var_int_to_constant $load_sample = 8241
set_var_text_label s$load_text = 'CAS6_FA'
start_new_script @A_ALAP 2 100 39@ 
51@ = 0

:CASINO6_18189
goto @CASINO6_18321

:CASINO6_18196
if 
  48@ == 0
goto_if_false @CASINO6_18321
52@ = generate_random_int_in_range 0 {max} 101
if 
  50 > 52@
goto_if_false @CASINO6_18270
set_var_int_to_constant $load_sample = 8232
set_var_text_label s$load_text = 'CAS6_EM'
goto @CASINO6_18292

:CASINO6_18270
set_var_int_to_constant $load_sample = 8233
set_var_text_label s$load_text = 'CAS6_EN'

:CASINO6_18292
start_new_script @A_ALAP 2 100 39@ 
48@ = 1
51@ = 0

:CASINO6_18321
goto @CASINO6_20393

:CASINO6_18328
205@ = add_attractor 950.9462 {y} 2114.9719 {z} 1011.5 {angle} 180.0 {_p5} 15.0 {sequence} 206@
add_pedtype_as_attractor_user 205@ {pedType} PedType.Mission1
clear_char_tasks 39@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_go_to_coord_any_means -1 {x} 950.2319 {y} 2115.927 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_use_attractor -1 {attractor} 205@
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ += 1
goto @CASINO6_20393

:CASINO6_18447
if 
  is_char_at_scripted_attractor 39@ {handle} 205@
goto_if_false @CASINO6_18627
if or
  204@ == 1
  204@ == 2
goto_if_false @CASINO6_18518
214@ = 0.0
215@ = 0.0005
204@ = 3

:CASINO6_18518
if 
  36@ == 1
goto_if_false @CASINO6_18543
51@ = 0

:CASINO6_18543
set_char_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_go_to_coord_any_means 39@ {x} 963.4875 {y} 2119.283 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
clear_attractor 205@
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_18620
41@ += 1
goto @CASINO6_18627

:CASINO6_18620
41@ = 19

:CASINO6_18627
goto @CASINO6_20393

:CASINO6_18634
if 
  is_char_in_area_3d 39@ {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_18696
41@ += 1
goto @CASINO6_18749

:CASINO6_18696
288@ = get_script_task_status 39@ {taskId} 1539
if 
  is_int_lvar_equal_to_constant 288@ == 7
goto_if_false @CASINO6_18749
task_go_to_coord_any_means 39@ {x} 963.4875 {y} 2119.283 {z} 1010.031 {speed} MoveState.Run {vehicle} -1

:CASINO6_18749
goto @CASINO6_20393

:CASINO6_18756
288@ = get_script_task_status 39@ {taskId} 1539
if 
  is_int_lvar_equal_to_constant 288@ == 7
goto_if_false @CASINO6_18917
if 
  locate_char_on_foot_2d 39@ {x} 963.4875 {y} 2119.283 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
goto_if_false @CASINO6_18893
clear_char_tasks 39@
290@ = open_sequence_task 
task_achieve_heading -1 {heading} 104.0
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ += 1
goto @CASINO6_18917

:CASINO6_18893
task_go_to_coord_any_means 39@ {x} 963.4875 {y} 2119.283 {z} 1010.031 {speed} MoveState.Run {vehicle} -1

:CASINO6_18917
goto @CASINO6_20393

:CASINO6_18924
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_19430
if 
  287@ >= 2
goto_if_false @CASINO6_19423
if or
  not is_char_dead 67@
  not is_char_dead 68@
goto_if_false @CASINO6_19002
goto @CASINO6_20393
goto @CASINO6_19423

:CASINO6_19002
if or
  not is_char_dead 57@
  not is_char_dead 58@
  not is_char_dead 59@
  not is_char_dead 60@
  not is_char_dead 61@
  not is_char_dead 62@
goto_if_false @CASINO6_19057
goto @CASINO6_20393
goto @CASINO6_19423

:CASINO6_19057
if or
  not is_char_dead 63@
  not is_char_dead 64@
  not is_char_dead 54@
goto_if_false @CASINO6_19097
goto @CASINO6_20393
goto @CASINO6_19423

:CASINO6_19097
set_lvar_int_to_lvar_int 291@ = 39@
292@ = 0
293@ = 1
if or
  not is_char_dead 65@
  not is_char_dead 66@
goto_if_false @CASINO6_19194
295@ = 942.1362
296@ = 2116.9771
297@ = 1010.031
298@ = 310.9558
41@ = 18
goto @CASINO6_19241

:CASINO6_19194
295@ = 944.9211
296@ = 2138.5659
297@ = 1010.031
298@ = 49.7997
41@ = 19

:CASINO6_19241
gosub @CASINO6_21344
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_19322
if 
  300@ == 1
goto_if_false @CASINO6_19322
set_var_int_to_constant $load_sample = 8238
set_var_text_label s$load_text = 'CAS6_ES'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_19322
if 
  49@ == 0
goto_if_false @CASINO6_19416
52@ = generate_random_int_in_range 0 {max} 101
if 
  50 > 52@
goto_if_false @CASINO6_19388
319@ = 2
318@ = 3
goto @CASINO6_19402

:CASINO6_19388
319@ = 4
318@ = 5

:CASINO6_19402
TIMERA = 0
49@ = 1

:CASINO6_19416
51@ = 0

:CASINO6_19423
goto @CASINO6_19437

:CASINO6_19430
gosub @CASINO6_26367

:CASINO6_19437
goto @CASINO6_20393

:CASINO6_19444
if and
  is_char_dead 65@
  is_char_dead 66@
goto_if_false @CASINO6_19541
set_lvar_int_to_lvar_int 291@ = 39@
292@ = 0
293@ = 1
295@ = 944.9211
296@ = 2138.5659
297@ = 1010.031
298@ = 49.7997
gosub @CASINO6_21344
41@ += 1

:CASINO6_19541
goto @CASINO6_20393

:CASINO6_19548
if 
  287@ > 2
goto_if_false @CASINO6_19892
if or
  not is_char_dead 69@
  not is_char_dead 70@
  not is_char_dead 71@
  not is_char_dead 72@
  not is_char_dead 73@
  not is_char_dead 74@
goto_if_false @CASINO6_19621
goto @CASINO6_20393
goto @CASINO6_19892

:CASINO6_19621
if or
  not is_char_dead 75@
  not is_char_dead 76@
goto_if_false @CASINO6_19656
goto @CASINO6_20393
goto @CASINO6_19892

:CASINO6_19656
set_lvar_int_to_lvar_int 291@ = 39@
292@ = 0
if or
  not is_char_dead 77@
  not is_char_dead 78@
  not is_char_dead 79@
  not is_char_dead 80@
  not is_char_dead 81@
goto_if_false @CASINO6_19768
293@ = 1
295@ = 949.2078
296@ = 2153.6479
297@ = 1010.03
298@ = 0.0
41@ = 20
goto @CASINO6_19822

:CASINO6_19768
293@ = 0
295@ = 965.2232
296@ = 2156.2939
297@ = 1010.031
298@ = 22.0
41@ = 30

:CASINO6_19822
gosub @CASINO6_21344
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_19885
set_var_int_to_constant $load_sample = 8238
set_var_text_label s$load_text = 'CAS6_ES'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_19885
51@ = 0

:CASINO6_19892
goto @CASINO6_20393

:CASINO6_19899
if or
  not is_char_dead 77@
  not is_char_dead 78@
  not is_char_dead 79@
  not is_char_dead 80@
  not is_char_dead 81@
goto_if_false @CASINO6_19949
goto @CASINO6_20393
goto @CASINO6_20025

:CASINO6_19949
set_lvar_int_to_lvar_int 291@ = 39@
292@ = 0
293@ = 0
295@ = 965.2232
296@ = 2156.2939
297@ = 1010.031
298@ = 22.0
gosub @CASINO6_21344
41@ = 30

:CASINO6_20025
goto @CASINO6_20393

:CASINO6_20032
clear_char_tasks 39@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} False
task_achieve_heading -1 {heading} 0.0
task_stand_still -1 {time} 500
task_achieve_heading -1 {heading} 90.0
task_toggle_duck -1 {state} True
close_sequence_task 290@
perform_sequence_task 39@ {sequence} 290@
clear_sequence_task 290@
41@ += 1
goto @CASINO6_20393

:CASINO6_20118
288@ = get_sequence_progress 39@
if 
  288@ == 3
goto_if_false @CASINO6_20386
if 
  161@ == 0
goto_if_false @CASINO6_20379
177@ = 0.0001
161@ = 1
163@ = 0
report_mission_audio_event_at_position 941.9891 {y} 2144.2881 {z} 1016.206 {soundId} ScriptSound.SoundMeatTrackStart
if 
  36@ == 0
goto_if_false @CASINO6_20379
if 
  not is_int_lvar_equal_to_int_lvar 141@ == 140@
goto_if_false @CASINO6_20372
if 
  is_char_in_area_3d $scplayer {leftBottomX} 930.0 {leftBottomY} 2114.25 {leftBottomZ} 1010.0 {rightTopX} 966.0 {rightTopY} 2095.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_20335
set_var_int_to_constant $load_sample = 8234
set_var_text_label s$load_text = 'CAS6_EO'
start_new_script @A_ALAP 2 100 39@ 
goto @CASINO6_20372

:CASINO6_20335
set_var_int_to_constant $load_sample = 8237
set_var_text_label s$load_text = 'CAS6_ER'
start_new_script @A_ALAP 1 100 $scplayer 

:CASINO6_20372
51@ = 0

:CASINO6_20379
41@ = 4

:CASINO6_20386
goto @CASINO6_20393

:CASINO6_20393
return 

:CASINO6_20395
if 
  289@ <> -2
goto_if_false @CASINO6_20541
if 
  287@ >= 2
goto_if_false @CASINO6_20541
if 
  204@ == 0
goto_if_false @CASINO6_20541
if or
  is_char_in_area_3d $scplayer {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
  is_char_in_area_3d 39@ {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_20541
gosub @CASINO6_20543

:CASINO6_20541
return 

:CASINO6_20543
if 
  289@ == -1
goto_if_false @CASINO6_20798
if 
  not is_char_dead 67@
goto_if_false @CASINO6_20591
289@ = 14
goto @CASINO6_20628

:CASINO6_20591
if 
  not is_char_dead 68@
goto_if_false @CASINO6_20621
289@ = 15
goto @CASINO6_20628

:CASINO6_20621
289@ = -2

:CASINO6_20628
if 
  289@ <> -2
goto_if_false @CASINO6_20791
if 
  204@ == 0
goto_if_false @CASINO6_20784
205@ = add_attractor 950.9462 {y} 2114.9719 {z} 1011.5 {angle} 180.0 {_p5} 15.0 {sequence} 206@
add_pedtype_as_attractor_user 205@ {pedType} PedType.Mission2
clear_char_tasks 53@(289@,29i)
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_go_to_coord_any_means -1 {x} 950.2319 {y} 2115.927 {z} 1010.031 {speed} MoveState.Run {vehicle} -1
task_use_attractor -1 {attractor} 205@
close_sequence_task 290@
perform_sequence_task 53@(289@,29i) {sequence} 290@
clear_sequence_task 290@
goto @CASINO6_20791

:CASINO6_20784
289@ = -1

:CASINO6_20791
goto @CASINO6_21010

:CASINO6_20798
if 
  is_char_dead 53@(289@,29i)
goto_if_false @CASINO6_20837
clear_attractor 205@
289@ = -1
goto @CASINO6_21010

:CASINO6_20837
if 
  is_char_at_scripted_attractor 53@(289@,29i) {handle} 205@
goto_if_false @CASINO6_20952
if or
  204@ == 0
  204@ == 3
goto_if_false @CASINO6_20912
214@ = 0.0
215@ = -0.0005
204@ = 1

:CASINO6_20912
clear_char_tasks 53@(289@,29i)
set_char_decision_maker 53@(289@,29i) {handleOrTemplate} 35@
clear_attractor 205@
289@ = -1
goto @CASINO6_21010

:CASINO6_20952
if or
  204@ == 1
  204@ == 2
goto_if_false @CASINO6_21010
clear_char_tasks 53@(289@,29i)
set_char_decision_maker 53@(289@,29i) {handleOrTemplate} 35@
clear_attractor 205@
289@ = -1

:CASINO6_21010
return 

:CASINO6_21012
clear_char_tasks 291@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 295@ {y} 296@ {z} 297@ {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} 293@
task_stay_in_same_place -1 {state} True
if 
  298@ <> -1.0
goto_if_false @CASINO6_21093
task_achieve_heading -1 {heading} 298@

:CASINO6_21093
task_kill_char_on_foot -1 {target} $scplayer
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 291@ {sequence} 290@
clear_sequence_task 290@
return 

:CASINO6_21127
clear_char_tasks 291@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 295@ {y} 296@ {z} 297@ {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} 293@
task_stay_in_same_place -1 {state} True
if 
  298@ <> -1.0
goto_if_false @CASINO6_21208
task_achieve_heading -1 {heading} 298@

:CASINO6_21208
task_kill_char_on_foot -1 {target} 39@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 291@ {sequence} 290@
clear_sequence_task 290@
return 

:CASINO6_21242
clear_char_tasks 291@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_toggle_duck -1 {state} 292@
task_stay_in_same_place -1 {state} False
if 
  295@ <> -1.0
goto_if_false @CASINO6_21310
task_go_to_coord_any_means -1 {x} 295@ {y} 296@ {z} 297@ {speed} MoveState.Run {vehicle} -1

:CASINO6_21310
task_kill_char_on_foot -1 {target} 294@
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 291@ {sequence} 290@
clear_sequence_task 290@
return 

:CASINO6_21344
clear_char_tasks 291@
290@ = open_sequence_task 
task_set_char_decision_maker -1 {handleOrTemplate} 34@
task_stay_in_same_place -1 {state} False
task_go_to_coord_any_means -1 {x} 295@ {y} 296@ {z} 297@ {speed} MoveState.Run {vehicle} -1
task_toggle_duck -1 {state} 293@
task_stay_in_same_place -1 {state} True
if 
  298@ <> -1.0
goto_if_false @CASINO6_21425
task_achieve_heading -1 {heading} 298@

:CASINO6_21425
task_set_char_decision_maker -1 {handleOrTemplate} 35@
close_sequence_task 290@
perform_sequence_task 291@ {sequence} 290@
clear_sequence_task 290@
return 

:CASINO6_21452
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @CASINO6_21484
177@ = 0.0001
goto @CASINO6_21509

:CASINO6_21484
if 
is_ps2_keyboard_key_pressed 50
goto_if_false @CASINO6_21509
177@ = -0.0001

:CASINO6_21509
add_timed_float_lvar_to_float_lvar 176@ +=@ 177@
if 
  176@ > 0.06
goto_if_false @CASINO6_21555
176@ = 0.06
goto @CASINO6_21586

:CASINO6_21555
if 
  0.0 > 176@
goto_if_false @CASINO6_21586
176@ = 0.0

:CASINO6_21586
if or
  161@ == 1
  176@ > 0.0
goto_if_false @CASINO6_23453
216@ = 0

:CASINO6_21621
if 
  6 > 216@
goto_if_false @CASINO6_23453
$x, $y, $z = get_object_coordinates 154@(216@,6i)
set_lvar_int_to_lvar_int 217@ = 148@(216@,6i)
switch_start 217@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CASINO6_23421 {caseNum1} 0 {caseLabel1} @CASINO6_21797 {caseNum2} 1 {caseLabel2} @CASINO6_21853 {caseNum3} 2 {caseLabel3} @CASINO6_22203 {caseNum4} 3 {caseLabel4} @CASINO6_22259 {caseNum5} 4 {caseLabel5} @CASINO6_22609 {caseNum6} 5 {caseLabel6} @CASINO6_22665 {caseNum7} 6 {caseLabel7} @CASINO6_23015
switch_continued 7 {caseLabel1} @CASINO6_23071 {caseNum2} -1 {caseLabel2} @CASINO6_23421 {caseNum3} -1 {caseLabel3} @CASINO6_23421 {caseNum4} -1 {caseLabel4} @CASINO6_23421 {caseNum5} -1 {caseLabel5} @CASINO6_23421 {caseNum6} -1 {caseLabel6} @CASINO6_23421 {caseNum7} -1 {caseLabel7} @CASINO6_23421 {caseNum8} -1 {caseLabel8} @CASINO6_23421 {caseNum9} -1 {caseLabel9} @CASINO6_23421

:CASINO6_21797
if 
  is_float_var_greater_or_equal_to_float_lvar $x >= 181@(217@,8f)
goto_if_false @CASINO6_21838
148@(216@,6i) += 1
goto @CASINO6_21853

:CASINO6_21838
add_float_lvar_to_float_var $x += 176@
goto @CASINO6_23421

:CASINO6_21853
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_21918
164@(216@,6f) = 0.0
sub_float_lvar_from_float_var $y -= 176@
148@(216@,6i) += 1
goto @CASINO6_22196

:CASINO6_21918
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
add_float_lvar_to_float_lvar 164@(216@,6f) += 179@
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_21985
164@(216@,6f) = 180.0

:CASINO6_21985
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22043
170@(216@,6f) += 360.0
goto @CASINO6_22082

:CASINO6_22043
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22082
170@(216@,6f) += -360.0

:CASINO6_22082
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 181@
sub_float_lvar_from_float_var $x -= 200@
set_var_float_to_lvar_float $y = 190@
add_float_lvar_to_float_var $y += 201@

:CASINO6_22196
goto @CASINO6_23421

:CASINO6_22203
if 
  is_float_lvar_greater_or_equal_to_float_var 189@(217@,8f) >= $y
goto_if_false @CASINO6_22244
148@(216@,6i) += 1
goto @CASINO6_22259

:CASINO6_22244
sub_float_lvar_from_float_var $y -= 176@
goto @CASINO6_23421

:CASINO6_22259
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22324
164@(216@,6f) = 90.0
sub_float_lvar_from_float_var $x -= 176@
148@(216@,6i) += 1
goto @CASINO6_22602

:CASINO6_22324
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
sub_float_lvar_from_float_lvar 164@(216@,6f) -= 179@
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_22391
164@(216@,6f) = -90.0

:CASINO6_22391
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22449
170@(216@,6f) += 360.0
goto @CASINO6_22488

:CASINO6_22449
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22488
170@(216@,6f) += -360.0

:CASINO6_22488
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 184@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 191@
add_float_lvar_to_float_var $y += 201@

:CASINO6_22602
goto @CASINO6_23421

:CASINO6_22609
if 
  is_float_lvar_greater_or_equal_to_float_var 181@(217@,8f) >= $x
goto_if_false @CASINO6_22650
148@(216@,6i) += 1
goto @CASINO6_22665

:CASINO6_22650
sub_float_lvar_from_float_var $x -= 176@
goto @CASINO6_23421

:CASINO6_22665
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_22730
164@(216@,6f) = 0.0
add_float_lvar_to_float_var $y += 176@
148@(216@,6i) += 1
goto @CASINO6_23008

:CASINO6_22730
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
add_float_lvar_to_float_lvar 164@(216@,6f) += 179@
if 
  164@(216@,6f) >= 180.0
goto_if_false @CASINO6_22797
164@(216@,6f) = 180.0

:CASINO6_22797
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_22855
170@(216@,6f) += 360.0
goto @CASINO6_22894

:CASINO6_22855
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_22894
170@(216@,6f) += -360.0

:CASINO6_22894
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 185@
add_float_lvar_to_float_var $x += 200@
set_var_float_to_lvar_float $y = 194@
sub_float_lvar_from_float_var $y -= 201@

:CASINO6_23008
goto @CASINO6_23421

:CASINO6_23015
if 
  is_float_var_greater_or_equal_to_float_lvar $y >= 189@(217@,8f)
goto_if_false @CASINO6_23056
148@(216@,6i) += 1
goto @CASINO6_23071

:CASINO6_23056
add_float_lvar_to_float_var $y += 176@
goto @CASINO6_23421

:CASINO6_23071
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_23136
164@(216@,6f) = 90.0
add_float_lvar_to_float_var $x += 176@
148@(216@,6i) = 0
goto @CASINO6_23414

:CASINO6_23136
set_lvar_float_to_lvar_float 179@ = 176@
div_float_lvar_by_float_lvar 179@ /= 178@
sub_float_lvar_from_float_lvar 164@(216@,6f) -= 179@
if 
  -90.0 >= 164@(216@,6f)
goto_if_false @CASINO6_23203
164@(216@,6f) = -90.0

:CASINO6_23203
sub_float_lvar_from_float_lvar 170@(216@,6f) -= 179@
if 
  -180.0 >= 170@(216@,6f)
goto_if_false @CASINO6_23261
170@(216@,6f) += 360.0
goto @CASINO6_23300

:CASINO6_23261
if 
  170@(216@,6f) >= 180.0
goto_if_false @CASINO6_23300
170@(216@,6f) += -360.0

:CASINO6_23300
set_object_rotation 154@(216@,6i) {x} 0.0 {y} 0.0 {z} 170@(216@,6f)
198@ = cos 164@(216@,6f)
199@ = sin 164@(216@,6f)
set_lvar_float_to_lvar_float 200@ = 180@
mult_float_lvar_by_float_lvar 200@ *= 198@
set_lvar_float_to_lvar_float 201@ = 180@
mult_float_lvar_by_float_lvar 201@ *= 199@
set_var_float_to_lvar_float $x = 188@
sub_float_lvar_from_float_var $x -= 200@
set_var_float_to_lvar_float $y = 195@
sub_float_lvar_from_float_var $y -= 201@

:CASINO6_23414
goto @CASINO6_23421

:CASINO6_23421
set_object_coordinates_and_velocity 154@(216@,6i) {x} $x {y} $y {z} $z
216@ += 1
goto @CASINO6_21621

:CASINO6_23453
if 
  163@ > 500
goto_if_false @CASINO6_23633
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CASINO6_23633
if 
  is_char_in_area_2d $scplayer {leftBottomX} 945.7303 {leftBottomY} 2113.197 {rightTopX} 947.412 {rightTopY} 2112.3191 {drawSphere} False
goto_if_false @CASINO6_23633
if 
  161@ == 0
goto_if_false @CASINO6_23589
177@ = 0.0001
161@ = 1
report_mission_audio_event_at_position 941.9891 {y} 2144.2881 {z} 1016.206 {soundId} ScriptSound.SoundMeatTrackStart
goto @CASINO6_23626

:CASINO6_23589
177@ = -0.0001
161@ = 0
report_mission_audio_event_at_position 941.9891 {y} 2144.2881 {z} 1016.206 {soundId} ScriptSound.SoundMeatTrackStop

:CASINO6_23626
163@ = 0

:CASINO6_23633
return 

:CASINO6_23635
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_25124 {caseNum1} 0 {caseLabel1} @CASINO6_23698 {caseNum2} 1 {caseLabel2} @CASINO6_23787 {caseNum3} 2 {caseLabel3} @CASINO6_24411 {caseNum4} 3 {caseLabel4} @CASINO6_24942 {caseNum5} -1 {caseLabel5} @CASINO6_25124 {caseNum6} -1 {caseLabel6} @CASINO6_25124 {caseNum7} -1 {caseLabel7} @CASINO6_25124

:CASINO6_23698
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CASINO6_23780
if 
  is_char_in_area_2d $scplayer {leftBottomX} 951.954 {leftBottomY} 2115.7439 {rightTopX} 949.9608 {rightTopY} 2114.699 {drawSphere} False
goto_if_false @CASINO6_23780
214@ = 0.0
215@ = -0.0005
204@ += 1

:CASINO6_23780
goto @CASINO6_25124

:CASINO6_23787
if 
  299@ == 0
goto_if_false @CASINO6_23820
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerOpen
299@ = 1

:CASINO6_23820
$x, $y, $z = get_object_coordinates 202@
set_lvar_float_to_var_float 301@ = $y
301@ -= 2.5
if 
  locate_char_on_foot_2d $scplayer {x} $x {y} 301@ {xRadius} 0.8 {yRadius} 0.8 {drawSphere} True
goto_if_false @CASINO6_23893
goto @CASINO6_25124

:CASINO6_23893
add_float_lvar_to_float_lvar 214@ += 215@
if 
  -0.4 > 214@
goto_if_false @CASINO6_23932
214@ = -0.4

:CASINO6_23932
add_float_lvar_to_float_var $y += 214@
if 
  2117.448 >= $y
goto_if_false @CASINO6_24390
$y = 2117.448
204@ += 1
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerClose
299@ = 0
if 
  is_char_in_area_3d $scplayer {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_24062
36@ = 1
207@ = 0
goto @CASINO6_24069

:CASINO6_24062
36@ = 0

:CASINO6_24069
if 
  is_char_in_area_3d 39@ {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_24242
44@ = 1
207@ = 0
if 
  36@ == 1
goto_if_false @CASINO6_24177
227@ = 2
set_lvar_text_label 228@s = 'CAS6_F2'
goto @CASINO6_24235

:CASINO6_24177
set_var_int_to_constant $load_sample = 8242
set_var_text_label s$load_text = 'CAS6_FC'
start_new_script @A_ALAP 2 102 39@ 
51@ = 0
303@ = 1
TIMERB = 0

:CASINO6_24235
goto @CASINO6_24383

:CASINO6_24242
if 
  36@ == 1
goto_if_false @CASINO6_24351
set_var_int_to_constant $load_sample = 8248
set_var_text_label s$load_text = 'CAS6_FP'
start_new_script @A_ALAP 1 102 $scplayer 
51@ = 0
set_char_proofs 39@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  41@ >= 15
goto_if_false @CASINO6_24344
41@ = 13

:CASINO6_24344
goto @CASINO6_24376

:CASINO6_24351
if 
  41@ == 15
goto_if_false @CASINO6_24376
41@ = 13

:CASINO6_24376
44@ = 0

:CASINO6_24383
goto @CASINO6_24390

:CASINO6_24390
set_object_coordinates_and_velocity 202@ {x} $x {y} $y {z} $z
goto @CASINO6_25124

:CASINO6_24411
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CASINO6_24935
if 
  is_char_in_area_2d $scplayer {leftBottomX} 951.954 {leftBottomY} 2115.7439 {rightTopX} 949.9608 {rightTopY} 2114.699 {drawSphere} False
goto_if_false @CASINO6_24935
214@ = 0.0
215@ = 0.0005
204@ += 1
if 
  44@ == 1
goto_if_false @CASINO6_24921
if or
  not is_char_dead 67@
  not is_char_dead 68@
goto_if_false @CASINO6_24590
set_var_int_to_constant $load_sample = 8278
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
300@ = 1
51@ = 0
goto @CASINO6_24921

:CASINO6_24590
if or
  not is_char_dead 57@
  not is_char_dead 58@
  not is_char_dead 59@
  not is_char_dead 60@
  not is_char_dead 61@
  not is_char_dead 62@
goto_if_false @CASINO6_24689
set_var_int_to_constant $load_sample = 8278
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
300@ = 1
51@ = 0
goto @CASINO6_24921

:CASINO6_24689
if or
  not is_char_dead 63@
  not is_char_dead 64@
  not is_char_dead 54@
goto_if_false @CASINO6_24773
set_var_int_to_constant $load_sample = 8278
set_var_text_label s$load_text = 'CAS6_LD'
start_new_script @A_ALAP 1 102 $scplayer 
300@ = 1
51@ = 0
goto @CASINO6_24921

:CASINO6_24773
52@ = generate_random_int_in_range 0 {max} 151
if 
  50 > 52@
goto_if_false @CASINO6_24830
set_var_int_to_constant $load_sample = 8277
set_var_text_label s$load_text = 'CAS6_LC'
goto @CASINO6_24899

:CASINO6_24830
if 
  52@ > 100
goto_if_false @CASINO6_24877
set_var_int_to_constant $load_sample = 8244
set_var_text_label s$load_text = 'CAS6_FK'
goto @CASINO6_24899

:CASINO6_24877
set_var_int_to_constant $load_sample = 8276
set_var_text_label s$load_text = 'CAS6_LB'

:CASINO6_24899
start_new_script @A_ALAP 2 102 39@ 
51@ = 0

:CASINO6_24921
36@ = 0
44@ = 0

:CASINO6_24935
goto @CASINO6_25124

:CASINO6_24942
if 
  299@ == 0
goto_if_false @CASINO6_24975
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerOpen
299@ = 1

:CASINO6_24975
$x, $y, $z = get_object_coordinates 202@
add_float_lvar_to_float_lvar 214@ += 215@
if 
  214@ > 0.4
goto_if_false @CASINO6_25028
214@ = 0.4

:CASINO6_25028
add_float_lvar_to_float_var $y += 214@
if 
  $y >= 2121.6479
goto_if_false @CASINO6_25089
$y = 2121.6479
204@ = 0
report_mission_audio_event_at_object 202@ {soundId} ScriptSound.SoundFreezerClose
299@ = 0

:CASINO6_25089
set_object_coordinates_and_velocity 202@ {x} $x {y} $y {z} $z
36@ = 0
44@ = 0
goto @CASINO6_25124

:CASINO6_25124
return 

:CASINO6_25126
if 
  36@ == 1
goto_if_false @CASINO6_25254
if 
  207@ > 1500
goto_if_false @CASINO6_25247
216@ = get_char_health $scplayer
216@ -= 3
if 
  0 >= 216@
goto_if_false @CASINO6_25231
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F3'
set_char_health $scplayer {health} 0
goto @CASINO6_25240

:CASINO6_25231
damage_char $scplayer {amount} 3 {damageArmour} False

:CASINO6_25240
207@ = 0

:CASINO6_25247
goto @CASINO6_25375

:CASINO6_25254
if 
  44@ == 1
goto_if_false @CASINO6_25375
if 
  207@ > 1500
goto_if_false @CASINO6_25375
216@ = get_char_health 39@
216@ -= 6
if 
  0 >= 216@
goto_if_false @CASINO6_25359
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F1'
set_char_health 39@ {health} 0
goto @CASINO6_25368

:CASINO6_25359
damage_char 39@ {amount} 6 {damageArmour} False

:CASINO6_25368
207@ = 0

:CASINO6_25375
return 

:CASINO6_25377
switch_start 302@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO6_25552 {caseNum1} 0 {caseLabel1} @CASINO6_25440 {caseNum2} 1 {caseLabel2} @CASINO6_25496 {caseNum3} -1 {caseLabel3} @CASINO6_25552 {caseNum4} -1 {caseLabel4} @CASINO6_25552 {caseNum5} -1 {caseLabel5} @CASINO6_25552 {caseNum6} -1 {caseLabel6} @CASINO6_25552 {caseNum7} -1 {caseLabel7} @CASINO6_25552

:CASINO6_25440
if 
  locate_char_on_foot_2d $scplayer {x} 941.5 {y} 2114.0 {xRadius} 9.0 {yRadius} 9.0 {drawSphere} False
goto_if_false @CASINO6_25489
set_heathaze_effect True
302@ += 1

:CASINO6_25489
goto @CASINO6_25552

:CASINO6_25496
if 
  not locate_char_on_foot_2d $scplayer {x} 941.5 {y} 2114.0 {xRadius} 11.0 {yRadius} 11.0 {drawSphere} False
goto_if_false @CASINO6_25545
set_heathaze_effect False
302@ -= 1

:CASINO6_25545
goto @CASINO6_25552

:CASINO6_25552
return 

:CASINO6_25554
switch_start 319@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @CASINO6_26365 {caseNum1} 0 {caseLabel1} @CASINO6_25682 {caseNum2} 1 {caseLabel2} @CASINO6_25757 {caseNum3} 2 {caseLabel3} @CASINO6_25804 {caseNum4} 3 {caseLabel4} @CASINO6_25926 {caseNum5} 4 {caseLabel5} @CASINO6_25973 {caseNum6} 5 {caseLabel6} @CASINO6_26095 {caseNum7} 6 {caseLabel7} @CASINO6_26142
switch_continued 7 {caseLabel1} @CASINO6_26243 {caseNum2} 8 {caseLabel2} @CASINO6_26290 {caseNum3} -1 {caseLabel3} @CASINO6_26365 {caseNum4} -1 {caseLabel4} @CASINO6_26365 {caseNum5} -1 {caseLabel5} @CASINO6_26365 {caseNum6} -1 {caseLabel6} @CASINO6_26365 {caseNum7} -1 {caseLabel7} @CASINO6_26365 {caseNum8} -1 {caseLabel8} @CASINO6_26365 {caseNum9} -1 {caseLabel9} @CASINO6_26365

:CASINO6_25682
if 
  3 > 318@
goto_if_false @CASINO6_25757
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 70 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_25757
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25797
319@ = 0
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25797
goto @CASINO6_26365

:CASINO6_25804
if 
  5 > 318@
goto_if_false @CASINO6_25905
if 
  TIMERA > 2500
goto_if_false @CASINO6_25898
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 70 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_25898
goto @CASINO6_25926

:CASINO6_25905
TIMERA = 0
319@ = 6
318@ = 7

:CASINO6_25926
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_25966
319@ = 2
$SLOT_status($preload_slot,2i) = -4

:CASINO6_25966
goto @CASINO6_26365

:CASINO6_25973
if 
  7 > 318@
goto_if_false @CASINO6_26074
if 
  TIMERA > 2500
goto_if_false @CASINO6_26067
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 70 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_26067
goto @CASINO6_26095

:CASINO6_26074
TIMERA = 0
319@ = 6
318@ = 7

:CASINO6_26095
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_26135
319@ = 4
$SLOT_status($preload_slot,2i) = -4

:CASINO6_26135
goto @CASINO6_26365

:CASINO6_26142
if 
  13 > 318@
goto_if_false @CASINO6_26243
if 
  TIMERA > 7000
goto_if_false @CASINO6_26243
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 70 343@(318@,23i) 
318@ += 1
319@ += 1
TIMERA = 0

:CASINO6_26243
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_26283
319@ = 6
$SLOT_status($preload_slot,2i) = -4

:CASINO6_26283
goto @CASINO6_26365

:CASINO6_26290
if 
  TIMERA > 9000
goto_if_false @CASINO6_26365
set_var_int_to_lvar_int $load_sample = 333@
set_var_text_label s$load_text = 392@s
start_new_script @A_ALAP 2 70 343@(318@,23i) 
318@ += 1
319@ += 1
TIMERA = 0

:CASINO6_26365
return 

:CASINO6_26367
if and
  303@ == 1
  TIMERB > 20000
goto_if_false @CASINO6_26513
if 
  304@ == 0
goto_if_false @CASINO6_26462
set_var_int_to_constant $load_sample = 8243
set_var_text_label s$load_text = 'CAS6_FF'
start_new_script @A_ALAP 2 75 39@ 
304@ = 1
goto @CASINO6_26506

:CASINO6_26462
set_var_int_to_constant $load_sample = 8275
set_var_text_label s$load_text = 'CAS6_LA'
start_new_script @A_ALAP 2 75 $scplayer 
304@ = 0

:CASINO6_26506
TIMERB = 0

:CASINO6_26513
return 

:CASINO6_26515
switch_start 305@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_27223 {caseNum1} 0 {caseLabel1} @CASINO6_26578 {caseNum2} 1 {caseLabel2} @CASINO6_26662 {caseNum3} 2 {caseLabel3} @CASINO6_26738 {caseNum4} 3 {caseLabel4} @CASINO6_26913 {caseNum5} 4 {caseLabel5} @CASINO6_26994 {caseNum6} -1 {caseLabel6} @CASINO6_27223 {caseNum7} -1 {caseLabel7} @CASINO6_27223

:CASINO6_26578
if 
  is_char_in_area_2d $scplayer {leftBottomX} 950.4901 {leftBottomY} 2113.2041 {rightTopX} 940.3504 {rightTopY} 2103.8401 {drawSphere} False
goto_if_false @CASINO6_26655
print_help_forever 'CAS6_H0'
306@ = 0
307@ = 0
308@ = 0
305@ += 1

:CASINO6_26655
goto @CASINO6_27223

:CASINO6_26662
if 
  306@ > 8000
goto_if_false @CASINO6_26697
clear_help 
305@ += 1
goto @CASINO6_26731

:CASINO6_26697
if or
  36@ == 1
  44@ == 1
goto_if_false @CASINO6_26731
clear_help 
305@ += 1

:CASINO6_26731
goto @CASINO6_27223

:CASINO6_26738
if and
  36@ == 1
  307@ == 0
goto_if_false @CASINO6_26813
if 
  44@ <> 1
goto_if_false @CASINO6_26806
print_help_forever 'CAS6_H3'
306@ = 0
305@ = 3

:CASINO6_26806
goto @CASINO6_26906

:CASINO6_26813
if 
  44@ == 1
goto_if_false @CASINO6_26906
if 
  308@ == 0
goto_if_false @CASINO6_26881
print_help_forever 'CAS6_H1'
306@ = 0
305@ = 4
goto @CASINO6_26906

:CASINO6_26881
if 
  308@ == 1
goto_if_false @CASINO6_26906
305@ = 4

:CASINO6_26906
goto @CASINO6_27223

:CASINO6_26913
if or
  306@ > 8000
  36@ == 0
goto_if_false @CASINO6_26987
clear_help 
307@ = 1
if 
  308@ == 3
goto_if_false @CASINO6_26980
305@ = -1
goto @CASINO6_26987

:CASINO6_26980
305@ = 2

:CASINO6_26987
goto @CASINO6_27223

:CASINO6_26994
if 
  308@ == 0
goto_if_false @CASINO6_27106
if 
  306@ > 8000
goto_if_false @CASINO6_27065
clear_help 
print_help_forever 'CAS6_H2'
306@ = 0
308@ = 2
goto @CASINO6_27099

:CASINO6_27065
if 
  44@ == 0
goto_if_false @CASINO6_27099
clear_help 
308@ = 1
305@ = 2

:CASINO6_27099
goto @CASINO6_27216

:CASINO6_27106
if 
  308@ == 1
goto_if_false @CASINO6_27156
print_help_forever 'CAS6_H2'
306@ = 0
308@ = 2
goto @CASINO6_27216

:CASINO6_27156
if 
  308@ == 2
goto_if_false @CASINO6_27216
if or
  306@ > 8000
  44@ == 0
goto_if_false @CASINO6_27216
clear_help 
308@ = 3
305@ = 2

:CASINO6_27216
goto @CASINO6_27223

:CASINO6_27223
return 

:CASINO6_27225
switch_start 309@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_27813 {caseNum1} 0 {caseLabel1} @CASINO6_27288 {caseNum2} 1 {caseLabel2} @CASINO6_27522 {caseNum3} 2 {caseLabel3} @CASINO6_27639 {caseNum4} 3 {caseLabel4} @CASINO6_27756 {caseNum5} -1 {caseLabel5} @CASINO6_27813 {caseNum6} -1 {caseLabel6} @CASINO6_27813 {caseNum7} -1 {caseLabel7} @CASINO6_27813

:CASINO6_27288
if 
  44@ == 1
goto_if_false @CASINO6_27336
print_now 'CAS6_G2' {time} 8000 {flag} 1
309@ = 1
goto @CASINO6_27515

:CASINO6_27336
if 
  36@ == 0
goto_if_false @CASINO6_27492
print_now 'CAS6_G1' {time} 8000 {flag} 1
if 
  not does_blip_exist 218@
goto_if_false @CASINO6_27426
218@ = add_blip_for_coord 964.788 {y} 2159.5039 {z} 1011.055
set_blip_entry_exit 218@ {x} 964.788 {y} 2159.5039 {radius} 4.0

:CASINO6_27426
switch_entry_exit 'ABATOIR' {state} True
309@ = 3
if 
  50@ == 0
goto_if_false @CASINO6_27485
319@ = 8
TIMERA = 0
50@ = 1

:CASINO6_27485
goto @CASINO6_27515

:CASINO6_27492
print_now 'CAS6_G3' {time} 8000 {flag} 1
309@ = 2

:CASINO6_27515
goto @CASINO6_27813

:CASINO6_27522
if 
  44@ == 0
goto_if_false @CASINO6_27632
print_now 'CAS6_G4' {time} 8000 {flag} 1
if 
  not does_blip_exist 218@
goto_if_false @CASINO6_27612
218@ = add_blip_for_coord 964.788 {y} 2159.5039 {z} 1011.055
set_blip_entry_exit 218@ {x} 964.788 {y} 2159.5039 {radius} 4.0

:CASINO6_27612
switch_entry_exit 'ABATOIR' {state} True
309@ = 3

:CASINO6_27632
goto @CASINO6_27813

:CASINO6_27639
if 
  36@ == 0
goto_if_false @CASINO6_27749
print_now 'CAS6_G4' {time} 8000 {flag} 1
if 
  not does_blip_exist 218@
goto_if_false @CASINO6_27729
218@ = add_blip_for_coord 964.788 {y} 2159.5039 {z} 1011.055
set_blip_entry_exit 218@ {x} 964.788 {y} 2159.5039 {radius} 4.0

:CASINO6_27729
switch_entry_exit 'ABATOIR' {state} True
309@ = 3

:CASINO6_27749
goto @CASINO6_27813

:CASINO6_27756
if or
  36@ == 1
  44@ == 1
goto_if_false @CASINO6_27806
remove_blip 218@
switch_entry_exit 'ABATOIR' {state} False
309@ = 0

:CASINO6_27806
goto @CASINO6_27813

:CASINO6_27813
return 

:CASINO6_27815
216@ = 0

:CASINO6_27822
if 
  6 > 216@
goto_if_false @CASINO6_27881
mark_object_as_no_longer_needed 154@(216@,6i)
mark_object_as_no_longer_needed 142@(216@,6i)
mark_object_as_no_longer_needed 208@(216@,6i)
216@ += 1
goto @CASINO6_27822

:CASINO6_27881
remove_pickup 37@
remove_pickup 38@
mark_object_as_no_longer_needed 43@
mark_object_as_no_longer_needed 160@
mark_object_as_no_longer_needed 202@
mark_object_as_no_longer_needed 203@
mark_object_as_no_longer_needed 254@
mark_object_as_no_longer_needed 255@
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed #AB_CARCASS
mark_model_as_no_longer_needed #AB_HOOK
mark_model_as_no_longer_needed #FREEZER_DOOR
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 341
mark_model_as_no_longer_needed 366
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed #CJ_MEAT_BAG_1
mark_model_as_no_longer_needed #CJ_MEAT_1
mark_model_as_no_longer_needed #CJ_MEAT_2
return 

:CASINO6_28003
286@ = 1

:CASINO6_28010
if 
  286@ == 1
goto_if_false @CASINO6_28047
wait 0
286@ = get_char_area_visible $scplayer
goto @CASINO6_28010

:CASINO6_28047
do_fade 0 {direction} Fade.Out

:CASINO6_28053
if 
  get_fading_status 
goto_if_false @CASINO6_28077
wait 0
goto @CASINO6_28053

:CASINO6_28077
disable_player_sprint $player1 {state} False
clear_onscreen_counter $rosenbergs_health_C6
remove_blip 40@
clear_help 
set_radar_zoom 0
gosub @CASINO6_27815
switch_entry_exit 'ABATOIR' {state} False
remove_blip 218@
218@ = add_blip_for_coord 2165.1851 {y} 1692.317 {z} 9.8203
clear_wanted_level $player1
if 
  not is_char_dead 39@
goto_if_false @CASINO6_28248
set_char_coordinates 39@ {x} 970.7965 {y} 2155.644 {z} 9.8203
set_char_heading 39@ {heading} 295.3334
clear_char_tasks_immediately 39@
set_char_area_visible 39@ {areaId} 0
set_char_never_leaves_group 39@ {state} True
set_group_member 310@ {handle} 39@
remove_all_char_weapons 39@
remove_blip 40@
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True

:CASINO6_28248
if 
  233@ == 1
goto_if_false @CASINO6_28503
request_model 234@

:CASINO6_28271
if 
  not has_model_loaded 234@
goto_if_false @CASINO6_28298
wait 0
goto @CASINO6_28271

:CASINO6_28298
316@ = create_car 234@ {x} 977.1431 {y} 2164.063 {z} 9.8203
set_car_heading 316@ {heading} 194.2554
change_car_colour 316@ {color1} 235@ {color2} 236@
set_extra_car_colours 316@ {color3} 237@ {color4} 238@
216@ = 0

:CASINO6_28360
if 
  4 > 216@
goto_if_false @CASINO6_28419
if 
  is_local_var_bit_set_lvar 239@ {var_bitIndex} 216@
goto_if_false @CASINO6_28405
burst_car_tyre 316@ {tireId} 216@

:CASINO6_28405
216@ += 1
goto @CASINO6_28360

:CASINO6_28419
if 
  240@ <> -1
goto_if_false @CASINO6_28503
216@ = 0

:CASINO6_28444
if 
  6 > 216@
goto_if_false @CASINO6_28503
if 
  is_local_var_bit_set_lvar 240@ {var_bitIndex} 216@
goto_if_false @CASINO6_28489
damage_car_door 316@ {door} 216@

:CASINO6_28489
216@ += 1
goto @CASINO6_28444

:CASINO6_28503
do_fade 500 {direction} Fade.In
print_now 'CAS6_G5' {time} 8000 {flag} 1
317@ = 0
clear_wanted_level $player1
set_max_wanted_level 6
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_28567
$SLOT_status[0] = -2

:CASINO6_28567
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_28592
$SLOT_status[1] = -2

:CASINO6_28592
set_lvar_text_label 366@s = 'CAS6_HA'
set_lvar_int_to_constant 320@ = 8253
set_lvar_int_to_lvar_int 343@ = 39@
set_lvar_text_label 368@s = 'CAS6_HB'
set_lvar_int_to_constant 321@ = 8254
set_lvar_int_to_lvar_int 344@ = 39@
set_lvar_text_label 370@s = 'CAS6_HC'
set_lvar_int_to_constant 322@ = 8255
set_lvar_int_to_lvar_int 345@ = 39@
set_lvar_text_label 372@s = 'CAS6_HD'
set_lvar_int_to_constant 323@ = 8256
set_lvar_int_to_var_int 346@ = $scplayer
set_lvar_text_label 374@s = 'CAS6_JA'
set_lvar_int_to_constant 324@ = 8257
set_lvar_int_to_lvar_int 347@ = 39@
set_lvar_text_label 376@s = 'CAS6_JB'
set_lvar_int_to_constant 325@ = 8258
set_lvar_int_to_lvar_int 348@ = 39@
set_lvar_text_label 378@s = 'CAS6_JC'
set_lvar_int_to_constant 326@ = 8259
set_lvar_int_to_lvar_int 349@ = 39@
set_lvar_text_label 380@s = 'CAS6_JD'
set_lvar_int_to_constant 327@ = 8260
set_lvar_int_to_var_int 350@ = $scplayer
set_lvar_text_label 382@s = 'CAS6_JE'
set_lvar_int_to_constant 328@ = 8261
set_lvar_int_to_lvar_int 351@ = 39@
set_lvar_text_label 384@s = 'CAS6_JF'
set_lvar_int_to_constant 329@ = 8262
set_lvar_int_to_lvar_int 352@ = 39@
set_lvar_text_label 386@s = 'CAS6_JG'
set_lvar_int_to_constant 330@ = 8263
set_lvar_int_to_lvar_int 353@ = 39@
set_lvar_text_label 388@s = 'CAS6_JJ'
set_lvar_int_to_constant 331@ = 8264
set_lvar_int_to_var_int 354@ = $scplayer
set_lvar_text_label 390@s = 'CAS6_JK'
set_lvar_int_to_constant 332@ = 8265
set_lvar_int_to_var_int 355@ = $scplayer
set_lvar_text_label 392@s = 'CAS6_JL'
set_lvar_int_to_constant 333@ = 8266
set_lvar_int_to_var_int 356@ = $scplayer
set_lvar_text_label 394@s = 'CAS6_JM'
set_lvar_int_to_constant 334@ = 8267
set_lvar_int_to_lvar_int 357@ = 39@
set_lvar_text_label 396@s = 'CAS6_JN'
set_lvar_int_to_constant 335@ = 8268
set_lvar_int_to_var_int 358@ = $scplayer
set_lvar_text_label 398@s = 'CAS6_JO'
set_lvar_int_to_constant 336@ = 8269
set_lvar_int_to_var_int 359@ = $scplayer
set_lvar_text_label 400@s = 'CAS6_KA'
set_lvar_int_to_constant 337@ = 8270
set_lvar_int_to_var_int 360@ = $scplayer
set_lvar_text_label 402@s = 'CAS6_KB'
set_lvar_int_to_constant 338@ = 8271
set_lvar_int_to_lvar_int 361@ = 39@
set_lvar_text_label 404@s = 'CAS6_KC'
set_lvar_int_to_constant 339@ = 8272
set_lvar_int_to_lvar_int 362@ = 39@
set_lvar_text_label 406@s = 'CAS6_KD'
set_lvar_int_to_constant 340@ = 8273
set_lvar_int_to_lvar_int 363@ = 39@
set_lvar_text_label 408@s = 'CAS6_KE'
set_lvar_int_to_constant 341@ = 8274
set_lvar_int_to_lvar_int 364@ = 39@
318@ = 0
319@ = 0
TIMERB = 0
set_player_group_recruitment $player1 {state} True

:CASINO6_29280
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_29528
if 
  locate_char_any_means_3d $scplayer {x} 2165.1851 {y} 1692.317 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CASINO6_29439
if 
  locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @CASINO6_29393
goto @CASINO6_30652
goto @CASINO6_29432

:CASINO6_29393
if 
  2 > 317@
goto_if_false @CASINO6_29418
317@ = 2

:CASINO6_29418
gosub @CASINO6_29922
gosub @CASINO6_30158

:CASINO6_29432
goto @CASINO6_29460

:CASINO6_29439
gosub @CASINO6_29738
gosub @CASINO6_29922
gosub @CASINO6_30158

:CASINO6_29460
286@ = get_area_visible 
if 
  286@ <> 0
goto_if_false @CASINO6_29521
clear_prints 
freeze_char_position 39@ {state} True
remove_blip 218@
remove_blip 40@
remove_char_from_group 39@
315@ = 0
goto @CASINO6_29563

:CASINO6_29521
goto @CASINO6_29556

:CASINO6_29528
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31431

:CASINO6_29556
goto @CASINO6_29280

:CASINO6_29563
wait 0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_29703
286@ = get_area_visible 
if 
  286@ == 0
goto_if_false @CASINO6_29696
freeze_char_position 39@ {state} False
set_char_never_leaves_group 39@ {state} True
set_group_member 310@ {handle} 39@
remove_blip 40@
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True
change_blip_display 40@ {display} BlipDisplay.BlipOnly
218@ = add_blip_for_coord 2165.1851 {y} 1692.317 {z} 9.8203
TIMERA = 0
317@ = 3
goto @CASINO6_29280

:CASINO6_29696
goto @CASINO6_29731

:CASINO6_29703
227@ = 1
set_lvar_text_label 228@s = 'CAS6_F0'
goto @CASINO6_31431

:CASINO6_29731
goto @CASINO6_29563

:CASINO6_29738
switch_start 315@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO6_29920 {caseNum1} 0 {caseLabel1} @CASINO6_29801 {caseNum2} 1 {caseLabel2} @CASINO6_29863 {caseNum3} -1 {caseLabel3} @CASINO6_29920 {caseNum4} -1 {caseLabel4} @CASINO6_29920 {caseNum5} -1 {caseLabel5} @CASINO6_29920 {caseNum6} -1 {caseLabel6} @CASINO6_29920 {caseNum7} -1 {caseLabel7} @CASINO6_29920

:CASINO6_29801
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO6_29856
316@ = get_car_char_is_using $scplayer
if 
  is_char_in_car 39@ {vehicle} 316@
goto_if_false @CASINO6_29856
remove_blip 40@
315@ += 1

:CASINO6_29856
goto @CASINO6_29920

:CASINO6_29863
if 
  not is_char_in_any_car 39@
goto_if_false @CASINO6_29913
remove_blip 40@
40@ = add_blip_for_char 39@
set_blip_as_friendly 40@ {state} True
change_blip_display 40@ {display} BlipDisplay.BlipOnly
315@ -= 1

:CASINO6_29913
goto @CASINO6_29920

:CASINO6_29920
return 

:CASINO6_29922
switch_start 317@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO6_30156 {caseNum1} 0 {caseLabel1} @CASINO6_29985 {caseNum2} 1 {caseLabel2} @CASINO6_30053 {caseNum3} 2 {caseLabel3} @CASINO6_30086 {caseNum4} 3 {caseLabel4} @CASINO6_30123 {caseNum5} -1 {caseLabel5} @CASINO6_30156 {caseNum6} -1 {caseLabel6} @CASINO6_30156 {caseNum7} -1 {caseLabel7} @CASINO6_30156

:CASINO6_29985
if 
  not locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @CASINO6_30046
print_now 'CAS6_G6' {time} 8000 {flag} 1
TIMERA = 0
317@ += 1

:CASINO6_30046
goto @CASINO6_30156

:CASINO6_30053
if 
  TIMERA > 20000
goto_if_false @CASINO6_30079
317@ -= 1

:CASINO6_30079
goto @CASINO6_30156

:CASINO6_30086
print_now 'CAS6_G7' {time} 8000 {flag} 1
TIMERA = 0
317@ += 1
goto @CASINO6_30156

:CASINO6_30123
if 
  TIMERA > 20000
goto_if_false @CASINO6_30149
317@ = 0

:CASINO6_30149
goto @CASINO6_30156

:CASINO6_30156
return 

:CASINO6_30158
switch_start 319@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CASINO6_30650 {caseNum1} 0 {caseLabel1} @CASINO6_30221 {caseNum2} 1 {caseLabel2} @CASINO6_30254 {caseNum3} 2 {caseLabel3} @CASINO6_30381 {caseNum4} 3 {caseLabel4} @CASINO6_30428 {caseNum5} 4 {caseLabel5} @CASINO6_30603 {caseNum6} -1 {caseLabel6} @CASINO6_30650 {caseNum7} -1 {caseLabel7} @CASINO6_30650

:CASINO6_30221
if 
  TIMERB > 8000
goto_if_false @CASINO6_30247
319@ += 1

:CASINO6_30247
goto @CASINO6_30650

:CASINO6_30254
if 
  4 > 318@
goto_if_false @CASINO6_30367
if 
  locate_char_any_means_char_2d $scplayer {target} 39@ {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @CASINO6_30360
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 100 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_30360
goto @CASINO6_30381

:CASINO6_30367
319@ = 3
goto @CASINO6_30650

:CASINO6_30381
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_30421
319@ = 1
$SLOT_status($preload_slot,2i) = -4

:CASINO6_30421
goto @CASINO6_30650

:CASINO6_30428
if 
  315@ == 1
goto_if_false @CASINO6_30528
if 
  17 > 318@
goto_if_false @CASINO6_30521
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 1 100 343@(318@,23i) 
318@ += 1
319@ += 1

:CASINO6_30521
goto @CASINO6_30603

:CASINO6_30528
if 
  318@ <> 4
goto_if_false @CASINO6_30596
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30571
$SLOT_status[0] = -2

:CASINO6_30571
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30596
$SLOT_status[1] = -2

:CASINO6_30596
goto @CASINO6_30650

:CASINO6_30603
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO6_30643
319@ = 3
$SLOT_status($preload_slot,2i) = -4

:CASINO6_30643
goto @CASINO6_30650

:CASINO6_30650
return 

:CASINO6_30652
set_player_control $player1 {state} False
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30684
$SLOT_status[0] = -2

:CASINO6_30684
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO6_30709
$SLOT_status[1] = -2

:CASINO6_30709
do_fade 500 {direction} Fade.Out

:CASINO6_30716
if 
  get_fading_status 
goto_if_false @CASINO6_30740
wait 0
goto @CASINO6_30716

:CASINO6_30740
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO6_30783
warp_char_from_car_to_coord $scplayer {x} 2171.511 {y} 1687.368 {z} 9.8203
goto @CASINO6_30803

:CASINO6_30783
set_char_coordinates $scplayer {x} 2171.511 {y} 1687.368 {z} 9.8203

:CASINO6_30803
set_char_heading $scplayer {heading} 352.2379
if 
  not is_char_dead 39@
goto_if_false @CASINO6_30902
if 
  is_char_in_any_car 39@
goto_if_false @CASINO6_30872
warp_char_from_car_to_coord 39@ {x} 2171.519 {y} 1688.526 {z} 9.8203
goto @CASINO6_30892

:CASINO6_30872
set_char_coordinates 39@ {x} 2171.519 {y} 1688.526 {z} 9.8203

:CASINO6_30892
set_char_heading 39@ {heading} 194.051

:CASINO6_30902
set_fixed_camera_position 2172.856 {y} 1688.255 {z} 11.0927 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.8911 {y} 1688.0129 {z} 11.1875 {switchStyle} SwitchType.JumpCut
clear_area 2171.511 {y} 1687.368 {z} 9.8203 {radius} 60.0 {clearParticles} True
delete_car 316@
318@ = 17
switch_widescreen True
do_fade 500 {direction} Fade.In
skip_cutscene_start_internal @CASINO6_31197

:CASINO6_31007
if 
  22 > 318@
goto_if_false @CASINO6_31126
set_var_int_to_lvar_int $load_sample = 320@(318@,23i)
set_var_text_label s$load_text = 366@(318@,23s)
start_new_script @A_ALAP 2 100 343@(318@,23i) 

:CASINO6_31068
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @CASINO6_31101
wait 0
goto @CASINO6_31068

:CASINO6_31101
$SLOT_status($preload_slot,2i) = -4
318@ += 1
goto @CASINO6_31007

:CASINO6_31126
if 
  not is_char_dead 39@
goto_if_false @CASINO6_31173
task_go_straight_to_coord 39@ {x} 2178.0149 {y} 1689.698 {z} 9.8203 {speed} MoveState.Walk {time} -2
do_fade 2500 {direction} Fade.Out

:CASINO6_31173
if 
  get_fading_status 
goto_if_false @CASINO6_31197
wait 0
goto @CASINO6_31173

:CASINO6_31197
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:CASINO6_31205
if 
  get_fading_status 
goto_if_false @CASINO6_31229
wait 0
goto @CASINO6_31205

:CASINO6_31229
clear_prints 
set_char_heading $scplayer {heading} 95.0
if 
  not is_char_dead 39@
goto_if_false @CASINO6_31262
delete_char 39@

:CASINO6_31262
do_fade 0 {direction} Fade.In
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 

:CASINO6_31283
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO6'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 8000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 8000
award_player_mission_respect 25
clear_wanted_level $player1
play_mission_passed_tune 1
set_int_stat StatId.PassedCasino6 {value} 1
start_new_script @DOC 
remove_blip $doc_contact_blip
$doc_contact_blip = add_sprite_blip_for_contact_point $docX {y} $docY {z} $docZ {sprite} $doc_blip_icon
remove_blip $heist_contact_blip
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2026.603 {y} 1007.735 {radius} 20.0
return 

:CASINO6_31431
switch_start 227@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO6_32141 {caseNum1} 0 {caseLabel1} @CASINO6_31542 {caseNum2} 1 {caseLabel2} @CASINO6_31494 {caseNum3} 2 {caseLabel3} @CASINO6_31565 {caseNum4} -1 {caseLabel4} @CASINO6_32141 {caseNum5} -1 {caseLabel5} @CASINO6_32141 {caseNum6} -1 {caseLabel6} @CASINO6_32141 {caseNum7} -1 {caseLabel7} @CASINO6_32141

:CASINO6_31494
print_now 228@s {time} 5000 {flag} 1
if 
  36@ == 1
goto_if_false @CASINO6_31542
set_object_coordinates 202@ {x} 951.859 {y} 2121.6479 {z} 1012.094

:CASINO6_31542
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
goto @CASINO6_32141

:CASINO6_31565
do_fade 0 {direction} Fade.Out

:CASINO6_31571
if 
  get_fading_status 
goto_if_false @CASINO6_31595
wait 0
goto @CASINO6_31571

:CASINO6_31595
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 963.9219 {y} 2124.6299 {z} 1013.85 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 963.0831 {y} 2124.1851 {z} 1013.536 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 955.6613 {y} 2116.2029 {z} 1010.03
set_char_heading $scplayer {heading} 72.8077
if 
  not is_char_dead 39@
goto_if_false @CASINO6_31753
clear_char_tasks_immediately 39@
task_toggle_duck 39@ {state} False
set_char_decision_maker 39@ {handleOrTemplate} 34@
set_char_coordinates 39@ {x} 955.32 {y} 2119.4719 {z} 1010.031
set_char_heading 39@ {heading} 113.9337

:CASINO6_31753
216@ = 0

:CASINO6_31760
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_31874
if 
  not is_char_dead 53@(216@,29i)
goto_if_false @CASINO6_31860
if 
  is_char_in_area_3d 53@(216@,29i) {leftBottomX} 952.25 {leftBottomY} 2147.0 {leftBottomZ} 1010.0 {rightTopX} 967.0 {rightTopY} 2114.0 {rightTopZ} 1012.0 {drawSphere} False
goto_if_false @CASINO6_31860
delete_char 53@(216@,29i)

:CASINO6_31860
216@ += 1
goto @CASINO6_31760

:CASINO6_31874
TIMERA = 0

:CASINO6_31881
if 
  400 > TIMERA
goto_if_false @CASINO6_31911
wait 0
goto @CASINO6_31881

:CASINO6_31911
do_fade 1000 {direction} Fade.In

:CASINO6_31918
if 
  get_fading_status 
goto_if_false @CASINO6_31942
wait 0
goto @CASINO6_31918

:CASINO6_31942
print_big 'M_FAIL' {time} 4000 {style} TextStyle.Middle
print_now 228@s {time} 4000 {flag} 1
TIMERA = 0

:CASINO6_31975
if 
  4000 > TIMERA
goto_if_false @CASINO6_32005
wait 0
goto @CASINO6_31975

:CASINO6_32005
do_fade 500 {direction} Fade.Out

:CASINO6_32012
if 
  get_fading_status 
goto_if_false @CASINO6_32036
wait 0
goto @CASINO6_32012

:CASINO6_32036
load_scene 1578.446 {y} 1770.682 {z} 9.828
request_collision 1578.446 {y} 1770.682
set_char_coordinates_no_offset $scplayer {x} 1578.446 {y} 1770.682 {z} 9.828
set_char_heading $scplayer {heading} 99.7567
reset_stuff_upon_resurrection 
TIMERA = 0

:CASINO6_32104
if 
  400 > TIMERA
goto_if_false @CASINO6_32134
wait 0
goto @CASINO6_32104

:CASINO6_32134
goto @CASINO6_32141

:CASINO6_32141
286@ = get_area_visible 
if 
  286@ <> 0
goto_if_false @CASINO6_32177
switch_entry_exit 'ABATOIR' {state} True

:CASINO6_32177
return 

:CASINO6_32179
if 
  is_player_playing $player1
goto_if_false @CASINO6_32206
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:CASINO6_32206
start_new_script @A_TERM 
$entry_exit_area = 0
$entry_exit_status = 0
set_var_text_label s$entry_exit_name = 'ABATOIR'
start_new_script @ENTEXT 
set_max_wanted_level 6
clear_onscreen_counter $rosenbergs_health_C6
remove_blip 218@
clear_help 
set_heathaze_effect False
set_radar_zoom 0
if 
  265@ == 0
goto_if_false @CASINO6_32302
remove_script_fire 264@
remove_script_fire 263@

:CASINO6_32302
if 
  266@ == 0
goto_if_false @CASINO6_32330
remove_script_fire 262@
remove_script_fire 261@

:CASINO6_32330
if 
  267@ == 0
goto_if_false @CASINO6_32358
remove_script_fire 260@
remove_script_fire 259@

:CASINO6_32358
if 
  is_player_playing $player1
goto_if_false @CASINO6_32485
disable_player_sprint $player1 {state} False
216@ = 0

:CASINO6_32388
if 
  is_int_lvar_greater_than_int_lvar 140@ > 216@
goto_if_false @CASINO6_32485
if 
  not is_char_dead 53@(216@,29i)
goto_if_false @CASINO6_32462
set_char_decision_maker 53@(216@,29i) {handleOrTemplate} 34@
task_kill_char_on_foot 53@(216@,29i) {target} $scplayer
set_char_keep_task 53@(216@,29i) {state} True

:CASINO6_32462
remove_blip 82@(216@,29i)
216@ += 1
goto @CASINO6_32388

:CASINO6_32485
mark_char_as_no_longer_needed 39@
remove_blip 40@
216@ = 0

:CASINO6_32502
if 
  6 > 216@
goto_if_false @CASINO6_32561
mark_object_as_no_longer_needed 154@(216@,6i)
mark_object_as_no_longer_needed 142@(216@,6i)
mark_object_as_no_longer_needed 208@(216@,6i)
216@ += 1
goto @CASINO6_32502

:CASINO6_32561
216@ = 0

:CASINO6_32568
if 
  6 > 216@
goto_if_false @CASINO6_32609
mark_object_as_no_longer_needed 245@(216@,9i)
216@ += 1
goto @CASINO6_32568

:CASINO6_32609
remove_pickup 37@
remove_pickup 38@
mark_car_as_no_longer_needed 316@
mark_object_as_no_longer_needed 43@
mark_object_as_no_longer_needed 160@
mark_object_as_no_longer_needed 202@
mark_object_as_no_longer_needed 203@
mark_object_as_no_longer_needed 254@
mark_object_as_no_longer_needed 255@
kill_fx_system 256@
kill_fx_system 257@
unload_special_character 1
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 341
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 366
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed #AB_CARCASS
mark_model_as_no_longer_needed #AB_HOOK
mark_model_as_no_longer_needed #FREEZER_DOOR
mark_model_as_no_longer_needed #SEC_KEYPAD
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed #CJ_MEAT_BAG_1
mark_model_as_no_longer_needed #CJ_MEAT_1
mark_model_as_no_longer_needed #CJ_MEAT_2
mark_model_as_no_longer_needed 234@
$timer_mobile_start = get_game_timer 
if 
  227@ == 2
goto_if_false @CASINO6_32792
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 1000 {direction} Fade.In

:CASINO6_32792
$onmission = 0
mission_has_finished 
return 

//-------------Mission 91---------------
// Originally: Freefall

:CASINO9
script_name 'CASINO9'
gosub @CASINO9_47
if 
  has_deatharrest_been_executed 
goto_if_false @CASINO9_38
gosub @CASINO9_12205

:CASINO9_38
gosub @CASINO9_12509
terminate_this_script 

:CASINO9_47
register_mission_given 
$onmission = 1
load_mission_text 'CASINO9'
set_char_coordinates $scplayer {x} 2175.4121 {y} 1681.548 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 10.0
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_9A1'

:CASINO9_150
if 
  not has_cutscene_loaded 
goto_if_false @CASINO9_174
wait 0
goto @CASINO9_150

:CASINO9_174
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO9_183
if 
  not has_cutscene_finished 
goto_if_false @CASINO9_207
wait 0
goto @CASINO9_183

:CASINO9_207
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO9_222
if 
  get_fading_status 
goto_if_false @CASINO9_246
wait 0
goto @CASINO9_222

:CASINO9_246
if 
  not was_cutscene_skipped 
goto_if_false @CASINO9_366
load_cutscene 'CAS_9A2'

:CASINO9_270
if 
  not has_cutscene_loaded 
goto_if_false @CASINO9_294
wait 0
goto @CASINO9_270

:CASINO9_294
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASINO9_303
if 
  not has_cutscene_finished 
goto_if_false @CASINO9_327
wait 0
goto @CASINO9_303

:CASINO9_327
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASINO9_342
if 
  get_fading_status 
goto_if_false @CASINO9_366
wait 0
goto @CASINO9_342

:CASINO9_366
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
load_scene 2175.4121 {y} 1681.548 {z} 9.8203
request_model 593
request_model 521

:CASINO9_409
if or
  not has_model_loaded 593
  not has_model_loaded 521
goto_if_false @CASINO9_441
wait 0
goto @CASINO9_409

:CASINO9_441
force_weather_now WeatherType.SunnyVegas
68@ = 0
if 
  68@ == 1
goto_if_false @CASINO9_501
34@ = create_car 593 {x} 0.0 {y} 0.0 {z} 0.0
35@ = add_blip_for_car 34@

:CASINO9_501
36@ = 0
set_camera_behind_player 
switch_ambient_planes False
37@ = create_car 521 {x} 2163.249 {y} 1679.976 {z} 9.8125
set_car_heading 37@ {heading} 350.0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
set_respawn_point_for_duration_of_mission 1581.374 {y} 1768.996 {z} 9.8203
do_fade 500 {direction} Fade.In
print_now 'CAS9_08' {time} 8500 {flag} 1
43@ = add_blip_for_coord 1707.828 {y} 1606.639 {z} 9.055
50@ = 0
36@ = 0
39@ = 0
47@ = 0
53@ = 1465.0
54@ = 5200.0
55@ = 200.0
59@ = 1465.0
60@ = 5220.0
61@ = 215.0

:CASINO9_710
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASINO9_736
goto @CASINO9_12440

:CASINO9_736
if 
  47@ == 0
goto_if_false @CASINO9_875
if 
  locate_char_any_means_2d $scplayer {x} 1707.828 {y} 1606.639 {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @CASINO9_868
remove_blip 43@
34@ = create_car 593 {x} 1279.625 {y} 1361.605 {z} 9.8203
set_car_heading 34@ {heading} 270.0
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'CAS9_09' {time} 6000 {flag} 1
47@ += 1

:CASINO9_868
goto @CASINO9_1739

:CASINO9_875
if 
  not is_car_dead 34@
goto_if_false @CASINO9_1711
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @CASINO9_1652
if 
  does_blip_exist 35@
goto_if_false @CASINO9_988
remove_blip 35@
43@ = add_blip_for_coord 53@ {y} 54@ {z} 55@
clear_prints 
if 
  36@ == 0
goto_if_false @CASINO9_988
print_now 'CAS9_50' {time} 8000 {flag} 1
36@ += 1

:CASINO9_988
$x, $y, $z = get_car_coordinates 34@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 53@ {toZ} 54@
switch_start 39@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @CASINO9_1645 {caseNum1} 0 {caseLabel1} @CASINO9_1082 {caseNum2} 1 {caseLabel2} @CASINO9_1136 {caseNum3} 2 {caseLabel3} @CASINO9_1260 {caseNum4} 3 {caseLabel4} @CASINO9_1377 {caseNum5} -1 {caseLabel5} @CASINO9_1645 {caseNum6} -1 {caseLabel6} @CASINO9_1645 {caseNum7} -1 {caseLabel7} @CASINO9_1645

:CASINO9_1082
if 
  $distance > 4400.0
goto_if_false @CASINO9_1110
goto @CASINO9_1645

:CASINO9_1110
request_model 519
request_model 61
mark_model_as_no_longer_needed 521
mark_car_as_no_longer_needed 37@
39@ += 1

:CASINO9_1136
if or
  $distance > 600.0
  not has_model_loaded 519
  not has_model_loaded 61
goto_if_false @CASINO9_1173
goto @CASINO9_1645

:CASINO9_1173
remove_blip 43@
38@ = create_car 519 {x} 53@ {y} 54@ {z} 55@
set_car_heading 38@ {heading} 180.0
set_plane_undercarriage_up 38@ {state} True
freeze_car_position 38@ {state} True
40@ = create_char_inside_car 38@ {pedType} PedType.Mission1 {modelId} 61
43@ = add_blip_for_car 38@
change_blip_display 43@ {display} BlipDisplay.BlipOnly
change_blip_colour 43@ {color} BlipColor.Yellow
39@ += 1

:CASINO9_1260
if 
  $distance > 300.0
goto_if_false @CASINO9_1288
goto @CASINO9_1645

:CASINO9_1288
set_lvar_float_to_lvar_float 60@ = 54@
60@ += 20.0
set_var_float_to_lvar_float $y = 60@
$y -= 1.0
48@ = create_checkpoint CheckpointType.Torus {x} 59@ {y} 60@ {z} 61@ {pointX} 59@ {pointY} $y {pointZ} 61@ {radius} 3.0
print_now 'CAS9_51' {time} 8000 {flag} 1
39@ += 1

:CASINO9_1377
if 
  not is_car_dead 38@
goto_if_false @CASINO9_1638
sub_timed_val_from_float_lvar 54@ -=@ 0.75
set_car_coordinates_no_offset 38@ {x} 53@ {y} 54@ {z} 55@
set_lvar_float_to_lvar_float 60@ = 54@
60@ += 20.0
set_checkpoint_coords 48@ {x} 59@ {y} 60@ {z} 61@
set_var_float_to_lvar_float $z = 61@
$z -= 3.0
if 
  locate_char_in_car_3d $scplayer {x} 59@ {y} 60@ {z} $z {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CASINO9_1562
$heading = get_car_heading 34@
if and
  240.0 > $heading
  $heading > 120.0
goto_if_false @CASINO9_1555
goto @CASINO9_1746

:CASINO9_1555
goto @CASINO9_1569

:CASINO9_1562
TIMERA = 0

:CASINO9_1569
if 
  3000.0 >= 54@
goto_if_false @CASINO9_1638
plane_fly_in_direction 38@ {heading} 180.0 {minAltitude} 200.0 {maxAltitude} 200.0
50@ = 1
set_lvar_text_label 51@s = 'CAS9_52'
goto @CASINO9_12205

:CASINO9_1638
goto @CASINO9_1645

:CASINO9_1645
goto @CASINO9_1704

:CASINO9_1652
if 
  not does_blip_exist 35@
goto_if_false @CASINO9_1704
print_now 'CAS9_04' {time} 8000 {flag} 1
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
remove_blip 43@

:CASINO9_1704
goto @CASINO9_1739

:CASINO9_1711
50@ = 1
set_lvar_text_label 51@s = 'CAS9_F1'
goto @CASINO9_12205

:CASINO9_1739
goto @CASINO9_710

:CASINO9_1746
do_fade 0 {direction} Fade.Out

:CASINO9_1752
if 
  get_fading_status 
goto_if_false @CASINO9_1776
wait 0
goto @CASINO9_1752

:CASINO9_1776
display_zone_names False
72@ = 1
load_mission_audio MissionAudioSlot.Slot3 {audioId} 16200
set_player_control $player1 {state} False
if 
  not is_car_dead 38@
goto_if_false @CASINO9_1834
set_car_heading 38@ {heading} 0.0
set_plane_undercarriage_up 38@ {state} True

:CASINO9_1834
if 
  not is_car_dead 34@
goto_if_false @CASINO9_1960
set_lvar_float_to_lvar_float 56@ = 53@
set_lvar_float_to_lvar_float 57@ = 54@
57@ -= 25.0
set_lvar_float_to_lvar_float 58@ = 55@
58@ += 20.0
set_car_coordinates 34@ {x} 56@ {y} 57@ {z} 58@
set_car_heading 34@ {heading} 0.0
freeze_car_position 34@ {state} True
set_car_health 34@ {health} 4000
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @CASINO9_1960
warp_char_into_car $scplayer {vehicle} 34@

:CASINO9_1960
delete_checkpoint 48@
request_animation "MISC"

:CASINO9_1973
if 
  not has_animation_loaded "MISC"
goto_if_false @CASINO9_2003
wait 0
goto @CASINO9_1973

:CASINO9_2003
62@ = -3.0
63@ = -4.0
64@ = 0.0
65@ = -1.0
66@ = 0.0
67@ = 0.0
if 
  not is_car_dead 34@
goto_if_false @CASINO9_2109
attach_camera_to_vehicle 34@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 2.0 {switchStyle} SwitchType.JumpCut

:CASINO9_2109
71@ = 0
do_fade 400 {direction} Fade.In
switch_widescreen True
TIMERA = 0
TIMERB = 0
clear_wanted_level $player1
set_max_wanted_level 0
skip_cutscene_start_internal @CASINO9_2970

:CASINO9_2157
wait 0
if and
  not is_car_dead 38@
  not is_car_dead 34@
goto_if_false @CASINO9_3841
shake_cam 20
add_timed_val_to_float_lvar 57@ +=@ 1.0
set_car_coordinates 34@ {x} 56@ {y} 57@ {z} 58@
add_timed_val_to_float_lvar 54@ +=@ 1.0
set_car_coordinates 38@ {x} 53@ {y} 54@ {z} 55@
switch_start 71@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO9_3841 {caseNum1} 0 {caseLabel1} @CASINO9_2297 {caseNum2} 1 {caseLabel2} @CASINO9_2623 {caseNum3} 2 {caseLabel3} @CASINO9_2703 {caseNum4} 3 {caseLabel4} @CASINO9_2757 {caseNum5} 4 {caseLabel5} @CASINO9_2858 {caseNum6} 5 {caseLabel6} @CASINO9_3535 {caseNum7} -1 {caseLabel7} @CASINO9_3841

:CASINO9_2297
if 
  1000 > TIMERB
goto_if_false @CASINO9_2323
goto @CASINO9_3841

:CASINO9_2323
attach_char_to_car $scplayer {vehicle} 34@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim $scplayer {animationName} "PLANE_EXIT" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
75@ = 741
90@ = 0.0
76@ = 794
91@ = 0.33
77@ = 847
92@ = 0.71
78@ = 953
93@ = 1.0
79@ = 1006
94@ = 0.87
80@ = 1059
95@ = 0.83
81@ = 1165
96@ = 0.81
82@ = 2118
97@ = 0.81
83@ = 2277
98@ = 0.78
84@ = 3336
99@ = 0.78
85@ = 4000
100@ = 0.78
88@ = 0
101@ = 0.0
set_lvar_int_to_lvar_int 89@ = 34@
71@ += 1

:CASINO9_2623
if 
  1000 > TIMERB
goto_if_false @CASINO9_2649
goto @CASINO9_3841

:CASINO9_2649
if 
  1500 > TIMERB
goto_if_false @CASINO9_2689
gosub @CASINO9_3848
goto @CASINO9_3841
goto @CASINO9_2703

:CASINO9_2689
TIMERA = 0
71@ += 1

:CASINO9_2703
gosub @CASINO9_3848
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @CASINO9_2750
attach_mission_audio_to_car MissionAudioSlot.Slot3 {handle} 34@
play_mission_audio MissionAudioSlot.Slot3
71@ += 1
goto @CASINO9_2757

:CASINO9_2750
goto @CASINO9_3841

:CASINO9_2757
if 
  5000 > TIMERB
goto_if_false @CASINO9_2851
if 
  -1.4 > 63@
goto_if_false @CASINO9_2837
add_timed_val_to_float_lvar 63@ +=@ 0.1
attach_camera_to_vehicle 34@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 2.0 {switchStyle} SwitchType.JumpCut

:CASINO9_2837
gosub @CASINO9_3848
goto @CASINO9_3841

:CASINO9_2851
71@ += 1

:CASINO9_2858
if 
  62@ > -7.0
goto_if_false @CASINO9_2929
sub_timed_val_from_float_lvar 62@ -=@ 0.1
sub_timed_val_from_float_lvar 64@ -=@ 0.045
attach_camera_to_vehicle 34@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 2.0 {switchStyle} SwitchType.JumpCut

:CASINO9_2929
74@ = get_char_anim_current_time $scplayer {animationName} "PLANE_EXIT"
if 
  74@ > 0.95
goto_if_false @CASINO9_3521

:CASINO9_2970
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:CASINO9_2978
if 
  get_fading_status 
goto_if_false @CASINO9_3002
wait 0
goto @CASINO9_2978

:CASINO9_3002
clear_char_tasks_immediately $scplayer
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} True

:CASINO9_3019
if 
  is_char_playing_anim $scplayer {animationName} "PLANE_EXIT"
goto_if_false @CASINO9_3058
wait 0
goto @CASINO9_3019

:CASINO9_3058
if 
  not is_car_dead 38@
goto_if_false @CASINO9_3106
attach_char_to_car $scplayer {vehicle} 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:CASINO9_3106
wait 0
do_fade 50 {direction} Fade.In
task_play_anim_non_interruptable $scplayer {animationName} "PLANE_HIJACK" {animationFile} "MISC" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
75@ = 3229
90@ = 0.0
76@ = 3282
91@ = 0.04
77@ = 3335
92@ = 0.09
78@ = 3388
93@ = 0.14
79@ = 3440
94@ = 0.19
80@ = 3493
95@ = 0.22
81@ = 5028
96@ = 0.22
82@ = 5081
97@ = 0.15
83@ = 5134
98@ = 0.08
84@ = 5187
99@ = 0.01
85@ = 5240
100@ = 0.0
88@ = 0
101@ = 0.0
set_lvar_int_to_lvar_int 89@ = 38@
62@ = -3.0
63@ = 6.0
64@ = -0.5
65@ = -2.0
66@ = -8.0
67@ = 1.0
camera_set_shake_simulation_simple 1 {timeInMs} 20000.0 {intensity} 3.0
TIMERA = 0
TIMERB = 0
if 
  not is_car_dead 34@
goto_if_false @CASINO9_3490
freeze_car_position 34@ {state} False

:CASINO9_3490
73@ = 0.0
skip_cutscene_start_internal @CASINO9_3653
71@ = 5
goto @CASINO9_3535

:CASINO9_3521
gosub @CASINO9_3848
goto @CASINO9_3841

:CASINO9_3535
if 
  7000 > TIMERB
goto_if_false @CASINO9_3653
if 
  not is_car_dead 34@
goto_if_false @CASINO9_3632
sub_timed_val_from_float_lvar 73@ -=@ 3.0
sub_timed_val_from_float_lvar 56@ -=@ 0.3
add_timed_val_to_float_lvar 57@ +=@ 0.3
sub_timed_val_from_float_lvar 58@ -=@ 0.3
set_car_coordinates 34@ {x} 56@ {y} 57@ {z} 58@
set_car_roll 34@ {yAngle} 73@

:CASINO9_3632
gosub @CASINO9_3848
gosub @CASINO9_4222
goto @CASINO9_3841

:CASINO9_3653
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:CASINO9_3661
if 
  get_fading_status 
goto_if_false @CASINO9_3685
wait 0
goto @CASINO9_3661

:CASINO9_3685
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} True

:CASINO9_3704
if 
  is_char_playing_anim $scplayer {animationName} "PLANE_HIJACK"
goto_if_false @CASINO9_3745
wait 0
goto @CASINO9_3704

:CASINO9_3745
mark_char_as_no_longer_needed 40@
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 38@
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 593
mark_model_as_no_longer_needed 519
remove_animation "MISC"
set_area_visible 1
set_char_coordinates $scplayer {x} 1.6127 {y} 34.7411 {z} 1199.0
set_char_heading $scplayer {heading} 180.0
freeze_char_position $scplayer {state} False
set_char_area_visible $scplayer {areaId} 1
restore_camera_jumpcut 
set_camera_behind_player 
goto @CASINO9_4375

:CASINO9_3841
goto @CASINO9_2157

:CASINO9_3848
if 
  11 > 88@
goto_if_false @CASINO9_4194
if 
  is_int_lvar_greater_than_int_lvar 75@(88@,11i) > TIMERA
goto_if_false @CASINO9_4071
add_float_lvar_to_float_lvar 102@ += 101@
if 
  0.0 > 102@
goto_if_false @CASINO9_3935
102@ = 0.0
goto @CASINO9_3966

:CASINO9_3935
if 
  102@ > 1.0
goto_if_false @CASINO9_3966
102@ = 1.0

:CASINO9_3966
if 
  101@ >= 0.0
goto_if_false @CASINO9_4029
if 
  is_float_lvar_greater_than_float_lvar 102@ > 90@(88@,11f)
goto_if_false @CASINO9_4022
set_lvar_float_to_lvar_float 102@ = 90@(88@,11f)

:CASINO9_4022
goto @CASINO9_4064

:CASINO9_4029
if 
  is_float_lvar_greater_than_float_lvar 90@(88@,11f) > 102@
goto_if_false @CASINO9_4064
set_lvar_float_to_lvar_float 102@ = 90@(88@,11f)

:CASINO9_4064
goto @CASINO9_4194

:CASINO9_4071
cset_lvar_float_to_lvar_int 103@ =# 75@(88@,11i)
set_lvar_float_to_lvar_float 105@ = 90@(88@,11f)
88@ += 1
if 
  88@ > 10
goto_if_false @CASINO9_4122
return 

:CASINO9_4122
cset_lvar_float_to_lvar_int 104@ =# 75@(88@,11i)
set_lvar_float_to_lvar_float 106@ = 90@(88@,11f)
sub_float_lvar_from_float_lvar 104@ -= 103@
sub_float_lvar_from_float_lvar 106@ -= 105@
div_float_lvar_by_float_lvar 106@ /= 104@
set_lvar_float_to_lvar_float 101@ = 106@
mult_float_lvar_by_float_lvar 101@ *= 104@
add_float_lvar_to_float_lvar 102@ += 101@

:CASINO9_4194
if 
  not is_car_dead 89@
goto_if_false @CASINO9_4220
open_car_door_a_bit 89@ {door} CarDoor.LeftFrontDoor {value} 102@

:CASINO9_4220
return 

:CASINO9_4222
if 
  not is_car_dead 38@
goto_if_false @CASINO9_4373
if 
  107@ == 0
goto_if_false @CASINO9_4373
if 
  -4.0 >= 62@
goto_if_false @CASINO9_4293
107@ = 1
return 
goto @CASINO9_4343

:CASINO9_4293
add_timed_val_to_float_lvar 62@ +=@ -0.02
add_timed_val_to_float_lvar 63@ +=@ 0.02
add_timed_val_to_float_lvar 64@ +=@ -0.01
add_timed_val_to_float_lvar 66@ +=@ 0.23
add_timed_val_to_float_lvar 67@ +=@ -0.02

:CASINO9_4343
attach_camera_to_vehicle 38@ {xOffset} 62@ {yOffset} 63@ {zOffset} 64@ {xRotation} 65@ {yRotation} 66@ {zRotation} 67@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut

:CASINO9_4373
return 

:CASINO9_4375
72@ = 0
request_model 124
request_model 125
request_model 126
request_model 127
request_model 346
request_model #JET_BAGGAGE_DOOR
request_model #CARDBOARDBOX2
request_model #JET_INTERIOR

:CASINO9_4418
if or
  not has_model_loaded 124
  not has_model_loaded 125
  not has_model_loaded 126
  not has_model_loaded 127
  not has_model_loaded 346
  not has_model_loaded #JET_BAGGAGE_DOOR
goto_if_false @CASINO9_4466
wait 0
goto @CASINO9_4418

:CASINO9_4466
if or
  not has_model_loaded #CARDBOARDBOX2
  not has_model_loaded #JET_INTERIOR
goto_if_false @CASINO9_4498
wait 0
goto @CASINO9_4466

:CASINO9_4498
49@ = load_char_decision_maker DecisionMakerType.Empty
load_scene_in_direction 2.3947 {y} 32.9835 {z} 1198.594 {heading} 155.9863
165@ = 2.9
166@ = 32.4
167@ = 1198.75
163@ = 0
164@ = create_object #CARDBOARDBOX2 {x} 165@ {y} 166@ {z} 167@
set_object_area_visible 164@ {areaId} 1
set_object_dynamic 164@ {state} False
set_object_collision 164@ {state} False
set_object_visible 164@ {state} False
attach_char_to_object $scplayer {handle} 164@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.5 {heading} Facing.Back {headingRange} 85.0 {weaponType} WeaponType.Pistol
set_heading_for_attached_player $player1 {heading} 30.0 {headingRange} 30.0
freeze_char_position $scplayer {state} True
display_radar False
108@ = create_char PedType.Mission1 {modelId} 124 {x} 2.9739 {y} 28.7207 {z} 1198.594
set_char_area_visible 108@ {areaId} 1
set_char_heading 108@ {heading} 0.0
set_char_health 108@ {health} 150
give_weapon_to_char 108@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 108@ {weaponType} WeaponType.Pistol
set_char_decision_maker 108@ {handleOrTemplate} 49@
set_char_never_targetted 108@ {state} True
task_stay_in_same_place 108@ {state} True
task_sit_down 108@ {time} 80000
set_char_drops_weapons_when_dead 108@ {state} False
set_char_shoot_rate 108@ {rate} 90
set_char_accuracy 108@ {accuracy} 0
132@ = 2
146@ = 197.6
150@ = 214.0
154@ = 1199.851
158@ = 1200.366
109@ = create_char PedType.Mission1 {modelId} 125 {x} 0.5102 {y} 27.6804 {z} 1198.594
set_char_area_visible 109@ {areaId} 1
set_char_heading 109@ {heading} 0.0
set_char_health 109@ {health} 150
give_weapon_to_char 109@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 109@ {weaponType} WeaponType.Pistol
set_char_decision_maker 109@ {handleOrTemplate} 49@
set_char_never_targetted 109@ {state} True
task_stay_in_same_place 109@ {state} True
task_sit_down 109@ {time} 80000
set_char_drops_weapons_when_dead 109@ {state} False
set_char_shoot_rate 109@ {rate} 90
set_char_accuracy 109@ {accuracy} 0
133@ = 3
147@ = 158.7
151@ = 170.2
155@ = 1199.972
159@ = 1200.34
110@ = create_char PedType.Mission1 {modelId} 126 {x} 2.8831 {y} 26.4404 {z} 1198.601
set_char_area_visible 110@ {areaId} 1
set_char_heading 110@ {heading} 0.0
set_char_health 110@ {health} 150
give_weapon_to_char 110@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 110@ {weaponType} WeaponType.Pistol
set_char_decision_maker 110@ {handleOrTemplate} 49@
set_char_never_targetted 110@ {state} True
task_stay_in_same_place 110@ {state} True
task_sit_down 110@ {time} 80000
set_char_drops_weapons_when_dead 110@ {state} False
set_char_shoot_rate 110@ {rate} 90
set_char_accuracy 110@ {accuracy} 0
134@ = 0
148@ = 189.4
152@ = 196.9
156@ = 200.1145
160@ = 200.3232
111@ = create_char PedType.Mission1 {modelId} 127 {x} 0.5068 {y} 25.3824 {z} 1198.601
set_char_area_visible 111@ {areaId} 1
set_char_heading 111@ {heading} 0.0
set_char_health 111@ {health} 150
give_weapon_to_char 111@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 111@ {weaponType} WeaponType.Pistol
set_char_decision_maker 111@ {handleOrTemplate} 49@
set_char_never_targetted 111@ {state} True
task_stay_in_same_place 111@ {state} True
task_sit_down 111@ {time} 80000
set_char_drops_weapons_when_dead 111@ {state} False
set_char_shoot_rate 111@ {rate} 90
set_char_accuracy 111@ {accuracy} 0
135@ = 1
149@ = 167.51
153@ = 174.11
157@ = 1200.1479
161@ = 1200.328
set_lvar_text_label 208@s = 'CAS9_AA'
set_lvar_int_to_constant 184@ = 8400
set_lvar_int_to_lvar_int 188@ = 108@
set_lvar_text_label 210@s = 'CAS9_AB'
set_lvar_int_to_constant 185@ = 8401
set_lvar_int_to_lvar_int 189@ = 109@
set_lvar_text_label 212@s = 'CAS9_AC'
set_lvar_int_to_constant 186@ = 8402
set_lvar_int_to_lvar_int 190@ = 110@
set_lvar_text_label 214@s = 'CAS9_AD'
set_lvar_int_to_constant 187@ = 8403
set_lvar_int_to_lvar_int 191@ = 110@
set_lvar_text_label 216@s = 'CAS9_BA'
set_lvar_int_to_constant 192@ = 8404
set_lvar_text_label 218@s = 'CAS9_BB'
set_lvar_int_to_constant 193@ = 8405
set_lvar_text_label 220@s = 'CAS9_BC'
set_lvar_int_to_constant 194@ = 8406
set_lvar_text_label 222@s = 'CAS9_BD'
set_lvar_int_to_constant 195@ = 8407
set_lvar_text_label 224@s = 'CAS9_CA'
set_lvar_int_to_constant 196@ = 8408
set_lvar_text_label 226@s = 'CAS9_CB'
set_lvar_int_to_constant 197@ = 8409
set_lvar_text_label 228@s = 'CAS9_CC'
set_lvar_int_to_constant 198@ = 8410
set_lvar_text_label 230@s = 'CAS9_CD'
set_lvar_int_to_constant 199@ = 8411
set_player_fire_button $player1 {enabled} False
set_player_duck_button $player1 {enabled} False
162@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
138@ = 4
139@ = -1
137@ = -1
168@ = create_object_no_offset #JET_BAGGAGE_DOOR {x} 0.752 {y} 25.518 {z} 1201.15
169@ = create_object_no_offset #JET_BAGGAGE_DOOR {x} 0.752 {y} 28.024 {z} 1201.15
170@ = create_object_no_offset #JET_BAGGAGE_DOOR {x} 0.752 {y} 30.403 {z} 1201.15
set_player_control $player1 {state} True
switch_widescreen True
TIMERA = 0

:CASINO9_5784
if 
  500 > TIMERA
goto_if_false @CASINO9_5814
wait 0
goto @CASINO9_5784

:CASINO9_5814
do_fade 500 {direction} Fade.In
if 
  is_pc_using_joypad 
goto_if_false @CASINO9_5852
print_help_forever 'CAS9_H2'
goto @CASINO9_5863

:CASINO9_5852
print_help_forever 'CAS9_H4'

:CASINO9_5863
if 
  get_fading_status 
goto_if_false @CASINO9_5887
wait 0
goto @CASINO9_5863

:CASINO9_5887
TIMERA = 0

:CASINO9_5894
if 
  2000 > TIMERA
goto_if_false @CASINO9_5924
wait 0
goto @CASINO9_5894

:CASINO9_5924
set_player_fire_button $player1 {enabled} True
switch_widescreen False
178@ = 0
172@ = get_game_timer 

:CASINO9_5947
wait 0
171@ = get_game_timer 
set_lvar_int_to_lvar_int 173@ = 171@
sub_int_lvar_from_int_lvar 173@ -= 172@
set_lvar_int_to_lvar_int 172@ = 171@
add_int_lvar_to_int_lvar 120@ += 173@
add_int_lvar_to_int_lvar 121@ += 173@
add_int_lvar_to_int_lvar 122@ += 173@
add_int_lvar_to_int_lvar 123@ += 173@
add_int_lvar_to_int_lvar 178@ += 173@
gosub @CASINO9_9113
gosub @CASINO9_10095
if 
  175@ == 0
goto_if_false @CASINO9_6315
if or
  162@ == 0
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CASINO9_6308
if and
  not is_char_dead 108@
  not is_char_dead 109@
  not is_char_dead 110@
  not is_char_dead 111@
goto_if_false @CASINO9_6308
clear_char_tasks 108@
task_go_to_coord_while_shooting 108@ {x} 3.0228 {y} 29.7474 {z} 1198.594 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
112@ = -1
clear_char_tasks 109@
task_go_to_coord_while_shooting 109@ {x} 0.739 {y} 28.6978 {z} 1198.594 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
113@ = -1
clear_char_tasks 110@
task_go_to_coord_while_shooting 110@ {x} 2.9224 {y} 27.2966 {z} 1198.601 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
114@ = -1
clear_char_tasks 111@
task_go_to_coord_while_shooting 111@ {x} 0.5596 {y} 26.2475 {z} 1198.601 {speed} MoveState.Run {turnRadius} 20.0 {stopRadius} 0.5 {target} $scplayer
115@ = -1
175@ = 1

:CASINO9_6308
goto @CASINO9_7421

:CASINO9_6315
if 
  181@ <> 2
goto_if_false @CASINO9_6340
gosub @CASINO9_10327

:CASINO9_6340
if 
  138@ <> 0
goto_if_false @CASINO9_7414
174@ = generate_random_int_in_range 0 {max} 24
switch_start 174@ {numCases} 24 {hasDefaultCase} 0 {defaultLabel} @CASINO9_7400 {caseNum1} 0 {caseLabel1} @CASINO9_6560 {caseNum2} 1 {caseLabel2} @CASINO9_6595 {caseNum3} 2 {caseLabel3} @CASINO9_6630 {caseNum4} 3 {caseLabel4} @CASINO9_6665 {caseNum5} 4 {caseLabel5} @CASINO9_6700 {caseNum6} 5 {caseLabel6} @CASINO9_6735 {caseNum7} 6 {caseLabel7} @CASINO9_6770
switch_continued 7 {caseLabel1} @CASINO9_6805 {caseNum2} 8 {caseLabel2} @CASINO9_6840 {caseNum3} 9 {caseLabel3} @CASINO9_6875 {caseNum4} 10 {caseLabel4} @CASINO9_6910 {caseNum5} 11 {caseLabel5} @CASINO9_6945 {caseNum6} 12 {caseLabel6} @CASINO9_6980 {caseNum7} 13 {caseLabel7} @CASINO9_7015 {caseNum8} 14 {caseLabel8} @CASINO9_7050 {caseNum9} 15 {caseLabel9} @CASINO9_7085
switch_continued 16 {caseLabel1} @CASINO9_7120 {caseNum2} 17 {caseLabel2} @CASINO9_7155 {caseNum3} 18 {caseLabel3} @CASINO9_7190 {caseNum4} 19 {caseLabel4} @CASINO9_7225 {caseNum5} 20 {caseLabel5} @CASINO9_7260 {caseNum6} 21 {caseLabel6} @CASINO9_7295 {caseNum7} 22 {caseLabel7} @CASINO9_7330 {caseNum8} 23 {caseLabel8} @CASINO9_7365 {caseNum9} -1 {caseLabel9} @CASINO9_7400

:CASINO9_6560
141@ = 0
142@ = 1
143@ = 2
144@ = 3
goto @CASINO9_7400

:CASINO9_6595
141@ = 0
142@ = 1
143@ = 3
144@ = 2
goto @CASINO9_7400

:CASINO9_6630
141@ = 0
142@ = 2
143@ = 1
144@ = 3
goto @CASINO9_7400

:CASINO9_6665
141@ = 0
142@ = 2
143@ = 3
144@ = 1
goto @CASINO9_7400

:CASINO9_6700
141@ = 0
142@ = 3
143@ = 1
144@ = 2
goto @CASINO9_7400

:CASINO9_6735
141@ = 0
142@ = 3
143@ = 2
144@ = 1
goto @CASINO9_7400

:CASINO9_6770
141@ = 1
142@ = 0
143@ = 2
144@ = 3
goto @CASINO9_7400

:CASINO9_6805
141@ = 1
142@ = 0
143@ = 3
144@ = 2
goto @CASINO9_7400

:CASINO9_6840
141@ = 1
142@ = 2
143@ = 0
144@ = 3
goto @CASINO9_7400

:CASINO9_6875
141@ = 1
142@ = 2
143@ = 3
144@ = 0
goto @CASINO9_7400

:CASINO9_6910
141@ = 1
142@ = 3
143@ = 0
144@ = 2
goto @CASINO9_7400

:CASINO9_6945
141@ = 1
142@ = 3
143@ = 2
144@ = 0
goto @CASINO9_7400

:CASINO9_6980
141@ = 2
142@ = 0
143@ = 1
144@ = 3
goto @CASINO9_7400

:CASINO9_7015
141@ = 2
142@ = 0
143@ = 3
144@ = 1
goto @CASINO9_7400

:CASINO9_7050
141@ = 2
142@ = 1
143@ = 0
144@ = 3
goto @CASINO9_7400

:CASINO9_7085
141@ = 2
142@ = 1
143@ = 3
144@ = 0
goto @CASINO9_7400

:CASINO9_7120
141@ = 2
142@ = 3
143@ = 0
144@ = 1
goto @CASINO9_7400

:CASINO9_7155
141@ = 2
142@ = 3
143@ = 1
144@ = 0
goto @CASINO9_7400

:CASINO9_7190
141@ = 3
142@ = 0
143@ = 1
144@ = 2
goto @CASINO9_7400

:CASINO9_7225
141@ = 3
142@ = 0
143@ = 2
144@ = 1
goto @CASINO9_7400

:CASINO9_7260
141@ = 3
142@ = 1
143@ = 0
144@ = 2
goto @CASINO9_7400

:CASINO9_7295
141@ = 3
142@ = 1
143@ = 2
144@ = 0
goto @CASINO9_7400

:CASINO9_7330
141@ = 3
142@ = 2
143@ = 0
144@ = 1
goto @CASINO9_7400

:CASINO9_7365
141@ = 3
142@ = 2
143@ = 1
144@ = 0
goto @CASINO9_7400

:CASINO9_7400
gosub @CASINO9_7428
goto @CASINO9_7421

:CASINO9_7414
goto @CASINO9_10542

:CASINO9_7421
goto @CASINO9_5947

:CASINO9_7428
41@ = 0

:CASINO9_7435
if 
  4 > 41@
goto_if_false @CASINO9_9111
set_lvar_int_to_lvar_int 145@ = 141@(41@,4i)
if 
  not is_char_dead 108@(145@,4i)
goto_if_false @CASINO9_9023
switch_start 112@(145@,4i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CASINO9_9016 {caseNum1} -1 {caseLabel1} @CASINO9_7552 {caseNum2} 0 {caseLabel2} @CASINO9_7629 {caseNum3} 1 {caseLabel3} @CASINO9_8007 {caseNum4} 2 {caseLabel4} @CASINO9_8597 {caseNum5} 3 {caseLabel5} @CASINO9_8893 {caseNum6} 4 {caseLabel6} @CASINO9_8964 {caseNum7} -1 {caseLabel7} @CASINO9_9016

:CASINO9_7552
46@ = get_script_task_status 108@(145@,4i) {taskId} 1591
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_7629
freeze_char_position 108@(145@,4i) {state} True
task_toggle_duck 108@(145@,4i) {state} True
set_char_accuracy 108@(145@,4i) {accuracy} 65
112@(145@,4i) = 0

:CASINO9_7629
if 
  137@ == -1
goto_if_false @CASINO9_8000
46@ = get_script_task_status 108@(145@,4i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_7805
set_lvar_int_to_lvar_int 42@ = 132@(145@,4i)
if 
  not is_int_lvar_equal_to_int_lvar 139@ == 42@
goto_if_false @CASINO9_7726
set_lvar_int_to_lvar_int 137@ = 145@
goto @CASINO9_7805

:CASINO9_7726
if 
  138@ == 1
goto_if_false @CASINO9_7759
set_lvar_int_to_lvar_int 137@ = 145@
goto @CASINO9_7805

:CASINO9_7759
if 
  138@ == 2
goto_if_false @CASINO9_7805
if 
  not is_char_dead 108@(42@,4i)
goto_if_false @CASINO9_7805
set_lvar_int_to_lvar_int 137@ = 145@

:CASINO9_7805
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_8000
112@(145@,4i) = 4
116@(145@,4i) = 0
120@(145@,4i) = 0
140@ = get_char_health 108@(145@,4i)
set_lvar_int_to_lvar_int 124@(145@,4i) = 140@
124@(145@,4i) *= 15
if 
  2000 > 124@(145@,4i)
goto_if_false @CASINO9_7934
124@(145@,4i) = 2000
goto @CASINO9_7969

:CASINO9_7934
if 
  124@(145@,4i) > 5000
goto_if_false @CASINO9_7969
124@(145@,4i) = 5000

:CASINO9_7969
clear_char_tasks 108@(145@,4i)
task_toggle_duck 108@(145@,4i) {state} False
set_char_allowed_to_duck 108@(145@,4i) {state} False

:CASINO9_8000
goto @CASINO9_9016

:CASINO9_8007
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_8590
if 
  138@ <> 1
goto_if_false @CASINO9_8249
if 
  is_int_lvar_greater_or_equal_to_int_lvar 120@(145@,4i) >= 124@(145@,4i)
goto_if_false @CASINO9_8119
112@(145@,4i) = 2
120@(145@,4i) = 0
124@(145@,4i) = 500
goto @CASINO9_9016
goto @CASINO9_8249

:CASINO9_8119
$heading = get_char_heading $scplayer
if and
  is_float_var_greater_or_equal_to_float_lvar $heading >= 146@(145@,4f)
  is_float_lvar_greater_or_equal_to_float_var 150@(145@,4f) >= $heading
goto_if_false @CASINO9_8249
$x, $y, $z = get_active_camera_point_at 
if and
  is_float_var_greater_or_equal_to_float_lvar $z >= 154@(145@,4f)
  is_float_lvar_greater_or_equal_to_float_var 158@(145@,4f) >= $z
goto_if_false @CASINO9_8249
112@(145@,4i) = 2
120@(145@,4i) = 0
124@(145@,4i) = 700
goto @CASINO9_9016

:CASINO9_8249
if 
  162@ == 0
goto_if_false @CASINO9_8425
if 
  116@(145@,4i) <> 1
goto_if_false @CASINO9_8321
116@(145@,4i) = 1
clear_char_tasks 108@(145@,4i)
task_kill_char_on_foot 108@(145@,4i) {target} $scplayer

:CASINO9_8321
if and
  183@ == 1
  200@(145@,4i) == 0
goto_if_false @CASINO9_8418
set_var_int_to_lvar_int $load_sample = 192@(145@,4i)
set_var_text_label s$load_text = 216@(145@,4s)
start_new_script @A_ALAP 2 100 108@(145@,4i) 
183@ = 0
TIMERB = 0
200@(145@,4i) += 1

:CASINO9_8418
goto @CASINO9_8590

:CASINO9_8425
if and
  183@ == 2
  204@(145@,4i) == 0
goto_if_false @CASINO9_8522
set_var_int_to_lvar_int $load_sample = 196@(145@,4i)
set_var_text_label s$load_text = 224@(145@,4s)
start_new_script @A_ALAP 2 100 108@(145@,4i) 
183@ = 0
TIMERB = 0
204@(145@,4i) += 1

:CASINO9_8522
if 
  116@(145@,4i) <> 2
goto_if_false @CASINO9_8590
116@(145@,4i) = 2
clear_char_tasks 108@(145@,4i)
task_shoot_at_coord 108@(145@,4i) {x} 1.8121 {y} 37.2617 {z} 1200.396 {time} -1

:CASINO9_8590
goto @CASINO9_9016

:CASINO9_8597
if 
  is_int_lvar_greater_or_equal_to_int_lvar 120@(145@,4i) >= 124@(145@,4i)
goto_if_false @CASINO9_8739
112@(145@,4i) = 0
clear_char_tasks 108@(145@,4i)
set_char_allowed_to_duck 108@(145@,4i) {state} True
46@ = get_script_task_status 108@(145@,4i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_8706
task_toggle_duck 108@(145@,4i) {state} True
goto @CASINO9_8717

:CASINO9_8706
112@(145@,4i) = 3

:CASINO9_8717
set_lvar_int_to_lvar_int 139@ = 145@
137@ = -1
goto @CASINO9_8886

:CASINO9_8739
if 
  162@ == 0
goto_if_false @CASINO9_8818
if 
  116@(145@,4i) <> 1
goto_if_false @CASINO9_8811
116@(145@,4i) = 1
clear_char_tasks 108@(145@,4i)
task_kill_char_on_foot 108@(145@,4i) {target} $scplayer

:CASINO9_8811
goto @CASINO9_8886

:CASINO9_8818
if 
  116@(145@,4i) <> 2
goto_if_false @CASINO9_8886
116@(145@,4i) = 2
clear_char_tasks 108@(145@,4i)
task_shoot_at_coord 108@(145@,4i) {x} 1.8121 {y} 37.2617 {z} 1200.396 {time} -1

:CASINO9_8886
goto @CASINO9_9016

:CASINO9_8893
46@ = get_script_task_status 108@(145@,4i) {taskId} 1259
if 
  is_int_lvar_equal_to_constant 46@ == 7
goto_if_false @CASINO9_8957
clear_char_tasks 108@(145@,4i)
task_toggle_duck 108@(145@,4i) {state} True
112@(145@,4i) = 0

:CASINO9_8957
goto @CASINO9_9016

:CASINO9_8964
if 
  120@(145@,4i) >= 200
goto_if_false @CASINO9_9009
120@(145@,4i) = 0
112@(145@,4i) = 1

:CASINO9_9009
goto @CASINO9_9016

:CASINO9_9016
goto @CASINO9_9097

:CASINO9_9023
if 
  112@(145@,4i) <> -2
goto_if_false @CASINO9_9097
112@(145@,4i) = -2
138@ -= 1
if 
  is_int_lvar_equal_to_int_lvar 137@ == 145@
goto_if_false @CASINO9_9097
set_lvar_int_to_lvar_int 139@ = 145@
137@ = -1

:CASINO9_9097
41@ += 1
goto @CASINO9_7435

:CASINO9_9111
return 

:CASINO9_9113
165@, 166@, 167@ = get_object_coordinates 164@
if or
  165@ > 2.6
  0.2 > 165@
goto_if_false @CASINO9_9248
if 
  162@ == 0
goto_if_false @CASINO9_9197
162@ = 1
TIMERB = 0
goto @CASINO9_9241

:CASINO9_9197
if 
  TIMERB > 9000
goto_if_false @CASINO9_9241
if 
  181@ == 2
goto_if_false @CASINO9_9241
183@ = 2

:CASINO9_9241
goto @CASINO9_9331

:CASINO9_9248
if 
  162@ == 1
goto_if_false @CASINO9_9287
162@ = 0
TIMERB = 0
goto @CASINO9_9331

:CASINO9_9287
if 
  TIMERB > 9000
goto_if_false @CASINO9_9331
if 
  181@ == 2
goto_if_false @CASINO9_9331
183@ = 1

:CASINO9_9331
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.RightStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.RightStickY
goto_if_false @CASINO9_9368
180@ = 1
goto @CASINO9_9375

:CASINO9_9368
180@ = 0

:CASINO9_9375
if 
  is_pc_using_joypad 
goto_if_false @CASINO9_9800
if and
  not is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
  not is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @CASINO9_9494
  slide_object 164@ {posX} 1.7 {posY} 166@ {posZ} 167@ {speedX} 0.09 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ <> 1.7
  180@ == 0
goto_if_false @CASINO9_9487
set_heading_for_attached_player $player1 {heading} 90.0 {headingRange} 9.0

:CASINO9_9487
goto @CASINO9_9793

:CASINO9_9494
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @CASINO9_9600
  slide_object 164@ {posX} 1.7 {posY} 166@ {posZ} 167@ {speedX} 0.09 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ <> 1.7
  180@ == 0
goto_if_false @CASINO9_9593
set_heading_for_attached_player $player1 {heading} 90.0 {headingRange} 9.0

:CASINO9_9593
goto @CASINO9_9793

:CASINO9_9600
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
goto_if_false @CASINO9_9700
  slide_object 164@ {posX} 2.9 {posY} 166@ {posZ} 167@ {speedX} 0.09 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  2.9 > 165@
  180@ == 0
goto_if_false @CASINO9_9693
set_heading_for_attached_player $player1 {heading} 30.0 {headingRange} 9.0

:CASINO9_9693
goto @CASINO9_9793

:CASINO9_9700
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @CASINO9_9793
  slide_object 164@ {posX} 0.5 {posY} 166@ {posZ} 167@ {speedX} 0.09 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ > 0.5
  180@ == 0
goto_if_false @CASINO9_9793
set_heading_for_attached_player $player1 {heading} 150.0 {headingRange} 9.0

:CASINO9_9793
goto @CASINO9_10093

:CASINO9_9800
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
goto_if_false @CASINO9_9900
  slide_object 164@ {posX} 1.7 {posY} 166@ {posZ} 167@ {speedX} 0.09 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ <> 1.7
  180@ == 0
goto_if_false @CASINO9_9893
set_heading_for_attached_player $player1 {heading} 90.0 {headingRange} 9.0

:CASINO9_9893
goto @CASINO9_10093

:CASINO9_9900
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if 
  0 > $LStickX
goto_if_false @CASINO9_10017
  slide_object 164@ {posX} 2.9 {posY} 166@ {posZ} 167@ {speedX} 0.09 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  2.9 > 165@
  180@ == 0
goto_if_false @CASINO9_10010
set_heading_for_attached_player $player1 {heading} 30.0 {headingRange} 9.0

:CASINO9_10010
goto @CASINO9_10093

:CASINO9_10017
  slide_object 164@ {posX} 0.5 {posY} 166@ {posZ} 167@ {speedX} 0.09 {speedY} 0.0 {speedZ} 0.0 {collisionCheck} False
if and
  165@ > 0.5
  180@ == 0
goto_if_false @CASINO9_10093
set_heading_for_attached_player $player1 {heading} 150.0 {headingRange} 9.0

:CASINO9_10093
return 

:CASINO9_10095
switch_start 179@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @CASINO9_10325 {caseNum1} 0 {caseLabel1} @CASINO9_10158 {caseNum2} 1 {caseLabel2} @CASINO9_10200 {caseNum3} 2 {caseLabel3} @CASINO9_10283 {caseNum4} -1 {caseLabel4} @CASINO9_10325 {caseNum5} -1 {caseLabel5} @CASINO9_10325 {caseNum6} -1 {caseLabel6} @CASINO9_10325 {caseNum7} -1 {caseLabel7} @CASINO9_10325

:CASINO9_10158
if 
  178@ >= 6000
goto_if_false @CASINO9_10193
clear_help 
179@ += 1
178@ = 0

:CASINO9_10193
goto @CASINO9_10325

:CASINO9_10200
if 
  162@ == 0
goto_if_false @CASINO9_10269
if 
  178@ > 20000
goto_if_false @CASINO9_10262
print_help_forever 'CAS9_H2'
179@ += 1
178@ = 0

:CASINO9_10262
goto @CASINO9_10276

:CASINO9_10269
178@ = 0

:CASINO9_10276
goto @CASINO9_10325

:CASINO9_10283
if 
  178@ > 6000
goto_if_false @CASINO9_10318
clear_help 
179@ -= 1
178@ = 0

:CASINO9_10318
goto @CASINO9_10325

:CASINO9_10325
return 

:CASINO9_10327
switch_start 181@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASINO9_10540 {caseNum1} 0 {caseLabel1} @CASINO9_10390 {caseNum2} 1 {caseLabel2} @CASINO9_10493 {caseNum3} -1 {caseLabel3} @CASINO9_10540 {caseNum4} -1 {caseLabel4} @CASINO9_10540 {caseNum5} -1 {caseLabel5} @CASINO9_10540 {caseNum6} -1 {caseLabel6} @CASINO9_10540 {caseNum7} -1 {caseLabel7} @CASINO9_10540

:CASINO9_10390
if 
  4 > 182@
goto_if_false @CASINO9_10472
set_var_int_to_lvar_int $load_sample = 184@(182@,4i)
set_var_text_label s$load_text = 208@(182@,4s)
start_new_script @A_ALAP 2 100 188@(182@,4i) 
182@ += 1
181@ += 1
goto @CASINO9_10493

:CASINO9_10472
TIMERB = 0
181@ = 2
goto @CASINO9_10540

:CASINO9_10493
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @CASINO9_10533
181@ -= 1
$SLOT_status($preload_slot,2i) = -4

:CASINO9_10533
goto @CASINO9_10540

:CASINO9_10540
return 

:CASINO9_10542
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO9_10567
$SLOT_status[0] = -2

:CASINO9_10567
if 
  0 <= $SLOT_status[0]
goto_if_false @CASINO9_10592
$SLOT_status[1] = -2

:CASINO9_10592
clear_prints 
clear_help 
request_model 61

:CASINO9_10600
if 
  not has_model_loaded 61
goto_if_false @CASINO9_10626
wait 0
goto @CASINO9_10600

:CASINO9_10626
TIMERA = 0

:CASINO9_10633
if 
  1000 > TIMERA
goto_if_false @CASINO9_10663
wait 0
goto @CASINO9_10633

:CASINO9_10663
do_fade 500 {direction} Fade.Out

:CASINO9_10670
if 
  get_fading_status 
goto_if_false @CASINO9_10694
wait 0
goto @CASINO9_10670

:CASINO9_10694
detach_char_from_car $scplayer
set_player_control $player1 {state} False
switch_widescreen True
freeze_char_position $scplayer {state} False
set_fixed_camera_position 2.7271 {y} 24.965 {z} 1201.535 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2.422 {y} 25.7162 {z} 1200.95 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1.8227 {y} 31.0635 {z} 1198.609
set_char_heading $scplayer {heading} 180.0
set_object_coordinates 164@ {x} 1.7 {y} 26.8 {z} 1198.75
44@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stand_still -1 {time} 1000
task_go_straight_to_coord -1 {x} 1.7221 {y} 26.7679 {z} 1198.6021 {speed} MoveState.Walk {time} -1
close_sequence_task 44@
perform_sequence_task $scplayer {sequence} 44@
clear_sequence_task 44@
do_fade 500 {direction} Fade.In
TIMERA = 0

:CASINO9_10891
if 
  3000 > TIMERA
goto_if_false @CASINO9_10921
wait 0
goto @CASINO9_10891

:CASINO9_10921
40@ = create_char PedType.Mission1 {modelId} 61 {x} 1.881 {y} 34.9202 {z} 1198.6021
set_char_heading 40@ {heading} 180.0
give_weapon_to_char 40@ {weaponType} WeaponType.Pistol {ammo} 3000
set_current_char_weapon 40@ {weaponType} WeaponType.Pistol
set_char_drops_weapons_when_dead 40@ {state} False
set_char_shoot_rate 40@ {rate} 70
set_char_accuracy 40@ {accuracy} 65
set_char_decision_maker 40@ {handleOrTemplate} 49@
set_char_never_targetted 40@ {state} True
task_stay_in_same_place 40@ {state} True
task_go_to_coord_any_means 40@ {x} 1.7462 {y} 32.3896 {z} 1198.6021 {speed} MoveState.Walk {vehicle} -1
TIMERA = 0

:CASINO9_11046
if 
  3000 > TIMERA
goto_if_false @CASINO9_11076
wait 0
goto @CASINO9_11046

:CASINO9_11076
do_fade 500 {direction} Fade.Out

:CASINO9_11083
if 
  get_fading_status 
goto_if_false @CASINO9_11107
wait 0
goto @CASINO9_11083

:CASINO9_11107
restore_camera 
task_toggle_duck $scplayer {state} False
clear_char_tasks_immediately $scplayer
attach_char_to_object $scplayer {handle} 164@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.5 {heading} Facing.Forward {headingRange} 85.0 {weaponType} WeaponType.Pistol
set_heading_for_attached_player $player1 {heading} 270.0 {headingRange} 270.0
freeze_char_position $scplayer {state} True
set_player_control $player1 {state} True
switch_widescreen False
do_fade 0 {direction} Fade.In
232@ = 0
set_var_int_to_constant $load_sample = 8412
set_var_text_label s$load_text = 'CAS9_DA'
start_new_script @A_ALAP 2 100 40@ 
if 
  not is_char_dead 40@
goto_if_false @CASINO9_11260
task_kill_char_on_foot 40@ {target} $scplayer

:CASINO9_11260
wait 0
if 
  is_char_dead 40@
goto_if_false @CASINO9_11287
goto @CASINO9_11294

:CASINO9_11287
goto @CASINO9_11260

:CASINO9_11294
request_model 519

:CASINO9_11299
if 
  not has_model_loaded 519
goto_if_false @CASINO9_11326
wait 0
goto @CASINO9_11299

:CASINO9_11326
TIMERA = 0

:CASINO9_11333
if 
  1000 > TIMERA
goto_if_false @CASINO9_11363
wait 0
goto @CASINO9_11333

:CASINO9_11363
do_fade 500 {direction} Fade.Out

:CASINO9_11370
if 
  get_fading_status 
goto_if_false @CASINO9_11394
wait 0
goto @CASINO9_11370

:CASINO9_11394
freeze_char_position $scplayer {state} False
detach_char_from_car $scplayer
set_player_control $player1 {state} False
switch_widescreen True
display_radar True
set_fixed_camera_position 3.0968 {y} 36.596 {z} 1200.369 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2.4708 {y} 35.9141 {z} 1199.991 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1.7462 {y} 32.3896 {z} 1198.6021
set_char_heading $scplayer {heading} 0.0
44@ = open_sequence_task 
task_stand_still -1 {time} 550
task_go_to_coord_any_means -1 {x} 1.7037 {y} 34.9246 {z} 1198.6021 {speed} MoveState.Walk {vehicle} -1
close_sequence_task 44@
perform_sequence_task $scplayer {sequence} 44@
clear_sequence_task 44@
do_fade 500 {direction} Fade.In
TIMERA = 0

:CASINO9_11569
if 
  2500 > TIMERA
goto_if_false @CASINO9_11599
wait 0
goto @CASINO9_11569

:CASINO9_11599
do_fade 500 {direction} Fade.Out

:CASINO9_11606
if 
  get_fading_status 
goto_if_false @CASINO9_11630
wait 0
goto @CASINO9_11606

:CASINO9_11630
mark_char_as_no_longer_needed 108@
mark_char_as_no_longer_needed 109@
mark_char_as_no_longer_needed 110@
mark_char_as_no_longer_needed 111@
mark_char_as_no_longer_needed 40@
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed #JET_INTERIOR
delete_object 164@
delete_object 168@
delete_object 169@
delete_object 170@
mark_model_as_no_longer_needed #JET_BAGGAGE_DOOR
mark_model_as_no_longer_needed #CARDBOARDBOX2
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
load_scene 1405.0 {y} 6000.0 {z} 210.0
request_collision 1405.0 {y} 6000.0
38@ = create_car 519 {x} 1405.0 {y} 6000.0 {z} 210.0
set_car_heading 38@ {heading} 210.0
set_vehicle_area_visible 38@ {interiorId} 0
warp_char_into_car $scplayer {vehicle} 38@
set_car_forward_speed 38@ {forwardSpeed} 45.0
set_plane_undercarriage_up 38@ {state} True
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
display_zone_names True
do_fade 100 {direction} Fade.In
43@ = add_blip_for_coord 1476.219 {y} 1463.623 {z} 9.8203
233@ = 1
234@ = 1
set_max_wanted_level 6
print_now 'CAS9_41' {time} 8000 {flag} 1

:CASINO9_11894
wait 0
if 
  not is_car_dead 38@
goto_if_false @CASINO9_12170
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @CASINO9_12008
if 
  233@ == 0
goto_if_false @CASINO9_12001
clear_prints 
print_now 'CAS9_41' {time} 8000 {flag} 1
remove_blip 43@
43@ = add_blip_for_coord 1476.219 {y} 1463.623 {z} 9.8203
233@ = 1

:CASINO9_12001
goto @CASINO9_12071

:CASINO9_12008
if 
  233@ == 1
goto_if_false @CASINO9_12071
clear_prints 
print_now 'IN_VEH' {time} 8000 {flag} 1
remove_blip 43@
43@ = add_blip_for_car 38@
set_blip_as_friendly 43@ {state} True
233@ = 0

:CASINO9_12071
if and
  is_car_stopped_in_area_3d 38@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
  is_char_in_area_3d $scplayer {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASINO9_12163
goto @CASINO9_12440

:CASINO9_12163
goto @CASINO9_12198

:CASINO9_12170
50@ = 1
set_lvar_text_label 51@s = 'CAS9_F1'
goto @CASINO9_12205

:CASINO9_12198
goto @CASINO9_11894

:CASINO9_12205
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} False
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  50@ == 1
goto_if_false @CASINO9_12261
print_now 51@s {time} 6000 {flag} 1

:CASINO9_12261
236@ = 0
if 
  is_char_in_any_car $scplayer
goto_if_false @CASINO9_12322
235@ = store_car_char_is_in_no_save $scplayer
if 
  is_car_in_water 235@
goto_if_false @CASINO9_12315
236@ = 1

:CASINO9_12315
goto @CASINO9_12398

:CASINO9_12322
if 
  not is_player_using_jetpack $player1
goto_if_false @CASINO9_12398
if 
  is_char_in_water $scplayer
goto_if_false @CASINO9_12368
236@ = 1
goto @CASINO9_12398

:CASINO9_12368
if and
  is_char_in_air $scplayer
  0 >= $player_fall_state
goto_if_false @CASINO9_12398
236@ = 1

:CASINO9_12398
if 
  236@ == 1
goto_if_false @CASINO9_12438
set_up_skip_after_mission 2097.009 {y} 1728.285 {z} 9.8203 {heading} 169.1748

:CASINO9_12438
return 

:CASINO9_12440
$flag_casino_mission_counter += 1
register_mission_passed 'CASINO9'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 15000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 15000
award_player_mission_respect 30
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $casino_contact_blip
return 

:CASINO9_12509
if 
  72@ == 1
goto_if_false @CASINO9_12534
detach_char_from_car $scplayer
restore_camera_jumpcut 

:CASINO9_12534
display_zone_names True
if 
  is_player_playing $player1
goto_if_false @CASINO9_12565
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:CASINO9_12565
start_new_script @A_TERM 
remove_animation "MISC"
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 593
mark_model_as_no_longer_needed 519
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #SMLPLANE_DOOR
mark_model_as_no_longer_needed #JET_DOOR
mark_model_as_no_longer_needed #JET_BAGGAGE_DOOR
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed #JET_INTERIOR
mark_char_as_no_longer_needed 108@
mark_char_as_no_longer_needed 109@
mark_char_as_no_longer_needed 110@
mark_char_as_no_longer_needed 111@
mark_char_as_no_longer_needed 40@
mark_car_as_no_longer_needed 34@
mark_car_as_no_longer_needed 38@
mark_object_as_no_longer_needed 168@
mark_object_as_no_longer_needed 169@
mark_object_as_no_longer_needed 170@
mark_object_as_no_longer_needed 164@
set_max_wanted_level 6
switch_ambient_planes True
remove_blip 35@
remove_blip 43@
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 92---------------
// Originally: Saint Mark's Bistro

:CASIN10
script_name 'CASIN10'
gosub @CASIN10_294
if 
  has_deatharrest_been_executed 
goto_if_false @CASIN10_38
gosub @CASIN10_15190

:CASIN10_38
gosub @CASIN10_15491
terminate_this_script 

:CASIN10_47
switch_start 134@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @CASIN10_292 {caseNum1} 0 {caseLabel1} @CASIN10_110 {caseNum2} 1 {caseLabel2} @CASIN10_212 {caseNum3} -1 {caseLabel3} @CASIN10_292 {caseNum4} -1 {caseLabel4} @CASIN10_292 {caseNum5} -1 {caseLabel5} @CASIN10_292 {caseNum6} -1 {caseLabel6} @CASIN10_292 {caseNum7} -1 {caseLabel7} @CASIN10_292

:CASIN10_110
set_var_text_label s$casino10_chat[0] = 'CAS11BA'
set_var_text_label s$casino10_chat[1] = 'CAS11BB'
set_var_text_label s$casino10_chat[2] = 'CAS11BC'
set_var_text_label s$casino10_chat[3] = 'CAS11CA'
set_lvar_int_to_constant 135@ = 7204
set_lvar_int_to_constant 136@ = 7205
set_lvar_int_to_constant 137@ = 7206
set_lvar_int_to_constant 138@ = 7207
$cell_index_end = 3
goto @CASIN10_292

:CASIN10_212
set_var_text_label s$casino10_chat[0] = 'CAS11GA'
set_var_text_label s$casino10_chat[1] = 'CAS11GB'
set_var_text_label s$casino10_chat[2] = 'CAS11GC'
set_lvar_int_to_constant 135@ = 7218
set_lvar_int_to_constant 136@ = 7219
set_lvar_int_to_constant 137@ = 7220
$cell_index_end = 2
goto @CASIN10_292

:CASIN10_292
return 

:CASIN10_294
register_mission_given 
$onmission = 1
36@ = 0
43@ = 0
42@ = 0
44@ = 0
45@ = 0
46@ = 1000
48@ = 0
49@ = 0
51@ = 0
52@ = 0
54@ = 0
55@ = 0
57@ = 0
58@ = 0
60@ = 0
61@ = 0
63@ = 0
64@ = 0
66@ = 0
68@ = 0
70@ = 0
72@ = 0
99@ = 0.0
83@ = 0
83@ = 0
88@ = 0
89@ = 0
91@ = 0
92@ = 0
94@ = 0
95@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
127@ = 0
128@ = 0
129@ = 0
76@ = 0
74@ = 0
80@ = 0
78@ = 0
82@ = 0
85@ = 0
152@ = 0
153@ = 0
155@ = 0
157@ = 0
154@ = 0
156@ = 0
158@ = 0
159@ = 0
load_mission_text 'CASIN10'
wait 0
clear_area 2163.5891 {y} 1682.2469 {z} 9.86 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2163.5891 {y} 1682.2469 {z} 9.86
set_char_heading $scplayer {heading} 80.0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$iTerminateAllAmbience = 1
set_area_visible 2
load_cutscene 'CAS_11A'

:CASIN10_783
if 
  not has_cutscene_loaded 
goto_if_false @CASIN10_807
wait 0
goto @CASIN10_783

:CASIN10_807
start_cutscene 
do_fade 1000 {direction} Fade.In

:CASIN10_816
if 
  not has_cutscene_finished 
goto_if_false @CASIN10_840
wait 0
goto @CASIN10_816

:CASIN10_840
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:CASIN10_853
if 
  get_fading_status 
goto_if_false @CASIN10_877
wait 0
goto @CASIN10_853

:CASIN10_877
clear_cutscene 
set_area_visible 0
$iTerminateAllAmbience = 0
set_wanted_multiplier 0.5
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 10.0
wait 1000
request_model 519
request_model 405
load_special_character 1 {modelName} 'MACCER'
load_special_character 2 {modelName} 'PAUL'
load_special_character 3 {modelName} 'ROSE'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7200
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7201
goto @CASIN10_1146
96@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 96@
97@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 97@
98@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 98@
38@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 38@
39@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
close_sequence_task 39@
123@ = create_car 405 {x} 0.0 {y} 0.0 {z} 0.0
delete_car 123@
113@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
remove_blip 113@

:CASIN10_1146
105@ = load_char_decision_maker DecisionMakerType.Tough
106@ = load_char_decision_maker DecisionMakerType.Tough
add_char_decision_maker_event_response 106@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
110@ = load_char_decision_maker DecisionMakerType.Empty
load_all_models_now 

:CASIN10_1203
if or
  not has_model_loaded 519
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_model_loaded 405
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @CASIN10_1251
wait 0
goto @CASIN10_1203

:CASIN10_1251
if 
  not has_special_character_loaded 3
goto_if_false @CASIN10_1277
wait 0
goto @CASIN10_1251

:CASIN10_1277
clear_area 2163.5891 {y} 1682.2469 {z} 9.86 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2163.5891 {y} 1682.2469 {z} 9.86
set_char_heading $scplayer {heading} 80.0
shut_char_up_for_scripted_speech $scplayer {state} True
load_scene 2163.5891 {y} 1682.2469 {z} 9.86
switch_roads_off 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_off 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
107@ = create_char PedType.Mission1 {modelId} 290 {x} 2162.2129 {y} 1682.752 {z} 9.86
set_char_decision_maker 107@ {handleOrTemplate} 110@
set_char_heading 107@ {heading} 280.0
set_char_only_damaged_by_player 107@ {state} True
task_turn_char_to_face_char 107@ {target} $scplayer
set_char_proofs 107@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 107@ {state} True
clear_area 2160.582 {y} 1682.103 {z} 9.735 {radius} 4.0 {clearParticles} True
111@ = create_car 405 {x} 2160.582 {y} 1682.103 {z} 9.735
set_car_heading 111@ {heading} 0.0
set_car_only_damaged_by_player 111@ {state} True
set_car_proofs 111@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
109@ = create_char_as_passenger 111@ {pedType} PedType.Mission1 {modelId} 292 {seat} SeatId.RearLeft
set_char_decision_maker 109@ {handleOrTemplate} 110@
set_char_only_damaged_by_player 109@ {state} True
set_char_proofs 109@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 109@ {state} True
108@ = create_char_inside_car 111@ {pedType} PedType.Mission1 {modelId} 291
set_char_decision_maker 108@ {handleOrTemplate} 110@
set_char_only_damaged_by_player 108@ {state} True
set_char_proofs 108@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 108@ {state} True
car_set_idle 111@
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2165.228 {fromY} 1680.256 {fromZ} 9.9643 {toX} 2164.9751 {toY} 1684.109 {toZ} 11.4927 {time} 14500 {ease} True
camera_set_vector_track 2162.2739 {fromY} 1682.2469 {fromZ} 11.86 {toX} 2160.582 {toY} 1682.103 {toZ} 11.0 {time} 14500 {ease} True
set_fading_colour 0 {g} 0 {b} 0
switch_widescreen True
make_player_gang_disappear 
do_fade 2000 {direction} Fade.In
clear_area 2162.2739 {y} 1682.2469 {z} 9.86 {radius} 120.0 {clearParticles} True

:CASIN10_1814
if 
  get_fading_status 
goto_if_false @CASIN10_1838
wait 0
goto @CASIN10_1814

:CASIN10_1838
skip_cutscene_start_internal @CASIN10_3929
if 
  is_player_playing $player1
goto_if_false @CASIN10_1934
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS11AA' {time} 10000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999
task_play_anim_non_interruptable $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CASIN10_1953

:CASIN10_1934
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AA'

:CASIN10_1953
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASIN10_2182
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_2018
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_2023

:CASIN10_2018
clear_char_tasks 107@

:CASIN10_2023
if 
  is_char_dead 108@
goto_if_false @CASIN10_2062
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2062
if 
  is_char_dead 109@
goto_if_false @CASIN10_2101
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2101
if 
  is_car_dead 111@
goto_if_false @CASIN10_2140
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2140
if 
  not is_player_playing $player1
goto_if_false @CASIN10_2175
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AA'

:CASIN10_2175
goto @CASIN10_1953

:CASIN10_2182
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'CAS11AA'
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7202
play_mission_audio MissionAudioSlot.Slot2
print_now 'CAS11AB' {time} 10000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999

:CASIN10_2239
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASIN10_2472
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_2308
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_2313

:CASIN10_2308
clear_char_tasks 107@

:CASIN10_2313
if 
  is_char_dead 108@
goto_if_false @CASIN10_2352
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2352
if 
  is_char_dead 109@
goto_if_false @CASIN10_2391
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2391
if 
  is_car_dead 111@
goto_if_false @CASIN10_2430
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2430
if 
  not is_player_playing $player1
goto_if_false @CASIN10_2465
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AB'

:CASIN10_2465
goto @CASIN10_2239

:CASIN10_2472
clear_char_tasks $scplayer
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AB'
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7203
if 
  not is_char_dead 107@
goto_if_false @CASIN10_2593
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS11AC' {time} 10000 {flag} 1
start_char_facial_talk 107@ {duration} 999999
task_play_anim_non_interruptable 107@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @CASIN10_2616

:CASIN10_2593
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2616
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @CASIN10_2821
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_2697
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AC'
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2697
if 
  is_char_dead 108@
goto_if_false @CASIN10_2736
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2736
if 
  is_char_dead 109@
goto_if_false @CASIN10_2775
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2775
if 
  is_car_dead 111@
goto_if_false @CASIN10_2814
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2814
goto @CASIN10_2616

:CASIN10_2821
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'CAS11AC'
if 
  not is_char_dead 107@
goto_if_false @CASIN10_2869
stop_char_facial_talk 107@
clear_char_tasks 107@
goto @CASIN10_2892

:CASIN10_2869
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_2892
if 
  not is_char_dead 109@
goto_if_false @CASIN10_2955
task_look_at_char 109@ {target} $scplayer {time} -2
play_mission_audio MissionAudioSlot.Slot2
print_now 'CAS11AD' {time} 10000 {flag} 1
start_char_facial_talk 109@ {duration} 999999
goto @CASIN10_2997

:CASIN10_2955
print_now 'CM10_13' {time} 8000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AD'
goto @CASIN10_15190

:CASIN10_2997
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @CASIN10_3198
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_3055
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3055
if 
  is_char_dead 108@
goto_if_false @CASIN10_3094
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3094
if 
  is_char_dead 109@
goto_if_false @CASIN10_3152
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AC'
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3152
if 
  is_car_dead 111@
goto_if_false @CASIN10_3191
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3191
goto @CASIN10_2997

:CASIN10_3198
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'CAS11AD'
if 
  not is_char_dead 109@
goto_if_false @CASIN10_3246
stop_char_facial_talk 109@
clear_look_at 109@
goto @CASIN10_3269

:CASIN10_3246
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3269
if 
  not is_car_dead 111@
goto_if_false @CASIN10_3468
if 
  not is_char_dead 107@
goto_if_false @CASIN10_3321
task_enter_car_as_passenger 107@ {vehicle} 111@ {time} 10000 {seat} SeatId.BikeRear
goto @CASIN10_3344

:CASIN10_3321
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3344
if 
  is_char_dead 107@
goto_if_false @CASIN10_3383
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3383
if 
  is_char_dead 109@
goto_if_false @CASIN10_3422
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3422
if 
  is_char_dead 108@
goto_if_false @CASIN10_3461
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3461
goto @CASIN10_3491

:CASIN10_3468
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3491
if or
  not is_char_in_car 107@ {vehicle} 111@
  not is_char_in_car 108@ {vehicle} 111@
  not is_char_in_car 109@ {vehicle} 111@
goto_if_false @CASIN10_3693
wait 0
if 
  is_char_dead 107@
goto_if_false @CASIN10_3569
print_now 'CM10_11' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3569
if 
  is_char_dead 108@
goto_if_false @CASIN10_3608
print_now 'CM10_12' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3608
if 
  is_char_dead 109@
goto_if_false @CASIN10_3647
print_now 'CM10_13' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3647
if 
  is_car_dead 111@
goto_if_false @CASIN10_3686
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3686
goto @CASIN10_3491

:CASIN10_3693
if 
  not is_car_dead 111@
goto_if_false @CASIN10_3753
car_goto_coordinates 111@ {x} 2148.0481 {y} 1703.4659 {z} 9.727
set_car_driving_style 111@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 111@ {maxSpeed} 30.0
goto @CASIN10_3776

:CASIN10_3753
print_now 'CM10_14' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_3776
wait 2000
delete_char 107@
delete_char 108@
delete_char 109@
delete_car 111@
shut_char_up_for_scripted_speech $scplayer {state} False
mark_model_as_no_longer_needed 405
switch_widescreen False
make_player_gang_reappear 
set_player_control $player1 {state} True
set_camera_behind_player 
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
unload_special_character 1
unload_special_character 2
unload_special_character 3
switch_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
114@ = 1

:CASIN10_3929
skip_cutscene_end 
if 
  114@ == 0
goto_if_false @CASIN10_4237
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASIN10_3974
if 
  get_fading_status 
goto_if_false @CASIN10_3998
wait 0
goto @CASIN10_3974

:CASIN10_3998
make_player_gang_reappear 
clear_area 2163.5891 {y} 1682.2469 {z} 9.86 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2163.5891 {y} 1682.2469 {z} 9.86
set_char_heading $scplayer {heading} 80.0
delete_char 107@
delete_char 108@
delete_char 109@
delete_car 111@
shut_char_up_for_scripted_speech $scplayer {state} False
mark_model_as_no_longer_needed 405
unload_special_character 1
unload_special_character 2
unload_special_character 3
switch_widescreen False
camera_reset_new_scriptables 
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
clear_char_tasks_immediately $scplayer
switch_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
do_fade 1000 {direction} Fade.In

:CASIN10_4192
if 
  get_fading_status 
goto_if_false @CASIN10_4216
wait 0
goto @CASIN10_4192

:CASIN10_4216
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False

:CASIN10_4237
print_now 'CM10_1' {time} 10000 {flag} 1
35@ = add_blip_for_coord 1707.828 {y} 1606.639 {z} 9.055
clear_area 1707.828 {y} 1606.639 {z} 9.055 {radius} 2.0 {clearParticles} False

:CASIN10_4297
if 
  not locate_char_any_means_3d $scplayer {x} 1707.828 {y} 1606.639 {z} 9.055 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CASIN10_4378
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CASIN10_4371
goto @CASIN10_15339

:CASIN10_4371
goto @CASIN10_4297

:CASIN10_4378
remove_blip 35@
print_now 'CM10_10' {time} 10000 {flag} 1
clear_area 1479.714 {y} 1758.306 {z} 12.098 {radius} 2.0 {clearParticles} True
112@ = create_car 519 {x} 1479.714 {y} 1758.306 {z} 12.098
set_car_only_damaged_by_player 112@ {state} True
set_car_heading 112@ {heading} 180.0
34@ = add_blip_for_car 112@
set_blip_as_friendly 34@ {state} True

:CASIN10_4478
if 
  not is_char_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_4552
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_4545
print_now 'CM10_17' {time} 8000 {flag} 1
remove_blip 34@
goto @CASIN10_15190

:CASIN10_4545
goto @CASIN10_4478

:CASIN10_4552
if 
  not is_car_dead 112@
goto_if_false @CASIN10_4582
set_car_only_damaged_by_player 112@ {state} False
goto @CASIN10_4610

:CASIN10_4582
print_now 'CM10_17' {time} 8000 {flag} 1
remove_blip 34@
goto @CASIN10_15190

:CASIN10_4610
remove_blip 34@
print_now 'CM10_18' {time} 8000 {flag} 1
126@ = add_blip_for_coord 7500.0 {y} 2478.3401 {z} 200.0
TIMERA = 0

:CASIN10_4658
if or
  not locate_char_in_car_3d $scplayer {x} 7500.0 {y} 2478.3401 {z} 200.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 200.0 {drawSphere} False
  not is_char_sitting_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_4995
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_4764
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_4988

:CASIN10_4764
if 
  is_char_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_4920
if 
  159@ == 0
goto_if_false @CASIN10_4840
if 
  TIMERA > 40000
goto_if_false @CASIN10_4840
print_help 'CM10_99'
159@ = 1

:CASIN10_4840
if 
  129@ == 1
goto_if_false @CASIN10_4913
print_now 'CM10_18' {time} 8000 {flag} 1
126@ = add_blip_for_coord 7500.0 {y} 2478.3401 {z} 200.0
remove_blip 34@
$blob_flag = 1
129@ = 0

:CASIN10_4913
goto @CASIN10_4988

:CASIN10_4920
if 
  129@ == 0
goto_if_false @CASIN10_4988
remove_blip 126@
34@ = add_blip_for_car 112@
set_blip_as_friendly 34@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
$blob_flag = 0
129@ = 1

:CASIN10_4988
goto @CASIN10_4658

:CASIN10_4995
remove_blip 126@
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:CASIN10_5015
if 
  get_fading_status 
goto_if_false @CASIN10_5039
wait 0
goto @CASIN10_5015

:CASIN10_5039
set_area_name 'MARKS'
make_player_gang_disappear 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
clear_wanted_level $player1
set_max_wanted_level 0
set_respawn_point_for_duration_of_mission 1578.446 {y} 1770.682 {z} 9.8358
force_weather_now WeatherType.SunnySf
request_model 124
request_model 346
request_model 420
request_model 405
request_car_recording 602
request_car_recording 603
request_model 17
request_model 150
load_all_models_now 

:CASIN10_5143
if or
  not has_model_loaded 124
  not has_model_loaded 346
  not has_model_loaded 420
  not has_model_loaded 405
  not has_car_recording_been_loaded 602
  not has_car_recording_been_loaded 603
goto_if_false @CASIN10_5194
wait 0
goto @CASIN10_5143

:CASIN10_5194
if or
  not has_model_loaded 17
  not has_model_loaded 150
goto_if_false @CASIN10_5225
wait 0
goto @CASIN10_5194

:CASIN10_5225
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
request_collision -811.999 {y} 457.027
load_scene_in_direction -811.999 {y} 457.027 {z} 1356.6219 {heading} 82.0
load_all_models_now 
if 
  is_char_in_any_car $scplayer
goto_if_false @CASIN10_5335
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
warp_char_from_car_to_coord $scplayer {x} -813.833 {y} 459.11 {z} 998.989
clear_char_tasks_immediately $scplayer
goto @CASIN10_5375

:CASIN10_5335
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -813.833 {y} 459.11 {z} 998.989

:CASIN10_5375
set_camera_behind_player 
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
delete_car 112@
mark_model_as_no_longer_needed 519
161@ = create_car 420 {x} -811.999 {y} 457.027 {z} 1356.6219
set_car_heading 161@ {heading} 270.0
set_vehicle_area_visible 161@ {interiorId} 1
set_car_only_damaged_by_player 161@ {state} True
160@ = create_char_inside_car 161@ {pedType} PedType.CivMale {modelId} 124
set_char_area_visible 160@ {areaId} 1
car_set_idle 161@
warp_char_into_car_as_passenger $scplayer {handle} 161@ {seat} SeatId.RearLeft
163@ = create_car 405 {x} -729.2895 {y} 514.4813 {z} 1370.969
set_car_heading 163@ {heading} 161.5196
set_vehicle_area_visible 163@ {interiorId} 1
set_car_only_damaged_by_player 163@ {state} True
164@ = create_char_inside_car 163@ {pedType} PedType.CivMale {modelId} 124
set_char_area_visible 164@ {areaId} 1
car_set_idle 163@

:CASIN10_5553
if 
  not is_car_waiting_for_world_collision 161@
goto_if_false @CASIN10_5612
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_5589

:CASIN10_5589
if 
  is_car_dead 163@
goto_if_false @CASIN10_5605

:CASIN10_5605
goto @CASIN10_5553

:CASIN10_5612
165@ = create_char PedType.CivMale {modelId} 17 {x} -864.653 {y} 451.569 {z} 1348.584
task_wander_standard 165@
166@ = create_char PedType.CivFemale {modelId} 150 {x} -884.251 {y} 466.693 {z} 1346.577
task_wander_standard 166@
167@ = create_char PedType.CivMale {modelId} 17 {x} -857.588 {y} 467.419 {z} 1349.29
task_wander_standard 167@
168@ = create_char PedType.CivFemale {modelId} 150 {x} -814.46 {y} 466.873 {z} 1356.137
task_wander_standard 168@
169@ = create_char PedType.CivMale {modelId} 17 {x} -781.615 {y} 468.628 {z} 1363.266
task_wander_standard 169@
170@ = create_char PedType.CivFemale {modelId} 150 {x} -737.431 {y} 503.6 {z} 1370.968
task_wander_standard 170@
171@ = create_char PedType.CivMale {modelId} 17 {x} -738.769 {y} 476.826 {z} 1370.306
task_wander_standard 171@
172@ = create_char PedType.CivFemale {modelId} 150 {x} -771.993 {y} 456.237 {z} 1364.4449
task_wander_standard 172@
173@ = create_char PedType.CivMale {modelId} 17 {x} -799.539 {y} 453.03 {z} 1359.074
task_wander_standard 173@
174@ = create_char PedType.CivFemale {modelId} 150 {x} -753.076 {y} 484.357 {z} 1369.885
task_wander_standard 174@
set_fixed_camera_position -751.2452 {y} 449.8578 {z} 1370.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -752.1519 {y} 450.2614 {z} 1370.3781 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 161@
goto_if_false @CASIN10_5992
start_playback_recorded_car 161@ {path} 602
set_playback_speed 161@ {speed} 1.1

:CASIN10_5992
if 
  not is_car_dead 163@
goto_if_false @CASIN10_6026
start_playback_recorded_car 163@ {path} 603
set_playback_speed 163@ {speed} 1.1

:CASIN10_6026
wait 800
if 
  is_car_dead 161@
goto_if_false @CASIN10_6052
stop_playback_recorded_car 161@

:CASIN10_6052
if 
  is_car_dead 163@
goto_if_false @CASIN10_6073
stop_playback_recorded_car 163@

:CASIN10_6073
set_fading_colour 0 {g} 0 {b} 0
switch_widescreen True
do_fade 2000 {direction} Fade.In
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -751.2452 {fromY} 449.8578 {fromZ} 1370.5 {toX} -730.0718 {toY} 483.3791 {toZ} 1373.472 {time} 8600 {ease} True
camera_set_vector_track -752.1519 {fromY} 450.2614 {fromZ} 1370.3781 {toX} -730.9146 {toY} 483.9166 {toZ} 1373.496 {time} 8600 {ease} True

:CASIN10_6176
if 
  get_fading_status 
goto_if_false @CASIN10_6200
wait 0
goto @CASIN10_6176

:CASIN10_6200
set_player_is_in_stadium True
hide_all_frontend_blips True
if 
  is_car_dead 161@
goto_if_false @CASIN10_6229
stop_playback_recorded_car 161@

:CASIN10_6229
if 
  is_car_dead 163@
goto_if_false @CASIN10_6250
stop_playback_recorded_car 163@

:CASIN10_6250
skip_cutscene_start_internal @CASIN10_6465

:CASIN10_6257
if 
  is_playback_going_on_for_car 161@
goto_if_false @CASIN10_6326
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_6298
stop_playback_recorded_car 161@

:CASIN10_6298
if 
  is_car_dead 163@
goto_if_false @CASIN10_6319
stop_playback_recorded_car 163@

:CASIN10_6319
goto @CASIN10_6257

:CASIN10_6326
162@ = open_sequence_task 
if 
  not is_car_dead 161@
goto_if_false @CASIN10_6354
task_leave_car -1 {vehicle} 161@

:CASIN10_6354
task_go_straight_to_coord -1 {x} -760.2046 {y} 492.1819 {z} 1370.677 {speed} MoveState.Walk {time} 10000
close_sequence_task 162@
perform_sequence_task $scplayer {sequence} 162@
clear_sequence_task 162@
TIMERA = 0

:CASIN10_6403
if 
  3000 > TIMERA
goto_if_false @CASIN10_6465
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_6442

:CASIN10_6442
if 
  is_car_dead 163@
goto_if_false @CASIN10_6458

:CASIN10_6458
goto @CASIN10_6403

:CASIN10_6465
skip_cutscene_end 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASIN10_6482
if 
  get_fading_status 
goto_if_false @CASIN10_6506
wait 0
goto @CASIN10_6482

:CASIN10_6506
set_weather_to_appropriate_type_now 
clear_char_tasks_immediately $scplayer
clear_sequence_task 162@
if 
  not is_car_dead 161@
goto_if_false @CASIN10_6669
stop_playback_recorded_car 161@
if 
  is_char_in_car $scplayer {vehicle} 161@
goto_if_false @CASIN10_6669
warp_char_from_car_to_coord $scplayer {x} -760.2046 {y} 492.1819 {z} 1370.677

:CASIN10_6578
if 
  is_char_in_any_car $scplayer
goto_if_false @CASIN10_6669
wait 0
if 
  is_car_dead 161@
goto_if_false @CASIN10_6614

:CASIN10_6614
if 
  is_car_dead 163@
goto_if_false @CASIN10_6630

:CASIN10_6630
if 
  is_char_dead 160@
goto_if_false @CASIN10_6646

:CASIN10_6646
if 
  is_char_dead 164@
goto_if_false @CASIN10_6662

:CASIN10_6662
goto @CASIN10_6578

:CASIN10_6669
if 
  not is_car_dead 163@
goto_if_false @CASIN10_6690
stop_playback_recorded_car 163@

:CASIN10_6690
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Pistol
goto_if_false @CASIN10_6731
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 60
set_current_char_weapon $scplayer {weaponType} WeaponType.Pistol
goto @CASIN10_6738

:CASIN10_6731
set_current_char_weapon $scplayer {weaponType} WeaponType.Pistol

:CASIN10_6738
remove_car_recording 602
remove_car_recording 603
camera_reset_new_scriptables 
delete_car 161@
delete_char 160@
delete_car 163@
delete_char 164@
delete_char 165@
delete_char 166@
delete_char 167@
delete_char 168@
delete_char 169@
delete_char 170@
delete_char 171@
delete_char 172@
delete_char 173@
delete_char 174@
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 150
mark_model_as_no_longer_needed 420
request_model 124
request_model 125
request_model 126
request_model 349
request_model 352
request_model 346
request_animation "SWAT"
request_model 405
load_special_character 1 {modelName} 'FORELLI'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 7208
load_mission_audio MissionAudioSlot.Slot2 {audioId} 7209
load_all_models_now 

:CASIN10_6903
if or
  not has_model_loaded 124
  not has_model_loaded 125
  not has_animation_loaded "SWAT"
  not has_model_loaded 349
  not has_model_loaded 352
  not has_special_character_loaded 1
goto_if_false @CASIN10_6955
wait 0
goto @CASIN10_6903

:CASIN10_6955
if or
  not has_model_loaded 346
  not has_model_loaded 126
  not has_model_loaded 405
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @CASIN10_6999
wait 0
goto @CASIN10_6955

:CASIN10_6999
40@ = create_char PedType.Mission1 {modelId} 290 {x} -783.62 {y} 505.055 {z} 1370.788
set_char_allowed_to_duck 40@ {state} False
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_weapon_skill 40@ {skill} WeaponSkill.Pro
set_char_uses_upperbody_damage_anims_only 40@ {state} True
set_char_heading 40@ {heading} 348.44
41@ = add_blip_for_char 40@
set_char_decision_maker 40@ {handleOrTemplate} 110@
set_char_suffers_critical_hits 40@ {state} False
set_char_max_health 40@ {maxHealth} 1000
set_char_health 40@ {health} 1000
set_char_accuracy 40@ {accuracy} 80
set_char_shoot_rate 40@ {rate} 50
47@ = create_char PedType.Mission1 {modelId} 124 {x} -783.223 {y} 497.549 {z} 1370.78
set_char_allowed_to_duck 47@ {state} False
give_weapon_to_char 47@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_char_heading 47@ {heading} 348.44
set_char_decision_maker 47@ {handleOrTemplate} 106@
set_char_accuracy 47@ {accuracy} 65
set_char_shoot_rate 47@ {rate} 40
50@ = create_char PedType.Mission1 {modelId} 125 {x} -788.965 {y} 497.522 {z} 1370.78
set_char_allowed_to_duck 50@ {state} False
give_weapon_to_char 50@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_char_heading 50@ {heading} 348.44
set_char_decision_maker 50@ {handleOrTemplate} 106@
set_char_accuracy 50@ {accuracy} 65
set_char_shoot_rate 50@ {rate} 45
53@ = create_char PedType.Mission1 {modelId} 126 {x} -791.034 {y} 500.973 {z} 1370.78
set_char_allowed_to_duck 53@ {state} False
give_weapon_to_char 53@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 53@ {heading} 5.1
set_char_decision_maker 53@ {handleOrTemplate} 105@
set_char_accuracy 53@ {accuracy} 70
set_char_shoot_rate 53@ {rate} 50
56@ = create_char PedType.Mission1 {modelId} 124 {x} -780.395 {y} 500.947 {z} 1370.78
set_char_allowed_to_duck 56@ {state} False
give_weapon_to_char 56@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 56@ {heading} 5.1
set_char_decision_maker 56@ {handleOrTemplate} 105@
set_char_accuracy 56@ {accuracy} 40
set_char_shoot_rate 56@ {rate} 60
59@ = create_char PedType.Mission1 {modelId} 125 {x} -794.945 {y} 507.819 {z} 1370.788
set_char_allowed_to_duck 59@ {state} False
give_weapon_to_char 59@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 59@ {heading} 174.837
set_char_decision_maker 59@ {handleOrTemplate} 105@
set_char_accuracy 59@ {accuracy} 70
set_char_shoot_rate 59@ {rate} 45
62@ = create_char PedType.Mission1 {modelId} 126 {x} -793.0 {y} 506.434 {z} 1370.788
set_char_allowed_to_duck 62@ {state} False
give_weapon_to_char 62@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 62@ {heading} 113.867
set_char_decision_maker 62@ {handleOrTemplate} 105@
set_char_accuracy 62@ {accuracy} 65
set_char_shoot_rate 62@ {rate} 40
65@ = create_char PedType.Mission1 {modelId} 125 {x} -785.853 {y} 508.372 {z} 1370.774
set_char_allowed_to_duck 65@ {state} False
give_weapon_to_char 65@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 65@ {heading} 212.0
set_char_decision_maker 65@ {handleOrTemplate} 105@
set_char_accuracy 65@ {accuracy} 65
set_char_shoot_rate 65@ {rate} 40
69@ = create_char PedType.Mission1 {modelId} 124 {x} -792.191 {y} 508.908 {z} 1370.788
set_char_allowed_to_duck 69@ {state} False
give_weapon_to_char 69@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 69@ {heading} 188.0
set_char_decision_maker 69@ {handleOrTemplate} 105@
set_char_accuracy 69@ {accuracy} 70
set_char_shoot_rate 69@ {rate} 40
73@ = create_char PedType.Mission1 {modelId} 126 {x} -783.975 {y} 498.564 {z} 1375.1949
set_char_allowed_to_duck 73@ {state} False
give_weapon_to_char 73@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 73@ {heading} 172.352
set_char_decision_maker 73@ {handleOrTemplate} 105@
set_char_accuracy 73@ {accuracy} 65
set_char_shoot_rate 73@ {rate} 40
77@ = create_char PedType.Mission1 {modelId} 124 {x} -792.542 {y} 494.229 {z} 1375.235
set_char_allowed_to_duck 77@ {state} False
give_weapon_to_char 77@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 77@ {heading} 279.542
set_char_decision_maker 77@ {handleOrTemplate} 105@
set_char_accuracy 77@ {accuracy} 70
set_char_shoot_rate 77@ {rate} 50
81@ = create_char PedType.Mission1 {modelId} 125 {x} -786.142 {y} 491.815 {z} 1375.235
set_char_allowed_to_duck 81@ {state} False
give_weapon_to_char 81@ {weaponType} WeaponType.Shotgun {ammo} 30000
set_char_heading 81@ {heading} 270.0
set_char_decision_maker 81@ {handleOrTemplate} 110@
set_char_accuracy 81@ {accuracy} 75
set_char_shoot_rate 81@ {rate} 40
84@ = create_char PedType.Mission1 {modelId} 124 {x} -793.7 {y} 494.999 {z} 1375.243
set_char_allowed_to_duck 84@ {state} False
give_weapon_to_char 84@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 84@ {heading} 270.0
set_char_decision_maker 84@ {handleOrTemplate} 110@
set_char_accuracy 84@ {accuracy} 65
set_char_shoot_rate 84@ {rate} 40
87@ = create_char PedType.Mission1 {modelId} 124 {x} -781.141 {y} 494.625 {z} 1367.571
set_char_allowed_to_duck 87@ {state} False
give_weapon_to_char 87@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 87@ {heading} 90.0
set_char_decision_maker 87@ {handleOrTemplate} 105@
set_char_accuracy 87@ {accuracy} 65
set_char_shoot_rate 87@ {rate} 40
90@ = create_char PedType.Mission1 {modelId} 126 {x} -786.705 {y} 501.671 {z} 1366.4139
set_char_allowed_to_duck 90@ {state} False
give_weapon_to_char 90@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 90@ {heading} 270.0
set_char_decision_maker 90@ {handleOrTemplate} 105@
set_char_accuracy 90@ {accuracy} 65
set_char_shoot_rate 90@ {rate} 40
93@ = create_char PedType.Mission1 {modelId} 125 {x} -790.646 {y} 505.521 {z} 1366.4139
set_char_allowed_to_duck 93@ {state} False
give_weapon_to_char 93@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 93@ {heading} 231.0
set_char_decision_maker 93@ {handleOrTemplate} 106@
set_char_accuracy 93@ {accuracy} 65
set_char_shoot_rate 93@ {rate} 50
goto @CASIN10_8307
120@ = create_char PedType.Mission1 {modelId} 126 {x} -816.005 {y} 493.329 {z} 1358.293
delete_char 120@
121@ = create_char PedType.Mission1 {modelId} 124 {x} -821.268 {y} 508.167 {z} 1358.2729
delete_char 121@
122@ = create_char PedType.Mission1 {modelId} 125 {x} -828.77 {y} 510.594 {z} 1357.307
delete_char 122@

:CASIN10_8307
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -783.104 {y} 490.814 {z} 1375.235
set_char_heading $scplayer {heading} 8.832
load_scene_in_direction -783.104 {y} 490.814 {z} 1375.235 {heading} 8.832
set_fixed_camera_position -787.9748 {y} 493.9206 {z} 1375.796 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -787.056 {y} 494.3102 {z} 1375.859 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CASIN10_8430
if 
  get_fading_status 
goto_if_false @CASIN10_8454
wait 0
goto @CASIN10_8430

:CASIN10_8454
116@ = 1
skip_cutscene_start_internal @CASIN10_9952
task_go_straight_to_coord $scplayer {x} -783.153 {y} 495.215 {z} 1375.2271 {speed} MoveState.Walk {time} -1
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8525
task_look_at_char $scplayer {target} 73@ {time} -1
goto @CASIN10_8557

:CASIN10_8525
if 
  74@ == 0
goto_if_false @CASIN10_8557
152@ += 1
74@ = 1

:CASIN10_8557
if 
  not is_char_dead 77@
goto_if_false @CASIN10_8590
task_look_at_char 77@ {target} $scplayer {time} -1
goto @CASIN10_8622

:CASIN10_8590
if 
  78@ == 0
goto_if_false @CASIN10_8622
152@ += 1
78@ = 1

:CASIN10_8622
75@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -783.336 {y} 496.837 {z} 1375.235 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
task_look_at_char -1 {target} $scplayer {time} -1
task_aim_gun_at_char -1 {target} $scplayer {time} 15000
close_sequence_task 75@
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8717
perform_sequence_task 73@ {sequence} 75@
clear_sequence_task 75@
goto @CASIN10_8749

:CASIN10_8717
if 
  74@ == 0
goto_if_false @CASIN10_8749
152@ += 1
74@ = 1

:CASIN10_8749
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8809
play_mission_audio MissionAudioSlot.Slot1
print_now 'CAS11DA' {time} 10000 {flag} 1
start_char_facial_talk 73@ {duration} 999999
shut_char_up_for_scripted_speech 73@ {state} True
goto @CASIN10_8845

:CASIN10_8809
clear_mission_audio MissionAudioSlot.Slot1
if 
  74@ == 0
goto_if_false @CASIN10_8845
152@ += 1
74@ = 1

:CASIN10_8845
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASIN10_8930
wait 0
gosub @CASIN10_15776
if 
  74@ == 0
goto_if_false @CASIN10_8923
if 
  is_char_dead 73@
goto_if_false @CASIN10_8923
clear_mission_audio MissionAudioSlot.Slot1
152@ += 1
74@ = 1

:CASIN10_8923
goto @CASIN10_8845

:CASIN10_8930
clear_this_print 'CAS11DA'
if 
  not is_char_dead 73@
goto_if_false @CASIN10_8983
stop_char_facial_talk 73@
shut_char_up_for_scripted_speech 73@ {state} False
task_stay_in_same_place $scplayer {state} True
goto @CASIN10_9015

:CASIN10_8983
if 
  74@ == 0
goto_if_false @CASIN10_9015
152@ += 1
74@ = 1

:CASIN10_9015
play_mission_audio MissionAudioSlot.Slot2
print_now 'CAS11DB' {time} 4000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999
shut_char_up_for_scripted_speech $scplayer {state} True
set_fixed_camera_position -785.9136 {y} 497.3071 {z} 1375.579 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -785.0042 {y} 496.9065 {z} 1375.6899 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 73@
goto_if_false @CASIN10_9170
task_toggle_duck 73@ {state} True
set_char_accuracy 73@ {accuracy} 5
task_shoot_at_coord 73@ {x} -781.079 {y} 495.708 {z} 1376.1949 {time} 10000
set_char_shoot_rate 73@ {rate} 80
goto @CASIN10_9202

:CASIN10_9170
if 
  74@ == 0
goto_if_false @CASIN10_9202
152@ += 1
74@ = 1

:CASIN10_9202
37@ = open_sequence_task 
task_achieve_heading -1 {heading} 270.0
task_play_anim_non_interruptable -1 {animationName} "JMP_WALL1M_180" {animationFile} "SWAT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
99@ = 0.0
close_sequence_task 37@
perform_sequence_task $scplayer {sequence} 37@
if 
  is_char_playing_anim $scplayer {animationName} "JMP_WALL1M_180"
goto_if_false @CASIN10_9336
99@ = get_char_anim_current_time $scplayer {animationName} "JMP_WALL1M_180"

:CASIN10_9336
if 
  99@ <> 1.0
goto_if_false @CASIN10_9431
wait 0
if 
  is_char_playing_anim $scplayer {animationName} "JMP_WALL1M_180"
goto_if_false @CASIN10_9417
99@ = get_char_anim_current_time $scplayer {animationName} "JMP_WALL1M_180"

:CASIN10_9417
gosub @CASIN10_15776
goto @CASIN10_9336

:CASIN10_9431
67@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -781.563 {y} 505.346 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 67@
if 
  not is_char_dead 65@
goto_if_false @CASIN10_9519
perform_sequence_task 65@ {sequence} 67@
clear_sequence_task 67@
goto @CASIN10_9551

:CASIN10_9519
if 
  66@ == 0
goto_if_false @CASIN10_9551
152@ += 1
66@ = 1

:CASIN10_9551
71@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -786.511 {y} 505.073 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 71@
if 
  not is_char_dead 69@
goto_if_false @CASIN10_9639
perform_sequence_task 69@ {sequence} 71@
clear_sequence_task 71@
goto @CASIN10_9671

:CASIN10_9639
if 
  70@ == 0
goto_if_false @CASIN10_9671
152@ += 1
70@ = 1

:CASIN10_9671
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @CASIN10_9724
wait 0
gosub @CASIN10_15776
if 
  is_char_dead $scplayer
goto_if_false @CASIN10_9717
clear_mission_audio MissionAudioSlot.Slot2

:CASIN10_9717
goto @CASIN10_9671

:CASIN10_9724
clear_this_print 'CAS11DB'
stop_char_facial_talk $scplayer
shut_char_up_for_scripted_speech $scplayer {state} False
79@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
if 
  not is_char_dead 77@
goto_if_false @CASIN10_9812
perform_sequence_task 77@ {sequence} 79@
clear_sequence_task 79@
goto @CASIN10_9844

:CASIN10_9812
if 
  78@ == 0
goto_if_false @CASIN10_9844
152@ += 1
78@ = 1

:CASIN10_9844
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
switch_widescreen False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -780.806 {y} 495.717 {z} 1375.0
set_char_heading $scplayer {heading} 100.0
task_toggle_duck $scplayer {state} True
task_play_anim_non_interruptable $scplayer {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
restore_camera_jumpcut 
clear_sequence_task 37@
36@ = 1

:CASIN10_9952
skip_cutscene_end 
if 
  36@ == 0
goto_if_false @CASIN10_10266
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
shut_char_up_for_scripted_speech $scplayer {state} False
67@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -781.563 {y} 505.346 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 67@
if 
  not is_char_dead 65@
goto_if_false @CASIN10_10077
perform_sequence_task 65@ {sequence} 67@
clear_sequence_task 67@
goto @CASIN10_10109

:CASIN10_10077
if 
  66@ == 0
goto_if_false @CASIN10_10109
152@ += 1
66@ = 1

:CASIN10_10109
71@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -786.511 {y} 505.073 {z} 1370.782 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 71@
if 
  not is_char_dead 69@
goto_if_false @CASIN10_10197
perform_sequence_task 69@ {sequence} 71@
clear_sequence_task 71@
goto @CASIN10_10229

:CASIN10_10197
if 
  70@ == 0
goto_if_false @CASIN10_10229
152@ += 1
70@ = 1

:CASIN10_10229
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -780.806 {y} 495.717 {z} 1375.0
set_char_heading $scplayer {heading} 100.0
restore_camera_jumpcut 

:CASIN10_10266
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead 73@
goto_if_false @CASIN10_10387
set_char_accuracy 73@ {accuracy} 40
if 
  76@ == 0
goto_if_false @CASIN10_10380
set_char_shoot_rate 73@ {rate} 40
task_stay_in_same_place 73@ {state} False
task_kill_char_on_foot 73@ {target} $scplayer
76@ = 1

:CASIN10_10380
goto @CASIN10_10419

:CASIN10_10387
if 
  74@ == 0
goto_if_false @CASIN10_10419
152@ += 1
74@ = 1

:CASIN10_10419
make_player_gang_reappear 
if 
  116@ == 1
goto_if_false @CASIN10_10884
if 
  is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_10684
if 
  not is_char_dead 59@
goto_if_false @CASIN10_10550
if 
  61@ == 0
goto_if_false @CASIN10_10543
set_lvar_int_to_lvar_int 101@ = 59@
gosub @CASIN10_18943
61@ = 1

:CASIN10_10543
goto @CASIN10_10582

:CASIN10_10550
if 
  60@ == 0
goto_if_false @CASIN10_10582
152@ += 1
60@ = 1

:CASIN10_10582
if 
  not is_char_dead 62@
goto_if_false @CASIN10_10645
if 
  64@ == 0
goto_if_false @CASIN10_10638
set_lvar_int_to_lvar_int 102@ = 62@
gosub @CASIN10_19026
64@ = 1

:CASIN10_10638
goto @CASIN10_10677

:CASIN10_10645
if 
  63@ == 0
goto_if_false @CASIN10_10677
152@ += 1
63@ = 1

:CASIN10_10677
goto @CASIN10_10884

:CASIN10_10684
if 
  not is_char_dead 59@
goto_if_false @CASIN10_10752
if 
  61@ == 0
goto_if_false @CASIN10_10745
clear_char_tasks 59@
task_stay_in_same_place 59@ {state} False
task_kill_char_on_foot 59@ {target} $scplayer
61@ = 1

:CASIN10_10745
goto @CASIN10_10784

:CASIN10_10752
if 
  60@ == 0
goto_if_false @CASIN10_10784
152@ += 1
60@ = 1

:CASIN10_10784
if 
  not is_char_dead 62@
goto_if_false @CASIN10_10852
if 
  64@ == 0
goto_if_false @CASIN10_10845
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} False
task_kill_char_on_foot 62@ {target} $scplayer
64@ = 1

:CASIN10_10845
goto @CASIN10_10884

:CASIN10_10852
if 
  63@ == 0
goto_if_false @CASIN10_10884
152@ += 1
63@ = 1

:CASIN10_10884
print_now 'CM10_2' {time} 10000 {flag} 1

:CASIN10_10900
if 
  152@ <> 19
goto_if_false @CASIN10_13775
wait 0
if 
  118@ == 0
goto_if_false @CASIN10_11020
if 
  is_char_in_area_3d $scplayer {leftBottomX} -777.097 {leftBottomY} 501.709 {leftBottomZ} 1365.0 {rightTopX} -784.992 {rightTopY} 497.66 {rightTopZ} 1370.0 {drawSphere} False
goto_if_false @CASIN10_11020
gosub @CASIN10_19307
if 
  119@ == 0
goto_if_false @CASIN10_11020
gosub @CASIN10_19952

:CASIN10_11020
if 
  119@ == 1
goto_if_false @CASIN10_11045
gosub @CASIN10_20515

:CASIN10_11045
gosub @CASIN10_15776
if 
  55@ == 0
goto_if_false @CASIN10_11302
if 
  is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_11220
if 
  60@ == 1
goto_if_false @CASIN10_11213
if 
  not is_char_dead 53@
goto_if_false @CASIN10_11181
set_lvar_int_to_lvar_int 101@ = 53@
gosub @CASIN10_18943
55@ = 1
goto @CASIN10_11213

:CASIN10_11181
if 
  54@ == 0
goto_if_false @CASIN10_11213
152@ += 1
54@ = 1

:CASIN10_11213
goto @CASIN10_11302

:CASIN10_11220
if 
  not is_char_dead 53@
goto_if_false @CASIN10_11270
clear_char_tasks 53@
task_stay_in_same_place 53@ {state} False
task_kill_char_on_foot 53@ {target} $scplayer
55@ = 2
goto @CASIN10_11302

:CASIN10_11270
if 
  54@ == 0
goto_if_false @CASIN10_11302
152@ += 1
54@ = 1

:CASIN10_11302
if 
  58@ == 0
goto_if_false @CASIN10_11552
if 
  is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_11470
if 
  63@ == 1
goto_if_false @CASIN10_11463
if 
  not is_char_dead 56@
goto_if_false @CASIN10_11431
set_lvar_int_to_lvar_int 102@ = 56@
gosub @CASIN10_19026
58@ = 1
goto @CASIN10_11463

:CASIN10_11431
if 
  57@ == 0
goto_if_false @CASIN10_11463
152@ += 1
57@ = 1

:CASIN10_11463
goto @CASIN10_11552

:CASIN10_11470
if 
  not is_char_dead 56@
goto_if_false @CASIN10_11520
clear_char_tasks 56@
task_stay_in_same_place 56@ {state} False
task_kill_char_on_foot 56@ {target} $scplayer
58@ = 2
goto @CASIN10_11552

:CASIN10_11520
if 
  57@ == 0
goto_if_false @CASIN10_11552
152@ += 1
57@ = 1

:CASIN10_11552
if 
  89@ == 0
goto_if_false @CASIN10_11695
if 
  not is_char_dead 87@
goto_if_false @CASIN10_11663
if 
  is_char_in_area_3d $scplayer {leftBottomX} -792.344 {leftBottomY} 489.644 {leftBottomZ} 1370.782 {rightTopX} -783.436 {rightTopY} 493.662 {rightTopZ} 1366.0 {drawSphere} False
goto_if_false @CASIN10_11656
set_lvar_int_to_lvar_int 103@ = 87@
gosub @CASIN10_19109
89@ = 1

:CASIN10_11656
goto @CASIN10_11695

:CASIN10_11663
if 
  88@ == 0
goto_if_false @CASIN10_11695
152@ += 1
88@ = 1

:CASIN10_11695
if 
  92@ == 0
goto_if_false @CASIN10_11838
if 
  not is_char_dead 90@
goto_if_false @CASIN10_11806
if 
  is_char_in_area_3d $scplayer {leftBottomX} -777.097 {leftBottomY} 501.709 {leftBottomZ} 1365.0 {rightTopX} -784.992 {rightTopY} 497.66 {rightTopZ} 1370.0 {drawSphere} False
goto_if_false @CASIN10_11799
set_lvar_int_to_lvar_int 104@ = 90@
gosub @CASIN10_19208
92@ = 1

:CASIN10_11799
goto @CASIN10_11838

:CASIN10_11806
if 
  91@ == 0
goto_if_false @CASIN10_11838
152@ += 1
91@ = 1

:CASIN10_11838
if 
  95@ == 0
goto_if_false @CASIN10_11986
if 
  not is_char_dead 93@
goto_if_false @CASIN10_11954
if 
  is_char_in_area_3d $scplayer {leftBottomX} -777.097 {leftBottomY} 501.709 {leftBottomZ} 1365.0 {rightTopX} -784.992 {rightTopY} 497.66 {rightTopZ} 1370.0 {drawSphere} False
goto_if_false @CASIN10_11947
clear_char_tasks 93@
task_stay_in_same_place 93@ {state} True
task_kill_char_on_foot 93@ {target} $scplayer
95@ = 1

:CASIN10_11947
goto @CASIN10_11986

:CASIN10_11954
if 
  94@ == 0
goto_if_false @CASIN10_11986
152@ += 1
94@ = 1

:CASIN10_11986
if 
  is_player_playing $player1
goto_if_false @CASIN10_12016
$player_x, $player_y, $player_z = get_char_coordinates $scplayer

:CASIN10_12016
if 
  42@ == 0
goto_if_false @CASIN10_13768
if 
  is_char_dead 40@
goto_if_false @CASIN10_12076
remove_blip 41@
152@ += 1
42@ = 1
goto @CASIN10_13768

:CASIN10_12076
46@ = get_char_health 40@
if 
  43@ == 0
goto_if_false @CASIN10_12148
clear_char_relationship 40@ {relationshipType} RelationshipType.Hate {toPedType} PedType.Player1
clear_char_tasks_immediately 40@
task_follow_path_nodes_to_coord 40@ {x} -781.09 {y} 497.79 {z} 1370.782 {speed} MoveState.Run {time} 10000
43@ = 1

:CASIN10_12148
if 
  43@ == 1
goto_if_false @CASIN10_12246
if 
  locate_char_on_foot_3d 40@ {x} -781.09 {y} 497.79 {z} 1370.782 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12246
task_follow_path_nodes_to_coord 40@ {x} -791.749 {y} 491.447 {z} 1370.782 {speed} MoveState.Run {time} 10000
43@ = 2

:CASIN10_12246
if 
  43@ == 2
goto_if_false @CASIN10_12531
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} -777.827 {leftBottomY} 510.0 {leftBottomZ} 1369.0 {rightTopX} -797.0 {rightTopY} 494.0 {rightTopZ} 1373.0 {drawSphere} False
goto_if_false @CASIN10_12319
117@ = 1

:CASIN10_12319
if 
  locate_char_on_foot_3d 40@ {x} -791.749 {y} 491.447 {z} 1370.782 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12531
if 
  44@ == 0
goto_if_false @CASIN10_12424
set_char_heading 40@ {heading} 0.0
task_stay_in_same_place 40@ {state} True
task_kill_char_on_foot 40@ {target} $scplayer
TIMERB = 0
44@ = 1

:CASIN10_12424
if 
  117@ == 1
goto_if_false @CASIN10_12531
if 
  44@ == 1
goto_if_false @CASIN10_12531
if or
  TIMERB >= 6000
  800 >= 46@
goto_if_false @CASIN10_12531
clear_char_tasks 40@
task_stay_in_same_place 40@ {state} False
task_follow_path_nodes_to_coord 40@ {x} -779.844 {y} 492.67 {z} 1367.616 {speed} MoveState.Run {time} 10000
43@ = 3

:CASIN10_12531
if 
  43@ == 3
goto_if_false @CASIN10_12629
if 
  locate_char_on_foot_3d 40@ {x} -779.844 {y} 492.67 {z} 1367.616 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12629
task_follow_path_nodes_to_coord 40@ {x} -779.844 {y} 499.811 {z} 1367.571 {speed} MoveState.Run {time} 10000
43@ = 4

:CASIN10_12629
if 
  43@ == 4
goto_if_false @CASIN10_12752
if 
  locate_char_on_foot_3d 40@ {x} -779.844 {y} 499.811 {z} 1367.571 {xRadius} 0.75 {yRadius} 0.75 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12752
if 
  46@ > 99
goto_if_false @CASIN10_12720
set_char_health 40@ {health} 100

:CASIN10_12720
task_follow_path_nodes_to_coord 40@ {x} -787.237 {y} 499.939 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 5

:CASIN10_12752
if 
  43@ == 5
goto_if_false @CASIN10_12850
if 
  locate_char_on_foot_3d 40@ {x} -787.237 {y} 499.939 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12850
task_follow_path_nodes_to_coord 40@ {x} -787.543 {y} 508.034 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 6

:CASIN10_12850
if 
  43@ == 6
goto_if_false @CASIN10_12948
if 
  locate_char_on_foot_3d 40@ {x} -787.543 {y} 508.034 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_12948
task_follow_path_nodes_to_coord 40@ {x} -791.552 {y} 507.859 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 7

:CASIN10_12948
if 
  43@ == 7
goto_if_false @CASIN10_13046
if 
  locate_char_on_foot_3d 40@ {x} -791.552 {y} 507.859 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13046
task_follow_path_nodes_to_coord 40@ {x} -791.045 {y} 498.883 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 8

:CASIN10_13046
if 
  43@ == 8
goto_if_false @CASIN10_13144
if 
  locate_char_on_foot_3d 40@ {x} -791.045 {y} 498.883 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13144
task_follow_path_nodes_to_coord 40@ {x} -791.81 {y} 492.473 {z} 1366.4139 {speed} MoveState.Run {time} 10000
43@ = 9

:CASIN10_13144
if 
  43@ == 9
goto_if_false @CASIN10_13242
if 
  locate_char_on_foot_3d 40@ {x} -791.81 {y} 492.473 {z} 1366.4139 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13242
task_follow_path_nodes_to_coord 40@ {x} -798.194 {y} 492.462 {z} 1366.274 {speed} MoveState.Run {time} 10000
43@ = 10

:CASIN10_13242
if 
  43@ == 10
goto_if_false @CASIN10_13340
if 
  locate_char_on_foot_3d 40@ {x} -798.194 {y} 492.462 {z} 1366.274 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13340
task_follow_path_nodes_to_coord 40@ {x} -799.081 {y} 503.71 {z} 1361.913 {speed} MoveState.Run {time} 10000
43@ = 11

:CASIN10_13340
if 
  43@ == 11
goto_if_false @CASIN10_13438
if 
  locate_char_on_foot_3d 40@ {x} -799.081 {y} 503.71 {z} 1361.913 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13438
task_follow_path_nodes_to_coord 40@ {x} -821.412 {y} 504.901 {z} 1357.35 {speed} MoveState.Run {time} 10000
43@ = 12

:CASIN10_13438
if 
  43@ == 12
goto_if_false @CASIN10_13631
if 
  locate_char_on_foot_3d 40@ {x} -821.412 {y} 504.901 {z} 1357.358 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13631
124@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} -830.889 {y} 501.107 {z} 1357.374 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} -830.711 {y} 498.369 {z} 1357.385 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 260.984
close_sequence_task 124@
if 
  not is_char_dead 40@
goto_if_false @CASIN10_13612
perform_sequence_task 40@ {sequence} 124@
clear_sequence_task 124@
43@ = 13
goto @CASIN10_13631

:CASIN10_13612
remove_blip 41@
152@ += 1
42@ = 1

:CASIN10_13631
if 
  43@ == 13
goto_if_false @CASIN10_13768
if 
  locate_char_on_foot_3d 40@ {x} -830.711 {y} 498.369 {z} 1357.385 {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @CASIN10_13768
if 
  not is_char_dead 40@
goto_if_false @CASIN10_13749
task_stay_in_same_place 40@ {state} True
task_toggle_duck 40@ {state} True
task_kill_char_on_foot 40@ {target} $scplayer
43@ = 14
goto @CASIN10_13768

:CASIN10_13749
remove_blip 41@
152@ += 1
42@ = 1

:CASIN10_13768
goto @CASIN10_10900

:CASIN10_13775
wait 3000
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:CASIN10_13816
if 
  get_fading_status 
goto_if_false @CASIN10_13840
wait 0
goto @CASIN10_13816

:CASIN10_13840
make_player_gang_disappear 
if 
  118@ == 0
goto_if_false @CASIN10_13867
gosub @CASIN10_19307

:CASIN10_13867
delete_char 87@
delete_char 90@
delete_char 93@
delete_char 120@
delete_char 121@
delete_char 122@
delete_car 123@
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 150
remove_animation "SWAT"
remove_char_elegantly 40@
unload_special_character 1
request_model 519
request_car_recording 601
load_all_models_now 

:CASIN10_13977
if or
  not has_model_loaded 519
  not has_car_recording_been_loaded 601
goto_if_false @CASIN10_14009
wait 0
goto @CASIN10_13977

:CASIN10_14009
set_area_visible 0
set_player_is_in_stadium False
set_char_area_visible $scplayer {areaId} 0
clear_help 
clear_prints 
112@ = create_car 519 {x} 7500.0 {y} 2478.3401 {z} 200.0
plane_starts_in_air 112@
set_car_only_damaged_by_player 112@ {state} True
set_car_proofs 112@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 112@ {heading} 110.0
set_plane_undercarriage_up 112@ {state} True
warp_char_into_car $scplayer {vehicle} 112@
start_playback_recorded_car 112@ {path} 601
set_fixed_camera_position 8867.6367 {y} 1581.89 {z} 193.188 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 8867.6055 {y} 1582.8831 {z} 193.0727 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:CASIN10_14181
if 
  get_fading_status 
goto_if_false @CASIN10_14205
wait 0
goto @CASIN10_14181

:CASIN10_14205
skip_cutscene_start_internal @CASIN10_14288
TIMERA = 0

:CASIN10_14219
if 
  2800 > TIMERA
goto_if_false @CASIN10_14288
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_14281
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_14281
goto @CASIN10_14219

:CASIN10_14288
skip_cutscene_end 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.Out

:CASIN10_14305
if 
  get_fading_status 
goto_if_false @CASIN10_14329
wait 0
goto @CASIN10_14305

:CASIN10_14329
if 
  not is_car_dead 112@
goto_if_false @CASIN10_14366
if 
  is_playback_going_on_for_car 112@
goto_if_false @CASIN10_14366
stop_playback_recorded_car 112@

:CASIN10_14366
remove_car_recording 601
if 
  not is_car_dead 112@
goto_if_false @CASIN10_14458
set_car_coordinates 112@ {x} 7500.0 {y} 2478.3401 {z} 200.0
freeze_car_position 112@ {state} True
plane_starts_in_air 112@
set_car_only_damaged_by_player 112@ {state} False
set_car_proofs 112@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_car_heading 112@ {heading} 110.0
set_plane_undercarriage_up 112@ {state} True

:CASIN10_14458
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
hide_all_frontend_blips False
set_max_wanted_level 6
do_fade 500 {direction} Fade.In
switch_widescreen False

:CASIN10_14491
if 
  get_fading_status 
goto_if_false @CASIN10_14515
wait 0
goto @CASIN10_14491

:CASIN10_14515
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
if 
  not is_car_dead 112@
goto_if_false @CASIN10_14576
freeze_car_position 112@ {state} False
set_car_forward_speed 112@ {forwardSpeed} 30.0
goto @CASIN10_14599

:CASIN10_14576
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190

:CASIN10_14599
print_now 'CM10_19' {time} 8000 {flag} 1
130@ = add_blip_for_coord 1477.225 {y} 1640.364 {z} 9.86
set_always_draw_3d_markers True
131@ = 0
132@ = 0
133@ = 0
134@ = 1
gosub @CASIN10_47
129@ = 0

:CASIN10_14681
if or
  not is_car_stopped_in_area_3d 112@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
  not is_char_in_area_3d $scplayer {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASIN10_15159
wait 0
if 
  is_car_dead 112@
goto_if_false @CASIN10_14826
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'CM10_17' {time} 8000 {flag} 1
goto @CASIN10_15190
goto @CASIN10_15152

:CASIN10_14826
if 
  is_char_in_car $scplayer {vehicle} 112@
goto_if_false @CASIN10_15028
if 
  locate_char_in_car_3d $scplayer {x} 1477.225 {y} 1640.364 {z} 9.86 {xRadius} 350.0 {yRadius} 350.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @CASIN10_14900
gosub @CASIN10_20310

:CASIN10_14900
if 
  not is_car_stopped_in_area_3d 112@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASIN10_15021
if 
  129@ == 1
goto_if_false @CASIN10_15021
print_now 'CM10_19' {time} 8000 {flag} 1
130@ = add_blip_for_coord 1477.225 {y} 1640.364 {z} 9.86
remove_blip 113@
$blob_flag = 1
129@ = 0

:CASIN10_15021
goto @CASIN10_15152

:CASIN10_15028
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_car_stopped_in_area_3d 112@ {leftBottomX} 1636.319 {leftBottomY} 1144.478 {leftBottomZ} 7.0 {rightTopX} 1261.411 {rightTopY} 1780.672 {rightTopZ} 14.0 {drawSphere} False
goto_if_false @CASIN10_15152
if 
  129@ == 0
goto_if_false @CASIN10_15152
remove_blip 130@
113@ = add_blip_for_car 112@
set_blip_as_friendly 34@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
$blob_flag = 0
129@ = 1

:CASIN10_15152
goto @CASIN10_14681

:CASIN10_15159
remove_blip 130@
remove_blip 113@
set_always_draw_3d_markers False
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
goto @CASIN10_15339

:CASIN10_15190
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if or
  is_char_in_water $scplayer
  is_car_in_water 112@
goto_if_false @CASIN10_15249
set_up_skip_after_mission 2149.6089 {y} 1681.1169 {z} 9.82 {heading} 90.0

:CASIN10_15249
if 
  is_char_in_air $scplayer
goto_if_false @CASIN10_15337
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @CASIN10_15337
if 
  not is_player_using_jetpack $player1
goto_if_false @CASIN10_15337
if 
  $player_fall_state <= 0
goto_if_false @CASIN10_15337
set_up_skip_after_mission 2149.6089 {y} 1681.1169 {z} 9.82 {heading} 90.0

:CASIN10_15337
return 

:CASIN10_15339
$flag_casino_mission_counter += 1
register_mission_passed 'CASIN10'
player_made_progress 1
print_with_number_big 'M_PASSS' {num} 20000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 20000
award_player_mission_respect 35
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $heist_contact_blip
set_int_stat StatId.CitiesPassed {value} 3
start_new_script @MANSION 
remove_blip $casino_contact_blip
$casino_contact_blip = add_sprite_blip_for_contact_point $casinoX {y} $casinoY {z} $casinoZ {sprite} $casino_blip_icon
set_blip_entry_exit $casino_contact_blip {x} 2026.603 {y} 1007.735 {radius} 20.0
terminate_all_scripts_with_this_name 'MOBLA2'
start_new_script @MOB_LA2 
set_int_stat StatId.PassedCasino10 {value} 1
return 

:CASIN10_15491
set_max_wanted_level 6
set_wanted_multiplier 1.0
remove_char_elegantly 40@
$onmission = 0
$timer_mobile_start = get_game_timer 
switch_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
switch_ped_roads_back_to_original 2095.3501 {leftBottomY} 1734.179 {leftBottomZ} 8.0 {rightTopX} 2337.4951 {rightTopY} 1524.991 {rightTopZ} 15.0
clear_sequence_task 75@
clear_sequence_task 79@
clear_sequence_task 97@
clear_sequence_task 98@
clear_sequence_task 96@
clear_sequence_task 162@
clear_sequence_task 67@
clear_sequence_task 71@
clear_sequence_task 38@
clear_sequence_task 39@
clear_sequence_task 124@
remove_blip 41@
remove_blip 34@
remove_blip 35@
remove_blip 126@
remove_blip 113@
remove_blip 130@
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 519
mark_model_as_no_longer_needed 405
mark_model_as_no_longer_needed 420
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 150
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_decision_maker 105@
remove_decision_maker 110@
remove_car_recording 601
remove_car_recording 602
remove_car_recording 603
remove_animation "SWAT"
set_always_draw_3d_markers False
set_player_is_in_stadium False
mission_has_finished 
return 

:CASIN10_15776
if 
  42@ == 0
goto_if_false @CASIN10_15829
if 
  is_char_dead 40@
goto_if_false @CASIN10_15829
remove_blip 41@
152@ += 1
42@ = 1

:CASIN10_15829
if 
  48@ == 0
goto_if_false @CASIN10_16104
if 
  is_char_dead 47@
goto_if_false @CASIN10_15884
152@ += 1
48@ = 1
goto @CASIN10_16104

:CASIN10_15884
if 
  116@ == 1
goto_if_false @CASIN10_16104
if 
  42@ == 0
goto_if_false @CASIN10_16020
if 
  49@ == 0
goto_if_false @CASIN10_16013
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -796.172 {leftBottomY} 488.58 {leftBottomZ} 1370.0 {rightTopX} -777.902 {rightTopY} 498.668 {rightTopZ} 1378.235 {drawSphere} False
goto_if_false @CASIN10_16013
clear_char_tasks 47@
task_stay_in_same_place 47@ {state} True
task_kill_char_on_foot 47@ {target} $scplayer
49@ = 1

:CASIN10_16013
goto @CASIN10_16104

:CASIN10_16020
if 
  49@ == 1
goto_if_false @CASIN10_16059
task_stay_in_same_place 47@ {state} False
49@ = 2
goto @CASIN10_16104

:CASIN10_16059
if 
  49@ <> 2
goto_if_false @CASIN10_16104
clear_char_tasks 47@
task_stay_in_same_place 47@ {state} False
task_kill_char_on_foot 47@ {target} $scplayer
49@ = 2

:CASIN10_16104
if 
  51@ == 0
goto_if_false @CASIN10_16379
if 
  is_char_dead 50@
goto_if_false @CASIN10_16159
152@ += 1
51@ = 1
goto @CASIN10_16379

:CASIN10_16159
if 
  116@ == 1
goto_if_false @CASIN10_16379
if 
  42@ == 0
goto_if_false @CASIN10_16295
if 
  52@ == 0
goto_if_false @CASIN10_16288
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -796.172 {leftBottomY} 488.58 {leftBottomZ} 1370.0 {rightTopX} -777.902 {rightTopY} 498.668 {rightTopZ} 1378.235 {drawSphere} False
goto_if_false @CASIN10_16288
clear_char_tasks 50@
task_stay_in_same_place 50@ {state} True
task_kill_char_on_foot 50@ {target} $scplayer
52@ = 1

:CASIN10_16288
goto @CASIN10_16379

:CASIN10_16295
if 
  52@ == 1
goto_if_false @CASIN10_16334
task_stay_in_same_place 50@ {state} False
52@ = 2
goto @CASIN10_16379

:CASIN10_16334
if 
  52@ <> 2
goto_if_false @CASIN10_16379
clear_char_tasks 50@
task_stay_in_same_place 50@ {state} False
task_kill_char_on_foot 50@ {target} $scplayer
52@ = 2

:CASIN10_16379
if 
  54@ == 0
goto_if_false @CASIN10_16484
if 
  is_char_dead 53@
goto_if_false @CASIN10_16434
152@ += 1
54@ = 1
goto @CASIN10_16484

:CASIN10_16434
if 
  42@ == 1
goto_if_false @CASIN10_16484
if 
  2 > 55@
goto_if_false @CASIN10_16484
task_stay_in_same_place 53@ {state} False
55@ = 2

:CASIN10_16484
if 
  57@ == 0
goto_if_false @CASIN10_16589
if 
  is_char_dead 56@
goto_if_false @CASIN10_16539
152@ += 1
57@ = 1
goto @CASIN10_16589

:CASIN10_16539
if 
  42@ == 1
goto_if_false @CASIN10_16589
if 
  2 > 58@
goto_if_false @CASIN10_16589
task_stay_in_same_place 56@ {state} False
58@ = 2

:CASIN10_16589
if 
  60@ == 0
goto_if_false @CASIN10_16746
if 
  is_char_dead 59@
goto_if_false @CASIN10_16644
152@ += 1
60@ = 1
goto @CASIN10_16746

:CASIN10_16644
if 
  42@ == 1
goto_if_false @CASIN10_16746
if 
  61@ == 0
goto_if_false @CASIN10_16714
clear_char_tasks 59@
task_stay_in_same_place 59@ {state} False
task_kill_char_on_foot 59@ {target} $scplayer
61@ = 1
goto @CASIN10_16746

:CASIN10_16714
if 
  2 > 61@
goto_if_false @CASIN10_16746
task_stay_in_same_place 59@ {state} False
61@ = 2

:CASIN10_16746
if 
  63@ == 0
goto_if_false @CASIN10_16903
if 
  is_char_dead 62@
goto_if_false @CASIN10_16801
152@ += 1
63@ = 1
goto @CASIN10_16903

:CASIN10_16801
if 
  42@ == 1
goto_if_false @CASIN10_16903
if 
  64@ == 0
goto_if_false @CASIN10_16871
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} False
task_kill_char_on_foot 62@ {target} $scplayer
64@ = 1
goto @CASIN10_16903

:CASIN10_16871
if 
  2 > 64@
goto_if_false @CASIN10_16903
task_stay_in_same_place 62@ {state} False
64@ = 2

:CASIN10_16903
if 
  66@ == 0
goto_if_false @CASIN10_17008
if 
  is_char_dead 65@
goto_if_false @CASIN10_16958
152@ += 1
66@ = 1
goto @CASIN10_17008

:CASIN10_16958
if 
  42@ == 1
goto_if_false @CASIN10_17008
if 
  68@ == 0
goto_if_false @CASIN10_17008
task_stay_in_same_place 65@ {state} False
68@ = 1

:CASIN10_17008
if 
  70@ == 0
goto_if_false @CASIN10_17113
if 
  is_char_dead 69@
goto_if_false @CASIN10_17063
152@ += 1
70@ = 1
goto @CASIN10_17113

:CASIN10_17063
if 
  42@ == 1
goto_if_false @CASIN10_17113
if 
  72@ == 0
goto_if_false @CASIN10_17113
task_stay_in_same_place 69@ {state} False
72@ = 1

:CASIN10_17113
if 
  74@ == 0
goto_if_false @CASIN10_17231
if 
  is_char_dead 73@
goto_if_false @CASIN10_17168
152@ += 1
74@ = 1
goto @CASIN10_17231

:CASIN10_17168
if 
  42@ == 1
goto_if_false @CASIN10_17231
if 
  76@ == 0
goto_if_false @CASIN10_17231
clear_char_tasks 73@
task_stay_in_same_place 73@ {state} False
task_kill_char_on_foot 73@ {target} $scplayer
76@ = 1

:CASIN10_17231
if 
  78@ == 0
goto_if_false @CASIN10_17467
if 
  is_char_dead 77@
goto_if_false @CASIN10_17286
152@ += 1
78@ = 1
goto @CASIN10_17467

:CASIN10_17286
if 
  116@ == 1
goto_if_false @CASIN10_17467
if 
  42@ == 0
goto_if_false @CASIN10_17422
if 
  80@ == 0
goto_if_false @CASIN10_17415
if 
  not is_char_in_area_3d $scplayer {leftBottomX} -778.0 {leftBottomY} 486.0 {leftBottomZ} 1370.0 {rightTopX} -797.0 {rightTopY} 500.0 {rightTopZ} 1380.0 {drawSphere} False
goto_if_false @CASIN10_17415
clear_char_tasks 77@
task_stay_in_same_place 77@ {state} False
task_kill_char_on_foot 77@ {target} $scplayer
80@ = 1

:CASIN10_17415
goto @CASIN10_17467

:CASIN10_17422
if 
  80@ == 0
goto_if_false @CASIN10_17467
clear_char_tasks 77@
task_stay_in_same_place 77@ {state} False
task_kill_char_on_foot 77@ {target} $scplayer
80@ = 1

:CASIN10_17467
if 
  82@ == 0
goto_if_false @CASIN10_17831
if 
  is_char_dead 81@
goto_if_false @CASIN10_17522
152@ += 1
82@ = 1
goto @CASIN10_17831

:CASIN10_17522
if 
  116@ == 1
goto_if_false @CASIN10_17831
if 
  42@ == 0
goto_if_false @CASIN10_17786
if 
  is_char_in_area_3d $scplayer {leftBottomX} -781.646 {leftBottomY} 498.659 {leftBottomZ} 1374.0 {rightTopX} -780.146 {rightTopY} 487.315 {rightTopZ} 1378.0 {drawSphere} False
goto_if_false @CASIN10_17734
if 
  83@ == 0
goto_if_false @CASIN10_17646
set_lvar_int_to_lvar_int 100@ = 81@
gosub @CASIN10_18719
83@ = 1

:CASIN10_17646
if 
  83@ == 1
goto_if_false @CASIN10_17727
if 
  has_char_been_damaged_by_weapon 81@ {weaponType} WeaponType.AnyWeapon
goto_if_false @CASIN10_17727
if 
  83@ == 1
goto_if_false @CASIN10_17727
clear_char_tasks 81@
task_stay_in_same_place 81@ {state} False
task_kill_char_on_foot 81@ {target} $scplayer
83@ = 2

:CASIN10_17727
goto @CASIN10_17779

:CASIN10_17734
if 
  83@ == 1
goto_if_false @CASIN10_17779
clear_char_tasks 81@
task_stay_in_same_place 81@ {state} False
task_kill_char_on_foot 81@ {target} $scplayer
83@ = 2

:CASIN10_17779
goto @CASIN10_17831

:CASIN10_17786
if 
  83@ <> 2
goto_if_false @CASIN10_17831
clear_char_tasks 81@
task_stay_in_same_place 81@ {state} False
task_kill_char_on_foot 81@ {target} $scplayer
83@ = 2

:CASIN10_17831
if 
  85@ == 0
goto_if_false @CASIN10_18246
if 
  is_char_dead 84@
goto_if_false @CASIN10_17886
152@ += 1
85@ = 1
goto @CASIN10_18246

:CASIN10_17886
if 
  116@ == 1
goto_if_false @CASIN10_18246
if 
  42@ == 0
goto_if_false @CASIN10_18201
if 
  is_char_in_area_3d $scplayer {leftBottomX} -781.646 {leftBottomY} 498.659 {leftBottomZ} 1374.0 {rightTopX} -780.146 {rightTopY} 487.315 {rightTopZ} 1378.0 {drawSphere} False
goto_if_false @CASIN10_18149
if 
  86@ == 0
goto_if_false @CASIN10_18002
TIMERA = 0
86@ = 1

:CASIN10_18002
if 
  86@ == 1
goto_if_false @CASIN10_18061
if 
  TIMERA >= 800
goto_if_false @CASIN10_18061
set_lvar_int_to_lvar_int 100@ = 84@
gosub @CASIN10_18719
86@ = 2

:CASIN10_18061
if 
  86@ == 1
goto_if_false @CASIN10_18142
if 
  has_char_been_damaged_by_weapon 84@ {weaponType} WeaponType.AnyWeapon
goto_if_false @CASIN10_18142
if 
  3 > 86@
goto_if_false @CASIN10_18142
clear_char_tasks 84@
task_stay_in_same_place 84@ {state} False
task_kill_char_on_foot 84@ {target} $scplayer
86@ = 3

:CASIN10_18142
goto @CASIN10_18194

:CASIN10_18149
if 
  86@ == 2
goto_if_false @CASIN10_18194
clear_char_tasks 84@
task_stay_in_same_place 84@ {state} False
task_kill_char_on_foot 84@ {target} $scplayer
86@ = 3

:CASIN10_18194
goto @CASIN10_18246

:CASIN10_18201
if 
  3 > 86@
goto_if_false @CASIN10_18246
clear_char_tasks 84@
task_stay_in_same_place 84@ {state} False
task_kill_char_on_foot 84@ {target} $scplayer
86@ = 3

:CASIN10_18246
if 
  88@ == 0
goto_if_false @CASIN10_18403
if 
  is_char_dead 87@
goto_if_false @CASIN10_18301
152@ += 1
88@ = 1
goto @CASIN10_18403

:CASIN10_18301
if 
  42@ == 1
goto_if_false @CASIN10_18403
if 
  89@ == 0
goto_if_false @CASIN10_18371
clear_char_tasks 87@
task_stay_in_same_place 87@ {state} False
task_kill_char_on_foot 87@ {target} $scplayer
89@ = 1
goto @CASIN10_18403

:CASIN10_18371
if 
  2 > 89@
goto_if_false @CASIN10_18403
task_stay_in_same_place 87@ {state} False
89@ = 2

:CASIN10_18403
if 
  91@ == 0
goto_if_false @CASIN10_18560
if 
  is_char_dead 90@
goto_if_false @CASIN10_18458
152@ += 1
91@ = 1
goto @CASIN10_18560

:CASIN10_18458
if 
  42@ == 1
goto_if_false @CASIN10_18560
if 
  92@ == 0
goto_if_false @CASIN10_18528
clear_char_tasks 90@
task_stay_in_same_place 90@ {state} False
task_kill_char_on_foot 90@ {target} $scplayer
92@ = 1
goto @CASIN10_18560

:CASIN10_18528
if 
  2 > 92@
goto_if_false @CASIN10_18560
task_stay_in_same_place 90@ {state} False
92@ = 2

:CASIN10_18560
if 
  94@ == 0
goto_if_false @CASIN10_18717
if 
  is_char_dead 93@
goto_if_false @CASIN10_18615
152@ += 1
94@ = 1
goto @CASIN10_18717

:CASIN10_18615
if 
  42@ == 1
goto_if_false @CASIN10_18717
if 
  95@ == 0
goto_if_false @CASIN10_18685
clear_char_tasks 93@
task_stay_in_same_place 93@ {state} False
task_kill_char_on_foot 93@ {target} $scplayer
95@ = 1
goto @CASIN10_18717

:CASIN10_18685
if 
  2 > 95@
goto_if_false @CASIN10_18717
task_stay_in_same_place 93@ {state} False
95@ = 2

:CASIN10_18717
return 

:CASIN10_18719
96@ = open_sequence_task 
task_play_anim -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 1500
task_stay_in_same_place -1 {state} False
task_play_anim -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 96@ {state} True
close_sequence_task 96@
perform_sequence_task 100@ {sequence} 96@
clear_sequence_task 96@
return 

:CASIN10_18943
97@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -788.611 {y} 497.731 {z} 1375.2271 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 97@
if 
  not is_char_dead 101@
goto_if_false @CASIN10_19019
perform_sequence_task 101@ {sequence} 97@

:CASIN10_19019
clear_sequence_task 97@
return 

:CASIN10_19026
98@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} -789.542 {y} 495.862 {z} 1376.235 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 98@
if 
  not is_char_dead 102@
goto_if_false @CASIN10_19102
perform_sequence_task 102@ {sequence} 98@

:CASIN10_19102
clear_sequence_task 98@
return 

:CASIN10_19109
38@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 38@
if 
  not is_char_dead 103@
goto_if_false @CASIN10_19201
perform_sequence_task 103@ {sequence} 38@

:CASIN10_19201
clear_sequence_task 38@
return 

:CASIN10_19208
39@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 39@
if 
  not is_char_dead 104@
goto_if_false @CASIN10_19300
perform_sequence_task 104@ {sequence} 39@

:CASIN10_19300
clear_sequence_task 39@
return 

:CASIN10_19307
if 
  48@ == 0
goto_if_false @CASIN10_19360
if 
  not is_char_dead 47@
goto_if_false @CASIN10_19360
delete_char 47@
152@ += 1
48@ = 1

:CASIN10_19360
if 
  51@ == 0
goto_if_false @CASIN10_19413
if 
  not is_char_dead 50@
goto_if_false @CASIN10_19413
delete_char 50@
152@ += 1
51@ = 1

:CASIN10_19413
if 
  54@ == 0
goto_if_false @CASIN10_19466
if 
  not is_char_dead 53@
goto_if_false @CASIN10_19466
delete_char 53@
152@ += 1
54@ = 1

:CASIN10_19466
if 
  57@ == 0
goto_if_false @CASIN10_19519
if 
  not is_char_dead 56@
goto_if_false @CASIN10_19519
delete_char 56@
152@ += 1
57@ = 1

:CASIN10_19519
if 
  60@ == 0
goto_if_false @CASIN10_19572
if 
  not is_char_dead 59@
goto_if_false @CASIN10_19572
delete_char 59@
152@ += 1
60@ = 1

:CASIN10_19572
if 
  63@ == 0
goto_if_false @CASIN10_19625
if 
  not is_char_dead 62@
goto_if_false @CASIN10_19625
delete_char 62@
152@ += 1
63@ = 1

:CASIN10_19625
if 
  66@ == 0
goto_if_false @CASIN10_19678
if 
  not is_char_dead 65@
goto_if_false @CASIN10_19678
delete_char 65@
152@ += 1
66@ = 1

:CASIN10_19678
if 
  70@ == 0
goto_if_false @CASIN10_19731
if 
  not is_char_dead 69@
goto_if_false @CASIN10_19731
delete_char 69@
152@ += 1
70@ = 1

:CASIN10_19731
if 
  74@ == 0
goto_if_false @CASIN10_19784
if 
  not is_char_dead 73@
goto_if_false @CASIN10_19784
delete_char 73@
152@ += 1
74@ = 1

:CASIN10_19784
if 
  78@ == 0
goto_if_false @CASIN10_19837
if 
  not is_char_dead 77@
goto_if_false @CASIN10_19837
delete_char 77@
152@ += 1
78@ = 1

:CASIN10_19837
if 
  82@ == 0
goto_if_false @CASIN10_19890
if 
  not is_char_dead 81@
goto_if_false @CASIN10_19890
delete_char 81@
152@ += 1
82@ = 0

:CASIN10_19890
if 
  85@ == 0
goto_if_false @CASIN10_19943
if 
  not is_char_dead 84@
goto_if_false @CASIN10_19943
delete_char 84@
152@ += 1
85@ = 1

:CASIN10_19943
118@ = 1
return 

:CASIN10_19952
custom_plate_for_next_car 405 {text} "_4GEDIT_"
123@ = create_car 405 {x} -831.107 {y} 503.678 {z} 1357.348
change_car_colour 123@ {color1} 24 {color2} 24
set_car_heading 123@ {heading} 292.606
lock_car_doors 123@ {lockStatus} CarLock.Locked
set_vehicle_area_visible 123@ {interiorId} 1
120@ = create_char PedType.Mission1 {modelId} 126 {x} -816.005 {y} 493.329 {z} 1358.293
set_char_allowed_to_duck 120@ {state} False
give_weapon_to_char 120@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 120@ {heading} 302.139
set_char_decision_maker 120@ {handleOrTemplate} 106@
task_stay_in_same_place 120@ {state} True
task_kill_char_on_foot 120@ {target} $scplayer
set_char_accuracy 120@ {accuracy} 80
set_char_shoot_rate 120@ {rate} 50
121@ = create_char PedType.Mission1 {modelId} 124 {x} -821.268 {y} 508.167 {z} 1358.2729
set_char_allowed_to_duck 121@ {state} False
give_weapon_to_char 121@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 121@ {heading} 234.012
set_char_decision_maker 121@ {handleOrTemplate} 106@
task_toggle_duck 121@ {state} True
task_stay_in_same_place 121@ {state} True
task_kill_char_on_foot 121@ {target} $scplayer
set_char_accuracy 121@ {accuracy} 50
set_char_shoot_rate 121@ {rate} 80
122@ = create_char PedType.Mission1 {modelId} 125 {x} -828.77 {y} 510.594 {z} 1357.307
set_char_allowed_to_duck 122@ {state} False
give_weapon_to_char 122@ {weaponType} WeaponType.MicroUzi {ammo} 30000
set_char_heading 122@ {heading} 241.767
set_char_decision_maker 122@ {handleOrTemplate} 106@
task_toggle_duck 122@ {state} True
task_stay_in_same_place 122@ {state} True
task_kill_char_on_foot 122@ {target} $scplayer
set_char_accuracy 122@ {accuracy} 75
set_char_shoot_rate 122@ {rate} 50
119@ = 1
return 

:CASIN10_20310
if or
  132@ == 0
  132@ == 1
goto_if_false @CASIN10_20361
if 
  is_int_var_greater_or_equal_to_int_lvar $cell_index_end >= 131@
goto_if_false @CASIN10_20361
gosub @CASIN10_20419

:CASIN10_20361
if 
  132@ == 2
goto_if_false @CASIN10_20417
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @CASIN10_20417
132@ = 0
131@ += 1
133@ = 0
clear_prints 

:CASIN10_20417
return 

:CASIN10_20419
if 
  132@ == 0
goto_if_false @CASIN10_20455
load_mission_audio MissionAudioSlot.Slot1 {audioId} 135@(131@,17i)
132@ = 1

:CASIN10_20455
if 
  132@ == 1
goto_if_false @CASIN10_20513
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @CASIN10_20513
print_now $casino10_chat(131@,17s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
132@ = 2

:CASIN10_20513
return 

:CASIN10_20515
if 
  153@ == 0
goto_if_false @CASIN10_20620
if 
  is_char_dead 120@
goto_if_false @CASIN10_20570
152@ += 1
153@ = 1
goto @CASIN10_20620

:CASIN10_20570
if 
  42@ == 1
goto_if_false @CASIN10_20620
if 
  154@ == 0
goto_if_false @CASIN10_20620
set_char_stay_in_same_place 120@ {state} False
154@ = 1

:CASIN10_20620
if 
  155@ == 0
goto_if_false @CASIN10_20725
if 
  is_char_dead 121@
goto_if_false @CASIN10_20675
152@ += 1
155@ = 1
goto @CASIN10_20725

:CASIN10_20675
if 
  42@ == 1
goto_if_false @CASIN10_20725
if 
  156@ == 0
goto_if_false @CASIN10_20725
set_char_stay_in_same_place 121@ {state} False
156@ = 1

:CASIN10_20725
if 
  157@ == 0
goto_if_false @CASIN10_20830
if 
  is_char_dead 122@
goto_if_false @CASIN10_20780
152@ += 1
157@ = 1
goto @CASIN10_20830

:CASIN10_20780
if 
  42@ == 1
goto_if_false @CASIN10_20830
if 
  158@ == 0
goto_if_false @CASIN10_20830
set_char_stay_in_same_place 122@ {state} False
158@ = 1

:CASIN10_20830
return 

//-------------Mission 93---------------
// Originally: Misappropriation

:VCRASH1
gosub @VCRASH1_36
if 
  has_deatharrest_been_executed 
goto_if_false @VCRASH1_27
gosub @VCRASH1_7873

:VCRASH1_27
gosub @VCRASH1_8041
terminate_this_script 

:VCRASH1_36
$onmission = 1
register_mission_given 
script_name 'VCRASH1'
wait 0
load_mission_text 'VCR1'
make_player_gang_disappear 
load_cutscene 'CRASHV1'

:VCRASH1_84
if 
  not has_cutscene_loaded 
goto_if_false @VCRASH1_108
wait 0
goto @VCRASH1_84

:VCRASH1_108
force_weather_now WeatherType.ExtraSunnyVegas
start_cutscene 
clear_area 1653.347 {y} 2668.373 {z} 10.8203 {radius} 10.0 {clearParticles} False
do_fade 1000 {direction} Fade.In

:VCRASH1_145
if 
  not has_cutscene_finished 
goto_if_false @VCRASH1_169
wait 0
goto @VCRASH1_145

:VCRASH1_169
do_fade 0 {direction} Fade.Out

:VCRASH1_175
if 
  get_fading_status 
goto_if_false @VCRASH1_199
wait 0
goto @VCRASH1_175

:VCRASH1_199
clear_cutscene 

:VCRASH1_201
if 
  not is_player_playing $player1
goto_if_false @VCRASH1_228
wait 0
goto @VCRASH1_201

:VCRASH1_228
clear_area 1599.09 {y} 2667.7251 {z} 9.8203 {radius} 0.5 {clearParticles} False
load_scene 1599.09 {y} 2667.7251 {z} 9.8203
set_char_coordinates $scplayer {x} 1599.09 {y} 2667.7251 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_camera_behind_player 
release_weather 
make_player_gang_reappear 
do_fade 1000 {direction} Fade.In

:VCRASH1_312
if 
  get_fading_status 
goto_if_false @VCRASH1_336
wait 0
goto @VCRASH1_312

:VCRASH1_336
set_respawn_point_for_duration_of_mission 1599.09 {y} 2667.7251 {z} 9.8203
print_now 'VCR1__1' {time} 15000 {flag} 1
34@ = add_blip_for_coord -1306.191 {y} 2532.48 {z} 86.7332
change_blip_colour 34@ {color} BlipColor.Red
59@ = 0
60@ = 0
61@ = 0
49@ = 0

:VCRASH1_424
if 
  10 > 49@
goto_if_false @VCRASH1_467
62@(49@,10i) = 0
49@ += 1
goto @VCRASH1_424

:VCRASH1_467
36@ = 0
72@ = 0
73@ = 0
if 
  36@ == 1
goto_if_false @VCRASH1_525
106@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 103@ {y} 104@ {z} 105@

:VCRASH1_525
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
if 
  $played_vcrash1_before == 1
goto_if_false @VCRASH1_574
set_up_skip -1346.614 {y} 2304.4819 {z} 93.539 {heading} 4.8156

:VCRASH1_574
wait 0
if 
  not is_player_playing $player1
goto_if_false @VCRASH1_601
goto @VCRASH1_574

:VCRASH1_601
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @VCRASH1_623
goto @VCRASH1_7980

:VCRASH1_623
$game_timer = get_game_timer 
if or
  locate_char_any_means_3d $scplayer {x} 2511.364 {y} 2388.9141 {z} 6.2421 {xRadius} 38.6 {yRadius} 26.4 {zRadius} 3.4 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} -1306.191 {y} 2532.48 {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @VCRASH1_710
alter_wanted_level $player1 {wantedLevel} 0

:VCRASH1_710
if 
  36@ == 0
goto_if_false @VCRASH1_3167
if 
  locate_char_any_means_2d $scplayer {x} -1306.191 {y} 2532.48 {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @VCRASH1_3167
44@ = 0
if 
  not has_model_loaded 487
goto_if_false @VCRASH1_801
request_model 487
goto @VCRASH1_808

:VCRASH1_801
44@ += 1

:VCRASH1_808
if 
  not has_model_loaded 500
goto_if_false @VCRASH1_836
request_model 500
goto @VCRASH1_843

:VCRASH1_836
44@ += 1

:VCRASH1_843
if 
  not has_model_loaded 490
goto_if_false @VCRASH1_871
request_model 490
goto @VCRASH1_878

:VCRASH1_871
44@ += 1

:VCRASH1_878
if 
  not has_model_loaded 468
goto_if_false @VCRASH1_906
request_model 468
goto @VCRASH1_913

:VCRASH1_906
44@ += 1

:VCRASH1_913
if 
  not has_model_loaded 402
goto_if_false @VCRASH1_941
request_model 402
goto @VCRASH1_948

:VCRASH1_941
44@ += 1

:VCRASH1_948
if 
  not has_model_loaded 355
goto_if_false @VCRASH1_976
request_model 355
goto @VCRASH1_983

:VCRASH1_976
44@ += 1

:VCRASH1_983
if 
  not has_model_loaded 286
goto_if_false @VCRASH1_1011
request_model 286
goto @VCRASH1_1018

:VCRASH1_1011
44@ += 1

:VCRASH1_1018
if 
  not has_model_loaded 147
goto_if_false @VCRASH1_1046
request_model 147
goto @VCRASH1_1053

:VCRASH1_1046
44@ += 1

:VCRASH1_1053
if 
  not has_model_loaded 352
goto_if_false @VCRASH1_1081
request_model 352
goto @VCRASH1_1088

:VCRASH1_1081
44@ += 1

:VCRASH1_1088
if 
  not has_car_recording_been_loaded 114
goto_if_false @VCRASH1_1114
request_car_recording 114
goto @VCRASH1_1121

:VCRASH1_1114
44@ += 1

:VCRASH1_1121
if 
  not has_car_recording_been_loaded 109
goto_if_false @VCRASH1_1147
request_car_recording 109
goto @VCRASH1_1154

:VCRASH1_1147
44@ += 1

:VCRASH1_1154
if 
  44@ == 11
goto_if_false @VCRASH1_3167
$played_vcrash1_before = 1
74@ = create_car 487 {x} -1325.514 {y} 2559.8701 {z} 87.6329
set_car_heading 74@ {heading} 90.0
lock_car_doors 74@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_health 74@ {health} 50000
set_car_proofs 74@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
start_playback_recorded_car 74@ {path} 114
set_playback_speed 74@ {speed} 0.0
set_heli_blades_full_speed 74@
75@ = create_car 487 {x} -1343.22 {y} 2538.3369 {z} 87.0107
set_car_heading 75@ {heading} 10.304
set_car_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
mark_model_as_no_longer_needed 487
76@ = create_car 500 {x} -1304.416 {y} 2498.821 {z} 87.0571
mark_model_as_no_longer_needed 500
set_car_heading 76@ {heading} 240.0877
77@ = create_car 490 {x} -1291.948 {y} 2497.782 {z} 87.1105
mark_model_as_no_longer_needed 490
set_car_heading 77@ {heading} 107.4866
78@ = create_car 468 {x} -1311.13 {y} 2512.1689 {z} 86.7085
set_car_heading 78@ {heading} 177.3181
79@ = create_car 468 {x} -1308.1071 {y} 2542.5769 {z} 87.4072
mark_model_as_no_longer_needed 468
set_car_heading 79@ {heading} 179.8761
80@ = create_char PedType.Mission1 {modelId} 147 {x} -1312.009 {y} 2549.6001 {z} 86.7332
set_char_heading 80@ {heading} 259.3965
give_weapon_to_char 80@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_inform_respected_friends 80@ {radius} 30.0 {_p3} 5
remove_blip 34@
34@ = add_blip_for_char 80@
set_char_only_damaged_by_player 80@ {state} True
set_char_health 80@ {health} 200
90@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 90@ {event} Event.GunAimedAt
set_char_decision_maker 80@ {handleOrTemplate} 90@
91@ = 0
81@ = create_char PedType.Mission1 {modelId} 286 {x} -1302.715 {y} 2534.374 {z} 86.7332
set_char_heading 81@ {heading} 183.0002
give_weapon_to_char 81@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 81@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 81@ {radius} 30.0 {_p3} 8
set_char_relationship 81@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 81@ {range} 70.0
set_char_keep_task 81@ {state} True
82@ = create_char PedType.Mission1 {modelId} 286 {x} -1325.868 {y} 2525.353 {z} 89.2044
set_char_heading 82@ {heading} 226.106
give_weapon_to_char 82@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 82@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 82@ {radius} 30.0 {_p3} 8
set_char_relationship 82@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 82@ {range} 70.0
set_char_keep_task 82@ {state} True
83@ = create_char PedType.Mission1 {modelId} 286 {x} -1303.204 {y} 2530.197 {z} 86.6889
set_char_heading 83@ {heading} 4.8042
give_weapon_to_char 83@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 83@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 83@ {radius} 30.0 {_p3} 8
set_char_relationship 83@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 83@ {range} 70.0
set_char_keep_task 83@ {state} True
84@ = create_char PedType.Mission1 {modelId} 286 {x} -1315.783 {y} 2502.167 {z} 88.8673
set_char_heading 84@ {heading} 242.7848
give_weapon_to_char 84@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 84@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 84@ {radius} 30.0 {_p3} 8
set_char_relationship 84@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 84@ {range} 70.0
set_char_keep_task 84@ {state} True
85@ = create_char PedType.Mission1 {modelId} 286 {x} -1299.54 {y} 2555.9189 {z} 86.5877
give_weapon_to_char 85@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 85@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 85@ {radius} 30.0 {_p3} 8
set_char_relationship 85@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 85@ {range} 70.0
set_char_keep_task 85@ {state} True
flush_route 
extend_route -1299.54 {y} 2555.9189 {z} 86.5877
extend_route -1310.96 {y} 2556.2319 {z} 86.7332
extend_route -1311.968 {y} 2538.9629 {z} 86.7332
extend_route -1321.3571 {y} 2531.0759 {z} 86.6104
extend_route -1321.043 {y} 2522.5 {z} 86.285
extend_route -1314.5389 {y} 2513.364 {z} 86.0349
extend_route -1309.208 {y} 2508.24 {z} 86.0349
extend_route -1296.686 {y} 2524.012 {z} 86.4456
task_follow_point_route 85@ {speed} MoveState.Walk {mode} RouteMode.Loop
86@ = create_char PedType.Mission1 {modelId} 286 {x} -1328.974 {y} 2533.5291 {z} 86.409
give_weapon_to_char 86@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 86@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 86@ {radius} 30.0 {_p3} 8
set_char_relationship 86@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 86@ {range} 70.0
set_char_keep_task 86@ {state} True
flush_route 
extend_route -1328.974 {y} 2533.5291 {z} 86.409
extend_route -1329.293 {y} 2521.8799 {z} 86.0349
extend_route -1309.1949 {y} 2521.418 {z} 86.3435
extend_route -1308.755 {y} 2535.446 {z} 86.7332
task_follow_point_route 86@ {speed} MoveState.Walk {mode} RouteMode.Loop
87@ = create_char PedType.Mission1 {modelId} 286 {x} -1288.024 {y} 2516.4309 {z} 86.1473
give_weapon_to_char 87@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 87@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 87@ {radius} 30.0 {_p3} 8
set_char_relationship 87@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 87@ {range} 70.0
set_char_keep_task 87@ {state} True
flush_route 
extend_route -1288.024 {y} 2516.4309 {z} 86.1473
extend_route -1287.4301 {y} 2508.769 {z} 86.0176
extend_route -1295.208 {y} 2506.5481 {z} 85.9726
extend_route -1310.584 {y} 2517.543 {z} 86.191
extend_route -1311.3361 {y} 2524.4319 {z} 86.4621
extend_route -1305.55 {y} 2521.813 {z} 86.359
extend_route -1300.198 {y} 2521.1831 {z} 86.3342
extend_route -1296.416 {y} 2525.1851 {z} 86.4917
task_follow_point_route 87@ {speed} MoveState.Walk {mode} RouteMode.BackForward
88@ = create_char PedType.Mission1 {modelId} 286 {x} -1294.97 {y} 2499.6189 {z} 85.9347
set_char_heading 88@ {heading} 102.9169
give_weapon_to_char 88@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 88@ {onFoot} False {inCar} False {duringScriptTask} True
set_inform_respected_friends 88@ {radius} 30.0 {_p3} 8
set_char_relationship 88@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 88@ {range} 70.0
set_char_keep_task 88@ {state} True
89@ = create_char PedType.Mission1 {modelId} 286 {x} -1296.548 {y} 2499.436 {z} 85.9413
set_char_heading 89@ {heading} 281.057
give_weapon_to_char 89@ {weaponType} WeaponType.Ak47 {ammo} 9999
task_toggle_ped_threat_scanner 89@ {onFoot} False {inCar} False {duringScriptTask} True
task_chat_with_char 88@ {other} 89@ {leadSpeaker} True {_p4} 1
task_chat_with_char 89@ {other} 88@ {leadSpeaker} False {_p4} 1
set_inform_respected_friends 89@ {radius} 30.0 {_p3} 12
set_char_relationship 89@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_sense_range 89@ {range} 70.0
set_char_keep_task 89@ {state} True
92@ = create_car 402 {x} 2077.761 {y} 2420.9009 {z} 48.5234
set_car_heading 92@ {heading} 90.0
start_playback_recorded_car 92@ {path} 109
set_playback_speed 92@ {speed} 0.0
set_car_proofs 92@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 92@ {health} 50000
lock_car_doors 92@ {lockStatus} CarLock.LockoutPlayerOnly
93@ = create_car 402 {x} 2077.761 {y} 2416.9009 {z} 48.5234
set_car_heading 93@ {heading} 90.0
set_car_health 93@ {health} 1750
lock_car_doors 93@ {lockStatus} CarLock.LockoutPlayerOnly
94@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1324.902 {y} 2554.6541 {z} 87.8548 {speed} MoveState.Sprint {time} -2
task_enter_car_as_driver -1 {vehicle} 74@ {time} 20000
close_sequence_task 94@
95@ = open_sequence_task 
task_leave_any_car -1
task_go_to_coord_while_shooting -1 {x} 2112.6069 {y} 2422.873 {z} 59.8223 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2097.2881 {y} 2436.6179 {z} 59.8223 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2096.7571 {y} 2440.394 {z} 59.8151 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2074.0359 {y} 2440.0979 {z} 48.5176 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_go_to_coord_while_shooting -1 {x} 2078.0 {y} 2427.0039 {z} 48.5244 {speed} MoveState.Sprint {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
task_enter_car_as_driver -1 {vehicle} 92@ {time} 20000
close_sequence_task 95@
36@ += 1

:VCRASH1_3167
if 
  72@ == 0
goto_if_false @VCRASH1_3253
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_3253
print_now 'VCR1__7' {time} 8000 {flag} 1
switch_car_generator $gen_car_flying[7] {amount} 0
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 8000
72@ += 1

:VCRASH1_3253
if 
  72@ == 1
goto_if_false @VCRASH1_3401
if 
  1 > 61@
goto_if_false @VCRASH1_3401
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_3401
if 
  not is_car_dead 75@
goto_if_false @VCRASH1_3378
if 
  not is_char_in_any_heli $scplayer
goto_if_false @VCRASH1_3378
print_now 'VCR1__9' {time} 6000 {flag} 1
35@ = add_blip_for_car 75@
set_blip_as_friendly 35@ {state} True
change_blip_display 34@ {display} BlipDisplay.MarkerOnly

:VCRASH1_3378
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 6000
72@ += 1

:VCRASH1_3401
if 
  72@ == 2
goto_if_false @VCRASH1_3583
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_3583
if 
  is_char_in_any_heli $scplayer
goto_if_false @VCRASH1_3551
print_now 'VCR1_10' {time} 5000 {flag} 1
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_3501
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:VCRASH1_3501
if 
  not is_car_dead 75@
goto_if_false @VCRASH1_3532
set_car_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:VCRASH1_3532
change_blip_display 34@ {display} BlipDisplay.Both
remove_blip 35@
72@ += 1

:VCRASH1_3551
if 
  is_char_dead 80@(91@,10i)
goto_if_false @VCRASH1_3583
remove_blip 35@
72@ += 1

:VCRASH1_3583
if 
  36@ > 0
goto_if_false @VCRASH1_6883
49@ = 0

:VCRASH1_3608
if 
  10 > 49@
goto_if_false @VCRASH1_6883
if 
  is_int_lvar_equal_to_int_lvar 49@ == 91@
goto_if_false @VCRASH1_6189
if 
  not is_char_dead 80@(49@,10i)
goto_if_false @VCRASH1_5884
if 
  62@(91@,10i) == 0
goto_if_false @VCRASH1_3732
if 
  59@ > 0
goto_if_false @VCRASH1_3732
perform_sequence_task 80@(91@,10i) {sequence} 94@
set_area51_sam_site False
62@(91@,10i) += 1

:VCRASH1_3732
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_4114
if 
  62@(91@,10i) == 1
goto_if_false @VCRASH1_3827
if 
  is_char_in_car 80@(91@,10i) {vehicle} 74@
goto_if_false @VCRASH1_3827
set_car_health 74@ {health} 1750
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
62@(91@,10i) += 1

:VCRASH1_3827
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_4114
$x, $y, $z = get_car_coordinates 74@
51@, 52@, 53@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 51@ {toZ} 52@
96@ = 7000.0
div_float_lvar_by_float_var 96@ /= $distance
96@ /= 100.0
if 
  96@ > 2.0
goto_if_false @VCRASH1_3953
96@ = 2.0

:VCRASH1_3953
if 
  0.3 > 96@
goto_if_false @VCRASH1_3984
96@ = 0.3

:VCRASH1_3984
set_playback_speed 74@ {speed} 96@
if 
  not is_playback_going_on_for_car 74@
goto_if_false @VCRASH1_4114
if 
  not is_car_dead 93@
goto_if_false @VCRASH1_4031
lock_car_doors 93@ {lockStatus} CarLock.Unlocked

:VCRASH1_4031
perform_sequence_task 80@(91@,10i) {sequence} 95@
print_now 'VCR1__8' {time} 5000 {flag} 1
remove_blip 35@
change_blip_display 34@ {display} BlipDisplay.Both
switch_roads_off 2475.428 {leftBottomY} 2345.0071 {leftBottomZ} 2.7255 {rightTopX} 2517.416 {rightTopY} 2398.874 {rightTopZ} 12.369
62@(91@,10i) += 1

:VCRASH1_4114
if 
  not is_car_dead 92@
goto_if_false @VCRASH1_4555
if 
  62@(91@,10i) == 3
goto_if_false @VCRASH1_4306
if 
  is_char_in_car 80@(91@,10i) {vehicle} 92@
goto_if_false @VCRASH1_4306
set_car_health 92@ {health} 1750
set_car_proofs 92@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 74@
mark_car_as_no_longer_needed 75@
mark_car_as_no_longer_needed 76@
mark_car_as_no_longer_needed 77@
mark_car_as_no_longer_needed 78@
mark_car_as_no_longer_needed 79@
42@ = 0

:VCRASH1_4235
if 
  10 > 42@
goto_if_false @VCRASH1_4295
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 91@
goto_if_false @VCRASH1_4281
mark_char_as_no_longer_needed 80@(42@,10i)

:VCRASH1_4281
42@ += 1
goto @VCRASH1_4235

:VCRASH1_4295
62@(91@,10i) += 1

:VCRASH1_4306
if 
  62@(91@,10i) == 4
goto_if_false @VCRASH1_4555
if 
  is_playback_going_on_for_car 92@
goto_if_false @VCRASH1_4500
$x, $y, $z = get_car_coordinates 92@
51@, 52@, 53@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} 51@ {toY} 52@ {toZ} 53@
96@ = 5000.0
div_float_lvar_by_float_var 96@ /= $distance
96@ /= 100.0
if 
  96@ > 1.1
goto_if_false @VCRASH1_4454
96@ = 1.1

:VCRASH1_4454
if 
  0.6 > 96@
goto_if_false @VCRASH1_4485
96@ = 0.6

:VCRASH1_4485
set_playback_speed 92@ {speed} 96@
goto @VCRASH1_4555

:VCRASH1_4500
task_car_drive_to_coord 80@(91@,10i) {vehicle} -1 {x} 2538.0669 {y} 2389.8191 {z} 3.22 {speed} 100.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
set_car_straight_line_distance 92@ {distance} 1
62@(91@,10i) += 1

:VCRASH1_4555
if 
  62@(91@,10i) == 5
goto_if_false @VCRASH1_5588
if 
  is_char_in_any_car 80@(91@,10i)
goto_if_false @VCRASH1_5577
97@ = store_car_char_is_in_no_save 80@(91@,10i)
set_car_driving_style 97@ {drivingStyle} DrivingMode.AvoidCars
set_car_straight_line_distance 97@ {distance} 1
$x, $y, $z = get_car_coordinates 97@
51@, 52@, 53@ = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} 51@ {toZ} 52@
57@ = 3000.0
div_float_lvar_by_float_var 57@ /= $distance
if 
  locate_char_in_car_3d 80@(91@,10i) {x} 2506.6499 {y} 2355.8569 {z} 10.8203 {xRadius} 29.9399 {yRadius} 15.57 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH1_4748
57@ = 20.0

:VCRASH1_4748
if 
  57@ > 100.0
goto_if_false @VCRASH1_4779
57@ = 100.0

:VCRASH1_4779
if 
  15.0 > 57@
goto_if_false @VCRASH1_4810
57@ = 15.0

:VCRASH1_4810
set_car_cruise_speed 97@ {maxSpeed} 57@
40@ = get_car_health 97@
if 
  251 > 40@
goto_if_false @VCRASH1_4910
set_car_temp_action 97@ {actionId} TempAction.HandbrakeTurnLeft {time} 5000
$x, $y, $z = get_char_coordinates 80@(91@,10i)
task_flee_point 80@(91@,10i) {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500
62@(91@,10i) += 1

:VCRASH1_4910
if and
  is_car_upsidedown 97@
  is_car_stopped 97@
goto_if_false @VCRASH1_5170
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 97@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @VCRASH1_5031
set_upsidedown_car_not_damaged 97@ {state} False
$x, $y, $z = get_char_coordinates 80@(91@,10i)
task_flee_point 80@(91@,10i) {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500
62@(91@,10i) += 1
goto @VCRASH1_5170

:VCRASH1_5031
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @VCRASH1_5170
if 
  not is_car_on_screen 97@
goto_if_false @VCRASH1_5170
$x, $y, $z = get_car_coordinates 97@
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @VCRASH1_5170
set_car_coordinates 97@ {x} $x {y} $y {z} $z
set_car_heading 97@ {heading} $heading

:VCRASH1_5170
if 
  locate_car_3d 97@ {x} 98@ {y} 99@ {z} 100@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @VCRASH1_5477
if 
  is_int_var_greater_than_int_lvar $game_timer > 101@
goto_if_false @VCRASH1_5470
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 97@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @VCRASH1_5331
set_upsidedown_car_not_damaged 97@ {state} False
$x, $y, $z = get_char_coordinates 80@(91@,10i)
task_flee_point 80@(91@,10i) {x} $x {y} $y {z} $z {radius} 15.0 {time} 500
62@(91@,10i) += 1
goto @VCRASH1_5470

:VCRASH1_5331
if 
  not is_car_on_screen 97@
goto_if_false @VCRASH1_5470
$x, $y, $z = get_car_coordinates 97@
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @VCRASH1_5470
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @VCRASH1_5470
set_car_coordinates 97@ {x} $x {y} $y {z} $z
set_car_heading 97@ {heading} $heading

:VCRASH1_5470
goto @VCRASH1_5507

:VCRASH1_5477
98@, 99@, 100@ = get_car_coordinates 97@
set_lvar_int_to_var_int 101@ = $game_timer
101@ += 5000

:VCRASH1_5507
if 
  locate_char_in_car_3d 80@(91@,10i) {x} 2538.0669 {y} 2389.8191 {z} 3.22 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH1_5570
62@(91@,10i) = 7

:VCRASH1_5570
goto @VCRASH1_5588

:VCRASH1_5577
62@(91@,10i) += 1

:VCRASH1_5588
if 
  62@(91@,10i) == 6
goto_if_false @VCRASH1_5733
$task_status = get_script_task_status 80@(91@,10i) {taskId} 1498
102@ = get_script_task_status 80@(91@,10i) {taskId} 1489
if or
  is_int_var_equal_to_constant $task_status == 7
  is_char_in_any_car 80@(91@,10i)
goto_if_false @VCRASH1_5733
if 
  is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @VCRASH1_5733
task_car_drive_to_coord 80@(91@,10i) {vehicle} -1 {x} 2538.0669 {y} 2389.8191 {z} 3.22 {speed} 100.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
62@(91@,10i) -= 1

:VCRASH1_5733
if 
  is_char_in_any_car 80@(91@,10i)
goto_if_false @VCRASH1_5785
if 
  60@ == 0
goto_if_false @VCRASH1_5778
60@ = 1

:VCRASH1_5778
goto @VCRASH1_5810

:VCRASH1_5785
if 
  60@ == 1
goto_if_false @VCRASH1_5810
60@ = 0

:VCRASH1_5810
if 
  62@(91@,10i) == 7
goto_if_false @VCRASH1_5877
$task_status = get_script_task_status 80@(91@,10i) {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_5877
task_kill_char_on_foot 80@(91@,10i) {target} $scplayer

:VCRASH1_5877
goto @VCRASH1_6182

:VCRASH1_5884
if 
  62@(91@,10i) == 2
goto_if_false @VCRASH1_5959
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_5959
if 
  is_playback_going_on_for_car 74@
goto_if_false @VCRASH1_5943
stop_playback_recorded_car 74@

:VCRASH1_5943
make_heli_come_crashing_down 74@
62@(91@,10i) = 90

:VCRASH1_5959
if 
  does_char_exist 80@(91@,10i)
goto_if_false @VCRASH1_6134
if 
  not is_char_in_water 80@(91@,10i)
goto_if_false @VCRASH1_6104
if 
  61@ == 0
goto_if_false @VCRASH1_6097
remove_blip 34@
103@, 104@, 105@ = get_dead_char_pickup_coords 80@(91@,10i)
106@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 103@ {y} 104@ {z} 105@
34@ = add_blip_for_pickup 106@
print_now 'VCR1__3' {time} 5000 {flag} 1
60@ = 2
61@ = 1

:VCRASH1_6097
goto @VCRASH1_6127

:VCRASH1_6104
print_now 'VCR1__4' {time} 5000 {flag} 1
goto @VCRASH1_7873

:VCRASH1_6127
goto @VCRASH1_6157

:VCRASH1_6134
print_now 'VCR1__5' {time} 5000 {flag} 1
goto @VCRASH1_7873

:VCRASH1_6157
if 
  59@ == 0
goto_if_false @VCRASH1_6182
59@ = 1

:VCRASH1_6182
goto @VCRASH1_6765

:VCRASH1_6189
if 
  not is_char_dead 80@(49@,10i)
goto_if_false @VCRASH1_6729
if 
  3 > 62@(91@,10i)
goto_if_false @VCRASH1_6722
if 
  62@(49@,10i) == 0
goto_if_false @VCRASH1_6463
if 
  73@ == 1
goto_if_false @VCRASH1_6316
$task_status = get_script_task_status 80@(49@,10i) {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_6316
task_kill_char_on_foot 80@(49@,10i) {target} $scplayer

:VCRASH1_6316
if 
  2 > 62@(49@,10i)
goto_if_false @VCRASH1_6463
if 
  61@ == 1
goto_if_false @VCRASH1_6463
if 
  locate_char_on_foot_2d 80@(49@,10i) {x} 103@ {y} 104@ {xRadius} 65.0 {yRadius} 65.0 {drawSphere} False
goto_if_false @VCRASH1_6463
give_weapon_to_char 80@(49@,10i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_current_char_weapon 80@(49@,10i) {weaponType} WeaponType.MicroUzi
task_go_to_coord_while_shooting 80@(49@,10i) {x} 103@ {y} 104@ {z} 105@ {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 0.5 {target} $scplayer
62@(49@,10i) += 1

:VCRASH1_6463
if 
  62@(49@,10i) == 1
goto_if_false @VCRASH1_6722
if 
  61@ == 1
goto_if_false @VCRASH1_6711
$task_status = get_script_task_status 80@(49@,10i) {taskId} 1591
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCRASH1_6704
if 
  locate_char_on_foot_2d 80@(49@,10i) {x} 103@ {y} 104@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @VCRASH1_6704
mark_char_as_no_longer_needed 80@(91@,10i)
80@(91@,10i) = -1
set_lvar_int_to_lvar_int 91@ = 49@
remove_blip 34@
remove_pickup 106@
34@ = add_blip_for_char 80@(91@,10i)
set_char_only_damaged_by_player 80@(91@,10i) {state} True
if 
  not is_player_targetting_char $player1 {handle} 80@(91@,10i)
goto_if_false @VCRASH1_6670
set_char_health 80@(91@,10i) {health} 200

:VCRASH1_6670
62@(91@,10i) = 0
print_now 'VCR1__2' {time} 5000 {flag} 1
61@ = 0

:VCRASH1_6704
goto @VCRASH1_6722

:VCRASH1_6711
62@(49@,10i) -= 1

:VCRASH1_6722
goto @VCRASH1_6765

:VCRASH1_6729
mark_char_as_no_longer_needed 80@(49@,10i)
if 
  59@ == 0
goto_if_false @VCRASH1_6765
clear_skip 
59@ = 1

:VCRASH1_6765
if 
  59@ == 0
goto_if_false @VCRASH1_6869
if or
  is_char_responding_to_event 80@(49@,10i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 80@(49@,10i) {event} Event.PotentialGetRunOver
  is_char_responding_to_event 80@(49@,10i) {event} Event.ShotFired
  is_char_responding_to_event 80@(49@,10i) {event} Event.DeadPed
  is_char_responding_to_event 80@(49@,10i) {event} Event.ShotFiredWhizzedBy
  is_char_responding_to_event 80@(49@,10i) {event} Event.VehicleThreat
goto_if_false @VCRASH1_6869
clear_skip 
59@ = 1

:VCRASH1_6869
49@ += 1
goto @VCRASH1_3608

:VCRASH1_6883
if 
  73@ == 0
goto_if_false @VCRASH1_6958
if 
  locate_char_any_means_3d $scplayer {x} -1308.928 {y} 2527.4661 {z} 92.816 {xRadius} 26.85 {yRadius} 38.6399 {zRadius} 8.9 {drawSphere} False
goto_if_false @VCRASH1_6958
clear_skip 
73@ += 1

:VCRASH1_6958
if 
  59@ == 1
goto_if_false @VCRASH1_7001
print_now 'VCR1_11' {time} 5000 {flag} 1
clear_skip 
59@ += 1

:VCRASH1_7001
if 
  36@ == 1
goto_if_false @VCRASH1_7541
if 
  62@(91@,10i) > 2
goto_if_false @VCRASH1_7541
if 
  locate_char_any_means_3d $scplayer {x} 2511.364 {y} 2388.9141 {z} 6.2421 {xRadius} 38.6 {yRadius} 26.4 {zRadius} 3.4 {drawSphere} False
goto_if_false @VCRASH1_7541
107@ = create_car 402 {x} 2522.2109 {y} 2383.6289 {z} 4.0162
set_car_heading 107@ {heading} 339.2576
108@ = create_car 402 {x} 2518.511 {y} 2393.821 {z} 4.0104
set_car_heading 108@ {heading} 168.2849
109@ = create_car 402 {x} 2510.3359 {y} 2380.583 {z} 4.0139
set_car_heading 109@ {heading} 110.7153
110@ = 2524.2209
120@ = 2385.0071
111@ = 2520.053
121@ = 2392.282
112@ = 2513.938
122@ = 2381.334
113@ = 2513.9099
123@ = 2385.4709
114@ = 2511.99
124@ = 2392.3469
115@ = 2519.3081
125@ = 2399.5349
116@ = 2530.1689
126@ = 2388.519
117@ = 2504.144
127@ = 2382.468
118@ = 2504.832
128@ = 2397.616
119@ = 2506.832
129@ = 2397.616
43@ = 0

:VCRASH1_7395
if 
  10 > 43@
goto_if_false @VCRASH1_7518
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 91@
goto_if_false @VCRASH1_7504
create_char PedType.Mission1 {modelId} 286 {x} 110@(43@,10f) {y} 120@(43@,10f) {z} 3.2262 {var_handle} 80@(43@,10i)
set_char_heading 80@(43@,10i) {heading} 91.4967
give_weapon_to_char 80@(43@,10i) {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_keep_task 80@(43@,10i) {state} True

:VCRASH1_7504
43@ += 1
goto @VCRASH1_7395

:VCRASH1_7518
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 3000
36@ += 1

:VCRASH1_7541
if 
  36@ == 2
goto_if_false @VCRASH1_7689
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_7689
43@ = 0

:VCRASH1_7585
if 
  10 > 43@
goto_if_false @VCRASH1_7666
if 
  not is_char_dead 80@(43@,10i)
goto_if_false @VCRASH1_7652
set_inform_respected_friends 80@(43@,10i) {radius} 50.0 {_p3} 8
set_char_relationship 80@(43@,10i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:VCRASH1_7652
43@ += 1
goto @VCRASH1_7585

:VCRASH1_7666
set_lvar_int_to_var_int 37@ = $game_timer
37@ += 3000
36@ += 1

:VCRASH1_7689
if 
  36@ == 3
goto_if_false @VCRASH1_7804
if 
  is_int_var_greater_than_int_lvar $game_timer > 37@
goto_if_false @VCRASH1_7804
43@ = 0

:VCRASH1_7733
if 
  10 > 43@
goto_if_false @VCRASH1_7797
if 
  not is_char_dead 80@(43@,10i)
goto_if_false @VCRASH1_7783
task_kill_char_on_foot 80@(43@,10i) {target} $scplayer

:VCRASH1_7783
43@ += 1
goto @VCRASH1_7733

:VCRASH1_7797
36@ += 1

:VCRASH1_7804
if 
  61@ == 1
goto_if_false @VCRASH1_7866
if 
  has_pickup_been_collected 106@
goto_if_false @VCRASH1_7866
remove_blip 34@
print_now 'VCR1__6' {time} 5000 {flag} 1
goto @VCRASH1_7980

:VCRASH1_7866
goto @VCRASH1_574

:VCRASH1_7873
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  not is_char_dead 80@(91@,10i)
goto_if_false @VCRASH1_7978
if 
  not is_car_dead 74@
goto_if_false @VCRASH1_7978
if 
  is_char_in_car 80@(91@,10i) {vehicle} 74@
goto_if_false @VCRASH1_7978
heli_goto_coords 74@ {x} 0.0 {y} 0.0 {z} 0.0 {minAltitude} 20.0 {maxAltitude} 40.0

:VCRASH1_7978
return 

:VCRASH1_7980
$flag_vcrash_mission_counter += 1
print_big 'M_PASSD' {time} 5000 {style} TextStyle.Middle
add_score $player1 {money} 0
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'VCRASH1'
player_made_progress 1
remove_blip $vcrash_contact_blip
return 

:VCRASH1_8041
remove_blip 34@
remove_blip 35@
set_area51_sam_site True
remove_pickup 106@
if 
  not is_car_dead 75@
goto_if_false @VCRASH1_8091
set_car_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:VCRASH1_8091
switch_roads_on 2475.428 {leftBottomY} 2345.0071 {leftBottomZ} 2.7255 {rightTopX} 2517.416 {rightTopY} 2398.874 {rightTopZ} 12.369
if 
  $d5_pilot_licence_obtained == 1
goto_if_false @VCRASH1_8148
switch_car_generator $gen_car_flying[7] {amount} 101

:VCRASH1_8148
mark_model_as_no_longer_needed 487
mark_model_as_no_longer_needed 500
mark_model_as_no_longer_needed 490
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 402
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 286
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 352
if 
  is_player_playing $player1
goto_if_false @VCRASH1_8218
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1

:VCRASH1_8218
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 94---------------
// Originally: High Noon

:VCR2
gosub @VCR2_36
if 
  has_deatharrest_been_executed 
goto_if_false @VCR2_27
gosub @VCR2_5040

:VCR2_27
gosub @VCR2_5126
terminate_this_script 

:VCR2_36
$onmission = 1
register_mission_given 
script_name 'VCR2'
wait 0
load_mission_text 'VCR2'
make_player_gang_disappear 
load_cutscene 'CRASV2A'

:VCR2_84
if 
  not has_cutscene_loaded 
goto_if_false @VCR2_108
wait 0
goto @VCR2_84

:VCR2_108
force_weather_now WeatherType.ExtraSunnyDesert
clear_area -359.5421 {y} 2225.5249 {z} 42.4562 {radius} 30.9 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:VCR2_145
if 
  not has_cutscene_finished 
goto_if_false @VCR2_169
wait 0
goto @VCR2_145

:VCR2_169
do_fade 0 {direction} Fade.Out

:VCR2_175
if 
  get_fading_status 
goto_if_false @VCR2_199
wait 0
goto @VCR2_175

:VCR2_199
clear_cutscene 
if 
  not was_cutscene_skipped 
goto_if_false @VCR2_342
load_cutscene 'CRASV2B'

:VCR2_225
if 
  not has_cutscene_loaded 
goto_if_false @VCR2_249
wait 0
goto @VCR2_225

:VCR2_249
force_weather_now WeatherType.ExtraSunnyDesert
clear_area -359.5421 {y} 2225.5249 {z} 42.4562 {radius} 30.9 {clearParticles} False
start_cutscene 
do_fade 1000 {direction} Fade.In

:VCR2_286
if 
  not has_cutscene_finished 
goto_if_false @VCR2_310
wait 0
goto @VCR2_286

:VCR2_310
do_fade 0 {direction} Fade.Out

:VCR2_316
if 
  get_fading_status 
goto_if_false @VCR2_340
wait 0
goto @VCR2_316

:VCR2_340
clear_cutscene 

:VCR2_342
load_special_character 1 {modelName} 'PULASKI'
request_model 568
request_model 402
request_model 348
load_all_models_now 

:VCR2_372
if or
  not has_model_loaded 568
  not has_model_loaded 402
  not has_model_loaded 348
  not has_special_character_loaded 1
goto_if_false @VCR2_413
wait 0
goto @VCR2_372

:VCR2_413
set_lvar_text_label 48@s = 'VCR2_AA'
set_lvar_text_label 50@s = 'VCR2_AB'
set_lvar_text_label 52@s = 'VCR2_AC'
set_lvar_text_label 54@s = 'VCR2_AD'
set_lvar_text_label 56@s = 'VCR2_AE'
set_lvar_text_label 58@s = 'VCR2_BA'
set_lvar_text_label 60@s = 'VCR2_BB'
set_lvar_text_label 62@s = 'VCR2_BC'
set_lvar_text_label 64@s = 'VCR2_BE'
set_lvar_text_label 66@s = 'VCR2_BF'
set_lvar_text_label 68@s = 'VCR2_BG'
set_lvar_text_label 70@s = 'VCR2_BH'
set_lvar_text_label 72@s = 'VCR2_BJ'
set_lvar_text_label 74@s = 'VCR2_CA'
set_lvar_text_label 76@s = 'VCR2_CB'
set_lvar_text_label 78@s = 'VCR2_CC'
set_lvar_text_label 80@s = 'VCR2_CD'
set_lvar_text_label 82@s = 'VCR2_CE'
set_lvar_text_label 84@s = 'VCR2_CF'
set_lvar_text_label 86@s = 'VCR2_CG'
set_lvar_int_to_constant 88@ = 42400
set_lvar_int_to_constant 89@ = 42401
set_lvar_int_to_constant 90@ = 42402
set_lvar_int_to_constant 91@ = 42403
set_lvar_int_to_constant 92@ = 42404
set_lvar_int_to_constant 93@ = 42405
set_lvar_int_to_constant 94@ = 42406
set_lvar_int_to_constant 95@ = 42407
set_lvar_int_to_constant 96@ = 42408
set_lvar_int_to_constant 97@ = 42409
set_lvar_int_to_constant 98@ = 42410
set_lvar_int_to_constant 99@ = 42411
set_lvar_int_to_constant 100@ = 42412
set_lvar_int_to_constant 101@ = 42413
set_lvar_int_to_constant 102@ = 42414
set_lvar_int_to_constant 103@ = 42415
set_lvar_int_to_constant 104@ = 42416
set_lvar_int_to_constant 105@ = 42417
set_lvar_int_to_constant 106@ = 42418
set_lvar_int_to_constant 107@ = 42419
109@ = 0
110@ = 1
$game_timer = get_game_timer 
set_lvar_int_to_var_int 111@ = $game_timer
111@ += 6000
custom_plate_for_next_car 402 {text} "PULASKI"
112@ = create_car 402 {x} -371.0292 {y} 2209.8201 {z} 41.4921
set_car_heading 112@ {heading} 159.2268
change_car_colour 112@ {color1} 8 {color2} 0
set_petrol_tank_weakpoint 112@ {state} False
set_car_only_damaged_by_player 112@ {state} True
set_car_can_go_against_traffic 112@ {state} True
set_car_proofs 112@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 112@ {health} 2250
113@ = create_char PedType.Mission1 {modelId} 290 {x} -335.4141 {y} 2218.9419 {z} 41.4921
set_char_relationship $scplayer {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_heading 113@ {heading} 104.108
set_char_only_damaged_by_player 113@ {state} True
set_char_max_health 113@ {maxHealth} 500
set_char_health 113@ {health} 500
set_char_suffers_critical_hits 113@ {state} False
set_char_uses_upperbody_damage_anims_only 113@ {state} True
set_char_accuracy 113@ {accuracy} 80
set_char_proofs 113@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
37@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -346.4254 {y} 2216.427 {z} 41.4921 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} 112@ {time} -2
task_car_drive_to_coord -1 {vehicle} 112@ {x} -472.778 {y} 1958.194 {z} 83.5515 {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
close_sequence_task 37@
perform_sequence_task 113@ {sequence} 37@
clear_sequence_task 37@
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
wait 0
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position -341.3325 {y} 2213.1101 {z} 42.837 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -340.718 {y} 2213.8979 {z} 42.8258 {switchStyle} SwitchType.JumpCut
load_scene_in_direction -341.3325 {y} 2213.1101 {z} 42.837 {heading} 327.4725
clear_char_tasks_immediately $scplayer
clear_area -334.1724 {y} 2214.6201 {z} 40.4911 {radius} 30.0 {clearParticles} False
load_scene -334.1724 {y} 2214.6201 {z} 40.4911
set_char_coordinates $scplayer {x} -334.1724 {y} 2214.6201 {z} 40.4911
set_char_heading $scplayer {heading} 232.082
set_camera_behind_player 
114@ = create_car 568 {x} -342.2552 {y} 2221.3899 {z} 41.4911
set_car_heading 114@ {heading} 168.7771
do_fade 500 {direction} Fade.In
$game_timer = get_game_timer 
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1500
47@ = 0
115@ = 0
release_weather 

:VCR2_1480
wait 0
$game_timer = get_game_timer 
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @VCR2_1511
goto @VCR2_5058

:VCR2_1511
if 
  is_char_dead 113@
goto_if_false @VCR2_1568
if 
  9 > 47@
goto_if_false @VCR2_1568
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 2000
47@ = 9

:VCR2_1568
if 
  47@ == 0
goto_if_false @VCR2_1653
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1653
task_go_straight_to_coord $scplayer {x} -337.9653 {y} 2218.594 {z} 41.4911 {speed} MoveState.Run {time} 2000
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1500
47@ += 1

:VCR2_1653
if 
  47@ == 1
goto_if_false @VCR2_1832
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_1832
set_char_coordinates $scplayer {x} -337.9653 {y} 2218.594 {z} 41.4911
set_char_heading $scplayer {heading} 90.0
set_char_coordinates 113@ {x} -359.3949 {y} 2213.4041 {z} 41.4911
set_char_heading 113@ {heading} 90.0
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
make_player_gang_reappear 
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
34@ = add_blip_for_char 113@
print_now 'VCR2__1' {time} 15000 {flag} 1
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 26000
47@ += 1

:VCR2_1832
if 
  47@ == 2
goto_if_false @VCR2_2019
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_2019
task_car_drive_wander 113@ {vehicle} -1 {speed} 40.0 {drivingMode} DrivingMode.AvoidCars
give_weapon_to_char 113@ {weaponType} WeaponType.DesertEagle {ammo} 9999
set_char_relationship 113@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_proofs 113@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
if 
  115@ == 0
goto_if_false @VCR2_1994
if 
  not is_car_dead 112@
goto_if_false @VCR2_1987
set_car_proofs 112@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
add_stuck_car_check_with_warp 112@ {distance} 4.0 {time} 4000 {stuck} True {flipped} True {inWater} False {numNodesToCheck} -1

:VCR2_1987
115@ = 1

:VCR2_1994
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 240000
47@ += 1

:VCR2_2019
if 
  47@ == 3
goto_if_false @VCR2_2782
if 
  locate_char_any_means_2d 113@ {x} 184.0797 {y} 1715.949 {xRadius} 40.6 {yRadius} 1108.668 {drawSphere} False
goto_if_false @VCR2_2160
$task_status = get_script_task_status 113@ {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2160
task_car_drive_to_coord 113@ {vehicle} -1 {x} -2466.3091 {y} 2244.3279 {z} 3.8078 {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 10000
47@ = 2

:VCR2_2160
if 
  locate_char_any_means_2d 113@ {x} -2747.4819 {y} 2334.301 {xRadius} 36.34 {yRadius} 5.86 {drawSphere} False
goto_if_false @VCR2_2283
$task_status = get_script_task_status 113@ {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2283
task_car_drive_to_coord 113@ {vehicle} -1 {x} -1446.225 {y} 2670.991 {z} 54.9682 {speed} 40.0 {driveStyle} DriveMode.Normal {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 10000
47@ = 2

:VCR2_2283
if 
  locate_char_any_means_char_2d $scplayer {target} 113@ {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @VCR2_2375
set_lvar_int_to_var_int 116@ = $game_timer
116@ += 8000
if 
  not does_blip_exist 34@
goto_if_false @VCR2_2368
task_car_drive_wander 113@ {vehicle} -1 {speed} 50.0 {drivingMode} DrivingMode.AvoidCars
34@ = add_blip_for_char 113@

:VCR2_2368
goto @VCR2_2468

:VCR2_2375
if 
  does_blip_exist 34@
goto_if_false @VCR2_2426
task_car_drive_wander 113@ {vehicle} -1 {speed} 28.0 {drivingMode} DrivingMode.AvoidCars
print_now 'VCR2__2' {time} 5000 {flag} 1
remove_blip 34@

:VCR2_2426
if 
  is_int_var_greater_than_int_lvar $game_timer > 116@
goto_if_false @VCR2_2468
print_now 'VCR2__3' {time} 5000 {flag} 1
goto @VCR2_5040

:VCR2_2468
if 
  20 > 109@
goto_if_false @VCR2_2695
if 
  locate_char_any_means_char_2d $scplayer {target} 113@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @VCR2_2695
if 
  is_int_var_greater_than_int_lvar $game_timer > 111@
goto_if_false @VCR2_2695
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_2695
set_var_text_label s$audio_string = 48@(109@,20s)
set_var_int_to_lvar_int $audio_sound_file = 88@(109@,21i)
start_new_script @AUDIOL -1 0 1 110@ 109@ 
if 
  110@ == 1
goto_if_false @VCR2_2630
110@ = 2
goto @VCR2_2637

:VCR2_2630
110@ = 1

:VCR2_2637
set_lvar_int_to_var_int 111@ = $game_timer
111@ += 500
109@ += 1
if 
  20 > 109@
goto_if_false @VCR2_2695
clear_mission_audio 110@
load_mission_audio 110@ {audioId} 88@(109@,21i)

:VCR2_2695
if 
  not is_char_in_any_car 113@
goto_if_false @VCR2_2782
if 
  locate_char_any_means_char_2d $scplayer {target} 113@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @VCR2_2782
$task_status = get_script_task_status 113@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VCR2_2782
task_kill_char_on_foot_timed 113@ {target} $scplayer {time} 4000

:VCR2_2782
if 
  47@ == 9
goto_if_false @VCR2_2863
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_2863
if 
  is_char_in_water 113@
goto_if_false @VCR2_2849
goto @VCR2_5058
goto @VCR2_2863

:VCR2_2849
do_fade 500 {direction} Fade.Out
47@ += 1

:VCR2_2863
if 
  47@ == 10
goto_if_false @VCR2_3045
request_animation "SWAT"
if 
  not get_fading_status 
goto_if_false @VCR2_3045
clear_char_tasks_immediately $scplayer
delete_car 112@
$x, $y, $z = get_dead_char_coordinates 113@
delete_char 113@
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
clear_area $x {y} $y {z} $z {radius} 100.0 {clearParticles} True
custom_plate_for_next_car 402 {text} "PULASKI"
112@ = create_car 402 {x} $x {y} $y {z} $z
change_car_colour 112@ {color1} 8 {color2} 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 100
47@ += 1

:VCR2_3045
if 
  47@ == 11
goto_if_false @VCR2_3649
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_3649
if 
  has_animation_loaded "SWAT"
goto_if_false @VCR2_3649
if 
  is_car_dead 112@
goto_if_false @VCR2_3131
do_fade 500 {direction} Fade.In
goto @VCR2_5058

:VCR2_3131
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.6 {yOffset} -1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
117@ = create_char PedType.Mission1 {modelId} 290 {x} $x {y} $y {z} $z
$heading = get_car_heading 112@
$heading += -90.0
set_char_heading 117@ {heading} $heading
set_char_bleeding 117@ {state} True
task_play_anim_non_interruptable 117@ {animationName} "GNSTWALL_INJURD" {animationFile} "SWAT" {blendSpeed} 9999.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 3.0 {yOffset} -1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
$heading = get_car_heading 112@
$heading += 90.0
set_char_heading $scplayer {heading} $heading
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 3.3455 {yOffset} -1.6234 {zOffset} 1.1443
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 2.5461 {yOffset} -1.3539 {zOffset} 0.6073
point_camera_at_char 117@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 42420
do_fade 500 {direction} Fade.In
if 
  not is_car_dead 114@
goto_if_false @VCR2_3621
$x, $y, $z = get_car_coordinates 112@
if 
  locate_car_2d 114@ {x} $x {y} $y {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @VCR2_3614
delete_car 114@

:VCR2_3614
goto @VCR2_3626

:VCR2_3621
delete_car 114@

:VCR2_3626
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 400
47@ += 1

:VCR2_3649
if 
  47@ == 12
goto_if_false @VCR2_3839
if 
  not get_fading_status 
goto_if_false @VCR2_3839
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_3839
set_var_text_label s$audio_string = 'VCR2_DA'
set_var_int_to_constant $audio_sound_file = 42420
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 42421
if 
  not is_car_dead 112@
goto_if_false @VCR2_3816
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_3816
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_3839
if 
  47@ == 13
goto_if_false @VCR2_4035
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4035
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4035
set_var_text_label s$audio_string = 'VCR2_DB'
set_var_int_to_constant $audio_sound_file = 42421
start_new_script @AUDIOL 117@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 42422
if 
  not is_car_dead 112@
goto_if_false @VCR2_4012
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_4012
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4035
if 
  47@ == 14
goto_if_false @VCR2_4231
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4231
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4231
set_var_text_label s$audio_string = 'VCR2_DC'
set_var_int_to_constant $audio_sound_file = 42422
start_new_script @AUDIOL $scplayer 0 1 1 1 
clear_mission_audio MissionAudioSlot.Slot2
load_mission_audio MissionAudioSlot.Slot2 {audioId} 42423
if 
  not is_car_dead 112@
goto_if_false @VCR2_4208
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_4208
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4231
if 
  47@ == 15
goto_if_false @VCR2_4427
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4427
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4427
set_var_text_label s$audio_string = 'VCR2_DD'
set_var_int_to_constant $audio_sound_file = 42423
start_new_script @AUDIOL 117@ 0 1 2 1 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 42424
if 
  not is_car_dead 112@
goto_if_false @VCR2_4404
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000

:VCR2_4404
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4427
if 
  47@ == 16
goto_if_false @VCR2_4685
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4685
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4685
set_var_text_label s$audio_string = 'VCR2_DE'
set_var_int_to_constant $audio_sound_file = 42424
start_new_script @AUDIOL $scplayer 0 1 1 1 
set_near_clip 0.1
if 
  not is_car_dead 112@
goto_if_false @VCR2_4662
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 1.2837 {yOffset} -0.8452 {zOffset} -0.2859
task_look_at_coord $scplayer {x} $x {y} $y {z} $z {time} 20000
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_car_in_world_coords 112@ {xOffset} 2.1414 {yOffset} -0.908 {zOffset} 0.2244
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:VCR2_4662
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 500
47@ += 1

:VCR2_4685
if 
  47@ == 17
goto_if_false @VCR2_4782
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_4782
if 
  $audio_line_is_active == 0
goto_if_false @VCR2_4782
task_play_anim $scplayer {animationName} "FIGHTA_G" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
47@ += 1

:VCR2_4782
if 
  47@ == 18
goto_if_false @VCR2_4939
if 
  is_char_playing_anim $scplayer {animationName} "FIGHTA_G"
goto_if_false @VCR2_4939
118@ = get_char_anim_current_time $scplayer {animationName} "FIGHTA_G"
if 
  118@ > 0.351
goto_if_false @VCR2_4939
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundStampPed
set_music_does_fade False
do_fade 0 {direction} Fade.Out
if 
  not is_char_dead 117@
goto_if_false @VCR2_4916
task_die 117@

:VCR2_4916
set_lvar_int_to_var_int 35@ = $game_timer
35@ += 1000
47@ += 1

:VCR2_4939
if 
  47@ == 19
goto_if_false @VCR2_5033
if 
  is_int_var_greater_than_int_lvar $game_timer > 35@
goto_if_false @VCR2_5033
do_fade 500 {direction} Fade.In
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
goto @VCR2_5058

:VCR2_5033
goto @VCR2_1480

:VCR2_5040
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:VCR2_5058
print_big 'M_PASSD' {time} 5000 {style} TextStyle.Middle
add_score $player1 {money} 0
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'VCRASH2'
player_made_progress 1
remove_blip $vcrash_contact_blip
set_int_stat StatId.PassedVcrash2 {value} 1
$flag_vcrash_mission_counter += 1
return 

:VCR2_5126
remove_blip 34@
$timer_mobile_start = get_game_timer 
unload_special_character 1
mark_model_as_no_longer_needed 568
mark_model_as_no_longer_needed 402
mark_model_as_no_longer_needed 348
set_music_does_fade True
if 
  is_player_playing $player1
goto_if_false @VCR2_5184
clear_char_relationship $scplayer {relationshipType} RelationshipType.Hate {toPedType} PedType.Mission1

:VCR2_5184
remove_animation "SWAT"
$onmission = 0
mission_has_finished 
return 

//-------------Mission 95---------------
// Originally: Madd Dogg

:DOC2
script_name 'DOC2'
gosub @DOC2_47
if 
  has_deatharrest_been_executed 
goto_if_false @DOC2_38
gosub @DOC2_13046

:DOC2_38
gosub @DOC2_13757
terminate_this_script 

:DOC2_47
131@ = 0
$d2_instance_health = 40
$d2_anim_rnd = 0
$doc2_heal = 0
$doc2_rnd = 0
$d2_rnd = 0
99@ = load_char_decision_maker DecisionMakerType.Weak
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
$onmission = 1
load_mission_text 'DOC2'
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:DOC2_137
if 
  get_fading_status 
goto_if_false @DOC2_161
wait 0
goto @DOC2_137

:DOC2_161
load_cutscene 'DOC_2'

:DOC2_172
if 
  not has_cutscene_loaded 
goto_if_false @DOC2_196
wait 0
goto @DOC2_172

:DOC2_196
clear_area 2159.8989 {y} 1443.042 {z} 9.8203 {radius} 40.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:DOC2_229
if 
  not has_cutscene_finished 
goto_if_false @DOC2_253
wait 0
goto @DOC2_229

:DOC2_253
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:DOC2_274
if 
  get_fading_status 
goto_if_false @DOC2_298
wait 0
goto @DOC2_274

:DOC2_298
clear_cutscene 
request_model 83
request_model 85
request_model 78
request_model 68
request_model 330
request_model 258
request_model 259
request_animation "ON_LOOKERS"
load_special_character 1 {modelName} 'MADDOGG'

:DOC2_358
if or
  not has_model_loaded 83
  not has_model_loaded 85
  not has_model_loaded 78
goto_if_false @DOC2_392
wait 0
goto @DOC2_358

:DOC2_392
if or
  not has_model_loaded 68
  not has_model_loaded 330
  not has_model_loaded 258
goto_if_false @DOC2_428
wait 0
goto @DOC2_392

:DOC2_428
if or
  not has_model_loaded 259
  not has_animation_loaded "ON_LOOKERS"
  not has_special_character_loaded 1
goto_if_false @DOC2_473
wait 0
goto @DOC2_428

:DOC2_473
switch_roads_off 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
switch_ped_roads_off 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
105@ = 2163.6379
106@ = 1443.663
107@ = 9.8203
set_car_density_multiplier 0.0
clear_area 2161.3401 {y} 1442.504 {z} 9.8203 {radius} 20.0 {clearParticles} True
clear_area 2107.1899 {y} 1409.153 {z} 9.8203 {radius} 10.0 {clearParticles} True
95@ = create_char PedType.CivMale {modelId} 290 {x} 2162.6201 {y} 1451.475 {z} 23.1719
set_anim_group_for_char 95@ {animGroup} "DRUNKMAN"
set_char_heading 95@ {heading} 180.0
set_char_health 95@ {health} 1
73@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2154.1919 {y} 1437.948 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "LKAROUND_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKAROUND_OUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 73@ {state} True
close_sequence_task 73@
74@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2164.5959 {y} 1435.1689 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "POINTUP_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_SHOUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 74@ {state} True
close_sequence_task 74@
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2160.696 {y} 1435.38 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 100
task_play_anim -1 {animationName} "POINTUP_IN" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_SHOUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "POINTUP_OUT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 75@ {state} True
close_sequence_task 75@
76@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2169.2629 {y} 1435.927 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_02" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 76@ {state} True
close_sequence_task 76@
77@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2155.4199 {y} 1436.42 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 500
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 77@ {state} True
close_sequence_task 77@
78@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2168.29 {y} 1436.191 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_02" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_01" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 78@ {state} True
close_sequence_task 78@
79@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2159.2529 {y} 1435.312 {z} 9.8203 {speed} MoveState.Walk {time} 8000
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 500
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_POINT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_POINT" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "LKUP_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 79@ {state} True
close_sequence_task 79@
96@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2165.6509 {y} 1452.0 {z} 23.1721 {speed} MoveState.Walk {time} 8000
task_go_straight_to_coord -1 {x} 2160.5601 {y} 1452.0 {z} 23.1719 {speed} MoveState.Walk {time} 8000
set_sequence_to_repeat 96@ {state} True
close_sequence_task 96@
97@ = open_sequence_task 
task_jump -1 {state} False
close_sequence_task 97@
98@ = open_sequence_task 
task_duck -1 {time} -1
set_sequence_to_repeat 98@ {state} True
close_sequence_task 98@
116@ = open_sequence_task 
task_play_anim -1 {animationName} "LKAROUND_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 116@ {state} True
close_sequence_task 116@
110@ = open_sequence_task 
task_play_anim -1 {animationName} "WAVE_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 110@
111@ = open_sequence_task 
task_play_anim -1 {animationName} "SHOUT_LOOP" {animationFile} "ON_LOOKERS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 111@
100@ = create_object_no_offset #SMASH_BOX_STAY {x} 2156.719 {y} 1482.3521 {z} 19.1794
101@ = create_object_no_offset #SMASH_BOX_BRK {x} 2156.719 {y} 1482.3521 {z} 19.1794
$doc2_heal = 100
set_char_never_targetted 95@ {state} True
92@ = add_blip_for_coord 105@ {y} 106@ {z} 107@
93@ = add_blip_for_coord 1878.546 {y} 2240.8201 {z} 9.813
change_blip_display 92@ {display} BlipDisplay.Neither
change_blip_display 93@ {display} BlipDisplay.Neither
$doc2_rnd = generate_random_int_in_range 0 {max} 5
switch_start $doc2_rnd {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DOC2_3089 {caseNum1} 0 {caseLabel1} @DOC2_3014 {caseNum2} 1 {caseLabel2} @DOC2_3029 {caseNum3} 2 {caseLabel3} @DOC2_3044 {caseNum4} 3 {caseLabel4} @DOC2_3059 {caseNum5} 4 {caseLabel5} @DOC2_3074 {caseNum6} -1 {caseLabel6} @DOC2_3089 {caseNum7} -1 {caseLabel7} @DOC2_3089

:DOC2_3014
$doc2_rnd = 16000
goto @DOC2_3089

:DOC2_3029
$doc2_rnd = 18000
goto @DOC2_3089

:DOC2_3044
$doc2_rnd = 20000
goto @DOC2_3089

:DOC2_3059
$doc2_rnd = 22000
goto @DOC2_3089

:DOC2_3074
$doc2_rnd = 24000
goto @DOC2_3089

:DOC2_3089
88@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 95@
task_scratch_head -1
task_look_about -1 {time} 4000
task_pause -1 {time} 1000
set_sequence_to_repeat 88@ {state} True
close_sequence_task 88@
39@ = 0
$d2_rnd = 0
43@ = create_char PedType.CivMale {modelId} 78 {x} 2154.1919 {y} 1437.948 {z} 9.8203
set_char_heading 43@ {heading} 341.9008
set_char_decision_maker 43@ {handleOrTemplate} 99@
perform_sequence_task 43@ {sequence} 73@
44@ = create_char PedType.CivMale {modelId} 83 {x} 2164.5959 {y} 1435.1689 {z} 9.8203
set_char_heading 44@ {heading} 8.2163
set_char_decision_maker 44@ {handleOrTemplate} 99@
perform_sequence_task 44@ {sequence} 74@
45@ = create_char PedType.CivMale {modelId} 259 {x} 2160.696 {y} 1435.38 {z} 9.8203
set_char_heading 45@ {heading} 8.2163
set_char_decision_maker 45@ {handleOrTemplate} 99@
perform_sequence_task 45@ {sequence} 75@
46@ = create_char PedType.CivMale {modelId} 78 {x} 2169.2629 {y} 1435.927 {z} 9.8203
set_char_heading 46@ {heading} 8.2163
set_char_decision_maker 46@ {handleOrTemplate} 99@
perform_sequence_task 46@ {sequence} 76@
47@ = create_char PedType.CivMale {modelId} 85 {x} 2155.4199 {y} 1436.42 {z} 9.8203
set_char_heading 47@ {heading} 8.2163
set_char_decision_maker 47@ {handleOrTemplate} 99@
perform_sequence_task 47@ {sequence} 77@
48@ = create_char PedType.CivMale {modelId} 68 {x} 2168.29 {y} 1436.191 {z} 9.8203
set_char_heading 48@ {heading} 8.2163
set_char_decision_maker 48@ {handleOrTemplate} 99@
perform_sequence_task 48@ {sequence} 78@
49@ = create_char PedType.CivMale {modelId} 258 {x} 2159.2529 {y} 1435.312 {z} 9.8203
set_char_heading 49@ {heading} 2.018
set_char_decision_maker 49@ {handleOrTemplate} 99@
perform_sequence_task 49@ {sequence} 79@
request_model 478
request_model 50
request_model #SMASHBOXPILE

:DOC2_3511
if or
  not has_model_loaded 478
  not has_model_loaded 50
  not has_model_loaded #SMASHBOXPILE
goto_if_false @DOC2_3547
wait 0
goto @DOC2_3511

:DOC2_3547
102@ = create_object #SMASHBOXPILE {x} 2112.7529 {y} 1403.973 {z} 10.1484
set_object_heading 102@ {heading} 86.7997
mark_model_as_no_longer_needed #SMASHBOXPILE
set_car_model_components 478 {component1} 4 {component2} 4
34@ = create_car 478 {x} 2107.1899 {y} 1409.153 {z} 9.8203
mark_model_as_no_longer_needed 478
set_car_heading 34@ {heading} 180.0
change_car_colour 34@ {color1} 1 {color2} 1
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
change_blip_display 35@ {display} BlipDisplay.Both
109@ = 0.0
if 
  not is_car_dead 34@
goto_if_false @DOC2_3761
attach_object_to_car 100@ {handle} 34@ {xOffset} -0.3 {yOffset} -1.0 {zOffset} 109@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
attach_object_to_car 101@ {handle} 34@ {xOffset} -0.3 {yOffset} -1.0 {zOffset} 109@ {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:DOC2_3761
114@ = create_char PedType.CivMale {modelId} 50 {x} 2109.793 {y} 1407.8571 {z} 9.8203
mark_model_as_no_longer_needed 50
set_char_heading 114@ {heading} 180.0
task_use_mobile_phone 114@ {start} True
gosub @DOC2_14005
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_3864
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2162.498 {y} 1434.396 {z} 9.8203
set_char_heading $scplayer {heading} 358.0

:DOC2_3864
if 
  not is_char_dead 95@
goto_if_false @DOC2_3893
clear_char_tasks_immediately 95@
perform_sequence_task 95@ {sequence} 116@

:DOC2_3893
clear_area 2162.7051 {y} 1430.309 {z} 9.8203 {radius} 10.0 {clearParticles} True
set_fixed_camera_position 2162.541 {y} 1423.84 {z} 9.9728 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.5581 {y} 1424.803 {z} 10.2424 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.In
130@ = 2
135@ = 2
wait 1000
print_now 'DOC2_X' {time} 5000 {flag} 1
TIMERB = 0

:DOC2_4024
if 
  2000 > TIMERB
goto_if_false @DOC2_4078
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_4071
goto @DOC2_4170

:DOC2_4071
goto @DOC2_4024

:DOC2_4078
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_4109
clear_char_tasks_immediately $scplayer
task_achieve_heading $scplayer {heading} 172.0

:DOC2_4109
TIMERB = 0

:DOC2_4116
if 
  2000 > TIMERB
goto_if_false @DOC2_4170
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_4163
goto @DOC2_4170

:DOC2_4163
goto @DOC2_4116

:DOC2_4170
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_4201
clear_char_tasks_immediately $scplayer
set_char_heading $scplayer {heading} 172.0

:DOC2_4201
clear_prints 
gosub @DOC2_14020
set_camera_behind_player 
print_now 'DOC2_01' {time} 7000 {flag} 1

:DOC2_4228
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
  not is_char_dead 95@
goto_if_false @DOC2_13032
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @DOC2_4280
goto @DOC2_13233

:DOC2_4280
131@ += 1
gosub @DOC2_14105
gosub @DOC2_14907
if 
  4 > 91@
goto_if_false @DOC2_5044
if and
  131@ > 200
  locate_char_any_means_3d $scplayer {x} 2154.1919 {y} 1437.948 {z} 9.8203 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
  not is_message_being_displayed 
goto_if_false @DOC2_5044

:DOC2_4377
$d2_rnd = generate_random_int_in_range 0 {max} 9
if and
  is_int_var_equal_to_int_lvar $d2_rnd == 132@
  3 > 133@
goto_if_false @DOC2_4426
goto @DOC2_4377
133@ += 1

:DOC2_4426
set_lvar_int_to_var_int 132@ = $d2_rnd
133@ = 0
if 
  not is_char_dead 43@
goto_if_false @DOC2_4685
if and
  locate_char_any_means_3d 43@ {x} 2154.1919 {y} 1437.948 {z} 9.8203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  not is_message_being_displayed 
  126@ == 0
goto_if_false @DOC2_4685
switch_start $d2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_4685 {caseNum1} 0 {caseLabel1} @DOC2_4577 {caseNum2} 1 {caseLabel2} @DOC2_4613 {caseNum3} 2 {caseLabel3} @DOC2_4649 {caseNum4} -1 {caseLabel4} @DOC2_4685 {caseNum5} -1 {caseLabel5} @DOC2_4685 {caseNum6} -1 {caseLabel6} @DOC2_4685 {caseNum7} -1 {caseLabel7} @DOC2_4685

:DOC2_4577
set_lvar_text_label 127@s = 'DC2_AA'
set_lvar_int_to_constant 129@ = 12400
gosub @DOC2_14887
goto @DOC2_4685

:DOC2_4613
set_lvar_text_label 127@s = 'DC2_AB'
set_lvar_int_to_constant 129@ = 12401
gosub @DOC2_14887
goto @DOC2_4685

:DOC2_4649
set_lvar_text_label 127@s = 'DC2_AC'
set_lvar_int_to_constant 129@ = 12402
gosub @DOC2_14887
goto @DOC2_4685

:DOC2_4685
if 
  not is_char_dead 44@
goto_if_false @DOC2_5037
if and
  locate_char_any_means_3d 44@ {x} 2164.5959 {y} 1435.1689 {z} 9.8203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  not is_message_being_displayed 
  126@ == 0
goto_if_false @DOC2_5037
switch_start $d2_rnd {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DOC2_5037 {caseNum1} 3 {caseLabel1} @DOC2_4821 {caseNum2} 4 {caseLabel2} @DOC2_4857 {caseNum3} 5 {caseLabel3} @DOC2_4893 {caseNum4} 6 {caseLabel4} @DOC2_4929 {caseNum5} 7 {caseLabel5} @DOC2_4965 {caseNum6} 8 {caseLabel6} @DOC2_5001 {caseNum7} -1 {caseLabel7} @DOC2_5037

:DOC2_4821
set_lvar_text_label 127@s = 'DC2_AD'
set_lvar_int_to_constant 129@ = 12403
gosub @DOC2_14887
goto @DOC2_5037

:DOC2_4857
set_lvar_text_label 127@s = 'DC2_AE'
set_lvar_int_to_constant 129@ = 12404
gosub @DOC2_14887
goto @DOC2_5037

:DOC2_4893
set_lvar_text_label 127@s = 'DC2_AF'
set_lvar_int_to_constant 129@ = 12405
gosub @DOC2_14887
goto @DOC2_5037

:DOC2_4929
set_lvar_text_label 127@s = 'DC2_AJ'
set_lvar_int_to_constant 129@ = 12409
gosub @DOC2_14887
goto @DOC2_5037

:DOC2_4965
set_lvar_text_label 127@s = 'DC2_AK'
set_lvar_int_to_constant 129@ = 12410
gosub @DOC2_14887
goto @DOC2_5037

:DOC2_5001
set_lvar_text_label 127@s = 'DC2_AL'
set_lvar_int_to_constant 129@ = 12411
gosub @DOC2_14887
goto @DOC2_5037

:DOC2_5037
131@ = 0

:DOC2_5044
if and
  not is_car_dead 34@
  not is_char_dead $scplayer
  not is_char_dead 95@
goto_if_false @DOC2_6975
39@ = 0

:DOC2_5077
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_5272
if and
  has_char_been_damaged_by_char 43@(39@,15i) {handle} $scplayer
  58@(39@,15i) == 0
goto_if_false @DOC2_5180
clear_char_tasks 43@(39@,15i)
task_go_straight_to_coord 43@(39@,15i) {x} 2082.0049 {y} 1415.9091 {z} 9.8047 {speed} MoveState.Sprint {time} 20000
58@(39@,15i) = 1

:DOC2_5180
if and
  locate_char_any_means_3d 43@(39@,15i) {x} 2082.3811 {y} 1416.636 {z} 9.8047 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  58@(39@,15i) <> 3
goto_if_false @DOC2_5272
clear_char_tasks 43@(39@,15i)
task_wander_standard 43@(39@,15i)
58@(39@,15i) = 3

:DOC2_5272
39@ += 1
  39@ >= 7
goto_if_false @DOC2_5077
if or
  91@ == 1
  91@ == 0
goto_if_false @DOC2_5748
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_5588
if and
  not is_char_dead 114@
  113@ == 0
goto_if_false @DOC2_5560
clear_char_tasks_immediately 114@
task_kill_char_on_foot 114@ {target} $scplayer
$d2_rnd = generate_random_int_in_range 0 {max} 2
switch_start $d2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_5553 {caseNum1} 0 {caseLabel1} @DOC2_5445 {caseNum2} 1 {caseLabel2} @DOC2_5481 {caseNum3} 2 {caseLabel3} @DOC2_5517 {caseNum4} -1 {caseLabel4} @DOC2_5553 {caseNum5} -1 {caseLabel5} @DOC2_5553 {caseNum6} -1 {caseLabel6} @DOC2_5553 {caseNum7} -1 {caseLabel7} @DOC2_5553

:DOC2_5445
set_lvar_text_label 127@s = 'DOGG_GA'
set_lvar_int_to_constant 129@ = 14039
gosub @DOC2_14887
goto @DOC2_5553

:DOC2_5481
set_lvar_text_label 127@s = 'DOGG_GB'
set_lvar_int_to_constant 129@ = 14040
gosub @DOC2_14887
goto @DOC2_5553

:DOC2_5517
set_lvar_text_label 127@s = 'DOGG_GC'
set_lvar_int_to_constant 129@ = 14041
gosub @DOC2_14887
goto @DOC2_5553

:DOC2_5553
113@ = 1

:DOC2_5560
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 92@ {display} BlipDisplay.Both
91@ = 1
goto @DOC2_5609

:DOC2_5588
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither
91@ = 0

:DOC2_5609
if 
  91@ == 1
goto_if_false @DOC2_5748
if and
  locate_char_any_means_3d $scplayer {x} 105@ {y} 106@ {z} 107@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  not is_char_dead $scplayer
goto_if_false @DOC2_5748
set_player_control $player1 {state} False
91@ = 2
108@ = get_char_heading $scplayer
if and
  108@ > 45.0
  145.0 > 108@
goto_if_false @DOC2_5741
125@ = 0
goto @DOC2_5748

:DOC2_5741
125@ = 1

:DOC2_5748
if 
  91@ == 2
goto_if_false @DOC2_6975
gosub @DOC2_14005
if 
  not is_char_dead 95@
goto_if_false @DOC2_5830
clear_char_tasks_immediately 95@
task_play_anim 95@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DOC2_5830
set_fixed_camera_position 2162.6201 {y} 1450.208 {z} 25.1198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.6201 {y} 1451.192 {z} 24.9414 {switchStyle} SwitchType.JumpCut
$d2_rnd = generate_random_int_in_range 0 {max} 3
switch_start $d2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_6217 {caseNum1} 0 {caseLabel1} @DOC2_5953 {caseNum2} 1 {caseLabel2} @DOC2_6041 {caseNum3} 2 {caseLabel3} @DOC2_6129 {caseNum4} -1 {caseLabel4} @DOC2_6217 {caseNum5} -1 {caseLabel5} @DOC2_6217 {caseNum6} -1 {caseLabel6} @DOC2_6217 {caseNum7} -1 {caseLabel7} @DOC2_6217

:DOC2_5953
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14000

:DOC2_5964
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_5990
wait 0
goto @DOC2_5964

:DOC2_5990
if 
  not is_char_dead 95@
goto_if_false @DOC2_6014
start_char_facial_talk 95@ {duration} 2000

:DOC2_6014
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_AA' {time} 3000 {flag} 1
goto @DOC2_6217

:DOC2_6041
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14002

:DOC2_6052
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_6078
wait 0
goto @DOC2_6052

:DOC2_6078
if 
  not is_char_dead 95@
goto_if_false @DOC2_6102
start_char_facial_talk 95@ {duration} 2000

:DOC2_6102
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_AC' {time} 3000 {flag} 1
goto @DOC2_6217

:DOC2_6129
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14006

:DOC2_6140
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_6166
wait 0
goto @DOC2_6140

:DOC2_6166
if 
  not is_char_dead 95@
goto_if_false @DOC2_6190
start_char_facial_talk 95@ {duration} 2000

:DOC2_6190
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_AG' {time} 3000 {flag} 1
goto @DOC2_6217

:DOC2_6217
if 
  not is_char_dead 114@
goto_if_false @DOC2_6238
remove_char_elegantly 114@

:DOC2_6238
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 50
wait 1000
TIMERB = 0

:DOC2_6259
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_6316
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6309
134@ = 1
goto @DOC2_6747

:DOC2_6309
goto @DOC2_6259

:DOC2_6316
if 
  not is_char_dead 95@
goto_if_false @DOC2_6337
stop_char_facial_talk 95@

:DOC2_6337
TIMERB = 0

:DOC2_6344
if 
  2000 > TIMERB
goto_if_false @DOC2_6405
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6398
134@ = 1
goto @DOC2_6747

:DOC2_6398
goto @DOC2_6344

:DOC2_6405
set_interpolation_parameters 0.0 {time} 2000
set_fixed_camera_position 2162.6201 {y} 1450.208 {z} 25.1198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.6201 {y} 1450.499 {z} 24.1631 {switchStyle} SwitchType.Interpolation
TIMERB = 0

:DOC2_6473
if 
  2000 > TIMERB
goto_if_false @DOC2_6534
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6527
134@ = 1
goto @DOC2_6747

:DOC2_6527
goto @DOC2_6473

:DOC2_6534
set_interpolation_parameters 0.0 {time} 2000
set_fixed_camera_position 2162.6201 {y} 1445.077 {z} 13.6736 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2162.6201 {y} 1445.8149 {z} 14.7476 {switchStyle} SwitchType.Interpolation
TIMERB = 0

:DOC2_6602
if 
  1000 > TIMERB
goto_if_false @DOC2_6663
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6656
134@ = 1
goto @DOC2_6747

:DOC2_6656
goto @DOC2_6602

:DOC2_6663
print_now 'DOC2_05' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_6686
if 
  3000 > TIMERB
goto_if_false @DOC2_6747
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_6740
134@ = 1
goto @DOC2_6747

:DOC2_6740
goto @DOC2_6686

:DOC2_6747
if 
  134@ == 1
goto_if_false @DOC2_6781
print_now 'DOC2_05' {time} 3000 {flag} 1

:DOC2_6781
clear_prints 
if 
  not is_char_dead 95@
goto_if_false @DOC2_6807
perform_sequence_task 95@ {sequence} 96@

:DOC2_6807
if 
  125@ == 0
goto_if_false @DOC2_6878
if 
  not is_car_dead 34@
goto_if_false @DOC2_6871
set_car_coordinates 34@ {x} 2163.8879 {y} 1444.0 {z} 9.8203
set_car_heading 34@ {heading} 90.0

:DOC2_6871
goto @DOC2_6924

:DOC2_6878
if 
  not is_car_dead 34@
goto_if_false @DOC2_6924
set_car_coordinates 34@ {x} 2163.8879 {y} 1444.0 {z} 9.8203
set_car_heading 34@ {heading} 270.0

:DOC2_6924
apply_brakes_to_players_car $player1 {state} False
if 
  does_blip_exist 92@
goto_if_false @DOC2_6954
set_coord_blip_appearance 92@ {color} CoordAppearance.Friend

:DOC2_6954
gosub @DOC2_14020
91@ = 3
TIMERA = 0

:DOC2_6975
if and
  not is_car_dead 34@
  not is_char_dead $scplayer
  not is_char_dead 95@
goto_if_false @DOC2_12980
if 
  91@ == 3
goto_if_false @DOC2_9058
if 
  not locate_char_any_means_3d $scplayer {x} 2149.407 {y} 1431.4969 {z} 9.8203 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @DOC2_7090
print_now 'DOC2_10' {time} 4000 {flag} 1
goto @DOC2_13046

:DOC2_7090
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_7155
if 
  89@ == 0
goto_if_false @DOC2_7148
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 92@ {display} BlipDisplay.Both
89@ = 1

:DOC2_7148
goto @DOC2_7210

:DOC2_7155
if 
  89@ == 1
goto_if_false @DOC2_7210
print_now 'DOC2_19' {time} 4000 {flag} 1
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither
89@ = 0

:DOC2_7210
if and
  not locate_char_any_means_3d $scplayer {x} 105@ {y} 106@ {z} 107@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} False
  112@ == 1
goto_if_false @DOC2_7275
TIMERB = 0
restore_camera_jumpcut 
112@ = 2

:DOC2_7275
if and
  TIMERB > 1000
  112@ == 2
goto_if_false @DOC2_7324
print_now 'DOC2_11' {time} 4000 {flag} 1
112@ = 0

:DOC2_7324
if 
  locate_char_any_means_3d $scplayer {x} 105@ {y} 106@ {z} 107@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} False
goto_if_false @DOC2_9058
112@ = 1
if 
  40000 > TIMERA
goto_if_false @DOC2_7445
set_fixed_camera_position 2163.7019 {y} 1435.87 {z} 37.0031 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2163.699 {y} 1436.447 {z} 36.1861 {switchStyle} SwitchType.JumpCut

:DOC2_7445
if and
  TIMERA > 10000
  11000 > TIMERA
goto_if_false @DOC2_7761
if 
  126@ == 0
goto_if_false @DOC2_7761
$d2_rnd = generate_random_int_in_range 0 {max} 3
switch_start $d2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_7754 {caseNum1} 0 {caseLabel1} @DOC2_7562 {caseNum2} 1 {caseLabel2} @DOC2_7626 {caseNum3} 2 {caseLabel3} @DOC2_7690 {caseNum4} -1 {caseLabel4} @DOC2_7754 {caseNum5} -1 {caseLabel5} @DOC2_7754 {caseNum6} -1 {caseLabel6} @DOC2_7754 {caseNum7} -1 {caseLabel7} @DOC2_7754

:DOC2_7562
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14010

:DOC2_7573
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_7599
wait 0
goto @DOC2_7573

:DOC2_7599
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_BA' {time} 4000 {flag} 1
goto @DOC2_7754

:DOC2_7626
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14011

:DOC2_7637
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_7663
wait 0
goto @DOC2_7637

:DOC2_7663
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_BB' {time} 4000 {flag} 1
goto @DOC2_7754

:DOC2_7690
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14012

:DOC2_7701
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_7727
wait 0
goto @DOC2_7701

:DOC2_7727
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_BC' {time} 4000 {flag} 1
goto @DOC2_7754

:DOC2_7754
126@ = 1

:DOC2_7761
if 
  is_int_lvar_greater_than_int_var TIMERA > $doc2_rnd
goto_if_false @DOC2_9058
set_player_control $player1 {state} True
if 
  not is_char_dead 95@
goto_if_false @DOC2_7818
clear_char_tasks_immediately 95@
set_char_heading 95@ {heading} 177.7059

:DOC2_7818
set_time_scale 0.4
set_fixed_camera_position 2163.22 {y} 1454.533 {z} 35.0248 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2163.2271 {y} 1454.063 {z} 34.1425 {switchStyle} SwitchType.JumpCut
wait 500
set_object_collision 100@ {state} False
set_object_collision 101@ {state} False
if 
  not is_char_dead 95@
goto_if_false @DOC2_7919
perform_sequence_task 95@ {sequence} 97@

:DOC2_7919
TIMERB = 0
91@ = 4
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 23400

:DOC2_7944
if 
  TIMERB <= 2000
goto_if_false @DOC2_8558
wait 0
if and
  TIMERB > 500
  103@ == 0
goto_if_false @DOC2_8021
if 
  not is_char_dead 95@
goto_if_false @DOC2_8014
clear_char_tasks 95@

:DOC2_8014
103@ = 1

:DOC2_8021
if 
  not is_char_dead 95@
goto_if_false @DOC2_8117
$x, $y, $z = get_char_coordinates 95@
if and
  12.0 > $z
  TIMERA > 10
goto_if_false @DOC2_8117
TIMERA = 0
add_blood $x {y} $y {z} $z {offsetX} 0.0 {offsetY} 0.0 {offsetZ} 2.0 {density} 40 {handle} 95@

:DOC2_8117
if 
  TIMERB > 1000
goto_if_false @DOC2_8201
gosub @DOC2_14005
set_fixed_camera_position 2172.002 {y} 1441.702 {z} 10.2111 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2171.0759 {y} 1442.0031 {z} 10.4368 {switchStyle} SwitchType.JumpCut
set_player_control $player1 {state} False

:DOC2_8201
if 
  not is_car_dead 34@
goto_if_false @DOC2_8551
if 
  not is_char_dead 95@
goto_if_false @DOC2_8551
if 
  91@ <> 5
goto_if_false @DOC2_8551
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5
if 
  locate_char_any_means_3d 95@ {x} 40@ {y} 41@ {z} 42@ {xRadius} 1.3 {yRadius} 1.3 {zRadius} 1.0 {drawSphere} False
goto_if_false @DOC2_8551
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @DOC2_8341
play_mission_audio MissionAudioSlot.Slot3

:DOC2_8341
109@ = -0.1
break_object 101@ {intensity} 1
set_char_collision 95@ {state} False
set_char_health 95@ {health} 100
clear_char_tasks_immediately 95@
task_play_anim_non_interruptable 95@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 95@ {vehicle} 34@ {xOffset} 0.0 {yOffset} -2.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
91@ = 5
if and
  not is_char_dead 95@
  not is_car_dead 34@
goto_if_false @DOC2_8551
90@ = create_fx_system "EXPLOSION_BARREL" {x} 40@ {y} 41@ {z} 42@ {ignoreBoundingChecks} True
play_and_kill_fx_system 90@
shake_pad PadId.Pad1 {time} 500 {intensity} 200
set_car_density_multiplier 2.0
set_char_health 95@ {health} 100
display_hud True
gosub @DOC2_13316

:DOC2_8551
goto @DOC2_7944

:DOC2_8558
TIMERA = 0
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @DOC2_8584
clear_mission_audio MissionAudioSlot.Slot3

:DOC2_8584
set_time_scale 1.0
gosub @DOC2_14020
if and
  not is_char_dead 95@
  not is_car_dead 34@
goto_if_false @DOC2_8656
detach_char_from_car 95@
attach_char_to_car 95@ {vehicle} 34@ {xOffset} 0.0 {yOffset} -2.5 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:DOC2_8656
if 
  91@ == 4
goto_if_false @DOC2_8747
if 
  not is_char_dead 95@
goto_if_false @DOC2_8740
$x, $y, $z = get_char_coordinates 95@
add_blood $x {y} $y {z} $z {offsetX} 0.0 {offsetY} 0.0 {offsetZ} 10.0 {density} 100 {handle} 95@
task_die 95@

:DOC2_8740
goto @DOC2_9058

:DOC2_8747
if 
  not is_car_dead 34@
goto_if_false @DOC2_8793
set_car_density_multiplier 2.0
36@ = get_car_health 34@
set_car_proofs 34@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} True

:DOC2_8793
set_lvar_int_to_lvar_int 37@ = 36@
display_onscreen_counter_with_string $d2_instance_health {display} CounterDisplay.Bar {text} 'DOC2_07'
change_blip_display 93@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither
39@ = 0

:DOC2_8838
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_8995
clear_char_tasks_immediately 43@(39@,15i)
$d2_rnd = generate_random_int_in_range 0 {max} 2
if 
  $d2_rnd == 0
goto_if_false @DOC2_8948
$d2_rnd = generate_random_int_in_range 10 {max} 200
wait $d2_rnd
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_8941
perform_sequence_task 43@(39@,15i) {sequence} 110@

:DOC2_8941
goto @DOC2_8995

:DOC2_8948
$d2_rnd = generate_random_int_in_range 10 {max} 200
wait $d2_rnd
if 
  not is_char_dead 43@(39@,15i)
goto_if_false @DOC2_8995
perform_sequence_task 43@(39@,15i) {sequence} 111@

:DOC2_8995
39@ += 1
  39@ >= 7
goto_if_false @DOC2_8838
remove_animation "ON_LOOKERS"
wait 1000
print_now 'DOC2_06' {time} 5000 {flag} 1
TIMERA = 0

:DOC2_9058
if and
  not is_car_dead 34@
  not is_char_dead 95@
goto_if_false @DOC2_12980
if 
  91@ == 5
goto_if_false @DOC2_12980
if 
  TIMERA > 5000
goto_if_false @DOC2_9482
if and
  130@ == 2
  124@ == 0
goto_if_false @DOC2_9177
set_lvar_text_label 127@s = 'DOGG_CA'
set_lvar_int_to_constant 129@ = 14013
gosub @DOC2_14887
124@ = 1

:DOC2_9177
if and
  130@ == 2
  124@ == 1
goto_if_false @DOC2_9238
set_lvar_text_label 127@s = 'DOGG_CB'
set_lvar_int_to_constant 129@ = 14014
gosub @DOC2_14887
124@ = 2

:DOC2_9238
if and
  130@ == 2
  124@ == 2
goto_if_false @DOC2_9299
set_lvar_text_label 127@s = 'DOGG_CC'
set_lvar_int_to_constant 129@ = 14015
gosub @DOC2_14887
124@ = 3

:DOC2_9299
if and
  130@ == 2
  124@ == 3
goto_if_false @DOC2_9360
set_lvar_text_label 127@s = 'DOGG_CD'
set_lvar_int_to_constant 129@ = 14016
gosub @DOC2_14887
124@ = 4

:DOC2_9360
if and
  130@ == 2
  124@ == 4
goto_if_false @DOC2_9421
set_lvar_text_label 127@s = 'DOGG_CE'
set_lvar_int_to_constant 129@ = 14017
gosub @DOC2_14887
124@ = 5

:DOC2_9421
if and
  130@ == 2
  124@ == 5
goto_if_false @DOC2_9482
set_lvar_text_label 127@s = 'DOGG_CF'
set_lvar_int_to_constant 129@ = 14018
gosub @DOC2_14887
124@ = 6

:DOC2_9482
if and
  not is_char_dead $scplayer
  not is_car_dead 34@
goto_if_false @DOC2_9618
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_9577
if 
  117@ == 0
goto_if_false @DOC2_9570
124@ = 6
print_now 'DOC2_19' {time} 4000 {flag} 1
117@ = 1

:DOC2_9570
goto @DOC2_9618

:DOC2_9577
if 
  117@ == 1
goto_if_false @DOC2_9618
print_now 'DOC2_20' {time} 4000 {flag} 1
117@ = 0

:DOC2_9618
set_lvar_int_to_lvar_int 37@ = 36@
36@ = get_car_health 34@
if and
  not is_char_dead 95@
  not is_char_dead $scplayer
goto_if_false @DOC2_9700
if 
  has_char_been_damaged_by_char 95@ {handle} $scplayer
goto_if_false @DOC2_9700
if 
  is_int_lvar_equal_to_int_lvar 36@ == 37@
goto_if_false @DOC2_9700
36@ -= 50

:DOC2_9700
if 
  is_int_lvar_greater_than_int_lvar 37@ > 36@
goto_if_false @DOC2_10835
set_lvar_int_to_lvar_int 38@ = 37@
sub_int_lvar_from_int_lvar 38@ -= 36@
sub_int_lvar_from_int_var $d2_instance_health -= 38@
if 
  0 > $d2_instance_health
goto_if_false @DOC2_10022
$d2_instance_health = 0
clear_prints 
$d2_rnd = generate_random_int_in_range 0 {max} 3
switch_start $d2_rnd {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DOC2_9950 {caseNum1} 0 {caseLabel1} @DOC2_9842 {caseNum2} 1 {caseLabel2} @DOC2_9878 {caseNum3} 2 {caseLabel3} @DOC2_9914 {caseNum4} -1 {caseLabel4} @DOC2_9950 {caseNum5} -1 {caseLabel5} @DOC2_9950 {caseNum6} -1 {caseLabel6} @DOC2_9950 {caseNum7} -1 {caseLabel7} @DOC2_9950

:DOC2_9842
set_lvar_text_label 127@s = 'DOGG_EA'
set_lvar_int_to_constant 129@ = 14029
gosub @DOC2_14887
goto @DOC2_9950

:DOC2_9878
set_lvar_text_label 127@s = 'DOGG_EB'
set_lvar_int_to_constant 129@ = 14030
gosub @DOC2_14887
goto @DOC2_9950

:DOC2_9914
set_lvar_text_label 127@s = 'DOGG_EC'
set_lvar_int_to_constant 129@ = 14031
gosub @DOC2_14887
goto @DOC2_9950

:DOC2_9950
if 
  not is_car_dead 34@
goto_if_false @DOC2_9980
91@ = 6
goto @DOC2_9992

:DOC2_9980
remove_char_elegantly 95@
goto @DOC2_13046

:DOC2_9992
if 
  not is_char_dead 95@
goto_if_false @DOC2_10015
set_char_bleeding 95@ {state} False

:DOC2_10015
TIMERB = 0

:DOC2_10022
if and
  94@ == 0
  91@ <> 6
goto_if_false @DOC2_10835
clear_prints 
124@ = 4
94@ = 1
TIMERB = 0
set_char_bleeding 95@ {state} True
if or
  137@ == 0
  137@ == 1
goto_if_false @DOC2_10118
$d2_rnd = generate_random_int_in_range 0 {max} 3
goto @DOC2_10127

:DOC2_10118
$d2_rnd = generate_random_int_in_range 0 {max} 2

:DOC2_10127
switch_start 137@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DOC2_10796 {caseNum1} 0 {caseLabel1} @DOC2_10190 {caseNum2} 1 {caseLabel2} @DOC2_10338 {caseNum3} 2 {caseLabel3} @DOC2_10486 {caseNum4} 3 {caseLabel4} @DOC2_10641 {caseNum5} -1 {caseLabel5} @DOC2_10796 {caseNum6} -1 {caseLabel6} @DOC2_10796 {caseNum7} -1 {caseLabel7} @DOC2_10796

:DOC2_10190
if 
  $d2_rnd == 0
goto_if_false @DOC2_10237
set_lvar_text_label 127@s = 'DOGG_DC'
set_lvar_int_to_constant 129@ = 14021
gosub @DOC2_14887

:DOC2_10237
if 
  $d2_rnd == 1
goto_if_false @DOC2_10284
set_lvar_text_label 127@s = 'DOGG_DD'
set_lvar_int_to_constant 129@ = 14022
gosub @DOC2_14887

:DOC2_10284
if 
  $d2_rnd == 2
goto_if_false @DOC2_10331
set_lvar_text_label 127@s = 'DOGG_DI'
set_lvar_int_to_constant 129@ = 14027
gosub @DOC2_14887

:DOC2_10331
goto @DOC2_10796

:DOC2_10338
if 
  $d2_rnd == 0
goto_if_false @DOC2_10385
set_lvar_text_label 127@s = 'DOGG_DJ'
set_lvar_int_to_constant 129@ = 14028
gosub @DOC2_14887

:DOC2_10385
if 
  $d2_rnd == 1
goto_if_false @DOC2_10432
set_lvar_text_label 127@s = 'DOGG_DE'
set_lvar_int_to_constant 129@ = 14023
gosub @DOC2_14887

:DOC2_10432
if 
  $d2_rnd == 2
goto_if_false @DOC2_10479
set_lvar_text_label 127@s = 'DOGG_DF'
set_lvar_int_to_constant 129@ = 14024
gosub @DOC2_14887

:DOC2_10479
goto @DOC2_10796

:DOC2_10486
if 
  $d2_rnd == 0
goto_if_false @DOC2_10533
set_lvar_text_label 127@s = 'DOGG_DG'
set_lvar_int_to_constant 129@ = 14025
gosub @DOC2_14887

:DOC2_10533
if 
  $d2_rnd == 1
goto_if_false @DOC2_10634
if 
  124@ == 6
goto_if_false @DOC2_10605
set_lvar_text_label 127@s = 'DOGG_DH'
set_lvar_int_to_constant 129@ = 14026
gosub @DOC2_14887
goto @DOC2_10634

:DOC2_10605
set_lvar_text_label 127@s = 'DOGG_DG'
set_lvar_int_to_constant 129@ = 14025
gosub @DOC2_14887

:DOC2_10634
goto @DOC2_10796

:DOC2_10641
if 
  $d2_rnd == 0
goto_if_false @DOC2_10688
set_lvar_text_label 127@s = 'DOGG_DA'
set_lvar_int_to_constant 129@ = 14019
gosub @DOC2_14887

:DOC2_10688
if 
  $d2_rnd == 1
goto_if_false @DOC2_10789
if 
  124@ == 6
goto_if_false @DOC2_10760
set_lvar_text_label 127@s = 'DOGG_DB'
set_lvar_int_to_constant 129@ = 14020
gosub @DOC2_14887
goto @DOC2_10789

:DOC2_10760
set_lvar_text_label 127@s = 'DOGG_DA'
set_lvar_int_to_constant 129@ = 14019
gosub @DOC2_14887

:DOC2_10789
goto @DOC2_10796

:DOC2_10796
137@ += 1
if 
  137@ == 4
goto_if_false @DOC2_10828
137@ = 0

:DOC2_10828
124@ = 6

:DOC2_10835
if and
  94@ == 1
  TIMERB > 4000
goto_if_false @DOC2_10875
set_char_bleeding 95@ {state} False
94@ = 0

:DOC2_10875
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_10915
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 93@ {display} BlipDisplay.Both
goto @DOC2_10929

:DOC2_10915
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 93@ {display} BlipDisplay.Neither

:DOC2_10929
if 
  not is_car_dead 34@
goto_if_false @DOC2_12980
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @DOC2_12980
if and
  locate_char_any_means_3d $scplayer {x} 1878.546 {y} 2240.8201 {z} 9.813 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
  not is_car_dead 34@
goto_if_false @DOC2_12980
set_player_control $player1 {state} False
if 
  not is_char_dead 95@
goto_if_false @DOC2_12947
apply_brakes_to_players_car $player1 {state} True
gosub @DOC2_14005
108@ = get_char_heading $scplayer
if and
  108@ > 0.0
  180.0 > 108@
goto_if_false @DOC2_11107
115@ = 0
goto @DOC2_11114

:DOC2_11107
115@ = 1

:DOC2_11114
clear_area 1878.546 {y} 2240.8201 {z} 9.813 {radius} 10.0 {clearParticles} True
detach_char_from_car 95@
if 
  not is_char_dead 95@
goto_if_false @DOC2_11189
set_char_coordinates 95@ {x} 1876.335 {y} 2236.8999 {z} 10.125
set_char_heading 95@ {heading} 242.5344

:DOC2_11189
if 
  not is_car_dead 34@
goto_if_false @DOC2_11270
set_car_coordinates 34@ {x} 1878.546 {y} 2240.8201 {z} 9.813
if 
  115@ == 0
goto_if_false @DOC2_11260
set_car_heading 34@ {heading} 90.0
goto @DOC2_11270

:DOC2_11260
set_car_heading 34@ {heading} 270.0

:DOC2_11270
set_fixed_camera_position 1854.521 {y} 2272.75 {z} 11.9889 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1854.83 {y} 2271.8 {z} 11.9363 {switchStyle} SwitchType.JumpCut
wait 1000
TIMERB = 0

:DOC2_11333
if 
  2000 > TIMERB
goto_if_false @DOC2_11387
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11380
goto @DOC2_12813

:DOC2_11380
goto @DOC2_11333

:DOC2_11387
if 
  not is_char_dead 95@
goto_if_false @DOC2_11456
139@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1878.493 {y} 2235.1079 {z} 10.125 {speed} MoveState.Run {vehicle} -1
task_turn_char_to_face_char -1 {target} 95@
task_pause -1 {time} 2000
task_toggle_duck -1 {state} True
close_sequence_task 139@

:DOC2_11456
120@ = create_char PedType.CivMale {modelId} 274 {x} 1875.337 {y} 2235.2271 {z} 10.125
set_char_heading 120@ {heading} 329.5542
task_toggle_duck 120@ {state} True
121@ = create_char PedType.CivMale {modelId} 274 {x} 1886.007 {y} 2235.0669 {z} 10.125
set_char_heading 121@ {heading} 84.1029
perform_sequence_task 121@ {sequence} 139@
set_fixed_camera_position 1872.495 {y} 2243.844 {z} 14.0672 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1873.321 {y} 2243.282 {z} 14.1094 {switchStyle} SwitchType.JumpCut
wait 100
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14032

:DOC2_11607
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_11633
wait 0
goto @DOC2_11607

:DOC2_11633
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FA' {time} 3000 {flag} 1
set_interpolation_parameters 0.0 {time} 6000
set_fixed_camera_position 1872.495 {y} 2243.844 {z} 14.0672 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1872.9709 {y} 2243.1431 {z} 13.5352 {switchStyle} SwitchType.Interpolation
TIMERB = 0

:DOC2_11721
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_11771
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11764
goto @DOC2_12813

:DOC2_11764
goto @DOC2_11721

:DOC2_11771
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14033

:DOC2_11782
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_11808
wait 0
goto @DOC2_11782

:DOC2_11808
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FB' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_11835
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_11885
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11878
goto @DOC2_12813

:DOC2_11878
goto @DOC2_11835

:DOC2_11885
TIMERB = 0

:DOC2_11892
if 
  1000 > TIMERB
goto_if_false @DOC2_11946
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_11939
goto @DOC2_12813

:DOC2_11939
goto @DOC2_11892

:DOC2_11946
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14034

:DOC2_11957
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_11983
wait 0
goto @DOC2_11957

:DOC2_11983
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FC' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12010
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12060
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12053
goto @DOC2_12813

:DOC2_12053
goto @DOC2_12010

:DOC2_12060
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14035

:DOC2_12071
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12097
wait 0
goto @DOC2_12071

:DOC2_12097
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FD' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12124
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12174
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12167
goto @DOC2_12813

:DOC2_12167
goto @DOC2_12124

:DOC2_12174
TIMERB = 0

:DOC2_12181
if 
  1000 > TIMERB
goto_if_false @DOC2_12235
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12228
goto @DOC2_12813

:DOC2_12228
goto @DOC2_12181

:DOC2_12235
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14036

:DOC2_12246
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12272
wait 0
goto @DOC2_12246

:DOC2_12272
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FE' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12299
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12349
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12342
goto @DOC2_12813

:DOC2_12342
goto @DOC2_12299

:DOC2_12349
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14037

:DOC2_12360
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12386
wait 0
goto @DOC2_12360

:DOC2_12386
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FF' {time} 2000 {flag} 1
TIMERB = 0

:DOC2_12413
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12463
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12456
goto @DOC2_12813

:DOC2_12456
goto @DOC2_12413

:DOC2_12463
TIMERB = 0

:DOC2_12470
if 
  1000 > TIMERB
goto_if_false @DOC2_12524
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12517
goto @DOC2_12813

:DOC2_12517
goto @DOC2_12470

:DOC2_12524
if and
  not is_car_dead 34@
  not is_char_dead $scplayer
goto_if_false @DOC2_12638
if 
  115@ == 0
goto_if_false @DOC2_12604
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} 1853.302 {y} 2239.55 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @DOC2_12638

:DOC2_12604
task_car_drive_to_coord $scplayer {vehicle} 34@ {x} 1902.168 {y} 2238.136 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:DOC2_12638
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 14038

:DOC2_12649
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @DOC2_12675
wait 0
goto @DOC2_12649

:DOC2_12675
play_mission_audio MissionAudioSlot.Slot1
print_now 'DOGG_FG' {time} 3000 {flag} 1
TIMERB = 0

:DOC2_12702
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @DOC2_12752
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12745
goto @DOC2_12813

:DOC2_12745
goto @DOC2_12702

:DOC2_12752
TIMERB = 0

:DOC2_12759
if 
  1000 > TIMERB
goto_if_false @DOC2_12813
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DOC2_12806
goto @DOC2_12813

:DOC2_12806
goto @DOC2_12759

:DOC2_12813
gosub @DOC2_13671
if 
  not is_car_dead 34@
goto_if_false @DOC2_12928
set_car_status 34@ {status} EntityStatus.Player
if 
  115@ == 1
goto_if_false @DOC2_12898
set_car_coordinates 34@ {x} 1913.238 {y} 2240.4009 {z} 9.8203
set_car_heading 34@ {heading} 270.0
goto @DOC2_12928

:DOC2_12898
set_car_coordinates 34@ {x} 1867.3 {y} 2260.574 {z} 9.8203
set_car_heading 34@ {heading} 0.0

:DOC2_12928
clear_onscreen_counter $doc2_heal
gosub @DOC2_14020
apply_brakes_to_players_car $player1 {state} False

:DOC2_12947
delete_char 95@
if 
  does_blip_exist 93@
goto_if_false @DOC2_12973
remove_blip 93@

:DOC2_12973
goto @DOC2_13233

:DOC2_12980
if and
  91@ == 6
  TIMERB > 3000
goto_if_false @DOC2_13025
set_char_bleeding 95@ {state} False
remove_char_elegantly 95@
goto @DOC2_13046

:DOC2_13025
goto @DOC2_4228

:DOC2_13032
gosub @DOC2_14020
goto @DOC2_13046

:DOC2_13046
if 
  104@ == 0
goto_if_false @DOC2_13231
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  91@ == 5
goto_if_false @DOC2_13103
clear_onscreen_counter $d2_instance_health

:DOC2_13103
if 
  is_car_dead 34@
goto_if_false @DOC2_13192
if 
  5 > 91@
goto_if_false @DOC2_13160
print_now 'DOC2_09' {time} 4000 {flag} 1
goto @DOC2_13176

:DOC2_13160
print_now 'DOC2_10' {time} 4000 {flag} 1

:DOC2_13176
if 
  not is_char_dead 95@
goto_if_false @DOC2_13192

:DOC2_13192
if or
  is_char_dead 95@
  $d2_instance_health == 0
goto_if_false @DOC2_13231
print_now 'DOC2_10' {time} 4000 {flag} 1

:DOC2_13231
return 

:DOC2_13233
104@ = 1
if 
  does_blip_exist $doc_contact_blip
goto_if_false @DOC2_13261
remove_blip $doc_contact_blip

:DOC2_13261
$flag_doc_mission_counter += 1
register_mission_passed 'DOC_2'
player_made_progress 1
play_mission_passed_tune 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
clear_wanted_level $player1
return 

:DOC2_13316
request_model 274
request_model 416

:DOC2_13326
if or
  not has_model_loaded 274
  not has_model_loaded 416
goto_if_false @DOC2_13358
wait 0
goto @DOC2_13326

:DOC2_13358
118@ = create_char PedType.CivMale {modelId} 274 {x} 1853.996 {y} 2264.554 {z} 9.9245
set_char_heading 118@ {heading} 261.1915
119@ = create_char PedType.CivMale {modelId} 274 {x} 1855.156 {y} 2264.2859 {z} 9.8885
set_char_heading 119@ {heading} 62.9217
122@ = create_car 416 {x} 1889.046 {y} 2256.1279 {z} 9.8203
set_car_heading 122@ {heading} 359.5048
123@ = create_car 416 {x} 1896.493 {y} 2256.0691 {z} 9.8203
set_car_heading 123@ {heading} 2.7445
142@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1853.996 {y} 2264.554 {z} 9.9245 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 242.922
if 
  not is_char_dead 119@
goto_if_false @DOC2_13582
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:DOC2_13582
set_sequence_to_repeat 142@ {state} True
close_sequence_task 142@
perform_sequence_task 118@ {sequence} 142@
clear_sequence_task 142@
142@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1855.156 {y} 2264.2859 {z} 9.8885 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 62.9217
set_sequence_to_repeat 142@ {state} True
close_sequence_task 142@
perform_sequence_task 119@ {sequence} 142@
mark_model_as_no_longer_needed 416
return 

:DOC2_13671
if 
  not is_char_dead 118@
goto_if_false @DOC2_13692
remove_char_elegantly 118@

:DOC2_13692
if 
  not is_char_dead 119@
goto_if_false @DOC2_13713
remove_char_elegantly 119@

:DOC2_13713
if 
  not is_char_dead 120@
goto_if_false @DOC2_13734
remove_char_elegantly 120@

:DOC2_13734
if 
  not is_char_dead 121@
goto_if_false @DOC2_13755
remove_char_elegantly 121@

:DOC2_13755
return 

:DOC2_13757
$onmission = 0
if 
  not is_char_dead 95@
goto_if_false @DOC2_13785
remove_char_elegantly 95@

:DOC2_13785
if 
  does_blip_exist 92@
goto_if_false @DOC2_13806
remove_blip 92@

:DOC2_13806
if 
  does_blip_exist 93@
goto_if_false @DOC2_13827
remove_blip 93@

:DOC2_13827
if 
  does_blip_exist 35@
goto_if_false @DOC2_13848
remove_blip 35@

:DOC2_13848
clear_onscreen_counter $d2_instance_health
kill_fx_system 90@
switch_roads_back_to_original 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
switch_ped_roads_back_to_original 2090.981 {leftBottomY} 1388.51 {leftBottomZ} 8.8203 {rightTopX} 2234.686 {rightTopY} 1517.077 {rightTopZ} 10.8203
mark_model_as_no_longer_needed 478
mark_model_as_no_longer_needed 27
mark_model_as_no_longer_needed 83
mark_model_as_no_longer_needed 85
mark_model_as_no_longer_needed 78
mark_model_as_no_longer_needed 274
mark_model_as_no_longer_needed 416
mark_model_as_no_longer_needed 258
mark_model_as_no_longer_needed 259
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 330
unload_special_character 1
remove_animation "ON_LOOKERS"
release_weather 
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:DOC2_14005
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
return 

:DOC2_14020
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 
do_fade 500 {direction} Fade.Out

:DOC2_14046
if 
  get_fading_status 
goto_if_false @DOC2_14070
wait 0
goto @DOC2_14046

:DOC2_14070
return 
do_fade 500 {direction} Fade.In

:DOC2_14079
if 
  get_fading_status 
goto_if_false @DOC2_14103
wait 0
goto @DOC2_14079

:DOC2_14103
return 

:DOC2_14105
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @DOC2_14175
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14175
task_play_anim $scplayer {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DOC2_14175
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @DOC2_14246
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14246
task_play_anim $scplayer {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DOC2_14246
if 
is_ps2_keyboard_key_just_pressed 69
goto_if_false @DOC2_14316
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14316
task_play_anim $scplayer {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:DOC2_14316
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @DOC2_14401
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14401
if 
  is_char_in_any_car $scplayer
goto_if_false @DOC2_14401
143@ = store_car_char_is_in $scplayer
set_car_coordinates 143@ {x} 1893.958 {y} 2240.1079 {z} 9.8203
set_car_heading 143@ {heading} 77.6686

:DOC2_14401
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @DOC2_14431
view_integer_variable $doc2_rnd {_p2} "DOC2_RND"

:DOC2_14431
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @DOC2_14530
if 
  not is_car_dead 34@
goto_if_false @DOC2_14491
40@, 41@, 42@ = get_offset_from_car_in_world_coords 34@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.5

:DOC2_14491
90@ = create_fx_system "EXPLOSION_BARREL" {x} 40@ {y} 41@ {z} 42@ {ignoreBoundingChecks} True
play_fx_system 90@

:DOC2_14530
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @DOC2_14566
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14566
task_die $scplayer

:DOC2_14566
if 
is_ps2_keyboard_key_just_pressed 81
goto_if_false @DOC2_14642
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14642
$x, $y, $z = get_char_coordinates $scplayer
add_blood $x {y} $y {z} $z {offsetX} 0.0 {offsetY} 0.0 {offsetZ} 2.0 {density} 40 {handle} $scplayer

:DOC2_14642
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @DOC2_14687
if 
  not is_char_dead $scplayer
goto_if_false @DOC2_14687
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:DOC2_14687
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @DOC2_14851
if and
  not is_char_dead 95@
  not is_car_dead 34@
  91@ <> 5
goto_if_false @DOC2_14851
break_object 101@ {intensity} 1
clear_char_tasks_immediately 95@
task_play_anim_non_interruptable 95@ {animationName} "KO_SHOT_FRONT" {animationFile} "PED" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
attach_char_to_car 95@ {vehicle} 34@ {xOffset} 0.0 {yOffset} -2.5 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
91@ = 5
display_onscreen_counter_with_string $doc2_heal {display} CounterDisplay.Bar {text} 'DOC2_07'
change_blip_display 93@ {display} BlipDisplay.Both
change_blip_display 92@ {display} BlipDisplay.Neither

:DOC2_14851
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @DOC2_14870
force_weather_now WeatherType.RainyCountryside

:DOC2_14870
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @DOC2_14885

:DOC2_14885
return 

:DOC2_14887
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 129@
130@ = 0
return 

:DOC2_14907
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  130@ == 0
goto_if_false @DOC2_14950
play_mission_audio MissionAudioSlot.Slot1
print_now 127@s {time} 10000 {flag} 1
130@ = 1

:DOC2_14950
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  130@ == 1
goto_if_false @DOC2_14988
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 127@s
130@ = 2

:DOC2_14988
return 

//-------------Mission 96---------------
// Originally: Architectural Espionage

:HEIST1
script_name 'HEIST1'
gosub @HEIST1_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST1_38
gosub @HEIST1_23658

:HEIST1_38
gosub @HEIST1_23756
terminate_this_script 

:HEIST1_47
register_mission_given 
load_mission_text 'HEIST1'
$onmission = 1
$disable_mod_garage = 1
318@ = 0
wait 0
set_area_visible 10
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_char_coordinates $scplayer {x} 2026.225 {y} 1007.423 {z} 9.8203
set_char_heading $scplayer {heading} 307.0
322@, 323@ = get_time_of_day 
set_time_of_day 0 {minutes} 0
set_darkness_effect True {pitchBlack} -1
318@ = 0
load_cutscene 'HEIST1A'

:HEIST1_177
if 
  not has_cutscene_loaded 
goto_if_false @HEIST1_201
wait 0
goto @HEIST1_177

:HEIST1_201
$cs_time = 0
force_weather_now WeatherType.RainyCountryside
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST1_221
if 
  not has_cutscene_finished 
goto_if_false @HEIST1_372
wait 0
$cs_time = get_cutscene_time 
if 
  318@ == 0
goto_if_false @HEIST1_303
if 
  $cs_time > 12666
goto_if_false @HEIST1_303
318@ = 1
force_weather_now WeatherType.ExtraSunnyVegas
set_time_of_day 12 {minutes} 0
set_darkness_effect False {pitchBlack} -1

:HEIST1_303
if 
  318@ == 1
goto_if_false @HEIST1_365
if 
  $cs_time > 46000
goto_if_false @HEIST1_365
318@ = 99
force_weather_now WeatherType.RainyCountryside
set_time_of_day 0 {minutes} 0
set_darkness_effect True {pitchBlack} -1

:HEIST1_365
goto @HEIST1_221

:HEIST1_372
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST1_385
if 
  get_fading_status 
goto_if_false @HEIST1_409
wait 0
goto @HEIST1_385

:HEIST1_409
clear_cutscene 
force_weather_now WeatherType.CloudyVegas
release_weather 
set_darkness_effect False {pitchBlack} -1
set_area_visible 0
load_scene 2031.168 {y} 1030.918 {z} 9.813
wait 0
set_fading_colour 0 {g} 0 {b} 0
set_time_of_day 322@ {minutes} 323@
set_darkness_effect False {pitchBlack} -1
release_weather 
request_model 367
request_model 346
request_model 349
request_model 59
request_model 12
request_model 54
request_model 70
request_model 147
request_model 17
request_model 71
request_model 57
request_model 58
request_animation "CAMERA"
load_all_models_now 

:HEIST1_536
if or
  not has_model_loaded 59
  not has_model_loaded 12
  not has_model_loaded 54
goto_if_false @HEIST1_570
wait 0
goto @HEIST1_536

:HEIST1_570
if or
  not has_model_loaded 346
  not has_model_loaded 349
  not has_model_loaded 367
goto_if_false @HEIST1_607
wait 0
goto @HEIST1_570

:HEIST1_607
if or
  not has_model_loaded 70
  not has_model_loaded 147
  not has_model_loaded 17
  not has_model_loaded 71
goto_if_false @HEIST1_646
wait 0
goto @HEIST1_607

:HEIST1_646
if or
  not has_model_loaded 58
  not has_model_loaded 57
  not has_animation_loaded "CAMERA"
goto_if_false @HEIST1_686
wait 0
goto @HEIST1_646

:HEIST1_686
102@ = load_char_decision_maker DecisionMakerType.Weak
103@ = load_char_decision_maker DecisionMakerType.Empty
104@ = load_char_decision_maker DecisionMakerType.Tough
105@ = load_char_decision_maker DecisionMakerType.Weak
load_scene 2031.168 {y} 1030.918 {z} 9.813
request_collision 2031.168 {y} 1030.918
set_camera_behind_player 
restore_camera_jumpcut 
wait 2000
do_fade 1000 {direction} Fade.In

:HEIST1_759
if 
  get_fading_status 
goto_if_false @HEIST1_783
wait 0
goto @HEIST1_759

:HEIST1_783
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
41@ = 0
226@ = 0
227@ = 0
228@ = 0
113@ = 0
177@ = 0
175@ = 0
174@ = 0
180@ = 0
179@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
176@ = 0
173@ = 0
199@ = 0
211@ = 0
216@ = 0
215@ = 0
218@ = 0
219@ = 0
151@ = 0
220@ = 0
222@ = 0
223@ = 0
224@ = 0
225@ = 0
221@ = 0
324@ = 0
306@ = 1
307@ = 2
308@ = 0
309@ = 1
310@ = 0
311@ = 0
315@ = 0
316@ = 0
set_lvar_text_label 236@s = 'HE1_AG'
set_lvar_text_label 238@s = 'HE1_AH'
set_lvar_text_label 240@s = 'HE1_AI'
set_lvar_text_label 242@s = 'HE1_AJ'
set_lvar_text_label 244@s = 'HE1_AK'
set_lvar_text_label 246@s = 'HE1_AL'
set_lvar_text_label 248@s = 'HE1_ZA'
set_lvar_text_label 250@s = 'HE1_ZB'
set_lvar_text_label 252@s = 'HE1_ZC'
set_lvar_text_label 254@s = 'HE1_ZD'
set_lvar_text_label 256@s = 'HE1_ZE'
set_lvar_text_label 258@s = 'HEX2B'
set_lvar_text_label 260@s = 'HE1_ZG'
set_lvar_text_label 262@s = 'HE1_ZH'
set_lvar_text_label 264@s = 'HE1_ZJ'
set_lvar_text_label 266@s = 'HE1_ZK'
set_lvar_text_label 268@s = 'HE1_ZL'
set_lvar_text_label 270@s = 'HE1_ZM'
set_lvar_text_label 272@s = 'HE1_XA'
set_lvar_text_label 274@s = 'HE1_XB'
set_lvar_text_label 276@s = 'HEX3'
set_lvar_int_to_constant 283@ = 18006
set_lvar_int_to_constant 284@ = 18007
set_lvar_int_to_constant 285@ = 18008
set_lvar_int_to_constant 286@ = 18009
set_lvar_int_to_constant 287@ = 18010
set_lvar_int_to_constant 288@ = 18011
set_lvar_int_to_constant 289@ = 18014
set_lvar_int_to_constant 290@ = 18015
set_lvar_int_to_constant 291@ = 18016
set_lvar_int_to_constant 292@ = 18017
set_lvar_int_to_constant 293@ = 18018
set_lvar_int_to_constant 294@ = 19216
set_lvar_int_to_constant 295@ = 18020
set_lvar_int_to_constant 296@ = 18021
set_lvar_int_to_constant 297@ = 18022
set_lvar_int_to_constant 298@ = 18023
set_lvar_int_to_constant 299@ = 18024
set_lvar_int_to_constant 300@ = 18025
set_lvar_int_to_constant 301@ = 18012
set_lvar_int_to_constant 302@ = 18013
set_lvar_int_to_constant 303@ = 19219
107@ = create_object #ST_ARCH_PLAN {x} 346.7 {y} 164.98 {z} 1026.8
set_object_rotation 107@ {x} 90.0 {y} 0.0 {z} 0.0
set_object_collision $fourdragons_door {state} True
35@ = create_char PedType.Mission1 {modelId} 58 {x} 2024.26 {y} 1525.787 {z} 9.8203
set_char_decision_maker 35@ {handleOrTemplate} 102@
clear_char_decision_maker_event_response 102@ {event} Event.Damage
set_char_heading 35@ {heading} 287.789
if 
  not is_char_dead 35@
goto_if_false @HEIST1_1728

:HEIST1_1728
36@ = create_char PedType.Mission1 {modelId} 57 {x} 2022.34 {y} 1529.559 {z} 9.8196
set_char_decision_maker 36@ {handleOrTemplate} 102@
set_char_heading 36@ {heading} 223.9212
37@ = create_char PedType.Mission1 {modelId} 59 {x} 2026.092 {y} 1530.428 {z} 9.8203
set_char_decision_maker 37@ {handleOrTemplate} 102@
set_char_allowed_to_duck 37@ {state} False
set_char_heading 37@ {heading} 129.789
if 
  not is_char_dead 37@
goto_if_false @HEIST1_1867
give_weapon_to_char 37@ {weaponType} WeaponType.Camera {ammo} 30000
task_kill_char_on_foot 37@ {target} 35@
set_char_drops_weapons_when_dead 37@ {state} False
set_char_drowns_in_water 37@ {state} False

:HEIST1_1867
38@ = create_char PedType.Mission1 {modelId} 57 {x} 2017.924 {y} 1536.108 {z} 9.8228
set_char_decision_maker 38@ {handleOrTemplate} 102@
set_char_allowed_to_duck 37@ {state} False
set_char_heading 38@ {heading} 170.9212
39@ = create_char PedType.Mission1 {modelId} 59 {x} 2017.708 {y} 1535.127 {z} 9.825
set_char_decision_maker 39@ {handleOrTemplate} 102@
set_char_heading 39@ {heading} 11.9212
if 
  not is_char_dead 38@
goto_if_false @HEIST1_2028
if 
  not is_char_dead 39@
goto_if_false @HEIST1_2028
disable_char_speech 38@ {stopNow} False
disable_char_speech 39@ {stopNow} False
task_chat_with_char 38@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 38@ {leadSpeaker} False {_p4} 1

:HEIST1_2028
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 59
mark_model_as_no_longer_needed 57
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_2126
168@ = add_blip_for_char 35@
change_blip_scale 168@ {size} 1
169@ = add_blip_for_char 36@
change_blip_scale 169@ {size} 1
170@ = add_blip_for_char 37@
171@ = add_blip_for_char 38@
change_blip_scale 171@ {size} 1
172@ = add_blip_for_char 39@
change_blip_scale 172@ {size} 1

:HEIST1_2126
151@ = 1
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_2167
print_now 'HEI1_41' {time} 10000 {flag} 1

:HEIST1_2167
109@ = create_object_no_offset #GEN_DOORINT01 {x} 371.2516 {y} 166.6324 {z} 1007.359
set_object_rotation 109@ {x} 0.0 {y} 0.0 {z} 0.0
freeze_object_position 109@ {state} True
110@ = create_object #KMB_LOCKEDDOOR {x} 370.8048 {y} 179.0889 {z} 1018.958
set_object_heading 110@ {heading} 88.5679
111@ = create_object #GEN_DOORINT01 {x} 368.8954 {y} 161.5299 {z} 1013.274
set_object_rotation 111@ {x} 0.0 {y} 0.0 {z} 90.0
lock_door 111@ {state} True
set_max_fire_generations 1
177@ = 1

:HEIST1_2311
wait 0
if 
  316@ == 1
goto_if_false @HEIST1_2351
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 3401
316@ = 2

:HEIST1_2351
if 
  316@ == 2
goto_if_false @HEIST1_2395
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST1_2395
play_mission_audio MissionAudioSlot.Slot3
316@ = 3

:HEIST1_2395
if 
  308@ <> 0
goto_if_false @HEIST1_2748
if 
  310@ == 0
goto_if_false @HEIST1_2466
if 
  has_mission_audio_loaded 307@
goto_if_false @HEIST1_2452
clear_mission_audio 307@

:HEIST1_2452
310@ = 1
311@ = 1

:HEIST1_2466
if 
  310@ == 1
goto_if_false @HEIST1_2503
load_mission_audio 306@ {audioId} 282@(308@,24i)
310@ = 2

:HEIST1_2503
if 
  310@ == 2
goto_if_false @HEIST1_2563
if 
  has_mission_audio_loaded 306@
goto_if_false @HEIST1_2563
play_mission_audio 306@
print_now 234@(308@,24s) {time} 10000 {flag} 1
310@ = 3

:HEIST1_2563
if 
  310@ == 3
goto_if_false @HEIST1_2748
if 
  has_mission_audio_finished 306@
goto_if_false @HEIST1_2687
clear_this_print 234@(308@,24s)
if 
  306@ == 1
goto_if_false @HEIST1_2645
306@ = 2
307@ = 1
goto @HEIST1_2659

:HEIST1_2645
306@ = 1
307@ = 2

:HEIST1_2659
308@ = 0
310@ = 0
311@ = 0
goto @HEIST1_2748

:HEIST1_2687
if 
  not has_mission_audio_loaded 307@
goto_if_false @HEIST1_2748
if 
  18 > 308@
goto_if_false @HEIST1_2748
set_lvar_int_to_lvar_int 309@ = 308@
309@ += 1
load_mission_audio 307@ {audioId} 282@(309@,24i)

:HEIST1_2748
if 
  35 > 177@
goto_if_false @HEIST1_2790
clear_area 362.2167 {y} 174.5354 {z} 1007.398 {radius} 1000.0 {clearParticles} False

:HEIST1_2790
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @HEIST1_2812
goto @HEIST1_23694

:HEIST1_2812
if 
is_ps2_keyboard_key_pressed 67
goto_if_false @HEIST1_2862
216@ = 9
184@ = 11
177@ = -13
180@ = -13
179@ = -13

:HEIST1_2862
if 
is_ps2_keyboard_key_pressed 79
goto_if_false @HEIST1_2950
clear_area 2419.8269 {y} 1120.785 {z} 9.8203 {radius} 0.5 {clearParticles} False
load_scene 2419.8269 {y} 1120.785 {z} 9.8203
set_char_coordinates $scplayer {x} 2419.8269 {y} 1120.785 {z} 9.8203
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:HEIST1_2950
if 
  185@ == 1
goto_if_false @HEIST1_2992
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_2992
177@ = 55

:HEIST1_2992
if 
  186@ == 1
goto_if_false @HEIST1_3034
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3034
184@ = 5

:HEIST1_3034
if 
  187@ == 1
goto_if_false @HEIST1_3076
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3076
188@ = 4

:HEIST1_3076
if 
  215@ == 1
goto_if_false @HEIST1_3153
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3153

:HEIST1_3111
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST1_3139
wait 0
goto @HEIST1_3111

:HEIST1_3139
216@ = 40
215@ = 0

:HEIST1_3153
if 
  177@ == 1
goto_if_false @HEIST1_5293
if 
  175@ == 0
goto_if_false @HEIST1_4029
if 
  is_char_dead 35@
goto_if_false @HEIST1_3210
remove_blip 168@

:HEIST1_3210
if 
  is_char_dead 36@
goto_if_false @HEIST1_3231
remove_blip 172@

:HEIST1_3231
if 
  is_char_dead 39@
goto_if_false @HEIST1_3252
remove_blip 172@

:HEIST1_3252
if 
  40@ == 0
goto_if_false @HEIST1_3377
if 
  TIMERA > 2000
goto_if_false @HEIST1_3377
if 
  not is_char_dead 35@
goto_if_false @HEIST1_3377
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3377
if 
  not is_char_in_water 37@
goto_if_false @HEIST1_3377
clear_char_tasks 37@
clear_char_tasks 35@
task_turn_char_to_face_char 37@ {target} 35@
task_turn_char_to_face_char 35@ {target} 37@
TIMERA = 0
40@ = 1

:HEIST1_3377
if 
  40@ == 1
goto_if_false @HEIST1_3535
if 
  TIMERA > 2000
goto_if_false @HEIST1_3535
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3535
if 
  not is_char_in_water 37@
goto_if_false @HEIST1_3535
clear_char_tasks 37@
task_play_anim 37@ {animationName} "PICSTND_TAKE" {animationFile} "CAMERA" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@, 43@, 44@ = get_char_coordinates 37@
report_mission_audio_event_at_position 42@ {y} 43@ {z} 44@ {soundId} ScriptSound.SoundCameraShot
TIMERA = 0
40@ = 2

:HEIST1_3535
if 
  40@ == 2
goto_if_false @HEIST1_3660
if 
  TIMERA > 1000
goto_if_false @HEIST1_3660
if 
  not is_char_dead 36@
goto_if_false @HEIST1_3660
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3660
if 
  not is_char_in_water 37@
goto_if_false @HEIST1_3660
clear_char_tasks 37@
clear_char_tasks 36@
task_turn_char_to_face_char 36@ {target} 37@
task_turn_char_to_face_char 37@ {target} 36@
TIMERA = 0
40@ = 3

:HEIST1_3660
if 
  40@ == 3
goto_if_false @HEIST1_3818
if 
  TIMERA > 1000
goto_if_false @HEIST1_3818
if 
  not is_char_dead 37@
goto_if_false @HEIST1_3818
if 
  not is_char_in_water 37@
goto_if_false @HEIST1_3818
clear_char_tasks 37@
task_play_anim 37@ {animationName} "PICCRCH_TAKE" {animationFile} "CAMERA" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
42@, 43@, 44@ = get_char_coordinates 37@
report_mission_audio_event_at_position 42@ {y} 43@ {z} 44@ {soundId} ScriptSound.SoundCameraShot
TIMERA = 0
40@ = 0

:HEIST1_3818
if 
  not is_char_dead 38@
goto_if_false @HEIST1_3942
if 
  not is_char_dead 39@
goto_if_false @HEIST1_3942
206@ = get_script_task_status 38@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_3942
206@ = get_script_task_status 39@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_3942
clear_char_tasks 38@
clear_char_tasks 39@
task_chat_with_char 38@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 38@ {leadSpeaker} False {_p4} 1

:HEIST1_3942
if 
  TIMERB > 4000
goto_if_false @HEIST1_4029
if 
  not is_char_dead 36@
goto_if_false @HEIST1_4029
if 
  not is_char_dead 37@
goto_if_false @HEIST1_4029
if 
  not is_char_dead 38@
goto_if_false @HEIST1_4029
clear_char_tasks 36@
task_turn_char_to_face_char 36@ {target} 37@
TIMERB = 0

:HEIST1_4029
if 
  174@ == 0
goto_if_false @HEIST1_4132
if 
  not is_char_dead 37@
goto_if_false @HEIST1_4132
if 
  locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @HEIST1_4132
if 
  not is_char_dead 36@
goto_if_false @HEIST1_4132
clear_char_tasks 36@
task_look_at_char 36@ {target} $scplayer {time} 5
174@ = 99

:HEIST1_4132
if 
  220@ == 0
goto_if_false @HEIST1_4206
if 
  not is_char_dead 37@
goto_if_false @HEIST1_4206
if 
  locate_char_any_means_char_2d $scplayer {target} 37@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @HEIST1_4206
clear_prints 
220@ = 99

:HEIST1_4206
if 
  175@ == 0
goto_if_false @HEIST1_4275
if 
  does_char_exist 37@
goto_if_false @HEIST1_4275
if 
  has_char_been_damaged_by_char 37@ {handle} $scplayer
goto_if_false @HEIST1_4275
clear_prints 
308@ = 1
175@ = 1

:HEIST1_4275
if 
  175@ == 0
goto_if_false @HEIST1_4342
if 
  does_char_exist 36@
goto_if_false @HEIST1_4342
if 
  has_char_been_damaged_by_char 36@ {handle} $scplayer
goto_if_false @HEIST1_4342
308@ = 2
175@ = 1

:HEIST1_4342
if 
  175@ == 0
goto_if_false @HEIST1_4411
if 
  does_char_exist 35@
goto_if_false @HEIST1_4411
if 
  has_char_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @HEIST1_4411
clear_prints 
308@ = 3
175@ = 1

:HEIST1_4411
if 
  175@ == 0
goto_if_false @HEIST1_4480
if 
  does_char_exist 38@
goto_if_false @HEIST1_4480
if 
  has_char_been_damaged_by_char 38@ {handle} $scplayer
goto_if_false @HEIST1_4480
clear_prints 
308@ = 4
175@ = 1

:HEIST1_4480
if 
  175@ == 0
goto_if_false @HEIST1_4549
if 
  does_char_exist 39@
goto_if_false @HEIST1_4549
if 
  has_char_been_damaged_by_char 39@ {handle} $scplayer
goto_if_false @HEIST1_4549
clear_prints 
308@ = 6
175@ = 1

:HEIST1_4549
if 
  175@ == 1
goto_if_false @HEIST1_4876
174@ = 99
if 
  is_char_dead 35@
goto_if_false @HEIST1_4595
remove_blip 168@

:HEIST1_4595
if 
  is_char_dead 36@
goto_if_false @HEIST1_4616
remove_blip 169@

:HEIST1_4616
if 
  is_char_dead 38@
goto_if_false @HEIST1_4637
remove_blip 171@

:HEIST1_4637
if 
  is_char_dead 39@
goto_if_false @HEIST1_4658
remove_blip 172@

:HEIST1_4658
if 
  not is_char_dead 37@
goto_if_false @HEIST1_4701
clear_char_tasks 37@
task_stay_in_same_place 37@ {state} False
task_smart_flee_char 37@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4701
if 
  not is_char_dead 36@
goto_if_false @HEIST1_4737
clear_char_tasks 36@
task_smart_flee_char 36@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4737
if 
  not is_char_dead 35@
goto_if_false @HEIST1_4773
clear_char_tasks 35@
task_smart_flee_char 35@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4773
if 
  not is_char_dead 38@
goto_if_false @HEIST1_4816
clear_char_tasks 38@
disable_char_speech 38@ {stopNow} True
task_smart_flee_char 38@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4816
if 
  not is_char_dead 39@
goto_if_false @HEIST1_4859
clear_char_tasks 39@
disable_char_speech 39@ {stopNow} True
task_smart_flee_char 39@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST1_4859
remove_animation "CAMERA"
175@ = 2

:HEIST1_4876
if 
  175@ == 2
goto_if_false @HEIST1_5168
if 
  is_char_dead 35@
goto_if_false @HEIST1_4915
remove_blip 168@

:HEIST1_4915
if 
  is_char_dead 36@
goto_if_false @HEIST1_4936
remove_blip 169@

:HEIST1_4936
if 
  is_char_dead 39@
goto_if_false @HEIST1_4957
remove_blip 172@

:HEIST1_4957
if 
  is_char_dead 38@
goto_if_false @HEIST1_4978
remove_blip 171@

:HEIST1_4978
if 
  is_char_dead 37@
goto_if_false @HEIST1_5168
if 
  311@ == 0
goto_if_false @HEIST1_5168
151@ = 1

:HEIST1_5019
if 
  6 > 151@
goto_if_false @HEIST1_5060
remove_blip 167@(151@,6i)
151@ += 1
goto @HEIST1_5019

:HEIST1_5060
clear_prints 
202@, 203@, 204@ = get_dead_char_pickup_coords 37@
154@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 20 {x} 202@ {y} 203@ {z} 204@
155@ = add_blip_for_pickup 154@
change_blip_colour 155@ {color} BlipColor.Green
308@ = 0
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
print_now 'HEI1_39' {time} 6000 {flag} 1
175@ = 3

:HEIST1_5168
if 
  has_pickup_been_collected 154@
goto_if_false @HEIST1_5293
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5293
remove_blip 155@
199@ = 1
clear_prints 
print_now 'HEI1_40' {time} 6000 {flag} 1
177@ = 5
205@ = 1
TIMERB = 0
156@ = add_blip_for_coord 2414.812 {y} 1124.4351 {z} 9.813
change_blip_colour 156@ {color} BlipColor.Yellow
switch_entry_exit 'PAPER' {state} True

:HEIST1_5293
if 
  205@ == 1
goto_if_false @HEIST1_5355
if 
  TIMERB > 12000
goto_if_false @HEIST1_5355
clear_prints 
print 'HEI1_1' {time} 6000 {flag} 1
205@ = 2

:HEIST1_5355
if 
  199@ == 1
goto_if_false @HEIST1_5525
if 
  184@ == 0
goto_if_false @HEIST1_5525
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5525
print_now 'HEI1_11' {time} 6000 {flag} 1
create_char PedType.CivMale {modelId} 59 {x} 2030.703 {y} 1489.3879 {z} 9.8203 {var_handle} 82@(201@,20i)
task_wander_standard 82@(201@,20i)
164@ = add_blip_for_char 82@(201@,20i)
change_blip_colour 164@ {color} BlipColor.Red
give_weapon_to_char 82@(201@,20i) {weaponType} WeaponType.Camera {ammo} 30000
set_char_drops_weapons_when_dead 82@(201@,20i) {state} False
set_char_decision_maker 82@(201@,20i) {handleOrTemplate} 102@
199@ = 2

:HEIST1_5525
if 
  199@ == 2
goto_if_false @HEIST1_5797
if 
  184@ == 0
goto_if_false @HEIST1_5797
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5706
if 
  is_char_dead 82@(201@,20i)
goto_if_false @HEIST1_5706
remove_blip 164@
202@, 203@, 204@ = get_dead_char_pickup_coords 82@(201@,20i)
154@ = create_pickup_with_ammo 367 {pickupType} PickupType.Once {ammo} 60 {x} 202@ {y} 203@ {z} 204@
164@ = add_blip_for_pickup 154@
change_blip_colour 164@ {color} BlipColor.Green
mark_char_as_no_longer_needed 82@(201@,20i)
if 
  19 > 201@
goto_if_false @HEIST1_5699
201@ += 1
227@ = 0

:HEIST1_5699
199@ = 3

:HEIST1_5706
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5797
if 
  does_char_exist 82@(201@,20i)
goto_if_false @HEIST1_5785
mark_char_as_no_longer_needed 82@(201@,20i)
if 
  19 > 201@
goto_if_false @HEIST1_5785
201@ += 1
227@ = 0

:HEIST1_5785
remove_blip 164@
199@ = 1

:HEIST1_5797
if 
  199@ == 3
goto_if_false @HEIST1_5861
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_5861
if 
  has_pickup_been_collected 154@
goto_if_false @HEIST1_5861
remove_blip 164@
199@ = 1

:HEIST1_5861
if 
  227@ == 0
goto_if_false @HEIST1_5957
if 
  does_char_exist 82@(201@,20i)
goto_if_false @HEIST1_5957
if 
  has_char_been_damaged_by_char 82@(201@,20i) {handle} $scplayer
goto_if_false @HEIST1_5957
clear_char_tasks 82@(201@,20i)
task_smart_flee_char 82@(201@,20i) {threat} $scplayer {radius} 100.0 {time} -1
227@ = 1

:HEIST1_5957
if 
  199@ > 0
goto_if_false @HEIST1_6053
if 
  184@ == 0
goto_if_false @HEIST1_6053
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_6053
200@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Camera
if 
  200@ == 0
goto_if_false @HEIST1_6053
remove_weapon_from_char $scplayer {weaponType} WeaponType.Camera
199@ = 1

:HEIST1_6053
if 
  177@ == 5
goto_if_false @HEIST1_7852
if 
  218@ == 0
goto_if_false @HEIST1_7663
if 
  locate_char_any_means_3d $scplayer {x} 2414.812 {y} 1124.4351 {z} 9.813 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HEIST1_7663
65@ = create_char PedType.CivMale {modelId} 147 {x} 366.2195 {y} 178.2328 {z} 1007.398
disable_char_speech 65@ {stopNow} False
set_char_decision_maker 65@ {handleOrTemplate} 102@
set_char_heading 65@ {heading} 256.0
set_char_has_used_entry_exit 65@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
66@ = create_char PedType.CivMale {modelId} 17 {x} 367.4051 {y} 178.2571 {z} 1007.397
set_char_decision_maker 66@ {handleOrTemplate} 102@
disable_char_speech 66@ {stopNow} False
set_char_heading 66@ {heading} 75.0
set_char_has_used_entry_exit 66@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
67@ = create_char PedType.CivMale {modelId} 17 {x} 336.205 {y} 173.5649 {z} 1018.984
set_char_decision_maker 67@ {handleOrTemplate} 102@
disable_char_speech 67@ {stopNow} False
set_char_heading 67@ {heading} 21.0
set_char_has_used_entry_exit 67@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
68@ = create_char PedType.CivMale {modelId} 147 {x} 335.1483 {y} 175.8309 {z} 1018.984
set_char_decision_maker 68@ {handleOrTemplate} 102@
disable_char_speech 68@ {stopNow} False
set_char_heading 68@ {heading} 200.0
set_char_has_used_entry_exit 68@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
69@ = create_char PedType.CivMale {modelId} 17 {x} 347.6199 {y} 171.2935 {z} 1018.991
set_char_decision_maker 69@ {handleOrTemplate} 102@
disable_char_speech 69@ {stopNow} False
set_char_heading 69@ {heading} 89.0
set_char_has_used_entry_exit 69@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
70@ = create_char PedType.CivMale {modelId} 147 {x} 347.7367 {y} 172.3383 {z} 1018.991
set_char_decision_maker 70@ {handleOrTemplate} 102@
disable_char_speech 70@ {stopNow} False
set_char_heading 70@ {heading} 270.0
set_char_has_used_entry_exit 70@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
71@ = create_char PedType.CivMale {modelId} 147 {x} 360.7583 {y} 175.1333 {z} 1018.984
set_char_decision_maker 71@ {handleOrTemplate} 102@
disable_char_speech 71@ {stopNow} False
set_char_heading 71@ {heading} 162.0
set_char_has_used_entry_exit 71@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
72@ = create_char PedType.CivFemale {modelId} 12 {x} 361.4531 {y} 176.2417 {z} 1018.984
set_char_decision_maker 72@ {handleOrTemplate} 102@
set_char_heading 72@ {heading} 0.0
disable_char_speech 72@ {stopNow} False
set_char_has_used_entry_exit 72@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
73@ = create_char PedType.CivMale {modelId} 17 {x} 359.5063 {y} 177.6107 {z} 1018.984
set_char_decision_maker 73@ {handleOrTemplate} 102@
set_char_heading 73@ {heading} 184.0
disable_char_speech 73@ {stopNow} False
set_char_has_used_entry_exit 73@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
task_sit_down 73@ {time} 500000
45@ = create_char PedType.CivFemale {modelId} 12 {x} 359.7724 {y} 173.5793 {z} 1007.389
set_char_has_used_entry_exit 45@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
set_char_heading 45@ {heading} 261.0
set_char_decision_maker 45@ {handleOrTemplate} 103@
set_char_never_targetted 45@ {state} True
52@ = create_char PedType.Mission1 {modelId} 71 {x} 365.3421 {y} 188.8672 {z} 1007.391
set_char_heading 52@ {heading} 172.9746
set_char_decision_maker 52@ {handleOrTemplate} 103@
give_weapon_to_char 52@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 52@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
53@ = create_char PedType.Mission1 {modelId} 71 {x} 376.3221 {y} 170.1705 {z} 1007.398
set_char_heading 53@ {heading} 314.7879
set_char_decision_maker 53@ {handleOrTemplate} 103@
give_weapon_to_char 53@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 53@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
54@ = create_char PedType.Mission1 {modelId} 71 {x} 351.8366 {y} 163.8015 {z} 1024.786
set_char_heading 54@ {heading} 239.6
set_char_decision_maker 54@ {handleOrTemplate} 103@
give_weapon_to_char 54@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 54@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
47@ = create_char PedType.Mission1 {modelId} 147 {x} 355.1732 {y} 172.5407 {z} 1024.781
set_char_heading 47@ {heading} 259.56
set_char_decision_maker 47@ {handleOrTemplate} 102@
set_char_has_used_entry_exit 47@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
48@ = create_char PedType.Mission1 {modelId} 17 {x} 355.8736 {y} 172.4779 {z} 1024.781
set_char_heading 48@ {heading} 80.67
set_char_decision_maker 48@ {handleOrTemplate} 102@
set_char_has_used_entry_exit 48@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
49@ = create_char PedType.Mission1 {modelId} 147 {x} 362.339 {y} 155.2859 {z} 1024.781
set_char_heading 49@ {heading} 178.989
set_char_decision_maker 49@ {handleOrTemplate} 102@
task_scratch_head 49@
set_char_has_used_entry_exit 49@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
50@ = create_char PedType.Mission1 {modelId} 17 {x} 362.7949 {y} 156.2016 {z} 1024.781
set_char_heading 50@ {heading} 20.989
set_char_decision_maker 50@ {handleOrTemplate} 102@
task_scratch_head 50@
set_char_has_used_entry_exit 50@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
if 
  not is_char_dead 65@
goto_if_false @HEIST1_7383
if 
  not is_char_dead 66@
goto_if_false @HEIST1_7383
clear_char_tasks 65@
clear_char_tasks 66@
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:HEIST1_7383
if 
  not is_char_dead 67@
goto_if_false @HEIST1_7449
if 
  not is_char_dead 68@
goto_if_false @HEIST1_7449
clear_char_tasks 67@
clear_char_tasks 68@
task_chat_with_char 67@ {other} 68@ {leadSpeaker} True {_p4} 1
task_chat_with_char 68@ {other} 67@ {leadSpeaker} False {_p4} 1

:HEIST1_7449
if 
  not is_char_dead 69@
goto_if_false @HEIST1_7515
if 
  not is_char_dead 70@
goto_if_false @HEIST1_7515
clear_char_tasks 69@
clear_char_tasks 70@
task_chat_with_char 69@ {other} 70@ {leadSpeaker} True {_p4} 1
task_chat_with_char 70@ {other} 69@ {leadSpeaker} False {_p4} 1

:HEIST1_7515
if 
  not is_char_dead 47@
goto_if_false @HEIST1_7581
if 
  not is_char_dead 48@
goto_if_false @HEIST1_7581
clear_char_tasks 47@
clear_char_tasks 48@
task_chat_with_char 47@ {other} 48@ {leadSpeaker} True {_p4} 1
task_chat_with_char 48@ {other} 47@ {leadSpeaker} False {_p4} 1

:HEIST1_7581
if 
  not is_char_dead 49@
goto_if_false @HEIST1_7647
if 
  not is_char_dead 50@
goto_if_false @HEIST1_7647
clear_char_tasks 49@
clear_char_tasks 50@
task_chat_with_char 49@ {other} 50@ {leadSpeaker} True {_p4} 1
task_chat_with_char 50@ {other} 49@ {leadSpeaker} False {_p4} 1

:HEIST1_7647
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 17
218@ = 1

:HEIST1_7663
if 
  locate_char_any_means_3d $scplayer {x} 387.278 {y} 173.576 {z} 1007.391 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_7852
177@ = 10
TIMERA = 0
TIMERB = 0
print_now 'HEI1_9' {time} 4000 {flag} 1
180@ = 1
179@ = 1
set_char_has_used_entry_exit $scplayer {x} 2415.3479 {y} 1123.942 {radius} 10.0
set_radar_zoom 95
if 
  not is_char_dead 45@
goto_if_false @HEIST1_7852
set_char_has_used_entry_exit 45@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
task_sit_down 45@ {time} 500000
remove_blip 156@
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_7852
if 
  177@ > 5
goto_if_false @HEIST1_8237
if 
  179@ == 0
goto_if_false @HEIST1_8070
if 
  locate_char_any_means_3d $scplayer {x} 387.278 {y} 173.576 {z} 1007.391 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_8070
clear_area 362.2167 {y} 174.5354 {z} 1007.398 {radius} 1000.0 {clearParticles} False
179@ = 1
set_radar_zoom 95
if 
  316@ > 1
goto_if_false @HEIST1_7996
316@ = 1

:HEIST1_7996
if 
  25 > 177@
goto_if_false @HEIST1_8070
remove_blip 156@
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8070
set_char_has_used_entry_exit 45@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_8070
if 
  179@ == 1
goto_if_false @HEIST1_8237
if 
  locate_char_any_means_3d $scplayer {x} 2415.6001 {y} 1123.24 {z} 9.813 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_8237
181@ = 0
clear_prints 
179@ = 0
set_radar_zoom 0
if 
  25 > 177@
goto_if_false @HEIST1_8215
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8215
remove_blip 157@
156@ = add_blip_for_coord 2414.812 {y} 1124.4351 {z} 9.813

:HEIST1_8215
if 
  316@ > 1
goto_if_false @HEIST1_8237
clear_mission_audio MissionAudioSlot.Slot3

:HEIST1_8237
if 
  177@ == 10
goto_if_false @HEIST1_8499
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8499
if 
  locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 4.0 {yRadius} 4.0 {drawSphere} False
goto_if_false @HEIST1_8499
clear_char_tasks 45@
task_turn_char_to_face_char 45@ {target} $scplayer
start_setting_up_conversation 45@
set_up_conversation_node_with_scripted_speech 'HEQ1' {positiveAnswer} 'HEQ2' {negativeAnswer} 'HEX1B' {questionSoundId} 19200 {positiveAnswerSoundId} 19202 {negativeAnswerSoundId} 19201
set_up_conversation_end_node_with_scripted_speech 'HEX1B' {speechSoundId} 19214
set_up_conversation_node_with_scripted_speech 'HEQ2' {positiveAnswer} 'HEQ4' {negativeAnswer} 'HEX2' {questionSoundId} 19203 {positiveAnswerSoundId} 19205 {negativeAnswerSoundId} 19204
set_up_conversation_end_node_with_scripted_speech 'HEQ4' {speechSoundId} 19207
set_up_conversation_node_with_scripted_speech 'HEX2' {positiveAnswer} 'HEQ4C' {negativeAnswer} 'HEQ5' {questionSoundId} 19215 {positiveAnswerSoundId} 19218 {negativeAnswerSoundId} 19217
set_up_conversation_end_node_with_scripted_speech 'HEQ4C' {speechSoundId} 19209
set_up_conversation_end_node_with_scripted_speech 'HEQ5' {speechSoundId} 19210
finish_setting_up_conversation 
177@ = 15

:HEIST1_8499
if 
  177@ == 15
goto_if_false @HEIST1_8583
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8583
if 
  is_conversation_at_node 45@ {speech} 'HEQ1'
goto_if_false @HEIST1_8583
clear_help 
remove_blip 157@
print_help_forever 'TALK_1'
177@ = 20

:HEIST1_8583
if 
  177@ == 20
goto_if_false @HEIST1_9272
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @HEIST1_8626
clear_help 

:HEIST1_8626
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9272
if 
  is_conversation_at_node 45@ {speech} 'HEQ4'
goto_if_false @HEIST1_8693
clear_help 
remove_blip 157@
remove_blip 156@
177@ = 24
228@ = 0

:HEIST1_8693
if 
  is_conversation_at_node 45@ {speech} 'HEQ4C'
goto_if_false @HEIST1_8744
clear_help 
remove_blip 157@
remove_blip 156@
228@ = 0
177@ = 24

:HEIST1_8744
if 
  is_conversation_at_node 45@ {speech} 'HEX1B'
goto_if_false @HEIST1_8845
print_help_forever 'HEIH9'
183@ = 1
177@ = 22
228@ = 0
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8845
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_8845
if 
  is_conversation_at_node 45@ {speech} 'HEQ5'
goto_if_false @HEIST1_8946
print_help_forever 'HEIH9'
183@ = 1
177@ = 22
228@ = 0
if 
  not is_char_dead 45@
goto_if_false @HEIST1_8946
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_8946
if 
  is_conversation_at_node 45@ {speech} 'HEX1'
goto_if_false @HEIST1_9047
print_help_forever 'HEIH9'
183@ = 1
177@ = 22
228@ = 0
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9047
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue

:HEIST1_9047
if 
  228@ == 0
goto_if_false @HEIST1_9104
if 
  is_conversation_at_node 45@ {speech} 'HEX2'
goto_if_false @HEIST1_9104
TIMERA = 0
228@ = 1

:HEIST1_9104
if 
  228@ == 1
goto_if_false @HEIST1_9157
if 
  TIMERA > 4000
goto_if_false @HEIST1_9157
clear_prints 
308@ = 12
228@ = 2

:HEIST1_9157
if 
  not locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @HEIST1_9272
183@ = 1
177@ = 22
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9272
clear_char_tasks 45@
task_sit_down 45@ {time} 10000
clear_prints 
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
308@ = 21
157@ = add_blip_for_char 45@
change_blip_colour 157@ {color} BlipColor.Blue
228@ = 0

:HEIST1_9272
if 
  177@ == 22
goto_if_false @HEIST1_9325
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9311
clear_conversation_for_char 45@

:HEIST1_9311
228@ = 0
177@ = 23

:HEIST1_9325
if 
  177@ == 23
goto_if_false @HEIST1_9483
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9483
if 
  locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @HEIST1_9450
print_help_forever 'HEIH9'
if 
  183@ == 1
goto_if_false @HEIST1_9450
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @HEIST1_9450
177@ = 10
183@ = 0

:HEIST1_9450
if 
  not locate_char_any_means_char_2d $scplayer {target} 45@ {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @HEIST1_9483
clear_help 

:HEIST1_9483
if 
  177@ == 24
goto_if_false @HEIST1_9583
if 
  not is_char_dead 45@
goto_if_false @HEIST1_9529
228@ = 0
clear_conversation_for_char 45@

:HEIST1_9529
166@ = add_blip_for_coord 372.253 {y} 164.4298 {z} 1007.398
set_blip_entry_exit 166@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
177@ = 25
183@ = 0

:HEIST1_9583
if 
  177@ == 25
goto_if_false @HEIST1_9781
clear_help 
189@ = 1
freeze_object_position 109@ {state} False
114@ = create_object #DYN_AIRCON {x} 349.3042 {y} 189.4448 {z} 1018.984
set_object_rotation 114@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_health 114@ {health} 450
116@ = create_object #DYN_AIRCON {x} 349.3042 {y} 189.4448 {z} 1019.784
make_object_targettable 116@ {state} True
set_object_rotation 116@ {x} 0.0 {y} 0.0 {z} 90.0
set_object_health 116@ {health} 450
117@ = get_object_health 116@
118@ = get_object_mass 116@
177@ = 27
173@ = 1
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 3400
315@ = 1

:HEIST1_9781
if 
  315@ == 1
goto_if_false @HEIST1_9848
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST1_9848
if 
  does_object_exist 116@
goto_if_false @HEIST1_9848
attach_mission_audio_to_object MissionAudioSlot.Slot3 {handle} 116@
play_mission_audio MissionAudioSlot.Slot3
315@ = 2

:HEIST1_9848
if 
  177@ == 27
goto_if_false @HEIST1_10060
if 
  TIMERA > 3000
goto_if_false @HEIST1_9928
if 
  173@ == 1
goto_if_false @HEIST1_9928
clear_prints 
print_now 'HEI1_33' {time} 4000 {flag} 1
173@ = 0

:HEIST1_9928
if 
  locate_char_any_means_3d $scplayer {x} 372.253 {y} 164.4298 {z} 1007.398 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @HEIST1_10060
remove_blip 166@
173@ = 0
clear_prints 
print_now 'HEI1_34' {time} 6000 {flag} 1
158@ = add_blip_for_coord 346.9205 {y} 165.9382 {z} 1024.781
set_blip_entry_exit 158@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
change_blip_colour 158@ {color} BlipColor.Yellow
177@ = 30

:HEIST1_10060
if 
  180@ == 1
goto_if_false @HEIST1_14667
if 
  179@ == 1
goto_if_false @HEIST1_14667
if 
  178@ == 0
goto_if_false @HEIST1_14667
if 
  not is_char_dead 52@
goto_if_false @HEIST1_10680
if 
  40 > 177@
goto_if_false @HEIST1_10306
if 
  173@ == 0
goto_if_false @HEIST1_10306
if 
  228@ == 0
goto_if_false @HEIST1_10306
if 
  TIMERA > 2000
goto_if_false @HEIST1_10306
if 
  207@ == 0
goto_if_false @HEIST1_10306
clear_char_tasks_immediately 52@
task_turn_char_to_face_char 52@ {target} $scplayer
if 
  not is_char_dead 53@
goto_if_false @HEIST1_10306
if 
  not is_char_dead 54@
goto_if_false @HEIST1_10306
clear_char_tasks_immediately 53@
clear_char_tasks_immediately 54@
task_turn_char_to_face_char 53@ {target} $scplayer
task_turn_char_to_face_char 54@ {target} $scplayer
TIMERA = 0
113@ = 1

:HEIST1_10306
if 
  has_char_been_damaged_by_char 52@ {handle} $scplayer
goto_if_false @HEIST1_10368
clear_char_tasks 52@
task_kill_char_on_foot 52@ {target} $scplayer
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_10368
if 
  181@ == 0
goto_if_false @HEIST1_10614
if 
  has_char_spotted_char 52@ {target} $scplayer
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_10614
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_10614
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
308@ = 7
TIMERB = 0
181@ = 1

:HEIST1_10614
if 
  207@ == 1
goto_if_false @HEIST1_10680
if 
  208@ == 0
goto_if_false @HEIST1_10680
clear_char_tasks_immediately 52@
task_stay_in_same_place 52@ {state} True
task_aim_gun_at_char 52@ {target} $scplayer {time} 5000
208@ = 1

:HEIST1_10680
if 
  not is_char_dead 53@
goto_if_false @HEIST1_11070
if 
  has_char_been_damaged_by_char 53@ {handle} $scplayer
goto_if_false @HEIST1_10758
clear_char_tasks 53@
task_kill_char_on_foot 53@ {target} $scplayer
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_10758
if 
  181@ == 0
goto_if_false @HEIST1_11004
if 
  has_char_spotted_char 53@ {target} $scplayer
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_11004
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_11004
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 7
TIMERB = 0
181@ = 1

:HEIST1_11004
if 
  207@ == 1
goto_if_false @HEIST1_11070
if 
  209@ == 0
goto_if_false @HEIST1_11070
clear_char_tasks_immediately 53@
task_stay_in_same_place 53@ {state} True
task_aim_gun_at_char 53@ {target} $scplayer {time} 5000
209@ = 1

:HEIST1_11070
if 
  not is_char_dead 54@
goto_if_false @HEIST1_12142
if 
  has_char_been_damaged_by_char 54@ {handle} $scplayer
goto_if_false @HEIST1_11148
clear_char_tasks 54@
task_kill_char_on_foot 54@ {target} $scplayer
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_11148
if 
  189@ == 1
goto_if_false @HEIST1_11257
if 
  188@ == 0
goto_if_false @HEIST1_11257
if 
  locate_char_any_means_3d $scplayer {x} 367.6113 {y} 162.3746 {z} 1024.781 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @HEIST1_11257
if 
  181@ == 0
goto_if_false @HEIST1_11257
188@ = 1

:HEIST1_11257
if 
  has_object_been_photographed 107@
goto_if_false @HEIST1_11305
clear_prints 
print_now 'HEI1_52' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_11305
if 
  181@ == 0
goto_if_false @HEIST1_11589
if 
  locate_char_any_means_char_3d $scplayer {target} 54@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_11589
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_11589
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_11561
308@ = 10
goto @HEIST1_11568

:HEIST1_11561
308@ = 7

:HEIST1_11568
TIMERB = 0
181@ = 1
211@ = 1

:HEIST1_11589
if 
  207@ == 1
goto_if_false @HEIST1_11655
if 
  210@ == 0
goto_if_false @HEIST1_11655
clear_char_tasks_immediately 54@
task_stay_in_same_place 54@ {state} True
task_aim_gun_at_char 54@ {target} $scplayer {time} 5000
210@ = 1

:HEIST1_11655
if 
  189@ == 1
goto_if_false @HEIST1_12142
if 
  188@ == 1
goto_if_false @HEIST1_11878
set_player_control $player1 {state} False
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
308@ = 0
do_fade 500 {direction} Fade.Out

:HEIST1_11736
if 
  get_fading_status 
goto_if_false @HEIST1_11760
wait 0
goto @HEIST1_11736

:HEIST1_11760
clear_prints 
switch_widescreen True
set_fixed_camera_position 345.0205 {y} 163.0617 {z} 1026.826 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 345.8946 {y} 163.5473 {z} 1026.817 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:HEIST1_11824
if 
  get_fading_status 
goto_if_false @HEIST1_11848
wait 0
goto @HEIST1_11824

:HEIST1_11848
188@ = 2
print_now 'HEI1_6' {time} 4000 {flag} 1
TIMERB = 0

:HEIST1_11878
if 
  188@ == 2
goto_if_false @HEIST1_11957
if 
  TIMERB > 1000
goto_if_false @HEIST1_11922
187@ = 1

:HEIST1_11922
if 
  TIMERB > 4000
goto_if_false @HEIST1_11957
clear_prints 
188@ = 4
TIMERB = 0

:HEIST1_11957
if 
  188@ == 4
goto_if_false @HEIST1_12142
187@ = 0
do_fade 500 {direction} Fade.Out
clear_prints 

:HEIST1_11991
if 
  get_fading_status 
goto_if_false @HEIST1_12015
wait 0
goto @HEIST1_11991

:HEIST1_12015
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 500 {direction} Fade.In

:HEIST1_12030
if 
  get_fading_status 
goto_if_false @HEIST1_12054
wait 0
goto @HEIST1_12030

:HEIST1_12054
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
remove_blip 158@
160@ = add_blip_for_coord 357.3549 {y} 193.415 {z} 1018.984
set_blip_entry_exit 160@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
change_blip_colour 160@ {color} BlipColor.Yellow
188@ = 99
print_now 'HEI1_7' {time} 6000 {flag} 1

:HEIST1_12142
if 
  181@ == 1
goto_if_false @HEIST1_13225
if 
  TIMERB > 6000
goto_if_false @HEIST1_12273
if 
  207@ == 0
goto_if_false @HEIST1_12273
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_12273
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
if 
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_12266
308@ = 9

:HEIST1_12266
207@ = 1

:HEIST1_12273
if 
  TIMERB > 12000
goto_if_false @HEIST1_12324
clear_prints 
print_now 'HEI1_50' {time} 6000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_12324
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
goto_if_false @HEIST1_12417
181@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8

:HEIST1_12417
if 
  211@ <> 1
goto_if_false @HEIST1_12528
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @HEIST1_12528
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12528
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @HEIST1_12621
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12621
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
goto_if_false @HEIST1_12714
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12714
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
goto_if_false @HEIST1_12807
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12807
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
goto_if_false @HEIST1_12900
181@ = 0
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8

:HEIST1_12900
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
goto_if_false @HEIST1_12993
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_12993
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @HEIST1_13086
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_13086
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST1_13179
181@ = 0
clear_mission_audio 307@
clear_mission_audio 306@
clear_prints 
311@ = 0
310@ = 0
308@ = 8
207@ = 0
208@ = 0
209@ = 0
210@ = 0
211@ = 0

:HEIST1_13179
if 
  is_char_shooting $scplayer
goto_if_false @HEIST1_13225
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13225
if 
  does_char_exist 65@
goto_if_false @HEIST1_13326
if 
  has_char_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @HEIST1_13326
if 
  not is_char_dead 65@
goto_if_false @HEIST1_13326
clear_char_tasks 65@
task_smart_flee_char 65@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13326
if 
  does_char_exist 66@
goto_if_false @HEIST1_13427
if 
  has_char_been_damaged_by_char 66@ {handle} $scplayer
goto_if_false @HEIST1_13427
if 
  not is_char_dead 66@
goto_if_false @HEIST1_13427
clear_char_tasks 66@
task_smart_flee_char 66@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13427
if 
  does_char_exist 67@
goto_if_false @HEIST1_13528
if 
  has_char_been_damaged_by_char 67@ {handle} $scplayer
goto_if_false @HEIST1_13528
if 
  not is_char_dead 67@
goto_if_false @HEIST1_13528
clear_char_tasks 67@
task_smart_flee_char 67@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13528
if 
  does_char_exist 68@
goto_if_false @HEIST1_13629
if 
  has_char_been_damaged_by_char 68@ {handle} $scplayer
goto_if_false @HEIST1_13629
if 
  not is_char_dead 68@
goto_if_false @HEIST1_13629
clear_char_tasks 68@
task_smart_flee_char 68@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13629
if 
  does_char_exist 69@
goto_if_false @HEIST1_13730
if 
  has_char_been_damaged_by_char 69@ {handle} $scplayer
goto_if_false @HEIST1_13730
if 
  not is_char_dead 69@
goto_if_false @HEIST1_13730
clear_char_tasks 69@
task_smart_flee_char 69@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13730
if 
  does_char_exist 70@
goto_if_false @HEIST1_13831
if 
  has_char_been_damaged_by_char 70@ {handle} $scplayer
goto_if_false @HEIST1_13831
if 
  not is_char_dead 70@
goto_if_false @HEIST1_13831
clear_char_tasks 70@
task_smart_flee_char 70@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13831
if 
  does_char_exist 71@
goto_if_false @HEIST1_13932
if 
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @HEIST1_13932
if 
  not is_char_dead 71@
goto_if_false @HEIST1_13932
clear_char_tasks 71@
task_smart_flee_char 71@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_13932
if 
  does_char_exist 72@
goto_if_false @HEIST1_14033
if 
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @HEIST1_14033
if 
  not is_char_dead 72@
goto_if_false @HEIST1_14033
clear_char_tasks 72@
task_smart_flee_char 72@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_14033
if 
  does_char_exist 73@
goto_if_false @HEIST1_14134
if 
  has_char_been_damaged_by_char 73@ {handle} $scplayer
goto_if_false @HEIST1_14134
if 
  not is_char_dead 73@
goto_if_false @HEIST1_14134
clear_char_tasks 73@
task_smart_flee_char 73@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_14134
if 
  does_char_exist 45@
goto_if_false @HEIST1_14235
if 
  has_char_been_damaged_by_char 45@ {handle} $scplayer
goto_if_false @HEIST1_14235
if 
  not is_char_dead 45@
goto_if_false @HEIST1_14235
clear_char_tasks 45@
task_smart_flee_char 45@ {threat} $scplayer {radius} 100.0 {time} -1
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_14235
if 
  does_char_exist 47@
goto_if_false @HEIST1_14343
if 
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @HEIST1_14343
if 
  not is_char_dead 47@
goto_if_false @HEIST1_14343
clear_char_tasks 47@
task_smart_flee_char 47@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23595
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_14343
if 
  does_char_exist 48@
goto_if_false @HEIST1_14451
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @HEIST1_14451
if 
  not is_char_dead 48@
goto_if_false @HEIST1_14451
clear_char_tasks 48@
task_smart_flee_char 48@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23595
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_14451
if 
  does_char_exist 49@
goto_if_false @HEIST1_14559
if 
  has_char_been_damaged_by_char 49@ {handle} $scplayer
goto_if_false @HEIST1_14559
if 
  not is_char_dead 49@
goto_if_false @HEIST1_14559
clear_char_tasks 49@
task_smart_flee_char 49@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23595
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_14559
if 
  does_char_exist 50@
goto_if_false @HEIST1_14667
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @HEIST1_14667
if 
  not is_char_dead 50@
goto_if_false @HEIST1_14667
clear_char_tasks 50@
task_smart_flee_char 50@ {threat} $scplayer {radius} 100.0 {time} -1
gosub @HEIST1_23595
print_now 'HEI1_50' {time} 4000 {flag} 1
gosub @HEIST1_23626
goto @HEIST1_23658

:HEIST1_14667
if 
  177@ == 30
goto_if_false @HEIST1_15261
if 
  locate_char_any_means_3d $scplayer {x} 364.4255 {y} 188.2647 {z} 1018.984 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_14827
if 
  188@ > 1
goto_if_false @HEIST1_14827
if 
  221@ == 0
goto_if_false @HEIST1_14827
remove_blip 160@
163@ = add_blip_for_object 114@
set_blip_entry_exit 163@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
clear_prints 
print_now 'HEI1_10' {time} 6000 {flag} 1
221@ = 1

:HEIST1_14827
if 
  191@ == 0
goto_if_false @HEIST1_14910
if 
  has_object_been_damaged 114@
goto_if_false @HEIST1_14910
151@ = generate_random_int_in_range 1 {max} 4
break_object 114@ {intensity} 1
remove_blip 163@
190@ += 1
191@ = 1
190@ = 2
make_object_targettable 114@ {state} False

:HEIST1_14910
if 
  192@ == 0
goto_if_false @HEIST1_15018
if 
  2 > 190@
goto_if_false @HEIST1_15018
if 
  has_object_been_damaged 116@
goto_if_false @HEIST1_15018
151@ = generate_random_int_in_range 1 {max} 4
break_object 116@ {intensity} 1
remove_blip 163@
190@ += 1
192@ = 1
190@ = 2
make_object_targettable 116@ {state} False
TIMERA = 0

:HEIST1_15018
if 
  190@ == 2
goto_if_false @HEIST1_15098
clear_mission_audio MissionAudioSlot.Slot3
315@ = 99
if 
  TIMERA > 1000
goto_if_false @HEIST1_15098
148@ = start_script_fire 350.8387 {y} 190.3284 {z} 1019.0 {propagation} 1 {size} 151@
190@ = 3

:HEIST1_15098
if 
  190@ == 3
goto_if_false @HEIST1_15261
177@ = 40
141@ = create_fx_system "TEARGAS" {x} 350.6574 {y} 189.2716 {z} 1019.0 {ignoreBoundingChecks} True
142@ = create_fx_system "TEARGAS" {x} 350.6574 {y} 189.2716 {z} 1020.0 {ignoreBoundingChecks} True
143@ = create_fx_system "TEARGAS" {x} 350.8387 {y} 190.3284 {z} 1019.0 {ignoreBoundingChecks} True
play_fx_system 141@
play_fx_system 142@
play_fx_system 143@
TIMERA = 0
print_now 'HEI1_20' {time} 4000 {flag} 1
316@ = 1

:HEIST1_15261
if 
  177@ == 40
goto_if_false @HEIST1_15319
if 
  TIMERA > 3000
goto_if_false @HEIST1_15319
180@ = 0
178@ = 1
177@ = 45

:HEIST1_15319
if 
  177@ > 9
goto_if_false @HEIST1_15876
if 
  113@ == 1
goto_if_false @HEIST1_15876
if 
  45 > 177@
goto_if_false @HEIST1_15876
if 
  not is_char_dead 65@
goto_if_false @HEIST1_15497
if 
  not is_char_dead 66@
goto_if_false @HEIST1_15497
206@ = get_script_task_status 65@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15497
206@ = get_script_task_status 66@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15497
clear_char_tasks 65@
clear_char_tasks 66@
task_chat_with_char 65@ {other} 66@ {leadSpeaker} True {_p4} 1
task_chat_with_char 66@ {other} 65@ {leadSpeaker} False {_p4} 1

:HEIST1_15497
if 
  not is_char_dead 67@
goto_if_false @HEIST1_15621
if 
  not is_char_dead 68@
goto_if_false @HEIST1_15621
206@ = get_script_task_status 67@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15621
206@ = get_script_task_status 68@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15621
clear_char_tasks 67@
clear_char_tasks 68@
task_chat_with_char 67@ {other} 68@ {leadSpeaker} True {_p4} 1
task_chat_with_char 68@ {other} 67@ {leadSpeaker} False {_p4} 1

:HEIST1_15621
if 
  not is_char_dead 69@
goto_if_false @HEIST1_15745
if 
  not is_char_dead 70@
goto_if_false @HEIST1_15745
206@ = get_script_task_status 69@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15745
206@ = get_script_task_status 70@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15745
clear_char_tasks 69@
clear_char_tasks 70@
task_chat_with_char 69@ {other} 70@ {leadSpeaker} True {_p4} 1
task_chat_with_char 70@ {other} 69@ {leadSpeaker} False {_p4} 1

:HEIST1_15745
if 
  not is_char_dead 71@
goto_if_false @HEIST1_15869
if 
  not is_char_dead 72@
goto_if_false @HEIST1_15869
206@ = get_script_task_status 71@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15869
206@ = get_script_task_status 72@ {taskId} 1655
if 
  is_int_lvar_equal_to_constant 206@ == 7
goto_if_false @HEIST1_15869
clear_char_tasks 71@
clear_char_tasks 72@
task_chat_with_char 71@ {other} 72@ {leadSpeaker} True {_p4} 1
task_chat_with_char 72@ {other} 71@ {leadSpeaker} False {_p4} 1

:HEIST1_15869
113@ = 0

:HEIST1_15876
if 
  177@ == 45
goto_if_false @HEIST1_16917
if 
  not is_char_dead 67@
goto_if_false @HEIST1_15939
clear_char_tasks 67@
task_follow_path_nodes_to_coord 67@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_15939
if 
  not is_char_dead 69@
goto_if_false @HEIST1_15984
clear_char_tasks 69@
task_follow_path_nodes_to_coord 69@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_15984
if 
  not is_char_dead 68@
goto_if_false @HEIST1_16029
clear_char_tasks 68@
task_follow_path_nodes_to_coord 68@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16029
if 
  not is_char_dead 70@
goto_if_false @HEIST1_16074
clear_char_tasks 70@
task_follow_path_nodes_to_coord 70@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16074
if 
  not is_char_dead 71@
goto_if_false @HEIST1_16119
clear_char_tasks 71@
task_follow_path_nodes_to_coord 71@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16119
if 
  not is_char_dead 72@
goto_if_false @HEIST1_16164
clear_char_tasks 72@
task_follow_path_nodes_to_coord 72@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16164
if 
  not is_char_dead 73@
goto_if_false @HEIST1_16209
clear_char_tasks 73@
task_follow_path_nodes_to_coord 73@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_16209
if 
  not is_char_dead 50@
goto_if_false @HEIST1_16258
clear_char_tasks 50@
set_char_decision_maker 50@ {handleOrTemplate} 103@
set_char_coordinates 50@ {x} 377.7027 {y} 153.2545 {z} 1022.774

:HEIST1_16258
do_fade 500 {direction} Fade.Out

:HEIST1_16265
if 
  get_fading_status 
goto_if_false @HEIST1_16289
wait 0
goto @HEIST1_16265

:HEIST1_16289
set_player_control $player1 {state} False
switch_widescreen True
remove_script_fire 148@
set_fixed_camera_position 350.4867 {y} 162.1073 {z} 1026.989 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 351.4692 {y} 162.1195 {z} 1026.804 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 54@
goto_if_false @HEIST1_16424
task_stay_in_same_place 54@ {state} False
flush_route 
extend_route 353.4759 {y} 161.9657 {z} 1024.781
extend_route 365.8191 {y} 162.2179 {z} 1024.781
task_follow_point_route 54@ {speed} MoveState.Walk {mode} RouteMode.Once

:HEIST1_16424
if 
  not is_char_dead 47@
goto_if_false @HEIST1_16565
set_char_decision_maker 47@ {handleOrTemplate} 103@
clear_char_tasks 47@
set_char_coordinates 47@ {x} 353.9879 {y} 164.0512 {z} 1024.781
set_char_heading 47@ {heading} 224.0
clear_char_tasks 47@
set_char_decision_maker 47@ {handleOrTemplate} 103@
flush_route 
extend_route 355.5494 {y} 162.7226 {z} 1024.774
extend_route 368.749 {y} 162.4855 {z} 1024.774
extend_route 378.824 {y} 162.5327 {z} 1024.774
task_follow_point_route 47@ {speed} MoveState.Walk {mode} RouteMode.Once
194@ = 1

:HEIST1_16565
if 
  not is_char_dead 48@
goto_if_false @HEIST1_16706
set_char_decision_maker 48@ {handleOrTemplate} 103@
clear_char_tasks 48@
set_char_coordinates 48@ {x} 354.1077 {y} 160.163 {z} 1024.781
set_char_heading 48@ {heading} 302.0
clear_char_tasks 48@
set_char_decision_maker 48@ {handleOrTemplate} 103@
flush_route 
extend_route 355.5494 {y} 162.7226 {z} 1024.774
extend_route 368.749 {y} 162.4855 {z} 1024.774
extend_route 378.824 {y} 162.5327 {z} 1024.774
task_follow_point_route 48@ {speed} MoveState.Walk {mode} RouteMode.Once
195@ = 2

:HEIST1_16706
if 
  not is_char_dead 49@
goto_if_false @HEIST1_16830
set_char_decision_maker 49@ {handleOrTemplate} 103@
clear_char_tasks 49@
set_char_coordinates 49@ {x} 364.2849 {y} 160.2124 {z} 1024.7889
set_char_heading 49@ {heading} 294.5
clear_char_tasks 49@
set_char_decision_maker 49@ {handleOrTemplate} 103@
flush_route 
extend_route 369.2587 {y} 162.4347 {z} 1024.774
extend_route 377.2099 {y} 163.5096 {z} 1024.781
task_follow_point_route 49@ {speed} MoveState.Walk {mode} RouteMode.Once
196@ = 1

:HEIST1_16830
clear_prints 
do_fade 500 {direction} Fade.In

:HEIST1_16839
if 
  get_fading_status 
goto_if_false @HEIST1_16863
wait 0
goto @HEIST1_16839

:HEIST1_16863
177@ = 50
TIMERB = 0
185@ = 1
clear_prints 
clear_mission_audio 307@
clear_mission_audio 306@
311@ = 0
310@ = 0
308@ = 13

:HEIST1_16917
if 
  177@ == 50
goto_if_false @HEIST1_16961
if 
  TIMERB > 4000
goto_if_false @HEIST1_16961
177@ = 55

:HEIST1_16961
if 
  177@ == 55
goto_if_false @HEIST1_17606
185@ = 0
do_fade 500 {direction} Fade.Out

:HEIST1_16993
if 
  get_fading_status 
goto_if_false @HEIST1_17017
wait 0
goto @HEIST1_16993

:HEIST1_17017
set_camera_behind_player 
restore_camera_jumpcut 
clear_char_tasks $scplayer
switch_widescreen False
do_fade 500 {direction} Fade.In
clear_char_tasks $scplayer
set_player_control $player1 {state} True
151@ = 3
147@ = start_script_fire 350.6574 {y} 189.5716 {z} 1019.0 {propagation} 1 {size} 151@
148@ = start_script_fire 350.8387 {y} 190.3284 {z} 1019.0 {propagation} 1 {size} 2
177@ = 60
if 
  not is_char_dead 54@
goto_if_false @HEIST1_17156
set_char_decision_maker 54@ {handleOrTemplate} 104@
set_char_coordinates 54@ {x} 2419.9939 {y} 1153.71 {z} 9.8047

:HEIST1_17156
if 
  not is_char_dead 53@
goto_if_false @HEIST1_17200
set_char_decision_maker 53@ {handleOrTemplate} 104@
set_char_coordinates 53@ {x} 2419.9939 {y} 1145.71 {z} 9.8047

:HEIST1_17200
if 
  not is_char_dead 52@
goto_if_false @HEIST1_17244
set_char_decision_maker 52@ {handleOrTemplate} 104@
set_char_coordinates 52@ {x} 2417.655 {y} 1154.085 {z} 9.8047

:HEIST1_17244
if 
  not is_char_dead 45@
goto_if_false @HEIST1_17290
set_char_coordinates 45@ {x} 2419.363 {y} 1132.672 {z} 9.8047
set_char_heading 45@ {heading} 135.0

:HEIST1_17290
if 
  not is_char_dead 65@
goto_if_false @HEIST1_17311
delete_char 65@

:HEIST1_17311
if 
  not is_char_dead 66@
goto_if_false @HEIST1_17332
delete_char 66@

:HEIST1_17332
if 
  not is_char_dead 47@
goto_if_false @HEIST1_17383
clear_char_tasks 47@
set_char_coordinates 47@ {x} 372.0212 {y} 163.0494 {z} 1024.7729
set_char_heading 47@ {heading} 276.1

:HEIST1_17383
if 
  not is_char_dead 48@
goto_if_false @HEIST1_17434
clear_char_tasks 48@
set_char_coordinates 48@ {x} 375.6833 {y} 163.8624 {z} 1024.7729
set_char_heading 48@ {heading} 266.1

:HEIST1_17434
if 
  not is_char_dead 49@
goto_if_false @HEIST1_17485
clear_char_tasks 49@
set_char_coordinates 49@ {x} 378.0436 {y} 162.5748 {z} 1024.775
set_char_heading 49@ {heading} 168.1

:HEIST1_17485
if 
  not is_char_dead 50@
goto_if_false @HEIST1_17536
clear_char_tasks 50@
set_char_coordinates 50@ {x} 377.7027 {y} 153.2545 {z} 1022.774
set_char_heading 50@ {heading} 101.1

:HEIST1_17536
clear_prints 
print_now 'HEI1_22' {time} 6000 {flag} 1
remove_blip 158@
158@ = add_blip_for_coord 346.9205 {y} 165.9382 {z} 1024.781
set_blip_entry_exit 158@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
change_blip_colour 158@ {color} BlipColor.Yellow

:HEIST1_17606
if 
  177@ == 60
goto_if_false @HEIST1_18682
if 
  219@ == 0
goto_if_false @HEIST1_17877
if 
  locate_char_any_means_3d $scplayer {x} 371.0459 {y} 161.5409 {z} 1018.984 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_17877
if 
  not is_char_dead 50@
goto_if_false @HEIST1_17735
clear_char_tasks 50@
task_follow_path_nodes_to_coord 50@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17735
if 
  not is_char_dead 49@
goto_if_false @HEIST1_17780
clear_char_tasks 49@
task_follow_path_nodes_to_coord 49@ {x} 379.2716 {y} 173.4771 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17780
if 
  not is_char_dead 48@
goto_if_false @HEIST1_17825
clear_char_tasks 48@
task_follow_path_nodes_to_coord 48@ {x} 370.9119 {y} 175.3713 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17825
if 
  not is_char_dead 47@
goto_if_false @HEIST1_17870
clear_char_tasks 47@
task_follow_path_nodes_to_coord 47@ {x} 370.877 {y} 171.6468 {z} 1007.397 {speed} MoveState.Walk {time} -2

:HEIST1_17870
219@ = 1

:HEIST1_17877
if 
  219@ == 1
goto_if_false @HEIST1_18215
if 
  225@ == 0
goto_if_false @HEIST1_17975
if 
  not is_char_dead 50@
goto_if_false @HEIST1_17975
if 
  has_char_been_damaged_by_char 50@ {handle} $scplayer
goto_if_false @HEIST1_17975
clear_char_tasks 50@
task_smart_flee_char 50@ {threat} $scplayer {radius} 100.0 {time} -1
225@ = 1

:HEIST1_17975
if 
  224@ == 0
goto_if_false @HEIST1_18055
if 
  not is_char_dead 49@
goto_if_false @HEIST1_18055
if 
  has_char_been_damaged_by_char 49@ {handle} $scplayer
goto_if_false @HEIST1_18055
clear_char_tasks 49@
task_smart_flee_char 49@ {threat} $scplayer {radius} 100.0 {time} -1
224@ = 1

:HEIST1_18055
if 
  223@ == 0
goto_if_false @HEIST1_18135
if 
  not is_char_dead 48@
goto_if_false @HEIST1_18135
if 
  has_char_been_damaged_by_char 48@ {handle} $scplayer
goto_if_false @HEIST1_18135
clear_char_tasks 48@
task_smart_flee_char 48@ {threat} $scplayer {radius} 100.0 {time} -1
223@ = 1

:HEIST1_18135
if 
  222@ == 0
goto_if_false @HEIST1_18215
if 
  not is_char_dead 47@
goto_if_false @HEIST1_18215
if 
  has_char_been_damaged_by_char 47@ {handle} $scplayer
goto_if_false @HEIST1_18215
clear_char_tasks 47@
task_smart_flee_char 47@ {threat} $scplayer {radius} 100.0 {time} -1
222@ = 1

:HEIST1_18215
if 
  has_object_been_photographed 107@
goto_if_false @HEIST1_18682
184@ = 1
remove_blip 158@
clear_prints 
clear_help 
print_now 'HEI1_25' {time} 6000 {flag} 1
161@ = add_blip_for_coord 2418.6819 {y} 1123.3521 {z} 9.8047
change_blip_colour 161@ {color} BlipColor.Yellow
kill_fx_system 141@
kill_fx_system 142@
kill_fx_system 143@
138@ = create_fx_system "TEARGAS" {x} 369.2483 {y} 162.346 {z} 1026.774 {ignoreBoundingChecks} True
139@ = create_fx_system "TEARGAS" {x} 373.3976 {y} 162.6828 {z} 1026.774 {ignoreBoundingChecks} True
140@ = create_fx_system "TEARGAS" {x} 378.9187 {y} 163.1306 {z} 1026.774 {ignoreBoundingChecks} True
play_fx_system 138@
play_fx_system 139@
play_fx_system 140@
if 
  not is_char_dead 47@
goto_if_false @HEIST1_18434
delete_char 47@

:HEIST1_18434
if 
  not is_char_dead 48@
goto_if_false @HEIST1_18455
delete_char 48@

:HEIST1_18455
if 
  not is_char_dead 49@
goto_if_false @HEIST1_18476
delete_char 49@

:HEIST1_18476
if 
  not is_char_dead 50@
goto_if_false @HEIST1_18497
delete_char 50@

:HEIST1_18497
if 
  not is_char_dead 67@
goto_if_false @HEIST1_18518
delete_char 67@

:HEIST1_18518
if 
  not is_char_dead 68@
goto_if_false @HEIST1_18539
delete_char 68@

:HEIST1_18539
if 
  not is_char_dead 69@
goto_if_false @HEIST1_18560
delete_char 69@

:HEIST1_18560
if 
  not is_char_dead 70@
goto_if_false @HEIST1_18581
delete_char 70@

:HEIST1_18581
if 
  not is_char_dead 71@
goto_if_false @HEIST1_18602
delete_char 71@

:HEIST1_18602
if 
  not is_char_dead 72@
goto_if_false @HEIST1_18623
delete_char 72@

:HEIST1_18623
if 
  not is_char_dead 73@
goto_if_false @HEIST1_18644
delete_char 73@

:HEIST1_18644
198@ = 1
TIMERA = 0
177@ = 99
load_scene 376.9717 {y} 192.0647 {z} 1013.18

:HEIST1_18682
if 
  184@ == 1
goto_if_false @HEIST1_18990
if 
  TIMERA > 2500
goto_if_false @HEIST1_18990
request_model 275
request_model 282
request_model 147

:HEIST1_18734
if or
  not has_model_loaded 275
  not has_model_loaded 282
  not has_model_loaded 147
goto_if_false @HEIST1_18771
wait 0
goto @HEIST1_18734

:HEIST1_18771
78@ = create_char PedType.Mission1 {modelId} 147 {x} 376.9717 {y} 192.0647 {z} 1013.18
set_char_heading 78@ {heading} 266.7879
set_char_decision_maker 78@ {handleOrTemplate} 105@
set_char_has_used_entry_exit 78@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
79@ = create_char PedType.Mission1 {modelId} 282 {x} 377.2169 {y} 190.7318 {z} 1013.18
set_char_heading 79@ {heading} 5.7879
set_char_decision_maker 79@ {handleOrTemplate} 105@
give_weapon_to_char 79@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 79@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
task_turn_char_to_face_char 78@ {target} 79@
80@ = create_char PedType.Mission1 {modelId} 282 {x} 377.9352 {y} 192.4556 {z} 1013.18
set_char_heading 80@ {heading} 124.31
set_char_decision_maker 80@ {handleOrTemplate} 105@
set_char_has_used_entry_exit 80@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
mark_model_as_no_longer_needed 275
184@ = 2

:HEIST1_18990
if 
  184@ == 2
goto_if_false @HEIST1_19174
clear_prints 
do_fade 1000 {direction} Fade.Out
set_player_control $player1 {state} False

:HEIST1_19024
if 
  get_fading_status 
goto_if_false @HEIST1_19048
wait 0
goto @HEIST1_19024

:HEIST1_19048
clear_prints 
switch_widescreen True
load_scene 376.9717 {y} 192.0647 {z} 1013.18
set_fixed_camera_position 374.0174 {y} 190.0682 {z} 1014.494 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 374.8688 {y} 190.5916 {z} 1014.458 {switchStyle} SwitchType.JumpCut
do_fade 2000 {direction} Fade.In

:HEIST1_19129
if 
  get_fading_status 
goto_if_false @HEIST1_19153
wait 0
goto @HEIST1_19129

:HEIST1_19153
184@ = 3
186@ = 1
TIMERA = 0

:HEIST1_19174
if 
  184@ == 3
goto_if_false @HEIST1_19268
clear_prints 
308@ = 15
if 
  not is_char_dead 78@
goto_if_false @HEIST1_19254
task_play_anim 78@ {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST1_19254
184@ = 4
TIMERA = 0

:HEIST1_19268
if 
  184@ == 4
goto_if_false @HEIST1_19319
if 
  TIMERA > 2000
goto_if_false @HEIST1_19319
184@ = 5
TIMERA = 0

:HEIST1_19319
if 
  184@ == 5
goto_if_false @HEIST1_20904
186@ = 0
if 
  not is_char_dead 78@
goto_if_false @HEIST1_19386
if 
  not is_char_dead 79@
goto_if_false @HEIST1_19386
clear_char_tasks 78@
clear_char_tasks 79@

:HEIST1_19386
do_fade 500 {direction} Fade.Out

:HEIST1_19393
if 
  get_fading_status 
goto_if_false @HEIST1_19417
wait 0
goto @HEIST1_19393

:HEIST1_19417
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
do_fade 500 {direction} Fade.In

:HEIST1_19439
if 
  get_fading_status 
goto_if_false @HEIST1_19463
wait 0
goto @HEIST1_19439

:HEIST1_19463
184@ = 10
delete_char 78@
if 
  not is_char_dead 54@
goto_if_false @HEIST1_19562
set_char_coordinates 54@ {x} 378.2106 {y} 154.386 {z} 1022.782
set_char_heading 54@ {heading} 312.89
clear_char_tasks 54@
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 54@ {sequence} 76@
clear_sequence_task 76@

:HEIST1_19562
56@ = create_char PedType.Mission1 {modelId} 282 {x} 371.6575 {y} 153.1287 {z} 1020.796
set_char_heading 56@ {heading} 264.7879
set_char_shoot_rate 56@ {rate} 60
set_char_decision_maker 56@ {handleOrTemplate} 103@
give_weapon_to_char 56@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 56@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 56@ {sequence} 76@
clear_sequence_task 76@
57@ = create_char PedType.Mission1 {modelId} 282 {x} 378.6946 {y} 163.6932 {z} 1018.984
set_char_heading 57@ {heading} 91.89
set_char_decision_maker 57@ {handleOrTemplate} 103@
give_weapon_to_char 57@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 57@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 57@ {sequence} 76@
clear_sequence_task 76@
58@ = create_char PedType.Mission1 {modelId} 282 {x} 371.9029 {y} 164.5795 {z} 1013.18
set_char_heading 58@ {heading} 195.89
set_char_decision_maker 58@ {handleOrTemplate} 103@
give_weapon_to_char 58@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 58@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 58@ {sequence} 76@
clear_sequence_task 76@
59@ = create_char PedType.Mission1 {modelId} 282 {x} 371.2767 {y} 154.0267 {z} 1014.984
set_char_heading 59@ {heading} 195.89
set_char_shoot_rate 59@ {rate} 60
set_char_decision_maker 59@ {handleOrTemplate} 103@
give_weapon_to_char 59@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 59@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 59@ {sequence} 76@
clear_sequence_task 76@
60@ = create_char PedType.Mission1 {modelId} 282 {x} 378.0627 {y} 152.9613 {z} 1011.195
set_char_heading 60@ {heading} 285.89
set_char_decision_maker 60@ {handleOrTemplate} 103@
give_weapon_to_char 60@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 60@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} False
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 60@ {sequence} 76@
clear_sequence_task 76@
61@ = create_char PedType.Mission1 {modelId} 282 {x} 372.2917 {y} 162.8527 {z} 1007.389
set_char_heading 61@ {heading} 195.89
set_char_decision_maker 61@ {handleOrTemplate} 103@
give_weapon_to_char 61@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 61@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_kinda_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 50
close_sequence_task 76@
perform_sequence_task 61@ {sequence} 76@
clear_sequence_task 76@
64@ = create_char PedType.Mission1 {modelId} 282 {x} 379.1144 {y} 153.0811 {z} 1011.195
set_char_heading 64@ {heading} 4.89
set_char_decision_maker 64@ {handleOrTemplate} 103@
task_toggle_duck 64@ {state} True
set_char_shoot_rate 64@ {rate} 50
set_char_health 64@ {health} 120
give_weapon_to_char 64@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 64@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 64@ {sequence} 76@
clear_sequence_task 76@
63@ = create_char PedType.Mission1 {modelId} 282 {x} 369.8178 {y} 162.4074 {z} 1018.977
set_char_heading 63@ {heading} 217.89
set_char_shoot_rate 63@ {rate} 50
set_char_health 63@ {health} 120
set_char_decision_maker 63@ {handleOrTemplate} 103@
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 63@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_while_ducking -1 {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 70
close_sequence_task 76@
perform_sequence_task 63@ {sequence} 76@
clear_sequence_task 76@
62@ = create_char PedType.Mission1 {modelId} 282 {x} 370.1607 {y} 179.6097 {z} 1007.391
set_char_heading 62@ {heading} 170.89
set_char_shoot_rate 62@ {rate} 50
set_char_health 62@ {health} 120
set_char_decision_maker 62@ {handleOrTemplate} 103@
task_toggle_duck 62@ {state} True
give_weapon_to_char 62@ {weaponType} WeaponType.Pistol {ammo} 30000
set_char_has_used_entry_exit 62@ {x} 2415.3479 {y} 1123.942 {radius} 10.0
76@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 76@
perform_sequence_task 62@ {sequence} 76@
clear_sequence_task 76@
if 
  not is_char_dead 53@
goto_if_false @HEIST1_20714
clear_char_tasks 53@
set_char_coordinates 53@ {x} 375.0372 {y} 177.4968 {z} 1007.391
set_char_heading 53@ {heading} 193.0
task_stay_in_same_place 53@ {state} True
task_kill_char_on_foot 53@ {target} $scplayer

:HEIST1_20714
if 
  not is_char_dead 52@
goto_if_false @HEIST1_20780
clear_char_tasks 52@
set_char_coordinates 52@ {x} 385.5123 {y} 174.311 {z} 1007.389
set_char_heading 52@ {heading} 82.0
task_kinda_stay_in_same_place 52@ {state} True
task_kill_char_on_foot 52@ {target} $scplayer

:HEIST1_20780
if 
  not is_char_dead 79@
goto_if_false @HEIST1_20809
clear_char_tasks 79@
task_kill_char_on_foot 79@ {target} $scplayer

:HEIST1_20809
clear_prints 
print_now 'HEI1_46' {time} 6000 {flag} 1
alter_wanted_level_no_drop $player1 {wantedLevel} 2
request_model 401

:HEIST1_20839
if 
  not has_model_loaded 401
goto_if_false @HEIST1_20866
wait 0
goto @HEIST1_20839

:HEIST1_20866
106@ = create_car 401 {x} 2423.7329 {y} 1120.2729 {z} 9.6719
set_car_heading 106@ {heading} 179.4729
mark_model_as_no_longer_needed 401

:HEIST1_20904
if 
  198@ == 1
goto_if_false @HEIST1_21347
if 
  locate_char_any_means_3d $scplayer {x} 369.2483 {y} 162.346 {z} 1024.774 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST1_21347
129@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {ignoreBoundingChecks} True
130@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} 1.8 {ignoreBoundingChecks} True
131@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
132@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 1.0 {yOffset} 5.0 {zOffset} 1.5 {ignoreBoundingChecks} True
133@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -1.0 {yOffset} 8.0 {zOffset} 1.8 {ignoreBoundingChecks} True
134@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
135@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 0.0 {zOffset} 1.5 {ignoreBoundingChecks} True
136@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
137@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 2.0 {zOffset} 1.5 {ignoreBoundingChecks} True
set_heathaze_effect True
play_fx_system 129@
play_fx_system 130@
play_fx_system 131@
play_fx_system 132@
play_fx_system 133@
play_fx_system 134@
play_fx_system 135@
play_fx_system 136@
play_fx_system 137@
kill_fx_system 138@
kill_fx_system 139@
kill_fx_system 140@
198@ = 2

:HEIST1_21347
if 
  184@ == 10
goto_if_false @HEIST1_21556
if 
  locate_char_any_means_3d $scplayer {x} 2418.6819 {y} 1123.3521 {z} 9.8047 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST1_21556
set_heathaze_effect False
kill_fx_system 138@
kill_fx_system 139@
kill_fx_system 140@
kill_fx_system 129@
kill_fx_system 130@
kill_fx_system 131@
kill_fx_system 132@
kill_fx_system 133@
kill_fx_system 134@
kill_fx_system 135@
kill_fx_system 136@
kill_fx_system 137@
184@ = 11
remove_blip 161@
165@ = add_blip_for_coord 1918.59 {y} 958.3391 {z} 9.8203
clear_prints 
print_now 'HEI1_29' {time} 6000 {flag} 1
alter_wanted_level_no_drop $player1 {wantedLevel} 2
324@ = 1
TIMERB = 0
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 54

:HEIST1_21556
if 
  324@ == 1
goto_if_false @HEIST1_21607
if 
  TIMERB > 4000
goto_if_false @HEIST1_21607
alter_wanted_level_no_drop $player1 {wantedLevel} 4
324@ = 2

:HEIST1_21607
if 
  184@ == 11
goto_if_false @HEIST1_21687
request_model 117
request_model 421
request_model 118

:HEIST1_21638
if or
  not has_model_loaded 118
  not has_model_loaded 117
  not has_model_loaded 421
goto_if_false @HEIST1_21673
wait 0
goto @HEIST1_21638

:HEIST1_21673
184@ = 13
216@ = 9

:HEIST1_21687
if 
  216@ == 9
goto_if_false @HEIST1_22031
34@ = get_area_visible 
if 
  34@ == 0
goto_if_false @HEIST1_21748
if 
  not is_minigame_in_progress 
goto_if_false @HEIST1_21748
set_player_control $player1 {state} True

:HEIST1_21748
if 
  locate_char_any_means_3d $scplayer {x} 1918.59 {y} 958.3391 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @HEIST1_22031
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST1_21933
set_player_control $player1 {state} False
if 
  is_char_stopped $scplayer
goto_if_false @HEIST1_21926
213@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 213@ {heading} 197.2609
change_car_colour 213@ {color1} 4 {color2} 2
if 
  not is_car_dead 213@
goto_if_false @HEIST1_21919
214@ = create_char_inside_car 213@ {pedType} PedType.Mission2 {modelId} 117
212@ = create_char_as_passenger 213@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:HEIST1_21919
216@ = 15

:HEIST1_21926
goto @HEIST1_22031

:HEIST1_21933
set_player_control $player1 {state} False
213@ = create_car 421 {x} 1902.168 {y} 974.9742 {z} 9.8203
set_car_heading 213@ {heading} 197.2609
change_car_colour 213@ {color1} 4 {color2} 2
if 
  not is_car_dead 213@
goto_if_false @HEIST1_22024
214@ = create_char_inside_car 213@ {pedType} PedType.Mission2 {modelId} 117
212@ = create_char_as_passenger 213@ {pedType} PedType.Mission2 {modelId} 118 {seat} SeatId.RearLeft

:HEIST1_22024
216@ = 15

:HEIST1_22031
if 
  216@ == 15
goto_if_false @HEIST1_22373
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 1000 {direction} Fade.Out

:HEIST1_22070
if 
  get_fading_status 
goto_if_false @HEIST1_22094
wait 0
goto @HEIST1_22070

:HEIST1_22094
clear_prints 
mark_car_as_no_longer_needed 106@
clear_area 1913.682 {y} 962.0125 {z} 9.8203 {radius} 60.0 {clearParticles} True
clear_area 1903.468 {y} 967.1692 {z} 9.8127 {radius} 60.0 {clearParticles} True
switch_widescreen True
set_fixed_camera_position 1922.234 {y} 951.8628 {z} 12.2282 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1921.715 {y} 952.7101 {z} 12.1171 {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In

:HEIST1_22211
if 
  get_fading_status 
goto_if_false @HEIST1_22235
wait 0
goto @HEIST1_22211

:HEIST1_22235
216@ = 17
TIMERA = 0
clear_char_tasks $scplayer
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST1_22327
217@ = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 217@
perform_sequence_task $scplayer {sequence} 217@
clear_sequence_task 217@
goto @HEIST1_22373

:HEIST1_22327
217@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1913.682 {y} 962.0125 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 217@
perform_sequence_task $scplayer {sequence} 217@
clear_sequence_task 217@

:HEIST1_22373
if 
  216@ == 17
goto_if_false @HEIST1_22437
if 
  TIMERA > 1000
goto_if_false @HEIST1_22437
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
216@ = 20

:HEIST1_22437
if 
  216@ == 20
goto_if_false @HEIST1_22769
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False
goto_if_false @HEIST1_22540
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 15.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.02 {collisionCheck} False

:HEIST1_22540
if 
  TIMERA > 4000
goto_if_false @HEIST1_22769
216@ = 30
if 
  not is_char_dead 214@
goto_if_false @HEIST1_22769
if 
  not is_car_dead 213@
goto_if_false @HEIST1_22769
task_car_drive_to_coord 214@ {vehicle} 213@ {x} 1909.04 {y} 959.7415 {z} 9.8203 {speed} 7.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
set_fixed_camera_position 1901.587 {y} 965.5023 {z} 11.8636 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1902.538 {y} 965.246 {z} 11.6931 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 1913.682 {y} 962.0125 {z} 9.8203
set_char_heading $scplayer {heading} 100.3
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop
clear_char_tasks $scplayer
task_go_straight_to_coord $scplayer {x} 1909.887 {y} 962.3391 {z} 9.8203 {speed} MoveState.Walk {time} -1
TIMERA = 0

:HEIST1_22769
if 
  216@ == 30
goto_if_false @HEIST1_22929
if 
  not is_car_dead 213@
goto_if_false @HEIST1_22929
if 
  locate_car_2d 213@ {x} 1909.04 {y} 959.7415 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @HEIST1_22888
216@ = 35
if 
  not is_char_dead 212@
goto_if_false @HEIST1_22874
task_look_at_char 212@ {target} $scplayer {time} -1

:HEIST1_22874
308@ = 19
TIMERA = 0

:HEIST1_22888
if 
  TIMERA > 10000
goto_if_false @HEIST1_22929
216@ = 35
write_debug "TEST"
TIMERA = 0

:HEIST1_22929
if 
  216@ == 35
goto_if_false @HEIST1_22987
if 
  TIMERA > 3000
goto_if_false @HEIST1_22987
308@ = 20
216@ = 36
TIMERA = 0

:HEIST1_22987
if 
  216@ == 36
goto_if_false @HEIST1_23135
if 
  TIMERA > 1000
goto_if_false @HEIST1_23135
if 
  not is_car_dead 213@
goto_if_false @HEIST1_23135
if 
  not is_char_dead 214@
goto_if_false @HEIST1_23135
clear_char_tasks 214@
216@ = 37
task_car_drive_to_coord 214@ {vehicle} 213@ {x} 1905.2791 {y} 934.162 {z} 9.8352 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
TIMERA = 0
if 
  not is_char_dead 212@
goto_if_false @HEIST1_23135
task_look_at_char $scplayer {target} 212@ {time} -1

:HEIST1_23135
if 
  216@ == 37
goto_if_false @HEIST1_23328
if 
  TIMERA > 1000
goto_if_false @HEIST1_23302
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False
goto_if_false @HEIST1_23257
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False

:HEIST1_23257
if 
  41@ == 0
goto_if_false @HEIST1_23302
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStart
41@ = 1

:HEIST1_23302
if 
  TIMERA > 3000
goto_if_false @HEIST1_23328
216@ = 40

:HEIST1_23328
if 
  216@ == 40
goto_if_false @HEIST1_23588
if 
  not slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False
goto_if_false @HEIST1_23431
  slide_object $fourdragons_door {posX} 1903.3831 {posY} 967.62 {posZ} 11.438 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.04 {collisionCheck} False

:HEIST1_23431
215@ = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundShutterDoorStop
if 
  not is_char_dead 212@
goto_if_false @HEIST1_23484
clear_char_tasks_immediately 212@
delete_char 212@

:HEIST1_23484
if 
  not is_char_dead 214@
goto_if_false @HEIST1_23510
clear_char_tasks_immediately 214@
delete_char 214@

:HEIST1_23510
delete_car 213@
switch_widescreen False
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.82 {z} 11.438
set_object_heading $fourdragons_door {heading} 0.0
216@ = 45
clear_prints 
goto @HEIST1_23694

:HEIST1_23588
goto @HEIST1_2311

:HEIST1_23595
if 
  not is_char_dead 54@
goto_if_false @HEIST1_23624
clear_char_tasks 54@
task_kill_char_on_foot 54@ {target} $scplayer

:HEIST1_23624
return 

:HEIST1_23626
226@ = 1
print_big 'M_FAIL' {time} 8000 {style} TextStyle.Middle
TIMERB = 0
return 

:HEIST1_23658
if 
  226@ <> 1
goto_if_false @HEIST1_23692
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:HEIST1_23692
return 

:HEIST1_23694
$flag_heist_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 10
register_mission_passed 'HEIST_1'
player_made_progress 1
set_int_stat StatId.PassedHeist1 {value} 1
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:HEIST1_23756
switch_entry_exit 'PAPER' {state} False
$disable_mod_garage = 0
clear_mission_audio MissionAudioSlot.Slot3
if 
  not is_char_dead $scplayer
goto_if_false @HEIST1_23801
clear_char_tasks $scplayer

:HEIST1_23801
clear_wanted_level $player1
if 
  does_object_exist $fourdragons_door
goto_if_false @HEIST1_23852
set_object_coordinates $fourdragons_door {x} 1903.3831 {y} 967.62 {z} 11.438
set_object_heading $fourdragons_door {heading} 0.0

:HEIST1_23852
set_radar_zoom 0
if 
  not is_char_dead $scplayer
goto_if_false @HEIST1_23872

:HEIST1_23872
remove_blip 155@
remove_blip 156@
remove_blip 157@
remove_blip 158@
remove_blip 160@
remove_blip 163@
remove_blip 161@
remove_blip 164@
remove_blip 165@
remove_blip 166@
151@ = 1

:HEIST1_23929
if 
  6 > 151@
goto_if_false @HEIST1_23970
remove_blip 167@(151@,6i)
151@ += 1
goto @HEIST1_23929

:HEIST1_23970
remove_pickup 154@
remove_all_script_fires 
kill_fx_system 138@
kill_fx_system 139@
kill_fx_system 140@
kill_fx_system 141@
kill_fx_system 142@
kill_fx_system 143@
kill_fx_system 129@
kill_fx_system 130@
kill_fx_system 131@
kill_fx_system 132@
kill_fx_system 133@
kill_fx_system 134@
kill_fx_system 135@
kill_fx_system 136@
kill_fx_system 137@
set_heathaze_effect False
mark_model_as_no_longer_needed 57
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 367
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 12
mark_model_as_no_longer_needed 59
mark_model_as_no_longer_needed 54
mark_model_as_no_longer_needed 401
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 70
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 282
mark_model_as_no_longer_needed 275
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 421
remove_animation "CAMERA"
if 
  226@ == 1
goto_if_false @HEIST1_24188
override_next_restart 2337.083 {y} 2453.802 {z} 13.9765 {heading} 90.7643
force_death_restart 

:HEIST1_24188
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 97---------------
// Originally: Key To Her Heart

:HEIST3
script_name 'HEIST3'
gosub @HEIST3_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST3_38
gosub @HEIST3_22985

:HEIST3_38
gosub @HEIST3_23065
terminate_this_script 

:HEIST3_47
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
do_fade 2000 {direction} Fade.Out

:HEIST3_71
if 
  get_fading_status 
goto_if_false @HEIST3_95
wait 0
goto @HEIST3_71

:HEIST3_95
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_138
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:HEIST3_138
store_clothes_state 
force_weather WeatherType.SunnyVegas
set_area_visible 10
load_mission_text 'HEIST3'
load_cutscene 'HEIST2A'

:HEIST3_170
if 
  not has_cutscene_loaded 
goto_if_false @HEIST3_194
wait 0
goto @HEIST3_170

:HEIST3_194
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST3_203
if 
  not has_cutscene_finished 
goto_if_false @HEIST3_227
wait 0
goto @HEIST3_203

:HEIST3_227
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST3_240
if 
  get_fading_status 
goto_if_false @HEIST3_264
wait 0
goto @HEIST3_240

:HEIST3_264
clear_cutscene 
set_area_visible 0
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST3_284
if 
  get_fading_status 
goto_if_false @HEIST3_308
wait 0
goto @HEIST3_284

:HEIST3_308
release_weather 
load_scene 2030.103 {y} 1020.79 {z} 9.8203
wait 0
request_collision 2030.103 {y} 1020.79
load_scene 2030.103 {y} 1020.79 {z} 9.8203
set_char_coordinates $scplayer {x} 2030.103 {y} 1020.79 {z} 9.813
set_char_heading $scplayer {heading} 277.5123
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
42@ = load_char_decision_maker DecisionMakerType.Empty
47@ = 0
48@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
44@ = 0.0
46@ = 0.0
36@ = 0
$hei3_spook = 0
37@ = 0
38@ = 0
39@ = 0
77@ = 2090.0
78@ = 2074.0
79@ = 11.0
86@ = 2036.929
87@ = 2721.449
88@ = 10.5469
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
set_var_text_label s$hei3_text[1] = 'HE3_AA'
set_var_text_label s$hei3_text[2] = 'HE3_BA'
set_var_text_label s$hei3_text[3] = 'HE3_BB'
set_var_text_label s$hei3_text[4] = 'HE3_CA'
set_var_text_label s$hei3_text[5] = 'HE3_CB'
set_var_text_label s$hei3_text[6] = 'HE3_CC'
set_var_text_label s$hei3_text[7] = 'HE3_CD'
set_var_text_label s$hei3_text[8] = 'HE3_CE'
set_var_text_label s$hei3_text[9] = 'HE3_CF'
set_var_text_label s$hei3_text[10] = 'HE3_CG'
set_var_text_label s$hei3_text[11] = 'HE3_CH'
set_var_text_label s$hei3_text[12] = 'HE3_DA'
set_var_text_label s$hei3_text[13] = 'HE3_DB'
set_var_text_label s$hei3_text[14] = 'HE3_DC'
set_var_text_label s$hei3_text[15] = 'HE3_DD'
set_var_text_label s$hei3_text[16] = 'HE3_DE'
set_var_text_label s$hei3_text[17] = 'HE3_DF'
set_var_text_label s$hei3_text[18] = 'HE3_DG'
set_var_text_label s$hei3_text[19] = 'HE3_EA'
set_var_text_label s$hei3_text[20] = 'HE3_EB'
set_var_text_label s$hei3_text[21] = 'HE3_EC'
set_var_text_label s$hei3_text[22] = 'HE3_FA'
set_var_text_label s$hei3_text[23] = 'HE3_FB'
set_var_text_label s$hei3_text[24] = 'HE3_FC'
set_var_text_label s$hei3_text[25] = 'HE3_FD'
set_var_text_label s$hei3_text[26] = 'HE3_FE'
set_var_text_label s$hei3_text[27] = 'HE3_FF'
set_var_text_label s$hei3_text[28] = 'HE3_FG'
set_var_text_label s$hei3_text[29] = 'HE3_GA'
set_var_text_label s$hei3_text[30] = 'HE3_GB'
set_var_text_label s$hei3_text[31] = 'HE3_GC'
set_var_text_label s$hei3_text[32] = 'HE3_GD'
set_var_text_label s$hei3_text[33] = 'HE3_GE'
set_var_text_label s$hei3_text[34] = 'HE3_HA'
set_var_text_label s$hei3_text[35] = 'HE3_HB'
set_var_text_label s$hei3_text[36] = 'HE3_HC'
set_var_text_label s$hei3_text[37] = 'HE3_HD'
set_var_text_label s$hei3_text[38] = 'HE3_HE'
set_var_text_label s$hei3_text[39] = 'HE3_HF'
set_var_text_label s$hei3_text[40] = 'HE3_HG'
set_var_text_label s$hei3_text[41] = 'HE3_HH'
set_var_text_label s$hei3_text[42] = 'HE3_HJ'
set_var_text_label s$hei3_text[43] = 'HE3_AB'
set_lvar_int_to_constant 90@ = 18400
set_lvar_int_to_constant 91@ = 18402
set_lvar_int_to_constant 92@ = 18403
set_lvar_int_to_constant 93@ = 18404
set_lvar_int_to_constant 94@ = 18405
set_lvar_int_to_constant 95@ = 18406
set_lvar_int_to_constant 96@ = 18407
set_lvar_int_to_constant 97@ = 18408
set_lvar_int_to_constant 98@ = 18409
set_lvar_int_to_constant 99@ = 18410
set_lvar_int_to_constant 100@ = 18411
set_lvar_int_to_constant 101@ = 18412
set_lvar_int_to_constant 102@ = 18413
set_lvar_int_to_constant 103@ = 18414
set_lvar_int_to_constant 104@ = 18415
set_lvar_int_to_constant 105@ = 18416
set_lvar_int_to_constant 106@ = 18417
set_lvar_int_to_constant 107@ = 18418
set_lvar_int_to_constant 108@ = 18419
set_lvar_int_to_constant 109@ = 18420
set_lvar_int_to_constant 110@ = 18421
set_lvar_int_to_constant 111@ = 18422
set_lvar_int_to_constant 112@ = 18423
set_lvar_int_to_constant 113@ = 18424
set_lvar_int_to_constant 114@ = 18425
set_lvar_int_to_constant 115@ = 18426
set_lvar_int_to_constant 116@ = 18427
set_lvar_int_to_constant 117@ = 18428
set_lvar_int_to_constant 118@ = 18429
set_lvar_int_to_constant 119@ = 18430
set_lvar_int_to_constant 120@ = 18431
set_lvar_int_to_constant 121@ = 18432
set_lvar_int_to_constant 122@ = 18433
set_lvar_int_to_constant 123@ = 18434
set_lvar_int_to_constant 124@ = 65535
set_lvar_int_to_constant 125@ = 65535
set_lvar_int_to_constant 126@ = 65535
set_lvar_int_to_constant 127@ = 65535
set_lvar_int_to_constant 128@ = 65535
set_lvar_int_to_constant 129@ = 65535
set_lvar_int_to_constant 130@ = 65535
set_lvar_int_to_constant 131@ = 65535
set_lvar_int_to_constant 132@ = 18401
set_lvar_int_to_constant 144@ = 20803
set_lvar_int_to_constant 145@ = 20801
set_lvar_int_to_constant 146@ = 20802
set_lvar_int_to_constant 147@ = 20804
148@ = 0
149@ = 0
150@ = 0
72@ = add_blip_for_coord 2169.0 {y} 1662.0 {z} 11.0
set_camera_behind_player 
switch_widescreen True
load_scene 2030.103 {y} 1020.79 {z} 9.8203
do_fade 1000 {direction} Fade.In

:HEIST3_1734
if 
  get_fading_status 
goto_if_false @HEIST3_1758
wait 0
goto @HEIST3_1734

:HEIST3_1758
skip_cutscene_start_internal @HEIST3_2328

:HEIST3_1765
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_2328
if 
  133@ <> 0
goto_if_false @HEIST3_2058
if 
  136@ == 0
goto_if_false @HEIST3_1851
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_1844
clear_mission_audio 135@

:HEIST3_1844
136@ = 1

:HEIST3_1851
if 
  136@ == 1
goto_if_false @HEIST3_1888
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_1888
if 
  136@ == 2
goto_if_false @HEIST3_1948
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_1948
play_mission_audio 134@
print_now $hei3_text(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_1948
if 
  136@ == 3
goto_if_false @HEIST3_2058
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_2058
clear_this_print $hei3_text(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_2030
134@ = 2
135@ = 1
goto @HEIST3_2044

:HEIST3_2030
134@ = 1
135@ = 2

:HEIST3_2044
133@ = 0
136@ = 0

:HEIST3_2058
switch_start 138@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST3_2249 {caseNum1} 0 {caseLabel1} @HEIST3_2121 {caseNum2} 1 {caseLabel2} @HEIST3_2165 {caseNum3} -1 {caseLabel3} @HEIST3_2321 {caseNum4} -1 {caseLabel4} @HEIST3_2321 {caseNum5} -1 {caseLabel5} @HEIST3_2321 {caseNum6} -1 {caseLabel6} @HEIST3_2321 {caseNum7} -1 {caseLabel7} @HEIST3_2321

:HEIST3_2121
if 
  136@ == 0
goto_if_false @HEIST3_2158
133@ = 1
138@ = 1
141@ = get_game_timer 

:HEIST3_2158
goto @HEIST3_2321

:HEIST3_2165
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_2242
if 
  136@ == 0
goto_if_false @HEIST3_2242
133@ = 43
138@ = 2
141@ = get_game_timer 

:HEIST3_2242
goto @HEIST3_2321

:HEIST3_2249
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_2314
if 
  136@ == 0
goto_if_false @HEIST3_2314
137@ = 1

:HEIST3_2314
goto @HEIST3_2321

:HEIST3_2321
goto @HEIST3_1765

:HEIST3_2328
skip_cutscene_end 
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_2351
clear_mission_audio 134@

:HEIST3_2351
clear_prints 
set_player_control $player1 {state} True
switch_widescreen False
print 'HEI3_33' {time} 5000 {flag} 1

:HEIST3_2380
wait 0
if 
  48@ == 99999
goto_if_false @HEIST3_2606
68@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
71@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
69@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
70@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
56@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0
65@ = create_car 589 {x} 2175.1809 {y} 1695.522 {z} 9.8203
57@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0
66@ = create_car 533 {x} 2175.1809 {y} 1695.522 {z} 9.8203
58@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0

:HEIST3_2606
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @HEIST3_2635
set_global_var_bit_const $iActiveGF {bitIndex} 5
goto @HEIST3_23003

:HEIST3_2635
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @HEIST3_2739

:HEIST3_2650
if or
  not has_model_loaded 555
  not has_model_loaded 194
  not has_model_loaded 589
goto_if_false @HEIST3_2732
request_model 589
request_model 194
request_model 555
give_player_clothes_outside_shop $player1 {textureName} "GIMPLEG" {modelName} "GIMPLEG" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
wait 0
goto @HEIST3_2650

:HEIST3_2732
47@ = 5

:HEIST3_2739
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @HEIST3_2774
set_char_coordinates $scplayer {x} 2152.7739 {y} 1653.351 {z} 10.0469

:HEIST3_2774
if 
is_ps2_keyboard_key_pressed 57
goto_if_false @HEIST3_2896
request_model 321

:HEIST3_2794
if 
  not has_model_loaded 321
goto_if_false @HEIST3_2821
wait 0
goto @HEIST3_2794

:HEIST3_2821
remove_blip 72@
remove_blip 69@
remove_blip 68@
delete_char 57@
delete_car 66@
delete_char 56@
delete_car 65@
set_char_coordinates $scplayer {x} 86@ {y} 87@ {z} 88@
remove_blip 71@
71@ = add_blip_for_coord 86@ {y} 87@ {z} 88@
47@ = 9

:HEIST3_2896
if 
  47@ == 0
goto_if_false @HEIST3_3476
if 
  locate_stopped_char_any_means_3d $scplayer {x} 2169.0 {y} 1662.0 {z} 11.0 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HEIST3_3476
remove_blip 72@
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:HEIST3_2981
if 
  get_fading_status 
goto_if_false @HEIST3_3005
wait 0
goto @HEIST3_2981

:HEIST3_3005
switch_ped_roads_off 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
switch_roads_off 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
request_model 194
request_model 589
request_model 111

:HEIST3_3083
if or
  not has_model_loaded 194
  not has_model_loaded 111
  not has_model_loaded 589
goto_if_false @HEIST3_3119
wait 0
goto @HEIST3_3083

:HEIST3_3119
clear_area 2175.1809 {y} 1695.522 {z} 9.8203 {radius} 30.0 {clearParticles} True
custom_plate_for_next_car 589 {text} "_SPANK__"
65@ = create_car 589 {x} 2175.1809 {y} 1695.522 {z} 9.8203
change_car_colour 65@ {color1} 126 {color2} 126
set_can_burst_car_tyres 65@ {state} False
lock_car_doors 65@ {lockStatus} CarLock.LockoutPlayerOnly
set_car_heading 65@ {heading} 66.1016
56@ = create_char PedType.Mission1 {modelId} 194 {x} 2191.0 {y} 1679.0 {z} 11.0
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
68@ = add_blip_for_char 56@
set_char_heading 56@ {heading} 76.0
58@ = create_char PedType.Mission2 {modelId} 111 {x} 2188.1001 {y} 1686.4 {z} 10.0
set_char_heading 58@ {heading} 78.0
set_char_decision_maker 58@ {handleOrTemplate} 42@
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST3_3388
67@ = store_car_char_is_in $scplayer
set_car_coordinates 67@ {x} 2174.0 {y} 1662.0 {z} 9.8203
set_car_heading 67@ {heading} 27.0
goto @HEIST3_3418

:HEIST3_3388
set_char_coordinates $scplayer {x} 2174.0 {y} 1662.0 {z} 9.8203
set_char_heading $scplayer {heading} 27.0

:HEIST3_3418
set_fixed_camera_position 2191.3999 {y} 1677.08 {z} 12.48 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2182.1699 {y} 1688.45 {z} 8.05 {switchStyle} SwitchType.JumpCut
47@ = 1

:HEIST3_3476
if 
  47@ == 1
goto_if_false @HEIST3_5104
if 
  not is_char_dead 56@
goto_if_false @HEIST3_5104
if 
  not is_car_dead 65@
goto_if_false @HEIST3_5104
flush_route 
extend_route 2336.219 {y} 1891.09 {z} 9.7792
extend_route 2355.281 {y} 2114.8169 {z} 9.6719
extend_route 2171.7461 {y} 2149.146 {z} 9.6794
extend_route 2123.564 {y} 2134.417 {z} 9.6797
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2175.093 {y} 1692.705 {z} 9.8203 {speed} MoveState.Walk {time} 30000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 65@ {time} 20000
task_drive_point_route_advanced -1 {vehicle} 65@ {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2130.5359 {y} 2061.717 {z} 9.6875 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2116.2639 {y} 2044.594 {z} 9.8125 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2101.0 {y} 2040.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2096.0 {y} 2073.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@
do_fade 1500 {direction} Fade.In

:HEIST3_3814
if 
  get_fading_status 
goto_if_false @HEIST3_3838
wait 0
goto @HEIST3_3814

:HEIST3_3838
clear_prints 
print 'HEI3_01' {time} 7000 {flag} 1
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_3947
if 
  48@ == 0
goto_if_false @HEIST3_5033
if 
  137@ == 0
goto_if_false @HEIST3_4357
if 
  133@ <> 0
goto_if_false @HEIST3_4290
if 
  136@ == 0
goto_if_false @HEIST3_4047
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_4040
clear_mission_audio 135@

:HEIST3_4040
136@ = 1

:HEIST3_4047
if 
  136@ == 1
goto_if_false @HEIST3_4084
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_4084
if 
  136@ == 2
goto_if_false @HEIST3_4144
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_4144
play_mission_audio 134@
print_now $hei3_text(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_4144
if 
  136@ == 3
goto_if_false @HEIST3_4290
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_4290
if 
  not is_char_dead 56@
goto_if_false @HEIST3_4207
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_4207
clear_this_print $hei3_text(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_4255
134@ = 2
135@ = 1
goto @HEIST3_4269

:HEIST3_4255
134@ = 1
135@ = 2

:HEIST3_4269
133@ = 0
136@ = 0
137@ = 1

:HEIST3_4290
if 
  not is_message_being_displayed 
goto_if_false @HEIST3_4357
if 
  136@ == 0
goto_if_false @HEIST3_4357
if 
  not is_char_dead 56@
goto_if_false @HEIST3_4350
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_4350
133@ = 2

:HEIST3_4357
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST3_4701
48@ = 1
if and
  not is_char_dead 56@
  not is_car_dead 65@
goto_if_false @HEIST3_4701
if 
  not is_char_in_car 56@ {vehicle} 65@
goto_if_false @HEIST3_4429
warp_char_into_car 56@ {vehicle} 65@

:HEIST3_4429
close_all_car_doors 65@
flush_route 
extend_route 2336.219 {y} 1891.09 {z} 9.7792
extend_route 2355.281 {y} 2114.8169 {z} 9.6719
extend_route 2171.7461 {y} 2149.146 {z} 9.6794
extend_route 2128.564 {y} 2134.417 {z} 9.6797
75@ = open_sequence_task 
task_drive_point_route_advanced -1 {vehicle} 65@ {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2130.5359 {y} 2061.717 {z} 9.6875 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2116.2639 {y} 2044.594 {z} 9.8125 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2101.0 {y} 2040.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
task_car_drive_to_coord -1 {vehicle} 65@ {x} 2096.0 {y} 2073.0 {z} 9.8203 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@
clear_area 2175.1809 {y} 1695.522 {z} 9.8203 {radius} 30.0 {clearParticles} True

:HEIST3_4701
if and
  not is_char_dead 56@
  not is_car_dead 65@
goto_if_false @HEIST3_5015
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_5008
34@ = get_sequence_progress 56@
if 
  locate_char_any_means_car_3d 56@ {vehicle} 65@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST3_4933
if 
  35@ == 0
goto_if_false @HEIST3_4933
print 'HEI3_02' {time} 5000 {flag} 1
set_fixed_camera_position 2182.1699 {y} 1694.54 {z} 11.72 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2108.6899 {y} 1674.08 {z} -4.6 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 58@
goto_if_false @HEIST3_4926
clear_char_tasks 58@
task_go_straight_to_coord 58@ {x} 2196.6201 {y} 1684.1801 {z} 12.41 {speed} MoveState.Walk {time} 30000

:HEIST3_4926
35@ = 1

:HEIST3_4933
if 
  34@ == 2
goto_if_false @HEIST3_5008
wait 1000
clear_area 2175.1809 {y} 1695.522 {z} 9.8203 {radius} 30.0 {clearParticles} True
if 
  not is_car_dead 65@
goto_if_false @HEIST3_5001
close_all_car_doors 65@

:HEIST3_5001
48@ = 1

:HEIST3_5008
goto @HEIST3_5022

:HEIST3_5015
48@ = 1

:HEIST3_5022
wait 0
goto @HEIST3_3947

:HEIST3_5033
clear_prints 
mark_char_as_no_longer_needed 58@
remove_char_elegantly 58@
mark_model_as_no_longer_needed 111
mark_car_as_no_longer_needed 67@
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
display_onscreen_counter_with_string $hei3_spook {display} CounterDisplay.Bar {text} 'HEI3_94'
TIMERB = 0
TIMERA = 0
47@ = 2

:HEIST3_5104
if 
  47@ == 2
goto_if_false @HEIST3_6977
if 
  not is_char_dead 56@
goto_if_false @HEIST3_6847
if 
  not is_car_dead 65@
goto_if_false @HEIST3_6710
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_5739
clear_area 2096.0 {y} 2073.0 {z} 9.8203 {radius} 20.0 {clearParticles} True
clear_onscreen_counter $hei3_spook
gosub @ENTEXT_63
if 
  $player_is_completely_safe == 1
goto_if_false @HEIST3_5609
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_car_coordinates 65@ {x} 2095.9131 {y} 2074.0811 {z} 9.8203
set_car_heading 65@ {heading} 4.4441
set_fixed_camera_position 2098.45 {y} 2081.99 {z} 9.88 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2056.3701 {y} 2043.26 {z} 26.3 {switchStyle} SwitchType.JumpCut
skip_cutscene_start_internal @HEIST3_5607
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST3_5432
if 
  locate_char_any_means_3d $scplayer {x} 2088.0 {y} 2076.0 {z} 11.0 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_5432
set_char_coordinates $scplayer {x} 2092.0 {y} 2063.0 {z} 11.0
set_char_heading $scplayer {heading} 0.0

:HEIST3_5432
75@ = open_sequence_task 
if 
  is_char_in_any_car 56@
goto_if_false @HEIST3_5457
task_leave_any_car -1

:HEIST3_5457
task_go_straight_to_coord -1 {x} 2085.7209 {y} 2074.76 {z} 10.0579 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@
48@ = 0
TIMERA = 0

:HEIST3_5512
if 
  48@ == 0
goto_if_false @HEIST3_5607
if 
  not is_char_dead 56@
goto_if_false @HEIST3_5589
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_5582
48@ = 1

:HEIST3_5582
goto @HEIST3_5596

:HEIST3_5589
48@ = 1

:HEIST3_5596
wait 0
goto @HEIST3_5512

:HEIST3_5607
skip_cutscene_end 

:HEIST3_5609
if 
  not is_car_dead 65@
goto_if_false @HEIST3_5660
set_car_coordinates 65@ {x} 2095.9131 {y} 2074.0811 {z} 9.8203
set_car_heading 65@ {heading} 4.4441
close_all_car_doors 65@

:HEIST3_5660
restore_camera_jumpcut 
remove_blip 68@
70@ = add_blip_for_coord 77@ {y} 78@ {z} 79@
delete_char 56@
mark_char_as_no_longer_needed 56@
set_player_control $player1 {state} True
switch_widescreen False
print 'HEI3_03' {time} 5000 {flag} 1
35@ = 0
47@ = 3
goto @HEIST3_6703

:HEIST3_5739
80@, 81@, 82@ = get_char_coordinates $scplayer
83@, 84@, 85@ = get_char_coordinates 56@
46@ = get_distance_between_coords_3d 80@ {fromY} 81@ {fromZ} 82@ {toX} 83@ {toY} 84@ {toZ} 85@
cset_lvar_int_to_lvar_float 36@ =# 46@
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_6703
34@ = get_sequence_progress 56@
if 
  5 > 34@
goto_if_false @HEIST3_6703
if 
  51@ == 1
goto_if_false @HEIST3_6223
if 
  36@ > 140
goto_if_false @HEIST3_6090
clear_prints 
if 
  36@ > 168
goto_if_false @HEIST3_6074
if 
  not is_char_on_screen 56@
goto_if_false @HEIST3_6051
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6021
do_fade 1000 {direction} Fade.Out

:HEIST3_5950
if 
  get_fading_status 
goto_if_false @HEIST3_5974
wait 0
goto @HEIST3_5950

:HEIST3_5974
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_5997
if 
  get_fading_status 
goto_if_false @HEIST3_6021
wait 0
goto @HEIST3_5997

:HEIST3_6021
print 'HEI3_16' {time} 5000 {flag} 1
goto @HEIST3_22985
goto @HEIST3_6067

:HEIST3_6051
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_6067
goto @HEIST3_6090

:HEIST3_6074
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_6090
if 
  locate_char_any_means_char_3d $scplayer {target} 56@ {xRadius} 22.5 {yRadius} 22.5 {zRadius} 20.0 {drawSphere} False
goto_if_false @HEIST3_6165
if 
  TIMERA > 64
goto_if_false @HEIST3_6158
$hei3_spook += 1
TIMERA = 0

:HEIST3_6158
goto @HEIST3_6216

:HEIST3_6165
if 
  TIMERA > 150
goto_if_false @HEIST3_6216
if 
  $hei3_spook > 0
goto_if_false @HEIST3_6209
$hei3_spook -= 1

:HEIST3_6209
TIMERA = 0

:HEIST3_6216
goto @HEIST3_6267

:HEIST3_6223
if 
  51@ == 0
goto_if_false @HEIST3_6267
if 
  TIMERB > 4000
goto_if_false @HEIST3_6267
51@ = 1

:HEIST3_6267
if 
  0 > $hei3_spook
goto_if_false @HEIST3_6299
$hei3_spook = 0
goto @HEIST3_6324

:HEIST3_6299
if 
  $hei3_spook > 100
goto_if_false @HEIST3_6324
$hei3_spook = 100

:HEIST3_6324
if 
  $hei3_spook > 10
goto_if_false @HEIST3_6383
if 
  52@ == 0
goto_if_false @HEIST3_6383
print_now 'HEI3_11' {time} 5000 {flag} 1
52@ = 1

:HEIST3_6383
if 
  $hei3_spook == 100
goto_if_false @HEIST3_6531
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6508
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_6437
if 
  get_fading_status 
goto_if_false @HEIST3_6461
wait 0
goto @HEIST3_6437

:HEIST3_6461
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6484
if 
  get_fading_status 
goto_if_false @HEIST3_6508
wait 0
goto @HEIST3_6484

:HEIST3_6508
print_now 'HEI3_17' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_6531
if or
  not is_char_in_car 56@ {vehicle} 65@
  is_char_touching_vehicle $scplayer {handle} 65@
  has_car_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @HEIST3_6703
$hei3_spook = 100
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6680
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_6609
if 
  get_fading_status 
goto_if_false @HEIST3_6633
wait 0
goto @HEIST3_6609

:HEIST3_6633
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6656
if 
  get_fading_status 
goto_if_false @HEIST3_6680
wait 0
goto @HEIST3_6656

:HEIST3_6680
print_now 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_6703
goto @HEIST3_6840

:HEIST3_6710
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6817
do_fade 1000 {direction} Fade.Out

:HEIST3_6746
if 
  get_fading_status 
goto_if_false @HEIST3_6770
wait 0
goto @HEIST3_6746

:HEIST3_6770
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6793
if 
  get_fading_status 
goto_if_false @HEIST3_6817
wait 0
goto @HEIST3_6793

:HEIST3_6817
print 'HEI3_18' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_6840
goto @HEIST3_6977

:HEIST3_6847
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_6954
do_fade 1000 {direction} Fade.Out

:HEIST3_6883
if 
  get_fading_status 
goto_if_false @HEIST3_6907
wait 0
goto @HEIST3_6883

:HEIST3_6907
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_6930
if 
  get_fading_status 
goto_if_false @HEIST3_6954
wait 0
goto @HEIST3_6930

:HEIST3_6954
print 'HEI3_14' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_6977
if 
  47@ == 3
goto_if_false @HEIST3_13413
if 
  is_car_dead 65@
goto_if_false @HEIST3_7141
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_7118
do_fade 1000 {direction} Fade.Out

:HEIST3_7047
if 
  get_fading_status 
goto_if_false @HEIST3_7071
wait 0
goto @HEIST3_7047

:HEIST3_7071
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_7094
if 
  get_fading_status 
goto_if_false @HEIST3_7118
wait 0
goto @HEIST3_7094

:HEIST3_7118
print 'HEI3_18' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_7141
if 
  35@ == 0
goto_if_false @HEIST3_7926
if 
  locate_char_on_foot_3d $scplayer {x} 2086.7261 {y} 2074.3521 {z} 10.0579 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @HEIST3_7926
35@ = 1
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST3_7228
if 
  get_fading_status 
goto_if_false @HEIST3_7252
wait 0
goto @HEIST3_7228

:HEIST3_7252
clear_prints 
set_char_has_used_entry_exit $scplayer {x} 2086.7261 {y} 2074.3521 {radius} 5.0579
set_area_visible 3
request_collision -100.432 {y} -23.1933
load_scene -100.432 {y} -23.1933 {z} 999.7261
set_char_coordinates $scplayer {x} -100.432 {y} -23.1933 {z} 999.7261
set_char_heading $scplayer {heading} 0.0
load_special_character 1 {modelName} 'CROGRL2'
request_model 330
request_model 249
request_model 178
request_model 168
request_model 101

:HEIST3_7374
if or
  not has_model_loaded 330
  not has_special_character_loaded 1
goto_if_false @HEIST3_7405
wait 0
goto @HEIST3_7374

:HEIST3_7405
if or
  not has_model_loaded 249
  not has_model_loaded 178
  not has_model_loaded 168
  not has_model_loaded 101
goto_if_false @HEIST3_7446
wait 0
goto @HEIST3_7405

:HEIST3_7446
59@ = create_char PedType.Mission1 {modelId} 168 {x} -100.6538 {y} -17.633 {z} 999.7188
set_char_heading 59@ {heading} 93.7683
60@ = create_char PedType.Mission1 {modelId} 101 {x} -108.0798 {y} -18.0669 {z} 999.7261
set_char_heading 60@ {heading} 89.3157
61@ = create_char PedType.Mission1 {modelId} 249 {x} -105.6009 {y} -13.6508 {z} 999.7261
set_char_heading 61@ {heading} 176.841
62@ = create_char PedType.Mission1 {modelId} 178 {x} -103.7278 {y} -24.3711 {z} 999.7261
set_char_heading 62@ {heading} 349.7995
63@ = create_char PedType.Mission1 {modelId} 178 {x} -104.715 {y} -8.9155 {z} 999.7188
set_char_heading 63@ {heading} 179.3188
56@ = create_char PedType.Special {modelId} 290 {x} -113.9837 {y} -8.3695 {z} 999.7812
set_char_never_targetted 56@ {state} True
set_char_health 56@ {health} 200
set_char_suffers_critical_hits 56@ {state} False
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
set_char_heading 56@ {heading} 183.0375
if 
  has_animation_loaded "CLOTHES"
goto_if_false @HEIST3_7768
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_TORSO" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:HEIST3_7768
remove_blip 70@
remove_blip 68@
58@ = create_char PedType.Mission1 {modelId} 178 {x} -115.8863 {y} -12.0374 {z} 999.7886
set_anim_group_for_char 58@ {animGroup} "SEXYWOMAN"
set_char_decision_maker 58@ {handleOrTemplate} 42@
set_char_heading 58@ {heading} 297.3894
set_char_coordinates $scplayer {x} -100.432 {y} -23.1933 {z} 999.7261
set_char_heading $scplayer {heading} 0.0
wait 1000
do_fade 1000 {direction} Fade.In

:HEIST3_7879
if 
  get_fading_status 
goto_if_false @HEIST3_7903
wait 0
goto @HEIST3_7879

:HEIST3_7903
set_player_control $player1 {state} True
print 'HEI3_29' {time} 5000 {flag} 1

:HEIST3_7926
if 
  35@ == 1
goto_if_false @HEIST3_13413
if 
  locate_char_any_means_3d $scplayer {x} -107.1254 {y} -12.2446 {z} 1000.821 {xRadius} 15.2999 {yRadius} 15.0999 {zRadius} 35.2997 {drawSphere} False
goto_if_false @HEIST3_13283
if 
  not is_char_dead 62@
goto_if_false @HEIST3_8060
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_8060
43@ = set_char_say_context_important 62@ {phrase} SpeechId.EyeingPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False

:HEIST3_8060
if 
  not is_char_dead 63@
goto_if_false @HEIST3_8128
if 
  locate_char_any_means_char_3d $scplayer {target} 63@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_8128
43@ = set_char_say_context_important 63@ {phrase} SpeechId.GenericHiFemale {overrideSilence} True {ignoreMute} False {frontEnd} False

:HEIST3_8128
if 
  not is_char_dead 56@
goto_if_false @HEIST3_13146
if 
  not is_char_dead 58@
goto_if_false @HEIST3_13009
if or
  has_char_been_damaged_by_char 56@ {handle} $scplayer
  has_char_been_damaged_by_char 58@ {handle} $scplayer
goto_if_false @HEIST3_8410
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_8294
do_fade 1000 {direction} Fade.Out

:HEIST3_8223
if 
  get_fading_status 
goto_if_false @HEIST3_8247
wait 0
goto @HEIST3_8223

:HEIST3_8247
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_8270
if 
  get_fading_status 
goto_if_false @HEIST3_8294
wait 0
goto @HEIST3_8270

:HEIST3_8294
if and
  not is_char_dead 56@
  not is_char_head_missing 56@
goto_if_false @HEIST3_8387
35@ = get_char_health 56@
if 
  35@ > 0
goto_if_false @HEIST3_8364
print 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_8380

:HEIST3_8364
print 'HEI3_14' {time} 5000 {flag} 1

:HEIST3_8380
goto @HEIST3_8403

:HEIST3_8387
print 'HEI3_14' {time} 5000 {flag} 1

:HEIST3_8403
goto @HEIST3_22985

:HEIST3_8410
if 
  locate_stopped_char_any_means_3d $scplayer {x} -109.7757 {y} -12.6704 {z} 999.7188 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.1 {drawSphere} True
goto_if_false @HEIST3_13002
clear_area -107.7856 {y} -12.4046 {z} 999.7812 {radius} 50.0 {clearParticles} True
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_fixed_camera_position -113.08 {y} -12.39 {z} 1000.76 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -119.54 {y} -8.15 {z} 1001.83 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} -109.7757 {y} -12.6704 {z} 999.7188
set_char_heading $scplayer {heading} 59.7399
skip_cutscene_start_internal @HEIST3_12821
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_8653
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_9463
if 
  133@ <> 0
goto_if_false @HEIST3_9014
if 
  136@ == 0
goto_if_false @HEIST3_8739
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_8732
clear_mission_audio 135@

:HEIST3_8732
136@ = 1

:HEIST3_8739
if 
  136@ == 1
goto_if_false @HEIST3_8776
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_8776
if 
  136@ == 2
goto_if_false @HEIST3_8836
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_8836
play_mission_audio 134@
print_now $hei3_text(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_8836
if 
  136@ == 3
goto_if_false @HEIST3_9014
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_8953
clear_this_print $hei3_text(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_8918
134@ = 2
135@ = 1
goto @HEIST3_8932

:HEIST3_8918
134@ = 1
135@ = 2

:HEIST3_8932
133@ = 0
136@ = 0
goto @HEIST3_9014

:HEIST3_8953
if 
  not has_mission_audio_loaded 135@
goto_if_false @HEIST3_9014
if 
  8 > 133@
goto_if_false @HEIST3_9014
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
load_mission_audio 135@ {audioId} 89@(142@,44i)

:HEIST3_9014
switch_start 138@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @HEIST3_9363 {caseNum1} 0 {caseLabel1} @HEIST3_9077 {caseNum2} 1 {caseLabel2} @HEIST3_9150 {caseNum3} 2 {caseLabel3} @HEIST3_9279 {caseNum4} -1 {caseLabel4} @HEIST3_9456 {caseNum5} -1 {caseLabel5} @HEIST3_9456 {caseNum6} -1 {caseLabel6} @HEIST3_9456 {caseNum7} -1 {caseLabel7} @HEIST3_9456

:HEIST3_9077
if 
  136@ == 0
goto_if_false @HEIST3_9143
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9124
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_9124
133@ = 4
138@ = 1
141@ = get_game_timer 

:HEIST3_9143
goto @HEIST3_9456

:HEIST3_9150
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9272
if 
  136@ == 0
goto_if_false @HEIST3_9272
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9229
stop_char_facial_talk 56@

:HEIST3_9229
if 
  not is_char_dead 58@
goto_if_false @HEIST3_9253
start_char_facial_talk 58@ {duration} 3000

:HEIST3_9253
133@ = 5
138@ = 2
141@ = get_game_timer 

:HEIST3_9272
goto @HEIST3_9456

:HEIST3_9279
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9356
if 
  136@ == 0
goto_if_false @HEIST3_9356
133@ = 6
138@ = 3
141@ = get_game_timer 

:HEIST3_9356
goto @HEIST3_9456

:HEIST3_9363
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_9449
if 
  136@ == 0
goto_if_false @HEIST3_9449
if 
  not is_char_dead 58@
goto_if_false @HEIST3_9442
stop_char_facial_talk 58@

:HEIST3_9442
137@ = 1

:HEIST3_9449
goto @HEIST3_9456

:HEIST3_9456
goto @HEIST3_8653

:HEIST3_9463
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9571
if 
  not is_char_dead 58@
goto_if_false @HEIST3_9571
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -113.8582 {y} -9.7549 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -114.2882 {y} -11.5372 {z} 999.7886 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 58@
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_9571
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_9662
if 
  48@ == 0
goto_if_false @HEIST3_10222
if 
  137@ == 0
goto_if_false @HEIST3_9997
if 
  133@ <> 0
goto_if_false @HEIST3_9997
if 
  136@ == 0
goto_if_false @HEIST3_9762
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_9755
clear_mission_audio 135@

:HEIST3_9755
136@ = 1

:HEIST3_9762
if 
  136@ == 1
goto_if_false @HEIST3_9799
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_9799
if 
  136@ == 2
goto_if_false @HEIST3_9859
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_9859
play_mission_audio 134@
print_now $hei3_text(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_9859
if 
  136@ == 3
goto_if_false @HEIST3_9997
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_9997
if 
  not is_char_dead 56@
goto_if_false @HEIST3_9914
stop_char_facial_talk 56@

:HEIST3_9914
clear_this_print $hei3_text(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_9962
134@ = 2
135@ = 1
goto @HEIST3_9976

:HEIST3_9962
134@ = 1
135@ = 2

:HEIST3_9976
133@ = 0
136@ = 0
137@ = 1

:HEIST3_9997
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10204
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_10074
if 
  136@ == 0
goto_if_false @HEIST3_10067
48@ = 1

:HEIST3_10067
goto @HEIST3_10197

:HEIST3_10074
if 
  35@ == 0
goto_if_false @HEIST3_10197
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_10197
34@ = get_sequence_progress 56@
if 
  34@ == 2
goto_if_false @HEIST3_10197
if 
  136@ == 0
goto_if_false @HEIST3_10197
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10183
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 2000

:HEIST3_10183
133@ = 7
35@ = 1

:HEIST3_10197
goto @HEIST3_10211

:HEIST3_10204
48@ = 1

:HEIST3_10211
wait 0
goto @HEIST3_9662

:HEIST3_10222
if 
  is_message_being_displayed 
goto_if_false @HEIST3_10246
wait 0
goto @HEIST3_10222

:HEIST3_10246
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10317
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -112.6415 {y} -12.4015 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 247.0
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_10317
set_fixed_camera_position -112.15 {y} -11.94 {z} 1001.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -123.84 {y} -14.32 {z} 1002.43 {switchStyle} SwitchType.JumpCut
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_10389
if 
  48@ == 0
goto_if_false @HEIST3_10724
if 
  148@ <> 0
goto_if_false @HEIST3_10603
if 
  149@ == 0
goto_if_false @HEIST3_10469
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_10462
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_10462
149@ = 1

:HEIST3_10469
if 
  149@ == 1
goto_if_false @HEIST3_10505
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_10505
if 
  149@ == 2
goto_if_false @HEIST3_10549
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_10549
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_10549
if 
  149@ == 3
goto_if_false @HEIST3_10603
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_10603
148@ = 0
149@ = 0
TIMERA = 0

:HEIST3_10603
if 
  149@ == 0
goto_if_false @HEIST3_10647
if 
  2000 > TIMERA
goto_if_false @HEIST3_10647
148@ = 4

:HEIST3_10647
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10706
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_10699
48@ = 1

:HEIST3_10699
goto @HEIST3_10713

:HEIST3_10706
48@ = 1

:HEIST3_10713
wait 0
goto @HEIST3_10389

:HEIST3_10724
if 
  not is_char_dead 56@
goto_if_false @HEIST3_10756
clear_mission_audio MissionAudioSlot.Slot3
task_use_mobile_phone 56@ {start} True
wait 2000

:HEIST3_10756
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_10826
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_11747
if 
  133@ <> 0
goto_if_false @HEIST3_11208
if 
  136@ == 0
goto_if_false @HEIST3_10912
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_10905
clear_mission_audio 135@

:HEIST3_10905
136@ = 1

:HEIST3_10912
if 
  136@ == 1
goto_if_false @HEIST3_10949
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_10949
if 
  136@ == 2
goto_if_false @HEIST3_11009
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_11009
play_mission_audio 134@
print_now $hei3_text(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_11009
if 
  136@ == 3
goto_if_false @HEIST3_11208
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_11147
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11064
stop_char_facial_talk 56@

:HEIST3_11064
clear_this_print $hei3_text(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_11112
134@ = 2
135@ = 1
goto @HEIST3_11126

:HEIST3_11112
134@ = 1
135@ = 2

:HEIST3_11126
133@ = 0
136@ = 0
goto @HEIST3_11208

:HEIST3_11147
if 
  not has_mission_audio_loaded 135@
goto_if_false @HEIST3_11208
if 
  8 > 133@
goto_if_false @HEIST3_11208
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
load_mission_audio 135@ {audioId} 89@(142@,44i)

:HEIST3_11208
switch_start 138@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @HEIST3_11668 {caseNum1} 0 {caseLabel1} @HEIST3_11271 {caseNum2} 1 {caseLabel2} @HEIST3_11344 {caseNum3} 2 {caseLabel3} @HEIST3_11452 {caseNum4} 3 {caseLabel4} @HEIST3_11560 {caseNum5} -1 {caseLabel5} @HEIST3_11740 {caseNum6} -1 {caseLabel6} @HEIST3_11740 {caseNum7} -1 {caseLabel7} @HEIST3_11740

:HEIST3_11271
if 
  136@ == 0
goto_if_false @HEIST3_11337
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11318
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_11318
133@ = 8
138@ = 1
141@ = get_game_timer 

:HEIST3_11337
goto @HEIST3_11740

:HEIST3_11344
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11445
if 
  136@ == 0
goto_if_false @HEIST3_11445
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11426
start_char_facial_talk 56@ {duration} 3000

:HEIST3_11426
133@ = 9
138@ = 2
141@ = get_game_timer 

:HEIST3_11445
goto @HEIST3_11740

:HEIST3_11452
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11553
if 
  136@ == 0
goto_if_false @HEIST3_11553
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11534
start_char_facial_talk 56@ {duration} 2000

:HEIST3_11534
133@ = 10
138@ = 3
141@ = get_game_timer 

:HEIST3_11553
goto @HEIST3_11740

:HEIST3_11560
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11661
if 
  136@ == 0
goto_if_false @HEIST3_11661
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11642
start_char_facial_talk 56@ {duration} 3000

:HEIST3_11642
133@ = 11
138@ = 4
141@ = get_game_timer 

:HEIST3_11661
goto @HEIST3_11740

:HEIST3_11668
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_11733
if 
  136@ == 0
goto_if_false @HEIST3_11733
137@ = 1

:HEIST3_11733
goto @HEIST3_11740

:HEIST3_11740
goto @HEIST3_10826

:HEIST3_11747
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11804
34@ = get_script_task_status 56@ {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_11799
task_use_mobile_phone 56@ {start} False

:HEIST3_11799
mark_model_as_no_longer_needed 330

:HEIST3_11804
if 
  not is_char_dead 56@
goto_if_false @HEIST3_11921
75@ = open_sequence_task 
task_achieve_heading -1 {heading} 87.0
task_go_straight_to_coord -1 {x} -114.2882 {y} -11.5372 {z} 999.7886 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -113.8582 {y} -9.7549 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -113.9837 {y} -8.3695 {z} 999.7812 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_11921
if 
  not is_char_dead 58@
goto_if_false @HEIST3_11990
75@ = open_sequence_task 
task_stand_still -1 {time} 3000
task_go_straight_to_coord -1 {x} -102.0 {y} -12.0 {z} 1001.0 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 58@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_11990
set_fixed_camera_position -106.63 {y} -11.88 {z} 1001.28 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -120.22 {y} -11.77 {z} 1000.71 {switchStyle} SwitchType.JumpCut
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_12062
if 
  48@ == 0
goto_if_false @HEIST3_12215
if 
  not is_char_dead 56@
goto_if_false @HEIST3_12197
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_12139
48@ = 1
goto @HEIST3_12190

:HEIST3_12139
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_12190
34@ = get_sequence_progress 56@
if 
  34@ == 3
goto_if_false @HEIST3_12190
48@ = 1

:HEIST3_12190
goto @HEIST3_12204

:HEIST3_12197
48@ = 1

:HEIST3_12204
wait 0
goto @HEIST3_12062

:HEIST3_12215
48@ = 0
148@ = 3
149@ = 0

:HEIST3_12236
if 
  48@ == 0
goto_if_false @HEIST3_12461
if 
  148@ <> 0
goto_if_false @HEIST3_12450
if 
  149@ == 0
goto_if_false @HEIST3_12316
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_12309
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_12309
149@ = 1

:HEIST3_12316
if 
  149@ == 1
goto_if_false @HEIST3_12352
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_12352
if 
  149@ == 2
goto_if_false @HEIST3_12396
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_12396
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_12396
if 
  149@ == 3
goto_if_false @HEIST3_12450
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_12450
148@ = 0
149@ = 0
48@ = 1

:HEIST3_12450
wait 0
goto @HEIST3_12236

:HEIST3_12461
do_fade 1500 {direction} Fade.Out

:HEIST3_12468
if 
  get_fading_status 
goto_if_false @HEIST3_12492
wait 0
goto @HEIST3_12468

:HEIST3_12492
delete_char 56@
mark_char_as_no_longer_needed 56@
56@ = create_char PedType.Mission1 {modelId} 194 {x} -100.3376 {y} -20.1905 {z} 999.7812
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
set_char_heading 56@ {heading} 183.4416
set_fixed_camera_position -101.69 {y} -20.2 {z} 1000.67 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -84.83 {y} -44.52 {z} 1005.63 {switchStyle} SwitchType.JumpCut
do_fade 1500 {direction} Fade.In

:HEIST3_12619
if 
  get_fading_status 
goto_if_false @HEIST3_12643
wait 0
goto @HEIST3_12619

:HEIST3_12643
if 
  not is_char_dead 56@
goto_if_false @HEIST3_12705
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -100.2427 {y} -24.2149 {z} 999.7886 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_12705
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_12726
if 
  48@ == 0
goto_if_false @HEIST3_12821
if 
  not is_char_dead 56@
goto_if_false @HEIST3_12803
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_12796
48@ = 1

:HEIST3_12796
goto @HEIST3_12810

:HEIST3_12803
48@ = 1

:HEIST3_12810
wait 0
goto @HEIST3_12726

:HEIST3_12821
skip_cutscene_end 
clear_mission_audio 134@
clear_mission_audio 135@
clear_prints 
clear_mission_audio MissionAudioSlot.Slot3
do_fade 500 {direction} Fade.In

:HEIST3_12846
if 
  get_fading_status 
goto_if_false @HEIST3_12870
wait 0
goto @HEIST3_12846

:HEIST3_12870
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
64@ = create_pickup #CLOTHESP {pickupType} PickupType.Once {x} -114.6156 {y} -8.6308 {z} 1000.713
73@ = add_blip_for_pickup 64@
set_blip_entry_exit 73@ {x} 2090.0 {y} 2074.0 {radius} 10.0
print 'HEI3_04' {time} 5000 {flag} 1
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 58@
mark_model_as_no_longer_needed 330
unload_special_character 1
delete_char 58@
delete_char 56@
request_model 555
35@ = 0
47@ = 4

:HEIST3_13002
goto @HEIST3_13139

:HEIST3_13009
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_13116
do_fade 1000 {direction} Fade.Out

:HEIST3_13045
if 
  get_fading_status 
goto_if_false @HEIST3_13069
wait 0
goto @HEIST3_13045

:HEIST3_13069
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_13092
if 
  get_fading_status 
goto_if_false @HEIST3_13116
wait 0
goto @HEIST3_13092

:HEIST3_13116
print 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_13139
goto @HEIST3_13276

:HEIST3_13146
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_13253
do_fade 1000 {direction} Fade.Out

:HEIST3_13182
if 
  get_fading_status 
goto_if_false @HEIST3_13206
wait 0
goto @HEIST3_13182

:HEIST3_13206
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_13229
if 
  get_fading_status 
goto_if_false @HEIST3_13253
wait 0
goto @HEIST3_13229

:HEIST3_13253
print 'HEI3_14' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_13276
goto @HEIST3_13413

:HEIST3_13283
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_13390
do_fade 1000 {direction} Fade.Out

:HEIST3_13319
if 
  get_fading_status 
goto_if_false @HEIST3_13343
wait 0
goto @HEIST3_13319

:HEIST3_13343
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_13366
if 
  get_fading_status 
goto_if_false @HEIST3_13390
wait 0
goto @HEIST3_13366

:HEIST3_13390
print 'HEI3_16' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_13413
if 
  47@ == 4
goto_if_false @HEIST3_14396
if 
  50@ == 0
goto_if_false @HEIST3_14311
if 
  35@ == 0
goto_if_false @HEIST3_13478
disable_all_entry_exits True
35@ = 1

:HEIST3_13478
if 
  has_pickup_been_collected 64@
goto_if_false @HEIST3_14304
remove_pickup 64@
clear_prints 
$players_money = store_score $player1
if 
  $players_money >= 200
goto_if_false @HEIST3_13543
add_score $player1 {money} -200
goto @HEIST3_13576

:HEIST3_13543
if 
  $players_money > 0
goto_if_false @HEIST3_13576
$players_money *= -1
add_score $player1 {money} $players_money

:HEIST3_13576
set_player_control $player1 {state} False
set_music_does_fade False
do_fade 1500 {direction} Fade.Out

:HEIST3_13594
if 
  get_fading_status 
goto_if_false @HEIST3_13618
wait 0
goto @HEIST3_13594

:HEIST3_13618
switch_widescreen True
remove_blip 73@
store_clothes_state 
53@ = 1
give_player_clothes_outside_shop $player1 {textureName} "GIMPLEG" {modelName} "GIMPLEG" {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
48@ = 0
148@ = 1
149@ = 0

:HEIST3_13687
if 
  48@ == 0
goto_if_false @HEIST3_13912
if 
  148@ <> 0
goto_if_false @HEIST3_13901
if 
  149@ == 0
goto_if_false @HEIST3_13767
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_13760
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_13760
149@ = 1

:HEIST3_13767
if 
  149@ == 1
goto_if_false @HEIST3_13803
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_13803
if 
  149@ == 2
goto_if_false @HEIST3_13847
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_13847
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_13847
if 
  149@ == 3
goto_if_false @HEIST3_13901
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_13901
148@ = 0
149@ = 0
48@ = 1

:HEIST3_13901
wait 0
goto @HEIST3_13687

:HEIST3_13912
set_fixed_camera_position -111.19 {y} -12.67 {z} 1002.69 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -124.89 {y} -3.78 {z} 997.61 {switchStyle} SwitchType.JumpCut
clear_area -113.9837 {y} -8.3695 {z} 999.7812 {radius} 20.0 {clearParticles} True
set_char_coordinates $scplayer {x} -113.9837 {y} -8.3695 {z} 999.7812
set_char_heading $scplayer {heading} 183.0
do_fade 1000 {direction} Fade.In

:HEIST3_14024
if 
  get_fading_status 
goto_if_false @HEIST3_14048
wait 0
goto @HEIST3_14024

:HEIST3_14048
set_music_does_fade True
74@ = open_sequence_task 
task_stand_still -1 {time} 1000
task_go_straight_to_coord -1 {x} -113.8582 {y} -9.7549 {z} 999.7812 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} -114.2882 {y} -11.5372 {z} 999.7886 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 252.0
task_scratch_head -1
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@
48@ = 0

:HEIST3_14148
if 
  48@ == 0
goto_if_false @HEIST3_14243
if 
  not is_char_dead $scplayer
goto_if_false @HEIST3_14225
34@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_14218
48@ = 1

:HEIST3_14218
goto @HEIST3_14232

:HEIST3_14225
48@ = 1

:HEIST3_14232
wait 0
goto @HEIST3_14148

:HEIST3_14243
disable_all_entry_exits False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
print 'HEI3_30' {time} 5000 {flag} 1
remove_blip 70@
70@ = add_blip_for_coord 77@ {y} 78@ {z} 79@
50@ = 1

:HEIST3_14304
goto @HEIST3_14396

:HEIST3_14311
if 
  locate_char_any_means_3d $scplayer {x} -100.5496 {y} -24.1101 {z} 999.7886 {xRadius} 1.3 {yRadius} 1.3 {zRadius} 50.0 {drawSphere} False
goto_if_false @HEIST3_14366
47@ = 5

:HEIST3_14366
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @HEIST3_14396
47@ = 5

:HEIST3_14396
if 
  47@ == 5
goto_if_false @HEIST3_16063
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST3_14428
if 
  get_fading_status 
goto_if_false @HEIST3_14452
wait 0
goto @HEIST3_14428

:HEIST3_14452
remove_blip 70@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 178
mark_model_as_no_longer_needed 168
mark_model_as_no_longer_needed 101
set_area_visible 0
request_model 162
request_model 321
request_model 555

:HEIST3_14525
if or
  not has_model_loaded 162
  not has_model_loaded 321
  not has_model_loaded 555
goto_if_false @HEIST3_14562
wait 0
goto @HEIST3_14525

:HEIST3_14562
load_scene 2085.1201 {y} 2077.0859 {z} 15.8434
clear_area 2105.957 {y} 2039.186 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2047.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2055.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2060.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2065.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2093.9131 {y} 2070.0811 {z} 9.8203 {radius} 6.0 {clearParticles} True
clear_area 2088.8269 {y} 2076.001 {z} 9.8203 {radius} 12.0 {clearParticles} True
67@ = create_car 555 {x} 2103.957 {y} 2073.186 {z} 9.8203
set_car_heading 67@ {heading} 270.8618
mark_car_as_no_longer_needed 67@
mark_model_as_no_longer_needed 555
set_char_has_used_entry_exit $scplayer {x} -100.3132 {y} -25.1503 {radius} 20.0
set_char_coordinates $scplayer {x} 2085.1201 {y} 2077.0859 {z} 15.8434
set_char_heading $scplayer {heading} 268.8011
set_area_visible 0
56@ = create_char PedType.Mission1 {modelId} 194 {x} 2085.7209 {y} 2074.76 {z} 10.0579
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
68@ = add_blip_for_char 56@
set_char_heading 56@ {heading} 271.0
flush_route 
extend_route 2037.671 {y} 2743.196 {z} 9.6875
delete_car 65@
mark_car_as_no_longer_needed 65@
custom_plate_for_next_car 589 {text} "_SPANK__"
65@ = create_car 589 {x} 2095.9131 {y} 2074.0811 {z} 9.8203
change_car_colour 65@ {color1} 126 {color2} 126
set_can_burst_car_tyres 65@ {state} False
lock_car_doors 65@ {lockStatus} CarLock.LockoutPlayerOnly
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15115
set_car_coordinates 65@ {x} 2095.9131 {y} 2074.0811 {z} 9.8203
set_car_heading 65@ {heading} 4.444
set_car_health 65@ {health} 1000
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2093.418 {y} 2073.646 {z} 9.8203 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver -1 {vehicle} 65@ {time} 20000
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_15115
clear_prints 
print 'HEI3_09' {time} 5000 {flag} 1
set_fixed_camera_position 2098.5 {y} 2076.1201 {z} 11.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2075.2 {y} 2067.3899 {z} 7.26 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 1500 {direction} Fade.In

:HEIST3_15195
if 
  get_fading_status 
goto_if_false @HEIST3_15219
wait 0
goto @HEIST3_15195

:HEIST3_15219
49@ = 0
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_15247
if 
  48@ == 0
goto_if_false @HEIST3_15378
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST3_15296
48@ = 1
49@ = 1

:HEIST3_15296
if and
  not is_char_dead 56@
  not is_car_dead 65@
goto_if_false @HEIST3_15360
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_15353
48@ = 1

:HEIST3_15353
goto @HEIST3_15367

:HEIST3_15360
48@ = 1

:HEIST3_15367
wait 0
goto @HEIST3_15247

:HEIST3_15378
if 
  49@ == 0
goto_if_false @HEIST3_15631
request_car_recording 803

:HEIST3_15401
if 
  not has_car_recording_been_loaded 803
goto_if_false @HEIST3_15428
wait 0
goto @HEIST3_15401

:HEIST3_15428
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15452
start_playback_recorded_car 65@ {path} 803

:HEIST3_15452
load_scene_in_direction 2084.0801 {y} 2068.6201 {z} 11.22 {heading} 206.8418
set_fixed_camera_position 2088.5061 {y} 2079.9851 {z} 10.6126 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2088.675 {y} 2079.0 {z} 10.5742 {switchStyle} SwitchType.JumpCut
48@ = 0

:HEIST3_15532
if 
  48@ == 0
goto_if_false @HEIST3_15631
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST3_15581
49@ = 1
48@ = 1

:HEIST3_15581
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15620
if 
  not is_playback_going_on_for_car 65@
goto_if_false @HEIST3_15620
48@ = 1

:HEIST3_15620
wait 0
goto @HEIST3_15532

:HEIST3_15631
remove_car_recording 803
clear_prints 
if 
  49@ == 1
goto_if_false @HEIST3_15734
if and
  not is_car_dead 65@
  not is_char_dead 56@
goto_if_false @HEIST3_15734
if 
  not is_char_in_car 56@ {vehicle} 65@
goto_if_false @HEIST3_15704
warp_char_into_car 56@ {vehicle} 65@

:HEIST3_15704
set_car_coordinates 65@ {x} 2109.0039 {y} 2039.756 {z} 9.8125
set_car_heading 65@ {heading} 269.4456

:HEIST3_15734
if 
  not is_car_dead 65@
goto_if_false @HEIST3_15769
close_all_car_doors 65@
lock_car_doors 65@ {lockStatus} CarLock.ForceShutDoors
lock_car_doors 65@ {lockStatus} CarLock.LockoutPlayerOnly

:HEIST3_15769
set_char_coordinates $scplayer {x} 2089.6531 {y} 2083.562 {z} 9.8203
set_char_heading $scplayer {heading} 223.4858
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
$hei3_spook = 0
display_onscreen_counter_with_string $hei3_spook {display} CounterDisplay.Bar {text} 'HEI3_94'
flush_route 
extend_route 2123.365 {y} 2030.2729 {z} 9.6719
extend_route 2038.803 {y} 2023.952 {z} 9.6875
extend_route 1929.384 {y} 2175.1289 {z} 9.7972
extend_route 1931.512 {y} 2385.7971 {z} 9.6719
extend_route 2029.426 {y} 2417.2251 {z} 9.7143
extend_route 2045.03 {y} 2745.491 {z} 9.6719
extend_route 2035.317 {y} 2737.322 {z} 9.6719
extend_route 2035.338 {y} 2726.573 {z} 9.8281
if and
  not is_car_dead 65@
  not is_char_dead 56@
goto_if_false @HEIST3_16035
75@ = open_sequence_task 
task_drive_point_route_advanced -1 {vehicle} 65@ {speed} 20.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCarsObeyLights
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_16035
TIMERA = 0
TIMERB = 0
51@ = 0
47@ = 6

:HEIST3_16063
if 
  47@ == 6
goto_if_false @HEIST3_18150
if 
  not is_char_dead 56@
goto_if_false @HEIST3_18020
if 
  not is_car_dead 65@
goto_if_false @HEIST3_17883
34@ = get_script_task_status 56@ {taskId} 1560
if 
  55@ == 0
goto_if_false @HEIST3_17229
if 
  locate_char_any_means_3d $scplayer {x} 2037.891 {y} 2749.5339 {z} 9.8125 {xRadius} 40.0 {yRadius} 40.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @HEIST3_16227
  locate_char_any_means_3d $scplayer {x} 2037.891 {y} 2749.5339 {z} 9.8125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True

:HEIST3_16227
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_16302
remove_blip 68@
68@ = add_blip_for_coord 2038.8361 {y} 2749.803 {z} 9.8203
clear_prints 
print 'HEI3_96' {time} 5000 {flag} 1
55@ = 1
goto @HEIST3_17222

:HEIST3_16302
80@, 81@, 82@ = get_char_coordinates $scplayer
83@, 84@, 85@ = get_char_coordinates 56@
46@ = get_distance_between_coords_3d 80@ {fromY} 81@ {fromZ} 82@ {toX} 83@ {toY} 84@ {toZ} 85@
cset_lvar_int_to_lvar_float 36@ =# 46@
if 
  36@ > 140
goto_if_false @HEIST3_16591
clear_prints 
if 
  36@ > 168
goto_if_false @HEIST3_16575
if 
  not is_char_on_screen 56@
goto_if_false @HEIST3_16552
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_16522
do_fade 1000 {direction} Fade.Out

:HEIST3_16451
if 
  get_fading_status 
goto_if_false @HEIST3_16475
wait 0
goto @HEIST3_16451

:HEIST3_16475
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_16498
if 
  get_fading_status 
goto_if_false @HEIST3_16522
wait 0
goto @HEIST3_16498

:HEIST3_16522
print 'HEI3_16' {time} 5000 {flag} 1
goto @HEIST3_22985
goto @HEIST3_16568

:HEIST3_16552
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_16568
goto @HEIST3_16591

:HEIST3_16575
print 'HEI3_10' {time} 1000 {flag} 1

:HEIST3_16591
if 
  51@ == 1
goto_if_false @HEIST3_16742
if 
  locate_char_any_means_char_3d $scplayer {target} 56@ {xRadius} 22.5 {yRadius} 22.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST3_16684
if 
  TIMERA > 64
goto_if_false @HEIST3_16677
$hei3_spook += 1
TIMERA = 0

:HEIST3_16677
goto @HEIST3_16735

:HEIST3_16684
if 
  TIMERA > 150
goto_if_false @HEIST3_16735
if 
  $hei3_spook > 0
goto_if_false @HEIST3_16728
$hei3_spook -= 1

:HEIST3_16728
TIMERA = 0

:HEIST3_16735
goto @HEIST3_16786

:HEIST3_16742
if 
  51@ == 0
goto_if_false @HEIST3_16786
if 
  TIMERB > 4000
goto_if_false @HEIST3_16786
51@ = 1

:HEIST3_16786
if 
  0 > $hei3_spook
goto_if_false @HEIST3_16818
$hei3_spook = 0
goto @HEIST3_16843

:HEIST3_16818
if 
  $hei3_spook > 100
goto_if_false @HEIST3_16843
$hei3_spook = 100

:HEIST3_16843
if 
  $hei3_spook > 10
goto_if_false @HEIST3_16902
if 
  52@ == 0
goto_if_false @HEIST3_16902
print_now 'HEI3_11' {time} 5000 {flag} 1
52@ = 1

:HEIST3_16902
if 
  $hei3_spook == 100
goto_if_false @HEIST3_17050
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_17027
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_16956
if 
  get_fading_status 
goto_if_false @HEIST3_16980
wait 0
goto @HEIST3_16956

:HEIST3_16980
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_17003
if 
  get_fading_status 
goto_if_false @HEIST3_17027
wait 0
goto @HEIST3_17003

:HEIST3_17027
print_now 'HEI3_17' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_17050
if or
  not is_char_in_car 56@ {vehicle} 65@
  is_char_touching_vehicle $scplayer {handle} 65@
  has_car_been_damaged_by_char 65@ {handle} $scplayer
goto_if_false @HEIST3_17222
$hei3_spook = 100
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_17199
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST3_17128
if 
  get_fading_status 
goto_if_false @HEIST3_17152
wait 0
goto @HEIST3_17128

:HEIST3_17152
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_17175
if 
  get_fading_status 
goto_if_false @HEIST3_17199
wait 0
goto @HEIST3_17175

:HEIST3_17199
print_now 'HEI3_31' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_17222
goto @HEIST3_17876

:HEIST3_17229
if 
  locate_char_any_means_3d $scplayer {x} 2037.891 {y} 2749.5339 {z} 9.8125 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HEIST3_17876
remove_blip 68@
clear_area 2034.7939 {y} 2724.4651 {z} 9.8281 {radius} 20.0 {clearParticles} True
clear_onscreen_counter $hei3_spook
set_player_control $player1 {state} False
switch_widescreen True
clear_prints 
set_car_coordinates 65@ {x} 2035.01 {y} 2725.3601 {z} 9.8281
set_car_heading 65@ {heading} 184.0343
set_fixed_camera_position 2041.2061 {y} 2753.3391 {z} 11.9601 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2040.6479 {y} 2752.5149 {z} 11.8569 {switchStyle} SwitchType.JumpCut
skip_cutscene_start_internal @HEIST3_17626
if 
  not is_char_dead 56@
goto_if_false @HEIST3_17517
75@ = open_sequence_task 
if 
  is_char_in_any_car 56@
goto_if_false @HEIST3_17453
task_leave_any_car -1

:HEIST3_17453
task_go_straight_to_coord -1 {x} 2037.468 {y} 2724.1421 {z} 9.8281 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 2037.3781 {y} 2721.449 {z} 10.5469 {speed} MoveState.Walk {time} -1
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_17517
48@ = 0
TIMERA = 0

:HEIST3_17531
if 
  48@ == 0
goto_if_false @HEIST3_17626
if 
  not is_char_dead 56@
goto_if_false @HEIST3_17608
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_17601
48@ = 1

:HEIST3_17601
goto @HEIST3_17615

:HEIST3_17608
48@ = 1

:HEIST3_17615
wait 0
goto @HEIST3_17531

:HEIST3_17626
skip_cutscene_end 
clear_area 1936.196 {y} 2734.011 {z} 9.8203 {radius} 2.0 {clearParticles} True
57@ = create_char PedType.Mission2 {modelId} 162 {x} 1999.788 {y} 2733.6919 {z} 9.8203
set_char_heading 57@ {heading} 354.8084
give_weapon_to_char 57@ {weaponType} WeaponType.Dildo1 {ammo} 0
set_current_char_weapon 57@ {weaponType} WeaponType.Dildo1
76@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2021.594 {y} 2734.5759 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2029.786 {y} 2730.5391 {z} 9.8281 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2038.505 {y} 2729.8459 {z} 9.8281 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2037.28 {y} 2722.5669 {z} 9.8281 {speed} MoveState.Walk {time} -2
close_sequence_task 76@
perform_sequence_task 57@ {sequence} 76@
clear_sequence_task 76@
restore_camera_jumpcut 
delete_char 56@
mark_char_as_no_longer_needed 56@
mark_model_as_no_longer_needed 194
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
print 'HEI3_08' {time} 8000 {flag} 1
37@ = get_game_timer 
47@ = 8

:HEIST3_17876
goto @HEIST3_18013

:HEIST3_17883
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_17990
do_fade 1000 {direction} Fade.Out

:HEIST3_17919
if 
  get_fading_status 
goto_if_false @HEIST3_17943
wait 0
goto @HEIST3_17919

:HEIST3_17943
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_17966
if 
  get_fading_status 
goto_if_false @HEIST3_17990
wait 0
goto @HEIST3_17966

:HEIST3_17990
print 'HEI3_18' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_18013
goto @HEIST3_18150

:HEIST3_18020
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_18127
do_fade 1000 {direction} Fade.Out

:HEIST3_18056
if 
  get_fading_status 
goto_if_false @HEIST3_18080
wait 0
goto @HEIST3_18056

:HEIST3_18080
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_18103
if 
  get_fading_status 
goto_if_false @HEIST3_18127
wait 0
goto @HEIST3_18103

:HEIST3_18127
print 'HEI3_14' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_18150
if 
  47@ == 8
goto_if_false @HEIST3_18675
if 
  not is_char_dead 57@
goto_if_false @HEIST3_18631
if 
  locate_char_any_means_3d 57@ {x} 2037.312 {y} 2722.2881 {z} 10.8281 {xRadius} 1.2 {yRadius} 1.6 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST3_18367
clear_prints 
remove_char_elegantly 57@
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_18344
do_fade 1000 {direction} Fade.Out

:HEIST3_18273
if 
  get_fading_status 
goto_if_false @HEIST3_18297
wait 0
goto @HEIST3_18273

:HEIST3_18297
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_18320
if 
  get_fading_status 
goto_if_false @HEIST3_18344
wait 0
goto @HEIST3_18320

:HEIST3_18344
print 'HEI3_92' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_18367
34@ = get_script_task_status 57@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 1
goto_if_false @HEIST3_18447
34@ = get_sequence_progress 57@
if 
  34@ == 2
goto_if_false @HEIST3_18440
clear_prints 
print 'HEI3_93' {time} 5000 {flag} 1

:HEIST3_18440
goto @HEIST3_18624

:HEIST3_18447
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_18624
if 
  not locate_char_any_means_char_3d $scplayer {target} 57@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HEIST3_18624
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_18624
do_fade 1000 {direction} Fade.Out

:HEIST3_18535
if 
  get_fading_status 
goto_if_false @HEIST3_18559
wait 0
goto @HEIST3_18535

:HEIST3_18559
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_18582
if 
  get_fading_status 
goto_if_false @HEIST3_18606
wait 0
goto @HEIST3_18582

:HEIST3_18606
clear_prints 
print 'HEI3_15' {time} 5000 {flag} 1

:HEIST3_18624
goto @HEIST3_18675

:HEIST3_18631
remove_blip 69@
clear_prints 
print 'HEI3_22' {time} 5000 {flag} 1
71@ = add_blip_for_coord 86@ {y} 87@ {z} 88@
47@ = 9

:HEIST3_18675
if 
  47@ == 9
goto_if_false @HEIST3_19967
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 2037.307 {y} 2722.106 {z} 10.2989 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @HEIST3_19967
clear_prints 
remove_blip 71@
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 2037.165 {y} 2721.895 {z} 10.2989
set_char_heading $scplayer {heading} 174.4355
set_fixed_camera_position 2035.66 {y} 2722.75 {z} 11.84 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2039.39 {y} 2717.3101 {z} 12.2 {switchStyle} SwitchType.JumpCut
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
148@ = 2
149@ = 0
150@ = 0

:HEIST3_18931
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_19534
if 
  148@ <> 0
goto_if_false @HEIST3_19156
if 
  149@ == 0
goto_if_false @HEIST3_19015
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_19008
clear_mission_audio MissionAudioSlot.Slot3

:HEIST3_19008
149@ = 1

:HEIST3_19015
if 
  149@ == 1
goto_if_false @HEIST3_19051
load_mission_audio MissionAudioSlot.Slot3 {audioId} 143@(148@,5i)
149@ = 2

:HEIST3_19051
if 
  149@ == 2
goto_if_false @HEIST3_19095
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST3_19095
play_mission_audio MissionAudioSlot.Slot3
149@ = 3

:HEIST3_19095
if 
  149@ == 3
goto_if_false @HEIST3_19156
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST3_19156
148@ = 0
149@ = 0
48@ = 1
TIMERA = 0

:HEIST3_19156
if 
  133@ <> 0
goto_if_false @HEIST3_19455
if 
  136@ == 0
goto_if_false @HEIST3_19220
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_19213
clear_mission_audio 135@

:HEIST3_19213
136@ = 1

:HEIST3_19220
if 
  136@ == 1
goto_if_false @HEIST3_19257
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_19257
if 
  136@ == 2
goto_if_false @HEIST3_19317
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_19317
play_mission_audio 134@
print_now $hei3_text(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_19317
if 
  136@ == 3
goto_if_false @HEIST3_19455
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_19455
if 
  not is_char_dead 56@
goto_if_false @HEIST3_19372
stop_char_facial_talk 56@

:HEIST3_19372
clear_this_print $hei3_text(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_19420
134@ = 2
135@ = 1
goto @HEIST3_19434

:HEIST3_19420
134@ = 1
135@ = 2

:HEIST3_19434
133@ = 0
136@ = 0
137@ = 1

:HEIST3_19455
if 
  136@ == 0
goto_if_false @HEIST3_19527
if 
  149@ == 0
goto_if_false @HEIST3_19527
if 
  not is_char_dead 56@
goto_if_false @HEIST3_19520
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_19520
133@ = 12

:HEIST3_19527
goto @HEIST3_18931

:HEIST3_19534
if 
  is_message_being_displayed 
goto_if_false @HEIST3_19558
wait 0
goto @HEIST3_19534

:HEIST3_19558
do_fade 1000 {direction} Fade.Out

:HEIST3_19565
if 
  get_fading_status 
goto_if_false @HEIST3_19589
wait 0
goto @HEIST3_19565

:HEIST3_19589
set_area_visible 6
load_special_character 1 {modelName} 'CROGRL2'

:HEIST3_19606
if 
  not has_special_character_loaded 1
goto_if_false @HEIST3_19632
wait 0
goto @HEIST3_19606

:HEIST3_19632
request_collision 344.8872 {y} 305.4298
load_scene 344.8872 {y} 305.4298 {z} 998.2638
display_radar False
set_char_coordinates $scplayer {x} 344.412 {y} 305.033 {z} 998.1484
set_char_heading $scplayer {heading} 296.283
mark_char_as_no_longer_needed 57@
mark_car_as_no_longer_needed 66@
mark_car_as_no_longer_needed 65@
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 507
mark_model_as_no_longer_needed 589
clear_char_tasks $scplayer
clear_prints 
56@ = create_char PedType.Special {modelId} 290 {x} 349.1921 {y} 308.5705 {z} 998.1484
set_char_decision_maker 56@ {handleOrTemplate} 42@
set_char_area_visible 56@ {areaId} 6
set_char_area_visible $scplayer {areaId} 6
set_anim_group_for_char 56@ {animGroup} "SEXYWOMAN"
set_char_heading 56@ {heading} 147.245
set_fixed_camera_position 348.8104 {y} 310.0784 {z} 999.4993 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 348.6377 {y} 309.0935 {z} 999.5004 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 344.412 {y} 305.033 {z} 998.1484
set_char_heading $scplayer {heading} 296.283
set_char_coordinates 56@ {x} 349.1921 {y} 308.5705 {z} 998.1484
set_char_heading 56@ {heading} 147.245
task_turn_char_to_face_char $scplayer {target} 56@
wait 1000
do_fade 1000 {direction} Fade.In

:HEIST3_19936
if 
  get_fading_status 
goto_if_false @HEIST3_19960
wait 0
goto @HEIST3_19936

:HEIST3_19960
47@ = 10

:HEIST3_19967
if and
  47@ >= 5
  9 > 47@
goto_if_false @HEIST3_20065
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @HEIST3_20065
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_20065
print 'HEI3_34' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_20065
if 
  47@ == 10
goto_if_false @HEIST3_22141
skip_cutscene_start_internal @HEIST3_22078
clear_prints 
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_20162
wait 0
if 
  137@ == 0
goto_if_false @HEIST3_22078
if 
  133@ <> 0
goto_if_false @HEIST3_20523
if 
  136@ == 0
goto_if_false @HEIST3_20248
if 
  has_mission_audio_loaded 135@
goto_if_false @HEIST3_20241
clear_mission_audio 135@

:HEIST3_20241
136@ = 1

:HEIST3_20248
if 
  136@ == 1
goto_if_false @HEIST3_20285
load_mission_audio 134@ {audioId} 89@(133@,44i)
136@ = 2

:HEIST3_20285
if 
  136@ == 2
goto_if_false @HEIST3_20345
if 
  has_mission_audio_loaded 134@
goto_if_false @HEIST3_20345
play_mission_audio 134@
print_now $hei3_text(133@,44s) {time} 10000 {flag} 1
136@ = 3

:HEIST3_20345
if 
  136@ == 3
goto_if_false @HEIST3_20523
if 
  has_mission_audio_finished 134@
goto_if_false @HEIST3_20462
clear_this_print $hei3_text(133@,44s)
if 
  134@ == 1
goto_if_false @HEIST3_20427
134@ = 2
135@ = 1
goto @HEIST3_20441

:HEIST3_20427
134@ = 1
135@ = 2

:HEIST3_20441
133@ = 0
136@ = 0
goto @HEIST3_20523

:HEIST3_20462
if 
  not has_mission_audio_loaded 135@
goto_if_false @HEIST3_20523
if 
  8 > 133@
goto_if_false @HEIST3_20523
set_lvar_int_to_lvar_int 142@ = 133@
142@ += 1
load_mission_audio 135@ {audioId} 89@(142@,44i)

:HEIST3_20523
switch_start 138@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @HEIST3_21978 {caseNum1} 0 {caseLabel1} @HEIST3_20586 {caseNum2} 1 {caseLabel2} @HEIST3_20659 {caseNum3} 2 {caseLabel3} @HEIST3_20874 {caseNum4} 3 {caseLabel4} @HEIST3_20987 {caseNum5} 4 {caseLabel5} @HEIST3_21229 {caseNum6} 5 {caseLabel6} @HEIST3_21413 {caseNum7} 6 {caseLabel7} @HEIST3_21789

:HEIST3_20586
if 
  136@ == 0
goto_if_false @HEIST3_20652
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20633
stop_char_facial_talk 56@
start_char_facial_talk 56@ {duration} 3000

:HEIST3_20633
133@ = 13
138@ = 1
141@ = get_game_timer 

:HEIST3_20652
goto @HEIST3_22071

:HEIST3_20659
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_20867
if 
  136@ == 0
goto_if_false @HEIST3_20867
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20819
74@ = open_sequence_task 
task_look_at_char -1 {target} 56@ {time} 20000
task_go_straight_to_coord -1 {x} 347.0207 {y} 306.2751 {z} 998.2088 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 348.2744 {y} 307.7908 {z} 998.204 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 56@
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@

:HEIST3_20819
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20848
stop_char_facial_talk 56@
start_char_facial_talk $scplayer {duration} 3000

:HEIST3_20848
133@ = 14
138@ = 2
141@ = get_game_timer 

:HEIST3_20867
goto @HEIST3_22071

:HEIST3_20874
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_20980
if 
  136@ == 0
goto_if_false @HEIST3_20980
if 
  not is_char_dead 56@
goto_if_false @HEIST3_20961
stop_char_facial_talk $scplayer
start_char_facial_talk 56@ {duration} 3000

:HEIST3_20961
133@ = 15
138@ = 3
141@ = get_game_timer 

:HEIST3_20980
goto @HEIST3_22071

:HEIST3_20987
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21222
if 
  136@ == 0
goto_if_false @HEIST3_21222
48@ = 0
35@ = 0
TIMERA = 0

:HEIST3_21066
if 
  48@ == 0
goto_if_false @HEIST3_21174
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21156
34@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_21149
if 
  not is_message_being_displayed 
goto_if_false @HEIST3_21149
48@ = 1

:HEIST3_21149
goto @HEIST3_21163

:HEIST3_21156
48@ = 1

:HEIST3_21163
wait 0
goto @HEIST3_21066

:HEIST3_21174
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21203
stop_char_facial_talk 56@
start_char_facial_talk $scplayer {duration} 3000

:HEIST3_21203
133@ = 25
138@ = 4
141@ = get_game_timer 

:HEIST3_21222
goto @HEIST3_22071

:HEIST3_21229
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21406
if 
  136@ == 0
goto_if_false @HEIST3_21406
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21316
stop_char_facial_talk $scplayer
start_char_facial_talk 56@ {duration} 3000

:HEIST3_21316
133@ = 21
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21394
75@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 344.6502 {y} 307.6453 {z} 998.1963 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 245.3258
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_21394
138@ = 5
141@ = get_game_timer 

:HEIST3_21406
goto @HEIST3_22071

:HEIST3_21413
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21782
if 
  136@ == 0
goto_if_false @HEIST3_21782
48@ = 0
35@ = 0

:HEIST3_21485
if 
  48@ == 0
goto_if_false @HEIST3_21734
wait 0
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21720
34@ = get_script_task_status 56@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 34@ == 7
goto_if_false @HEIST3_21577
task_look_at_char 56@ {target} $scplayer {time} 10000
48@ = 1
goto @HEIST3_21713

:HEIST3_21577
if 
  35@ == 0
goto_if_false @HEIST3_21713
set_fixed_camera_position 347.32 {y} 308.43 {z} 999.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 339.91 {y} 301.08 {z} 998.31 {switchStyle} SwitchType.JumpCut
74@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} 56@
task_go_straight_to_coord -1 {x} 345.7446 {y} 304.2489 {z} 998.1641 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} 56@
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@
35@ = 1

:HEIST3_21713
goto @HEIST3_21727

:HEIST3_21720
48@ = 1

:HEIST3_21727
goto @HEIST3_21485

:HEIST3_21734
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21763
stop_char_facial_talk 56@
start_char_facial_talk $scplayer {duration} 3000

:HEIST3_21763
133@ = 26
138@ = 6
141@ = get_game_timer 

:HEIST3_21782
goto @HEIST3_22071

:HEIST3_21789
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_21971
if 
  136@ == 0
goto_if_false @HEIST3_21971
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21923
75@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_go_straight_to_coord -1 {x} 345.3145 {y} 305.0605 {z} 998.1641 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 75@
perform_sequence_task 56@ {sequence} 75@
clear_sequence_task 75@

:HEIST3_21923
if 
  not is_char_dead 56@
goto_if_false @HEIST3_21952
stop_char_facial_talk $scplayer
start_char_facial_talk 56@ {duration} 3000

:HEIST3_21952
133@ = 17
138@ = 7
141@ = get_game_timer 

:HEIST3_21971
goto @HEIST3_22071

:HEIST3_21978
140@ = get_game_timer 
set_lvar_int_to_lvar_int 139@ = 140@
sub_int_lvar_from_int_lvar 139@ -= 141@
if 
  139@ > 1000
goto_if_false @HEIST3_22064
if 
  136@ == 0
goto_if_false @HEIST3_22064
if 
  not is_char_dead 56@
goto_if_false @HEIST3_22057
stop_char_facial_talk 56@

:HEIST3_22057
137@ = 1

:HEIST3_22064
goto @HEIST3_22071

:HEIST3_22071
goto @HEIST3_20162

:HEIST3_22078
skip_cutscene_end 
if 
  not is_char_dead 56@
goto_if_false @HEIST3_22106
stop_char_facial_talk 56@
stop_char_facial_talk $scplayer

:HEIST3_22106
clear_prints 
clear_look_at $scplayer
49@ = 0
40@ = 5
41@ = 1
47@ = 11

:HEIST3_22141
if 
  47@ == 11
goto_if_false @HEIST3_22363
if 
  49@ == 0
goto_if_false @HEIST3_22295
$number_of_instances_of_streamed_script = get_number_of_instances_of_streamed_script 26
if 
  $number_of_instances_of_streamed_script == 0
goto_if_false @HEIST3_22295
stream_script 26
if 
  has_streamed_script_loaded 26
goto_if_false @HEIST3_22295
$iDateReport = 0
set_global_var_bit_const $iDateReport {bitIndex} 5
disable_all_entry_exits True
start_new_streamed_script 26 {args} 40@ 41@ 0 2037.651 2723.8711 9.8352 0.0702 
do_fade 0 {direction} Fade.Out
delete_char 56@
mark_char_as_no_longer_needed 56@
49@ = 1

:HEIST3_22295
if 
  49@ == 1
goto_if_false @HEIST3_22363
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 4
goto_if_false @HEIST3_22338
54@ = 1

:HEIST3_22338
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 5
goto_if_false @HEIST3_22363
47@ = 12

:HEIST3_22363
if 
  47@ == 12
goto_if_false @HEIST3_22978
set_fixed_camera_position 2033.274 {y} 2719.8879 {z} 10.2275 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2033.7271 {y} 2720.7739 {z} 10.3282 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
disable_all_entry_exits False
skip_cutscene_start_internal @HEIST3_22757
74@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2036.875 {y} 2734.282 {z} 9.8203 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 2029.545 {y} 2735.6279 {z} 9.8203 {speed} MoveState.Walk {time} -1
close_sequence_task 74@
perform_sequence_task $scplayer {sequence} 74@
clear_sequence_task 74@
if 
  54@ == 1
goto_if_false @HEIST3_22624
clear_help 
print_help_forever 'HEI3_95'
133@ = 0
134@ = 1
135@ = 2
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0

:HEIST3_22624
48@ = 0
TIMERA = 0

:HEIST3_22638
if 
  48@ == 0
goto_if_false @HEIST3_22757
if 
  54@ == 1
goto_if_false @HEIST3_22720
if 
  not is_message_being_displayed 
goto_if_false @HEIST3_22713
if 
  TIMERA > 5000
goto_if_false @HEIST3_22713
48@ = 1

:HEIST3_22713
goto @HEIST3_22746

:HEIST3_22720
if 
  TIMERA > 7000
goto_if_false @HEIST3_22746
48@ = 1

:HEIST3_22746
wait 0
goto @HEIST3_22638

:HEIST3_22757
skip_cutscene_end 
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 2029.545 {y} 2735.6279 {z} 9.8203
set_char_heading $scplayer {heading} 68.4474
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
clear_help 
if 
  54@ == 1
goto_if_false @HEIST3_22848
set_global_var_bit_const $iActiveGF {bitIndex} 5
goto @HEIST3_23003
goto @HEIST3_22978

:HEIST3_22848
clear_prints 
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @HEIST3_22955
do_fade 1000 {direction} Fade.Out

:HEIST3_22884
if 
  get_fading_status 
goto_if_false @HEIST3_22908
wait 0
goto @HEIST3_22884

:HEIST3_22908
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:HEIST3_22931
if 
  get_fading_status 
goto_if_false @HEIST3_22955
wait 0
goto @HEIST3_22931

:HEIST3_22955
print 'HEI3_24' {time} 5000 {flag} 1
goto @HEIST3_22985

:HEIST3_22978
goto @HEIST3_2380

:HEIST3_22985
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST3_23003
$flag_heist_mission_counter += 1
$flag_player_got_gimp_suit = 1
print_with_number_big 'M_PASSR' {num} 15 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 15
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'HEIST_3'
player_made_progress 1
return 

:HEIST3_23065
switch_ped_roads_back_to_original 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
switch_roads_back_to_original 2096.335 {leftBottomY} 1656.397 {leftBottomZ} 8.0 {rightTopX} 2161.6589 {rightTopY} 1728.287 {rightTopZ} 10.0
mark_streamed_script_as_no_longer_needed 26
$timer_mobile_start = get_game_timer 
clear_onscreen_counter $hei3_spook
display_radar True
disable_all_entry_exits False
mark_model_as_no_longer_needed 249
mark_model_as_no_longer_needed 178
mark_model_as_no_longer_needed 168
mark_model_as_no_longer_needed 101
mark_model_as_no_longer_needed 194
mark_model_as_no_longer_needed 589
mark_model_as_no_longer_needed 162
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 555
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 321
if 
  not is_car_dead 65@
goto_if_false @HEIST3_23227
lock_car_doors 65@ {lockStatus} CarLock.Unlocked

:HEIST3_23227
mark_car_as_no_longer_needed 65@
mark_car_as_no_longer_needed 67@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
remove_char_elegantly 56@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 58@
remove_pickup 64@
remove_blip 68@
remove_blip 70@
remove_blip 72@
remove_blip 73@
remove_car_recording 803
unload_special_character 1
remove_decision_maker 42@
$onmission = 0
mission_has_finished 
return 

//-------------Mission 98---------------
// Originally: Dam And Blast

:HEIST2
script_name 'HEIST2'
gosub @HEIST2_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST2_38
gosub @HEIST2_18795

:HEIST2_38
gosub @HEIST2_18863
terminate_this_script 

:HEIST2_47
load_mission_text 'HEIST2'
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
do_fade 2000 {direction} Fade.Out

:HEIST2_82
if 
  get_fading_status 
goto_if_false @HEIST2_106
wait 0
goto @HEIST2_82

:HEIST2_106
set_area_visible 10
force_weather WeatherType.SunnyVegas
load_cutscene 'HEIST4A'

:HEIST2_125
if 
  not has_cutscene_loaded 
goto_if_false @HEIST2_149
wait 0
goto @HEIST2_125

:HEIST2_149
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST2_158
if 
  not has_cutscene_finished 
goto_if_false @HEIST2_182
wait 0
goto @HEIST2_158

:HEIST2_182
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out
load_scene 2030.103 {y} 1020.79 {z} 9.8203

:HEIST2_212
if 
  get_fading_status 
goto_if_false @HEIST2_236
wait 0
goto @HEIST2_212

:HEIST2_236
clear_cutscene 
release_weather 
set_area_visible 0
wait 0
request_collision 2030.103 {y} 1020.79
load_scene 2030.103 {y} 1020.79 {z} 9.8203
set_char_coordinates $scplayer {x} 2030.103 {y} 1020.79 {z} 9.813
set_char_heading $scplayer {heading} 277.5123
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_camera_behind_player 
restore_camera_jumpcut 
152@ = add_blip_for_coord 1717.017 {y} 1602.4969 {z} 9.3368
set_blip_as_friendly 152@ {state} True
request_animation "BOMBER"

:HEIST2_368
if 
  not has_animation_loaded "BOMBER"
goto_if_false @HEIST2_400
wait 0
goto @HEIST2_368

:HEIST2_400
set_fading_colour 0 {g} 0 {b} 0
switch_widescreen False
38@ = load_char_decision_maker DecisionMakerType.Steal
load_scene 2030.103 {y} 1020.79 {z} 9.8203
do_fade 1500 {direction} Fade.In

:HEIST2_443
if 
  get_fading_status 
goto_if_false @HEIST2_467
wait 0
goto @HEIST2_443

:HEIST2_467
set_player_control $player1 {state} True
print 'HEI2_90' {time} 10000 {flag} 1
105@ = 0
107@ = 0
106@ = 0
119@ = 0
121@ = 0
122@ = 0
124@ = 0
132@ = 0
125@ = 0
133@ = 0
137@ = 0
138@ = 0
136@ = 0
139@ = 0
123@ = 0
36@ = 0

:HEIST2_602
if 
  6 > 36@
goto_if_false @HEIST2_674
113@(36@,6i) = 0
if 
  5 > 36@
goto_if_false @HEIST2_660
108@(36@,5i) = 0

:HEIST2_660
36@ += 1
goto @HEIST2_602

:HEIST2_674
34@ = 0
120@ = 0
35@ = 1
36@ = 0
37@ = 0
47@ = -955.7253
53@ = 1920.637
59@ = 8.0078
65@ = 294.0869
48@ = -959.8978
54@ = 1861.884
60@ = 8.0078
66@ = 87.9045
49@ = -945.822
55@ = 1868.03
61@ = 4.0051
67@ = 177.415
50@ = -945.5732
56@ = 1911.255
62@ = 4.0
68@ = 183.0188
51@ = -959.6175
57@ = 1858.156
63@ = 8.0078
69@ = 180.4759
52@ = -959.7453
58@ = 1914.674
64@ = 8.0078
70@ = 185.4313
71@ = -955.7253
77@ = 1920.637
83@ = 8.0078
72@ = -959.8978
78@ = 1861.884
84@ = 8.0078
73@ = -943.7589
79@ = 1888.943
85@ = 4.0051
74@ = -943.0214
80@ = 1932.3521
86@ = 4.0
75@ = -959.4366
81@ = 1900.022
87@ = 8.0078
76@ = -959.496
82@ = 1936.925
88@ = 8.0061
89@ = -952.56
94@ = 1943.52
99@ = 8.0
90@ = -952.56
95@ = 1922.0699
100@ = 8.0
91@ = -952.56
96@ = 1900.4399
101@ = 8.0
92@ = -952.56
97@ = 1878.16
102@ = 8.0
93@ = -952.56
98@ = 1857.7
103@ = 8.0
185@ = 0
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
42@ = 0
set_lvar_int_to_constant 221@ = 11200
222@ = 0
223@ = 0
224@ = 0
set_var_text_label s$hei2_text[1] = 'HE2_AA'
set_var_text_label s$hei2_text[2] = 'HE2_AB'
set_var_text_label s$hei2_text[3] = 'HE2_AC'
set_var_text_label s$hei2_text[4] = 'HE2_AD'
set_var_text_label s$hei2_text[5] = 'HE2_AE'
set_var_text_label s$hei2_text[6] = 'HE2_AF'
set_var_text_label s$hei2_text[7] = 'HE2_AG'
set_var_text_label s$hei2_text[8] = 'HE2_AH'
set_var_text_label s$hei2_text[9] = 'HE2_AJ'
set_var_text_label s$hei2_text[10] = 'HE2_AK'
set_var_text_label s$hei2_text[11] = 'HE2_AL'
set_var_text_label s$hei2_text[12] = 'HE2_BA'
set_var_text_label s$hei2_text[13] = 'HE2_BB'
set_var_text_label s$hei2_text[14] = 'HE2_CA'
set_var_text_label s$hei2_text[15] = 'HE2_CB'
set_var_text_label s$hei2_text[16] = 'HE2_DA'
set_var_text_label s$hei2_text[17] = 'HE2_DB'
set_lvar_int_to_constant 192@ = 18200
set_lvar_int_to_constant 193@ = 18201
set_lvar_int_to_constant 194@ = 18202
set_lvar_int_to_constant 195@ = 18203
set_lvar_int_to_constant 196@ = 18204
set_lvar_int_to_constant 197@ = 18205
set_lvar_int_to_constant 198@ = 18206
set_lvar_int_to_constant 199@ = 18207
set_lvar_int_to_constant 200@ = 18208
set_lvar_int_to_constant 201@ = 18209
set_lvar_int_to_constant 202@ = 18210
set_lvar_int_to_constant 203@ = 18211
set_lvar_int_to_constant 204@ = 18212
set_lvar_int_to_constant 205@ = 18213
set_lvar_int_to_constant 206@ = 18214
set_lvar_int_to_constant 207@ = 18215
set_lvar_int_to_constant 208@ = 18216
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
switch_entry_exit 'DAMIN' {state} False
switch_entry_exit 'DAMOUT' {state} False
wait 1000

:HEIST2_1813
wait 0
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @HEIST2_1852
set_char_coordinates $scplayer {x} -585.0 {y} 2026.0 {z} 60.0

:HEIST2_1852
if 
is_ps2_keyboard_key_pressed 50
goto_if_false @HEIST2_1887
set_char_coordinates $scplayer {x} 1423.657 {y} 1643.182 {z} 9.8359

:HEIST2_1887
if 
is_ps2_keyboard_key_pressed 51
goto_if_false @HEIST2_1922
set_char_coordinates $scplayer {x} -828.64 {y} 1971.644 {z} 6.0

:HEIST2_1922
if 
is_ps2_keyboard_key_pressed 52
goto_if_false @HEIST2_1957
set_char_coordinates $scplayer {x} -693.98 {y} 1806.8101 {z} 800.0

:HEIST2_1957
if 
is_ps2_keyboard_key_pressed 97
goto_if_false @HEIST2_1993
119@ = 0
125@ = 0
gosub @HEIST2_14813

:HEIST2_1993
if 
is_ps2_keyboard_key_pressed 54
goto_if_false @HEIST2_2015
107@ = 6

:HEIST2_2015
if 
is_ps2_keyboard_key_pressed 55
goto_if_false @HEIST2_2037
123@ = 6

:HEIST2_2037
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @HEIST2_2059
goto @HEIST2_18813

:HEIST2_2059
if 
  107@ == 99999
goto_if_false @HEIST2_2120
154@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
155@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:HEIST2_2120
if 
  107@ == 0
goto_if_false @HEIST2_2168
print 'HEI2_90' {time} 7000 {flag} 1
107@ = 1
123@ = 1

:HEIST2_2168
if 
  12 > 123@
goto_if_false @HEIST2_9195
if 
  4 > 123@
goto_if_false @HEIST2_2907
if 
  123@ == 1
goto_if_false @HEIST2_2400
if or
  locate_char_any_means_2d $scplayer {x} 1477.401 {y} 1677.399 {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 1717.017 {y} 1602.4969 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 1477.178 {y} 1639.083 {z} 10.9203 {xRadius} 79.499 {yRadius} 143.0963 {zRadius} 4.9 {drawSphere} False
goto_if_false @HEIST2_2400
request_model 553

:HEIST2_2329
if 
  not has_model_loaded 553
goto_if_false @HEIST2_2356
wait 0
goto @HEIST2_2329

:HEIST2_2356
set_area51_sam_site False
168@ = create_car 553 {x} 1477.401 {y} 1677.399 {z} 9.8425
set_car_heading 168@ {heading} 180.049
123@ = 2

:HEIST2_2400
if 
  136@ == 0
goto_if_false @HEIST2_2554
if or
  locate_char_any_means_3d $scplayer {x} 1477.178 {y} 1639.083 {z} 10.9203 {xRadius} 79.499 {yRadius} 143.0963 {zRadius} 4.9 {drawSphere} False
  locate_char_any_means_2d $scplayer {x} 1717.017 {y} 1602.4969 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @HEIST2_2554
if 
  not is_car_dead 168@
goto_if_false @HEIST2_2554
remove_blip 152@
152@ = add_blip_for_car 168@
set_blip_as_friendly 152@ {state} True
clear_prints 
print 'HEI2_57' {time} 7000 {flag} 1
136@ = 1

:HEIST2_2554
if 
  locate_char_any_means_3d $scplayer {x} 1717.017 {y} 1602.4969 {z} 9.3368 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST2_2602

:HEIST2_2602
if 
  123@ > 1
goto_if_false @HEIST2_2679
if 
  4 > 123@
goto_if_false @HEIST2_2679
if 
  is_car_dead 168@
goto_if_false @HEIST2_2679
clear_prints 
print 'HEI2_25' {time} 5000 {flag} 1
goto @HEIST2_18795

:HEIST2_2679
if 
  123@ == 2
goto_if_false @HEIST2_2900
if 
  not is_car_dead 168@
goto_if_false @HEIST2_2900
if 
  is_char_sitting_in_car $scplayer {vehicle} 168@
goto_if_false @HEIST2_2900
lock_car_doors 168@ {lockStatus} CarLock.LockedPlayerInside
137@ = 1
set_camera_behind_player 
clear_prints 
print 'HEI2_26' {time} 10000 {flag} 1
remove_blip 152@
152@ = add_blip_for_coord -592.42 {y} 1555.88 {z} 750.0
153@ = create_checkpoint CheckpointType.Torus {x} -592.42 {y} 1555.88 {z} 750.0 {pointX} -592.42 {pointY} 1555.88 {pointZ} 750.0 {radius} 25.0
request_model 371

:HEIST2_2838
if 
  not has_model_loaded 371
goto_if_false @HEIST2_2870
request_model 371
wait 0
goto @HEIST2_2838

:HEIST2_2870
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
$para_pickup_flag = 0
123@ = 3

:HEIST2_2900
goto @HEIST2_2907

:HEIST2_2907
if 
  123@ == 3
goto_if_false @HEIST2_4819
if 
  not is_car_dead 168@
goto_if_false @HEIST2_4819
if or
  is_char_sitting_in_car $scplayer {vehicle} 168@
  138@ == 1
goto_if_false @HEIST2_4639
if 
  132@ == 1
goto_if_false @HEIST2_3075
remove_blip 152@
152@ = add_blip_for_coord -592.42 {y} 1555.88 {z} 750.0
153@ = create_checkpoint CheckpointType.Torus {x} -592.42 {y} 1555.88 {z} 750.0 {pointX} -592.42 {pointY} 1555.88 {pointZ} 750.0 {radius} 25.0
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
132@ = 0

:HEIST2_3075
if 
  locate_char_in_car_3d $scplayer {x} -592.42 {y} 1555.88 {z} 750.0 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @HEIST2_4458
if 
  137@ == 1
goto_if_false @HEIST2_3186
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
clear_help 
print_help_forever 'HEI2_50'
clear_prints 
print 'HEI2_15' {time} 10000 {flag} 1
137@ = 0

:HEIST2_3186
if 
  138@ == 1
goto_if_false @HEIST2_4451
clear_help 
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
clear_prints 
delete_checkpoint 153@
freeze_car_position 168@ {state} True
set_car_coordinates 168@ {x} -592.42 {y} 1555.88 {z} 750.0
set_car_heading 168@ {heading} 180.0
set_heli_blades_full_speed 168@
TIMERA = 0
$para_control_off = 1
request_car_recording 805
TIMERA = 0
106@ = 0

:HEIST2_3301
if 
  106@ == 0
goto_if_false @HEIST2_3366
if and
  has_car_recording_been_loaded 805
  TIMERA > 3000
goto_if_false @HEIST2_3355
106@ = 1
request_car_recording 805

:HEIST2_3355
wait 0
goto @HEIST2_3301

:HEIST2_3366
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3453
start_playback_recorded_car 168@ {path} 805
set_fixed_camera_position -590.9276 {y} 1546.75 {z} 735.8972 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -591.0876 {y} 1546.2271 {z} 735.0595 {switchStyle} SwitchType.JumpCut
set_char_visible $scplayer {state} False
186@ = get_game_timer 

:HEIST2_3453
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3476
freeze_car_position 168@ {state} False

:HEIST2_3476
skip_cutscene_start_internal @HEIST2_4313
$para_freefall_Vz = 0.0
106@ = 0
41@ = 0

:HEIST2_3507
if 
  106@ == 0
goto_if_false @HEIST2_3900
$para_freefall_Vz = 0.0
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3889
if 
  not is_playback_going_on_for_car 168@
goto_if_false @HEIST2_3581
106@ = 1
goto @HEIST2_3889

:HEIST2_3581
187@ = get_game_timer 
set_lvar_int_to_lvar_int 188@ = 187@
sub_int_lvar_from_int_lvar 188@ -= 186@
if 
  41@ == 0
goto_if_false @HEIST2_3889
if 
  188@ > 6000
goto_if_false @HEIST2_3889
do_fade 1000 {direction} Fade.Out

:HEIST2_3646
if 
  get_fading_status 
goto_if_false @HEIST2_3670
wait 0
goto @HEIST2_3646

:HEIST2_3670
request_model #SW_BIT_09

:HEIST2_3675
if 
  not has_model_loaded #SW_BIT_09
goto_if_false @HEIST2_3702
wait 0
goto @HEIST2_3675

:HEIST2_3702
set_fixed_camera_position -781.9676 {y} 1163.64 {z} 28.421 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -781.364 {y} 1164.077 {z} 29.0876 {switchStyle} SwitchType.JumpCut
load_scene -781.364 {y} 1164.077 {z} 29.0876
request_collision -781.364 {y} 1164.077
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3829
if 
  is_playback_going_on_for_car 168@
goto_if_false @HEIST2_3824
skip_in_playback_recorded_car 168@ {amount} 80.0

:HEIST2_3824
set_heli_blades_full_speed 168@

:HEIST2_3829
load_scene_in_direction -781.364 {y} 1164.077 {z} 29.0876 {heading} 270.0
do_fade 1000 {direction} Fade.In

:HEIST2_3858
if 
  get_fading_status 
goto_if_false @HEIST2_3882
wait 0
goto @HEIST2_3858

:HEIST2_3882
41@ = 1

:HEIST2_3889
wait 0
goto @HEIST2_3507

:HEIST2_3900
if 
  not is_car_dead 168@
goto_if_false @HEIST2_3921
set_heli_blades_full_speed 168@

:HEIST2_3921
189@ = create_fx_system "SMOKE50LIT" {x} -761.2061 {y} 1174.616 {z} 39.0387 {ignoreBoundingChecks} True
190@ = create_fx_system "EXPLOSION_SMALL" {x} -761.2061 {y} 1174.616 {z} 38.5387 {ignoreBoundingChecks} True
if 
  189@ == -1
goto_if_false @HEIST2_4019
goto @HEIST2_4034

:HEIST2_4019
wait 300
play_fx_system 190@
play_fx_system 189@

:HEIST2_4034
add_explosion -761.2062 {y} 1175.616 {z} 39.5387 {type} ExplosionType.Molotov
add_explosion -761.206 {y} 1173.616 {z} 39.5387 {type} ExplosionType.Molotov
add_explosion -761.2061 {y} 1174.616 {z} 39.5387 {type} ExplosionType.Molotov
if 
  not is_car_dead 168@
goto_if_false @HEIST2_4112
explode_car 168@

:HEIST2_4112
TIMERA = 0

:HEIST2_4119
if 
  2000 > TIMERA
goto_if_false @HEIST2_4313
if 
  500 > TIMERA
goto_if_false @HEIST2_4183
add_explosion -761.2062 {y} 1175.616 {z} 39.5387 {type} ExplosionType.Rocket
goto @HEIST2_4273

:HEIST2_4183
if 
  1000 > TIMERA
goto_if_false @HEIST2_4209
goto @HEIST2_4273

:HEIST2_4209
if 
  1500 > TIMERA
goto_if_false @HEIST2_4254
add_explosion -761.206 {y} 1173.616 {z} 39.5387 {type} ExplosionType.Grenade
goto @HEIST2_4273

:HEIST2_4254
add_explosion -761.2061 {y} 1174.616 {z} 39.5387 {type} ExplosionType.Aircraft

:HEIST2_4273
if or
  is_char_dead $scplayer
  is_car_dead 168@
goto_if_false @HEIST2_4302
TIMERA = 2000

:HEIST2_4302
wait 0
goto @HEIST2_4119

:HEIST2_4313
skip_cutscene_end 
mark_model_as_no_longer_needed #SW_BIT_09
do_fade 500 {direction} Fade.In

:HEIST2_4327
if 
  get_fading_status 
goto_if_false @HEIST2_4351
wait 0
goto @HEIST2_4327

:HEIST2_4351
remove_car_recording 805
kill_fx_system 189@
kill_fx_system 190@
set_char_visible $scplayer {state} True
switch_widescreen False
set_player_control $player1 {state} True
$para_control_off = 0
$para_freefall_Vz = -30.0
restore_camera_jumpcut 
if 
  not is_car_dead 168@
goto_if_false @HEIST2_4439
set_car_coordinates 168@ {x} -761.2061 {y} 1174.616 {z} 39.5387

:HEIST2_4439
mark_car_as_no_longer_needed 168@
123@ = 4

:HEIST2_4451
goto @HEIST2_4632

:HEIST2_4458
clear_help 
clear_this_print 'HEI2_15'
$hei2_height = get_char_height_above_ground $scplayer
if 
  5.0 > $hei2_height
goto_if_false @HEIST2_4539
if 
  137@ == 1
goto_if_false @HEIST2_4532
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
137@ = 0

:HEIST2_4532
goto @HEIST2_4571

:HEIST2_4539
if 
  137@ == 0
goto_if_false @HEIST2_4571
lock_car_doors 168@ {lockStatus} CarLock.LockedPlayerInside
137@ = 1

:HEIST2_4571
if 
  locate_char_in_car_3d $scplayer {x} -592.42 {y} 1555.88 {z} 750.0 {xRadius} 400.0 {yRadius} 400.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @HEIST2_4632
print_help_forever 'HEI2_88'
clear_prints 

:HEIST2_4632
goto @HEIST2_4819

:HEIST2_4639
if 
  138@ == 0
goto_if_false @HEIST2_4819
if 
  locate_char_any_means_3d $scplayer {x} -592.42 {y} 1555.88 {z} 750.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @HEIST2_4719
138@ = 1
goto @HEIST2_4819

:HEIST2_4719
clear_prints 
print 'HEI2_28' {time} 1000 {flag} 1
if 
  132@ == 0
goto_if_false @HEIST2_4787
remove_blip 152@
delete_checkpoint 153@
152@ = add_blip_for_car 168@
set_blip_as_friendly 152@ {state} True
132@ = 1

:HEIST2_4787
if 
  137@ == 1
goto_if_false @HEIST2_4819
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
137@ = 0

:HEIST2_4819
if 
  123@ == 4
goto_if_false @HEIST2_5584
153@ = create_checkpoint CheckpointType.Tube {x} -811.07 {y} 1816.08 {z} 7.0 {pointX} -811.07 {pointY} 1816.08 {pointZ} 200.0 {radius} 6.0
remove_blip 152@
152@ = add_blip_for_coord -811.07 {y} 1816.08 {z} 7.0
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
request_model #SMASHBOXPILE
request_model #K_CARGO1
request_model #KMB_CONTAINER_RED
request_model #K_CARGO4
request_model 71
request_model 334
load_all_models_now 

:HEIST2_4945
if or
  not has_model_loaded #K_CARGO4
  not has_model_loaded #SMASHBOXPILE
  not has_model_loaded #K_CARGO1
  not has_model_loaded #KMB_CONTAINER_RED
  not has_model_loaded 71
  not has_model_loaded 334
goto_if_false @HEIST2_4996
wait 0
goto @HEIST2_4945

:HEIST2_4996
174@ = create_object_no_offset #SMASHBOXPILE {x} -829.8794 {y} 1957.827 {z} 6.4364
set_object_heading 174@ {heading} 7.1004
175@ = create_object_no_offset #SMASHBOXPILE {x} -824.9033 {y} 1958.443 {z} 6.5048
set_object_heading 175@ {heading} 9.1604
176@ = create_object_no_offset #K_CARGO1 {x} -828.3333 {y} 1952.527 {z} 5.9651
set_object_heading 176@ {heading} 102.0394
177@ = create_object_no_offset #K_CARGO1 {x} -825.9227 {y} 1953.171 {z} 5.9651
set_object_heading 177@ {heading} 100.9489
178@ = create_object_no_offset #K_CARGO4 {x} -827.6044 {y} 1958.276 {z} 5.9873
set_object_heading 178@ {heading} 101.9089
179@ = create_object_no_offset #KMB_CONTAINER_RED {x} -820.3694 {y} 1933.666 {z} 7.3952
set_object_heading 179@ {heading} 11.8154
180@ = create_object_no_offset #KMB_CONTAINER_RED {x} -822.3879 {y} 1945.519 {z} 7.4836
set_object_heading 180@ {heading} 11.8154
163@ = create_char PedType.Mission1 {modelId} 71 {x} -826.3729 {y} 1946.988 {z} 6.0692
give_weapon_to_char 163@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 163@ {state} False
set_char_heading 163@ {heading} 0.0
set_sense_range 163@ {range} 10.0
164@ = create_char PedType.Mission1 {modelId} 71 {x} -823.3655 {y} 1956.276 {z} 6.04
give_weapon_to_char 164@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 164@ {state} False
set_char_heading 164@ {heading} 301.2606
set_sense_range 164@ {range} 10.0
set_char_decision_maker 163@ {handleOrTemplate} 38@
set_char_decision_maker 164@ {handleOrTemplate} 38@
flush_patrol_route 
extend_patrol_route -825.4943 {y} 1938.9041 {z} 6.0 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route -823.3667 {y} 1933.54 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -825.4943 {y} 1938.9041 {z} 6.0 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route -826.9571 {y} 1947.569 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 163@ {speed} MoveState.Walk {mode} RouteMode.BackForward
flush_patrol_route 
extend_patrol_route -828.9601 {y} 1955.366 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -823.2458 {y} 1957.016 {z} 6.007 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 164@ {speed} MoveState.Walk {mode} RouteMode.BackForward
123@ = 5

:HEIST2_5584
if and
  123@ > 4
  12 > 123@
goto_if_false @HEIST2_7025
if 
  not is_car_dead 168@
goto_if_false @HEIST2_5656
if 
  not is_car_on_screen 168@
goto_if_false @HEIST2_5656
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
delete_car 168@

:HEIST2_5656
if 
  209@ <> 0
goto_if_false @HEIST2_5927
if 
  212@ == 0
goto_if_false @HEIST2_5720
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_5713
clear_mission_audio 211@

:HEIST2_5713
212@ = 1

:HEIST2_5720
if 
  212@ == 1
goto_if_false @HEIST2_5757
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_5757
if 
  212@ == 2
goto_if_false @HEIST2_5817
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_5817
play_mission_audio 210@
print_now $hei2_text(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_5817
if 
  212@ == 3
goto_if_false @HEIST2_5927
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_5927
clear_this_print $hei2_text(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_5899
210@ = 2
211@ = 1
goto @HEIST2_5913

:HEIST2_5899
210@ = 1
211@ = 2

:HEIST2_5913
209@ = 0
212@ = 0

:HEIST2_5927
36@ = 0

:HEIST2_5934
if 
  2 > 36@
goto_if_false @HEIST2_6966
if 
  not is_char_dead 163@(36@,2i)
goto_if_false @HEIST2_6910
if 
  126@(36@,6i) == 0
goto_if_false @HEIST2_6173
if or
  is_char_responding_to_event 163@(36@,2i) {event} Event.SoundQuiet
  is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHateBadlyLit
goto_if_false @HEIST2_6173
if 
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
goto_if_false @HEIST2_6173
if 
  212@ == 0
goto_if_false @HEIST2_6147
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_6108
209@ = 1
goto @HEIST2_6147

:HEIST2_6108
if 
  41@ == 1
goto_if_false @HEIST2_6140
209@ = 8
goto @HEIST2_6147

:HEIST2_6140
209@ = 12

:HEIST2_6147
126@(36@,6i) = 1
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.StealthAlertGeneric

:HEIST2_6173
if 
  126@(36@,6i) == 1
goto_if_false @HEIST2_6395
if and
  not is_char_responding_to_event 163@(36@,2i) {event} Event.SoundQuiet
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 163@(36@,2i) {event} Event.ShotFired
  not is_char_responding_to_event 163@(36@,2i) {event} Event.Damage
  not is_char_responding_to_event 163@(36@,2i) {event} Event.GunAimedAt
goto_if_false @HEIST2_6395
if 
  212@ == 0
goto_if_false @HEIST2_6370
41@ = generate_random_int_in_range 0 {max} 3
if 
  41@ == 0
goto_if_false @HEIST2_6331
209@ = 6
goto @HEIST2_6370

:HEIST2_6331
if 
  41@ == 1
goto_if_false @HEIST2_6363
209@ = 3
goto @HEIST2_6370

:HEIST2_6363
209@ = 2

:HEIST2_6370
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.Arrest
126@(36@,6i) = 0

:HEIST2_6395
if or
  126@(36@,6i) == 0
  126@(36@,6i) == 1
goto_if_false @HEIST2_6712
if or
  is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 163@(36@,2i) {event} Event.ShotFired
  is_char_responding_to_event 163@(36@,2i) {event} Event.Damage
  is_char_responding_to_event 163@(36@,2i) {event} Event.GunAimedAt
goto_if_false @HEIST2_6712
if 
  212@ == 0
goto_if_false @HEIST2_6613
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_6542
209@ = 1
goto @HEIST2_6613

:HEIST2_6542
if 
  41@ == 5
goto_if_false @HEIST2_6574
209@ = 8
goto @HEIST2_6613

:HEIST2_6574
if 
  41@ == 2
goto_if_false @HEIST2_6606
209@ = 7
goto @HEIST2_6613

:HEIST2_6606
209@ = 10

:HEIST2_6613
if 
  105@ == 0
goto_if_false @HEIST2_6686
if 
  not is_char_dead 163@
goto_if_false @HEIST2_6655
task_kill_char_on_foot 163@ {target} $scplayer

:HEIST2_6655
if 
  not is_char_dead 164@
goto_if_false @HEIST2_6679
task_kill_char_on_foot 164@ {target} $scplayer

:HEIST2_6679
105@ = 1

:HEIST2_6686
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.StealthDefSighting
126@(36@,6i) = 2

:HEIST2_6712
if 
  126@(36@,6i) == 2
goto_if_false @HEIST2_6903
if and
  not is_char_responding_to_event 163@(36@,2i) {event} Event.SoundQuiet
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 163@(36@,2i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 163@(36@,2i) {event} Event.ShotFired
  not is_char_responding_to_event 163@(36@,2i) {event} Event.Damage
  not is_char_responding_to_event 163@(36@,2i) {event} Event.GunAimedAt
goto_if_false @HEIST2_6903
if 
  212@ == 0
goto_if_false @HEIST2_6877
41@ = generate_random_int_in_range 0 {max} 2
if 
  41@ == 0
goto_if_false @HEIST2_6870
209@ = 11
goto @HEIST2_6877

:HEIST2_6870
209@ = 9

:HEIST2_6877
219@ = set_char_say_context 163@(36@,2i) {phrase} SpeechId.StealthNothingThere
126@(36@,6i) = 0

:HEIST2_6903
goto @HEIST2_6952

:HEIST2_6910
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_6952
remove_blip 154@(36@,2i)
113@(36@,6i) = 0

:HEIST2_6952
36@ += 1
goto @HEIST2_5934

:HEIST2_6966
if 
  212@ == 0
goto_if_false @HEIST2_7025
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 209@
goto_if_false @HEIST2_7018
set_lvar_int_to_lvar_int 42@ = 209@
goto @HEIST2_7025

:HEIST2_7018
209@ = 0

:HEIST2_7025
if 
  123@ == 5
goto_if_false @HEIST2_8465
if or
  is_char_playing_anim $scplayer {animationName} "PARA_OPEN"
  is_char_playing_anim $scplayer {animationName} "PARA_FLOAT"
goto_if_false @HEIST2_7089
clear_help 

:HEIST2_7089
if or
  $player_landed == 2
  locate_char_any_means_3d $scplayer {x} -811.07 {y} 1816.08 {z} 7.0 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST2_8399
set_player_cycle_weapon_button $player1 {enabled} False
give_weapon_to_char $scplayer {weaponType} WeaponType.Unarmed {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
delete_checkpoint 153@
remove_blip 152@
clear_prints 
clear_help 
set_player_control $player1 {state} False
do_fade 1500 {direction} Fade.Out

:HEIST2_7195
if 
  get_fading_status 
goto_if_false @HEIST2_7219
wait 0
goto @HEIST2_7195

:HEIST2_7219
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST2_7240
task_leave_any_car $scplayer

:HEIST2_7240
mark_model_as_no_longer_needed 371
if 
  locate_char_any_means_3d $scplayer {x} -828.4104 {y} 1945.76 {z} 7.04 {xRadius} 13.1 {yRadius} 19.2998 {zRadius} 4.5 {drawSphere} False
goto_if_false @HEIST2_7323
set_char_coordinates $scplayer {x} -820.3474 {y} 1939.728 {z} 6.0
set_char_heading $scplayer {heading} 295.9757

:HEIST2_7323
switch_widescreen True
task_turn_char_to_face_coord $scplayer {x} -830.94 {y} 1983.23 {z} 9.0
terminate_all_scripts_with_this_name 'PARACH'
$player_landed = 2
clear_char_tasks_immediately $scplayer
restore_camera_jumpcut 
set_radar_zoom 90
request_model 335

:HEIST2_7381
if 
  not has_model_loaded 335
goto_if_false @HEIST2_7408
wait 0
goto @HEIST2_7381

:HEIST2_7408
104@ = create_pickup 335 {pickupType} PickupType.Once {x} -819.0 {y} 1929.0 {z} 7.0
156@ = add_blip_for_pickup 104@
change_blip_display 156@ {display} BlipDisplay.BlipOnly
delete_char 163@
mark_char_as_no_longer_needed 163@
delete_char 164@
mark_char_as_no_longer_needed 164@
163@ = create_char PedType.Mission1 {modelId} 71 {x} -826.3729 {y} 1946.988 {z} 6.0692
give_weapon_to_char 163@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 163@ {state} False
set_char_heading 163@ {heading} 0.0
set_sense_range 163@ {range} 10.0
164@ = create_char PedType.Mission1 {modelId} 71 {x} -823.3655 {y} 1956.276 {z} 6.04
give_weapon_to_char 164@ {weaponType} WeaponType.NightStick {ammo} 3000
set_char_drops_weapons_when_dead 164@ {state} False
set_char_heading 164@ {heading} 301.2606
set_sense_range 164@ {range} 10.0
set_char_decision_maker 163@ {handleOrTemplate} 38@
set_char_decision_maker 164@ {handleOrTemplate} 38@
flush_patrol_route 
extend_patrol_route -823.3667 {y} 1933.54 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -825.4943 {y} 1938.9041 {z} 6.0 {animationName} "NONE" {animationFile} "NONE"
extend_patrol_route -826.9571 {y} 1947.569 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 163@ {speed} MoveState.Walk {mode} RouteMode.BackForward
flush_patrol_route 
extend_patrol_route -828.9601 {y} 1955.366 {z} 6.0 {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route -823.2458 {y} 1957.016 {z} 6.007 {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 164@ {speed} MoveState.Walk {mode} RouteMode.BackForward
set_fixed_camera_position -794.19 {y} 1856.16 {z} 8.89 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -833.48 {y} 1914.1801 {z} 3.2 {switchStyle} SwitchType.JumpCut
do_fade 1500 {direction} Fade.In

:HEIST2_7847
if 
  get_fading_status 
goto_if_false @HEIST2_7871
wait 0
goto @HEIST2_7847

:HEIST2_7871
print 'HEI2_52' {time} 6000 {flag} 1
skip_cutscene_start_internal @HEIST2_8191

:HEIST2_7894
if 
  is_message_being_displayed 
goto_if_false @HEIST2_7918
wait 0
goto @HEIST2_7894

:HEIST2_7918
set_fixed_camera_position -821.12 {y} 1953.34 {z} 7.52 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -842.66 {y} 1973.89 {z} 3.84 {switchStyle} SwitchType.JumpCut
print 'HEI2_52' {time} 6000 {flag} 1

:HEIST2_7985
if 
  is_message_being_displayed 
goto_if_false @HEIST2_8009
wait 0
goto @HEIST2_7985

:HEIST2_8009
set_fixed_camera_position -828.18 {y} 1949.8199 {z} 6.79 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -807.1 {y} 1918.51 {z} 8.91 {switchStyle} SwitchType.JumpCut
print 'HEI2_53' {time} 6000 {flag} 1

:HEIST2_8076
if 
  is_message_being_displayed 
goto_if_false @HEIST2_8100
wait 0
goto @HEIST2_8076

:HEIST2_8100
print 'HEI2_46' {time} 6000 {flag} 1
set_fixed_camera_position -823.48 {y} 1924.8199 {z} 6.71 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -808.71 {y} 1959.51 {z} 9.43 {switchStyle} SwitchType.JumpCut

:HEIST2_8167
if 
  is_message_being_displayed 
goto_if_false @HEIST2_8191
wait 0
goto @HEIST2_8167

:HEIST2_8191
skip_cutscene_end 
clear_prints 
if 
  not is_char_dead 163@
goto_if_false @HEIST2_8233
154@ = add_blip_for_char 163@
change_blip_display 154@ {display} BlipDisplay.BlipOnly
113@ = 1

:HEIST2_8233
if 
  not is_char_dead 164@
goto_if_false @HEIST2_8271
155@ = add_blip_for_char 164@
change_blip_display 155@ {display} BlipDisplay.BlipOnly
114@ = 1

:HEIST2_8271
switch_widescreen False
print 'HEI2_60' {time} 5000 {flag} 1
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  not is_char_dead 163@
goto_if_false @HEIST2_8337
set_char_relationship 163@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_inform_respected_friends 163@ {radius} 30.0 {_p3} 10

:HEIST2_8337
if 
  not is_char_dead 164@
goto_if_false @HEIST2_8374
set_char_relationship 164@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_inform_respected_friends 164@ {radius} 30.0 {_p3} 10

:HEIST2_8374
print_help 'HEI2_89'
123@ = 7
goto @HEIST2_8465

:HEIST2_8399
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST2_8465
if 
  139@ == 0
goto_if_false @HEIST2_8465
set_player_cycle_weapon_button $player1 {enabled} False
give_weapon_to_char $scplayer {weaponType} WeaponType.Unarmed {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
139@ = 1

:HEIST2_8465
if 
  123@ == 7
goto_if_false @HEIST2_8696
if 
  is_char_in_water $scplayer
goto_if_false @HEIST2_8578
if 
  124@ == 0
goto_if_false @HEIST2_8571
clear_prints 
print 'HEI2_40' {time} 7000 {flag} 1
remove_blip 152@
152@ = add_blip_for_coord -799.5823 {y} 1813.156 {z} 2.0061
set_radar_zoom 0
124@ = 1

:HEIST2_8571
goto @HEIST2_8630

:HEIST2_8578
if 
  124@ == 1
goto_if_false @HEIST2_8630
remove_blip 152@
124@ = 0
clear_prints 
set_radar_zoom 90
print 'HEI2_60' {time} 5000 {flag} 1

:HEIST2_8630
if 
  has_pickup_been_collected 104@
goto_if_false @HEIST2_8696
clear_prints 
print 'HEI2_34' {time} 7000 {flag} 1
remove_blip 152@
152@ = add_blip_for_coord -830.94 {y} 1983.23 {z} 9.0
123@ = 8

:HEIST2_8696
if 
  123@ == 8
goto_if_false @HEIST2_9195
if 
  is_char_dead 163@
goto_if_false @HEIST2_8735
remove_blip 154@

:HEIST2_8735
if 
  is_char_dead 164@
goto_if_false @HEIST2_8756
remove_blip 155@

:HEIST2_8756
if 
  is_char_in_water $scplayer
goto_if_false @HEIST2_8851
if 
  124@ == 0
goto_if_false @HEIST2_8844
clear_prints 
remove_blip 152@
print 'HEI2_40' {time} 7000 {flag} 1
152@ = add_blip_for_coord -799.5823 {y} 1813.156 {z} 2.0061
set_radar_zoom 0
124@ = 1

:HEIST2_8844
goto @HEIST2_9195

:HEIST2_8851
if 
  124@ == 1
goto_if_false @HEIST2_8923
124@ = 0
clear_prints 
remove_blip 152@
152@ = add_blip_for_coord -830.94 {y} 1983.23 {z} 9.0
set_radar_zoom 90
print 'HEI2_34' {time} 7000 {flag} 1

:HEIST2_8923
if 
  locate_char_on_foot_3d $scplayer {x} -830.2665 {y} 1982.124 {z} 8.25 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 3.0 {drawSphere} True
goto_if_false @HEIST2_9195
clear_prints 
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:HEIST2_8987
if 
  get_fading_status 
goto_if_false @HEIST2_9011
wait 0
goto @HEIST2_8987

:HEIST2_9011
set_char_coordinates $scplayer {x} -942.0 {y} 1847.0 {z} 4.0
set_area_visible 17
load_scene -942.0 {y} 1847.0 {z} 4.0
request_collision -942.0 {y} 1847.0
set_extra_colours 1 {fade} False
clear_prints 
remove_blip 152@
mark_char_as_no_longer_needed 163@
mark_char_as_no_longer_needed 164@
mark_object_as_no_longer_needed 174@
mark_object_as_no_longer_needed 175@
mark_object_as_no_longer_needed 176@
mark_object_as_no_longer_needed 177@
mark_object_as_no_longer_needed 178@
mark_object_as_no_longer_needed 179@
mark_object_as_no_longer_needed 180@
remove_blip 154@
remove_blip 155@
mark_model_as_no_longer_needed #SMASHBOXPILE
mark_model_as_no_longer_needed #K_CARGO1
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
mark_model_as_no_longer_needed #K_CARGO4
mark_model_as_no_longer_needed 335
remove_pickup 104@
remove_blip 156@
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
107@ = 2
123@ = 12

:HEIST2_9195
if 
  123@ > 11
goto_if_false @HEIST2_14806
if 
  107@ == 2
goto_if_false @HEIST2_10118
request_model 363
request_model 50
request_model 346
request_model 330

:HEIST2_9250
if or
  not has_model_loaded 363
  not has_model_loaded 50
  not has_model_loaded 346
  not has_model_loaded 330
goto_if_false @HEIST2_9291
wait 0
goto @HEIST2_9250

:HEIST2_9291
104@ = create_pickup 335 {pickupType} PickupType.OnStreetSlow {x} -938.3901 {y} 1901.649 {z} 4.3
166@ = create_char PedType.Mission2 {modelId} 71 {x} -960.0 {y} 1927.0 {z} 8.04
set_char_heading 166@ {heading} 81.0
task_use_mobile_phone 166@ {start} True
113@ = 0
114@ = 0
105@ = 0
36@ = 0

:HEIST2_9385
if 
  6 > 36@
goto_if_false @HEIST2_10111
if 
  36@ > 1
goto_if_false @HEIST2_9790
create_char PedType.Mission2 {modelId} 71 {x} 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {var_handle} 157@(36@,6i)
set_follow_node_threshold_distance 157@(36@,6i) {range} 1.0
set_sense_range 157@(36@,6i) {range} 10.0
set_char_accuracy 157@(36@,6i) {accuracy} 85
set_inform_respected_friends 157@(36@,6i) {radius} 20.0 {_p3} 1
if or
  36@ == 2
  36@ == 4
goto_if_false @HEIST2_9578
give_weapon_to_char 157@(36@,6i) {weaponType} WeaponType.NightStick {ammo} 3000
set_char_shoot_rate 157@(36@,6i) {rate} 70
set_char_weapon_skill 157@(36@,6i) {skill} WeaponSkill.Pro
goto @HEIST2_9614

:HEIST2_9578
give_weapon_to_char 157@(36@,6i) {weaponType} WeaponType.Pistol {ammo} 3000
set_char_shoot_rate 157@(36@,6i) {rate} 60
set_char_weapon_skill 157@(36@,6i) {skill} WeaponSkill.Std

:HEIST2_9614
set_char_drops_weapons_when_dead 157@(36@,6i) {state} False
set_char_heading 157@(36@,6i) {heading} 65@(36@,6f)
add_blip_for_char 157@(36@,6i) {var_handle} 146@(36@,6i)
change_blip_display 146@(36@,6i) {display} BlipDisplay.BlipOnly
113@(36@,6i) = 1
126@(36@,6i) = 0
flush_patrol_route 
extend_patrol_route 71@(36@,6f) {y} 77@(36@,6f) {z} 83@(36@,6f) {animationName} "ROADCROSS" {animationFile} "PED"
extend_patrol_route 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {animationName} "ROADCROSS" {animationFile} "PED"
task_follow_patrol_route 157@(36@,6i) {speed} MoveState.Walk {mode} RouteMode.BackForward
goto @HEIST2_10097

:HEIST2_9790
create_char PedType.Mission2 {modelId} 50 {x} 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {var_handle} 157@(36@,6i)
set_follow_node_threshold_distance 157@(36@,6i) {range} 1.0
set_sense_range 157@(36@,6i) {range} 10.0
set_char_accuracy 157@(36@,6i) {accuracy} 85
set_inform_respected_friends 157@(36@,6i) {radius} 20.0 {_p3} 1
set_char_heading 157@(36@,6i) {heading} 65@(36@,6f)
if 
  36@ == 0
goto_if_false @HEIST2_9924
task_duck 157@(36@,6i) {time} -2

:HEIST2_9924
add_blip_for_char 157@(36@,6i) {var_handle} 146@(36@,6i)
change_blip_display 146@(36@,6i) {display} BlipDisplay.BlipOnly
113@(36@,6i) = 1
126@(36@,6i) = 0
184@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 47@(36@,6f) {y} 53@(36@,6f) {z} 59@(36@,6f) {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 65@(36@,6f)
task_duck -1 {time} 5000
task_scratch_head -1
task_play_anim -1 {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_use_atm -1
task_scratch_head -1
set_sequence_to_repeat 184@ {state} True
close_sequence_task 184@
perform_sequence_task 157@(36@,6i) {sequence} 184@
clear_sequence_task 184@

:HEIST2_10097
36@ += 1
goto @HEIST2_9385

:HEIST2_10111
107@ = 3

:HEIST2_10118
if 
  107@ == 3
goto_if_false @HEIST2_11565
120@ = 1
if or
  locate_char_on_foot_3d $scplayer {x} -942.0 {y} 1847.0 {z} 5.0 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} -960.0 {y} 1952.0 {z} 9.0 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST2_11565
set_fixed_camera_position -940.3428 {y} 1845.949 {z} 5.4312 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -940.8073 {y} 1846.819 {z} 5.5962 {switchStyle} SwitchType.JumpCut
switch_widescreen True
clear_prints 
clear_help 
do_fade 1500 {direction} Fade.In

:HEIST2_10294
if 
  get_fading_status 
goto_if_false @HEIST2_10318
wait 0
goto @HEIST2_10294

:HEIST2_10318
print 'HEI2_20' {time} 6000 {flag} 1
skip_cutscene_start_internal @HEIST2_11281

:HEIST2_10341
if 
  is_message_being_displayed 
goto_if_false @HEIST2_10365
wait 0
goto @HEIST2_10341

:HEIST2_10365
set_fixed_camera_position -959.851 {y} 1925.822 {z} 8.6787 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -959.1008 {y} 1925.218 {z} 8.9476 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 162@
goto_if_false @HEIST2_10439
freeze_char_position 162@ {state} True

:HEIST2_10439
print 'HEI2_2' {time} 6000 {flag} 1

:HEIST2_10455
if 
  is_message_being_displayed 
goto_if_false @HEIST2_10479
wait 0
goto @HEIST2_10455

:HEIST2_10479
set_fixed_camera_position -960.33 {y} 1925.24 {z} 9.12 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -938.79 {y} 1959.11 {z} 15.19 {switchStyle} SwitchType.JumpCut
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0

:HEIST2_10600
wait 0
if 
  213@ == 0
goto_if_false @HEIST2_11281
if 
  209@ <> 0
goto_if_false @HEIST2_10961
if 
  212@ == 0
goto_if_false @HEIST2_10686
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_10679
clear_mission_audio 211@

:HEIST2_10679
212@ = 1

:HEIST2_10686
if 
  212@ == 1
goto_if_false @HEIST2_10723
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_10723
if 
  212@ == 2
goto_if_false @HEIST2_10783
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_10783
play_mission_audio 210@
print_now $hei2_text(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_10783
if 
  212@ == 3
goto_if_false @HEIST2_10961
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_10900
clear_this_print $hei2_text(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_10865
210@ = 2
211@ = 1
goto @HEIST2_10879

:HEIST2_10865
210@ = 1
211@ = 2

:HEIST2_10879
209@ = 0
212@ = 0
goto @HEIST2_10961

:HEIST2_10900
if 
  not has_mission_audio_loaded 211@
goto_if_false @HEIST2_10961
if 
  8 > 209@
goto_if_false @HEIST2_10961
set_lvar_int_to_lvar_int 218@ = 209@
218@ += 1
load_mission_audio 211@ {audioId} 191@(218@,18i)

:HEIST2_10961
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST2_11202 {caseNum1} 0 {caseLabel1} @HEIST2_11024 {caseNum2} 1 {caseLabel2} @HEIST2_11097 {caseNum3} -1 {caseLabel3} @HEIST2_11274 {caseNum4} -1 {caseLabel4} @HEIST2_11274 {caseNum5} -1 {caseLabel5} @HEIST2_11274 {caseNum6} -1 {caseLabel6} @HEIST2_11274 {caseNum7} -1 {caseLabel7} @HEIST2_11274

:HEIST2_11024
if 
  212@ == 0
goto_if_false @HEIST2_11090
if 
  not is_char_dead 166@
goto_if_false @HEIST2_11071
stop_char_facial_talk 166@
start_char_facial_talk 166@ {duration} 4000

:HEIST2_11071
209@ = 12
214@ = 1
217@ = get_game_timer 

:HEIST2_11090
goto @HEIST2_11274

:HEIST2_11097
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_11195
if 
  212@ == 0
goto_if_false @HEIST2_11195
if 
  not is_char_dead 166@
goto_if_false @HEIST2_11176
stop_char_facial_talk 166@

:HEIST2_11176
209@ = 13
214@ = 2
217@ = get_game_timer 

:HEIST2_11195
goto @HEIST2_11274

:HEIST2_11202
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_11267
if 
  212@ == 0
goto_if_false @HEIST2_11267
213@ = 1

:HEIST2_11267
goto @HEIST2_11274

:HEIST2_11274
goto @HEIST2_10600

:HEIST2_11281
skip_cutscene_end 
if 
  not is_char_dead 162@
goto_if_false @HEIST2_11306
freeze_char_position 162@ {state} False

:HEIST2_11306
clear_prints 
print 'HEI2_2' {time} 4000 {flag} 1
restore_camera_jumpcut 
if 
  not is_char_dead 166@
goto_if_false @HEIST2_11383
39@ = get_script_task_status 166@ {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_11378
task_use_mobile_phone 166@ {start} False

:HEIST2_11378
mark_model_as_no_longer_needed 330

:HEIST2_11383
delete_char 166@
mark_char_as_no_longer_needed 166@
set_radar_zoom 90
clear_prints 
set_player_control $player1 {state} True
switch_widescreen False
37@ = 0

:HEIST2_11417
if 
  6 > 37@
goto_if_false @HEIST2_11558
if 
  5 > 37@
goto_if_false @HEIST2_11483
add_blip_for_coord 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {var_handle} 140@(37@,5i)

:HEIST2_11483
if 
  not is_char_dead 157@(37@,6i)
goto_if_false @HEIST2_11544
set_char_relationship 157@(37@,6i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_decision_maker 157@(37@,6i) {handleOrTemplate} 38@
set_inform_respected_friends 157@(37@,6i) {radius} 40.0 {_p3} 10

:HEIST2_11544
37@ += 1
goto @HEIST2_11417

:HEIST2_11558
107@ = 4

:HEIST2_11565
if 
  6 > 107@
goto_if_false @HEIST2_11709
if 
  120@ == 1
goto_if_false @HEIST2_11702
36@ = 0

:HEIST2_11608
if 
  6 > 36@
goto_if_false @HEIST2_11702
if 
  is_char_dead 157@(36@,6i)
goto_if_false @HEIST2_11688
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_11688
remove_blip 146@(36@,6i)
113@(36@,6i) = 0

:HEIST2_11688
36@ += 1
goto @HEIST2_11608

:HEIST2_11702
goto @HEIST2_11808

:HEIST2_11709
if 
  107@ == 6
goto_if_false @HEIST2_11808
36@ = 0

:HEIST2_11734
if 
  6 > 36@
goto_if_false @HEIST2_11808
if 
  113@(36@,6i) == 1
goto_if_false @HEIST2_11794
remove_blip 146@(36@,6i)
113@(36@,6i) = 0

:HEIST2_11794
36@ += 1
goto @HEIST2_11734

:HEIST2_11808
if and
  107@ > 2
  185@ == 0
goto_if_false @HEIST2_13330
if 
  not is_car_dead 168@
goto_if_false @HEIST2_11880
if 
  not is_car_on_screen 168@
goto_if_false @HEIST2_11880
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
delete_car 168@

:HEIST2_11880
if 
  209@ <> 0
goto_if_false @HEIST2_12151
if 
  212@ == 0
goto_if_false @HEIST2_11944
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_11937
clear_mission_audio 211@

:HEIST2_11937
212@ = 1

:HEIST2_11944
if 
  212@ == 1
goto_if_false @HEIST2_11981
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_11981
if 
  212@ == 2
goto_if_false @HEIST2_12041
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_12041
play_mission_audio 210@
print_now $hei2_text(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_12041
if 
  212@ == 3
goto_if_false @HEIST2_12151
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_12151
clear_this_print $hei2_text(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_12123
210@ = 2
211@ = 1
goto @HEIST2_12137

:HEIST2_12123
210@ = 1
211@ = 2

:HEIST2_12137
209@ = 0
212@ = 0

:HEIST2_12151
36@ = 0

:HEIST2_12158
if 
  6 > 36@
goto_if_false @HEIST2_13203
if 
  not is_char_dead 157@(36@,6i)
goto_if_false @HEIST2_13189
if 
  126@(36@,6i) == 0
goto_if_false @HEIST2_12421
if or
  is_char_responding_to_event 157@(36@,6i) {event} Event.SoundQuiet
  is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHateBadlyLit
goto_if_false @HEIST2_12421
if 
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
goto_if_false @HEIST2_12421
if 
  212@ == 0
goto_if_false @HEIST2_12389
if 
  36@ > 1
goto_if_false @HEIST2_12389
41@ = generate_random_int_in_range 0 {max} 3
if 
  41@ == 0
goto_if_false @HEIST2_12350
209@ = 6
goto @HEIST2_12389

:HEIST2_12350
if 
  41@ == 1
goto_if_false @HEIST2_12382
209@ = 3
goto @HEIST2_12389

:HEIST2_12382
209@ = 2

:HEIST2_12389
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.StealthAlertGeneric {overrideSilence} True {ignoreMute} False {frontEnd} False
126@(36@,6i) = 1

:HEIST2_12421
if 
  126@(36@,6i) == 1
goto_if_false @HEIST2_12635
if and
  not is_char_responding_to_event 157@(36@,6i) {event} Event.SoundQuiet
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 157@(36@,6i) {event} Event.ShotFired
  not is_char_responding_to_event 157@(36@,6i) {event} Event.Damage
  not is_char_responding_to_event 157@(36@,6i) {event} Event.GunAimedAt
goto_if_false @HEIST2_12635
if 
  212@ == 0
goto_if_false @HEIST2_12604
if 
  36@ > 1
goto_if_false @HEIST2_12604
41@ = generate_random_int_in_range 0 {max} 2
if 
  41@ == 0
goto_if_false @HEIST2_12597
209@ = 11
goto @HEIST2_12604

:HEIST2_12597
209@ = 9

:HEIST2_12604
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.Arrest {overrideSilence} True {ignoreMute} False {frontEnd} False
126@(36@,6i) = 0

:HEIST2_12635
if or
  126@(36@,6i) == 0
  126@(36@,6i) == 1
goto_if_false @HEIST2_12910
if or
  is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
  is_char_responding_to_event 157@(36@,6i) {event} Event.ShotFired
  is_char_responding_to_event 157@(36@,6i) {event} Event.Damage
  is_char_responding_to_event 157@(36@,6i) {event} Event.GunAimedAt
goto_if_false @HEIST2_12910
if 
  212@ == 0
goto_if_false @HEIST2_12871
if 
  36@ > 1
goto_if_false @HEIST2_12871
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_12800
209@ = 1
goto @HEIST2_12871

:HEIST2_12800
if 
  41@ == 1
goto_if_false @HEIST2_12832
209@ = 8
goto @HEIST2_12871

:HEIST2_12832
if 
  41@ == 2
goto_if_false @HEIST2_12864
209@ = 4
goto @HEIST2_12871

:HEIST2_12864
209@ = 12

:HEIST2_12871
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.StealthDefSighting {overrideSilence} True {ignoreMute} False {frontEnd} False
105@ = 1
126@(36@,6i) = 2

:HEIST2_12910
if 
  126@(36@,6i) == 2
goto_if_false @HEIST2_13189
if and
  not is_char_responding_to_event 157@(36@,6i) {event} Event.SoundQuiet
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHateBadlyLit
  not is_char_responding_to_event 157@(36@,6i) {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 157@(36@,6i) {event} Event.ShotFired
  not is_char_responding_to_event 157@(36@,6i) {event} Event.Damage
  not is_char_responding_to_event 157@(36@,6i) {event} Event.GunAimedAt
goto_if_false @HEIST2_13189
if 
  212@ == 0
goto_if_false @HEIST2_13157
if 
  36@ > 1
goto_if_false @HEIST2_13157
41@ = generate_random_int_in_range 0 {max} 4
if 
  41@ == 0
goto_if_false @HEIST2_13086
209@ = 1
goto @HEIST2_13157

:HEIST2_13086
if 
  41@ == 5
goto_if_false @HEIST2_13118
209@ = 8
goto @HEIST2_13157

:HEIST2_13118
if 
  41@ == 2
goto_if_false @HEIST2_13150
209@ = 7
goto @HEIST2_13157

:HEIST2_13150
209@ = 10

:HEIST2_13157
219@ = set_char_say_context_important 157@(36@,6i) {phrase} SpeechId.StealthNothingThere {overrideSilence} True {ignoreMute} False {frontEnd} False
126@(36@,6i) = 0

:HEIST2_13189
36@ += 1
goto @HEIST2_12158

:HEIST2_13203
if 
  133@ == 0
goto_if_false @HEIST2_13271
if 
  105@ == 1
goto_if_false @HEIST2_13271
if 
  212@ == 0
goto_if_false @HEIST2_13271
133@ = 1
209@ = 4

:HEIST2_13271
if 
  212@ == 0
goto_if_false @HEIST2_13330
if 
  not is_int_lvar_equal_to_int_lvar 42@ == 209@
goto_if_false @HEIST2_13323
set_lvar_int_to_lvar_int 42@ = 209@
goto @HEIST2_13330

:HEIST2_13323
209@ = 0

:HEIST2_13330
if 
  107@ == 4
goto_if_false @HEIST2_14449
if 
  5 > 34@
goto_if_false @HEIST2_14386
122@ = 0
37@ = 0

:HEIST2_13380
if 
  5 > 37@
goto_if_false @HEIST2_14359
if 
  108@(37@,5i) == 0
goto_if_false @HEIST2_14345
if 
  locate_char_on_foot_3d $scplayer {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST2_14345
122@ = 1
if 
  121@ == 0
goto_if_false @HEIST2_13517
121@ = 1
print_help 'HEI2_6'

:HEIST2_13517
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST2_14345
clear_help 
121@ = 0
34@ += 1
remove_blip 140@(37@,5i)
if 
  is_char_ducking $scplayer
goto_if_false @HEIST2_13589
134@ = 1
goto @HEIST2_13596

:HEIST2_13589
134@ = 0

:HEIST2_13596
set_player_control $player1 {state} False
182@ = open_sequence_task 
if 
  134@ == 0
goto_if_false @HEIST2_13699
task_turn_char_to_face_coord -1 {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f)
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @HEIST2_13747

:HEIST2_13699
task_play_anim -1 {animationName} "BOM_PLANT_CROUCH_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST2_13747
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  134@ == 1
goto_if_false @HEIST2_13913
task_play_anim -1 {animationName} "BOM_PLANT_CROUCH_OUT" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_toggle_duck -1 {state} True
goto @HEIST2_13957

:HEIST2_13913
task_play_anim -1 {animationName} "BOM_PLANT_2IDLE" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST2_13957
close_sequence_task 182@
perform_sequence_task $scplayer {sequence} 182@
clear_sequence_task 182@
TIMERA = 0
106@ = 0

:HEIST2_13989
if 
  106@ == 0
goto_if_false @HEIST2_14311
if 
  134@ == 0
goto_if_false @HEIST2_14168
if or
  is_char_playing_anim $scplayer {animationName} "BOM_PLANT_2IDLE"
  TIMERA > 6000
goto_if_false @HEIST2_14161
get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {var_x} 89@(37@,5f) {var_y} 94@(37@,5f) {var_z} 99@(37@,5f)
create_object 363 {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {var_handle} 169@(37@,5i)
set_object_heading 169@(37@,5i) {heading} 100.0
106@ = 1

:HEIST2_14161
goto @HEIST2_14300

:HEIST2_14168
39@ = get_script_task_status $scplayer {taskId} 1560
if or
  is_int_lvar_equal_to_constant 39@ == 7
  TIMERA > 6000
goto_if_false @HEIST2_14300
get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {var_x} 89@(37@,5f) {var_y} 94@(37@,5f) {var_z} 99@(37@,5f)
create_object 363 {x} 89@(37@,5f) {y} 94@(37@,5f) {z} 99@(37@,5f) {var_handle} 169@(37@,5i)
set_object_heading 169@(37@,5i) {heading} 100.0
106@ = 1

:HEIST2_14300
wait 0
goto @HEIST2_13989

:HEIST2_14311
print_now 'HEI2_58' {time} 4000 {flag} 1
set_player_control $player1 {state} True
108@(37@,5i) = 1

:HEIST2_14345
37@ += 1
goto @HEIST2_13380

:HEIST2_14359
if 
  122@ == 0
goto_if_false @HEIST2_14386
clear_help 
121@ = 0

:HEIST2_14386
if 
  34@ == 5
goto_if_false @HEIST2_14449
clear_prints 
145@ = add_blip_for_coord -959.5947 {y} 1953.1219 {z} 8.0078
print 'HEI2_5' {time} 10000 {flag} 1
107@ = 5

:HEIST2_14449
if 
  107@ == 5
goto_if_false @HEIST2_14806
if 
  locate_char_on_foot_3d $scplayer {x} -959.5947 {y} 1953.1219 {z} 8.0078 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} 35@
goto_if_false @HEIST2_14799
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1500 {direction} Fade.Out

:HEIST2_14534
if 
  get_fading_status 
goto_if_false @HEIST2_14558
wait 0
goto @HEIST2_14534

:HEIST2_14558
185@ = 1
35@ = 0
remove_blip 145@
remove_pickup 104@
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
delete_object 169@
delete_object 170@
delete_object 171@
delete_object 172@
delete_object 173@
delete_char 157@
delete_char 158@
delete_char 159@
delete_char 160@
delete_char 161@
delete_char 162@
mark_object_as_no_longer_needed 169@
mark_object_as_no_longer_needed 170@
mark_object_as_no_longer_needed 171@
mark_object_as_no_longer_needed 172@
mark_object_as_no_longer_needed 173@
mark_char_as_no_longer_needed 157@
mark_char_as_no_longer_needed 158@
mark_char_as_no_longer_needed 159@
mark_char_as_no_longer_needed 160@
mark_char_as_no_longer_needed 161@
mark_char_as_no_longer_needed 162@
mark_model_as_no_longer_needed 363
request_model 453

:HEIST2_14716
if 
  not has_model_loaded 453
goto_if_false @HEIST2_14743
wait 0
goto @HEIST2_14716

:HEIST2_14743
167@ = create_car 453 {x} -638.0 {y} 1955.0 {z} 1.0
set_car_heading 167@ {heading} 180.0
gosub @HEIST2_14813
clear_prints 
goto @HEIST2_18813
goto @HEIST2_14806

:HEIST2_14799
35@ = 1

:HEIST2_14806
goto @HEIST2_1813

:HEIST2_14813
if 
  119@ == 0
goto_if_false @HEIST2_18793
clear_prints 
set_player_control $player1 {state} False
switch_widescreen True
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @HEIST2_14869
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute

:HEIST2_14869
request_animation "DAM_JUMP"
request_animation "BD_FIRE"
request_animation "BOMBER"
request_model 427
request_model 599
set_area_visible 0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True

:HEIST2_14930
if or
  not has_animation_loaded "DAM_JUMP"
  not has_animation_loaded "BD_FIRE"
  not has_animation_loaded "BOMBER"
  not has_model_loaded 599
  not has_model_loaded 427
goto_if_false @HEIST2_14995
wait 0
goto @HEIST2_14930

:HEIST2_14995
clear_extra_colours False
set_char_coordinates $scplayer {x} -596.3235 {y} 2015.608 {z} 75.9845
set_char_heading $scplayer {heading} 330.0
load_scene -594.9886 {y} 2018.639 {z} 76.8829
request_collision -594.9886 {y} 2018.639
set_fixed_camera_position -595.73 {y} 2001.92 {z} 78.66 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -601.02 {y} 2033.63 {z} 73.91 {switchStyle} SwitchType.JumpCut
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area -683.0 {y} 2053.0 {z} 59.1719 {radius} 50.0 {clearParticles} True
clear_area -488.0 {y} 2001.0 {z} 59.4028 {radius} 50.0 {clearParticles} True
225@ = create_car 599 {x} -683.0 {y} 2053.0 {z} 59.1719
set_car_heading 225@ {heading} 268.7848
set_car_can_go_against_traffic 225@ {state} True
switch_car_siren 225@ {state} True
226@ = create_car 599 {x} -486.0 {y} 2006.0 {z} 59.4028
set_car_heading 226@ {heading} 130.7071
set_car_can_go_against_traffic 226@ {state} True
switch_car_siren 226@ {state} True
227@ = create_car 427 {x} -694.0 {y} 2055.0 {z} 59.1719
set_car_heading 227@ {heading} 268.7848
set_car_can_go_against_traffic 227@ {state} True
switch_car_siren 227@ {state} True
228@ = create_car 427 {x} -491.0 {y} 1997.0 {z} 59.4028
set_car_heading 228@ {heading} 126.7071
set_car_can_go_against_traffic 228@ {state} True
switch_car_siren 228@ {state} True
alter_wanted_level_no_drop $player1 {wantedLevel} 2
do_fade 1500 {direction} Fade.In

:HEIST2_15373
if 
  get_fading_status 
goto_if_false @HEIST2_15397
wait 0
goto @HEIST2_15373

:HEIST2_15397
TIMERB = 0
clear_char_tasks $scplayer
skip_cutscene_start_internal @HEIST2_18583
209@ = 0
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
222@ = 0
224@ = 0
223@ = 0

:HEIST2_15507
wait 0
if 
  209@ <> 0
goto_if_false @HEIST2_15782
if 
  212@ == 0
goto_if_false @HEIST2_15575
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_15568
clear_mission_audio 211@

:HEIST2_15568
212@ = 1

:HEIST2_15575
if 
  212@ == 1
goto_if_false @HEIST2_15612
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_15612
if 
  212@ == 2
goto_if_false @HEIST2_15672
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_15672
play_mission_audio 210@
print_now $hei2_text(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_15672
if 
  212@ == 3
goto_if_false @HEIST2_15782
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_15782
clear_this_print $hei2_text(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_15754
210@ = 2
211@ = 1
goto @HEIST2_15768

:HEIST2_15754
210@ = 1
211@ = 2

:HEIST2_15768
209@ = 0
212@ = 0

:HEIST2_15782
if 
  222@ <> 0
goto_if_false @HEIST2_15971
if 
  223@ == 0
goto_if_false @HEIST2_15844
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST2_15837
clear_mission_audio MissionAudioSlot.Slot3

:HEIST2_15837
223@ = 1

:HEIST2_15844
if 
  223@ == 1
goto_if_false @HEIST2_15880
load_mission_audio MissionAudioSlot.Slot3 {audioId} 220@(222@,2i)
223@ = 2

:HEIST2_15880
if 
  223@ == 2
goto_if_false @HEIST2_15924
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST2_15924
play_mission_audio MissionAudioSlot.Slot3
223@ = 3

:HEIST2_15924
if 
  223@ == 3
goto_if_false @HEIST2_15971
if 
  has_mission_audio_finished MissionAudioSlot.Slot3
goto_if_false @HEIST2_15971
222@ = 0
223@ = 0

:HEIST2_15971
switch_start 214@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @HEIST2_16475 {caseNum1} 0 {caseLabel1} @HEIST2_16034 {caseNum2} 1 {caseLabel2} @HEIST2_16096 {caseNum3} -1 {caseLabel3} @HEIST2_16560 {caseNum4} -1 {caseLabel4} @HEIST2_16560 {caseNum5} -1 {caseLabel5} @HEIST2_16560 {caseNum6} -1 {caseLabel6} @HEIST2_16560 {caseNum7} -1 {caseLabel7} @HEIST2_16560

:HEIST2_16034
if 
  212@ == 0
goto_if_false @HEIST2_16089
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
209@ = 16
task_scratch_head $scplayer
214@ = 1
217@ = get_game_timer 

:HEIST2_16089
goto @HEIST2_16560

:HEIST2_16096
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 2000
goto_if_false @HEIST2_16468
if 
  212@ == 0
goto_if_false @HEIST2_16468
if 
  224@ == 1
goto_if_false @HEIST2_16436
if 
  223@ == 0
goto_if_false @HEIST2_16429
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
209@ = 14
214@ = 2
217@ = get_game_timer 
set_fixed_camera_position -596.53 {y} 2013.11 {z} 76.53 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -598.08 {y} 2045.39 {z} 79.93 {switchStyle} SwitchType.JumpCut
clear_char_tasks $scplayer
183@ = open_sequence_task 
task_play_anim -1 {animationName} "BOM_PLANT_IN" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BOM_PLANT_2IDLE" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 183@
perform_sequence_task $scplayer {sequence} 183@
clear_sequence_task 183@

:HEIST2_16429
goto @HEIST2_16468

:HEIST2_16436
if 
  224@ == 0
goto_if_false @HEIST2_16468
222@ = 1
224@ = 1

:HEIST2_16468
goto @HEIST2_16560

:HEIST2_16475
216@ = get_game_timer 
set_lvar_int_to_lvar_int 215@ = 216@
sub_int_lvar_from_int_lvar 215@ -= 217@
if 
  215@ > 1000
goto_if_false @HEIST2_16553
if 
  212@ == 0
goto_if_false @HEIST2_16553
stop_char_facial_talk $scplayer
start_char_facial_talk $scplayer {duration} 4000
213@ = 1

:HEIST2_16553
goto @HEIST2_16560

:HEIST2_16560
if 
  213@ == 0
goto_if_false @HEIST2_16585
goto @HEIST2_15507

:HEIST2_16585
106@ = 0
TIMERA = 0

:HEIST2_16599
if 
  106@ == 0
goto_if_false @HEIST2_16664
39@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_16653
106@ = 1

:HEIST2_16653
wait 0
goto @HEIST2_16599

:HEIST2_16664
clear_char_tasks $scplayer
clear_look_at $scplayer
183@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} -598.5344 {y} 2017.53 {z} 75.9845 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 70.0
task_play_anim_non_interruptable -1 {animationName} "BD_PANIC_02" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 183@
perform_sequence_task $scplayer {sequence} 183@
clear_sequence_task 183@
209@ = 17
210@ = 1
211@ = 2
212@ = 0
213@ = 0
214@ = 0
215@ = 0
216@ = 0
217@ = 0
218@ = 0
106@ = 0
TIMERA = 0

:HEIST2_16854
if 
  106@ == 0
goto_if_false @HEIST2_17404
if 
  209@ <> 0
goto_if_false @HEIST2_17143
if 
  212@ == 0
goto_if_false @HEIST2_16936
if 
  has_mission_audio_loaded 211@
goto_if_false @HEIST2_16929
clear_mission_audio 211@

:HEIST2_16929
212@ = 1

:HEIST2_16936
if 
  212@ == 1
goto_if_false @HEIST2_16973
load_mission_audio 210@ {audioId} 191@(209@,18i)
212@ = 2

:HEIST2_16973
if 
  212@ == 2
goto_if_false @HEIST2_17033
if 
  has_mission_audio_loaded 210@
goto_if_false @HEIST2_17033
play_mission_audio 210@
print_now $hei2_text(209@,18s) {time} 10000 {flag} 1
212@ = 3

:HEIST2_17033
if 
  212@ == 3
goto_if_false @HEIST2_17143
if 
  has_mission_audio_finished 210@
goto_if_false @HEIST2_17143
clear_this_print $hei2_text(209@,18s)
if 
  210@ == 1
goto_if_false @HEIST2_17115
210@ = 2
211@ = 1
goto @HEIST2_17129

:HEIST2_17115
210@ = 1
211@ = 2

:HEIST2_17129
209@ = 0
212@ = 0

:HEIST2_17143
39@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_17186
106@ = 1
goto @HEIST2_17393

:HEIST2_17186
if 
  is_int_lvar_equal_to_constant 39@ == 1
goto_if_false @HEIST2_17393
39@ = get_sequence_progress $scplayer
if 
  39@ == 1
goto_if_false @HEIST2_17393
if 
  not is_car_dead 225@
goto_if_false @HEIST2_17286
set_car_forward_speed 225@ {forwardSpeed} 20.0
set_car_cruise_speed 225@ {maxSpeed} 40.0
car_goto_coordinates 225@ {x} -591.4136 {y} 2024.863 {z} 59.1719

:HEIST2_17286
if 
  not is_car_dead 227@
goto_if_false @HEIST2_17342
set_car_forward_speed 227@ {forwardSpeed} 20.0
set_car_cruise_speed 227@ {maxSpeed} 40.0
car_goto_coordinates 227@ {x} -591.4136 {y} 2024.863 {z} 59.1719

:HEIST2_17342
set_fixed_camera_position -597.14 {y} 2017.04 {z} 78.03 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -637.05 {y} 2036.76 {z} 64.61 {switchStyle} SwitchType.JumpCut

:HEIST2_17393
wait 0
goto @HEIST2_16854

:HEIST2_17404
set_char_coordinates $scplayer {x} -598.5344 {y} 2017.53 {z} 75.9845
set_char_heading $scplayer {heading} 70.0
set_fixed_camera_position -601.69 {y} 2017.41 {z} 78.85 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -576.19 {y} 2014.02 {z} 68.86 {switchStyle} SwitchType.JumpCut
183@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BD_PANIC_04" {animationFile} "BD_FIRE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_go_to_coord_any_means -1 {x} -596.3235 {y} 2015.608 {z} 75.9845 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 148.5634
close_sequence_task 183@
perform_sequence_task $scplayer {sequence} 183@
clear_sequence_task 183@
106@ = 0
TIMERA = 0

:HEIST2_17595
if 
  106@ == 0
goto_if_false @HEIST2_17823
39@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_17656
106@ = 1
goto @HEIST2_17812

:HEIST2_17656
if 
  is_int_lvar_equal_to_constant 39@ == 1
goto_if_false @HEIST2_17812
39@ = get_sequence_progress $scplayer
if 
  39@ == 0
goto_if_false @HEIST2_17812
if 
  not is_car_dead 226@
goto_if_false @HEIST2_17756
set_car_forward_speed 226@ {forwardSpeed} 20.0
set_car_cruise_speed 226@ {maxSpeed} 40.0
car_goto_coordinates 226@ {x} -587.4136 {y} 2036.863 {z} 59.1719

:HEIST2_17756
if 
  not is_car_dead 228@
goto_if_false @HEIST2_17812
set_car_forward_speed 228@ {forwardSpeed} 20.0
set_car_cruise_speed 228@ {maxSpeed} 40.0
car_goto_coordinates 228@ {x} -587.4136 {y} 2036.863 {z} 59.1719

:HEIST2_17812
wait 0
goto @HEIST2_17595

:HEIST2_17823
set_fixed_camera_position -596.51 {y} 2000.5 {z} 79.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -600.79 {y} 2009.02 {z} 75.31 {switchStyle} SwitchType.JumpCut
clear_look_at $scplayer
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} -596.3235 {y} 2015.608 {z} 75.9845
set_char_heading $scplayer {heading} 148.5634
task_play_anim_non_interruptable $scplayer {animationName} "DAM_LAUNCH" {animationFile} "DAM_JUMP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
106@ = 0

:HEIST2_17963
if 
  106@ == 0
goto_if_false @HEIST2_18053
39@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_18042
set_char_coordinates $scplayer {x} -613.74 {y} 1980.77 {z} 52.13
wait 200
106@ = 1

:HEIST2_18042
wait 0
goto @HEIST2_17963

:HEIST2_18053
set_fixed_camera_position -607.52 {y} 1963.5 {z} 41.26 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
delete_car 225@
delete_car 226@
delete_car 227@
delete_car 228@
task_play_anim_non_interruptable $scplayer {animationName} "DAM_DIVE_LOOP" {animationFile} "DAM_JUMP" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
106@ = 0

:HEIST2_18166
if 
  106@ == 0
goto_if_false @HEIST2_18250
if 
  locate_char_any_means_3d $scplayer {x} -613.74 {y} 1980.77 {z} 10.824 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 1.0 {drawSphere} False
goto_if_false @HEIST2_18239
106@ = 1

:HEIST2_18239
wait 0
goto @HEIST2_18166

:HEIST2_18250
set_fixed_camera_position -620.95 {y} 1970.46 {z} 4.58 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -610.92 {y} 1984.83 {z} -2.79 {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $scplayer {animationName} "DAM_LAND" {animationFile} "DAM_JUMP" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
106@ = 0
125@ = 0

:HEIST2_18355
if 
  106@ == 0
goto_if_false @HEIST2_18583
39@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 39@ == 7
goto_if_false @HEIST2_18416
106@ = 1
goto @HEIST2_18572

:HEIST2_18416
if 
  125@ == 0
goto_if_false @HEIST2_18572
if 
  is_char_playing_anim $scplayer {animationName} "DAM_LAND"
goto_if_false @HEIST2_18572
46@ = get_char_anim_current_time $scplayer {animationName} "DAM_LAND"
if 
  46@ > 0.115
goto_if_false @HEIST2_18572
40@ = create_fx_system "WATER_SPLASH" {x} -613.74 {y} 1980.77 {z} -0.8 {ignoreBoundingChecks} True
if 
  40@ == -1
goto_if_false @HEIST2_18560
goto @HEIST2_18572

:HEIST2_18560
play_and_kill_fx_system 40@
125@ = 1

:HEIST2_18572
wait 0
goto @HEIST2_18355

:HEIST2_18583
skip_cutscene_end 
clear_mission_audio 210@
clear_mission_audio 211@
clear_prints 
do_fade 1000 {direction} Fade.Out

:HEIST2_18604
if 
  get_fading_status 
goto_if_false @HEIST2_18628
wait 0
goto @HEIST2_18604

:HEIST2_18628
set_char_coordinates_no_offset $scplayer {x} -613.74 {y} 1980.77 {z} -0.5
set_char_heading $scplayer {heading} 148.5634
remove_animation "DAM_JUMP"
remove_animation "BOMBER"
remove_animation "BD_FIRE"
mark_car_as_no_longer_needed 225@
mark_car_as_no_longer_needed 226@
mark_car_as_no_longer_needed 227@
mark_car_as_no_longer_needed 228@
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed 427
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
restore_camera_jumpcut 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
do_fade 1500 {direction} Fade.In

:HEIST2_18755
if 
  get_fading_status 
goto_if_false @HEIST2_18779
wait 0
goto @HEIST2_18755

:HEIST2_18779
set_player_control $player1 {state} True
119@ = 1

:HEIST2_18793
return 

:HEIST2_18795
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST2_18813
$flag_heist_mission_counter += 1
register_mission_passed 'HEIST_2'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 5 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 5
return 

:HEIST2_18863
$para_pickup_flag = 1
$timer_mobile_start = get_game_timer 
display_radar True
release_weather 
set_radar_zoom 0
switch_entry_exit 'DAMIN' {state} True
switch_entry_exit 'DAMOUT' {state} True
remove_car_recording 805
if 
  135@ == 1
goto_if_false @HEIST2_18957
if 
  is_player_playing $player1
goto_if_false @HEIST2_18957
set_player_cycle_weapon_button $player1 {enabled} True

:HEIST2_18957
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_area51_sam_site True
remove_blip 140@
remove_blip 141@
remove_blip 142@
remove_blip 143@
remove_blip 144@
remove_blip 154@
remove_blip 155@
remove_blip 145@
remove_blip 152@
remove_blip 156@
36@ = 0

:HEIST2_19032
if 
  6 > 36@
goto_if_false @HEIST2_19073
remove_blip 146@(36@,6i)
36@ += 1
goto @HEIST2_19032

:HEIST2_19073
delete_checkpoint 153@
mark_object_as_no_longer_needed 169@
mark_object_as_no_longer_needed 170@
mark_object_as_no_longer_needed 171@
mark_object_as_no_longer_needed 172@
mark_object_as_no_longer_needed 173@
mark_object_as_no_longer_needed 174@
mark_object_as_no_longer_needed 175@
mark_object_as_no_longer_needed 176@
mark_object_as_no_longer_needed 177@
mark_object_as_no_longer_needed 178@
mark_object_as_no_longer_needed 179@
mark_object_as_no_longer_needed 180@
mark_char_as_no_longer_needed 163@
mark_char_as_no_longer_needed 164@
mark_char_as_no_longer_needed 157@
mark_char_as_no_longer_needed 158@
mark_char_as_no_longer_needed 159@
mark_char_as_no_longer_needed 160@
mark_char_as_no_longer_needed 161@
mark_char_as_no_longer_needed 162@
mark_char_as_no_longer_needed 165@
mark_char_as_no_longer_needed 165@
mark_car_as_no_longer_needed 167@
mark_car_as_no_longer_needed 225@
mark_car_as_no_longer_needed 226@
mark_car_as_no_longer_needed 227@
mark_car_as_no_longer_needed 228@
mark_model_as_no_longer_needed 427
mark_model_as_no_longer_needed 599
mark_model_as_no_longer_needed #SMASHBOXPILE
mark_model_as_no_longer_needed #K_CARGO1
mark_model_as_no_longer_needed #KMB_CONTAINER_RED
mark_model_as_no_longer_needed #K_CARGO4
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 334
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 453
mark_model_as_no_longer_needed 335
lock_car_doors 168@ {lockStatus} CarLock.Unlocked
mark_car_as_no_longer_needed 168@
mark_model_as_no_longer_needed 553
mark_model_as_no_longer_needed #SW_BIT_09
remove_pickup 104@
remove_animation "BOMBER"
remove_animation "DAM_JUMP"
remove_animation "BD_FIRE"
remove_decision_maker 38@
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 99---------------
// Originally: Cop Wheels

:HEIST4
script_name 'HEIST4'
gosub @HEIST4_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST4_38
gosub @HEIST4_13162

:HEIST4_38
gosub @HEIST4_13235
terminate_this_script 

:HEIST4_47
$onmission = 1
register_mission_given 
load_mission_text 'HEIST4'
wait 0
set_area_visible 10
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
set_char_coordinates $scplayer {x} 2033.974 {y} 1017.29 {z} 9.8203
set_char_heading $scplayer {heading} 288.0
34@ = get_player_group $player1
set_player_group_recruitment $player1 {state} False
set_group_follow_status 34@ {state} False
set_player_group_to_follow_never $player1 {state} True
load_cutscene 'HEIST5A'

:HEIST4_165
if 
  not has_cutscene_loaded 
goto_if_false @HEIST4_189
wait 0
goto @HEIST4_165

:HEIST4_189
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST4_198
if 
  not has_cutscene_finished 
goto_if_false @HEIST4_222
wait 0
goto @HEIST4_198

:HEIST4_222
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST4_235
if 
  get_fading_status 
goto_if_false @HEIST4_259
wait 0
goto @HEIST4_235

:HEIST4_259
clear_cutscene 
switch_cops_on_bikes False
load_scene 2031.168 {y} 1030.918 {z} 9.813
request_collision 2031.168 {y} 1030.918
set_area_visible 0
wait 0
set_player_control $player1 {state} False
104@ = 0
194@ = 1
195@ = 2
196@ = 0
197@ = 1
198@ = 0
199@ = 0
set_lvar_text_label 139@s = 'HE4_AA'
set_lvar_text_label 141@s = 'HE4_AB'
set_lvar_text_label 143@s = 'HE4_AC'
set_lvar_text_label 145@s = 'HE4_BA'
set_lvar_text_label 147@s = 'HE4_BB'
set_lvar_text_label 149@s = 'HE4_BC'
set_lvar_text_label 151@s = 'HE4_BD'
set_lvar_text_label 153@s = 'HE4_BE'
set_lvar_text_label 155@s = 'HE4_BF'
set_lvar_text_label 157@s = 'HE4_BG'
set_lvar_text_label 159@s = 'HE4_BH'
set_lvar_text_label 161@s = 'HE4_BJ'
set_lvar_text_label 163@s = 'HE4_BK'
set_lvar_text_label 165@s = 'HE4_BL'
set_lvar_text_label 167@s = 'HE4_BM'
set_lvar_text_label 169@s = 'HE4_CA'
set_lvar_text_label 171@s = 'HE4_CB'
set_lvar_int_to_constant 176@ = 18600
set_lvar_int_to_constant 177@ = 18601
set_lvar_int_to_constant 178@ = 18602
set_lvar_int_to_constant 179@ = 18603
set_lvar_int_to_constant 180@ = 18604
set_lvar_int_to_constant 181@ = 18605
set_lvar_int_to_constant 182@ = 18606
set_lvar_int_to_constant 183@ = 18607
set_lvar_int_to_constant 184@ = 18608
set_lvar_int_to_constant 185@ = 18609
set_lvar_int_to_constant 186@ = 18610
set_lvar_int_to_constant 187@ = 18611
set_lvar_int_to_constant 188@ = 18612
set_lvar_int_to_constant 189@ = 18613
set_lvar_int_to_constant 190@ = 18614
set_lvar_int_to_constant 191@ = 18615
set_lvar_int_to_constant 192@ = 18616
request_model 443
request_model 523
request_model 284
request_model 346
request_model 598
request_model 32
request_model 463
request_model 34
request_model 33
request_model 50
request_model 117
request_animation "SMOKING"
request_animation "MISC"
set_char_heading $scplayer {heading} 342.8127
load_all_models_now 

:HEIST4_813
if or
  not has_model_loaded 443
  not has_model_loaded 523
  not has_model_loaded 284
  not has_model_loaded 346
  not has_model_loaded 32
goto_if_false @HEIST4_859
wait 0
goto @HEIST4_813

:HEIST4_859
if or
  not has_animation_loaded "SMOKING"
  not has_model_loaded 598
  not has_animation_loaded "MISC"
  not has_model_loaded 463
goto_if_false @HEIST4_910
wait 0
goto @HEIST4_859

:HEIST4_910
if or
  not has_model_loaded 50
  not has_model_loaded 33
  not has_model_loaded 34
  not has_model_loaded 117
goto_if_false @HEIST4_948
wait 0
goto @HEIST4_910

:HEIST4_948
load_scene 2031.168 {y} 1030.918 {z} 9.813
61@ = load_char_decision_maker DecisionMakerType.Empty
62@ = load_char_decision_maker DecisionMakerType.Tough
111@, 112@, 113@ = get_char_coordinates $scplayer
clear_area 111@ {y} 112@ {z} 113@ {radius} 1000.0 {clearParticles} False

:HEIST4_1011
if 
  not is_player_playing $player1
goto_if_false @HEIST4_1038
wait 0
goto @HEIST4_1011

:HEIST4_1038
204@ = 2710.623
224@ = 1397.8831
205@ = 2711.071
225@ = 1175.0031
206@ = 2590.812
226@ = 898.2437
207@ = 2203.896
227@ = 849.0437
208@ = 1833.473
228@ = 850.4182
209@ = 1541.6021
229@ = 848.788
210@ = 1288.89
230@ = 901.789
211@ = 1224.975
231@ = 1240.59
212@ = 1224.064
232@ = 1744.703
213@ = 1224.173
233@ = 2071.7029
214@ = 1279.245
234@ = 2398.6831
215@ = 1566.816
235@ = 2457.2329
216@ = 1931.45
236@ = 2521.8579
217@ = 2442.573
237@ = 2609.429
218@ = 2704.658
238@ = 2343.6541
219@ = 2710.8911
239@ = 2065.3169
220@ = 2711.8921
240@ = 1830.5
clear_area 2710.5249 {y} 1567.009 {z} 100.0 {radius} 100.0 {clearParticles} False
custom_plate_for_next_car 443 {text} "CFC_1888"
244@ = create_car 443 {x} 2711.3259 {y} 1567.045 {z} 6.2
set_car_heading 244@ {heading} 175.1379
change_car_colour 244@ {color1} 16 {color2} 16
set_upsidedown_car_not_damaged 244@ {state} True
set_car_health 244@ {health} 2500
add_upsidedown_car_check 244@
add_stuck_car_check 244@ {distance} 4.0 {time} 3000
open_car_door 244@ {door} CarDoor.RightFrontDoor
set_car_stay_in_fast_lane 244@ {state} True
set_car_only_damaged_by_player 244@ {state} True
lock_car_doors 244@ {lockStatus} CarLock.Locked
set_car_can_go_against_traffic 244@ {state} False
245@ = create_char_inside_car 244@ {pedType} PedType.Mission1 {modelId} 117
115@ = create_char PedType.Mission1 {modelId} 50 {x} 2715.3259 {y} 1569.045 {z} 7.2
set_char_proofs 115@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_never_targetted 115@ {state} True
attach_char_to_car 115@ {vehicle} 244@ {xOffset} 1.0 {yOffset} 3.1 {zOffset} 0.4 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.Unarmed
set_load_collision_for_char_flag 115@ {state} False
set_char_decision_maker 245@ {handleOrTemplate} 61@
set_char_decision_maker 115@ {handleOrTemplate} 61@
set_load_collision_for_char_flag 245@ {state} False
set_char_can_be_shot_in_vehicle 245@ {state} False
set_char_cant_be_dragged_out 245@ {state} True
set_char_stay_in_car_when_jacked 245@ {state} True
set_char_suffers_critical_hits 245@ {state} False
set_char_get_out_upside_down_car 245@ {state} False
set_load_collision_for_car_flag 244@ {state} False
mark_model_as_no_longer_needed 443
246@ = 2770.2129
250@ = 1433.86
254@ = 9.3804
258@ = 257.0
247@ = 2620.6831
251@ = 2333.686
255@ = 9.8203
259@ = 174.5638
248@ = 2316.9351
252@ = 2457.0061
256@ = 9.8203
260@ = 140.3
249@ = 1610.588
253@ = 1845.6021
257@ = 9.828
261@ = 235.7296
60@ = 99
$hst4_deliverytimer = 720000
66@ = 0
72@ = 0
80@ = 0
85@ = 0
88@ = 0
67@ = 0
73@ = 0
89@ = 0
90@ = 0
101@ = 0
102@ = 0
103@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
114@ = 0
131@ = 0
48@ = 0
if 
  48@ == -1
goto_if_false @HEIST4_2102
create_car 523 {x} $x {y} $y {z} $z {var_handle} 279@(48@,4i)
35@ = add_blip_for_coord $x {y} $y {z} $z
63@ = create_char PedType.Mission1 {modelId} 284 {x} $x {y} $y {z} $z
70@ = create_char PedType.Mission1 {modelId} 284 {x} $x {y} $y {z} $z

:HEIST4_2102
if 
  4 > 48@
goto_if_false @HEIST4_2197
add_blip_for_coord 246@(48@,4f) {y} 250@(48@,4f) {z} 254@(48@,4f) {var_handle} 283@(48@,4i)
change_blip_colour 283@(48@,4i) {color} BlipColor.Green
262@(48@,4i) = 0
266@(48@,4i) = 0
48@ += 1
goto @HEIST4_2102

:HEIST4_2197
270@ = 0.6
271@ = 0.0
272@ = 1.9
273@ = 0
274@ = 15.0
47@ = 0
275@ = 0
76@ = create_char PedType.Mission1 {modelId} 284 {x} 2311.019 {y} 2438.3679 {z} 9.8203
set_char_decision_maker 76@ {handleOrTemplate} 61@
set_char_heading 76@ {heading} 297.0
give_weapon_to_char 76@ {weaponType} WeaponType.Pistol {ammo} 2000
77@ = create_char PedType.Mission1 {modelId} 284 {x} 2311.8501 {y} 2439.375 {z} 9.8203
set_char_decision_maker 77@ {handleOrTemplate} 61@
set_char_heading 77@ {heading} 115.0
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 2000
82@ = create_char PedType.Mission1 {modelId} 284 {x} 1612.244 {y} 1845.855 {z} 9.828
set_char_decision_maker 82@ {handleOrTemplate} 61@
set_char_heading 82@ {heading} 110.0
give_weapon_to_char 82@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_can_be_knocked_off_bike 82@ {stayOnBike} 3
63@ = create_char PedType.Mission1 {modelId} 284 {x} 2768.7971 {y} 1431.239 {z} 9.487
give_weapon_to_char 63@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 63@ {handleOrTemplate} 61@
set_char_heading 63@ {heading} 111.0
mark_model_as_no_longer_needed 284
68@ = create_char PedType.Mission1 {modelId} 34 {x} 2767.5371 {y} 1424.877 {z} 9.2195
set_anim_group_for_char 68@ {animGroup} "DRUNKMAN"
set_char_decision_maker 68@ {handleOrTemplate} 61@
set_char_heading 68@ {heading} 347.0
70@ = create_char PedType.Mission1 {modelId} 284 {x} 2619.8579 {y} 2339.2561 {z} 10.0081
set_char_can_be_knocked_off_bike 70@ {stayOnBike} 3
give_weapon_to_char 70@ {weaponType} WeaponType.Pistol {ammo} 2000
set_char_decision_maker 70@ {handleOrTemplate} 61@
set_char_heading 70@ {heading} 300.0
92@ = create_car 463 {x} 2634.011 {y} 2343.2119 {z} 9.6797
set_car_heading 92@ {heading} 120.0386
set_load_collision_for_car_flag 92@ {state} False
93@ = create_car 463 {x} 2625.6899 {y} 2336.8501 {z} 9.6875
set_car_heading 93@ {heading} 183.0386
set_load_collision_for_car_flag 93@ {state} False
94@ = create_car 463 {x} 2637.8469 {y} 2347.5759 {z} 9.6797
set_car_heading 94@ {heading} 126.0963
set_load_collision_for_car_flag 94@ {state} False
95@ = create_char_inside_car 92@ {pedType} PedType.Mission1 {modelId} 34
set_char_decision_maker 95@ {handleOrTemplate} 61@
96@ = create_char_inside_car 93@ {pedType} PedType.Mission1 {modelId} 32
set_char_decision_maker 96@ {handleOrTemplate} 61@
97@ = create_char_inside_car 94@ {pedType} PedType.Mission1 {modelId} 33
set_char_decision_maker 97@ {handleOrTemplate} 61@
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 463
task_chat_with_char 77@ {other} 76@ {leadSpeaker} True {_p4} 1
task_chat_with_char 76@ {other} 77@ {leadSpeaker} False {_p4} 1
task_play_anim 82@ {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
switch_cops_on_bikes False
TIMERA = 0
TIMERB = 0
set_car_density_multiplier 1.5
if 
  not is_char_dead 245@
goto_if_false @HEIST4_2996
if 
  not is_car_dead 244@
goto_if_false @HEIST4_2996
clear_char_tasks 245@
clear_area 2710.5249 {y} 1731.009 {z} 100.0 {radius} 100.0 {clearParticles} False
47@ = 0
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {z} 6.0 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:HEIST4_2996
116@ = 0
203@ = 0
276@ = create_char PedType.Mission1 {modelId} 117 {x} 2029.561 {y} 1006.041 {z} 9.8203
set_char_heading 276@ {heading} 280.0
set_char_decision_maker 276@ {handleOrTemplate} 61@
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 50
set_char_coordinates $scplayer {x} 2028.875 {y} 1006.87 {z} 9.8203
set_char_heading $scplayer {heading} 265.0
clear_area 2033.974 {y} 1017.29 {z} 9.8203 {radius} 1000.0 {clearParticles} False
wait 1000
switch_widescreen True
set_fixed_camera_position 2025.905 {y} 1003.544 {z} 12.1278 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2026.726 {y} 1004.074 {z} 11.9155 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 276@
goto_if_false @HEIST4_3206
task_turn_char_to_face_char 276@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 276@

:HEIST4_3206
do_fade 1000 {direction} Fade.In

:HEIST4_3213
if 
  get_fading_status 
goto_if_false @HEIST4_3237
wait 0
goto @HEIST4_3213

:HEIST4_3237
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
275@ = 1
TIMERA = 0

:HEIST4_3287
if 
  104@ == 1
goto_if_false @HEIST4_3392
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_3392

:HEIST4_3322
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_3350
wait 0
goto @HEIST4_3322

:HEIST4_3350
if 
  275@ > 1
goto_if_false @HEIST4_3392
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
275@ = 5
104@ = 0

:HEIST4_3392
if 
  275@ == 1
goto_if_false @HEIST4_3431
196@ = 16
275@ = 2
TIMERA = 0

:HEIST4_3431
if 
  275@ == 2
goto_if_false @HEIST4_3591
if 
  TIMERA > 3000
goto_if_false @HEIST4_3591
104@ = 1
196@ = 17
275@ = 3
TIMERA = 0
clear_char_tasks $scplayer
task_play_anim $scplayer {animationName} "ENDCHAT_01" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  not is_char_dead 276@
goto_if_false @HEIST4_3591
task_play_anim 276@ {animationName} "ENDCHAT_03" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST4_3591
if 
  275@ == 3
goto_if_false @HEIST4_3692
if 
  TIMERA > 2000
goto_if_false @HEIST4_3692
if 
  not is_char_dead 276@
goto_if_false @HEIST4_3692
clear_char_tasks $scplayer
clear_char_tasks 276@
task_go_straight_to_coord 276@ {x} 2030.431 {y} 984.6912 {z} 9.8131 {speed} MoveState.Run {time} -2
275@ = 4
TIMERA = 0

:HEIST4_3692
if 
  275@ == 4
goto_if_false @HEIST4_3736
if 
  TIMERA > 2000
goto_if_false @HEIST4_3736
275@ = 5

:HEIST4_3736
if 
  275@ == 5
goto_if_false @HEIST4_3857
104@ = 0
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_char_tasks $scplayer
set_char_heading $scplayer {heading} 305.0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
enable_char_speech $scplayer
delete_char 276@
clear_prints 
print_now 'HEI4_01' {time} 8000 {flag} 1
TIMERA = 0
TIMERB = 0
60@ = 2
275@ = -99

:HEIST4_3857
if 
  203@ == 0
goto_if_false @HEIST4_3889
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1096
203@ = 1

:HEIST4_3889
if 
  203@ == 1
goto_if_false @HEIST4_3929
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST4_3929
203@ = 2

:HEIST4_3929
if 
  196@ <> 0
goto_if_false @HEIST4_4282
if 
  198@ == 0
goto_if_false @HEIST4_4000
if 
  has_mission_audio_loaded 195@
goto_if_false @HEIST4_3986
clear_mission_audio 195@

:HEIST4_3986
198@ = 1
199@ = 1

:HEIST4_4000
if 
  198@ == 1
goto_if_false @HEIST4_4037
load_mission_audio 194@ {audioId} 175@(196@,19i)
198@ = 2

:HEIST4_4037
if 
  198@ == 2
goto_if_false @HEIST4_4097
if 
  has_mission_audio_loaded 194@
goto_if_false @HEIST4_4097
play_mission_audio 194@
print 137@(196@,19s) {time} 10000 {flag} 1
198@ = 3

:HEIST4_4097
if 
  198@ == 3
goto_if_false @HEIST4_4282
if 
  has_mission_audio_finished 194@
goto_if_false @HEIST4_4221
clear_this_print 137@(196@,19s)
if 
  194@ == 1
goto_if_false @HEIST4_4179
194@ = 2
195@ = 1
goto @HEIST4_4193

:HEIST4_4179
194@ = 1
195@ = 2

:HEIST4_4193
196@ = 0
198@ = 0
199@ = 0
goto @HEIST4_4282

:HEIST4_4221
if 
  not has_mission_audio_loaded 195@
goto_if_false @HEIST4_4282
if 
  15 > 196@
goto_if_false @HEIST4_4282
set_lvar_int_to_lvar_int 197@ = 196@
197@ += 1
load_mission_audio 195@ {audioId} 175@(197@,19i)

:HEIST4_4282
if 
  not is_car_dead 244@
goto_if_false @HEIST4_4383
121@, 122@, 123@ = get_offset_from_car_in_world_coords 244@ {xOffset} -1.3 {yOffset} -40.0 {zOffset} -2.0
124@, 125@, 126@ = get_offset_from_car_in_world_coords 244@ {xOffset} 1.3 {yOffset} 0.0 {zOffset} 2.0
129@ = get_random_car_of_type_in_area_no_save 121@ {leftBottomY} 122@ {rightTopX} 124@ {rightTopY} 125@ {modelId} -1
127@ = get_car_speed 244@

:HEIST4_4383
if 
  not is_car_dead 129@
goto_if_false @HEIST4_4425
set_lvar_float_to_lvar_float 128@ = 127@
128@ -= 4.0
set_car_cruise_speed 129@ {maxSpeed} 128@

:HEIST4_4425
if 
  not is_car_dead 244@
goto_if_false @HEIST4_4504
if 
  not is_char_dead 245@
goto_if_false @HEIST4_4504
if 
  not is_char_in_car 245@ {vehicle} 244@
goto_if_false @HEIST4_4504
if 
  not is_char_dead 115@
goto_if_false @HEIST4_4497
detach_char_from_car 115@

:HEIST4_4497
goto @HEIST4_13162

:HEIST4_4504
if 
  114@ == 1
goto_if_false @HEIST4_4598
if 
  TIMERB > 1000
goto_if_false @HEIST4_4598
if 
  not is_car_dead 244@
goto_if_false @HEIST4_4598
118@, 119@, 120@ = get_car_coordinates 244@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikePackerClunk
114@ = 2

:HEIST4_4598
if 
  114@ == 2
goto_if_false @HEIST4_4728
if 
  TIMERB > 1500
goto_if_false @HEIST4_4728
if 
  not is_char_dead 115@
goto_if_false @HEIST4_4721
if 
  not is_char_playing_anim 115@ {animationName} "HIKER_POSE_L"
goto_if_false @HEIST4_4721
task_play_anim 115@ {animationName} "HIKER_POSE_L" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:HEIST4_4721
114@ = 3

:HEIST4_4728
if 
  114@ == 3
goto_if_false @HEIST4_4772
if 
  TIMERB > 2000
goto_if_false @HEIST4_4772
114@ = 4

:HEIST4_4772
if 
  114@ == 4
goto_if_false @HEIST4_4988
if 
  TIMERB > 4000
goto_if_false @HEIST4_4988
clear_char_tasks $scplayer
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
if 
  273@ == 4
goto_if_false @HEIST4_4845
clear_prints 

:HEIST4_4845
if 
  273@ == 1
goto_if_false @HEIST4_4881
clear_prints 
print_now 'HEI4_06' {time} 5000 {flag} 1

:HEIST4_4881
if 
  273@ == 2
goto_if_false @HEIST4_4917
clear_prints 
print_now 'HEI4_08' {time} 5000 {flag} 1

:HEIST4_4917
if 
  273@ == 3
goto_if_false @HEIST4_4960
clear_prints 
print_now 'HEI4_09' {time} 5000 {flag} 1
TIMERA = 0

:HEIST4_4960
if 
  not is_char_dead 115@
goto_if_false @HEIST4_4981
clear_char_tasks 115@

:HEIST4_4981
114@ = 0

:HEIST4_4988
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @HEIST4_5010
goto @HEIST4_13180

:HEIST4_5010
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @HEIST4_5035
$hst4_deliverytimer += 60000

:HEIST4_5035
if 
is_ps2_keyboard_key_pressed 80
goto_if_false @HEIST4_5057
alter_wanted_level $player1 {wantedLevel} 2

:HEIST4_5057
if 
is_ps2_keyboard_key_pressed 79
goto_if_false @HEIST4_5079
alter_wanted_level $player1 {wantedLevel} 0

:HEIST4_5079
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @HEIST4_5124
set_char_coordinates $scplayer {x} 2608.1931 {y} 2315.54 {z} 9.6719
set_char_heading $scplayer {heading} 354.7109

:HEIST4_5124
if 
  103@ == 1
goto_if_false @HEIST4_5201
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_5201

:HEIST4_5159
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST4_5187
wait 0
goto @HEIST4_5159

:HEIST4_5187
102@ = 50
103@ = 0

:HEIST4_5201
wait 0
if 
  101@ == 0
goto_if_false @HEIST4_5272
if 
  not is_car_dead 280@
goto_if_false @HEIST4_5272
if 
  is_char_sitting_in_car $scplayer {vehicle} 280@
goto_if_false @HEIST4_5272
switch_car_siren 280@ {state} False
101@ = 1

:HEIST4_5272
if 
  89@ == 0
goto_if_false @HEIST4_5423
if 
  TIMERB > 5000
goto_if_false @HEIST4_5423
mark_model_as_no_longer_needed 598
request_model 497

:HEIST4_5319
if 
  not has_model_loaded 497
goto_if_false @HEIST4_5346
wait 0
goto @HEIST4_5319

:HEIST4_5346
86@ = create_car 497 {x} 1589.198 {y} 1850.619 {z} 9.8358
set_car_heading 86@ {heading} 51.0
open_car_door 86@ {door} CarDoor.LeftFrontDoor
87@ = create_char_inside_car 86@ {pedType} PedType.Mission1 {modelId} 284
set_load_collision_for_char_flag 87@ {state} False
set_heli_blades_full_speed 86@
mark_model_as_no_longer_needed 497
89@ = 1

:HEIST4_5423
if 
  60@ == 2
goto_if_false @HEIST4_5544
if 
  TIMERA > 12000
goto_if_false @HEIST4_5544
if 
  131@ == 0
goto_if_false @HEIST4_5544
clear_prints 
clear_this_print 'HEI4_01'
print_now 'HEI4_11' {time} 8000 {flag} 1
display_onscreen_timer_with_string $hst4_deliverytimer {direction} TimerDirection.Down {text} 'HEI4_12'
131@ = 1
60@ = 3
TIMERA = 0

:HEIST4_5544
if 
  60@ == 3
goto_if_false @HEIST4_5588
if 
  TIMERA > 10000
goto_if_false @HEIST4_5588
60@ = 4

:HEIST4_5588
if 
  1 > $hst4_deliverytimer
goto_if_false @HEIST4_5631
clear_prints 
print_now 'HEI4_10' {time} 8000 {flag} 1
goto @HEIST4_13162

:HEIST4_5631
if 
  102@ == 0
goto_if_false @HEIST4_7632
if 
  not is_car_dead 244@
goto_if_false @HEIST4_7588
if 
  locate_car_2d 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @HEIST4_5798
47@ += 1
if 
  47@ == 17
goto_if_false @HEIST4_5739
47@ = 0

:HEIST4_5739
if 
  not is_char_dead 245@
goto_if_false @HEIST4_5798
clear_char_tasks 245@
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {z} 8.0 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:HEIST4_5798
48@ = 0

:HEIST4_5805
if 
  4 > 48@
goto_if_false @HEIST4_7391
if 
  2 > 266@(48@,4i)
goto_if_false @HEIST4_7377
if 
  not is_car_dead 279@(48@,4i)
goto_if_false @HEIST4_7119
if 
  is_char_in_car $scplayer {vehicle} 279@(48@,4i)
goto_if_false @HEIST4_6819
if 
  266@(48@,4i) == 0
goto_if_false @HEIST4_6030
43@ = 0

:HEIST4_5917
if 
  4 > 43@
goto_if_false @HEIST4_5958
remove_blip 283@(43@,4i)
43@ += 1
goto @HEIST4_5917

:HEIST4_5958
remove_blip 35@
35@ = add_blip_for_car 244@
set_blip_as_friendly 35@ {state} True
if 
  273@ <> 4
goto_if_false @HEIST4_6012
print_now 'HEI4_02' {time} 8000 {flag} 1

:HEIST4_6012
266@(48@,4i) = 1
gosub @HEIST4_11600

:HEIST4_6030
if 
  266@(48@,4i) == 1
goto_if_false @HEIST4_6812
if 
  2 > 273@
goto_if_false @HEIST4_6128
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -1.3 {yOffset} -3.2 {zOffset} -0.8
52@, 53@, 54@ = get_offset_from_car_in_world_coords 244@ {xOffset} 1.3 {yOffset} -3.2 {zOffset} 2.6

:HEIST4_6128
if 
  273@ > 1
goto_if_false @HEIST4_6204
$x, $y, $z = get_offset_from_car_in_world_coords 244@ {xOffset} -1.3 {yOffset} -8.2 {zOffset} -0.8
52@, 53@, 54@ = get_offset_from_car_in_world_coords 244@ {xOffset} 1.3 {yOffset} -8.2 {zOffset} 2.6

:HEIST4_6204
if 
  locate_char_in_car_car_2d $scplayer {handle} 244@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @HEIST4_6251
print_now 'HEI4_13' {time} 8000 {flag} 1

:HEIST4_6251
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} $x {leftBottomY} $y {leftBottomZ} $z {rightTopX} 52@ {rightTopY} 53@ {rightTopZ} 54@ {angle} 4.8 {drawSphere} False
goto_if_false @HEIST4_6812
277@ = get_car_speed 244@
278@ = get_car_speed 279@(48@,4i)
277@ += 10.0
if 
  is_float_lvar_greater_than_float_lvar 277@ > 278@
goto_if_false @HEIST4_6812
277@ -= 10.0
if 
  is_float_lvar_greater_than_float_lvar 278@ > 277@
goto_if_false @HEIST4_6812
attach_car_to_car 279@(48@,4i) {handle} 244@ {xOffset} 270@ {yOffset} 271@ {zOffset} 272@ {xRotation} 16.0 {yRotation} 0.0 {zRotation} 0.0
freeze_car_position 279@(48@,4i) {state} True
if or
  273@ == 1
  273@ == 3
goto_if_false @HEIST4_6462
271@ -= 2.5
272@ -= 0.7

:HEIST4_6462
if 
  270@ == 0.6
goto_if_false @HEIST4_6500
270@ = -0.6
goto @HEIST4_6510

:HEIST4_6500
270@ = 0.6

:HEIST4_6510
273@ += 1
if 
  4 > 273@
goto_if_false @HEIST4_6588
attach_camera_to_vehicle_look_at_vehicle 244@ {xOffset} 3.0 {yOffset} 5.0 {zOffset} 2.2 {vehicle} 244@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
114@ = 1
set_player_control $player1 {state} False
clear_prints 
TIMERB = 0

:HEIST4_6588
274@ += 10.0
266@(48@,4i) = 2
remove_blip 35@
clear_this_print 'HEI4_02'
43@ = 0

:HEIST4_6632
if 
  4 > 43@
goto_if_false @HEIST4_6812
if 
  2 > 266@(43@,4i)
goto_if_false @HEIST4_6798
if 
  262@(43@,4i) == 1
goto_if_false @HEIST4_6757
remove_blip 283@(43@,4i)
if 
  not is_car_dead 279@(43@,4i)
goto_if_false @HEIST4_6750
add_blip_for_car 279@(43@,4i) {var_handle} 283@(43@,4i)
change_blip_colour 283@(43@,4i) {color} BlipColor.Green

:HEIST4_6750
goto @HEIST4_6787

:HEIST4_6757
add_blip_for_coord 246@(43@,4f) {y} 250@(43@,4f) {z} 254@(43@,4f) {var_handle} 283@(43@,4i)

:HEIST4_6787
change_blip_colour 283@(43@,4i) {color} BlipColor.Green

:HEIST4_6798
43@ += 1
goto @HEIST4_6632

:HEIST4_6812
goto @HEIST4_7112

:HEIST4_6819
if 
  266@(48@,4i) == 1
goto_if_false @HEIST4_7112
43@ = 0

:HEIST4_6848
if 
  4 > 43@
goto_if_false @HEIST4_7112
if 
  266@(43@,4i) == 1
goto_if_false @HEIST4_6899
266@(43@,4i) = 0

:HEIST4_6899
if 
  2 > 266@(43@,4i)
goto_if_false @HEIST4_7098
remove_blip 283@(43@,4i)
if 
  262@(43@,4i) == 1
goto_if_false @HEIST4_7036
if 
  not is_car_dead 279@(43@,4i)
goto_if_false @HEIST4_7006
add_blip_for_car 279@(43@,4i) {var_handle} 283@(43@,4i)
change_blip_colour 283@(43@,4i) {color} BlipColor.Green
goto @HEIST4_7029

:HEIST4_7006
print_now 'HEI4_04' {time} 8000 {flag} 1
goto @HEIST4_13162

:HEIST4_7029
goto @HEIST4_7066

:HEIST4_7036
add_blip_for_coord 246@(43@,4f) {y} 250@(43@,4f) {z} 254@(43@,4f) {var_handle} 283@(43@,4i)

:HEIST4_7066
remove_blip 35@
change_blip_colour 283@(43@,4i) {color} BlipColor.Green
print_now 'HEI4_03' {time} 5000 {flag} 1

:HEIST4_7098
43@ += 1
goto @HEIST4_6848

:HEIST4_7112
goto @HEIST4_7377

:HEIST4_7119
if 
  262@(48@,4i) == 0
goto_if_false @HEIST4_7354
if 
  locate_char_any_means_2d $scplayer {x} 246@(48@,4f) {y} 250@(48@,4f) {xRadius} 200.0 {yRadius} 200.0 {drawSphere} False
goto_if_false @HEIST4_7347
clear_area 246@(48@,4f) {y} 250@(48@,4f) {z} 254@(48@,4f) {radius} 40.0 {clearParticles} False
create_car 523 {x} 246@(48@,4f) {y} 250@(48@,4f) {z} 254@(48@,4f) {var_handle} 279@(48@,4i)
set_car_heading 279@(48@,4i) {heading} 258@(48@,4f)
set_can_burst_car_tyres 279@(48@,4i) {state} False
set_load_collision_for_car_flag 279@(48@,4i) {state} False
if 
  not does_blip_exist 35@
goto_if_false @HEIST4_7336
remove_blip 283@(48@,4i)
add_blip_for_car 279@(48@,4i) {var_handle} 283@(48@,4i)
change_blip_colour 283@(48@,4i) {color} BlipColor.Green

:HEIST4_7336
262@(48@,4i) = 1

:HEIST4_7347
goto @HEIST4_7377

:HEIST4_7354
print_now 'HEI4_04' {time} 5000 {flag} 1
goto @HEIST4_13162

:HEIST4_7377
48@ += 1
goto @HEIST4_5805

:HEIST4_7391
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 244@ {xRadius} 120.0 {yRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_7437
set_car_cruise_speed 244@ {maxSpeed} 274@
goto @HEIST4_7447

:HEIST4_7437
set_car_cruise_speed 244@ {maxSpeed} 15.0

:HEIST4_7447
if or
  is_car_stuck_on_roof 244@
  is_car_stuck 244@
goto_if_false @HEIST4_7581
if 
  not is_car_on_screen 244@
goto_if_false @HEIST4_7581
if 
  not is_point_on_screen 204@(47@,20f) {y} 224@(47@,20f) {z} 6.0 {radius} 4.0
goto_if_false @HEIST4_7581
clear_area 204@(47@,20f) {y} 224@(47@,20f) {z} 7.0 {radius} 10.0 {clearParticles} False
set_car_coordinates 244@ {x} 204@(47@,20f) {y} 224@(47@,20f) {z} 10.0
set_car_heading 244@ {heading} $heading

:HEIST4_7581
goto @HEIST4_7632

:HEIST4_7588
print_now 'HEI4_05' {time} 5000 {flag} 1
if 
  not is_char_dead 115@
goto_if_false @HEIST4_7625
delete_char 115@

:HEIST4_7625
goto @HEIST4_13162

:HEIST4_7632
if 
  102@ == 0
goto_if_false @HEIST4_7680
if 
  273@ == 4
goto_if_false @HEIST4_7680
clear_onscreen_timer $hst4_deliverytimer
102@ = 1

:HEIST4_7680
if 
  102@ == 1
goto_if_false @HEIST4_8118
do_fade 1000 {direction} Fade.Out
clear_prints 
clear_onscreen_timer $hst4_deliverytimer
set_player_control $player1 {state} False
clear_wanted_level $player1

:HEIST4_7724
if 
  get_fading_status 
goto_if_false @HEIST4_7748
wait 0
goto @HEIST4_7724

:HEIST4_7748
task_jump $scplayer {state} False
clear_char_tasks_immediately $scplayer
load_scene_in_direction 1009.781 {y} 1929.377 {z} 9.6719 {heading} 122.0
wait 0
switch_widescreen True
102@ = 10
set_fixed_camera_position 1022.831 {y} 1899.5129 {z} 18.6192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1021.961 {y} 1899.5179 {z} 18.126 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 245@
goto_if_false @HEIST4_8015
if 
  not is_car_dead 244@
goto_if_false @HEIST4_8015
clear_char_tasks 245@
clear_area 1009.994 {y} 1880.02 {z} 150.0 {radius} 150.0 {clearParticles} False
set_car_coordinates 244@ {x} 1009.994 {y} 1870.02 {z} 9.6797
set_car_heading 244@ {heading} 2.3
attach_char_to_car $scplayer {vehicle} 244@ {xOffset} 0.5 {yOffset} -10.0 {zOffset} -0.3 {heading} Facing.Back {headingRange} 10.0 {weaponType} WeaponType.Unarmed
set_char_heading $scplayer {heading} 300.0
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 1009.781 {y} 1900.377 {z} 9.6719 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars

:HEIST4_8015
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
do_fade 500 {direction} Fade.In

:HEIST4_8046
if 
  get_fading_status 
goto_if_false @HEIST4_8094
wait 0
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
goto @HEIST4_8046

:HEIST4_8094
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False

:HEIST4_8118
if 
  102@ == 10
goto_if_false @HEIST4_8294
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  not is_car_dead 244@
goto_if_false @HEIST4_8294
if 
  not is_char_dead 245@
goto_if_false @HEIST4_8294
if 
  is_car_stopped 244@
goto_if_false @HEIST4_8294
102@ = 20
103@ = 1
detach_char_from_car $scplayer
105@ = open_sequence_task 
task_jump -1 {state} True
task_go_straight_to_coord -1 {x} 1014.013 {y} 1902.325 {z} 9.8125 {speed} MoveState.Run {time} 10000
task_turn_char_to_face_char -1 {target} 245@
close_sequence_task 105@
perform_sequence_task $scplayer {sequence} 105@
clear_sequence_task 105@
TIMERA = 0

:HEIST4_8294
if 
  201@ > 0
goto_if_false @HEIST4_8477
if 
  199@ == 0
goto_if_false @HEIST4_8477
switch_start 201@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @HEIST4_8477 {caseNum1} 1 {caseLabel1} @HEIST4_8393 {caseNum2} 2 {caseLabel2} @HEIST4_8414 {caseNum3} 3 {caseLabel3} @HEIST4_8435 {caseNum4} 4 {caseLabel4} @HEIST4_8456 {caseNum5} -1 {caseLabel5} @HEIST4_8477 {caseNum6} -1 {caseLabel6} @HEIST4_8477 {caseNum7} -1 {caseLabel7} @HEIST4_8477

:HEIST4_8393
196@ = 1
201@ = 2
goto @HEIST4_8477

:HEIST4_8414
196@ = 2
201@ = 3
goto @HEIST4_8477

:HEIST4_8435
196@ = 3
201@ = 4
goto @HEIST4_8477

:HEIST4_8456
196@ = 0
201@ = 0
goto @HEIST4_8477

:HEIST4_8477
if 
  102@ == 20
goto_if_false @HEIST4_8559
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 3000
goto_if_false @HEIST4_8559
201@ = 1
102@ = 30
TIMERA = 0

:HEIST4_8559
if 
  102@ == 30
goto_if_false @HEIST4_8700
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 3000
goto_if_false @HEIST4_8700
if 
  not is_char_dead 245@
goto_if_false @HEIST4_8700
if 
  not is_car_dead 244@
goto_if_false @HEIST4_8700
102@ = 40
task_car_drive_to_coord 245@ {vehicle} 244@ {x} 1009.781 {y} 2000.377 {z} 9.6719 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.SlowDownForCars
TIMERA = 0

:HEIST4_8700
if 
  102@ == 40
goto_if_false @HEIST4_8801
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 500
goto_if_false @HEIST4_8801
if 
  not is_char_dead 245@
goto_if_false @HEIST4_8801
task_look_at_char $scplayer {target} 245@ {time} -2
102@ = 45
TIMERA = 0

:HEIST4_8801
if 
  102@ == 45
goto_if_false @HEIST4_8869
clear_area 1009.994 {y} 1910.02 {z} 150.0 {radius} 150.0 {clearParticles} False
if 
  TIMERA > 3000
goto_if_false @HEIST4_8869
102@ = 50

:HEIST4_8869
if 
  102@ == 50
goto_if_false @HEIST4_8988
103@ = 0
delete_car 279@
delete_car 280@
delete_car 281@
delete_car 282@
delete_car 244@
delete_char 245@
delete_char 115@
switch_widescreen False
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 1014.013 {y} 1902.325 {z} 9.8125
set_char_heading $scplayer {heading} 59.0
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
clear_prints 
goto @HEIST4_13180

:HEIST4_8988
if 
  102@ == 0
goto_if_false @HEIST4_9110
90@ = 0

:HEIST4_9013
if 
  4 > 90@
goto_if_false @HEIST4_9110
if 
  266@(90@,4i) == 2
goto_if_false @HEIST4_9096
if 
  is_car_dead 279@(90@,4i)
goto_if_false @HEIST4_9096
print_now 'HEI4_04' {time} 5000 {flag} 1
goto @HEIST4_13162

:HEIST4_9096
90@ += 1
goto @HEIST4_9013

:HEIST4_9110
if 
  66@ == 0
goto_if_false @HEIST4_9397
if 
  does_char_exist 63@
goto_if_false @HEIST4_9288
if 
  has_char_been_damaged_by_char 63@ {handle} $scplayer
goto_if_false @HEIST4_9234
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12511
if 
  not is_char_dead 63@
goto_if_false @HEIST4_9213
66@ = 1
clear_char_tasks 63@
task_kill_char_on_foot 63@ {target} $scplayer

:HEIST4_9213
if 
  not is_char_dead 68@
goto_if_false @HEIST4_9234
mark_char_as_no_longer_needed 68@

:HEIST4_9234
if 
  not is_char_dead 63@
goto_if_false @HEIST4_9288
if 
  locate_char_any_means_char_2d $scplayer {target} 63@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @HEIST4_9288
gosub @HEIST4_12511

:HEIST4_9288
if 
  does_char_exist 68@
goto_if_false @HEIST4_9397
if 
  has_char_been_damaged_by_char 68@ {handle} $scplayer
goto_if_false @HEIST4_9397
alter_wanted_level_no_drop $player1 {wantedLevel} 1
if 
  not is_char_dead 68@
goto_if_false @HEIST4_9361
task_smart_flee_char 68@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST4_9361
if 
  not is_char_dead 63@
goto_if_false @HEIST4_9397
66@ = 1
clear_char_tasks 63@
task_kill_char_on_foot 63@ {target} $scplayer

:HEIST4_9397
if 
  72@ == 0
goto_if_false @HEIST4_10019
if 
  does_char_exist 70@
goto_if_false @HEIST4_9617
if 
  has_char_been_damaged_by_char 70@ {handle} $scplayer
goto_if_false @HEIST4_9563
alter_wanted_level_no_drop $player1 {wantedLevel} 1
gosub @HEIST4_12657
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9500
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9500
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9521
mark_char_as_no_longer_needed 95@

:HEIST4_9521
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9542
mark_char_as_no_longer_needed 96@

:HEIST4_9542
if 
  not is_char_dead 97@
goto_if_false @HEIST4_9563
mark_char_as_no_longer_needed 97@

:HEIST4_9563
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9617
if 
  locate_char_any_means_char_2d $scplayer {target} 70@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @HEIST4_9617
gosub @HEIST4_12657

:HEIST4_9617
if 
  does_char_exist 95@
goto_if_false @HEIST4_9751
if 
  has_char_been_damaged_by_char 95@ {handle} $scplayer
goto_if_false @HEIST4_9751
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9688
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9688
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9709
mark_char_as_no_longer_needed 95@

:HEIST4_9709
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9730
mark_char_as_no_longer_needed 96@

:HEIST4_9730
if 
  not is_char_dead 97@
goto_if_false @HEIST4_9751
mark_char_as_no_longer_needed 97@

:HEIST4_9751
if 
  does_char_exist 96@
goto_if_false @HEIST4_9885
if 
  has_char_been_damaged_by_char 96@ {handle} $scplayer
goto_if_false @HEIST4_9885
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9822
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9822
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9843
mark_char_as_no_longer_needed 95@

:HEIST4_9843
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9864
mark_char_as_no_longer_needed 96@

:HEIST4_9864
if 
  not is_char_dead 97@
goto_if_false @HEIST4_9885
mark_char_as_no_longer_needed 97@

:HEIST4_9885
if 
  does_char_exist 97@
goto_if_false @HEIST4_10019
if 
  has_char_been_damaged_by_char 97@ {handle} $scplayer
goto_if_false @HEIST4_10019
if 
  not is_char_dead 70@
goto_if_false @HEIST4_9956
72@ = 1
clear_char_tasks 70@
task_kill_char_on_foot 70@ {target} $scplayer

:HEIST4_9956
if 
  not is_char_dead 95@
goto_if_false @HEIST4_9977
mark_char_as_no_longer_needed 95@

:HEIST4_9977
if 
  not is_char_dead 96@
goto_if_false @HEIST4_9998
mark_char_as_no_longer_needed 96@

:HEIST4_9998
if 
  not is_char_dead 97@
goto_if_false @HEIST4_10019
mark_char_as_no_longer_needed 97@

:HEIST4_10019
if 
  80@ == 0
goto_if_false @HEIST4_10135
if 
  does_char_exist 77@
goto_if_false @HEIST4_10086
if 
  has_char_been_damaged_by_char 77@ {handle} $scplayer
goto_if_false @HEIST4_10086
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12209

:HEIST4_10086
if 
  does_char_exist 76@
goto_if_false @HEIST4_10135
if 
  has_char_been_damaged_by_char 76@ {handle} $scplayer
goto_if_false @HEIST4_10135
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12209

:HEIST4_10135
if 
  85@ == 0
goto_if_false @HEIST4_10292
if 
  does_char_exist 82@
goto_if_false @HEIST4_10292
if 
  has_char_been_damaged_by_char 82@ {handle} $scplayer
goto_if_false @HEIST4_10238
alter_wanted_level_no_drop $player1 {wantedLevel} 2
gosub @HEIST4_12283
if 
  not is_char_dead 82@
goto_if_false @HEIST4_10238
85@ = 1
clear_char_tasks 82@
task_kill_char_on_foot 82@ {target} $scplayer

:HEIST4_10238
if 
  not is_char_dead 82@
goto_if_false @HEIST4_10292
if 
  locate_char_any_means_char_2d $scplayer {target} 82@ {xRadius} 35.0 {yRadius} 35.0 {drawSphere} False
goto_if_false @HEIST4_10292
gosub @HEIST4_12283

:HEIST4_10292
if 
  106@ == 0
goto_if_false @HEIST4_10359
if 
  does_char_exist 82@
goto_if_false @HEIST4_10359
if 
  has_char_been_damaged_by_char 82@ {handle} $scplayer
goto_if_false @HEIST4_10359
alter_wanted_level_no_drop $player1 {wantedLevel} 2
106@ = 1

:HEIST4_10359
if 
  107@ == 0
goto_if_false @HEIST4_10426
if 
  does_char_exist 70@
goto_if_false @HEIST4_10426
if 
  has_char_been_damaged_by_char 70@ {handle} $scplayer
goto_if_false @HEIST4_10426
alter_wanted_level_no_drop $player1 {wantedLevel} 2
107@ = 1

:HEIST4_10426
if 
  108@ == 0
goto_if_false @HEIST4_10493
if 
  does_char_exist 63@
goto_if_false @HEIST4_10493
if 
  has_char_been_damaged_by_char 63@ {handle} $scplayer
goto_if_false @HEIST4_10493
alter_wanted_level_no_drop $player1 {wantedLevel} 2
108@ = 1

:HEIST4_10493
if 
  109@ == 0
goto_if_false @HEIST4_10560
if 
  does_char_exist 76@
goto_if_false @HEIST4_10560
if 
  has_char_been_damaged_by_char 76@ {handle} $scplayer
goto_if_false @HEIST4_10560
alter_wanted_level_no_drop $player1 {wantedLevel} 2
109@ = 1

:HEIST4_10560
if 
  110@ == 0
goto_if_false @HEIST4_10627
if 
  does_char_exist 77@
goto_if_false @HEIST4_10627
if 
  has_char_been_damaged_by_char 77@ {handle} $scplayer
goto_if_false @HEIST4_10627
alter_wanted_level_no_drop $player1 {wantedLevel} 2
110@ = 1

:HEIST4_10627
if 
  88@ == 1
goto_if_false @HEIST4_10714
if 
  not is_car_dead 86@
goto_if_false @HEIST4_10714
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 86@ {xRadius} 200.0 {yRadius} 200.0 {zRadius} 200.0 {drawSphere} False
goto_if_false @HEIST4_10714
88@ = 2
mark_char_as_no_longer_needed 87@
mark_car_as_no_longer_needed 86@

:HEIST4_10714
if 
  not is_char_dead 82@
goto_if_false @HEIST4_10787
if 
  locate_char_any_means_char_3d $scplayer {target} 82@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_10780
freeze_char_position_and_dont_load_collision 82@ {state} False
goto @HEIST4_10787

:HEIST4_10780
freeze_char_position_and_dont_load_collision 82@ {state} True

:HEIST4_10787
if 
  not is_char_dead 70@
goto_if_false @HEIST4_10860
if 
  locate_char_any_means_char_3d $scplayer {target} 70@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_10853
freeze_char_position_and_dont_load_collision 70@ {state} False
goto @HEIST4_10860

:HEIST4_10853
freeze_char_position_and_dont_load_collision 70@ {state} True

:HEIST4_10860
if 
  73@ == 0
goto_if_false @HEIST4_11097
if 
  not is_char_dead 95@
goto_if_false @HEIST4_10951
if 
  locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_10944
freeze_char_position_and_dont_load_collision 95@ {state} False
goto @HEIST4_10951

:HEIST4_10944
freeze_char_position_and_dont_load_collision 95@ {state} True

:HEIST4_10951
if 
  not is_char_dead 96@
goto_if_false @HEIST4_11024
if 
  locate_char_any_means_char_3d $scplayer {target} 96@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11017
freeze_char_position_and_dont_load_collision 96@ {state} False
goto @HEIST4_11024

:HEIST4_11017
freeze_char_position_and_dont_load_collision 96@ {state} True

:HEIST4_11024
if 
  not is_char_dead 97@
goto_if_false @HEIST4_11097
if 
  locate_char_any_means_char_3d $scplayer {target} 97@ {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11090
freeze_char_position_and_dont_load_collision 97@ {state} False
goto @HEIST4_11097

:HEIST4_11090
freeze_char_position_and_dont_load_collision 97@ {state} True

:HEIST4_11097
if 
  73@ == 1
goto_if_false @HEIST4_11301
if 
  not is_char_dead 95@
goto_if_false @HEIST4_11177
if 
  not locate_char_any_means_char_3d $scplayer {target} 95@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11177
mark_char_as_no_longer_needed 95@
mark_car_as_no_longer_needed 92@

:HEIST4_11177
if 
  not is_char_dead 96@
goto_if_false @HEIST4_11239
if 
  not locate_char_any_means_char_3d $scplayer {target} 96@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11239
mark_char_as_no_longer_needed 96@
mark_car_as_no_longer_needed 93@

:HEIST4_11239
if 
  not is_char_dead 97@
goto_if_false @HEIST4_11301
if 
  not locate_char_any_means_char_3d $scplayer {target} 97@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @HEIST4_11301
mark_char_as_no_longer_needed 97@
mark_car_as_no_longer_needed 94@

:HEIST4_11301
if 
  not is_char_dead 77@
goto_if_false @HEIST4_11374
if 
  locate_char_any_means_char_3d $scplayer {target} 77@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11367
freeze_char_position_and_dont_load_collision 77@ {state} False
goto @HEIST4_11374

:HEIST4_11367
freeze_char_position_and_dont_load_collision 77@ {state} True

:HEIST4_11374
if 
  not is_char_dead 76@
goto_if_false @HEIST4_11447
if 
  locate_char_any_means_char_3d $scplayer {target} 76@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11440
freeze_char_position_and_dont_load_collision 76@ {state} False
goto @HEIST4_11447

:HEIST4_11440
freeze_char_position_and_dont_load_collision 76@ {state} True

:HEIST4_11447
if 
  not is_char_dead 63@
goto_if_false @HEIST4_11520
if 
  locate_char_any_means_char_3d $scplayer {target} 63@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11513
freeze_char_position_and_dont_load_collision 63@ {state} False
goto @HEIST4_11520

:HEIST4_11513
freeze_char_position_and_dont_load_collision 63@ {state} True

:HEIST4_11520
if 
  not is_char_dead 68@
goto_if_false @HEIST4_11593
if 
  locate_char_any_means_char_3d $scplayer {target} 68@ {xRadius} 120.0 {yRadius} 120.0 {zRadius} 120.0 {drawSphere} False
goto_if_false @HEIST4_11586
freeze_char_position_and_dont_load_collision 68@ {state} False
goto @HEIST4_11593

:HEIST4_11586
freeze_char_position_and_dont_load_collision 68@ {state} True

:HEIST4_11593
goto @HEIST4_3287

:HEIST4_11600
if 
  48@ == 0
goto_if_false @HEIST4_11766
if 
  66@ == 0
goto_if_false @HEIST4_11766
if 
  not is_char_dead 63@
goto_if_false @HEIST4_11711
clear_char_tasks 63@
65@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2785.7891 {y} 1439.454 {z} 9.5579 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 65@
perform_sequence_task 63@ {sequence} 65@
clear_sequence_task 65@

:HEIST4_11711
if 
  not is_char_dead 68@
goto_if_false @HEIST4_11752
clear_char_tasks 68@
mark_char_as_no_longer_needed 68@
task_smart_flee_char 68@ {threat} $scplayer {radius} 100.0 {time} -1

:HEIST4_11752
66@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:HEIST4_11766
if 
  48@ == 1
goto_if_false @HEIST4_11906
if 
  72@ == 0
goto_if_false @HEIST4_11906
if 
  not is_char_dead 70@
goto_if_false @HEIST4_11877
clear_char_tasks 70@
71@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2646.582 {y} 2348.1699 {z} 9.6797 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 71@
perform_sequence_task 70@ {sequence} 71@
clear_sequence_task 71@

:HEIST4_11877
72@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1
mark_car_as_no_longer_needed 92@
mark_car_as_no_longer_needed 93@
mark_car_as_no_longer_needed 94@

:HEIST4_11906
if 
  48@ == 2
goto_if_false @HEIST4_12082
if 
  80@ == 0
goto_if_false @HEIST4_12082
if 
  not is_char_dead 77@
goto_if_false @HEIST4_11993
clear_char_tasks 77@
79@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 79@
perform_sequence_task 77@ {sequence} 79@
clear_sequence_task 79@

:HEIST4_11993
if 
  not is_char_dead 76@
goto_if_false @HEIST4_12068
clear_char_tasks 76@
78@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2311.0039 {y} 2436.7639 {z} 9.8203 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 78@
perform_sequence_task 76@ {sequence} 78@
clear_sequence_task 78@

:HEIST4_12068
80@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:HEIST4_12082
if 
  48@ == 3
goto_if_false @HEIST4_12207
if 
  85@ == 0
goto_if_false @HEIST4_12207
if 
  not is_char_dead 82@
goto_if_false @HEIST4_12193
clear_char_tasks 82@
83@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1593.2889 {y} 1836.808 {z} 9.8281 {speed} MoveState.Run {time} 10000
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 83@
perform_sequence_task 82@ {sequence} 83@
clear_sequence_task 83@

:HEIST4_12193
85@ = 1
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:HEIST4_12207
return 

:HEIST4_12209
if 
  not is_char_dead 77@
goto_if_false @HEIST4_12238
clear_char_tasks 77@
task_kill_char_on_foot 77@ {target} $scplayer

:HEIST4_12238
if 
  not is_char_dead 76@
goto_if_false @HEIST4_12267
clear_char_tasks 76@
task_kill_char_on_foot 76@ {target} $scplayer

:HEIST4_12267
alter_wanted_level_no_drop $player1 {wantedLevel} 1
80@ = 1
return 

:HEIST4_12283
if 
  88@ == 0
goto_if_false @HEIST4_12509
if 
  not is_char_dead 87@
goto_if_false @HEIST4_12378
if 
  not is_car_dead 86@
goto_if_false @HEIST4_12378
set_car_cruise_speed 86@ {maxSpeed} 100.0
close_all_car_doors 86@
heli_goto_coords 86@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0

:HEIST4_12378
if 
  not is_car_dead 282@
goto_if_false @HEIST4_12502
if 
  not is_char_dead 82@
goto_if_false @HEIST4_12502
clear_char_tasks 82@
84@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 282@ {time} 6000
task_car_drive_to_coord -1 {vehicle} 282@ {x} 1570.712 {y} 1834.135 {z} 9.6969 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 282@ {speed} 15.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 84@
perform_sequence_task 82@ {sequence} 84@
clear_sequence_task 84@
set_char_can_be_knocked_off_bike 82@ {stayOnBike} 3

:HEIST4_12502
88@ = 1

:HEIST4_12509
return 

:HEIST4_12511
if 
  67@ == 0
goto_if_false @HEIST4_12655
if 
  not is_char_dead 63@
goto_if_false @HEIST4_12648
if 
  not is_char_dead 68@
goto_if_false @HEIST4_12648
clear_char_tasks 68@
69@ = open_sequence_task 
set_sequence_to_repeat 69@ {state} True
task_go_straight_to_coord -1 {x} 2762.1169 {y} 1432.399 {z} 9.5325 {speed} MoveState.Walk {time} 30000
task_fall_and_get_up -1 {fallDown} False {timeOnGround} 3000
task_go_straight_to_coord -1 {x} 2767.5371 {y} 1424.877 {z} 9.2195 {speed} MoveState.Walk {time} 30000
close_sequence_task 69@
perform_sequence_task 68@ {sequence} 69@

:HEIST4_12648
67@ = 1

:HEIST4_12655
return 

:HEIST4_12657
if 
  73@ == 0
goto_if_false @HEIST4_13160
if 
  203@ == 2
goto_if_false @HEIST4_12697
play_mission_audio MissionAudioSlot.Slot3

:HEIST4_12697
if 
  not is_car_dead 92@
goto_if_false @HEIST4_12804
if 
  not is_char_dead 95@
goto_if_false @HEIST4_12804
clear_char_tasks 95@
98@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 92@ {x} 2648.7439 {y} 2293.4199 {z} 9.6875 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 92@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 98@
perform_sequence_task 95@ {sequence} 98@
clear_sequence_task 98@

:HEIST4_12804
if 
  not is_car_dead 93@
goto_if_false @HEIST4_12911
if 
  not is_char_dead 96@
goto_if_false @HEIST4_12911
clear_char_tasks 96@
99@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 93@ {x} 2650.5659 {y} 2290.3149 {z} 9.6875 {speed} 26.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 93@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 99@
perform_sequence_task 96@ {sequence} 99@
clear_sequence_task 99@

:HEIST4_12911
if 
  not is_car_dead 94@
goto_if_false @HEIST4_13018
if 
  not is_char_dead 97@
goto_if_false @HEIST4_13018
clear_char_tasks 97@
100@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 94@ {x} 2651.6809 {y} 2294.8701 {z} 9.6875 {speed} 25.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 94@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 100@
perform_sequence_task 97@ {sequence} 100@
clear_sequence_task 100@

:HEIST4_13018
if 
  not is_car_dead 280@
goto_if_false @HEIST4_13153
if 
  not is_char_dead 70@
goto_if_false @HEIST4_13142
clear_char_tasks 70@
71@ = open_sequence_task 
task_enter_car_as_driver -1 {vehicle} 280@ {time} 10000
task_car_drive_to_coord -1 {vehicle} 280@ {x} 2647.9409 {y} 2293.2219 {z} 9.6875 {speed} 21.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
task_car_drive_wander -1 {vehicle} 280@ {speed} 17.0 {drivingMode} DrivingMode.AvoidCars
close_sequence_task 71@
perform_sequence_task 70@ {sequence} 71@
clear_sequence_task 71@
set_char_can_be_knocked_off_bike 70@ {stayOnBike} 3

:HEIST4_13142
switch_car_siren 280@ {state} True
clear_mission_audio MissionAudioSlot.Slot3

:HEIST4_13153
73@ = 1

:HEIST4_13160
return 

:HEIST4_13162
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST4_13180
$flag_heist_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 20 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 20
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'HEIST_4'
player_made_progress 1
return 

:HEIST4_13235
set_player_control $player1 {state} True
set_player_group_recruitment $player1 {state} True
set_group_follow_status 34@ {state} True
set_player_group_to_follow_never $player1 {state} False
set_car_density_multiplier 1.0
clear_mission_audio MissionAudioSlot.Slot3
release_weather 
switch_cops_on_bikes True
remove_blip 35@
remove_blip 283@
remove_blip 284@
remove_blip 285@
remove_blip 286@
mark_model_as_no_longer_needed 443
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 598
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 463
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 32
remove_animation "SMOKING"
remove_animation "MISC"
clear_onscreen_timer $hst4_deliverytimer
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 100---------------
// Originally: Up, Up and Away!

:HEIST5
script_name 'HEIST5'
gosub @HEIST5_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST5_38
gosub @HEIST5_13717

:HEIST5_38
gosub @HEIST5_13820
terminate_this_script 

:HEIST5_47
register_mission_given 
$onmission = 1
39@ = 406.989
40@ = 2516.9009
41@ = 15.4918
36@ = 0
104@ = 0
100@ = 0
99@ = 0
89@ = 0
101@ = 0
102@ = 0
103@ = 0
62@ = 0
64@ = 0
66@ = 0
49@ = 0
50@ = 0
51@ = 0
52@ = 0
53@ = 0
54@ = 0
55@ = 0
68@ = 0
70@ = 0
72@ = 0
74@ = 0
76@ = 0
78@ = 0
80@ = 0
98@ = 0
82@ = 0
84@ = 0
86@ = 0
88@ = 0
112@ = 0
113@ = 0
133@ = 0.0
134@ = 0.0
135@ = 0.0
136@ = 0.0
137@ = 0.0
138@ = 0.0
111@ = 0
125@ = 0
$bankvan1_health_heist5 = 1000
124@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
139@ = 0
$bankvan1_upright_value_heist5 = 0.0
108@ = 0.0
140@ = 0
141@ = 0
142@ = 0
90@ = 0
143@ = 0
145@ = 365.356
146@ = 2538.113
147@ = 15.712
$gate_drive_car_ai_heist5 = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
159@ = 0
160@ = 0.0
161@ = 0.0
162@ = 0.0
163@ = 0
164@ = 0
load_mission_text 'HEIST5'
wait 0
clear_area 2030.108 {y} 1007.929 {z} 9.852 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2030.108 {y} 1007.929 {z} 9.852
set_char_heading $scplayer {heading} 270.0
$iTerminateAllAmbience = 1
set_area_visible 10
load_cutscene 'HEIST6A'

:HEIST5_710
if 
  not has_cutscene_loaded 
goto_if_false @HEIST5_734
wait 0
goto @HEIST5_710

:HEIST5_734
start_cutscene 
do_fade 1000 {direction} Fade.In

:HEIST5_743
if 
  not has_cutscene_finished 
goto_if_false @HEIST5_767
wait 0
goto @HEIST5_743

:HEIST5_767
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:HEIST5_780
if 
  get_fading_status 
goto_if_false @HEIST5_804
wait 0
goto @HEIST5_780

:HEIST5_804
clear_cutscene 
set_area_visible 0
$iTerminateAllAmbience = 0
switch_car_generator $d5_bronze_generator {amount} 0
switch_car_generator $d5_silver_generator {amount} 0
switch_car_generator $d5_gold_generator {amount} 0
switch_ambient_planes False
switch_police_helis False
155@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Grenade
if 
  5 > 155@
goto_if_false @HEIST5_899
156@ = create_pickup 342 {pickupType} PickupType.Once {x} 2550.967 {y} 2824.343 {z} 10.6

:HEIST5_899
157@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2557.3369 {y} 2817.8091 {z} 10.82
158@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2573.7339 {y} 2814.9099 {z} 10.82
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
load_scene 2030.108 {y} 1007.929 {z} 9.852
set_camera_behind_player 
restore_camera_jumpcut 
59@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 59@
60@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 60@
91@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2604.0 {y} 2837.0 {z} 9.86 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 91@
92@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2608.0 {y} 2827.0 {z} 9.86 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 92@
93@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2585.0 {y} 2815.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 93@
94@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2593.0 {y} 2835.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 94@
95@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2585.0 {y} 2809.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 95@
96@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2575.0 {y} 2833.0 {z} 18.999 {speed} MoveState.Run {time} 10000
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 96@
57@ = load_char_decision_maker DecisionMakerType.Tough
add_char_decision_maker_event_response 57@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
58@ = load_char_decision_maker DecisionMakerType.Tough
56@ = load_char_decision_maker DecisionMakerType.Empty
request_model 417
request_model 287
request_model 356
request_model 359
request_model 425
request_model #MINIGUN_BASE
request_model 362
request_model 428
request_model 470
load_mission_audio MissionAudioSlot.Slot3 {audioId} 41800
load_all_models_now 

:HEIST5_1422
if or
  not has_model_loaded 417
  not has_model_loaded 287
  not has_model_loaded 356
  not has_model_loaded 359
  not has_model_loaded 470
goto_if_false @HEIST5_1469
wait 0
goto @HEIST5_1422

:HEIST5_1469
if or
  not has_model_loaded 425
  not has_model_loaded #MINIGUN_BASE
  not has_model_loaded 362
  not has_model_loaded 428
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST5_1515
wait 0
goto @HEIST5_1469

:HEIST5_1515
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:HEIST5_1530
if 
  get_fading_status 
goto_if_false @HEIST5_1554
wait 0
goto @HEIST5_1530

:HEIST5_1554
set_player_control $player1 {state} True
print_now 'HM5_1' {time} 5000 {flag} 1
38@ = add_blip_for_coord 2616.408 {y} 2721.3669 {z} 35.563
set_blip_as_friendly 38@ {state} True
109@ = create_object #MINIGUN_BASE {x} 2595.5491 {y} 2758.04 {z} 22.832
set_object_heading 109@ {heading} 180.0
load_mission_audio MissionAudioSlot.Slot1 {audioId} 18804
load_mission_audio MissionAudioSlot.Slot2 {audioId} 18807

:HEIST5_1651
if or
  not locate_char_any_means_3d $scplayer {x} 2502.7019 {y} 2778.55 {z} 9.868 {xRadius} 200.0 {yRadius} 200.0 {zRadius} 400.0 {drawSphere} False
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @HEIST5_1740
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @HEIST5_1733
goto @HEIST5_13735

:HEIST5_1733
goto @HEIST5_1651

:HEIST5_1740
34@ = create_car 417 {x} 2614.603 {y} 2720.7451 {z} 35.563
set_car_heading 34@ {heading} 90.0
attach_winch_to_heli 34@ {state} True
lock_car_doors 34@ {lockStatus} CarLock.Locked
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False
freeze_car_position 34@ {state} True
104@ = 1
97@ = create_char PedType.Mission1 {modelId} 287 {x} 2502.7019 {y} 2778.55 {z} 9.868
give_weapon_to_char 97@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 97@ {heading} 90.0
set_char_accuracy 97@ {accuracy} 70
set_char_shoot_rate 97@ {rate} 40
set_char_decision_maker 97@ {handleOrTemplate} 56@
67@ = create_char PedType.Mission1 {modelId} 287 {x} 2615.0 {y} 2835.0 {z} 9.86
give_weapon_to_char 67@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 67@ {heading} 105.0
set_char_decision_maker 67@ {handleOrTemplate} 57@
clear_all_char_relationships 67@ {relationshipType} RelationshipType.Hate
set_char_relationship 67@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 67@ {accuracy} 70
set_char_shoot_rate 67@ {rate} 40
69@ = create_char PedType.Mission1 {modelId} 287 {x} 2615.0 {y} 2817.0 {z} 9.86
give_weapon_to_char 69@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 69@ {heading} 105.0
set_char_decision_maker 69@ {handleOrTemplate} 57@
clear_all_char_relationships 69@ {relationshipType} RelationshipType.Hate
set_char_relationship 69@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 69@ {accuracy} 70
set_char_shoot_rate 69@ {rate} 40
71@ = create_char PedType.Mission1 {modelId} 287 {x} 2585.927 {y} 2837.0601 {z} 9.82
give_weapon_to_char 71@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 71@ {heading} 127.0
set_char_decision_maker 71@ {handleOrTemplate} 57@
clear_all_char_relationships 71@ {relationshipType} RelationshipType.Hate
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 71@ {accuracy} 70
set_char_shoot_rate 71@ {rate} 50
task_play_anim 71@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
73@ = create_char PedType.Mission1 {modelId} 287 {x} 2568.0 {y} 2821.0 {z} 9.86
give_weapon_to_char 73@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 73@ {heading} 80.0
set_char_decision_maker 73@ {handleOrTemplate} 57@
clear_all_char_relationships 73@ {relationshipType} RelationshipType.Hate
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 73@ {accuracy} 70
set_char_shoot_rate 73@ {rate} 40
75@ = create_char PedType.Mission1 {modelId} 287 {x} 2562.0 {y} 2818.0 {z} 9.86
give_weapon_to_char 75@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 75@ {heading} 96.0
set_char_decision_maker 75@ {handleOrTemplate} 57@
clear_all_char_relationships 75@ {relationshipType} RelationshipType.Hate
set_char_relationship 75@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 75@ {accuracy} 70
set_char_shoot_rate 75@ {rate} 45
task_play_anim 75@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
77@ = create_char PedType.Mission1 {modelId} 287 {x} 2571.9331 {y} 2831.9121 {z} 9.82
give_weapon_to_char 77@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 77@ {heading} 70.0
set_char_decision_maker 77@ {handleOrTemplate} 57@
clear_all_char_relationships 77@ {relationshipType} RelationshipType.Hate
set_char_relationship 77@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 77@ {accuracy} 70
set_char_shoot_rate 77@ {rate} 40
task_play_anim 77@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
79@ = create_char PedType.Mission1 {modelId} 287 {x} 2595.0 {y} 2840.0 {z} 9.86
give_weapon_to_char 79@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 79@ {heading} 96.0
set_char_decision_maker 79@ {handleOrTemplate} 57@
clear_all_char_relationships 79@ {relationshipType} RelationshipType.Hate
set_char_relationship 79@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 79@ {accuracy} 70
set_char_shoot_rate 79@ {rate} 50
81@ = create_char PedType.Mission1 {modelId} 287 {x} 2613.0 {y} 2806.0 {z} 18.999
give_weapon_to_char 81@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 81@ {heading} 96.0
set_char_health 81@ {health} 100
set_char_decision_maker 81@ {handleOrTemplate} 58@
clear_all_char_relationships 81@ {relationshipType} RelationshipType.Hate
set_char_relationship 81@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 81@ {accuracy} 70
set_char_shoot_rate 81@ {rate} 45
83@ = create_char PedType.Mission1 {modelId} 287 {x} 2614.0 {y} 2848.0 {z} 18.999
give_weapon_to_char 83@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 83@ {heading} 96.0
set_char_health 83@ {health} 100
set_char_decision_maker 83@ {handleOrTemplate} 58@
clear_all_char_relationships 83@ {relationshipType} RelationshipType.Hate
set_char_relationship 83@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 83@ {accuracy} 70
set_char_shoot_rate 83@ {rate} 40
85@ = create_char PedType.Mission1 {modelId} 287 {x} 2545.0 {y} 2806.0 {z} 18.999
give_weapon_to_char 85@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 85@ {heading} 274.0
set_char_health 85@ {health} 100
set_char_decision_maker 85@ {handleOrTemplate} 58@
clear_all_char_relationships 85@ {relationshipType} RelationshipType.Hate
set_char_relationship 85@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 85@ {accuracy} 70
set_char_shoot_rate 85@ {rate} 45
87@ = create_char PedType.Mission1 {modelId} 287 {x} 2563.0 {y} 2848.0 {z} 18.999
give_weapon_to_char 87@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 87@ {heading} 274.0
set_char_health 87@ {health} 100
set_char_decision_maker 87@ {handleOrTemplate} 58@
clear_all_char_relationships 87@ {relationshipType} RelationshipType.Hate
set_char_relationship 87@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_accuracy 87@ {accuracy} 70
set_char_shoot_rate 87@ {rate} 40
42@ = create_char PedType.Mission1 {modelId} 287 {x} 2621.0 {y} 2804.0 {z} 9.86
set_char_decision_maker 42@ {handleOrTemplate} 58@
give_weapon_to_char 42@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 42@ {accuracy} 70
set_char_shoot_rate 42@ {rate} 50
flush_route 
extend_route 2629.0 {y} 2795.0 {z} 9.86
extend_route 2642.0 {y} 2788.0 {z} 9.86
extend_route 2659.0 {y} 2786.0 {z} 9.86
extend_route 2621.0 {y} 2804.0 {z} 9.86
task_follow_point_route 42@ {speed} MoveState.Walk {mode} RouteMode.Loop
43@ = create_char PedType.Mission1 {modelId} 287 {x} 2649.0 {y} 2768.0 {z} 18.375
set_char_decision_maker 43@ {handleOrTemplate} 58@
give_weapon_to_char 43@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 43@ {state} True
set_char_heading 43@ {heading} 330.0
set_char_accuracy 43@ {accuracy} 70
set_char_shoot_rate 43@ {rate} 40
task_play_anim 43@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
44@ = create_char PedType.Mission1 {modelId} 287 {x} 2626.3701 {y} 2800.0071 {z} 9.82
set_char_decision_maker 44@ {handleOrTemplate} 58@
set_char_heading 44@ {heading} 14.7
give_weapon_to_char 44@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 44@ {accuracy} 70
set_char_shoot_rate 44@ {rate} 45
task_toggle_duck 44@ {state} True
set_char_stay_in_same_place 44@ {state} True
61@ = create_char PedType.Mission1 {modelId} 287 {x} 2504.0 {y} 2763.0 {z} 9.86
give_weapon_to_char 61@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 61@ {heading} 364.0
set_char_decision_maker 61@ {handleOrTemplate} 58@
set_char_accuracy 61@ {accuracy} 70
set_char_shoot_rate 61@ {rate} 45
flush_route 
extend_route 2504.0 {y} 2753.0 {z} 9.86
extend_route 2504.0 {y} 2737.0 {z} 9.86
extend_route 2505.0 {y} 2711.0 {z} 9.86
extend_route 2504.0 {y} 2737.0 {z} 9.86
extend_route 2504.0 {y} 2753.0 {z} 9.86
extend_route 2504.0 {y} 2763.0 {z} 9.86
task_follow_point_route 61@ {speed} MoveState.Walk {mode} RouteMode.Loop
63@ = create_char PedType.Mission1 {modelId} 287 {x} 2509.0 {y} 2791.0 {z} 9.86
give_weapon_to_char 63@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 63@ {heading} 90.0
set_char_decision_maker 63@ {handleOrTemplate} 58@
set_char_accuracy 63@ {accuracy} 70
set_char_shoot_rate 63@ {rate} 40
flush_route 
extend_route 2511.0 {y} 2809.0 {z} 9.86
extend_route 2511.0 {y} 2833.0 {z} 9.86
extend_route 2511.0 {y} 2844.0 {z} 9.86
extend_route 2527.0 {y} 2844.0 {z} 9.86
extend_route 2511.0 {y} 2844.0 {z} 9.86
extend_route 2511.0 {y} 2833.0 {z} 9.86
extend_route 2511.0 {y} 2809.0 {z} 9.86
extend_route 2509.0 {y} 2791.0 {z} 9.86
task_follow_point_route 63@ {speed} MoveState.Walk {mode} RouteMode.Loop
65@ = create_char PedType.Mission1 {modelId} 287 {x} 2583.0 {y} 2801.0 {z} 9.86
give_weapon_to_char 65@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_heading 65@ {heading} 184.0
set_char_decision_maker 65@ {handleOrTemplate} 58@
set_char_accuracy 65@ {accuracy} 70
set_char_shoot_rate 65@ {rate} 50
flush_route 
extend_route 2568.0 {y} 2801.0 {z} 9.86
extend_route 2551.0 {y} 2801.0 {z} 9.86
extend_route 2538.0 {y} 2801.0 {z} 9.845
extend_route 2551.0 {y} 2801.0 {z} 9.845
extend_route 2568.0 {y} 2801.0 {z} 9.855
extend_route 2583.0 {y} 2801.0 {z} 9.845
task_follow_point_route 65@ {speed} MoveState.Walk {mode} RouteMode.Loop
45@ = create_char PedType.Mission1 {modelId} 287 {x} 2606.1189 {y} 2733.6831 {z} 35.563
set_char_decision_maker 45@ {handleOrTemplate} 58@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 45@ {state} True
set_char_accuracy 45@ {accuracy} 70
set_char_shoot_rate 45@ {rate} 50
46@ = create_char PedType.Mission1 {modelId} 287 {x} 2628.5081 {y} 2733.4099 {z} 35.564
set_char_decision_maker 46@ {handleOrTemplate} 58@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 46@ {state} True
set_char_accuracy 46@ {accuracy} 70
set_char_shoot_rate 46@ {rate} 40
47@ = create_char PedType.Mission1 {modelId} 287 {x} 2595.2791 {y} 2755.3931 {z} 22.822
set_char_heading 47@ {heading} 80.0
set_char_decision_maker 47@ {handleOrTemplate} 58@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 47@ {state} True
set_char_accuracy 47@ {accuracy} 70
set_char_shoot_rate 47@ {rate} 45
48@ = create_char PedType.Mission1 {modelId} 287 {x} 2658.5061 {y} 2784.1331 {z} 14.93
set_char_heading 48@ {heading} 54.818
set_char_decision_maker 48@ {handleOrTemplate} 58@
give_weapon_to_char 48@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_stay_in_same_place 48@ {state} True
set_char_accuracy 48@ {accuracy} 70
set_char_shoot_rate 48@ {rate} 50
$gate_drive_car_heist5 = create_car 470 {x} 2520.7371 {y} 2769.9629 {z} 9.816
set_car_heading $gate_drive_car_heist5 {heading} 0.563
$driver_gate_car_heist5 = create_char_inside_car $gate_drive_car_heist5 {pedType} PedType.Mission1 {modelId} 287
set_char_decision_maker $driver_gate_car_heist5 {handleOrTemplate} 56@
give_weapon_to_char $driver_gate_car_heist5 {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy $driver_gate_car_heist5 {accuracy} 70
set_char_shoot_rate $driver_gate_car_heist5 {rate} 40
car_set_idle $gate_drive_car_heist5

:HEIST5_4208
if 
  112@ <> 2
goto_if_false @HEIST5_7625
wait 0
if 
  100@ >= 1
goto_if_false @HEIST5_4347
if 
  159@ == 0
goto_if_false @HEIST5_4296
set_mission_audio_position MissionAudioSlot.Slot3 {x} 2502.9431 {y} 2778.928 {z} 10.82
play_mission_audio MissionAudioSlot.Slot3
159@ = 1

:HEIST5_4296
if 
  103@ == 1
goto_if_false @HEIST5_4347
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HEIST5_4347
clear_this_print 'HE5_BD'
103@ = 2

:HEIST5_4347
if 
  154@ == 0
goto_if_false @HEIST5_5816
if 
  $gate_drive_car_ai_heist5 == 0
goto_if_false @HEIST5_4684
if or
  locate_char_any_means_3d $scplayer {x} 2502.7019 {y} 2778.55 {z} 9.868 {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
  99@ == 1
  100@ == 1
goto_if_false @HEIST5_4684
if 
  not is_car_dead $gate_drive_car_heist5
goto_if_false @HEIST5_4684
if 
  not is_char_dead $driver_gate_car_heist5
goto_if_false @HEIST5_4684
if 
  is_char_in_car $driver_gate_car_heist5 {vehicle} $gate_drive_car_heist5
goto_if_false @HEIST5_4644
if 
  100@ >= 1
goto_if_false @HEIST5_4554
if 
  154@ == 0
goto_if_false @HEIST5_4554
task_kill_char_on_foot $driver_gate_car_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4554
if 
  154@ == 0
goto_if_false @HEIST5_4637
task_car_drive_to_coord $driver_gate_car_heist5 {vehicle} $gate_drive_car_heist5 {x} 2506.3401 {y} 2772.6899 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
clear_area 2501.4939 {y} 2775.199 {z} 9.8203 {radius} 3.0 {clearParticles} False
$gate_drive_car_ai_heist5 = 1

:HEIST5_4637
goto @HEIST5_4684

:HEIST5_4644
if 
  154@ == 0
goto_if_false @HEIST5_4684
task_kill_char_on_foot $driver_gate_car_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4684
if 
  $gate_drive_car_ai_heist5 == 1
goto_if_false @HEIST5_4945
if 
  not is_car_dead $gate_drive_car_heist5
goto_if_false @HEIST5_4945
if 
  not is_char_dead $driver_gate_car_heist5
goto_if_false @HEIST5_4945
if 
  is_char_in_car $driver_gate_car_heist5 {vehicle} $gate_drive_car_heist5
goto_if_false @HEIST5_4905
if 
  100@ >= 1
goto_if_false @HEIST5_4811
if 
  154@ == 0
goto_if_false @HEIST5_4811
task_kill_char_on_foot $driver_gate_car_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4811
if 
  154@ == 0
goto_if_false @HEIST5_4898
if 
  locate_car_3d $gate_drive_car_heist5 {x} 2506.3401 {y} 2772.6899 {z} 9.8203 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_4898
$open_gate_now_flag = 1
$gate_stay_open = 1
$gate_drive_car_ai_heist5 = 2

:HEIST5_4898
goto @HEIST5_4945

:HEIST5_4905
if 
  154@ == 0
goto_if_false @HEIST5_4945
task_kill_char_on_foot $driver_gate_car_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_4945
if 
  $gate_drive_car_ai_heist5 == 2
goto_if_false @HEIST5_5344
if 
  not is_car_dead $gate_drive_car_heist5
goto_if_false @HEIST5_5313
if 
  not is_car_in_area_3d $gate_drive_car_heist5 {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_5058
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5058
if 
  not is_char_dead $driver_gate_car_heist5
goto_if_false @HEIST5_5306
if 
  is_char_in_car $driver_gate_car_heist5 {vehicle} $gate_drive_car_heist5
goto_if_false @HEIST5_5266
if 
  $open_gate_now_flag == 3
goto_if_false @HEIST5_5201
if 
  154@ == 0
goto_if_false @HEIST5_5194
task_car_drive_to_coord $driver_gate_car_heist5 {vehicle} $gate_drive_car_heist5 {x} 2472.188 {y} 2775.916 {z} 9.7097 {speed} 20.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
clear_area 2472.188 {y} 2775.916 {z} 9.7097 {radius} 3.0 {clearParticles} False
$gate_drive_car_ai_heist5 = 3

:HEIST5_5194
goto @HEIST5_5259

:HEIST5_5201
if 
  100@ >= 1
goto_if_false @HEIST5_5259
if 
  154@ == 0
goto_if_false @HEIST5_5259
task_kill_char_on_foot $driver_gate_car_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_5259
goto @HEIST5_5306

:HEIST5_5266
if 
  154@ == 0
goto_if_false @HEIST5_5306
task_kill_char_on_foot $driver_gate_car_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_5306
goto @HEIST5_5344

:HEIST5_5313
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5344
if 
  $gate_drive_car_ai_heist5 == 3
goto_if_false @HEIST5_5647
if 
  not is_car_dead $gate_drive_car_heist5
goto_if_false @HEIST5_5616
if 
  not is_car_in_area_3d $gate_drive_car_heist5 {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_5457
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5457
if 
  not is_char_dead $driver_gate_car_heist5
goto_if_false @HEIST5_5609
if 
  is_char_in_car $driver_gate_car_heist5 {vehicle} $gate_drive_car_heist5
goto_if_false @HEIST5_5569
if 
  locate_car_3d $gate_drive_car_heist5 {x} 2472.188 {y} 2775.916 {z} 9.7097 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_5562
task_car_drive_wander $driver_gate_car_heist5 {vehicle} $gate_drive_car_heist5 {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
$gate_drive_car_ai_heist5 = 4

:HEIST5_5562
goto @HEIST5_5609

:HEIST5_5569
if 
  154@ == 0
goto_if_false @HEIST5_5609
task_kill_char_on_foot $driver_gate_car_heist5 {target} $scplayer
$gate_stay_open = 0
154@ = 1

:HEIST5_5609
goto @HEIST5_5647

:HEIST5_5616
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5647
if 
  $gate_stay_open == 1
goto_if_false @HEIST5_5816
if 
  4 >= $gate_drive_car_ai_heist5
goto_if_false @HEIST5_5816
if 
  not is_car_dead $gate_drive_car_heist5
goto_if_false @HEIST5_5785
if 
  not is_car_in_area_3d $gate_drive_car_heist5 {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_5778
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5778
goto @HEIST5_5816

:HEIST5_5785
clear_area 2497.2891 {y} 2772.606 {z} 9.8262 {radius} 5.0 {clearParticles} False
$gate_stay_open = 0

:HEIST5_5816
if 
  99@ == 0
goto_if_false @HEIST5_5977
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 100.0 {drawSphere} False
goto_if_false @HEIST5_5977
remove_blip 38@
if 
  not is_car_dead 34@
goto_if_false @HEIST5_5925
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
goto @HEIST5_5958

:HEIST5_5925
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_5958
clear_wanted_level $player1
set_wanted_multiplier 0.0
99@ = 1

:HEIST5_5977
gosub @HEIST5_19771
gosub @HEIST5_16767
if 
  99@ == 1
goto_if_false @HEIST5_6080
gosub @HEIST5_15416
gosub @HEIST5_14162
if 
  100@ == 1
goto_if_false @HEIST5_6080
if 
  89@ == 0
goto_if_false @HEIST5_6073
gosub @HEIST5_14491
goto @HEIST5_6080

:HEIST5_6073
gosub @HEIST5_14889

:HEIST5_6080
if 
  is_car_dead 34@
goto_if_false @HEIST5_6119
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_6119
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} 2656.5229 {leftBottomY} 2782.1069 {leftBottomZ} 17.0 {rightTopX} 2594.178 {rightTopY} 2695.7729 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_6199
if 
  113@ == 0
goto_if_false @HEIST5_6199
gosub @HEIST5_20271
113@ = 1

:HEIST5_6199
if 
  113@ == 1
goto_if_false @HEIST5_6272
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} 2646.0549 {leftBottomY} 2782.106 {leftBottomZ} 21.0 {rightTopX} 2594.2681 {rightTopY} 2724.261 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_6272
113@ = 2

:HEIST5_6272
if 
  113@ == 2
goto_if_false @HEIST5_7137
if 
  111@ == 0
goto_if_false @HEIST5_6580
114@ = create_car 425 {x} 2253.509 {y} 2806.9409 {z} 15.0
115@ = add_blip_for_car 114@
set_car_health 114@ {health} 4000
117@ = create_char_inside_car 114@ {pedType} PedType.Mission1 {modelId} 287
set_car_forward_speed 114@ {forwardSpeed} 20.0
select_weapons_for_vehicle 114@ {_p2} 1
heli_attack_player 114@ {handle} $player1 {radius} 50.0
add_stuck_car_check 114@ {distance} 2.0 {time} 5000
118@ = create_car 425 {x} 2306.7561 {y} 2806.9409 {z} 15.0
119@ = add_blip_for_car 118@
set_car_health 118@ {health} 4000
121@ = create_char_inside_car 118@ {pedType} PedType.Mission1 {modelId} 287
set_car_forward_speed 118@ {forwardSpeed} 20.0
select_weapons_for_vehicle 118@ {_p2} 1
heli_attack_player 118@ {handle} $player1 {radius} 50.0
add_stuck_car_check 118@ {distance} 2.0 {time} 5000
print_now 'HM5_6' {time} 12000 {flag} 1
110@ = add_blip_for_coord 2595.5491 {y} 2758.04 {z} 22.832
149@ = add_sphere 2596.5891 {y} 2758.158 {z} 22.862 {radius} 1.0
TIMERB = 0
153@ = 1
111@ = 1

:HEIST5_6580
if 
  111@ == 1
goto_if_false @HEIST5_6809
if 
  locate_char_on_foot_3d $scplayer {x} 2596.5891 {y} 2758.158 {z} 22.862 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HEIST5_6800
if 
  151@ == 0
goto_if_false @HEIST5_6682
print_help 'HM5_20'
151@ = 1

:HEIST5_6682
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_6793
if 
  152@ == 0
goto_if_false @HEIST5_6793
clear_this_print 'HM5_20'
clear_help 
remove_blip 110@
remove_sphere 149@
attach_char_to_object $scplayer {handle} 109@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {heading} Facing.Left {headingRange} 360.0 {weaponType} WeaponType.Minigun
set_object_visible 109@ {state} False
111@ = 2
152@ = 1

:HEIST5_6793
goto @HEIST5_6809

:HEIST5_6800
clear_help 
151@ = 0

:HEIST5_6809
if 
  111@ == 2
goto_if_false @HEIST5_6851
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_6851
111@ = 3

:HEIST5_6851
if 
  111@ == 3
goto_if_false @HEIST5_6929
if 
  150@ == 0
goto_if_false @HEIST5_6905
print_help 'HM5_21'
150@ = 1

:HEIST5_6905
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_6929
111@ = 4

:HEIST5_6929
if 
  111@ == 4
goto_if_false @HEIST5_7137
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST5_7137
if 
  152@ == 1
goto_if_false @HEIST5_7137
detach_char_from_car $scplayer
clear_area 2596.1289 {y} 2757.1121 {z} 22.862 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2596.1289 {y} 2757.1121 {z} 22.862
set_char_heading $scplayer {heading} 217.0
set_object_visible 109@ {state} True
clear_this_print 'HM5_21'
clear_help 
remove_blip 110@
remove_sphere 149@
110@ = add_blip_for_coord 2595.5491 {y} 2758.04 {z} 22.832
149@ = add_sphere 2596.5891 {y} 2758.158 {z} 22.862 {radius} 1.0
150@ = 0
111@ = 1
152@ = 0

:HEIST5_7137
if 
  153@ == 1
goto_if_false @HEIST5_7471
if 
  116@ == 0
goto_if_false @HEIST5_7313
if 
  is_car_dead 114@
goto_if_false @HEIST5_7215
remove_blip 115@
112@ += 1
116@ = 1
goto @HEIST5_7313

:HEIST5_7215
if 
  is_car_stuck 114@
goto_if_false @HEIST5_7313
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 133@ = $player_x
133@ += 80.0
set_lvar_float_to_var_float 134@ = $player_y
134@ += 80.0
set_lvar_float_to_var_float 135@ = $player_z
135@ += 50.0
set_car_coordinates 114@ {x} 133@ {y} 134@ {z} 135@

:HEIST5_7313
if 
  120@ == 0
goto_if_false @HEIST5_7471
if 
  is_car_dead 118@
goto_if_false @HEIST5_7373
remove_blip 119@
112@ += 1
120@ = 1
goto @HEIST5_7471

:HEIST5_7373
if 
  is_car_stuck 118@
goto_if_false @HEIST5_7471
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_lvar_float_to_var_float 136@ = $player_x
136@ += 90.0
set_lvar_float_to_var_float 137@ = $player_y
137@ += 90.0
set_lvar_float_to_var_float 138@ = $player_z
138@ += 60.0
set_car_coordinates 118@ {x} 136@ {y} 137@ {z} 138@

:HEIST5_7471
if 
  TIMERB > 240000
goto_if_false @HEIST5_7618
if 
  116@ == 0
goto_if_false @HEIST5_7555
if 
  not is_car_dead 114@
goto_if_false @HEIST5_7555
explode_car 114@
explode_car 114@
remove_blip 115@
112@ += 1
116@ = 1

:HEIST5_7555
if 
  120@ == 0
goto_if_false @HEIST5_7618
if 
  not is_car_dead 118@
goto_if_false @HEIST5_7618
explode_car 118@
explode_car 118@
remove_blip 119@
112@ += 1
120@ = 1

:HEIST5_7618
goto @HEIST5_4208

:HEIST5_7625
$gate_stay_open = 0
clear_this_print 'HM5_20'
clear_this_print 'HM5_21'
clear_help 
remove_sphere 149@
remove_blip 38@
remove_blip 110@
remove_blip 115@
remove_blip 119@
mark_model_as_no_longer_needed 425
mark_model_as_no_longer_needed 362
if 
  152@ == 1
goto_if_false @HEIST5_7768
detach_char_from_car $scplayer
clear_area 2596.1289 {y} 2757.1121 {z} 22.862 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} 2596.1289 {y} 2757.1121 {z} 22.862
set_char_heading $scplayer {heading} 217.0

:HEIST5_7768
if 
  does_object_exist 109@
goto_if_false @HEIST5_7791
set_object_visible 109@ {state} True

:HEIST5_7791
if 
  not is_car_dead 34@
goto_if_false @HEIST5_7843
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_car_position 34@ {state} False
goto @HEIST5_7866

:HEIST5_7843
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_7866
print_now 'HM5_7' {time} 8000 {flag} 1

:HEIST5_7882
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_8124
wait 0
gosub @HEIST5_19771
gosub @HEIST5_16767
if 
  99@ == 1
goto_if_false @HEIST5_7994
if 
  100@ == 1
goto_if_false @HEIST5_7994
if 
  89@ == 0
goto_if_false @HEIST5_7987
gosub @HEIST5_14491
goto @HEIST5_7994

:HEIST5_7987
gosub @HEIST5_14889

:HEIST5_7994
if 
  is_car_dead 34@
goto_if_false @HEIST5_8040
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717
goto @HEIST5_8117

:HEIST5_8040
if 
  locate_char_on_foot_3d $scplayer {x} 2614.603 {y} 2720.7451 {z} 35.563 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @HEIST5_8117
lock_car_doors 34@ {lockStatus} CarLock.Unlocked
set_car_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
freeze_car_position 34@ {state} False

:HEIST5_8117
goto @HEIST5_7882

:HEIST5_8124
if 
  159@ == 1
goto_if_false @HEIST5_8153
clear_mission_audio MissionAudioSlot.Slot3
159@ = 0

:HEIST5_8153
clear_wanted_level $player1
remove_blip 35@
mark_model_as_no_longer_needed 359
122@ = create_car 428 {x} 2847.3911 {y} 904.2733 {z} 9.75
set_upsidedown_car_not_damaged 122@ {state} True
lock_car_doors 122@ {lockStatus} CarLock.Locked
set_car_heading 122@ {heading} 353.511
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
$bankvan1_upright_value_heist5 = get_car_upright_value 122@
129@ = 1
print_now 'HM5_8' {time} 8000 {flag} 1
TIMERA = 0

:HEIST5_8268
if 
  125@ == 0
goto_if_false @HEIST5_8921
wait 0
if 
  124@ == 0
goto_if_false @HEIST5_8414
if 
  is_car_dead 122@
goto_if_false @HEIST5_8391
if 
  129@ == 1
goto_if_false @HEIST5_8354
remove_blip 123@
129@ = 0

:HEIST5_8354
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13717
124@ = 1
goto @HEIST5_8414

:HEIST5_8391
$bankvan1_health_heist5 = get_car_health 122@
$bankvan1_health_heist5 /= 10
$bankvan1_upright_value_heist5 = get_car_upright_value 122@

:HEIST5_8414
if 
  is_car_dead 34@
goto_if_false @HEIST5_8460
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717
goto @HEIST5_8914

:HEIST5_8460
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_8805
if 
  163@ == 0
goto_if_false @HEIST5_8545
if 
  TIMERA >= 5000
goto_if_false @HEIST5_8545
clear_this_print 'HM5_8'
print_help 'WINCH_V'
163@ = 1

:HEIST5_8545
if 
  90@ == 0
goto_if_false @HEIST5_8618
if 
  not is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 80.0 {drawSphere} False
goto_if_false @HEIST5_8618
gosub @HEIST5_20964

:HEIST5_8618
126@, 127@, 128@ = grab_entity_on_winch 34@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8689
if 
  is_int_lvar_equal_to_int_lvar 126@ == 122@
goto_if_false @HEIST5_8689
$bankvan1_health_heist5 = get_car_health 122@
$bankvan1_health_heist5 /= 10
125@ = 1

:HEIST5_8689
if 
  36@ == 1
goto_if_false @HEIST5_8798
$blob_flag = 1
remove_blip 35@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8791
if 
  129@ == 0
goto_if_false @HEIST5_8791
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
print_now 'HM5_10' {time} 8000 {flag} 1
129@ = 1

:HEIST5_8791
36@ = 0

:HEIST5_8798
goto @HEIST5_8914

:HEIST5_8805
if 
  36@ == 0
goto_if_false @HEIST5_8914
$blob_flag = 0
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8876
if 
  129@ == 1
goto_if_false @HEIST5_8876
remove_blip 123@
129@ = 0

:HEIST5_8876
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
36@ = 1

:HEIST5_8914
goto @HEIST5_8268

:HEIST5_8921
if 
  not is_car_dead 122@
goto_if_false @HEIST5_8989
if 
  129@ == 1
goto_if_false @HEIST5_8982
remove_blip 123@
set_car_proofs 122@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
129@ = 0

:HEIST5_8982
goto @HEIST5_9049

:HEIST5_8989
if 
  129@ == 1
goto_if_false @HEIST5_9019
remove_blip 123@
129@ = 0

:HEIST5_9019
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13717
124@ = 1

:HEIST5_9049
mark_model_as_no_longer_needed 287
request_model 117
print_now 'HM5_2' {time} 5000 {flag} 1
37@ = add_blip_for_coord 39@ {y} 40@ {z} 41@
139@ = 1
36@ = 0
129@ = 0
$blob_flag = 1

:HEIST5_9116
if or
  142@ <> 1
  not locate_stopped_car_3d 122@ {x} 39@ {y} 40@ {z} 41@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} $blob_flag
  not has_model_loaded 117
goto_if_false @HEIST5_10600
wait 0
if 
  124@ == 0
goto_if_false @HEIST5_9538
if 
  is_car_dead 122@
goto_if_false @HEIST5_9275
if 
  129@ == 1
goto_if_false @HEIST5_9238
remove_blip 123@
129@ = 0

:HEIST5_9238
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13717
124@ = 1
goto @HEIST5_9538

:HEIST5_9275
$bankvan1_health_heist5 = get_car_health 122@
$bankvan1_health_heist5 /= 10
$bankvan1_upright_value_heist5 = get_car_upright_value 122@
if 
  locate_stopped_car_3d 122@ {x} 39@ {y} 40@ {z} 41@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST5_9531
if 
  140@ == 0
goto_if_false @HEIST5_9495
if and
  1.0 >= $bankvan1_upright_value_heist5
  $bankvan1_upright_value_heist5 > 0.8
goto_if_false @HEIST5_9440
if 
  not is_car_in_air_proper 122@
goto_if_false @HEIST5_9426
winch_can_pick_vehicle_up 122@ {state} False
142@ = 1
goto @HEIST5_9433

:HEIST5_9426
142@ = 0

:HEIST5_9433
goto @HEIST5_9447

:HEIST5_9440
142@ = 0

:HEIST5_9447
if 
  142@ == 0
goto_if_false @HEIST5_9488
print_now 'HM5_12' {time} 8000 {flag} 1
140@ = 1

:HEIST5_9488
goto @HEIST5_9524

:HEIST5_9495
if 
  142@ == 1
goto_if_false @HEIST5_9524
clear_this_print 'HM5_12'

:HEIST5_9524
goto @HEIST5_9538

:HEIST5_9531
140@ = 0

:HEIST5_9538
if 
  is_car_dead 34@
goto_if_false @HEIST5_9584
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717
goto @HEIST5_10593

:HEIST5_9584
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_10465
126@, 127@, 128@ = grab_entity_on_winch 34@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_10078
if 
  is_int_lvar_equal_to_int_lvar 126@ == 122@
goto_if_false @HEIST5_9785
if 
  129@ == 1
goto_if_false @HEIST5_9697
remove_blip 123@
$bankvan1_health_heist5 = get_car_health 122@
$bankvan1_health_heist5 /= 10
129@ = 0

:HEIST5_9697
if 
  139@ == 0
goto_if_false @HEIST5_9764
remove_blip 37@
37@ = add_blip_for_coord 39@ {y} 40@ {z} 41@
print_now 'HM5_2' {time} 5000 {flag} 1
$blob_flag = 1
139@ = 1

:HEIST5_9764
141@ = 0
125@ = 1
goto @HEIST5_10078

:HEIST5_9785
130@, 131@, 132@ = get_car_coordinates 122@
105@, 106@, 107@ = get_car_coordinates 34@
108@ = get_distance_between_coords_2d 105@ {fromY} 106@ {toX} 130@ {toZ} 131@
if 
  10.0 > 108@
goto_if_false @HEIST5_9973
if 
  not is_line_of_sight_clear 105@ {fromY} 106@ {fromZ} 107@ {toX} 130@ {toY} 131@ {toZ} 132@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @HEIST5_9973
if 
  141@ == 0
goto_if_false @HEIST5_9931
TIMERA = 0
141@ = 1
goto @HEIST5_9973

:HEIST5_9931
if 
  TIMERA >= 10000
goto_if_false @HEIST5_9973
print_now 'HM5_14' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_9973
125@ = 0
if 
  139@ == 1
goto_if_false @HEIST5_10010
remove_blip 37@
139@ = 0

:HEIST5_10010
if 
  129@ == 0
goto_if_false @HEIST5_10078
remove_blip 123@
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
print_now 'HM5_10' {time} 8000 {flag} 1
$blob_flag = 0
129@ = 1

:HEIST5_10078
if 
  36@ == 1
goto_if_false @HEIST5_10458
remove_blip 35@
if 
  125@ == 1
goto_if_false @HEIST5_10200
if 
  139@ == 0
goto_if_false @HEIST5_10163
remove_blip 37@
37@ = add_blip_for_coord 39@ {y} 40@ {z} 41@
139@ = 1

:HEIST5_10163
print_now 'HM5_2' {time} 5000 {flag} 1
$blob_flag = 1
36@ = 0
goto @HEIST5_10458

:HEIST5_10200
if 
  not is_car_dead 122@
goto_if_false @HEIST5_10451
if 
  129@ == 0
goto_if_false @HEIST5_10451
remove_blip 123@
123@ = add_blip_for_car 122@
set_blip_as_friendly 123@ {state} True
print_now 'HM5_10' {time} 8000 {flag} 1
$blob_flag = 0
130@, 131@, 132@ = get_car_coordinates 122@
105@, 106@, 107@ = get_car_coordinates 34@
108@ = get_distance_between_coords_2d 105@ {fromY} 106@ {toX} 130@ {toZ} 131@
if 
  not is_line_of_sight_clear 105@ {fromY} 106@ {fromZ} 107@ {toX} 130@ {toY} 131@ {toZ} 132@ {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @HEIST5_10444
if 
  141@ == 0
goto_if_false @HEIST5_10402
TIMERA = 0
141@ = 1
goto @HEIST5_10444

:HEIST5_10402
if 
  TIMERA >= 10000
goto_if_false @HEIST5_10444
print_now 'HM5_14' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_10444
129@ = 1

:HEIST5_10451
36@ = 0

:HEIST5_10458
goto @HEIST5_10593

:HEIST5_10465
if 
  36@ == 0
goto_if_false @HEIST5_10593
$blob_flag = 0
if 
  139@ == 1
goto_if_false @HEIST5_10520
remove_blip 37@
139@ = 0

:HEIST5_10520
if 
  129@ == 1
goto_if_false @HEIST5_10550
remove_blip 123@
129@ = 0

:HEIST5_10550
remove_blip 35@
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
36@ = 1

:HEIST5_10593
goto @HEIST5_9116

:HEIST5_10600
clear_this_print 'HM5_12'
remove_blip 37@
if 
  not is_car_dead 122@
goto_if_false @HEIST5_10695
remove_blip 123@
if 
  not is_car_dead 34@
goto_if_false @HEIST5_10665
release_entity_from_winch 34@
goto @HEIST5_10688

:HEIST5_10665
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_10688
goto @HEIST5_10723

:HEIST5_10695
remove_blip 123@
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_10723
print_now 'HM5_13' {time} 8000 {flag} 1
144@ = add_blip_for_coord 145@ {y} 146@ {z} 147@
36@ = 0
$blob_flag = 1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 18800
load_mission_audio MissionAudioSlot.Slot2 {audioId} 18801

:HEIST5_10781
if or
  not locate_stopped_car_3d 34@ {x} 145@ {y} 146@ {z} 147@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_char_sitting_in_car $scplayer {vehicle} 34@
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @HEIST5_11102
wait 0
if 
  is_car_dead 122@
goto_if_false @HEIST5_10888
remove_blip 123@
print_now 'HM5_9' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_10888
if 
  is_car_dead 34@
goto_if_false @HEIST5_10934
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717
goto @HEIST5_11095

:HEIST5_10934
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @HEIST5_11027
if 
  36@ == 1
goto_if_false @HEIST5_11020
remove_blip 35@
print_now 'HM5_13' {time} 8000 {flag} 1
144@ = add_blip_for_coord 145@ {y} 146@ {z} 147@
$blob_flag = 1
36@ = 0

:HEIST5_11020
goto @HEIST5_11095

:HEIST5_11027
if 
  36@ == 0
goto_if_false @HEIST5_11095
remove_blip 144@
35@ = add_blip_for_car 34@
set_blip_as_friendly 35@ {state} True
print_now 'IN_VEH' {time} 5000 {flag} 1
$blob_flag = 0
36@ = 1

:HEIST5_11095
goto @HEIST5_10781

:HEIST5_11102
switch_widescreen True
set_player_control $player1 {state} False
remove_blip 144@
remove_blip 35@
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
delete_car 122@
mark_model_as_no_longer_needed 428
make_player_gang_disappear 
145@ = 365.87
146@ = 2537.8679
if 
  not is_car_dead 34@
goto_if_false @HEIST5_11231
set_car_coordinates 34@ {x} 145@ {y} 146@ {z} 147@
set_car_heading 34@ {heading} 214.0
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @HEIST5_11254

:HEIST5_11231
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_11254
set_fixed_camera_position 371.7336 {y} 2544.856 {z} 16.6086 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 371.3514 {y} 2543.9441 {z} 16.7564 {switchStyle} SwitchType.JumpCut
wait 2000
skip_cutscene_start_internal @HEIST5_13377
if 
  not is_car_dead 34@
goto_if_false @HEIST5_11362
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
shut_char_up_for_scripted_speech $scplayer {state} True
task_leave_car $scplayer {vehicle} 34@
goto @HEIST5_11385

:HEIST5_11362
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_11385
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST5_11451
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_11444
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_11444
goto @HEIST5_11385

:HEIST5_11451
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
148@ = create_char PedType.CivMale {modelId} 117 {x} 375.081 {y} 2535.866 {z} 15.64
set_char_decision_maker 148@ {handleOrTemplate} 56@
set_char_only_damaged_by_player 148@ {state} True
set_char_proofs 148@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 148@ {state} True
task_go_straight_to_coord $scplayer {x} 370.364 {y} 2538.7529 {z} 15.643 {speed} MoveState.Walk {time} -1

:HEIST5_11543
if 
  not locate_stopped_char_on_foot_3d $scplayer {x} 370.364 {y} 2538.7529 {z} 15.643 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_11680
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_11634
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_11634
if 
  is_char_dead 148@
goto_if_false @HEIST5_11673
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_11673
goto @HEIST5_11543

:HEIST5_11680
if 
  not is_char_dead 148@
goto_if_false @HEIST5_11792
task_goto_char 148@ {target} $scplayer {time} -1 {radius} 1.3
play_mission_audio MissionAudioSlot.Slot1
print_now 'HE5_AA' {time} 10000 {flag} 1
start_char_facial_talk 148@ {duration} 999999
task_play_anim_non_interruptable 148@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char $scplayer {target} 148@
goto @HEIST5_11815

:HEIST5_11792
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_11815
TIMERA = 0

:HEIST5_11822
if or
  not locate_char_on_foot_char_3d 148@ {target} $scplayer {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST5_12016
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_11924
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AA'
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_11924
if 
  is_char_dead 148@
goto_if_false @HEIST5_11970
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717
goto @HEIST5_12009

:HEIST5_11970
if 
  TIMERA >= 15000
goto_if_false @HEIST5_12009
set_char_coordinates 148@ {x} 371.364 {y} 2538.7529 {z} 15.643

:HEIST5_12009
goto @HEIST5_11822

:HEIST5_12016
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12044
clear_char_tasks 148@
goto @HEIST5_12067

:HEIST5_12044
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12067
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'HE5_AA'
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12110
stop_char_facial_talk 148@
goto @HEIST5_12133

:HEIST5_12110
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12133
if 
  is_player_playing $player1
goto_if_false @HEIST5_12276
play_mission_audio MissionAudioSlot.Slot2
print_now 'HE5_AB' {time} 10000 {flag} 1
task_play_anim_non_interruptable $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk $scplayer {duration} 999999
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12246
task_turn_char_to_face_char $scplayer {target} 148@
goto @HEIST5_12269

:HEIST5_12246
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12269
goto @HEIST5_12295

:HEIST5_12276
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AB'

:HEIST5_12295
load_mission_audio MissionAudioSlot.Slot1 {audioId} 18802

:HEIST5_12302
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST5_12445
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_12364
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_12364
if 
  is_char_dead 148@
goto_if_false @HEIST5_12403
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12403
if 
  not is_player_playing $player1
goto_if_false @HEIST5_12438
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AB'

:HEIST5_12438
goto @HEIST5_12302

:HEIST5_12445
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AB'
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12559
play_mission_audio MissionAudioSlot.Slot1
print_now 'HE5_AC' {time} 10000 {flag} 1
start_char_facial_talk 148@ {duration} 999999
task_play_anim_non_interruptable 148@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @HEIST5_12601

:HEIST5_12559
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AC'
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12601
load_mission_audio MissionAudioSlot.Slot2 {audioId} 18803

:HEIST5_12608
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @HEIST5_12735
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_12670
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_12670
if 
  is_char_dead 148@
goto_if_false @HEIST5_12728
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AC'
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12728
goto @HEIST5_12608

:HEIST5_12735
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'HE5_AC'
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12778
stop_char_facial_talk 148@
goto @HEIST5_12801

:HEIST5_12778
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12801
if 
  not is_char_dead 148@
goto_if_false @HEIST5_12829
clear_char_tasks 148@
goto @HEIST5_12852

:HEIST5_12829
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_12852
if 
  is_player_playing $player1
goto_if_false @HEIST5_12941
play_mission_audio MissionAudioSlot.Slot2
print_now 'HE5_AD' {time} 10000 {flag} 1
task_play_anim_non_interruptable $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
start_char_facial_talk $scplayer {duration} 999999
goto @HEIST5_12960

:HEIST5_12941
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AD'

:HEIST5_12960
if 
  not has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HEIST5_13099
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_13018
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_13018
if 
  is_char_dead 148@
goto_if_false @HEIST5_13057
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_13057
if 
  not is_player_playing $player1
goto_if_false @HEIST5_13092
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AD'

:HEIST5_13092
goto @HEIST5_12960

:HEIST5_13099
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_AD'
clear_char_tasks $scplayer
stop_char_facial_talk $scplayer
if 
  not is_char_dead 148@
goto_if_false @HEIST5_13171
task_go_straight_to_coord 148@ {x} 378.998 {y} 2534.0979 {z} 15.624 {speed} MoveState.Walk {time} -1
goto @HEIST5_13194

:HEIST5_13171
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_13194
wait 1200
task_go_straight_to_coord $scplayer {x} 379.998 {y} 2534.0979 {z} 15.624 {speed} MoveState.Walk {time} -1
TIMERA = 0

:HEIST5_13230
if 
  3000 >= TIMERA
goto_if_false @HEIST5_13338
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_13292
print_now 'HM5_3' {time} 5000 {flag} 1
goto @HEIST5_13717

:HEIST5_13292
if 
  is_char_dead 148@
goto_if_false @HEIST5_13331
print_now 'HM5_16' {time} 8000 {flag} 1
goto @HEIST5_13717

:HEIST5_13331
goto @HEIST5_13230

:HEIST5_13338
delete_car 34@
delete_char 148@
set_char_coordinates $scplayer {x} 388.007 {y} 2532.5459 {z} 15.594
set_camera_behind_player 
164@ = 1

:HEIST5_13377
skip_cutscene_end 
if 
  164@ == 0
goto_if_false @HEIST5_13679
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:HEIST5_13412
if 
  get_fading_status 
goto_if_false @HEIST5_13436
wait 0
goto @HEIST5_13412

:HEIST5_13436
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_help 
clear_prints 
switch_widescreen False
clear_area 388.007 {y} 2532.5459 {z} 15.594 {radius} 5.0 {clearParticles} True
if 
  is_char_in_flying_vehicle $scplayer
goto_if_false @HEIST5_13596
165@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 388.007 {y} 2532.5459 {z} 15.594

:HEIST5_13520
if 
  is_char_in_flying_vehicle $scplayer
goto_if_false @HEIST5_13579
wait 0
if 
  is_car_dead 34@
goto_if_false @HEIST5_13556

:HEIST5_13556
if 
  is_char_dead 148@
goto_if_false @HEIST5_13572

:HEIST5_13572
goto @HEIST5_13520

:HEIST5_13579
set_char_heading $scplayer {heading} 270.0
goto @HEIST5_13626

:HEIST5_13596
set_char_coordinates $scplayer {x} 388.007 {y} 2532.5459 {z} 15.594
set_char_heading $scplayer {heading} 270.0

:HEIST5_13626
set_camera_behind_player 
restore_camera_jumpcut 
delete_car 34@
delete_char 148@
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:HEIST5_13655
if 
  get_fading_status 
goto_if_false @HEIST5_13679
wait 0
goto @HEIST5_13655

:HEIST5_13679
make_player_gang_reappear 
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
goto @HEIST5_13735

:HEIST5_13717
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST5_13735
$flag_heist_mission_counter += 1
register_mission_passed 'HEIST_5'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 0 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 25
clear_wanted_level $player1
if 
  $1384 == 0
goto_if_false @HEIST5_13807
remove_blip $Theheist_contact_blip

:HEIST5_13807
switch_car_generator $hm5_car_gen {amount} 101
play_mission_passed_tune 1
return 

:HEIST5_13820
detach_char_from_car $scplayer
set_wanted_multiplier 1.0
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST5_13857
switch_car_generator $d5_bronze_generator {amount} 101

:HEIST5_13857
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST5_13882
switch_car_generator $d5_silver_generator {amount} 101

:HEIST5_13882
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST5_13907
switch_car_generator $d5_gold_generator {amount} 101

:HEIST5_13907
if 
  not has_pickup_been_collected 156@
goto_if_false @HEIST5_13928
remove_pickup 156@

:HEIST5_13928
if 
  not has_pickup_been_collected 157@
goto_if_false @HEIST5_13949
remove_pickup 157@

:HEIST5_13949
if 
  not has_pickup_been_collected 158@
goto_if_false @HEIST5_13970
remove_pickup 158@

:HEIST5_13970
$gate_stay_open = 0
switch_ambient_planes True
switch_police_helis True
$onmission = 0
$timer_mobile_start = get_game_timer 
remove_sphere 149@
mark_model_as_no_longer_needed 417
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 425
mark_model_as_no_longer_needed #MINIGUN_BASE
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 117
remove_decision_maker 57@
remove_decision_maker 58@
remove_decision_maker 56@
remove_blip 35@
remove_blip 37@
remove_blip 38@
remove_blip 144@
remove_blip 110@
remove_blip 115@
remove_blip 119@
remove_blip 123@
clear_sequence_task 59@
clear_sequence_task 60@
clear_sequence_task 91@
clear_sequence_task 92@
clear_sequence_task 93@
clear_sequence_task 94@
clear_sequence_task 95@
clear_sequence_task 96@
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_mission_audio MissionAudioSlot.Slot3
mission_has_finished 
return 

:HEIST5_14162
if 
  not is_char_dead 45@
goto_if_false @HEIST5_14271
if or
  is_char_in_flying_vehicle $scplayer
  is_player_using_jetpack $player1
  $player_fall_state > 0
goto_if_false @HEIST5_14242
remove_all_char_weapons 45@
give_weapon_to_char 45@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_accuracy 45@ {accuracy} 85
set_char_shoot_rate 45@ {rate} 40
goto @HEIST5_14271

:HEIST5_14242
remove_all_char_weapons 45@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 45@ {accuracy} 70
set_char_shoot_rate 45@ {rate} 40

:HEIST5_14271
if 
  not is_char_dead 46@
goto_if_false @HEIST5_14380
if or
  is_char_in_flying_vehicle $scplayer
  is_player_using_jetpack $player1
  $player_fall_state > 0
goto_if_false @HEIST5_14351
remove_all_char_weapons 46@
give_weapon_to_char 46@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_accuracy 46@ {accuracy} 85
set_char_shoot_rate 46@ {rate} 40
goto @HEIST5_14380

:HEIST5_14351
remove_all_char_weapons 46@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 46@ {accuracy} 70
set_char_shoot_rate 46@ {rate} 45

:HEIST5_14380
if 
  not is_char_dead 47@
goto_if_false @HEIST5_14489
if or
  is_char_in_flying_vehicle $scplayer
  is_player_using_jetpack $player1
  $player_fall_state > 0
goto_if_false @HEIST5_14460
remove_all_char_weapons 47@
give_weapon_to_char 47@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_accuracy 47@ {accuracy} 85
set_char_shoot_rate 47@ {rate} 40
goto @HEIST5_14489

:HEIST5_14460
remove_all_char_weapons 47@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 30000
set_char_accuracy 47@ {accuracy} 70
set_char_shoot_rate 47@ {rate} 50

:HEIST5_14489
return 

:HEIST5_14491
if 
  89@ == 0
goto_if_false @HEIST5_14887
if 
  not is_char_dead 61@
goto_if_false @HEIST5_14533
task_kill_char_on_foot 61@ {target} $scplayer

:HEIST5_14533
if 
  not is_char_dead 63@
goto_if_false @HEIST5_14557
task_kill_char_on_foot 63@ {target} $scplayer

:HEIST5_14557
if 
  not is_char_dead 65@
goto_if_false @HEIST5_14581
task_kill_char_on_foot 65@ {target} $scplayer

:HEIST5_14581
if 
  not is_char_dead 67@
goto_if_false @HEIST5_14605
perform_sequence_task 67@ {sequence} 91@

:HEIST5_14605
if 
  not is_char_dead 69@
goto_if_false @HEIST5_14629
perform_sequence_task 69@ {sequence} 92@

:HEIST5_14629
if 
  not is_char_dead 71@
goto_if_false @HEIST5_14660
task_kill_char_on_foot 71@ {target} $scplayer
set_char_stay_in_same_place 71@ {state} True

:HEIST5_14660
if 
  not is_char_dead 73@
goto_if_false @HEIST5_14691
task_kill_char_on_foot 73@ {target} $scplayer
set_char_stay_in_same_place 73@ {state} True

:HEIST5_14691
if 
  not is_char_dead 75@
goto_if_false @HEIST5_14722
task_kill_char_on_foot 75@ {target} $scplayer
set_char_stay_in_same_place 75@ {state} True

:HEIST5_14722
if 
  not is_char_dead 77@
goto_if_false @HEIST5_14753
task_kill_char_on_foot 77@ {target} $scplayer
set_char_stay_in_same_place 77@ {state} True

:HEIST5_14753
if 
  not is_char_dead 79@
goto_if_false @HEIST5_14784
task_kill_char_on_foot 79@ {target} $scplayer
set_char_stay_in_same_place 79@ {state} True

:HEIST5_14784
if 
  not is_char_dead 81@
goto_if_false @HEIST5_14808
perform_sequence_task 81@ {sequence} 93@

:HEIST5_14808
if 
  not is_char_dead 83@
goto_if_false @HEIST5_14832
perform_sequence_task 83@ {sequence} 94@

:HEIST5_14832
if 
  not is_char_dead 85@
goto_if_false @HEIST5_14856
perform_sequence_task 85@ {sequence} 95@

:HEIST5_14856
if 
  not is_char_dead 87@
goto_if_false @HEIST5_14880
perform_sequence_task 87@ {sequence} 96@

:HEIST5_14880
89@ = 1

:HEIST5_14887
return 

:HEIST5_14889
if 
  not is_char_dead 67@
goto_if_false @HEIST5_14964
if 
  locate_char_on_foot_char_3d $scplayer {target} 67@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_14956
set_char_decision_maker 67@ {handleOrTemplate} 58@
goto @HEIST5_14964

:HEIST5_14956
set_char_decision_maker 67@ {handleOrTemplate} 57@

:HEIST5_14964
if 
  not is_char_dead 69@
goto_if_false @HEIST5_15039
if 
  locate_char_on_foot_char_3d $scplayer {target} 69@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15031
set_char_decision_maker 69@ {handleOrTemplate} 58@
goto @HEIST5_15039

:HEIST5_15031
set_char_decision_maker 69@ {handleOrTemplate} 57@

:HEIST5_15039
if 
  not is_char_dead 71@
goto_if_false @HEIST5_15114
if 
  locate_char_on_foot_char_3d $scplayer {target} 71@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15106
set_char_decision_maker 71@ {handleOrTemplate} 58@
goto @HEIST5_15114

:HEIST5_15106
set_char_decision_maker 71@ {handleOrTemplate} 57@

:HEIST5_15114
if 
  not is_char_dead 73@
goto_if_false @HEIST5_15189
if 
  locate_char_on_foot_char_3d $scplayer {target} 73@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15181
set_char_decision_maker 73@ {handleOrTemplate} 58@
goto @HEIST5_15189

:HEIST5_15181
set_char_decision_maker 73@ {handleOrTemplate} 57@

:HEIST5_15189
if 
  not is_char_dead 75@
goto_if_false @HEIST5_15264
if 
  locate_char_on_foot_char_3d $scplayer {target} 75@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15256
set_char_decision_maker 75@ {handleOrTemplate} 58@
goto @HEIST5_15264

:HEIST5_15256
set_char_decision_maker 75@ {handleOrTemplate} 57@

:HEIST5_15264
if 
  not is_char_dead 77@
goto_if_false @HEIST5_15339
if 
  locate_char_on_foot_char_3d $scplayer {target} 77@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15331
set_char_decision_maker 77@ {handleOrTemplate} 58@
goto @HEIST5_15339

:HEIST5_15331
set_char_decision_maker 77@ {handleOrTemplate} 57@

:HEIST5_15339
if 
  not is_char_dead 79@
goto_if_false @HEIST5_15414
if 
  locate_char_on_foot_char_3d $scplayer {target} 79@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST5_15406
set_char_decision_maker 79@ {handleOrTemplate} 58@
goto @HEIST5_15414

:HEIST5_15406
set_char_decision_maker 79@ {handleOrTemplate} 57@

:HEIST5_15414
return 

:HEIST5_15416
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16703
if 
  100@ == 0
goto_if_false @HEIST5_16546
if or
  is_player_targetting_char $player1 {handle} 97@
  has_char_been_damaged_by_weapon 97@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_15483
100@ = 1

:HEIST5_15483
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @HEIST5_16532
if 
  not is_player_using_jetpack $player1
goto_if_false @HEIST5_16518
if 
  $player_fall_state == 0
goto_if_false @HEIST5_16504
if or
  has_char_spotted_char 97@ {target} $scplayer
  is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_16497
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  101@ == 0
goto_if_false @HEIST5_15750
if 
  locate_char_on_foot_char_3d $scplayer {target} 97@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @HEIST5_15673
print_now 'HE5_BA' {time} 8000 {flag} 1

:HEIST5_15673
160@, 161@, 162@ = get_char_coordinates 97@
set_mission_audio_position MissionAudioSlot.Slot1 {x} 160@ {y} 161@ {z} 162@
play_mission_audio MissionAudioSlot.Slot1
start_char_facial_talk 97@ {duration} 999999
shut_char_up_for_scripted_speech 97@ {state} True
TIMERB = 0
task_goto_char 97@ {target} $scplayer {time} -1 {radius} 2.0
101@ = 1

:HEIST5_15750
if 
  101@ == 1
goto_if_false @HEIST5_15804
102@ = get_script_task_status 97@ {taskId} 1497
if 
  is_int_lvar_equal_to_constant 102@ == 7
goto_if_false @HEIST5_15804
101@ = 2

:HEIST5_15804
if 
  101@ >= 1
goto_if_false @HEIST5_16497

:HEIST5_15822
if 
  3000 > TIMERB
goto_if_false @HEIST5_16190
wait 0
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST5_15913
clear_this_print 'HE5_BA'
if 
  not is_char_dead 97@
goto_if_false @HEIST5_15906
stop_char_facial_talk 97@
shut_char_up_for_scripted_speech 97@ {state} False
goto @HEIST5_15913

:HEIST5_15906
98@ = 1

:HEIST5_15913
if 
  100@ == 1
goto_if_false @HEIST5_16065
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16003
if 
  103@ == 0
goto_if_false @HEIST5_15996
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Hate
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
task_kill_char_on_foot 97@ {target} $scplayer
103@ = 1

:HEIST5_15996
goto @HEIST5_16058

:HEIST5_16003
if 
  98@ == 0
goto_if_false @HEIST5_16058
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16058
goto @HEIST5_16183

:HEIST5_16065
if 
  98@ == 0
goto_if_false @HEIST5_16183
if 
  is_char_dead 97@
goto_if_false @HEIST5_16150
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
100@ = 1
98@ = 1
goto @HEIST5_16183

:HEIST5_16150
if or
  is_player_targetting_char $player1 {handle} 97@
  has_char_been_damaged_by_weapon 97@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_16183
100@ = 1

:HEIST5_16183
goto @HEIST5_15822

:HEIST5_16190
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2497.387 {leftBottomY} 2858.0181 {leftBottomZ} 8.0 {rightTopX} 2676.4131 {rightTopY} 2683.6609 {rightTopZ} 60.0 {drawSphere} False
goto_if_false @HEIST5_16497
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16435
if 
  100@ >= 0
goto_if_false @HEIST5_16372
if 
  locate_char_on_foot_char_3d $scplayer {target} 97@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @HEIST5_16324
print_now 'HE5_BD' {time} 8000 {flag} 1

:HEIST5_16324
start_char_facial_talk 97@ {duration} 999999
shut_char_up_for_scripted_speech 97@ {state} True
160@, 161@, 162@ = get_char_coordinates 97@
set_mission_audio_position MissionAudioSlot.Slot2 {x} 160@ {y} 161@ {z} 162@
play_mission_audio MissionAudioSlot.Slot2

:HEIST5_16372
if 
  103@ == 0
goto_if_false @HEIST5_16421
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Hate
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
task_kill_char_on_foot 97@ {target} $scplayer
103@ = 1

:HEIST5_16421
100@ = 1
goto @HEIST5_16497

:HEIST5_16435
if 
  98@ == 0
goto_if_false @HEIST5_16490
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16490
100@ = 1

:HEIST5_16497
goto @HEIST5_16511

:HEIST5_16504
100@ = 1

:HEIST5_16511
goto @HEIST5_16525

:HEIST5_16518
100@ = 1

:HEIST5_16525
goto @HEIST5_16539

:HEIST5_16532
100@ = 1

:HEIST5_16539
goto @HEIST5_16696

:HEIST5_16546
if 
  not is_char_dead 97@
goto_if_false @HEIST5_16634
if 
  103@ == 0
goto_if_false @HEIST5_16627
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Hate
clear_all_char_relationships 97@ {relationshipType} RelationshipType.Like
set_char_relationship 97@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 97@ {relationshipType} RelationshipType.Like {pedType} PedType.Mission1
task_kill_char_on_foot 97@ {target} $scplayer
103@ = 1

:HEIST5_16627
goto @HEIST5_16696

:HEIST5_16634
if 
  98@ == 0
goto_if_false @HEIST5_16689
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16689
100@ = 1

:HEIST5_16696
goto @HEIST5_16765

:HEIST5_16703
if 
  98@ == 0
goto_if_false @HEIST5_16758
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 'HE5_BA'
clear_this_print 'HE5_BB'
98@ = 1

:HEIST5_16758
100@ = 1

:HEIST5_16765
return 

:HEIST5_16767
if 
  62@ == 0
goto_if_false @HEIST5_16954
if 
  is_char_dead 61@
goto_if_false @HEIST5_16822
100@ = 1
62@ = 1
goto @HEIST5_16954

:HEIST5_16822
if 
  99@ == 1
goto_if_false @HEIST5_16954
if 
  100@ == 0
goto_if_false @HEIST5_16954
if or
  is_player_targetting_char $player1 {handle} 61@
  has_char_been_damaged_by_weapon 61@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_16891
100@ = 1

:HEIST5_16891
if 
  101@ > 1
goto_if_false @HEIST5_16954
if 
  TIMERB > 3000
goto_if_false @HEIST5_16954
if 
  has_char_spotted_char 61@ {target} $scplayer
goto_if_false @HEIST5_16954
100@ = 1

:HEIST5_16954
if 
  64@ == 0
goto_if_false @HEIST5_17141
if 
  is_char_dead 63@
goto_if_false @HEIST5_17009
100@ = 1
64@ = 1
goto @HEIST5_17141

:HEIST5_17009
if 
  99@ == 1
goto_if_false @HEIST5_17141
if 
  100@ == 0
goto_if_false @HEIST5_17141
if or
  is_player_targetting_char $player1 {handle} 63@
  has_char_been_damaged_by_weapon 63@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17078
100@ = 1

:HEIST5_17078
if 
  101@ > 1
goto_if_false @HEIST5_17141
if 
  TIMERB > 3000
goto_if_false @HEIST5_17141
if 
  has_char_spotted_char 63@ {target} $scplayer
goto_if_false @HEIST5_17141
100@ = 1

:HEIST5_17141
if 
  66@ == 0
goto_if_false @HEIST5_17328
if 
  is_char_dead 65@
goto_if_false @HEIST5_17196
100@ = 1
66@ = 1
goto @HEIST5_17328

:HEIST5_17196
if 
  99@ == 1
goto_if_false @HEIST5_17328
if 
  100@ == 0
goto_if_false @HEIST5_17328
if or
  is_player_targetting_char $player1 {handle} 65@
  has_char_been_damaged_by_weapon 65@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17265
100@ = 1

:HEIST5_17265
if 
  101@ > 1
goto_if_false @HEIST5_17328
if 
  TIMERB > 3000
goto_if_false @HEIST5_17328
if 
  has_char_spotted_char 65@ {target} $scplayer
goto_if_false @HEIST5_17328
100@ = 1

:HEIST5_17328
if 
  68@ == 0
goto_if_false @HEIST5_17515
if 
  is_char_dead 67@
goto_if_false @HEIST5_17383
100@ = 1
68@ = 1
goto @HEIST5_17515

:HEIST5_17383
if 
  99@ == 1
goto_if_false @HEIST5_17515
if 
  100@ == 0
goto_if_false @HEIST5_17515
if or
  is_player_targetting_char $player1 {handle} 67@
  has_char_been_damaged_by_weapon 67@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17452
100@ = 1

:HEIST5_17452
if 
  101@ > 1
goto_if_false @HEIST5_17515
if 
  TIMERB > 3000
goto_if_false @HEIST5_17515
if 
  has_char_spotted_char 67@ {target} $scplayer
goto_if_false @HEIST5_17515
100@ = 1

:HEIST5_17515
if 
  70@ == 0
goto_if_false @HEIST5_17702
if 
  is_char_dead 69@
goto_if_false @HEIST5_17570
100@ = 1
70@ = 1
goto @HEIST5_17702

:HEIST5_17570
if 
  99@ == 1
goto_if_false @HEIST5_17702
if 
  100@ == 0
goto_if_false @HEIST5_17702
if or
  is_player_targetting_char $player1 {handle} 69@
  has_char_been_damaged_by_weapon 69@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17639
100@ = 1

:HEIST5_17639
if 
  101@ > 1
goto_if_false @HEIST5_17702
if 
  TIMERB > 3000
goto_if_false @HEIST5_17702
if 
  has_char_spotted_char 69@ {target} $scplayer
goto_if_false @HEIST5_17702
100@ = 1

:HEIST5_17702
if 
  72@ == 0
goto_if_false @HEIST5_17889
if 
  is_char_dead 71@
goto_if_false @HEIST5_17757
100@ = 1
72@ = 1
goto @HEIST5_17889

:HEIST5_17757
if 
  99@ == 1
goto_if_false @HEIST5_17889
if 
  100@ == 0
goto_if_false @HEIST5_17889
if or
  is_player_targetting_char $player1 {handle} 71@
  has_char_been_damaged_by_weapon 71@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_17826
100@ = 1

:HEIST5_17826
if 
  101@ > 1
goto_if_false @HEIST5_17889
if 
  TIMERB > 3000
goto_if_false @HEIST5_17889
if 
  has_char_spotted_char 71@ {target} $scplayer
goto_if_false @HEIST5_17889
100@ = 1

:HEIST5_17889
if 
  74@ == 0
goto_if_false @HEIST5_18076
if 
  is_char_dead 73@
goto_if_false @HEIST5_17944
100@ = 1
74@ = 1
goto @HEIST5_18076

:HEIST5_17944
if 
  99@ == 1
goto_if_false @HEIST5_18076
if 
  100@ == 0
goto_if_false @HEIST5_18076
if or
  is_player_targetting_char $player1 {handle} 73@
  has_char_been_damaged_by_weapon 73@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18013
100@ = 1

:HEIST5_18013
if 
  101@ > 1
goto_if_false @HEIST5_18076
if 
  TIMERB > 3000
goto_if_false @HEIST5_18076
if 
  has_char_spotted_char 73@ {target} $scplayer
goto_if_false @HEIST5_18076
100@ = 1

:HEIST5_18076
if 
  76@ == 0
goto_if_false @HEIST5_18263
if 
  is_char_dead 75@
goto_if_false @HEIST5_18131
100@ = 1
76@ = 1
goto @HEIST5_18263

:HEIST5_18131
if 
  99@ == 1
goto_if_false @HEIST5_18263
if 
  100@ == 0
goto_if_false @HEIST5_18263
if or
  is_player_targetting_char $player1 {handle} 75@
  has_char_been_damaged_by_weapon 75@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18200
100@ = 1

:HEIST5_18200
if 
  101@ > 1
goto_if_false @HEIST5_18263
if 
  TIMERB > 3000
goto_if_false @HEIST5_18263
if 
  has_char_spotted_char 75@ {target} $scplayer
goto_if_false @HEIST5_18263
100@ = 1

:HEIST5_18263
if 
  78@ == 0
goto_if_false @HEIST5_18450
if 
  is_char_dead 77@
goto_if_false @HEIST5_18318
100@ = 1
78@ = 1
goto @HEIST5_18450

:HEIST5_18318
if 
  99@ == 1
goto_if_false @HEIST5_18450
if 
  100@ == 0
goto_if_false @HEIST5_18450
if or
  is_player_targetting_char $player1 {handle} 77@
  has_char_been_damaged_by_weapon 77@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18387
100@ = 1

:HEIST5_18387
if 
  101@ > 1
goto_if_false @HEIST5_18450
if 
  TIMERB > 3000
goto_if_false @HEIST5_18450
if 
  has_char_spotted_char 77@ {target} $scplayer
goto_if_false @HEIST5_18450
100@ = 1

:HEIST5_18450
if 
  80@ == 0
goto_if_false @HEIST5_18637
if 
  is_char_dead 79@
goto_if_false @HEIST5_18505
100@ = 1
80@ = 1
goto @HEIST5_18637

:HEIST5_18505
if 
  99@ == 1
goto_if_false @HEIST5_18637
if 
  100@ == 0
goto_if_false @HEIST5_18637
if or
  is_player_targetting_char $player1 {handle} 79@
  has_char_been_damaged_by_weapon 79@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18574
100@ = 1

:HEIST5_18574
if 
  101@ > 1
goto_if_false @HEIST5_18637
if 
  TIMERB > 3000
goto_if_false @HEIST5_18637
if 
  has_char_spotted_char 79@ {target} $scplayer
goto_if_false @HEIST5_18637
100@ = 1

:HEIST5_18637
if 
  82@ == 0
goto_if_false @HEIST5_18824
if 
  is_char_dead 81@
goto_if_false @HEIST5_18692
100@ = 1
82@ = 1
goto @HEIST5_18824

:HEIST5_18692
if 
  99@ == 1
goto_if_false @HEIST5_18824
if 
  100@ == 0
goto_if_false @HEIST5_18824
if or
  is_player_targetting_char $player1 {handle} 81@
  has_char_been_damaged_by_weapon 81@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18761
100@ = 1

:HEIST5_18761
if 
  101@ > 1
goto_if_false @HEIST5_18824
if 
  TIMERB > 3000
goto_if_false @HEIST5_18824
if 
  has_char_spotted_char 81@ {target} $scplayer
goto_if_false @HEIST5_18824
100@ = 1

:HEIST5_18824
if 
  84@ == 0
goto_if_false @HEIST5_19011
if 
  is_char_dead 83@
goto_if_false @HEIST5_18879
100@ = 1
84@ = 1
goto @HEIST5_19011

:HEIST5_18879
if 
  99@ == 1
goto_if_false @HEIST5_19011
if 
  100@ == 0
goto_if_false @HEIST5_19011
if or
  is_player_targetting_char $player1 {handle} 83@
  has_char_been_damaged_by_weapon 83@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_18948
100@ = 1

:HEIST5_18948
if 
  101@ > 1
goto_if_false @HEIST5_19011
if 
  TIMERB > 3000
goto_if_false @HEIST5_19011
if 
  has_char_spotted_char 83@ {target} $scplayer
goto_if_false @HEIST5_19011
100@ = 1

:HEIST5_19011
if 
  86@ == 0
goto_if_false @HEIST5_19198
if 
  is_char_dead 85@
goto_if_false @HEIST5_19066
100@ = 1
86@ = 1
goto @HEIST5_19198

:HEIST5_19066
if 
  99@ == 1
goto_if_false @HEIST5_19198
if 
  100@ == 0
goto_if_false @HEIST5_19198
if or
  is_player_targetting_char $player1 {handle} 85@
  has_char_been_damaged_by_weapon 85@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_19135
100@ = 1

:HEIST5_19135
if 
  101@ > 1
goto_if_false @HEIST5_19198
if 
  TIMERB > 3000
goto_if_false @HEIST5_19198
if 
  has_char_spotted_char 85@ {target} $scplayer
goto_if_false @HEIST5_19198
100@ = 1

:HEIST5_19198
if 
  88@ == 0
goto_if_false @HEIST5_19385
if 
  is_char_dead 87@
goto_if_false @HEIST5_19253
100@ = 1
88@ = 1
goto @HEIST5_19385

:HEIST5_19253
if 
  99@ == 1
goto_if_false @HEIST5_19385
if 
  100@ == 0
goto_if_false @HEIST5_19385
if or
  is_player_targetting_char $player1 {handle} 87@
  has_char_been_damaged_by_weapon 87@ {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_19322
100@ = 1

:HEIST5_19322
if 
  101@ > 1
goto_if_false @HEIST5_19385
if 
  TIMERB > 3000
goto_if_false @HEIST5_19385
if 
  has_char_spotted_char 87@ {target} $scplayer
goto_if_false @HEIST5_19385
100@ = 1

:HEIST5_19385
if 
  98@ == 0
goto_if_false @HEIST5_19433
if 
  is_char_dead 97@
goto_if_false @HEIST5_19433
100@ = 1
98@ = 1

:HEIST5_19433
if 
  49@ == 0
goto_if_false @HEIST5_19481
if 
  is_char_dead 42@
goto_if_false @HEIST5_19481
100@ = 1
49@ = 1

:HEIST5_19481
if 
  50@ == 0
goto_if_false @HEIST5_19529
if 
  is_char_dead 43@
goto_if_false @HEIST5_19529
100@ = 1
50@ = 1

:HEIST5_19529
if 
  51@ == 0
goto_if_false @HEIST5_19577
if 
  is_char_dead 44@
goto_if_false @HEIST5_19577
100@ = 1
51@ = 1

:HEIST5_19577
if 
  52@ == 0
goto_if_false @HEIST5_19625
if 
  is_char_dead 45@
goto_if_false @HEIST5_19625
100@ = 1
52@ = 1

:HEIST5_19625
if 
  53@ == 0
goto_if_false @HEIST5_19673
if 
  is_char_dead 46@
goto_if_false @HEIST5_19673
100@ = 1
53@ = 1

:HEIST5_19673
if 
  54@ == 0
goto_if_false @HEIST5_19721
if 
  is_char_dead 47@
goto_if_false @HEIST5_19721
100@ = 1
54@ = 1

:HEIST5_19721
if 
  55@ == 0
goto_if_false @HEIST5_19769
if 
  is_char_dead 48@
goto_if_false @HEIST5_19769
100@ = 1
55@ = 1

:HEIST5_19769
return 

:HEIST5_19771
166@ = 0

:HEIST5_19778
if 
  7 > 166@
goto_if_false @HEIST5_20269
wait 0
gosub @HEIST5_16767
if 
  99@ == 1
goto_if_false @HEIST5_20025
gosub @HEIST5_15416
gosub @HEIST5_14162
if 
  100@ == 1
goto_if_false @HEIST5_19896
if 
  89@ == 0
goto_if_false @HEIST5_19889
gosub @HEIST5_14491
goto @HEIST5_19896

:HEIST5_19889
gosub @HEIST5_14889

:HEIST5_19896
if 
  100@ >= 1
goto_if_false @HEIST5_20025
if 
  103@ == 1
goto_if_false @HEIST5_20025
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @HEIST5_20025
clear_this_print 'HE5_BD'
if 
  98@ == 0
goto_if_false @HEIST5_20018
if 
  not is_char_dead 97@
goto_if_false @HEIST5_20011
stop_char_facial_talk 97@
shut_char_up_for_scripted_speech 97@ {state} False
goto @HEIST5_20018

:HEIST5_20011
98@ = 1

:HEIST5_20018
103@ = 2

:HEIST5_20025
if 
  not is_char_dead 42@(166@,7i)
goto_if_false @HEIST5_20248
$task_status = get_script_task_status 42@(166@,7i) {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @HEIST5_20241
if 
  99@ == 1
goto_if_false @HEIST5_20241
if 
  100@ == 0
goto_if_false @HEIST5_20229
if or
  is_player_targetting_char $player1 {handle} 42@(166@,7i)
  has_char_been_damaged_by_weapon 42@(166@,7i) {weaponType} WeaponType.AnyWeapon
goto_if_false @HEIST5_20155
100@ = 1

:HEIST5_20155
if 
  101@ > 1
goto_if_false @HEIST5_20222
if 
  TIMERB > 3000
goto_if_false @HEIST5_20222
if 
  has_char_spotted_char 42@(166@,7i) {target} $scplayer
goto_if_false @HEIST5_20222
100@ = 1

:HEIST5_20222
goto @HEIST5_20241

:HEIST5_20229
task_kill_char_on_foot 42@(166@,7i) {target} $scplayer

:HEIST5_20241
goto @HEIST5_20255

:HEIST5_20248
100@ = 1

:HEIST5_20255
166@ += 1
goto @HEIST5_19778

:HEIST5_20269
return 

:HEIST5_20271
if 
  62@ == 0
goto_if_false @HEIST5_20317
if 
  not is_char_dead 61@
goto_if_false @HEIST5_20317
delete_char 61@
62@ = 1

:HEIST5_20317
if 
  64@ == 0
goto_if_false @HEIST5_20363
if 
  not is_char_dead 63@
goto_if_false @HEIST5_20363
delete_char 63@
64@ = 1

:HEIST5_20363
if 
  66@ == 0
goto_if_false @HEIST5_20409
if 
  not is_char_dead 65@
goto_if_false @HEIST5_20409
delete_char 65@
66@ = 1

:HEIST5_20409
if 
  68@ == 0
goto_if_false @HEIST5_20455
if 
  not is_char_dead 67@
goto_if_false @HEIST5_20455
delete_char 67@
68@ = 1

:HEIST5_20455
if 
  70@ == 0
goto_if_false @HEIST5_20501
if 
  not is_char_dead 69@
goto_if_false @HEIST5_20501
delete_char 69@
70@ = 1

:HEIST5_20501
if 
  72@ == 0
goto_if_false @HEIST5_20547
if 
  not is_char_dead 71@
goto_if_false @HEIST5_20547
delete_char 71@
72@ = 1

:HEIST5_20547
if 
  74@ == 0
goto_if_false @HEIST5_20593
if 
  not is_char_dead 73@
goto_if_false @HEIST5_20593
delete_char 73@
74@ = 1

:HEIST5_20593
if 
  76@ == 0
goto_if_false @HEIST5_20639
if 
  not is_char_dead 75@
goto_if_false @HEIST5_20639
delete_char 75@
76@ = 1

:HEIST5_20639
if 
  78@ == 0
goto_if_false @HEIST5_20685
if 
  not is_char_dead 77@
goto_if_false @HEIST5_20685
delete_char 77@
78@ = 1

:HEIST5_20685
if 
  80@ == 0
goto_if_false @HEIST5_20731
if 
  not is_char_dead 79@
goto_if_false @HEIST5_20731
delete_char 79@
80@ = 1

:HEIST5_20731
if 
  82@ == 0
goto_if_false @HEIST5_20777
if 
  not is_char_dead 81@
goto_if_false @HEIST5_20777
delete_char 81@
82@ = 1

:HEIST5_20777
if 
  84@ == 0
goto_if_false @HEIST5_20823
if 
  not is_char_dead 83@
goto_if_false @HEIST5_20823
delete_char 83@
84@ = 1

:HEIST5_20823
if 
  86@ == 0
goto_if_false @HEIST5_20869
if 
  not is_char_dead 85@
goto_if_false @HEIST5_20869
delete_char 85@
86@ = 1

:HEIST5_20869
if 
  88@ == 0
goto_if_false @HEIST5_20915
if 
  not is_char_dead 87@
goto_if_false @HEIST5_20915
delete_char 87@
88@ = 1

:HEIST5_20915
if 
  not is_char_dead $driver_gate_car_heist5
goto_if_false @HEIST5_20936
delete_char $driver_gate_car_heist5

:HEIST5_20936
if 
  not is_car_dead $gate_drive_car_heist5
goto_if_false @HEIST5_20957
delete_car $gate_drive_car_heist5

:HEIST5_20957
mark_model_as_no_longer_needed 470
return 

:HEIST5_20964
if 
  98@ == 0
goto_if_false @HEIST5_21010
if 
  not is_char_dead 97@
goto_if_false @HEIST5_21010
delete_char 97@
98@ = 1

:HEIST5_21010
if 
  49@ == 0
goto_if_false @HEIST5_21056
if 
  not is_char_dead 42@
goto_if_false @HEIST5_21056
delete_char 42@
49@ = 1

:HEIST5_21056
if 
  50@ == 0
goto_if_false @HEIST5_21102
if 
  not is_char_dead 43@
goto_if_false @HEIST5_21102
delete_char 43@
50@ = 1

:HEIST5_21102
if 
  51@ == 0
goto_if_false @HEIST5_21148
if 
  not is_char_dead 44@
goto_if_false @HEIST5_21148
delete_char 44@
51@ = 1

:HEIST5_21148
if 
  52@ == 0
goto_if_false @HEIST5_21194
if 
  not is_char_dead 45@
goto_if_false @HEIST5_21194
delete_char 45@
52@ = 1

:HEIST5_21194
if 
  53@ == 0
goto_if_false @HEIST5_21240
if 
  not is_char_dead 46@
goto_if_false @HEIST5_21240
delete_char 46@
53@ = 1

:HEIST5_21240
if 
  54@ == 0
goto_if_false @HEIST5_21286
if 
  not is_char_dead 47@
goto_if_false @HEIST5_21286
delete_char 47@
54@ = 1

:HEIST5_21286
if 
  55@ == 0
goto_if_false @HEIST5_21332
if 
  not is_char_dead 48@
goto_if_false @HEIST5_21332
delete_char 48@
55@ = 1

:HEIST5_21332
90@ = 1
return 

//-------------Mission 101---------------
// Originally: Breaking the Bank at Caligula's

:HEIST9
script_name 'HEIST9'
gosub @HEIST9_47
if 
  has_deatharrest_been_executed 
goto_if_false @HEIST9_38
gosub @HEIST9_44468

:HEIST9_38
gosub @HEIST9_44948
terminate_this_script 

:HEIST9_47
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST9_72
switch_car_generator $d5_bronze_generator {amount} 0

:HEIST9_72
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST9_97
switch_car_generator $d5_silver_generator {amount} 0

:HEIST9_97
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST9_122
switch_car_generator $d5_gold_generator {amount} 0

:HEIST9_122
set_zone_no_cops 'MEAD' {state} True
load_mission_text 'HEIST9'
$h9_health = 0
$h9_z1 = 0.0
$h9_offset = 0.0
$h9_calculus = 0.0
$h9_under_door = 0.0
$h9_TIMERC = 0
$h9_can_see = 0
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
$onmission = 1
$iSetCasinoPanic = 0
231@ = 2
$disable_mod_garage = 1
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_340
store_clothes_state 
give_player_clothes_outside_shop $player1 {textureName} "CROUPIER" {modelName} "VALET" {bodyPart} BodyPart.SpecialCostume
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Head
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Necklace
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Glasses
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Hat
build_player_model $player1

:HEIST9_340
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:HEIST9_355
if 
  get_fading_status 
goto_if_false @HEIST9_379
wait 0
goto @HEIST9_355

:HEIST9_379
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_490
set_area_visible 0
set_char_has_used_entry_exit $scplayer {x} 2016.422 {y} 1017.102 {radius} 10.0
load_scene 2028.932 {y} 1023.292 {z} 9.813
clear_area 2028.932 {y} 1023.292 {z} 9.813 {radius} 20.0 {clearParticles} True
set_char_coordinates_dont_warp_gang $scplayer {x} 2028.932 {y} 1023.292 {z} 9.813
set_char_heading $scplayer {heading} 278.4092

:HEIST9_490
set_area_visible 0
load_cutscene 'HEIST8A'

:HEIST9_505
if 
  not has_cutscene_loaded 
goto_if_false @HEIST9_529
wait 0
goto @HEIST9_505

:HEIST9_529
clear_area 1908.433 {y} 957.3687 {z} 9.8203 {radius} 40.0 {clearParticles} True
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:HEIST9_570
if 
  not has_cutscene_finished 
goto_if_false @HEIST9_594
wait 0
goto @HEIST9_570

:HEIST9_594
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:HEIST9_608
if 
  get_fading_status 
goto_if_false @HEIST9_632
wait 0
goto @HEIST9_608

:HEIST9_632
clear_cutscene 
39@ = add_blip_for_coord 2196.7151 {y} 1677.198 {z} 11.375
217@ = load_char_decision_maker DecisionMakerType.Weak
89@ = load_char_decision_maker DecisionMakerType.Normal
120@ = load_char_decision_maker DecisionMakerType.Empty
245@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Like {ofPedType} PedType.Mission3 {toPedType} PedType.Mission3
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
add_char_decision_maker_event_response 89@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 245@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
request_model 347
request_model 343
request_model 368
request_model #BODYARMOUR
request_model 353
request_model 335
request_model 346
request_animation "HEIST9"

:HEIST9_834
if or
  not has_model_loaded 347
  not has_model_loaded 343
  not has_model_loaded 368
  not has_model_loaded #BODYARMOUR
goto_if_false @HEIST9_875
wait 0
goto @HEIST9_834

:HEIST9_875
if or
  not has_model_loaded 353
  not has_model_loaded 335
  not has_animation_loaded "HEIST9"
  not has_model_loaded 346
goto_if_false @HEIST9_922
wait 0
goto @HEIST9_875

:HEIST9_922
$h9_safe_timer = 240000
clear_wanted_level $player1
set_wanted_multiplier 0.0
set_player_control $player1 {state} True
171@ = create_object #GENERATOR_BIG {x} 2145.05 {y} 1613.49 {z} 999.9764
set_object_area_visible 171@ {areaId} 1
set_object_heading 171@ {heading} 1.2043
172@ = create_object #GENERATOR_BIG {x} 2148.8 {y} 1613.49 {z} 999.9764
set_object_area_visible 172@ {areaId} 1
set_object_heading 172@ {heading} 354.0372
212@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 212@ {state} True
close_sequence_task 212@
213@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 2000
task_stay_in_same_place -1 {state} False
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "HEIST9" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 213@ {state} True
close_sequence_task 213@
set_group_separation_range $Players_Group {range} 300.0
set_group_default_task_allocator $Players_Group {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 300
give_weapon_to_char $scplayer {weaponType} WeaponType.Teargas {ammo} 10
give_weapon_to_char $scplayer {weaponType} WeaponType.Mp5 {ammo} 300
give_weapon_to_char $scplayer {weaponType} WeaponType.NightVision {ammo} 300
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 300
set_current_char_weapon $scplayer {weaponType} WeaponType.Teargas
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed 343
41@ = create_object_no_offset #AB_CASDORLOK {x} 2148.5601 {y} 1604.609 {z} 1006.5
set_object_area_visible 41@ {areaId} 1
set_object_heading 41@ {heading} 180.0
48@ = create_object_no_offset #AB_CASDORLOK {x} 2177.1599 {y} 1594.322 {z} 1000.4
set_object_area_visible 48@ {areaId} 1
set_object_heading 48@ {heading} 180.0
49@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2220.188 {y} 1571.7629 {z} 1001.6
set_object_area_visible 49@ {areaId} 1
set_object_heading 49@ {heading} 270.0
set_object_collision_damage_effect 49@ {state} False
196@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2220.188 {y} 1571.7 {z} 1005.8
set_object_area_visible 196@ {areaId} 1
set_object_heading 196@ {heading} 270.0
set_object_collision 196@ {state} False
set_object_collision_damage_effect 49@ {state} False
42@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2203.2 {y} 1551.743 {z} 1009.0
set_object_area_visible 42@ {areaId} 1
set_object_heading 42@ {heading} 0.0
set_object_collision_damage_effect 42@ {state} False
34@ = 1001.4
60@ = create_object_no_offset #AB_VAULTDOOR {x} 2144.1799 {y} 1626.947 {z} 994.28
set_object_heading 60@ {heading} 180.0
set_object_area_visible 60@ {areaId} 1
96@ = create_object_no_offset #SEC_KEYPAD {x} 2168.5 {y} 1617.335 {z} 1000.4
set_object_area_visible 96@ {areaId} 1
set_object_heading 96@ {heading} 270.0
set_object_collision 96@ {state} False
$h9_health = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2176.4709 {y} 1597.394 {z} 1000.0
285@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2144.3391 {y} 1640.666 {z} 993.5
goto @HEIST9_2362

:HEIST9_1936
request_model 117
request_model 428
load_special_character 2 {modelName} 'WUZIMU'
load_special_character 3 {modelName} 'JANITOR'

:HEIST9_1971
if or
  not has_model_loaded 117
  not has_model_loaded 428
  not has_special_character_loaded 2
  not has_special_character_loaded 3
goto_if_false @HEIST9_2010
wait 0
goto @HEIST9_1971

:HEIST9_2010
51@ = create_car 428 {x} 2220.344 {y} 1551.767 {z} 1003.719
set_vehicle_area_visible 51@ {interiorId} 1
set_car_heading 51@ {heading} 176.7739
set_car_always_create_skids 51@ {state} False
lock_car_doors 51@ {lockStatus} CarLock.LockoutPlayerOnly
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Like {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
54@ = create_char_inside_car 51@ {pedType} PedType.Mission2 {modelId} 291
set_char_area_visible 54@ {areaId} 1
55@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 117 {seat} SeatId.RearRight
set_char_area_visible 55@ {areaId} 1
56@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 117 {seat} SeatId.RearLeft
set_char_area_visible 56@ {areaId} 1
57@ = create_char_as_passenger 51@ {pedType} PedType.Mission2 {modelId} 292 {seat} SeatId.BikeRear
set_char_area_visible 57@ {areaId} 1
set_anim_group_for_char 54@ {animGroup} "BLINDMAN"
58@ = 0

:HEIST9_2194
set_follow_node_threshold_distance 54@(58@,4i) {range} 2.0
give_weapon_to_char 54@(58@,4i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 54@(58@,4i) {weaponType} WeaponType.Mp5
set_char_decision_maker 54@(58@,4i) {handleOrTemplate} 120@
set_char_never_targetted 54@(58@,4i) {state} True
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_suffers_critical_hits 54@(58@,4i) {state} False
set_char_max_health 54@(58@,4i) {maxHealth} 500
set_char_health 54@(58@,4i) {health} 500
set_char_accuracy 54@(58@,4i) {accuracy} 60
set_char_signal_after_kill 54@(58@,4i) {state} False
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_2194
250@ = 1
return 

:HEIST9_2362
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2390
set_char_heading $scplayer {heading} 270.0
set_camera_behind_player 

:HEIST9_2390
gosub @HEIST9_46358
215@ = 1
231@ = 2
38@ = 1
107@ = 0
TIMERB = 0
switch_entry_exit 'JUMP1' {state} False
switch_entry_exit 'JUMP2' {state} False
switch_entry_exit 'MAFCAS2' {state} False
290@ = 1
308@ = create_object_no_offset #TMP_BIN {x} 2188.845 {y} 1619.136 {z} 999.3
set_object_area_visible 308@ {areaId} 1
set_object_heading 308@ {heading} 270.0
310@ = create_object_no_offset #K_SMASHBOXES {x} 2139.343 {y} 1617.604 {z} 992.5
set_object_area_visible 310@ {areaId} 1
set_object_heading 310@ {heading} 0.1132
311@ = create_object_no_offset #K_SMASHBOXES {x} 2148.0 {y} 1622.1071 {z} 992.5
set_object_area_visible 311@ {areaId} 1
set_object_heading 311@ {heading} 179.6736

:HEIST9_2598
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_43649
wait 0
gosub @HEIST9_46391
gosub @HEIST9_50668
$h9_fuck_off = get_area_visible 
if 
  0 >= $h9_safe_timer
goto_if_false @HEIST9_2690
gosub @HEIST9_50388
print_now 'HM9_1B' {time} 4000 {flag} 1
goto @HEIST9_44468
clear_onscreen_timer $h9_safe_timer

:HEIST9_2690
if 
  290@ <> 0
goto_if_false @HEIST9_3136
if and
  231@ == 2
  290@ == 1
goto_if_false @HEIST9_2792
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2756
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_2756
set_lvar_text_label 288@s = 'HE8_AA'
set_lvar_int_to_constant 232@ = 19000
gosub @HEIST9_50648
290@ = 2

:HEIST9_2792
if and
  231@ == 2
  290@ == 2
goto_if_false @HEIST9_2877
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2841
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_2841
set_lvar_text_label 288@s = 'HE8_AB'
set_lvar_int_to_constant 232@ = 19001
gosub @HEIST9_50648
290@ = 3

:HEIST9_2877
if and
  231@ == 2
  290@ == 3
goto_if_false @HEIST9_2959
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_2923
stop_char_facial_talk $scplayer

:HEIST9_2923
set_lvar_text_label 288@s = 'HE8_AC'
set_lvar_int_to_constant 232@ = 19002
gosub @HEIST9_50648
290@ = 4

:HEIST9_2959
if and
  231@ == 2
  290@ == 4
goto_if_false @HEIST9_3044
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3008
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_3008
set_lvar_text_label 288@s = 'HE8_AD'
set_lvar_int_to_constant 232@ = 19003
gosub @HEIST9_50648
290@ = 5

:HEIST9_3044
if and
  231@ == 2
  290@ == 5
goto_if_false @HEIST9_3136
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3090
stop_char_facial_talk $scplayer

:HEIST9_3090
print_now 'HM9_28' {time} 9000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3129
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_3129
290@ = 6

:HEIST9_3136
$h9_can_see = get_area_visible 
if 
  $h9_can_see == 0
goto_if_false @HEIST9_3207
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3200
disable_player_sprint $player1 {state} False
$iSetCasinoPanic = 0
$h9_player_in_casino = 0
set_radar_zoom 0

:HEIST9_3200
goto @HEIST9_3234

:HEIST9_3207
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3234
disable_player_sprint $player1 {state} True
set_radar_zoom 100

:HEIST9_3234
if or
  locate_char_any_means_3d $scplayer {x} 2233.9099 {y} 1712.599 {z} 1010.877 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2265.79 {y} 1619.58 {z} 1089.4449 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2267.0559 {y} 1675.385 {z} 1089.4449 {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @HEIST9_3367
set_radar_zoom 100
$h9_player_in_casino = 1

:HEIST9_3367
if and
  303@ == 0
  $h9_player_in_casino == 1
goto_if_false @HEIST9_3506
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3506
if and
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
  not is_current_char_weapon $scplayer {weaponType} WeaponType.NightVision
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Teargas
  not is_current_char_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Knife
goto_if_false @HEIST9_3491
set_relationship RelationshipType.Hate {ofPedType} PedType.CivMale {toPedType} PedType.Player1
print_now 'HM9_99' {time} 100 {flag} 1
300@ = 1
goto @HEIST9_3506

:HEIST9_3491
set_relationship RelationshipType.Like {ofPedType} PedType.CivMale {toPedType} PedType.Player1
300@ = 0

:HEIST9_3506
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "CROUPIER"
goto_if_false @HEIST9_3557
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_3557
if and
  $iSetCasinoPanic == 1
  106@ == 0
  $h9_player_in_casino == 1
goto_if_false @HEIST9_3619
gosub @HEIST9_50388
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_3619
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_3713
if and
  locate_char_any_means_3d $scplayer {x} 2180.981 {y} 1677.813 {z} 10.0609 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
  243@ == 0
goto_if_false @HEIST9_3713
print_now 'HM9_54' {time} 7000 {flag} 1
243@ = 1

:HEIST9_3713
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @HEIST9_3735
goto @HEIST9_44516

:HEIST9_3735
if and
  2 >= 38@
  not is_char_dead $scplayer
  284@ == 0
goto_if_false @HEIST9_3814
175@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Teargas
if and
  0 >= 175@
  2 >= 38@
goto_if_false @HEIST9_3814
284@ = 1
TIMERA = 0

:HEIST9_3814
if and
  TIMERA > 2000
  284@ == 1
  173@ == 0
goto_if_false @HEIST9_3934
if or
  $h9_player_in_casino == 1
  $h9_can_see == 0
goto_if_false @HEIST9_3934
if 
  $h9_player_in_casino == 1
goto_if_false @HEIST9_3904
gosub @HEIST9_50388
goto @HEIST9_3911

:HEIST9_3904
gosub @HEIST9_50602

:HEIST9_3911
print_now 'HM9_48' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_3934
if and
  is_car_dead 51@
  174@ == 0
  250@ == 1
goto_if_false @HEIST9_3994
gosub @HEIST9_50388
print_now 'HM9_15' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_3994
$h9_TIMERC += 1
if 
  38@ == 1
goto_if_false @HEIST9_4398
if 
  $h9_player_in_casino == 1
goto_if_false @HEIST9_4398
if 
  does_blip_exist 39@
goto_if_false @HEIST9_4058
remove_blip 39@

:HEIST9_4058
clear_prints 
38@ = 2
215@ = 1
TIMERB = 0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
44@ = add_blip_for_coord 2148.9951 {y} 1605.08 {z} 1005.172
set_blip_entry_exit 44@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
request_model 163
request_model 164

:HEIST9_4138
if or
  not has_model_loaded 163
  not has_model_loaded 164
goto_if_false @HEIST9_4170
wait 0
goto @HEIST9_4138

:HEIST9_4170
109@ = create_char PedType.Mission1 {modelId} 163 {x} 2146.5801 {y} 1622.228 {z} 992.6882
set_char_area_visible 109@ {areaId} 1
set_char_heading 109@ {heading} 83.607
110@ = create_char PedType.Mission1 {modelId} 163 {x} 2141.4099 {y} 1626.068 {z} 992.6882
set_char_area_visible 110@ {areaId} 1
set_char_heading 110@ {heading} 188.011
111@ = create_char PedType.CivMale {modelId} 164 {x} 2151.187 {y} 1605.832 {z} 1005.188
set_char_area_visible 111@ {areaId} 1
set_char_heading 111@ {heading} 359.346
set_char_decision_maker 111@ {handleOrTemplate} 120@
task_stay_in_same_place 111@ {state} True
58@ = 0

:HEIST9_4318
give_weapon_to_char 109@(58@,5i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 109@(58@,5i) {weaponType} WeaponType.Mp5
add_armour_to_char 109@(58@,5i) {amount} 200
task_stay_in_same_place 109@(58@,5i) {state} True
set_char_never_targetted 109@(58@,5i) {state} True
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_4318

:HEIST9_4398
if 
  38@ == 2
goto_if_false @HEIST9_10444
if 
  not is_char_dead 111@
goto_if_false @HEIST9_4481
if 
  has_char_been_damaged_by_char 111@ {handle} $scplayer
goto_if_false @HEIST9_4481
gosub @HEIST9_50388
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_4481
if and
  is_char_dead 111@
  106@ == 0
goto_if_false @HEIST9_4534
gosub @HEIST9_50388
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_4534
if 
  215@ <> 0
goto_if_false @HEIST9_5179
if 
  215@ == 1
goto_if_false @HEIST9_4628
$h9_safe_timer = 240000
display_onscreen_timer_with_string $h9_safe_timer {direction} TimerDirection.Down {text} 'HM9_1A'
print_with_number_now 'HM9_1D' {num} 4 {duration} 5000 {flag} 1
TIMERB = 0
215@ = 2

:HEIST9_4628
if and
  TIMERB > 4000
  215@ == 2
goto_if_false @HEIST9_4713
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4677
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_4677
set_lvar_text_label 288@s = 'HE8_BA'
set_lvar_int_to_constant 232@ = 19004
gosub @HEIST9_50648
215@ = 3

:HEIST9_4713
if and
  231@ == 2
  215@ == 3
goto_if_false @HEIST9_4798
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4762
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_4762
set_lvar_text_label 288@s = 'HE8_BB'
set_lvar_int_to_constant 232@ = 19005
gosub @HEIST9_50648
215@ = 4

:HEIST9_4798
if and
  231@ == 2
  215@ == 4
goto_if_false @HEIST9_4880
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4844
stop_char_facial_talk $scplayer

:HEIST9_4844
set_lvar_text_label 288@s = 'HE8_BC'
set_lvar_int_to_constant 232@ = 19006
gosub @HEIST9_50648
215@ = 5

:HEIST9_4880
if and
  231@ == 2
  215@ == 5
goto_if_false @HEIST9_4965
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_4929
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_4929
set_lvar_text_label 288@s = 'HE8_BD'
set_lvar_int_to_constant 232@ = 19007
gosub @HEIST9_50648
215@ = 6

:HEIST9_4965
if and
  231@ == 2
  215@ == 6
goto_if_false @HEIST9_5047
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_5011
stop_char_facial_talk $scplayer

:HEIST9_5011
set_lvar_text_label 288@s = 'HE8_BE'
set_lvar_int_to_constant 232@ = 19008
gosub @HEIST9_50648
215@ = 7

:HEIST9_5047
if and
  231@ == 2
  215@ == 7
goto_if_false @HEIST9_5108
set_lvar_text_label 288@s = 'HE8_BF'
set_lvar_int_to_constant 232@ = 19009
gosub @HEIST9_50648
215@ = 8

:HEIST9_5108
if and
  231@ == 2
  215@ == 8
goto_if_false @HEIST9_5179
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_5156
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_5156
print_now 'HM9_2' {time} 7000 {flag} 1
215@ = 0

:HEIST9_5179
if and
  locate_char_any_means_3d $scplayer {x} 2147.7561 {y} 1605.401 {z} 1005.17 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  216@ == 0
goto_if_false @HEIST9_6325
if 
  300@ == 1
goto_if_false @HEIST9_5282
gosub @HEIST9_50388
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_5282
gosub @HEIST9_46289
if and
  not is_char_dead $scplayer
  not is_char_dead 111@
goto_if_false @HEIST9_5363
set_char_coordinates_dont_warp_gang $scplayer {x} 2147.675 {y} 1607.399 {z} 1005.188
set_char_heading $scplayer {heading} 188.6317
set_player_control $player1 {state} False
task_turn_char_to_face_char $scplayer {target} 111@
task_turn_char_to_face_char 111@ {target} $scplayer

:HEIST9_5363
if 
  not is_char_dead 111@
goto_if_false @HEIST9_5409
set_char_coordinates_dont_warp_gang 111@ {x} 2151.187 {y} 1605.832 {z} 1005.188
set_char_heading 111@ {heading} 359.346

:HEIST9_5409
set_fixed_camera_position 2152.125 {y} 1606.502 {z} 1006.716 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2151.135 {y} 1606.365 {z} 1006.719 {switchStyle} SwitchType.JumpCut
print_now 'HE8_CA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19010

:HEIST9_5487
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5513
wait 0
goto @HEIST9_5487

:HEIST9_5513
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERB = 0

:HEIST9_5529
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5579
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5572
goto @HEIST9_6254

:HEIST9_5572
goto @HEIST9_5529

:HEIST9_5579
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_5631
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_5631
print_now 'HE8_CB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19011

:HEIST9_5658
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5684
wait 0
goto @HEIST9_5658

:HEIST9_5684
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_5695
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5745
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5738
goto @HEIST9_6254

:HEIST9_5738
goto @HEIST9_5695

:HEIST9_5745
print_now 'HE8_CC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19012

:HEIST9_5772
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5798
wait 0
goto @HEIST9_5772

:HEIST9_5798
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_5809
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5859
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5852
goto @HEIST9_6254

:HEIST9_5852
goto @HEIST9_5809

:HEIST9_5859
print_now 'HE8_CD' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19013

:HEIST9_5886
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_5912
wait 0
goto @HEIST9_5886

:HEIST9_5912
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_5923
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_5973
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_5966
goto @HEIST9_6254

:HEIST9_5966
goto @HEIST9_5923

:HEIST9_5973
print_now 'HE8_CE' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19014

:HEIST9_6000
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_6026
wait 0
goto @HEIST9_6000

:HEIST9_6026
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_6037
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_6087
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_6080
goto @HEIST9_6254

:HEIST9_6080
goto @HEIST9_6037

:HEIST9_6087
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_6140
task_play_anim $scplayer {animationName} "IDLE_TIRED" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_6140
print_now 'HE8_CF' {time} 3000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19015

:HEIST9_6167
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_6193
wait 0
goto @HEIST9_6167

:HEIST9_6193
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_6204
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_6254
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_6247
goto @HEIST9_6254

:HEIST9_6247
goto @HEIST9_6204

:HEIST9_6254
clear_mission_audio MissionAudioSlot.Slot1
if and
  not is_char_dead $scplayer
  not is_char_dead 111@
goto_if_false @HEIST9_6304
clear_char_tasks_immediately $scplayer
set_char_heading 111@ {heading} 3.8184
set_char_heading $scplayer {heading} 207.6449

:HEIST9_6304
gosub @HEIST9_46306
215@ = 0
216@ = 1

:HEIST9_6325
if and
  locate_char_any_means_3d $scplayer {x} 2149.0081 {y} 1605.299 {z} 1005.172 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  36@ == 0
goto_if_false @HEIST9_6642
if 
  not is_help_message_being_displayed 
goto_if_false @HEIST9_6404
print_help_forever 'HM9_29'

:HEIST9_6404
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST9_6635
if and
  not is_char_dead $scplayer
  not is_player_dead $player1
goto_if_false @HEIST9_6527
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 2149.0081 {y} 1605.299 {z} 1005.172
set_char_heading $scplayer {heading} 188.7539
task_play_anim $scplayer {animationName} "USE_SWIPECARD" {animationFile} "HEIST9" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_6527
wait 500
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6400

:HEIST9_6543
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_6569
wait 0
goto @HEIST9_6543

:HEIST9_6569
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_6588
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_6588
wait 1000
if and
  not is_char_dead $scplayer
  not is_player_dead $player1
goto_if_false @HEIST9_6621
set_player_control $player1 {state} True

:HEIST9_6621
303@ = 1
36@ = 1

:HEIST9_6635
goto @HEIST9_6644

:HEIST9_6642
clear_help 

:HEIST9_6644
if and
  36@ == 1
  107@ == 0
goto_if_false @HEIST9_7355
clear_help 
request_model 11
request_model 172

:HEIST9_6680
if or
  not has_model_loaded 172
  not has_model_loaded 11
goto_if_false @HEIST9_6711
wait 0
goto @HEIST9_6680

:HEIST9_6711
53@ = open_sequence_task 
flush_route 
extend_route 2144.01 {y} 1603.0861 {z} 1000.968
extend_route 2163.4089 {y} 1602.7791 {z} 998.9785
extend_route 2158.457 {y} 1602.36 {z} 998.9719
extend_route 2158.1919 {y} 1597.875 {z} 998.9711
extend_route 2157.9609 {y} 1612.835 {z} 998.9677
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
extend_route 2158.395 {y} 1618.554 {z} 998.9647
extend_route 2157.9609 {y} 1612.835 {z} 998.9677
extend_route 2158.1919 {y} 1597.875 {z} 998.9711
extend_route 2158.457 {y} 1602.36 {z} 998.9719
extend_route 2163.4089 {y} 1602.7791 {z} 998.9785
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
flush_route 
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
218@ = create_char PedType.Mission3 {modelId} 172 {x} 2144.01 {y} 1603.0861 {z} 1000.968
set_char_area_visible 218@ {areaId} 1
set_char_decision_maker 218@ {handleOrTemplate} 89@
perform_sequence_task 218@ {sequence} 53@
219@ = create_char PedType.Mission3 {modelId} 11 {x} 2148.394 {y} 1596.7371 {z} 998.768
set_char_area_visible 219@ {areaId} 1
set_char_decision_maker 219@ {handleOrTemplate} 89@
220@ = create_char PedType.Mission3 {modelId} 172 {x} 2149.355 {y} 1597.1331 {z} 998.768
set_char_area_visible 220@ {areaId} 1
set_char_decision_maker 220@ {handleOrTemplate} 89@
222@ = create_char PedType.Mission3 {modelId} 163 {x} 2146.8311 {y} 1603.942 {z} 1000.968
set_char_heading 222@ {heading} 187.4626
set_char_area_visible 222@ {areaId} 1
give_weapon_to_char 222@ {weaponType} WeaponType.Pistol {ammo} 30000
set_current_char_weapon 222@ {weaponType} WeaponType.Pistol
set_char_decision_maker 222@ {handleOrTemplate} 245@
task_stay_in_same_place 222@ {state} True
223@ = create_char PedType.Mission3 {modelId} 172 {x} 2170.6741 {y} 1603.371 {z} 998.9696
set_char_area_visible 223@ {areaId} 1
set_char_decision_maker 223@ {handleOrTemplate} 89@
224@ = create_char PedType.Mission3 {modelId} 172 {x} 2169.843 {y} 1605.299 {z} 998.9706
set_char_area_visible 224@ {areaId} 1
set_char_decision_maker 224@ {handleOrTemplate} 89@
task_chat_with_char 219@ {other} 220@ {leadSpeaker} True {_p4} 1
task_chat_with_char 220@ {other} 219@ {leadSpeaker} False {_p4} 1
task_chat_with_char 223@ {other} 224@ {leadSpeaker} True {_p4} 1
task_chat_with_char 224@ {other} 223@ {leadSpeaker} False {_p4} 1
117@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7277
clear_char_tasks_immediately $scplayer

:HEIST9_7277
clear_sequence_task 53@
remove_blip 44@
35@ = 1
108@ = add_blip_for_coord 2143.0459 {y} 1620.661 {z} 999.968
set_blip_entry_exit 108@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
107@ = 1
302@ = 2
TIMERA = 0

:HEIST9_7355
if and
  locate_char_any_means_3d $scplayer {x} 2147.863 {y} 1599.649 {z} 1003.534 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
  106@ == 0
goto_if_false @HEIST9_7460
106@ = 1
clear_area 2192.605 {y} 1601.92 {z} 1004.063 {radius} 100.0 {clearParticles} True
set_ped_density_multiplier 0.0
delete_char 111@
TIMERB = 0

:HEIST9_7460
if and
  231@ == 2
  302@ == 2
  TIMERA > 1000
goto_if_false @HEIST9_7552
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7516
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_7516
set_lvar_text_label 288@s = 'HE8_DB'
set_lvar_int_to_constant 232@ = 19017
gosub @HEIST9_50648
302@ = 3

:HEIST9_7552
if and
  231@ == 2
  302@ == 3
goto_if_false @HEIST9_7613
set_lvar_text_label 288@s = 'HE8_DD'
set_lvar_int_to_constant 232@ = 19019
gosub @HEIST9_50648
302@ = 0

:HEIST9_7613
if and
  locate_char_any_means_3d $scplayer {x} 2148.252 {y} 1605.901 {z} 1000.114 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  244@ == 0
goto_if_false @HEIST9_7682
244@ = 1
302@ = 0

:HEIST9_7682
if and
  231@ == 2
  244@ == 1
goto_if_false @HEIST9_7774
303@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7738
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_7738
set_lvar_text_label 288@s = 'HE8_EA'
set_lvar_int_to_constant 232@ = 19020
gosub @HEIST9_50648
244@ = 2

:HEIST9_7774
if and
  231@ == 2
  244@ == 2
goto_if_false @HEIST9_7856
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7820
stop_char_facial_talk $scplayer

:HEIST9_7820
set_lvar_text_label 288@s = 'HE8_EB'
set_lvar_int_to_constant 232@ = 19021
gosub @HEIST9_50648
244@ = 3

:HEIST9_7856
if and
  231@ == 2
  244@ == 3
goto_if_false @HEIST9_7917
set_lvar_text_label 288@s = 'HE8_EC'
set_lvar_int_to_constant 232@ = 19022
gosub @HEIST9_50648
244@ = 4

:HEIST9_7917
if and
  231@ == 2
  244@ == 4
goto_if_false @HEIST9_8001
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_7965
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_7965
set_lvar_text_label 288@s = 'HE8_ED'
set_lvar_int_to_constant 232@ = 19023
gosub @HEIST9_50648
244@ = 5

:HEIST9_8001
if 
  locate_char_any_means_3d $scplayer {x} 2254.543 {y} 1706.5 {z} 1.1746 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @HEIST9_8065
print_now 'HM9_36' {time} 1000 {flag} 1

:HEIST9_8065
if and
  45 > 106@
  106@ <> 0
goto_if_false @HEIST9_8114
  rotate_object 41@ {fromAngle} 180.0 {toAngle} 2.0 {collisionCheck} False
106@ += 1

:HEIST9_8114
if and
  45 > 117@
  117@ <> 0
goto_if_false @HEIST9_8163
  rotate_object 41@ {fromAngle} 270.0 {toAngle} 2.0 {collisionCheck} False
117@ += 1

:HEIST9_8163
58@ = 0

:HEIST9_8170
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_8349
if 
  has_char_been_damaged_by_char 109@(58@,5i) {handle} $scplayer
goto_if_false @HEIST9_8243
gosub @HEIST9_50388
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_8243
if 
  has_char_been_damaged_by_char $scplayer {handle} 109@(58@,5i)
goto_if_false @HEIST9_8296
gosub @HEIST9_50388
print_now 'HM9_52' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_8296
if 
  has_char_spotted_char 109@(58@,5i) {target} $scplayer
goto_if_false @HEIST9_8349
gosub @HEIST9_50388
print_now 'HM9_37' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_8349
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8170
if and
  is_projectile_in_area 2144.4641 {leftBottomY} 1621.26 {leftBottomZ} 1002.136 {rightTopX} 2136.209 {rightTopY} 1626.877 {rightTopZ} 997.7474
  173@ == 0
goto_if_false @HEIST9_8475
173@ = 1
302@ = 0
244@ = 0
switch_object_brains ScriptBrainAttachType.Object {state} False
$iTerminateAllAmbience = 1
TIMERA = 0
gosub @HEIST9_46325
gosub @HEIST9_1936

:HEIST9_8475
if and
  locate_char_any_means_3d $scplayer {x} 2145.79 {y} 1613.851 {z} 999.968 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  114@ == 0
  173@ == 0
goto_if_false @HEIST9_8625
114@ = 1
clear_area 2144.323 {y} 1622.684 {z} 992.5681 {radius} 30.0 {clearParticles} True
58@ = 0

:HEIST9_8575
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_8604
clear_char_tasks_immediately 109@(58@,5i)

:HEIST9_8604
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8575

:HEIST9_8625
if 
  173@ == 1
goto_if_false @HEIST9_10412
303@ = 1
clear_prints 
switch_entry_exit 'MAFCAS' {state} False
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_8688
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_8688
gosub @HEIST9_46289
set_fixed_camera_position 2139.8501 {y} 1609.236 {z} 995.7649 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2140.229 {y} 1610.145 {z} 995.5919 {switchStyle} SwitchType.JumpCut
request_model 343

:HEIST9_8751
if 
  not has_model_loaded 343
goto_if_false @HEIST9_8778
wait 0
goto @HEIST9_8751

:HEIST9_8778
clear_area 2144.323 {y} 1622.684 {z} 997.0 {radius} 10.0 {clearParticles} True
clear_area 2143.2661 {y} 1618.145 {z} 999.9764 {radius} 10.0 {clearParticles} True
314@ = create_object 343 {x} 2144.323 {y} 1622.684 {z} 997.0
gosub @HEIST9_46358
$x, $y, 313@ = get_object_coordinates 314@

:HEIST9_8870
if 
  313@ > 992.6
goto_if_false @HEIST9_8940
wait 20
$x, $y, 313@ = get_object_coordinates 314@
313@ -= 0.3
set_object_coordinates 314@ {x} $x {y} $y {z} 313@
goto @HEIST9_8870

:HEIST9_8940
139@ = create_fx_system "TEARGASAD" {x} 2144.323 {y} 1622.684 {z} 992.5681 {ignoreBoundingChecks} True
play_fx_system 139@
wait 1500
58@ = 0

:HEIST9_8990
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9014
goto @HEIST9_10100

:HEIST9_9014
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_9189
if 
  58@ == 0
goto_if_false @HEIST9_9112
clear_char_tasks_immediately 109@(58@,5i)
task_play_anim 109@(58@,5i) {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 200

:HEIST9_9112
if 
  58@ == 1
goto_if_false @HEIST9_9189
clear_char_tasks_immediately 109@(58@,5i)
task_play_anim 109@(58@,5i) {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 100

:HEIST9_9189
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_9220
set_char_collision 109@(58@,5i) {state} False

:HEIST9_9220
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_8990
TIMERB = 0

:HEIST9_9248
if 
  1000 > TIMERB
goto_if_false @HEIST9_9302
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9295
goto @HEIST9_10100

:HEIST9_9295
goto @HEIST9_9248

:HEIST9_9302
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19024

:HEIST9_9313
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9339
wait 0
goto @HEIST9_9313

:HEIST9_9339
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9350
if 
  1500 > TIMERB
goto_if_false @HEIST9_9404
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9397
goto @HEIST9_10100

:HEIST9_9397
goto @HEIST9_9350

:HEIST9_9404
if 
  not is_char_dead 110@
goto_if_false @HEIST9_9428
report_mission_audio_event_at_char 110@ {soundId} ScriptSound.SoundPedCollapse

:HEIST9_9428
TIMERB = 0

:HEIST9_9435
if 
  500 > TIMERB
goto_if_false @HEIST9_9489
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9482
goto @HEIST9_10100

:HEIST9_9482
goto @HEIST9_9435

:HEIST9_9489
print_now 'HE8_FB' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19025

:HEIST9_9516
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9542
wait 0
goto @HEIST9_9516

:HEIST9_9542
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9553
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_9603
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9596
goto @HEIST9_10100

:HEIST9_9596
goto @HEIST9_9553

:HEIST9_9603
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_9649
set_char_coordinates_dont_warp_gang $scplayer {x} 2143.376 {y} 1619.655 {z} 999.9764
set_char_heading $scplayer {heading} 182.7419

:HEIST9_9649
stop_fx_system 139@
kill_fx_system_now 139@
clear_area 2144.323 {y} 1622.684 {z} 997.0 {radius} 10.0 {clearParticles} True
clear_area 2143.2661 {y} 1618.145 {z} 999.9764 {radius} 10.0 {clearParticles} True
set_fixed_camera_position 2142.75 {y} 1617.8361 {z} 1001.143 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2142.9971 {y} 1618.803 {z} 1001.197 {switchStyle} SwitchType.JumpCut
print_now 'HE8_FC' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19026

:HEIST9_9785
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9811
wait 0
goto @HEIST9_9785

:HEIST9_9811
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9822
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_9872
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9865
goto @HEIST9_10100

:HEIST9_9865
goto @HEIST9_9822

:HEIST9_9872
print_now 'HE8_FD' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19027

:HEIST9_9899
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_9925
wait 0
goto @HEIST9_9899

:HEIST9_9925
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_9936
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_9986
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_9979
goto @HEIST9_10100

:HEIST9_9979
goto @HEIST9_9936

:HEIST9_9986
print_now 'HE8_FE' {time} 2000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19028

:HEIST9_10013
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_10039
wait 0
goto @HEIST9_10013

:HEIST9_10039
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_10050
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_10100
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_10093
goto @HEIST9_10100

:HEIST9_10093
goto @HEIST9_10050

:HEIST9_10100
delete_object 314@
mark_model_as_no_longer_needed 343
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_10156
set_char_coordinates_dont_warp_gang $scplayer {x} 2143.22 {y} 1618.3719 {z} 999.9688
set_char_heading $scplayer {heading} 175.5027

:HEIST9_10156
if 
  not is_char_dead 109@
goto_if_false @HEIST9_10238
clear_char_tasks_immediately 109@
task_play_anim_non_interruptable 109@ {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_ped_threat_scanner 109@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 109@ {handleOrTemplate} 120@

:HEIST9_10238
if 
  not is_char_dead 110@
goto_if_false @HEIST9_10320
clear_char_tasks_immediately 110@
task_play_anim_non_interruptable 110@ {animationName} "CAS_G2_GASKO" {animationFile} "HEIST9" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_ped_threat_scanner 110@ {onFoot} False {inCar} False {duringScriptTask} False
set_char_decision_maker 110@ {handleOrTemplate} 120@

:HEIST9_10320
gosub @HEIST9_46306
stop_fx_system 139@
kill_fx_system_now 139@

:HEIST9_10337
print_now 'HM9_12' {time} 5000 {flag} 1
remove_blip 108@
45@ = add_blip_for_coord 2168.1731 {y} 1616.986 {z} 998.97
set_blip_entry_exit 45@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
38@ = 3
246@ = 1

:HEIST9_10412
if 
  116@ == 4
goto_if_false @HEIST9_10444
116@ = 5
goto @HEIST9_10337

:HEIST9_10444
if and
  not is_message_being_displayed 
  246@ <> 12
  246@ <> 0
goto_if_false @HEIST9_11312
if and
  231@ == 2
  246@ == 1
goto_if_false @HEIST9_10555
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_10519
shut_char_up_for_scripted_speech $scplayer {state} True

:HEIST9_10519
set_lvar_text_label 288@s = 'HE8_GB'
set_lvar_int_to_constant 232@ = 19030
gosub @HEIST9_50648
246@ = 2

:HEIST9_10555
if and
  231@ == 2
  246@ == 2
goto_if_false @HEIST9_10616
set_lvar_text_label 288@s = 'HE8_GC'
set_lvar_int_to_constant 232@ = 19031
gosub @HEIST9_50648
246@ = 3

:HEIST9_10616
if and
  231@ == 2
  246@ == 3
goto_if_false @HEIST9_10677
set_lvar_text_label 288@s = 'HE8_GD'
set_lvar_int_to_constant 232@ = 19032
gosub @HEIST9_50648
246@ = 4

:HEIST9_10677
if and
  231@ == 2
  246@ == 4
goto_if_false @HEIST9_10982
set_darkness_effect True {pitchBlack} 220
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6402

:HEIST9_10720
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_10746
wait 0
goto @HEIST9_10720

:HEIST9_10746
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_10765
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_10765
wait 100
set_lvar_text_label 288@s = 'HE8_GE'
set_lvar_int_to_constant 232@ = 19033
gosub @HEIST9_50648
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2157.5969 {y} 1597.863 {z} 998.9694 {speed} MoveState.Run {time} -1
task_look_at_coord -1 {x} 2155.781 {y} 1598.063 {z} 998.9686 {time} -2
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 1000
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
58@ = 0

:HEIST9_10908
if 
  not is_char_dead 218@(58@,10i)
goto_if_false @HEIST9_10949
clear_char_tasks_immediately 218@(58@,10i)
perform_sequence_task 218@(58@,10i) {sequence} 53@

:HEIST9_10949
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_10908
clear_sequence_task 53@
246@ = 5

:HEIST9_10982
if and
  231@ == 2
  246@ == 5
goto_if_false @HEIST9_11080
if 
  not is_night_vision_active 
goto_if_false @HEIST9_11073
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_11044
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_11044
set_lvar_text_label 288@s = 'HE8_GF'
set_lvar_int_to_constant 232@ = 19034
gosub @HEIST9_50648

:HEIST9_11073
246@ = 9

:HEIST9_11080
if and
  231@ == 2
  246@ == 9
goto_if_false @HEIST9_11156
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_11126
stop_char_facial_talk $scplayer

:HEIST9_11126
print_now 'HM9_49' {time} 5000 {flag} 1
246@ = 10
TIMERB = 0

:HEIST9_11156
if and
  TIMERB > 5000
  249@ == 0
goto_if_false @HEIST9_11312
if and
  38@ == 5
  231@ == 2
  246@ == 10
goto_if_false @HEIST9_11221
246@ = 11

:HEIST9_11221
if and
  38@ == 5
  231@ == 2
  246@ == 11
goto_if_false @HEIST9_11312
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_11276
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_11276
set_lvar_text_label 288@s = 'HE8_HB'
set_lvar_int_to_constant 232@ = 19038
gosub @HEIST9_50648
246@ = 12

:HEIST9_11312
if 
  38@ == 3
goto_if_false @HEIST9_11712
if 
  locate_char_any_means_3d $scplayer {x} 2167.5991 {y} 1617.412 {z} 998.9715 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_11710
if 
  not is_help_message_being_displayed 
goto_if_false @HEIST9_11402
print_help_forever 'HM9_29'

:HEIST9_11402
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @HEIST9_11703
58@ = 0

:HEIST9_11426
delete_char 218@(58@,10i)
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_11426
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6400

:HEIST9_11467
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_11493
wait 0
goto @HEIST9_11467

:HEIST9_11493
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 214
remove_blip 45@
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 2167.5991 {y} 1617.287 {z} 998.9715
set_char_heading $scplayer {heading} 270.0
task_play_anim $scplayer {animationName} "USE_SWIPECARD" {animationFile} "HEIST9" {blendSpeed} 2.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_11615
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_11615
wait 500
58@ = 0

:HEIST9_11627
if 
  58@ <> 33
goto_if_false @HEIST9_11680
wait 0
  rotate_object $h9_door_c {fromAngle} 180.0 {toAngle} 3.0 {collisionCheck} False
58@ += 1
goto @HEIST9_11627

:HEIST9_11680
38@ = 5
clear_help 
215@ = 0
TIMERA = 0

:HEIST9_11703
goto @HEIST9_11712

:HEIST9_11710
clear_help 

:HEIST9_11712
if 
  38@ == 5
goto_if_false @HEIST9_12426
if and
  231@ == 2
  215@ == 0
goto_if_false @HEIST9_11913
request_model 530

:HEIST9_11760
if 
  not has_model_loaded 530
goto_if_false @HEIST9_11787
wait 0
goto @HEIST9_11760

:HEIST9_11787
46@ = create_car 530 {x} 2173.6211 {y} 1585.964 {z} 998.9722
set_vehicle_area_visible 46@ {interiorId} 1
set_car_heading 46@ {heading} 270.0
change_car_colour 46@ {color1} 6 {color2} 6
209@ = 1
if 
  not is_car_dead 46@
goto_if_false @HEIST9_11866
set_vehicle_area_visible 46@ {interiorId} 1

:HEIST9_11866
90@ = add_blip_for_coord 2220.543 {y} 1572.625 {z} 998.9531
set_blip_entry_exit 90@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
215@ = 1

:HEIST9_11913
if and
  locate_char_any_means_3d $scplayer {x} 2224.4519 {y} 1595.4351 {z} 998.9753 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  249@ == 0
goto_if_false @HEIST9_11975
249@ = 1

:HEIST9_11975
if and
  231@ == 2
  249@ == 1
goto_if_false @HEIST9_12036
set_lvar_text_label 288@s = 'HE8_JA'
set_lvar_int_to_constant 232@ = 19039
gosub @HEIST9_50648
249@ = 2

:HEIST9_12036
if and
  231@ == 2
  249@ == 2
goto_if_false @HEIST9_12097
set_lvar_text_label 288@s = 'HE8_JB'
set_lvar_int_to_constant 232@ = 19040
gosub @HEIST9_50648
249@ = 3

:HEIST9_12097
if and
  231@ == 2
  249@ == 3
goto_if_false @HEIST9_12201
if 
  does_blip_exist 90@
goto_if_false @HEIST9_12143
remove_blip 90@

:HEIST9_12143
if 
  not is_car_dead 46@
goto_if_false @HEIST9_12194
47@ = add_blip_for_car 46@
set_blip_entry_exit 47@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
set_blip_as_friendly 47@ {state} True

:HEIST9_12194
249@ = 4

:HEIST9_12201
if and
  231@ == 2
  249@ == 4
goto_if_false @HEIST9_12249
print_now 'HM9_51' {time} 7000 {flag} 1
249@ = 5

:HEIST9_12249
if 
  209@ == 1
goto_if_false @HEIST9_12426
if 
  not is_car_dead 46@
goto_if_false @HEIST9_12426
if 
  is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_12426
if and
  50@ == 0
  is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_12426
print_now 'HM9_5' {time} 5000 {flag} 1
50@ = 1
38@ = 6
211@ = 1
if 
  does_blip_exist 90@
goto_if_false @HEIST9_12386
remove_blip 90@

:HEIST9_12386
90@ = add_blip_for_coord 2220.543 {y} 1572.625 {z} 998.9531
set_blip_entry_exit 90@ {x} 2196.635 {y} 1676.8409 {radius} 10.0

:HEIST9_12426
if and
  is_car_dead 46@
  7 > 38@
  209@ == 1
goto_if_false @HEIST9_12486
gosub @HEIST9_50388
print_now 'HM9_13' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_12486
if 
  38@ == 6
goto_if_false @HEIST9_17984
if 
  not is_car_dead 46@
goto_if_false @HEIST9_12630
if and
  is_char_in_car $scplayer {vehicle} 46@
  95@ == 0
goto_if_false @HEIST9_12567
change_blip_display 47@ {display} BlipDisplay.Neither
change_blip_display 90@ {display} BlipDisplay.Both
95@ = 1

:HEIST9_12567
if and
  not is_char_in_car $scplayer {vehicle} 46@
  95@ == 1
goto_if_false @HEIST9_12630
print_now 'HM9_23' {time} 3000 {flag} 1
change_blip_display 47@ {display} BlipDisplay.Both
change_blip_display 90@ {display} BlipDisplay.Neither
95@ = 0

:HEIST9_12630
if 
  not is_car_dead 46@
goto_if_false @HEIST9_13014
$h9_offset = get_car_moving_component_offset 46@
if 
  is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_13014
if 
  locate_stopped_char_any_means_3d $scplayer {x} 2220.543 {y} 1573.141 {z} 998.9672 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @HEIST9_12739
print_help_forever 'HM9_53'
goto @HEIST9_12741

:HEIST9_12739
clear_help 

:HEIST9_12741
$x, $y, $z = get_char_coordinates $scplayer
287@ = get_char_heading $scplayer
set_var_float_to_var_float $h9_calculus = $h9_offset
$h9_calculus += 1001.6
add_float_var_to_float_var $h9_offset += $z
if and
  287@ > 140.0
  220.0 > 287@
goto_if_false @HEIST9_13014
if and
  $y > 1572.8
  1573.8 > $y
goto_if_false @HEIST9_13014
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightStickY
goto_if_false @HEIST9_12981
177@, 178@, $h9_z1 = get_object_coordinates 49@
$RStickY = 0
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
set_var_float_to_var_float $h9_z1 = $h9_calculus
$h9_z1 -= 0.1
set_object_coordinates 49@ {x} 2220.188 {y} 1571.7629 {z} $h9_z1
if 
  305@ == 0
goto_if_false @HEIST9_12974
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorSlowStart
305@ = 1

:HEIST9_12974
goto @HEIST9_13014

:HEIST9_12981
if 
  305@ == 1
goto_if_false @HEIST9_13014
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorSlowStop
305@ = 0

:HEIST9_13014
if and
  $h9_z1 >= 1002.8
  not is_char_dead $scplayer
goto_if_false @HEIST9_17984
if 
  is_char_in_model $scplayer {modelId} 530
goto_if_false @HEIST9_17968
214@ = create_pickup_with_ammo 363 {pickupType} PickupType.Once {ammo} 10 {x} 2146.4871 {y} 1622.8051 {z} 993.5
if 
  not is_char_dead 225@
goto_if_false @HEIST9_13107
delete_char 225@

:HEIST9_13107
if 
  not is_char_dead 226@
goto_if_false @HEIST9_13128
delete_char 226@

:HEIST9_13128
if 
  not is_char_dead 227@
goto_if_false @HEIST9_13149
delete_char 227@

:HEIST9_13149
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_13172
set_player_control $player1 {state} False

:HEIST9_13172
remove_blip 90@
clear_help 
request_car_recording 499
request_car_recording 487

:HEIST9_13189
if or
  not has_car_recording_been_loaded 499
  not has_car_recording_been_loaded 487
goto_if_false @HEIST9_13221
wait 0
goto @HEIST9_13189

:HEIST9_13221
if 
  not is_car_dead 51@
goto_if_false @HEIST9_13251
set_vehicle_area_visible 51@ {interiorId} 1
switch_car_siren 51@ {state} True

:HEIST9_13251
if 
  not is_car_dead 46@
goto_if_false @HEIST9_13297
set_car_coordinates 46@ {x} 2220.543 {y} 1573.141 {z} 998.9672
set_car_heading 46@ {heading} 180.0

:HEIST9_13297
gosub @HEIST9_46289
set_fixed_camera_position 2224.6941 {y} 1577.632 {z} 1002.633 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2224.199 {y} 1576.8571 {z} 1002.241 {switchStyle} SwitchType.JumpCut
if and
  has_car_recording_been_loaded 487
  not is_car_dead 46@
goto_if_false @HEIST9_13384
start_playback_recorded_car 46@ {path} 487

:HEIST9_13384
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorStart
if 
  does_object_exist 49@
goto_if_false @HEIST9_13422
177@, 178@, $h9_z1 = get_object_coordinates 49@

:HEIST9_13422
if 
  $h9_z1 <= 1005.4
goto_if_false @HEIST9_13482
wait 50
$h9_z1 += 0.1
set_object_coordinates 49@ {x} 2220.188 {y} 1571.7629 {z} $h9_z1
goto @HEIST9_13422

:HEIST9_13482
report_mission_audio_event_at_object 49@ {soundId} ScriptSound.SoundShutterDoorStop
if and
  has_car_recording_been_loaded 499
  not is_car_dead 51@
goto_if_false @HEIST9_13519
start_playback_recorded_car 51@ {path} 499

:HEIST9_13519
if 
  not is_car_dead 46@
goto_if_false @HEIST9_13586
if 
  is_playback_going_on_for_car 46@
goto_if_false @HEIST9_13556
stop_playback_recorded_car 46@

:HEIST9_13556
set_car_coordinates 46@ {x} 2218.0391 {y} 1592.2321 {z} 998.9783
set_car_heading 46@ {heading} 26.1233

:HEIST9_13586
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_13675
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_13645
warp_char_from_car_to_coord $scplayer {x} 2217.115 {y} 1589.683 {z} 998.9709
goto @HEIST9_13665

:HEIST9_13645
set_char_coordinates_dont_warp_gang $scplayer {x} 2217.115 {y} 1589.683 {z} 998.9709

:HEIST9_13665
set_char_heading $scplayer {heading} 209.5064

:HEIST9_13675
58@ = 0

:HEIST9_13682
if 
  not is_char_dead 218@(58@,10i)
goto_if_false @HEIST9_13711
delete_char 218@(58@,10i)

:HEIST9_13711
58@ += 1
  58@ >= 7
goto_if_false @HEIST9_13682
request_model 363
request_model 364
request_model 353
request_model 164

:HEIST9_13752
if or
  not has_model_loaded 363
  not has_model_loaded 364
  not has_model_loaded 353
  not has_model_loaded 164
goto_if_false @HEIST9_13794
wait 0
goto @HEIST9_13752

:HEIST9_13794
set_fixed_camera_position 2217.3701 {y} 1580.595 {z} 1000.582 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.6631 {y} 1579.639 {z} 1000.559 {switchStyle} SwitchType.JumpCut
TIMERB = 0

:HEIST9_13852
if 
  3000 > TIMERB
goto_if_false @HEIST9_13906
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_13899
goto @HEIST9_15911

:HEIST9_13899
goto @HEIST9_13852

:HEIST9_13906
set_fixed_camera_position 2215.1321 {y} 1594.248 {z} 1002.778 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2215.4089 {y} 1593.319 {z} 1002.531 {switchStyle} SwitchType.JumpCut
if 
  not is_car_dead 51@
goto_if_false @HEIST9_13980
freeze_car_position 51@ {state} True

:HEIST9_13980
print_now 'HE8_KA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19042

:HEIST9_14007
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14033
wait 0
goto @HEIST9_14007

:HEIST9_14033
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14044
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14094
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14087
goto @HEIST9_15911

:HEIST9_14087
goto @HEIST9_14044

:HEIST9_14094
if 
  not is_car_dead 51@
goto_if_false @HEIST9_14557
53@ = open_sequence_task 
task_pause -1 {time} 500
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2224.155 {y} 1579.691 {z} 998.9739
extend_route 2223.636 {y} 1585.549 {z} 998.9675
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
if 
  not is_char_dead 54@
goto_if_false @HEIST9_14239
perform_sequence_task 54@ {sequence} 53@

:HEIST9_14239
clear_sequence_task 53@
53@ = open_sequence_task 
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2220.033 {y} 1584.614 {z} 998.9719
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2216.4399 {y} 1589.13 {z} 998.979
close_sequence_task 53@
if 
  not is_char_dead 55@
goto_if_false @HEIST9_14333
perform_sequence_task 55@ {sequence} 53@

:HEIST9_14333
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2221.4951 {y} 1584.948 {z} 998.9701
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2216.4399 {y} 1589.13 {z} 998.979
close_sequence_task 53@
if 
  not is_char_dead 56@
goto_if_false @HEIST9_14434
perform_sequence_task 56@ {sequence} 53@

:HEIST9_14434
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 1000
task_leave_car -1 {vehicle} 51@
flush_route 
extend_route 2216.699 {y} 1578.363 {z} 998.9761
extend_route 2217.5381 {y} 1583.64 {z} 998.9749
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2216.4399 {y} 1589.13 {z} 998.979
close_sequence_task 53@
if 
  not is_char_dead 57@
goto_if_false @HEIST9_14552
perform_sequence_task 57@ {sequence} 53@

:HEIST9_14552
clear_sequence_task 53@

:HEIST9_14557
print_now 'HE8_KB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19043

:HEIST9_14584
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14610
wait 0
goto @HEIST9_14584

:HEIST9_14610
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14621
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14671
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14664
goto @HEIST9_15911

:HEIST9_14664
goto @HEIST9_14621

:HEIST9_14671
print_now 'HE8_KC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19044

:HEIST9_14698
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14724
wait 0
goto @HEIST9_14698

:HEIST9_14724
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14735
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14785
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14778
goto @HEIST9_15911

:HEIST9_14778
goto @HEIST9_14735

:HEIST9_14785
print_now 'HE8_KD' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19045

:HEIST9_14812
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_14838
wait 0
goto @HEIST9_14812

:HEIST9_14838
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_14849
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_14899
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_14892
goto @HEIST9_15911

:HEIST9_14892
goto @HEIST9_14849

:HEIST9_14899
set_fixed_camera_position 2219.6531 {y} 1584.915 {z} 1001.211 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2220.1799 {y} 1585.746 {z} 1001.034 {switchStyle} SwitchType.JumpCut
print_now 'HE8_KE' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19046

:HEIST9_14977
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15003
wait 0
goto @HEIST9_14977

:HEIST9_15003
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 54@
goto_if_false @HEIST9_15151
53@ = open_sequence_task 
flush_route 
extend_route 2224.1919 {y} 1589.193 {z} 998.9668
extend_route 2225.4651 {y} 1592.9969 {z} 998.9677
extend_route 2226.739 {y} 1597.796 {z} 998.9755
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_play_anim -1 {animationName} "GETUP_FRONT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
clear_char_tasks_immediately 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_15151
TIMERB = 0

:HEIST9_15158
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15208
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15201
goto @HEIST9_15911

:HEIST9_15201
goto @HEIST9_15158

:HEIST9_15208
TIMERB = 0

:HEIST9_15215
if 
  2500 > TIMERB
goto_if_false @HEIST9_15269
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15262
goto @HEIST9_15911

:HEIST9_15262
goto @HEIST9_15215

:HEIST9_15269
shake_cam 30
TIMERB = 0

:HEIST9_15280
if 
  1500 > TIMERB
goto_if_false @HEIST9_15334
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15327
goto @HEIST9_15911

:HEIST9_15327
goto @HEIST9_15280

:HEIST9_15334
if 
  not is_char_dead 54@
goto_if_false @HEIST9_15484
if 
  not is_char_dead 55@
goto_if_false @HEIST9_15379
clear_char_tasks 55@
task_turn_char_to_face_char 55@ {target} 54@

:HEIST9_15379
if 
  not is_char_dead 56@
goto_if_false @HEIST9_15408
clear_char_tasks 56@
task_turn_char_to_face_char 56@ {target} 54@

:HEIST9_15408
wait 100
if and
  not is_char_dead 57@
  not is_char_dead 54@
goto_if_false @HEIST9_15446
clear_char_tasks 57@
task_turn_char_to_face_char 57@ {target} 54@

:HEIST9_15446
wait 100
if and
  not is_char_dead $scplayer
  not is_char_dead 54@
goto_if_false @HEIST9_15484
clear_char_tasks $scplayer
task_turn_char_to_face_char $scplayer {target} 54@

:HEIST9_15484
print_now 'HE8_KF' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19047

:HEIST9_15511
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15537
wait 0
goto @HEIST9_15511

:HEIST9_15537
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_15548
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15598
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15591
goto @HEIST9_15911

:HEIST9_15591
goto @HEIST9_15548

:HEIST9_15598
if and
  not is_char_dead $scplayer
  not is_char_dead 54@
goto_if_false @HEIST9_15632
clear_char_tasks 54@
task_turn_char_to_face_char 54@ {target} $scplayer

:HEIST9_15632
set_fixed_camera_position 2216.9629 {y} 1581.526 {z} 1000.579 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.4031 {y} 1582.416 {z} 1000.465 {switchStyle} SwitchType.JumpCut
print_now 'HE8_KG' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19048

:HEIST9_15710
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15736
wait 0
goto @HEIST9_15710

:HEIST9_15736
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_15747
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15797
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15790
goto @HEIST9_15911

:HEIST9_15790
goto @HEIST9_15747

:HEIST9_15797
print_now 'HE8_KH' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19049

:HEIST9_15824
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_15850
wait 0
goto @HEIST9_15824

:HEIST9_15850
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_15861
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_15911
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_15904
goto @HEIST9_15911

:HEIST9_15904
goto @HEIST9_15861

:HEIST9_15911
315@ = create_char PedType.Mission1 {modelId} 163 {x} 2201.126 {y} 1617.877 {z} 998.9827
set_char_area_visible 315@ {areaId} 1
set_char_heading 315@ {heading} 267.4834
task_toggle_duck 315@ {state} True
316@ = create_char PedType.Mission1 {modelId} 164 {x} 2196.083 {y} 1618.684 {z} 998.9766
set_char_area_visible 316@ {areaId} 1
set_char_heading 316@ {heading} 263.4616
317@ = create_char PedType.Mission1 {modelId} 163 {x} 2207.917 {y} 1620.3719 {z} 998.9827
set_char_area_visible 317@ {areaId} 1
set_char_heading 317@ {heading} 267.4754
task_toggle_duck 317@ {state} True
set_char_only_damaged_by_player 317@ {state} True
58@ = 0

:HEIST9_16065
set_char_money 315@(58@,5i) {amount} 0
if 
  58@ <> 2
goto_if_false @HEIST9_16118
set_char_health 315@(58@,5i) {health} 200
set_char_max_health 315@(58@,5i) {maxHealth} 200

:HEIST9_16118
add_blip_for_char 315@(58@,5i) {var_handle} 320@(58@,15i)
set_blip_entry_exit 320@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 320@(58@,15i) {display} BlipDisplay.BlipOnly
give_weapon_to_char 315@(58@,5i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 315@(58@,5i) {weaponType} WeaponType.Mp5
set_char_accuracy 315@(58@,5i) {accuracy} 20
set_char_shoot_rate 315@(58@,5i) {rate} 20
set_char_decision_maker 315@(58@,5i) {handleOrTemplate} 245@
task_stay_in_same_place 315@(58@,5i) {state} True
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_16065
335@ = create_char PedType.Mission1 {modelId} 163 {x} 2180.075 {y} 1611.573 {z} 998.9766
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 273.7555
set_char_only_damaged_by_player 335@ {state} True
336@ = create_char PedType.Mission1 {modelId} 164 {x} 2186.1421 {y} 1612.3979 {z} 998.9777
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 306.4445
task_toggle_duck 336@ {state} True
337@ = create_char PedType.Mission1 {modelId} 163 {x} 2183.521 {y} 1615.246 {z} 998.9766
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 294.2185
338@ = create_char PedType.Mission1 {modelId} 164 {x} 2182.6121 {y} 1623.697 {z} 998.9742
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 248.6147
task_toggle_duck 338@ {state} True
339@ = create_char PedType.Mission1 {modelId} 164 {x} 2179.6809 {y} 1622.4041 {z} 998.9764
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 268.7008
set_char_only_damaged_by_player 339@ {state} True
340@ = create_char PedType.Mission1 {modelId} 163 {x} 2178.853 {y} 1625.603 {z} 998.9709
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 250.7106
341@ = create_char PedType.Mission1 {modelId} 163 {x} 2176.363 {y} 1606.599 {z} 998.9827
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 0.8709
set_sense_range 341@ {range} 5.0
task_toggle_duck 341@ {state} True
342@ = create_char PedType.Mission1 {modelId} 164 {x} 2176.491 {y} 1600.897 {z} 998.9827
set_char_area_visible 342@ {areaId} 1
set_sense_range 342@ {range} 5.0
set_char_heading 342@ {heading} 352.937
343@ = create_char PedType.Mission1 {modelId} 163 {x} 2169.1169 {y} 1618.626 {z} 998.9766
set_char_area_visible 343@ {areaId} 1
set_char_heading 343@ {heading} 272.9878
344@ = create_char PedType.Mission1 {modelId} 163 {x} 2161.208 {y} 1602.776 {z} 998.9812
set_char_area_visible 344@ {areaId} 1
set_char_heading 344@ {heading} 4.2093
345@ = create_char PedType.Mission1 {modelId} 164 {x} 2156.54 {y} 1605.252 {z} 998.9725
set_char_area_visible 345@ {areaId} 1
set_char_heading 345@ {heading} 353.705
58@ = 0

:HEIST9_16784
set_char_money 335@(58@,15i) {amount} 0
if and
  58@ <> 0
  58@ <> 4
goto_if_false @HEIST9_16844
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200

:HEIST9_16844
add_blip_for_char 335@(58@,15i) {var_handle} 350@(58@,15i)
set_blip_entry_exit 350@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 350@(58@,15i) {display} BlipDisplay.BlipOnly
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5
set_char_shoot_rate 335@(58@,15i) {rate} 20
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
task_stay_in_same_place 335@(58@,15i) {state} True
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_16784
$h9_safe_timer = 420000
clear_onscreen_timer $h9_safe_timer
display_onscreen_timer_with_string $h9_safe_timer {direction} TimerDirection.Down {text} 'HM9_1A'
gosub @HEIST9_46306
delete_object 49@
if 
  not is_car_dead 51@
goto_if_false @HEIST9_17101
if 
  is_playback_going_on_for_car 51@
goto_if_false @HEIST9_17066
stop_playback_recorded_car 51@

:HEIST9_17066
set_car_coordinates 51@ {x} 2220.3899 {y} 1577.623 {z} 998.967
set_car_heading 51@ {heading} 179.9804
skip_to_end_and_stop_playback_recorded_car 51@

:HEIST9_17101
if 
  not is_car_dead 51@
goto_if_false @HEIST9_17850
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_17850
286@ = open_sequence_task 
task_pause -1 {time} 10
if 
  not is_char_dead 315@
goto_if_false @HEIST9_17182
task_kill_char_on_foot -1 {target} 315@

:HEIST9_17182
if 
  not is_char_dead 316@
goto_if_false @HEIST9_17205
task_kill_char_on_foot -1 {target} 316@

:HEIST9_17205
if 
  not is_char_dead 317@
goto_if_false @HEIST9_17228
task_kill_char_on_foot -1 {target} 317@

:HEIST9_17228
close_sequence_task 286@
365@ = open_sequence_task 
flush_route 
extend_route 2221.9519 {y} 1586.563 {z} 998.9695
extend_route 2223.3899 {y} 1591.61 {z} 998.9678
extend_route 2224.2529 {y} 1597.906 {z} 998.9766
extend_route 2224.3589 {y} 1599.682 {z} 998.983
task_toggle_duck -1 {state} False
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 365@
366@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2224.593 {y} 1602.6689 {z} 998.9816
extend_route 2224.79 {y} 1609.521 {z} 998.975
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 366@
53@ = open_sequence_task 
if 
  is_char_in_car 55@ {vehicle} 51@
goto_if_false @HEIST9_17422
task_leave_car -1 {vehicle} 51@

:HEIST9_17422
perform_sequence_task -1 {sequence} 365@
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2222.4519 {y} 1617.022 {z} 998.9678 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
if 
  is_char_in_car 56@ {vehicle} 51@
goto_if_false @HEIST9_17533
task_leave_car -1 {vehicle} 51@

:HEIST9_17533
perform_sequence_task -1 {sequence} 365@
task_pause -1 {time} 1000
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2222.9431 {y} 1620.636 {z} 998.9709 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 1500
if 
  is_char_in_car 57@ {vehicle} 51@
goto_if_false @HEIST9_17651
task_leave_car -1 {vehicle} 51@

:HEIST9_17651
perform_sequence_task -1 {sequence} 365@
task_pause -1 {time} 3000
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2223.1331 {y} 1610.9659 {z} 998.9728 {speed} MoveState.Walk {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 2000
if 
  is_char_in_car 54@ {vehicle} 51@
goto_if_false @HEIST9_17762
task_leave_car -1 {vehicle} 51@

:HEIST9_17762
perform_sequence_task -1 {sequence} 365@
task_pause -1 {time} 2500
perform_sequence_task -1 {sequence} 366@
task_follow_path_nodes_to_coord -1 {x} 2223.1331 {y} 1610.9659 {z} 998.9728 {speed} MoveState.Walk {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 286@
clear_sequence_task 53@
clear_sequence_task 365@
clear_sequence_task 366@

:HEIST9_17850
58@ = 0

:HEIST9_17857
if and
  not is_char_dead 54@(58@,4i)
  not is_car_dead 51@
goto_if_false @HEIST9_17933
add_blip_for_char 54@(58@,4i) {var_handle} 91@(58@,4i)
set_blip_entry_exit 91@(58@,4i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
set_blip_as_friendly 91@(58@,4i) {state} True

:HEIST9_17933
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_17857
38@ = 7
goto @HEIST9_17984

:HEIST9_17968
print_now 'HM9_14' {time} 5000 {flag} 1

:HEIST9_17984
if 
  38@ == 7
goto_if_false @HEIST9_18058
request_animation "BOMBER"

:HEIST9_18012
if 
  not has_animation_loaded "BOMBER"
goto_if_false @HEIST9_18044
wait 0
goto @HEIST9_18012

:HEIST9_18044
38@ = 8
TIMERA = 0

:HEIST9_18058
if 
  38@ == 8
goto_if_false @HEIST9_24146
58@ = 0

:HEIST9_18083
if and
  is_char_dead 315@(58@,5i)
  320@(58@,15i) <> 0
goto_if_false @HEIST9_18163
if 
  does_blip_exist 320@(58@,15i)
goto_if_false @HEIST9_18163
remove_blip 320@(58@,15i)
320@(58@,15i) = 0
mark_char_as_no_longer_needed 315@(58@,5i)

:HEIST9_18163
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_18083
58@ = 0

:HEIST9_18191
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_18271
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_18271
remove_blip 350@(58@,15i)
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_18271
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_18191
if and
  is_char_dead 315@
  is_char_dead 316@
  is_char_dead 317@
  257@ == 0
goto_if_false @HEIST9_19157
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_19150
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 335@
goto_if_false @HEIST9_18390
task_kill_char_on_foot -1 {target} 335@

:HEIST9_18390
if 
  not is_char_dead 337@
goto_if_false @HEIST9_18413
task_kill_char_on_foot -1 {target} 337@

:HEIST9_18413
if 
  not is_char_dead 336@
goto_if_false @HEIST9_18436
task_kill_char_on_foot -1 {target} 336@

:HEIST9_18436
if 
  not is_char_dead 341@
goto_if_false @HEIST9_18459
task_kill_char_on_foot -1 {target} 341@

:HEIST9_18459
if 
  not is_char_dead 342@
goto_if_false @HEIST9_18482
task_kill_char_on_foot -1 {target} 342@

:HEIST9_18482
close_sequence_task 286@
365@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2217.468 {y} 1619.031 {z} 998.9766
extend_route 2209.887 {y} 1618.989 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
extend_route 2203.74 {y} 1619.167 {z} 998.9827
extend_route 2199.1189 {y} 1618.858 {z} 998.9827
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 365@
53@ = open_sequence_task 
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2196.144 {y} 1618.719 {z} 998.9766 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2192.7261 {y} 1618.6281 {z} 998.9766 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2190.531 {y} 1617.373 {z} 998.9766 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 286@
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 338@
goto_if_false @HEIST9_18750
task_kill_char_on_foot -1 {target} 338@

:HEIST9_18750
if 
  not is_char_dead 339@
goto_if_false @HEIST9_18773
task_kill_char_on_foot -1 {target} 339@

:HEIST9_18773
if 
  not is_char_dead 340@
goto_if_false @HEIST9_18796
task_kill_char_on_foot -1 {target} 340@

:HEIST9_18796
if 
  not is_char_dead 341@
goto_if_false @HEIST9_18819
task_kill_char_on_foot -1 {target} 341@

:HEIST9_18819
if 
  not is_char_dead 342@
goto_if_false @HEIST9_18842
task_kill_char_on_foot -1 {target} 342@

:HEIST9_18842
close_sequence_task 286@
clear_sequence_task 53@
53@ = open_sequence_task 
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2196.144 {y} 1618.719 {z} 998.9766 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2191.2141 {y} 1620.229 {z} 998.9802 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
task_follow_path_nodes_to_coord -1 {x} 2223.3911 {y} 1619.15 {z} 998.9672 {speed} MoveState.Run {time} -1
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2198.9419 {y} 1617.974 {z} 998.9766 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 500
task_follow_path_nodes_to_coord -1 {x} 2223.3911 {y} 1619.15 {z} 998.9672 {speed} MoveState.Run {time} -1
perform_sequence_task -1 {sequence} 365@
task_follow_path_nodes_to_coord -1 {x} 2197.8159 {y} 1617.827 {z} 998.9766 {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 286@
clear_sequence_task 53@
clear_sequence_task 365@

:HEIST9_19150
257@ = 1

:HEIST9_19157
if and
  locate_char_any_means_3d $scplayer {x} 2158.438 {y} 1618.74 {z} 998.965 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  37@ == 0
goto_if_false @HEIST9_19248
if 
  not is_char_dead 344@
goto_if_false @HEIST9_19241
clear_char_tasks 344@
perform_sequence_task 344@ {sequence} 212@

:HEIST9_19241
37@ = 1

:HEIST9_19248
if and
  is_char_dead 335@
  is_char_dead 336@
  is_char_dead 337@
  is_char_dead 338@
  258@ == 0
goto_if_false @HEIST9_19839
if and
  is_char_dead 339@
  is_char_dead 340@
  257@ == 1
goto_if_false @HEIST9_19839
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_19839
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 343@
goto_if_false @HEIST9_19379
task_kill_char_on_foot -1 {target} 343@

:HEIST9_19379
if 
  not is_char_dead 341@
goto_if_false @HEIST9_19402
task_kill_char_on_foot -1 {target} 341@

:HEIST9_19402
if 
  not is_char_dead 342@
goto_if_false @HEIST9_19425
task_kill_char_on_foot -1 {target} 342@

:HEIST9_19425
close_sequence_task 286@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2188.958 {y} 1615.043 {z} 998.9766
extend_route 2184.968 {y} 1614.8361 {z} 998.9766
extend_route 2181.061 {y} 1612.783 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2187.532 {y} 1623.486 {z} 998.9746
extend_route 2182.6431 {y} 1624.14 {z} 998.9734
extend_route 2180.7781 {y} 1624.2371 {z} 998.9733
extend_route 2178.4939 {y} 1623.014 {z} 998.9754
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2195.998 {y} 1618.965 {z} 998.9766
extend_route 2190.157 {y} 1620.457 {z} 998.9797
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2195.998 {y} 1618.965 {z} 998.9766
extend_route 2190.4351 {y} 1616.811 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@
clear_sequence_task 286@
258@ = 1

:HEIST9_19839
if and
  is_char_dead 341@
  is_char_dead 342@
  is_char_dead 343@
  258@ == 1
goto_if_false @HEIST9_20545
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_20545
286@ = open_sequence_task 
task_pause -1 {time} 1
if 
  not is_char_dead 345@
goto_if_false @HEIST9_19937
task_kill_char_on_foot -1 {target} 345@

:HEIST9_19937
if 
  not is_char_dead 344@
goto_if_false @HEIST9_19960
task_kill_char_on_foot -1 {target} 344@

:HEIST9_19960
close_sequence_task 286@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2177.6841 {y} 1614.631 {z} 998.9766
extend_route 2173.2959 {y} 1618.374 {z} 998.9766
extend_route 2169.075 {y} 1618.589 {z} 998.9766
extend_route 2165.563 {y} 1618.568 {z} 998.9752
extend_route 2159.532 {y} 1617.056 {z} 998.9662
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 55@
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2174.709 {y} 1621.068 {z} 998.978
extend_route 2169.1541 {y} 1618.646 {z} 998.9766
extend_route 2161.4009 {y} 1619.6281 {z} 998.9706
extend_route 2155.9819 {y} 1619.0601 {z} 998.9666
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_achieve_heading -1 {heading} 180.0
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 286@
close_sequence_task 53@
clear_char_tasks 56@
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2190.0029 {y} 1622.425 {z} 998.9764
extend_route 2186.135 {y} 1623.306 {z} 998.9749
extend_route 2182.4399 {y} 1624.333 {z} 998.9731
extend_route 2178.6389 {y} 1623.895 {z} 998.9739
extend_route 2174.7561 {y} 1622.692 {z} 998.976
extend_route 2169.405 {y} 1620.61 {z} 998.9795
task_achieve_heading -1 {heading} 172.0
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 57@
perform_sequence_task 57@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
task_toggle_duck -1 {state} True
extend_route 2188.5371 {y} 1615.527 {z} 998.9766
extend_route 2184.4109 {y} 1614.467 {z} 998.9766
extend_route 2180.2241 {y} 1614.09 {z} 998.9766
extend_route 2175.855 {y} 1615.655 {z} 998.9766
extend_route 2169.48 {y} 1617.1851 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@
clear_sequence_task 286@
258@ = 2

:HEIST9_20545
if and
  is_char_dead 344@
  is_char_dead 345@
  258@ == 2
goto_if_false @HEIST9_20730
53@ = open_sequence_task 
task_toggle_duck -1 {state} False
task_follow_path_nodes_to_coord -1 {x} 2157.8721 {y} 1603.249 {z} 998.973 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2144.301 {y} 1610.444 {z} 992.6882 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_20642
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_20683
clear_char_tasks 54@(58@,4i)
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_20683
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_20642
clear_sequence_task 53@
367@ = 1
TIMERB = 0
258@ = 3

:HEIST9_20730
if 
  locate_char_any_means_3d $scplayer {x} 2195.041 {y} 1618.905 {z} 998.9766 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_21072
if and
  not is_car_dead 46@
  not is_char_dead $scplayer
goto_if_false @HEIST9_20828
if 
  not is_char_in_car $scplayer {vehicle} 46@
goto_if_false @HEIST9_20828
delete_car 46@
mark_model_as_no_longer_needed 530

:HEIST9_20828
if 
  304@ == 0
goto_if_false @HEIST9_21072
if 
  not is_char_dead 341@
goto_if_false @HEIST9_20953
53@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_pause -1 {time} 3000
flush_route 
extend_route 2176.6279 {y} 1610.473 {z} 998.9766
extend_route 2173.5601 {y} 1623.915 {z} 998.9739
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_achieve_heading -1 {heading} 270.0
close_sequence_task 53@
perform_sequence_task 341@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_20953
if 
  not is_char_dead 342@
goto_if_false @HEIST9_21065
clear_sequence_task 53@
53@ = open_sequence_task 
task_stay_in_same_place -1 {state} False
task_pause -1 {time} 3000
flush_route 
extend_route 2176.6279 {y} 1610.473 {z} 998.9766
extend_route 2175.9719 {y} 1613.853 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_achieve_heading -1 {heading} 270.0
close_sequence_task 53@
perform_sequence_task 342@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_21065
304@ = 1

:HEIST9_21072
if 
  251@ == 0
goto_if_false @HEIST9_21252
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_21147
print_with_number_now 'HM9_1C' {num} 7 {duration} 5000 {flag} 1
105@ = 1
TIMERB = 0

:HEIST9_21147
if and
  TIMERB > 5000
  105@ == 1
goto_if_false @HEIST9_21203
print_now 'HM9_21' {time} 6000 {flag} 1
105@ = 2
TIMERB = 0

:HEIST9_21203
if and
  TIMERB > 6000
  105@ == 2
goto_if_false @HEIST9_21252
print_now 'HM9_1G' {time} 7000 {flag} 1
105@ = 3

:HEIST9_21252
if 
  367@ <> 0
goto_if_false @HEIST9_21722
if 
  367@ == 1
goto_if_false @HEIST9_21355
58@ = 0

:HEIST9_21295
delete_char 315@(58@,5i)
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_21295
print_now 'HM9_1E' {time} 5000 {flag} 1
367@ = 2
TIMERA = 0

:HEIST9_21355
if and
  TIMERA > 4000
  367@ == 2
goto_if_false @HEIST9_21417
set_lvar_text_label 288@s = 'HE8_LA'
set_lvar_int_to_constant 232@ = 19050
gosub @HEIST9_50648
367@ = 3

:HEIST9_21417
if and
  231@ == 2
  367@ == 3
goto_if_false @HEIST9_21478
set_lvar_text_label 288@s = 'HE8_LB'
set_lvar_int_to_constant 232@ = 19051
gosub @HEIST9_50648
367@ = 4

:HEIST9_21478
if and
  231@ == 2
  367@ == 4
goto_if_false @HEIST9_21539
set_lvar_text_label 288@s = 'HE8_LC'
set_lvar_int_to_constant 232@ = 19052
gosub @HEIST9_50648
367@ = 5

:HEIST9_21539
if and
  231@ == 2
  367@ == 5
goto_if_false @HEIST9_21600
set_lvar_text_label 288@s = 'HE8_LD'
set_lvar_int_to_constant 232@ = 19053
gosub @HEIST9_50648
367@ = 6

:HEIST9_21600
if and
  231@ == 2
  367@ == 6
goto_if_false @HEIST9_21661
set_lvar_text_label 288@s = 'HE8_LE'
set_lvar_int_to_constant 232@ = 19054
gosub @HEIST9_50648
367@ = 7

:HEIST9_21661
if and
  231@ == 2
  367@ == 7
goto_if_false @HEIST9_21722
set_lvar_text_label 288@s = 'HE8_LF'
set_lvar_int_to_constant 232@ = 19055
gosub @HEIST9_50648
367@ = 0

:HEIST9_21722
234@ = 0
if and
  251@ > 1
  252@ == 1
goto_if_false @HEIST9_22816
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_21899
58@ = 0

:HEIST9_21786
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_21786
233@ = add_blip_for_coord 2144.1011 {y} 1623.453 {z} 993.5677
set_blip_entry_exit 233@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 233@ {display} BlipDisplay.Neither
set_lvar_text_label 288@s = 'HE8_MA'
set_lvar_int_to_constant 232@ = 19056
gosub @HEIST9_50648
105@ = 1

:HEIST9_21899
if and
  231@ == 2
  105@ == 1
goto_if_false @HEIST9_21960
set_lvar_text_label 288@s = 'HE8_MB'
set_lvar_int_to_constant 232@ = 19057
gosub @HEIST9_50648
105@ = 2

:HEIST9_21960
if and
  231@ == 2
  105@ == 2
goto_if_false @HEIST9_22028
set_lvar_text_label 288@s = 'HE8_MC'
set_lvar_int_to_constant 232@ = 19058
gosub @HEIST9_50648
105@ = 3
TIMERA = 0

:HEIST9_22028
if and
  231@ == 2
  105@ == 3
goto_if_false @HEIST9_22089
set_lvar_text_label 288@s = 'HE8_NA'
set_lvar_int_to_constant 232@ = 19059
gosub @HEIST9_50648
105@ = 4

:HEIST9_22089
if and
  231@ == 2
  105@ == 4
goto_if_false @HEIST9_22150
set_lvar_text_label 288@s = 'HE8_NB'
set_lvar_int_to_constant 232@ = 19060
gosub @HEIST9_50648
105@ = 5

:HEIST9_22150
if and
  231@ == 2
  105@ == 5
goto_if_false @HEIST9_22218
set_lvar_text_label 288@s = 'HE8_NC'
set_lvar_int_to_constant 232@ = 19061
gosub @HEIST9_50648
105@ = 6
TIMERA = 0

:HEIST9_22218
if and
  231@ == 2
  105@ == 6
goto_if_false @HEIST9_22279
set_lvar_text_label 288@s = 'HE8_ND'
set_lvar_int_to_constant 232@ = 19062
gosub @HEIST9_50648
105@ = 7

:HEIST9_22279
if and
  231@ == 2
  105@ == 7
goto_if_false @HEIST9_22347
set_lvar_text_label 288@s = 'HE8_NE'
set_lvar_int_to_constant 232@ = 19063
gosub @HEIST9_50648
105@ = 8
TIMERA = 0

:HEIST9_22347
if and
  231@ == 2
  105@ == 8
goto_if_false @HEIST9_22816
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Satchel
goto_if_false @HEIST9_22758
request_model 163

:HEIST9_22395
if 
  not has_model_loaded 163
goto_if_false @HEIST9_22422
wait 0
goto @HEIST9_22395

:HEIST9_22422
295@ = create_char PedType.Mission1 {modelId} 164 {x} 2146.665 {y} 1611.452 {z} 999.9764
set_char_area_visible 295@ {areaId} 1
set_char_heading 295@ {heading} 189.8734
set_char_decision_maker 295@ {handleOrTemplate} 89@
give_weapon_to_char 295@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 295@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 295@ {state} True
set_char_money 295@ {amount} 0
296@ = create_char PedType.Mission1 {modelId} 163 {x} 2147.9819 {y} 1605.254 {z} 1000.752
set_char_area_visible 296@ {areaId} 1
set_char_heading 296@ {heading} 191.7168
give_weapon_to_char 296@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_char_decision_maker 296@ {handleOrTemplate} 89@
set_current_char_weapon 296@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 296@ {state} True
set_char_money 296@ {amount} 0
if 
  does_blip_exist 233@
goto_if_false @HEIST9_22605
remove_blip 233@

:HEIST9_22605
58@ = 0

:HEIST9_22612
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_22651
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False

:HEIST9_22651
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_22612
print_now 'HM9_22' {time} 4000 {flag} 1
38@ = 13
228@ = add_blip_for_object 171@
set_blip_entry_exit 228@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
229@ = add_blip_for_object 172@
set_blip_entry_exit 229@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
goto @HEIST9_22802

:HEIST9_22758
print_now 'HM9_PK' {time} 4000 {flag} 1
299@ = add_blip_for_pickup 214@
set_blip_entry_exit 299@ {x} 2196.635 {y} 1676.8409 {radius} 10.0

:HEIST9_22802
105@ = 101
TIMERA = 0

:HEIST9_22816
if and
  has_char_got_weapon $scplayer {weaponType} WeaponType.Satchel
  105@ == 101
  38@ <> 13
goto_if_false @HEIST9_23216
request_model 163

:HEIST9_22853
if 
  not has_model_loaded 163
goto_if_false @HEIST9_22880
wait 0
goto @HEIST9_22853

:HEIST9_22880
295@ = create_char PedType.Mission1 {modelId} 164 {x} 2146.665 {y} 1611.452 {z} 999.9764
set_char_area_visible 295@ {areaId} 1
set_char_heading 295@ {heading} 189.8734
set_char_decision_maker 295@ {handleOrTemplate} 89@
give_weapon_to_char 295@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 295@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 295@ {state} True
296@ = create_char PedType.Mission1 {modelId} 163 {x} 2147.9819 {y} 1605.254 {z} 1000.752
set_char_area_visible 296@ {areaId} 1
set_char_heading 296@ {heading} 191.7168
give_weapon_to_char 296@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_char_decision_maker 296@ {handleOrTemplate} 89@
set_current_char_weapon 296@ {weaponType} WeaponType.Mp5
task_stay_in_same_place 296@ {state} True
if 
  does_blip_exist 233@
goto_if_false @HEIST9_23049
remove_blip 233@

:HEIST9_23049
58@ = 0

:HEIST9_23056
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_23095
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} False

:HEIST9_23095
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_23056
if 
  does_blip_exist 299@
goto_if_false @HEIST9_23137
remove_blip 299@

:HEIST9_23137
print_now 'HM9_22' {time} 4000 {flag} 1
38@ = 13
228@ = add_blip_for_object 171@
set_blip_entry_exit 228@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
229@ = add_blip_for_object 172@
set_blip_entry_exit 229@ {x} 2196.635 {y} 1676.8409 {radius} 10.0

:HEIST9_23216
if 
  locate_char_any_means_3d $scplayer {x} 2144.3931 {y} 1616.653 {z} 992.5681 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_23333
if and
  105@ <> 0
  105@ <> 9
  251@ > 1
goto_if_false @HEIST9_23319
if 
  does_blip_exist 233@
goto_if_false @HEIST9_23319
change_blip_display 233@ {display} BlipDisplay.Neither

:HEIST9_23319
252@ = 1
goto @HEIST9_23411

:HEIST9_23333
if and
  105@ <> 0
  105@ <> 9
  251@ > 1
goto_if_false @HEIST9_23404
if 
  does_blip_exist 233@
goto_if_false @HEIST9_23388
change_blip_display 233@ {display} BlipDisplay.Both

:HEIST9_23388
print_now 'HM9_56' {time} 1000 {flag} 1

:HEIST9_23404
252@ = 0

:HEIST9_23411
58@ = 0

:HEIST9_23418
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_24125
if and
  locate_char_any_means_3d 54@(58@,4i) {x} 2143.6931 {y} 1610.6281 {z} 992.6882 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
  239@(58@,4i) == 0
goto_if_false @HEIST9_24125
if and
  58@ == 0
  not is_char_dead 54@
goto_if_false @HEIST9_23669
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2143.0359 {y} 1626.4969 {z} 992.5681
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
task_stay_in_same_place -1 {state} True
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 54@ {sequence} 53@

:HEIST9_23669
if and
  58@ == 1
  not is_char_dead 55@
goto_if_false @HEIST9_23831
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2145.696 {y} 1626.496 {z} 992.5681
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
task_stay_in_same_place -1 {state} True
task_play_anim -1 {animationName} "BOM_PLANT_LOOP" {animationFile} "BOMBER" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
perform_sequence_task 55@ {sequence} 53@

:HEIST9_23831
if and
  58@ == 2
  not is_char_dead 56@
goto_if_false @HEIST9_23943
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2147.7439 {y} 1620.447 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
close_sequence_task 53@
perform_sequence_task 56@ {sequence} 53@

:HEIST9_23943
if and
  58@ == 3
  not is_char_dead 57@
goto_if_false @HEIST9_24055
53@ = open_sequence_task 
flush_route 
extend_route 2144.2019 {y} 1618.696 {z} 992.6882
extend_route 2136.2539 {y} 1621.6281 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_stay_in_same_place -1 {state} True
task_turn_char_to_face_coord -1 {x} 2144.231 {y} 1629.507 {z} 992.5703
close_sequence_task 53@
perform_sequence_task 57@ {sequence} 53@

:HEIST9_24055
clear_sequence_task 53@
set_char_only_damaged_by_player 54@(58@,4i) {state} False
change_blip_display 91@(58@,4i) {display} BlipDisplay.Neither
239@(58@,4i) = 1
if 
  251@ == 0
goto_if_false @HEIST9_24118
105@ = 0

:HEIST9_24118
251@ += 1

:HEIST9_24125
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_23418

:HEIST9_24146
if and
  38@ == 13
  TIMERA > 5000
goto_if_false @HEIST9_31401
if 
  119@ == 0
goto_if_false @HEIST9_24617
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_24251
set_lvar_text_label 288@s = 'HE8_OA'
set_lvar_int_to_constant 232@ = 19064
gosub @HEIST9_50648
105@ = 1

:HEIST9_24251
if and
  231@ == 2
  105@ == 1
goto_if_false @HEIST9_24312
set_lvar_text_label 288@s = 'HE8_OB'
set_lvar_int_to_constant 232@ = 19065
gosub @HEIST9_50648
105@ = 2

:HEIST9_24312
if and
  231@ == 2
  105@ == 2
goto_if_false @HEIST9_24373
set_lvar_text_label 288@s = 'HE8_OC'
set_lvar_int_to_constant 232@ = 19066
gosub @HEIST9_50648
105@ = 3

:HEIST9_24373
if and
  231@ == 2
  105@ == 3
goto_if_false @HEIST9_24434
set_lvar_text_label 288@s = 'HE8_OD'
set_lvar_int_to_constant 232@ = 19067
gosub @HEIST9_50648
105@ = 4

:HEIST9_24434
if and
  231@ == 2
  105@ == 4
goto_if_false @HEIST9_24495
set_lvar_text_label 288@s = 'HE8_OE'
set_lvar_int_to_constant 232@ = 19068
gosub @HEIST9_50648
105@ = 5

:HEIST9_24495
if and
  231@ == 2
  105@ == 5
goto_if_false @HEIST9_24556
set_lvar_text_label 288@s = 'HE8_OF'
set_lvar_int_to_constant 232@ = 19069
gosub @HEIST9_50648
105@ = 8

:HEIST9_24556
if and
  231@ == 2
  105@ == 8
goto_if_false @HEIST9_24617
set_lvar_text_label 288@s = 'HE8_OJ'
set_lvar_int_to_constant 232@ = 19072
gosub @HEIST9_50648
105@ = 9

:HEIST9_24617
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_24643
175@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Satchel

:HEIST9_24643
if 
  not is_any_pickup_at_coords 2146.4871 {y} 1622.8051 {z} 993.0
goto_if_false @HEIST9_24739
if and
  0 >= 175@
  119@ == 0
goto_if_false @HEIST9_24739
if 
  not does_pickup_exist 214@
goto_if_false @HEIST9_24739
214@ = create_pickup_with_ammo 363 {pickupType} PickupType.Once {ammo} 5 {x} 2146.4871 {y} 1622.8051 {z} 993.0

:HEIST9_24739
if or
  is_explosion_in_area ExplosionType.Grenade {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
  is_explosion_in_area ExplosionType.Molotov {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
  is_explosion_in_area ExplosionType.WeakRocket {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
  is_explosion_in_area ExplosionType.Rocket {leftBottomX} 2150.9661 {leftBottomY} 1618.8571 {leftBottomZ} 999.9688 {rightTopX} 2142.4719 {rightTopY} 1608.066 {rightTopZ} 1003.0
goto_if_false @HEIST9_25621
if 
  119@ == 0
goto_if_false @HEIST9_25621
312@ = create_object_no_offset #WAREHOUSE_DOOR2B {x} 2195.769 {y} 1585.199 {z} 1002.0
set_object_area_visible 312@ {areaId} 1
set_object_heading 312@ {heading} 180.0
set_object_collision_damage_effect 312@ {state} False
gosub @HEIST9_46289
set_object_collision_damage_effect 60@ {state} True
if and
  locate_char_any_means_3d $scplayer {x} 2146.146 {y} 1613.818 {z} 999.968 {xRadius} 7.0 {yRadius} 7.0 {zRadius} 2.0 {drawSphere} False
  not is_char_dead $scplayer
goto_if_false @HEIST9_25023
task_die $scplayer

:HEIST9_25023
if 
  does_blip_exist 228@
goto_if_false @HEIST9_25044
remove_blip 228@

:HEIST9_25044
if 
  does_blip_exist 229@
goto_if_false @HEIST9_25065
remove_blip 229@

:HEIST9_25065
set_fixed_camera_position 2141.3611 {y} 1619.829 {z} 1000.669 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2141.925 {y} 1619.005 {z} 1000.723 {switchStyle} SwitchType.JumpCut
gosub @HEIST9_43886
delete_object 171@
delete_object 172@
mark_model_as_no_longer_needed #GENERATOR_BIG
171@ = create_object #GENERATOR_BIG_D {x} 2145.05 {y} 1613.49 {z} 999.9764
set_object_heading 171@ {heading} 1.2043
172@ = create_object #GENERATOR_BIG_D {x} 2148.8 {y} 1613.49 {z} 999.9764
set_object_heading 172@ {heading} 354.0372
368@ = 0

:HEIST9_25211
add_explosion 2143.1069 {y} 1611.332 {z} 1000.5 {type} ExplosionType.Small
201@ = create_fx_system "EXPLOSION_SMALL" {x} 2143.1069 {y} 1611.332 {z} 1000.5 {ignoreBoundingChecks} True
play_fx_system 201@
wait 150
add_explosion 2149.51 {y} 1614.5861 {z} 1000.5 {type} ExplosionType.Small
202@ = create_fx_system "EXPLOSION_SMALL" {x} 2149.51 {y} 1614.5861 {z} 1000.5 {ignoreBoundingChecks} True
play_fx_system 202@
wait 10
58@ = 0

:HEIST9_25353
stop_fx_system 201@(58@,6i)
kill_fx_system 201@(58@,6i)
58@ += 1
  58@ >= 6
goto_if_false @HEIST9_25353
368@ += 1
  368@ >= 3
goto_if_false @HEIST9_25211
wait 2000
58@ = 0

:HEIST9_25425
change_blip_display 91@(58@,4i) {display} BlipDisplay.Both
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_25486
task_stay_in_same_place 54@(58@,4i) {state} False
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False

:HEIST9_25486
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25425
105@ = 6
gosub @HEIST9_46306
gosub @HEIST9_43955
TIMERA = 0
119@ = 1
clear_help 
58@ = 0

:HEIST9_25551
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25551
if 
  is_any_pickup_at_coords 2146.4871 {y} 1622.8051 {z} 993.0
goto_if_false @HEIST9_25605
remove_pickup 214@

:HEIST9_25605
print_now 'HM9_40' {time} 5000 {flag} 1

:HEIST9_25621
if 
  119@ == 1
goto_if_false @HEIST9_25700
if and
  231@ == 2
  105@ == 0
goto_if_false @HEIST9_25700
set_lvar_text_label 288@s = 'HE8_OK'
set_lvar_int_to_constant 232@ = 19073
gosub @HEIST9_50648
105@ = 10

:HEIST9_25700
if and
  121@ == 0
  119@ == 1
goto_if_false @HEIST9_27722
if 
  locate_char_any_means_3d $scplayer {x} 2143.9751 {y} 1624.443 {z} 992.5681 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @HEIST9_27722
105@ = 10
121@ = 1
58@ = 0

:HEIST9_25794
change_blip_display 91@(58@,4i) {display} BlipDisplay.Neither
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_25794
gosub @HEIST9_46289
if 
  not is_char_dead 56@
goto_if_false @HEIST9_25879
set_char_coordinates_dont_warp_gang 56@ {x} 2147.7439 {y} 1620.447 {z} 992.6882
set_char_heading 56@ {heading} 346.8824

:HEIST9_25879
if 
  not is_char_dead 57@
goto_if_false @HEIST9_25925
set_char_coordinates_dont_warp_gang 57@ {x} 2136.2539 {y} 1621.6281 {z} 992.6882
set_char_heading 57@ {heading} 358.8987

:HEIST9_25925
set_fixed_camera_position 2140.489 {y} 1617.689 {z} 993.7817 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2140.8311 {y} 1618.629 {z} 993.7844 {switchStyle} SwitchType.JumpCut
wait 1000
print_now 'HE8_QA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19083

:HEIST9_26008
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26034
wait 0
goto @HEIST9_26008

:HEIST9_26034
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_26045
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26088
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26081

:HEIST9_26081
goto @HEIST9_26045

:HEIST9_26088
print_now 'HE8_QC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19085

:HEIST9_26115
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26141
wait 0
goto @HEIST9_26115

:HEIST9_26141
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 54@
goto_if_false @HEIST9_26211
task_pause 54@ {time} 1000
clear_char_tasks_immediately 54@
flush_route 
extend_route 2135.4971 {y} 1625.5179 {z} 992.5681
task_toggle_duck 54@ {state} True
task_follow_point_route 54@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_26211
if 
  not is_char_dead 55@
goto_if_false @HEIST9_26269
clear_char_tasks_immediately 55@
flush_route 
extend_route 2152.9541 {y} 1625.076 {z} 992.5681
task_toggle_duck 55@ {state} True
task_follow_point_route 55@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_26269
TIMERB = 0

:HEIST9_26276
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26319
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26312

:HEIST9_26312
goto @HEIST9_26276

:HEIST9_26319
print_now 'HE8_QB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19084

:HEIST9_26346
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26372
wait 0
goto @HEIST9_26346

:HEIST9_26372
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_26383
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26426
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26419

:HEIST9_26419
goto @HEIST9_26383

:HEIST9_26426
58@ = 0

:HEIST9_26433
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_26473
clear_char_tasks_immediately 54@(58@,4i)
task_toggle_duck 54@(58@,4i) {state} True

:HEIST9_26473
change_blip_display 91@(58@,4i) {display} BlipDisplay.Both
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_26433
add_explosion 2144.533 {y} 1626.7469 {z} 992.707 {type} ExplosionType.Small
369@ = create_fx_system "EXPLOSION_SMALL" {x} 2144.533 {y} 1626.7469 {z} 992.707 {ignoreBoundingChecks} True
play_and_kill_fx_system 369@
add_explosion 2144.533 {y} 1626.7469 {z} 994.0 {type} ExplosionType.Small
wait 500
370@ = create_fx_system "EXPLOSION_SMALL" {x} 2144.533 {y} 1626.7469 {z} 994.0 {ignoreBoundingChecks} True
play_and_kill_fx_system 370@
add_explosion 2144.533 {y} 1626.7469 {z} 996.0 {type} ExplosionType.Small
delete_object 60@
wait 500
371@ = create_fx_system "EXPLOSION_SMALL" {x} 2144.533 {y} 1626.7469 {z} 996.0 {ignoreBoundingChecks} True
play_and_kill_fx_system 371@
print_now 'HE8_RA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19086

:HEIST9_26736
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_26762
wait 0
goto @HEIST9_26736

:HEIST9_26762
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_26773
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_26816
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_26809

:HEIST9_26809
goto @HEIST9_26773

:HEIST9_26816
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_26862
set_char_coordinates_dont_warp_gang $scplayer {x} 2144.2661 {y} 1610.649 {z} 992.5681
set_char_heading $scplayer {heading} 359.3881

:HEIST9_26862
gosub @HEIST9_46306
print_now 'HM9_58' {time} 7000 {flag} 1
61@ = create_object #CJ_MONEY_BAG {x} 2146.27 {y} 1636.314 {z} 992.5683
set_object_area_visible 61@ {areaId} 1
set_object_heading 61@ {heading} 268.4277
set_object_collision 61@ {state} False
62@ = create_object #CJ_MONEY_BAG {x} 2146.137 {y} 1632.4041 {z} 992.5683
set_object_area_visible 62@ {areaId} 1
set_object_heading 62@ {heading} 89.5044
set_object_collision 62@ {state} False
63@ = create_object #CJ_MONEY_BAG {x} 2142.1479 {y} 1632.426 {z} 992.5683
set_object_area_visible 63@ {areaId} 1
set_object_heading 63@ {heading} 97.3067
set_object_collision 63@ {state} False
64@ = create_object #CJ_MONEY_BAG {x} 2142.0701 {y} 1636.137 {z} 992.5683
set_object_area_visible 64@ {areaId} 1
set_object_heading 64@ {heading} 51.5319
set_object_collision 64@ {state} False
if and
  not is_char_dead 54@
  not is_char_dead 55@
  not is_char_dead 56@
  not is_char_dead 57@
goto_if_false @HEIST9_27722
373@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_pause -1 {time} 500
set_sequence_to_repeat 373@ {state} True
close_sequence_task 373@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_pause -1 {time} 3000
task_follow_path_nodes_to_coord -1 {x} 2146.27 {y} 1636.314 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 61@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 54@
task_toggle_duck 54@ {state} False
perform_sequence_task 54@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 100
task_toggle_duck -1 {state} True
task_follow_path_nodes_to_coord -1 {x} 2146.137 {y} 1632.4041 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 62@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 55@
task_toggle_duck 55@ {state} False
perform_sequence_task 55@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 200
task_toggle_duck -1 {state} True
task_pause -1 {time} 2000
task_follow_path_nodes_to_coord -1 {x} 2142.1479 {y} 1632.426 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 63@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 56@
task_toggle_duck 56@ {state} False
perform_sequence_task 56@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_pause -1 {time} 100
task_toggle_duck -1 {state} True
task_pause -1 {time} 3000
task_follow_path_nodes_to_coord -1 {x} 2142.0701 {y} 1636.137 {z} 992.5683 {speed} MoveState.Run {time} -1
task_pick_up_object -1 {object} 64@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.5 {bone} PedBoneId.HandR {orientation} HoldOrientation.PedHeading {animationName} "NULL" {animationFile} "NULL" {time} 0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
perform_sequence_task -1 {sequence} 373@
close_sequence_task 53@
clear_char_tasks_immediately 57@
task_toggle_duck 57@ {state} False
perform_sequence_task 57@ {sequence} 53@
remove_animation "BOMBER"
372@ = add_blip_for_coord 2144.1521 {y} 1636.462 {z} 992.5703
set_blip_entry_exit 372@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
clear_sequence_task 373@
clear_sequence_task 53@

:HEIST9_27722
if 
  121@ == 1
goto_if_false @HEIST9_27915
if and
  locate_char_any_means_3d $scplayer {x} 2144.1521 {y} 1636.462 {z} 992.5703 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
  does_blip_exist 372@
goto_if_false @HEIST9_27915
if 
  does_blip_exist 372@
goto_if_false @HEIST9_27814
remove_blip 372@

:HEIST9_27814
140@ = 1
121@ = 2
TIMERB = 0
58@ = 0

:HEIST9_27842
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_27894
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)

:HEIST9_27894
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_27842

:HEIST9_27915
if and
  231@ == 2
  140@ == 1
goto_if_false @HEIST9_27976
set_lvar_text_label 288@s = 'HE8_RB'
set_lvar_int_to_constant 232@ = 19087
gosub @HEIST9_50648
140@ = 2

:HEIST9_27976
if and
  231@ == 2
  140@ == 2
goto_if_false @HEIST9_28044
set_lvar_text_label 288@s = 'HE8_RC'
set_lvar_int_to_constant 232@ = 19088
gosub @HEIST9_50648
TIMERA = 0
140@ = 3

:HEIST9_28044
if and
  231@ == 2
  140@ == 3
  TIMERA > 3000
goto_if_false @HEIST9_29538
gosub @HEIST9_46325
gosub @HEIST9_46289
131@ = 4
58@ = 0

:HEIST9_28105
if 
  not is_char_dead 335@(58@,15i)
goto_if_false @HEIST9_28134
delete_char 335@(58@,15i)

:HEIST9_28134
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_28105
58@ = 0

:HEIST9_28162
delete_char 109@(58@,5i)
58@ += 1
  58@ >= 3
goto_if_false @HEIST9_28162
delete_char 295@
delete_char 296@
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
request_model 124
request_model 125

:HEIST9_28220
if or
  not has_model_loaded 124
  not has_model_loaded 125
goto_if_false @HEIST9_28250
wait 0
goto @HEIST9_28220

:HEIST9_28250
335@ = create_char PedType.Mission1 {modelId} 124 {x} 2150.8311 {y} 1611.033 {z} 992.6882
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 353.2278
set_char_only_damaged_by_player 335@ {state} True
336@ = create_char PedType.Mission1 {modelId} 124 {x} 2135.7019 {y} 1611.064 {z} 992.6882
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 354.2745
374@ = open_sequence_task 
flush_route 
extend_route 2144.1399 {y} 1610.015 {z} 992.6882
extend_route 2146.085 {y} 1611.896 {z} 992.6882
task_toggle_duck -1 {state} True
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_achieve_heading -1 {heading} 6.3138
task_stand_still -1 {time} 1
flush_route 
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_28434
task_kill_char_on_foot -1 {target} $scplayer

:HEIST9_28434
close_sequence_task 374@
337@ = create_char PedType.Mission1 {modelId} 125 {x} 2144.0291 {y} 1605.3521 {z} 992.5684
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 356.695
perform_sequence_task 337@ {sequence} 374@
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2144.1399 {y} 1610.015 {z} 992.6882
extend_route 2139.8149 {y} 1615.4709 {z} 992.6882
task_toggle_duck -1 {state} True
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
task_toggle_duck -1 {state} False
task_achieve_heading -1 {heading} 335.8946
task_stand_still -1 {time} 1
flush_route 
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_28594
task_kill_char_on_foot -1 {target} $scplayer

:HEIST9_28594
close_sequence_task 374@
338@ = create_char PedType.Mission1 {modelId} 124 {x} 2144.22 {y} 1601.963 {z} 992.5684
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 358.3628
perform_sequence_task 338@ {sequence} 374@
339@ = create_char PedType.Mission1 {modelId} 125 {x} 2146.605 {y} 1597.785 {z} 994.5676
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 89.7654
set_char_only_damaged_by_player 339@ {state} True
task_stay_in_same_place 339@ {state} True
set_sense_range 339@ {range} 5.0
340@ = create_char PedType.Mission1 {modelId} 125 {x} 2147.77 {y} 1596.479 {z} 994.5676
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 78.7631
task_stay_in_same_place 340@ {state} True
set_sense_range 340@ {range} 5.0
341@ = create_char PedType.Mission1 {modelId} 124 {x} 2148.627 {y} 1602.235 {z} 996.7766
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 170.4726
task_stay_in_same_place 341@ {state} True
set_sense_range 341@ {range} 5.0
342@ = create_char PedType.Mission1 {modelId} 125 {x} 2148.3579 {y} 1603.734 {z} 996.7766
set_char_area_visible 342@ {areaId} 1
set_char_heading 342@ {heading} 158.879
task_stay_in_same_place 342@ {state} True
set_sense_range 342@ {range} 5.0
clear_sequence_task 374@
58@ = 0

:HEIST9_28899
set_char_keep_task 335@(58@,15i) {state} True
set_char_money 335@(58@,15i) {amount} 0
if and
  58@ <> 0
  58@ <> 4
goto_if_false @HEIST9_28970
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200

:HEIST9_28970
if or
  58@ == 3
  58@ == 4
  58@ == 7
goto_if_false @HEIST9_29034
set_char_weapon_skill 335@(58@,15i) {skill} WeaponSkill.Pro
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @HEIST9_29059

:HEIST9_29034
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 9999
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5

:HEIST9_29059
add_blip_for_char 335@(58@,15i) {var_handle} 350@(58@,15i)
set_blip_entry_exit 350@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 350@(58@,15i) {display} BlipDisplay.BlipOnly
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_28899
set_fixed_camera_position 2142.248 {y} 1611.113 {z} 993.2602 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2142.6689 {y} 1610.2111 {z} 993.3487 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_29262
set_char_coordinates_dont_warp_gang $scplayer {x} 2144.0481 {y} 1627.986 {z} 992.5703
set_char_heading $scplayer {heading} 181.8141

:HEIST9_29262
gosub @HEIST9_46358
print_now 'HM9_57' {time} 5000 {flag} 1
wait 2000
set_fixed_camera_position 2140.7849 {y} 1619.8311 {z} 993.4654 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2141.0779 {y} 1618.876 {z} 993.4291 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 338@
goto_if_false @HEIST9_29399
clear_char_tasks 338@
task_toggle_duck 338@ {state} True
set_char_coordinates_dont_warp_gang 338@ {x} 2140.249 {y} 1615.12 {z} 992.6882
set_char_heading 338@ {heading} 340.6346

:HEIST9_29399
wait 3000
if 
  not is_char_dead 335@
goto_if_false @HEIST9_29428
perform_sequence_task 335@ {sequence} 212@

:HEIST9_29428
if 
  not is_char_dead 336@
goto_if_false @HEIST9_29452
perform_sequence_task 336@ {sequence} 213@

:HEIST9_29452
if 
  does_object_exist 308@
goto_if_false @HEIST9_29488
set_object_coordinates 308@ {x} 2173.8669 {y} 1619.415 {z} 999.3

:HEIST9_29488
gosub @HEIST9_46306
set_lvar_text_label 288@s = 'HE8_RD'
set_lvar_int_to_constant 232@ = 19089
gosub @HEIST9_50648
140@ = 4
TIMERA = 0

:HEIST9_29538
if 
  140@ == 4
goto_if_false @HEIST9_30079
if and
  is_char_dead 335@
  is_char_dead 336@
  is_char_dead 337@
  is_char_dead 338@
  375@ == 0
goto_if_false @HEIST9_29760
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2143.927 {y} 1597.674 {z} 994.5676
extend_route 2144.1399 {y} 1603.111 {z} 992.5684
extend_route 2142.907 {y} 1614.151 {z} 992.6882
extend_route 2143.105 {y} 1621.571 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 339@
goto_if_false @HEIST9_29724
clear_char_tasks 339@
perform_sequence_task 339@ {sequence} 374@

:HEIST9_29724
if 
  not is_char_dead 340@
goto_if_false @HEIST9_29753
clear_char_tasks 340@
perform_sequence_task 340@ {sequence} 374@

:HEIST9_29753
375@ = 1

:HEIST9_29760
if and
  is_char_dead 339@
  is_char_dead 340@
  375@ == 1
goto_if_false @HEIST9_29971
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2147.772 {y} 1597.552 {z} 994.5676
extend_route 2144.127 {y} 1597.792 {z} 994.5676
extend_route 2144.3779 {y} 1603.689 {z} 992.5684
extend_route 2143.9871 {y} 1609.467 {z} 992.6882
extend_route 2143.7219 {y} 1618.05 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 341@
goto_if_false @HEIST9_29935
clear_char_tasks 341@
perform_sequence_task 341@ {sequence} 374@

:HEIST9_29935
if 
  not is_char_dead 342@
goto_if_false @HEIST9_29964
clear_char_tasks 342@
perform_sequence_task 342@ {sequence} 374@

:HEIST9_29964
375@ = 2

:HEIST9_29971
58@ = 0

:HEIST9_29978
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_30058
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_30058
remove_blip 350@(58@,15i)
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_30058
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_29978

:HEIST9_30079
if and
  140@ > 3
  locate_char_any_means_3d $scplayer {x} 2144.2451 {y} 1606.821 {z} 992.6882 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  256@ == 0
goto_if_false @HEIST9_30490
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2143.927 {y} 1597.674 {z} 994.5676
extend_route 2144.1399 {y} 1603.111 {z} 992.5684
extend_route 2142.907 {y} 1614.151 {z} 992.6882
extend_route 2143.105 {y} 1621.571 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 339@
goto_if_false @HEIST9_30271
clear_char_tasks 339@
perform_sequence_task 339@ {sequence} 374@

:HEIST9_30271
if 
  not is_char_dead 340@
goto_if_false @HEIST9_30300
clear_char_tasks 340@
perform_sequence_task 340@ {sequence} 374@

:HEIST9_30300
clear_sequence_task 374@
374@ = open_sequence_task 
flush_route 
extend_route 2147.772 {y} 1597.552 {z} 994.5676
extend_route 2144.127 {y} 1597.792 {z} 994.5676
extend_route 2144.3779 {y} 1603.689 {z} 992.5684
extend_route 2143.9871 {y} 1609.467 {z} 992.6882
extend_route 2143.7219 {y} 1618.05 {z} 992.6882
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
task_toggle_duck -1 {state} True
close_sequence_task 374@
if 
  not is_char_dead 341@
goto_if_false @HEIST9_30447
clear_char_tasks 341@
perform_sequence_task 341@ {sequence} 374@

:HEIST9_30447
if 
  not is_char_dead 342@
goto_if_false @HEIST9_30476
clear_char_tasks 342@
perform_sequence_task 342@ {sequence} 374@

:HEIST9_30476
375@ = 2
256@ = 1

:HEIST9_30490
if 
  121@ == 2
goto_if_false @HEIST9_30631
58@ = 0

:HEIST9_30515
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_30610
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_30610
print_now 'HM9_44' {time} 4000 {flag} 1

:HEIST9_30610
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_30515

:HEIST9_30631
if 
  121@ == 2
goto_if_false @HEIST9_30681
if and
  140@ == 4
  52@ == 0
goto_if_false @HEIST9_30681
gosub @HEIST9_44024

:HEIST9_30681
if and
  locate_char_any_means_3d $scplayer {x} 2146.3291 {y} 1597.4091 {z} 998.7676 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
  52@ == 1
goto_if_false @HEIST9_31401
58@ = 0

:HEIST9_30743
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_30743
335@ = create_char PedType.Mission1 {modelId} 124 {x} 2152.0149 {y} 1602.51 {z} 1000.971
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 270.0812
task_stay_in_same_place 335@ {state} True
336@ = create_char PedType.Mission1 {modelId} 125 {x} 2160.9851 {y} 1616.689 {z} 998.9657
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 178.5078
perform_sequence_task 336@ {sequence} 213@
337@ = create_char PedType.Mission1 {modelId} 124 {x} 2181.3201 {y} 1625.335 {z} 998.9714
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 117.5403
task_stay_in_same_place 337@ {state} True
task_toggle_duck 337@ {state} True
338@ = create_char PedType.Mission1 {modelId} 124 {x} 2183.6531 {y} 1623.66 {z} 998.9743
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 98.1814
task_stay_in_same_place 338@ {state} True
339@ = create_char PedType.Mission1 {modelId} 125 {x} 2182.4939 {y} 1611.8459 {z} 998.9766
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 57.0007
task_stay_in_same_place 339@ {state} True
340@ = create_char PedType.Mission1 {modelId} 125 {x} 2191.2781 {y} 1619.051 {z} 998.9766
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 85.6714
341@ = create_char PedType.Mission1 {modelId} 124 {x} 2222.6541 {y} 1616.012 {z} 998.9688
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 97.3112
perform_sequence_task 341@ {sequence} 213@
342@ = create_char PedType.Mission1 {modelId} 125 {x} 2210.106 {y} 1620.387 {z} 998.9766
set_char_area_visible 342@ {areaId} 1
set_char_heading 342@ {heading} 90.3344
task_toggle_duck 342@ {state} True
task_stay_in_same_place 342@ {state} True
343@ = create_char PedType.Mission1 {modelId} 124 {x} 2224.5779 {y} 1619.114 {z} 998.9679
set_char_area_visible 343@ {areaId} 1
set_char_heading 343@ {heading} 86.7328
task_toggle_duck 343@ {state} True
task_stay_in_same_place 343@ {state} True
58@ = 0

:HEIST9_31228
set_char_money 335@(58@,15i) {amount} 0
add_blip_for_char 335@(58@,15i) {var_handle} 350@(58@,15i)
set_blip_entry_exit 350@(58@,15i) {x} 2196.635 {y} 1676.8409 {radius} 10.0
change_blip_display 350@(58@,15i) {display} BlipDisplay.BlipOnly
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_31228
38@ = 15

:HEIST9_31401
if 
  38@ == 15
goto_if_false @HEIST9_35092
58@ = 0

:HEIST9_31426
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_31506
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_31506
remove_blip 350@(58@,15i)
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_31506
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_31426
if and
  TIMERB > 7000
  278@ == 1
goto_if_false @HEIST9_31589
set_lvar_text_label 288@s = 'HE8_TA'
set_lvar_int_to_constant 232@ = 19093
gosub @HEIST9_50648
278@ = 2

:HEIST9_31589
if and
  231@ == 2
  278@ == 2
goto_if_false @HEIST9_31650
set_lvar_text_label 288@s = 'HE8_TB'
set_lvar_int_to_constant 232@ = 19094
gosub @HEIST9_50648
278@ = 3

:HEIST9_31650
if and
  231@ == 2
  278@ == 3
goto_if_false @HEIST9_31711
set_lvar_text_label 288@s = 'HE8_TC'
set_lvar_int_to_constant 232@ = 19095
gosub @HEIST9_50648
278@ = 0

:HEIST9_31711
if and
  is_char_dead 335@
  257@ == 0
goto_if_false @HEIST9_31844
clear_sequence_task 53@
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2157.6289 {y} 1602.604 {z} 998.9766 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_31779
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_31811
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_31811
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_31779
clear_sequence_task 53@
257@ = 1

:HEIST9_31844
if and
  is_char_dead 336@
  257@ == 1
goto_if_false @HEIST9_31972
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2165.4231 {y} 1618.386 {z} 998.9747 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_31907
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_31939
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_31939
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_31907
clear_sequence_task 53@
257@ = 2

:HEIST9_31972
if and
  is_char_dead 337@
  is_char_dead 338@
  is_char_dead 339@
  is_char_dead 340@
  257@ == 2
goto_if_false @HEIST9_32388
53@ = open_sequence_task 
flush_route 
extend_route 2169.0449 {y} 1618.73 {z} 998.9766
extend_route 2171.0969 {y} 1618.6219 {z} 998.9766
extend_route 2172.748 {y} 1621.9351 {z} 998.9772
extend_route 2179.594 {y} 1623.489 {z} 998.9745
extend_route 2184.2 {y} 1623.908 {z} 998.9739
extend_route 2187.7639 {y} 1622.788 {z} 998.9758
extend_route 2190.1299 {y} 1618.6639 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
if 
  not is_char_dead 54@
goto_if_false @HEIST9_32175
perform_sequence_task 54@ {sequence} 53@

:HEIST9_32175
if 
  not is_char_dead 55@
goto_if_false @HEIST9_32199
perform_sequence_task 55@ {sequence} 53@

:HEIST9_32199
clear_sequence_task 53@
53@ = open_sequence_task 
flush_route 
extend_route 2169.019 {y} 1618.764 {z} 998.9766
extend_route 2171.71 {y} 1618.252 {z} 998.9766
extend_route 2174.5391 {y} 1615.005 {z} 998.9766
extend_route 2180.3789 {y} 1614.246 {z} 998.9766
extend_route 2185.4451 {y} 1614.739 {z} 998.9766
extend_route 2190.1299 {y} 1618.6639 {z} 998.9766
task_follow_point_route -1 {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
close_sequence_task 53@
if 
  not is_char_dead 56@
goto_if_false @HEIST9_32352
perform_sequence_task 56@ {sequence} 53@

:HEIST9_32352
if 
  not is_char_dead 57@
goto_if_false @HEIST9_32376
perform_sequence_task 57@ {sequence} 53@

:HEIST9_32376
clear_sequence_task 53@
257@ = 3

:HEIST9_32388
if 
  257@ == 3
goto_if_false @HEIST9_32698
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'

:HEIST9_32429
if or
  not has_special_character_loaded 1
  not has_model_loaded 523
  not has_model_loaded 284
goto_if_false @HEIST9_32465
wait 0
goto @HEIST9_32429

:HEIST9_32465
request_car_recording 494
load_special_character 1 {modelName} 'ZERO'

:HEIST9_32483
if 
  not has_car_recording_been_loaded 494
goto_if_false @HEIST9_32510
wait 0
goto @HEIST9_32483

:HEIST9_32510
clear_area 2220.3401 {y} 1582.068 {z} 998.9764 {radius} 10.0 {clearParticles} True
97@ = create_char PedType.Mission2 {modelId} 290 {x} 2220.3401 {y} 1582.068 {z} 998.9764
set_char_area_visible 97@ {areaId} 1
set_char_heading 97@ {heading} 350.4443
set_char_never_targetted 97@ {state} True
279@ = create_car 523 {x} 2223.699 {y} 1582.78 {z} 998.0
set_vehicle_area_visible 279@ {interiorId} 1
set_car_heading 279@ {heading} 175.8434
lock_car_doors 279@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 279@ {state} True
280@ = create_car 523 {x} 2217.5491 {y} 1583.667 {z} 998.0
set_vehicle_area_visible 280@ {interiorId} 1
set_car_heading 280@ {heading} 175.3717
lock_car_doors 280@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 280@ {state} True
257@ = 4

:HEIST9_32698
if and
  is_char_dead 341@
  is_char_dead 342@
  is_char_dead 343@
  257@ == 4
goto_if_false @HEIST9_32859
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2222.9951 {y} 1618.726 {z} 998.9672 {speed} MoveState.Run {time} -1
task_follow_path_nodes_to_coord -1 {x} 2220.908 {y} 1585.6949 {z} 998.9708 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_32794
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_32826
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_32826
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_32794
clear_sequence_task 53@
257@ = 5

:HEIST9_32859
if 
  257@ >= 4
goto_if_false @HEIST9_33015
if 
  is_char_dead 97@
goto_if_false @HEIST9_32923
gosub @HEIST9_50388
print_now 'HM9_63' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_32923
if 
  is_car_dead 279@
goto_if_false @HEIST9_32969
gosub @HEIST9_50388
print_now 'HM9_60' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_32969
if 
  is_car_dead 280@
goto_if_false @HEIST9_33015
gosub @HEIST9_50388
print_now 'HM9_60' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_33015
58@ = 0

:HEIST9_33022
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_33117
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_33117
print_now 'HM9_44' {time} 5000 {flag} 1

:HEIST9_33117
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_33022
58@ = 0

:HEIST9_33145
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_33246
if and
  locate_char_any_means_3d 54@(58@,4i) {x} 2220.2051 {y} 1585.422 {z} 998.9717 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  78@(58@,4i) == 0
goto_if_false @HEIST9_33246
82@ += 1
78@(58@,4i) = 1

:HEIST9_33246
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_33145
if 
  257@ <> 5
goto_if_false @HEIST9_33349
if 
  locate_char_any_means_3d $scplayer {x} 2220.2051 {y} 1585.422 {z} 998.9717 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HEIST9_33349
print_now 'HM9_1F' {time} 4000 {flag} 1

:HEIST9_33349
if and
  257@ == 5
  locate_char_any_means_3d $scplayer {x} 2220.2051 {y} 1585.422 {z} 998.9717 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @HEIST9_35092
clear_prints 
gosub @HEIST9_46325
if 
  does_blip_exist 90@
goto_if_false @HEIST9_33434
remove_blip 90@

:HEIST9_33434
if 
  not is_char_dead 54@
goto_if_false @HEIST9_33485
clear_char_tasks_immediately 54@
set_char_coordinates_dont_warp_gang 54@ {x} 2224.042 {y} 1589.3669 {z} 998.967
set_char_heading 54@ {heading} 165.2519

:HEIST9_33485
if 
  not is_char_dead 55@
goto_if_false @HEIST9_33536
clear_char_tasks_immediately 55@
set_char_coordinates_dont_warp_gang 55@ {x} 2222.8931 {y} 1589.583 {z} 998.9684
set_char_heading 55@ {heading} 173.9364

:HEIST9_33536
if 
  not is_char_dead 56@
goto_if_false @HEIST9_33587
clear_char_tasks_immediately 56@
set_char_coordinates_dont_warp_gang 56@ {x} 2221.866 {y} 1589.245 {z} 998.9696
set_char_heading 56@ {heading} 177.0563

:HEIST9_33587
if 
  not is_char_dead 57@
goto_if_false @HEIST9_33638
clear_char_tasks_immediately 57@
set_char_coordinates_dont_warp_gang 57@ {x} 2220.7229 {y} 1589.224 {z} 998.971
set_char_heading 57@ {heading} 171.7417

:HEIST9_33638
if 
  not is_char_dead 97@
goto_if_false @HEIST9_33684
set_char_coordinates_dont_warp_gang 97@ {x} 2220.3401 {y} 1582.068 {z} 998.9764
set_char_heading 97@ {heading} 350.4443

:HEIST9_33684
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_33773
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_33743
warp_char_from_car_to_coord $scplayer {x} 2225.541 {y} 1586.834 {z} 998.9651
goto @HEIST9_33763

:HEIST9_33743
set_char_coordinates_dont_warp_gang $scplayer {x} 2225.541 {y} 1586.834 {z} 998.9651

:HEIST9_33763
set_char_heading $scplayer {heading} 124.4066

:HEIST9_33773
if 
  not is_car_dead 279@
goto_if_false @HEIST9_33796
freeze_car_position 279@ {state} False

:HEIST9_33796
if 
  not is_car_dead 280@
goto_if_false @HEIST9_33819
freeze_car_position 280@ {state} False

:HEIST9_33819
clear_onscreen_timer $h9_safe_timer
gosub @HEIST9_46289
set_fixed_camera_position 2216.7209 {y} 1579.8101 {z} 1000.833 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.3821 {y} 1580.538 {z} 1000.654 {switchStyle} SwitchType.JumpCut
gosub @HEIST9_46358
if 
  not is_char_dead 97@
goto_if_false @HEIST9_33946
clear_char_tasks 97@
task_play_anim 97@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_33946
print_now 'HE8_UA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19104

:HEIST9_33973
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_33999
wait 0
goto @HEIST9_33973

:HEIST9_33999
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_34010
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_34060
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34053
goto @HEIST9_34841

:HEIST9_34053
goto @HEIST9_34010

:HEIST9_34060
print_now 'HE8_UB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19105

:HEIST9_34087
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_34113
wait 0
goto @HEIST9_34087

:HEIST9_34113
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_34124
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_34174
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34167
goto @HEIST9_34841

:HEIST9_34167
goto @HEIST9_34124

:HEIST9_34174
delete_char 97@
delete_char 56@
delete_char 57@
set_fixed_camera_position 2216.9141 {y} 1571.6219 {z} 999.7229 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.27 {y} 1572.557 {z} 999.7267 {switchStyle} SwitchType.JumpCut
281@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.8 {y} 1581.163 {z} 998.9764
set_char_heading 281@ {heading} 196.0524
set_char_area_visible 281@ {areaId} 1
282@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.019 {y} 1581.179 {z} 998.9772
set_char_heading 282@ {heading} 74.4668
set_char_area_visible 282@ {areaId} 1
if and
  not is_car_dead 51@
  not is_char_dead 54@
goto_if_false @HEIST9_34356
task_enter_car_as_driver 54@ {vehicle} 51@ {time} 8000

:HEIST9_34356
if and
  not is_car_dead 51@
  not is_char_dead 55@
goto_if_false @HEIST9_34390
task_enter_car_as_passenger 55@ {vehicle} 51@ {time} 8000 {seat} SeatId.BikeRear

:HEIST9_34390
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_34422
task_enter_car_as_driver 281@ {vehicle} 279@ {time} 8000

:HEIST9_34422
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_34454
task_enter_car_as_driver 282@ {vehicle} 280@ {time} 8000

:HEIST9_34454
TIMERB = 0

:HEIST9_34461
if 
  8000 > TIMERB
goto_if_false @HEIST9_34515
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34508
goto @HEIST9_34841

:HEIST9_34508
goto @HEIST9_34461

:HEIST9_34515
set_fixed_camera_position 2223.8501 {y} 1572.014 {z} 1001.623 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.3711 {y} 1572.844 {z} 1001.336 {switchStyle} SwitchType.JumpCut
if and
  has_car_recording_been_loaded 494
  not is_car_dead 51@
goto_if_false @HEIST9_34595
start_playback_recorded_car 51@ {path} 494

:HEIST9_34595
TIMERB = 0

:HEIST9_34602
if 
  500 > TIMERB
goto_if_false @HEIST9_34656
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34649
goto @HEIST9_34841

:HEIST9_34649
goto @HEIST9_34602

:HEIST9_34656
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_34718
switch_car_siren 279@ {state} True
task_car_drive_to_coord 281@ {vehicle} 279@ {x} 2223.4551 {y} 1564.892 {z} 1000.873 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_34718
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_34780
switch_car_siren 280@ {state} True
task_car_drive_to_coord 282@ {vehicle} 280@ {x} 2217.3191 {y} 1566.6 {z} 1000.3 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_34780
TIMERB = 0

:HEIST9_34787
if 
  2000 > TIMERB
goto_if_false @HEIST9_34841
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_34834
goto @HEIST9_34841

:HEIST9_34834
goto @HEIST9_34787

:HEIST9_34841
58@ = 0

:HEIST9_34848
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_34886
remove_blip 91@(58@,4i)
delete_char 54@(58@,4i)

:HEIST9_34886
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_34848
gosub @HEIST9_46306
if 
  not is_char_dead 97@
goto_if_false @HEIST9_34935
delete_char 97@

:HEIST9_34935
if 
  not is_char_dead 281@
goto_if_false @HEIST9_34956
delete_char 281@

:HEIST9_34956
if 
  not is_char_dead 282@
goto_if_false @HEIST9_34977
delete_char 282@

:HEIST9_34977
if 
  not is_car_dead 279@
goto_if_false @HEIST9_34998
delete_car 279@

:HEIST9_34998
if 
  not is_car_dead 280@
goto_if_false @HEIST9_35019
delete_car 280@

:HEIST9_35019
if 
  not is_car_dead 51@
goto_if_false @HEIST9_35040
delete_car 51@

:HEIST9_35040
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 428
unload_special_character 3
unload_special_character 2
unload_special_character 1
174@ = 1
38@ = 16
TIMERA = 0

:HEIST9_35092
if 
  38@ == 16
goto_if_false @HEIST9_35852
58@ = 0

:HEIST9_35117
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 9
goto_if_false @HEIST9_35117
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 124
request_model 126
request_model 127

:HEIST9_35163
if or
  not has_model_loaded 126
  not has_model_loaded 127
goto_if_false @HEIST9_35193
wait 0
goto @HEIST9_35163

:HEIST9_35193
335@ = create_char PedType.Mission1 {modelId} 127 {x} 2221.3401 {y} 1616.9709 {z} 998.9719
set_char_area_visible 335@ {areaId} 1
set_char_heading 335@ {heading} 173.3951
task_stay_in_same_place 335@ {state} True
perform_sequence_task 335@ {sequence} 212@
336@ = create_char PedType.Mission1 {modelId} 126 {x} 2204.9109 {y} 1615.991 {z} 998.982
set_char_area_visible 336@ {areaId} 1
set_char_heading 336@ {heading} 266.9222
task_stay_in_same_place 336@ {state} True
337@ = create_char PedType.Mission1 {modelId} 127 {x} 2196.6641 {y} 1618.759 {z} 998.9766
set_char_area_visible 337@ {areaId} 1
set_char_heading 337@ {heading} 266.9185
338@ = create_char PedType.Mission1 {modelId} 126 {x} 2172.9961 {y} 1616.329 {z} 998.9766
set_char_area_visible 338@ {areaId} 1
set_char_heading 338@ {heading} 263.6073
339@ = create_char PedType.Mission1 {modelId} 127 {x} 2173.0029 {y} 1622.626 {z} 998.9761
set_char_area_visible 339@ {areaId} 1
set_char_heading 339@ {heading} 261.2549
340@ = create_char PedType.Mission1 {modelId} 126 {x} 2179.7271 {y} 1611.811 {z} 998.9766
set_char_area_visible 340@ {areaId} 1
set_char_heading 340@ {heading} 263.1769
task_toggle_duck 340@ {state} True
task_stay_in_same_place 340@ {state} True
341@ = create_char PedType.Mission1 {modelId} 126 {x} 2181.543 {y} 1622.657 {z} 998.976
set_char_area_visible 341@ {areaId} 1
set_char_heading 341@ {heading} 263.6053
task_toggle_duck 341@ {state} True
task_stay_in_same_place 341@ {state} True
342@ = create_char PedType.Mission1 {modelId} 126 {x} 2151.5779 {y} 1602.322 {z} 1000.971
set_char_area_visible 342@ {areaId} 1
set_char_heading 342@ {heading} 264.2166
task_stay_in_same_place 342@ {state} True
58@ = 0

:HEIST9_35585
350@(58@,15i) = 1
set_char_money 335@(58@,15i) {amount} 0
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200
if or
  58@ == 3
  58@ == 4
  58@ == 7
goto_if_false @HEIST9_35695
set_char_weapon_skill 335@(58@,15i) {skill} WeaponSkill.Pro
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Pistol {ammo} 9999
goto @HEIST9_35720

:HEIST9_35695
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 9999
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5

:HEIST9_35720
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 30
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_35585
print_now 'HM9_10' {time} 7000 {flag} 1
84@ = add_blip_for_coord 2156.188 {y} 1597.98 {z} 998.9766
set_blip_entry_exit 84@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
38@ = 17
255@ = 1
TIMERA = 0

:HEIST9_35852
if 
  38@ == 17
goto_if_false @HEIST9_37681
58@ = 0

:HEIST9_35877
if and
  is_char_dead 335@(58@,15i)
  350@(58@,15i) <> 0
goto_if_false @HEIST9_35928
350@(58@,15i) = 0
mark_char_as_no_longer_needed 335@(58@,15i)

:HEIST9_35928
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_35877
if and
  not is_char_dead 336@
  locate_char_any_means_3d $scplayer {x} 2208.021 {y} 1619.125 {z} 998.9827 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36073
if 
  351@ == 1
goto_if_false @HEIST9_36073
clear_char_tasks_immediately 336@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_weapon_roll -1 {direction} False
task_toggle_duck -1 {state} True
close_sequence_task 53@
perform_sequence_task 336@ {sequence} 53@
clear_sequence_task 53@
351@ = 2

:HEIST9_36073
if and
  not is_char_dead 337@
  locate_char_any_means_3d $scplayer {x} 2224.02 {y} 1618.927 {z} 998.9655 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36186
if 
  352@ == 1
goto_if_false @HEIST9_36186
clear_char_tasks_immediately 337@
flush_route 
extend_route 2224.02 {y} 1618.927 {z} 998.9655
task_follow_point_route 337@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
352@ = 2

:HEIST9_36186
if and
  not is_char_dead 340@
  locate_char_any_means_3d $scplayer {x} 2183.907 {y} 1613.572 {z} 998.9766 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36329
if 
  355@ == 1
goto_if_false @HEIST9_36329
task_toggle_duck 340@ {state} False
355@ = 2
if 
  not is_char_dead 338@
goto_if_false @HEIST9_36329
clear_char_tasks_immediately 338@
flush_route 
extend_route 2183.907 {y} 1613.572 {z} 998.9766
task_toggle_duck 338@ {state} True
task_follow_point_route 338@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_36329
if and
  not is_char_dead 341@
  locate_char_any_means_3d $scplayer {x} 2185.5791 {y} 1624.431 {z} 998.973 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36511
if 
  356@ == 1
goto_if_false @HEIST9_36511
clear_char_tasks_immediately 341@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_weapon_roll -1 {direction} False
task_toggle_duck -1 {state} True
close_sequence_task 53@
perform_sequence_task 341@ {sequence} 53@
clear_sequence_task 53@
356@ = 2
if 
  not is_char_dead 339@
goto_if_false @HEIST9_36511
clear_char_tasks_immediately 339@
flush_route 
extend_route 2185.5791 {y} 1624.431 {z} 998.973
task_toggle_duck 339@ {state} True
task_follow_point_route 339@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_36511
if and
  not is_char_dead 342@
  locate_char_any_means_3d $scplayer {x} 2160.2791 {y} 1618.668 {z} 998.9676 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @HEIST9_36641
if 
  357@ == 1
goto_if_false @HEIST9_36641
clear_char_tasks_immediately 342@
flush_route 
extend_route 2157.5801 {y} 1601.944 {z} 998.9766
extend_route 2157.832 {y} 1616.024 {z} 998.9669
task_follow_point_route 342@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
357@ = 2

:HEIST9_36641
if and
  TIMERA > 7000
  255@ == 1
goto_if_false @HEIST9_36703
set_lvar_text_label 288@s = 'HE8_VA'
set_lvar_int_to_constant 232@ = 19112
gosub @HEIST9_50648
255@ = 2

:HEIST9_36703
if and
  231@ == 2
  255@ == 2
goto_if_false @HEIST9_36764
set_lvar_text_label 288@s = 'HE8_VB'
set_lvar_int_to_constant 232@ = 19113
gosub @HEIST9_50648
255@ = 3

:HEIST9_36764
if and
  231@ == 2
  255@ == 3
goto_if_false @HEIST9_36825
set_lvar_text_label 288@s = 'HE8_VC'
set_lvar_int_to_constant 232@ = 19114
gosub @HEIST9_50648
255@ = 4

:HEIST9_36825
if and
  231@ == 2
  255@ == 4
goto_if_false @HEIST9_36886
set_lvar_text_label 288@s = 'HE8_VD'
set_lvar_int_to_constant 232@ = 19115
gosub @HEIST9_50648
255@ = 101

:HEIST9_36886
if and
  255@ == 101
  254@ == 0
goto_if_false @HEIST9_36977
set_darkness_effect False {pitchBlack} 0
switch_entry_exit 'JUMP1' {state} True
switch_entry_exit 'JUMP2' {state} False
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_36966
player_take_off_goggles $player1 {animate} True

:HEIST9_36966
set_night_vision False
254@ = 1

:HEIST9_36977
if and
  254@ <> 0
  254@ <> 7
goto_if_false @HEIST9_37352
if and
  231@ == 2
  254@ == 1
goto_if_false @HEIST9_37063
set_lvar_text_label 288@s = 'HE8_WA'
set_lvar_int_to_constant 232@ = 19116
gosub @HEIST9_50648
254@ = 2

:HEIST9_37063
if and
  231@ == 2
  254@ == 2
goto_if_false @HEIST9_37124
set_lvar_text_label 288@s = 'HE8_WB'
set_lvar_int_to_constant 232@ = 19117
gosub @HEIST9_50648
254@ = 3

:HEIST9_37124
if and
  231@ == 2
  254@ == 3
goto_if_false @HEIST9_37209
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37173
start_char_facial_talk $scplayer {duration} 10000

:HEIST9_37173
set_lvar_text_label 288@s = 'HE8_WC'
set_lvar_int_to_constant 232@ = 19118
gosub @HEIST9_50648
254@ = 4

:HEIST9_37209
if and
  231@ == 2
  254@ == 4
goto_if_false @HEIST9_37291
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37255
stop_char_facial_talk $scplayer

:HEIST9_37255
set_lvar_text_label 288@s = 'HE8_WE'
set_lvar_int_to_constant 232@ = 19120
gosub @HEIST9_50648
254@ = 5

:HEIST9_37291
if and
  231@ == 2
  254@ == 5
goto_if_false @HEIST9_37352
set_lvar_text_label 288@s = 'HE8_WF'
set_lvar_int_to_constant 232@ = 19121
gosub @HEIST9_50648
254@ = 7

:HEIST9_37352
if and
  locate_char_any_means_3d $scplayer {x} 2156.188 {y} 1597.98 {z} 998.9766 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
  153@ == 0
goto_if_false @HEIST9_37681
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37430
set_player_control $player1 {state} False

:HEIST9_37430
gosub @HEIST9_46325
if 
  does_blip_exist 84@
goto_if_false @HEIST9_37458
remove_blip 84@

:HEIST9_37458
load_scene 2266.511 {y} 1647.517 {z} 1083.241
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37525
set_char_coordinates_dont_warp_gang $scplayer {x} 2266.511 {y} 1647.517 {z} 1083.241
set_char_heading $scplayer {heading} 268.927
set_camera_behind_player 
restore_camera_jumpcut 

:HEIST9_37525
376@ = add_blip_for_coord 2266.2251 {y} 1619.766 {z} 1089.4449
set_blip_entry_exit 376@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
gosub @HEIST9_44781
clear_mission_audio MissionAudioSlot.Slot3
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6401

:HEIST9_37583
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_37609
wait 0
goto @HEIST9_37583

:HEIST9_37609
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @HEIST9_37628
play_mission_audio MissionAudioSlot.Slot3

:HEIST9_37628
gosub @HEIST9_46358
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_37658
set_player_control $player1 {state} True

:HEIST9_37658
print_now 'HM9_45' {time} 4000 {flag} 1
153@ = 1

:HEIST9_37681
if or
  38@ == 17
  38@ == 18
goto_if_false @HEIST9_40679
if and
  locate_char_any_means_3d $scplayer {x} 2266.5979 {y} 1647.3781 {z} 1083.241 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
  294@ == 0
goto_if_false @HEIST9_38136
58@ = 0

:HEIST9_37768
delete_char 335@(58@,15i)
58@ += 1
  58@ >= 8
goto_if_false @HEIST9_37768
request_model 371

:HEIST9_37803
if 
  not has_model_loaded 371
goto_if_false @HEIST9_37830
wait 0
goto @HEIST9_37803

:HEIST9_37830
298@ = create_pickup 371 {pickupType} PickupType.Once {x} 2267.989 {y} 1699.668 {z} 101.4
$para_freefall_Vz = -6.0
$para_freefall_Vy = 35.0
292@ = create_char PedType.Mission1 {modelId} 126 {x} 2269.7319 {y} 1620.345 {z} 1085.25
set_char_area_visible 292@ {areaId} 1
set_char_heading 292@ {heading} 0.7663
give_weapon_to_char 292@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 292@ {weaponType} WeaponType.Mp5
set_char_accuracy 292@ {accuracy} 80
set_char_decision_maker 292@ {handleOrTemplate} 89@
flush_route 
extend_route 2269.5769 {y} 1624.246 {z} 1083.2581
extend_route 2269.9861 {y} 1628.803 {z} 1083.245
extend_route 2268.948 {y} 1641.64 {z} 1083.234
task_follow_point_route 292@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 
set_char_money 292@ {amount} 0
293@ = create_char PedType.Mission1 {modelId} 127 {x} 2265.832 {y} 1624.938 {z} 1087.448
set_char_area_visible 293@ {areaId} 1
set_char_heading 293@ {heading} 178.1353
give_weapon_to_char 293@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 293@ {weaponType} WeaponType.Mp5
set_char_accuracy 293@ {accuracy} 80
set_char_decision_maker 293@ {handleOrTemplate} 89@
task_toggle_duck 293@ {state} True
task_stay_in_same_place 293@ {state} True
set_char_money 293@ {amount} 0
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
294@ = 1

:HEIST9_38136
if 
  100@ == 0
goto_if_false @HEIST9_39553
if and
  locate_char_any_means_3d $scplayer {x} 2269.0681 {y} 1624.6479 {z} 93.922 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
  100@ == 0
goto_if_false @HEIST9_39553
set_radar_zoom 0
set_wanted_multiplier 1.0
do_fade 0 {direction} Fade.Out
set_time_of_day 0 {minutes} 0
gosub @HEIST9_46289
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_38285
set_char_coordinates_dont_warp_gang $scplayer {x} 2268.666 {y} 1620.91 {z} 93.922
set_char_heading $scplayer {heading} 270.0

:HEIST9_38285
load_scene 2269.811 {y} 1625.442 {z} 93.922
load_scene_in_direction 2270.095 {y} 1692.939 {z} 101.2986 {heading} 129.3904
request_model 497

:HEIST9_38329
if 
  not has_model_loaded 497
goto_if_false @HEIST9_38356
wait 0
goto @HEIST9_38329

:HEIST9_38356
198@ = create_car 497 {x} 2295.6221 {y} 1839.804 {z} 38.2713
set_car_heading 198@ {heading} 191.5123
request_model 285
request_car_recording 484

:HEIST9_38399
if or
  not has_model_loaded 285
  not has_car_recording_been_loaded 484
goto_if_false @HEIST9_38431
wait 0
goto @HEIST9_38399

:HEIST9_38431
377@ = create_car 497 {x} 2253.0681 {y} 1626.562 {z} 87.9584
378@ = create_char_inside_car 377@ {pedType} PedType.Mission4 {modelId} 285
set_char_can_be_shot_in_vehicle 378@ {state} False
lock_car_doors 377@ {lockStatus} CarLock.Locked
set_char_cant_be_dragged_out 378@ {state} True
set_heli_blades_full_speed 377@
set_car_forward_speed 377@ {forwardSpeed} 10.0
380@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 380@ {handleOrTemplate} 245@
381@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 381@ {handleOrTemplate} 245@
382@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 382@ {handleOrTemplate} 245@
383@ = create_char PedType.Mission1 {modelId} 285 {x} 2253.0681 {y} 1626.562 {z} 87.9584
set_char_decision_maker 383@ {handleOrTemplate} 245@
attach_char_to_car 380@ {vehicle} 377@ {xOffset} 1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
attach_char_to_car 381@ {vehicle} 377@ {xOffset} 1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Right {headingRange} 190.0 {weaponType} WeaponType.Mp5
attach_char_to_car 382@ {vehicle} 377@ {xOffset} -1.4 {yOffset} 1.3 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
attach_char_to_car 383@ {vehicle} 377@ {xOffset} -1.4 {yOffset} -0.8 {zOffset} -0.1 {heading} Facing.Left {headingRange} 190.0 {weaponType} WeaponType.Mp5
58@ = 0

:HEIST9_38770
set_char_money 380@(58@,4i) {amount} 0
set_char_health 380@(58@,4i) {health} 150
set_char_shoot_rate 380@(58@,4i) {rate} 40
set_char_accuracy 380@(58@,4i) {accuracy} 40
task_stay_in_same_place 380@(58@,4i) {state} True
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_38770
379@ = create_searchlight_on_vehicle 377@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.5 {xPoint} 2269.4561 {yPoint} 1625.442 {zPoint} 93.922 {pointRadius} 5.0 {radius} 0.4
point_searchlight_at_char 379@ {handle} $scplayer {speed} 10.0
if 
  not is_car_dead 377@
goto_if_false @HEIST9_38953
if 
  has_car_recording_been_loaded 484
goto_if_false @HEIST9_38953
start_playback_recorded_car 377@ {path} 484
pause_playback_recorded_car 377@

:HEIST9_38953
335@ = create_char PedType.Mission1 {modelId} 285 {x} 2293.6799 {y} 1837.016 {z} 38.2713
set_char_heading 335@ {heading} 164.9221
task_stand_still 335@ {time} 1
336@ = create_char PedType.Mission1 {modelId} 285 {x} 2298.4919 {y} 1836.946 {z} 38.2713
set_char_heading 336@ {heading} 170.0207
task_stand_still 336@ {time} 1
task_toggle_duck 336@ {state} True
58@ = 0

:HEIST9_39051
350@(58@,15i) = 1
set_char_health 335@(58@,15i) {health} 200
set_char_max_health 335@(58@,15i) {maxHealth} 200
give_weapon_to_char 335@(58@,15i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 335@(58@,15i) {weaponType} WeaponType.Mp5
set_char_shoot_rate 335@(58@,15i) {rate} 30
set_char_accuracy 335@(58@,15i) {accuracy} 20
set_char_decision_maker 335@(58@,15i) {handleOrTemplate} 245@
58@ += 1
  58@ >= 2
goto_if_false @HEIST9_39051
switch_entry_exit 'JUMP1' {state} False
switch_entry_exit 'JUMP2' {state} False
clear_area 2270.021 {y} 1623.486 {z} 93.922 {radius} 20.0 {clearParticles} True
if 
  does_blip_exist 84@
goto_if_false @HEIST9_39237
remove_blip 84@

:HEIST9_39237
if 
  does_blip_exist 376@
goto_if_false @HEIST9_39258
remove_blip 376@

:HEIST9_39258
384@ = add_blip_for_pickup 298@
set_car_density_multiplier 1.0
set_fixed_camera_position 2305.3379 {y} 1721.1 {z} 126.2864 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2304.813 {y} 1720.407 {z} 125.7915 {switchStyle} SwitchType.JumpCut
gosub @HEIST9_46358
set_interpolation_parameters 0.0 {time} 8000
set_fixed_camera_position 2307.4089 {y} 1599.532 {z} 118.4341 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2306.749 {y} 1600.1639 {z} 118.0293 {switchStyle} SwitchType.Interpolation
print_now 'HM9_25' {time} 8000 {flag} 1
wait 3000
if 
  not is_car_dead 377@
goto_if_false @HEIST9_39450
if 
  has_car_recording_been_loaded 484
goto_if_false @HEIST9_39450
unpause_playback_recorded_car 377@

:HEIST9_39450
wait 5000
gosub @HEIST9_46306
385@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2265.825 {y} 1617.069 {z} 94.5
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_39539
clear_char_tasks $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 2269.1389 {y} 1622.576 {z} 93.922
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 

:HEIST9_39539
100@ = 1
TIMERB = 0

:HEIST9_39553
if 
  is_car_dead 377@
goto_if_false @HEIST9_39590
if 
  does_searchlight_exist 379@
goto_if_false @HEIST9_39590
delete_searchlight 379@

:HEIST9_39590
if and
  100@ == 1
  TIMERB > 10800
  not is_car_dead 377@
goto_if_false @HEIST9_40122
if 
  is_playback_going_on_for_car 377@
goto_if_false @HEIST9_39642
pause_playback_recorded_car 377@

:HEIST9_39642
58@ = 0

:HEIST9_39649
if 
  not is_char_dead 380@(58@,4i)
goto_if_false @HEIST9_39778
$x, $y, $z = get_char_coordinates 380@(58@,4i)
delete_char 380@(58@,4i)
create_swat_rope PedType.Mission1 {modelId} 285 {x} $x {y} $y {z} $z {var_handle} 380@(58@,4i)
set_char_shoot_rate 380@(58@,4i) {rate} 70
set_char_decision_maker 380@(58@,4i) {handleOrTemplate} 245@
give_weapon_to_char 380@(58@,4i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 380@(58@,4i) {weaponType} WeaponType.Mp5
task_stay_in_same_place 380@(58@,4i) {state} True

:HEIST9_39778
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_39649
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_toggle_duck -1 {state} False
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 380@
goto_if_false @HEIST9_39876
perform_sequence_task 380@ {sequence} 53@

:HEIST9_39876
clear_sequence_task 53@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 381@
goto_if_false @HEIST9_39952
perform_sequence_task 381@ {sequence} 53@

:HEIST9_39952
clear_sequence_task 53@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_toggle_duck -1 {state} False
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 382@
goto_if_false @HEIST9_40034
perform_sequence_task 382@ {sequence} 53@

:HEIST9_40034
clear_sequence_task 53@
53@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_achieve_heading -1 {heading} 170.7766
task_pause -1 {time} 3000
task_shoot_at_char -1 {target} $scplayer {time} -1
close_sequence_task 53@
if 
  not is_char_dead 383@
goto_if_false @HEIST9_40110
perform_sequence_task 383@ {sequence} 53@

:HEIST9_40110
clear_sequence_task 53@
100@ = 2

:HEIST9_40122
if and
  100@ == 2
  TIMERB > 18000
  not is_car_dead 377@
goto_if_false @HEIST9_40181
if 
  is_playback_going_on_for_car 377@
goto_if_false @HEIST9_40174
unpause_playback_recorded_car 377@

:HEIST9_40174
100@ = 3

:HEIST9_40181
if 
  294@ == 1
goto_if_false @HEIST9_40540
if 
  has_pickup_been_collected 298@
goto_if_false @HEIST9_40540
if 
  does_blip_exist 384@
goto_if_false @HEIST9_40236
remove_blip 384@

:HEIST9_40236
if 
  not is_car_dead 198@
goto_if_false @HEIST9_40267
247@ = add_blip_for_car 198@
set_blip_as_friendly 247@ {state} True

:HEIST9_40267
38@ = 18
99@ = 2
if 
  not is_car_dead 198@
goto_if_false @HEIST9_40471
gosub @HEIST9_46289
set_fixed_camera_position 2267.8799 {y} 1692.8199 {z} 111.0014 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2267.876 {y} 1693.396 {z} 110.1835 {switchStyle} SwitchType.JumpCut
wait 100
set_interpolation_parameters 0.0 {time} 6000
set_fixed_camera_position 2293.709 {y} 1832.2791 {z} 41.1442 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2294.0569 {y} 1833.15 {z} 40.7979 {switchStyle} SwitchType.Interpolation
print_now 'HM9_24' {time} 6000 {flag} 1
wait 6000
gosub @HEIST9_46306
print_now 'HM9_1H' {time} 6000 {flag} 1
goto @HEIST9_40507

:HEIST9_40471
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_X' {time} 6000 {flag} 1

:HEIST9_40507
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_40533
set_char_heading $scplayer {heading} 353.9519

:HEIST9_40533
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute

:HEIST9_40540
if and
  is_car_dead 198@
  does_blip_exist 247@
goto_if_false @HEIST9_40618
if 
  not does_blip_exist 102@
goto_if_false @HEIST9_40613
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_1J' {time} 6000 {flag} 1

:HEIST9_40613
remove_blip 247@

:HEIST9_40618
if 
  not is_car_dead 377@
goto_if_false @HEIST9_40679
if and
  not is_playback_going_on_for_car 377@
  40@ == 0
goto_if_false @HEIST9_40679
police_heli_chase_entity 377@ {char} $scplayer {vehicle} -1 {radius} 20.0
40@ = 1

:HEIST9_40679
if 
  38@ == 18
goto_if_false @HEIST9_43350
if and
  is_car_dead 198@
  does_blip_exist 247@
goto_if_false @HEIST9_40723
remove_blip 247@

:HEIST9_40723
if and
  not is_car_dead 198@
  not is_char_dead $scplayer
goto_if_false @HEIST9_40825
if and
  does_blip_exist 247@
  is_char_in_car $scplayer {vehicle} 198@
goto_if_false @HEIST9_40825
if 
  not does_blip_exist 102@
goto_if_false @HEIST9_40820
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_1J' {time} 6000 {flag} 1

:HEIST9_40820
remove_blip 247@

:HEIST9_40825
if and
  not is_char_dead $scplayer
  does_blip_exist 384@
goto_if_false @HEIST9_40909
$x, $y, $z = get_char_coordinates $scplayer
if 
  90.0 > $z
goto_if_false @HEIST9_40909
if and
  does_blip_exist 384@
  $h9_can_see == 0
goto_if_false @HEIST9_40909
remove_blip 384@

:HEIST9_40909
if and
  not is_char_dead $scplayer
  does_blip_exist 247@
goto_if_false @HEIST9_41059
if 
  not is_car_dead 198@
goto_if_false @HEIST9_41059
$x, $y, $z = get_char_coordinates $scplayer
if 
  36.0 > $z
goto_if_false @HEIST9_41059
if and
  does_blip_exist 247@
  $h9_can_see == 0
  307@ == 0
goto_if_false @HEIST9_41059
remove_blip 247@
102@ = add_blip_for_coord 365.5647 {y} 2536.76 {z} 15.6637
print_now 'HM9_1J' {time} 6000 {flag} 1
307@ = 1

:HEIST9_41059
if 
  locate_char_any_means_3d $scplayer {x} 365.5647 {y} 2536.76 {z} 15.6637 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @HEIST9_43350
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_41130
set_player_control $player1 {state} False

:HEIST9_41130
43@ = 1
remove_blip 102@
gosub @HEIST9_46325
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_41189
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_41189
$car = store_car_char_is_in $scplayer

:HEIST9_41189
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_41278
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_41248
warp_char_from_car_to_coord $scplayer {x} 345.389 {y} 2539.21 {z} 15.7622
goto @HEIST9_41268

:HEIST9_41248
set_char_coordinates_dont_warp_gang $scplayer {x} 345.389 {y} 2539.21 {z} 15.7622

:HEIST9_41268
set_char_heading $scplayer {heading} 300.8022

:HEIST9_41278
if 
  not is_car_dead 377@
goto_if_false @HEIST9_41299
delete_car 377@

:HEIST9_41299
if 
  not is_car_dead 198@
goto_if_false @HEIST9_41320
delete_car 198@

:HEIST9_41320
if 
  not is_car_dead $car
goto_if_false @HEIST9_41341
delete_car $car

:HEIST9_41341
request_model 428
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'
load_special_character 2 {modelName} 'WUZIMU'

:HEIST9_41382
if or
  not has_model_loaded 428
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_model_loaded 523
  not has_model_loaded 284
goto_if_false @HEIST9_41427
wait 0
goto @HEIST9_41382

:HEIST9_41427
61@ = create_object #CJ_MONEY_BAG {x} 344.9779 {y} 2545.2129 {z} 15.7642
62@ = create_object #CJ_MONEY_BAG {x} 347.936 {y} 2543.9719 {z} 15.7498
63@ = create_object #CJ_MONEY_BAG {x} 348.9375 {y} 2545.8411 {z} 15.7383
64@ = create_object #CJ_MONEY_BAG {x} 343.8135 {y} 2545.7219 {z} 15.7699
clear_area 345.2756 {y} 2546.824 {z} 15.7628 {radius} 50.0 {clearParticles} True
51@ = create_car 428 {x} 345.2756 {y} 2546.824 {z} 15.7628
set_car_heading 51@ {heading} 58.9413
lock_car_doors 51@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 51@ {state} True
54@ = create_char PedType.Mission2 {modelId} 291 {x} 343.7633 {y} 2545.022 {z} 15.7702
set_char_heading 54@ {heading} 202.9705
set_anim_group_for_char 54@ {animGroup} "BLINDMAN"
task_stay_in_same_place 54@ {state} True
set_char_decision_maker 54@ {handleOrTemplate} 120@
set_char_never_targetted 54@ {state} True
set_char_only_damaged_by_player 54@ {state} True
clear_area 344.5244 {y} 2540.563 {z} 15.7743 {radius} 200.0 {clearParticles} True
clear_area 346.5559 {y} 2548.0271 {z} 15.7244 {radius} 2.0 {clearParticles} True
97@ = create_char PedType.Mission2 {modelId} 290 {x} 346.5559 {y} 2548.0271 {z} 15.7244
set_char_heading 97@ {heading} 242.1164
set_char_never_targetted 97@ {state} True
task_stay_in_same_place 97@ {state} True
set_char_decision_maker 97@ {handleOrTemplate} 120@
set_char_never_targetted 97@ {state} True
set_char_only_damaged_by_player 97@ {state} True
279@ = create_car 523 {x} 360.2574 {y} 2547.46 {z} 15.5491
set_car_heading 279@ {heading} 107.4242
280@ = create_car 523 {x} 362.587 {y} 2542.7151 {z} 15.618
set_car_heading 280@ {heading} 95.499
281@ = create_char_inside_car 279@ {pedType} PedType.Mission2 {modelId} 284
282@ = create_char_inside_car 280@ {pedType} PedType.Mission2 {modelId} 284
clear_wanted_level $player1
load_scene_in_direction 345.6064 {y} 2536.51 {z} 15.7612 {heading} 4.4301
if 
  not is_char_dead 54@
goto_if_false @HEIST9_41953
set_char_coordinates_dont_warp_gang 54@ {x} 342.5135 {y} 2545.147 {z} 15.7763
set_char_heading 54@ {heading} 215.4312

:HEIST9_41953
gosub @HEIST9_46289
request_animation "FIGHT_B"

:HEIST9_41971
if 
  not has_animation_loaded "FIGHT_B"
goto_if_false @HEIST9_42004
wait 0
goto @HEIST9_41971

:HEIST9_42004
if and
  not is_char_dead $scplayer
  not is_char_dead 97@
  not is_char_dead 54@
goto_if_false @HEIST9_42154
clear_char_tasks_immediately $scplayer
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 347.2988 {y} 2541.4829 {z} 15.7529 {speed} MoveState.Walk {vehicle} -1
task_turn_char_to_face_char -1 {target} 97@
task_pause -1 {time} 4500
task_turn_char_to_face_char -1 {target} 97@
task_play_anim -1 {animationName} "FIGHTB_M" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_pause -1 {time} 3000
task_turn_char_to_face_char -1 {target} 54@
close_sequence_task 53@
perform_sequence_task $scplayer {sequence} 53@
clear_sequence_task 53@

:HEIST9_42154
set_fixed_camera_position 346.245 {y} 2537.9399 {z} 16.7555 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 346.7908 {y} 2538.7781 {z} 16.7555 {switchStyle} SwitchType.JumpCut
if and
  not is_car_dead 279@
  not is_car_dead 280@
  not is_char_dead 281@
  not is_char_dead 282@
goto_if_false @HEIST9_42397
53@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 279@ {x} 351.2343 {y} 2544.125 {z} 15.7337 {speed} 5.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_pause -1 {time} 2000
task_leave_car -1 {vehicle} 279@
switch_car_siren 279@ {state} False
close_sequence_task 53@
perform_sequence_task 281@ {sequence} 53@
clear_sequence_task 53@
53@ = open_sequence_task 
task_car_drive_to_coord -1 {vehicle} 280@ {x} 351.4331 {y} 2542.7529 {z} 15.7337 {speed} 5.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
task_pause -1 {time} 2000
task_leave_car -1 {vehicle} 280@
switch_car_siren 280@ {state} False
close_sequence_task 53@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
perform_sequence_task 282@ {sequence} 53@
clear_sequence_task 53@

:HEIST9_42397
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_42425
switch_car_siren 279@ {state} True

:HEIST9_42425
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_42453
switch_car_siren 280@ {state} True

:HEIST9_42453
gosub @HEIST9_46358
print_now 'HE8_ZA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19128

:HEIST9_42487
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42513
wait 0
goto @HEIST9_42487

:HEIST9_42513
play_mission_audio MissionAudioSlot.Slot1
if 
  not is_char_dead 97@
goto_if_false @HEIST9_42597
flush_route 
extend_route 350.6611 {y} 2546.7351 {z} 15.6957
extend_route 348.9894 {y} 2543.4761 {z} 15.7446
extend_route 347.4687 {y} 2541.793 {z} 15.7521
task_follow_point_route 97@ {speed} MoveState.Run {mode} RouteMode.Once
flush_route 

:HEIST9_42597
TIMERB = 0

:HEIST9_42604
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_42630
wait 0
goto @HEIST9_42604

:HEIST9_42630
print_now 'HE8_ZB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19129

:HEIST9_42657
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42683
wait 0
goto @HEIST9_42657

:HEIST9_42683
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_42694
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_42720
wait 0
goto @HEIST9_42694

:HEIST9_42720
if 
  not is_char_dead 97@
goto_if_false @HEIST9_42775
task_play_anim 97@ {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:HEIST9_42775
print_now 'ZER1_DB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44620

:HEIST9_42804
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42830
wait 0
goto @HEIST9_42804

:HEIST9_42830
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_42841
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_42867
wait 0
goto @HEIST9_42841

:HEIST9_42867
wait 500
set_interpolation_parameters 0.0 {time} 3000
set_fixed_camera_position 348.9764 {y} 2538.0291 {z} 16.6197 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 348.743 {y} 2539.001 {z} 16.6362 {switchStyle} SwitchType.Interpolation
print_now 'WUZX_BR' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44443

:HEIST9_42962
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_42988
wait 0
goto @HEIST9_42962

:HEIST9_42988
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_42999
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_43025
wait 0
goto @HEIST9_42999

:HEIST9_43025
wait 1000
print_now 'WUZX_AK' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 44410

:HEIST9_43059
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_43085
wait 0
goto @HEIST9_43059

:HEIST9_43085
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_43096
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_43122
wait 0
goto @HEIST9_43096

:HEIST9_43122
gosub @HEIST9_46325
delete_char 54@
delete_char 97@
delete_char 281@
delete_char 282@
delete_car 279@
delete_car 280@
delete_car 51@
remove_animation "FIGHT_B"
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
230@ = 1
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_43225
restore_clothes_state 
build_player_model $player1

:HEIST9_43225
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_43324
load_scene 2023.783 {y} 1007.845 {z} 9.8203
clear_area 2023.783 {y} 1007.845 {z} 9.8203 {radius} 20.0 {clearParticles} True
request_collision 2023.783 {y} 1007.845
set_char_coordinates_dont_warp_gang $scplayer {x} 2023.783 {y} 1007.845 {z} 9.813
set_char_heading $scplayer {heading} 270.9639

:HEIST9_43324
gosub @HEIST9_46306
wait 500
gosub @HEIST9_46358
goto @HEIST9_44516

:HEIST9_43350
if and
  16 > 38@
  174@ == 0
  250@ == 1
goto_if_false @HEIST9_43642
58@ = 0

:HEIST9_43389
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_43439
get_char_coordinates 54@(58@,4i) {var_x} 180@(58@,4f) {var_y} 184@(58@,4f) {var_z} 188@(58@,4f)

:HEIST9_43439
if 
  is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_43621
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_43488
remove_blip 91@(58@,4i)

:HEIST9_43488
gosub @HEIST9_46289
188@(58@,4f) += 2.5
set_fixed_camera_position 180@(58@,4f) {y} 184@(58@,4f) {z} 188@(58@,4f) {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
188@(58@,4f) -= 2.5
point_camera_at_point 180@(58@,4f) {y} 184@(58@,4f) {z} 188@(58@,4f) {switchStyle} SwitchType.JumpCut
wait 4000
gosub @HEIST9_50388
print_now 'HM9_9' {time} 4000 {flag} 1
goto @HEIST9_44468

:HEIST9_43621
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43389

:HEIST9_43642
goto @HEIST9_2598

:HEIST9_43649
goto @HEIST9_44468
delete_car 46@
mark_model_as_no_longer_needed 530
if 
  not is_char_dead 54@
goto_if_false @HEIST9_43724
clear_char_tasks_immediately 54@
set_char_coordinates_dont_warp_gang 54@ {x} 2145.146 {y} 1626.464 {z} 992.5681
set_char_heading 54@ {heading} 11.1673
task_duck 54@ {time} -1

:HEIST9_43724
if 
  not is_char_dead 55@
goto_if_false @HEIST9_43782
clear_char_tasks_immediately 55@
set_char_coordinates_dont_warp_gang 55@ {x} 2143.25 {y} 1626.4821 {z} 992.5681
set_char_heading 55@ {heading} 3.4561
task_duck 55@ {time} -1

:HEIST9_43782
if 
  not is_char_dead 56@
goto_if_false @HEIST9_43833
clear_char_tasks_immediately 56@
set_char_coordinates_dont_warp_gang 56@ {x} 2140.7529 {y} 1616.249 {z} 992.5681
set_char_heading 56@ {heading} 342.9477

:HEIST9_43833
if 
  not is_char_dead 57@
goto_if_false @HEIST9_43884
clear_char_tasks_immediately 57@
set_char_coordinates_dont_warp_gang 57@ {x} 2147.739 {y} 1616.703 {z} 992.5681
set_char_heading 57@ {heading} 33.9273

:HEIST9_43884
return 

:HEIST9_43886
58@ = 0

:HEIST9_43893
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_43932
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False

:HEIST9_43932
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43893
return 

:HEIST9_43955
58@ = 0

:HEIST9_43962
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_44001
set_char_proofs 54@(58@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False

:HEIST9_44001
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_43962
return 

:HEIST9_44024
if and
  is_char_dead 335@
  is_char_dead 336@
  is_char_dead 337@
  is_char_dead 338@
  is_char_dead 339@
goto_if_false @HEIST9_44466
if and
  is_char_dead 340@
  is_char_dead 341@
  is_char_dead 342@
goto_if_false @HEIST9_44466
53@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 2148.0171 {y} 1597.457 {z} 998.7676 {speed} MoveState.Run {time} -1
close_sequence_task 53@
58@ = 0

:HEIST9_44126
266@(58@,4i) = 0
270@(58@,4i) = 0
if and
  not is_char_dead 54@(58@,4i)
  not is_char_dead $scplayer
goto_if_false @HEIST9_44194
clear_char_tasks_immediately 54@(58@,4i)
perform_sequence_task 54@(58@,4i) {sequence} 53@

:HEIST9_44194
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_44289
set_lvar_int_to_lvar_int 148@(58@,5i) = 142@(58@,5i)
get_char_health 54@(58@,4i) {var_health} 142@(58@,5i)
if 
  not is_int_lvar_equal_to_int_lvar 148@(58@,5i) == 142@(58@,5i)
goto_if_false @HEIST9_44289
print_now 'HM9_44' {time} 5000 {flag} 1

:HEIST9_44289
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_44126
clear_sequence_task 53@
257@ = 0
258@ = 0
278@ = 1
TIMERB = 0
58@ = 0

:HEIST9_44350
change_blip_display 91@(58@,4i) {display} BlipDisplay.Both
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_44350
if 
  does_blip_exist 90@
goto_if_false @HEIST9_44403
remove_blip 90@

:HEIST9_44403
90@ = add_blip_for_coord 2220.543 {y} 1572.625 {z} 998.9531
set_blip_entry_exit 90@ {x} 2196.635 {y} 1676.8409 {radius} 10.0
print_now 'HM9_8' {time} 7000 {flag} 1
52@ = 1

:HEIST9_44466
return 

:HEIST9_44468
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_44498
disable_player_sprint $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_44498
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:HEIST9_44516
$3253 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} 102.7728 {y} 1899.192 {z} 33.1572
$3254 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} 1274.301 {y} -825.7809 {z} 1085.079
$3255 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} -948.3487 {y} 1858.0229 {z} 8.3237
$3256 = create_pickup_with_ammo 368 {pickupType} PickupType.OnStreetSlow {ammo} 1 {x} -1956.274 {y} -853.7687 {z} 31.873
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_44654
disable_player_sprint $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_44654
if 
  does_blip_exist $Theheist_contact_blip
goto_if_false @HEIST9_44675
remove_blip $Theheist_contact_blip

:HEIST9_44675
$flag_heist_mission_counter += 1
player_made_progress 1
register_mission_passed 'HEIST_9'
print_with_number_big 'M_PASSS' {num} 100000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 100000
award_player_mission_respect 100
play_mission_passed_tune 1
clear_wanted_level $player1
clear_area 2444.772 {y} 655.0391 {z} 10.3874 {radius} 30.0 {clearParticles} True
$flag_player_got_casino_uniform = 1
set_int_stat StatId.PassedHeist8 {value} 1
return 

:HEIST9_44781
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed #GENERATOR_BIG
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed #CJ_MONEY_BAG
mark_model_as_no_longer_needed #GENERATOR_BIG_D
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed 335
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_animation "BOMBER"
remove_car_recording 499
remove_car_recording 487
remove_car_recording 494
remove_car_recording 484
return 

:HEIST9_44948
$disable_mod_garage = 0
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_44976
stop_char_facial_talk $scplayer

:HEIST9_44976
set_wanted_multiplier 1.0
set_radar_zoom 0
58@ = 0

:HEIST9_44994
if 
  does_blip_exist 350@(58@,15i)
goto_if_false @HEIST9_45023
remove_blip 350@(58@,15i)

:HEIST9_45023
if 
  does_blip_exist 320@(58@,15i)
goto_if_false @HEIST9_45052
remove_blip 320@(58@,15i)

:HEIST9_45052
58@ += 1
  58@ >= 11
goto_if_false @HEIST9_44994
if 
  $d5_bronze_generator_unlocked == 1
goto_if_false @HEIST9_45098
switch_car_generator $d5_bronze_generator {amount} 101

:HEIST9_45098
if 
  $d5_silver_generator_unlocked == 1
goto_if_false @HEIST9_45123
switch_car_generator $d5_silver_generator {amount} 101

:HEIST9_45123
if 
  $d5_gold_generator_unlocked == 1
goto_if_false @HEIST9_45148
switch_car_generator $d5_gold_generator {amount} 101

:HEIST9_45148
if 
  not is_char_dead 97@
goto_if_false @HEIST9_45169
remove_char_elegantly 97@

:HEIST9_45169
if 
  not is_char_dead 281@
goto_if_false @HEIST9_45190
remove_char_elegantly 281@

:HEIST9_45190
if 
  not is_char_dead 282@
goto_if_false @HEIST9_45211
remove_char_elegantly 282@

:HEIST9_45211
set_zone_no_cops 'MEAD' {state} False
clear_onscreen_timer $h9_safe_timer
if 
  $player_fall_state > 0
goto_if_false @HEIST9_45254
$player_fall_state = 6

:HEIST9_45254
$para_float_Vy = 5.0
$para_flare_Vy = 8.5
$para_freefall_Vz = -30.0
$para_freefall_Vy = 32.0
$iTerminateAllAmbience = 0
switch_object_brains ScriptBrainAttachType.Object {state} True
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_45337
remove_weapon_from_char $scplayer {weaponType} WeaponType.NightVision
remove_weapon_from_char $scplayer {weaponType} WeaponType.Teargas

:HEIST9_45337
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_45367
disable_player_sprint $player1 {state} False
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_45367
set_object_heading $h9_door_c {heading} 270.0
switch_entry_exit 'MAFCAS' {state} True
switch_entry_exit 'MAFCAS2' {state} True
switch_entry_exit 'JUMP1' {state} True
switch_entry_exit 'JUMP2' {state} True
set_darkness_effect False {pitchBlack} 0
set_night_vision False
$onmission = 0
clear_wanted_level $player1
delete_object 41@
58@ = 0

:HEIST9_45463
if 
  not is_char_dead 54@(58@,4i)
goto_if_false @HEIST9_45492
remove_char_elegantly 54@(58@,4i)

:HEIST9_45492
if 
  not is_char_dead 109@(58@,5i)
goto_if_false @HEIST9_45521
mark_char_as_no_longer_needed 109@(58@,5i)

:HEIST9_45521
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_45550
remove_blip 91@(58@,4i)

:HEIST9_45550
if 
  does_object_exist 61@(58@,4i)
goto_if_false @HEIST9_45579
delete_object 61@(58@,4i)

:HEIST9_45579
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_45463
if 
  does_blip_exist 299@
goto_if_false @HEIST9_45621
remove_blip 299@

:HEIST9_45621
if 
  does_blip_exist 233@
goto_if_false @HEIST9_45642
remove_blip 233@

:HEIST9_45642
if 
  does_blip_exist 45@
goto_if_false @HEIST9_45663
remove_blip 45@

:HEIST9_45663
if 
  does_blip_exist 108@
goto_if_false @HEIST9_45684
remove_blip 108@

:HEIST9_45684
if 
  does_blip_exist 39@
goto_if_false @HEIST9_45705
remove_blip 39@

:HEIST9_45705
if 
  does_blip_exist 44@
goto_if_false @HEIST9_45726
remove_blip 44@

:HEIST9_45726
if 
  does_blip_exist 47@
goto_if_false @HEIST9_45747
remove_blip 47@

:HEIST9_45747
if 
  does_blip_exist 90@
goto_if_false @HEIST9_45768
remove_blip 90@

:HEIST9_45768
if 
  does_blip_exist 384@
goto_if_false @HEIST9_45789
remove_blip 384@

:HEIST9_45789
if 
  does_blip_exist 376@
goto_if_false @HEIST9_45810
remove_blip 376@

:HEIST9_45810
if 
  does_blip_exist 84@
goto_if_false @HEIST9_45831
remove_blip 84@

:HEIST9_45831
if 
  does_blip_exist 102@
goto_if_false @HEIST9_45852
remove_blip 102@

:HEIST9_45852
if 
  does_blip_exist 372@
goto_if_false @HEIST9_45873
remove_blip 372@

:HEIST9_45873
if 
  does_blip_exist 228@
goto_if_false @HEIST9_45894
remove_blip 228@

:HEIST9_45894
if 
  does_blip_exist 229@
goto_if_false @HEIST9_45915
remove_blip 229@

:HEIST9_45915
if 
  is_any_pickup_at_coords 2176.4709 {y} 1597.394 {z} 1000.0
goto_if_false @HEIST9_45948
remove_pickup $h9_health

:HEIST9_45948
if 
  is_any_pickup_at_coords 2144.3391 {y} 1640.666 {z} 993.5
goto_if_false @HEIST9_45981
remove_pickup 285@

:HEIST9_45981
if 
  is_any_pickup_at_coords 2146.4871 {y} 1622.8051 {z} 993.0
goto_if_false @HEIST9_46014
remove_pickup 214@

:HEIST9_46014
if 
  is_any_pickup_at_coords 2267.989 {y} 1699.668 {z} 101.4
goto_if_false @HEIST9_46047
remove_pickup 298@

:HEIST9_46047
if 
  is_any_pickup_at_coords 2265.825 {y} 1617.069 {z} 94.5
goto_if_false @HEIST9_46080
remove_pickup 385@

:HEIST9_46080
$timer_mobile_start = get_game_timer 
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 428
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed #PARA_PACK
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 343
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed #GENERATOR_BIG
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed #CJ_MONEY_BAG
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed #GENERATOR_BIG_D
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed 284
mark_model_as_no_longer_needed #BODYARMOUR
mark_model_as_no_longer_needed 364
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 285
mark_model_as_no_longer_needed 371
unload_special_character 1
unload_special_character 2
unload_special_character 3
remove_animation "HEIST9"
remove_animation "BOMBER"
remove_animation "FIGHT_B"
mission_has_finished 
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
return 

:HEIST9_46289
clear_prints 
clear_help 
switch_widescreen True
set_player_control $player1 {state} False
return 

:HEIST9_46306
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:HEIST9_46325
do_fade 500 {direction} Fade.Out

:HEIST9_46332
if 
  get_fading_status 
goto_if_false @HEIST9_46356
wait 0
goto @HEIST9_46332

:HEIST9_46356
return 

:HEIST9_46358
do_fade 500 {direction} Fade.In

:HEIST9_46365
if 
  get_fading_status 
goto_if_false @HEIST9_46389
wait 0
goto @HEIST9_46365

:HEIST9_46389
return 

:HEIST9_46391
if 
is_ps2_keyboard_key_just_pressed 89
goto_if_false @HEIST9_46482
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46482
set_char_coordinates_dont_warp_gang $scplayer {x} 2179.354 {y} 1673.1801 {z} 10.0469
set_char_heading $scplayer {heading} 285.6208
set_camera_behind_player 
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46475
stop_char_facial_talk $scplayer

:HEIST9_46475
shut_char_up_for_scripted_speech $scplayer {state} False

:HEIST9_46482
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @HEIST9_46543
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46543
set_char_coordinates_dont_warp_gang $scplayer {x} 2176.583 {y} 1600.462 {z} 998.9749
set_char_heading $scplayer {heading} 179.7799

:HEIST9_46543
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @HEIST9_46746
gosub @HEIST9_46289
set_fixed_camera_position 2144.677 {y} 1614.061 {z} 1001.469 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2144.4131 {y} 1615.016 {z} 1001.331 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46710
clear_char_tasks_immediately $scplayer
set_char_velocity $scplayer {x} 0.0 {y} 0.0 {z} 0.0
set_char_coordinates_dont_warp_gang $scplayer {x} 2142.6641 {y} 1617.397 {z} 999.968
set_char_heading $scplayer {heading} 352.2108
task_shoot_at_coord $scplayer {x} 2142.6641 {y} 1620.397 {z} 1003.0 {time} 1000

:HEIST9_46710
wait 4000
clear_area 2143.124 {y} 1618.427 {z} 999.968 {radius} 10.0 {clearParticles} True
gosub @HEIST9_46306

:HEIST9_46746
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @HEIST9_46830
set_area_visible 1
load_scene 2147.7781 {y} 1611.972 {z} 1005.188
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_46830
set_char_coordinates_dont_warp_gang $scplayer {x} 2147.7781 {y} 1611.972 {z} 1005.188
set_char_heading $scplayer {heading} 182.1343
set_camera_behind_player 

:HEIST9_46830
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @HEIST9_47095
gosub @HEIST9_46325
gosub @HEIST9_46289
request_model 330
load_special_character 1 {modelName} 'ZERO'

:HEIST9_46877
if or
  not has_special_character_loaded 1
  not has_model_loaded 330
goto_if_false @HEIST9_46908
wait 0
goto @HEIST9_46877

:HEIST9_46908
set_night_vision False
set_darkness_effect True {pitchBlack} 220
set_fixed_camera_position 2219.4561 {y} 1587.37 {z} 999.1768 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2219.6799 {y} 1586.4091 {z} 999.3383 {switchStyle} SwitchType.JumpCut
97@ = create_char PedType.Special {modelId} 290 {x} 2221.1221 {y} 1582.974 {z} 998.9675
set_char_area_visible 97@ {areaId} 1
set_char_heading 97@ {heading} 4.8671
task_use_mobile_phone 97@ {start} True
gosub @HEIST9_46358
print_now 'HM9_46' {time} 4000 {flag} 1
wait 2000
set_darkness_effect False {pitchBlack} 0
wait 2000
gosub @HEIST9_46306
print_now 'HM9_8' {time} 5000 {flag} 1
105@ = 1
200@ = 1

:HEIST9_47095
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @HEIST9_47156
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47156
set_char_coordinates_dont_warp_gang $scplayer {x} 2144.021 {y} 1612.8669 {z} 992.5681
set_char_heading $scplayer {heading} 0.0

:HEIST9_47156
if 
is_ps2_keyboard_key_just_pressed 69
goto_if_false @HEIST9_47194
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47194
restore_clothes_state 
build_player_model $player1

:HEIST9_47194
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @HEIST9_47367
38@ = 6
46@ = create_car 530 {x} 2173.6211 {y} 1585.964 {z} 998.9722
set_vehicle_area_visible 46@ {interiorId} 1
set_car_heading 46@ {heading} 270.0
change_car_colour 46@ {color1} 6 {color2} 6
mark_model_as_no_longer_needed 530
209@ = 1
if 
  not is_car_dead 46@
goto_if_false @HEIST9_47300
set_vehicle_area_visible 46@ {interiorId} 1

:HEIST9_47300
set_area_visible 1
load_scene 2256.551 {y} 1704.762 {z} 1.1747
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47367
set_char_coordinates_dont_warp_gang $scplayer {x} 2220.3701 {y} 1574.484 {z} 998.9695
set_char_heading $scplayer {heading} 180.0

:HEIST9_47367
if 
is_ps2_keyboard_key_just_pressed 76
goto_if_false @HEIST9_47428
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47428
set_char_coordinates_dont_warp_gang $scplayer {x} 1962.8409 {y} 1060.6331 {z} 993.4688
set_char_heading $scplayer {heading} 346.1133

:HEIST9_47428
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @HEIST9_47496
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47489
set_char_coordinates_dont_warp_gang $scplayer {x} 362.6579 {y} 2525.248 {z} 15.6336
set_char_heading $scplayer {heading} 11.8402

:HEIST9_47489
38@ = 18

:HEIST9_47496
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @HEIST9_48136
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47557
set_char_coordinates_dont_warp_gang $scplayer {x} 346.9504 {y} 2539.0249 {z} 15.7546
set_char_heading $scplayer {heading} 2.8895

:HEIST9_47557
gosub @HEIST9_46289
set_fixed_camera_position 350.102 {y} 2536.9951 {z} 16.9325 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 349.5165 {y} 2537.801 {z} 16.844 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_47667
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:HEIST9_47667
print_now 'HE8_ZA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19128

:HEIST9_47694
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47720
wait 0
goto @HEIST9_47694

:HEIST9_47720
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_47731
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_47757
wait 0
goto @HEIST9_47731

:HEIST9_47757
print_now 'HE8_ZB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19129

:HEIST9_47784
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47810
wait 0
goto @HEIST9_47784

:HEIST9_47810
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_47821
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_47847
wait 0
goto @HEIST9_47821

:HEIST9_47847
print_now 'HE8_ZC' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 65535

:HEIST9_47876
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47902
wait 0
goto @HEIST9_47876

:HEIST9_47902
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_47913
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_47939
wait 0
goto @HEIST9_47913

:HEIST9_47939
print_now 'HE8_ZD' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19130

:HEIST9_47966
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_47992
wait 0
goto @HEIST9_47966

:HEIST9_47992
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_48003
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_48029
wait 0
goto @HEIST9_48003

:HEIST9_48029
gosub @HEIST9_46325
delete_char 54@
delete_char 97@
delete_car 51@
delete_object 61@
delete_object 62@
delete_object 63@
delete_object 64@
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_48122
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 347.167 {y} 2538.4839 {z} 15.7535
set_char_heading $scplayer {heading} 191.987

:HEIST9_48122
gosub @HEIST9_46306
gosub @HEIST9_46358

:HEIST9_48136
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @HEIST9_48155
set_radar_zoom 0

:HEIST9_48155
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @HEIST9_48174
set_radar_zoom 100

:HEIST9_48174
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @HEIST9_49689
request_model 117
request_model 120
request_model 428
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'

:HEIST9_48225
if or
  not has_model_loaded 117
  not has_model_loaded 120
  not has_model_loaded 428
  not has_special_character_loaded 1
  not has_model_loaded 523
  not has_model_loaded 284
goto_if_false @HEIST9_48274
wait 0
goto @HEIST9_48225

:HEIST9_48274
request_car_recording 494

:HEIST9_48279
if 
  not has_car_recording_been_loaded 494
goto_if_false @HEIST9_48306
wait 0
goto @HEIST9_48279

:HEIST9_48306
delete_object 49@
387@ = create_car 428 {x} 2220.3889 {y} 1577.623 {z} 998.0
set_vehicle_area_visible 387@ {interiorId} 1
set_car_heading 387@ {heading} 179.9804
54@ = create_char PedType.Mission2 {modelId} 117 {x} 2224.042 {y} 1589.3669 {z} 998.967
set_char_area_visible 54@ {areaId} 1
set_char_heading 54@ {heading} 165.2519
55@ = create_char PedType.Mission2 {modelId} 120 {x} 2222.8931 {y} 1589.583 {z} 998.9684
set_char_area_visible 55@ {areaId} 1
set_char_heading 55@ {heading} 173.9364
56@ = create_char PedType.Mission2 {modelId} 120 {x} 2221.866 {y} 1589.245 {z} 998.9696
set_char_area_visible 56@ {areaId} 1
set_char_heading 56@ {heading} 177.0563
57@ = create_char PedType.Mission2 {modelId} 120 {x} 2220.7229 {y} 1589.224 {z} 998.971
set_char_area_visible 57@ {areaId} 1
set_char_heading 57@ {heading} 171.7417
gosub @HEIST9_46289
set_fixed_camera_position 2216.7209 {y} 1579.8101 {z} 1000.833 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.3821 {y} 1580.538 {z} 1000.654 {switchStyle} SwitchType.JumpCut
print_now 'HE8_UA' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19104

:HEIST9_48600
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_48626
wait 0
goto @HEIST9_48600

:HEIST9_48626
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_48637
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_48687
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_48680
goto @HEIST9_49515

:HEIST9_48680
goto @HEIST9_48637

:HEIST9_48687
print_now 'HE8_UB' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 19105

:HEIST9_48714
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @HEIST9_48740
wait 0
goto @HEIST9_48714

:HEIST9_48740
play_mission_audio MissionAudioSlot.Slot1
TIMERB = 0

:HEIST9_48751
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @HEIST9_48801
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_48794
goto @HEIST9_49515

:HEIST9_48794
goto @HEIST9_48751

:HEIST9_48801
delete_char 97@
delete_char 56@
delete_char 57@
set_fixed_camera_position 2216.9141 {y} 1571.6219 {z} 999.7229 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2217.27 {y} 1572.557 {z} 999.7267 {switchStyle} SwitchType.JumpCut
281@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.8 {y} 1581.163 {z} 998.9764
set_char_heading 281@ {heading} 196.0524
set_char_area_visible 281@ {areaId} 1
282@ = create_char PedType.Mission2 {modelId} 284 {x} 2220.019 {y} 1581.179 {z} 998.9772
set_char_heading 282@ {heading} 74.4668
set_char_area_visible 282@ {areaId} 1
if and
  not is_car_dead 387@
  not is_char_dead 54@
goto_if_false @HEIST9_48983
task_enter_car_as_driver 54@ {vehicle} 387@ {time} 8000

:HEIST9_48983
if and
  not is_car_dead 387@
  not is_char_dead 55@
goto_if_false @HEIST9_49017
task_enter_car_as_passenger 55@ {vehicle} 387@ {time} 8000 {seat} SeatId.BikeRear

:HEIST9_49017
TIMERB = 0

:HEIST9_49024
if 
  4000 > TIMERB
goto_if_false @HEIST9_49078
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49071
goto @HEIST9_49515

:HEIST9_49071
goto @HEIST9_49024

:HEIST9_49078
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_49110
task_enter_car_as_driver 281@ {vehicle} 279@ {time} 4000

:HEIST9_49110
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_49142
task_enter_car_as_driver 282@ {vehicle} 280@ {time} 4000

:HEIST9_49142
TIMERB = 0

:HEIST9_49149
if 
  4000 > TIMERB
goto_if_false @HEIST9_49203
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49196
goto @HEIST9_49515

:HEIST9_49196
goto @HEIST9_49149

:HEIST9_49203
set_fixed_camera_position 2223.8501 {y} 1572.014 {z} 1001.623 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2223.3711 {y} 1572.844 {z} 1001.336 {switchStyle} SwitchType.JumpCut
if and
  has_car_recording_been_loaded 494
  not is_car_dead 387@
goto_if_false @HEIST9_49283
start_playback_recorded_car 387@ {path} 494

:HEIST9_49283
TIMERB = 0

:HEIST9_49290
if 
  500 > TIMERB
goto_if_false @HEIST9_49344
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49337
goto @HEIST9_49515

:HEIST9_49337
goto @HEIST9_49290

:HEIST9_49344
if and
  not is_car_dead 279@
  not is_char_dead 281@
goto_if_false @HEIST9_49399
task_car_drive_to_coord 281@ {vehicle} 279@ {x} 2223.4861 {y} 1564.463 {z} 1001.016 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_49399
if and
  not is_car_dead 280@
  not is_char_dead 282@
goto_if_false @HEIST9_49454
task_car_drive_to_coord 282@ {vehicle} 280@ {x} 2217.3191 {y} 1566.6 {z} 1000.3 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:HEIST9_49454
TIMERB = 0

:HEIST9_49461
if 
  2000 > TIMERB
goto_if_false @HEIST9_49515
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @HEIST9_49508
goto @HEIST9_49515

:HEIST9_49508
goto @HEIST9_49461

:HEIST9_49515
58@ = 0

:HEIST9_49522
if 
  does_blip_exist 91@(58@,4i)
goto_if_false @HEIST9_49560
remove_blip 91@(58@,4i)
delete_char 54@(58@,4i)

:HEIST9_49560
58@ += 1
  58@ >= 4
goto_if_false @HEIST9_49522
if 
  not is_car_dead 387@
goto_if_false @HEIST9_49602
delete_car 387@

:HEIST9_49602
if 
  not is_car_dead 279@
goto_if_false @HEIST9_49623
delete_car 279@

:HEIST9_49623
if 
  not is_car_dead 280@
goto_if_false @HEIST9_49644
delete_car 280@

:HEIST9_49644
if 
  not is_char_dead 97@
goto_if_false @HEIST9_49665
delete_char 97@

:HEIST9_49665
gosub @HEIST9_46306
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 120
mark_model_as_no_longer_needed 285
unload_special_character 2

:HEIST9_49689
if 
is_ps2_keyboard_key_just_pressed 73
goto_if_false @HEIST9_49727
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_49727
player_take_off_goggles $player1 {animate} True

:HEIST9_49727
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @HEIST9_49785
38@ = 18
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_49785
set_char_coordinates_dont_warp_gang $scplayer {x} 338.0 {y} 2540.563 {z} 15.7743

:HEIST9_49785
if 
is_ps2_keyboard_key_just_pressed 74
goto_if_false @HEIST9_50386
request_model 523
request_model 284
load_special_character 1 {modelName} 'ZERO'

:HEIST9_49823
if or
  not has_special_character_loaded 1
  not has_model_loaded 523
  not has_model_loaded 284
  not has_model_loaded 284
goto_if_false @HEIST9_49864
wait 0
goto @HEIST9_49823

:HEIST9_49864
request_car_recording 494
load_special_character 1 {modelName} 'ZERO'

:HEIST9_49882
if 
  not has_car_recording_been_loaded 494
goto_if_false @HEIST9_49909
wait 0
goto @HEIST9_49882

:HEIST9_49909
switch_entry_exit 'JUMP1' {state} True
switch_entry_exit 'JUMP2' {state} False
106@ = 1
clear_area 2220.3401 {y} 1582.068 {z} 998.9764 {radius} 10.0 {clearParticles} True
97@ = create_char PedType.Mission2 {modelId} 290 {x} 2220.3401 {y} 1582.068 {z} 998.9764
set_char_area_visible 97@ {areaId} 1
set_char_heading 97@ {heading} 350.4443
279@ = create_car 523 {x} 2223.699 {y} 1582.78 {z} 998.0
set_vehicle_area_visible 279@ {interiorId} 1
set_car_heading 279@ {heading} 175.8434
lock_car_doors 279@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 279@ {state} True
280@ = create_car 523 {x} 2217.5491 {y} 1583.667 {z} 998.0
set_vehicle_area_visible 280@ {interiorId} 1
set_car_heading 280@ {heading} 175.3717
lock_car_doors 280@ {lockStatus} CarLock.LockoutPlayerOnly
freeze_car_position 280@ {state} True
gosub @HEIST9_1936
if 
  not is_car_dead 51@
goto_if_false @HEIST9_50169
set_car_coordinates 51@ {x} 2220.2939 {y} 1578.0699 {z} 998.9756
set_car_heading 51@ {heading} 177.9097

:HEIST9_50169
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_50215
set_char_coordinates_dont_warp_gang $scplayer {x} 2216.031 {y} 1618.646 {z} 998.9766
set_char_heading $scplayer {heading} 269.4771

:HEIST9_50215
if 
  not is_char_dead 54@
goto_if_false @HEIST9_50256
warp_char_from_car_to_coord 54@ {x} 2219.7581 {y} 1585.285 {z} 998.9722
clear_char_tasks_immediately 54@

:HEIST9_50256
if 
  not is_char_dead 55@
goto_if_false @HEIST9_50297
warp_char_from_car_to_coord 55@ {x} 2221.8831 {y} 1584.261 {z} 998.9696
clear_char_tasks_immediately 55@

:HEIST9_50297
if 
  not is_char_dead 56@
goto_if_false @HEIST9_50338
warp_char_from_car_to_coord 56@ {x} 2222.7051 {y} 1586.266 {z} 998.9686
clear_char_tasks_immediately 56@

:HEIST9_50338
if 
  not is_char_dead 57@
goto_if_false @HEIST9_50379
warp_char_from_car_to_coord 57@ {x} 2220.302 {y} 1586.568 {z} 998.9716
clear_char_tasks_immediately 57@

:HEIST9_50379
38@ = 14

:HEIST9_50386
return 

:HEIST9_50388
388@ = get_area_visible 
gosub @HEIST9_46325
set_night_vision False
if and
  not is_char_dead $scplayer
  not is_minigame_in_progress 
goto_if_false @HEIST9_50563
set_area_visible 0
load_scene 2185.739 {y} 1677.396 {z} 10.0946
clear_area 2185.739 {y} 1677.396 {z} 10.0946 {radius} 10.0 {clearParticles} True
request_collision 2185.739 {y} 1677.396
if 
  is_char_in_any_car $scplayer
goto_if_false @HEIST9_50522
warp_char_from_car_to_coord $scplayer {x} 2185.739 {y} 1677.396 {z} 10.0946
goto @HEIST9_50542

:HEIST9_50522
set_char_coordinates_dont_warp_gang $scplayer {x} 2185.739 {y} 1677.396 {z} 10.0946

:HEIST9_50542
set_char_heading $scplayer {heading} 88.4776
set_char_area_visible $scplayer {areaId} 0
restore_camera_jumpcut 
set_camera_behind_player 

:HEIST9_50563
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_50593
restore_clothes_state 
build_player_model $player1
230@ = 1

:HEIST9_50593
gosub @HEIST9_46358
return 

:HEIST9_50602
gosub @HEIST9_46325
if 
  not is_char_dead $scplayer
goto_if_false @HEIST9_50639
restore_clothes_state 
build_player_model $player1
230@ = 1

:HEIST9_50639
gosub @HEIST9_46358
return 

:HEIST9_50648
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 232@
231@ = 0
return 

:HEIST9_50668
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  231@ == 0
goto_if_false @HEIST9_50711
play_mission_audio MissionAudioSlot.Slot1
print_now 288@s {time} 20000 {flag} 1
231@ = 1

:HEIST9_50711
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  231@ == 1
goto_if_false @HEIST9_50749
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 288@s
231@ = 2

:HEIST9_50749
return 

//-------------Mission 102---------------
// Originally: A Home In The Hills

:MANSIO1
script_name 'MANSIO1'
gosub @MANSIO1_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO1_38
gosub @MANSIO1_38488

:MANSIO1_38
gosub @MANSIO1_39063
terminate_this_script 

:MANSIO1_47
register_mission_given 
$onmission = 1
set_char_coordinates $scplayer {x} 2175.4121 {y} 1681.548 {z} 9.8203
set_char_heading $scplayer {heading} 90.0
set_char_has_used_entry_exit $scplayer {x} 2233.5 {y} 1712.8 {radius} 10.0
load_mission_text 'MAN_1'
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
$iTerminateAllAmbience = 1
set_area_visible 11
load_cutscene 'BHILL1'

:MANSIO1_150
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO1_174
wait 0
goto @MANSIO1_150

:MANSIO1_174
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSIO1_183
if 
  not has_cutscene_finished 
goto_if_false @MANSIO1_207
wait 0
goto @MANSIO1_183

:MANSIO1_207
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSIO1_222
if 
  get_fading_status 
goto_if_false @MANSIO1_246
wait 0
goto @MANSIO1_222

:MANSIO1_246
set_area_visible 0
display_zone_names False
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
load_scene_in_direction 2171.137 {y} 1269.3571 {z} 32.8078 {heading} 0.0
request_model 592

:MANSIO1_293
if 
  not has_model_loaded 592
goto_if_false @MANSIO1_320
wait 0
goto @MANSIO1_293

:MANSIO1_320
set_char_area_visible $scplayer {areaId} 0
96@ = create_car 592 {x} 2144.0 {y} 1600.0 {z} 50.0
set_car_heading 96@ {heading} 180.0
set_radio_channel RadioChannel.UserTracks
set_plane_undercarriage_up 96@ {state} True
freeze_car_position 96@ {state} True
set_vehicle_area_visible 96@ {interiorId} 0
warp_char_into_car $scplayer {vehicle} 96@
49@ = 0
force_weather_now WeatherType.ExtraSunnyDesert
set_time_of_day 6 {minutes} 0
set_fixed_camera_position 2171.137 {y} 1269.3571 {z} 32.8078 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2170.998 {y} 1270.3311 {z} 32.9838 {switchStyle} SwitchType.JumpCut
set_respawn_point_for_duration_of_mission 1581.374 {y} 1768.996 {z} 9.8203
switch_widescreen True
set_heathaze_effect True
TIMERA = 0

:MANSIO1_493
if 
  1000 > TIMERA
goto_if_false @MANSIO1_523
wait 0
goto @MANSIO1_493

:MANSIO1_523
skip_cutscene_start_internal @MANSIO1_703
97@ = 1600.0
do_fade 1000 {direction} Fade.In

:MANSIO1_547
if 
  get_fading_status 
goto_if_false @MANSIO1_615
if 
  not is_car_dead 96@
goto_if_false @MANSIO1_604
97@ -= 1.5
set_car_coordinates 96@ {x} 2144.0 {y} 97@ {z} 50.0

:MANSIO1_604
wait 0
goto @MANSIO1_547

:MANSIO1_615
TIMERA = 0

:MANSIO1_622
if 
  9000 > TIMERA
goto_if_false @MANSIO1_696
if 
  not is_car_dead 96@
goto_if_false @MANSIO1_685
97@ -= 1.5
set_car_coordinates 96@ {x} 2144.0 {y} 97@ {z} 50.0

:MANSIO1_685
wait 0
goto @MANSIO1_622

:MANSIO1_696
49@ = 1

:MANSIO1_703
skip_cutscene_end 
do_fade 1000 {direction} Fade.Out

:MANSIO1_712
if 
  get_fading_status 
goto_if_false @MANSIO1_780
if 
  not is_car_dead 96@
goto_if_false @MANSIO1_769
97@ -= 1.5
set_car_coordinates 96@ {x} 2144.0 {y} 97@ {z} 50.0

:MANSIO1_769
wait 0
goto @MANSIO1_712

:MANSIO1_780
set_heathaze_effect False
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO1_827
warp_char_from_car_to_coord $scplayer {x} 1598.951 {y} -785.327 {z} 350.1654
goto @MANSIO1_847

:MANSIO1_827
set_char_coordinates $scplayer {x} 1598.951 {y} -785.327 {z} 350.1654

:MANSIO1_847
freeze_char_position $scplayer {state} True
mark_model_as_no_longer_needed 592
mark_car_as_no_longer_needed 96@
request_model 117
request_model 118
request_model 108
request_model 109
request_model 356
request_model 353
request_model #CARGO_REAR
request_model #D9_RAMP
request_model 330
request_model #PARACHUTE
request_model #PARA_PACK
request_animation "PARACHUTE"
stream_script 1

:MANSIO1_932
if or
  not has_model_loaded 117
  not has_model_loaded 118
  not has_model_loaded 108
  not has_model_loaded 109
  not has_model_loaded 356
  not has_model_loaded 353
goto_if_false @MANSIO1_980
wait 0
goto @MANSIO1_932

:MANSIO1_980
if or
  not has_model_loaded #CARGO_REAR
  not has_model_loaded #D9_RAMP
  not has_model_loaded 330
  not has_model_loaded #PARACHUTE
  not has_model_loaded #PARA_PACK
  not has_animation_loaded "PARACHUTE"
goto_if_false @MANSIO1_1040
wait 0
goto @MANSIO1_980

:MANSIO1_1040
if 
  not has_streamed_script_loaded 1
goto_if_false @MANSIO1_1066
wait 0
goto @MANSIO1_1040

:MANSIO1_1066
52@ = 0
34@ = load_char_decision_maker DecisionMakerType.Empty
35@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 35@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 35@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleInformRespectedFriends {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 35@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
36@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 36@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleInformRespectedFriends {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 36@ {event} Event.SeenPanickedPed {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 10.0 {hate} 10.0 {like} 10.0 {dislike} 10.0 {inCar} False {onFoot} True
37@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 37@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 37@ {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 37@ {event} Event.Damage {taskId} TaskId.ComplexSmartFleeEntity {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
39@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_group_decision_maker_event_response 39@ {event} Event.Damage
add_group_decision_maker_event_response 39@ {event} Event.Damage {taskId} TaskId.GroupKillThreatsBasic {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission3 {toPedType} PedType.Mission1
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission3 {toPedType} PedType.Mission2
44@ = get_player_group $player1
set_group_default_task_allocator 44@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans
set_group_decision_maker 44@ {handleOrTemplate} 39@
98@ = 0
if 
  98@ == 1
goto_if_false @MANSIO1_1842
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 143@(431@,3i)
159@ = create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 170@(43@,6i)
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 286@(43@,10i)
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 474@(43@,3i)
create_char PedType.CivMale {modelId} 117 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 316@(43@,4i)
create_object #CARDBOARDBOX2 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 194@(43@,6i)
add_blip_for_char 143@(43@,3i) {var_handle} 146@(43@,3i)

:MANSIO1_1842
switch_ambient_planes False
set_police_ignore_player $player1 {state} True
force_weather_now WeatherType.SunnyLa
set_time_of_day 3 {minutes} 0
127@ = create_object_no_offset #CARGO_REAR {x} 1595.0 {y} -785.0 {z} 350.0
set_object_heading 127@ {heading} 90.0
freeze_object_position 127@ {state} True
128@ = create_object_no_offset #D9_RAMP {x} 1595.03 {y} -784.98 {z} 348.758
set_object_heading 128@ {heading} 90.0
freeze_object_position 128@ {state} True
freeze_char_position $scplayer {state} False
set_char_coordinates $scplayer {x} 1594.3929 {y} -784.7317 {z} 349.0
set_char_heading $scplayer {heading} 36.9506
131@ = create_char PedType.Mission1 {modelId} 117 {x} 1595.303 {y} -783.4741 {z} 349.0
set_char_heading 131@ {heading} 205.0
set_char_area_visible 131@ {areaId} 0
give_weapon_to_char 131@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 131@ {weaponType} WeaponType.M4
set_char_never_targetted 131@ {state} True
set_char_decision_maker 131@ {handleOrTemplate} 34@
set_char_signal_after_kill 131@ {state} False
152@ = create_object #PARA_PACK {x} 1595.303 {y} -783.4741 {z} 349.0
task_pick_up_object 131@ {object} 152@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 131@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
139@ = 0
135@ = 0
132@ = create_char PedType.Mission1 {modelId} 118 {x} 1596.97 {y} -786.8875 {z} 349.0
set_char_heading 132@ {heading} 2.0
set_char_area_visible 132@ {areaId} 0
give_weapon_to_char 132@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 132@ {weaponType} WeaponType.M4
set_char_never_targetted 132@ {state} True
set_char_decision_maker 132@ {handleOrTemplate} 34@
set_char_signal_after_kill 132@ {state} False
153@ = create_object #PARA_PACK {x} 1596.97 {y} -786.8875 {z} 349.0
task_pick_up_object 132@ {object} 153@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 132@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
140@ = 1500
136@ = 0
133@ = create_char PedType.Mission1 {modelId} 118 {x} 1598.448 {y} -782.9297 {z} 349.0
set_char_heading 133@ {heading} 175.0
set_char_area_visible 133@ {areaId} 0
give_weapon_to_char 133@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 133@ {weaponType} WeaponType.M4
set_char_never_targetted 133@ {state} True
set_char_decision_maker 133@ {handleOrTemplate} 34@
set_char_signal_after_kill 133@ {state} False
154@ = create_object #PARA_PACK {x} 1598.448 {y} -782.9297 {z} 349.0
task_pick_up_object 133@ {object} 154@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 133@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
141@ = 3000
137@ = 0
134@ = create_char PedType.Mission1 {modelId} 117 {x} 1599.0341 {y} -786.9792 {z} 349.0
set_char_heading 134@ {heading} 347.0
set_char_area_visible 134@ {areaId} 0
give_weapon_to_char 134@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 134@ {weaponType} WeaponType.M4
set_char_never_targetted 134@ {state} True
set_char_decision_maker 134@ {handleOrTemplate} 34@
set_char_signal_after_kill 134@ {state} False
155@ = create_object #PARA_PACK {x} 1599.0341 {y} -786.9792 {z} 349.0
task_pick_up_object 134@ {object} 155@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_char_proofs 134@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
142@ = 5000
138@ = 0
if 
  49@ == 0
goto_if_false @MANSIO1_2700
goto @MANSIO1_5657

:MANSIO1_2700
49@ = 0
load_scene 1597.615 {y} -784.5765 {z} 350.0
set_fixed_camera_position 1598.951 {y} -785.327 {z} 350.1654 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1598.351 {y} -784.5302 {z} 350.089 {switchStyle} SwitchType.JumpCut
TIMERA = 0

:MANSIO1_2782
if 
  500 > TIMERA
goto_if_false @MANSIO1_2812
wait 0
goto @MANSIO1_2782

:MANSIO1_2812
camera_set_shake_simulation_simple 1 {timeInMs} 50000.0 {intensity} 3.0
109@ = get_current_char_weapon $scplayer
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @MANSIO1_2905
remove_weapon_from_char $scplayer {weaponType} WeaponType.BrassKnuckles
110@ = 1
request_model 331

:MANSIO1_2871
if 
  not has_model_loaded 331
goto_if_false @MANSIO1_2898
wait 0
goto @MANSIO1_2871

:MANSIO1_2898
goto @MANSIO1_2912

:MANSIO1_2905
110@ = 0

:MANSIO1_2912
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
do_fade 500 {direction} Fade.In

:MANSIO1_2926
if 
  get_fading_status 
goto_if_false @MANSIO1_2950
wait 0
goto @MANSIO1_2926

:MANSIO1_2950
skip_cutscene_start_internal @MANSIO1_4063
45@ = open_sequence_task 
task_stand_still -1 {time} 1500
task_go_straight_to_coord -1 {x} 1598.05 {y} -784.5205 {z} 349.0 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 257.9061
task_stay_in_same_place -1 {state} True
task_use_mobile_phone -1 {start} True
close_sequence_task 45@
perform_sequence_task $scplayer {sequence} 45@
clear_sequence_task 45@
set_lvar_text_label 76@s = 'MKND02A'
set_lvar_int_to_constant 55@ = 27009
set_lvar_int_to_var_int 65@ = $scplayer
set_lvar_text_label 78@s = 'MKND02B'
set_lvar_int_to_constant 56@ = 27010
66@ = -1
set_lvar_text_label 80@s = 'MKND02C'
set_lvar_int_to_constant 57@ = 27011
set_lvar_int_to_var_int 67@ = $scplayer
set_lvar_text_label 82@s = 'MKND02D'
set_lvar_int_to_constant 58@ = 27012
68@ = -1
set_lvar_text_label 84@s = 'MKND02E'
set_lvar_int_to_constant 59@ = 27013
69@ = -1
set_lvar_text_label 86@s = 'MKND02F'
set_lvar_int_to_constant 60@ = 27014
70@ = -1
set_lvar_text_label 88@s = 'MKND02G'
set_lvar_int_to_constant 61@ = 27015
set_lvar_int_to_var_int 71@ = $scplayer
set_lvar_text_label 90@s = 'MKND02H'
set_lvar_int_to_constant 62@ = 27016
72@ = -1
set_lvar_text_label 92@s = 'MKND02J'
set_lvar_int_to_constant 63@ = 27017
73@ = -1
set_lvar_text_label 94@s = 'MKND02K'
set_lvar_int_to_constant 64@ = 27018
set_lvar_int_to_var_int 74@ = $scplayer
75@ = 0

:MANSIO1_3332
if 
  46@ == 0
goto_if_false @MANSIO1_3369
wait 0
46@ = get_sequence_progress $scplayer
goto @MANSIO1_3332

:MANSIO1_3369
set_var_int_to_constant $load_sample = 20804
set_var_text_label s$load_text = 'MOBRING'
start_new_script @A_ALAP 0 99 

:MANSIO1_3403
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3436
wait 0
goto @MANSIO1_3403

:MANSIO1_3436
$SLOT_status($preload_slot,2i) = -4
46@ = get_sequence_progress $scplayer

:MANSIO1_3455
if 
  46@ <> 4
goto_if_false @MANSIO1_3492
wait 0
46@ = get_sequence_progress $scplayer
goto @MANSIO1_3455

:MANSIO1_3492
wait 2250

:MANSIO1_3497
if 
  10 > 75@
goto_if_false @MANSIO1_3657
set_var_int_to_lvar_int $load_sample = 55@(75@,10i)
set_var_text_label s$load_text = 76@(75@,10s)
if 
  65@(75@,10i) <> -1
goto_if_false @MANSIO1_3587
start_new_script @A_ALAP 2 100 65@(75@,10i) 
goto @MANSIO1_3599

:MANSIO1_3587
start_new_script @A_ALAP 0 100 

:MANSIO1_3599
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3632
wait 0
goto @MANSIO1_3599

:MANSIO1_3632
$SLOT_status($preload_slot,2i) = -4
75@ += 1
goto @MANSIO1_3497

:MANSIO1_3657
if or
  $SLOT_status($current_slot,2i) <> -4
  $SLOT_status($preload_slot,2i) <> -4
goto_if_false @MANSIO1_3701
wait 0
goto @MANSIO1_3657

:MANSIO1_3701
task_use_mobile_phone $scplayer {start} False
wait 2000
if 
  not is_char_dead 133@
goto_if_false @MANSIO1_3745
task_turn_char_to_face_char $scplayer {target} 133@
task_turn_char_to_face_char 133@ {target} $scplayer

:MANSIO1_3745
set_var_int_to_constant $load_sample = 23808
set_var_text_label s$load_text = 'MAN1_CA'
start_new_script @A_ALAP 1 100 $scplayer 

:MANSIO1_3782
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3815
wait 0
goto @MANSIO1_3782

:MANSIO1_3815
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 23809
set_var_text_label s$load_text = 'MAN1_CB'
start_new_script @A_ALAP 2 100 133@ 

:MANSIO1_3863
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_3896
wait 0
goto @MANSIO1_3863

:MANSIO1_3896
$SLOT_status($preload_slot,2i) = -4
set_var_int_to_constant $load_sample = 23810
set_var_text_label s$load_text = 'MAN1_CC'
start_new_script @A_ALAP 1 100 $scplayer 

:MANSIO1_3944
if or
  $SLOT_status($current_slot,2i) <> -4
  $SLOT_status($preload_slot,2i) <> -4
goto_if_false @MANSIO1_3988
wait 0
goto @MANSIO1_3944

:MANSIO1_3988
TIMERA = 0

:MANSIO1_3995
if 
  1000 > TIMERA
goto_if_false @MANSIO1_4025
wait 0
goto @MANSIO1_3995

:MANSIO1_4025
do_fade 500 {direction} Fade.Out

:MANSIO1_4032
if 
  get_fading_status 
goto_if_false @MANSIO1_4056
wait 0
goto @MANSIO1_4032

:MANSIO1_4056
49@ = 1

:MANSIO1_4063
skip_cutscene_end 
clear_prints 
do_fade 0 {direction} Fade.Out

:MANSIO1_4073
if 
  get_fading_status 
goto_if_false @MANSIO1_4097
wait 0
goto @MANSIO1_4073

:MANSIO1_4097
if 
  110@ == 1
goto_if_false @MANSIO1_4129
give_weapon_to_char $scplayer {weaponType} WeaponType.BrassKnuckles {ammo} 1
mark_model_as_no_longer_needed 331

:MANSIO1_4129
set_current_char_weapon $scplayer {weaponType} 109@
camera_reset_new_scriptables 
clear_char_tasks_immediately $scplayer
mark_model_as_no_longer_needed 330
if 
  $SLOT_status[0] >= 0
goto_if_false @MANSIO1_4174
$SLOT_status[0] = -2

:MANSIO1_4174
if 
  $SLOT_status[0] >= 0
goto_if_false @MANSIO1_4199
$SLOT_status[1] = -2

:MANSIO1_4199
set_char_coordinates $scplayer {x} 1096.562 {y} -825.7372 {z} 85.9453
if 
  49@ == 0
goto_if_false @MANSIO1_4244
goto @MANSIO1_5657

:MANSIO1_4244
49@ = 0
$ai_target_x = 1347.407
$ai_target_y = -811.7421
$ai_target_z = 96.9707
set_fixed_camera_position 1385.568 {y} -810.5753 {z} 78.1164 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1385.498 {y} -809.579 {z} 78.0669 {switchStyle} SwitchType.JumpCut
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
load_scene 1385.568 {y} -810.5753 {z} 78.1164
TIMERA = 0

:MANSIO1_4398
if 
  800 > TIMERA
goto_if_false @MANSIO1_4428
wait 0
goto @MANSIO1_4398

:MANSIO1_4428
do_fade 500 {direction} Fade.In
99@ = create_char PedType.Mission1 {modelId} 117 {x} 1485.536 {y} -818.0389 {z} 130.0
set_char_heading 99@ {heading} 90.0
set_char_area_visible 99@ {areaId} 0
start_new_streamed_script 1 {args} -1 -25.0 10.0 -3.0 -1.0 5.0 6.5 1 99@ 
stream_script 1
skip_cutscene_start_internal @MANSIO1_4864
TIMERA = 0

:MANSIO1_4536
if 
  1000 > TIMERA
goto_if_false @MANSIO1_4572
wait 0
set_time_of_day 3 {minutes} 0
goto @MANSIO1_4536

:MANSIO1_4572
TIMERA = 0
111@ = 0
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1385.568 {fromY} -810.5753 {fromZ} 78.1164 {toX} 1368.495 {toY} -855.6013 {toZ} 75.1238 {time} 12000 {ease} True
camera_set_vector_track 1385.498 {fromY} -809.579 {fromZ} 78.0669 {toX} 1369.012 {toY} -854.7825 {toZ} 75.3725 {time} 12000 {ease} True

:MANSIO1_4670
if 
  14000 > TIMERA
goto_if_false @MANSIO1_4826
wait 0
if and
  111@ == 0
  TIMERA > 3000
goto_if_false @MANSIO1_4813
100@ = create_char PedType.Mission1 {modelId} 118 {x} 1485.536 {y} -818.0389 {z} 130.0
set_char_heading 100@ {heading} 90.0
set_char_area_visible 100@ {areaId} 0
start_new_streamed_script 1 {args} -1 -25.0 10.0 -3.0 -1.0 5.0 6.5 1 100@ 
stream_script 1
111@ = 1

:MANSIO1_4813
set_time_of_day 3 {minutes} 0
goto @MANSIO1_4670

:MANSIO1_4826
do_fade 1000 {direction} Fade.Out

:MANSIO1_4833
if 
  get_fading_status 
goto_if_false @MANSIO1_4857
wait 0
goto @MANSIO1_4833

:MANSIO1_4857
49@ = 1

:MANSIO1_4864
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:MANSIO1_4872
if 
  get_fading_status 
goto_if_false @MANSIO1_4896
wait 0
goto @MANSIO1_4872

:MANSIO1_4896
camera_reset_new_scriptables 
restore_camera_jumpcut 
if 
  49@ == 0
goto_if_false @MANSIO1_4925
goto @MANSIO1_5657

:MANSIO1_4925
49@ = 0
115@ = 35.0
116@ = 20.0
114@ = 100.2
$ai_target_x = 1291.266
$ai_target_y = -788.1172
$ai_target_z = 96.7736
117@ = 1291.153
118@ = -788.1339
119@ = 95.0
load_scene_in_direction 1291.266 {y} -788.1172 {z} 96.7736 {heading} 122.0
request_model #OPMANS01_CUNTE
request_model #CEHOLLYHIL06
request_model #SUNSET22_LAWN

:MANSIO1_5059
if or
  not has_model_loaded #OPMANS01_CUNTE
  not has_model_loaded #CEHOLLYHIL06
  not has_model_loaded #SUNSET22_LAWN
goto_if_false @MANSIO1_5096
wait 0
goto @MANSIO1_5059

:MANSIO1_5096
167@ = 2
TIMERA = 0

:MANSIO1_5110
if 
  500 > TIMERA
goto_if_false @MANSIO1_5147
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_5110

:MANSIO1_5147
124@ = create_fx_system "SMOKE_FLARE" {x} 1291.454 {y} -775.3071 {z} 95.5 {ignoreBoundingChecks} True
125@ = create_fx_system "SMOKE_FLARE" {x} 1303.2111 {y} -788.2426 {z} 95.5 {ignoreBoundingChecks} True
126@ = create_fx_system "SMOKE_FLARE" {x} 1291.1591 {y} -800.4006 {z} 95.5 {ignoreBoundingChecks} True
101@ = create_char PedType.Mission1 {modelId} 118 {x} 1323.17 {y} -783.7548 {z} 117.0
set_char_heading 101@ {heading} 90.0
set_char_area_visible 101@ {areaId} 0
give_weapon_to_char 101@ {weaponType} WeaponType.M4 {ammo} 30000
start_new_streamed_script 1 {args} -1 -2.0 1.0 -3.0 -1.0 1.5 3.2 1 101@ 
stream_script 1
set_char_velocity 101@ {x} 0.0 {y} 0.0 {z} 2.0
set_char_decision_maker 101@ {handleOrTemplate} 34@
102@ = create_char PedType.Mission1 {modelId} 117 {x} 1323.442 {y} -798.6427 {z} 120.0
set_char_heading 102@ {heading} 90.0
set_char_area_visible 102@ {areaId} 0
give_weapon_to_char 102@ {weaponType} WeaponType.M4 {ammo} 30000
start_new_streamed_script 1 {args} -1 -2.0 1.0 -3.0 -1.0 1.0 2.5 1 102@ 
stream_script 1
set_char_velocity 102@ {x} 0.0 {y} 0.0 {z} 2.0
set_char_decision_maker 102@ {handleOrTemplate} 34@
do_fade 1000 {direction} Fade.In

:MANSIO1_5509
if 
  get_fading_status 
goto_if_false @MANSIO1_5547
wait 0
gosub @MANSIO1_10537
gosub @MANSIO1_18623
goto @MANSIO1_5509

:MANSIO1_5547
skip_cutscene_start_internal @MANSIO1_5655
TIMERA = 0

:MANSIO1_5561
if 
  8 > 107@
goto_if_false @MANSIO1_5624
wait 0
gosub @MANSIO1_9333
gosub @MANSIO1_10132
set_time_of_day 3 {minutes} 0
gosub @MANSIO1_10537
gosub @MANSIO1_18623
goto @MANSIO1_5561

:MANSIO1_5624
do_fade 500 {direction} Fade.Out

:MANSIO1_5631
if 
  get_fading_status 
goto_if_false @MANSIO1_5655
wait 0
goto @MANSIO1_5631

:MANSIO1_5655
skip_cutscene_end 

:MANSIO1_5657
do_fade 0 {direction} Fade.Out

:MANSIO1_5663
if 
  get_fading_status 
goto_if_false @MANSIO1_5687
wait 0
goto @MANSIO1_5663

:MANSIO1_5687
mark_model_as_no_longer_needed #OPMANS01_CUNTE
mark_model_as_no_longer_needed #CEHOLLYHIL06
camera_reset_new_scriptables 
restore_camera_jumpcut 
play_fx_system 124@
play_fx_system 125@
play_fx_system 126@
$ai_target_x = 1291.266
$ai_target_y = -788.1172
$ai_target_z = 96.7736
request_model 371
request_model #CARDBOARDBOX2
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1818

:MANSIO1_5763
if or
  not has_model_loaded 371
  not has_model_loaded #CARDBOARDBOX2
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @MANSIO1_5813
wait 0
167@ = 4
gosub @MANSIO1_10537
goto @MANSIO1_5763

:MANSIO1_5813
set_lvar_text_label 76@s = 'MAN1_DA'
set_lvar_int_to_constant 55@ = 23811
set_lvar_int_to_lvar_int 65@ = 131@
set_lvar_text_label 78@s = 'MAN1_DB'
set_lvar_int_to_constant 56@ = 23812
set_lvar_int_to_lvar_int 66@ = 132@
set_lvar_text_label 80@s = 'MAN1_DC'
set_lvar_int_to_constant 57@ = 23813
set_lvar_int_to_lvar_int 67@ = 131@
set_lvar_text_label 82@s = 'MAN1_DD'
set_lvar_int_to_constant 58@ = 23814
set_lvar_int_to_lvar_int 68@ = 132@
set_lvar_text_label 84@s = 'MAN1_DE'
set_lvar_int_to_constant 59@ = 23815
set_lvar_int_to_lvar_int 69@ = 131@
set_lvar_text_label 86@s = 'MAN1_DF'
set_lvar_int_to_constant 60@ = 23816
set_lvar_int_to_lvar_int 70@ = 132@
set_lvar_text_label 88@s = 'MAN1_DG'
set_lvar_int_to_constant 61@ = 23817
set_lvar_int_to_lvar_int 71@ = 132@
set_lvar_text_label 90@s = 'MAN1_DH'
set_lvar_int_to_constant 62@ = 23818
set_lvar_int_to_lvar_int 72@ = 133@
set_lvar_text_label 92@s = 'MAN1_DJ'
set_lvar_int_to_constant 63@ = 23819
set_lvar_int_to_lvar_int 73@ = 134@
129@ = create_object_no_offset #CARDBOARDBOX2 {x} 1601.759 {y} -785.1198 {z} 349.95
set_object_heading 129@ {heading} 90.0
freeze_object_position 129@ {state} True
set_object_visible 129@ {state} False
set_object_collision 129@ {state} False
restore_camera_jumpcut 
attach_char_to_object $scplayer {handle} 129@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 40.0 {weaponType} WeaponType.Unarmed
157@ = 0
load_scene 1601.759 {y} -785.1198 {z} 351.0
mark_char_as_no_longer_needed 159@
set_player_duck_button $player1 {enabled} False
set_player_jump_button $player1 {enabled} False
set_player_fire_button $player1 {enabled} False
switch_widescreen False
display_radar False
display_hud False
222@ = 2000
221@ = 0
220@ = 0.0
TIMERA = 0

:MANSIO1_6265
if 
  500 > TIMERA
goto_if_false @MANSIO1_6302
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_6265

:MANSIO1_6302
force_weather_now WeatherType.ExtraSunnyLa
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:MANSIO1_6320
if 
  get_fading_status 
goto_if_false @MANSIO1_6351
wait 0
gosub @MANSIO1_10537
goto @MANSIO1_6320

:MANSIO1_6351
TIMERA = 0
156@ = 0
75@ = 0

:MANSIO1_6372
if 
  5 > 75@
goto_if_false @MANSIO1_6627
wait 0
gosub @MANSIO1_10537
if 
  TIMERA > 1000
goto_if_false @MANSIO1_6427
gosub @MANSIO1_18875

:MANSIO1_6427
switch_start 156@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_6620 {caseNum1} 0 {caseLabel1} @MANSIO1_6490 {caseNum2} 1 {caseLabel2} @MANSIO1_6516 {caseNum3} 2 {caseLabel3} @MANSIO1_6566 {caseNum4} -1 {caseLabel4} @MANSIO1_6620 {caseNum5} -1 {caseLabel5} @MANSIO1_6620 {caseNum6} -1 {caseLabel6} @MANSIO1_6620 {caseNum7} -1 {caseLabel7} @MANSIO1_6620

:MANSIO1_6490
if 
  TIMERA <= 800
goto_if_false @MANSIO1_6516
goto @MANSIO1_6620

:MANSIO1_6516
set_var_int_to_lvar_int $load_sample = 55@(75@,10i)
set_var_text_label s$load_text = 76@(75@,10s)
start_new_script @A_ALAP 2 100 65@(75@,10i) 
156@ = 2

:MANSIO1_6566
if 
  $SLOT_status($preload_slot,2i) <> -3
goto_if_false @MANSIO1_6595
goto @MANSIO1_6620

:MANSIO1_6595
$SLOT_status($preload_slot,2i) = -4
75@ += 1
156@ = 1

:MANSIO1_6620
goto @MANSIO1_6372

:MANSIO1_6627
TIMERA = 0
41@ = get_game_timer 

:MANSIO1_6639
wait 0
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 158@ += 42@
43@ = 0

:MANSIO1_6687
if 
  4 > 43@
goto_if_false @MANSIO1_6731
add_int_lvar_to_int_lvar 160@(43@,4i) += 42@
43@ += 1
goto @MANSIO1_6687

:MANSIO1_6731
gosub @MANSIO1_7365
gosub @MANSIO1_10822
gosub @MANSIO1_10537
if 
  4 > 157@
goto_if_false @MANSIO1_6783
set_time_of_day 3 {minutes} 0
goto @MANSIO1_6847

:MANSIO1_6783
157@ = 0
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
51@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 1292.7 {y} -769.0 {z} 95.8
goto @MANSIO1_6854

:MANSIO1_6847
goto @MANSIO1_6639

:MANSIO1_6854
168@ = 4
set_lvar_int_to_constant 182@ = 108
set_lvar_int_to_constant 183@ = 109
set_lvar_int_to_constant 184@ = 108
set_lvar_int_to_constant 185@ = 109

:MANSIO1_6889
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MANSIO1_6915
goto @MANSIO1_38560

:MANSIO1_6915
if 
  52@ == 1
goto_if_false @MANSIO1_6940
goto @MANSIO1_38488

:MANSIO1_6940
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 158@ += 42@
43@ = 0

:MANSIO1_6984
if 
  3 > 43@
goto_if_false @MANSIO1_7040
add_int_lvar_to_int_lvar 160@(43@,4i) += 42@
add_int_lvar_to_int_lvar 164@(43@,3i) += 42@
43@ += 1
goto @MANSIO1_6984

:MANSIO1_7040
add_int_lvar_to_int_lvar 163@ += 42@
43@ = 0

:MANSIO1_7055
if 
  6 > 43@
goto_if_false @MANSIO1_7099
add_int_lvar_to_int_lvar 188@(43@,6i) += 42@
43@ += 1
goto @MANSIO1_7055

:MANSIO1_7099
gosub @MANSIO1_7776
gosub @MANSIO1_10822
if 
  157@ > 5
goto_if_false @MANSIO1_7138
gosub @MANSIO1_12648

:MANSIO1_7138
if 
  2 > 206@
goto_if_false @MANSIO1_7170
gosub @MANSIO1_16769
goto @MANSIO1_7177

:MANSIO1_7170
gosub @MANSIO1_14197

:MANSIO1_7177
211@ = 0
48@ = get_area_visible 
if 
  48@ <> 0
goto_if_false @MANSIO1_7358
if 
  locate_char_on_foot_2d $scplayer {x} 1257.995 {y} -785.4104 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO1_7358
48@ = 0

:MANSIO1_7252
if 
  48@ == 0
goto_if_false @MANSIO1_7289
48@ = get_char_area_visible $scplayer
wait 0
goto @MANSIO1_7252

:MANSIO1_7289
do_fade 0 {direction} Fade.Out

:MANSIO1_7295
if 
  get_fading_status 
goto_if_false @MANSIO1_7319
wait 0
goto @MANSIO1_7295

:MANSIO1_7319
clear_area_of_chars 1288.0 {leftBottomY} -772.0 {leftBottomZ} 1080.0 {rightTopX} 1260.5 {rightTopY} -787.5 {rightTopZ} 1100.0
goto @MANSIO1_19435

:MANSIO1_7358
goto @MANSIO1_6889

:MANSIO1_7365
switch_start 157@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_7774 {caseNum1} 0 {caseLabel1} @MANSIO1_7428 {caseNum2} 1 {caseLabel2} @MANSIO1_7538 {caseNum3} 2 {caseLabel3} @MANSIO1_7556 {caseNum4} 3 {caseLabel4} @MANSIO1_7633 {caseNum5} -1 {caseLabel5} @MANSIO1_7774 {caseNum6} -1 {caseLabel6} @MANSIO1_7774 {caseNum7} -1 {caseLabel7} @MANSIO1_7774

:MANSIO1_7428
if 
  TIMERA > 8300
goto_if_false @MANSIO1_7531
detach_char_from_car $scplayer
set_player_control $player1 {state} False
task_go_to_coord_any_means $scplayer {x} 1584.292 {y} -784.9141 {z} 347.0 {speed} MoveState.Sprint {vehicle} -1
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @MANSIO1_7510
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1

:MANSIO1_7510
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
221@ = 2
157@ += 1

:MANSIO1_7531
goto @MANSIO1_7774

:MANSIO1_7538
restore_camera_jumpcut 
set_camera_behind_player 
157@ += 1
goto @MANSIO1_7774

:MANSIO1_7556
if 
  locate_char_on_foot_2d $scplayer {x} 1584.292 {y} -784.9141 {xRadius} 2.75 {yRadius} 2.75 {drawSphere} False
goto_if_false @MANSIO1_7626
task_jump $scplayer {state} True
158@ = 0
221@ = 3
shake_cam 0
157@ += 1

:MANSIO1_7626
goto @MANSIO1_7774

:MANSIO1_7633
if 
  158@ > 700
goto_if_false @MANSIO1_7767
158@ = 0
display_zone_names True
delete_object 127@
delete_object 128@
delete_object 129@
mark_model_as_no_longer_needed #CARGO_REAR
mark_model_as_no_longer_needed #D9_RAMP
set_player_control $player1 {state} True
set_player_duck_button $player1 {enabled} True
set_player_jump_button $player1 {enabled} True
set_player_fire_button $player1 {enabled} True
display_radar True
display_hud True
print_now 'MAN1_03' {time} 8000 {flag} 1
47@ = add_blip_for_coord 1290.491 {y} -788.3314 {z} 95.4531
157@ += 1

:MANSIO1_7767
goto @MANSIO1_7774

:MANSIO1_7774
return 

:MANSIO1_7776
switch_start 157@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_9331 {caseNum1} 0 {caseLabel1} @MANSIO1_7904 {caseNum2} 1 {caseLabel2} @MANSIO1_7968 {caseNum3} 2 {caseLabel3} @MANSIO1_7998 {caseNum4} 3 {caseLabel4} @MANSIO1_8216 {caseNum5} 4 {caseLabel5} @MANSIO1_8262 {caseNum6} 5 {caseLabel6} @MANSIO1_8315 {caseNum7} 6 {caseLabel7} @MANSIO1_8964
switch_continued 7 {caseLabel1} @MANSIO1_9081 {caseNum2} 8 {caseLabel2} @MANSIO1_9150 {caseNum3} 9 {caseLabel3} @MANSIO1_9211 {caseNum4} 10 {caseLabel4} @MANSIO1_9271 {caseNum5} -1 {caseLabel5} @MANSIO1_9331 {caseNum6} -1 {caseLabel6} @MANSIO1_9331 {caseNum7} -1 {caseLabel7} @MANSIO1_9331 {caseNum8} -1 {caseLabel8} @MANSIO1_9331 {caseNum9} -1 {caseLabel9} @MANSIO1_9331

:MANSIO1_7904
if 
  $player_landed == 2
goto_if_false @MANSIO1_7936
157@ = 2
goto @MANSIO1_7961

:MANSIO1_7936
if 
  $player_landed == 3
goto_if_false @MANSIO1_7961
157@ += 1

:MANSIO1_7961
goto @MANSIO1_9331

:MANSIO1_7968
if 
  not is_char_in_air $scplayer
goto_if_false @MANSIO1_7991
157@ += 1

:MANSIO1_7991
goto @MANSIO1_9331

:MANSIO1_7998
208@ = 0
gosub @MANSIO1_17063
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO1_8131
if 
  210@ <> -1
goto_if_false @MANSIO1_8108
if 
  6 > 210@
goto_if_false @MANSIO1_8078
157@ = 5
goto @MANSIO1_8101

:MANSIO1_8078
print_now 'MAN1_04' {time} 8000 {flag} 1
157@ = 4

:MANSIO1_8101
goto @MANSIO1_8131

:MANSIO1_8108
print_now 'MAN1_04' {time} 8000 {flag} 1
157@ = 3

:MANSIO1_8131
43@ = 0

:MANSIO1_8138
if 
  4 > 43@
goto_if_false @MANSIO1_8209
if 
  not is_char_dead 170@(43@,6i)
goto_if_false @MANSIO1_8195
set_char_proofs 170@(43@,6i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_8195
43@ += 1
goto @MANSIO1_8138

:MANSIO1_8209
goto @MANSIO1_9331

:MANSIO1_8216
208@ = 0
gosub @MANSIO1_17063
if 
  210@ <> -1
goto_if_false @MANSIO1_8255
157@ += 1

:MANSIO1_8255
goto @MANSIO1_9331

:MANSIO1_8262
208@ = 0
gosub @MANSIO1_17063
if and
  210@ <> -1
  6 > 210@
goto_if_false @MANSIO1_8308
157@ += 1

:MANSIO1_8308
goto @MANSIO1_9331

:MANSIO1_8315
remove_blip 47@
if 
  168@ == 0
goto_if_false @MANSIO1_8361
print_now 'MAN1_06' {time} 8000 {flag} 1
goto @MANSIO1_8377

:MANSIO1_8361
print_now 'MAN1_05' {time} 8000 {flag} 1

:MANSIO1_8377
clear_wanted_level $player1
set_max_wanted_level 0
143@ = create_char PedType.Mission1 {modelId} 117 {x} 1000.0 {y} -785.0 {z} 200.0
set_char_heading 143@ {heading} 270.0
set_char_area_visible 143@ {areaId} 0
146@ = add_blip_for_char 143@
change_blip_display 146@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 146@ {state} True
give_weapon_to_char 143@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 143@ {weaponType} WeaponType.M4
set_char_never_targetted 143@ {state} True
set_char_decision_maker 143@ {handleOrTemplate} 34@
149@ = 0
164@ = 0
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 143@ 
stream_script 1
144@ = create_char PedType.Mission1 {modelId} 118 {x} 1000.0 {y} -770.0 {z} 200.0
set_char_heading 144@ {heading} 270.0
set_char_area_visible 144@ {areaId} 0
147@ = add_blip_for_char 144@
change_blip_display 147@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 147@ {state} True
give_weapon_to_char 144@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 144@ {weaponType} WeaponType.M4
set_char_never_targetted 144@ {state} True
set_char_decision_maker 144@ {handleOrTemplate} 34@
150@ = 0
165@ = 0
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 144@ 
stream_script 1
145@ = create_char PedType.Mission1 {modelId} 117 {x} 1000.0 {y} -800.0 {z} 200.0
set_char_heading 145@ {heading} 270.0
set_char_area_visible 145@ {areaId} 0
148@ = add_blip_for_char 145@
change_blip_display 148@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 148@ {state} True
give_weapon_to_char 145@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 145@ {weaponType} WeaponType.M4
set_char_never_targetted 145@ {state} True
set_char_decision_maker 145@ {handleOrTemplate} 34@
151@ = 0
166@ = 0
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 145@ 
stream_script 1
169@ = 0
if 
  not is_char_dead 131@
goto_if_false @MANSIO1_8881
set_char_health 131@ {health} 20

:MANSIO1_8881
if 
  not is_char_dead 132@
goto_if_false @MANSIO1_8904
set_char_health 132@ {health} 40

:MANSIO1_8904
if 
  not is_char_dead 133@
goto_if_false @MANSIO1_8927
set_char_health 133@ {health} 30

:MANSIO1_8927
if 
  not is_char_dead 134@
goto_if_false @MANSIO1_8950
set_char_health 134@ {health} 25

:MANSIO1_8950
157@ += 1
goto @MANSIO1_9331

:MANSIO1_8964
if 
  169@ == 3
goto_if_false @MANSIO1_9074
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_9051
print_now 'MAN1_09' {time} 8000 {flag} 1
157@ = 8
goto @MANSIO1_9074

:MANSIO1_9051
print_now 'MAN1_10' {time} 8000 {flag} 1
157@ = 7

:MANSIO1_9074
goto @MANSIO1_9331

:MANSIO1_9081
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_9143
print_now 'MAN1_09' {time} 8000 {flag} 1
157@ = 8

:MANSIO1_9143
goto @MANSIO1_9331

:MANSIO1_9150
gosub @MANSIO1_13336
206@ = 3
47@ = add_blip_for_coord 1257.995 {y} -785.4104 {z} 91.0302
switch_entry_exit 'MADDOGS' {state} True
157@ += 1
goto @MANSIO1_9331

:MANSIO1_9211
208@ = 0
gosub @MANSIO1_17063
if or
  210@ == -1
  210@ > 10
goto_if_false @MANSIO1_9264
gosub @MANSIO1_13440
157@ += 1

:MANSIO1_9264
goto @MANSIO1_9331

:MANSIO1_9271
208@ = 0
gosub @MANSIO1_17063
if and
  210@ <> -1
  10 >= 210@
goto_if_false @MANSIO1_9324
gosub @MANSIO1_13336
157@ -= 1

:MANSIO1_9324
goto @MANSIO1_9331

:MANSIO1_9331
return 

:MANSIO1_9333
if 
  not is_char_dead 101@
goto_if_false @MANSIO1_10118
switch_start 107@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10111 {caseNum1} 0 {caseLabel1} @MANSIO1_9477 {caseNum2} 1 {caseLabel2} @MANSIO1_9574 {caseNum3} 2 {caseLabel3} @MANSIO1_9713 {caseNum4} 3 {caseLabel4} @MANSIO1_9765 {caseNum5} 4 {caseLabel5} @MANSIO1_9887 {caseNum6} 5 {caseLabel6} @MANSIO1_9929 {caseNum7} 6 {caseLabel7} @MANSIO1_10025
switch_continued 7 {caseLabel1} @MANSIO1_10078 {caseNum2} -1 {caseLabel2} @MANSIO1_10111 {caseNum3} -1 {caseLabel3} @MANSIO1_10111 {caseNum4} -1 {caseLabel4} @MANSIO1_10111 {caseNum5} -1 {caseLabel5} @MANSIO1_10111 {caseNum6} -1 {caseLabel6} @MANSIO1_10111 {caseNum7} -1 {caseLabel7} @MANSIO1_10111 {caseNum8} -1 {caseLabel8} @MANSIO1_10111 {caseNum9} -1 {caseLabel9} @MANSIO1_10111

:MANSIO1_9477
if 
  is_char_playing_anim 101@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_9525
105@ = 1
107@ += 1
goto @MANSIO1_9567

:MANSIO1_9525
$x, $y, $z = get_char_coordinates 101@
if 
  99.0 > $z
goto_if_false @MANSIO1_9567
218@ = 1

:MANSIO1_9567
goto @MANSIO1_10111

:MANSIO1_9574
if 
  not is_char_playing_anim 101@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_9706
45@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1291.519 {y} -776.0716 {z} 95.4531 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 400
task_stand_still -1 {time} 400
task_go_straight_to_coord -1 {x} 1280.995 {y} -780.3347 {z} 95.461 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 110.0
close_sequence_task 45@
perform_sequence_task 101@ {sequence} 45@
clear_sequence_task 45@
107@ += 1

:MANSIO1_9706
goto @MANSIO1_10111

:MANSIO1_9713
46@ = get_sequence_progress 101@
if 
  46@ == 4
goto_if_false @MANSIO1_9758
play_fx_system 124@
TIMERA = 0
107@ += 1

:MANSIO1_9758
goto @MANSIO1_10111

:MANSIO1_9765
if 
  TIMERA > 1500
goto_if_false @MANSIO1_9880
107@ += 1
159@ = create_char PedType.Mission2 {modelId} 108 {x} 1281.413 {y} -785.8877 {z} 91.0302
set_char_heading 159@ {heading} 90.0
set_char_area_visible 159@ {areaId} 0
task_go_straight_to_coord 159@ {x} 1268.337 {y} -785.9549 {z} 94.9688 {speed} MoveState.Walk {time} -1
set_char_decision_maker 159@ {handleOrTemplate} 34@
give_weapon_to_char 159@ {weaponType} WeaponType.Mp5 {ammo} 1
set_current_char_weapon 159@ {weaponType} WeaponType.Mp5

:MANSIO1_9880
goto @MANSIO1_10111

:MANSIO1_9887
if 
  190.0 > 115@
goto_if_false @MANSIO1_9915
goto @MANSIO1_10111

:MANSIO1_9915
TIMERA = 0
107@ += 1

:MANSIO1_9929
if 
  TIMERA > 2000
goto_if_false @MANSIO1_10018
if 
  not is_char_dead 159@
goto_if_false @MANSIO1_9978
$x, $y, $z = get_char_coordinates 159@

:MANSIO1_9978
$z += 1.0
task_shoot_at_coord 101@ {x} $x {y} $y {z} $z {time} 100
TIMERA = 0
107@ += 1

:MANSIO1_10018
goto @MANSIO1_10111

:MANSIO1_10025
if 
  TIMERA > 50
goto_if_false @MANSIO1_10071
if 
  not is_char_dead 159@
goto_if_false @MANSIO1_10064
explode_char_head 159@

:MANSIO1_10064
107@ += 1

:MANSIO1_10071
goto @MANSIO1_10111

:MANSIO1_10078
if 
  TIMERA > 2000
goto_if_false @MANSIO1_10104
107@ += 1

:MANSIO1_10104
goto @MANSIO1_10111

:MANSIO1_10111
goto @MANSIO1_10130

:MANSIO1_10118
mark_char_as_no_longer_needed 101@
107@ = -1

:MANSIO1_10130
return 

:MANSIO1_10132
if 
  not is_char_dead 102@
goto_if_false @MANSIO1_10523
switch_start 108@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10516 {caseNum1} 0 {caseLabel1} @MANSIO1_10211 {caseNum2} 1 {caseLabel2} @MANSIO1_10259 {caseNum3} 2 {caseLabel3} @MANSIO1_10426 {caseNum4} 3 {caseLabel4} @MANSIO1_10471 {caseNum5} -1 {caseLabel5} @MANSIO1_10516 {caseNum6} -1 {caseLabel6} @MANSIO1_10516 {caseNum7} -1 {caseLabel7} @MANSIO1_10516

:MANSIO1_10211
if 
  is_char_playing_anim 102@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10252
106@ = 1
108@ += 1

:MANSIO1_10252
goto @MANSIO1_10516

:MANSIO1_10259
if 
  not is_char_playing_anim 102@ {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10419
45@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1291.213 {y} -799.4603 {z} 95.4531 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 400
task_stand_still -1 {time} 400
task_go_straight_to_coord -1 {x} 1302.196 {y} -788.2992 {z} 95.4531 {speed} MoveState.Run {time} -1
task_stand_still -1 {time} 400
task_stand_still -1 {time} 400
task_go_straight_to_coord -1 {x} 1292.3831 {y} -787.4926 {z} 95.4476 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 102@ {sequence} 45@
clear_sequence_task 45@
108@ += 1

:MANSIO1_10419
goto @MANSIO1_10516

:MANSIO1_10426
46@ = get_sequence_progress 102@
if 
  46@ == 3
goto_if_false @MANSIO1_10464
play_fx_system 126@
108@ += 1

:MANSIO1_10464
goto @MANSIO1_10516

:MANSIO1_10471
46@ = get_sequence_progress 102@
if 
  46@ == 6
goto_if_false @MANSIO1_10509
play_fx_system 125@
108@ += 1

:MANSIO1_10509
goto @MANSIO1_10516

:MANSIO1_10516
goto @MANSIO1_10535

:MANSIO1_10523
mark_char_as_no_longer_needed 102@
108@ = -1

:MANSIO1_10535
return 

:MANSIO1_10537
43@ = 0

:MANSIO1_10544
if 
  is_int_lvar_greater_than_int_lvar 167@ > 43@
goto_if_false @MANSIO1_10820
if 
  103@(43@,4i) <> -1
goto_if_false @MANSIO1_10806
if 
  not is_char_dead 99@(43@,4i)
goto_if_false @MANSIO1_10786
switch_start 103@(43@,4i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_10779 {caseNum1} 0 {caseLabel1} @MANSIO1_10672 {caseNum2} 1 {caseLabel2} @MANSIO1_10721 {caseNum3} -1 {caseLabel3} @MANSIO1_10779 {caseNum4} -1 {caseLabel4} @MANSIO1_10779 {caseNum5} -1 {caseLabel5} @MANSIO1_10779 {caseNum6} -1 {caseLabel6} @MANSIO1_10779 {caseNum7} -1 {caseLabel7} @MANSIO1_10779

:MANSIO1_10672
if 
  is_char_playing_anim 99@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10714
103@(43@,4i) += 1

:MANSIO1_10714
goto @MANSIO1_10779

:MANSIO1_10721
if 
  not is_char_playing_anim 99@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_10772
task_die 99@(43@,4i)
103@(43@,4i) += 1

:MANSIO1_10772
goto @MANSIO1_10779

:MANSIO1_10779
goto @MANSIO1_10806

:MANSIO1_10786
mark_char_as_no_longer_needed 99@(43@,4i)
103@(43@,4i) = -1

:MANSIO1_10806
43@ += 1
goto @MANSIO1_10544

:MANSIO1_10820
return 

:MANSIO1_10822
43@ = 0

:MANSIO1_10829
if 
  4 > 43@
goto_if_false @MANSIO1_11979
if 
  135@(43@,4i) <> -1
goto_if_false @MANSIO1_11965
if 
  not is_char_dead 131@(43@,4i)
goto_if_false @MANSIO1_11938
switch_start 135@(43@,4i) {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_11931 {caseNum1} 0 {caseLabel1} @MANSIO1_11021 {caseNum2} 1 {caseLabel2} @MANSIO1_11209 {caseNum3} 2 {caseLabel3} @MANSIO1_11223 {caseNum4} 3 {caseLabel4} @MANSIO1_11293 {caseNum5} 4 {caseLabel5} @MANSIO1_11320 {caseNum6} 5 {caseLabel6} @MANSIO1_11388 {caseNum7} 6 {caseLabel7} @MANSIO1_11437
switch_continued 7 {caseLabel1} @MANSIO1_11549 {caseNum2} 8 {caseLabel2} @MANSIO1_11648 {caseNum3} 9 {caseLabel3} @MANSIO1_11740 {caseNum4} 10 {caseLabel4} @MANSIO1_11839 {caseNum5} -1 {caseLabel5} @MANSIO1_11931 {caseNum6} -1 {caseLabel6} @MANSIO1_11931 {caseNum7} -1 {caseLabel7} @MANSIO1_11931 {caseNum8} -1 {caseLabel8} @MANSIO1_11931 {caseNum9} -1 {caseLabel9} @MANSIO1_11931

:MANSIO1_11021
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 139@(43@,4i)
goto_if_false @MANSIO1_11202
if or
  43@ == 0
  43@ == 2
goto_if_false @MANSIO1_11104
task_go_to_coord_any_means 131@(43@,4i) {x} 1585.293 {y} -786.5728 {z} 347.0 {speed} MoveState.Run {vehicle} -1
goto @MANSIO1_11191

:MANSIO1_11104
if 
  43@ == 1
goto_if_false @MANSIO1_11163
set_var_int_to_constant $load_sample = 23816
set_var_text_label s$load_text = 'MAN1_DF'
start_new_script @A_ALAP 2 100 65@(75@,10i) 

:MANSIO1_11163
task_go_to_coord_any_means 131@(43@,4i) {x} 1585.323 {y} -783.2303 {z} 347.0 {speed} MoveState.Run {vehicle} -1

:MANSIO1_11191
135@(43@,4i) += 1

:MANSIO1_11202
goto @MANSIO1_11931

:MANSIO1_11209
gosub @MANSIO1_11981
goto @MANSIO1_11931

:MANSIO1_11223
if 
  160@(43@,4i) > 1200
goto_if_false @MANSIO1_11286
drop_object 131@(43@,4i) {state} False
160@(43@,4i) = 0
gosub @MANSIO1_12371
135@(43@,4i) += 1

:MANSIO1_11286
goto @MANSIO1_11931

:MANSIO1_11293
delete_object 152@(43@,4i)
135@(43@,4i) += 1
goto @MANSIO1_11931

:MANSIO1_11320
if 
  160@(43@,4i) >= 40000
goto_if_false @MANSIO1_11381
if 
  43@ == 0
goto_if_false @MANSIO1_11370
gosub @MANSIO1_13530

:MANSIO1_11370
135@(43@,4i) += 1

:MANSIO1_11381
goto @MANSIO1_11931

:MANSIO1_11388
if 
  is_char_playing_anim 131@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_11430
135@(43@,4i) += 1

:MANSIO1_11430
goto @MANSIO1_11931

:MANSIO1_11437
if 
  not is_char_playing_anim 131@(43@,4i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_11542
if 
  2 > 206@
goto_if_false @MANSIO1_11500
206@ = 2
gosub @MANSIO1_14039

:MANSIO1_11500
set_char_proofs 131@(43@,4i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_lvar_int_to_lvar_int 135@(43@,4i) = 43@
135@(43@,4i) += 7

:MANSIO1_11542
goto @MANSIO1_11931

:MANSIO1_11549
set_char_allowed_to_duck 131@ {state} False
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1289.698 {y} -771.6924 {z} 94.954 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 100.0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 131@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11648
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1285.824 {y} -772.1167 {z} 94.953 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 115.0
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 132@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11740
set_char_allowed_to_duck 133@ {state} False
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1277.87 {y} -789.9062 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 90.0
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 133@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11839
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1278.609 {y} -783.3164 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 95.0
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 134@ {sequence} 45@
clear_sequence_task 45@
135@(43@,4i) = 11
goto @MANSIO1_11931

:MANSIO1_11931
goto @MANSIO1_11965

:MANSIO1_11938
mark_char_as_no_longer_needed 131@(43@,4i)
168@ -= 1
135@(43@,4i) = -1

:MANSIO1_11965
43@ += 1
goto @MANSIO1_10829

:MANSIO1_11979
return 

:MANSIO1_11981
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_12369 {caseNum1} 0 {caseLabel1} @MANSIO1_12044 {caseNum2} 1 {caseLabel2} @MANSIO1_12192 {caseNum3} 2 {caseLabel3} @MANSIO1_12044 {caseNum4} 3 {caseLabel4} @MANSIO1_12192 {caseNum5} -1 {caseLabel5} @MANSIO1_12369 {caseNum6} -1 {caseLabel6} @MANSIO1_12369 {caseNum7} -1 {caseLabel7} @MANSIO1_12369

:MANSIO1_12044
if 
  not locate_char_on_foot_2d 131@(43@,4i) {x} 1585.293 {y} -786.5728 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO1_12093
goto @MANSIO1_12369

:MANSIO1_12093
if 
  43@ == 2
goto_if_false @MANSIO1_12152
set_var_int_to_constant $load_sample = 23818
set_var_text_label s$load_text = 'MAN1_DH'
start_new_script @A_ALAP 2 100 131@(43@,4i) 

:MANSIO1_12152
task_jump 131@(43@,4i) {state} True
160@(43@,4i) = 0
135@(43@,4i) += 1
goto @MANSIO1_12369

:MANSIO1_12192
if 
  not locate_char_on_foot_2d 131@(43@,4i) {x} 1585.323 {y} -783.2303 {xRadius} 1.2 {yRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO1_12241
goto @MANSIO1_12369

:MANSIO1_12241
if 
  43@ == 1
goto_if_false @MANSIO1_12288
set_var_int_to_constant $load_sample = 23817
set_var_text_label s$load_text = 'MAN1_DG'
goto @MANSIO1_12310

:MANSIO1_12288
set_var_int_to_constant $load_sample = 23819
set_var_text_label s$load_text = 'MAN1_DJ'

:MANSIO1_12310
start_new_script @A_ALAP 2 100 131@(43@,4i) 
task_jump 131@(43@,4i) {state} True
160@(43@,4i) = 0
135@(43@,4i) += 1
goto @MANSIO1_12369

:MANSIO1_12369
return 

:MANSIO1_12371
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_12646 {caseNum1} 0 {caseLabel1} @MANSIO1_12434 {caseNum2} 1 {caseLabel2} @MANSIO1_12487 {caseNum3} 2 {caseLabel3} @MANSIO1_12540 {caseNum4} 3 {caseLabel4} @MANSIO1_12593 {caseNum5} -1 {caseLabel5} @MANSIO1_12646 {caseNum6} -1 {caseLabel6} @MANSIO1_12646 {caseNum7} -1 {caseLabel7} @MANSIO1_12646

:MANSIO1_12434
start_new_streamed_script 1 {args} -1 -29.0 14.0 -3.0 -1.0 5.25 6.75 1 131@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12487
start_new_streamed_script 1 {args} -1 -28.0 14.0 -3.0 -1.0 5.25 6.75 1 132@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12540
start_new_streamed_script 1 {args} -1 -27.0 14.0 -3.0 -1.0 5.25 6.75 1 133@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12593
start_new_streamed_script 1 {args} -1 -26.0 14.0 -3.0 -1.0 5.25 6.75 1 134@ 
stream_script 1
goto @MANSIO1_12646

:MANSIO1_12646
return 

:MANSIO1_12648
43@ = 0

:MANSIO1_12655
if 
  3 > 43@
goto_if_false @MANSIO1_13334
if 
  not is_char_dead 143@(43@,3i)
goto_if_false @MANSIO1_13299
switch_start 149@(43@,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_13292 {caseNum1} 0 {caseLabel1} @MANSIO1_12760 {caseNum2} 1 {caseLabel2} @MANSIO1_12899 {caseNum3} 2 {caseLabel3} @MANSIO1_12948 {caseNum4} 3 {caseLabel4} @MANSIO1_13016 {caseNum5} 4 {caseLabel5} @MANSIO1_13108 {caseNum6} 5 {caseLabel6} @MANSIO1_13200 {caseNum7} -1 {caseLabel7} @MANSIO1_13292

:MANSIO1_12760
if 
  164@(43@,3i) >= 35000
goto_if_false @MANSIO1_12892
if 
  43@ == 0
goto_if_false @MANSIO1_12881
208@ = 0
gosub @MANSIO1_17063
if and
  6 > 210@
  210@ <> -1
goto_if_false @MANSIO1_12865
print_now 'MAN1_07' {time} 8000 {flag} 1
goto @MANSIO1_12881

:MANSIO1_12865
print_now 'MAN1_08' {time} 8000 {flag} 1

:MANSIO1_12881
149@(43@,3i) += 1

:MANSIO1_12892
goto @MANSIO1_13292

:MANSIO1_12899
if 
  is_char_playing_anim 143@(43@,3i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_12941
149@(43@,3i) += 1

:MANSIO1_12941
goto @MANSIO1_13292

:MANSIO1_12948
if 
  not is_char_playing_anim 143@(43@,3i) {animationName} "PARA_LAND"
goto_if_false @MANSIO1_13009
169@ += 1
set_lvar_int_to_lvar_int 149@(43@,3i) = 43@
149@(43@,3i) += 3

:MANSIO1_13009
goto @MANSIO1_13292

:MANSIO1_13016
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1279.681 {y} -786.5801 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 86.7391
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 143@ {sequence} 45@
clear_sequence_task 45@
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13108
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1289.5649 {y} -775.1545 {z} 95.4476 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 76.697
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 144@ {sequence} 45@
clear_sequence_task 45@
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13200
45@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 1281.683 {y} -779.4835 {z} 95.4531 {speed} MoveState.Run {vehicle} -1
task_achieve_heading -1 {heading} 84.4451
task_toggle_duck -1 {state} False
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 145@ {sequence} 45@
clear_sequence_task 45@
149@(43@,3i) = 6
goto @MANSIO1_13292

:MANSIO1_13292
goto @MANSIO1_13320

:MANSIO1_13299
52@ = 1
set_lvar_text_label 53@s = 'MAN1_11'

:MANSIO1_13320
43@ += 1
goto @MANSIO1_12655

:MANSIO1_13334
return 

:MANSIO1_13336
43@ = 0

:MANSIO1_13343
if 
  3 > 43@
goto_if_false @MANSIO1_13438
if 
  not is_char_dead 143@(43@,3i)
goto_if_false @MANSIO1_13424
clear_char_tasks_immediately 143@(43@,3i)
task_stay_in_same_place 143@(43@,3i) {state} False
set_group_member 44@ {handle} 143@(43@,3i)
set_char_never_leaves_group 143@(43@,3i) {state} True

:MANSIO1_13424
43@ += 1
goto @MANSIO1_13343

:MANSIO1_13438
return 

:MANSIO1_13440
43@ = 0

:MANSIO1_13447
if 
  3 > 43@
goto_if_false @MANSIO1_13528
if 
  not is_char_dead 143@(43@,3i)
goto_if_false @MANSIO1_13514
clear_char_tasks 143@(43@,3i)
task_stay_in_same_place 143@(43@,3i) {state} False
remove_char_from_group 143@(43@,3i)

:MANSIO1_13514
43@ += 1
goto @MANSIO1_13447

:MANSIO1_13528
return 

:MANSIO1_13530
170@ = create_char PedType.Mission2 {modelId} 108 {x} 1268.069 {y} -783.494 {z} 94.961
set_char_heading 170@ {heading} 275.8136
set_char_health 170@ {health} 200
set_char_max_health 170@ {maxHealth} 200
set_char_decision_maker 170@ {handleOrTemplate} 34@
give_weapon_to_char 170@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 170@ {weaponType} WeaponType.Mp5
set_char_proofs 170@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_is_target_priority 170@ {state} True
set_char_signal_after_kill 170@ {state} False
176@ = -2
171@ = create_char PedType.Mission2 {modelId} 109 {x} 1271.156 {y} -780.8453 {z} 94.9663
set_char_heading 171@ {heading} 254.8986
set_char_health 171@ {health} 200
set_char_max_health 171@ {maxHealth} 200
set_char_decision_maker 171@ {handleOrTemplate} 34@
give_weapon_to_char 171@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 171@ {weaponType} WeaponType.Mp5
set_char_proofs 171@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_is_target_priority 171@ {state} True
set_char_signal_after_kill 171@ {state} False
177@ = -2
172@ = create_char PedType.Mission2 {modelId} 108 {x} 1267.7371 {y} -777.1963 {z} 94.9577
set_char_heading 172@ {heading} 302.1641
set_char_health 172@ {health} 200
set_char_max_health 172@ {maxHealth} 200
set_char_decision_maker 172@ {handleOrTemplate} 34@
give_weapon_to_char 172@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 172@ {weaponType} WeaponType.Mp5
set_char_is_target_priority 172@ {state} True
set_char_signal_after_kill 172@ {state} False
178@ = -2
173@ = create_char PedType.Mission2 {modelId} 109 {x} 1272.5341 {y} -774.9141 {z} 94.9466
set_char_heading 173@ {heading} 249.014
set_char_health 173@ {health} 200
set_char_max_health 173@ {maxHealth} 200
set_char_decision_maker 173@ {handleOrTemplate} 34@
give_weapon_to_char 173@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 173@ {weaponType} WeaponType.Mp5
set_char_is_target_priority 173@ {state} True
set_char_signal_after_kill 173@ {state} False
179@ = -2
if 
  2 > 157@
goto_if_false @MANSIO1_14022
set_char_proofs 170@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs 171@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs 172@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs 173@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14022
TIMERB = 3000
206@ = 1
return 

:MANSIO1_14039
if 
  not is_char_dead 170@
goto_if_false @MANSIO1_14078
set_char_decision_maker 170@ {handleOrTemplate} 36@
set_char_proofs 170@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14078
if 
  not is_char_dead 171@
goto_if_false @MANSIO1_14117
set_char_decision_maker 171@ {handleOrTemplate} 36@
set_char_proofs 171@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14117
if 
  not is_char_dead 172@
goto_if_false @MANSIO1_14156
set_char_decision_maker 172@ {handleOrTemplate} 36@
set_char_proofs 172@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14156
if 
  not is_char_dead 173@
goto_if_false @MANSIO1_14195
set_char_decision_maker 173@ {handleOrTemplate} 36@
set_char_proofs 173@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_14195
return 

:MANSIO1_14197
43@ = 0

:MANSIO1_14204
if 
  4 > 43@
goto_if_false @MANSIO1_15096
if 
  not is_char_dead 170@(43@,6i)
goto_if_false @MANSIO1_14449
switch_start 176@(43@,6i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_14442 {caseNum1} 0 {caseLabel1} @MANSIO1_14309 {caseNum2} 1 {caseLabel2} @MANSIO1_14358 {caseNum3} 2 {caseLabel3} @MANSIO1_14406 {caseNum4} -1 {caseLabel4} @MANSIO1_14442 {caseNum5} -1 {caseLabel5} @MANSIO1_14442 {caseNum6} -1 {caseLabel6} @MANSIO1_14442 {caseNum7} -1 {caseLabel7} @MANSIO1_14442

:MANSIO1_14309
if 
  188@(43@,6i) > 100
goto_if_false @MANSIO1_14351
delete_object 194@(43@,6i)
176@(43@,6i) += 1

:MANSIO1_14351
goto @MANSIO1_14442

:MANSIO1_14358
46@ = get_sequence_progress 170@(43@,6i)
if 
  46@ >= 2
goto_if_false @MANSIO1_14399
176@(43@,6i) += 1

:MANSIO1_14399
goto @MANSIO1_14442

:MANSIO1_14406
$x, $y, $z = get_char_coordinates 170@(43@,6i)
176@(43@,6i) += 1
goto @MANSIO1_14442

:MANSIO1_14442
goto @MANSIO1_15082

:MANSIO1_14449
if 
  176@(43@,6i) <> -1
goto_if_false @MANSIO1_14500
188@(43@,6i) = 0
176@(43@,6i) = -1
goto @MANSIO1_15082

:MANSIO1_14500
if 
  188@(43@,6i) > 2000
goto_if_false @MANSIO1_15082
remove_char_elegantly 170@(43@,6i)
if 
  3 > 206@
goto_if_false @MANSIO1_15082
208@ = 0
gosub @MANSIO1_17063
if or
  210@ <> -1
  212@ <> 0
goto_if_false @MANSIO1_15082
set_lvar_int_to_lvar_int 205@ = 43@
if 
  210@ == -1
goto_if_false @MANSIO1_14647
if 
  212@ <> 0
goto_if_false @MANSIO1_14640
gosub @MANSIO1_15445

:MANSIO1_14640
goto @MANSIO1_14654

:MANSIO1_14647
gosub @MANSIO1_15098

:MANSIO1_14654
create_object #CARDBOARDBOX2 {x} 200@ {y} 201@ {z} 93.0 {var_handle} 194@(43@,6i)
set_object_dynamic 194@(43@,6i) {state} False
set_object_visible 194@(43@,6i) {state} False
freeze_object_position 194@(43@,6i) {state} True
create_char PedType.Mission2 {modelId} 182@(43@,6i) {x} 200@ {y} 201@ {z} 202@ {var_handle} 170@(43@,6i)
set_char_is_target_priority 170@(43@,6i) {state} True
set_char_health 170@(43@,6i) {health} 200
set_char_max_health 170@(43@,6i) {maxHealth} 200
set_char_heading 170@(43@,6i) {heading} 203@
set_char_decision_maker 170@(43@,6i) {handleOrTemplate} 34@
give_weapon_to_char 170@(43@,6i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 170@(43@,6i) {weaponType} WeaponType.Mp5
set_char_accuracy 170@(43@,6i) {accuracy} 70
set_char_shoot_rate 170@(43@,6i) {rate} 55
set_char_signal_after_kill 170@(43@,6i) {state} False
if 
  4 > 43@
goto_if_false @MANSIO1_15082
if or
  210@ <> -1
  212@ > 0
goto_if_false @MANSIO1_15030
$x, $y, $z = get_offset_from_char_in_world_coords 170@(43@,6i) {xOffset} 0.0 {yOffset} 3.5 {zOffset} 0.0
45@ = open_sequence_task 
task_climb -1 {flag} True
task_toggle_duck -1 {state} True
task_go_to_coord_any_means -1 {x} $x {y} $y {z} 94.95 {speed} MoveState.Run {vehicle} -1
task_stay_in_same_place -1 {state} False
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 170@(43@,6i) {sequence} 45@
clear_sequence_task 45@
188@(43@,6i) = 0
176@(43@,6i) = 0
goto @MANSIO1_15075

:MANSIO1_15030
task_stay_in_same_place 170@(43@,6i) {state} True
task_set_char_decision_maker 170@(43@,6i) {handleOrTemplate} 36@
188@(43@,6i) = 0
176@(43@,6i) = 3

:MANSIO1_15075
goto @MANSIO1_15082

:MANSIO1_15082
43@ += 1
goto @MANSIO1_14204

:MANSIO1_15096
return 

:MANSIO1_15098
switch_start 210@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_15347 {caseNum1} 0 {caseLabel1} @MANSIO1_15226 {caseNum2} 1 {caseLabel2} @MANSIO1_15242 {caseNum3} 2 {caseLabel3} @MANSIO1_15258 {caseNum4} 3 {caseLabel4} @MANSIO1_15274 {caseNum5} 4 {caseLabel5} @MANSIO1_15290 {caseNum6} 5 {caseLabel6} @MANSIO1_15306 {caseNum7} 6 {caseLabel7} @MANSIO1_15274
switch_continued 7 {caseLabel1} @MANSIO1_15290 {caseNum2} 8 {caseLabel2} @MANSIO1_15306 {caseNum3} 9 {caseLabel3} @MANSIO1_15258 {caseNum4} 10 {caseLabel4} @MANSIO1_15242 {caseNum5} -1 {caseLabel5} @MANSIO1_15361 {caseNum6} -1 {caseLabel6} @MANSIO1_15361 {caseNum7} -1 {caseLabel7} @MANSIO1_15361 {caseNum8} -1 {caseLabel8} @MANSIO1_15361 {caseNum9} -1 {caseLabel9} @MANSIO1_15361

:MANSIO1_15226
204@ = generate_random_int_in_range 0 {max} 5
goto @MANSIO1_15361

:MANSIO1_15242
204@ = generate_random_int_in_range 2 {max} 5
goto @MANSIO1_15361

:MANSIO1_15258
204@ = generate_random_int_in_range 3 {max} 5
goto @MANSIO1_15361

:MANSIO1_15274
204@ = generate_random_int_in_range 0 {max} 3
goto @MANSIO1_15361

:MANSIO1_15290
204@ = generate_random_int_in_range 0 {max} 2
goto @MANSIO1_15361

:MANSIO1_15306
204@ = generate_random_int_in_range 0 {max} 4
if 
  204@ > 1
goto_if_false @MANSIO1_15340
204@ += 1

:MANSIO1_15340
goto @MANSIO1_15361

:MANSIO1_15347
204@ = 5
goto @MANSIO1_15361

:MANSIO1_15361
if 
  5 > 204@
goto_if_false @MANSIO1_15411
205@ *= 5
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 94.0
goto @MANSIO1_15436

:MANSIO1_15411
204@ *= 4
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 95.0

:MANSIO1_15436
gosub @MANSIO1_15686
return 

:MANSIO1_15445
switch_start 212@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_15602 {caseNum1} -1 {caseLabel1} @MANSIO1_15588 {caseNum2} 1 {caseLabel2} @MANSIO1_15508 {caseNum3} 2 {caseLabel3} @MANSIO1_15524 {caseNum4} 3 {caseLabel4} @MANSIO1_15540 {caseNum5} 4 {caseLabel5} @MANSIO1_15556 {caseNum6} 5 {caseLabel6} @MANSIO1_15572 {caseNum7} -1 {caseLabel7} @MANSIO1_15602

:MANSIO1_15508
204@ = generate_random_int_in_range 0 {max} 5
goto @MANSIO1_15602

:MANSIO1_15524
204@ = generate_random_int_in_range 3 {max} 5
goto @MANSIO1_15602

:MANSIO1_15540
204@ = generate_random_int_in_range 2 {max} 5
goto @MANSIO1_15602

:MANSIO1_15556
204@ = generate_random_int_in_range 0 {max} 2
goto @MANSIO1_15602

:MANSIO1_15572
204@ = generate_random_int_in_range 0 {max} 3
goto @MANSIO1_15602

:MANSIO1_15588
204@ = 5
goto @MANSIO1_15602

:MANSIO1_15602
if 
  5 > 204@
goto_if_false @MANSIO1_15652
205@ *= 5
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 94.0
goto @MANSIO1_15677

:MANSIO1_15652
204@ *= 4
add_int_lvar_to_int_lvar 204@ += 205@
202@ = 95.0

:MANSIO1_15677
gosub @MANSIO1_15686
return 

:MANSIO1_15686
switch_start 204@ {numCases} 24 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_16767 {caseNum1} 0 {caseLabel1} @MANSIO1_15879 {caseNum2} 1 {caseLabel2} @MANSIO1_15916 {caseNum3} 2 {caseLabel3} @MANSIO1_15953 {caseNum4} 3 {caseLabel4} @MANSIO1_15990 {caseNum5} 4 {caseLabel5} @MANSIO1_16027 {caseNum6} 5 {caseLabel6} @MANSIO1_16064 {caseNum7} 6 {caseLabel7} @MANSIO1_16101
switch_continued 7 {caseLabel1} @MANSIO1_16138 {caseNum2} 8 {caseLabel2} @MANSIO1_16175 {caseNum3} 9 {caseLabel3} @MANSIO1_16212 {caseNum4} 10 {caseLabel4} @MANSIO1_16249 {caseNum5} 11 {caseLabel5} @MANSIO1_16286 {caseNum6} 12 {caseLabel6} @MANSIO1_16323 {caseNum7} 13 {caseLabel7} @MANSIO1_16360 {caseNum8} 14 {caseLabel8} @MANSIO1_16397 {caseNum9} 15 {caseLabel9} @MANSIO1_16434
switch_continued 16 {caseLabel1} @MANSIO1_16471 {caseNum2} 17 {caseLabel2} @MANSIO1_16508 {caseNum3} 18 {caseLabel3} @MANSIO1_16545 {caseNum4} 19 {caseLabel4} @MANSIO1_16582 {caseNum5} 20 {caseLabel5} @MANSIO1_16619 {caseNum6} 21 {caseLabel6} @MANSIO1_16656 {caseNum7} 22 {caseLabel7} @MANSIO1_16693 {caseNum8} 23 {caseLabel8} @MANSIO1_16730 {caseNum9} -1 {caseLabel9} @MANSIO1_16767

:MANSIO1_15879
200@ = 1262.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_15916
200@ = 1266.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_15953
200@ = 1257.0
201@ = -784.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_15990
200@ = 1269.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16027
200@ = 1265.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16064
200@ = 1267.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16101
200@ = 1263.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16138
200@ = 1257.0
201@ = -781.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16175
200@ = 1264.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16212
200@ = 1268.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16249
200@ = 1264.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16286
200@ = 1268.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16323
200@ = 1257.0
201@ = -778.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16360
200@ = 1267.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16397
200@ = 1263.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16434
200@ = 1269.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16471
200@ = 1265.0
201@ = -770.5
203@ = 180.0
goto @MANSIO1_16767

:MANSIO1_16508
200@ = 1257.0
201@ = -775.0
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16545
200@ = 1262.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16582
200@ = 1266.0
201@ = -789.5
203@ = 0.0
goto @MANSIO1_16767

:MANSIO1_16619
200@ = 1268.069
201@ = -783.494
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16656
200@ = 1271.156
201@ = -780.8453
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16693
200@ = 1267.7371
201@ = -777.1963
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16730
200@ = 1272.5341
201@ = -774.9141
203@ = 270.0
goto @MANSIO1_16767

:MANSIO1_16767
return 

:MANSIO1_16769
if 
  TIMERB > 700
goto_if_false @MANSIO1_17061
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d 1269.668 {fromY} -778.8566 {toX} $player_x {toZ} $player_y
if and
  $player_z > 105.0
  $distance > 65.0
  130.0 > $distance
goto_if_false @MANSIO1_17043
$x = generate_random_float_in_range -6.0 {max} 6.1
if 
  $x > 0.0
goto_if_false @MANSIO1_16917
$x += 1.5
goto @MANSIO1_16927

:MANSIO1_16917
$x -= 1.5

:MANSIO1_16927
$z = generate_random_float_in_range -6.0 {max} 6.1
if 
  $z > 0.0
goto_if_false @MANSIO1_16980
$z += 1.5
goto @MANSIO1_16990

:MANSIO1_16980
$z -= 1.5

:MANSIO1_16990
$player_x, $player_y, $player_z = get_offset_from_char_in_world_coords $scplayer {xOffset} $x {yOffset} -10.0 {zOffset} $z
fire_single_bullet 1269.668 {fromY} -778.8566 {fromZ} 94.9557 {toX} $player_x {toY} $player_y {toZ} $player_z {energy} 0

:MANSIO1_17043
204@ = generate_random_int_in_range 100 {max} 401
set_lvar_int_to_lvar_int TIMERB = 204@

:MANSIO1_17061
return 

:MANSIO1_17063
if 
  208@ == 0
goto_if_false @MANSIO1_17143
if 
  211@ == 0
goto_if_false @MANSIO1_17134
210@ = -1
212@ = 0
215@, 216@, 217@ = get_char_coordinates $scplayer
goto @MANSIO1_17136

:MANSIO1_17134
return 

:MANSIO1_17136
goto @MANSIO1_17168

:MANSIO1_17143
213@ = -1
215@, 216@, 217@ = get_char_coordinates 170@(214@,6i)

:MANSIO1_17168
if 
  217@ > 94.5
goto_if_false @MANSIO1_17203
209@ = 0
goto @MANSIO1_17280

:MANSIO1_17203
if 
  217@ > 90.5
goto_if_false @MANSIO1_17238
209@ = 1
goto @MANSIO1_17280

:MANSIO1_17238
if 
  217@ > 86.0
goto_if_false @MANSIO1_17273
209@ = 2
goto @MANSIO1_17280

:MANSIO1_17273
209@ = 3

:MANSIO1_17280
switch_start 209@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_18429 {caseNum1} 0 {caseLabel1} @MANSIO1_17343 {caseNum2} 1 {caseLabel2} @MANSIO1_17597 {caseNum3} 2 {caseLabel3} @MANSIO1_17816 {caseNum4} 3 {caseLabel4} @MANSIO1_18175 {caseNum5} -1 {caseLabel5} @MANSIO1_18429 {caseNum6} -1 {caseLabel6} @MANSIO1_18429 {caseNum7} -1 {caseLabel7} @MANSIO1_18429

:MANSIO1_17343
if and
  216@ > -802.2
  -766.75 > 216@
  215@ > 1257.9
  1304.4 > 215@
goto_if_false @MANSIO1_17583
if 
  216@ > -774.2
goto_if_false @MANSIO1_17464
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17450
207@ = 2
goto @MANSIO1_17457

:MANSIO1_17450
207@ = 1

:MANSIO1_17457
goto @MANSIO1_17576

:MANSIO1_17464
if 
  -785.85 > 216@
goto_if_false @MANSIO1_17534
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17520
207@ = 4
goto @MANSIO1_17527

:MANSIO1_17520
207@ = 3

:MANSIO1_17527
goto @MANSIO1_17576

:MANSIO1_17534
if 
  1262.7 > 215@
goto_if_false @MANSIO1_17569
207@ = 5
goto @MANSIO1_17576

:MANSIO1_17569
207@ = 0

:MANSIO1_17576
goto @MANSIO1_17590

:MANSIO1_17583
207@ = -1

:MANSIO1_17590
goto @MANSIO1_18429

:MANSIO1_17597
if and
  216@ > -793.0
  -767.6 > 216@
  215@ > 1251.4
  1295.7 > 215@
goto_if_false @MANSIO1_17802
if 
  216@ > -776.25
goto_if_false @MANSIO1_17718
if 
  1265.9 > 215@
goto_if_false @MANSIO1_17704
207@ = 9
goto @MANSIO1_17711

:MANSIO1_17704
207@ = 10

:MANSIO1_17711
goto @MANSIO1_17795

:MANSIO1_17718
if 
  -783.5 > 216@
goto_if_false @MANSIO1_17788
if 
  1265.9 > 215@
goto_if_false @MANSIO1_17774
207@ = 7
goto @MANSIO1_17781

:MANSIO1_17774
207@ = 6

:MANSIO1_17781
goto @MANSIO1_17795

:MANSIO1_17788
207@ = 8

:MANSIO1_17795
goto @MANSIO1_17809

:MANSIO1_17802
207@ = -1

:MANSIO1_17809
goto @MANSIO1_18429

:MANSIO1_17816
if and
  216@ > -814.0
  -785.0 > 216@
  215@ > 1251.8
  1303.5 > 215@
goto_if_false @MANSIO1_18161
if 
  216@ > -793.6
goto_if_false @MANSIO1_17972
if 
  215@ > 1298.8
goto_if_false @MANSIO1_17923
207@ = 13
goto @MANSIO1_17965

:MANSIO1_17923
if 
  215@ > 1259.4
goto_if_false @MANSIO1_17958
207@ = 12
goto @MANSIO1_17965

:MANSIO1_17958
207@ = 11

:MANSIO1_17965
goto @MANSIO1_18154

:MANSIO1_17972
if 
  216@ > -807.1
goto_if_false @MANSIO1_18077
if 
  215@ > 1298.8
goto_if_false @MANSIO1_18028
207@ = 16
goto @MANSIO1_18070

:MANSIO1_18028
if 
  215@ > 1259.4
goto_if_false @MANSIO1_18063
207@ = 15
goto @MANSIO1_18070

:MANSIO1_18063
207@ = 14

:MANSIO1_18070
goto @MANSIO1_18154

:MANSIO1_18077
if 
  215@ > 1298.8
goto_if_false @MANSIO1_18112
207@ = 19
goto @MANSIO1_18154

:MANSIO1_18112
if 
  215@ > 1259.4
goto_if_false @MANSIO1_18147
207@ = 18
goto @MANSIO1_18154

:MANSIO1_18147
207@ = 17

:MANSIO1_18154
goto @MANSIO1_18168

:MANSIO1_18161
207@ = -1

:MANSIO1_18168
goto @MANSIO1_18429

:MANSIO1_18175
if and
  216@ > -834.35
  -787.3 > 216@
  215@ > 1239.9
  1308.4 > 215@
goto_if_false @MANSIO1_18415
if 
  -804.2511 > 216@
goto_if_false @MANSIO1_18331
if 
  1254.75 > 215@
goto_if_false @MANSIO1_18282
207@ = 23
goto @MANSIO1_18324

:MANSIO1_18282
if 
  1298.6 > 215@
goto_if_false @MANSIO1_18317
207@ = 24
goto @MANSIO1_18324

:MANSIO1_18317
207@ = 25

:MANSIO1_18324
goto @MANSIO1_18408

:MANSIO1_18331
if 
  1254.75 > 215@
goto_if_false @MANSIO1_18366
207@ = 20
goto @MANSIO1_18408

:MANSIO1_18366
if 
  1298.6 > 215@
goto_if_false @MANSIO1_18401
207@ = 21
goto @MANSIO1_18408

:MANSIO1_18401
207@ = 22

:MANSIO1_18408
goto @MANSIO1_18422

:MANSIO1_18415
207@ = -1

:MANSIO1_18422
goto @MANSIO1_18429

:MANSIO1_18429
if 
  207@ == -1
goto_if_false @MANSIO1_18573
if 
  217@ > 91.5
goto_if_false @MANSIO1_18566
212@ = 0
if 
  215@ > 1279.351
goto_if_false @MANSIO1_18503
212@ += 1

:MANSIO1_18503
if 
  216@ > -766.75
goto_if_false @MANSIO1_18531
212@ += 2

:MANSIO1_18531
if 
  -802.2 > 216@
goto_if_false @MANSIO1_18559
212@ += 4

:MANSIO1_18559
goto @MANSIO1_18573

:MANSIO1_18566
212@ = -1

:MANSIO1_18573
if 
  208@ == 0
goto_if_false @MANSIO1_18613
set_lvar_int_to_lvar_int 210@ = 207@
211@ = 1
goto @MANSIO1_18621

:MANSIO1_18613
set_lvar_int_to_lvar_int 213@ = 207@

:MANSIO1_18621
return 

:MANSIO1_18623
switch_start 218@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_18754 {caseNum1} 1 {caseLabel1} @MANSIO1_18686 {caseNum2} -1 {caseLabel2} @MANSIO1_18754 {caseNum3} -1 {caseLabel3} @MANSIO1_18754 {caseNum4} -1 {caseLabel4} @MANSIO1_18754 {caseNum5} -1 {caseLabel5} @MANSIO1_18754 {caseNum6} -1 {caseLabel6} @MANSIO1_18754 {caseNum7} -1 {caseLabel7} @MANSIO1_18754

:MANSIO1_18686
if 
  190.0 > 115@
goto_if_false @MANSIO1_18747
115@ += 0.34
114@ -= 0.006
118@ += 0.01
116@ += 0.01

:MANSIO1_18747
goto @MANSIO1_18754

:MANSIO1_18754
122@ = cos 115@
123@ = sin 115@
set_lvar_float_to_lvar_float 120@ = 116@
mult_float_lvar_by_float_lvar 120@ *= 122@
set_lvar_float_to_lvar_float 121@ = 116@
mult_float_lvar_by_float_lvar 121@ *= 123@
set_lvar_float_to_lvar_float 112@ = 117@
add_float_lvar_to_float_lvar 112@ += 120@
set_lvar_float_to_lvar_float 113@ = 118@
add_float_lvar_to_float_lvar 113@ += 121@
set_fixed_camera_position 112@ {y} 113@ {z} 114@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 117@ {y} 118@ {z} 119@ {switchStyle} SwitchType.JumpCut
return 

:MANSIO1_18875
switch_start 219@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_19024 {caseNum1} 0 {caseLabel1} @MANSIO1_18938 {caseNum2} 1 {caseLabel2} @MANSIO1_18953 {caseNum3} -1 {caseLabel3} @MANSIO1_19024 {caseNum4} -1 {caseLabel4} @MANSIO1_19024 {caseNum5} -1 {caseLabel5} @MANSIO1_19024 {caseNum6} -1 {caseLabel6} @MANSIO1_19024 {caseNum7} -1 {caseLabel7} @MANSIO1_19024

:MANSIO1_18938
report_mission_audio_event_at_object 128@ {soundId} ScriptSound.SoundCargoPlaneDoorStart
219@ += 1

:MANSIO1_18953
if 
  220@ > -20.0
goto_if_false @MANSIO1_19009
220@ += -0.1
set_object_rotation 128@ {x} 220@ {y} 0.0 {z} 90.0
goto @MANSIO1_19024

:MANSIO1_19009
report_mission_audio_event_at_object 128@ {soundId} ScriptSound.SoundCargoPlaneDoorStop
219@ += 1

:MANSIO1_19024
return 
switch_start 221@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_19272 {caseNum1} 0 {caseLabel1} @MANSIO1_19089 {caseNum2} 1 {caseLabel2} @MANSIO1_19152 {caseNum3} 2 {caseLabel3} @MANSIO1_19261 {caseNum4} -1 {caseLabel4} @MANSIO1_19272 {caseNum5} -1 {caseLabel5} @MANSIO1_19272 {caseNum6} -1 {caseLabel6} @MANSIO1_19272 {caseNum7} -1 {caseLabel7} @MANSIO1_19272

:MANSIO1_19089
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 222@
goto_if_false @MANSIO1_19140
223@ = generate_random_int_in_range 4000 {max} 6001
TIMERB = 0
221@ += 1
goto @MANSIO1_19145

:MANSIO1_19140
shake_cam 224@

:MANSIO1_19145
goto @MANSIO1_19272

:MANSIO1_19152
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 223@
goto_if_false @MANSIO1_19250
224@ = generate_random_int_in_range 40 {max} 51
shake_cam 224@
222@ = generate_random_int_in_range 2500 {max} 5001
set_lvar_int_to_lvar_int 225@ = 224@
225@ *= 2
225@ += 150
shake_pad PadId.Pad1 {time} 222@ {intensity} 225@
TIMERB = 0
221@ -= 1
goto @MANSIO1_19254

:MANSIO1_19250
shake_cam 5

:MANSIO1_19254
goto @MANSIO1_19272

:MANSIO1_19261
shake_cam 20
goto @MANSIO1_19272

:MANSIO1_19272
return 

:MANSIO1_19274
kill_fx_system 124@
kill_fx_system 125@
kill_fx_system 126@
remove_blip 47@
remove_blip 146@
remove_blip 147@
remove_blip 148@
remove_pickup 51@
43@ = 0

:MANSIO1_19321
if 
  4 > 43@
goto_if_false @MANSIO1_19380
mark_char_as_no_longer_needed 99@(43@,4i)
mark_char_as_no_longer_needed 131@(43@,4i)
mark_char_as_no_longer_needed 170@(43@,6i)
43@ += 1
goto @MANSIO1_19321

:MANSIO1_19380
mark_char_as_no_longer_needed 159@
mark_model_as_no_longer_needed #PARACHUTE
mark_model_as_no_longer_needed #PARA_PACK
mark_model_as_no_longer_needed 371
remove_animation "PARACHUTE"
mark_model_as_no_longer_needed #CARGO_REAR
mark_model_as_no_longer_needed #D9_RAMP
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed 330
return 

:MANSIO1_19435
gosub @MANSIO1_13440
gosub @MANSIO1_19274
remove_decision_maker 39@
disable_all_entry_exits True
load_scene 1267.429 {y} -781.5715 {z} 1090.891
38@ = load_char_decision_maker DecisionMakerType.Empty
add_char_decision_maker_event_response 38@ {event} Event.Damage {taskId} TaskId.ComplexSmartFleeEntity {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 38@ {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 38@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
request_model 110
request_model 13
request_model 195

:MANSIO1_19597
if or
  not has_model_loaded 110
  not has_model_loaded 13
  not has_model_loaded 195
goto_if_false @MANSIO1_19632
wait 0
goto @MANSIO1_19597

:MANSIO1_19632
51@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 1278.88 {y} -810.5082 {z} 1086.0
set_fixed_camera_position 1266.807 {y} -782.0668 {z} 1092.6021 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1267.786 {y} -781.8895 {z} 1092.5 {switchStyle} SwitchType.JumpCut
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 1267.785 {y} -781.2607 {z} 1090.8979
set_char_heading $scplayer {heading} 185.363
157@ = 0
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_19804
set_char_coordinates 143@ {x} 1263.087 {y} -782.9864 {z} 1090.8979
remove_blip 146@
goto @MANSIO1_19852

:MANSIO1_19804
143@ = create_char PedType.Mission1 {modelId} 117 {x} 1263.087 {y} -782.9864 {z} 1090.8979
give_weapon_to_char 143@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 143@ {weaponType} WeaponType.M4
set_char_never_targetted 143@ {state} True

:MANSIO1_19852
set_char_heading 143@ {heading} 269.9343
set_char_health 143@ {health} 300
set_char_area_visible 143@ {areaId} 5
set_char_decision_maker 143@ {handleOrTemplate} 34@
set_char_signal_after_kill 143@ {state} False
set_char_accuracy 143@ {accuracy} 75
set_char_shoot_rate 143@ {rate} 60
set_lvar_int_to_constant 428@ = 117
149@ = 0
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_19968
set_char_coordinates 144@ {x} 1261.967 {y} -778.3527 {z} 1090.8979
remove_blip 147@
goto @MANSIO1_20016

:MANSIO1_19968
144@ = create_char PedType.Mission1 {modelId} 118 {x} 1261.967 {y} -778.3527 {z} 1090.8979
give_weapon_to_char 144@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 144@ {weaponType} WeaponType.M4
set_char_never_targetted 144@ {state} True

:MANSIO1_20016
set_char_heading 144@ {heading} 258.1764
set_char_health 144@ {health} 300
set_char_area_visible 144@ {areaId} 5
set_char_decision_maker 144@ {handleOrTemplate} 34@
set_char_signal_after_kill 144@ {state} False
set_char_accuracy 144@ {accuracy} 75
set_char_shoot_rate 144@ {rate} 60
150@ = 1
set_lvar_int_to_constant 429@ = 118
if 
  not is_char_dead 145@
goto_if_false @MANSIO1_20132
set_char_coordinates 145@ {x} 1267.936 {y} -782.3963 {z} 1090.938
remove_blip 148@
goto @MANSIO1_20180

:MANSIO1_20132
145@ = create_char PedType.Mission1 {modelId} 118 {x} 1267.936 {y} -782.3963 {z} 1090.938
give_weapon_to_char 145@ {weaponType} WeaponType.M4 {ammo} 30000
set_current_char_weapon 145@ {weaponType} WeaponType.M4
set_char_never_targetted 145@ {state} True

:MANSIO1_20180
set_char_heading 145@ {heading} 7.0205
set_char_health 145@ {health} 300
set_char_area_visible 145@ {areaId} 5
set_char_decision_maker 145@ {handleOrTemplate} 34@
43@ = 0

:MANSIO1_20220
if 
  20 > 43@
goto_if_false @MANSIO1_20263
246@(43@,20i) = -2
43@ += 1
goto @MANSIO1_20220

:MANSIO1_20263
43@ = 0

:MANSIO1_20270
if 
  10 > 43@
goto_if_false @MANSIO1_20313
296@(43@,10i) = -2
43@ += 1
goto @MANSIO1_20270

:MANSIO1_20313
320@ = -2
321@ = -2
322@ = -2
323@ = -2
346@ = 1282.481
362@ = -783.0235
378@ = 1088.9301
394@ = 178.1922
347@ = 1283.504
363@ = -782.3303
379@ = 1088.9301
395@ = 179.0122
344@ = 2
348@ = 1280.705
364@ = -789.9243
380@ = 1088.9301
396@ = 86.8595
349@ = 1283.79
365@ = -798.3011
381@ = 1088.9301
397@ = 282.0571
350@ = 1280.78
366@ = -801.7443
382@ = 1088.9301
398@ = 94.8903
351@ = 1283.531
367@ = -810.207
383@ = 1088.9301
399@ = 277.6203
352@ = 1280.724
368@ = -813.7949
384@ = 1088.9301
400@ = 92.4805
353@ = 1283.641
369@ = -822.3738
385@ = 1088.9301
401@ = 281.8632
345@ = 8
354@ = 1283.491
370@ = -785.184
386@ = 1088.9301
402@ = 178.5884
355@ = 1281.049
371@ = -792.4401
387@ = 1088.9301
403@ = 182.731
356@ = 1283.697
372@ = -799.8134
388@ = 1088.9301
404@ = 177.1231
357@ = 1280.901
373@ = -804.8507
389@ = 1088.9301
405@ = 184.0353
358@ = 1283.5
374@ = -812.0164
390@ = 1088.9301
406@ = 175.55
359@ = 1280.848
375@ = -816.8154
391@ = 1088.9301
407@ = 188.1912
360@ = 1283.6541
376@ = -831.0235
392@ = 1088.9301
408@ = 71.1923
361@ = 1282.427
377@ = -834.7235
393@ = 1088.9301
409@ = 92.1225
452@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_constant 444@ = 23824
set_lvar_text_label 453@s = 'MAN1_FC'
set_lvar_int_to_constant 445@ = 23825
set_lvar_text_label 455@s = 'MAN1_FD'
set_lvar_int_to_constant 446@ = 23826
set_lvar_text_label 457@s = 'MAN1_FE'
set_lvar_int_to_constant 447@ = 23827
set_lvar_text_label 459@s = 'MAN1_FF'
set_lvar_int_to_constant 448@ = 23831
set_lvar_text_label 461@s = 'MAN1_FK'
set_lvar_int_to_constant 449@ = 23832
set_lvar_text_label 463@s = 'MAN1_FL'
set_lvar_int_to_constant 450@ = 23833
set_lvar_text_label 465@s = 'MAN1_FM'
set_lvar_int_to_constant 451@ = 23834
set_lvar_text_label 467@s = 'MAN1_FN'
226@ = create_char PedType.Mission2 {modelId} 108 {x} 1275.64 {y} -776.5879 {z} 1089.7111
set_char_heading 226@ {heading} 127.9642
set_char_health 226@ {health} 200
set_char_max_health 226@ {maxHealth} 200
set_char_area_visible 226@ {areaId} 5
give_weapon_to_char 226@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 226@ {weaponType} WeaponType.Mp5
set_char_accuracy 226@ {accuracy} 35
set_char_shoot_rate 226@ {rate} 50
task_toggle_duck 226@ {state} True
set_char_decision_maker 226@ {handleOrTemplate} 34@
246@ = 0
227@ = create_char PedType.Mission2 {modelId} 110 {x} 1281.108 {y} -776.7111 {z} 1089.704
set_char_heading 227@ {heading} 99.357
set_char_health 227@ {health} 200
set_char_max_health 227@ {maxHealth} 200
set_char_area_visible 227@ {areaId} 5
give_weapon_to_char 227@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 227@ {weaponType} WeaponType.Mp5
set_char_accuracy 227@ {accuracy} 35
set_char_shoot_rate 227@ {rate} 60
task_toggle_duck 227@ {state} True
set_char_decision_maker 227@ {handleOrTemplate} 34@
247@ = 0
228@ = create_char PedType.Mission2 {modelId} 108 {x} 1281.6169 {y} -784.6133 {z} 1088.9301
set_char_heading 228@ {heading} 90.0
set_char_health 228@ {health} 200
set_char_max_health 228@ {maxHealth} 200
set_char_area_visible 228@ {areaId} 5
give_weapon_to_char 228@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 228@ {weaponType} WeaponType.Mp5
set_char_accuracy 228@ {accuracy} 35
set_char_shoot_rate 228@ {rate} 70
set_char_decision_maker 228@ {handleOrTemplate} 34@
248@ = 0
229@ = create_char PedType.Mission2 {modelId} 110 {x} 1283.1899 {y} -786.4687 {z} 1088.9301
set_char_heading 229@ {heading} 0.0
set_char_health 229@ {health} 200
set_char_max_health 229@ {maxHealth} 200
set_char_area_visible 229@ {areaId} 5
give_weapon_to_char 229@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 229@ {weaponType} WeaponType.Mp5
set_char_accuracy 229@ {accuracy} 35
set_char_shoot_rate 229@ {rate} 50
set_char_decision_maker 229@ {handleOrTemplate} 34@
249@ = 0
487@ = -1
490@ = 1275.382
496@ = -782.1158
502@ = 1088.9301
508@ = 270.0
491@ = 1290.621
497@ = -797.5714
503@ = 1088.9301
509@ = 90.0
492@ = 1276.333
498@ = -813.5852
504@ = 1088.9301
510@ = 270.0
493@ = 1274.861
499@ = -825.8968
505@ = 1088.9301
511@ = 270.0
494@ = 1226.309
500@ = -832.0841
506@ = 1083.0081
512@ = 180.0
495@ = 1288.024
501@ = -821.6524
507@ = 1088.9301
513@ = 90.0
set_lvar_int_to_constant 331@ = 23800
set_lvar_text_label 336@s = 'MAN1_AA'
set_lvar_int_to_constant 332@ = 23801
set_lvar_text_label 338@s = 'MAN1_AB'
set_lvar_int_to_constant 333@ = 23802
set_lvar_text_label 340@s = 'MAN1_AC'
set_lvar_int_to_constant 334@ = 23803
set_lvar_text_label 342@s = 'MAN1_AD'
335@ = 0
330@ = 0
switch_audio_zone 'MADDOGL' {state} True
stop_char_facial_talk $scplayer
do_fade 1000 {direction} Fade.In

:MANSIO1_21980
if 
  get_fading_status 
goto_if_false @MANSIO1_22004
wait 0
goto @MANSIO1_21980

:MANSIO1_22004
TIMERA = 0
49@ = 0
set_var_int_to_constant $load_sample = 23820
set_var_text_label s$load_text = 'MAN1_EA'
start_new_script @A_ALAP 2 100 145@ 
skip_cutscene_start_internal @MANSIO1_22313

:MANSIO1_22062
if 
  4000 > TIMERA
goto_if_false @MANSIO1_22092
wait 0
goto @MANSIO1_22062

:MANSIO1_22092
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22122
task_toggle_duck 226@ {state} False
49@ = 1

:MANSIO1_22122
if 
  4400 > TIMERA
goto_if_false @MANSIO1_22152
wait 0
goto @MANSIO1_22122

:MANSIO1_22152
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22198
task_shoot_at_coord 226@ {x} 1267.728 {y} -782.9617 {z} 1092.689 {time} 300
49@ = 2

:MANSIO1_22198
if 
  4700 > TIMERA
goto_if_false @MANSIO1_22228
wait 0
goto @MANSIO1_22198

:MANSIO1_22228
if and
  not is_char_dead 226@
  not is_char_dead 145@
goto_if_false @MANSIO1_22273
clear_char_tasks 226@
task_toggle_duck 226@ {state} True
explode_char_head 145@
49@ = 3

:MANSIO1_22273
task_achieve_heading $scplayer {heading} 270.0

:MANSIO1_22283
if 
  5400 > TIMERA
goto_if_false @MANSIO1_22313
wait 0
goto @MANSIO1_22283

:MANSIO1_22313
skip_cutscene_end 
switch_start 49@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_22450 {caseNum1} 0 {caseLabel1} @MANSIO1_22422 {caseNum2} 1 {caseLabel2} @MANSIO1_22399 {caseNum3} 2 {caseLabel3} @MANSIO1_22378 {caseNum4} -1 {caseLabel4} @MANSIO1_22450 {caseNum5} -1 {caseLabel5} @MANSIO1_22450 {caseNum6} -1 {caseLabel6} @MANSIO1_22450 {caseNum7} -1 {caseLabel7} @MANSIO1_22450

:MANSIO1_22378
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22399
clear_char_tasks 226@

:MANSIO1_22399
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22422
task_toggle_duck 226@ {state} True

:MANSIO1_22422
if 
  not is_char_dead 145@
goto_if_false @MANSIO1_22443
explode_char_head 145@

:MANSIO1_22443
goto @MANSIO1_22450

:MANSIO1_22450
set_char_heading $scplayer {heading} 270.0
switch_widescreen False
set_player_control $player1 {state} True
set_var_int_to_constant $load_sample = 23821
set_var_text_label s$load_text = 'MAN1_EB'
start_new_script @A_ALAP 2 101 143@ 
TIMERB = 0
415@ = 1
411@ = 1
416@ = -1
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_22630
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1266.858 {y} -782.4518 {z} 1090.8979 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 270.5538
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 143@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22630
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_22720
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1268.02 {y} -779.9092 {z} 1090.8979 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 267.5782
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 144@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22720
if 
  not is_char_dead 226@
goto_if_false @MANSIO1_22744
set_char_decision_maker 226@ {handleOrTemplate} 36@

:MANSIO1_22744
if 
  not is_char_dead 227@
goto_if_false @MANSIO1_22768
set_char_decision_maker 227@ {handleOrTemplate} 36@

:MANSIO1_22768
if 
  not is_char_dead 228@
goto_if_false @MANSIO1_22827
45@ = open_sequence_task 
task_stand_still -1 {time} 1000
task_weapon_roll -1 {direction} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 228@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22827
if 
  not is_char_dead 229@
goto_if_false @MANSIO1_22918
45@ = open_sequence_task 
task_stand_still -1 {time} 500
task_go_straight_to_coord -1 {x} 1283.2209 {y} -779.912 {z} 1088.9301 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_toggle_duck -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 229@ {sequence} 45@
clear_sequence_task 45@

:MANSIO1_22918
41@ = get_game_timer 
157@ = 0

:MANSIO1_22930
wait 0
40@ = get_game_timer 
set_lvar_int_to_lvar_int 42@ = 40@
sub_int_lvar_from_int_lvar 42@ -= 41@
set_lvar_int_to_lvar_int 41@ = 40@
add_int_lvar_to_int_lvar 164@ += 42@
add_int_lvar_to_int_lvar 165@ += 42@
43@ = 0

:MANSIO1_22986
if 
  20 > 43@
goto_if_false @MANSIO1_23030
add_int_lvar_to_int_lvar 266@(43@,20i) += 42@
43@ += 1
goto @MANSIO1_22986

:MANSIO1_23030
43@ = 0

:MANSIO1_23037
if 
  10 > 43@
goto_if_false @MANSIO1_23081
add_int_lvar_to_int_lvar 306@(43@,10i) += 42@
43@ += 1
goto @MANSIO1_23037

:MANSIO1_23081
add_int_lvar_to_int_lvar 480@ += 42@
add_int_lvar_to_int_lvar 481@ += 42@
add_int_lvar_to_int_lvar 482@ += 42@
add_int_lvar_to_int_lvar 324@ += 42@
add_int_lvar_to_int_lvar 325@ += 42@
add_int_lvar_to_int_lvar 326@ += 42@
add_int_lvar_to_int_lvar 327@ += 42@
gosub @MANSIO1_23279
gosub @MANSIO1_29184
gosub @MANSIO1_32862
gosub @MANSIO1_28155
if 
  157@ > 0
goto_if_false @MANSIO1_23190
gosub @MANSIO1_34284

:MANSIO1_23190
if 
  330@ == 1
goto_if_false @MANSIO1_23215
gosub @MANSIO1_35151

:MANSIO1_23215
if 
  521@ <> 0
goto_if_false @MANSIO1_23240
gosub @MANSIO1_35745

:MANSIO1_23240
if 
  514@ == 2
goto_if_false @MANSIO1_23265
goto @MANSIO1_36517

:MANSIO1_23265
471@ = 0
goto @MANSIO1_22930

:MANSIO1_23279
switch_start 157@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_28153 {caseNum1} 0 {caseLabel1} @MANSIO1_23407 {caseNum2} 1 {caseLabel2} @MANSIO1_24472 {caseNum3} 2 {caseLabel3} @MANSIO1_24838 {caseNum4} 3 {caseLabel4} @MANSIO1_24986 {caseNum5} 4 {caseLabel5} @MANSIO1_25838 {caseNum6} 5 {caseLabel6} @MANSIO1_26532 {caseNum7} 6 {caseLabel7} @MANSIO1_26757
switch_continued 7 {caseLabel1} @MANSIO1_26929 {caseNum2} 8 {caseLabel2} @MANSIO1_27158 {caseNum3} 9 {caseLabel3} @MANSIO1_27387 {caseNum4} 10 {caseLabel4} @MANSIO1_27654 {caseNum5} 11 {caseLabel5} @MANSIO1_27883 {caseNum6} -1 {caseLabel6} @MANSIO1_28153 {caseNum7} -1 {caseLabel7} @MANSIO1_28153 {caseNum8} -1 {caseLabel8} @MANSIO1_28153 {caseNum9} -1 {caseLabel9} @MANSIO1_28153

:MANSIO1_23407
if or
  is_char_in_area_2d $scplayer {leftBottomX} 1285.937 {leftBottomY} -783.2331 {rightTopX} 1279.36 {rightTopY} -779.1484 {drawSphere} False
  149@ == 6
  150@ == 7
goto_if_false @MANSIO1_24465
286@ = create_char PedType.Mission2 {modelId} 108 {x} 1271.954 {y} -786.6414 {z} 1088.928
set_char_heading 286@ {heading} 248.455
set_char_area_visible 286@ {areaId} 5
give_weapon_to_char 286@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 286@ {weaponType} WeaponType.Mp5
set_char_accuracy 286@ {accuracy} 45
set_char_shoot_rate 286@ {rate} 35
task_stay_in_same_place 286@ {state} True
set_char_decision_maker 286@ {handleOrTemplate} 36@
296@ = 0
287@ = create_char PedType.Mission2 {modelId} 110 {x} 1272.165 {y} -790.5964 {z} 1088.928
set_char_heading 287@ {heading} 277.2843
set_char_area_visible 287@ {areaId} 5
give_weapon_to_char 287@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 287@ {weaponType} WeaponType.Mp5
set_char_accuracy 287@ {accuracy} 45
set_char_shoot_rate 287@ {rate} 35
task_stay_in_same_place 287@ {state} True
set_char_decision_maker 287@ {handleOrTemplate} 36@
297@ = 0
288@ = create_char PedType.Mission2 {modelId} 110 {x} 1287.489 {y} -788.2037 {z} 1088.9301
set_char_heading 288@ {heading} 176.3381
set_char_area_visible 288@ {areaId} 5
give_weapon_to_char 288@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 288@ {weaponType} WeaponType.Mp5
set_char_accuracy 288@ {accuracy} 50
set_char_shoot_rate 288@ {rate} 35
task_stay_in_same_place 288@ {state} True
set_char_decision_maker 288@ {handleOrTemplate} 36@
298@ = 0
289@ = create_char PedType.Mission2 {modelId} 108 {x} 1292.4561 {y} -788.2022 {z} 1088.9301
set_char_heading 289@ {heading} 145.1614
set_char_area_visible 289@ {areaId} 5
give_weapon_to_char 289@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 289@ {weaponType} WeaponType.Mp5
set_char_accuracy 289@ {accuracy} 50
set_char_shoot_rate 289@ {rate} 35
task_stay_in_same_place 289@ {state} True
set_char_decision_maker 289@ {handleOrTemplate} 36@
299@ = 0
290@ = create_char PedType.Mission2 {modelId} 108 {x} 1271.389 {y} -800.9039 {z} 1088.927
set_char_heading 290@ {heading} 263.9924
set_char_area_visible 290@ {areaId} 5
give_weapon_to_char 290@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 290@ {weaponType} WeaponType.Mp5
set_char_accuracy 290@ {accuracy} 50
set_char_shoot_rate 290@ {rate} 35
task_stay_in_same_place 290@ {state} True
set_char_decision_maker 290@ {handleOrTemplate} 36@
300@ = 0
291@ = create_char PedType.Mission2 {modelId} 108 {x} 1291.748 {y} -810.5742 {z} 1088.9301
set_char_heading 291@ {heading} 87.4676
set_char_area_visible 291@ {areaId} 5
give_weapon_to_char 291@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 291@ {weaponType} WeaponType.Mp5
set_char_accuracy 291@ {accuracy} 50
set_char_shoot_rate 291@ {rate} 35
task_stay_in_same_place 291@ {state} True
set_char_decision_maker 291@ {handleOrTemplate} 36@
301@ = 0
292@ = create_char PedType.Mission2 {modelId} 110 {x} 1289.562 {y} -801.537 {z} 1088.9301
set_char_heading 292@ {heading} 155.5354
set_char_area_visible 292@ {areaId} 5
give_weapon_to_char 292@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 292@ {weaponType} WeaponType.Mp5
set_char_accuracy 292@ {accuracy} 50
set_char_shoot_rate 292@ {rate} 35
task_stay_in_same_place 292@ {state} True
set_char_decision_maker 292@ {handleOrTemplate} 36@
302@ = 0
293@ = create_char PedType.Mission2 {modelId} 110 {x} 1272.797 {y} -812.8729 {z} 1088.9301
set_char_heading 293@ {heading} 263.3181
set_char_area_visible 293@ {areaId} 5
give_weapon_to_char 293@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 293@ {weaponType} WeaponType.Mp5
set_char_accuracy 293@ {accuracy} 60
set_char_shoot_rate 293@ {rate} 45
task_stay_in_same_place 293@ {state} True
set_char_decision_maker 293@ {handleOrTemplate} 36@
303@ = 0
294@ = create_char PedType.Mission2 {modelId} 110 {x} 1292.816 {y} -821.3403 {z} 1088.9301
set_char_heading 294@ {heading} 96.7033
set_char_area_visible 294@ {areaId} 5
give_weapon_to_char 294@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 294@ {weaponType} WeaponType.Mp5
set_char_accuracy 294@ {accuracy} 60
set_char_shoot_rate 294@ {rate} 45
task_stay_in_same_place 294@ {state} True
set_char_decision_maker 294@ {handleOrTemplate} 36@
304@ = 0
295@ = create_char PedType.Mission2 {modelId} 108 {x} 1292.17 {y} -814.6696 {z} 1088.9301
set_char_heading 295@ {heading} 136.5314
set_char_area_visible 295@ {areaId} 5
give_weapon_to_char 295@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 295@ {weaponType} WeaponType.Mp5
set_char_accuracy 295@ {accuracy} 60
set_char_shoot_rate 295@ {rate} 45
task_stay_in_same_place 295@ {state} True
set_char_decision_maker 295@ {handleOrTemplate} 36@
305@ = 0
477@ = -1
478@ = -1
479@ = -1
480@ = 8000
481@ = 4000
482@ = 0
472@ = 1
488@ = 8000
157@ += 1

:MANSIO1_24465
goto @MANSIO1_28153

:MANSIO1_24472
418@ = 1280.15
419@ = -791.93
420@ = 1284.45
421@ = -795.42
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_24544
goto @MANSIO1_28153

:MANSIO1_24544
mark_char_as_no_longer_needed 145@
410@ = generate_random_int_in_range 0 {max} 2
if 
  410@ == 0
goto_if_false @MANSIO1_24632
230@ = create_char PedType.Mission2 {modelId} 108 {x} 1278.6071 {y} -801.3676 {z} 1088.9301
316@ = create_char PedType.Mission3 {modelId} 195 {x} 1286.281 {y} -809.3582 {z} 1088.9301
goto @MANSIO1_24681

:MANSIO1_24632
230@ = create_char PedType.Mission2 {modelId} 108 {x} 1286.281 {y} -809.3582 {z} 1088.9301
316@ = create_char PedType.Mission3 {modelId} 195 {x} 1278.6071 {y} -801.3676 {z} 1088.9301

:MANSIO1_24681
set_char_heading 230@ {heading} 0.0
set_char_health 230@ {health} 200
set_char_max_health 230@ {maxHealth} 200
set_char_area_visible 230@ {areaId} 5
give_weapon_to_char 230@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 230@ {weaponType} WeaponType.Mp5
set_char_accuracy 230@ {accuracy} 70
set_char_shoot_rate 230@ {rate} 60
set_char_decision_maker 230@ {handleOrTemplate} 36@
if 
  410@ == 0
goto_if_false @MANSIO1_24785
task_weapon_roll 230@ {direction} True
goto @MANSIO1_24792

:MANSIO1_24785
task_weapon_roll 230@ {direction} False

:MANSIO1_24792
250@ = 0
set_char_heading 316@ {heading} 0.0
set_char_area_visible 316@ {areaId} 5
set_char_decision_maker 316@ {handleOrTemplate} 37@
320@ = 0
157@ += 1

:MANSIO1_24838
418@ = 1284.939
419@ = -799.527
420@ = 1279.67
421@ = -803.5135
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_24910
goto @MANSIO1_28153

:MANSIO1_24910
413@ = 1
47@ = add_blip_for_coord 1227.226 {y} -834.4195 {z} 1083.0081
set_blip_entry_exit 47@ {x} 1258.338 {y} -785.4264 {radius} 91.0313
set_coord_blip_appearance 47@ {color} CoordAppearance.Enemy
472@ = 0
488@ = 10000
157@ += 1

:MANSIO1_24986
418@ = 1284.9399
419@ = -823.43
420@ = 1280.15
421@ = -818.35
gosub @MANSIO1_29026
if 
  417@ == 0
goto_if_false @MANSIO1_25058
goto @MANSIO1_28153

:MANSIO1_25058
231@ = create_char PedType.Mission2 {modelId} 110 {x} 1267.936 {y} -836.5694 {z} 1084.6331
set_char_heading 231@ {heading} 312.4274
set_char_health 231@ {health} 200
set_char_max_health 231@ {maxHealth} 200
set_char_area_visible 231@ {areaId} 5
give_weapon_to_char 231@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 231@ {weaponType} WeaponType.Mp5
set_char_accuracy 231@ {accuracy} 60
set_char_shoot_rate 231@ {rate} 60
task_toggle_duck 231@ {state} True
set_char_decision_maker 231@ {handleOrTemplate} 36@
251@ = 0
232@ = create_char PedType.Mission2 {modelId} 108 {x} 1272.9399 {y} -837.6696 {z} 1084.6331
set_char_heading 232@ {heading} 325.2802
set_char_health 232@ {health} 200
set_char_max_health 232@ {maxHealth} 200
set_char_area_visible 232@ {areaId} 5
give_weapon_to_char 232@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 232@ {weaponType} WeaponType.Mp5
set_char_accuracy 232@ {accuracy} 60
set_char_shoot_rate 232@ {rate} 60
task_toggle_duck 232@ {state} True
set_char_decision_maker 232@ {handleOrTemplate} 36@
252@ = 0
233@ = create_char PedType.Mission2 {modelId} 110 {x} 1278.936 {y} -837.8117 {z} 1084.6331
set_char_heading 233@ {heading} 354.8666
set_char_health 233@ {health} 200
set_char_max_health 233@ {maxHealth} 200
set_char_area_visible 233@ {areaId} 5
give_weapon_to_char 233@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 233@ {weaponType} WeaponType.Mp5
set_char_accuracy 233@ {accuracy} 60
set_char_shoot_rate 233@ {rate} 60
task_toggle_duck 233@ {state} True
set_char_decision_maker 233@ {handleOrTemplate} 36@
253@ = 0
234@ = create_char PedType.Mission2 {modelId} 108 {x} 1293.434 {y} -837.4308 {z} 1084.6331
set_char_heading 234@ {heading} 84.6034
set_char_health 234@ {health} 200
set_char_max_health 234@ {maxHealth} 200
set_char_area_visible 234@ {areaId} 5
give_weapon_to_char 234@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 234@ {weaponType} WeaponType.Mp5
set_char_accuracy 234@ {accuracy} 60
set_char_shoot_rate 234@ {rate} 60
task_toggle_duck 234@ {state} True
set_char_decision_maker 234@ {handleOrTemplate} 36@
254@ = 0
235@ = create_char PedType.Mission2 {modelId} 110 {x} 1288.788 {y} -832.1437 {z} 1084.6331
set_char_heading 235@ {heading} 93.3971
set_char_health 235@ {health} 200
set_char_max_health 235@ {maxHealth} 200
set_char_area_visible 235@ {areaId} 5
give_weapon_to_char 235@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 235@ {weaponType} WeaponType.Mp5
set_char_accuracy 235@ {accuracy} 60
set_char_shoot_rate 235@ {rate} 60
task_toggle_duck 235@ {state} True
set_char_decision_maker 235@ {handleOrTemplate} 36@
255@ = 0
236@ = create_char PedType.Mission2 {modelId} 108 {x} 1279.452 {y} -818.7137 {z} 1084.6331
set_char_heading 236@ {heading} 169.7489
set_char_health 236@ {health} 200
set_char_max_health 236@ {maxHealth} 200
set_char_area_visible 236@ {areaId} 5
give_weapon_to_char 236@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 236@ {weaponType} WeaponType.Mp5
set_char_accuracy 236@ {accuracy} 30
set_char_shoot_rate 236@ {rate} 50
task_toggle_duck 236@ {state} True
set_char_decision_maker 236@ {handleOrTemplate} 36@
256@ = 0
317@ = create_char PedType.Mission3 {modelId} 13 {x} 1292.736 {y} -832.9896 {z} 1084.6331
set_char_heading 317@ {heading} 90.0
set_char_area_visible 317@ {areaId} 5
set_char_decision_maker 317@ {handleOrTemplate} 37@
321@ = 0
318@ = create_char PedType.Mission3 {modelId} 195 {x} 1277.984 {y} -813.5414 {z} 1084.64
set_char_heading 318@ {heading} 180.0
set_char_area_visible 318@ {areaId} 5
set_char_decision_maker 318@ {handleOrTemplate} 37@
322@ = 0
157@ += 1

:MANSIO1_25838
if 
  is_char_in_area_2d $scplayer {leftBottomX} 1266.533 {leftBottomY} -831.5337 {rightTopX} 1261.282 {rightTopY} -838.8454 {drawSphere} False
goto_if_false @MANSIO1_26532
237@ = create_char PedType.Mission2 {modelId} 110 {x} 1253.7581 {y} -826.5505 {z} 1083.0081
set_char_heading 237@ {heading} 197.3586
set_char_health 237@ {health} 200
set_char_max_health 237@ {maxHealth} 200
set_char_area_visible 237@ {areaId} 5
give_weapon_to_char 237@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 237@ {weaponType} WeaponType.Mp5
set_char_accuracy 237@ {accuracy} 60
set_char_shoot_rate 237@ {rate} 70
task_toggle_duck 237@ {state} True
set_char_decision_maker 237@ {handleOrTemplate} 36@
task_go_straight_to_coord 237@ {x} 1255.499 {y} -831.5446 {z} 1083.0081 {speed} MoveState.Run {time} -1
257@ = 0
238@ = create_char PedType.Mission2 {modelId} 108 {x} 1233.705 {y} -827.7943 {z} 1083.0081
set_char_heading 238@ {heading} 180.0
set_char_health 238@ {health} 200
set_char_max_health 238@ {maxHealth} 200
set_char_area_visible 238@ {areaId} 5
give_weapon_to_char 238@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 238@ {weaponType} WeaponType.Mp5
set_char_accuracy 238@ {accuracy} 60
set_char_shoot_rate 238@ {rate} 70
set_char_decision_maker 238@ {handleOrTemplate} 34@
258@ = 0
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1234.104 {y} -832.2075 {z} 1083.0081 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1238.847 {y} -833.2389 {z} 1083.0081 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
task_set_char_decision_maker -1 {handleOrTemplate} 36@
close_sequence_task 45@
perform_sequence_task 238@ {sequence} 45@
clear_sequence_task 45@
328@ = create_char PedType.Mission2 {modelId} 109 {x} 1227.226 {y} -834.4195 {z} 1083.0081
set_char_heading 328@ {heading} 270.0
set_char_proofs 328@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 328@ {handleOrTemplate} 34@
set_char_never_targetted 328@ {state} True
remove_blip 47@
329@ = add_blip_for_char 328@
set_blip_entry_exit 329@ {x} 1258.338 {y} -785.4264 {radius} 91.0313
change_blip_display 329@ {display} BlipDisplay.MarkerOnly
516@ = 1227.3149
517@ = -831.5784
45@ = open_sequence_task 
task_weapon_roll -1 {direction} True
task_stand_still -1 {time} 2000
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.0081 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1225.194
519@ = -816.5573
520@ = 270.0
514@ = 0
set_var_int_to_constant $load_sample = 23804
set_var_text_label s$load_text = 'MAN1_BA'
start_new_script @A_ALAP 2 200 328@ 
330@ = 1
415@ = -1
319@ = create_char PedType.Mission3 {modelId} 13 {x} 1240.835 {y} -826.6857 {z} 1082.156
set_char_heading 319@ {heading} 143.0862
set_char_area_visible 319@ {areaId} 5
set_char_decision_maker 319@ {handleOrTemplate} 37@
323@ = 0
157@ += 1

:MANSIO1_26532
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1229.934 {leftBottomY} -835.5339 {leftBottomZ} 1082.5 {rightTopX} 1224.882 {rightTopY} -838.8135 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_26750
if 
  515@ == 0
goto_if_false @MANSIO1_26621
print_now 'MAN1_21' {time} 8000 {flag} 1
515@ = 1

:MANSIO1_26621
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_26743
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1231.282
517@ = -816.6354
task_go_straight_to_coord 328@ {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
518@ = 1256.583
519@ = -812.8542
520@ = 270.0
514@ = 0

:MANSIO1_26743
157@ += 1

:MANSIO1_26750
goto @MANSIO1_28153

:MANSIO1_26757
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1228.6801 {leftBottomY} -829.9222 {leftBottomZ} 1082.5 {rightTopX} 1224.8831 {rightTopY} -825.2996 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_26922
239@ = create_char PedType.Mission2 {modelId} 108 {x} 1228.808 {y} -812.9333 {z} 1083.0081
set_char_heading 239@ {heading} 180.0
set_char_health 239@ {health} 200
set_char_max_health 239@ {maxHealth} 200
set_char_area_visible 239@ {areaId} 5
give_weapon_to_char 239@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 239@ {weaponType} WeaponType.Mp5
set_char_accuracy 239@ {accuracy} 60
set_char_shoot_rate 239@ {rate} 70
set_char_decision_maker 239@ {handleOrTemplate} 36@
task_weapon_roll 239@ {direction} True
259@ = 0
157@ += 1

:MANSIO1_26922
goto @MANSIO1_28153

:MANSIO1_26929
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1229.799 {leftBottomY} -810.6401 {leftBottomZ} 1082.5 {rightTopX} 1224.884 {rightTopY} -819.0158 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27151
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27144
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1262.6281
517@ = -805.6454
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1261.444 {y} -812.2836 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1266.928
519@ = -801.9423
520@ = 270.0
514@ = 0

:MANSIO1_27144
157@ += 1

:MANSIO1_27151
goto @MANSIO1_28153

:MANSIO1_27158
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1254.281 {leftBottomY} -810.6465 {leftBottomZ} 1082.5 {rightTopX} 1264.045 {rightTopY} -813.9205 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27380
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27366
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1274.634
517@ = -801.9045
task_go_straight_to_coord 328@ {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
518@ = 1257.3879
519@ = -789.8594
520@ = 90.0
514@ = 0
set_var_int_to_constant $load_sample = 23805
set_var_text_label s$load_text = 'MAN1_BB'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_27366
157@ += 1
gosub @MANSIO1_35546

:MANSIO1_27380
goto @MANSIO1_28153

:MANSIO1_27387
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1278.469 {leftBottomY} -791.9025 {leftBottomZ} 1082.5 {rightTopX} 1285.187 {rightTopY} -786.7327 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27647
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27640
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1249.665
517@ = -782.4513
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1250.071 {y} -788.768 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1265.614
519@ = -769.7585
520@ = 270.0
514@ = 0
set_var_int_to_constant $load_sample = 23806
set_var_text_label s$load_text = 'MAN1_BC'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_27640
157@ += 1

:MANSIO1_27647
goto @MANSIO1_28153

:MANSIO1_27654
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1251.285 {leftBottomY} -775.3042 {leftBottomZ} 1082.5 {rightTopX} 1247.005 {rightTopY} -765.7498 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_27876
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_27869
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1269.674
517@ = -774.7773
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1269.4 {y} -769.4953 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = 1280.115
519@ = -781.6223
520@ = 270.0
514@ = 0

:MANSIO1_27869
157@ += 1

:MANSIO1_27876
goto @MANSIO1_28153

:MANSIO1_27883
if 
  is_char_in_area_3d $scplayer {leftBottomX} 1260.2889 {leftBottomY} -765.4207 {leftBottomZ} 1082.5 {rightTopX} 1267.524 {rightTopY} -774.8633 {rightTopZ} 1085.5 {drawSphere} False
goto_if_false @MANSIO1_28146
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_28139
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
516@ = 1301.0811
517@ = -786.3077
45@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1288.806 {y} -780.5795 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1300.839 {y} -781.0582 {z} 1083.015 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 516@ {y} 517@ {z} 1083.015 {speed} MoveState.Run {time} -1
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
518@ = -1.0
514@ = 0
set_var_int_to_constant $load_sample = 23807
set_var_text_label s$load_text = 'MAN1_BD'
start_new_script @A_ALAP 2 200 328@ 

:MANSIO1_28139
157@ += 1

:MANSIO1_28146
goto @MANSIO1_28153

:MANSIO1_28153
return 

:MANSIO1_28155
if 
  415@ == 0
goto_if_false @MANSIO1_28951
43@ = 0

:MANSIO1_28180
if 
  4 > 43@
goto_if_false @MANSIO1_28944
if 
  411@(43@,4i) == 1
goto_if_false @MANSIO1_28930
switch_start 43@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_28930 {caseNum1} 0 {caseLabel1} @MANSIO1_28283 {caseNum2} 1 {caseLabel2} @MANSIO1_28335 {caseNum3} 2 {caseLabel3} @MANSIO1_28610 {caseNum4} 3 {caseLabel4} @MANSIO1_28662 {caseNum5} -1 {caseLabel5} @MANSIO1_28930 {caseNum6} -1 {caseLabel6} @MANSIO1_28930 {caseNum7} -1 {caseLabel7} @MANSIO1_28930

:MANSIO1_28283
print_now 'MAN1_13' {time} 8000 {flag} 1
415@ = 1
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4
goto @MANSIO1_28930

:MANSIO1_28335
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_28483
if 
  locate_char_on_foot_char_3d $scplayer {target} 143@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28469
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_28432
set_var_int_to_constant $load_sample = 23822
set_var_text_label s$load_text = 'MAN1_FA'
goto @MANSIO1_28454

:MANSIO1_28432
set_var_int_to_constant $load_sample = 23823
set_var_text_label s$load_text = 'MAN1_FB'

:MANSIO1_28454
start_new_script @A_ALAP 2 100 143@ 

:MANSIO1_28469
415@ = 1
goto @MANSIO1_28563

:MANSIO1_28483
if 
  locate_char_on_foot_char_3d $scplayer {target} 144@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28556
set_var_int_to_constant $load_sample = 23830
set_var_text_label s$load_text = 'MAN1_FJ'
start_new_script @A_ALAP 2 100 144@ 

:MANSIO1_28556
415@ = 1

:MANSIO1_28563
if 
  415@ == 1
goto_if_false @MANSIO1_28603
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4

:MANSIO1_28603
goto @MANSIO1_28930

:MANSIO1_28610
print_now 'MAN1_20' {time} 8000 {flag} 1
415@ = 1
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4
goto @MANSIO1_28930

:MANSIO1_28662
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_28810
if 
  locate_char_on_foot_char_3d $scplayer {target} 143@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28796
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_28759
set_var_int_to_constant $load_sample = 23828
set_var_text_label s$load_text = 'MAN1_FG'
goto @MANSIO1_28781

:MANSIO1_28759
set_var_int_to_constant $load_sample = 23829
set_var_text_label s$load_text = 'MAN1_FH'

:MANSIO1_28781
start_new_script @A_ALAP 2 100 143@ 

:MANSIO1_28796
415@ = 1
goto @MANSIO1_28890

:MANSIO1_28810
if 
  locate_char_on_foot_char_3d $scplayer {target} 144@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_28883
set_var_int_to_constant $load_sample = 23835
set_var_text_label s$load_text = 'MAN1_FO'
start_new_script @A_ALAP 2 100 144@ 

:MANSIO1_28883
415@ = 1

:MANSIO1_28890
if 
  415@ == 1
goto_if_false @MANSIO1_28930
set_lvar_int_to_lvar_int 416@ = 43@
TIMERB = 0
43@ = 4

:MANSIO1_28930
43@ += 1
goto @MANSIO1_28180

:MANSIO1_28944
goto @MANSIO1_29024

:MANSIO1_28951
if 
  415@ == 1
goto_if_false @MANSIO1_29024
if 
  TIMERB > 8000
goto_if_false @MANSIO1_29024
if 
  416@ <> -1
goto_if_false @MANSIO1_29017
411@(416@,4i) = -1

:MANSIO1_29017
415@ = 0

:MANSIO1_29024
return 

:MANSIO1_29026
417@ = 0
if 
  is_char_in_area_2d $scplayer {leftBottomX} 418@ {leftBottomY} 419@ {rightTopX} 420@ {rightTopY} 421@ {drawSphere} False
goto_if_false @MANSIO1_29072
417@ = 1
return 

:MANSIO1_29072
if 
  not is_char_dead 143@
goto_if_false @MANSIO1_29127
if 
  is_char_in_area_2d 143@ {leftBottomX} 418@ {leftBottomY} 419@ {rightTopX} 420@ {rightTopY} 421@ {drawSphere} False
goto_if_false @MANSIO1_29127
417@ = 1
return 

:MANSIO1_29127
if 
  not is_char_dead 144@
goto_if_false @MANSIO1_29182
if 
  is_char_in_area_2d 144@ {leftBottomX} 418@ {leftBottomY} 419@ {rightTopX} 420@ {rightTopY} 421@ {drawSphere} False
goto_if_false @MANSIO1_29182
417@ = 1
return 

:MANSIO1_29182
return 

:MANSIO1_29184
430@ = 0
431@ = 1

:MANSIO1_29198
if 
  2 > 430@
goto_if_false @MANSIO1_30961
if 
  not is_char_dead 143@(430@,3i)
goto_if_false @MANSIO1_30763
switch_start 149@(430@,3i) {numCases} 18 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_30756 {caseNum1} 0 {caseLabel1} @MANSIO1_29433 {caseNum2} 1 {caseLabel2} @MANSIO1_29433 {caseNum3} 2 {caseLabel3} @MANSIO1_29497 {caseNum4} 3 {caseLabel4} @MANSIO1_29497 {caseNum5} 4 {caseLabel5} @MANSIO1_29559 {caseNum6} 5 {caseLabel6} @MANSIO1_29559 {caseNum7} 6 {caseLabel7} @MANSIO1_29684
switch_continued 7 {caseLabel1} @MANSIO1_29684 {caseNum2} 8 {caseLabel2} @MANSIO1_29752 {caseNum3} 9 {caseLabel3} @MANSIO1_29854 {caseNum4} 10 {caseLabel4} @MANSIO1_29907 {caseNum5} 11 {caseLabel5} @MANSIO1_29983 {caseNum6} 12 {caseLabel6} @MANSIO1_30089 {caseNum7} 13 {caseLabel7} @MANSIO1_30199 {caseNum8} 14 {caseLabel8} @MANSIO1_30266 {caseNum9} 15 {caseLabel9} @MANSIO1_30361
switch_continued 16 {caseLabel1} @MANSIO1_30550 {caseNum2} 17 {caseLabel2} @MANSIO1_30618 {caseNum3} -1 {caseLabel3} @MANSIO1_30756 {caseNum4} -1 {caseLabel4} @MANSIO1_30756 {caseNum5} -1 {caseLabel5} @MANSIO1_30756 {caseNum6} -1 {caseLabel6} @MANSIO1_30756 {caseNum7} -1 {caseLabel7} @MANSIO1_30756 {caseNum8} -1 {caseLabel8} @MANSIO1_30756 {caseNum9} -1 {caseLabel9} @MANSIO1_30756

:MANSIO1_29433
if or
  246@ <> -1
  247@ <> -1
  248@ <> -1
  249@ <> -1
goto_if_false @MANSIO1_29479
goto @MANSIO1_30756

:MANSIO1_29479
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29497
clear_char_tasks 143@(430@,3i)
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 430@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29559
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_29595
gosub @MANSIO1_30963
goto @MANSIO1_29677

:MANSIO1_29595
clear_char_tasks 143@(430@,3i)
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_toggle_duck 143@(430@,3i) {state} True
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
task_achieve_heading 143@(430@,3i) {heading} 394@(433@,16f)
422@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_29677
goto @MANSIO1_30756

:MANSIO1_29684
if 
  157@ > 0
goto_if_false @MANSIO1_29745
149@(430@,3i) += 2
if 
  432@ == 0
goto_if_false @MANSIO1_29745
412@ = 1
432@ = 1

:MANSIO1_29745
goto @MANSIO1_30756

:MANSIO1_29752
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_29801
if 
  149@(431@,3i) <> 13
goto_if_false @MANSIO1_29801
goto @MANSIO1_30756

:MANSIO1_29801
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 344@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29854
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
set_lvar_int_to_lvar_int 424@(430@,2i) = 345@
149@(430@,3i) += 2
goto @MANSIO1_30756

:MANSIO1_29907
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_29943
gosub @MANSIO1_30963
goto @MANSIO1_29976

:MANSIO1_29943
426@(430@,2i) = 1
422@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_29976
goto @MANSIO1_30756

:MANSIO1_29983
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30019
gosub @MANSIO1_30963
goto @MANSIO1_30082

:MANSIO1_30019
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_stay_in_same_place 143@(430@,3i) {state} True
task_toggle_duck 143@(430@,3i) {state} True
422@(430@,2i) = -1
345@ += 1
149@(430@,3i) += 2

:MANSIO1_30082
goto @MANSIO1_30756

:MANSIO1_30089
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30125
gosub @MANSIO1_30963
goto @MANSIO1_30192

:MANSIO1_30125
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_stay_in_same_place 143@(430@,3i) {state} True
task_toggle_duck 143@(430@,3i) {state} True
422@(430@,2i) = -1
437@(430@,2i) = -1
149@(430@,3i) += 2

:MANSIO1_30192
goto @MANSIO1_30756

:MANSIO1_30199
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_30248
if 
  149@(431@,3i) <> 11
goto_if_false @MANSIO1_30248
goto @MANSIO1_30756

:MANSIO1_30248
149@(430@,3i) -= 5
goto @MANSIO1_30756

:MANSIO1_30266
gosub @MANSIO1_31608
if 
  439@ == 1
goto_if_false @MANSIO1_30354
439@ = 0
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
task_toggle_duck 143@(430@,3i) {state} False
426@(430@,2i) = 0
422@(430@,2i) = -1
149@(430@,3i) += 1

:MANSIO1_30354
goto @MANSIO1_30756

:MANSIO1_30361
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30397
gosub @MANSIO1_30963
goto @MANSIO1_30543

:MANSIO1_30397
if 
  344@ == 8
goto_if_false @MANSIO1_30471
149@(430@,3i) = 16
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_30457
149@(431@,3i) = 16

:MANSIO1_30457
414@ = 1
goto @MANSIO1_30543

:MANSIO1_30471
422@(430@,2i) = -1
if 
  not is_char_dead 143@(431@,3i)
goto_if_false @MANSIO1_30532
set_lvar_int_to_lvar_int 424@(430@,2i) = 345@
149@(430@,3i) -= 4
goto @MANSIO1_30543

:MANSIO1_30532
149@(430@,3i) -= 7

:MANSIO1_30543
goto @MANSIO1_30756

:MANSIO1_30550
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 35@
422@(430@,2i) = -1
433@ = 14
add_int_lvar_to_int_lvar 433@ += 430@
set_lvar_int_to_lvar_int 424@(430@,2i) = 433@
149@(430@,3i) += 1
goto @MANSIO1_30756

:MANSIO1_30618
if 
  422@(430@,2i) <> 3
goto_if_false @MANSIO1_30654
gosub @MANSIO1_30963
goto @MANSIO1_30749

:MANSIO1_30654
set_char_decision_maker 143@(430@,3i) {handleOrTemplate} 36@
task_stay_in_same_place 143@(430@,3i) {state} True
if 
  424@(430@,2i) == 14
goto_if_false @MANSIO1_30710
task_toggle_duck 143@(430@,3i) {state} True

:MANSIO1_30710
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
task_achieve_heading 143@(430@,3i) {heading} 394@(433@,16f)
149@(430@,3i) += 1

:MANSIO1_30749
goto @MANSIO1_30756

:MANSIO1_30756
goto @MANSIO1_30940

:MANSIO1_30763
if 
  149@(430@,3i) <> -2
goto_if_false @MANSIO1_30940
switch_start 149@(430@,3i) {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_30852 {caseNum1} -1 {caseLabel1} @MANSIO1_30881 {caseNum2} -1 {caseLabel2} @MANSIO1_30940 {caseNum3} -1 {caseLabel3} @MANSIO1_30940 {caseNum4} -1 {caseLabel4} @MANSIO1_30940 {caseNum5} -1 {caseLabel5} @MANSIO1_30940 {caseNum6} -1 {caseLabel6} @MANSIO1_30940 {caseNum7} -1 {caseLabel7} @MANSIO1_30940

:MANSIO1_30852
164@(430@,3i) = 0
149@(430@,3i) = -1
goto @MANSIO1_30940

:MANSIO1_30881
if 
  10000 > 164@(430@,3i)
goto_if_false @MANSIO1_30911
goto @MANSIO1_30940

:MANSIO1_30911
remove_char_elegantly 143@(430@,3i)
mark_model_as_no_longer_needed 428@(430@,2i)
149@(430@,3i) -= 1

:MANSIO1_30940
430@ += 1
431@ -= 1
goto @MANSIO1_29198

:MANSIO1_30961
return 

:MANSIO1_30963
set_lvar_int_to_lvar_int 433@ = 424@(430@,2i)
set_lvar_float_to_lvar_float 434@ = 346@(433@,16f)
set_lvar_float_to_lvar_float 435@ = 362@(433@,16f)
set_lvar_float_to_lvar_float 436@ = 378@(433@,16f)
if 
  426@(430@,2i) == 1
goto_if_false @MANSIO1_31130
switch_start 344@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31130 {caseNum1} 2 {caseLabel1} @MANSIO1_31096 {caseNum2} 3 {caseLabel2} @MANSIO1_31113 {caseNum3} 4 {caseLabel3} @MANSIO1_31096 {caseNum4} 5 {caseLabel4} @MANSIO1_31113 {caseNum5} 6 {caseLabel5} @MANSIO1_31096 {caseNum6} 7 {caseLabel6} @MANSIO1_31113 {caseNum7} -1 {caseLabel7} @MANSIO1_31130

:MANSIO1_31096
434@ -= 3.5
goto @MANSIO1_31130

:MANSIO1_31113
434@ += 3.5
goto @MANSIO1_31130

:MANSIO1_31130
switch_start 422@(430@,2i) {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31606 {caseNum1} -1 {caseLabel1} @MANSIO1_31197 {caseNum2} 0 {caseLabel2} @MANSIO1_31310 {caseNum3} 1 {caseLabel3} @MANSIO1_31361 {caseNum4} 2 {caseLabel4} @MANSIO1_31525 {caseNum5} -1 {caseLabel5} @MANSIO1_31606 {caseNum6} -1 {caseLabel6} @MANSIO1_31606 {caseNum7} -1 {caseLabel7} @MANSIO1_31606

:MANSIO1_31197
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31248
task_stay_in_same_place 143@(430@,3i) {state} True
422@(430@,2i) = 0
goto @MANSIO1_31303

:MANSIO1_31248
task_stay_in_same_place 143@(430@,3i) {state} False
task_toggle_duck 143@(430@,3i) {state} False
task_go_straight_to_coord 143@(430@,3i) {x} 434@ {y} 435@ {z} 436@ {speed} MoveState.Run {time} -2
422@(430@,2i) = 1

:MANSIO1_31303
goto @MANSIO1_31606

:MANSIO1_31310
if 
  not is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31354
164@(430@,3i) = 0
422@(430@,2i) = 2

:MANSIO1_31354
goto @MANSIO1_31606

:MANSIO1_31361
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31401
422@(430@,2i) = -1
goto @MANSIO1_31518

:MANSIO1_31401
if 
  locate_char_on_foot_3d 143@(430@,3i) {x} 434@ {y} 435@ {z} 436@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @MANSIO1_31465
422@(430@,2i) = 3
goto @MANSIO1_31518

:MANSIO1_31465
50@ = get_script_task_status 143@(430@,3i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 50@ == 7
goto_if_false @MANSIO1_31518
clear_char_tasks 143@(430@,3i)
422@(430@,2i) = -1

:MANSIO1_31518
goto @MANSIO1_31606

:MANSIO1_31525
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31565
422@(430@,2i) = 0
goto @MANSIO1_31599

:MANSIO1_31565
if 
  164@(430@,3i) > 500
goto_if_false @MANSIO1_31599
422@(430@,2i) = -1

:MANSIO1_31599
goto @MANSIO1_31606

:MANSIO1_31606
return 

:MANSIO1_31608
switch_start 437@(430@,2i) {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_31862 {caseNum1} -1 {caseLabel1} @MANSIO1_31675 {caseNum2} 0 {caseLabel2} @MANSIO1_31726 {caseNum3} 1 {caseLabel3} @MANSIO1_31807 {caseNum4} -1 {caseLabel4} @MANSIO1_31862 {caseNum5} -1 {caseLabel5} @MANSIO1_31862 {caseNum6} -1 {caseLabel6} @MANSIO1_31862 {caseNum7} -1 {caseLabel7} @MANSIO1_31862

:MANSIO1_31675
if 
  not is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31719
164@(430@,3i) = 0
437@(430@,2i) += 1

:MANSIO1_31719
goto @MANSIO1_31862

:MANSIO1_31726
if 
  is_char_responding_to_event 143@(430@,3i) {event} Event.None
goto_if_false @MANSIO1_31766
437@(430@,2i) -= 1
goto @MANSIO1_31800

:MANSIO1_31766
if 
  164@(430@,3i) > 300
goto_if_false @MANSIO1_31800
437@(430@,2i) += 1

:MANSIO1_31800
goto @MANSIO1_31862

:MANSIO1_31807
gosub @MANSIO1_31864
if 
  439@ == 0
goto_if_false @MANSIO1_31855
164@(430@,3i) = 150
437@(430@,2i) -= 1

:MANSIO1_31855
goto @MANSIO1_31862

:MANSIO1_31862
return 

:MANSIO1_31864
439@ = 0
switch_start 344@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_32394 {caseNum1} 2 {caseLabel1} @MANSIO1_31934 {caseNum2} 3 {caseLabel2} @MANSIO1_32013 {caseNum3} 4 {caseLabel3} @MANSIO1_32092 {caseNum4} 5 {caseLabel4} @MANSIO1_32164 {caseNum5} 6 {caseLabel5} @MANSIO1_32243 {caseNum6} 7 {caseLabel6} @MANSIO1_32315 {caseNum7} -1 {caseLabel7} @MANSIO1_32394

:MANSIO1_31934
if and
  296@ == -1
  297@ == -1
goto_if_false @MANSIO1_32006
439@ = 1
440@ = 1271.3409
441@ = -785.5189
442@ = 1278.642
443@ = -798.1946

:MANSIO1_32006
goto @MANSIO1_32394

:MANSIO1_32013
if and
  298@ == -1
  299@ == -1
goto_if_false @MANSIO1_32085
439@ = 1
440@ = 1285.97
441@ = -785.5347
442@ = 1293.101
443@ = -799.4673

:MANSIO1_32085
goto @MANSIO1_32394

:MANSIO1_32092
if 
  300@ == -1
goto_if_false @MANSIO1_32157
439@ = 1
440@ = 1271.417
441@ = -799.7592
442@ = 1278.639
443@ = -810.0243

:MANSIO1_32157
goto @MANSIO1_32394

:MANSIO1_32164
if and
  301@ == -1
  302@ == -1
goto_if_false @MANSIO1_32236
439@ = 1
440@ = 1285.959
441@ = -800.8917
442@ = 1293.121
443@ = -811.5349

:MANSIO1_32236
goto @MANSIO1_32394

:MANSIO1_32243
if 
  303@ == -1
goto_if_false @MANSIO1_32308
439@ = 1
440@ = 1271.434
441@ = -811.7203
442@ = 1278.597
443@ = -822.8848

:MANSIO1_32308
goto @MANSIO1_32394

:MANSIO1_32315
if and
  304@ == -1
  305@ == -1
goto_if_false @MANSIO1_32387
439@ = 1
440@ = 1285.944
441@ = -812.8881
442@ = 1293.238
443@ = -823.5223

:MANSIO1_32387
goto @MANSIO1_32394

:MANSIO1_32394
if 
  439@ == 1
goto_if_false @MANSIO1_32519
43@ = 0

:MANSIO1_32419
if 
  20 > 43@
goto_if_false @MANSIO1_32519
if 
  not is_char_dead 226@(43@,20i)
goto_if_false @MANSIO1_32505
if 
  is_char_in_area_2d 226@(43@,20i) {leftBottomX} 440@ {leftBottomY} 441@ {rightTopX} 442@ {rightTopY} 443@ {drawSphere} False
goto_if_false @MANSIO1_32505
439@ = 0
43@ = 20

:MANSIO1_32505
43@ += 1
goto @MANSIO1_32419

:MANSIO1_32519
if 
  439@ == 1
goto_if_false @MANSIO1_32644
43@ = 0

:MANSIO1_32544
if 
  3 > 43@
goto_if_false @MANSIO1_32644
if 
  not is_char_dead 474@(43@,3i)
goto_if_false @MANSIO1_32630
if 
  is_char_in_area_2d 474@(43@,3i) {leftBottomX} 440@ {leftBottomY} 441@ {rightTopX} 442@ {rightTopY} 443@ {drawSphere} False
goto_if_false @MANSIO1_32630
439@ = 0
43@ = 2

:MANSIO1_32630
43@ += 1
goto @MANSIO1_32544

:MANSIO1_32644
if 
  439@ == 1
goto_if_false @MANSIO1_32860
344@ += 1
if 
  not is_message_being_displayed 
goto_if_false @MANSIO1_32860
if 
  locate_char_on_foot_char_3d $scplayer {target} 143@(430@,3i) {xRadius} 35.0 {yRadius} 35.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO1_32860
if 
  430@ == 0
goto_if_false @MANSIO1_32771
set_var_int_to_lvar_int $load_sample = 444@(452@,8i)
set_var_text_label s$load_text = 453@(452@,8s)
goto @MANSIO1_32809

:MANSIO1_32771
452@ += 4
set_var_int_to_lvar_int $load_sample = 444@(452@,8i)
set_var_text_label s$load_text = 453@(452@,8s)
452@ -= 4

:MANSIO1_32809
start_new_script @A_ALAP 2 100 143@(430@,3i) 
452@ += 1
if 
  452@ == 4
goto_if_false @MANSIO1_32860
452@ = 0

:MANSIO1_32860
return 

:MANSIO1_32862
43@ = 0

:MANSIO1_32869
if 
  20 > 43@
goto_if_false @MANSIO1_33074
switch_start 246@(43@,20i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33060 {caseNum1} 0 {caseLabel1} @MANSIO1_32954 {caseNum2} 1 {caseLabel2} @MANSIO1_33010 {caseNum3} -1 {caseLabel3} @MANSIO1_33060 {caseNum4} -1 {caseLabel4} @MANSIO1_33060 {caseNum5} -1 {caseLabel5} @MANSIO1_33060 {caseNum6} -1 {caseLabel6} @MANSIO1_33060 {caseNum7} -1 {caseLabel7} @MANSIO1_33060

:MANSIO1_32954
if 
  not is_char_dead 226@(43@,20i)
goto_if_false @MANSIO1_32988
goto @MANSIO1_33060
goto @MANSIO1_33010

:MANSIO1_32988
266@(43@,20i) = 0
246@(43@,20i) = 1

:MANSIO1_33010
if 
  266@(43@,20i) > 2500
goto_if_false @MANSIO1_33053
mark_char_as_no_longer_needed 226@(43@,20i)
246@(43@,20i) = -1

:MANSIO1_33053
goto @MANSIO1_33060

:MANSIO1_33060
43@ += 1
goto @MANSIO1_32869

:MANSIO1_33074
43@ = 0

:MANSIO1_33081
if 
  10 > 43@
goto_if_false @MANSIO1_33286
switch_start 296@(43@,10i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33272 {caseNum1} 0 {caseLabel1} @MANSIO1_33166 {caseNum2} 1 {caseLabel2} @MANSIO1_33222 {caseNum3} -1 {caseLabel3} @MANSIO1_33272 {caseNum4} -1 {caseLabel4} @MANSIO1_33272 {caseNum5} -1 {caseLabel5} @MANSIO1_33272 {caseNum6} -1 {caseLabel6} @MANSIO1_33272 {caseNum7} -1 {caseLabel7} @MANSIO1_33272

:MANSIO1_33166
if 
  not is_char_dead 286@(43@,10i)
goto_if_false @MANSIO1_33200
goto @MANSIO1_33272
goto @MANSIO1_33222

:MANSIO1_33200
306@(43@,10i) = 0
296@(43@,10i) = 1

:MANSIO1_33222
if 
  306@(43@,10i) > 1800
goto_if_false @MANSIO1_33265
mark_char_as_no_longer_needed 286@(43@,10i)
296@(43@,10i) = -1

:MANSIO1_33265
goto @MANSIO1_33272

:MANSIO1_33272
43@ += 1
goto @MANSIO1_33081

:MANSIO1_33286
43@ = 0

:MANSIO1_33293
if 
  4 > 43@
goto_if_false @MANSIO1_33498
switch_start 320@(43@,4i) {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_33484 {caseNum1} 0 {caseLabel1} @MANSIO1_33378 {caseNum2} 1 {caseLabel2} @MANSIO1_33434 {caseNum3} -1 {caseLabel3} @MANSIO1_33484 {caseNum4} -1 {caseLabel4} @MANSIO1_33484 {caseNum5} -1 {caseLabel5} @MANSIO1_33484 {caseNum6} -1 {caseLabel6} @MANSIO1_33484 {caseNum7} -1 {caseLabel7} @MANSIO1_33484

:MANSIO1_33378
if 
  not is_char_dead 316@(43@,4i)
goto_if_false @MANSIO1_33412
goto @MANSIO1_33484
goto @MANSIO1_33434

:MANSIO1_33412
324@(43@,4i) = 0
320@(43@,4i) = 1

:MANSIO1_33434
if 
  324@(43@,4i) > 1800
goto_if_false @MANSIO1_33477
mark_char_as_no_longer_needed 316@(43@,4i)
320@(43@,4i) = -1

:MANSIO1_33477
goto @MANSIO1_33484

:MANSIO1_33484
43@ += 1
goto @MANSIO1_33293

:MANSIO1_33498
return 

:MANSIO1_33500
$x, $y, $z = get_char_coordinates $scplayer
if 
  $z > 1089.0
goto_if_false @MANSIO1_33909
if 
  $y > -784.0
goto_if_false @MANSIO1_33570
469@ = 0
goto @MANSIO1_33902

:MANSIO1_33570
if or
  1271.0 > $x
  $x > 1294.0
goto_if_false @MANSIO1_33615
469@ = 0
goto @MANSIO1_33902

:MANSIO1_33615
if 
  $y > -824.0
goto_if_false @MANSIO1_33895
if 
  1279.0 > $x
goto_if_false @MANSIO1_33741
if 
  $y > -799.0
goto_if_false @MANSIO1_33692
469@ = 1
goto @MANSIO1_33734

:MANSIO1_33692
if 
  $y > -811.0
goto_if_false @MANSIO1_33727
469@ = 3
goto @MANSIO1_33734

:MANSIO1_33727
469@ = 5

:MANSIO1_33734
goto @MANSIO1_33888

:MANSIO1_33741
if 
  $x > 1285.0
goto_if_false @MANSIO1_33846
if 
  $y > -800.0
goto_if_false @MANSIO1_33797
469@ = 2
goto @MANSIO1_33839

:MANSIO1_33797
if 
  $y > -812.0
goto_if_false @MANSIO1_33832
469@ = 4
goto @MANSIO1_33839

:MANSIO1_33832
469@ = 6

:MANSIO1_33839
goto @MANSIO1_33888

:MANSIO1_33846
if 
  $y > -806.0
goto_if_false @MANSIO1_33881
469@ = 7
goto @MANSIO1_33888

:MANSIO1_33881
469@ = 8

:MANSIO1_33888
goto @MANSIO1_33902

:MANSIO1_33895
469@ = 9

:MANSIO1_33902
goto @MANSIO1_33923

:MANSIO1_33909
489@ = 1
469@ = 10

:MANSIO1_33923
if 
  472@ == 1
goto_if_false @MANSIO1_33957
473@ = generate_random_int_in_range 0 {max} 2
goto @MANSIO1_33964

:MANSIO1_33957
473@ = 0

:MANSIO1_33964
470@ = 0
if 
  489@ <> 1
goto_if_false @MANSIO1_34275
switch_start 469@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_34275 {caseNum1} 0 {caseLabel1} @MANSIO1_34117 {caseNum2} 1 {caseLabel2} @MANSIO1_34138 {caseNum3} 2 {caseLabel3} @MANSIO1_34138 {caseNum4} 3 {caseLabel4} @MANSIO1_34138 {caseNum5} 4 {caseLabel5} @MANSIO1_34191 {caseNum6} 5 {caseLabel6} @MANSIO1_34191 {caseNum7} 6 {caseLabel7} @MANSIO1_34212
switch_continued 7 {caseLabel1} @MANSIO1_34138 {caseNum2} 8 {caseLabel2} @MANSIO1_34233 {caseNum3} 9 {caseLabel3} @MANSIO1_34233 {caseNum4} 10 {caseLabel4} @MANSIO1_34254 {caseNum5} -1 {caseLabel5} @MANSIO1_34275 {caseNum6} -1 {caseLabel6} @MANSIO1_34275 {caseNum7} -1 {caseLabel7} @MANSIO1_34275 {caseNum8} -1 {caseLabel8} @MANSIO1_34275 {caseNum9} -1 {caseLabel9} @MANSIO1_34275

:MANSIO1_34117
set_local_var_bit_const 470@ {bitIndex} 1
set_local_var_bit_const 470@ {bitIndex} 2
goto @MANSIO1_34275

:MANSIO1_34138
if 
  473@ == 0
goto_if_false @MANSIO1_34170
set_local_var_bit_const 470@ {bitIndex} 2
goto @MANSIO1_34177

:MANSIO1_34170
set_local_var_bit_const 470@ {bitIndex} 5

:MANSIO1_34177
set_local_var_bit_const 470@ {bitIndex} 3
goto @MANSIO1_34275

:MANSIO1_34191
set_local_var_bit_const 470@ {bitIndex} 1
set_local_var_bit_const 470@ {bitIndex} 3
goto @MANSIO1_34275

:MANSIO1_34212
set_local_var_bit_const 470@ {bitIndex} 1
set_local_var_bit_const 470@ {bitIndex} 0
goto @MANSIO1_34275

:MANSIO1_34233
set_local_var_bit_const 470@ {bitIndex} 0
set_local_var_bit_const 470@ {bitIndex} 4
goto @MANSIO1_34275

:MANSIO1_34254
set_local_var_bit_const 470@ {bitIndex} 2
set_local_var_bit_const 470@ {bitIndex} 4
goto @MANSIO1_34275

:MANSIO1_34275
471@ = 1
return 

:MANSIO1_34284
486@ = 0

:MANSIO1_34291
if 
  3 > 486@
goto_if_false @MANSIO1_35149
if 
  not is_char_dead 474@(486@,3i)
goto_if_false @MANSIO1_34537
switch_start 477@(486@,3i) {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_34530 {caseNum1} 1 {caseLabel1} @MANSIO1_34396 {caseNum2} -1 {caseLabel2} @MANSIO1_34530 {caseNum3} -1 {caseLabel3} @MANSIO1_34530 {caseNum4} -1 {caseLabel4} @MANSIO1_34530 {caseNum5} -1 {caseLabel5} @MANSIO1_34530 {caseNum6} -1 {caseLabel6} @MANSIO1_34530 {caseNum7} -1 {caseLabel7} @MANSIO1_34530

:MANSIO1_34396
if 
  4 > 335@
goto_if_false @MANSIO1_34523
if 
  not is_message_being_displayed 
goto_if_false @MANSIO1_34523
if 
  locate_char_any_means_char_2d 474@(486@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @MANSIO1_34523
set_var_int_to_lvar_int $load_sample = 331@(335@,4i)
set_var_text_label s$load_text = 336@(335@,4s)
start_new_script @A_ALAP 2 50 474@(486@,3i) 
477@(486@,3i) = 0
335@ += 1

:MANSIO1_34523
goto @MANSIO1_34530

:MANSIO1_34530
goto @MANSIO1_35135

:MANSIO1_34537
switch_start 477@(486@,3i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO1_35113 {caseNum1} -2 {caseLabel1} @MANSIO1_34708 {caseNum2} -1 {caseLabel2} @MANSIO1_34604 {caseNum3} -1 {caseLabel3} @MANSIO1_35135 {caseNum4} -1 {caseLabel4} @MANSIO1_35135 {caseNum5} -1 {caseLabel5} @MANSIO1_35135 {caseNum6} -1 {caseLabel6} @MANSIO1_35135 {caseNum7} -1 {caseLabel7} @MANSIO1_35135

:MANSIO1_34604
if 
  is_int_lvar_greater_than_int_lvar 488@ > 480@(486@,3i)
goto_if_false @MANSIO1_34634
goto @MANSIO1_35135

:MANSIO1_34634
remove_char_elegantly 474@(486@,3i)
if 
  486@ == 2
goto_if_false @MANSIO1_34708
if 
  472@ == 0
goto_if_false @MANSIO1_34697
477@(486@,3i) += 1
goto @MANSIO1_34708

:MANSIO1_34697
477@(486@,3i) -= 1

:MANSIO1_34708
if 
  489@ <> 1
goto_if_false @MANSIO1_35092
if 
  471@ == 0
goto_if_false @MANSIO1_34751
gosub @MANSIO1_33500

:MANSIO1_34751
43@ = 0

:MANSIO1_34758
if 
  6 > 43@
goto_if_false @MANSIO1_35106
if 
  is_local_var_bit_set_lvar 470@ {var_bitIndex} 43@
goto_if_false @MANSIO1_35092
if 
  not is_int_lvar_equal_to_int_lvar 43@ == 487@
goto_if_false @MANSIO1_35092
if 
  not is_point_obscured_by_a_mission_entity 490@(43@,6f) {y} 496@(43@,6f) {z} 502@(43@,6f) {radiusX} 1.5 {radiusY} 1.5 {radiusZ} 0.0
goto_if_false @MANSIO1_35092
create_char PedType.Mission2 {modelId} 108 {x} 490@(43@,6f) {y} 496@(43@,6f) {z} 502@(43@,6f) {var_handle} 474@(486@,3i)
set_char_health 474@(486@,3i) {health} 200
set_char_max_health 474@(486@,3i) {maxHealth} 200
set_char_heading 474@(486@,3i) {heading} 508@(43@,6f)
set_char_area_visible 474@(486@,3i) {areaId} 5
give_weapon_to_char 474@(486@,3i) {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 474@(486@,3i) {weaponType} WeaponType.Mp5
set_char_decision_maker 474@(486@,3i) {handleOrTemplate} 36@
set_char_drops_weapons_when_dead 474@(486@,3i) {state} False
task_kill_char_on_foot 474@(486@,3i) {target} $scplayer
set_char_accuracy 474@(486@,3i) {accuracy} 50
set_char_shoot_rate 474@(486@,3i) {rate} 60
if 
  486@ == 0
goto_if_false @MANSIO1_35066
477@(486@,3i) = 1
goto @MANSIO1_35077

:MANSIO1_35066
477@(486@,3i) = 0

:MANSIO1_35077
set_lvar_int_to_lvar_int 487@ = 43@
43@ = 5

:MANSIO1_35092
43@ += 1
goto @MANSIO1_34758

:MANSIO1_35106
goto @MANSIO1_35135

:MANSIO1_35113
480@(486@,3i) = 0
477@(486@,3i) = -1

:MANSIO1_35135
486@ += 1
goto @MANSIO1_34291

:MANSIO1_35149
return 

:MANSIO1_35151
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_35544
switch_start 514@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_35544 {caseNum1} 0 {caseLabel1} @MANSIO1_35230 {caseNum2} 1 {caseLabel2} @MANSIO1_35514 {caseNum3} -1 {caseLabel3} @MANSIO1_35544 {caseNum4} -1 {caseLabel4} @MANSIO1_35544 {caseNum5} -1 {caseLabel5} @MANSIO1_35544 {caseNum6} -1 {caseLabel6} @MANSIO1_35544 {caseNum7} -1 {caseLabel7} @MANSIO1_35544

:MANSIO1_35230
if 
  not locate_char_on_foot_2d 328@ {x} 516@ {y} 517@ {xRadius} 1.0 {yRadius} 1.0 {drawSphere} False
goto_if_false @MANSIO1_35271
goto @MANSIO1_35544

:MANSIO1_35271
if 
  518@ <> -1.0
goto_if_false @MANSIO1_35369
if 
  515@ == 0
goto_if_false @MANSIO1_35333
print_now 'MAN1_21' {time} 8000 {flag} 1
515@ = 1

:MANSIO1_35333
clear_char_tasks_immediately 328@
set_char_coordinates 328@ {x} 518@ {y} 519@ {z} 1083.01
set_char_heading 328@ {heading} 520@
goto @MANSIO1_35500

:MANSIO1_35369
disable_all_entry_exits False
switch_entry_exit 'MDDOGS' {state} True
47@ = add_blip_for_coord 1298.74 {y} -795.9946 {z} 1083.0081
set_blip_entry_exit 47@ {x} 1258.338 {y} -785.4264 {radius} 91.0313
print_now 'MAN1_22' {time} 8000 {flag} 1
set_char_coordinates 328@ {x} 1261.031 {y} -815.666 {z} 83.1484
set_char_heading 328@ {heading} 65.0097
set_char_area_visible 328@ {areaId} 0
freeze_char_position_and_dont_load_collision 328@ {state} True
514@ = 1
goto @MANSIO1_35544

:MANSIO1_35500
514@ = -1
goto @MANSIO1_35544

:MANSIO1_35514
48@ = get_area_visible 
if 
  48@ == 0
goto_if_false @MANSIO1_35544
514@ = 2

:MANSIO1_35544
return 

:MANSIO1_35546
delete_char 143@
delete_char 144@
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 356
43@ = 0

:MANSIO1_35576
if 
  10 > 43@
goto_if_false @MANSIO1_35617
delete_char 286@(43@,10i)
43@ += 1
goto @MANSIO1_35576

:MANSIO1_35617
43@ = 0

:MANSIO1_35624
if 
  13 > 43@
goto_if_false @MANSIO1_35665
mark_char_as_no_longer_needed 226@(43@,20i)
43@ += 1
goto @MANSIO1_35624

:MANSIO1_35665
mark_char_as_no_longer_needed 474@
mark_char_as_no_longer_needed 475@
mark_char_as_no_longer_needed 476@
mark_char_as_no_longer_needed 316@
mark_char_as_no_longer_needed 317@
mark_char_as_no_longer_needed 318@
mark_char_as_no_longer_needed 319@
mark_model_as_no_longer_needed 13
mark_model_as_no_longer_needed 195
remove_decision_maker 37@
remove_decision_maker 35@
request_model 18
request_model 19
request_model 63
request_model 139
521@ = 1
return 

:MANSIO1_35745
switch_start 521@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_36515 {caseNum1} 1 {caseLabel1} @MANSIO1_35808 {caseNum2} 2 {caseLabel2} @MANSIO1_36227 {caseNum3} -1 {caseLabel3} @MANSIO1_36515 {caseNum4} -1 {caseLabel4} @MANSIO1_36515 {caseNum5} -1 {caseLabel5} @MANSIO1_36515 {caseNum6} -1 {caseLabel6} @MANSIO1_36515 {caseNum7} -1 {caseLabel7} @MANSIO1_36515

:MANSIO1_35808
240@ = create_char PedType.Mission2 {modelId} 110 {x} 1260.064 {y} -793.2798 {z} 1083.241
set_char_heading 240@ {heading} 290.4863
set_char_health 240@ {health} 200
set_char_max_health 240@ {maxHealth} 200
set_char_area_visible 240@ {areaId} 5
give_weapon_to_char 240@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 240@ {weaponType} WeaponType.Mp5
set_char_accuracy 240@ {accuracy} 80
set_char_shoot_rate 240@ {rate} 60
set_char_decision_maker 240@ {handleOrTemplate} 36@
260@ = 0
241@ = create_char PedType.Mission2 {modelId} 110 {x} 1257.702 {y} -767.9689 {z} 1083.0081
set_char_heading 241@ {heading} 119.2357
set_char_health 241@ {health} 200
set_char_max_health 241@ {maxHealth} 200
set_char_area_visible 241@ {areaId} 5
give_weapon_to_char 241@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 241@ {weaponType} WeaponType.Mp5
set_char_accuracy 241@ {accuracy} 70
set_char_shoot_rate 241@ {rate} 50
set_char_decision_maker 241@ {handleOrTemplate} 36@
261@ = 0
242@ = create_char PedType.Mission2 {modelId} 110 {x} 1289.814 {y} -778.2963 {z} 1083.0081
set_char_heading 242@ {heading} 67.6874
set_char_health 242@ {health} 200
set_char_max_health 242@ {maxHealth} 200
set_char_area_visible 242@ {areaId} 5
give_weapon_to_char 242@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 242@ {weaponType} WeaponType.Mp5
set_char_accuracy 242@ {accuracy} 70
set_char_shoot_rate 242@ {rate} 60
set_char_decision_maker 242@ {handleOrTemplate} 36@
262@ = 0
243@ = create_char PedType.Mission2 {modelId} 110 {x} 1282.886 {y} -779.3019 {z} 1083.015
set_char_heading 243@ {heading} 57.042
set_char_health 243@ {health} 200
set_char_max_health 243@ {maxHealth} 200
set_char_area_visible 243@ {areaId} 5
give_weapon_to_char 243@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_current_char_weapon 243@ {weaponType} WeaponType.Mp5
set_char_accuracy 243@ {accuracy} 70
set_char_shoot_rate 243@ {rate} 60
set_char_decision_maker 243@ {handleOrTemplate} 36@
263@ = 0
521@ += 1

:MANSIO1_36227
if or
  not has_model_loaded 18
  not has_model_loaded 19
  not has_model_loaded 63
  not has_model_loaded 139
goto_if_false @MANSIO1_36262
goto @MANSIO1_36515

:MANSIO1_36262
522@ = create_char PedType.Mission3 {modelId} 19 {x} 1275.155 {y} -788.5061 {z} 1083.0081
set_char_heading 522@ {heading} 152.55
set_char_area_visible 522@ {areaId} 5
set_char_decision_maker 522@ {handleOrTemplate} 38@
523@ = create_char PedType.Mission3 {modelId} 63 {x} 1274.54 {y} -790.0915 {z} 1083.0081
set_char_heading 523@ {heading} 349.0896
set_char_area_visible 523@ {areaId} 5
set_char_decision_maker 523@ {handleOrTemplate} 38@
524@ = create_char PedType.Mission3 {modelId} 18 {x} 1273.2791 {y} -788.6833 {z} 1083.0081
set_char_heading 524@ {heading} 221.2157
set_char_area_visible 524@ {areaId} 5
set_char_decision_maker 524@ {handleOrTemplate} 38@
525@ = create_char PedType.Mission3 {modelId} 139 {x} 1261.499 {y} -788.9477 {z} 1083.015
set_char_heading 525@ {heading} 154.0331
set_char_area_visible 525@ {areaId} 5
set_char_decision_maker 525@ {handleOrTemplate} 38@
526@ = create_char PedType.Mission3 {modelId} 18 {x} 1260.887 {y} -790.43 {z} 1083.015
set_char_heading 526@ {heading} 332.9453
set_char_area_visible 526@ {areaId} 5
set_char_decision_maker 526@ {handleOrTemplate} 38@
521@ = 0

:MANSIO1_36515
return 

:MANSIO1_36517
clear_prints 
48@ = 5

:MANSIO1_36526
if 
  48@ == 5
goto_if_false @MANSIO1_36563
wait 0
48@ = get_char_area_visible $scplayer
goto @MANSIO1_36526

:MANSIO1_36563
switch_audio_zone 'MADDOGL' {state} False
do_fade 0 {direction} Fade.Out

:MANSIO1_36582
if 
  get_fading_status 
goto_if_false @MANSIO1_36606
wait 0
goto @MANSIO1_36582

:MANSIO1_36606
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
clear_area_of_cars 1239.9041 {leftBottomY} -800.9069 {leftBottomZ} 80.0 {rightTopX} 1261.751 {rightTopY} -817.216 {rightTopZ} 90.0
set_player_control $player1 {state} False
switch_widescreen True
gosub @MANSIO1_38446
set_car_density_multiplier 0.5
request_model 603
request_model 555
request_car_recording 708

:MANSIO1_36704
if or
  not has_model_loaded 603
  not has_model_loaded 555
  not has_car_recording_been_loaded 708
goto_if_false @MANSIO1_36741
wait 0
goto @MANSIO1_36704

:MANSIO1_36741
load_scene 1265.009 {y} -816.3813 {z} 83.6305
527@ = create_car 603 {x} 1250.519 {y} -812.1237 {z} 83.1484
set_car_heading 527@ {heading} 162.4757
custom_plate_for_next_car 555 {text} "J_LOMAX"
set_car_model_components 555 {component1} 1 {component2} 1
528@ = create_car 555 {x} 1244.026 {y} -808.5705 {z} 83.1484
set_car_heading 528@ {heading} 177.4448
change_car_colour 528@ {color1} 126 {color2} 0
set_radio_channel RadioChannel.BounceFM
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_36938
clear_char_tasks_immediately 328@
set_char_decision_maker 328@ {handleOrTemplate} 34@
freeze_char_position_and_dont_load_collision 328@ {state} False
set_char_area_visible 328@ {areaId} 0
set_char_coordinates 328@ {x} 1268.7 {y} -813.0891 {z} 83.1484
set_char_heading 328@ {heading} 90.0
remove_blip 329@

:MANSIO1_36938
set_char_coordinates $scplayer {x} 1268.7 {y} -813.0891 {z} 83.1484
set_char_heading $scplayer {heading} 90.0
camera_reset_new_scriptables 
camera_set_shake_simulation_simple 1 {timeInMs} 50000.0 {intensity} 0.5
set_fixed_camera_position 1265.009 {y} -816.3813 {z} 83.6305 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1264.046 {y} -816.1189 {z} 83.6842 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:MANSIO1_37042
if 
  get_fading_status 
goto_if_false @MANSIO1_37066
wait 0
goto @MANSIO1_37042

:MANSIO1_37066
if and
  not is_char_dead 328@
  not is_car_dead 527@
goto_if_false @MANSIO1_37177
45@ = open_sequence_task 
task_stand_still -1 {time} 1500
task_enter_car_as_driver -1 {vehicle} 527@ {time} 9999
close_sequence_task 45@
perform_sequence_task 328@ {sequence} 45@
clear_sequence_task 45@
45@ = open_sequence_task 
task_stand_still -1 {time} 7000
task_go_straight_to_coord -1 {x} 1251.697 {y} -812.287 {z} 83.1484 {speed} MoveState.Run {time} -2
task_look_at_char -1 {target} 328@ {time} 1500
close_sequence_task 45@

:MANSIO1_37177
perform_sequence_task $scplayer {sequence} 45@
clear_sequence_task 45@
TIMERA = 0

:MANSIO1_37197
if 
  1500 > TIMERA
goto_if_false @MANSIO1_37227
wait 0
goto @MANSIO1_37197

:MANSIO1_37227
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 1265.009 {fromY} -816.3813 {fromZ} 83.6305 {toX} 1253.448 {toY} -815.4342 {toZ} 83.4116 {time} 7500 {ease} True
camera_set_vector_track 1264.046 {fromY} -816.1189 {fromZ} 83.6842 {toX} 1252.86 {toY} -814.6353 {toZ} 83.5422 {time} 7500 {ease} True
49@ = 0

:MANSIO1_37316
if 
  49@ == 0
goto_if_false @MANSIO1_37384
wait 0
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_37377
if 
  is_char_in_any_car 328@
goto_if_false @MANSIO1_37377
49@ = 1

:MANSIO1_37377
goto @MANSIO1_37316

:MANSIO1_37384
if 
  not is_car_dead 527@
goto_if_false @MANSIO1_37456
start_playback_recorded_car 527@ {path} 708
set_car_forward_speed 527@ {forwardSpeed} 40.0
lock_car_doors 527@ {lockStatus} CarLock.Locked
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_37456
set_char_proofs 328@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSIO1_37456
TIMERA = 0

:MANSIO1_37463
if 
  5000 > TIMERA
goto_if_false @MANSIO1_37493
wait 0
goto @MANSIO1_37463

:MANSIO1_37493
if 
  not is_car_dead 527@
goto_if_false @MANSIO1_37517
329@ = add_blip_for_car 527@

:MANSIO1_37517
print_now 'MAN1_23' {time} 8000 {flag} 1
set_player_control $player1 {state} True
switch_widescreen False
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_max_wanted_level 6
set_car_density_multiplier 0.5

:MANSIO1_37561
wait 0
if 
  not is_char_dead 328@
goto_if_false @MANSIO1_37678
if 
  not locate_char_any_means_char_2d $scplayer {target} 328@ {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @MANSIO1_37640
52@ = 1
set_lvar_text_label 53@s = 'MAN1_24'
goto @MANSIO1_38488

:MANSIO1_37640
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO1_37664
530@ = store_car_char_is_in_no_save $scplayer

:MANSIO1_37664
gosub @MANSIO1_38303
goto @MANSIO1_38296

:MANSIO1_37678
remove_blip 329@
TIMERA = 0

:MANSIO1_37690
if 
  2000 > TIMERA
goto_if_false @MANSIO1_37720
wait 0
goto @MANSIO1_37690

:MANSIO1_37720
do_fade 0 {direction} Fade.Out

:MANSIO1_37726
if 
  get_fading_status 
goto_if_false @MANSIO1_37750
wait 0
goto @MANSIO1_37726

:MANSIO1_37750
529@ = get_radio_channel 
set_radio_channel RadioChannel.UserTracks
set_player_control $player1 {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_wanted_level $player1
switch_widescreen True
if 
  not is_car_dead 530@
goto_if_false @MANSIO1_37851
531@ = get_car_health 530@
if 
  500 > 531@
goto_if_false @MANSIO1_37841
set_car_health 530@ {health} 500

:MANSIO1_37841
set_car_forward_speed 530@ {forwardSpeed} 0.0

:MANSIO1_37851
request_model #DRG_NU_EXT

:MANSIO1_37856
if 
  not has_model_loaded #DRG_NU_EXT
goto_if_false @MANSIO1_37883
wait 0
goto @MANSIO1_37856

:MANSIO1_37883
set_fixed_camera_position 1221.787 {y} -856.6817 {z} 99.5425 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1222.33 {y} -855.9062 {z} 99.2196 {switchStyle} SwitchType.JumpCut
load_scene_in_direction 1248.908 {y} -804.626 {z} 87.535 {heading} 297.0012
TIMERA = 0

:MANSIO1_37963
if 
  500 > TIMERA
goto_if_false @MANSIO1_37993
wait 0
goto @MANSIO1_37963

:MANSIO1_37993
do_fade 500 {direction} Fade.In

:MANSIO1_38000
if 
  get_fading_status 
goto_if_false @MANSIO1_38024
wait 0
goto @MANSIO1_38000

:MANSIO1_38024
skip_cutscene_start_internal @MANSIO1_38115
print_now 'MAN1_30' {time} 7000 {flag} 1
TIMERA = 0

:MANSIO1_38054
if 
  7000 > TIMERA
goto_if_false @MANSIO1_38084
wait 0
goto @MANSIO1_38054

:MANSIO1_38084
do_fade 500 {direction} Fade.Out

:MANSIO1_38091
if 
  get_fading_status 
goto_if_false @MANSIO1_38115
wait 0
goto @MANSIO1_38091

:MANSIO1_38115
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:MANSIO1_38123
if 
  get_fading_status 
goto_if_false @MANSIO1_38147
wait 0
goto @MANSIO1_38123

:MANSIO1_38147
mark_model_as_no_longer_needed #DRG_NU_EXT
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_widescreen False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$heading = get_char_heading $scplayer
load_scene_in_direction $player_x {y} $player_y {z} $player_z {heading} $heading
TIMERA = 0

:MANSIO1_38208
if 
  500 > TIMERA
goto_if_false @MANSIO1_38238
wait 0
goto @MANSIO1_38208

:MANSIO1_38238
set_radio_channel 529@
do_fade 500 {direction} Fade.In

:MANSIO1_38250
if 
  get_fading_status 
goto_if_false @MANSIO1_38274
wait 0
goto @MANSIO1_38250

:MANSIO1_38274
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @MANSIO1_38560

:MANSIO1_38296
goto @MANSIO1_37561

:MANSIO1_38303
if 
  not is_car_dead 527@
goto_if_false @MANSIO1_38444
switch_start 532@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSIO1_38444 {caseNum1} 0 {caseLabel1} @MANSIO1_38382 {caseNum2} -1 {caseLabel2} @MANSIO1_38444 {caseNum3} -1 {caseLabel3} @MANSIO1_38444 {caseNum4} -1 {caseLabel4} @MANSIO1_38444 {caseNum5} -1 {caseLabel5} @MANSIO1_38444 {caseNum6} -1 {caseLabel6} @MANSIO1_38444 {caseNum7} -1 {caseLabel7} @MANSIO1_38444

:MANSIO1_38382
if 
  is_playback_going_on_for_car 527@
goto_if_false @MANSIO1_38405
goto @MANSIO1_38444

:MANSIO1_38405
set_car_cruise_speed 527@ {maxSpeed} 25.0
task_car_drive_wander 328@ {vehicle} 527@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
532@ += 1
goto @MANSIO1_38444

:MANSIO1_38444
return 

:MANSIO1_38446
remove_blip 47@
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 139
mark_model_as_no_longer_needed 353
remove_decision_maker 36@
return 

:MANSIO1_38488
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
switch_entry_exit 'MADDOGS' {state} False
switch_entry_exit 'MDDOGS' {state} False
if 
  52@ == 1
goto_if_false @MANSIO1_38558
print_now 53@s {time} 8000 {flag} 1

:MANSIO1_38558
return 

:MANSIO1_38560
43@ = 0

:MANSIO1_38567
if 
  16 > 43@
goto_if_false @MANSIO1_38700
if 
  not is_char_dead 226@(43@,20i)
goto_if_false @MANSIO1_38677
clear_char_tasks 226@(43@,20i)
set_char_accuracy 226@(43@,20i) {accuracy} 20
set_char_shoot_rate 226@(43@,20i) {rate} 25
task_stay_in_same_place 226@(43@,20i) {state} True
task_kill_char_on_foot 226@(43@,20i) {target} $scplayer
set_char_keep_task 226@(43@,20i) {state} True
goto @MANSIO1_38686

:MANSIO1_38677
mark_char_as_no_longer_needed 226@(43@,20i)

:MANSIO1_38686
43@ += 1
goto @MANSIO1_38567

:MANSIO1_38700
43@ = 0

:MANSIO1_38707
if 
  10 > 43@
goto_if_false @MANSIO1_38840
if 
  not is_char_dead 286@(43@,10i)
goto_if_false @MANSIO1_38817
clear_char_tasks 286@(43@,10i)
set_char_accuracy 226@(43@,20i) {accuracy} 20
set_char_shoot_rate 226@(43@,20i) {rate} 25
task_stay_in_same_place 286@(43@,10i) {state} True
task_kill_char_on_foot 286@(43@,10i) {target} $scplayer
set_char_keep_task 286@(43@,10i) {state} True
goto @MANSIO1_38826

:MANSIO1_38817
mark_char_as_no_longer_needed 286@(43@,10i)

:MANSIO1_38826
43@ += 1
goto @MANSIO1_38707

:MANSIO1_38840
43@ = 0

:MANSIO1_38847
if 
  2 > 43@
goto_if_false @MANSIO1_38947
if 
  not is_char_dead 474@(43@,3i)
goto_if_false @MANSIO1_38924
clear_char_tasks 474@(43@,3i)
task_kill_char_on_foot 474@(43@,3i) {target} $scplayer
set_char_keep_task 474@(43@,3i) {state} True
goto @MANSIO1_38933

:MANSIO1_38924
mark_char_as_no_longer_needed 474@(43@,3i)

:MANSIO1_38933
43@ += 1
goto @MANSIO1_38847

:MANSIO1_38947
switch_entry_exit 'MADDOGS' {state} True
switch_entry_exit 'MDDOGS' {state} True
$flag_mansion_mission_counter += 1
register_mission_passed 'MAN_1'
player_made_progress 1
switch_car_generator $car_gen_sparrow {amount} 101
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $casino_contact_blip
$1718 = add_short_range_sprite_blip_for_contact_point $save_pickupX[1] {y} $save_pickupY[1] {z} $save_pickupZ[1] {sprite} RadarSprite.SaveGame
change_blip_display $1718 {display} BlipDisplay.BlipOnly
return 

:MANSIO1_39063
display_zone_names True
switch_audio_zone 'MADDOGL' {state} False
if 
  is_player_playing $player1
goto_if_false @MANSIO1_39107
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:MANSIO1_39107
start_new_script @A_TERM 
remove_blip 47@
remove_blip 329@
disable_all_entry_exits False
switch_ambient_planes True
set_max_wanted_level 6
set_car_density_multiplier 1.0
$para_force_chute_open = 0
kill_fx_system 124@
kill_fx_system 125@
kill_fx_system 126@
remove_blip 47@
43@ = 0

:MANSIO1_39178
if 
  4 > 43@
goto_if_false @MANSIO1_39237
mark_char_as_no_longer_needed 99@(43@,4i)
mark_char_as_no_longer_needed 131@(43@,4i)
mark_char_as_no_longer_needed 170@(43@,6i)
43@ += 1
goto @MANSIO1_39178

:MANSIO1_39237
43@ = 0

:MANSIO1_39244
if 
  3 > 43@
goto_if_false @MANSIO1_39294
mark_char_as_no_longer_needed 143@(43@,3i)
remove_blip 146@(43@,3i)
43@ += 1
goto @MANSIO1_39244

:MANSIO1_39294
mark_char_as_no_longer_needed 159@
mark_char_as_no_longer_needed 328@
mark_car_as_no_longer_needed 527@
mark_car_as_no_longer_needed 528@
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 118
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 13
mark_model_as_no_longer_needed 195
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 139
mark_model_as_no_longer_needed 555
mark_model_as_no_longer_needed 603
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #PARACHUTE
mark_model_as_no_longer_needed #PARA_PACK
mark_model_as_no_longer_needed 371
mark_model_as_no_longer_needed #CARGO_REAR
mark_model_as_no_longer_needed #D9_RAMP
mark_model_as_no_longer_needed #CARDBOARDBOX2
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed #DRG_NU_EXT
mark_streamed_script_as_no_longer_needed 1
remove_animation "PARACHUTE"
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 103---------------
// Originally: Vertical Bird

:MANSIO2
script_name 'MANSIO2'
gosub @MANSIO2_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO2_38
gosub @MANSIO2_52168

:MANSIO2_38
gosub @MANSIO2_52634
terminate_this_script 

:MANSIO2_47
register_mission_given 
$onmission = 1
75@ = 0
76@ = 0
77@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
78@ = 1
79@ = 0
80@ = 0
81@ = 0
82@ = -1
83@ = 0
84@ = 0
86@ = 0
85@ = 0
87@ = 1
48@ = 0

:MANSIO2_238
88@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_238
223@ = 0
224@ = 0
225@ = 0
226@ = 0
227@ = 0
228@ = 0
229@ = 0
230@ = 0
231@ = 0
232@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
237@ = 0
238@ = 0
246@ = 0
247@ = 0
248@ = 0
249@ = 0
250@ = 0
251@ = 0
256@ = 0
257@ = 0
261@ = 0
258@ = 0
259@ = 0
260@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
283@ = 0
284@ = 0
285@ = 0
286@ = 0
287@ = 0
288@ = 0
289@ = 0
290@ = 0
291@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
if 
  34@ == -99
goto_if_false @MANSIO2_1399
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
139@ = create_car 421 {x} 0.0 {y} 0.0 {z} 0.0
140@ = create_car 446 {x} 0.0 {y} 0.0 {z} 0.0
145@ = create_car 520 {x} 0.0 {y} 0.0 {z} 0.0
153@ = create_car 595 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_780
create_car 520 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 141@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_780
48@ = 0

:MANSIO2_835
create_car 520 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 146@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_835
48@ = 0

:MANSIO2_890
create_car 454 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 149@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_890
48@ = 0

:MANSIO2_945
create_car 530 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 154@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_945
130@ = create_char PedType.Mission1 {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_1025
create_char PedType.Mission2 {modelId} 287 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 131@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_1025
48@ = 0

:MANSIO2_1082
create_char PedType.Mission1 {modelId} 50 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 137@(48@,2i)
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_1082
157@ = create_object_no_offset #CARRIER_LIFT1_SFSE {x} 0.0 {y} 0.0 {z} 0.0
158@ = create_object_no_offset #CARRIER_LIFT2_SFSE {x} 0.0 {y} 0.0 {z} 0.0
159@ = create_object_no_offset #CARRIER_DOOR_SFSE {x} 0.0 {y} 0.0 {z} 0.0
160@ = create_object #MISSILE_07_SFXR {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_1227
create_object #KMB_KEYPAD {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 161@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_1227
164@ = add_blip_for_car 140@
179@ = add_blip_for_car 145@
165@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
48@ = 0

:MANSIO2_1318
add_blip_for_car 146@(48@,3i) {var_handle} 166@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_1318
48@ = 0

:MANSIO2_1362
add_blip_for_car 149@(48@,4i) {var_handle} 169@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_1362

:MANSIO2_1399
load_mission_text 'MAN_2'
force_weather_now WeatherType.RainyCountryside
gosub @MANSIO2_51244
180@ = load_char_decision_maker DecisionMakerType.Empty
181@ = load_char_decision_maker DecisionMakerType.Steal
182@ = load_char_decision_maker DecisionMakerType.Tough
clear_char_decision_maker_event_response 181@ {event} Event.SoundQuiet
gosub @MANSIO2_51416

:MANSIO2_1456
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MANSIO2_1489
36@ = 1
goto @MANSIO2_1884

:MANSIO2_1489
gosub @MANSIO2_50589
gosub @MANSIO2_50895
if or
  38@ == 1
  39@ == 1
goto_if_false @MANSIO2_1535
goto @MANSIO2_1884

:MANSIO2_1535
gosub @MANSIO2_51141
gosub @MANSIO2_51175
if 
  is_char_dead $scplayer
goto_if_false @MANSIO2_1579
37@ = 1
goto @MANSIO2_1884

:MANSIO2_1579
if 
  34@ == 0
goto_if_false @MANSIO2_1637
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:MANSIO2_1637
switch_start 34@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_1877 {caseNum1} 1 {caseLabel1} @MANSIO2_1765 {caseNum2} 2 {caseLabel2} @MANSIO2_1779 {caseNum3} 3 {caseLabel3} @MANSIO2_1793 {caseNum4} 4 {caseLabel4} @MANSIO2_1807 {caseNum5} 5 {caseLabel5} @MANSIO2_1821 {caseNum6} 6 {caseLabel6} @MANSIO2_1835 {caseNum7} 7 {caseLabel7} @MANSIO2_1849
switch_continued 8 {caseLabel1} @MANSIO2_1863 {caseNum2} -1 {caseLabel2} @MANSIO2_1877 {caseNum3} -1 {caseLabel3} @MANSIO2_1877 {caseNum4} -1 {caseLabel4} @MANSIO2_1877 {caseNum5} -1 {caseLabel5} @MANSIO2_1877 {caseNum6} -1 {caseLabel6} @MANSIO2_1877 {caseNum7} -1 {caseLabel7} @MANSIO2_1877 {caseNum8} -1 {caseLabel8} @MANSIO2_1877 {caseNum9} -1 {caseLabel9} @MANSIO2_1877

:MANSIO2_1765
gosub @MANSIO2_2032
goto @MANSIO2_1877

:MANSIO2_1779
gosub @MANSIO2_4061
goto @MANSIO2_1877

:MANSIO2_1793
gosub @MANSIO2_6174
goto @MANSIO2_1877

:MANSIO2_1807
gosub @MANSIO2_8624
goto @MANSIO2_1877

:MANSIO2_1821
gosub @MANSIO2_12006
goto @MANSIO2_1877

:MANSIO2_1835
gosub @MANSIO2_17063
goto @MANSIO2_1877

:MANSIO2_1849
gosub @MANSIO2_21732
goto @MANSIO2_1877

:MANSIO2_1863
36@ = 1
goto @MANSIO2_1877

:MANSIO2_1877
gosub @MANSIO2_47201

:MANSIO2_1884
if 
  38@ == 0
goto_if_false @MANSIO2_1984
if 
  37@ == 0
goto_if_false @MANSIO2_1968
if 
  36@ == 0
goto_if_false @MANSIO2_1952
goto @MANSIO2_1456
goto @MANSIO2_1961

:MANSIO2_1952
gosub @MANSIO2_52419
return 

:MANSIO2_1961
goto @MANSIO2_1977

:MANSIO2_1968
gosub @MANSIO2_52168
return 

:MANSIO2_1977
goto @MANSIO2_1986

:MANSIO2_1984
return 

:MANSIO2_1986
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:MANSIO2_2032
if 
  35@ == 0
goto_if_false @MANSIO2_2334
custom_plate_for_next_car 421 {text} "_OMEGA__"
139@ = create_car 421 {x} 1248.681 {y} -815.9187 {z} 83.1484
change_car_colour 139@ {color1} 84 {color2} 84
set_car_heading 139@ {heading} 180.0
set_radio_channel RadioChannel.KRose
130@ = create_char PedType.Mission1 {modelId} 290 {x} 1250.896 {y} -802.7902 {z} 83.1484
set_char_heading 130@ {heading} 180.0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver 130@ {vehicle} 139@ {time} 10000
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger $scplayer {vehicle} 139@ {time} 10000 {seat} SeatId.BikeRear
set_fixed_camera_position 1246.4969 {y} -822.7375 {z} 84.7111 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1246.785 {y} -821.78 {z} 84.6972 {switchStyle} SwitchType.JumpCut
81@ = 1
gosub @MANSIO2_48037
set_car_density_multiplier 0.0
do_fade 1000 {direction} Fade.In
223@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 1
207@ = 0
208@ = 0
75@ = 1
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_2334
if 
  is_car_dead 139@
goto_if_false @MANSIO2_2366
37@ = 1
45@ = 1
return 

:MANSIO2_2366
if 
  is_char_dead 130@
goto_if_false @MANSIO2_2398
37@ = 1
45@ = 2
return 

:MANSIO2_2398
if 
  35@ == 1
goto_if_false @MANSIO2_2512
if 
  77@ == 1
goto_if_false @MANSIO2_2448
35@ += 1
goto @MANSIO2_2512

:MANSIO2_2448
if 
  80@ <> 1
goto_if_false @MANSIO2_2480
81@ = 1
gosub @MANSIO2_48037

:MANSIO2_2480
if 
  80@ == 1
goto_if_false @MANSIO2_2512
gosub @MANSIO2_48192
35@ += 1

:MANSIO2_2512
if 
  35@ == 2
goto_if_false @MANSIO2_2781
if 
  77@ == 1
goto_if_false @MANSIO2_2562
35@ += 1
goto @MANSIO2_2781

:MANSIO2_2562
if and
  is_char_in_car $scplayer {vehicle} 139@
  is_char_in_car 130@ {vehicle} 139@
goto_if_false @MANSIO2_2781
start_playback_recorded_car 139@ {path} 208
223@ = 1
load_scene_in_direction 1239.286 {y} -836.2535 {z} 83.1477 {heading} 27.7504
set_fixed_camera_position 1250.188 {y} -849.5969 {z} 93.6161 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1249.6899 {y} -848.7883 {z} 93.3037 {switchStyle} SwitchType.JumpCut
if 
  293@ == 1
goto_if_false @MANSIO2_2714
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_2714
if 
  294@ == 1
goto_if_false @MANSIO2_2751
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_2751
295@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_2781
if 
  35@ == 3
goto_if_false @MANSIO2_2880
if 
  77@ == 1
goto_if_false @MANSIO2_2831
35@ += 1
goto @MANSIO2_2880

:MANSIO2_2831
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_2880
do_fade 2000 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_2880
if 
  35@ == 4
goto_if_false @MANSIO2_2977
if 
  77@ == 1
goto_if_false @MANSIO2_2930
35@ = 50
goto @MANSIO2_2977

:MANSIO2_2930
if and
  is_int_lvar_greater_than_int_lvar 46@ > 194@
  not get_fading_status 
goto_if_false @MANSIO2_2977
stop_playback_recorded_car 139@
223@ = 0
75@ = 0
35@ += 1

:MANSIO2_2977
if 
  35@ == 5
goto_if_false @MANSIO2_3156
remove_car_recording 208
clear_area -610.7587 {y} 176.8072 {z} 18.946 {radius} 20.0 {clearParticles} False
set_car_coordinates 139@ {x} -610.7587 {y} 176.8072 {z} 18.946
set_car_heading 139@ {heading} 40.0
load_scene_in_direction -709.131 {y} 232.466 {z} 4.698 {heading} 250.0
set_time_of_day 20 {minutes} 0
set_fixed_camera_position -710.0532 {y} 232.8524 {z} 4.6799 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -709.131 {y} 232.466 {z} 4.698 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_3156
if 
  35@ == 6
goto_if_false @MANSIO2_3200
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3200
35@ = 99

:MANSIO2_3200
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_3234
77@ = 1

:MANSIO2_3234
if 
  35@ == 50
goto_if_false @MANSIO2_3289
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_3289
if 
  35@ == 51
goto_if_false @MANSIO2_3534
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3534
if 
  not is_char_in_car $scplayer {vehicle} 139@
goto_if_false @MANSIO2_3355
warp_char_into_car_as_passenger $scplayer {handle} 139@ {seat} SeatId.BikeRear

:MANSIO2_3355
if 
  not is_char_in_car 130@ {vehicle} 139@
goto_if_false @MANSIO2_3382
task_warp_char_into_car_as_driver 130@ {vehicle} 139@

:MANSIO2_3382
if 
  223@ == 1
goto_if_false @MANSIO2_3405
stop_playback_recorded_car 139@

:MANSIO2_3405
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 1
goto_if_false @MANSIO2_3430
gosub @MANSIO2_48221

:MANSIO2_3430
if 
  293@ == 1
goto_if_false @MANSIO2_3467
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_3467
if 
  294@ == 1
goto_if_false @MANSIO2_3504
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_3504
295@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 200
35@ += 1

:MANSIO2_3534
if 
  35@ == 52
goto_if_false @MANSIO2_3599
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_3599
76@ = 0
77@ = 0
75@ = 0
35@ = 5

:MANSIO2_3599
if 
  295@ == 1
goto_if_false @MANSIO2_3980
if 
  207@ == 0
goto_if_false @MANSIO2_3669
50@ = generate_random_int_in_range 2000 {max} 3000
set_lvar_int_to_lvar_int 207@ = 46@
add_int_lvar_to_int_lvar 207@ += 50@
goto @MANSIO2_3749

:MANSIO2_3669
if 
  is_int_lvar_greater_than_int_lvar 46@ > 207@
goto_if_false @MANSIO2_3749
if 
  293@ == 1
goto_if_false @MANSIO2_3725
clear_look_at $scplayer
293@ = 0
goto @MANSIO2_3742

:MANSIO2_3725
task_look_at_char $scplayer {target} 130@ {time} -2
293@ = 1

:MANSIO2_3742
207@ = 0

:MANSIO2_3749
if 
  208@ == 0
goto_if_false @MANSIO2_3801
50@ = generate_random_int_in_range 1000 {max} 4000
set_lvar_int_to_lvar_int 208@ = 46@
add_int_lvar_to_int_lvar 208@ += 50@
goto @MANSIO2_3881

:MANSIO2_3801
if 
  is_int_lvar_greater_than_int_lvar 46@ > 208@
goto_if_false @MANSIO2_3881
if 
  294@ == 1
goto_if_false @MANSIO2_3857
clear_look_at 130@
294@ = 0
goto @MANSIO2_3874

:MANSIO2_3857
task_look_at_char 130@ {target} $scplayer {time} -2
294@ = 1

:MANSIO2_3874
208@ = 0

:MANSIO2_3881
if 
  is_local_var_bit_set_const 85@ {bitIndex} 1
goto_if_false @MANSIO2_3980
if 
  293@ == 1
goto_if_false @MANSIO2_3936
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_3936
if 
  294@ == 1
goto_if_false @MANSIO2_3973
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_3973
295@ = 0

:MANSIO2_3980
if 
  is_char_in_car $scplayer {vehicle} 139@
goto_if_false @MANSIO2_4034
if 
  293@ == 0
goto_if_false @MANSIO2_4034
task_look_at_char $scplayer {target} 130@ {time} -2
293@ = 1

:MANSIO2_4034
if 
  35@ == 99
goto_if_false @MANSIO2_4059
gosub @MANSIO2_51214

:MANSIO2_4059
return 

:MANSIO2_4061
if 
  292@ == 0
goto_if_false @MANSIO2_4143
if 
  is_car_dead 139@
goto_if_false @MANSIO2_4111
37@ = 1
45@ = 1
return 

:MANSIO2_4111
if 
  is_char_dead 130@
goto_if_false @MANSIO2_4143
37@ = 1
45@ = 2
return 

:MANSIO2_4143
if 
  35@ == 0
goto_if_false @MANSIO2_4360
clear_area -760.8 {y} 243.1655 {z} -6.6249 {radius} 20.0 {clearParticles} True
140@ = create_car 446 {x} -759.4562 {y} 240.346 {z} -2.0951
set_car_heading 140@ {heading} 121.0
anchor_boat 140@ {state} True
task_car_drive_to_coord 130@ {vehicle} 139@ {x} -731.1018 {y} 223.2893 {z} 1.3815 {speed} 12.0 {driveStyle} DriveMode.Normal {modelId} 421 {drivingStyle} DrivingMode.PloughThrough
do_fade 1500 {direction} Fade.In
81@ = 2
gosub @MANSIO2_48037
293@ = 0
294@ = 0
295@ = 0
207@ = 0
208@ = 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5000
75@ = 1
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_4360
if 
  35@ == 1
goto_if_false @MANSIO2_4498
if 
  77@ == 1
goto_if_false @MANSIO2_4410
35@ += 1
goto @MANSIO2_4498

:MANSIO2_4410
if 
  80@ <> 2
goto_if_false @MANSIO2_4442
81@ = 2
gosub @MANSIO2_48037

:MANSIO2_4442
if and
  80@ == 2
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4498
gosub @MANSIO2_48192
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 6200
35@ += 1

:MANSIO2_4498
if 
  35@ == 2
goto_if_false @MANSIO2_4632
if 
  77@ == 1
goto_if_false @MANSIO2_4548
35@ += 1
goto @MANSIO2_4632

:MANSIO2_4548
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4632
set_fixed_camera_position -738.98 {y} 227.2293 {z} 3.4204 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -738.0241 {y} 226.939 {z} 3.375 {switchStyle} SwitchType.JumpCut
295@ = 1
35@ += 1

:MANSIO2_4632
if 
  35@ == 3
goto_if_false @MANSIO2_4753
if 
  77@ == 1
goto_if_false @MANSIO2_4682
35@ += 1
goto @MANSIO2_4753

:MANSIO2_4682
if 
  locate_stopped_car_3d 139@ {x} -731.1018 {y} 223.2893 {z} 1.3815 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_4753
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 4600
35@ += 1

:MANSIO2_4753
if 
  35@ == 4
goto_if_false @MANSIO2_4880
if 
  77@ == 1
goto_if_false @MANSIO2_4803
35@ += 1
goto @MANSIO2_4880

:MANSIO2_4803
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_4880
set_fixed_camera_position -725.9466 {y} 218.6036 {z} 4.4433 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -726.7355 {y} 219.1785 {z} 4.2265 {switchStyle} SwitchType.JumpCut
35@ += 1

:MANSIO2_4880
if 
  35@ == 5
goto_if_false @MANSIO2_5085
if 
  77@ == 1
goto_if_false @MANSIO2_4930
35@ += 1
goto @MANSIO2_5085

:MANSIO2_4930
if 
  is_local_var_bit_set_const 85@ {bitIndex} 2
goto_if_false @MANSIO2_5085
if 
  293@ == 1
goto_if_false @MANSIO2_4985
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_4985
if 
  294@ == 1
goto_if_false @MANSIO2_5022
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_5022
295@ = 0
task_leave_car $scplayer {vehicle} 139@
task_go_straight_to_coord $scplayer {x} -732.8385 {y} 225.4091 {z} 1.718 {speed} MoveState.Walk {time} 10000
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_5085
if 
  35@ == 6
goto_if_false @MANSIO2_5212
if 
  77@ == 1
goto_if_false @MANSIO2_5135
35@ += 1
goto @MANSIO2_5212

:MANSIO2_5135
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5212
task_car_drive_to_coord 130@ {vehicle} 139@ {x} -751.1168 {y} 113.9648 {z} 13.2849 {speed} 15.0 {driveStyle} DriveMode.Normal {modelId} 421 {drivingStyle} DrivingMode.PloughThrough
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
35@ += 1

:MANSIO2_5212
if 
  35@ == 7
goto_if_false @MANSIO2_5336
if 
  77@ == 1
goto_if_false @MANSIO2_5262
35@ = 50
goto @MANSIO2_5336

:MANSIO2_5262
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5336
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
delete_char 130@
delete_car 139@
unload_special_character 1
mark_model_as_no_longer_needed 421
292@ = 1
75@ = 0
35@ += 1

:MANSIO2_5336
if 
  35@ == 8
goto_if_false @MANSIO2_5361
35@ = 99

:MANSIO2_5361
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_5395
77@ = 1

:MANSIO2_5395
if 
  35@ == 50
goto_if_false @MANSIO2_5450
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_5450
if 
  35@ == 51
goto_if_false @MANSIO2_5733
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5733
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 2
goto_if_false @MANSIO2_5512
gosub @MANSIO2_48221

:MANSIO2_5512
if 
  293@ == 1
goto_if_false @MANSIO2_5549
clear_look_at $scplayer
293@ = 0
207@ = 0

:MANSIO2_5549
if 
  294@ == 1
goto_if_false @MANSIO2_5586
clear_look_at 130@
294@ = 0
208@ = 0

:MANSIO2_5586
295@ = 0
if 
  is_char_in_car $scplayer {vehicle} 139@
goto_if_false @MANSIO2_5639
warp_char_from_car_to_coord $scplayer {x} -732.8385 {y} 225.4091 {z} 1.718
goto @MANSIO2_5659

:MANSIO2_5639
set_char_coordinates $scplayer {x} -732.8385 {y} 225.4091 {z} 1.718

:MANSIO2_5659
set_char_heading $scplayer {heading} 83.9578
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
delete_char 130@
delete_car 139@
unload_special_character 1
mark_model_as_no_longer_needed 421
292@ = 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_5733
if 
  35@ == 52
goto_if_false @MANSIO2_5800
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5800
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_5800
if 
  35@ == 53
goto_if_false @MANSIO2_5865
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_5865
76@ = 0
77@ = 0
75@ = 0
35@ = 8

:MANSIO2_5865
if 
  295@ == 1
goto_if_false @MANSIO2_6147
if 
  207@ == 0
goto_if_false @MANSIO2_5935
50@ = generate_random_int_in_range 2000 {max} 3000
set_lvar_int_to_lvar_int 207@ = 46@
add_int_lvar_to_int_lvar 207@ += 50@
goto @MANSIO2_6015

:MANSIO2_5935
if 
  is_int_lvar_greater_than_int_lvar 46@ > 207@
goto_if_false @MANSIO2_6015
if 
  293@ == 1
goto_if_false @MANSIO2_5991
clear_look_at $scplayer
293@ = 0
goto @MANSIO2_6008

:MANSIO2_5991
task_look_at_char $scplayer {target} 130@ {time} -2
293@ = 1

:MANSIO2_6008
207@ = 0

:MANSIO2_6015
if 
  208@ == 0
goto_if_false @MANSIO2_6067
50@ = generate_random_int_in_range 1000 {max} 4000
set_lvar_int_to_lvar_int 208@ = 46@
add_int_lvar_to_int_lvar 208@ += 50@
goto @MANSIO2_6147

:MANSIO2_6067
if 
  is_int_lvar_greater_than_int_lvar 46@ > 208@
goto_if_false @MANSIO2_6147
if 
  294@ == 1
goto_if_false @MANSIO2_6123
clear_look_at 130@
294@ = 0
goto @MANSIO2_6140

:MANSIO2_6123
task_look_at_char 130@ {target} $scplayer {time} -2
294@ = 1

:MANSIO2_6140
208@ = 0

:MANSIO2_6147
if 
  35@ == 99
goto_if_false @MANSIO2_6172
gosub @MANSIO2_51214

:MANSIO2_6172
return 

:MANSIO2_6174
224@ = 1
if 
  is_car_dead 140@
goto_if_false @MANSIO2_6204
224@ = 0

:MANSIO2_6204
if 
  35@ == 0
goto_if_false @MANSIO2_6841
157@ = create_object_no_offset #CARRIER_LIFT1_SFSE {x} -1456.719 {y} 501.297 {z} 9.914
158@ = create_object_no_offset #CARRIER_LIFT2_SFSE {x} -1414.453 {y} 516.453 {z} 16.688
159@ = create_object_no_offset #CARRIER_DOOR_SFSE {x} -1465.797 {y} 501.289 {z} 1.145
164@ = add_blip_for_car 140@
set_blip_as_friendly 164@ {state} True
clear_area -1519.843 {y} 590.923 {z} 0.0 {radius} 20.0 {clearParticles} True
153@ = create_car 595 {x} -1519.843 {y} 590.923 {z} 0.0
set_car_heading 153@ {heading} 202.1246
anchor_boat 153@ {state} True
50@ = 0
create_char_inside_car 153@ {pedType} PedType.Mission2 {modelId} 287 {var_handle} 131@(50@,6i)
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 180@
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_is_target_priority 131@(50@,6i) {state} True
50@ = 1
create_char PedType.Mission2 {modelId} 287 {x} -1429.354 {y} 497.0963 {z} 2.039 {var_handle} 131@(50@,6i)
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 180@
attach_char_to_car 131@(50@,6i) {vehicle} 153@ {xOffset} 0.0 {yOffset} -3.5 {zOffset} 1.3 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.M4
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_is_target_priority 131@(50@,6i) {state} True
50@ = 2
create_char PedType.Mission2 {modelId} 287 {x} -1428.723 {y} 500.472 {z} 2.0391 {var_handle} 131@(50@,6i)
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 180@
attach_char_to_car 131@(50@,6i) {vehicle} 153@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 1.3 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.M4
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_is_target_priority 131@(50@,6i) {state} True
191@ = 0
220@ = -1459.1429
221@ = 501.0938
222@ = 2.7322
print_now 'MAN2_20' {time} 7000 {flag} 1
set_car_density_multiplier 1.0
243@ = 0
load_mission_audio MissionAudioSlot.Slot3 {audioId} 1824
set_disable_military_zones True
225@ = 0
226@ = 0
227@ = 0
228@ = 0
258@ = 0
259@ = 0
260@ = 0
195@ = 0
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_6841
if 
  35@ == 1
goto_if_false @MANSIO2_7052
if or
  226@ == 1
  227@ == 1
goto_if_false @MANSIO2_7052
81@ = 4
gosub @MANSIO2_48037
227@ = 1
clear_area -1357.0 {y} 502.0 {z} 10.0 {radius} 300.0 {clearParticles} False
switch_widescreen True
set_player_control $player1 {state} False
set_fixed_camera_position -1513.614 {y} 559.4036 {z} 22.2746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1513.076 {y} 558.6777 {z} 21.8463 {switchStyle} SwitchType.JumpCut
258@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_7031
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
286@ = 1

:MANSIO2_7031
183@ = 0
75@ = 1
35@ += 1

:MANSIO2_7052
if 
  35@ == 2
goto_if_false @MANSIO2_7182
if 
  77@ == 1
goto_if_false @MANSIO2_7102
35@ += 1
goto @MANSIO2_7182

:MANSIO2_7102
if 
  80@ <> 4
goto_if_false @MANSIO2_7134
81@ = 4
gosub @MANSIO2_48037

:MANSIO2_7134
if 
  80@ == 4
goto_if_false @MANSIO2_7182
gosub @MANSIO2_48192
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 6800
35@ += 1

:MANSIO2_7182
if 
  35@ == 3
goto_if_false @MANSIO2_7325
if 
  77@ == 1
goto_if_false @MANSIO2_7232
35@ += 1
goto @MANSIO2_7325

:MANSIO2_7232
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7325
set_fixed_camera_position -1474.739 {y} 526.7202 {z} 16.2159 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1474.991 {y} 525.8577 {z} 15.7775 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 3700
35@ += 1

:MANSIO2_7325
if 
  35@ == 4
goto_if_false @MANSIO2_7441
if 
  77@ == 1
goto_if_false @MANSIO2_7375
35@ = 50
goto @MANSIO2_7441

:MANSIO2_7375
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7441
if 
  is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @MANSIO2_7441
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
75@ = 0
35@ += 1

:MANSIO2_7441
if 
  35@ == 5
goto_if_false @MANSIO2_7482
print_now 'MAN2_32' {time} 8000 {flag} 1
35@ = 99

:MANSIO2_7482
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_7516
77@ = 1

:MANSIO2_7516
if 
  35@ == 50
goto_if_false @MANSIO2_7571
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_7571
if 
  35@ == 51
goto_if_false @MANSIO2_7785
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7785
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 4
goto_if_false @MANSIO2_7633
gosub @MANSIO2_48221

:MANSIO2_7633
set_object_coordinates 159@ {x} -1468.4919 {y} 501.289 {z} 11.109
if 
  not is_car_dead 153@
goto_if_false @MANSIO2_7699
set_car_coordinates 153@ {x} -1446.218 {y} 491.9281 {z} 0.0
set_car_heading 153@ {heading} 270.0

:MANSIO2_7699
if 
  not is_char_dead 131@
goto_if_false @MANSIO2_7740
if 
  183@ <> 3
goto_if_false @MANSIO2_7740
183@ = 2

:MANSIO2_7740
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_7785
if 
  35@ == 52
goto_if_false @MANSIO2_7850
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_7850
76@ = 0
77@ = 0
75@ = 0
35@ = 5

:MANSIO2_7850
if 
  226@ == 0
goto_if_false @MANSIO2_8147
if 
  224@ == 1
goto_if_false @MANSIO2_8112
if 
  locate_char_any_means_3d $scplayer {x} -1397.0 {y} 552.0 {z} 17.0 {xRadius} 150.0 {yRadius} 110.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @MANSIO2_8008
if 
  not does_blip_exist 165@
goto_if_false @MANSIO2_7964
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@

:MANSIO2_7964
remove_blip 164@
if 
  not is_local_var_bit_set_const 85@ {bitIndex} 3
goto_if_false @MANSIO2_7994
set_local_var_bit_const 85@ {bitIndex} 3

:MANSIO2_7994
226@ = 1
goto @MANSIO2_8105

:MANSIO2_8008
if 
  is_char_in_car $scplayer {vehicle} 140@
goto_if_false @MANSIO2_8069
if 
  not does_blip_exist 165@
goto_if_false @MANSIO2_8057
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@

:MANSIO2_8057
remove_blip 164@
goto @MANSIO2_8105

:MANSIO2_8069
if 
  not does_blip_exist 164@
goto_if_false @MANSIO2_8100
164@ = add_blip_for_car 140@
set_blip_as_friendly 164@ {state} True

:MANSIO2_8100
remove_blip 165@

:MANSIO2_8105
goto @MANSIO2_8147

:MANSIO2_8112
remove_blip 164@
if 
  not does_blip_exist 165@
goto_if_false @MANSIO2_8147
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@

:MANSIO2_8147
if 
  225@ == 0
goto_if_false @MANSIO2_8255
if 
  224@ == 1
goto_if_false @MANSIO2_8255
if 
  is_char_in_car $scplayer {vehicle} 140@
goto_if_false @MANSIO2_8255
give_weapon_to_char $scplayer {weaponType} WeaponType.PistolSilenced {ammo} 30
give_weapon_to_char $scplayer {weaponType} WeaponType.Knife {ammo} 0
set_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced
81@ = 3
gosub @MANSIO2_48037
gosub @MANSIO2_48192
225@ = 1

:MANSIO2_8255
if 
  228@ == 0
goto_if_false @MANSIO2_8348
if 
  226@ == 0
goto_if_false @MANSIO2_8348
if 
  does_blip_exist 165@
goto_if_false @MANSIO2_8348
if 
  is_local_var_bit_set_const 85@ {bitIndex} 3
goto_if_false @MANSIO2_8348
print_now 'MAN2_21' {time} 7000 {flag} 1
228@ = 1

:MANSIO2_8348
if 
  258@ == 1
goto_if_false @MANSIO2_8454
if 
  slide_object 159@ {posX} -1468.4919 {posY} 501.289 {posZ} 11.109 {speedX} 0.04 {speedY} 0.04 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_8454
258@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_8454
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_8454
if 
  227@ == 0
goto_if_false @MANSIO2_8576
if 
  is_car_dead 153@
goto_if_false @MANSIO2_8495
227@ = 1

:MANSIO2_8495
if 
  227@ == 0
goto_if_false @MANSIO2_8576
57@, 58@, 59@ = get_car_coordinates 153@
if 
  locate_char_any_means_3d $scplayer {x} 57@ {y} 58@ {z} 59@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @MANSIO2_8576
227@ = 1

:MANSIO2_8576
gosub @MANSIO2_22723
gosub @MANSIO2_36622
gosub @MANSIO2_46199
if 
  35@ == 99
goto_if_false @MANSIO2_8622
gosub @MANSIO2_51214

:MANSIO2_8622
return 

:MANSIO2_8624
if 
  35@ == 0
goto_if_false @MANSIO2_8719
259@ = 0
260@ = 0
263@ = 0
291@ = 0
if 
  not is_car_dead 142@
goto_if_false @MANSIO2_8691
delete_car 142@

:MANSIO2_8691
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_8719
if 
  35@ == 1
goto_if_false @MANSIO2_8916
if 
  locate_char_any_means_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 4.0 {yRadius} 13.5 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_8916
remove_blip 165@
remove_blip 164@
263@ = 1
set_player_control $player1 {state} False
force_interior_lighting_for_player $player1 {state} True
disable_char_speech $scplayer {stopNow} False
195@ = 0
259@ = 1
260@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_8871
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
286@ = 1

:MANSIO2_8871
246@ = 0
set_fading_colour 0 {g} 0 {b} 0
do_fade 200 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 400
35@ += 1

:MANSIO2_8916
if 
  35@ == 2
goto_if_false @MANSIO2_9244
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9244
alter_wanted_level $player1 {wantedLevel} 0
load_scene_in_direction -1439.546 {y} 489.3506 {z} 3.8546 {heading} 300.0
set_radar_zoom 90
show_blips_on_all_levels True
220@ = -1288.084
221@ = 490.5533
222@ = 10.2026
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@
set_char_coordinates $scplayer {x} -1327.957 {y} 507.4273 {z} 0.0
set_char_heading $scplayer {heading} 84.8851
50@ = 0
create_car 520 {x} -1423.62 {y} 497.13 {z} 10.19 {var_handle} 141@(50@,4i)
set_car_heading 141@(50@,4i) {heading} 62.12
242@(50@,4i) = 1
50@ = 2
create_car 520 {x} -1416.47 {y} 518.36 {z} 16.91 {var_handle} 141@(50@,4i)
set_car_heading 141@(50@,4i) {heading} 270.0
242@(50@,4i) = 1
135@ = create_char_inside_car 141@(50@,4i) {pedType} PedType.Mission2 {modelId} 287
set_char_decision_maker 135@ {handleOrTemplate} 180@
set_char_is_target_priority 135@ {state} True
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
75@ = 1
35@ += 1

:MANSIO2_9244
if 
  35@ == 3
goto_if_false @MANSIO2_9414
if 
  77@ == 1
goto_if_false @MANSIO2_9294
35@ += 1
goto @MANSIO2_9414

:MANSIO2_9294
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9414
switch_widescreen True
set_fixed_camera_position -1304.926 {y} 489.9207 {z} 11.6599 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1304.047 {y} 490.3978 {z} 11.6435 {switchStyle} SwitchType.JumpCut
print_now 'MAN2_22' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 4000
do_fade 500 {direction} Fade.In
35@ += 1

:MANSIO2_9414
if 
  35@ == 4
goto_if_false @MANSIO2_9577
if 
  77@ == 1
goto_if_false @MANSIO2_9464
35@ += 1
goto @MANSIO2_9577

:MANSIO2_9464
  locate_char_on_foot_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} True
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_9577
246@ = 1
if 
  288@ == 0
goto_if_false @MANSIO2_9554
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_9554
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1800
35@ += 1

:MANSIO2_9577
if 
  35@ == 5
goto_if_false @MANSIO2_10017
if 
  77@ == 1
goto_if_false @MANSIO2_9627
35@ += 1
goto @MANSIO2_10017

:MANSIO2_9627
  locate_char_on_foot_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} True
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10017
set_fixed_camera_position -1400.167 {y} 517.7336 {z} 11.9235 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1401.079 {y} 518.1353 {z} 12.0041 {switchStyle} SwitchType.JumpCut
print_now 'MAN2_25' {time} 5000 {flag} 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 3800
set_lvar_int_to_lvar_int 202@ = 46@
202@ += 2500
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO2_9867
set_char_coordinates $scplayer {x} -1446.333 {y} 506.7063 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  is_char_in_any_boat $scplayer
goto_if_false @MANSIO2_9853
$car = store_car_char_is_in_no_save $scplayer
anchor_boat $car {state} True

:MANSIO2_9853
291@ = 1
goto @MANSIO2_10010

:MANSIO2_9867
set_char_coordinates $scplayer {x} -1455.558 {y} 497.0678 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  not is_car_dead 140@
goto_if_false @MANSIO2_10010
if 
  is_car_in_area_3d 140@ {leftBottomX} -1466.083 {leftBottomY} 490.7395 {leftBottomZ} -2.0 {rightTopX} -1434.139 {rightTopY} 511.856 {rightTopZ} 3.0 {drawSphere} False
goto_if_false @MANSIO2_10005
set_car_coordinates 140@ {x} -1446.333 {y} 506.7063 {z} -2.089
set_car_heading 140@ {heading} 256.1819
291@ = 1
goto @MANSIO2_10010

:MANSIO2_10005
delete_car 140@

:MANSIO2_10010
35@ += 1

:MANSIO2_10017
if 
  35@ == 6
goto_if_false @MANSIO2_10229
if 
  77@ == 1
goto_if_false @MANSIO2_10067
35@ += 1
goto @MANSIO2_10229

:MANSIO2_10067
if and
  is_int_lvar_greater_than_int_lvar 46@ > 202@
  202@ <> 0
goto_if_false @MANSIO2_10107
187@ = 5
202@ = 0

:MANSIO2_10107
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10229
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10166
183@(50@,6i) = 6

:MANSIO2_10166
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10206
183@(50@,6i) = 6

:MANSIO2_10206
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_10229
if 
  35@ == 7
goto_if_false @MANSIO2_10392
if 
  77@ == 1
goto_if_false @MANSIO2_10279
35@ += 1
goto @MANSIO2_10392

:MANSIO2_10279
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10392
set_fixed_camera_position -1395.611 {y} 493.0729 {z} 5.3645 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1394.9771 {y} 493.8029 {z} 5.109 {switchStyle} SwitchType.JumpCut
force_weather_now WeatherType.SunnySf
print_now 'MAN2_23' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5800
35@ += 1

:MANSIO2_10392
if 
  35@ == 8
goto_if_false @MANSIO2_10500
if 
  77@ == 1
goto_if_false @MANSIO2_10442
35@ = 50
goto @MANSIO2_10500

:MANSIO2_10442
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_10500
set_char_heading $scplayer {heading} 256.1819
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
75@ = 0
35@ += 1

:MANSIO2_10500
if 
  35@ == 9
goto_if_false @MANSIO2_10887
188@ = 5
274@ = 1
48@ = 0

:MANSIO2_10539
if and
  183@(48@,6i) <> -2
  183@(48@,6i) <> -1
  not is_char_dead 131@(48@,6i)
goto_if_false @MANSIO2_10637
if 
  48@ <> 4
goto_if_false @MANSIO2_10637
add_blip_for_char 131@(48@,6i) {var_handle} 173@(48@,6i)
change_blip_display 173@(48@,6i) {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 173@(48@,6i) {state} True

:MANSIO2_10637
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_10539
187@ = 18
if 
  291@ == 1
goto_if_false @MANSIO2_10793
213@ = 1
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10730
183@(50@,6i) = 24

:MANSIO2_10730
50@ = 1
if 
  189@(50@,2i) <> -2
goto_if_false @MANSIO2_10770
189@(50@,2i) = 12

:MANSIO2_10770
print_now 'MAN2_46' {time} 5000 {flag} 1
goto @MANSIO2_10873

:MANSIO2_10793
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_10833
183@(50@,6i) = 8

:MANSIO2_10833
50@ = 1
if 
  189@(50@,2i) <> -2
goto_if_false @MANSIO2_10873
189@(50@,2i) = 6

:MANSIO2_10873
283@ = 1
35@ = 99

:MANSIO2_10887
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_10921
77@ = 1

:MANSIO2_10921
if 
  35@ == 50
goto_if_false @MANSIO2_10976
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_10976
if 
  35@ == 51
goto_if_false @MANSIO2_11441
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_11441
246@ = 1
if 
  288@ == 0
goto_if_false @MANSIO2_11053
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_11053
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO2_11144
set_char_coordinates $scplayer {x} -1446.333 {y} 506.7063 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  is_char_in_any_boat $scplayer
goto_if_false @MANSIO2_11130
$car = store_car_char_is_in_no_save $scplayer
anchor_boat $car {state} True

:MANSIO2_11130
291@ = 1
goto @MANSIO2_11287

:MANSIO2_11144
set_char_coordinates $scplayer {x} -1455.558 {y} 497.0678 {z} -2.089
set_char_heading $scplayer {heading} 256.1819
if 
  not is_car_dead 140@
goto_if_false @MANSIO2_11287
if 
  is_car_in_area_3d 140@ {leftBottomX} -1466.083 {leftBottomY} 490.7395 {leftBottomZ} -2.0 {rightTopX} -1434.139 {rightTopY} 511.856 {rightTopZ} 3.0 {drawSphere} False
goto_if_false @MANSIO2_11282
set_car_coordinates 140@ {x} -1446.333 {y} 506.7063 {z} -2.089
set_car_heading 140@ {heading} 256.1819
291@ = 1
goto @MANSIO2_11287

:MANSIO2_11282
delete_car 140@

:MANSIO2_11287
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_11327
183@(50@,6i) = 6

:MANSIO2_11327
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_11367
183@(50@,6i) = 6

:MANSIO2_11367
if 
  187@ == -1
goto_if_false @MANSIO2_11392
187@ = 5

:MANSIO2_11392
force_weather_now WeatherType.SunnySf
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_11441
if 
  35@ == 52
goto_if_false @MANSIO2_11506
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_11506
76@ = 0
77@ = 0
75@ = 0
35@ = 9

:MANSIO2_11506
if 
  246@ == 1
goto_if_false @MANSIO2_11612
if 
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 9.648 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_11612
246@ = 0
if 
  288@ == 1
goto_if_false @MANSIO2_11612
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_11612
if 
  259@ == 1
goto_if_false @MANSIO2_11865
if 
  260@ == 1
goto_if_false @MANSIO2_11743
if 
  slide_object 159@ {posX} -1465.797 {posY} 501.289 {posZ} 1.145 {speedX} 0.04 {speedY} 0.04 {speedZ} 0.3 {collisionCheck} False
goto_if_false @MANSIO2_11736
259@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_11736
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_11736
goto @MANSIO2_11865

:MANSIO2_11743
if 
  slide_object 159@ {posX} -1465.797 {posY} 501.289 {posZ} 1.145 {speedX} 0.04 {speedY} 0.04 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_11865
259@ = 0
if 
  286@ == 1
goto_if_false @MANSIO2_11831
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_11831
if 
  263@ == 0
goto_if_false @MANSIO2_11865
37@ = 1
45@ = 5
return 

:MANSIO2_11865
gosub @MANSIO2_22723
gosub @MANSIO2_36622
if 
  195@ <> 0
goto_if_false @MANSIO2_11979
if 
  is_int_lvar_greater_than_int_lvar 46@ > 195@
goto_if_false @MANSIO2_11979
195@ = 0
259@ = 1
if 
  286@ == 0
goto_if_false @MANSIO2_11963
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
286@ = 1

:MANSIO2_11963
print_now 'MAN2_31' {time} 7000 {flag} 1

:MANSIO2_11979
if 
  35@ == 99
goto_if_false @MANSIO2_12004
gosub @MANSIO2_51214

:MANSIO2_12004
return 

:MANSIO2_12006
if 
  35@ == 0
goto_if_false @MANSIO2_12354
238@ = 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
switch_ambient_planes False
50@ = 3
create_car 520 {x} -1333.231 {y} 507.6329 {z} 17.2266 {var_handle} 141@(50@,4i)
set_car_heading 141@(50@,4i) {heading} 270.0
242@(50@,4i) = 1
50@ = 0
create_object #KMB_KEYPAD {x} -1414.55 {y} 514.4193 {z} 2.9391 {var_handle} 161@(50@,3i)
set_object_heading 161@(50@,3i) {heading} 180.0
50@ = 1
create_object #KMB_KEYPAD {x} -1313.173 {y} 488.3687 {z} 11.1026 {var_handle} 161@(50@,3i)
50@ = 2
create_object #KMB_KEYPAD {x} -1412.198 {y} 488.3644 {z} 11.1026 {var_handle} 161@(50@,3i)
set_radio_channel RadioChannel.UserTracks
230@ = 0
231@ = 0
229@ = 0
248@ = 0
249@ = 0
250@ = 0
261@ = 0
264@ = 0
265@ = 0
284@ = 0
285@ = 0
296@ = 0
192@ = -1
193@ = -1
75@ = 0
76@ = 0
77@ = 0
35@ += 1

:MANSIO2_12354
73@ = 0
48@ = 0

:MANSIO2_12368
if 
  242@(48@,4i) == 1
goto_if_false @MANSIO2_12417
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_12417
73@ = 1

:MANSIO2_12417
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_12368
if 
  73@ == 0
goto_if_false @MANSIO2_12472
37@ = 1
45@ = 3
return 

:MANSIO2_12472
if 
  not is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_12599
57@, 58@, 59@ = get_char_coordinates $scplayer
if or
  484.0 > 58@
  58@ > 523.0
goto_if_false @MANSIO2_12552
37@ = 1
45@ = 6
return 

:MANSIO2_12552
if or
  -1471.0 > 57@
  57@ > -1246.0
goto_if_false @MANSIO2_12599
37@ = 1
45@ = 6
return 

:MANSIO2_12599
if 
  35@ == 1
goto_if_false @MANSIO2_12822
if 
  238@ == 1
goto_if_false @MANSIO2_12797
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position -1291.578 {y} 491.3468 {z} 13.2852 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1290.686 {y} 491.105 {z} 12.9042 {switchStyle} SwitchType.JumpCut
set_char_coordinates $scplayer {x} 220@ {y} 221@ {z} 222@
task_achieve_heading $scplayer {heading} 270.0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 200
remove_blip 165@
165@ = add_blip_for_coord -1432.4821 {y} 506.5725 {z} 10.1953
229@ = 1
75@ = 1
35@ += 1

:MANSIO2_12797
if 
  248@ == 1
goto_if_false @MANSIO2_12822
35@ = 6

:MANSIO2_12822
if 
  35@ == 2
goto_if_false @MANSIO2_12972
if 
  77@ == 1
goto_if_false @MANSIO2_12872
35@ += 1
goto @MANSIO2_12972

:MANSIO2_12872
40@ = get_script_task_status $scplayer {taskId} 1492
if and
  not is_int_lvar_equal_to_constant 40@ == 1
  not is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_12972
task_play_anim $scplayer {animationName} "SLOT_BET_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 250
35@ += 1

:MANSIO2_12972
if 
  35@ == 3
goto_if_false @MANSIO2_13144
if 
  77@ == 1
goto_if_false @MANSIO2_13022
35@ += 1
goto @MANSIO2_13144

:MANSIO2_13022
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13144
if 
  not is_char_playing_anim $scplayer {animationName} "SLOT_BET_02"
goto_if_false @MANSIO2_13144
set_fixed_camera_position -1391.3051 {y} 490.2552 {z} 18.2899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1392.1379 {y} 490.5674 {z} 18.7452 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 2000
35@ += 1

:MANSIO2_13144
if 
  35@ == 4
goto_if_false @MANSIO2_13240
if 
  77@ == 1
goto_if_false @MANSIO2_13194
35@ += 1
goto @MANSIO2_13240

:MANSIO2_13194
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13240
set_aircraft_carrier_sam_site False
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_13240
if 
  35@ == 5
goto_if_false @MANSIO2_13361
if 
  77@ == 1
goto_if_false @MANSIO2_13290
35@ = 50
goto @MANSIO2_13361

:MANSIO2_13290
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13361
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'MAN2_25' {time} 15000 {flag} 1
35@ += 1

:MANSIO2_13361
if 
  35@ == 6
goto_if_false @MANSIO2_13475
if 
  248@ == 1
goto_if_false @MANSIO2_13475
if or
  249@ == 1
  250@ == 1
goto_if_false @MANSIO2_13426
set_camera_behind_player 
restore_camera 

:MANSIO2_13426
remove_blip 165@
48@ = 0

:MANSIO2_13438
remove_blip 173@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_13438
35@ = 99

:MANSIO2_13475
if and
  75@ == 1
  is_skip_cutscene_button_pressed 
  77@ == 0
goto_if_false @MANSIO2_13509
77@ = 1

:MANSIO2_13509
if 
  35@ == 50
goto_if_false @MANSIO2_13564
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
76@ = 1
35@ += 1

:MANSIO2_13564
if 
  35@ == 51
goto_if_false @MANSIO2_13664
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13664
set_aircraft_carrier_sam_site False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1500 {direction} Fade.In
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1500
35@ += 1

:MANSIO2_13664
if 
  35@ == 52
goto_if_false @MANSIO2_13745
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_13745
76@ = 0
77@ = 0
75@ = 0
print_now 'MAN2_25' {time} 15000 {flag} 1
35@ = 6

:MANSIO2_13745
if 
  238@ == 0
goto_if_false @MANSIO2_13812
if 
  locate_char_on_foot_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @MANSIO2_13812
238@ = 1

:MANSIO2_13812
if 
  229@ == 0
goto_if_false @MANSIO2_13872
if 
  is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_13872
print_now 'MAN2_24' {time} 5000 {flag} 1
229@ = 1

:MANSIO2_13872
if 
  230@ == 0
goto_if_false @MANSIO2_13950
if 
  is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_13950
print_help_forever 'MAN2_70'
230@ = 1
231@ = 0
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 15000

:MANSIO2_13950
if 
  230@ == 1
goto_if_false @MANSIO2_14041
if 
  231@ == 0
goto_if_false @MANSIO2_14041
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_14041
clear_help 
print_help_forever 'MAN2_99'
231@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_14041
if 
  231@ == 1
goto_if_false @MANSIO2_14105
if 
  206@ <> 0
goto_if_false @MANSIO2_14105
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_14105
206@ = 0
clear_help 

:MANSIO2_14105
if 
  264@ == 0
goto_if_false @MANSIO2_14322
if 
  is_char_in_model $scplayer {modelId} 520
goto_if_false @MANSIO2_14204
if 
  is_char_in_car $scplayer {vehicle} 144@
goto_if_false @MANSIO2_14175
264@ = 1
goto @MANSIO2_14197

:MANSIO2_14175
start_playback_recorded_car 144@ {path} 209
192@ = 0
264@ = 1

:MANSIO2_14197
goto @MANSIO2_14322

:MANSIO2_14204
if 
  locate_char_any_means_3d $scplayer {x} -1347.692 {y} 499.5881 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_14281
start_playback_recorded_car 144@ {path} 209
192@ = 0
264@ = 1
goto @MANSIO2_14322

:MANSIO2_14281
if 
  is_char_touching_object $scplayer {object} 158@
goto_if_false @MANSIO2_14322
start_playback_recorded_car 144@ {path} 209
192@ = 0
264@ = 1

:MANSIO2_14322
if 
  265@ == 0
goto_if_false @MANSIO2_14427
if 
  locate_char_any_means_3d $scplayer {x} -1368.303 {y} 496.5314 {z} 10.1854 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_14427
193@ = 0
265@ = 1
if 
  279@ == 0
goto_if_false @MANSIO2_14427
187@ = 11

:MANSIO2_14427
if 
  not is_car_dead 143@
goto_if_false @MANSIO2_14677
73@ = 0
if 
  is_char_in_car $scplayer {vehicle} 143@
goto_if_false @MANSIO2_14531
if 
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 16.688 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14524
73@ = 1

:MANSIO2_14524
goto @MANSIO2_14586

:MANSIO2_14531
if 
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 9.648 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14586
73@ = 1

:MANSIO2_14586
if 
  288@ == 0
goto_if_false @MANSIO2_14644
if 
  73@ == 0
goto_if_false @MANSIO2_14637
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_14637
goto @MANSIO2_14677

:MANSIO2_14644
if 
  73@ == 1
goto_if_false @MANSIO2_14677
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_14677
if 
  not is_car_dead 142@
goto_if_false @MANSIO2_14927
73@ = 0
if 
  is_char_in_car $scplayer {vehicle} 142@
goto_if_false @MANSIO2_14781
if 
  slide_object 157@ {posX} -1456.719 {posY} 501.297 {posZ} 16.953 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14774
73@ = 1

:MANSIO2_14774
goto @MANSIO2_14836

:MANSIO2_14781
if 
  slide_object 157@ {posX} -1456.719 {posY} 501.297 {posZ} 9.914 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_14836
73@ = 1

:MANSIO2_14836
if 
  287@ == 0
goto_if_false @MANSIO2_14894
if 
  73@ == 0
goto_if_false @MANSIO2_14887
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
287@ = 1

:MANSIO2_14887
goto @MANSIO2_14927

:MANSIO2_14894
if 
  73@ == 1
goto_if_false @MANSIO2_14927
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
287@ = 0

:MANSIO2_14927
if 
  249@ == 0
goto_if_false @MANSIO2_15120
if 
  not is_car_dead 143@
goto_if_false @MANSIO2_15113
if 
  is_char_in_car $scplayer {vehicle} 143@
goto_if_false @MANSIO2_15113
57@, 58@, 59@ = get_car_coordinates 143@
60@, 61@, 62@ = get_object_coordinates 158@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  70@ >= 0.0
  3.0 >= 70@
goto_if_false @MANSIO2_15113
set_fixed_camera_position -1427.408 {y} 516.3539 {z} 20.8899 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1426.4351 {y} 516.2787 {z} 20.6742 {switchStyle} SwitchType.Interpolation
249@ = 1

:MANSIO2_15113
goto @MANSIO2_15184

:MANSIO2_15120
if 
  is_car_dead 143@
goto_if_false @MANSIO2_15154
set_camera_behind_player 
restore_camera 
249@ = 0
goto @MANSIO2_15184

:MANSIO2_15154
if 
  not is_char_in_car $scplayer {vehicle} 143@
goto_if_false @MANSIO2_15184
set_camera_behind_player 
restore_camera 
249@ = 0

:MANSIO2_15184
if 
  250@ == 0
goto_if_false @MANSIO2_15377
if 
  not is_car_dead 142@
goto_if_false @MANSIO2_15370
if 
  is_char_in_car $scplayer {vehicle} 142@
goto_if_false @MANSIO2_15370
57@, 58@, 59@ = get_car_coordinates 142@
60@, 61@, 62@ = get_object_coordinates 157@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  70@ >= 0.0
  3.0 >= 70@
goto_if_false @MANSIO2_15370
set_fixed_camera_position -1439.283 {y} 507.3634 {z} 28.9545 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1440.069 {y} 507.1481 {z} 28.3752 {switchStyle} SwitchType.Interpolation
250@ = 1

:MANSIO2_15370
goto @MANSIO2_15441

:MANSIO2_15377
if 
  is_car_dead 142@
goto_if_false @MANSIO2_15411
set_camera_behind_player 
restore_camera 
250@ = 0
goto @MANSIO2_15441

:MANSIO2_15411
if 
  not is_char_in_car $scplayer {vehicle} 142@
goto_if_false @MANSIO2_15441
set_camera_behind_player 
restore_camera 
250@ = 0

:MANSIO2_15441
48@ = 0

:MANSIO2_15448
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_15830
if 
  is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_15830
switch_start 48@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_15803 {caseNum1} 0 {caseLabel1} @MANSIO2_15740 {caseNum2} 1 {caseLabel2} @MANSIO2_15647 {caseNum3} 2 {caseLabel3} @MANSIO2_15554 {caseNum4} -1 {caseLabel4} @MANSIO2_15830 {caseNum5} -1 {caseLabel5} @MANSIO2_15830 {caseNum6} -1 {caseLabel6} @MANSIO2_15830 {caseNum7} -1 {caseLabel7} @MANSIO2_15830

:MANSIO2_15554
57@, 58@, 59@ = get_car_coordinates 141@(48@,4i)
60@, 61@, 62@ = get_object_coordinates 158@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  0.0 > 70@
  70@ > 3.0
goto_if_false @MANSIO2_15640
248@ = 1

:MANSIO2_15640
goto @MANSIO2_15830

:MANSIO2_15647
57@, 58@, 59@ = get_car_coordinates 141@(48@,4i)
60@, 61@, 62@ = get_object_coordinates 157@
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if or
  0.0 > 70@
  70@ > 3.0
goto_if_false @MANSIO2_15733
248@ = 1

:MANSIO2_15733
goto @MANSIO2_15830

:MANSIO2_15740
57@, 58@, 59@ = get_car_coordinates 141@(48@,4i)
if or
  59@ > 20.0
  5.0 > 59@
goto_if_false @MANSIO2_15796
248@ = 1

:MANSIO2_15796
goto @MANSIO2_15830

:MANSIO2_15803
if 
  is_car_in_air_proper 141@(48@,4i)
goto_if_false @MANSIO2_15830
248@ = 1

:MANSIO2_15830
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_15448
if and
  248@ == 1
  261@ == 0
goto_if_false @MANSIO2_16281
48@ = 0

:MANSIO2_15883
239@(48@,3i) = 0
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_15883
50@ = 0
48@ = 0

:MANSIO2_15929
if 
  48@ == 3
goto_if_false @MANSIO2_16028
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_16028
if 
  is_playback_going_on_for_car 141@(48@,4i)
goto_if_false @MANSIO2_15996
stop_playback_recorded_car 141@(48@,4i)

:MANSIO2_15996
if 
  not is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_16028
delete_car 141@(48@,4i)

:MANSIO2_16028
if 
  48@ == 1
goto_if_false @MANSIO2_16161
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_16161
if 
  not is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_16161
if 
  193@ <> -1
goto_if_false @MANSIO2_16161
stop_playback_recorded_car 141@(48@,4i)
set_car_coordinates 141@(48@,4i) {x} -1457.627 {y} 502.2539 {z} 9.0078
set_car_heading 141@(48@,4i) {heading} 185.069
193@ = -1

:MANSIO2_16161
if 
  not is_car_dead 141@(48@,4i)
goto_if_false @MANSIO2_16253
if 
  is_char_in_car $scplayer {vehicle} 141@(48@,4i)
goto_if_false @MANSIO2_16219
145@ = store_car_char_is_in $scplayer
goto @MANSIO2_16253

:MANSIO2_16219
set_lvar_int_to_lvar_int 146@(50@,3i) = 141@(48@,4i)
239@(50@,3i) = 1
50@ += 1

:MANSIO2_16253
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_15929
261@ = 1

:MANSIO2_16281
gosub @MANSIO2_22639
gosub @MANSIO2_22723
gosub @MANSIO2_36622
48@ = 0

:MANSIO2_16309
if 
  not is_char_dead 131@(48@,6i)
goto_if_false @MANSIO2_16338
clear_char_last_weapon_damage 131@(48@,6i)

:MANSIO2_16338
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_16309
48@ = 0

:MANSIO2_16366
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_16395
clear_char_last_weapon_damage 137@(48@,2i)

:MANSIO2_16395
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_16366
48@ = 0

:MANSIO2_16423
if 
  not is_car_dead 154@(48@,3i)
goto_if_false @MANSIO2_16452
clear_car_last_weapon_damage 154@(48@,3i)

:MANSIO2_16452
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_16423
gosub @MANSIO2_46556
gosub @MANSIO2_46828
if 
  268@ == 0
goto_if_false @MANSIO2_16758
if 
  267@ == 1
goto_if_false @MANSIO2_16758
switch_start 213@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_16724 {caseNum1} 1 {caseLabel1} @MANSIO2_16586 {caseNum2} 2 {caseLabel2} @MANSIO2_16609 {caseNum3} 3 {caseLabel3} @MANSIO2_16632 {caseNum4} 4 {caseLabel4} @MANSIO2_16655 {caseNum5} 5 {caseLabel5} @MANSIO2_16678 {caseNum6} 6 {caseLabel6} @MANSIO2_16701 {caseNum7} -1 {caseLabel7} @MANSIO2_16724

:MANSIO2_16586
print_now 'MAN2_47' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16609
print_now 'MAN2_49' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16632
print_now 'MAN2_40' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16655
print_now 'MAN2_41' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16678
print_now 'MAN2_42' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16701
print_now 'MAN2_43' {time} 7000 {flag} 1
goto @MANSIO2_16724

:MANSIO2_16724
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundVerticalBirdAlarmStart
289@ = 1
268@ = 1

:MANSIO2_16758
if 
  267@ == 0
goto_if_false @MANSIO2_16843
50@ = get_number_of_fires_in_area -1471.0 {leftBottomY} 484.0 {leftBottomZ} 0.0 {rightTopX} -1246.0 {rightTopY} 523.0 {rightTopZ} 40.0
if 
  50@ > 0
goto_if_false @MANSIO2_16843
213@ = 6
267@ = 1

:MANSIO2_16843
if 
  238@ == 1
goto_if_false @MANSIO2_16955
if 
  296@ == 0
goto_if_false @MANSIO2_16955
if 
  is_char_in_area_3d $scplayer {leftBottomX} -1466.973 {leftBottomY} 488.6672 {leftBottomZ} 7.1953 {rightTopX} -1393.22 {rightTopY} 521.52 {rightTopZ} 11.3953 {drawSphere} False
goto_if_false @MANSIO2_16955
remove_blip 165@
print_now 'MAN2_25' {time} 5000 {flag} 1
296@ = 1

:MANSIO2_16955
if 
  297@ == 1
goto_if_false @MANSIO2_17010
if 
  not is_char_in_model $scplayer {modelId} 530
goto_if_false @MANSIO2_17003
set_radio_channel RadioChannel.UserTracks
297@ = 0

:MANSIO2_17003
goto @MANSIO2_17036

:MANSIO2_17010
if 
  is_char_in_model $scplayer {modelId} 530
goto_if_false @MANSIO2_17036
297@ = 1

:MANSIO2_17036
if 
  35@ == 99
goto_if_false @MANSIO2_17061
gosub @MANSIO2_51214

:MANSIO2_17061
return 

:MANSIO2_17063
if 
  is_car_dead 145@
goto_if_false @MANSIO2_17095
37@ = 1
45@ = 4
return 

:MANSIO2_17095
if 
  35@ == 0
goto_if_false @MANSIO2_17926
50@ = 0
clear_area -1178.22 {y} 2775.04 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -1178.22 {y} 2775.04 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 327.1833
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
50@ += 1
clear_area -1168.9189 {y} 2795.99 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -1168.9189 {y} 2795.99 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 171.1833
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
50@ += 1
clear_area -930.1593 {y} 2641.605 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -930.1593 {y} 2641.605 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 124.0961
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
50@ += 1
clear_area -973.0267 {y} 2484.021 {z} 40.0 {radius} 20.0 {clearParticles} True
create_car 454 {x} -973.0267 {y} 2484.021 {z} 40.0 {var_handle} 149@(50@,4i)
set_car_health 149@(50@,4i) {health} 500
set_car_heading 149@(50@,4i) {heading} 171.8058
anchor_boat 149@(50@,4i) {state} True
freeze_car_position_and_dont_load_collision 149@(50@,4i) {state} True
add_blip_for_car 149@(50@,4i) {var_handle} 169@(50@,4i)
change_blip_colour 169@(50@,4i) {color} BlipColor.Yellow
252@(50@,4i) = 1
247@ = 1
251@ = 0
256@ = 0
257@ = 0
290@ = 0
232@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
236@ = 0
if 
  288@ == 0
goto_if_false @MANSIO2_17799
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
288@ = 1

:MANSIO2_17799
if 
  287@ == 0
goto_if_false @MANSIO2_17832
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStart
287@ = 1

:MANSIO2_17832
if 
  289@ == 1
goto_if_false @MANSIO2_17877
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundVerticalBirdAlarmStop
289@ = 0

:MANSIO2_17877
50@ = get_car_health 145@
50@ += 1000
set_car_health 145@ {health} 50@
81@ = 5
gosub @MANSIO2_48037
set_radar_zoom 0
35@ += 1

:MANSIO2_17926
if 
  35@ == 1
goto_if_false @MANSIO2_18098
if 
  80@ <> 5
goto_if_false @MANSIO2_17976
81@ = 5
gosub @MANSIO2_48037

:MANSIO2_17976
if and
  not locate_char_any_means_3d $scplayer {x} -1343.5 {y} 504.1 {z} 30.0 {xRadius} 250.0 {yRadius} 250.0 {zRadius} 200.0 {drawSphere} False
  80@ == 5
goto_if_false @MANSIO2_18098
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_18082
gosub @MANSIO2_48192
290@ = 1
set_disable_military_zones False
35@ += 1
goto @MANSIO2_18098

:MANSIO2_18082
37@ = 1
45@ = 6
return 

:MANSIO2_18098
if 
  35@ == 2
goto_if_false @MANSIO2_18155
if 
  is_local_var_bit_set_const 85@ {bitIndex} 5
goto_if_false @MANSIO2_18155
81@ = 6
gosub @MANSIO2_48037
35@ += 1

:MANSIO2_18155
if 
  35@ == 3
goto_if_false @MANSIO2_18916
if 
  80@ <> 6
goto_if_false @MANSIO2_18205
81@ = 6
gosub @MANSIO2_48037

:MANSIO2_18205
if 
  80@ == 6
goto_if_false @MANSIO2_18916
73@ = 0
48@ = 0

:MANSIO2_18237
if 
  73@ == 0
goto_if_false @MANSIO2_18322
if 
  239@(48@,3i) == 0
goto_if_false @MANSIO2_18322
create_car 520 {x} -1333.231 {y} 507.6329 {z} 17.2266 {var_handle} 146@(48@,3i)
239@(48@,3i) = 1
73@ = 1

:MANSIO2_18322
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_18237
50@ = 0
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18524
if 
  not is_car_dead 146@(50@,3i)
goto_if_false @MANSIO2_18524
set_car_coordinates 146@(50@,3i) {x} -1293.86 {y} 481.91 {z} 81.18
set_car_heading 146@(50@,3i) {heading} 0.0
set_car_status 146@(50@,3i) {status} EntityStatus.Physics
set_car_forward_speed 146@(50@,3i) {forwardSpeed} 30.0
set_plane_throttle 146@(50@,3i) {throttle} 1.5
plane_starts_in_air 146@(50@,3i)
plane_follow_entity 146@(50@,3i) {char} $scplayer {vehicle} -1 {altitude} 70.0
add_blip_for_car 146@(50@,3i) {var_handle} 166@(50@,3i)
change_blip_display 166@(50@,3i) {display} BlipDisplay.BlipOnly

:MANSIO2_18524
50@ += 1
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18705
if 
  not is_car_dead 146@(50@,3i)
goto_if_false @MANSIO2_18705
set_car_coordinates 146@(50@,3i) {x} -1273.86 {y} 481.91 {z} 81.18
set_car_heading 146@(50@,3i) {heading} 0.0
set_car_status 146@(50@,3i) {status} EntityStatus.Physics
set_car_forward_speed 146@(50@,3i) {forwardSpeed} 30.0
set_plane_throttle 146@(50@,3i) {throttle} 1.5
plane_starts_in_air 146@(50@,3i)
plane_follow_entity 146@(50@,3i) {char} $scplayer {vehicle} -1 {altitude} 70.0
add_blip_for_car 146@(50@,3i) {var_handle} 166@(50@,3i)
change_blip_display 166@(50@,3i) {display} BlipDisplay.BlipOnly

:MANSIO2_18705
50@ += 1
if 
  239@(50@,3i) == 1
goto_if_false @MANSIO2_18886
if 
  not is_car_dead 146@(50@,3i)
goto_if_false @MANSIO2_18886
set_car_coordinates 146@(50@,3i) {x} -1253.86 {y} 481.91 {z} 81.18
set_car_heading 146@(50@,3i) {heading} 0.0
set_car_status 146@(50@,3i) {status} EntityStatus.Physics
set_car_forward_speed 146@(50@,3i) {forwardSpeed} 30.0
set_plane_throttle 146@(50@,3i) {throttle} 1.5
plane_starts_in_air 146@(50@,3i)
plane_follow_entity 146@(50@,3i) {char} $scplayer {vehicle} -1 {altitude} 70.0
add_blip_for_car 146@(50@,3i) {var_handle} 166@(50@,3i)
change_blip_display 166@(50@,3i) {display} BlipDisplay.BlipOnly

:MANSIO2_18886
251@ = 1
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
35@ += 1

:MANSIO2_18916
if 
  35@ == 4
goto_if_false @MANSIO2_19174
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19174
50@ = -1
if 
  239@ == 1
goto_if_false @MANSIO2_19001
if 
  not is_car_dead 146@
goto_if_false @MANSIO2_19001
50@ = 0

:MANSIO2_19001
if 
  50@ == -1
goto_if_false @MANSIO2_19060
if 
  240@ == 1
goto_if_false @MANSIO2_19060
if 
  not is_car_dead 147@
goto_if_false @MANSIO2_19060
50@ = 1

:MANSIO2_19060
if 
  50@ <> -1
goto_if_false @MANSIO2_19160
set_fixed_camera_position -1297.6331 {y} 489.9132 {z} 74.9315 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 146@(50@,3i) {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_19149
freeze_car_position 145@ {state} True

:MANSIO2_19149
switch_widescreen True
set_player_control $player1 {state} False

:MANSIO2_19160
gosub @MANSIO2_48192
35@ += 1

:MANSIO2_19174
if 
  35@ == 5
goto_if_false @MANSIO2_19231
if 
  is_local_var_bit_set_const 85@ {bitIndex} 6
goto_if_false @MANSIO2_19231
81@ = 7
gosub @MANSIO2_48037
35@ += 1

:MANSIO2_19231
if 
  35@ == 6
goto_if_false @MANSIO2_19383
if 
  80@ <> 7
goto_if_false @MANSIO2_19281
81@ = 7
gosub @MANSIO2_48037

:MANSIO2_19281
if 
  80@ == 7
goto_if_false @MANSIO2_19383
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_19360
freeze_car_position 145@ {state} False
set_car_forward_speed 145@ {forwardSpeed} 30.0
set_plane_throttle 145@ {throttle} 1.0

:MANSIO2_19360
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 500
35@ += 1

:MANSIO2_19383
if 
  35@ == 7
goto_if_false @MANSIO2_19434
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19434
gosub @MANSIO2_48192
35@ += 1

:MANSIO2_19434
if 
  35@ == 8
goto_if_false @MANSIO2_19527
if 
  is_local_var_bit_set_const 85@ {bitIndex} 7
goto_if_false @MANSIO2_19527
print_help_forever 'MAN2_71'
232@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 15000
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 5000
35@ += 1

:MANSIO2_19527
if 
  35@ == 9
goto_if_false @MANSIO2_19761
if 
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_19761
50@ = 0
48@ = 0

:MANSIO2_19578
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_19658
if 
  not is_car_dead 146@(48@,3i)
goto_if_false @MANSIO2_19658
set_plane_throttle 146@(48@,3i) {throttle} 0.5
plane_attack_player_using_dog_fight 146@(48@,3i) {player} $player1 {altitude} 30.0
50@ += 1

:MANSIO2_19658
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_19578
if 
  50@ > 0
goto_if_false @MANSIO2_19754
if 
  50@ == 1
goto_if_false @MANSIO2_19738
print_now 'MAN2_36' {time} 7000 {flag} 1
goto @MANSIO2_19754

:MANSIO2_19738
print_now 'MAN2_35' {time} 7000 {flag} 1

:MANSIO2_19754
35@ += 1

:MANSIO2_19761
if 
  35@ == 10
goto_if_false @MANSIO2_19811
if and
  256@ == 1
  257@ == 1
goto_if_false @MANSIO2_19811
35@ = 99

:MANSIO2_19811
73@ = 0
50@ = 0
48@ = 0

:MANSIO2_19832
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_19915
if 
  is_car_dead 149@(48@,4i)
goto_if_false @MANSIO2_19908
252@(48@,4i) = 0
remove_blip 169@(48@,4i)
73@ = 1
goto @MANSIO2_19915

:MANSIO2_19908
50@ += 1

:MANSIO2_19915
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_19832
if 
  73@ == 1
goto_if_false @MANSIO2_20115
if 
  50@ > 0
goto_if_false @MANSIO2_20042
if 
  50@ == 1
goto_if_false @MANSIO2_20016
print_with_number_now 'MAN2_30' {num} 50@ {duration} 5000 {flag} 1
goto @MANSIO2_20035

:MANSIO2_20016
print_with_number_now 'MAN2_29' {num} 50@ {duration} 5000 {flag} 1

:MANSIO2_20035
goto @MANSIO2_20076

:MANSIO2_20042
if 
  257@ == 0
goto_if_false @MANSIO2_20076
print_now 'MAN2_44' {time} 5000 {flag} 1

:MANSIO2_20076
if 
  235@ == 0
goto_if_false @MANSIO2_20115
235@ = 1
236@ = 1
236@ = 1

:MANSIO2_20115
256@ = 1
48@ = 0

:MANSIO2_20129
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_20158
256@ = 0

:MANSIO2_20158
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_20129
73@ = 0
50@ = 0
48@ = 0

:MANSIO2_20200
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_20310
if 
  is_car_dead 146@(48@,3i)
goto_if_false @MANSIO2_20303
239@(48@,3i) = 0
mark_car_as_no_longer_needed 146@(48@,3i)
remove_blip 166@(48@,3i)
if 
  251@ == 1
goto_if_false @MANSIO2_20296
73@ = 1

:MANSIO2_20296
goto @MANSIO2_20310

:MANSIO2_20303
50@ += 1

:MANSIO2_20310
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_20200
if 
  73@ == 1
goto_if_false @MANSIO2_20441
if 
  50@ > 0
goto_if_false @MANSIO2_20393
print_with_number_now 'MAN2_27' {num} 50@ {duration} 5000 {flag} 1
goto @MANSIO2_20441

:MANSIO2_20393
257@ = 1
if 
  256@ == 0
goto_if_false @MANSIO2_20441
print_now 'MAN2_28' {time} 5000 {flag} 1
234@ = 1

:MANSIO2_20441
if 
  247@ == 1
goto_if_false @MANSIO2_20617
if and
  slide_object 158@ {posX} -1414.453 {posY} 516.453 {posZ} 16.688 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
  slide_object 157@ {posX} -1456.719 {posY} 501.297 {posZ} 16.953 {speedX} 0.05 {speedY} 0.05 {speedZ} 0.05 {collisionCheck} False
goto_if_false @MANSIO2_20617
247@ = 0
if 
  288@ == 1
goto_if_false @MANSIO2_20584
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_20584
if 
  287@ == 1
goto_if_false @MANSIO2_20617
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
287@ = 0

:MANSIO2_20617
if 
  not is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_20872
if 
  not does_blip_exist 179@
goto_if_false @MANSIO2_20690
print_now 'MAN2_37' {time} 5000 {flag} 1
179@ = add_blip_for_car 145@
set_blip_as_friendly 179@ {state} True
goto @MANSIO2_20865

:MANSIO2_20690
if 
  290@ == 0
goto_if_false @MANSIO2_20865
73@ = 0
48@ = 0

:MANSIO2_20722
if 
  239@(48@,3i) == 1
goto_if_false @MANSIO2_20844
if 
  73@ == 0
goto_if_false @MANSIO2_20844
if 
  not is_car_dead 146@(48@,3i)
goto_if_false @MANSIO2_20844
if 
  is_char_in_car $scplayer {vehicle} 146@(48@,3i)
goto_if_false @MANSIO2_20844
set_var_int_to_lvar_int $car = 146@(48@,3i)
set_lvar_int_to_lvar_int 146@(48@,3i) = 145@
set_lvar_int_to_var_int 145@ = $car
73@ = 1

:MANSIO2_20844
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_20722

:MANSIO2_20865
goto @MANSIO2_20904

:MANSIO2_20872
if 
  does_blip_exist 179@
goto_if_false @MANSIO2_20904
remove_blip 179@
clear_this_print 'MAN2_37'

:MANSIO2_20904
if 
  231@ == 0
goto_if_false @MANSIO2_20977
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_20977
clear_help 
print_help_forever 'MAN2_99'
231@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_20977
if and
  231@ == 1
  232@ == 0
goto_if_false @MANSIO2_21048
if 
  206@ <> 0
goto_if_false @MANSIO2_21048
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21048
206@ = 0
clear_help 

:MANSIO2_21048
if 
  232@ == 1
goto_if_false @MANSIO2_21139
if 
  233@ == 0
goto_if_false @MANSIO2_21139
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21139
clear_help 
print_help_forever 'MAN2_98'
233@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21139
if 
  233@ == 1
goto_if_false @MANSIO2_21203
if 
  206@ <> 0
goto_if_false @MANSIO2_21203
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21203
206@ = 0
clear_help 

:MANSIO2_21203
if 
  234@ == 1
goto_if_false @MANSIO2_21705
if 
  235@ == 0
goto_if_false @MANSIO2_21459
if and
  233@ == 1
  206@ == 0
goto_if_false @MANSIO2_21459
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_21459
73@ = 0
48@ = 0

:MANSIO2_21297
if 
  73@ == 0
goto_if_false @MANSIO2_21384
if 
  252@(48@,4i) == 1
goto_if_false @MANSIO2_21384
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 149@(48@,4i) {xRadius} 300.0 {yRadius} 300.0 {zRadius} 300.0 {drawSphere} False
goto_if_false @MANSIO2_21384
73@ = 1

:MANSIO2_21384
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_21297
if 
  73@ == 1
goto_if_false @MANSIO2_21459
clear_help 
print_help_forever 'HYDHLP1'
235@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21459
if 
  235@ == 1
goto_if_false @MANSIO2_21550
if 
  236@ == 0
goto_if_false @MANSIO2_21550
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21550
clear_help 
print_help_forever 'HYDHLP2'
236@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21550
if 
  236@ == 1
goto_if_false @MANSIO2_21641
if 
  237@ == 0
goto_if_false @MANSIO2_21641
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21641
clear_help 
print_help_forever 'HYDHLP3'
237@ = 1
set_lvar_int_to_lvar_int 206@ = 46@
206@ += 10000

:MANSIO2_21641
if 
  237@ == 1
goto_if_false @MANSIO2_21705
if 
  206@ <> 0
goto_if_false @MANSIO2_21705
if 
  is_int_lvar_greater_than_int_lvar 46@ > 206@
goto_if_false @MANSIO2_21705
206@ = 0
clear_help 

:MANSIO2_21705
if 
  35@ == 99
goto_if_false @MANSIO2_21730
gosub @MANSIO2_51214

:MANSIO2_21730
return 

:MANSIO2_21732
if 
  is_car_dead 145@
goto_if_false @MANSIO2_21764
37@ = 1
45@ = 4
return 

:MANSIO2_21764
if 
  35@ == 0
goto_if_false @MANSIO2_22022
214@ = -76.4228
215@ = 2478.6399
216@ = 14.2844
217@ = 433.6483
218@ = 2525.658
219@ = 18.6279
set_lvar_float_to_lvar_float 220@ = 217@
sub_float_lvar_from_float_lvar 220@ -= 214@
220@ /= 2.0
add_float_lvar_to_float_lvar 220@ += 214@
set_lvar_float_to_lvar_float 221@ = 218@
sub_float_lvar_from_float_lvar 221@ -= 215@
221@ /= 2.0
add_float_lvar_to_float_lvar 221@ += 215@
set_lvar_float_to_lvar_float 222@ = 219@
sub_float_lvar_from_float_lvar 222@ -= 216@
222@ /= 2.0
add_float_lvar_to_float_lvar 222@ += 216@
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@
81@ = 8
gosub @MANSIO2_48037
set_lvar_int_to_lvar_int 194@ = 46@
194@ += 1000
266@ = 0
request_model 359
request_model 360
request_model 362
request_model 361
35@ += 1

:MANSIO2_22022
if 
  35@ == 1
goto_if_false @MANSIO2_22112
if 
  80@ <> 8
goto_if_false @MANSIO2_22072
81@ = 8
gosub @MANSIO2_48037

:MANSIO2_22072
if and
  80@ == 8
  is_int_lvar_greater_than_int_lvar 46@ > 194@
goto_if_false @MANSIO2_22112
gosub @MANSIO2_48192
35@ += 1

:MANSIO2_22112
if 
  35@ == 2
goto_if_false @MANSIO2_22171
if 
  is_local_var_bit_set_const 85@ {bitIndex} 8
goto_if_false @MANSIO2_22171
print_now 'MAN2_26' {time} 10000 {flag} 1
35@ += 1

:MANSIO2_22171
if 
  35@ == 3
goto_if_false @MANSIO2_22420
  locate_char_any_means_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
if and
  is_char_in_area_3d $scplayer {leftBottomX} 214@ {leftBottomY} 215@ {leftBottomZ} 216@ {rightTopX} 217@ {rightTopY} 218@ {rightTopZ} 219@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_22304
if and
  is_car_stopped 145@
  not is_car_in_air_proper 145@
goto_if_false @MANSIO2_22297
remove_blip 165@
35@ += 1

:MANSIO2_22297
goto @MANSIO2_22420

:MANSIO2_22304
set_lvar_float_to_lvar_float 70@ = 219@
70@ += 20.0
if and
  is_char_in_area_3d $scplayer {leftBottomX} 214@ {leftBottomY} 215@ {leftBottomZ} 216@ {rightTopX} 217@ {rightTopY} 218@ {rightTopZ} 70@ {drawSphere} False
  is_char_in_car $scplayer {vehicle} 145@
  266@ == 0
goto_if_false @MANSIO2_22420
71@ = get_plane_undercarriage_position 145@
if 
  71@ > 0.1
goto_if_false @MANSIO2_22420
print_help 'MAN2_72'
266@ = 1

:MANSIO2_22420
if 
  35@ == 4
goto_if_false @MANSIO2_22505
220@ = 291.3149
221@ = 2535.249
222@ = 15.8205
165@ = add_blip_for_coord 220@ {y} 221@ {z} 222@
print_now 'MAN2_33' {time} 5000 {flag} 1
35@ += 1

:MANSIO2_22505
if 
  35@ == 5
goto_if_false @MANSIO2_22612
if 
  is_char_in_car $scplayer {vehicle} 145@
goto_if_false @MANSIO2_22612
if 
  locate_char_any_means_3d $scplayer {x} 220@ {y} 221@ {z} 222@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
goto_if_false @MANSIO2_22612
if 
  is_car_stopped 145@
goto_if_false @MANSIO2_22612
remove_blip 165@
35@ = 99

:MANSIO2_22612
if 
  35@ == 99
goto_if_false @MANSIO2_22637
gosub @MANSIO2_51214

:MANSIO2_22637
return 

:MANSIO2_22639
285@ = 0
if 
  284@ == 1
goto_if_false @MANSIO2_22666
return 

:MANSIO2_22666
if 
  is_char_shooting $scplayer
goto_if_false @MANSIO2_22721
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_22714
285@ = 1
goto @MANSIO2_22721

:MANSIO2_22714
284@ = 1

:MANSIO2_22721
return 

:MANSIO2_22723
52@ = 0

:MANSIO2_22730
if and
  183@(52@,6i) <> -1
  183@(52@,6i) <> -2
goto_if_false @MANSIO2_22810
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_22810
183@(52@,6i) = -2
remove_blip 173@(52@,6i)
gosub @MANSIO2_25486

:MANSIO2_22810
52@ += 1
  52@ >= 6
goto_if_false @MANSIO2_22730
52@ = 0

:MANSIO2_22838
if 
  269@(52@,6i) == 1
goto_if_false @MANSIO2_22867
gosub @MANSIO2_23571

:MANSIO2_22867
switch_start 183@(52@,6i) {numCases} 30 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_23521 {caseNum1} -2 {caseLabel1} @MANSIO2_23129 {caseNum2} -1 {caseLabel2} @MANSIO2_23129 {caseNum3} 0 {caseLabel3} @MANSIO2_23136 {caseNum4} 1 {caseLabel4} @MANSIO2_23150 {caseNum5} 2 {caseLabel5} @MANSIO2_23164 {caseNum6} 3 {caseLabel6} @MANSIO2_23178 {caseNum7} 4 {caseLabel7} @MANSIO2_23192
switch_continued 5 {caseLabel1} @MANSIO2_23206 {caseNum2} 6 {caseLabel2} @MANSIO2_23220 {caseNum3} 7 {caseLabel3} @MANSIO2_23234 {caseNum4} 8 {caseLabel4} @MANSIO2_23248 {caseNum5} 9 {caseLabel5} @MANSIO2_23262 {caseNum6} 10 {caseLabel6} @MANSIO2_23276 {caseNum7} 11 {caseLabel7} @MANSIO2_23290 {caseNum8} 12 {caseLabel8} @MANSIO2_23304 {caseNum9} 13 {caseLabel9} @MANSIO2_23318
switch_continued 14 {caseLabel1} @MANSIO2_23332 {caseNum2} 15 {caseLabel2} @MANSIO2_23346 {caseNum3} 16 {caseLabel3} @MANSIO2_23360 {caseNum4} 17 {caseLabel4} @MANSIO2_23374 {caseNum5} 18 {caseLabel5} @MANSIO2_23388 {caseNum6} 19 {caseLabel6} @MANSIO2_23402 {caseNum7} 20 {caseLabel7} @MANSIO2_23416 {caseNum8} 21 {caseLabel8} @MANSIO2_23430 {caseNum9} 22 {caseLabel9} @MANSIO2_23444
switch_continued 23 {caseLabel1} @MANSIO2_23458 {caseNum2} 24 {caseLabel2} @MANSIO2_23472 {caseNum3} 25 {caseLabel3} @MANSIO2_23486 {caseNum4} 26 {caseLabel4} @MANSIO2_23500 {caseNum5} 27 {caseLabel5} @MANSIO2_23514 {caseNum6} -1 {caseLabel6} @MANSIO2_23548 {caseNum7} -1 {caseLabel7} @MANSIO2_23548 {caseNum8} -1 {caseLabel8} @MANSIO2_23548 {caseNum9} -1 {caseLabel9} @MANSIO2_23548

:MANSIO2_23129
goto @MANSIO2_23548

:MANSIO2_23136
gosub @MANSIO2_26049
goto @MANSIO2_23548

:MANSIO2_23150
gosub @MANSIO2_26125
goto @MANSIO2_23548

:MANSIO2_23164
gosub @MANSIO2_26286
goto @MANSIO2_23548

:MANSIO2_23178
gosub @MANSIO2_26355
goto @MANSIO2_23548

:MANSIO2_23192
gosub @MANSIO2_26576
goto @MANSIO2_23548

:MANSIO2_23206
gosub @MANSIO2_27119
goto @MANSIO2_23548

:MANSIO2_23220
gosub @MANSIO2_27615
goto @MANSIO2_23548

:MANSIO2_23234
gosub @MANSIO2_27941
goto @MANSIO2_23548

:MANSIO2_23248
gosub @MANSIO2_28286
goto @MANSIO2_23548

:MANSIO2_23262
gosub @MANSIO2_28489
goto @MANSIO2_23548

:MANSIO2_23276
gosub @MANSIO2_28643
goto @MANSIO2_23548

:MANSIO2_23290
gosub @MANSIO2_28864
goto @MANSIO2_23548

:MANSIO2_23304
gosub @MANSIO2_29104
goto @MANSIO2_23548

:MANSIO2_23318
gosub @MANSIO2_29727
goto @MANSIO2_23548

:MANSIO2_23332
gosub @MANSIO2_29785
goto @MANSIO2_23548

:MANSIO2_23346
gosub @MANSIO2_29849
goto @MANSIO2_23548

:MANSIO2_23360
gosub @MANSIO2_30040
goto @MANSIO2_23548

:MANSIO2_23374
gosub @MANSIO2_30471
goto @MANSIO2_23548

:MANSIO2_23388
gosub @MANSIO2_30635
goto @MANSIO2_23548

:MANSIO2_23402
gosub @MANSIO2_30865
goto @MANSIO2_23548

:MANSIO2_23416
gosub @MANSIO2_31260
goto @MANSIO2_23548

:MANSIO2_23430
gosub @MANSIO2_31960
goto @MANSIO2_23548

:MANSIO2_23444
gosub @MANSIO2_32057
goto @MANSIO2_23548

:MANSIO2_23458
gosub @MANSIO2_32189
goto @MANSIO2_23548

:MANSIO2_23472
gosub @MANSIO2_32269
goto @MANSIO2_23548

:MANSIO2_23486
gosub @MANSIO2_32468
goto @MANSIO2_23548

:MANSIO2_23500
gosub @MANSIO2_32749
goto @MANSIO2_23548

:MANSIO2_23514
goto @MANSIO2_23548

:MANSIO2_23521
write_debug "UNKNOWN_GUARD_AI_ACTION"

:MANSIO2_23548
52@ += 1
  52@ >= 6
goto_if_false @MANSIO2_22838
return 

:MANSIO2_23571
if 
  267@ == 1
goto_if_false @MANSIO2_23667
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23665
183@(52@,6i) = 19
275@(52@,6i) = 1
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_23665
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 182@

:MANSIO2_23665
return 

:MANSIO2_23667
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23828
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_23828
if 
  has_char_spotted_char_in_front 131@(52@,6i) {handle} $scplayer
goto_if_false @MANSIO2_23828
57@, 58@, 59@ = get_char_coordinates 131@(52@,6i)
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  15.0 > 72@
goto_if_false @MANSIO2_23828
183@(52@,6i) = 23
gosub @MANSIO2_24878
return 

:MANSIO2_23828
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_23937
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_23937
if or
  can_char_see_dead_char 131@(52@,6i) {pedType} PedType.Mission2
  can_char_see_dead_char 131@(52@,6i) {pedType} PedType.Mission1
goto_if_false @MANSIO2_23937
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_23935
213@ = 5

:MANSIO2_23935
return 

:MANSIO2_23937
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_24207
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24207
if 
  284@ == 1
goto_if_false @MANSIO2_24031
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_24029
213@ = 3

:MANSIO2_24029
return 

:MANSIO2_24031
if 
  285@ == 1
goto_if_false @MANSIO2_24207
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 131@(52@,6i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_24207
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24166
71@ *= -1.0

:MANSIO2_24166
if 
  5.0 > 71@
goto_if_false @MANSIO2_24207
183@(52@,6i) = 23
gosub @MANSIO2_24878
return 

:MANSIO2_24207
if 
  275@(52@,6i) == 0
goto_if_false @MANSIO2_24303
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24303
if or
  has_char_been_damaged_by_char 131@(52@,6i) {handle} $scplayer
  has_char_been_damaged_by_weapon 131@(52@,6i) {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_24303
183@(52@,6i) = 23
gosub @MANSIO2_24878
return 

:MANSIO2_24303
return 

:MANSIO2_24305
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24327
return 

:MANSIO2_24327
73@ = 0
if 
  has_char_spotted_char_in_front 131@(52@,6i) {handle} $scplayer
goto_if_false @MANSIO2_24364
73@ = 1

:MANSIO2_24364
if 
  73@ == 0
goto_if_false @MANSIO2_24545
if 
  284@ == 1
goto_if_false @MANSIO2_24545
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 131@(52@,6i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  75.0 > 70@
goto_if_false @MANSIO2_24545
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24517
71@ *= -1.0

:MANSIO2_24517
if 
  5.0 > 71@
goto_if_false @MANSIO2_24545
73@ = 1

:MANSIO2_24545
if 
  73@ == 0
goto_if_false @MANSIO2_24726
if 
  285@ == 1
goto_if_false @MANSIO2_24726
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 131@(52@,6i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_24726
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_24698
71@ *= -1.0

:MANSIO2_24698
if 
  5.0 > 71@
goto_if_false @MANSIO2_24726
73@ = 1

:MANSIO2_24726
if 
  73@ == 0
goto_if_false @MANSIO2_24785
if or
  has_char_been_damaged_by_char 131@(52@,6i) {handle} $scplayer
  has_char_been_damaged_by_weapon 131@(52@,6i) {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_24785
73@ = 1

:MANSIO2_24785
if 
  73@ == 1
goto_if_false @MANSIO2_24876
if and
  183@(52@,6i) <> 23
  183@(52@,6i) <> 26
  183@(52@,6i) <> 24
  183@(52@,6i) <> 25
goto_if_false @MANSIO2_24869
183@(52@,6i) = 23

:MANSIO2_24869
gosub @MANSIO2_24878

:MANSIO2_24876
return 

:MANSIO2_24878
if 
  not is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_24923
57@, 58@, 59@ = get_char_coordinates 131@(52@,6i)
goto @MANSIO2_24941

:MANSIO2_24923
57@, 58@, 59@ = get_dead_char_coordinates 131@(52@,6i)

:MANSIO2_24941
48@ = 0

:MANSIO2_24948
if and
  not is_char_dead 131@(48@,6i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_25188
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_25188
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25079
70@ *= -1.0

:MANSIO2_25079
if 
  6.0 > 70@
goto_if_false @MANSIO2_25188
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_25188
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_25188
183@(48@,6i) = 23

:MANSIO2_25188
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_24948
48@ = 0

:MANSIO2_25216
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_25463
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_25463
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25339
70@ *= -1.0

:MANSIO2_25339
if 
  6.0 > 70@
goto_if_false @MANSIO2_25463
if 
  267@ == 0
goto_if_false @MANSIO2_25463
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_25456
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_25445
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_25445
281@(48@,2i) = 1

:MANSIO2_25456
goto @MANSIO2_25463

:MANSIO2_25463
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_25216
return 

:MANSIO2_25486
57@, 58@, 59@ = get_dead_char_coordinates 131@(52@,6i)
48@ = 0

:MANSIO2_25511
if and
  not is_char_dead 131@(48@,6i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_25751
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_25751
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25642
70@ *= -1.0

:MANSIO2_25642
if 
  6.0 > 70@
goto_if_false @MANSIO2_25751
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_25751
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_25751
183@(48@,6i) = 23

:MANSIO2_25751
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_25511
48@ = 0

:MANSIO2_25779
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_26026
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_26026
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_25902
70@ *= -1.0

:MANSIO2_25902
if 
  6.0 > 70@
goto_if_false @MANSIO2_26026
if 
  267@ == 0
goto_if_false @MANSIO2_26026
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_26019
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_26008
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_26008
281@(48@,2i) = 1

:MANSIO2_26019
goto @MANSIO2_26026

:MANSIO2_26026
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_25779
return 

:MANSIO2_26049
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26067
return 

:MANSIO2_26067
anchor_boat 153@ {state} False
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1493.4399 {y} 506.8398 {z} 0.0 {speed} 20.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
183@(52@,6i) = 1
return 

:MANSIO2_26125
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26143
return 

:MANSIO2_26143
if 
  not locate_car_3d 153@ {x} -1493.4399 {y} 506.8398 {z} 0.0 {xRadius} 10.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_26273
40@ = get_script_task_status 131@(52@,6i) {taskId} 1489
if or
  is_int_lvar_equal_to_constant 40@ == 1
  is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_26233
return 

:MANSIO2_26233
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1493.4399 {y} 506.8398 {z} 0.0 {speed} 25.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
return 

:MANSIO2_26273
183@(52@,6i) = 2
return 

:MANSIO2_26286
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26304
return 

:MANSIO2_26304
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1446.218 {y} 493.9281 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
183@(52@,6i) = 3
return 

:MANSIO2_26355
if 
  is_car_dead 153@
goto_if_false @MANSIO2_26373
return 

:MANSIO2_26373
if 
  not locate_car_3d 153@ {x} -1446.218 {y} 493.9281 {z} 0.0 {xRadius} 3.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MANSIO2_26503
40@ = get_script_task_status 131@(52@,6i) {taskId} 1489
if or
  is_int_lvar_equal_to_constant 40@ == 1
  is_int_lvar_equal_to_constant 40@ == 0
goto_if_false @MANSIO2_26463
return 

:MANSIO2_26463
task_car_drive_to_coord 131@(52@,6i) {vehicle} 153@ {x} -1446.218 {y} 493.9281 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough
return 

:MANSIO2_26503
set_car_coordinates 153@ {x} -1446.218 {y} 491.9281 {z} 0.0
set_car_heading 153@ {heading} 270.0
anchor_boat 153@ {state} True
195@ = 60
195@ *= 1000
add_int_lvar_to_int_lvar 195@ += 46@
183@(52@,6i) = 4
return 

:MANSIO2_26576
50@ = 0
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26616
183@(50@,6i) = 5

:MANSIO2_26616
50@ = 1
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26656
183@(50@,6i) = 5

:MANSIO2_26656
50@ = 2
if 
  183@(50@,6i) <> -2
goto_if_false @MANSIO2_26696
183@(50@,6i) = 5

:MANSIO2_26696
50@ = 5
create_char PedType.Mission2 {modelId} 287 {x} -1401.786 {y} 504.5374 {z} 17.2266 {var_handle} 131@(50@,6i)
set_char_heading 131@(50@,6i) {heading} 43.9825
give_weapon_to_char 131@(50@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(50@,6i) {weaponType} WeaponType.M4
set_char_accuracy 131@(50@,6i) {accuracy} 70
set_char_shoot_rate 131@(50@,6i) {rate} 70
set_char_decision_maker 131@(50@,6i) {handleOrTemplate} 181@
set_char_is_target_priority 131@(50@,6i) {state} True
50@ = 1
create_char PedType.Mission1 {modelId} 50 {x} -1421.757 {y} 496.6105 {z} 2.0463 {var_handle} 137@(50@,2i)
189@(50@,2i) = 0
50@ = 0
create_char PedType.Mission1 {modelId} 50 {x} -1346.219 {y} 497.9554 {z} 10.1953 {var_handle} 137@(50@,2i)
189@(50@,2i) = 0
50@ = 0
create_car 530 {x} -1415.933 {y} 502.7617 {z} 2.0391 {var_handle} 154@(50@,3i)
set_car_heading 154@(50@,3i) {heading} 250.5131
50@ = 1
create_car 530 {x} -1312.89 {y} 503.5017 {z} 10.1953 {var_handle} 154@(50@,3i)
set_car_heading 154@(50@,3i) {heading} 265.6291
50@ = 2
create_car 530 {x} -1405.751 {y} 495.4972 {z} 10.2026 {var_handle} 154@(50@,3i)
set_car_heading 154@(50@,3i) {heading} 81.1713
160@ = create_object #MISSILE_07_SFXR {x} -1312.89 {y} 503.5017 {z} 10.1953
attach_object_to_car 160@ {handle} 154@(50@,3i) {xOffset} 0.0 {yOffset} 0.4 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
return 

:MANSIO2_27119
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_27141
return 

:MANSIO2_27141
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_27504 {caseNum1} 0 {caseLabel1} @MANSIO2_27204 {caseNum2} 1 {caseLabel2} @MANSIO2_27280 {caseNum3} 2 {caseLabel3} @MANSIO2_27365 {caseNum4} 3 {caseLabel4} @MANSIO2_27450 {caseNum5} 4 {caseLabel5} @MANSIO2_27486 {caseNum6} 5 {caseLabel6} @MANSIO2_27468 {caseNum7} -1 {caseLabel7} @MANSIO2_27536

:MANSIO2_27204
clear_char_tasks_immediately 131@(52@,6i)
set_char_coordinates 131@(52@,6i) {x} -1423.1379 {y} 493.9279 {z} 2.0391
set_char_heading 131@(52@,6i) {heading} 355.6815
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27536

:MANSIO2_27280
detach_char_from_car 131@(52@,6i)
clear_char_tasks_immediately 131@(52@,6i)
set_char_coordinates 131@(52@,6i) {x} -1394.4771 {y} 500.653 {z} 2.0463
set_char_heading 131@(52@,6i) {heading} 214.6545
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27536

:MANSIO2_27365
detach_char_from_car 131@(52@,6i)
clear_char_tasks_immediately 131@(52@,6i)
set_char_coordinates 131@(52@,6i) {x} -1396.397 {y} 500.5882 {z} 2.0391
set_char_heading 131@(52@,6i) {heading} 233.6078
183@(52@,6i) = 27
269@(52@,6i) = 1
goto @MANSIO2_27536

:MANSIO2_27450
183@(52@,6i) = 14
goto @MANSIO2_27536

:MANSIO2_27468
183@(52@,6i) = 6
goto @MANSIO2_27536

:MANSIO2_27486
183@(52@,6i) = 14
goto @MANSIO2_27536

:MANSIO2_27504
write_debug "UNKNOWN_GUARD_FOR_ACTIVATION"

:MANSIO2_27536
if 
  52@ <> 5
goto_if_false @MANSIO2_27613
give_weapon_to_char 131@(52@,6i) {weaponType} WeaponType.M4 {ammo} 300
set_current_char_weapon 131@(52@,6i) {weaponType} WeaponType.M4
set_char_accuracy 131@(52@,6i) {accuracy} 70
set_char_shoot_rate 131@(52@,6i) {rate} 70
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 181@

:MANSIO2_27613
return 

:MANSIO2_27615
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_27637
return 

:MANSIO2_27637
switch_start 52@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_27908 {caseNum1} 0 {caseLabel1} @MANSIO2_27700 {caseNum2} 1 {caseLabel2} @MANSIO2_27746 {caseNum3} 2 {caseLabel3} @MANSIO2_27792 {caseNum4} 5 {caseLabel4} @MANSIO2_27862 {caseNum5} -1 {caseLabel5} @MANSIO2_27939 {caseNum6} -1 {caseLabel6} @MANSIO2_27939 {caseNum7} -1 {caseLabel7} @MANSIO2_27939

:MANSIO2_27700
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1348.171 {y} 498.9987 {z} 10.1953 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 7
goto @MANSIO2_27939

:MANSIO2_27746
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1340.658 {y} 500.8229 {z} 17.2266 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 7
goto @MANSIO2_27939

:MANSIO2_27792
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1289.705 {y} 489.1904 {z} 10.2026 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 12
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
goto @MANSIO2_27939

:MANSIO2_27862
task_go_straight_to_coord 131@(52@,6i) {x} -1445.235 {y} 501.5114 {z} 17.2266 {speed} MoveState.Walk {time} -2
183@(52@,6i) = 7
goto @MANSIO2_27939

:MANSIO2_27908
write_debug "UNKNOWN_GUARD_FOR_WALK_HOME"

:MANSIO2_27939
return 

:MANSIO2_27941
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_27963
return 

:MANSIO2_27963
switch_start 52@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28250 {caseNum1} 0 {caseLabel1} @MANSIO2_28026 {caseNum2} 1 {caseLabel2} @MANSIO2_28096 {caseNum3} 5 {caseLabel3} @MANSIO2_28180 {caseNum4} -1 {caseLabel4} @MANSIO2_28284 {caseNum5} -1 {caseLabel5} @MANSIO2_28284 {caseNum6} -1 {caseLabel6} @MANSIO2_28284 {caseNum7} -1 {caseLabel7} @MANSIO2_28284

:MANSIO2_28026
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1348.171 {y} 498.9987 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_28089
183@(52@,6i) = 10

:MANSIO2_28089
goto @MANSIO2_28284

:MANSIO2_28096
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1340.658 {y} 500.8229 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_28173
task_achieve_heading 131@(52@,6i) {heading} 303.0599
183@(52@,6i) = 27

:MANSIO2_28173
goto @MANSIO2_28284

:MANSIO2_28180
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1435.72 {y} 501.0618 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_28243
183@(52@,6i) = 16

:MANSIO2_28243
goto @MANSIO2_28284

:MANSIO2_28250
write_debug "UNKNOWN_GUARD_FOR_WALKING_HOME"

:MANSIO2_28284
return 

:MANSIO2_28286
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28308
return 

:MANSIO2_28308
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28450 {caseNum1} 0 {caseLabel1} @MANSIO2_28371 {caseNum2} -1 {caseLabel2} @MANSIO2_28476 {caseNum3} -1 {caseLabel3} @MANSIO2_28476 {caseNum4} -1 {caseLabel4} @MANSIO2_28476 {caseNum5} -1 {caseLabel5} @MANSIO2_28476 {caseNum6} -1 {caseLabel6} @MANSIO2_28476 {caseNum7} -1 {caseLabel7} @MANSIO2_28476

:MANSIO2_28371
if 
  not is_char_dead 138@
goto_if_false @MANSIO2_28419
task_chat_with_char 131@(52@,6i) {other} 138@ {leadSpeaker} True {_p4} 1
task_chat_with_char 138@ {other} 131@(52@,6i) {leadSpeaker} False {_p4} 1

:MANSIO2_28419
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 7000
goto @MANSIO2_28476

:MANSIO2_28450
write_debug "UNKNOWN_GUARD_FOR_CHAT"

:MANSIO2_28476
183@(52@,6i) = 9
return 

:MANSIO2_28489
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28511
return 

:MANSIO2_28511
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28615 {caseNum1} 0 {caseLabel1} @MANSIO2_28574 {caseNum2} -1 {caseLabel2} @MANSIO2_28641 {caseNum3} -1 {caseLabel3} @MANSIO2_28641 {caseNum4} -1 {caseLabel4} @MANSIO2_28641 {caseNum5} -1 {caseLabel5} @MANSIO2_28641 {caseNum6} -1 {caseLabel6} @MANSIO2_28641 {caseNum7} -1 {caseLabel7} @MANSIO2_28641

:MANSIO2_28574
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_28608
183@(52@,6i) = 6

:MANSIO2_28608
goto @MANSIO2_28641

:MANSIO2_28615
write_debug "UNKNOWN_GUARD_FOR_CHAT"

:MANSIO2_28641
return 

:MANSIO2_28643
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28665
return 

:MANSIO2_28665
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_28837 {caseNum1} 0 {caseLabel1} @MANSIO2_28728 {caseNum2} -1 {caseLabel2} @MANSIO2_28862 {caseNum3} -1 {caseLabel3} @MANSIO2_28862 {caseNum4} -1 {caseLabel4} @MANSIO2_28862 {caseNum5} -1 {caseLabel5} @MANSIO2_28862 {caseNum6} -1 {caseLabel6} @MANSIO2_28862 {caseNum7} -1 {caseLabel7} @MANSIO2_28862

:MANSIO2_28728
56@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -1348.075 {y} 493.1958 {z} 10.1953 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} -1345.749 {y} 493.6958 {z} 10.2027 {speed} MoveState.Walk {time} -2
task_achieve_heading -1 {heading} 180.0
task_sit_down -1 {time} 99999999
close_sequence_task 56@
perform_sequence_task 131@(52@,6i) {sequence} 56@
clear_sequence_task 56@
183@(52@,6i) = 27
goto @MANSIO2_28862

:MANSIO2_28837
write_debug "UNKNOWN_GUARD_FOR_SIT"

:MANSIO2_28862
return 

:MANSIO2_28864
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_28886
return 

:MANSIO2_28886
switch_start 52@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29074 {caseNum1} 1 {caseLabel1} @MANSIO2_28974 {caseNum2} 2 {caseLabel2} @MANSIO2_28949 {caseNum3} 3 {caseLabel3} @MANSIO2_28999 {caseNum4} 4 {caseLabel4} @MANSIO2_29049 {caseNum5} 5 {caseLabel5} @MANSIO2_29024 {caseNum6} -1 {caseLabel6} @MANSIO2_29102 {caseNum7} -1 {caseLabel7} @MANSIO2_29102

:MANSIO2_28949
gosub @MANSIO2_32951
183@(52@,6i) = 12
goto @MANSIO2_29102

:MANSIO2_28974
gosub @MANSIO2_33750
183@(52@,6i) = 12
goto @MANSIO2_29102

:MANSIO2_28999
gosub @MANSIO2_34441
183@(52@,6i) = 12
goto @MANSIO2_29102

:MANSIO2_29024
gosub @MANSIO2_35240
183@(52@,6i) = 12
goto @MANSIO2_29102

:MANSIO2_29049
gosub @MANSIO2_35931
183@(52@,6i) = 12
goto @MANSIO2_29102

:MANSIO2_29074
write_debug "UNKNOWN_GUARD_FOR_WANDER"

:MANSIO2_29102
return 

:MANSIO2_29104
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29126
return 

:MANSIO2_29126
switch_start 52@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_29694 {caseNum1} 1 {caseLabel1} @MANSIO2_29290 {caseNum2} 2 {caseLabel2} @MANSIO2_29189 {caseNum3} 3 {caseLabel3} @MANSIO2_29391 {caseNum4} 4 {caseLabel4} @MANSIO2_29593 {caseNum5} 5 {caseLabel5} @MANSIO2_29492 {caseNum6} -1 {caseLabel6} @MANSIO2_29725 {caseNum7} -1 {caseLabel7} @MANSIO2_29725

:MANSIO2_29189
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29283
gosub @MANSIO2_33281
if 
  73@ == 1
goto_if_false @MANSIO2_29283
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29283
goto @MANSIO2_29725

:MANSIO2_29290
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29384
gosub @MANSIO2_34045
if 
  73@ == 1
goto_if_false @MANSIO2_29384
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29384
goto @MANSIO2_29725

:MANSIO2_29391
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29485
gosub @MANSIO2_34771
if 
  73@ == 1
goto_if_false @MANSIO2_29485
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29485
goto @MANSIO2_29725

:MANSIO2_29492
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29586
gosub @MANSIO2_35535
if 
  73@ == 1
goto_if_false @MANSIO2_29586
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29586
goto @MANSIO2_29725

:MANSIO2_29593
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29687
gosub @MANSIO2_36226
if 
  73@ == 1
goto_if_false @MANSIO2_29687
50@ = generate_random_int_in_range 5000 {max} 7000
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
add_int_lvar_to_int_lvar 198@(52@,6i) += 50@
183@(52@,6i) = 13

:MANSIO2_29687
goto @MANSIO2_29725

:MANSIO2_29694
write_debug "UNKNOWN_GUARD_FOR_WANDERING"

:MANSIO2_29725
return 

:MANSIO2_29727
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29749
return 

:MANSIO2_29749
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_29783
183@(52@,6i) = 11

:MANSIO2_29783
return 

:MANSIO2_29785
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29807
return 

:MANSIO2_29807
if 
  is_char_in_any_plane 131@(52@,6i)
goto_if_false @MANSIO2_29836
task_leave_any_car 131@(52@,6i)

:MANSIO2_29836
183@(52@,6i) = 15
return 

:MANSIO2_29849
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_29871
return 

:MANSIO2_29871
if 
  is_char_in_any_plane 131@(52@,6i)
goto_if_false @MANSIO2_29893
return 

:MANSIO2_29893
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30003 {caseNum1} 3 {caseLabel1} @MANSIO2_29956 {caseNum2} 4 {caseLabel2} @MANSIO2_29985 {caseNum3} -1 {caseLabel3} @MANSIO2_30038 {caseNum4} -1 {caseLabel4} @MANSIO2_30038 {caseNum5} -1 {caseLabel5} @MANSIO2_30038 {caseNum6} -1 {caseLabel6} @MANSIO2_30038 {caseNum7} -1 {caseLabel7} @MANSIO2_30038

:MANSIO2_29956
183@(52@,6i) = 11
269@(52@,6i) = 1
goto @MANSIO2_30038

:MANSIO2_29985
183@(52@,6i) = 27
goto @MANSIO2_30038

:MANSIO2_30003
write_debug "UNKNOWN_GUARD_FOR_EXITING_PLANE"

:MANSIO2_30038
return 

:MANSIO2_30040
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30062
return 

:MANSIO2_30062
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30435 {caseNum1} 5 {caseLabel1} @MANSIO2_30125 {caseNum2} -1 {caseLabel2} @MANSIO2_30469 {caseNum3} -1 {caseLabel3} @MANSIO2_30469 {caseNum4} -1 {caseLabel4} @MANSIO2_30469 {caseNum5} -1 {caseLabel5} @MANSIO2_30469 {caseNum6} -1 {caseLabel6} @MANSIO2_30469 {caseNum7} -1 {caseLabel7} @MANSIO2_30469

:MANSIO2_30125
if 
  is_car_dead 142@
goto_if_false @MANSIO2_30168
183@(52@,6i) = 11
clear_look_at 131@(52@,6i)
goto @MANSIO2_30428

:MANSIO2_30168
if 
  not is_playback_going_on_for_car 142@
goto_if_false @MANSIO2_30211
183@(52@,6i) = 11
clear_look_at 131@(52@,6i)
goto @MANSIO2_30428

:MANSIO2_30211
57@, 58@, 59@ = get_char_coordinates 131@(52@,6i)
set_lvar_float_to_lvar_float 67@ = 57@
set_lvar_float_to_lvar_float 68@ = 58@
57@, 58@, 59@ = get_car_coordinates 142@
set_lvar_float_to_lvar_float 64@ = 57@
set_lvar_float_to_lvar_float 65@ = 58@
set_lvar_float_to_lvar_float 57@ = 64@
sub_float_lvar_from_float_lvar 57@ -= 67@
set_lvar_float_to_lvar_float 58@ = 65@
sub_float_lvar_from_float_lvar 58@ -= 68@
63@ = get_heading_from_vector_2d 57@ {y} 58@
task_achieve_heading 131@(52@,6i) {heading} 63@
40@ = get_script_task_status 131@(52@,6i) {taskId} 1471
if 
  not is_int_lvar_equal_to_constant 40@ == 1
goto_if_false @MANSIO2_30393
if 
  not is_char_dead 134@
goto_if_false @MANSIO2_30393
task_look_at_char 131@(52@,6i) {target} 134@ {time} -2

:MANSIO2_30393
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
183@(52@,6i) = 17

:MANSIO2_30428
goto @MANSIO2_30469

:MANSIO2_30435
write_debug "UNKNOWN_GUARD_FOR_WATCH_PLANES"

:MANSIO2_30469
return 

:MANSIO2_30471
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30493
return 

:MANSIO2_30493
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30597 {caseNum1} 5 {caseLabel1} @MANSIO2_30556 {caseNum2} -1 {caseLabel2} @MANSIO2_30633 {caseNum3} -1 {caseLabel3} @MANSIO2_30633 {caseNum4} -1 {caseLabel4} @MANSIO2_30633 {caseNum5} -1 {caseLabel5} @MANSIO2_30633 {caseNum6} -1 {caseLabel6} @MANSIO2_30633 {caseNum7} -1 {caseLabel7} @MANSIO2_30633

:MANSIO2_30556
if 
  is_int_lvar_greater_than_int_lvar 46@ > 198@(52@,6i)
goto_if_false @MANSIO2_30590
183@(52@,6i) = 16

:MANSIO2_30590
goto @MANSIO2_30633

:MANSIO2_30597
write_debug "UNKNOWN_GUARD_FOR_WATCHING_PLANE"

:MANSIO2_30633
return 

:MANSIO2_30635
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30657
return 

:MANSIO2_30657
if 
  is_char_in_any_car 131@(52@,6i)
goto_if_false @MANSIO2_30679
return 

:MANSIO2_30679
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_30833 {caseNum1} 4 {caseLabel1} @MANSIO2_30742 {caseNum2} -1 {caseLabel2} @MANSIO2_30863 {caseNum3} -1 {caseLabel3} @MANSIO2_30863 {caseNum4} -1 {caseLabel4} @MANSIO2_30863 {caseNum5} -1 {caseLabel5} @MANSIO2_30863 {caseNum6} -1 {caseLabel6} @MANSIO2_30863 {caseNum7} -1 {caseLabel7} @MANSIO2_30863

:MANSIO2_30742
set_char_coordinates 131@(52@,6i) {x} -1413.004 {y} 508.974 {z} 10.1953
183@(52@,6i) = 27
269@(52@,6i) = 1
add_blip_for_char 131@(52@,6i) {var_handle} 173@(52@,6i)
change_blip_display 173@(52@,6i) {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 173@(52@,6i) {state} True
goto @MANSIO2_30863

:MANSIO2_30833
write_debug "UNKNOWN_GUARD_FOR_TELEPORT"

:MANSIO2_30863
return 

:MANSIO2_30865
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_30887
return 

:MANSIO2_30887
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_31226 {caseNum1} 0 {caseLabel1} @MANSIO2_30950 {caseNum2} 1 {caseLabel2} @MANSIO2_30996 {caseNum3} 2 {caseLabel3} @MANSIO2_31042 {caseNum4} 3 {caseLabel4} @MANSIO2_31088 {caseNum5} 4 {caseLabel5} @MANSIO2_31180 {caseNum6} 5 {caseLabel6} @MANSIO2_31134 {caseNum7} -1 {caseLabel7} @MANSIO2_31258

:MANSIO2_30950
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1324.158 {y} 508.4572 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31258

:MANSIO2_30996
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1348.061 {y} 492.4249 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31258

:MANSIO2_31042
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1299.653 {y} 509.2915 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31258

:MANSIO2_31088
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1434.212 {y} 508.0886 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31258

:MANSIO2_31134
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1418.207 {y} 492.2773 {z} 17.2266 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31258

:MANSIO2_31180
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1409.1541 {y} 506.4637 {z} 10.1953 {speed} MoveState.Run {time} -2
183@(52@,6i) = 20
goto @MANSIO2_31258

:MANSIO2_31226
write_debug "UNKNOWN_GUARD_FOR_GOTO_ALERT"

:MANSIO2_31258
return 

:MANSIO2_31260
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_31282
return 

:MANSIO2_31282
switch_start 52@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_31915 {caseNum1} 0 {caseLabel1} @MANSIO2_31345 {caseNum2} 1 {caseLabel2} @MANSIO2_31440 {caseNum3} 2 {caseLabel3} @MANSIO2_31535 {caseNum4} 3 {caseLabel4} @MANSIO2_31630 {caseNum5} 4 {caseLabel5} @MANSIO2_31820 {caseNum6} 5 {caseLabel6} @MANSIO2_31725 {caseNum7} -1 {caseLabel7} @MANSIO2_31951

:MANSIO2_31345
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1324.158 {y} 508.4572 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31433
task_achieve_heading 131@(52@,6i) {heading} 98.0823
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31433
goto @MANSIO2_31951

:MANSIO2_31440
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1348.061 {y} 492.4249 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31528
task_achieve_heading 131@(52@,6i) {heading} 0.0
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31528
goto @MANSIO2_31951

:MANSIO2_31535
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1299.653 {y} 509.2915 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31623
task_achieve_heading 131@(52@,6i) {heading} 122.1536
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31623
goto @MANSIO2_31951

:MANSIO2_31630
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1434.212 {y} 508.0886 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31718
task_achieve_heading 131@(52@,6i) {heading} 261.6837
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31718
goto @MANSIO2_31951

:MANSIO2_31725
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1418.207 {y} 492.2773 {z} 17.2266 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31813
task_achieve_heading 131@(52@,6i) {heading} 304.1052
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31813
goto @MANSIO2_31951

:MANSIO2_31820
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1409.1541 {y} 506.4637 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_31908
task_achieve_heading 131@(52@,6i) {heading} 270.2725
183@(52@,6i) = 21
198@(52@,6i) = 0

:MANSIO2_31908
goto @MANSIO2_31951

:MANSIO2_31915
write_debug "UNKNOWN_GUARD_FOR_GOING_TO_ALERT"

:MANSIO2_31951
gosub @MANSIO2_24305
return 

:MANSIO2_31960
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_31982
return 

:MANSIO2_31982
40@ = get_script_task_status 131@(52@,6i) {taskId} 1492
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32048
set_char_kinda_stay_in_same_place 131@(52@,6i) {state} True
183@(52@,6i) = 22
198@(52@,6i) = 0

:MANSIO2_32048
gosub @MANSIO2_24305
return 

:MANSIO2_32057
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32079
return 

:MANSIO2_32079
if 
  is_int_lvar_greater_than_int_lvar 198@(52@,6i) > 46@
goto_if_false @MANSIO2_32104
return 

:MANSIO2_32104
40@ = get_script_task_status 131@(52@,6i) {taskId} 1588
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32180
task_kill_char_on_foot_while_ducking 131@(52@,6i) {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 60
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 1000

:MANSIO2_32180
gosub @MANSIO2_24305
return 

:MANSIO2_32189
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32211
return 

:MANSIO2_32211
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 182@
set_char_kinda_stay_in_same_place 131@(52@,6i) {state} False
183@(52@,6i) = 26
275@(52@,6i) = 1
198@(52@,6i) = 0
return 

:MANSIO2_32269
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32291
return 

:MANSIO2_32291
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_32389 {caseNum1} 0 {caseLabel1} @MANSIO2_32354 {caseNum2} -1 {caseLabel2} @MANSIO2_32421 {caseNum3} -1 {caseLabel3} @MANSIO2_32421 {caseNum4} -1 {caseLabel4} @MANSIO2_32421 {caseNum5} -1 {caseLabel5} @MANSIO2_32421 {caseNum6} -1 {caseLabel6} @MANSIO2_32421 {caseNum7} -1 {caseLabel7} @MANSIO2_32421

:MANSIO2_32354
task_go_straight_to_coord 131@(52@,6i) {x} -1431.944 {y} 500.2454 {z} 2.0391 {speed} MoveState.Run {time} -2
goto @MANSIO2_32421

:MANSIO2_32389
write_debug "UNKNOWN_GUARD_FOR_RUN_ATTACK"

:MANSIO2_32421
set_char_decision_maker 131@(52@,6i) {handleOrTemplate} 182@
183@(52@,6i) = 25
275@(52@,6i) = 1
198@(52@,6i) = 0
return 

:MANSIO2_32468
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32490
return 

:MANSIO2_32490
if 
  267@ == 0
goto_if_false @MANSIO2_32560
if 
  is_char_shooting 131@(52@,6i)
goto_if_false @MANSIO2_32560
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_32560
213@ = 3

:MANSIO2_32560
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_32704 {caseNum1} 0 {caseLabel1} @MANSIO2_32623 {caseNum2} -1 {caseLabel2} @MANSIO2_32740 {caseNum3} -1 {caseLabel3} @MANSIO2_32740 {caseNum4} -1 {caseLabel4} @MANSIO2_32740 {caseNum5} -1 {caseLabel5} @MANSIO2_32740 {caseNum6} -1 {caseLabel6} @MANSIO2_32740 {caseNum7} -1 {caseLabel7} @MANSIO2_32740

:MANSIO2_32623
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1431.944 {y} 500.2454 {z} 2.0391 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_32697
198@(52@,6i) = 0
183@(52@,6i) = 26

:MANSIO2_32697
goto @MANSIO2_32740

:MANSIO2_32704
write_debug "UNKNOWN_GUARD_FOR_RUNNING_ATTACK"

:MANSIO2_32740
gosub @MANSIO2_24305
return 

:MANSIO2_32749
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32771
return 

:MANSIO2_32771
if 
  267@ == 0
goto_if_false @MANSIO2_32841
if 
  is_char_shooting 131@(52@,6i)
goto_if_false @MANSIO2_32841
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_32841
213@ = 3

:MANSIO2_32841
if 
  is_int_lvar_greater_than_int_lvar 198@(52@,6i) > 46@
goto_if_false @MANSIO2_32866
return 

:MANSIO2_32866
40@ = get_script_task_status 131@(52@,6i) {taskId} 1588
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_32942
task_kill_char_on_foot_while_ducking 131@(52@,6i) {target} $scplayer {flags} 4 {actionDelay} 3000 {actionChance} 60
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 1000

:MANSIO2_32942
gosub @MANSIO2_24305
return 

:MANSIO2_32951
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_32973
return 

:MANSIO2_32973
50@ = generate_random_int_in_range 0 {max} 6
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_33255 {caseNum1} 0 {caseLabel1} @MANSIO2_33045 {caseNum2} 1 {caseLabel2} @MANSIO2_33080 {caseNum3} 2 {caseLabel3} @MANSIO2_33115 {caseNum4} 3 {caseLabel4} @MANSIO2_33150 {caseNum5} 4 {caseLabel5} @MANSIO2_33185 {caseNum6} 5 {caseLabel6} @MANSIO2_33220 {caseNum7} -1 {caseLabel7} @MANSIO2_33255

:MANSIO2_33045
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1289.705 {y} 489.1904 {z} 10.2026 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33255

:MANSIO2_33080
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1325.661 {y} 498.4251 {z} 10.2026 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33255

:MANSIO2_33115
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1302.248 {y} 504.2907 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33255

:MANSIO2_33150
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1292.353 {y} 494.8264 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33255

:MANSIO2_33185
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1301.599 {y} 509.8161 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33255

:MANSIO2_33220
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1294.257 {y} 504.8536 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_33255

:MANSIO2_33255
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_33281
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_33310
return 

:MANSIO2_33310
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1289.705 {y} 489.1904 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33383
task_achieve_heading 131@(52@,6i) {heading} 155.3066
73@ = 1

:MANSIO2_33383
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1325.661 {y} 498.4251 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33456
task_achieve_heading 131@(52@,6i) {heading} 77.7535
73@ = 1

:MANSIO2_33456
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1302.248 {y} 504.2907 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33529
task_achieve_heading 131@(52@,6i) {heading} 275.9547
73@ = 1

:MANSIO2_33529
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1292.353 {y} 494.8264 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33602
task_achieve_heading 131@(52@,6i) {heading} 248.83
73@ = 1

:MANSIO2_33602
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1301.599 {y} 509.8161 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33675
task_achieve_heading 131@(52@,6i) {heading} 14.841
73@ = 1

:MANSIO2_33675
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1294.257 {y} 504.8536 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_33748
task_achieve_heading 131@(52@,6i) {heading} 157.6618
73@ = 1

:MANSIO2_33748
return 

:MANSIO2_33750
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_33772
return 

:MANSIO2_33772
50@ = generate_random_int_in_range 0 {max} 5
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_34019 {caseNum1} 0 {caseLabel1} @MANSIO2_33844 {caseNum2} 1 {caseLabel2} @MANSIO2_33879 {caseNum3} 2 {caseLabel3} @MANSIO2_33914 {caseNum4} 3 {caseLabel4} @MANSIO2_33949 {caseNum5} 4 {caseLabel5} @MANSIO2_33984 {caseNum6} -1 {caseLabel6} @MANSIO2_34019 {caseNum7} -1 {caseLabel7} @MANSIO2_34019

:MANSIO2_33844
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1311.834 {y} 489.4401 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34019

:MANSIO2_33879
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1298.359 {y} 512.5721 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34019

:MANSIO2_33914
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1247.3521 {y} 502.8824 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34019

:MANSIO2_33949
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1359.656 {y} 512.5123 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34019

:MANSIO2_33984
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1349.606 {y} 493.5821 {z} 17.2279 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34019

:MANSIO2_34019
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_34045
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_34074
return 

:MANSIO2_34074
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1311.834 {y} 489.4401 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34147
task_achieve_heading 131@(52@,6i) {heading} 180.0
73@ = 1

:MANSIO2_34147
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1298.359 {y} 512.5721 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34220
task_achieve_heading 131@(52@,6i) {heading} 0.0
73@ = 1

:MANSIO2_34220
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1247.3521 {y} 502.8824 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34293
task_achieve_heading 131@(52@,6i) {heading} 270.0
73@ = 1

:MANSIO2_34293
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1359.656 {y} 512.5123 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34366
task_achieve_heading 131@(52@,6i) {heading} 0.0
73@ = 1

:MANSIO2_34366
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1349.606 {y} 493.5821 {z} 17.2279 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34439
task_achieve_heading 131@(52@,6i) {heading} 80.0
73@ = 1

:MANSIO2_34439
return 

:MANSIO2_34441
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_34463
return 

:MANSIO2_34463
50@ = generate_random_int_in_range 0 {max} 6
switch_start 50@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_34745 {caseNum1} 0 {caseLabel1} @MANSIO2_34535 {caseNum2} 1 {caseLabel2} @MANSIO2_34570 {caseNum3} 2 {caseLabel3} @MANSIO2_34605 {caseNum4} 3 {caseLabel4} @MANSIO2_34640 {caseNum5} 4 {caseLabel5} @MANSIO2_34675 {caseNum6} 5 {caseLabel6} @MANSIO2_34710 {caseNum7} -1 {caseLabel7} @MANSIO2_34745

:MANSIO2_34535
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1444.29 {y} 496.4273 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34745

:MANSIO2_34570
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1449.621 {y} 506.0983 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34745

:MANSIO2_34605
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1424.2531 {y} 511.1483 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34745

:MANSIO2_34640
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1411.083 {y} 511.8316 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34745

:MANSIO2_34675
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1417.342 {y} 505.5704 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34745

:MANSIO2_34710
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1431.498 {y} 501.8023 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_34745

:MANSIO2_34745
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_34771
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_34800
return 

:MANSIO2_34800
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1444.29 {y} 496.4273 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34873
task_achieve_heading 131@(52@,6i) {heading} 56.0502
73@ = 1

:MANSIO2_34873
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1449.621 {y} 506.0983 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_34946
task_achieve_heading 131@(52@,6i) {heading} 123.3438
73@ = 1

:MANSIO2_34946
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1424.2531 {y} 511.1483 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35019
task_achieve_heading 131@(52@,6i) {heading} 318.9861
73@ = 1

:MANSIO2_35019
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1411.083 {y} 511.8316 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35092
task_achieve_heading 131@(52@,6i) {heading} 28.0647
73@ = 1

:MANSIO2_35092
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1417.342 {y} 505.5704 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35165
task_achieve_heading 131@(52@,6i) {heading} 139.4299
73@ = 1

:MANSIO2_35165
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1431.498 {y} 501.8023 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35238
task_achieve_heading 131@(52@,6i) {heading} 242.7025
73@ = 1

:MANSIO2_35238
return 

:MANSIO2_35240
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_35262
return 

:MANSIO2_35262
50@ = generate_random_int_in_range 0 {max} 5
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_35509 {caseNum1} 0 {caseLabel1} @MANSIO2_35334 {caseNum2} 1 {caseLabel2} @MANSIO2_35369 {caseNum3} 2 {caseLabel3} @MANSIO2_35404 {caseNum4} 3 {caseLabel4} @MANSIO2_35439 {caseNum5} 4 {caseLabel5} @MANSIO2_35474 {caseNum6} -1 {caseLabel6} @MANSIO2_35509 {caseNum7} -1 {caseLabel7} @MANSIO2_35509

:MANSIO2_35334
task_go_straight_to_coord 131@(52@,6i) {x} -1445.235 {y} 501.5114 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35509

:MANSIO2_35369
task_go_straight_to_coord 131@(52@,6i) {x} -1419.48 {y} 510.346 {z} 17.2295 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35509

:MANSIO2_35404
task_go_straight_to_coord 131@(52@,6i) {x} -1412.218 {y} 489.4574 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35509

:MANSIO2_35439
task_go_straight_to_coord 131@(52@,6i) {x} -1395.9351 {y} 498.2455 {z} 17.2266 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35509

:MANSIO2_35474
task_go_straight_to_coord 131@(52@,6i) {x} -1373.579 {y} 512.998 {z} 17.2295 {speed} MoveState.Walk {time} -2
goto @MANSIO2_35509

:MANSIO2_35509
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_35535
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_35564
return 

:MANSIO2_35564
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1445.235 {y} 501.5114 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35637
task_achieve_heading 131@(52@,6i) {heading} 90.0
73@ = 1

:MANSIO2_35637
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1419.48 {y} 510.346 {z} 17.2295 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35710
task_achieve_heading 131@(52@,6i) {heading} 0.0
73@ = 1

:MANSIO2_35710
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1412.218 {y} 489.4574 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35783
task_achieve_heading 131@(52@,6i) {heading} 180.0
73@ = 1

:MANSIO2_35783
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1395.9351 {y} 498.2455 {z} 17.2266 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35856
task_achieve_heading 131@(52@,6i) {heading} 194.6539
73@ = 1

:MANSIO2_35856
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1373.579 {y} 512.998 {z} 17.2295 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_35929
task_achieve_heading 131@(52@,6i) {heading} 326.651
73@ = 1

:MANSIO2_35929
return 

:MANSIO2_35931
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_35953
return 

:MANSIO2_35953
50@ = generate_random_int_in_range 0 {max} 5
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_36200 {caseNum1} 0 {caseLabel1} @MANSIO2_36025 {caseNum2} 1 {caseLabel2} @MANSIO2_36060 {caseNum3} 2 {caseLabel3} @MANSIO2_36095 {caseNum4} 3 {caseLabel4} @MANSIO2_36130 {caseNum5} 4 {caseLabel5} @MANSIO2_36165 {caseNum6} -1 {caseLabel6} @MANSIO2_36200 {caseNum7} -1 {caseLabel7} @MANSIO2_36200

:MANSIO2_36025
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1411.714 {y} 512.2815 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36200

:MANSIO2_36060
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1406.451 {y} 502.476 {z} 10.1953 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36200

:MANSIO2_36095
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1366.03 {y} 505.7779 {z} 10.2026 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36200

:MANSIO2_36130
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1366.484 {y} 516.8234 {z} 10.1797 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36200

:MANSIO2_36165
task_follow_path_nodes_to_coord 131@(52@,6i) {x} -1344.821 {y} 499.0515 {z} 10.2027 {speed} MoveState.Walk {time} -2
goto @MANSIO2_36200

:MANSIO2_36200
set_lvar_int_to_lvar_int 198@(52@,6i) = 46@
198@(52@,6i) += 5000
return 

:MANSIO2_36226
73@ = 0
if 
  is_char_dead 131@(52@,6i)
goto_if_false @MANSIO2_36255
return 

:MANSIO2_36255
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1411.714 {y} 512.2815 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36328
task_achieve_heading 131@(52@,6i) {heading} 24.5074
73@ = 1

:MANSIO2_36328
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1406.451 {y} 502.476 {z} 10.1953 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36401
task_achieve_heading 131@(52@,6i) {heading} 236.3499
73@ = 1

:MANSIO2_36401
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1366.03 {y} 505.7779 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36474
task_achieve_heading 131@(52@,6i) {heading} 180.0
73@ = 1

:MANSIO2_36474
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1366.484 {y} 516.8234 {z} 10.1797 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36547
task_achieve_heading 131@(52@,6i) {heading} 341.4966
73@ = 1

:MANSIO2_36547
if 
  locate_char_any_means_3d 131@(52@,6i) {x} -1344.821 {y} 499.0515 {z} 10.2027 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_36620
task_achieve_heading 131@(52@,6i) {heading} 192.1196
73@ = 1

:MANSIO2_36620
return 

:MANSIO2_36622
52@ = 0

:MANSIO2_36629
if and
  189@(52@,2i) <> -1
  189@(52@,2i) <> -2
goto_if_false @MANSIO2_36700
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_36700
189@(52@,2i) = -2
gosub @MANSIO2_39380

:MANSIO2_36700
52@ += 1
  52@ >= 2
goto_if_false @MANSIO2_36629
52@ = 0

:MANSIO2_36728
gosub @MANSIO2_37215
switch_start 189@(52@,2i) {numCases} 19 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_37170 {caseNum1} -2 {caseLabel1} @MANSIO2_36932 {caseNum2} -1 {caseLabel2} @MANSIO2_36932 {caseNum3} 0 {caseLabel3} @MANSIO2_36939 {caseNum4} 1 {caseLabel4} @MANSIO2_36981 {caseNum5} 2 {caseLabel5} @MANSIO2_36995 {caseNum6} 3 {caseLabel6} @MANSIO2_37009 {caseNum7} 4 {caseLabel7} @MANSIO2_37023
switch_continued 5 {caseLabel1} @MANSIO2_37037 {caseNum2} 6 {caseLabel2} @MANSIO2_36953 {caseNum3} 7 {caseLabel3} @MANSIO2_36967 {caseNum4} 8 {caseLabel4} @MANSIO2_37051 {caseNum5} 9 {caseLabel5} @MANSIO2_37065 {caseNum6} 10 {caseLabel6} @MANSIO2_37079 {caseNum7} 11 {caseLabel7} @MANSIO2_37093 {caseNum8} 12 {caseLabel8} @MANSIO2_37107 {caseNum9} 13 {caseLabel9} @MANSIO2_37121
switch_continued 14 {caseLabel1} @MANSIO2_37135 {caseNum2} 15 {caseLabel2} @MANSIO2_37149 {caseNum3} 16 {caseLabel3} @MANSIO2_37163 {caseNum4} -1 {caseLabel4} @MANSIO2_37192 {caseNum5} -1 {caseLabel5} @MANSIO2_37192 {caseNum6} -1 {caseLabel6} @MANSIO2_37192 {caseNum7} -1 {caseLabel7} @MANSIO2_37192 {caseNum8} -1 {caseLabel8} @MANSIO2_37192 {caseNum9} -1 {caseLabel9} @MANSIO2_37192

:MANSIO2_36932
goto @MANSIO2_37192

:MANSIO2_36939
gosub @MANSIO2_39943
goto @MANSIO2_37192

:MANSIO2_36953
gosub @MANSIO2_40174
goto @MANSIO2_37192

:MANSIO2_36967
gosub @MANSIO2_40332
goto @MANSIO2_37192

:MANSIO2_36981
gosub @MANSIO2_40493
goto @MANSIO2_37192

:MANSIO2_36995
gosub @MANSIO2_40703
goto @MANSIO2_37192

:MANSIO2_37009
gosub @MANSIO2_40973
goto @MANSIO2_37192

:MANSIO2_37023
gosub @MANSIO2_41141
goto @MANSIO2_37192

:MANSIO2_37037
gosub @MANSIO2_41464
goto @MANSIO2_37192

:MANSIO2_37051
gosub @MANSIO2_41522
goto @MANSIO2_37192

:MANSIO2_37065
gosub @MANSIO2_41905
goto @MANSIO2_37192

:MANSIO2_37079
gosub @MANSIO2_42419
goto @MANSIO2_37192

:MANSIO2_37093
gosub @MANSIO2_42614
goto @MANSIO2_37192

:MANSIO2_37107
gosub @MANSIO2_43052
goto @MANSIO2_37192

:MANSIO2_37121
gosub @MANSIO2_43413
goto @MANSIO2_37192

:MANSIO2_37135
gosub @MANSIO2_43865
goto @MANSIO2_37192

:MANSIO2_37149
gosub @MANSIO2_44343
goto @MANSIO2_37192

:MANSIO2_37163
goto @MANSIO2_37192

:MANSIO2_37170
write_debug "UNKNOWN_MECHANICAI"

:MANSIO2_37192
52@ += 1
  52@ >= 2
goto_if_false @MANSIO2_36728
return 

:MANSIO2_37215
if 
  283@ == 0
goto_if_false @MANSIO2_37235
return 

:MANSIO2_37235
if 
  267@ == 1
goto_if_false @MANSIO2_37299
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37297
189@(52@,2i) = 8
281@(52@,2i) = 1

:MANSIO2_37297
return 

:MANSIO2_37299
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37505
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_37505
if 
  has_char_spotted_char_in_front 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_37505
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
60@, 61@, 62@ = get_char_coordinates $scplayer
72@ = get_distance_between_coords_3d 57@ {fromY} 58@ {fromZ} 59@ {toX} 60@ {toY} 61@ {toZ} 62@
if 
  15.0 > 72@
goto_if_false @MANSIO2_37505
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37485
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_37485
281@(52@,2i) = 1
gosub @MANSIO2_38806
return 

:MANSIO2_37505
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_37641
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_37641
if 
  can_char_see_dead_char 137@(52@,2i) {pedType} PedType.Mission2
goto_if_false @MANSIO2_37641
189@(52@,2i) = 12
281@(52@,2i) = 1
print_now 'MAN2_48' {time} 7000 {flag} 1
gosub @MANSIO2_38806
if 
  213@ == 0
goto_if_false @MANSIO2_37639
213@ = 4

:MANSIO2_37639
return 

:MANSIO2_37641
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_38012
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_38012
if 
  284@ == 1
goto_if_false @MANSIO2_37791
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37746
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_37746
281@(52@,2i) = 1
gosub @MANSIO2_38806
if 
  213@ == 0
goto_if_false @MANSIO2_37789
213@ = 2

:MANSIO2_37789
return 

:MANSIO2_37791
if 
  285@ == 1
goto_if_false @MANSIO2_38012
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 137@(52@,2i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_38012
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_37926
71@ *= -1.0

:MANSIO2_37926
if 
  5.0 > 71@
goto_if_false @MANSIO2_38012
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_37992
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_37992
281@(52@,2i) = 1
gosub @MANSIO2_38806
return 

:MANSIO2_38012
if 
  281@(52@,2i) == 0
goto_if_false @MANSIO2_38277
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_38277
if 
  is_char_in_any_car 137@(52@,2i)
goto_if_false @MANSIO2_38189
$car = store_car_char_is_in_no_save 137@(52@,2i)
if or
  has_car_been_damaged_by_char $car {handle} $scplayer
  has_char_been_damaged_by_char 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_38182
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_38162
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_38162
281@(52@,2i) = 1
gosub @MANSIO2_38806
return 

:MANSIO2_38182
goto @MANSIO2_38277

:MANSIO2_38189
if 
  has_char_been_damaged_by_char 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_38277
189@(52@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_38257
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_38257
281@(52@,2i) = 1
gosub @MANSIO2_38806
return 

:MANSIO2_38277
return 

:MANSIO2_38279
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_38301
return 

:MANSIO2_38301
if 
  283@ == 0
goto_if_false @MANSIO2_38321
return 

:MANSIO2_38321
73@ = 0
if 
  has_char_spotted_char_in_front 137@(52@,2i) {handle} $scplayer
goto_if_false @MANSIO2_38358
73@ = 1

:MANSIO2_38358
if 
  73@ == 0
goto_if_false @MANSIO2_38539
if 
  284@ == 1
goto_if_false @MANSIO2_38539
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 137@(52@,2i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  75.0 > 70@
goto_if_false @MANSIO2_38539
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_38511
71@ *= -1.0

:MANSIO2_38511
if 
  5.0 > 71@
goto_if_false @MANSIO2_38539
73@ = 1

:MANSIO2_38539
if 
  73@ == 0
goto_if_false @MANSIO2_38720
if 
  285@ == 1
goto_if_false @MANSIO2_38720
57@, 58@, 59@ = get_char_coordinates $scplayer
60@, 61@, 62@ = get_char_coordinates 137@(52@,2i)
70@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  12.0 > 70@
goto_if_false @MANSIO2_38720
set_lvar_float_to_lvar_float 71@ = 59@
sub_float_lvar_from_float_lvar 71@ -= 62@
if 
  0.0 > 71@
goto_if_false @MANSIO2_38692
71@ *= -1.0

:MANSIO2_38692
if 
  5.0 > 71@
goto_if_false @MANSIO2_38720
73@ = 1

:MANSIO2_38720
if 
  73@ == 0
goto_if_false @MANSIO2_38779
if or
  has_char_been_damaged_by_char 137@(52@,2i) {handle} $scplayer
  has_char_been_damaged_by_weapon 137@(52@,2i) {weaponType} WeaponType.PistolSilenced
goto_if_false @MANSIO2_38779
73@ = 1

:MANSIO2_38779
if 
  73@ == 1
goto_if_false @MANSIO2_38804
gosub @MANSIO2_38806

:MANSIO2_38804
return 

:MANSIO2_38806
if 
  not is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_38851
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
goto @MANSIO2_38869

:MANSIO2_38851
57@, 58@, 59@ = get_dead_char_coordinates 137@(52@,2i)

:MANSIO2_38869
48@ = 0

:MANSIO2_38876
if 
  not is_char_dead 131@(48@,6i)
goto_if_false @MANSIO2_39108
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_39108
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_38999
70@ *= -1.0

:MANSIO2_38999
if 
  6.0 > 70@
goto_if_false @MANSIO2_39108
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_39108
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_39108
183@(48@,6i) = 23

:MANSIO2_39108
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_38876
48@ = 0

:MANSIO2_39136
if and
  not is_char_dead 137@(48@,2i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_39357
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  20.0 > 72@
goto_if_false @MANSIO2_39357
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39267
70@ *= -1.0

:MANSIO2_39267
if 
  6.0 > 70@
goto_if_false @MANSIO2_39357
if 
  267@ == 0
goto_if_false @MANSIO2_39357
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_39350
189@(48@,2i) = 12
281@(48@,2i) = 1

:MANSIO2_39350
goto @MANSIO2_39357

:MANSIO2_39357
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_39136
return 

:MANSIO2_39380
57@, 58@, 59@ = get_dead_char_coordinates 137@(52@,2i)
48@ = 0

:MANSIO2_39405
if and
  not is_char_dead 131@(48@,6i)
  not is_int_lvar_equal_to_int_lvar 52@ == 48@
goto_if_false @MANSIO2_39645
60@, 61@, 62@ = get_char_coordinates 131@(48@,6i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_39645
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39536
70@ *= -1.0

:MANSIO2_39536
if 
  6.0 > 70@
goto_if_false @MANSIO2_39645
if 
  269@(48@,6i) == 1
goto_if_false @MANSIO2_39645
if and
  183@(48@,6i) <> 23
  183@(48@,6i) <> 26
  183@(48@,6i) <> 24
  183@(48@,6i) <> 25
goto_if_false @MANSIO2_39645
183@(48@,6i) = 23

:MANSIO2_39645
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_39405
48@ = 0

:MANSIO2_39673
if 
  not is_char_dead 137@(48@,2i)
goto_if_false @MANSIO2_39920
60@, 61@, 62@ = get_char_coordinates 137@(48@,2i)
72@ = get_distance_between_coords_2d 57@ {fromY} 58@ {toX} 60@ {toZ} 61@
if 
  10.0 > 72@
goto_if_false @MANSIO2_39920
set_lvar_float_to_lvar_float 70@ = 59@
sub_float_lvar_from_float_lvar 70@ -= 62@
if 
  0.0 > 70@
goto_if_false @MANSIO2_39796
70@ *= -1.0

:MANSIO2_39796
if 
  6.0 > 70@
goto_if_false @MANSIO2_39920
if 
  267@ == 0
goto_if_false @MANSIO2_39920
if 
  281@(48@,2i) == 0
goto_if_false @MANSIO2_39913
189@(48@,2i) = 12
if 
  213@ <> 1
goto_if_false @MANSIO2_39902
print_now 'MAN2_45' {time} 7000 {flag} 1

:MANSIO2_39902
281@(48@,2i) = 1

:MANSIO2_39913
goto @MANSIO2_39920

:MANSIO2_39920
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_39673
return 

:MANSIO2_39943
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_39965
return 

:MANSIO2_39965
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40140 {caseNum1} 0 {caseLabel1} @MANSIO2_40084 {caseNum2} 1 {caseLabel2} @MANSIO2_40028 {caseNum3} -1 {caseLabel3} @MANSIO2_40160 {caseNum4} -1 {caseLabel4} @MANSIO2_40160 {caseNum5} -1 {caseLabel5} @MANSIO2_40160 {caseNum6} -1 {caseLabel6} @MANSIO2_40160 {caseNum7} -1 {caseLabel7} @MANSIO2_40160

:MANSIO2_40028
set_char_coordinates 137@(52@,2i) {x} -1421.757 {y} 496.6105 {z} 2.0463
set_char_heading 137@(52@,2i) {heading} 175.6815
189@(52@,2i) = 16
goto @MANSIO2_40160

:MANSIO2_40084
set_char_coordinates 137@(52@,2i) {x} -1346.219 {y} 497.9554 {z} 10.1953
set_char_heading 137@(52@,2i) {heading} 270.0
189@(52@,2i) = 1
goto @MANSIO2_40160

:MANSIO2_40140
write_debug "UNKNOWN_MECHANIC"

:MANSIO2_40160
set_char_decision_maker 137@(52@,2i) {handleOrTemplate} 180@
return 

:MANSIO2_40174
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40196
return 

:MANSIO2_40196
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40290 {caseNum1} 1 {caseLabel1} @MANSIO2_40259 {caseNum2} -1 {caseLabel2} @MANSIO2_40319 {caseNum3} -1 {caseLabel3} @MANSIO2_40319 {caseNum4} -1 {caseLabel4} @MANSIO2_40319 {caseNum5} -1 {caseLabel5} @MANSIO2_40319 {caseNum6} -1 {caseLabel6} @MANSIO2_40319 {caseNum7} -1 {caseLabel7} @MANSIO2_40319

:MANSIO2_40259
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 7000
goto @MANSIO2_40319

:MANSIO2_40290
write_debug "UNKNOWN_MECHANIC_FOR_CHAT"

:MANSIO2_40319
189@(52@,2i) = 7
return 

:MANSIO2_40332
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40354
return 

:MANSIO2_40354
switch_start 52@ {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40458 {caseNum1} 1 {caseLabel1} @MANSIO2_40417 {caseNum2} -1 {caseLabel2} @MANSIO2_40491 {caseNum3} -1 {caseLabel3} @MANSIO2_40491 {caseNum4} -1 {caseLabel4} @MANSIO2_40491 {caseNum5} -1 {caseLabel5} @MANSIO2_40491 {caseNum6} -1 {caseLabel6} @MANSIO2_40491 {caseNum7} -1 {caseLabel7} @MANSIO2_40491

:MANSIO2_40417
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_40451
189@(52@,2i) = 1

:MANSIO2_40451
goto @MANSIO2_40491

:MANSIO2_40458
write_debug "UNKNOWN_MECHANIC_FOR_CHATTING"

:MANSIO2_40491
return 

:MANSIO2_40493
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40515
return 

:MANSIO2_40515
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40660 {caseNum1} 0 {caseLabel1} @MANSIO2_40619 {caseNum2} 1 {caseLabel2} @MANSIO2_40578 {caseNum3} -1 {caseLabel3} @MANSIO2_40690 {caseNum4} -1 {caseLabel4} @MANSIO2_40690 {caseNum5} -1 {caseLabel5} @MANSIO2_40690 {caseNum6} -1 {caseLabel6} @MANSIO2_40690 {caseNum7} -1 {caseLabel7} @MANSIO2_40690

:MANSIO2_40578
if 
  not is_car_dead 154@
goto_if_false @MANSIO2_40612
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver 137@(52@,2i) {vehicle} 154@ {time} -2

:MANSIO2_40612
goto @MANSIO2_40690

:MANSIO2_40619
if 
  not is_car_dead 155@
goto_if_false @MANSIO2_40653
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver 137@(52@,2i) {vehicle} 155@ {time} -2

:MANSIO2_40653
goto @MANSIO2_40690

:MANSIO2_40660
write_debug "UNKNOWN_MECHANIC_FOR_ENTER"

:MANSIO2_40690
189@(52@,2i) = 2
return 

:MANSIO2_40703
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40725
return 

:MANSIO2_40725
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_40938 {caseNum1} 0 {caseLabel1} @MANSIO2_40863 {caseNum2} 1 {caseLabel2} @MANSIO2_40788 {caseNum3} -1 {caseLabel3} @MANSIO2_40971 {caseNum4} -1 {caseLabel4} @MANSIO2_40971 {caseNum5} -1 {caseLabel5} @MANSIO2_40971 {caseNum6} -1 {caseLabel6} @MANSIO2_40971 {caseNum7} -1 {caseLabel7} @MANSIO2_40971

:MANSIO2_40788
if 
  is_car_dead 154@
goto_if_false @MANSIO2_40822
189@(52@,2i) = 16
goto @MANSIO2_40856

:MANSIO2_40822
if 
  is_char_in_car 137@(52@,2i) {vehicle} 154@
goto_if_false @MANSIO2_40856
189@(52@,2i) = 3

:MANSIO2_40856
goto @MANSIO2_40971

:MANSIO2_40863
if 
  is_car_dead 155@
goto_if_false @MANSIO2_40897
189@(52@,2i) = 16
goto @MANSIO2_40931

:MANSIO2_40897
if 
  is_char_in_car 137@(52@,2i) {vehicle} 155@
goto_if_false @MANSIO2_40931
189@(52@,2i) = 3

:MANSIO2_40931
goto @MANSIO2_40971

:MANSIO2_40938
write_debug "UNKNOWN_MECHANIC_FOR_ENTERING"

:MANSIO2_40971
return 

:MANSIO2_40973
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_40995
return 

:MANSIO2_40995
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41108 {caseNum1} 0 {caseLabel1} @MANSIO2_41083 {caseNum2} 1 {caseLabel2} @MANSIO2_41058 {caseNum3} -1 {caseLabel3} @MANSIO2_41139 {caseNum4} -1 {caseLabel4} @MANSIO2_41139 {caseNum5} -1 {caseLabel5} @MANSIO2_41139 {caseNum6} -1 {caseLabel6} @MANSIO2_41139 {caseNum7} -1 {caseLabel7} @MANSIO2_41139

:MANSIO2_41058
gosub @MANSIO2_44624
189@(52@,2i) = 4
goto @MANSIO2_41139

:MANSIO2_41083
gosub @MANSIO2_45356
189@(52@,2i) = 4
goto @MANSIO2_41139

:MANSIO2_41108
write_debug "UNKNOWN_MECHANIC_FOR_WANDER"

:MANSIO2_41139
return 

:MANSIO2_41141
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41163
return 

:MANSIO2_41163
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41428 {caseNum1} 0 {caseLabel1} @MANSIO2_41327 {caseNum2} 1 {caseLabel2} @MANSIO2_41226 {caseNum3} -1 {caseLabel3} @MANSIO2_41462 {caseNum4} -1 {caseLabel4} @MANSIO2_41462 {caseNum5} -1 {caseLabel5} @MANSIO2_41462 {caseNum6} -1 {caseLabel6} @MANSIO2_41462 {caseNum7} -1 {caseLabel7} @MANSIO2_41462

:MANSIO2_41226
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41320
gosub @MANSIO2_44965
if 
  73@ == 1
goto_if_false @MANSIO2_41320
50@ = generate_random_int_in_range 2000 {max} 4000
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
add_int_lvar_to_int_lvar 204@(52@,2i) += 50@
189@(52@,2i) = 5

:MANSIO2_41320
goto @MANSIO2_41462

:MANSIO2_41327
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41421
gosub @MANSIO2_45742
if 
  73@ == 1
goto_if_false @MANSIO2_41421
50@ = generate_random_int_in_range 2000 {max} 4000
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
add_int_lvar_to_int_lvar 204@(52@,2i) += 50@
189@(52@,2i) = 5

:MANSIO2_41421
goto @MANSIO2_41462

:MANSIO2_41428
write_debug "UNKNOWN_MECHANIC_FOR_WANDERING"

:MANSIO2_41462
return 

:MANSIO2_41464
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41486
return 

:MANSIO2_41486
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_41520
189@(52@,2i) = 3

:MANSIO2_41520
return 

:MANSIO2_41522
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41544
return 

:MANSIO2_41544
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_41868 {caseNum1} 0 {caseLabel1} @MANSIO2_41690 {caseNum2} 1 {caseLabel2} @MANSIO2_41607 {caseNum3} -1 {caseLabel3} @MANSIO2_41903 {caseNum4} -1 {caseLabel4} @MANSIO2_41903 {caseNum5} -1 {caseLabel5} @MANSIO2_41903 {caseNum6} -1 {caseLabel6} @MANSIO2_41903 {caseNum7} -1 {caseLabel7} @MANSIO2_41903

:MANSIO2_41607
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1420.125 {y} 512.2188 {z} 2.0463 {speed} MoveState.Run {time} -2
close_sequence_task 56@
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 9
204@(52@,2i) = 0
goto @MANSIO2_41903

:MANSIO2_41690
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
60@, 61@, 62@ = get_char_coordinates $scplayer
if 
  is_float_lvar_greater_than_float_lvar 57@ > 60@
goto_if_false @MANSIO2_41785
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1316.8621 {y} 490.2876 {z} 10.2026 {speed} MoveState.Run {time} -2
close_sequence_task 56@
goto @MANSIO2_41822

:MANSIO2_41785
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1394.8459 {y} 491.5163 {z} 10.1953 {speed} MoveState.Run {time} -2
close_sequence_task 56@

:MANSIO2_41822
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 9
204@(52@,2i) = 0
goto @MANSIO2_41903

:MANSIO2_41868
write_debug "UNKNOWN_MECHANIC_FOR_GOTO_COWER"

:MANSIO2_41903
return 

:MANSIO2_41905
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_41927
return 

:MANSIO2_41927
if 
  is_int_lvar_greater_than_int_lvar 204@(52@,2i) > 46@
goto_if_false @MANSIO2_41952
return 

:MANSIO2_41952
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_42371 {caseNum1} 0 {caseLabel1} @MANSIO2_42193 {caseNum2} 1 {caseLabel2} @MANSIO2_42015 {caseNum3} -1 {caseLabel3} @MANSIO2_42410 {caseNum4} -1 {caseLabel4} @MANSIO2_42410 {caseNum5} -1 {caseLabel5} @MANSIO2_42410 {caseNum6} -1 {caseLabel6} @MANSIO2_42410 {caseNum7} -1 {caseLabel7} @MANSIO2_42410

:MANSIO2_42015
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1420.125 {y} 512.2188 {z} 2.0463 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42096
189@(52@,2i) = 10
204@(52@,2i) = 0
goto @MANSIO2_42170

:MANSIO2_42096
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1389.8101 {y} 491.263 {z} 2.0463 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42170
189@(52@,2i) = 10
204@(52@,2i) = 0

:MANSIO2_42170
get_char_health 137@(52@,2i) {var_health} 211@(52@,2i)
goto @MANSIO2_42410

:MANSIO2_42193
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1394.8459 {y} 491.5163 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42274
189@(52@,2i) = 10
204@(52@,2i) = 0
goto @MANSIO2_42348

:MANSIO2_42274
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1316.8621 {y} 490.2876 {z} 10.2026 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42348
189@(52@,2i) = 10
204@(52@,2i) = 0

:MANSIO2_42348
get_char_health 137@(52@,2i) {var_health} 211@(52@,2i)
goto @MANSIO2_42410

:MANSIO2_42371
write_debug "UNKNOWN_MECHANIC_FOR_GOING_TO_COWER"

:MANSIO2_42410
gosub @MANSIO2_38279
return 

:MANSIO2_42419
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_42441
return 

:MANSIO2_42441
50@ = get_char_health 137@(52@,2i)
if 
  is_int_lvar_greater_than_int_lvar 211@(52@,2i) > 50@
goto_if_false @MANSIO2_42512
189@(52@,2i) = 11
set_lvar_int_to_lvar_int 211@(52@,2i) = 50@
204@(52@,2i) = 0
return 

:MANSIO2_42512
if 
  is_int_lvar_greater_than_int_lvar 204@(52@,2i) > 46@
goto_if_false @MANSIO2_42537
return 

:MANSIO2_42537
40@ = get_script_task_status 137@(52@,2i) {taskId} 1477
if 
  is_int_lvar_equal_to_constant 40@ == 7
goto_if_false @MANSIO2_42605
task_duck 137@(52@,2i) {time} -2
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 1000

:MANSIO2_42605
gosub @MANSIO2_38279
return 

:MANSIO2_42614
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_42636
return 

:MANSIO2_42636
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_43013 {caseNum1} 0 {caseLabel1} @MANSIO2_42856 {caseNum2} 1 {caseLabel2} @MANSIO2_42699 {caseNum3} -1 {caseLabel3} @MANSIO2_43050 {caseNum4} -1 {caseLabel4} @MANSIO2_43050 {caseNum5} -1 {caseLabel5} @MANSIO2_43050 {caseNum6} -1 {caseLabel6} @MANSIO2_43050 {caseNum7} -1 {caseLabel7} @MANSIO2_43050

:MANSIO2_42699
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1420.125 {y} 512.2188 {z} 2.0463 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42786
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1389.8101 {y} 491.263 {z} 2.0463 {speed} MoveState.Run {time} -2
goto @MANSIO2_42814

:MANSIO2_42786
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1420.125 {y} 512.2188 {z} 2.0463 {speed} MoveState.Run {time} -2

:MANSIO2_42814
189@(52@,2i) = 9
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
goto @MANSIO2_43050

:MANSIO2_42856
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1394.8459 {y} 491.5163 {z} 10.1953 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @MANSIO2_42943
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1316.8621 {y} 490.2876 {z} 10.2026 {speed} MoveState.Run {time} -2
goto @MANSIO2_42971

:MANSIO2_42943
task_follow_path_nodes_to_coord 137@(52@,2i) {x} -1394.8459 {y} 491.5163 {z} 10.1953 {speed} MoveState.Run {time} -2

:MANSIO2_42971
189@(52@,2i) = 9
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
goto @MANSIO2_43050

:MANSIO2_43013
write_debug "UNKNOWN_MECHANIC_FOR_CHANGE_COWER"

:MANSIO2_43050
return 

:MANSIO2_43052
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_43074
return 

:MANSIO2_43074
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_43376 {caseNum1} 0 {caseLabel1} @MANSIO2_43209 {caseNum2} 1 {caseLabel2} @MANSIO2_43137 {caseNum3} -1 {caseLabel3} @MANSIO2_43411 {caseNum4} -1 {caseLabel4} @MANSIO2_43411 {caseNum5} -1 {caseLabel5} @MANSIO2_43411 {caseNum6} -1 {caseLabel6} @MANSIO2_43411 {caseNum7} -1 {caseLabel7} @MANSIO2_43411

:MANSIO2_43137
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1414.349 {y} 514.0193 {z} 2.0391 {speed} MoveState.Run {time} -2
close_sequence_task 56@
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 13
goto @MANSIO2_43411

:MANSIO2_43209
57@, 58@, 59@ = get_char_coordinates 137@(52@,2i)
60@, 61@, 62@ = get_char_coordinates $scplayer
if 
  is_float_lvar_greater_than_float_lvar 57@ > 60@
goto_if_false @MANSIO2_43304
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1313.373 {y} 488.6687 {z} 10.2026 {speed} MoveState.Run {time} -2
close_sequence_task 56@
goto @MANSIO2_43341

:MANSIO2_43304
56@ = open_sequence_task 
task_leave_any_car -1
task_follow_path_nodes_to_coord -1 {x} -1412.397 {y} 488.6644 {z} 10.2026 {speed} MoveState.Run {time} -2
close_sequence_task 56@

:MANSIO2_43341
perform_sequence_task 137@(52@,2i) {sequence} 56@
clear_sequence_task 56@
189@(52@,2i) = 13
goto @MANSIO2_43411

:MANSIO2_43376
write_debug "UNKNOWN_MECHANIC_FOR_GOTO_ALARM"

:MANSIO2_43411
return 

:MANSIO2_43413
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_43435
return 

:MANSIO2_43435
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_43817 {caseNum1} 0 {caseLabel1} @MANSIO2_43617 {caseNum2} 1 {caseLabel2} @MANSIO2_43498 {caseNum3} -1 {caseLabel3} @MANSIO2_43856 {caseNum4} -1 {caseLabel4} @MANSIO2_43856 {caseNum5} -1 {caseLabel5} @MANSIO2_43856 {caseNum6} -1 {caseLabel6} @MANSIO2_43856 {caseNum7} -1 {caseLabel7} @MANSIO2_43856

:MANSIO2_43498
if 
  267@ == 1
goto_if_false @MANSIO2_43536
189@(52@,2i) = 8
return 
goto @MANSIO2_43610

:MANSIO2_43536
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1414.349 {y} 514.8193 {z} 2.0391 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_43610
189@(52@,2i) = 14
204@(52@,2i) = 0

:MANSIO2_43610
goto @MANSIO2_43856

:MANSIO2_43617
if 
  267@ == 1
goto_if_false @MANSIO2_43655
189@(52@,2i) = 8
return 
goto @MANSIO2_43810

:MANSIO2_43655
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1313.373 {y} 487.8687 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_43736
189@(52@,2i) = 14
204@(52@,2i) = 0
goto @MANSIO2_43810

:MANSIO2_43736
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1412.397 {y} 487.8644 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_43810
189@(52@,2i) = 14
204@(52@,2i) = 0

:MANSIO2_43810
goto @MANSIO2_43856

:MANSIO2_43817
write_debug "UNKNOWN_MECHANIC_FOR_GOING_TO_ALARM"

:MANSIO2_43856
gosub @MANSIO2_38279
return 

:MANSIO2_43865
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_43887
return 

:MANSIO2_43887
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_44303 {caseNum1} 0 {caseLabel1} @MANSIO2_44062 {caseNum2} 1 {caseLabel2} @MANSIO2_43950 {caseNum3} -1 {caseLabel3} @MANSIO2_44341 {caseNum4} -1 {caseLabel4} @MANSIO2_44341 {caseNum5} -1 {caseLabel5} @MANSIO2_44341 {caseNum6} -1 {caseLabel6} @MANSIO2_44341 {caseNum7} -1 {caseLabel7} @MANSIO2_44341

:MANSIO2_43950
task_char_slide_to_coord_and_play_anim 137@(52@,2i) {x} -1414.349 {y} 513.4193 {z} 2.0391 {heading} 0.0 {radius} 0.2 {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 2000
189@(52@,2i) = 15
goto @MANSIO2_44341

:MANSIO2_44062
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1313.373 {y} 487.8687 {z} 10.2026 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
goto_if_false @MANSIO2_44191
task_char_slide_to_coord_and_play_anim 137@(52@,2i) {x} -1313.373 {y} 489.3687 {z} 10.2026 {heading} 180.0 {radius} 0.2 {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @MANSIO2_44261

:MANSIO2_44191
task_char_slide_to_coord_and_play_anim 137@(52@,2i) {x} -1412.397 {y} 489.3644 {z} 10.2026 {heading} 180.0 {radius} 0.2 {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 10.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO2_44261
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 2000
189@(52@,2i) = 15
goto @MANSIO2_44341

:MANSIO2_44303
write_debug "UNKNOWN_MECHANIC_FOR_TRIGGER_ALARM"

:MANSIO2_44341
return 

:MANSIO2_44343
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_44365
return 

:MANSIO2_44365
switch_start 52@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_44574 {caseNum1} 0 {caseLabel1} @MANSIO2_44501 {caseNum2} 1 {caseLabel2} @MANSIO2_44428 {caseNum3} -1 {caseLabel3} @MANSIO2_44615 {caseNum4} -1 {caseLabel4} @MANSIO2_44615 {caseNum5} -1 {caseLabel5} @MANSIO2_44615 {caseNum6} -1 {caseLabel6} @MANSIO2_44615 {caseNum7} -1 {caseLabel7} @MANSIO2_44615

:MANSIO2_44428
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_44494
189@(52@,2i) = 8
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_44494
213@ = 2

:MANSIO2_44494
goto @MANSIO2_44615

:MANSIO2_44501
if 
  is_int_lvar_greater_than_int_lvar 46@ > 204@(52@,2i)
goto_if_false @MANSIO2_44567
189@(52@,2i) = 8
267@ = 1
if 
  213@ == 0
goto_if_false @MANSIO2_44567
213@ = 2

:MANSIO2_44567
goto @MANSIO2_44615

:MANSIO2_44574
write_debug "UNKNOWN_MECHANIC_FOR_TRIGGERING_ALARM"

:MANSIO2_44615
gosub @MANSIO2_38279
return 

:MANSIO2_44624
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_44646
return 

:MANSIO2_44646
if 
  is_car_dead 154@
goto_if_false @MANSIO2_44675
189@(52@,2i) = 16
return 

:MANSIO2_44675
50@ = generate_random_int_in_range 0 {max} 4
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_44927 {caseNum1} 0 {caseLabel1} @MANSIO2_44747 {caseNum2} 1 {caseLabel2} @MANSIO2_44792 {caseNum3} 2 {caseLabel3} @MANSIO2_44837 {caseNum4} 3 {caseLabel4} @MANSIO2_44882 {caseNum5} -1 {caseLabel5} @MANSIO2_44927 {caseNum6} -1 {caseLabel6} @MANSIO2_44927 {caseNum7} -1 {caseLabel7} @MANSIO2_44927

:MANSIO2_44747
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1400.205 {y} 507.259 {z} 2.0463 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44927

:MANSIO2_44792
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1394.387 {y} 506.6834 {z} 2.0463 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44927

:MANSIO2_44837
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1399.348 {y} 501.5815 {z} 2.0463 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44927

:MANSIO2_44882
task_car_drive_to_coord 137@(52@,2i) {vehicle} 154@ {x} -1410.671 {y} 501.3295 {z} 2.0391 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.StopForCars
goto @MANSIO2_44927

:MANSIO2_44927
set_lvar_int_to_lvar_int 209@(52@,2i) = 50@
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
return 

:MANSIO2_44965
73@ = 0
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_44994
return 

:MANSIO2_44994
if 
  is_car_dead 154@
goto_if_false @MANSIO2_45023
189@(52@,2i) = 16
return 

:MANSIO2_45023
switch_start 209@(52@,2i) {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_45354 {caseNum1} 0 {caseLabel1} @MANSIO2_45090 {caseNum2} 1 {caseLabel2} @MANSIO2_45156 {caseNum3} 2 {caseLabel3} @MANSIO2_45222 {caseNum4} 3 {caseLabel4} @MANSIO2_45288 {caseNum5} -1 {caseLabel5} @MANSIO2_45354 {caseNum6} -1 {caseLabel6} @MANSIO2_45354 {caseNum7} -1 {caseLabel7} @MANSIO2_45354

:MANSIO2_45090
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1400.205 {y} 507.259 {z} 2.0463 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45149
73@ = 1

:MANSIO2_45149
goto @MANSIO2_45354

:MANSIO2_45156
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1394.387 {y} 506.6834 {z} 2.0463 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45215
73@ = 1

:MANSIO2_45215
goto @MANSIO2_45354

:MANSIO2_45222
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1399.348 {y} 501.5815 {z} 2.0463 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45281
73@ = 1

:MANSIO2_45281
goto @MANSIO2_45354

:MANSIO2_45288
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1410.671 {y} 501.3295 {z} 2.0391 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45347
73@ = 1

:MANSIO2_45347
goto @MANSIO2_45354

:MANSIO2_45354
return 

:MANSIO2_45356
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_45378
return 

:MANSIO2_45378
if 
  is_car_dead 155@
goto_if_false @MANSIO2_45407
189@(52@,2i) = 16
return 

:MANSIO2_45407
50@ = generate_random_int_in_range 0 {max} 4
switch_start 50@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_45704 {caseNum1} 0 {caseLabel1} @MANSIO2_45479 {caseNum2} 1 {caseLabel2} @MANSIO2_45524 {caseNum3} 2 {caseLabel3} @MANSIO2_45569 {caseNum4} 3 {caseLabel4} @MANSIO2_45614 {caseNum5} 4 {caseLabel5} @MANSIO2_45659 {caseNum6} -1 {caseLabel6} @MANSIO2_45704 {caseNum7} -1 {caseLabel7} @MANSIO2_45704

:MANSIO2_45479
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1321.422 {y} 495.9306 {z} 10.2026 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45704

:MANSIO2_45524
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1305.444 {y} 497.4329 {z} 10.2026 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45704

:MANSIO2_45569
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1307.425 {y} 503.4752 {z} 10.1953 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45704

:MANSIO2_45614
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1351.098 {y} 506.4217 {z} 10.1953 {speed} 2.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45704

:MANSIO2_45659
task_car_drive_to_coord 137@(52@,2i) {vehicle} 155@ {x} -1390.884 {y} 507.6548 {z} 10.1953 {speed} 3.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @MANSIO2_45704

:MANSIO2_45704
set_lvar_int_to_lvar_int 209@(52@,2i) = 50@
set_lvar_int_to_lvar_int 204@(52@,2i) = 46@
204@(52@,2i) += 10000
return 

:MANSIO2_45742
73@ = 0
if 
  is_char_dead 137@(52@,2i)
goto_if_false @MANSIO2_45771
return 

:MANSIO2_45771
if 
  is_car_dead 154@
goto_if_false @MANSIO2_45800
189@(52@,2i) = 16
return 

:MANSIO2_45800
switch_start 209@(52@,2i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46197 {caseNum1} 0 {caseLabel1} @MANSIO2_45867 {caseNum2} 1 {caseLabel2} @MANSIO2_45933 {caseNum3} 2 {caseLabel3} @MANSIO2_45999 {caseNum4} 3 {caseLabel4} @MANSIO2_46065 {caseNum5} 4 {caseLabel5} @MANSIO2_46131 {caseNum6} -1 {caseLabel6} @MANSIO2_46197 {caseNum7} -1 {caseLabel7} @MANSIO2_46197

:MANSIO2_45867
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1321.422 {y} 495.9306 {z} 10.2026 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45926
73@ = 1

:MANSIO2_45926
goto @MANSIO2_46197

:MANSIO2_45933
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1305.444 {y} 497.4329 {z} 10.2026 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_45992
73@ = 1

:MANSIO2_45992
goto @MANSIO2_46197

:MANSIO2_45999
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1307.425 {y} 503.4752 {z} 10.1953 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_46058
73@ = 1

:MANSIO2_46058
goto @MANSIO2_46197

:MANSIO2_46065
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1351.098 {y} 506.4217 {z} 10.1953 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_46124
73@ = 1

:MANSIO2_46124
goto @MANSIO2_46197

:MANSIO2_46131
if 
  locate_char_any_means_3d 137@(52@,2i) {x} -1390.884 {y} 507.6548 {z} 10.1953 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @MANSIO2_46190
73@ = 1

:MANSIO2_46190
goto @MANSIO2_46197

:MANSIO2_46197
return 

:MANSIO2_46199
if 
  191@ == -1
goto_if_false @MANSIO2_46219
return 

:MANSIO2_46219
50@ = 1
if 
  191@ <> 0
goto_if_false @MANSIO2_46282
if 
  is_car_dead 141@(50@,4i)
goto_if_false @MANSIO2_46282
191@ = -1
mark_car_as_no_longer_needed 141@(50@,4i)
return 

:MANSIO2_46282
switch_start 191@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46554 {caseNum1} 0 {caseLabel1} @MANSIO2_46345 {caseNum2} 1 {caseLabel2} @MANSIO2_46512 {caseNum3} -1 {caseLabel3} @MANSIO2_46554 {caseNum4} -1 {caseLabel4} @MANSIO2_46554 {caseNum5} -1 {caseLabel5} @MANSIO2_46554 {caseNum6} -1 {caseLabel6} @MANSIO2_46554 {caseNum7} -1 {caseLabel7} @MANSIO2_46554

:MANSIO2_46345
create_car 520 {x} -84.0771 {y} 418.3652 {z} 92.2066 {var_handle} 141@(50@,4i)
set_car_coordinates 141@(50@,4i) {x} -84.0771 {y} 418.3652 {z} 92.2066
set_car_heading 141@(50@,4i) {heading} 91.2218
set_car_status 141@(50@,4i) {status} EntityStatus.Physics
set_car_forward_speed 141@(50@,4i) {forwardSpeed} 70.0
set_plane_throttle 141@(50@,4i) {throttle} 1.5
plane_starts_in_air 141@(50@,4i)
plane_fly_in_direction 141@(50@,4i) {heading} 190.0 {minAltitude} 20.0 {maxAltitude} 30.0
set_lvar_int_to_lvar_int 196@ = 46@
196@ += 25000
191@ += 1
goto @MANSIO2_46554

:MANSIO2_46512
if 
  is_int_lvar_greater_than_int_lvar 46@ > 196@
goto_if_false @MANSIO2_46547
delete_car 141@(50@,4i)
191@ = -1

:MANSIO2_46547
goto @MANSIO2_46554

:MANSIO2_46554
return 

:MANSIO2_46556
if 
  192@ == -1
goto_if_false @MANSIO2_46576
return 

:MANSIO2_46576
50@ = 3
if 
  is_car_dead 141@(50@,4i)
goto_if_false @MANSIO2_46621
192@ = -1
delete_car 141@(50@,4i)
return 

:MANSIO2_46621
switch_start 192@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_46826 {caseNum1} 0 {caseLabel1} @MANSIO2_46684 {caseNum2} 1 {caseLabel2} @MANSIO2_46714 {caseNum3} 2 {caseLabel3} @MANSIO2_46783 {caseNum4} -1 {caseLabel4} @MANSIO2_46826 {caseNum5} -1 {caseLabel5} @MANSIO2_46826 {caseNum6} -1 {caseLabel6} @MANSIO2_46826 {caseNum7} -1 {caseLabel7} @MANSIO2_46826

:MANSIO2_46684
set_lvar_int_to_lvar_int 197@ = 46@
197@ += 6000
192@ += 1
goto @MANSIO2_46826

:MANSIO2_46714
if 
  is_int_lvar_greater_than_int_lvar 46@ > 197@
goto_if_false @MANSIO2_46776
242@(50@,4i) = 0
if 
  276@ == 0
goto_if_false @MANSIO2_46769
184@ = 11

:MANSIO2_46769
192@ += 1

:MANSIO2_46776
goto @MANSIO2_46826

:MANSIO2_46783
if 
  not is_playback_going_on_for_car 141@(50@,4i)
goto_if_false @MANSIO2_46819
delete_car 141@(50@,4i)
192@ = -1

:MANSIO2_46819
goto @MANSIO2_46826

:MANSIO2_46826
return 

:MANSIO2_46828
if 
  193@ == -1
goto_if_false @MANSIO2_46848
return 

:MANSIO2_46848
50@ = 1
if 
  193@ > 0
goto_if_false @MANSIO2_46911
if 
  is_car_dead 141@(50@,4i)
goto_if_false @MANSIO2_46911
193@ = -1
delete_car 141@(50@,4i)
return 

:MANSIO2_46911
switch_start 193@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_47199 {caseNum1} 0 {caseLabel1} @MANSIO2_46974 {caseNum2} 1 {caseLabel2} @MANSIO2_47059 {caseNum3} 2 {caseLabel3} @MANSIO2_47136 {caseNum4} -1 {caseLabel4} @MANSIO2_47199 {caseNum5} -1 {caseLabel5} @MANSIO2_47199 {caseNum6} -1 {caseLabel6} @MANSIO2_47199 {caseNum7} -1 {caseLabel7} @MANSIO2_47199

:MANSIO2_46974
create_car 520 {x} -1354.587 {y} 6.2662 {z} 13.1485 {var_handle} 141@(50@,4i)
134@ = create_char_inside_car 141@(50@,4i) {pedType} PedType.Mission2 {modelId} 287
set_char_decision_maker 134@ {handleOrTemplate} 180@
set_char_is_target_priority 134@ {state} True
start_playback_recorded_car 141@(50@,4i) {path} 211
193@ += 1
goto @MANSIO2_47199

:MANSIO2_47059
if 
  locate_car_3d 141@(50@,4i) {x} -1456.356 {y} 501.1173 {z} 9.0078 {xRadius} 10.0 {yRadius} 15.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @MANSIO2_47129
242@(50@,4i) = 1
193@ += 1

:MANSIO2_47129
goto @MANSIO2_47199

:MANSIO2_47136
if 
  not is_playback_going_on_for_car 141@(50@,4i)
goto_if_false @MANSIO2_47192
186@ = 5
176@ = add_blip_for_char 134@
change_blip_display 176@ {display} BlipDisplay.BlipOnly
set_blip_always_display_on_zoomed_radar 176@ {state} True
193@ = -1

:MANSIO2_47192
goto @MANSIO2_47199

:MANSIO2_47199
return 

:MANSIO2_47201
switch_start 79@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_47285 {caseNum1} 0 {caseLabel1} @MANSIO2_47264 {caseNum2} 1 {caseLabel2} @MANSIO2_47264 {caseNum3} 2 {caseLabel3} @MANSIO2_47271 {caseNum4} 3 {caseLabel4} @MANSIO2_47264 {caseNum5} 4 {caseLabel5} @MANSIO2_47264 {caseNum6} -1 {caseLabel6} @MANSIO2_47321 {caseNum7} -1 {caseLabel7} @MANSIO2_47321

:MANSIO2_47264
goto @MANSIO2_47321

:MANSIO2_47271
gosub @MANSIO2_47461
goto @MANSIO2_47321

:MANSIO2_47285
write_debug "UNKNOWN_CONVERSATION_STATUS_ID"
return 

:MANSIO2_47321
return 

:MANSIO2_47323
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @MANSIO2_47344
return 

:MANSIO2_47344
50@ = 1
88@(50@,3i) = 1
load_mission_audio 50@ {audioId} 91@(84@,13i)
84@ += 1
if 
  is_int_lvar_equal_to_int_lvar 84@ == 83@
goto_if_false @MANSIO2_47402
return 

:MANSIO2_47402
50@ += 1
if 
  50@ > 2
goto_if_false @MANSIO2_47429
return 

:MANSIO2_47429
88@(50@,3i) = 1
load_mission_audio 50@ {audioId} 91@(84@,13i)
84@ += 1
return 

:MANSIO2_47461
gosub @MANSIO2_48532
if 
  79@ == 3
goto_if_false @MANSIO2_47495
gosub @MANSIO2_47729
return 

:MANSIO2_47495
switch_start 88@(78@,3i) {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_47696 {caseNum1} 0 {caseLabel1} @MANSIO2_47562 {caseNum2} 1 {caseLabel2} @MANSIO2_47571 {caseNum3} 2 {caseLabel3} @MANSIO2_47607 {caseNum4} 3 {caseLabel4} @MANSIO2_47664 {caseNum5} -1 {caseLabel5} @MANSIO2_47727 {caseNum6} -1 {caseLabel6} @MANSIO2_47727 {caseNum7} -1 {caseLabel7} @MANSIO2_47727

:MANSIO2_47562
return 
goto @MANSIO2_47727

:MANSIO2_47571
if 
  not has_mission_audio_loaded 78@
goto_if_false @MANSIO2_47589
return 

:MANSIO2_47589
88@(78@,3i) = 2
goto @MANSIO2_47727

:MANSIO2_47607
play_mission_audio 78@
if 
  87@ == 1
goto_if_false @MANSIO2_47644
print_now 104@(82@,13s) {time} 10000 {flag} 1

:MANSIO2_47644
88@(78@,3i) = 3
return 
goto @MANSIO2_47727

:MANSIO2_47664
if 
  not has_mission_audio_finished 78@
goto_if_false @MANSIO2_47682
return 

:MANSIO2_47682
gosub @MANSIO2_47782
goto @MANSIO2_47727

:MANSIO2_47696
write_debug "UNKNOWN_AUDIO_SLOT_STATUS"
return 

:MANSIO2_47727
return 

:MANSIO2_47729
50@ = 1

:MANSIO2_47736
if 
  2 >= 50@
goto_if_false @MANSIO2_47773
clear_mission_audio 50@
50@ += 1
goto @MANSIO2_47736

:MANSIO2_47773
gosub @MANSIO2_47911
return 

:MANSIO2_47782
88@(78@,3i) = 0
82@ += 1
if 
  is_int_lvar_equal_to_int_lvar 82@ == 83@
goto_if_false @MANSIO2_47828
gosub @MANSIO2_47911
return 

:MANSIO2_47828
if 
  is_int_lvar_greater_than_int_lvar 83@ > 84@
goto_if_false @MANSIO2_47877
88@(78@,3i) = 1
load_mission_audio 78@ {audioId} 91@(84@,13i)
84@ += 1

:MANSIO2_47877
78@ += 1
if 
  78@ > 2
goto_if_false @MANSIO2_47909
78@ = 1

:MANSIO2_47909
return 

:MANSIO2_47911
set_local_var_bit_lvar 85@ {var_bitIndex} 80@
80@ = 0
79@ = 0
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:MANSIO2_47975
if 
  2 > 50@
goto_if_false @MANSIO2_48018
88@(50@,3i) = 0
50@ += 1
goto @MANSIO2_47975

:MANSIO2_48018
clear_small_prints 
set_lvar_int_to_lvar_int 86@ = 46@
86@ += 120
return 

:MANSIO2_48037
if 
  79@ <> 0
goto_if_false @MANSIO2_48062
gosub @MANSIO2_48221

:MANSIO2_48062
if 
  is_int_lvar_greater_than_int_lvar 86@ > 46@
goto_if_false @MANSIO2_48083
return 

:MANSIO2_48083
86@ = 0
set_lvar_int_to_lvar_int 80@ = 81@
81@ = 0
78@ = 1
82@ = 0
83@ = 0
84@ = 0
50@ = 1

:MANSIO2_48140
if 
  2 > 50@
goto_if_false @MANSIO2_48183
88@(50@,3i) = 0
50@ += 1
goto @MANSIO2_48140

:MANSIO2_48183
gosub @MANSIO2_48250
return 

:MANSIO2_48192
if 
  79@ <> 1
goto_if_false @MANSIO2_48212
return 

:MANSIO2_48212
79@ = 2
return 

:MANSIO2_48221
if 
  79@ == 0
goto_if_false @MANSIO2_48241
return 

:MANSIO2_48241
gosub @MANSIO2_47729
return 

:MANSIO2_48250
switch_start 80@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @MANSIO2_48490 {caseNum1} 1 {caseLabel1} @MANSIO2_48378 {caseNum2} 2 {caseLabel2} @MANSIO2_48392 {caseNum3} 3 {caseLabel3} @MANSIO2_48406 {caseNum4} 4 {caseLabel4} @MANSIO2_48420 {caseNum5} 5 {caseLabel5} @MANSIO2_48434 {caseNum6} 6 {caseLabel6} @MANSIO2_48448 {caseNum7} 7 {caseLabel7} @MANSIO2_48462
switch_continued 8 {caseLabel1} @MANSIO2_48476 {caseNum2} -1 {caseLabel2} @MANSIO2_48516 {caseNum3} -1 {caseLabel3} @MANSIO2_48516 {caseNum4} -1 {caseLabel4} @MANSIO2_48516 {caseNum5} -1 {caseLabel5} @MANSIO2_48516 {caseNum6} -1 {caseLabel6} @MANSIO2_48516 {caseNum7} -1 {caseLabel7} @MANSIO2_48516 {caseNum8} -1 {caseLabel8} @MANSIO2_48516 {caseNum9} -1 {caseLabel9} @MANSIO2_48516

:MANSIO2_48378
gosub @MANSIO2_48789
goto @MANSIO2_48516

:MANSIO2_48392
gosub @MANSIO2_49003
goto @MANSIO2_48516

:MANSIO2_48406
gosub @MANSIO2_49550
goto @MANSIO2_48516

:MANSIO2_48420
gosub @MANSIO2_49596
goto @MANSIO2_48516

:MANSIO2_48434
gosub @MANSIO2_50209
goto @MANSIO2_48516

:MANSIO2_48448
gosub @MANSIO2_50255
goto @MANSIO2_48516

:MANSIO2_48462
gosub @MANSIO2_50301
goto @MANSIO2_48516

:MANSIO2_48476
gosub @MANSIO2_49810
goto @MANSIO2_48516

:MANSIO2_48490
write_debug "UNKNOWN_CONVERSATION"
return 

:MANSIO2_48516
gosub @MANSIO2_47323
79@ = 1
return 

:MANSIO2_48532
switch_start 80@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_48692 {caseNum1} 1 {caseLabel1} @MANSIO2_48660 {caseNum2} 2 {caseLabel2} @MANSIO2_48660 {caseNum3} 3 {caseLabel3} @MANSIO2_48660 {caseNum4} 4 {caseLabel4} @MANSIO2_48660 {caseNum5} 5 {caseLabel5} @MANSIO2_48660 {caseNum6} 6 {caseLabel6} @MANSIO2_48660 {caseNum7} 7 {caseLabel7} @MANSIO2_48660
switch_continued 8 {caseLabel1} @MANSIO2_48660 {caseNum2} -1 {caseLabel2} @MANSIO2_48692 {caseNum3} -1 {caseLabel3} @MANSIO2_48692 {caseNum4} -1 {caseLabel4} @MANSIO2_48692 {caseNum5} -1 {caseLabel5} @MANSIO2_48692 {caseNum6} -1 {caseLabel6} @MANSIO2_48692 {caseNum7} -1 {caseLabel7} @MANSIO2_48692 {caseNum8} -1 {caseLabel8} @MANSIO2_48692 {caseNum9} -1 {caseLabel9} @MANSIO2_48692

:MANSIO2_48660
if 
  is_char_dead $scplayer
goto_if_false @MANSIO2_48685
79@ = 3
return 

:MANSIO2_48685
goto @MANSIO2_48692

:MANSIO2_48692
switch_start 80@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_48787 {caseNum1} 1 {caseLabel1} @MANSIO2_48755 {caseNum2} 2 {caseLabel2} @MANSIO2_48755 {caseNum3} -1 {caseLabel3} @MANSIO2_48787 {caseNum4} -1 {caseLabel4} @MANSIO2_48787 {caseNum5} -1 {caseLabel5} @MANSIO2_48787 {caseNum6} -1 {caseLabel6} @MANSIO2_48787 {caseNum7} -1 {caseLabel7} @MANSIO2_48787

:MANSIO2_48755
if 
  is_char_dead 130@
goto_if_false @MANSIO2_48780
79@ = 3
return 

:MANSIO2_48780
goto @MANSIO2_48787

:MANSIO2_48787
return 

:MANSIO2_48789
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24000
set_lvar_text_label 104@(50@,13s) = 'MAN2_AA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24001
set_lvar_text_label 104@(50@,13s) = 'MAN2_AB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24002
set_lvar_text_label 104@(50@,13s) = 'MAN2_AC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24003
set_lvar_text_label 104@(50@,13s) = 'MAN2_AD'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_48993
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_48993
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_49003
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24004
set_lvar_text_label 104@(50@,13s) = 'MAN2_BA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24005
set_lvar_text_label 104@(50@,13s) = 'MAN2_BB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24006
set_lvar_text_label 104@(50@,13s) = 'MAN2_BC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24007
set_lvar_text_label 104@(50@,13s) = 'MAN2_BD'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24008
set_lvar_text_label 104@(50@,13s) = 'MAN2_BE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24009
set_lvar_text_label 104@(50@,13s) = 'MAN2_BF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24010
set_lvar_text_label 104@(50@,13s) = 'MAN2_BG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24011
set_lvar_text_label 104@(50@,13s) = 'MAN2_BH'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24012
set_lvar_text_label 104@(50@,13s) = 'MAN2_BJ'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24013
set_lvar_text_label 104@(50@,13s) = 'MAN2_BK'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24014
set_lvar_text_label 104@(50@,13s) = 'MAN2_BL'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24015
set_lvar_text_label 104@(50@,13s) = 'MAN2_BM'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24016
set_lvar_text_label 104@(50@,13s) = 'MAN2_BN'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_49540
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_49540
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_49550
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24017
set_lvar_text_label 104@(50@,13s) = 'MAN2_CA'
83@ = 1
return 

:MANSIO2_49596
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24018
set_lvar_text_label 104@(50@,13s) = 'MAN2_DA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24019
set_lvar_text_label 104@(50@,13s) = 'MAN2_DB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24020
set_lvar_text_label 104@(50@,13s) = 'MAN2_DC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24021
set_lvar_text_label 104@(50@,13s) = 'MAN2_DD'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_49800
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_49800
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_49810
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24030
set_lvar_text_label 104@(50@,13s) = 'MAN2_FA'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24031
set_lvar_text_label 104@(50@,13s) = 'MAN2_FB'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24032
set_lvar_text_label 104@(50@,13s) = 'MAN2_FC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24033
set_lvar_text_label 104@(50@,13s) = 'MAN2_FD'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24034
set_lvar_text_label 104@(50@,13s) = 'MAN2_FE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24035
set_lvar_text_label 104@(50@,13s) = 'MAN2_FF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24036
set_lvar_text_label 104@(50@,13s) = 'MAN2_FG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24037
set_lvar_text_label 104@(50@,13s) = 'MAN2_FK'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24038
set_lvar_text_label 104@(50@,13s) = 'MAN2_FL'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_50199
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_50199
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_50209
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24022
set_lvar_text_label 104@(50@,13s) = 'MAN2_EA'
83@ = 1
return 

:MANSIO2_50255
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24023
set_lvar_text_label 104@(50@,13s) = 'MAN2_EB'
83@ = 1
return 

:MANSIO2_50301
50@ = 0
set_lvar_int_to_constant 91@(50@,13i) = 24024
set_lvar_text_label 104@(50@,13s) = 'MAN2_EC'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24025
set_lvar_text_label 104@(50@,13s) = 'MAN2_EE'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24026
set_lvar_text_label 104@(50@,13s) = 'MAN2_EF'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24027
set_lvar_text_label 104@(50@,13s) = 'MAN2_EG'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24028
set_lvar_text_label 104@(50@,13s) = 'MAN2_EH'
50@ += 1
set_lvar_int_to_constant 91@(50@,13i) = 24029
set_lvar_text_label 104@(50@,13s) = 'MAN2_EJ'
50@ += 1
if 
  50@ > 13
goto_if_false @MANSIO2_50579
write_debug "TOO_MANY_CONVERSATION_LINES"

:MANSIO2_50579
set_lvar_int_to_lvar_int 83@ = 50@
return 

:MANSIO2_50589
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @MANSIO2_50638
47@ += 1
if 
  47@ > 2
goto_if_false @MANSIO2_50636
47@ = 0

:MANSIO2_50636
clear_all_view_variables 

:MANSIO2_50638
if 
  47@ == 1
goto_if_false @MANSIO2_50765
set_var_int_to_lvar_int $Mansion2_view_debug = 34@
set_var_int_to_lvar_int $7944 = 35@
set_var_int_to_lvar_int $7945 = 46@
$7946 = 0
$7947 = 0
$7948 = 0
$7949 = 0
$7950 = 0
view_integer_variable $Mansion2_view_debug {_p2} "M_STAGE"
view_integer_variable $7944 {_p2} "M_GOALS"
view_integer_variable $7945 {_p2} "M_MISSION_TIMER"

:MANSIO2_50765
if 
  47@ == 2
goto_if_false @MANSIO2_50783

:MANSIO2_50783
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @MANSIO2_50805
38@ = 1

:MANSIO2_50805
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @MANSIO2_50893
if 
  39@ == 0
goto_if_false @MANSIO2_50868
39@ = 1
write_debug "LEVEL_PAUSED"
goto @MANSIO2_50893

:MANSIO2_50868
39@ = 0
write_debug "LEVEL_UNPAUSED"

:MANSIO2_50893
return 

:MANSIO2_50895
if 
  not is_ps2_keyboard_key_just_pressed 74
goto_if_false @MANSIO2_50912
return 

:MANSIO2_50912
if 
  34@ == 3
goto_if_false @MANSIO2_50987
clear_area 220@ {y} 221@ {z} 222@ {radius} 50.0 {clearParticles} False
set_char_coordinates $scplayer {x} -1460.192 {y} 513.4575 {z} 2.003
set_char_heading $scplayer {heading} 270.0
gosub @MANSIO2_51214
return 

:MANSIO2_50987
if and
  34@ == 4
  35@ > 1
  8 > 35@
goto_if_false @MANSIO2_51028
35@ = 8
return 

:MANSIO2_51028
if and
  34@ == 5
  35@ == 1
goto_if_false @MANSIO2_51139
clear_area -1403.146 {y} 509.5356 {z} 17.2266 {radius} 1.0 {clearParticles} False
set_char_coordinates $scplayer {x} -1403.146 {y} 509.5356 {z} 17.2266
set_char_heading $scplayer {heading} 78.0
set_aircraft_carrier_sam_site False
238@ = 1
229@ = 1
remove_blip 165@
35@ = 6
return 

:MANSIO2_51139
return 

:MANSIO2_51141
41@ += 1
if 
  41@ > 9
goto_if_false @MANSIO2_51173
41@ = 0

:MANSIO2_51173
return 

:MANSIO2_51175
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:MANSIO2_51214
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:MANSIO2_51244
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO2_51266
if 
  get_fading_status 
goto_if_false @MANSIO2_51290
wait 0
goto @MANSIO2_51266

:MANSIO2_51290
set_area_visible 5
load_cutscene 'BHILL2'

:MANSIO2_51305
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO2_51329
wait 0
goto @MANSIO2_51305

:MANSIO2_51329
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:MANSIO2_51346
if 
  not has_cutscene_finished 
goto_if_false @MANSIO2_51370
wait 0
goto @MANSIO2_51346

:MANSIO2_51370
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:MANSIO2_51384
if 
  get_fading_status 
goto_if_false @MANSIO2_51408
wait 0
goto @MANSIO2_51384

:MANSIO2_51408
clear_cutscene 
set_area_visible 0
return 

:MANSIO2_51416
34@ = 0
switch_widescreen True
set_player_control $player1 {state} False

:MANSIO2_51434
if 
  not is_player_playing $player1
goto_if_false @MANSIO2_51461
wait 0
goto @MANSIO2_51434

:MANSIO2_51461
gosub @MANSIO2_51787
gosub @MANSIO2_52070
gosub @MANSIO2_52114
48@ = 0

:MANSIO2_51489
183@(48@,6i) = -1
269@(48@,6i) = 0
275@(48@,6i) = 0
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_51489
48@ = 0

:MANSIO2_51550
189@(48@,2i) = -1
281@(48@,2i) = 0
48@ += 1
  48@ >= 2
goto_if_false @MANSIO2_51550
switch_emergency_services False
set_wanted_multiplier 0.0
213@ = 0
clear_area 1248.681 {y} -807.9187 {z} 83.1484 {radius} 100.0 {clearParticles} True
load_scene 1248.681 {y} -807.9187 {z} 83.1484
set_char_coordinates $scplayer {x} 1246.016 {y} -803.2319 {z} 83.1484
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
set_time_of_day 8 {minutes} 0
wait 2000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_aircraft_carrier_sam_site True
delete_object $g_VB_REAR_DOOR
delete_object $g_VB_SMALL_LIFT
delete_object $g_VB_BIG_LIFT
set_respawn_point_for_duration_of_mission 1250.65 {y} -785.9349 {z} 89.2412
gosub @MANSIO2_51214
return 

:MANSIO2_51787
request_model 421
request_model 446
request_model 520
request_model 454
request_model 595
request_model 530
request_model 287
request_model 50
load_special_character 1 {modelName} 'TORINO'
request_model 347
request_model 335
request_model 356
request_model #CARRIER_LIFT1_SFSE
request_model #CARRIER_LIFT2_SFSE
request_model #CARRIER_DOOR_SFSE
request_model #MISSILE_07_SFXR
request_model #KMB_KEYPAD
load_all_models_now 

:MANSIO2_51878
if or
  not has_model_loaded 421
  not has_model_loaded 446
  not has_model_loaded 520
  not has_model_loaded 454
  not has_model_loaded 595
  not has_model_loaded 530
goto_if_false @MANSIO2_51930
wait 0
goto @MANSIO2_51878

:MANSIO2_51930
if or
  not has_model_loaded 287
  not has_model_loaded 50
goto_if_false @MANSIO2_51961
wait 0
goto @MANSIO2_51930

:MANSIO2_51961
if 
  not has_special_character_loaded 1
goto_if_false @MANSIO2_51987
wait 0
goto @MANSIO2_51961

:MANSIO2_51987
if or
  not has_model_loaded 347
  not has_model_loaded 335
  not has_model_loaded 356
goto_if_false @MANSIO2_52024
wait 0
goto @MANSIO2_51987

:MANSIO2_52024
if or
  not has_model_loaded #CARRIER_LIFT1_SFSE
  not has_model_loaded #CARRIER_LIFT2_SFSE
  not has_model_loaded #CARRIER_DOOR_SFSE
  not has_model_loaded #MISSILE_07_SFXR
  not has_model_loaded #KMB_KEYPAD
goto_if_false @MANSIO2_52068
wait 0
goto @MANSIO2_52024

:MANSIO2_52068
return 

:MANSIO2_52070
request_animation "CASINO"

:MANSIO2_52080
if 
  not has_animation_loaded "CASINO"
goto_if_false @MANSIO2_52112
wait 0
goto @MANSIO2_52080

:MANSIO2_52112
return 

:MANSIO2_52114
request_car_recording 208
request_car_recording 209
request_car_recording 211

:MANSIO2_52129
if or
  not has_car_recording_been_loaded 208
  not has_car_recording_been_loaded 209
  not has_car_recording_been_loaded 211
goto_if_false @MANSIO2_52166
wait 0
goto @MANSIO2_52129

:MANSIO2_52166
return 

:MANSIO2_52168
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @MANSIO2_52387 {caseNum1} 1 {caseLabel1} @MANSIO2_52249 {caseNum2} 2 {caseLabel2} @MANSIO2_52272 {caseNum3} 3 {caseLabel3} @MANSIO2_52295 {caseNum4} 4 {caseLabel4} @MANSIO2_52318 {caseNum5} 5 {caseLabel5} @MANSIO2_52341 {caseNum6} 6 {caseLabel6} @MANSIO2_52364 {caseNum7} -1 {caseLabel7} @MANSIO2_52387

:MANSIO2_52249
print_now 'MAN2_80' {time} 5000 {flag} 1
goto @MANSIO2_52387

:MANSIO2_52272
print_now 'MAN2_81' {time} 5000 {flag} 1
goto @MANSIO2_52387

:MANSIO2_52295
print_now 'MAN2_82' {time} 5000 {flag} 1
goto @MANSIO2_52387

:MANSIO2_52318
print_now 'MAN2_83' {time} 5000 {flag} 1
goto @MANSIO2_52387

:MANSIO2_52341
print_now 'MAN2_84' {time} 5000 {flag} 1
goto @MANSIO2_52387

:MANSIO2_52364
print_now 'MAN2_ZZ' {time} 5000 {flag} 1
goto @MANSIO2_52387

:MANSIO2_52387
if 
  is_player_playing $player1
goto_if_false @MANSIO2_52417
remove_weapon_from_char $scplayer {weaponType} WeaponType.PistolSilenced
remove_weapon_from_char $scplayer {weaponType} WeaponType.Knife

:MANSIO2_52417
return 

:MANSIO2_52419
print_with_number_big 'M_PASS' {num} 50000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 50000
clear_wanted_level $player1
play_mission_passed_tune 1
register_mission_passed 'MAN_2'
player_made_progress 1
set_int_stat StatId.PassedMansion2 {value} 1
print_now 'MAN2_34' {time} 7000 {flag} 1
$flag_mansion_mission_counter += 1
$gun_toreno1 = create_pickup 359 {pickupType} PickupType.OnStreetSlow {x} -686.0 {y} 934.0 {z} 13.5
$gun_toreno2 = create_pickup 360 {pickupType} PickupType.OnStreetSlow {x} -690.0 {y} 934.0 {z} 13.5
$gun_toreno3 = create_pickup 362 {pickupType} PickupType.OnStreetSlow {x} -690.0 {y} 939.0 {z} 13.5
$gun_toreno4 = create_pickup 361 {pickupType} PickupType.OnStreetSlow {x} -686.0 {y} 939.0 {z} 13.5
switch_car_generator $gen_car_flying[8] {amount} 101
switch_car_generator $gen_car_flying[9] {amount} 101
switch_car_generator $5181 {amount} 101
switch_car_generator $5182 {amount} 101
return 

:MANSIO2_52634
if 
  286@ == 1
goto_if_false @MANSIO2_52667
report_mission_audio_event_at_object 159@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
286@ = 0

:MANSIO2_52667
if 
  288@ == 1
goto_if_false @MANSIO2_52700
report_mission_audio_event_at_object 158@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
288@ = 0

:MANSIO2_52700
if 
  287@ == 1
goto_if_false @MANSIO2_52733
report_mission_audio_event_at_object 157@ {soundId} ScriptSound.SoundVerticalBirdLiftStop
287@ = 0

:MANSIO2_52733
if 
  289@ == 1
goto_if_false @MANSIO2_52778
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundVerticalBirdAlarmStop
289@ = 0

:MANSIO2_52778
mark_car_as_no_longer_needed 139@
mark_car_as_no_longer_needed 140@
mark_car_as_no_longer_needed 153@
mark_char_as_no_longer_needed 130@
mark_object_as_no_longer_needed 157@
mark_object_as_no_longer_needed 158@
mark_object_as_no_longer_needed 159@
mark_object_as_no_longer_needed 160@
48@ = 0

:MANSIO2_52825
mark_car_as_no_longer_needed 141@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_52825
48@ = 0

:MANSIO2_52862
mark_car_as_no_longer_needed 146@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52862
48@ = 0

:MANSIO2_52899
mark_car_as_no_longer_needed 149@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_52899
48@ = 0

:MANSIO2_52936
mark_car_as_no_longer_needed 154@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_52936
48@ = 0

:MANSIO2_52973
mark_char_as_no_longer_needed 131@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_52973
remove_blip 164@
remove_blip 165@
remove_blip 179@
48@ = 0

:MANSIO2_53025
remove_blip 166@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @MANSIO2_53025
48@ = 0

:MANSIO2_53062
remove_blip 169@(48@,4i)
48@ += 1
  48@ >= 4
goto_if_false @MANSIO2_53062
48@ = 0

:MANSIO2_53099
remove_blip 173@(48@,6i)
48@ += 1
  48@ >= 6
goto_if_false @MANSIO2_53099
clear_help 
remove_animation "CASINO"
mark_model_as_no_longer_needed 421
mark_model_as_no_longer_needed 446
mark_model_as_no_longer_needed 520
mark_model_as_no_longer_needed 454
mark_model_as_no_longer_needed 595
mark_model_as_no_longer_needed 530
mark_model_as_no_longer_needed 287
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 335
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed #CARRIER_LIFT1_SFSE
mark_model_as_no_longer_needed #CARRIER_LIFT2_SFSE
mark_model_as_no_longer_needed #CARRIER_DOOR_SFSE
mark_model_as_no_longer_needed #MISSILE_07_SFXR
mark_model_as_no_longer_needed #KMB_KEYPAD
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 360
mark_model_as_no_longer_needed 362
mark_model_as_no_longer_needed 361
unload_special_character 1
remove_car_recording 208
remove_car_recording 209
remove_car_recording 211
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
switch_ambient_planes True
release_weather 
set_disable_military_zones False
set_aircraft_carrier_sam_site True
force_interior_lighting_for_player $player1 {state} False
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO2_53327
enable_char_speech $scplayer

:MANSIO2_53327
$timer_mobile_start = get_game_timer 
$g_VB_REAR_DOOR = create_object_no_offset #CARRIER_DOOR_SFSE {x} -1465.797 {y} 501.289 {z} 1.145
set_object_dynamic $g_VB_REAR_DOOR {state} False
set_object_collision_damage_effect $g_VB_REAR_DOOR {state} False
set_object_proofs $g_VB_REAR_DOOR {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_REAR_DOOR
$g_VB_SMALL_LIFT = create_object_no_offset #CARRIER_LIFT2_SFSE {x} -1414.453 {y} 516.453 {z} 16.688
set_object_dynamic $g_VB_SMALL_LIFT {state} False
set_object_collision_damage_effect $g_VB_SMALL_LIFT {state} False
set_object_proofs $g_VB_SMALL_LIFT {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_SMALL_LIFT
$g_VB_BIG_LIFT = create_object_no_offset #CARRIER_LIFT1_SFSE {x} -1456.719 {y} 501.297 {z} 16.953
set_object_dynamic $g_VB_BIG_LIFT {state} False
set_object_collision_damage_effect $g_VB_BIG_LIFT {state} False
set_object_proofs $g_VB_BIG_LIFT {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
dont_remove_object $g_VB_BIG_LIFT
$onmission = 0
mission_has_finished 
return 

//-------------Mission 104---------------
// Originally: Home Coming

:MANSIO3
script_name 'MANSIO3'
gosub @MANSIO3_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSIO3_38
gosub @MANSIO3_6722

:MANSIO3_38
gosub @MANSIO3_6948
terminate_this_script 

:MANSIO3_47
load_mission_text 'MAN_3'
set_player_group_to_follow_always $player1 {state} True
can_trigger_gang_war_when_on_a_mission True
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
$onmission = 1
82@ = 2
wait 0
load_special_character 1 {modelName} 'SWEET'
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO3_125
if 
  get_fading_status 
goto_if_false @MANSIO3_149
wait 0
goto @MANSIO3_125

:MANSIO3_149
force_weather_now WeatherType.SunnyLa
set_area_visible 5
load_cutscene 'BHILL3A'

:MANSIO3_168
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO3_192
wait 0
goto @MANSIO3_168

:MANSIO3_192
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:MANSIO3_209
if 
  not has_cutscene_finished 
goto_if_false @MANSIO3_233
wait 0
goto @MANSIO3_209

:MANSIO3_233
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:MANSIO3_247
if 
  get_fading_status 
goto_if_false @MANSIO3_271
wait 0
goto @MANSIO3_247

:MANSIO3_271
clear_cutscene 
set_area_visible 0
release_weather 
request_model 540
request_model 28
request_model 106
request_model 355
request_model 29
request_animation "GANGS"
request_animation "CRACK"
request_car_recording 488
stream_script 19
load_all_models_now 

:MANSIO3_330
if or
  not has_model_loaded 540
  not has_special_character_loaded 1
  not has_model_loaded 106
goto_if_false @MANSIO3_365
wait 0
goto @MANSIO3_330

:MANSIO3_365
if or
  not has_animation_loaded "GANGS"
  not has_animation_loaded "CRACK"
  not has_model_loaded 28
goto_if_false @MANSIO3_409
wait 0
goto @MANSIO3_365

:MANSIO3_409
if or
  not has_streamed_script_loaded 19
  not has_car_recording_been_loaded 488
  not has_model_loaded 355
  not has_model_loaded 29
goto_if_false @MANSIO3_449
wait 0
goto @MANSIO3_409

:MANSIO3_449
request_collision 1251.541 {y} -808.7633
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 40
can_trigger_gang_war_when_on_a_mission False
52@ = create_char PedType.CivMale {modelId} 28 {x} 2488.6169 {y} -1671.536 {z} -10.0
start_new_streamed_script 19 {args} 52@ 
56@ = add_blip_for_coord 2514.4609 {y} -1674.104 {z} 12.6425
57@ = add_blip_for_coord 1521.252 {y} -1673.3361 {z} 12.5607
change_blip_display 56@ {display} BlipDisplay.Neither
change_blip_display 57@ {display} BlipDisplay.Both
clear_area 1245.049 {y} -811.1318 {z} 83.1477 {radius} 10.0 {clearParticles} True
60@ = create_car 540 {x} 1245.049 {y} -811.1318 {z} 83.1477
change_car_colour 60@ {color1} 0 {color2} 0
set_car_heading 60@ {heading} 181.4888
set_car_traction 60@ {traction} 2.0
set_char_coordinates $scplayer {x} 1251.541 {y} -808.7633 {z} 83.1484
set_char_heading $scplayer {heading} 109.0044
79@ = add_blip_for_coord 2485.5271 {y} -1668.528 {z} 12.3438
change_blip_display 79@ {display} BlipDisplay.Neither
set_camera_behind_player 
restore_camera_jumpcut 
load_scene_in_direction 1251.541 {y} -808.7633 {z} 83.1484 {heading} 109.0044
gosub @MANSIO3_7345
print_now 'MAN3_01' {time} 7000 {flag} 1

:MANSIO3_763
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_5468
wait 0
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @MANSIO3_805
goto @MANSIO3_6740

:MANSIO3_805
gosub @MANSIO3_7378
gosub @MANSIO3_7833
if 
  64@ == 0
goto_if_false @MANSIO3_1823
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_877
61@ = store_car_char_is_in $scplayer
62@ = get_maximum_number_of_passengers 61@
84@ = get_number_of_passengers 61@

:MANSIO3_877
if 
  locate_char_any_means_3d $scplayer {x} 1521.194 {y} -1671.913 {z} 12.5625 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @MANSIO3_1823
if 
  62@ == 0
goto_if_false @MANSIO3_959
print_now 'MAN3_19' {time} 3000 {flag} 1

:MANSIO3_959
if 
  is_int_lvar_equal_to_int_lvar 84@ == 62@
goto_if_false @MANSIO3_1043
if or
  is_char_in_any_heli $scplayer
  is_char_in_any_plane $scplayer
  is_char_in_flying_vehicle $scplayer
goto_if_false @MANSIO3_1027
print_now 'MAN3_69' {time} 3000 {flag} 1
goto @MANSIO3_1043

:MANSIO3_1027
print_now 'MAN3_34' {time} 3000 {flag} 1

:MANSIO3_1043
if and
  62@ > 0
  not is_int_lvar_equal_to_int_lvar 84@ == 62@
goto_if_false @MANSIO3_1823
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_1807
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_1131
$car = store_car_char_is_in $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:MANSIO3_1131
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO3_1153
if 
  get_fading_status 
goto_if_false @MANSIO3_1177
wait 0
goto @MANSIO3_1153

:MANSIO3_1177
make_player_safe_for_cutscene $player1
if 
  not is_car_dead 60@
goto_if_false @MANSIO3_1251
if 
  locate_car_3d 60@ {x} 1542.73 {y} -1675.697 {z} 12.5551 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MANSIO3_1251
delete_car 60@

:MANSIO3_1251
clear_area 1542.73 {y} -1675.697 {z} 12.5551 {radius} 60.0 {clearParticles} True
load_cutscene 'BHILL3B'

:MANSIO3_1286
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO3_1310
wait 0
goto @MANSIO3_1286

:MANSIO3_1310
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSIO3_1319
if 
  not has_cutscene_finished 
goto_if_false @MANSIO3_1343
wait 0
goto @MANSIO3_1319

:MANSIO3_1343
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSIO3_1358
if 
  get_fading_status 
goto_if_false @MANSIO3_1382
wait 0
goto @MANSIO3_1358

:MANSIO3_1382
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_1434
if 
  not is_car_dead $car
goto_if_false @MANSIO3_1434
set_car_coordinates $car {x} 1521.194 {y} -1671.913 {z} 12.5625

:MANSIO3_1434
if 
  not is_car_dead $car
goto_if_false @MANSIO3_1518
make_room_in_player_gang_for_mission_peds 1
$sweet = create_char_as_passenger $car {pedType} PedType.Mission2 {modelId} 290 {seat} SeatId.BikeRear
set_char_health $sweet {health} 700
set_char_max_health $sweet {maxHealth} 700
set_anim_group_for_char $sweet {animGroup} "GANG2"
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
set_char_accuracy $sweet {accuracy} 90

:MANSIO3_1518
if and
  not is_char_dead $sweet
  not is_car_dead $car
  not is_char_dead $scplayer
goto_if_false @MANSIO3_1593
if 
  not is_char_in_car $scplayer {vehicle} $car
goto_if_false @MANSIO3_1571
warp_char_into_car $scplayer {vehicle} $car

:MANSIO3_1571
58@ = add_blip_for_char $sweet
set_blip_as_friendly 58@ {state} True
change_blip_display 58@ {display} BlipDisplay.Neither

:MANSIO3_1593
TIMERB = 0
change_blip_display 56@ {display} BlipDisplay.Both
change_blip_display 57@ {display} BlipDisplay.Neither
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_1642
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_1642
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
72@ = get_char_heading $scplayer
if 
  not is_car_dead $car
goto_if_false @MANSIO3_1779
if and
  72@ > 90.0
  270.0 > 72@
goto_if_false @MANSIO3_1747
load_scene_in_direction 1521.194 {y} -1671.913 {z} 12.5625 {heading} 180.0
set_car_heading $car {heading} 180.0
goto @MANSIO3_1779

:MANSIO3_1747
load_scene_in_direction 1521.194 {y} -1671.913 {z} 12.5625 {heading} 0.0
set_car_heading $car {heading} 0.0

:MANSIO3_1779
gosub @MANSIO3_7345
59@ = 1
64@ = 1
goto @MANSIO3_1823

:MANSIO3_1807
print_now 'MAN3_08' {time} 4000 {flag} 1

:MANSIO3_1823
if 
  59@ <> 0
goto_if_false @MANSIO3_2226
if and
  TIMERB > 1000
  59@ == 1
goto_if_false @MANSIO3_1949
if 
  not is_char_dead $ryder
goto_if_false @MANSIO3_1890
shut_char_up_for_scripted_speech $ryder {state} True

:MANSIO3_1890
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_1913
shut_char_up_for_scripted_speech $scplayer {state} True

:MANSIO3_1913
set_lvar_text_label 86@s = 'MAN3_AA'
set_lvar_int_to_constant 83@ = 24200
gosub @MANSIO3_7813
59@ = 2

:MANSIO3_1949
if and
  82@ == 2
  59@ == 2
goto_if_false @MANSIO3_2010
set_lvar_text_label 86@s = 'MAN3_AB'
set_lvar_int_to_constant 83@ = 24201
gosub @MANSIO3_7813
59@ = 3

:MANSIO3_2010
if and
  82@ == 2
  59@ == 3
goto_if_false @MANSIO3_2071
set_lvar_text_label 86@s = 'MAN3_AC'
set_lvar_int_to_constant 83@ = 24202
gosub @MANSIO3_7813
59@ = 4

:MANSIO3_2071
if and
  82@ == 2
  59@ == 4
goto_if_false @MANSIO3_2132
set_lvar_text_label 86@s = 'MAN3_AD'
set_lvar_int_to_constant 83@ = 24203
gosub @MANSIO3_7813
59@ = 5

:MANSIO3_2132
if and
  82@ == 2
  59@ == 5
goto_if_false @MANSIO3_2226
print_now 'MAN3_05' {time} 7000 {flag} 1
59@ = 0
if 
  not is_char_dead $ryder
goto_if_false @MANSIO3_2203
shut_char_up_for_scripted_speech $ryder {state} False

:MANSIO3_2203
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_2226
shut_char_up_for_scripted_speech $scplayer {state} False

:MANSIO3_2226
if or
  64@ == 1
  64@ == 2
goto_if_false @MANSIO3_3847
if 
  is_char_dead $sweet
goto_if_false @MANSIO3_2290
print_now 'MAN3_11' {time} 4000 {flag} 1
goto @MANSIO3_6722

:MANSIO3_2290
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_2320
53@, 54@, 55@ = get_char_coordinates $sweet

:MANSIO3_2320
if 
  locate_char_any_means_3d $scplayer {x} 53@ {y} 54@ {z} 55@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @MANSIO3_2421
change_blip_display 58@ {display} BlipDisplay.Neither
change_blip_display 56@ {display} BlipDisplay.Both
if 
  not is_group_member $sweet {handle} $Players_Group
goto_if_false @MANSIO3_2407
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_2407
64@ = 1
goto @MANSIO3_2482

:MANSIO3_2421
print_now 'MAN3_03' {time} 4000 {flag} 1
change_blip_display 58@ {display} BlipDisplay.Both
change_blip_display 56@ {display} BlipDisplay.Neither
if 
  is_group_member $sweet {handle} $Players_Group
goto_if_false @MANSIO3_2475
remove_char_from_group $sweet

:MANSIO3_2475
64@ = 2

:MANSIO3_2482
if 
  64@ == 1
goto_if_false @MANSIO3_3847
if 
  locate_char_any_means_3d $scplayer {x} 2514.4609 {y} -1674.104 {z} 12.6425 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @MANSIO3_3847
set_player_control $player1 {state} False
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_2594
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000

:MANSIO3_2594
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:MANSIO3_2609
if 
  get_fading_status 
goto_if_false @MANSIO3_2633
wait 0
goto @MANSIO3_2609

:MANSIO3_2633
make_player_safe_for_cutscene $player1
if 
  not is_car_dead 60@
goto_if_false @MANSIO3_2756
if 
  locate_car_3d 60@ {x} 2492.8889 {y} -1666.564 {z} 12.3438 {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @MANSIO3_2756
clear_area 2482.9939 {y} -1653.609 {z} 12.461 {radius} 10.0 {clearParticles} True
set_car_coordinates 60@ {x} 2482.9939 {y} -1653.609 {z} 12.461
set_car_heading 60@ {heading} 273.1021

:MANSIO3_2756
clear_area 2492.8889 {y} -1666.564 {z} 12.3438 {radius} 60.0 {clearParticles} True
load_cutscene 'BHILL3C'

:MANSIO3_2791
if 
  not has_cutscene_loaded 
goto_if_false @MANSIO3_2815
wait 0
goto @MANSIO3_2791

:MANSIO3_2815
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSIO3_2824
if 
  not has_cutscene_finished 
goto_if_false @MANSIO3_2848
wait 0
goto @MANSIO3_2824

:MANSIO3_2848
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSIO3_2863
if 
  get_fading_status 
goto_if_false @MANSIO3_2887
wait 0
goto @MANSIO3_2863

:MANSIO3_2887
88@ = open_sequence_task 
task_play_anim -1 {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 88@ {state} True
close_sequence_task 88@
89@ = open_sequence_task 
task_pause -1 {time} 1000
set_sequence_to_repeat 89@ {state} True
close_sequence_task 89@
change_blip_display 56@ {display} BlipDisplay.Neither
64@ = 3
40@ = create_char PedType.CivMale {modelId} 28 {x} 2429.1899 {y} -1677.537 {z} 12.7231
set_char_heading 40@ {heading} 306.1672
perform_sequence_task 40@ {sequence} 88@
34@ = add_blip_for_char 40@
47@ = create_char PedType.CivMale {modelId} 106 {x} 2430.5859 {y} -1677.075 {z} 12.7135
set_char_heading 47@ {heading} 80.528
perform_sequence_task 47@ {sequence} 89@
48@ = create_char PedType.CivMale {modelId} 106 {x} 2513.364 {y} -1649.865 {z} 13.5588
set_char_heading 48@ {heading} 140.4164
task_play_anim 48@ {animationName} "CRCKIDLE1" {animationFile} "CRACK" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
apply_brakes_to_players_car $player1 {state} False
gosub @MANSIO3_7280
load_scene_in_direction 2424.1841 {y} -1679.58 {z} 12.7653 {heading} 322.7617
set_fixed_camera_position 2427.2271 {y} -1681.12 {z} 13.891 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2427.8081 {y} -1680.306 {z} 13.8707 {switchStyle} SwitchType.JumpCut
print_now 'MAN3_20' {time} 5000 {flag} 1
gosub @MANSIO3_7345
wait 1000
TIMERB = 0

:MANSIO3_3263
if 
  4000 > TIMERB
goto_if_false @MANSIO3_3324
wait 0
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  $has_seen_this_cutscene == 1
goto_if_false @MANSIO3_3317
goto @MANSIO3_3459

:MANSIO3_3317
goto @MANSIO3_3263

:MANSIO3_3324
set_fixed_camera_position 2507.9839 {y} -1652.199 {z} 15.6974 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2508.8921 {y} -1651.913 {z} 15.3924 {switchStyle} SwitchType.JumpCut
print_now 'MAN3_21' {time} 5000 {flag} 1
TIMERB = 0

:MANSIO3_3398
if 
  5000 > TIMERB
goto_if_false @MANSIO3_3459
wait 0
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  $has_seen_this_cutscene == 1
goto_if_false @MANSIO3_3452
goto @MANSIO3_3459

:MANSIO3_3452
goto @MANSIO3_3398

:MANSIO3_3459
$has_seen_this_cutscene = 1
85@ = 1
can_trigger_gang_war_when_on_a_mission True
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_3568
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_3536
warp_char_from_car_to_coord $scplayer {x} 2506.0591 {y} -1671.968 {z} 12.379
goto @MANSIO3_3556

:MANSIO3_3536
set_char_coordinates $scplayer {x} 2506.0591 {y} -1671.968 {z} 12.379

:MANSIO3_3556
set_camera_behind_player 
set_char_heading $scplayer {heading} 62.4295

:MANSIO3_3568
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_3674
if 
  is_char_in_any_car $sweet
goto_if_false @MANSIO3_3627
warp_char_from_car_to_coord $sweet {x} 2506.5669 {y} -1670.212 {z} 12.3822
goto @MANSIO3_3647

:MANSIO3_3627
set_char_coordinates $sweet {x} 2506.5669 {y} -1670.212 {z} 12.3822

:MANSIO3_3647
give_weapon_to_char $sweet {weaponType} WeaponType.Ak47 {ammo} 300
set_current_char_weapon $sweet {weaponType} WeaponType.Ak47
set_char_heading $sweet {heading} 113.0677

:MANSIO3_3674
if 
  not is_group_member $sweet {handle} $Players_Group
goto_if_false @MANSIO3_3705
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_3705
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 40
delete_char 47@
59@ = 0
gosub @MANSIO3_7293
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_3824
set_char_health $sweet {health} 700
set_char_max_health $sweet {maxHealth} 700
$m3_sweets_health = get_char_health $sweet

:MANSIO3_3824
$m3_sweets_health /= 7
display_onscreen_counter_with_string $m3_sweets_health {display} CounterDisplay.Bar {text} 'MAN3_32'

:MANSIO3_3847
if 
  64@ == 3
goto_if_false @MANSIO3_4151
print_now 'MAN3_22' {time} 7000 {flag} 1
41@ = create_char PedType.Dealer {modelId} 29 {x} 2482.0869 {y} -1696.119 {z} 12.5267
set_char_heading 41@ {heading} 0.095
35@ = add_blip_for_char 41@
42@ = create_char PedType.Dealer {modelId} 28 {x} 2451.6809 {y} -1644.083 {z} 12.457
set_char_heading 42@ {heading} 186.2393
36@ = add_blip_for_char 42@
43@ = create_char PedType.Dealer {modelId} 29 {x} 2415.79 {y} -1631.1429 {z} 12.5114
set_char_heading 43@ {heading} 287.5167
37@ = add_blip_for_char 43@
44@ = create_char PedType.Dealer {modelId} 28 {x} 2364.3611 {y} -1666.775 {z} 12.5469
set_char_heading 44@ {heading} 343.1245
38@ = add_blip_for_char 44@
45@ = create_char PedType.Dealer {modelId} 28 {x} 2370.333 {y} -1637.42 {z} 12.477
set_char_heading 45@ {heading} 140.6299
39@ = add_blip_for_char 45@
start_new_streamed_script 19 {args} 40@ 
start_new_streamed_script 19 {args} 41@ 
start_new_streamed_script 19 {args} 42@ 
start_new_streamed_script 19 {args} 43@ 
start_new_streamed_script 19 {args} 44@ 
start_new_streamed_script 19 {args} 45@ 
delete_char 52@
64@ = 4

:MANSIO3_4151
if 
  64@ == 4
goto_if_false @MANSIO3_5461
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_4200
$m3_sweets_health = get_char_health $sweet
$m3_sweets_health /= 7

:MANSIO3_4200
75@ = get_zone_gang_strength 'GAN1' {gangId} GangType.Ballas
if 
  75@ == 0
goto_if_false @MANSIO3_4511
if 
  74@ == 0
goto_if_false @MANSIO3_4511
74@ = 1
if 
  73@ == 0
goto_if_false @MANSIO3_4504
gosub @MANSIO3_7280
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_4350
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_4350
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_4416
clear_char_tasks_immediately $sweet
task_play_anim_non_interruptable $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_4416
print_now 'MAN3_33' {time} 4000 {flag} 1
wait 4000
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 0
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang2 {toPedType} PedType.Gang1
gosub @MANSIO3_7293
TIMERB = 0
goto @MANSIO3_4511

:MANSIO3_4504
goto @MANSIO3_5475

:MANSIO3_4511
if and
  74@ == 1
  TIMERB > 4000
  81@ == 0
goto_if_false @MANSIO3_4567
print_now 'MAN3_29' {time} 10000 {flag} 1
81@ = 1

:MANSIO3_4567
if and
  is_player_in_info_zone $player1 {infoZone} 'GAN1'
  74@ == 0
  85@ == 1
goto_if_false @MANSIO3_4669
if and
  78@ == 0
  not is_gang_war_going_on 
goto_if_false @MANSIO3_4662
can_trigger_gang_war_when_on_a_mission True
set_gang_wars_active True
if 
  does_blip_exist 79@
goto_if_false @MANSIO3_4655
remove_blip 79@

:MANSIO3_4655
78@ = 1

:MANSIO3_4662
$m3_in_the_zone = 1

:MANSIO3_4669
if and
  not is_player_in_info_zone $player1 {infoZone} 'GAN1'
  74@ == 0
  85@ == 1
goto_if_false @MANSIO3_4802
if and
  78@ == 1
  not is_gang_war_going_on 
goto_if_false @MANSIO3_4795
can_trigger_gang_war_when_on_a_mission False
set_gang_wars_active False
print_now 'MAN3_31' {time} 6000 {flag} 1
if 
  not does_blip_exist 79@
goto_if_false @MANSIO3_4788
79@ = add_blip_for_coord 2485.5271 {y} -1668.528 {z} 12.3438

:MANSIO3_4788
78@ = 0

:MANSIO3_4795
$m3_in_the_zone = 0

:MANSIO3_4802
if 
  is_char_dead $sweet
goto_if_false @MANSIO3_4841
print_now 'MAN3_11' {time} 4000 {flag} 1
goto @MANSIO3_6722

:MANSIO3_4841
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_4871
53@, 54@, 55@ = get_char_coordinates $sweet

:MANSIO3_4871
if 
  locate_char_any_means_3d $scplayer {x} 53@ {y} 54@ {z} 55@ {xRadius} 35.0 {yRadius} 35.0 {zRadius} 35.0 {drawSphere} False
goto_if_false @MANSIO3_5022
if 
  70@ == 1
goto_if_false @MANSIO3_5015
change_blip_display 58@ {display} BlipDisplay.Neither
change_blip_display 34@ {display} BlipDisplay.Both
change_blip_display 35@ {display} BlipDisplay.Both
change_blip_display 36@ {display} BlipDisplay.Both
change_blip_display 37@ {display} BlipDisplay.Both
change_blip_display 38@ {display} BlipDisplay.Both
change_blip_display 39@ {display} BlipDisplay.Both
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_5008
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:MANSIO3_5008
70@ = 0

:MANSIO3_5015
goto @MANSIO3_5133

:MANSIO3_5022
if 
  70@ == 0
goto_if_false @MANSIO3_5133
print_now 'MAN3_03' {time} 10000 {flag} 1
change_blip_display 58@ {display} BlipDisplay.Both
change_blip_display 34@ {display} BlipDisplay.Neither
change_blip_display 35@ {display} BlipDisplay.Neither
change_blip_display 36@ {display} BlipDisplay.Neither
change_blip_display 37@ {display} BlipDisplay.Neither
change_blip_display 38@ {display} BlipDisplay.Neither
change_blip_display 39@ {display} BlipDisplay.Neither
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_5126
remove_char_from_group $sweet

:MANSIO3_5126
70@ = 1

:MANSIO3_5133
if and
  is_char_dead 40@
  does_blip_exist 34@
goto_if_false @MANSIO3_5159
remove_blip 34@

:MANSIO3_5159
if and
  is_char_dead 41@
  does_blip_exist 35@
goto_if_false @MANSIO3_5185
remove_blip 35@

:MANSIO3_5185
if and
  is_char_dead 42@
  does_blip_exist 36@
goto_if_false @MANSIO3_5211
remove_blip 36@

:MANSIO3_5211
if and
  is_char_dead 43@
  does_blip_exist 37@
goto_if_false @MANSIO3_5237
remove_blip 37@

:MANSIO3_5237
if and
  is_char_dead 44@
  does_blip_exist 38@
goto_if_false @MANSIO3_5263
remove_blip 38@

:MANSIO3_5263
if and
  is_char_dead 45@
  does_blip_exist 39@
goto_if_false @MANSIO3_5289
remove_blip 39@

:MANSIO3_5289
if and
  77@ == 1
  TIMERA > 4000
goto_if_false @MANSIO3_5333
print_help 'MAN3_30'
77@ = 2

:MANSIO3_5333
if and
  is_char_dead 40@
  is_char_dead 41@
  is_char_dead 42@
  is_char_dead 43@
  is_char_dead 44@
  is_char_dead 45@
goto_if_false @MANSIO3_5461
if 
  73@ == 0
goto_if_false @MANSIO3_5461
73@ = 1
if 
  74@ == 0
goto_if_false @MANSIO3_5454
print_now 'MAN3_28' {time} 10000 {flag} 1
TIMERA = 0
77@ = 1
goto @MANSIO3_5461

:MANSIO3_5454
goto @MANSIO3_5475

:MANSIO3_5461
goto @MANSIO3_763

:MANSIO3_5468
goto @MANSIO3_6722

:MANSIO3_5475
gosub @MANSIO3_7312
gosub @MANSIO3_7280
if and
  not is_char_dead $scplayer
  not is_char_dead $sweet
goto_if_false @MANSIO3_5723
remove_char_from_group $sweet
clear_area 2512.761 {y} -1672.52 {z} 12.5034 {radius} 20.0 {clearParticles} True
delete_car 60@
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSIO3_5607
warp_char_from_car_to_coord $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034
warp_char_from_car_to_coord $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861
goto @MANSIO3_5647

:MANSIO3_5607
set_char_coordinates $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034
set_char_coordinates $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861

:MANSIO3_5647
delete_car 60@
set_char_heading $scplayer {heading} 240.2609
task_turn_char_to_face_char $scplayer {target} $sweet
set_char_heading $sweet {heading} 73.5014
task_turn_char_to_face_char $sweet {target} $scplayer
task_toggle_ped_threat_scanner $sweet {onFoot} False {inCar} False {duringScriptTask} False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed

:MANSIO3_5723
load_scene 2512.761 {y} -1672.52 {z} 12.5034
load_scene_in_direction 2512.761 {y} -1672.52 {z} 12.5034 {heading} 240.2609
set_fixed_camera_position 2509.7981 {y} -1672.175 {z} 13.4192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.752 {y} -1672.457 {z} 13.5178 {switchStyle} SwitchType.JumpCut
gosub @MANSIO3_7345
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_5886
task_play_anim $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:MANSIO3_5886
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_5952
task_play_anim $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:MANSIO3_5952
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 24204

:MANSIO3_5963
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_5989
wait 0
goto @MANSIO3_5963

:MANSIO3_5989
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BA' {time} 4000 {flag} 1
TIMERB = 0

:MANSIO3_6016
if 
  4000 > TIMERB
goto_if_false @MANSIO3_6070
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6063
goto @MANSIO3_6701

:MANSIO3_6063
goto @MANSIO3_6016

:MANSIO3_6070
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 24205

:MANSIO3_6081
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6107
wait 0
goto @MANSIO3_6081

:MANSIO3_6107
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BB' {time} 3000 {flag} 1
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_6184
clear_char_tasks_immediately $sweet
task_play_anim $sweet {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_6184
TIMERB = 0

:MANSIO3_6191
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6245
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6238
goto @MANSIO3_6701

:MANSIO3_6238
goto @MANSIO3_6191

:MANSIO3_6245
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 24206

:MANSIO3_6256
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6282
wait 0
goto @MANSIO3_6256

:MANSIO3_6282
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BC' {time} 3000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_6359
clear_char_tasks_immediately $scplayer
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_6359
TIMERB = 0

:MANSIO3_6366
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6420
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6413
goto @MANSIO3_6701

:MANSIO3_6413
goto @MANSIO3_6366

:MANSIO3_6420
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 24207

:MANSIO3_6431
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6457
wait 0
goto @MANSIO3_6431

:MANSIO3_6457
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BD' {time} 3000 {flag} 1
TIMERB = 0

:MANSIO3_6484
if 
  3000 > TIMERB
goto_if_false @MANSIO3_6538
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6531
goto @MANSIO3_6701

:MANSIO3_6531
goto @MANSIO3_6484

:MANSIO3_6538
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_6583
clear_char_tasks_immediately $scplayer
task_go_to_coord_any_means $scplayer {x} 2507.793 {y} -1668.927 {z} 12.3879 {speed} MoveState.Walk {vehicle} -1

:MANSIO3_6583
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 24208

:MANSIO3_6594
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @MANSIO3_6620
wait 0
goto @MANSIO3_6594

:MANSIO3_6620
play_mission_audio MissionAudioSlot.Slot1
print_now 'MAN3_BE' {time} 2000 {flag} 1
TIMERB = 0

:MANSIO3_6647
if 
  2000 > TIMERB
goto_if_false @MANSIO3_6701
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @MANSIO3_6694
goto @MANSIO3_6701

:MANSIO3_6694
goto @MANSIO3_6647

:MANSIO3_6701
gosub @MANSIO3_7293
set_camera_behind_player 
delete_char $sweet
goto @MANSIO3_6740

:MANSIO3_6722
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:MANSIO3_6740
can_trigger_gang_war_when_on_a_mission True
set_gang_wars_active True
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 40
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 0
start_new_script @GROVE 
remove_blip $grove_contact_blip
$grove_contact_blip = add_sprite_blip_for_contact_point $introX {y} $introY {z} $introZ {sprite} $grove_blip_icon
$flag_mansion_mission_counter += 1
player_made_progress 1
register_mission_passed 'MAN_3'
print_with_number_big 'M_PASSR' {num} 40 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
$territory_pickup = create_protection_pickup 2502.1001 {y} -1686.38 {z} 13.0 {revenueLimit} 10000 {revenueRate} $territory_cash
start_new_script @TCASH 
$terminted_territory_pickup = 0
play_mission_passed_tune 1
clear_wanted_level $player1
set_int_stat StatId.PassedMansion3 {value} 1
65@ = 1
return 

:MANSIO3_6948
if 
  65@ == 0
goto_if_false @MANSIO3_7034
can_trigger_gang_war_when_on_a_mission False
set_gang_wars_active False
set_zone_gang_strength 'GAN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GAN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GAN2' {gangId} GangType.Ballas {density} 40

:MANSIO3_7034
clear_onscreen_counter $m3_sweets_health
set_relationship RelationshipType.Like {ofPedType} PedType.Gang2 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Gang2 {toPedType} PedType.Gang1
$onmission = 0
$timer_mobile_start = get_game_timer 
$gf_game_timer = get_game_timer 
mark_model_as_no_longer_needed 540
mark_model_as_no_longer_needed 437
mark_model_as_no_longer_needed 28
mark_model_as_no_longer_needed 106
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 29
mark_streamed_script_as_no_longer_needed 19
unload_special_character 1
remove_animation "GANGS"
remove_animation "CRACK"
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_7146
remove_char_elegantly $sweet

:MANSIO3_7146
if 
  does_blip_exist 79@
goto_if_false @MANSIO3_7167
remove_blip 79@

:MANSIO3_7167
if 
  does_blip_exist 34@
goto_if_false @MANSIO3_7188
remove_blip 34@

:MANSIO3_7188
if 
  does_blip_exist 35@
goto_if_false @MANSIO3_7209
remove_blip 35@

:MANSIO3_7209
if 
  does_blip_exist 57@
goto_if_false @MANSIO3_7230
remove_blip 57@

:MANSIO3_7230
if 
  does_blip_exist 56@
goto_if_false @MANSIO3_7251
remove_blip 56@

:MANSIO3_7251
if 
  does_blip_exist 58@
goto_if_false @MANSIO3_7272
remove_blip 58@

:MANSIO3_7272
restore_camera_jumpcut 
set_camera_behind_player 
mission_has_finished 
return 

:MANSIO3_7280
switch_widescreen True
set_player_control $player1 {state} False
return 

:MANSIO3_7293
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 

:MANSIO3_7312
do_fade 500 {direction} Fade.Out

:MANSIO3_7319
if 
  get_fading_status 
goto_if_false @MANSIO3_7343
wait 0
goto @MANSIO3_7319

:MANSIO3_7343
return 

:MANSIO3_7345
do_fade 500 {direction} Fade.In

:MANSIO3_7352
if 
  get_fading_status 
goto_if_false @MANSIO3_7376
wait 0
goto @MANSIO3_7352

:MANSIO3_7376
return 

:MANSIO3_7378
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @MANSIO3_7441
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_7441
set_char_coordinates $scplayer {x} 1522.09 {y} -1662.082 {z} 12.5469
set_char_heading $scplayer {heading} 175.5419
set_camera_behind_player 

:MANSIO3_7441
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @MANSIO3_7456

:MANSIO3_7456
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @MANSIO3_7519
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_7519
set_char_coordinates $scplayer {x} 2503.688 {y} -1671.453 {z} 12.3707
set_char_heading $scplayer {heading} 255.1807
set_camera_behind_player 

:MANSIO3_7519
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @MANSIO3_7701
gosub @MANSIO3_7280
if 
  not is_char_dead $scplayer
goto_if_false @MANSIO3_7607
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_7607
if 
  not is_char_dead $sweet
goto_if_false @MANSIO3_7673
clear_char_tasks_immediately $sweet
task_play_anim_non_interruptable $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:MANSIO3_7673
print_now 'MAN3_33' {time} 4000 {flag} 1
wait 4000
gosub @MANSIO3_7293

:MANSIO3_7701
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @MANSIO3_7723
goto @MANSIO3_5475

:MANSIO3_7723
if 
is_ps2_keyboard_key_just_pressed 90
goto_if_false @MANSIO3_7796
if 
  not is_car_dead 61@
goto_if_false @MANSIO3_7796
46@ = create_char_as_passenger 61@ {pedType} PedType.CivMale {modelId} 106 {seat} SeatId.BikeRear
47@ = create_char_as_passenger 61@ {pedType} PedType.CivMale {modelId} 106 {seat} SeatId.RearLeft
48@ = create_char_as_passenger 61@ {pedType} PedType.CivMale {modelId} 106 {seat} SeatId.RearRight

:MANSIO3_7796
if 
is_ps2_keyboard_key_just_pressed 77
goto_if_false @MANSIO3_7811

:MANSIO3_7811
return 

:MANSIO3_7813
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 83@
82@ = 0
return 

:MANSIO3_7833
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  82@ == 0
goto_if_false @MANSIO3_7876
play_mission_audio MissionAudioSlot.Slot1
print_now 86@s {time} 10000 {flag} 1
82@ = 1

:MANSIO3_7876
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  82@ == 1
goto_if_false @MANSIO3_7914
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 86@s
82@ = 2

:MANSIO3_7914
return 

//-------------Mission 105---------------
// Originally: Cut Throat Business

:MANSON5
script_name 'MANSON5'
gosub @MANSON5_47
if 
  has_deatharrest_been_executed 
goto_if_false @MANSON5_38
gosub @MANSON5_13113

:MANSON5_38
gosub @MANSON5_13159
terminate_this_script 

:MANSON5_47
register_mission_given 
$onmission = 1
load_mission_text 'MAN_5'
set_player_group_recruitment $player1 {state} False
set_script_limit_to_gang_size 0
set_area_visible 5
load_cutscene 'BHILL5A'

:MANSON5_93
if 
  not has_cutscene_loaded 
goto_if_false @MANSON5_117
wait 0
goto @MANSON5_93

:MANSON5_117
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSON5_126
if 
  not has_cutscene_finished 
goto_if_false @MANSON5_150
wait 0
goto @MANSON5_126

:MANSON5_150
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSON5_165
if 
  get_fading_status 
goto_if_false @MANSON5_189
wait 0
goto @MANSON5_165

:MANSON5_189
set_area_visible 0
set_script_limit_to_gang_size 99
start_new_script @A_CONT 
force_weather_now WeatherType.ExtraSunnyLa
52@ = load_char_decision_maker DecisionMakerType.Empty
load_special_character 1 {modelName} 'MADDOGG'
request_model 424

:MANSON5_234
if or
  not has_special_character_loaded 1
  not has_model_loaded 424
goto_if_false @MANSON5_265
wait 0
goto @MANSON5_234

:MANSON5_265
clear_area 1252.4709 {y} -805.5187 {z} 83.1484 {radius} 400.0 {clearParticles} True
load_scene 1252.4709 {y} -805.5187 {z} 83.1484
request_collision 1252.4709 {y} -805.5187
set_char_coordinates $scplayer {x} 1252.4709 {y} -805.5187 {z} 83.1484
set_char_heading $scplayer {heading} 144.1434
51@ = get_player_group $player1
set_group_default_task_allocator 51@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans
34@ = create_char PedType.Special {modelId} 290 {x} 1254.311 {y} -810.8859 {z} 83.1484
set_char_heading 34@ {heading} 60.7435
set_char_never_leaves_group 34@ {state} True
set_group_member 51@ {handle} 34@
set_char_drowns_in_water 34@ {state} True
set_char_decision_maker 34@ {handleOrTemplate} 52@
set_char_never_targetted 34@ {state} True
set_char_cant_be_dragged_out 34@ {state} True
37@ = add_blip_for_char 34@
set_blip_as_friendly 37@ {state} True
change_blip_display 37@ {display} BlipDisplay.BlipOnly
custom_plate_for_next_car 424 {text} "LA5H_L3Y"
custom_plate_design_for_next_car 424 {design} CarPlateDesign.LosSantos
45@ = create_car 424 {x} 1248.907 {y} -804.3519 {z} 83.1484
set_car_heading 45@ {heading} 180.0
change_car_colour 45@ {color1} 0 {color2} 3
50@ = add_blip_for_coord -12.2064 {y} -1117.876 {z} 7.0705
118@ = 0
119@ = 0
set_lvar_text_label 168@s = 'MAN5_AA'
set_lvar_int_to_constant 120@ = 24400
set_lvar_int_to_var_int 144@ = $scplayer
set_lvar_text_label 170@s = 'MAN5_AB'
set_lvar_int_to_constant 121@ = 24401
set_lvar_int_to_var_int 145@ = $scplayer
set_lvar_text_label 172@s = 'MAN5_AC'
set_lvar_int_to_constant 122@ = 24402
set_lvar_int_to_lvar_int 146@ = 34@
set_lvar_text_label 174@s = 'MAN5_BA'
set_lvar_int_to_constant 123@ = 24403
set_lvar_int_to_lvar_int 147@ = 34@
set_lvar_text_label 176@s = 'MAN5_BB'
set_lvar_int_to_constant 124@ = 24404
set_lvar_int_to_var_int 148@ = $scplayer
set_lvar_text_label 178@s = 'MAN5_BC'
set_lvar_int_to_constant 125@ = 24405
set_lvar_int_to_lvar_int 149@ = 34@
set_lvar_text_label 180@s = 'MAN5_BD'
set_lvar_int_to_constant 126@ = 24406
set_lvar_int_to_var_int 150@ = $scplayer
set_lvar_text_label 182@s = 'MAN5_BE'
set_lvar_int_to_constant 127@ = 24407
set_lvar_int_to_var_int 151@ = $scplayer
set_lvar_text_label 184@s = 'MAN5_BF'
set_lvar_int_to_constant 128@ = 24408
set_lvar_int_to_var_int 152@ = $scplayer
set_lvar_text_label 186@s = 'MAN5_BG'
set_lvar_int_to_constant 129@ = 24409
set_lvar_int_to_lvar_int 153@ = 34@
set_lvar_text_label 188@s = 'MAN5_BH'
set_lvar_int_to_constant 130@ = 24410
set_lvar_int_to_var_int 154@ = $scplayer
set_lvar_text_label 190@s = 'MAN5_BJ'
set_lvar_int_to_constant 131@ = 24411
set_lvar_int_to_var_int 155@ = $scplayer
set_lvar_text_label 192@s = 'MAN5_BK'
set_lvar_int_to_constant 132@ = 24412
set_lvar_int_to_var_int 156@ = $scplayer
set_lvar_text_label 194@s = 'MAN5_BL'
set_lvar_int_to_constant 133@ = 24413
set_lvar_int_to_var_int 157@ = $scplayer
set_lvar_text_label 196@s = 'MAN5_BM'
set_lvar_int_to_constant 134@ = 24414
set_lvar_int_to_var_int 158@ = $scplayer
set_lvar_text_label 198@s = 'MAN5_BN'
set_lvar_int_to_constant 135@ = 24415
set_lvar_int_to_lvar_int 159@ = 34@
set_lvar_text_label 200@s = 'MAN5_CA'
set_lvar_int_to_constant 136@ = 24417
set_lvar_int_to_var_int 160@ = $scplayer
set_lvar_text_label 202@s = 'MAN5_CB'
set_lvar_int_to_constant 137@ = 24418
set_lvar_int_to_var_int 161@ = $scplayer
set_lvar_text_label 204@s = 'MAN5_DA'
set_lvar_int_to_constant 138@ = 24419
set_lvar_int_to_lvar_int 162@ = 34@
set_lvar_text_label 206@s = 'MAN5_DB'
set_lvar_int_to_constant 139@ = 24420
set_lvar_int_to_lvar_int 163@ = 34@
set_lvar_text_label 208@s = 'MAN5_DC'
set_lvar_int_to_constant 140@ = 24421
set_lvar_int_to_lvar_int 164@ = 34@
set_lvar_text_label 210@s = 'MAN5_DD'
set_lvar_int_to_constant 141@ = 24422
set_lvar_int_to_lvar_int 165@ = 34@
set_lvar_text_label 212@s = 'MAN5_EA'
set_lvar_int_to_constant 142@ = 24423
set_lvar_int_to_var_int 166@ = $scplayer
set_lvar_text_label 214@s = 'MAN5_EB'
set_lvar_int_to_constant 143@ = 24424
set_lvar_int_to_var_int 167@ = $scplayer
set_player_control $player1 {state} True
switch_widescreen False
do_fade 0 {direction} Fade.In
68@ = 0
47@ = 0
69@ = 0
54@ = 0
TIMERB = 0
print_now 'MAN5_G0' {time} 7500 {flag} 1

:MANSON5_1350
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_1966
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @MANSON5_1399
goto @MANSON5_12906
goto @MANSON5_1477

:MANSON5_1399
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @MANSON5_1477
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_1477
67@ = get_car_char_is_using $scplayer
if 
  is_char_in_car 34@ {vehicle} 67@
goto_if_false @MANSON5_1477
set_car_coordinates 67@ {x} -127.1875 {y} -1260.738 {z} 2.0469

:MANSON5_1477
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @MANSON5_1851
$x, $y, $z = get_char_coordinates 34@
$distance = get_distance_between_coords_2d -12.2064 {fromY} -1117.876 {toX} $x {toZ} $y
if 
  75.0 > $distance
goto_if_false @MANSON5_1812
clear_mission_audio MissionAudioSlot.Slot1
mark_car_as_no_longer_needed 45@
mark_model_as_no_longer_needed 424
mark_model_as_no_longer_needed 471
do_fade 0 {direction} Fade.Out

:MANSON5_1596
if 
  get_fading_status 
goto_if_false @MANSON5_1620
wait 0
goto @MANSON5_1596

:MANSON5_1620
set_player_control $player1 {state} False
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_1674
warp_char_from_car_to_coord $scplayer {x} -13.4832 {y} -1139.642 {z} 7.0664
goto @MANSON5_1694

:MANSON5_1674
set_char_coordinates $scplayer {x} -13.4832 {y} -1139.642 {z} 7.0664

:MANSON5_1694
set_char_heading $scplayer {heading} 347.9809
if 
  not is_char_dead 34@
goto_if_false @MANSON5_1798
remove_char_from_group 34@
if 
  is_char_in_any_car 34@
goto_if_false @MANSON5_1768
warp_char_from_car_to_coord 34@ {x} -11.4883 {y} -1140.9709 {z} 6.8764
goto @MANSON5_1788

:MANSON5_1768
set_char_coordinates 34@ {x} -11.4883 {y} -1140.9709 {z} 6.8764

:MANSON5_1788
set_char_heading 34@ {heading} 359.6364

:MANSON5_1798
goto @MANSON5_3411
goto @MANSON5_1844

:MANSON5_1812
if 
  2 > 68@
goto_if_false @MANSON5_1837
68@ = 2

:MANSON5_1837
gosub @MANSON5_2222

:MANSON5_1844
goto @MANSON5_1905

:MANSON5_1851
gosub @MANSON5_2001
gosub @MANSON5_2222
gosub @MANSON5_2493
gosub @MANSON5_2612
if 
  TIMERB > 8000
goto_if_false @MANSON5_1905
gosub @MANSON5_11710

:MANSON5_1905
65@ = get_area_visible 
if 
  65@ <> 0
goto_if_false @MANSON5_1959
clear_prints 
freeze_char_position 34@ {state} True
remove_blip 50@
remove_blip 37@
remove_char_from_group 34@
goto @MANSON5_3252

:MANSON5_1959
goto @MANSON5_1994

:MANSON5_1966
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_1994
goto @MANSON5_1350

:MANSON5_2001
switch_start 66@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSON5_2220 {caseNum1} 0 {caseLabel1} @MANSON5_2064 {caseNum2} 1 {caseLabel2} @MANSON5_2166 {caseNum3} -1 {caseLabel3} @MANSON5_2220 {caseNum4} -1 {caseLabel4} @MANSON5_2220 {caseNum5} -1 {caseLabel5} @MANSON5_2220 {caseNum6} -1 {caseLabel6} @MANSON5_2220 {caseNum7} -1 {caseLabel7} @MANSON5_2220

:MANSON5_2064
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_2159
67@ = get_car_char_is_using $scplayer
if 
  is_char_in_car 34@ {vehicle} 67@
goto_if_false @MANSON5_2159
if 
  $trip_skip_M5 == 1
goto_if_false @MANSON5_2147
set_up_skip -126.6673 {y} -1260.804 {z} 2.0469 {heading} 280.0

:MANSON5_2147
remove_blip 37@
66@ += 1

:MANSON5_2159
goto @MANSON5_2220

:MANSON5_2166
if 
  not is_char_in_any_car 34@
goto_if_false @MANSON5_2213
clear_skip 
37@ = add_blip_for_char 34@
set_blip_as_friendly 37@ {state} True
change_blip_display 37@ {display} BlipDisplay.BlipOnly
66@ -= 1

:MANSON5_2213
goto @MANSON5_2220

:MANSON5_2220
return 

:MANSON5_2222
switch_start 68@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @MANSON5_2491 {caseNum1} 0 {caseLabel1} @MANSON5_2285 {caseNum2} 1 {caseLabel2} @MANSON5_2388 {caseNum3} 2 {caseLabel3} @MANSON5_2421 {caseNum4} 3 {caseLabel4} @MANSON5_2458 {caseNum5} -1 {caseLabel5} @MANSON5_2491 {caseNum6} -1 {caseLabel6} @MANSON5_2491 {caseNum7} -1 {caseLabel7} @MANSON5_2491

:MANSON5_2285
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$x, $y, $z = get_char_coordinates 34@
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  $distance > 75.0
goto_if_false @MANSON5_2381
print_now 'MAN5_G1' {time} 8000 {flag} 1
TIMERA = 0
68@ += 1

:MANSON5_2381
goto @MANSON5_2491

:MANSON5_2388
if 
  TIMERA > 20000
goto_if_false @MANSON5_2414
68@ -= 1

:MANSON5_2414
goto @MANSON5_2491

:MANSON5_2421
print_now 'MAN5_G2' {time} 8000 {flag} 1
TIMERA = 0
68@ += 1
goto @MANSON5_2491

:MANSON5_2458
if 
  TIMERA > 20000
goto_if_false @MANSON5_2484
68@ = 0

:MANSON5_2484
goto @MANSON5_2491

:MANSON5_2491
return 

:MANSON5_2493
if 
  47@ == 0
goto_if_false @MANSON5_2610
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  not is_car_dead 45@
goto_if_false @MANSON5_2610
$x, $y, $z = get_car_coordinates 45@
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  $distance > 150.0
goto_if_false @MANSON5_2610
mark_car_as_no_longer_needed 45@
mark_model_as_no_longer_needed 424
47@ += 1

:MANSON5_2610
return 

:MANSON5_2612
switch_start 69@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @MANSON5_3250 {caseNum1} 0 {caseLabel1} @MANSON5_2675 {caseNum2} 1 {caseLabel2} @MANSON5_2755 {caseNum3} 2 {caseLabel3} @MANSON5_2806 {caseNum4} -1 {caseLabel4} @MANSON5_3250 {caseNum5} -1 {caseLabel5} @MANSON5_3250 {caseNum6} -1 {caseLabel6} @MANSON5_3250 {caseNum7} -1 {caseLabel7} @MANSON5_3250

:MANSON5_2675
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 250.0 {yRadius} 250.0 {drawSphere} False
goto_if_false @MANSON5_2748
load_special_character 2 {modelName} 'OGLOC'
request_model 219
request_model 582
request_model 539
69@ += 1

:MANSON5_2748
goto @MANSON5_3250

:MANSON5_2755
if or
  not has_special_character_loaded 2
  not has_model_loaded 219
  not has_model_loaded 582
  not has_model_loaded 539
goto_if_false @MANSON5_2799
goto @MANSON5_3250
goto @MANSON5_2806

:MANSON5_2799
69@ += 1

:MANSON5_2806
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 150.0 {yRadius} 150.0 {drawSphere} False
goto_if_false @MANSON5_3243
35@ = create_char PedType.Special {modelId} 291 {x} -6.499 {y} -1109.111 {z} 6.5441
set_char_heading 35@ {heading} 333.1959
freeze_char_position 35@ {state} True
set_char_proofs 35@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 35@ {handleOrTemplate} 52@
set_char_never_targetted 35@ {state} True
set_char_cant_be_dragged_out 35@ {state} True
73@ = create_char PedType.Mission1 {modelId} 219 {x} -7.174 {y} -1108.2 {z} 6.4475
set_char_heading 73@ {heading} 210.4687
freeze_char_position 73@ {state} True
set_char_proofs 73@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
74@ = create_car 582 {x} -12.3019 {y} -1108.927 {z} 6.837
set_car_heading 74@ {heading} 153.1079
freeze_car_position 74@ {state} True
change_car_colour 74@ {color1} 1 {color2} 1
set_car_proofs 74@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
39@ = create_car 539 {x} -7.4398 {y} -1116.85 {z} 7.0583
set_car_heading 39@ {heading} 278.5895
freeze_car_position 39@ {state} True
change_car_colour 39@ {color1} 1 {color2} 1
set_car_proofs 39@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
40@ = create_car 539 {x} -4.862 {y} -1120.453 {z} 7.0799
set_car_heading 40@ {heading} 266.0038
freeze_car_position 40@ {state} True
change_car_colour 40@ {color1} 1 {color2} 1
set_car_proofs 40@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
41@ = create_car 539 {x} -7.0309 {y} -1111.9091 {z} 6.726
set_car_heading 41@ {heading} 269.4002
freeze_car_position 41@ {state} True
change_car_colour 41@ {color1} 8 {color2} 0
set_car_proofs 41@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
69@ += 1

:MANSON5_3243
goto @MANSON5_3250

:MANSON5_3250
return 

:MANSON5_3252
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_3376
65@ = get_char_area_visible $scplayer
if 
  65@ == 0
goto_if_false @MANSON5_3369
freeze_char_position 34@ {state} False
set_char_never_leaves_group 34@ {state} True
set_group_member 51@ {handle} 34@
37@ = add_blip_for_char 34@
set_blip_as_friendly 37@ {state} True
change_blip_display 37@ {display} BlipDisplay.BlipOnly
50@ = add_blip_for_coord -12.2064 {y} -1117.876 {z} 7.0705
goto @MANSON5_1350

:MANSON5_3369
goto @MANSON5_3404

:MANSON5_3376
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_3404
goto @MANSON5_3252

:MANSON5_3411
if 
  3 > 69@
goto_if_false @MANSON5_3447
wait 0
gosub @MANSON5_2612
goto @MANSON5_3411

:MANSON5_3447
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
delete_car 45@
request_model 484
request_model 453
request_model #WATERJUMPX2
request_car_recording 700
request_car_recording 701

:MANSON5_3487
if or
  not has_model_loaded 484
  not has_model_loaded 453
  not has_model_loaded #WATERJUMPX2
  not has_car_recording_been_loaded 700
  not has_car_recording_been_loaded 701
goto_if_false @MANSON5_3534
wait 0
goto @MANSON5_3487

:MANSON5_3534
if 
  not is_char_dead 35@
goto_if_false @MANSON5_3557
freeze_char_position 35@ {state} False

:MANSON5_3557
if 
  not is_char_dead 73@
goto_if_false @MANSON5_3580
freeze_char_position 73@ {state} False

:MANSON5_3580
if 
  not is_car_dead 74@
goto_if_false @MANSON5_3603
freeze_car_position 74@ {state} False

:MANSON5_3603
if 
  not is_car_dead 39@
goto_if_false @MANSON5_3626
freeze_car_position 39@ {state} False

:MANSON5_3626
if 
  not is_car_dead 40@
goto_if_false @MANSON5_3649
freeze_car_position 40@ {state} False

:MANSON5_3649
if 
  not is_car_dead 41@
goto_if_false @MANSON5_3672
freeze_car_position 41@ {state} False

:MANSON5_3672
if 
  $trip_skip_M5 == 0
goto_if_false @MANSON5_3697
$trip_skip_M5 += 1

:MANSON5_3697
set_fixed_camera_position -5.0753 {y} -1108.265 {z} 7.9567 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -6.004 {y} -1108.63 {z} 7.8925 {switchStyle} SwitchType.JumpCut
53@ = 0
clear_area -12.3019 {y} -1108.927 {z} 6.837 {radius} 500.0 {clearParticles} True
clear_skip 
118@ = 6
119@ = 18
do_fade 0 {direction} Fade.In
skip_cutscene_start_internal @MANSON5_4643
TIMERA = 0

:MANSON5_3815
if 
  2000 > TIMERA
goto_if_false @MANSON5_3852
wait 0
gosub @MANSON5_11710
goto @MANSON5_3815

:MANSON5_3852
camera_reset_new_scriptables 
camera_persist_track True
camera_set_vector_track -6.004 {fromY} -1108.63 {fromZ} 7.8925 {toX} -5.5642 {toY} -1108.835 {toZ} 7.8925 {time} 2000 {ease} True
if and
  not is_char_dead 35@
  not is_char_dead 34@
  not is_char_dead 73@
goto_if_false @MANSON5_3937
task_turn_char_to_face_char 35@ {target} 34@
task_turn_char_to_face_char 73@ {target} 34@

:MANSON5_3937
TIMERA = 0

:MANSON5_3944
if 
  1800 > TIMERA
goto_if_false @MANSON5_3981
wait 0
gosub @MANSON5_11710
goto @MANSON5_3944

:MANSON5_3981
if 
  not is_car_dead 39@
goto_if_false @MANSON5_4052
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -8.0333 {y} -1118.52 {z} 7.0531 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} 39@ {time} -2
close_sequence_task 49@
perform_sequence_task $scplayer {sequence} 49@
clear_sequence_task 49@

:MANSON5_4052
if and
  not is_char_dead 34@
  not is_car_dead 40@
goto_if_false @MANSON5_4128
49@ = open_sequence_task 
task_go_straight_to_coord -1 {x} -4.9313 {y} -1122.054 {z} 7.0188 {speed} MoveState.Run {time} -2
task_enter_car_as_driver -1 {vehicle} 40@ {time} -2
close_sequence_task 49@
perform_sequence_task 34@ {sequence} 49@
clear_sequence_task 49@

:MANSON5_4128
TIMERA = 0

:MANSON5_4135
if 
  250 > TIMERA
goto_if_false @MANSON5_4172
wait 0
gosub @MANSON5_11710
goto @MANSON5_4135

:MANSON5_4172
if and
  not is_char_dead 35@
  not is_car_dead 41@
goto_if_false @MANSON5_4203
task_enter_car_as_driver 35@ {vehicle} 41@ {time} -2

:MANSON5_4203
48@ = 0

:MANSON5_4210
if 
  48@ == 0
goto_if_false @MANSON5_4303
wait 0
if and
  not is_char_dead 35@
  not is_car_dead 41@
goto_if_false @MANSON5_4289
if 
  is_char_in_car 35@ {vehicle} 41@
goto_if_false @MANSON5_4289
48@ = 1
set_car_forward_speed 41@ {forwardSpeed} 8.0

:MANSON5_4289
gosub @MANSON5_11710
goto @MANSON5_4210

:MANSON5_4303
55@, 56@, 57@ = get_active_camera_coordinates 
58@, 59@, 60@ = get_active_camera_point_at 
camera_reset_new_scriptables 
set_fixed_camera_position 55@ {y} 56@ {z} 57@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 58@ {y} 59@ {z} 60@ {switchStyle} SwitchType.JumpCut
TIMERA = 0
TIMERB = 0
48@ = 0

:MANSON5_4387
if 
  4500 > TIMERA
goto_if_false @MANSON5_4592
wait 0
55@ += 0.0085
56@ -= 0.05
58@ += 0.0085
59@ -= 0.05
set_fixed_camera_position 55@ {y} 56@ {z} 57@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 58@ {y} 59@ {z} 60@ {switchStyle} SwitchType.JumpCut
if and
  TIMERB > 800
  48@ == 0
goto_if_false @MANSON5_4578
if 
  not is_car_dead 41@
goto_if_false @MANSON5_4578
set_car_forward_speed 41@ {forwardSpeed} 0.0
set_car_coordinates 41@ {x} -15.191 {y} -1107.97 {z} 7.0385
set_car_heading 41@ {heading} 345.91
48@ += 1

:MANSON5_4578
gosub @MANSON5_11710
goto @MANSON5_4387

:MANSON5_4592
TIMERA = 0

:MANSON5_4599
if 
  1800 > TIMERA
goto_if_false @MANSON5_4636
wait 0
gosub @MANSON5_11710
goto @MANSON5_4599

:MANSON5_4636
53@ = 1

:MANSON5_4643
skip_cutscene_end 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_lvar_text_label 168@s = 'MAN5_FA'
set_lvar_int_to_constant 120@ = 24425
set_lvar_text_label 170@s = 'MAN5_FB'
set_lvar_int_to_constant 121@ = 24426
set_lvar_text_label 172@s = 'MAN5_FC'
set_lvar_int_to_constant 122@ = 24427
set_lvar_text_label 174@s = 'MAN5_FD'
set_lvar_int_to_constant 123@ = 24428
set_lvar_text_label 176@s = 'MAN5_FE'
set_lvar_int_to_constant 124@ = 24429
set_lvar_text_label 178@s = 'MAN5_FF'
set_lvar_int_to_constant 125@ = 24430
set_lvar_text_label 180@s = 'MAN5_FG'
set_lvar_int_to_constant 126@ = 24431
set_lvar_text_label 182@s = 'MAN5_FH'
set_lvar_int_to_constant 127@ = 24432
set_lvar_text_label 184@s = 'MAN5_FJ'
set_lvar_int_to_constant 128@ = 24433
118@ = 8
119@ = 0
if 
  53@ == 0
goto_if_false @MANSON5_5056
do_fade 0 {direction} Fade.Out
if and
  not is_char_dead 35@
  not is_car_dead 41@
goto_if_false @MANSON5_4942
if 
  not is_char_in_car 35@ {vehicle} 41@
goto_if_false @MANSON5_4942
clear_char_tasks 35@
warp_char_into_car 35@ {vehicle} 41@

:MANSON5_4942
if and
  not is_char_dead 34@
  not is_car_dead 40@
goto_if_false @MANSON5_4995
if 
  not is_char_in_car 34@ {vehicle} 40@
goto_if_false @MANSON5_4995
clear_char_tasks 34@
warp_char_into_car 34@ {vehicle} 40@

:MANSON5_4995
if and
  not is_char_dead $scplayer
  not is_car_dead 39@
goto_if_false @MANSON5_5048
if 
  not is_char_in_car $scplayer {vehicle} 39@
goto_if_false @MANSON5_5048
clear_char_tasks $scplayer
warp_char_into_car $scplayer {vehicle} 39@

:MANSON5_5048
camera_reset_new_scriptables 
do_fade 0 {direction} Fade.In

:MANSON5_5056
print_now 'MAN5_G4' {time} 8000 {flag} 1
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
if 
  not is_char_dead 73@
goto_if_false @MANSON5_5130
freeze_char_position 73@ {state} False
set_char_proofs 73@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_char_as_no_longer_needed 73@

:MANSON5_5130
if 
  not is_car_dead 74@
goto_if_false @MANSON5_5173
freeze_car_position 74@ {state} False
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 74@

:MANSON5_5173
mark_model_as_no_longer_needed 219
mark_model_as_no_longer_needed 582
if and
  not is_car_dead 41@
  not is_car_dead 40@
goto_if_false @MANSON5_5285
set_car_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_car_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
sync_water 
start_playback_recorded_car 41@ {path} 700
start_playback_recorded_car 40@ {path} 701
remove_blip 50@
remove_blip 37@
38@ = add_blip_for_car 41@
37@ = add_blip_for_car 40@
set_blip_as_friendly 37@ {state} True

:MANSON5_5285
if and
  not is_char_dead 35@
  not is_char_dead 34@
  not is_car_dead 39@
goto_if_false @MANSON5_5356
set_char_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_char_proofs 34@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
set_car_proofs 39@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSON5_5356
75@ = create_car 484 {x} 64.6248 {y} -1577.02 {z} 1.0
set_car_heading 75@ {heading} 120.3362
anchor_boat 75@ {state} True
76@ = create_car 484 {x} 33.6099 {y} -1568.462 {z} 1.0
set_car_heading 76@ {heading} 284.2679
anchor_boat 76@ {state} True
77@ = create_car 453 {x} 44.502 {y} -1623.984 {z} 1.0
set_car_heading 77@ {heading} 75.0
anchor_boat 77@ {state} True
78@ = create_car 484 {x} 27.4441 {y} -1654.804 {z} 1.0
set_car_heading 78@ {heading} 60.0
anchor_boat 78@ {state} True
79@ = create_car 484 {x} 65.1404 {y} -1664.87 {z} 1.0
set_car_heading 79@ {heading} 95.0
anchor_boat 79@ {state} True
80@ = create_car 453 {x} 53.4007 {y} -1694.957 {z} 1.0
set_car_heading 80@ {heading} 231.9938
anchor_boat 80@ {state} True
81@ = create_car 453 {x} 33.4799 {y} -1697.462 {z} 1.0
set_car_heading 81@ {heading} 106.8489
anchor_boat 81@ {state} True
82@ = create_car 484 {x} 57.1376 {y} -1767.301 {z} 1.0
set_car_heading 82@ {heading} 286.5185
anchor_boat 82@ {state} True
83@ = create_object_no_offset #WATERJUMPX2 {x} 137.9184 {y} -1895.0601 {z} 0.9
set_object_heading 83@ {heading} 235.0
95@ = 0
97@ = 0
TIMERA = 0

:MANSON5_5730
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_5978
if 
  not is_char_dead 35@
goto_if_false @MANSON5_5943
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @MANSON5_8993
gosub @MANSON5_9399
$x, $y, $z = get_char_coordinates 35@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  $distance >= 240.0
goto_if_false @MANSON5_5874
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F2'
goto @MANSON5_13113

:MANSON5_5874
if 
  is_char_in_area_3d $scplayer {leftBottomX} 820.3243 {leftBottomY} -1918.42 {leftBottomZ} 11.8624 {rightTopX} 852.5646 {rightTopY} -1894.725 {rightTopZ} 13.0 {drawSphere} False
goto_if_false @MANSON5_5929
goto @MANSON5_6013

:MANSON5_5929
gosub @MANSON5_11710
goto @MANSON5_5971

:MANSON5_5943
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F3'
goto @MANSON5_13113

:MANSON5_5971
goto @MANSON5_6006

:MANSON5_5978
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_6006
goto @MANSON5_5730

:MANSON5_6013
do_fade 0 {direction} Fade.Out
set_radio_channel RadioChannel.UserTracks
set_ped_density_multiplier 0.3
if 
  not is_car_dead 39@
goto_if_false @MANSON5_6094
set_car_health 39@ {health} 2000
set_car_forward_speed 39@ {forwardSpeed} 0.0
set_car_coordinates 39@ {x} 824.9831 {y} -1843.146 {z} 11.6654
set_car_heading 39@ {heading} 192.0245

:MANSON5_6094
if 
  not is_car_dead 40@
goto_if_false @MANSON5_6176
if 
  is_playback_going_on_for_car 40@
goto_if_false @MANSON5_6131
stop_playback_recorded_car 40@

:MANSON5_6131
set_car_forward_speed 40@ {forwardSpeed} 0.0
set_car_coordinates 40@ {x} 846.0862 {y} -1842.421 {z} 11.6367
set_car_heading 40@ {heading} 170.999
remove_blip 37@

:MANSON5_6176
if 
  not is_car_dead 41@
goto_if_false @MANSON5_6258
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_6213
stop_playback_recorded_car 41@

:MANSON5_6213
set_car_forward_speed 41@ {forwardSpeed} 0.0
set_car_coordinates 41@ {x} 832.5709 {y} -2045.707 {z} 11.8672
set_car_heading 41@ {heading} 180.0
remove_blip 38@

:MANSON5_6258
mark_char_as_no_longer_needed 73@
48@ = 0

:MANSON5_6270
if 
  8 > 48@
goto_if_false @MANSON5_6311
mark_car_as_no_longer_needed 75@(48@,8i)
48@ += 1
goto @MANSON5_6270

:MANSON5_6311
mark_object_as_no_longer_needed 83@
mark_model_as_no_longer_needed 484
mark_model_as_no_longer_needed 453
mark_model_as_no_longer_needed #WATERJUMPX2
remove_car_recording 700
remove_car_recording 701
request_model 571
request_car_recording 702
request_car_recording 703
request_car_recording 704
request_car_recording 705

:MANSON5_6366
if or
  not has_model_loaded 571
  not has_car_recording_been_loaded 702
  not has_car_recording_been_loaded 703
  not has_car_recording_been_loaded 704
  not has_car_recording_been_loaded 705
goto_if_false @MANSON5_6413
wait 0
goto @MANSON5_6366

:MANSON5_6413
42@ = create_car 571 {x} 832.4061 {y} -2046.025 {z} 11.8672
set_car_heading 42@ {heading} 343.6256
43@ = create_car 571 {x} 835.5082 {y} -2047.978 {z} 11.8672
set_car_heading 43@ {heading} 0.0
44@ = create_car 571 {x} 839.2866 {y} -2050.322 {z} 11.8672
set_car_heading 44@ {heading} 21.8433
freeze_car_position 44@ {state} True
103@ = 15.0
104@ = 10.0
102@ = 15.0
105@ = 835.5082
106@ = -2047.978
107@ = 11.8672
gosub @MANSON5_10491
if 
  not is_car_dead 41@
goto_if_false @MANSON5_6626
if 
  not is_playback_going_on_for_car 41@
goto_if_false @MANSON5_6626
start_playback_recorded_car 41@ {path} 702

:MANSON5_6626
switch_widescreen True
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.In
TIMERA = 0

:MANSON5_6650
if 
  1000 > TIMERA
goto_if_false @MANSON5_6687
wait 0
gosub @MANSON5_10491
goto @MANSON5_6650

:MANSON5_6687
53@ = 0
skip_cutscene_start_internal @MANSON5_7376
TIMERA = 0

:MANSON5_6708
if 
  3400 > TIMERA
goto_if_false @MANSON5_6745
wait 0
gosub @MANSON5_10491
goto @MANSON5_6708

:MANSON5_6745
if 
  not is_car_dead 39@
goto_if_false @MANSON5_6791
set_car_coordinates 39@ {x} 827.2987 {y} -2036.851 {z} 11.8672
set_car_heading 39@ {heading} 176.431

:MANSON5_6791
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_6834
warp_char_from_car_to_coord $scplayer {x} 828.7999 {y} -2036.757 {z} 11.8672
goto @MANSON5_6854

:MANSON5_6834
set_char_coordinates $scplayer {x} 828.7999 {y} -2036.757 {z} 11.8672

:MANSON5_6854
set_char_heading $scplayer {heading} 129.8786
if 
  not is_car_dead 40@
goto_if_false @MANSON5_6910
set_car_coordinates 40@ {x} 846.0646 {y} -2039.7371 {z} 11.8672
set_car_heading 40@ {heading} 162.7406

:MANSON5_6910
if 
  not is_char_dead 34@
goto_if_false @MANSON5_6999
if 
  is_char_in_any_car 34@
goto_if_false @MANSON5_6969
warp_char_from_car_to_coord 34@ {x} 844.8756 {y} -2038.455 {z} 11.8672
goto @MANSON5_6989

:MANSON5_6969
set_char_coordinates 34@ {x} 844.8756 {y} -2038.455 {z} 11.8672

:MANSON5_6989
set_char_heading 34@ {heading} 132.7607

:MANSON5_6999
48@ = 0

:MANSON5_7006
if 
  48@ == 0
goto_if_false @MANSON5_7081
wait 0
if 
  not is_car_dead 41@
goto_if_false @MANSON5_7067
if 
  not is_playback_going_on_for_car 41@
goto_if_false @MANSON5_7067
48@ = 1

:MANSON5_7067
gosub @MANSON5_10491
goto @MANSON5_7006

:MANSON5_7081
if and
  not is_char_dead 35@
  not is_car_dead 44@
goto_if_false @MANSON5_7138
49@ = open_sequence_task 
task_leave_any_car -1
task_enter_car_as_driver -1 {vehicle} 44@ {time} -2
close_sequence_task 49@
perform_sequence_task 35@ {sequence} 49@
clear_sequence_task 49@

:MANSON5_7138
48@ = 0

:MANSON5_7145
if 
  48@ == 0
goto_if_false @MANSON5_7228
wait 0
if and
  not is_char_dead 35@
  not is_car_dead 44@
goto_if_false @MANSON5_7214
if 
  is_char_in_car 35@ {vehicle} 44@
goto_if_false @MANSON5_7214
48@ = 1

:MANSON5_7214
gosub @MANSON5_10491
goto @MANSON5_7145

:MANSON5_7228
if 
  not is_car_dead 44@
goto_if_false @MANSON5_7268
if 
  not is_playback_going_on_for_car 44@
goto_if_false @MANSON5_7268
start_playback_recorded_car 44@ {path} 703

:MANSON5_7268
if 
  not is_car_dead 42@
goto_if_false @MANSON5_7294
task_enter_car_as_driver $scplayer {vehicle} 42@ {time} -2

:MANSON5_7294
if and
  not is_char_dead 34@
  not is_car_dead 43@
goto_if_false @MANSON5_7325
task_enter_car_as_driver 34@ {vehicle} 43@ {time} -2

:MANSON5_7325
TIMERA = 0

:MANSON5_7332
if 
  4500 > TIMERA
goto_if_false @MANSON5_7369
wait 0
gosub @MANSON5_10491
goto @MANSON5_7332

:MANSON5_7369
53@ = 1

:MANSON5_7376
skip_cutscene_end 
if 
  53@ == 0
goto_if_false @MANSON5_7402
do_fade 0 {direction} Fade.Out

:MANSON5_7402
if 
  not is_car_dead 42@
goto_if_false @MANSON5_7481
if 
  not is_char_in_car $scplayer {vehicle} 42@
goto_if_false @MANSON5_7481
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_7473
warp_char_from_car_to_coord $scplayer {x} 0.0 {y} 0.0 {z} 0.0

:MANSON5_7473
warp_char_into_car $scplayer {vehicle} 42@

:MANSON5_7481
if 
  not is_car_dead 39@
goto_if_false @MANSON5_7527
set_car_coordinates 39@ {x} 827.2987 {y} -2036.851 {z} 11.8672
set_car_heading 39@ {heading} 176.431

:MANSON5_7527
if and
  not is_char_dead 34@
  not is_car_dead 43@
goto_if_false @MANSON5_7611
if 
  not is_char_in_car 34@ {vehicle} 43@
goto_if_false @MANSON5_7611
if 
  is_char_in_any_car 34@
goto_if_false @MANSON5_7603
warp_char_from_car_to_coord 34@ {x} 0.0 {y} 0.0 {z} 0.0

:MANSON5_7603
warp_char_into_car 34@ {vehicle} 43@

:MANSON5_7611
if 
  not is_car_dead 40@
goto_if_false @MANSON5_7657
set_car_coordinates 40@ {x} 846.0646 {y} -2039.7371 {z} 11.8672
set_car_heading 40@ {heading} 162.7406

:MANSON5_7657
if and
  not is_char_dead 35@
  not is_car_dead 44@
goto_if_false @MANSON5_7748
freeze_car_position 44@ {state} False
if 
  not is_char_in_car 35@ {vehicle} 44@
goto_if_false @MANSON5_7748
if 
  is_char_in_any_car 35@
goto_if_false @MANSON5_7740
warp_char_from_car_to_coord 35@ {x} 0.0 {y} 0.0 {z} 0.0

:MANSON5_7740
warp_char_into_car 35@ {vehicle} 44@

:MANSON5_7748
if 
  not is_car_dead 41@
goto_if_false @MANSON5_7785
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_7785
skip_to_end_and_stop_playback_recorded_car 41@

:MANSON5_7785
95@ = 0
97@ = 0
94@ = 0.0
112@ = 0
117@ = 0
if 
  not is_car_dead 44@
goto_if_false @MANSON5_7876
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_7860
stop_playback_recorded_car 44@

:MANSON5_7860
start_playback_recorded_car 44@ {path} 704
38@ = add_blip_for_car 44@

:MANSON5_7876
if 
  not is_car_dead 43@
goto_if_false @MANSON5_7931
if 
  not is_playback_going_on_for_car 43@
goto_if_false @MANSON5_7916
start_playback_recorded_car 43@ {path} 705

:MANSON5_7916
37@ = add_blip_for_car 43@
set_blip_as_friendly 37@ {state} True

:MANSON5_7931
118@ = 10
119@ = 4
do_fade 0 {direction} Fade.In
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'MAN5_G5' {time} 8000 {flag} 1
TIMERA = 0

:MANSON5_7989
wait 0
if 
  not is_char_dead 34@
goto_if_false @MANSON5_8244
if 
  not is_char_dead 35@
goto_if_false @MANSON5_8209
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @MANSON5_9742
gosub @MANSON5_10148
gosub @MANSON5_10713
gosub @MANSON5_11446
if 
  54@ == 1
goto_if_false @MANSON5_8099
goto @MANSON5_8279
goto @MANSON5_8195

:MANSON5_8099
if 
  not is_char_dead 35@
goto_if_false @MANSON5_8195
$x, $y, $z = get_char_coordinates 35@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  $distance >= 130.0
goto_if_false @MANSON5_8195
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F2'
goto @MANSON5_13113

:MANSON5_8195
gosub @MANSON5_11710
goto @MANSON5_8237

:MANSON5_8209
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F3'
goto @MANSON5_13113

:MANSON5_8237
goto @MANSON5_8272

:MANSON5_8244
62@ = 1
set_lvar_text_label 63@s = 'MAN5_F0'
goto @MANSON5_13113

:MANSON5_8272
goto @MANSON5_7989

:MANSON5_8279
do_fade 0 {direction} Fade.Out
set_radio_channel RadioChannel.UserTracks
remove_blip 37@
remove_blip 38@
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_8333
84@ = get_car_char_is_using $scplayer
set_car_forward_speed 84@ {forwardSpeed} 0.0

:MANSON5_8333
if 
  not is_char_dead 34@
goto_if_false @MANSON5_8359
mark_char_as_no_longer_needed 34@
mark_model_as_no_longer_needed 183

:MANSON5_8359
if 
  not is_car_dead 43@
goto_if_false @MANSON5_8401
if 
  is_playback_going_on_for_car 43@
goto_if_false @MANSON5_8396
stop_playback_recorded_car 43@

:MANSON5_8396
mark_car_as_no_longer_needed 43@

:MANSON5_8401
set_fixed_camera_position 1045.371 {y} -1221.84 {z} 18.9362 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1046.241 {y} -1221.447 {z} 18.6378 {switchStyle} SwitchType.JumpCut
clear_area_of_cars 1071.504 {leftBottomY} -1195.558 {leftBottomZ} 18.6451 {rightTopX} 1044.942 {rightTopY} -1242.4771 {rightTopZ} 14.9051
if 
  not is_car_dead 44@
goto_if_false @MANSON5_8531
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_8531
unpause_playback_recorded_car 44@
set_playback_speed 44@ {speed} 1.0

:MANSON5_8531
switch_widescreen True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.In

:MANSON5_8549
if 
  get_fading_status 
goto_if_false @MANSON5_8573
wait 0
goto @MANSON5_8549

:MANSON5_8573
skip_cutscene_start_internal @MANSON5_8669
48@ = 0

:MANSON5_8587
if 
  48@ == 0
goto_if_false @MANSON5_8669
wait 0
if 
  not is_car_dead 44@
goto_if_false @MANSON5_8655
if 
  not is_playback_going_on_for_car 44@
goto_if_false @MANSON5_8648
48@ = 1

:MANSON5_8648
goto @MANSON5_8662

:MANSON5_8655
48@ = 1

:MANSON5_8662
goto @MANSON5_8587

:MANSON5_8669
skip_cutscene_end 
do_fade 0 {direction} Fade.Out

:MANSON5_8677
if 
  get_fading_status 
goto_if_false @MANSON5_8701
wait 0
goto @MANSON5_8677

:MANSON5_8701
set_area_visible 3
make_player_safe_for_cutscene $player1
switch_streaming False
load_cutscene 'BHILL5B'

:MANSON5_8725
if 
  not has_cutscene_loaded 
goto_if_false @MANSON5_8749
wait 0
goto @MANSON5_8725

:MANSON5_8749
start_cutscene 
do_fade 1000 {direction} Fade.In

:MANSON5_8758
if 
  not has_cutscene_finished 
goto_if_false @MANSON5_8782
wait 0
goto @MANSON5_8758

:MANSON5_8782
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:MANSON5_8797
if 
  get_fading_status 
goto_if_false @MANSON5_8821
wait 0
goto @MANSON5_8797

:MANSON5_8821
set_area_visible 0
load_scene 1180.7321 {y} -1159.114 {z} 22.8578
request_collision 1180.7321 {y} -1159.114
if 
  is_char_in_any_car $scplayer
goto_if_false @MANSON5_8897
warp_char_from_car_to_coord $scplayer {x} 1180.7321 {y} -1159.114 {z} 22.8578
goto @MANSON5_8917

:MANSON5_8897
set_char_coordinates_no_offset $scplayer {x} 1180.7321 {y} -1159.114 {z} 22.8578

:MANSON5_8917
set_char_heading $scplayer {heading} 25.4307
TIMERA = 0

:MANSON5_8934
if 
  400 > TIMERA
goto_if_false @MANSON5_8964
wait 0
goto @MANSON5_8934

:MANSON5_8964
do_fade 500 {direction} Fade.In
set_player_control $player1 {state} True
switch_widescreen False
restore_camera_jumpcut 
set_camera_behind_player 
goto @MANSON5_12906

:MANSON5_8993
if and
  not is_car_dead 40@
  not is_char_dead 34@
goto_if_false @MANSON5_9397
if 
  95@ == 0
goto_if_false @MANSON5_9397
if 
  is_playback_going_on_for_car 40@
goto_if_false @MANSON5_9380
if 
  locate_char_in_car_char_2d 34@ {otherChar} $scplayer {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @MANSON5_9096
96@ -= 0.2
goto @MANSON5_9296

:MANSON5_9096
85@, 86@, $z = get_offset_from_car_in_world_coords 40@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 40@ {xOffset} 2.0 {yOffset} 2.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 40@ {xOffset} -2.0 {yOffset} 2.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
61@ *= -1.0
add_float_lvar_to_float_lvar 96@ += 61@

:MANSON5_9296
if 
  96@ > 1.0
goto_if_false @MANSON5_9334
96@ = 1.0
goto @MANSON5_9365

:MANSON5_9334
if 
  0.0 > 96@
goto_if_false @MANSON5_9365
96@ = 0.0

:MANSON5_9365
set_playback_speed 40@ {speed} 96@
goto @MANSON5_9397

:MANSON5_9380
set_car_forward_speed 40@ {forwardSpeed} 0.0
95@ = -1

:MANSON5_9397
return 

:MANSON5_9399
if 
  not is_car_dead 41@
goto_if_false @MANSON5_9740
if 
  97@ == 0
goto_if_false @MANSON5_9740
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_9723
85@, 86@, $z = get_offset_from_car_in_world_coords 41@ {xOffset} 0.0 {yOffset} -18.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 41@ {xOffset} 2.0 {yOffset} -11.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 41@ {xOffset} -2.0 {yOffset} -11.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
add_float_lvar_to_float_lvar 98@ += 61@
if 
  98@ > 1.4
goto_if_false @MANSON5_9677
98@ = 1.4
goto @MANSON5_9708

:MANSON5_9677
if 
  0.9 > 98@
goto_if_false @MANSON5_9708
98@ = 0.9

:MANSON5_9708
set_playback_speed 41@ {speed} 98@
goto @MANSON5_9740

:MANSON5_9723
set_car_forward_speed 41@ {forwardSpeed} 0.0
97@ = -1

:MANSON5_9740
return 

:MANSON5_9742
if and
  not is_car_dead 43@
  not is_char_dead 34@
goto_if_false @MANSON5_10146
if 
  95@ == 0
goto_if_false @MANSON5_10146
if 
  is_playback_going_on_for_car 43@
goto_if_false @MANSON5_10129
if 
  locate_char_in_car_char_2d 34@ {otherChar} $scplayer {xRadius} 6.0 {yRadius} 6.0 {drawSphere} False
goto_if_false @MANSON5_9845
96@ -= 0.2
goto @MANSON5_10045

:MANSON5_9845
85@, 86@, $z = get_offset_from_car_in_world_coords 43@ {xOffset} 0.0 {yOffset} 4.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 43@ {xOffset} 2.0 {yOffset} 2.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 43@ {xOffset} -2.0 {yOffset} 2.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 150.0
61@ *= -1.0
add_float_lvar_to_float_lvar 96@ += 61@

:MANSON5_10045
if 
  96@ > 1.05
goto_if_false @MANSON5_10083
96@ = 1.05
goto @MANSON5_10114

:MANSON5_10083
if 
  0.0 > 96@
goto_if_false @MANSON5_10114
96@ = 0.0

:MANSON5_10114
set_playback_speed 43@ {speed} 96@
goto @MANSON5_10146

:MANSON5_10129
set_car_forward_speed 43@ {forwardSpeed} 0.0
95@ = -1

:MANSON5_10146
return 

:MANSON5_10148
if 
  not is_car_dead 44@
goto_if_false @MANSON5_10489
if 
  97@ == 0
goto_if_false @MANSON5_10489
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_10472
85@, 86@, $z = get_offset_from_car_in_world_coords 44@ {xOffset} 0.0 {yOffset} -18.0 {zOffset} 0.0
87@, 88@, $z = get_offset_from_car_in_world_coords 44@ {xOffset} 2.0 {yOffset} -11.0 {zOffset} 0.0
89@, 90@, $z = get_offset_from_car_in_world_coords 44@ {xOffset} -2.0 {yOffset} -11.0 {zOffset} 0.0
91@ = get_distance_between_coords_2d 85@ {fromY} 86@ {toX} $player_x {toZ} $player_y
91@ *= 2.0
92@ = get_distance_between_coords_2d 87@ {fromY} 88@ {toX} $player_x {toZ} $player_y
93@ = get_distance_between_coords_2d 89@ {fromY} 90@ {toX} $player_x {toZ} $player_y
set_lvar_float_to_lvar_float 61@ = 91@
sub_float_lvar_from_float_lvar 61@ -= 92@
sub_float_lvar_from_float_lvar 61@ -= 93@
61@ /= 300.0
add_float_lvar_to_float_lvar 98@ += 61@
if 
  98@ > 1.2
goto_if_false @MANSON5_10426
98@ = 1.2
goto @MANSON5_10457

:MANSON5_10426
if 
  0.6 > 98@
goto_if_false @MANSON5_10457
98@ = 0.6

:MANSON5_10457
set_playback_speed 44@ {speed} 98@
goto @MANSON5_10489

:MANSON5_10472
set_car_forward_speed 44@ {forwardSpeed} 0.0
44@ = -1

:MANSON5_10489
return 

:MANSON5_10491
switch_start 99@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @MANSON5_10592 {caseNum1} 0 {caseLabel1} @MANSON5_10554 {caseNum2} -1 {caseLabel2} @MANSON5_10592 {caseNum3} -1 {caseLabel3} @MANSON5_10592 {caseNum4} -1 {caseLabel4} @MANSON5_10592 {caseNum5} -1 {caseLabel5} @MANSON5_10592 {caseNum6} -1 {caseLabel6} @MANSON5_10592 {caseNum7} -1 {caseLabel7} @MANSON5_10592

:MANSON5_10554
if 
  255.0 > 103@
goto_if_false @MANSON5_10585
103@ += 0.35

:MANSON5_10585
goto @MANSON5_10592

:MANSON5_10592
110@ = cos 103@
111@ = sin 103@
set_lvar_float_to_lvar_float 108@ = 104@
mult_float_lvar_by_float_lvar 108@ *= 110@
set_lvar_float_to_lvar_float 109@ = 104@
mult_float_lvar_by_float_lvar 109@ *= 111@
set_lvar_float_to_lvar_float 100@ = 105@
add_float_lvar_to_float_lvar 100@ += 108@
set_lvar_float_to_lvar_float 101@ = 106@
add_float_lvar_to_float_lvar 101@ += 109@
set_fixed_camera_position 100@ {y} 101@ {z} 102@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 105@ {y} 106@ {z} 107@ {switchStyle} SwitchType.JumpCut
return 

:MANSON5_10713
if 
  not is_char_dead 35@
goto_if_false @MANSON5_11444
switch_start 112@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @MANSON5_11444 {caseNum1} 0 {caseLabel1} @MANSON5_10792 {caseNum2} 1 {caseLabel2} @MANSON5_10896 {caseNum3} 2 {caseLabel3} @MANSON5_11236 {caseNum4} 3 {caseLabel4} @MANSON5_11298 {caseNum5} 4 {caseLabel5} @MANSON5_11362 {caseNum6} -1 {caseLabel6} @MANSON5_11444 {caseNum7} -1 {caseLabel7} @MANSON5_11444

:MANSON5_10792
if 
  locate_char_in_car_2d 35@ {x} 748.4916 {y} -1812.361 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_10889
if 
  not is_line_of_sight_clear $player_x {fromY} $player_y {fromZ} $player_z {toX} 748.4916 {toY} -1812.361 {toZ} 12.0297 {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @MANSON5_10877

:MANSON5_10877
request_model 588
112@ += 1

:MANSON5_10889
goto @MANSON5_11444

:MANSON5_10896
if 
  locate_char_in_car_2d 35@ {x} 662.4983 {y} -1791.844 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_11229
if 
  has_model_loaded 588
goto_if_false @MANSON5_11030
if 
  not is_line_of_sight_clear $player_x {fromY} $player_y {fromZ} $player_z {toX} 532.9616 {toY} -1768.656 {toZ} 4.698 {buildings} True {cars} False {chars} False {objects} False {particles} False
goto_if_false @MANSON5_11030
114@ = create_car 588 {x} 532.9616 {y} -1768.656 {z} 4.698
set_car_heading 114@ {heading} 270.0

:MANSON5_11030
switch_roads_off 226.1833 {leftBottomY} -1631.007 {leftBottomZ} 40.0 {rightTopX} 546.4532 {rightTopY} -1423.991 {rightTopZ} 12.0
switch_roads_off 510.3661 {leftBottomY} -1431.656 {leftBottomZ} 10.0 {rightTopX} 645.8312 {rightTopY} -1387.312 {rightTopZ} 20.0
switch_roads_off 646.6142 {leftBottomY} -1389.016 {leftBottomZ} 10.0 {rightTopX} 620.9656 {rightTopY} -1310.468 {rightTopZ} 20.0
switch_roads_off 620.9656 {leftBottomY} -1310.468 {leftBottomZ} 10.0 {rightTopX} 947.811 {rightTopY} -1335.012 {rightTopZ} 20.0
switch_roads_off 948.2631 {leftBottomY} -1335.406 {leftBottomZ} 10.0 {rightTopX} 934.2357 {rightTopY} -1229.939 {rightTopZ} 20.0
switch_roads_off 804.0421 {leftBottomY} -1329.191 {leftBottomZ} 10.0 {rightTopX} 789.3583 {rightTopY} -1159.0081 {rightTopZ} 24.0
112@ += 1

:MANSON5_11229
goto @MANSON5_11444

:MANSON5_11236
if 
  locate_char_in_car_2d 35@ {x} 394.1295 {y} -1801.1281 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_11291
mark_model_as_no_longer_needed 588
mark_car_as_no_longer_needed 114@
112@ += 1

:MANSON5_11291
goto @MANSON5_11444

:MANSON5_11298
if 
  locate_char_in_car_2d 35@ {x} 1030.7581 {y} -1223.58 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @MANSON5_11355
pause_playback_recorded_car 44@
112@ += 1
goto @MANSON5_11362

:MANSON5_11355
goto @MANSON5_11444

:MANSON5_11362
if 
  not is_char_dead 35@
goto_if_false @MANSON5_11437
$x, $y, $z = get_char_coordinates 35@
$distance = get_distance_between_coords_2d $x {fromY} $y {toX} $player_x {toZ} $player_y
if 
  40.0 >= $distance
goto_if_false @MANSON5_11437
54@ = 1

:MANSON5_11437
goto @MANSON5_11444

:MANSON5_11444
return 

:MANSON5_11446
switch_start 117@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @MANSON5_11708 {caseNum1} 0 {caseLabel1} @MANSON5_11509 {caseNum2} 1 {caseLabel2} @MANSON5_11570 {caseNum3} -1 {caseLabel3} @MANSON5_11708 {caseNum4} -1 {caseLabel4} @MANSON5_11708 {caseNum5} -1 {caseLabel5} @MANSON5_11708 {caseNum6} -1 {caseLabel6} @MANSON5_11708 {caseNum7} -1 {caseLabel7} @MANSON5_11708

:MANSON5_11509
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} 1064.547 {toZ} -1218.083
if 
  250.0 > $distance
goto_if_false @MANSON5_11563
request_model 482
117@ += 1

:MANSON5_11563
goto @MANSON5_11708

:MANSON5_11570
if 
  has_model_loaded 482
goto_if_false @MANSON5_11701
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} 1064.547 {toZ} -1218.083
if 
  80.0 > $distance
goto_if_false @MANSON5_11701
115@ = create_car 482 {x} 1064.547 {y} -1218.083 {z} 15.928
set_car_heading 115@ {heading} 191.9481
116@ = create_car 482 {x} 1050.6 {y} -1222.692 {z} 15.8704
set_car_heading 116@ {heading} 111.6362
117@ += 1

:MANSON5_11701
goto @MANSON5_11708

:MANSON5_11708
return 

:MANSON5_11710
switch_start 118@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @MANSON5_12904 {caseNum1} 0 {caseLabel1} @MANSON5_11838 {caseNum2} 1 {caseLabel2} @MANSON5_11934 {caseNum3} 2 {caseLabel3} @MANSON5_11981 {caseNum4} 3 {caseLabel4} @MANSON5_12233 {caseNum5} 4 {caseLabel5} @MANSON5_12280 {caseNum6} 5 {caseLabel6} @MANSON5_12355 {caseNum7} 6 {caseLabel7} @MANSON5_12402
switch_continued 7 {caseLabel1} @MANSON5_12477 {caseNum2} 8 {caseLabel2} @MANSON5_12524 {caseNum3} 9 {caseLabel3} @MANSON5_12667 {caseNum4} 10 {caseLabel4} @MANSON5_12714 {caseNum5} 11 {caseLabel5} @MANSON5_12857 {caseNum6} -1 {caseLabel6} @MANSON5_12904 {caseNum7} -1 {caseLabel7} @MANSON5_12904 {caseNum8} -1 {caseLabel8} @MANSON5_12904 {caseNum9} -1 {caseLabel9} @MANSON5_12904

:MANSON5_11838
if 
  3 > 119@
goto_if_false @MANSON5_11920
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1
goto @MANSON5_11934

:MANSON5_11920
118@ = 2
goto @MANSON5_12904

:MANSON5_11934
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_11974
118@ = 0
$SLOT_status($preload_slot,2i) = -4

:MANSON5_11974
goto @MANSON5_12904

:MANSON5_11981
if 
  69@ == 3
goto_if_false @MANSON5_12058
if 
  locate_char_any_means_2d $scplayer {x} -12.2064 {y} -1117.876 {xRadius} 120.0 {yRadius} 120.0 {drawSphere} False
goto_if_false @MANSON5_12058
118@ += 2
119@ = 16
goto @MANSON5_12904

:MANSON5_12058
if 
  66@ == 1
goto_if_false @MANSON5_12158
if 
  16 > 119@
goto_if_false @MANSON5_12151
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12151
goto @MANSON5_12233

:MANSON5_12158
if 
  119@ <> 3
goto_if_false @MANSON5_12226
if 
  0 <= $SLOT_status[0]
goto_if_false @MANSON5_12201
$SLOT_status[0] = -2

:MANSON5_12201
if 
  0 <= $SLOT_status[0]
goto_if_false @MANSON5_12226
$SLOT_status[1] = -2

:MANSON5_12226
goto @MANSON5_12904

:MANSON5_12233
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12273
118@ = 2
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12273
goto @MANSON5_12904

:MANSON5_12280
if 
  18 > 119@
goto_if_false @MANSON5_12355
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12355
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12395
118@ = 4
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12395
goto @MANSON5_12904

:MANSON5_12402
if 
  24 > 119@
goto_if_false @MANSON5_12477
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 144@(119@,24i) 
119@ += 1
118@ += 1

:MANSON5_12477
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12517
118@ = 6
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12517
goto @MANSON5_12904

:MANSON5_12524
if 
  4 > 119@
goto_if_false @MANSON5_12667
if 
  TIMERA > 8000
goto_if_false @MANSON5_12667
if 
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @MANSON5_12659
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 35@ 
119@ += 1
118@ += 1
TIMERA = 0
goto @MANSON5_12667

:MANSON5_12659
TIMERA = 7000

:MANSON5_12667
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12707
118@ = 8
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12707
goto @MANSON5_12904

:MANSON5_12714
if 
  9 > 119@
goto_if_false @MANSON5_12857
if 
  TIMERA > 8000
goto_if_false @MANSON5_12857
if 
  locate_char_any_means_char_2d $scplayer {target} 35@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @MANSON5_12849
set_var_int_to_lvar_int $load_sample = 120@(119@,24i)
set_var_text_label s$load_text = 168@(119@,24s)
start_new_script @A_ALAP 2 100 35@ 
119@ += 1
118@ += 1
TIMERA = 0
goto @MANSON5_12857

:MANSON5_12849
TIMERA = 7000

:MANSON5_12857
if 
  $SLOT_status($preload_slot,2i) == -3
goto_if_false @MANSON5_12897
118@ = 10
$SLOT_status($preload_slot,2i) = -4

:MANSON5_12897
goto @MANSON5_12904

:MANSON5_12904
return 

:MANSON5_12906
$flag_mansion_mission_counter += 1
register_mission_passed 'MAN_5'
player_made_progress 1
switch_car_generator $car_gen_go_kart {amount} 101
switch_car_generator $5249 {amount} 101
switch_car_generator $5250 {amount} 101
switch_car_generator $5251 {amount} 101
switch_car_generator $5252 {amount} 101
switch_car_generator $5253 {amount} 101
switch_car_generator $5254 {amount} 101
switch_car_generator $5255 {amount} 101
switch_car_generator $5256 {amount} 101
switch_car_generator $5257 {amount} 101
switch_car_generator $5258 {amount} 101
switch_car_generator $5259 {amount} 101
switch_car_generator $5260 {amount} 101
switch_car_generator $5261 {amount} 101
switch_car_generator $5262 {amount} 101
switch_car_generator $car_gen_hover {amount} 101
switch_car_generator $5264 {amount} 101
switch_car_generator $5265 {amount} 101
switch_car_generator $5266 {amount} 101
switch_car_generator $5267 {amount} 101
switch_car_generator $5268 {amount} 101
print_with_number_big 'M_PASSR' {num} 4 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 50
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $mansion_contact_blip
return 

:MANSON5_13113
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  62@ == 1
goto_if_false @MANSON5_13157
print_now 63@s {time} 5000 {flag} 1

:MANSON5_13157
return 

:MANSON5_13159
if 
  is_player_playing $player1
goto_if_false @MANSON5_13186
set_player_group_recruitment $player1 {state} True
set_script_limit_to_gang_size 99

:MANSON5_13186
start_new_script @A_TERM 
set_ped_density_multiplier 1.0
switch_roads_back_to_original 226.1833 {leftBottomY} -1631.007 {leftBottomZ} 40.0 {rightTopX} 546.4532 {rightTopY} -1423.991 {rightTopZ} 12.0
switch_roads_back_to_original 510.3661 {leftBottomY} -1431.656 {leftBottomZ} 10.0 {rightTopX} 645.8312 {rightTopY} -1387.312 {rightTopZ} 20.0
switch_roads_back_to_original 646.6142 {leftBottomY} -1389.016 {leftBottomZ} 10.0 {rightTopX} 620.9656 {rightTopY} -1310.468 {rightTopZ} 20.0
switch_roads_back_to_original 620.9656 {leftBottomY} -1310.468 {leftBottomZ} 10.0 {rightTopX} 947.811 {rightTopY} -1335.012 {rightTopZ} 20.0
switch_roads_back_to_original 948.2631 {leftBottomY} -1335.406 {leftBottomZ} 10.0 {rightTopX} 934.2357 {rightTopY} -1229.939 {rightTopZ} 20.0
switch_roads_back_to_original 804.0421 {leftBottomY} -1329.191 {leftBottomZ} 10.0 {rightTopX} 789.3583 {rightTopY} -1159.0081 {rightTopZ} 24.0
remove_blip 50@
remove_blip 37@
remove_blip 38@
if 
  not is_char_dead 34@
goto_if_false @MANSON5_13429
remove_char_from_group 34@

:MANSON5_13429
remove_char_elegantly 34@
remove_char_elegantly 35@
unload_special_character 1
unload_special_character 2
mark_char_as_no_longer_needed 73@
if 
  not is_char_dead 73@
goto_if_false @MANSON5_13490
freeze_char_position 73@ {state} False
set_char_proofs 73@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSON5_13490
mark_car_as_no_longer_needed 74@
if 
  not is_car_dead 74@
goto_if_false @MANSON5_13533
freeze_car_position 74@ {state} False
set_car_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:MANSON5_13533
mark_car_as_no_longer_needed 39@
if 
  not is_car_dead 40@
goto_if_false @MANSON5_13575
if 
  is_playback_going_on_for_car 40@
goto_if_false @MANSON5_13575
stop_playback_recorded_car 40@

:MANSON5_13575
mark_car_as_no_longer_needed 40@
if 
  not is_car_dead 41@
goto_if_false @MANSON5_13617
if 
  is_playback_going_on_for_car 41@
goto_if_false @MANSON5_13617
stop_playback_recorded_car 41@

:MANSON5_13617
mark_car_as_no_longer_needed 41@
mark_car_as_no_longer_needed 42@
if 
  not is_car_dead 43@
goto_if_false @MANSON5_13664
if 
  is_playback_going_on_for_car 43@
goto_if_false @MANSON5_13664
stop_playback_recorded_car 43@

:MANSON5_13664
mark_car_as_no_longer_needed 43@
if 
  not is_car_dead 44@
goto_if_false @MANSON5_13706
if 
  is_playback_going_on_for_car 44@
goto_if_false @MANSON5_13706
stop_playback_recorded_car 44@

:MANSON5_13706
mark_car_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_car_as_no_longer_needed 114@
mark_car_as_no_longer_needed 115@
mark_car_as_no_longer_needed 116@
48@ = 0

:MANSON5_13738
if 
  8 > 48@
goto_if_false @MANSON5_13779
mark_car_as_no_longer_needed 75@(48@,8i)
48@ += 1
goto @MANSON5_13738

:MANSON5_13779
mark_object_as_no_longer_needed 83@
mark_model_as_no_longer_needed 219
mark_model_as_no_longer_needed 424
mark_model_as_no_longer_needed 539
mark_model_as_no_longer_needed 571
mark_model_as_no_longer_needed 582
mark_model_as_no_longer_needed 484
mark_model_as_no_longer_needed 453
mark_model_as_no_longer_needed 588
mark_model_as_no_longer_needed 482
mark_model_as_no_longer_needed #WATERJUMPX2
$onmission = 0
mission_has_finished 
return 

//-------------Mission 106---------------
// Originally: Beat Down on B Dup

:GROVE1
script_name 'GROVE1'
gosub @GROVE1_608
if 
  has_deatharrest_been_executed 
goto_if_false @GROVE1_38
gosub @GROVE1_18797

:GROVE1_38
gosub @GROVE1_18963
terminate_this_script 

:GROVE1_47
switch_start 96@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE1_606 {caseNum1} 0 {caseLabel1} @GROVE1_110 {caseNum2} 1 {caseLabel2} @GROVE1_322 {caseNum3} 2 {caseLabel3} @GROVE1_446 {caseNum4} 3 {caseLabel4} @GROVE1_548 {caseNum5} -1 {caseLabel5} @GROVE1_606 {caseNum6} -1 {caseLabel6} @GROVE1_606 {caseNum7} -1 {caseLabel7} @GROVE1_606

:GROVE1_110
set_var_text_label s$grove1_chat[0] = 'GRO1_FA'
set_var_text_label s$grove1_chat[1] = 'GRO1_FB'
set_var_text_label s$grove1_chat[2] = 'GRO1_FC'
set_var_text_label s$grove1_chat[3] = 'GRO1_FD'
set_var_text_label s$grove1_chat[4] = 'GRO1_FE'
set_var_text_label s$grove1_chat[5] = 'GRO1_FF'
set_var_text_label s$grove1_chat[6] = 'GRO1_FG'
set_var_text_label s$grove1_chat[7] = 'GRO1_FH'
set_var_text_label s$grove1_chat[8] = 'GRO1_FJ'
set_lvar_int_to_constant 97@ = 17432
set_lvar_int_to_constant 98@ = 17433
set_lvar_int_to_constant 99@ = 17434
set_lvar_int_to_constant 100@ = 17435
set_lvar_int_to_constant 101@ = 17436
set_lvar_int_to_constant 102@ = 17437
set_lvar_int_to_constant 103@ = 17438
set_lvar_int_to_constant 104@ = 17439
set_lvar_int_to_constant 105@ = 17440
$cell_index_end = 8
goto @GROVE1_606

:GROVE1_322
set_var_text_label s$grove1_chat[0] = 'GRO1_JA'
set_var_text_label s$grove1_chat[1] = 'GRO1_JB'
set_var_text_label s$grove1_chat[2] = 'GRO1_JC'
set_var_text_label s$grove1_chat[3] = 'GRO1_JD'
set_var_text_label s$grove1_chat[4] = 'GRO1_JE'
set_lvar_int_to_constant 97@ = 17445
set_lvar_int_to_constant 98@ = 17446
set_lvar_int_to_constant 99@ = 17447
set_lvar_int_to_constant 100@ = 17448
set_lvar_int_to_constant 101@ = 17449
$cell_index_end = 4
goto @GROVE1_606

:GROVE1_446
set_var_text_label s$grove1_chat[0] = 'GRO1_LA'
set_var_text_label s$grove1_chat[1] = 'GRO1_LB'
set_var_text_label s$grove1_chat[2] = 'GRO1_LC'
set_var_text_label s$grove1_chat[3] = 'GRO1_LD'
set_lvar_int_to_constant 97@ = 17452
set_lvar_int_to_constant 98@ = 17453
set_lvar_int_to_constant 99@ = 17454
set_lvar_int_to_constant 100@ = 17455
$cell_index_end = 3
goto @GROVE1_606

:GROVE1_548
set_var_text_label s$grove1_chat[0] = 'GRO1_KA'
set_var_text_label s$grove1_chat[1] = 'GRO1_KB'
set_lvar_int_to_constant 97@ = 17450
set_lvar_int_to_constant 98@ = 17451
$cell_index_end = 1
goto @GROVE1_606

:GROVE1_606
return 

:GROVE1_608
$onmission = 1
77@ = 50
78@ = 50
79@ = 50
80@ = 50
81@ = 0
$sweets_health_grove1 = 1000
37@ = 0
41@ = 0
44@ = 0
47@ = 0
50@ = 0
53@ = 0
56@ = 0
60@ = 0
64@ = 0
68@ = 0
70@ = 0
71@ = 0
73@ = 0
74@ = 0
82@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
88@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
91@ = 0
92@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
128@ = 0
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
register_mission_given 
load_mission_text 'GROVE1'
wait 0
set_area_visible 3
load_cutscene 'GROVE1A'

:GROVE1_1005
if 
  not has_cutscene_loaded 
goto_if_false @GROVE1_1029
wait 0
goto @GROVE1_1005

:GROVE1_1029
start_cutscene 
do_fade 1000 {direction} Fade.In

:GROVE1_1038
if 
  not has_cutscene_finished 
goto_if_false @GROVE1_1062
wait 0
goto @GROVE1_1038

:GROVE1_1062
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GROVE1_1075
if 
  get_fading_status 
goto_if_false @GROVE1_1099
wait 0
goto @GROVE1_1075

:GROVE1_1099
clear_cutscene 
set_area_visible 0
set_script_limit_to_gang_size 5
goto @GROVE1_1224
39@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
57@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 57@
61@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 61@
65@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 65@
69@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 1
close_sequence_task 69@

:GROVE1_1224
34@ = load_char_decision_maker DecisionMakerType.Tough
35@ = load_char_decision_maker DecisionMakerType.Tough
add_char_decision_maker_event_response 35@ {event} Event.ShotFiredWhizzedBy {taskId} TaskId.SimpleDuckWhileShotsWhizzing {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} False {onFoot} True
load_special_character 1 {modelName} 'SWEET'
request_model 104
request_model 102
request_model 355
request_model 411
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17441
load_all_models_now 

:GROVE1_1312
if or
  not has_special_character_loaded 1
  not has_model_loaded 355
  not has_model_loaded 104
  not has_model_loaded 102
  not has_model_loaded 411
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @GROVE1_1360
wait 0
goto @GROVE1_1312

:GROVE1_1360
set_char_coordinates $scplayer {x} 2497.324 {y} -1684.744 {z} 12.44
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
restore_camera_jumpcut 
load_scene 2497.324 {y} -1684.744 {z} 12.44
38@ = create_char PedType.Mission1 {modelId} 290 {x} 2496.6331 {y} -1684.573 {z} 12.435
set_char_heading 38@ {heading} 0.0
set_char_decision_maker 38@ {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_anim_group_for_char 38@ {animGroup} "GANG2"
give_weapon_to_char 38@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_never_targetted 38@ {state} True
set_char_suffers_critical_hits 38@ {state} False
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
set_char_accuracy 38@ {accuracy} 90
set_char_health 38@ {health} 1000
set_char_max_health 38@ {maxHealth} 1000
set_char_relationship 38@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_player_group_to_follow_always $player1 {state} True
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE1_1580
if 
  not get_fading_status 
goto_if_false @GROVE1_1604
wait 0
goto @GROVE1_1580

:GROVE1_1604
set_player_control $player1 {state} True
if 
  is_char_dead 38@
goto_if_false @GROVE1_1657
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797
goto @GROVE1_1672

:GROVE1_1657
set_char_proofs 38@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GROVE1_1672
print_now 'GM1_18' {time} 8000 {flag} 1
89@ = add_blip_for_coord 2293.032 {y} -1795.767 {z} 12.5469
$blob_flag = 1
TIMERA = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
gosub @GROVE1_47
119@ = 0
120@ = 0

:GROVE1_1771
if or
  not locate_char_any_means_3d $scplayer {x} 2293.032 {y} -1795.767 {z} 12.5469 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} $blob_flag
  not is_group_member 38@ {handle} $Players_Group
  120@ <> 1
goto_if_false @GROVE1_3274
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @GROVE1_1861
goto @GROVE1_18881

:GROVE1_1861
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_1945
83@ = store_car_char_is_in $scplayer
if 
  not is_car_dead 83@
goto_if_false @GROVE1_1938
if 
  is_vehicle_on_all_wheels 83@
goto_if_false @GROVE1_1931
120@ = 1
goto @GROVE1_1938

:GROVE1_1931
120@ = 0

:GROVE1_1938
goto @GROVE1_2047

:GROVE1_1945
if 
  locate_char_any_means_3d $scplayer {x} 2293.032 {y} -1795.767 {z} 12.5469 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @GROVE1_2040
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_2026
120@ = 1
goto @GROVE1_2033

:GROVE1_2026
120@ = 0

:GROVE1_2033
goto @GROVE1_2047

:GROVE1_2040
120@ = 0

:GROVE1_2047
if 
  114@ == 0
goto_if_false @GROVE1_2102
if 
  TIMERA >= 5000
goto_if_false @GROVE1_2102
clear_this_print 'GM1_18'
114@ = 1

:GROVE1_2102
if 
  114@ == 1
goto_if_false @GROVE1_2420
if 
  not is_char_dead 38@
goto_if_false @GROVE1_2364
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_2254
if 
  locate_char_any_means_char_3d 38@ {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_2247
if and
  is_char_on_foot $scplayer
  is_char_on_foot 38@
goto_if_false @GROVE1_2219
gosub @GROVE1_19481

:GROVE1_2219
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 38@
goto_if_false @GROVE1_2247
gosub @GROVE1_19481

:GROVE1_2247
goto @GROVE1_2357

:GROVE1_2254
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_FA'
clear_this_print 'GRO1_FB'
clear_this_print 'GRO1_FC'
clear_this_print 'GRO1_FD'
clear_this_print 'GRO1_FE'
clear_this_print 'GRO1_FF'
clear_this_print 'GRO1_FG'
clear_this_print 'GRO1_FH'
clear_this_print 'GRO1_FJ'

:GROVE1_2357
goto @GROVE1_2420

:GROVE1_2364
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_2413
remove_blip 39@

:GROVE1_2413
goto @GROVE1_18797

:GROVE1_2420
if 
  is_char_dead 38@
goto_if_false @GROVE1_2489
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_2475
remove_blip 39@

:GROVE1_2475
goto @GROVE1_18797
goto @GROVE1_3267

:GROVE1_2489
$sweets_health_grove1 = get_char_health 38@
$sweets_health_grove1 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_2555
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_2555
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_2555
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_2638
remove_blip 89@
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_2638
if 
  37@ == 1
goto_if_false @GROVE1_3267
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_3267
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_3106
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_3029
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_2861
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
89@ = add_blip_for_coord 2293.032 {y} -1795.767 {z} 12.5469
print_now 'GM1_18' {time} 8000 {flag} 1
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_3022

:GROVE1_2861
if 
  87@ == 0
goto_if_false @GROVE1_2959
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_2931
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_2931
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_3022

:GROVE1_2959
if 
  119@ == 1
goto_if_false @GROVE1_3022
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_3022
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_3022
goto @GROVE1_3099

:GROVE1_3029
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
89@ = add_blip_for_coord 2293.032 {y} -1795.767 {z} 12.5469
print_now 'GM1_18' {time} 8000 {flag} 1
$blob_flag = 1
37@ = 0

:GROVE1_3099
goto @GROVE1_3267

:GROVE1_3106
if 
  73@ == 0
goto_if_false @GROVE1_3204
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_3176
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_3176
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_3267

:GROVE1_3204
if 
  119@ == 1
goto_if_false @GROVE1_3267
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_3267
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_3267
goto @GROVE1_1771

:GROVE1_3274
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 89@
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
if 
  not is_char_dead 38@
goto_if_false @GROVE1_3344
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GROVE1_3367

:GROVE1_3344
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_3367
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_3382
if 
  get_fading_status 
goto_if_false @GROVE1_3445
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_3438
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_3438
goto @GROVE1_3382

:GROVE1_3445
make_player_gang_disappear 
clear_area 2294.323 {y} -1797.048 {z} 12.586 {radius} 7.0 {clearParticles} True
if 
  not is_char_in_any_car $scplayer
goto_if_false @GROVE1_3548
clear_area 2294.323 {y} -1797.048 {z} 12.586 {radius} 3.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2294.323 {y} -1797.048 {z} 12.586
set_char_heading $scplayer {heading} 270.0
goto @GROVE1_3652

:GROVE1_3548
90@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 2294.323 {y} -1797.048 {z} 12.586

:GROVE1_3576
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_3642
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_3635
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_3635
goto @GROVE1_3576

:GROVE1_3642
set_char_heading $scplayer {heading} 270.0

:GROVE1_3652
if 
  not is_char_dead 38@
goto_if_false @GROVE1_3861
if 
  not is_char_in_any_car 38@
goto_if_false @GROVE1_3750
clear_area 2294.323 {y} -1794.911 {z} 12.586 {radius} 3.0 {clearParticles} True
clear_char_tasks_immediately 38@
set_char_coordinates 38@ {x} 2294.323 {y} -1794.911 {z} 12.586
set_char_heading 38@ {heading} 270.0
goto @GROVE1_3854

:GROVE1_3750
90@ = store_car_char_is_in 38@
warp_char_from_car_to_coord 38@ {x} 2294.323 {y} -1794.911 {z} 12.586

:GROVE1_3778
if 
  is_char_in_any_car 38@
goto_if_false @GROVE1_3844
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_3837
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_3837
goto @GROVE1_3778

:GROVE1_3844
set_char_heading 38@ {heading} 270.0

:GROVE1_3854
goto @GROVE1_3884

:GROVE1_3861
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_3884
clear_area 2294.323 {y} -1797.048 {z} 12.586 {radius} 6.0 {clearParticles} True
if 
  does_vehicle_exist 90@
goto_if_false @GROVE1_3994
if 
  not is_car_dead 90@
goto_if_false @GROVE1_3994
clear_area 2299.2429 {y} -1784.5649 {z} 12.591 {radius} 3.0 {clearParticles} False
set_car_coordinates 90@ {x} 2299.2429 {y} -1784.5649 {z} 12.591
set_car_heading 90@ {heading} 0.0

:GROVE1_3994
make_player_safe_for_cutscene $player1
set_area_visible 3
load_cutscene 'GROVE1B'

:GROVE1_4014
if 
  not has_cutscene_loaded 
goto_if_false @GROVE1_4038
wait 0
goto @GROVE1_4014

:GROVE1_4038
start_cutscene 
do_fade 1000 {direction} Fade.In

:GROVE1_4047
if 
  not has_cutscene_finished 
goto_if_false @GROVE1_4071
wait 0
goto @GROVE1_4047

:GROVE1_4071
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GROVE1_4084
if 
  get_fading_status 
goto_if_false @GROVE1_4108
wait 0
goto @GROVE1_4084

:GROVE1_4108
clear_cutscene 
set_area_visible 0
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
make_player_gang_reappear 
load_scene 2294.323 {y} -1797.048 {z} 12.586
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:GROVE1_4156
if 
  get_fading_status 
goto_if_false @GROVE1_4180
wait 0
goto @GROVE1_4156

:GROVE1_4180
if 
  not is_char_dead 38@
goto_if_false @GROVE1_4218
set_char_proofs 38@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @GROVE1_4241

:GROVE1_4218
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_4241
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
print_now 'GM1_1' {time} 5000 {flag} 1
40@ = add_sprite_blip_for_coord 1988.316 {y} -1199.675 {z} 19.135 {sprite} RadarSprite.GangG
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
91@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Vagos
92@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 0
set_specific_zone_to_trigger_gang_war 'GLN1'
set_wanted_multiplier 0.5
set_gang_wars_active True
can_trigger_gang_war_when_on_a_mission True
TIMERB = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 1
gosub @GROVE1_47
119@ = 0

:GROVE1_4467
if or
  81@ <> 1
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_5650
wait 0
if 
  115@ == 0
goto_if_false @GROVE1_4552
if 
  TIMERB >= 5000
goto_if_false @GROVE1_4552
clear_this_print 'GM1_1'
115@ = 1

:GROVE1_4552
if 
  115@ == 1
goto_if_false @GROVE1_4827
if 
  not is_char_dead 38@
goto_if_false @GROVE1_4770
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_4704
if 
  locate_char_any_means_char_3d 38@ {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_4697
if and
  is_char_on_foot $scplayer
  is_char_on_foot 38@
goto_if_false @GROVE1_4669
gosub @GROVE1_19481

:GROVE1_4669
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 38@
goto_if_false @GROVE1_4697
gosub @GROVE1_19481

:GROVE1_4697
goto @GROVE1_4763

:GROVE1_4704
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_JA'
clear_this_print 'GRO1_JB'
clear_this_print 'GRO1_JC'
clear_this_print 'GRO1_JD'
clear_this_print 'GRO1_JE'

:GROVE1_4763
goto @GROVE1_4827

:GROVE1_4770
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_4820
remove_blip 39@

:GROVE1_4820
goto @GROVE1_18797

:GROVE1_4827
if 
  is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @GROVE1_4866
81@ = 1
goto @GROVE1_4873

:GROVE1_4866
81@ = 0

:GROVE1_4873
if 
  is_char_dead 38@
goto_if_false @GROVE1_4942
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_4928
remove_blip 39@

:GROVE1_4928
goto @GROVE1_18797
goto @GROVE1_5643

:GROVE1_4942
$sweets_health_grove1 = get_char_health 38@
$sweets_health_grove1 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_5008
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_5008
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_5008
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_5086
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_5086
if 
  37@ == 1
goto_if_false @GROVE1_5643
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_5643
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_5482
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_5441
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_5273
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_5434

:GROVE1_5273
if 
  87@ == 0
goto_if_false @GROVE1_5371
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_5343
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_5343
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_5434

:GROVE1_5371
if 
  119@ == 1
goto_if_false @GROVE1_5434
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_5434
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_5434
goto @GROVE1_5475

:GROVE1_5441
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
37@ = 0

:GROVE1_5475
goto @GROVE1_5643

:GROVE1_5482
if 
  73@ == 0
goto_if_false @GROVE1_5580
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_5552
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_5552
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_5643

:GROVE1_5580
if 
  119@ == 1
goto_if_false @GROVE1_5643
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_5643
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_5643
goto @GROVE1_4467

:GROVE1_5650
print_now 'GM1_3' {time} 8000 {flag} 1
TIMERB = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 3
gosub @GROVE1_47
if 
  not is_char_dead 38@
goto_if_false @GROVE1_5739
$sweets_health_grove1 = get_char_health 38@
goto @GROVE1_5796

:GROVE1_5739
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_5789
remove_blip 39@

:GROVE1_5789
goto @GROVE1_18797

:GROVE1_5796
$sweets_health_grove1 /= 10
display_onscreen_counter_with_string $sweets_health_grove1 {display} CounterDisplay.Bar {text} 'GM1_7'
119@ = 0

:GROVE1_5826
if or
  82@ <> 1
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_7131
wait 0
if 
  116@ == 0
goto_if_false @GROVE1_5911
if 
  TIMERB >= 5000
goto_if_false @GROVE1_5911
clear_this_print 'GM1_3'
116@ = 1

:GROVE1_5911
if 
  116@ == 1
goto_if_false @GROVE1_6153
if 
  not is_char_dead 38@
goto_if_false @GROVE1_6096
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_6063
if 
  locate_char_any_means_char_3d 38@ {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_6056
if and
  is_char_on_foot $scplayer
  is_char_on_foot 38@
goto_if_false @GROVE1_6028
gosub @GROVE1_19481

:GROVE1_6028
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car 38@
goto_if_false @GROVE1_6056
gosub @GROVE1_19481

:GROVE1_6056
goto @GROVE1_6089

:GROVE1_6063
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_KA'
clear_this_print 'GRO1_KB'

:GROVE1_6089
goto @GROVE1_6153

:GROVE1_6096
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_6146
remove_blip 39@

:GROVE1_6146
goto @GROVE1_18797

:GROVE1_6153
77@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Ballas
118@ = get_zone_gang_strength 'GLN1' {gangId} GangType.Grove
if 
  is_char_dead 38@
goto_if_false @GROVE1_6254
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_6240
remove_blip 39@

:GROVE1_6240
goto @GROVE1_18797
goto @GROVE1_6955

:GROVE1_6254
$sweets_health_grove1 = get_char_health 38@
$sweets_health_grove1 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_6320
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_6320
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_6320
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_6398
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_6398
if 
  37@ == 1
goto_if_false @GROVE1_6955
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_6955
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_6794
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_6753
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_6585
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_6746

:GROVE1_6585
if 
  87@ == 0
goto_if_false @GROVE1_6683
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_6655
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_6655
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_6746

:GROVE1_6683
if 
  119@ == 1
goto_if_false @GROVE1_6746
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_6746
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_6746
goto @GROVE1_6787

:GROVE1_6753
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
37@ = 0

:GROVE1_6787
goto @GROVE1_6955

:GROVE1_6794
if 
  73@ == 0
goto_if_false @GROVE1_6892
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_6864
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_6864
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_6955

:GROVE1_6892
if 
  119@ == 1
goto_if_false @GROVE1_6955
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_6955
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_6955
if 
  77@ == 0
goto_if_false @GROVE1_6980
82@ = 1

:GROVE1_6980
if 
  is_player_in_info_zone $player1 {infoZone} 'GLN1'
goto_if_false @GROVE1_7019
81@ = 1
goto @GROVE1_7124

:GROVE1_7019
if 
  not is_gang_war_going_on 
goto_if_false @GROVE1_7117
if 
  is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_7110
if 
  118@ == 0
goto_if_false @GROVE1_7110
if 
  88@ == 0
goto_if_false @GROVE1_7110
print_now 'GM1_16' {time} 8000 {flag} 1
88@ = 1

:GROVE1_7110
goto @GROVE1_7124

:GROVE1_7117
88@ = 0

:GROVE1_7124
goto @GROVE1_5826

:GROVE1_7131
remove_blip 40@
clear_this_print 'GM1_16'
clear_this_print 'GRO1_GA'
clear_this_print 'GM1_2'
clear_this_print 'GM1_4'
clear_this_print 'GM1_3'
can_trigger_gang_war_when_on_a_mission False
wait 5000
gosub @ENTEXT_63

:GROVE1_7207
if 
  $player_is_completely_safe <> 1
goto_if_false @GROVE1_7287
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_7273
print_now 'GM1_4' {time} 5000 {flag} 1
remove_blip 39@
goto @GROVE1_18797

:GROVE1_7273
gosub @ENTEXT_63
goto @GROVE1_7207

:GROVE1_7287
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
if 
  not is_char_dead 38@
goto_if_false @GROVE1_7346
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GROVE1_7369

:GROVE1_7346
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_7369
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_7384
if 
  get_fading_status 
goto_if_false @GROVE1_7408
wait 0
goto @GROVE1_7384

:GROVE1_7408
make_player_gang_disappear 
if 
  not is_char_in_any_car $scplayer
goto_if_false @GROVE1_7504
load_scene 2038.184 {y} -1143.772 {z} 23.455
clear_area 2038.184 {y} -1143.772 {z} 23.455 {radius} 3.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2038.184 {y} -1143.772 {z} 23.455
set_char_heading $scplayer {heading} 56.5
goto @GROVE1_7601

:GROVE1_7504
90@ = store_car_char_is_in $scplayer
warp_char_from_car_to_coord $scplayer {x} 2038.184 {y} -1143.772 {z} 23.455

:GROVE1_7532
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_7591
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_7568

:GROVE1_7568
if 
  is_car_dead 90@
goto_if_false @GROVE1_7584

:GROVE1_7584
goto @GROVE1_7532

:GROVE1_7591
set_char_heading $scplayer {heading} 56.5

:GROVE1_7601
if 
  not is_char_dead 38@
goto_if_false @GROVE1_7791
if 
  not is_char_in_any_car 38@
goto_if_false @GROVE1_7694
clear_area 2037.048 {y} -1144.896 {z} 23.487 {radius} 3.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2037.048 {y} -1144.896 {z} 23.487
set_char_heading 38@ {heading} 56.5
goto @GROVE1_7791

:GROVE1_7694
90@ = store_car_char_is_in 38@
warp_char_from_car_to_coord 38@ {x} 2037.048 {y} -1144.896 {z} 23.487

:GROVE1_7722
if 
  is_char_in_any_car 38@
goto_if_false @GROVE1_7781
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_7758

:GROVE1_7758
if 
  is_car_dead 90@
goto_if_false @GROVE1_7774

:GROVE1_7774
goto @GROVE1_7722

:GROVE1_7781
set_char_heading 38@ {heading} 56.5

:GROVE1_7791
clear_area 2038.184 {y} -1143.772 {z} 23.455 {radius} 6.0 {clearParticles} True
switch_widescreen True
clear_area 2006.356 {y} -1125.663 {z} 25.6347 {radius} 1.0 {clearParticles} True
set_fixed_camera_position 2006.356 {y} -1125.663 {z} 25.6347 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2005.666 {y} -1124.9659 {z} 25.8323 {switchStyle} SwitchType.JumpCut
clear_area 1992.437 {y} -1120.1851 {z} 25.813 {radius} 4.0 {clearParticles} False
76@ = create_car 411 {x} 1992.437 {y} -1120.1851 {z} 25.813
set_car_heading 76@ {heading} 260.0
lock_car_doors 76@ {lockStatus} CarLock.Locked
request_collision 1994.668 {y} -1119.022
load_scene_in_direction 1994.668 {y} -1119.022 {z} 25.813 {heading} 56.5
clear_area 1994.668 {y} -1119.022 {z} 25.813 {radius} 2.0 {clearParticles} False
42@ = create_char PedType.Mission2 {modelId} 102 {x} 1994.668 {y} -1119.022 {z} 25.813
give_weapon_to_char 42@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 42@ {heading} 207.71
set_char_decision_maker 42@ {handleOrTemplate} 35@
task_play_anim 42@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_stay_in_same_place 42@ {state} True
task_kill_char_on_foot 42@ {target} $scplayer
set_char_is_target_priority 42@ {state} True
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 42@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2005.848 {y} -1116.5 {z} 26.179 {radius} 2.0 {clearParticles} False
45@ = create_char PedType.Mission2 {modelId} 104 {x} 2005.848 {y} -1116.5 {z} 26.179
give_weapon_to_char 45@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 45@ {heading} 185.395
set_char_decision_maker 45@ {handleOrTemplate} 35@
task_play_anim 45@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_stay_in_same_place 45@ {state} True
task_kill_char_on_foot 45@ {target} $scplayer
set_char_is_target_priority 45@ {state} True
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 45@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2002.672 {y} -1116.134 {z} 26.172 {radius} 2.0 {clearParticles} False
48@ = create_char PedType.Mission2 {modelId} 102 {x} 2002.672 {y} -1116.134 {z} 26.172
give_weapon_to_char 48@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 48@ {heading} 200.691
set_char_decision_maker 48@ {handleOrTemplate} 35@
task_play_anim 48@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_stay_in_same_place 48@ {state} True
task_kill_char_on_foot 48@ {target} $scplayer
set_char_is_target_priority 48@ {state} True
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 48@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 1988.934 {y} -1120.135 {z} 25.813 {radius} 2.0 {clearParticles} False
51@ = create_char PedType.Mission2 {modelId} 104 {x} 1988.934 {y} -1120.135 {z} 25.813
give_weapon_to_char 51@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 51@ {heading} 220.163
set_char_decision_maker 51@ {handleOrTemplate} 35@
set_char_stay_in_same_place 51@ {state} True
task_kill_char_on_foot 51@ {target} $scplayer
set_char_is_target_priority 51@ {state} True
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 51@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
task_play_anim 48@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
clear_area 1994.062 {y} -1115.618 {z} 25.813 {radius} 2.0 {clearParticles} False
54@ = create_char PedType.Mission2 {modelId} 104 {x} 1994.062 {y} -1115.618 {z} 25.813
give_weapon_to_char 54@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 54@ {heading} 235.0
set_char_decision_maker 54@ {handleOrTemplate} 34@
set_char_stay_in_same_place 54@ {state} True
set_char_is_target_priority 54@ {state} True
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 54@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 1997.48 {y} -1114.998 {z} 25.813 {radius} 2.0 {clearParticles} False
58@ = create_char PedType.Mission2 {modelId} 102 {x} 1997.48 {y} -1118.998 {z} 25.813
give_weapon_to_char 58@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 58@ {heading} 176.0
set_char_decision_maker 58@ {handleOrTemplate} 34@
set_char_stay_in_same_place 58@ {state} True
set_char_is_target_priority 58@ {state} True
set_char_relationship 58@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 58@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2008.344 {y} -1113.057 {z} 25.584 {radius} 2.0 {clearParticles} False
62@ = create_char PedType.Mission2 {modelId} 104 {x} 2008.344 {y} -1113.057 {z} 25.584
give_weapon_to_char 62@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 62@ {heading} 177.195
set_char_decision_maker 62@ {handleOrTemplate} 34@
set_char_stay_in_same_place 62@ {state} True
set_char_is_target_priority 62@ {state} True
set_char_relationship 62@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 62@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
clear_area 2014.7679 {y} -1111.447 {z} 25.235 {radius} 2.0 {clearParticles} False
66@ = create_char PedType.Mission2 {modelId} 102 {x} 2014.7679 {y} -1111.447 {z} 25.235
give_weapon_to_char 66@ {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_heading 66@ {heading} 164.89
set_char_decision_maker 66@ {handleOrTemplate} 34@
set_char_is_target_priority 66@ {state} True
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In
93@ = 0
94@ = 0
95@ = 0
96@ = 2
gosub @GROVE1_47
gosub @GROVE1_19481

:GROVE1_9098
if 
  get_fading_status 
goto_if_false @GROVE1_9122
wait 0
goto @GROVE1_9098

:GROVE1_9122
if 
  not is_char_dead 38@
goto_if_false @GROVE1_9152
gosub @GROVE1_19481
goto @GROVE1_9213

:GROVE1_9152
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_9206
remove_blip 39@

:GROVE1_9206
goto @GROVE1_18797

:GROVE1_9213
skip_cutscene_start_internal @GROVE1_9390

:GROVE1_9220
if 
  93@ <> 3
goto_if_false @GROVE1_9390
wait 0
gosub @GROVE1_20521
if 
  not is_char_dead 38@
goto_if_false @GROVE1_9279
gosub @GROVE1_19481
goto @GROVE1_9340

:GROVE1_9279
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
remove_blip 40@
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_9333
remove_blip 39@

:GROVE1_9333
goto @GROVE1_18797

:GROVE1_9340
if 
  93@ > 0
goto_if_false @GROVE1_9383
if 
  71@ == 0
goto_if_false @GROVE1_9383
gosub @GROVE1_19156

:GROVE1_9383
goto @GROVE1_9220

:GROVE1_9390
skip_cutscene_end 
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_9417
if 
  get_fading_status 
goto_if_false @GROVE1_9441
wait 0
goto @GROVE1_9417

:GROVE1_9441
make_player_gang_reappear 
if 
  44@ == 0
goto_if_false @GROVE1_9511
if 
  not is_char_dead 42@
goto_if_false @GROVE1_9492
43@ = add_blip_for_char 42@
goto @GROVE1_9511

:GROVE1_9492
remove_blip 43@
41@ += 1
44@ = 1

:GROVE1_9511
if 
  47@ == 0
goto_if_false @GROVE1_9579
if 
  not is_char_dead 45@
goto_if_false @GROVE1_9560
46@ = add_blip_for_char 45@
goto @GROVE1_9579

:GROVE1_9560
remove_blip 46@
41@ += 1
47@ = 1

:GROVE1_9579
if 
  50@ == 0
goto_if_false @GROVE1_9647
if 
  not is_char_dead 48@
goto_if_false @GROVE1_9628
49@ = add_blip_for_char 48@
goto @GROVE1_9647

:GROVE1_9628
remove_blip 49@
41@ += 1
50@ = 1

:GROVE1_9647
if 
  53@ == 0
goto_if_false @GROVE1_9715
if 
  not is_char_dead 51@
goto_if_false @GROVE1_9696
52@ = add_blip_for_char 51@
goto @GROVE1_9715

:GROVE1_9696
remove_blip 52@
41@ += 1
53@ = 1

:GROVE1_9715
if 
  56@ == 0
goto_if_false @GROVE1_9783
if 
  not is_char_dead 54@
goto_if_false @GROVE1_9764
55@ = add_blip_for_char 54@
goto @GROVE1_9783

:GROVE1_9764
remove_blip 55@
41@ += 1
56@ = 1

:GROVE1_9783
if 
  60@ == 0
goto_if_false @GROVE1_9851
if 
  not is_char_dead 58@
goto_if_false @GROVE1_9832
59@ = add_blip_for_char 58@
goto @GROVE1_9851

:GROVE1_9832
remove_blip 59@
41@ += 1
60@ = 1

:GROVE1_9851
if 
  64@ == 0
goto_if_false @GROVE1_9919
if 
  not is_char_dead 62@
goto_if_false @GROVE1_9900
63@ = add_blip_for_char 62@
goto @GROVE1_9919

:GROVE1_9900
remove_blip 63@
41@ += 1
64@ = 1

:GROVE1_9919
if 
  68@ == 0
goto_if_false @GROVE1_9987
if 
  not is_char_dead 66@
goto_if_false @GROVE1_9968
67@ = add_blip_for_char 66@
goto @GROVE1_9987

:GROVE1_9968
remove_blip 67@
41@ += 1
68@ = 1

:GROVE1_9987
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE1_10010
if 
  get_fading_status 
goto_if_false @GROVE1_10034
wait 0
goto @GROVE1_10010

:GROVE1_10034
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
if 
  not is_char_dead 38@
goto_if_false @GROVE1_10093
set_char_proofs 38@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
goto @GROVE1_10116

:GROVE1_10093
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_10116
print_now 'GM1_9' {time} 8000 {flag} 1
119@ = 0

:GROVE1_10139
if or
  41@ <> 8
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_14451
wait 0
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  is_char_dead 38@
goto_if_false @GROVE1_10252
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_10238
remove_blip 39@

:GROVE1_10238
goto @GROVE1_18797
goto @GROVE1_11505

:GROVE1_10252
$sweets_health_grove1 = get_char_health 38@
$sweets_health_grove1 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_10318
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_10318
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_10318
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_10564
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
if 
  not is_char_dead 42@
goto_if_false @GROVE1_10410
remove_blip 43@

:GROVE1_10410
if 
  not is_char_dead 45@
goto_if_false @GROVE1_10431
remove_blip 46@

:GROVE1_10431
if 
  not is_char_dead 48@
goto_if_false @GROVE1_10452
remove_blip 49@

:GROVE1_10452
if 
  not is_char_dead 51@
goto_if_false @GROVE1_10473
remove_blip 52@

:GROVE1_10473
if 
  not is_char_dead 54@
goto_if_false @GROVE1_10494
remove_blip 55@

:GROVE1_10494
if 
  not is_char_dead 58@
goto_if_false @GROVE1_10515
remove_blip 59@

:GROVE1_10515
if 
  not is_char_dead 62@
goto_if_false @GROVE1_10536
remove_blip 63@

:GROVE1_10536
if 
  not is_char_dead 66@
goto_if_false @GROVE1_10557
remove_blip 67@

:GROVE1_10557
37@ = 1

:GROVE1_10564
if 
  37@ == 1
goto_if_false @GROVE1_11505
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_11505
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_11344
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_11111
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_10943
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
if 
  not is_char_dead 42@
goto_if_false @GROVE1_10747
43@ = add_blip_for_char 42@

:GROVE1_10747
if 
  not is_char_dead 45@
goto_if_false @GROVE1_10771
46@ = add_blip_for_char 45@

:GROVE1_10771
if 
  not is_char_dead 48@
goto_if_false @GROVE1_10795
49@ = add_blip_for_char 48@

:GROVE1_10795
if 
  not is_char_dead 51@
goto_if_false @GROVE1_10819
52@ = add_blip_for_char 51@

:GROVE1_10819
if 
  not is_char_dead 54@
goto_if_false @GROVE1_10843
55@ = add_blip_for_char 54@

:GROVE1_10843
if 
  not is_char_dead 58@
goto_if_false @GROVE1_10867
59@ = add_blip_for_char 58@

:GROVE1_10867
if 
  not is_char_dead 62@
goto_if_false @GROVE1_10891
63@ = add_blip_for_char 62@

:GROVE1_10891
if 
  not is_char_dead 66@
goto_if_false @GROVE1_10915
67@ = add_blip_for_char 66@

:GROVE1_10915
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_11104

:GROVE1_10943
if 
  87@ == 0
goto_if_false @GROVE1_11041
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_11013
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_11013
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_11104

:GROVE1_11041
if 
  119@ == 1
goto_if_false @GROVE1_11104
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_11104
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_11104
goto @GROVE1_11337

:GROVE1_11111
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
$blob_flag = 1
if 
  not is_char_dead 42@
goto_if_false @GROVE1_11162
43@ = add_blip_for_char 42@

:GROVE1_11162
if 
  not is_char_dead 45@
goto_if_false @GROVE1_11186
46@ = add_blip_for_char 45@

:GROVE1_11186
if 
  not is_char_dead 48@
goto_if_false @GROVE1_11210
49@ = add_blip_for_char 48@

:GROVE1_11210
if 
  not is_char_dead 51@
goto_if_false @GROVE1_11234
52@ = add_blip_for_char 51@

:GROVE1_11234
if 
  not is_char_dead 54@
goto_if_false @GROVE1_11258
55@ = add_blip_for_char 54@

:GROVE1_11258
if 
  not is_char_dead 58@
goto_if_false @GROVE1_11282
59@ = add_blip_for_char 58@

:GROVE1_11282
if 
  not is_char_dead 62@
goto_if_false @GROVE1_11306
63@ = add_blip_for_char 62@

:GROVE1_11306
if 
  not is_char_dead 66@
goto_if_false @GROVE1_11330
67@ = add_blip_for_char 66@

:GROVE1_11330
37@ = 0

:GROVE1_11337
goto @GROVE1_11505

:GROVE1_11344
if 
  73@ == 0
goto_if_false @GROVE1_11442
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_11414
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_11414
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_11505

:GROVE1_11442
if 
  119@ == 1
goto_if_false @GROVE1_11505
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_11505
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_11505
if 
  44@ == 0
goto_if_false @GROVE1_11867
if 
  is_char_dead 42@
goto_if_false @GROVE1_11565
remove_blip 43@
41@ += 1
44@ = 1
goto @GROVE1_11867

:GROVE1_11565
if 
  70@ == 0
goto_if_false @GROVE1_11631
if or
  is_player_targetting_char $player1 {handle} 42@
  has_char_spotted_char 42@ {target} $scplayer
  has_char_been_damaged_by_weapon 42@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_11624
70@ = 1

:GROVE1_11624
goto @GROVE1_11867

:GROVE1_11631
if 
  locate_char_any_means_char_3d $scplayer {target} 42@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_11816
if 
  locate_char_any_means_char_3d $scplayer {target} 42@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_11755
if 
  122@ == 0
goto_if_false @GROVE1_11748
clear_char_tasks 42@
task_kill_char_on_foot 42@ {target} $scplayer
task_stay_in_same_place 42@ {state} True
122@ = 1

:GROVE1_11748
goto @GROVE1_11809

:GROVE1_11755
if 
  121@ == 0
goto_if_false @GROVE1_11809
clear_char_tasks 42@
task_stay_in_same_place 42@ {state} True
task_set_ignore_weapon_range_flag 42@ {state} True
task_shoot_at_char 42@ {target} $scplayer {time} -1
121@ = 1

:GROVE1_11809
goto @GROVE1_11867

:GROVE1_11816
if or
  121@ == 1
  122@ == 1
goto_if_false @GROVE1_11867
clear_char_tasks 42@
task_stay_in_same_place 42@ {state} True
122@ = 0
121@ = 0

:GROVE1_11867
if 
  47@ == 0
goto_if_false @GROVE1_12229
if 
  is_char_dead 45@
goto_if_false @GROVE1_11927
remove_blip 46@
41@ += 1
47@ = 1
goto @GROVE1_12229

:GROVE1_11927
if 
  70@ == 0
goto_if_false @GROVE1_11993
if or
  is_player_targetting_char $player1 {handle} 45@
  has_char_spotted_char 45@ {target} $scplayer
  has_char_been_damaged_by_weapon 45@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_11986
70@ = 1

:GROVE1_11986
goto @GROVE1_12229

:GROVE1_11993
if 
  locate_char_any_means_char_3d $scplayer {target} 45@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12178
if 
  locate_char_any_means_char_3d $scplayer {target} 45@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12117
if 
  124@ == 0
goto_if_false @GROVE1_12110
clear_char_tasks 45@
task_kill_char_on_foot 45@ {target} $scplayer
task_stay_in_same_place 45@ {state} True
124@ = 1

:GROVE1_12110
goto @GROVE1_12171

:GROVE1_12117
if 
  123@ == 0
goto_if_false @GROVE1_12171
clear_char_tasks 45@
task_stay_in_same_place 45@ {state} True
task_set_ignore_weapon_range_flag 45@ {state} True
task_shoot_at_char 45@ {target} $scplayer {time} -1
123@ = 1

:GROVE1_12171
goto @GROVE1_12229

:GROVE1_12178
if or
  123@ == 1
  124@ == 1
goto_if_false @GROVE1_12229
clear_char_tasks 45@
task_stay_in_same_place 45@ {state} True
124@ = 0
123@ = 0

:GROVE1_12229
if 
  50@ == 0
goto_if_false @GROVE1_12591
if 
  is_char_dead 48@
goto_if_false @GROVE1_12289
remove_blip 49@
41@ += 1
50@ = 1
goto @GROVE1_12591

:GROVE1_12289
if 
  70@ == 0
goto_if_false @GROVE1_12355
if or
  is_player_targetting_char $player1 {handle} 48@
  has_char_spotted_char 48@ {target} $scplayer
  has_char_been_damaged_by_weapon 48@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_12348
70@ = 1

:GROVE1_12348
goto @GROVE1_12591

:GROVE1_12355
if 
  locate_char_any_means_char_3d $scplayer {target} 48@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12540
if 
  locate_char_any_means_char_3d $scplayer {target} 48@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12479
if 
  126@ == 0
goto_if_false @GROVE1_12472
clear_char_tasks 48@
task_kill_char_on_foot 48@ {target} $scplayer
task_stay_in_same_place 48@ {state} True
126@ = 1

:GROVE1_12472
goto @GROVE1_12533

:GROVE1_12479
if 
  125@ == 0
goto_if_false @GROVE1_12533
clear_char_tasks 48@
task_stay_in_same_place 48@ {state} True
task_set_ignore_weapon_range_flag 48@ {state} True
task_shoot_at_char 48@ {target} $scplayer {time} -1
125@ = 1

:GROVE1_12533
goto @GROVE1_12591

:GROVE1_12540
if or
  125@ == 1
  126@ == 1
goto_if_false @GROVE1_12591
clear_char_tasks 48@
task_stay_in_same_place 48@ {state} True
126@ = 0
125@ = 0

:GROVE1_12591
if 
  53@ == 0
goto_if_false @GROVE1_12953
if 
  is_char_dead 51@
goto_if_false @GROVE1_12651
remove_blip 52@
41@ += 1
53@ = 1
goto @GROVE1_12953

:GROVE1_12651
if 
  70@ == 0
goto_if_false @GROVE1_12717
if or
  is_player_targetting_char $player1 {handle} 51@
  has_char_spotted_char 51@ {target} $scplayer
  has_char_been_damaged_by_weapon 51@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_12710
70@ = 1

:GROVE1_12710
goto @GROVE1_12953

:GROVE1_12717
if 
  locate_char_any_means_char_3d $scplayer {target} 51@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12902
if 
  locate_char_any_means_char_3d $scplayer {target} 51@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_12841
if 
  128@ == 0
goto_if_false @GROVE1_12834
clear_char_tasks 51@
task_kill_char_on_foot 51@ {target} $scplayer
task_stay_in_same_place 51@ {state} True
128@ = 1

:GROVE1_12834
goto @GROVE1_12895

:GROVE1_12841
if 
  127@ == 0
goto_if_false @GROVE1_12895
clear_char_tasks 51@
task_stay_in_same_place 51@ {state} True
task_set_ignore_weapon_range_flag 51@ {state} True
task_shoot_at_char 51@ {target} $scplayer {time} -1
127@ = 1

:GROVE1_12895
goto @GROVE1_12953

:GROVE1_12902
if or
  127@ == 1
  128@ == 1
goto_if_false @GROVE1_12953
clear_char_tasks 51@
task_stay_in_same_place 51@ {state} True
128@ = 0
127@ = 0

:GROVE1_12953
if 
  56@ == 0
goto_if_false @GROVE1_13315
if 
  is_char_dead 54@
goto_if_false @GROVE1_13013
remove_blip 55@
41@ += 1
56@ = 1
goto @GROVE1_13315

:GROVE1_13013
if 
  70@ == 0
goto_if_false @GROVE1_13079
if or
  is_player_targetting_char $player1 {handle} 54@
  has_char_spotted_char 54@ {target} $scplayer
  has_char_been_damaged_by_weapon 54@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_13072
70@ = 1

:GROVE1_13072
goto @GROVE1_13315

:GROVE1_13079
if 
  locate_char_any_means_char_3d $scplayer {target} 54@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13264
if 
  locate_char_any_means_char_3d $scplayer {target} 54@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13203
if 
  130@ == 0
goto_if_false @GROVE1_13196
clear_char_tasks 54@
task_kill_char_on_foot 54@ {target} $scplayer
task_stay_in_same_place 54@ {state} True
130@ = 1

:GROVE1_13196
goto @GROVE1_13257

:GROVE1_13203
if 
  129@ == 0
goto_if_false @GROVE1_13257
clear_char_tasks 54@
task_stay_in_same_place 54@ {state} True
task_set_ignore_weapon_range_flag 54@ {state} True
task_shoot_at_char 54@ {target} $scplayer {time} -1
129@ = 1

:GROVE1_13257
goto @GROVE1_13315

:GROVE1_13264
if or
  129@ == 1
  130@ == 1
goto_if_false @GROVE1_13315
clear_char_tasks 54@
task_stay_in_same_place 54@ {state} True
130@ = 0
129@ = 0

:GROVE1_13315
if 
  60@ == 0
goto_if_false @GROVE1_13677
if 
  is_char_dead 58@
goto_if_false @GROVE1_13375
remove_blip 59@
41@ += 1
60@ = 1
goto @GROVE1_13677

:GROVE1_13375
if 
  70@ == 0
goto_if_false @GROVE1_13441
if or
  is_player_targetting_char $player1 {handle} 58@
  has_char_spotted_char 58@ {target} $scplayer
  has_char_been_damaged_by_weapon 58@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_13434
70@ = 1

:GROVE1_13434
goto @GROVE1_13677

:GROVE1_13441
if 
  locate_char_any_means_char_3d $scplayer {target} 58@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13626
if 
  locate_char_any_means_char_3d $scplayer {target} 58@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13565
if 
  132@ == 0
goto_if_false @GROVE1_13558
clear_char_tasks 58@
task_kill_char_on_foot 58@ {target} $scplayer
task_stay_in_same_place 58@ {state} True
132@ = 1

:GROVE1_13558
goto @GROVE1_13619

:GROVE1_13565
if 
  131@ == 0
goto_if_false @GROVE1_13619
clear_char_tasks 58@
task_stay_in_same_place 58@ {state} True
task_set_ignore_weapon_range_flag 58@ {state} True
task_shoot_at_char 58@ {target} $scplayer {time} -1
131@ = 1

:GROVE1_13619
goto @GROVE1_13677

:GROVE1_13626
if or
  131@ == 1
  132@ == 1
goto_if_false @GROVE1_13677
clear_char_tasks 58@
task_stay_in_same_place 58@ {state} True
132@ = 0
131@ = 0

:GROVE1_13677
if 
  64@ == 0
goto_if_false @GROVE1_14039
if 
  is_char_dead 62@
goto_if_false @GROVE1_13737
remove_blip 63@
41@ += 1
64@ = 1
goto @GROVE1_14039

:GROVE1_13737
if 
  70@ == 0
goto_if_false @GROVE1_13803
if or
  is_player_targetting_char $player1 {handle} 62@
  has_char_spotted_char 62@ {target} $scplayer
  has_char_been_damaged_by_weapon 62@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_13796
70@ = 1

:GROVE1_13796
goto @GROVE1_14039

:GROVE1_13803
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13988
if 
  locate_char_any_means_char_3d $scplayer {target} 62@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_13927
if 
  134@ == 0
goto_if_false @GROVE1_13920
clear_char_tasks 62@
task_kill_char_on_foot 62@ {target} $scplayer
task_stay_in_same_place 62@ {state} True
134@ = 1

:GROVE1_13920
goto @GROVE1_13981

:GROVE1_13927
if 
  133@ == 0
goto_if_false @GROVE1_13981
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} True
task_set_ignore_weapon_range_flag 62@ {state} True
task_shoot_at_char 62@ {target} $scplayer {time} -1
133@ = 1

:GROVE1_13981
goto @GROVE1_14039

:GROVE1_13988
if or
  133@ == 1
  134@ == 1
goto_if_false @GROVE1_14039
clear_char_tasks 62@
task_stay_in_same_place 62@ {state} True
134@ = 0
133@ = 0

:GROVE1_14039
if 
  68@ == 0
goto_if_false @GROVE1_14401
if 
  is_char_dead 66@
goto_if_false @GROVE1_14099
remove_blip 67@
41@ += 1
68@ = 1
goto @GROVE1_14401

:GROVE1_14099
if 
  70@ == 0
goto_if_false @GROVE1_14165
if or
  is_player_targetting_char $player1 {handle} 66@
  has_char_spotted_char 66@ {target} $scplayer
  has_char_been_damaged_by_weapon 66@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_14158
70@ = 1

:GROVE1_14158
goto @GROVE1_14401

:GROVE1_14165
if 
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_14350
if 
  locate_char_any_means_char_3d $scplayer {target} 66@ {xRadius} 29.0 {yRadius} 29.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @GROVE1_14289
if 
  136@ == 0
goto_if_false @GROVE1_14282
clear_char_tasks 66@
task_kill_char_on_foot 66@ {target} $scplayer
task_stay_in_same_place 66@ {state} True
136@ = 1

:GROVE1_14282
goto @GROVE1_14343

:GROVE1_14289
if 
  135@ == 0
goto_if_false @GROVE1_14343
clear_char_tasks 66@
task_stay_in_same_place 66@ {state} True
task_set_ignore_weapon_range_flag 66@ {state} True
task_shoot_at_char 66@ {target} $scplayer {time} -1
135@ = 1

:GROVE1_14343
goto @GROVE1_14401

:GROVE1_14350
if or
  135@ == 1
  136@ == 1
goto_if_false @GROVE1_14401
clear_char_tasks 66@
task_stay_in_same_place 66@ {state} True
136@ = 0
135@ = 0

:GROVE1_14401
if 
  70@ == 1
goto_if_false @GROVE1_14444
if 
  71@ == 0
goto_if_false @GROVE1_14444
gosub @GROVE1_19156

:GROVE1_14444
goto @GROVE1_10139

:GROVE1_14451
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
print_now 'GM1_15' {time} 8000 {flag} 1
36@ = add_blip_for_coord 2000.269 {y} -1117.084 {z} 25.821
$blob_flag = 1
119@ = 0

:GROVE1_14507
if or
  not locate_char_on_foot_3d $scplayer {x} 2000.269 {y} -1117.084 {z} 25.821 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} $blob_flag
  not is_group_member 38@ {handle} $Players_Group
goto_if_false @GROVE1_15390
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_14637
print_now 'GM1_4' {time} 5000 {flag} 1
if 
  37@ == 1
goto_if_false @GROVE1_14623
remove_blip 39@

:GROVE1_14623
goto @GROVE1_18797
goto @GROVE1_15383

:GROVE1_14637
$sweets_health_grove1 = get_char_health 38@
$sweets_health_grove1 /= 10
if 
  117@ == 1
goto_if_false @GROVE1_14703
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_14703
clear_this_print 'GRO1_GA'
117@ = 0

:GROVE1_14703
if and
  not is_group_member 38@ {handle} $Players_Group
  37@ == 0
goto_if_false @GROVE1_14786
remove_blip 36@
39@ = add_blip_for_char 38@
set_blip_as_friendly 39@ {state} True
print_now 'GM1_2' {time} 8000 {flag} 1
$blob_flag = 0
73@ = 0
37@ = 1

:GROVE1_14786
if 
  37@ == 1
goto_if_false @GROVE1_15383
if 
  locate_char_any_means_char_2d $scplayer {target} 38@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @GROVE1_15383
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @GROVE1_15222
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE1_15161
83@ = store_car_char_is_in $scplayer
84@ = get_maximum_number_of_passengers 83@
85@ = get_number_of_passengers 83@
set_lvar_int_to_lvar_int 86@ = 84@
sub_int_lvar_from_int_lvar 86@ -= 85@
if 
  86@ >= 1
goto_if_false @GROVE1_14993
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
36@ = add_blip_for_coord 2000.269 {y} -1117.084 {z} 25.821
$blob_flag = 1
87@ = 0
37@ = 0
goto @GROVE1_15154

:GROVE1_14993
if 
  87@ == 0
goto_if_false @GROVE1_15091
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_15063
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_15063
119@ = 1
117@ = 1
87@ = 1
goto @GROVE1_15154

:GROVE1_15091
if 
  119@ == 1
goto_if_false @GROVE1_15154
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_15154
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_15154
goto @GROVE1_15215

:GROVE1_15161
set_group_follow_status $Players_Group {state} True
set_group_member $Players_Group {handle} 38@
remove_blip 39@
36@ = add_blip_for_coord 2000.269 {y} -1117.084 {z} 25.821
$blob_flag = 1
37@ = 0

:GROVE1_15215
goto @GROVE1_15383

:GROVE1_15222
if 
  73@ == 0
goto_if_false @GROVE1_15320
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_15292
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_GA' {time} 8000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
shut_char_up_for_scripted_speech 38@ {state} True

:GROVE1_15292
119@ = 1
117@ = 1
73@ = 1
goto @GROVE1_15383

:GROVE1_15320
if 
  119@ == 1
goto_if_false @GROVE1_15383
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_15383
stop_char_facial_talk 38@
clear_this_print 'GRO1_GA'
shut_char_up_for_scripted_speech 38@ {state} False
119@ = 0

:GROVE1_15383
goto @GROVE1_14507

:GROVE1_15390
clear_onscreen_counter $sweets_health_grove1
remove_blip 36@
clear_prints 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_police_ignore_player $player1 {state} True
if 
  not is_char_dead 38@
goto_if_false @GROVE1_15461
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GROVE1_15484

:GROVE1_15461
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_15484
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_15499
if 
  get_fading_status 
goto_if_false @GROVE1_15523
wait 0
goto @GROVE1_15499

:GROVE1_15523
make_player_gang_disappear 
delete_char 38@
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 355
set_area_visible 11
make_player_safe_for_cutscene $player1
set_char_coordinates $scplayer {x} 1044.88 {y} -1334.3199 {z} 12.55
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_15587
if 
  get_fading_status 
goto_if_false @GROVE1_15611
wait 0
goto @GROVE1_15587

:GROVE1_15611
set_area_visible 2
load_cutscene 'GROVE1C'

:GROVE1_15626
if 
  not has_cutscene_loaded 
goto_if_false @GROVE1_15650
wait 0
goto @GROVE1_15626

:GROVE1_15650
start_cutscene 
do_fade 1000 {direction} Fade.In

:GROVE1_15659
if 
  not has_cutscene_finished 
goto_if_false @GROVE1_15683
wait 0
goto @GROVE1_15659

:GROVE1_15683
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:GROVE1_15696
if 
  get_fading_status 
goto_if_false @GROVE1_15720
wait 0
goto @GROVE1_15696

:GROVE1_15720
clear_cutscene 
set_player_control $player1 {state} False
set_area_visible 0
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'BBTHIN'
request_animation "GANGS"
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17405
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17406

:GROVE1_15782
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_animation_loaded "GANGS"
  not has_mission_audio_loaded MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @GROVE1_15829
wait 0
goto @GROVE1_15782

:GROVE1_15829
switch_widescreen True
switch_ped_roads_off 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
clear_area 2003.217 {y} -1132.552 {z} 24.278 {radius} 2.0 {clearParticles} False
75@ = create_car 411 {x} 2003.217 {y} -1132.552 {z} 24.278
set_car_proofs 75@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_heading 75@ {heading} 90.0
72@ = create_char_as_passenger 75@ {pedType} PedType.Mission1 {modelId} 291 {seat} SeatId.BikeRear
set_char_proofs 72@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
shut_char_up_for_scripted_speech 72@ {state} True
request_collision 2002.105 {y} -1129.403
clear_area 2002.105 {y} -1129.403 {z} 24.484 {radius} 1.0 {clearParticles} True
set_char_coordinates $scplayer {x} 2002.105 {y} -1129.403 {z} 24.484
set_char_heading $scplayer {heading} 270.0
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
shut_char_up_for_scripted_speech $scplayer {state} True
load_scene 2002.105 {y} -1129.403 {z} 24.484
clear_area 2003.105 {y} -1129.403 {z} 24.484 {radius} 1.0 {clearParticles} True
38@ = create_char PedType.Mission1 {modelId} 290 {x} 2003.105 {y} -1129.403 {z} 24.484
set_char_proofs 38@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_heading 38@ {heading} 90.0
shut_char_up_for_scripted_speech 38@ {state} True
clear_area 2016.976 {y} -1130.804 {z} 24.62 {radius} 60.0 {clearParticles} True
set_fixed_camera_position 2006.7111 {y} -1126.8669 {z} 24.6168 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2006.004 {y} -1127.551 {z} 24.7956 {switchStyle} SwitchType.JumpCut
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In

:GROVE1_16242
if 
  get_fading_status 
goto_if_false @GROVE1_16266
wait 0
goto @GROVE1_16242

:GROVE1_16266
skip_cutscene_start_internal @GROVE1_18557
if 
  not is_char_dead 38@
goto_if_false @GROVE1_16363
task_play_anim 38@ {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO1_BA' {time} 10000 {flag} 1
start_char_facial_talk 38@ {duration} 999999
goto @GROVE1_16396

:GROVE1_16363
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_16396
task_play_anim $scplayer {animationName} "HNDSHKFA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE1_16433
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_16606
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_16501
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_16501
if 
  is_char_dead 72@
goto_if_false @GROVE1_16550
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_16550
if 
  is_car_dead 75@
goto_if_false @GROVE1_16599
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_16599
goto @GROVE1_16433

:GROVE1_16606
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 'GRO1_BA'
if 
  not is_char_dead 38@
goto_if_false @GROVE1_16649
stop_char_facial_talk 38@
goto @GROVE1_16682

:GROVE1_16649
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_16682
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17407
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_BB' {time} 10000 {flag} 1
start_char_facial_talk $scplayer {duration} 999999

:GROVE1_16719
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE1_16896
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_16791
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_16791
if 
  is_char_dead 72@
goto_if_false @GROVE1_16840
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_16840
if 
  is_car_dead 75@
goto_if_false @GROVE1_16889
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_16889
goto @GROVE1_16719

:GROVE1_16896
clear_this_print 'GRO1_BB'
clear_mission_audio MissionAudioSlot.Slot2
stop_char_facial_talk $scplayer
load_mission_audio MissionAudioSlot.Slot2 {audioId} 17408
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO1_BC' {time} 10000 {flag} 1
if 
  not is_char_dead 72@
goto_if_false @GROVE1_16976
start_char_facial_talk 72@ {duration} 999999
goto @GROVE1_17009

:GROVE1_16976
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_17009
task_achieve_heading $scplayer {heading} 180.0
if 
  not is_car_dead 75@
goto_if_false @GROVE1_17098
if 
  not is_char_dead 38@
goto_if_false @GROVE1_17068
task_enter_car_as_driver 38@ {vehicle} 75@ {time} -1
goto @GROVE1_17091

:GROVE1_17068
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_17091
goto @GROVE1_17121

:GROVE1_17098
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_17121
if or
  not has_mission_audio_finished MissionAudioSlot.Slot1
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @GROVE1_17325
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_17193
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_17193
if 
  is_char_dead 72@
goto_if_false @GROVE1_17249
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797
goto @GROVE1_17269

:GROVE1_17249
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_17269
stop_char_facial_talk 72@

:GROVE1_17269
if 
  is_car_dead 75@
goto_if_false @GROVE1_17318
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_17318
goto @GROVE1_17121

:GROVE1_17325
clear_this_print 'GRO1_BC'
clear_mission_audio MissionAudioSlot.Slot1
if 
  is_char_dead 72@
goto_if_false @GROVE1_17396
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797
goto @GROVE1_17401

:GROVE1_17396
stop_char_facial_talk 72@

:GROVE1_17401
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17409
play_mission_audio MissionAudioSlot.Slot2
print_now 'GRO1_BD' {time} 10000 {flag} 1
if 
  not is_char_dead 38@
goto_if_false @GROVE1_17461
start_char_facial_talk 38@ {duration} 999999
goto @GROVE1_17494

:GROVE1_17461
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_17494
if or
  not has_mission_audio_finished MissionAudioSlot.Slot2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE1_17698
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_17573
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797
goto @GROVE1_17593

:GROVE1_17573
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_17593
stop_char_facial_talk 38@

:GROVE1_17593
if 
  is_char_dead 72@
goto_if_false @GROVE1_17642
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_17642
if 
  is_car_dead 75@
goto_if_false @GROVE1_17691
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_17691
goto @GROVE1_17494

:GROVE1_17698
clear_this_print 'GRO1_BD'
clear_mission_audio MissionAudioSlot.Slot2
if 
  is_char_dead 38@
goto_if_false @GROVE1_17769
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797
goto @GROVE1_17774

:GROVE1_17769
stop_char_facial_talk 38@

:GROVE1_17774
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO1_BE' {time} 10000 {flag} 1
if 
  not is_char_dead 72@
goto_if_false @GROVE1_17827
start_char_facial_talk 72@ {duration} 999999
goto @GROVE1_17860

:GROVE1_17827
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_17860
if 
  not is_char_in_any_car 38@
goto_if_false @GROVE1_18121
wait 0
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_17967
clear_this_print 'GRO1_BE'
if 
  not is_char_dead 72@
goto_if_false @GROVE1_17934
stop_char_facial_talk 72@
goto @GROVE1_17967

:GROVE1_17934
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_17967
if 
  is_char_dead 38@
goto_if_false @GROVE1_18016
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_18016
if 
  is_char_dead 72@
goto_if_false @GROVE1_18065
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_18065
if 
  is_car_dead 75@
goto_if_false @GROVE1_18114
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_18114
goto @GROVE1_17860

:GROVE1_18121
if 
  not is_car_dead 75@
goto_if_false @GROVE1_18181
set_car_driving_style 75@ {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 75@ {maxSpeed} 30.0
car_goto_coordinates 75@ {x} 1946.0 {y} -1132.0 {z} 25.0
goto @GROVE1_18214

:GROVE1_18181
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_18214
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_18387
wait 0
if 
  is_char_dead 38@
goto_if_false @GROVE1_18282
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_4' {time} 5000 {flag} 1
goto @GROVE1_18797

:GROVE1_18282
if 
  is_char_dead 72@
goto_if_false @GROVE1_18331
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_18331
if 
  is_car_dead 75@
goto_if_false @GROVE1_18380
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_18380
goto @GROVE1_18214

:GROVE1_18387
clear_this_print 'GRO1_BE'
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  not is_char_dead 72@
goto_if_false @GROVE1_18434
stop_char_facial_talk 72@
goto @GROVE1_18467

:GROVE1_18434
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
print_now 'GM1_12' {time} 8000 {flag} 1
goto @GROVE1_18797

:GROVE1_18467
wait 2000
remove_char_elegantly 72@
remove_char_elegantly 38@
delete_car 75@
make_player_gang_reappear 
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
switch_ped_roads_back_to_original 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
74@ = 1

:GROVE1_18557
skip_cutscene_end 
if 
  74@ == 0
goto_if_false @GROVE1_18754
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE1_18602
if 
  get_fading_status 
goto_if_false @GROVE1_18626
wait 0
goto @GROVE1_18602

:GROVE1_18626
make_player_gang_reappear 
switch_widescreen False
clear_prints 
remove_char_elegantly 72@
remove_char_elegantly 38@
delete_car 75@
switch_ped_roads_back_to_original 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
set_char_coordinates $scplayer {x} 2002.105 {y} -1129.403 {z} 24.484
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE1_18730
if 
  get_fading_status 
goto_if_false @GROVE1_18754
wait 0
goto @GROVE1_18730

:GROVE1_18754
switch_widescreen False
shut_char_up_for_scripted_speech $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
set_police_ignore_player $player1 {state} False
goto @GROVE1_18881

:GROVE1_18797
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
set_zone_gang_strength 'GLN1' {gangId} GangType.Ballas {density} 40
set_zone_gang_strength 'GLN1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'GLN1' {gangId} GangType.Vagos {density} 91@
set_zone_gang_strength 'GLN1' {gangId} GangType.Aztecas {density} 92@
can_trigger_gang_war_when_on_a_mission False
return 

:GROVE1_18881
$flag_grove_mission_counter += 1
register_mission_passed 'GROVE_1'
player_made_progress 1
print_with_number_big 'M_PASSR' {num} 10 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 40
clear_wanted_level $player1
play_mission_passed_tune 1
remove_blip $grove_contact_blip
remove_blip $intro_contact_blip
$grove_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $grove_blip_icon
return 

:GROVE1_18963
remove_char_elegantly 38@
$onmission = 0
switch_ped_roads_back_to_original 1965.968 {leftBottomY} -1096.668 {leftBottomZ} 20.0 {rightTopX} 2081.4651 {rightTopY} -1163.309 {rightTopZ} 30.0
set_area_visible 0
clear_specific_zones_to_trigger_gang_war 
$timer_mobile_start = get_game_timer 
clear_onscreen_counter $sweets_health_grove1
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 411
remove_animation "GANGS"
remove_blip 89@
remove_blip 40@
remove_blip 39@
remove_blip 36@
remove_blip 43@
remove_blip 46@
remove_blip 49@
remove_blip 52@
remove_blip 55@
remove_blip 59@
remove_blip 63@
remove_blip 67@
clear_sequence_task 57@
clear_sequence_task 61@
clear_sequence_task 65@
clear_sequence_task 69@
remove_decision_maker 35@
remove_decision_maker 34@
can_trigger_gang_war_when_on_a_mission False
mission_has_finished 
return 

:GROVE1_19156
if 
  not is_char_dead 54@
goto_if_false @GROVE1_19235
57@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1996.934 {y} -1122.2581 {z} 25.76 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 57@
clear_char_tasks 54@
perform_sequence_task 54@ {sequence} 57@
clear_sequence_task 57@

:GROVE1_19235
if 
  not is_char_dead 58@
goto_if_false @GROVE1_19314
61@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2004.069 {y} -1122.884 {z} 25.584 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 61@
clear_char_tasks 58@
perform_sequence_task 58@ {sequence} 61@
clear_sequence_task 61@

:GROVE1_19314
if 
  not is_char_dead 62@
goto_if_false @GROVE1_19393
65@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2006.7581 {y} -1122.6949 {z} 25.493 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 65@
clear_char_tasks 62@
perform_sequence_task 62@ {sequence} 65@
clear_sequence_task 65@

:GROVE1_19393
if 
  not is_char_dead 66@
goto_if_false @GROVE1_19472
69@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2015.458 {y} -1121.923 {z} 25.243 {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_stay_in_same_place -1 {state} True
close_sequence_task 69@
clear_char_tasks 66@
perform_sequence_task 66@ {sequence} 69@
clear_sequence_task 69@

:GROVE1_19472
71@ = 1
return 

:GROVE1_19481
if or
  94@ == 0
  94@ == 1
goto_if_false @GROVE1_19532
if 
  is_int_var_greater_or_equal_to_int_lvar $cell_index_end >= 93@
goto_if_false @GROVE1_19532
gosub @GROVE1_19597

:GROVE1_19532
if 
  94@ == 2
goto_if_false @GROVE1_19595
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE1_19595
gosub @GROVE1_20138
94@ = 0
93@ += 1
95@ = 0
clear_prints 

:GROVE1_19595
return 

:GROVE1_19597
if 
  94@ == 0
goto_if_false @GROVE1_19633
load_mission_audio MissionAudioSlot.Slot1 {audioId} 97@(93@,17i)
94@ = 1

:GROVE1_19633
if 
  94@ == 1
goto_if_false @GROVE1_19713
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE1_19713
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @GROVE1_19713
print_now $grove1_chat(93@,17s) {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
gosub @GROVE1_19715
94@ = 2

:GROVE1_19713
return 

:GROVE1_19715
if 
  96@ == 0
goto_if_false @GROVE1_19836
if or
  93@ == 0
  93@ == 4
  93@ == 5
  93@ == 6
  93@ == 7
goto_if_false @GROVE1_19803
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_19836

:GROVE1_19803
if 
  not is_char_dead 38@
goto_if_false @GROVE1_19836
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_19836
if 
  96@ == 1
goto_if_false @GROVE1_19943
if or
  93@ == 0
  93@ == 2
  93@ == 3
goto_if_false @GROVE1_19910
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_19943

:GROVE1_19910
if 
  not is_char_dead 38@
goto_if_false @GROVE1_19943
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_19943
if 
  96@ == 2
goto_if_false @GROVE1_20043
if or
  93@ == 1
  93@ == 3
goto_if_false @GROVE1_20010
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_20043

:GROVE1_20010
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20043
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_20043
if 
  96@ == 3
goto_if_false @GROVE1_20136
if 
  93@ == 1
goto_if_false @GROVE1_20103
shut_char_up_for_scripted_speech $scplayer {state} True
start_char_facial_talk $scplayer {duration} 999999
goto @GROVE1_20136

:GROVE1_20103
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20136
shut_char_up_for_scripted_speech 38@ {state} True
start_char_facial_talk 38@ {duration} 999999

:GROVE1_20136
return 

:GROVE1_20138
if 
  96@ == 0
goto_if_false @GROVE1_20249
if or
  93@ == 0
  93@ == 4
  93@ == 5
  93@ == 6
  93@ == 7
goto_if_false @GROVE1_20221
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20249

:GROVE1_20221
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20249
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20249
if 
  96@ == 1
goto_if_false @GROVE1_20346
if or
  93@ == 0
  93@ == 2
  93@ == 3
goto_if_false @GROVE1_20318
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20346

:GROVE1_20318
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20346
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20346
if 
  96@ == 2
goto_if_false @GROVE1_20436
if or
  93@ == 1
  93@ == 3
goto_if_false @GROVE1_20408
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20436

:GROVE1_20408
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20436
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20436
if 
  96@ == 3
goto_if_false @GROVE1_20519
if 
  93@ == 1
goto_if_false @GROVE1_20491
shut_char_up_for_scripted_speech $scplayer {state} False
stop_char_facial_talk $scplayer
goto @GROVE1_20519

:GROVE1_20491
if 
  not is_char_dead 38@
goto_if_false @GROVE1_20519
shut_char_up_for_scripted_speech 38@ {state} False
stop_char_facial_talk 38@

:GROVE1_20519
return 

:GROVE1_20521
if 
  44@ == 0
goto_if_false @GROVE1_20640
if 
  is_char_dead 42@
goto_if_false @GROVE1_20581
remove_blip 43@
41@ += 1
44@ = 1
goto @GROVE1_20640

:GROVE1_20581
if 
  70@ == 0
goto_if_false @GROVE1_20640
if or
  is_player_targetting_char $player1 {handle} 42@
  has_char_spotted_char 42@ {target} $scplayer
  has_char_been_damaged_by_weapon 42@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20640
70@ = 1

:GROVE1_20640
if 
  47@ == 0
goto_if_false @GROVE1_20759
if 
  is_char_dead 45@
goto_if_false @GROVE1_20700
remove_blip 46@
41@ += 1
47@ = 1
goto @GROVE1_20759

:GROVE1_20700
if 
  70@ == 0
goto_if_false @GROVE1_20759
if or
  is_player_targetting_char $player1 {handle} 45@
  has_char_spotted_char 45@ {target} $scplayer
  has_char_been_damaged_by_weapon 45@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20759
70@ = 1

:GROVE1_20759
if 
  50@ == 0
goto_if_false @GROVE1_20878
if 
  is_char_dead 48@
goto_if_false @GROVE1_20819
remove_blip 49@
41@ += 1
50@ = 1
goto @GROVE1_20878

:GROVE1_20819
if 
  70@ == 0
goto_if_false @GROVE1_20878
if or
  is_player_targetting_char $player1 {handle} 48@
  has_char_spotted_char 48@ {target} $scplayer
  has_char_been_damaged_by_weapon 48@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20878
70@ = 1

:GROVE1_20878
if 
  53@ == 0
goto_if_false @GROVE1_20997
if 
  is_char_dead 51@
goto_if_false @GROVE1_20938
remove_blip 52@
41@ += 1
53@ = 1
goto @GROVE1_20997

:GROVE1_20938
if 
  70@ == 0
goto_if_false @GROVE1_20997
if or
  is_player_targetting_char $player1 {handle} 51@
  has_char_spotted_char 51@ {target} $scplayer
  has_char_been_damaged_by_weapon 51@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_20997
70@ = 1

:GROVE1_20997
if 
  56@ == 0
goto_if_false @GROVE1_21116
if 
  is_char_dead 54@
goto_if_false @GROVE1_21057
remove_blip 55@
41@ += 1
56@ = 1
goto @GROVE1_21116

:GROVE1_21057
if 
  70@ == 0
goto_if_false @GROVE1_21116
if or
  is_player_targetting_char $player1 {handle} 54@
  has_char_spotted_char 54@ {target} $scplayer
  has_char_been_damaged_by_weapon 54@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21116
70@ = 1

:GROVE1_21116
if 
  60@ == 0
goto_if_false @GROVE1_21235
if 
  is_char_dead 58@
goto_if_false @GROVE1_21176
remove_blip 59@
41@ += 1
60@ = 1
goto @GROVE1_21235

:GROVE1_21176
if 
  70@ == 0
goto_if_false @GROVE1_21235
if or
  is_player_targetting_char $player1 {handle} 58@
  has_char_spotted_char 58@ {target} $scplayer
  has_char_been_damaged_by_weapon 58@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21235
70@ = 1

:GROVE1_21235
if 
  64@ == 0
goto_if_false @GROVE1_21354
if 
  is_char_dead 62@
goto_if_false @GROVE1_21295
remove_blip 63@
41@ += 1
64@ = 1
goto @GROVE1_21354

:GROVE1_21295
if 
  70@ == 0
goto_if_false @GROVE1_21354
if or
  is_player_targetting_char $player1 {handle} 62@
  has_char_spotted_char 62@ {target} $scplayer
  has_char_been_damaged_by_weapon 62@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21354
70@ = 1

:GROVE1_21354
if 
  68@ == 0
goto_if_false @GROVE1_21473
if 
  is_char_dead 66@
goto_if_false @GROVE1_21414
remove_blip 67@
41@ += 1
68@ = 1
goto @GROVE1_21473

:GROVE1_21414
if 
  70@ == 0
goto_if_false @GROVE1_21473
if or
  is_player_targetting_char $player1 {handle} 66@
  has_char_spotted_char 66@ {target} $scplayer
  has_char_been_damaged_by_weapon 66@ {weaponType} WeaponType.AnyWeapon
goto_if_false @GROVE1_21473
70@ = 1

:GROVE1_21473
return 

//-------------Mission 107---------------
// Originally: Grove 4 Life

:GROVE2
script_name 'GROVE2'
gosub @GROVE2_47
if 
  has_deatharrest_been_executed 
goto_if_false @GROVE2_38
gosub @GROVE2_3141

:GROVE2_38
gosub @GROVE2_3228
terminate_this_script 

:GROVE2_47
make_room_in_player_gang_for_mission_peds 1
load_mission_text 'GROVE2'
set_fading_colour 0 {g} 0 {b} 0
register_mission_given 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:GROVE2_87
if 
  get_fading_status 
goto_if_false @GROVE2_111
wait 0
goto @GROVE2_87

:GROVE2_111
force_weather_now WeatherType.SunnyLa
set_area_visible 1
load_cutscene 'GROVE2'

:GROVE2_130
if 
  not has_cutscene_loaded 
goto_if_false @GROVE2_154
wait 0
goto @GROVE2_130

:GROVE2_154
start_cutscene 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:GROVE2_171
if 
  not has_cutscene_finished 
goto_if_false @GROVE2_195
wait 0
goto @GROVE2_171

:GROVE2_195
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out

:GROVE2_209
if 
  get_fading_status 
goto_if_false @GROVE2_233
wait 0
goto @GROVE2_209

:GROVE2_233
clear_cutscene 
release_weather 
load_special_character 1 {modelName} 'SWEET'
request_model 355
request_model 492
load_all_models_now 

:GROVE2_262
if or
  not has_special_character_loaded 1
  not has_model_loaded 355
  not has_model_loaded 492
goto_if_false @GROVE2_298
wait 0
goto @GROVE2_262

:GROVE2_298
set_area_visible 0
switch_widescreen False
$g2_sweet_hlth = 0
$g2_idlewood_off = 0
47@ = 2
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_352
clear_wanted_level $player1

:GROVE2_352
set_player_group_to_follow_always $player1 {state} True
set_gang_wars_active True
can_trigger_gang_war_when_on_a_mission True
load_scene 2497.324 {y} -1684.744 {z} 12.44
set_char_coordinates $scplayer {x} 2497.324 {y} -1684.744 {z} 12.44
set_char_heading $scplayer {heading} 0.0
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
$sweet = create_char PedType.Mission1 {modelId} 290 {x} 2496.6331 {y} -1684.573 {z} 12.435
custom_plate_for_next_car 492 {text} "GROVE4L_"
39@ = create_car 492 {x} 2507.699 {y} -1671.7159 {z} 12.3823
change_car_colour 39@ {color1} 59 {color2} 34
set_car_heading 39@ {heading} 355.4549
set_char_heading $sweet {heading} 0.0
set_anim_group_for_char $sweet {animGroup} "GANG2"
give_weapon_to_char $sweet {weaponType} WeaponType.Ak47 {ammo} 30000
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet
set_char_accuracy $sweet {accuracy} 90
set_char_health $sweet {health} 1000
set_char_max_health $sweet {maxHealth} 1000
set_char_relationship $sweet {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
$g2_sweet_hlth = get_char_health $sweet
$g2_sweet_hlth /= 10
display_onscreen_counter_with_string $g2_sweet_hlth {display} CounterDisplay.Bar {text} 'GR2_01'
34@ = add_blip_for_char $sweet
set_blip_as_friendly 34@ {state} True
36@ = add_blip_for_coord 2002.8149 {y} -1613.084 {z} 12.3828
55@ = add_blip_for_coord 2507.1841 {y} -1672.906 {z} 12.3824
change_blip_display 34@ {display} BlipDisplay.Neither
change_blip_display 55@ {display} BlipDisplay.Neither
set_car_density_multiplier 1.0
set_ped_density_multiplier 2.0
TIMERA = 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas {density} 100
set_zone_gang_strength 'IWD3B' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas {density} 100
set_zone_gang_strength 'IWD1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD1' {gangId} GangType.Ballas {density} 100
set_zone_gang_strength 'IWD4' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'IWD4' {gangId} GangType.Ballas {density} 100
set_specific_zone_to_trigger_gang_war 'IWD3A'
set_specific_zone_to_trigger_gang_war 'IWD3B'
set_specific_zone_to_trigger_gang_war 'IWD1'
set_specific_zone_to_trigger_gang_war 'IWD4'
set_zone_no_cops 'IWD3A' {state} True
set_zone_no_cops 'IWD3B' {state} True
set_zone_no_cops 'IWD1' {state} True
set_zone_no_cops 'IWD4' {state} True

:GROVE2_942
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_2932
wait 0
gosub @GROVE2_3596
gosub @GROVE2_5403
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @GROVE2_998
goto @GROVE2_3159

:GROVE2_998
if and
  not is_car_dead 39@
  not is_char_dead $scplayer
goto_if_false @GROVE2_1067
if 
  is_char_in_car $scplayer {vehicle} 39@
goto_if_false @GROVE2_1067
if 
  57@ == 0
goto_if_false @GROVE2_1067
set_radio_channel RadioChannel.BounceFM
57@ = 1

:GROVE2_1067
if and
  TIMERA > 4000
  58@ == 1
goto_if_false @GROVE2_1316
$g2_rnd = generate_random_int_in_range 0 {max} 4
switch_start $g2_rnd {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE2_1309 {caseNum1} 0 {caseLabel1} @GROVE2_1165 {caseNum2} 1 {caseLabel2} @GROVE2_1201 {caseNum3} 2 {caseLabel3} @GROVE2_1237 {caseNum4} 3 {caseLabel4} @GROVE2_1273 {caseNum5} -1 {caseLabel5} @GROVE2_1309 {caseNum6} -1 {caseLabel6} @GROVE2_1309 {caseNum7} -1 {caseLabel7} @GROVE2_1309

:GROVE2_1165
set_lvar_text_label 59@s = 'GRO2_DA'
set_lvar_int_to_constant 46@ = 17611
gosub @GROVE2_5383
goto @GROVE2_1309

:GROVE2_1201
set_lvar_text_label 59@s = 'GRO2_DB'
set_lvar_int_to_constant 46@ = 17612
gosub @GROVE2_5383
goto @GROVE2_1309

:GROVE2_1237
set_lvar_text_label 59@s = 'GRO2_DC'
set_lvar_int_to_constant 46@ = 17613
gosub @GROVE2_5383
goto @GROVE2_1309

:GROVE2_1273
set_lvar_text_label 59@s = 'GRO2_DD'
set_lvar_int_to_constant 46@ = 17614
gosub @GROVE2_5383
goto @GROVE2_1309

:GROVE2_1309
58@ = 2

:GROVE2_1316
if and
  47@ == 2
  58@ == 2
goto_if_false @GROVE2_1492
$g2_rnd = generate_random_int_in_range 0 {max} 2
switch_start $g2_rnd {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GROVE2_1485 {caseNum1} 0 {caseLabel1} @GROVE2_1413 {caseNum2} 1 {caseLabel2} @GROVE2_1449 {caseNum3} -1 {caseLabel3} @GROVE2_1485 {caseNum4} -1 {caseLabel4} @GROVE2_1485 {caseNum5} -1 {caseLabel5} @GROVE2_1485 {caseNum6} -1 {caseLabel6} @GROVE2_1485 {caseNum7} -1 {caseLabel7} @GROVE2_1485

:GROVE2_1413
set_lvar_text_label 59@s = 'GRO2_EA'
set_lvar_int_to_constant 46@ = 17615
gosub @GROVE2_5383
goto @GROVE2_1485

:GROVE2_1449
set_lvar_text_label 59@s = 'GRO2_EB'
set_lvar_int_to_constant 46@ = 17616
gosub @GROVE2_5383
goto @GROVE2_1485

:GROVE2_1485
58@ = 3

:GROVE2_1492
if and
  47@ == 2
  58@ == 3
goto_if_false @GROVE2_1540
print_now 'GR2_10' {time} 7000 {flag} 1
58@ = 4

:GROVE2_1540
if 
  54@ == 0
goto_if_false @GROVE2_2508
40@ = get_zone_gang_strength 'IWD3A' {gangId} GangType.Ballas
41@ = get_zone_gang_strength 'IWD3B' {gangId} GangType.Ballas
43@ = get_zone_gang_strength 'IWD1' {gangId} GangType.Ballas
44@ = get_zone_gang_strength 'IWD4' {gangId} GangType.Ballas
if 
  38@ == 0
goto_if_false @GROVE2_1676
set_lvar_text_label 59@s = 'GRO2_AA'
set_lvar_int_to_constant 46@ = 17600
gosub @GROVE2_5383
38@ = 1

:GROVE2_1676
if and
  47@ == 2
  38@ == 1
goto_if_false @GROVE2_1737
set_lvar_text_label 59@s = 'GRO2_AB'
set_lvar_int_to_constant 46@ = 17601
gosub @GROVE2_5383
38@ = 2

:GROVE2_1737
if and
  47@ == 2
  38@ == 2
goto_if_false @GROVE2_1798
set_lvar_text_label 59@s = 'GRO2_AC'
set_lvar_int_to_constant 46@ = 17602
gosub @GROVE2_5383
38@ = 3

:GROVE2_1798
if and
  47@ == 2
  38@ == 3
goto_if_false @GROVE2_1859
set_lvar_text_label 59@s = 'GRO2_AD'
set_lvar_int_to_constant 46@ = 17603
gosub @GROVE2_5383
38@ = 4

:GROVE2_1859
if and
  47@ == 2
  38@ == 4
goto_if_false @GROVE2_1907
print_now 'GR2_09' {time} 7000 {flag} 1
38@ = 5

:GROVE2_1907
if 
  56@ == 1
goto_if_false @GROVE2_2148
$g2_rnd = generate_random_int_in_range 0 {max} 4
switch_start $g2_rnd {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GROVE2_2141 {caseNum1} 0 {caseLabel1} @GROVE2_1997 {caseNum2} 1 {caseLabel2} @GROVE2_2033 {caseNum3} 2 {caseLabel3} @GROVE2_2069 {caseNum4} 3 {caseLabel4} @GROVE2_2105 {caseNum5} -1 {caseLabel5} @GROVE2_2141 {caseNum6} -1 {caseLabel6} @GROVE2_2141 {caseNum7} -1 {caseLabel7} @GROVE2_2141

:GROVE2_1997
set_lvar_text_label 59@s = 'GRO2_CA'
set_lvar_int_to_constant 46@ = 17607
gosub @GROVE2_5383
goto @GROVE2_2141

:GROVE2_2033
set_lvar_text_label 59@s = 'GRO2_CB'
set_lvar_int_to_constant 46@ = 17608
gosub @GROVE2_5383
goto @GROVE2_2141

:GROVE2_2069
set_lvar_text_label 59@s = 'GRO2_CC'
set_lvar_int_to_constant 46@ = 17609
gosub @GROVE2_5383
goto @GROVE2_2141

:GROVE2_2105
set_lvar_text_label 59@s = 'GRO2_CE'
set_lvar_int_to_constant 46@ = 17610
gosub @GROVE2_5383
goto @GROVE2_2141

:GROVE2_2141
56@ = 2

:GROVE2_2148
if and
  47@ == 2
  56@ == 2
goto_if_false @GROVE2_2196
print_now 'GR2_05' {time} 4000 {flag} 1
56@ = 3

:GROVE2_2196
if or
  is_player_in_info_zone $player1 {infoZone} 'IWD3A'
  is_player_in_info_zone $player1 {infoZone} 'IWD3B'
  is_player_in_info_zone $player1 {infoZone} 'IWD1'
  is_player_in_info_zone $player1 {infoZone} 'IWD4'
goto_if_false @GROVE2_2327
if 
  37@ == 0
goto_if_false @GROVE2_2313
37@ = 1
if 
  56@ == 0
goto_if_false @GROVE2_2313
56@ = 1

:GROVE2_2313
change_blip_display 36@ {display} BlipDisplay.Neither
goto @GROVE2_2352

:GROVE2_2327
if 
  35@ == 1
goto_if_false @GROVE2_2352
change_blip_display 36@ {display} BlipDisplay.Both

:GROVE2_2352
if and
  40@ == 0
  48@ == 0
goto_if_false @GROVE2_2391
gosub @GROVE2_2939
48@ = 1

:GROVE2_2391
if and
  41@ == 0
  49@ == 0
goto_if_false @GROVE2_2430
gosub @GROVE2_2939
49@ = 1

:GROVE2_2430
if and
  43@ == 0
  50@ == 0
goto_if_false @GROVE2_2469
gosub @GROVE2_2939
50@ = 1

:GROVE2_2469
if and
  44@ == 0
  51@ == 0
goto_if_false @GROVE2_2508
gosub @GROVE2_2939
51@ = 1

:GROVE2_2508
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_2781
$g2_sweet_hlth = get_char_health $sweet
$g2_sweet_hlth /= 10
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @GROVE2_2683
if 
  35@ == 0
goto_if_false @GROVE2_2676
if 
  not is_group_member $sweet {handle} $Players_Group
goto_if_false @GROVE2_2619
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $sweet

:GROVE2_2619
change_blip_display 34@ {display} BlipDisplay.Neither
if 
  54@ == 0
goto_if_false @GROVE2_2644

:GROVE2_2644
if 
  54@ == 1
goto_if_false @GROVE2_2662

:GROVE2_2662
$g2_idlewood_off = 0
35@ = 1

:GROVE2_2676
goto @GROVE2_2774

:GROVE2_2683
if 
  35@ == 1
goto_if_false @GROVE2_2774
print_now 'GR2_02' {time} 4000 {flag} 1
change_blip_display 34@ {display} BlipDisplay.Both
if 
  54@ == 0
goto_if_false @GROVE2_2742

:GROVE2_2742
if 
  54@ == 1
goto_if_false @GROVE2_2760

:GROVE2_2760
$g2_idlewood_off = 1
35@ = 0

:GROVE2_2774
goto @GROVE2_2804

:GROVE2_2781
print_now 'GR2_03' {time} 4000 {flag} 1
goto @GROVE2_3141

:GROVE2_2804
if 
  54@ == 1
goto_if_false @GROVE2_2925
if and
  53@ == 1
  47@ == 2
goto_if_false @GROVE2_2870
print_now 'GR2_11' {time} 7000 {flag} 1
53@ = 2

:GROVE2_2870
if 
  locate_char_any_means_3d $scplayer {x} 2507.1841 {y} -1672.906 {z} 12.3824 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @GROVE2_2925
goto @GROVE2_3791

:GROVE2_2925
goto @GROVE2_942

:GROVE2_2932
goto @GROVE2_3141

:GROVE2_2939
52@ += 1
if 
  58@ == 0
goto_if_false @GROVE2_2978
TIMERA = 0
58@ = 1

:GROVE2_2978
if 
  52@ == 2
goto_if_false @GROVE2_3139
set_lvar_text_label 59@s = 'GRO2_FA'
set_lvar_int_to_constant 46@ = 17617
gosub @GROVE2_5383
54@ = 1
change_blip_display 55@ {display} BlipDisplay.Both
change_blip_display 36@ {display} BlipDisplay.Neither
clear_area 2507.1841 {y} -1672.906 {z} 12.3824 {radius} 10.0 {clearParticles} True
if 
  not is_car_dead 39@
goto_if_false @GROVE2_3139
if 
  locate_car_3d 39@ {x} 2507.1841 {y} -1672.906 {z} 12.3824 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @GROVE2_3139
delete_car 39@

:GROVE2_3139
return 

:GROVE2_3141
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:GROVE2_3159
remove_blip $grove_contact_blip
$flag_grove_mission_counter += 1
player_made_progress 1
register_mission_passed 'GROVE_2'
print_with_number_big 'M_PASSS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
award_player_mission_respect 40
play_mission_passed_tune 1
clear_wanted_level $player1
return 

:GROVE2_3228
set_zone_no_cops 'IWD3A' {state} False
set_zone_no_cops 'IWD3B' {state} False
set_zone_no_cops 'IWD1' {state} False
set_zone_no_cops 'IWD4' {state} False
clear_specific_zones_to_trigger_gang_war 
can_trigger_gang_war_when_on_a_mission False
set_gang_wars_active True
$onmission = 0
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_3318
remove_char_elegantly $sweet

:GROVE2_3318
if 
  does_blip_exist 34@
goto_if_false @GROVE2_3339
remove_blip 34@

:GROVE2_3339
if 
  does_blip_exist 36@
goto_if_false @GROVE2_3360
remove_blip 36@

:GROVE2_3360
if 
  does_blip_exist 55@
goto_if_false @GROVE2_3381
remove_blip 55@

:GROVE2_3381
clear_onscreen_counter $g2_sweet_hlth
unload_special_character 1
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 492
remove_animation "GANGS"
$timer_mobile_start = get_game_timer 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
mission_has_finished 
return 

:GROVE2_3432
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
return 

:GROVE2_3447
clear_prints 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
return 

:GROVE2_3466
do_fade 500 {direction} Fade.Out

:GROVE2_3473
if 
  get_fading_status 
goto_if_false @GROVE2_3497
wait 0
goto @GROVE2_3473

:GROVE2_3497
return 

:GROVE2_3499
do_fade 500 {direction} Fade.In

:GROVE2_3506
if 
  get_fading_status 
goto_if_false @GROVE2_3530
wait 0
goto @GROVE2_3506

:GROVE2_3530
return 
do_fade 500 {direction} Fade.Out

:GROVE2_3539
if 
  get_fading_status 
goto_if_false @GROVE2_3563
wait 0
goto @GROVE2_3539

:GROVE2_3563
do_fade 500 {direction} Fade.In

:GROVE2_3570
if 
  get_fading_status 
goto_if_false @GROVE2_3594
wait 0
goto @GROVE2_3570

:GROVE2_3594
return 

:GROVE2_3596
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @GROVE2_3618
41@ = 0

:GROVE2_3618
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @GROVE2_3640
40@ = 0

:GROVE2_3640
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @GROVE2_3662
goto @GROVE2_3791

:GROVE2_3662
if 
is_ps2_keyboard_key_just_pressed 71
goto_if_false @GROVE2_3752
set_char_coordinates $scplayer {x} 2487.645 {y} -1668.204 {z} 12.3438
set_char_heading $scplayer {heading} 265.0722
52@ = 2
54@ = 1
change_blip_display 55@ {display} BlipDisplay.Both
clear_area 2507.1841 {y} -1672.906 {z} 12.3824 {radius} 10.0 {clearParticles} True

:GROVE2_3752
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @GROVE2_3774
gosub @GROVE2_2939

:GROVE2_3774
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @GROVE2_3789

:GROVE2_3789
return 

:GROVE2_3791
gosub @GROVE2_3466
gosub @GROVE2_3432
clear_prints 
request_animation "GANGS"

:GROVE2_3816
if 
  not has_animation_loaded "GANGS"
goto_if_false @GROVE2_3847
wait 0
goto @GROVE2_3816

:GROVE2_3847
if and
  not is_char_dead $scplayer
  not is_char_dead $sweet
goto_if_false @GROVE2_4145
remove_char_from_group $sweet
clear_area 2512.761 {y} -1672.52 {z} 12.5034 {radius} 50.0 {clearParticles} True
if 
  is_char_in_any_car $scplayer
goto_if_false @GROVE2_3970
set_char_coordinates $scplayer {x} 2496.552 {y} -1682.439 {z} 12.3542
set_char_heading $scplayer {heading} 270.6489
warp_char_from_car_to_coord $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034
goto @GROVE2_3990

:GROVE2_3970
set_char_coordinates $scplayer {x} 2512.761 {y} -1672.52 {z} 12.5034

:GROVE2_3990
if 
  not is_car_dead 39@
goto_if_false @GROVE2_4011
delete_car 39@

:GROVE2_4011
set_char_heading $scplayer {heading} 240.2609
task_turn_char_to_face_char $scplayer {target} $sweet
if 
  is_char_in_any_car $sweet
goto_if_false @GROVE2_4072
warp_char_from_car_to_coord $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861
goto @GROVE2_4092

:GROVE2_4072
set_char_coordinates $sweet {x} 2514.7881 {y} -1673.938 {z} 12.6861

:GROVE2_4092
set_char_heading $sweet {heading} 73.5014
task_turn_char_to_face_char $sweet {target} $scplayer
task_toggle_ped_threat_scanner $sweet {onFoot} False {inCar} False {duringScriptTask} False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately $sweet
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_current_char_weapon $sweet {weaponType} WeaponType.Unarmed

:GROVE2_4145
set_ped_density_multiplier 0.0
set_fixed_camera_position 2509.7981 {y} -1672.175 {z} 13.4192 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2510.752 {y} -1672.457 {z} 13.5178 {switchStyle} SwitchType.JumpCut
clear_prints 
gosub @GROVE2_3499
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_4278
task_play_anim $scplayer {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:GROVE2_4278
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_4344
task_play_anim $sweet {animationName} "PRTIAL_HNDSHK_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
wait 500

:GROVE2_4344
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17618

:GROVE2_4355
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4381
wait 0
goto @GROVE2_4355

:GROVE2_4381
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GA' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4408
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4458
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4451
goto @GROVE2_5293

:GROVE2_4451
goto @GROVE2_4408

:GROVE2_4458
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_4517
task_play_anim $sweet {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE2_4517
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17619

:GROVE2_4528
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4554
wait 0
goto @GROVE2_4528

:GROVE2_4554
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GB' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4581
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4631
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4624
goto @GROVE2_5293

:GROVE2_4624
goto @GROVE2_4581

:GROVE2_4631
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17620

:GROVE2_4642
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4668
wait 0
goto @GROVE2_4642

:GROVE2_4668
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GC' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4695
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4745
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4738
goto @GROVE2_5293

:GROVE2_4738
goto @GROVE2_4695

:GROVE2_4745
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_4790
clear_char_tasks_immediately $sweet
task_go_to_coord_any_means $sweet {x} 2513.6831 {y} -1672.876 {z} 12.5412 {speed} MoveState.Walk {vehicle} -1

:GROVE2_4790
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_4822
clear_char_tasks_immediately $scplayer
task_look_at_char $scplayer {target} $sweet {time} 10000

:GROVE2_4822
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17621

:GROVE2_4833
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_4859
wait 0
goto @GROVE2_4833

:GROVE2_4859
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GD' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_4886
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_4936
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_4929
goto @GROVE2_5293

:GROVE2_4929
goto @GROVE2_4886

:GROVE2_4936
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_5001
task_play_anim $sweet {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE2_5001
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_5066
task_play_anim $scplayer {animationName} "PRTIAL_HNDSHK_BIZ_01" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GROVE2_5066
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 17622

:GROVE2_5077
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GROVE2_5103
wait 0
goto @GROVE2_5077

:GROVE2_5103
play_mission_audio MissionAudioSlot.Slot1
print_now 'GRO2_GE' {time} 4000 {flag} 1
TIMERB = 0

:GROVE2_5130
if 
  not has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @GROVE2_5180
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_5173
goto @GROVE2_5293

:GROVE2_5173
goto @GROVE2_5130

:GROVE2_5180
if 
  not is_char_dead $sweet
goto_if_false @GROVE2_5225
clear_char_tasks_immediately $sweet
task_go_to_coord_any_means $sweet {x} 2516.2639 {y} -1675.254 {z} 12.9287 {speed} MoveState.Walk {vehicle} -1

:GROVE2_5225
TIMERB = 0

:GROVE2_5232
if 
  2000 > TIMERB
goto_if_false @GROVE2_5286
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GROVE2_5279
goto @GROVE2_5293

:GROVE2_5279
goto @GROVE2_5232

:GROVE2_5286
gosub @GROVE2_3466

:GROVE2_5293
remove_animation "GANGS"
delete_char $sweet
if 
  not is_char_dead $scplayer
goto_if_false @GROVE2_5353
set_char_coordinates $scplayer {x} 2512.407 {y} -1672.111 {z} 12.4895
set_char_heading $scplayer {heading} 78.5658

:GROVE2_5353
gosub @GROVE2_3447
set_ped_density_multiplier 1.0
set_camera_behind_player 
gosub @GROVE2_3499
goto @GROVE2_3159

:GROVE2_5383
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 46@
47@ = 0
return 

:GROVE2_5403
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  47@ == 0
goto_if_false @GROVE2_5446
play_mission_audio MissionAudioSlot.Slot1
print_now 59@s {time} 10000 {flag} 1
47@ = 1

:GROVE2_5446
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  47@ == 1
goto_if_false @GROVE2_5484
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 59@s
47@ = 2

:GROVE2_5484
return 

//-------------Mission 108---------------
// Originally: Riot

:RIOT1
script_name 'RIOT1'
gosub @RIOT1_47
if 
  has_deatharrest_been_executed 
goto_if_false @RIOT1_38
gosub @RIOT1_2979

:RIOT1_38
gosub @RIOT1_3082
terminate_this_script 

:RIOT1_47
register_mission_given 
$onmission = 1
load_mission_text 'RIOT1'
clear_prints 
wait 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
89@ = 0
90@ = 0
91@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
make_player_gang_disappear 
set_area_visible 5
load_cutscene 'RIOT_1A'

:RIOT1_202
if 
  not has_cutscene_loaded 
goto_if_false @RIOT1_226
wait 0
goto @RIOT1_202

:RIOT1_226
start_cutscene 
do_fade 1000 {direction} Fade.In

:RIOT1_235
if 
  not has_cutscene_finished 
goto_if_false @RIOT1_259
wait 0
goto @RIOT1_235

:RIOT1_259
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:RIOT1_272
if 
  get_fading_status 
goto_if_false @RIOT1_296
wait 0
goto @RIOT1_272

:RIOT1_296
clear_cutscene 
if 
  not was_cutscene_skipped 
goto_if_false @RIOT1_418
load_cutscene 'RIOT_1B'

:RIOT1_322
if 
  not has_cutscene_loaded 
goto_if_false @RIOT1_346
wait 0
goto @RIOT1_322

:RIOT1_346
start_cutscene 
do_fade 1000 {direction} Fade.In

:RIOT1_355
if 
  not has_cutscene_finished 
goto_if_false @RIOT1_379
wait 0
goto @RIOT1_355

:RIOT1_379
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:RIOT1_392
if 
  get_fading_status 
goto_if_false @RIOT1_416
wait 0
goto @RIOT1_392

:RIOT1_416
clear_cutscene 

:RIOT1_418
set_area_visible 0
make_player_gang_reappear 
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
wait 0
set_la_riots True
set_int_stat StatId.StartedRiot1 {value} 1
request_model 492
request_model 567
request_model 483
load_special_character 1 {modelName} 'SWEET'
load_all_models_now 
$r1_empty_decision_maker = copy_char_decision_maker DecisionMakerCharTemplate.Empty
load_scene 1254.6801 {y} -789.39 {z} 91.03
clear_area 1242.9 {y} -805.4 {z} 82.9 {radius} 20.0 {clearParticles} True
custom_plate_for_next_car 483 {text} "OUTTHERE"
$r1_mothership = create_car 483 {x} 1242.9 {y} -805.4 {z} 82.9
set_car_heading $r1_mothership {heading} 0.0
change_car_colour $r1_mothership {color1} 1 {color2} 1
give_vehicle_paintjob $r1_mothership {paintjobId} 0
set_can_respray_car $r1_mothership {changeColors} False
clear_area 1249.1 {y} -804.9 {z} 82.9 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 567 {text} "_LVA4L__"
$r1_cesars_car = create_car 567 {x} 1249.1 {y} -804.9 {z} 82.9
set_car_heading $r1_cesars_car {heading} 177.7
change_car_colour $r1_cesars_car {color1} 3 {color2} 3
clear_area 1254.3 {y} -806.6 {z} 82.9 {radius} 5.0 {clearParticles} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$r1_sweets_car = create_car 492 {x} 1254.3 {y} -806.6 {z} 82.9
change_car_colour $r1_sweets_car {color1} 59 {color2} 34
set_car_heading $r1_sweets_car {heading} 177.7
clear_area 1258.2 {y} -814.4 {z} 83.1 {radius} 60.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1258.2 {y} -814.4 {z} 83.1
set_char_heading $scplayer {heading} 40.0
clear_area 1257.6 {y} -816.6 {z} 83.1 {radius} 5.0 {clearParticles} True
$sweet = create_char PedType.Mission2 {modelId} 290 {x} 1257.6 {y} -816.6 {z} 83.1
set_char_heading $sweet {heading} 39.9
set_char_get_out_upside_down_car $sweet {state} False
set_char_never_targetted $sweet {state} True
set_char_cant_be_dragged_out $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} $r1_empty_decision_maker
set_char_only_damaged_by_player $sweet {state} True
$r1_seq = open_sequence_task 
task_go_straight_to_coord -1 {x} 1252.4 {y} -810.3 {z} 83.1 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} $r1_sweets_car {time} -1 {seat} SeatId.BikeRear
close_sequence_task $r1_seq
perform_sequence_task $sweet {sequence} $r1_seq
clear_sequence_task $r1_seq
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 1257.8 {y} -815.0 {z} 84.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1246.3 {y} -802.5 {z} 82.7 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
enable_ambient_crime False

:RIOT1_1048
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @RIOT1_1074
goto @RIOT1_2997

:RIOT1_1074
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1106
goto @RIOT1_2979

:RIOT1_1106
if 
  35@ == 0
goto_if_false @RIOT1_1744
if 
  36@ == 0
goto_if_false @RIOT1_1339
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
40@ = 0
set_next_desired_move_state MoveState.Walk
task_enter_car_as_driver $scplayer {vehicle} $r1_sweets_car {time} -1
$r1_seq = open_sequence_task 
task_go_straight_to_coord -1 {x} 1252.4 {y} -810.3 {z} 83.1 {speed} MoveState.Walk {time} -1
set_next_desired_move_state MoveState.Walk
task_enter_car_as_passenger -1 {vehicle} $r1_sweets_car {time} -1 {seat} SeatId.BikeRear
close_sequence_task $r1_seq
perform_sequence_task $sweet {sequence} $r1_seq
clear_sequence_task $r1_seq
do_fade 500 {direction} Fade.In

:RIOT1_1241
if 
  get_fading_status 
goto_if_false @RIOT1_1265
wait 0
goto @RIOT1_1241

:RIOT1_1265
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1297
goto @RIOT1_2979

:RIOT1_1297
40@ = 1
41@ = 0
gosub @RIOT1_4358
36@ = 1
37@ = 1
skip_cutscene_start_internal @RIOT1_1420

:RIOT1_1339
if 
  36@ == 1
goto_if_false @RIOT1_1744
if 
  40@ == 0
goto_if_false @RIOT1_1744
if 
  is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_1744
if 
  is_char_in_car $sweet {vehicle} $r1_sweets_car
goto_if_false @RIOT1_1744
37@ = 0

:RIOT1_1420
skip_cutscene_end 
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1454
goto @RIOT1_2979

:RIOT1_1454
if 
  37@ == 1
goto_if_false @RIOT1_1580
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
40@ = 0
do_fade 500 {direction} Fade.Out

:RIOT1_1496
if 
  get_fading_status 
goto_if_false @RIOT1_1520
wait 0
goto @RIOT1_1496

:RIOT1_1520
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1552
goto @RIOT1_2979

:RIOT1_1552
clear_char_tasks_immediately $scplayer
warp_char_into_car $scplayer {vehicle} $r1_sweets_car
clear_char_tasks_immediately $sweet
warp_char_into_car_as_passenger $sweet {handle} $r1_sweets_car {seat} SeatId.BikeRear

:RIOT1_1580
39@ = 1
shut_all_chars_up False
34@ = add_blip_for_coord 2505.3999 {y} -1670.6 {z} 12.1
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'R1_01' {time} 7000 {flag} 1
TIMERB = 0
if 
  37@ == 1
goto_if_false @RIOT1_1737
do_fade 500 {direction} Fade.In

:RIOT1_1681
if 
  get_fading_status 
goto_if_false @RIOT1_1705
wait 0
goto @RIOT1_1681

:RIOT1_1705
gosub @RIOT1_3160
if 
  38@ == 1
goto_if_false @RIOT1_1737
goto @RIOT1_2979

:RIOT1_1737
35@ = 1

:RIOT1_1744
if 
  35@ == 1
goto_if_false @RIOT1_2600
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @RIOT1_1826
if 
  is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_1826
set_car_coordinates $r1_sweets_car {x} 2495.7 {y} -1666.3 {z} 12.1
set_car_heading $r1_sweets_car {heading} 254.2

:RIOT1_1826
if 
  42@ == 0
goto_if_false @RIOT1_1923
if 
  40@ == 0
goto_if_false @RIOT1_1923
if 
  TIMERB > 10000
goto_if_false @RIOT1_1923
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $sweet {state} True
40@ = 2
41@ = 0
gosub @RIOT1_4358
42@ = 1

:RIOT1_1923
if 
  42@ == 1
goto_if_false @RIOT1_2006
if 
  40@ == 0
goto_if_false @RIOT1_2006
if 
  TIMERB > 7000
goto_if_false @RIOT1_2006
40@ = 3
41@ = 0
gosub @RIOT1_4358
42@ = 2

:RIOT1_2006
if 
  42@ == 2
goto_if_false @RIOT1_2156
if 
  is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_2156
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2955.5 {leftBottomY} -1240.1 {rightTopX} 1192.2 {rightTopY} -1855.3 {drawSphere} False
goto_if_false @RIOT1_2156
if 
  40@ == 0
goto_if_false @RIOT1_2156
if 
  TIMERB > 7000
goto_if_false @RIOT1_2156
mark_car_as_no_longer_needed $r1_mothership
mark_car_as_no_longer_needed $r1_cesars_car
40@ = 4
41@ = 0
gosub @RIOT1_4358
42@ = 3

:RIOT1_2156
if 
  42@ == 3
goto_if_false @RIOT1_2296
if 
  is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_2296
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2955.5 {leftBottomY} -1240.1 {rightTopX} 1192.2 {rightTopY} -1855.3 {drawSphere} False
goto_if_false @RIOT1_2296
if 
  40@ == 0
goto_if_false @RIOT1_2296
if 
  TIMERB > 7000
goto_if_false @RIOT1_2296
40@ = 5
41@ = 0
gosub @RIOT1_4358
42@ = 4

:RIOT1_2296
if 
  42@ == 4
goto_if_false @RIOT1_2436
if 
  is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_2436
if 
  is_char_in_area_2d $scplayer {leftBottomX} 2955.5 {leftBottomY} -1240.1 {rightTopX} 1192.2 {rightTopY} -1855.3 {drawSphere} False
goto_if_false @RIOT1_2436
if 
  40@ == 0
goto_if_false @RIOT1_2436
if 
  TIMERB > 7000
goto_if_false @RIOT1_2436
40@ = 6
41@ = 0
gosub @RIOT1_4358
42@ = 5

:RIOT1_2436
if 
  42@ == 5
goto_if_false @RIOT1_2493
if 
  40@ == 0
goto_if_false @RIOT1_2493
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $sweet {state} False
42@ = 6

:RIOT1_2493
if 
  is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_2600
if 
  is_char_in_car $sweet {vehicle} $r1_sweets_car
goto_if_false @RIOT1_2600
if 
  locate_char_in_car_3d $scplayer {x} 2505.3999 {y} -1670.6 {z} 12.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RIOT1_2600
set_player_control $player1 {state} False
36@ = 0
35@ = 2

:RIOT1_2600
if 
  35@ == 2
goto_if_false @RIOT1_2940
if 
  36@ == 0
goto_if_false @RIOT1_2703
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
40@ = 0
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
40@ = 7
41@ = 0
gosub @RIOT1_4358
36@ = 1
36@ = 1

:RIOT1_2703
if 
  36@ == 1
goto_if_false @RIOT1_2803
if 
  40@ == 0
goto_if_false @RIOT1_2803
$r1_seq = open_sequence_task 
task_leave_any_car -1
task_go_straight_to_coord -1 {x} 2518.8999 {y} -1678.2 {z} 13.5 {speed} MoveState.Walk {time} -1
close_sequence_task $r1_seq
perform_sequence_task $sweet {sequence} $r1_seq
clear_sequence_task $r1_seq
TIMERA = 0
36@ = 2

:RIOT1_2803
if 
  36@ == 2
goto_if_false @RIOT1_2940
if 
  TIMERA > 4000
goto_if_false @RIOT1_2940
do_fade 500 {direction} Fade.Out

:RIOT1_2847
if 
  get_fading_status 
goto_if_false @RIOT1_2871
wait 0
goto @RIOT1_2847

:RIOT1_2871
delete_char $sweet
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
shut_all_chars_up False
do_fade 500 {direction} Fade.In

:RIOT1_2909
if 
  get_fading_status 
goto_if_false @RIOT1_2933
wait 0
goto @RIOT1_2909

:RIOT1_2933
goto @RIOT1_2997

:RIOT1_2940
if 
  35@ > 0
goto_if_false @RIOT1_2965
gosub @RIOT1_3244

:RIOT1_2965
gosub @RIOT1_3390
goto @RIOT1_1048

:RIOT1_2979
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RIOT1_2997
$flag_riot_mission_counter += 1
set_int_stat StatId.PassedRiot1 {value} 1
register_mission_passed 'RIOT_1'
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
clear_wanted_level $player1
remove_blip $mansion_contact_blip
remove_blip $sweet_contact_blip
$sweet_contact_blip = add_sprite_blip_for_contact_point $sweetX {y} $sweetY {z} $sweetZ {sprite} $sweet_blip_icon
player_made_progress 1
return 

:RIOT1_3082
if 
  is_var_text_label_empty s$shop_name
goto_if_false @RIOT1_3100
restore_camera_jumpcut 

:RIOT1_3100
shut_all_chars_up False
shut_char_up_for_scripted_speech $scplayer {state} False
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 567
mark_model_as_no_longer_needed 483
remove_char_elegantly $sweet
unload_special_character 1
remove_blip 34@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:RIOT1_3160
if 
  is_char_dead $sweet
goto_if_false @RIOT1_3201
clear_prints 
print_now 'R1_02' {time} 7000 {flag} 1
38@ = 1

:RIOT1_3201
if 
  is_car_dead $r1_sweets_car
goto_if_false @RIOT1_3242
clear_prints 
print_now 'R1_04' {time} 7000 {flag} 1
38@ = 1

:RIOT1_3242
return 

:RIOT1_3244
if 
  39@ == 0
goto_if_false @RIOT1_3324
if 
  is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_3324
clear_this_print 'R1_03'
remove_blip 34@
34@ = add_blip_for_coord 2505.3999 {y} -1670.6 {z} 12.1
39@ = 1

:RIOT1_3324
if 
  39@ == 1
goto_if_false @RIOT1_3388
if 
  not is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_3388
remove_blip 34@
34@ = add_blip_for_car $r1_sweets_car
set_blip_as_friendly 34@ {state} True
39@ = 0

:RIOT1_3388
return 

:RIOT1_3390
if 
  35@ == 1
goto_if_false @RIOT1_4277
if 
  is_char_sitting_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_3588
if or
  40@ == 2
  40@ == 3
  40@ == 4
  40@ == 5
  40@ == 6
goto_if_false @RIOT1_3588
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3574
gosub @RIOT1_5574
gosub @RIOT1_5681
if 
  not is_char_dead $sweet
goto_if_false @RIOT1_3536
gosub @RIOT1_5835
goto @RIOT1_3567

:RIOT1_3536
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
90@ = 0
91@ = 0

:RIOT1_3567
goto @RIOT1_3588

:RIOT1_3574
TIMERB = 0
40@ = 0

:RIOT1_3588
if 
  not is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_3724
if 
  11 > 40@
goto_if_false @RIOT1_3724
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3651
41@ += 1

:RIOT1_3651
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_prints 
clear_this_print 44@(41@,15s)
set_lvar_int_to_lvar_int 94@ = 40@
set_lvar_int_to_lvar_int 95@ = 41@
40@ = 11
41@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 43@ = 41@
43@ += 1
gosub @RIOT1_4358

:RIOT1_3724
if 
  40@ == 11
goto_if_false @RIOT1_4049
if 
  not is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_3997
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_3974
gosub @RIOT1_5574
gosub @RIOT1_5681
if 
  36@ == 0
goto_if_false @RIOT1_3878
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
goto_if_false @RIOT1_3847
gosub @RIOT1_5835
goto @RIOT1_3878

:RIOT1_3847
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
90@ = 0
91@ = 0

:RIOT1_3878
if 
  36@ == 1
goto_if_false @RIOT1_3967
if or
  not is_char_dead $big_smoke
  not is_char_dead $sweet
  not is_char_dead $mc_strap
goto_if_false @RIOT1_3936
gosub @RIOT1_5835
goto @RIOT1_3967

:RIOT1_3936
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
90@ = 0
91@ = 0

:RIOT1_3967
goto @RIOT1_3997

:RIOT1_3974
print_now 'R1_03' {time} 11000 {flag} 1
40@ = 12

:RIOT1_3997
if 
  is_char_sitting_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_4049
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
40@ = 13
41@ = 0
clear_prints 

:RIOT1_4049
if 
  40@ == 12
goto_if_false @RIOT1_4102
if 
  is_char_sitting_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_4102
40@ = 13
41@ = 0
clear_prints 

:RIOT1_4102
if 
  40@ == 13
goto_if_false @RIOT1_4277
if 
  is_char_sitting_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_4203
TIMERB = 0
set_lvar_int_to_lvar_int 40@ = 94@
set_lvar_int_to_lvar_int 41@ = 95@
gosub @RIOT1_4358
if 
  94@ == 0
goto_if_false @RIOT1_4203
print_now 'R1_01' {time} 7000 {flag} 1

:RIOT1_4203
if 
  not is_char_in_car $scplayer {vehicle} $r1_sweets_car
goto_if_false @RIOT1_4277
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 44@(41@,15s)
40@ = 11
41@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 43@ = 41@
43@ += 1
gosub @RIOT1_4358

:RIOT1_4277
if or
  40@ == 1
  40@ == 7
goto_if_false @RIOT1_4356
if 
  is_int_lvar_greater_than_int_lvar 89@ > 41@
goto_if_false @RIOT1_4349
gosub @RIOT1_5574
gosub @RIOT1_5681
gosub @RIOT1_5835
goto @RIOT1_4356

:RIOT1_4349
40@ = 0

:RIOT1_4356
return 

:RIOT1_4358
if 
  40@ == 1
goto_if_false @RIOT1_4431
set_lvar_text_label 44@s = 'ROT1_AA'
set_lvar_text_label 46@s = 'ROT1_AB'
set_lvar_int_to_constant 74@ = 32800
set_lvar_int_to_constant 75@ = 32801
89@ = 2

:RIOT1_4431
if 
  40@ == 2
goto_if_false @RIOT1_4576
set_lvar_text_label 44@s = 'ROT1_BA'
set_lvar_text_label 46@s = 'ROT1_BB'
set_lvar_text_label 48@s = 'ROT1_BC'
set_lvar_text_label 50@s = 'ROT1_BD'
set_lvar_text_label 52@s = 'ROT1_BE'
set_lvar_int_to_constant 74@ = 32802
set_lvar_int_to_constant 75@ = 32803
set_lvar_int_to_constant 76@ = 32804
set_lvar_int_to_constant 77@ = 32805
set_lvar_int_to_constant 78@ = 32806
89@ = 5

:RIOT1_4576
if 
  40@ == 3
goto_if_false @RIOT1_4913
set_lvar_text_label 44@s = 'ROT1_EA'
set_lvar_text_label 46@s = 'ROT1_EB'
set_lvar_text_label 48@s = 'ROT1_EC'
set_lvar_text_label 50@s = 'ROT1_ED'
set_lvar_text_label 52@s = 'ROT1_EE'
set_lvar_text_label 54@s = 'ROT1_EF'
set_lvar_text_label 56@s = 'ROT1_EG'
set_lvar_text_label 58@s = 'ROT1_EH'
set_lvar_text_label 60@s = 'ROT1_EJ'
set_lvar_text_label 62@s = 'ROT1_EK'
set_lvar_text_label 64@s = 'ROT1_EL'
set_lvar_text_label 66@s = 'ROT1_EM'
set_lvar_text_label 68@s = 'ROT1_EN'
set_lvar_int_to_constant 74@ = 32810
set_lvar_int_to_constant 75@ = 32811
set_lvar_int_to_constant 76@ = 32812
set_lvar_int_to_constant 77@ = 32813
set_lvar_int_to_constant 78@ = 32814
set_lvar_int_to_constant 79@ = 32815
set_lvar_int_to_constant 80@ = 32816
set_lvar_int_to_constant 81@ = 32817
set_lvar_int_to_constant 82@ = 32818
set_lvar_int_to_constant 83@ = 32819
set_lvar_int_to_constant 84@ = 32820
set_lvar_int_to_constant 85@ = 32821
set_lvar_int_to_constant 86@ = 32822
89@ = 13

:RIOT1_4913
if 
  40@ == 4
goto_if_false @RIOT1_5010
set_lvar_text_label 44@s = 'ROT1_DA'
set_lvar_text_label 46@s = 'ROT1_DB'
set_lvar_text_label 48@s = 'ROT1_DC'
set_lvar_int_to_constant 74@ = 32807
set_lvar_int_to_constant 75@ = 32808
set_lvar_int_to_constant 76@ = 32809
89@ = 3

:RIOT1_5010
if 
  40@ == 5
goto_if_false @RIOT1_5203
set_lvar_text_label 44@s = 'ROT1_FA'
set_lvar_text_label 46@s = 'ROT1_FB'
set_lvar_text_label 48@s = 'ROT1_FC'
set_lvar_text_label 50@s = 'ROT1_FD'
set_lvar_text_label 52@s = 'ROT1_FE'
set_lvar_text_label 54@s = 'ROT1_FF'
set_lvar_text_label 56@s = 'ROT1_FG'
set_lvar_int_to_constant 74@ = 32823
set_lvar_int_to_constant 75@ = 32824
set_lvar_int_to_constant 76@ = 32825
set_lvar_int_to_constant 77@ = 32826
set_lvar_int_to_constant 78@ = 32827
set_lvar_int_to_constant 79@ = 32828
set_lvar_int_to_constant 80@ = 32829
89@ = 7

:RIOT1_5203
if 
  40@ == 6
goto_if_false @RIOT1_5300
set_lvar_text_label 44@s = 'ROT1_GL'
set_lvar_text_label 46@s = 'ROT1_GA'
set_lvar_text_label 48@s = 'ROT1_FH'
set_lvar_int_to_constant 74@ = 32840
set_lvar_int_to_constant 75@ = 32831
set_lvar_int_to_constant 76@ = 32830
89@ = 3

:RIOT1_5300
if 
  40@ == 7
goto_if_false @RIOT1_5421
set_lvar_text_label 44@s = 'ROT1_HC'
set_lvar_text_label 46@s = 'ROT1_HD'
set_lvar_text_label 48@s = 'ROT1_HE'
set_lvar_text_label 50@s = 'ROT1_HF'
set_lvar_int_to_constant 74@ = 32844
set_lvar_int_to_constant 75@ = 32845
set_lvar_int_to_constant 76@ = 32846
set_lvar_int_to_constant 77@ = 32847
89@ = 4

:RIOT1_5421
if 
  40@ == 11
goto_if_false @RIOT1_5543
set_lvar_text_label 44@s = 'SWE1_BG'
set_lvar_text_label 46@s = 'SWE1_BK'
set_lvar_text_label 48@s = 'SWE1_BL'
set_lvar_text_label 50@s = 'SWE1_BM'
set_lvar_int_to_constant 74@ = 37429
set_lvar_int_to_constant 75@ = 37432
set_lvar_int_to_constant 76@ = 37433
set_lvar_int_to_constant 77@ = 37434
set_lvar_int_to_lvar_int 89@ = 43@

:RIOT1_5543
set_lvar_int_to_lvar_int 92@ = 41@
90@ = 0
91@ = 0
93@ = 1
return 

:RIOT1_5574
if 
  is_int_lvar_greater_than_int_lvar 89@ > 92@
goto_if_false @RIOT1_5679
if 
  90@ == 0
goto_if_false @RIOT1_5636
load_mission_audio MissionAudioSlot.Slot1 {audioId} 74@(92@,15i)
92@ += 1
90@ = 1

:RIOT1_5636
if 
  91@ == 0
goto_if_false @RIOT1_5679
load_mission_audio MissionAudioSlot.Slot2 {audioId} 74@(92@,15i)
92@ += 1
91@ = 1

:RIOT1_5679
return 

:RIOT1_5681
if 
  93@ == 1
goto_if_false @RIOT1_5757
if 
  90@ == 1
goto_if_false @RIOT1_5757
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RIOT1_5757
play_mission_audio MissionAudioSlot.Slot1
print_now 44@(41@,15s) {time} 4500 {flag} 1
90@ = 2

:RIOT1_5757
if 
  93@ == 2
goto_if_false @RIOT1_5833
if 
  91@ == 1
goto_if_false @RIOT1_5833
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @RIOT1_5833
play_mission_audio MissionAudioSlot.Slot2
print_now 44@(41@,15s) {time} 4500 {flag} 1
91@ = 2

:RIOT1_5833
return 

:RIOT1_5835
if 
  90@ == 2
goto_if_false @RIOT1_5898
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RIOT1_5898
clear_this_print 44@(41@,15s)
41@ += 1
93@ = 2
90@ = 0

:RIOT1_5898
if 
  91@ == 2
goto_if_false @RIOT1_5961
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @RIOT1_5961
clear_this_print 44@(41@,15s)
41@ += 1
93@ = 1
91@ = 0

:RIOT1_5961
return 

//-------------Mission 109---------------
// Originally: Los Desperados

:RIOT2
script_name 'RIOT2'
gosub @RIOT2_47
if 
  has_deatharrest_been_executed 
goto_if_false @RIOT2_38
gosub @RIOT2_30241

:RIOT2_38
gosub @RIOT2_30499
terminate_this_script 

:RIOT2_47
$onmission = 1
register_mission_given 
load_mission_text 'RIOT2'
if 
  $onmission == 0
goto_if_false @RIOT2_350
88@ = create_object #BBALL_INGAME {x} 0.0 {y} 0.0 {z} 0.0
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
37@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
43@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
49@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
55@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
61@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
79@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.9 {y} -2004.6 {z} 12.6
96@ = add_blip_for_char 37@
102@ = add_blip_for_char 43@
108@ = add_blip_for_char 49@
114@ = add_blip_for_char 55@
120@ = add_blip_for_char 61@
132@ = add_blip_for_char 79@

:RIOT2_350
clear_prints 
wait 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
187@ = 0
set_lvar_int_to_constant 146@ = 108
set_lvar_int_to_constant 147@ = 109
148@ = 0
149@ = 2
150@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
262@ = 0.0
263@ = 0.0
264@ = 0.0
168@ = 0
169@ = 0
177@ = 0
178@ = 0
185@ = 0
188@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
183@ = 0.0
180@ = 0
181@ = 60
270@ = 0
make_player_gang_disappear 
set_area_visible 1
load_cutscene 'RIOT_2'

:RIOT2_756
if 
  not has_cutscene_loaded 
goto_if_false @RIOT2_780
wait 0
goto @RIOT2_756

:RIOT2_780
start_cutscene 
do_fade 1000 {direction} Fade.In

:RIOT2_789
if 
  not has_cutscene_finished 
goto_if_false @RIOT2_813
wait 0
goto @RIOT2_789

:RIOT2_813
do_fade 0 {direction} Fade.Out

:RIOT2_819
if 
  get_fading_status 
goto_if_false @RIOT2_843
wait 0
goto @RIOT2_819

:RIOT2_843
set_area_visible 0
clear_cutscene 
set_player_control $player1 {state} False
make_player_gang_reappear 
set_fading_colour 0 {g} 0 {b} 0
wait 0
load_special_character 1 {modelName} 'CESAR'
request_model 114
request_model 115
request_model 116
request_model 108
request_model 109
request_model 339
request_model 348
request_model 372
load_all_models_now 
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Mission1
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission2 {toPedType} PedType.Mission2
set_relationship RelationshipType.Respect {ofPedType} PedType.Mission1 {toPedType} PedType.Mission1
265@ = load_char_decision_maker DecisionMakerType.Tough
266@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
267@ = load_group_decision_maker DecisionMakerGroupType.MissionNorm
clear_area 2520.8 {y} -1678.5 {z} 14.2 {radius} 30.0 {clearParticles} True
load_scene 2520.8 {y} -1678.5 {z} 14.2
set_char_coordinates $scplayer {x} 2520.8 {y} -1678.5 {z} 14.2
set_char_heading $scplayer {heading} 68.6
clear_area 2520.8 {y} -1678.5 {z} 14.2 {radius} 1.0 {clearParticles} True
$cesar = create_char PedType.Mission1 {modelId} 290 {x} 2519.8 {y} -1677.5 {z} 13.7
set_char_heading $cesar {heading} 68.6
give_weapon_to_char $cesar {weaponType} WeaponType.DesertEagle {ammo} 30000
set_char_never_targetted $cesar {state} True
add_armour_to_char $cesar {amount} 100
set_char_relationship $cesar {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player $cesar {state} True
set_char_suffers_critical_hits $cesar {state} False
set_char_decision_maker $cesar {handleOrTemplate} 265@
switch_ped_roads_off 1945.8 {leftBottomY} -1956.5 {leftBottomZ} 0.0 {rightTopX} 1642.9 {rightTopY} -2174.3 {rightTopZ} 50.0
clear_area 1784.6 {y} -1969.5 {z} 13.1 {radius} 30.0 {clearParticles} True
35@ = create_char PedType.Mission1 {modelId} 114 {x} 1784.6 {y} -1969.5 {z} 13.1
set_char_heading 35@ {heading} 103.1
give_weapon_to_char 35@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_never_targetted 35@ {state} True
add_armour_to_char 35@ {amount} 100
set_char_relationship 35@ {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player 35@ {state} True
set_char_suffers_critical_hits 35@ {state} False
set_char_decision_maker 35@ {handleOrTemplate} 266@
34@ = create_char PedType.Mission1 {modelId} 115 {x} 1784.4 {y} -1971.1 {z} 13.1
set_char_heading 34@ {heading} 52.8
give_weapon_to_char 34@ {weaponType} WeaponType.Tec9 {ammo} 30000
set_char_never_targetted 34@ {state} True
add_armour_to_char 34@ {amount} 100
set_char_relationship 34@ {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player 34@ {state} True
set_char_suffers_critical_hits 34@ {state} False
set_char_decision_maker 34@ {handleOrTemplate} 266@
36@ = create_char PedType.Mission1 {modelId} 116 {x} 1782.6 {y} -1969.4 {z} 13.1
set_char_heading 36@ {heading} 250.2
give_weapon_to_char 36@ {weaponType} WeaponType.Katana {ammo} 30000
set_char_never_targetted 36@ {state} True
add_armour_to_char 36@ {amount} 100
set_char_relationship 36@ {relationshipType} RelationshipType.Respect {pedType} PedType.Mission1
set_char_only_damaged_by_player 36@ {state} True
set_char_suffers_critical_hits 36@ {state} False
set_char_proofs 36@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_decision_maker 36@ {handleOrTemplate} 266@
change_garage_type 'DUF_LAS' {type} GarageType.ForScriptToOpen
switch_emergency_services False
close_garage 'DUF_LAS'
set_zone_no_cops 'ELCO' {state} True
184@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} 1877.54 {y} -1982.63 {z} 13.48
enable_ambient_crime False

:RIOT2_1585
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @RIOT2_1611
goto @RIOT2_30259

:RIOT2_1611
alter_wanted_level $player1 {wantedLevel} 0
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_1650
goto @RIOT2_30241

:RIOT2_1650
174@ = get_game_timer 
set_lvar_int_to_lvar_int 175@ = 174@
sub_int_lvar_from_int_lvar 175@ -= 176@
set_lvar_int_to_lvar_int 176@ = 174@
add_int_lvar_to_int_lvar 170@ += 175@
add_int_lvar_to_int_lvar 171@ += 175@
add_int_lvar_to_int_lvar 172@ += 175@
add_int_lvar_to_int_lvar 173@ += 175@
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @RIOT2_1766
set_char_coordinates $scplayer {x} 1776.0 {y} -1988.1 {z} 12.9
set_char_coordinates $cesar {x} 1776.0 {y} -1990.1 {z} 12.9

:RIOT2_1766
$minutes, 177@ = get_group_size $Players_Group
if 
  142@ == 0
goto_if_false @RIOT2_3308
if 
  143@ == 0
goto_if_false @RIOT2_2116
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_fixed_camera_position 2509.0 {y} -1672.7 {z} 13.3 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2523.1001 {y} -1678.2 {z} 15.2 {switchStyle} SwitchType.JumpCut
shut_all_chars_up True
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2512.8 {y} -1673.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 2514.1001 {y} -1675.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 268@
perform_sequence_task $scplayer {sequence} 268@
clear_sequence_task 268@
do_fade 500 {direction} Fade.In

:RIOT2_2018
if 
  get_fading_status 
goto_if_false @RIOT2_2042
wait 0
goto @RIOT2_2018

:RIOT2_2042
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2074
goto @RIOT2_30241

:RIOT2_2074
185@ = 1
186@ = 0
gosub @RIOT2_40912
143@ = 1
144@ = 1
skip_cutscene_start_internal @RIOT2_2249

:RIOT2_2116
if 
  143@ == 1
goto_if_false @RIOT2_2206
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_2206
task_play_anim $scplayer {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
143@ = 2

:RIOT2_2206
if 
  143@ == 2
goto_if_false @RIOT2_2607
if 
  185@ == 0
goto_if_false @RIOT2_2607
144@ = 0

:RIOT2_2249
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2283
goto @RIOT2_30241

:RIOT2_2283
if 
  144@ == 1
goto_if_false @RIOT2_2441
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_2325
if 
  get_fading_status 
goto_if_false @RIOT2_2349
wait 0
goto @RIOT2_2325

:RIOT2_2349
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2381
goto @RIOT2_30241

:RIOT2_2381
set_char_coordinates $scplayer {x} 2512.8 {y} -1673.2 {z} 12.5
set_char_heading $scplayer {heading} 40.6
set_char_coordinates $cesar {x} 2514.1001 {y} -1675.2 {z} 12.5
set_char_heading $cesar {heading} 220.0

:RIOT2_2441
clear_char_tasks_immediately $scplayer
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar
167@ = 1
set_group_decision_maker $Players_Group {handleOrTemplate} 267@
shut_all_chars_up False
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'R2_01' {time} 60000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_2600
do_fade 500 {direction} Fade.In

:RIOT2_2544
if 
  get_fading_status 
goto_if_false @RIOT2_2568
wait 0
goto @RIOT2_2544

:RIOT2_2568
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_2600
goto @RIOT2_30241

:RIOT2_2600
143@ = 3

:RIOT2_2607
if 
  143@ > 2
goto_if_false @RIOT2_2632
gosub @RIOT2_37859

:RIOT2_2632
if 
  143@ == 3
goto_if_false @RIOT2_2730
if 
  177@ > 2
goto_if_false @RIOT2_2730
remove_blip 89@
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
set_blip_as_friendly 89@ {state} False
print_now 'R2_13' {time} 7000 {flag} 1
TIMERB = 0
143@ = 4

:RIOT2_2730
if 
  143@ == 4
goto_if_false @RIOT2_3308
if 
  187@ == 0
goto_if_false @RIOT2_2827
if 
  TIMERB > 7000
goto_if_false @RIOT2_2827
shut_char_up_for_scripted_speech $scplayer {state} True
shut_char_up_for_scripted_speech $cesar {state} True
185@ = 2
186@ = 0
gosub @RIOT2_40912
187@ = 1

:RIOT2_2827
if 
  187@ == 1
goto_if_false @RIOT2_2877
if 
  185@ == 0
goto_if_false @RIOT2_2877
TIMERB = 0
187@ = 2

:RIOT2_2877
if 
  187@ == 2
goto_if_false @RIOT2_2942
if 
  TIMERB > 7000
goto_if_false @RIOT2_2942
185@ = 3
186@ = 0
gosub @RIOT2_40912
187@ = 3

:RIOT2_2942
if 
  187@ == 3
goto_if_false @RIOT2_2999
if 
  185@ == 0
goto_if_false @RIOT2_2999
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
187@ = 4

:RIOT2_2999
if 
  167@ == 1
goto_if_false @RIOT2_3207
$minutes, 177@ = get_group_size $Players_Group
if 
  178@ == 0
goto_if_false @RIOT2_3105
if 
  3 > 177@
goto_if_false @RIOT2_3105
remove_blip 89@
clear_this_print 'R2_13'
print_now 'R2_01' {time} 60000 {flag} 1
178@ = 1

:RIOT2_3105
if 
  178@ == 1
goto_if_false @RIOT2_3207
if 
  177@ > 2
goto_if_false @RIOT2_3207
remove_blip 89@
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
set_blip_as_friendly 89@ {state} False
clear_this_print 'R2_01'
print_now 'R2_13' {time} 7000 {flag} 1
178@ = 0

:RIOT2_3207
if 
  178@ == 0
goto_if_false @RIOT2_3308
if 
  locate_char_any_means_3d $scplayer {x} 1774.9 {y} -1974.9 {z} 13.1 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @RIOT2_3308
shut_char_up_for_scripted_speech $scplayer {state} False
shut_char_up_for_scripted_speech $cesar {state} False
187@ = 0
143@ = 0
142@ = 1

:RIOT2_3308
if 
  142@ == 1
goto_if_false @RIOT2_6797
if 
  143@ == 0
goto_if_false @RIOT2_3975
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_3368
if 
  get_fading_status 
goto_if_false @RIOT2_3392
wait 0
goto @RIOT2_3368

:RIOT2_3392
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_3424
goto @RIOT2_30241

:RIOT2_3424
clear_area 1781.1 {y} -1974.8 {z} 13.1 {radius} 30.0 {clearParticles} True
shut_all_chars_up True
set_ped_density_multiplier 0.0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
remove_char_from_group $cesar
request_model #BBALL_INGAME
request_animation "BSKTBALL"
request_animation "SMOKING"
request_animation "GANGS"
load_all_models_now 
make_player_gang_disappear 
if 
  not is_char_in_any_car $scplayer
goto_if_false @RIOT2_3618
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1781.1 {y} -1974.8 {z} 13.1
set_char_heading $scplayer {heading} 325.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1781.8 {y} -1976.4 {z} 13.1
set_char_heading $cesar {heading} 302.3
goto @RIOT2_3656

:RIOT2_3618
87@ = store_car_char_is_in_no_save $scplayer
set_car_coordinates 87@ {x} 1774.9 {y} -1974.9 {z} 13.1
task_leave_any_car $scplayer
task_leave_any_car $cesar

:RIOT2_3656
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1781.1 {y} -1974.8 {z} 13.1
set_char_heading $scplayer {heading} 325.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1781.8 {y} -1976.4 {z} 13.1
set_char_heading $cesar {heading} 302.3
268@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKA" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKB" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
set_fixed_camera_position 1781.1 {y} -1970.4 {z} 14.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1783.2 {y} -1969.9 {z} 14.5 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_3898
if 
  get_fading_status 
goto_if_false @RIOT2_3922
wait 0
goto @RIOT2_3898

:RIOT2_3922
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_3954
goto @RIOT2_30241

:RIOT2_3954
143@ = 1
144@ = 1
skip_cutscene_start_internal @RIOT2_5994

:RIOT2_3975
if 
  143@ == 1
goto_if_false @RIOT2_4028
185@ = 4
186@ = 0
188@ = 2
gosub @RIOT2_40912
143@ = 2

:RIOT2_4028
if 
  143@ == 2
goto_if_false @RIOT2_4259
if 
  185@ == 0
goto_if_false @RIOT2_4259
set_fixed_camera_position 1784.5 {y} -1967.7 {z} 14.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1781.4 {y} -1973.5 {z} 14.3 {switchStyle} SwitchType.JumpCut
task_go_straight_to_coord $scplayer {x} 1782.3 {y} -1972.8 {z} 13.1 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char 36@ {target} $scplayer
task_go_straight_to_coord 34@ {x} 1783.8 {y} -1972.4 {z} 13.1 {speed} MoveState.Walk {time} -1
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1783.3 {y} -1973.0 {z} 13.1 {speed} MoveState.Walk {time} -1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
185@ = 4
186@ = 2
188@ = 4
gosub @RIOT2_40912
TIMERA = 0
143@ = 3

:RIOT2_4259
if 
  143@ == 3
goto_if_false @RIOT2_4367
if 
  185@ == 0
goto_if_false @RIOT2_4367
268@ = open_sequence_task 
task_play_anim -1 {animationName} "PRTIAL_GNGTLKD" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
143@ = 4

:RIOT2_4367
if 
  143@ == 4
goto_if_false @RIOT2_4586
if 
  185@ == 0
goto_if_false @RIOT2_4586
$task_status = get_script_task_status $cesar {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_4586
clear_char_tasks 34@
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_play_anim -1 {animationName} "PRTIAL_GNGTLKC" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PRTIAL_GNGTLKE" {animationFile} "GANGS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
185@ = 4
186@ = 4
188@ = 5
gosub @RIOT2_40912
143@ = 5

:RIOT2_4586
if 
  143@ == 5
goto_if_false @RIOT2_4636
if 
  185@ == 0
goto_if_false @RIOT2_4636
TIMERA = 0
143@ = 6

:RIOT2_4636
if 
  143@ == 6
goto_if_false @RIOT2_5228
if 
  TIMERA > 1000
goto_if_false @RIOT2_5228
do_fade 500 {direction} Fade.Out

:RIOT2_4680
if 
  get_fading_status 
goto_if_false @RIOT2_4704
wait 0
goto @RIOT2_4680

:RIOT2_4704
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_4736
goto @RIOT2_30241

:RIOT2_4736
clear_area 1793.8 {y} -1970.6 {z} 12.5 {radius} 30.0 {clearParticles} True
clear_char_tasks $scplayer
set_char_coordinates $scplayer {x} 1789.5 {y} -1968.5 {z} 12.5
set_char_heading $scplayer {heading} 234.3
task_go_straight_to_coord $scplayer {x} 1798.2 {y} -1974.4 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks $cesar
set_char_coordinates $cesar {x} 1789.0 {y} -1970.6 {z} 12.5
set_char_heading $cesar {heading} 231.5
task_go_straight_to_coord $cesar {x} 1794.0 {y} -1973.5 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_coordinates 35@ {x} 1789.3 {y} -1967.4 {z} 12.5
set_char_heading 35@ {heading} 231.5
task_go_straight_to_coord 35@ {x} 1796.3 {y} -1970.7 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_coordinates 36@ {x} 1787.4 {y} -1967.2 {z} 12.5
set_char_heading 36@ {heading} 234.5
task_go_straight_to_coord 36@ {x} 1792.9 {y} -1972.3 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_coordinates 34@ {x} 1786.3 {y} -1966.7 {z} 12.5
set_char_heading 34@ {heading} 251.5
task_go_straight_to_coord 34@ {x} 1793.8 {y} -1970.6 {z} 12.5 {speed} MoveState.Walk {time} -1
if 
  150@ == 0
goto_if_false @RIOT2_5072
gosub @RIOT2_31232
150@ = 1

:RIOT2_5072
set_fixed_camera_position 1788.0 {y} -1968.0 {z} 14.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1799.5 {y} -1973.8 {z} 13.6 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_5130
if 
  get_fading_status 
goto_if_false @RIOT2_5154
wait 0
goto @RIOT2_5130

:RIOT2_5154
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_5186
goto @RIOT2_30241

:RIOT2_5186
185@ = 4
186@ = 5
188@ = 6
gosub @RIOT2_40912
TIMERA = 0
143@ = 7

:RIOT2_5228
if 
  143@ == 7
goto_if_false @RIOT2_5376
if 
  185@ == 0
goto_if_false @RIOT2_5376
if 
  TIMERA > 4000
goto_if_false @RIOT2_5376
185@ = 4
186@ = 8
188@ = 10
gosub @RIOT2_40912
set_fixed_camera_position 1823.1 {y} -1997.4 {z} 13.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1829.3 {y} -2003.7 {z} 14.4 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 8

:RIOT2_5376
if 
  143@ == 8
goto_if_false @RIOT2_5914
if 
  not is_char_dead 38@
goto_if_false @RIOT2_5675
if 
  is_object_attached 88@
goto_if_false @RIOT2_5637
if 
  is_char_playing_anim 38@ {animationName} "BBALL_IDLELOOP"
goto_if_false @RIOT2_5630
183@ = get_char_anim_current_time 38@ {animationName} "BBALL_IDLELOOP"
if 
  is_object_playing_anim 88@ {animationName} "BBALL_IDLELOOP_O"
goto_if_false @RIOT2_5549
set_object_anim_current_time 88@ {animationName} "BBALL_IDLELOOP_O" {time} 183@
goto @RIOT2_5630

:RIOT2_5549
if 
play_object_anim 88@ {animationName} "BBALL_IDLELOOP_O" {animationFile} "BSKTBALL" {frameDelta} 10000.0 {lockF} False {loop} False
goto_if_false @RIOT2_5630
set_object_anim_speed 88@ {animationName} "BBALL_IDLELOOP_O" {speed} 0.0

:RIOT2_5630
goto @RIOT2_5675

:RIOT2_5637
attach_object_to_char 88@ {handle} 38@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:RIOT2_5675
if 
  185@ == 0
goto_if_false @RIOT2_5914
if 
  TIMERA > 4000
goto_if_false @RIOT2_5914
set_fixed_camera_position 1827.4 {y} -1998.7 {z} 13.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1830.2 {y} -1995.2 {z} 13.4 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 42@
goto_if_false @RIOT2_5872
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1831.1 {y} -1995.9 {z} 12.6 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 180.0
task_play_anim -1 {animationName} "M_SMK_IN" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 42@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_5872
185@ = 4
186@ = 10
188@ = 12
gosub @RIOT2_40912
TIMERA = 0
143@ = 9

:RIOT2_5914
if 
  143@ == 9
goto_if_false @RIOT2_6797
if 
  185@ == 0
goto_if_false @RIOT2_6797
if 
  TIMERA > 4000
goto_if_false @RIOT2_6797
if 
  185@ == 0
goto_if_false @RIOT2_6797
144@ = 0

:RIOT2_5994
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6028
goto @RIOT2_30241

:RIOT2_6028
if 
  144@ == 1
goto_if_false @RIOT2_6445
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_6070
if 
  get_fading_status 
goto_if_false @RIOT2_6094
wait 0
goto @RIOT2_6070

:RIOT2_6094
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6126
goto @RIOT2_30241

:RIOT2_6126
if 
  150@ == 0
goto_if_false @RIOT2_6158
gosub @RIOT2_31232
150@ = 1

:RIOT2_6158
if 
  not is_char_dead 42@
goto_if_false @RIOT2_6270
clear_char_tasks_immediately 42@
set_char_coordinates 42@ {x} 1831.1 {y} -1995.9 {z} 12.6
set_char_heading 42@ {heading} 180.0
268@ = open_sequence_task 
task_play_anim -1 {animationName} "M_SMK_IN" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 42@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_6270
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1793.8 {y} -1970.6 {z} 12.5
set_char_heading $scplayer {heading} 234.3
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1792.9 {y} -1972.3 {z} 12.5
set_char_heading $cesar {heading} 231.5
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1794.8 {y} -1969.8 {z} 12.5
set_char_heading 35@ {heading} 231.5
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1791.8 {y} -1971.1 {z} 12.5
set_char_heading 36@ {heading} 234.5
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1792.5 {y} -1970.4 {z} 12.5
set_char_heading 34@ {heading} 251.5

:RIOT2_6445
delete_object 88@
mark_model_as_no_longer_needed #BBALL_INGAME
if 
  not is_char_dead 38@
goto_if_false @RIOT2_6486
give_weapon_to_char 38@ {weaponType} WeaponType.Tec9 {ammo} 3000
clear_char_tasks_immediately 38@

:RIOT2_6486
if 
  not is_char_dead 39@
goto_if_false @RIOT2_6507
clear_char_tasks_immediately 38@

:RIOT2_6507
if 
  not is_char_dead 38@
goto_if_false @RIOT2_6563
if 
  not is_char_dead 39@
goto_if_false @RIOT2_6563
task_chat_with_char 38@ {other} 39@ {leadSpeaker} True {_p4} 1
task_chat_with_char 39@ {other} 38@ {leadSpeaker} False {_p4} 1

:RIOT2_6563
if 
  not is_char_dead 42@
goto_if_false @RIOT2_6589
give_weapon_to_char 42@ {weaponType} WeaponType.Tec9 {ammo} 3000

:RIOT2_6589
set_char_decision_maker 35@ {handleOrTemplate} 265@
set_char_decision_maker 34@ {handleOrTemplate} 265@
set_char_decision_maker 36@ {handleOrTemplate} 265@
make_player_gang_reappear 
set_gunshot_sense_range_for_riot2 15.0
remove_animation "GANGS"
shut_all_chars_up False
remove_blip 89@
89@ = add_blip_for_char $cesar
set_blip_as_friendly 89@ {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
switch_widescreen False
make_player_gang_reappear 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
print_now 'R2_03' {time} 7000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_6776
do_fade 500 {direction} Fade.In

:RIOT2_6720
if 
  get_fading_status 
goto_if_false @RIOT2_6744
wait 0
goto @RIOT2_6720

:RIOT2_6744
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_6776
goto @RIOT2_30241

:RIOT2_6776
143@ = 0
142@ = 2
TIMERB = 0

:RIOT2_6797
if 
  142@ == 2
goto_if_false @RIOT2_13879
if 
  150@ == 1
goto_if_false @RIOT2_7103
if 
  6 > 151@
goto_if_false @RIOT2_7096
if 
  not is_char_dead 37@(151@,6i)
goto_if_false @RIOT2_7075
if 
  has_char_spotted_char 37@(151@,6i) {target} $scplayer
goto_if_false @RIOT2_7031
if 
  not is_char_dead 40@
goto_if_false @RIOT2_6959
268@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 1.5 {heading} 0.0
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 40@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_6959
if 
  not is_char_dead 41@
goto_if_false @RIOT2_7024
268@ = open_sequence_task 
task_goto_char_offset -1 {target} $scplayer {time} -1 {radius} 3.0 {heading} 0.0
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 41@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_7024
150@ = 3

:RIOT2_7031
164@ = get_char_health 37@(151@,6i)
if 
  100 > 164@
goto_if_false @RIOT2_7068
150@ = 4

:RIOT2_7068
goto @RIOT2_7082

:RIOT2_7075
150@ = 4

:RIOT2_7082
151@ += 1
goto @RIOT2_7103

:RIOT2_7096
151@ = 0

:RIOT2_7103
if 
  150@ == 3
goto_if_false @RIOT2_7303
if 
  6 > 151@
goto_if_false @RIOT2_7296
if 
  not is_char_dead 37@(151@,6i)
goto_if_false @RIOT2_7275
164@ = get_char_health 37@(151@,6i)
if 
  100 > 164@
goto_if_false @RIOT2_7196
150@ = 4

:RIOT2_7196
if 
  not is_char_dead 37@
goto_if_false @RIOT2_7238
if 
  has_char_spotted_char 37@ {target} $scplayer
goto_if_false @RIOT2_7238
150@ = 4

:RIOT2_7238
if 
  is_player_targetting_char $player1 {handle} 37@(151@,6i)
goto_if_false @RIOT2_7268
150@ = 4

:RIOT2_7268
goto @RIOT2_7282

:RIOT2_7275
150@ = 4

:RIOT2_7282
151@ += 1
goto @RIOT2_7303

:RIOT2_7296
151@ = 0

:RIOT2_7303
if 
  150@ == 4
goto_if_false @RIOT2_7421
if 
  185@ == 0
goto_if_false @RIOT2_7414
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_7414
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_7414
185@ = 5
186@ = 11
188@ = 12
gosub @RIOT2_40912

:RIOT2_7414
150@ = 5

:RIOT2_7421
if 
  150@ > 3
goto_if_false @RIOT2_7658
if or
  158@ == 0
  161@ == 0
  152@ == 0
  155@ == 0
goto_if_false @RIOT2_7526
if 
  not is_char_dead 37@
goto_if_false @RIOT2_7526
if 
  149@ == 2
goto_if_false @RIOT2_7519
149@ = 0

:RIOT2_7519
gosub @RIOT2_32036

:RIOT2_7526
if 
  158@ > 0
goto_if_false @RIOT2_7658
if 
  161@ > 0
goto_if_false @RIOT2_7658
if 
  152@ > 0
goto_if_false @RIOT2_7658
if 
  155@ > 0
goto_if_false @RIOT2_7658
if 
  not is_char_dead 37@
goto_if_false @RIOT2_7658
$task_status = get_script_task_status 37@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_7658
task_kill_char_on_foot 37@ {target} $scplayer
149@ = 3

:RIOT2_7658
if 
  150@ == 5
goto_if_false @RIOT2_7908
if 
  is_char_dead 37@
goto_if_false @RIOT2_7908
if 
  is_char_dead 38@
goto_if_false @RIOT2_7908
if 
  is_char_dead 39@
goto_if_false @RIOT2_7908
if 
  is_char_dead 40@
goto_if_false @RIOT2_7908
if 
  is_char_dead 41@
goto_if_false @RIOT2_7908
if 
  is_char_dead 42@
goto_if_false @RIOT2_7908
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
if and
  158@ == 0
  161@ == 0
  152@ == 0
  155@ == 0
goto_if_false @RIOT2_7878
158@ = 1

:RIOT2_7878
remove_animation "BSKTBALL"
remove_animation "SMOKING"
150@ = 6

:RIOT2_7908
if 
  6 > 150@
goto_if_false @RIOT2_8082
if 
  is_char_dead 37@
goto_if_false @RIOT2_7952
remove_blip 96@
mark_char_as_no_longer_needed 37@

:RIOT2_7952
if 
  is_char_dead 38@
goto_if_false @RIOT2_7978
remove_blip 97@
mark_char_as_no_longer_needed 38@

:RIOT2_7978
if 
  is_char_dead 39@
goto_if_false @RIOT2_8004
remove_blip 98@
mark_char_as_no_longer_needed 39@

:RIOT2_8004
if 
  is_char_dead 40@
goto_if_false @RIOT2_8030
remove_blip 99@
mark_char_as_no_longer_needed 40@

:RIOT2_8030
if 
  is_char_dead 41@
goto_if_false @RIOT2_8056
remove_blip 100@
mark_char_as_no_longer_needed 41@

:RIOT2_8056
if 
  is_char_dead 42@
goto_if_false @RIOT2_8082
remove_blip 101@
mark_char_as_no_longer_needed 42@

:RIOT2_8082
if 
  152@ == 1
goto_if_false @RIOT2_8121
gosub @RIOT2_32547
171@ = 0
152@ = 2

:RIOT2_8121
if 
  152@ == 2
goto_if_false @RIOT2_8198
if 
  is_char_dead 43@
goto_if_false @RIOT2_8198
if 
  is_char_dead 44@
goto_if_false @RIOT2_8198
remove_blip 102@
mark_char_as_no_longer_needed 43@
remove_blip 103@
mark_char_as_no_longer_needed 44@
152@ = 3

:RIOT2_8198
if 
  3 > 152@
goto_if_false @RIOT2_8268
if 
  is_char_dead 43@
goto_if_false @RIOT2_8242
remove_blip 102@
mark_char_as_no_longer_needed 43@

:RIOT2_8242
if 
  is_char_dead 44@
goto_if_false @RIOT2_8268
remove_blip 103@
mark_char_as_no_longer_needed 44@

:RIOT2_8268
if 
  152@ > 0
goto_if_false @RIOT2_8351
if 
  153@ == 0
goto_if_false @RIOT2_8351
if 
  171@ > 500
goto_if_false @RIOT2_8351
153@ = 1
gosub @RIOT2_32547
153@ = 2
171@ = 0

:RIOT2_8351
if 
  153@ == 2
goto_if_false @RIOT2_8428
if 
  is_char_dead 45@
goto_if_false @RIOT2_8428
if 
  is_char_dead 46@
goto_if_false @RIOT2_8428
remove_blip 104@
mark_char_as_no_longer_needed 45@
remove_blip 105@
mark_char_as_no_longer_needed 46@
153@ = 3

:RIOT2_8428
if 
  3 > 153@
goto_if_false @RIOT2_8498
if 
  is_char_dead 45@
goto_if_false @RIOT2_8472
remove_blip 104@
mark_char_as_no_longer_needed 45@

:RIOT2_8472
if 
  is_char_dead 46@
goto_if_false @RIOT2_8498
remove_blip 105@
mark_char_as_no_longer_needed 46@

:RIOT2_8498
if 
  152@ > 0
goto_if_false @RIOT2_8599
if 
  153@ > 0
goto_if_false @RIOT2_8599
if 
  154@ == 0
goto_if_false @RIOT2_8599
if 
  171@ > 500
goto_if_false @RIOT2_8599
154@ = 1
gosub @RIOT2_32547
154@ = 2
171@ = 0

:RIOT2_8599
if 
  154@ == 2
goto_if_false @RIOT2_8676
if 
  is_char_dead 47@
goto_if_false @RIOT2_8676
if 
  is_char_dead 48@
goto_if_false @RIOT2_8676
remove_blip 106@
mark_char_as_no_longer_needed 47@
remove_blip 107@
mark_char_as_no_longer_needed 48@
154@ = 3

:RIOT2_8676
if 
  3 > 154@
goto_if_false @RIOT2_8746
if 
  is_char_dead 47@
goto_if_false @RIOT2_8720
remove_blip 106@
mark_char_as_no_longer_needed 47@

:RIOT2_8720
if 
  is_char_dead 48@
goto_if_false @RIOT2_8746
remove_blip 107@
mark_char_as_no_longer_needed 48@

:RIOT2_8746
if 
  152@ == 3
goto_if_false @RIOT2_8970
if 
  153@ == 3
goto_if_false @RIOT2_8970
if 
  154@ == 3
goto_if_false @RIOT2_8970
if 
  155@ == 0
goto_if_false @RIOT2_8832
155@ = 1
goto @RIOT2_8889

:RIOT2_8832
if 
  158@ == 0
goto_if_false @RIOT2_8864
158@ = 1
goto @RIOT2_8889

:RIOT2_8864
if 
  161@ == 0
goto_if_false @RIOT2_8889
161@ = 1

:RIOT2_8889
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
remove_blip 106@
remove_blip 107@
152@ = 4
153@ = 4
154@ = 4

:RIOT2_8970
if 
  155@ == 1
goto_if_false @RIOT2_9009
gosub @RIOT2_33875
170@ = 0
155@ = 2

:RIOT2_9009
if 
  155@ == 2
goto_if_false @RIOT2_9086
if 
  is_char_dead 49@
goto_if_false @RIOT2_9086
if 
  is_char_dead 50@
goto_if_false @RIOT2_9086
remove_blip 108@
mark_char_as_no_longer_needed 49@
remove_blip 109@
mark_char_as_no_longer_needed 50@
155@ = 3

:RIOT2_9086
if 
  3 > 155@
goto_if_false @RIOT2_9156
if 
  is_char_dead 49@
goto_if_false @RIOT2_9130
remove_blip 108@
mark_char_as_no_longer_needed 49@

:RIOT2_9130
if 
  is_char_dead 50@
goto_if_false @RIOT2_9156
remove_blip 109@
mark_char_as_no_longer_needed 50@

:RIOT2_9156
if 
  155@ > 0
goto_if_false @RIOT2_9239
if 
  156@ == 0
goto_if_false @RIOT2_9239
if 
  170@ > 500
goto_if_false @RIOT2_9239
156@ = 1
gosub @RIOT2_33875
156@ = 2
170@ = 0

:RIOT2_9239
if 
  156@ == 2
goto_if_false @RIOT2_9316
if 
  is_char_dead 51@
goto_if_false @RIOT2_9316
if 
  is_char_dead 52@
goto_if_false @RIOT2_9316
remove_blip 110@
mark_char_as_no_longer_needed 51@
remove_blip 111@
mark_char_as_no_longer_needed 52@
156@ = 3

:RIOT2_9316
if 
  3 > 156@
goto_if_false @RIOT2_9386
if 
  is_char_dead 51@
goto_if_false @RIOT2_9360
remove_blip 110@
mark_char_as_no_longer_needed 51@

:RIOT2_9360
if 
  is_char_dead 52@
goto_if_false @RIOT2_9386
remove_blip 111@
mark_char_as_no_longer_needed 52@

:RIOT2_9386
if 
  155@ > 0
goto_if_false @RIOT2_9487
if 
  156@ > 0
goto_if_false @RIOT2_9487
if 
  157@ == 0
goto_if_false @RIOT2_9487
if 
  170@ > 500
goto_if_false @RIOT2_9487
157@ = 1
gosub @RIOT2_33875
157@ = 2
170@ = 0

:RIOT2_9487
if 
  157@ == 2
goto_if_false @RIOT2_9564
if 
  is_char_dead 53@
goto_if_false @RIOT2_9564
if 
  is_char_dead 54@
goto_if_false @RIOT2_9564
remove_blip 112@
mark_char_as_no_longer_needed 53@
remove_blip 113@
mark_char_as_no_longer_needed 54@
157@ = 3

:RIOT2_9564
if 
  3 > 157@
goto_if_false @RIOT2_9634
if 
  is_char_dead 53@
goto_if_false @RIOT2_9608
remove_blip 112@
mark_char_as_no_longer_needed 53@

:RIOT2_9608
if 
  is_char_dead 54@
goto_if_false @RIOT2_9634
remove_blip 113@
mark_char_as_no_longer_needed 54@

:RIOT2_9634
if 
  155@ == 3
goto_if_false @RIOT2_9858
if 
  156@ == 3
goto_if_false @RIOT2_9858
if 
  157@ == 3
goto_if_false @RIOT2_9858
if 
  161@ == 0
goto_if_false @RIOT2_9720
161@ = 1
goto @RIOT2_9777

:RIOT2_9720
if 
  152@ == 0
goto_if_false @RIOT2_9752
152@ = 1
goto @RIOT2_9777

:RIOT2_9752
if 
  158@ == 0
goto_if_false @RIOT2_9777
158@ = 1

:RIOT2_9777
mark_char_as_no_longer_needed 49@
mark_char_as_no_longer_needed 50@
mark_char_as_no_longer_needed 51@
mark_char_as_no_longer_needed 52@
mark_char_as_no_longer_needed 53@
mark_char_as_no_longer_needed 54@
remove_blip 108@
remove_blip 109@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
155@ = 4
156@ = 4
157@ = 4

:RIOT2_9858
if 
  158@ == 1
goto_if_false @RIOT2_9897
gosub @RIOT2_35203
173@ = 0
158@ = 2

:RIOT2_9897
if 
  158@ == 2
goto_if_false @RIOT2_9974
if 
  is_char_dead 55@
goto_if_false @RIOT2_9974
if 
  is_char_dead 56@
goto_if_false @RIOT2_9974
remove_blip 114@
mark_char_as_no_longer_needed 55@
remove_blip 115@
mark_char_as_no_longer_needed 56@
158@ = 3

:RIOT2_9974
if 
  3 > 158@
goto_if_false @RIOT2_10044
if 
  is_char_dead 55@
goto_if_false @RIOT2_10018
remove_blip 114@
mark_char_as_no_longer_needed 55@

:RIOT2_10018
if 
  is_char_dead 56@
goto_if_false @RIOT2_10044
remove_blip 115@
mark_char_as_no_longer_needed 56@

:RIOT2_10044
if 
  158@ > 0
goto_if_false @RIOT2_10127
if 
  159@ == 0
goto_if_false @RIOT2_10127
if 
  173@ > 500
goto_if_false @RIOT2_10127
159@ = 1
gosub @RIOT2_35203
159@ = 2
173@ = 0

:RIOT2_10127
if 
  159@ == 2
goto_if_false @RIOT2_10204
if 
  is_char_dead 57@
goto_if_false @RIOT2_10204
if 
  is_char_dead 58@
goto_if_false @RIOT2_10204
remove_blip 116@
mark_char_as_no_longer_needed 57@
remove_blip 117@
mark_char_as_no_longer_needed 58@
159@ = 3

:RIOT2_10204
if 
  3 > 159@
goto_if_false @RIOT2_10274
if 
  is_char_dead 57@
goto_if_false @RIOT2_10248
remove_blip 116@
mark_char_as_no_longer_needed 57@

:RIOT2_10248
if 
  is_char_dead 58@
goto_if_false @RIOT2_10274
remove_blip 117@
mark_char_as_no_longer_needed 58@

:RIOT2_10274
if 
  158@ > 0
goto_if_false @RIOT2_10375
if 
  159@ > 0
goto_if_false @RIOT2_10375
if 
  160@ == 0
goto_if_false @RIOT2_10375
if 
  173@ > 500
goto_if_false @RIOT2_10375
160@ = 1
gosub @RIOT2_35203
160@ = 2
173@ = 0

:RIOT2_10375
if 
  160@ == 2
goto_if_false @RIOT2_10452
if 
  is_char_dead 59@
goto_if_false @RIOT2_10452
if 
  is_char_dead 60@
goto_if_false @RIOT2_10452
remove_blip 118@
mark_char_as_no_longer_needed 59@
remove_blip 119@
mark_char_as_no_longer_needed 60@
160@ = 3

:RIOT2_10452
if 
  3 > 160@
goto_if_false @RIOT2_10522
if 
  is_char_dead 59@
goto_if_false @RIOT2_10496
remove_blip 118@
mark_char_as_no_longer_needed 59@

:RIOT2_10496
if 
  is_char_dead 60@
goto_if_false @RIOT2_10522
remove_blip 119@
mark_char_as_no_longer_needed 60@

:RIOT2_10522
if 
  158@ == 3
goto_if_false @RIOT2_10746
if 
  159@ == 3
goto_if_false @RIOT2_10746
if 
  160@ == 3
goto_if_false @RIOT2_10746
if 
  152@ == 0
goto_if_false @RIOT2_10608
152@ = 1
goto @RIOT2_10665

:RIOT2_10608
if 
  161@ == 0
goto_if_false @RIOT2_10640
161@ = 1
goto @RIOT2_10665

:RIOT2_10640
if 
  155@ == 0
goto_if_false @RIOT2_10665
155@ = 1

:RIOT2_10665
mark_char_as_no_longer_needed 55@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 57@
mark_char_as_no_longer_needed 58@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 60@
remove_blip 114@
remove_blip 115@
remove_blip 116@
remove_blip 117@
remove_blip 118@
remove_blip 119@
158@ = 4
159@ = 4
160@ = 4

:RIOT2_10746
if 
  161@ == 1
goto_if_false @RIOT2_10785
gosub @RIOT2_36531
172@ = 0
161@ = 2

:RIOT2_10785
if 
  161@ == 2
goto_if_false @RIOT2_10862
if 
  is_char_dead 61@
goto_if_false @RIOT2_10862
if 
  is_char_dead 62@
goto_if_false @RIOT2_10862
remove_blip 120@
mark_char_as_no_longer_needed 61@
remove_blip 121@
mark_char_as_no_longer_needed 62@
161@ = 3

:RIOT2_10862
if 
  3 > 161@
goto_if_false @RIOT2_10932
if 
  is_char_dead 61@
goto_if_false @RIOT2_10906
remove_blip 120@
mark_char_as_no_longer_needed 61@

:RIOT2_10906
if 
  is_char_dead 62@
goto_if_false @RIOT2_10932
remove_blip 121@
mark_char_as_no_longer_needed 62@

:RIOT2_10932
if 
  161@ > 0
goto_if_false @RIOT2_11015
if 
  162@ == 0
goto_if_false @RIOT2_11015
if 
  172@ > 500
goto_if_false @RIOT2_11015
162@ = 1
gosub @RIOT2_36531
162@ = 2
172@ = 0

:RIOT2_11015
if 
  162@ == 2
goto_if_false @RIOT2_11092
if 
  is_char_dead 63@
goto_if_false @RIOT2_11092
if 
  is_char_dead 64@
goto_if_false @RIOT2_11092
remove_blip 122@
mark_char_as_no_longer_needed 63@
remove_blip 123@
mark_char_as_no_longer_needed 64@
162@ = 3

:RIOT2_11092
if 
  3 > 162@
goto_if_false @RIOT2_11162
if 
  is_char_dead 63@
goto_if_false @RIOT2_11136
remove_blip 122@
mark_char_as_no_longer_needed 63@

:RIOT2_11136
if 
  is_char_dead 64@
goto_if_false @RIOT2_11162
remove_blip 123@
mark_char_as_no_longer_needed 64@

:RIOT2_11162
if 
  161@ > 0
goto_if_false @RIOT2_11263
if 
  162@ > 0
goto_if_false @RIOT2_11263
if 
  163@ == 0
goto_if_false @RIOT2_11263
if 
  172@ > 500
goto_if_false @RIOT2_11263
163@ = 1
gosub @RIOT2_36531
163@ = 2
172@ = 0

:RIOT2_11263
if 
  163@ == 2
goto_if_false @RIOT2_11340
if 
  is_char_dead 65@
goto_if_false @RIOT2_11340
if 
  is_char_dead 66@
goto_if_false @RIOT2_11340
remove_blip 124@
mark_char_as_no_longer_needed 65@
remove_blip 125@
mark_char_as_no_longer_needed 66@
163@ = 3

:RIOT2_11340
if 
  3 > 163@
goto_if_false @RIOT2_11410
if 
  is_char_dead 65@
goto_if_false @RIOT2_11384
remove_blip 124@
mark_char_as_no_longer_needed 65@

:RIOT2_11384
if 
  is_char_dead 66@
goto_if_false @RIOT2_11410
remove_blip 125@
mark_char_as_no_longer_needed 66@

:RIOT2_11410
if 
  161@ == 3
goto_if_false @RIOT2_11634
if 
  162@ == 3
goto_if_false @RIOT2_11634
if 
  163@ == 3
goto_if_false @RIOT2_11634
if 
  158@ == 0
goto_if_false @RIOT2_11496
158@ = 1
goto @RIOT2_11553

:RIOT2_11496
if 
  155@ == 0
goto_if_false @RIOT2_11528
155@ = 1
goto @RIOT2_11553

:RIOT2_11528
if 
  152@ == 0
goto_if_false @RIOT2_11553
152@ = 1

:RIOT2_11553
mark_char_as_no_longer_needed 61@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 63@
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
161@ = 4
162@ = 4
163@ = 4

:RIOT2_11634
if 
  187@ == 0
goto_if_false @RIOT2_11796
if 
  6 > 165@
goto_if_false @RIOT2_11796
if 
  TIMERB > 7000
goto_if_false @RIOT2_11796
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_11796
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_11796
if 
  185@ == 0
goto_if_false @RIOT2_11796
shut_char_up_for_scripted_speech $cesar {state} True
185@ = 5
186@ = 3
188@ = 4
gosub @RIOT2_40912
187@ = 1

:RIOT2_11796
if 
  165@ == 0
goto_if_false @RIOT2_11937
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1824.9 {y} -1986.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1822.3 {y} -1986.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1820.9 {y} -1984.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1824.5 {y} -1984.0 {z} 12.6 {speed} MoveState.Walk {time} -2
165@ = 1

:RIOT2_11937
if 
  165@ == 1
goto_if_false @RIOT2_12485
if 
  150@ == 6
goto_if_false @RIOT2_12189
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1856.6 {y} -2008.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1859.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1853.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1854.8 {y} -2005.5 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12182
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12182
if 
  185@ == 0
goto_if_false @RIOT2_12182
185@ = 5
186@ = 4
188@ = 5
gosub @RIOT2_40912

:RIOT2_12182
165@ = 2

:RIOT2_12189
if 
  is_char_dead 38@
goto_if_false @RIOT2_12485
if 
  is_char_dead 39@
goto_if_false @RIOT2_12485
if 
  is_char_dead 40@
goto_if_false @RIOT2_12485
if 
  is_char_dead 41@
goto_if_false @RIOT2_12485
if 
  is_char_dead 42@
goto_if_false @RIOT2_12485
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1856.6 {y} -2008.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1859.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1853.6 {y} -2007.5 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1854.8 {y} -2005.5 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12478
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12478
if 
  185@ == 0
goto_if_false @RIOT2_12478
185@ = 5
186@ = 5
188@ = 6
gosub @RIOT2_40912

:RIOT2_12478
165@ = 2

:RIOT2_12485
if 
  165@ == 2
goto_if_false @RIOT2_12737
if 
  158@ == 4
goto_if_false @RIOT2_12737
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1858.8 {y} -1993.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1858.8 {y} -1991.6 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1858.8 {y} -1989.7 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1858.8 {y} -1987.7 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12730
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12730
if 
  185@ == 0
goto_if_false @RIOT2_12730
185@ = 5
186@ = 6
188@ = 7
gosub @RIOT2_40912

:RIOT2_12730
165@ = 3

:RIOT2_12737
if 
  165@ == 3
goto_if_false @RIOT2_12989
if 
  152@ == 4
goto_if_false @RIOT2_12989
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1886.2 {y} -1995.2 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1886.2 {y} -1993.2 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1886.2 {y} -1991.2 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1886.2 {y} -1989.2 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_12982
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_12982
if 
  185@ == 0
goto_if_false @RIOT2_12982
185@ = 5
186@ = 7
188@ = 8
gosub @RIOT2_40912

:RIOT2_12982
165@ = 4

:RIOT2_12989
if 
  165@ == 4
goto_if_false @RIOT2_13241
if 
  155@ == 4
goto_if_false @RIOT2_13241
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
task_follow_path_nodes_to_coord 34@ {x} 1903.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 35@ {x} 1905.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord 36@ {x} 1907.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
task_follow_path_nodes_to_coord $cesar {x} 1909.1 {y} -2009.3 {z} 12.6 {speed} MoveState.Walk {time} -2
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_13234
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_13234
if 
  185@ == 0
goto_if_false @RIOT2_13234
185@ = 5
186@ = 8
188@ = 9
gosub @RIOT2_40912

:RIOT2_13234
165@ = 5

:RIOT2_13241
if 
  165@ == 5
goto_if_false @RIOT2_13723
if 
  161@ == 4
goto_if_false @RIOT2_13723
clear_char_tasks 34@
clear_char_tasks 35@
clear_char_tasks 36@
clear_char_tasks $cesar
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1916.8 {y} -2059.2 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1921.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1914.5 {y} -2058.3999 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1922.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1918.1 {y} -2061.8 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1923.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 1919.8 {y} -2059.6001 {z} 12.4 {speed} MoveState.Run {time} -2
task_go_straight_to_coord -1 {x} 1924.6 {y} -2077.1001 {z} 12.5 {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} 5.1
close_sequence_task 268@
perform_sequence_task 36@ {sequence} 268@
clear_sequence_task 268@
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_13684
if 
  locate_char_any_means_char_2d $scplayer {target} $cesar {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @RIOT2_13684
185@ = 5
186@ = 0
188@ = 1
gosub @RIOT2_40912

:RIOT2_13684
remove_blip 89@
89@ = add_blip_for_coord 1922.8 {y} -2075.0 {z} 12.5
187@ = 0
165@ = 6

:RIOT2_13723
if 
  165@ == 6
goto_if_false @RIOT2_13879
if 
  187@ == 0
goto_if_false @RIOT2_13800
if 
  185@ == 0
goto_if_false @RIOT2_13800
print_now 'R2_04' {time} 11000 {flag} 1
187@ = 1

:RIOT2_13800
if 
  locate_char_on_foot_3d $scplayer {x} 1922.8 {y} -2075.0 {z} 12.5 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} True
goto_if_false @RIOT2_13879
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
143@ = 0
142@ = 3

:RIOT2_13879
if 
  142@ == 3
goto_if_false @RIOT2_19283
if 
  143@ == 0
goto_if_false @RIOT2_15311
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_13939
if 
  get_fading_status 
goto_if_false @RIOT2_13963
wait 0
goto @RIOT2_13939

:RIOT2_13963
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_13995
goto @RIOT2_30241

:RIOT2_13995
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
shut_char_up_for_scripted_speech $cesar {state} False
set_car_density_multiplier 0.0
if 
  not is_garage_closed 'DUF_LAS'
goto_if_false @RIOT2_14066
close_garage 'DUF_LAS'

:RIOT2_14066
request_model 466
request_model 359
request_animation "CAR"
request_animation "SWAT"
request_animation "CRACK"
request_animation "CASINO"
load_all_models_now 
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_14158
goto @RIOT2_30241

:RIOT2_14158
clear_area 1897.0 {y} -2103.8 {z} 12.3 {radius} 300.0 {clearParticles} True
67@ = create_car 466 {x} 1897.0 {y} -2103.8 {z} 12.3
set_car_heading 67@ {heading} 2.4
freeze_car_position 67@ {state} True
lock_car_doors 67@ {lockStatus} CarLock.Locked
set_car_proofs 67@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
68@ = create_car 466 {x} 1857.3 {y} -2101.3 {z} 12.3
freeze_car_position 68@ {state} True
set_car_heading 68@ {heading} 359.7
lock_car_doors 68@ {lockStatus} CarLock.Locked
148@ = generate_random_int_in_range 0 {max} 2
69@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1860.9 {y} -2099.6001 {z} 12.6
set_char_heading 69@ {heading} 270.0
give_weapon_to_char 69@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 69@ {handleOrTemplate} 266@
task_play_anim 69@ {animationName} "FIXN_CAR_LOOP" {animationFile} "CAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
126@ = add_blip_for_char 69@
change_blip_scale 126@ {size} 1
set_char_accuracy 69@ {accuracy} 181@
add_armour_to_char 69@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
70@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1859.9 {y} -2102.5 {z} 12.5
set_char_heading 70@ {heading} 48.0
give_weapon_to_char 70@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 70@ {handleOrTemplate} 266@
127@ = add_blip_for_char 70@
change_blip_scale 127@ {size} 1
set_char_accuracy 70@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
71@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1855.6 {y} -2102.6001 {z} 12.5
set_char_heading 71@ {heading} 282.0
give_weapon_to_char 71@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 71@ {handleOrTemplate} 266@
task_play_anim 71@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
128@ = add_blip_for_char 71@
change_blip_scale 128@ {size} 1
set_char_accuracy 71@ {accuracy} 181@
add_armour_to_char 71@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
72@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1855.6 {y} -2099.6001 {z} 12.5
set_char_heading 72@ {heading} 282.0
give_weapon_to_char 72@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 72@ {handleOrTemplate} 266@
task_play_anim 72@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
129@ = add_blip_for_char 72@
change_blip_scale 129@ {size} 1
set_char_accuracy 72@ {accuracy} 181@
144@ = 1
skip_cutscene_start_internal @RIOT2_16263
clear_area 1918.1 {y} -2076.8999 {z} 12.5 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1918.1 {y} -2076.8999 {z} 12.5
set_char_heading $scplayer {heading} 171.1
task_go_straight_to_coord $scplayer {x} 1916.1 {y} -2093.3 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1919.1 {y} -2077.7 {z} 12.5
set_char_heading $cesar {heading} 171.5
task_go_straight_to_coord $cesar {x} 1917.1 {y} -2094.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker $cesar {handleOrTemplate} 266@
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1920.3 {y} -2075.3 {z} 12.5
set_char_heading 35@ {heading} 189.5
give_weapon_to_char 35@ {weaponType} WeaponType.RocketLauncher {ammo} 1
task_go_straight_to_coord 35@ {x} 1918.3 {y} -2091.7 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker 35@ {handleOrTemplate} 266@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1918.8 {y} -2075.3 {z} 12.5
set_char_heading 34@ {heading} 165.9
task_go_straight_to_coord 34@ {x} 1916.8 {y} -2091.7 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker 34@ {handleOrTemplate} 266@
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1919.6 {y} -2074.0 {z} 12.5
set_char_heading 36@ {heading} 173.0
task_go_straight_to_coord 36@ {x} 1917.6 {y} -2090.3999 {z} 12.5 {speed} MoveState.Walk {time} -1
set_char_decision_maker 36@ {handleOrTemplate} 266@
set_fixed_camera_position 1914.65 {y} -2087.8 {z} 13.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1917.9 {y} -2080.7 {z} 13.0 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_15213
if 
  get_fading_status 
goto_if_false @RIOT2_15237
wait 0
goto @RIOT2_15213

:RIOT2_15237
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_15269
goto @RIOT2_30241

:RIOT2_15269
185@ = 6
186@ = 0
188@ = 6
gosub @RIOT2_40912
TIMERA = 0
143@ = 1

:RIOT2_15311
if 
  143@ == 1
goto_if_false @RIOT2_15732
if 
  TIMERA > 8000
goto_if_false @RIOT2_15732
clear_area 1916.9 {y} -2101.1001 {z} 12.6 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1916.9 {y} -2101.1001 {z} 12.6
set_char_heading $scplayer {heading} 90.0
task_go_straight_to_coord $scplayer {x} 1912.4 {y} -2101.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1916.9 {y} -2102.1001 {z} 12.6
set_char_heading $cesar {heading} 90.0
task_go_straight_to_coord $cesar {x} 1912.4 {y} -2102.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1916.9 {y} -2103.1001 {z} 12.6
set_char_heading 35@ {heading} 90.0
task_go_straight_to_coord 35@ {x} 1912.4 {y} -2103.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1916.9 {y} -2100.1001 {z} 12.6
set_char_heading 36@ {heading} 90.0
task_go_straight_to_coord 36@ {x} 1912.4 {y} -2100.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1916.9 {y} -2099.1001 {z} 12.6
set_char_heading 34@ {heading} 90.0
task_go_straight_to_coord 34@ {x} 1912.4 {y} -2099.1001 {z} 12.5 {speed} MoveState.Walk {time} -1
set_fixed_camera_position 1916.5 {y} -2100.8999 {z} 12.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1906.2 {y} -2101.0 {z} 14.8 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 2

:RIOT2_15732
if 
  143@ == 2
goto_if_false @RIOT2_16201
if 
  185@ == 0
goto_if_false @RIOT2_16201
if 
  TIMERA > 4000
goto_if_false @RIOT2_16201
if 
  not is_char_dead 69@
goto_if_false @RIOT2_15886
268@ = open_sequence_task 
task_play_anim -1 {animationName} "FIXN_CAR_OUT" {animationFile} "CAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_15886
if 
  not is_char_dead 70@
goto_if_false @RIOT2_15960
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_toggle_duck -1 {state} True
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 70@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_15960
if 
  not is_char_dead 71@
goto_if_false @RIOT2_16034
268@ = open_sequence_task 
task_pause -1 {time} 700
task_stand_still -1 {time} 100
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 71@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_16034
if 
  not is_char_dead 72@
goto_if_false @RIOT2_16108
268@ = open_sequence_task 
task_pause -1 {time} 1000
task_stand_still -1 {time} 100
task_shoot_at_coord -1 {x} 1916.5 {y} -2100.8999 {z} 12.8 {time} 3000
close_sequence_task 268@
perform_sequence_task 72@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_16108
185@ = 6
186@ = 6
188@ = 7
gosub @RIOT2_40912
set_fixed_camera_position 1866.1 {y} -2101.8 {z} 13.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1849.9 {y} -2101.0 {z} 14.98 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 3

:RIOT2_16201
if 
  143@ == 3
goto_if_false @RIOT2_19283
if 
  185@ == 0
goto_if_false @RIOT2_19283
if 
  TIMERA > 4000
goto_if_false @RIOT2_19283
144@ = 0

:RIOT2_16263
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_16297
goto @RIOT2_30241

:RIOT2_16297
if 
  144@ == 1
goto_if_false @RIOT2_16654
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_16339
if 
  get_fading_status 
goto_if_false @RIOT2_16363
wait 0
goto @RIOT2_16339

:RIOT2_16363
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_16395
goto @RIOT2_30241

:RIOT2_16395
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1912.4 {y} -2101.1001 {z} 12.5
set_char_heading $scplayer {heading} 90.0
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1912.4 {y} -2102.1001 {z} 12.5
set_char_heading $cesar {heading} 90.0
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1912.4 {y} -2103.1001 {z} 12.5
set_char_heading 35@ {heading} 90.0
clear_char_tasks_immediately 36@
set_char_coordinates 36@ {x} 1912.4 {y} -2100.1001 {z} 12.5
set_char_heading 36@ {heading} 90.0
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1912.4 {y} -2099.1001 {z} 12.5
set_char_heading 34@ {heading} 90.0
if 
  not is_char_dead 69@
goto_if_false @RIOT2_16591
clear_char_tasks_immediately 69@

:RIOT2_16591
if 
  not is_char_dead 70@
goto_if_false @RIOT2_16612
clear_char_tasks_immediately 70@

:RIOT2_16612
if 
  not is_char_dead 71@
goto_if_false @RIOT2_16633
clear_char_tasks_immediately 71@

:RIOT2_16633
if 
  not is_char_dead 72@
goto_if_false @RIOT2_16654
clear_char_tasks_immediately 72@

:RIOT2_16654
set_char_stay_in_same_place $cesar {state} True
269@ = open_sequence_task 
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 10
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1871.1 {y} -2102.3 {z} 14.6 {time} 168@
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
168@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 168@
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1898.7 {y} -2102.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
clear_char_tasks_immediately 35@
set_char_coordinates 35@ {x} 1912.4 {y} -2103.1001 {z} 12.5
set_char_heading 35@ {heading} 90.0
set_char_stay_in_same_place 35@ {state} True
269@ = open_sequence_task 
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 10
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1878.7 {y} -2105.5 {z} 14.6 {time} 168@
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
168@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 168@
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1898.7 {y} -2106.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
if 
  not is_car_dead 68@
goto_if_false @RIOT2_17114
task_destroy_car -1 {vehicle} 68@

:RIOT2_17114
task_pause -1 {time} 500
task_play_anim -1 {animationName} "MANWINB" {animationFile} "CASINO" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
set_char_stay_in_same_place 34@ {state} True
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1891.2 {y} -2099.6001 {z} 14.0 {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1903.7 {y} -2096.6001 {z} 12.5 {heading} 75.0 {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1903.5 {y} -2096.6001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 75.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1894.6 {y} -2099.2 {z} 12.4 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_play_anim_non_interruptable -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_go_straight_to_coord -1 {x} 1884.6 {y} -2107.6001 {z} 12.4 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1874.9 {y} -2102.8 {z} 12.4 {speed} MoveState.Run {time} -1
task_play_anim_non_interruptable -1 {animationName} "KO_SPIN_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 36@ {sequence} 268@
clear_sequence_task 268@
if 
  not is_char_dead 69@
goto_if_false @RIOT2_18065
set_char_stay_in_same_place 69@ {state} True
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {heading} 275.0 {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@

:RIOT2_18065
if 
  not is_char_dead 70@
goto_if_false @RIOT2_18089
task_kill_char_on_foot 70@ {target} $scplayer

:RIOT2_18089
if 
  not is_char_dead 71@
goto_if_false @RIOT2_18424
set_char_stay_in_same_place 71@ {state} True
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1864.1 {y} -2107.3999 {z} 12.6 {heading} 275.0 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1864.1 {y} -2107.3999 {z} 12.6 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 71@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@

:RIOT2_18424
if 
  not is_char_dead 72@
goto_if_false @RIOT2_18448
task_kill_char_on_foot 72@ {target} $scplayer

:RIOT2_18448
148@ = generate_random_int_in_range 0 {max} 2
73@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1806.1 {y} -2121.7 {z} 12.5
set_char_heading 73@ {heading} 357.8
give_weapon_to_char 73@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 73@ {handleOrTemplate} 266@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1837.5 {y} -2102.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 73@ {sequence} 268@
clear_sequence_task 268@
130@ = add_blip_for_char 73@
change_blip_scale 130@ {size} 1
set_char_accuracy 73@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
74@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1801.5 {y} -2120.7 {z} 12.5
set_char_heading 74@ {heading} 357.8
give_weapon_to_char 74@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 74@ {handleOrTemplate} 266@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1833.8 {y} -2097.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 74@ {sequence} 268@
clear_sequence_task 268@
131@ = add_blip_for_char 74@
change_blip_scale 131@ {size} 1
set_char_accuracy 74@ {accuracy} 181@
add_armour_to_char 74@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
75@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1879.7 {y} -2094.8999 {z} 12.5
set_char_heading 75@ {heading} 180.0
give_weapon_to_char 75@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 75@ {handleOrTemplate} 266@
set_char_stay_in_same_place 75@ {state} True
set_char_accuracy 75@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
76@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1878.7 {y} -2094.8999 {z} 12.5
set_char_heading 76@ {heading} 180.0
give_weapon_to_char 76@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 76@ {handleOrTemplate} 266@
set_char_stay_in_same_place 76@ {state} True
set_char_accuracy 76@ {accuracy} 181@
add_armour_to_char 76@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
77@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1876.7 {y} -2094.8999 {z} 12.5
set_char_heading 77@ {heading} 180.0
give_weapon_to_char 77@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 77@ {handleOrTemplate} 266@
set_char_stay_in_same_place 77@ {state} True
set_char_accuracy 77@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
78@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1875.2 {y} -2094.8999 {z} 12.5
set_char_heading 78@ {heading} 180.0
give_weapon_to_char 78@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 78@ {handleOrTemplate} 266@
set_char_proofs 78@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_stay_in_same_place 78@ {state} True
set_char_accuracy 78@ {accuracy} 181@
add_armour_to_char 78@ {amount} 50
remove_blip 89@
89@ = add_blip_for_char $cesar
set_blip_as_friendly 89@ {state} True
set_gunshot_sense_range_for_riot2 -1.0
shut_all_chars_up True
remove_animation "CAR"
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'R2_05' {time} 7000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_19269
do_fade 500 {direction} Fade.In

:RIOT2_19213
if 
  get_fading_status 
goto_if_false @RIOT2_19237
wait 0
goto @RIOT2_19213

:RIOT2_19237
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_19269
goto @RIOT2_30241

:RIOT2_19269
143@ = 0
142@ = 4

:RIOT2_19283
if 
  142@ == 4
goto_if_false @RIOT2_21030
if 
  not is_char_dead 69@
goto_if_false @RIOT2_19400
if or
  is_char_in_area_2d $scplayer {leftBottomX} 1877.6 {leftBottomY} -2050.8 {rightTopX} 1815.3 {rightTopY} -2171.3999 {drawSphere} False
  has_char_been_damaged_by_char 69@ {handle} $scplayer
goto_if_false @RIOT2_19400
$task_status = get_script_task_status 69@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19400
task_kill_char_on_foot 69@ {target} $scplayer

:RIOT2_19400
if 
  not is_char_dead 71@
goto_if_false @RIOT2_19499
if or
  is_char_in_area_2d $scplayer {leftBottomX} 1872.6 {leftBottomY} -2050.8 {rightTopX} 1815.3 {rightTopY} -2171.3999 {drawSphere} False
  has_char_been_damaged_by_char 71@ {handle} $scplayer
goto_if_false @RIOT2_19499
$task_status = get_script_task_status 71@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19499
task_kill_char_on_foot 71@ {target} $scplayer

:RIOT2_19499
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_19572
180@ = get_char_health $cesar
if 
  50 > 180@
goto_if_false @RIOT2_19572
task_die_named_anim $cesar {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_19572
if 
  not is_char_dead 34@
goto_if_false @RIOT2_19645
180@ = get_char_health 34@
if 
  50 > 180@
goto_if_false @RIOT2_19645
task_die_named_anim 34@ {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_19645
if 
  143@ == 0
goto_if_false @RIOT2_19736
$task_status = get_script_task_status 36@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_19736
270@ = get_sequence_progress 36@
if 
  270@ >= 3
goto_if_false @RIOT2_19736
open_garage 'DUF_LAS'
143@ = 1

:RIOT2_19736
if 
  143@ == 1
goto_if_false @RIOT2_20402
$task_status = get_script_task_status 36@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_20402
270@ = get_sequence_progress 36@
if 
  270@ >= 5
goto_if_false @RIOT2_20402
if 
  not is_char_dead 75@
goto_if_false @RIOT2_19934
269@ = open_sequence_task 
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 269@
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_go_straight_to_coord -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 75@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
138@ = add_blip_for_char 75@
change_blip_scale 138@ {size} 1

:RIOT2_19934
if 
  not is_char_dead 76@
goto_if_false @RIOT2_20083
set_char_stay_in_same_place 76@ {state} False
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_go_straight_to_coord -1 {x} 1872.8 {y} -2096.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_play_anim_non_interruptable -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 76@ {sequence} 268@
clear_sequence_task 268@
139@ = add_blip_for_char 76@
change_blip_scale 139@ {size} 1

:RIOT2_20083
if 
  not is_char_dead 77@
goto_if_false @RIOT2_20213
set_char_stay_in_same_place 77@ {state} False
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 77@ {sequence} 268@
clear_sequence_task 268@
set_char_kinda_stay_in_same_place 77@ {state} True
140@ = add_blip_for_char 77@
change_blip_scale 140@ {size} 1

:RIOT2_20213
if 
  not is_char_dead 78@
goto_if_false @RIOT2_20358
set_char_stay_in_same_place 78@ {state} False
set_char_proofs 78@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
268@ = open_sequence_task 
task_kill_char_on_foot_timed -1 {target} 36@ {time} 3000
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 78@ {sequence} 268@
clear_sequence_task 268@
set_char_kinda_stay_in_same_place 78@ {state} True
141@ = add_blip_for_char 78@
change_blip_scale 141@ {size} 1

:RIOT2_20358
clear_prints 
185@ = 7
186@ = 0
gosub @RIOT2_40912
set_char_bleeding 36@ {state} True
TIMERB = 0
143@ = 2

:RIOT2_20402
if 
  143@ == 2
goto_if_false @RIOT2_20453
if 
  TIMERB > 1000
goto_if_false @RIOT2_20453
set_char_collision 36@ {state} False
143@ = 3

:RIOT2_20453
if 
  143@ == 3
goto_if_false @RIOT2_20752
if 
  is_char_dead 69@
goto_if_false @RIOT2_20752
if 
  is_char_dead 70@
goto_if_false @RIOT2_20752
if 
  is_char_dead 71@
goto_if_false @RIOT2_20752
if 
  is_char_dead 72@
goto_if_false @RIOT2_20752
if 
  is_char_dead 73@
goto_if_false @RIOT2_20752
if 
  is_char_dead 74@
goto_if_false @RIOT2_20752
if 
  is_char_dead 75@
goto_if_false @RIOT2_20752
if 
  is_char_dead 76@
goto_if_false @RIOT2_20752
if 
  is_char_dead 77@
goto_if_false @RIOT2_20752
if 
  is_char_dead 78@
goto_if_false @RIOT2_20752
remove_blip 126@
remove_blip 127@
remove_blip 128@
remove_blip 129@
remove_blip 130@
remove_blip 131@
remove_blip 138@
remove_blip 139@
remove_blip 140@
remove_blip 141@
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_char_as_no_longer_needed 75@
mark_char_as_no_longer_needed 76@
mark_char_as_no_longer_needed 77@
mark_char_as_no_longer_needed 78@
TIMERA = 0
143@ = 0
142@ = 5

:RIOT2_20752
if 
  is_char_dead 69@
goto_if_false @RIOT2_20778
mark_char_as_no_longer_needed 69@
remove_blip 126@

:RIOT2_20778
if 
  is_char_dead 70@
goto_if_false @RIOT2_20804
mark_char_as_no_longer_needed 70@
remove_blip 127@

:RIOT2_20804
if 
  is_char_dead 71@
goto_if_false @RIOT2_20830
mark_char_as_no_longer_needed 71@
remove_blip 128@

:RIOT2_20830
if 
  is_char_dead 72@
goto_if_false @RIOT2_20856
mark_char_as_no_longer_needed 72@
remove_blip 129@

:RIOT2_20856
if 
  is_char_dead 73@
goto_if_false @RIOT2_20882
mark_char_as_no_longer_needed 73@
remove_blip 130@

:RIOT2_20882
if 
  is_char_dead 74@
goto_if_false @RIOT2_20908
mark_char_as_no_longer_needed 74@
remove_blip 131@

:RIOT2_20908
if 
  143@ > 1
goto_if_false @RIOT2_21030
if 
  is_char_dead 75@
goto_if_false @RIOT2_20952
mark_char_as_no_longer_needed 75@
remove_blip 138@

:RIOT2_20952
if 
  is_char_dead 76@
goto_if_false @RIOT2_20978
mark_char_as_no_longer_needed 76@
remove_blip 139@

:RIOT2_20978
if 
  is_char_dead 77@
goto_if_false @RIOT2_21004
mark_char_as_no_longer_needed 77@
remove_blip 140@

:RIOT2_21004
if 
  is_char_dead 78@
goto_if_false @RIOT2_21030
mark_char_as_no_longer_needed 78@
remove_blip 141@

:RIOT2_21030
if 
  142@ == 5
goto_if_false @RIOT2_24541
if 
  143@ == 0
goto_if_false @RIOT2_21495
if 
  TIMERA > 2000
goto_if_false @RIOT2_21495
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
delete_car 68@
clear_area 1905.1 {y} -2103.8999 {z} 12.5 {radius} 60.0 {clearParticles} True
set_char_coordinates $scplayer {x} 1905.1 {y} -2103.8999 {z} 12.5
set_char_heading $scplayer {heading} 80.2
clear_char_tasks $cesar
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1897.8 {y} -2099.5 {z} 12.5 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1890.8 {y} -2099.5 {z} 12.5 {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 1877.2 {y} -2101.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 110.0
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1900.4 {y} -2098.2 {z} 12.5
set_char_heading 34@ {heading} 92.3
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1875.7 {y} -2102.3999 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 95.0
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
144@ = 1
skip_cutscene_start_internal @RIOT2_21846
set_fixed_camera_position 1900.4 {y} -2099.6001 {z} 12.8 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1879.4 {y} -2107.7 {z} 17.9 {switchStyle} SwitchType.JumpCut
TIMERA = 0
143@ = 1

:RIOT2_21495
if 
  143@ == 1
goto_if_false @RIOT2_21784
if 
  TIMERA > 3000
goto_if_false @RIOT2_21784
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1875.7 {y} -2102.3999 {z} 12.5
set_char_heading 34@ {heading} 95.0
task_play_anim 34@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_coordinates $cesar {x} 1881.2 {y} -2099.6001 {z} 12.5
set_char_heading $cesar {heading} 69.4
set_char_coordinates $scplayer {x} 1886.2 {y} -2099.6001 {z} 12.5
set_char_heading $scplayer {heading} 69.4
task_go_straight_to_coord $scplayer {x} 1877.6 {y} -2099.8 {z} 12.5 {speed} MoveState.Walk {time} -1
gosub @RIOT2_38067
set_fixed_camera_position 1880.2 {y} -2103.1001 {z} 14.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1874.3 {y} -2100.77 {z} 12.8 {switchStyle} SwitchType.JumpCut
185@ = 8
186@ = 0
gosub @RIOT2_40912
TIMERA = 0
143@ = 2

:RIOT2_21784
if 
  143@ == 2
goto_if_false @RIOT2_24541
if 
  185@ == 0
goto_if_false @RIOT2_24541
if 
  TIMERA > 8000
goto_if_false @RIOT2_24541
144@ = 0

:RIOT2_21846
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_21880
goto @RIOT2_30241

:RIOT2_21880
if 
  144@ == 1
goto_if_false @RIOT2_22870
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_21922
if 
  get_fading_status 
goto_if_false @RIOT2_21946
wait 0
goto @RIOT2_21922

:RIOT2_21946
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_21978
goto @RIOT2_30241

:RIOT2_21978
gosub @RIOT2_38067
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1875.7 {y} -2102.3999 {z} 12.5
set_char_heading 34@ {heading} 95.0
task_play_anim 34@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1881.2 {y} -2099.6001 {z} 12.5
set_char_heading $cesar {heading} 69.4
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1879.7 {y} -2101.7 {z} 12.5
set_char_heading $scplayer {heading} 90.0
clear_char_tasks_immediately 79@
set_char_decision_maker 79@ {handleOrTemplate} 265@
set_char_coordinates 79@ {x} 1861.1 {y} -2096.8999 {z} 12.5
set_char_heading 79@ {heading} 270.3
$task_status = get_script_task_status 80@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22344
clear_char_tasks_immediately 80@
task_play_anim 80@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 80@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22344
$task_status = get_script_task_status 81@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22522
clear_char_tasks_immediately 81@
task_play_anim 81@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 2000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 81@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22522
clear_char_tasks_immediately 82@
set_char_decision_maker 82@ {handleOrTemplate} 265@
set_char_coordinates 82@ {x} 1859.1 {y} -2106.0 {z} 14.0
set_char_heading 82@ {heading} 264.4
$task_status = get_script_task_status 83@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22714
clear_char_tasks_immediately 83@
task_play_anim 83@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 83@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22714
$task_status = get_script_task_status 84@ {taskId} 1560
if 
  not is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_22870
clear_char_tasks_immediately 84@
task_play_anim 84@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 3000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 84@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_22870
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
85@ = create_pickup #HEALTH {pickupType} PickupType.OnStreetSlow {x} 1875.6 {y} -2091.3999 {z} 13.5
86@ = create_pickup_with_ammo 372 {pickupType} PickupType.OnStreetSlow {ammo} 48 {x} 1878.3 {y} -2091.1001 {z} 13.5
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1864.9 {y} -2101.2 {z} 14.0 {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1874.9 {y} -2096.5 {z} 12.5 {heading} 75.0 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1874.9 {y} -2096.5 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 75.0
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
269@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1862.6 {y} -2104.1001 {z} 14.0 {time} 168@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 1873.3 {y} -2107.3999 {z} 12.5 {heading} 98.8 {radius} -0.1 {animationName} "SWT_WLLSHOOT_OUT_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1873.3 {y} -2107.3999 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 98.8
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
give_weapon_to_char 35@ {weaponType} WeaponType.RocketLauncher {ammo} 1
269@ = open_sequence_task 
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 10
168@ = generate_random_int_in_range 1500 {max} 4000
task_shoot_at_coord -1 {x} 1878.7 {y} -2105.5 {z} 14.6 {time} 168@
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
168@ = generate_random_int_in_range 1500 {max} 4000
task_pause -1 {time} 168@
set_sequence_to_repeat 269@ {state} True
close_sequence_task 269@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1898.7 {y} -2106.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_shoot_at_coord -1 {x} 1852.1 {y} -2096.6001 {z} 16.5 {time} 10
perform_sequence_task -1 {sequence} 269@
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
clear_sequence_task 269@
148@ = generate_random_int_in_range 0 {max} 2
69@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1913.7 {y} -2109.2 {z} 12.6
set_char_heading 69@ {heading} 90.5
give_weapon_to_char 69@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 69@ {handleOrTemplate} 266@
set_char_stay_in_same_place 69@ {state} True
set_char_proofs 69@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_accuracy 69@ {accuracy} 181@
add_armour_to_char 69@ {amount} 50
148@ = generate_random_int_in_range 0 {max} 2
70@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1916.5 {y} -2113.1001 {z} 12.6
set_char_heading 70@ {heading} 20.1
give_weapon_to_char 70@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 70@ {handleOrTemplate} 266@
set_char_stay_in_same_place 70@ {state} True
set_char_proofs 70@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_accuracy 70@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
73@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1806.1 {y} -2121.7 {z} 12.5
set_char_heading 73@ {heading} 357.8
give_weapon_to_char 73@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 73@ {handleOrTemplate} 265@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1837.5 {y} -2102.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 73@ {sequence} 268@
clear_sequence_task 268@
remove_blip 130@
130@ = add_blip_for_char 73@
change_blip_scale 130@ {size} 1
set_char_accuracy 73@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
74@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1801.5 {y} -2120.7 {z} 12.5
set_char_heading 74@ {heading} 357.8
give_weapon_to_char 74@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 74@ {handleOrTemplate} 265@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1833.8 {y} -2097.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 275.0
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 74@ {sequence} 268@
clear_sequence_task 268@
remove_blip 131@
131@ = add_blip_for_char 74@
change_blip_scale 131@ {size} 1
set_char_accuracy 74@ {accuracy} 181@
add_armour_to_char 74@ {amount} 50
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'R2_06' {time} 4000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_24520
do_fade 500 {direction} Fade.In

:RIOT2_24464
if 
  get_fading_status 
goto_if_false @RIOT2_24488
wait 0
goto @RIOT2_24464

:RIOT2_24488
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_24520
goto @RIOT2_30241

:RIOT2_24520
TIMERA = 0
143@ = 0
142@ = 6

:RIOT2_24541
if 
  142@ == 6
goto_if_false @RIOT2_26110
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_24632
180@ = get_char_health $cesar
if 
  50 > 180@
goto_if_false @RIOT2_24632
task_die_named_anim $cesar {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_24632
if 
  not is_char_dead 34@
goto_if_false @RIOT2_24705
180@ = get_char_health 34@
if 
  50 > 180@
goto_if_false @RIOT2_24705
task_die_named_anim 34@ {animationName} "KO_SHOT_STOM" {animationFile} "PED" {blendSpeed} 8.0 {time} 0

:RIOT2_24705
if 
  169@ == 0
goto_if_false @RIOT2_24879
if 
  is_char_dead 79@
goto_if_false @RIOT2_24826
if 
  is_char_dead 80@
goto_if_false @RIOT2_24826
if 
  is_char_dead 81@
goto_if_false @RIOT2_24826
if 
  is_char_dead 82@
goto_if_false @RIOT2_24826
if 
  is_char_dead 83@
goto_if_false @RIOT2_24826
if 
  is_char_dead 84@
goto_if_false @RIOT2_24826
169@ = 1

:RIOT2_24826
if or
  TIMERA > 15000
  is_char_in_area_2d $scplayer {leftBottomX} 1893.6 {leftBottomY} -2043.3 {rightTopX} 1888.1 {rightTopY} -2175.6001 {drawSphere} False
goto_if_false @RIOT2_24879
169@ = 1

:RIOT2_24879
if 
  169@ == 1
goto_if_false @RIOT2_25014
185@ = 9
186@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
if 
  not is_char_dead 69@
goto_if_false @RIOT2_24971
remove_blip 126@
126@ = add_blip_for_char 69@
change_blip_scale 126@ {size} 1

:RIOT2_24971
if 
  not is_char_dead 70@
goto_if_false @RIOT2_25007
remove_blip 127@
127@ = add_blip_for_char 70@
change_blip_scale 127@ {size} 1

:RIOT2_25007
169@ = 2

:RIOT2_25014
if 
  169@ == 2
goto_if_false @RIOT2_25444
if 
  is_char_on_screen 35@
goto_if_false @RIOT2_25444
if 
  not is_char_dead 69@
goto_if_false @RIOT2_25163
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1913.5 {y} -2106.1001 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_shoot_at_coord -1 {x} 1900.8 {y} -2106.2 {z} 12.6 {time} 1500
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@
set_char_proofs 69@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RIOT2_25163
if 
  not is_char_dead 70@
goto_if_false @RIOT2_25278
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1914.2 {y} -2104.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 90.0
task_shoot_at_coord -1 {x} 1900.8 {y} -2106.2 {z} 12.6 {time} 1500
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 70@ {sequence} 268@
clear_sequence_task 268@
set_char_proofs 70@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:RIOT2_25278
give_weapon_to_char 35@ {weaponType} WeaponType.RocketLauncher {ammo} 1
268@ = open_sequence_task 
task_achieve_heading -1 {heading} 269.0
task_pause -1 {time} 200
task_shoot_at_coord -1 {x} 1951.1 {y} -2103.8999 {z} 19.3 {time} 500
task_play_anim_non_interruptable -1 {animationName} "KO_SHOT_FACE" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "CRCKIDLE1" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 268@
perform_sequence_task 35@ {sequence} 268@
clear_sequence_task 268@
set_char_bleeding 35@ {state} True
TIMERA = 0
169@ = 3

:RIOT2_25444
if 
  143@ == 0
goto_if_false @RIOT2_25749
if 
  is_char_dead 79@
goto_if_false @RIOT2_25749
if 
  is_char_dead 80@
goto_if_false @RIOT2_25749
if 
  is_char_dead 81@
goto_if_false @RIOT2_25749
if 
  is_char_dead 82@
goto_if_false @RIOT2_25749
if 
  is_char_dead 83@
goto_if_false @RIOT2_25749
if 
  is_char_dead 84@
goto_if_false @RIOT2_25749
if 
  is_char_dead 73@
goto_if_false @RIOT2_25749
if 
  is_char_dead 74@
goto_if_false @RIOT2_25749
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1895.3 {y} -2102.2 {z} 12.6 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 274.7
task_shoot_at_coord -1 {x} 1913.5 {y} -2104.3999 {z} 13.9 {time} -2
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1895.6 {y} -2104.2 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 271.0
task_shoot_at_coord -1 {x} 1912.9 {y} -2106.3999 {z} 13.9 {time} -2
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
143@ = 1

:RIOT2_25749
if 
  143@ == 1
goto_if_false @RIOT2_25850
if 
  is_char_dead 69@
goto_if_false @RIOT2_25850
if 
  is_char_dead 70@
goto_if_false @RIOT2_25850
mark_char_as_no_longer_needed 69@
mark_char_as_no_longer_needed 70@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
remove_animation "CASINO"
TIMERA = 0
143@ = 0
142@ = 7

:RIOT2_25850
if 
  is_char_dead 69@
goto_if_false @RIOT2_25876
mark_char_as_no_longer_needed 69@
remove_blip 126@

:RIOT2_25876
if 
  is_char_dead 70@
goto_if_false @RIOT2_25902
mark_char_as_no_longer_needed 70@
remove_blip 127@

:RIOT2_25902
if 
  is_char_dead 73@
goto_if_false @RIOT2_25928
mark_char_as_no_longer_needed 73@
remove_blip 130@

:RIOT2_25928
if 
  is_char_dead 74@
goto_if_false @RIOT2_25954
mark_char_as_no_longer_needed 74@
remove_blip 131@

:RIOT2_25954
if 
  is_char_dead 79@
goto_if_false @RIOT2_25980
mark_char_as_no_longer_needed 79@
remove_blip 132@

:RIOT2_25980
if 
  is_char_dead 80@
goto_if_false @RIOT2_26006
mark_char_as_no_longer_needed 80@
remove_blip 133@

:RIOT2_26006
if 
  is_char_dead 81@
goto_if_false @RIOT2_26032
mark_char_as_no_longer_needed 81@
remove_blip 134@

:RIOT2_26032
if 
  is_char_dead 82@
goto_if_false @RIOT2_26058
mark_char_as_no_longer_needed 82@
remove_blip 135@

:RIOT2_26058
if 
  is_char_dead 83@
goto_if_false @RIOT2_26084
mark_char_as_no_longer_needed 83@
remove_blip 136@

:RIOT2_26084
if 
  is_char_dead 84@
goto_if_false @RIOT2_26110
mark_char_as_no_longer_needed 84@
remove_blip 137@

:RIOT2_26110
if 
  142@ == 7
goto_if_false @RIOT2_28983
if 
  143@ == 0
goto_if_false @RIOT2_27274
if 
  TIMERA > 2000
goto_if_false @RIOT2_27274
do_fade 500 {direction} Fade.Out

:RIOT2_26172
if 
  get_fading_status 
goto_if_false @RIOT2_26196
wait 0
goto @RIOT2_26172

:RIOT2_26196
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_26228
goto @RIOT2_30241

:RIOT2_26228
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
remove_animation "SWAT"
request_model 361
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate
clear_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike
load_scene 1855.5 {y} -2101.8 {z} 12.5
69@ = create_char PedType.Mission2 {modelId} 108 {x} 1805.0 {y} -2126.0 {z} 17.8
set_char_heading 69@ {heading} 306.5
set_char_stay_in_same_place 69@ {state} True
add_armour_to_char 69@ {amount} 100
set_char_suffers_critical_hits 69@ {state} False
give_weapon_to_char 69@ {weaponType} WeaponType.RocketLauncher {ammo} 30000
set_char_decision_maker 69@ {handleOrTemplate} 266@
90@ = add_blip_for_char 69@
change_blip_scale 90@ {size} 1
set_char_accuracy 69@ {accuracy} 181@
add_armour_to_char 69@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
70@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1811.8 {y} -2124.0 {z} 12.6
set_char_heading 70@ {heading} 287.5
set_char_stay_in_same_place 70@ {state} True
give_weapon_to_char 70@ {weaponType} WeaponType.Flamethrower {ammo} 30000
set_char_decision_maker 70@ {handleOrTemplate} 266@
91@ = add_blip_for_char 70@
change_blip_scale 91@ {size} 1
set_char_accuracy 70@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
71@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1795.0 {y} -2126.7 {z} 12.5
set_char_heading 71@ {heading} 358.6
give_weapon_to_char 71@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 71@ {state} True
set_char_decision_maker 71@ {handleOrTemplate} 266@
92@ = add_blip_for_char 71@
change_blip_scale 92@ {size} 1
set_char_accuracy 71@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
72@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1795.0 {y} -2130.7 {z} 12.5
set_char_heading 72@ {heading} 357.8
give_weapon_to_char 72@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_kinda_stay_in_same_place 72@ {state} True
set_char_decision_maker 72@ {handleOrTemplate} 266@
93@ = add_blip_for_char 72@
change_blip_scale 93@ {size} 1
set_char_accuracy 72@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
73@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1806.1 {y} -2121.7 {z} 12.5
set_char_heading 73@ {heading} 357.8
give_weapon_to_char 73@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 73@ {state} True
set_char_decision_maker 73@ {handleOrTemplate} 266@
94@ = add_blip_for_char 73@
change_blip_scale 94@ {size} 1
set_char_accuracy 73@ {accuracy} 181@
add_armour_to_char 73@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
74@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1801.5 {y} -2120.7 {z} 12.5
set_char_heading 74@ {heading} 357.8
give_weapon_to_char 74@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_stay_in_same_place 74@ {state} True
set_char_decision_maker 74@ {handleOrTemplate} 266@
95@ = add_blip_for_char 74@
change_blip_scale 95@ {size} 1
set_char_accuracy 74@ {accuracy} 181@
add_armour_to_char 74@ {amount} 100
clear_area 1855.5 {y} -2101.8 {z} 12.5 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1855.5 {y} -2101.8 {z} 12.5
set_char_heading $scplayer {heading} 90.0
task_go_straight_to_coord $scplayer {x} 1846.6 {y} -2102.8 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1855.5 {y} -2102.8 {z} 12.5
set_char_heading $cesar {heading} 90.0
task_go_straight_to_coord $cesar {x} 1846.6 {y} -2102.8 {z} 12.5 {speed} MoveState.Walk {time} -1
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1855.5 {y} -2100.8 {z} 12.5
set_char_heading 34@ {heading} 90.0
task_go_straight_to_coord 34@ {x} 1846.6 {y} -2100.8 {z} 12.5 {speed} MoveState.Walk {time} -1
set_fixed_camera_position 1846.6 {y} -2101.8 {z} 13.88 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1853.9 {y} -2101.3999 {z} 12.7 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_27169
if 
  get_fading_status 
goto_if_false @RIOT2_27193
wait 0
goto @RIOT2_27169

:RIOT2_27193
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27225
goto @RIOT2_30241

:RIOT2_27225
144@ = 1
skip_cutscene_start_internal @RIOT2_27824
185@ = 10
186@ = 0
gosub @RIOT2_40912
TIMERA = 0
143@ = 1

:RIOT2_27274
if 
  143@ == 1
goto_if_false @RIOT2_27575
if 
  185@ == 0
goto_if_false @RIOT2_27575
if 
  TIMERA > 4000
goto_if_false @RIOT2_27575
do_fade 500 {direction} Fade.Out

:RIOT2_27336
if 
  get_fading_status 
goto_if_false @RIOT2_27360
wait 0
goto @RIOT2_27336

:RIOT2_27360
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27392
goto @RIOT2_30241

:RIOT2_27392
load_scene 1809.8 {y} -2123.3999 {z} 12.7
set_fixed_camera_position 1816.2 {y} -2116.8 {z} 13.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1808.6 {y} -2123.8 {z} 15.0 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_27467
if 
  get_fading_status 
goto_if_false @RIOT2_27491
wait 0
goto @RIOT2_27467

:RIOT2_27491
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27523
goto @RIOT2_30241

:RIOT2_27523
185@ = 11
186@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
TIMERA = 0
143@ = 2

:RIOT2_27575
if 
  143@ == 2
goto_if_false @RIOT2_27762
if 
  185@ == 0
goto_if_false @RIOT2_27762
if 
  TIMERA > 4000
goto_if_false @RIOT2_27762
set_fixed_camera_position 1816.2 {y} -2116.8 {z} 13.16 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_char_dead 70@
goto_if_false @RIOT2_27710
point_camera_at_char 70@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
task_shoot_at_coord 70@ {x} 1831.6 {y} -2118.8999 {z} 12.5 {time} 4000

:RIOT2_27710
185@ = 12
186@ = generate_random_int_in_range 0 {max} 3
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912
TIMERA = 0
143@ = 3

:RIOT2_27762
if 
  143@ == 3
goto_if_false @RIOT2_28983
if 
  185@ == 0
goto_if_false @RIOT2_28983
if 
  TIMERA > 4000
goto_if_false @RIOT2_28983
144@ = 0

:RIOT2_27824
skip_cutscene_end 
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27858
goto @RIOT2_30241

:RIOT2_27858
if 
  144@ == 1
goto_if_false @RIOT2_27956
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
do_fade 500 {direction} Fade.Out

:RIOT2_27900
if 
  get_fading_status 
goto_if_false @RIOT2_27924
wait 0
goto @RIOT2_27900

:RIOT2_27924
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_27956
goto @RIOT2_30241

:RIOT2_27956
if 
  not is_char_dead 69@
goto_if_false @RIOT2_28176
268@ = open_sequence_task 
task_shoot_at_coord -1 {x} 1832.7 {y} -2090.1001 {z} 14.1 {time} 500
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
task_shoot_at_coord -1 {x} 1853.6 {y} -2087.0 {z} 20.5 {time} 500
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 1000
task_shoot_at_coord -1 {x} 1819.5 {y} -2113.1001 {z} 12.9 {time} 500
task_play_anim -1 {animationName} "GUN_STAND" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1000
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 69@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28176
if 
  not is_char_dead 70@
goto_if_false @RIOT2_28251
268@ = open_sequence_task 
task_shoot_at_coord -1 {x} 1831.6 {y} -2118.8999 {z} 12.5 {time} 2000
task_pause -1 {time} 2000
set_sequence_to_repeat 268@ {state} True
close_sequence_task 268@
perform_sequence_task 70@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28251
if 
  not is_char_dead 71@
goto_if_false @RIOT2_28335
268@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1795.0 {y} -2106.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 277.9
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 71@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28335
if 
  not is_char_dead 72@
goto_if_false @RIOT2_28419
268@ = open_sequence_task 
task_toggle_duck -1 {state} True
task_go_straight_to_coord -1 {x} 1792.0 {y} -2103.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_achieve_heading -1 {heading} 277.9
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 72@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28419
if 
  not is_char_dead 73@
goto_if_false @RIOT2_28488
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1809.4 {y} -2116.3 {z} 12.5 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 73@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28488
if 
  not is_char_dead 74@
goto_if_false @RIOT2_28557
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1809.4 {y} -2111.8 {z} 12.5 {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 74@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_28557
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1833.9 {y} -2104.2 {z} 12.5
set_char_heading $scplayer {heading} 122.4
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1833.0 {y} -2106.6001 {z} 12.5
set_char_heading $cesar {heading} 122.3
set_char_stay_in_same_place $cesar {state} True
set_char_decision_maker $cesar {handleOrTemplate} 265@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1834.4 {y} -2102.0 {z} 12.5
set_char_heading 34@ {heading} 99.6
set_char_stay_in_same_place 34@ {state} True
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1814.1 {y} -2102.3999 {z} 12.5 {speed} MoveState.Run {time} -1
task_achieve_heading -1 {heading} 112.7
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
mark_char_as_no_longer_needed 79@
mark_char_as_no_longer_needed 80@
mark_char_as_no_longer_needed 81@
mark_char_as_no_longer_needed 82@
mark_char_as_no_longer_needed 83@
mark_char_as_no_longer_needed 84@
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 265@ {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
shut_all_chars_up False
switch_widescreen False
make_player_gang_reappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
print_now 'R2_07' {time} 4000 {flag} 1
if 
  144@ == 1
goto_if_false @RIOT2_28969
do_fade 500 {direction} Fade.In

:RIOT2_28913
if 
  get_fading_status 
goto_if_false @RIOT2_28937
wait 0
goto @RIOT2_28913

:RIOT2_28937
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_28969
goto @RIOT2_30241

:RIOT2_28969
143@ = 0
142@ = 8

:RIOT2_28983
if 
  142@ == 8
goto_if_false @RIOT2_30227
if 
  143@ == 0
goto_if_false @RIOT2_29255
if 
  is_char_dead 69@
goto_if_false @RIOT2_29040
remove_blip 90@

:RIOT2_29040
if 
  is_char_dead 70@
goto_if_false @RIOT2_29061
remove_blip 91@

:RIOT2_29061
if 
  is_char_dead 71@
goto_if_false @RIOT2_29082
remove_blip 92@

:RIOT2_29082
if 
  is_char_dead 72@
goto_if_false @RIOT2_29103
remove_blip 93@

:RIOT2_29103
if 
  is_char_dead 73@
goto_if_false @RIOT2_29124
remove_blip 94@

:RIOT2_29124
if 
  is_char_dead 74@
goto_if_false @RIOT2_29145
remove_blip 95@

:RIOT2_29145
if 
  is_char_dead 69@
goto_if_false @RIOT2_29255
if 
  is_char_dead 70@
goto_if_false @RIOT2_29255
if 
  is_char_dead 71@
goto_if_false @RIOT2_29255
if 
  is_char_dead 72@
goto_if_false @RIOT2_29255
if 
  is_char_dead 73@
goto_if_false @RIOT2_29255
if 
  is_char_dead 74@
goto_if_false @RIOT2_29255
TIMERA = 0
143@ = 1

:RIOT2_29255
if 
  143@ == 1
goto_if_false @RIOT2_29850
if 
  TIMERA > 2000
goto_if_false @RIOT2_29850
do_fade 500 {direction} Fade.Out

:RIOT2_29299
if 
  get_fading_status 
goto_if_false @RIOT2_29323
wait 0
goto @RIOT2_29299

:RIOT2_29323
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_29355
goto @RIOT2_30241

:RIOT2_29355
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
185@ = 0
set_player_control $player1 {state} False
switch_widescreen True
make_player_gang_disappear 
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
shut_all_chars_up True
load_scene 1814.9 {y} -2112.1001 {z} 12.4
clear_area 1814.9 {y} -2112.1001 {z} 12.4 {radius} 30.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 1814.9 {y} -2112.1001 {z} 12.4
set_char_heading $scplayer {heading} 127.9
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1807.8 {y} -2122.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 268@
perform_sequence_task $scplayer {sequence} 268@
clear_sequence_task 268@
clear_char_tasks_immediately $cesar
set_char_coordinates $cesar {x} 1812.4 {y} -2111.3 {z} 12.4
set_char_heading $cesar {heading} 127.9
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1804.8 {y} -2120.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
clear_char_tasks_immediately 34@
set_char_coordinates 34@ {x} 1810.4 {y} -2111.0 {z} 12.4
set_char_heading 34@ {heading} 135.1
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1807.0 {y} -2118.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
set_fixed_camera_position 1812.6 {y} -2114.5 {z} 13.0 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1804.5 {y} -2123.6001 {z} 15.0 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:RIOT2_29759
if 
  get_fading_status 
goto_if_false @RIOT2_29783
wait 0
goto @RIOT2_29759

:RIOT2_29783
gosub @RIOT2_31066
if 
  145@ == 1
goto_if_false @RIOT2_29815
goto @RIOT2_30241

:RIOT2_29815
185@ = 13
186@ = 0
188@ = 4
gosub @RIOT2_40912
143@ = 2

:RIOT2_29850
if 
  143@ == 2
goto_if_false @RIOT2_29981
if 
  185@ == 0
goto_if_false @RIOT2_29981
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $cesar
close_sequence_task 268@
perform_sequence_task $scplayer {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
185@ = 13
186@ = 4
188@ = 8
gosub @RIOT2_40912
143@ = 3

:RIOT2_29981
if 
  143@ == 3
goto_if_false @RIOT2_30169
if 
  185@ == 0
goto_if_false @RIOT2_30169
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.8 {y} -2124.5 {z} 12.5 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 1794.8 {y} -2137.2 {z} 12.5 {speed} MoveState.Walk {time} -1
close_sequence_task 268@
perform_sequence_task $cesar {sequence} 268@
clear_sequence_task 268@
268@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 1794.8 {y} -2122.5 {z} 12.4 {speed} MoveState.Walk {time} -1
task_go_straight_to_coord -1 {x} 1794.8 {y} -2137.2 {z} 12.5 {speed} MoveState.Walk {time} -1
close_sequence_task 268@
perform_sequence_task 34@ {sequence} 268@
clear_sequence_task 268@
TIMERA = 0
143@ = 4

:RIOT2_30169
if 
  143@ == 4
goto_if_false @RIOT2_30227
if 
  TIMERA > 3000
goto_if_false @RIOT2_30227
shut_all_chars_up False
delete_char $cesar
delete_char 34@
goto @RIOT2_30259

:RIOT2_30227
gosub @RIOT2_39478
goto @RIOT2_1585

:RIOT2_30241
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:RIOT2_30259
$flag_riot_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 60 {duration} 5000 {style} TextStyle.Middle
award_player_mission_respect 60
remove_blip $sweet_contact_blip
set_zone_gang_strength 'ELCO1' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO2' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'ELCO1' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'ELCO1' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'ELCO2' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Aztecas {density} 40
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Vagos {density} 0
set_zone_gang_strength 'LMEX1A' {gangId} GangType.Grove {density} 0
set_zone_gang_strength 'LMEX1B' {gangId} GangType.Grove {density} 0
play_mission_passed_tune 1
clear_wanted_level $player1
register_mission_passed 'RIOT_2'
player_made_progress 1
return 

:RIOT2_30499
if 
  is_var_text_label_empty s$shop_name
goto_if_false @RIOT2_30517
restore_camera_jumpcut 

:RIOT2_30517
set_zone_no_cops 'ELCO' {state} False
if 
  not is_char_dead 36@
goto_if_false @RIOT2_30558
set_char_collision 36@ {state} True
remove_char_elegantly 36@

:RIOT2_30558
start_new_script @DOORS 
mark_model_as_no_longer_needed 114
mark_model_as_no_longer_needed 115
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 109
switch_emergency_services True
mark_model_as_no_longer_needed 339
mark_model_as_no_longer_needed 348
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 359
mark_model_as_no_longer_needed 361
mark_model_as_no_longer_needed 466
mark_model_as_no_longer_needed #BBALL_INGAME
switch_ped_roads_back_to_original 1945.8 {leftBottomY} -1956.5 {leftBottomZ} 0.0 {rightTopX} 1642.9 {rightTopY} -2174.3 {rightTopZ} 50.0
remove_pickup 85@
remove_pickup 86@
remove_pickup 184@
remove_animation "CAR"
remove_animation "BSKTBALL"
remove_animation "SMOKING"
remove_animation "SWAT"
remove_animation "CASINO"
remove_animation "CRACK"
remove_animation "GANGS"
if 
  not is_char_dead $scplayer
goto_if_false @RIOT2_30761
shut_char_up_for_scripted_speech $scplayer {state} False

:RIOT2_30761
shut_all_chars_up False
remove_char_elegantly $cesar
unload_special_character 1
set_gunshot_sense_range_for_riot2 -1.0
remove_blip 89@
remove_blip 90@
remove_blip 91@
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_blip 95@
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_blip 104@
remove_blip 105@
remove_blip 106@
remove_blip 107@
remove_blip 108@
remove_blip 109@
remove_blip 110@
remove_blip 111@
remove_blip 112@
remove_blip 113@
remove_blip 114@
remove_blip 115@
remove_blip 116@
remove_blip 117@
remove_blip 118@
remove_blip 119@
remove_blip 120@
remove_blip 121@
remove_blip 122@
remove_blip 123@
remove_blip 124@
remove_blip 125@
remove_blip 126@
remove_blip 127@
remove_blip 128@
remove_blip 129@
remove_blip 130@
remove_blip 131@
remove_blip 132@
remove_blip 133@
remove_blip 134@
remove_blip 135@
remove_blip 136@
remove_blip 137@
remove_blip 138@
remove_blip 139@
remove_blip 140@
remove_blip 141@
enable_ambient_crime True
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:RIOT2_31066
if 
  is_char_dead $cesar
goto_if_false @RIOT2_31107
clear_prints 
print_now 'R2_08' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31107
if 
  is_char_dead 35@
goto_if_false @RIOT2_31148
clear_prints 
print_now 'R2_09' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31148
if 
  is_char_dead 34@
goto_if_false @RIOT2_31189
clear_prints 
print_now 'R2_10' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31189
if 
  is_char_dead 36@
goto_if_false @RIOT2_31230
clear_prints 
print_now 'R2_11' {time} 7000 {flag} 1
145@ = 1

:RIOT2_31230
return 

:RIOT2_31232
148@ = generate_random_int_in_range 0 {max} 2
37@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1831.6 {y} -2004.6 {z} 12.6
set_inform_respected_friends 37@ {radius} 8.0 {_p3} 6
set_char_heading 37@ {heading} 90.0
give_weapon_to_char 37@ {weaponType} WeaponType.Tec9 {ammo} 3000
task_play_anim 37@ {animationName} "M_SMKLEAN_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 37@ {handleOrTemplate} 266@
96@ = add_blip_for_char 37@
change_blip_scale 96@ {size} 1
set_char_accuracy 37@ {accuracy} 181@
add_armour_to_char 37@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
38@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1825.5 {y} -2002.4 {z} 12.6
set_inform_respected_friends 38@ {radius} 8.0 {_p3} 6
set_char_heading 38@ {heading} 89.7
task_play_anim 38@ {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
88@ = create_object #BBALL_INGAME {x} 0.0 {y} 0.0 {z} 0.0
97@ = add_blip_for_char 38@
change_blip_scale 97@ {size} 1
set_char_accuracy 38@ {accuracy} 181@
set_char_decision_maker 38@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 38@ {state} True
148@ = generate_random_int_in_range 0 {max} 2
39@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1824.3 {y} -2002.4 {z} 12.6
set_inform_respected_friends 39@ {radius} 8.0 {_p3} 6
set_char_heading 39@ {heading} 270.0
give_weapon_to_char 39@ {weaponType} WeaponType.Tec9 {ammo} 3000
task_play_anim 39@ {animationName} "BBALL_DEF_LOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_decision_maker 39@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 39@ {state} True
98@ = add_blip_for_char 39@
change_blip_scale 98@ {size} 1
set_char_accuracy 39@ {accuracy} 181@
add_armour_to_char 39@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
40@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1827.7 {y} -1999.1 {z} 12.6
set_inform_respected_friends 40@ {radius} 8.0 {_p3} 6
set_char_heading 40@ {heading} 133.6
give_weapon_to_char 40@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 40@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 40@ {state} True
99@ = add_blip_for_char 40@
change_blip_scale 99@ {size} 1
set_char_accuracy 40@ {accuracy} 181@
148@ = generate_random_int_in_range 0 {max} 2
41@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1828.2 {y} -2000.4 {z} 12.6
set_inform_respected_friends 41@ {radius} 8.0 {_p3} 6
set_char_heading 41@ {heading} 108.2
give_weapon_to_char 41@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 41@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 41@ {state} True
100@ = add_blip_for_char 41@
change_blip_scale 100@ {size} 1
set_char_accuracy 41@ {accuracy} 181@
add_armour_to_char 41@ {amount} 100
148@ = generate_random_int_in_range 0 {max} 2
42@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1834.3 {y} -1995.9 {z} 12.6
set_inform_respected_friends 42@ {radius} 8.0 {_p3} 6
set_char_heading 42@ {heading} 88.1
set_char_decision_maker 42@ {handleOrTemplate} 265@
set_char_kinda_stay_in_same_place 42@ {state} True
101@ = add_blip_for_char 42@
change_blip_scale 101@ {size} 1
set_char_accuracy 42@ {accuracy} 181@
return 

:RIOT2_32036
if 
  158@ == 0
goto_if_false @RIOT2_32091
262@ = 1857.2
263@ = -2020.6
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32091
if 
  152@ == 0
goto_if_false @RIOT2_32146
262@ = 1865.3
263@ = -1992.2
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32146
if 
  155@ == 0
goto_if_false @RIOT2_32201
262@ = 1899.3
263@ = -1991.7
264@ = 12.6
goto @RIOT2_32249

:RIOT2_32201
if 
  161@ == 0
goto_if_false @RIOT2_32249
262@ = 1908.3
263@ = -2020.1
264@ = 12.6

:RIOT2_32249
if 
  not is_char_dead 37@
goto_if_false @RIOT2_32545
if 
  149@ == 0
goto_if_false @RIOT2_32330
268@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} 262@ {y} 263@ {z} 264@ {speed} MoveState.Sprint {time} -2
close_sequence_task 268@
perform_sequence_task 37@ {sequence} 268@
clear_sequence_task 268@
149@ = 1

:RIOT2_32330
if 
  149@ == 1
goto_if_false @RIOT2_32545
$task_status = get_script_task_status 37@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @RIOT2_32545
if 
  158@ == 0
goto_if_false @RIOT2_32419
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
158@ = 1
goto @RIOT2_32538

:RIOT2_32419
if 
  152@ == 0
goto_if_false @RIOT2_32461
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
152@ = 1
goto @RIOT2_32538

:RIOT2_32461
if 
  155@ == 0
goto_if_false @RIOT2_32503
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
155@ = 1
goto @RIOT2_32538

:RIOT2_32503
if 
  161@ == 0
goto_if_false @RIOT2_32538
182@ = set_char_say_context 37@ {phrase} SpeechId.CoverMe
161@ = 1

:RIOT2_32538
149@ = 2

:RIOT2_32545
return 

:RIOT2_32547
if 
  152@ == 1
goto_if_false @RIOT2_32989
  rotate_object $2709 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
43@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1850.3 {y} -1990.0 {z} 12.6
set_inform_respected_friends 43@ {radius} 8.0 {_p3} 6
set_char_heading 43@ {heading} 270.0
give_weapon_to_char 43@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 43@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 43@ {state} True
102@ = add_blip_for_char 43@
change_blip_scale 102@ {size} 1
set_char_accuracy 43@ {accuracy} 181@
add_armour_to_char 43@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1852.9 {y} -1990.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1853.9 {y} -1984.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 355.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 43@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
44@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1851.7 {y} -1989.9 {z} 12.6
set_inform_respected_friends 44@ {radius} 8.0 {_p3} 6
set_char_heading 44@ {heading} 270.7
give_weapon_to_char 44@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 44@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 44@ {state} True
103@ = add_blip_for_char 44@
change_blip_scale 103@ {size} 1
set_char_accuracy 44@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1852.9 {y} -1990.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -1985.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 186.2
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 44@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_32989
if 
  153@ == 1
goto_if_false @RIOT2_33431
  rotate_object $2710 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
45@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1867.7 {y} -1983.7 {z} 12.6
set_inform_respected_friends 45@ {radius} 8.0 {_p3} 6
set_char_heading 45@ {heading} 180.0
give_weapon_to_char 45@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 45@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 45@ {state} True
104@ = add_blip_for_char 45@
change_blip_scale 104@ {size} 1
set_char_accuracy 45@ {accuracy} 181@
add_armour_to_char 45@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1867.7 {y} -1986.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -1999.6 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 198.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 45@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
46@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1867.7 {y} -1984.7 {z} 12.6
set_inform_respected_friends 46@ {radius} 8.0 {_p3} 6
set_char_heading 46@ {heading} 180.0
give_weapon_to_char 46@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 46@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 46@ {state} True
105@ = add_blip_for_char 46@
change_blip_scale 105@ {size} 1
set_char_accuracy 46@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1867.7 {y} -1986.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -1997.6 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 315.1
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 46@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_33431
if 
  154@ == 1
goto_if_false @RIOT2_33873
  rotate_object $2711 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
47@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1866.2 {y} -1999.7 {z} 12.6
set_inform_respected_friends 47@ {radius} 8.0 {_p3} 6
set_char_heading 47@ {heading} 0.0
give_weapon_to_char 47@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 47@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 47@ {state} True
106@ = add_blip_for_char 47@
change_blip_scale 106@ {size} 1
set_char_accuracy 47@ {accuracy} 181@
add_armour_to_char 47@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1866.2 {y} -1997.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1859.5 {y} -1996.2 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 148.0
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 47@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
48@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1865.9 {y} -1998.7 {z} 12.6
set_inform_respected_friends 48@ {radius} 8.0 {_p3} 6
set_char_heading 48@ {heading} 0.0
give_weapon_to_char 48@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 48@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 48@ {state} True
107@ = add_blip_for_char 48@
change_blip_scale 107@ {size} 1
set_char_accuracy 48@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1866.2 {y} -1997.0 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1860.0 {y} -1994.0 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 280.2
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 48@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_33873
return 

:RIOT2_33875
if 
  155@ == 1
goto_if_false @RIOT2_34317
  rotate_object $2712 {fromAngle} 180.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
49@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1900.1 {y} -1983.5 {z} 12.6
set_inform_respected_friends 49@ {radius} 8.0 {_p3} 6
set_char_heading 49@ {heading} 180.0
give_weapon_to_char 49@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 49@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 49@ {state} True
108@ = add_blip_for_char 49@
change_blip_scale 108@ {size} 1
set_char_accuracy 49@ {accuracy} 181@
add_armour_to_char 49@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1900.1 {y} -1987.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1905.0 {y} -1987.2 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 267.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 49@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
50@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1900.1 {y} -1984.5 {z} 12.6
set_inform_respected_friends 50@ {radius} 8.0 {_p3} 6
set_char_heading 50@ {heading} 180.7
give_weapon_to_char 50@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 50@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 50@ {state} True
109@ = add_blip_for_char 50@
change_blip_scale 109@ {size} 1
set_char_accuracy 50@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1900.1 {y} -1987.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1904.4 {y} -1988.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 108.9
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 50@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_34317
if 
  156@ == 1
goto_if_false @RIOT2_34759
  rotate_object $2713 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
51@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1915.8 {y} -1993.5 {z} 12.6
set_inform_respected_friends 51@ {radius} 8.0 {_p3} 6
set_char_heading 51@ {heading} 90.0
give_weapon_to_char 51@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 51@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 51@ {state} True
110@ = add_blip_for_char 51@
change_blip_scale 110@ {size} 1
set_char_accuracy 51@ {accuracy} 181@
add_armour_to_char 51@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1912.1 {y} -1993.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1911.9 {y} -1998.5 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 198.9
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 51@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
52@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1914.8 {y} -1993.5 {z} 12.6
set_inform_respected_friends 52@ {radius} 8.0 {_p3} 6
set_char_heading 52@ {heading} 90.0
give_weapon_to_char 52@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 52@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 52@ {state} True
111@ = add_blip_for_char 52@
change_blip_scale 111@ {size} 1
set_char_accuracy 52@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1912.1 {y} -1993.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1911.0 {y} -1997.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 36.7
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 52@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_34759
if 
  157@ == 1
goto_if_false @RIOT2_35201
  rotate_object $2714 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
53@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1898.3 {y} -1999.9 {z} 12.6
set_inform_respected_friends 53@ {radius} 8.0 {_p3} 6
set_char_heading 53@ {heading} 0.0
give_weapon_to_char 53@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 53@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 53@ {state} True
112@ = add_blip_for_char 53@
change_blip_scale 112@ {size} 1
set_char_accuracy 53@ {accuracy} 181@
add_armour_to_char 53@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1898.4 {y} -1996.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1891.8 {y} -1996.0 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 71.9
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 53@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
54@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1898.3 {y} -1998.9 {z} 12.6
set_inform_respected_friends 54@ {radius} 8.0 {_p3} 6
set_char_heading 54@ {heading} 0.0
give_weapon_to_char 54@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 54@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 54@ {state} True
113@ = add_blip_for_char 54@
change_blip_scale 113@ {size} 1
set_char_accuracy 54@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1898.4 {y} -1996.8 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1892.4 {y} -1995.1 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 302.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 54@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_35201
return 

:RIOT2_35203
if 
  158@ == 1
goto_if_false @RIOT2_35645
  rotate_object $2718 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
55@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1850.4 {y} -2019.5 {z} 12.6
set_inform_respected_friends 55@ {radius} 8.0 {_p3} 6
set_char_heading 55@ {heading} 270.0
give_weapon_to_char 55@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 55@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 55@ {state} True
114@ = add_blip_for_char 55@
change_blip_scale 114@ {size} 1
set_char_accuracy 55@ {accuracy} 181@
add_armour_to_char 55@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1854.1 {y} -2019.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1855.3 {y} -2010.4 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 30.7
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 55@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
56@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1851.7 {y} -2019.5 {z} 12.6
set_inform_respected_friends 56@ {radius} 8.0 {_p3} 6
set_char_heading 56@ {heading} 270.7
give_weapon_to_char 56@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 56@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 56@ {state} True
115@ = add_blip_for_char 56@
change_blip_scale 115@ {size} 1
set_char_accuracy 56@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1854.1 {y} -2019.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1855.3 {y} -2012.4 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 195.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 56@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_35645
if 
  159@ == 1
goto_if_false @RIOT2_36087
  rotate_object $2719 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
57@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1866.7 {y} -2021.1 {z} 12.6
set_inform_respected_friends 57@ {radius} 8.0 {_p3} 6
set_char_heading 57@ {heading} 90.0
give_weapon_to_char 57@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 57@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 57@ {state} True
116@ = add_blip_for_char 57@
change_blip_scale 116@ {size} 1
set_char_accuracy 57@ {accuracy} 181@
add_armour_to_char 57@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1863.3 {y} -2021.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1862.9 {y} -2011.7 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 43.3
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 57@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
58@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1865.5 {y} -2021.3 {z} 12.6
set_inform_respected_friends 58@ {radius} 8.0 {_p3} 6
set_char_heading 58@ {heading} 90.0
give_weapon_to_char 58@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 58@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 58@ {state} True
117@ = add_blip_for_char 58@
change_blip_scale 117@ {size} 1
set_char_accuracy 58@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1863.3 {y} -2021.2 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1863.4 {y} -2013.9 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 154.0
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 58@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_36087
if 
  160@ == 1
goto_if_false @RIOT2_36529
  rotate_object $2720 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
59@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1857.2 {y} -2036.9 {z} 12.6
set_inform_respected_friends 59@ {radius} 8.0 {_p3} 6
set_char_heading 59@ {heading} 0.0
give_weapon_to_char 59@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 59@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 59@ {state} True
118@ = add_blip_for_char 59@
change_blip_scale 118@ {size} 1
set_char_accuracy 59@ {accuracy} 181@
add_armour_to_char 59@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1857.2 {y} -2032.9 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -2026.5 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 198.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 59@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
60@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1857.1 {y} -2035.8 {z} 12.6
set_inform_respected_friends 60@ {radius} 8.0 {_p3} 6
set_char_heading 60@ {heading} 0.0
give_weapon_to_char 60@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 60@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 60@ {state} True
119@ = add_blip_for_char 60@
change_blip_scale 119@ {size} 1
set_char_accuracy 60@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1857.2 {y} -2032.9 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1854.5 {y} -2024.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 346.3
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 60@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_36529
return 

:RIOT2_36531
if 
  161@ == 1
goto_if_false @RIOT2_36973
  rotate_object $2715 {fromAngle} 270.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
61@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1899.3 {y} -2019.5 {z} 12.6
set_inform_respected_friends 61@ {radius} 8.0 {_p3} 6
set_char_heading 61@ {heading} 270.0
give_weapon_to_char 61@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 61@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 61@ {state} True
120@ = add_blip_for_char 61@
change_blip_scale 120@ {size} 1
set_char_accuracy 61@ {accuracy} 181@
add_armour_to_char 61@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1902.1 {y} -2019.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1903.2 {y} -2012.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 330.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 61@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
62@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1900.3 {y} -2019.5 {z} 12.6
set_inform_respected_friends 62@ {radius} 8.0 {_p3} 6
set_char_heading 62@ {heading} 270.7
give_weapon_to_char 62@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 62@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 62@ {state} True
121@ = add_blip_for_char 62@
change_blip_scale 121@ {size} 1
set_char_accuracy 62@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1902.1 {y} -2019.7 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1903.2 {y} -2013.6 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 195.6
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 62@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_36973
if 
  162@ == 1
goto_if_false @RIOT2_37415
  rotate_object $2716 {fromAngle} 90.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
63@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1915.8 {y} -2021.5 {z} 12.6
set_inform_respected_friends 63@ {radius} 8.0 {_p3} 6
set_char_heading 63@ {heading} 90.0
give_weapon_to_char 63@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 63@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 63@ {state} True
122@ = add_blip_for_char 63@
change_blip_scale 122@ {size} 1
set_char_accuracy 63@ {accuracy} 181@
add_armour_to_char 63@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1912.8 {y} -2021.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1912.1 {y} -2012.8 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 21.8
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 63@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
64@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1914.8 {y} -2021.5 {z} 12.6
set_inform_respected_friends 64@ {radius} 8.0 {_p3} 6
set_char_heading 64@ {heading} 90.0
give_weapon_to_char 64@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 64@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 64@ {state} True
123@ = add_blip_for_char 64@
change_blip_scale 123@ {size} 1
set_char_accuracy 64@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1912.8 {y} -2021.4 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1911.7 {y} -2014.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 171.0
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 64@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_37415
if 
  163@ == 1
goto_if_false @RIOT2_37857
  rotate_object $2717 {fromAngle} 0.0 {toAngle} 360.0 {collisionCheck} False
148@ = generate_random_int_in_range 0 {max} 2
65@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1906.1 {y} -2036.9 {z} 12.6
set_inform_respected_friends 65@ {radius} 8.0 {_p3} 6
set_char_heading 65@ {heading} 0.0
give_weapon_to_char 65@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 65@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 65@ {state} True
124@ = add_blip_for_char 65@
change_blip_scale 124@ {size} 1
set_char_accuracy 65@ {accuracy} 181@
add_armour_to_char 65@ {amount} 100
268@ = open_sequence_task 
task_pause -1 {time} 400
task_go_straight_to_coord -1 {x} 1906.0 {y} -2033.5 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1907.3 {y} -2033.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 32.4
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 65@ {sequence} 268@
clear_sequence_task 268@
148@ = generate_random_int_in_range 0 {max} 2
66@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1906.1 {y} -2035.9 {z} 12.6
set_inform_respected_friends 66@ {radius} 8.0 {_p3} 6
set_char_heading 66@ {heading} 0.0
give_weapon_to_char 66@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 66@ {handleOrTemplate} 266@
set_char_kinda_stay_in_same_place 66@ {state} True
125@ = add_blip_for_char 66@
change_blip_scale 125@ {size} 1
set_char_accuracy 66@ {accuracy} 181@
268@ = open_sequence_task 
task_pause -1 {time} 200
task_go_straight_to_coord -1 {x} 1906.0 {y} -2033.5 {z} 12.5 {speed} MoveState.Walk {time} -1
task_follow_path_nodes_to_coord -1 {x} 1906.3 {y} -2030.3 {z} 12.6 {speed} MoveState.Sprint {time} -2
task_achieve_heading -1 {heading} 315.5
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 66@ {sequence} 268@
clear_sequence_task 268@

:RIOT2_37857
return 

:RIOT2_37859
if 
  167@ == 1
goto_if_false @RIOT2_37923
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_37923
remove_blip 89@
89@ = add_blip_for_char $cesar
set_blip_as_friendly 89@ {state} True
167@ = 0

:RIOT2_37923
if 
  167@ == 0
goto_if_false @RIOT2_38065
if 
  locate_char_any_means_char_3d $scplayer {target} $cesar {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @RIOT2_38065
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_38008
make_room_in_player_gang_for_mission_peds 1
set_group_member $Players_Group {handle} $cesar

:RIOT2_38008
remove_blip 89@
if 
  177@ > 2
goto_if_false @RIOT2_38058
89@ = add_blip_for_coord 1774.9 {y} -1974.9 {z} 13.1
set_blip_as_friendly 89@ {state} False

:RIOT2_38058
167@ = 1

:RIOT2_38065
return 

:RIOT2_38067
if 
  is_char_dead 79@
goto_if_false @RIOT2_38283
148@ = generate_random_int_in_range 0 {max} 2
79@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1860.1 {y} -2094.8 {z} 14.0
set_char_heading 79@ {heading} 187.0
give_weapon_to_char 79@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 79@ {handleOrTemplate} 266@
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 4000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 79@ {sequence} 268@
clear_sequence_task 268@
132@ = add_blip_for_char 79@
change_blip_scale 132@ {size} 1
set_char_accuracy 79@ {accuracy} 181@
add_armour_to_char 79@ {amount} 50

:RIOT2_38283
if 
  is_char_dead 80@
goto_if_false @RIOT2_38532
148@ = generate_random_int_in_range 0 {max} 2
80@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1857.3 {y} -2094.8 {z} 14.0
set_char_heading 80@ {heading} 187.0
give_weapon_to_char 80@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 80@ {handleOrTemplate} 266@
task_play_anim 80@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 6000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 80@ {sequence} 268@
clear_sequence_task 268@
133@ = add_blip_for_char 80@
change_blip_scale 133@ {size} 1
set_char_accuracy 80@ {accuracy} 181@

:RIOT2_38532
if 
  is_char_dead 81@
goto_if_false @RIOT2_38788
148@ = generate_random_int_in_range 0 {max} 2
81@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1854.3 {y} -2094.8 {z} 14.0
set_char_heading 81@ {heading} 187.0
give_weapon_to_char 81@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 81@ {handleOrTemplate} 266@
task_play_anim 81@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 8000
task_climb -1 {flag} True
task_shoot_at_coord -1 {x} 1874.4 {y} -2101.5 {z} 14.8 {time} 2000
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 81@ {sequence} 268@
clear_sequence_task 268@
134@ = add_blip_for_char 81@
change_blip_scale 134@ {size} 1
set_char_accuracy 81@ {accuracy} 181@
add_armour_to_char 81@ {amount} 50

:RIOT2_38788
if 
  is_char_dead 82@
goto_if_false @RIOT2_39015
148@ = generate_random_int_in_range 0 {max} 2
82@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1859.1 {y} -2108.8 {z} 14.0
set_char_heading 82@ {heading} 2.0
give_weapon_to_char 82@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 82@ {handleOrTemplate} 266@
task_play_anim 82@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 5000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 82@ {sequence} 268@
clear_sequence_task 268@
135@ = add_blip_for_char 82@
change_blip_scale 135@ {size} 1
set_char_accuracy 82@ {accuracy} 181@

:RIOT2_39015
if 
  is_char_dead 83@
goto_if_false @RIOT2_39249
148@ = generate_random_int_in_range 0 {max} 2
83@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1856.3 {y} -2108.8 {z} 14.0
set_char_heading 83@ {heading} 2.0
give_weapon_to_char 83@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 83@ {handleOrTemplate} 266@
task_play_anim 83@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 7000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 83@ {sequence} 268@
clear_sequence_task 268@
136@ = add_blip_for_char 83@
change_blip_scale 136@ {size} 1
set_char_accuracy 83@ {accuracy} 181@
add_armour_to_char 83@ {amount} 50

:RIOT2_39249
if 
  is_char_dead 84@
goto_if_false @RIOT2_39476
148@ = generate_random_int_in_range 0 {max} 2
84@ = create_char PedType.Mission2 {modelId} 146@(148@,2i) {x} 1853.3 {y} -2108.8 {z} 14.0
set_char_heading 84@ {heading} 2.0
give_weapon_to_char 84@ {weaponType} WeaponType.Tec9 {ammo} 3000
set_char_decision_maker 84@ {handleOrTemplate} 266@
task_play_anim 84@ {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
268@ = open_sequence_task 
task_play_anim -1 {animationName} "WEAPON_CROUCH" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_pause -1 {time} 9000
task_climb -1 {flag} True
task_set_char_decision_maker -1 {handleOrTemplate} 265@
close_sequence_task 268@
perform_sequence_task 84@ {sequence} 268@
clear_sequence_task 268@
137@ = add_blip_for_char 84@
change_blip_scale 137@ {size} 1
set_char_accuracy 84@ {accuracy} 181@

:RIOT2_39476
return 

:RIOT2_39478
if or
  185@ == 1
  185@ == 4
  185@ == 6
  185@ == 8
  185@ == 9
goto_if_false @RIOT2_39578
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39571
gosub @RIOT2_43165
gosub @RIOT2_43272
gosub @RIOT2_43426
goto @RIOT2_39578

:RIOT2_39571
185@ = 0

:RIOT2_39578
if or
  185@ == 10
  185@ == 11
  185@ == 12
  185@ == 13
goto_if_false @RIOT2_39671
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39664
gosub @RIOT2_43165
gosub @RIOT2_43272
gosub @RIOT2_43426
goto @RIOT2_39671

:RIOT2_39664
185@ = 0

:RIOT2_39671
if or
  185@ == 5
  185@ == 7
goto_if_false @RIOT2_39804
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39797
gosub @RIOT2_43165
gosub @RIOT2_43272
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_39759
gosub @RIOT2_43426
goto @RIOT2_39790

:RIOT2_39759
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_39790
goto @RIOT2_39804

:RIOT2_39797
185@ = 0

:RIOT2_39804
if 
  185@ == 9
goto_if_false @RIOT2_39930
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_39923
gosub @RIOT2_43165
gosub @RIOT2_43272
if 
  not is_char_dead 35@
goto_if_false @RIOT2_39885
gosub @RIOT2_43426
goto @RIOT2_39916

:RIOT2_39885
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_39916
goto @RIOT2_39930

:RIOT2_39923
185@ = 0

:RIOT2_39930
if 
  142@ == 0
goto_if_false @RIOT2_40910
if 
  143@ > 2
goto_if_false @RIOT2_40910
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40336
if 
  locate_char_any_means_char_3d $cesar {target} $scplayer {xRadius} 10.0 {yRadius} 10.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @RIOT2_40329
if and
  is_char_on_foot $scplayer
  is_char_on_foot $cesar
goto_if_false @RIOT2_40175
if or
  185@ == 2
  185@ == 3
goto_if_false @RIOT2_40175
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40168
gosub @RIOT2_43165
gosub @RIOT2_43272
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_40130
gosub @RIOT2_43426
goto @RIOT2_40161

:RIOT2_40130
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_40161
goto @RIOT2_40175

:RIOT2_40168
185@ = 0

:RIOT2_40175
if and
  is_char_in_any_car $scplayer
  is_char_in_any_car $cesar
goto_if_false @RIOT2_40329
if or
  185@ == 2
  185@ == 3
goto_if_false @RIOT2_40329
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40322
gosub @RIOT2_43165
gosub @RIOT2_43272
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_40284
gosub @RIOT2_43426
goto @RIOT2_40315

:RIOT2_40284
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_40315
goto @RIOT2_40329

:RIOT2_40322
185@ = 0

:RIOT2_40329
goto @RIOT2_40453

:RIOT2_40336
if 
  14 > 185@
goto_if_false @RIOT2_40453
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40380
186@ += 1

:RIOT2_40380
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
clear_prints 
set_lvar_int_to_lvar_int 260@ = 185@
set_lvar_int_to_lvar_int 261@ = 186@
185@ = 14
186@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912

:RIOT2_40453
if 
  185@ == 14
goto_if_false @RIOT2_40644
if 
  not is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40621
if 
  is_int_lvar_greater_than_int_lvar 255@ > 186@
goto_if_false @RIOT2_40591
gosub @RIOT2_43165
gosub @RIOT2_43272
if 
  not is_char_dead $cesar
goto_if_false @RIOT2_40553
gosub @RIOT2_43426
goto @RIOT2_40584

:RIOT2_40553
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
256@ = 0
257@ = 0

:RIOT2_40584
goto @RIOT2_40614

:RIOT2_40591
print_now 'R2_12' {time} 7000 {flag} 1
185@ = 15

:RIOT2_40614
goto @RIOT2_40644

:RIOT2_40621
print_now 'R2_12' {time} 7000 {flag} 1
185@ = 15

:RIOT2_40644
if 
  185@ == 15
goto_if_false @RIOT2_40697
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40697
185@ = 16
186@ = 0
clear_prints 

:RIOT2_40697
if 
  185@ == 16
goto_if_false @RIOT2_40910
if 
  is_group_member $cesar {handle} $Players_Group
goto_if_false @RIOT2_40855
TIMERB = 0
set_lvar_int_to_lvar_int 185@ = 260@
set_lvar_int_to_lvar_int 186@ = 261@
gosub @RIOT2_40912
if 
  260@ == 0
goto_if_false @RIOT2_40848
if 
  3 > 177@
goto_if_false @RIOT2_40825
print_now 'R2_01' {time} 60000 {flag} 1
goto @RIOT2_40841

:RIOT2_40825
print_now 'R2_13' {time} 7000 {flag} 1

:RIOT2_40841
TIMERB = 0

:RIOT2_40848
goto @RIOT2_40910

:RIOT2_40855
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
clear_this_print 189@(186@,22s)
185@ = 14
186@ = generate_random_int_in_range 0 {max} 4
set_lvar_int_to_lvar_int 188@ = 186@
188@ += 1
gosub @RIOT2_40912

:RIOT2_40910
return 

:RIOT2_40912
if 
  185@ == 1
goto_if_false @RIOT2_41033
set_lvar_text_label 189@s = 'ROT2_AA'
set_lvar_text_label 191@s = 'ROT2_AB'
set_lvar_text_label 193@s = 'ROT2_AD'
set_lvar_text_label 195@s = 'ROT2_AE'
set_lvar_int_to_constant 233@ = 33000
set_lvar_int_to_constant 234@ = 33001
set_lvar_int_to_constant 235@ = 33002
set_lvar_int_to_constant 236@ = 33003
255@ = 4

:RIOT2_41033
if 
  185@ == 2
goto_if_false @RIOT2_41154
set_lvar_text_label 189@s = 'ROT2_BA'
set_lvar_text_label 191@s = 'ROT2_BB'
set_lvar_text_label 193@s = 'ROT2_BC'
set_lvar_text_label 195@s = 'ROT2_BD'
set_lvar_int_to_constant 233@ = 33004
set_lvar_int_to_constant 234@ = 33005
set_lvar_int_to_constant 235@ = 33006
set_lvar_int_to_constant 236@ = 33007
255@ = 4

:RIOT2_41154
if 
  185@ == 3
goto_if_false @RIOT2_41563
set_lvar_text_label 189@s = 'ROT2_CA'
set_lvar_text_label 191@s = 'ROT2_CB'
set_lvar_text_label 193@s = 'ROT2_CC'
set_lvar_text_label 195@s = 'ROT2_CD'
set_lvar_text_label 197@s = 'ROT2_CE'
set_lvar_text_label 199@s = 'ROT2_CF'
set_lvar_text_label 201@s = 'ROT2_CG'
set_lvar_text_label 203@s = 'ROT2_CH'
set_lvar_text_label 205@s = 'ROT2_CJ'
set_lvar_text_label 207@s = 'ROT2_CK'
set_lvar_text_label 209@s = 'ROT2_CL'
set_lvar_text_label 211@s = 'ROT2_CM'
set_lvar_text_label 213@s = 'ROT2_CN'
set_lvar_text_label 215@s = 'ROT2_CO'
set_lvar_text_label 217@s = 'ROT2_CP'
set_lvar_text_label 219@s = 'ROT2_CQ'
set_lvar_int_to_constant 233@ = 33008
set_lvar_int_to_constant 234@ = 33009
set_lvar_int_to_constant 235@ = 33010
set_lvar_int_to_constant 236@ = 33011
set_lvar_int_to_constant 237@ = 33012
set_lvar_int_to_constant 238@ = 33013
set_lvar_int_to_constant 239@ = 33014
set_lvar_int_to_constant 240@ = 33015
set_lvar_int_to_constant 241@ = 33016
set_lvar_int_to_constant 242@ = 33017
set_lvar_int_to_constant 243@ = 33018
set_lvar_int_to_constant 244@ = 33019
set_lvar_int_to_constant 245@ = 33020
set_lvar_int_to_constant 246@ = 33021
set_lvar_int_to_constant 247@ = 33022
set_lvar_int_to_constant 248@ = 33023
255@ = 16

:RIOT2_41563
if 
  185@ == 4
goto_if_false @RIOT2_41829
set_lvar_text_label 189@s = 'ROT2_DA'
set_lvar_text_label 191@s = 'ROT2_DB'
set_lvar_text_label 193@s = 'ROT2_DC'
set_lvar_text_label 195@s = 'ROT2_DD'
set_lvar_text_label 197@s = 'ROT2_DE'
set_lvar_text_label 199@s = 'ROT2_DF'
set_lvar_text_label 205@s = 'ROT2_DJ'
set_lvar_text_label 207@s = 'ROT2_DK'
set_lvar_text_label 209@s = 'ROT2_DL'
set_lvar_text_label 211@s = 'ROT2_DM'
set_lvar_int_to_constant 233@ = 33024
set_lvar_int_to_constant 234@ = 33025
set_lvar_int_to_constant 235@ = 33026
set_lvar_int_to_constant 236@ = 33027
set_lvar_int_to_constant 237@ = 33028
set_lvar_int_to_constant 238@ = 33029
set_lvar_int_to_constant 241@ = 33031
set_lvar_int_to_constant 242@ = 33032
set_lvar_int_to_constant 243@ = 33033
set_lvar_int_to_constant 244@ = 33034
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_41829
if 
  185@ == 5
goto_if_false @RIOT2_42071
set_lvar_text_label 189@s = 'ROT2_EA'
set_lvar_text_label 195@s = 'ROT2_ED'
set_lvar_text_label 197@s = 'ROT2_EE'
set_lvar_text_label 199@s = 'ROT2_EF'
set_lvar_text_label 201@s = 'ROT2_EG'
set_lvar_text_label 203@s = 'ROT2_EH'
set_lvar_text_label 205@s = 'ROT2_EJ'
set_lvar_text_label 211@s = 'ROT2_EM'
set_lvar_text_label 213@s = 'ROT2_EN'
set_lvar_int_to_constant 233@ = 33035
set_lvar_int_to_constant 236@ = 33038
set_lvar_int_to_constant 237@ = 33039
set_lvar_int_to_constant 238@ = 33040
set_lvar_int_to_constant 239@ = 33041
set_lvar_int_to_constant 240@ = 33042
set_lvar_int_to_constant 241@ = 33043
set_lvar_int_to_constant 244@ = 33046
set_lvar_int_to_constant 245@ = 33047
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42071
if 
  185@ == 6
goto_if_false @RIOT2_42265
set_lvar_text_label 189@s = 'ROT2_FA'
set_lvar_text_label 191@s = 'ROT2_FB'
set_lvar_text_label 193@s = 'ROT2_FC'
set_lvar_text_label 195@s = 'ROT2_FD'
set_lvar_text_label 197@s = 'ROT2_FE'
set_lvar_text_label 199@s = 'ROT2_FG'
set_lvar_text_label 201@s = 'ROT2_FH'
set_lvar_int_to_constant 233@ = 33059
set_lvar_int_to_constant 234@ = 33060
set_lvar_int_to_constant 235@ = 33061
set_lvar_int_to_constant 236@ = 33062
set_lvar_int_to_constant 237@ = 33063
set_lvar_int_to_constant 238@ = 33064
set_lvar_int_to_constant 239@ = 33065
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42265
if 
  185@ == 7
goto_if_false @RIOT2_42314
set_lvar_text_label 189@s = 'ROT2_GA'
set_lvar_int_to_constant 233@ = 33066
255@ = 1

:RIOT2_42314
if 
  185@ == 8
goto_if_false @RIOT2_42435
set_lvar_text_label 189@s = 'ROT2_GB'
set_lvar_text_label 191@s = 'ROT2_GC'
set_lvar_text_label 193@s = 'ROT2_GD'
set_lvar_text_label 195@s = 'ROT2_EW'
set_lvar_int_to_constant 233@ = 33067
set_lvar_int_to_constant 234@ = 33068
set_lvar_int_to_constant 235@ = 33069
set_lvar_int_to_constant 236@ = 33056
255@ = 4

:RIOT2_42435
if 
  185@ == 9
goto_if_false @RIOT2_42533
set_lvar_text_label 189@s = 'ROT2_HA'
set_lvar_text_label 191@s = 'ROT2_HB'
set_lvar_text_label 193@s = 'ROT2_HC'
set_lvar_int_to_constant 233@ = 33070
set_lvar_int_to_constant 234@ = 33071
set_lvar_int_to_constant 235@ = 33072
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42533
if 
  185@ == 10
goto_if_false @RIOT2_42606
set_lvar_text_label 189@s = 'ROT2_JA'
set_lvar_text_label 191@s = 'ROT2_JB'
set_lvar_int_to_constant 233@ = 33073
set_lvar_int_to_constant 234@ = 33074
255@ = 2

:RIOT2_42606
if 
  185@ == 11
goto_if_false @RIOT2_42704
set_lvar_text_label 189@s = 'ROT2_KA'
set_lvar_text_label 191@s = 'ROT2_KB'
set_lvar_text_label 193@s = 'ROT2_KC'
set_lvar_int_to_constant 233@ = 33075
set_lvar_int_to_constant 234@ = 33076
set_lvar_int_to_constant 235@ = 33077
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42704
if 
  185@ == 12
goto_if_false @RIOT2_42802
set_lvar_text_label 189@s = 'ROT2_LA'
set_lvar_text_label 191@s = 'ROT2_LB'
set_lvar_text_label 193@s = 'ROT2_LC'
set_lvar_int_to_constant 233@ = 33078
set_lvar_int_to_constant 234@ = 33079
set_lvar_int_to_constant 235@ = 33080
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_42802
if 
  185@ == 13
goto_if_false @RIOT2_43020
set_lvar_text_label 189@s = 'ROT2_MA'
set_lvar_text_label 191@s = 'ROT2_MB'
set_lvar_text_label 193@s = 'ROT2_MC'
set_lvar_text_label 195@s = 'ROT2_MD'
set_lvar_text_label 197@s = 'ROT2_ME'
set_lvar_text_label 199@s = 'ROT2_MF'
set_lvar_text_label 201@s = 'ROT2_MG'
set_lvar_text_label 203@s = 'ROT2_MH'
set_lvar_int_to_constant 233@ = 33081
set_lvar_int_to_constant 234@ = 33082
set_lvar_int_to_constant 235@ = 33083
set_lvar_int_to_constant 236@ = 33084
set_lvar_int_to_constant 237@ = 33085
set_lvar_int_to_constant 238@ = 33086
set_lvar_int_to_constant 239@ = 33087
set_lvar_int_to_constant 240@ = 33088
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_43020
if 
  185@ == 14
goto_if_false @RIOT2_43134
set_lvar_text_label 189@s = 'CESX_BA'
set_lvar_text_label 191@s = 'CESX_BB'
set_lvar_text_label 193@s = 'CESX_BC'
set_lvar_text_label 195@s = 'CESX_BD'
set_lvar_int_to_constant 233@ = 10406
set_lvar_int_to_constant 234@ = 10407
set_lvar_int_to_constant 235@ = 10408
set_lvar_int_to_constant 236@ = 10409
set_lvar_int_to_lvar_int 255@ = 188@

:RIOT2_43134
set_lvar_int_to_lvar_int 258@ = 186@
256@ = 0
257@ = 0
259@ = 1
return 

:RIOT2_43165
if 
  is_int_lvar_greater_than_int_lvar 255@ > 258@
goto_if_false @RIOT2_43270
if 
  256@ == 0
goto_if_false @RIOT2_43227
load_mission_audio MissionAudioSlot.Slot1 {audioId} 233@(258@,22i)
258@ += 1
256@ = 1

:RIOT2_43227
if 
  257@ == 0
goto_if_false @RIOT2_43270
load_mission_audio MissionAudioSlot.Slot2 {audioId} 233@(258@,22i)
258@ += 1
257@ = 1

:RIOT2_43270
return 

:RIOT2_43272
if 
  259@ == 1
goto_if_false @RIOT2_43348
if 
  256@ == 1
goto_if_false @RIOT2_43348
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @RIOT2_43348
play_mission_audio MissionAudioSlot.Slot1
print_now 189@(186@,22s) {time} 4500 {flag} 1
256@ = 2

:RIOT2_43348
if 
  259@ == 2
goto_if_false @RIOT2_43424
if 
  257@ == 1
goto_if_false @RIOT2_43424
if 
  has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @RIOT2_43424
play_mission_audio MissionAudioSlot.Slot2
print_now 189@(186@,22s) {time} 4500 {flag} 1
257@ = 2

:RIOT2_43424
return 

:RIOT2_43426
if 
  256@ == 2
goto_if_false @RIOT2_43489
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @RIOT2_43489
clear_this_print 189@(186@,22s)
186@ += 1
259@ = 2
256@ = 0

:RIOT2_43489
if 
  257@ == 2
goto_if_false @RIOT2_43552
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @RIOT2_43552
clear_this_print 189@(186@,22s)
186@ += 1
259@ = 1
257@ = 0

:RIOT2_43552
return 

//-------------Mission 110---------------
// Originally: End Of The Line (1)

:FINALEA
gosub @FINALEA_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEA_27
gosub @FINALEA_32509

:FINALEA_27
gosub @FINALEA_32621
terminate_this_script 

:FINALEA_36
$onmission = 1
register_mission_given 
script_name 'FINALEA'
wait 0
load_mission_text 'RIOT4'
set_area_visible 1
load_cutscene 'RIOT_4A'

:FINALEA_86
if 
  not has_cutscene_loaded 
goto_if_false @FINALEA_110
wait 0
goto @FINALEA_86

:FINALEA_110
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEA_119
if 
  not has_cutscene_finished 
goto_if_false @FINALEA_143
wait 0
goto @FINALEA_119

:FINALEA_143
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEA_158
if 
  get_fading_status 
goto_if_false @FINALEA_182
wait 0
goto @FINALEA_158

:FINALEA_182
set_area_visible 0
request_model 601
request_model 596
request_model 285
request_model 102
request_model 492
load_special_character 1 {modelName} 'SWEET'
remove_ipl "CARTER"
request_ipl "CARTER"
load_all_models_now 

:FINALEA_245
if or
  not has_model_loaded 492
  not has_special_character_loaded 1
goto_if_false @FINALEA_276
wait 0
goto @FINALEA_245

:FINALEA_276
if or
  not has_model_loaded 601
  not has_model_loaded 596
  not has_model_loaded 285
  not has_model_loaded 102
goto_if_false @FINALEA_317
wait 0
goto @FINALEA_276

:FINALEA_317
set_char_coordinates $scplayer {x} 2514.7451 {y} -1673.838 {z} 12.8
set_char_heading $scplayer {heading} 60.891
47@ = load_char_decision_maker DecisionMakerType.Empty
49@ = load_char_decision_maker DecisionMakerType.Tough
48@ = load_char_decision_maker DecisionMakerType.Weak
set_max_wanted_level 0
switch_emergency_services False
delete_object $carterwall
$carterwall = create_object_no_offset #IMY_SHASH_WALL {x} 2522.0081 {y} -1272.9301 {z} 35.609
set_object_health $carterwall {health} 100
set_object_collision_damage_effect $carterwall {state} False
freeze_object_position $carterwall {state} True
set_object_collision_damage_effect $carterwall {state} True
custom_plate_for_next_car 492 {text} "GROVE4L_"
$sweet_car = create_car 492 {x} 2507.823 {y} -1671.88 {z} 12.1678
set_car_heading $sweet_car {heading} 347.15
set_car_only_damaged_by_player $sweet_car {state} True
128@ = add_blip_for_car $sweet_car
set_blip_as_friendly 128@ {state} True
change_car_colour $sweet_car {color1} 59 {color2} 34
set_car_health $sweet_car {health} 2000
set_can_burst_car_tyres $sweet_car {state} False
set_car_can_be_visibly_damaged $sweet_car {state} False
$sweet = create_char PedType.Special {modelId} 290 {x} 2511.1689 {y} -1672.7469 {z} 12.493
set_char_get_out_upside_down_car $sweet {state} False
set_char_heading $sweet {heading} 68.365
set_char_never_targetted $sweet {state} True
set_char_only_damaged_by_player $sweet {state} True
task_enter_car_as_passenger $sweet {vehicle} $sweet_car {time} 5000 {seat} SeatId.BikeRear
set_char_cant_be_dragged_out $sweet {state} True
set_char_stay_in_car_when_jacked $sweet {state} True
set_char_decision_maker $sweet {handleOrTemplate} 47@
set_char_never_targetted $sweet {state} True
set_char_suffers_critical_hits $sweet {state} False
102@ = create_fx_system "WALLBUST" {x} 2521.8601 {y} -1272.66 {z} 35.04 {ignoreBoundingChecks} True
set_time_of_day 21 {minutes} 30
set_max_fire_generations 0
switch_widescreen False
load_scene 2511.75 {y} -1672.15 {z} 14.0
do_fade 1000 {direction} Fade.In
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
print_now 'RM4_1' {time} 7000 {flag} 1
set_player_group_recruitment $player1 {state} False
41@ = 2505.2151
41@ -= 2508.1699
42@ = -1261.351
42@ -= -1267.8781
43@ = 43.8341
43@ -= 48.0744
44@ = 2506.0029
44@ -= 2508.3511
45@ = -1261.802
45@ -= -1268.8571
46@ = 43.4146
46@ -= 47.9824
35@ = 2508.1699
36@ = -1267.8781
37@ = 48.0744
38@ = 2508.3511
39@ = -1268.8571
40@ = 47.9824
34@ = 160.0
div_float_lvar_by_float_lvar 41@ /= 34@
div_float_lvar_by_float_lvar 42@ /= 34@
div_float_lvar_by_float_lvar 43@ /= 34@
div_float_lvar_by_float_lvar 44@ /= 34@
div_float_lvar_by_float_lvar 45@ /= 34@
div_float_lvar_by_float_lvar 46@ /= 34@
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
156@ = 0
157@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
169@ = 0
170@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
184@ = 0
185@ = 0
186@ = 0
187@ = 0
188@ = 0
189@ = 0
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
create_script_roadblock 2336.6299 {leftBottomY} -1548.6801 {leftBottomZ} 23.99 {rightTopX} 2347.01 {rightTopY} -1548.37 {rightTopZ} 23.68 {type} 1
create_script_roadblock 2506.76 {leftBottomY} -1432.29 {leftBottomZ} 28.13 {rightTopX} 2516.6299 {rightTopY} -1430.51 {rightTopZ} 27.82 {type} 1
create_script_roadblock 2462.0 {leftBottomY} -1449.0 {leftBottomZ} 24.0 {rightTopX} 2463.0 {rightTopY} -1439.0 {rightTopZ} 24.0 {type} 1

:FINALEA_1473
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @FINALEA_1499
goto @FINALEA_32590

:FINALEA_1499
if 
  147@ == 0
goto_if_false @FINALEA_7233
if 
  146@ == 0
goto_if_false @FINALEA_1641
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_1641
if 
  not is_char_dead $sweet
goto_if_false @FINALEA_1641
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_1641
remove_blip 128@
128@ = add_blip_for_coord 2507.8201 {y} -1309.226 {z} 33.6726
print_now 'RM4_2' {time} 5000 {flag} 1
TIMERB = 0
146@ = 1

:FINALEA_1641
if 
  146@ == 1
goto_if_false @FINALEA_2474
gosub @FINALEA_31495
if 
  193@ == 0
goto_if_false @FINALEA_1752
if 
  194@ == 0
goto_if_false @FINALEA_1752
if 
  TIMERB > 5500
goto_if_false @FINALEA_1752
set_lvar_int_to_constant 125@ = 33200
set_lvar_text_label 126@s = 'ROT4_AA'
gosub @FINALEA_31453

:FINALEA_1752
if 
  193@ == 1
goto_if_false @FINALEA_1819
if 
  194@ == 0
goto_if_false @FINALEA_1819
set_lvar_int_to_constant 125@ = 33201
set_lvar_text_label 126@s = 'ROT4_AB'
gosub @FINALEA_31453

:FINALEA_1819
if 
  193@ == 2
goto_if_false @FINALEA_1893
if 
  194@ == 0
goto_if_false @FINALEA_1893
set_lvar_int_to_constant 125@ = 33202
set_lvar_text_label 126@s = 'ROT4_AC'
gosub @FINALEA_31453
TIMERB = 0

:FINALEA_1893
if 
  193@ == 3
goto_if_false @FINALEA_1979
if 
  194@ == 0
goto_if_false @FINALEA_1979
if 
  TIMERB > 3000
goto_if_false @FINALEA_1979
set_lvar_int_to_constant 125@ = 33203
set_lvar_text_label 126@s = 'ROT4_BA'
gosub @FINALEA_31453

:FINALEA_1979
if 
  193@ == 4
goto_if_false @FINALEA_2053
if 
  194@ == 0
goto_if_false @FINALEA_2053
set_lvar_int_to_constant 125@ = 33204
set_lvar_text_label 126@s = 'ROT4_BB'
gosub @FINALEA_31453
TIMERA = 0

:FINALEA_2053
if 
  193@ == 5
goto_if_false @FINALEA_2139
if 
  194@ == 0
goto_if_false @FINALEA_2139
if 
  TIMERB > 12000
goto_if_false @FINALEA_2139
set_lvar_int_to_constant 125@ = 33205
set_lvar_text_label 126@s = 'ROT4_BC'
gosub @FINALEA_31453

:FINALEA_2139
if 
  193@ == 6
goto_if_false @FINALEA_2206
if 
  194@ == 0
goto_if_false @FINALEA_2206
set_lvar_int_to_constant 125@ = 33207
set_lvar_text_label 126@s = 'ROT4_BE'
gosub @FINALEA_31453

:FINALEA_2206
if 
  193@ == 7
goto_if_false @FINALEA_2273
if 
  194@ == 0
goto_if_false @FINALEA_2273
set_lvar_int_to_constant 125@ = 33208
set_lvar_text_label 126@s = 'ROT4_BF'
gosub @FINALEA_31453

:FINALEA_2273
if 
  193@ == 8
goto_if_false @FINALEA_2340
if 
  194@ == 0
goto_if_false @FINALEA_2340
set_lvar_int_to_constant 125@ = 33209
set_lvar_text_label 126@s = 'ROT4_BG'
gosub @FINALEA_31453

:FINALEA_2340
if 
  193@ == 9
goto_if_false @FINALEA_2407
if 
  194@ == 0
goto_if_false @FINALEA_2407
set_lvar_int_to_constant 125@ = 33210
set_lvar_text_label 126@s = 'ROT4_BH'
gosub @FINALEA_31453

:FINALEA_2407
if 
  193@ == 10
goto_if_false @FINALEA_2474
if 
  194@ == 0
goto_if_false @FINALEA_2474
set_lvar_int_to_constant 125@ = 33211
set_lvar_text_label 126@s = 'ROT4_BJ'
gosub @FINALEA_31453

:FINALEA_2474
if 
  146@ == 1
goto_if_false @FINALEA_4955
if 
  not is_char_dead $sweet
goto_if_false @FINALEA_4955
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_4955
if 
  locate_car_3d $sweet_car {x} 2507.8201 {y} -1309.226 {z} 33.85 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @FINALEA_4955
if 
  is_char_sitting_in_car $sweet {vehicle} $sweet_car
goto_if_false @FINALEA_4955
if 
  is_char_sitting_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_4955
set_player_control $player1 {state} False
$car = store_car_char_is_in_no_save $scplayer
task_car_temp_action $scplayer {vehicle} $car {actionId} TempAction.HandbrakeStraight {time} 2000000
remove_blip 128@
clear_all_script_roadblocks 
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs $sweet_car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
load_mission_audio MissionAudioSlot.Slot3 {audioId} 14600
load_mission_audio MissionAudioSlot.Slot2 {audioId} 33212
load_all_models_now 
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
do_fade 500 {direction} Fade.Out

:FINALEA_2716
if 
  get_fading_status 
goto_if_false @FINALEA_2740
wait 0
goto @FINALEA_2716

:FINALEA_2740
if or
  not has_mission_audio_loaded MissionAudioSlot.Slot3
  not has_mission_audio_loaded MissionAudioSlot.Slot2
goto_if_false @FINALEA_2770
wait 0
goto @FINALEA_2740

:FINALEA_2770
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_2823
set_car_coordinates $sweet_car {x} 2536.709 {y} -1278.2531 {z} 52.57
set_car_heading $sweet_car {heading} 359.954
lock_car_doors $sweet_car {lockStatus} CarLock.Locked

:FINALEA_2823
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 2536.709 {y} -1278.2531 {z} 100.0 {radius} 100.0 {clearParticles} True
load_cutscene 'RIOT_4B'

:FINALEA_2872
if 
  not has_cutscene_loaded 
goto_if_false @FINALEA_2896
wait 0
goto @FINALEA_2872

:FINALEA_2896
clear_area 2536.709 {y} -1278.2531 {z} 100.0 {radius} 100.0 {clearParticles} True
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEA_2929
if 
  not has_cutscene_finished 
goto_if_false @FINALEA_2953
wait 0
goto @FINALEA_2929

:FINALEA_2953
clear_cutscene 
do_fade 0 {direction} Fade.Out

:FINALEA_2961
if 
  get_fading_status 
goto_if_false @FINALEA_2985
wait 0
goto @FINALEA_2961

:FINALEA_2985
set_player_control $player1 {state} False
clear_area 2372.01 {y} -1306.609 {z} 300.0 {radius} 300.0 {clearParticles} False
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_3069
set_car_coordinates $sweet_car {x} 2507.8201 {y} -1309.226 {z} 33.2726
set_car_heading $sweet_car {heading} 1.7082
lock_car_doors $sweet_car {lockStatus} CarLock.Locked

:FINALEA_3069
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @FINALEA_3112
warp_char_from_car_to_coord $scplayer {x} 2509.781 {y} -1308.965 {z} 34.7125
goto @FINALEA_3132

:FINALEA_3112
set_char_coordinates $scplayer {x} 2509.781 {y} -1308.965 {z} 34.7125

:FINALEA_3132
set_char_heading $scplayer {heading} 352.414
clear_area 2372.01 {y} -1306.609 {z} 300.0 {radius} 300.0 {clearParticles} False
wait 2000
set_fixed_camera_position 35@ {y} 36@ {z} 37@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 38@ {y} 39@ {z} 40@ {switchStyle} SwitchType.JumpCut
request_model 481
request_model 353
request_model 355
request_model 63
request_animation "CRACK"
switch_roads_off 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_ped_roads_off 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_roads_off 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_ped_roads_off 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_roads_off 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
switch_ped_roads_off 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
clear_area 2356.3999 {y} -1233.16 {z} 300.0 {radius} 300.0 {clearParticles} True
load_all_models_now 

:FINALEA_3456
if or
  not has_model_loaded 481
  not has_model_loaded 353
  not has_model_loaded 355
  not has_animation_loaded "CRACK"
  not has_model_loaded 63
goto_if_false @FINALEA_3506
wait 0
goto @FINALEA_3456

:FINALEA_3506
50@ = create_group DefaultTaskAllocator.StandStill
51@ = create_group DefaultTaskAllocator.StandStill
52@ = create_group DefaultTaskAllocator.StandStill
54@ = create_car 596 {x} 2373.803 {y} -1314.172 {z} 22.8398
set_car_heading 54@ {heading} 292.1921
set_car_only_damaged_by_player 54@ {state} True
set_car_health 54@ {health} 500
55@ = create_car 596 {x} 2368.04 {y} -1315.7061 {z} 22.8459
set_car_heading 55@ {heading} 96.2549
set_car_only_damaged_by_player 55@ {state} True
lock_car_doors 55@ {lockStatus} CarLock.Unlocked
57@ = create_car 601 {x} 2374.3601 {y} -1323.792 {z} 22.8389
set_car_heading 57@ {heading} 3.7561
set_car_health 57@ {health} 3000
set_car_heavy 57@ {state} True
set_car_proofs 57@ {bulletProof} True {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_only_damaged_by_player 57@ {state} True
lock_car_doors 57@ {lockStatus} CarLock.Unlocked
set_can_burst_car_tyres 57@ {state} False
58@ = create_car 492 {x} 2365.6121 {y} -1294.829 {z} 22.8433
set_car_heading 58@ {heading} 97.3729
set_car_health 58@ {health} 500
set_car_only_damaged_by_player 58@ {state} True
59@ = create_car 492 {x} 2372.4309 {y} -1295.272 {z} 22.8418
set_car_heading 59@ {heading} 75.2267
set_car_only_damaged_by_player 59@ {state} True
63@ = create_car 481 {x} 2507.2009 {y} -1300.8409 {z} 33.6726
set_car_heading 63@ {heading} 1.6501
64@ = create_char PedType.Mission2 {modelId} 285 {x} 2366.342 {y} -1317.377 {z} 22.8438
set_char_heading 64@ {heading} 3.9226
set_char_decision_maker 64@ {handleOrTemplate} 49@
set_char_relationship 64@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 64@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_only_damaged_by_player 64@ {state} True
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 64@ {state} True
set_group_leader 50@ {handle} 64@
65@ = create_char PedType.Mission2 {modelId} 285 {x} 2375.8479 {y} -1315.325 {z} 22.8368
set_char_heading 65@ {heading} 4.8178
set_char_decision_maker 65@ {handleOrTemplate} 49@
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 65@ {state} True
give_weapon_to_char 65@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 65@ {state} True
set_group_member 50@ {handle} 65@
66@ = create_char PedType.Mission2 {modelId} 285 {x} 2371.676 {y} -1316.806 {z} 22.8429
set_char_heading 66@ {heading} 0.5529
set_char_decision_maker 66@ {handleOrTemplate} 49@
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 66@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 66@ {state} True
give_weapon_to_char 66@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 66@ {state} True
set_group_member 50@ {handle} 66@
67@ = create_char PedType.Mission2 {modelId} 285 {x} 22370.3594 {y} -1319.4919 {z} 22.8515
set_char_heading 67@ {heading} 177.5538
set_char_decision_maker 67@ {handleOrTemplate} 49@
set_char_relationship 67@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 67@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 67@ {state} True
give_weapon_to_char 67@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 67@ {state} True
set_group_member 50@ {handle} 67@
68@ = create_char PedType.Mission2 {modelId} 285 {x} 2376.4399 {y} -1321.625 {z} 22.9844
set_char_heading 68@ {heading} 177.5538
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_decision_maker 68@ {handleOrTemplate} 49@
set_char_relationship 68@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 68@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_only_damaged_by_player 68@ {state} True
give_weapon_to_char 68@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 68@ {state} True
set_group_member 50@ {handle} 68@
71@ = create_char PedType.Mission1 {modelId} 102 {x} 2364.4319 {y} -1294.0129 {z} 22.9882
set_char_heading 71@ {heading} 177.5538
set_char_decision_maker 71@ {handleOrTemplate} 49@
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_only_damaged_by_player 71@ {state} True
give_weapon_to_char 71@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 71@ {state} True
set_group_leader 51@ {handle} 71@
72@ = create_char PedType.Mission1 {modelId} 102 {x} 2369.5271 {y} -1292.228 {z} 22.8515
set_char_heading 72@ {heading} 177.5538
set_char_decision_maker 72@ {handleOrTemplate} 49@
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 72@ {state} True
give_weapon_to_char 72@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 72@ {state} True
set_group_member 51@ {handle} 72@
73@ = create_char PedType.Mission1 {modelId} 102 {x} 2371.168 {y} -1293.37 {z} 22.8436
set_char_heading 73@ {heading} 177.5538
set_char_decision_maker 73@ {handleOrTemplate} 49@
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_only_damaged_by_player 73@ {state} True
give_weapon_to_char 73@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 73@ {state} True
set_group_member 51@ {handle} 73@
74@ = create_char PedType.Mission1 {modelId} 102 {x} 2374.9871 {y} -1294.079 {z} 22.838
set_char_heading 74@ {heading} 177.5538
set_char_decision_maker 74@ {handleOrTemplate} 49@
set_char_relationship 74@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission2
set_char_relationship 74@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 74@ {state} True
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 74@ {state} True
set_group_member 51@ {handle} 74@
75@ = create_char PedType.Mission1 {modelId} 102 {x} 2521.51 {y} -1270.259 {z} 33.9206
set_char_heading 75@ {heading} 100.2518
set_char_decision_maker 75@ {handleOrTemplate} 49@
set_char_relationship 75@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 75@ {state} True
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 75@ {state} True
set_group_leader 52@ {handle} 75@
76@ = create_char PedType.Mission1 {modelId} 102 {x} 2521.72 {y} -1274.981 {z} 33.8748
set_char_heading 76@ {heading} 98.0309
set_char_decision_maker 76@ {handleOrTemplate} 49@
set_char_relationship 76@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_only_damaged_by_player 76@ {state} True
give_weapon_to_char 76@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 76@ {state} True
set_group_member 52@ {handle} 76@
146@ = 2
switch_widescreen True
do_fade 1000 {direction} Fade.In

:FINALEA_4878
if 
  get_fading_status 
goto_if_false @FINALEA_4902
wait 0
goto @FINALEA_4878

:FINALEA_4902
print_now 'RM4_4' {time} 5000 {flag} 1
print 'RM4_14' {time} 5000 {flag} 1
TIMERA = 0
151@ = 0
skip_cutscene_start_internal @FINALEA_5387

:FINALEA_4955
if 
  146@ == 2
goto_if_false @FINALEA_5096
add_float_lvar_to_float_lvar 35@ += 41@
add_float_lvar_to_float_lvar 36@ += 42@
add_float_lvar_to_float_lvar 37@ += 43@
set_fixed_camera_position 35@ {y} 36@ {z} 37@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
add_float_lvar_to_float_lvar 38@ += 44@
add_float_lvar_to_float_lvar 39@ += 45@
add_float_lvar_to_float_lvar 40@ += 46@
point_camera_at_point 38@ {y} 39@ {z} 40@ {switchStyle} SwitchType.JumpCut
if or
  2505.2151 >= 35@
  TIMERA > 8999
goto_if_false @FINALEA_5096
146@ = 3

:FINALEA_5096
if 
  146@ == 3
goto_if_false @FINALEA_5140
if 
  TIMERA > 8999
goto_if_false @FINALEA_5140
146@ = 4

:FINALEA_5140
if 
  146@ == 4
goto_if_false @FINALEA_5241
set_fixed_camera_position 2370.9021 {y} -1328.8149 {z} 23.0473 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2371.46 {y} -1328.005 {z} 23.2292 {switchStyle} SwitchType.JumpCut
TIMERA = 0
clear_prints 
print_now 'RM4_5' {time} 8000 {flag} 1
146@ = 5

:FINALEA_5241
if 
  146@ == 5
goto_if_false @FINALEA_5343
if 
  TIMERA > 3999
goto_if_false @FINALEA_5343
set_fixed_camera_position 2372.949 {y} -1326.9139 {z} 24.7902 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2372.874 {y} -1325.92 {z} 24.701 {switchStyle} SwitchType.JumpCut
TIMERA = 0
146@ = 6

:FINALEA_5343
if 
  146@ == 6
goto_if_false @FINALEA_5667
if 
  TIMERA > 3999
goto_if_false @FINALEA_5667
151@ = 1

:FINALEA_5387
skip_cutscene_end 
if 
  151@ == 0
goto_if_false @FINALEA_5479
do_fade 500 {direction} Fade.Out

:FINALEA_5414
if 
  get_fading_status 
goto_if_false @FINALEA_5438
wait 0
goto @FINALEA_5414

:FINALEA_5438
clear_prints 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:FINALEA_5455
if 
  get_fading_status 
goto_if_false @FINALEA_5479
wait 0
goto @FINALEA_5455

:FINALEA_5479
if 
  not is_car_dead 57@
goto_if_false @FINALEA_5533
129@ = add_blip_for_car 57@
set_blip_as_friendly 129@ {state} True
print_now 'RM4_6' {time} 7000 {flag} 1
152@ = 1

:FINALEA_5533
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_5556
freeze_car_position $sweet_car {state} True

:FINALEA_5556
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
create_script_roadblock 2456.468 {leftBottomY} -1262.2 {leftBottomZ} 23.87 {rightTopX} 2455.625 {rightTopY} -1250.55 {rightTopZ} 23.89 {type} 1
create_script_roadblock 2375.7781 {leftBottomY} -1358.4301 {leftBottomZ} 23.878 {rightTopX} 2365.675 {rightTopY} -1358.34 {rightTopZ} 24.036 {type} 1
set_ped_density_multiplier 0.5
146@ = 7

:FINALEA_5667
if 
  146@ == 7
goto_if_false @FINALEA_6474
if 
  154@ == 0
goto_if_false @FINALEA_5775
if 
  not is_char_dead 68@
goto_if_false @FINALEA_5775
if 
  has_char_spotted_char 68@ {target} $scplayer
goto_if_false @FINALEA_5775
set_lvar_int_to_lvar_int 109@ = 68@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 68@ {state} False
gosub @FINALEA_31697
154@ = 1

:FINALEA_5775
if 
  153@ == 0
goto_if_false @FINALEA_6167
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6167
if 
  is_char_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6167
if 
  not is_char_dead 64@
goto_if_false @FINALEA_5874
set_lvar_int_to_lvar_int 109@ = 64@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 64@ {state} False
gosub @FINALEA_31697

:FINALEA_5874
if 
  not is_char_dead 65@
goto_if_false @FINALEA_5920
set_lvar_int_to_lvar_int 109@ = 65@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 65@ {state} False
gosub @FINALEA_31697

:FINALEA_5920
if 
  not is_char_dead 66@
goto_if_false @FINALEA_5966
set_lvar_int_to_lvar_int 109@ = 66@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 66@ {state} False
gosub @FINALEA_31697

:FINALEA_5966
if 
  not is_char_dead 67@
goto_if_false @FINALEA_6012
set_lvar_int_to_lvar_int 109@ = 67@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 67@ {state} False
gosub @FINALEA_31697

:FINALEA_6012
if 
  not is_char_dead 68@
goto_if_false @FINALEA_6058
set_lvar_int_to_lvar_int 109@ = 68@
set_lvar_int_to_var_int 114@ = $scplayer
set_char_only_damaged_by_player 68@ {state} False
gosub @FINALEA_31697

:FINALEA_6058
if 
  not is_char_dead 71@
goto_if_false @FINALEA_6081
set_char_only_damaged_by_player 71@ {state} False

:FINALEA_6081
if 
  not is_char_dead 72@
goto_if_false @FINALEA_6104
set_char_only_damaged_by_player 72@ {state} False

:FINALEA_6104
if 
  not is_char_dead 73@
goto_if_false @FINALEA_6127
set_char_only_damaged_by_player 73@ {state} False

:FINALEA_6127
if 
  not is_char_dead 74@
goto_if_false @FINALEA_6150
set_char_only_damaged_by_player 74@ {state} False

:FINALEA_6150
mark_model_as_no_longer_needed 481
mark_car_as_no_longer_needed 63@
153@ = 1

:FINALEA_6167
if 
  153@ == 1
goto_if_false @FINALEA_6356
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6356
if 
  locate_char_in_car_2d $scplayer {x} 2521.9099 {y} -1273.05 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEA_6356
if 
  is_char_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6356
print_now 'RM4_15' {time} 5000 {flag} 1
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 285
mark_char_as_no_longer_needed 64@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 66@
mark_char_as_no_longer_needed 67@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
mark_char_as_no_longer_needed 73@
mark_char_as_no_longer_needed 74@
mark_car_as_no_longer_needed 54@
mark_car_as_no_longer_needed 55@
mark_car_as_no_longer_needed 58@
mark_car_as_no_longer_needed 59@
153@ = 2

:FINALEA_6356
if 
  has_object_of_type_been_smashed 2522.0081 {y} -1272.9301 {z} 35.609 {radius} 30.0 {modelId} #IMY_SHASH_WALL
goto_if_false @FINALEA_6474
play_and_kill_fx_system 102@
play_mission_audio MissionAudioSlot.Slot3
delete_char 64@
delete_char 65@
delete_char 66@
delete_char 67@
delete_char 68@
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_car 54@
delete_car 58@
delete_car 59@
remove_blip 129@
clear_prints 
147@ = 1

:FINALEA_6474
if 
  152@ == 1
goto_if_false @FINALEA_6575
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6575
if 
  is_char_sitting_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6575
remove_blip 129@
print_now 'RM4_8' {time} 5000 {flag} 1
130@ = add_blip_for_coord 2522.79 {y} -1272.85 {z} 34.19
152@ = 2

:FINALEA_6575
if 
  152@ == 2
goto_if_false @FINALEA_6671
if 
  not is_car_dead 57@
goto_if_false @FINALEA_6671
if 
  not is_char_sitting_in_car $scplayer {vehicle} 57@
goto_if_false @FINALEA_6671
remove_blip 130@
129@ = add_blip_for_car 57@
set_blip_as_friendly 129@ {state} True
print_now 'RM4_9' {time} 5000 {flag} 1
152@ = 1

:FINALEA_6671
if or
  152@ == 1
  152@ == 2
goto_if_false @FINALEA_6735
if 
  is_car_dead 57@
goto_if_false @FINALEA_6735
print_now 'RM4_10' {time} 7000 {flag} 1
goto @FINALEA_32509

:FINALEA_6735
if 
  148@ == 0
goto_if_false @FINALEA_6851
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_6851
if 
  locate_char_any_means_2d $scplayer {x} 2507.8201 {y} -1309.226 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_6851
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @FINALEA_6851
play_mission_audio MissionAudioSlot.Slot2
print_now 'ROT4_CA' {time} 2000 {flag} 1
148@ = 1

:FINALEA_6851
if 
  148@ == 1
goto_if_false @FINALEA_6935
if 
  has_mission_audio_finished MissionAudioSlot.Slot2
goto_if_false @FINALEA_6935
if or
  not locate_char_any_means_2d $scplayer {x} 2507.8201 {y} -1309.226 {xRadius} 3.5 {yRadius} 3.5 {drawSphere} False
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @FINALEA_6935
148@ = 0

:FINALEA_6935
if or
  146@ == 1
  146@ == 100
goto_if_false @FINALEA_7155
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_7155
if 
  149@ == 1
goto_if_false @FINALEA_7063
if 
  not is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_7063
remove_blip 128@
128@ = add_blip_for_car $sweet_car
set_blip_as_friendly 128@ {state} True
print_now 'RM4_7' {time} 5000 {flag} 1
146@ = 100
149@ = 0

:FINALEA_7063
if 
  149@ == 0
goto_if_false @FINALEA_7155
if 
  is_char_in_car $scplayer {vehicle} $sweet_car
goto_if_false @FINALEA_7155
remove_blip 128@
128@ = add_blip_for_coord 2507.8201 {y} -1309.226 {z} 33.6726
print_now 'RM4_2' {time} 5000 {flag} 1
146@ = 1
149@ = 1

:FINALEA_7155
if 
  is_char_dead $sweet
goto_if_false @FINALEA_7194
print_now 'RM4_11' {time} 5000 {flag} 1
goto @FINALEA_32509

:FINALEA_7194
if 
  is_car_dead $sweet_car
goto_if_false @FINALEA_7233
print_now 'RM4_12' {time} 5000 {flag} 1
goto @FINALEA_32509

:FINALEA_7233
if 
  147@ == 1
goto_if_false @FINALEA_8584
if 
  155@ == 0
goto_if_false @FINALEA_8155
remove_blip 130@
remove_group 50@
remove_group 51@
71@ = create_char PedType.Mission1 {modelId} 102 {x} 2528.252 {y} -1273.761 {z} 33.9609
set_char_heading 71@ {heading} 91.4211
set_char_decision_maker 71@ {handleOrTemplate} 49@
task_stay_in_same_place 71@ {state} True
give_weapon_to_char 71@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_relationship 71@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 71@ {health} 20
set_sense_range 71@ {range} 50.0
72@ = create_char PedType.Mission1 {modelId} 102 {x} 2530.771 {y} -1271.391 {z} 33.9602
set_char_heading 72@ {heading} 91.5182
set_char_decision_maker 72@ {handleOrTemplate} 49@
give_weapon_to_char 72@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 72@ {state} True
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 72@ {health} 20
set_sense_range 72@ {range} 50.0
73@ = create_char PedType.Mission1 {modelId} 102 {x} 2532.0801 {y} -1272.28 {z} 33.9602
set_char_heading 73@ {heading} 177.5538
set_char_decision_maker 73@ {handleOrTemplate} 49@
give_weapon_to_char 73@ {weaponType} WeaponType.Ak47 {ammo} 99999
task_stay_in_same_place 73@ {state} True
set_char_relationship 73@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 73@ {health} 20
set_sense_range 73@ {range} 50.0
74@ = create_char PedType.Mission1 {modelId} 102 {x} 2539.969 {y} -1279.563 {z} 33.9609
set_char_heading 74@ {heading} 25.3324
set_char_decision_maker 74@ {handleOrTemplate} 49@
give_weapon_to_char 74@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 74@ {state} True
set_char_relationship 74@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 74@ {health} 20
set_sense_range 74@ {range} 50.0
77@ = create_char PedType.Mission1 {modelId} 102 {x} 2533.2791 {y} -1295.5551 {z} 33.9609
set_char_heading 77@ {heading} 327.5814
set_char_decision_maker 77@ {handleOrTemplate} 49@
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 77@ {state} True
set_char_relationship 77@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 77@ {health} 20
set_sense_range 77@ {range} 50.0
78@ = create_char PedType.Mission1 {modelId} 102 {x} 2529.178 {y} -1304.473 {z} 33.9609
set_char_heading 78@ {heading} 351.5292
set_char_decision_maker 78@ {handleOrTemplate} 49@
give_weapon_to_char 78@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_stay_in_same_place 78@ {state} True
set_char_relationship 78@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_health 78@ {health} 20
79@ = create_char PedType.Mission1 {modelId} 63 {x} 2538.0 {y} -1307.0 {z} 34.0
set_char_heading 79@ {heading} 35.0
set_char_health 79@ {health} 3
task_play_anim 79@ {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
80@ = create_char PedType.Mission1 {modelId} 7 {x} 2540.04 {y} -1307.37 {z} 33.9609
set_char_heading 80@ {heading} 92.5436
set_char_health 80@ {health} 3
task_play_anim 80@ {animationName} "CRCKIDLE3" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
81@ = create_char PedType.Mission1 {modelId} 63 {x} 2533.552 {y} -1308.2841 {z} 33.9609
set_char_heading 81@ {heading} 67.9508
set_char_health 81@ {health} 3
task_play_anim 81@ {animationName} "CRCKIDLE2" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
82@ = create_char PedType.Mission1 {modelId} 7 {x} 2534.6819 {y} -1287.199 {z} 33.9609
set_char_heading 82@ {heading} 104.5
set_char_health 82@ {health} 3
task_play_anim 82@ {animationName} "CRCKIDLE4" {animationFile} "CRACK" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
print_now 'RM4_13' {time} 5000 {flag} 1
130@ = add_blip_for_coord 2542.1001 {y} -1303.99 {z} 34.03
155@ = 1

:FINALEA_8155
if 
  is_char_dead $sweet
goto_if_false @FINALEA_8194
print_now 'RM4_11' {time} 5000 {flag} 1
goto @FINALEA_32509

:FINALEA_8194
if 
  155@ == 1
goto_if_false @FINALEA_8584
53@ = get_area_visible 
if 
  197@ == 0
goto_if_false @FINALEA_8293
if 
  not is_char_dead 79@
goto_if_false @FINALEA_8293
if 
  is_char_touching_char 79@ {other} $scplayer
goto_if_false @FINALEA_8293
task_flee_char 79@ {threat} $scplayer {radius} 100.0 {time} 30000
197@ = 1

:FINALEA_8293
if 
  198@ == 0
goto_if_false @FINALEA_8369
if 
  not is_char_dead 80@
goto_if_false @FINALEA_8369
if 
  is_char_touching_char 80@ {other} $scplayer
goto_if_false @FINALEA_8369
task_flee_char 80@ {threat} $scplayer {radius} 100.0 {time} 30000
198@ = 1

:FINALEA_8369
if 
  199@ == 0
goto_if_false @FINALEA_8445
if 
  not is_char_dead 81@
goto_if_false @FINALEA_8445
if 
  is_char_touching_char 81@ {other} $scplayer
goto_if_false @FINALEA_8445
task_flee_char 81@ {threat} $scplayer {radius} 100.0 {time} 30000
199@ = 1

:FINALEA_8445
if 
  200@ == 0
goto_if_false @FINALEA_8521
if 
  not is_char_dead 82@
goto_if_false @FINALEA_8521
if 
  is_char_touching_char 82@ {other} $scplayer
goto_if_false @FINALEA_8521
task_flee_char 82@ {threat} $scplayer {radius} 100.0 {time} 30000
200@ = 1

:FINALEA_8521
if 
  53@ == 2
goto_if_false @FINALEA_8584
do_fade 1000 {direction} Fade.Out

:FINALEA_8546
if 
  get_fading_status 
goto_if_false @FINALEA_8570
wait 0
goto @FINALEA_8546

:FINALEA_8570
147@ = 2
156@ = 1

:FINALEA_8584
if 
  147@ == 2
goto_if_false @FINALEA_17177
if 
  156@ == 1
goto_if_false @FINALEA_10806
set_player_control $player1 {state} False
switch_widescreen True
do_fade 1000 {direction} Fade.Out
clear_all_script_roadblocks 

:FINALEA_8640
if 
  get_fading_status 
goto_if_false @FINALEA_8664
wait 0
goto @FINALEA_8640

:FINALEA_8664
set_player_mood $player1 {mood} 7 {time} 360000
clear_mission_audio MissionAudioSlot.Slot2
remove_blip 130@
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 77@
delete_char 78@
delete_char 79@
delete_char 80@
delete_char 81@
delete_char 82@
delete_car 57@
delete_char $sweet
remove_animation "CRACK"
unload_special_character 1
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 492
set_char_coordinates $scplayer {x} 2543.26 {y} -1303.844 {z} 1024.074
set_char_heading $scplayer {heading} 175.5166
set_fixed_camera_position 2544.616 {y} -1302.899 {z} 1024.407 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2544.1931 {y} -1303.702 {z} 1024.828 {switchStyle} SwitchType.JumpCut
set_char_area_visible $scplayer {areaId} 2
130@ = add_blip_for_coord 2579.8501 {y} -1305.76 {z} 1037.0699
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
clear_area 2578.0 {y} -1306.0 {z} 200.0 {radius} 200.0 {clearParticles} True
do_fade 1000 {direction} Fade.In
print_big 'RM4_17' {time} 1000 {style} TextStyle.BottomRight

:FINALEA_8942
if 
  get_fading_status 
goto_if_false @FINALEA_8966
wait 0
goto @FINALEA_8942

:FINALEA_8966
133@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2527.783 {y} -1288.816 {z} 1031.4301
137@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2575.094 {y} -1286.042 {z} 1037.781
143@ = create_pickup_with_ammo 351 {pickupType} PickupType.Once {ammo} 20 {x} 2568.502 {y} -1282.345 {z} 1037.781
request_model 103
request_model 108
request_model 285
request_model 601
request_animation "SWAT"
request_model #IMCOMPMOVEDR1_LAS
request_car_recording 287
load_all_models_now 
load_scene 2541.8101 {y} -1311.3199 {z} 1028.22
85@ = create_char PedType.Mission1 {modelId} 103 {x} 2543.2439 {y} -1318.538 {z} 1030.427
set_char_heading 85@ {heading} 3.2815
set_char_decision_maker 85@ {handleOrTemplate} 47@
give_weapon_to_char 85@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_play_anim 85@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_area_visible 85@ {areaId} 2
set_char_health 85@ {health} 200
set_char_max_health 85@ {maxHealth} 200
173@ = 0
86@ = create_char PedType.Mission1 {modelId} 102 {x} 2536.071 {y} -1321.4709 {z} 1030.4301
set_char_heading 86@ {heading} 263.8364
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 86@ {areaId} 2
set_char_health 86@ {health} 200
set_char_max_health 86@ {maxHealth} 200
174@ = 0
87@ = create_char PedType.Mission1 {modelId} 108 {x} 2524.7371 {y} -1298.328 {z} 1030.427
set_char_heading 87@ {heading} 175.4097
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 87@ {areaId} 2
set_char_accuracy 87@ {accuracy} 80
set_char_health 87@ {health} 200
set_char_max_health 87@ {maxHealth} 200
175@ = 0
88@ = create_char PedType.Mission1 {modelId} 103 {x} 2527.814 {y} -1289.816 {z} 1030.427
set_char_heading 88@ {heading} 178.5987
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 88@ {areaId} 2
set_char_accuracy 87@ {accuracy} 80
set_char_shoot_rate 87@ {rate} 70
set_char_health 88@ {health} 200
set_char_max_health 88@ {maxHealth} 200
176@ = 0
wait 3000
71@ = create_char PedType.Mission1 {modelId} 103 {x} 2531.064 {y} -1304.332 {z} 1030.4301
set_char_heading 71@ {heading} 264.767
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 71@ {areaId} 2
set_char_accuracy 71@ {accuracy} 80
set_char_health 71@ {health} 200
set_char_max_health 71@ {maxHealth} 200
159@ = 0
73@ = create_char PedType.Mission1 {modelId} 108 {x} 2566.6731 {y} -1297.709 {z} 1036.781
set_char_heading 73@ {heading} 85.3469
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 73@ {areaId} 2
set_char_accuracy 73@ {accuracy} 80
set_char_shoot_rate 73@ {rate} 60
161@ = 0
74@ = create_char PedType.Mission1 {modelId} 103 {x} 2566.7271 {y} -1287.224 {z} 1036.781
set_char_heading 74@ {heading} 96.3687
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 74@ {areaId} 2
set_char_health 74@ {health} 200
set_char_max_health 74@ {maxHealth} 200
set_char_accuracy 74@ {accuracy} 80
162@ = 0
75@ = create_char PedType.Mission1 {modelId} 102 {x} 2540.8589 {y} -1287.161 {z} 1030.4189
set_char_heading 75@ {heading} 90.0
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 75@ {areaId} 2
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
set_char_accuracy 75@ {accuracy} 80
set_char_shoot_rate 75@ {rate} 60
163@ = 0
76@ = create_char PedType.Mission1 {modelId} 108 {x} 2556.854 {y} -1287.161 {z} 1030.4189
set_char_heading 76@ {heading} 90.0
set_char_decision_maker 76@ {handleOrTemplate} 47@
give_weapon_to_char 76@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 76@ {areaId} 2
set_char_health 76@ {health} 200
set_char_max_health 76@ {maxHealth} 200
164@ = 0
77@ = create_char PedType.Mission1 {modelId} 102 {x} 2556.854 {y} -1300.6281 {z} 1030.4189
set_char_heading 77@ {heading} 90.0
set_char_decision_maker 77@ {handleOrTemplate} 47@
give_weapon_to_char 77@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 77@ {areaId} 2
set_char_health 77@ {health} 200
set_char_max_health 77@ {maxHealth} 200
165@ = 0
78@ = create_char PedType.Mission1 {modelId} 103 {x} 2539.8049 {y} -1298.6071 {z} 1030.4301
set_char_heading 78@ {heading} 64.7154
set_char_decision_maker 78@ {handleOrTemplate} 47@
give_weapon_to_char 78@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 78@ {areaId} 2
set_char_health 78@ {health} 200
set_char_shoot_rate 78@ {rate} 70
set_char_max_health 78@ {maxHealth} 200
166@ = 0
80@ = create_char PedType.Mission1 {modelId} 103 {x} 2552.7981 {y} -1300.993 {z} 1030.4301
set_char_heading 80@ {heading} 87.5663
set_char_decision_maker 80@ {handleOrTemplate} 47@
give_weapon_to_char 80@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 80@ {areaId} 2
set_char_health 80@ {health} 200
set_char_max_health 80@ {maxHealth} 200
set_char_accuracy 80@ {accuracy} 80
set_char_shoot_rate 80@ {rate} 60
168@ = 0
81@ = create_char PedType.Mission1 {modelId} 102 {x} 2563.2339 {y} -1294.067 {z} 1030.4301
set_char_heading 81@ {heading} 93.219
set_char_decision_maker 81@ {handleOrTemplate} 47@
give_weapon_to_char 81@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 81@ {areaId} 2
set_char_health 81@ {health} 200
set_char_max_health 81@ {maxHealth} 200
169@ = 0
82@ = create_char PedType.Mission1 {modelId} 103 {x} 2550.9919 {y} -1290.274 {z} 1030.4301
set_char_heading 82@ {heading} 103.6499
set_char_decision_maker 82@ {handleOrTemplate} 47@
give_weapon_to_char 82@ {weaponType} WeaponType.Ak47 {ammo} 99999
set_char_area_visible 82@ {areaId} 2
set_char_health 82@ {health} 200
set_char_shoot_rate 82@ {rate} 60
set_char_max_health 82@ {maxHealth} 200
170@ = 0
83@ = create_char PedType.Mission1 {modelId} 108 {x} 2556.1909 {y} -1281.446 {z} 1036.781
set_char_heading 83@ {heading} 183.4208
set_char_decision_maker 83@ {handleOrTemplate} 47@
give_weapon_to_char 83@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 83@ {areaId} 2
171@ = 0
57@ = create_car 601 {x} 2561.8181 {y} -1275.167 {z} 1031.019
freeze_car_position 57@ {state} True
set_car_heading 57@ {heading} 178.9
set_vehicle_area_visible 57@ {interiorId} 2
64@ = create_char_inside_car 57@ {pedType} PedType.Mission2 {modelId} 285
set_char_decision_maker 64@ {handleOrTemplate} 47@
give_weapon_to_char 64@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_area_visible 64@ {areaId} 2
set_char_shoot_rate 64@ {rate} 80
set_char_health 64@ {health} 200
set_char_max_health 64@ {maxHealth} 200
set_char_accuracy 64@ {accuracy} 80
65@ = create_char_as_passenger 57@ {pedType} PedType.Mission2 {modelId} 285 {seat} SeatId.BikeRear
set_char_decision_maker 65@ {handleOrTemplate} 47@
set_char_health 65@ {health} 200
set_char_max_health 65@ {maxHealth} 200
give_weapon_to_char 65@ {weaponType} WeaponType.Mp5 {ammo} 9999
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Mission1
set_char_relationship 65@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_area_visible 65@ {areaId} 2
153@ = 0
179@ = 0
152@ = 0
100@ = create_object_no_offset #IMCOMPMOVEDR1_LAS {x} 2565.814 {y} -1303.566 {z} 1033.173
set_object_heading 100@ {heading} 90.0
101@ = create_object_no_offset #CJ_WIN_POP2 {x} 2561.811 {y} -1279.639 {z} 1032.1281
freeze_object_position 101@ {state} True
102@ = create_fx_system "WALLBUST" {x} 2562.0 {y} -1282.0 {z} 1031.0 {ignoreBoundingChecks} True
disable_all_entry_exits True
restore_camera_jumpcut 
set_camera_behind_player 
set_player_control $player1 {state} True
switch_widescreen False
clear_prints 
print_now 'RM4_16' {time} 7000 {flag} 1
156@ = 2

:FINALEA_10806
if 
  156@ == 2
goto_if_false @FINALEA_11026
if or
  locate_char_any_means_3d $scplayer {x} 2543.3799 {y} -1310.38 {z} 1028.26 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  is_char_shooting $scplayer
goto_if_false @FINALEA_11026
if 
  173@ == 0
goto_if_false @FINALEA_10963
if 
  not is_char_dead 85@
goto_if_false @FINALEA_10963
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2527.5791
112@ = -1318.762
113@ = 1030.4301
gosub @FINALEA_31604
173@ = 1

:FINALEA_10963
if 
  176@ == 0
goto_if_false @FINALEA_11019
if 
  not is_char_dead 88@
goto_if_false @FINALEA_11019
set_lvar_int_to_lvar_int 109@ = 88@
gosub @FINALEA_31697
176@ = 1

:FINALEA_11019
156@ = 3

:FINALEA_11026
if 
  156@ == 3
goto_if_false @FINALEA_11274
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2540.95 {leftBottomY} -1314.42 {leftBottomZ} 1028.79 {rightTopX} 2529.24 {rightTopY} -1333.21 {rightTopZ} 1035.04 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2534.4399 {y} -1318.92 {z} 1031.17 {xRadius} 5.5 {yRadius} 5.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @FINALEA_11192
if 
  174@ == 0
goto_if_false @FINALEA_11185
if 
  not is_char_dead 86@
goto_if_false @FINALEA_11185
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31890
174@ = 1

:FINALEA_11185
156@ = 4

:FINALEA_11192
if 
  174@ == 0
goto_if_false @FINALEA_11274
if 
  not is_char_dead 86@
goto_if_false @FINALEA_11274
if 
  has_char_been_damaged_by_char 86@ {handle} $scplayer
goto_if_false @FINALEA_11274
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31890
174@ = 1
156@ = 4

:FINALEA_11274
if 
  156@ == 4
goto_if_false @FINALEA_11408
if or
  locate_char_any_means_3d $scplayer {x} 2527.1799 {y} -1304.24 {z} 1027.0 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
  is_char_dead 88@
goto_if_false @FINALEA_11408
if 
  175@ == 0
goto_if_false @FINALEA_11401
if 
  not is_char_dead 87@
goto_if_false @FINALEA_11401
set_lvar_int_to_lvar_int 109@ = 87@
gosub @FINALEA_31890
175@ = 1

:FINALEA_11401
156@ = 5

:FINALEA_11408
if 
  156@ == 5
goto_if_false @FINALEA_12191
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2529.3301 {leftBottomY} -1308.3 {leftBottomZ} 1027.55 {rightTopX} 2537.78 {rightTopY} -1272.14 {rightTopZ} 1035.76 {drawSphere} False
  is_char_shooting_in_area $scplayer {leftBottomX} 2522.8701 {leftBottomY} -1299.61 {topRightX} 2529.8501 {topRightY} -1287.66 {drawSphere} False
goto_if_false @FINALEA_12191
if 
  163@ == 0
goto_if_false @FINALEA_11605
if 
  not is_char_dead 75@
goto_if_false @FINALEA_11605
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2540.8589
112@ = -1287.161
113@ = 1030.4189
117@ = 1500
121@ = 90.0
gosub @FINALEA_31973
163@ = 1

:FINALEA_11605
if 
  164@ == 0
goto_if_false @FINALEA_11709
if 
  not is_char_dead 76@
goto_if_false @FINALEA_11709
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2556.854
112@ = -1287.161
113@ = 1030.4189
117@ = 2000
121@ = 90.0
gosub @FINALEA_31973
164@ = 1

:FINALEA_11709
if 
  165@ == 0
goto_if_false @FINALEA_11813
if 
  not is_char_dead 77@
goto_if_false @FINALEA_11813
set_lvar_int_to_lvar_int 109@ = 77@
111@ = 2556.854
112@ = -1300.6281
113@ = 1030.4189
117@ = 1200
121@ = 90.0
gosub @FINALEA_32214
165@ = 1

:FINALEA_11813
if 
  161@ == 0
goto_if_false @FINALEA_11869
if 
  not is_char_dead 73@
goto_if_false @FINALEA_11869
set_lvar_int_to_lvar_int 109@ = 73@
gosub @FINALEA_31697
161@ = 1

:FINALEA_11869
if 
  162@ == 0
goto_if_false @FINALEA_11925
if 
  not is_char_dead 74@
goto_if_false @FINALEA_11925
set_lvar_int_to_lvar_int 109@ = 74@
gosub @FINALEA_31697
162@ = 1

:FINALEA_11925
if 
  171@ == 0
goto_if_false @FINALEA_11981
if 
  not is_char_dead 83@
goto_if_false @FINALEA_11981
set_lvar_int_to_lvar_int 109@ = 83@
gosub @FINALEA_31697
171@ = 1

:FINALEA_11981
if 
  166@ == 0
goto_if_false @FINALEA_12037
if 
  not is_char_dead 78@
goto_if_false @FINALEA_12037
set_lvar_int_to_lvar_int 109@ = 78@
gosub @FINALEA_31653
166@ = 1

:FINALEA_12037
if 
  168@ == 0
goto_if_false @FINALEA_12086
if 
  not is_char_dead 80@
goto_if_false @FINALEA_12086
task_kill_char_on_foot 80@ {target} $scplayer
168@ = 1

:FINALEA_12086
if 
  169@ == 0
goto_if_false @FINALEA_12135
if 
  not is_char_dead 81@
goto_if_false @FINALEA_12135
task_kill_char_on_foot 81@ {target} $scplayer
169@ = 1

:FINALEA_12135
if 
  170@ == 0
goto_if_false @FINALEA_12184
if 
  not is_char_dead 82@
goto_if_false @FINALEA_12184
task_kill_char_on_foot 82@ {target} $scplayer
170@ = 1

:FINALEA_12184
156@ = 6

:FINALEA_12191
if 
  156@ == 6
goto_if_false @FINALEA_12370
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2529.8799 {leftBottomY} -1307.89 {leftBottomZ} 1027.0 {rightTopX} 2538.3201 {rightTopY} -1277.63 {rightTopZ} 1032.54 {drawSphere} False
goto_if_false @FINALEA_12370
mark_char_as_no_longer_needed 85@
mark_char_as_no_longer_needed 86@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 88@
if 
  159@ == 0
goto_if_false @FINALEA_12363
if 
  not is_char_dead 71@
goto_if_false @FINALEA_12363
set_lvar_int_to_lvar_int 109@ = 71@
111@ = 2560.0549
112@ = -1304.916
113@ = 1030.4301
gosub @FINALEA_31604
159@ = 1

:FINALEA_12363
156@ = 7

:FINALEA_12370
if 
  156@ == 7
goto_if_false @FINALEA_12443
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2546.4299 {leftBottomY} -1277.49 {leftBottomZ} 1027.0 {rightTopX} 2568.0601 {rightTopY} -1310.79 {rightTopZ} 1032.54 {drawSphere} False
goto_if_false @FINALEA_12443
156@ = 8

:FINALEA_12443
if or
  156@ == 8
  180@ > 6
goto_if_false @FINALEA_12531
if 
  152@ == 0
goto_if_false @FINALEA_12531
if 
  not is_car_dead 57@
goto_if_false @FINALEA_12531
freeze_car_position 57@ {state} False
start_playback_recorded_car 57@ {path} 287
TIMERB = 0
152@ = 1

:FINALEA_12531
if 
  152@ == 1
goto_if_false @FINALEA_12639
if or
  is_closest_object_of_type_smashed_or_damaged 2561.811 {y} -1279.639 {z} 1032.1281 {radius} 10.0 {modelId} #CJ_WIN_POP2 {smashed} True {damaged} True
  TIMERB > 250
goto_if_false @FINALEA_12639
play_and_kill_fx_system 102@
set_mission_audio_position MissionAudioSlot.Slot3 {x} 2557.8799 {y} -1288.65 {z} 1031.91
play_mission_audio MissionAudioSlot.Slot3
break_object 101@ {intensity} 1
152@ = 2

:FINALEA_12639
if 
  152@ == 2
goto_if_false @FINALEA_12744
if 
  not is_car_dead 57@
goto_if_false @FINALEA_12744
if 
  not is_playback_going_on_for_car 57@
goto_if_false @FINALEA_12744
if 
  not is_char_dead 64@
goto_if_false @FINALEA_12713
task_kill_char_on_foot 64@ {target} $scplayer

:FINALEA_12713
if 
  not is_char_dead 65@
goto_if_false @FINALEA_12737
task_kill_char_on_foot 65@ {target} $scplayer

:FINALEA_12737
152@ = 3

:FINALEA_12744
if 
  163@ == 1
goto_if_false @FINALEA_12872
if 
  not is_char_dead 75@
goto_if_false @FINALEA_12872
if or
  has_char_been_damaged_by_char 75@ {handle} $scplayer
  locate_char_any_means_char_3d 75@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_12872
if 
  not is_char_dead 75@
goto_if_false @FINALEA_12860
task_kill_char_on_foot 75@ {target} $scplayer
163@ = 2
goto @FINALEA_12872

:FINALEA_12860
mark_char_as_no_longer_needed 75@
163@ = 2

:FINALEA_12872
if 
  164@ == 1
goto_if_false @FINALEA_13000
if 
  not is_char_dead 76@
goto_if_false @FINALEA_13000
if or
  has_char_been_damaged_by_char 76@ {handle} $scplayer
  locate_char_any_means_char_3d 76@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_13000
if 
  not is_char_dead 76@
goto_if_false @FINALEA_12988
task_kill_char_on_foot 76@ {target} $scplayer
164@ = 2
goto @FINALEA_13000

:FINALEA_12988
mark_char_as_no_longer_needed 76@
164@ = 2

:FINALEA_13000
if 
  165@ == 1
goto_if_false @FINALEA_13128
if 
  not is_char_dead 77@
goto_if_false @FINALEA_13128
if or
  has_char_been_damaged_by_char 77@ {handle} $scplayer
  locate_char_any_means_char_3d 77@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_13128
if 
  not is_char_dead 77@
goto_if_false @FINALEA_13116
task_kill_char_on_foot 77@ {target} $scplayer
165@ = 2
goto @FINALEA_13128

:FINALEA_13116
mark_char_as_no_longer_needed 77@
165@ = 2

:FINALEA_13128
if 
  159@ == 1
goto_if_false @FINALEA_13181
if 
  is_char_dead 71@
goto_if_false @FINALEA_13181
mark_char_as_no_longer_needed 71@
180@ += 1
159@ = 2

:FINALEA_13181
if 
  161@ == 1
goto_if_false @FINALEA_13234
if 
  is_char_dead 73@
goto_if_false @FINALEA_13234
mark_char_as_no_longer_needed 73@
180@ += 1
161@ = 2

:FINALEA_13234
if 
  162@ == 1
goto_if_false @FINALEA_13287
if 
  is_char_dead 74@
goto_if_false @FINALEA_13287
mark_char_as_no_longer_needed 74@
180@ += 1
162@ = 2

:FINALEA_13287
if or
  163@ == 1
  163@ == 2
goto_if_false @FINALEA_13347
if 
  is_char_dead 75@
goto_if_false @FINALEA_13347
mark_char_as_no_longer_needed 75@
180@ += 1
163@ = 3

:FINALEA_13347
if or
  164@ == 1
  164@ == 2
goto_if_false @FINALEA_13407
if 
  is_char_dead 76@
goto_if_false @FINALEA_13407
mark_char_as_no_longer_needed 76@
180@ += 1
164@ = 3

:FINALEA_13407
if or
  165@ == 1
  165@ == 2
goto_if_false @FINALEA_13467
if 
  is_char_dead 77@
goto_if_false @FINALEA_13467
mark_char_as_no_longer_needed 77@
180@ += 1
165@ = 3

:FINALEA_13467
if 
  166@ == 1
goto_if_false @FINALEA_13520
if 
  is_char_dead 78@
goto_if_false @FINALEA_13520
mark_char_as_no_longer_needed 78@
180@ += 1
166@ = 2

:FINALEA_13520
if 
  168@ == 1
goto_if_false @FINALEA_13573
if 
  is_char_dead 80@
goto_if_false @FINALEA_13573
mark_char_as_no_longer_needed 80@
180@ += 1
168@ = 2

:FINALEA_13573
if 
  169@ == 1
goto_if_false @FINALEA_13626
if 
  is_char_dead 81@
goto_if_false @FINALEA_13626
mark_char_as_no_longer_needed 81@
180@ += 1
169@ = 2

:FINALEA_13626
if 
  170@ == 1
goto_if_false @FINALEA_13679
if 
  is_char_dead 82@
goto_if_false @FINALEA_13679
mark_char_as_no_longer_needed 82@
180@ += 1
170@ = 2

:FINALEA_13679
if 
  171@ == 1
goto_if_false @FINALEA_13732
if 
  is_char_dead 83@
goto_if_false @FINALEA_13732
mark_char_as_no_longer_needed 83@
180@ += 1
171@ = 2

:FINALEA_13732
if 
  153@ == 0
goto_if_false @FINALEA_13785
if 
  is_char_dead 64@
goto_if_false @FINALEA_13785
mark_char_as_no_longer_needed 64@
180@ += 1
153@ = 1

:FINALEA_13785
if 
  179@ == 0
goto_if_false @FINALEA_13838
if 
  is_char_dead 65@
goto_if_false @FINALEA_13838
mark_char_as_no_longer_needed 65@
180@ += 1
179@ = 1

:FINALEA_13838
if 
  180@ > 8
goto_if_false @FINALEA_14784
if 
  156@ == 8
goto_if_false @FINALEA_14784
if 
  181@ == 0
goto_if_false @FINALEA_14784
if 
  does_object_exist 100@
goto_if_false @FINALEA_14784
if 
  182@ == 0
goto_if_false @FINALEA_14404
85@ = create_char PedType.Mission1 {modelId} 103 {x} 2571.635 {y} -1302.189 {z} 1030.427
set_char_heading 85@ {heading} 84.9134
set_char_decision_maker 85@ {handleOrTemplate} 49@
give_weapon_to_char 85@ {weaponType} WeaponType.Mp5 {ammo} 99999
task_play_anim 85@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_area_visible 85@ {areaId} 2
set_char_accuracy 85@ {accuracy} 80
set_char_health 85@ {health} 150
set_char_max_health 85@ {maxHealth} 150
173@ = 0
86@ = create_char PedType.Mission1 {modelId} 102 {x} 2570.3979 {y} -1299.233 {z} 1030.427
set_char_heading 86@ {heading} 119.2958
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 86@ {areaId} 2
set_char_health 86@ {health} 200
set_char_max_health 86@ {maxHealth} 200
174@ = 0
87@ = create_char PedType.Mission1 {modelId} 108 {x} 2566.8989 {y} -1290.145 {z} 1030.4301
set_char_heading 87@ {heading} 180.0082
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 87@ {areaId} 2
set_char_health 87@ {health} 200
set_char_max_health 87@ {maxHealth} 200
175@ = 0
88@ = create_char PedType.Mission1 {modelId} 103 {x} 2570.637 {y} -1286.8409 {z} 1030.4301
set_char_heading 88@ {heading} 182.7895
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 88@ {areaId} 2
set_char_health 88@ {health} 200
set_char_max_health 88@ {maxHealth} 200
176@ = 0
84@ = create_char PedType.Mission1 {modelId} 103 {x} 2569.728 {y} -1284.528 {z} 1030.4301
set_char_heading 84@ {heading} 168.4302
set_char_decision_maker 84@ {handleOrTemplate} 47@
give_weapon_to_char 84@ {weaponType} WeaponType.Mp5 {ammo} 99999
set_char_area_visible 84@ {areaId} 2
set_char_health 84@ {health} 200
set_char_max_health 84@ {maxHealth} 200
172@ = 0
182@ = 1
report_mission_audio_event_at_object 100@ {soundId} ScriptSound.SoundShutterDoorStart

:FINALEA_14404
if 
  slide_object 100@ {posX} 2565.814 {posY} -1303.566 {posZ} 1035.3621 {speedX} 0.0 {speedY} 0.0 {speedZ} 0.15 {collisionCheck} False
goto_if_false @FINALEA_14784
report_mission_audio_event_at_object 100@ {soundId} ScriptSound.SoundShutterDoorStop
156@ = 9
if 
  173@ == 0
goto_if_false @FINALEA_14553
if 
  not is_char_dead 85@
goto_if_false @FINALEA_14553
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2564.186
112@ = -1301.676
113@ = 1030.4301
gosub @FINALEA_31604
173@ = 1

:FINALEA_14553
if 
  174@ == 0
goto_if_false @FINALEA_14609
if 
  not is_char_dead 86@
goto_if_false @FINALEA_14609
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31653
174@ = 1

:FINALEA_14609
if 
  172@ == 0
goto_if_false @FINALEA_14665
if 
  not is_char_dead 84@
goto_if_false @FINALEA_14665
set_lvar_int_to_lvar_int 109@ = 84@
gosub @FINALEA_31653
172@ = 1

:FINALEA_14665
if 
  175@ == 0
goto_if_false @FINALEA_14721
if 
  not is_char_dead 87@
goto_if_false @FINALEA_14721
set_lvar_int_to_lvar_int 109@ = 87@
gosub @FINALEA_31653
175@ = 1

:FINALEA_14721
if 
  176@ == 0
goto_if_false @FINALEA_14777
if 
  not is_char_dead 88@
goto_if_false @FINALEA_14777
set_lvar_int_to_lvar_int 109@ = 88@
gosub @FINALEA_31653
176@ = 1

:FINALEA_14777
181@ = 1

:FINALEA_14784
if 
  156@ == 9
goto_if_false @FINALEA_14973
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2566.1399 {leftBottomY} -1307.4301 {leftBottomZ} 1027.0 {rightTopX} 2580.0601 {rightTopY} -1279.36 {rightTopZ} 1034.16 {drawSphere} False
goto_if_false @FINALEA_14973
if 
  172@ == 1
goto_if_false @FINALEA_14966
if 
  not is_char_dead 84@
goto_if_false @FINALEA_14966
set_lvar_int_to_lvar_int 109@ = 84@
111@ = 2575.5649
112@ = -1284.965
113@ = 1030.427
118@ = 2575.5129
119@ = -1303.2419
120@ = 1036.781
gosub @FINALEA_31735
172@ = 2

:FINALEA_14966
156@ = 10

:FINALEA_14973
if 
  156@ == 10
goto_if_false @FINALEA_15360
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2577.98 {leftBottomY} -1307.4399 {leftBottomZ} 1034.5 {rightTopX} 2583.49 {rightTopY} -1298.9399 {rightTopZ} 1039.3 {drawSphere} False
goto_if_false @FINALEA_15360
switch_widescreen True
set_player_control $player1 {state} False
remove_blip 130@
clear_mission_audio MissionAudioSlot.Slot3
set_char_coordinates $scplayer {x} 2575.0359 {y} -1305.741 {z} 1036.781
set_char_heading $scplayer {heading} 273.5172
delete_char 77@
delete_char 78@
delete_char 80@
delete_char 81@
delete_char 82@
delete_char 83@
delete_char 71@
delete_char 73@
delete_char 74@
delete_char 75@
delete_char 76@
delete_char 77@
delete_char 78@
delete_char 80@
delete_char 81@
delete_char 82@
delete_char 83@
delete_char 64@
delete_char 65@
delete_car 57@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
delete_char 88@
delete_object 100@
mark_model_as_no_longer_needed 285
mark_model_as_no_longer_needed 601
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
set_fixed_camera_position 2579.686 {y} -1310.002 {z} 1037.224 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2579.7361 {y} -1309.022 {z} 1037.418 {switchStyle} SwitchType.JumpCut
print_big 'RM4_18' {time} 1000 {style} TextStyle.BottomRight
wait 1000
task_go_straight_to_coord $scplayer {x} 2580.0911 {y} -1305.649 {z} 1036.7729 {speed} MoveState.Walk {time} 4000
156@ = 11

:FINALEA_15360
if 
  156@ == 11
goto_if_false @FINALEA_17177
if 
  locate_stopped_char_on_foot_2d $scplayer {x} 2580.0911 {y} -1305.649 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_17177
130@ = add_blip_for_coord 2521.52 {y} -1301.89 {z} 1047.37
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
request_model 144
request_model 146
request_model 173
request_model 356
request_model 346
request_model #BARREL4
load_all_models_now 

:FINALEA_15488
if or
  not has_model_loaded 144
  not has_model_loaded 146
  not has_model_loaded 173
  not has_model_loaded 356
goto_if_false @FINALEA_15530
wait 0
goto @FINALEA_15488

:FINALEA_15530
if or
  not has_model_loaded 346
  not has_model_loaded #BARREL4
goto_if_false @FINALEA_15562
wait 0
goto @FINALEA_15530

:FINALEA_15562
134@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2580.9529 {y} -1285.1169 {z} 1044.173
138@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2528.4561 {y} -1282.385 {z} 1048.337
96@ = create_object #BARREL4 {x} 2560.3091 {y} -1290.702 {z} 1043.1331
set_object_only_damaged_by_player 96@ {state} True
make_object_targettable 96@ {state} True
97@ = create_object #BARREL4 {x} 2540.467 {y} -1306.681 {z} 1047.297
set_object_only_damaged_by_player 97@ {state} True
make_object_targettable 97@ {state} True
98@ = create_object #BARREL4 {x} 2545.491 {y} -1296.2841 {z} 1043.13
set_object_only_damaged_by_player 98@ {state} True
make_object_targettable 98@ {state} True
99@ = create_object #BARREL4 {x} 2538.1709 {y} -1289.806 {z} 1043.1331
set_object_only_damaged_by_player 99@ {state} True
make_object_targettable 99@ {state} True
71@ = create_char PedType.Mission1 {modelId} 173 {x} 2580.8091 {y} -1285.65 {z} 1043.1331
set_char_heading 71@ {heading} 178.4956
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 71@ {areaId} 2
set_char_health 71@ {health} 150
set_char_max_health 71@ {maxHealth} 150
159@ = 0
72@ = create_char PedType.Mission1 {modelId} 173 {x} 2574.7361 {y} -1295.861 {z} 1043.1331
set_char_heading 72@ {heading} 183.0452
set_char_decision_maker 72@ {handleOrTemplate} 47@
give_weapon_to_char 72@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 72@ {skill} WeaponSkill.Pro
set_char_relationship 72@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_area_visible 72@ {areaId} 2
set_sense_range 72@ {range} 10.0
set_char_accuracy 72@ {accuracy} 60
160@ = 0
73@ = create_char PedType.Mission1 {modelId} 146 {x} 2561.6479 {y} -1300.6479 {z} 1043.17
set_char_heading 73@ {heading} 270.0
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 73@ {areaId} 2
set_char_proofs 73@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 73@ {health} 200
set_char_max_health 73@ {maxHealth} 200
161@ = 0
74@ = create_char PedType.Mission1 {modelId} 144 {x} 2545.6479 {y} -1300.6479 {z} 1043.17
set_char_heading 74@ {heading} 270.0
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 74@ {areaId} 2
set_char_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 74@ {health} 200
set_char_max_health 74@ {maxHealth} 200
set_char_shoot_rate 74@ {rate} 70
162@ = 0
75@ = create_char PedType.Mission1 {modelId} 146 {x} 2538.3479 {y} -1287.1479 {z} 1043.1331
set_char_heading 75@ {heading} 270.0
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_proofs 75@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_area_visible 75@ {areaId} 2
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
163@ = 0
76@ = create_char PedType.Mission1 {modelId} 144 {x} 2553.6479 {y} -1287.1479 {z} 1043.1331
set_char_heading 76@ {heading} 270.0
set_char_decision_maker 76@ {handleOrTemplate} 47@
give_weapon_to_char 76@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 76@ {areaId} 2
set_char_health 76@ {health} 200
set_char_max_health 76@ {maxHealth} 200
set_char_shoot_rate 76@ {rate} 60
164@ = 0
wait 250
77@ = create_char PedType.Mission1 {modelId} 146 {x} 2552.748 {y} -1304.36 {z} 1043.1331
set_char_heading 77@ {heading} 87.8604
set_char_decision_maker 77@ {handleOrTemplate} 47@
give_weapon_to_char 77@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 77@ {skill} WeaponSkill.Pro
set_char_area_visible 77@ {areaId} 2
set_char_health 77@ {health} 200
set_char_max_health 77@ {maxHealth} 200
set_char_shoot_rate 77@ {rate} 80
165@ = 0
79@ = create_char PedType.Mission1 {modelId} 146 {x} 2555.8511 {y} -1296.115 {z} 1043.13
set_char_heading 79@ {heading} 348.0356
set_char_decision_maker 79@ {handleOrTemplate} 47@
give_weapon_to_char 79@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 79@ {skill} WeaponSkill.Pro
set_char_area_visible 79@ {areaId} 2
set_char_proofs 79@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 79@ {health} 200
set_char_max_health 79@ {maxHealth} 200
set_char_accuracy 79@ {accuracy} 80
167@ = 0
80@ = create_char PedType.Mission1 {modelId} 144 {x} 2542.606 {y} -1296.0959 {z} 1043.1331
set_char_heading 80@ {heading} 353.9691
set_char_decision_maker 80@ {handleOrTemplate} 47@
give_weapon_to_char 80@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 80@ {areaId} 2
set_char_health 80@ {health} 200
set_char_max_health 80@ {maxHealth} 200
168@ = 0
81@ = create_char PedType.Mission1 {modelId} 146 {x} 2552.9241 {y} -1290.8781 {z} 1043.1331
set_char_heading 81@ {heading} 187.0611
set_char_decision_maker 81@ {handleOrTemplate} 47@
give_weapon_to_char 81@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 81@ {areaId} 2
set_char_health 81@ {health} 200
set_char_max_health 81@ {maxHealth} 200
set_char_accuracy 81@ {accuracy} 70
169@ = 0
83@ = create_char PedType.Mission1 {modelId} 144 {x} 2550.0591 {y} -1281.248 {z} 1043.1331
set_char_heading 83@ {heading} 230.8361
set_char_decision_maker 83@ {handleOrTemplate} 47@
give_weapon_to_char 83@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 83@ {areaId} 2
set_char_health 83@ {health} 200
set_char_max_health 83@ {maxHealth} 200
set_char_shoot_rate 83@ {rate} 80
171@ = 0
wait 250
84@ = create_char PedType.Mission1 {modelId} 144 {x} 2531.906 {y} -1283.062 {z} 1047.297
set_char_heading 84@ {heading} 233.2448
set_char_decision_maker 84@ {handleOrTemplate} 47@
give_weapon_to_char 84@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 84@ {areaId} 2
set_char_health 84@ {health} 200
set_char_max_health 84@ {maxHealth} 200
set_char_accuracy 84@ {accuracy} 50
172@ = 0
85@ = create_char PedType.Mission1 {modelId} 144 {x} 2548.9771 {y} -1282.426 {z} 1047.297
set_char_heading 85@ {heading} 234.0824
set_char_decision_maker 85@ {handleOrTemplate} 47@
give_weapon_to_char 85@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 85@ {skill} WeaponSkill.Pro
set_char_area_visible 85@ {areaId} 2
set_char_health 85@ {health} 200
set_char_max_health 85@ {maxHealth} 200
173@ = 0
86@ = create_char PedType.Mission1 {modelId} 144 {x} 2530.0349 {y} -1293.182 {z} 1047.36
set_char_heading 86@ {heading} 268.475
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_health 86@ {health} 200
set_char_max_health 86@ {maxHealth} 200
set_char_area_visible 86@ {areaId} 2
set_char_accuracy 86@ {accuracy} 80
174@ = 0
set_player_control $player1 {state} True
switch_widescreen False
set_char_heading $scplayer {heading} 0.0
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
print_now 'RM4_23' {time} 7000 {flag} 1
147@ = 3
157@ = 1
156@ = 12

:FINALEA_17177
if 
  147@ == 3
goto_if_false @FINALEA_21863
if 
  157@ == 1
goto_if_false @FINALEA_17324
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2576.3 {leftBottomY} -1299.12 {leftBottomZ} 1039.71 {rightTopX} 2584.46 {rightTopY} -1281.22 {rightTopZ} 1046.6 {drawSphere} False
goto_if_false @FINALEA_17324
if 
  159@ == 0
goto_if_false @FINALEA_17317
if 
  not is_char_dead 71@
goto_if_false @FINALEA_17317
set_lvar_int_to_lvar_int 109@ = 71@
gosub @FINALEA_31697
159@ = 1

:FINALEA_17317
157@ = 2

:FINALEA_17324
if 
  160@ == 0
goto_if_false @FINALEA_17400
if 
  not is_char_dead 72@
goto_if_false @FINALEA_17400
if or
  has_char_spotted_char 72@ {target} $scplayer
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @FINALEA_17400
task_kill_char_on_foot 72@ {target} $scplayer
160@ = 1

:FINALEA_17400
if 
  157@ == 2
goto_if_false @FINALEA_18351
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2571.502 {leftBottomY} -1311.993 {leftBottomZ} 1041.858 {rightTopX} 2560.8059 {rightTopY} -1276.365 {rightTopZ} 1046.7271 {drawSphere} False
goto_if_false @FINALEA_18351
if 
  159@ == 0
goto_if_false @FINALEA_17501
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 72@
159@ = 1

:FINALEA_17501
if 
  161@ == 0
goto_if_false @FINALEA_17605
if 
  not is_char_dead 73@
goto_if_false @FINALEA_17605
set_lvar_int_to_lvar_int 109@ = 73@
111@ = 2561.6479
112@ = -1300.6479
113@ = 1043.17
117@ = 3000
121@ = 270.0
gosub @FINALEA_31973
161@ = 1

:FINALEA_17605
if 
  162@ == 0
goto_if_false @FINALEA_17709
if 
  not is_char_dead 74@
goto_if_false @FINALEA_17709
set_lvar_int_to_lvar_int 109@ = 74@
111@ = 2545.6479
112@ = -1300.6479
113@ = 1043.17
117@ = 1200
121@ = 270.0
gosub @FINALEA_31973
162@ = 1

:FINALEA_17709
if 
  163@ == 0
goto_if_false @FINALEA_17813
if 
  not is_char_dead 75@
goto_if_false @FINALEA_17813
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2538.3479
112@ = -1287.1479
113@ = 1043.1331
117@ = 1500
121@ = 270.0
gosub @FINALEA_32214
163@ = 1

:FINALEA_17813
if 
  164@ == 0
goto_if_false @FINALEA_17917
if 
  not is_char_dead 76@
goto_if_false @FINALEA_17917
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2553.6479
112@ = -1287.1479
113@ = 1043.1331
117@ = 2000
121@ = 270.0
gosub @FINALEA_32214
164@ = 1

:FINALEA_17917
if 
  165@ == 0
goto_if_false @FINALEA_17966
if 
  not is_char_dead 77@
goto_if_false @FINALEA_17966
task_kill_char_on_foot 77@ {target} $scplayer
165@ = 1

:FINALEA_17966
if 
  167@ == 0
goto_if_false @FINALEA_18015
if 
  not is_char_dead 79@
goto_if_false @FINALEA_18015
task_kill_char_on_foot 79@ {target} $scplayer
167@ = 1

:FINALEA_18015
if 
  168@ == 0
goto_if_false @FINALEA_18071
if 
  not is_char_dead 80@
goto_if_false @FINALEA_18071
set_lvar_int_to_lvar_int 109@ = 80@
gosub @FINALEA_31653
168@ = 1

:FINALEA_18071
if 
  169@ == 0
goto_if_false @FINALEA_18127
if 
  not is_char_dead 81@
goto_if_false @FINALEA_18127
set_lvar_int_to_lvar_int 109@ = 81@
gosub @FINALEA_31653
168@ = 1

:FINALEA_18127
if 
  171@ == 0
goto_if_false @FINALEA_18176
if 
  not is_char_dead 83@
goto_if_false @FINALEA_18176
task_kill_char_on_foot 83@ {target} $scplayer
171@ = 1

:FINALEA_18176
if 
  172@ == 0
goto_if_false @FINALEA_18232
if 
  not is_char_dead 84@
goto_if_false @FINALEA_18232
set_lvar_int_to_lvar_int 109@ = 84@
gosub @FINALEA_31653
172@ = 1

:FINALEA_18232
if 
  173@ == 0
goto_if_false @FINALEA_18288
if 
  not is_char_dead 85@
goto_if_false @FINALEA_18288
set_lvar_int_to_lvar_int 109@ = 85@
gosub @FINALEA_31697
173@ = 1

:FINALEA_18288
if 
  174@ == 0
goto_if_false @FINALEA_18344
if 
  not is_char_dead 86@
goto_if_false @FINALEA_18344
set_lvar_int_to_lvar_int 109@ = 86@
gosub @FINALEA_31697
174@ = 1

:FINALEA_18344
157@ = 3

:FINALEA_18351
if 
  157@ == 3
goto_if_false @FINALEA_20746
if 
  161@ == 1
goto_if_false @FINALEA_18497
if 
  not is_char_dead 73@
goto_if_false @FINALEA_18497
if 
  has_char_been_damaged_by_char 73@ {handle} $scplayer
goto_if_false @FINALEA_18497
if or
  not is_char_dead 73@
  locate_char_any_means_char_3d 73@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18485
task_kill_char_on_foot 73@ {target} $scplayer
161@ = 2
goto @FINALEA_18497

:FINALEA_18485
mark_char_as_no_longer_needed 73@
161@ = 2

:FINALEA_18497
if 
  162@ == 1
goto_if_false @FINALEA_18625
if 
  not is_char_dead 74@
goto_if_false @FINALEA_18625
if or
  has_char_been_damaged_by_char 74@ {handle} $scplayer
  locate_char_any_means_char_3d 74@ {target} $scplayer {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18625
if 
  not is_char_dead 74@
goto_if_false @FINALEA_18613
task_kill_char_on_foot 74@ {target} $scplayer
162@ = 2
goto @FINALEA_18625

:FINALEA_18613
mark_char_as_no_longer_needed 74@
162@ = 2

:FINALEA_18625
if 
  163@ == 1
goto_if_false @FINALEA_18753
if 
  not is_char_dead 75@
goto_if_false @FINALEA_18753
if or
  has_char_been_damaged_by_char 75@ {handle} $scplayer
  locate_char_any_means_char_3d 75@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18753
if 
  not is_char_dead 75@
goto_if_false @FINALEA_18741
task_kill_char_on_foot 75@ {target} $scplayer
163@ = 2
goto @FINALEA_18753

:FINALEA_18741
mark_char_as_no_longer_needed 75@
163@ = 2

:FINALEA_18753
if 
  164@ == 1
goto_if_false @FINALEA_18876
if 
  not is_char_dead 76@
goto_if_false @FINALEA_18876
if or
  has_char_been_damaged_by_char 76@ {handle} $scplayer
  locate_char_any_means_char_3d 76@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_18876
if 
  not is_char_dead 76@
goto_if_false @FINALEA_18869
task_kill_char_on_foot 76@ {target} $scplayer
164@ = 2
goto @FINALEA_18876

:FINALEA_18869
164@ = 2

:FINALEA_18876
if or
  161@ == 1
  161@ == 2
goto_if_false @FINALEA_18936
if 
  is_char_dead 73@
goto_if_false @FINALEA_18936
mark_char_as_no_longer_needed 73@
183@ += 1
161@ = 3

:FINALEA_18936
if or
  162@ == 1
  162@ == 2
goto_if_false @FINALEA_18996
if 
  is_char_dead 74@
goto_if_false @FINALEA_18996
mark_char_as_no_longer_needed 74@
183@ += 1
162@ = 3

:FINALEA_18996
if or
  163@ == 1
  163@ == 2
goto_if_false @FINALEA_19056
if 
  is_char_dead 75@
goto_if_false @FINALEA_19056
mark_char_as_no_longer_needed 75@
183@ += 1
163@ = 3

:FINALEA_19056
if or
  164@ == 1
  164@ == 2
goto_if_false @FINALEA_19116
if 
  is_char_dead 76@
goto_if_false @FINALEA_19116
mark_char_as_no_longer_needed 76@
183@ += 1
164@ = 3

:FINALEA_19116
if 
  165@ == 1
goto_if_false @FINALEA_19169
if 
  is_char_dead 77@
goto_if_false @FINALEA_19169
mark_char_as_no_longer_needed 77@
183@ += 1
165@ = 2

:FINALEA_19169
if 
  168@ == 1
goto_if_false @FINALEA_19222
if 
  is_char_dead 80@
goto_if_false @FINALEA_19222
mark_char_as_no_longer_needed 80@
183@ += 1
168@ = 2

:FINALEA_19222
if 
  169@ == 1
goto_if_false @FINALEA_19275
if 
  is_char_dead 81@
goto_if_false @FINALEA_19275
mark_char_as_no_longer_needed 81@
183@ += 1
169@ = 2

:FINALEA_19275
if 
  171@ == 1
goto_if_false @FINALEA_19328
if 
  is_char_dead 83@
goto_if_false @FINALEA_19328
mark_char_as_no_longer_needed 83@
183@ += 1
171@ = 2

:FINALEA_19328
if 
  172@ == 1
goto_if_false @FINALEA_19381
if 
  is_char_dead 84@
goto_if_false @FINALEA_19381
mark_char_as_no_longer_needed 84@
183@ += 1
172@ = 2

:FINALEA_19381
if 
  173@ == 1
goto_if_false @FINALEA_19434
if 
  is_char_dead 85@
goto_if_false @FINALEA_19434
mark_char_as_no_longer_needed 85@
183@ += 1
173@ = 2

:FINALEA_19434
if 
  174@ == 1
goto_if_false @FINALEA_19487
if 
  is_char_dead 86@
goto_if_false @FINALEA_19487
mark_char_as_no_longer_needed 86@
183@ += 1
174@ = 2

:FINALEA_19487
if 
  184@ == 0
goto_if_false @FINALEA_19868
if 
  183@ > 5
goto_if_false @FINALEA_19868
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2551.1201 {leftBottomY} -1276.34 {leftBottomZ} 1046.55 {rightTopX} 2543.0701 {rightTopY} -1287.63 {rightTopZ} 1050.46 {drawSphere} False
goto_if_false @FINALEA_19868
87@ = create_char PedType.Mission1 {modelId} 173 {x} 2573.448 {y} -1301.981 {z} 1043.1331
set_char_heading 87@ {heading} 87.1597
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 87@ {areaId} 2
set_char_health 87@ {health} 200
set_char_max_health 87@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 87@
111@ = 2566.2881
112@ = -1301.637
113@ = 1043.1331
118@ = 2565.74
119@ = -1297.0909
120@ = 1043.1331
gosub @FINALEA_31735
175@ = 1
88@ = create_char PedType.Mission1 {modelId} 173 {x} 2575.3081 {y} -1301.908 {z} 1043.1331
set_char_heading 88@ {heading} 91.2377
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 88@ {areaId} 2
set_char_health 88@ {health} 200
set_char_max_health 88@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 88@
111@ = 2566.9839
112@ = -1302.09
113@ = 1043.1331
gosub @FINALEA_31604
176@ = 1
184@ = 1

:FINALEA_19868
if 
  185@ == 0
goto_if_false @FINALEA_20201
if 
  183@ > 8
goto_if_false @FINALEA_20201
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2566.0901 {leftBottomY} -1301.26 {leftBottomZ} 1046.91 {rightTopX} 2554.5601 {rightTopY} -1309.0601 {rightTopZ} 1050.0 {drawSphere} False
goto_if_false @FINALEA_20201
89@ = create_char PedType.Mission1 {modelId} 173 {x} 2527.271 {y} -1305.6479 {z} 1047.297
set_char_heading 89@ {heading} 269.5592
set_char_decision_maker 89@ {handleOrTemplate} 47@
give_weapon_to_char 89@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 89@ {skill} WeaponSkill.Pro
set_char_area_visible 89@ {areaId} 2
set_lvar_int_to_lvar_int 109@ = 89@
111@ = 2542.3169
112@ = -1305.674
113@ = 1047.297
gosub @FINALEA_31604
177@ = 1
90@ = create_char PedType.Mission1 {modelId} 173 {x} 2523.7 {y} -1305.8781 {z} 1047.297
set_char_heading 90@ {heading} 273.1955
set_char_decision_maker 90@ {handleOrTemplate} 47@
give_weapon_to_char 90@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_weapon_skill 90@ {skill} WeaponSkill.Pro
set_char_area_visible 90@ {areaId} 2
set_lvar_int_to_lvar_int 109@ = 90@
111@ = 2534.5669
112@ = -1305.547
113@ = 1047.297
gosub @FINALEA_31604
178@ = 1
185@ = 1

:FINALEA_20201
if 
  175@ == 1
goto_if_false @FINALEA_20254
if 
  is_char_dead 87@
goto_if_false @FINALEA_20254
mark_char_as_no_longer_needed 87@
183@ += 1
175@ = 2

:FINALEA_20254
if 
  176@ == 1
goto_if_false @FINALEA_20307
if 
  is_char_dead 88@
goto_if_false @FINALEA_20307
mark_char_as_no_longer_needed 88@
183@ += 1
176@ = 2

:FINALEA_20307
if 
  177@ == 1
goto_if_false @FINALEA_20360
if 
  is_char_dead 89@
goto_if_false @FINALEA_20360
mark_char_as_no_longer_needed 89@
183@ += 1
177@ = 2

:FINALEA_20360
if 
  178@ == 1
goto_if_false @FINALEA_20413
if 
  is_char_dead 90@
goto_if_false @FINALEA_20413
mark_char_as_no_longer_needed 90@
183@ += 1
178@ = 2

:FINALEA_20413
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2522.3501 {leftBottomY} -1309.65 {leftBottomZ} 1045.6 {rightTopX} 2513.5 {rightTopY} -1295.97 {rightTopZ} 1050.3199 {drawSphere} False
goto_if_false @FINALEA_20746
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 2525.0791 {y} -1301.891 {z} 1047.297
set_char_heading $scplayer {heading} 89.7295
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 75@
delete_char 76@
delete_char 77@
delete_char 80@
delete_char 81@
delete_char 83@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
delete_char 88@
delete_char 89@
delete_char 90@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
mark_model_as_no_longer_needed 144
mark_model_as_no_longer_needed 145
mark_model_as_no_longer_needed 146
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #BARREL4
set_fixed_camera_position 2520.282 {y} -1306.363 {z} 1047.599 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2520.3 {y} -1305.3879 {z} 1047.823 {switchStyle} SwitchType.JumpCut
print_big 'RM4_19' {time} 1000 {style} TextStyle.BottomRight
wait 1000
task_go_straight_to_coord $scplayer {x} 2520.0249 {y} -1301.845 {z} 1047.2889 {speed} MoveState.Walk {time} 5000
157@ = 4

:FINALEA_20746
if 
  157@ == 4
goto_if_false @FINALEA_21863
if 
  locate_stopped_char_on_foot_2d $scplayer {x} 2520.0249 {y} -1301.845 {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_21863
request_model 104
request_model 111
request_model 109
request_model 352
request_model 349
request_model 12
request_animation "STRIP"
request_model 256
load_all_models_now 

:FINALEA_20844
if or
  not has_model_loaded 104
  not has_model_loaded 111
  not has_model_loaded 109
  not has_model_loaded 352
  not has_model_loaded 349
goto_if_false @FINALEA_20888
wait 0
goto @FINALEA_20844

:FINALEA_20888
if or
  not has_model_loaded 12
  not has_animation_loaded "STRIP"
  not has_model_loaded 256
goto_if_false @FINALEA_20928
wait 0
goto @FINALEA_20888

:FINALEA_20928
135@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2520.3999 {y} -1281.287 {z} 1054.681
wait 250
89@ = create_char PedType.Mission1 {modelId} 104 {x} 2520.8911 {y} -1281.7629 {z} 1053.681
set_char_heading 89@ {heading} 180.628
set_char_decision_maker 89@ {handleOrTemplate} 47@
give_weapon_to_char 89@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 89@ {skill} WeaponSkill.Pro
set_char_area_visible 89@ {areaId} 2
177@ = 0
71@ = create_char PedType.Mission1 {modelId} 109 {x} 2529.813 {y} -1285.063 {z} 1053.641
set_char_heading 71@ {heading} 182.0171
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_area_visible 71@ {areaId} 2
set_char_accuracy 71@ {accuracy} 50
159@ = 0
72@ = create_char PedType.Mission1 {modelId} 104 {x} 2529.9199 {y} -1286.83 {z} 1053.641
set_char_heading 72@ {heading} 358.5364
set_char_decision_maker 72@ {handleOrTemplate} 47@
give_weapon_to_char 72@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 72@ {skill} WeaponSkill.Pro
set_char_area_visible 72@ {areaId} 2
set_char_accuracy 72@ {accuracy} 50
160@ = 0
task_chat_with_char 72@ {other} 71@ {leadSpeaker} True {_p4} 1
task_chat_with_char 71@ {other} 72@ {leadSpeaker} False {_p4} 1
91@ = create_char PedType.Mission1 {modelId} 12 {x} 2537.1499 {y} -1288.125 {z} 1053.641
set_char_heading 91@ {heading} 280.1631
set_char_decision_maker 91@ {handleOrTemplate} 47@
set_char_health 91@ {health} 1
73@ = create_char PedType.Mission1 {modelId} 111 {x} 2540.364 {y} -1287.553 {z} 1053.647
set_char_heading 73@ {heading} 89.793
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 73@ {skill} WeaponSkill.Pro
set_char_area_visible 73@ {areaId} 2
set_char_accuracy 73@ {accuracy} 30
set_char_health 73@ {health} 200
set_char_max_health 73@ {maxHealth} 200
161@ = 0
74@ = create_char PedType.Mission1 {modelId} 109 {x} 2537.074 {y} -1287.274 {z} 1053.681
set_char_heading 74@ {heading} 265.803
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_area_visible 74@ {areaId} 2
set_char_proofs 74@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} False {meleeProof} False
set_char_health 74@ {health} 150
set_char_max_health 74@ {maxHealth} 150
162@ = 0
75@ = create_char PedType.Mission1 {modelId} 104 {x} 2542.2261 {y} -1294.381 {z} 1053.641
set_char_heading 75@ {heading} 89.8814
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 75@ {skill} WeaponSkill.Pro
set_char_area_visible 75@ {areaId} 2
task_sit_down 75@ {time} 400000
set_char_accuracy 75@ {accuracy} 30
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
163@ = 0
wait 250
77@ = create_char PedType.Mission1 {modelId} 109 {x} 2539.4771 {y} -1303.431 {z} 1053.641
set_char_heading 77@ {heading} 10.5492
set_char_decision_maker 77@ {handleOrTemplate} 47@
give_weapon_to_char 77@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 77@ {skill} WeaponSkill.Pro
set_char_area_visible 77@ {areaId} 2
set_char_health 77@ {health} 150
set_char_max_health 77@ {maxHealth} 150
165@ = 0
78@ = create_char PedType.Mission1 {modelId} 111 {x} 2533.9619 {y} -1306.916 {z} 1053.641
set_char_heading 78@ {heading} 338.7091
set_char_decision_maker 78@ {handleOrTemplate} 47@
give_weapon_to_char 78@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 78@ {skill} WeaponSkill.Pro
set_char_area_visible 78@ {areaId} 2
set_char_health 78@ {health} 200
set_char_max_health 78@ {maxHealth} 200
166@ = 0
remove_blip 130@
130@ = add_blip_for_coord 2579.0 {y} -1284.0 {z} 1054.686
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
set_player_control $player1 {state} True
switch_widescreen False
set_char_heading $scplayer {heading} 0.0
restore_camera_jumpcut 
set_camera_behind_player 
clear_prints 
print_now 'RM4_21' {time} 5000 {flag} 1
147@ = 4
158@ = 1
157@ = 5

:FINALEA_21863
if 
  147@ == 4
goto_if_false @FINALEA_27576
if 
  158@ == 1
goto_if_false @FINALEA_22010
if 
  locate_char_any_means_3d $scplayer {x} 2520.23 {y} -1293.09 {z} 1051.49 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEA_22010
if 
  177@ == 0
goto_if_false @FINALEA_22003
if 
  not is_char_dead 89@
goto_if_false @FINALEA_22003
set_lvar_int_to_lvar_int 109@ = 89@
gosub @FINALEA_31697
177@ = 1

:FINALEA_22003
158@ = 2

:FINALEA_22010
if 
  158@ == 2
goto_if_false @FINALEA_22229
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2522.3201 {leftBottomY} -1293.64 {leftBottomZ} 1052.5 {rightTopX} 2532.4099 {rightTopY} -1273.4399 {rightTopZ} 1055.89 {drawSphere} False
goto_if_false @FINALEA_22146
TIMERA = 0
if 
  160@ == 0
goto_if_false @FINALEA_22132
if 
  not is_char_dead 72@
goto_if_false @FINALEA_22132
task_kill_char_on_foot 72@ {target} $scplayer
160@ = 1

:FINALEA_22132
158@ = 3
goto @FINALEA_22229

:FINALEA_22146
if or
  has_char_been_damaged_by_char 71@ {handle} $scplayer
  has_char_been_damaged_by_char 72@ {handle} $scplayer
goto_if_false @FINALEA_22229
if 
  160@ == 0
goto_if_false @FINALEA_22222
if 
  not is_char_dead 72@
goto_if_false @FINALEA_22222
task_kill_char_on_foot 72@ {target} $scplayer
160@ = 1

:FINALEA_22222
158@ = 3

:FINALEA_22229
if 
  158@ == 3
goto_if_false @FINALEA_22322
if 
  TIMERA > 250
goto_if_false @FINALEA_22322
if 
  159@ == 0
goto_if_false @FINALEA_22315
if 
  not is_char_dead 71@
goto_if_false @FINALEA_22315
task_kill_char_on_foot 71@ {target} $scplayer
159@ = 1

:FINALEA_22315
158@ = 4

:FINALEA_22322
if 
  158@ == 4
goto_if_false @FINALEA_22759
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2530.6799 {leftBottomY} -1306.62 {leftBottomZ} 1052.16 {rightTopX} 2542.05 {rightTopY} -1275.1899 {rightTopZ} 1057.08 {drawSphere} False
goto_if_false @FINALEA_22759
if 
  not is_char_dead 91@
goto_if_false @FINALEA_22449
set_lvar_int_to_lvar_int 109@ = 91@
111@ = 2537.7361
112@ = -1306.448
113@ = 1053.641
gosub @FINALEA_32455

:FINALEA_22449
if 
  161@ == 0
goto_if_false @FINALEA_22542
if 
  not is_char_dead 73@
goto_if_false @FINALEA_22542
task_toggle_duck 73@ {state} -1
set_lvar_int_to_lvar_int 109@ = 73@
111@ = 2540.3701
112@ = -1280.79
113@ = 1053.647
gosub @FINALEA_31604
161@ = 1

:FINALEA_22542
if 
  162@ == 0
goto_if_false @FINALEA_22591
if 
  not is_char_dead 74@
goto_if_false @FINALEA_22591
task_kill_char_on_foot 74@ {target} $scplayer
162@ = 1

:FINALEA_22591
if 
  163@ == 0
goto_if_false @FINALEA_22640
if 
  not is_char_dead 75@
goto_if_false @FINALEA_22640
task_kill_char_on_foot 75@ {target} $scplayer
163@ = 1

:FINALEA_22640
if 
  165@ == 0
goto_if_false @FINALEA_22696
if 
  not is_char_dead 77@
goto_if_false @FINALEA_22696
set_lvar_int_to_lvar_int 109@ = 77@
gosub @FINALEA_31653
165@ = 1

:FINALEA_22696
if 
  166@ == 0
goto_if_false @FINALEA_22752
if 
  not is_char_dead 78@
goto_if_false @FINALEA_22752
set_lvar_int_to_lvar_int 109@ = 78@
gosub @FINALEA_31697
166@ = 1

:FINALEA_22752
158@ = 5

:FINALEA_22759
if 
  158@ == 5
goto_if_false @FINALEA_23474
if 
  locate_char_any_means_3d $scplayer {x} 2537.78 {y} -1298.62 {z} 1055.1 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEA_23474
76@ = create_char PedType.Mission1 {modelId} 111 {x} 2545.1931 {y} -1302.545 {z} 1053.647
set_char_heading 76@ {heading} 359.6221
set_char_decision_maker 76@ {handleOrTemplate} 47@
give_weapon_to_char 76@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 76@ {skill} WeaponSkill.Pro
set_char_area_visible 76@ {areaId} 2
set_char_health 76@ {health} 150
set_char_max_health 76@ {maxHealth} 150
task_toggle_duck 76@ {state} -1
164@ = 0
79@ = create_char PedType.Mission1 {modelId} 104 {x} 2548.8081 {y} -1288.9449 {z} 1053.641
set_char_heading 79@ {heading} 168.1978
set_char_decision_maker 79@ {handleOrTemplate} 47@
give_weapon_to_char 79@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 79@ {skill} WeaponSkill.Pro
set_char_accuracy 79@ {accuracy} 50
set_char_area_visible 79@ {areaId} 2
set_char_health 79@ {health} 150
set_char_max_health 79@ {maxHealth} 150
167@ = 0
81@ = create_char PedType.Mission1 {modelId} 109 {x} 2548.2109 {y} -1293.491 {z} 1053.641
set_char_heading 81@ {heading} 177.248
set_char_decision_maker 81@ {handleOrTemplate} 47@
give_weapon_to_char 81@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 81@ {skill} WeaponSkill.Pro
set_char_area_visible 81@ {areaId} 2
set_char_health 81@ {health} 150
set_char_max_health 81@ {maxHealth} 150
set_char_accuracy 81@ {accuracy} 30
169@ = 0
82@ = create_char PedType.Mission1 {modelId} 104 {x} 2548.4729 {y} -1295.834 {z} 1053.647
set_char_heading 82@ {heading} 6.5626
set_char_decision_maker 82@ {handleOrTemplate} 47@
give_weapon_to_char 82@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_accuracy 82@ {accuracy} 30
set_char_area_visible 82@ {areaId} 2
set_char_health 82@ {health} 150
set_char_max_health 82@ {maxHealth} 150
170@ = 0
88@ = create_char PedType.Mission1 {modelId} 104 {x} 2568.7351 {y} -1294.134 {z} 1053.681
set_char_heading 88@ {heading} 270.3791
set_char_decision_maker 88@ {handleOrTemplate} 47@
give_weapon_to_char 88@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 88@ {skill} WeaponSkill.Pro
set_char_area_visible 88@ {areaId} 2
set_char_only_damaged_by_player 88@ {state} True
set_char_health 88@ {health} 150
set_char_max_health 88@ {maxHealth} 150
176@ = 0
80@ = create_char PedType.Mission1 {modelId} 104 {x} 2571.7 {y} -1294.298 {z} 1053.6801
set_char_heading 80@ {heading} 90.0
set_char_decision_maker 80@ {handleOrTemplate} 47@
give_weapon_to_char 80@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_area_visible 80@ {areaId} 2
168@ = 0
83@ = create_char PedType.Mission1 {modelId} 111 {x} 2571.802 {y} -1289.5909 {z} 1053.641
set_char_heading 83@ {heading} 90.3346
set_char_decision_maker 83@ {handleOrTemplate} 47@
give_weapon_to_char 83@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_accuracy 83@ {accuracy} 50
set_char_area_visible 83@ {areaId} 2
set_char_health 83@ {health} 150
set_char_max_health 83@ {maxHealth} 150
171@ = 0
158@ = 6

:FINALEA_23474
if 
  158@ == 6
goto_if_false @FINALEA_24207
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2543.8701 {leftBottomY} -1308.98 {leftBottomZ} 1050.78 {rightTopX} 2553.03 {rightTopY} -1276.55 {rightTopZ} 1059.5 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2543.8799 {y} -1304.9 {z} 1053.8101 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_24207
delete_char 89@
delete_char 71@
delete_char 72@
if 
  164@ == 0
goto_if_false @FINALEA_23685
if 
  not is_char_dead 76@
goto_if_false @FINALEA_23685
task_toggle_duck 76@ {state} -1
set_lvar_int_to_lvar_int 109@ = 76@
111@ = 2545.238
112@ = -1291.791
113@ = 1053.641
gosub @FINALEA_31604
164@ = 1

:FINALEA_23685
if 
  167@ == 0
goto_if_false @FINALEA_23741
if 
  not is_char_dead 79@
goto_if_false @FINALEA_23741
set_lvar_int_to_lvar_int 109@ = 79@
gosub @FINALEA_31697
167@ = 1

:FINALEA_23741
if 
  169@ == 0
goto_if_false @FINALEA_23827
if 
  not is_char_dead 81@
goto_if_false @FINALEA_23827
set_lvar_int_to_lvar_int 109@ = 81@
111@ = 2553.877
112@ = -1292.145
113@ = 1053.647
gosub @FINALEA_31604
169@ = 1

:FINALEA_23827
if 
  170@ == 0
goto_if_false @FINALEA_23943
if 
  not is_char_dead 82@
goto_if_false @FINALEA_23943
set_lvar_int_to_lvar_int 109@ = 82@
111@ = 2553.217
112@ = -1296.903
113@ = 1053.647
118@ = 2557.1709
119@ = -1296.618
120@ = 1053.641
gosub @FINALEA_31735
170@ = 1

:FINALEA_23943
if 
  176@ == 0
goto_if_false @FINALEA_23992
if 
  not is_char_dead 88@
goto_if_false @FINALEA_23992
task_kill_char_on_foot 88@ {target} $scplayer
176@ = 1

:FINALEA_23992
if 
  168@ == 0
goto_if_false @FINALEA_24096
if 
  not is_char_dead 80@
goto_if_false @FINALEA_24096
set_lvar_int_to_lvar_int 109@ = 80@
111@ = 2571.7
112@ = -1294.298
113@ = 1053.6801
117@ = 1200
121@ = 90.0
gosub @FINALEA_31973
168@ = 1

:FINALEA_24096
if 
  171@ == 0
goto_if_false @FINALEA_24200
if 
  not is_char_dead 83@
goto_if_false @FINALEA_24200
set_lvar_int_to_lvar_int 109@ = 83@
111@ = 2571.802
112@ = -1289.5909
113@ = 1053.641
117@ = 2000
121@ = 90.0
gosub @FINALEA_31973
171@ = 1

:FINALEA_24200
158@ = 7

:FINALEA_24207
if 
  158@ == 7
goto_if_false @FINALEA_24680
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2544.0 {leftBottomY} -1298.3101 {leftBottomZ} 1051.84 {rightTopX} 2577.1101 {rightTopY} -1278.61 {rightTopZ} 1057.0601 {drawSphere} False
goto_if_false @FINALEA_24680
delete_char 91@
delete_char 74@
delete_char 75@
delete_char 77@
delete_char 78@
84@ = create_char PedType.Mission1 {modelId} 111 {x} 2561.144 {y} -1302.854 {z} 1053.641
set_char_heading 84@ {heading} 357.9032
set_char_decision_maker 84@ {handleOrTemplate} 47@
give_weapon_to_char 84@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 84@ {skill} WeaponSkill.Pro
set_char_area_visible 84@ {areaId} 2
set_char_health 84@ {health} 200
set_char_max_health 84@ {maxHealth} 200
set_char_accuracy 84@ {accuracy} 40
172@ = 0
if 
  172@ == 0
goto_if_false @FINALEA_24489
if 
  not is_char_dead 84@
goto_if_false @FINALEA_24489
task_toggle_duck 84@ {state} -1
set_lvar_int_to_lvar_int 109@ = 84@
111@ = 2561.0759
112@ = -1295.2531
113@ = 1053.647
gosub @FINALEA_31604
172@ = 1

:FINALEA_24489
85@ = create_char PedType.Mission1 {modelId} 111 {x} 2561.1279 {y} -1284.657 {z} 1053.641
set_char_heading 85@ {heading} 180.8092
set_char_decision_maker 85@ {handleOrTemplate} 47@
give_weapon_to_char 85@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 85@ {skill} WeaponSkill.Pro
set_char_area_visible 85@ {areaId} 2
set_char_accuracy 85@ {accuracy} 40
set_char_health 85@ {health} 150
set_char_max_health 85@ {maxHealth} 150
173@ = 0
if 
  173@ == 0
goto_if_false @FINALEA_24673
if 
  not is_char_dead 85@
goto_if_false @FINALEA_24673
set_lvar_int_to_lvar_int 109@ = 85@
111@ = 2561.241
112@ = -1292.802
113@ = 1053.647
gosub @FINALEA_31604
173@ = 1

:FINALEA_24673
158@ = 8

:FINALEA_24680
if 
  187@ == 0
goto_if_false @FINALEA_24947
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2556.98 {leftBottomY} -1298.58 {leftBottomZ} 1052.0 {rightTopX} 2569.6899 {rightTopY} -1035.12 {rightTopZ} 1056.21 {drawSphere} False
goto_if_false @FINALEA_24947
139@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2552.2981 {y} -1306.0601 {z} 1054.681
87@ = create_char PedType.Mission1 {modelId} 111 {x} 2566.7161 {y} -1305.75 {z} 1053.681
set_char_heading 87@ {heading} 4.514
set_char_decision_maker 87@ {handleOrTemplate} 47@
give_weapon_to_char 87@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_accuracy 87@ {accuracy} 70
set_char_area_visible 87@ {areaId} 2
175@ = 1
task_kill_char_on_foot 87@ {target} $scplayer
92@ = create_char PedType.Mission1 {modelId} 256 {x} 2557.072 {y} -1302.799 {z} 1053.875
set_char_heading 92@ {heading} 53.1978
set_char_decision_maker 92@ {handleOrTemplate} 47@
set_char_health 92@ {health} 5
task_play_anim 92@ {animationName} "STRIP_E" {animationFile} "STRIP" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
187@ = 1

:FINALEA_24947
if 
  186@ == 0
goto_if_false @FINALEA_25213
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2558.9399 {leftBottomY} -1290.24 {leftBottomZ} 1052.74 {rightTopX} 2568.72 {rightTopY} -1283.5601 {rightTopZ} 1057.4301 {drawSphere} False
goto_if_false @FINALEA_25213
136@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2552.4751 {y} -1280.687 {z} 1054.686
86@ = create_char PedType.Mission1 {modelId} 111 {x} 2567.9871 {y} -1281.41 {z} 1053.687
set_char_heading 86@ {heading} 178.685
set_char_decision_maker 86@ {handleOrTemplate} 47@
give_weapon_to_char 86@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_accuracy 86@ {accuracy} 30
set_char_area_visible 86@ {areaId} 2
174@ = 1
task_kill_char_on_foot 86@ {target} $scplayer
93@ = create_char PedType.Mission1 {modelId} 256 {x} 2557.8169 {y} -1285.218 {z} 1053.876
set_char_heading 93@ {heading} 288.0473
set_char_decision_maker 93@ {handleOrTemplate} 47@
set_char_health 93@ {health} 5
task_play_anim 93@ {animationName} "STRIP_A" {animationFile} "STRIP" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
186@ = 1

:FINALEA_25213
if 
  168@ == 1
goto_if_false @FINALEA_25341
if 
  not is_char_dead 80@
goto_if_false @FINALEA_25341
if 
  has_char_been_damaged_by_char 80@ {handle} $scplayer
goto_if_false @FINALEA_25341
if or
  not is_char_dead 80@
  locate_char_any_means_char_3d 80@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_25329
task_kill_char_on_foot 80@ {target} $scplayer
168@ = 2
goto @FINALEA_25341

:FINALEA_25329
mark_char_as_no_longer_needed 80@
168@ = 2

:FINALEA_25341
if 
  171@ == 1
goto_if_false @FINALEA_25469
if 
  not is_char_dead 83@
goto_if_false @FINALEA_25469
if or
  has_char_been_damaged_by_char 83@ {handle} $scplayer
  locate_char_any_means_char_3d 83@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_25469
if 
  not is_char_dead 83@
goto_if_false @FINALEA_25457
task_kill_char_on_foot 83@ {target} $scplayer
171@ = 2
goto @FINALEA_25469

:FINALEA_25457
mark_char_as_no_longer_needed 83@
171@ = 2

:FINALEA_25469
if 
  159@ == 1
goto_if_false @FINALEA_25522
if 
  is_char_dead 71@
goto_if_false @FINALEA_25522
mark_char_as_no_longer_needed 71@
180@ += 1
159@ = 2

:FINALEA_25522
if 
  161@ == 1
goto_if_false @FINALEA_25575
if 
  is_char_dead 73@
goto_if_false @FINALEA_25575
mark_char_as_no_longer_needed 73@
180@ += 1
161@ = 2

:FINALEA_25575
if 
  162@ == 1
goto_if_false @FINALEA_25628
if 
  is_char_dead 74@
goto_if_false @FINALEA_25628
mark_char_as_no_longer_needed 74@
180@ += 1
162@ = 2

:FINALEA_25628
if 
  163@ == 1
goto_if_false @FINALEA_25681
if 
  is_char_dead 75@
goto_if_false @FINALEA_25681
mark_char_as_no_longer_needed 75@
180@ += 1
163@ = 2

:FINALEA_25681
if 
  164@ == 1
goto_if_false @FINALEA_25734
if 
  is_char_dead 76@
goto_if_false @FINALEA_25734
mark_char_as_no_longer_needed 76@
180@ += 1
164@ = 2

:FINALEA_25734
if 
  165@ == 1
goto_if_false @FINALEA_25787
if 
  is_char_dead 77@
goto_if_false @FINALEA_25787
mark_char_as_no_longer_needed 77@
180@ += 1
165@ = 3

:FINALEA_25787
if 
  166@ == 1
goto_if_false @FINALEA_25840
if 
  is_char_dead 78@
goto_if_false @FINALEA_25840
mark_char_as_no_longer_needed 78@
180@ += 1
166@ = 2

:FINALEA_25840
if or
  168@ == 1
  168@ == 2
goto_if_false @FINALEA_25900
if 
  is_char_dead 80@
goto_if_false @FINALEA_25900
mark_char_as_no_longer_needed 80@
180@ += 1
168@ = 3

:FINALEA_25900
if 
  169@ == 1
goto_if_false @FINALEA_25953
if 
  is_char_dead 81@
goto_if_false @FINALEA_25953
mark_char_as_no_longer_needed 81@
180@ += 1
169@ = 2

:FINALEA_25953
if 
  170@ == 1
goto_if_false @FINALEA_26006
if 
  is_char_dead 82@
goto_if_false @FINALEA_26006
mark_char_as_no_longer_needed 82@
180@ += 1
170@ = 2

:FINALEA_26006
if or
  171@ == 1
  171@ == 2
goto_if_false @FINALEA_26066
if 
  is_char_dead 83@
goto_if_false @FINALEA_26066
mark_char_as_no_longer_needed 83@
180@ += 1
171@ = 3

:FINALEA_26066
if 
  172@ == 1
goto_if_false @FINALEA_26119
if 
  is_char_dead 84@
goto_if_false @FINALEA_26119
mark_char_as_no_longer_needed 84@
183@ += 1
172@ = 2

:FINALEA_26119
if 
  173@ == 1
goto_if_false @FINALEA_26172
if 
  is_char_dead 85@
goto_if_false @FINALEA_26172
mark_char_as_no_longer_needed 85@
183@ += 1
173@ = 2

:FINALEA_26172
if 
  174@ == 1
goto_if_false @FINALEA_26225
if 
  is_char_dead 86@
goto_if_false @FINALEA_26225
mark_char_as_no_longer_needed 86@
183@ += 1
174@ = 2

:FINALEA_26225
if 
  175@ == 1
goto_if_false @FINALEA_26278
if 
  is_char_dead 87@
goto_if_false @FINALEA_26278
mark_char_as_no_longer_needed 87@
183@ += 1
175@ = 2

:FINALEA_26278
if 
  176@ == 1
goto_if_false @FINALEA_26331
if 
  is_char_dead 88@
goto_if_false @FINALEA_26331
mark_char_as_no_longer_needed 88@
183@ += 1
176@ = 2

:FINALEA_26331
if 
  177@ == 1
goto_if_false @FINALEA_26384
if 
  is_char_dead 89@
goto_if_false @FINALEA_26384
mark_char_as_no_longer_needed 89@
183@ += 1
177@ = 2

:FINALEA_26384
if 
  158@ == 8
goto_if_false @FINALEA_26555
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2577.4299 {leftBottomY} -1281.21 {leftBottomZ} 1050.83 {rightTopX} 2584.7 {rightTopY} -1291.47 {rightTopZ} 1055.35 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2579.8201 {y} -1284.91 {z} 1054.12 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_26555
print_now 'RM4_24' {time} 5000 {flag} 1
remove_blip 130@
130@ = add_blip_for_coord 2550.74 {y} -1285.02 {z} 1060.62
set_blip_entry_exit 130@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
158@ = 9

:FINALEA_26555
if 
  158@ == 9
goto_if_false @FINALEA_27576
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2577.46 {leftBottomY} -1306.59 {leftBottomZ} 1058.27 {rightTopX} 2571.97 {rightTopY} -1275.1 {rightTopZ} 1063.08 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} 2575.3999 {y} -1300.35 {z} 1061.016 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_27576
remove_blip 130@
delete_char 92@
delete_char 93@
delete_char 71@
delete_char 72@
delete_char 73@
delete_char 74@
delete_char 75@
delete_char 76@
delete_char 77@
delete_char 78@
delete_char 79@
delete_char 80@
delete_char 81@
delete_char 82@
delete_char 83@
delete_char 84@
delete_char 85@
delete_char 86@
delete_char 87@
delete_char 88@
delete_char 89@
delete_char 90@
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FINALEA_26795
if 
  get_fading_status 
goto_if_false @FINALEA_26819
wait 0
goto @FINALEA_26795

:FINALEA_26819
set_area_visible 2
load_cutscene 'RIOT_4C'

:FINALEA_26834
if 
  not has_cutscene_loaded 
goto_if_false @FINALEA_26858
wait 0
goto @FINALEA_26834

:FINALEA_26858
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEA_26867
if 
  not has_cutscene_finished 
goto_if_false @FINALEA_26891
wait 0
goto @FINALEA_26867

:FINALEA_26891
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEA_26906
if 
  get_fading_status 
goto_if_false @FINALEA_26930
wait 0
goto @FINALEA_26906

:FINALEA_26930
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 12
remove_animation "STRIP"
remove_animation "SWAT"
mark_model_as_no_longer_needed 256
request_model 109
request_model 102
request_model 173
request_model 355
request_model 369
load_special_character 2 {modelName} 'SMOKEV'
load_all_models_now 

:FINALEA_27007
if 
  not has_special_character_loaded 2
goto_if_false @FINALEA_27033
wait 0
goto @FINALEA_27007

:FINALEA_27033
if or
  not has_model_loaded 109
  not has_model_loaded 102
  not has_model_loaded 173
  not has_model_loaded 355
  not has_model_loaded 369
goto_if_false @FINALEA_27078
wait 0
goto @FINALEA_27033

:FINALEA_27078
$big_smoke = create_char PedType.Special {modelId} 291 {x} 2549.918 {y} -1284.457 {z} 1060.016
set_char_heading $big_smoke {heading} 250.566
set_char_decision_maker $big_smoke {handleOrTemplate} 47@
give_weapon_to_char $big_smoke {weaponType} WeaponType.Ak47 {ammo} 999999
set_char_accuracy $big_smoke {accuracy} 70
set_char_bulletproof_vest $big_smoke {state} True
set_char_health $big_smoke {health} 10000
set_char_max_health $big_smoke {maxHealth} 2000
set_char_suffers_critical_hits $big_smoke {state} False
set_char_only_damaged_by_player $big_smoke {state} True
131@ = add_blip_for_char $big_smoke
set_char_has_used_entry_exit $big_smoke {x} 2540.8301 {y} -1304.05 {radius} 1.0
set_follow_node_threshold_distance $big_smoke {range} 2.0
set_char_area_visible $big_smoke {areaId} 2
display_onscreen_counter_with_string $smokehealth_fa {display} CounterDisplay.Bar {text} 'RM4_39'
set_char_uses_upperbody_damage_anims_only $big_smoke {state} True
set_char_coordinates $scplayer {x} 2564.447 {y} -1292.822 {z} 1060.016
set_char_heading $scplayer {heading} 58.5
remove_pickup 133@
remove_pickup 134@
remove_pickup 135@
remove_pickup 136@
remove_pickup 137@
remove_pickup 138@
remove_pickup 139@
137@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2582.8479 {y} -1282.741 {z} 1065.391
138@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2578.7839 {y} -1282.572 {z} 1065.4
142@ = create_pickup_with_ammo 369 {pickupType} PickupType.Once {ammo} 1 {x} 2575.03 {y} -1281.598 {z} 1061.02
133@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2549.429 {y} -1291.6121 {z} 1061.024
140@ = create_pickup_with_ammo 356 {pickupType} PickupType.OnStreet {ammo} 60 {x} 2549.6321 {y} -1294.6121 {z} 1061.024
141@ = create_pickup_with_ammo 349 {pickupType} PickupType.OnStreet {ammo} 60 {x} 2552.0901 {y} -1294.106 {z} 1061.024
load_scene 2552.3101 {y} -1286.25 {z} 1061.04
set_time_of_day 22 {minutes} 0
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 500 {direction} Fade.In

:FINALEA_27499
if 
  get_fading_status 
goto_if_false @FINALEA_27523
wait 0
goto @FINALEA_27499

:FINALEA_27523
set_player_control $player1 {state} True
193@ = 0
194@ = 0
195@ = 1
print_help 'RM4_28'
158@ = 10
147@ = 5

:FINALEA_27576
if 
  147@ == 5
goto_if_false @FINALEA_31446
if 
  not is_char_dead $big_smoke
goto_if_false @FINALEA_31213
if 
  188@ == 0
goto_if_false @FINALEA_27930
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0
75@ = create_char PedType.Mission1 {modelId} 173 {x} 2554.729 {y} -1281.952 {z} 1060.024
set_char_heading 75@ {heading} 180.771
set_char_decision_maker 75@ {handleOrTemplate} 47@
give_weapon_to_char 75@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 75@ {skill} WeaponSkill.Pro
task_toggle_duck 75@ {state} -1
set_char_health 75@ {health} 200
set_char_max_health 75@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 75@
111@ = 2554.46
112@ = -1284.412
113@ = 1061.024
gosub @FINALEA_31604
163@ = 1
74@ = create_char PedType.Mission1 {modelId} 102 {x} 2551.2361 {y} -1292.1801 {z} 1060.02
set_char_heading 74@ {heading} 6.0
set_char_decision_maker 74@ {handleOrTemplate} 47@
give_weapon_to_char 74@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 74@ {skill} WeaponSkill.Pro
set_char_health 74@ {health} 200
set_char_max_health 74@ {maxHealth} 200
set_lvar_int_to_lvar_int 109@ = 74@
111@ = 2551.259
112@ = -1288.0811
113@ = 1061.02
gosub @FINALEA_31604
162@ = 1
TIMERA = 0
TIMERB = 0
188@ = 1

:FINALEA_27930
if 
  188@ == 1
goto_if_false @FINALEA_28457
if 
  TIMERB > 6000
goto_if_false @FINALEA_28457
if 
  159@ == 0
goto_if_false @FINALEA_28117
if 
  not is_point_on_screen 2551.2 {y} -1291.7271 {z} 1060.02 {radius} 5.0
goto_if_false @FINALEA_28117
71@ = create_char PedType.Mission1 {modelId} 102 {x} 2551.2 {y} -1291.7271 {z} 1060.02
set_char_heading 71@ {heading} 0.0
set_char_decision_maker 71@ {handleOrTemplate} 47@
give_weapon_to_char 71@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 71@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 71@ {target} $scplayer
set_char_accuracy 71@ {accuracy} 30
set_char_health 71@ {health} 200
set_char_max_health 71@ {maxHealth} 200
159@ = 1

:FINALEA_28117
if 
  160@ == 0
goto_if_false @FINALEA_28260
if 
  not is_point_on_screen 2579.04 {y} -1284.275 {z} 1064.4 {radius} 5.0
goto_if_false @FINALEA_28260
72@ = create_char PedType.Mission1 {modelId} 109 {x} 2579.04 {y} -1284.275 {z} 1064.4
set_char_heading 72@ {heading} 0.0
set_char_decision_maker 72@ {handleOrTemplate} 47@
give_weapon_to_char 72@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 72@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 72@ {target} $scplayer
set_char_health 72@ {health} 150
set_char_max_health 72@ {maxHealth} 150
160@ = 1

:FINALEA_28260
if 
  161@ == 0
goto_if_false @FINALEA_28411
if 
  not is_point_on_screen 2576.9399 {y} -1300.3879 {z} 1060.016 {radius} 1.0
goto_if_false @FINALEA_28411
73@ = create_char PedType.Mission1 {modelId} 173 {x} 2576.9399 {y} -1300.3879 {z} 1060.016
set_char_heading 73@ {heading} 0.0
set_char_decision_maker 73@ {handleOrTemplate} 47@
give_weapon_to_char 73@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 73@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 73@ {target} $scplayer
set_char_accuracy 73@ {accuracy} 30
set_char_health 73@ {health} 200
set_char_max_health 73@ {maxHealth} 200
161@ = 1

:FINALEA_28411
if or
  159@ == 1
  160@ == 1
  161@ == 1
goto_if_false @FINALEA_28457
TIMERB = 0
188@ = 2

:FINALEA_28457
if 
  188@ == 2
goto_if_false @FINALEA_28726
if 
  159@ == 1
goto_if_false @FINALEA_28528
if 
  is_char_dead 71@
goto_if_false @FINALEA_28528
mark_char_as_no_longer_needed 71@
188@ = 1
159@ = 0

:FINALEA_28528
if 
  160@ == 1
goto_if_false @FINALEA_28581
if 
  is_char_dead 72@
goto_if_false @FINALEA_28581
mark_char_as_no_longer_needed 72@
188@ = 1
160@ = 0

:FINALEA_28581
if 
  161@ == 1
goto_if_false @FINALEA_28634
if 
  is_char_dead 73@
goto_if_false @FINALEA_28634
mark_char_as_no_longer_needed 73@
188@ = 1
161@ = 0

:FINALEA_28634
if 
  162@ == 1
goto_if_false @FINALEA_28680
if 
  is_char_dead 74@
goto_if_false @FINALEA_28680
mark_char_as_no_longer_needed 74@
162@ = 0

:FINALEA_28680
if 
  163@ == 1
goto_if_false @FINALEA_28726
if 
  is_char_dead 75@
goto_if_false @FINALEA_28726
mark_char_as_no_longer_needed 75@
163@ = 0

:FINALEA_28726
if 
  145@ == 0
goto_if_false @FINALEA_28780
144@ = get_script_task_status $big_smoke {taskId} 1506
if 
  is_int_lvar_equal_to_constant 144@ == 7
goto_if_false @FINALEA_28780
145@ = 1

:FINALEA_28780
if 
  189@ == 0
goto_if_false @FINALEA_28857
if 
  190@ == 0
goto_if_false @FINALEA_28857
if 
  TIMERA > 1000
goto_if_false @FINALEA_28857
TIMERA = 10000
190@ = 1
189@ = 1

:FINALEA_28857
if 
  189@ == 1
goto_if_false @FINALEA_29064
if 
  190@ == 1
goto_if_false @FINALEA_29064
if 
  TIMERA > 5999
goto_if_false @FINALEA_29013
if 
  not locate_char_any_means_3d $scplayer {x} 2564.2419 {y} -1282.2209 {z} 1064.41 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_28999
task_follow_path_nodes_to_coord $big_smoke {x} 2564.2419 {y} -1282.2209 {z} 1064.41 {speed} MoveState.Run {time} 20000
190@ = 2
goto @FINALEA_29006

:FINALEA_28999
189@ = 3

:FINALEA_29006
goto @FINALEA_29064

:FINALEA_29013
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_29064
189@ = 2
TIMERA = 10000

:FINALEA_29064
if 
  189@ == 1
goto_if_false @FINALEA_29184
if 
  locate_char_any_means_3d $big_smoke {x} 2564.2419 {y} -1282.2209 {z} 1064.41 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_29184
if 
  145@ == 1
goto_if_false @FINALEA_29163
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_29163
TIMERA = 0
190@ = 1
189@ = 2

:FINALEA_29184
if 
  189@ == 2
goto_if_false @FINALEA_29391
if 
  190@ == 1
goto_if_false @FINALEA_29391
if 
  TIMERA > 4999
goto_if_false @FINALEA_29340
if 
  not locate_char_any_means_3d $scplayer {x} 2575.3501 {y} -1295.873 {z} 1061.85 {xRadius} 5.5 {yRadius} 5.5 {zRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_29326
task_follow_path_nodes_to_coord $big_smoke {x} 2575.3501 {y} -1295.873 {z} 1061.85 {speed} MoveState.Run {time} 20000
190@ = 2
goto @FINALEA_29333

:FINALEA_29326
189@ = 4

:FINALEA_29333
goto @FINALEA_29391

:FINALEA_29340
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_29391
189@ = 4
TIMERA = 10000

:FINALEA_29391
if 
  189@ == 2
goto_if_false @FINALEA_29511
if 
  locate_char_any_means_3d $big_smoke {x} 2575.3501 {y} -1295.873 {z} 1061.85 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_29511
if 
  145@ == 1
goto_if_false @FINALEA_29490
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_29490
TIMERA = 0
190@ = 1
189@ = 3

:FINALEA_29511
if 
  189@ == 3
goto_if_false @FINALEA_29720
if 
  190@ == 1
goto_if_false @FINALEA_29720
if 
  TIMERA > 4999
goto_if_false @FINALEA_29669
if 
  not locate_char_any_means_3d $scplayer {x} 2558.1809 {y} -1303.748 {z} 1061.024 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_29655
task_follow_path_nodes_to_coord $big_smoke {x} 2558.1809 {y} -1303.748 {z} 1061.024 {speed} MoveState.Run {time} 200000
190@ = 2
goto @FINALEA_29662

:FINALEA_29655
189@ = 1

:FINALEA_29662
goto @FINALEA_29720

:FINALEA_29669
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_29720
189@ = 1
TIMERA = 10000

:FINALEA_29720
if 
  189@ == 3
goto_if_false @FINALEA_29840
if 
  locate_char_any_means_3d $big_smoke {x} 2558.1809 {y} -1303.748 {z} 1061.024 {xRadius} 3.5 {yRadius} 3.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_29840
if 
  145@ == 1
goto_if_false @FINALEA_29819
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_29819
TIMERA = 0
190@ = 1
189@ = 4

:FINALEA_29840
if 
  189@ == 4
goto_if_false @FINALEA_30047
if 
  190@ == 1
goto_if_false @FINALEA_30047
if 
  TIMERA > 5999
goto_if_false @FINALEA_29996
if 
  not locate_char_any_means_3d $scplayer {x} 2553.2329 {y} -1282.609 {z} 1061.024 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.5 {drawSphere} False
goto_if_false @FINALEA_29982
task_follow_path_nodes_to_coord $big_smoke {x} 2553.2329 {y} -1282.609 {z} 1061.024 {speed} MoveState.Run {time} 20000
190@ = 2
goto @FINALEA_29989

:FINALEA_29982
189@ = 2

:FINALEA_29989
goto @FINALEA_30047

:FINALEA_29996
if 
  locate_char_any_means_char_3d $big_smoke {target} $scplayer {xRadius} 3.0 {yRadius} 3.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @FINALEA_30047
189@ = 2
TIMERA = 10000

:FINALEA_30047
if 
  189@ == 4
goto_if_false @FINALEA_30167
if 
  locate_char_any_means_3d $big_smoke {x} 2553.2329 {y} -1282.609 {z} 1061.024 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEA_30167
if 
  145@ == 1
goto_if_false @FINALEA_30146
task_kill_char_on_foot $big_smoke {target} $scplayer
145@ = 0

:FINALEA_30146
TIMERA = 0
190@ = 1
189@ = 1

:FINALEA_30167
if 
  not is_char_dead $big_smoke
goto_if_false @FINALEA_30288
$smokehealth_fa = get_char_health $big_smoke
$smokehealth_fa -= 8000
$smokehealth_fa /= 20
if 
  0 >= $smokehealth_fa
goto_if_false @FINALEA_30231
$smokehealth_fa = 0

:FINALEA_30231
if 
  191@ == 0
goto_if_false @FINALEA_30288
if 
  80 > $smokehealth_fa
goto_if_false @FINALEA_30288
196@ = 1
set_darkness_effect True {pitchBlack} 200
191@ = 1

:FINALEA_30288
if 
  not is_char_dead $big_smoke
goto_if_false @FINALEA_30576
94@ = get_char_health $big_smoke
if 
  8000 >= 94@
goto_if_false @FINALEA_30576
$smokehealth_fa = 0
task_die $big_smoke
set_darkness_effect False {pitchBlack} -1
set_infrared_vision False
clear_onscreen_counter $smokehealth_fa
set_player_control $player1 {state} False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_area $player_x {y} $player_y {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead 71@
goto_if_false @FINALEA_30420
task_die 71@

:FINALEA_30420
if 
  not is_char_dead 72@
goto_if_false @FINALEA_30441
task_die 72@

:FINALEA_30441
if 
  not is_char_dead 73@
goto_if_false @FINALEA_30462
task_die 73@

:FINALEA_30462
if 
  not is_char_dead 74@
goto_if_false @FINALEA_30483
task_die 74@

:FINALEA_30483
if 
  not is_char_dead 75@
goto_if_false @FINALEA_30504
task_die 75@

:FINALEA_30504
TIMERA = 0
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
195@ = 2
do_fade 2500 {direction} Fade.Out

:FINALEA_30538
if 
  get_fading_status 
goto_if_false @FINALEA_30562
wait 0
goto @FINALEA_30538

:FINALEA_30562
goto @FINALEA_32590
TIMERA = 0

:FINALEA_30576
if 
  191@ == 1
goto_if_false @FINALEA_30761
if 
  192@ == 0
goto_if_false @FINALEA_30704
if 
  has_pickup_been_collected 142@
goto_if_false @FINALEA_30653
print_help 'RM4_36'
192@ = 3
goto @FINALEA_30704

:FINALEA_30653
132@ = add_blip_for_pickup 142@
set_blip_entry_exit 132@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
print_now 'RM4_31' {time} 7000 {flag} 1
192@ = 1

:FINALEA_30704
if 
  192@ == 1
goto_if_false @FINALEA_30761
if 
  has_pickup_been_collected 142@
goto_if_false @FINALEA_30761
remove_blip 132@
print_help 'RM4_36'
192@ = 2

:FINALEA_30761
if 
  195@ == 1
goto_if_false @FINALEA_31206
gosub @FINALEA_31495
if 
  193@ == 0
goto_if_false @FINALEA_30853
if 
  194@ == 0
goto_if_false @FINALEA_30853
set_lvar_int_to_constant 125@ = 33298
set_lvar_text_label 126@s = 'ROT4_UA'
gosub @FINALEA_31453

:FINALEA_30853
if 
  193@ == 1
goto_if_false @FINALEA_30920
if 
  194@ == 0
goto_if_false @FINALEA_30920
set_lvar_int_to_constant 125@ = 33299
set_lvar_text_label 126@s = 'ROT4_UB'
gosub @FINALEA_31453

:FINALEA_30920
if 
  193@ == 2
goto_if_false @FINALEA_30987
if 
  194@ == 0
goto_if_false @FINALEA_30987
set_lvar_int_to_constant 125@ = 33300
set_lvar_text_label 126@s = 'ROT4_UC'
gosub @FINALEA_31453

:FINALEA_30987
if 
  193@ == 3
goto_if_false @FINALEA_31054
if 
  194@ == 0
goto_if_false @FINALEA_31054
set_lvar_int_to_constant 125@ = 33301
set_lvar_text_label 126@s = 'ROT4_UD'
gosub @FINALEA_31453

:FINALEA_31054
if 
  193@ == 4
goto_if_false @FINALEA_31121
if 
  194@ == 0
goto_if_false @FINALEA_31121
set_lvar_int_to_constant 125@ = 33303
set_lvar_text_label 126@s = 'ROT4_ZB'
gosub @FINALEA_31453

:FINALEA_31121
if 
  196@ == 1
goto_if_false @FINALEA_31206
if 
  193@ == 5
goto_if_false @FINALEA_31206
if 
  194@ == 0
goto_if_false @FINALEA_31206
set_lvar_int_to_constant 125@ = 33302
set_lvar_text_label 126@s = 'RM4_31'
gosub @FINALEA_31453

:FINALEA_31206
goto @FINALEA_31446

:FINALEA_31213
$smokehealth_fa = 0
set_darkness_effect False {pitchBlack} -1
set_infrared_vision False
clear_onscreen_counter $smokehealth_fa
set_player_control $player1 {state} False
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_area $player_x {y} $player_y {z} 100.0 {radius} 100.0 {clearParticles} True
if 
  not is_char_dead 71@
goto_if_false @FINALEA_31297
task_die 71@

:FINALEA_31297
if 
  not is_char_dead 72@
goto_if_false @FINALEA_31318
task_die 72@

:FINALEA_31318
if 
  not is_char_dead 73@
goto_if_false @FINALEA_31339
task_die 73@

:FINALEA_31339
if 
  not is_char_dead 74@
goto_if_false @FINALEA_31360
task_die 74@

:FINALEA_31360
if 
  not is_char_dead 75@
goto_if_false @FINALEA_31381
task_die 75@

:FINALEA_31381
TIMERA = 0
TIMERB = 0
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
195@ = 2
do_fade 2500 {direction} Fade.Out

:FINALEA_31415
if 
  get_fading_status 
goto_if_false @FINALEA_31439
wait 0
goto @FINALEA_31415

:FINALEA_31439
goto @FINALEA_32590

:FINALEA_31446
goto @FINALEA_1473

:FINALEA_31453
if 
  194@ == 0
goto_if_false @FINALEA_31493
load_mission_audio MissionAudioSlot.Slot1 {audioId} 125@
set_lvar_text_label 123@s = 126@s
194@ = 1

:FINALEA_31493
return 

:FINALEA_31495
if 
  194@ == 1
goto_if_false @FINALEA_31549
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEA_31549
print_now 123@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
194@ = 2

:FINALEA_31549
if 
  194@ == 2
goto_if_false @FINALEA_31602
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @FINALEA_31602
193@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
194@ = 0

:FINALEA_31602
return 

:FINALEA_31604
103@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 111@ {y} 112@ {z} 113@ {speed} MoveState.Run {time} -1
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 103@
perform_sequence_task 109@ {sequence} 103@
clear_sequence_task 103@
return 

:FINALEA_31653
104@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 104@
perform_sequence_task 109@ {sequence} 104@
clear_sequence_task 104@
return 

:FINALEA_31697
105@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 105@
perform_sequence_task 109@ {sequence} 105@
clear_sequence_task 105@
return 

:FINALEA_31735
116@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 111@ {y} 112@ {z} 113@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 118@ {y} 119@ {z} 120@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 116@
perform_sequence_task 109@ {sequence} 116@
clear_sequence_task 116@
return 
106@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 106@
perform_sequence_task 109@ {sequence} 106@
clear_sequence_task 106@
return 

:FINALEA_31890
107@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_L" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 107@
perform_sequence_task 109@ {sequence} 107@
clear_sequence_task 107@
return 

:FINALEA_31973
108@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 117@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 111@ {y} 112@ {z} 113@ {heading} 121@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 108@ {state} True
close_sequence_task 108@
perform_sequence_task 109@ {sequence} 108@
clear_sequence_task 108@
return 

:FINALEA_32214
110@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 117@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 111@ {y} 112@ {z} 113@ {heading} 121@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 110@ {state} True
close_sequence_task 110@
perform_sequence_task 109@ {sequence} 110@
clear_sequence_task 110@
return 

:FINALEA_32455
122@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 111@ {y} 112@ {z} 113@ {speed} MoveState.Sprint {time} -1
task_stay_in_same_place -1 {state} True
task_duck -1 {time} -1
close_sequence_task 122@
perform_sequence_task 109@ {sequence} 122@
clear_sequence_task 122@
return 

:FINALEA_32509
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
remove_ipl_discreetly "CARTER"
delete_object $carterwall
$carterwall = create_object_no_offset #IMY_SHASH_WALL {x} 2522.0081 {y} -1272.9301 {z} 35.609
dont_remove_object $carterwall
set_object_health $carterwall {health} 100
set_object_collision_damage_effect $carterwall {state} False
freeze_object_position $carterwall {state} True
return 

:FINALEA_32590
201@ = 1
$flag_riot_mission_counter += 1
clear_wanted_level $player1
request_ipl "CARTER"
return 

:FINALEA_32621
clear_all_script_roadblocks 
disable_all_entry_exits False
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_32650
set_vehicle_is_considered_by_player $sweet_car {state} True

:FINALEA_32650
remove_blip 128@
remove_blip 129@
remove_blip 130@
remove_blip 131@
remove_blip 132@
remove_pickup 133@
remove_pickup 134@
remove_pickup 135@
remove_pickup 136@
remove_pickup 137@
remove_pickup 138@
remove_pickup 139@
remove_pickup 140@
remove_pickup 141@
remove_pickup 142@
remove_pickup 143@
clear_onscreen_counter $smokehealth_fa
kill_fx_system 102@
delete_object 96@
delete_object 97@
delete_object 98@
delete_object 99@
delete_object 100@
delete_object 101@
mark_model_as_no_longer_needed 601
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 492
unload_special_character 1
mark_model_as_no_longer_needed 481
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 63
remove_animation "CRACK"
mark_model_as_no_longer_needed 103
mark_model_as_no_longer_needed 108
mark_model_as_no_longer_needed 285
remove_animation "SWAT"
mark_model_as_no_longer_needed #IMCOMPMOVEDR1_LAS
remove_car_recording 287
mark_model_as_no_longer_needed 144
mark_model_as_no_longer_needed 146
mark_model_as_no_longer_needed 173
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #BARREL4
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 111
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 12
remove_animation "STRIP"
mark_model_as_no_longer_needed 256
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 369
unload_special_character 2
switch_emergency_services True
set_wanted_multiplier 1.0
set_max_wanted_level 6
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
switch_roads_on 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_ped_roads_on 2356.3999 {leftBottomY} -1233.16 {leftBottomZ} 30.6 {rightTopX} 2382.1899 {rightTopY} -1329.65 {rightTopZ} 21.49
switch_roads_on 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_ped_roads_on 2522.74 {leftBottomY} -1260.01 {leftBottomZ} 30.28 {rightTopX} 2499.0 {rightTopY} -1322.01 {rightTopZ} 31.76
switch_roads_on 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
switch_ped_roads_on 2431.8999 {leftBottomY} -1268.0601 {leftBottomZ} 30.6 {rightTopX} 2474.8999 {rightTopY} -1240.38 {rightTopZ} 20.84
remove_all_script_fires 
$timer_mobile_start = get_game_timer 
if 
  is_player_playing $player1
goto_if_false @FINALEA_33182
set_player_group_recruitment $player1 {state} True

:FINALEA_33182
if 
  not is_car_dead 57@
goto_if_false @FINALEA_33220
set_car_only_damaged_by_player 57@ {state} False
set_car_proofs 57@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEA_33220
if 
  not is_car_dead $sweet_car
goto_if_false @FINALEA_33251
set_car_proofs $sweet_car {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEA_33251
$onmission = 0
mission_has_finished 
if 
  201@ == 1
goto_if_false @FINALEA_33284
do_fade 0 {direction} Fade.Out

:FINALEA_33284
return 

//-------------Mission 111---------------
// Originally: End Of The Line (2)

:FINALEB
gosub @FINALEB_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEB_27
gosub @FINALEB_18415

:FINALEB_27
gosub @FINALEB_18556
terminate_this_script 

:FINALEB_36
$onmission = 1
script_name 'FINALEB'
wait 0
load_mission_text 'RIOT4'
97@ = load_char_decision_maker DecisionMakerType.Empty
98@ = load_char_decision_maker DecisionMakerType.Tough
set_max_wanted_level 0
switch_widescreen False
set_player_control $player1 {state} True
set_fading_colour 0 {g} 0 {b} 0
set_area_visible 2
load_cutscene 'RIOT_4D'

:FINALEB_121
if 
  not has_cutscene_loaded 
goto_if_false @FINALEB_145
wait 0
goto @FINALEB_121

:FINALEB_145
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEB_154
if 
  not has_cutscene_finished 
goto_if_false @FINALEB_178
wait 0
goto @FINALEB_154

:FINALEB_178
clear_cutscene 
do_fade 0 {direction} Fade.Out

:FINALEB_186
if 
  get_fading_status 
goto_if_false @FINALEB_210
wait 0
goto @FINALEB_186

:FINALEB_210
request_model 102
request_model 104
request_model 109
request_model 368
request_model 349
request_model 352
request_model 356
request_animation "SWAT"
request_model 366
load_special_character 1 {modelName} 'SMOKEV'
load_special_character 2 {modelName} 'TENPEN'
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33304
load_all_models_now 

:FINALEB_292
if or
  not has_special_character_loaded 1
  not has_special_character_loaded 2
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEB_326
wait 0
goto @FINALEB_292

:FINALEB_326
if or
  not has_model_loaded 102
  not has_model_loaded 104
  not has_model_loaded 109
  not has_model_loaded 368
goto_if_false @FINALEB_365
wait 0
goto @FINALEB_326

:FINALEB_365
if or
  not has_model_loaded 349
  not has_model_loaded 352
  not has_model_loaded 356
  not has_animation_loaded "SWAT"
  not has_model_loaded 366
goto_if_false @FINALEB_415
wait 0
goto @FINALEB_365

:FINALEB_415
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
152@ = 0
153@ = 0
154@ = 0
155@ = 0
$escapetimer_fb = 420000
156@ = 0
171@ = 0
172@ = 0
173@ = 0
174@ = 0
175@ = 0
176@ = 0
177@ = 0
178@ = 0
179@ = 0
180@ = 0
181@ = 0
182@ = 0
183@ = 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_max_fire_generations 0
set_wanted_multiplier 0.0
switch_emergency_services False

:FINALEB_720
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @FINALEB_746
goto @FINALEB_18535

:FINALEB_746
if 
  9 > 132@
goto_if_false @FINALEB_999
if 
  154@ == 0
goto_if_false @FINALEB_950
if 
  0 >= $escapetimer_fb
goto_if_false @FINALEB_950
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Grenade
$player_x += 0.0
$player_y -= 0.5
$player_z += 0.7
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Rocket
$player_x -= 1.0
$player_y += 2.0
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Car
$player_x += 1.5
$player_y += 2.0
add_explosion $player_x {y} $player_y {z} $player_z {type} ExplosionType.Grenade
TIMERB = 0
154@ = 1

:FINALEB_950
if 
  154@ == 1
goto_if_false @FINALEB_999
if 
  TIMERB > 3000
goto_if_false @FINALEB_999
task_die $scplayer
154@ = 2

:FINALEB_999
if 
  132@ == 0
goto_if_false @FINALEB_1389
if 
  152@ == 0
goto_if_false @FINALEB_1389
$big_smoke = create_char PedType.Special {modelId} 290 {x} 2553.2 {y} -1284.8571 {z} 1060.024
set_char_heading $big_smoke {heading} 90.0
set_char_area_visible $big_smoke {areaId} 2
task_die $big_smoke
124@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2552.3101 {y} -1286.274 {z} 1061.024
131@ = create_pickup_with_ammo 355 {pickupType} PickupType.Once {ammo} 60 {x} 2552.3601 {y} -1283.15 {z} 1061.02
set_char_coordinates $scplayer {x} 2553.7339 {y} -1285.256 {z} 1060.024
set_char_heading $scplayer {heading} 79.954
set_char_area_visible $scplayer {areaId} 2
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position 2550.604 {y} -1294.5861 {z} 1044.802 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2551.6011 {y} -1294.649 {z} 1044.762 {switchStyle} SwitchType.JumpCut
49@ = create_char PedType.Special {modelId} 291 {x} 2556.988 {y} -1297.499 {z} 1043.13
set_char_heading 49@ {heading} 27.2743
set_char_decision_maker 49@ {handleOrTemplate} 97@
give_weapon_to_char 49@ {weaponType} WeaponType.Shotgun {ammo} 99999
load_scene 2552.29 {y} -1294.24 {z} 1044.84
clear_area 2552.3799 {y} -1294.0601 {z} 1044.84 {radius} 100.0 {clearParticles} False
load_scene 2552.29 {y} -1294.24 {z} 1044.84
set_time_of_day 0 {minutes} 0
do_fade 500 {direction} Fade.In

:FINALEB_1358
if 
  get_fading_status 
goto_if_false @FINALEB_1382
wait 0
goto @FINALEB_1358

:FINALEB_1382
152@ = 1

:FINALEB_1389
if 
  152@ == 1
goto_if_false @FINALEB_2209
if 
  not is_char_dead 49@
goto_if_false @FINALEB_2209
task_shoot_at_coord 49@ {x} 2552.29 {y} -1294.24 {z} 1044.84 {time} 1000
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEB_1481
play_mission_audio MissionAudioSlot.Slot1
print_now 'ROT4_ZC' {time} 3500 {flag} 1

:FINALEB_1481
wait 500
61@ = start_script_fire 2552.3799 {y} -1294.0601 {z} 1044.84 {propagation} 0 {size} 1
skip_cutscene_start_internal @FINALEB_2227
wait 200
62@ = start_script_fire 2553.3301 {y} -1293.89 {z} 1044.87 {propagation} 0 {size} 2
wait 300
if 
  not is_char_dead 49@
goto_if_false @FINALEB_1591
task_go_straight_to_coord 49@ {x} 25566.8398 {y} -1297.272 {z} 1043.17 {speed} MoveState.Walk {time} -1

:FINALEB_1591
wait 2500
set_fixed_camera_position 2565.8159 {y} -1296.7321 {z} 1044.403 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2564.824 {y} -1296.613 {z} 1044.444 {switchStyle} SwitchType.JumpCut
print_now 'RM4_38' {time} 10000 {flag} 1
wait 3250
add_explosion_variable_shake 2553.1899 {y} -1293.58 {z} 1044.29 {type} 4 {shake} 0.4
wait 200
add_explosion_variable_shake 2558.53 {y} -1293.88 {z} 1044.58 {type} 0 {shake} 0.3
wait 500
add_explosion_variable_shake 2552.78 {y} -1293.24 {z} 1045.3199 {type} 0 {shake} 0.4
set_darkness_effect False {pitchBlack} 175
wait 100
add_explosion_variable_shake 2557.6001 {y} -1294.5699 {z} 1043.49 {type} 2 {shake} 0.5
wait 500
add_explosion_variable_shake 2555.8601 {y} -1293.27 {z} 1043.91 {type} 2 {shake} 0.6
wait 50
add_explosion_variable_shake 2558.73 {y} -1293.4 {z} 1044.36 {type} 4 {shake} 0.6
wait 50
set_time_of_day 0 {minutes} 0
set_heathaze_effect True
set_darkness_effect True {pitchBlack} 100
77@ = start_script_fire 2567.77 {y} -1294.03 {z} 1045.5 {propagation} 0 {size} 3
68@ = start_script_fire 2541.687 {y} -1289.6801 {z} 1043.0 {propagation} 1 {size} 1
83@ = start_script_fire 2559.45 {y} -1303.65 {z} 1044.0 {propagation} 0 {size} 2
85@ = start_script_fire 2564.72 {y} -1296.0601 {z} 1042.91 {propagation} 0 {size} 2
75@ = start_script_fire 2570.115 {y} -1301.434 {z} 1043.8 {propagation} 0 {size} 2
wait 250
set_darkness_effect False {pitchBlack} 120
81@ = start_script_fire 2559.3701 {y} -1284.76 {z} 1044.1 {propagation} 0 {size} 2
wait 500
set_darkness_effect True {pitchBlack} 140
70@ = start_script_fire 2538.751 {y} -1291.7 {z} 1044.17 {propagation} 0 {size} 2
73@ = start_script_fire 2541.5601 {y} -1292.35 {z} 1044.1 {propagation} 0 {size} 3
88@ = start_script_fire 2551.47 {y} -1297.2 {z} 1044.17 {propagation} 0 {size} 2
89@ = start_script_fire 2551.425 {y} -1298.4 {z} 1044.1 {propagation} 0 {size} 2
wait 400
set_darkness_effect False {pitchBlack} 150
wait 500
94@ = start_script_fire 2551.3301 {y} -1295.311 {z} 1043.8 {propagation} 0 {size} 3
91@ = start_script_fire 2541.3601 {y} -1300.36 {z} 1044.1 {propagation} 0 {size} 2
set_darkness_effect True {pitchBlack} 180
wait 3000
152@ = 2

:FINALEB_2209
if 
  152@ == 2
goto_if_false @FINALEB_2587

:FINALEB_2227
skip_cutscene_end 
clear_this_print 'ROT4_ZC'
clear_mission_audio MissionAudioSlot.Slot1
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_camera_behind_player 
delete_char 49@
set_heathaze_effect False
set_darkness_effect True {pitchBlack} 200
set_time_of_day 0 {minutes} 0
set_player_mood $player1 {mood} 7 {time} 360000
remove_all_script_fires 
125@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2524.0 {y} -1283.0 {z} 1048.337
120@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2527.783 {y} -1288.816 {z} 1031.4301
121@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2580.9529 {y} -1285.1169 {z} 1044.173
122@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2520.3999 {y} -1281.287 {z} 1054.681
126@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2552.2981 {y} -1306.0601 {z} 1054.681
127@ = create_pickup #HEALTH {pickupType} PickupType.Once {x} 2570.8391 {y} -1285.818 {z} 1037.821
123@ = create_pickup #BODYARMOUR {pickupType} PickupType.Once {x} 2552.4751 {y} -1280.687 {z} 1054.686
give_weapon_to_char $scplayer {weaponType} WeaponType.NightVision {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.NightVision
mark_model_as_no_longer_needed 368
print_now 'RM4_33' {time} 10000 {flag} 1
display_onscreen_timer_with_string $escapetimer_fb {direction} TimerDirection.Down {text} 'RM4_34'
set_timer_beep_countdown_time $escapetimer_fb {timeInSec} 32
118@ = add_blip_for_coord 2577.8201 {y} -1284.6 {z} 1053.99
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
TIMERA = 0
132@ = 1
152@ = 3

:FINALEB_2587
if 
  3 > 132@
goto_if_false @FINALEB_2662
if 
  155@ == 0
goto_if_false @FINALEB_2662
if 
  TIMERA > 7000
goto_if_false @FINALEB_2662
clear_prints 
print_help 'RM4_32'
155@ = 1

:FINALEB_2662
if 
  4 > 132@
goto_if_false @FINALEB_2737
if 
  155@ == 2
goto_if_false @FINALEB_2737
if 
  TIMERA > 8000
goto_if_false @FINALEB_2737
clear_prints 
print_help 'RM4_40'
155@ = 3

:FINALEB_2737
if 
  132@ == 1
goto_if_false @FINALEB_3721
if 
  locate_char_any_means_3d $scplayer {x} 2578.21 {y} -1284.87 {z} 1053.95 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEB_3721
remove_blip 118@
118@ = add_blip_for_coord 2521.8899 {y} -1301.98 {z} 1047.54
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
clear_prints 
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2574.5 {y} -1296.0291 {z} 1054.687
set_char_heading 34@ {heading} 4.7018
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 34@ {skill} WeaponSkill.Pro
set_char_area_visible 34@ {areaId} 2
set_char_accuracy 34@ {accuracy} 20
set_char_health 34@ {health} 150
set_char_max_health 34@ {maxHealth} 150
137@ = 1
task_kill_char_on_foot 34@ {target} $scplayer
35@ = create_char PedType.Mission1 {modelId} 104 {x} 2553.7639 {y} -1294.536 {z} 1053.647
set_char_heading 35@ {heading} 266.9614
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.Shotgun {ammo} 99999
set_char_area_visible 35@ {areaId} 2
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_3128
if 
  not is_char_dead 35@
goto_if_false @FINALEB_3128
set_lvar_int_to_lvar_int 104@ = 35@
106@ = 2553.7639
107@ = -1294.536
108@ = 1053.647
112@ = 2700
116@ = 270.0
gosub @FINALEB_17933
138@ = 1

:FINALEB_3128
36@ = create_char PedType.Mission1 {modelId} 102 {x} 2575.2661 {y} -1296.4 {z} 1054.687
set_char_heading 36@ {heading} 89.298
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 36@ {skill} WeaponSkill.Pro
set_char_health 36@ {health} 150
set_char_max_health 36@ {maxHealth} 150
set_char_area_visible 36@ {areaId} 2
if 
  139@ == 0
goto_if_false @FINALEB_3298
if 
  not is_char_dead 36@
goto_if_false @FINALEB_3298
set_lvar_int_to_lvar_int 104@ = 36@
106@ = 2556.3101
107@ = -1297.219
108@ = 1053.641
gosub @FINALEB_17641
139@ = 1

:FINALEB_3298
37@ = create_char PedType.Mission1 {modelId} 104 {x} 2547.426 {y} -1306.462 {z} 1054.681
set_char_heading 37@ {heading} 359.0
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 37@ {skill} WeaponSkill.Pro
set_char_area_visible 37@ {areaId} 2
140@ = 0
if 
  140@ == 0
goto_if_false @FINALEB_3429
if 
  not is_char_dead 37@
goto_if_false @FINALEB_3429
set_lvar_int_to_lvar_int 104@ = 37@
gosub @FINALEB_17696
140@ = 1

:FINALEB_3429
38@ = create_char PedType.Mission1 {modelId} 109 {x} 2534.0449 {y} -1304.8571 {z} 1053.641
set_char_heading 38@ {heading} 273.9959
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 38@ {skill} WeaponSkill.Pro
set_char_area_visible 38@ {areaId} 2
set_char_health 38@ {health} 150
set_char_max_health 38@ {maxHealth} 150
141@ = 0
if 
  141@ == 0
goto_if_false @FINALEB_3576
if 
  not is_char_dead 38@
goto_if_false @FINALEB_3576
set_lvar_int_to_lvar_int 104@ = 38@
gosub @FINALEB_17696
141@ = 1

:FINALEB_3576
39@ = create_char PedType.Mission1 {modelId} 102 {x} 2540.1919 {y} -1287.667 {z} 1053.647
set_char_heading 39@ {heading} 165.9748
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 39@ {skill} WeaponSkill.Pro
set_char_area_visible 39@ {areaId} 2
set_char_allowed_to_duck 39@ {state} False
142@ = 0
if 
  142@ == 0
goto_if_false @FINALEB_3714
if 
  not is_char_dead 39@
goto_if_false @FINALEB_3714
set_lvar_int_to_lvar_int 104@ = 39@
gosub @FINALEB_17740
142@ = 1

:FINALEB_3714
132@ = 2

:FINALEB_3721
if 
  132@ == 2
goto_if_false @FINALEB_4586
if 
  137@ == 1
goto_if_false @FINALEB_3785
if 
  is_char_dead 34@
goto_if_false @FINALEB_3785
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_3785
if 
  138@ == 1
goto_if_false @FINALEB_3913
if 
  not is_char_dead 35@
goto_if_false @FINALEB_3913
if or
  has_char_been_damaged_by_char 35@ {handle} $scplayer
  locate_char_any_means_char_3d 35@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_3913
if 
  not is_char_dead 35@
goto_if_false @FINALEB_3901
task_kill_char_on_foot 35@ {target} $scplayer
138@ = 2
goto @FINALEB_3913

:FINALEB_3901
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_3913
if or
  138@ == 1
  138@ == 2
goto_if_false @FINALEB_3966
if 
  is_char_dead 35@
goto_if_false @FINALEB_3966
mark_char_as_no_longer_needed 35@
138@ = 3

:FINALEB_3966
if 
  139@ == 1
goto_if_false @FINALEB_4012
if 
  is_char_dead 36@
goto_if_false @FINALEB_4012
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_4012
if 
  140@ == 1
goto_if_false @FINALEB_4058
if 
  is_char_dead 37@
goto_if_false @FINALEB_4058
mark_char_as_no_longer_needed 37@
140@ = 2

:FINALEB_4058
if 
  141@ == 1
goto_if_false @FINALEB_4104
if 
  is_char_dead 38@
goto_if_false @FINALEB_4104
mark_char_as_no_longer_needed 38@
141@ = 2

:FINALEB_4104
if 
  142@ == 1
goto_if_false @FINALEB_4150
if 
  is_char_dead 39@
goto_if_false @FINALEB_4150
mark_char_as_no_longer_needed 39@
142@ = 2

:FINALEB_4150
if 
  143@ == 0
goto_if_false @FINALEB_4299
if 
  locate_char_any_means_3d $scplayer {x} 2543.46 {y} -1304.9 {z} 1054.6801 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEB_4299
40@ = create_char PedType.Mission1 {modelId} 102 {x} 2532.3999 {y} -1286.7 {z} 1053.6801
set_char_heading 40@ {heading} 230.835
set_char_decision_maker 40@ {handleOrTemplate} 97@
give_weapon_to_char 40@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 40@ {skill} WeaponSkill.Pro
set_char_area_visible 40@ {areaId} 2
task_kill_char_on_foot 40@ {target} $scplayer
143@ = 1

:FINALEB_4299
if 
  143@ == 1
goto_if_false @FINALEB_4345
if 
  is_char_dead 40@
goto_if_false @FINALEB_4345
mark_char_as_no_longer_needed 40@
143@ = 2

:FINALEB_4345
if 
  144@ == 0
goto_if_false @FINALEB_4540
if 
  locate_char_any_means_3d $scplayer {x} 2519.9299 {y} -1285.547 {z} 1054.673 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @FINALEB_4540
41@ = create_char PedType.Mission1 {modelId} 102 {x} 2519.9299 {y} -1285.54 {z} 1054.673
set_char_heading 41@ {heading} 200.537
set_char_decision_maker 41@ {handleOrTemplate} 97@
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_area_visible 41@ {areaId} 2
set_char_health 41@ {health} 150
set_char_max_health 41@ {maxHealth} 150
set_lvar_int_to_lvar_int 104@ = 41@
106@ = 2520.05
107@ = -1301.5179
108@ = 1048.33
gosub @FINALEB_17641
144@ = 1

:FINALEB_4540
if 
  144@ == 1
goto_if_false @FINALEB_4586
if 
  is_char_dead 41@
goto_if_false @FINALEB_4586
mark_char_as_no_longer_needed 41@
144@ = 2

:FINALEB_4586
if 
  132@ == 2
goto_if_false @FINALEB_7337
if 
  locate_char_any_means_3d $scplayer {x} 2521.8999 {y} -1301.86 {z} 1047.5 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_7337
print_now 'RM4_35' {time} 7000 {flag} 1
TIMERA = 0
155@ = 2
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_char 38@
delete_char 39@
remove_blip 118@
118@ = add_blip_for_coord 2572.0801 {y} -1301.88 {z} 1043.3199
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
set_heathaze_effect True
delete_char $big_smoke
unload_special_character 2
51@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.2 {ignoreBoundingChecks} True
52@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} 2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
53@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} 2.0 {ignoreBoundingChecks} True
54@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 1.0 {yOffset} 5.0 {zOffset} 1.7 {ignoreBoundingChecks} True
55@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -1.0 {yOffset} 8.0 {zOffset} 2.0 {ignoreBoundingChecks} True
56@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 0.0 {zOffset} 1.7 {ignoreBoundingChecks} True
57@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 0.0 {zOffset} 1.7 {ignoreBoundingChecks} True
58@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} -2.0 {yOffset} 2.0 {zOffset} 1.7 {ignoreBoundingChecks} True
59@ = create_fx_system_on_char "TEARGAS" {char} $scplayer {xOffset} 2.0 {yOffset} 2.0 {zOffset} 1.7 {ignoreBoundingChecks} True
60@ = 0

:FINALEB_5083
if 
  9 > 60@
goto_if_false @FINALEB_5124
play_fx_system 51@(60@,9i)
60@ += 1
goto @FINALEB_5083

:FINALEB_5124
61@ = start_script_fire 2529.6201 {y} -1306.62 {z} 1048.0 {propagation} 0 {size} 2
62@ = start_script_fire 2529.4971 {y} -1304.791 {z} 1048.0 {propagation} 0 {size} 2
63@ = start_script_fire 2530.1201 {y} -1296.96 {z} 1047.8 {propagation} 0 {size} 3
64@ = start_script_fire 2529.49 {y} -1287.9301 {z} 1048.0 {propagation} 0 {size} 3
64@ = start_script_fire 2543.98 {y} -1305.709 {z} 1047.4449 {propagation} 0 {size} 3
65@ = start_script_fire 2544.54 {y} -1304.47 {z} 1047.55 {propagation} 0 {size} 3
90@ = start_script_fire 2543.9399 {y} -1306.83 {z} 1047.62 {propagation} 0 {size} 3
66@ = start_script_fire 2545.1389 {y} -1281.4969 {z} 1047.5 {propagation} 0 {size} 2
77@ = start_script_fire 2567.77 {y} -1294.03 {z} 1047.5 {propagation} 0 {size} 3
78@ = start_script_fire 2570.2 {y} -1294.4 {z} 1047.5 {propagation} 0 {size} 3
75@ = start_script_fire 2568.72 {y} -1294.3199 {z} 1047.5 {propagation} 0 {size} 2
67@ = start_script_fire 2540.2471 {y} -1288.566 {z} 1044.0 {propagation} 0 {size} 3
68@ = start_script_fire 2541.687 {y} -1289.6801 {z} 1044.0 {propagation} 1 {size} 1
69@ = start_script_fire 2540.2141 {y} -1290.218 {z} 1044.0 {propagation} 0 {size} 2
70@ = start_script_fire 2538.751 {y} -1291.7 {z} 1044.17 {propagation} 0 {size} 2
71@ = start_script_fire 2537.3391 {y} -1286.5601 {z} 1044.1 {propagation} 1 {size} 3
73@ = start_script_fire 2541.5601 {y} -1292.35 {z} 1044.1 {propagation} 0 {size} 3
80@ = start_script_fire 2570.77 {y} -1303.14 {z} 1043.35 {propagation} 0 {size} 2
81@ = start_script_fire 2559.3701 {y} -1284.76 {z} 1044.1 {propagation} 0 {size} 2
82@ = start_script_fire 2551.3999 {y} -1301.3 {z} 1044.0 {propagation} 0 {size} 2
83@ = start_script_fire 2570.52 {y} -1301.42 {z} 1043.47 {propagation} 0 {size} 2
84@ = start_script_fire 2550.9399 {y} -1301.8101 {z} 1044.0 {propagation} 0 {size} 3
85@ = start_script_fire 2537.6899 {y} -1301.34 {z} 1044.0 {propagation} 0 {size} 2
86@ = start_script_fire 2536.4199 {y} -1302.01 {z} 1044.0 {propagation} 0 {size} 2
87@ = start_script_fire 2536.8201 {y} -1290.5 {z} 1044.0 {propagation} 0 {size} 2
88@ = start_script_fire 2551.47 {y} -1297.2 {z} 1044.17 {propagation} 0 {size} 2
89@ = start_script_fire 2570.54 {y} -1301.22 {z} 1043.36 {propagation} 0 {size} 3
94@ = start_script_fire 2551.3301 {y} -1295.311 {z} 1043.8 {propagation} 0 {size} 3
91@ = start_script_fire 2541.3601 {y} -1300.36 {z} 1044.1 {propagation} 0 {size} 2
92@ = start_script_fire 2545.3279 {y} -1300.739 {z} 1044.1 {propagation} 0 {size} 2
93@ = start_script_fire 2548.77 {y} -1300.375 {z} 1044.04 {propagation} 0 {size} 3
76@ = start_script_fire 2544.1599 {y} -1306.5601 {z} 1043.8 {propagation} 0 {size} 2
72@ = start_script_fire 2570.4299 {y} -1302.4301 {z} 1043.4 {propagation} 0 {size} 1
74@ = start_script_fire 2549.05 {y} -1287.54 {z} 1043.8 {propagation} 0 {size} 3
95@ = start_script_fire 2570.4819 {y} -1302.438 {z} 1043.8 {propagation} 0 {size} 2
96@ = start_script_fire 2565.7051 {y} -1298.03 {z} 1043.7 {propagation} 0 {size} 3
79@ = start_script_fire 2565.5281 {y} -1289.17 {z} 1043.7 {propagation} 0 {size} 3
129@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 99999 {x} 2529.8291 {y} -1303.027 {z} 1048.337
119@ = add_blip_for_pickup 129@
set_blip_entry_exit 119@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
130@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 99999 {x} 2567.948 {y} -1292.879 {z} 1044.173
42@ = create_char PedType.Mission1 {modelId} 104 {x} 2528.5391 {y} -1289.9351 {z} 1048.3361
set_char_heading 42@ {heading} 359.0
set_char_health 42@ {health} 10
set_char_decision_maker 42@ {handleOrTemplate} 98@
give_weapon_to_char 42@ {weaponType} WeaponType.Extinguisher {ammo} 99999
set_char_shoot_rate 42@ {rate} 20
set_char_area_visible 42@ {areaId} 2
set_char_health 42@ {health} 5
set_char_max_health 42@ {maxHealth} 5
set_char_accuracy 42@ {accuracy} 20
145@ = 1
task_shoot_at_coord 42@ {x} 2529.49 {y} -1287.9301 {z} 1048.0 {time} 650000
43@ = create_char PedType.Mission1 {modelId} 109 {x} 2538.2739 {y} -1293.322 {z} 1043.1331
set_char_heading 43@ {heading} 351.1779
set_char_health 43@ {health} 5
set_char_decision_maker 43@ {handleOrTemplate} 98@
give_weapon_to_char 43@ {weaponType} WeaponType.Extinguisher {ammo} 99999
set_char_shoot_rate 43@ {rate} 20
set_char_area_visible 43@ {areaId} 2
set_char_accuracy 43@ {accuracy} 20
146@ = 1
task_shoot_at_coord 43@ {x} 2538.5691 {y} -1291.48 {z} 1043.604 {time} 650000
44@ = create_char PedType.Mission1 {modelId} 102 {x} 2539.5339 {y} -1297.778 {z} 1043.13
set_char_heading 44@ {heading} 43.6277
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 44@ {areaId} 2
set_char_accuracy 44@ {accuracy} 20
147@ = 0
if 
  147@ == 0
goto_if_false @FINALEB_6473
if 
  not is_char_dead 44@
goto_if_false @FINALEB_6473
set_lvar_int_to_lvar_int 104@ = 44@
gosub @FINALEB_17740
147@ = 1

:FINALEB_6473
45@ = create_char PedType.Mission1 {modelId} 102 {x} 2548.2451 {y} -1294.142 {z} 1043.13
set_char_heading 45@ {heading} 105.3104
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 45@ {areaId} 2
set_char_health 45@ {health} 150
set_char_max_health 45@ {maxHealth} 150
148@ = 0
if 
  148@ == 0
goto_if_false @FINALEB_6613
if 
  not is_char_dead 45@
goto_if_false @FINALEB_6613
set_lvar_int_to_lvar_int 104@ = 45@
gosub @FINALEB_17696
148@ = 1

:FINALEB_6613
46@ = create_char PedType.Mission1 {modelId} 104 {x} 2558.4519 {y} -1289.522 {z} 1043.1331
set_char_heading 46@ {heading} 91.8235
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 46@ {areaId} 2
set_char_accuracy 46@ {accuracy} 20
149@ = 0
if 
  149@ == 0
goto_if_false @FINALEB_6744
if 
  not is_char_dead 46@
goto_if_false @FINALEB_6744
set_lvar_int_to_lvar_int 104@ = 46@
gosub @FINALEB_17740
149@ = 1

:FINALEB_6744
47@ = create_char PedType.Mission1 {modelId} 102 {x} 2565.7219 {y} -1293.1331 {z} 1044.0699
set_char_heading 47@ {heading} 85.0916
set_char_decision_maker 47@ {handleOrTemplate} 97@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 47@ {areaId} 2
set_char_health 47@ {health} 150
set_char_max_health 47@ {maxHealth} 150
150@ = 0
if 
  150@ == 0
goto_if_false @FINALEB_6884
if 
  not is_char_dead 47@
goto_if_false @FINALEB_6884
set_lvar_int_to_lvar_int 104@ = 47@
gosub @FINALEB_17696
150@ = 1

:FINALEB_6884
48@ = create_char PedType.Mission1 {modelId} 104 {x} 2557.144 {y} -1297.8051 {z} 1043.13
set_char_heading 48@ {heading} 65.8333
set_char_decision_maker 48@ {handleOrTemplate} 97@
give_weapon_to_char 48@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 48@ {areaId} 2
151@ = 0
if 
  151@ == 0
goto_if_false @FINALEB_7008
if 
  not is_char_dead 48@
goto_if_false @FINALEB_7008
set_lvar_int_to_lvar_int 104@ = 48@
gosub @FINALEB_17740
151@ = 1

:FINALEB_7008
if 
  145@ == 1
goto_if_false @FINALEB_7054
if 
  is_char_dead 42@
goto_if_false @FINALEB_7054
mark_char_as_no_longer_needed 42@
145@ = 2

:FINALEB_7054
if 
  146@ == 1
goto_if_false @FINALEB_7100
if 
  is_char_dead 43@
goto_if_false @FINALEB_7100
mark_char_as_no_longer_needed 43@
146@ = 2

:FINALEB_7100
if 
  147@ == 1
goto_if_false @FINALEB_7146
if 
  is_char_dead 44@
goto_if_false @FINALEB_7146
mark_char_as_no_longer_needed 44@
147@ = 2

:FINALEB_7146
if 
  148@ == 1
goto_if_false @FINALEB_7192
if 
  is_char_dead 45@
goto_if_false @FINALEB_7192
mark_char_as_no_longer_needed 45@
148@ = 2

:FINALEB_7192
if 
  149@ == 1
goto_if_false @FINALEB_7238
if 
  is_char_dead 46@
goto_if_false @FINALEB_7238
mark_char_as_no_longer_needed 46@
149@ = 2

:FINALEB_7238
if 
  150@ == 1
goto_if_false @FINALEB_7284
if 
  is_char_dead 47@
goto_if_false @FINALEB_7284
mark_char_as_no_longer_needed 47@
150@ = 2

:FINALEB_7284
if 
  151@ == 1
goto_if_false @FINALEB_7330
if 
  is_char_dead 48@
goto_if_false @FINALEB_7330
mark_char_as_no_longer_needed 48@
151@ = 2

:FINALEB_7330
132@ = 3

:FINALEB_7337
if 
  132@ == 3
goto_if_false @FINALEB_8944
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2571.3899 {leftBottomY} -1308.59 {leftBottomZ} 1041.4 {rightTopX} 2584.0801 {rightTopY} -1272.85 {rightTopZ} 1047.02 {drawSphere} False
goto_if_false @FINALEB_8944
mark_model_as_no_longer_needed 349
remove_blip 119@
remove_blip 118@
118@ = add_blip_for_coord 2565.5601 {y} -1301.7 {z} 1030.97
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
remove_blip 119@
remove_all_script_fires 
delete_char 40@
delete_char 41@
mark_model_as_no_longer_needed 366
61@ = start_script_fire 2575.7739 {y} -1283.0551 {z} 1042.1331 {propagation} 0 {size} 3
62@ = start_script_fire 2581.7439 {y} -1297.517 {z} 1039.02 {propagation} 0 {size} 1
63@ = start_script_fire 2570.4141 {y} -1300.047 {z} 1036.781 {propagation} 0 {size} 3
64@ = start_script_fire 2568.78 {y} -1299.9871 {z} 1036.781 {propagation} 0 {size} 3
65@ = start_script_fire 2577.2471 {y} -1294.814 {z} 1034.048 {propagation} 0 {size} 1
66@ = start_script_fire 2566.833 {y} -1282.489 {z} 1030.4301 {propagation} 0 {size} 3
67@ = start_script_fire 2567.9839 {y} -1284.974 {z} 1030.4301 {propagation} 0 {size} 2
68@ = start_script_fire 2572.4021 {y} -1304.5811 {z} 1030.4301 {propagation} 0 {size} 2
69@ = start_script_fire 2570.79 {y} -1305.299 {z} 1030.4301 {propagation} 0 {size} 1
70@ = start_script_fire 2556.55 {y} -1301.88 {z} 1029.8199 {propagation} 0 {size} 3
71@ = start_script_fire 2556.8301 {y} -1303.91 {z} 1029.42 {propagation} 0 {size} 2
72@ = start_script_fire 2556.01 {y} -1305.3101 {z} 1029.8199 {propagation} 0 {size} 3
73@ = start_script_fire 2553.1599 {y} -1297.9399 {z} 1029.42 {propagation} 0 {size} 2
74@ = start_script_fire 2552.4299 {y} -1297.3101 {z} 1029.8199 {propagation} 0 {size} 2
75@ = start_script_fire 2552.1499 {y} -1294.97 {z} 1029.42 {propagation} 0 {size} 3
76@ = start_script_fire 2547.77 {y} -1285.41 {z} 1029.8199 {propagation} 0 {size} 3
77@ = start_script_fire 2547.3999 {y} -1284.33 {z} 1029.42 {propagation} 0 {size} 1
78@ = start_script_fire 2547.77 {y} -1282.3199 {z} 1029.8199 {propagation} 0 {size} 3
79@ = start_script_fire 2545.9299 {y} -1292.47 {z} 1029.42 {propagation} 0 {size} 3
80@ = start_script_fire 2545.48 {y} -1290.8101 {z} 1029.8199 {propagation} 0 {size} 1
81@ = start_script_fire 2544.1101 {y} -1292.71 {z} 1029.42 {propagation} 0 {size} 2
82@ = start_script_fire 2539.75 {y} -1299.17 {z} 1029.8199 {propagation} 0 {size} 1
83@ = start_script_fire 2539.25 {y} -1297.76 {z} 1029.42 {propagation} 0 {size} 2
84@ = start_script_fire 2540.5801 {y} -1280.24 {z} 1036.78 {propagation} 0 {size} 2
85@ = start_script_fire 2540.3999 {y} -1281.22 {z} 1036.78 {propagation} 0 {size} 1
86@ = start_script_fire 2529.8501 {y} -1294.27 {z} 1036.8 {propagation} 0 {size} 2
87@ = start_script_fire 2545.8501 {y} -1307.04 {z} 1036.78 {propagation} 0 {size} 2
88@ = start_script_fire 2547.47 {y} -1306.59 {z} 1036.78 {propagation} 0 {size} 1
34@ = create_char PedType.Mission1 {modelId} 102 {x} 2579.905 {y} -1291.163 {z} 1043.125
set_char_heading 34@ {heading} 177.191
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 34@ {areaId} 2
137@ = 0
35@ = create_char PedType.Mission1 {modelId} 104 {x} 2567.4131 {y} -1305.324 {z} 1036.781
set_char_heading 35@ {heading} 268.0134
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 35@ {skill} WeaponSkill.Pro
set_char_area_visible 35@ {areaId} 2
set_char_health 35@ {health} 150
set_char_max_health 35@ {maxHealth} 150
138@ = 0
36@ = create_char PedType.Mission1 {modelId} 109 {x} 2572.115 {y} -1301.504 {z} 1036.781
set_char_heading 36@ {heading} 61.2775
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.Extinguisher {ammo} 99999
set_char_shoot_rate 36@ {rate} 20
set_char_area_visible 36@ {areaId} 2
set_char_health 36@ {health} 5
task_shoot_at_coord 36@ {x} 2570.207 {y} -1300.238 {z} 1037.059 {time} 650000
139@ = 0
37@ = create_char PedType.Mission1 {modelId} 102 {x} 2575.0071 {y} -1284.838 {z} 1030.427
set_char_heading 37@ {heading} 170.5391
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 37@ {skill} WeaponSkill.Pro
set_char_area_visible 37@ {areaId} 2
140@ = 0
if 
  140@ == 0
goto_if_false @FINALEB_8549
if 
  not is_char_dead 37@
goto_if_false @FINALEB_8549
set_lvar_int_to_lvar_int 104@ = 37@
gosub @FINALEB_17740
140@ = 1

:FINALEB_8549
38@ = create_char PedType.Mission1 {modelId} 104 {x} 2568.075 {y} -1293.6281 {z} 1030.4301
set_char_heading 38@ {heading} 356.7112
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 38@ {areaId} 2
set_char_health 38@ {health} 150
set_char_max_health 38@ {maxHealth} 150
141@ = 0
if 
  141@ == 0
goto_if_false @FINALEB_8689
if 
  not is_char_dead 38@
goto_if_false @FINALEB_8689
set_lvar_int_to_lvar_int 104@ = 38@
gosub @FINALEB_17696
141@ = 1

:FINALEB_8689
39@ = create_char PedType.Mission1 {modelId} 109 {x} 2570.626 {y} -1297.5 {z} 1030.427
set_char_heading 39@ {heading} 3.5755
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 39@ {areaId} 2
142@ = 0
if 
  142@ == 0
goto_if_false @FINALEB_8813
if 
  not is_char_dead 39@
goto_if_false @FINALEB_8813
set_lvar_int_to_lvar_int 104@ = 39@
gosub @FINALEB_17696
142@ = 1

:FINALEB_8813
40@ = create_char PedType.Mission1 {modelId} 102 {x} 2570.947 {y} -1301.719 {z} 1030.4301
set_char_heading 40@ {heading} 359.8018
set_char_decision_maker 40@ {handleOrTemplate} 97@
give_weapon_to_char 40@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 40@ {areaId} 2
143@ = 0
if 
  143@ == 0
goto_if_false @FINALEB_8937
if 
  not is_char_dead 40@
goto_if_false @FINALEB_8937
set_lvar_int_to_lvar_int 104@ = 40@
gosub @FINALEB_17696
143@ = 1

:FINALEB_8937
132@ = 4

:FINALEB_8944
if 
  132@ == 4
goto_if_false @FINALEB_10784
if 
  137@ == 0
goto_if_false @FINALEB_9104
if 
  not is_char_dead 34@
goto_if_false @FINALEB_9104
if or
  locate_char_any_means_3d $scplayer {x} 2577.6001 {y} -1289.91 {z} 1043.77 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
goto_if_false @FINALEB_9104
set_lvar_int_to_lvar_int 104@ = 34@
106@ = 2579.905
107@ = -1304.985
108@ = 1036.7729
gosub @FINALEB_17641
137@ = 1

:FINALEB_9104
if 
  138@ == 0
goto_if_false @FINALEB_9209
if 
  not is_char_dead 35@
goto_if_false @FINALEB_9209
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2577.8799 {leftBottomY} -1309.87 {leftBottomZ} 1036.2 {rightTopX} 2563.8701 {rightTopY} -1289.87 {rightTopZ} 1042.6801 {drawSphere} False
  has_char_been_damaged_by_char 35@ {handle} $scplayer
goto_if_false @FINALEB_9209
task_kill_char_on_foot 35@ {target} $scplayer
138@ = 1

:FINALEB_9209
if 
  143@ == 1
goto_if_false @FINALEB_9381
if 
  not is_char_dead 40@
goto_if_false @FINALEB_9381
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2573.3 {leftBottomY} -1281.03 {leftBottomZ} 1028.8 {rightTopX} 2563.7 {rightTopY} -1300.61 {rightTopZ} 1034.0 {drawSphere} False
  has_char_been_damaged_by_char 40@ {handle} $scplayer
goto_if_false @FINALEB_9381
set_lvar_int_to_lvar_int 104@ = 40@
106@ = 2570.947
107@ = -1301.719
108@ = 1030.4301
113@ = 2558.7219
114@ = -1301.829
115@ = 1030.4301
gosub @FINALEB_17778
143@ = 2

:FINALEB_9381
if 
  137@ == 1
goto_if_false @FINALEB_9427
if 
  is_char_dead 34@
goto_if_false @FINALEB_9427
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_9427
if 
  138@ == 1
goto_if_false @FINALEB_9473
if 
  is_char_dead 35@
goto_if_false @FINALEB_9473
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_9473
if 
  139@ == 1
goto_if_false @FINALEB_9519
if 
  is_char_dead 36@
goto_if_false @FINALEB_9519
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_9519
if 
  140@ == 1
goto_if_false @FINALEB_9565
if 
  is_char_dead 37@
goto_if_false @FINALEB_9565
mark_char_as_no_longer_needed 37@
140@ = 2

:FINALEB_9565
if 
  141@ == 1
goto_if_false @FINALEB_9611
if 
  is_char_dead 38@
goto_if_false @FINALEB_9611
mark_char_as_no_longer_needed 38@
141@ = 2

:FINALEB_9611
if 
  142@ == 1
goto_if_false @FINALEB_9657
if 
  is_char_dead 39@
goto_if_false @FINALEB_9657
mark_char_as_no_longer_needed 39@
142@ = 2

:FINALEB_9657
if or
  143@ == 1
  143@ == 1
goto_if_false @FINALEB_9710
if 
  is_char_dead 40@
goto_if_false @FINALEB_9710
mark_char_as_no_longer_needed 40@
143@ = 2

:FINALEB_9710
if 
  locate_char_any_means_3d $scplayer {x} 2565.9399 {y} -1301.96 {z} 1030.77 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_10784
remove_blip 118@
118@ = add_blip_for_coord 2528.78 {y} -1293.9399 {z} 1030.86
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
43@ = create_char PedType.Mission1 {modelId} 102 {x} 2549.1621 {y} -1291.369 {z} 1030.467
set_char_heading 43@ {heading} 275.0
set_char_decision_maker 43@ {handleOrTemplate} 97@
give_weapon_to_char 43@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 43@ {areaId} 2
set_char_health 43@ {health} 150
set_char_max_health 43@ {maxHealth} 150
146@ = 0
if 
  146@ == 0
goto_if_false @FINALEB_9978
if 
  not is_char_dead 43@
goto_if_false @FINALEB_9978
set_lvar_int_to_lvar_int 104@ = 43@
gosub @FINALEB_17696
146@ = 1

:FINALEB_9978
44@ = create_char PedType.Mission1 {modelId} 104 {x} 2534.8799 {y} -1292.009 {z} 1031.469
set_char_heading 44@ {heading} 275.0
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 44@ {skill} WeaponSkill.Pro
set_char_area_visible 44@ {areaId} 2
147@ = 0
if 
  147@ == 0
goto_if_false @FINALEB_10109
if 
  not is_char_dead 44@
goto_if_false @FINALEB_10109
set_lvar_int_to_lvar_int 104@ = 44@
gosub @FINALEB_17740
147@ = 1

:FINALEB_10109
45@ = create_char PedType.Mission1 {modelId} 104 {x} 2554.033 {y} -1287.08 {z} 1030.4301
set_char_heading 45@ {heading} 270.0
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 45@ {areaId} 2
148@ = 0
if 
  148@ == 0
goto_if_false @FINALEB_10281
if 
  not is_char_dead 45@
goto_if_false @FINALEB_10281
set_lvar_int_to_lvar_int 104@ = 45@
106@ = 2554.033
107@ = -1287.08
108@ = 1030.4301
112@ = 1200
116@ = 270.0
gosub @FINALEB_18174
148@ = 1

:FINALEB_10281
46@ = create_char PedType.Mission1 {modelId} 104 {x} 2546.0071 {y} -1287.15 {z} 1030.427
set_char_heading 46@ {heading} 270.0
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 46@ {areaId} 2
149@ = 0
if 
  149@ == 0
goto_if_false @FINALEB_10453
if 
  not is_char_dead 46@
goto_if_false @FINALEB_10453
set_lvar_int_to_lvar_int 104@ = 46@
106@ = 2546.0071
107@ = -1287.15
108@ = 1030.427
112@ = 2000
116@ = 270.0
gosub @FINALEB_18174
149@ = 1

:FINALEB_10453
47@ = create_char PedType.Mission1 {modelId} 109 {x} 2530.397 {y} -1291.381 {z} 1036.781
set_char_heading 47@ {heading} 278.2231
set_char_decision_maker 47@ {handleOrTemplate} 97@
give_weapon_to_char 47@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 47@ {areaId} 2
150@ = 0
if 
  150@ == 0
goto_if_false @FINALEB_10577
if 
  not is_char_dead 47@
goto_if_false @FINALEB_10577
set_lvar_int_to_lvar_int 104@ = 47@
gosub @FINALEB_17740
150@ = 1

:FINALEB_10577
48@ = create_char PedType.Mission1 {modelId} 102 {x} 2540.4431 {y} -1306.621 {z} 1036.781
set_char_heading 48@ {heading} 328.6817
set_char_decision_maker 48@ {handleOrTemplate} 97@
give_weapon_to_char 48@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 48@ {areaId} 2
151@ = 0
if 
  151@ == 0
goto_if_false @FINALEB_10701
if 
  not is_char_dead 48@
goto_if_false @FINALEB_10701
set_lvar_int_to_lvar_int 104@ = 48@
gosub @FINALEB_17740
151@ = 1

:FINALEB_10701
42@ = create_char PedType.Mission1 {modelId} 109 {x} 2535.1111 {y} -1304.9919 {z} 1030.4301
set_char_heading 42@ {heading} 328.6817
set_char_decision_maker 42@ {handleOrTemplate} 97@
give_weapon_to_char 42@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_area_visible 42@ {areaId} 2
task_kill_char_on_foot 42@ {target} $scplayer
145@ = 0
132@ = 5

:FINALEB_10784
if 
  132@ == 5
goto_if_false @FINALEB_12432
if 
  146@ == 1
goto_if_false @FINALEB_10915
if 
  not is_char_dead 43@
goto_if_false @FINALEB_10915
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2553.8501 {leftBottomY} -1308.35 {leftBottomZ} 1028.6 {rightTopX} 2540.27 {rightTopY} -1275.04 {rightTopZ} 1033.2 {drawSphere} False
  has_char_been_damaged_by_char 43@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 43@
goto_if_false @FINALEB_10915
task_kill_char_on_foot 43@ {target} $scplayer
146@ = 2

:FINALEB_10915
if 
  147@ == 1
goto_if_false @FINALEB_11028
if 
  not is_char_dead 44@
goto_if_false @FINALEB_11028
if or
  is_char_in_area_3d $scplayer {leftBottomX} 2542.24 {leftBottomY} -1308.67 {leftBottomZ} 1028.09 {rightTopX} 2527.8601 {rightTopY} -1276.9 {rightTopZ} 1033.1899 {drawSphere} False
  has_char_been_damaged_by_char 44@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 44@
goto_if_false @FINALEB_11028
task_kill_char_on_foot 44@ {target} $scplayer
147@ = 2

:FINALEB_11028
if or
  146@ == 1
  145@ == 2
goto_if_false @FINALEB_11081
if 
  is_char_dead 43@
goto_if_false @FINALEB_11081
mark_char_as_no_longer_needed 43@
146@ = 3

:FINALEB_11081
if or
  147@ == 1
  145@ == 2
goto_if_false @FINALEB_11134
if 
  is_char_dead 44@
goto_if_false @FINALEB_11134
mark_char_as_no_longer_needed 44@
147@ = 3

:FINALEB_11134
if 
  148@ == 1
goto_if_false @FINALEB_11262
if 
  not is_char_dead 45@
goto_if_false @FINALEB_11262
if or
  has_char_been_damaged_by_char 45@ {handle} $scplayer
  locate_char_any_means_char_3d 45@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_11262
if 
  not is_char_dead 45@
goto_if_false @FINALEB_11250
task_kill_char_on_foot 45@ {target} $scplayer
148@ = 2
goto @FINALEB_11262

:FINALEB_11250
mark_char_as_no_longer_needed 45@
148@ = 2

:FINALEB_11262
if or
  148@ == 1
  148@ == 2
goto_if_false @FINALEB_11315
if 
  is_char_dead 45@
goto_if_false @FINALEB_11315
mark_char_as_no_longer_needed 45@
148@ = 3

:FINALEB_11315
if 
  149@ == 1
goto_if_false @FINALEB_11443
if 
  not is_char_dead 46@
goto_if_false @FINALEB_11443
if or
  has_char_been_damaged_by_char 46@ {handle} $scplayer
  locate_char_any_means_char_3d 46@ {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @FINALEB_11443
if 
  not is_char_dead 46@
goto_if_false @FINALEB_11431
task_kill_char_on_foot 46@ {target} $scplayer
149@ = 2
goto @FINALEB_11443

:FINALEB_11431
mark_char_as_no_longer_needed 46@
149@ = 2

:FINALEB_11443
if or
  149@ == 1
  149@ == 2
goto_if_false @FINALEB_11496
if 
  is_char_dead 46@
goto_if_false @FINALEB_11496
mark_char_as_no_longer_needed 46@
149@ = 3

:FINALEB_11496
if 
  150@ == 1
goto_if_false @FINALEB_11542
if 
  is_char_dead 47@
goto_if_false @FINALEB_11542
mark_char_as_no_longer_needed 47@
150@ = 2

:FINALEB_11542
if 
  151@ == 1
goto_if_false @FINALEB_11588
if 
  is_char_dead 48@
goto_if_false @FINALEB_11588
mark_char_as_no_longer_needed 48@
151@ = 2

:FINALEB_11588
if 
  145@ == 1
goto_if_false @FINALEB_11634
if 
  is_char_dead 42@
goto_if_false @FINALEB_11634
mark_char_as_no_longer_needed 42@
145@ = 2

:FINALEB_11634
if 
  locate_char_any_means_3d $scplayer {x} 2528.53 {y} -1293.96 {z} 1030.86 {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @FINALEB_12432
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
remove_script_fire 61@
remove_script_fire 62@
remove_script_fire 63@
remove_script_fire 64@
remove_script_fire 65@
remove_script_fire 66@
remove_script_fire 67@
remove_script_fire 68@
remove_script_fire 69@
remove_script_fire 70@
remove_script_fire 71@
remove_script_fire 72@
remove_script_fire 73@
remove_script_fire 74@
remove_script_fire 76@
remove_script_fire 78@
remove_script_fire 82@
remove_script_fire 84@
remove_script_fire 85@
remove_script_fire 86@
61@ = start_script_fire 2523.9199 {y} -1299.21 {z} 1030.78 {propagation} 0 {size} 3
62@ = start_script_fire 2523.6599 {y} -1297.4 {z} 1030.8 {propagation} 0 {size} 1
63@ = start_script_fire 2528.97 {y} -1304.3199 {z} 1030.77 {propagation} 0 {size} 2
64@ = start_script_fire 2525.5 {y} -1321.59 {z} 1030.75 {propagation} 0 {size} 2
66@ = start_script_fire 2541.0 {y} -1311.02 {z} 1028.09 {propagation} 0 {size} 2
remove_pickup 130@
130@ = create_pickup_with_ammo 366 {pickupType} PickupType.Once {ammo} 99999 {x} 2534.0359 {y} -1321.212 {z} 1031.469
67@ = start_script_fire 2540.6899 {y} -1320.01 {z} 1030.6801 {propagation} 0 {size} 3
68@ = start_script_fire 2540.2 {y} -1316.76 {z} 1030.64 {propagation} 0 {size} 3
69@ = start_script_fire 2540.6101 {y} -1317.4301 {z} 1030.62 {propagation} 0 {size} 3
70@ = start_script_fire 2540.3501 {y} -1318.39 {z} 1030.59 {propagation} 0 {size} 3
71@ = start_script_fire 2540.5 {y} -1319.58 {z} 1030.61 {propagation} 0 {size} 3
remove_blip 118@
118@ = add_blip_for_coord 2540.9199 {y} -1304.14 {z} 1024.39
set_blip_entry_exit 118@ {x} 2540.8301 {y} -1304.05 {radius} 1.0
34@ = create_char PedType.Mission1 {modelId} 102 {x} 2527.3679 {y} -1319.587 {z} 1030.4301
set_char_heading 34@ {heading} 1.4222
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 34@ {skill} WeaponSkill.Pro
set_char_area_visible 34@ {areaId} 2
set_char_accuracy 34@ {accuracy} 30
137@ = 0
35@ = create_char PedType.Mission1 {modelId} 104 {x} 2528.2839 {y} -1314.865 {z} 1030.4301
set_char_heading 35@ {heading} 3.4628
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 35@ {skill} WeaponSkill.Pro
set_char_area_visible 35@ {areaId} 2
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_12350
if 
  not is_char_dead 35@
goto_if_false @FINALEB_12350
set_lvar_int_to_lvar_int 104@ = 35@
gosub @FINALEB_17696
138@ = 1

:FINALEB_12350
36@ = create_char PedType.Mission1 {modelId} 109 {x} 2524.0549 {y} -1309.533 {z} 1030.4301
set_char_heading 36@ {heading} 7.001
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_area_visible 36@ {areaId} 2
set_char_accuracy 36@ {accuracy} 30
139@ = 0
132@ = 6

:FINALEB_12432
if 
  132@ == 6
goto_if_false @FINALEB_12842
if 
  137@ == 0
goto_if_false @FINALEB_12563
if 
  not is_char_dead 34@
goto_if_false @FINALEB_12563
if or
  locate_char_any_means_3d $scplayer {x} 2527.0701 {y} -1293.72 {z} 1029.5 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.5 {drawSphere} False
  has_char_been_damaged_by_char 34@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 34@
goto_if_false @FINALEB_12563
task_kill_char_on_foot 34@ {target} $scplayer
137@ = 1

:FINALEB_12563
if 
  139@ == 0
goto_if_false @FINALEB_12671
if 
  not is_char_dead 36@
goto_if_false @FINALEB_12671
if or
  locate_char_any_means_char_3d $scplayer {target} 36@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 3.5 {drawSphere} False
  has_char_been_damaged_by_char 36@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 36@
goto_if_false @FINALEB_12671
set_lvar_int_to_lvar_int 104@ = 36@
gosub @FINALEB_17850
139@ = 1

:FINALEB_12671
if 
  137@ == 1
goto_if_false @FINALEB_12717
if 
  is_char_dead 34@
goto_if_false @FINALEB_12717
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_12717
if 
  138@ == 1
goto_if_false @FINALEB_12763
if 
  is_char_dead 35@
goto_if_false @FINALEB_12763
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_12763
if 
  139@ == 1
goto_if_false @FINALEB_12809
if 
  is_char_dead 36@
goto_if_false @FINALEB_12809
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_12809
50@ = get_char_area_visible $scplayer
if 
  50@ == 0
goto_if_false @FINALEB_12842
132@ = 7

:FINALEB_12842
if 
  132@ == 7
goto_if_false @FINALEB_14002
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2506.218 {y} -1293.093 {z} 200.0 {radius} 200.0 {clearParticles} False
request_animation "DAM_JUMP"
request_animation "FINALE"
load_all_models_now 

:FINALEB_12922
if or
  not has_animation_loaded "DAM_JUMP"
  not has_animation_loaded "FINALE"
goto_if_false @FINALEB_12966
wait 0
goto @FINALEB_12922

:FINALEB_12966
remove_blip 118@
118@ = add_blip_for_coord 2522.8201 {y} -1272.52 {z} 34.151
set_char_coordinates $scplayer {x} 2538.657 {y} -1304.358 {z} 34.0
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 349
remove_animation "SWAT"
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 366
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 46@
delete_char 47@
delete_char 48@
remove_pickup 129@
remove_pickup 130@
remove_pickup 125@
remove_pickup 120@
remove_pickup 121@
remove_pickup 122@
remove_pickup 126@
remove_pickup 123@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_char_as_no_longer_needed 36@
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2543.2 {y} -1277.645 {z} 33.9609
set_char_heading 34@ {heading} 7.001
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 34@ {skill} WeaponSkill.Pro
task_kill_char_on_foot 34@ {target} $scplayer
set_char_accuracy 34@ {accuracy} 10
137@ = 1
35@ = create_char PedType.Mission1 {modelId} 102 {x} 2536.917 {y} -1283.446 {z} 33.9609
set_char_heading 35@ {heading} 7.001
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.M4 {ammo} 99999
set_char_accuracy 35@ {accuracy} 10
138@ = 0
if 
  138@ == 0
goto_if_false @FINALEB_13378
if 
  not is_char_dead 35@
goto_if_false @FINALEB_13378
set_lvar_int_to_lvar_int 104@ = 35@
gosub @FINALEB_17740
138@ = 1

:FINALEB_13378
36@ = create_char PedType.Mission1 {modelId} 102 {x} 2531.656 {y} -1287.27 {z} 33.9602
set_char_heading 36@ {heading} 7.001
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 36@ {skill} WeaponSkill.Pro
set_char_accuracy 36@ {accuracy} 10
139@ = 0
if 
  139@ == 0
goto_if_false @FINALEB_13509
if 
  not is_char_dead 36@
goto_if_false @FINALEB_13509
set_lvar_int_to_lvar_int 104@ = 36@
gosub @FINALEB_17696
139@ = 1

:FINALEB_13509
37@ = create_char PedType.Mission1 {modelId} 109 {x} 2539.5691 {y} -1268.4709 {z} 33.9609
set_char_heading 37@ {heading} 2.21
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.M4 {ammo} 99999
task_kill_char_on_foot 37@ {target} $scplayer
set_char_accuracy 37@ {accuracy} 20
140@ = 1
remove_all_script_fires 
79@ = start_script_fire 2538.45 {y} -1281.4 {z} 34.34 {propagation} 0 {size} 3
61@ = start_script_fire 2527.6399 {y} -1312.0 {z} 33.9 {propagation} 0 {size} 2
62@ = start_script_fire 2527.5801 {y} -1303.3 {z} 34.4 {propagation} 0 {size} 1
63@ = start_script_fire 2532.52 {y} -1306.39 {z} 33.9 {propagation} 0 {size} 2
64@ = start_script_fire 2528.0801 {y} -1284.9 {z} 34.3 {propagation} 0 {size} 2
65@ = start_script_fire 2544.03 {y} -1269.3 {z} 34.2 {propagation} 0 {size} 1
66@ = start_script_fire 2536.26 {y} -1302.49 {z} 34.0 {propagation} 0 {size} 2
67@ = start_script_fire 2532.5801 {y} -1291.0699 {z} 34.0 {propagation} 0 {size} 1
71@ = start_script_fire 2528.6399 {y} -1269.64 {z} 34.0 {propagation} 0 {size} 1
72@ = start_script_fire 2534.5701 {y} -1284.5 {z} 34.04 {propagation} 0 {size} 1
70@ = start_script_fire 2531.99 {y} -1268.71 {z} 34.0 {propagation} 0 {size} 2
69@ = start_script_fire 2530.9871 {y} -1269.858 {z} 33.8 {propagation} 0 {size} 3
74@ = start_script_fire 2532.3899 {y} -1270.4 {z} 34.0 {propagation} 0 {size} 3
75@ = start_script_fire 2531.165 {y} -1271.9611 {z} 34.0 {propagation} 0 {size} 2
76@ = start_script_fire 2532.5291 {y} -1272.1689 {z} 34.0 {propagation} 0 {size} 1
77@ = start_script_fire 2532.395 {y} -1273.24 {z} 34.0 {propagation} 0 {size} 2
78@ = start_script_fire 2531.9399 {y} -1274.46 {z} 33.8 {propagation} 0 {size} 3
132@ = 8

:FINALEB_14002
if 
  132@ == 8
goto_if_false @FINALEB_14316
if 
  137@ == 1
goto_if_false @FINALEB_14066
if 
  is_char_dead 34@
goto_if_false @FINALEB_14066
mark_char_as_no_longer_needed 34@
137@ = 2

:FINALEB_14066
if 
  138@ == 1
goto_if_false @FINALEB_14112
if 
  is_char_dead 35@
goto_if_false @FINALEB_14112
mark_char_as_no_longer_needed 35@
138@ = 2

:FINALEB_14112
if 
  139@ == 1
goto_if_false @FINALEB_14158
if 
  is_char_dead 36@
goto_if_false @FINALEB_14158
mark_char_as_no_longer_needed 36@
139@ = 2

:FINALEB_14158
if 
  140@ == 1
goto_if_false @FINALEB_14204
if 
  is_char_dead 37@
goto_if_false @FINALEB_14204
mark_char_as_no_longer_needed 37@
140@ = 2

:FINALEB_14204
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2545.5901 {leftBottomY} -1278.26 {leftBottomZ} 31.36 {rightTopX} 2516.6499 {rightTopY} -1259.84 {rightTopZ} 37.0 {drawSphere} False
goto_if_false @FINALEB_14316
remove_all_script_fires 
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
60@ = 0

:FINALEB_14268
if 
  9 > 60@
goto_if_false @FINALEB_14309
kill_fx_system 51@(60@,9i)
60@ += 1
goto @FINALEB_14268

:FINALEB_14309
132@ = 9

:FINALEB_14316
if 
  132@ == 9
goto_if_false @FINALEB_14945
remove_blip 118@
switch_widescreen True
set_player_control $player1 {state} False
set_darkness_effect False {pitchBlack} -1
set_night_vision False
player_take_off_goggles $player1 {animate} False
61@ = start_script_fire 2532.6201 {y} -1272.65 {z} 34.31 {propagation} 0 {size} 1
62@ = start_script_fire 2532.8799 {y} -1272.75 {z} 34.12 {propagation} 0 {size} 2
64@ = start_script_fire 2527.8999 {y} -1272.5 {z} 34.8 {propagation} 0 {size} 2
65@ = start_script_fire 2533.7429 {y} -1272.434 {z} 34.0 {propagation} 0 {size} 3
66@ = start_script_fire 2533.7429 {y} -1272.434 {z} 34.0 {propagation} 0 {size} 2
70@ = start_script_fire 2531.99 {y} -1268.71 {z} 34.0 {propagation} 0 {size} 2
69@ = start_script_fire 2530.9871 {y} -1269.858 {z} 33.8 {propagation} 0 {size} 3
74@ = start_script_fire 2532.3899 {y} -1270.4 {z} 34.0 {propagation} 0 {size} 1
75@ = start_script_fire 2531.165 {y} -1271.9611 {z} 34.0 {propagation} 0 {size} 2
76@ = start_script_fire 2532.5291 {y} -1272.1689 {z} 34.0 {propagation} 0 {size} 1
77@ = start_script_fire 2532.395 {y} -1273.24 {z} 34.0 {propagation} 0 {size} 3
73@ = start_script_fire 2531.9399 {y} -1274.46 {z} 33.8 {propagation} 0 {size} 1
63@ = start_script_fire 2532.4331 {y} -1275.658 {z} 34.0 {propagation} 0 {size} 3
set_max_fire_generations 3
$camx_fb = 2526.989
$camy_fb = -1272.577
$camz_fb = 34.8419
$lookcamx_fb = 2527.988
$lookcamy_fb = -1272.557
$lookcamz_fb = 34.8799
delete_char 34@
delete_char 35@
delete_char 36@
delete_char 37@
delete_char 38@
set_char_coordinates $scplayer {x} 2538.45 {y} -1281.4 {z} 34.34
set_char_heading $scplayer {heading} 270.0
set_fixed_camera_position $camx_fb {y} $camy_fb {z} $camz_fb {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $lookcamx_fb {y} $lookcamy_fb {z} $lookcamz_fb {switchStyle} SwitchType.JumpCut
wait 2000
set_char_coordinates $scplayer {x} 2533.7429 {y} -1272.434 {z} 34.0
set_char_heading $scplayer {heading} 90.0
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "JUMP_ROLL" {animationFile} "DAM_JUMP" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_time_of_day 17 {minutes} 0
TIMERA = 0
set_time_scale 0.3
132@ = 10

:FINALEB_14945
if 
  132@ == 10
goto_if_false @FINALEB_16160
set_fixed_camera_position $camx_fb {y} $camy_fb {z} $camz_fb {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $lookcamx_fb {y} $lookcamy_fb {z} $lookcamz_fb {switchStyle} SwitchType.JumpCut
if 
  2512.28 >= $camx_fb
goto_if_false @FINALEB_15044
TIMERA = 0
153@ = 12
132@ = 11

:FINALEB_15044
if 
  TIMERA > 500
goto_if_false @FINALEB_15073
sub_timed_val_from_float_var $camx_fb -=@ 0.18

:FINALEB_15073
if 
  TIMERA > 0
goto_if_false @FINALEB_15140
if 
  153@ == 0
goto_if_false @FINALEB_15140
add_explosion_variable_shake 2538.3999 {y} -1278.4 {z} 34.04 {type} 4 {shake} 0.2
153@ = 1

:FINALEB_15140
if 
  TIMERA > 100
goto_if_false @FINALEB_15183
if 
  153@ == 1
goto_if_false @FINALEB_15183
153@ = 2

:FINALEB_15183
if 
  TIMERA > 250
goto_if_false @FINALEB_15261
if 
  153@ == 2
goto_if_false @FINALEB_15261
add_explosion_variable_shake 2540.24 {y} -1270.59 {z} 34.07 {type} 0 {shake} 0.2
remove_script_fire 64@
remove_script_fire 61@
153@ = 3

:FINALEB_15261
if 
  TIMERA > 500
goto_if_false @FINALEB_15329
if 
  153@ == 3
goto_if_false @FINALEB_15329
add_explosion_variable_shake 2535.6599 {y} -1276.3 {z} 34.34 {type} 2 {shake} 0.2
153@ = 4

:FINALEB_15329
if 
  TIMERA > 850
goto_if_false @FINALEB_15402
if 
  153@ == 4
goto_if_false @FINALEB_15402
add_explosion_variable_shake 2531.74 {y} -1270.35 {z} 34.39 {type} 1 {shake} 0.2
remove_script_fire 64@
153@ = 5

:FINALEB_15402
if 
  TIMERA > 1100
goto_if_false @FINALEB_15453
if 
  153@ == 5
goto_if_false @FINALEB_15453
set_time_scale 0.35
153@ = 6

:FINALEB_15453
if 
  TIMERA > 1298
goto_if_false @FINALEB_15533
if 
  153@ == 6
goto_if_false @FINALEB_15533
set_time_scale 0.39
add_explosion_variable_shake 2527.72 {y} -1272.8199 {z} 34.26 {type} 0 {shake} 0.2
remove_script_fire 65@
153@ = 7

:FINALEB_15533
if 
  TIMERA > 1400
goto_if_false @FINALEB_15608
if 
  153@ == 7
goto_if_false @FINALEB_15608
set_time_scale 0.42
add_explosion_variable_shake 2529.54 {y} -1270.12 {z} 34.31 {type} 2 {shake} 0.22
153@ = 8

:FINALEB_15608
if 
  TIMERA > 1500
goto_if_false @FINALEB_15688
if 
  153@ == 8
goto_if_false @FINALEB_15688
set_time_scale 0.44
add_explosion_variable_shake 2524.1499 {y} -1272.3101 {z} 34.42 {type} 4 {shake} 0.25
remove_script_fire 70@
153@ = 9

:FINALEB_15688
if 
  TIMERA > 1600
goto_if_false @FINALEB_15808
if 
  153@ == 9
goto_if_false @FINALEB_15808
set_time_scale 0.5
add_explosion_variable_shake 2522.3301 {y} -1270.1899 {z} 34.19 {type} 1 {shake} 0.3
remove_script_fire 61@
remove_script_fire 62@
remove_script_fire 65@
remove_script_fire 70@
remove_script_fire 69@
remove_script_fire 75@
remove_script_fire 76@
remove_script_fire 73@
remove_script_fire 63@
153@ = 10

:FINALEB_15808
if 
  TIMERA > 1700
goto_if_false @FINALEB_16092
if 
  153@ == 10
goto_if_false @FINALEB_16092
add_explosion_variable_shake 2524.1399 {y} -1270.04 {z} 34.19 {type} 2 {shake} 0.25
61@ = start_script_fire 2523.1699 {y} -1269.1801 {z} 34.04 {propagation} 0 {size} 3
62@ = start_script_fire 2522.47 {y} -1271.46 {z} 34.15 {propagation} 0 {size} 2
65@ = start_script_fire 2523.6799 {y} -1272.35 {z} 34.19 {propagation} 0 {size} 3
70@ = start_script_fire 2523.1799 {y} -1273.3199 {z} 34.06 {propagation} 0 {size} 2
69@ = start_script_fire 2522.8 {y} -1274.45 {z} 34.05 {propagation} 0 {size} 3
75@ = start_script_fire 2522.4199 {y} -1276.4 {z} 34.05 {propagation} 0 {size} 2
76@ = start_script_fire 2520.3201 {y} -1273.41 {z} 34.0 {propagation} 0 {size} 1
73@ = start_script_fire 2521.3201 {y} -1273.41 {z} 34.0 {propagation} 0 {size} 1
63@ = start_script_fire 2520.9299 {y} -1269.28 {z} 34.0 {propagation} 0 {size} 2
153@ = 11

:FINALEB_16092
if 
  TIMERA > 1916
goto_if_false @FINALEB_16160
if 
  153@ == 11
goto_if_false @FINALEB_16160
add_explosion_variable_shake 2522.01 {y} -1274.0601 {z} 34.2 {type} 4 {shake} 0.2
153@ = 12

:FINALEB_16160
if 
  132@ == 11
goto_if_false @FINALEB_17634
if 
  61.0 > $camz_fb
goto_if_false @FINALEB_16229
add_timed_val_to_float_var $camz_fb +=@ 0.1
sub_timed_val_from_float_var $camx_fb -=@ 0.02
add_timed_val_to_float_var $lookcamz_fb +=@ 0.008

:FINALEB_16229
set_fixed_camera_position $camx_fb {y} $camy_fb {z} $camz_fb {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $lookcamx_fb {y} $lookcamy_fb {z} $lookcamz_fb {switchStyle} SwitchType.JumpCut
if 
  153@ == 12
goto_if_false @FINALEB_16336
if 
  TIMERA > 1400
goto_if_false @FINALEB_16336
add_explosion_variable_shake 2521.46 {y} -1268.02 {z} 39.8 {type} 0 {shake} 0.2
153@ = 13

:FINALEB_16336
if 
  153@ == 13
goto_if_false @FINALEB_16404
if 
  TIMERA > 1670
goto_if_false @FINALEB_16404
add_explosion_variable_shake 2521.48 {y} -1270.67 {z} 40.32 {type} 4 {shake} 0.25
153@ = 14

:FINALEB_16404
if 
  153@ == 14
goto_if_false @FINALEB_16564
if 
  TIMERA > 1800
goto_if_false @FINALEB_16564
add_explosion_variable_shake 2521.3201 {y} -1275.86 {z} 40.47 {type} 2 {shake} 0.2
remove_script_fire 64@
remove_script_fire 66@
remove_script_fire 74@
remove_script_fire 69@
64@ = start_script_fire 2521.46 {y} -1268.02 {z} 39.8 {propagation} 1 {size} 2
66@ = start_script_fire 22521.4805 {y} -1270.67 {z} 40.32 {propagation} 1 {size} 2
74@ = start_script_fire 2521.3201 {y} -1275.86 {z} 40.47 {propagation} 1 {size} 1
153@ = 15

:FINALEB_16564
if 
  153@ == 15
goto_if_false @FINALEB_16656
if 
  TIMERA > 1950
goto_if_false @FINALEB_16656
add_explosion_variable_shake 2521.4199 {y} -1273.1801 {z} 39.83 {type} 2 {shake} 0.2
add_explosion_variable_shake 2525.4299 {y} -1280.65 {z} 40.28 {type} 4 {shake} 0.2
153@ = 16

:FINALEB_16656
if 
  153@ == 16
goto_if_false @FINALEB_16773
if 
  TIMERA > 2200
goto_if_false @FINALEB_16773
add_explosion_variable_shake 2521.27 {y} -1270.64 {z} 43.25 {type} 2 {shake} 0.2
remove_script_fire 77@
remove_script_fire 63@
remove_script_fire 79@
remove_script_fire 78@
remove_script_fire 70@
69@ = start_script_fire 2525.4299 {y} -1280.65 {z} 40.28 {propagation} 1 {size} 2
153@ = 17

:FINALEB_16773
if 
  153@ == 17
goto_if_false @FINALEB_16889
if 
  TIMERA > 2568
goto_if_false @FINALEB_16889
add_explosion_variable_shake 2521.1499 {y} -1267.91 {z} 43.37 {type} 2 {shake} 0.2
add_explosion_variable_shake 2525.8899 {y} -1281.0 {z} 43.79 {type} 4 {shake} 0.2
70@ = start_script_fire 2525.8899 {y} -1281.0 {z} 43.79 {propagation} 3 {size} 3
153@ = 18

:FINALEB_16889
if 
  153@ == 18
goto_if_false @FINALEB_17029
if 
  TIMERA > 3241
goto_if_false @FINALEB_17029
add_explosion_variable_shake 2520.8601 {y} -1273.39 {z} 43.2 {type} 0 {shake} 0.2
77@ = start_script_fire 2521.27 {y} -1270.64 {z} 43.25 {propagation} 1 {size} 3
63@ = start_script_fire 2521.1499 {y} -1267.91 {z} 43.37 {propagation} 2 {size} 2
79@ = start_script_fire 2521.3401 {y} -1275.7 {z} 43.26 {propagation} 3 {size} 1
153@ = 19

:FINALEB_17029
if 
  153@ == 19
goto_if_false @FINALEB_17097
if 
  TIMERA > 3485
goto_if_false @FINALEB_17097
add_explosion_variable_shake 2521.3401 {y} -1275.7 {z} 43.26 {type} 4 {shake} 0.2
153@ = 20

:FINALEB_17097
if 
  153@ == 20
goto_if_false @FINALEB_17165
if 
  TIMERA > 3708
goto_if_false @FINALEB_17165
add_explosion_variable_shake 2521.1499 {y} -1275.61 {z} 47.83 {type} 2 {shake} 0.2
153@ = 21

:FINALEB_17165
if 
  153@ == 21
goto_if_false @FINALEB_17262
if 
  TIMERA > 4246
goto_if_false @FINALEB_17262
add_explosion_variable_shake 2521.04 {y} -1272.97 {z} 47.91 {type} 0 {shake} 0.2
remove_script_fire 75@
62@ = start_script_fire 2525.8799 {y} -1279.99 {z} 48.43 {propagation} 3 {size} 2
153@ = 22

:FINALEB_17262
if 
  153@ == 22
goto_if_false @FINALEB_17364
if 
  TIMERA > 4708
goto_if_false @FINALEB_17364
add_explosion_variable_shake 2521.24 {y} -1267.9 {z} 48.15 {type} 4 {shake} 0.2
remove_script_fire 61@
remove_script_fire 62@
add_explosion_variable_shake 2525.8799 {y} -1279.99 {z} 48.43 {type} 2 {shake} 0.2
153@ = 23

:FINALEB_17364
if 
  153@ == 23
goto_if_false @FINALEB_17504
if 
  TIMERA > 5000
goto_if_false @FINALEB_17504
add_explosion_variable_shake 2521.3701 {y} -1270.86 {z} 48.35 {type} 0 {shake} 0.2
78@ = start_script_fire 2521.1499 {y} -1275.61 {z} 47.83 {propagation} 3 {size} 1
61@ = start_script_fire 2521.04 {y} -1272.97 {z} 47.91 {propagation} 2 {size} 2
62@ = start_script_fire 2521.24 {y} -1267.9 {z} 48.15 {propagation} 3 {size} 2
153@ = 24

:FINALEB_17504
if 
  153@ == 24
goto_if_false @FINALEB_17634
if 
  TIMERA > 3000
goto_if_false @FINALEB_17634
clear_char_tasks_immediately $scplayer
clear_onscreen_timer $escapetimer_fb
remove_animation "DAM_JUMP"
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 366
set_heathaze_effect False
do_fade 1000 {direction} Fade.Out

:FINALEB_17589
if 
  get_fading_status 
goto_if_false @FINALEB_17613
wait 0
goto @FINALEB_17589

:FINALEB_17613
goto @FINALEB_18535
132@ = 11
153@ = 25

:FINALEB_17634
goto @FINALEB_720

:FINALEB_17641
99@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 106@ {y} 107@ {z} 108@ {speed} MoveState.Run {time} -1
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 99@
perform_sequence_task 104@ {sequence} 99@
clear_sequence_task 99@
return 

:FINALEB_17696
100@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 100@
perform_sequence_task 104@ {sequence} 100@
clear_sequence_task 100@
return 

:FINALEB_17740
101@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 101@
perform_sequence_task 104@ {sequence} 101@
clear_sequence_task 101@
return 

:FINALEB_17778
111@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 106@ {y} 107@ {z} 108@ {speed} MoveState.Run {time} -1
task_go_straight_to_coord -1 {x} 113@ {y} 114@ {z} 115@ {speed} MoveState.Run {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 111@
perform_sequence_task 104@ {sequence} 111@
clear_sequence_task 111@
return 

:FINALEB_17850
102@ = open_sequence_task 
task_play_anim -1 {animationName} "CROUCH_ROLL_R" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 102@
perform_sequence_task 104@ {sequence} 102@
clear_sequence_task 102@
return 

:FINALEB_17933
103@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 112@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 106@ {y} 107@ {z} 108@ {heading} 116@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_R_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 103@ {state} True
close_sequence_task 103@
perform_sequence_task 104@ {sequence} 103@
clear_sequence_task 103@
return 

:FINALEB_18174
105@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLSHOOT_IN_L" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 112@
task_stay_in_same_place -1 {state} False
task_char_slide_to_coord_and_play_anim -1 {x} 106@ {y} 107@ {z} 108@ {heading} 116@ {radius} -1.0 {animationName} "SWT_WLLSHOOT_OUT_R" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "SWT_WLLPK_L_BACK" {animationFile} "SWAT" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 105@ {state} True
close_sequence_task 105@
perform_sequence_task 104@ {sequence} 105@
clear_sequence_task 105@
return 

:FINALEB_18415
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  182@ == 1
goto_if_false @FINALEB_18465
print_now 'RM4_46' {time} 5000 {flag} 1

:FINALEB_18465
if 
  179@ == 7
goto_if_false @FINALEB_18499
print_now 'RM4_45' {time} 7000 {flag} 1

:FINALEB_18499
if 
  183@ == 1
goto_if_false @FINALEB_18533
print_now 'RM4_50' {time} 5000 {flag} 1

:FINALEB_18533
return 

:FINALEB_18535
156@ = 1
clear_wanted_level $player1
$flag_riot_mission_counter += 1
return 

:FINALEB_18556
set_heathaze_effect False
set_darkness_effect False {pitchBlack} -1
remove_all_script_fires 
set_wanted_multiplier 1.0
set_max_wanted_level 6
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
clear_onscreen_timer $escapetimer_fb
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 104
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 368
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 366
remove_char_elegantly $big_smoke
remove_char_elegantly 49@
unload_special_character 1
unload_special_character 2
remove_animation "SWAT"
remove_animation "DAM_JUMP"
mark_model_as_no_longer_needed 544
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 533
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
remove_animation "FINALE"
remove_animation "FINALE2"
remove_blip 118@
remove_blip 119@
remove_pickup 120@
remove_pickup 121@
remove_pickup 122@
remove_pickup 123@
remove_pickup 124@
remove_pickup 125@
remove_pickup 126@
remove_pickup 127@
remove_pickup 129@
remove_pickup 130@
remove_pickup 131@
switch_emergency_services True
set_wanted_multiplier 1.0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
60@ = 0

:FINALEB_18839
if 
  9 > 60@
goto_if_false @FINALEB_18880
kill_fx_system 51@(60@,9i)
60@ += 1
goto @FINALEB_18839

:FINALEB_18880
$onmission = 0
mission_has_finished 
if 
  156@ == 1
goto_if_false @FINALEB_18913
do_fade 0 {direction} Fade.Out

:FINALEB_18913
return 

//-------------Mission 112---------------
// Originally: End Of The Line (3)

:FINALEC
gosub @FINALEC_36
if 
  has_deatharrest_been_executed 
goto_if_false @FINALEC_27
gosub @FINALEC_57331

:FINALEC_27
gosub @FINALEC_57527
terminate_this_script 

:FINALEC_36
$onmission = 1
script_name 'FINALEC'
wait 0
load_mission_text 'RIOT4'
97@ = load_char_decision_maker DecisionMakerType.Empty
128@ = 11
129@ = 0
130@ = 0
131@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
138@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
146@ = 0
147@ = 0
148@ = 0
149@ = 0
150@ = 0
151@ = 0
$escapetimer_fc = 450000
190@ = 0
191@ = 0
192@ = 0
193@ = 0
194@ = 0
195@ = 0
196@ = 0
197@ = 0
198@ = 0
199@ = 0
200@ = 0
201@ = 0
202@ = 0
203@ = 0
204@ = 0
205@ = 0
$finalerails_fcflag = 0
$rails_fcflag = 0
$rioters_fcflag = 0
249@ = 0
250@ = 0
251@ = 0
252@ = 0
253@ = 0
254@ = 0
255@ = 0
256@ = 0
257@ = 0
258@ = 0
259@ = 0
260@ = 0
261@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
268@ = 0
269@ = 0
270@ = 0
206@ = 0
288@ = 0
289@ = 0
290@ = 0
291@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
296@ = 0
297@ = 0
set_max_fire_generations 0
set_wanted_multiplier 0.0
switch_emergency_services False
request_model 544
request_model 280
request_model 492
request_model 533
request_model 109
request_model 102
request_model 352
request_model 344
request_model #LA_FUCKCAR1
request_model #LA_FUCKCAR2
request_animation "FINALE"
request_animation "FINALE2"
request_car_recording 288
request_car_recording 289
load_special_character 1 {modelName} 'SWEET'
load_special_character 2 {modelName} 'TENPEN'
request_car_recording 290
request_car_recording 291
load_mission_audio MissionAudioSlot.Slot1 {audioId} 33227
load_all_models_now 

:FINALEC_759
if or
  not has_model_loaded 544
  not has_model_loaded 280
  not has_model_loaded 492
  not has_model_loaded 533
  not has_model_loaded 109
goto_if_false @FINALEC_805
wait 0
goto @FINALEC_759

:FINALEC_805
if or
  not has_model_loaded 102
  not has_model_loaded 352
  not has_model_loaded 344
  not has_model_loaded #LA_FUCKCAR1
  not has_model_loaded #LA_FUCKCAR2
goto_if_false @FINALEC_851
wait 0
goto @FINALEC_805

:FINALEC_851
if or
request_animation "FINALE"
request_animation "FINALE2"
  not has_car_recording_been_loaded 288
  not has_car_recording_been_loaded 289
  not has_special_character_loaded 1
goto_if_false @FINALEC_908
wait 0
goto @FINALEC_851

:FINALEC_908
if or
  not has_car_recording_been_loaded 290
  not has_car_recording_been_loaded 291
goto_if_false @FINALEC_940
wait 0
goto @FINALEC_908

:FINALEC_940
switch_widescreen True
set_player_control $player1 {state} False
set_char_coordinates $scplayer {x} 2515.771 {y} -1277.474 {z} 33.728
set_char_heading $scplayer {heading} 144.159
task_play_anim $scplayer {animationName} "KO_SKID_BACK" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 250
152@ = create_car 544 {x} 2508.6489 {y} -1295.866 {z} 33.92
set_car_heading 152@ {heading} 0.3186
control_movable_vehicle_part 152@ {range} 0.7
set_car_proofs 152@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_can_be_visibly_damaged 152@ {state} False
$sweet_car = create_car 492 {x} 2508.9409 {y} -1306.517 {z} 33.92
set_car_heading $sweet_car {heading} 165.3186
change_car_colour $sweet_car {color1} 59 {color2} 34
custom_plate_for_next_car 533 {text} "_IMY_AK"
153@ = create_car 533 {x} 2515.895 {y} -1269.408 {z} 33.7844
set_car_heading 153@ {heading} 359.2572
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 153@ {health} 2000
set_can_burst_car_tyres 153@ {state} False
set_car_can_be_visibly_damaged 153@ {state} False
change_car_colour 153@ {color1} 1 {color2} 8
49@ = create_char PedType.Special {modelId} 291 {x} 2506.218 {y} -1293.093 {z} 33.8438
set_char_heading 49@ {heading} 271.9809
set_char_proofs 49@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 49@ {handleOrTemplate} 97@
158@ = create_char_as_passenger 152@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_proofs 158@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker 158@ {handleOrTemplate} 97@
$sweet = create_char PedType.Special {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_heading $sweet {heading} 0.3186
set_char_decision_maker $sweet {handleOrTemplate} 97@
if 
  not is_car_dead 152@
goto_if_false @FINALEC_1427
attach_char_to_car $sweet {vehicle} 152@ {xOffset} 0.0 {yOffset} -8.227 {zOffset} -1000.156 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed

:FINALEC_1427
set_ped_density_multiplier 0.0
set_car_density_multiplier 0.0
clear_area 2506.218 {y} -1293.093 {z} 200.0 {radius} 200.0 {clearParticles} False
switch_random_trains False
delete_all_trains 
set_time_scale 1.0
suppress_car_model 533
suppress_car_model 544
70@ = start_script_fire 2521.3921 {y} -1269.343 {z} 34.1609 {propagation} 0 {size} 3
71@ = start_script_fire 2521.7009 {y} -1270.293 {z} 34.2031 {propagation} 0 {size} 2
72@ = start_script_fire 2523.5801 {y} -1271.225 {z} 34.2918 {propagation} 0 {size} 3
73@ = start_script_fire 2518.5759 {y} -1284.467 {z} 34.0265 {propagation} 0 {size} 2
74@ = start_script_fire 2521.6001 {y} -1270.885 {z} 40.4338 {propagation} 0 {size} 3
75@ = start_script_fire 2521.6621 {y} -1267.656 {z} 43.8955 {propagation} 0 {size} 2
76@ = start_script_fire 2521.6741 {y} -1275.707 {z} 43.7437 {propagation} 0 {size} 3
77@ = start_script_fire 2521.5061 {y} -1275.781 {z} 40.4019 {propagation} 0 {size} 2
78@ = start_script_fire 2522.6799 {y} -1280.397 {z} 39.1158 {propagation} 0 {size} 3
79@ = start_script_fire 2521.676 {y} -1279.3521 {z} 39.112 {propagation} 0 {size} 3
80@ = start_script_fire 2521.7141 {y} -1278.639 {z} 37.4041 {propagation} 0 {size} 2
shut_char_up $scplayer {state} True
set_railtrack_resistance_mult 0.3
wait 500
load_scene_in_direction 2504.96 {y} -1309.16 {z} 34.44 {heading} 334.0
set_time_of_day 17 {minutes} 0
set_max_wanted_level 0
do_fade 1000 {direction} Fade.In
128@ = 11

:FINALEC_1817
wait 0
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @FINALEC_1843
goto @FINALEC_57453

:FINALEC_1843
if 
  not is_car_dead 152@
goto_if_false @FINALEC_3759
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_3759
if 
  not is_char_dead 49@
goto_if_false @FINALEC_3759
if 
  not is_car_dead 153@
goto_if_false @FINALEC_3759
if 
  128@ == 11
goto_if_false @FINALEC_2000
set_fixed_camera_position 2502.792 {y} -1296.28 {z} 35.3797 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2503.3779 {y} -1295.469 {z} 35.3873 {switchStyle} SwitchType.JumpCut
task_enter_car_as_driver 49@ {vehicle} 152@ {time} -1
TIMERA = 0
128@ = 12

:FINALEC_2000
if 
  128@ == 12
goto_if_false @FINALEC_2082
if 
  TIMERA > 1750
goto_if_false @FINALEC_2082
task_play_anim $scplayer {animationName} "GETUP_FRONT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
128@ = 13

:FINALEC_2082
if 
  128@ == 13
goto_if_false @FINALEC_2188
if 
  is_char_sitting_in_car 49@ {vehicle} 152@
goto_if_false @FINALEC_2188
task_play_anim_non_interruptable $sweet {animationName} "FIN_JUMP_ON" {animationFile} "FINALE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
lock_car_doors 152@ {lockStatus} CarLock.Locked
190@ = 1
TIMERA = 0
128@ = 14

:FINALEC_2188
if 
  128@ == 14
goto_if_false @FINALEC_2264
set_fixed_camera_position 2515.4451 {y} -1299.71 {z} 36.5622 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2514.667 {y} -1300.3101 {z} 36.4758 {switchStyle} SwitchType.JumpCut
128@ = 15

:FINALEC_2264
if 
  128@ == 15
goto_if_false @FINALEC_2399
if 
  TIMERA > 1400
goto_if_false @FINALEC_2399
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
set_near_clip 0.1
camera_set_vector_track 2514.667 {fromY} -1300.3101 {fromZ} 36.4758 {toX} 2514.946 {toY} -1282.265 {toZ} 35.6876 {time} 4000 {ease} False
camera_set_vector_move 2515.4451 {fromY} -1299.71 {fromZ} 36.5622 {toX} 2515.4819 {toY} -1282.265 {toZ} 35.713 {time} 4000 {ease} False
128@ = 16

:FINALEC_2399
if 
  128@ == 16
goto_if_false @FINALEC_2471
if 
  TIMERA > 2220
goto_if_false @FINALEC_2471
start_playback_recorded_car 152@ {path} 288
set_char_coordinates $scplayer {x} 2513.49 {y} -1277.77 {z} 34.19
128@ = 17

:FINALEC_2471
if 
  128@ == 17
goto_if_false @FINALEC_2593
if 
  not camera_is_vector_track_running 
goto_if_false @FINALEC_2593
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move 2515.4819 {fromY} -1282.265 {fromZ} 35.713 {toX} 2515.4819 {toY} -1283.1 {toZ} 35.713 {time} 4000 {ease} False
camera_set_vector_track 2514.946 {fromY} -1282.265 {fromZ} 35.6876 {toX} 2515.719 {toY} -1282.136 {toZ} 35.6959 {time} 4000 {ease} False
128@ = 18

:FINALEC_2593
if 
  128@ == 18
goto_if_false @FINALEC_2663
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_2663
if 
  TIMERA > 4999
goto_if_false @FINALEC_2663
set_playback_speed 152@ {speed} 0.75
128@ = 19

:FINALEC_2663
if 
  128@ == 19
goto_if_false @FINALEC_2717
if 
  TIMERA > 6000
goto_if_false @FINALEC_2717
task_enter_car_as_driver $scplayer {vehicle} 153@ {time} -1
128@ = 20

:FINALEC_2717
if 
  128@ == 20
goto_if_false @FINALEC_3284
if 
  TIMERA > 10500
goto_if_false @FINALEC_3284
if 
  is_char_in_car $scplayer {vehicle} 153@
goto_if_false @FINALEC_3284
camera_reset_new_scriptables 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
151@ = 1
clear_prints 
print_now 'RM4_41' {time} 8000 {flag} 1
print 'RM4_42' {time} 5000 {flag} 1
set_ped_density_multiplier 0.2
mark_car_as_no_longer_needed $sweet_car
mark_model_as_no_longer_needed 492
167@ = create_object #LA_FUCKCAR2 {x} 2597.3601 {y} -1044.735 {z} 69.196
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 0.0
set_object_rotation 167@ {x} 0.0 {y} 180.0 {z} 0.0
168@ = create_object #LA_FUCKCAR1 {x} 2598.7 {y} -1050.9399 {z} 69.23
set_object_heading 168@ {heading} 180.0
set_object_dynamic 168@ {state} True
44@ = create_char PedType.Mission1 {modelId} 109 {x} 2600.99 {y} -1050.01 {z} 69.04
set_char_heading 44@ {heading} 274.892
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 44@ {state} True
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
45@ = create_char PedType.Mission1 {modelId} 109 {x} 2597.21 {y} -1040.14 {z} 69.48
set_char_heading 45@ {heading} 274.892
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_char_weapon_skill 45@ {skill} WeaponSkill.Pro
set_char_only_damaged_by_player 45@ {state} True
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
46@ = create_char PedType.Mission1 {modelId} 109 {x} 2604.991 {y} -1038.172 {z} 69.619
set_char_heading 46@ {heading} 274.892
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 46@ {state} True
set_lvar_int_to_lvar_int 102@ = 46@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
61@ = start_script_fire 2598.54 {y} -1044.53 {z} 68.5 {propagation} 0 {size} 3
62@ = start_script_fire 2600.99 {y} -1050.01 {z} 69.04 {propagation} 0 {size} 3
63@ = start_script_fire 2599.8799 {y} -1052.4 {z} 68.06 {propagation} 0 {size} 3
128@ = 21

:FINALEC_3284
if 
  128@ == 21
goto_if_false @FINALEC_3376
stop_playback_recorded_car 152@
start_playback_recorded_car 152@ {path} 289
115@ = add_blip_for_char $sweet
set_blip_as_friendly 115@ {state} True
change_blip_display 115@ {display} BlipDisplay.BlipOnly
TIMERA = 0
clear_mission_audio MissionAudioSlot.Slot1
203@ = 0
204@ = 0
191@ = 1
128@ = 22

:FINALEC_3376
if 
  190@ == 1
goto_if_false @FINALEC_3515
if 
  is_char_playing_anim $sweet {animationName} "FIN_JUMP_ON"
goto_if_false @FINALEC_3515
164@ = get_char_anim_current_time $sweet {animationName} "FIN_JUMP_ON"
if 
  164@ == 1.0
goto_if_false @FINALEC_3515
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_3515
if 
  128@ > 13
goto_if_false @FINALEC_3759
if 
  151@ == 0
goto_if_false @FINALEC_3759
gosub @FINALEC_57065
if 
  203@ == 0
goto_if_false @FINALEC_3625
if 
  204@ == 0
goto_if_false @FINALEC_3625
set_lvar_int_to_constant 187@ = 33227
set_lvar_text_label 188@s = 'ROT4_HA'
gosub @FINALEC_57023

:FINALEC_3625
if 
  203@ == 1
goto_if_false @FINALEC_3692
if 
  204@ == 0
goto_if_false @FINALEC_3692
set_lvar_int_to_constant 187@ = 33228
set_lvar_text_label 188@s = 'ROT4_HB'
gosub @FINALEC_57023

:FINALEC_3692
if 
  203@ == 2
goto_if_false @FINALEC_3759
if 
  204@ == 0
goto_if_false @FINALEC_3759
set_lvar_int_to_constant 187@ = 33216
set_lvar_text_label 188@s = 'ROT4_DB'
gosub @FINALEC_57023

:FINALEC_3759
if or
  191@ == 1
  191@ == 2
goto_if_false @FINALEC_3814
if 
  is_car_dead 153@
goto_if_false @FINALEC_3814
201@ = 1
goto @FINALEC_57331

:FINALEC_3814
if 
  191@ == 1
goto_if_false @FINALEC_13366
if 
  not is_car_dead 152@
goto_if_false @FINALEC_13366
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_13366
if 
  not is_char_dead 49@
goto_if_false @FINALEC_13366
if 
  not is_car_dead 153@
goto_if_false @FINALEC_13366
if 
  not locate_char_any_means_car_2d $sweet {vehicle} 153@ {xRadius} 125.0 {yRadius} 125.0 {drawSphere} False
goto_if_false @FINALEC_3973
if 
  not is_char_on_screen $sweet
goto_if_false @FINALEC_3973
202@ = 1
goto @FINALEC_57331
print_now 'RM4_50' {time} 5000 {flag} 1

:FINALEC_3973
if 
  200@ == 0
goto_if_false @FINALEC_4053
if 
  not is_char_sitting_in_car $scplayer {vehicle} 153@
goto_if_false @FINALEC_4053
remove_blip 115@
115@ = add_blip_for_car 153@
set_blip_as_friendly 115@ {state} True
print_now 'RM4_48' {time} 5000 {flag} 1
200@ = 1

:FINALEC_4053
if 
  200@ == 1
goto_if_false @FINALEC_4165
if 
  is_char_sitting_in_car $scplayer {vehicle} 153@
goto_if_false @FINALEC_4165
remove_blip 115@
115@ = add_blip_for_char $sweet
set_blip_as_friendly 115@ {state} True
change_blip_display 115@ {display} BlipDisplay.BlipOnly
if 
  198@ > 0
goto_if_false @FINALEC_4142
change_blip_display 115@ {display} BlipDisplay.Both

:FINALEC_4142
print_now 'RM4_49' {time} 5000 {flag} 1
200@ = 0

:FINALEC_4165
if 
  not is_car_dead 152@
goto_if_false @FINALEC_4521
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_4521
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_4521
switch_start 194@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FINALEC_4521 {caseNum1} 0 {caseLabel1} @FINALEC_4276 {caseNum2} 1 {caseLabel2} @FINALEC_4411 {caseNum3} 2 {caseLabel3} @FINALEC_4466 {caseNum4} -1 {caseLabel4} @FINALEC_4521 {caseNum5} -1 {caseLabel5} @FINALEC_4521 {caseNum6} -1 {caseLabel6} @FINALEC_4521 {caseNum7} -1 {caseLabel7} @FINALEC_4521

:FINALEC_4276
if 
  not locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @FINALEC_4331
set_playback_speed 152@ {speed} 0.5
194@ = 1
goto @FINALEC_4404

:FINALEC_4331
if 
  locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_4404
if or
  193@ <> 5
  193@ <> 1
goto_if_false @FINALEC_4404
set_playback_speed 152@ {speed} 1.3
194@ = 2

:FINALEC_4404
goto @FINALEC_4521

:FINALEC_4411
if 
  locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 55.0 {yRadius} 55.0 {drawSphere} False
goto_if_false @FINALEC_4459
set_playback_speed 152@ {speed} 1.0
194@ = 0

:FINALEC_4459
goto @FINALEC_4521

:FINALEC_4466
if 
  not locate_char_any_means_char_2d $sweet {target} $scplayer {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_4514
set_playback_speed 152@ {speed} 1.0
194@ = 0

:FINALEC_4514
goto @FINALEC_4521

:FINALEC_4521
if 
  not is_char_dead 158@
goto_if_false @FINALEC_6629
if 
  196@ == 1
goto_if_false @FINALEC_4632
$player_x, $player_y, $player_z = get_car_coordinates 152@
$player_z -= 15.0
warp_char_from_car_to_coord 158@ {x} $player_x {y} $player_y {z} $player_z
attach_char_to_car 158@ {vehicle} 152@ {xOffset} 0.0 {yOffset} 0.656 {zOffset} 2.408 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
196@ = 2

:FINALEC_4632
if 
  196@ == 2
goto_if_false @FINALEC_4712
open_car_door 152@ {door} CarDoor.RightFrontDoor
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_CLIMBOUT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 3

:FINALEC_4712
if 
  196@ == 3
goto_if_false @FINALEC_4919
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_4919
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_CLIMBOUT"
if 
  170@ == 1.0
goto_if_false @FINALEC_4919
detach_char_from_car 158@
attach_char_to_car 158@ {vehicle} 152@ {xOffset} -0.014 {yOffset} -7.4 {zOffset} -999.253 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_CLIMBOUT2" {animationFile} "FINALE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
198@ = 1
196@ = 4

:FINALEC_4919
if 
  196@ == 4
goto_if_false @FINALEC_5096
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_CLIMBOUT2"
goto_if_false @FINALEC_5096
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_CLIMBOUT2"
if 
  170@ == 1.0
goto_if_false @FINALEC_5096
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_STOMP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
print_now 'RM4_43' {time} 7000 {flag} 1
196@ = 5

:FINALEC_5096
if 
  196@ == 5
goto_if_false @FINALEC_5183
if 
  TIMERB > 499
goto_if_false @FINALEC_5183
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_SLIP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 6

:FINALEC_5183
if 
  196@ == 6
goto_if_false @FINALEC_5328
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_STOMP"
goto_if_false @FINALEC_5328
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_STOMP"
if 
  170@ == 1.0
goto_if_false @FINALEC_5328
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_LOOP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 7

:FINALEC_5328
if 
  196@ == 7
goto_if_false @FINALEC_5478
if 
  is_char_playing_anim $sweet {animationName} "FIN_HANG_SLIP"
goto_if_false @FINALEC_5478
164@ = get_char_anim_current_time $sweet {animationName} "FIN_HANG_SLIP"
if 
  164@ == 1.0
goto_if_false @FINALEC_5478
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
196@ = 8

:FINALEC_5478
if 
  196@ == 8
goto_if_false @FINALEC_5648
if 
  TIMERB > 750
goto_if_false @FINALEC_5648
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_LOOP"
goto_if_false @FINALEC_5648
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_LOOP"
if 
  170@ == 1.0
goto_if_false @FINALEC_5648
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_STOMP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
196@ = 5

:FINALEC_5648
if 
  198@ == 1
goto_if_false @FINALEC_5781
if 
  TIMERA > 8999
goto_if_false @FINALEC_5781
if 
  does_blip_exist 115@
goto_if_false @FINALEC_5708
change_blip_display 115@ {display} BlipDisplay.Both

:FINALEC_5708
$gripbar_fc = 15
cset_var_float_to_var_int $fgripbardisplay_fc =# $gripbar_fc
$fgripbardisplay_fc *= 100.0
$fgripbardisplay_fc /= 15.0
cset_var_int_to_var_float $igripbardisplay_fc =# $fgripbardisplay_fc
display_onscreen_counter_with_string $igripbardisplay_fc {display} CounterDisplay.Bar {text} 'RM4_47'
TIMERA = 0
198@ = 2

:FINALEC_5781
if 
  198@ == 2
goto_if_false @FINALEC_5839
if 
  TIMERA > 999
goto_if_false @FINALEC_5839
$gripbar_fc -= 1
TIMERA = 0
198@ = 3

:FINALEC_5839
if 
  198@ == 3
goto_if_false @FINALEC_5897
if 
  TIMERA > 999
goto_if_false @FINALEC_5897
$gripbar_fc -= 1
TIMERA = 0
198@ = 4

:FINALEC_5897
if 
  198@ == 4
goto_if_false @FINALEC_5962
if 
  TIMERA > 999
goto_if_false @FINALEC_5962
$gripbar_fc -= 1
TIMERA = 0
set_car_density_multiplier 0.0
198@ = 5

:FINALEC_5962
if 
  198@ == 5
goto_if_false @FINALEC_6575
if 
  TIMERA > 999
goto_if_false @FINALEC_6020
$gripbar_fc -= 1
205@ = 4
TIMERA = 0

:FINALEC_6020
if 
  0 >= $gripbar_fc
goto_if_false @FINALEC_6163
$gripbar_fc = 0
196@ = 10
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_LOOP" {animationFile} "FINALE" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
detach_char_from_car $sweet
set_char_collision $sweet {state} True
task_play_anim_non_interruptable $sweet {animationName} "FIN_LAND_DIE" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
TIMERA = 0
198@ = 6

:FINALEC_6163
if 
  $gripbar_fc > 0
goto_if_false @FINALEC_6575
$player_x, $player_y, $player_z = get_char_coordinates $sweet
$player_z -= 1.0
if 
  locate_char_any_means_3d $scplayer {x} $player_x {y} $player_y {z} $player_z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @FINALEC_6575
clear_onscreen_counter $gripbar_fc
171@ = 4.0
detach_char_from_car $sweet
181@, 182@, 183@ = get_char_coordinates $sweet
set_char_collision $sweet {state} False
183@ -= 1.0
clear_char_tasks_immediately $sweet
set_char_coordinates $sweet {x} 181@ {y} 182@ {z} 183@
task_play_anim_non_interruptable $sweet {animationName} "FIN_LET_GO" {animationFile} "FINALE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
wait 0
if 
  not is_car_dead 153@
goto_if_false @FINALEC_6575
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_6575
if 
  not is_car_dead 152@
goto_if_false @FINALEC_6575
181@, 182@, 183@ = get_char_coordinates $sweet
175@, 176@, 177@ = get_offset_from_car_in_world_coords 153@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.5
set_lvar_float_to_lvar_float 172@ = 181@
sub_float_lvar_from_float_lvar 172@ -= 175@
set_lvar_float_to_lvar_float 173@ = 182@
sub_float_lvar_from_float_lvar 173@ -= 176@
set_lvar_float_to_lvar_float 174@ = 183@
sub_float_lvar_from_float_lvar 174@ -= 177@
set_lvar_float_to_lvar_float 178@ = 172@
div_float_lvar_by_float_lvar 178@ /= 171@
set_lvar_float_to_lvar_float 179@ = 173@
div_float_lvar_by_float_lvar 179@ /= 171@
set_lvar_float_to_lvar_float 180@ = 174@
div_float_lvar_by_float_lvar 180@ /= 171@
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0
203@ = 0
191@ = 2

:FINALEC_6575
if 
  198@ > 1
goto_if_false @FINALEC_6629
cset_var_float_to_var_int $fgripbardisplay_fc =# $gripbar_fc
$fgripbardisplay_fc *= 100.0
$fgripbardisplay_fc /= 15.0
cset_var_int_to_var_float $igripbardisplay_fc =# $fgripbardisplay_fc

:FINALEC_6629
if 
  198@ == 6
goto_if_false @FINALEC_6686
if 
  TIMERA > 2000
goto_if_false @FINALEC_6686
198@ = 7
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
goto @FINALEC_57331

:FINALEC_6686
if 
  199@ == 1
goto_if_false @FINALEC_6756
if 
  locate_car_2d 152@ {x} 2003.29 {y} -1097.0 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_6756
set_car_density_multiplier 1.0
199@ = 2

:FINALEC_6756
if 
  199@ == 1
goto_if_false @FINALEC_6826
if 
  locate_car_2d 152@ {x} 2112.8401 {y} -1406.01 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_6826
set_car_density_multiplier 0.0
199@ = 2

:FINALEC_6826
if 
  199@ == 2
goto_if_false @FINALEC_6896
if 
  locate_car_2d 152@ {x} 2112.51 {y} -1631.72 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_6896
set_car_density_multiplier 0.9
199@ = 3

:FINALEC_6896
if 
  195@ == 1
goto_if_false @FINALEC_7015
if 
  has_model_loaded 538
goto_if_false @FINALEC_7003
157@ = create_mission_train 15 {x} 2135.04 {y} -1953.25 {z} 12.84 {direction} False
set_train_speed 157@ {speed} 30.0
set_train_cruise_speed 157@ {speed} 12.5
set_car_proofs 157@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
195@ = 2
goto @FINALEC_7015

:FINALEC_7003
mark_model_as_no_longer_needed 538
195@ = 2

:FINALEC_7015
if 
  195@ == 2
goto_if_false @FINALEC_7122
if 
  not is_car_dead 157@
goto_if_false @FINALEC_7108
if 
  locate_car_2d 157@ {x} 2226.6399 {y} -1603.62 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_7101
mark_mission_trains_as_no_longer_needed 
mark_model_as_no_longer_needed 538
195@ = 3

:FINALEC_7101
goto @FINALEC_7122

:FINALEC_7108
mark_mission_trains_as_no_longer_needed 
mark_model_as_no_longer_needed 538
195@ = 3

:FINALEC_7122
if 
  195@ == 3
goto_if_false @FINALEC_7149
delete_all_trains 
195@ = 4

:FINALEC_7149
if 
  193@ == 0
goto_if_false @FINALEC_8908
if 
  192@ == 0
goto_if_false @FINALEC_7799
if 
  locate_car_2d 152@ {x} 2339.1101 {y} -1038.88 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_7799
205@ = 1
remove_all_script_fires 
mark_object_as_no_longer_needed 167@
mark_object_as_no_longer_needed 168@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
34@ = create_char PedType.Mission1 {modelId} 109 {x} 2246.3621 {y} -1059.161 {z} 61.2275
set_char_heading 34@ {heading} 255.0
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 34@ {state} True
set_lvar_int_to_lvar_int 102@ = 34@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
37@ = create_char PedType.Mission1 {modelId} 109 {x} 2212.2161 {y} -1001.041 {z} 67.22
set_char_heading 37@ {heading} 183.4
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 37@ {state} True
set_lvar_int_to_lvar_int 102@ = 37@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
38@ = create_char PedType.Mission1 {modelId} 109 {x} 2197.5581 {y} -1000.418 {z} 67.367
set_char_heading 38@ {heading} 209.7
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 38@ {state} True
set_lvar_int_to_lvar_int 102@ = 38@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
39@ = create_char PedType.Mission1 {modelId} 109 {x} 2188.512 {y} -1020.8 {z} 70.33
set_char_heading 39@ {heading} 287.39
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 39@ {state} True
set_char_accuracy 39@ {accuracy} 90
set_lvar_int_to_lvar_int 102@ = 39@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
165@ = create_object #LA_FUCKCAR2 {x} 2171.5701 {y} -1008.76 {z} 62.56
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 168.0
set_object_rotation 165@ {x} 0.0 {y} 90.0 {z} 0.0
61@ = start_script_fire 2172.5701 {y} -1008.76 {z} 61.56 {propagation} 0 {size} 3
62@ = start_script_fire 2171.5701 {y} -1007.76 {z} 62.56 {propagation} 0 {size} 3
40@ = create_char PedType.Mission1 {modelId} 109 {x} 2172.9099 {y} -1001.84 {z} 62.83
set_char_heading 40@ {heading} 258.18
set_char_decision_maker 40@ {handleOrTemplate} 97@
give_weapon_to_char 40@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 40@ {state} True
set_lvar_int_to_lvar_int 102@ = 40@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
192@ = 1

:FINALEC_7799
if 
  192@ == 1
goto_if_false @FINALEC_8908
if 
  locate_car_2d 152@ {x} 2252.01 {y} -1046.41 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_8908
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_7931
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_7931
if 
  not is_point_on_screen 2600.99 {y} -1050.01 {z} 69.04 {radius} 10.0
goto_if_false @FINALEC_7989
delete_object 167@
delete_object 168@
delete_char 44@
delete_char 45@
delete_char 46@

:FINALEC_7989
166@ = create_object #LA_FUCKCAR2 {x} 2033.39 {y} -938.0 {z} 39.99
set_object_heading 166@ {heading} 24.8
set_object_dynamic 166@ {state} True
set_object_rotation 166@ {x} 0.0 {y} 0.0 {z} 0.0
63@ = start_script_fire 2033.39 {y} -938.0 {z} 38.99 {propagation} 0 {size} 3
64@ = start_script_fire 2032.39 {y} -937.0 {z} 38.99 {propagation} 0 {size} 3
41@ = create_char PedType.Mission1 {modelId} 109 {x} 2035.09 {y} -979.33 {z} 40.9
set_char_heading 41@ {heading} 263.9
set_char_decision_maker 41@ {handleOrTemplate} 97@
give_weapon_to_char 41@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 41@ {state} True
set_lvar_int_to_lvar_int 102@ = 41@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
42@ = create_char PedType.Mission1 {modelId} 109 {x} 2053.8101 {y} -983.87 {z} 45.33
set_char_heading 42@ {heading} 287.5
set_char_decision_maker 42@ {handleOrTemplate} 97@
give_weapon_to_char 42@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 42@ {state} True
set_lvar_int_to_lvar_int 102@ = 42@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
43@ = create_char PedType.Mission1 {modelId} 109 {x} 2089.9299 {y} -971.49 {z} 54.556
set_char_heading 43@ {heading} 219.88
set_char_decision_maker 43@ {handleOrTemplate} 97@
give_weapon_to_char 43@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 43@ {state} True
set_lvar_int_to_lvar_int 102@ = 43@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
44@ = create_char PedType.Mission1 {modelId} 109 {x} 2026.056 {y} -971.93 {z} 41.5
set_char_heading 44@ {heading} 219.88
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 44@ {state} True
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
45@ = create_char PedType.Mission1 {modelId} 109 {x} 1989.918 {y} -1017.65 {z} 34.05
set_char_heading 45@ {heading} 317.6
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 45@ {state} True
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
46@ = create_char PedType.Mission1 {modelId} 109 {x} 1999.8 {y} -1018.65 {z} 35.33
set_char_heading 46@ {heading} 317.6
set_char_decision_maker 46@ {handleOrTemplate} 97@
give_weapon_to_char 46@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 46@ {state} True
set_lvar_int_to_lvar_int 102@ = 46@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
47@ = create_char PedType.Mission1 {modelId} 109 {x} 1970.674 {y} -1088.046 {z} 24.163
set_char_heading 47@ {heading} 345.24
set_char_decision_maker 47@ {handleOrTemplate} 97@
give_weapon_to_char 47@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 47@ {state} True
set_lvar_int_to_lvar_int 102@ = 47@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
48@ = create_char PedType.Mission1 {modelId} 109 {x} 1977.545 {y} -1096.913 {z} 24.35
set_char_heading 48@ {heading} 24.331
set_char_decision_maker 48@ {handleOrTemplate} 97@
give_weapon_to_char 48@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 48@ {state} True
set_lvar_int_to_lvar_int 102@ = 48@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
167@ = create_object #LA_FUCKCAR1 {x} 1975.3101 {y} -1099.27 {z} 24.118
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 270.894
set_object_rotation 167@ {x} 0.0 {y} 180.0 {z} 0.0
remove_script_fire 61@
remove_script_fire 62@
61@ = start_script_fire 1975.3101 {y} -1099.27 {z} 24.118 {propagation} 0 {size} 3
62@ = start_script_fire 1977.0 {y} -1098.0 {z} 24.0 {propagation} 0 {size} 3
192@ = 0
199@ = 1
193@ = 1

:FINALEC_8908
if 
  193@ == 1
goto_if_false @FINALEC_10348
if 
  192@ == 0
goto_if_false @FINALEC_9234
if 
  locate_car_2d 152@ {x} 2073.51 {y} -1260.1801 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_9234
205@ = 2
mark_object_as_no_longer_needed 165@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 40@
169@ = create_object #LA_FUCKCAR2 {x} 2117.46 {y} -1490.22 {z} 22.6
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 276.0
44@ = create_char PedType.Mission1 {modelId} 102 {x} 2108.6001 {y} -1491.5 {z} 23.85
set_char_heading 44@ {heading} 340.0
set_char_decision_maker 44@ {handleOrTemplate} 97@
give_weapon_to_char 44@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 44@ {state} True
set_lvar_int_to_lvar_int 102@ = 44@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
45@ = create_char PedType.Mission1 {modelId} 102 {x} 2116.48 {y} -1492.219 {z} 22.85
set_char_heading 45@ {heading} 340.0
set_char_decision_maker 45@ {handleOrTemplate} 97@
give_weapon_to_char 45@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 45@ {state} True
set_lvar_int_to_lvar_int 102@ = 45@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
192@ = 1

:FINALEC_9234
if 
  192@ == 1
goto_if_false @FINALEC_10348
if 
  locate_car_2d 152@ {x} 2268.9399 {y} -1260.26 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10348
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_9366
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_9366
remove_all_script_fires 
mark_model_as_no_longer_needed 109
mark_object_as_no_longer_needed 166@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_object_as_no_longer_needed 167@
delete_object 165@
delete_char 34@
delete_char 37@
delete_char 38@
delete_char 39@
delete_char 40@
delete_object 166@
delete_char 41@
request_model 538
165@ = create_object #LA_FUCKCAR1 {x} 2109.4919 {y} -1531.4 {z} 22.82
set_object_heading 165@ {heading} 276.274
set_object_dynamic 165@ {state} True
34@ = create_char PedType.Mission1 {modelId} 102 {x} 2110.3899 {y} -1529.04 {z} 22.928
set_char_heading 34@ {heading} 10.19
set_char_decision_maker 34@ {handleOrTemplate} 97@
give_weapon_to_char 34@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 34@ {state} True
set_lvar_int_to_lvar_int 102@ = 34@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
35@ = create_char PedType.Mission1 {modelId} 102 {x} 2118.376 {y} -1531.8 {z} 23.189
set_char_heading 35@ {heading} 340.0
set_char_decision_maker 35@ {handleOrTemplate} 97@
give_weapon_to_char 35@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 35@ {state} True
set_lvar_int_to_lvar_int 102@ = 35@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
61@ = start_script_fire 2116.7 {y} -1530.8459 {z} 22.99 {propagation} 0 {size} 3
62@ = start_script_fire 2115.5 {y} -1530.282 {z} 22.97 {propagation} 0 {size} 2
63@ = start_script_fire 2114.0601 {y} -1529.88 {z} 22.96 {propagation} 0 {size} 3
64@ = start_script_fire 2112.3 {y} -1529.92 {z} 22.9 {propagation} 0 {size} 2
168@ = create_object #LA_FUCKCAR2 {x} 2115.75 {y} -1620.6899 {z} 22.11
set_object_dynamic 168@ {state} True
set_object_heading 168@ {heading} 95.114
36@ = create_char PedType.Mission1 {modelId} 102 {x} 2111.5701 {y} -1585.135 {z} 25.1
set_char_heading 36@ {heading} 12.0
set_char_decision_maker 36@ {handleOrTemplate} 97@
give_weapon_to_char 36@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 36@ {state} True
set_lvar_int_to_lvar_int 102@ = 36@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
37@ = create_char PedType.Mission1 {modelId} 102 {x} 2104.4871 {y} -1586.327 {z} 25.07
set_char_heading 37@ {heading} 306.26
set_char_decision_maker 37@ {handleOrTemplate} 97@
give_weapon_to_char 37@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 37@ {state} True
set_lvar_int_to_lvar_int 102@ = 37@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
65@ = start_script_fire 2108.28 {y} -1637.23 {z} 18.3 {propagation} 0 {size} 3
66@ = start_script_fire 2110.6499 {y} -1637.9301 {z} 18.36 {propagation} 0 {size} 2
67@ = start_script_fire 2112.1799 {y} -1637.2 {z} 18.52 {propagation} 0 {size} 1
68@ = start_script_fire 2115.3601 {y} -1637.4301 {z} 18.47 {propagation} 0 {size} 2
69@ = start_script_fire 2117.3899 {y} -1636.75 {z} 18.62 {propagation} 0 {size} 3
70@ = start_script_fire 2107.9099 {y} -1586.498 {z} 24.8 {propagation} 0 {size} 3
71@ = start_script_fire 2110.28 {y} -1586.29 {z} 24.89 {propagation} 0 {size} 2
72@ = start_script_fire 2112.7549 {y} -1586.0811 {z} 24.8 {propagation} 0 {size} 2
38@ = create_char PedType.Mission1 {modelId} 102 {x} 2094.0 {y} -1763.0 {z} 12.5
set_char_heading 38@ {heading} 322.0
set_char_decision_maker 38@ {handleOrTemplate} 97@
give_weapon_to_char 38@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 38@ {state} True
set_lvar_int_to_lvar_int 102@ = 38@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
39@ = create_char PedType.Mission1 {modelId} 102 {x} 2088.0 {y} -1761.0 {z} 12.5
set_char_heading 39@ {heading} 306.26
set_char_decision_maker 39@ {handleOrTemplate} 97@
give_weapon_to_char 39@ {weaponType} WeaponType.Molotov {ammo} 99999
set_char_only_damaged_by_player 39@ {state} True
set_lvar_int_to_lvar_int 102@ = 39@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211
192@ = 0
193@ = 2

:FINALEC_10348
if 
  193@ == 2
goto_if_false @FINALEC_10662
if 
  192@ == 0
goto_if_false @FINALEC_10507
if 
  locate_car_2d 152@ {x} 2203.6899 {y} -1724.39 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10507
195@ = 1
delete_char 41@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 46@
delete_char 47@
delete_char 48@
delete_object 167@
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
mark_model_as_no_longer_needed 344
set_car_density_multiplier 1.0
192@ = 1

:FINALEC_10507
if 
  192@ == 1
goto_if_false @FINALEC_10662
if 
  locate_car_2d 152@ {x} 2202.3201 {y} -1890.45 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10662
205@ = 3
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_10646
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_10646
remove_all_script_fires 
192@ = 0
193@ = 3

:FINALEC_10662
if 
  193@ == 3
goto_if_false @FINALEC_10946
if 
  192@ == 0
goto_if_false @FINALEC_10743
if 
  locate_car_2d 152@ {x} 2115.45 {y} -1954.4 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10743
192@ = 1

:FINALEC_10743
if 
  192@ == 1
goto_if_false @FINALEC_10946
if 
  locate_car_2d 152@ {x} 2179.1899 {y} -2017.63 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_10946
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_10875
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_10875
remove_all_script_fires 
mark_object_as_no_longer_needed 165@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_object_as_no_longer_needed 169@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_object_as_no_longer_needed 168@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
192@ = 0
193@ = 4

:FINALEC_10946
if 
  193@ == 4
goto_if_false @FINALEC_11235
if 
  192@ == 0
goto_if_false @FINALEC_11082
if 
  locate_car_2d 152@ {x} 2318.03 {y} -2165.9399 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_11082
delete_object 165@
delete_char 34@
delete_char 35@
delete_object 169@
delete_char 44@
delete_char 45@
delete_object 168@
delete_char 36@
delete_char 37@
delete_char 38@
delete_char 39@
192@ = 1

:FINALEC_11082
if 
  192@ == 1
goto_if_false @FINALEC_11235
if 
  locate_car_2d 152@ {x} 2452.6001 {y} -2170.27 {xRadius} 14.0 {yRadius} 14.0 {drawSphere} False
goto_if_false @FINALEC_11235
if 
  is_char_playing_anim $sweet {animationName} "FIN_LEGSUP_LOOP"
goto_if_false @FINALEC_11214
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1

:FINALEC_11214
196@ = 1
192@ = 0
193@ = 5

:FINALEC_11235
if 
  190@ == 1
goto_if_false @FINALEC_11374
if 
  is_char_playing_anim $sweet {animationName} "FIN_JUMP_ON"
goto_if_false @FINALEC_11374
164@ = get_char_anim_current_time $sweet {animationName} "FIN_JUMP_ON"
if 
  164@ == 1.0
goto_if_false @FINALEC_11374
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_11374
if 
  190@ > 1
goto_if_false @FINALEC_12091
160@ = get_car_heading 152@
161@ = get_door_angle_ratio 152@ {door} 6
161@ -= 0.5
161@ *= 2.0
161@ *= 10.0
add_float_lvar_to_float_lvar 161@ += 160@
set_lvar_float_to_lvar_float 163@ = 161@
sub_float_lvar_from_float_lvar 163@ -= 162@
if 
  -180.0 > 163@
goto_if_false @FINALEC_11495
163@ += 360.0

:FINALEC_11495
if 
  163@ > 180.0
goto_if_false @FINALEC_11526
163@ += -360.0

:FINALEC_11526
set_lvar_float_to_lvar_float 162@ = 161@
if 
  196@ == 0
goto_if_false @FINALEC_12091
if 
  192@ == 0
goto_if_false @FINALEC_11831
if 
  -1.5 > 163@
goto_if_false @FINALEC_11663
if 
  190@ <> 4
goto_if_false @FINALEC_11656
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_L" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 4

:FINALEC_11656
goto @FINALEC_11824

:FINALEC_11663
if 
  163@ > 1.5
goto_if_false @FINALEC_11756
if 
  190@ <> 3
goto_if_false @FINALEC_11749
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_R" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 3

:FINALEC_11749
goto @FINALEC_11824

:FINALEC_11756
if 
  190@ <> 2
goto_if_false @FINALEC_11824
task_play_anim_non_interruptable $sweet {animationName} "FIN_HANG_LOOP" {animationFile} "FINALE" {blendSpeed} 2.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_11824
goto @FINALEC_12091

:FINALEC_11831
if 
  -1.5 > 163@
goto_if_false @FINALEC_11926
if 
  190@ <> 4
goto_if_false @FINALEC_11919
task_play_anim_non_interruptable $sweet {animationName} "FIN_LEGSUP_L" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 4

:FINALEC_11919
goto @FINALEC_12091

:FINALEC_11926
if 
  163@ > 1.5
goto_if_false @FINALEC_12021
if 
  190@ <> 3
goto_if_false @FINALEC_12014
task_play_anim_non_interruptable $sweet {animationName} "FIN_LEGSUP_R" {animationFile} "FINALE" {blendSpeed} 1.5 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 3

:FINALEC_12014
goto @FINALEC_12091

:FINALEC_12021
if 
  190@ <> 2
goto_if_false @FINALEC_12091
task_play_anim_non_interruptable $sweet {animationName} "FIN_LEGSUP_LOOP" {animationFile} "FINALE" {blendSpeed} 2.5 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
190@ = 2

:FINALEC_12091
if 
  2 > 191@
goto_if_false @FINALEC_13366
gosub @FINALEC_57065
if 
  203@ == 0
goto_if_false @FINALEC_12214
if 
  204@ == 0
goto_if_false @FINALEC_12214
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_12214
set_lvar_int_to_constant 187@ = 33217
set_lvar_text_label 188@s = 'ROT4_EA'
gosub @FINALEC_57023

:FINALEC_12214
if 
  205@ == 1
goto_if_false @FINALEC_12355
if 
  204@ == 0
goto_if_false @FINALEC_12355
if 
  1 > 203@
goto_if_false @FINALEC_12275
203@ = 1

:FINALEC_12275
if 
  203@ == 1
goto_if_false @FINALEC_12355
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12355
set_lvar_int_to_constant 187@ = 33229
set_lvar_text_label 188@s = 'ROT4_HC'
gosub @FINALEC_57023

:FINALEC_12355
if 
  203@ == 2
goto_if_false @FINALEC_12453
if 
  204@ == 0
goto_if_false @FINALEC_12453
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12453
set_lvar_int_to_constant 187@ = 33221
set_lvar_text_label 188@s = 'ROT4_FA'
gosub @FINALEC_57023

:FINALEC_12453
if 
  203@ == 3
goto_if_false @FINALEC_12551
if 
  204@ == 0
goto_if_false @FINALEC_12551
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12551
set_lvar_int_to_constant 187@ = 33245
set_lvar_text_label 188@s = 'ROT4_MB'
gosub @FINALEC_57023

:FINALEC_12551
if 
  204@ == 0
goto_if_false @FINALEC_12692
if 
  205@ == 2
goto_if_false @FINALEC_12692
if 
  4 > 203@
goto_if_false @FINALEC_12612
203@ = 4

:FINALEC_12612
if 
  203@ == 4
goto_if_false @FINALEC_12692
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12692
set_lvar_int_to_constant 187@ = 33241
set_lvar_text_label 188@s = 'ROT4_KJ'
gosub @FINALEC_57023

:FINALEC_12692
if 
  203@ == 5
goto_if_false @FINALEC_12790
if 
  204@ == 0
goto_if_false @FINALEC_12790
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12790
set_lvar_int_to_constant 187@ = 33218
set_lvar_text_label 188@s = 'ROT4_EB'
gosub @FINALEC_57023

:FINALEC_12790
if 
  204@ == 0
goto_if_false @FINALEC_12931
if 
  205@ == 3
goto_if_false @FINALEC_12931
if 
  6 > 203@
goto_if_false @FINALEC_12851
203@ = 6

:FINALEC_12851
if 
  203@ == 6
goto_if_false @FINALEC_12931
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_12931
set_lvar_int_to_constant 187@ = 33226
set_lvar_text_label 188@s = 'ROT4_GB'
gosub @FINALEC_57023

:FINALEC_12931
if 
  204@ == 0
goto_if_false @FINALEC_13029
if 
  203@ == 7
goto_if_false @FINALEC_13029
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13029
set_lvar_int_to_constant 187@ = 33222
set_lvar_text_label 188@s = 'ROT4_FB'
gosub @FINALEC_57023

:FINALEC_13029
if 
  204@ == 0
goto_if_false @FINALEC_13170
if 
  205@ == 4
goto_if_false @FINALEC_13170
if 
  8 > 203@
goto_if_false @FINALEC_13090
203@ = 8

:FINALEC_13090
if 
  203@ == 8
goto_if_false @FINALEC_13170
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13170
set_lvar_int_to_constant 187@ = 33234
set_lvar_text_label 188@s = 'ROT4_KB'
gosub @FINALEC_57023

:FINALEC_13170
if 
  204@ == 0
goto_if_false @FINALEC_13268
if 
  203@ == 9
goto_if_false @FINALEC_13268
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13268
set_lvar_int_to_constant 187@ = 33236
set_lvar_text_label 188@s = 'ROT4_KD'
gosub @FINALEC_57023

:FINALEC_13268
if 
  204@ == 0
goto_if_false @FINALEC_13366
if 
  203@ == 10
goto_if_false @FINALEC_13366
if 
  locate_char_any_means_char_2d $scplayer {target} $sweet {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_13366
set_lvar_int_to_constant 187@ = 33237
set_lvar_text_label 188@s = 'ROT4_KE'
gosub @FINALEC_57023

:FINALEC_13366
if 
  not is_car_dead 153@
goto_if_false @FINALEC_13970
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_13970
if 
  not is_car_dead 152@
goto_if_false @FINALEC_13970
if 
  191@ == 2
goto_if_false @FINALEC_13699
175@, 176@, 177@ = get_offset_from_car_in_world_coords 153@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.5
171@ -= 1.0
sub_float_lvar_from_float_lvar 172@ -= 178@
sub_float_lvar_from_float_lvar 173@ -= 179@
sub_float_lvar_from_float_lvar 174@ -= 180@
set_lvar_float_to_lvar_float 181@ = 175@
add_float_lvar_to_float_lvar 181@ += 172@
set_lvar_float_to_lvar_float 182@ = 176@
add_float_lvar_to_float_lvar 182@ += 173@
set_lvar_float_to_lvar_float 183@ = 177@
add_float_lvar_to_float_lvar 183@ += 174@
183@ -= 1.0
set_char_coordinates $sweet {x} 181@ {y} 182@ {z} 183@
if 
  171@ == 0.0
goto_if_false @FINALEC_13699
attach_char_to_car $sweet {vehicle} 153@ {xOffset} 0.0 {yOffset} 1.5 {zOffset} 0.5 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable $sweet {animationName} "FIN_LAND_CAR" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  does_blip_exist 115@
goto_if_false @FINALEC_13685
change_blip_display 115@ {display} BlipDisplay.BlipOnly

:FINALEC_13685
TIMERA = 0
191@ = 3

:FINALEC_13699
if 
  191@ == 3
goto_if_false @FINALEC_13860
if 
  is_char_playing_anim $sweet {animationName} "FIN_LAND_CAR"
goto_if_false @FINALEC_13860
164@ = get_char_anim_current_time $sweet {animationName} "FIN_LAND_CAR"
if 
  164@ == 1.0
goto_if_false @FINALEC_13860
report_mission_audio_event_at_position 181@ {y} 182@ {z} 183@ {soundId} ScriptSound.SoundBonnetDent
task_play_anim_non_interruptable $sweet {animationName} "FIN_CLIMB_IN" {animationFile} "FINALE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERA = 0
191@ = 4

:FINALEC_13860
if 
  4 > 191@
goto_if_false @FINALEC_13970
if 
  191@ > 1
goto_if_false @FINALEC_13970
gosub @FINALEC_57065
if 
  204@ == 0
goto_if_false @FINALEC_13970
if 
  203@ == 0
goto_if_false @FINALEC_13970
set_lvar_int_to_constant 187@ = 33246
set_lvar_text_label 188@s = 'ROT4_MC'
gosub @FINALEC_57023

:FINALEC_13970
if 
  $finalerails_fcflag == 0
goto_if_false @FINALEC_16450
if 
  not is_car_dead 153@
goto_if_false @FINALEC_16450
if 
  not is_car_dead 152@
goto_if_false @FINALEC_16450
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_16450
if 
  191@ == 4
goto_if_false @FINALEC_14251
if 
  TIMERA > 2800
goto_if_false @FINALEC_14251
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0
203@ = 0
set_fixed_camera_position 2908.949 {y} -1565.179 {z} 15.6092 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2908.9961 {y} -1565.014 {z} 14.624 {switchStyle} SwitchType.JumpCut
set_interpolation_parameters 0.0 {time} 1500
force_car_lights 152@ {lightMode} CarLights.ForceOff
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
clear_onscreen_counter $igripbardisplay_fc
delete_char 158@
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_14218
stop_playback_recorded_car 152@

:FINALEC_14218
start_playback_recorded_car 152@ {path} 290
set_playback_speed 152@ {speed} 0.9
start_playback_recorded_car 153@ {path} 291
191@ = 5

:FINALEC_14251
if 
  191@ == 5
goto_if_false @FINALEC_15161
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_15161
if 
  is_playback_going_on_for_car 153@
goto_if_false @FINALEC_15161
pause_playback_recorded_car 152@
pause_playback_recorded_car 153@
request_car_recording 230
request_car_recording 231
request_car_recording 232
request_car_recording 233
request_car_recording 234
request_car_recording 235
request_car_recording 236
request_car_recording 237
request_car_recording 238
request_car_recording 239
request_car_recording 240
request_model 352
request_model 596
request_model 468
request_model 344
request_model 110
request_model 576
load_all_models_now 

:FINALEC_14397
if or
  not has_model_loaded 352
  not has_model_loaded 596
  not has_model_loaded 468
goto_if_false @FINALEC_14434
wait 0
goto @FINALEC_14397

:FINALEC_14434
if or
  not has_model_loaded 110
  not has_model_loaded 576
  not has_model_loaded 344
goto_if_false @FINALEC_14470
wait 0
goto @FINALEC_14434

:FINALEC_14470
wait 2000
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_14901
if 
  not is_car_dead 152@
goto_if_false @FINALEC_14901
if 
  not is_car_dead 153@
goto_if_false @FINALEC_14901
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$player_z -= 10.0
if 
  is_char_in_any_car $scplayer
goto_if_false @FINALEC_14577
warp_char_from_car_to_coord $scplayer {x} $player_x {y} $player_y {z} $player_z

:FINALEC_14577
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
$player_x, $player_y, $player_z = get_char_coordinates $sweet
$player_z -= 10.0
if 
  is_char_in_any_car $sweet
goto_if_false @FINALEC_14650
warp_char_from_car_to_coord $sweet {x} $player_x {y} $player_y {z} $player_z
goto @FINALEC_14669

:FINALEC_14650
detach_char_from_car $sweet
set_char_coordinates $sweet {x} $player_x {y} $player_y {z} $player_z

:FINALEC_14669
warp_char_into_car $sweet {vehicle} 153@
warp_char_into_car_as_passenger $scplayer {handle} 153@ {seat} SeatId.BikeRear
158@ = create_char PedType.Mission1 {modelId} 280 {x} $player_x {y} $player_y {z} $player_z
set_char_decision_maker 158@ {handleOrTemplate} 97@
attach_char_to_car 158@ {vehicle} 152@ {xOffset} -0.014 {yOffset} -7.4 {zOffset} -999.253 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.MicroUzi
control_movable_vehicle_part 152@ {range} 0.2
set_char_health 158@ {health} 1000
set_char_accuracy 158@ {accuracy} 50
set_lvar_int_to_lvar_int 102@ = 158@
gosub @FINALEC_57249
159@ = create_char PedType.Mission1 {modelId} 280 {x} $player_x {y} $player_y {z} $player_z
set_char_decision_maker 159@ {handleOrTemplate} 97@
attach_char_to_car 159@ {vehicle} 152@ {xOffset} 0.0 {yOffset} 0.656 {zOffset} 2.408 {heading} Facing.Forward {headingRange} 0.0 {weaponType} WeaponType.MicroUzi
task_play_anim_non_interruptable 159@ {animationName} "FIN_COP1_CLIMBOUT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_health 159@ {health} 1000

:FINALEC_14901
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_15013
170@ = get_char_anim_current_time 159@ {animationName} "FIN_COP1_CLIMBOUT"
if 
  170@ > 0.0
goto_if_false @FINALEC_15013
set_char_anim_speed 159@ {animName} "FIN_COP1_CLIMBOUT" {animSpeed} 0.0

:FINALEC_15013
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_15115
task_play_anim_non_interruptable $sweet {animationName} "FIN_SWITCH_S" {animationFile} "FINALE2" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable $scplayer {animationName} "FIN_SWITCH_P" {animationFile} "FINALE2" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:FINALEC_15115
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15161
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15161
TIMERA = 0
191@ = 6

:FINALEC_15161
if 
  191@ == 6
goto_if_false @FINALEC_15476
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_15476
if 
  is_char_playing_anim $sweet {animationName} "FIN_SWITCH_S"
goto_if_false @FINALEC_15476
if 
  is_char_playing_anim $scplayer {animationName} "FIN_SWITCH_P"
goto_if_false @FINALEC_15476
170@ = get_char_anim_current_time $scplayer {animationName} "FIN_SWITCH_P"
if 
  170@ > 0.0
goto_if_false @FINALEC_15476
set_char_anim_speed $scplayer {animName} "FIN_SWITCH_P" {animSpeed} 0.0
170@ = get_char_anim_current_time $sweet {animationName} "FIN_SWITCH_S"
if 
  170@ > 0.0
goto_if_false @FINALEC_15476
set_char_anim_speed $sweet {animName} "FIN_SWITCH_S" {animSpeed} 0.0
if 
  not is_char_dead 159@
goto_if_false @FINALEC_15469
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_15469
set_char_anim_speed 159@ {animName} "FIN_COP1_CLIMBOUT" {animSpeed} 0.0

:FINALEC_15469
191@ = 7

:FINALEC_15476
if 
  191@ == 7
goto_if_false @FINALEC_15589
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15589
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15589
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_15589
if 
  is_playback_going_on_for_car 153@
goto_if_false @FINALEC_15589
unpause_playback_recorded_car 152@
unpause_playback_recorded_car 153@
force_car_lights 152@ {lightMode} CarLights.ForceOn
TIMERA = 0
191@ = 8

:FINALEC_15589
if 
  191@ == 8
goto_if_false @FINALEC_15684
if 
  TIMERA > 599
goto_if_false @FINALEC_15684
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15684
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15684
point_camera_at_point 2909.198 {y} -1564.303 {z} 15.1955 {switchStyle} SwitchType.Interpolation
191@ = 9

:FINALEC_15684
if 
  191@ == 9
goto_if_false @FINALEC_15776
if 
  TIMERA > 2500
goto_if_false @FINALEC_15776
if 
  not is_car_dead 153@
goto_if_false @FINALEC_15776
if 
  not is_car_dead 152@
goto_if_false @FINALEC_15776
restore_camera 
204@ = 0
203@ = 0
191@ = 10

:FINALEC_15776
if 
  191@ == 10
goto_if_false @FINALEC_15854
if 
  TIMERA > 4600
goto_if_false @FINALEC_15854
switch_widescreen False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_proofs $sweet {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
191@ = 11

:FINALEC_15854
if 
  191@ == 11
goto_if_false @FINALEC_16006
if 
  TIMERA > 5000
goto_if_false @FINALEC_16006
if 
  is_char_playing_anim $scplayer {animationName} "FIN_SWITCH_P"
goto_if_false @FINALEC_16006
if 
  is_char_playing_anim $sweet {animationName} "FIN_SWITCH_S"
goto_if_false @FINALEC_16006
set_char_anim_speed $scplayer {animName} "FIN_SWITCH_P" {animSpeed} 1.0
set_char_anim_speed $sweet {animName} "FIN_SWITCH_S" {animSpeed} 1.0
191@ = 12

:FINALEC_16006
if 
  191@ == 12
goto_if_false @FINALEC_16340
if 
  is_char_playing_anim $scplayer {animationName} "FIN_SWITCH_P"
goto_if_false @FINALEC_16340
170@ = get_char_anim_current_time $scplayer {animationName} "FIN_SWITCH_P"
if 
  170@ == 1.0
goto_if_false @FINALEC_16340
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_player_control $player1 {state} True
set_player_enter_car_button $player1 {enabled} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 153@ {health} 90000
$carhealth_fc = get_car_health 153@
$carhealth_fc /= 200
display_onscreen_counter_with_string $carhealth_fc {display} CounterDisplay.Bar {text} 'RM4_52'
if 
  not is_char_dead 158@
goto_if_false @FINALEC_16249
set_char_proofs 158@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False

:FINALEC_16249
if 
  not is_char_dead 159@
goto_if_false @FINALEC_16280
set_char_proofs 159@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:FINALEC_16280
196@ = 0
197@ = 1
$finalerails_fcflag = 1
$rioters_fcflag = 1
191@ = 13
print_help 'RM4_54'
204@ = 0
203@ = 0

:FINALEC_16340
if 
  191@ > 10
goto_if_false @FINALEC_16450
if 
  13 > 191@
goto_if_false @FINALEC_16450
gosub @FINALEC_57065
if 
  204@ == 0
goto_if_false @FINALEC_16450
if 
  203@ == 0
goto_if_false @FINALEC_16450
set_lvar_int_to_constant 187@ = 33248
set_lvar_text_label 188@s = 'ROT4_ME'
gosub @FINALEC_57023

:FINALEC_16450
if 
  $finalerails_fcflag == 1
goto_if_false @FINALEC_30658
if 
  not is_car_dead 153@
goto_if_false @FINALEC_30658
if 
  not is_car_dead 152@
goto_if_false @FINALEC_30658
$carhealth_fc = get_car_health 153@
$carhealth_fc -= 12000
if 
  0 >= $carhealth_fc
goto_if_false @FINALEC_16627
$carhealth_fc = 0
set_car_proofs 153@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_16592
task_die $sweet

:FINALEC_16592
explode_car 153@
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57331
goto @FINALEC_16634

:FINALEC_16627
$carhealth_fc /= 80

:FINALEC_16634
if 
  is_char_dead $sweet
goto_if_false @FINALEC_16673
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57331

:FINALEC_16673
if 
  5 > 196@
goto_if_false @FINALEC_17149
if 
  not is_char_dead 158@
goto_if_false @FINALEC_17128
if 
  196@ == 0
goto_if_false @FINALEC_16825
$health_fc = get_char_health 158@
if 
  970 > $health_fc
goto_if_false @FINALEC_16825
set_char_proofs 158@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_current_char_weapon 158@ {weaponType} WeaponType.Unarmed
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_SHOT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 1

:FINALEC_16825
if 
  196@ == 1
goto_if_false @FINALEC_16970
if 
  is_char_playing_anim 158@ {animationName} "FIN_COP1_SHOT"
goto_if_false @FINALEC_16970
170@ = get_char_anim_current_time 158@ {animationName} "FIN_COP1_SHOT"
if 
  170@ == 1.0
goto_if_false @FINALEC_16970
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_SWING" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
196@ = 2

:FINALEC_16970
if 
  196@ == 3
goto_if_false @FINALEC_17044
detach_char_from_car 158@
task_play_anim_non_interruptable 158@ {animationName} "FIN_COP1_SHOT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
196@ = 4

:FINALEC_17044
if 
  196@ == 4
goto_if_false @FINALEC_17121
if 
  not locate_char_any_means_char_2d $scplayer {target} 158@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_17121
if 
  not is_char_on_screen 158@
goto_if_false @FINALEC_17121
mark_char_as_no_longer_needed 158@
196@ = 5

:FINALEC_17121
goto @FINALEC_17149

:FINALEC_17128
if 
  does_char_exist 158@
goto_if_false @FINALEC_17149
detach_char_from_car 158@

:FINALEC_17149
if 
  6 > 197@
goto_if_false @FINALEC_17886
if 
  not is_char_dead 159@
goto_if_false @FINALEC_17865
if 
  197@ == 1
goto_if_false @FINALEC_17272
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_17272
set_char_anim_speed 159@ {animName} "FIN_COP1_CLIMBOUT" {animSpeed} 1.0
197@ = 2

:FINALEC_17272
if 
  197@ == 2
goto_if_false @FINALEC_17480
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP1_CLIMBOUT"
goto_if_false @FINALEC_17480
170@ = get_char_anim_current_time 159@ {animationName} "FIN_COP1_CLIMBOUT"
if 
  170@ == 1.0
goto_if_false @FINALEC_17480
detach_char_from_car 159@
attach_char_to_car 159@ {vehicle} 152@ {xOffset} -0.991 {yOffset} -4.12 {zOffset} 0.297 {heading} Facing.Back {headingRange} 0.0 {weaponType} WeaponType.MicroUzi
task_play_anim_non_interruptable 159@ {animationName} "FIN_COP2_CLIMBOUT" {animationFile} "FINALE2" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_char_health 159@ {health} 1000
set_char_accuracy 159@ {accuracy} 5
197@ = 3

:FINALEC_17480
if 
  197@ == 3
goto_if_false @FINALEC_17675
if 
  is_char_playing_anim 159@ {animationName} "FIN_COP2_CLIMBOUT"
goto_if_false @FINALEC_17675
170@ = get_char_anim_current_time 159@ {animationName} "FIN_COP2_CLIMBOUT"
if 
  170@ == 1.0
goto_if_false @FINALEC_17675
TIMERB = 0
$health_fc = get_char_health 159@
if 
  $health_fc > 950
goto_if_false @FINALEC_17630
set_char_health 159@ {health} 1100
goto @FINALEC_17638

:FINALEC_17630
set_char_health 159@ {health} 1050

:FINALEC_17638
set_lvar_int_to_lvar_int 102@ = 159@
set_char_proofs 159@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
gosub @FINALEC_57293
197@ = 4

:FINALEC_17675
if 
  197@ == 4
goto_if_false @FINALEC_17781
$health_fc = get_char_health 159@
if or
  1000 > $health_fc
  TIMERB > 60000
goto_if_false @FINALEC_17781
detach_char_from_car 159@
task_play_anim_non_interruptable 159@ {animationName} "KO_SKID_BACK" {animationFile} "PED" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
197@ = 5

:FINALEC_17781
if 
  197@ == 5
goto_if_false @FINALEC_17858
if 
  not locate_char_any_means_char_2d $scplayer {target} 159@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_17858
if 
  not is_char_on_screen 159@
goto_if_false @FINALEC_17858
mark_char_as_no_longer_needed 159@
197@ = 6

:FINALEC_17858
goto @FINALEC_17886

:FINALEC_17865
if 
  does_char_exist 159@
goto_if_false @FINALEC_17886
detach_char_from_car 159@

:FINALEC_17886
if 
  $rails_fcflag == 0
goto_if_false @FINALEC_18210
if 
  locate_car_2d 152@ {x} 2861.28 {y} -1298.8 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @FINALEC_18210
217@ = create_car 596 {x} 2816.01 {y} -1186.5601 {z} 23.95
set_car_heading 217@ {heading} 279.03
set_car_health 217@ {health} 400
set_car_only_damaged_by_player 217@ {state} True
154@ = create_char_inside_car 217@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 154@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 154@ {state} False
set_char_only_damaged_by_player 154@ {state} True
155@ = create_char_as_passenger 217@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 155@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 155@ {state} True
give_weapon_to_char 155@ {weaponType} WeaponType.MicroUzi {ammo} 9999
218@ = create_car 596 {x} 2803.0 {y} -1183.0 {z} 26.0
set_car_heading 218@ {heading} 261.0
set_car_health 218@ {health} 600
set_car_only_damaged_by_player 218@ {state} True
156@ = create_char_inside_car 218@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 156@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 156@ {state} False
set_char_only_damaged_by_player 156@ {state} True
207@ = create_char_as_passenger 218@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 207@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 207@ {state} True
give_weapon_to_char 207@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 218@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
$rails_fcflag = 1

:FINALEC_18210
if 
  $rails_fcflag == 1
goto_if_false @FINALEC_18761
if 
  locate_car_2d 152@ {x} 2849.3899 {y} -1232.9301 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_18761
if 
  not is_car_dead 217@
goto_if_false @FINALEC_18378
start_playback_recorded_car 217@ {path} 230
switch_car_siren 217@ {state} True
if 
  not is_char_dead 155@
goto_if_false @FINALEC_18349
task_drive_by 155@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 80

:FINALEC_18349
247@ = add_blip_for_car 217@
change_blip_display 247@ {display} BlipDisplay.BlipOnly
249@ = 1
260@ = 1

:FINALEC_18378
if 
  not is_car_dead 218@
goto_if_false @FINALEC_18490
switch_car_siren 218@ {state} True
start_playback_recorded_car 218@ {path} 231
if 
  not is_char_dead 207@
goto_if_false @FINALEC_18461
task_drive_by 207@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 80

:FINALEC_18461
248@ = add_blip_for_car 218@
change_blip_display 248@ {display} BlipDisplay.BlipOnly
250@ = 1
261@ = 1

:FINALEC_18490
206@ = 1
211@ = create_car 576 {x} 2735.333 {y} -1081.047 {z} 69.033
set_car_heading 211@ {heading} 37.918
set_car_health 211@ {health} 275
set_car_only_damaged_by_player 211@ {state} True
34@ = create_char_inside_car 211@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 34@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 34@ {state} True
35@ = create_char_as_passenger 211@ {pedType} PedType.Mission1 {modelId} 7 {seat} SeatId.BikeRear
set_char_decision_maker 35@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 35@ {state} True
give_weapon_to_char 35@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 211@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
212@ = create_car 576 {x} 2595.7419 {y} -1003.581 {z} 75.038
set_car_heading 212@ {heading} 180.0
set_car_only_damaged_by_player 212@ {state} True
36@ = create_char_inside_car 212@ {pedType} PedType.Mission1 {modelId} 7
set_char_decision_maker 36@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 36@ {state} False
set_char_only_damaged_by_player 36@ {state} True
37@ = create_char_as_passenger 212@ {pedType} PedType.Mission1 {modelId} 7 {seat} SeatId.BikeRear
set_char_decision_maker 37@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 37@ {state} True
give_weapon_to_char 37@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 212@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
$rails_fcflag = 2

:FINALEC_18761
if 
  $rails_fcflag == 2
goto_if_false @FINALEC_19872
if 
  locate_car_2d 153@ {x} 2717.71 {y} -1047.36 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_19872
mark_model_as_no_longer_needed 596
206@ = 2
if 
  not is_car_dead 211@
goto_if_false @FINALEC_18934
start_playback_recorded_car 211@ {path} 232
if 
  not is_char_dead 35@
goto_if_false @FINALEC_18905
task_drive_by 35@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_18905
241@ = add_blip_for_car 211@
change_blip_display 241@ {display} BlipDisplay.BlipOnly
254@ = 1
265@ = 1

:FINALEC_18934
if 
  not is_car_dead 212@
goto_if_false @FINALEC_19039
start_playback_recorded_car 212@ {path} 233
if 
  not is_char_dead 37@
goto_if_false @FINALEC_19010
task_drive_by 37@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_19010
242@ = add_blip_for_car 212@
change_blip_display 242@ {display} BlipDisplay.BlipOnly
255@ = 1
266@ = 1

:FINALEC_19039
208@ = create_car 576 {x} 2707.499 {y} -1329.559 {z} 47.3
set_car_heading 208@ {heading} 265.83
set_car_only_damaged_by_player 208@ {state} True
38@ = create_char_inside_car 208@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 38@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 38@ {state} True
39@ = create_char_as_passenger 208@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 39@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 39@ {state} True
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_proofs 208@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 208@ {health} 300
209@ = create_car 576 {x} 2759.875 {y} -1373.2939 {z} 38.777
set_car_heading 209@ {heading} 90.9
set_car_only_damaged_by_player 209@ {state} True
40@ = create_char_inside_car 209@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 40@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 40@ {state} True
41@ = create_char_as_passenger 209@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 41@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 41@ {state} True
give_weapon_to_char 41@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_proofs 209@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 209@ {health} 800
169@ = create_object #LA_FUCKCAR2 {x} 2722.5991 {y} -1324.889 {z} 49.47
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 83.325
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2631.1799 {y} -1244.17 {z} 50.58
set_char_heading 228@ {heading} 62.09
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_only_damaged_by_player 228@ {state} True
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
if 
  not is_char_dead 49@
goto_if_false @FINALEC_19461
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_19461
232@ = create_char PedType.Mission1 {modelId} 110 {x} 2646.1101 {y} -1193.27 {z} 66.1
set_char_heading 232@ {heading} 285.845
give_weapon_to_char 232@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 232@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 232@ {health} 10
set_char_decision_maker 232@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
233@ = create_char PedType.Mission1 {modelId} 110 {x} 2653.9351 {y} -1211.778 {z} 61.667
set_char_heading 233@ {heading} 360.0
give_weapon_to_char 233@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 233@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 233@ {health} 10
set_char_decision_maker 233@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_19671
set_lvar_int_to_lvar_int 102@ = 233@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_19671
234@ = create_char PedType.Mission1 {modelId} 110 {x} 2664.3359 {y} -1173.326 {z} 66.69
set_char_heading 234@ {heading} 53.93
give_weapon_to_char 234@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 234@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 234@ {health} 10
set_char_decision_maker 234@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 234@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
235@ = create_char PedType.Mission1 {modelId} 110 {x} 2639.27 {y} -1175.4 {z} 66.5
set_char_heading 235@ {heading} 2.3
give_weapon_to_char 235@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 235@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 235@ {health} 10
set_char_decision_maker 235@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
$rails_fcflag = 3

:FINALEC_19872
if 
  $rails_fcflag == 3
goto_if_false @FINALEC_20152
if 
  locate_car_2d 152@ {x} 2737.48 {y} -1309.88 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_20152
206@ = 3
if 
  not is_car_dead 208@
goto_if_false @FINALEC_20040
start_playback_recorded_car 208@ {path} 234
if 
  not is_char_dead 39@
goto_if_false @FINALEC_20011
task_drive_by 39@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 80

:FINALEC_20011
238@ = add_blip_for_car 208@
change_blip_display 238@ {display} BlipDisplay.BlipOnly
251@ = 1
262@ = 1

:FINALEC_20040
if 
  not is_car_dead 209@
goto_if_false @FINALEC_20145
start_playback_recorded_car 209@ {path} 235
if 
  not is_char_dead 41@
goto_if_false @FINALEC_20116
task_drive_by 41@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20116
239@ = add_blip_for_car 209@
change_blip_display 239@ {display} BlipDisplay.BlipOnly
252@ = 1
263@ = 1

:FINALEC_20145
$rails_fcflag = 4

:FINALEC_20152
if 
  $rails_fcflag == 4
goto_if_false @FINALEC_20607
if 
  not is_car_dead 153@
goto_if_false @FINALEC_20607
if 
  locate_car_2d 153@ {x} 2662.6001 {y} -1404.83 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_20607
206@ = 4
213@ = create_car 468 {x} 2657.4551 {y} -1594.463 {z} 12.685
set_car_heading 213@ {heading} 85.0
42@ = create_char_inside_car 213@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 42@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 213@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 43@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 43@ {state} True
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 213@ {state} True
set_car_proofs 213@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
214@ = create_car 468 {x} 2642.0 {y} -1615.0 {z} 19.0
set_car_heading 214@ {heading} 181.0
44@ = create_char_inside_car 214@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 44@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 44@ {state} True
45@ = create_char_as_passenger 214@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 45@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 45@ {state} True
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 214@ {state} True
set_car_proofs 214@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
215@ = create_car 468 {x} 2650.0 {y} -1621.0 {z} 19.0
set_car_heading 215@ {heading} 170.0
46@ = create_char_inside_car 215@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 46@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 46@ {state} True
47@ = create_char_as_passenger 215@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 47@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 47@ {state} True
give_weapon_to_char 47@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 215@ {state} True
set_car_proofs 215@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
$rails_fcflag = 5

:FINALEC_20607
if 
  $rails_fcflag == 5
goto_if_false @FINALEC_21115
if 
  locate_car_2d 152@ {x} 2642.71 {y} -1570.03 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_21115
206@ = 5
if 
  not is_car_dead 213@
goto_if_false @FINALEC_20775
start_playback_recorded_car 213@ {path} 236
if 
  not is_char_dead 43@
goto_if_false @FINALEC_20746
task_drive_by 43@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20746
243@ = add_blip_for_car 213@
change_blip_display 243@ {display} BlipDisplay.BlipOnly
256@ = 1
267@ = 1

:FINALEC_20775
if 
  not is_car_dead 214@
goto_if_false @FINALEC_20880
start_playback_recorded_car 214@ {path} 237
if 
  not is_char_dead 45@
goto_if_false @FINALEC_20851
task_drive_by 45@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20851
244@ = add_blip_for_car 214@
change_blip_display 244@ {display} BlipDisplay.BlipOnly
257@ = 1
268@ = 1

:FINALEC_20880
if 
  not is_car_dead 215@
goto_if_false @FINALEC_20985
start_playback_recorded_car 215@ {path} 238
if 
  not is_char_dead 47@
goto_if_false @FINALEC_20956
task_drive_by 47@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_20956
245@ = add_blip_for_car 215@
change_blip_display 245@ {display} BlipDisplay.BlipOnly
258@ = 1
269@ = 1

:FINALEC_20985
210@ = create_car 576 {x} 2704.0 {y} -1654.0 {z} 10.0
set_car_heading 210@ {heading} 90.0
set_car_health 210@ {health} 300
221@ = create_char_inside_car 210@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 221@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 221@ {state} False
set_char_only_damaged_by_player 221@ {state} True
222@ = create_char_as_passenger 210@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 222@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 222@ {state} True
give_weapon_to_char 222@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 210@ {state} True
$rails_fcflag = 6

:FINALEC_21115
if 
  $rails_fcflag == 6
goto_if_false @FINALEC_21283
if 
  locate_car_2d 153@ {x} 2642.98 {y} -1619.8 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_21283
if 
  not is_car_dead 210@
goto_if_false @FINALEC_21276
start_playback_recorded_car 210@ {path} 239
if 
  not is_char_dead 222@
goto_if_false @FINALEC_21247
task_drive_by 222@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_21247
240@ = add_blip_for_car 210@
change_blip_display 240@ {display} BlipDisplay.BlipOnly
253@ = 1
264@ = 1

:FINALEC_21276
$rails_fcflag = 7

:FINALEC_21283
if 
  $rails_fcflag == 7
goto_if_false @FINALEC_21430
if 
  locate_car_2d 152@ {x} 2407.9299 {y} -1918.34 {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @FINALEC_21430
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 153@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_fixed_camera_position 2409.032 {y} -1921.426 {z} 14.0992 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2408.9939 {y} -1920.431 {z} 14.0044 {switchStyle} SwitchType.JumpCut
TIMERA = 0
$rails_fcflag = 8

:FINALEC_21430
if 
  $rails_fcflag == 8
goto_if_false @FINALEC_21696
if 
  TIMERA > 5000
goto_if_false @FINALEC_21696
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
delete_char 158@
delete_char 159@
request_car_recording 241
request_car_recording 242
request_car_recording 243
request_car_recording 244
request_car_recording 245
request_car_recording 246
request_car_recording 247
request_car_recording 248
request_car_recording 249
request_car_recording 229
request_model 596
load_all_models_now 

:FINALEC_21540
if or
  not has_model_loaded 596
  not has_car_recording_been_loaded 241
  not has_car_recording_been_loaded 242
  not has_car_recording_been_loaded 243
  not has_car_recording_been_loaded 244
goto_if_false @FINALEC_21587
wait 0
goto @FINALEC_21540

:FINALEC_21587
if or
  not has_car_recording_been_loaded 245
  not has_car_recording_been_loaded 246
  not has_car_recording_been_loaded 247
  not has_car_recording_been_loaded 248
  not has_car_recording_been_loaded 249
goto_if_false @FINALEC_21634
wait 0
goto @FINALEC_21587

:FINALEC_21634
if 
  not has_car_recording_been_loaded 229
goto_if_false @FINALEC_21661
wait 0
goto @FINALEC_21634

:FINALEC_21661
remove_animation "FINALE"
remove_animation "FINALE2"
$finalerails_fcflag = 2
$rails_fcflag = 9

:FINALEC_21696
if 
  $rioters_fcflag == 1
goto_if_false @FINALEC_22893
if 
  locate_car_2d 152@ {x} 2835.29 {y} -1049.49 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_22893
165@ = create_object #LA_FUCKCAR2 {x} 2806.9839 {y} -1057.249 {z} 27.0
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 189.735
61@ = start_script_fire 2806.9839 {y} -1055.249 {z} 28.6 {propagation} 0 {size} 2
223@ = create_char PedType.Mission1 {modelId} 110 {x} 2798.46 {y} -1055.99 {z} 30.43
set_char_heading 223@ {heading} 285.845
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
237@ = create_car 576 {x} 2785.0601 {y} -1043.915 {z} 35.916
set_car_heading 237@ {heading} 4.2
set_car_health 237@ {health} 250
set_car_only_damaged_by_player 237@ {state} True
224@ = create_char PedType.Mission1 {modelId} 110 {x} 2774.5601 {y} -1011.43 {z} 58.08
set_char_heading 224@ {heading} 285.845
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
226@ = create_char PedType.Mission1 {modelId} 110 {x} 2782.9839 {y} -1041.2841 {z} 36.62
set_char_heading 226@ {heading} 285.845
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_22171
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_22171
227@ = create_char PedType.Mission1 {modelId} 110 {x} 2749.3931 {y} -1063.34 {z} 53.0
set_char_heading 227@ {heading} 309.534
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
give_weapon_to_char 227@ {weaponType} WeaponType.Molotov {ammo} 9999
if 
  not is_char_dead 154@
goto_if_false @FINALEC_22291
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_lvar_int 107@ = 154@
gosub @FINALEC_57211
goto @FINALEC_22330

:FINALEC_22291
if 
  not is_char_dead 49@
goto_if_false @FINALEC_22330
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_22330
167@ = create_object #LA_FUCKCAR2 {x} 2688.9399 {y} -1054.0341 {z} 69.57
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 210.579
62@ = start_script_fire 2806.9839 {y} -1055.249 {z} 28.6 {propagation} 0 {size} 2
63@ = start_script_fire 2807.9839 {y} -1056.249 {z} 28.6 {propagation} 0 {size} 1
229@ = create_char PedType.Mission1 {modelId} 110 {x} 2724.0449 {y} -1058.115 {z} 69.88
set_char_heading 229@ {heading} 360.0
give_weapon_to_char 229@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 229@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 229@ {health} 10
set_char_decision_maker 229@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
230@ = create_char PedType.Mission1 {modelId} 110 {x} 2632.0 {y} -114.0 {z} 68.0
set_char_heading 230@ {heading} 254.974
give_weapon_to_char 230@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 230@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 230@ {health} 10
set_char_decision_maker 230@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
168@ = create_object #LA_FUCKCAR2 {x} 2650.3899 {y} -1056.09 {z} 69.66
set_object_dynamic 168@ {state} True
set_object_heading 168@ {heading} 228.58
64@ = start_script_fire 2650.3899 {y} -1056.09 {z} 69.66 {propagation} 0 {size} 2
231@ = create_char PedType.Mission1 {modelId} 110 {x} 2649.78 {y} -1052.49 {z} 69.44
set_char_heading 231@ {heading} 254.974
give_weapon_to_char 231@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 231@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 231@ {health} 10
set_char_decision_maker 231@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2650.3999 {y} -1115.05 {z} 67.12
set_char_heading 228@ {heading} 360.0
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_22886
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_22886
$rioters_fcflag = 2

:FINALEC_22893
if 
  $rioters_fcflag == 2
goto_if_false @FINALEC_23023
if 
  locate_car_2d 153@ {x} 2642.8101 {y} -1193.87 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_23023
delete_object 165@
delete_char 223@
mark_car_as_no_longer_needed 237@
delete_car 237@
delete_char 224@
delete_char 226@
delete_char 227@
delete_object 167@
delete_char 229@
delete_object 168@
delete_char 231@
delete_char 228@
delete_char 230@
remove_all_script_fires 
$rioters_fcflag = 3

:FINALEC_23023
if 
  $rioters_fcflag == 3
goto_if_false @FINALEC_24104
if 
  locate_car_2d 153@ {x} 2723.8101 {y} -1275.64 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_24104
delete_char 232@
delete_char 233@
delete_char 234@
delete_char 235@
if 
  not is_car_dead 212@
goto_if_false @FINALEC_23130
set_car_health 212@ {health} 250
set_car_only_damaged_by_player 212@ {state} False

:FINALEC_23130
223@ = create_char PedType.Mission1 {modelId} 110 {x} 2718.29 {y} -1324.342 {z} 48.5
set_char_heading 223@ {heading} 352.57
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_23243
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_23243
224@ = create_char PedType.Mission1 {modelId} 110 {x} 2726.95 {y} -1324.49 {z} 49.5
set_char_heading 224@ {heading} 327.185
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
226@ = create_char PedType.Mission1 {modelId} 110 {x} 2710.5911 {y} -1315.29 {z} 74.34
set_char_heading 226@ {heading} 303.711
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_23453
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_23453
227@ = create_char PedType.Mission1 {modelId} 110 {x} 2748.2439 {y} -1375.115 {z} 49.5
set_char_heading 227@ {heading} 309.534
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
give_weapon_to_char 227@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2750.615 {y} -1388.75 {z} 39.0
set_char_heading 228@ {heading} 62.09
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
229@ = create_char PedType.Mission1 {modelId} 110 {x} 2713.137 {y} -1448.1689 {z} 41.95
set_char_heading 229@ {heading} 267.04
give_weapon_to_char 229@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 229@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 229@ {health} 10
set_char_decision_maker 229@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 229@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
230@ = create_char PedType.Mission1 {modelId} 110 {x} 2711.9351 {y} -1399.3199 {z} 54.0
set_char_heading 230@ {heading} 295.712
give_weapon_to_char 230@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 230@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 230@ {health} 10
set_char_decision_maker 230@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_23857
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_23857
231@ = create_char PedType.Mission1 {modelId} 110 {x} 2754.71 {y} -1309.9561 {z} 70.0
set_char_heading 231@ {heading} 77.189
give_weapon_to_char 231@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 231@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 231@ {health} 10
set_char_decision_maker 231@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
232@ = create_char PedType.Mission1 {modelId} 110 {x} 2750.615 {y} -1419.473 {z} 38.5
set_char_heading 232@ {heading} 77.189
give_weapon_to_char 232@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 232@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 232@ {health} 10
set_char_decision_maker 232@ {handleOrTemplate} 97@
if 
  not is_char_dead 40@
goto_if_false @FINALEC_24074
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_lvar_int 107@ = 40@
gosub @FINALEC_57211
goto @FINALEC_24097

:FINALEC_24074
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211

:FINALEC_24097
$rioters_fcflag = 4

:FINALEC_24104
if 
  $rioters_fcflag == 4
goto_if_false @FINALEC_24928
if 
  locate_car_2d 153@ {x} 2682.55 {y} -1494.04 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_24928
delete_char 223@
delete_char 224@
delete_char 226@
delete_char 227@
delete_char 228@
delete_char 229@
delete_char 230@
delete_char 231@
delete_char 232@
delete_object 165@
remove_all_script_fires 
165@ = create_object #LA_FUCKCAR2 {x} 2649.1941 {y} -1514.1851 {z} 26.6789
set_object_heading 165@ {heading} 329.3793
set_object_dynamic 165@ {state} True
237@ = create_car 576 {x} 2638.988 {y} -1555.943 {z} 18.9832
set_car_heading 237@ {heading} 290.7073
set_car_health 237@ {health} 250
set_car_only_damaged_by_player 237@ {state} True
167@ = create_object #LA_FUCKCAR2 {x} 2635.0969 {y} -1576.996 {z} 15.3271
set_object_heading 167@ {heading} 77.161
set_object_dynamic 167@ {state} True
168@ = create_object #LA_FUCKCAR2 {x} 2650.395 {y} -1586.538 {z} 13.6033
set_object_heading 168@ {heading} 295.7696
set_object_dynamic 168@ {state} True
169@ = create_object #LA_FUCKCAR2 {x} 2649.939 {y} -1629.937 {z} 9.8785
set_object_heading 169@ {heading} 270.0938
set_object_dynamic 169@ {state} True
223@ = create_char PedType.Mission1 {modelId} 110 {x} 2647.583 {y} -1518.547 {z} 25.7427
set_char_heading 223@ {heading} 12.7483
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_24533
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_24533
224@ = create_char PedType.Mission1 {modelId} 110 {x} 2651.0449 {y} -1515.111 {z} 26.5111
set_char_heading 224@ {heading} 12.4201
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
225@ = create_char PedType.Mission1 {modelId} 110 {x} 2636.188 {y} -1559.397 {z} 18.5108
set_char_heading 225@ {heading} 276.3582
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
226@ = create_char PedType.Mission1 {modelId} 110 {x} 2641.418 {y} -1558.004 {z} 18.6112
set_char_heading 226@ {heading} 339.6795
give_weapon_to_char 226@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
227@ = create_char PedType.Mission1 {modelId} 110 {x} 2649.325 {y} -1589.41 {z} 13.0846
set_char_heading 227@ {heading} 318.9207
give_weapon_to_char 227@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
$rioters_fcflag = 5

:FINALEC_24928
if 
  $rioters_fcflag == 5
goto_if_false @FINALEC_26048
if 
  locate_car_2d 153@ {x} 2652.95 {y} -1404.16 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_26048
61@ = start_script_fire 2641.6599 {y} -1514.55 {z} 26.82 {propagation} 0 {size} 2
61@ = start_script_fire 2638.6799 {y} -1515.3 {z} 26.5 {propagation} 0 {size} 3
61@ = start_script_fire 2641.5801 {y} -1538.54 {z} 22.46 {propagation} 0 {size} 3
61@ = start_script_fire 2635.6399 {y} -1605.36 {z} 10.7 {propagation} 0 {size} 2
61@ = start_script_fire 2643.52 {y} -1599.47 {z} 18.71 {propagation} 0 {size} 3
228@ = create_char PedType.Mission1 {modelId} 110 {x} 2647.583 {y} -1518.547 {z} 25.7427
set_char_heading 228@ {heading} 12.7483
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_25217
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_25217
229@ = create_char PedType.Mission1 {modelId} 110 {x} 2652.5149 {y} -1587.552 {z} 13.4203
set_char_heading 229@ {heading} 12.4201
give_weapon_to_char 229@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 229@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 229@ {health} 10
set_char_decision_maker 229@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 229@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
230@ = create_char PedType.Mission1 {modelId} 110 {x} 2647.3679 {y} -1629.595 {z} 9.727
set_char_heading 230@ {heading} 276.3582
give_weapon_to_char 230@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_char_proofs 230@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 230@ {health} 10
set_char_decision_maker 230@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 230@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
231@ = create_char PedType.Mission1 {modelId} 110 {x} 2651.1479 {y} -1631.916 {z} 9.8767
set_char_heading 231@ {heading} 339.6795
give_weapon_to_char 231@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 231@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 231@ {health} 10
set_char_decision_maker 231@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_25524
set_lvar_int_to_lvar_int 102@ = 231@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_25524
232@ = create_char PedType.Mission1 {modelId} 110 {x} 2635.9319 {y} -1598.666 {z} 18.7482
set_char_heading 232@ {heading} 318.9207
give_weapon_to_char 232@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 232@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 232@ {health} 10
set_char_decision_maker 232@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 232@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
233@ = create_char PedType.Mission1 {modelId} 110 {x} 2650.4939 {y} -1600.365 {z} 18.1152
set_char_heading 233@ {heading} 318.9207
give_weapon_to_char 233@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 233@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 233@ {health} 10
set_char_decision_maker 233@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 233@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
234@ = create_char PedType.Mission1 {modelId} 110 {x} 2635.9319 {y} -1598.666 {z} 18.7482
set_char_heading 234@ {heading} 318.9207
give_weapon_to_char 234@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 234@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 234@ {health} 10
set_char_decision_maker 234@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 234@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
235@ = create_char PedType.Mission1 {modelId} 110 {x} 2646.5979 {y} -1599.905 {z} 18.295
set_char_heading 235@ {heading} 318.9207
give_weapon_to_char 235@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 235@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 235@ {health} 10
set_char_decision_maker 235@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_25928
set_lvar_int_to_lvar_int 102@ = 235@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_25928
236@ = create_char PedType.Mission1 {modelId} 110 {x} 2634.689 {y} -1629.506 {z} 18.7081
set_char_heading 236@ {heading} 318.9207
give_weapon_to_char 236@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 236@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 236@ {health} 10
set_char_decision_maker 236@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_26041
set_lvar_int_to_lvar_int 102@ = 236@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_26041
$rioters_fcflag = 6

:FINALEC_26048
if 
  $rioters_fcflag == 6
goto_if_false @FINALEC_26203
if 
  locate_car_2d 153@ {x} 2598.5701 {y} -1729.65 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_26203
delete_char 223@
delete_char 224@
delete_char 226@
delete_char 227@
delete_char 228@
delete_char 229@
delete_char 230@
delete_char 231@
delete_char 232@
delete_char 233@
delete_char 234@
delete_char 235@
delete_char 236@
delete_car 237@
delete_object 165@
delete_object 167@
delete_object 168@
delete_object 169@
remove_all_script_fires 
$rioters_fcflag = 7

:FINALEC_26203
if 
  260@ == 1
goto_if_false @FINALEC_26355
if 
  not is_car_dead 217@
goto_if_false @FINALEC_26355
if 
  not is_char_dead 154@
goto_if_false @FINALEC_26260
goto @FINALEC_26355

:FINALEC_26260
if 
  not is_char_dead 155@
goto_if_false @FINALEC_26343
if 
  is_char_in_car 155@ {vehicle} 217@
goto_if_false @FINALEC_26336
219@ = get_driver_of_car 217@
if 
  219@ == -1
goto_if_false @FINALEC_26336
task_shuffle_to_next_car_seat 155@ {vehicle} 217@
260@ = 2

:FINALEC_26336
goto @FINALEC_26355

:FINALEC_26343
stop_playback_recorded_car 217@
260@ = 2

:FINALEC_26355
if 
  260@ == 2
goto_if_false @FINALEC_26401
if 
  is_char_dead 155@
goto_if_false @FINALEC_26401
stop_playback_recorded_car 217@
260@ = 3

:FINALEC_26401
if 
  249@ == 1
goto_if_false @FINALEC_26517
if 
  not is_car_dead 217@
goto_if_false @FINALEC_26485
if 
  not is_playback_going_on_for_car 217@
goto_if_false @FINALEC_26478
mark_car_as_no_longer_needed 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
remove_blip 247@
249@ = 2

:FINALEC_26478
goto @FINALEC_26517

:FINALEC_26485
stop_playback_recorded_car 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
mark_car_as_no_longer_needed 217@
remove_blip 247@
249@ = 2

:FINALEC_26517
if 
  261@ == 1
goto_if_false @FINALEC_26669
if 
  not is_car_dead 218@
goto_if_false @FINALEC_26669
if 
  not is_char_dead 156@
goto_if_false @FINALEC_26574
goto @FINALEC_26669

:FINALEC_26574
if 
  not is_char_dead 207@
goto_if_false @FINALEC_26657
if 
  is_char_in_car 207@ {vehicle} 218@
goto_if_false @FINALEC_26650
219@ = get_driver_of_car 218@
if 
  219@ == -1
goto_if_false @FINALEC_26650
task_shuffle_to_next_car_seat 207@ {vehicle} 218@
261@ = 2

:FINALEC_26650
goto @FINALEC_26669

:FINALEC_26657
stop_playback_recorded_car 218@
261@ = 2

:FINALEC_26669
if 
  261@ == 2
goto_if_false @FINALEC_26715
if 
  is_char_dead 207@
goto_if_false @FINALEC_26715
stop_playback_recorded_car 218@
261@ = 3

:FINALEC_26715
if 
  250@ == 1
goto_if_false @FINALEC_26831
if 
  not is_car_dead 218@
goto_if_false @FINALEC_26799
if 
  not is_playback_going_on_for_car 218@
goto_if_false @FINALEC_26792
mark_car_as_no_longer_needed 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
remove_blip 248@
250@ = 2

:FINALEC_26792
goto @FINALEC_26831

:FINALEC_26799
stop_playback_recorded_car 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
mark_car_as_no_longer_needed 218@
remove_blip 248@
250@ = 2

:FINALEC_26831
if 
  265@ == 1
goto_if_false @FINALEC_26983
if 
  not is_car_dead 211@
goto_if_false @FINALEC_26983
if 
  not is_char_dead 34@
goto_if_false @FINALEC_26888
goto @FINALEC_26983

:FINALEC_26888
if 
  not is_char_dead 35@
goto_if_false @FINALEC_26971
if 
  is_char_in_car 35@ {vehicle} 211@
goto_if_false @FINALEC_26964
219@ = get_driver_of_car 211@
if 
  219@ == -1
goto_if_false @FINALEC_26964
task_shuffle_to_next_car_seat 35@ {vehicle} 211@
265@ = 2

:FINALEC_26964
goto @FINALEC_26983

:FINALEC_26971
stop_playback_recorded_car 211@
265@ = 2

:FINALEC_26983
if 
  265@ == 2
goto_if_false @FINALEC_27029
if 
  is_char_dead 35@
goto_if_false @FINALEC_27029
stop_playback_recorded_car 211@
265@ = 3

:FINALEC_27029
if 
  254@ == 1
goto_if_false @FINALEC_27145
if 
  not is_car_dead 211@
goto_if_false @FINALEC_27113
if 
  not is_playback_going_on_for_car 211@
goto_if_false @FINALEC_27106
mark_car_as_no_longer_needed 211@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
remove_blip 241@
254@ = 2

:FINALEC_27106
goto @FINALEC_27145

:FINALEC_27113
stop_playback_recorded_car 211@
mark_char_as_no_longer_needed 34@
mark_char_as_no_longer_needed 35@
mark_car_as_no_longer_needed 211@
remove_blip 241@
254@ = 2

:FINALEC_27145
if 
  266@ == 1
goto_if_false @FINALEC_27297
if 
  not is_car_dead 212@
goto_if_false @FINALEC_27297
if 
  not is_char_dead 36@
goto_if_false @FINALEC_27202
goto @FINALEC_27297

:FINALEC_27202
if 
  not is_char_dead 37@
goto_if_false @FINALEC_27285
if 
  is_char_in_car 37@ {vehicle} 212@
goto_if_false @FINALEC_27278
219@ = get_driver_of_car 212@
if 
  219@ == -1
goto_if_false @FINALEC_27278
task_shuffle_to_next_car_seat 37@ {vehicle} 212@
266@ = 2

:FINALEC_27278
goto @FINALEC_27297

:FINALEC_27285
stop_playback_recorded_car 212@
266@ = 2

:FINALEC_27297
if 
  266@ == 2
goto_if_false @FINALEC_27343
if 
  is_char_dead 37@
goto_if_false @FINALEC_27343
stop_playback_recorded_car 212@
266@ = 3

:FINALEC_27343
if 
  255@ == 1
goto_if_false @FINALEC_27459
if 
  not is_car_dead 212@
goto_if_false @FINALEC_27427
if 
  not is_playback_going_on_for_car 212@
goto_if_false @FINALEC_27420
mark_car_as_no_longer_needed 212@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
remove_blip 242@
255@ = 2

:FINALEC_27420
goto @FINALEC_27459

:FINALEC_27427
stop_playback_recorded_car 212@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_car_as_no_longer_needed 212@
remove_blip 242@
255@ = 2

:FINALEC_27459
if 
  262@ == 1
goto_if_false @FINALEC_27611
if 
  not is_car_dead 208@
goto_if_false @FINALEC_27611
if 
  not is_char_dead 38@
goto_if_false @FINALEC_27516
goto @FINALEC_27611

:FINALEC_27516
if 
  not is_char_dead 39@
goto_if_false @FINALEC_27599
if 
  is_char_in_car 39@ {vehicle} 208@
goto_if_false @FINALEC_27592
219@ = get_driver_of_car 208@
if 
  219@ == -1
goto_if_false @FINALEC_27592
task_shuffle_to_next_car_seat 39@ {vehicle} 208@
262@ = 2

:FINALEC_27592
goto @FINALEC_27611

:FINALEC_27599
stop_playback_recorded_car 208@
262@ = 2

:FINALEC_27611
if 
  262@ == 2
goto_if_false @FINALEC_27657
if 
  is_char_dead 39@
goto_if_false @FINALEC_27657
stop_playback_recorded_car 208@
262@ = 3

:FINALEC_27657
if 
  251@ == 1
goto_if_false @FINALEC_27773
if 
  not is_car_dead 208@
goto_if_false @FINALEC_27741
if 
  not is_playback_going_on_for_car 208@
goto_if_false @FINALEC_27734
mark_car_as_no_longer_needed 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
remove_blip 238@
251@ = 2

:FINALEC_27734
goto @FINALEC_27773

:FINALEC_27741
stop_playback_recorded_car 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_car_as_no_longer_needed 208@
remove_blip 238@
251@ = 2

:FINALEC_27773
if 
  263@ == 1
goto_if_false @FINALEC_27925
if 
  not is_car_dead 209@
goto_if_false @FINALEC_27925
if 
  not is_char_dead 40@
goto_if_false @FINALEC_27830
goto @FINALEC_27925

:FINALEC_27830
if 
  not is_char_dead 41@
goto_if_false @FINALEC_27913
if 
  is_char_in_car 41@ {vehicle} 209@
goto_if_false @FINALEC_27906
219@ = get_driver_of_car 209@
if 
  219@ == -1
goto_if_false @FINALEC_27906
task_shuffle_to_next_car_seat 41@ {vehicle} 209@
263@ = 2

:FINALEC_27906
goto @FINALEC_27925

:FINALEC_27913
stop_playback_recorded_car 209@
263@ = 2

:FINALEC_27925
if 
  263@ == 2
goto_if_false @FINALEC_27971
if 
  is_char_dead 41@
goto_if_false @FINALEC_27971
stop_playback_recorded_car 209@
263@ = 3

:FINALEC_27971
if 
  252@ == 1
goto_if_false @FINALEC_28087
if 
  not is_car_dead 209@
goto_if_false @FINALEC_28055
if 
  not is_playback_going_on_for_car 209@
goto_if_false @FINALEC_28048
mark_car_as_no_longer_needed 209@
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
remove_blip 239@
252@ = 2

:FINALEC_28048
goto @FINALEC_28087

:FINALEC_28055
stop_playback_recorded_car 209@
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_car_as_no_longer_needed 209@
remove_blip 239@
252@ = 2

:FINALEC_28087
if 
  264@ == 1
goto_if_false @FINALEC_28239
if 
  not is_car_dead 210@
goto_if_false @FINALEC_28239
if 
  not is_char_dead 221@
goto_if_false @FINALEC_28144
goto @FINALEC_28239

:FINALEC_28144
if 
  not is_char_dead 222@
goto_if_false @FINALEC_28227
if 
  is_char_in_car 222@ {vehicle} 210@
goto_if_false @FINALEC_28220
219@ = get_driver_of_car 210@
if 
  219@ == -1
goto_if_false @FINALEC_28220
task_shuffle_to_next_car_seat 222@ {vehicle} 210@
264@ = 2

:FINALEC_28220
goto @FINALEC_28239

:FINALEC_28227
stop_playback_recorded_car 210@
264@ = 2

:FINALEC_28239
if 
  264@ == 2
goto_if_false @FINALEC_28285
if 
  is_char_dead 222@
goto_if_false @FINALEC_28285
stop_playback_recorded_car 210@
264@ = 3

:FINALEC_28285
if 
  253@ == 1
goto_if_false @FINALEC_28401
if 
  not is_car_dead 210@
goto_if_false @FINALEC_28369
if 
  not is_playback_going_on_for_car 210@
goto_if_false @FINALEC_28362
mark_car_as_no_longer_needed 210@
mark_char_as_no_longer_needed 221@
mark_char_as_no_longer_needed 222@
remove_blip 240@
253@ = 2

:FINALEC_28362
goto @FINALEC_28401

:FINALEC_28369
stop_playback_recorded_car 210@
mark_char_as_no_longer_needed 221@
mark_char_as_no_longer_needed 222@
mark_car_as_no_longer_needed 210@
remove_blip 240@
253@ = 2

:FINALEC_28401
if 
  267@ == 1
goto_if_false @FINALEC_28613
if 
  not is_car_dead 213@
goto_if_false @FINALEC_28613
if 
  not is_char_dead 42@
goto_if_false @FINALEC_28458
goto @FINALEC_28613

:FINALEC_28458
if 
  not is_char_dead 43@
goto_if_false @FINALEC_28571
if 
  is_char_in_car 43@ {vehicle} 213@
goto_if_false @FINALEC_28564
219@ = get_driver_of_car 213@
if 
  219@ == -1
goto_if_false @FINALEC_28564
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 213@
267@ = 2

:FINALEC_28564
goto @FINALEC_28613

:FINALEC_28571
set_car_forward_speed 213@ {forwardSpeed} 18.0
stop_playback_recorded_car 213@
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003
267@ = 2

:FINALEC_28613
if 
  267@ == 2
goto_if_false @FINALEC_28705
if 
  is_char_dead 43@
goto_if_false @FINALEC_28705
stop_playback_recorded_car 213@
if 
  not is_car_dead 213@
goto_if_false @FINALEC_28698
set_car_forward_speed 213@ {forwardSpeed} 18.0
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_28698
267@ = 3

:FINALEC_28705
if 
  256@ == 1
goto_if_false @FINALEC_28792
if 
  is_char_dead 42@
goto_if_false @FINALEC_28792
if or
  is_char_dead 43@
  is_car_dead 213@
goto_if_false @FINALEC_28792
stop_playback_recorded_car 213@
remove_blip 243@
mark_car_as_no_longer_needed 213@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
256@ = 2

:FINALEC_28792
if 
  268@ == 1
goto_if_false @FINALEC_29004
if 
  not is_car_dead 214@
goto_if_false @FINALEC_29004
if 
  not is_char_dead 44@
goto_if_false @FINALEC_28849
goto @FINALEC_29004

:FINALEC_28849
if 
  not is_char_dead 45@
goto_if_false @FINALEC_28962
if 
  is_char_in_car 45@ {vehicle} 214@
goto_if_false @FINALEC_28955
219@ = get_driver_of_car 214@
if 
  219@ == -1
goto_if_false @FINALEC_28955
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 214@
268@ = 2

:FINALEC_28955
goto @FINALEC_29004

:FINALEC_28962
set_car_forward_speed 214@ {forwardSpeed} 18.0
stop_playback_recorded_car 214@
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003
268@ = 2

:FINALEC_29004
if 
  268@ == 2
goto_if_false @FINALEC_29096
if 
  is_char_dead 45@
goto_if_false @FINALEC_29096
stop_playback_recorded_car 214@
if 
  not is_car_dead 214@
goto_if_false @FINALEC_29089
set_car_forward_speed 214@ {forwardSpeed} 18.0
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_29089
268@ = 3

:FINALEC_29096
if 
  257@ == 1
goto_if_false @FINALEC_29183
if 
  is_char_dead 44@
goto_if_false @FINALEC_29183
if or
  is_char_dead 45@
  is_car_dead 214@
goto_if_false @FINALEC_29183
stop_playback_recorded_car 214@
remove_blip 244@
mark_car_as_no_longer_needed 214@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
257@ = 2

:FINALEC_29183
if 
  269@ == 1
goto_if_false @FINALEC_29395
if 
  not is_car_dead 215@
goto_if_false @FINALEC_29395
if 
  not is_char_dead 46@
goto_if_false @FINALEC_29240
goto @FINALEC_29395

:FINALEC_29240
if 
  not is_char_dead 47@
goto_if_false @FINALEC_29353
if 
  is_char_in_car 47@ {vehicle} 215@
goto_if_false @FINALEC_29346
219@ = get_driver_of_car 215@
if 
  219@ == -1
goto_if_false @FINALEC_29346
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 47@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 47@ {vehicle} 215@
269@ = 2

:FINALEC_29346
goto @FINALEC_29395

:FINALEC_29353
set_car_forward_speed 215@ {forwardSpeed} 18.0
stop_playback_recorded_car 215@
set_car_rotation_velocity 215@ {x} 3.5 {y} 7.3999 {z} 8.1003
269@ = 2

:FINALEC_29395
if 
  269@ == 2
goto_if_false @FINALEC_29487
if 
  is_char_dead 47@
goto_if_false @FINALEC_29487
stop_playback_recorded_car 215@
if 
  not is_car_dead 215@
goto_if_false @FINALEC_29480
set_car_forward_speed 215@ {forwardSpeed} 18.0
set_car_rotation_velocity 215@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_29480
269@ = 3

:FINALEC_29487
if 
  258@ == 1
goto_if_false @FINALEC_29574
if 
  is_char_dead 46@
goto_if_false @FINALEC_29574
if or
  is_char_dead 47@
  is_car_dead 215@
goto_if_false @FINALEC_29574
stop_playback_recorded_car 215@
remove_blip 245@
mark_car_as_no_longer_needed 215@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
258@ = 2

:FINALEC_29574
gosub @FINALEC_57065
if 
  204@ == 0
goto_if_false @FINALEC_29648
if 
  203@ == 0
goto_if_false @FINALEC_29648
set_lvar_int_to_constant 187@ = 33247
set_lvar_text_label 188@s = 'ROT4_MD'
gosub @FINALEC_57023

:FINALEC_29648
if 
  204@ == 0
goto_if_false @FINALEC_29715
if 
  203@ == 1
goto_if_false @FINALEC_29715
set_lvar_int_to_constant 187@ = 33259
set_lvar_text_label 188@s = 'ROT4_NL'
gosub @FINALEC_57023

:FINALEC_29715
if 
  206@ == 1
goto_if_false @FINALEC_29800
if 
  204@ == 0
goto_if_false @FINALEC_29800
if 
  203@ == 2
goto_if_false @FINALEC_29800
set_lvar_int_to_constant 187@ = 33274
set_lvar_text_label 188@s = 'ROT4_QA'
gosub @FINALEC_57023

:FINALEC_29800
if 
  204@ == 0
goto_if_false @FINALEC_29867
if 
  203@ == 3
goto_if_false @FINALEC_29867
set_lvar_int_to_constant 187@ = 33275
set_lvar_text_label 188@s = 'ROT4_QB'
gosub @FINALEC_57023

:FINALEC_29867
if 
  204@ == 0
goto_if_false @FINALEC_29934
if 
  203@ == 4
goto_if_false @FINALEC_29934
set_lvar_int_to_constant 187@ = 33291
set_lvar_text_label 188@s = 'ROT4_TF'
gosub @FINALEC_57023

:FINALEC_29934
if 
  204@ == 0
goto_if_false @FINALEC_30001
if 
  203@ == 5
goto_if_false @FINALEC_30001
set_lvar_int_to_constant 187@ = 33265
set_lvar_text_label 188@s = 'ROT4_NR'
gosub @FINALEC_57023

:FINALEC_30001
if 
  206@ == 2
goto_if_false @FINALEC_30086
if 
  204@ == 0
goto_if_false @FINALEC_30086
if 
  203@ == 6
goto_if_false @FINALEC_30086
set_lvar_int_to_constant 187@ = 33253
set_lvar_text_label 188@s = 'ROT4_NE'
gosub @FINALEC_57023

:FINALEC_30086
if 
  204@ == 0
goto_if_false @FINALEC_30153
if 
  203@ == 7
goto_if_false @FINALEC_30153
set_lvar_int_to_constant 187@ = 33295
set_lvar_text_label 188@s = 'ROT4_TK'
gosub @FINALEC_57023

:FINALEC_30153
if 
  206@ == 3
goto_if_false @FINALEC_30238
if 
  204@ == 0
goto_if_false @FINALEC_30238
if 
  203@ == 8
goto_if_false @FINALEC_30238
set_lvar_int_to_constant 187@ = 33297
set_lvar_text_label 188@s = 'ROT4_TM'
gosub @FINALEC_57023

:FINALEC_30238
if 
  204@ == 0
goto_if_false @FINALEC_30305
if 
  203@ == 9
goto_if_false @FINALEC_30305
set_lvar_int_to_constant 187@ = 33292
set_lvar_text_label 188@s = 'ROT4_TG'
gosub @FINALEC_57023

:FINALEC_30305
if 
  206@ == 5
goto_if_false @FINALEC_30390
if 
  204@ == 0
goto_if_false @FINALEC_30390
if 
  203@ == 10
goto_if_false @FINALEC_30390
set_lvar_int_to_constant 187@ = 33249
set_lvar_text_label 188@s = 'ROT4_NA'
gosub @FINALEC_57023

:FINALEC_30390
if 
  204@ == 0
goto_if_false @FINALEC_30457
if 
  203@ == 11
goto_if_false @FINALEC_30457
set_lvar_int_to_constant 187@ = 33250
set_lvar_text_label 188@s = 'ROT4_NB'
gosub @FINALEC_57023

:FINALEC_30457
if 
  204@ == 0
goto_if_false @FINALEC_30524
if 
  203@ == 12
goto_if_false @FINALEC_30524
set_lvar_int_to_constant 187@ = 33288
set_lvar_text_label 188@s = 'ROT4_TC'
gosub @FINALEC_57023

:FINALEC_30524
if 
  204@ == 0
goto_if_false @FINALEC_30591
if 
  203@ == 13
goto_if_false @FINALEC_30591
set_lvar_int_to_constant 187@ = 33291
set_lvar_text_label 188@s = 'ROT4_TF'
gosub @FINALEC_57023

:FINALEC_30591
if 
  204@ == 0
goto_if_false @FINALEC_30658
if 
  203@ == 14
goto_if_false @FINALEC_30658
set_lvar_int_to_constant 187@ = 33286
set_lvar_text_label 188@s = 'ROT4_TA'
gosub @FINALEC_57023

:FINALEC_30658
if 
  $finalerails_fcflag == 2
goto_if_false @FINALEC_39456
if 
  not is_car_dead 152@
goto_if_false @FINALEC_31424
if 
  not is_car_dead 153@
goto_if_false @FINALEC_30881
$carhealth_fc = get_car_health 153@
$carhealth_fc -= 12000
if 
  0 >= $carhealth_fc
goto_if_false @FINALEC_30835
$carhealth_fc = 0
set_car_proofs 153@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_char_dead $sweet
goto_if_false @FINALEC_30800
task_die $sweet

:FINALEC_30800
explode_car 153@
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57331
goto @FINALEC_30842

:FINALEC_30835
$carhealth_fc /= 80

:FINALEC_30842
if 
  is_char_dead $sweet
goto_if_false @FINALEC_30881
print_now 'RM4_53' {time} 5000 {flag} 1
goto @FINALEC_57331

:FINALEC_30881
if 
  289@ == 0
goto_if_false @FINALEC_31424
249@ = 0
260@ = 0
250@ = 0
261@ = 0
251@ = 0
262@ = 0
256@ = 0
267@ = 0
257@ = 0
268@ = 0
remove_blip 238@
remove_blip 239@
remove_blip 240@
remove_blip 241@
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
remove_blip 247@
remove_blip 248@
delete_car 213@
delete_char 42@
delete_char 43@
delete_car 214@
delete_char 44@
delete_char 45@
delete_car 215@
delete_char 46@
delete_char 47@
delete_car 217@
delete_car 218@
delete_car 208@
delete_car 209@
delete_car 210@
delete_car 211@
delete_car 212@
213@ = create_car 468 {x} 2375.0 {y} -1918.0 {z} 12.5
set_car_heading 213@ {heading} 176.0
42@ = create_char_inside_car 213@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 42@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 42@ {state} True
43@ = create_char_as_passenger 213@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_health 43@ {health} 10
set_char_decision_maker 43@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 43@ {state} True
give_weapon_to_char 43@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 213@ {state} True
set_car_proofs 213@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
214@ = create_car 468 {x} 2377.0 {y} -1911.0 {z} 12.5
set_car_heading 214@ {heading} 186.0
44@ = create_char_inside_car 214@ {pedType} PedType.Mission1 {modelId} 110
set_char_decision_maker 44@ {handleOrTemplate} 97@
set_char_health 44@ {health} 10
set_char_only_damaged_by_player 44@ {state} True
45@ = create_char_as_passenger 214@ {pedType} PedType.Mission1 {modelId} 110 {seat} SeatId.BikeRear
set_char_decision_maker 45@ {handleOrTemplate} 97@
set_char_health 45@ {health} 10
set_char_only_damaged_by_player 45@ {state} True
give_weapon_to_char 45@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_only_damaged_by_player 214@ {state} True
set_car_proofs 214@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_fixed_camera_position 2347.5259 {y} -1914.929 {z} 15.1567 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2348.2241 {y} -1915.6169 {z} 14.9604 {switchStyle} SwitchType.JumpCut
289@ = 1

:FINALEC_31424
if 
  not is_car_dead 152@
goto_if_false @FINALEC_37104
if 
  not is_car_dead 153@
goto_if_false @FINALEC_37104
if 
  292@ == 0
goto_if_false @FINALEC_31901
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2300.8899 {y} -1947.97 {z} 24.5
set_char_heading 223@ {heading} 329.17
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_31587
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_31587
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2302.3301 {y} -1925.3199 {z} 12.6
set_char_heading 224@ {heading} 311.22
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
225@ = create_char PedType.Mission1 {modelId} 7 {x} 2324.5691 {y} -1951.436 {z} 20.59
set_char_heading 225@ {heading} 44.92
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
if 
  not is_char_dead 49@
goto_if_false @FINALEC_31797
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_31797
226@ = create_char PedType.Mission1 {modelId} 7 {x} 2362.397 {y} -1982.99 {z} 18.4
set_char_heading 226@ {heading} 44.93
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
292@ = 1

:FINALEC_31901
if 
  289@ == 1
goto_if_false @FINALEC_32426
start_playback_recorded_car 152@ {path} 241
start_playback_recorded_car 153@ {path} 242
if 
  not is_car_dead 213@
goto_if_false @FINALEC_32040
start_playback_recorded_car 213@ {path} 243
if 
  not is_char_dead 43@
goto_if_false @FINALEC_32011
task_drive_by 43@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_32011
243@ = add_blip_for_car 213@
change_blip_display 243@ {display} BlipDisplay.BlipOnly
256@ = 1
267@ = 1

:FINALEC_32040
if 
  not is_car_dead 214@
goto_if_false @FINALEC_32145
start_playback_recorded_car 214@ {path} 244
if 
  not is_char_dead 45@
goto_if_false @FINALEC_32116
task_drive_by 45@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 60

:FINALEC_32116
244@ = add_blip_for_car 214@
change_blip_display 244@ {display} BlipDisplay.BlipOnly
257@ = 1
268@ = 1

:FINALEC_32145
217@ = create_car 596 {x} 2337.0 {y} -2013.0 {z} 12.5
set_car_heading 217@ {heading} 325.0
set_car_only_damaged_by_player 217@ {state} True
154@ = create_char_inside_car 217@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 154@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 154@ {state} False
set_char_only_damaged_by_player 154@ {state} True
155@ = create_char_as_passenger 217@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 155@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 155@ {state} True
give_weapon_to_char 155@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 217@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
218@ = create_car 596 {x} 2266.0 {y} -1970.0 {z} 12.5
set_car_heading 218@ {heading} 178.0
set_car_only_damaged_by_player 218@ {state} True
156@ = create_char_inside_car 218@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 156@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 156@ {state} False
set_char_only_damaged_by_player 156@ {state} True
207@ = create_char_as_passenger 218@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 207@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 207@ {state} True
give_weapon_to_char 207@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 218@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
TIMERB = 0
289@ = 2
290@ = 1

:FINALEC_32426
if 
  290@ == 1
goto_if_false @FINALEC_32591
if 
  TIMERB > 6000
goto_if_false @FINALEC_32591
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0
203@ = 0
206@ = 0
restore_camera 
set_player_control $player1 {state} True
switch_widescreen False
task_drive_by $scplayer {targetChar} -1 {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 100
set_heading_for_attached_player $player1 {heading} 120.5 {headingRange} 200.0
if 
  not is_car_dead 153@
goto_if_false @FINALEC_32584
set_car_proofs 153@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:FINALEC_32584
290@ = 2

:FINALEC_32591
if 
  291@ == 0
goto_if_false @FINALEC_32702
if 
  289@ > 4
goto_if_false @FINALEC_32702
if 
  not is_car_dead 217@
goto_if_false @FINALEC_32702
if 
  locate_car_2d 217@ {x} 2210.1899 {y} -1864.8 {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @FINALEC_32702
set_car_health 217@ {health} 100
TIMERB = 0
291@ = 1

:FINALEC_32702
if 
  291@ == 1
goto_if_false @FINALEC_32767
if 
  not is_car_dead 217@
goto_if_false @FINALEC_32767
if 
  TIMERB > 1250
goto_if_false @FINALEC_32767
explode_car 217@
291@ = 2

:FINALEC_32767
if 
  289@ == 2
goto_if_false @FINALEC_33199
if 
  locate_car_2d 152@ {x} 2347.96 {y} -1972.42 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_33199
206@ = 1
if 
  not is_car_dead 217@
goto_if_false @FINALEC_32942
start_playback_recorded_car 217@ {path} 245
switch_car_siren 217@ {state} True
if 
  not is_char_dead 155@
goto_if_false @FINALEC_32913
task_drive_by 155@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_32913
247@ = add_blip_for_car 217@
change_blip_display 247@ {display} BlipDisplay.BlipOnly
249@ = 1
260@ = 1

:FINALEC_32942
if 
  not is_car_dead 218@
goto_if_false @FINALEC_33054
switch_car_siren 218@ {state} True
start_playback_recorded_car 218@ {path} 246
if 
  not is_char_dead 207@
goto_if_false @FINALEC_33025
task_drive_by 207@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 10

:FINALEC_33025
248@ = add_blip_for_car 218@
change_blip_display 248@ {display} BlipDisplay.BlipOnly
250@ = 1
261@ = 1

:FINALEC_33054
275@ = create_car 596 {x} 2283.0 {y} -2077.0 {z} 14.0
set_car_heading 275@ {heading} 48.0
set_car_only_damaged_by_player 275@ {state} True
276@ = create_char_inside_car 275@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 276@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 276@ {state} False
set_char_only_damaged_by_player 276@ {state} True
277@ = create_char_as_passenger 275@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 277@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 277@ {state} True
give_weapon_to_char 277@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 275@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 275@ {health} 700
289@ = 3

:FINALEC_33199
if 
  289@ == 3
goto_if_false @FINALEC_33991
if 
  locate_car_2d 153@ {x} 2260.9199 {y} -2021.7 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @FINALEC_33991
206@ = 2
if 
  not is_car_dead 275@
goto_if_false @FINALEC_33374
start_playback_recorded_car 275@ {path} 249
switch_car_siren 275@ {state} True
if 
  not is_char_dead 277@
goto_if_false @FINALEC_33345
task_drive_by 277@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_33345
279@ = add_blip_for_car 275@
change_blip_display 279@ {display} BlipDisplay.BlipOnly
295@ = 1
296@ = 1

:FINALEC_33374
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2226.8601 {y} -1966.5 {z} 24.5
set_char_heading 223@ {heading} 329.17
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 223@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_33514
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_33514
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2224.9441 {y} -1977.119 {z} 24.5
set_char_heading 224@ {heading} 311.22
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 224@ {state} True
if 
  not is_char_dead 156@
goto_if_false @FINALEC_33641
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 156@
gosub @FINALEC_57211
goto @FINALEC_33664

:FINALEC_33641
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211

:FINALEC_33664
165@ = create_object #LA_FUCKCAR2 {x} 2227.6169 {y} -1894.91 {z} 12.2
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 352.399
225@ = create_char PedType.Mission1 {modelId} 7 {x} 2230.1499 {y} -1891.29 {z} 12.5
set_char_heading 225@ {heading} 329.17
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
226@ = create_char PedType.Mission1 {modelId} 7 {x} 2229.5701 {y} -1898.48 {z} 12.415
set_char_heading 226@ {heading} 311.22
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
if 
  not is_char_dead 156@
goto_if_false @FINALEC_33921
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 156@
gosub @FINALEC_57211
goto @FINALEC_33944

:FINALEC_33921
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211

:FINALEC_33944
169@ = create_object #LA_FUCKCAR2 {x} 2222.927 {y} -1973.632 {z} 12.25
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 352.399
289@ = 4

:FINALEC_33991
if 
  289@ == 4
goto_if_false @FINALEC_34248
if 
  locate_car_2d 152@ {x} 2215.75 {y} -1931.8 {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @FINALEC_34248
206@ = 3
delete_car 213@
delete_char 42@
delete_char 43@
remove_blip 243@
delete_car 214@
delete_char 44@
delete_char 45@
remove_blip 244@
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 468
272@ = create_car 596 {x} 2169.74 {y} -1726.16 {z} 12.5
set_car_heading 272@ {heading} 268.0
set_car_only_damaged_by_player 272@ {state} True
273@ = create_char_inside_car 272@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 273@ {handleOrTemplate} 97@
set_char_suffers_critical_hits 273@ {state} False
set_char_only_damaged_by_player 273@ {state} True
274@ = create_char_as_passenger 272@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 274@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 274@ {state} True
give_weapon_to_char 274@ {weaponType} WeaponType.MicroUzi {ammo} 9999
set_car_proofs 272@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
set_car_health 272@ {health} 600
289@ = 5

:FINALEC_34248
if 
  289@ == 5
goto_if_false @FINALEC_34548
if 
  locate_car_2d 152@ {x} 2215.9299 {y} -1765.08 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_34548
if 
  not is_car_dead 272@
goto_if_false @FINALEC_34416
start_playback_recorded_car 272@ {path} 248
switch_car_siren 272@ {state} True
if 
  not is_char_dead 274@
goto_if_false @FINALEC_34387
task_drive_by 274@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_34387
278@ = add_blip_for_car 272@
change_blip_display 278@ {display} BlipDisplay.BlipOnly
293@ = 1
294@ = 1

:FINALEC_34416
208@ = create_car 596 {x} 2323.3181 {y} -1656.886 {z} 12.53
set_car_heading 208@ {heading} 272.4
set_car_only_damaged_by_player 208@ {state} True
38@ = create_char_inside_car 208@ {pedType} PedType.Mission1 {modelId} 280
set_char_decision_maker 38@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 38@ {state} True
39@ = create_char_as_passenger 208@ {pedType} PedType.Mission1 {modelId} 280 {seat} SeatId.BikeRear
set_char_decision_maker 39@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 39@ {state} True
give_weapon_to_char 39@ {weaponType} WeaponType.MicroUzi {ammo} 99999
set_car_proofs 208@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
289@ = 6

:FINALEC_34548
if 
  289@ == 6
goto_if_false @FINALEC_34723
if 
  locate_car_2d 152@ {x} 2343.45 {y} -1658.96 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_34723
206@ = 4
if 
  not is_car_dead 208@
goto_if_false @FINALEC_34716
start_playback_recorded_car 208@ {path} 247
if 
  not is_char_dead 39@
goto_if_false @FINALEC_34687
task_drive_by 39@ {targetChar} -1 {targetVehicle} 153@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 300.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 50

:FINALEC_34687
238@ = add_blip_for_car 208@
change_blip_display 238@ {display} BlipDisplay.BlipOnly
251@ = 1
262@ = 1

:FINALEC_34716
289@ = 7

:FINALEC_34723
if 
  289@ == 7
goto_if_false @FINALEC_34793
if 
  locate_car_2d 152@ {x} 2431.0 {y} -1644.0 {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @FINALEC_34793
$finalerails_fcflag = 3
289@ = 8

:FINALEC_34793
if 
  292@ == 1
goto_if_false @FINALEC_35678
if 
  locate_car_2d 153@ {x} 2215.8999 {y} -1791.8199 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_35678
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
delete_object 165@
delete_object 169@
165@ = create_object #LA_FUCKCAR2 {x} 2237.0439 {y} -1744.5 {z} 12.5425
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 1.2003
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2239.1541 {y} -1747.326 {z} 12.542
set_char_heading 223@ {heading} 329.17
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 223@ {state} True
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
167@ = create_object #LA_FUCKCAR2 {x} 2297.8911 {y} -1742.105 {z} 12.5469
set_object_dynamic 167@ {state} True
set_object_heading 167@ {heading} 185.7601
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2300.6189 {y} -1745.254 {z} 12.5469
set_char_heading 224@ {heading} 311.22
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 224@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_35183
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_35183
169@ = create_object #LA_FUCKCAR2 {x} 2355.793 {y} -1734.063 {z} 12.3828
set_object_dynamic 169@ {state} True
set_object_heading 169@ {heading} 1.2003
225@ = create_char PedType.Mission1 {modelId} 7 {x} 2357.7161 {y} -1730.051 {z} 12.3828
set_char_heading 225@ {heading} 329.17
give_weapon_to_char 225@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 225@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 225@ {health} 10
set_char_decision_maker 225@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 225@ {state} True
set_lvar_int_to_lvar_int 102@ = 225@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
226@ = create_char PedType.Mission1 {modelId} 7 {x} 2365.0669 {y} -1758.149 {z} 12.5469
set_char_heading 226@ {heading} 329.17
give_weapon_to_char 226@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 226@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 226@ {health} 10
set_char_decision_maker 226@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 226@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_35447
set_lvar_int_to_lvar_int 102@ = 226@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_35447
227@ = create_char PedType.Mission1 {modelId} 7 {x} 2308.3191 {y} -1721.584 {z} 12.742
set_char_heading 227@ {heading} 329.17
give_weapon_to_char 227@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 227@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 227@ {health} 10
set_char_decision_maker 227@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 227@ {state} True
set_lvar_int_to_lvar_int 102@ = 227@
set_lvar_int_to_var_int 107@ = $scplayer
gosub @FINALEC_57211
228@ = create_char PedType.Mission1 {modelId} 7 {x} 2308.3191 {y} -1721.584 {z} 12.742
set_char_heading 228@ {heading} 329.17
give_weapon_to_char 228@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 228@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 228@ {health} 10
set_char_decision_maker 228@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 228@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_35671
set_lvar_int_to_lvar_int 102@ = 228@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_35671
292@ = 2

:FINALEC_35678
if 
  292@ == 2
goto_if_false @FINALEC_35786
if 
  locate_car_2d 153@ {x} 2342.5601 {y} -1603.76 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_35786
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
delete_char 227@
delete_char 228@
delete_object 165@
delete_object 167@
delete_object 169@
292@ = 3

:FINALEC_35786
if 
  292@ == 2
goto_if_false @FINALEC_36129
if 
  locate_car_2d 153@ {x} 2430.8101 {y} -1595.72 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_36129
165@ = create_object #LA_FUCKCAR2 {x} 2430.76 {y} -1653.03 {z} 25.34
set_object_dynamic 165@ {state} True
set_object_heading 165@ {heading} 268.0927
223@ = create_char PedType.Mission1 {modelId} 7 {x} 2426.7 {y} -1653.77 {z} 25.595
set_char_heading 223@ {heading} 4.29
give_weapon_to_char 223@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 223@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 223@ {health} 10
set_char_decision_maker 223@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 223@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_36002
set_lvar_int_to_lvar_int 102@ = 223@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_36002
224@ = create_char PedType.Mission1 {modelId} 7 {x} 2435.959 {y} -1653.318 {z} 25.64
set_char_heading 224@ {heading} 0.0
give_weapon_to_char 224@ {weaponType} WeaponType.Molotov {ammo} 9999
set_char_proofs 224@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_char_health 224@ {health} 10
set_char_decision_maker 224@ {handleOrTemplate} 97@
set_char_only_damaged_by_player 224@ {state} True
if 
  not is_char_dead 49@
goto_if_false @FINALEC_36122
set_lvar_int_to_lvar_int 102@ = 224@
set_lvar_int_to_lvar_int 107@ = 49@
gosub @FINALEC_57211

:FINALEC_36122
292@ = 3

:FINALEC_36129
if 
  8 > 289@
goto_if_false @FINALEC_37104
if 
  290@ == 2
goto_if_false @FINALEC_37104
gosub @FINALEC_57065
if 
  204@ == 0
goto_if_false @FINALEC_36239
if 
  203@ == 0
goto_if_false @FINALEC_36239
set_lvar_int_to_constant 187@ = 33288
set_lvar_text_label 188@s = 'ROT4_TC'
gosub @FINALEC_57023

:FINALEC_36239
if 
  204@ == 0
goto_if_false @FINALEC_36306
if 
  203@ == 1
goto_if_false @FINALEC_36306
set_lvar_int_to_constant 187@ = 33287
set_lvar_text_label 188@s = 'ROT4_TB'
gosub @FINALEC_57023

:FINALEC_36306
if 
  204@ == 0
goto_if_false @FINALEC_36373
if 
  203@ == 2
goto_if_false @FINALEC_36373
set_lvar_int_to_constant 187@ = 33293
set_lvar_text_label 188@s = 'ROT4_TH'
gosub @FINALEC_57023

:FINALEC_36373
if 
  206@ == 1
goto_if_false @FINALEC_36458
if 
  204@ == 0
goto_if_false @FINALEC_36458
if 
  203@ == 3
goto_if_false @FINALEC_36458
set_lvar_int_to_constant 187@ = 33265
set_lvar_text_label 188@s = 'ROT4_NR'
gosub @FINALEC_57023

:FINALEC_36458
if 
  206@ == 2
goto_if_false @FINALEC_36543
if 
  204@ == 0
goto_if_false @FINALEC_36543
if 
  203@ == 4
goto_if_false @FINALEC_36543
set_lvar_int_to_constant 187@ = 33266
set_lvar_text_label 188@s = 'ROT4_NS'
gosub @FINALEC_57023

:FINALEC_36543
if 
  204@ == 0
goto_if_false @FINALEC_36610
if 
  203@ == 5
goto_if_false @FINALEC_36610
set_lvar_int_to_constant 187@ = 33294
set_lvar_text_label 188@s = 'ROT4_TJ'
gosub @FINALEC_57023

:FINALEC_36610
if 
  206@ == 3
goto_if_false @FINALEC_36695
if 
  204@ == 0
goto_if_false @FINALEC_36695
if 
  203@ == 6
goto_if_false @FINALEC_36695
set_lvar_int_to_constant 187@ = 33285
set_lvar_text_label 188@s = 'ROT4_SB'
gosub @FINALEC_57023

:FINALEC_36695
if 
  204@ == 0
goto_if_false @FINALEC_36762
if 
  203@ == 7
goto_if_false @FINALEC_36762
set_lvar_int_to_constant 187@ = 33273
set_lvar_text_label 188@s = 'ROT4_PC'
gosub @FINALEC_57023

:FINALEC_36762
if 
  206@ == 4
goto_if_false @FINALEC_36847
if 
  204@ == 0
goto_if_false @FINALEC_36847
if 
  203@ == 8
goto_if_false @FINALEC_36847
set_lvar_int_to_constant 187@ = 33269
set_lvar_text_label 188@s = 'ROT4_OA'
gosub @FINALEC_57023

:FINALEC_36847
if 
  204@ == 0
goto_if_false @FINALEC_36914
if 
  203@ == 9
goto_if_false @FINALEC_36914
set_lvar_int_to_constant 187@ = 33270
set_lvar_text_label 188@s = 'ROT4_OD'
gosub @FINALEC_57023

:FINALEC_36914
if 
  206@ == 4
goto_if_false @FINALEC_37037
if 
  locate_char_any_means_2d $scplayer {x} 2431.3201 {y} -1528.48 {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @FINALEC_37037
if 
  204@ == 0
goto_if_false @FINALEC_37037
if 
  203@ == 10
goto_if_false @FINALEC_37037
set_lvar_int_to_constant 187@ = 33279
set_lvar_text_label 188@s = 'ROT4_RA'
gosub @FINALEC_57023

:FINALEC_37037
if 
  204@ == 0
goto_if_false @FINALEC_37104
if 
  203@ == 11
goto_if_false @FINALEC_37104
set_lvar_int_to_constant 187@ = 33282
set_lvar_text_label 188@s = 'ROT4_RD'
gosub @FINALEC_57023

:FINALEC_37104
if 
  260@ == 1
goto_if_false @FINALEC_37256
if 
  not is_car_dead 217@
goto_if_false @FINALEC_37256
if 
  not is_char_dead 154@
goto_if_false @FINALEC_37161
goto @FINALEC_37256

:FINALEC_37161
if 
  not is_char_dead 155@
goto_if_false @FINALEC_37244
if 
  is_char_in_car 155@ {vehicle} 217@
goto_if_false @FINALEC_37237
219@ = get_driver_of_car 217@
if 
  219@ == -1
goto_if_false @FINALEC_37237
task_shuffle_to_next_car_seat 155@ {vehicle} 217@
260@ = 2

:FINALEC_37237
goto @FINALEC_37256

:FINALEC_37244
stop_playback_recorded_car 217@
260@ = 2

:FINALEC_37256
if 
  260@ == 2
goto_if_false @FINALEC_37302
if 
  is_char_dead 155@
goto_if_false @FINALEC_37302
stop_playback_recorded_car 217@
260@ = 3

:FINALEC_37302
if 
  249@ == 1
goto_if_false @FINALEC_37418
if 
  not is_car_dead 217@
goto_if_false @FINALEC_37386
if 
  not is_playback_going_on_for_car 217@
goto_if_false @FINALEC_37379
mark_car_as_no_longer_needed 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
remove_blip 247@
249@ = 2

:FINALEC_37379
goto @FINALEC_37418

:FINALEC_37386
stop_playback_recorded_car 217@
mark_char_as_no_longer_needed 154@
mark_char_as_no_longer_needed 155@
mark_car_as_no_longer_needed 217@
remove_blip 247@
249@ = 2

:FINALEC_37418
if 
  261@ == 1
goto_if_false @FINALEC_37570
if 
  not is_car_dead 218@
goto_if_false @FINALEC_37570
if 
  not is_char_dead 156@
goto_if_false @FINALEC_37475
goto @FINALEC_37570

:FINALEC_37475
if 
  not is_char_dead 207@
goto_if_false @FINALEC_37558
if 
  is_char_in_car 207@ {vehicle} 218@
goto_if_false @FINALEC_37551
219@ = get_driver_of_car 218@
if 
  219@ == -1
goto_if_false @FINALEC_37551
task_shuffle_to_next_car_seat 207@ {vehicle} 218@
261@ = 2

:FINALEC_37551
goto @FINALEC_37570

:FINALEC_37558
stop_playback_recorded_car 218@
261@ = 2

:FINALEC_37570
if 
  261@ == 2
goto_if_false @FINALEC_37616
if 
  is_char_dead 207@
goto_if_false @FINALEC_37616
stop_playback_recorded_car 218@
261@ = 3

:FINALEC_37616
if 
  250@ == 1
goto_if_false @FINALEC_37732
if 
  not is_car_dead 218@
goto_if_false @FINALEC_37700
if 
  not is_playback_going_on_for_car 218@
goto_if_false @FINALEC_37693
mark_car_as_no_longer_needed 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
remove_blip 248@
250@ = 2

:FINALEC_37693
goto @FINALEC_37732

:FINALEC_37700
stop_playback_recorded_car 218@
mark_char_as_no_longer_needed 156@
mark_char_as_no_longer_needed 207@
mark_car_as_no_longer_needed 218@
remove_blip 248@
250@ = 2

:FINALEC_37732
if 
  294@ == 1
goto_if_false @FINALEC_37884
if 
  not is_car_dead 272@
goto_if_false @FINALEC_37884
if 
  not is_char_dead 273@
goto_if_false @FINALEC_37789
goto @FINALEC_37884

:FINALEC_37789
if 
  not is_char_dead 274@
goto_if_false @FINALEC_37872
if 
  is_char_in_car 274@ {vehicle} 272@
goto_if_false @FINALEC_37865
219@ = get_driver_of_car 272@
if 
  219@ == -1
goto_if_false @FINALEC_37865
task_shuffle_to_next_car_seat 274@ {vehicle} 272@
294@ = 2

:FINALEC_37865
goto @FINALEC_37884

:FINALEC_37872
stop_playback_recorded_car 272@
294@ = 2

:FINALEC_37884
if 
  294@ == 2
goto_if_false @FINALEC_37930
if 
  is_char_dead 274@
goto_if_false @FINALEC_37930
stop_playback_recorded_car 272@
294@ = 3

:FINALEC_37930
if 
  293@ == 1
goto_if_false @FINALEC_38046
if 
  not is_car_dead 272@
goto_if_false @FINALEC_38014
if 
  not is_playback_going_on_for_car 272@
goto_if_false @FINALEC_38007
mark_car_as_no_longer_needed 272@
mark_char_as_no_longer_needed 273@
mark_char_as_no_longer_needed 274@
remove_blip 278@
293@ = 2

:FINALEC_38007
goto @FINALEC_38046

:FINALEC_38014
stop_playback_recorded_car 272@
mark_char_as_no_longer_needed 273@
mark_char_as_no_longer_needed 274@
mark_car_as_no_longer_needed 272@
remove_blip 278@
293@ = 2

:FINALEC_38046
if 
  296@ == 1
goto_if_false @FINALEC_38198
if 
  not is_car_dead 275@
goto_if_false @FINALEC_38198
if 
  not is_char_dead 276@
goto_if_false @FINALEC_38103
goto @FINALEC_38198

:FINALEC_38103
if 
  not is_char_dead 277@
goto_if_false @FINALEC_38186
if 
  is_char_in_car 277@ {vehicle} 275@
goto_if_false @FINALEC_38179
219@ = get_driver_of_car 275@
if 
  219@ == -1
goto_if_false @FINALEC_38179
task_shuffle_to_next_car_seat 277@ {vehicle} 275@
296@ = 2

:FINALEC_38179
goto @FINALEC_38198

:FINALEC_38186
stop_playback_recorded_car 275@
296@ = 2

:FINALEC_38198
if 
  296@ == 2
goto_if_false @FINALEC_38244
if 
  is_char_dead 277@
goto_if_false @FINALEC_38244
stop_playback_recorded_car 275@
296@ = 3

:FINALEC_38244
if 
  295@ == 1
goto_if_false @FINALEC_38360
if 
  not is_car_dead 275@
goto_if_false @FINALEC_38328
if 
  not is_playback_going_on_for_car 275@
goto_if_false @FINALEC_38321
mark_car_as_no_longer_needed 275@
mark_char_as_no_longer_needed 276@
mark_char_as_no_longer_needed 277@
remove_blip 279@
295@ = 2

:FINALEC_38321
goto @FINALEC_38360

:FINALEC_38328
stop_playback_recorded_car 275@
mark_char_as_no_longer_needed 276@
mark_char_as_no_longer_needed 277@
mark_car_as_no_longer_needed 275@
remove_blip 279@
295@ = 2

:FINALEC_38360
if 
  262@ == 1
goto_if_false @FINALEC_38512
if 
  not is_car_dead 208@
goto_if_false @FINALEC_38512
if 
  not is_char_dead 38@
goto_if_false @FINALEC_38417
goto @FINALEC_38512

:FINALEC_38417
if 
  not is_char_dead 39@
goto_if_false @FINALEC_38500
if 
  is_char_in_car 39@ {vehicle} 208@
goto_if_false @FINALEC_38493
219@ = get_driver_of_car 208@
if 
  219@ == -1
goto_if_false @FINALEC_38493
task_shuffle_to_next_car_seat 39@ {vehicle} 208@
262@ = 2

:FINALEC_38493
goto @FINALEC_38512

:FINALEC_38500
stop_playback_recorded_car 208@
262@ = 2

:FINALEC_38512
if 
  262@ == 2
goto_if_false @FINALEC_38558
if 
  is_char_dead 39@
goto_if_false @FINALEC_38558
stop_playback_recorded_car 208@
262@ = 3

:FINALEC_38558
if 
  251@ == 1
goto_if_false @FINALEC_38674
if 
  not is_car_dead 208@
goto_if_false @FINALEC_38642
if 
  not is_playback_going_on_for_car 208@
goto_if_false @FINALEC_38635
mark_car_as_no_longer_needed 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
remove_blip 238@
251@ = 2

:FINALEC_38635
goto @FINALEC_38674

:FINALEC_38642
stop_playback_recorded_car 208@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_car_as_no_longer_needed 208@
remove_blip 238@
251@ = 2

:FINALEC_38674
if 
  267@ == 1
goto_if_false @FINALEC_38886
if 
  not is_car_dead 213@
goto_if_false @FINALEC_38886
if 
  not is_char_dead 42@
goto_if_false @FINALEC_38731
goto @FINALEC_38886

:FINALEC_38731
if 
  not is_char_dead 43@
goto_if_false @FINALEC_38844
if 
  is_char_in_car 43@ {vehicle} 213@
goto_if_false @FINALEC_38837
219@ = get_driver_of_car 213@
if 
  219@ == -1
goto_if_false @FINALEC_38837
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 43@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 43@ {vehicle} 213@
267@ = 2

:FINALEC_38837
goto @FINALEC_38886

:FINALEC_38844
set_car_forward_speed 213@ {forwardSpeed} 18.0
stop_playback_recorded_car 213@
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003
267@ = 2

:FINALEC_38886
if 
  267@ == 2
goto_if_false @FINALEC_38978
if 
  is_char_dead 43@
goto_if_false @FINALEC_38978
stop_playback_recorded_car 213@
if 
  not is_car_dead 213@
goto_if_false @FINALEC_38971
set_car_forward_speed 213@ {forwardSpeed} 18.0
set_car_rotation_velocity 213@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_38971
267@ = 3

:FINALEC_38978
if 
  256@ == 1
goto_if_false @FINALEC_39065
if 
  is_char_dead 42@
goto_if_false @FINALEC_39065
if or
  is_char_dead 43@
  is_car_dead 213@
goto_if_false @FINALEC_39065
stop_playback_recorded_car 213@
remove_blip 243@
mark_car_as_no_longer_needed 213@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
256@ = 2

:FINALEC_39065
if 
  268@ == 1
goto_if_false @FINALEC_39277
if 
  not is_car_dead 214@
goto_if_false @FINALEC_39277
if 
  not is_char_dead 44@
goto_if_false @FINALEC_39122
goto @FINALEC_39277

:FINALEC_39122
if 
  not is_char_dead 45@
goto_if_false @FINALEC_39235
if 
  is_char_in_car 45@ {vehicle} 214@
goto_if_false @FINALEC_39228
219@ = get_driver_of_car 214@
if 
  219@ == -1
goto_if_false @FINALEC_39228
$player_x, $player_y, $player_z = get_car_coordinates 153@
warp_char_from_car_to_coord 45@ {x} $player_x {y} $player_y {z} -10.0
warp_char_into_car 45@ {vehicle} 214@
268@ = 2

:FINALEC_39228
goto @FINALEC_39277

:FINALEC_39235
set_car_forward_speed 214@ {forwardSpeed} 18.0
stop_playback_recorded_car 214@
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003
268@ = 2

:FINALEC_39277
if 
  268@ == 2
goto_if_false @FINALEC_39369
if 
  is_char_dead 45@
goto_if_false @FINALEC_39369
stop_playback_recorded_car 214@
if 
  not is_car_dead 214@
goto_if_false @FINALEC_39362
set_car_forward_speed 214@ {forwardSpeed} 18.0
set_car_rotation_velocity 214@ {x} 3.5 {y} 7.3999 {z} 8.1003

:FINALEC_39362
268@ = 3

:FINALEC_39369
if 
  257@ == 1
goto_if_false @FINALEC_39456
if 
  is_char_dead 44@
goto_if_false @FINALEC_39456
if or
  is_char_dead 45@
  is_car_dead 214@
goto_if_false @FINALEC_39456
stop_playback_recorded_car 214@
remove_blip 244@
mark_car_as_no_longer_needed 214@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
257@ = 2

:FINALEC_39456
if 
  $finalerails_fcflag == 3
goto_if_false @FINALEC_57016
if 
  288@ == 0
goto_if_false @FINALEC_39957
if 
  not is_car_dead 153@
goto_if_false @FINALEC_39957
if 
  not is_car_dead 152@
goto_if_false @FINALEC_39957
switch_widescreen True
set_player_control $player1 {state} False
set_car_proofs 153@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
if 
  is_playback_going_on_for_car 152@
goto_if_false @FINALEC_39571
stop_playback_recorded_car 152@

:FINALEC_39571
stop_playback_recorded_car 152@
if 
  is_playback_going_on_for_car 153@
goto_if_false @FINALEC_39597
stop_playback_recorded_car 153@

:FINALEC_39597
stop_playback_recorded_car 153@
set_fixed_camera_position 2453.8611 {y} -1651.519 {z} 11.6415 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2453.1311 {y} -1651.287 {z} 12.2845 {switchStyle} SwitchType.JumpCut
start_playback_recorded_car 152@ {path} 229
set_la_riots False
clear_area 2453.8611 {y} -1651.519 {z} 11.6415 {radius} 100.0 {clearParticles} True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_car_coordinates 153@ {x} 2431.8799 {y} -1600.34 {z} 25.26
delete_char $sweet
if 
  is_char_in_any_car $scplayer
goto_if_false @FINALEC_39771
warp_char_from_car_to_coord $scplayer {x} 2422.97 {y} -1607.87 {z} 25.55
goto @FINALEC_39791

:FINALEC_39771
set_char_coordinates $scplayer {x} 2422.97 {y} -1607.87 {z} 25.55

:FINALEC_39791
TIMERA = 0
TIMERB = 0
delete_car 153@
delete_car 213@
delete_car 214@
delete_car 217@
delete_car 218@
delete_car 272@
delete_car 275@
delete_car 208@
delete_object 165@
delete_object 167@
delete_object 169@
delete_char 42@
delete_char 43@
delete_char 44@
delete_char 45@
delete_char 154@
delete_char 155@
delete_char 156@
delete_char 207@
delete_char 273@
delete_char 274@
delete_char 276@
delete_char 277@
delete_char 223@
delete_char 224@
delete_char 225@
delete_char 226@
delete_char 227@
delete_char 228@
288@ = 1

:FINALEC_39957
if 
  not is_car_dead 152@
goto_if_false @FINALEC_40907
if 
  288@ == 1
goto_if_false @FINALEC_40030
if 
  TIMERB > 1500
goto_if_false @FINALEC_40030
clear_prints 
clear_mission_audio MissionAudioSlot.Slot1
set_time_scale 0.8
288@ = 2

:FINALEC_40030
if 
  288@ == 2
goto_if_false @FINALEC_40081
if 
  TIMERB > 1700
goto_if_false @FINALEC_40081
set_time_scale 0.7
288@ = 3

:FINALEC_40081
if 
  288@ == 3
goto_if_false @FINALEC_40132
if 
  TIMERB > 1900
goto_if_false @FINALEC_40132
set_time_scale 0.6
288@ = 4

:FINALEC_40132
if 
  288@ == 4
goto_if_false @FINALEC_40183
if 
  TIMERB > 2100
goto_if_false @FINALEC_40183
set_time_scale 0.5
288@ = 5

:FINALEC_40183
if 
  288@ == 5
goto_if_false @FINALEC_40234
if 
  TIMERB > 2300
goto_if_false @FINALEC_40234
set_time_scale 0.4
288@ = 6

:FINALEC_40234
if 
  288@ == 6
goto_if_false @FINALEC_40285
if 
  TIMERB > 2500
goto_if_false @FINALEC_40285
set_time_scale 0.3
288@ = 7

:FINALEC_40285
if 
  288@ == 7
goto_if_false @FINALEC_40336
if 
  TIMERB > 2700
goto_if_false @FINALEC_40336
set_time_scale 0.2
288@ = 8

:FINALEC_40336
if 
  288@ == 8
goto_if_false @FINALEC_40503
if 
  TIMERB > 3360
goto_if_false @FINALEC_40503
280@ = create_fx_system_on_car "PRT_SPARK" {vehicle} 152@ {xOffset} -1.69 {yOffset} 3.607 {zOffset} -0.271 {ignoreBoundingChecks} True
play_fx_system 280@
281@ = create_fx_system_on_car "PRT_SPARK" {vehicle} 152@ {xOffset} -1.137 {yOffset} 3.674 {zOffset} -0.271 {ignoreBoundingChecks} True
play_fx_system 281@
282@ = create_fx_system_on_car "PRT_SPARK" {vehicle} 152@ {xOffset} -1.076 {yOffset} 3.706 {zOffset} -0.271 {ignoreBoundingChecks} True
play_fx_system 282@
288@ = 9

:FINALEC_40503
if 
  288@ == 9
goto_if_false @FINALEC_40907
if 
  TIMERB > 4250
goto_if_false @FINALEC_40907
set_fixed_camera_position 2463.7461 {y} -1663.425 {z} 12.4388 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2462.8311 {y} -1663.022 {z} 12.4479 {switchStyle} SwitchType.JumpCut
set_time_scale 0.7
kill_fx_system 280@
kill_fx_system 281@
kill_fx_system 282@
283@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -1.066 {yOffset} 3.027 {zOffset} 1.4 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 283@
284@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -1.066 {yOffset} 2.444 {zOffset} 1.4 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 284@
285@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -1.066 {yOffset} 1.872 {zOffset} 1.4 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 285@
286@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -0.462 {yOffset} 0.761 {zOffset} 1.7 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 286@
287@ = create_fx_system_on_car_with_direction "PRT_SPARK" {vehicle} 152@ {xOffset} -0.462 {yOffset} 0.197 {zOffset} 1.7 {xDirection} 1.0 {yDirection} 0.0 {zDirection} 0.4 {ignoreBoundingChecks} True
play_fx_system 287@
TIMERA = 0
288@ = 10

:FINALEC_40907
if 
  288@ == 10
goto_if_false @FINALEC_57016
if 
  TIMERA > 3000
goto_if_false @FINALEC_57016
set_time_scale 1.0
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FINALEC_40966
if 
  get_fading_status 
goto_if_false @FINALEC_40990
wait 0
goto @FINALEC_40966

:FINALEC_40990
add_score $player1 {money} 250000
clear_onscreen_counter $carhealth_fc
delete_char $sweet
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 544
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 533
remove_animation "FINALE"
remove_animation "FINALE2"
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 576
delete_car 152@
delete_char 49@
kill_fx_system 280@
kill_fx_system 281@
kill_fx_system 282@
kill_fx_system 283@
kill_fx_system 284@
kill_fx_system 285@
kill_fx_system 286@
kill_fx_system 287@
load_scene_in_direction 2445.6399 {y} -1650.53 {z} 14.63 {heading} 0.0
load_cutscene 'RIOT4E1'

:FINALEC_41194
if 
  not has_cutscene_loaded 
goto_if_false @FINALEC_41218
wait 0
goto @FINALEC_41194

:FINALEC_41218
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEC_41227
if 
  not has_cutscene_finished 
goto_if_false @FINALEC_41251
wait 0
goto @FINALEC_41227

:FINALEC_41251
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEC_41266
if 
  get_fading_status 
goto_if_false @FINALEC_41290
wait 0
goto @FINALEC_41266

:FINALEC_41290
if 
  not was_cutscene_skipped 
goto_if_false @FINALEC_41410
load_cutscene 'RIOT4E2'

:FINALEC_41314
if 
  not has_cutscene_loaded 
goto_if_false @FINALEC_41338
wait 0
goto @FINALEC_41314

:FINALEC_41338
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEC_41347
if 
  not has_cutscene_finished 
goto_if_false @FINALEC_41371
wait 0
goto @FINALEC_41347

:FINALEC_41371
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEC_41386
if 
  get_fading_status 
goto_if_false @FINALEC_41410
wait 0
goto @FINALEC_41386

:FINALEC_41410
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:FINALEC_41425
if 
  get_fading_status 
goto_if_false @FINALEC_41449
wait 0
goto @FINALEC_41425

:FINALEC_41449
set_area_visible 3
load_cutscene 'EPILOG'

:FINALEC_41464
if 
  not has_cutscene_loaded 
goto_if_false @FINALEC_41488
wait 0
goto @FINALEC_41464

:FINALEC_41488
start_cutscene 
do_fade 1000 {direction} Fade.In

:FINALEC_41497
if 
  not has_cutscene_finished 
goto_if_false @FINALEC_41521
wait 0
goto @FINALEC_41497

:FINALEC_41521
clear_cutscene 
set_player_control $player1 {state} False
do_fade 0 {direction} Fade.Out

:FINALEC_41536
if 
  get_fading_status 
goto_if_false @FINALEC_41560
wait 0
goto @FINALEC_41536

:FINALEC_41560
set_area_visible 0
set_player_control $player1 {state} False
switch_widescreen True
set_char_coordinates $scplayer {x} 2523.9751 {y} -1749.962 {z} 58.702
freeze_char_position $scplayer {state} True
set_car_density_multiplier 2.0
set_ped_density_multiplier 1.5
set_la_riots False
load_scene 2514.668 {y} -1733.4611 {z} 56.3075
force_weather_now WeatherType.SunnySmogLa
set_time_of_day 12 {minutes} 0
preload_beat_track 9

:FINALEC_41651
if 
  298@ <> 2
goto_if_false @FINALEC_41685
wait 0
298@ = get_beat_track_status 
goto @FINALEC_41651

:FINALEC_41685
play_beat_track 
set_music_does_fade False
set_darkness_effect True {pitchBlack} -1
start_credits 
do_fade 250 {direction} Fade.In
camera_reset_new_scriptables 
camera_set_vector_move 2523.9751 {fromY} -1749.962 {fromZ} 57.202 {toX} 2514.887 {toY} -1733.851 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2523.7549 {fromY} -1749.572 {fromZ} 56.3075 {toX} 2514.668 {toY} -1733.4611 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_41782
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_41813
wait 0
gosub @FINALEC_57174
goto @FINALEC_41782

:FINALEC_41813
camera_set_vector_move 2514.887 {fromY} -1733.851 {fromZ} 57.202 {toX} 2503.344 {toY} -1713.386 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2514.668 {fromY} -1733.4611 {fromZ} 56.3075 {toX} 2503.124 {toY} -1712.996 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_41887
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_41918
wait 0
gosub @FINALEC_57174
goto @FINALEC_41887

:FINALEC_41918
camera_set_vector_move 2503.344 {fromY} -1713.386 {fromZ} 57.202 {toX} 2491.5549 {toY} -1692.485 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2503.124 {fromY} -1712.996 {fromZ} 56.3075 {toX} 2491.335 {toY} -1692.0959 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_41992
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42023
wait 0
gosub @FINALEC_57174
goto @FINALEC_41992

:FINALEC_42023
camera_set_vector_move 2491.5549 {fromY} -1692.485 {fromZ} 57.202 {toX} 2479.7661 {toY} -1671.585 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2491.335 {fromY} -1692.0959 {fromZ} 56.3075 {toX} 2479.5459 {toY} -1671.196 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42097
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42128
wait 0
gosub @FINALEC_57174
goto @FINALEC_42097

:FINALEC_42128
camera_set_vector_move 2479.7661 {fromY} -1671.585 {fromZ} 57.202 {toX} 2467.731 {toY} -1650.249 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2479.5459 {fromY} -1671.196 {fromZ} 56.3075 {toX} 2467.511 {toY} -1649.86 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42202
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42233
wait 0
gosub @FINALEC_57174
goto @FINALEC_42202

:FINALEC_42233
camera_set_vector_move 2467.731 {fromY} -1650.249 {fromZ} 57.202 {toX} 2455.4509 {toY} -1628.478 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2467.511 {fromY} -1649.86 {fromZ} 56.3075 {toX} 2455.231 {toY} -1628.089 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42307
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42338
wait 0
gosub @FINALEC_57174
goto @FINALEC_42307

:FINALEC_42338
camera_set_vector_move 2455.4509 {fromY} -1628.478 {fromZ} 57.202 {toX} 2445.135 {toY} -1610.1899 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2455.231 {fromY} -1628.089 {fromZ} 56.3075 {toX} 2444.916 {toY} -1609.801 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42412
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42443
wait 0
gosub @FINALEC_57174
goto @FINALEC_42412

:FINALEC_42443
camera_set_vector_move 2445.135 {fromY} -1610.1899 {fromZ} 57.202 {toX} 2433.8379 {toY} -1590.161 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2444.916 {fromY} -1609.801 {fromZ} 56.3075 {toX} 2433.6179 {toY} -1589.771 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42517
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42548
wait 0
gosub @FINALEC_57174
goto @FINALEC_42517

:FINALEC_42548
camera_set_vector_move 2433.8379 {fromY} -1590.161 {fromZ} 57.202 {toX} 2423.2771 {toY} -1571.437 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2433.6179 {fromY} -1589.771 {fromZ} 56.3075 {toX} 2423.0569 {toY} -1571.048 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42622
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42653
wait 0
gosub @FINALEC_57174
goto @FINALEC_42622

:FINALEC_42653
camera_set_vector_move 2423.2771 {fromY} -1571.437 {fromZ} 57.202 {toX} 2412.7161 {toY} -1552.714 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2423.0569 {fromY} -1571.048 {fromZ} 56.3075 {toX} 2412.4961 {toY} -1552.325 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42727
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42758
wait 0
gosub @FINALEC_57174
goto @FINALEC_42727

:FINALEC_42758
camera_set_vector_move 2412.7161 {fromY} -1552.714 {fromZ} 57.202 {toX} 2401.9089 {toY} -1533.5551 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2412.4961 {fromY} -1552.325 {fromZ} 56.3075 {toX} 2401.689 {toY} -1533.166 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42832
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42863
wait 0
gosub @FINALEC_57174
goto @FINALEC_42832

:FINALEC_42863
camera_set_vector_move 2401.9089 {fromY} -1533.5551 {fromZ} 57.202 {toX} 2390.6111 {toY} -1513.526 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2401.689 {fromY} -1533.166 {fromZ} 56.3075 {toX} 2390.3911 {toY} -1513.136 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_42937
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_42968
wait 0
gosub @FINALEC_57174
goto @FINALEC_42937

:FINALEC_42968
camera_set_vector_move 2390.6111 {fromY} -1513.526 {fromZ} 57.202 {toX} 2379.313 {toY} -1493.496 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2390.3911 {fromY} -1513.136 {fromZ} 56.3075 {toX} 2379.094 {toY} -1493.1071 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43042
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43073
wait 0
gosub @FINALEC_57174
goto @FINALEC_43042

:FINALEC_43073
camera_set_vector_move 2379.313 {fromY} -1493.496 {fromZ} 57.202 {toX} 2367.2791 {toY} -1472.161 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2379.094 {fromY} -1493.1071 {fromZ} 56.3075 {toX} 2367.0591 {toY} -1471.771 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43147
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43178
wait 0
gosub @FINALEC_57174
goto @FINALEC_43147

:FINALEC_43178
camera_set_vector_move 2367.2791 {fromY} -1472.161 {fromZ} 57.202 {toX} 2355.981 {toY} -1452.131 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2367.0591 {fromY} -1471.771 {fromZ} 56.3075 {toX} 2355.761 {toY} -1451.741 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43252
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43283
wait 0
gosub @FINALEC_57174
goto @FINALEC_43252

:FINALEC_43283
camera_set_vector_move 2355.981 {fromY} -1452.131 {fromZ} 57.202 {toX} 2343.946 {toY} -1430.795 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2355.761 {fromY} -1451.741 {fromZ} 56.3075 {toX} 2343.7261 {toY} -1430.406 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43357
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43388
wait 0
gosub @FINALEC_57174
goto @FINALEC_43357

:FINALEC_43388
camera_set_vector_move 2343.946 {fromY} -1430.795 {fromZ} 57.202 {toX} 2332.4031 {toY} -1410.33 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2343.7261 {fromY} -1430.406 {fromZ} 56.3075 {toX} 2332.1831 {toY} -1409.941 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43462
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43493
wait 0
gosub @FINALEC_57174
goto @FINALEC_43462

:FINALEC_43493
camera_set_vector_move 2332.4031 {fromY} -1410.33 {fromZ} 57.202 {toX} 2321.5959 {toY} -1391.172 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2332.1831 {fromY} -1409.941 {fromZ} 56.3075 {toX} 2321.376 {toY} -1390.782 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43567
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43598
wait 0
gosub @FINALEC_57174
goto @FINALEC_43567

:FINALEC_43598
camera_set_vector_move 2321.5959 {fromY} -1391.172 {fromZ} 57.202 {toX} 2312.0171 {toY} -1374.1899 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2321.376 {fromY} -1390.782 {fromZ} 56.3075 {toX} 2311.7981 {toY} -1373.8 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43672
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43703
wait 0
gosub @FINALEC_57174
goto @FINALEC_43672

:FINALEC_43703
do_fade 6000 {direction} Fade.Out
camera_set_vector_move 2312.0171 {fromY} -1374.1899 {fromZ} 57.202 {toX} 2300.9651 {toY} -1354.5959 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2311.7981 {fromY} -1373.8 {fromZ} 56.3075 {toX} 2300.7451 {toY} -1354.2061 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43784
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43815
wait 0
gosub @FINALEC_57174
goto @FINALEC_43784

:FINALEC_43815
camera_set_vector_move 2300.9651 {fromY} -1354.5959 {fromZ} 57.202 {toX} 2289.667 {toY} -1334.566 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2300.7451 {fromY} -1354.2061 {fromZ} 56.3075 {toX} 2289.448 {toY} -1334.177 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43889
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_43920
wait 0
gosub @FINALEC_57174
goto @FINALEC_43889

:FINALEC_43920
camera_set_vector_move 2289.667 {fromY} -1334.566 {fromZ} 57.202 {toX} 2277.8779 {toY} -1313.666 {toZ} 57.202 {time} 2000 {ease} False
camera_set_vector_track 2289.448 {fromY} -1334.177 {fromZ} 56.3075 {toX} 2277.658 {toY} -1313.276 {toZ} 56.3075 {time} 2000 {ease} False

:FINALEC_43994
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44025
wait 0
gosub @FINALEC_57174
goto @FINALEC_43994

:FINALEC_44025
set_char_coordinates $scplayer {x} -1014.557 {y} -1422.255 {z} 186.1819
freeze_char_position $scplayer {state} True
set_time_of_day 10 {minutes} 0
force_weather_now WeatherType.SunnyCountryside
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move -1014.557 {fromY} -1422.255 {fromZ} 184.6819 {toX} -1037.938 {toY} -1423.075 {toZ} 186.8606 {time} 2000 {ease} False
camera_set_vector_track -1015.556 {fromY} -1422.29 {fromZ} 184.6751 {toX} -1038.937 {toY} -1423.11 {toZ} 186.8538 {time} 2000 {ease} False

:FINALEC_44148
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44179
wait 0
gosub @FINALEC_57174
goto @FINALEC_44148

:FINALEC_44179
camera_set_vector_move -1037.938 {fromY} -1423.075 {fromZ} 186.8606 {toX} -1063.307 {toY} -1423.965 {toZ} 189.2248 {time} 2000 {ease} False
camera_set_vector_track -1038.937 {fromY} -1423.11 {fromZ} 186.8538 {toX} -1064.306 {toY} -1424.0 {toZ} 189.218 {time} 2000 {ease} False

:FINALEC_44253
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44284
wait 0
gosub @FINALEC_57174
goto @FINALEC_44253

:FINALEC_44284
camera_set_vector_move -1063.307 {fromY} -1423.965 {fromZ} 189.2248 {toX} -1089.1591 {toY} -1425.217 {toZ} 191.6353 {time} 2000 {ease} False
camera_set_vector_track -1064.306 {fromY} -1424.0 {fromZ} 189.218 {toX} -1090.156 {toY} -1425.2841 {toZ} 191.6285 {time} 2000 {ease} False

:FINALEC_44358
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44389
wait 0
gosub @FINALEC_57174
goto @FINALEC_44358

:FINALEC_44389
camera_set_vector_move -1089.1591 {fromY} -1425.217 {fromZ} 191.6353 {toX} -1114.49 {toY} -1426.917 {toZ} 193.9995 {time} 2000 {ease} False
camera_set_vector_track -1090.156 {fromY} -1425.2841 {fromZ} 191.6285 {toX} -1115.488 {toY} -1426.984 {toZ} 193.9927 {time} 2000 {ease} False

:FINALEC_44463
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44494
wait 0
gosub @FINALEC_57174
goto @FINALEC_44463

:FINALEC_44494
camera_set_vector_move -1114.49 {fromY} -1426.917 {fromZ} 193.9995 {toX} -1139.822 {toY} -1428.616 {toZ} 196.3636 {time} 2000 {ease} False
camera_set_vector_track -1115.488 {fromY} -1426.984 {fromZ} 193.9927 {toX} -1140.8199 {toY} -1428.683 {toZ} 196.3568 {time} 2000 {ease} False

:FINALEC_44568
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44599
wait 0
gosub @FINALEC_57174
goto @FINALEC_44568

:FINALEC_44599
camera_set_vector_move -1139.822 {fromY} -1428.616 {fromZ} 196.3636 {toX} -1165.651 {toY} -1430.349 {toZ} 198.7742 {time} 2000 {ease} False
camera_set_vector_track -1140.8199 {fromY} -1428.683 {fromZ} 196.3568 {toX} -1166.649 {toY} -1430.416 {toZ} 198.7673 {time} 2000 {ease} False

:FINALEC_44673
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44704
wait 0
gosub @FINALEC_57174
goto @FINALEC_44673

:FINALEC_44704
camera_set_vector_move -1165.651 {fromY} -1430.349 {fromZ} 198.7742 {toX} -1191.48 {toY} -1432.082 {toZ} 201.1847 {time} 2000 {ease} False
camera_set_vector_track -1166.649 {fromY} -1430.416 {fromZ} 198.7673 {toX} -1192.4771 {toY} -1432.149 {toZ} 201.1779 {time} 2000 {ease} False

:FINALEC_44778
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44809
wait 0
gosub @FINALEC_57174
goto @FINALEC_44778

:FINALEC_44809
camera_set_vector_move -1191.48 {fromY} -1432.082 {fromZ} 201.1847 {toX} -1216.812 {toY} -1433.782 {toZ} 203.5488 {time} 2000 {ease} False
camera_set_vector_track -1192.4771 {fromY} -1432.149 {fromZ} 201.1779 {toX} -1217.809 {toY} -1433.849 {toZ} 203.542 {time} 2000 {ease} False

:FINALEC_44883
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_44914
wait 0
gosub @FINALEC_57174
goto @FINALEC_44883

:FINALEC_44914
camera_set_vector_move -1216.812 {fromY} -1433.782 {fromZ} 203.5488 {toX} -1242.1429 {toY} -1435.481 {toZ} 205.913 {time} 2000 {ease} False
camera_set_vector_track -1217.809 {fromY} -1433.849 {fromZ} 203.542 {toX} -1243.141 {toY} -1435.548 {toZ} 205.9062 {time} 2000 {ease} False

:FINALEC_44988
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45019
wait 0
gosub @FINALEC_57174
goto @FINALEC_44988

:FINALEC_45019
camera_set_vector_move -1242.1429 {fromY} -1435.481 {fromZ} 205.913 {toX} -1267.972 {toY} -1437.214 {toZ} 208.3235 {time} 2000 {ease} False
camera_set_vector_track -1243.141 {fromY} -1435.548 {fromZ} 205.9062 {toX} -1268.97 {toY} -1437.281 {toZ} 208.3167 {time} 2000 {ease} False

:FINALEC_45093
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45124
wait 0
gosub @FINALEC_57174
goto @FINALEC_45093

:FINALEC_45124
camera_set_vector_move -1267.972 {fromY} -1437.214 {fromZ} 208.3235 {toX} -1293.801 {toY} -1438.947 {toZ} 210.7341 {time} 2000 {ease} False
camera_set_vector_track -1268.97 {fromY} -1437.281 {fromZ} 208.3167 {toX} -1294.798 {toY} -1439.014 {toZ} 210.7272 {time} 2000 {ease} False

:FINALEC_45198
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45229
wait 0
gosub @FINALEC_57174
goto @FINALEC_45198

:FINALEC_45229
camera_set_vector_move -1293.801 {fromY} -1438.947 {fromZ} 210.7341 {toX} -1319.629 {toY} -1440.6801 {toZ} 213.1446 {time} 2000 {ease} False
camera_set_vector_track -1294.798 {fromY} -1439.014 {fromZ} 210.7272 {toX} -1320.627 {toY} -1440.7469 {toZ} 213.1378 {time} 2000 {ease} False

:FINALEC_45303
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45334
wait 0
gosub @FINALEC_57174
goto @FINALEC_45303

:FINALEC_45334
camera_set_vector_move -1319.629 {fromY} -1440.6801 {fromZ} 213.1446 {toX} -1345.458 {toY} -1442.413 {toZ} 215.5551 {time} 2000 {ease} False
camera_set_vector_track -1320.627 {fromY} -1440.7469 {fromZ} 213.1378 {toX} -1346.4561 {toY} -1442.48 {toZ} 215.5483 {time} 2000 {ease} False

:FINALEC_45408
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45439
wait 0
gosub @FINALEC_57174
goto @FINALEC_45408

:FINALEC_45439
camera_set_vector_move -1345.458 {fromY} -1442.413 {fromZ} 215.5551 {toX} -1370.79 {toY} -1444.1121 {toZ} 217.9193 {time} 2000 {ease} False
camera_set_vector_track -1346.4561 {fromY} -1442.48 {fromZ} 215.5483 {toX} -1371.787 {toY} -1444.179 {toZ} 217.9125 {time} 2000 {ease} False

:FINALEC_45513
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45544
wait 0
gosub @FINALEC_57174
goto @FINALEC_45513

:FINALEC_45544
camera_set_vector_move -1370.79 {fromY} -1444.1121 {fromZ} 217.9193 {toX} -1396.1219 {toY} -1445.812 {toZ} 220.2834 {time} 2000 {ease} False
camera_set_vector_track -1371.787 {fromY} -1444.179 {fromZ} 217.9125 {toX} -1397.119 {toY} -1445.879 {toZ} 220.2766 {time} 2000 {ease} False

:FINALEC_45618
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45649
wait 0
gosub @FINALEC_57174
goto @FINALEC_45618

:FINALEC_45649
camera_set_vector_move -1396.1219 {fromY} -1445.812 {fromZ} 220.2834 {toX} -1420.957 {toY} -1447.478 {toZ} 222.6012 {time} 2000 {ease} False
camera_set_vector_track -1397.119 {fromY} -1445.879 {fromZ} 220.2766 {toX} -1421.955 {toY} -1447.545 {toZ} 222.5944 {time} 2000 {ease} False

:FINALEC_45723
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45754
wait 0
gosub @FINALEC_57174
goto @FINALEC_45723

:FINALEC_45754
camera_set_vector_move -1420.957 {fromY} -1447.478 {fromZ} 222.6012 {toX} -1446.2889 {toY} -1449.178 {toZ} 224.9654 {time} 2000 {ease} False
camera_set_vector_track -1421.955 {fromY} -1447.545 {fromZ} 222.5944 {toX} -1447.286 {toY} -1449.245 {toZ} 224.9586 {time} 2000 {ease} False

:FINALEC_45828
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45859
wait 0
gosub @FINALEC_57174
goto @FINALEC_45828

:FINALEC_45859
camera_set_vector_move -1446.2889 {fromY} -1449.178 {fromZ} 224.9654 {toX} -1471.621 {toY} -1450.877 {toZ} 227.3296 {time} 2000 {ease} False
camera_set_vector_track -1447.286 {fromY} -1449.245 {fromZ} 224.9586 {toX} -1472.618 {toY} -1450.944 {toZ} 227.3228 {time} 2000 {ease} False

:FINALEC_45933
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_45964
wait 0
gosub @FINALEC_57174
goto @FINALEC_45933

:FINALEC_45964
camera_set_vector_move -1471.621 {fromY} -1450.877 {fromZ} 227.3296 {toX} -1496.953 {toY} -1452.577 {toZ} 229.6937 {time} 2000 {ease} False
camera_set_vector_track -1472.618 {fromY} -1450.944 {fromZ} 227.3228 {toX} -1497.95 {toY} -1452.644 {toZ} 229.6869 {time} 2000 {ease} False

:FINALEC_46038
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46069
wait 0
gosub @FINALEC_57174
goto @FINALEC_46038

:FINALEC_46069
do_fade 6000 {direction} Fade.Out
camera_set_vector_move -1496.953 {fromY} -1452.577 {fromZ} 229.6937 {toX} -1522.285 {toY} -1454.277 {toZ} 232.0579 {time} 2000 {ease} False
camera_set_vector_track -1497.95 {fromY} -1452.644 {fromZ} 229.6869 {toX} -1523.282 {toY} -1454.344 {toZ} 232.0511 {time} 2000 {ease} False

:FINALEC_46150
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46181
wait 0
gosub @FINALEC_57174
goto @FINALEC_46150

:FINALEC_46181
camera_set_vector_move -1522.285 {fromY} -1454.277 {fromZ} 232.0579 {toX} -1547.616 {toY} -1455.976 {toZ} 234.4221 {time} 2000 {ease} False
camera_set_vector_track -1523.282 {fromY} -1454.344 {fromZ} 232.0511 {toX} -1548.614 {toY} -1456.043 {toZ} 234.4153 {time} 2000 {ease} False

:FINALEC_46255
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46286
wait 0
gosub @FINALEC_57174
goto @FINALEC_46255

:FINALEC_46286
camera_set_vector_move -1547.616 {fromY} -1455.976 {fromZ} 234.4221 {toX} -1572.452 {toY} -1457.642 {toZ} 236.7399 {time} 2000 {ease} False
camera_set_vector_track -1548.614 {fromY} -1456.043 {fromZ} 234.4153 {toX} -1573.449 {toY} -1457.709 {toZ} 236.7331 {time} 2000 {ease} False

:FINALEC_46360
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46391
wait 0
gosub @FINALEC_57174
goto @FINALEC_46360

:FINALEC_46391
do_fade 0 {direction} Fade.Out

:FINALEC_46397
if 
  get_fading_status 
goto_if_false @FINALEC_46421
wait 0
goto @FINALEC_46397

:FINALEC_46421
set_darkness_effect False {pitchBlack} -1
set_char_coordinates $scplayer {x} -2551.824 {y} 1438.745 {z} -6.4582
freeze_char_position $scplayer {state} True
force_weather_now WeatherType.RainySf
set_time_of_day 22 {minutes} 15
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move -2551.824 {fromY} 1438.745 {fromZ} -7.9582 {toX} -2555.05 {toY} 1456.451 {toZ} -7.9582 {time} 2000 {ease} False
camera_set_vector_track -2552.0029 {fromY} 1439.724 {fromZ} -8.0577 {toX} -2555.229 {toY} 1457.4301 {toZ} -8.0577 {time} 2000 {ease} False

:FINALEC_46550
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46581
wait 0
gosub @FINALEC_57174
goto @FINALEC_46550

:FINALEC_46581
camera_set_vector_move -2555.05 {fromY} 1456.451 {fromZ} -7.9582 {toX} -2558.981 {toY} 1478.022 {toZ} -6.5912 {time} 2000 {ease} False
camera_set_vector_track -2555.229 {fromY} 1457.4301 {fromZ} -8.0577 {toX} -2559.1599 {toY} 1479.005 {toZ} -6.5742 {time} 2000 {ease} False

:FINALEC_46655
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46686
wait 0
gosub @FINALEC_57174
goto @FINALEC_46655

:FINALEC_46686
camera_set_vector_move -2558.981 {fromY} 1478.022 {fromZ} -6.5912 {toX} -2562.7661 {toY} 1498.793 {toZ} -2.7267 {time} 2000 {ease} False
camera_set_vector_track -2559.1599 {fromY} 1479.005 {fromZ} -6.5742 {toX} -2562.9431 {toY} 1499.765 {toZ} -2.5699 {time} 2000 {ease} False

:FINALEC_46760
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46791
wait 0
gosub @FINALEC_57174
goto @FINALEC_46760

:FINALEC_46791
camera_set_vector_move -2562.7661 {fromY} 1498.793 {fromZ} -2.7267 {toX} -2566.4199 {toY} 1518.853 {toZ} 4.0086 {time} 2000 {ease} False
camera_set_vector_track -2562.9431 {fromY} 1499.765 {fromZ} -2.5699 {toX} -2566.594 {toY} 1519.803 {toZ} 4.2679 {time} 2000 {ease} False

:FINALEC_46865
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_46896
wait 0
gosub @FINALEC_57174
goto @FINALEC_46865

:FINALEC_46896
camera_set_vector_move -2566.4199 {fromY} 1518.853 {fromZ} 4.0086 {toX} -2570.021 {toY} 1538.631 {toZ} 11.6223 {time} 2000 {ease} False
camera_set_vector_track -2566.594 {fromY} 1519.803 {fromZ} 4.2679 {toX} -2570.1941 {toY} 1539.5811 {toZ} 11.8816 {time} 2000 {ease} False

:FINALEC_46970
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47001
wait 0
gosub @FINALEC_57174
goto @FINALEC_46970

:FINALEC_47001
camera_set_vector_move -2570.021 {fromY} 1538.631 {fromZ} 11.6223 {toX} -2573.7061 {toY} 1558.869 {toZ} 19.413 {time} 2000 {ease} False
camera_set_vector_track -2570.1941 {fromY} 1539.5811 {fromZ} 11.8816 {toX} -2573.8789 {toY} 1559.819 {toZ} 19.6724 {time} 2000 {ease} False

:FINALEC_47075
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47106
wait 0
gosub @FINALEC_57174
goto @FINALEC_47075

:FINALEC_47106
camera_set_vector_move -2573.7061 {fromY} 1558.869 {fromZ} 19.413 {toX} -2577.2229 {toY} 1578.188 {toZ} 26.8497 {time} 2000 {ease} False
camera_set_vector_track -2573.8789 {fromY} 1559.819 {fromZ} 19.6724 {toX} -2577.396 {toY} 1579.1379 {toZ} 27.109 {time} 2000 {ease} False

:FINALEC_47180
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47211
wait 0
gosub @FINALEC_57174
goto @FINALEC_47180

:FINALEC_47211
camera_set_vector_move -2577.2229 {fromY} 1578.188 {fromZ} 26.8497 {toX} -2580.907 {toY} 1598.426 {toZ} 34.6405 {time} 2000 {ease} False
camera_set_vector_track -2577.396 {fromY} 1579.1379 {fromZ} 27.109 {toX} -2581.0811 {toY} 1599.376 {toZ} 34.8998 {time} 2000 {ease} False

:FINALEC_47285
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47316
wait 0
gosub @FINALEC_57174
goto @FINALEC_47285

:FINALEC_47316
camera_set_vector_move -2580.907 {fromY} 1598.426 {fromZ} 34.6405 {toX} -2584.5139 {toY} 1618.225 {toZ} 42.1997 {time} 2000 {ease} False
camera_set_vector_track -2581.0811 {fromY} 1599.376 {fromZ} 34.8998 {toX} -2584.688 {toY} 1619.178 {toZ} 42.4465 {time} 2000 {ease} False

:FINALEC_47390
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47421
wait 0
gosub @FINALEC_57174
goto @FINALEC_47390

:FINALEC_47421
camera_set_vector_move -2584.5139 {fromY} 1618.225 {fromZ} 42.1997 {toX} -2588.2329 {toY} 1638.641 {toZ} 49.4991 {time} 2000 {ease} False
camera_set_vector_track -2584.688 {fromY} 1619.178 {fromZ} 42.4465 {toX} -2588.408 {toY} 1639.599 {toZ} 49.7249 {time} 2000 {ease} False

:FINALEC_47495
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47526
wait 0
gosub @FINALEC_57174
goto @FINALEC_47495

:FINALEC_47526
camera_set_vector_move -2588.2329 {fromY} 1638.641 {fromZ} 49.4991 {toX} -2591.978 {toY} 1659.176 {toZ} 56.4439 {time} 2000 {ease} False
camera_set_vector_track -2588.408 {fromY} 1639.599 {fromZ} 49.7249 {toX} -2592.1531 {toY} 1660.136 {toZ} 56.6616 {time} 2000 {ease} False

:FINALEC_47600
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47631
wait 0
gosub @FINALEC_57174
goto @FINALEC_47600

:FINALEC_47631
camera_set_vector_move -2591.978 {fromY} 1659.176 {fromZ} 56.4439 {toX} -2595.6421 {toY} 1679.259 {toZ} 63.1876 {time} 2000 {ease} False
camera_set_vector_track -2592.1531 {fromY} 1660.136 {fromZ} 56.6616 {toX} -2595.8169 {toY} 1680.219 {toZ} 63.4053 {time} 2000 {ease} False

:FINALEC_47705
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47736
wait 0
gosub @FINALEC_57174
goto @FINALEC_47705

:FINALEC_47736
camera_set_vector_move -2595.6421 {fromY} 1679.259 {fromZ} 63.1876 {toX} -2599.394 {toY} 1699.842 {toZ} 69.9817 {time} 2000 {ease} False
camera_set_vector_track -2595.8169 {fromY} 1680.219 {fromZ} 63.4053 {toX} -2599.5691 {toY} 1700.806 {toZ} 70.1827 {time} 2000 {ease} False

:FINALEC_47810
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47841
wait 0
gosub @FINALEC_57174
goto @FINALEC_47810

:FINALEC_47841
camera_set_vector_move -2599.394 {fromY} 1699.842 {fromZ} 69.9817 {toX} -2603.1699 {toY} 1720.568 {toZ} 76.3148 {time} 2000 {ease} False
camera_set_vector_track -2599.5691 {fromY} 1700.806 {fromZ} 70.1827 {toX} -2603.3469 {toY} 1721.536 {toZ} 76.4955 {time} 2000 {ease} False

:FINALEC_47915
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_47946
wait 0
gosub @FINALEC_57174
goto @FINALEC_47915

:FINALEC_47946
camera_set_vector_move -2603.1699 {fromY} 1720.568 {fromZ} 76.3148 {toX} -2606.968 {toY} 1741.411 {toZ} 82.2359 {time} 2000 {ease} False
camera_set_vector_track -2603.3469 {fromY} 1721.536 {fromZ} 76.4955 {toX} -2607.145 {toY} 1742.382 {toZ} 82.3978 {time} 2000 {ease} False

:FINALEC_48020
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48051
wait 0
gosub @FINALEC_57174
goto @FINALEC_48020

:FINALEC_48051
camera_set_vector_move -2606.968 {fromY} 1741.411 {fromZ} 82.2359 {toX} -2610.699 {toY} 1761.885 {toZ} 87.6284 {time} 2000 {ease} False
camera_set_vector_track -2607.145 {fromY} 1742.382 {fromZ} 82.3978 {toX} -2610.877 {toY} 1762.858 {toZ} 87.7717 {time} 2000 {ease} False

:FINALEC_48125
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48156
wait 0
gosub @FINALEC_57174
goto @FINALEC_48125

:FINALEC_48156
camera_set_vector_move -2610.699 {fromY} 1761.885 {fromZ} 87.6284 {toX} -2614.448 {toY} 1782.455 {toZ} 92.6294 {time} 2000 {ease} False
camera_set_vector_track -2610.877 {fromY} 1762.858 {fromZ} 87.7717 {toX} -2614.625 {toY} 1783.431 {toZ} 92.7541 {time} 2000 {ease} False

:FINALEC_48230
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48261
wait 0
gosub @FINALEC_57174
goto @FINALEC_48230

:FINALEC_48261
camera_set_vector_move -2614.448 {fromY} 1782.455 {fromZ} 92.6294 {toX} -2618.2141 {toY} 1803.127 {toZ} 97.1743 {time} 2000 {ease} False
camera_set_vector_track -2614.625 {fromY} 1783.431 {fromZ} 92.7541 {toX} -2618.3931 {toY} 1804.106 {toZ} 97.2734 {time} 2000 {ease} False

:FINALEC_48335
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48366
wait 0
gosub @FINALEC_57174
goto @FINALEC_48335

:FINALEC_48366
camera_set_vector_move -2618.2141 {fromY} 1803.127 {fromZ} 97.1743 {toX} -2622.001 {toY} 1823.9091 {toZ} 101.1663 {time} 2000 {ease} False
camera_set_vector_track -2618.3931 {fromY} 1804.106 {fromZ} 97.2734 {toX} -2622.1799 {toY} 1824.89 {toZ} 101.2393 {time} 2000 {ease} False

:FINALEC_48440
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48471
wait 0
gosub @FINALEC_57174
goto @FINALEC_48440

:FINALEC_48471
camera_set_vector_move -2622.001 {fromY} 1823.9091 {fromZ} 101.1663 {toX} -2625.8059 {toY} 1844.788 {toZ} 104.6021 {time} 2000 {ease} False
camera_set_vector_track -2622.1799 {fromY} 1824.89 {fromZ} 101.2393 {toX} -2625.9851 {toY} 1845.77 {toZ} 104.6488 {time} 2000 {ease} False

:FINALEC_48545
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48576
wait 0
gosub @FINALEC_57174
goto @FINALEC_48545

:FINALEC_48576
do_fade 6000 {direction} Fade.Out
camera_set_vector_move -2625.8059 {fromY} 1844.788 {fromZ} 104.6021 {toX} -2629.447 {toY} 1864.771 {toZ} 107.3578 {time} 2000 {ease} False
camera_set_vector_track -2625.9851 {fromY} 1845.77 {fromZ} 104.6488 {toX} -2629.626 {toY} 1865.755 {toZ} 107.3795 {time} 2000 {ease} False

:FINALEC_48657
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48688
wait 0
gosub @FINALEC_57174
goto @FINALEC_48657

:FINALEC_48688
camera_set_vector_move -2629.447 {fromY} 1864.771 {fromZ} 107.3578 {toX} -2633.2781 {toY} 1885.793 {toZ} 109.7129 {time} 2000 {ease} False
camera_set_vector_track -2629.626 {fromY} 1865.755 {fromZ} 107.3795 {toX} -2633.457 {toY} 1886.777 {toZ} 109.7149 {time} 2000 {ease} False

:FINALEC_48762
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48793
wait 0
gosub @FINALEC_57174
goto @FINALEC_48762

:FINALEC_48793
camera_set_vector_move -2633.2781 {fromY} 1885.793 {fromZ} 109.7129 {toX} -2637.1089 {toY} 1906.832 {toZ} 111.8949 {time} 2000 {ease} False
camera_set_vector_track -2633.457 {fromY} 1886.777 {fromZ} 109.7149 {toX} -2637.2891 {toY} 1907.8149 {toZ} 111.8969 {time} 2000 {ease} False

:FINALEC_48867
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_48898
wait 0
gosub @FINALEC_57174
goto @FINALEC_48867

:FINALEC_48898
do_fade 0 {direction} Fade.Out

:FINALEC_48904
if 
  get_fading_status 
goto_if_false @FINALEC_48928
wait 0
goto @FINALEC_48904

:FINALEC_48928
force_weather_now WeatherType.ExtraSunnyLa
set_time_of_day 5 {minutes} 30
set_char_coordinates $scplayer {x} -922.5345 {y} 669.1976 {z} 86.8181
freeze_char_position $scplayer {state} True
set_darkness_effect True {pitchBlack} -1
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move -922.5345 {fromY} 669.1976 {fromZ} 85.3181 {toX} -944.3385 {toY} 676.5142 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -923.4778 {fromY} 669.5142 {fromZ} 85.2186 {toX} -945.2818 {toY} 676.8308 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49057
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49088
wait 0
gosub @FINALEC_57174
goto @FINALEC_49057

:FINALEC_49088
camera_set_vector_move -944.3385 {fromY} 676.5142 {fromZ} 85.3181 {toX} -968.5125 {toY} 684.6262 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -945.2818 {fromY} 676.8308 {fromZ} 85.2186 {toX} -969.4557 {toY} 684.9427 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49162
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49193
wait 0
gosub @FINALEC_57174
goto @FINALEC_49162

:FINALEC_49193
camera_set_vector_move -968.5125 {fromY} 684.6262 {fromZ} 85.3181 {toX} -993.1604 {toY} 692.8972 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -969.4557 {fromY} 684.9427 {fromZ} 85.2186 {toX} -994.1037 {toY} 693.2137 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49267
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49298
wait 0
gosub @FINALEC_57174
goto @FINALEC_49267

:FINALEC_49298
camera_set_vector_move -993.1604 {fromY} 692.8972 {fromZ} 85.3181 {toX} -1017.808 {toY} 701.1682 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -994.1037 {fromY} 693.2137 {fromZ} 85.2186 {toX} -1018.752 {toY} 701.4847 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49372
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49403
wait 0
gosub @FINALEC_57174
goto @FINALEC_49372

:FINALEC_49403
camera_set_vector_move -1017.808 {fromY} 701.1682 {fromZ} 85.3181 {toX} -1041.9821 {toY} 709.2801 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1018.752 {fromY} 701.4847 {fromZ} 85.2186 {toX} -1042.926 {toY} 709.5967 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49477
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49508
wait 0
gosub @FINALEC_57174
goto @FINALEC_49477

:FINALEC_49508
camera_set_vector_move -1041.9821 {fromY} 709.2801 {fromZ} 85.3181 {toX} -1066.156 {toY} 717.392 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1042.926 {fromY} 709.5967 {fromZ} 85.2186 {toX} -1067.099 {toY} 717.7086 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49582
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49613
wait 0
gosub @FINALEC_57174
goto @FINALEC_49582

:FINALEC_49613
camera_set_vector_move -1066.156 {fromY} 717.392 {fromZ} 85.3181 {toX} -1090.33 {toY} 725.504 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1067.099 {fromY} 717.7086 {fromZ} 85.2186 {toX} -1091.2729 {toY} 725.8206 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49687
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49718
wait 0
gosub @FINALEC_57174
goto @FINALEC_49687

:FINALEC_49718
camera_set_vector_move -1090.33 {fromY} 725.504 {fromZ} 85.3181 {toX} -1114.504 {toY} 733.6159 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1091.2729 {fromY} 725.8206 {fromZ} 85.2186 {toX} -1115.447 {toY} 733.9325 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49792
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49823
wait 0
gosub @FINALEC_57174
goto @FINALEC_49792

:FINALEC_49823
camera_set_vector_move -1114.504 {fromY} 733.6159 {fromZ} 85.3181 {toX} -1138.678 {toY} 741.7278 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1115.447 {fromY} 733.9325 {fromZ} 85.2186 {toX} -1139.621 {toY} 742.0444 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_49897
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_49928
wait 0
gosub @FINALEC_57174
goto @FINALEC_49897

:FINALEC_49928
camera_set_vector_move -1138.678 {fromY} 741.7278 {fromZ} 85.3181 {toX} -1162.3781 {toY} 749.6807 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1139.621 {fromY} 742.0444 {fromZ} 85.2186 {toX} -1163.321 {toY} 749.9973 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50002
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50033
wait 0
gosub @FINALEC_57174
goto @FINALEC_50002

:FINALEC_50033
camera_set_vector_move -1162.3781 {fromY} 749.6807 {fromZ} 85.3181 {toX} -1186.078 {toY} 757.6336 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1163.321 {fromY} 749.9973 {fromZ} 85.2186 {toX} -1187.021 {toY} 757.9502 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50107
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50138
wait 0
gosub @FINALEC_57174
goto @FINALEC_50107

:FINALEC_50138
camera_set_vector_move -1186.078 {fromY} 757.6336 {fromZ} 85.3181 {toX} -1209.778 {toY} 765.5865 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1187.021 {fromY} 757.9502 {fromZ} 85.2186 {toX} -1210.7209 {toY} 765.9031 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50212
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50243
wait 0
gosub @FINALEC_57174
goto @FINALEC_50212

:FINALEC_50243
camera_set_vector_move -1209.778 {fromY} 765.5865 {fromZ} 85.3181 {toX} -1233.952 {toY} 773.6984 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1210.7209 {fromY} 765.9031 {fromZ} 85.2186 {toX} -1234.895 {toY} 774.015 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50317
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50348
wait 0
gosub @FINALEC_57174
goto @FINALEC_50317

:FINALEC_50348
camera_set_vector_move -1233.952 {fromY} 773.6984 {fromZ} 85.3181 {toX} -1258.126 {toY} 781.8104 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1234.895 {fromY} 774.015 {fromZ} 85.2186 {toX} -1259.069 {toY} 782.127 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50422
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50453
wait 0
gosub @FINALEC_57174
goto @FINALEC_50422

:FINALEC_50453
camera_set_vector_move -1258.126 {fromY} 781.8104 {fromZ} 85.3181 {toX} -1281.826 {toY} 789.7632 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1259.069 {fromY} 782.127 {fromZ} 85.2186 {toX} -1282.769 {toY} 790.0798 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50527
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50558
wait 0
gosub @FINALEC_57174
goto @FINALEC_50527

:FINALEC_50558
camera_set_vector_move -1281.826 {fromY} 789.7632 {fromZ} 85.3181 {toX} -1305.526 {toY} 797.7161 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1282.769 {fromY} 790.0798 {fromZ} 85.2186 {toX} -1306.469 {toY} 798.0327 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50632
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50663
wait 0
gosub @FINALEC_57174
goto @FINALEC_50632

:FINALEC_50663
camera_set_vector_move -1305.526 {fromY} 797.7161 {fromZ} 85.3181 {toX} -1329.226 {toY} 805.669 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1306.469 {fromY} 798.0327 {fromZ} 85.2186 {toX} -1330.1689 {toY} 805.9856 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50737
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50768
wait 0
gosub @FINALEC_57174
goto @FINALEC_50737

:FINALEC_50768
camera_set_vector_move -1329.226 {fromY} 805.669 {fromZ} 85.3181 {toX} -1353.4 {toY} 813.7809 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1330.1689 {fromY} 805.9856 {fromZ} 85.2186 {toX} -1354.343 {toY} 814.0975 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50842
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50873
wait 0
gosub @FINALEC_57174
goto @FINALEC_50842

:FINALEC_50873
camera_set_vector_move -1353.4 {fromY} 813.7809 {fromZ} 85.3181 {toX} -1377.574 {toY} 821.8929 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1354.343 {fromY} 814.0975 {fromZ} 85.2186 {toX} -1378.517 {toY} 822.2095 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_50947
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_50978
wait 0
gosub @FINALEC_57174
goto @FINALEC_50947

:FINALEC_50978
camera_set_vector_move -1377.574 {fromY} 821.8929 {fromZ} 85.3181 {toX} -1401.274 {toY} 829.8458 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1378.517 {fromY} 822.2095 {fromZ} 85.2186 {toX} -1402.217 {toY} 830.1624 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51052
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51083
wait 0
gosub @FINALEC_57174
goto @FINALEC_51052

:FINALEC_51083
camera_set_vector_move -1401.274 {fromY} 829.8458 {fromZ} 85.3181 {toX} -1423.552 {toY} 837.3215 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1402.217 {fromY} 830.1624 {fromZ} 85.2186 {toX} -1424.495 {toY} 837.6381 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51157
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51188
wait 0
gosub @FINALEC_57174
goto @FINALEC_51157

:FINALEC_51188
camera_set_vector_move -1423.552 {fromY} 837.3215 {fromZ} 85.3181 {toX} -1446.777 {toY} 845.1153 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1424.495 {fromY} 837.6381 {fromZ} 85.2186 {toX} -1447.7209 {toY} 845.4319 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51262
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51293
wait 0
gosub @FINALEC_57174
goto @FINALEC_51262

:FINALEC_51293
camera_set_vector_move -1446.777 {fromY} 845.1153 {fromZ} 85.3181 {toX} -1470.4771 {toY} 853.0682 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1447.7209 {fromY} 845.4319 {fromZ} 85.2186 {toX} -1471.421 {toY} 853.3848 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51367
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51398
wait 0
gosub @FINALEC_57174
goto @FINALEC_51367

:FINALEC_51398
camera_set_vector_move -1470.4771 {fromY} 853.0682 {fromZ} 85.3181 {toX} -1493.703 {toY} 860.862 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1471.421 {fromY} 853.3848 {fromZ} 85.2186 {toX} -1494.647 {toY} 861.1786 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51472
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51503
wait 0
gosub @FINALEC_57174
goto @FINALEC_51472

:FINALEC_51503
do_fade 5900 {direction} Fade.Out
camera_set_vector_move -1493.703 {fromY} 860.862 {fromZ} 85.3181 {toX} -1515.981 {toY} 868.3377 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1494.647 {fromY} 861.1786 {fromZ} 85.2186 {toX} -1516.925 {toY} 868.6543 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51584
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51615
wait 0
gosub @FINALEC_57174
goto @FINALEC_51584

:FINALEC_51615
camera_set_vector_move -1515.981 {fromY} 868.3377 {fromZ} 85.3181 {toX} -1538.259 {toY} 875.8134 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1516.925 {fromY} 868.6543 {fromZ} 85.2186 {toX} -1539.203 {toY} 876.13 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51689
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51720
wait 0
gosub @FINALEC_57174
goto @FINALEC_51689

:FINALEC_51720
camera_set_vector_move -1538.259 {fromY} 875.8134 {fromZ} 85.3181 {toX} -1561.011 {toY} 883.4482 {toZ} 85.3181 {time} 2250 {ease} False
camera_set_vector_track -1539.203 {fromY} 876.13 {fromZ} 85.2186 {toX} -1561.954 {toY} 883.7648 {toZ} 85.2186 {time} 2250 {ease} False

:FINALEC_51794
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_51825
wait 0
gosub @FINALEC_57174
goto @FINALEC_51794

:FINALEC_51825
do_fade 0 {direction} Fade.Out

:FINALEC_51831
if 
  get_fading_status 
goto_if_false @FINALEC_51855
wait 0
goto @FINALEC_51831

:FINALEC_51855
force_weather_now WeatherType.ExtraSunnyDesert
set_darkness_effect True {pitchBlack} -1
set_char_coordinates $scplayer {x} 370.7745 {y} 2441.2339 {z} 19.0844
freeze_char_position $scplayer {state} True
set_time_of_day 12 {minutes} 0
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move 370.7745 {fromY} 2441.2339 {fromZ} 17.5844 {toX} 366.5777 {toY} 2438.9021 {toZ} 17.5844 {time} 2250 {ease} False
camera_set_vector_track 369.9044 {fromY} 2440.751 {fromZ} 17.4849 {toX} 365.7076 {toY} 2438.4189 {toZ} 17.4849 {time} 2250 {ease} False

:FINALEC_51984
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52015
wait 0
gosub @FINALEC_57174
goto @FINALEC_51984

:FINALEC_52015
camera_set_vector_move 366.5777 {fromY} 2438.9021 {fromZ} 17.5844 {toX} 362.0319 {toY} 2436.376 {toZ} 17.5835 {time} 2250 {ease} False
camera_set_vector_track 365.7076 {fromY} 2438.4189 {fromZ} 17.4849 {toX} 361.1612 {toY} 2435.8931 {toZ} 17.4921 {time} 2250 {ease} False

:FINALEC_52089
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52120
wait 0
gosub @FINALEC_57174
goto @FINALEC_52089

:FINALEC_52120
camera_set_vector_move 362.0319 {fromY} 2436.376 {fromZ} 17.5835 {toX} 357.4894 {toY} 2433.8521 {toZ} 17.6536 {time} 2250 {ease} False
camera_set_vector_track 361.1612 {fromY} 2435.8931 {fromZ} 17.4921 {toX} 356.6158 {toY} 2433.3669 {toZ} 17.6101 {time} 2250 {ease} False

:FINALEC_52194
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52225
wait 0
gosub @FINALEC_57174
goto @FINALEC_52194

:FINALEC_52225
camera_set_vector_move 357.4894 {fromY} 2433.8521 {fromZ} 17.6536 {toX} 352.8694 {toY} 2431.29 {toZ} 17.996 {time} 2250 {ease} False
camera_set_vector_track 356.6158 {fromY} 2433.3669 {fromZ} 17.6101 {toX} 351.9951 {toY} 2430.8049 {toZ} 18.0046 {time} 2250 {ease} False

:FINALEC_52299
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52330
wait 0
gosub @FINALEC_57174
goto @FINALEC_52299

:FINALEC_52330
camera_set_vector_move 352.8694 {fromY} 2431.29 {fromZ} 17.996 {toX} 348.2637 {toY} 2428.728 {toZ} 18.5695 {time} 2200 {ease} False
camera_set_vector_track 351.9951 {fromY} 2430.8049 {fromZ} 18.0046 {toX} 347.3847 {toY} 2428.251 {toZ} 18.5783 {time} 2200 {ease} False

:FINALEC_52404
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52435
wait 0
gosub @FINALEC_57174
goto @FINALEC_52404

:FINALEC_52435
skip_cutscene_start_internal @FINALEC_56742
camera_set_vector_move 348.2637 {fromY} 2428.728 {fromZ} 18.5695 {toX} 343.6016 {toY} 2426.2739 {toZ} 19.1432 {time} 2150 {ease} False
camera_set_vector_track 347.3847 {fromY} 2428.251 {fromZ} 18.5783 {toX} 342.7046 {toY} 2425.832 {toZ} 19.152 {time} 2150 {ease} False

:FINALEC_52516
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52547
wait 0
gosub @FINALEC_57174
goto @FINALEC_52516

:FINALEC_52547
camera_set_vector_move 343.6016 {fromY} 2426.2739 {fromZ} 19.1432 {toX} 338.937 {toY} 2424.0459 {toZ} 19.706 {time} 2100 {ease} False
camera_set_vector_track 342.7046 {fromY} 2425.832 {fromZ} 19.152 {toX} 338.0236 {toY} 2423.6389 {toZ} 19.7148 {time} 2100 {ease} False

:FINALEC_52621
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52652
wait 0
gosub @FINALEC_57174
goto @FINALEC_52621

:FINALEC_52652
camera_set_vector_move 338.937 {fromY} 2424.0459 {fromZ} 19.706 {toX} 334.282 {toY} 2422.0381 {toZ} 20.2581 {time} 2000 {ease} False
camera_set_vector_track 338.0236 {fromY} 2423.6389 {fromZ} 19.7148 {toX} 333.3536 {toY} 2421.666 {toZ} 20.2669 {time} 2000 {ease} False

:FINALEC_52726
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52757
wait 0
gosub @FINALEC_57174
goto @FINALEC_52726

:FINALEC_52757
camera_set_vector_move 334.282 {fromY} 2422.0381 {fromZ} 20.2581 {toX} 329.5525 {toY} 2420.2119 {toZ} 20.8101 {time} 2000 {ease} False
camera_set_vector_track 333.3536 {fromY} 2421.666 {fromZ} 20.2669 {toX} 328.611 {toY} 2419.875 {toZ} 20.8189 {time} 2000 {ease} False

:FINALEC_52831
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52862
wait 0
gosub @FINALEC_57174
goto @FINALEC_52831

:FINALEC_52862
camera_set_vector_move 329.5525 {fromY} 2420.2119 {fromZ} 20.8101 {toX} 324.7735 {toY} 2418.5161 {toZ} 21.3621 {time} 2000 {ease} False
camera_set_vector_track 328.611 {fromY} 2419.875 {fromZ} 20.8189 {toX} 323.8303 {toY} 2418.1841 {toZ} 21.371 {time} 2000 {ease} False

:FINALEC_52936
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_52967
wait 0
gosub @FINALEC_57174
goto @FINALEC_52936

:FINALEC_52967
camera_set_vector_move 324.7735 {fromY} 2418.5161 {fromZ} 21.3621 {toX} 320.0809 {toY} 2416.8789 {toZ} 21.9034 {time} 2000 {ease} False
camera_set_vector_track 323.8303 {fromY} 2418.1841 {fromZ} 21.371 {toX} 319.1361 {toY} 2416.552 {toZ} 21.9122 {time} 2000 {ease} False

:FINALEC_53041
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53072
wait 0
gosub @FINALEC_57174
goto @FINALEC_53041

:FINALEC_53072
camera_set_vector_move 320.0809 {fromY} 2416.8789 {fromZ} 21.9034 {toX} 315.103 {toY} 2415.156 {toZ} 22.477 {time} 2000 {ease} False
camera_set_vector_track 319.1361 {fromY} 2416.552 {fromZ} 21.9122 {toX} 314.1573 {toY} 2414.8311 {toZ} 22.4858 {time} 2000 {ease} False

:FINALEC_53146
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53177
wait 0
gosub @FINALEC_57174
goto @FINALEC_53146

:FINALEC_53177
camera_set_vector_move 315.103 {fromY} 2415.156 {fromZ} 22.477 {toX} 310.2042 {toY} 2413.5061 {toZ} 23.0399 {time} 2000 {ease} False
camera_set_vector_track 314.1573 {fromY} 2414.8311 {fromZ} 22.4858 {toX} 309.2525 {toY} 2413.198 {toZ} 23.0487 {time} 2000 {ease} False

:FINALEC_53251
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53282
wait 0
gosub @FINALEC_57174
goto @FINALEC_53251

:FINALEC_53282
camera_set_vector_move 310.2042 {fromY} 2413.5061 {fromZ} 23.0399 {toX} 305.2758 {toY} 2411.946 {toZ} 23.6028 {time} 2000 {ease} False
camera_set_vector_track 309.2525 {fromY} 2413.198 {fromZ} 23.0487 {toX} 304.3187 {toY} 2411.656 {toZ} 23.6116 {time} 2000 {ease} False

:FINALEC_53356
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53387
wait 0
gosub @FINALEC_57174
goto @FINALEC_53356

:FINALEC_53387
camera_set_vector_move 305.2758 {fromY} 2411.946 {fromZ} 23.6028 {toX} 300.3198 {toY} 2410.4761 {toZ} 24.1656 {time} 2000 {ease} False
camera_set_vector_track 304.3187 {fromY} 2411.656 {fromZ} 23.6116 {toX} 299.3576 {toY} 2410.2041 {toZ} 24.1744 {time} 2000 {ease} False

:FINALEC_53461
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53492
wait 0
gosub @FINALEC_57174
goto @FINALEC_53461

:FINALEC_53492
camera_set_vector_move 300.3198 {fromY} 2410.4761 {fromZ} 24.1656 {toX} 295.434 {toY} 2409.1221 {toZ} 24.7176 {time} 2000 {ease} False
camera_set_vector_track 299.3576 {fromY} 2410.2041 {fromZ} 24.1744 {toX} 294.4671 {toY} 2408.866 {toZ} 24.7265 {time} 2000 {ease} False

:FINALEC_53566
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53597
wait 0
gosub @FINALEC_57174
goto @FINALEC_53566

:FINALEC_53597
camera_set_vector_move 295.434 {fromY} 2409.1221 {fromZ} 24.7176 {toX} 290.4283 {toY} 2407.8311 {toZ} 25.2805 {time} 2000 {ease} False
camera_set_vector_track 294.4671 {fromY} 2408.866 {fromZ} 24.7265 {toX} 289.4569 {toY} 2407.593 {toZ} 25.2893 {time} 2000 {ease} False

:FINALEC_53671
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53702
wait 0
gosub @FINALEC_57174
goto @FINALEC_53671

:FINALEC_53702
camera_set_vector_move 290.4283 {fromY} 2407.8311 {fromZ} 25.2805 {toX} 285.3999 {toY} 2406.6311 {toZ} 25.8434 {time} 2000 {ease} False
camera_set_vector_track 289.4569 {fromY} 2407.593 {fromZ} 25.2893 {toX} 284.4244 {toY} 2406.4109 {toZ} 25.8522 {time} 2000 {ease} False

:FINALEC_53776
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53807
wait 0
gosub @FINALEC_57174
goto @FINALEC_53776

:FINALEC_53807
camera_set_vector_move 285.3999 {fromY} 2406.6311 {fromZ} 25.8434 {toX} 280.3567 {toY} 2405.488 {toZ} 26.4062 {time} 2000 {ease} False
camera_set_vector_track 284.4244 {fromY} 2406.4109 {fromZ} 25.8522 {toX} 279.3812 {toY} 2405.2681 {toZ} 26.415 {time} 2000 {ease} False

:FINALEC_53881
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_53912
wait 0
gosub @FINALEC_57174
goto @FINALEC_53881

:FINALEC_53912
camera_set_vector_move 280.3567 {fromY} 2405.488 {fromZ} 26.4062 {toX} 275.3135 {toY} 2404.3459 {toZ} 26.9691 {time} 2000 {ease} False
camera_set_vector_track 279.3812 {fromY} 2405.2681 {fromZ} 26.415 {toX} 274.338 {toY} 2404.126 {toZ} 26.9779 {time} 2000 {ease} False

:FINALEC_53986
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54017
wait 0
gosub @FINALEC_57174
goto @FINALEC_53986

:FINALEC_54017
camera_set_vector_move 275.3135 {fromY} 2404.3459 {fromZ} 26.9691 {toX} 270.3673 {toY} 2403.2251 {toZ} 27.5211 {time} 2000 {ease} False
camera_set_vector_track 274.338 {fromY} 2404.126 {fromZ} 26.9779 {toX} 269.3918 {toY} 2403.0049 {toZ} 27.5299 {time} 2000 {ease} False

:FINALEC_54091
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54122
wait 0
gosub @FINALEC_57174
goto @FINALEC_54091

:FINALEC_54122
camera_set_vector_move 270.3673 {fromY} 2403.2251 {fromZ} 27.5211 {toX} 265.4211 {toY} 2402.104 {toZ} 28.0732 {time} 2000 {ease} False
camera_set_vector_track 269.3918 {fromY} 2403.0049 {fromZ} 27.5299 {toX} 264.4456 {toY} 2401.885 {toZ} 28.082 {time} 2000 {ease} False

:FINALEC_54196
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54227
wait 0
gosub @FINALEC_57174
goto @FINALEC_54196

:FINALEC_54227
camera_set_vector_move 265.4211 {fromY} 2402.104 {fromZ} 28.0732 {toX} 262.4145 {toY} 2401.4231 {toZ} 28.4087 {time} 2000 {ease} False
camera_set_vector_track 264.4456 {fromY} 2401.885 {fromZ} 28.082 {toX} 261.439 {toY} 2401.2029 {toZ} 28.4175 {time} 2000 {ease} False

:FINALEC_54301
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54332
wait 0
gosub @FINALEC_57174
goto @FINALEC_54301

:FINALEC_54332
camera_set_vector_move 262.4145 {fromY} 2401.4231 {fromZ} 28.4087 {toX} 258.8261 {toY} 2400.6101 {toZ} 28.8092 {time} 2000 {ease} False
camera_set_vector_track 261.439 {fromY} 2401.2029 {fromZ} 28.4175 {toX} 257.8506 {toY} 2400.3899 {toZ} 28.818 {time} 2000 {ease} False

:FINALEC_54406
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54437
wait 0
gosub @FINALEC_57174
goto @FINALEC_54406

:FINALEC_54437
do_fade 6000 {direction} Fade.Out
camera_set_vector_move 258.8261 {fromY} 2400.6101 {fromZ} 28.8092 {toX} 253.8804 {toY} 2399.49 {toZ} 29.3612 {time} 2000 {ease} False
camera_set_vector_track 257.8506 {fromY} 2400.3899 {fromZ} 28.818 {toX} 252.9049 {toY} 2399.27 {toZ} 29.37 {time} 2000 {ease} False

:FINALEC_54518
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54549
wait 0
gosub @FINALEC_57174
goto @FINALEC_54518

:FINALEC_54549
camera_set_vector_move 253.8804 {fromY} 2399.49 {fromZ} 29.3612 {toX} 248.8379 {toY} 2398.3469 {toZ} 29.9241 {time} 2000 {ease} False
camera_set_vector_track 252.9049 {fromY} 2399.27 {fromZ} 29.37 {toX} 247.8624 {toY} 2398.127 {toZ} 29.9329 {time} 2000 {ease} False

:FINALEC_54623
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54654
wait 0
gosub @FINALEC_57174
goto @FINALEC_54623

:FINALEC_54654
camera_set_vector_move 248.8379 {fromY} 2398.3469 {fromZ} 29.9241 {toX} 244.0864 {toY} 2397.271 {toZ} 30.4545 {time} 2000 {ease} False
camera_set_vector_track 247.8624 {fromY} 2398.127 {fromZ} 29.9329 {toX} 243.1109 {toY} 2397.051 {toZ} 30.4633 {time} 2000 {ease} False

:FINALEC_54728
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54759
wait 0
gosub @FINALEC_57174
goto @FINALEC_54728

:FINALEC_54759
do_fade 0 {direction} Fade.Out

:FINALEC_54765
if 
  get_fading_status 
goto_if_false @FINALEC_54789
wait 0
goto @FINALEC_54765

:FINALEC_54789
set_char_coordinates $scplayer {x} 2012.444 {y} 2140.3831 {z} 78.0505
freeze_char_position $scplayer {state} True
set_time_of_day 0 {minutes} 0
wait 11000
do_fade 6000 {direction} Fade.In
camera_set_vector_move 2012.444 {fromY} 2140.3831 {fromZ} 76.5505 {toX} 2030.939 {toY} 2140.4189 {toZ} 76.5504 {time} 2900 {ease} False
camera_set_vector_track 2013.439 {fromY} 2140.385 {fromZ} 76.451 {toX} 2031.934 {toY} 2140.4209 {toZ} 76.4497 {time} 2900 {ease} False

:FINALEC_54908
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_54939
wait 0
gosub @FINALEC_57174
goto @FINALEC_54908

:FINALEC_54939
camera_set_vector_move 2030.939 {fromY} 2140.4189 {fromZ} 76.5504 {toX} 2051.375 {toY} 2140.459 {toZ} 75.0916 {time} 2900 {ease} False
camera_set_vector_track 2031.934 {fromY} 2140.4209 {fromZ} 76.4497 {toX} 2052.3491 {toY} 2140.4609 {toZ} 74.8638 {time} 2900 {ease} False

:FINALEC_55013
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55044
wait 0
gosub @FINALEC_57174
goto @FINALEC_55013

:FINALEC_55044
camera_set_vector_move 2051.375 {fromY} 2140.459 {fromZ} 75.0916 {toX} 2072.1089 {toY} 2140.5 {toZ} 71.7815 {time} 2900 {ease} False
camera_set_vector_track 2052.3491 {fromY} 2140.4609 {fromZ} 74.8638 {toX} 2073.061 {toY} 2140.502 {toZ} 71.4748 {time} 2900 {ease} False

:FINALEC_55118
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55149
wait 0
gosub @FINALEC_57174
goto @FINALEC_55118

:FINALEC_55149
camera_set_vector_move 2072.1089 {fromY} 2140.5 {fromZ} 71.7815 {toX} 2092.6179 {toY} 2140.541 {toZ} 67.3086 {time} 2900 {ease} False
camera_set_vector_track 2073.061 {fromY} 2140.502 {fromZ} 71.4748 {toX} 2093.5691 {toY} 2140.543 {toZ} 66.9993 {time} 2900 {ease} False

:FINALEC_55223
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55254
wait 0
gosub @FINALEC_57174
goto @FINALEC_55223

:FINALEC_55254
camera_set_vector_move 2092.6179 {fromY} 2140.541 {fromZ} 67.3086 {toX} 2114.1021 {toY} 2140.584 {toZ} 62.62 {time} 2900 {ease} False
camera_set_vector_track 2093.5691 {fromY} 2140.543 {fromZ} 66.9993 {toX} 2115.053 {toY} 2140.5859 {toZ} 62.3108 {time} 2900 {ease} False

:FINALEC_55328
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55359
wait 0
gosub @FINALEC_57174
goto @FINALEC_55328

:FINALEC_55359
camera_set_vector_move 2114.1021 {fromY} 2140.584 {fromZ} 62.62 {toX} 2135.5869 {toY} 2140.627 {toZ} 57.9315 {time} 2900 {ease} False
camera_set_vector_track 2115.053 {fromY} 2140.5859 {fromZ} 62.3108 {toX} 2136.5381 {toY} 2140.6289 {toZ} 57.6223 {time} 2900 {ease} False

:FINALEC_55433
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55464
wait 0
gosub @FINALEC_57174
goto @FINALEC_55433

:FINALEC_55464
camera_set_vector_move 2135.5869 {fromY} 2140.627 {fromZ} 57.9315 {toX} 2157.071 {toY} 2140.6699 {toZ} 53.2431 {time} 2900 {ease} False
camera_set_vector_track 2136.5381 {fromY} 2140.6289 {fromZ} 57.6223 {toX} 2158.022 {toY} 2140.6721 {toZ} 52.9338 {time} 2900 {ease} False

:FINALEC_55538
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55569
wait 0
gosub @FINALEC_57174
goto @FINALEC_55538

:FINALEC_55569
camera_set_vector_move 2157.071 {fromY} 2140.6699 {fromZ} 53.2431 {toX} 2179.0439 {toY} 2140.7141 {toZ} 48.4481 {time} 2900 {ease} False
camera_set_vector_track 2158.022 {fromY} 2140.6721 {fromZ} 52.9338 {toX} 2179.9951 {toY} 2140.7161 {toZ} 48.1388 {time} 2900 {ease} False

:FINALEC_55643
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55674
wait 0
gosub @FINALEC_57174
goto @FINALEC_55643

:FINALEC_55674
camera_set_vector_move 2179.0439 {fromY} 2140.7141 {fromZ} 48.4481 {toX} 2201.0171 {toY} 2140.7581 {toZ} 43.6528 {time} 2900 {ease} False
camera_set_vector_track 2179.9951 {fromY} 2140.7161 {fromZ} 48.1388 {toX} 2201.968 {toY} 2140.76 {toZ} 43.344 {time} 2900 {ease} False

:FINALEC_55748
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55779
wait 0
gosub @FINALEC_57174
goto @FINALEC_55748

:FINALEC_55779
camera_set_vector_move 2201.0171 {fromY} 2140.7581 {fromZ} 43.6528 {toX} 2222.665 {toY} 2140.801 {toZ} 39.8525 {time} 2900 {ease} False
camera_set_vector_track 2201.968 {fromY} 2140.76 {fromZ} 43.344 {toX} 2223.635 {toY} 2140.802 {toZ} 39.6117 {time} 2900 {ease} False

:FINALEC_55853
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55884
wait 0
gosub @FINALEC_57174
goto @FINALEC_55853

:FINALEC_55884
camera_set_vector_move 2222.665 {fromY} 2140.801 {fromZ} 39.8525 {toX} 2244.4709 {toY} 2140.844 {toZ} 37.0436 {time} 2900 {ease} False
camera_set_vector_track 2223.635 {fromY} 2140.802 {fromZ} 39.6117 {toX} 2245.4519 {toY} 2140.845 {toZ} 36.8518 {time} 2900 {ease} False

:FINALEC_55958
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_55989
wait 0
gosub @FINALEC_57174
goto @FINALEC_55958

:FINALEC_55989
camera_set_vector_move 2244.4709 {fromY} 2140.844 {fromZ} 37.0436 {toX} 2266.387 {toY} 2140.886 {toZ} 35.2987 {time} 2900 {ease} False
camera_set_vector_track 2245.4519 {fromY} 2140.845 {fromZ} 36.8518 {toX} 2267.3779 {toY} 2140.8879 {toZ} 35.1659 {time} 2900 {ease} False

:FINALEC_56063
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56094
wait 0
gosub @FINALEC_57174
goto @FINALEC_56063

:FINALEC_56094
camera_set_vector_move 2266.387 {fromY} 2140.886 {fromZ} 35.2987 {toX} 2287.8669 {toY} 2140.928 {toZ} 34.9542 {time} 2900 {ease} False
camera_set_vector_track 2267.3779 {fromY} 2140.8879 {fromZ} 35.1659 {toX} 2288.864 {toY} 2140.9299 {toZ} 34.8693 {time} 2900 {ease} False

:FINALEC_56168
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56199
wait 0
gosub @FINALEC_57174
goto @FINALEC_56168

:FINALEC_56199
camera_set_vector_move 2287.8669 {fromY} 2140.928 {fromZ} 34.9542 {toX} 2310.356 {toY} 2140.9719 {toZ} 35.284 {time} 2900 {ease} False
camera_set_vector_track 2288.864 {fromY} 2140.9299 {fromZ} 34.8693 {toX} 2311.353 {toY} 2140.9741 {toZ} 35.1991 {time} 2900 {ease} False

:FINALEC_56273
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56304
wait 0
gosub @FINALEC_57174
goto @FINALEC_56273

:FINALEC_56304
camera_set_vector_move 2310.356 {fromY} 2140.9719 {fromZ} 35.284 {toX} 2332.845 {toY} 2141.0161 {toZ} 35.6137 {time} 2900 {ease} False
camera_set_vector_track 2311.353 {fromY} 2140.9741 {fromZ} 35.1991 {toX} 2333.842 {toY} 2141.0181 {toZ} 35.5288 {time} 2900 {ease} False

:FINALEC_56378
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56409
wait 0
gosub @FINALEC_57174
goto @FINALEC_56378

:FINALEC_56409
set_music_does_fade True
camera_set_vector_move 2332.845 {fromY} 2141.0161 {fromZ} 35.6137 {toX} 2354.335 {toY} 2141.0581 {toZ} 35.9288 {time} 2900 {ease} False
camera_set_vector_track 2333.842 {fromY} 2141.0181 {fromZ} 35.5288 {toX} 2355.3311 {toY} 2141.0601 {toZ} 35.8439 {time} 2900 {ease} False

:FINALEC_56487
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56518
wait 0
gosub @FINALEC_57174
goto @FINALEC_56487

:FINALEC_56518
do_fade 4000 {direction} Fade.Out
camera_set_vector_move 2354.335 {fromY} 2141.0581 {fromZ} 35.9288 {toX} 2376.824 {toY} 2141.1021 {toZ} 36.2586 {time} 2900 {ease} False
camera_set_vector_track 2355.3311 {fromY} 2141.0601 {fromZ} 35.8439 {toX} 2377.8201 {toY} 2141.104 {toZ} 36.1737 {time} 2900 {ease} False

:FINALEC_56599
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56630
wait 0
gosub @FINALEC_57174
goto @FINALEC_56599

:FINALEC_56630
camera_set_vector_move 2376.824 {fromY} 2141.1021 {fromZ} 36.2586 {toX} 2399.813 {toY} 2141.147 {toZ} 36.5957 {time} 2900 {ease} False
camera_set_vector_track 2377.8201 {fromY} 2141.104 {fromZ} 36.1737 {toX} 2400.8091 {toY} 2141.1489 {toZ} 36.5108 {time} 2900 {ease} False

:FINALEC_56704
if 
  camera_is_vector_move_running 
goto_if_false @FINALEC_56735
wait 0
gosub @FINALEC_57174
goto @FINALEC_56704

:FINALEC_56735
297@ = 1

:FINALEC_56742
skip_cutscene_end 
if 
  297@ == 0
goto_if_false @FINALEC_56764
stop_credits 

:FINALEC_56764
set_music_does_fade True
do_fade 0 {direction} Fade.Out

:FINALEC_56774
if 
  get_fading_status 
goto_if_false @FINALEC_56798
wait 0
goto @FINALEC_56774

:FINALEC_56798
switch_widescreen False
release_weather 
force_weather_now WeatherType.SunnySmogLa
stop_beat_track 
freeze_char_position $scplayer {state} False
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} 2494.4829 {y} -1684.639 {z} 12.51
set_char_heading $scplayer {heading} 3.546
camera_reset_new_scriptables 
restore_camera_jumpcut 
set_camera_behind_player 
set_darkness_effect False {pitchBlack} -1
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0

:FINALEC_56878
if 
  not are_credits_finished 
goto_if_false @FINALEC_56902
wait 0
goto @FINALEC_56878

:FINALEC_56902
stop_beat_track 
stop_credits 
load_scene_in_direction 2495.1111 {y} -1687.04 {z} 12.55 {heading} 0.0
wait 500
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 300
do_fade 3500 {direction} Fade.In

:FINALEC_56950
if 
  get_fading_status 
goto_if_false @FINALEC_56974
wait 0
goto @FINALEC_56950

:FINALEC_56974
clear_wanted_level $player1
set_player_control $player1 {state} True
remove_weapon_from_char $scplayer {weaponType} WeaponType.MicroUzi
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 120
goto @FINALEC_57453
288@ = 11

:FINALEC_57016
goto @FINALEC_1817

:FINALEC_57023
if 
  204@ == 0
goto_if_false @FINALEC_57063
load_mission_audio MissionAudioSlot.Slot1 {audioId} 187@
set_lvar_text_label 185@s = 188@s
204@ = 1

:FINALEC_57063
return 

:FINALEC_57065
if 
  204@ == 1
goto_if_false @FINALEC_57119
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @FINALEC_57119
print_now 185@s {time} 4000 {flag} 1
play_mission_audio MissionAudioSlot.Slot1
204@ = 2

:FINALEC_57119
if 
  204@ == 2
goto_if_false @FINALEC_57172
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @FINALEC_57172
203@ += 1
clear_mission_audio MissionAudioSlot.Slot1
clear_prints 
204@ = 0

:FINALEC_57172
return 

:FINALEC_57174
$player_x, $player_y, $player_z = get_active_camera_coordinates 
$player_z += 1.5
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} $player_z
return 

:FINALEC_57211
184@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} 107@
close_sequence_task 184@
perform_sequence_task 102@ {sequence} 184@
clear_sequence_task 184@
return 

:FINALEC_57249
98@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_toggle_duck -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 98@
perform_sequence_task 102@ {sequence} 98@
clear_sequence_task 98@
return 

:FINALEC_57293
99@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_kill_char_on_foot -1 {target} $scplayer
close_sequence_task 99@
perform_sequence_task 102@ {sequence} 99@
clear_sequence_task 99@
return 

:FINALEC_57331
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
if 
  201@ == 1
goto_if_false @FINALEC_57383
print_now 'RM4_46' {time} 5000 {flag} 1

:FINALEC_57383
if 
  198@ == 7
goto_if_false @FINALEC_57417
print_now 'RM4_45' {time} 7000 {flag} 1

:FINALEC_57417
if 
  202@ == 1
goto_if_false @FINALEC_57451
print_now 'RM4_50' {time} 5000 {flag} 1

:FINALEC_57451
return 

:FINALEC_57453
clear_wanted_level $player1
register_mission_passed 'RIOT_4'
player_made_progress 1
set_int_stat StatId.CitiesPassed {value} 4
remove_blip $mansion_contact_blip
remove_blip $sweet_contact_blip
$flag_riot_mission_counter += 1
print_with_number_big 'M_PASSR' {num} 150 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 1
award_player_mission_respect 150
return 

:FINALEC_57527
set_railtrack_resistance_mult -1.0
clear_onscreen_counter $igripbardisplay_fc
clear_onscreen_counter $carhealth_fc
set_player_enter_car_button $player1 {enabled} True
remove_blip 115@
remove_blip 238@
remove_blip 239@
remove_blip 240@
remove_blip 241@
remove_blip 242@
remove_blip 243@
remove_blip 244@
remove_blip 245@
remove_blip 247@
remove_blip 248@
remove_blip 278@
remove_blip 279@
kill_fx_system 280@
kill_fx_system 281@
kill_fx_system 282@
kill_fx_system 283@
kill_fx_system 284@
kill_fx_system 285@
kill_fx_system 286@
remove_char_elegantly $sweet
remove_char_elegantly 49@
remove_char_elegantly 158@
remove_char_elegantly 159@
remove_all_script_fires 
set_wanted_multiplier 1.0
set_max_wanted_level 6
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 544
mark_model_as_no_longer_needed 280
mark_model_as_no_longer_needed 492
mark_model_as_no_longer_needed 533
remove_animation "FINALE"
remove_animation "FINALE2"
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 102
mark_model_as_no_longer_needed #LA_FUCKCAR1
mark_model_as_no_longer_needed #LA_FUCKCAR2
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 596
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 344
mark_model_as_no_longer_needed 110
mark_model_as_no_longer_needed 576
unload_special_character 1
unload_special_character 2
if 
  not is_car_dead 153@
goto_if_false @FINALEC_57830
set_car_proofs 153@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEC_57830
if 
  not is_car_dead 152@
goto_if_false @FINALEC_57868
lock_car_doors 152@ {lockStatus} CarLock.Unlocked
set_car_proofs 152@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEC_57868
if 
  is_player_playing $player1
goto_if_false @FINALEC_57906
shut_char_up $scplayer {state} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FINALEC_57906
release_weather 
switch_random_trains True
switch_emergency_services True
set_wanted_multiplier 1.0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 113---------------
// Originally: Shooting range

:SHRANGE
script_name 'SHRANGE'
set_deatharrest_state 0
$onmission = 1
$flag_shooting_range_mission = 1
$Schallenge_X = 286.1649
$Schallenge_Y = -30.9591
$8018 = 301.8877
$8022 = -77.2586
$8019 = 306.4883
$8023 = -141.9047
$8020 = 307.0919
$8024 = -159.2197
$sr_object_name[0] = -319
$sr_object_name[1] = -320
$sr_object_name[2] = -321
$sr_object_name[3] = -322
$sr_object_name[4] = -323
$sr_object_name[5] = -324
$sr_object_name[6] = -325
$sr_object_name[7] = -326
$target_offset_x[1] = 0.275
$target_offset_z[1] = -3.502
$target_offset_x[2] = -0.214
$target_offset_z[2] = -3.479
$target_offset_x[3] = 0.245
$target_offset_z[3] = -2.791
$target_offset_x[4] = -0.168
$target_offset_z[4] = -2.806
$target_offset_x[5] = 0.079
$target_offset_z[5] = -2.123
$target_offset_x[6] = -0.589
$target_offset_z[6] = -2.317
$target_offset_x[7] = -0.357
$target_offset_z[7] = -1.855
35@ = 290.6264
39@ = -24.5548
43@ = 1000.523
47@ = 3.0583
51@ = 6.1726
55@ = -13.6242
59@ = 0.0
36@ = 303.0788
40@ = -61.2269
44@ = 1000.523
48@ = 2.9464
52@ = 6.0799
56@ = -13.6242
60@ = 270.0
37@ = 300.1018
41@ = -137.0399
45@ = 1003.055
49@ = 3.1341
53@ = 6.1264
57@ = -13.6242
61@ = 90.0
38@ = 299.4518
42@ = -166.3517
46@ = 998.6105
50@ = 3.0055
54@ = 4.6018
58@ = -13.6242
62@ = 90.0
$sr_i = 0

:SHRANGE_600
if 
  3 > $sr_i
goto_if_false @SHRANGE_723
$SR_ped_can_be_created($sr_i,3i) = 1
$SR_ped_state($sr_i,3i) = 0
$SR_ped_weapon($sr_i,4i) = 0
$SR_range_level($sr_i,3i) = 0
$SR_target_state($sr_i,3i) = 0
$sr_target_rotation($sr_i,3f) = 90.0
$sr_time_to_new_target($sr_i,3i) = 0
$SR_targets_created($sr_i,3i) = 0
$sr_i += 1
goto @SHRANGE_600

:SHRANGE_723
$SR_mission_state = 0
$SR_flag = 0
$SR_time_check = 0
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed == 0
goto_if_false @SHRANGE_777
$range_weapons_open = 2

:SHRANGE_777
if 
  $Return_cities_passed == 1
goto_if_false @SHRANGE_827
if 
  $range_weapons_open == 2
goto_if_false @SHRANGE_820
$trigger_new_range_level = 1

:SHRANGE_820
$range_weapons_open = 3

:SHRANGE_827
if 
  $Return_cities_passed > 1
goto_if_false @SHRANGE_877
if 
  4 > $range_weapons_open
goto_if_false @SHRANGE_870
$trigger_new_range_level = 1

:SHRANGE_870
$range_weapons_open = 4

:SHRANGE_877
$sr_Dec = copy_char_decision_maker DecisionMakerCharTemplate.RandomNorm
clear_char_decision_maker_event_response $sr_Dec {event} Event.ShotFired
add_char_decision_maker_event_response $sr_Dec {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1801
request_model #TARGET_HEAD
request_model #TARGET_LARM
request_model #TARGET_RARM
request_model #TARGET_LLEG
request_model #TARGET_RLEG
request_model #TARGET_RTORSO
request_model #TARGET_LTORSO
request_model #TARGET_FRAME
request_model 346
request_model 352
request_model 349
request_model 355

:SHRANGE_995
if or
  not has_model_loaded 346
  not has_model_loaded 352
  not has_model_loaded 349
  not has_model_loaded 355
goto_if_false @SHRANGE_1037
wait 0
goto @SHRANGE_995

:SHRANGE_1037
if or
  not has_model_loaded #TARGET_HEAD
  not has_model_loaded #TARGET_LARM
  not has_model_loaded #TARGET_RARM
  not has_model_loaded #TARGET_LLEG
  not has_model_loaded #TARGET_RLEG
goto_if_false @SHRANGE_1084
wait 0
goto @SHRANGE_1037

:SHRANGE_1084
if or
  not has_model_loaded #TARGET_RTORSO
  not has_model_loaded #TARGET_LTORSO
  not has_model_loaded #TARGET_FRAME
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @SHRANGE_1125
wait 0
goto @SHRANGE_1084

:SHRANGE_1125
if 
  $flag_shooting_range_mission == 47
goto_if_false @SHRANGE_1201
$sr_target[0] = create_object_no_offset $sr_object_name($sr_i,8i) {x} 293.757 {y} 1.0 {z} 1000.516
$SR_ped[0] = create_random_char $x {y} $y {z} $z
$sr_obj = create_object 338 {x} $x {y} $y {z} $z

:SHRANGE_1201
$sr_area = get_area_visible 

:SHRANGE_1206
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @SHRANGE_1298
$sr_i = 9

:SHRANGE_1228
if 
  16 > $sr_i
goto_if_false @SHRANGE_1291
if 
  does_object_exist $sr_target($sr_i,24i)
goto_if_false @SHRANGE_1277
break_object $sr_target($sr_i,24i) {intensity} 1

:SHRANGE_1277
$sr_i += 1
goto @SHRANGE_1228

:SHRANGE_1291
$8126 = 20

:SHRANGE_1298
wait 0
$sr_i = get_area_visible 
if 
  not is_int_var_equal_to_int_var $sr_i == $sr_area
goto_if_false @SHRANGE_1333
goto @SHRANGE_17017

:SHRANGE_1333
if 
  is_player_playing $player1
goto_if_false @SHRANGE_1370
gosub @SHRANGE_13478
gosub @SHRANGE_11089
gosub @SHRANGE_1379

:SHRANGE_1370
goto @SHRANGE_1206
terminate_this_script 

:SHRANGE_1379
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @SHRANGE_1444
if 
  $SR_mission_state <> 0
goto_if_false @SHRANGE_1444
clear_prints 
34@ = 1
$SR_mission_state = 20
$SR_flag = 1
$SR_time_check = 0

:SHRANGE_1444
switch_start $SR_mission_state {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_11087 {caseNum1} 0 {caseLabel1} @SHRANGE_1507 {caseNum2} 1 {caseLabel2} @SHRANGE_1813 {caseNum3} 2 {caseLabel3} @SHRANGE_5136 {caseNum4} 3 {caseLabel4} @SHRANGE_5349 {caseNum5} 4 {caseLabel5} @SHRANGE_6544 {caseNum6} 5 {caseLabel6} @SHRANGE_8395 {caseNum7} 20 {caseLabel7} @SHRANGE_10212

:SHRANGE_1507
if 
  $SR_range_id == 0
goto_if_false @SHRANGE_1580
if 
  locate_char_any_means_3d $scplayer {x} 286.1649 {y} -30.9591 {z} 1000.516 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1580
$SR_mission_state = 1

:SHRANGE_1580
if 
  $SR_range_id == 1
goto_if_false @SHRANGE_1653
if 
  locate_char_any_means_3d $scplayer {x} 301.8877 {y} -77.2586 {z} 1000.523 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1653
$SR_mission_state = 1

:SHRANGE_1653
if 
  $SR_range_id == 2
goto_if_false @SHRANGE_1726
if 
  locate_char_any_means_3d $scplayer {x} 306.4883 {y} -141.9047 {z} 1003.055 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1726
$SR_mission_state = 1

:SHRANGE_1726
if 
  $SR_range_id == 3
goto_if_false @SHRANGE_1799
if 
  locate_char_any_means_3d $scplayer {x} 307.0919 {y} -159.2197 {z} 998.601 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @SHRANGE_1799
$SR_mission_state = 1

:SHRANGE_1799
64@ = 0
goto @SHRANGE_11087

:SHRANGE_1813
if 
  $range_cuts_watched > 0
goto_if_false @SHRANGE_1881
if and
  7 > $SR_flag
  $SR_flag > 0
goto_if_false @SHRANGE_1881
$SR_flag = 7
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
clear_prints 

:SHRANGE_1881
if 
  $SR_flag == 0
goto_if_false @SHRANGE_2033
34@ = 0
set_player_cycle_weapon_button $player1 {enabled} False
$WeaponType, $ammo, $ModelForWeaponType = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Pistols
$8136, $8132, $8140 = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Shotguns
$8137, $8133, $8141 = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.SMG
$8138, $8134, $8142 = get_char_weapon_in_slot $scplayer {weaponSlotId} WeaponSlot.Assault
$SR_skill_won = 0
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
show_update_stats False
do_fade 1000 {direction} Fade.Out
$SR_flag = 1
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1500

:SHRANGE_2033
if 
  $SR_flag == 1
goto_if_false @SHRANGE_2267
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_2267
switch_widescreen True
clear_prints 
print 'ANR_1' {time} 4000 {flag} 1
print 'ANR_2' {time} 4000 {flag} 1
print 'ANR_3' {time} 4000 {flag} 1
$sr_float3 = -0.83
$sr_float4 = 0.47
$z = 1.7
gosub @SHRANGE_16849
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float3 = 0.17
$sr_float4 = 0.63
$z = 1.7
gosub @SHRANGE_16849
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
$SR_flag = 2
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 4000

:SHRANGE_2267
if 
  $SR_flag == 2
goto_if_false @SHRANGE_2461
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_2461
$SR_ped_state[1] = 3
$SR_ped_can_be_created[1] = 0
$sr_float3 = -0.63
$sr_float4 = -3.47
$z = 0.2
gosub @SHRANGE_16849
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float3 = 0.4
$sr_float4 = -2.5
$z = 0.5
gosub @SHRANGE_16849
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
$SR_flag = 3
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 2000

:SHRANGE_2461
if 
  $SR_flag == 3
goto_if_false @SHRANGE_2590
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_2590
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 99999
$sr_float3 = 0.0
add_float_lvar_to_float_var $sr_float3 += 47@($SR_range_id,4f)
$sr_float4 = -1.0
gosub @SHRANGE_16849
task_go_straight_to_coord $scplayer {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2
$SR_flag = 4
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 3000

:SHRANGE_2590
if 
  $SR_flag == 4
goto_if_false @SHRANGE_3034
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_3034
$SR_ped_state[1] = 4
set_var_float_to_lvar_float $sr_float1 = 59@($SR_range_id,4f)
$sr_float1 += 90.0
set_char_heading $scplayer {heading} $sr_float1
set_var_float_to_lvar_float $sr_float3 = 47@($SR_range_id,4f)
$sr_float3 -= 0.8201
$sr_float4 = -0.4944
$z = 2.1312
gosub @SHRANGE_16849
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_var_float_to_lvar_float $sr_float3 = 47@($SR_range_id,4f)
$sr_float3 -= 0.1125
$sr_float4 = -0.0237
$z = 1.6042
gosub @SHRANGE_16849
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
set_var_float_to_lvar_float $sr_float3 = 47@($SR_range_id,4f)
$sr_float4 = -2.0
$z = 0.0
gosub @SHRANGE_16849
set_char_coordinates_dont_warp_gang $scplayer {x} $x {y} $y {z} $z
set_var_float_to_lvar_float $sr_float3 = 47@($SR_range_id,4f)
$sr_float4 = 0.0
$z = 0.0
gosub @SHRANGE_16849
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)
task_go_straight_to_coord $scplayer {x} $x {y} $y {z} $z {speed} MoveState.Walk {time} -2
if 
  $SR_skill_won == 0
goto_if_false @SHRANGE_2955
$SR_ped_weapon[0] = 1
$SR_ped_weapon[2] = 1

:SHRANGE_2955
$SR_ped_state[0] = 1
$SR_ped_state[2] = 1
$SR_target_state[0] = 0
$SR_target_state[1] = 0
$SR_target_state[2] = 0
$SR_range_level[0] = 1
$SR_range_level[1] = 1
$SR_range_level[2] = 1
$SR_flag = 5
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 3000

:SHRANGE_3034
if 
  $SR_flag == 5
goto_if_false @SHRANGE_3225
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_3225
clear_prints 
print_big 'ANR_6' {time} 2000 {style} TextStyle.Middle
$sr_float3 = 2.1566
$sr_float4 = 2.4369
$z = 1.4565
gosub @SHRANGE_16849
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float3 = 1.9771
$sr_float4 = 3.4129
$z = 1.3326
gosub @SHRANGE_16849
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
$SR_flag = 6
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 3000

:SHRANGE_3225
if 
  $SR_flag == 6
goto_if_false @SHRANGE_3464
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_3464
if 
  not is_char_dead $SR_ped[0]
goto_if_false @SHRANGE_3285
set_char_accuracy $SR_ped[0] {accuracy} 100

:SHRANGE_3285
clear_this_big_print 'ANR_6'
print 'ANR_7' {time} 4000 {flag} 1
print 'ANR_10' {time} 4000 {flag} 1
$sr_float3 = 0.7525
$sr_float4 = -0.3628
$z = 1.6174
gosub @SHRANGE_16849
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float3 = 0.1734
$sr_float4 = 0.446
$z = 1.5146
gosub @SHRANGE_16849
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
$SR_flag = 7
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 8000

:SHRANGE_3464
if 
  $SR_flag == 7
goto_if_false @SHRANGE_3595
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_3595
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_3517

:SHRANGE_3517
if 
  $range_cuts_watched == 0
goto_if_false @SHRANGE_3572
$range_cuts_watched = 1
do_fade 1000 {direction} Fade.Out
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
goto @SHRANGE_3588

:SHRANGE_3572
print_big 'ANR_6' {time} 2000 {style} TextStyle.Middle

:SHRANGE_3588
$SR_flag = 8

:SHRANGE_3595
if 
  $SR_flag == 8
goto_if_false @SHRANGE_3903
if and
  not get_fading_status 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_3903
set_var_float_to_lvar_float $sr_float3 = 47@($SR_range_id,4f)
$sr_float4 = 0.0
$z = 0.0
gosub @SHRANGE_16849
if 
  not does_object_exist $sr_obj
goto_if_false @SHRANGE_3725
$sr_obj = create_object 338 {x} $x {y} $y {z} $z
set_object_visible $sr_obj {state} False
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)

:SHRANGE_3725
clear_char_tasks_immediately $scplayer
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
set_player_duck_button $player1 {enabled} False
if 
  $SR_skill_won == 0
goto_if_false @SHRANGE_3799
give_weapon_to_char $scplayer {weaponType} WeaponType.Pistol {ammo} 99999

:SHRANGE_3799
$SR_ped_state[1] = 4
$SR_ped_can_be_created[1] = 0
$SR_flag = 9
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 800
if 
  $SR_skill_won == 0
goto_if_false @SHRANGE_3868
$SR_ped_weapon[0] = 1
$SR_ped_weapon[2] = 1

:SHRANGE_3868
$SR_ped_state[0] = 1
$SR_ped_state[2] = 1
$SR_target_state[0] = 4
$SR_target_state[1] = 4
$SR_target_state[2] = 4

:SHRANGE_3903
if 
  $SR_flag == 9
goto_if_false @SHRANGE_4082
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_4082
do_fade 1000 {direction} Fade.In
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
$SR_target_state[0] = 0
$SR_target_state[1] = 0
$SR_target_state[2] = 0
$SR_range_level[0] = 1
$SR_range_level[1] = 1
$SR_range_level[2] = 1
if 
  $trigger_new_range_level == 1
goto_if_false @SHRANGE_4075
print_help 'ANR_56'
$trigger_new_range_level = 0

:SHRANGE_4075
$SR_flag = 10

:SHRANGE_4082
if 
  $SR_flag == 10
goto_if_false @SHRANGE_4165
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_4165
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 11
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
set_player_control $player1 {state} True

:SHRANGE_4165
if 
  $SR_flag == 11
goto_if_false @SHRANGE_4241
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_4241
print_big 'RACE3' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 12
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000

:SHRANGE_4241
if 
  $SR_flag == 12
goto_if_false @SHRANGE_4317
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_4317
print_big 'RACE4' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 13
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000

:SHRANGE_4317
if 
  $SR_flag == 13
goto_if_false @SHRANGE_4400
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_4400
print_big 'RACE5' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 14
if 
  not is_char_dead $SR_ped[0]
goto_if_false @SHRANGE_4400
set_char_accuracy $SR_ped[0] {accuracy} 80

:SHRANGE_4400
if 
  $SR_flag == 14
goto_if_false @SHRANGE_4432
$SR_mission_state = 2
$SR_flag = 0

:SHRANGE_4432
if 
  $SR_flag == 16
goto_if_false @SHRANGE_4651
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_4651
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_4621
if 
  not does_object_exist $sr_obj
goto_if_false @SHRANGE_4621
set_var_float_to_lvar_float $sr_float3 = 47@($SR_range_id,4f)
$sr_float4 = 0.0
$z = 0.0
gosub @SHRANGE_16849
$sr_obj = create_object 338 {x} $x {y} $y {z} $z
set_object_visible $sr_obj {state} False
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
restore_camera_jumpcut 
switch_widescreen False
set_player_duck_button $player1 {enabled} False

:SHRANGE_4621
do_fade 1000 {direction} Fade.Out
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 2500
$SR_flag = 17

:SHRANGE_4651
if 
  $SR_flag == 17
goto_if_false @SHRANGE_5036
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_5036
if 
  $SR_skill_won == 3
goto_if_false @SHRANGE_4755
give_weapon_to_char $scplayer {weaponType} WeaponType.MicroUzi {ammo} 99999
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.MicroUzi

:SHRANGE_4755
if 
  $SR_skill_won == 6
goto_if_false @SHRANGE_4822
give_weapon_to_char $scplayer {weaponType} WeaponType.Shotgun {ammo} 99999
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Shotgun

:SHRANGE_4822
if 
  $SR_skill_won == 9
goto_if_false @SHRANGE_4889
give_weapon_to_char $scplayer {weaponType} WeaponType.Ak47 {ammo} 99999
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Ak47

:SHRANGE_4889
do_fade 1000 {direction} Fade.In
clear_prints 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
if 
  $SR_skill_won == 3
goto_if_false @SHRANGE_4945
print_big 'ANR_47' {time} 3000 {style} TextStyle.Middle

:SHRANGE_4945
if 
  $SR_skill_won == 6
goto_if_false @SHRANGE_4979
print_big 'ANR_23' {time} 3000 {style} TextStyle.Middle

:SHRANGE_4979
if 
  $SR_skill_won == 9
goto_if_false @SHRANGE_5013
print_big 'ANR_50' {time} 3000 {style} TextStyle.Middle

:SHRANGE_5013
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 4000
$SR_flag = 18

:SHRANGE_5036
if 
  $SR_flag == 18
goto_if_false @SHRANGE_5129
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_5129
$SR_target_state[0] = 0
$SR_target_state[1] = 0
$SR_target_state[2] = 0
64@ = 0
$SR_range_level[0] = 1
$SR_range_level[1] = 1
$SR_range_level[2] = 1
$SR_flag = 10

:SHRANGE_5129
goto @SHRANGE_11087

:SHRANGE_5136
if 
  $SR_flag == 0
goto_if_false @SHRANGE_5207
if 
  not is_char_dead $SR_ped[0]
goto_if_false @SHRANGE_5177
set_char_accuracy $SR_ped[0] {accuracy} 87

:SHRANGE_5177
if 
  not is_char_dead $SR_ped[2]
goto_if_false @SHRANGE_5200
set_char_accuracy $SR_ped[2] {accuracy} 87

:SHRANGE_5200
$SR_flag = 1

:SHRANGE_5207
if 
  $SR_flag == 1
goto_if_false @SHRANGE_5342
if and
  $SR_target_state[0] == 3
  $SR_range_level[0] == 3
goto_if_false @SHRANGE_5264
$SR_mission_state = 20
$SR_flag = 0

:SHRANGE_5264
if and
  $SR_target_state[2] == 3
  $SR_range_level[2] == 3
goto_if_false @SHRANGE_5303
$SR_mission_state = 20
$SR_flag = 0

:SHRANGE_5303
if and
  $SR_target_state[1] == 3
  $SR_range_level[1] == 3
goto_if_false @SHRANGE_5342
$SR_mission_state = 3
$SR_flag = 0

:SHRANGE_5342
goto @SHRANGE_11087

:SHRANGE_5349
if 
  $SR_flag == 0
goto_if_false @SHRANGE_5946
if or
  $SR_skill_won == 0
  $SR_skill_won == 3
  $SR_skill_won == 6
  $SR_skill_won == 9
goto_if_false @SHRANGE_5422
print_big 'ANR_41' {time} 2000 {style} TextStyle.Middle

:SHRANGE_5422
if or
  $SR_skill_won == 1
  $SR_skill_won == 4
  $SR_skill_won == 7
  $SR_skill_won == 10
goto_if_false @SHRANGE_5477
print_big 'ANR_42' {time} 2000 {style} TextStyle.Middle

:SHRANGE_5477
if or
  $SR_skill_won == 2
  $SR_skill_won == 5
  $SR_skill_won == 8
goto_if_false @SHRANGE_5546
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 5500
$SR_target_state[0] = 5
$SR_target_state[1] = 5
$SR_target_state[2] = 5

:SHRANGE_5546
if 
  $SR_skill_won == 11
goto_if_false @SHRANGE_5617
print_big 'ANR_45' {time} 3000 {style} TextStyle.Middle
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 5500
$SR_target_state[0] = 5
$SR_target_state[1] = 5
$SR_target_state[2] = 5

:SHRANGE_5617
if 
  is_int_var_equal_to_int_var $SR_skill_won == $SR_skill_award_given
goto_if_false @SHRANGE_5939
if or
  $SR_skill_won == 0
  $SR_skill_won == 1
goto_if_false @SHRANGE_5670
increment_float_stat StatId.WeapontypePistolSkill {value} 50.0

:SHRANGE_5670
if or
  $SR_skill_won == 3
  $SR_skill_won == 4
goto_if_false @SHRANGE_5704
increment_float_stat StatId.WeapontypeMicroUziSkill {value} 50.0

:SHRANGE_5704
if or
  $SR_skill_won == 6
  $SR_skill_won == 7
goto_if_false @SHRANGE_5738
increment_float_stat StatId.WeapontypeShotgunSkill {value} 50.0

:SHRANGE_5738
if or
  $SR_skill_won == 9
  $SR_skill_won == 10
goto_if_false @SHRANGE_5772
increment_float_stat StatId.WeapontypeAk47Skill {value} 50.0

:SHRANGE_5772
if 
  $SR_skill_won == 2
goto_if_false @SHRANGE_5803
increment_float_stat StatId.WeapontypePistolSkill {value} 100.0
player_made_progress 1

:SHRANGE_5803
if 
  $SR_skill_won == 5
goto_if_false @SHRANGE_5834
increment_float_stat StatId.WeapontypeMicroUziSkill {value} 100.0
player_made_progress 1

:SHRANGE_5834
if 
  $SR_skill_won == 8
goto_if_false @SHRANGE_5865
increment_float_stat StatId.WeapontypeShotgunSkill {value} 100.0
player_made_progress 1

:SHRANGE_5865
if 
  $SR_skill_won == 11
goto_if_false @SHRANGE_5924
increment_float_stat StatId.WeapontypeAk47Skill {value} 100.0
set_float_stat StatId.WeapontypePistolSkill {value} 1000.0
add_score $player1 {money} 10000
player_made_progress 1
play_mission_passed_tune 2
$player_has_fast_reload = 1

:SHRANGE_5924
$SR_skill_award_given += 1
set_int_stat StatId.ShootingRangeScore {value} $SR_skill_award_given

:SHRANGE_5939
$SR_flag = 1

:SHRANGE_5946
if 
  $SR_flag == 1
goto_if_false @SHRANGE_6537
if 
  $SR_skill_won == 0
goto_if_false @SHRANGE_5996
$SR_mission_state = 4
$SR_flag = 0

:SHRANGE_5996
if or
  $SR_skill_won == 3
  $SR_skill_won == 6
  $SR_skill_won == 9
goto_if_false @SHRANGE_6042
$SR_mission_state = 4
$SR_flag = 10

:SHRANGE_6042
if 
  $SR_skill_won == 1
goto_if_false @SHRANGE_6074
$SR_mission_state = 5
$SR_flag = 0

:SHRANGE_6074
if or
  $SR_skill_won == 4
  $SR_skill_won == 7
  $SR_skill_won == 10
goto_if_false @SHRANGE_6120
$SR_mission_state = 5
$SR_flag = 10

:SHRANGE_6120
if or
  $SR_skill_won == 2
  $SR_skill_won == 5
  $SR_skill_won == 8
goto_if_false @SHRANGE_6166
$SR_mission_state = 1
$SR_flag = 16

:SHRANGE_6166
if 
  $SR_skill_won == 2
goto_if_false @SHRANGE_6228
$SR_ped_weapon[0] = 2
$SR_ped_weapon[2] = 2
$SR_ped_state[0] = 1
$SR_ped_state[2] = 1
print_big 'ANR_29' {time} 2000 {style} TextStyle.Middle

:SHRANGE_6228
if 
  $SR_skill_won == 5
goto_if_false @SHRANGE_6290
$SR_ped_weapon[0] = 3
$SR_ped_weapon[2] = 3
$SR_ped_state[0] = 1
$SR_ped_state[2] = 1
print_big 'ANR_53' {time} 2000 {style} TextStyle.Middle

:SHRANGE_6290
if 
  $SR_skill_won == 8
goto_if_false @SHRANGE_6352
$SR_ped_weapon[0] = 4
$SR_ped_weapon[2] = 4
$SR_ped_state[0] = 1
$SR_ped_state[2] = 1
print_big 'ANR_31' {time} 2000 {style} TextStyle.Middle

:SHRANGE_6352
if 
  $SR_skill_won == 5
goto_if_false @SHRANGE_6425
if 
  2 >= $range_weapons_open
goto_if_false @SHRANGE_6409
$SR_mission_state = 20
$SR_flag = 1
goto @SHRANGE_6425

:SHRANGE_6409
print 'ANR_44' {time} 4000 {flag} 1

:SHRANGE_6425
if 
  $SR_skill_won == 8
goto_if_false @SHRANGE_6498
if 
  3 >= $range_weapons_open
goto_if_false @SHRANGE_6482
$SR_mission_state = 20
$SR_flag = 1
goto @SHRANGE_6498

:SHRANGE_6482
print 'ANR_44' {time} 4000 {flag} 1

:SHRANGE_6498
if 
  $SR_skill_won == 11
goto_if_false @SHRANGE_6530
$SR_mission_state = 20
$SR_flag = 1

:SHRANGE_6530
$SR_skill_won += 1

:SHRANGE_6537
goto @SHRANGE_11087

:SHRANGE_6544
if 
  $SR_flag == 0
goto_if_false @SHRANGE_6655
$SR_targets_created[0] = 0
$SR_targets_created[1] = 0
$SR_targets_created[2] = 0
$SR_target_state[0] = 5
$SR_target_state[1] = 5
$SR_target_state[2] = 5
$SR_range_level[0] = 4
$SR_range_level[1] = 4
$SR_range_level[2] = 4
$SR_flag = 1
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 6000
64@ = 0

:SHRANGE_6655
if 
  $SR_flag == 1
goto_if_false @SHRANGE_6748
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_6748
if 
  3 > $range_cuts_watched
goto_if_false @SHRANGE_6725
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SHRANGE_6725
$SR_flag = 2
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1500

:SHRANGE_6748
if 
  $SR_flag == 2
goto_if_false @SHRANGE_7053
if 
  $range_cuts_watched > 1
goto_if_false @SHRANGE_6857
clear_prints 
if 
  does_object_exist $sr_target[8]
goto_if_false @SHRANGE_6807
delete_object $sr_target[8]

:SHRANGE_6807
clear_this_big_print 'ANR_18'
clear_this_big_print 'ANR_19'
$SR_time_check = 0
$SR_flag = 3
$SR_time_check = 0
goto @SHRANGE_7053

:SHRANGE_6857
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_7053
set_player_control $player1 {state} False
switch_widescreen True
clear_this_big_print 'ANR_41'
print_big 'ANR_18' {time} 4000 {style} TextStyle.Middle
print 'ANR_9' {time} 4000 {flag} 1
print 'ANR_10' {time} 3000 {flag} 1
$sr_float3 = -2.0835
$sr_float4 = 6.0428
$z = 0.0387
gosub @SHRANGE_16849
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$SR_flag = 3
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
$SR_target_state[0] = 0
$SR_target_state[1] = 0
$SR_target_state[2] = 0

:SHRANGE_7053
if 
  $SR_flag == 3
goto_if_false @SHRANGE_7127
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_7127
do_fade 1000 {direction} Fade.In
$SR_flag = 4
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 6000
64@ = 0

:SHRANGE_7127
if 
  $SR_flag == 4
goto_if_false @SHRANGE_7709
if 
  $range_cuts_watched == 1
goto_if_false @SHRANGE_7216
if 
  does_object_exist $sr_target[8]
goto_if_false @SHRANGE_7216
$x, $y, $z = get_object_coordinates $sr_target[8]
$z -= 2.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:SHRANGE_7216
if or
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
  $range_cuts_watched > 1
goto_if_false @SHRANGE_7709
if 
  not get_fading_status 
goto_if_false @SHRANGE_7489
if 
  $range_cuts_watched == 1
goto_if_false @SHRANGE_7312
if 
  64@ == 0
goto_if_false @SHRANGE_7305
do_fade 1000 {direction} Fade.Out
64@ = 1

:SHRANGE_7305
goto @SHRANGE_7489

:SHRANGE_7312
if 
  64@ == 0
goto_if_false @SHRANGE_7489
if 
  $SR_skill_won == 1
goto_if_false @SHRANGE_7364
print_big 'ANR_18' {time} 3000 {style} TextStyle.Middle

:SHRANGE_7364
if 
  $SR_skill_won == 4
goto_if_false @SHRANGE_7398
print_big 'ANR_48' {time} 3000 {style} TextStyle.Middle

:SHRANGE_7398
if 
  $SR_skill_won == 7
goto_if_false @SHRANGE_7432
print_big 'ANR_24' {time} 3000 {style} TextStyle.Middle

:SHRANGE_7432
if 
  $SR_skill_won == 10
goto_if_false @SHRANGE_7466
print_big 'ANR_51' {time} 3000 {style} TextStyle.Middle

:SHRANGE_7466
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
64@ = 1

:SHRANGE_7489
if 
  not get_fading_status 
goto_if_false @SHRANGE_7709
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_7709
if 
  2 > $range_cuts_watched
goto_if_false @SHRANGE_7621
if 
  64@ == 1
goto_if_false @SHRANGE_7621
64@ = 2
do_fade 700 {direction} Fade.In
$range_cuts_watched = 2
restore_camera_jumpcut 
switch_widescreen False
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol

:SHRANGE_7621
$SR_target_state[0] = 0
$SR_target_state[1] = 0
$SR_target_state[2] = 0
$SR_targets_created[0] = 0
$SR_targets_created[1] = 0
$SR_targets_created[2] = 0
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 5
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
set_player_control $player1 {state} True

:SHRANGE_7709
if 
  $SR_flag == 5
goto_if_false @SHRANGE_7785
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_7785
print_big 'RACE3' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 6
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000

:SHRANGE_7785
if 
  $SR_flag == 6
goto_if_false @SHRANGE_7861
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_7861
print_big 'RACE4' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 7
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000

:SHRANGE_7861
if 
  $SR_flag == 7
goto_if_false @SHRANGE_7921
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_7921
print_big 'RACE5' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 8

:SHRANGE_7921
if 
  $SR_flag == 8
goto_if_false @SHRANGE_8056
if and
  $SR_target_state[0] == 3
  $SR_targets_created[0] == 3
goto_if_false @SHRANGE_7978
$SR_mission_state = 20
$SR_flag = 0

:SHRANGE_7978
if and
  $SR_target_state[2] == 3
  $SR_targets_created[2] == 3
goto_if_false @SHRANGE_8017
$SR_mission_state = 20
$SR_flag = 0

:SHRANGE_8017
if and
  $SR_target_state[1] == 3
  $SR_targets_created[1] == 3
goto_if_false @SHRANGE_8056
$SR_mission_state = 3
$SR_flag = 0

:SHRANGE_8056
if 
  $SR_flag == 10
goto_if_false @SHRANGE_8102
$SR_target_state[0] = 5
$SR_target_state[1] = 5
$SR_target_state[2] = 5
$SR_flag = 11

:SHRANGE_8102
if 
  $SR_flag == 11
goto_if_false @SHRANGE_8279
if and
  $SR_target_state[0] == 99
  $SR_target_state[1] == 99
  $SR_target_state[2] == 99
goto_if_false @SHRANGE_8279
clear_prints 
if 
  $SR_skill_won == 4
goto_if_false @SHRANGE_8188
print_big 'ANR_48' {time} 3000 {style} TextStyle.Middle

:SHRANGE_8188
if 
  $SR_skill_won == 7
goto_if_false @SHRANGE_8222
print_big 'ANR_24' {time} 3000 {style} TextStyle.Middle

:SHRANGE_8222
if 
  $SR_skill_won == 10
goto_if_false @SHRANGE_8256
print_big 'ANR_51' {time} 3000 {style} TextStyle.Middle

:SHRANGE_8256
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 4000
$SR_flag = 12

:SHRANGE_8279
if 
  $SR_flag == 12
goto_if_false @SHRANGE_8388
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_8388
$SR_range_level[0] = 4
$SR_range_level[1] = 4
$SR_range_level[2] = 4
$SR_targets_created[0] = 0
$SR_targets_created[1] = 0
$SR_targets_created[2] = 0
$SR_flag = 4
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
set_player_control $player1 {state} True

:SHRANGE_8388
goto @SHRANGE_11087

:SHRANGE_8395
if 
  $range_cuts_watched > 2
goto_if_false @SHRANGE_8452
if and
  4 > $SR_flag
  $SR_flag > 1
goto_if_false @SHRANGE_8452
$SR_time_check = 0
$SR_flag = 4

:SHRANGE_8452
if 
  $SR_flag == 0
goto_if_false @SHRANGE_8577
$sr_Score = 0
$8126 = 0
$8127 = 0
$SR_targets_created[0] = 0
$SR_targets_created[1] = 0
$SR_targets_created[2] = 0
$SR_target_state[0] = 5
$SR_target_state[1] = 5
$SR_target_state[2] = 5
$SR_range_level[0] = 0
$SR_range_level[1] = 5
$SR_range_level[2] = 0
$SR_flag = 1
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 8000

:SHRANGE_8577
if 
  $SR_flag == 1
goto_if_false @SHRANGE_8670
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_8670
if 
  3 > $range_cuts_watched
goto_if_false @SHRANGE_8647
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:SHRANGE_8647
$SR_flag = 2
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1500

:SHRANGE_8670
if 
  $SR_flag == 2
goto_if_false @SHRANGE_8980
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_8980
set_player_control $player1 {state} False
switch_widescreen True
set_player_control $player1 {state} False
clear_this_big_print 'ANR_41'
print_big 'ANR_19' {time} 4000 {style} TextStyle.Middle
print 'ANR_33' {time} 3000 {flag} 1
print 'ANR_34' {time} 3000 {flag} 1
print 'ANR_35' {time} 3000 {flag} 1
print 'ANR_46' {time} 3000 {flag} 1
$sr_float3 = 3.0583
$sr_float4 = 0.6889
$z = 1.2953
gosub @SHRANGE_16849
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$sr_float3 = 2.9703
$sr_float4 = 1.684
$z = 1.2513
gosub @SHRANGE_16849
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
do_fade 1000 {direction} Fade.In
$SR_flag = 3
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 12000
$SR_target_state[0] = 5
$SR_target_state[1] = 0
$SR_target_state[2] = 5

:SHRANGE_8980
if 
  $SR_flag == 3
goto_if_false @SHRANGE_9086
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_9086
if 
  3 > $range_cuts_watched
goto_if_false @SHRANGE_9042
do_fade 1000 {direction} Fade.Out

:SHRANGE_9042
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1500
$SR_flag = 4
$sr_Score = 0
$8126 = 0
$8127 = 0

:SHRANGE_9086
if 
  $SR_flag == 4
goto_if_false @SHRANGE_9392
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_9392
if 
  not get_fading_status 
goto_if_false @SHRANGE_9392
display_onscreen_counter_with_string $sr_Score {display} CounterDisplay.Number {text} 'ANR_37'
display_nth_onscreen_counter_with_string $8126 {display} CounterDisplay.Number {slot} 2 {text} 'ANR_39'
display_nth_onscreen_counter_with_string $8127 {display} CounterDisplay.Number {slot} 3 {text} 'ANR_38'
do_fade 1000 {direction} Fade.In
if 
  3 > $range_cuts_watched
goto_if_false @SHRANGE_9252
detach_char_from_car $scplayer
attach_char_to_object $scplayer {handle} $sr_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0 {heading} Facing.Forward {headingRange} 90.0 {weaponType} WeaponType.Pistol
restore_camera_jumpcut 

:SHRANGE_9252
if 
  $range_cuts_watched == 2
goto_if_false @SHRANGE_9284
$range_cuts_watched = 3
goto @SHRANGE_9300

:SHRANGE_9284
print_big 'ANR_19' {time} 2000 {style} TextStyle.Middle

:SHRANGE_9300
$SR_targets_created[0] = 0
$SR_targets_created[1] = 0
$SR_targets_created[2] = 0
$SR_target_state[0] = 5
$SR_target_state[1] = 0
$SR_target_state[2] = 5
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 5
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
set_player_control $player1 {state} True
switch_widescreen False

:SHRANGE_9392
if 
  $SR_flag == 5
goto_if_false @SHRANGE_9468
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_9468
print_big 'RACE3' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 6
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000

:SHRANGE_9468
if 
  $SR_flag == 6
goto_if_false @SHRANGE_9544
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_9544
print_big 'RACE4' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 7
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000

:SHRANGE_9544
if 
  $SR_flag == 7
goto_if_false @SHRANGE_9625
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_9625
print_big 'RACE5' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 8
$sr_Score = 0
$8126 = 0
$8127 = 0

:SHRANGE_9625
if 
  $SR_flag == 8
goto_if_false @SHRANGE_9744
if 
  $8126 >= 20
goto_if_false @SHRANGE_9690
$SR_mission_state = 3
$SR_flag = 0
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126
clear_onscreen_counter $8127

:SHRANGE_9690
if or
  $sr_Score >= 20
  $8127 >= 20
goto_if_false @SHRANGE_9744
$SR_mission_state = 20
$SR_flag = 0
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126
clear_onscreen_counter $8127

:SHRANGE_9744
if 
  $SR_flag == 10
goto_if_false @SHRANGE_9806
$SR_target_state[0] = 5
$SR_target_state[1] = 5
$SR_target_state[2] = 5
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 7000
$SR_flag = 11

:SHRANGE_9806
if 
  $SR_flag == 11
goto_if_false @SHRANGE_9989
if and
  $SR_target_state[0] == 99
  $SR_target_state[1] == 99
  $SR_target_state[2] == 99
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_9989
if 
  $SR_skill_won == 5
goto_if_false @SHRANGE_9898
print_big 'ANR_49' {time} 2000 {style} TextStyle.Middle

:SHRANGE_9898
if 
  $SR_skill_won == 8
goto_if_false @SHRANGE_9932
print_big 'ANR_25' {time} 2000 {style} TextStyle.Middle

:SHRANGE_9932
if 
  $SR_skill_won == 11
goto_if_false @SHRANGE_9966
print_big 'ANR_52' {time} 2000 {style} TextStyle.Middle

:SHRANGE_9966
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 4000
$SR_flag = 12

:SHRANGE_9989
if 
  $SR_flag == 12
goto_if_false @SHRANGE_10205
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_10205
$sr_Score = 0
$8126 = 0
$8127 = 0
$SR_targets_created[1] = 0
$SR_target_state[1] = 0
$SR_range_level[0] = 0
$SR_range_level[1] = 5
$SR_range_level[2] = 0
$sr_Score = 0
$8126 = 0
$8127 = 0
display_onscreen_counter_with_string $sr_Score {display} CounterDisplay.Number {text} 'ANR_37'
display_nth_onscreen_counter_with_string $8126 {display} CounterDisplay.Number {slot} 2 {text} 'ANR_39'
display_nth_onscreen_counter_with_string $8127 {display} CounterDisplay.Number {slot} 3 {text} 'ANR_38'
print_big 'RACE2' {time} 1000 {style} TextStyle.MiddleSmaller
$SR_flag = 5
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 1000
set_player_control $player1 {state} True
switch_widescreen False

:SHRANGE_10205
goto @SHRANGE_11087

:SHRANGE_10212
if 
  $SR_flag == 0
goto_if_false @SHRANGE_10269
print_big 'ANR_16' {time} 3000 {style} TextStyle.Middle
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 3000
$SR_flag = 1

:SHRANGE_10269
if 
  $SR_flag == 1
goto_if_false @SHRANGE_10320
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_10320
do_fade 1000 {direction} Fade.Out
$SR_flag = 2

:SHRANGE_10320
if 
  $SR_flag == 2
goto_if_false @SHRANGE_10378
if 
  not get_fading_status 
goto_if_false @SHRANGE_10378
set_var_int_to_lvar_int $SR_time_check = TIMERA
$SR_time_check += 500
show_update_stats True
$SR_flag = 3

:SHRANGE_10378
if 
  $SR_flag == 3
goto_if_false @SHRANGE_11080
if 
  is_int_lvar_greater_than_int_var TIMERA > $SR_time_check
goto_if_false @SHRANGE_11080
$sr_float3 = 2.0
$sr_float4 = -12.0
$z = 0.0
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126
clear_onscreen_counter $8127
detach_char_from_car $scplayer
gosub @SHRANGE_16849
set_player_cycle_weapon_button $player1 {enabled} True
remove_weapon_from_char $scplayer {weaponType} WeaponType.Pistol
if 
  $ammo > 0
goto_if_false @SHRANGE_10547

:SHRANGE_10504
if 
  not has_model_loaded $ModelForWeaponType
goto_if_false @SHRANGE_10536
request_model $ModelForWeaponType
wait 0
goto @SHRANGE_10504

:SHRANGE_10536
give_weapon_to_char $scplayer {weaponType} $WeaponType {ammo} $ammo

:SHRANGE_10547
remove_weapon_from_char $scplayer {weaponType} WeaponType.MicroUzi
if 
  $8132 > 0
goto_if_false @SHRANGE_10615

:SHRANGE_10572
if 
  not has_model_loaded $8140
goto_if_false @SHRANGE_10604
request_model $8140
wait 0
goto @SHRANGE_10572

:SHRANGE_10604
give_weapon_to_char $scplayer {weaponType} $8136 {ammo} $8132

:SHRANGE_10615
remove_weapon_from_char $scplayer {weaponType} WeaponType.Shotgun
if 
  $8133 > 0
goto_if_false @SHRANGE_10683

:SHRANGE_10640
if 
  not has_model_loaded $8141
goto_if_false @SHRANGE_10672
request_model $8141
wait 0
goto @SHRANGE_10640

:SHRANGE_10672
give_weapon_to_char $scplayer {weaponType} $8137 {ammo} $8133

:SHRANGE_10683
remove_weapon_from_char $scplayer {weaponType} WeaponType.Ak47
if 
  $8134 > 0
goto_if_false @SHRANGE_10751

:SHRANGE_10708
if 
  not has_model_loaded $8142
goto_if_false @SHRANGE_10740
request_model $8142
wait 0
goto @SHRANGE_10708

:SHRANGE_10740
give_weapon_to_char $scplayer {weaponType} $8138 {ammo} $8134

:SHRANGE_10751
set_player_duck_button $player1 {enabled} True
delete_object $sr_obj
clear_prints 
set_char_coordinates_dont_warp_gang $scplayer {x} $x {y} $y {z} $z
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_10802
freeze_char_position $scplayer {state} False

:SHRANGE_10802
set_player_control $player1 {state} True
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_10845
set_char_heading $scplayer {heading} 59@($SR_range_id,4f)

:SHRANGE_10845
$SR_ped_can_be_created[1] = 1
do_fade 1000 {direction} Fade.In
$SR_mission_state = 0
$SR_flag = 0
$SR_targets_created[0] = 0
$SR_targets_created[1] = 0
$SR_targets_created[2] = 0
$SR_ped_weapon[0] = 0
$SR_ped_weapon[1] = 0
$SR_ped_weapon[2] = 0
$SR_ped_state[0] = 1
if 
  is_char_dead $SR_ped[1]
goto_if_false @SHRANGE_10945
$SR_ped_state[1] = 0

:SHRANGE_10945
$SR_ped_state[2] = 1
$SR_range_level[0] = 0
$SR_range_level[1] = 0
$SR_range_level[2] = 0
$SR_target_state[0] = 0
$SR_target_state[1] = 0
$SR_target_state[2] = 0
if 
  34@ == 1
goto_if_false @SHRANGE_11039
clear_this_print_big_now TextStyle.Middle
print 'ANR_A1' {time} 4000 {flag} 1
34@ = 0

:SHRANGE_11039
if and
  $range_weapons_open <> 4
  34@ <> 1
goto_if_false @SHRANGE_11080
print 'ANR_55' {time} 4000 {flag} 1

:SHRANGE_11080
goto @SHRANGE_11087

:SHRANGE_11087
return 

:SHRANGE_11089
$sr_i = 0
set_var_int_to_var_int $this_Watch = $SR_target_state[0]
set_var_int_to_var_int $8146 = $SR_target_state[1]
set_var_int_to_var_int $8149 = $SR_target_state[2]

:SHRANGE_11120
if 
  3 > $sr_i
goto_if_false @SHRANGE_13476
switch_start $SR_ped_state($sr_i,3i) {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_13462 {caseNum1} 0 {caseLabel1} @SHRANGE_11205 {caseNum2} 1 {caseLabel2} @SHRANGE_11619 {caseNum3} 2 {caseLabel3} @SHRANGE_11888 {caseNum4} 3 {caseLabel4} @SHRANGE_12876 {caseNum5} 4 {caseLabel5} @SHRANGE_13415 {caseNum6} -1 {caseLabel6} @SHRANGE_13462 {caseNum7} -1 {caseLabel7} @SHRANGE_13462

:SHRANGE_11205
if 
  $SR_ped_can_be_created($sr_i,3i) == 1
goto_if_false @SHRANGE_11612
$SR_ped_state($sr_i,3i) = 1
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
set_var_float_to_lvar_float $y = 39@($SR_range_id,4f)
set_var_float_to_lvar_float $z = 43@($SR_range_id,4f)
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
if 
  $sr_i == 1
goto_if_false @SHRANGE_11403
if 
  63@ == 90.0
goto_if_false @SHRANGE_11337
add_float_lvar_to_float_var $y += 47@($SR_range_id,4f)

:SHRANGE_11337
if 
  63@ == 270.0
goto_if_false @SHRANGE_11370
sub_float_lvar_from_float_var $y -= 47@($SR_range_id,4f)

:SHRANGE_11370
if 
  63@ == 0.0
goto_if_false @SHRANGE_11403
add_float_lvar_to_float_var $x += 47@($SR_range_id,4f)

:SHRANGE_11403
if 
  $sr_i == 2
goto_if_false @SHRANGE_11520
if 
  63@ == 90.0
goto_if_false @SHRANGE_11454
add_float_lvar_to_float_var $y += 51@($SR_range_id,4f)

:SHRANGE_11454
if 
  63@ == 270.0
goto_if_false @SHRANGE_11487
sub_float_lvar_from_float_var $y -= 51@($SR_range_id,4f)

:SHRANGE_11487
if 
  63@ == 0.0
goto_if_false @SHRANGE_11520
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_11520
create_random_char $x {y} $y {z} $z {var_handle} $SR_ped($sr_i,3i)
if 
  not is_char_dead $SR_ped($sr_i,3i)
goto_if_false @SHRANGE_11612
set_char_proofs $SR_ped($sr_i,3i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_decision_maker $SR_ped($sr_i,3i) {handleOrTemplate} $sr_Dec
set_char_accuracy $SR_ped($sr_i,3i) {accuracy} 93
set_char_heading $SR_ped($sr_i,3i) {heading} 63@

:SHRANGE_11612
goto @SHRANGE_13462

:SHRANGE_11619
if 
  not is_char_dead $SR_ped($sr_i,3i)
goto_if_false @SHRANGE_11881
if 
  $SR_ped_weapon($sr_i,4i) == 0
goto_if_false @SHRANGE_11674
generate_random_int_in_range 1 {max} 5 {var_result} $SR_ped_weapon($sr_i,4i)

:SHRANGE_11674
if 
  $SR_ped_weapon($sr_i,4i) == 1
goto_if_false @SHRANGE_11723
give_weapon_to_char $SR_ped($sr_i,3i) {weaponType} WeaponType.Pistol {ammo} 99999
set_current_char_weapon $SR_ped($sr_i,3i) {weaponType} WeaponType.Pistol

:SHRANGE_11723
if 
  $SR_ped_weapon($sr_i,4i) == 2
goto_if_false @SHRANGE_11772
give_weapon_to_char $SR_ped($sr_i,3i) {weaponType} WeaponType.MicroUzi {ammo} 99999
set_current_char_weapon $SR_ped($sr_i,3i) {weaponType} WeaponType.MicroUzi

:SHRANGE_11772
if 
  $SR_ped_weapon($sr_i,4i) == 3
goto_if_false @SHRANGE_11821
give_weapon_to_char $SR_ped($sr_i,3i) {weaponType} WeaponType.Shotgun {ammo} 99999
set_current_char_weapon $SR_ped($sr_i,3i) {weaponType} WeaponType.Shotgun

:SHRANGE_11821
if 
  $SR_ped_weapon($sr_i,4i) == 4
goto_if_false @SHRANGE_11870
give_weapon_to_char $SR_ped($sr_i,3i) {weaponType} WeaponType.Ak47 {ammo} 99999
set_current_char_weapon $SR_ped($sr_i,3i) {weaponType} WeaponType.Ak47

:SHRANGE_11870
$SR_ped_state($sr_i,3i) = 2

:SHRANGE_11881
goto @SHRANGE_13462

:SHRANGE_11888
$sr_int1 = 0
if 
  $SR_target_state($sr_i,3i) == 2
goto_if_false @SHRANGE_11924
$sr_int1 = 1

:SHRANGE_11924
if and
  $SR_mission_state == 5
  $SR_target_state[1] == 2
goto_if_false @SHRANGE_11956
$sr_int1 = 1

:SHRANGE_11956
if 
  $sr_i == 0
goto_if_false @SHRANGE_11982
set_var_int_to_var_int $8144 = $sr_int1

:SHRANGE_11982
if 
  $sr_i == 1
goto_if_false @SHRANGE_12008
set_var_int_to_var_int $8147 = $sr_int1

:SHRANGE_12008
if 
  $sr_i == 2
goto_if_false @SHRANGE_12034
set_var_int_to_var_int $8150 = $sr_int1

:SHRANGE_12034
if 
  $sr_int1 == 1
goto_if_false @SHRANGE_12807
if 
  is_int_lvar_greater_than_int_var TIMERA > $sr_time_to_new_target($sr_i,3i)
goto_if_false @SHRANGE_12800
$sr_int1 = generate_random_int_in_range 1 {max} 8
if 
  $SR_mission_state == 5
goto_if_false @SHRANGE_12116
$sr_int1 += 8
goto @SHRANGE_12166

:SHRANGE_12116
if 
  $sr_i == 2
goto_if_false @SHRANGE_12141
$sr_int1 += 16

:SHRANGE_12141
if 
  $sr_i == 1
goto_if_false @SHRANGE_12166
$sr_int1 += 8

:SHRANGE_12166
$sr_j = 0

:SHRANGE_12173
if and
  has_object_been_damaged $sr_target($sr_int1,24i)
  8 > $sr_j
goto_if_false @SHRANGE_12260
$sr_int1 += 1
$sr_j += 1
if or
  $sr_int1 == 8
  $sr_int1 == 24
  $sr_int1 == 16
goto_if_false @SHRANGE_12253
$sr_int1 -= 7

:SHRANGE_12253
goto @SHRANGE_12173

:SHRANGE_12260
if 
  $sr_i == 0
goto_if_false @SHRANGE_12286
set_var_int_to_var_int $8145 = $sr_j

:SHRANGE_12286
if 
  $sr_i == 1
goto_if_false @SHRANGE_12312
set_var_int_to_var_int $8148 = $sr_j

:SHRANGE_12312
if 
  $sr_i == 2
goto_if_false @SHRANGE_12338
set_var_int_to_var_int $8151 = $sr_j

:SHRANGE_12338
if 
  not is_char_dead $SR_ped($sr_i,3i)
goto_if_false @SHRANGE_12800
$x, $y, $z = get_object_coordinates $sr_target($sr_int1,24i)
if and
  $sr_int1 > 8
  16 > $sr_int1
goto_if_false @SHRANGE_12408
$sr_int1 -= 8

:SHRANGE_12408
if and
  $sr_int1 > 16
  24 > $sr_int1
goto_if_false @SHRANGE_12440
$sr_int1 -= 16

:SHRANGE_12440
if 
  63@ == 0.0
goto_if_false @SHRANGE_12473
add_float_var_to_float_var $x += $target_offset_x($sr_int1,8f)

:SHRANGE_12473
if 
  63@ == 90.0
goto_if_false @SHRANGE_12506
add_float_var_to_float_var $y += $target_offset_x($sr_int1,8f)

:SHRANGE_12506
if 
  63@ == 270.0
goto_if_false @SHRANGE_12539
sub_float_var_from_float_var $y -= $target_offset_x($sr_int1,8f)

:SHRANGE_12539
add_float_var_to_float_var $z += $target_offset_z($sr_int1,8f)
if 
  $SR_skill_won >= 8
goto_if_false @SHRANGE_12652
$sr_int1 = get_script_task_status $SR_ped($sr_i,3i) {taskId} 1640
if 
  is_int_var_equal_to_constant $sr_int1 == 7
goto_if_false @SHRANGE_12645
freeze_char_position $SR_ped($sr_i,3i) {state} True
task_shoot_at_coord $SR_ped($sr_i,3i) {x} $x {y} $y {z} $z {time} 800
set_char_accuracy $SR_ped($sr_i,3i) {accuracy} 95

:SHRANGE_12645
goto @SHRANGE_12717

:SHRANGE_12652
$sr_int1 = get_script_task_status $SR_ped($sr_i,3i) {taskId} 1640
if 
  is_int_var_equal_to_constant $sr_int1 == 7
goto_if_false @SHRANGE_12717
freeze_char_position $SR_ped($sr_i,3i) {state} True
task_shoot_at_coord $SR_ped($sr_i,3i) {x} $x {y} $y {z} $z {time} 1500

:SHRANGE_12717
if 
  $SR_skill_won >= 8
goto_if_false @SHRANGE_12765
$sr_int1 = generate_random_int_in_range 200 {max} 400
$sr_time_to_new_target($sr_i,3i) += 600
goto @SHRANGE_12776

:SHRANGE_12765
$sr_int1 = generate_random_int_in_range 200 {max} 1600

:SHRANGE_12776
set_var_int_to_lvar_int $sr_time_to_new_target($sr_i,3i) = TIMERA
add_int_var_to_int_var $sr_time_to_new_target($sr_i,3i) += $sr_int1

:SHRANGE_12800
goto @SHRANGE_12869

:SHRANGE_12807
if 
  not is_char_dead $SR_ped($sr_i,3i)
goto_if_false @SHRANGE_12869
$sr_int1 = get_script_task_status $SR_ped($sr_i,3i) {taskId} 1640
if 
  not is_int_var_equal_to_constant $sr_int1 == 7
goto_if_false @SHRANGE_12869
clear_char_tasks $SR_ped($sr_i,3i)

:SHRANGE_12869
goto @SHRANGE_13462

:SHRANGE_12876
if 
  not is_char_dead $SR_ped($sr_i,3i)
goto_if_false @SHRANGE_13408
$x, $y, $z = get_char_coordinates $SR_ped($sr_i,3i)
freeze_char_position $SR_ped($sr_i,3i) {state} False
flush_route 
$sr_seq = open_sequence_task 
$sr_float3 = 0.0
add_float_lvar_to_float_var $sr_float3 += 47@($SR_range_id,4f)
$sr_float4 = -1.0
$sr_float1 = cos 59@($SR_range_id,4f)
$sr_float2 = sin 59@($SR_range_id,4f)
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_13052
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float4
mult_float_var_by_float_var $y *= $sr_float1
goto @SHRANGE_13094

:SHRANGE_13052
$sr_float4 *= -1.0
set_var_float_to_var_float $x = $sr_float4
mult_float_var_by_float_var $x *= $sr_float2
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_float2

:SHRANGE_13094
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
63@ -= 180.0
task_achieve_heading -1 {heading} 63@
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
extend_route $x {y} $y {z} $z
$sr_float3 = -0.5
add_float_lvar_to_float_var $sr_float3 += 47@($SR_range_id,4f)
$sr_float4 = -4.5
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_13278
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float4
mult_float_var_by_float_var $y *= $sr_float1
goto @SHRANGE_13320

:SHRANGE_13278
$sr_float4 *= -1.0
set_var_float_to_var_float $x = $sr_float4
mult_float_var_by_float_var $x *= $sr_float2
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_float2

:SHRANGE_13320
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
extend_route $x {y} $y {z} $z
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task $sr_seq
perform_sequence_task $SR_ped($sr_i,3i) {sequence} $sr_seq
clear_sequence_task $sr_seq
$SR_ped_state($sr_i,3i) = 99

:SHRANGE_13408
goto @SHRANGE_13462

:SHRANGE_13415
if 
  not is_char_dead $SR_ped($sr_i,3i)
goto_if_false @SHRANGE_13444
delete_char $SR_ped($sr_i,3i)

:SHRANGE_13444
$SR_ped_state($sr_i,3i) = 0
goto @SHRANGE_13462

:SHRANGE_13462
$sr_i += 1
goto @SHRANGE_11120

:SHRANGE_13476
return 

:SHRANGE_13478
$sr_i = 0

:SHRANGE_13485
if 
  3 > $sr_i
goto_if_false @SHRANGE_16847
switch_start $SR_target_state($sr_i,3i) {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @SHRANGE_16833 {caseNum1} 0 {caseLabel1} @SHRANGE_13570 {caseNum2} 1 {caseLabel2} @SHRANGE_14352 {caseNum3} 2 {caseLabel3} @SHRANGE_14681 {caseNum4} 3 {caseLabel4} @SHRANGE_16282 {caseNum5} 4 {caseLabel5} @SHRANGE_16584 {caseNum6} 5 {caseLabel6} @SHRANGE_16705 {caseNum7} -1 {caseLabel7} @SHRANGE_16833

:SHRANGE_13570
clear_char_decision_maker_event_response $sr_Dec {event} Event.ShotFired
$SR_target_state($sr_i,3i) = 1
if 
  $SR_range_level($sr_i,3i) == 0
goto_if_false @SHRANGE_13656
generate_random_int_in_range 1 {max} 3 {var_result} $SR_range_level($sr_i,3i)
if 
  $SR_range_level($sr_i,3i) == 2
goto_if_false @SHRANGE_13656
$SR_range_level($sr_i,3i) = 4

:SHRANGE_13656
$x = 0.0
$y = 5.0
$z = 4.0
set_lvar_float_to_lvar_float 63@ = 59@($SR_range_id,4f)
if 
  5 > $SR_range_level($sr_i,3i)
goto_if_false @SHRANGE_13887
if 
  $sr_i == 1
goto_if_false @SHRANGE_13750
add_float_lvar_to_float_var $x += 47@($SR_range_id,4f)

:SHRANGE_13750
if 
  $sr_i == 2
goto_if_false @SHRANGE_13780
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_13780
if 
  $SR_range_level($sr_i,3i) == 1
goto_if_false @SHRANGE_13812
$y += 0.0

:SHRANGE_13812
if 
  $SR_range_level($sr_i,3i) == 2
goto_if_false @SHRANGE_13844
$y += 5.0

:SHRANGE_13844
if or
  $SR_range_level($sr_i,3i) == 3
  $SR_range_level($sr_i,3i) == 4
goto_if_false @SHRANGE_13887
$y += 10.0

:SHRANGE_13887
if 
  $SR_range_level($sr_i,3i) == 5
goto_if_false @SHRANGE_13971
$sr_yoffset = generate_random_float_in_range 0.0 {max} 10.0
add_float_var_to_float_var $y += $sr_yoffset
$sr_direction = generate_random_int_in_range 0 {max} 2
if 
  $sr_direction == 1
goto_if_false @SHRANGE_13971
add_float_lvar_to_float_var $x += 51@($SR_range_id,4f)

:SHRANGE_13971
set_var_float_to_var_float $sr_float3 = $x
set_var_float_to_var_float $sr_float4 = $y
gosub @SHRANGE_16849
set_var_int_to_var_int $sr_int1 = $sr_i
$sr_int1 *= 8
if 
  does_object_exist $sr_target($sr_int1,24i)
goto_if_false @SHRANGE_14038
delete_object $sr_target($sr_int1,24i)

:SHRANGE_14038
create_object_no_offset $sr_object_name[0] {x} $x {y} $y {z} $z {var_handle} $sr_target($sr_int1,24i)
set_object_rotation $sr_target($sr_int1,24i) {x} 90.0 {y} 0.0 {z} 63@
report_mission_audio_event_at_object $sr_target($sr_int1,24i) {soundId} ScriptSound.SoundShootingRangeTargetDrop
$sr_target_rotation($sr_i,3f) = 90.0
$sr_j = 1

:SHRANGE_14114
if 
  8 > $sr_j
goto_if_false @SHRANGE_14322
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
add_int_var_to_int_var $sr_obj_number += $sr_j
if 
  does_object_exist $sr_target($sr_obj_number,24i)
goto_if_false @SHRANGE_14184
delete_object $sr_target($sr_obj_number,24i)

:SHRANGE_14184
create_object_no_offset $sr_object_name($sr_j,8i) {x} $x {y} $y {z} $z {var_handle} $sr_target($sr_obj_number,24i)
attach_object_to_object $sr_target($sr_obj_number,24i) {handle} $sr_target($sr_int1,24i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
if 
  does_object_exist $sr_target($sr_obj_number,24i)
goto_if_false @SHRANGE_14308
set_object_rotation $sr_target($sr_obj_number,24i) {x} 90.0 {y} 0.0 {z} 63@
set_object_collision $sr_target($sr_obj_number,24i) {state} False

:SHRANGE_14308
$sr_j += 1
goto @SHRANGE_14114

:SHRANGE_14322
$SR_targets_created($sr_i,3i) += 1
set_var_int_to_lvar_int $sr_target_advance_time($sr_i,3i) = TIMERA
goto @SHRANGE_16833

:SHRANGE_14352
set_var_int_to_lvar_int $sr_int1 = TIMERA
sub_int_var_from_int_var $sr_int1 -= $sr_target_advance_time($sr_i,3i)
if 
  $sr_int1 > 3000
goto_if_false @SHRANGE_14399
$sr_int1 = 3000

:SHRANGE_14399
cset_var_float_to_var_int $sr_float1 =# $sr_int1
$sr_float1 /= 3000.0
$sr_float1 *= -90.0
$sr_float1 += 90.0
set_var_float_to_var_float $sr_target_rotation($sr_i,3f) = $sr_float1
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
if 
  does_object_exist $sr_target($sr_obj_number,24i)
goto_if_false @SHRANGE_14508
set_object_rotation $sr_target($sr_obj_number,24i) {x} $sr_target_rotation($sr_i,3f) {y} 0.0 {z} 63@

:SHRANGE_14508
if 
  0.0 >= $sr_target_rotation($sr_i,3f)
goto_if_false @SHRANGE_14674
$SR_target_state($sr_i,3i) = 2
set_var_int_to_lvar_int $sr_target_advance_time($sr_i,3i) = TIMERA
if or
  $SR_range_level($sr_i,3i) == 4
  $SR_range_level($sr_i,3i) == 5
goto_if_false @SHRANGE_14601
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStart

:SHRANGE_14601
$sr_j = 0

:SHRANGE_14608
if 
  8 > $sr_j
goto_if_false @SHRANGE_14674
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
add_int_var_to_int_var $sr_obj_number += $sr_j
set_object_collision $sr_target($sr_obj_number,24i) {state} True
$sr_j += 1
goto @SHRANGE_14608

:SHRANGE_14674
goto @SHRANGE_16833

:SHRANGE_14681
if 
  $SR_range_level($sr_i,3i) == 4
goto_if_false @SHRANGE_15317
set_var_int_to_lvar_int $sr_int1 = TIMERA
sub_int_var_from_int_var $sr_int1 -= $sr_target_advance_time($sr_i,3i)
if 
  $SR_targets_created($sr_i,3i) == 4
goto_if_false @SHRANGE_14756
$SR_targets_created($sr_i,3i) = 1

:SHRANGE_14756
if 
  $SR_targets_created($sr_i,3i) == 1
goto_if_false @SHRANGE_14832
if 
  $sr_int1 > 20000
goto_if_false @SHRANGE_14832
$sr_int1 = 20000
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop

:SHRANGE_14832
if 
  $SR_targets_created($sr_i,3i) == 2
goto_if_false @SHRANGE_14908
if 
  $sr_int1 > 15000
goto_if_false @SHRANGE_14908
$sr_int1 = 15000
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop

:SHRANGE_14908
if 
  $SR_targets_created($sr_i,3i) == 3
goto_if_false @SHRANGE_14984
if 
  $sr_int1 > 10000
goto_if_false @SHRANGE_14984
$sr_int1 = 10000
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop

:SHRANGE_14984
cset_var_float_to_var_int $sr_float1 =# $sr_int1
if 
  $SR_targets_created($sr_i,3i) == 1
goto_if_false @SHRANGE_15024
$sr_float1 /= 20000.0

:SHRANGE_15024
if 
  $SR_targets_created($sr_i,3i) == 2
goto_if_false @SHRANGE_15056
$sr_float1 /= 15000.0

:SHRANGE_15056
if 
  $SR_targets_created($sr_i,3i) == 3
goto_if_false @SHRANGE_15088
$sr_float1 /= 10000.0

:SHRANGE_15088
$sr_float1 *= 10.0
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
$x, $y, $z = get_object_coordinates $sr_target($sr_obj_number,24i)
if 
  63@ == 90.0
goto_if_false @SHRANGE_15182
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
$x -= 15.0
add_float_var_to_float_var $x += $sr_float1

:SHRANGE_15182
if 
  63@ == 270.0
goto_if_false @SHRANGE_15233
set_var_float_to_lvar_float $x = 35@($SR_range_id,4f)
$x += 15.0
sub_float_var_from_float_var $x -= $sr_float1

:SHRANGE_15233
if 
  63@ == 0.0
goto_if_false @SHRANGE_15284
set_var_float_to_lvar_float $y = 39@($SR_range_id,4f)
$y += 15.0
sub_float_var_from_float_var $y -= $sr_float1

:SHRANGE_15284
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
set_object_coordinates $sr_target($sr_obj_number,24i) {x} $x {y} $y {z} $z

:SHRANGE_15317
if 
  $SR_range_level($sr_i,3i) == 5
goto_if_false @SHRANGE_15674
set_var_int_to_lvar_int $sr_int1 = TIMERA
sub_int_var_from_int_var $sr_int1 -= $sr_target_advance_time($sr_i,3i)
if 
  $sr_int1 > 10000
goto_if_false @SHRANGE_15523
$sr_int1 = 10000
$SR_target_state($sr_i,3i) = 3
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundShootingRangeTargetDrop
set_var_int_to_lvar_int $sr_target_advance_time($sr_i,3i) = TIMERA
$sr_j = 0

:SHRANGE_15457
if 
  8 > $sr_j
goto_if_false @SHRANGE_15523
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
add_int_var_to_int_var $sr_obj_number += $sr_j
set_object_collision $sr_target($sr_obj_number,24i) {state} False
$sr_j += 1
goto @SHRANGE_15457

:SHRANGE_15523
cset_var_float_to_var_int $sr_float1 =# $sr_int1
$sr_float1 /= 10000.0
mult_float_var_by_float_lvar $sr_float1 *= 51@($SR_range_id,4f)
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
if 
  $sr_direction == 0
goto_if_false @SHRANGE_15601
set_var_float_to_var_float $sr_float3 = $sr_float1
goto @SHRANGE_15621

:SHRANGE_15601
set_var_float_to_lvar_float $sr_float3 = 51@($SR_range_id,4f)
sub_float_var_from_float_var $sr_float3 -= $sr_float1

:SHRANGE_15621
$z = 4.0
set_var_float_to_var_float $sr_float4 = $sr_yoffset
$sr_float4 += 5.0
gosub @SHRANGE_16849
set_object_coordinates $sr_target($sr_obj_number,24i) {x} $x {y} $y {z} $z

:SHRANGE_15674
set_var_int_to_var_int $sr_int1 = $sr_destroyed_elements($sr_i,3i)
$sr_destroyed_elements($sr_i,3i) = 0
$sr_j = 0

:SHRANGE_15704
if 
  8 > $sr_j
goto_if_false @SHRANGE_15790
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
add_int_var_to_int_var $sr_obj_number += $sr_j
if 
  has_object_been_damaged $sr_target($sr_obj_number,24i)
goto_if_false @SHRANGE_15776
$sr_destroyed_elements($sr_i,3i) += 1

:SHRANGE_15776
$sr_j += 1
goto @SHRANGE_15704

:SHRANGE_15790
if 
  is_int_var_greater_than_int_var $sr_destroyed_elements($sr_i,3i) > $sr_int1
goto_if_false @SHRANGE_15825
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetShatter

:SHRANGE_15825
if 
  $sr_i == 1
goto_if_false @SHRANGE_16148
if 
  is_int_var_greater_than_int_var $sr_destroyed_elements[1] > $sr_int1
goto_if_false @SHRANGE_16148
set_var_int_to_var_int $sr_int2 = $sr_destroyed_elements[1]
sub_int_var_from_int_var $sr_int2 -= $sr_int1
$sr_int1 = generate_random_int_in_range 0 {max} 2
if 
  $sr_int1 == 0
goto_if_false @SHRANGE_16030
if 
  not is_char_dead $SR_ped[0]
goto_if_false @SHRANGE_16023
if 
  is_char_shooting $SR_ped[0]
goto_if_false @SHRANGE_15952
add_int_var_to_int_var $sr_Score += $sr_int2
goto @SHRANGE_16023

:SHRANGE_15952
if 
  is_char_shooting $scplayer
goto_if_false @SHRANGE_15983
add_int_var_to_int_var $8126 += $sr_int2
goto @SHRANGE_16023

:SHRANGE_15983
if 
  not is_char_dead $SR_ped[2]
goto_if_false @SHRANGE_16023
if 
  is_char_shooting $SR_ped[2]
goto_if_false @SHRANGE_16023
add_int_var_to_int_var $8127 += $sr_int2

:SHRANGE_16023
goto @SHRANGE_16148

:SHRANGE_16030
if 
  not is_char_dead $SR_ped[2]
goto_if_false @SHRANGE_16148
if 
  is_char_shooting $SR_ped[2]
goto_if_false @SHRANGE_16077
add_int_var_to_int_var $8127 += $sr_int2
goto @SHRANGE_16148

:SHRANGE_16077
if 
  is_char_shooting $scplayer
goto_if_false @SHRANGE_16108
add_int_var_to_int_var $8126 += $sr_int2
goto @SHRANGE_16148

:SHRANGE_16108
if 
  not is_char_dead $SR_ped[0]
goto_if_false @SHRANGE_16148
if 
  is_char_shooting $SR_ped[0]
goto_if_false @SHRANGE_16148
add_int_var_to_int_var $sr_Score += $sr_int2

:SHRANGE_16148
if 
  $sr_destroyed_elements($sr_i,3i) == 7
goto_if_false @SHRANGE_16275
set_var_int_to_lvar_int $sr_target_advance_time($sr_i,3i) = TIMERA
$SR_target_state($sr_i,3i) = 3
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
report_mission_audio_event_at_position $x {y} $y {z} $z {soundId} ScriptSound.SoundShootingRangeTargetDrop
clear_char_decision_maker_event_response $sr_Dec {event} Event.ShotFired
add_char_decision_maker_event_response $sr_Dec {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True

:SHRANGE_16275
goto @SHRANGE_16833

:SHRANGE_16282
set_var_int_to_lvar_int $sr_int1 = TIMERA
sub_int_var_from_int_var $sr_int1 -= $sr_target_advance_time($sr_i,3i)
if 
  $sr_int1 > 2000
goto_if_false @SHRANGE_16329
$sr_int1 = 2000

:SHRANGE_16329
cset_var_float_to_var_int $sr_float1 =# $sr_int1
$sr_float1 /= 2000.0
$sr_float1 *= 90.0
set_var_float_to_var_float $sr_target_rotation($sr_i,3f) = $sr_float1
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
if 
  does_object_exist $sr_target($sr_obj_number,24i)
goto_if_false @SHRANGE_16428
set_object_rotation $sr_target($sr_obj_number,24i) {x} $sr_target_rotation($sr_i,3f) {y} 0.0 {z} 63@

:SHRANGE_16428
if 
  $sr_target_rotation($sr_i,3f) >= 90.0
goto_if_false @SHRANGE_16577
$SR_target_state($sr_i,3i) = 0
if 
  $SR_range_level($sr_i,3i) == 3
goto_if_false @SHRANGE_16504
$SR_range_level($sr_i,3i) = 1
goto @SHRANGE_16577

:SHRANGE_16504
if 
  $SR_range_level($sr_i,3i) == 2
goto_if_false @SHRANGE_16544
$SR_range_level($sr_i,3i) = 3
goto @SHRANGE_16577

:SHRANGE_16544
if 
  $SR_range_level($sr_i,3i) == 1
goto_if_false @SHRANGE_16577
$SR_range_level($sr_i,3i) = 2

:SHRANGE_16577
goto @SHRANGE_16833

:SHRANGE_16584
$sr_j = 0

:SHRANGE_16591
if 
  8 > $sr_j
goto_if_false @SHRANGE_16687
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
add_int_var_to_int_var $sr_obj_number += $sr_j
if 
  does_object_exist $sr_target($sr_j,24i)
goto_if_false @SHRANGE_16673
report_mission_audio_event_at_object $sr_target($sr_j,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
delete_object $sr_target($sr_j,24i)

:SHRANGE_16673
$sr_j += 1
goto @SHRANGE_16591

:SHRANGE_16687
$SR_target_state($sr_i,3i) = 99
goto @SHRANGE_16833

:SHRANGE_16705
$sr_target_rotation($sr_i,3f) += 1.0
set_var_int_to_var_int $sr_obj_number = $sr_i
$sr_obj_number *= 8
if 
  does_object_exist $sr_target($sr_obj_number,24i)
goto_if_false @SHRANGE_16790
report_mission_audio_event_at_object $sr_target($sr_obj_number,24i) {soundId} ScriptSound.SoundShootingRangeTargetMoveStop
set_object_rotation $sr_target($sr_obj_number,24i) {x} $sr_target_rotation($sr_i,3f) {y} 0.0 {z} 63@

:SHRANGE_16790
if 
  $sr_target_rotation($sr_i,3f) >= 90.0
goto_if_false @SHRANGE_16826
$SR_target_state($sr_i,3i) = 4

:SHRANGE_16826
goto @SHRANGE_16833

:SHRANGE_16833
$sr_i += 1
goto @SHRANGE_13485

:SHRANGE_16847
return 

:SHRANGE_16849
$sr_float1 = cos 59@($SR_range_id,4f)
$sr_float2 = sin 59@($SR_range_id,4f)
if 
  59@($SR_range_id,4f) == 0.0
goto_if_false @SHRANGE_16937
set_var_float_to_var_float $x = $sr_float3
mult_float_var_by_float_var $x *= $sr_float1
set_var_float_to_var_float $y = $sr_float4
mult_float_var_by_float_var $y *= $sr_float1
goto @SHRANGE_16979

:SHRANGE_16937
$sr_float4 *= -1.0
set_var_float_to_var_float $x = $sr_float4
mult_float_var_by_float_var $x *= $sr_float2
set_var_float_to_var_float $y = $sr_float3
mult_float_var_by_float_var $y *= $sr_float2

:SHRANGE_16979
add_float_lvar_to_float_var $x += 35@($SR_range_id,4f)
add_float_lvar_to_float_var $y += 39@($SR_range_id,4f)
add_float_lvar_to_float_var $z += 43@($SR_range_id,4f)
return 

:SHRANGE_17017
delete_char $SR_ped[0]
delete_char $SR_ped[1]
delete_char $SR_ped[2]
clear_onscreen_counter $sr_Score
clear_onscreen_counter $8126
clear_onscreen_counter $8127
mark_model_as_no_longer_needed #TARGET_HEAD
mark_model_as_no_longer_needed #TARGET_LARM
mark_model_as_no_longer_needed #TARGET_RARM
mark_model_as_no_longer_needed #TARGET_LLEG
mark_model_as_no_longer_needed #TARGET_RLEG
mark_model_as_no_longer_needed #TARGET_RTORSO
mark_model_as_no_longer_needed #TARGET_LTORSO
mark_model_as_no_longer_needed #TARGET_FRAME
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 355
remove_decision_maker $sr_Dec
clear_mission_audio MissionAudioSlot.Slot4
$sr_j = 0

:SHRANGE_17123
if 
  24 > $sr_j
goto_if_false @SHRANGE_17184
if 
  does_object_exist $sr_target($sr_j,24i)
goto_if_false @SHRANGE_17170
delete_object $sr_target($sr_j,24i)

:SHRANGE_17170
$sr_j += 1
goto @SHRANGE_17123

:SHRANGE_17184
$flag_shooting_range_mission = 0
$onmission = 0
if 
  not is_char_dead $scplayer
goto_if_false @SHRANGE_17221
freeze_char_position $scplayer {state} False

:SHRANGE_17221
terminate_this_script 
return 
terminate_this_script 

//-------------Mission 114---------------
// Originally: Los Santos Gym Fight School

:GYMLS
script_name 'GYMLS'
gosub @GYMLS_57
set_fading_colour 0 {g} 0 {b} 0
if 
  has_deatharrest_been_executed 
goto_if_false @GYMLS_46
gosub @GYMLS_5862

:GYMLS_46
gosub @GYMLS_5902
terminate_this_script 
register_mission_given 

:GYMLS_57
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_80
listen_to_player_group_commands $scplayer {state} False

:GYMLS_80
$onmission = 1
$ls_has_the_knuckle_duster = 0
increment_int_stat StatId.VisitsToGym {value} 1
$gym_is_running = 1
load_mission_text 'GYM'
request_model 80
request_model 81
request_model 19
request_animation "RIOT"
request_animation "FIGHT_B"
request_animation "INT_SHOP"
request_animation "GYMNASIUM"
load_all_models_now 

:GYMLS_177
if or
  not has_animation_loaded "GYMNASIUM"
  not has_model_loaded 80
  not has_model_loaded 81
goto_if_false @GYMLS_220
wait 0
goto @GYMLS_177

:GYMLS_220
if or
  not has_model_loaded 19
  not has_animation_loaded "RIOT"
  not has_animation_loaded "FIGHT_B"
  not has_animation_loaded "INT_SHOP"
goto_if_false @GYMLS_277
wait 0
goto @GYMLS_220

:GYMLS_277
43@ = load_char_decision_maker DecisionMakerType.Empty
58@ = load_char_decision_maker DecisionMakerType.Normal
57@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Dislike {ofPedType} PedType.Mission2 {toPedType} PedType.Player1
clear_char_decision_maker_event_response 58@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 57@ {event} Event.GunAimedAt
clear_char_decision_maker_event_response 58@ {event} Event.Damage
clear_char_decision_maker_event_response 58@ {event} Event.ShotFired
clear_char_decision_maker_event_response 58@ {event} Event.AcquaintancePedDislike
clear_char_decision_maker_event_response 57@ {event} Event.AcquaintancePedDislike
add_char_decision_maker_event_response 58@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 58@ {event} Event.Damage {taskId} TaskId.SimpleDuck {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 58@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 57@ {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 57@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 58@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 57@ {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
40@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 762.8681 {y} 7.4928 {z} 999.7141 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 13.3401
task_play_anim -1 {animationName} "RIOT_PUNCHES" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 40@ {state} True
close_sequence_task 40@
54@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 765.2909 {y} 16.0319 {z} 999.698 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 198.8789
set_sequence_to_repeat 54@ {state} True
close_sequence_task 54@
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 767.2571 {y} 14.4044 {z} 999.6998 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 263.2938
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 53@ {state} True
close_sequence_task 53@
49@ = open_sequence_task 
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
task_pause -1 {time} 1000
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
50@ = open_sequence_task 
task_pause -1 {time} 500
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 50@ {state} True
close_sequence_task 50@
51@ = open_sequence_task 
task_pause -1 {time} 750
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 51@ {state} True
close_sequence_task 51@
34@ = create_char PedType.Mission2 {modelId} 81 {x} 761.6263 {y} 11.4876 {z} 1000.164
set_char_heading 34@ {heading} 128.1297
set_char_decision_maker 34@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 34@ {state} True
shut_char_up 34@ {state} True
35@ = create_char PedType.Mission2 {modelId} 81 {x} 760.343 {y} 10.1973 {z} 999.7099
set_char_heading 35@ {heading} 310.2206
set_char_decision_maker 35@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 35@ {state} True
shut_char_up 34@ {state} True
52@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 761.6263 {y} 11.4876 {z} 1000.164 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 128.1297
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1192
task_kill_char_on_foot -1 {target} 35@

:GYMLS_1192
set_sequence_to_repeat 52@ {state} True
close_sequence_task 52@
41@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 760.343 {y} 10.1973 {z} 999.7099 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 310.2206
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1264
task_kill_char_on_foot -1 {target} 34@

:GYMLS_1264
set_sequence_to_repeat 41@ {state} True
close_sequence_task 41@
perform_sequence_task 34@ {sequence} 52@
perform_sequence_task 35@ {sequence} 41@
37@ = create_char PedType.Mission2 {modelId} 19 {x} 762.8681 {y} 7.4928 {z} 999.7141
set_char_heading 37@ {heading} 13.3401
perform_sequence_task 37@ {sequence} 40@
set_char_decision_maker 37@ {handleOrTemplate} 57@
39@ = create_char PedType.Mission2 {modelId} 80 {x} 767.2571 {y} 14.4044 {z} 999.6998
set_char_heading 39@ {heading} 263.2938
set_char_decision_maker 39@ {handleOrTemplate} 57@
perform_sequence_task 39@ {sequence} 53@
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMLS_1412
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMLS_1438
wait 0
goto @GYMLS_1412

:GYMLS_1438
TIMERA = 0
64@ = 2
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @GYMLS_1489
$gym_day_fitness = 0.0

:GYMLS_1489
wait 0
gosub @GYMLS_6164
if 
  48@ == 0
goto_if_false @GYMLS_1667
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1589
if 
  is_char_playing_anim 34@ {animationName} "GYM_SHADOWBOX"
goto_if_false @GYMLS_1589
set_char_anim_current_time 34@ {animationName} "GYMSHADOWBOX" {time} 0.0

:GYMLS_1589
if 
  not is_char_dead 35@
goto_if_false @GYMLS_1660
if 
  is_char_playing_anim 35@ {animationName} "GYM_SHADOWBOX"
goto_if_false @GYMLS_1660
set_char_anim_current_time 35@ {animationName} "GYMSHADOWBOX" {time} 0.5

:GYMLS_1660
48@ = 1

:GYMLS_1667
if and
  is_char_dead 34@
  TIMERA > 20000
goto_if_false @GYMLS_1727
if 
  not is_char_dead 35@
goto_if_false @GYMLS_1727
clear_char_tasks 35@
task_duck 35@ {time} 20000
TIMERA = 0

:GYMLS_1727
if and
  is_char_dead 35@
  TIMERA > 20000
goto_if_false @GYMLS_1787
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1787
clear_char_tasks 34@
task_duck 34@ {time} 20000
TIMERA = 0

:GYMLS_1787
if 
  locate_char_any_means_3d $scplayer {x} 760.8566 {y} 11.063 {z} 1000.164 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @GYMLS_1941
if 
  59@ == 0
goto_if_false @GYMLS_1934
if 
  not is_char_dead 34@
goto_if_false @GYMLS_1890
clear_char_tasks_immediately 34@
set_char_decision_maker 34@ {handleOrTemplate} 57@
task_kill_char_on_foot 34@ {target} $scplayer

:GYMLS_1890
if 
  not is_char_dead 35@
goto_if_false @GYMLS_1927
clear_char_tasks_immediately 35@
set_char_decision_maker 35@ {handleOrTemplate} 57@
task_kill_char_on_foot 35@ {target} $scplayer

:GYMLS_1927
59@ = 1

:GYMLS_1934
goto @GYMLS_2029

:GYMLS_1941
if 
  59@ == 1
goto_if_false @GYMLS_2029
if and
  not is_char_dead 34@
  not is_char_dead 35@
goto_if_false @GYMLS_2022
clear_char_tasks_immediately 34@
set_char_decision_maker 34@ {handleOrTemplate} 58@
perform_sequence_task 34@ {sequence} 52@
clear_char_tasks_immediately 35@
set_char_decision_maker 35@ {handleOrTemplate} 58@
perform_sequence_task 35@ {sequence} 41@

:GYMLS_2022
59@ = 0

:GYMLS_2029
$main_visible_area = get_char_area_visible $scplayer
if 
  $main_visible_area == 0
goto_if_false @GYMLS_2062
goto @GYMLS_5862

:GYMLS_2062
if 
  not locate_char_any_means_3d $scplayer {x} 767.1368 {y} 12.511 {z} 999.7036 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMLS_2117
46@ = 0

:GYMLS_2117
if 
  not is_char_dead 39@
goto_if_false @GYMLS_5855
if and
  46@ == 0
  locate_char_any_means_3d 39@ {x} 767.2571 {y} 14.4044 {z} 999.6998 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @GYMLS_5855
if 
  locate_stopped_char_any_means_3d $scplayer {x} 767.1368 {y} 12.511 {z} 999.7036 {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @GYMLS_2236

:GYMLS_2236
if and
  locate_stopped_char_any_means_3d $scplayer {x} 767.1368 {y} 12.511 {z} 999.7036 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  not is_char_dead 39@
goto_if_false @GYMLS_5855
if and
  not is_char_dead 39@
  not is_char_dead $scplayer
goto_if_false @GYMLS_2343
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 39@
task_turn_char_to_face_char 39@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 39@

:GYMLS_2343
if 
  $8156 == 0
goto_if_false @GYMLS_2418
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4800

:GYMLS_2372
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2398
wait 0
goto @GYMLS_2372

:GYMLS_2398
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_1' {time} 3000 {flag} 1

:GYMLS_2418
if 
  $8156 == 1
goto_if_false @GYMLS_2493
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4803

:GYMLS_2447
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2473
wait 0
goto @GYMLS_2447

:GYMLS_2473
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_4' {time} 3000 {flag} 1

:GYMLS_2493
print_help_forever 'TALK_1'

:GYMLS_2504
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_2852
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMLS_2717
60@ = get_float_stat StatId.BodyMuscle
if 
  60@ > 349.0
goto_if_false @GYMLS_2592
44@ = 1
clear_help 
goto @GYMLS_2852
goto @GYMLS_2717

:GYMLS_2592
44@ = 0
46@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4802

:GYMLS_2619
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2645
wait 0
goto @GYMLS_2619

:GYMLS_2645
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_3' {time} 3000 {flag} 1
set_player_control $player1 {state} True
if 
  not is_char_dead 39@
goto_if_false @GYMLS_2696
perform_sequence_task 39@ {sequence} 53@

:GYMLS_2696
TIMERA = 0
55@ = 1
goto @GYMLS_1489

:GYMLS_2717
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMLS_2845
44@ = 0
46@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4801

:GYMLS_2761
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_2787
wait 0
goto @GYMLS_2761

:GYMLS_2787
play_mission_audio MissionAudioSlot.Slot1
print_now 'BBOX_2' {time} 3000 {flag} 1
set_player_control $player1 {state} True
if 
  not is_char_dead 39@
goto_if_false @GYMLS_2838
perform_sequence_task 39@ {sequence} 53@

:GYMLS_2838
goto @GYMLS_1489

:GYMLS_2845
goto @GYMLS_2504

:GYMLS_2852
clear_help 
clear_prints 
set_player_cycle_weapon_button $player1 {enabled} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
gosub @GYMLS_6055
delete_char 37@
delete_char 34@
delete_char 35@
34@ = create_char PedType.Mission2 {modelId} 81 {x} 761.6934 {y} 4.2203 {z} 999.7099
set_char_heading 34@ {heading} 171.4614
perform_sequence_task 34@ {sequence} 49@
35@ = create_char PedType.Mission2 {modelId} 81 {x} 764.7962 {y} 0.7163 {z} 999.715
set_char_heading 35@ {heading} 93.8066
perform_sequence_task 35@ {sequence} 50@
37@ = create_char PedType.Mission2 {modelId} 19 {x} 759.5085 {y} 4.2343 {z} 999.7051
set_char_heading 37@ {heading} 189.7654
perform_sequence_task 37@ {sequence} 51@
if 
  not is_char_dead 39@
goto_if_false @GYMLS_3080
set_char_coordinates_dont_warp_gang 39@ {x} 762.616 {y} 2.1235 {z} 1000.594
set_char_heading 39@ {heading} 135.5749
set_char_health 39@ {health} 1000
set_char_max_health 39@ {maxHealth} 1000

:GYMLS_3080
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_3126
set_char_coordinates_dont_warp_gang $scplayer {x} 759.0147 {y} -1.7235 {z} 1000.594
set_char_heading $scplayer {heading} 312.9747

:GYMLS_3126
if 
  not is_char_dead 39@
goto_if_false @GYMLS_3174
set_char_decision_maker 39@ {handleOrTemplate} 57@
task_kill_char_on_foot 39@ {target} $scplayer
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
set_char_shoot_rate 39@ {rate} 100

:GYMLS_3174
set_camera_behind_player 
set_player_control $player1 {state} True
if 
  $8156 == 0
goto_if_false @GYMLS_3212
print_help_forever 'GYM1101'

:GYMLS_3212
if 
  $8156 == 1
goto_if_false @GYMLS_3241
print_help_forever 'GYM1_84'

:GYMLS_3241
gosub @GYMLS_6111
TIMERA = 0
TIMERB = 0
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  not is_char_dead $scplayer
goto_if_false @GYMLS_3290
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundGymBoxingBell

:GYMLS_3290
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_3807
wait 0
if 
  not is_char_dead 35@
goto_if_false @GYMLS_3381
if 
  not locate_char_any_means_3d 35@ {x} 761.0182 {y} 0.6609 {z} 1000.594 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @GYMLS_3381
goto @GYMLS_3807

:GYMLS_3381
if 
  not is_char_dead 34@
goto_if_false @GYMLS_3437
if and
  TIMERB > 3000
  65@ == 0
goto_if_false @GYMLS_3430
65@ = 1

:GYMLS_3430
TIMERB = 0

:GYMLS_3437
if 
  not is_char_dead 35@
goto_if_false @GYMLS_3493
if and
  TIMERB > 3000
  65@ == 1
goto_if_false @GYMLS_3486
65@ = 0

:GYMLS_3486
TIMERB = 0

:GYMLS_3493
if 
  $8156 == 1
goto_if_false @GYMLS_3777
if 
  56@ == 0
goto_if_false @GYMLS_3556
TIMERA = 0
clear_help 
print_help_forever 'GYM1_94'
56@ = 1

:GYMLS_3556
if 
  not is_german_game 
goto_if_false @GYMLS_3682
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLS_3622
clear_help 
print_help_forever 'GYM1_95'
TIMERA = 0
56@ = 2

:GYMLS_3622
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMLS_3675
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLS_3675
goto @GYMLS_3735

:GYMLS_3682
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLS_3735
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLS_3735
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMLS_3777
clear_help 
TIMERA = 0
56@ = 0

:GYMLS_3777
if 
  is_char_dead 39@
goto_if_false @GYMLS_3800
goto @GYMLS_3807

:GYMLS_3800
goto @GYMLS_3290

:GYMLS_3807
clear_help 
if 
  $8156 == 1
goto_if_false @GYMLS_3834
goto @GYMLS_5431

:GYMLS_3834
gosub @GYMLS_6055
delete_char 39@
clear_area 760.7445 {y} 0.6538 {z} 1000.594 {radius} 10.0 {clearParticles} True
gosub @GYMLS_6003
39@ = create_char PedType.Mission2 {modelId} 80 {x} 762.616 {y} 2.1235 {z} 1000.594
set_char_heading 39@ {heading} 135.5749
set_char_decision_maker 39@ {handleOrTemplate} 43@
clear_char_tasks_immediately 39@
set_char_decision_maker 39@ {handleOrTemplate} 43@
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_3987
set_char_coordinates_dont_warp_gang $scplayer {x} 759.0147 {y} -1.7235 {z} 1000.594
set_char_heading $scplayer {heading} 312.9747

:GYMLS_3987
delete_char 34@
delete_char 35@
delete_char 37@
set_fixed_camera_position 764.0964 {y} -4.8216 {z} 1003.062 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 763.5206 {y} -4.0516 {z} 1002.787 {switchStyle} SwitchType.JumpCut
gosub @GYMLS_6111
print_now 'BBOX_5' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4804

:GYMLS_4087
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_4130
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4123

:GYMLS_4123
goto @GYMLS_4087

:GYMLS_4130
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERA = 0

:GYMLS_4146
if 
  2000 > TIMERA
goto_if_false @GYMLS_4193
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4186

:GYMLS_4186
goto @GYMLS_4146

:GYMLS_4193
set_fixed_camera_position 762.5212 {y} -0.4172 {z} 1001.843 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 762.5431 {y} 0.5793 {z} 1001.762 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_97' {time} 2000 {flag} 1
TIMERA = 0

:GYMLS_4267
if 
  2000 > TIMERA
goto_if_false @GYMLS_4314
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4307

:GYMLS_4307
goto @GYMLS_4267

:GYMLS_4314
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4805

:GYMLS_4325
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_4368
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4361

:GYMLS_4361
goto @GYMLS_4325

:GYMLS_4368
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_94' {time} 4000 {flag} 1
TIMERA = 0

:GYMLS_4395
if 
  4000 > TIMERA
goto_if_false @GYMLS_4442
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4435

:GYMLS_4435
goto @GYMLS_4395

:GYMLS_4442
if 
  not is_char_dead 39@
goto_if_false @GYMLS_4497
task_play_anim 39@ {animationName} "FIGHTB_M" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4497
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_4545
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4545
TIMERA = 0

:GYMLS_4552
if 
  3000 > TIMERA
goto_if_false @GYMLS_4599
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4592

:GYMLS_4592
goto @GYMLS_4552

:GYMLS_4599
if 
  not is_german_game 
goto_if_false @GYMLS_5018
set_fixed_camera_position 759.6699 {y} 1.9955 {z} 1001.068 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 760.6637 {y} 2.0051 {z} 1001.178 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_98' {time} 2000 {flag} 1
TIMERA = 0

:GYMLS_4686
if 
  2000 > TIMERA
goto_if_false @GYMLS_4733
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4726

:GYMLS_4726
goto @GYMLS_4686

:GYMLS_4733
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4806

:GYMLS_4744
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_4787
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4780

:GYMLS_4780
goto @GYMLS_4744

:GYMLS_4787
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_95' {time} 4000 {flag} 1
TIMERA = 0

:GYMLS_4814
if 
  4000 > TIMERA
goto_if_false @GYMLS_4861
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_4854

:GYMLS_4854
goto @GYMLS_4814

:GYMLS_4861
if 
  not is_char_dead 39@
goto_if_false @GYMLS_4916
task_play_anim 39@ {animationName} "FIGHTB_G" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4916
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_4964
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_4964
TIMERA = 0

:GYMLS_4971
if 
  3000 > TIMERA
goto_if_false @GYMLS_5018
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5011

:GYMLS_5011
goto @GYMLS_4971

:GYMLS_5018
set_fixed_camera_position 764.5368 {y} 3.1767 {z} 1002.349 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 763.7495 {y} 2.6046 {z} 1002.12 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_99' {time} 2000 {flag} 1
TIMERA = 0

:GYMLS_5092
if 
  2000 > TIMERA
goto_if_false @GYMLS_5139
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5132

:GYMLS_5132
goto @GYMLS_5092

:GYMLS_5139
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 4807

:GYMLS_5150
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLS_5193
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5186

:GYMLS_5186
goto @GYMLS_5150

:GYMLS_5193
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_96' {time} 4000 {flag} 1
TIMERA = 0

:GYMLS_5220
if 
  4000 > TIMERA
goto_if_false @GYMLS_5267
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5260

:GYMLS_5260
goto @GYMLS_5220

:GYMLS_5267
if 
  not is_char_dead 39@
goto_if_false @GYMLS_5329
freeze_char_position 39@ {state} True
task_play_anim 39@ {animationName} "FIGHTB_3" {animationFile} "FIGHT_B" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLS_5329
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_5377
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMLS_5377
TIMERA = 0

:GYMLS_5384
if 
  2000 > TIMERA
goto_if_false @GYMLS_5431
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_5424

:GYMLS_5424
goto @GYMLS_5384

:GYMLS_5431
delete_char 37@
delete_char 34@
delete_char 35@
gosub @GYMLS_6055
34@ = create_char PedType.Mission2 {modelId} 81 {x} 761.6263 {y} 11.4876 {z} 1000.164
set_char_heading 34@ {heading} 128.1297
set_char_decision_maker 34@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 34@ {state} True
shut_char_up 34@ {state} True
35@ = create_char PedType.Mission2 {modelId} 81 {x} 760.343 {y} 10.1973 {z} 999.7099
set_char_heading 35@ {heading} 310.2206
set_char_decision_maker 35@ {handleOrTemplate} 58@
set_char_only_damaged_by_player 35@ {state} True
shut_char_up 34@ {state} True
perform_sequence_task 34@ {sequence} 52@
perform_sequence_task 35@ {sequence} 41@
37@ = create_char PedType.Mission2 {modelId} 19 {x} 762.8681 {y} 7.4928 {z} 999.7141
set_char_heading 37@ {heading} 13.3401
perform_sequence_task 37@ {sequence} 40@
set_char_decision_maker 37@ {handleOrTemplate} 57@
delete_char 39@
39@ = create_char PedType.Mission2 {modelId} 80 {x} 767.2571 {y} 14.4044 {z} 999.6998
set_char_heading 39@ {heading} 263.2938
set_char_decision_maker 39@ {handleOrTemplate} 57@
perform_sequence_task 39@ {sequence} 53@
give_melee_attack_to_char 39@ {style} FightStyle.Boxeo {move} FightMoves.All
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_5741
set_char_coordinates_dont_warp_gang $scplayer {x} 765.6662 {y} 2.7963 {z} 999.718
set_char_heading $scplayer {heading} 277.3348

:GYMLS_5741
gosub @GYMLS_6027
gosub @GYMLS_6111
if 
  $gym_ls_defeated == 0
goto_if_false @GYMLS_5784
player_made_progress 1
$gym_ls_defeated = 1

:GYMLS_5784
give_melee_attack_to_char $scplayer {style} FightStyle.Boxeo {move} FightMoves.All
if 
  $8156 == 0
goto_if_false @GYMLS_5827
print_now 'GYM1_93' {time} 3000 {flag} 1

:GYMLS_5827
$player_been_taught_move = 0
$8156 = 1
$8157 = 0
set_player_cycle_weapon_button $player1 {enabled} True

:GYMLS_5855
goto @GYMLS_1489

:GYMLS_5862
return 
print_with_number_big 'M_PASS' {num} 30000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 30000
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:GYMLS_5902
if 
  not is_char_dead $scplayer
goto_if_false @GYMLS_5925
listen_to_player_group_commands $scplayer {state} True

:GYMLS_5925
mark_model_as_no_longer_needed 80
mark_model_as_no_longer_needed 81
mark_model_as_no_longer_needed 19
remove_animation "GYMNASIUM"
remove_animation "RIOT"
remove_animation "FIGHT_B"
remove_animation "INT_SHOP"
clear_mission_audio MissionAudioSlot.Slot4
$gym_is_running = 0
$onmission = 0
mission_has_finished 
return 

:GYMLS_6003
clear_help 
clear_prints 
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:GYMLS_6027
clear_help 
clear_prints 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:GYMLS_6055
do_fade 500 {direction} Fade.Out

:GYMLS_6062
if 
  get_fading_status 
goto_if_false @GYMLS_6109
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLS_6102
do_fade 1 {direction} Fade.Out

:GYMLS_6102
goto @GYMLS_6062

:GYMLS_6109
return 

:GYMLS_6111
do_fade 500 {direction} Fade.In

:GYMLS_6118
if 
  get_fading_status 
goto_if_false @GYMLS_6142
wait 0
goto @GYMLS_6118

:GYMLS_6142
return 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 63@
64@ = 0
return 

:GYMLS_6164
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  64@ == 0
goto_if_false @GYMLS_6207
play_mission_audio MissionAudioSlot.Slot1
print_now 61@s {time} 10000 {flag} 1
64@ = 1

:GYMLS_6207
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  64@ == 1
goto_if_false @GYMLS_6245
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 61@s
64@ = 2

:GYMLS_6245
return 

//-------------Mission 115---------------
// Originally: San Fierro Gym Fight School

:GYMSF
script_name 'GYMSF'
do_fade 0 {direction} Fade.Out
gosub @GYMSF_63
set_fading_colour 0 {g} 0 {b} 0
if 
  has_deatharrest_been_executed 
goto_if_false @GYMSF_52
gosub @GYMSF_5328

:GYMSF_52
gosub @GYMSF_5368
terminate_this_script 
register_mission_given 

:GYMSF_63
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_86
listen_to_player_group_commands $scplayer {state} False

:GYMSF_86
$gym_is_running = 1
63@ = 2
$onmission = 1
increment_int_stat StatId.VisitsToGym {value} 1
load_mission_text 'GYM'
request_model 96
request_model 203
request_model 97
request_model 49
request_model 204

:GYMSF_147
if or
  not has_model_loaded 96
  not has_model_loaded 203
  not has_model_loaded 97
  not has_model_loaded 49
  not has_model_loaded 204
goto_if_false @GYMSF_191
wait 0
goto @GYMSF_147

:GYMSF_191
request_animation "PARK"
request_animation "FIGHT_C"
request_animation "GYMNASIUM"

:GYMSF_223
if or
  not has_animation_loaded "PARK"
  not has_animation_loaded "FIGHT_C"
  not has_animation_loaded "GYMNASIUM"
goto_if_false @GYMSF_277
wait 0
goto @GYMSF_223

:GYMSF_277
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMSF_288
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMSF_314
wait 0
goto @GYMSF_288

:GYMSF_314
40@ = load_char_decision_maker DecisionMakerType.Empty
57@ = load_char_decision_maker DecisionMakerType.Normal
41@ = load_char_decision_maker DecisionMakerType.Tough
52@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 768.064 {y} -41.5728 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 358.0992
task_look_about -1 {time} -2
close_sequence_task 52@
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 770.3961 {y} -23.0853 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 87.3049
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 53@
54@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_to_coord_any_means -1 {x} 766.3062 {y} -23.0554 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 272.4196
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 54@
42@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_to_coord_any_means -1 {x} 769.8199 {y} -36.4933 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 88.548
task_play_anim -1 {animationName} "FIGHTC_IDLE" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 42@ {state} True
close_sequence_task 42@
43@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 767.057 {y} -37.0465 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 270.0
task_play_anim -1 {animationName} "FIGHTC_IDLE" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 43@ {state} True
close_sequence_task 43@
48@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 768.064 {y} -41.5728 {z} 999.6865 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 358.0992
task_look_about -1 {time} -2
set_sequence_to_repeat 48@ {state} True
close_sequence_task 48@
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
perform_sequence_task 38@ {sequence} 48@
set_char_decision_maker 38@ {handleOrTemplate} 57@
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
49@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 770.3961 {y} -23.0853 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 87.3049
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 49@ {state} True
close_sequence_task 49@
35@ = create_char PedType.CivMale {modelId} 96 {x} 770.3961 {y} -23.0853 {z} 999.5938
set_char_heading 35@ {heading} 87.3049
perform_sequence_task 35@ {sequence} 49@
set_char_decision_maker 35@ {handleOrTemplate} 41@
give_melee_attack_to_char 35@ {style} FightStyle.KungFu {move} FightMoves.All
50@ = open_sequence_task 
task_pause -1 {time} 1000
task_go_to_coord_any_means -1 {x} 766.3062 {y} -23.0554 {z} 999.5938 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 272.4196
task_play_anim -1 {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 50@ {state} True
close_sequence_task 50@
34@ = create_char PedType.CivMale {modelId} 97 {x} 766.3062 {y} -23.0554 {z} 999.5938
set_char_heading 34@ {heading} 272.4196
perform_sequence_task 34@ {sequence} 50@
set_char_decision_maker 34@ {handleOrTemplate} 41@
give_melee_attack_to_char 34@ {style} FightStyle.KungFu {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 203 {x} 769.8199 {y} -36.4933 {z} 999.6865
set_char_heading 36@ {heading} 95.1885
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
give_melee_attack_to_char 36@ {style} FightStyle.KungFu {move} FightMoves.All
37@ = create_char PedType.CivMale {modelId} 204 {x} 766.1017 {y} -37.3952 {z} 999.6865
set_char_heading 37@ {heading} 271.1251
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
give_melee_attack_to_char 37@ {style} FightStyle.KungFu {move} FightMoves.All
gosub @GYMSF_5567
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @GYMSF_1318
$gym_day_fitness = 0.0

:GYMSF_1318
wait 0
gosub @GYMSF_5620
if 
  51@ == 0
goto_if_false @GYMSF_1422
if 
  not is_char_dead 37@
goto_if_false @GYMSF_1422
if 
  is_char_playing_anim 37@ {animationName} "FIGHTC_SPAR"
goto_if_false @GYMSF_1422
set_char_anim_current_time 37@ {animationName} "FIGHTC_SPAR" {time} 0.45
51@ = 1

:GYMSF_1422
$main_visible_area = get_char_area_visible $scplayer
if 
  $main_visible_area == 0
goto_if_false @GYMSF_1455
goto @GYMSF_5328

:GYMSF_1455
if 
  not locate_char_any_means_3d $scplayer {x} 769.7938 {y} -42.1122 {z} 999.6865 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMSF_1510
47@ = 0

:GYMSF_1510
if 
  not is_char_dead 38@
goto_if_false @GYMSF_5321
if and
  47@ == 0
  locate_char_any_means_3d 38@ {x} 768.064 {y} -41.5728 {z} 999.6865 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @GYMSF_5321
if 
  locate_stopped_char_any_means_3d $scplayer {x} 769.7938 {y} -42.1122 {z} 999.6865 {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @GYMSF_1629

:GYMSF_1629
if and
  locate_stopped_char_any_means_3d $scplayer {x} 769.7938 {y} -42.1122 {z} 999.6865 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  not is_char_dead 38@
goto_if_false @GYMSF_5321
if and
  not is_char_dead 38@
  not is_char_dead $scplayer
goto_if_false @GYMSF_1731
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
task_turn_char_to_face_char 38@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 38@

:GYMSF_1731
if 
  $player_been_taught_move == 0
goto_if_false @GYMSF_1806
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21200

:GYMSF_1760
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_1786
wait 0
goto @GYMSF_1760

:GYMSF_1786
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_1' {time} 3000 {flag} 1

:GYMSF_1806
if 
  $player_been_taught_move == 1
goto_if_false @GYMSF_1881
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21203

:GYMSF_1835
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_1861
wait 0
goto @GYMSF_1835

:GYMSF_1861
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_4' {time} 3000 {flag} 1

:GYMSF_1881
print_help_forever 'GYM1_73'

:GYMSF_1892
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_2216
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMSF_2081
59@ = get_float_stat StatId.BodyMuscle
if 
  59@ > 349.0
goto_if_false @GYMSF_1980
44@ = 1
clear_help 
goto @GYMSF_2218
goto @GYMSF_2081

:GYMSF_1980
44@ = 0
47@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21202

:GYMSF_2007
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_2033
wait 0
goto @GYMSF_2007

:GYMSF_2033
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_3' {time} 3000 {flag} 1
set_player_control $player1 {state} True
TIMERA = 0
55@ = 1
goto @GYMSF_1318

:GYMSF_2081
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMSF_2209
44@ = 0
47@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21201

:GYMSF_2125
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_2151
wait 0
goto @GYMSF_2125

:GYMSF_2151
play_mission_audio MissionAudioSlot.Slot1
print_now 'KUNG_2' {time} 3000 {flag} 1
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2195
perform_sequence_task 38@ {sequence} 48@

:GYMSF_2195
set_player_control $player1 {state} True
goto @GYMSF_1318

:GYMSF_2209
goto @GYMSF_1892

:GYMSF_2216
clear_help 

:GYMSF_2218
clear_help 
clear_prints 
set_player_cycle_weapon_button $player1 {enabled} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  44@ == 1
goto_if_false @GYMSF_5321
gosub @GYMSF_5511
delete_char 36@
delete_char 37@
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2333
set_char_coordinates_dont_warp_gang 38@ {x} 771.4357 {y} -36.9728 {z} 999.6865
set_char_heading 38@ {heading} 88.1801
set_char_health 38@ {health} 1000
set_char_max_health 38@ {maxHealth} 1000

:GYMSF_2333
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_2379
set_char_coordinates_dont_warp_gang $scplayer {x} 764.6453 {y} -37.1052 {z} 999.6865
set_char_heading $scplayer {heading} 273.9816

:GYMSF_2379
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2427
set_char_decision_maker 38@ {handleOrTemplate} 41@
task_kill_char_on_foot 38@ {target} $scplayer
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
set_char_shoot_rate 38@ {rate} 100

:GYMSF_2427
set_camera_behind_player 
set_player_control $player1 {state} True
if 
  $player_been_taught_move == 0
goto_if_false @GYMSF_2465
print_help_forever 'GYM1106'

:GYMSF_2465
if 
  $player_been_taught_move == 1
goto_if_false @GYMSF_2494
print_help_forever 'GYM1_84'

:GYMSF_2494
gosub @GYMSF_5567
58@ = 0
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  not is_char_dead $scplayer
goto_if_false @GYMSF_2536
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundGymBoxingBell

:GYMSF_2536
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_3285
wait 0
if 
  $player_been_taught_move == 1
goto_if_false @GYMSF_2840
if 
  56@ == 0
goto_if_false @GYMSF_2619
TIMERA = 0
clear_help 
print_help_forever 'GYM1_94'
56@ = 1

:GYMSF_2619
if 
  not is_german_game 
goto_if_false @GYMSF_2745
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMSF_2685
clear_help 
print_help_forever 'GYM1_95'
TIMERA = 0
56@ = 2

:GYMSF_2685
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMSF_2738
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMSF_2738
goto @GYMSF_2798

:GYMSF_2745
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMSF_2798
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMSF_2798
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMSF_2840
clear_help 
TIMERA = 0
56@ = 0

:GYMSF_2840
if 
  not is_char_dead 38@
goto_if_false @GYMSF_2911
if 
  not locate_char_any_means_3d 38@ {x} 768.4611 {y} -36.6685 {z} 999.6865 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @GYMSF_2911
goto @GYMSF_3285

:GYMSF_2911
if 
  not locate_char_any_means_3d $scplayer {x} 768.4611 {y} -36.6685 {z} 999.6865 {xRadius} 6.0 {yRadius} 6.0 {zRadius} 6.0 {drawSphere} False
goto_if_false @GYMSF_3255
gosub @GYMSF_5511
delete_char 38@
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
perform_sequence_task 38@ {sequence} 48@
set_char_decision_maker 38@ {handleOrTemplate} 41@
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 203 {x} 769.8199 {y} -36.4933 {z} 999.6865
set_char_heading 36@ {heading} 95.1885
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
give_melee_attack_to_char 36@ {style} FightStyle.KungFu {move} FightMoves.All
37@ = create_char PedType.CivMale {modelId} 204 {x} 766.1017 {y} -37.3952 {z} 999.6865
set_char_heading 37@ {heading} 271.1251
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
give_melee_attack_to_char 37@ {style} FightStyle.KungFu {move} FightMoves.All
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_3203
set_char_coordinates_dont_warp_gang $scplayer {x} 762.756 {y} -37.2153 {z} 999.6865
set_char_heading $scplayer {heading} 90.0
set_player_control $player1 {state} True

:GYMSF_3203
clear_prints 
clear_help 
gosub @GYMSF_5567
if 
  $player_been_taught_move == 0
goto_if_false @GYMSF_3248
print_now 'GYM1_92' {time} 5000 {flag} 1

:GYMSF_3248
goto @GYMSF_1318

:GYMSF_3255
if 
  is_char_dead 38@
goto_if_false @GYMSF_3278
goto @GYMSF_3285

:GYMSF_3278
goto @GYMSF_2536

:GYMSF_3285
clear_help 
if 
  $player_been_taught_move == 1
goto_if_false @GYMSF_3319
gosub @GYMSF_5511
goto @GYMSF_4956

:GYMSF_3319
gosub @GYMSF_5511
delete_char 38@
clear_area 768.1746 {y} -36.6986 {z} 999.6865 {radius} 5.0 {clearParticles} True
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
set_char_decision_maker 38@ {handleOrTemplate} 40@
if 
  not is_char_dead 38@
goto_if_false @GYMSF_3443
set_char_coordinates_dont_warp_gang 38@ {x} 771.4357 {y} -36.9728 {z} 999.6865
set_char_heading 38@ {heading} 88.1801

:GYMSF_3443
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_3494
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 764.6453 {y} -37.1052 {z} 999.6865
set_char_heading $scplayer {heading} 273.9816

:GYMSF_3494
if 
  not is_char_dead 38@
goto_if_false @GYMSF_3520
set_char_decision_maker 38@ {handleOrTemplate} DecisionMakerCharTemplate.Empty

:GYMSF_3520
gosub @GYMSF_5467
set_fixed_camera_position 762.8773 {y} -35.4754 {z} 1001.545 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 763.8198 {y} -35.703 {z} 1001.3 {switchStyle} SwitchType.JumpCut
gosub @GYMSF_5567
print_now 'KUNG_5' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21204

:GYMSF_3612
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_3655
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3648

:GYMSF_3648
goto @GYMSF_3612

:GYMSF_3655
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERA = 0

:GYMSF_3671
if 
  2000 > TIMERA
goto_if_false @GYMSF_3718
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3711

:GYMSF_3711
goto @GYMSF_3671

:GYMSF_3718
set_fixed_camera_position 767.428 {y} -39.4061 {z} 1000.416 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 768.1919 {y} -38.7609 {z} 1000.4 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_97' {time} 2000 {flag} 1
TIMERA = 0

:GYMSF_3792
if 
  2000 > TIMERA
goto_if_false @GYMSF_3839
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3832

:GYMSF_3832
goto @GYMSF_3792

:GYMSF_3839
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21205

:GYMSF_3850
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_3893
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3886

:GYMSF_3886
goto @GYMSF_3850

:GYMSF_3893
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_94' {time} 4000 {flag} 1
TIMERA = 0

:GYMSF_3920
if 
  4000 > TIMERA
goto_if_false @GYMSF_3967
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_3960

:GYMSF_3960
goto @GYMSF_3920

:GYMSF_3967
if 
  not is_char_dead 38@
goto_if_false @GYMSF_4022
task_play_anim 38@ {animationName} "FIGHTC_M" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4022
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_4070
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4070
TIMERA = 0

:GYMSF_4077
if 
  3000 > TIMERA
goto_if_false @GYMSF_4124
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4117

:GYMSF_4117
goto @GYMSF_4077

:GYMSF_4124
if 
  not is_german_game 
goto_if_false @GYMSF_4543
set_fixed_camera_position 768.0062 {y} -35.1731 {z} 1000.276 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 768.757 {y} -35.8325 {z} 1000.314 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_98' {time} 2000 {flag} 1
TIMERA = 0

:GYMSF_4211
if 
  2000 > TIMERA
goto_if_false @GYMSF_4258
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4251

:GYMSF_4251
goto @GYMSF_4211

:GYMSF_4258
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21206

:GYMSF_4269
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_4312
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4305

:GYMSF_4305
goto @GYMSF_4269

:GYMSF_4312
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_95' {time} 4000 {flag} 1
TIMERA = 0

:GYMSF_4339
if 
  4000 > TIMERA
goto_if_false @GYMSF_4386
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4379

:GYMSF_4379
goto @GYMSF_4339

:GYMSF_4386
if 
  not is_char_dead 38@
goto_if_false @GYMSF_4441
task_play_anim 38@ {animationName} "FIGHTC_G" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4441
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_4489
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4489
TIMERA = 0

:GYMSF_4496
if 
  3000 > TIMERA
goto_if_false @GYMSF_4543
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4536

:GYMSF_4536
goto @GYMSF_4496

:GYMSF_4543
set_fixed_camera_position 772.6448 {y} -38.011 {z} 1000.478 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 771.679 {y} -37.7522 {z} 1000.485 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_99' {time} 2000 {flag} 1
TIMERA = 0

:GYMSF_4617
if 
  2000 > TIMERA
goto_if_false @GYMSF_4664
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4657

:GYMSF_4657
goto @GYMSF_4617

:GYMSF_4664
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 21207

:GYMSF_4675
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMSF_4718
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4711

:GYMSF_4711
goto @GYMSF_4675

:GYMSF_4718
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_96' {time} 4000 {flag} 1
TIMERA = 0

:GYMSF_4745
if 
  4000 > TIMERA
goto_if_false @GYMSF_4792
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4785

:GYMSF_4785
goto @GYMSF_4745

:GYMSF_4792
if 
  not is_char_dead 38@
goto_if_false @GYMSF_4854
freeze_char_position 38@ {state} True
task_play_anim 38@ {animationName} "FIGHTC_3" {animationFile} "FIGHT_C" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMSF_4854
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_4902
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMSF_4902
TIMERA = 0

:GYMSF_4909
if 
  2000 > TIMERA
goto_if_false @GYMSF_4956
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_4949

:GYMSF_4949
goto @GYMSF_4909

:GYMSF_4956
gosub @GYMSF_5511
delete_char 38@
38@ = create_char PedType.CivMale {modelId} 49 {x} 768.064 {y} -41.5728 {z} 999.6865
set_char_heading 38@ {heading} 358.0992
perform_sequence_task 38@ {sequence} 48@
set_char_decision_maker 38@ {handleOrTemplate} 41@
give_melee_attack_to_char 38@ {style} FightStyle.KungFu {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 203 {x} 769.8199 {y} -36.4933 {z} 999.6865
set_char_heading 36@ {heading} 95.1885
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
give_melee_attack_to_char 36@ {style} FightStyle.KungFu {move} FightMoves.All
37@ = create_char PedType.CivMale {modelId} 204 {x} 766.1017 {y} -37.3952 {z} 999.6865
set_char_heading 37@ {heading} 271.1251
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
give_melee_attack_to_char 37@ {style} FightStyle.KungFu {move} FightMoves.All
gosub @GYMSF_5487
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_5214
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 765.9402 {y} -41.602 {z} 999.6865
set_char_heading $scplayer {heading} 265.007
set_player_control $player1 {state} True
set_camera_behind_player 

:GYMSF_5214
gosub @GYMSF_5567
if 
  $gym_sf_defeated == 0
goto_if_false @GYMSF_5250
player_made_progress 1
$gym_sf_defeated = 1

:GYMSF_5250
if 
  $player_been_taught_move == 0
goto_if_false @GYMSF_5284
print_now 'GYM1_93' {time} 3000 {flag} 1

:GYMSF_5284
give_melee_attack_to_char $scplayer {style} FightStyle.KungFu {move} FightMoves.All
set_player_cycle_weapon_button $player1 {enabled} True
$player_been_taught_move = 1
$8156 = 0
$8157 = 0

:GYMSF_5321
goto @GYMSF_1318

:GYMSF_5328
return 
print_with_number_big 'M_PASS' {num} 30000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 30000
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:GYMSF_5368
if 
  not is_char_dead $scplayer
goto_if_false @GYMSF_5391
listen_to_player_group_commands $scplayer {state} True

:GYMSF_5391
mark_model_as_no_longer_needed 96
mark_model_as_no_longer_needed 203
mark_model_as_no_longer_needed 97
mark_model_as_no_longer_needed 49
mark_model_as_no_longer_needed 204
remove_animation "GYMNASIUM"
remove_animation "PARK"
remove_animation "FIGHT_C"
clear_mission_audio MissionAudioSlot.Slot4
$gym_is_running = 0
$onmission = 0
mission_has_finished 
return 

:GYMSF_5467
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:GYMSF_5487
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:GYMSF_5511
do_fade 500 {direction} Fade.Out

:GYMSF_5518
if 
  get_fading_status 
goto_if_false @GYMSF_5565
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMSF_5558
do_fade 1 {direction} Fade.Out

:GYMSF_5558
goto @GYMSF_5518

:GYMSF_5565
return 

:GYMSF_5567
do_fade 500 {direction} Fade.In

:GYMSF_5574
if 
  get_fading_status 
goto_if_false @GYMSF_5598
wait 0
goto @GYMSF_5574

:GYMSF_5598
return 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 62@
63@ = 0
return 

:GYMSF_5620
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  63@ == 0
goto_if_false @GYMSF_5663
play_mission_audio MissionAudioSlot.Slot1
print_now 60@s {time} 10000 {flag} 1
63@ = 1

:GYMSF_5663
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  63@ == 1
goto_if_false @GYMSF_5701
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 60@s
63@ = 2

:GYMSF_5701
return 

//-------------Mission 116---------------
// Originally: Las Venturas Gym Fight School

:GYMLV
script_name 'GYMLV'
gosub @GYMLV_57
set_fading_colour 0 {g} 0 {b} 0
if 
  has_deatharrest_been_executed 
goto_if_false @GYMLV_46
gosub @GYMLV_5200

:GYMLV_46
gosub @GYMLV_5240
terminate_this_script 
register_mission_given 

:GYMLV_57
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_80
listen_to_player_group_commands $scplayer {state} False

:GYMLV_80
$gym_is_running = 1
$onmission = 1
increment_int_stat StatId.VisitsToGym {value} 1
load_mission_text 'GYM'
request_model 80
request_model 81
request_model 19
request_animation "RIOT"
request_animation "FIGHT_D"
request_animation "GYMNASIUM"
request_animation "INT_SHOP"
load_all_models_now 

:GYMLV_170
if or
  not has_animation_loaded "GYMNASIUM"
  not has_model_loaded 80
  not has_model_loaded 81
goto_if_false @GYMLV_213
wait 0
goto @GYMLV_170

:GYMLV_213
if or
  not has_model_loaded 19
  not has_animation_loaded "RIOT"
  not has_animation_loaded "FIGHT_D"
  not has_animation_loaded "INT_SHOP"
goto_if_false @GYMLV_270
wait 0
goto @GYMLV_213

:GYMLV_270
41@ = load_char_decision_maker DecisionMakerType.Empty
51@ = load_char_decision_maker DecisionMakerType.Tough
set_relationship RelationshipType.Hate {ofPedType} PedType.Mission1 {toPedType} PedType.Player1
63@ = open_sequence_task 
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
task_pause -1 {time} 1000
set_sequence_to_repeat 63@ {state} True
close_sequence_task 63@
64@ = open_sequence_task 
task_pause -1 {time} 500
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 64@ {state} True
close_sequence_task 64@
65@ = open_sequence_task 
task_pause -1 {time} 750
task_play_anim -1 {animationName} "RIOT_SHOUT" {animationFile} "RIOT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_turn_char_to_face_char -1 {target} $scplayer
set_sequence_to_repeat 65@ {state} True
close_sequence_task 65@
52@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 773.8429 {y} -61.5409 {z} 999.7184 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 93.0279
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 52@
53@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 771.2518 {y} -69.3033 {z} 999.6562 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 85.5162
close_sequence_task 53@
54@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 762.3508 {y} -78.2144 {z} 999.6562 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 359.2498
task_play_anim -1 {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 54@
48@ = open_sequence_task 
task_go_to_coord_any_means -1 {x} 762.3508 {y} -78.2144 {z} 999.6562 {speed} MoveState.Walk {vehicle} -1
task_achieve_heading -1 {heading} 359.2498
task_play_anim -1 {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_sequence_to_repeat 48@ {state} True
close_sequence_task 48@
34@ = create_char PedType.CivMale {modelId} 81 {x} 762.3508 {y} -78.2144 {z} 999.6562
set_char_heading 34@ {heading} 359.2498
set_char_decision_maker 34@ {handleOrTemplate} 51@
perform_sequence_task 34@ {sequence} 48@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 81 {x} 766.2026 {y} -69.2071 {z} 1000.569
set_char_heading 36@ {heading} 330.7023
set_char_decision_maker 36@ {handleOrTemplate} 41@
37@ = create_char PedType.CivMale {modelId} 80 {x} 767.1087 {y} -67.9132 {z} 1000.569
set_char_heading 37@ {heading} 129.3961
set_char_decision_maker 37@ {handleOrTemplate} 41@
42@ = open_sequence_task 
task_pause -1 {time} 1000
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 42@
43@ = open_sequence_task 
task_play_anim -1 {animationName} "GYMSHADOWBOX" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 43@
perform_sequence_task 36@ {sequence} 42@
perform_sequence_task 37@ {sequence} 43@
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMLV_1078
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMLV_1104
wait 0
goto @GYMLV_1078

:GYMLV_1104
62@ = 2
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @GYMLV_1148
$gym_day_fitness = 0.0

:GYMLV_1148
wait 0
gosub @GYMLV_5494
if 
  57@ == 0
goto_if_false @GYMLV_1279
if 
  is_char_dead 36@
goto_if_false @GYMLV_1228
if 
  not is_char_dead 37@
goto_if_false @GYMLV_1228
clear_char_tasks_immediately 37@
task_duck 37@ {time} -2
57@ = 1

:GYMLV_1228
if 
  is_char_dead 37@
goto_if_false @GYMLV_1279
if 
  not is_char_dead 36@
goto_if_false @GYMLV_1279
clear_char_tasks_immediately 36@
task_duck 36@ {time} -2
57@ = 1

:GYMLV_1279
$main_visible_area = get_char_area_visible $scplayer
if 
  $main_visible_area == 0
goto_if_false @GYMLV_1312
goto @GYMLV_5200

:GYMLV_1312
if 
  not locate_char_any_means_3d $scplayer {x} 763.3589 {y} -76.7606 {z} 999.6562 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMLV_1367
45@ = 0

:GYMLV_1367
if 
  not is_char_dead 34@
goto_if_false @GYMLV_5193
if and
  45@ == 0
  locate_char_any_means_3d 34@ {x} 762.3508 {y} -78.2144 {z} 999.6562 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @GYMLV_5193
if 
  locate_stopped_char_any_means_3d $scplayer {x} 763.3589 {y} -76.7606 {z} 999.6562 {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @GYMLV_1486

:GYMLV_1486
if and
  locate_stopped_char_any_means_3d $scplayer {x} 763.3589 {y} -76.7606 {z} 999.6562 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.2 {drawSphere} False
  not is_char_dead 34@
goto_if_false @GYMLV_5193
if and
  not is_char_dead 34@
  not is_char_dead $scplayer
goto_if_false @GYMLV_1593
set_player_control $player1 {state} False
clear_char_tasks_immediately $scplayer
clear_char_tasks 34@
task_turn_char_to_face_char 34@ {target} $scplayer
task_turn_char_to_face_char $scplayer {target} 34@

:GYMLV_1593
if 
  $8157 == 0
goto_if_false @GYMLV_1670
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43400

:GYMLV_1624
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_1650
wait 0
goto @GYMLV_1624

:GYMLV_1650
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_1' {time} 3000 {flag} 1

:GYMLV_1670
if 
  $8157 == 1
goto_if_false @GYMLV_1747
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43403

:GYMLV_1701
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_1727
wait 0
goto @GYMLV_1701

:GYMLV_1727
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_4' {time} 3000 {flag} 1

:GYMLV_1747
print_help_forever 'GYM1_73'

:GYMLV_1758
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2062
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMLV_1949
58@ = get_float_stat StatId.BodyMuscle
if 
  58@ > 349.0
goto_if_false @GYMLV_1846
44@ = 1
clear_help 
goto @GYMLV_2064
goto @GYMLV_1949

:GYMLV_1846
44@ = 0
45@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43402

:GYMLV_1875
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_1901
wait 0
goto @GYMLV_1875

:GYMLV_1901
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_3' {time} 3000 {flag} 1
set_player_control $player1 {state} True
TIMERA = 0
55@ = 1
goto @GYMLV_1148

:GYMLV_1949
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMLV_2055
44@ = 0
45@ = 1
clear_help 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43401

:GYMLV_1995
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_2021
wait 0
goto @GYMLV_1995

:GYMLV_2021
play_mission_audio MissionAudioSlot.Slot1
print_now 'WBOX_2' {time} 3000 {flag} 1
set_player_control $player1 {state} True
goto @GYMLV_1148

:GYMLV_2055
goto @GYMLV_1758

:GYMLV_2062
clear_help 

:GYMLV_2064
clear_help 
clear_prints 
set_player_cycle_weapon_button $player1 {enabled} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
if 
  44@ == 1
goto_if_false @GYMLV_5193
gosub @GYMLV_5385
delete_char 36@
delete_char 37@
delete_char 34@
36@ = create_char PedType.CivMale {modelId} 80 {x} 767.9493 {y} -64.6707 {z} 999.6562
set_char_heading 36@ {heading} 166.9465
perform_sequence_task 36@ {sequence} 63@
37@ = create_char PedType.CivMale {modelId} 81 {x} 770.7913 {y} -67.3238 {z} 999.6562
set_char_heading 37@ {heading} 90.0184
perform_sequence_task 37@ {sequence} 64@
38@ = create_char PedType.CivMale {modelId} 80 {x} 770.4339 {y} -69.5049 {z} 999.6562
set_char_heading 38@ {heading} 91.3393
perform_sequence_task 38@ {sequence} 65@
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2392
clear_char_tasks_immediately $scplayer
34@ = create_char PedType.Mission1 {modelId} 81 {x} 768.2548 {y} -67.2063 {z} 1000.569
set_char_heading 34@ {heading} 145.0
set_char_health 34@ {health} 1000
set_char_max_health 34@ {maxHealth} 1000
set_char_coordinates_dont_warp_gang $scplayer {x} 764.8033 {y} -70.2273 {z} 1000.569
set_char_heading $scplayer {heading} 310.0
set_char_decision_maker 34@ {handleOrTemplate} 51@
task_kill_char_on_foot 34@ {target} $scplayer
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
set_char_shoot_rate 34@ {rate} 100
restore_camera_jumpcut 
set_camera_behind_player 
gosub @GYMLV_5441

:GYMLV_2392
set_player_control $player1 {state} True
if 
  $8157 == 0
goto_if_false @GYMLV_2428
print_help_forever 'GYM1101'

:GYMLV_2428
if 
  $8157 == 1
goto_if_false @GYMLV_2457
print_help_forever 'GYM1_84'

:GYMLV_2457
gosub @GYMLV_5441
$x, $y, $z = get_char_coordinates $scplayer
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  not is_char_dead $scplayer
goto_if_false @GYMLV_2506
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundGymBoxingBell

:GYMLV_2506
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_3164
wait 0
if 
  $8157 == 1
goto_if_false @GYMLV_2810
if 
  56@ == 0
goto_if_false @GYMLV_2589
TIMERA = 0
clear_help 
print_help_forever 'GYM1_94'
56@ = 1

:GYMLV_2589
if 
  not is_german_game 
goto_if_false @GYMLV_2715
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLV_2655
clear_help 
print_help_forever 'GYM1_95'
TIMERA = 0
56@ = 2

:GYMLV_2655
if and
  TIMERA > 6000
  56@ == 2
goto_if_false @GYMLV_2708
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLV_2708
goto @GYMLV_2768

:GYMLV_2715
if and
  TIMERA > 6000
  56@ == 1
goto_if_false @GYMLV_2768
clear_help 
print_help_forever 'GYM1_96'
TIMERA = 0
56@ = 3

:GYMLV_2768
if and
  TIMERA > 6000
  56@ == 3
goto_if_false @GYMLV_2810
clear_help 
TIMERA = 0
56@ = 0

:GYMLV_2810
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2840
$x, $y, $z = get_char_coordinates $scplayer

:GYMLV_2840
if 
  is_char_dead 34@
goto_if_false @GYMLV_2863
goto @GYMLV_3164

:GYMLV_2863
if 
  1000.7 > $z
goto_if_false @GYMLV_3157
gosub @GYMLV_5385
delete_char 34@
delete_char 36@
delete_char 37@
delete_char 38@
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_2962
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 762.854 {y} -69.5929 {z} 999.6562
set_char_heading $scplayer {heading} 103.4243

:GYMLV_2962
34@ = create_char PedType.CivMale {modelId} 81 {x} 762.3508 {y} -78.2144 {z} 999.6562
set_char_heading 34@ {heading} 359.2498
set_char_decision_maker 34@ {handleOrTemplate} 41@
perform_sequence_task 34@ {sequence} 48@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 81 {x} 766.2026 {y} -69.2071 {z} 1000.569
set_char_heading 36@ {heading} 330.7023
perform_sequence_task 36@ {sequence} 42@
37@ = create_char PedType.CivMale {modelId} 80 {x} 767.1087 {y} -67.9132 {z} 1000.569
set_char_heading 37@ {heading} 129.3961
perform_sequence_task 37@ {sequence} 43@
clear_prints 
clear_help 
gosub @GYMLV_5441
if 
  $8157 == 0
goto_if_false @GYMLV_3150
print_now 'GYM1_92' {time} 5000 {flag} 1

:GYMLV_3150
goto @GYMLV_1148

:GYMLV_3157
goto @GYMLV_2506

:GYMLV_3164
clear_help 
if 
  $8157 == 1
goto_if_false @GYMLV_3191
goto @GYMLV_4847

:GYMLV_3191
gosub @GYMLV_5385
gosub @GYMLV_5341
clear_area 768.2548 {y} -67.2063 {z} 1000.569 {radius} 10.0 {clearParticles} True
delete_char 34@
delete_char 36@
delete_char 37@
delete_char 38@
34@ = create_char PedType.CivMale {modelId} 81 {x} 768.2548 {y} -67.2063 {z} 1000.569
set_char_decision_maker 34@ {handleOrTemplate} 41@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
if and
  not is_char_dead 34@
  not is_char_dead $scplayer
goto_if_false @GYMLV_3381
clear_char_tasks_immediately $scplayer
clear_char_tasks 34@
set_char_coordinates_dont_warp_gang $scplayer {x} 764.8033 {y} -70.2273 {z} 1000.569
set_char_coordinates_dont_warp_gang 34@ {x} 768.2548 {y} -67.2063 {z} 1000.569
set_char_heading $scplayer {heading} 310.0
set_char_heading 34@ {heading} 145.0

:GYMLV_3381
set_fixed_camera_position 765.1049 {y} -74.2975 {z} 1003.591 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 765.3495 {y} -73.4547 {z} 1003.112 {switchStyle} SwitchType.JumpCut
gosub @GYMLV_5441
print_now 'WBOX_5' {time} 4000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43404

:GYMLV_3468
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_3511
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3504

:GYMLV_3504
goto @GYMLV_3468

:GYMLV_3511
play_mission_audio MissionAudioSlot.Slot1
wait 1000
TIMERA = 0

:GYMLV_3527
if 
  2000 > TIMERA
goto_if_false @GYMLV_3574
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3567

:GYMLV_3567
goto @GYMLV_3527

:GYMLV_3574
set_fixed_camera_position 767.7358 {y} -70.2958 {z} 1001.493 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 767.9329 {y} -69.3157 {z} 1001.47 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_97' {time} 2000 {flag} 1
TIMERA = 0

:GYMLV_3648
if 
  2000 > TIMERA
goto_if_false @GYMLV_3695
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3688

:GYMLV_3688
goto @GYMLV_3648

:GYMLV_3695
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43405

:GYMLV_3708
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_3751
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3744

:GYMLV_3744
goto @GYMLV_3708

:GYMLV_3751
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_94' {time} 4000 {flag} 1
TIMERA = 0

:GYMLV_3778
if 
  4000 > TIMERA
goto_if_false @GYMLV_3825
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3818

:GYMLV_3818
goto @GYMLV_3778

:GYMLV_3825
if 
  not is_char_dead 34@
goto_if_false @GYMLV_3880
task_play_anim 34@ {animationName} "FIGHTD_M" {animationFile} "FIGHT_D" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_3880
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_3928
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_3928
TIMERA = 0

:GYMLV_3935
if 
  3000 > TIMERA
goto_if_false @GYMLV_3982
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_3975

:GYMLV_3975
goto @GYMLV_3935

:GYMLV_3982
if 
  not is_german_game 
goto_if_false @GYMLV_4403
set_fixed_camera_position 765.0073 {y} -67.3258 {z} 1001.465 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 766.0051 {y} -67.2777 {z} 1001.419 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_98' {time} 2000 {flag} 1
TIMERA = 0

:GYMLV_4069
if 
  2000 > TIMERA
goto_if_false @GYMLV_4116
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4109

:GYMLV_4109
goto @GYMLV_4069

:GYMLV_4116
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43406

:GYMLV_4129
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_4172
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4165

:GYMLV_4165
goto @GYMLV_4129

:GYMLV_4172
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_95' {time} 4000 {flag} 1
TIMERA = 0

:GYMLV_4199
if 
  4000 > TIMERA
goto_if_false @GYMLV_4246
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4239

:GYMLV_4239
goto @GYMLV_4199

:GYMLV_4246
if 
  not is_char_dead 34@
goto_if_false @GYMLV_4301
task_play_anim 34@ {animationName} "FIGHTD_G" {animationFile} "FIGHT_D" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_4301
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_4349
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_4349
TIMERA = 0

:GYMLV_4356
if 
  3000 > TIMERA
goto_if_false @GYMLV_4403
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4396

:GYMLV_4396
goto @GYMLV_4356

:GYMLV_4403
set_fixed_camera_position 770.4639 {y} -65.7272 {z} 1002.231 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 769.6946 {y} -66.3243 {z} 1002.003 {switchStyle} SwitchType.JumpCut
print_now 'GYM1_99' {time} 2000 {flag} 1
if and
  not is_char_dead 34@
  not is_char_dead $scplayer
goto_if_false @GYMLV_4499
task_turn_char_to_face_char 34@ {target} $scplayer

:GYMLV_4499
TIMERA = 0

:GYMLV_4506
if 
  2000 > TIMERA
goto_if_false @GYMLV_4553
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4546

:GYMLV_4546
goto @GYMLV_4506

:GYMLV_4553
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 43407

:GYMLV_4566
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @GYMLV_4609
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4602

:GYMLV_4602
goto @GYMLV_4566

:GYMLV_4609
play_mission_audio MissionAudioSlot.Slot1
print_now 'GYM1_96' {time} 4000 {flag} 1
TIMERA = 0

:GYMLV_4636
if 
  4000 > TIMERA
goto_if_false @GYMLV_4683
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4676

:GYMLV_4676
goto @GYMLV_4636

:GYMLV_4683
if 
  not is_char_dead 34@
goto_if_false @GYMLV_4745
freeze_char_position 34@ {state} True
task_play_anim 34@ {animationName} "FIGHTD_3" {animationFile} "FIGHT_D" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1

:GYMLV_4745
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_4793
task_play_anim $scplayer {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMLV_4793
TIMERA = 0

:GYMLV_4800
if 
  2000 > TIMERA
goto_if_false @GYMLV_4847
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_4840

:GYMLV_4840
goto @GYMLV_4800

:GYMLV_4847
gosub @GYMLV_5385
if 
  $gym_lv_defeated == 0
goto_if_false @GYMLV_4883
player_made_progress 1
$gym_lv_defeated = 1

:GYMLV_4883
delete_char 34@
delete_char 36@
delete_char 37@
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_4949
clear_char_tasks_immediately $scplayer
set_char_coordinates_dont_warp_gang $scplayer {x} 762.854 {y} -69.5929 {z} 999.6562
set_char_heading $scplayer {heading} 103.4243

:GYMLV_4949
34@ = create_char PedType.CivMale {modelId} 81 {x} 762.3508 {y} -78.2144 {z} 999.6562
set_char_heading 34@ {heading} 359.2498
set_char_decision_maker 34@ {handleOrTemplate} 51@
perform_sequence_task 34@ {sequence} 48@
give_melee_attack_to_char 34@ {style} FightStyle.KickBoxing {move} FightMoves.All
36@ = create_char PedType.CivMale {modelId} 81 {x} 766.2026 {y} -69.2071 {z} 1000.569
set_char_heading 36@ {heading} 330.7023
perform_sequence_task 36@ {sequence} 42@
set_char_decision_maker 36@ {handleOrTemplate} 41@
37@ = create_char PedType.CivMale {modelId} 80 {x} 767.1087 {y} -67.9132 {z} 1000.569
set_char_heading 37@ {heading} 129.3961
perform_sequence_task 37@ {sequence} 43@
set_char_decision_maker 37@ {handleOrTemplate} 41@
gosub @GYMLV_5361
gosub @GYMLV_5441
give_melee_attack_to_char $scplayer {style} FightStyle.KickBoxing {move} FightMoves.All
if 
  $8157 == 0
goto_if_false @GYMLV_5165
print_now 'GYM1_93' {time} 3000 {flag} 1

:GYMLV_5165
$player_been_taught_move = 0
$8156 = 0
$8157 = 1
set_player_cycle_weapon_button $player1 {enabled} True

:GYMLV_5193
goto @GYMLV_1148

:GYMLV_5200
return 
print_with_number_big 'M_PASS' {num} 30000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 30000
clear_wanted_level $player1
play_mission_passed_tune 1
return 

:GYMLV_5240
if 
  not is_char_dead $scplayer
goto_if_false @GYMLV_5263
listen_to_player_group_commands $scplayer {state} True

:GYMLV_5263
mark_model_as_no_longer_needed 80
mark_model_as_no_longer_needed 81
mark_model_as_no_longer_needed 19
remove_animation "GYMNASIUM"
remove_animation "RIOT"
remove_animation "FIGHT_D"
remove_animation "INT_SHOP"
clear_mission_audio MissionAudioSlot.Slot4
$gym_is_running = 0
$onmission = 0
mission_has_finished 
return 

:GYMLV_5341
switch_widescreen True
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
return 

:GYMLV_5361
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
return 

:GYMLV_5385
do_fade 500 {direction} Fade.Out

:GYMLV_5392
if 
  get_fading_status 
goto_if_false @GYMLV_5439
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMLV_5432
do_fade 1 {direction} Fade.Out

:GYMLV_5432
goto @GYMLV_5392

:GYMLV_5439
return 

:GYMLV_5441
do_fade 500 {direction} Fade.In

:GYMLV_5448
if 
  get_fading_status 
goto_if_false @GYMLV_5472
wait 0
goto @GYMLV_5448

:GYMLV_5472
return 
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 61@
62@ = 0
return 

:GYMLV_5494
if and
  has_mission_audio_loaded MissionAudioSlot.Slot1
  62@ == 0
goto_if_false @GYMLV_5537
play_mission_audio MissionAudioSlot.Slot1
print_now 59@s {time} 10000 {flag} 1
62@ = 1

:GYMLV_5537
if and
  has_mission_audio_finished MissionAudioSlot.Slot1
  62@ == 1
goto_if_false @GYMLV_5575
clear_mission_audio MissionAudioSlot.Slot1
clear_this_print 59@s
62@ = 2

:GYMLV_5575
return 

//-------------Mission 117---------------
// Originally: Trucking

:TRUCK
script_name 'TRUCK'
gosub @TRUCK_47
if 
  has_deatharrest_been_executed 
goto_if_false @TRUCK_38
gosub @TRUCK_16268

:TRUCK_38
gosub @TRUCK_16677
terminate_this_script 

:TRUCK_47
if 
  $done_truck_progress == 0
goto_if_false @TRUCK_67
register_mission_given 

:TRUCK_67
$onmission = 1
$flag_player_on_oddjob = 1
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
47@ = 0
48@ = 0
TIMERA = 0
TIMERB = 0
105@ = 0
106@ = 0
114@ = 0
if 
  36@ == -99
goto_if_false @TRUCK_324
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
74@ = create_car 514 {x} 0.0 {y} 0.0 {z} 0.0
75@ = create_car 584 {x} 0.0 {y} 0.0 {z} 0.0
78@ = add_blip_for_car 74@
77@ = add_blip_for_car 74@
79@ = add_blip_for_car 75@

:TRUCK_324
load_mission_text 'TRUCK'
if 
  $g_nTruckMissionsPassed >= 6
goto_if_false @TRUCK_468
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @TRUCK_468
print_now 'TRK_H17' {time} 5000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @TRUCK_450
set_char_coordinates $scplayer {x} -76.9664 {y} -1134.639 {z} 0.0781
set_char_heading $scplayer {heading} 14.7291
set_camera_behind_player 
set_player_control $player1 {state} True

:TRUCK_450
do_fade 500 {direction} Fade.In
wait 5000
draw_oddjob_title_before_fade True
return 

:TRUCK_468
if 
  $g_nTruckMissionsPassed >= 4
goto_if_false @TRUCK_601
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  1 > $Return_cities_passed
goto_if_false @TRUCK_601
print_now 'TRK_H18' {time} 5000 {flag} 1
if 
  not is_char_dead $scplayer
goto_if_false @TRUCK_583
set_char_coordinates $scplayer {x} -76.9664 {y} -1134.639 {z} 0.0781
set_char_heading $scplayer {heading} 14.7291
set_camera_behind_player 
set_player_control $player1 {state} True

:TRUCK_583
do_fade 500 {direction} Fade.In
wait 5000
draw_oddjob_title_before_fade True
return 

:TRUCK_601
gosub @TRUCK_15315
gosub @TRUCK_15317
wait 100

:TRUCK_619
wait 0
gosub @TRUCK_12327
gosub @TRUCK_12700
if or
  40@ == 1
  41@ == 1
goto_if_false @TRUCK_669
goto @TRUCK_896

:TRUCK_669
gosub @TRUCK_15212
gosub @TRUCK_15246
if 
  is_char_dead $scplayer
goto_if_false @TRUCK_713
39@ = 1
goto @TRUCK_896

:TRUCK_713
if 
  36@ == 0
goto_if_false @TRUCK_771
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:TRUCK_771
if 
  36@ == 1
goto_if_false @TRUCK_796
gosub @TRUCK_1097

:TRUCK_796
if 
  36@ == 2
goto_if_false @TRUCK_821
gosub @TRUCK_1312

:TRUCK_821
if 
  36@ == 3
goto_if_false @TRUCK_846
38@ = 1

:TRUCK_846
if 
  36@ == 50
goto_if_false @TRUCK_871
gosub @TRUCK_2456

:TRUCK_871
if 
  36@ == 51
goto_if_false @TRUCK_896
40@ = 1

:TRUCK_896
if 
  40@ == 0
goto_if_false @TRUCK_1049
if 
  39@ == 0
goto_if_false @TRUCK_1033
if 
  38@ == 0
goto_if_false @TRUCK_964
goto @TRUCK_619
goto @TRUCK_1026

:TRUCK_964
gosub @TRUCK_16670
if 
  114@ == 1
goto_if_false @TRUCK_1024
38@ = 0
36@ = 50
37@ = 0
114@ = 0
goto @TRUCK_619

:TRUCK_1024
return 

:TRUCK_1026
goto @TRUCK_1042

:TRUCK_1033
gosub @TRUCK_16268
return 

:TRUCK_1042
goto @TRUCK_1051

:TRUCK_1049
return 

:TRUCK_1051
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:TRUCK_1097
if or
  is_car_dead 75@
  is_car_dead 74@
goto_if_false @TRUCK_1134
39@ = 1
89@ = 3
return 

:TRUCK_1134
if 
  37@ == 0
goto_if_false @TRUCK_1236
display_nth_onscreen_counter_with_string $g_Truck_cashKM {display} CounterDisplay.Number {slot} 1 {text} 'TRK_CSH'
set_var_int_to_lvar_int $g_Truck_cashKM = 91@
set_lvar_int_to_lvar_int 83@ = 91@
gosub @TRUCK_3404
gosub @TRUCK_3622
gosub @TRUCK_5156
77@ = add_blip_for_car 74@
set_blip_as_friendly 77@ {state} True
113@ = 0
37@ += 1

:TRUCK_1236
if 
  37@ == 1
goto_if_false @TRUCK_1285
if 
  is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_1285
remove_blip 77@
37@ = 99

:TRUCK_1285
if 
  37@ == 99
goto_if_false @TRUCK_1310
gosub @TRUCK_15285

:TRUCK_1310
return 

:TRUCK_1312
if or
  is_car_dead 74@
  is_car_dead 75@
goto_if_false @TRUCK_1349
39@ = 1
89@ = 3
return 

:TRUCK_1349
if 
  113@ == 0
goto_if_false @TRUCK_1394
gosub @TRUCK_5173
if 
  39@ == 1
goto_if_false @TRUCK_1394
return 

:TRUCK_1394
if 
  37@ == 0
goto_if_false @TRUCK_1679
76@ = add_blip_for_coord 102@ {y} 103@ {z} 104@
change_blip_scale 76@ {size} 4
106@ = 0
gosub @TRUCK_5861
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_1648 {caseNum1} 1 {caseLabel1} @TRUCK_1510 {caseNum2} 2 {caseLabel2} @TRUCK_1533 {caseNum3} 3 {caseLabel3} @TRUCK_1556 {caseNum4} 4 {caseLabel4} @TRUCK_1579 {caseNum5} 5 {caseLabel5} @TRUCK_1602 {caseNum6} 6 {caseLabel6} @TRUCK_1625 {caseNum7} -1 {caseLabel7} @TRUCK_1672

:TRUCK_1510
print_now 'TRK_H6' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1533
print_now 'TRK_H7' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1556
print_now 'TRK_H12' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1579
print_now 'TRK_H9' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1602
print_now 'TRK_H11' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1625
print_now 'TRK_H10' {time} 15000 {flag} 1
goto @TRUCK_1672

:TRUCK_1648
write_debug "UNKNOWN_MISSION_TYPE"

:TRUCK_1672
37@ += 1

:TRUCK_1679
if 
  37@ == 1
goto_if_false @TRUCK_1922
set_lvar_float_to_lvar_float 63@ = 102@
63@ -= 4.0
set_lvar_float_to_lvar_float 64@ = 103@
64@ -= 4.0
set_lvar_float_to_lvar_float 65@ = 104@
65@ -= 4.0
set_lvar_float_to_lvar_float 66@ = 102@
66@ += 4.0
set_lvar_float_to_lvar_float 67@ = 103@
67@ += 4.0
set_lvar_float_to_lvar_float 68@ = 104@
68@ += 4.0
if or
  is_car_in_area_3d 75@ {leftBottomX} 63@ {leftBottomY} 64@ {leftBottomZ} 65@ {rightTopX} 66@ {rightTopY} 67@ {rightTopZ} 68@ {drawSphere} True
  is_car_in_area_3d 74@ {leftBottomX} 63@ {leftBottomY} 64@ {leftBottomZ} 65@ {rightTopX} 66@ {rightTopY} 67@ {rightTopZ} 68@ {drawSphere} False
goto_if_false @TRUCK_1922
if and
  is_char_in_car $scplayer {vehicle} 74@
  is_trailer_attached_to_cab 75@ {cab} 74@
goto_if_false @TRUCK_1922
set_player_control $player1 {state} False
113@ = 1
81@ += 15000
37@ += 1

:TRUCK_1922
if 
  37@ == 2
goto_if_false @TRUCK_1990
if and
  is_car_stopped 75@
  is_car_stopped 74@
goto_if_false @TRUCK_1990
freeze_car_position 74@ {state} True
task_leave_car $scplayer {vehicle} 74@
gosub @TRUCK_16464
37@ += 1

:TRUCK_1990
if 
  37@ == 3
goto_if_false @TRUCK_2053
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_2053
close_all_car_doors 74@
lock_car_doors 74@ {lockStatus} CarLock.Locked
set_player_control $player1 {state} True
37@ = 99

:TRUCK_2053
gosub @TRUCK_7054
gosub @TRUCK_7209
gosub @TRUCK_7438
if 
  106@ == 1
goto_if_false @TRUCK_2099
gosub @TRUCK_7632

:TRUCK_2099
if 
  106@ == 0
goto_if_false @TRUCK_2270
59@ = -76.1692
60@ = -1128.963
61@ = 0.0781
if and
  locate_car_3d 75@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
  not locate_car_3d 75@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @TRUCK_2270
set_car_density_multiplier 1.0
if 
  88@ == 4
goto_if_false @TRUCK_2245

:TRUCK_2245
if 
  88@ == 6
goto_if_false @TRUCK_2263

:TRUCK_2263
106@ = 1

:TRUCK_2270
if 
  105@ == 0
goto_if_false @TRUCK_2370
if 
  110@ == 1
goto_if_false @TRUCK_2329
print_now 'TRK_H14' {time} 6000 {flag} 1
110@ = 0

:TRUCK_2329
if 
  111@ == 1
goto_if_false @TRUCK_2370
print_now 'TRK_H15' {time} 6000 {flag} 1
111@ = 0

:TRUCK_2370
if 
  105@ == 0
goto_if_false @TRUCK_2429
if 
  112@ == 1
goto_if_false @TRUCK_2429
print_now 'TRK_H16' {time} 7000 {flag} 1
112@ = 0

:TRUCK_2429
if 
  37@ == 99
goto_if_false @TRUCK_2454
gosub @TRUCK_15285

:TRUCK_2454
return 

:TRUCK_2456
if 
  37@ == 0
goto_if_false @TRUCK_2531
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 5000
59@, 60@, 61@ = get_char_coordinates $scplayer
62@ = get_char_heading $scplayer
clear_onscreen_counter $g_Truck_cashKM
37@ += 1

:TRUCK_2531
if 
  37@ == 1
goto_if_false @TRUCK_2598
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_2598
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_2598
if 
  37@ == 2
goto_if_false @TRUCK_2847
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not get_fading_status 
goto_if_false @TRUCK_2847
$g_Truck_CashPickupKM = create_protection_pickup -82.2693 {y} -1135.526 {z} 0.5847 {revenueLimit} $g_Truck_CashPickupValueKM {revenueRate} $g_Truck_CashPickupValueKM
switch_widescreen True
if 
  is_char_in_any_car $scplayer
goto_if_false @TRUCK_2710
warp_char_from_car_to_coord $scplayer {x} -47.0873 {y} -1122.146 {z} 0.4453
goto @TRUCK_2730

:TRUCK_2710
set_char_coordinates $scplayer {x} -47.0873 {y} -1122.146 {z} 0.4453

:TRUCK_2730
mark_car_as_no_longer_needed 74@
mark_car_as_no_longer_needed 75@
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
load_scene_in_direction -96.3779 {y} -1125.262 {z} 0.093 {heading} 261.7115
set_fixed_camera_position -109.2539 {y} -1122.353 {z} 15.1451 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -108.3806 {y} -1122.439 {z} 14.6655 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 2000
37@ += 1

:TRUCK_2847
if 
  37@ == 3
goto_if_false @TRUCK_2930
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_2930
do_fade 500 {direction} Fade.In
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 5000
37@ += 1

:TRUCK_2930
if 
  37@ == 4
goto_if_false @TRUCK_3060
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3060
set_fixed_camera_position -83.7387 {y} -1133.793 {z} 0.9871 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -82.9525 {y} -1134.41 {z} 0.9592 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $g_Truck_CashPickupValueKM {duration} 6000 {flag} 1
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 6000
37@ += 1

:TRUCK_3060
if 
  37@ == 5
goto_if_false @TRUCK_3127
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3127
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_3127
if 
  37@ == 6
goto_if_false @TRUCK_3230
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not get_fading_status 
goto_if_false @TRUCK_3230
set_char_coordinates $scplayer {x} 59@ {y} 60@ {z} 61@
set_char_heading $scplayer {heading} 62@
load_scene 59@ {y} 60@ {z} 61@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 2000
37@ += 1

:TRUCK_3230
if 
  37@ == 7
goto_if_false @TRUCK_3313
if 
  is_int_lvar_greater_than_int_lvar 47@ > 82@
goto_if_false @TRUCK_3313
print_now 'TRK_P2' {time} 10000 {flag} 1
do_fade 500 {direction} Fade.In
set_lvar_int_to_lvar_int 82@ = 47@
82@ += 500
37@ += 1

:TRUCK_3313
if 
  37@ == 8
goto_if_false @TRUCK_3377
if and
  is_int_lvar_greater_than_int_lvar 47@ > 82@
  not get_fading_status 
goto_if_false @TRUCK_3377
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
set_player_control $player1 {state} True
37@ = 99

:TRUCK_3377
if 
  37@ == 99
goto_if_false @TRUCK_3402
gosub @TRUCK_15285

:TRUCK_3402
return 

:TRUCK_3404
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_3593 {caseNum1} 1 {caseLabel1} @TRUCK_3467 {caseNum2} 2 {caseLabel2} @TRUCK_3488 {caseNum3} 3 {caseLabel3} @TRUCK_3509 {caseNum4} 4 {caseLabel4} @TRUCK_3530 {caseNum5} 5 {caseLabel5} @TRUCK_3551 {caseNum6} 6 {caseLabel6} @TRUCK_3572 {caseNum7} -1 {caseLabel7} @TRUCK_3620

:TRUCK_3467
set_lvar_text_label 98@s = 'TRK_MND'
goto @TRUCK_3620

:TRUCK_3488
set_lvar_text_label 98@s = 'TRK_MNT'
goto @TRUCK_3620

:TRUCK_3509
set_lvar_text_label 98@s = 'TRK_MFD'
goto @TRUCK_3620

:TRUCK_3530
set_lvar_text_label 98@s = 'TRK_MI'
goto @TRUCK_3620

:TRUCK_3551
set_lvar_text_label 98@s = 'TRK_MTD'
goto @TRUCK_3620

:TRUCK_3572
set_lvar_text_label 98@s = 'TRK_MHI'
goto @TRUCK_3620

:TRUCK_3593
write_debug "UNKNOWN_MISSION_TYPE_ID"

:TRUCK_3620
return 

:TRUCK_3622
if 
  86@ == 1
goto_if_false @TRUCK_3787
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_3787 {caseNum1} 0 {caseLabel1} @TRUCK_3703 {caseNum2} 1 {caseLabel2} @TRUCK_3724 {caseNum3} 2 {caseLabel3} @TRUCK_3745 {caseNum4} 3 {caseLabel4} @TRUCK_3766 {caseNum5} -1 {caseLabel5} @TRUCK_3787 {caseNum6} -1 {caseLabel6} @TRUCK_3787 {caseNum7} -1 {caseLabel7} @TRUCK_3787

:TRUCK_3703
set_lvar_text_label 100@s = 'TRK_CE0'
goto @TRUCK_3787

:TRUCK_3724
set_lvar_text_label 100@s = 'TRK_CE1'
goto @TRUCK_3787

:TRUCK_3745
set_lvar_text_label 100@s = 'TRK_CE2'
goto @TRUCK_3787

:TRUCK_3766
set_lvar_text_label 100@s = 'TRK_CE3'
goto @TRUCK_3787

:TRUCK_3787
if 
  86@ == 2
goto_if_false @TRUCK_3910
switch_start 87@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TRUCK_3910 {caseNum1} 0 {caseLabel1} @TRUCK_3868 {caseNum2} 1 {caseLabel2} @TRUCK_3889 {caseNum3} -1 {caseLabel3} @TRUCK_3910 {caseNum4} -1 {caseLabel4} @TRUCK_3910 {caseNum5} -1 {caseLabel5} @TRUCK_3910 {caseNum6} -1 {caseLabel6} @TRUCK_3910 {caseNum7} -1 {caseLabel7} @TRUCK_3910

:TRUCK_3868
set_lvar_text_label 100@s = 'TRK_CE4'
goto @TRUCK_3910

:TRUCK_3889
set_lvar_text_label 100@s = 'TRK_CE5'
goto @TRUCK_3910

:TRUCK_3910
if 
  86@ == 3
goto_if_false @TRUCK_4075
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4075 {caseNum1} 0 {caseLabel1} @TRUCK_3991 {caseNum2} 1 {caseLabel2} @TRUCK_4012 {caseNum3} 2 {caseLabel3} @TRUCK_4033 {caseNum4} 3 {caseLabel4} @TRUCK_4054 {caseNum5} -1 {caseLabel5} @TRUCK_4075 {caseNum6} -1 {caseLabel6} @TRUCK_4075 {caseNum7} -1 {caseLabel7} @TRUCK_4075

:TRUCK_3991
set_lvar_text_label 100@s = 'TRK_LS0'
goto @TRUCK_4075

:TRUCK_4012
set_lvar_text_label 100@s = 'TRK_LS1'
goto @TRUCK_4075

:TRUCK_4033
set_lvar_text_label 100@s = 'TRK_LS2'
goto @TRUCK_4075

:TRUCK_4054
set_lvar_text_label 100@s = 'TRK_LS3'
goto @TRUCK_4075

:TRUCK_4075
if 
  86@ == 8
goto_if_false @TRUCK_4515
switch_start 87@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4515 {caseNum1} 0 {caseLabel1} @TRUCK_4221 {caseNum2} 1 {caseLabel2} @TRUCK_4242 {caseNum3} 2 {caseLabel3} @TRUCK_4263 {caseNum4} 3 {caseLabel4} @TRUCK_4284 {caseNum5} 4 {caseLabel5} @TRUCK_4305 {caseNum6} 5 {caseLabel6} @TRUCK_4326 {caseNum7} 6 {caseLabel7} @TRUCK_4347
switch_continued 7 {caseLabel1} @TRUCK_4368 {caseNum2} 8 {caseLabel2} @TRUCK_4389 {caseNum3} 9 {caseLabel3} @TRUCK_4410 {caseNum4} 10 {caseLabel4} @TRUCK_4431 {caseNum5} 11 {caseLabel5} @TRUCK_4452 {caseNum6} 12 {caseLabel6} @TRUCK_4473 {caseNum7} 13 {caseLabel7} @TRUCK_4494 {caseNum8} -1 {caseLabel8} @TRUCK_4515 {caseNum9} -1 {caseLabel9} @TRUCK_4515

:TRUCK_4221
set_lvar_text_label 100@s = 'TRK_V0'
goto @TRUCK_4515

:TRUCK_4242
set_lvar_text_label 100@s = 'TRK_V1'
goto @TRUCK_4515

:TRUCK_4263
set_lvar_text_label 100@s = 'TRK_V2'
goto @TRUCK_4515

:TRUCK_4284
set_lvar_text_label 100@s = 'TRK_V3'
goto @TRUCK_4515

:TRUCK_4305
set_lvar_text_label 100@s = 'TRK_V4'
goto @TRUCK_4515

:TRUCK_4326
set_lvar_text_label 100@s = 'TRK_V5'
goto @TRUCK_4515

:TRUCK_4347
set_lvar_text_label 100@s = 'TRK_V6'
goto @TRUCK_4515

:TRUCK_4368
set_lvar_text_label 100@s = 'TRK_V7'
goto @TRUCK_4515

:TRUCK_4389
set_lvar_text_label 100@s = 'TRK_V8'
goto @TRUCK_4515

:TRUCK_4410
set_lvar_text_label 100@s = 'TRK_V9'
goto @TRUCK_4515

:TRUCK_4431
set_lvar_text_label 100@s = 'TRK_V10'
goto @TRUCK_4515

:TRUCK_4452
set_lvar_text_label 100@s = 'TRK_V11'
goto @TRUCK_4515

:TRUCK_4473
set_lvar_text_label 100@s = 'TRK_V12'
goto @TRUCK_4515

:TRUCK_4494
set_lvar_text_label 100@s = 'TRK_V13'
goto @TRUCK_4515

:TRUCK_4515
if 
  86@ == 7
goto_if_false @TRUCK_4701
switch_start 87@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4701 {caseNum1} 0 {caseLabel1} @TRUCK_4596 {caseNum2} 1 {caseLabel2} @TRUCK_4617 {caseNum3} 2 {caseLabel3} @TRUCK_4638 {caseNum4} 3 {caseLabel4} @TRUCK_4659 {caseNum5} 4 {caseLabel5} @TRUCK_4680 {caseNum6} -1 {caseLabel6} @TRUCK_4701 {caseNum7} -1 {caseLabel7} @TRUCK_4701

:TRUCK_4596
set_lvar_text_label 100@s = 'TRK_NC0'
goto @TRUCK_4701

:TRUCK_4617
set_lvar_text_label 100@s = 'TRK_NC1'
goto @TRUCK_4701

:TRUCK_4638
set_lvar_text_label 100@s = 'TRK_NC2'
goto @TRUCK_4701

:TRUCK_4659
set_lvar_text_label 100@s = 'TRK_NC3'
goto @TRUCK_4701

:TRUCK_4680
set_lvar_text_label 100@s = 'TRK_NC4'
goto @TRUCK_4701

:TRUCK_4701
if 
  86@ == 4
goto_if_false @TRUCK_4845
switch_start 87@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TRUCK_4845 {caseNum1} 0 {caseLabel1} @TRUCK_4782 {caseNum2} 1 {caseLabel2} @TRUCK_4803 {caseNum3} 2 {caseLabel3} @TRUCK_4824 {caseNum4} -1 {caseLabel4} @TRUCK_4845 {caseNum5} -1 {caseLabel5} @TRUCK_4845 {caseNum6} -1 {caseLabel6} @TRUCK_4845 {caseNum7} -1 {caseLabel7} @TRUCK_4845

:TRUCK_4782
set_lvar_text_label 100@s = 'TRK_CS0'
goto @TRUCK_4845

:TRUCK_4803
set_lvar_text_label 100@s = 'TRK_CS1'
goto @TRUCK_4845

:TRUCK_4824
set_lvar_text_label 100@s = 'TRK_CS2'
goto @TRUCK_4845

:TRUCK_4845
if 
  86@ == 5
goto_if_false @TRUCK_5010
switch_start 87@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @TRUCK_5010 {caseNum1} 0 {caseLabel1} @TRUCK_4926 {caseNum2} 1 {caseLabel2} @TRUCK_4947 {caseNum3} 2 {caseLabel3} @TRUCK_4968 {caseNum4} 3 {caseLabel4} @TRUCK_4989 {caseNum5} -1 {caseLabel5} @TRUCK_5010 {caseNum6} -1 {caseLabel6} @TRUCK_5010 {caseNum7} -1 {caseLabel7} @TRUCK_5010

:TRUCK_4926
set_lvar_text_label 100@s = 'TRK_SF0'
goto @TRUCK_5010

:TRUCK_4947
set_lvar_text_label 100@s = 'TRK_SF1'
goto @TRUCK_5010

:TRUCK_4968
set_lvar_text_label 100@s = 'TRK_SF2'
goto @TRUCK_5010

:TRUCK_4989
set_lvar_text_label 100@s = 'TRK_SF3'
goto @TRUCK_5010

:TRUCK_5010
if 
  86@ == 6
goto_if_false @TRUCK_5154
switch_start 87@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TRUCK_5154 {caseNum1} 0 {caseLabel1} @TRUCK_5091 {caseNum2} 1 {caseLabel2} @TRUCK_5112 {caseNum3} 2 {caseLabel3} @TRUCK_5133 {caseNum4} -1 {caseLabel4} @TRUCK_5154 {caseNum5} -1 {caseLabel5} @TRUCK_5154 {caseNum6} -1 {caseLabel6} @TRUCK_5154 {caseNum7} -1 {caseLabel7} @TRUCK_5154

:TRUCK_5091
set_lvar_text_label 100@s = 'TRK_CN0'
goto @TRUCK_5154

:TRUCK_5112
set_lvar_text_label 100@s = 'TRK_CN1'
goto @TRUCK_5154

:TRUCK_5133
set_lvar_text_label 100@s = 'TRK_CN2'
goto @TRUCK_5154

:TRUCK_5154
return 

:TRUCK_5156
clear_small_prints 
print_string_in_string_now 98@s {replacementKey} 100@s {duration} 15000 {style} TextStyle.Middle
return 

:TRUCK_5173
if 
  105@ == 1
goto_if_false @TRUCK_5729
if and
  is_trailer_attached_to_cab 75@ {cab} 74@
  is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5267
84@ = 0
105@ = 0
remove_blip 78@
remove_blip 79@
76@ = add_blip_for_coord 102@ {y} 103@ {z} 104@
change_blip_scale 76@ {size} 4
clear_small_prints 
return 

:TRUCK_5267
50@ = get_car_health 74@
if 
  250 > 50@
goto_if_false @TRUCK_5306
clear_small_prints 
remove_blip 78@
remove_blip 79@

:TRUCK_5306
if 
  is_int_lvar_greater_than_int_lvar 47@ > 80@
goto_if_false @TRUCK_5348
84@ -= 1
set_lvar_int_to_lvar_int 80@ = 47@
80@ += 1000

:TRUCK_5348
if 
  0 > 84@
goto_if_false @TRUCK_5460
39@ = 1
clear_small_prints 
remove_blip 78@
remove_blip 79@
72@ = 0
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5425
72@ = 1
89@ = 4

:TRUCK_5425
if and
  not is_trailer_attached_to_cab 75@ {cab} 74@
  72@ == 0
goto_if_false @TRUCK_5458
89@ = 5

:TRUCK_5458
return 

:TRUCK_5460
clear_prints 
add_next_message_to_previous_briefs False
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5607
if 
  84@ == 1
goto_if_false @TRUCK_5529
print_with_number 'TRK_H5B' {num} 84@ {duration} 1000 {flag} 1
goto @TRUCK_5548

:TRUCK_5529
print_with_number 'TRK_H5' {num} 84@ {duration} 1000 {flag} 1

:TRUCK_5548
if 
  does_blip_exist 79@
goto_if_false @TRUCK_5569
remove_blip 79@

:TRUCK_5569
if 
  not does_blip_exist 78@
goto_if_false @TRUCK_5600
78@ = add_blip_for_car 74@
set_blip_as_friendly 78@ {state} True

:TRUCK_5600
goto @TRUCK_5722

:TRUCK_5607
if 
  84@ == 1
goto_if_false @TRUCK_5651
print_with_number 'TRK_H4B' {num} 84@ {duration} 1000 {flag} 1
goto @TRUCK_5670

:TRUCK_5651
print_with_number 'TRK_H4' {num} 84@ {duration} 1000 {flag} 1

:TRUCK_5670
if 
  not does_blip_exist 79@
goto_if_false @TRUCK_5701
79@ = add_blip_for_car 75@
set_blip_as_friendly 79@ {state} True

:TRUCK_5701
if 
  does_blip_exist 78@
goto_if_false @TRUCK_5722
remove_blip 78@

:TRUCK_5722
goto @TRUCK_5859

:TRUCK_5729
if or
  not is_trailer_attached_to_cab 75@ {cab} 74@
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5859
84@ = 60
set_lvar_int_to_lvar_int 80@ = 47@
80@ += 1000
105@ = 1
remove_blip 76@
add_next_message_to_previous_briefs False
if 
  not is_char_in_car $scplayer {vehicle} 74@
goto_if_false @TRUCK_5840
print_with_number_now 'TRK_H5' {num} 84@ {duration} 1000 {flag} 1
goto @TRUCK_5859

:TRUCK_5840
print_with_number_now 'TRK_H4' {num} 84@ {duration} 1000 {flag} 1

:TRUCK_5859
return 

:TRUCK_5861
90@ = 750
if or
  88@ == 1
  88@ == 5
goto_if_false @TRUCK_5902
90@ = 500

:TRUCK_5902
if 
  88@ == 3
goto_if_false @TRUCK_5928
90@ = 250

:TRUCK_5928
set_lvar_int_to_lvar_int 50@ = 90@
50@ += 250
set_car_health 75@ {health} 50@
set_car_health 74@ {health} 50@
92@ = 0
gosub @TRUCK_6109
if or
  88@ == 1
  88@ == 3
goto_if_false @TRUCK_6017
display_nth_onscreen_counter_with_string $g_Truck_damageKM {display} CounterDisplay.Bar {slot} 2 {text} 'TRK_DMG'

:TRUCK_6017
if 
  88@ == 2
goto_if_false @TRUCK_6046
gosub @TRUCK_6497
freeze_onscreen_timer True

:TRUCK_6046
if 
  88@ == 5
goto_if_false @TRUCK_6093
gosub @TRUCK_6497
display_nth_onscreen_counter_with_string $g_Truck_damageKM {display} CounterDisplay.Bar {slot} 2 {text} 'TRK_DMG'
freeze_onscreen_timer True

:TRUCK_6093
110@ = 0
111@ = 0
return 

:TRUCK_6109
switch_start 92@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_6319 {caseNum1} 0 {caseLabel1} @TRUCK_6172 {caseNum2} 1 {caseLabel2} @TRUCK_6210 {caseNum3} 2 {caseLabel3} @TRUCK_6247 {caseNum4} 3 {caseLabel4} @TRUCK_6284 {caseNum5} 4 {caseLabel5} @TRUCK_6305 {caseNum6} -1 {caseLabel6} @TRUCK_6319 {caseNum7} -1 {caseLabel7} @TRUCK_6319

:TRUCK_6172
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 140
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 1
goto @TRUCK_6319

:TRUCK_6210
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 84
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 2
goto @TRUCK_6319

:TRUCK_6247
set_lvar_int_to_lvar_int 81@ = 93@
81@ *= 84
add_int_lvar_to_int_lvar 81@ += 47@
92@ = 3
goto @TRUCK_6319

:TRUCK_6284
gosub @TRUCK_6321
92@ = 4
goto @TRUCK_6319

:TRUCK_6305
92@ = 5
goto @TRUCK_6319

:TRUCK_6319
return 

:TRUCK_6321
50@ = 2
50@ *= 60
50@ += 0
50@ *= 1000
set_lvar_int_to_lvar_int 81@ = 47@
add_int_lvar_to_int_lvar 81@ += 50@
50@, 51@ = get_time_of_day 
51@ += 0
if 
  51@ >= 60
goto_if_false @TRUCK_6413
51@ -= 60
50@ += 1

:TRUCK_6413
50@ += 2
if 
  50@ >= 24
goto_if_false @TRUCK_6445
50@ -= 24

:TRUCK_6445
set_lvar_int_to_lvar_int 52@ = 50@
52@ *= 60
add_int_lvar_to_int_lvar 52@ += 51@
52@ *= 1000
set_var_int_to_lvar_int $g_Truck_timedKM = 52@
freeze_onscreen_timer True
112@ = 1
return 

:TRUCK_6497
set_lvar_int_to_lvar_int 50@ = 93@
50@ *= 140
50@ /= 1000
set_lvar_int_to_lvar_int 51@ = 50@
51@ /= 60
set_lvar_int_to_lvar_int 52@ = 51@
52@ *= 60
sub_int_lvar_from_int_lvar 50@ -= 52@
94@, 95@ = get_time_of_day 
add_int_lvar_to_int_lvar 95@ += 50@
if 
  95@ >= 60
goto_if_false @TRUCK_6607
94@ += 1
95@ -= 60

:TRUCK_6607
add_int_lvar_to_int_lvar 94@ += 51@

:TRUCK_6615
if 
  94@ >= 24
goto_if_false @TRUCK_6647
94@ -= 24
goto @TRUCK_6615

:TRUCK_6647
72@ = 0
if 
  95@ > 45
goto_if_false @TRUCK_6749
50@ = 60
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 0
94@ += 1
if 
  94@ == 24
goto_if_false @TRUCK_6726
94@ = 0

:TRUCK_6726
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6749
if 
  72@ == 0
goto_if_false @TRUCK_6837
if and
  95@ > 30
  45 > 95@
goto_if_false @TRUCK_6837
50@ = 45
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 45
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6837
if 
  72@ == 0
goto_if_false @TRUCK_6925
if and
  95@ > 15
  30 > 95@
goto_if_false @TRUCK_6925
50@ = 30
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 30
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_6925
if 
  72@ == 0
goto_if_false @TRUCK_7013
if and
  95@ > 0
  15 > 95@
goto_if_false @TRUCK_7013
50@ = 15
sub_int_lvar_from_int_lvar 50@ -= 95@
95@ = 15
50@ *= 1000
add_int_lvar_to_int_lvar 81@ += 50@
72@ = 1

:TRUCK_7013
set_lvar_int_to_lvar_int 50@ = 94@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 95@
50@ *= 1000
set_var_int_to_lvar_int $g_Truck_timedKM = 50@
return 

:TRUCK_7054
50@ = get_car_health 75@
51@ = get_car_health 74@
if 
  is_int_lvar_greater_than_int_lvar 50@ > 51@
goto_if_false @TRUCK_7097
set_lvar_int_to_lvar_int 50@ = 51@

:TRUCK_7097
if 
  50@ > 1
goto_if_false @TRUCK_7131
set_car_health 74@ {health} 50@
set_car_health 75@ {health} 50@

:TRUCK_7131
if 
  108@ == 0
goto_if_false @TRUCK_7151
return 

:TRUCK_7151
50@ -= 250
50@ *= 100
div_int_lvar_by_int_lvar 50@ /= 90@
if 
  0 > 50@
goto_if_false @TRUCK_7199
50@ = 0

:TRUCK_7199
set_var_int_to_lvar_int $g_Truck_damageKM = 50@
return 

:TRUCK_7209
if 
  is_int_lvar_greater_than_int_lvar 47@ > 81@
goto_if_false @TRUCK_7436
gosub @TRUCK_6109
if 
  92@ == 5
goto_if_false @TRUCK_7283
39@ = 1
81@ = 0
83@ = 0
89@ = 2
return 

:TRUCK_7283
if 
  107@ == 1
goto_if_false @TRUCK_7436
if or
  92@ == 2
  92@ == 3
  92@ == 4
goto_if_false @TRUCK_7436
91@ /= 2
clear_onscreen_counter $g_Truck_cashKM
display_nth_onscreen_counter_with_string $g_Truck_cashKM {display} CounterDisplay.Number {slot} 1 {text} 'TRK_CSH'
if 
  92@ == 2
goto_if_false @TRUCK_7386
clear_onscreen_timer $g_Truck_timedKM

:TRUCK_7386
if 
  92@ == 2
goto_if_false @TRUCK_7411
110@ = 1

:TRUCK_7411
if 
  92@ == 3
goto_if_false @TRUCK_7436
111@ = 1

:TRUCK_7436
return 

:TRUCK_7438
set_lvar_int_to_lvar_int 83@ = 91@
if 
  108@ == 1
goto_if_false @TRUCK_7581
if 
  is_car_dead 74@
goto_if_false @TRUCK_7494
83@ = 0
goto @TRUCK_7581

:TRUCK_7494
50@ = get_car_health 74@
if 
  250 > 50@
goto_if_false @TRUCK_7535
83@ = 0
goto @TRUCK_7581

:TRUCK_7535
50@ -= 250
set_lvar_int_to_lvar_int 51@ = 50@
51@ *= 100
div_int_lvar_by_int_lvar 51@ /= 90@
mult_int_lvar_by_int_lvar 83@ *= 51@
83@ /= 100

:TRUCK_7581
if 
  109@ == 1
goto_if_false @TRUCK_7622
if 
  is_car_dead 74@
goto_if_false @TRUCK_7622
83@ = 0

:TRUCK_7622
set_var_int_to_lvar_int $g_Truck_cashKM = 83@
return 

:TRUCK_7632
if 
  109@ == 0
goto_if_false @TRUCK_7652
return 

:TRUCK_7652
if 
  88@ == 4
goto_if_false @TRUCK_7690
if 
  not is_wanted_level_greater $player1 {wantedLevel} 2
goto_if_false @TRUCK_7688

:TRUCK_7688
return 

:TRUCK_7690
if 
  88@ == 6
goto_if_false @TRUCK_7728
if 
  not is_wanted_level_greater $player1 {wantedLevel} 3
goto_if_false @TRUCK_7726

:TRUCK_7726
return 

:TRUCK_7728
return 

:TRUCK_7730
86@ = -1
87@ = -1
88@ = 0
gosub @TRUCK_7795
gosub @TRUCK_8247
gosub @TRUCK_9765
gosub @TRUCK_8910
gosub @TRUCK_9250
gosub @TRUCK_9355
return 

:TRUCK_7795
59@ = -76.1692
60@ = -1128.963
61@ = 0.0781
62@ = 69.9957
clear_area 59@ {y} 60@ {z} 61@ {radius} 30.0 {clearParticles} False
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_7988 {caseNum1} 1 {caseLabel1} @TRUCK_7916 {caseNum2} 2 {caseLabel2} @TRUCK_7940 {caseNum3} 3 {caseLabel3} @TRUCK_7964 {caseNum4} -1 {caseLabel4} @TRUCK_8003 {caseNum5} -1 {caseLabel5} @TRUCK_8003 {caseNum6} -1 {caseLabel6} @TRUCK_8003 {caseNum7} -1 {caseLabel7} @TRUCK_8003

:TRUCK_7916
74@ = create_car 514 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8003

:TRUCK_7940
74@ = create_car 403 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8003

:TRUCK_7964
74@ = create_car 515 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8003

:TRUCK_7988
write_debug "UNKNOWN_CAB"

:TRUCK_8003
set_car_heading 74@ {heading} 62@
59@ = -60.6033
60@ = -1136.899
61@ = 0.0781
clear_area 59@ {y} 60@ {z} 61@ {radius} 50.0 {clearParticles} False
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8218 {caseNum1} 1 {caseLabel1} @TRUCK_8122 {caseNum2} 2 {caseLabel2} @TRUCK_8146 {caseNum3} 3 {caseLabel3} @TRUCK_8170 {caseNum4} 4 {caseLabel4} @TRUCK_8194 {caseNum5} -1 {caseLabel5} @TRUCK_8237 {caseNum6} -1 {caseLabel6} @TRUCK_8237 {caseNum7} -1 {caseLabel7} @TRUCK_8237

:TRUCK_8122
75@ = create_car 584 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8237

:TRUCK_8146
75@ = create_car 435 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8237

:TRUCK_8170
75@ = create_car 450 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8237

:TRUCK_8194
75@ = create_car 591 {x} 59@ {y} 60@ {z} 61@
goto @TRUCK_8237

:TRUCK_8218
write_debug "UNKNOWN_TRAILER"

:TRUCK_8237
attach_trailer_to_cab 75@ {cab} 74@
return 

:TRUCK_8247
switch_start $g_nTruckMissionsPassed {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8521 {caseNum1} 0 {caseLabel1} @TRUCK_8375 {caseNum2} 1 {caseLabel2} @TRUCK_8389 {caseNum3} 2 {caseLabel3} @TRUCK_8403 {caseNum4} 3 {caseLabel4} @TRUCK_8417 {caseNum5} 4 {caseLabel5} @TRUCK_8431 {caseNum6} 5 {caseLabel6} @TRUCK_8445 {caseNum7} 6 {caseLabel7} @TRUCK_8476
switch_continued 7 {caseLabel1} @TRUCK_8507 {caseNum2} -1 {caseLabel2} @TRUCK_8552 {caseNum3} -1 {caseLabel3} @TRUCK_8552 {caseNum4} -1 {caseLabel4} @TRUCK_8552 {caseNum5} -1 {caseLabel5} @TRUCK_8552 {caseNum6} -1 {caseLabel6} @TRUCK_8552 {caseNum7} -1 {caseLabel7} @TRUCK_8552 {caseNum8} -1 {caseLabel8} @TRUCK_8552 {caseNum9} -1 {caseLabel9} @TRUCK_8552

:TRUCK_8375
86@ = 1
goto @TRUCK_8552

:TRUCK_8389
86@ = 2
goto @TRUCK_8552

:TRUCK_8403
86@ = 3
goto @TRUCK_8552

:TRUCK_8417
86@ = 4
goto @TRUCK_8552

:TRUCK_8431
86@ = 5
goto @TRUCK_8552

:TRUCK_8445
51@ = 5
51@ += 1
86@ = generate_random_int_in_range 4 {max} 51@
goto @TRUCK_8552

:TRUCK_8476
51@ = 7
51@ += 1
86@ = generate_random_int_in_range 6 {max} 51@
goto @TRUCK_8552

:TRUCK_8507
86@ = 8
goto @TRUCK_8552

:TRUCK_8521
51@ = 8
51@ += 1
86@ = generate_random_int_in_range 2 {max} 51@
goto @TRUCK_8552

:TRUCK_8552
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_8792 {caseNum1} 1 {caseLabel1} @TRUCK_8680 {caseNum2} 2 {caseLabel2} @TRUCK_8694 {caseNum3} 3 {caseLabel3} @TRUCK_8708 {caseNum4} 4 {caseLabel4} @TRUCK_8750 {caseNum5} 5 {caseLabel5} @TRUCK_8764 {caseNum6} 6 {caseLabel6} @TRUCK_8778 {caseNum7} 7 {caseLabel7} @TRUCK_8736
switch_continued 8 {caseLabel1} @TRUCK_8722 {caseNum2} -1 {caseLabel2} @TRUCK_8820 {caseNum3} -1 {caseLabel3} @TRUCK_8820 {caseNum4} -1 {caseLabel4} @TRUCK_8820 {caseNum5} -1 {caseLabel5} @TRUCK_8820 {caseNum6} -1 {caseLabel6} @TRUCK_8820 {caseNum7} -1 {caseLabel7} @TRUCK_8820 {caseNum8} -1 {caseLabel8} @TRUCK_8820 {caseNum9} -1 {caseLabel9} @TRUCK_8820

:TRUCK_8680
gosub @TRUCK_8822
goto @TRUCK_8820

:TRUCK_8694
gosub @TRUCK_8833
goto @TRUCK_8820

:TRUCK_8708
gosub @TRUCK_8855
goto @TRUCK_8820

:TRUCK_8722
gosub @TRUCK_8844
goto @TRUCK_8820

:TRUCK_8736
gosub @TRUCK_8899
goto @TRUCK_8820

:TRUCK_8750
gosub @TRUCK_8877
goto @TRUCK_8820

:TRUCK_8764
gosub @TRUCK_8866
goto @TRUCK_8820

:TRUCK_8778
gosub @TRUCK_8888
goto @TRUCK_8820

:TRUCK_8792
write_debug "UNKNOWN_DESTINATION_AREA"

:TRUCK_8820
return 

:TRUCK_8822
87@ = generate_random_int_in_range 0 {max} 4
return 

:TRUCK_8833
87@ = generate_random_int_in_range 0 {max} 2
return 

:TRUCK_8844
87@ = generate_random_int_in_range 0 {max} 14
return 

:TRUCK_8855
87@ = generate_random_int_in_range 0 {max} 4
return 

:TRUCK_8866
87@ = generate_random_int_in_range 0 {max} 4
return 

:TRUCK_8877
87@ = generate_random_int_in_range 0 {max} 3
return 

:TRUCK_8888
87@ = generate_random_int_in_range 0 {max} 3
return 

:TRUCK_8899
87@ = generate_random_int_in_range 0 {max} 5
return 

:TRUCK_8910
switch_start $g_nTruckMissionsPassed {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9122 {caseNum1} 0 {caseLabel1} @TRUCK_9038 {caseNum2} 1 {caseLabel2} @TRUCK_9052 {caseNum3} 2 {caseLabel3} @TRUCK_9080 {caseNum4} 3 {caseLabel4} @TRUCK_9038 {caseNum5} 4 {caseLabel5} @TRUCK_9066 {caseNum6} 5 {caseLabel6} @TRUCK_9080 {caseNum7} 6 {caseLabel7} @TRUCK_9094
switch_continued 7 {caseLabel1} @TRUCK_9108 {caseNum2} -1 {caseLabel2} @TRUCK_9145 {caseNum3} -1 {caseLabel3} @TRUCK_9145 {caseNum4} -1 {caseLabel4} @TRUCK_9145 {caseNum5} -1 {caseLabel5} @TRUCK_9145 {caseNum6} -1 {caseLabel6} @TRUCK_9145 {caseNum7} -1 {caseLabel7} @TRUCK_9145 {caseNum8} -1 {caseLabel8} @TRUCK_9145 {caseNum9} -1 {caseLabel9} @TRUCK_9145

:TRUCK_9038
88@ = 2
goto @TRUCK_9145

:TRUCK_9052
88@ = 1
goto @TRUCK_9145

:TRUCK_9066
88@ = 3
goto @TRUCK_9145

:TRUCK_9080
88@ = 4
goto @TRUCK_9145

:TRUCK_9094
88@ = 5
goto @TRUCK_9145

:TRUCK_9108
88@ = 6
goto @TRUCK_9145

:TRUCK_9122
88@ = generate_random_int_in_range 0 {max} 6
88@ += 1
goto @TRUCK_9145

:TRUCK_9145
if or
  88@ == 1
  88@ == 3
  88@ == 5
goto_if_false @TRUCK_9184
108@ = 1

:TRUCK_9184
if or
  88@ == 2
  88@ == 5
goto_if_false @TRUCK_9216
107@ = 1

:TRUCK_9216
if or
  88@ == 4
  88@ == 6
goto_if_false @TRUCK_9248
109@ = 1

:TRUCK_9248
return 

:TRUCK_9250
set_lvar_float_to_lvar_float 63@ = 102@
sub_float_var_from_float_lvar 63@ -= $truckX
set_lvar_float_to_lvar_float 64@ = 103@
sub_float_var_from_float_lvar 64@ -= $truckY
set_lvar_float_to_lvar_float 66@ = 63@
mult_float_lvar_by_float_lvar 66@ *= 63@
set_lvar_float_to_lvar_float 67@ = 64@
mult_float_lvar_by_float_lvar 67@ *= 64@
set_lvar_float_to_lvar_float 69@ = 66@
add_float_lvar_to_float_lvar 69@ += 67@
70@ = sqrt 69@
cset_lvar_int_to_lvar_float 93@ =# 70@
49@ += 1
return 

:TRUCK_9355
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9528 {caseNum1} 1 {caseLabel1} @TRUCK_9483 {caseNum2} 2 {caseLabel2} @TRUCK_9483 {caseNum3} 3 {caseLabel3} @TRUCK_9483 {caseNum4} 4 {caseLabel4} @TRUCK_9498 {caseNum5} 5 {caseLabel5} @TRUCK_9498 {caseNum6} 6 {caseLabel6} @TRUCK_9513 {caseNum7} 7 {caseLabel7} @TRUCK_9513
switch_continued 8 {caseLabel1} @TRUCK_9513 {caseNum2} -1 {caseLabel2} @TRUCK_9567 {caseNum3} -1 {caseLabel3} @TRUCK_9567 {caseNum4} -1 {caseLabel4} @TRUCK_9567 {caseNum5} -1 {caseLabel5} @TRUCK_9567 {caseNum6} -1 {caseLabel6} @TRUCK_9567 {caseNum7} -1 {caseLabel7} @TRUCK_9567 {caseNum8} -1 {caseLabel8} @TRUCK_9567 {caseNum9} -1 {caseLabel9} @TRUCK_9567

:TRUCK_9483
91@ = 1000
goto @TRUCK_9567

:TRUCK_9498
91@ = 3000
goto @TRUCK_9567

:TRUCK_9513
91@ = 4000
goto @TRUCK_9567

:TRUCK_9528
write_debug "INITIALISE_CASH_UNKNOWN_DESTINATION"

:TRUCK_9567
switch_start 88@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_9697 {caseNum1} 1 {caseLabel1} @TRUCK_9637 {caseNum2} 2 {caseLabel2} @TRUCK_9630 {caseNum3} 3 {caseLabel3} @TRUCK_9652 {caseNum4} 4 {caseLabel4} @TRUCK_9652 {caseNum5} 5 {caseLabel5} @TRUCK_9667 {caseNum6} 6 {caseLabel6} @TRUCK_9682 {caseNum7} -1 {caseLabel7} @TRUCK_9737

:TRUCK_9630
goto @TRUCK_9737

:TRUCK_9637
91@ += 500
goto @TRUCK_9737

:TRUCK_9652
91@ += 1000
goto @TRUCK_9737

:TRUCK_9667
91@ += 3000
goto @TRUCK_9737

:TRUCK_9682
91@ += 6000
goto @TRUCK_9737

:TRUCK_9697
write_debug "INITIALISE_CASH_UNKNOWN_MISSION_TYPE"

:TRUCK_9737
if 
  $g_nTruckMissionsPassed == 5
goto_if_false @TRUCK_9763
91@ += 1000

:TRUCK_9763
return 

:TRUCK_9765
switch_start 86@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10005 {caseNum1} 1 {caseLabel1} @TRUCK_9893 {caseNum2} 2 {caseLabel2} @TRUCK_9907 {caseNum3} 3 {caseLabel3} @TRUCK_9921 {caseNum4} 4 {caseLabel4} @TRUCK_9963 {caseNum5} 5 {caseLabel5} @TRUCK_9977 {caseNum6} 6 {caseLabel6} @TRUCK_9991 {caseNum7} 7 {caseLabel7} @TRUCK_9949
switch_continued 8 {caseLabel1} @TRUCK_9935 {caseNum2} -1 {caseLabel2} @TRUCK_10033 {caseNum3} -1 {caseLabel3} @TRUCK_10033 {caseNum4} -1 {caseLabel4} @TRUCK_10033 {caseNum5} -1 {caseLabel5} @TRUCK_10033 {caseNum6} -1 {caseLabel6} @TRUCK_10033 {caseNum7} -1 {caseLabel7} @TRUCK_10033 {caseNum8} -1 {caseLabel8} @TRUCK_10033 {caseNum9} -1 {caseLabel9} @TRUCK_10033

:TRUCK_9893
gosub @TRUCK_10035
goto @TRUCK_10033

:TRUCK_9907
gosub @TRUCK_10284
goto @TRUCK_10033

:TRUCK_9921
gosub @TRUCK_11138
goto @TRUCK_10033

:TRUCK_9935
gosub @TRUCK_10458
goto @TRUCK_10033

:TRUCK_9949
gosub @TRUCK_11799
goto @TRUCK_10033

:TRUCK_9963
gosub @TRUCK_11381
goto @TRUCK_10033

:TRUCK_9977
gosub @TRUCK_12083
goto @TRUCK_10033

:TRUCK_9991
gosub @TRUCK_11590
goto @TRUCK_10033

:TRUCK_10005
write_debug "UNKNOWN_DESTINATION_AREA"

:TRUCK_10033
return 

:TRUCK_10035
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10246 {caseNum1} 0 {caseLabel1} @TRUCK_10098 {caseNum2} 1 {caseLabel2} @TRUCK_10135 {caseNum3} 2 {caseLabel3} @TRUCK_10172 {caseNum4} 3 {caseLabel4} @TRUCK_10209 {caseNum5} -1 {caseLabel5} @TRUCK_10282 {caseNum6} -1 {caseLabel6} @TRUCK_10282 {caseNum7} -1 {caseLabel7} @TRUCK_10282

:TRUCK_10098
102@ = -187.4041
103@ = -277.0196
104@ = 0.4219
goto @TRUCK_10282

:TRUCK_10135
102@ = 58.0364
103@ = -256.7285
104@ = 0.5781
goto @TRUCK_10282

:TRUCK_10172
102@ = 95.8675
103@ = -154.3627
104@ = 1.5751
goto @TRUCK_10282

:TRUCK_10209
102@ = 809.7556
103@ = -598.0007
104@ = 15.1875
goto @TRUCK_10282

:TRUCK_10246
write_debug "UNKNOWN_COUNTRYEASTNEAR_LOCATION"

:TRUCK_10282
return 

:TRUCK_10284
switch_start 87@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TRUCK_10421 {caseNum1} 0 {caseLabel1} @TRUCK_10347 {caseNum2} 1 {caseLabel2} @TRUCK_10384 {caseNum3} -1 {caseLabel3} @TRUCK_10456 {caseNum4} -1 {caseLabel4} @TRUCK_10456 {caseNum5} -1 {caseLabel5} @TRUCK_10456 {caseNum6} -1 {caseLabel6} @TRUCK_10456 {caseNum7} -1 {caseLabel7} @TRUCK_10456

:TRUCK_10347
102@ = 1403.833
103@ = 399.4294
104@ = 18.75
goto @TRUCK_10456

:TRUCK_10384
102@ = 1338.2889
103@ = 348.9004
104@ = 18.4062
goto @TRUCK_10456

:TRUCK_10421
write_debug "UNKNOWN_COUNTRYEASTFAR_LOCATION"

:TRUCK_10456
return 

:TRUCK_10458
switch_start 87@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11104 {caseNum1} 0 {caseLabel1} @TRUCK_10586 {caseNum2} 1 {caseLabel2} @TRUCK_10623 {caseNum3} 2 {caseLabel3} @TRUCK_10660 {caseNum4} 3 {caseLabel4} @TRUCK_10697 {caseNum5} 4 {caseLabel5} @TRUCK_10734 {caseNum6} 5 {caseLabel6} @TRUCK_10771 {caseNum7} 6 {caseLabel7} @TRUCK_10808
switch_continued 7 {caseLabel1} @TRUCK_10845 {caseNum2} 8 {caseLabel2} @TRUCK_10882 {caseNum3} 9 {caseLabel3} @TRUCK_10919 {caseNum4} 10 {caseLabel4} @TRUCK_10956 {caseNum5} 11 {caseLabel5} @TRUCK_10993 {caseNum6} 12 {caseLabel6} @TRUCK_11030 {caseNum7} 13 {caseLabel7} @TRUCK_11067 {caseNum8} -1 {caseLabel8} @TRUCK_11136 {caseNum9} -1 {caseLabel9} @TRUCK_11136

:TRUCK_10586
102@ = 1449.715
103@ = 2358.8521
104@ = 9.8203
goto @TRUCK_11136

:TRUCK_10623
102@ = 1037.475
103@ = 2131.344
104@ = 9.8203
goto @TRUCK_11136

:TRUCK_10660
102@ = 987.9741
103@ = 2080.3889
104@ = 9.8203
goto @TRUCK_11136

:TRUCK_10697
102@ = 1288.671
103@ = 1195.2321
104@ = 9.8656
goto @TRUCK_11136

:TRUCK_10734
102@ = 2467.9021
103@ = 1950.061
104@ = 9.2381
goto @TRUCK_11136

:TRUCK_10771
102@ = 2792.7439
103@ = 2578.3359
104@ = 9.8203
goto @TRUCK_11136

:TRUCK_10808
102@ = 2271.4771
103@ = 2791.739
104@ = 9.8203
goto @TRUCK_11136

:TRUCK_10845
102@ = 2596.519
103@ = 1738.582
104@ = 9.8281
goto @TRUCK_11136

:TRUCK_10882
102@ = 2818.8401
103@ = 912.5091
104@ = 9.75
goto @TRUCK_11136

:TRUCK_10919
102@ = 2706.5049
103@ = 827.3236
104@ = 9.2145
goto @TRUCK_11136

:TRUCK_10956
102@ = 1627.723
103@ = 688.4043
104@ = 9.8281
goto @TRUCK_11136

:TRUCK_10993
102@ = 1504.4919
103@ = 981.141
104@ = 9.7187
goto @TRUCK_11136

:TRUCK_11030
102@ = 1724.012
103@ = 1590.1281
104@ = 9.2578
goto @TRUCK_11136

:TRUCK_11067
102@ = 1727.833
103@ = 2338.0171
104@ = 9.813
goto @TRUCK_11136

:TRUCK_11104
write_debug "UNKNOWN_LASVENTURAS_LOCATION"

:TRUCK_11136
return 

:TRUCK_11138
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11349 {caseNum1} 0 {caseLabel1} @TRUCK_11201 {caseNum2} 1 {caseLabel2} @TRUCK_11238 {caseNum3} 2 {caseLabel3} @TRUCK_11275 {caseNum4} 3 {caseLabel4} @TRUCK_11312 {caseNum5} -1 {caseLabel5} @TRUCK_11379 {caseNum6} -1 {caseLabel6} @TRUCK_11379 {caseNum7} -1 {caseLabel7} @TRUCK_11379

:TRUCK_11201
102@ = 2413.6831
103@ = -2113.6741
104@ = 12.3881
goto @TRUCK_11379

:TRUCK_11238
102@ = 2784.9729
103@ = -2455.4409
104@ = 12.625
goto @TRUCK_11379

:TRUCK_11275
102@ = 2112.6621
103@ = -2070.376
104@ = 12.5547
goto @TRUCK_11379

:TRUCK_11312
102@ = 1763.641
103@ = -2070.3711
104@ = 12.6195
goto @TRUCK_11379

:TRUCK_11349
write_debug "UNKNOWN_LOSSANTOS_LOCATION"

:TRUCK_11379
return 

:TRUCK_11381
switch_start 87@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11555 {caseNum1} 0 {caseLabel1} @TRUCK_11444 {caseNum2} 1 {caseLabel2} @TRUCK_11481 {caseNum3} 2 {caseLabel3} @TRUCK_11518 {caseNum4} -1 {caseLabel4} @TRUCK_11588 {caseNum5} -1 {caseLabel5} @TRUCK_11588 {caseNum6} -1 {caseLabel6} @TRUCK_11588 {caseNum7} -1 {caseLabel7} @TRUCK_11588

:TRUCK_11444
102@ = -1888.621
103@ = -1711.8361
104@ = 20.7656
goto @TRUCK_11588

:TRUCK_11481
102@ = -2117.2271
103@ = -2380.5071
104@ = 29.4688
goto @TRUCK_11588

:TRUCK_11518
102@ = -1545.439
103@ = -2747.032
104@ = 47.5314
goto @TRUCK_11588

:TRUCK_11555
write_debug "UNKNOWN_COUNTRYSOUTH_LOCATION"

:TRUCK_11588
return 

:TRUCK_11590
switch_start 87@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_11764 {caseNum1} 0 {caseLabel1} @TRUCK_11653 {caseNum2} 1 {caseLabel2} @TRUCK_11690 {caseNum3} 2 {caseLabel3} @TRUCK_11727 {caseNum4} -1 {caseLabel4} @TRUCK_11797 {caseNum5} -1 {caseLabel5} @TRUCK_11797 {caseNum6} -1 {caseLabel6} @TRUCK_11797 {caseNum7} -1 {caseLabel7} @TRUCK_11797

:TRUCK_11653
102@ = -1407.375
103@ = 2645.957
104@ = 54.7031
goto @TRUCK_11797

:TRUCK_11690
102@ = -2245.5811
103@ = 2371.6931
104@ = 3.9919
goto @TRUCK_11797

:TRUCK_11727
102@ = -1360.6331
103@ = 2068.094
104@ = 51.4589
goto @TRUCK_11797

:TRUCK_11764
write_debug "UNKNOWN_COUNTRYNORTH_LOCATION"

:TRUCK_11797
return 

:TRUCK_11799
switch_start 87@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TRUCK_12047 {caseNum1} 0 {caseLabel1} @TRUCK_11862 {caseNum2} 1 {caseLabel2} @TRUCK_11899 {caseNum3} 2 {caseLabel3} @TRUCK_11936 {caseNum4} 3 {caseLabel4} @TRUCK_11973 {caseNum5} 4 {caseLabel5} @TRUCK_12010 {caseNum6} -1 {caseLabel6} @TRUCK_12081 {caseNum7} -1 {caseLabel7} @TRUCK_12081

:TRUCK_11862
102@ = 274.2705
103@ = 1382.781
104@ = 9.6016
goto @TRUCK_12081

:TRUCK_11899
102@ = 628.8638
103@ = 1714.891
104@ = 5.9922
goto @TRUCK_12081

:TRUCK_11936
102@ = 635.0028
103@ = 1213.777
104@ = 10.7188
goto @TRUCK_12081

:TRUCK_11973
102@ = -914.953
103@ = 2012.1379
104@ = 59.9283
goto @TRUCK_12081

:TRUCK_12010
102@ = 385.8214
103@ = 2595.55
104@ = 15.4843
goto @TRUCK_12081

:TRUCK_12047
write_debug "UNKNOWN_COUNTRYNORTH2_LOCATION"

:TRUCK_12081
return 

:TRUCK_12083
switch_start 87@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_12294 {caseNum1} 0 {caseLabel1} @TRUCK_12146 {caseNum2} 1 {caseLabel2} @TRUCK_12183 {caseNum3} 2 {caseLabel3} @TRUCK_12220 {caseNum4} 3 {caseLabel4} @TRUCK_12257 {caseNum5} -1 {caseLabel5} @TRUCK_12325 {caseNum6} -1 {caseLabel6} @TRUCK_12325 {caseNum7} -1 {caseLabel7} @TRUCK_12325

:TRUCK_12146
102@ = -1556.9771
103@ = -441.3493
104@ = 5.0
goto @TRUCK_12325

:TRUCK_12183
102@ = -2659.6311
103@ = 1380.642
104@ = 6.1643
goto @TRUCK_12325

:TRUCK_12220
102@ = -1650.928
103@ = 437.5679
104@ = 6.1797
goto @TRUCK_12325

:TRUCK_12257
102@ = -1745.116
103@ = 37.8752
104@ = 2.5408
goto @TRUCK_12325

:TRUCK_12294
write_debug "UNKNOWN_SAN_FIERRO_LOCATION"

:TRUCK_12325
return 

:TRUCK_12327
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @TRUCK_12376
48@ += 1
if 
  48@ > 2
goto_if_false @TRUCK_12374
48@ = 0

:TRUCK_12374
clear_all_view_variables 

:TRUCK_12376
if 
  48@ == 1
goto_if_false @TRUCK_12570
set_var_int_to_lvar_int $Truck_view_debug = 36@
set_var_int_to_lvar_int $8164 = 37@
set_var_int_to_lvar_int $8165 = 47@
set_var_int_to_lvar_int $8166 = 81@
sub_int_lvar_from_int_var $8166 -= 47@
set_var_int_to_lvar_int $8167 = 92@
set_var_int_to_lvar_int $8168 = 93@
$8169 = 0
$8170 = 0
view_integer_variable $Truck_view_debug {_p2} "M_STAGE"
view_integer_variable $8164 {_p2} "M_GOALS"
view_integer_variable $8165 {_p2} "M_MISSION_TIMER"
view_integer_variable $8166 {_p2} "TIME_BOUNDARY_HIT"
view_integer_variable $8167 {_p2} "TIME_STAGE"
view_integer_variable $8168 {_p2} "DISTANCE"

:TRUCK_12570
if 
  48@ == 2
goto_if_false @TRUCK_12588

:TRUCK_12588
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @TRUCK_12610
40@ = 1

:TRUCK_12610
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @TRUCK_12698
if 
  41@ == 0
goto_if_false @TRUCK_12673
41@ = 1
write_debug "LEVEL_PAUSED"
goto @TRUCK_12698

:TRUCK_12673
41@ = 0
write_debug "LEVEL_UNPAUSED"

:TRUCK_12698
return 

:TRUCK_12700
if or
  36@ == 50
  36@ == 51
goto_if_false @TRUCK_12727
return 

:TRUCK_12727
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @TRUCK_12758
gosub @TRUCK_16464
38@ = 1
return 

:TRUCK_12758
if 
is_ps2_keyboard_key_just_pressed 77
goto_if_false @TRUCK_12804
$g_nTruckMissionsPassed += 1
write_debug_with_int "MISSIONS_PASSED" {number} $g_nTruckMissionsPassed
return 

:TRUCK_12804
72@ = 0
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @TRUCK_12833
72@ = 1

:TRUCK_12833
73@ = 0
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @TRUCK_12862
73@ = 1

:TRUCK_12862
50@ = 0
if 
is_ps2_keyboard_key_just_pressed 74
goto_if_false @TRUCK_12891
50@ = 1

:TRUCK_12891
if and
  72@ <> 1
  73@ <> 1
  50@ <> 1
goto_if_false @TRUCK_12925
return 

:TRUCK_12925
if 
  72@ == 1
goto_if_false @TRUCK_12995
34@ += 1
if 
  34@ == 6
goto_if_false @TRUCK_12975
34@ = 0

:TRUCK_12975
35@ = 0
write_debug_with_int "AREA" {number} 34@
return 

:TRUCK_12995
if 
  73@ == 1
goto_if_false @TRUCK_13040
35@ += 1
write_debug_with_int "DESTINATION" {number} 35@
return 

:TRUCK_13040
if 
  34@ == 0
goto_if_false @TRUCK_13350
switch_start 35@ {numCases} 6 {hasDefaultCase} 1 {defaultLabel} @TRUCK_13306 {caseNum1} 0 {caseLabel1} @TRUCK_13306 {caseNum2} 1 {caseLabel2} @TRUCK_13121 {caseNum3} 2 {caseLabel3} @TRUCK_13158 {caseNum4} 3 {caseLabel4} @TRUCK_13195 {caseNum5} 4 {caseLabel5} @TRUCK_13232 {caseNum6} 5 {caseLabel6} @TRUCK_13269 {caseNum7} -1 {caseLabel7} @TRUCK_13350

:TRUCK_13121
102@ = 56.744
103@ = -268.404
104@ = 0.579
goto @TRUCK_13350

:TRUCK_13158
102@ = 100.397
103@ = -155.05
104@ = 1.583
goto @TRUCK_13350

:TRUCK_13195
102@ = 815.046
103@ = -605.128
104@ = 15.336
goto @TRUCK_13350

:TRUCK_13232
102@ = 1401.109
103@ = 398.763
104@ = 18.756
goto @TRUCK_13350

:TRUCK_13269
102@ = 1343.125
103@ = 345.667
104@ = 18.556
goto @TRUCK_13350

:TRUCK_13306
102@ = -189.23
103@ = -273.013
104@ = 0.429
35@ = 0
goto @TRUCK_13350

:TRUCK_13350
if 
  34@ == 2
goto_if_false @TRUCK_14021
switch_start 35@ {numCases} 14 {hasDefaultCase} 1 {defaultLabel} @TRUCK_13977 {caseNum1} 0 {caseLabel1} @TRUCK_13977 {caseNum2} 1 {caseLabel2} @TRUCK_13496 {caseNum3} 2 {caseLabel3} @TRUCK_13533 {caseNum4} 3 {caseLabel4} @TRUCK_13570 {caseNum5} 4 {caseLabel5} @TRUCK_13607 {caseNum6} 5 {caseLabel6} @TRUCK_13644 {caseNum7} 6 {caseLabel7} @TRUCK_13681
switch_continued 7 {caseLabel1} @TRUCK_13718 {caseNum2} 8 {caseLabel2} @TRUCK_13755 {caseNum3} 9 {caseLabel3} @TRUCK_13792 {caseNum4} 10 {caseLabel4} @TRUCK_13829 {caseNum5} 11 {caseLabel5} @TRUCK_13866 {caseNum6} 12 {caseLabel6} @TRUCK_13903 {caseNum7} 13 {caseLabel7} @TRUCK_13940 {caseNum8} -1 {caseLabel8} @TRUCK_14021 {caseNum9} -1 {caseLabel9} @TRUCK_14021

:TRUCK_13496
102@ = 1042.15
103@ = 2130.46
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13533
102@ = 983.11
103@ = 2076.3799
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13570
102@ = 1288.671
103@ = 1195.2321
104@ = 9.8656
goto @TRUCK_14021

:TRUCK_13607
102@ = 2469.5701
103@ = 1949.52
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13644
102@ = 2807.8301
103@ = 2609.9399
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13681
102@ = 2248.71
103@ = 2775.1201
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13718
102@ = 2603.22
103@ = 1730.48
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13755
102@ = 2818.8401
103@ = 912.19
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13792
102@ = 2710.3601
103@ = 850.12
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13829
102@ = 1588.9
103@ = 715.31
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13866
102@ = 1446.26
103@ = 1000.51
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13903
102@ = 1724.012
103@ = 1590.1281
104@ = 9.2578
goto @TRUCK_14021

:TRUCK_13940
102@ = 1713.79
103@ = 2329.05
104@ = 101.0
goto @TRUCK_14021

:TRUCK_13977
102@ = 1450.8
103@ = 2360.6899
104@ = 101.0
35@ = 0
goto @TRUCK_14021

:TRUCK_14021
if 
  34@ == 1
goto_if_false @TRUCK_14257
switch_start 35@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14213 {caseNum1} 0 {caseLabel1} @TRUCK_14213 {caseNum2} 1 {caseLabel2} @TRUCK_14102 {caseNum3} 2 {caseLabel3} @TRUCK_14139 {caseNum4} 3 {caseLabel4} @TRUCK_14176 {caseNum5} -1 {caseLabel5} @TRUCK_14257 {caseNum6} -1 {caseLabel6} @TRUCK_14257 {caseNum7} -1 {caseLabel7} @TRUCK_14257

:TRUCK_14102
102@ = 2759.0
103@ = -2446.0
104@ = 101.0
goto @TRUCK_14257

:TRUCK_14139
102@ = 2104.0
103@ = -2089.0
104@ = 101.0
goto @TRUCK_14257

:TRUCK_14176
102@ = 1751.0
103@ = -2067.0
104@ = 101.0
goto @TRUCK_14257

:TRUCK_14213
102@ = 2412.0
103@ = -2106.0
104@ = 101.0
35@ = 0
goto @TRUCK_14257

:TRUCK_14257
if 
  34@ == 4
goto_if_false @TRUCK_14456
switch_start 35@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14412 {caseNum1} 0 {caseLabel1} @TRUCK_14412 {caseNum2} 1 {caseLabel2} @TRUCK_14338 {caseNum3} 2 {caseLabel3} @TRUCK_14375 {caseNum4} -1 {caseLabel4} @TRUCK_14456 {caseNum5} -1 {caseLabel5} @TRUCK_14456 {caseNum6} -1 {caseLabel6} @TRUCK_14456 {caseNum7} -1 {caseLabel7} @TRUCK_14456

:TRUCK_14338
102@ = -2001.03
103@ = -2388.0801
104@ = 101.0
goto @TRUCK_14456

:TRUCK_14375
102@ = -1560.67
103@ = -2728.3899
104@ = 101.0
goto @TRUCK_14456

:TRUCK_14412
102@ = -1835.0
103@ = -1647.6801
104@ = 101.0
35@ = 0
goto @TRUCK_14456

:TRUCK_14456
if 
  34@ == 6
goto_if_false @TRUCK_14655
switch_start 35@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14611 {caseNum1} 0 {caseLabel1} @TRUCK_14611 {caseNum2} 1 {caseLabel2} @TRUCK_14537 {caseNum3} 2 {caseLabel3} @TRUCK_14574 {caseNum4} -1 {caseLabel4} @TRUCK_14655 {caseNum5} -1 {caseLabel5} @TRUCK_14655 {caseNum6} -1 {caseLabel6} @TRUCK_14655 {caseNum7} -1 {caseLabel7} @TRUCK_14655

:TRUCK_14537
102@ = -1945.89
103@ = 2377.8999
104@ = 101.0
goto @TRUCK_14655

:TRUCK_14574
102@ = -1471.49
103@ = 1864.85
104@ = 101.0
goto @TRUCK_14655

:TRUCK_14611
102@ = -1286.73
103@ = 2695.9199
104@ = 101.0
35@ = 0
goto @TRUCK_14655

:TRUCK_14655
if 
  34@ == 3
goto_if_false @TRUCK_14928
switch_start 35@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TRUCK_14884 {caseNum1} 0 {caseLabel1} @TRUCK_14884 {caseNum2} 1 {caseLabel2} @TRUCK_14736 {caseNum3} 2 {caseLabel3} @TRUCK_14773 {caseNum4} 3 {caseLabel4} @TRUCK_14810 {caseNum5} 4 {caseLabel5} @TRUCK_14847 {caseNum6} -1 {caseLabel6} @TRUCK_14928 {caseNum7} -1 {caseLabel7} @TRUCK_14928

:TRUCK_14736
102@ = 613.75
103@ = 1692.39
104@ = 101.0
goto @TRUCK_14928

:TRUCK_14773
102@ = 620.35
103@ = 1249.328
104@ = 101.0
goto @TRUCK_14928

:TRUCK_14810
102@ = -533.24
103@ = 1995.917
104@ = 101.0
goto @TRUCK_14928

:TRUCK_14847
102@ = 325.05
103@ = 2543.29
104@ = 101.0
goto @TRUCK_14928

:TRUCK_14884
102@ = 246.56
103@ = 1435.1899
104@ = 101.0
35@ = 0
goto @TRUCK_14928

:TRUCK_14928
if 
  34@ == 5
goto_if_false @TRUCK_15164
switch_start 35@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15120 {caseNum1} 0 {caseLabel1} @TRUCK_15120 {caseNum2} 1 {caseLabel2} @TRUCK_15009 {caseNum3} 2 {caseLabel3} @TRUCK_15046 {caseNum4} 3 {caseLabel4} @TRUCK_15083 {caseNum5} -1 {caseLabel5} @TRUCK_15164 {caseNum6} -1 {caseLabel6} @TRUCK_15164 {caseNum7} -1 {caseLabel7} @TRUCK_15164

:TRUCK_15009
102@ = -2629.0911
103@ = 1387.42
104@ = 101.0
goto @TRUCK_15164

:TRUCK_15046
102@ = -1530.776
103@ = 487.201
104@ = 101.0
goto @TRUCK_15164

:TRUCK_15083
102@ = -1745.08
103@ = 27.759
104@ = 101.0
goto @TRUCK_15164

:TRUCK_15120
102@ = -1549.859
103@ = -434.86
104@ = 101.0068
35@ = 0
goto @TRUCK_15164

:TRUCK_15164
clear_area 102@ {y} 103@ {z} 104@ {radius} 0.5 {clearParticles} False
set_char_heading $scplayer {heading} 0.0
set_char_coordinates $scplayer {x} 102@ {y} 103@ {z} -101.0
set_camera_behind_player 
return 

:TRUCK_15212
43@ += 1
if 
  43@ > 9
goto_if_false @TRUCK_15244
43@ = 0

:TRUCK_15244
return 

:TRUCK_15246
44@ = get_game_timer 
set_lvar_int_to_lvar_int 46@ = 44@
sub_int_lvar_from_int_lvar 46@ -= 45@
set_lvar_int_to_lvar_int 45@ = 44@
add_int_lvar_to_int_lvar 47@ += 46@
return 

:TRUCK_15285
36@ += 1
37@ = 0
TIMERA = 0
TIMERB = 0
return 

:TRUCK_15315
return 

:TRUCK_15317
if 
  not is_player_playing $player1
goto_if_false @TRUCK_15344
wait 0
goto @TRUCK_15317

:TRUCK_15344
set_player_control $player1 {state} False
wait 1000
do_fade 1000 {direction} Fade.Out

:TRUCK_15363
if 
  get_fading_status 
goto_if_false @TRUCK_15387
wait 0
goto @TRUCK_15363

:TRUCK_15387
gosub @TRUCK_15554
gosub @TRUCK_15620
gosub @TRUCK_16266
clear_area $truckX {y} $truckY {z} $truckZ {radius} 100.0 {clearParticles} True
load_scene $truckX {y} $truckY {z} $truckZ
set_char_coordinates $scplayer {x} -76.9664 {y} -1134.639 {z} 0.0781
set_char_heading $scplayer {heading} 14.7291
set_camera_behind_player 
set_car_density_multiplier 0.0
gosub @TRUCK_7730
wait 2000
draw_oddjob_title_before_fade True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:TRUCK_15507
if 
  get_fading_status 
goto_if_false @TRUCK_15531
wait 0
goto @TRUCK_15507

:TRUCK_15531
set_player_control $player1 {state} True
89@ = 0
gosub @TRUCK_15285
return 

:TRUCK_15554
97@ = generate_random_int_in_range 0 {max} 3
97@ += 1
if 
  97@ == 1
goto_if_false @TRUCK_15602
96@ = 1
goto @TRUCK_15618

:TRUCK_15602
96@ = generate_random_int_in_range 1 {max} 4
96@ += 1

:TRUCK_15618
return 

:TRUCK_15620
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15719 {caseNum1} 1 {caseLabel1} @TRUCK_15683 {caseNum2} 2 {caseLabel2} @TRUCK_15695 {caseNum3} 3 {caseLabel3} @TRUCK_15707 {caseNum4} -1 {caseLabel4} @TRUCK_15734 {caseNum5} -1 {caseLabel5} @TRUCK_15734 {caseNum6} -1 {caseLabel6} @TRUCK_15734 {caseNum7} -1 {caseLabel7} @TRUCK_15734

:TRUCK_15683
request_model 514
goto @TRUCK_15734

:TRUCK_15695
request_model 403
goto @TRUCK_15734

:TRUCK_15707
request_model 515
goto @TRUCK_15734

:TRUCK_15719
write_debug "UNKNOWN_CAB"

:TRUCK_15734
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_15845 {caseNum1} 1 {caseLabel1} @TRUCK_15797 {caseNum2} 2 {caseLabel2} @TRUCK_15809 {caseNum3} 3 {caseLabel3} @TRUCK_15821 {caseNum4} 4 {caseLabel4} @TRUCK_15833 {caseNum5} -1 {caseLabel5} @TRUCK_15864 {caseNum6} -1 {caseLabel6} @TRUCK_15864 {caseNum7} -1 {caseLabel7} @TRUCK_15864

:TRUCK_15797
request_model 584
goto @TRUCK_15864

:TRUCK_15809
request_model 435
goto @TRUCK_15864

:TRUCK_15821
request_model 450
goto @TRUCK_15864

:TRUCK_15833
request_model 591
goto @TRUCK_15864

:TRUCK_15845
write_debug "UNKNOWN_TRAILER"

:TRUCK_15864
load_all_models_now 
switch_start 97@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @TRUCK_16031 {caseNum1} 1 {caseLabel1} @TRUCK_15929 {caseNum2} 2 {caseLabel2} @TRUCK_15963 {caseNum3} 3 {caseLabel3} @TRUCK_15997 {caseNum4} -1 {caseLabel4} @TRUCK_16046 {caseNum5} -1 {caseLabel5} @TRUCK_16046 {caseNum6} -1 {caseLabel6} @TRUCK_16046 {caseNum7} -1 {caseLabel7} @TRUCK_16046

:TRUCK_15929
if 
  not has_model_loaded 514
goto_if_false @TRUCK_15956
wait 0
goto @TRUCK_15929

:TRUCK_15956
goto @TRUCK_16046

:TRUCK_15963
if 
  not has_model_loaded 403
goto_if_false @TRUCK_15990
wait 0
goto @TRUCK_15963

:TRUCK_15990
goto @TRUCK_16046

:TRUCK_15997
if 
  not has_model_loaded 515
goto_if_false @TRUCK_16024
wait 0
goto @TRUCK_15997

:TRUCK_16024
goto @TRUCK_16046

:TRUCK_16031
write_debug "UNKNOWN_CAB"

:TRUCK_16046
switch_start 96@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @TRUCK_16245 {caseNum1} 1 {caseLabel1} @TRUCK_16109 {caseNum2} 2 {caseLabel2} @TRUCK_16143 {caseNum3} 3 {caseLabel3} @TRUCK_16177 {caseNum4} 4 {caseLabel4} @TRUCK_16211 {caseNum5} -1 {caseLabel5} @TRUCK_16264 {caseNum6} -1 {caseLabel6} @TRUCK_16264 {caseNum7} -1 {caseLabel7} @TRUCK_16264

:TRUCK_16109
if 
  not has_model_loaded 584
goto_if_false @TRUCK_16136
wait 0
goto @TRUCK_16109

:TRUCK_16136
goto @TRUCK_16264

:TRUCK_16143
if 
  not has_model_loaded 435
goto_if_false @TRUCK_16170
wait 0
goto @TRUCK_16143

:TRUCK_16170
goto @TRUCK_16264

:TRUCK_16177
if 
  not has_model_loaded 450
goto_if_false @TRUCK_16204
wait 0
goto @TRUCK_16177

:TRUCK_16204
goto @TRUCK_16264

:TRUCK_16211
if 
  not has_model_loaded 591
goto_if_false @TRUCK_16238
wait 0
goto @TRUCK_16211

:TRUCK_16238
goto @TRUCK_16264

:TRUCK_16245
write_debug "UNKNOWN_TRAILER"

:TRUCK_16264
return 

:TRUCK_16266
return 

:TRUCK_16268
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
switch_start 89@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @TRUCK_16462 {caseNum1} 1 {caseLabel1} @TRUCK_16347 {caseNum2} 2 {caseLabel2} @TRUCK_16370 {caseNum3} 3 {caseLabel3} @TRUCK_16393 {caseNum4} 4 {caseLabel4} @TRUCK_16416 {caseNum5} 5 {caseLabel5} @TRUCK_16439 {caseNum6} -1 {caseLabel6} @TRUCK_16462 {caseNum7} -1 {caseLabel7} @TRUCK_16462

:TRUCK_16347
print_now 'TRK_F1' {time} 5000 {flag} 1
goto @TRUCK_16462

:TRUCK_16370
print_now 'TRK_F2' {time} 5000 {flag} 1
goto @TRUCK_16462

:TRUCK_16393
print_now 'TRK_F3' {time} 5000 {flag} 1
goto @TRUCK_16462

:TRUCK_16416
print_now 'TRK_F4' {time} 5000 {flag} 1
goto @TRUCK_16462

:TRUCK_16439
print_now 'TRK_F5' {time} 5000 {flag} 1
goto @TRUCK_16462

:TRUCK_16462
return 

:TRUCK_16464
gosub @TRUCK_7438
print_with_number_big 'M_PASS' {num} 83@ {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 83@
clear_onscreen_counter $g_Truck_cashKM
$g_nTruckMissionsPassed += 1
if 
  $g_nTruckMissionsPassed == 1
goto_if_false @TRUCK_16551
print_now 'TRK_P1' {time} 5000 {flag} 1
goto @TRUCK_16653

:TRUCK_16551
if 
  $g_nTruckMissionsPassed == 8
goto_if_false @TRUCK_16634
if 
  $done_truck_progress == 0
goto_if_false @TRUCK_16611
register_oddjob_mission_passed 
player_made_progress 1
play_mission_passed_tune 2
$done_truck_progress = 1
114@ = 1

:TRUCK_16611
print_big 'TRK_P4' {time} 5000 {style} TextStyle.MiddleSmaller
goto @TRUCK_16653

:TRUCK_16634
print_with_number_now 'TRK_P3' {num} $g_nTruckMissionsPassed {duration} 5000 {flag} 1

:TRUCK_16653
increment_int_stat_no_message StatId.TruckMissionsPassed {value} 1
increment_int_stat_no_message StatId.TruckMoneyMade {value} 83@
return 

:TRUCK_16670
clear_wanted_level $player1
return 

:TRUCK_16677
mark_car_as_no_longer_needed 74@
mark_car_as_no_longer_needed 75@
remove_blip 77@
remove_blip 76@
remove_blip 78@
remove_blip 79@
clear_onscreen_counter $g_Truck_cashKM
clear_onscreen_counter $g_Truck_damageKM
clear_onscreen_timer $g_Truck_timedKM
mark_model_as_no_longer_needed 514
mark_model_as_no_longer_needed 403
mark_model_as_no_longer_needed 515
mark_model_as_no_longer_needed 584
mark_model_as_no_longer_needed 435
mark_model_as_no_longer_needed 450
mark_model_as_no_longer_needed 591
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
switch_emergency_services True
$timer_mobile_start = get_game_timer 
draw_oddjob_title_before_fade True
$flag_player_on_oddjob = 0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 118---------------
// Originally: Quarry

:QUARRY
script_name 'QUARRY'
gosub @QUARRY_47
if 
  has_deatharrest_been_executed 
goto_if_false @QUARRY_38
gosub @QUARRY_25912

:QUARRY_38
gosub @QUARRY_27546
terminate_this_script 

:QUARRY_47
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_67
register_mission_given 

:QUARRY_67
$onmission = 1
$flag_player_on_oddjob = 1
82@ = 0
83@ = 0
84@ = 0
34@ = 0
35@ = 0
36@ = 0
37@ = 0
38@ = 0
39@ = 0
40@ = 0
45@ = 0
46@ = 0
47@ = 0
TIMERA = 0
TIMERB = 0
230@ = 0
231@ = 0
233@ = 0
234@ = 0
235@ = 0
236@ = 0
238@ = 0
239@ = 0
240@ = 0
241@ = 0
242@ = 0
243@ = 0
251@ = 0
252@ = 0
262@ = 0
263@ = 0
264@ = 0
265@ = 0
266@ = 0
267@ = 0
278@ = 0
279@ = 0
280@ = 0
281@ = 0
282@ = 0
283@ = 0
284@ = 0
292@ = 0
293@ = 0
294@ = 0
295@ = 0
if 
  34@ == -99
goto_if_false @QUARRY_1311
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
86@ = create_car 468 {x} 0.0 {y} 0.0 {z} 0.0
87@ = create_car 486 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_car 406 {x} 0.0 {y} 0.0 {z} 0.0
89@ = create_car 523 {x} 0.0 {y} 0.0 {z} 0.0
91@ = create_car 406 {x} 0.0 {y} 0.0 {z} 0.0
85@ = create_char PedType.CivMale {modelId} 18 {x} 0.0 {y} 0.0 {z} 0.0
92@ = create_object #DEAD_TIED_COP {x} 0.0 {y} 0.0 {z} 0.0
93@ = create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0
121@ = create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0
48@ = 0

:QUARRY_679
create_object #DYN_QUARRYROCK03 {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 94@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_679
48@ = 0

:QUARRY_734
create_object #KB_BARREL {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 101@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_734
48@ = 0

:QUARRY_789
create_object #DEAD_TIED_COP {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 111@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_789
48@ = 0

:QUARRY_844
create_object #CM_BOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 114@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_844
90@ = create_mission_train 11 {x} 0.0 {y} 0.0 {z} 0.0 {direction} False
48@ = 0

:QUARRY_923
create_checkpoint CheckpointType.Tube {x} 0.0 {y} 0.0 {z} 0.0 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 0.0 {var_handle} 190@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_923
48@ = 0

:QUARRY_997
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 122@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_997
197@ = create_checkpoint CheckpointType.Tube {x} 0.0 {y} 0.0 {z} 0.0 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 0.0
125@ = add_blip_for_car 87@
126@ = add_blip_for_car 88@
130@ = add_blip_for_car 89@
141@ = add_blip_for_car 90@
152@ = add_blip_for_car 91@
127@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
128@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
131@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
132@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
129@ = add_blip_for_object 92@
140@ = add_blip_for_object 101@
48@ = 0

:QUARRY_1230
add_blip_for_object 94@(48@,7i) {var_handle} 133@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_1230
48@ = 0

:QUARRY_1274
add_blip_for_object 101@(48@,10i) {var_handle} 142@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_1274

:QUARRY_1311
load_mission_text 'QUARRY'
if 
  not is_char_dead $scplayer
goto_if_false @QUARRY_1424
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @QUARRY_1424
print_now 'VAL_C1' {time} 5000 {flag} 1
set_char_coordinates $scplayer {x} 827.9296 {y} 857.7913 {z} 11.311
set_char_heading $scplayer {heading} 120.0
set_camera_behind_player 
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In
draw_oddjob_title_before_fade True
return 

:QUARRY_1424
gosub @QUARRY_21090

:QUARRY_1431
wait 0
if and
  34@ <> 18
  34@ <> 19
goto_if_false @QUARRY_1701
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @QUARRY_1525
set_lvar_int_to_var_int 50@ = $g_Quarry_recordsKM($g_nQuarryMissionsPassed,7i)
50@ *= 1000
set_lvar_int_to_lvar_int 206@ = 46@
sub_int_lvar_from_int_lvar 206@ -= 50@
36@ = 1
goto @QUARRY_2224

:QUARRY_1525
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_1701
if 
  292@ == 1
goto_if_false @QUARRY_1677
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @QUARRY_1670
38@ = 1
print_now 'QUAR_37' {time} 5000 {flag} 1
print_big 'SKIPPED' {time} 5000 {style} TextStyle.MiddleSmallerHigher
$g_nQuarryMissionsPassed += 1
if 
  $g_nQuarryMissionsPassed == 7
goto_if_false @QUARRY_1649
$g_nQuarryMissionsPassed = 0

:QUARRY_1649
switch_car_generator $gen_car1 {amount} 101
switch_car_generator $gen_car2 {amount} 101
goto @QUARRY_2224

:QUARRY_1670
goto @QUARRY_1701

:QUARRY_1677
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @QUARRY_1701
292@ = 1

:QUARRY_1701
gosub @QUARRY_20409
gosub @QUARRY_20898
if or
  38@ == 1
  39@ == 1
goto_if_false @QUARRY_1747
goto @QUARRY_2224

:QUARRY_1747
gosub @QUARRY_20987
gosub @QUARRY_21021
if 
  is_char_dead $scplayer
goto_if_false @QUARRY_1791
37@ = 1
goto @QUARRY_2224

:QUARRY_1791
if 
  34@ == 0
goto_if_false @QUARRY_1849
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:QUARRY_1849
switch_start 34@ {numCases} 19 {hasDefaultCase} 0 {defaultLabel} @QUARRY_2224 {caseNum1} 1 {caseLabel1} @QUARRY_2126 {caseNum2} 2 {caseLabel2} @QUARRY_2140 {caseNum3} 3 {caseLabel3} @QUARRY_2154 {caseNum4} 4 {caseLabel4} @QUARRY_2182 {caseNum5} 5 {caseLabel5} @QUARRY_2042 {caseNum6} 6 {caseLabel6} @QUARRY_2182 {caseNum7} 7 {caseLabel7} @QUARRY_2056
switch_continued 8 {caseLabel1} @QUARRY_2182 {caseNum2} 9 {caseLabel2} @QUARRY_2070 {caseNum3} 10 {caseLabel3} @QUARRY_2084 {caseNum4} 11 {caseLabel4} @QUARRY_2182 {caseNum5} 12 {caseLabel5} @QUARRY_2098 {caseNum6} 13 {caseLabel6} @QUARRY_2182 {caseNum7} 14 {caseLabel7} @QUARRY_2112 {caseNum8} 15 {caseLabel8} @QUARRY_2182 {caseNum9} 16 {caseLabel9} @QUARRY_2168
switch_continued 17 {caseLabel1} @QUARRY_2182 {caseNum2} 18 {caseLabel2} @QUARRY_2196 {caseNum3} 19 {caseLabel3} @QUARRY_2210 {caseNum4} -1 {caseLabel4} @QUARRY_2224 {caseNum5} -1 {caseLabel5} @QUARRY_2224 {caseNum6} -1 {caseLabel6} @QUARRY_2224 {caseNum7} -1 {caseLabel7} @QUARRY_2224 {caseNum8} -1 {caseLabel8} @QUARRY_2224 {caseNum9} -1 {caseLabel9} @QUARRY_2224

:QUARRY_2042
gosub @QUARRY_6252
goto @QUARRY_2224

:QUARRY_2056
gosub @QUARRY_8986
goto @QUARRY_2224

:QUARRY_2070
gosub @QUARRY_11447
goto @QUARRY_2224

:QUARRY_2084
gosub @QUARRY_11875
goto @QUARRY_2224

:QUARRY_2098
gosub @QUARRY_13354
goto @QUARRY_2224

:QUARRY_2112
gosub @QUARRY_15693
goto @QUARRY_2224

:QUARRY_2126
gosub @QUARRY_2425
goto @QUARRY_2224

:QUARRY_2140
gosub @QUARRY_3641
goto @QUARRY_2224

:QUARRY_2154
gosub @QUARRY_4711
goto @QUARRY_2224

:QUARRY_2168
gosub @QUARRY_17197
goto @QUARRY_2224

:QUARRY_2182
36@ = 1
goto @QUARRY_2224

:QUARRY_2196
gosub @QUARRY_18899
goto @QUARRY_2224

:QUARRY_2210
38@ = 1
goto @QUARRY_2224

:QUARRY_2224
if 
  38@ == 0
goto_if_false @QUARRY_2377
if 
  37@ == 0
goto_if_false @QUARRY_2361
if 
  36@ == 0
goto_if_false @QUARRY_2292
goto @QUARRY_1431
goto @QUARRY_2354

:QUARRY_2292
gosub @QUARRY_26382
if 
  295@ == 1
goto_if_false @QUARRY_2352
36@ = 0
34@ = 18
35@ = 0
295@ = 0
goto @QUARRY_1431

:QUARRY_2352
return 

:QUARRY_2354
goto @QUARRY_2370

:QUARRY_2361
gosub @QUARRY_25912
return 

:QUARRY_2370
goto @QUARRY_2379

:QUARRY_2377
return 

:QUARRY_2379
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:QUARRY_2425
if 
  is_car_dead 87@
goto_if_false @QUARRY_2457
37@ = 1
45@ = 1
return 

:QUARRY_2457
if 
  is_car_dead 88@
goto_if_false @QUARRY_2489
37@ = 1
45@ = 2
return 

:QUARRY_2489
if 
  not is_car_dead 89@
goto_if_false @QUARRY_2513
set_car_health 89@ {health} 10000

:QUARRY_2513
if 
  35@ == 0
goto_if_false @QUARRY_2722
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
230@ = 0
233@ = 0
234@ = 0
282@ = 0
212@ = 672.7664
213@ = 888.3682
214@ = -41.3985
print_now 'QUAR_00' {time} 10000 {flag} 1
50@ = 7
50@ -= 1
set_var_int_to_var_int $g_Quarry_timerKM = $g_Quarry_recordsKM(50@,7i)
$g_Quarry_timerKM *= 1000
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D1'
set_lvar_int_to_lvar_int 206@ = 46@
if 
  not is_car_dead 89@
goto_if_false @QUARRY_2701
set_vehicle_is_considered_by_player 89@ {state} False

:QUARRY_2701
winch_can_pick_vehicle_up 88@ {state} False
winch_can_pick_vehicle_up 87@ {state} False
35@ += 1

:QUARRY_2722
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_2756
37@ = 1
45@ = 4
return 

:QUARRY_2756
if 
  35@ == 1
goto_if_false @QUARRY_2819
if 
  230@ == 1
goto_if_false @QUARRY_2819
remove_blip 128@
remove_blip 125@
remove_blip 129@
remove_blip 130@
35@ = 99

:QUARRY_2819
if 
  230@ == 0
goto_if_false @QUARRY_3030
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_2968
if 
  does_blip_exist 125@
goto_if_false @QUARRY_2961
remove_blip 125@
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
clear_this_print 'QUAR_35'
if 
  234@ == 0
goto_if_false @QUARRY_2928
129@ = add_blip_for_object 92@

:QUARRY_2928
if 
  233@ == 0
goto_if_false @QUARRY_2961
130@ = add_blip_for_car 89@
change_blip_colour 130@ {color} BlipColor.Green

:QUARRY_2961
goto @QUARRY_3030

:QUARRY_2968
if 
  not does_blip_exist 125@
goto_if_false @QUARRY_3030
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
remove_blip 128@
remove_blip 129@
remove_blip 130@
print_now 'QUAR_35' {time} 5000 {flag} 1

:QUARRY_3030
if 
  232@ == 0
goto_if_false @QUARRY_3098
if or
  is_char_in_car $scplayer {vehicle} 89@
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_3098
232@ = 1
print_now 'QUAR_02' {time} 7000 {flag} 1

:QUARRY_3098
if 
  230@ == 0
goto_if_false @QUARRY_3614
if 
  233@ == 0
goto_if_false @QUARRY_3279
if 
  locate_car_3d 89@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 4.0 {drawSphere} 232@
goto_if_false @QUARRY_3279
if 
  locate_car_3d 89@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3279
233@ = 1
remove_blip 130@
freeze_car_position 89@ {state} True
set_car_collision 89@ {state} False
if 
  234@ == 0
goto_if_false @QUARRY_3279
print_now 'QUAR_03' {time} 5000 {flag} 1

:QUARRY_3279
if 
  234@ == 0
goto_if_false @QUARRY_3559
if 
  233@ == 1
goto_if_false @QUARRY_3433
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 4.0 {drawSphere} 232@
goto_if_false @QUARRY_3426
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3426
234@ = 1
remove_blip 129@
freeze_object_position 92@ {state} True
set_object_collision 92@ {state} False

:QUARRY_3426
goto @QUARRY_3559

:QUARRY_3433
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3559
if 
  locate_object_3d 92@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_3559
234@ = 1
remove_blip 129@
freeze_object_position 92@ {state} True
set_object_collision 92@ {state} False
print_now 'QUAR_04' {time} 5000 {flag} 1

:QUARRY_3559
if and
  234@ == 1
  233@ == 1
goto_if_false @QUARRY_3614
230@ = 1
print_now 'QUAR_05' {time} 5000 {flag} 1
282@ = 1

:QUARRY_3614
if 
  35@ == 99
goto_if_false @QUARRY_3639
gosub @QUARRY_21060

:QUARRY_3639
return 

:QUARRY_3641
if 
  is_car_dead 87@
goto_if_false @QUARRY_3673
37@ = 1
45@ = 1
return 

:QUARRY_3673
if 
  is_car_dead 88@
goto_if_false @QUARRY_3705
37@ = 1
45@ = 2
return 

:QUARRY_3705
if 
  not is_car_dead 89@
goto_if_false @QUARRY_3729
set_car_health 89@ {health} 10000

:QUARRY_3729
if 
  35@ == 0
goto_if_false @QUARRY_3809
231@ = 0
233@ = 0
234@ = 0
127@ = add_blip_for_coord 705.1055 {y} 916.3154 {z} -19.6407
set_blip_as_friendly 127@ {state} True
240@ = 1
35@ += 1

:QUARRY_3809
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_3843
37@ = 1
45@ = 4
return 

:QUARRY_3843
if 
  35@ == 1
goto_if_false @QUARRY_3898
if 
  231@ == 1
goto_if_false @QUARRY_3898
remove_blip 126@
set_car_heavy 88@ {state} True
35@ = 99

:QUARRY_3898
if 
  not is_object_attached 93@
goto_if_false @QUARRY_3952
attach_object_to_car 93@ {handle} 88@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:QUARRY_3952
if 
  231@ == 0
goto_if_false @QUARRY_4503
59@, 60@, 61@ = get_object_coordinates 93@
53@, 54@, 55@ = grab_entity_on_rope_for_object $quarry_arm
if 
  234@ == 0
goto_if_false @QUARRY_4143
if 
  locate_object_3d 92@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 3.2 {yRadius} 3.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRY_4136
if 
  is_object_attached 92@
goto_if_false @QUARRY_4136
if 
  not is_int_lvar_equal_to_int_lvar 55@ == 92@
goto_if_false @QUARRY_4114
234@ = 1
winch_can_pick_object_up 92@ {state} False
goto @QUARRY_4136

:QUARRY_4114
detach_object 92@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_4136
goto @QUARRY_4238

:QUARRY_4143
if 
  not is_object_attached 92@
goto_if_false @QUARRY_4238
59@, 60@, 61@ = get_object_coordinates 92@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_4238
234@ = 0
winch_can_pick_object_up 92@ {state} True

:QUARRY_4238
if 
  233@ == 0
goto_if_false @QUARRY_4376
if 
  locate_stopped_car_3d 89@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 3.2 {yRadius} 3.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRY_4369
if 
  not is_int_lvar_equal_to_int_lvar 53@ == 89@
goto_if_false @QUARRY_4369
attach_car_to_car 89@ {handle} 88@ {xOffset} -1000.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
233@ = 1
winch_can_pick_vehicle_up 89@ {state} False

:QUARRY_4369
goto @QUARRY_4471

:QUARRY_4376
if 
  not is_vehicle_attached 89@
goto_if_false @QUARRY_4471
59@, 60@, 61@ = get_car_coordinates 89@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_4471
233@ = 0
winch_can_pick_vehicle_up 89@ {state} True

:QUARRY_4471
if and
  234@ == 1
  233@ == 1
goto_if_false @QUARRY_4503
231@ = 1

:QUARRY_4503
if 
  240@ == 1
goto_if_false @QUARRY_4612
if 
  locate_char_any_means_3d $scplayer {x} 705.1055 {y} 916.3154 {z} -19.6407 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.2 {drawSphere} False
goto_if_false @QUARRY_4612
remove_blip 127@
240@ = 0
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_06' {time} 7000 {flag} 1

:QUARRY_4612
if 
  282@ == 1
goto_if_false @QUARRY_4684
if 
  not is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_4684
freeze_object_position 92@ {state} False
set_object_collision 92@ {state} True
freeze_car_position 89@ {state} False
set_car_collision 89@ {state} True
282@ = 0

:QUARRY_4684
if 
  35@ == 99
goto_if_false @QUARRY_4709
gosub @QUARRY_21060

:QUARRY_4709
return 

:QUARRY_4711
if 
  is_car_dead 88@
goto_if_false @QUARRY_4743
37@ = 1
45@ = 2
return 

:QUARRY_4743
if 
  not is_car_dead 89@
goto_if_false @QUARRY_4767
set_car_health 89@ {health} 10000

:QUARRY_4767
if 
  35@ == 0
goto_if_false @QUARRY_4894
212@ = 985.1581
213@ = 688.4734
214@ = 8.7255
gosub @QUARRY_19761
236@ = 0
235@ = 0
242@ = 0
280@ = 0
281@ = 0
284@ = 0
172@ = 0
print_now 'QUAR_07' {time} 5000 {flag} 1
35@ += 1

:QUARRY_4894
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_4928
37@ = 1
45@ = 4
return 

:QUARRY_4928
if 
  235@ == 0
goto_if_false @QUARRY_5136
if 
  not is_vehicle_attached 89@
goto_if_false @QUARRY_5041
59@, 60@, 61@ = get_car_coordinates 89@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_5041
37@ = 1
45@ = 3

:QUARRY_5041
if 
  not is_object_attached 92@
goto_if_false @QUARRY_5136
59@, 60@, 61@ = get_object_coordinates 92@
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.5 > 76@
goto_if_false @QUARRY_5136
37@ = 1
45@ = 3

:QUARRY_5136
if 
  35@ == 1
goto_if_false @QUARRY_5208
if 
  236@ == 1
goto_if_false @QUARRY_5208
if 
  is_int_lvar_greater_than_int_lvar 46@ > 172@
goto_if_false @QUARRY_5208
remove_blip 128@
delete_checkpoint 197@
35@ = 99

:QUARRY_5208
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_5373
if 
  does_blip_exist 126@
goto_if_false @QUARRY_5359
remove_blip 126@
clear_this_print 'QUAR_36'
if 
  238@ == 1
goto_if_false @QUARRY_5291
gosub @QUARRY_19761
goto @QUARRY_5359

:QUARRY_5291
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
set_lvar_float_to_lvar_float 75@ = 213@
75@ -= 5.0
197@ = create_checkpoint CheckpointType.Tube {x} 212@ {y} 75@ {z} 214@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0

:QUARRY_5359
284@ = 1
goto @QUARRY_5453

:QUARRY_5373
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_5453
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
remove_blip 128@
delete_checkpoint 197@
remove_blip 131@
if 
  284@ == 1
goto_if_false @QUARRY_5453
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_5453
if 
  242@ == 0
goto_if_false @QUARRY_5513
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_5513
print_now 'QUAR_08' {time} 7000 {flag} 1
242@ = 1

:QUARRY_5513
if 
  does_blip_exist 131@
goto_if_false @QUARRY_5698
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
if 
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} False
goto_if_false @QUARRY_5698
remove_blip 131@
238@ = 0
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
set_lvar_float_to_lvar_float 75@ = 213@
75@ -= 5.0
197@ = create_checkpoint CheckpointType.Tube {x} 212@ {y} 75@ {z} 214@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0
print_now 'QUAR_09' {time} 5000 {flag} 1

:QUARRY_5698
if 
  235@ == 0
goto_if_false @QUARRY_5790
if 
  locate_car_3d 88@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 50.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @QUARRY_5783
235@ = 1
print_help 'QUAR_H4'
goto @QUARRY_5790

:QUARRY_5783
235@ = 0

:QUARRY_5790
if 
  235@ == 1
goto_if_false @QUARRY_5913
75@ = get_car_moving_component_offset 88@
if 
  75@ > 0.05
goto_if_false @QUARRY_5913
if 
  is_vehicle_attached 89@
goto_if_false @QUARRY_5875
detach_car 89@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_5875
if 
  is_object_attached 92@
goto_if_false @QUARRY_5913
detach_object 92@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_5913
if 
  280@ == 0
goto_if_false @QUARRY_5954
if 
  is_car_in_water 89@
goto_if_false @QUARRY_5954
280@ = 1

:QUARRY_5954
if 
  281@ == 0
goto_if_false @QUARRY_5995
if 
  is_object_in_water 92@
goto_if_false @QUARRY_5995
281@ = 1

:QUARRY_5995
if 
  236@ == 0
goto_if_false @QUARRY_6061
if and
  280@ == 1
  281@ == 1
goto_if_false @QUARRY_6061
236@ = 1
set_lvar_int_to_lvar_int 172@ = 46@
172@ += 2000

:QUARRY_6061
if 
  not is_object_attached 93@
goto_if_false @QUARRY_6115
attach_object_to_car 93@ {handle} 88@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:QUARRY_6115
if 
  not is_vehicle_attached 89@
goto_if_false @QUARRY_6225
59@, 60@, 61@ = get_object_coordinates 93@
if 
  locate_stopped_car_3d 89@ {x} 59@ {y} 60@ {z} 61@ {xRadius} 3.2 {yRadius} 3.2 {zRadius} 1.5 {drawSphere} False
goto_if_false @QUARRY_6225
attach_car_to_car 89@ {handle} 88@ {xOffset} -1000.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0

:QUARRY_6225
if 
  35@ == 99
goto_if_false @QUARRY_6250
gosub @QUARRY_21060

:QUARRY_6250
return 

:QUARRY_6252
if 
  is_car_dead 87@
goto_if_false @QUARRY_6284
37@ = 1
45@ = 1
return 

:QUARRY_6284
if 
  35@ == 0
goto_if_false @QUARRY_6462
199@ = 0
48@ = 0

:QUARRY_6316
244@(48@,7i) = 0
285@(48@,7i) = 0
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6316
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_11' {time} 10000 {flag} 1
50@ = 1
50@ -= 1
set_var_int_to_var_int $g_Quarry_timerKM = $g_Quarry_recordsKM(50@,7i)
$g_Quarry_timerKM *= 1000
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D2'
set_lvar_int_to_lvar_int 206@ = 46@
243@ = 0
35@ += 1

:QUARRY_6462
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_6496
37@ = 1
45@ = 5
return 

:QUARRY_6496
if 
  35@ == 1
goto_if_false @QUARRY_6539
if 
  199@ == 7
goto_if_false @QUARRY_6539
35@ = 99

:QUARRY_6539
if 
  does_blip_exist 125@
goto_if_false @QUARRY_6663
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_6656
remove_blip 125@
clear_this_print 'QUAR_35'
48@ = 0

:QUARRY_6597
if 
  244@(48@,7i) == 0
goto_if_false @QUARRY_6635
add_blip_for_object 94@(48@,7i) {var_handle} 133@(48@,7i)

:QUARRY_6635
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6597

:QUARRY_6656
goto @QUARRY_8899

:QUARRY_6663
if 
  not is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_6757
48@ = 0

:QUARRY_6689
remove_blip 133@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6689
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_35' {time} 5000 {flag} 1
goto @QUARRY_8899

:QUARRY_6757
59@, 60@, 61@ = get_char_coordinates $scplayer
48@ = 0

:QUARRY_6778
80@ = 0
if 
  244@(48@,7i) == 0
goto_if_false @QUARRY_8878
switch_start 48@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @QUARRY_8662 {caseNum1} 0 {caseLabel1} @QUARRY_6870 {caseNum2} 1 {caseLabel2} @QUARRY_7126 {caseNum3} 2 {caseLabel3} @QUARRY_7382 {caseNum4} 3 {caseLabel4} @QUARRY_7638 {caseNum5} 4 {caseLabel5} @QUARRY_7894 {caseNum6} 5 {caseLabel6} @QUARRY_8150 {caseNum7} 6 {caseLabel7} @QUARRY_8406

:QUARRY_6870
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_7077
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7011
create_checkpoint CheckpointType.Tube {x} 762.119 {y} 836.6474 {z} -3.4382 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7011
if 
  locate_object_3d 94@(48@,7i) {x} 762.119 {y} 836.6474 {z} -5.4382 {xRadius} 15.0 {yRadius} 35.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_7070
80@ = 1

:QUARRY_7070
goto @QUARRY_7119

:QUARRY_7077
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7119
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7119
goto @QUARRY_8680

:QUARRY_7126
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  50.0 > 78@
goto_if_false @QUARRY_7333
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7267
create_checkpoint CheckpointType.Tube {x} 735.8682 {y} 933.0437 {z} -4.3942 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7267
if 
  locate_object_3d 94@(48@,7i) {x} 735.8682 {y} 933.0437 {z} -4.3942 {xRadius} 20.0 {yRadius} 30.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_7326
80@ = 1

:QUARRY_7326
goto @QUARRY_7375

:QUARRY_7333
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7375
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7375
goto @QUARRY_8680

:QUARRY_7382
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_7589
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7523
create_checkpoint CheckpointType.Tube {x} 518.9683 {y} 967.7642 {z} -25.891 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7523
if 
  locate_object_3d 94@(48@,7i) {x} 518.9683 {y} 967.7642 {z} -17.891 {xRadius} 45.0 {yRadius} 20.0 {zRadius} 9.0 {drawSphere} False
goto_if_false @QUARRY_7582
80@ = 1

:QUARRY_7582
goto @QUARRY_7631

:QUARRY_7589
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7631
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7631
goto @QUARRY_8680

:QUARRY_7638
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_7845
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_7779
create_checkpoint CheckpointType.Tube {x} 671.3267 {y} 941.1938 {z} -29.338 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_7779
if 
  locate_object_3d 94@(48@,7i) {x} 671.3267 {y} 941.1938 {z} -29.338 {xRadius} 25.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_7838
80@ = 1

:QUARRY_7838
goto @QUARRY_7887

:QUARRY_7845
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_7887
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_7887
goto @QUARRY_8680

:QUARRY_7894
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_8101
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8035
create_checkpoint CheckpointType.Tube {x} 523.2235 {y} 907.1995 {z} -43.4101 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_8035
if 
  locate_object_3d 94@(48@,7i) {x} 523.2235 {y} 907.1995 {z} -40.4101 {xRadius} 35.0 {yRadius} 25.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_8094
80@ = 1

:QUARRY_8094
goto @QUARRY_8143

:QUARRY_8101
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8143
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8143
goto @QUARRY_8680

:QUARRY_8150
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  30.0 > 78@
goto_if_false @QUARRY_8357
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8291
create_checkpoint CheckpointType.Tube {x} 536.8022 {y} 838.0778 {z} -38.2296 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_8291
if 
  locate_object_3d 94@(48@,7i) {x} 536.8022 {y} 838.0778 {z} -38.2296 {xRadius} 25.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_8350
80@ = 1

:QUARRY_8350
goto @QUARRY_8399

:QUARRY_8357
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8399
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8399
goto @QUARRY_8680

:QUARRY_8406
62@, 63@, 64@ = get_object_coordinates 94@(48@,7i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  50.0 > 78@
goto_if_false @QUARRY_8613
if 
  285@(48@,7i) == 0
goto_if_false @QUARRY_8547
create_checkpoint CheckpointType.Tube {x} 645.2571 {y} 773.7028 {z} -28.2457 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 5.0 {var_handle} 190@(48@,7i)
285@(48@,7i) = 1

:QUARRY_8547
if 
  locate_object_3d 94@(48@,7i) {x} 645.2571 {y} 773.7028 {z} -26.2457 {xRadius} 35.0 {yRadius} 20.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @QUARRY_8606
80@ = 1

:QUARRY_8606
goto @QUARRY_8655

:QUARRY_8613
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8655
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8655
goto @QUARRY_8680

:QUARRY_8662
write_debug "TOO_MANY_ROCKS"

:QUARRY_8680
if 
  80@ == 1
goto_if_false @QUARRY_8878
remove_blip 133@(48@,7i)
delete_object 94@(48@,7i)
if 
  285@(48@,7i) == 1
goto_if_false @QUARRY_8758
delete_checkpoint 190@(48@,7i)
285@(48@,7i) = 0

:QUARRY_8758
244@(48@,7i) = 1
199@ += 1
50@ = 7
sub_int_lvar_from_int_lvar 50@ -= 199@
if 
  50@ <> 0
goto_if_false @QUARRY_8878
if 
  199@ == 1
goto_if_false @QUARRY_8856
print_with_2_numbers_now 'QUAR_14' {num1} 199@ {num2} 50@ {duration} 5000 {style} TextStyle.Middle
goto @QUARRY_8878

:QUARRY_8856
print_with_2_numbers_now 'QUAR_13' {num1} 199@ {num2} 50@ {duration} 5000 {style} TextStyle.Middle

:QUARRY_8878
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_6778

:QUARRY_8899
if 
  243@ == 0
goto_if_false @QUARRY_8959
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_8959
print_now 'QUAR_12' {time} 7000 {flag} 1
243@ = 1

:QUARRY_8959
if 
  35@ == 99
goto_if_false @QUARRY_8984
gosub @QUARRY_21060

:QUARRY_8984
return 

:QUARRY_8986
if 
  is_car_dead 87@
goto_if_false @QUARRY_9018
37@ = 1
45@ = 1
return 

:QUARRY_9018
if 
  35@ == 0
goto_if_false @QUARRY_9242
204@ = 0
48@ = 0

:QUARRY_9050
253@(48@,4i) = 0
257@(48@,4i) = 0
178@(48@,4i) = 0
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_9050
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_15' {time} 10000 {flag} 1
set_var_int_to_lvar_int $g_Quarry_timerKM = 174@
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D3'
set_lvar_int_to_lvar_int 206@ = 46@
48@ = 0

:QUARRY_9174
add_int_lvar_to_int_lvar 174@(48@,4i) += 46@
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_9174
251@ = 0
252@ = 0
261@ = 0
243@ = 0
35@ += 1

:QUARRY_9242
if 
  35@ == 1
goto_if_false @QUARRY_9408
if 
  252@ == 1
goto_if_false @QUARRY_9408
59@, 60@, 61@ = get_char_coordinates $scplayer
50@ = 4
50@ -= 1
62@, 63@, 64@ = get_object_coordinates 101@(50@,10i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  78@ > 20.0
goto_if_false @QUARRY_9408
add_explosion 62@ {y} 63@ {z} 64@ {type} ExplosionType.Aircraft
delete_object 101@(50@,10i)
253@(50@,4i) = 1
35@ = 99

:QUARRY_9408
if 
  does_blip_exist 125@
goto_if_false @QUARRY_9466
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_9459
remove_blip 125@
clear_this_print 'QUAR_35'

:QUARRY_9459
goto @QUARRY_9533

:QUARRY_9466
if 
  not is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_9533
remove_blip 140@
remove_blip 128@
251@ = 0
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_35' {time} 5000 {flag} 1

:QUARRY_9533
if 
  252@ == 0
goto_if_false @QUARRY_10787
80@ = 0
switch_start 204@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @QUARRY_10048 {caseNum1} 0 {caseLabel1} @QUARRY_9621 {caseNum2} 1 {caseLabel2} @QUARRY_9687 {caseNum3} 2 {caseLabel3} @QUARRY_9916 {caseNum4} 3 {caseLabel4} @QUARRY_9982 {caseNum5} -1 {caseLabel5} @QUARRY_10067 {caseNum6} -1 {caseLabel6} @QUARRY_10067 {caseNum7} -1 {caseLabel7} @QUARRY_10067

:QUARRY_9621
if 
  locate_object_3d 101@(204@,10i) {x} 830.4274 {y} 889.852 {z} 12.3516 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9680
80@ = 1

:QUARRY_9680
goto @QUARRY_10067

:QUARRY_9687
if 
  261@ == 0
goto_if_false @QUARRY_9850
if 
  locate_object_3d 101@(204@,10i) {x} 678.5786 {y} 981.4282 {z} -13.749 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9764
80@ = 1

:QUARRY_9764
59@, 60@, 61@ = get_object_coordinates 101@(204@,10i)
if 
  -23.6787 > 61@
goto_if_false @QUARRY_9843
261@ = 1
remove_blip 140@
remove_blip 128@
251@ = 0
print_now 'QUAR_21' {time} 7000 {flag} 1

:QUARRY_9843
goto @QUARRY_9909

:QUARRY_9850
if 
  locate_object_3d 101@(204@,10i) {x} 660.666 {y} 913.719 {z} -41.4059 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9909
80@ = 1

:QUARRY_9909
goto @QUARRY_10067

:QUARRY_9916
if 
  locate_object_3d 101@(204@,10i) {x} 648.9208 {y} 916.257 {z} -42.2287 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_9975
80@ = 1

:QUARRY_9975
goto @QUARRY_10067

:QUARRY_9982
if 
  locate_object_3d 101@(204@,10i) {x} 632.4524 {y} 810.3196 {z} -43.9609 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @QUARRY_10041
80@ = 1

:QUARRY_10041
goto @QUARRY_10067

:QUARRY_10048
write_debug "UNKNOWN_BOMB_ID"

:QUARRY_10067
if 
  80@ == 1
goto_if_false @QUARRY_10222
remove_blip 140@
remove_blip 128@
251@ = 0
261@ = 0
freeze_object_position 101@(204@,10i) {state} True
set_object_collision 101@(204@,10i) {state} False
set_lvar_int_to_lvar_int 50@ = 204@
50@ += 1
if 
  50@ == 4
goto_if_false @QUARRY_10215
set_lvar_int_to_lvar_int 51@ = 46@
51@ += 15000
if 
  is_int_lvar_greater_than_int_lvar 174@(204@,4i) > 51@
goto_if_false @QUARRY_10215
set_lvar_int_to_lvar_int 174@(204@,4i) = 51@

:QUARRY_10215
204@ += 1

:QUARRY_10222
if 
  204@ == 4
goto_if_false @QUARRY_10247
252@ = 1

:QUARRY_10247
if 
  80@ == 1
goto_if_false @QUARRY_10324
clear_onscreen_timer $g_Quarry_timerKM
if 
  252@ == 0
goto_if_false @QUARRY_10324
set_var_int_to_lvar_int $g_Quarry_timerKM = 174@(204@,4i)
sub_int_lvar_from_int_var $g_Quarry_timerKM -= 46@
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D3'

:QUARRY_10324
if 
  80@ == 1
goto_if_false @QUARRY_10522
if 
  252@ == 1
goto_if_false @QUARRY_10383
print_now 'QUAR_20' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10383
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_10522 {caseNum1} 0 {caseLabel1} @QUARRY_10446 {caseNum2} 1 {caseLabel2} @QUARRY_10453 {caseNum3} 2 {caseLabel3} @QUARRY_10476 {caseNum4} 3 {caseLabel4} @QUARRY_10499 {caseNum5} -1 {caseLabel5} @QUARRY_10522 {caseNum6} -1 {caseLabel6} @QUARRY_10522 {caseNum7} -1 {caseLabel7} @QUARRY_10522

:QUARRY_10446
goto @QUARRY_10522

:QUARRY_10453
print_now 'QUAR_17' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10476
print_now 'QUAR_18' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10499
print_now 'QUAR_34' {time} 7000 {flag} 1
goto @QUARRY_10522

:QUARRY_10522
if and
  251@ == 0
  252@ == 0
  not does_blip_exist 125@
goto_if_false @QUARRY_10787
140@ = add_blip_for_object 101@(204@,10i)
251@ = 1
switch_start 204@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_10787 {caseNum1} 0 {caseLabel1} @QUARRY_10634 {caseNum2} 1 {caseLabel2} @QUARRY_10661 {caseNum3} 2 {caseLabel3} @QUARRY_10733 {caseNum4} 3 {caseLabel4} @QUARRY_10760 {caseNum5} -1 {caseLabel5} @QUARRY_10787 {caseNum6} -1 {caseLabel6} @QUARRY_10787 {caseNum7} -1 {caseLabel7} @QUARRY_10787

:QUARRY_10634
128@ = add_blip_for_coord 830.4274 {y} 889.852 {z} 12.3516
goto @QUARRY_10787

:QUARRY_10661
if 
  261@ == 0
goto_if_false @QUARRY_10706
128@ = add_blip_for_coord 678.5786 {y} 981.4282 {z} -13.749
goto @QUARRY_10726

:QUARRY_10706
128@ = add_blip_for_coord 660.666 {y} 913.719 {z} -41.4059

:QUARRY_10726
goto @QUARRY_10787

:QUARRY_10733
128@ = add_blip_for_coord 648.9208 {y} 916.257 {z} -42.2287
goto @QUARRY_10787

:QUARRY_10760
128@ = add_blip_for_coord 632.4524 {y} 810.3196 {z} -43.9609
goto @QUARRY_10787

:QUARRY_10787
48@ = 0
set_lvar_int_to_lvar_int 50@ = 204@
if 
  252@ == 1
goto_if_false @QUARRY_10827
50@ -= 1

:QUARRY_10827
if 
  is_int_lvar_greater_or_equal_to_int_lvar 50@ >= 48@
goto_if_false @QUARRY_11360
if 
  253@(48@,4i) == 0
goto_if_false @QUARRY_11265
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
62@, 63@, 64@ = get_car_coordinates 87@
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
65@, 66@, 67@ = get_char_coordinates $scplayer
79@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 65@ {toY} 66@ {toZ} 67@
if 
  not is_int_lvar_equal_to_int_lvar 48@ == 204@
goto_if_false @QUARRY_11033
if and
  78@ > 21.0
  79@ > 21.0
goto_if_false @QUARRY_11033
set_lvar_int_to_lvar_int 174@(48@,4i) = 46@
174@(48@,4i) -= 1

:QUARRY_11033
if 
  is_int_lvar_greater_than_int_lvar 46@ > 174@(48@,4i)
goto_if_false @QUARRY_11258
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.TankFire
delete_object 101@(48@,10i)
253@(48@,4i) = 1
257@(48@,4i) = 0
set_lvar_int_to_lvar_int 178@(48@,4i) = 46@
178@(48@,4i) += 2000
set_lvar_float_to_lvar_float 218@(48@,4f) = 59@
set_lvar_float_to_lvar_float 222@(48@,4f) = 60@
set_lvar_float_to_lvar_float 226@(48@,4f) = 61@
if 
  20.0 > 78@
goto_if_false @QUARRY_11186
explode_car 87@

:QUARRY_11186
if 
  20.0 > 79@
goto_if_false @QUARRY_11223
37@ = 1
45@ = 7
return 

:QUARRY_11223
if 
  is_int_lvar_equal_to_int_lvar 48@ == 204@
goto_if_false @QUARRY_11258
37@ = 1
45@ = 6
return 

:QUARRY_11258
goto @QUARRY_11346

:QUARRY_11265
if 
  257@(48@,4i) == 0
goto_if_false @QUARRY_11346
if 
  is_int_lvar_greater_than_int_lvar 46@ > 178@(48@,4i)
goto_if_false @QUARRY_11346
add_explosion 218@(48@,4f) {y} 222@(48@,4f) {z} 226@(48@,4f) {type} ExplosionType.Object
257@(48@,4i) = 1

:QUARRY_11346
48@ += 1
goto @QUARRY_10827

:QUARRY_11360
if 
  243@ == 0
goto_if_false @QUARRY_11420
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_11420
print_now 'QUAR_16' {time} 7000 {flag} 1
243@ = 1

:QUARRY_11420
if 
  35@ == 99
goto_if_false @QUARRY_11445
gosub @QUARRY_21060

:QUARRY_11445
return 

:QUARRY_11447
if 
  is_car_dead 88@
goto_if_false @QUARRY_11479
37@ = 1
45@ = 2
return 

:QUARRY_11479
if 
  35@ == 0
goto_if_false @QUARRY_11607
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
gosub @QUARRY_19814
print_now 'QUAR_22' {time} 10000 {flag} 1
235@ = 0
50@ = 4
50@ -= 1
set_var_int_to_var_int $g_Quarry_timerKM = $g_Quarry_recordsKM(50@,7i)
$g_Quarry_timerKM *= 1000
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D1'
set_lvar_int_to_lvar_int 206@ = 46@
35@ += 1

:QUARRY_11607
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_11641
37@ = 1
45@ = 4
return 

:QUARRY_11641
if 
  35@ == 1
goto_if_false @QUARRY_11701
if 
  235@ == 1
goto_if_false @QUARRY_11701
remove_blip 132@
239@ = 0
remove_blip 126@
35@ = 99

:QUARRY_11701
if 
  235@ == 0
goto_if_false @QUARRY_11745
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_11745
235@ = 1

:QUARRY_11745
if 
  239@ == 1
goto_if_false @QUARRY_11848
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
if 
  locate_char_any_means_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 15.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @QUARRY_11848
remove_blip 132@
239@ = 0

:QUARRY_11848
if 
  35@ == 99
goto_if_false @QUARRY_11873
gosub @QUARRY_21060

:QUARRY_11873
return 

:QUARRY_11875
if 
  is_car_dead 88@
goto_if_false @QUARRY_11907
37@ = 1
45@ = 2
return 

:QUARRY_11907
if 
  35@ == 0
goto_if_false @QUARRY_12473
212@ = 469.377
213@ = 877.2751
214@ = -29.0362
gosub @QUARRY_19761
48@ = 0

:QUARRY_11969
50@ = generate_random_int_in_range 2 {max} 4
59@ = generate_random_float_in_range -2.0 {max} 2.0
60@ = generate_random_float_in_range -3.0 {max} 3.0
add_float_lvar_to_float_lvar 59@ += 212@
add_float_lvar_to_float_lvar 60@ += 213@
61@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} -20.0
start_script_fire 59@ {y} 60@ {z} 61@ {propagation} 0 {size} 50@ {var_handle} 153@(48@,18i)
48@ += 1
  48@ >= 15
goto_if_false @QUARRY_11969
48@ = 0

:QUARRY_12091
50@ = generate_random_int_in_range 0 {max} 4
59@ = generate_random_float_in_range -1.3 {max} 1.3
60@ = generate_random_float_in_range -1.8 {max} 1.8
add_float_lvar_to_float_lvar 59@ += 212@
add_float_lvar_to_float_lvar 60@ += 213@
61@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} -20.0
switch_start 50@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_12337 {caseNum1} 0 {caseLabel1} @QUARRY_12225 {caseNum2} 1 {caseLabel2} @QUARRY_12253 {caseNum3} 2 {caseLabel3} @QUARRY_12281 {caseNum4} 3 {caseLabel4} @QUARRY_12309 {caseNum5} -1 {caseLabel5} @QUARRY_12337 {caseNum6} -1 {caseLabel6} @QUARRY_12337 {caseNum7} -1 {caseLabel7} @QUARRY_12337

:QUARRY_12225
create_object #CM_BOX {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12253
create_object #BLACKBAG2 {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12281
create_object #DYN_WOODPILE {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12309
create_object #DYN_WOODPILE2 {x} 59@ {y} 60@ {z} 61@ {var_handle} 114@(50@,7i)
goto @QUARRY_12337

:QUARRY_12337
75@ = generate_random_float_in_range 0.0 {max} 359.0
76@ = generate_random_float_in_range 0.0 {max} 359.0
77@ = generate_random_float_in_range 0.0 {max} 359.0
set_object_rotation 114@(50@,7i) {x} 75@ {y} 76@ {z} 77@
set_object_render_scorched 114@(50@,7i) {state} True
set_object_collision 114@(50@,7i) {state} False
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_12091
print_now 'QUAR_23' {time} 7000 {flag} 1
263@ = 0
35@ += 1

:QUARRY_12473
if 
  236@ == 0
goto_if_false @QUARRY_12806
50@ = 0
48@ = 0

:QUARRY_12505
if 
  not is_object_attached 111@(48@,3i)
goto_if_false @QUARRY_12760
59@, 60@, 61@ = get_object_coordinates 111@(48@,3i)
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  0.5 > 76@
goto_if_false @QUARRY_12760
if 
  locate_object_3d 111@(48@,3i) {x} 212@ {y} 213@ {z} 214@ {xRadius} 12.0 {yRadius} 15.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @QUARRY_12744
51@ = 15
add_int_lvar_to_int_lvar 51@ += 48@
if 
  not does_script_fire_exist 153@(51@,18i)
goto_if_false @QUARRY_12730
start_script_fire 59@ {y} 60@ {z} 61@ {propagation} 0 {size} 3 {var_handle} 153@(51@,18i)
set_object_render_scorched 111@(48@,3i) {state} True
freeze_object_position 111@(48@,3i) {state} True
set_object_collision 111@(48@,3i) {state} False

:QUARRY_12730
50@ += 1
goto @QUARRY_12760

:QUARRY_12744
37@ = 1
45@ = 8
return 

:QUARRY_12760
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_12505
if 
  50@ == 3
goto_if_false @QUARRY_12806
236@ = 1

:QUARRY_12806
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_12840
37@ = 1
45@ = 4
return 

:QUARRY_12840
if 
  35@ == 1
goto_if_false @QUARRY_12883
if 
  236@ == 1
goto_if_false @QUARRY_12883
35@ = 99

:QUARRY_12883
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_12994
if 
  does_blip_exist 126@
goto_if_false @QUARRY_12987
remove_blip 126@
clear_this_print 'QUAR_36'
if 
  238@ == 1
goto_if_false @QUARRY_12973
128@ = add_blip_for_coord 215@ {y} 216@ {z} 217@
goto @QUARRY_12987

:QUARRY_12973
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@

:QUARRY_12987
goto @QUARRY_13046

:QUARRY_12994
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_13046
remove_blip 128@
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_13046
if 
  236@ == 0
goto_if_false @QUARRY_13199
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_13199
if 
  not locate_char_in_car_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 25.0 {yRadius} 25.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @QUARRY_13163
  locate_char_in_car_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto @QUARRY_13199

:QUARRY_13163
if 
  262@ == 0
goto_if_false @QUARRY_13199
print_help_forever 'QUAR_H1'
262@ = 1

:QUARRY_13199
if 
  263@ == 0
goto_if_false @QUARRY_13327
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_13327
if 
  locate_char_in_car_3d $scplayer {x} 215@ {y} 216@ {z} 217@ {xRadius} 12.0 {yRadius} 12.0 {zRadius} 12.0 {drawSphere} True
goto_if_false @QUARRY_13327
print_now 'QUAR_24' {time} 7000 {flag} 1
263@ = 1
remove_blip 131@
238@ = 0
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@

:QUARRY_13327
if 
  35@ == 99
goto_if_false @QUARRY_13352
gosub @QUARRY_21060

:QUARRY_13352
return 

:QUARRY_13354
if 
  is_car_dead 88@
goto_if_false @QUARRY_13386
37@ = 1
45@ = 2
return 

:QUARRY_13386
if 
  35@ == 0
goto_if_false @QUARRY_13602
212@ = -59.3126
213@ = 2502.2539
214@ = 15.4766
205@ = get_car_health 88@
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
50@ = 5
50@ -= 1
set_var_int_to_var_int $g_Quarry_timerKM = $g_Quarry_recordsKM(50@,7i)
$g_Quarry_timerKM *= 1000
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D4'
set_lvar_int_to_lvar_int 206@ = 46@
print_now 'QUAR_38' {time} 10000 {flag} 1
236@ = 0
264@ = 0
48@ = 0

:QUARRY_13552
296@(48@,6i) = 0
184@(48@,6i) = 0
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13552
35@ += 1

:QUARRY_13602
if 
  236@ == 0
goto_if_false @QUARRY_13974
80@ = 0
50@ = 0
48@ = 0

:QUARRY_13641
if 
  not is_object_attached 101@(48@,10i)
goto_if_false @QUARRY_13819
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
75@ = get_ground_z_for_3d_coord 59@ {y} 60@ {z} 61@
set_lvar_float_to_lvar_float 76@ = 61@
sub_float_lvar_from_float_lvar 76@ -= 75@
if 
  1.0 > 76@
goto_if_false @QUARRY_13819
if 
  locate_object_3d 101@(48@,10i) {x} 212@ {y} 213@ {z} 214@ {xRadius} 12.0 {yRadius} 15.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @QUARRY_13790
50@ += 1
goto @QUARRY_13819

:QUARRY_13790
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)
80@ = 1

:QUARRY_13819
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13641
if 
  80@ == 1
goto_if_false @QUARRY_13949
48@ = 0

:QUARRY_13865
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_13907
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)

:QUARRY_13907
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_13865
explode_car 88@
37@ = 1
45@ = 9
return 

:QUARRY_13949
if 
  50@ == 6
goto_if_false @QUARRY_13974
236@ = 1

:QUARRY_13974
if 
  236@ == 0
goto_if_false @QUARRY_14151
50@ = get_car_health 88@
set_lvar_int_to_lvar_int 51@ = 205@
sub_int_lvar_from_int_lvar 51@ -= 50@
if 
  51@ > 10
goto_if_false @QUARRY_14143
48@ = 0

:QUARRY_14041
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_14101
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)

:QUARRY_14101
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14041
explode_car 88@
37@ = 1
45@ = 9
return 

:QUARRY_14143
set_lvar_int_to_lvar_int 205@ = 50@

:QUARRY_14151
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_14185
37@ = 1
45@ = 10
return 

:QUARRY_14185
if 
  35@ == 1
goto_if_false @QUARRY_14228
if 
  236@ == 1
goto_if_false @QUARRY_14228
35@ = 99

:QUARRY_14228
48@ = 0

:QUARRY_14235
if 
  does_object_exist 122@(48@,3i)
goto_if_false @QUARRY_14485
if 
  not is_object_attached 122@(48@,3i)
goto_if_false @QUARRY_14485
switch_start 48@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @QUARRY_14485 {caseNum1} 0 {caseLabel1} @QUARRY_14338 {caseNum2} 1 {caseLabel2} @QUARRY_14387 {caseNum3} 2 {caseLabel3} @QUARRY_14436 {caseNum4} -1 {caseLabel4} @QUARRY_14485 {caseNum5} -1 {caseLabel5} @QUARRY_14485 {caseNum6} -1 {caseLabel6} @QUARRY_14485 {caseNum7} -1 {caseLabel7} @QUARRY_14485

:QUARRY_14338
attach_object_to_car 122@(48@,3i) {handle} 88@ {xOffset} -1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_14485

:QUARRY_14387
attach_object_to_car 122@(48@,3i) {handle} 88@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_14485

:QUARRY_14436
attach_object_to_car 122@(48@,3i) {handle} 88@ {xOffset} 1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_14485

:QUARRY_14485
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_14235
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_14578
if 
  not does_blip_exist 128@
goto_if_false @QUARRY_14571
remove_blip 126@
128@ = add_blip_for_coord 212@ {y} 213@ {z} 214@
clear_this_print 'QUAR_36'

:QUARRY_14571
goto @QUARRY_14630

:QUARRY_14578
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_14630
remove_blip 128@
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_14630
if 
  does_blip_exist 128@
goto_if_false @QUARRY_14677
  locate_char_any_means_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 4.0 {drawSphere} True

:QUARRY_14677
if 
  264@ == 0
goto_if_false @QUARRY_14760
if 
  locate_char_any_means_3d $scplayer {x} 212@ {y} 213@ {z} 214@ {xRadius} 24.0 {yRadius} 30.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @QUARRY_14760
print_now 'QUAR_26' {time} 7000 {flag} 1
264@ = 1

:QUARRY_14760
if 
  locate_car_3d 88@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_14925
75@ = get_car_moving_component_offset 88@
if 
  75@ > 0.05
goto_if_false @QUARRY_14925
48@ = 0

:QUARRY_14838
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_14904
if 
  is_object_attached 101@(48@,10i)
goto_if_false @QUARRY_14904
detach_object 101@(48@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_14904
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14838

:QUARRY_14925
80@ = 0
48@ = 0

:QUARRY_14939
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_14997
50@ = get_object_health 101@(48@,10i)
if 
  950 >= 50@
goto_if_false @QUARRY_14997
80@ = 1

:QUARRY_14997
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_14939
if 
  80@ == 1
goto_if_false @QUARRY_15145
48@ = 0

:QUARRY_15043
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_15103
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Rocket
delete_object 101@(48@,10i)

:QUARRY_15103
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_15043
explode_car 88@
37@ = 1
45@ = 9
return 

:QUARRY_15145
if 
  locate_car_3d 88@ {x} 212@ {y} 213@ {z} 214@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @QUARRY_15656
75@ = get_car_moving_component_offset 88@
if 
  75@ > 0.25
goto_if_false @QUARRY_15656
48@ = 0

:QUARRY_15223
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_15635
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
80@ = 0
50@ = 0

:QUARRY_15275
if 
  3 > 50@
goto_if_false @QUARRY_15403
if and
  80@ == 0
  does_object_exist 122@(50@,3i)
goto_if_false @QUARRY_15389
62@, 63@, 64@ = get_object_coordinates 122@(50@,3i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  0.75 > 78@
goto_if_false @QUARRY_15389
80@ = 1

:QUARRY_15389
50@ += 1
goto @QUARRY_15275

:QUARRY_15403
if 
  80@ == 1
goto_if_false @QUARRY_15613
if 
  296@(48@,6i) == 0
goto_if_false @QUARRY_15485
296@(48@,6i) = 1
set_lvar_int_to_lvar_int 184@(48@,6i) = 46@
184@(48@,6i) += 5000
goto @QUARRY_15606

:QUARRY_15485
if 
  is_int_lvar_greater_than_int_lvar 46@ > 184@(48@,6i)
goto_if_false @QUARRY_15606
set_lvar_int_to_lvar_int 184@(48@,6i) = 46@
184@(48@,6i) += 5000
if 
  is_object_attached 101@(48@,10i)
goto_if_false @QUARRY_15578
detach_object 101@(48@,10i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:QUARRY_15578
61@ += 1.2
set_object_coordinates 101@(48@,10i) {x} 59@ {y} 60@ {z} 61@

:QUARRY_15606
goto @QUARRY_15635

:QUARRY_15613
296@(48@,6i) = 0
184@(48@,6i) = 0

:QUARRY_15635
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_15223

:QUARRY_15656
if 
  35@ == 99
goto_if_false @QUARRY_15691
remove_blip 128@
remove_blip 126@
gosub @QUARRY_21060

:QUARRY_15691
return 

:QUARRY_15693
if 
  is_car_dead 87@
goto_if_false @QUARRY_15725
37@ = 1
45@ = 1
return 

:QUARRY_15725
if 
  is_car_dead 90@
goto_if_false @QUARRY_15757
37@ = 1
45@ = 12
return 

:QUARRY_15757
if 
  35@ == 0
goto_if_false @QUARRY_15966
265@ = 0
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
50@ = 6
50@ -= 1
set_var_int_to_var_int $g_Quarry_timerKM = $g_Quarry_recordsKM(50@,7i)
$g_Quarry_timerKM *= 1000
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D5'
set_lvar_int_to_lvar_int 206@ = 46@
set_lvar_int_to_var_int 182@ = $g_Quarry_recordsKM(50@,7i)
182@ -= 15
182@ *= 1000
add_int_lvar_to_int_lvar 182@ += 46@
266@ = 0
267@ = 0
48@ = 0

:QUARRY_15911
268@(48@,10i) = 1
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_15911
print_now 'QUAR_28' {time} 10000 {flag} 1
35@ += 1

:QUARRY_15966
if 
  266@ == 1
goto_if_false @QUARRY_16217
62@, 63@, 64@ = get_object_coordinates 121@
48@ = 0

:QUARRY_16005
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_16176
if 
  268@(48@,10i) == 1
goto_if_false @QUARRY_16176
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  2.0 > 78@
goto_if_false @QUARRY_16176
add_explosion 59@ {y} 60@ {z} 61@ {type} ExplosionType.Aircraft
delete_object 101@(48@,10i)
if 
  not is_car_dead 90@
goto_if_false @QUARRY_16176
explode_car 90@
set_train_cruise_speed 90@ {speed} 0.0
37@ = 1
45@ = 11

:QUARRY_16176
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16005
if 
  37@ == 1
goto_if_false @QUARRY_16217
return 

:QUARRY_16217
if 
  35@ == 1
goto_if_false @QUARRY_16260
if 
  267@ == 1
goto_if_false @QUARRY_16260
35@ = 99

:QUARRY_16260
if 
  is_char_in_car $scplayer {vehicle} 87@
goto_if_false @QUARRY_16327
if 
  265@ == 0
goto_if_false @QUARRY_16320
265@ = 1
remove_blip 125@
clear_this_print 'QUAR_35'

:QUARRY_16320
goto @QUARRY_16436

:QUARRY_16327
if 
  265@ == 1
goto_if_false @QUARRY_16389
48@ = 0

:QUARRY_16352
remove_blip 142@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16352
265@ = 0

:QUARRY_16389
if 
  not does_blip_exist 125@
goto_if_false @QUARRY_16436
125@ = add_blip_for_car 87@
set_blip_as_friendly 125@ {state} True
print_now 'QUAR_35' {time} 5000 {flag} 1

:QUARRY_16436
if 
  266@ == 0
goto_if_false @QUARRY_16531
if 
  15000 >= $g_Quarry_timerKM
goto_if_false @QUARRY_16531
set_train_speed 90@ {speed} 56.0
set_train_cruise_speed 90@ {speed} 56.0
141@ = add_blip_for_car 90@
set_blip_as_friendly 141@ {state} True
print_now 'QUAR_29' {time} 7000 {flag} 1
266@ = 1

:QUARRY_16531
if 
  266@ == 0
goto_if_false @QUARRY_16660
if 
  is_char_in_area_3d $scplayer {leftBottomX} 727.6937 {leftBottomY} 2412.2041 {leftBottomZ} 17.6685 {rightTopX} 872.5978 {rightTopY} 2714.917 {rightTopZ} 21.0511 {drawSphere} False
goto_if_false @QUARRY_16660
set_train_speed 90@ {speed} 56.0
set_train_cruise_speed 90@ {speed} 56.0
141@ = add_blip_for_car 90@
set_blip_as_friendly 141@ {state} True
clear_onscreen_timer $g_Quarry_timerKM
print_now 'QUAR_29' {time} 7000 {flag} 1
266@ = 1

:QUARRY_16660
if and
  266@ == 1
  267@ == 0
goto_if_false @QUARRY_16740
if 
  locate_car_3d 90@ {x} 673.9813 {y} 1331.079 {z} 10.7891 {xRadius} 20.0 {yRadius} 20.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @QUARRY_16740
267@ = 1

:QUARRY_16740
if 
  265@ == 1
goto_if_false @QUARRY_16949
48@ = 0

:QUARRY_16765
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_16928
59@, 60@, 61@ = get_object_coordinates 101@(48@,10i)
if and
  59@ > 739.0
  747.0 > 59@
goto_if_false @QUARRY_16888
268@(48@,10i) = 1
if 
  not does_blip_exist 142@(48@,10i)
goto_if_false @QUARRY_16881
add_blip_for_object 101@(48@,10i) {var_handle} 142@(48@,10i)

:QUARRY_16881
goto @QUARRY_16928

:QUARRY_16888
268@(48@,10i) = 0
if 
  does_blip_exist 142@(48@,10i)
goto_if_false @QUARRY_16928
remove_blip 142@(48@,10i)

:QUARRY_16928
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16765

:QUARRY_16949
if 
  266@ == 0
goto_if_false @QUARRY_17170
50@ = 0
48@ = 0

:QUARRY_16981
if 
  does_object_exist 101@(48@,10i)
goto_if_false @QUARRY_17037
if 
  268@(48@,10i) == 0
goto_if_false @QUARRY_17030
50@ += 1

:QUARRY_17030
goto @QUARRY_17044

:QUARRY_17037
50@ += 1

:QUARRY_17044
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_16981
if 
  50@ == 10
goto_if_false @QUARRY_17170
75@ = 56.0
75@ *= 2.0
set_train_speed 90@ {speed} 75@
set_train_cruise_speed 90@ {speed} 75@
141@ = add_blip_for_car 90@
set_blip_as_friendly 141@ {state} True
clear_onscreen_timer $g_Quarry_timerKM
print_now 'QUAR_29' {time} 7000 {flag} 1
set_lvar_int_to_lvar_int 207@ = 46@
266@ = 1

:QUARRY_17170
if 
  35@ == 99
goto_if_false @QUARRY_17195
gosub @QUARRY_21060

:QUARRY_17195
return 

:QUARRY_17197
if 
  is_car_dead 91@
goto_if_false @QUARRY_17220
278@ = 1

:QUARRY_17220
if 
  is_car_dead 88@
goto_if_false @QUARRY_17252
37@ = 1
45@ = 2
return 

:QUARRY_17252
if 
  35@ == 0
goto_if_false @QUARRY_17632
car_wander_randomly 91@
set_car_cruise_speed 91@ {maxSpeed} 26.0
set_car_driving_style 91@ {drivingStyle} DrivingMode.AvoidCars
set_car_only_damaged_by_player 91@ {state} True
152@ = add_blip_for_car 91@
lock_car_doors 91@ {lockStatus} CarLock.LockoutPlayerOnly
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_32' {time} 10000 {flag} 1
display_onscreen_counter_with_string $g_Quarry_damageKM {display} CounterDisplay.Bar {text} 'QUAR_D6'
50@ = 3
50@ -= 1
set_var_int_to_var_int $g_Quarry_timerKM = $g_Quarry_recordsKM(50@,7i)
$g_Quarry_timerKM *= 1000
display_onscreen_timer_with_string $g_Quarry_timerKM {direction} TimerDirection.Down {text} 'QUAR_D4'
set_lvar_int_to_lvar_int 206@ = 46@
switch_roads_off 256.6312 {leftBottomY} 734.7498 {leftBottomZ} 4.0053 {rightTopX} 343.9576 {rightTopY} 765.6713 {rightTopZ} 6.4852
switch_roads_off 291.2253 {leftBottomY} 762.6765 {leftBottomZ} 4.0625 {rightTopX} 354.4869 {rightTopY} 784.4223 {rightTopZ} 6.6101
switch_roads_off -149.9865 {leftBottomY} 460.067 {leftBottomZ} 4.9719 {rightTopX} -119.7325 {rightTopY} 530.4155 {rightTopZ} 12.4813
switch_roads_off -100.9858 {leftBottomY} 1190.38 {leftBottomZ} 16.1736 {rightTopX} 97.0928 {rightTopY} 1205.202 {rightTopZ} 19.9344
switch_roads_off -124.9028 {leftBottomY} 1209.5811 {leftBottomZ} 14.6519 {rightTopX} -108.1954 {rightTopY} 1243.821 {rightTopZ} 19.8554
switch_roads_off -113.2273 {leftBottomY} 1246.4771 {leftBottomZ} 11.3781 {rightTopX} -84.1825 {rightTopY} 1268.751 {rightTopZ} 17.5621
283@ = 1
279@ = 0
35@ += 1

:QUARRY_17632
if 
  not is_car_dead 91@
goto_if_false @QUARRY_17855
59@, 60@, 61@ = get_char_coordinates $scplayer
62@, 63@, 64@ = get_car_coordinates 91@
78@ = get_distance_between_coords_3d 59@ {fromY} 60@ {fromZ} 61@ {toX} 62@ {toY} 63@ {toZ} 64@
if 
  78@ > 600.0
goto_if_false @QUARRY_17736
37@ = 1
45@ = 13
return 

:QUARRY_17736
if 
  279@ == 0
goto_if_false @QUARRY_17798
if 
  78@ > 500.0
goto_if_false @QUARRY_17798
print_now 'QUAR_33' {time} 7000 {flag} 1
279@ = 1

:QUARRY_17798
if 
  279@ == 1
goto_if_false @QUARRY_17855
if 
  400.0 > 78@
goto_if_false @QUARRY_17855
clear_this_print 'QUAR_33'
279@ = 0

:QUARRY_17855
if 
  0 >= $g_Quarry_timerKM
goto_if_false @QUARRY_17889
37@ = 1
45@ = 14
return 

:QUARRY_17889
if 
  35@ == 1
goto_if_false @QUARRY_17948
if 
  278@ == 1
goto_if_false @QUARRY_17948
set_lvar_int_to_lvar_int 172@ = 46@
172@ += 2000
35@ += 1

:QUARRY_17948
if 
  35@ == 2
goto_if_false @QUARRY_17992
if 
  is_int_lvar_greater_than_int_lvar 46@ > 172@
goto_if_false @QUARRY_17992
35@ = 99

:QUARRY_17992
if 
  is_char_in_car $scplayer {vehicle} 88@
goto_if_false @QUARRY_18050
if 
  does_blip_exist 126@
goto_if_false @QUARRY_18043
remove_blip 126@
clear_this_print 'QUAR_36'

:QUARRY_18043
goto @QUARRY_18097

:QUARRY_18050
if 
  not does_blip_exist 126@
goto_if_false @QUARRY_18097
126@ = add_blip_for_car 88@
set_blip_as_friendly 126@ {state} True
print_now 'QUAR_36' {time} 5000 {flag} 1

:QUARRY_18097
if 
  not is_car_dead 91@
goto_if_false @QUARRY_18156
50@ = get_car_health 91@
if and
  50@ > 300
  800 >= 50@
goto_if_false @QUARRY_18156
set_car_health 91@ {health} 300

:QUARRY_18156
if 
  not is_car_dead 91@
goto_if_false @QUARRY_18431
50@ = get_car_health 91@
if 
  250 >= 50@
goto_if_false @QUARRY_18213
$g_Quarry_damageKM = 0
goto @QUARRY_18431

:QUARRY_18213
if 
  50@ == 1000
goto_if_false @QUARRY_18246
$g_Quarry_damageKM = 100
goto @QUARRY_18431

:QUARRY_18246
if 
  50@ == 300
goto_if_false @QUARRY_18279
$g_Quarry_damageKM = 20
goto @QUARRY_18431

:QUARRY_18279
if 
  300 > 50@
goto_if_false @QUARRY_18350
51@ = 300
sub_int_lvar_from_int_lvar 51@ -= 50@
$g_Quarry_damageKM = 50
sub_int_lvar_from_int_var $g_Quarry_damageKM -= 51@
$g_Quarry_damageKM *= 20
$g_Quarry_damageKM /= 50
goto @QUARRY_18431

:QUARRY_18350
if 
  800 > 50@
goto_if_false @QUARRY_18377
50@ = 800

:QUARRY_18377
51@ = 1000
sub_int_lvar_from_int_lvar 51@ -= 50@
$g_Quarry_damageKM = 200
sub_int_lvar_from_int_var $g_Quarry_damageKM -= 51@
$g_Quarry_damageKM *= 80
$g_Quarry_damageKM /= 200
$g_Quarry_damageKM += 20

:QUARRY_18431
if 
  not is_car_dead 91@
goto_if_false @QUARRY_18872
48@ = 0

:QUARRY_18454
if 
  does_object_exist 94@(48@,7i)
goto_if_false @QUARRY_18851
if 
  not is_object_attached 94@(48@,7i)
goto_if_false @QUARRY_18851
switch_start 48@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @QUARRY_18851 {caseNum1} 0 {caseLabel1} @QUARRY_18557 {caseNum2} 1 {caseLabel2} @QUARRY_18606 {caseNum3} 2 {caseLabel3} @QUARRY_18655 {caseNum4} 3 {caseLabel4} @QUARRY_18704 {caseNum5} 4 {caseLabel5} @QUARRY_18753 {caseNum6} 5 {caseLabel6} @QUARRY_18802 {caseNum7} -1 {caseLabel7} @QUARRY_18851

:QUARRY_18557
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18606
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18655
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18704
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18753
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18802
attach_object_to_car 94@(48@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
goto @QUARRY_18851

:QUARRY_18851
48@ += 1
  48@ >= 6
goto_if_false @QUARRY_18454

:QUARRY_18872
if 
  35@ == 99
goto_if_false @QUARRY_18897
gosub @QUARRY_21060

:QUARRY_18897
return 

:QUARRY_18899
if 
  35@ == 0
goto_if_false @QUARRY_18952
set_player_control $player1 {state} False
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 5000
clear_onscreen_timer $g_Quarry_timerKM
35@ += 1

:QUARRY_18952
if 
  35@ == 1
goto_if_false @QUARRY_19019
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19019
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19019
if 
  35@ == 2
goto_if_false @QUARRY_19190
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not get_fading_status 
goto_if_false @QUARRY_19190
$g_Quarry_CashPickupKM = create_protection_pickup 818.2578 {y} 853.8873 {z} 10.8059 {revenueLimit} $g_Quarry_CashPickupValueKM {revenueRate} $g_Quarry_CashPickupValueKM
switch_widescreen True
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
load_scene 818.2578 {y} 853.8873 {z} 10.8059
set_fixed_camera_position 849.6491 {y} 839.9428 {z} 42.7363 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 848.7661 {y} 840.1115 {z} 42.2983 {switchStyle} SwitchType.JumpCut
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 2000
35@ += 1

:QUARRY_19190
if 
  35@ == 3
goto_if_false @QUARRY_19273
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19273
do_fade 500 {direction} Fade.In
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 5000
35@ += 1

:QUARRY_19273
if 
  35@ == 4
goto_if_false @QUARRY_19403
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19403
set_fixed_camera_position 825.0984 {y} 855.4503 {z} 13.577 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 824.1995 {y} 855.1732 {z} 13.2376 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $g_Quarry_CashPickupValueKM {duration} 6000 {flag} 1
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 6000
35@ += 1

:QUARRY_19403
if 
  35@ == 5
goto_if_false @QUARRY_19470
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19470
do_fade 500 {direction} Fade.Out
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19470
if 
  35@ == 6
goto_if_false @QUARRY_19565
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not get_fading_status 
goto_if_false @QUARRY_19565
59@, 60@, 61@ = get_char_coordinates $scplayer
load_scene 59@ {y} 60@ {z} 61@
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 2000
35@ += 1

:QUARRY_19565
if 
  35@ == 7
goto_if_false @QUARRY_19670
if 
  is_int_lvar_greater_than_int_lvar 46@ > 183@
goto_if_false @QUARRY_19670
print_with_2_numbers_now 'QUAR_P7' {num1} 210@ {num2} 211@ {duration} 10000 {style} TextStyle.Middle
print 'QUAR_H3' {time} 7000 {flag} 1
do_fade 500 {direction} Fade.In
set_lvar_int_to_lvar_int 183@ = 46@
183@ += 500
35@ += 1

:QUARRY_19670
if 
  35@ == 8
goto_if_false @QUARRY_19734
if and
  is_int_lvar_greater_than_int_lvar 46@ > 183@
  not get_fading_status 
goto_if_false @QUARRY_19734
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
set_player_control $player1 {state} True
35@ = 99

:QUARRY_19734
if 
  35@ == 99
goto_if_false @QUARRY_19759
gosub @QUARRY_21060

:QUARRY_19759
return 

:QUARRY_19761
215@ = 808.4078
216@ = 841.9887
217@ = 8.6694
131@ = add_blip_for_coord 215@ {y} 216@ {z} 217@
238@ = 1
return 

:QUARRY_19814
215@ = 371.5454
216@ = 978.1724
217@ = 28.521
132@ = add_blip_for_coord 215@ {y} 216@ {z} 217@
239@ = 1
return 
200@, 201@ = get_time_of_day 
set_lvar_int_to_lvar_int 50@ = 202@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 203@
50@ *= 1000
set_lvar_int_to_lvar_int 173@ = 50@
add_int_lvar_to_int_lvar 173@ += 46@
add_int_lvar_to_int_lvar 201@ += 203@
if 
  201@ >= 60
goto_if_false @QUARRY_19962
200@ += 1
201@ -= 60

:QUARRY_19962
add_int_lvar_to_int_lvar 200@ += 202@

:QUARRY_19970
if 
  200@ >= 24
goto_if_false @QUARRY_20002
200@ -= 24
goto @QUARRY_19970

:QUARRY_20002
80@ = 0
if 
  201@ > 45
goto_if_false @QUARRY_20104
50@ = 60
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 0
200@ += 1
if 
  200@ == 24
goto_if_false @QUARRY_20081
200@ = 0

:QUARRY_20081
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20104
if 
  80@ == 0
goto_if_false @QUARRY_20192
if and
  201@ > 30
  45 > 201@
goto_if_false @QUARRY_20192
50@ = 45
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 45
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20192
if 
  80@ == 0
goto_if_false @QUARRY_20280
if and
  201@ > 15
  30 > 201@
goto_if_false @QUARRY_20280
50@ = 30
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 30
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20280
if 
  80@ == 0
goto_if_false @QUARRY_20368
if and
  201@ > 0
  15 > 201@
goto_if_false @QUARRY_20368
50@ = 15
sub_int_lvar_from_int_lvar 50@ -= 201@
201@ = 15
50@ *= 1000
add_int_lvar_to_int_lvar 173@ += 50@
80@ = 1

:QUARRY_20368
set_lvar_int_to_lvar_int 50@ = 200@
50@ *= 60
add_int_lvar_to_int_lvar 50@ += 201@
50@ *= 1000
set_var_int_to_lvar_int $g_Quarry_timerKM = 50@
return 

:QUARRY_20409
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @QUARRY_20458
47@ += 1
if 
  47@ > 2
goto_if_false @QUARRY_20456
47@ = 0

:QUARRY_20456
clear_all_view_variables 

:QUARRY_20458
if 
  47@ == 1
goto_if_false @QUARRY_20585
set_var_int_to_lvar_int $Quarry_view_debug[0] = 34@
set_var_int_to_lvar_int $Quarry_view_debug[1] = 35@
set_var_int_to_lvar_int $Quarry_view_debug[2] = 46@
$Quarry_view_debug[3] = 0
$Quarry_view_debug[4] = 0
$Quarry_view_debug[5] = 0
$Quarry_view_debug[6] = 0
$Quarry_view_debug[7] = 0
view_integer_variable $Quarry_view_debug[0] {_p2} "M_STAGE"
view_integer_variable $Quarry_view_debug[1] {_p2} "M_GOALS"
view_integer_variable $Quarry_view_debug[2] {_p2} "M_MISSION_TIMER"

:QUARRY_20585
if 
  47@ == 2
goto_if_false @QUARRY_20786
$Quarry_view_debug[7] = 0
48@ = 0

:QUARRY_20617
set_var_int_to_var_int $Quarry_view_debug(48@,8i) = $g_Quarry_recordsKM(48@,7i)
add_int_var_to_int_var $Quarry_view_debug[7] += $g_Quarry_recordsKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_20617
view_integer_variable $Quarry_view_debug[0] {_p2} "ROCKFALL"
view_integer_variable $Quarry_view_debug[1] {_p2} "SABOTAGE"
view_integer_variable $Quarry_view_debug[2] {_p2} "DESTROY."
view_integer_variable $Quarry_view_debug[3] {_p2} "REMOVAL."
view_integer_variable $Quarry_view_debug[4] {_p2} "DELIVERY"
view_integer_variable $Quarry_view_debug[5] {_p2} "SPILLAGE"
view_integer_variable $Quarry_view_debug[6] {_p2} "BURIAL.."
view_integer_variable $Quarry_view_debug[7] {_p2} "TOTAL..."

:QUARRY_20786
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @QUARRY_20808
38@ = 1

:QUARRY_20808
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @QUARRY_20896
if 
  39@ == 0
goto_if_false @QUARRY_20871
39@ = 1
write_debug "LEVEL_PAUSED"
goto @QUARRY_20896

:QUARRY_20871
39@ = 0
write_debug "LEVEL_UNPAUSED"

:QUARRY_20896
return 

:QUARRY_20898
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @QUARRY_20922
36@ = 1
return 

:QUARRY_20922
if 
is_ps2_keyboard_key_just_pressed 77
goto_if_false @QUARRY_20968
$g_nQuarryMissionsPassed += 1
write_debug_with_int "MISSIONS_PASSED" {number} $g_nQuarryMissionsPassed
return 

:QUARRY_20968
if 
  not is_ps2_keyboard_key_just_pressed 74
goto_if_false @QUARRY_20985
return 

:QUARRY_20985
return 

:QUARRY_20987
41@ += 1
if 
  41@ > 9
goto_if_false @QUARRY_21019
41@ = 0

:QUARRY_21019
return 

:QUARRY_21021
42@ = get_game_timer 
set_lvar_int_to_lvar_int 44@ = 42@
sub_int_lvar_from_int_lvar 44@ -= 43@
set_lvar_int_to_lvar_int 43@ = 42@
add_int_lvar_to_int_lvar 46@ += 44@
return 

:QUARRY_21060
34@ += 1
35@ = 0
TIMERA = 0
TIMERB = 0
return 

:QUARRY_21090
if 
  not is_player_playing $player1
goto_if_false @QUARRY_21117
wait 0
goto @QUARRY_21090

:QUARRY_21117
set_player_control $player1 {state} False
wait 1000
do_fade 1000 {direction} Fade.Out

:QUARRY_21136
if 
  get_fading_status 
goto_if_false @QUARRY_21160
wait 0
goto @QUARRY_21136

:QUARRY_21160
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_21378
if 
  $g_nQuarryMissionsPassed == 0
goto_if_false @QUARRY_21378
50@ = 1
50@ -= 1
$g_Quarry_recordsKM(50@,7i) = 211
50@ = 2
50@ -= 1
$g_Quarry_recordsKM(50@,7i) = 300
50@ = 3
50@ -= 1
$g_Quarry_recordsKM(50@,7i) = 481
50@ = 4
50@ -= 1
$g_Quarry_recordsKM(50@,7i) = 241
50@ = 5
50@ -= 1
$g_Quarry_recordsKM(50@,7i) = 181
50@ = 6
50@ -= 1
$g_Quarry_recordsKM(50@,7i) = 181
50@ = 7
50@ -= 1
$g_Quarry_recordsKM(50@,7i) = 481

:QUARRY_21378
clear_area $quarryX {y} $quarryY {z} $quarryZ {radius} 1000.0 {clearParticles} False
load_scene $quarryX {y} $quarryY {z} $quarryZ
set_char_coordinates $scplayer {x} $quarryX {y} $quarryY {z} $quarryZ
set_char_heading $scplayer {heading} 90.0
set_camera_behind_player 
wait 500
set_lvar_int_to_var_int 50@ = $g_nQuarryMissionsPassed

:QUARRY_21446
if 
  50@ >= 7
goto_if_false @QUARRY_21478
50@ -= 7
goto @QUARRY_21446

:QUARRY_21478
set_lvar_int_to_lvar_int 198@ = 50@
198@ += 1
gosub @QUARRY_21635
207@ = 0
switch_car_generator $gen_car1 {amount} 0
switch_car_generator $gen_car2 {amount} 0
wait 1500
draw_oddjob_title_before_fade True
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In

:QUARRY_21545
if 
  get_fading_status 
goto_if_false @QUARRY_21569
wait 0
goto @QUARRY_21545

:QUARRY_21569
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_21598
print_help 'QUAR_H2'

:QUARRY_21598
set_player_control $player1 {state} True
45@ = 0
TIMERA = 0
TIMERB = 0
35@ = 0
return 

:QUARRY_21635
switch_start 198@ {numCases} 7 {hasDefaultCase} 1 {defaultLabel} @QUARRY_21796 {caseNum1} 1 {caseLabel1} @QUARRY_21698 {caseNum2} 2 {caseLabel2} @QUARRY_21712 {caseNum3} 3 {caseLabel3} @QUARRY_21782 {caseNum4} 4 {caseLabel4} @QUARRY_21726 {caseNum5} 5 {caseLabel5} @QUARRY_21740 {caseNum6} 6 {caseLabel6} @QUARRY_21754 {caseNum7} 7 {caseLabel7} @QUARRY_21768

:QUARRY_21698
gosub @QUARRY_22158
goto @QUARRY_21825

:QUARRY_21712
gosub @QUARRY_22482
goto @QUARRY_21825

:QUARRY_21726
gosub @QUARRY_22957
goto @QUARRY_21825

:QUARRY_21740
gosub @QUARRY_23543
goto @QUARRY_21825

:QUARRY_21754
gosub @QUARRY_24497
goto @QUARRY_21825

:QUARRY_21768
gosub @QUARRY_21827
goto @QUARRY_21825

:QUARRY_21782
gosub @QUARRY_25306
goto @QUARRY_21825

:QUARRY_21796
write_debug "UNKNOWN_QUARRY_MISSION_ID"

:QUARRY_21825
return 

:QUARRY_21827
34@ = 1
request_model 468
request_model 486
request_model 406
request_model #DEAD_TIED_COP
request_model 523
request_model #CR_AMMOBOX
load_all_models_now 

:QUARRY_21866
if or
  not has_model_loaded 468
  not has_model_loaded 486
  not has_model_loaded 406
  not has_model_loaded #DEAD_TIED_COP
  not has_model_loaded 523
  not has_model_loaded #CR_AMMOBOX
goto_if_false @QUARRY_21918
wait 0
goto @QUARRY_21866

:QUARRY_21918
86@ = create_car 468 {x} 819.7281 {y} 858.3189 {z} 11.0469
set_car_heading 86@ {heading} 291.4761
87@ = create_car 486 {x} 653.1636 {y} 879.9844 {z} -42.5799
set_car_heading 87@ {heading} 119.7783
88@ = create_car 406 {x} 717.0151 {y} 938.3721 {z} -19.7314
set_car_heading 88@ {heading} 38.1129
93@ = create_object #CR_AMMOBOX {x} 720.5391 {y} 922.5157 {z} -19.8436
set_object_collision 93@ {state} False
set_object_visible 93@ {state} False
attach_object_to_car 93@ {handle} 88@ {xOffset} 0.0 {yOffset} -1.7 {zOffset} 1.5 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
92@ = create_object #DEAD_TIED_COP {x} 606.9487 {y} 933.0876 {z} -38.5322
set_object_dynamic 92@ {state} True
89@ = create_car 523 {x} 560.3003 {y} 844.9364 {z} -13.0258
set_car_can_be_damaged 89@ {state} False
switch_emergency_services False
return 

:QUARRY_22158
34@ = 5
request_model 486
request_model #DYN_QUARRYROCK03
load_all_models_now 

:QUARRY_22177
if or
  not has_model_loaded 486
  not has_model_loaded #DYN_QUARRYROCK03
goto_if_false @QUARRY_22209
wait 0
goto @QUARRY_22177

:QUARRY_22209
87@ = create_car 486 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 87@ {heading} 115.4882
50@ = 0
create_object #DYN_QUARRYROCK03 {x} 771.6403 {y} 836.2275 {z} 4.8965 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 751.6732 {y} 944.9977 {z} 4.8593 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 538.9102 {y} 985.6403 {z} -8.5887 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 680.5322 {y} 963.4501 {z} -13.6607 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 516.8391 {y} 928.7185 {z} -27.6183 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 522.6153 {y} 828.3048 {z} -27.1838 {var_handle} 94@(50@,7i)
50@ += 1
create_object #DYN_QUARRYROCK03 {x} 646.7208 {y} 752.2311 {z} -12.1482 {var_handle} 94@(50@,7i)
return 

:QUARRY_22482
34@ = 7
request_model 486
request_model #KB_BARREL
load_all_models_now 

:QUARRY_22501
if or
  not has_model_loaded 486
  not has_model_loaded #KB_BARREL
goto_if_false @QUARRY_22533
wait 0
goto @QUARRY_22501

:QUARRY_22533
87@ = create_car 486 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 87@ {heading} 115.4882
50@ = 0
create_object #KB_BARREL {x} 817.0658 {y} 865.5903 {z} 11.0469 {var_handle} 101@(50@,10i)
50@ += 1
create_object #KB_BARREL {x} 714.5327 {y} 920.0583 {z} -19.6787 {var_handle} 101@(50@,10i)
50@ += 1
create_object #KB_BARREL {x} 632.2825 {y} 895.8612 {z} -43.9534 {var_handle} 101@(50@,10i)
50@ += 1
create_object #KB_BARREL {x} 675.7952 {y} 841.8704 {z} -43.9609 {var_handle} 101@(50@,10i)
51@ = 2
51@ -= 1
set_lvar_int_to_var_int 50@ = $g_Quarry_recordsKM(51@,7i)
50@ *= 100
48@ = 0

:QUARRY_22742
switch_start 48@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @QUARRY_22930 {caseNum1} 0 {caseLabel1} @QUARRY_22805 {caseNum2} 1 {caseLabel2} @QUARRY_22835 {caseNum3} 2 {caseLabel3} @QUARRY_22865 {caseNum4} 3 {caseLabel4} @QUARRY_22895 {caseNum5} -1 {caseLabel5} @QUARRY_22930 {caseNum6} -1 {caseLabel6} @QUARRY_22930 {caseNum7} -1 {caseLabel7} @QUARRY_22930

:QUARRY_22805
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 3
goto @QUARRY_22930

:QUARRY_22835
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 6
goto @QUARRY_22930

:QUARRY_22865
set_lvar_int_to_lvar_int 174@(48@,4i) = 50@
174@(48@,4i) *= 8
goto @QUARRY_22930

:QUARRY_22895
set_lvar_int_to_var_int 174@(48@,4i) = $g_Quarry_recordsKM(51@,7i)
174@(48@,4i) *= 1000
goto @QUARRY_22930

:QUARRY_22930
48@ += 1
  48@ >= 4
goto_if_false @QUARRY_22742
switch_emergency_services False
return 

:QUARRY_22957
34@ = 9
request_model 406
request_model #DEAD_TIED_COP
request_model 468
request_model #CM_BOX
request_model #BLACKBAG2
request_model #DYN_WOODPILE
request_model #DYN_WOODPILE2
load_all_models_now 

:QUARRY_23001
if or
  not has_model_loaded 406
  not has_model_loaded #DEAD_TIED_COP
  not has_model_loaded 468
goto_if_false @QUARRY_23038
wait 0
goto @QUARRY_23001

:QUARRY_23038
if or
  not has_model_loaded #CM_BOX
  not has_model_loaded #BLACKBAG2
  not has_model_loaded #DYN_WOODPILE
  not has_model_loaded #DYN_WOODPILE2
goto_if_false @QUARRY_23080
wait 0
goto @QUARRY_23038

:QUARRY_23080
88@ = create_car 406 {x} 355.8632 {y} 895.6545 {z} 19.399
set_car_heading 88@ {heading} 342.1892
86@ = create_car 468 {x} 819.7281 {y} 858.3189 {z} 11.0469
set_car_heading 86@ {heading} 291.4761
50@ = 0
create_object #DEAD_TIED_COP {x} 355.8632 {y} 894.6545 {z} 24.2254 {var_handle} 111@(50@,3i)
75@ = generate_random_float_in_range 0.0 {max} 180.0
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23236
75@ += 360.0

:QUARRY_23236
attach_object_to_car 111@(50@,3i) {handle} 88@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 75@ {zRotation} 75@
50@ += 1
create_object #DEAD_TIED_COP {x} 355.8632 {y} 895.6545 {z} 24.5629 {var_handle} 111@(50@,3i)
75@ = generate_random_float_in_range 0.0 {max} 180.0
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23364
75@ += 360.0

:QUARRY_23364
attach_object_to_car 111@(50@,3i) {handle} 88@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 75@ {zRotation} 75@
50@ += 1
create_object #DEAD_TIED_COP {x} 355.8632 {y} 896.6545 {z} 24.8877 {var_handle} 111@(50@,3i)
75@ = generate_random_float_in_range 0.0 {max} 180.0
75@ -= 90.0
if 
  0.0 > 75@
goto_if_false @QUARRY_23492
75@ += 360.0

:QUARRY_23492
attach_object_to_car 111@(50@,3i) {handle} 88@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 75@ {zRotation} 75@
set_car_density_multiplier 3.0
switch_emergency_services False
return 

:QUARRY_23543
34@ = 12
request_model 406
request_model #KB_BARREL
load_all_models_now 

:QUARRY_23562
if or
  not has_model_loaded 406
  not has_model_loaded #KB_BARREL
goto_if_false @QUARRY_23594
wait 0
goto @QUARRY_23562

:QUARRY_23594
88@ = create_car 406 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 88@ {heading} 295.4882
50@ = 0
create_object #KB_BARREL {x} 815.4841 {y} 846.2587 {z} 15.0409 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 816.6973 {y} 844.8737 {z} 15.046 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} -0.5 {yOffset} -0.7 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 814.2406 {y} 845.8572 {z} 14.9014 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} 0.5 {yOffset} -1.7 {zOffset} 0.93 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 815.048 {y} 844.0368 {z} 14.8892 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.93 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 813.2042 {y} 843.0317 {z} 14.7114 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.96 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ += 1
create_object #KB_BARREL {x} 813.2919 {y} 845.4581 {z} 14.8038 {var_handle} 101@(50@,10i)
attach_object_to_car 101@(50@,10i) {handle} 88@ {xOffset} -0.5 {yOffset} -2.7 {zOffset} 0.96 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
set_object_proofs 101@(50@,10i) {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} True {meleeProof} False
50@ = 0
create_object #CR_AMMOBOX {x} 815.4841 {y} 846.2587 {z} 15.0409 {var_handle} 122@(50@,3i)
set_object_collision 122@(50@,3i) {state} False
set_object_visible 122@(50@,3i) {state} False
attach_object_to_car 122@(50@,3i) {handle} 88@ {xOffset} -1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_AMMOBOX {x} 816.6973 {y} 844.8737 {z} 15.046 {var_handle} 122@(50@,3i)
set_object_collision 122@(50@,3i) {state} False
set_object_visible 122@(50@,3i) {state} False
attach_object_to_car 122@(50@,3i) {handle} 88@ {xOffset} 0.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_AMMOBOX {x} 815.048 {y} 844.0368 {z} 14.8892 {var_handle} 122@(50@,3i)
set_object_collision 122@(50@,3i) {state} False
set_object_visible 122@(50@,3i) {state} False
attach_object_to_car 122@(50@,3i) {handle} 88@ {xOffset} 1.0 {yOffset} -5.0 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
switch_emergency_services False
return 

:QUARRY_24497
34@ = 14
request_model 486
request_model #KB_BARREL
request_model 538
request_model 570
load_all_models_now 

:QUARRY_24526
if or
  not has_model_loaded 486
  not has_model_loaded #KB_BARREL
  not has_model_loaded 538
  not has_model_loaded 570
goto_if_false @QUARRY_24568
wait 0
goto @QUARRY_24526

:QUARRY_24568
87@ = create_car 486 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 87@ {heading} 295.4882
90@ = create_mission_train 11 {x} 832.5291 {y} 2669.7161 {z} 19.8594 {direction} False
set_train_speed 90@ {speed} 0.0
set_train_cruise_speed 90@ {speed} 0.0
121@ = create_object #CR_AMMOBOX {x} 816.4832 {y} 848.8509 {z} 9.4934
set_object_collision 121@ {state} False
set_object_visible 121@ {state} False
attach_object_to_car 121@ {handle} 90@ {xOffset} 0.0 {yOffset} 9.0 {zOffset} -1.8 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
50@ = 0
create_object #KB_BARREL {x} 744.1446 {y} 1583.6 {z} 7.5408 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 0.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.0427 {y} 1602.7679 {z} 7.1368 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 78.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.5758 {y} 1616.749 {z} 6.8536 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 64.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.6569 {y} 1653.42 {z} 6.158 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 36.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.8057 {y} 1671.5229 {z} 5.8467 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 14.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.5768 {y} 1700.3051 {z} 5.4186 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 128.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 743.4429 {y} 1730.141 {z} 5.0731 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 96.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.0187 {y} 1765.321 {z} 4.6566 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 65.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.176 {y} 1812.375 {z} 4.3281 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 170.0 {z} 0.0
50@ += 1
create_object #KB_BARREL {x} 742.7178 {y} 1869.991 {z} 4.3281 {var_handle} 101@(50@,10i)
set_object_rotation 101@(48@,10i) {x} 0.0 {y} 143.0 {z} 0.0
switch_random_trains False
return 

:QUARRY_25306
34@ = 16
request_model 406
request_model 18
request_model #CR_GUNCRATE
load_all_models_now 

:QUARRY_25329
if or
  not has_model_loaded 406
  not has_model_loaded 18
  not has_model_loaded #CR_GUNCRATE
goto_if_false @QUARRY_25365
wait 0
goto @QUARRY_25329

:QUARRY_25365
88@ = create_car 406 {x} 816.4832 {y} 845.8509 {z} 9.4934
set_car_heading 88@ {heading} 295.4882
91@ = create_car 406 {x} 812.4955 {y} 1144.567 {z} 27.3445
set_car_heading 91@ {heading} 116.9096
lock_car_doors 91@ {lockStatus} CarLock.Locked
85@ = create_char_inside_car 91@ {pedType} PedType.CivMale {modelId} 18
50@ = 0
create_object #CR_GUNCRATE {x} 815.4841 {y} 846.2587 {z} 15.0409 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 816.6973 {y} 844.8737 {z} 15.046 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -0.7 {zOffset} 0.7 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 814.2406 {y} 845.8572 {z} 14.9014 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 815.048 {y} 844.0368 {z} 14.8892 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -1.7 {zOffset} 0.73 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 813.2042 {y} 843.0317 {z} 14.7114 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} 0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
50@ += 1
create_object #CR_GUNCRATE {x} 813.2919 {y} 845.4581 {z} 14.8038 {var_handle} 94@(50@,7i)
attach_object_to_car 94@(50@,7i) {handle} 91@ {xOffset} -0.5 {yOffset} -2.7 {zOffset} 0.76 {xRotation} 90.0 {yRotation} 0.0 {zRotation} 0.0
switch_emergency_services False
return 

:QUARRY_25912
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
clear_small_prints 
switch_start 45@ {numCases} 14 {hasDefaultCase} 0 {defaultLabel} @QUARRY_26380 {caseNum1} 1 {caseLabel1} @QUARRY_26081 {caseNum2} 2 {caseLabel2} @QUARRY_26104 {caseNum3} 3 {caseLabel3} @QUARRY_26127 {caseNum4} 4 {caseLabel4} @QUARRY_26150 {caseNum5} 5 {caseLabel5} @QUARRY_26173 {caseNum6} 6 {caseLabel6} @QUARRY_26196 {caseNum7} 7 {caseLabel7} @QUARRY_26219
switch_continued 8 {caseLabel1} @QUARRY_26242 {caseNum2} 9 {caseLabel2} @QUARRY_26265 {caseNum3} 10 {caseLabel3} @QUARRY_26058 {caseNum4} 11 {caseLabel4} @QUARRY_26288 {caseNum5} 12 {caseLabel5} @QUARRY_26311 {caseNum6} 13 {caseLabel6} @QUARRY_26334 {caseNum7} 14 {caseLabel7} @QUARRY_26357 {caseNum8} -1 {caseLabel8} @QUARRY_26380 {caseNum9} -1 {caseLabel9} @QUARRY_26380

:QUARRY_26058
print_now 'QUAR_F0' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26081
print_now 'QUAR_F1' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26104
print_now 'QUAR_F2' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26127
print_now 'QUAR_F3' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26150
print_now 'QUAR_F4' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26173
print_now 'QUAR_F5' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26196
print_now 'QUAR_F6' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26219
print_now 'QUAR_F7' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26242
print_now 'QUAR_F8' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26265
print_now 'QUAR_F9' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26288
print_now 'QUAR_FA' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26311
print_now 'QUAR_FB' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26334
print_now 'QUAR_FC' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26357
print_now 'QUAR_FD' {time} 5000 {flag} 1
goto @QUARRY_26380

:QUARRY_26380
return 

:QUARRY_26382
if 
  207@ == 0
goto_if_false @QUARRY_26423
set_lvar_int_to_lvar_int 50@ = 46@
sub_int_lvar_from_int_lvar 50@ -= 206@
goto @QUARRY_26439

:QUARRY_26423
set_lvar_int_to_lvar_int 50@ = 207@
sub_int_lvar_from_int_lvar 50@ -= 206@

:QUARRY_26439
set_lvar_int_to_lvar_int 51@ = 50@
51@ /= 1000
set_lvar_int_to_lvar_int 52@ = 51@
52@ *= 1000
sub_int_lvar_from_int_lvar 50@ -= 52@
if 
  50@ > 50
goto_if_false @QUARRY_26504
51@ += 1

:QUARRY_26504
293@ = 0
294@ = 0
if 
  is_int_var_equal_to_int_lvar $g_Quarry_recordsKM($g_nQuarryMissionsPassed,7i) == 51@
goto_if_false @QUARRY_26555
293@ = 1
goto @QUARRY_26585

:QUARRY_26555
if 
  is_int_var_greater_than_int_lvar $g_Quarry_recordsKM($g_nQuarryMissionsPassed,7i) > 51@
goto_if_false @QUARRY_26585
294@ = 1

:QUARRY_26585
if 
  294@ == 1
goto_if_false @QUARRY_26615
set_var_int_to_lvar_int $g_Quarry_recordsKM($g_nQuarryMissionsPassed,7i) = 51@

:QUARRY_26615
if and
  $done_quarry_progress == 1
  294@ == 1
goto_if_false @QUARRY_26686
set_lvar_int_to_lvar_int 208@ = 51@
208@ /= 60
set_lvar_int_to_lvar_int 50@ = 208@
50@ *= 60
set_lvar_int_to_lvar_int 209@ = 51@
sub_int_lvar_from_int_lvar 209@ -= 50@

:QUARRY_26686
50@ = 0
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_26751
48@ = 0

:QUARRY_26718
add_int_var_to_int_lvar 50@ += $g_Quarry_recordsKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_26718

:QUARRY_26751
set_int_stat StatId.QuarryCompletionTime {value} 50@
if and
  $done_quarry_progress == 1
  294@ == 1
goto_if_false @QUARRY_26830
set_lvar_int_to_lvar_int 210@ = 50@
210@ /= 60
set_lvar_int_to_lvar_int 51@ = 210@
51@ *= 60
set_lvar_int_to_lvar_int 211@ = 50@
sub_int_lvar_from_int_lvar 211@ -= 51@

:QUARRY_26830
$g_nQuarryMissionsPassed += 1
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_27101
switch_start $g_nQuarryMissionsPassed {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @QUARRY_27023 {caseNum1} 1 {caseLabel1} @QUARRY_26918 {caseNum2} 2 {caseLabel2} @QUARRY_26933 {caseNum3} 3 {caseLabel3} @QUARRY_26948 {caseNum4} 4 {caseLabel4} @QUARRY_26963 {caseNum5} 5 {caseLabel5} @QUARRY_26978 {caseNum6} 6 {caseLabel6} @QUARRY_26993 {caseNum7} 7 {caseLabel7} @QUARRY_27008

:QUARRY_26918
50@ = 500
goto @QUARRY_27023

:QUARRY_26933
50@ = 1000
goto @QUARRY_27023

:QUARRY_26948
50@ = 2000
goto @QUARRY_27023

:QUARRY_26963
50@ = 3000
goto @QUARRY_27023

:QUARRY_26978
50@ = 5000
goto @QUARRY_27023

:QUARRY_26993
50@ = 7500
goto @QUARRY_27023

:QUARRY_27008
50@ = 10000
goto @QUARRY_27023

:QUARRY_27023
if 
  $g_nQuarryMissionsPassed == 7
goto_if_false @QUARRY_27067
print_with_number_big 'M_PASS' {num} 50@ {duration} 3000 {style} TextStyle.Middle
goto @QUARRY_27086

:QUARRY_27067
print_with_number_big 'M_PASS' {num} 50@ {duration} 5000 {style} TextStyle.Middle

:QUARRY_27086
add_score $player1 {money} 50@
goto @QUARRY_27206

:QUARRY_27101
print_with_number_big 'M_PASSD' {num} 0 {duration} 5000 {style} TextStyle.Middle
if 
  293@ == 1
goto_if_false @QUARRY_27160
print_now 'QUAR_P5' {time} 5000 {flag} 1
goto @QUARRY_27206

:QUARRY_27160
if 
  294@ == 1
goto_if_false @QUARRY_27206
print_with_4_numbers_now 'QUAR_P6' {num1} 208@ {num2} 209@ {num3} 210@ {num4} 211@ {duration} 10000 {style} TextStyle.Middle

:QUARRY_27206
clear_wanted_level $player1
if 
  $done_quarry_progress == 0
goto_if_false @QUARRY_27487
if 
  $g_nQuarryMissionsPassed == 1
goto_if_false @QUARRY_27270
print_now 'QUAR_P1' {time} 5000 {flag} 1
goto @QUARRY_27480

:QUARRY_27270
if 
  $g_nQuarryMissionsPassed == 7
goto_if_false @QUARRY_27461
register_oddjob_mission_passed 
player_made_progress 1
play_mission_passed_tune 2
$done_quarry_progress = 1
$g_nQuarryMissionsPassed = 0
print_big 'QUAR_P2' {time} 4000 {style} TextStyle.MiddleSmaller
50@ = 0
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_27393
48@ = 0

:QUARRY_27360
add_int_var_to_int_lvar 50@ += $g_Quarry_recordsKM(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27360

:QUARRY_27393
set_int_stat StatId.QuarryCompletionTime {value} 50@
set_lvar_int_to_lvar_int 210@ = 50@
210@ /= 60
set_lvar_int_to_lvar_int 51@ = 210@
51@ *= 60
set_lvar_int_to_lvar_int 211@ = 50@
sub_int_lvar_from_int_lvar 211@ -= 51@
295@ = 1
goto @QUARRY_27480

:QUARRY_27461
print_with_number_now 'QUAR_P4' {num} $g_nQuarryMissionsPassed {duration} 5000 {flag} 1

:QUARRY_27480
goto @QUARRY_27512

:QUARRY_27487
if 
  $g_nQuarryMissionsPassed == 7
goto_if_false @QUARRY_27512
$g_nQuarryMissionsPassed = 0

:QUARRY_27512
if 
  $done_quarry_progress == 1
goto_if_false @QUARRY_27544
switch_car_generator $gen_car1 {amount} 101
switch_car_generator $gen_car2 {amount} 101

:QUARRY_27544
return 

:QUARRY_27546
mark_car_as_no_longer_needed 86@
mark_car_as_no_longer_needed 87@
mark_car_as_no_longer_needed 88@
mark_car_as_no_longer_needed 89@
mark_car_as_no_longer_needed 91@
mark_char_as_no_longer_needed 85@
mark_object_as_no_longer_needed 92@
mark_object_as_no_longer_needed 93@
mark_object_as_no_longer_needed 121@
mark_mission_train_as_no_longer_needed 90@
48@ = 0

:QUARRY_27603
mark_object_as_no_longer_needed 94@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27603
48@ = 0

:QUARRY_27640
mark_object_as_no_longer_needed 101@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_27640
48@ = 0

:QUARRY_27677
mark_object_as_no_longer_needed 111@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_27677
48@ = 0

:QUARRY_27714
mark_object_as_no_longer_needed 114@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27714
48@ = 0

:QUARRY_27751
mark_object_as_no_longer_needed 122@(48@,3i)
48@ += 1
  48@ >= 3
goto_if_false @QUARRY_27751
48@ = 0

:QUARRY_27788
delete_checkpoint 190@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27788
delete_checkpoint 197@
remove_blip 125@
remove_blip 126@
remove_blip 128@
remove_blip 130@
remove_blip 129@
remove_blip 131@
remove_blip 132@
remove_blip 140@
remove_blip 141@
remove_blip 152@
remove_blip 127@
48@ = 0

:QUARRY_27885
remove_blip 133@(48@,7i)
48@ += 1
  48@ >= 7
goto_if_false @QUARRY_27885
48@ = 0

:QUARRY_27922
remove_blip 142@(48@,10i)
48@ += 1
  48@ >= 10
goto_if_false @QUARRY_27922
clear_onscreen_timer $g_Quarry_timerKM
clear_onscreen_counter $g_Quarry_damageKM
clear_all_script_fire_flags 
if 
  262@ == 1
goto_if_false @QUARRY_27984
clear_help 

:QUARRY_27984
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 486
mark_model_as_no_longer_needed 406
mark_model_as_no_longer_needed #DYN_QUARRYROCK02
mark_model_as_no_longer_needed #DEAD_TIED_COP
mark_model_as_no_longer_needed #DYN_QUARRYROCK03
mark_model_as_no_longer_needed 523
mark_model_as_no_longer_needed #CR_AMMOBOX
mark_model_as_no_longer_needed #KB_BARREL
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed #CR_GUNCRATE
mark_model_as_no_longer_needed #CM_BOX
mark_model_as_no_longer_needed #BLACKBAG2
mark_model_as_no_longer_needed #DYN_WOODPILE
mark_model_as_no_longer_needed #DYN_WOODPILE2
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
if 
  283@ == 1
goto_if_false @QUARRY_28307
switch_roads_back_to_original 256.6312 {leftBottomY} 734.7498 {leftBottomZ} 4.0053 {rightTopX} 343.9576 {rightTopY} 765.6713 {rightTopZ} 6.4852
switch_roads_back_to_original 291.2253 {leftBottomY} 762.6765 {leftBottomZ} 4.0625 {rightTopX} 354.4869 {rightTopY} 784.4223 {rightTopZ} 6.6101
switch_roads_back_to_original -149.9865 {leftBottomY} 460.067 {leftBottomZ} 4.9719 {rightTopX} -119.7325 {rightTopY} 530.4155 {rightTopZ} 12.4813
switch_roads_back_to_original -100.9858 {leftBottomY} 1190.38 {leftBottomZ} 16.1736 {rightTopX} 97.0928 {rightTopY} 1205.202 {rightTopZ} 19.9344
switch_roads_back_to_original -124.9028 {leftBottomY} 1209.5811 {leftBottomZ} 14.6519 {rightTopX} -108.1954 {rightTopY} 1243.821 {rightTopZ} 19.8554
switch_roads_back_to_original -113.2273 {leftBottomY} 1246.4771 {leftBottomZ} 11.3781 {rightTopX} -84.1825 {rightTopY} 1268.751 {rightTopZ} 17.5621

:QUARRY_28307
$timer_mobile_start = get_game_timer 
draw_oddjob_title_before_fade True
$onmission = 0
$flag_player_on_oddjob = 0
mission_has_finished 
return 

//-------------Mission 119---------------
// Originally: Boat School

:BOAT
script_name 'BOAT'
gosub @BOAT_416
if 
  has_deatharrest_been_executed 
goto_if_false @BOAT_38
gosub @BOAT_37691

:BOAT_38
gosub @BOAT_37809
terminate_this_script 
if 
  $onmission == 0
goto_if_false @BOAT_416
if 
  36@ == 13
goto_if_false @BOAT_416
37@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
46@ = create_car 415 {x} 5.0 {y} 5.0 {z} 10.0
47@ = create_char PedType.Mission1 {modelId} 210 {x} 20.0 {y} 20.0 {z} 20.0
39@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
42@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
43@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
40@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
41@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
45@ = create_char PedType.Mission1 {modelId} 210 {x} 30.0 {y} 30.0 {z} 20.0
44@ = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
156@ = 0

:BOAT_330
if 
  13 > 156@
goto_if_false @BOAT_416
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
create_object_no_offset #WATERJUMP1 {x} 0.0 {y} 0.0 {z} 150.0 {var_handle} 106@(156@,50i)
156@ += 1
goto @BOAT_330

:BOAT_416
$onmission = 1
if 
  $boat_passed_once == 0
goto_if_false @BOAT_443
register_mission_given 

:BOAT_443
load_mission_text 'BOAT'
show_update_stats False
display_car_names False
display_zone_names False
if 
  is_player_playing $player1
goto_if_false @BOAT_489
set_player_can_do_drive_by $player1 {state} False

:BOAT_489
wait 0
249@ = 0
251@ = 0
34@ = 0
35@ = 0
248@ = 0
36@ = 0
$boat_mission_selection = 1
182@ = -2215.5801
183@ = 2391.7
184@ = 3.965
174@ = -2185.335
175@ = 2410.4089
176@ = 3.9752
177@ = 122.2585
178@ = -2216.3269
179@ = 2393.209
180@ = 3.9
181@ = 238.0
55@ = 0
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
$boat_which_medal_displayed = 0
$boat_which_score_displayed = 0
169@ = 0
232@ = 0
192@ = 0.0
193@ = 0.0
194@ = 0.0
212@ = 12000
213@ = 12000
214@ = 10500
215@ = 9700
216@ = 40000
217@ = 40000
218@ = 37000
219@ = 33000
220@ = 120000
221@ = 120000
222@ = 85000
223@ = 80000
224@ = 55
225@ = 55
226@ = 63
227@ = 67
228@ = 180000
229@ = 180000
230@ = 150000
231@ = 130000
set_fading_colour 0 {g} 0 {b} 0
wait 0
request_model 210
request_model 473
request_model 497
request_model 472
request_model 484
request_model 454
request_model 539
load_all_models_now 

:BOAT_981
if or
  not has_model_loaded 210
  not has_model_loaded 473
  not has_model_loaded 497
  not has_model_loaded 472
goto_if_false @BOAT_1023
wait 0
goto @BOAT_981

:BOAT_1023
if or
  not has_model_loaded 484
  not has_model_loaded 454
  not has_model_loaded 539
goto_if_false @BOAT_1060
wait 0
goto @BOAT_1023

:BOAT_1060
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRONZE"
load_sprite 2 {spriteName} "SILVER"
load_sprite 3 {spriteName} "GOLD"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
set_char_coordinates $scplayer {x} 174@ {y} 175@ {z} 176@
set_char_heading $scplayer {heading} 177@
set_char_drowns_in_water $scplayer {state} False
38@ = create_char PedType.Mission1 {modelId} 210 {x} 178@ {y} 179@ {z} 180@
set_char_heading 38@ {heading} 181@
set_char_never_targetted 38@ {state} True
if 
  $boat_introcutscene == 0
goto_if_false @BOAT_1262
$boat_introcutscene = 50

:BOAT_1262
wait 0
if 
  $boat_introcutscene == 50
goto_if_false @BOAT_1316
goto @BOAT_1323
if 
  is_char_dead 38@
goto_if_false @BOAT_1316
clear_help 
goto @BOAT_37691

:BOAT_1316
goto @BOAT_1262

:BOAT_1323
display_hud False
display_radar False
set_player_control $player1 {state} False
clear_help 
clear_prints 
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
gosub @BOAT_19792
$boatpb_flag = 0
$boat_control_flag = 0
use_text_commands True
$boat_alpha = 255
$boat_fade_flag = 2
if 
  6 > $boat_which_missions_are_open_flag
goto_if_false @BOAT_1422
set_var_int_to_var_int $boat_mission_selection = $boat_which_missions_are_open_flag

:BOAT_1422
gosub @BOAT_25116
display_hud False
display_radar False
set_area_visible 0
do_fade 500 {direction} Fade.In

:BOAT_1448
wait 0
gosub @BOAT_25116
if 
  34@ == 0
goto_if_false @BOAT_1491
load_mission_audio MissionAudioSlot.Slot3 {audioId} 3800
34@ = 1

:BOAT_1491
if 
  34@ == 1
goto_if_false @BOAT_1531
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BOAT_1531
34@ = 2

:BOAT_1531
if 
  34@ == 2
goto_if_false @BOAT_1560
play_mission_audio MissionAudioSlot.Slot3
34@ = 3

:BOAT_1560
force_weather_now WeatherType.ExtraSunnyCountryside
set_time_of_day 12 {minutes} 50
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundDisableHeliAudio
if 
  $boat_control_flag == 0
goto_if_false @BOAT_2122
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BOAT_1698
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_1698
$boat_mission_selection -= 1
if 
  4 > $boatpb_flag
goto_if_false @BOAT_1698
$boatpb_flag = 3

:BOAT_1698
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BOAT_1772
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_1772
$boat_mission_selection += 1
if 
  4 > $boatpb_flag
goto_if_false @BOAT_1772
$boatpb_flag = 3

:BOAT_1772
if 
  1 > $boat_mission_selection
goto_if_false @BOAT_1798
set_var_int_to_var_int $boat_mission_selection = $boat_which_missions_are_open_flag

:BOAT_1798
if 
  is_int_var_greater_than_int_var $boat_mission_selection > $boat_which_missions_are_open_flag
goto_if_false @BOAT_1824
$boat_mission_selection = 1

:BOAT_1824
if 
  $boat_which_missions_are_open_flag > 1
goto_if_false @BOAT_2016

:BOAT_1842
if 
  -100 > $LStickX
goto_if_false @BOAT_1894
wait 0
gosub @BOAT_25116
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BOAT_1842

:BOAT_1894
if 
  $LStickX > 100
goto_if_false @BOAT_1946
wait 0
gosub @BOAT_25116
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BOAT_1894

:BOAT_1946
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BOAT_1981
wait 0
gosub @BOAT_25116
goto @BOAT_1946

:BOAT_1981
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BOAT_2016
wait 0
gosub @BOAT_25116
goto @BOAT_1981

:BOAT_2016
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BOAT_2076
if 
  4 > $boatpb_flag
goto_if_false @BOAT_2058
$boatpb_flag = 3

:BOAT_2058
clear_mission_audio MissionAudioSlot.Slot3
34@ = 0
goto @BOAT_2136

:BOAT_2076
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @BOAT_2098
$boat_which_missions_are_open_flag = 5

:BOAT_2098
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_2122
goto @BOAT_37691

:BOAT_2122
gosub @BOAT_32194
goto @BOAT_1448

:BOAT_2136
do_fade 500 {direction} Fade.Out

:BOAT_2143
if 
  get_fading_status 
goto_if_false @BOAT_2174
wait 0
gosub @BOAT_25116
goto @BOAT_2143

:BOAT_2174
if 
  not is_car_dead 37@
goto_if_false @BOAT_2195
stop_playback_recorded_car 37@

:BOAT_2195
restore_camera_jumpcut 
delete_car 37@
delete_car 46@
delete_char 47@
delete_char 39@
gosub @BOAT_37625
$boatpb_flag = 5
display_hud True
display_radar True
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_3803

:BOAT_2257
gosub @BOAT_34020

:BOAT_2264
set_player_control $player1 {state} True
gosub @BOAT_19792
46@ = create_car 497 {x} -3303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
248@ = 0
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 472 {x} -2323.627 {y} 2105.29 {z} 0.0
change_car_colour 37@ {color1} 1 {color2} 114
set_car_heading 37@ {heading} 90.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_34197
if 
  $boatpb_flag == 0
goto_if_false @BOAT_2488
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_2488
gosub @BOAT_33612
print_help 'BOAT_H2'
set_player_control $player1 {state} True
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
change_blip_colour 53@ {color} BlipColor.Yellow
change_blip_colour 54@ {color} BlipColor.Yellow
if 
  not is_car_dead 37@
goto_if_false @BOAT_2637
185@, 186@, 187@ = get_car_coordinates 37@
set_lvar_float_to_lvar_float 192@ = 185@
192@ -= 195.0
set_lvar_float_to_lvar_float 193@ = 186@
set_lvar_float_to_lvar_float 194@ = 187@

:BOAT_2637
wait 0
if 
  not is_car_dead 46@
goto_if_false @BOAT_2731
if 
  not is_car_dead 37@
goto_if_false @BOAT_2731
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 120.0 {maxAltitude} 120.0

:BOAT_2731
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_2762
164@ = 2
goto @BOAT_3743

:BOAT_2762
gosub @BOAT_20340
if 
  164@ == 1
goto_if_false @BOAT_2794
goto @BOAT_37691

:BOAT_2794
if 
  158@ == 0
goto_if_false @BOAT_2971
print_now 'BOAT_A4' {time} 5000 {flag} 1
if 
  not is_car_dead 37@
goto_if_false @BOAT_2852
250@ = get_car_health 37@

:BOAT_2852
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_2971
sync_water 
set_lvar_int_to_lvar_int 211@ = 215@
set_lvar_int_to_lvar_int 210@ = 214@
set_lvar_int_to_lvar_int 209@ = 213@
158@ = 1
$boat_timer = 0
clear_onscreen_timer $boat_timer
display_onscreen_timer_with_string $boat_timer {direction} TimerDirection.Up {text} 'BOAT_T1'
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
TIMERA = 0

:BOAT_2971
if 
  158@ == 1
goto_if_false @BOAT_3267
if 
  not is_car_dead 37@
goto_if_false @BOAT_3221
49@ = get_car_speed 37@
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} -30.0 {drawSphere} False
goto_if_false @BOAT_3110
print_now 'BOAT_32' {time} 4000 {flag} 1
if 
  7.0 > 49@
goto_if_false @BOAT_3110
clear_prints 
print_now 'BOAT_33' {time} 4000 {flag} 1
158@ = 99

:BOAT_3110
if 
  TIMERA > 4500
goto_if_false @BOAT_3166
if 
  not is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} -30.0 {drawSphere} False
goto_if_false @BOAT_3166
clear_prints 

:BOAT_3166
if 
  248@ == 0
goto_if_false @BOAT_3221
if 
  TIMERA > 4500
goto_if_false @BOAT_3221
248@ = 1
print_help 'BOAT_A5'

:BOAT_3221
if 
  $boat_timer > 60000
goto_if_false @BOAT_3267
clear_prints 
print_now 'BOAT_34' {time} 4000 {flag} 1
158@ = 99

:BOAT_3267
if 
  158@ == 99
goto_if_false @BOAT_3796
gosub @BOAT_20088
gosub @BOAT_20416
if 
  is_int_var_greater_than_int_lvar $boat_accelerate_best_score > 168@
goto_if_false @BOAT_3505
set_lvar_int_to_var_int 169@ = $boat_accelerate_best_score
set_var_int_to_lvar_int $boat_accelerate_best_score = 168@
167@ = 1
gosub @BOAT_21188
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_3405
if 
  $boat_accelerate_goldachieved == 0
goto_if_false @BOAT_3405
$boat_accelerate_goldachieved = 1
$boat_accelerate_silverachieved = 1
$boat_accelerate_bronzeachieved = 1

:BOAT_3405
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_3455
if 
  $boat_accelerate_silverachieved == 0
goto_if_false @BOAT_3455
$boat_accelerate_silverachieved = 1
$boat_accelerate_bronzeachieved = 1

:BOAT_3455
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_3498
if 
  $boat_accelerate_bronzeachieved == 0
goto_if_false @BOAT_3498
$boat_accelerate_bronzeachieved = 1

:BOAT_3498
goto @BOAT_3512

:BOAT_3505
$boat_which_medal_displayed = 0

:BOAT_3512
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_3590
if 
  is_int_lvar_greater_than_int_lvar 212@ > 168@
goto_if_false @BOAT_3590
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 2
164@ = 2

:BOAT_3590
TIMERA = 0

:BOAT_3597
if 
  TIMERA > -1
goto_if_false @BOAT_3743
wait 0
gosub @BOAT_20759
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_3677
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_3743

:BOAT_3677
gosub @BOAT_21719
gosub @BOAT_20005
if 
  165@ == 1
goto_if_false @BOAT_3736
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_3743

:BOAT_3736
goto @BOAT_3597

:BOAT_3743
gosub @BOAT_24852
gosub @BOAT_37625
if 
  164@ == 2
goto_if_false @BOAT_3789
goto @BOAT_1323
goto @BOAT_3796

:BOAT_3789
goto @BOAT_2257

:BOAT_3796
goto @BOAT_2637

:BOAT_3803
if 
  $boat_mission_selection == 2
goto_if_false @BOAT_6502

:BOAT_3821
gosub @BOAT_34020

:BOAT_3828
set_player_control $player1 {state} True
gosub @BOAT_19792
46@ = create_car 497 {x} -2303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 472 {x} -2578.6709 {y} 2050.845 {z} 0.0
change_car_colour 37@ {color1} 1 {color2} 114
set_car_heading 37@ {heading} 0.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_34197
if 
  $boatpb_flag == 0
goto_if_false @BOAT_4045
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_4045
gosub @BOAT_33612
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_4181
185@, 186@, 187@ = get_car_coordinates 37@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
change_blip_colour 52@ {color} BlipColor.Yellow
51@ = add_blip_for_object 57@
change_blip_colour 51@ {color} BlipColor.Yellow
53@ = add_blip_for_object 58@
54@ = add_blip_for_object 59@
gosub @BOAT_34153

:BOAT_4181
wait 0
if 
  not is_car_dead 46@
goto_if_false @BOAT_4275
if 
  not is_car_dead 37@
goto_if_false @BOAT_4275
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 200.0 {maxAltitude} 200.0

:BOAT_4275
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_4306
164@ = 2
goto @BOAT_6442

:BOAT_4306
gosub @BOAT_20340
if 
  164@ == 1
goto_if_false @BOAT_4338
goto @BOAT_37691

:BOAT_4338
if 
  159@ == 0
goto_if_false @BOAT_4456
print_now 'BOAT_B4' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_4456
sync_water 
set_lvar_int_to_lvar_int 211@ = 219@
set_lvar_int_to_lvar_int 210@ = 218@
set_lvar_int_to_lvar_int 209@ = 217@
159@ = 5
$boat_timer = 0
clear_onscreen_timer $boat_timer
display_onscreen_timer_with_string $boat_timer {direction} TimerDirection.Up {text} 'BOAT_T1'

:BOAT_4456
if 
  159@ > 0
goto_if_false @BOAT_4502
if 
  $boat_timer > 600000
goto_if_false @BOAT_4502
159@ = 99

:BOAT_4502
if 
  159@ == 5
goto_if_false @BOAT_4708
if 
  not is_car_dead 37@
goto_if_false @BOAT_4708
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_4708
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
clear_help 
print_help 'BOAT_B5'
159@ = 10
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
52@ = add_blip_for_object 58@
51@ = add_blip_for_object 59@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 60@
54@ = add_blip_for_object 61@
gosub @BOAT_34153

:BOAT_4708
if 
  159@ == 10
goto_if_false @BOAT_4901
if 
  not is_car_dead 37@
goto_if_false @BOAT_4901
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_4901
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 15
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 60@
195@, 196@, 197@ = get_object_coordinates 61@
52@ = add_blip_for_object 60@
51@ = add_blip_for_object 61@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
gosub @BOAT_34153

:BOAT_4901
if 
  159@ == 15
goto_if_false @BOAT_5094
if 
  not is_car_dead 37@
goto_if_false @BOAT_5094
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5094
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 20
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 62@
195@, 196@, 197@ = get_object_coordinates 63@
52@ = add_blip_for_object 62@
51@ = add_blip_for_object 63@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 64@
54@ = add_blip_for_object 65@
gosub @BOAT_34153

:BOAT_5094
if 
  159@ == 20
goto_if_false @BOAT_5287
if 
  not is_car_dead 37@
goto_if_false @BOAT_5287
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5287
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 25
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 64@
195@, 196@, 197@ = get_object_coordinates 65@
52@ = add_blip_for_object 64@
51@ = add_blip_for_object 65@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 66@
54@ = add_blip_for_object 67@
gosub @BOAT_34153

:BOAT_5287
if 
  159@ == 25
goto_if_false @BOAT_5480
if 
  not is_car_dead 37@
goto_if_false @BOAT_5480
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5480
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 30
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 66@
195@, 196@, 197@ = get_object_coordinates 67@
52@ = add_blip_for_object 66@
51@ = add_blip_for_object 67@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 68@
54@ = add_blip_for_object 69@
gosub @BOAT_34153

:BOAT_5480
if 
  159@ == 30
goto_if_false @BOAT_5673
if 
  not is_car_dead 37@
goto_if_false @BOAT_5673
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5673
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 35
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 68@
195@, 196@, 197@ = get_object_coordinates 69@
52@ = add_blip_for_object 68@
51@ = add_blip_for_object 69@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 70@
54@ = add_blip_for_object 71@
gosub @BOAT_34153

:BOAT_5673
if 
  159@ == 35
goto_if_false @BOAT_5850
if 
  not is_car_dead 37@
goto_if_false @BOAT_5850
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5850
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
159@ = 40
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 70@
195@, 196@, 197@ = get_object_coordinates 71@
52@ = add_blip_for_object 70@
51@ = add_blip_for_object 71@
remove_blip 53@
remove_blip 54@
gosub @BOAT_34153

:BOAT_5850
if 
  159@ == 40
goto_if_false @BOAT_5966
if 
  not is_car_dead 37@
goto_if_false @BOAT_5966
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_5966
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_33' {time} 1000 {flag} 1
159@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_5966
if 
  159@ == 99
goto_if_false @BOAT_6495
gosub @BOAT_20088
gosub @BOAT_20416
if 
  is_int_var_greater_than_int_lvar $boat_simplecircuit_best_score > 168@
goto_if_false @BOAT_6204
set_lvar_int_to_var_int 169@ = $boat_simplecircuit_best_score
set_var_int_to_lvar_int $boat_simplecircuit_best_score = 168@
167@ = 1
gosub @BOAT_21188
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_6104
if 
  $boat_simplecircuit_goldachieved == 0
goto_if_false @BOAT_6104
$boat_simplecircuit_goldachieved = 1
$boat_simplecircuit_silverachieved = 1
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6104
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_6154
if 
  $boat_simplecircuit_silverachieved == 0
goto_if_false @BOAT_6154
$boat_simplecircuit_silverachieved = 1
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6154
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_6197
if 
  $boat_simplecircuit_bronzeachieved == 0
goto_if_false @BOAT_6197
$boat_simplecircuit_bronzeachieved = 1

:BOAT_6197
goto @BOAT_6211

:BOAT_6204
$boat_which_medal_displayed = 0

:BOAT_6211
if 
  $boat_which_missions_are_open_flag == 2
goto_if_false @BOAT_6289
if 
  is_int_lvar_greater_than_int_lvar 216@ > 168@
goto_if_false @BOAT_6289
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 3
164@ = 2

:BOAT_6289
TIMERA = 0

:BOAT_6296
if 
  TIMERA > -1
goto_if_false @BOAT_6442
wait 0
gosub @BOAT_20759
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_6376
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_6442

:BOAT_6376
gosub @BOAT_21719
gosub @BOAT_20005
if 
  165@ == 1
goto_if_false @BOAT_6435
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_6442

:BOAT_6435
goto @BOAT_6296

:BOAT_6442
gosub @BOAT_24852
gosub @BOAT_37625
if 
  164@ == 2
goto_if_false @BOAT_6488
goto @BOAT_1323
goto @BOAT_6495

:BOAT_6488
goto @BOAT_3821

:BOAT_6495
goto @BOAT_4181

:BOAT_6502
if 
  $boat_mission_selection == 3
goto_if_false @BOAT_10905

:BOAT_6520
gosub @BOAT_34020

:BOAT_6527
set_player_control $player1 {state} True
gosub @BOAT_19792
46@ = create_car 497 {x} -2303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 473 {x} -2124.125 {y} 2438.3521 {z} 0.0
change_car_colour 37@ {color1} 114 {color2} 1
set_car_heading 37@ {heading} 180.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_34197
if 
  $boatpb_flag == 0
goto_if_false @BOAT_6744
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_6744
gosub @BOAT_33612
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_6880
185@, 186@, 187@ = get_car_coordinates 37@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
53@ = add_blip_for_object 58@
54@ = add_blip_for_object 59@
gosub @BOAT_34153

:BOAT_6880
35@ = 0

:BOAT_6887
wait 0
if 
  35@ == 0
goto_if_false @BOAT_6923
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6200
35@ = 1

:BOAT_6923
if 
  35@ == 1
goto_if_false @BOAT_6963
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BOAT_6963
35@ = 2

:BOAT_6963
if 
  not is_car_dead 46@
goto_if_false @BOAT_7053
if 
  not is_car_dead 37@
goto_if_false @BOAT_7053
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 200.0 {maxAltitude} 200.0

:BOAT_7053
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_7084
164@ = 2
goto @BOAT_10845

:BOAT_7084
gosub @BOAT_20340
if 
  164@ == 1
goto_if_false @BOAT_7116
goto @BOAT_37691

:BOAT_7116
if 
  160@ == 0
goto_if_false @BOAT_7250
print_now 'BOAT_C1' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_7250
sync_water 
set_lvar_int_to_lvar_int 211@ = 223@
set_lvar_int_to_lvar_int 210@ = 222@
set_lvar_int_to_lvar_int 209@ = 221@
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 65535
160@ = 5
$boat_timer = 0
clear_onscreen_timer $boat_timer
display_onscreen_timer_with_string $boat_timer {direction} TimerDirection.Up {text} 'BOAT_T1'

:BOAT_7250
if 
  160@ > 0
goto_if_false @BOAT_7296
if 
  $boat_timer > 600000
goto_if_false @BOAT_7296
160@ = 99

:BOAT_7296
if 
  160@ == 5
goto_if_false @BOAT_7489
if 
  not is_car_dead 37@
goto_if_false @BOAT_7489
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_7489
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 10
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
52@ = add_blip_for_object 58@
51@ = add_blip_for_object 59@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 60@
54@ = add_blip_for_object 61@
gosub @BOAT_34153

:BOAT_7489
if 
  160@ == 10
goto_if_false @BOAT_7682
if 
  not is_car_dead 37@
goto_if_false @BOAT_7682
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_7682
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 15
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 60@
195@, 196@, 197@ = get_object_coordinates 61@
52@ = add_blip_for_object 60@
51@ = add_blip_for_object 61@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
gosub @BOAT_34153

:BOAT_7682
if 
  160@ == 15
goto_if_false @BOAT_7963
if 
  not is_car_dead 37@
goto_if_false @BOAT_7963
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_7963
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 20
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 62@
195@, 196@, 197@ = get_object_coordinates 63@
52@ = add_blip_for_object 62@
51@ = add_blip_for_object 63@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 64@
54@ = add_blip_for_object 65@
gosub @BOAT_34153
if 
  not is_car_dead 44@
goto_if_false @BOAT_7963
if 
  not is_char_dead 45@
goto_if_false @BOAT_7963
if 
  35@ == 2
goto_if_false @BOAT_7929
play_mission_audio MissionAudioSlot.Slot3

:BOAT_7929
task_car_drive_to_coord 45@ {vehicle} 44@ {x} -2013.476 {y} 1748.499 {z} 0.0 {speed} 18.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_7963
if 
  160@ == 20
goto_if_false @BOAT_8156
if 
  not is_car_dead 37@
goto_if_false @BOAT_8156
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8156
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 25
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 64@
195@, 196@, 197@ = get_object_coordinates 65@
52@ = add_blip_for_object 64@
51@ = add_blip_for_object 65@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 66@
54@ = add_blip_for_object 67@
gosub @BOAT_34153

:BOAT_8156
if 
  160@ == 25
goto_if_false @BOAT_8349
if 
  not is_car_dead 37@
goto_if_false @BOAT_8349
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8349
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 30
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 66@
195@, 196@, 197@ = get_object_coordinates 67@
52@ = add_blip_for_object 66@
51@ = add_blip_for_object 67@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 68@
54@ = add_blip_for_object 69@
gosub @BOAT_34153

:BOAT_8349
if 
  160@ == 30
goto_if_false @BOAT_8542
if 
  not is_car_dead 37@
goto_if_false @BOAT_8542
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8542
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 35
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 68@
195@, 196@, 197@ = get_object_coordinates 69@
52@ = add_blip_for_object 68@
51@ = add_blip_for_object 69@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 70@
54@ = add_blip_for_object 71@
gosub @BOAT_34153

:BOAT_8542
if 
  160@ == 35
goto_if_false @BOAT_8735
if 
  not is_car_dead 37@
goto_if_false @BOAT_8735
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8735
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 40
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 70@
195@, 196@, 197@ = get_object_coordinates 71@
52@ = add_blip_for_object 70@
51@ = add_blip_for_object 71@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 72@
54@ = add_blip_for_object 73@
gosub @BOAT_34153

:BOAT_8735
if 
  160@ == 40
goto_if_false @BOAT_8928
if 
  not is_car_dead 37@
goto_if_false @BOAT_8928
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_8928
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 45
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 72@
195@, 196@, 197@ = get_object_coordinates 73@
52@ = add_blip_for_object 72@
51@ = add_blip_for_object 73@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 74@
54@ = add_blip_for_object 75@
gosub @BOAT_34153

:BOAT_8928
if 
  160@ == 45
goto_if_false @BOAT_9121
if 
  not is_car_dead 37@
goto_if_false @BOAT_9121
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9121
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 50
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 74@
195@, 196@, 197@ = get_object_coordinates 75@
52@ = add_blip_for_object 74@
51@ = add_blip_for_object 75@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 76@
54@ = add_blip_for_object 77@
gosub @BOAT_34153

:BOAT_9121
if 
  160@ == 50
goto_if_false @BOAT_9314
if 
  not is_car_dead 37@
goto_if_false @BOAT_9314
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9314
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 55
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 76@
195@, 196@, 197@ = get_object_coordinates 77@
52@ = add_blip_for_object 76@
51@ = add_blip_for_object 77@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 78@
54@ = add_blip_for_object 79@
gosub @BOAT_34153

:BOAT_9314
if 
  160@ == 55
goto_if_false @BOAT_9507
if 
  not is_car_dead 37@
goto_if_false @BOAT_9507
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9507
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 60
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 78@
195@, 196@, 197@ = get_object_coordinates 79@
52@ = add_blip_for_object 78@
51@ = add_blip_for_object 79@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 80@
54@ = add_blip_for_object 81@
gosub @BOAT_34153

:BOAT_9507
if 
  160@ == 60
goto_if_false @BOAT_9788
if 
  not is_car_dead 37@
goto_if_false @BOAT_9788
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_9788
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 65
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 80@
195@, 196@, 197@ = get_object_coordinates 81@
52@ = add_blip_for_object 80@
51@ = add_blip_for_object 81@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 82@
54@ = add_blip_for_object 83@
gosub @BOAT_34153
if 
  not is_car_dead 41@
goto_if_false @BOAT_9788
if 
  not is_char_dead 43@
goto_if_false @BOAT_9788
if 
  35@ == 2
goto_if_false @BOAT_9754
play_mission_audio MissionAudioSlot.Slot3

:BOAT_9754
task_car_drive_to_coord 43@ {vehicle} 41@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_9788
if 
  160@ == 65
goto_if_false @BOAT_10069
if 
  not is_car_dead 37@
goto_if_false @BOAT_10069
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_10069
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 70
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 82@
195@, 196@, 197@ = get_object_coordinates 83@
52@ = add_blip_for_object 82@
51@ = add_blip_for_object 83@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 56@
54@ = add_blip_for_object 57@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_10069
if 
  not is_char_dead 42@
goto_if_false @BOAT_10069
if 
  35@ == 2
goto_if_false @BOAT_10035
play_mission_audio MissionAudioSlot.Slot3

:BOAT_10035
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_10069
if 
  160@ == 70
goto_if_false @BOAT_10253
if 
  not is_car_dead 37@
goto_if_false @BOAT_10253
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_10253
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
160@ = 80
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
remove_blip 53@
remove_blip 54@

:BOAT_10253
if 
  160@ == 80
goto_if_false @BOAT_10369
if 
  not is_car_dead 37@
goto_if_false @BOAT_10369
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_10369
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_33' {time} 1000 {flag} 1
160@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_10369
if 
  160@ == 99
goto_if_false @BOAT_10898
gosub @BOAT_20088
gosub @BOAT_20416
if 
  is_int_var_greater_than_int_lvar $boat_slalom_best_score > 168@
goto_if_false @BOAT_10607
set_lvar_int_to_var_int 169@ = $boat_slalom_best_score
set_var_int_to_lvar_int $boat_slalom_best_score = 168@
167@ = 1
gosub @BOAT_21188
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_10507
if 
  $boat_slalom_goldachieved == 0
goto_if_false @BOAT_10507
$boat_slalom_goldachieved = 1
$boat_slalom_silverachieved = 1
$boat_slalom_bronzeachieved = 1

:BOAT_10507
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_10557
if 
  $boat_slalom_silverachieved == 0
goto_if_false @BOAT_10557
$boat_slalom_silverachieved = 1
$boat_slalom_bronzeachieved = 1

:BOAT_10557
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_10600
if 
  $boat_slalom_bronzeachieved == 0
goto_if_false @BOAT_10600
$boat_slalom_bronzeachieved = 1

:BOAT_10600
goto @BOAT_10614

:BOAT_10607
$boat_which_medal_displayed = 0

:BOAT_10614
if 
  $boat_which_missions_are_open_flag == 3
goto_if_false @BOAT_10692
if 
  is_int_lvar_greater_than_int_lvar 220@ > 168@
goto_if_false @BOAT_10692
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 4
164@ = 2

:BOAT_10692
TIMERA = 0

:BOAT_10699
if 
  TIMERA > -1
goto_if_false @BOAT_10845
wait 0
gosub @BOAT_20759
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_10779
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_10845

:BOAT_10779
gosub @BOAT_21719
gosub @BOAT_20005
if 
  165@ == 1
goto_if_false @BOAT_10838
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_10845

:BOAT_10838
goto @BOAT_10699

:BOAT_10845
gosub @BOAT_24852
gosub @BOAT_37625
if 
  164@ == 2
goto_if_false @BOAT_10891
goto @BOAT_1323
goto @BOAT_10898

:BOAT_10891
goto @BOAT_6520

:BOAT_10898
goto @BOAT_6887

:BOAT_10905
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_12785

:BOAT_10923
gosub @BOAT_34020

:BOAT_10930
set_player_control $player1 {state} True
gosub @BOAT_19792
46@ = create_car 497 {x} -3303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 539 {x} -2584.3159 {y} 2213.4751 {z} 0.0
change_car_colour 37@ {color1} 78 {color2} 14
set_car_heading 37@ {heading} 250.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_34197
if 
  not is_car_dead 37@
goto_if_false @BOAT_11143
set_car_coordinates 37@ {x} -2318.0491 {y} 2312.302 {z} 10.0
set_car_heading 37@ {heading} 174.6078

:BOAT_11143
if 
  $boatpb_flag == 0
goto_if_false @BOAT_11193
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_11193
gosub @BOAT_33612
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_11294
192@ = 0.0
193@ = 0.0
194@ = 0.0
201@ = 0.0
202@ = 0.0
203@ = 0.0

:BOAT_11294
wait 0
if 
  not is_car_dead 46@
goto_if_false @BOAT_11388
if 
  not is_car_dead 37@
goto_if_false @BOAT_11388
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 120.0 {maxAltitude} 120.0

:BOAT_11388
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_11419
164@ = 2
goto @BOAT_12725

:BOAT_11419
gosub @BOAT_20340
if 
  164@ == 1
goto_if_false @BOAT_11451
goto @BOAT_37691

:BOAT_11451
if 
  161@ == 0
goto_if_false @BOAT_11656
print_now 'BOAT_D1' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_11656
sync_water 
set_lvar_int_to_lvar_int 211@ = 227@
set_lvar_int_to_lvar_int 210@ = 226@
set_lvar_int_to_lvar_int 209@ = 225@
clear_onscreen_timer $boat_timer
$boat_timer = 46000
161@ = 1
display_onscreen_timer_with_string $boat_timer {direction} TimerDirection.Down {text} 'BOAT_T1'
remove_blip 52@
remove_blip 51@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 65535

:BOAT_11656
if 
  161@ == 1
goto_if_false @BOAT_11809
if 
  not is_car_dead 37@
goto_if_false @BOAT_11809
if 
  is_char_in_angled_area_in_car_3d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {leftBottomZ} 1.0 {rightTopX} 195@ {rightTopY} 196@ {rightTopZ} 3.0 {angle} 10.0 {drawSphere} False
goto_if_false @BOAT_11809
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
remove_blip 52@
remove_blip 51@
49@ = get_car_speed 37@
161@ = 2
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
TIMERB = 0

:BOAT_11809
if 
  161@ == 2
goto_if_false @BOAT_12009
if 
  not is_car_dead 37@
goto_if_false @BOAT_12009
if 
  TIMERB > 1000
goto_if_false @BOAT_12009
192@, 193@, 194@ = get_car_coordinates 37@
if 
  1.0 > 194@
goto_if_false @BOAT_12009
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 600.0 {drawSphere} False
goto_if_false @BOAT_11960
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
161@ = 3
TIMERB = 0

:BOAT_11960
if 
  not is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 600.0 {drawSphere} False
goto_if_false @BOAT_12009
161@ = 4
TIMERB = 0

:BOAT_12009
if 
  161@ == 3
goto_if_false @BOAT_12095
201@, 202@, 203@ = get_object_coordinates 106@
246@ = get_distance_between_coords_2d 201@ {fromY} 202@ {toX} 192@ {toZ} 193@

:BOAT_12058
if 
  1000 > TIMERB
goto_if_false @BOAT_12088
wait 0
goto @BOAT_12058

:BOAT_12088
161@ = 99

:BOAT_12095
if 
  161@ == 4
goto_if_false @BOAT_12160

:BOAT_12113
if 
  1000 > TIMERB
goto_if_false @BOAT_12143
wait 0
goto @BOAT_12113

:BOAT_12143
246@ = 0.0
161@ = 99

:BOAT_12160
if 
  161@ > 0
goto_if_false @BOAT_12233
if 
  1 > $boat_timer
goto_if_false @BOAT_12233
clear_prints 
print_now 'BOAT_34' {time} 4000 {flag} 1
161@ = 99
wait 3000
goto @BOAT_12725

:BOAT_12233
if 
  161@ == 99
goto_if_false @BOAT_12778
gosub @BOAT_20088
gosub @BOAT_20416
if or
  is_int_lvar_greater_than_int_var 168@ > $boat_skijump_best_score
  is_int_lvar_greater_than_int_var 168@ > $boat_skijump_best_score
goto_if_false @BOAT_12479
set_lvar_int_to_var_int 169@ = $boat_skijump_best_score
set_var_int_to_lvar_int $boat_skijump_best_score = 168@
167@ = 1
gosub @BOAT_21188
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_12379
if 
  $boat_skijump_goldachieved == 0
goto_if_false @BOAT_12379
$boat_skijump_goldachieved = 1
$boat_skijump_silverachieved = 1
$boat_skijump_bronzeachieved = 1

:BOAT_12379
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_12429
if 
  $boat_skijump_silverachieved == 0
goto_if_false @BOAT_12429
$boat_skijump_silverachieved = 1
$boat_skijump_bronzeachieved = 1

:BOAT_12429
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_12472
if 
  $boat_skijump_bronzeachieved == 0
goto_if_false @BOAT_12472
$boat_skijump_bronzeachieved = 1

:BOAT_12472
goto @BOAT_12486

:BOAT_12479
$boat_which_medal_displayed = 0

:BOAT_12486
if 
  $boat_which_missions_are_open_flag == 4
goto_if_false @BOAT_12572
if or
  is_int_lvar_greater_than_int_lvar 168@ > 224@
  is_int_lvar_equal_to_int_lvar 168@ == 224@
goto_if_false @BOAT_12572
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStart
167@ = 2
$boat_which_missions_are_open_flag = 5
164@ = 2

:BOAT_12572
TIMERA = 0

:BOAT_12579
if 
  TIMERA > -1
goto_if_false @BOAT_12725
wait 0
gosub @BOAT_20759
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_12659
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_12725

:BOAT_12659
gosub @BOAT_21719
gosub @BOAT_20005
if 
  165@ == 1
goto_if_false @BOAT_12718
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_12725

:BOAT_12718
goto @BOAT_12579

:BOAT_12725
gosub @BOAT_24852
gosub @BOAT_37625
if 
  164@ == 2
goto_if_false @BOAT_12771
goto @BOAT_1323
goto @BOAT_12778

:BOAT_12771
goto @BOAT_10923

:BOAT_12778
goto @BOAT_11294

:BOAT_12785
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_19792

:BOAT_12803
gosub @BOAT_34020

:BOAT_12810
set_player_control $player1 {state} True
gosub @BOAT_19792
46@ = create_car 497 {x} -2303.627 {y} 2105.29 {z} 200.0
delete_char 47@
47@ = create_char_inside_car 46@ {pedType} PedType.Mission1 {modelId} 210
clear_char_tasks 47@
set_heli_blades_full_speed 46@
set_car_cruise_speed 46@ {maxSpeed} 250.0
heli_goto_coords 46@ {x} -2303.627 {y} 2105.29 {z} 200.0 {minAltitude} 200.0 {maxAltitude} 200.0
37@ = create_car 539 {x} -2014.267 {y} 2365.429 {z} 6.0509
change_car_colour 37@ {color1} 6 {color2} 2
set_car_heading 37@ {heading} 111.0
39@ = create_char_inside_car 37@ {pedType} PedType.Mission1 {modelId} 210
gosub @BOAT_34197
if 
  $boatpb_flag == 0
goto_if_false @BOAT_13027
attach_camera_to_vehicle_look_at_vehicle 46@ {xOffset} 10.0 {yOffset} 10.0 {zOffset} 0.0 {vehicle} 37@ {tilt} 0.0 {switchStyle} SwitchType.JumpCut
return 

:BOAT_13027
gosub @BOAT_33612
print_help 'BOAT_H2'
set_player_control $player1 {state} True
if 
  not is_car_dead 37@
goto_if_false @BOAT_13156
185@, 186@, 187@ = get_car_coordinates 37@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
53@ = add_blip_for_object 58@
54@ = add_blip_for_object 59@
gosub @BOAT_34153
freeze_car_position 37@ {state} True

:BOAT_13156
35@ = 0

:BOAT_13163
wait 0
if 
  35@ == 0
goto_if_false @BOAT_13199
load_mission_audio MissionAudioSlot.Slot3 {audioId} 6200
35@ = 1

:BOAT_13199
if 
  35@ == 1
goto_if_false @BOAT_13239
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BOAT_13239
35@ = 2

:BOAT_13239
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @BOAT_13261
162@ = 99

:BOAT_13261
if 
  not is_car_dead 46@
goto_if_false @BOAT_13351
if 
  not is_car_dead 37@
goto_if_false @BOAT_13351
185@, 186@, 187@ = get_car_coordinates 37@
185@ -= 150.0
186@ -= 150.0
heli_goto_coords 46@ {x} 185@ {y} 186@ {z} 187@ {minAltitude} 200.0 {maxAltitude} 200.0

:BOAT_13351
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_13382
164@ = 2
goto @BOAT_19598

:BOAT_13382
gosub @BOAT_20340
if 
  164@ == 1
goto_if_false @BOAT_13414
goto @BOAT_37691

:BOAT_13414
if 
  162@ == 0
goto_if_false @BOAT_13555
print_now 'BOAT_C1' {time} 4000 {flag} 1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BOAT_13555
sync_water 
set_lvar_int_to_lvar_int 211@ = 231@
set_lvar_int_to_lvar_int 210@ = 230@
set_lvar_int_to_lvar_int 209@ = 229@
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 65535
162@ = 5
$boat_timer = 0
clear_onscreen_timer $boat_timer
display_onscreen_timer_with_string $boat_timer {direction} TimerDirection.Up {text} 'BOAT_T1'
freeze_car_position 37@ {state} False

:BOAT_13555
if 
  162@ > 0
goto_if_false @BOAT_13601
if 
  $boat_timer > 600000
goto_if_false @BOAT_13601
162@ = 99

:BOAT_13601
if 
  162@ == 5
goto_if_false @BOAT_13794
if 
  not is_car_dead 37@
goto_if_false @BOAT_13794
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_13794
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 10
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 58@
195@, 196@, 197@ = get_object_coordinates 59@
52@ = add_blip_for_object 58@
51@ = add_blip_for_object 59@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 60@
54@ = add_blip_for_object 61@
gosub @BOAT_34153

:BOAT_13794
if 
  162@ == 10
goto_if_false @BOAT_13987
if 
  not is_car_dead 37@
goto_if_false @BOAT_13987
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_13987
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 15
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 60@
195@, 196@, 197@ = get_object_coordinates 61@
52@ = add_blip_for_object 60@
51@ = add_blip_for_object 61@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 62@
54@ = add_blip_for_object 63@
gosub @BOAT_34153

:BOAT_13987
if 
  162@ == 15
goto_if_false @BOAT_14180
if 
  not is_car_dead 37@
goto_if_false @BOAT_14180
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14180
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 20
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 62@
195@, 196@, 197@ = get_object_coordinates 63@
52@ = add_blip_for_object 62@
51@ = add_blip_for_object 63@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 64@
54@ = add_blip_for_object 65@
gosub @BOAT_34153

:BOAT_14180
if 
  162@ == 20
goto_if_false @BOAT_14373
if 
  not is_car_dead 37@
goto_if_false @BOAT_14373
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14373
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 25
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 64@
195@, 196@, 197@ = get_object_coordinates 65@
52@ = add_blip_for_object 64@
51@ = add_blip_for_object 65@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 66@
54@ = add_blip_for_object 67@
gosub @BOAT_34153

:BOAT_14373
if 
  162@ == 25
goto_if_false @BOAT_14566
if 
  not is_car_dead 37@
goto_if_false @BOAT_14566
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14566
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 30
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 66@
195@, 196@, 197@ = get_object_coordinates 67@
52@ = add_blip_for_object 66@
51@ = add_blip_for_object 67@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 68@
54@ = add_blip_for_object 69@
gosub @BOAT_34153

:BOAT_14566
if 
  162@ == 30
goto_if_false @BOAT_14759
if 
  not is_car_dead 37@
goto_if_false @BOAT_14759
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14759
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 35
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 68@
195@, 196@, 197@ = get_object_coordinates 69@
52@ = add_blip_for_object 68@
51@ = add_blip_for_object 69@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 70@
54@ = add_blip_for_object 71@
gosub @BOAT_34153

:BOAT_14759
if 
  162@ == 35
goto_if_false @BOAT_14952
if 
  not is_car_dead 37@
goto_if_false @BOAT_14952
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_14952
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 40
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 70@
195@, 196@, 197@ = get_object_coordinates 71@
52@ = add_blip_for_object 70@
51@ = add_blip_for_object 71@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 72@
54@ = add_blip_for_object 73@
gosub @BOAT_34153

:BOAT_14952
if 
  162@ == 40
goto_if_false @BOAT_15145
if 
  not is_car_dead 37@
goto_if_false @BOAT_15145
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15145
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 45
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 72@
195@, 196@, 197@ = get_object_coordinates 73@
52@ = add_blip_for_object 72@
51@ = add_blip_for_object 73@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 74@
54@ = add_blip_for_object 75@
gosub @BOAT_34153

:BOAT_15145
if 
  162@ == 45
goto_if_false @BOAT_15338
if 
  not is_car_dead 37@
goto_if_false @BOAT_15338
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15338
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 50
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 74@
195@, 196@, 197@ = get_object_coordinates 75@
52@ = add_blip_for_object 74@
51@ = add_blip_for_object 75@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 76@
54@ = add_blip_for_object 77@
gosub @BOAT_34153

:BOAT_15338
if 
  162@ == 50
goto_if_false @BOAT_15531
if 
  not is_car_dead 37@
goto_if_false @BOAT_15531
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15531
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 55
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 76@
195@, 196@, 197@ = get_object_coordinates 77@
52@ = add_blip_for_object 76@
51@ = add_blip_for_object 77@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 78@
54@ = add_blip_for_object 79@
gosub @BOAT_34153

:BOAT_15531
if 
  162@ == 55
goto_if_false @BOAT_15724
if 
  not is_car_dead 37@
goto_if_false @BOAT_15724
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_15724
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 60
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 78@
195@, 196@, 197@ = get_object_coordinates 79@
52@ = add_blip_for_object 78@
51@ = add_blip_for_object 79@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 80@
54@ = add_blip_for_object 81@
gosub @BOAT_34153

:BOAT_15724
if 
  162@ == 60
goto_if_false @BOAT_16005
if 
  not is_car_dead 37@
goto_if_false @BOAT_16005
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16005
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 65
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 80@
195@, 196@, 197@ = get_object_coordinates 81@
52@ = add_blip_for_object 80@
51@ = add_blip_for_object 81@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 82@
54@ = add_blip_for_object 83@
gosub @BOAT_34153
if 
  not is_car_dead 41@
goto_if_false @BOAT_16005
if 
  not is_char_dead 43@
goto_if_false @BOAT_16005
if 
  35@ == 2
goto_if_false @BOAT_15971
play_mission_audio MissionAudioSlot.Slot3

:BOAT_15971
task_car_drive_to_coord 43@ {vehicle} 41@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 10.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16005
if 
  162@ == 65
goto_if_false @BOAT_16286
if 
  not is_car_dead 37@
goto_if_false @BOAT_16286
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16286
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 70
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 82@
195@, 196@, 197@ = get_object_coordinates 83@
52@ = add_blip_for_object 82@
51@ = add_blip_for_object 83@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 84@
54@ = add_blip_for_object 85@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_16286
if 
  not is_char_dead 42@
goto_if_false @BOAT_16286
if 
  35@ == 2
goto_if_false @BOAT_16252
play_mission_audio MissionAudioSlot.Slot3

:BOAT_16252
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16286
if 
  162@ == 70
goto_if_false @BOAT_16545
if 
  not is_car_dead 37@
goto_if_false @BOAT_16545
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16545
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 75
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 84@
195@, 196@, 197@ = get_object_coordinates 85@
52@ = add_blip_for_object 84@
51@ = add_blip_for_object 85@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 86@
54@ = add_blip_for_object 87@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_16545
if 
  not is_char_dead 42@
goto_if_false @BOAT_16545
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16545
if 
  162@ == 75
goto_if_false @BOAT_16826
if 
  not is_car_dead 37@
goto_if_false @BOAT_16826
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_16826
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 80
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 86@
195@, 196@, 197@ = get_object_coordinates 87@
52@ = add_blip_for_object 86@
51@ = add_blip_for_object 87@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 88@
54@ = add_blip_for_object 89@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_16826
if 
  not is_char_dead 42@
goto_if_false @BOAT_16826
if 
  35@ == 2
goto_if_false @BOAT_16792
play_mission_audio MissionAudioSlot.Slot3

:BOAT_16792
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_16826
if 
  162@ == 80
goto_if_false @BOAT_17085
if 
  not is_car_dead 37@
goto_if_false @BOAT_17085
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17085
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 82
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 88@
195@, 196@, 197@ = get_object_coordinates 89@
52@ = add_blip_for_object 88@
51@ = add_blip_for_object 89@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 90@
54@ = add_blip_for_object 91@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_17085
if 
  not is_char_dead 42@
goto_if_false @BOAT_17085
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17085
if 
  162@ == 82
goto_if_false @BOAT_17366
if 
  not is_car_dead 37@
goto_if_false @BOAT_17366
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17366
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 84
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 90@
195@, 196@, 197@ = get_object_coordinates 91@
52@ = add_blip_for_object 90@
51@ = add_blip_for_object 91@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 92@
54@ = add_blip_for_object 93@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_17366
if 
  not is_char_dead 42@
goto_if_false @BOAT_17366
if 
  35@ == 2
goto_if_false @BOAT_17332
play_mission_audio MissionAudioSlot.Slot3

:BOAT_17332
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17366
if 
  162@ == 84
goto_if_false @BOAT_17625
if 
  not is_car_dead 37@
goto_if_false @BOAT_17625
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17625
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 86
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 92@
195@, 196@, 197@ = get_object_coordinates 93@
52@ = add_blip_for_object 92@
51@ = add_blip_for_object 93@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 94@
54@ = add_blip_for_object 95@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_17625
if 
  not is_char_dead 42@
goto_if_false @BOAT_17625
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17625
if 
  162@ == 86
goto_if_false @BOAT_17884
if 
  not is_car_dead 37@
goto_if_false @BOAT_17884
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_17884
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 88
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 94@
195@, 196@, 197@ = get_object_coordinates 95@
52@ = add_blip_for_object 94@
51@ = add_blip_for_object 95@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 96@
54@ = add_blip_for_object 97@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_17884
if 
  not is_char_dead 42@
goto_if_false @BOAT_17884
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_17884
if 
  162@ == 88
goto_if_false @BOAT_18143
if 
  not is_car_dead 37@
goto_if_false @BOAT_18143
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18143
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 90
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 96@
195@, 196@, 197@ = get_object_coordinates 97@
52@ = add_blip_for_object 96@
51@ = add_blip_for_object 97@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 98@
54@ = add_blip_for_object 99@
gosub @BOAT_34153
if 
  not is_car_dead 40@
goto_if_false @BOAT_18143
if 
  not is_char_dead 42@
goto_if_false @BOAT_18143
task_car_drive_to_coord 42@ {vehicle} 40@ {x} -2763.105 {y} 1954.129 {z} 0.0 {speed} 15.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BOAT_18143
if 
  162@ == 90
goto_if_false @BOAT_18320
if 
  not is_car_dead 37@
goto_if_false @BOAT_18320
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18320
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 91
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 98@
195@, 196@, 197@ = get_object_coordinates 99@
52@ = add_blip_for_object 98@
51@ = add_blip_for_object 99@
remove_blip 53@
remove_blip 54@
gosub @BOAT_34153

:BOAT_18320
if 
  162@ == 91
goto_if_false @BOAT_18436
if 
  not is_car_dead 37@
goto_if_false @BOAT_18436
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18436
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_33' {time} 1000 {flag} 1
162@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_18436
if 
  162@ == 92
goto_if_false @BOAT_18629
if 
  not is_car_dead 37@
goto_if_false @BOAT_18629
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18629
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 93
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 102@
195@, 196@, 197@ = get_object_coordinates 103@
52@ = add_blip_for_object 102@
51@ = add_blip_for_object 103@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 104@
54@ = add_blip_for_object 105@
gosub @BOAT_34153

:BOAT_18629
if 
  162@ == 93
goto_if_false @BOAT_18822
if 
  not is_car_dead 37@
goto_if_false @BOAT_18822
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18822
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 94
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 104@
195@, 196@, 197@ = get_object_coordinates 105@
52@ = add_blip_for_object 104@
51@ = add_blip_for_object 105@
remove_blip 53@
remove_blip 54@
53@ = add_blip_for_object 56@
54@ = add_blip_for_object 57@
gosub @BOAT_34153

:BOAT_18822
if 
  162@ == 94
goto_if_false @BOAT_18999
if 
  not is_car_dead 37@
goto_if_false @BOAT_18999
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_18999
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_31' {time} 1000 {flag} 1
162@ = 97
remove_blip 52@
remove_blip 51@
198@, 199@, 200@ = get_object_coordinates 56@
195@, 196@, 197@ = get_object_coordinates 57@
52@ = add_blip_for_object 56@
51@ = add_blip_for_object 57@
remove_blip 53@
remove_blip 54@
gosub @BOAT_34153

:BOAT_18999
if 
  162@ == 97
goto_if_false @BOAT_19115
if 
  not is_car_dead 37@
goto_if_false @BOAT_19115
if 
  is_char_in_angled_area_in_car_2d $scplayer {leftBottomX} 198@ {leftBottomY} 199@ {rightTopX} 195@ {rightTopY} 196@ {angle} 3.0 {drawSphere} False
goto_if_false @BOAT_19115
report_mission_audio_event_at_position 198@ {y} 199@ {z} 200@ {soundId} 249@
print_now 'BOAT_33' {time} 1000 {flag} 1
162@ = 99
remove_blip 52@
remove_blip 51@

:BOAT_19115
if 
  162@ == 99
goto_if_false @BOAT_19785
remove_blip 52@
remove_blip 51@
remove_blip 53@
remove_blip 54@
gosub @BOAT_20088
gosub @BOAT_20416
if 
  is_int_var_greater_than_int_lvar $boat_hover_best_score > 168@
goto_if_false @BOAT_19373
set_lvar_int_to_var_int 169@ = $boat_hover_best_score
set_var_int_to_lvar_int $boat_hover_best_score = 168@
167@ = 1
gosub @BOAT_21188
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_19273
if 
  $boat_hover_goldachieved == 0
goto_if_false @BOAT_19273
$boat_hover_goldachieved = 1
$boat_hover_silverachieved = 1
$boat_hover_bronzeachieved = 1

:BOAT_19273
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_19323
if 
  $boat_hover_silverachieved == 0
goto_if_false @BOAT_19323
$boat_hover_silverachieved = 1
$boat_hover_bronzeachieved = 1

:BOAT_19323
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_19366
if 
  $boat_hover_bronzeachieved == 0
goto_if_false @BOAT_19366
$boat_hover_bronzeachieved = 1

:BOAT_19366
goto @BOAT_19380

:BOAT_19373
$boat_which_medal_displayed = 0

:BOAT_19380
if 
  $boat_which_missions_are_open_flag == 5
goto_if_false @BOAT_19445
if 
  is_int_lvar_greater_than_int_lvar 228@ > 168@
goto_if_false @BOAT_19445
167@ = 2
$boat_which_missions_are_open_flag = 5
251@ = 1
164@ = 2

:BOAT_19445
TIMERA = 0

:BOAT_19452
if 
  TIMERA > -1
goto_if_false @BOAT_19598
wait 0
gosub @BOAT_20759
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BOAT_19532
164@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_19598

:BOAT_19532
gosub @BOAT_21719
gosub @BOAT_20005
if 
  165@ == 1
goto_if_false @BOAT_19591
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
goto @BOAT_19598

:BOAT_19591
goto @BOAT_19452

:BOAT_19598
gosub @BOAT_24852
gosub @BOAT_37625
if 
  164@ == 2
goto_if_false @BOAT_19778
if 
  251@ == 1
goto_if_false @BOAT_19764
if 
  $boat_passed_once == 0
goto_if_false @BOAT_19764
do_fade 1000 {direction} Fade.Out

:BOAT_19673
if 
  get_fading_status 
goto_if_false @BOAT_19697
wait 0
goto @BOAT_19673

:BOAT_19697
set_char_heading $scplayer {heading} 177@
set_camera_behind_player 
restore_camera_jumpcut 
load_scene -2185.335 {y} 2410.4089 {z} 3.9752
do_fade 2000 {direction} Fade.In

:BOAT_19733
if 
  get_fading_status 
goto_if_false @BOAT_19757
wait 0
goto @BOAT_19733

:BOAT_19757
goto @BOAT_37731

:BOAT_19764
goto @BOAT_1323
goto @BOAT_19785

:BOAT_19778
goto @BOAT_12803

:BOAT_19785
goto @BOAT_13163

:BOAT_19792
158@ = 0
159@ = 0
160@ = 0
161@ = 0
162@ = 0
$boat_timer = 0
163@ = 0
164@ = 0
165@ = 0
166@ = 0
167@ = 0
168@ = 0
48@ = 1000
188@ = 0.0
189@ = 0.0
190@ = 0.0
191@ = 0
207@ = 0
208@ = 0
49@ = 0.0
211@ = 0
210@ = 0
209@ = 0
233@ = 0
192@ = 0.0
193@ = 0.0
194@ = 0.0
return 

:BOAT_20005
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BOAT_20061
if 
  166@ == 1
goto_if_false @BOAT_20054
166@ = 0
165@ = 1

:BOAT_20054
goto @BOAT_20086

:BOAT_20061
if 
  166@ == 0
goto_if_false @BOAT_20086
166@ = 1

:BOAT_20086
return 

:BOAT_20088
clear_help 
set_player_control $player1 {state} False
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_20155
freeze_onscreen_timer True
boat_stop 37@
set_car_forward_speed 37@ {forwardSpeed} 0.0
freeze_car_position 37@ {state} False
anchor_boat 37@ {state} True
freeze_car_position 37@ {state} False

:BOAT_20155
if 
  $boat_mission_selection > 1
goto_if_false @BOAT_20338
freeze_onscreen_timer True
TIMERB = 0

:BOAT_20184
if 
  1000 > TIMERB
goto_if_false @BOAT_20214
wait 0
goto @BOAT_20184

:BOAT_20214
if 
  not is_car_dead 37@
goto_if_false @BOAT_20338
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_20271
if 
  $boat_mission_selection <> 5
goto_if_false @BOAT_20271
boat_stop 37@

:BOAT_20271
set_car_forward_speed 37@ {forwardSpeed} 0.0
freeze_car_position 37@ {state} False
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_20331
if 
  $boat_mission_selection <> 5
goto_if_false @BOAT_20331
anchor_boat 37@ {state} True

:BOAT_20331
freeze_car_position 37@ {state} False

:BOAT_20338
return 

:BOAT_20340
if 
  not is_car_dead 37@
goto_if_false @BOAT_20407
if 
  163@ == 1
goto_if_false @BOAT_20400
if 
  not is_char_in_car $scplayer {vehicle} 37@
goto_if_false @BOAT_20400
164@ = 1

:BOAT_20400
goto @BOAT_20414

:BOAT_20407
164@ = 1

:BOAT_20414
return 

:BOAT_20416
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_20603
set_lvar_int_to_var_int 208@ = $boat_timer
233@ = 0
48@ = 1000
if 
  not is_car_dead 37@
goto_if_false @BOAT_20481
250@ = get_car_health 37@

:BOAT_20481
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_20506
250@ += 120

:BOAT_20506
if 
  1000 > 250@
goto_if_false @BOAT_20533
233@ = 5000

:BOAT_20533
if 
  995 > 250@
goto_if_false @BOAT_20560
233@ = 7000

:BOAT_20560
if 
  990 > 250@
goto_if_false @BOAT_20587
233@ = 10000

:BOAT_20587
set_lvar_int_to_lvar_int 168@ = 208@
add_int_lvar_to_int_lvar 168@ += 233@

:BOAT_20603
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_20757
set_lvar_int_to_var_int 208@ = $boat_timer
233@ = 0
48@ = 1000
if 
  not is_car_dead 37@
goto_if_false @BOAT_20668
250@ = get_car_health 37@

:BOAT_20668
if 
  995 > 250@
goto_if_false @BOAT_20695
233@ = 5000

:BOAT_20695
if 
  990 > 250@
goto_if_false @BOAT_20722
233@ = 10000

:BOAT_20722
if 
  985 > 250@
goto_if_false @BOAT_20749
233@ = 15000

:BOAT_20749
cset_lvar_int_to_lvar_float 168@ =# 246@

:BOAT_20757
return 

:BOAT_20759
if 
  not is_car_dead 37@
goto_if_false @BOAT_21186
if 
  191@ == 0
goto_if_false @BOAT_20898
188@, 189@, 190@ = get_car_coordinates 37@
190@ += 5.0
188@, 189@, 190@ = get_offset_from_car_in_world_coords 37@ {xOffset} 10.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 37@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
191@ = 1

:BOAT_20898
if 
  TIMERA > 3000
goto_if_false @BOAT_21035
if 
  6000 > TIMERA
goto_if_false @BOAT_21035
if 
  191@ == 1
goto_if_false @BOAT_21035
188@, 189@, 190@ = get_offset_from_car_in_world_coords 37@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 5.0
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 37@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
191@ = 2

:BOAT_21035
if 
  TIMERA > 6000
goto_if_false @BOAT_21153
if 
  191@ == 2
goto_if_false @BOAT_21153
188@, 189@, 190@ = get_offset_from_car_in_world_coords 37@ {xOffset} -10.0 {yOffset} 0.0 {zOffset} 5.0
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 37@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
191@ = 3

:BOAT_21153
if 
  TIMERA > 9000
goto_if_false @BOAT_21186
191@ = 1
TIMERA = 0

:BOAT_21186
return 

:BOAT_21188
$boat_which_medal_displayed = 0
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_21444
if 
  is_int_lvar_greater_than_int_lvar 209@ > 168@
goto_if_false @BOAT_21299
if 
  is_int_lvar_greater_than_int_lvar 168@ > 210@
goto_if_false @BOAT_21299
if and
  is_int_lvar_greater_than_int_lvar 209@ > 169@
  is_int_lvar_greater_than_int_lvar 169@ > 210@
goto_if_false @BOAT_21292
$boat_which_medal_displayed = 0
goto @BOAT_21299

:BOAT_21292
$boat_which_medal_displayed = 2

:BOAT_21299
if 
  is_int_lvar_greater_than_int_lvar 210@ > 168@
goto_if_false @BOAT_21385
if 
  is_int_lvar_greater_than_int_lvar 168@ > 211@
goto_if_false @BOAT_21385
if and
  is_int_lvar_greater_than_int_lvar 210@ > 169@
  is_int_lvar_greater_than_int_lvar 169@ > 211@
goto_if_false @BOAT_21378
$boat_which_medal_displayed = 0
goto @BOAT_21385

:BOAT_21378
$boat_which_medal_displayed = 3

:BOAT_21385
if 
  is_int_lvar_greater_than_int_lvar 211@ > 168@
goto_if_false @BOAT_21444
if 
  is_int_lvar_greater_than_int_lvar 211@ > 169@
goto_if_false @BOAT_21437
$boat_which_medal_displayed = 0
goto @BOAT_21444

:BOAT_21437
$boat_which_medal_displayed = 4

:BOAT_21444
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_21717
if or
  is_int_lvar_greater_than_int_lvar 168@ > 209@
  is_int_lvar_equal_to_int_lvar 168@ == 209@
goto_if_false @BOAT_21556
if 
  is_int_lvar_greater_than_int_lvar 210@ > 168@
goto_if_false @BOAT_21556
if and
  is_int_lvar_greater_than_int_lvar 169@ > 209@
  is_int_lvar_greater_than_int_lvar 210@ > 169@
goto_if_false @BOAT_21549
$boat_which_medal_displayed = 0
goto @BOAT_21556

:BOAT_21549
$boat_which_medal_displayed = 2

:BOAT_21556
if or
  is_int_lvar_greater_than_int_lvar 168@ > 210@
  is_int_lvar_equal_to_int_lvar 168@ == 210@
goto_if_false @BOAT_21650
if 
  is_int_lvar_greater_than_int_lvar 211@ > 168@
goto_if_false @BOAT_21650
if and
  is_int_lvar_greater_than_int_lvar 169@ > 210@
  is_int_lvar_greater_than_int_lvar 211@ > 169@
goto_if_false @BOAT_21643
$boat_which_medal_displayed = 0
goto @BOAT_21650

:BOAT_21643
$boat_which_medal_displayed = 3

:BOAT_21650
if or
  is_int_lvar_greater_than_int_lvar 168@ > 211@
  is_int_lvar_equal_to_int_lvar 168@ == 211@
goto_if_false @BOAT_21717
if 
  is_int_lvar_greater_than_int_lvar 169@ > 211@
goto_if_false @BOAT_21710
$boat_which_medal_displayed = 0
goto @BOAT_21717

:BOAT_21710
$boat_which_medal_displayed = 4

:BOAT_21717
return 

:BOAT_21719
display_hud False
display_radar False
if 
  2 > $boat_which_medal_displayed
goto_if_false @BOAT_21850
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_21810
draw_window 122.0 {leftTopY} 240.0 {rightBottomX} 520.0 {rightBottomY} 400.0 {header} 'BOAT_75' {zIndex} 3
goto @BOAT_21843

:BOAT_21810
draw_window 152.0 {leftTopY} 240.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'BOAT_75' {zIndex} 3

:BOAT_21843
goto @BOAT_21948

:BOAT_21850
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_21915
draw_window 122.0 {leftTopY} 220.0 {rightBottomX} 520.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3
goto @BOAT_21948

:BOAT_21915
draw_window 152.0 {leftTopY} 220.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3

:BOAT_21948
gosub @BOAT_33376
gosub @BOAT_33376
if 
  48@ > 0
goto_if_false @BOAT_24257
clear_prints 
gosub @BOAT_33376
set_text_background False
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
241@ = 0.0
cset_lvar_float_to_lvar_int 241@ =# 208@
241@ /= 1000.0
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_22153
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_22127
display_text_with_float 145.0 {leftTopY} 275.0 {key} 'BOAT_7' {value} 241@ {precision} 2
goto @BOAT_22153

:BOAT_22127
display_text_with_float 180.0 {leftTopY} 275.0 {key} 'BOAT_7' {value} 241@ {precision} 2

:BOAT_22153
gosub @BOAT_33376
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
240@ = 0.0
cset_lvar_float_to_lvar_int 240@ =# 233@
240@ /= 1000.0
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_22320
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_22294
display_text_with_float 145.0 {leftTopY} 295.0 {key} 'BOAT_9' {value} 240@ {precision} 2
goto @BOAT_22320

:BOAT_22294
display_text_with_float 180.0 {leftTopY} 295.0 {key} 'BOAT_9' {value} 240@ {precision} 2

:BOAT_22320
gosub @BOAT_33376
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_22389
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
goto @BOAT_22419

:BOAT_22389
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@

:BOAT_22419
242@ = 0.0
cset_lvar_float_to_lvar_int 242@ =# 168@
242@ /= 1000.0
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_22549
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_22523
display_text_with_float 145.0 {leftTopY} 315.0 {key} 'BOAT_10' {value} 242@ {precision} 2
goto @BOAT_22549

:BOAT_22523
display_text_with_float 180.0 {leftTopY} 315.0 {key} 'BOAT_10' {value} 242@ {precision} 2

:BOAT_22549
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_22833
if 
  246@ > 0.0
goto_if_false @BOAT_22759
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_22646
display_text_with_float 145.0 {leftTopY} 315.0 {key} 'BOAT_11' {value} 246@ {precision} 2
goto @BOAT_22752

:BOAT_22646
if 
  252@ == 3
goto_if_false @BOAT_22690
display_text_with_float 175.0 {leftTopY} 315.0 {key} 'BOAT_11' {value} 246@ {precision} 2

:BOAT_22690
if 
  252@ <> 3
goto_if_false @BOAT_22752
if 
  252@ <> 4
goto_if_false @BOAT_22752
display_text_with_float 180.0 {leftTopY} 315.0 {key} 'BOAT_11' {value} 246@ {precision} 2

:BOAT_22752
goto @BOAT_22833

:BOAT_22759
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_22812
display_text 145.0 {offsetTop} 315.0 {key} 'BOAT_12'
goto @BOAT_22833

:BOAT_22812
display_text 180.0 {offsetTop} 315.0 {key} 'BOAT_12'

:BOAT_22833
gosub @BOAT_33376
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
241@ = 0.0
cset_lvar_float_to_lvar_int 241@ =# 208@
241@ /= 1000.0
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_22984
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_22958
display_text_with_float 425.0 {leftTopY} 275.0 {key} 'BOAT_77' {value} 241@ {precision} 2
goto @BOAT_22984

:BOAT_22958
display_text_with_float 390.0 {leftTopY} 275.0 {key} 'BOAT_77' {value} 241@ {precision} 2

:BOAT_22984
gosub @BOAT_33376
170@, 171@, 172@, 173@ = get_hud_colour 0
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
240@ = 0.0
cset_lvar_float_to_lvar_int 240@ =# 233@
240@ /= 1000.0
if 
  240@ > 0.0
goto_if_false @BOAT_23107
170@, 171@, 172@, 173@ = get_hud_colour 0
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
goto @BOAT_23137

:BOAT_23107
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Radar
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@

:BOAT_23137
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_23239
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_23213
display_text_with_float 425.0 {leftTopY} 295.0 {key} 'BOAT_77' {value} 240@ {precision} 2
goto @BOAT_23239

:BOAT_23213
display_text_with_float 390.0 {leftTopY} 295.0 {key} 'BOAT_77' {value} 240@ {precision} 2

:BOAT_23239
gosub @BOAT_33376
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_23292
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @BOAT_23306

:BOAT_23292
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:BOAT_23306
242@ = 0.0
cset_lvar_float_to_lvar_int 242@ =# 168@
242@ /= 1000.0
if 
  $boat_mission_selection <> 4
goto_if_false @BOAT_23436
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_23410
display_text_with_float 425.0 {leftTopY} 315.0 {key} 'BOAT_77' {value} 242@ {precision} 2
goto @BOAT_23436

:BOAT_23410
display_text_with_float 390.0 {leftTopY} 315.0 {key} 'BOAT_77' {value} 242@ {precision} 2

:BOAT_23436
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_23566
if 
  246@ > 0.0
goto_if_false @BOAT_23566
gosub @BOAT_37684
if 
  252@ == 4
goto_if_false @BOAT_23533
display_text_with_float 425.0 {leftTopY} 315.0 {key} 'BOAT_80' {value} 246@ {precision} 2
goto @BOAT_23559

:BOAT_23533
display_text_with_float 390.0 {leftTopY} 315.0 {key} 'BOAT_80' {value} 246@ {precision} 2

:BOAT_23559
goto @BOAT_23566

:BOAT_23566
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Health
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
display_text 340.0 {offsetTop} 345.0 {key} 'SCH_PRS'
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
display_text 340.0 {offsetTop} 365.0 {key} 'BOAT_73'
gosub @BOAT_33376
set_text_scale 0.52 {heightScale} 1.45
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 180.0 {offsetTop} 345.0 {key} 'BOAT_76'
gosub @BOAT_33376
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 180.0 {offsetTop} 365.0 {key} 'BOAT_53'
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_23903
gosub @BOAT_33492
set_text_scale 1.0 {heightScale} 3.4
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 323.0 {offsetTop} 110.0 {key} 'BOAT_46'

:BOAT_23903
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24250
if 
  $boat_which_medal_displayed > 0
goto_if_false @BOAT_24250
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 219.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
draw_sprite 4 {offsetLeft} 392.0 {offsetTop} 219.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_24072
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 220.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24072
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_24126
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 220.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24126
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_24180
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 220.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24180
gosub @BOAT_33492
set_text_scale 1.0 {heightScale} 3.4
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 323.0 {offsetTop} 65.0 {key} 'BOAT_47'

:BOAT_24250
goto @BOAT_24845

:BOAT_24257
gosub @BOAT_33376
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
241@ = 0.0
cset_lvar_float_to_lvar_int 241@ =# 208@
241@ /= 1000.0
display_text_with_float 30.0 {leftTopY} 55.0 {key} 'BOAT_7' {value} 241@ {precision} 2
gosub @BOAT_33376
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24383
set_text_colour 107 {green} 148 {blue} 49 {alpha} 255
goto @BOAT_24397

:BOAT_24383
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255

:BOAT_24397
242@ = 0.0
cset_lvar_float_to_lvar_int 242@ =# 168@
242@ /= 1000.0
display_text_with_float 30.0 {leftTopY} 65.0 {key} 'BOAT_10' {value} 242@ {precision} 2
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24516
gosub @BOAT_33376
set_text_colour 107 {green} 148 {blue} 49 {alpha} 255
display_text 260.0 {offsetTop} 65.0 {key} 'BOAT_46'

:BOAT_24516
if or
  167@ == 1
  167@ == 2
goto_if_false @BOAT_24845
if 
  $boat_which_medal_displayed > 0
goto_if_false @BOAT_24845
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 68.0 {offsetTop} 145.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 210.0 {offsetTop} 145.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_24697
draw_sprite 1 {offsetLeft} 138.0 {offsetTop} 145.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24697
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_24751
draw_sprite 2 {offsetLeft} 138.0 {offsetTop} 145.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24751
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_24805
draw_sprite 3 {offsetLeft} 138.0 {offsetTop} 145.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BOAT_24805
gosub @BOAT_33376
set_text_colour 107 {green} 148 {blue} 49 {alpha} 255
display_text 260.0 {offsetTop} 172.0 {key} 'BOAT_47'

:BOAT_24845
clear_onscreen_timer $boat_timer
return 

:BOAT_24852
do_fade 500 {direction} Fade.Out

:BOAT_24859
if 
  get_fading_status 
goto_if_false @BOAT_24883
wait 0
goto @BOAT_24859

:BOAT_24883
display_hud True
display_radar True
clear_prints 
clear_help 
clear_this_big_print 'BOAT_46'
clear_this_big_print 'BOAT_47'
apply_brakes_to_players_car $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  164@ == 2
goto_if_false @BOAT_25007
clear_prints 
if 
  is_char_in_any_car $scplayer
goto_if_false @BOAT_24986
warp_char_from_car_to_coord $scplayer {x} 174@ {y} 175@ {z} 176@
goto @BOAT_25000

:BOAT_24986
set_char_coordinates $scplayer {x} 174@ {y} 175@ {z} 176@

:BOAT_25000
goto @BOAT_25058

:BOAT_25007
if 
  is_char_in_any_car $scplayer
goto_if_false @BOAT_25044
warp_char_from_car_to_coord $scplayer {x} 174@ {y} 175@ {z} 176@
goto @BOAT_25058

:BOAT_25044
set_char_coordinates $scplayer {x} 174@ {y} 175@ {z} 176@

:BOAT_25058
wait 0
delete_car 37@
delete_car 46@
delete_char 39@
remove_blip 52@
remove_blip 51@
remove_blip 53@
remove_blip 54@
restore_camera_jumpcut 
set_camera_behind_player 
wait 0
clear_onscreen_timer $boat_timer
freeze_onscreen_timer False
return 

:BOAT_25116
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} $boat_alpha
if 
  $boat_fade_flag == 1
goto_if_false @BOAT_25238
if 
  255 > $boat_alpha
goto_if_false @BOAT_25231
$boat_alpha += 20
if 
  $boat_alpha > 255
goto_if_false @BOAT_25224
$boat_alpha = 255

:BOAT_25224
goto @BOAT_25238

:BOAT_25231
$boat_fade_flag = 2

:BOAT_25238
if 
  $boat_fade_flag == 3
goto_if_false @BOAT_25320
if 
  $boat_alpha > 0
goto_if_false @BOAT_25313
$boat_alpha -= 5
if 
  0 > $boat_alpha
goto_if_false @BOAT_25306
$boat_alpha = 0

:BOAT_25306
goto @BOAT_25320

:BOAT_25313
$boat_fade_flag = 0

:BOAT_25320
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BOAT_33492
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_25432
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_A'
set_var_int_to_var_int $boat_which_score_displayed = $boat_accelerate_best_score
gosub @BOAT_27098

:BOAT_25432
if 
  $boat_mission_selection == 2
goto_if_false @BOAT_25486
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_B'
set_var_int_to_var_int $boat_which_score_displayed = $boat_simplecircuit_best_score
gosub @BOAT_27098

:BOAT_25486
if 
  $boat_mission_selection == 3
goto_if_false @BOAT_25540
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_C'
set_var_int_to_var_int $boat_which_score_displayed = $boat_slalom_best_score
gosub @BOAT_27098

:BOAT_25540
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_25594
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_D'
set_var_int_to_var_int $boat_which_score_displayed = $boat_skijump_best_score
gosub @BOAT_27098

:BOAT_25594
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_25648
display_text 322.0 {offsetTop} 31.0 {key} 'BOAT_E'
set_var_int_to_var_int $boat_which_score_displayed = $boat_hover_best_score
gosub @BOAT_27098

:BOAT_25648
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37684
if 
  252@ == 1
goto_if_false @BOAT_25750
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 360.0 {key} 'BOAT_53'
goto @BOAT_25783

:BOAT_25750
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 360.0 {key} 'BOAT_53'

:BOAT_25783
if 
  $boat_control_flag <> 1
goto_if_false @BOAT_26249
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37684
if 
  252@ == 1
goto_if_false @BOAT_25903
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 340.0 {key} 'BOAT_54'
goto @BOAT_25936

:BOAT_25903
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 340.0 {key} 'BOAT_54'

:BOAT_25936
if 
  $boat_which_missions_are_open_flag <> 1
goto_if_false @BOAT_26089
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37684
if 
  252@ == 1
goto_if_false @BOAT_26056
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BOAT_52'
goto @BOAT_26089

:BOAT_26056
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BOAT_52'

:BOAT_26089
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_26242
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Radar
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37684
if 
  252@ == 1
goto_if_false @BOAT_26209
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BOAT_52'
goto @BOAT_26242

:BOAT_26209
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BOAT_52'

:BOAT_26242
goto @BOAT_26384

:BOAT_26249
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour 6
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
gosub @BOAT_37684
if 
  252@ == 1
goto_if_false @BOAT_26351
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BOAT_52'
goto @BOAT_26384

:BOAT_26351
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BOAT_52'

:BOAT_26384
gosub @BOAT_33314
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Health
set_text_scale 0.32 {heightScale} 1.25
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
display_text 150.0 {offsetTop} 360.0 {key} 'BOAT_73'
if 
  $boat_control_flag <> 1
goto_if_false @BOAT_26762
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Health
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 0.32 {heightScale} 1.25
display_text 150.0 {offsetTop} 340.0 {key} 'SCH_PRS'
if 
  $boat_which_missions_are_open_flag <> 1
goto_if_false @BOAT_26655
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Health
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 1.45 {heightScale} 2.0
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'BOAT_72'

:BOAT_26655
if 
  $boat_which_missions_are_open_flag == 1
goto_if_false @BOAT_26755
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Health
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 1.45 {heightScale} 2.0
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'BOAT_72'

:BOAT_26755
goto @BOAT_26844

:BOAT_26762
gosub @BOAT_33314
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Health
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
set_text_scale 1.45 {heightScale} 2.0
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'BOAT_72'

:BOAT_26844
set_text_scale 0.52 {heightScale} 1.45
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:BOAT_27098
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BOAT_33314
set_text_right_justify False
170@, 171@, 172@, 173@ = get_hud_colour HudObject.Armor
set_text_colour 170@ {green} 171@ {blue} 172@ {alpha} 173@
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_27919
if 
  is_int_lvar_greater_than_int_var 212@ > $boat_accelerate_best_score
goto_if_false @BOAT_27483
239@ = 0.0
cset_lvar_float_to_var_int 239@ =# $boat_which_score_displayed
239@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_27476 {caseNum1} 0 {caseLabel1} @BOAT_27311 {caseNum2} 1 {caseLabel2} @BOAT_27344 {caseNum3} 2 {caseLabel3} @BOAT_27377 {caseNum4} 3 {caseLabel4} @BOAT_27410 {caseNum5} 4 {caseLabel5} @BOAT_27443 {caseNum6} -1 {caseLabel6} @BOAT_27476 {caseNum7} -1 {caseLabel7} @BOAT_27476

:BOAT_27311
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_27476

:BOAT_27344
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_27476

:BOAT_27377
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_27476

:BOAT_27410
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_27476

:BOAT_27443
display_text_with_float 193.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_27476

:BOAT_27476
goto @BOAT_27777

:BOAT_27483
247@ = 0
234@ = 0.0
cset_lvar_float_to_lvar_int 234@ =# 212@
234@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_27777 {caseNum1} 0 {caseLabel1} @BOAT_27588 {caseNum2} 1 {caseLabel2} @BOAT_27621 {caseNum3} 2 {caseLabel3} @BOAT_27654 {caseNum4} 3 {caseLabel4} @BOAT_27687 {caseNum5} 4 {caseLabel5} @BOAT_27720 {caseNum6} -1 {caseLabel6} @BOAT_27777 {caseNum7} -1 {caseLabel7} @BOAT_27777

:BOAT_27588
display_text_with_float 137.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 234@ {precision} 1
goto @BOAT_27777

:BOAT_27621
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 234@ {precision} 1
goto @BOAT_27777

:BOAT_27654
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 234@ {precision} 1
goto @BOAT_27777

:BOAT_27687
display_text_with_float 97.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 234@ {precision} 1
goto @BOAT_27777

:BOAT_27720
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 93.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 234@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_27777

:BOAT_27777
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 213@
goto_if_false @BOAT_27803
$boat_which_medal_displayed = 1

:BOAT_27803
if 
  is_int_lvar_greater_than_int_var 213@ > $boat_which_score_displayed
goto_if_false @BOAT_27848
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 214@
goto_if_false @BOAT_27848
$boat_which_medal_displayed = 2

:BOAT_27848
if 
  is_int_lvar_greater_than_int_var 214@ > $boat_which_score_displayed
goto_if_false @BOAT_27893
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 215@
goto_if_false @BOAT_27893
$boat_which_medal_displayed = 3

:BOAT_27893
if 
  is_int_lvar_greater_than_int_var 215@ > $boat_which_score_displayed
goto_if_false @BOAT_27919
$boat_which_medal_displayed = 4

:BOAT_27919
if 
  $boat_mission_selection == 2
goto_if_false @BOAT_28655
if 
  is_int_lvar_greater_than_int_var 216@ > $boat_simplecircuit_best_score
goto_if_false @BOAT_28226
239@ = 0.0
cset_lvar_float_to_var_int 239@ =# $boat_which_score_displayed
239@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28219 {caseNum1} 0 {caseLabel1} @BOAT_28054 {caseNum2} 1 {caseLabel2} @BOAT_28087 {caseNum3} 2 {caseLabel3} @BOAT_28120 {caseNum4} 3 {caseLabel4} @BOAT_28153 {caseNum5} 4 {caseLabel5} @BOAT_28186 {caseNum6} -1 {caseLabel6} @BOAT_28219 {caseNum7} -1 {caseLabel7} @BOAT_28219

:BOAT_28054
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28219

:BOAT_28087
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28219

:BOAT_28120
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28219

:BOAT_28153
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28219

:BOAT_28186
display_text_with_float 190.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28219

:BOAT_28219
goto @BOAT_28513

:BOAT_28226
235@ = 0.0
cset_lvar_float_to_lvar_int 235@ =# 216@
235@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28513 {caseNum1} 0 {caseLabel1} @BOAT_28324 {caseNum2} 1 {caseLabel2} @BOAT_28357 {caseNum3} 2 {caseLabel3} @BOAT_28390 {caseNum4} 3 {caseLabel4} @BOAT_28423 {caseNum5} 4 {caseLabel5} @BOAT_28456 {caseNum6} -1 {caseLabel6} @BOAT_28513 {caseNum7} -1 {caseLabel7} @BOAT_28513

:BOAT_28324
display_text_with_float 137.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 235@ {precision} 1
goto @BOAT_28513

:BOAT_28357
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 235@ {precision} 1
goto @BOAT_28513

:BOAT_28390
display_text_with_float 77.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 235@ {precision} 1
goto @BOAT_28513

:BOAT_28423
display_text_with_float 97.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 235@ {precision} 1
goto @BOAT_28513

:BOAT_28456
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 88.0 {leftTopY} 75.0 {key} 'BOAT_62' {value} 235@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_28513

:BOAT_28513
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 217@
goto_if_false @BOAT_28539
$boat_which_medal_displayed = 1

:BOAT_28539
if 
  is_int_lvar_greater_than_int_var 217@ > $boat_which_score_displayed
goto_if_false @BOAT_28584
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 218@
goto_if_false @BOAT_28584
$boat_which_medal_displayed = 2

:BOAT_28584
if 
  is_int_lvar_greater_than_int_var 218@ > $boat_which_score_displayed
goto_if_false @BOAT_28629
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 219@
goto_if_false @BOAT_28629
$boat_which_medal_displayed = 3

:BOAT_28629
if 
  is_int_lvar_greater_than_int_var 219@ > $boat_which_score_displayed
goto_if_false @BOAT_28655
$boat_which_medal_displayed = 4

:BOAT_28655
if 
  $boat_mission_selection == 3
goto_if_false @BOAT_29401
if 
  is_int_lvar_greater_than_int_var 220@ > $boat_slalom_best_score
goto_if_false @BOAT_28962
239@ = 0.0
cset_lvar_float_to_var_int 239@ =# $boat_which_score_displayed
239@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_28955 {caseNum1} 0 {caseLabel1} @BOAT_28790 {caseNum2} 1 {caseLabel2} @BOAT_28823 {caseNum3} 2 {caseLabel3} @BOAT_28856 {caseNum4} 3 {caseLabel4} @BOAT_28889 {caseNum5} 4 {caseLabel5} @BOAT_28922 {caseNum6} -1 {caseLabel6} @BOAT_28955 {caseNum7} -1 {caseLabel7} @BOAT_28955

:BOAT_28790
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28955

:BOAT_28823
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28955

:BOAT_28856
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28955

:BOAT_28889
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28955

:BOAT_28922
display_text_with_float 190.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_28955

:BOAT_28955
goto @BOAT_29259

:BOAT_28962
236@ = 0.0
cset_lvar_float_to_lvar_int 236@ =# 220@
236@ /= 1000.0
236@ /= 60.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29259 {caseNum1} 0 {caseLabel1} @BOAT_29070 {caseNum2} 1 {caseLabel2} @BOAT_29103 {caseNum3} 2 {caseLabel3} @BOAT_29136 {caseNum4} 3 {caseLabel4} @BOAT_29169 {caseNum5} 4 {caseLabel5} @BOAT_29202 {caseNum6} -1 {caseLabel6} @BOAT_29259 {caseNum7} -1 {caseLabel7} @BOAT_29259

:BOAT_29070
display_text_with_float 142.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 236@ {precision} 1
goto @BOAT_29259

:BOAT_29103
display_text_with_float 87.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 236@ {precision} 1
goto @BOAT_29259

:BOAT_29136
display_text_with_float 83.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 236@ {precision} 1
goto @BOAT_29259

:BOAT_29169
display_text_with_float 112.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 236@ {precision} 1
goto @BOAT_29259

:BOAT_29202
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 103.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 236@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_29259

:BOAT_29259
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 221@
goto_if_false @BOAT_29285
$boat_which_medal_displayed = 1

:BOAT_29285
if 
  is_int_lvar_greater_than_int_var 221@ > $boat_which_score_displayed
goto_if_false @BOAT_29330
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 222@
goto_if_false @BOAT_29330
$boat_which_medal_displayed = 2

:BOAT_29330
if 
  is_int_lvar_greater_than_int_var 222@ > $boat_which_score_displayed
goto_if_false @BOAT_29375
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 223@
goto_if_false @BOAT_29375
$boat_which_medal_displayed = 3

:BOAT_29375
if 
  is_int_lvar_greater_than_int_var 223@ > $boat_which_score_displayed
goto_if_false @BOAT_29401
$boat_which_medal_displayed = 4

:BOAT_29401
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_30117
if 
  is_int_var_greater_than_int_lvar $boat_skijump_best_score > 224@
goto_if_false @BOAT_29698
239@ = 0.0
cset_lvar_float_to_var_int 239@ =# $boat_which_score_displayed
239@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29691 {caseNum1} 0 {caseLabel1} @BOAT_29536 {caseNum2} 1 {caseLabel2} @BOAT_29567 {caseNum3} 2 {caseLabel3} @BOAT_29598 {caseNum4} 3 {caseLabel4} @BOAT_29629 {caseNum5} 4 {caseLabel5} @BOAT_29660 {caseNum6} -1 {caseLabel6} @BOAT_29691 {caseNum7} -1 {caseLabel7} @BOAT_29691

:BOAT_29536
display_text_with_number 185.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29691

:BOAT_29567
display_text_with_number 167.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29691

:BOAT_29598
display_text_with_number 167.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29691

:BOAT_29629
display_text_with_number 177.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29691

:BOAT_29660
display_text_with_number 160.0 {offsetTop} 75.0 {key} 'BOAT_60' {num} $boat_skijump_best_score
goto @BOAT_29691

:BOAT_29691
goto @BOAT_29951

:BOAT_29698
237@ = 0.0
cset_lvar_float_to_lvar_int 237@ =# 224@
237@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_29951 {caseNum1} 0 {caseLabel1} @BOAT_29796 {caseNum2} 1 {caseLabel2} @BOAT_29827 {caseNum3} 2 {caseLabel3} @BOAT_29858 {caseNum4} 3 {caseLabel4} @BOAT_29889 {caseNum5} 4 {caseLabel5} @BOAT_29920 {caseNum6} -1 {caseLabel6} @BOAT_29951 {caseNum7} -1 {caseLabel7} @BOAT_29951

:BOAT_29796
display_text_with_number 153.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 224@
goto @BOAT_29951

:BOAT_29827
display_text_with_number 103.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 224@
goto @BOAT_29951

:BOAT_29858
display_text_with_number 93.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 224@
goto @BOAT_29951

:BOAT_29889
display_text_with_number 123.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 224@
goto @BOAT_29951

:BOAT_29920
display_text_with_number 103.0 {offsetTop} 75.0 {key} 'BOAT_61' {num} 224@
goto @BOAT_29951

:BOAT_29951
if 
  is_int_lvar_greater_than_int_var 225@ > $boat_which_score_displayed
goto_if_false @BOAT_29977
$boat_which_medal_displayed = 1

:BOAT_29977
if or
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 225@
  is_int_var_equal_to_int_lvar $boat_which_score_displayed == 225@
goto_if_false @BOAT_30030
if 
  is_int_lvar_greater_than_int_var 226@ > $boat_which_score_displayed
goto_if_false @BOAT_30030
$boat_which_medal_displayed = 2

:BOAT_30030
if or
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 226@
  is_int_var_equal_to_int_lvar $boat_which_score_displayed == 226@
goto_if_false @BOAT_30083
if 
  is_int_lvar_greater_than_int_var 227@ > $boat_which_score_displayed
goto_if_false @BOAT_30083
$boat_which_medal_displayed = 3

:BOAT_30083
if or
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 227@
  is_int_var_equal_to_int_lvar $boat_which_score_displayed == 227@
goto_if_false @BOAT_30117
$boat_which_medal_displayed = 4

:BOAT_30117
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_30863
if 
  is_int_lvar_greater_than_int_var 228@ > $boat_hover_best_score
goto_if_false @BOAT_30424
239@ = 0.0
cset_lvar_float_to_var_int 239@ =# $boat_which_score_displayed
239@ /= 1000.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_30417 {caseNum1} 0 {caseLabel1} @BOAT_30252 {caseNum2} 1 {caseLabel2} @BOAT_30285 {caseNum3} 2 {caseLabel3} @BOAT_30318 {caseNum4} 3 {caseLabel4} @BOAT_30351 {caseNum5} 4 {caseLabel5} @BOAT_30384 {caseNum6} -1 {caseLabel6} @BOAT_30417 {caseNum7} -1 {caseLabel7} @BOAT_30417

:BOAT_30252
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_30417

:BOAT_30285
display_text_with_float 200.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_30417

:BOAT_30318
display_text_with_float 217.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_30417

:BOAT_30351
display_text_with_float 187.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_30417

:BOAT_30384
display_text_with_float 190.0 {leftTopY} 75.0 {key} 'BOAT_58' {value} 239@ {precision} 2
goto @BOAT_30417

:BOAT_30417
goto @BOAT_30721

:BOAT_30424
238@ = 0.0
cset_lvar_float_to_lvar_int 238@ =# 228@
238@ /= 1000.0
238@ /= 60.0
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_30721 {caseNum1} 0 {caseLabel1} @BOAT_30532 {caseNum2} 1 {caseLabel2} @BOAT_30565 {caseNum3} 2 {caseLabel3} @BOAT_30598 {caseNum4} 3 {caseLabel4} @BOAT_30631 {caseNum5} 4 {caseLabel5} @BOAT_30664 {caseNum6} -1 {caseLabel6} @BOAT_30721 {caseNum7} -1 {caseLabel7} @BOAT_30721

:BOAT_30532
display_text_with_float 144.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 238@ {precision} 1
goto @BOAT_30721

:BOAT_30565
display_text_with_float 87.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 238@ {precision} 1
goto @BOAT_30721

:BOAT_30598
display_text_with_float 88.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 238@ {precision} 1
goto @BOAT_30721

:BOAT_30631
display_text_with_float 117.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 238@ {precision} 1
goto @BOAT_30721

:BOAT_30664
set_text_scale 0.45 {heightScale} 1.35
display_text_with_float 103.0 {leftTopY} 75.0 {key} 'BOAT_63' {value} 238@ {precision} 1
set_text_scale 0.52 {heightScale} 1.45
goto @BOAT_30721

:BOAT_30721
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 229@
goto_if_false @BOAT_30747
$boat_which_medal_displayed = 1

:BOAT_30747
if 
  is_int_lvar_greater_than_int_var 229@ > $boat_which_score_displayed
goto_if_false @BOAT_30792
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 230@
goto_if_false @BOAT_30792
$boat_which_medal_displayed = 2

:BOAT_30792
if 
  is_int_lvar_greater_than_int_var 230@ > $boat_which_score_displayed
goto_if_false @BOAT_30837
if 
  is_int_var_greater_than_int_lvar $boat_which_score_displayed > 231@
goto_if_false @BOAT_30837
$boat_which_medal_displayed = 3

:BOAT_30837
if 
  is_int_lvar_greater_than_int_var 231@ > $boat_which_score_displayed
goto_if_false @BOAT_30863
$boat_which_medal_displayed = 4

:BOAT_30863
if 
  $boat_which_medal_displayed > 1
goto_if_false @BOAT_30968
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @BOAT_31048

:BOAT_30968
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:BOAT_31048
set_sprites_draw_before_fade True
if 
  $boat_which_medal_displayed == 1
goto_if_false @BOAT_31337
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33314
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31337 {caseNum1} 0 {caseLabel1} @BOAT_31197 {caseNum2} 1 {caseLabel2} @BOAT_31225 {caseNum3} 2 {caseLabel3} @BOAT_31253 {caseNum4} 3 {caseLabel4} @BOAT_31281 {caseNum5} 4 {caseLabel5} @BOAT_31309 {caseNum6} -1 {caseLabel6} @BOAT_31337 {caseNum7} -1 {caseLabel7} @BOAT_31337

:BOAT_31197
display_text 266.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31337

:BOAT_31225
display_text 216.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31337

:BOAT_31253
display_text 233.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31337

:BOAT_31281
display_text 216.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31337

:BOAT_31309
display_text 216.0 {offsetTop} 375.0 {key} 'BOAT_64'
goto @BOAT_31337

:BOAT_31337
if 
  $boat_which_medal_displayed == 2
goto_if_false @BOAT_31622
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33314
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31622 {caseNum1} 0 {caseLabel1} @BOAT_31482 {caseNum2} 1 {caseLabel2} @BOAT_31510 {caseNum3} 2 {caseLabel3} @BOAT_31538 {caseNum4} 3 {caseLabel4} @BOAT_31566 {caseNum5} 4 {caseLabel5} @BOAT_31594 {caseNum6} -1 {caseLabel6} @BOAT_31622 {caseNum7} -1 {caseLabel7} @BOAT_31622

:BOAT_31482
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31622

:BOAT_31510
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31622

:BOAT_31538
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31622

:BOAT_31566
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31622

:BOAT_31594
display_text 280.0 {offsetTop} 375.0 {key} 'BOAT_57'
goto @BOAT_31622

:BOAT_31622
if 
  $boat_which_medal_displayed == 3
goto_if_false @BOAT_31907
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33314
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_31907 {caseNum1} 0 {caseLabel1} @BOAT_31767 {caseNum2} 1 {caseLabel2} @BOAT_31795 {caseNum3} 2 {caseLabel3} @BOAT_31823 {caseNum4} 3 {caseLabel4} @BOAT_31851 {caseNum5} 4 {caseLabel5} @BOAT_31879 {caseNum6} -1 {caseLabel6} @BOAT_31907 {caseNum7} -1 {caseLabel7} @BOAT_31907

:BOAT_31767
display_text 283.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31907

:BOAT_31795
display_text 278.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31907

:BOAT_31823
display_text 283.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31907

:BOAT_31851
display_text 273.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31907

:BOAT_31879
display_text 286.0 {offsetTop} 375.0 {key} 'BOAT_56'
goto @BOAT_31907

:BOAT_31907
if 
  $boat_which_medal_displayed == 4
goto_if_false @BOAT_32192
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BOAT_33314
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
gosub @BOAT_37684
switch_start 252@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BOAT_32192 {caseNum1} 0 {caseLabel1} @BOAT_32052 {caseNum2} 1 {caseLabel2} @BOAT_32080 {caseNum3} 2 {caseLabel3} @BOAT_32108 {caseNum4} 3 {caseLabel4} @BOAT_32136 {caseNum5} 4 {caseLabel5} @BOAT_32164 {caseNum6} -1 {caseLabel6} @BOAT_32192 {caseNum7} -1 {caseLabel7} @BOAT_32192

:BOAT_32052
display_text 294.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_32192

:BOAT_32080
display_text 307.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_32192

:BOAT_32108
display_text 294.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_32192

:BOAT_32136
display_text 300.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_32192

:BOAT_32164
display_text 300.0 {offsetTop} 375.0 {key} 'BOAT_55'
goto @BOAT_32192

:BOAT_32192
return 

:BOAT_32194
if 
  $boatpb_flag == 0
goto_if_false @BOAT_32344
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_32237
gosub @BOAT_2264

:BOAT_32237
if 
  $boat_mission_selection == 2
goto_if_false @BOAT_32262
gosub @BOAT_3828

:BOAT_32262
if 
  $boat_mission_selection == 3
goto_if_false @BOAT_32287
gosub @BOAT_6527

:BOAT_32287
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_32312
gosub @BOAT_10930

:BOAT_32312
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_32337
gosub @BOAT_12810

:BOAT_32337
$boatpb_flag = 1

:BOAT_32344
if 
  $boatpb_flag == 1
goto_if_false @BOAT_32824
if 
  not is_car_dead 37@
goto_if_false @BOAT_32824
if 
  not is_car_dead 37@
goto_if_false @BOAT_32426
204@, 205@, 206@ = get_car_coordinates 37@
clear_area 204@ {y} 205@ {z} 206@ {radius} 1000.0 {clearParticles} True

:BOAT_32426
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_32496
if 
  not has_car_recording_been_loaded 752
goto_if_false @BOAT_32472
request_car_recording 752
goto @BOAT_32496

:BOAT_32472
sync_water 
start_playback_recorded_car 37@ {path} 752
$boat_fade_flag = 3
$boatpb_flag = 2

:BOAT_32496
if 
  $boat_mission_selection == 2
goto_if_false @BOAT_32566
if 
  not has_car_recording_been_loaded 755
goto_if_false @BOAT_32542
request_car_recording 755
goto @BOAT_32566

:BOAT_32542
sync_water 
start_playback_recorded_car 37@ {path} 755
$boat_fade_flag = 3
$boatpb_flag = 2

:BOAT_32566
if 
  $boat_mission_selection == 3
goto_if_false @BOAT_32636
if 
  not has_car_recording_been_loaded 757
goto_if_false @BOAT_32612
request_car_recording 757
goto @BOAT_32636

:BOAT_32612
sync_water 
start_playback_recorded_car 37@ {path} 757
$boat_fade_flag = 3
$boatpb_flag = 2

:BOAT_32636
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_32754
if 
  not has_car_recording_been_loaded 759
goto_if_false @BOAT_32682
request_car_recording 759
goto @BOAT_32754

:BOAT_32682
if 
  not is_car_dead 37@
goto_if_false @BOAT_32730
204@, 205@, 206@ = get_car_coordinates 37@
clear_area 204@ {y} 205@ {z} 206@ {radius} 1000.0 {clearParticles} True

:BOAT_32730
sync_water 
start_playback_recorded_car 37@ {path} 759
$boat_fade_flag = 3
$boatpb_flag = 2

:BOAT_32754
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_32824
if 
  not has_car_recording_been_loaded 760
goto_if_false @BOAT_32800
request_car_recording 760
goto @BOAT_32824

:BOAT_32800
sync_water 
start_playback_recorded_car 37@ {path} 760
$boat_fade_flag = 3
$boatpb_flag = 2

:BOAT_32824
if 
  $boatpb_flag == 2
goto_if_false @BOAT_33145
if 
  not is_car_dead 37@
goto_if_false @BOAT_33131
if 
  not is_car_dead 46@
goto_if_false @BOAT_33094
185@, 186@, 187@ = get_car_coordinates 37@
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_32926
185@ -= 35.0
186@ -= 30.0

:BOAT_32926
if 
  $boat_mission_selection == 2
goto_if_false @BOAT_32964
185@ -= 15.0
186@ -= 30.0

:BOAT_32964
if 
  $boat_mission_selection == 3
goto_if_false @BOAT_33002
185@ -= 13.0
186@ -= 13.0

:BOAT_33002
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_33040
185@ -= 10.0
186@ -= 20.0

:BOAT_33040
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_33078
185@ -= 10.0
186@ -= 20.0

:BOAT_33078
set_car_coordinates 46@ {x} 185@ {y} 186@ {z} 10.0

:BOAT_33094
if 
  not is_playback_going_on_for_car 37@
goto_if_false @BOAT_33124
$boat_fade_flag = 1
$boatpb_flag = 4

:BOAT_33124
goto @BOAT_33145

:BOAT_33131
$boat_fade_flag = 1
$boatpb_flag = 4

:BOAT_33145
if 
  $boatpb_flag == 3
goto_if_false @BOAT_33177
$boat_fade_flag = 1
$boatpb_flag = 4

:BOAT_33177
if 
  $boatpb_flag == 4
goto_if_false @BOAT_33312
if 
  $boat_fade_flag == 2
goto_if_false @BOAT_33312
stop_playback_recorded_car 37@
restore_camera_jumpcut 
clear_onscreen_timer $boat_timer
freeze_onscreen_timer False
delete_car 46@
delete_car 37@
gosub @BOAT_37625
$boatpb_flag = 0
clear_onscreen_timer $boat_timer
freeze_onscreen_timer False
delete_car 37@
delete_car 46@
delete_char 47@
delete_char 39@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 42@
delete_char 43@
delete_char 45@

:BOAT_33312
return 

:BOAT_33314
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BOAT_33376
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:BOAT_33492
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 
set_text_draw_before_fade True
set_text_justify True
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.8
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BOAT_33612
set_player_control $player1 {state} False
delete_char 39@
delete_char 42@
delete_char 43@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 45@
clear_onscreen_timer $boat_timer
40@ = create_car 454 {x} -2100.8359 {y} 2247.8621 {z} 0.0
set_car_heading 40@ {heading} 122.0
42@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 210
41@ = create_car 484 {x} -1996.127 {y} 2125.1689 {z} 0.0
set_car_heading 41@ {heading} 160.0
43@ = create_char_inside_car 41@ {pedType} PedType.Mission1 {modelId} 210
44@ = create_car 454 {x} -2251.1709 {y} 2129.291 {z} 0.0
set_car_heading 44@ {heading} 182.0
45@ = create_char_inside_car 44@ {pedType} PedType.Mission1 {modelId} 210
warp_char_into_car $scplayer {vehicle} 37@
lock_car_doors 37@ {lockStatus} CarLock.LockedPlayerInside
wait 1000
do_fade 2000 {direction} Fade.Out

:BOAT_33824
if 
  get_fading_status 
goto_if_false @BOAT_33848
wait 0
goto @BOAT_33824

:BOAT_33848
restore_camera_jumpcut 
set_camera_behind_player 
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_33891
load_scene -2318.0491 {y} 2312.302 {z} 10.0
wait 0

:BOAT_33891
if 
  not is_car_dead 37@
goto_if_false @BOAT_33939
204@, 205@, 206@ = get_car_coordinates 37@
clear_area 204@ {y} 205@ {z} 206@ {radius} 1000.0 {clearParticles} True

:BOAT_33939
do_fade 2000 {direction} Fade.In

:BOAT_33946
if 
  get_fading_status 
goto_if_false @BOAT_33970
wait 0
goto @BOAT_33946

:BOAT_33970
if 
  not is_car_dead 37@
goto_if_false @BOAT_34018
204@, 205@, 206@ = get_car_coordinates 37@
clear_area 204@ {y} 205@ {z} 206@ {radius} 1000.0 {clearParticles} True

:BOAT_34018
return 

:BOAT_34020
do_fade 500 {direction} Fade.Out

:BOAT_34027
if 
  get_fading_status 
goto_if_false @BOAT_34051
wait 0
goto @BOAT_34027

:BOAT_34051
if 
  $boat_mission_selection == 16
goto_if_false @BOAT_34090
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
goto @BOAT_34104

:BOAT_34090
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0

:BOAT_34104
restore_camera_jumpcut 
set_camera_behind_player 
force_weather_now WeatherType.ExtraSunnyCountryside
set_area_visible 0
delete_char 39@
delete_char 42@
delete_char 43@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 45@
return 

:BOAT_34153
change_blip_scale 53@ {size} 1
change_blip_scale 54@ {size} 1
change_blip_colour 52@ {color} BlipColor.Yellow
change_blip_colour 51@ {color} BlipColor.Yellow
change_blip_colour 53@ {color} BlipColor.Yellow
change_blip_colour 54@ {color} BlipColor.Yellow
return 

:BOAT_34197
if 
  $boat_mission_selection == 1
goto_if_false @BOAT_34503
156@ = 0

:BOAT_34222
if 
  8 > 156@
goto_if_false @BOAT_34303
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_34222

:BOAT_34303
if 
  not is_car_dead 37@
goto_if_false @BOAT_34503
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 180.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 180.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 200.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 200.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 20.0 {yOffset} 210.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} -20.0 {yOffset} 210.0 {zOffset} 0.0

:BOAT_34503
if 
  $boat_mission_selection == 2
goto_if_false @BOAT_34993
156@ = 0

:BOAT_34528
if 
  16 > 156@
goto_if_false @BOAT_34609
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_34528

:BOAT_34609
if 
  not is_car_dead 37@
goto_if_false @BOAT_34993
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 80.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 15.0 {yOffset} 70.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 55.0 {yOffset} 145.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} 70.0 {yOffset} 130.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 150.0 {yOffset} 110.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} 160.0 {yOffset} 130.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 250.0 {yOffset} 80.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} 240.0 {yOffset} 60.0 {zOffset} 0.0
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} 300.0 {yOffset} 0.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} 290.0 {yOffset} -20.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} 380.0 {yOffset} -150.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} 360.0 {yOffset} -150.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} 320.0 {yOffset} -300.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} 340.0 {yOffset} -325.0 {zOffset} 0.0
place_object_relative_to_car 70@ {vehicle} 37@ {xOffset} 230.0 {yOffset} -280.0 {zOffset} 0.0
place_object_relative_to_car 71@ {vehicle} 37@ {xOffset} 210.0 {yOffset} -300.0 {zOffset} 0.0

:BOAT_34993
if 
  $boat_mission_selection == 3
goto_if_false @BOAT_35759
156@ = 0

:BOAT_35018
if 
  28 > 156@
goto_if_false @BOAT_35099
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_35018

:BOAT_35099
if 
  not is_car_dead 37@
goto_if_false @BOAT_35759
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 15.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 40.0 {yOffset} 200.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} 55.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 300.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} -15.0 {yOffset} 290.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 140.0 {yOffset} 320.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} 140.0 {yOffset} 335.0 {zOffset} 0.0
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} 220.0 {yOffset} 370.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} 210.0 {yOffset} 385.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} 210.0 {yOffset} 470.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} 195.0 {yOffset} 460.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} 195.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} 180.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 70@ {vehicle} 37@ {xOffset} 95.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 71@ {vehicle} 37@ {xOffset} 95.0 {yOffset} 585.0 {zOffset} 0.0
place_object_relative_to_car 72@ {vehicle} 37@ {xOffset} 15.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 73@ {vehicle} 37@ {xOffset} 0.0 {yOffset} 515.0 {zOffset} 0.0
place_object_relative_to_car 74@ {vehicle} 37@ {xOffset} -90.0 {yOffset} 585.0 {zOffset} 0.0
place_object_relative_to_car 75@ {vehicle} 37@ {xOffset} -90.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 76@ {vehicle} 37@ {xOffset} -160.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 77@ {vehicle} 37@ {xOffset} -150.0 {yOffset} 485.0 {zOffset} 0.0
place_object_relative_to_car 78@ {vehicle} 37@ {xOffset} -240.0 {yOffset} 430.0 {zOffset} 0.0
place_object_relative_to_car 79@ {vehicle} 37@ {xOffset} -230.0 {yOffset} 415.0 {zOffset} 0.0
place_object_relative_to_car 80@ {vehicle} 37@ {xOffset} -140.0 {yOffset} 330.0 {zOffset} 0.0
place_object_relative_to_car 81@ {vehicle} 37@ {xOffset} -140.0 {yOffset} 315.0 {zOffset} 0.0
place_object_relative_to_car 82@ {vehicle} 37@ {xOffset} -30.0 {yOffset} 220.0 {zOffset} 0.0
place_object_relative_to_car 83@ {vehicle} 37@ {xOffset} -40.0 {yOffset} 205.0 {zOffset} 0.0

:BOAT_35759
if 
  $boat_mission_selection == 4
goto_if_false @BOAT_36430
156@ = 0

:BOAT_35784
if 
  20 > 156@
goto_if_false @BOAT_35865
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_35784

:BOAT_35865
157@ = 0

:BOAT_35872
if 
  1 > 157@
goto_if_false @BOAT_35931
create_object_no_offset #WATERJUMPX2 {x} 20.0 {y} 20.0 {z} 150.0 {var_handle} 106@(157@,50i)
157@ += 1
goto @BOAT_35872

:BOAT_35931
if 
  not is_car_dead 37@
goto_if_false @BOAT_36430
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 91.0 {yOffset} 480.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 109.0 {yOffset} 480.0 {zOffset} 0.0
place_object_relative_to_car 106@ {vehicle} 37@ {xOffset} 100.0 {yOffset} 480.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 510.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 510.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 520.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 520.0 {zOffset} 0.0
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 530.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 530.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 540.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 540.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 550.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 550.0 {zOffset} 0.0
place_object_relative_to_car 70@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 560.0 {zOffset} 0.0
place_object_relative_to_car 71@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 560.0 {zOffset} 0.0
place_object_relative_to_car 72@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 73@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 570.0 {zOffset} 0.0
place_object_relative_to_car 74@ {vehicle} 37@ {xOffset} 75.0 {yOffset} 580.0 {zOffset} 0.0
place_object_relative_to_car 75@ {vehicle} 37@ {xOffset} 125.0 {yOffset} 580.0 {zOffset} 0.0

:BOAT_36430
if 
  $boat_mission_selection == 5
goto_if_false @BOAT_37623
156@ = 0

:BOAT_36455
if 
  44 > 156@
goto_if_false @BOAT_36536
create_object_no_offset #BOUY {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 56@(156@,50i)
set_object_collision 56@(156@,50i) {state} True
set_object_dynamic 56@(156@,50i) {state} True
156@ += 1
goto @BOAT_36455

:BOAT_36536
157@ = 0

:BOAT_36543
if 
  3 > 157@
goto_if_false @BOAT_36602
create_object_no_offset #WATERJUMPX2 {x} 20.0 {y} 20.0 {z} 150.0 {var_handle} 106@(157@,50i)
157@ += 1
goto @BOAT_36543

:BOAT_36602
if 
  not is_car_dead 37@
goto_if_false @BOAT_37623
place_object_relative_to_car 56@ {vehicle} 37@ {xOffset} 25.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 57@ {vehicle} 37@ {xOffset} 10.0 {yOffset} 100.0 {zOffset} 0.0
place_object_relative_to_car 58@ {vehicle} 37@ {xOffset} -30.0 {yOffset} 170.0 {zOffset} 0.0
place_object_relative_to_car 59@ {vehicle} 37@ {xOffset} -50.0 {yOffset} 160.0 {zOffset} 0.0
place_object_relative_to_car 60@ {vehicle} 37@ {xOffset} -100.0 {yOffset} 190.0 {zOffset} 0.0
place_object_relative_to_car 61@ {vehicle} 37@ {xOffset} -120.0 {yOffset} 170.0 {zOffset} 0.0
place_object_relative_to_car 62@ {vehicle} 37@ {xOffset} -170.0 {yOffset} 260.0 {zOffset} 0.0
place_object_relative_to_car 63@ {vehicle} 37@ {xOffset} -188.0 {yOffset} 260.0 {zOffset} 0.0
place_object_relative_to_car 106@ {vehicle} 37@ {xOffset} -179.0 {yOffset} 360.0 {zOffset} -6.509
place_object_relative_to_car 64@ {vehicle} 37@ {xOffset} -170.0 {yOffset} 360.0 {zOffset} 0.0
place_object_relative_to_car 65@ {vehicle} 37@ {xOffset} -188.0 {yOffset} 360.0 {zOffset} 0.0
place_object_relative_to_car 66@ {vehicle} 37@ {xOffset} -180.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 67@ {vehicle} 37@ {xOffset} -195.0 {yOffset} 500.0 {zOffset} 0.0
place_object_relative_to_car 68@ {vehicle} 37@ {xOffset} -50.0 {yOffset} 600.0 {zOffset} 0.0
place_object_relative_to_car 69@ {vehicle} 37@ {xOffset} -30.0 {yOffset} 600.0 {zOffset} 0.0
set_object_coordinates 107@ {x} -2682.1589 {y} 1946.412 {z} 0.9
set_object_heading 107@ {heading} 180.0
set_object_coordinates 70@ {x} -2689.573 {y} 1944.864 {z} 0.0
set_object_coordinates 71@ {x} -2674.354 {y} 1944.6071 {z} 0.0
set_object_coordinates 108@ {x} -2681.7461 {y} 1608.7939 {z} 0.9
set_object_heading 108@ {heading} 180.0
set_object_coordinates 72@ {x} -2689.573 {y} 1607.7939 {z} 0.0
set_object_coordinates 73@ {x} -2674.354 {y} 1607.7939 {z} 0.0
set_object_coordinates 74@ {x} -2689.27 {y} 1533.282 {z} 0.0
set_object_coordinates 75@ {x} -2674.6399 {y} 1530.12 {z} 0.0
set_object_coordinates 76@ {x} -2553.7 {y} 1494.392 {z} 0.0
set_object_coordinates 77@ {x} -2550.7419 {y} 1481.417 {z} 0.0
set_object_coordinates 78@ {x} -2453.7 {y} 1494.392 {z} 0.0
set_object_coordinates 79@ {x} -2450.7419 {y} 1481.417 {z} 0.0
set_object_coordinates 80@ {x} -2353.7 {y} 1474.392 {z} 0.0
set_object_coordinates 81@ {x} -2350.7419 {y} 1461.417 {z} 0.0
set_object_coordinates 82@ {x} -2284.2419 {y} 1547.5811 {z} 0.0
set_object_coordinates 83@ {x} -2270.8931 {y} 1550.765 {z} 0.0
set_object_coordinates 84@ {x} -2334.2419 {y} 1647.5811 {z} 0.0
set_object_coordinates 85@ {x} -2320.8931 {y} 1650.765 {z} 0.0
set_object_coordinates 86@ {x} -2284.2419 {y} 1747.5811 {z} 0.0
set_object_coordinates 87@ {x} -2270.8931 {y} 1750.765 {z} 0.0
set_object_coordinates 88@ {x} -2139.394 {y} 1821.2629 {z} 0.0
set_object_coordinates 89@ {x} -2134.5811 {y} 1808.785 {z} 0.0
set_object_coordinates 90@ {x} -2039.394 {y} 1761.2629 {z} 0.0
set_object_coordinates 91@ {x} -2034.5811 {y} 1748.785 {z} 0.0
set_object_coordinates 92@ {x} -1939.394 {y} 1841.2629 {z} 0.0
set_object_coordinates 93@ {x} -1934.5811 {y} 1828.785 {z} 0.0
set_object_coordinates 94@ {x} -1809.394 {y} 1801.2629 {z} 0.0
set_object_coordinates 95@ {x} -1804.5811 {y} 1788.785 {z} 0.0
set_object_coordinates 96@ {x} -1831.853 {y} 1909.105 {z} 0.0
set_object_coordinates 97@ {x} -1847.2531 {y} 1906.1121 {z} 0.0
set_object_coordinates 98@ {x} -1879.002 {y} 2073.6011 {z} 0.0
set_object_coordinates 99@ {x} -1893.786 {y} 2068.166 {z} 0.0

:BOAT_37623
return 

:BOAT_37625
156@ = 0

:BOAT_37632
if 
  50 > 156@
goto_if_false @BOAT_37682
delete_object 56@(156@,50i)
delete_object 106@(156@,50i)
156@ += 1
goto @BOAT_37632

:BOAT_37682
return 

:BOAT_37684
252@ = get_current_language 
return 

:BOAT_37691
load_scene_in_direction -2185.335 {y} 2410.4089 {z} 3.9752 {heading} 122.2585
clear_help 
clear_prints 
set_char_heading $scplayer {heading} 177@
set_camera_behind_player 
restore_camera_jumpcut 
return 

:BOAT_37731
if 
  $boat_passed_once == 0
goto_if_false @BOAT_37807
clear_mission_audio MissionAudioSlot.Slot3
print_big 'BOAT_P2' {time} 5000 {style} TextStyle.Middle
print 'BOAT_P1' {time} 5000 {flag} 1
play_mission_passed_tune 2
clear_wanted_level $player1
player_made_progress 1
register_oddjob_mission_passed 
$boat_passed_once = 1

:BOAT_37807
return 

:BOAT_37809
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundEnableHeliAudio
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundAwardTrackStop
set_player_can_do_drive_by $player1 {state} True
set_char_drowns_in_water $scplayer {state} True
clear_mission_audio MissionAudioSlot.Slot3
display_hud True
display_radar True
display_car_names True
display_zone_names True
clear_onscreen_timer $boat_timer
remove_blip 52@
remove_blip 51@
remove_blip 53@
remove_blip 54@
mark_model_as_no_longer_needed 210
mark_char_as_no_longer_needed 39@
mark_char_as_no_longer_needed 38@
delete_car 37@
delete_car 46@
delete_char 42@
delete_char 43@
delete_car 40@
delete_car 41@
delete_car 44@
delete_char 45@
mark_model_as_no_longer_needed 473
mark_model_as_no_longer_needed 497
mark_model_as_no_longer_needed 472
mark_model_as_no_longer_needed 484
mark_model_as_no_longer_needed 454
mark_model_as_no_longer_needed 539
release_weather 
set_player_control $player1 {state} True
$timer_mobile_start = get_game_timer 
if 
  $boat_gold_rewardgiven == 0
goto_if_false @BOAT_38136
if 
  $boat_accelerate_goldachieved == 1
goto_if_false @BOAT_38136
if 
  $boat_simplecircuit_goldachieved == 1
goto_if_false @BOAT_38136
if 
  $boat_slalom_goldachieved == 1
goto_if_false @BOAT_38136
if 
  $boat_skijump_goldachieved == 1
goto_if_false @BOAT_38136
if 
  $boat_hover_goldachieved == 1
goto_if_false @BOAT_38136
$boat_gold_rewardgiven = 1
$boat_silver_rewardgiven = 99
$boat_bronze_rewardgiven = 99

:BOAT_38136
if 
  $boat_silver_rewardgiven == 0
goto_if_false @BOAT_38258
if 
  $boat_accelerate_silverachieved == 1
goto_if_false @BOAT_38258
if 
  $boat_simplecircuit_silverachieved == 1
goto_if_false @BOAT_38258
if 
  $boat_slalom_silverachieved == 1
goto_if_false @BOAT_38258
if 
  $boat_skijump_silverachieved == 1
goto_if_false @BOAT_38258
if 
  $boat_hover_silverachieved == 1
goto_if_false @BOAT_38258
$boat_silver_rewardgiven = 1
$boat_bronze_rewardgiven = 99

:BOAT_38258
if 
  $boat_bronze_rewardgiven == 0
goto_if_false @BOAT_38373
if 
  $boat_accelerate_bronzeachieved == 1
goto_if_false @BOAT_38373
if 
  $boat_simplecircuit_bronzeachieved == 1
goto_if_false @BOAT_38373
if 
  $boat_slalom_bronzeachieved == 1
goto_if_false @BOAT_38373
if 
  $boat_skijump_bronzeachieved == 1
goto_if_false @BOAT_38373
if 
  $boat_hover_bronzeachieved == 1
goto_if_false @BOAT_38373
$boat_bronze_rewardgiven = 1

:BOAT_38373
if 
  $boat_gold_rewardgiven == 1
goto_if_false @BOAT_38440
switch_car_generator $boat_gold_generator {amount} 101
set_has_been_owned_for_car_generator $boat_gold_generator {state} True
switch_car_generator $boat_silver_generator {amount} 101
set_has_been_owned_for_car_generator $boat_silver_generator {state} True
switch_car_generator $boat_bronze_generator {amount} 101
set_has_been_owned_for_car_generator $boat_bronze_generator {state} True
$boat_gold_rewardgiven = 2

:BOAT_38440
if 
  $boat_silver_rewardgiven == 1
goto_if_false @BOAT_38493
switch_car_generator $boat_silver_generator {amount} 101
set_has_been_owned_for_car_generator $boat_silver_generator {state} True
switch_car_generator $boat_bronze_generator {amount} 101
set_has_been_owned_for_car_generator $boat_bronze_generator {state} True
$boat_silver_rewardgiven = 2

:BOAT_38493
if 
  $boat_bronze_rewardgiven == 1
goto_if_false @BOAT_38532
switch_car_generator $boat_bronze_generator {amount} 101
set_has_been_owned_for_car_generator $boat_bronze_generator {state} True
$boat_bronze_rewardgiven = 2

:BOAT_38532
$onmission = 0
mission_has_finished 
return 

//-------------Mission 120---------------
// Originally: Bike School

:BSKOOL
script_name 'BSKOOL'
gosub @BSKOOL_47
if 
  has_deatharrest_been_executed 
goto_if_false @BSKOOL_38
gosub @BSKOOL_11889

:BSKOOL_38
gosub @BSKOOL_11994
terminate_this_script 

:BSKOOL_47
clear_this_print 'M_FAIL'
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_78
register_mission_given 

:BSKOOL_78
$onmission = 1
load_mission_text 'BS'
set_fading_colour 0 {g} 0 {b} 0
wait 0
if 
  $onmission == 0
goto_if_false @BSKOOL_218
38@ = create_car 581 {x} $car_posx {y} $car_posy {z} $perfect_positionz
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50
$trafficcones[20] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
$trafficcones[30] = create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 100.0
56@ = create_object #LANDJUMP2 {x} $car_posx {y} $car_posy {z} $perfect_positionz

:BSKOOL_218
34@ = 0
61@ = 0
62@ = 0
57@ = 0
63@ = 0
64@ = 0
65@ = 0
66@ = 0
67@ = 0
51@ = 0
if 
  $bs_open_tests == 0
goto_if_false @BSKOOL_313
$bs_open_tests = 1

:BSKOOL_313
$mission_selection = 1
$start_coordsx = 1130.4399
$start_coordsy = 1341.0
$noticeboard_x = 1173.9301
$noticeboard_y = 1351.066
$noticeboard_z = 9.9219
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
request_model 581
request_model 521
request_model 461
request_model #TRAFFICCONE
request_model #LANDJUMP2
request_model 522
request_model 468
request_model 50

:BSKOOL_429
if or
  not has_model_loaded 581
  not has_model_loaded 521
  not has_model_loaded 461
  not has_model_loaded #TRAFFICCONE
  not has_model_loaded #LANDJUMP2
goto_if_false @BSKOOL_476
wait 0
goto @BSKOOL_429

:BSKOOL_476
if or
  not has_model_loaded 468
  not has_model_loaded 50
  not has_model_loaded 522
goto_if_false @BSKOOL_512
wait 0
goto @BSKOOL_476

:BSKOOL_512
load_texture_dictionary 'LD_DRV'
load_sprite 1 {spriteName} "BRONZE"
load_sprite 2 {spriteName} "SILVER"
load_sprite 3 {spriteName} "GOLD"
load_sprite 4 {spriteName} "RIBB"
load_sprite 5 {spriteName} "TVCORN"
load_sprite 6 {spriteName} "NAWARD"
load_sprite 7 {spriteName} "RIBBW"
load_sprite 8 {spriteName} "BLKDOT"
load_sprite 9 {spriteName} "TVBASE"
set_player_control $player1 {state} True
display_hud False
goto @BSKOOL_644

:BSKOOL_644
set_player_control $player1 {state} False
clear_help 
clear_prints 
50@ = store_wanted_level $player1
clear_wanted_level $player1
gosub @BSKOOL_16623
34@ = 0
57@ = 0
use_text_commands True
64@ = 255
63@ = 2
if 
  7 > $bs_open_tests
goto_if_false @BSKOOL_734
set_var_int_to_lvar_int $mission_selection = 37@

:BSKOOL_734
do_fade 500 {direction} Fade.In

:BSKOOL_741
if 
  get_fading_status 
goto_if_false @BSKOOL_774
clear_prints 
gosub @BSKOOL_12674
wait 0
goto @BSKOOL_741

:BSKOOL_774
gosub @BSKOOL_12674
display_radar False

:BSKOOL_785
wait 0
gosub @BSKOOL_12674
if 
  51@ == 0
goto_if_false @BSKOOL_828
load_mission_audio MissionAudioSlot.Slot3 {audioId} 3800
51@ = 1

:BSKOOL_828
if 
  51@ == 1
goto_if_false @BSKOOL_868
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BSKOOL_868
51@ = 2

:BSKOOL_868
if 
  51@ == 2
goto_if_false @BSKOOL_897
play_mission_audio MissionAudioSlot.Slot3
51@ = 3

:BSKOOL_897
if 
  57@ == 0
goto_if_false @BSKOOL_1394
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BSKOOL_1012
37@ -= 1
$mission_selection -= 1
if 
  $bs_open_tests > 1
goto_if_false @BSKOOL_1012
if 
  4 > 34@
goto_if_false @BSKOOL_1012
34@ = 3

:BSKOOL_1012
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BSKOOL_1093
37@ += 1
$mission_selection += 1
if 
  $bs_open_tests > 1
goto_if_false @BSKOOL_1093
if 
  4 > 34@
goto_if_false @BSKOOL_1093
34@ = 3

:BSKOOL_1093
if 
  1 > $mission_selection
goto_if_false @BSKOOL_1127
set_var_int_to_var_int $mission_selection = $bs_open_tests
set_lvar_int_to_var_int 37@ = $bs_open_tests

:BSKOOL_1127
if 
  is_int_var_greater_than_int_var $mission_selection > $bs_open_tests
goto_if_false @BSKOOL_1160
37@ = 1
$mission_selection = 1

:BSKOOL_1160
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BSKOOL_1195
wait 0
gosub @BSKOOL_12674
goto @BSKOOL_1160

:BSKOOL_1195
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BSKOOL_1230
wait 0
gosub @BSKOOL_12674
goto @BSKOOL_1195

:BSKOOL_1230
if 
  -100 > $LStickX
goto_if_false @BSKOOL_1282
wait 0
gosub @BSKOOL_12674
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BSKOOL_1230

:BSKOOL_1282
if 
  $LStickX > 100
goto_if_false @BSKOOL_1334
wait 0
gosub @BSKOOL_12674
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
goto @BSKOOL_1282

:BSKOOL_1334
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BSKOOL_1394
if 
  4 > 34@
goto_if_false @BSKOOL_1376
34@ = 3

:BSKOOL_1376
clear_mission_audio MissionAudioSlot.Slot3
51@ = 0
goto @BSKOOL_1639

:BSKOOL_1394
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @BSKOOL_1416
$bs_open_tests = 6

:BSKOOL_1416
if 
is_ps2_keyboard_key_pressed 53
goto_if_false @BSKOOL_1480
$bs_open_tests = 6
$bs_wheelie_best_score = 100
$bs_stoppie_best_score = 100
$bs_the360_best_score = 100
$bs_the180_best_score = 100
$bs_jumpstop_best_score = 100
$bs_jumpstoppie_best_score = 100

:BSKOOL_1480
if and
  $bs_wheelie_best_score > 69
  $bs_stoppie_best_score > 69
  $bs_the360_best_score > 69
  $bs_the180_best_score > 69
  $bs_jumpstop_best_score > 69
  $bs_jumpstoppie_best_score > 69
goto_if_false @BSKOOL_1540
$bs_passed = 1

:BSKOOL_1540
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_1590
if 
  $bs_passed == 1
goto_if_false @BSKOOL_1590
gosub @BSKOOL_20613
goto @BSKOOL_11917

:BSKOOL_1590
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_1625
clear_mission_audio MissionAudioSlot.Slot3
51@ = 0
goto @BSKOOL_11889

:BSKOOL_1625
gosub @BSKOOL_15813
goto @BSKOOL_785

:BSKOOL_1639
do_fade 500 {direction} Fade.Out

:BSKOOL_1646
if 
  get_fading_status 
goto_if_false @BSKOOL_1677
gosub @BSKOOL_12674
wait 0
goto @BSKOOL_1646

:BSKOOL_1677
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_1698
stop_playback_recorded_car 38@

:BSKOOL_1698
delete_car 38@
delete_char 49@
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_car 38@
gosub @BSKOOL_20952
34@ = 5
display_radar True
if 
  $mission_selection == 1
goto_if_false @BSKOOL_3452

:BSKOOL_1776
gosub @BSKOOL_16586

:BSKOOL_1783
$perfect_heading = 180.0
$car_timer = 16000
35@ = 181
gosub @BSKOOL_16623
38@ = create_car 581 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_21023
if 
  34@ == 0
goto_if_false @BSKOOL_1939
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_1896
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_1896
set_fixed_camera_position 1125.66 {y} 1334.4 {z} 22.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_1939
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_now 'BS_A_1' {time} 5000 {flag} 4
gosub @BSKOOL_17345

:BSKOOL_1993
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_2028
48@ = 2
goto @BSKOOL_3392

:BSKOOL_2028
gosub @BSKOOL_17412
if 
  48@ == 1
goto_if_false @BSKOOL_2060
goto @BSKOOL_11889

:BSKOOL_2060
if 
  $car_started == 0
goto_if_false @BSKOOL_2108
print_now 'BS_A_1' {time} 5000 {flag} 4
gosub @BSKOOL_17488
goto @BSKOOL_3445

:BSKOOL_2108
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_3445
gosub @BSKOOL_17646
$perfect_heading = get_car_heading 38@
if 
  $variablec == 0
goto_if_false @BSKOOL_2213
if 
  $perfect_heading > 80.0
goto_if_false @BSKOOL_2213
if 
  90.0 > $perfect_heading
goto_if_false @BSKOOL_2213
$variablec = 1
58@ = 1

:BSKOOL_2213
if 
  58@ == 1
goto_if_false @BSKOOL_2432
if 
  $variablec == 1
goto_if_false @BSKOOL_2298
if 
  $perfect_heading > 350.0
goto_if_false @BSKOOL_2298
if 
  360.0 > $perfect_heading
goto_if_false @BSKOOL_2298
$variablec = 2

:BSKOOL_2298
if 
  $variablec == 2
goto_if_false @BSKOOL_2365
if 
  $perfect_heading > 270.0
goto_if_false @BSKOOL_2365
if 
  280.0 > $perfect_heading
goto_if_false @BSKOOL_2365
$variablec = 3

:BSKOOL_2365
if 
  $variablec == 3
goto_if_false @BSKOOL_2432
if 
  $perfect_heading > 170.0
goto_if_false @BSKOOL_2432
if 
  180.0 > $perfect_heading
goto_if_false @BSKOOL_2432
$variablec = 4

:BSKOOL_2432
if 
  $variablec == 0
goto_if_false @BSKOOL_2506
if 
  $perfect_heading > 270.0
goto_if_false @BSKOOL_2506
if 
  280.0 > $perfect_heading
goto_if_false @BSKOOL_2506
58@ = 2
$variablec = 1

:BSKOOL_2506
if 
  58@ == 2
goto_if_false @BSKOOL_2725
if 
  $variablec == 1
goto_if_false @BSKOOL_2591
if 
  $perfect_heading > 350.0
goto_if_false @BSKOOL_2591
if 
  360.0 > $perfect_heading
goto_if_false @BSKOOL_2591
$variablec = 2

:BSKOOL_2591
if 
  $variablec == 2
goto_if_false @BSKOOL_2658
if 
  $perfect_heading > 80.0
goto_if_false @BSKOOL_2658
if 
  90.0 > $perfect_heading
goto_if_false @BSKOOL_2658
$variablec = 3

:BSKOOL_2658
if 
  $variablec == 3
goto_if_false @BSKOOL_2725
if 
  $perfect_heading > 170.0
goto_if_false @BSKOOL_2725
if 
  180.0 > $perfect_heading
goto_if_false @BSKOOL_2725
$variablec = 4

:BSKOOL_2725
if or
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
  not is_char_in_car $scplayer {vehicle} 38@
  $car_timer == 0
goto_if_false @BSKOOL_3445
gosub @BSKOOL_17680
gosub @BSKOOL_17693
if 
  $variablec == 4
goto_if_false @BSKOOL_2802
$heading_score = 100

:BSKOOL_2802
if 
  $variablec == 3
goto_if_false @BSKOOL_2827
$heading_score = 75

:BSKOOL_2827
if 
  $variablec == 2
goto_if_false @BSKOOL_2852
$heading_score = 50

:BSKOOL_2852
if 
  $variablec == 1
goto_if_false @BSKOOL_2877
$heading_score = 25

:BSKOOL_2877
if 
  $variablec == 0
goto_if_false @BSKOOL_2902
$heading_score = 0

:BSKOOL_2902
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_2950
$overall_score = 0

:BSKOOL_2950
gosub @BSKOOL_17937
gosub @BSKOOL_18315
if 
  is_int_var_greater_than_int_var $overall_score > $bs_the360_best_score
goto_if_false @BSKOOL_3170
set_lvar_int_to_var_int 67@ = $bs_the360_best_score
set_var_int_to_var_int $bs_the360_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18779
if 
  65@ == 4
goto_if_false @BSKOOL_3070
if 
  $bs_the360_goldachieved == 0
goto_if_false @BSKOOL_3070
$bs_the360_goldachieved = 1
$bs_the360_silverachieved = 1
$bs_the360_bronzeachieved = 1

:BSKOOL_3070
if 
  65@ == 3
goto_if_false @BSKOOL_3120
if 
  $bs_the360_silverachieved == 0
goto_if_false @BSKOOL_3120
$bs_the360_silverachieved = 1
$bs_the360_bronzeachieved = 1

:BSKOOL_3120
if 
  65@ == 2
goto_if_false @BSKOOL_3163
if 
  $bs_the360_bronzeachieved == 0
goto_if_false @BSKOOL_3163
$bs_the360_bronzeachieved = 1

:BSKOOL_3163
goto @BSKOOL_3177

:BSKOOL_3170
65@ = 0

:BSKOOL_3177
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_3261
if 
  $overall_score > 69
goto_if_false @BSKOOL_3261
59@ = 2
$bs_open_tests = 2
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_3261
TIMERA = 0

:BSKOOL_3268
if 
  TIMERA > -1
goto_if_false @BSKOOL_3392
wait 0
gosub @BSKOOL_18344
if 
  59@ <> 2
goto_if_false @BSKOOL_3346
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_3346
48@ = 2
goto @BSKOOL_3392

:BSKOOL_3346
gosub @BSKOOL_19009
gosub @BSKOOL_20530
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_3385
goto @BSKOOL_3392

:BSKOOL_3385
goto @BSKOOL_3268

:BSKOOL_3392
gosub @BSKOOL_20613
gosub @BSKOOL_20952
if 
  48@ == 2
goto_if_false @BSKOOL_3438
goto @BSKOOL_644
goto @BSKOOL_3445

:BSKOOL_3438
goto @BSKOOL_1776

:BSKOOL_3445
goto @BSKOOL_1993

:BSKOOL_3452
if 
  $mission_selection == 2
goto_if_false @BSKOOL_4877

:BSKOOL_3470
gosub @BSKOOL_16586

:BSKOOL_3477
$perfect_heading = 0.0
$car_timer = 11000
35@ = 182
gosub @BSKOOL_16623
38@ = create_car 461 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_21023
if 
  34@ == 0
goto_if_false @BSKOOL_3633
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_3590
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_3590
set_fixed_camera_position 1130.66 {y} 1264.4 {z} 14.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_3633
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -2.0 {yOffset} 82.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 2.0 {yOffset} 88.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
clear_prints 
print_now 'BS_B_1' {time} 5000 {flag} 4
gosub @BSKOOL_17345

:BSKOOL_3745
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_3780
48@ = 2
goto @BSKOOL_4817

:BSKOOL_3780
if 
  $car_started == 0
goto_if_false @BSKOOL_3828
print_now 'BS_B_1' {time} 5000 {flag} 4
gosub @BSKOOL_17488
goto @BSKOOL_4870

:BSKOOL_3828
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_4870
gosub @BSKOOL_17646
if 
  $variablec == 0
goto_if_false @BSKOOL_3906
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_3906
$variablec = 1

:BSKOOL_3906
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_4870
gosub @BSKOOL_17680
gosub @BSKOOL_17693
if 
  $variablec == 0
goto_if_false @BSKOOL_3969
$position_score = 0

:BSKOOL_3969
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  39@ == 0
goto_if_false @BSKOOL_4017
$heading_score = 100
goto @BSKOOL_4302

:BSKOOL_4017
if 
  39@ == 360
goto_if_false @BSKOOL_4050
$heading_score = 100
goto @BSKOOL_4302

:BSKOOL_4050
if 
  39@ > 0
goto_if_false @BSKOOL_4093
if 
  21 > 39@
goto_if_false @BSKOOL_4093
$heading_score = 100

:BSKOOL_4093
if 
  39@ > 179
goto_if_false @BSKOOL_4172
if 
  340 > 39@
goto_if_false @BSKOOL_4172
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.62
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_4302

:BSKOOL_4172
if 
  39@ > 339
goto_if_false @BSKOOL_4217
if 
  360 > 39@
goto_if_false @BSKOOL_4217
$heading_score = 100

:BSKOOL_4217
if 
  39@ > 20
goto_if_false @BSKOOL_4302
if 
  180 > 39@
goto_if_false @BSKOOL_4302
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.62
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_4302

:BSKOOL_4302
if 
  1 > $heading_score
goto_if_false @BSKOOL_4327
$heading_score = 0

:BSKOOL_4327
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_4375
$overall_score = 0

:BSKOOL_4375
gosub @BSKOOL_17937
gosub @BSKOOL_18315
if 
  is_int_var_greater_than_int_var $overall_score > $bs_the180_best_score
goto_if_false @BSKOOL_4595
set_lvar_int_to_var_int 67@ = $bs_the180_best_score
set_var_int_to_var_int $bs_the180_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18779
if 
  65@ == 4
goto_if_false @BSKOOL_4495
if 
  $bs_the180_goldachieved == 0
goto_if_false @BSKOOL_4495
$bs_the180_goldachieved = 1
$bs_the180_silverachieved = 1
$bs_the180_bronzeachieved = 1

:BSKOOL_4495
if 
  65@ == 3
goto_if_false @BSKOOL_4545
if 
  $bs_the180_silverachieved == 0
goto_if_false @BSKOOL_4545
$bs_the180_silverachieved = 1
$bs_the180_bronzeachieved = 1

:BSKOOL_4545
if 
  65@ == 2
goto_if_false @BSKOOL_4588
if 
  $bs_the180_bronzeachieved == 0
goto_if_false @BSKOOL_4588
$bs_the180_bronzeachieved = 1

:BSKOOL_4588
goto @BSKOOL_4602

:BSKOOL_4595
65@ = 0

:BSKOOL_4602
if 
  $bs_open_tests == 2
goto_if_false @BSKOOL_4686
if 
  $overall_score > 69
goto_if_false @BSKOOL_4686
59@ = 2
$bs_open_tests = 3
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_4686
TIMERA = 0

:BSKOOL_4693
if 
  TIMERA > -1
goto_if_false @BSKOOL_4817
wait 0
gosub @BSKOOL_18344
if 
  59@ <> 2
goto_if_false @BSKOOL_4771
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_4771
48@ = 2
goto @BSKOOL_4817

:BSKOOL_4771
gosub @BSKOOL_19009
gosub @BSKOOL_20530
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_4810
goto @BSKOOL_4817

:BSKOOL_4810
goto @BSKOOL_4693

:BSKOOL_4817
gosub @BSKOOL_20613
gosub @BSKOOL_20952
if 
  48@ == 2
goto_if_false @BSKOOL_4863
goto @BSKOOL_644
goto @BSKOOL_4870

:BSKOOL_4863
goto @BSKOOL_3470

:BSKOOL_4870
goto @BSKOOL_3745

:BSKOOL_4877
if 
  $mission_selection == 3
goto_if_false @BSKOOL_6645

:BSKOOL_4895
gosub @BSKOOL_16586

:BSKOOL_4902
$perfect_heading = 180.0
$car_timer = 9000
35@ = 183
gosub @BSKOOL_16623
38@ = create_car 521 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_21023
if 
  34@ == 0
goto_if_false @BSKOOL_5058
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_5015
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_5015
set_fixed_camera_position 1125.66 {y} 1283.4 {z} 10.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_5058
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -3.5 {yOffset} 56.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 3.5 {yOffset} 84.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 124.0 {zOffset} 0.0
clear_prints 
print_now 'BS_C_1' {time} 5000 {flag} 4
gosub @BSKOOL_17345

:BSKOOL_5170
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_5205
48@ = 2
goto @BSKOOL_6585

:BSKOOL_5205
if 
  $car_started == 0
goto_if_false @BSKOOL_5253
print_now 'BS_C_1' {time} 5000 {flag} 4
gosub @BSKOOL_17488
goto @BSKOOL_6638

:BSKOOL_5253
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_6638
gosub @BSKOOL_17646
if 
  $variablec == 0
goto_if_false @BSKOOL_5331
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_5331
$variablec = 1

:BSKOOL_5331
if 
  $variablec == 1
goto_if_false @BSKOOL_5472
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_5449
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_5442
gosub @BSKOOL_17680
goto @BSKOOL_5449

:BSKOOL_5442
$variablec = 2

:BSKOOL_5449
if 
  not is_player_performing_wheelie $player1
goto_if_false @BSKOOL_5472
gosub @BSKOOL_17680

:BSKOOL_5472
42@ = get_car_heading 38@
set_lvar_float_to_lvar_float 44@ = 42@
if 
  44@ <> 0.0
goto_if_false @BSKOOL_5622
if and
  360.0 > 44@
  44@ > 180.0
goto_if_false @BSKOOL_5550
44@ += 0.1

:BSKOOL_5550
if 
  44@ == 360.0
goto_if_false @BSKOOL_5581
  44@ > 0.0

:BSKOOL_5581
if and
  180.0 >= 44@
  44@ > 0.0
goto_if_false @BSKOOL_5622
44@ -= 0.1

:BSKOOL_5622
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_6638
gosub @BSKOOL_17680
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_5701
gosub @BSKOOL_17693
goto @BSKOOL_5708

:BSKOOL_5701
$position_score = 0

:BSKOOL_5708
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_6056
if 
  39@ == 0
goto_if_false @BSKOOL_5774
$heading_score = 0
goto @BSKOOL_6070

:BSKOOL_5774
if 
  39@ == 180
goto_if_false @BSKOOL_5807
$heading_score = 100
goto @BSKOOL_6070

:BSKOOL_5807
if 
  39@ == 360
goto_if_false @BSKOOL_5840
$heading_score = 0
goto @BSKOOL_6070

:BSKOOL_5840
if 
  39@ > 0
goto_if_false @BSKOOL_5910
if 
  175 > 39@
goto_if_false @BSKOOL_5910
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_6070

:BSKOOL_5910
if 
  39@ > 174
goto_if_false @BSKOOL_5955
if 
  186 > 39@
goto_if_false @BSKOOL_5955
$heading_score = 100

:BSKOOL_5955
if 
  39@ > 185
goto_if_false @BSKOOL_6049
if 
  360 > 39@
goto_if_false @BSKOOL_6049
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_6070

:BSKOOL_6049
goto @BSKOOL_6070

:BSKOOL_6056
$heading_score = 0
goto @BSKOOL_6070

:BSKOOL_6070
if 
  1 > $heading_score
goto_if_false @BSKOOL_6095
$heading_score = 0

:BSKOOL_6095
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_6143
$overall_score = 0

:BSKOOL_6143
gosub @BSKOOL_17937
gosub @BSKOOL_18315
if 
  is_int_var_greater_than_int_var $overall_score > $bs_wheelie_best_score
goto_if_false @BSKOOL_6363
set_lvar_int_to_var_int 67@ = $bs_wheelie_best_score
set_var_int_to_var_int $bs_wheelie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18779
if 
  65@ == 4
goto_if_false @BSKOOL_6263
if 
  $bs_wheelie_goldachieved == 0
goto_if_false @BSKOOL_6263
$bs_wheelie_goldachieved = 1
$bs_wheelie_silverachieved = 1
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6263
if 
  65@ == 3
goto_if_false @BSKOOL_6313
if 
  $bs_wheelie_silverachieved == 0
goto_if_false @BSKOOL_6313
$bs_wheelie_silverachieved = 1
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6313
if 
  65@ == 2
goto_if_false @BSKOOL_6356
if 
  $bs_wheelie_bronzeachieved == 0
goto_if_false @BSKOOL_6356
$bs_wheelie_bronzeachieved = 1

:BSKOOL_6356
goto @BSKOOL_6370

:BSKOOL_6363
65@ = 0

:BSKOOL_6370
if 
  $bs_open_tests == 3
goto_if_false @BSKOOL_6454
if 
  $overall_score > 69
goto_if_false @BSKOOL_6454
59@ = 2
$bs_open_tests = 4
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_6454
TIMERA = 0

:BSKOOL_6461
if 
  TIMERA > -1
goto_if_false @BSKOOL_6585
wait 0
gosub @BSKOOL_18344
if 
  59@ <> 2
goto_if_false @BSKOOL_6539
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_6539
48@ = 2
goto @BSKOOL_6585

:BSKOOL_6539
gosub @BSKOOL_19009
gosub @BSKOOL_20530
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_6578
goto @BSKOOL_6585

:BSKOOL_6578
goto @BSKOOL_6461

:BSKOOL_6585
gosub @BSKOOL_20952
gosub @BSKOOL_20613
if 
  48@ == 2
goto_if_false @BSKOOL_6631
goto @BSKOOL_644
goto @BSKOOL_6638

:BSKOOL_6631
goto @BSKOOL_4895

:BSKOOL_6638
goto @BSKOOL_5170

:BSKOOL_6645
if 
  $mission_selection == 5
goto_if_false @BSKOOL_8421

:BSKOOL_6663
gosub @BSKOOL_16586

:BSKOOL_6670
$perfect_heading = 180.0
$car_timer = 9000
35@ = 184
gosub @BSKOOL_16623
38@ = create_car 521 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} 180.0
gosub @BSKOOL_21023
if 
  34@ == 0
goto_if_false @BSKOOL_6826
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_6783
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_6783
set_fixed_camera_position 1125.66 {y} 1283.4 {z} 10.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_6826
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -3.5 {yOffset} 56.0 {zOffset} 0.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 3.5 {yOffset} 84.0 {zOffset} 0.0
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 124.0 {zOffset} 0.0
clear_prints 
print_now 'BS_D_1' {time} 5000 {flag} 4
gosub @BSKOOL_17345

:BSKOOL_6938
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_6973
48@ = 2
goto @BSKOOL_8361

:BSKOOL_6973
if 
  $car_started == 0
goto_if_false @BSKOOL_7021
print_now 'BS_D_1' {time} 5000 {flag} 4
gosub @BSKOOL_17488
goto @BSKOOL_8414

:BSKOOL_7021
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_8414
gosub @BSKOOL_17646
if 
  $variablec == 0
goto_if_false @BSKOOL_7099
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_7099
$variablec = 1

:BSKOOL_7099
if 
  $variablec == 1
goto_if_false @BSKOOL_7240
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_7217
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_7210
gosub @BSKOOL_17680
goto @BSKOOL_7217

:BSKOOL_7210
$variablec = 2

:BSKOOL_7217
if 
  not is_player_performing_stoppie $player1
goto_if_false @BSKOOL_7240
gosub @BSKOOL_17680

:BSKOOL_7240
42@ = get_car_heading 38@
set_lvar_float_to_lvar_float 44@ = 42@
if 
  44@ <> 0.0
goto_if_false @BSKOOL_7390
if and
  360.0 > 44@
  44@ > 180.0
goto_if_false @BSKOOL_7318
44@ += 0.1

:BSKOOL_7318
if 
  44@ == 360.0
goto_if_false @BSKOOL_7349
  44@ > 0.0

:BSKOOL_7349
if and
  180.0 >= 44@
  44@ > 0.0
goto_if_false @BSKOOL_7390
44@ -= 0.1

:BSKOOL_7390
43@ = get_car_speed 38@
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_8414
gosub @BSKOOL_17680
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_7477
gosub @BSKOOL_17693
goto @BSKOOL_7484

:BSKOOL_7477
$position_score = 0

:BSKOOL_7484
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_7832
if 
  39@ == 0
goto_if_false @BSKOOL_7550
$heading_score = 0
goto @BSKOOL_7846

:BSKOOL_7550
if 
  39@ == 180
goto_if_false @BSKOOL_7583
$heading_score = 100
goto @BSKOOL_7846

:BSKOOL_7583
if 
  39@ == 360
goto_if_false @BSKOOL_7616
$heading_score = 0
goto @BSKOOL_7846

:BSKOOL_7616
if 
  39@ > 0
goto_if_false @BSKOOL_7686
if 
  175 > 39@
goto_if_false @BSKOOL_7686
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_7846

:BSKOOL_7686
if 
  39@ > 174
goto_if_false @BSKOOL_7731
if 
  186 > 39@
goto_if_false @BSKOOL_7731
$heading_score = 100

:BSKOOL_7731
if 
  39@ > 185
goto_if_false @BSKOOL_7825
if 
  360 > 39@
goto_if_false @BSKOOL_7825
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_7846

:BSKOOL_7825
goto @BSKOOL_7846

:BSKOOL_7832
$heading_score = 0
goto @BSKOOL_7846

:BSKOOL_7846
if 
  1 > $heading_score
goto_if_false @BSKOOL_7871
$heading_score = 0

:BSKOOL_7871
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_7919
$overall_score = 0

:BSKOOL_7919
gosub @BSKOOL_17937
gosub @BSKOOL_18315
if 
  is_int_var_greater_than_int_var $overall_score > $bs_stoppie_best_score
goto_if_false @BSKOOL_8139
set_lvar_int_to_var_int 67@ = $bs_stoppie_best_score
set_var_int_to_var_int $bs_stoppie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18779
if 
  65@ == 4
goto_if_false @BSKOOL_8039
if 
  $bs_stoppie_goldachieved == 0
goto_if_false @BSKOOL_8039
$bs_stoppie_goldachieved = 1
$bs_stoppie_silverachieved = 1
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8039
if 
  65@ == 3
goto_if_false @BSKOOL_8089
if 
  $bs_stoppie_silverachieved == 0
goto_if_false @BSKOOL_8089
$bs_stoppie_silverachieved = 1
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8089
if 
  65@ == 2
goto_if_false @BSKOOL_8132
if 
  $bs_stoppie_bronzeachieved == 0
goto_if_false @BSKOOL_8132
$bs_stoppie_bronzeachieved = 1

:BSKOOL_8132
goto @BSKOOL_8146

:BSKOOL_8139
65@ = 0

:BSKOOL_8146
if 
  $bs_open_tests == 5
goto_if_false @BSKOOL_8230
if 
  $overall_score > 69
goto_if_false @BSKOOL_8230
59@ = 2
$bs_open_tests = 6
48@ = 2
37@ += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_8230
TIMERA = 0

:BSKOOL_8237
if 
  TIMERA > -1
goto_if_false @BSKOOL_8361
wait 0
gosub @BSKOOL_18344
if 
  59@ <> 2
goto_if_false @BSKOOL_8315
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_8315
48@ = 2
goto @BSKOOL_8361

:BSKOOL_8315
gosub @BSKOOL_19009
gosub @BSKOOL_20530
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_8354
goto @BSKOOL_8361

:BSKOOL_8354
goto @BSKOOL_8237

:BSKOOL_8361
gosub @BSKOOL_20952
gosub @BSKOOL_20613
if 
  48@ == 2
goto_if_false @BSKOOL_8407
goto @BSKOOL_644
goto @BSKOOL_8414

:BSKOOL_8407
goto @BSKOOL_6663

:BSKOOL_8414
goto @BSKOOL_6938

:BSKOOL_8421
if 
  $mission_selection == 4
goto_if_false @BSKOOL_10014

:BSKOOL_8439
gosub @BSKOOL_16586

:BSKOOL_8446
$perfect_heading = 180.0
$car_timer = 9000
35@ = 185
gosub @BSKOOL_16623
38@ = create_car 468 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} $perfect_heading
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -2.5 {yOffset} 46.0 {zOffset} 2.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 2.5 {yOffset} 50.0 {zOffset} 2.0
gosub @BSKOOL_21023
if 
  34@ == 0
goto_if_false @BSKOOL_8658
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_8615
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_8615
set_fixed_camera_position 1127.66 {y} 1288.4 {z} 12.75 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_8658
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 124.0 {zOffset} 0.0
clear_prints 
print_now 'BS_E_1' {time} 5000 {flag} 4
gosub @BSKOOL_17345

:BSKOOL_8712
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_8747
48@ = 2
goto @BSKOOL_9954

:BSKOOL_8747
if 
  $car_started == 0
goto_if_false @BSKOOL_8795
print_now 'BS_E_1' {time} 5000 {flag} 4
gosub @BSKOOL_17488
goto @BSKOOL_10007

:BSKOOL_8795
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_10007
gosub @BSKOOL_17646
if 
  $variablec == 0
goto_if_false @BSKOOL_8873
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_8873
$variablec = 1

:BSKOOL_8873
if 
  $variablec == 1
goto_if_false @BSKOOL_8991
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_8991
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_8984
gosub @BSKOOL_17680
goto @BSKOOL_8991

:BSKOOL_8984
$variablec = 2

:BSKOOL_8991
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_10007
gosub @BSKOOL_17680
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_9070
gosub @BSKOOL_17693
goto @BSKOOL_9077

:BSKOOL_9070
$position_score = 0

:BSKOOL_9077
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_9425
if 
  39@ == 0
goto_if_false @BSKOOL_9143
$heading_score = 0
goto @BSKOOL_9439

:BSKOOL_9143
if 
  39@ == 180
goto_if_false @BSKOOL_9176
$heading_score = 100
goto @BSKOOL_9439

:BSKOOL_9176
if 
  39@ == 360
goto_if_false @BSKOOL_9209
$heading_score = 0
goto @BSKOOL_9439

:BSKOOL_9209
if 
  39@ > 0
goto_if_false @BSKOOL_9279
if 
  175 > 39@
goto_if_false @BSKOOL_9279
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_9439

:BSKOOL_9279
if 
  39@ > 174
goto_if_false @BSKOOL_9324
if 
  186 > 39@
goto_if_false @BSKOOL_9324
$heading_score = 100

:BSKOOL_9324
if 
  39@ > 185
goto_if_false @BSKOOL_9418
if 
  360 > 39@
goto_if_false @BSKOOL_9418
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_9439

:BSKOOL_9418
goto @BSKOOL_9439

:BSKOOL_9425
$heading_score = 0
goto @BSKOOL_9439

:BSKOOL_9439
if 
  1 > $heading_score
goto_if_false @BSKOOL_9464
$heading_score = 0

:BSKOOL_9464
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_9512
$overall_score = 0

:BSKOOL_9512
gosub @BSKOOL_17937
gosub @BSKOOL_18315
if 
  is_int_var_greater_than_int_var $overall_score > $bs_jumpstop_best_score
goto_if_false @BSKOOL_9732
set_lvar_int_to_var_int 67@ = $bs_jumpstop_best_score
set_var_int_to_var_int $bs_jumpstop_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18779
if 
  65@ == 4
goto_if_false @BSKOOL_9632
if 
  $bs_jumpstop_goldachieved == 0
goto_if_false @BSKOOL_9632
$bs_jumpstop_goldachieved = 1
$bs_jumpstop_silverachieved = 1
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9632
if 
  65@ == 3
goto_if_false @BSKOOL_9682
if 
  $bs_jumpstop_silverachieved == 0
goto_if_false @BSKOOL_9682
$bs_jumpstop_silverachieved = 1
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9682
if 
  65@ == 2
goto_if_false @BSKOOL_9725
if 
  $bs_jumpstop_bronzeachieved == 0
goto_if_false @BSKOOL_9725
$bs_jumpstop_bronzeachieved = 1

:BSKOOL_9725
goto @BSKOOL_9739

:BSKOOL_9732
65@ = 0

:BSKOOL_9739
if 
  $bs_open_tests == 4
goto_if_false @BSKOOL_9823
if 
  $overall_score > 69
goto_if_false @BSKOOL_9823
59@ = 2
$bs_open_tests = 5
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart
48@ = 2
37@ += 1

:BSKOOL_9823
TIMERA = 0

:BSKOOL_9830
if 
  TIMERA > -1
goto_if_false @BSKOOL_9954
wait 0
gosub @BSKOOL_18344
if 
  59@ <> 2
goto_if_false @BSKOOL_9908
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_9908
48@ = 2
goto @BSKOOL_9954

:BSKOOL_9908
gosub @BSKOOL_19009
gosub @BSKOOL_20530
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_9947
goto @BSKOOL_9954

:BSKOOL_9947
goto @BSKOOL_9830

:BSKOOL_9954
gosub @BSKOOL_20613
gosub @BSKOOL_20952
if 
  48@ == 2
goto_if_false @BSKOOL_10000
goto @BSKOOL_644
goto @BSKOOL_10007

:BSKOOL_10000
goto @BSKOOL_8439

:BSKOOL_10007
goto @BSKOOL_8712

:BSKOOL_10014
if 
  $mission_selection == 6
goto_if_false @BSKOOL_11889

:BSKOOL_10032
gosub @BSKOOL_16586

:BSKOOL_10039
$perfect_heading = 180.0
$car_timer = 9000
35@ = 186
gosub @BSKOOL_16623
38@ = create_car 522 {x} $perfect_positionx {y} $perfect_positiony {z} $perfect_positionz
set_car_heading 38@ {heading} $perfect_heading
$area_check1ax, $area_check1ay, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} -2.5 {yOffset} 46.0 {zOffset} 2.0
$area_check1bx, $area_check1by, $player_z = get_offset_from_car_in_world_coords 38@ {xOffset} 2.5 {yOffset} 52.0 {zOffset} 2.0
gosub @BSKOOL_21023
if 
  34@ == 0
goto_if_false @BSKOOL_10251
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_10208
49@ = create_char_inside_car 38@ {pedType} PedType.CivFemale {modelId} 50

:BSKOOL_10208
set_fixed_camera_position 1122.66 {y} 1265.4 {z} 15.75 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
return 

:BSKOOL_10251
$finish_rightx, $finish_righty, $perfect_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 114.0 {zOffset} 0.0
clear_prints 
print_now 'BS_F_1' {time} 5000 {flag} 4
gosub @BSKOOL_17345

:BSKOOL_10305
wait 0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_10340
48@ = 2
goto @BSKOOL_11690

:BSKOOL_10340
if 
  $car_started == 0
goto_if_false @BSKOOL_10388
print_now 'BS_F_1' {time} 5000 {flag} 4
gosub @BSKOOL_17488
goto @BSKOOL_11882

:BSKOOL_10388
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_11882
gosub @BSKOOL_17646
if 
  $variablec == 0
goto_if_false @BSKOOL_10466
if 
  is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_10466
$variablec = 1

:BSKOOL_10466
if 
  $variablec == 1
goto_if_false @BSKOOL_10584
if 
  not is_car_in_area_2d 38@ {leftBottomX} $area_check1ax {leftBottomY} $area_check1ay {rightTopX} $area_check1bx {rightTopY} $area_check1by {drawSphere} False
goto_if_false @BSKOOL_10584
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if or
  is_float_var_greater_than_float_var $player_x > $area_check1ax
  is_float_var_greater_than_float_var $area_check1bx > $player_x
  is_float_var_greater_than_float_var $player_y > $area_check1ay
goto_if_false @BSKOOL_10577
gosub @BSKOOL_17680
goto @BSKOOL_10584

:BSKOOL_10577
$variablec = 2

:BSKOOL_10584
if 
  $variablec == 2
goto_if_false @BSKOOL_10630
if 
  not is_car_in_air_proper 38@
goto_if_false @BSKOOL_10630
70@ = get_game_timer 
$variablec = 3

:BSKOOL_10630
if 
  $variablec == 3
goto_if_false @BSKOOL_10716
69@ = get_game_timer 
set_lvar_int_to_lvar_int 68@ = 69@
sub_int_lvar_from_int_lvar 68@ -= 70@
if 
  68@ > 250
goto_if_false @BSKOOL_10716
if or
  not is_player_performing_stoppie $player1
  is_player_performing_wheelie $player1
goto_if_false @BSKOOL_10716
gosub @BSKOOL_17680

:BSKOOL_10716
if or
  is_car_stopped 38@
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_11882
gosub @BSKOOL_17680
set_var_float_to_var_float $perfect_positionx = $finish_rightx
set_var_float_to_var_float $perfect_positiony = $finish_righty
if 
  $variablec > 0
goto_if_false @BSKOOL_10795
gosub @BSKOOL_17693
goto @BSKOOL_10802

:BSKOOL_10795
$position_score = 0

:BSKOOL_10802
42@ = get_car_heading 38@
cset_lvar_int_to_lvar_float 39@ =# 42@
if 
  $variablec > 0
goto_if_false @BSKOOL_11150
if 
  39@ == 0
goto_if_false @BSKOOL_10868
$heading_score = 0
goto @BSKOOL_11164

:BSKOOL_10868
if 
  39@ == 180
goto_if_false @BSKOOL_10901
$heading_score = 100
goto @BSKOOL_11164

:BSKOOL_10901
if 
  39@ == 360
goto_if_false @BSKOOL_10934
$heading_score = 0
goto @BSKOOL_11164

:BSKOOL_10934
if 
  39@ > 0
goto_if_false @BSKOOL_11004
if 
  175 > 39@
goto_if_false @BSKOOL_11004
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $heading_score =# $variableb
goto @BSKOOL_11164

:BSKOOL_11004
if 
  39@ > 174
goto_if_false @BSKOOL_11049
if 
  186 > 39@
goto_if_false @BSKOOL_11049
$heading_score = 100

:BSKOOL_11049
if 
  39@ > 185
goto_if_false @BSKOOL_11143
if 
  360 > 39@
goto_if_false @BSKOOL_11143
39@ -= 180
cset_var_float_to_lvar_int $variableb =# 39@
$variableb *= 0.56
cset_var_int_to_var_float $variablea =# $variableb
$heading_score = 100
sub_int_var_from_int_var $heading_score -= $variablea
goto @BSKOOL_11164

:BSKOOL_11143
goto @BSKOOL_11164

:BSKOOL_11150
$heading_score = 0
goto @BSKOOL_11164

:BSKOOL_11164
if 
  1 > $heading_score
goto_if_false @BSKOOL_11189
$heading_score = 0

:BSKOOL_11189
set_var_int_to_var_int $overall_score = $position_score
add_int_var_to_int_var $overall_score += $heading_score
$overall_score /= 2
if 
  $position_score == 0
goto_if_false @BSKOOL_11237
$overall_score = 0

:BSKOOL_11237
gosub @BSKOOL_17937
gosub @BSKOOL_18315
if 
  is_int_var_greater_than_int_var $overall_score > $bs_jumpstoppie_best_score
goto_if_false @BSKOOL_11457
set_lvar_int_to_var_int 67@ = $bs_jumpstoppie_best_score
set_var_int_to_var_int $bs_jumpstoppie_best_score = $overall_score
59@ = 1
gosub @BSKOOL_18779
if 
  65@ == 4
goto_if_false @BSKOOL_11357
if 
  $bs_jumpstoppie_goldachieved == 0
goto_if_false @BSKOOL_11357
$bs_jumpstoppie_goldachieved = 1
$bs_jumpstoppie_silverachieved = 1
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11357
if 
  65@ == 3
goto_if_false @BSKOOL_11407
if 
  $bs_jumpstoppie_silverachieved == 0
goto_if_false @BSKOOL_11407
$bs_jumpstoppie_silverachieved = 1
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11407
if 
  65@ == 2
goto_if_false @BSKOOL_11450
if 
  $bs_jumpstoppie_bronzeachieved == 0
goto_if_false @BSKOOL_11450
$bs_jumpstoppie_bronzeachieved = 1

:BSKOOL_11450
goto @BSKOOL_11464

:BSKOOL_11457
65@ = 0

:BSKOOL_11464
if 
  $bs_passed == 0
goto_if_false @BSKOOL_11559
if 
  $bs_open_tests == 6
goto_if_false @BSKOOL_11559
if 
  $overall_score > 69
goto_if_false @BSKOOL_11559
59@ = 2
$bs_passed = 1
48@ = 2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStart

:BSKOOL_11559
TIMERA = 0

:BSKOOL_11566
if 
  TIMERA > -1
goto_if_false @BSKOOL_11690
wait 0
gosub @BSKOOL_18344
if 
  59@ <> 2
goto_if_false @BSKOOL_11644
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BSKOOL_11644
48@ = 2
goto @BSKOOL_11690

:BSKOOL_11644
gosub @BSKOOL_19009
gosub @BSKOOL_20530
if 
  $finished_watching_scores == 1
goto_if_false @BSKOOL_11683
goto @BSKOOL_11690

:BSKOOL_11683
goto @BSKOOL_11566

:BSKOOL_11690
gosub @BSKOOL_20613
gosub @BSKOOL_20952
if 
  48@ == 2
goto_if_false @BSKOOL_11875
if 
  $bs_passed == 1
goto_if_false @BSKOOL_11861
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_11861
do_fade 1000 {direction} Fade.Out

:BSKOOL_11765
if 
  get_fading_status 
goto_if_false @BSKOOL_11789
wait 0
goto @BSKOOL_11765

:BSKOOL_11789
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
set_char_heading $scplayer {heading} 11.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 2000 {direction} Fade.In

:BSKOOL_11830
if 
  get_fading_status 
goto_if_false @BSKOOL_11854
wait 0
goto @BSKOOL_11830

:BSKOOL_11854
goto @BSKOOL_11917

:BSKOOL_11861
goto @BSKOOL_644
goto @BSKOOL_11882

:BSKOOL_11875
goto @BSKOOL_10032

:BSKOOL_11882
goto @BSKOOL_10305

:BSKOOL_11889
clear_mission_audio MissionAudioSlot.Slot3
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStop
clear_prints 
return 

:BSKOOL_11917
do_fade 500 {direction} Fade.In
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_11965
register_oddjob_mission_passed 
player_made_progress 1
$flag_bikeschool_passed_1stime = 1
increment_float_stat StatId.BikeSkill {value} 50.0

:BSKOOL_11965
clear_prints 
print_big 'BS_Z_7' {time} 5000 {style} TextStyle.MiddleSmallerHigher
play_mission_passed_tune 2
clear_wanted_level $player1
return 

:BSKOOL_11994
clear_onscreen_timer $car_timer
use_text_commands False
display_hud True
display_radar True
release_weather 
mark_model_as_no_longer_needed #TRAFFICCONE
mark_model_as_no_longer_needed #LANDJUMP2
mark_model_as_no_longer_needed 521
mark_model_as_no_longer_needed 581
mark_model_as_no_longer_needed 461
mark_model_as_no_longer_needed 522
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 50
if 
  $bs_gold_rewardgiven == 0
goto_if_false @BSKOOL_12235
if 
  $bs_the360_goldachieved == 1
goto_if_false @BSKOOL_12235
if 
  $bs_the180_goldachieved == 1
goto_if_false @BSKOOL_12235
if 
  $bs_wheelie_goldachieved == 1
goto_if_false @BSKOOL_12235
if 
  $bs_stoppie_goldachieved == 1
goto_if_false @BSKOOL_12235
if 
  $bs_jumpstop_goldachieved == 1
goto_if_false @BSKOOL_12235
if 
  $bs_jumpstoppie_goldachieved == 1
goto_if_false @BSKOOL_12235
$bs_gold_rewardgiven = 1
if 
  $bs_silver_rewardgiven == 0
goto_if_false @BSKOOL_12210
$bs_silver_rewardgiven = 1

:BSKOOL_12210
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12235
$bs_bronze_rewardgiven = 1

:BSKOOL_12235
if 
  $bs_silver_rewardgiven == 0
goto_if_false @BSKOOL_12393
if 
  $bs_the360_silverachieved == 1
goto_if_false @BSKOOL_12393
if 
  $bs_the180_silverachieved == 1
goto_if_false @BSKOOL_12393
if 
  $bs_wheelie_silverachieved == 1
goto_if_false @BSKOOL_12393
if 
  $bs_stoppie_silverachieved == 1
goto_if_false @BSKOOL_12393
if 
  $bs_jumpstop_silverachieved == 1
goto_if_false @BSKOOL_12393
if 
  $bs_jumpstoppie_silverachieved == 1
goto_if_false @BSKOOL_12393
$bs_silver_rewardgiven = 1
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12393
$bs_bronze_rewardgiven = 1

:BSKOOL_12393
if 
  $bs_bronze_rewardgiven == 0
goto_if_false @BSKOOL_12526
if 
  $bs_the360_bronzeachieved == 1
goto_if_false @BSKOOL_12526
if 
  $bs_the180_bronzeachieved == 1
goto_if_false @BSKOOL_12526
if 
  $bs_wheelie_bronzeachieved == 1
goto_if_false @BSKOOL_12526
if 
  $bs_stoppie_bronzeachieved == 1
goto_if_false @BSKOOL_12526
if 
  $bs_jumpstop_bronzeachieved == 1
goto_if_false @BSKOOL_12526
if 
  $bs_jumpstoppie_bronzeachieved == 1
goto_if_false @BSKOOL_12526
$bs_bronze_rewardgiven = 1

:BSKOOL_12526
if 
  $bs_gold_rewardgiven == 1
goto_if_false @BSKOOL_12575
set_has_been_owned_for_car_generator $bs_gold_generator {state} True
switch_car_generator $bs_gold_generator {amount} 101
increment_float_stat StatId.BikeSkill {value} 200.0
$bs_gold_rewardgiven = 2

:BSKOOL_12575
if 
  $bs_silver_rewardgiven == 1
goto_if_false @BSKOOL_12624
set_has_been_owned_for_car_generator $bs_silver_generator {state} True
switch_car_generator $bs_silver_generator {amount} 101
increment_float_stat StatId.BikeSkill {value} 100.0
$bs_silver_rewardgiven = 2

:BSKOOL_12624
if 
  $bs_bronze_rewardgiven == 1
goto_if_false @BSKOOL_12663
set_has_been_owned_for_car_generator $bs_bronze_generator {state} True
switch_car_generator $bs_bronze_generator {amount} 101
$bs_bronze_rewardgiven = 2

:BSKOOL_12663
$onmission = 0
mission_has_finished 
return 

:BSKOOL_12674
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 64@
if 
  63@ == 1
goto_if_false @BSKOOL_12796
if 
  255 > 64@
goto_if_false @BSKOOL_12789
64@ += 5
if 
  64@ > 255
goto_if_false @BSKOOL_12782
64@ = 255

:BSKOOL_12782
goto @BSKOOL_12796

:BSKOOL_12789
63@ = 2

:BSKOOL_12796
if 
  63@ == 3
goto_if_false @BSKOOL_12878
if 
  64@ > 0
goto_if_false @BSKOOL_12871
64@ -= 5
if 
  0 > 64@
goto_if_false @BSKOOL_12864
64@ = 0

:BSKOOL_12864
goto @BSKOOL_12878

:BSKOOL_12871
63@ = 0

:BSKOOL_12878
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 0.0 {width} 640.0 {height} 197.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BSKOOL_16466
set_text_colour 190 {green} 190 {blue} 190 {alpha} 255
if 
  $mission_selection == 1
goto_if_false @BSKOOL_13073
display_text 322.0 {offsetTop} 41.0 {key} 'BS_A'
if 
  $bs_the360_best_score > 69
goto_if_false @BSKOOL_13008
set_lvar_int_to_var_int 66@ = $bs_the360_best_score
goto @BSKOOL_13066

:BSKOOL_13008
set_lvar_int_to_var_int 66@ = $bs_the360_best_score
gosub @BSKOOL_16288
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13066
gosub @BSKOOL_14958

:BSKOOL_13073
if 
  $mission_selection == 2
goto_if_false @BSKOOL_13210
display_text 322.0 {offsetTop} 41.0 {key} 'BS_B'
if 
  $bs_the180_best_score > 69
goto_if_false @BSKOOL_13145
set_lvar_int_to_var_int 66@ = $bs_the180_best_score
goto @BSKOOL_13203

:BSKOOL_13145
set_lvar_int_to_var_int 66@ = $bs_the180_best_score
gosub @BSKOOL_16288
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13203
gosub @BSKOOL_14958

:BSKOOL_13210
if 
  $mission_selection == 3
goto_if_false @BSKOOL_13347
display_text 322.0 {offsetTop} 41.0 {key} 'BS_C'
if 
  $bs_wheelie_best_score > 69
goto_if_false @BSKOOL_13282
set_lvar_int_to_var_int 66@ = $bs_wheelie_best_score
goto @BSKOOL_13340

:BSKOOL_13282
set_lvar_int_to_var_int 66@ = $bs_wheelie_best_score
gosub @BSKOOL_16288
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13340
gosub @BSKOOL_14958

:BSKOOL_13347
if 
  $mission_selection == 5
goto_if_false @BSKOOL_13484
display_text 322.0 {offsetTop} 41.0 {key} 'BS_D'
if 
  $bs_stoppie_best_score > 69
goto_if_false @BSKOOL_13419
set_lvar_int_to_var_int 66@ = $bs_stoppie_best_score
goto @BSKOOL_13477

:BSKOOL_13419
set_lvar_int_to_var_int 66@ = $bs_stoppie_best_score
gosub @BSKOOL_16288
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13477
gosub @BSKOOL_14958

:BSKOOL_13484
if 
  $mission_selection == 4
goto_if_false @BSKOOL_13621
display_text 322.0 {offsetTop} 41.0 {key} 'BS_E'
if 
  $bs_jumpstop_best_score > 69
goto_if_false @BSKOOL_13556
set_lvar_int_to_var_int 66@ = $bs_jumpstop_best_score
goto @BSKOOL_13614

:BSKOOL_13556
set_lvar_int_to_var_int 66@ = $bs_jumpstop_best_score
gosub @BSKOOL_16288
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13614
gosub @BSKOOL_14958

:BSKOOL_13621
if 
  $mission_selection == 6
goto_if_false @BSKOOL_13758
display_text 322.0 {offsetTop} 41.0 {key} 'BS_F'
if 
  $bs_jumpstoppie_best_score > 69
goto_if_false @BSKOOL_13693
set_lvar_int_to_var_int 66@ = $bs_jumpstoppie_best_score
goto @BSKOOL_13751

:BSKOOL_13693
set_lvar_int_to_var_int 66@ = $bs_jumpstoppie_best_score
gosub @BSKOOL_16288
set_text_right_justify False
set_text_centre True
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
display_text 320.0 {offsetTop} 80.0 {key} 'BS_Z_3'

:BSKOOL_13751
gosub @BSKOOL_14958

:BSKOOL_13758
gosub @BSKOOL_16288
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BSKOOL_13836
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 360.0 {key} 'BS_X_4'
goto @BSKOOL_13869

:BSKOOL_13836
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 360.0 {key} 'BS_X_4'

:BSKOOL_13869
if 
  57@ <> 1
goto_if_false @BSKOOL_14263
gosub @BSKOOL_16288
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BSKOOL_13965
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 340.0 {key} 'BS_X_5'
goto @BSKOOL_13998

:BSKOOL_13965
set_text_scale 0.32 {heightScale} 1.25
display_text 70.0 {offsetTop} 340.0 {key} 'BS_X_5'

:BSKOOL_13998
if 
  $bs_open_tests <> 1
goto_if_false @BSKOOL_14127
gosub @BSKOOL_16288
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BSKOOL_14094
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BS_X_3'
goto @BSKOOL_14127

:BSKOOL_14094
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BS_X_3'

:BSKOOL_14127
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_14256
gosub @BSKOOL_16288
set_text_colour 173 {green} 173 {blue} 173 {alpha} 125
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BSKOOL_14223
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BS_X_3'
goto @BSKOOL_14256

:BSKOOL_14223
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BS_X_3'

:BSKOOL_14256
goto @BSKOOL_14374

:BSKOOL_14263
gosub @BSKOOL_16288
set_text_colour 248 {green} 211 {blue} 7 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BSKOOL_14341
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BS_X_3'
goto @BSKOOL_14374

:BSKOOL_14341
set_text_scale 0.32 {heightScale} 1.25
display_text 437.0 {offsetTop} 340.0 {key} 'BS_X_3'

:BSKOOL_14374
gosub @BSKOOL_16288
set_text_scale 0.32 {heightScale} 1.25
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 150.0 {offsetTop} 360.0 {key} 'BS_X04'
if 
  57@ <> 1
goto_if_false @BSKOOL_14650
gosub @BSKOOL_16288
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_scale 0.32 {heightScale} 1.25
display_text 150.0 {offsetTop} 340.0 {key} 'SCH_PRS'
if 
  $bs_open_tests <> 1
goto_if_false @BSKOOL_14572
gosub @BSKOOL_16288
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'BS_X03'

:BSKOOL_14572
if 
  $bs_open_tests == 1
goto_if_false @BSKOOL_14643
gosub @BSKOOL_16288
set_text_colour 173 {green} 173 {blue} 173 {alpha} 125
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'BS_X03'

:BSKOOL_14643
goto @BSKOOL_14704

:BSKOOL_14650
gosub @BSKOOL_16288
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_scale 0.32 {heightScale} 1.25
display_text 537.4 {offsetTop} 340.0 {key} 'BS_X03'

:BSKOOL_14704
set_text_scale 0.52 {heightScale} 1.45
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 9 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:BSKOOL_14958
set_sprites_draw_before_fade True
draw_sprite 8 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
gosub @BSKOOL_16288
set_text_right_justify False
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
if 
  66@ > 69
goto_if_false @BSKOOL_15070
set_text_right_justify False
set_text_centre True
display_text_with_number 320.0 {offsetTop} 80.0 {key} 'BS_Y_6' {num} 66@

:BSKOOL_15070
if 
  70 > 66@
goto_if_false @BSKOOL_15095
65@ = 1

:BSKOOL_15095
if 
  66@ > 69
goto_if_false @BSKOOL_15138
if 
  85 > 66@
goto_if_false @BSKOOL_15138
65@ = 2

:BSKOOL_15138
if 
  66@ > 84
goto_if_false @BSKOOL_15181
if 
  100 > 66@
goto_if_false @BSKOOL_15181
65@ = 3

:BSKOOL_15181
if 
  66@ == 100
goto_if_false @BSKOOL_15206
65@ = 4

:BSKOOL_15206
if 
  65@ > 1
goto_if_false @BSKOOL_15311
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @BSKOOL_15391

:BSKOOL_15311
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 250.0 {offsetTop} 306.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
set_sprites_draw_before_fade True
draw_sprite 7 {offsetLeft} 395.0 {offsetTop} 306.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255

:BSKOOL_15391
set_sprites_draw_before_fade True
if 
  65@ == 1
goto_if_false @BSKOOL_15499
draw_sprite 6 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_16288
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Z_4'

:BSKOOL_15499
if 
  65@ == 2
goto_if_false @BSKOOL_15603
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_16288
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Y_12'

:BSKOOL_15603
if 
  65@ == 3
goto_if_false @BSKOOL_15707
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_16288
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Y_11'

:BSKOOL_15707
if 
  65@ == 4
goto_if_false @BSKOOL_15811
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 307.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255
gosub @BSKOOL_16288
set_text_colour 166 {green} 202 {blue} 240 {alpha} 255
set_text_right_justify False
set_text_centre True
display_text 320.0 {offsetTop} 375.0 {key} 'BS_Y_10'

:BSKOOL_15811
return 

:BSKOOL_15813
if 
  34@ == 0
goto_if_false @BSKOOL_15988
if 
  $mission_selection == 1
goto_if_false @BSKOOL_15856
gosub @BSKOOL_1783

:BSKOOL_15856
if 
  $mission_selection == 2
goto_if_false @BSKOOL_15881
gosub @BSKOOL_3477

:BSKOOL_15881
if 
  $mission_selection == 3
goto_if_false @BSKOOL_15906
gosub @BSKOOL_4902

:BSKOOL_15906
if 
  $mission_selection == 5
goto_if_false @BSKOOL_15931
gosub @BSKOOL_6670

:BSKOOL_15931
if 
  $mission_selection == 4
goto_if_false @BSKOOL_15956
gosub @BSKOOL_8446

:BSKOOL_15956
if 
  $mission_selection == 6
goto_if_false @BSKOOL_15981
gosub @BSKOOL_10039

:BSKOOL_15981
34@ = 1

:BSKOOL_15988
if 
  34@ == 1
goto_if_false @BSKOOL_16072
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_16072
if 
  not has_car_recording_been_loaded 35@
goto_if_false @BSKOOL_16050
request_car_recording 35@
goto @BSKOOL_16072

:BSKOOL_16050
start_playback_recorded_car 38@ {path} 35@
63@ = 3
34@ = 2

:BSKOOL_16072
if 
  34@ == 2
goto_if_false @BSKOOL_16157
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_16143
if 
  not is_playback_going_on_for_car 38@
goto_if_false @BSKOOL_16136
63@ = 1
34@ = 4

:BSKOOL_16136
goto @BSKOOL_16157

:BSKOOL_16143
63@ = 1
34@ = 4

:BSKOOL_16157
if 
  34@ == 3
goto_if_false @BSKOOL_16189
63@ = 1
34@ = 4

:BSKOOL_16189
if 
  34@ == 4
goto_if_false @BSKOOL_16286
if 
  63@ == 2
goto_if_false @BSKOOL_16286
stop_playback_recorded_car 38@
delete_car 38@
delete_char 49@
clear_area $noticeboard_x {y} $noticeboard_y {z} $noticeboard_z {radius} 300.0 {clearParticles} True
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
delete_car 38@
gosub @BSKOOL_20952
34@ = 0

:BSKOOL_16286
return 

:BSKOOL_16288
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BSKOOL_16350
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.52 {heightScale} 1.45
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 0.8 {heightScale} 2.6
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
return 

:BSKOOL_16466
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.2 {heightScale} 4.0
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
return 
set_text_draw_before_fade True
set_text_justify True
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.8
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:BSKOOL_16586
do_fade 500 {direction} Fade.Out

:BSKOOL_16593
if 
  get_fading_status 
goto_if_false @BSKOOL_16617
wait 0
goto @BSKOOL_16593

:BSKOOL_16617
restore_camera_jumpcut 
set_camera_behind_player 
return 

:BSKOOL_16623
$area_check1ax = 0.0
$area_check1ay = 0.0
$area_check1bx = 0.0
$area_check1by = 0.0
$area_check2ax = 0.0
$area_check2ay = 0.0
$area_check2bx = 0.0
$area_check2by = 0.0
$area_check3ax = 0.0
$area_check3ay = 0.0
$area_check3bx = 0.0
$area_check3by = 0.0
$area_check4ax = 0.0
$area_check4ay = 0.0
$area_check4bx = 0.0
$area_check4by = 0.0
$button_pressed = 0
$car_posx = 0.0
$car_posy = 0.0
$cone_coords_x = 0.0
$cone_coords_y = 0.0
$cone_coords_z = 0.0
$cone_circle_radius = 10.0
$car_started = 0
$circle_start_x = 0.0
$circle_start_y = 0.0
$camera_positionx = 0.0
$camera_positiony = 0.0
$camera_positionz = 0.0
$camera_position_int = 0
$dummy_car1_health = 0
$dummy_car2_health = 0
$finish_leftx = 0.0
$finish_lefty = 0.0
$finish_rightx = 0.0
$finish_righty = 0.0
$finished_watching_scores = 0
$heading_score = 0
43@ = 0.0
42@ = 0.0
44@ = 0.0
39@ = 0
40@ = 0
48@ = 0
$lap_counter = 0
$lap1_secs = 0
$lap1_millisecs = 0
$lap2_secs = 0
$lap2_millisecs = 0
$lap3_secs = 0
$lap3_millisecs = 0
$lap4_secs = 0
$lap4_millisecs = 0
$lap5_secs = 0
$lap5_millisecs = 0
$overall_lap1 = 0
$overall_lap2 = 0
$overall_lap3 = 0
$overall_lap4 = 0
$overall_lap5 = 0
$overall_secs = 0
$overall_millisecs = 0
$overall_score = 0
$other_car_damage = 0
set_var_float_to_var_float $perfect_positionx = $start_coordsx
set_var_float_to_var_float $perfect_positiony = $start_coordsy
$perfect_positionz = get_ground_z_for_3d_coord $perfect_positionx {y} $perfect_positiony {z} 50.0
$player_car_damage = 0
$players_distance_from_perfectpos = 0.0
$position_score = 0
$time_score = 0
41@ = 0
$total_dummy_car1_health = 0
$total_dummy_car2_health = 0
$total_car_damage = 0
$variablea = 0
$variableb = 0.0
$variablec = 0
$variabled = 0
$where_to_place_cones = 0.0
45@ = 0.0
46@ = 0
47@ = 0
59@ = 0
58@ = 0
return 

:BSKOOL_17345
warp_char_into_car $scplayer {vehicle} 38@
lock_car_doors 38@ {lockStatus} CarLock.LockedPlayerInside
wait 0
display_radar True
restore_camera_jumpcut 
set_camera_behind_player 
do_fade 500 {direction} Fade.In

:BSKOOL_17379
if 
  get_fading_status 
goto_if_false @BSKOOL_17403
wait 0
goto @BSKOOL_17379

:BSKOOL_17403
set_player_control $player1 {state} True
return 

:BSKOOL_17412
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_17479
if 
  $car_started == 1
goto_if_false @BSKOOL_17472
if 
  not is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_17472
48@ = 1

:BSKOOL_17472
goto @BSKOOL_17486

:BSKOOL_17479
48@ = 1

:BSKOOL_17486
return 

:BSKOOL_17488
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_17531
if 
  is_char_in_car $scplayer {vehicle} 38@
goto_if_false @BSKOOL_17531
43@ = get_car_speed 38@

:BSKOOL_17531
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BSKOOL_17644
if 
  43@ > 0.1
goto_if_false @BSKOOL_17644
clear_prints 
if or
  $mission_selection == 1
  $mission_selection == 2
  $mission_selection == 3
  $mission_selection == 5
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_17637
display_onscreen_timer $car_timer {direction} TimerDirection.Down

:BSKOOL_17637
$car_started = 1

:BSKOOL_17644
return 

:BSKOOL_17646
if 
  $car_timer == 0
goto_if_false @BSKOOL_17678
set_player_control $player1 {state} False
apply_brakes_to_players_car $player1 {state} True

:BSKOOL_17678
return 

:BSKOOL_17680
set_player_control $player1 {state} False
freeze_onscreen_timer True
return 

:BSKOOL_17693
$player_x, $player_y, $player_z = get_car_coordinates 38@
$players_distance_from_perfectpos = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $perfect_positionx {toZ} $perfect_positiony
if 
  $players_distance_from_perfectpos > 0.5
goto_if_false @BSKOOL_17830
if 
  10.0 > $players_distance_from_perfectpos
goto_if_false @BSKOOL_17816
$players_distance_from_perfectpos -= 0.5
$players_distance_from_perfectpos *= 10.42
cset_var_int_to_var_float $variablea =# $players_distance_from_perfectpos
$position_score = 100
sub_int_var_from_int_var $position_score -= $variablea
goto @BSKOOL_17823

:BSKOOL_17816
$position_score = 0

:BSKOOL_17823
goto @BSKOOL_17837

:BSKOOL_17830
$position_score = 100

:BSKOOL_17837
add_int_var_to_int_var $overall_score += $position_score
return 
40@ = get_car_health 38@
$player_car_damage = 1000
sub_int_lvar_from_int_var $player_car_damage -= 40@
if 
  $mission_selection == 16
goto_if_false @BSKOOL_17903
$player_car_damage /= 10
goto @BSKOOL_17910

:BSKOOL_17903
$player_car_damage /= 2

:BSKOOL_17910
if 
  $player_car_damage > 100
goto_if_false @BSKOOL_17935
$player_car_damage = 100

:BSKOOL_17935
return 

:BSKOOL_17937
$total_car_damage = 0
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @BSKOOL_18028

:BSKOOL_17969
if 
  15 > $trafficcone_counter
goto_if_false @BSKOOL_18028
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_18014
$total_car_damage += 10

:BSKOOL_18014
$trafficcone_counter += 1
goto @BSKOOL_17969

:BSKOOL_18028
if 
  $mission_selection == 2
goto_if_false @BSKOOL_18105

:BSKOOL_18046
if 
  25 > $trafficcone_counter
goto_if_false @BSKOOL_18105
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_18091
$total_car_damage += 10

:BSKOOL_18091
$trafficcone_counter += 1
goto @BSKOOL_18046

:BSKOOL_18105
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_18189

:BSKOOL_18130
if 
  30 > $trafficcone_counter
goto_if_false @BSKOOL_18189
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_18175
$total_car_damage += 10

:BSKOOL_18175
$trafficcone_counter += 1
goto @BSKOOL_18130

:BSKOOL_18189
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_18273

:BSKOOL_18214
if 
  14 > $trafficcone_counter
goto_if_false @BSKOOL_18273
if 
  has_object_been_damaged $trafficcones($trafficcone_counter,46i)
goto_if_false @BSKOOL_18259
$total_car_damage += 10

:BSKOOL_18259
$trafficcone_counter += 1
goto @BSKOOL_18214

:BSKOOL_18273
$total_car_damage *= 2
if 
  $total_car_damage > 90
goto_if_false @BSKOOL_18305
$total_car_damage = 100

:BSKOOL_18305
sub_int_var_from_int_var $overall_score -= $total_car_damage
return 

:BSKOOL_18315
if 
  1 > $overall_score
goto_if_false @BSKOOL_18340
$overall_score = 0

:BSKOOL_18340
clear_prints 
return 

:BSKOOL_18344
if 
  not is_car_dead 38@
goto_if_false @BSKOOL_18777
if 
  $camera_position_int == 0
goto_if_false @BSKOOL_18469
$camera_positionx, $camera_positiony, $camera_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 10.0 {yOffset} 0.0 {zOffset} 5.0
$camera_positionz = 15.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 1

:BSKOOL_18469
if 
  TIMERA > 3000
goto_if_false @BSKOOL_18616
if 
  6000 > TIMERA
goto_if_false @BSKOOL_18616
if 
  $camera_position_int == 1
goto_if_false @BSKOOL_18616
$camera_positionx, $camera_positiony, $camera_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 10.0 {zOffset} 5.0
$camera_positionz = 15.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 2

:BSKOOL_18616
if 
  TIMERA > 6000
goto_if_false @BSKOOL_18744
if 
  $camera_position_int == 2
goto_if_false @BSKOOL_18744
$camera_positionx, $camera_positiony, $camera_positionz = get_offset_from_car_in_world_coords 38@ {xOffset} -10.0 {yOffset} 0.0 {zOffset} 5.0
$camera_positionz = 15.0
set_fixed_camera_position $camera_positionx {y} $camera_positiony {z} $camera_positionz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_car 38@ {mode} CameraMode.Fixed {switchStyle} SwitchType.Interpolation
set_interpolation_parameters 50.0 {time} 2000
$camera_position_int = 3

:BSKOOL_18744
if 
  TIMERA > 9000
goto_if_false @BSKOOL_18777
$camera_position_int = 1
TIMERA = 0

:BSKOOL_18777
return 

:BSKOOL_18779
65@ = 0
if 
  $overall_score > 69
goto_if_false @BSKOOL_18868
if 
  85 > $overall_score
goto_if_false @BSKOOL_18868
if and
  67@ > 69
  85 > 67@
goto_if_false @BSKOOL_18861
65@ = 0
goto @BSKOOL_18868

:BSKOOL_18861
65@ = 2

:BSKOOL_18868
if 
  $overall_score > 84
goto_if_false @BSKOOL_18950
if 
  100 > $overall_score
goto_if_false @BSKOOL_18950
if and
  67@ > 84
  100 > 67@
goto_if_false @BSKOOL_18943
65@ = 0
goto @BSKOOL_18950

:BSKOOL_18943
65@ = 3

:BSKOOL_18950
if 
  $overall_score == 100
goto_if_false @BSKOOL_19007
if 
  67@ == 100
goto_if_false @BSKOOL_19000
65@ = 0
goto @BSKOOL_19007

:BSKOOL_19000
65@ = 4

:BSKOOL_19007
return 

:BSKOOL_19009
display_hud False
display_radar False
clear_prints 
clear_onscreen_timer $car_timer
if 
  2 > 65@
goto_if_false @BSKOOL_19082
draw_window 160.0 {leftTopY} 220.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'BS_Z_8' {zIndex} 3
goto @BSKOOL_19115

:BSKOOL_19082
draw_window 160.0 {leftTopY} 200.0 {rightBottomX} 490.0 {rightBottomY} 400.0 {header} 'DUMMY' {zIndex} 3

:BSKOOL_19115
gosub @BSKOOL_16350
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 255.0 {key} 'BS_Y_1'
gosub @BSKOOL_16350
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 475.0 {offsetTop} 255.0 {key} 'BS_Y_6' {num} $heading_score
gosub @BSKOOL_16350
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 275.0 {key} 'BS_Y_2'
gosub @BSKOOL_16350
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 475.0 {offsetTop} 275.0 {key} 'BS_Y_6' {num} $position_score
gosub @BSKOOL_16350
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 295.0 {key} 'BS_Y_3'
gosub @BSKOOL_16350
set_text_right_justify True
52@, 53@, 54@, 55@ = get_hud_colour 0
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text_with_number 475.0 {offsetTop} 295.0 {key} 'BS_Y_6' {num} $total_car_damage
gosub @BSKOOL_16350
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Armor
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 315.0 {key} 'BS_Y_5'
gosub @BSKOOL_16350
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 475.0 {offsetTop} 315.0 {key} 'BS_Y_6' {num} $overall_score
if or
  59@ == 1
  59@ == 2
goto_if_false @BSKOOL_19919
if 
  65@ > 0
goto_if_false @BSKOOL_19919
draw_sprite 4 {offsetLeft} 250.0 {offsetTop} 200.0 {width} -60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
draw_sprite 4 {offsetLeft} 392.0 {offsetTop} 200.0 {width} 60.0 {height} 60.0 {r} 180 {g} 180 {b} 180 {a} 255
if 
  65@ == 2
goto_if_false @BSKOOL_19728
draw_sprite 1 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BSKOOL_19728
if 
  65@ == 3
goto_if_false @BSKOOL_19782
draw_sprite 2 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BSKOOL_19782
if 
  65@ == 4
goto_if_false @BSKOOL_19836
draw_sprite 3 {offsetLeft} 320.0 {offsetTop} 200.0 {width} 110.0 {height} 95.0 {r} 160 {g} 160 {b} 160 {a} 255

:BSKOOL_19836
gosub @BSKOOL_16466
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 323.0 {offsetTop} 65.0 {key} 'BS_Y_9'

:BSKOOL_19919
if or
  59@ == 1
  59@ == 2
goto_if_false @BSKOOL_20011
gosub @BSKOOL_16466
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.0 {heightScale} 3.4
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 323.0 {offsetTop} 110.0 {key} 'BS_Y_8'

:BSKOOL_20011
if 
  59@ <> 2
goto_if_false @BSKOOL_20316
gosub @BSKOOL_16350
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Health
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 330.0 {offsetTop} 345.0 {key} 'SCH_PRS'
gosub @BSKOOL_16350
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 345.0 {key} 'BS_Z_5'
gosub @BSKOOL_16350
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Health
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 330.0 {offsetTop} 365.0 {key} 'BS_X04'
gosub @BSKOOL_16350
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 365.0 {key} 'BS_Z_6'
goto @BSKOOL_20528

:BSKOOL_20316
if 
  $bs_open_tests <> 6
goto_if_false @BSKOOL_20388
gosub @BSKOOL_16350
set_text_scale 0.52 {heightScale} 1.45
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 170.0 {offsetTop} 345.0 {key} 'BS_Z_9'

:BSKOOL_20388
gosub @BSKOOL_16350
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour HudObject.Health
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 330.0 {offsetTop} 365.0 {key} 'SCH_PRS'
gosub @BSKOOL_16350
set_text_scale 0.52 {heightScale} 1.45
52@, 53@, 54@, 55@ = get_hud_colour 6
set_text_colour 52@ {green} 53@ {blue} 54@ {alpha} 55@
display_text 170.0 {offsetTop} 365.0 {key} 'BS_Z_5'

:BSKOOL_20528
return 

:BSKOOL_20530
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BSKOOL_20586
if 
  $button_pressed == 1
goto_if_false @BSKOOL_20579
$button_pressed = 0
$finished_watching_scores = 1

:BSKOOL_20579
goto @BSKOOL_20611

:BSKOOL_20586
if 
  $button_pressed == 0
goto_if_false @BSKOOL_20611
$button_pressed = 1

:BSKOOL_20611
return 

:BSKOOL_20613
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundBikeAwardTrackStop
do_fade 500 {direction} Fade.Out

:BSKOOL_20640
if 
  get_fading_status 
goto_if_false @BSKOOL_20709
if 
  $flag_bikeschool_passed_1stime == 0
goto_if_false @BSKOOL_20696
if 
  $bs_passed == 1
goto_if_false @BSKOOL_20696
gosub @BSKOOL_12674

:BSKOOL_20696
clear_prints 
wait 0
goto @BSKOOL_20640

:BSKOOL_20709
clear_prints 
clear_this_big_print 'BS_Y_8'
clear_this_big_print 'BS_Y_9'
apply_brakes_to_players_car $player1 {state} False
clear_char_tasks_immediately $scplayer
if 
  48@ == 2
goto_if_false @BSKOOL_20835
clear_prints 
if 
  is_char_in_any_car $scplayer
goto_if_false @BSKOOL_20808
warp_char_from_car_to_coord $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
goto @BSKOOL_20828

:BSKOOL_20808
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219

:BSKOOL_20828
goto @BSKOOL_20898

:BSKOOL_20835
if 
  is_char_in_any_car $scplayer
goto_if_false @BSKOOL_20878
warp_char_from_car_to_coord $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219
goto @BSKOOL_20898

:BSKOOL_20878
set_char_coordinates $scplayer {x} 1171.521 {y} 1351.183 {z} 9.9219

:BSKOOL_20898
set_char_heading $scplayer {heading} 5.0
delete_car 38@
clear_area 1171.521 {y} 1351.183 {z} 9.9219 {radius} 2.0 {clearParticles} True
restore_camera_jumpcut 
set_camera_behind_player 
clear_onscreen_timer $car_timer
freeze_onscreen_timer False
return 

:BSKOOL_20952
$trafficcone_counter = 0

:BSKOOL_20959
if 
  46 > $trafficcone_counter
goto_if_false @BSKOOL_21000
delete_object $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_20959

:BSKOOL_21000
if 
  does_object_exist 56@
goto_if_false @BSKOOL_21021
delete_object 56@

:BSKOOL_21021
return 

:BSKOOL_21023
$trafficcone_counter = 0
if 
  $mission_selection == 1
goto_if_false @BSKOOL_21107

:BSKOOL_21048
if 
  15 > $trafficcone_counter
goto_if_false @BSKOOL_21107
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_21048

:BSKOOL_21107
if 
  $mission_selection == 2
goto_if_false @BSKOOL_21184

:BSKOOL_21125
if 
  25 > $trafficcone_counter
goto_if_false @BSKOOL_21184
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_21125

:BSKOOL_21184
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_21268

:BSKOOL_21209
if 
  30 > $trafficcone_counter
goto_if_false @BSKOOL_21268
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_21209

:BSKOOL_21268
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_21382

:BSKOOL_21293
if 
  14 > $trafficcone_counter
goto_if_false @BSKOOL_21352
create_object_no_offset #TRAFFICCONE {x} 0.0 {y} 0.0 {z} 500.0 {var_handle} $trafficcones($trafficcone_counter,46i)
$trafficcone_counter += 1
goto @BSKOOL_21293

:BSKOOL_21352
56@ = create_object_no_offset #LANDJUMP2 {x} 0.0 {y} 0.0 {z} 500.0
set_object_collision 56@ {state} True

:BSKOOL_21382
if 
  $mission_selection == 1
goto_if_false @BSKOOL_22060
$cone_circle_radius = 6.0
$where_to_place_cones = 0.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.2

:BSKOOL_21449
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 0.0
goto_if_false @BSKOOL_21532
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21532
if 
  $where_to_place_cones == 24.0
goto_if_false @BSKOOL_21567
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21567
if 
  $where_to_place_cones == 48.0
goto_if_false @BSKOOL_21602
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21602
if 
  $where_to_place_cones == 72.0
goto_if_false @BSKOOL_21637
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21637
if 
  $where_to_place_cones == 96.0
goto_if_false @BSKOOL_21672
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21672
if 
  $where_to_place_cones == 120.0
goto_if_false @BSKOOL_21707
set_object_coordinates $trafficcones[5] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21707
if 
  $where_to_place_cones == 144.0
goto_if_false @BSKOOL_21742
set_object_coordinates $trafficcones[6] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21742
if 
  $where_to_place_cones == 168.0
goto_if_false @BSKOOL_21777
set_object_coordinates $trafficcones[7] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21777
if 
  $where_to_place_cones == 192.0
goto_if_false @BSKOOL_21812
set_object_coordinates $trafficcones[8] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21812
if 
  $where_to_place_cones == 216.0
goto_if_false @BSKOOL_21847
set_object_coordinates $trafficcones[9] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21847
if 
  $where_to_place_cones == 240.0
goto_if_false @BSKOOL_21882
set_object_coordinates $trafficcones[10] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21882
if 
  $where_to_place_cones == 264.0
goto_if_false @BSKOOL_21917
set_object_coordinates $trafficcones[11] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21917
if 
  $where_to_place_cones == 288.0
goto_if_false @BSKOOL_21952
set_object_coordinates $trafficcones[12] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21952
if 
  $where_to_place_cones == 312.0
goto_if_false @BSKOOL_21987
set_object_coordinates $trafficcones[13] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_21987
if 
  $where_to_place_cones == 336.0
goto_if_false @BSKOOL_22022
set_object_coordinates $trafficcones[14] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_22022
$where_to_place_cones += 24.0
if 
  360.0 > $where_to_place_cones
goto_if_false @BSKOOL_22060
goto @BSKOOL_21449

:BSKOOL_22060
if 
  $mission_selection == 2
goto_if_false @BSKOOL_22802
$cone_circle_radius = 6.0
$where_to_place_cones = 90.0
$circle_start_x, $circle_start_y, $cone_coords_z = get_offset_from_car_in_world_coords 38@ {xOffset} 0.0 {yOffset} 86.0 {zOffset} -0.2

:BSKOOL_22127
$cone_coords_x = sin $where_to_place_cones
mult_float_var_by_float_var $cone_coords_x *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_x += $circle_start_x
$cone_coords_y = cos $where_to_place_cones
mult_float_var_by_float_var $cone_coords_y *= $cone_circle_radius
add_float_var_to_float_var $cone_coords_y += $circle_start_y
if 
  $where_to_place_cones == 120.0
goto_if_false @BSKOOL_22210
set_object_coordinates $trafficcones[0] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_22210
if 
  $where_to_place_cones == 150.0
goto_if_false @BSKOOL_22245
set_object_coordinates $trafficcones[1] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_22245
if 
  $where_to_place_cones == 180.0
goto_if_false @BSKOOL_22280
set_object_coordinates $trafficcones[2] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_22280
if 
  $where_to_place_cones == 210.0
goto_if_false @BSKOOL_22315
set_object_coordinates $trafficcones[3] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_22315
if 
  $where_to_place_cones == 240.0
goto_if_false @BSKOOL_22350
set_object_coordinates $trafficcones[4] {x} $cone_coords_x {y} $cone_coords_y {z} $cone_coords_z

:BSKOOL_22350
$where_to_place_cones += 30.0
if 
  271.0 > $where_to_place_cones
goto_if_false @BSKOOL_22388
goto @BSKOOL_22127

:BSKOOL_22388
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -7.0 {yOffset} 74.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 7.0 {yOffset} 74.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -7.0 {yOffset} 78.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 7.0 {yOffset} 78.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -7.0 {yOffset} 82.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 7.0 {yOffset} 82.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} -7.0 {yOffset} 86.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[14] {vehicle} 38@ {xOffset} 7.0 {yOffset} 86.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[15] {vehicle} 38@ {xOffset} 0.0 {yOffset} 82.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[16] {vehicle} 38@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[17] {vehicle} 38@ {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[18] {vehicle} 38@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[19] {vehicle} 38@ {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[20] {vehicle} 38@ {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[21] {vehicle} 38@ {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[22] {vehicle} 38@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[23] {vehicle} 38@ {xOffset} 0.0 {yOffset} 74.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[24] {vehicle} 38@ {xOffset} 0.0 {yOffset} 78.0 {zOffset} -0.2

:BSKOOL_22802
if or
  $mission_selection == 3
  $mission_selection == 5
goto_if_false @BSKOOL_23517
place_object_relative_to_car $trafficcones[0] {vehicle} 38@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[1] {vehicle} 38@ {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[2] {vehicle} 38@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[3] {vehicle} 38@ {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[4] {vehicle} 38@ {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[5] {vehicle} 38@ {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[6] {vehicle} 38@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -3.5 {yOffset} 56.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 3.5 {yOffset} 56.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -3.5 {yOffset} 60.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 3.5 {yOffset} 60.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -3.5 {yOffset} 64.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 3.5 {yOffset} 64.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} -3.5 {yOffset} 68.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[14] {vehicle} 38@ {xOffset} 3.5 {yOffset} 68.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[15] {vehicle} 38@ {xOffset} -3.5 {yOffset} 72.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[16] {vehicle} 38@ {xOffset} 3.5 {yOffset} 72.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[17] {vehicle} 38@ {xOffset} -3.5 {yOffset} 76.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[18] {vehicle} 38@ {xOffset} 3.5 {yOffset} 76.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[19] {vehicle} 38@ {xOffset} -3.5 {yOffset} 80.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[20] {vehicle} 38@ {xOffset} 3.5 {yOffset} 80.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[21] {vehicle} 38@ {xOffset} -3.5 {yOffset} 84.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[22] {vehicle} 38@ {xOffset} 3.5 {yOffset} 84.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[23] {vehicle} 38@ {xOffset} -3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[24] {vehicle} 38@ {xOffset} 3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[25] {vehicle} 38@ {xOffset} -3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[26] {vehicle} 38@ {xOffset} 3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[27] {vehicle} 38@ {xOffset} -3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[28] {vehicle} 38@ {xOffset} 3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[29] {vehicle} 38@ {xOffset} 0.0 {yOffset} 128.0 {zOffset} -0.2

:BSKOOL_23517
if or
  $mission_selection == 4
  $mission_selection == 6
goto_if_false @BSKOOL_24084
place_object_relative_to_car $trafficcones[0] {vehicle} 38@ {xOffset} -3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[1] {vehicle} 38@ {xOffset} 3.0 {yOffset} 4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[2] {vehicle} 38@ {xOffset} -3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[3] {vehicle} 38@ {xOffset} 3.0 {yOffset} 0.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[4] {vehicle} 38@ {xOffset} -3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[5] {vehicle} 38@ {xOffset} 3.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[6] {vehicle} 38@ {xOffset} 0.0 {yOffset} -4.0 {zOffset} -0.2
place_object_relative_to_car 56@ {vehicle} 38@ {xOffset} 0.0 {yOffset} 48.0 {zOffset} -0.2
if 
  $mission_selection == 4
goto_if_false @BSKOOL_23905
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 3.0 {yOffset} 120.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 3.0 {yOffset} 124.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 3.0 {yOffset} 128.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} 0.0 {yOffset} 128.0 {zOffset} -0.2

:BSKOOL_23905
if 
  $mission_selection == 6
goto_if_false @BSKOOL_24084
place_object_relative_to_car $trafficcones[7] {vehicle} 38@ {xOffset} -3.0 {yOffset} 110.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[8] {vehicle} 38@ {xOffset} 3.0 {yOffset} 110.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[9] {vehicle} 38@ {xOffset} -3.0 {yOffset} 114.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[10] {vehicle} 38@ {xOffset} 3.0 {yOffset} 114.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[11] {vehicle} 38@ {xOffset} -3.0 {yOffset} 118.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[12] {vehicle} 38@ {xOffset} 3.0 {yOffset} 118.0 {zOffset} -0.2
place_object_relative_to_car $trafficcones[13] {vehicle} 38@ {xOffset} 0.0 {yOffset} 118.0 {zOffset} -0.2

:BSKOOL_24084
return 

//-------------Mission 121---------------
// Originally: Taxi-Driver Sub-Mission

:TAXIODD
script_name 'TAXIODD'
34@ = 0
gosub @TAXIODD_54
if 
  has_deatharrest_been_executed 
goto_if_false @TAXIODD_45
gosub @TAXIODD_18798

:TAXIODD_45
gosub @TAXIODD_18971
terminate_this_script 

:TAXIODD_54
if 
  $done_taxiodd_progress == 0
goto_if_false @TAXIODD_74
register_mission_given 

:TAXIODD_74
$onmission = 1
$flag_player_on_oddjob = 1
if 
  not is_char_dead $scplayer
goto_if_false @TAXIODD_231
if 
  is_char_in_taxi $scplayer
goto_if_false @TAXIODD_231
37@ = store_car_char_is_in $scplayer
35@ = get_number_of_passengers 37@
if 
  35@ <> 0
goto_if_false @TAXIODD_179
print_now 'TX_FULL' {time} 5000 {flag} 1
wait 4500
clear_prints 
return 

:TAXIODD_179
36@ = get_car_health 37@
if 
  not is_car_health_greater 37@ {health} 400
goto_if_false @TAXIODD_231
print_now 'TX_ILL' {time} 5000 {flag} 1
wait 4500
clear_prints 
return 

:TAXIODD_231
set_var_int_to_var_int $nHoldModGarageState = $stop_gargae_for_neil
$stop_gargae_for_neil = 1
85@ = 0
86@ = 0
87@ = 0
38@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
47@ = 0
48@ = 0
TIMERA = 0
TIMERB = 0
102@ = 0
127@ = 0
130@ = 0
132@ = 0
133@ = 0
134@ = 0
135@ = 0
136@ = 0
137@ = 0
139@ = 0
140@ = 0
141@ = 0
142@ = 0
143@ = 0
144@ = 0
145@ = 0
124@ = 0
125@ = 0
126@ = 0
108@ = 0
146@ = 0
if 
  38@ == -99
goto_if_false @TAXIODD_721
write_debug "SHOULD_NEVER_BE_IN_FAKE_ENTITY_CREATION"
89@ = create_car 420 {x} 0.0 {y} 0.0 {z} 0.0
88@ = create_char PedType.CivMale {modelId} 147 {x} 0.0 {y} 0.0 {z} 0.0
49@ = 0

:TAXIODD_593
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(49@,4i)
49@ += 1
  49@ >= 4
goto_if_false @TAXIODD_593
96@ = add_blip_for_char 88@
97@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
49@ = 0

:TAXIODD_676
add_blip_for_coord 0.0 {y} 0.0 {z} 0.0 {var_handle} 98@(49@,3i)
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_676

:TAXIODD_721
load_mission_text 'TAXI1'
gosub @TAXIODD_17937
101@ = load_char_decision_maker DecisionMakerType.Empty
gosub @TAXIODD_17939
if 
  34@ == 1
goto_if_false @TAXIODD_778
goto @TAXIODD_17009

:TAXIODD_778
wait 0
gosub @TAXIODD_16579
gosub @TAXIODD_16933
if or
  40@ == 1
  41@ == 1
goto_if_false @TAXIODD_828
goto @TAXIODD_1465

:TAXIODD_828
gosub @TAXIODD_17804
gosub @TAXIODD_17838
if 
  is_char_dead $scplayer
goto_if_false @TAXIODD_872
124@ = 1
goto @TAXIODD_1465

:TAXIODD_872
if 
  38@ == 0
goto_if_false @TAXIODD_930
write_debug "STAGE_SHOULD_NEVER_BE_0_IN_MAIN_LOOP"

:TAXIODD_930
83@ = 0
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @TAXIODD_991
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @TAXIODD_984
83@ = 1

:TAXIODD_984
goto @TAXIODD_1015

:TAXIODD_991
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @TAXIODD_1015
83@ = 1

:TAXIODD_1015
if 
  135@ == 0
goto_if_false @TAXIODD_1081
if 
  83@ == 1
goto_if_false @TAXIODD_1074
if 
  is_player_playing $player1
goto_if_false @TAXIODD_1074
135@ = 1

:TAXIODD_1074
goto @TAXIODD_1129

:TAXIODD_1081
if 
  83@ == 0
goto_if_false @TAXIODD_1129
if 
  is_player_playing $player1
goto_if_false @TAXIODD_1129
124@ = 1
goto @TAXIODD_1465

:TAXIODD_1129
if 
  is_car_dead 89@
goto_if_false @TAXIODD_1159
124@ = 1
goto @TAXIODD_1465

:TAXIODD_1159
51@ = get_car_health 89@
if 
  250 >= 51@
goto_if_false @TAXIODD_1287
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_1273
if 
  is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_1273
print_now 'TX_FLED' {time} 5000 {flag} 1
if 
  138@ == 0
goto_if_false @TAXIODD_1273
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiBail
138@ = 1

:TAXIODD_1273
126@ = 1
goto @TAXIODD_1465

:TAXIODD_1287
if 
  130@ == 1
goto_if_false @TAXIODD_1344
if 
  $g_Taxiodd_timerKM == 0
goto_if_false @TAXIODD_1344
124@ = 1
108@ = 2
goto @TAXIODD_1465

:TAXIODD_1344
gosub @TAXIODD_2868
if 
  127@ == 0
goto_if_false @TAXIODD_1390
124@ = 1
108@ = 1
goto @TAXIODD_1465

:TAXIODD_1390
if 
  38@ == 1
goto_if_false @TAXIODD_1415
gosub @TAXIODD_1657

:TAXIODD_1415
if 
  38@ == 2
goto_if_false @TAXIODD_1440
gosub @TAXIODD_2261

:TAXIODD_1440
if 
  38@ == 3
goto_if_false @TAXIODD_1465
125@ = 1

:TAXIODD_1465
if 
  40@ == 0
goto_if_false @TAXIODD_1609
if 
  124@ == 0
goto_if_false @TAXIODD_1593
if 
  126@ == 0
goto_if_false @TAXIODD_1572
if 
  125@ == 0
goto_if_false @TAXIODD_1551
goto @TAXIODD_778
goto @TAXIODD_1565

:TAXIODD_1551
gosub @TAXIODD_18696
goto @TAXIODD_778

:TAXIODD_1565
goto @TAXIODD_1586

:TAXIODD_1572
gosub @TAXIODD_18732
goto @TAXIODD_778

:TAXIODD_1586
goto @TAXIODD_1602

:TAXIODD_1593
gosub @TAXIODD_18798
return 

:TAXIODD_1602
goto @TAXIODD_1611

:TAXIODD_1609
return 

:TAXIODD_1611
write_debug "SHOULD_NEVER_BE_HERE_IN_END_OF_MAIN_LOOP"
return 

:TAXIODD_1657
if 
  39@ == 0
goto_if_false @TAXIODD_1829
128@ = 0
129@ = 0
138@ = 0
139@ = 0
145@ = 0
107@ = 0
set_taxi_lights 89@ {state} True
if 
  144@ == 1
goto_if_false @TAXIODD_1756
39@ = 20
goto @TAXIODD_1829

:TAXIODD_1756
gosub @TAXIODD_3334
if 
  133@ == 0
goto_if_false @TAXIODD_1795
39@ = 1
goto @TAXIODD_1829

:TAXIODD_1795
print_now 'TX_JUNK' {time} $g_Taxiodd_timerKM {flag} 1
139@ = 1
freeze_onscreen_timer False
39@ = 10

:TAXIODD_1829
if 
  133@ == 1
goto_if_false @TAXIODD_1966
if 
  134@ == 0
goto_if_false @TAXIODD_1879
gosub @TAXIODD_3376
goto @TAXIODD_1966

:TAXIODD_1879
gosub @TAXIODD_3334
if 
  133@ == 0
goto_if_false @TAXIODD_1966
gosub @TAXIODD_3376
clear_this_print 'TX_JUNK'
$g_Taxiodd_timerKM += 10000
if 
  139@ == 1
goto_if_false @TAXIODD_1959
freeze_onscreen_timer True
139@ = 0

:TAXIODD_1959
39@ = 0

:TAXIODD_1966
if 
  39@ == 1
goto_if_false @TAXIODD_2055
gosub @TAXIODD_4400
if 
  128@ == 1
goto_if_false @TAXIODD_2055
if 
  130@ == 0
goto_if_false @TAXIODD_2044
$g_Taxiodd_timerKM = 36000
130@ = 1

:TAXIODD_2044
freeze_onscreen_timer False
39@ = 2

:TAXIODD_2055
if 
  39@ == 2
goto_if_false @TAXIODD_2151
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_2151
if 
  is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_2151
remove_blip 96@
clear_look_at 88@
set_taxi_lights 89@ {state} False
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiStart
117@ = get_car_health 89@
39@ = 99

:TAXIODD_2151
if 
  39@ == 10
goto_if_false @TAXIODD_2169

:TAXIODD_2169
if 
  39@ == 20
goto_if_false @TAXIODD_2227
if 
  is_int_lvar_greater_than_int_lvar 47@ > 106@
goto_if_false @TAXIODD_2227
144@ = 0
106@ = 0
39@ = 0

:TAXIODD_2227
gosub @TAXIODD_4901
if 
  39@ == 99
goto_if_false @TAXIODD_2259
gosub @TAXIODD_17877

:TAXIODD_2259
return 

:TAXIODD_2261
if 
  39@ == 0
goto_if_false @TAXIODD_2352
gosub @TAXIODD_7013
freeze_onscreen_timer False
131@ = 0
102@ = 0
136@ = 0
if 
  143@ == 0
goto_if_false @TAXIODD_2345
set_lvar_int_to_lvar_int 105@ = 47@
105@ += 5000

:TAXIODD_2345
39@ += 1

:TAXIODD_2352
if 
  is_char_dead 88@
goto_if_false @TAXIODD_2375
126@ = 1

:TAXIODD_2375
if and
  not is_char_in_car 88@ {vehicle} 89@
  131@ == 0
goto_if_false @TAXIODD_2408
126@ = 1

:TAXIODD_2408
gosub @TAXIODD_3334
if 
  133@ == 1
goto_if_false @TAXIODD_2481
if 
  134@ == 0
goto_if_false @TAXIODD_2474
print_now 'TX_REP' {time} 6000 {flag} 1
gosub @TAXIODD_3376

:TAXIODD_2474
goto @TAXIODD_2506

:TAXIODD_2481
if 
  134@ == 1
goto_if_false @TAXIODD_2506
gosub @TAXIODD_3376

:TAXIODD_2506
if 
  39@ == 1
goto_if_false @TAXIODD_2623
if 
  locate_char_in_car_3d 88@ {x} 121@ {y} 122@ {z} 123@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @TAXIODD_2623
if and
  is_char_in_car 88@ {vehicle} 89@
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @TAXIODD_2623
set_player_control $player1 {state} False
remove_blip 97@
131@ = 1
freeze_onscreen_timer True
39@ += 1

:TAXIODD_2623
if 
  39@ == 2
goto_if_false @TAXIODD_2698
if 
  is_car_stopped 89@
goto_if_false @TAXIODD_2698
if 
  is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_2684
task_leave_car_immediately 88@ {vehicle} 89@

:TAXIODD_2684
gosub @TAXIODD_18188
39@ += 1

:TAXIODD_2698
if 
  39@ == 3
goto_if_false @TAXIODD_2761
if 
  not is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_2761
mark_char_as_no_longer_needed 88@
146@ -= 1
set_player_control $player1 {state} True
39@ = 99

:TAXIODD_2761
if 
  131@ == 0
goto_if_false @TAXIODD_2786
gosub @TAXIODD_6762

:TAXIODD_2786
if 
  143@ == 0
goto_if_false @TAXIODD_2841
if 
  is_int_lvar_greater_than_int_lvar 47@ > 105@
goto_if_false @TAXIODD_2841
print_help 'TX_TIP'
143@ = 1

:TAXIODD_2841
if 
  39@ == 99
goto_if_false @TAXIODD_2866
gosub @TAXIODD_17877

:TAXIODD_2866
return 

:TAXIODD_2868
if 
  is_char_in_taxi $scplayer
goto_if_false @TAXIODD_2931
if 
  127@ <> 1
goto_if_false @TAXIODD_2924
89@ = store_car_char_is_in $scplayer
127@ = 1
gosub @TAXIODD_2940

:TAXIODD_2924
goto @TAXIODD_2938

:TAXIODD_2931
127@ = 0

:TAXIODD_2938
return 

:TAXIODD_2940
51@ = 0
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} 0.0 {yOffset} 2.3 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
51@ = 1
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} 0.0 {yOffset} -2.6 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
51@ = 2
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} -1.0 {yOffset} -1.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
51@ = 3
create_object #CR_AMMOBOX {x} 0.0 {y} 0.0 {z} 0.0 {var_handle} 90@(51@,4i)
set_object_collision 90@(51@,4i) {state} False
set_object_visible 90@(51@,4i) {state} False
attach_object_to_car 90@(51@,4i) {handle} 89@ {xOffset} 1.0 {yOffset} -1.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
return 

:TAXIODD_3334
if 
  is_car_health_greater 89@ {health} 400
goto_if_false @TAXIODD_3367
133@ = 0
goto @TAXIODD_3374

:TAXIODD_3367
133@ = 1

:TAXIODD_3374
return 

:TAXIODD_3376
if 
  134@ == 1
goto_if_false @TAXIODD_3440
49@ = 0

:TAXIODD_3401
remove_blip 98@(49@,3i)
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_3401
134@ = 0
return 

:TAXIODD_3440
if 
  is_char_in_zone $scplayer {zone} 'LA'
goto_if_false @TAXIODD_3507
51@ = 0
gosub @TAXIODD_3887
51@ += 1
gosub @TAXIODD_3944
51@ += 1
gosub @TAXIODD_4229

:TAXIODD_3507
if 
  is_char_in_zone $scplayer {zone} 'VE'
goto_if_false @TAXIODD_3546
51@ = 0
gosub @TAXIODD_4115

:TAXIODD_3546
if 
  is_char_in_zone $scplayer {zone} 'SF'
goto_if_false @TAXIODD_3599
51@ = 0
gosub @TAXIODD_4172
51@ += 1
gosub @TAXIODD_4286

:TAXIODD_3599
if 
  is_char_in_zone $scplayer {zone} 'RED'
goto_if_false @TAXIODD_3652
51@ = 0
gosub @TAXIODD_4001
51@ += 1
gosub @TAXIODD_4229

:TAXIODD_3652
if 
  is_char_in_zone $scplayer {zone} 'FLINTC'
goto_if_false @TAXIODD_3719
51@ = 0
gosub @TAXIODD_3944
51@ += 1
gosub @TAXIODD_4001
51@ += 1
gosub @TAXIODD_4286

:TAXIODD_3719
if 
  is_char_in_zone $scplayer {zone} 'WHET'
goto_if_false @TAXIODD_3786
51@ = 0
gosub @TAXIODD_3944
51@ += 1
gosub @TAXIODD_4001
51@ += 1
gosub @TAXIODD_4286

:TAXIODD_3786
if 
  is_char_in_zone $scplayer {zone} 'ROBAD'
goto_if_false @TAXIODD_3825
51@ = 0
gosub @TAXIODD_4058

:TAXIODD_3825
if 
  is_char_in_zone $scplayer {zone} 'BONE'
goto_if_false @TAXIODD_3878
51@ = 0
gosub @TAXIODD_4058
51@ += 1
gosub @TAXIODD_4115

:TAXIODD_3878
134@ = 1
return 

:TAXIODD_3887
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_3916
remove_blip 98@(51@,3i)

:TAXIODD_3916
add_sprite_blip_for_coord 2067.3999 {y} -1831.2 {z} 13.5 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_3944
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_3973
remove_blip 98@(51@,3i)

:TAXIODD_3973
add_sprite_blip_for_coord 488.0 {y} -1734.0 {z} 34.4 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4001
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4030
remove_blip 98@(51@,3i)

:TAXIODD_4030
add_sprite_blip_for_coord 720.016 {y} -454.625 {z} 15.328 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4058
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4087
remove_blip 98@(51@,3i)

:TAXIODD_4087
add_sprite_blip_for_coord -1420.547 {y} 2583.9451 {z} 58.031 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4115
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4144
remove_blip 98@(51@,3i)

:TAXIODD_4144
add_sprite_blip_for_coord 1966.532 {y} 2162.6499 {z} 10.995 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4172
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4201
remove_blip 98@(51@,3i)

:TAXIODD_4201
add_sprite_blip_for_coord -2425.46 {y} 1020.83 {z} 49.39 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4229
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4258
remove_blip 98@(51@,3i)

:TAXIODD_4258
add_sprite_blip_for_coord 1021.8 {y} -1018.7 {z} 30.9 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4286
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4315
remove_blip 98@(51@,3i)

:TAXIODD_4315
add_sprite_blip_for_coord -1908.9 {y} 292.3 {z} 40.0 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 
if 
  does_blip_exist 98@(51@,3i)
goto_if_false @TAXIODD_4372
remove_blip 98@(51@,3i)

:TAXIODD_4372
add_sprite_blip_for_coord -103.6 {y} 1112.4 {z} 18.7 {sprite} RadarSprite.Spray {var_handle} 98@(51@,3i)
return 

:TAXIODD_4400
if 
  is_int_lvar_greater_than_int_lvar 47@ > 102@
goto_if_false @TAXIODD_4515
if 
  136@ == 0
goto_if_false @TAXIODD_4483
print_now 'TX_NONE' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000
137@ = 1
goto @TAXIODD_4515

:TAXIODD_4483
print_now 'TX_PKUP' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_4515
88@ = get_random_char_in_zone 'SAN_AND' {civilian} True {gang} False {criminalOrProstitute} True
if 
  88@ == -1
goto_if_false @TAXIODD_4555
return 

:TAXIODD_4555
146@ += 1
if or
  is_char_dead 88@
  is_char_in_any_car 88@
  has_char_been_damaged_by_char 88@ {handle} $scplayer
goto_if_false @TAXIODD_4605
mark_char_as_no_longer_needed 88@
146@ -= 1
return 

:TAXIODD_4605
94@ = get_char_model 88@
if 
  is_int_lvar_equal_to_int_lvar 94@ == 95@
goto_if_false @TAXIODD_4646
mark_char_as_no_longer_needed 88@
146@ -= 1
return 

:TAXIODD_4646
58@, 59@, 60@ = get_char_coordinates 88@
if 
  not locate_char_any_means_3d $scplayer {x} 58@ {y} 59@ {z} 60@ {xRadius} 88.0 {yRadius} 88.0 {zRadius} 19.0 {drawSphere} False
goto_if_false @TAXIODD_4716
mark_char_as_no_longer_needed 88@
146@ -= 1
return 

:TAXIODD_4716
136@ = 1
if 
  137@ == 1
goto_if_false @TAXIODD_4780
print_now 'TX_PKUP' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000
137@ = 0

:TAXIODD_4780
clear_char_tasks_immediately 88@
set_char_decision_maker 88@ {handleOrTemplate} 101@
task_stand_still 88@ {time} -2
145@ = 0
gosub @TAXIODD_6156
if 
  does_blip_exist 96@
goto_if_false @TAXIODD_4835
remove_blip 96@

:TAXIODD_4835
96@ = add_blip_for_char 88@
set_blip_as_friendly 96@ {state} True
118@, 119@, 120@ = get_char_coordinates $scplayer
118@ += 4.0
119@ += 4.0
set_lvar_int_to_lvar_int 95@ = 94@
128@ = 1
return 

:TAXIODD_4901
if 
  128@ == 0
goto_if_false @TAXIODD_4921
return 

:TAXIODD_4921
if 
  is_int_lvar_greater_than_int_lvar 47@ > 102@
goto_if_false @TAXIODD_4972
print_now 'TX_PKUP' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_4972
83@ = 0
84@ = 1
if or
  is_char_dead 88@
  has_char_been_damaged_by_char 88@ {handle} $scplayer
goto_if_false @TAXIODD_5056
83@ = 1
84@ = 0
print_now 'TX_OOPS' {time} 6000 {flag} 1
set_lvar_int_to_lvar_int 102@ = 47@
102@ += 5000

:TAXIODD_5056
if 
  is_car_dead 89@
goto_if_false @TAXIODD_5079
83@ = 1

:TAXIODD_5079
if 
  83@ == 0
goto_if_false @TAXIODD_5123
if 
  not is_char_in_car $scplayer {vehicle} 89@
goto_if_false @TAXIODD_5123
83@ = 1

:TAXIODD_5123
if 
  83@ == 0
goto_if_false @TAXIODD_5169
58@, 59@, 60@ = get_char_coordinates $scplayer
61@, 62@, 63@ = get_char_coordinates 88@

:TAXIODD_5169
if 
  83@ == 0
goto_if_false @TAXIODD_5236
if 
  not locate_char_any_means_3d $scplayer {x} 61@ {y} 62@ {z} 63@ {xRadius} 90.0 {yRadius} 90.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @TAXIODD_5236
83@ = 1

:TAXIODD_5236
if 
  83@ == 1
goto_if_false @TAXIODD_5383
if 
  84@ == 1
goto_if_false @TAXIODD_5279
102@ = 0

:TAXIODD_5279
128@ = 0
138@ = 0
remove_blip 96@
if 
  133@ == 1
goto_if_false @TAXIODD_5330
39@ = 10
goto @TAXIODD_5337

:TAXIODD_5330
39@ = 1

:TAXIODD_5337
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_5365
clear_look_at 88@
gosub @TAXIODD_6399

:TAXIODD_5365
mark_char_as_no_longer_needed 88@
146@ -= 1
freeze_onscreen_timer False
return 

:TAXIODD_5383
if and
  is_char_in_car $scplayer {vehicle} 89@
  locate_stopped_char_in_car_3d $scplayer {x} 61@ {y} 62@ {z} 63@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @TAXIODD_5702
if 
  129@ == 0
goto_if_false @TAXIODD_5540
gosub @TAXIODD_3334
if 
  133@ == 1
goto_if_false @TAXIODD_5499
print_now 'TX_JUNK' {time} 5000 {flag} 1
goto @TAXIODD_5279

:TAXIODD_5499
gosub @TAXIODD_6399
set_lvar_int_to_lvar_int 107@ = 47@
107@ += 300
129@ = 1
freeze_onscreen_timer True
goto @TAXIODD_5693

:TAXIODD_5540
if 
  107@ > 0
goto_if_false @TAXIODD_5620
if 
  is_int_lvar_greater_than_int_lvar 47@ > 107@
goto_if_false @TAXIODD_5620
42@ = get_script_task_status 88@ {taskId} 2586
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @TAXIODD_5620
gosub @TAXIODD_6437
107@ = 0

:TAXIODD_5620
if 
  107@ == 0
goto_if_false @TAXIODD_5693
if 
  not is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_5693
42@ = get_script_task_status 88@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 42@ == 7
goto_if_false @TAXIODD_5693
gosub @TAXIODD_6437

:TAXIODD_5693
return 
goto @TAXIODD_5815

:TAXIODD_5702
if 
  129@ == 1
goto_if_false @TAXIODD_5808
if 
  is_char_in_car $scplayer {vehicle} 89@
goto_if_false @TAXIODD_5806
if 
  not locate_char_in_car_3d $scplayer {x} 61@ {y} 62@ {z} 63@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @TAXIODD_5806
gosub @TAXIODD_6156
task_stand_still 88@ {time} -2
129@ = 0
freeze_onscreen_timer False

:TAXIODD_5806
return 

:TAXIODD_5808
107@ = 0

:TAXIODD_5815
if 
  not is_char_in_any_car 88@
goto_if_false @TAXIODD_5877
42@ = get_script_task_status 88@ {taskId} 1471
if and
  not is_int_lvar_equal_to_constant 42@ == 1
  not is_int_lvar_equal_to_constant 42@ == 0
goto_if_false @TAXIODD_5877
task_look_at_char 88@ {target} $scplayer {time} -2

:TAXIODD_5877
if 
  not is_char_in_any_car 88@
goto_if_false @TAXIODD_6056
42@ = get_script_task_status 88@ {taskId} 1492
if and
  not is_int_lvar_equal_to_constant 42@ == 1
  not is_int_lvar_equal_to_constant 42@ == 0
goto_if_false @TAXIODD_6056
82@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 118@ {toY} 119@ {toZ} 120@
if 
  82@ > 4.0
goto_if_false @TAXIODD_6056
set_lvar_float_to_lvar_float 74@ = 58@
set_lvar_float_to_lvar_float 75@ = 59@
set_lvar_float_to_lvar_float 77@ = 61@
set_lvar_float_to_lvar_float 78@ = 62@
set_lvar_float_to_lvar_float 58@ = 74@
sub_float_lvar_from_float_lvar 58@ -= 77@
set_lvar_float_to_lvar_float 59@ = 75@
sub_float_lvar_from_float_lvar 59@ -= 78@
73@ = get_heading_from_vector_2d 58@ {y} 59@
task_achieve_heading 88@ {heading} 73@

:TAXIODD_6056
if 
  145@ == 0
goto_if_false @TAXIODD_6154
if 
  129@ == 0
goto_if_false @TAXIODD_6154
82@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 61@ {toY} 62@ {toZ} 63@
if 
  10.0 > 82@
goto_if_false @TAXIODD_6154
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiHail
145@ = 1

:TAXIODD_6154
return 

:TAXIODD_6156
140@ = 0
gosub @TAXIODD_6502
141@ = 0
gosub @TAXIODD_6632
83@ = 0
if 
  140@ == 1
goto_if_false @TAXIODD_6255
if 
  141@ == 1
goto_if_false @TAXIODD_6241
83@ = 0
goto @TAXIODD_6248

:TAXIODD_6241
83@ = 1

:TAXIODD_6248
goto @TAXIODD_6294

:TAXIODD_6255
if 
  141@ == 1
goto_if_false @TAXIODD_6287
83@ = 1
goto @TAXIODD_6294

:TAXIODD_6287
83@ = 0

:TAXIODD_6294
if 
  83@ == 1
goto_if_false @TAXIODD_6359
task_play_anim_secondary 88@ {animationName} "HIKER_POSE_L" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @TAXIODD_6397

:TAXIODD_6359
task_play_anim_secondary 88@ {animationName} "HIKER_POSE" {animationFile} "MISC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:TAXIODD_6397
return 

:TAXIODD_6399
task_play_anim_secondary 88@ {animationName} "ROADCROSS" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 100
return 

:TAXIODD_6437
140@ = 0
gosub @TAXIODD_6502
if 
  140@ == 1
goto_if_false @TAXIODD_6488
task_enter_car_as_passenger 88@ {vehicle} 89@ {time} -2 {seat} SeatId.RearRight
goto @TAXIODD_6500

:TAXIODD_6488
task_enter_car_as_passenger 88@ {vehicle} 89@ {time} -2 {seat} SeatId.RearLeft

:TAXIODD_6500
return 

:TAXIODD_6502
58@, 59@, 60@ = get_char_coordinates 88@
61@, 62@, 63@ = get_object_coordinates 92@
64@, 65@, 66@ = get_object_coordinates 93@
80@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 61@ {toY} 62@ {toZ} 63@
81@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 64@ {toY} 65@ {toZ} 66@
if 
  is_float_lvar_greater_than_float_lvar 81@ > 80@
goto_if_false @TAXIODD_6623
140@ = 0
goto @TAXIODD_6630

:TAXIODD_6623
140@ = 1

:TAXIODD_6630
return 

:TAXIODD_6632
58@, 59@, 60@ = get_char_coordinates 88@
61@, 62@, 63@ = get_object_coordinates 90@
64@, 65@, 66@ = get_object_coordinates 91@
80@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 61@ {toY} 62@ {toZ} 63@
81@ = get_distance_between_coords_3d 58@ {fromY} 59@ {fromZ} 60@ {toX} 64@ {toY} 65@ {toZ} 66@
if 
  is_float_lvar_greater_than_float_lvar 81@ > 80@
goto_if_false @TAXIODD_6753
141@ = 1
goto @TAXIODD_6760

:TAXIODD_6753
141@ = 0

:TAXIODD_6760
return 

:TAXIODD_6762
if 
  132@ == 0
goto_if_false @TAXIODD_6782
return 

:TAXIODD_6782
if 
  is_int_lvar_greater_than_int_lvar 47@ > 104@
goto_if_false @TAXIODD_6822
clear_onscreen_counter $g_Taxiodd_bonusKM
132@ = 0
$g_Taxiodd_bonusKM = 0
return 

:TAXIODD_6822
51@ = get_car_health 89@
if 
  is_int_lvar_greater_than_int_lvar 51@ > 117@
goto_if_false @TAXIODD_6864
set_lvar_int_to_lvar_int 117@ = 51@
goto @TAXIODD_6923

:TAXIODD_6864
if 
  is_int_lvar_greater_than_int_lvar 117@ > 51@
goto_if_false @TAXIODD_6923
set_lvar_int_to_lvar_int 52@ = 117@
sub_int_lvar_from_int_lvar 52@ -= 51@
set_lvar_int_to_lvar_int 117@ = 51@
52@ *= 180
sub_int_lvar_from_int_lvar 104@ -= 52@

:TAXIODD_6923
set_lvar_int_to_lvar_int 51@ = 104@
sub_int_lvar_from_int_lvar 51@ -= 103@
set_lvar_int_to_lvar_int 52@ = 47@
sub_int_lvar_from_int_lvar 52@ -= 103@
set_var_int_to_lvar_int $g_Taxiodd_bonusKM = 51@
sub_int_lvar_from_int_var $g_Taxiodd_bonusKM -= 52@
$g_Taxiodd_bonusKM *= 100
div_int_var_by_int_lvar $g_Taxiodd_bonusKM /= 51@
if 
  0 > $g_Taxiodd_bonusKM
goto_if_false @TAXIODD_7011
$g_Taxiodd_bonusKM = 0

:TAXIODD_7011
return 

:TAXIODD_7013
if 
  is_char_dead 88@
goto_if_false @TAXIODD_7031
return 

:TAXIODD_7031
set_lvar_int_to_lvar_int 112@ = 113@
113@ = 0
110@ = -1
gosub @TAXIODD_7654
58@, 59@, 60@ = get_char_coordinates 88@
set_lvar_float_to_lvar_float 67@ = 58@
sub_float_lvar_from_float_lvar 67@ -= 121@
set_lvar_float_to_lvar_float 68@ = 59@
sub_float_lvar_from_float_lvar 68@ -= 122@
set_lvar_float_to_lvar_float 70@ = 67@
mult_float_lvar_by_float_lvar 70@ *= 67@
set_lvar_float_to_lvar_float 71@ = 68@
mult_float_lvar_by_float_lvar 71@ *= 68@
set_lvar_float_to_lvar_float 80@ = 70@
add_float_lvar_to_float_lvar 80@ += 71@
81@ = sqrt 80@
cset_lvar_int_to_lvar_float 111@ =# 81@
if 
  200 > 111@
goto_if_false @TAXIODD_7196
goto @TAXIODD_7013

:TAXIODD_7196
set_lvar_int_to_lvar_int 51@ = 111@
if 
  $g_Taxiodd_faresKM == 0
goto_if_false @TAXIODD_7229
51@ *= 100

:TAXIODD_7229
if 
  $g_Taxiodd_faresKM == 1
goto_if_false @TAXIODD_7254
51@ *= 95

:TAXIODD_7254
if 
  $g_Taxiodd_faresKM == 2
goto_if_false @TAXIODD_7279
51@ *= 80

:TAXIODD_7279
if 
  $g_Taxiodd_faresKM == 3
goto_if_false @TAXIODD_7304
51@ *= 79

:TAXIODD_7304
if 
  $g_Taxiodd_faresKM == 4
goto_if_false @TAXIODD_7329
51@ *= 78

:TAXIODD_7329
if 
  $g_Taxiodd_faresKM == 5
goto_if_false @TAXIODD_7354
51@ *= 76

:TAXIODD_7354
if and
  $g_Taxiodd_faresKM > 5
  10 >= $g_Taxiodd_faresKM
goto_if_false @TAXIODD_7386
51@ *= 75

:TAXIODD_7386
if and
  $g_Taxiodd_faresKM > 10
  20 >= $g_Taxiodd_faresKM
goto_if_false @TAXIODD_7418
51@ *= 70

:TAXIODD_7418
if and
  $g_Taxiodd_faresKM > 20
  50 >= $g_Taxiodd_faresKM
goto_if_false @TAXIODD_7450
51@ *= 65

:TAXIODD_7450
if 
  $g_Taxiodd_faresKM > 50
goto_if_false @TAXIODD_7475
51@ *= 60

:TAXIODD_7475
add_int_lvar_to_int_var $g_Taxiodd_timerKM += 51@
set_lvar_int_to_lvar_int 52@ = 112@
52@ *= 500
add_int_lvar_to_int_var $g_Taxiodd_timerKM += 52@
add_int_lvar_to_int_lvar 51@ += 52@
set_lvar_int_to_lvar_int 52@ = 113@
52@ *= 1000
add_int_lvar_to_int_var $g_Taxiodd_timerKM += 52@
add_int_lvar_to_int_lvar 51@ += 52@
set_lvar_int_to_lvar_int 103@ = 47@
set_lvar_int_to_lvar_int 104@ = 51@
104@ *= 95
104@ /= 100
add_int_lvar_to_int_lvar 104@ += 47@
$g_Taxiodd_bonusKM = 0
display_nth_onscreen_counter_with_string $g_Taxiodd_bonusKM {display} CounterDisplay.Bar {slot} 3 {text} 'TX_ADDS'
132@ = 1
if 
  does_blip_exist 97@
goto_if_false @TAXIODD_7638
remove_blip 97@

:TAXIODD_7638
97@ = add_blip_for_coord 121@ {y} 122@ {z} 123@
return 

:TAXIODD_7654
if 
  is_char_in_zone $scplayer {zone} 'LA'
goto_if_false @TAXIODD_7686
gosub @TAXIODD_8391

:TAXIODD_7686
if 
  is_char_in_zone $scplayer {zone} 'VE'
goto_if_false @TAXIODD_7718
gosub @TAXIODD_10647

:TAXIODD_7718
if 
  is_char_in_zone $scplayer {zone} 'SF'
goto_if_false @TAXIODD_7750
gosub @TAXIODD_13590

:TAXIODD_7750
if 
  is_char_in_zone $scplayer {zone} 'RED'
goto_if_false @TAXIODD_7875
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_7875 {caseNum1} 0 {caseLabel1} @TAXIODD_7847 {caseNum2} 1 {caseLabel2} @TAXIODD_7861 {caseNum3} -1 {caseLabel3} @TAXIODD_7875 {caseNum4} -1 {caseLabel4} @TAXIODD_7875 {caseNum5} -1 {caseLabel5} @TAXIODD_7875 {caseNum6} -1 {caseLabel6} @TAXIODD_7875 {caseNum7} -1 {caseLabel7} @TAXIODD_7875

:TAXIODD_7847
gosub @TAXIODD_15447
goto @TAXIODD_7875

:TAXIODD_7861
gosub @TAXIODD_8391
goto @TAXIODD_7875

:TAXIODD_7875
if 
  is_char_in_zone $scplayer {zone} 'FLINTC'
goto_if_false @TAXIODD_8014
51@ = generate_random_int_in_range 0 {max} 3
switch_start 51@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8014 {caseNum1} 0 {caseLabel1} @TAXIODD_7972 {caseNum2} 1 {caseLabel2} @TAXIODD_7986 {caseNum3} 2 {caseLabel3} @TAXIODD_8000 {caseNum4} -1 {caseLabel4} @TAXIODD_8014 {caseNum5} -1 {caseLabel5} @TAXIODD_8014 {caseNum6} -1 {caseLabel6} @TAXIODD_8014 {caseNum7} -1 {caseLabel7} @TAXIODD_8014

:TAXIODD_7972
gosub @TAXIODD_15545
goto @TAXIODD_8014

:TAXIODD_7986
gosub @TAXIODD_8391
goto @TAXIODD_8014

:TAXIODD_8000
gosub @TAXIODD_13590
goto @TAXIODD_8014

:TAXIODD_8014
if 
  is_char_in_zone $scplayer {zone} 'WHET'
goto_if_false @TAXIODD_8139
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8139 {caseNum1} 0 {caseLabel1} @TAXIODD_8111 {caseNum2} 1 {caseLabel2} @TAXIODD_8125 {caseNum3} -1 {caseLabel3} @TAXIODD_8139 {caseNum4} -1 {caseLabel4} @TAXIODD_8139 {caseNum5} -1 {caseLabel5} @TAXIODD_8139 {caseNum6} -1 {caseLabel6} @TAXIODD_8139 {caseNum7} -1 {caseLabel7} @TAXIODD_8139

:TAXIODD_8111
gosub @TAXIODD_15645
goto @TAXIODD_8139

:TAXIODD_8125
gosub @TAXIODD_13590
goto @TAXIODD_8139

:TAXIODD_8139
if 
  is_char_in_zone $scplayer {zone} 'ROBAD'
goto_if_false @TAXIODD_8264
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8264 {caseNum1} 0 {caseLabel1} @TAXIODD_8236 {caseNum2} 1 {caseLabel2} @TAXIODD_8250 {caseNum3} -1 {caseLabel3} @TAXIODD_8264 {caseNum4} -1 {caseLabel4} @TAXIODD_8264 {caseNum5} -1 {caseLabel5} @TAXIODD_8264 {caseNum6} -1 {caseLabel6} @TAXIODD_8264 {caseNum7} -1 {caseLabel7} @TAXIODD_8264

:TAXIODD_8236
gosub @TAXIODD_15742
goto @TAXIODD_8264

:TAXIODD_8250
gosub @TAXIODD_13590
goto @TAXIODD_8264

:TAXIODD_8264
if 
  is_char_in_zone $scplayer {zone} 'BONE'
goto_if_false @TAXIODD_8389
51@ = generate_random_int_in_range 0 {max} 2
switch_start 51@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_8389 {caseNum1} 0 {caseLabel1} @TAXIODD_8361 {caseNum2} 1 {caseLabel2} @TAXIODD_8375 {caseNum3} -1 {caseLabel3} @TAXIODD_8389 {caseNum4} -1 {caseLabel4} @TAXIODD_8389 {caseNum5} -1 {caseLabel5} @TAXIODD_8389 {caseNum6} -1 {caseLabel6} @TAXIODD_8389 {caseNum7} -1 {caseLabel7} @TAXIODD_8389

:TAXIODD_8361
gosub @TAXIODD_16082
goto @TAXIODD_8389

:TAXIODD_8375
gosub @TAXIODD_10647
goto @TAXIODD_8389

:TAXIODD_8389
return 

:TAXIODD_8391
if 
  34@ == 1
goto_if_false @TAXIODD_8431
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_8440

:TAXIODD_8431
110@ = generate_random_int_in_range 1 {max} 35

:TAXIODD_8440
switch_start 110@ {numCases} 34 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_10528 {caseNum1} 1 {caseLabel1} @TAXIODD_8698 {caseNum2} 2 {caseLabel2} @TAXIODD_8751 {caseNum3} 3 {caseLabel3} @TAXIODD_8804 {caseNum4} 4 {caseLabel4} @TAXIODD_8857 {caseNum5} 5 {caseLabel5} @TAXIODD_8910 {caseNum6} 6 {caseLabel6} @TAXIODD_8963 {caseNum7} 7 {caseLabel7} @TAXIODD_9016
switch_continued 8 {caseLabel1} @TAXIODD_9069 {caseNum2} 9 {caseLabel2} @TAXIODD_9122 {caseNum3} 10 {caseLabel3} @TAXIODD_9175 {caseNum4} 11 {caseLabel4} @TAXIODD_9228 {caseNum5} 12 {caseLabel5} @TAXIODD_9281 {caseNum6} 13 {caseLabel6} @TAXIODD_9334 {caseNum7} 14 {caseLabel7} @TAXIODD_9387 {caseNum8} 15 {caseLabel8} @TAXIODD_9440 {caseNum9} 16 {caseLabel9} @TAXIODD_9493
switch_continued 17 {caseLabel1} @TAXIODD_9546 {caseNum2} 18 {caseLabel2} @TAXIODD_9606 {caseNum3} 19 {caseLabel3} @TAXIODD_9666 {caseNum4} 20 {caseLabel4} @TAXIODD_9726 {caseNum5} 21 {caseLabel5} @TAXIODD_9779 {caseNum6} 22 {caseLabel6} @TAXIODD_9832 {caseNum7} 23 {caseLabel7} @TAXIODD_9885 {caseNum8} 24 {caseLabel8} @TAXIODD_9938 {caseNum9} 25 {caseLabel9} @TAXIODD_9991
switch_continued 26 {caseLabel1} @TAXIODD_10044 {caseNum2} 27 {caseLabel2} @TAXIODD_10097 {caseNum3} 28 {caseLabel3} @TAXIODD_10150 {caseNum4} 29 {caseLabel4} @TAXIODD_10203 {caseNum5} 30 {caseLabel5} @TAXIODD_10263 {caseNum6} 31 {caseLabel6} @TAXIODD_10316 {caseNum7} 32 {caseLabel7} @TAXIODD_10369 {caseNum8} 33 {caseLabel8} @TAXIODD_10422 {caseNum9} 34 {caseLabel9} @TAXIODD_10475

:TAXIODD_8698
print_now 'TX_LS1' {time} 5000 {flag} 1
121@ = 2468.146
122@ = -1736.184
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_8751
print_now 'TX_LS2' {time} 5000 {flag} 1
121@ = 2794.0
122@ = -1828.0
123@ = 10.0
goto @TAXIODD_10645

:TAXIODD_8804
print_now 'TX_LS3' {time} 5000 {flag} 1
121@ = 1884.193
122@ = -1257.521
123@ = 12.3984
goto @TAXIODD_10645

:TAXIODD_8857
print_now 'TX_LS4' {time} 5000 {flag} 1
121@ = 2317.48
122@ = -1386.604
123@ = 22.8784
goto @TAXIODD_10645

:TAXIODD_8910
print_now 'TX_LS5' {time} 5000 {flag} 1
121@ = 2237.76
122@ = -1304.165
123@ = 22.8488
goto @TAXIODD_10645

:TAXIODD_8963
print_now 'TX_LS6' {time} 5000 {flag} 1
121@ = 2221.0869
122@ = -1137.332
123@ = 24.625
goto @TAXIODD_10645

:TAXIODD_9016
print_now 'TX_LS7' {time} 5000 {flag} 1
121@ = 2146.7371
122@ = -1179.795
123@ = 22.8278
goto @TAXIODD_10645

:TAXIODD_9069
print_now 'TX_LS8' {time} 5000 {flag} 1
121@ = 2075.5581
122@ = -1202.793
123@ = 22.7571
goto @TAXIODD_10645

:TAXIODD_9122
print_now 'TX_LS9' {time} 5000 {flag} 1
121@ = 2320.0
122@ = -1655.0
123@ = 14.0
goto @TAXIODD_10645

:TAXIODD_9175
print_now 'TX_LS10' {time} 5000 {flag} 1
121@ = 2455.0
122@ = -1502.0
123@ = 24.0
goto @TAXIODD_10645

:TAXIODD_9228
print_now 'TX_LS11' {time} 5000 {flag} 1
121@ = 2181.0
122@ = -1771.0
123@ = 13.0
goto @TAXIODD_10645

:TAXIODD_9281
print_now 'TX_LS12' {time} 5000 {flag} 1
121@ = 2084.731
122@ = -1800.86
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9334
print_now 'TX_LS13' {time} 5000 {flag} 1
121@ = 2078.0149
122@ = -1791.589
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9387
print_now 'TX_LS14' {time} 5000 {flag} 1
121@ = 2081.2871
122@ = -1779.5
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9440
print_now 'TX_LS15' {time} 5000 {flag} 1
121@ = 2418.542
122@ = -2085.1189
123@ = 12.2928
goto @TAXIODD_10645

:TAXIODD_9493
print_now 'TX_LS16' {time} 5000 {flag} 1
121@ = 1742.689
122@ = -1858.697
123@ = 12.4185
goto @TAXIODD_10645

:TAXIODD_9546
print_now 'TX_LS17' {time} 5000 {flag} 1
121@ = 1668.0
122@ = -2253.0
123@ = 13.0
113@ = 40
goto @TAXIODD_10645

:TAXIODD_9606
print_now 'TX_LS18' {time} 5000 {flag} 1
121@ = 1432.198
122@ = -2274.6479
123@ = 12.3906
113@ = 30
goto @TAXIODD_10645

:TAXIODD_9666
print_now 'TX_LS19' {time} 5000 {flag} 1
121@ = 1256.0
122@ = -2028.0
123@ = 60.0
113@ = 30
goto @TAXIODD_10645

:TAXIODD_9726
print_now 'TX_LS20' {time} 5000 {flag} 1
121@ = 1532.7889
122@ = -1675.442
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9779
print_now 'TX_LS21' {time} 5000 {flag} 1
121@ = 1472.35
122@ = -1729.7061
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9832
print_now 'TX_LS22' {time} 5000 {flag} 1
121@ = 1855.4189
122@ = -1383.2729
123@ = 12.3984
goto @TAXIODD_10645

:TAXIODD_9885
print_now 'TX_LS23' {time} 5000 {flag} 1
121@ = 2025.0
122@ = -1413.0
123@ = 17.0
goto @TAXIODD_10645

:TAXIODD_9938
print_now 'TX_LS24' {time} 5000 {flag} 1
121@ = 1361.218
122@ = -1277.9041
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_9991
print_now 'TX_LS25' {time} 5000 {flag} 1
121@ = 1192.0
122@ = -1324.0
123@ = 13.0
goto @TAXIODD_10645

:TAXIODD_10044
print_now 'TX_LS26' {time} 5000 {flag} 1
121@ = 1031.066
122@ = -1329.704
123@ = 12.3861
goto @TAXIODD_10645

:TAXIODD_10097
print_now 'TX_LS27' {time} 5000 {flag} 1
121@ = 814.0
122@ = -1330.0
123@ = 13.0
goto @TAXIODD_10645

:TAXIODD_10150
print_now 'TX_LS28' {time} 5000 {flag} 1
121@ = 667.7637
122@ = -1265.6899
123@ = 12.4687
goto @TAXIODD_10645

:TAXIODD_10203
print_now 'TX_LS29' {time} 5000 {flag} 1
121@ = 368.1992
122@ = -2042.537
123@ = 6.6582
113@ = 30
goto @TAXIODD_10645

:TAXIODD_10263
print_now 'TX_LS30' {time} 5000 {flag} 1
121@ = 152.5806
122@ = -1754.8311
123@ = 3.9518
goto @TAXIODD_10645

:TAXIODD_10316
print_now 'TX_LS31' {time} 5000 {flag} 1
121@ = 508.2797
122@ = -1358.598
123@ = 14.9532
goto @TAXIODD_10645

:TAXIODD_10369
print_now 'TX_LS32' {time} 5000 {flag} 1
121@ = 1199.8459
122@ = -933.0658
123@ = 41.7332
goto @TAXIODD_10645

:TAXIODD_10422
print_now 'TX_LS33' {time} 5000 {flag} 1
121@ = 816.2869
122@ = -1630.762
123@ = 12.3906
goto @TAXIODD_10645

:TAXIODD_10475
print_now 'TX_LS34' {time} 5000 {flag} 1
121@ = 1311.97
122@ = -1712.2889
123@ = 12.3906
goto @TAXIODD_10645

:TAXIODD_10528
if 
  34@ == 1
goto_if_false @TAXIODD_10553
110@ = 0

:TAXIODD_10553
write_debug "UNKNOWN_LOS_SANTOS_TAXI_DESTINATION"
print_now 'TX_LS1' {time} 5000 {flag} 1
121@ = 2468.146
122@ = -1736.184
123@ = 12.3828
goto @TAXIODD_10645

:TAXIODD_10645
return 

:TAXIODD_10647
if 
  34@ == 1
goto_if_false @TAXIODD_10687
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_10696

:TAXIODD_10687
110@ = generate_random_int_in_range 1 {max} 46

:TAXIODD_10696
switch_start 110@ {numCases} 45 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_13469 {caseNum1} 1 {caseLabel1} @TAXIODD_11084 {caseNum2} 2 {caseLabel2} @TAXIODD_11137 {caseNum3} 3 {caseLabel3} @TAXIODD_11190 {caseNum4} 4 {caseLabel4} @TAXIODD_11243 {caseNum5} 5 {caseLabel5} @TAXIODD_11296 {caseNum6} 6 {caseLabel6} @TAXIODD_11349 {caseNum7} 7 {caseLabel7} @TAXIODD_11402
switch_continued 8 {caseLabel1} @TAXIODD_11455 {caseNum2} 9 {caseLabel2} @TAXIODD_11508 {caseNum3} 10 {caseLabel3} @TAXIODD_11561 {caseNum4} 11 {caseLabel4} @TAXIODD_11614 {caseNum5} 12 {caseLabel5} @TAXIODD_11667 {caseNum6} 13 {caseLabel6} @TAXIODD_11720 {caseNum7} 14 {caseLabel7} @TAXIODD_11773 {caseNum8} 15 {caseLabel8} @TAXIODD_11826 {caseNum9} 16 {caseLabel9} @TAXIODD_11879
switch_continued 17 {caseLabel1} @TAXIODD_11932 {caseNum2} 18 {caseLabel2} @TAXIODD_11985 {caseNum3} 19 {caseLabel3} @TAXIODD_12038 {caseNum4} 20 {caseLabel4} @TAXIODD_12091 {caseNum5} 21 {caseLabel5} @TAXIODD_12144 {caseNum6} 22 {caseLabel6} @TAXIODD_12197 {caseNum7} 23 {caseLabel7} @TAXIODD_12250 {caseNum8} 24 {caseLabel8} @TAXIODD_12303 {caseNum9} 25 {caseLabel9} @TAXIODD_12356
switch_continued 26 {caseLabel1} @TAXIODD_12409 {caseNum2} 27 {caseLabel2} @TAXIODD_12462 {caseNum3} 28 {caseLabel3} @TAXIODD_12515 {caseNum4} 29 {caseLabel4} @TAXIODD_12568 {caseNum5} 30 {caseLabel5} @TAXIODD_12621 {caseNum6} 31 {caseLabel6} @TAXIODD_12674 {caseNum7} 32 {caseLabel7} @TAXIODD_12727 {caseNum8} 33 {caseLabel8} @TAXIODD_12780 {caseNum9} 34 {caseLabel9} @TAXIODD_12833
switch_continued 35 {caseLabel1} @TAXIODD_12886 {caseNum2} 36 {caseLabel2} @TAXIODD_12939 {caseNum3} 37 {caseLabel3} @TAXIODD_12992 {caseNum4} 38 {caseLabel4} @TAXIODD_13045 {caseNum5} 39 {caseLabel5} @TAXIODD_13098 {caseNum6} 40 {caseLabel6} @TAXIODD_13151 {caseNum7} 41 {caseLabel7} @TAXIODD_13204 {caseNum8} 42 {caseLabel8} @TAXIODD_13257 {caseNum9} 43 {caseLabel9} @TAXIODD_13310
switch_continued 44 {caseLabel1} @TAXIODD_13363 {caseNum2} 45 {caseLabel2} @TAXIODD_13416 {caseNum3} -1 {caseLabel3} @TAXIODD_13588 {caseNum4} -1 {caseLabel4} @TAXIODD_13588 {caseNum5} -1 {caseLabel5} @TAXIODD_13588 {caseNum6} -1 {caseLabel6} @TAXIODD_13588 {caseNum7} -1 {caseLabel7} @TAXIODD_13588 {caseNum8} -1 {caseLabel8} @TAXIODD_13588 {caseNum9} -1 {caseLabel9} @TAXIODD_13588

:TAXIODD_11084
print_now 'TX_VE1' {time} 5000 {flag} 1
121@ = 2491.3779
122@ = 2773.6079
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11137
print_now 'TX_VE2' {time} 5000 {flag} 1
121@ = 2899.2109
122@ = 2435.624
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11190
print_now 'TX_VE3' {time} 5000 {flag} 1
121@ = 2220.4951
122@ = 1838.4969
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11243
print_now 'TX_VE4' {time} 5000 {flag} 1
121@ = 2246.2019
122@ = 1896.5909
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11296
print_now 'TX_VE5' {time} 5000 {flag} 1
121@ = 2127.3069
122@ = 2355.7849
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11349
print_now 'TX_VE6' {time} 5000 {flag} 1
121@ = 2289.5891
122@ = 2415.939
123@ = 9.7773
goto @TAXIODD_13588

:TAXIODD_11402
print_now 'TX_VE7' {time} 5000 {flag} 1
121@ = 2636.2229
122@ = 2344.803
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11455
print_now 'TX_VE8' {time} 5000 {flag} 1
121@ = 1439.0
122@ = 754.0
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_11508
print_now 'TX_VE9' {time} 5000 {flag} 1
121@ = 1095.619
122@ = 1375.292
123@ = 9.7977
goto @TAXIODD_13588

:TAXIODD_11561
print_now 'TX_VE10' {time} 5000 {flag} 1
121@ = 1162.077
122@ = 1124.441
123@ = 9.8125
goto @TAXIODD_13588

:TAXIODD_11614
print_now 'TX_VE11' {time} 5000 {flag} 1
121@ = 1710.624
122@ = 1448.153
123@ = 9.6643
goto @TAXIODD_13588

:TAXIODD_11667
print_now 'TX_VE12' {time} 5000 {flag} 1
121@ = 2490.384
122@ = 2771.7019
123@ = 9.7964
goto @TAXIODD_13588

:TAXIODD_11720
print_now 'TX_VE13' {time} 5000 {flag} 1
121@ = 1465.187
122@ = 2773.9651
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_11773
print_now 'TX_VE14' {time} 5000 {flag} 1
121@ = 1436.145
122@ = 2670.385
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_11826
print_now 'TX_VE15' {time} 5000 {flag} 1
121@ = 1486.472
122@ = 2257.9451
123@ = 9.8128
goto @TAXIODD_13588

:TAXIODD_11879
print_now 'TX_VE16' {time} 5000 {flag} 1
121@ = 1694.188
122@ = 2200.3779
123@ = 9.8203
goto @TAXIODD_13588

:TAXIODD_11932
print_now 'TX_VE17' {time} 5000 {flag} 1
121@ = 1744.656
122@ = 2055.8101
123@ = 9.7309
goto @TAXIODD_13588

:TAXIODD_11985
print_now 'TX_VE18' {time} 5000 {flag} 1
121@ = 1840.554
122@ = 2169.6541
123@ = 9.801
goto @TAXIODD_13588

:TAXIODD_12038
print_now 'TX_VE19' {time} 5000 {flag} 1
121@ = 1928.3571
122@ = 2434.3101
123@ = 9.813
goto @TAXIODD_13588

:TAXIODD_12091
print_now 'TX_VE20' {time} 5000 {flag} 1
121@ = 2424.123
122@ = 2315.7451
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12144
print_now 'TX_VE21' {time} 5000 {flag} 1
121@ = 2431.1541
122@ = 2375.061
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12197
print_now 'TX_VE22' {time} 5000 {flag} 1
121@ = 2370.2981
122@ = 2467.925
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12250
print_now 'TX_VE23' {time} 5000 {flag} 1
121@ = 2272.043
122@ = 2286.7549
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12303
print_now 'TX_VE24' {time} 5000 {flag} 1
121@ = 2324.5129
122@ = 2155.0991
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12356
print_now 'TX_VE25' {time} 5000 {flag} 1
121@ = 2508.4719
122@ = 2131.2051
123@ = 9.8125
goto @TAXIODD_13588

:TAXIODD_12409
print_now 'TX_VE26' {time} 5000 {flag} 1
121@ = 2530.9141
122@ = 2083.355
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12462
print_now 'TX_VE27' {time} 5000 {flag} 1
121@ = 2546.51
122@ = 1968.6071
123@ = 9.8125
goto @TAXIODD_13588

:TAXIODD_12515
print_now 'TX_VE28' {time} 5000 {flag} 1
121@ = 2530.781
122@ = 1821.228
123@ = 9.8129
goto @TAXIODD_13588

:TAXIODD_12568
print_now 'TX_VE29' {time} 5000 {flag} 1
121@ = 2360.313
122@ = 2071.9961
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12621
print_now 'TX_VE30' {time} 5000 {flag} 1
121@ = 2035.457
122@ = 1912.2791
123@ = 11.1768
goto @TAXIODD_13588

:TAXIODD_12674
print_now 'TX_VE31' {time} 5000 {flag} 1
121@ = 2078.4141
122@ = 2041.116
123@ = 9.8203
goto @TAXIODD_13588

:TAXIODD_12727
print_now 'TX_VE32' {time} 5000 {flag} 1
121@ = 2159.0901
122@ = 1678.1121
123@ = 9.6953
goto @TAXIODD_13588

:TAXIODD_12780
print_now 'TX_VE33' {time} 5000 {flag} 1
121@ = 2028.496
122@ = 1711.744
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12833
print_now 'TX_VE34' {time} 5000 {flag} 1
121@ = 2076.406
122@ = 1519.038
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_12886
print_now 'TX_VE35' {time} 5000 {flag} 1
121@ = 2040.251
122@ = 1342.891
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12939
print_now 'TX_VE36' {time} 5000 {flag} 1
121@ = 2230.47
122@ = 1284.891
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_12992
print_now 'TX_VE37' {time} 5000 {flag} 1
121@ = 2074.51
122@ = 1162.833
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_13045
print_now 'TX_VE38' {time} 5000 {flag} 1
121@ = 2039.257
122@ = 1174.172
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_13098
print_now 'TX_VE39' {time} 5000 {flag} 1
121@ = 2040.2841
122@ = 1005.619
123@ = 9.6645
goto @TAXIODD_13588

:TAXIODD_13151
print_now 'TX_VE40' {time} 5000 {flag} 1
121@ = 1608.522
122@ = 1827.752
123@ = 9.8281
goto @TAXIODD_13588

:TAXIODD_13204
print_now 'TX_VE41' {time} 5000 {flag} 1
121@ = 2483.5139
122@ = 922.5383
123@ = 9.8203
goto @TAXIODD_13588

:TAXIODD_13257
print_now 'TX_VE42' {time} 5000 {flag} 1
121@ = 2544.668
122@ = 1016.168
123@ = 9.7593
goto @TAXIODD_13588

:TAXIODD_13310
print_now 'TX_VE43' {time} 5000 {flag} 1
121@ = 2491.7649
122@ = 1533.687
123@ = 9.6875
goto @TAXIODD_13588

:TAXIODD_13363
print_now 'TX_VE44' {time} 5000 {flag} 1
121@ = 2828.6489
122@ = 1292.2679
123@ = 9.8281
goto @TAXIODD_13588

:TAXIODD_13416
print_now 'TX_VE45' {time} 5000 {flag} 1
121@ = 2524.4929
122@ = 2297.584
123@ = 9.6797
goto @TAXIODD_13588

:TAXIODD_13469
if 
  34@ == 1
goto_if_false @TAXIODD_13494
110@ = 0

:TAXIODD_13494
write_debug "UNKNOWN_LAS_VENTURAS_TAXI_DESTINATION"
print_now 'TX_VE1' {time} 5000 {flag} 1
121@ = 2491.3779
122@ = 2773.6079
123@ = 9.764
goto @TAXIODD_13588

:TAXIODD_13588
return 

:TAXIODD_13590
if 
  34@ == 1
goto_if_false @TAXIODD_13630
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_13639

:TAXIODD_13630
110@ = generate_random_int_in_range 1 {max} 28

:TAXIODD_13639
switch_start 110@ {numCases} 27 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_15328 {caseNum1} 1 {caseLabel1} @TAXIODD_13897 {caseNum2} 2 {caseLabel2} @TAXIODD_13950 {caseNum3} 3 {caseLabel3} @TAXIODD_14003 {caseNum4} 4 {caseLabel4} @TAXIODD_14056 {caseNum5} 5 {caseLabel5} @TAXIODD_14109 {caseNum6} 6 {caseLabel6} @TAXIODD_14162 {caseNum7} 7 {caseLabel7} @TAXIODD_14215
switch_continued 8 {caseLabel1} @TAXIODD_14268 {caseNum2} 9 {caseLabel2} @TAXIODD_14321 {caseNum3} 10 {caseLabel3} @TAXIODD_14374 {caseNum4} 11 {caseLabel4} @TAXIODD_14427 {caseNum5} 12 {caseLabel5} @TAXIODD_14480 {caseNum6} 13 {caseLabel6} @TAXIODD_14533 {caseNum7} 14 {caseLabel7} @TAXIODD_14586 {caseNum8} 15 {caseLabel8} @TAXIODD_14639 {caseNum9} 16 {caseLabel9} @TAXIODD_14692
switch_continued 17 {caseLabel1} @TAXIODD_14745 {caseNum2} 18 {caseLabel2} @TAXIODD_14798 {caseNum3} 19 {caseLabel3} @TAXIODD_14851 {caseNum4} 20 {caseLabel4} @TAXIODD_14904 {caseNum5} 21 {caseLabel5} @TAXIODD_14957 {caseNum6} 22 {caseLabel6} @TAXIODD_15010 {caseNum7} 23 {caseLabel7} @TAXIODD_15063 {caseNum8} 24 {caseLabel8} @TAXIODD_15116 {caseNum9} 25 {caseLabel9} @TAXIODD_15169
switch_continued 26 {caseLabel1} @TAXIODD_15222 {caseNum2} 27 {caseLabel2} @TAXIODD_15275 {caseNum3} -1 {caseLabel3} @TAXIODD_15445 {caseNum4} -1 {caseLabel4} @TAXIODD_15445 {caseNum5} -1 {caseLabel5} @TAXIODD_15445 {caseNum6} -1 {caseLabel6} @TAXIODD_15445 {caseNum7} -1 {caseLabel7} @TAXIODD_15445 {caseNum8} -1 {caseLabel8} @TAXIODD_15445 {caseNum9} -1 {caseLabel9} @TAXIODD_15445

:TAXIODD_13897
print_now 'TX_SF1' {time} 5000 {flag} 1
121@ = -1974.876
122@ = 486.737
123@ = 30.371
goto @TAXIODD_15445

:TAXIODD_13950
print_now 'TX_SF2' {time} 5000 {flag} 1
121@ = -2044.4189
122@ = 500.771
123@ = 35.176
goto @TAXIODD_15445

:TAXIODD_14003
print_now 'TX_SF3' {time} 5000 {flag} 1
121@ = -2150.5811
122@ = 251.624
123@ = 35.176
goto @TAXIODD_15445

:TAXIODD_14056
print_now 'TX_SF4' {time} 5000 {flag} 1
121@ = -1988.5129
122@ = 138.31
123@ = 27.857
goto @TAXIODD_15445

:TAXIODD_14109
print_now 'TX_SF5' {time} 5000 {flag} 1
121@ = -2216.3989
122@ = -297.305
123@ = 35.202
goto @TAXIODD_15445

:TAXIODD_14162
print_now 'TX_SF6' {time} 5000 {flag} 1
121@ = -2726.428
122@ = -310.5865
123@ = 6.0313
goto @TAXIODD_15445

:TAXIODD_14215
print_now 'TX_SF7' {time} 5000 {flag} 1
121@ = -2704.6489
122@ = -3.5644
123@ = 3.1953
goto @TAXIODD_15445

:TAXIODD_14268
print_now 'TX_SF8' {time} 5000 {flag} 1
121@ = -2708.9971
122@ = 127.501
123@ = 4.584
goto @TAXIODD_15445

:TAXIODD_14321
print_now 'TX_SF9' {time} 5000 {flag} 1
121@ = -2751.905
122@ = 376.781
123@ = 4.584
goto @TAXIODD_15445

:TAXIODD_14374
print_now 'TX_SF10' {time} 5000 {flag} 1
121@ = -2415.75
122@ = 330.9614
123@ = 33.9765
goto @TAXIODD_15445

:TAXIODD_14427
print_now 'TX_SF11' {time} 5000 {flag} 1
121@ = -2454.926
122@ = 138.9312
123@ = 33.9765
goto @TAXIODD_15445

:TAXIODD_14480
print_now 'TX_SF12' {time} 5000 {flag} 1
121@ = -2499.2141
122@ = -16.6149
123@ = 24.6094
goto @TAXIODD_15445

:TAXIODD_14533
print_now 'TX_SF13' {time} 5000 {flag} 1
121@ = -2431.7351
122@ = -198.9205
123@ = 34.1563
goto @TAXIODD_15445

:TAXIODD_14586
print_now 'TX_SF14' {time} 5000 {flag} 1
121@ = -1815.151
122@ = 597.754
123@ = 38.528
goto @TAXIODD_15445

:TAXIODD_14639
print_now 'TX_SF15' {time} 5000 {flag} 1
121@ = -1530.776
122@ = 487.201
123@ = 9.44
goto @TAXIODD_15445

:TAXIODD_14692
print_now 'TX_SF16' {time} 5000 {flag} 1
121@ = -1745.08
122@ = 27.759
123@ = 5.452
goto @TAXIODD_15445

:TAXIODD_14745
print_now 'TX_SF17' {time} 5000 {flag} 1
121@ = -1414.557
122@ = -301.347
123@ = 14.637
goto @TAXIODD_15445

:TAXIODD_14798
print_now 'TX_SF18' {time} 5000 {flag} 1
121@ = -2618.467
122@ = 1432.752
123@ = 6.1016
goto @TAXIODD_15445

:TAXIODD_14851
print_now 'TX_SF19' {time} 5000 {flag} 1
121@ = -1904.765
122@ = 882.7293
123@ = 34.0156
goto @TAXIODD_15445

:TAXIODD_14904
print_now 'TX_SF20' {time} 5000 {flag} 1
121@ = -2134.729
122@ = 919.0828
123@ = 78.8438
goto @TAXIODD_15445

:TAXIODD_14957
print_now 'TX_SF21' {time} 5000 {flag} 1
121@ = -2361.8359
122@ = 993.0967
123@ = 49.6875
goto @TAXIODD_15445

:TAXIODD_15010
print_now 'TX_SF22' {time} 5000 {flag} 1
121@ = -2753.6899
122@ = 779.9389
123@ = 53.2422
goto @TAXIODD_15445

:TAXIODD_15063
print_now 'TX_SF23' {time} 5000 {flag} 1
121@ = -1714.717
122@ = 1332.564
123@ = 6.0391
goto @TAXIODD_15445

:TAXIODD_15116
print_now 'TX_SF24' {time} 5000 {flag} 1
121@ = -2251.033
122@ = 717.7971
123@ = 48.2969
goto @TAXIODD_15445

:TAXIODD_15169
print_now 'TX_SF25' {time} 5000 {flag} 1
121@ = -1807.813
122@ = 936.0701
123@ = 23.75
goto @TAXIODD_15445

:TAXIODD_15222
print_now 'TX_SF26' {time} 5000 {flag} 1
121@ = -1969.205
122@ = 1115.312
123@ = 52.6942
goto @TAXIODD_15445

:TAXIODD_15275
print_now 'TX_SF27' {time} 5000 {flag} 1
121@ = -2540.593
122@ = 1222.188
123@ = 36.4283
goto @TAXIODD_15445

:TAXIODD_15328
if 
  34@ == 1
goto_if_false @TAXIODD_15353
110@ = 0

:TAXIODD_15353
write_debug "UNKNOWN_SAN_FIERRO_TAXI_DESTINATION"
print_now 'TX_SF1' {time} 5000 {flag} 1
121@ = -1974.876
122@ = 486.737
123@ = 30.371
goto @TAXIODD_15445

:TAXIODD_15445
return 

:TAXIODD_15447
write_debug "NO_RED_COUNTY_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15513
110@ = 0
goto @TAXIODD_15543

:TAXIODD_15513
write_debug "CHOOSING_LOS_SANTOS"
gosub @TAXIODD_8391

:TAXIODD_15543
return 

:TAXIODD_15545
write_debug "NO_FLINT_COUNTY_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15613
110@ = 0
goto @TAXIODD_15643

:TAXIODD_15613
write_debug "CHOOSING_SAN_FIERRO"
gosub @TAXIODD_13590

:TAXIODD_15643
return 

:TAXIODD_15645
write_debug "NO_WHETSTONE_DESTINATIONS_YET"
if 
  34@ == 1
goto_if_false @TAXIODD_15710
110@ = 0
goto @TAXIODD_15740

:TAXIODD_15710
write_debug "CHOOSING_SAN_FIERRO"
gosub @TAXIODD_13590

:TAXIODD_15740
return 

:TAXIODD_15742
if 
  34@ == 1
goto_if_false @TAXIODD_15782
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_15791

:TAXIODD_15782
110@ = generate_random_int_in_range 1 {max} 3

:TAXIODD_15791
switch_start 110@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_15960 {caseNum1} 1 {caseLabel1} @TAXIODD_15854 {caseNum2} 2 {caseLabel2} @TAXIODD_15907 {caseNum3} -1 {caseLabel3} @TAXIODD_16080 {caseNum4} -1 {caseLabel4} @TAXIODD_16080 {caseNum5} -1 {caseLabel5} @TAXIODD_16080 {caseNum6} -1 {caseLabel6} @TAXIODD_16080 {caseNum7} -1 {caseLabel7} @TAXIODD_16080

:TAXIODD_15854
print_now 'TX_TR1' {time} 5000 {flag} 1
121@ = -1934.078
122@ = 2382.762
123@ = 48.5
goto @TAXIODD_16080

:TAXIODD_15907
print_now 'TX_TR2' {time} 5000 {flag} 1
121@ = -846.9434
122@ = 1528.1541
123@ = 20.551
goto @TAXIODD_16080

:TAXIODD_15960
if 
  34@ == 1
goto_if_false @TAXIODD_15985
110@ = 0

:TAXIODD_15985
write_debug "UNKNOWN_TIERRA_ROBADA_TAXI_DESTINATION"
print_now 'TX_TR1' {time} 5000 {flag} 1
121@ = -1934.078
122@ = 2382.762
123@ = 48.5
goto @TAXIODD_16080

:TAXIODD_16080
return 

:TAXIODD_16082
if 
  34@ == 1
goto_if_false @TAXIODD_16122
set_lvar_int_to_lvar_int 110@ = 148@
110@ += 1
goto @TAXIODD_16131

:TAXIODD_16122
110@ = generate_random_int_in_range 1 {max} 6

:TAXIODD_16131
switch_start 110@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_16459 {caseNum1} 1 {caseLabel1} @TAXIODD_16194 {caseNum2} 2 {caseLabel2} @TAXIODD_16247 {caseNum3} 3 {caseLabel3} @TAXIODD_16300 {caseNum4} 4 {caseLabel4} @TAXIODD_16353 {caseNum5} 5 {caseLabel5} @TAXIODD_16406 {caseNum6} -1 {caseLabel6} @TAXIODD_16577 {caseNum7} -1 {caseLabel7} @TAXIODD_16577

:TAXIODD_16194
print_now 'TX_BC1' {time} 5000 {flag} 1
121@ = 689.646
122@ = 1943.252
123@ = 4.539
goto @TAXIODD_16577

:TAXIODD_16247
print_now 'TX_BC2' {time} 5000 {flag} 1
121@ = -904.3732
122@ = 2007.6429
123@ = 59.9141
goto @TAXIODD_16577

:TAXIODD_16300
print_now 'TX_BC3' {time} 5000 {flag} 1
121@ = 392.0225
122@ = 2547.8059
123@ = 15.5568
goto @TAXIODD_16577

:TAXIODD_16353
print_now 'TX_BC4' {time} 5000 {flag} 1
121@ = 832.8276
122@ = 1705.429
123@ = 4.8587
goto @TAXIODD_16577

:TAXIODD_16406
print_now 'TX_BC5' {time} 5000 {flag} 1
121@ = -84.9834
122@ = 1358.616
123@ = 9.3644
goto @TAXIODD_16577

:TAXIODD_16459
if 
  34@ == 1
goto_if_false @TAXIODD_16484
110@ = 0

:TAXIODD_16484
write_debug "UNKNOWN_BONE_COUNTY_TAXI_DESTINATION"
print_now 'TX_BC1' {time} 5000 {flag} 1
121@ = 689.646
122@ = 1943.252
123@ = 4.539
goto @TAXIODD_16577

:TAXIODD_16577
return 

:TAXIODD_16579
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @TAXIODD_16628
48@ += 1
if 
  48@ > 2
goto_if_false @TAXIODD_16626
48@ = 0

:TAXIODD_16626
clear_all_view_variables 

:TAXIODD_16628
if 
  48@ == 1
goto_if_false @TAXIODD_16803
set_var_int_to_lvar_int $Taxiodd_view_debug = 38@
set_var_int_to_lvar_int $8203 = 39@
set_var_int_to_lvar_int $8204 = 47@
set_var_int_to_var_int $8205 = $taxi_passed
set_var_int_to_lvar_int $8206 = 146@
$8207 = 0
$8208 = 0
$8209 = 0
view_integer_variable $Taxiodd_view_debug {_p2} "M_STAGE"
view_integer_variable $8203 {_p2} "M_GOALS"
view_integer_variable $8206 {_p2} "CLEANUP_TESTING"
view_integer_variable $8204 {_p2} "M_MISSION_TIMER"
view_integer_variable $8205 {_p2} "TOTAL_TAXI_PASSED"

:TAXIODD_16803
if 
  48@ == 2
goto_if_false @TAXIODD_16821

:TAXIODD_16821
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @TAXIODD_16843
40@ = 1

:TAXIODD_16843
if 
is_ps2_keyboard_key_just_pressed 80
goto_if_false @TAXIODD_16931
if 
  41@ == 0
goto_if_false @TAXIODD_16906
41@ = 1
write_debug "LEVEL_PAUSED"
goto @TAXIODD_16931

:TAXIODD_16906
41@ = 0
write_debug "LEVEL_UNPAUSED"

:TAXIODD_16931
return 

:TAXIODD_16933
if 
  not is_ps2_keyboard_key_just_pressed 74
goto_if_false @TAXIODD_16950
return 

:TAXIODD_16950
if 
  38@ == 2
goto_if_false @TAXIODD_17007
clear_area 121@ {y} 122@ {z} 123@ {radius} 10.0 {clearParticles} False
set_char_coordinates $scplayer {x} 121@ {y} 122@ {z} 123@
39@ = 1

:TAXIODD_17007
return 

:TAXIODD_17009
147@ = 0
148@ = 0

:TAXIODD_17023
110@ = 0
switch_start 147@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @TAXIODD_17533 {caseNum1} 0 {caseLabel1} @TAXIODD_17158 {caseNum2} 1 {caseLabel2} @TAXIODD_17204 {caseNum3} 2 {caseLabel3} @TAXIODD_17252 {caseNum4} 3 {caseLabel4} @TAXIODD_17298 {caseNum5} 4 {caseLabel5} @TAXIODD_17344 {caseNum6} 5 {caseLabel6} @TAXIODD_17392 {caseNum7} 6 {caseLabel7} @TAXIODD_17437
switch_continued 7 {caseLabel1} @TAXIODD_17486 {caseNum2} -1 {caseLabel2} @TAXIODD_17540 {caseNum3} -1 {caseLabel3} @TAXIODD_17540 {caseNum4} -1 {caseLabel4} @TAXIODD_17540 {caseNum5} -1 {caseLabel5} @TAXIODD_17540 {caseNum6} -1 {caseLabel6} @TAXIODD_17540 {caseNum7} -1 {caseLabel7} @TAXIODD_17540 {caseNum8} -1 {caseLabel8} @TAXIODD_17540 {caseNum9} -1 {caseLabel9} @TAXIODD_17540

:TAXIODD_17158
gosub @TAXIODD_8391
if 
  110@ <> 0
goto_if_false @TAXIODD_17197
write_debug "LOS_SANTOS"

:TAXIODD_17197
goto @TAXIODD_17540

:TAXIODD_17204
gosub @TAXIODD_10647
if 
  110@ <> 0
goto_if_false @TAXIODD_17245
write_debug "LAS_VENTURAS"

:TAXIODD_17245
goto @TAXIODD_17540

:TAXIODD_17252
gosub @TAXIODD_13590
if 
  110@ <> 0
goto_if_false @TAXIODD_17291
write_debug "SAN_FIERRO"

:TAXIODD_17291
goto @TAXIODD_17540

:TAXIODD_17298
gosub @TAXIODD_15447
if 
  110@ <> 0
goto_if_false @TAXIODD_17337
write_debug "RED_COUNTY"

:TAXIODD_17337
goto @TAXIODD_17540

:TAXIODD_17344
gosub @TAXIODD_15545
if 
  110@ <> 0
goto_if_false @TAXIODD_17385
write_debug "FLINT_COUNTY"

:TAXIODD_17385
goto @TAXIODD_17540

:TAXIODD_17392
gosub @TAXIODD_15645
if 
  110@ <> 0
goto_if_false @TAXIODD_17430
write_debug "WHETSTONE"

:TAXIODD_17430
goto @TAXIODD_17540

:TAXIODD_17437
gosub @TAXIODD_15742
if 
  110@ <> 0
goto_if_false @TAXIODD_17479
write_debug "TIERRA_ROBADA"

:TAXIODD_17479
goto @TAXIODD_17540

:TAXIODD_17486
gosub @TAXIODD_16082
if 
  110@ <> 0
goto_if_false @TAXIODD_17526
write_debug "BONE_COUNTY"

:TAXIODD_17526
goto @TAXIODD_17540

:TAXIODD_17533
147@ = -1

:TAXIODD_17540
if 
  110@ == 0
goto_if_false @TAXIODD_17583
wait 0
147@ += 1
148@ = 0
goto @TAXIODD_17023

:TAXIODD_17583
write_debug_with_int "J_A_D___ID" {number} 110@

:TAXIODD_17600
if 
  not is_ps2_keyboard_key_just_pressed 74
goto_if_false @TAXIODD_17684
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @TAXIODD_17644
147@ += 1
goto @TAXIODD_17023

:TAXIODD_17644
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @TAXIODD_17673
148@ += 1
goto @TAXIODD_17023

:TAXIODD_17673
wait 0
goto @TAXIODD_17600

:TAXIODD_17684
if 
  not is_char_dead $scplayer
goto_if_false @TAXIODD_17728
97@ = add_blip_for_coord 121@ {y} 122@ {z} 123@
set_char_coordinates $scplayer {x} 121@ {y} 122@ {z} 123@

:TAXIODD_17728
148@ += 1
write_debug "PRESS_N_FOR_NEXT_FARE"

:TAXIODD_17760
if 
  not is_ps2_keyboard_key_just_pressed 78
goto_if_false @TAXIODD_17786
wait 0
goto @TAXIODD_17760

:TAXIODD_17786
remove_blip 97@
wait 0
goto @TAXIODD_17023
return 

:TAXIODD_17804
43@ += 1
if 
  43@ > 9
goto_if_false @TAXIODD_17836
43@ = 0

:TAXIODD_17836
return 

:TAXIODD_17838
44@ = get_game_timer 
set_lvar_int_to_lvar_int 46@ = 44@
sub_int_lvar_from_int_lvar 46@ -= 45@
set_lvar_int_to_lvar_int 45@ = 44@
add_int_lvar_to_int_lvar 47@ += 46@
return 

:TAXIODD_17877
38@ += 1
39@ = 0
TIMERA = 0
TIMERB = 0
return 

:TAXIODD_17907
38@ = 1
39@ = 0
TIMERA = 0
TIMERB = 0
return 

:TAXIODD_17937
return 

:TAXIODD_17939
if 
  not is_player_playing $player1
goto_if_false @TAXIODD_17966
wait 0
goto @TAXIODD_17939

:TAXIODD_17966
gosub @TAXIODD_18112
gosub @TAXIODD_18148
if 
  $done_taxi_help == 0
goto_if_false @TAXIODD_18016
print_help 'TX_H1'
$done_taxi_help = 1

:TAXIODD_18016
gosub @TAXIODD_2868
109@ = 0
112@ = 0
113@ = 0
$g_Taxiodd_faresKM = 0
display_onscreen_counter_with_string $g_Taxiodd_faresKM {display} CounterDisplay.Number {text} 'TX_TOTL'
$g_Taxiodd_timerKM = 0
114@ = 5
115@ = 500
94@ = -1
95@ = -1
gosub @TAXIODD_17877
return 

:TAXIODD_18112
request_model #CR_AMMOBOX
load_all_models_now 

:TAXIODD_18119
if 
  not has_model_loaded #CR_AMMOBOX
goto_if_false @TAXIODD_18146
wait 0
goto @TAXIODD_18119

:TAXIODD_18146
return 

:TAXIODD_18148
request_animation "MISC"

:TAXIODD_18156
if 
  not has_animation_loaded "MISC"
goto_if_false @TAXIODD_18186
wait 0
goto @TAXIODD_18156

:TAXIODD_18186
return 

:TAXIODD_18188
if 
  132@ == 1
goto_if_false @TAXIODD_18228
set_lvar_int_to_lvar_int 51@ = 111@
51@ /= 16
goto @TAXIODD_18243

:TAXIODD_18228
set_lvar_int_to_lvar_int 51@ = 111@
51@ /= 40

:TAXIODD_18243
set_lvar_int_to_lvar_int 52@ = 51@
add_score $player1 {money} 51@
print_with_number_big 'TX_PAY' {num} 51@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
add_int_lvar_to_int_lvar 109@ += 51@
$g_Taxiodd_faresKM += 1
$taxi_passed += 1
142@ = 0
if 
  is_int_var_equal_to_int_lvar $g_Taxiodd_faresKM == 114@
goto_if_false @TAXIODD_18414
print_with_2_numbers_big 'TX_SEQ' {num1} $g_Taxiodd_faresKM {num2} 115@ {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 115@
add_int_lvar_to_int_lvar 109@ += 115@
142@ = 1
add_int_lvar_to_int_lvar 52@ += 115@
114@ += 5
115@ += 500

:TAXIODD_18414
if and
  $done_taxiodd_progress == 0
  $taxi_passed > 49
goto_if_false @TAXIODD_18518
register_oddjob_mission_passed 
player_made_progress 1
play_mission_passed_tune 2
print_big 'TX_DONE' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_now 'TX_NTRO' {time} 7000 {flag} 1
144@ = 1
set_lvar_int_to_lvar_int 106@ = 47@
106@ += 7000
$done_taxiodd_progress = 1
goto @TAXIODD_18679

:TAXIODD_18518
if 
  $g_Taxiodd_bonusKM > 0
goto_if_false @TAXIODD_18611
if 
  142@ == 1
goto_if_false @TAXIODD_18577
print_big 'TX_FAST' {time} 5000 {style} TextStyle.MiddleSmaller
goto @TAXIODD_18593

:TAXIODD_18577
print_big 'TX_FAST' {time} 5000 {style} TextStyle.MiddleSmallerHigher

:TAXIODD_18593
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiTip
goto @TAXIODD_18679

:TAXIODD_18611
if 
  142@ == 1
goto_if_false @TAXIODD_18652
print_big 'TX_WIN' {time} 5000 {style} TextStyle.MiddleSmaller
goto @TAXIODD_18668

:TAXIODD_18652
print_big 'TX_WIN' {time} 5000 {style} TextStyle.MiddleSmallerHigher

:TAXIODD_18668
116@ = set_char_say_context 88@ {phrase} SpeechId.TaxiSuccess

:TAXIODD_18679
increment_int_stat_no_message StatId.PassengersDeliveredInTaxi {value} 1
increment_int_stat_no_message StatId.TaxiMoneyMade {value} 52@
return 

:TAXIODD_18696
$g_Taxiodd_timerKM += 10000
clear_onscreen_counter $g_Taxiodd_bonusKM
132@ = 0
125@ = 0
gosub @TAXIODD_17907
return 

:TAXIODD_18732
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_18760
mark_char_as_no_longer_needed 88@
146@ -= 1

:TAXIODD_18760
remove_blip 96@
remove_blip 97@
clear_onscreen_counter $g_Taxiodd_bonusKM
132@ = 0
126@ = 0
gosub @TAXIODD_17907
return 

:TAXIODD_18798
print_big 'TX_END' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_number_big 'TX_PAY' {num} 109@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
clear_small_prints 
switch_start 108@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @TAXIODD_18967 {caseNum1} 1 {caseLabel1} @TAXIODD_18898 {caseNum2} 2 {caseLabel2} @TAXIODD_18921 {caseNum3} 3 {caseLabel3} @TAXIODD_18944 {caseNum4} -1 {caseLabel4} @TAXIODD_18967 {caseNum5} -1 {caseLabel5} @TAXIODD_18967 {caseNum6} -1 {caseLabel6} @TAXIODD_18967 {caseNum7} -1 {caseLabel7} @TAXIODD_18967

:TAXIODD_18898
print_now 'TX_F1' {time} 5000 {flag} 1
goto @TAXIODD_18967

:TAXIODD_18921
print_now 'TX_F2' {time} 5000 {flag} 1
goto @TAXIODD_18967

:TAXIODD_18944
print_now 'TX_F3' {time} 5000 {flag} 1
goto @TAXIODD_18967

:TAXIODD_18967
clear_help 
return 

:TAXIODD_18971
if 
  not is_char_dead 88@
goto_if_false @TAXIODD_19048
clear_look_at 88@
if 
  is_car_dead 89@
goto_if_false @TAXIODD_19022
gosub @TAXIODD_6399
goto @TAXIODD_19048

:TAXIODD_19022
if 
  not is_char_in_car 88@ {vehicle} 89@
goto_if_false @TAXIODD_19048
gosub @TAXIODD_6399

:TAXIODD_19048
mark_car_as_no_longer_needed 89@
mark_char_as_no_longer_needed 88@
49@ = 0

:TAXIODD_19065
mark_object_as_no_longer_needed 90@(49@,4i)
49@ += 1
  49@ >= 4
goto_if_false @TAXIODD_19065
remove_blip 96@
remove_blip 97@
49@ = 0

:TAXIODD_19112
remove_blip 98@(49@,3i)
49@ += 1
  49@ >= 3
goto_if_false @TAXIODD_19112
clear_onscreen_counter $g_Taxiodd_faresKM
clear_onscreen_timer $g_Taxiodd_timerKM
clear_onscreen_counter $g_Taxiodd_bonusKM
remove_animation "MISC"
mark_model_as_no_longer_needed #CR_AMMOBOX
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_wanted_multiplier 1.0
switch_emergency_services True
switch_random_trains True
set_var_int_to_var_int $stop_gargae_for_neil = $nHoldModGarageState
$timer_mobile_start = get_game_timer 
$flag_player_on_oddjob = 0
$onmission = 0
$flag_taxiodd_mission_launched = 0
mission_has_finished 
return 

//-------------Mission 122---------------
// Originally: Paramedic Sub-Mission

:AMBULAN
gosub @AMBULAN_16
gosub @AMBULAN_13127
terminate_this_script 

:AMBULAN_16
$onmission = 1
$flag_player_on_ambulance_mission = 1
script_name 'AMBULAN'
if 
  $done_ambulance_progress == 0
goto_if_false @AMBULAN_61
register_mission_given 

:AMBULAN_61
wait 0
set_script_limit_to_gang_size 0
if 
  is_char_in_any_car $scplayer
goto_if_false @AMBULAN_221
213@ = store_car_char_is_in $scplayer
if 
  not is_car_passenger_seat_free 213@ {seat} SeatId.BikeRear
goto_if_false @AMBULAN_134
81@ = get_char_in_car_passenger_seat 213@ {seat} SeatId.BikeRear
task_leave_car_immediately 81@ {vehicle} 213@
mark_char_as_no_longer_needed 81@

:AMBULAN_134
if 
  not is_car_passenger_seat_free 213@ {seat} SeatId.RearLeft
goto_if_false @AMBULAN_175
81@ = get_char_in_car_passenger_seat 213@ {seat} SeatId.RearLeft
task_leave_car_immediately 81@ {vehicle} 213@
mark_char_as_no_longer_needed 81@

:AMBULAN_175
if 
  not is_car_passenger_seat_free 213@ {seat} SeatId.RearRight
goto_if_false @AMBULAN_216
81@ = get_char_in_car_passenger_seat 213@ {seat} SeatId.RearRight
task_leave_car_immediately 81@ {vehicle} 213@
mark_char_as_no_longer_needed 81@

:AMBULAN_216
mark_car_as_no_longer_needed 213@

:AMBULAN_221
235@ = load_char_decision_maker DecisionMakerType.Empty
load_mission_text 'AMBULAE'
show_update_stats False
$ped_time_limit = 20000
34@ = 0
39@ = 0
40@ = 0
41@ = 0
42@ = 0
43@ = 0
37@ = 1
36@ = 0
83@ = 0
86@ = 0
89@ = 0
92@ = 0
95@ = 0
58@ = 0
61@ = 0
64@ = 0
67@ = 0
70@ = 0
73@ = 0
76@ = 0
46@ = 0
189@ = 10.0
$db_ambulance_level = 1
48@ = 0
49@ = 0
44@ = 0
45@ = 0
51@ = 0
52@ = 0
53@ = 0
50@ = 0
55@ = 0
79@ = 0
176@ = 0.0
177@ = 0.0
178@ = 0.0
99@ = 0

:AMBULAN_522
if 
  13 > 99@
goto_if_false @AMBULAN_658
100@(99@,13i) = 0
113@(99@,13f) = 0.0
126@(99@,13f) = 0.0
139@(99@,13f) = 0.0
152@(99@,13i) = 0
if 
  10 > 99@
goto_if_false @AMBULAN_644
214@(99@,10i) = 0
224@(99@,10i) = 0

:AMBULAN_644
99@ += 1
goto @AMBULAN_522

:AMBULAN_658
99@ = 0
96@ = 0
97@ = 0
234@ = 0
$amb_free_seats = 0
238@ = 0.0

:AMBULAN_703
if 
  10 > 99@
goto_if_false @AMBULAN_836
if 
  is_relationship_set RelationshipType.Hate {ofPedType} 99@ {toPedType} PedType.Player1
goto_if_false @AMBULAN_775
224@(99@,10i) = 1
234@ += 1
clear_relationship RelationshipType.Hate {ofPedType} 99@ {toPedType} PedType.Player1
goto @AMBULAN_822

:AMBULAN_775
if 
  is_relationship_set RelationshipType.Dislike {ofPedType} 99@ {toPedType} PedType.Player1
goto_if_false @AMBULAN_822
214@(99@,10i) = 1
234@ += 1
clear_relationship RelationshipType.Dislike {ofPedType} 99@ {toPedType} PedType.Player1

:AMBULAN_822
99@ += 1
goto @AMBULAN_703

:AMBULAN_836
99@ = 0
print_now 'ATUTOR2' {time} 3000 {flag} 1
set_wanted_multiplier 0.5
201@, 202@, 203@ = get_char_coordinates $scplayer
212@ = 9999999.0
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @AMBULAN_1470
if 
  $Return_cities_passed == 0
goto_if_false @AMBULAN_1130
204@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 2004.96 {toY} -1442.96 {toZ} 12.56
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_997
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_997
205@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1180.85 {toY} -1325.5699 {toZ} 12.58
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1060
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1060
208@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1244.437 {toY} 331.2261 {toZ} 18.5547
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1123
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1123
goto @AMBULAN_1463

:AMBULAN_1130
if 
  $Return_cities_passed == 1
goto_if_false @AMBULAN_1463
204@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 2004.96 {toY} -1442.96 {toZ} 12.56
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_1211
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_1211
205@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1180.85 {toY} -1325.5699 {toZ} 12.58
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1274
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1274
208@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1244.437 {toY} 331.2261 {toZ} 18.5547
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1337
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1337
209@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2198.6931 {toY} -2290.105 {toZ} 29.625
if 
  is_float_lvar_greater_than_float_lvar 212@ > 209@
goto_if_false @AMBULAN_1400
set_lvar_float_to_lvar_float 212@ = 209@
213@ = 6

:AMBULAN_1400
210@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2670.2849 {toY} 616.4364 {toZ} 13.4531
if 
  is_float_lvar_greater_than_float_lvar 212@ > 210@
goto_if_false @AMBULAN_1463
set_lvar_float_to_lvar_float 212@ = 210@
213@ = 7

:AMBULAN_1463
goto @AMBULAN_1974

:AMBULAN_1470
204@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 2004.96 {toY} -1442.96 {toZ} 12.56
if 
  is_float_lvar_greater_than_float_lvar 212@ > 204@
goto_if_false @AMBULAN_1533
set_lvar_float_to_lvar_float 212@ = 204@
213@ = 1

:AMBULAN_1533
205@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1180.85 {toY} -1325.5699 {toZ} 12.58
if 
  is_float_lvar_greater_than_float_lvar 212@ > 205@
goto_if_false @AMBULAN_1596
set_lvar_float_to_lvar_float 212@ = 205@
213@ = 2

:AMBULAN_1596
206@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -316.3832 {toY} 1056.045 {toZ} 18.7344
if 
  is_float_lvar_greater_than_float_lvar 212@ > 206@
goto_if_false @AMBULAN_1659
set_lvar_float_to_lvar_float 212@ = 206@
213@ = 3

:AMBULAN_1659
207@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -1514.823 {toY} 2527.1189 {toZ} 54.7443
if 
  is_float_lvar_greater_than_float_lvar 212@ > 207@
goto_if_false @AMBULAN_1722
set_lvar_float_to_lvar_float 212@ = 207@
213@ = 4

:AMBULAN_1722
208@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1244.437 {toY} 331.2261 {toZ} 18.5547
if 
  is_float_lvar_greater_than_float_lvar 212@ > 208@
goto_if_false @AMBULAN_1785
set_lvar_float_to_lvar_float 212@ = 208@
213@ = 5

:AMBULAN_1785
209@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2198.6931 {toY} -2290.105 {toZ} 29.625
if 
  is_float_lvar_greater_than_float_lvar 212@ > 209@
goto_if_false @AMBULAN_1848
set_lvar_float_to_lvar_float 212@ = 209@
213@ = 6

:AMBULAN_1848
210@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} -2670.2849 {toY} 616.4364 {toZ} 13.4531
if 
  is_float_lvar_greater_than_float_lvar 212@ > 210@
goto_if_false @AMBULAN_1911
set_lvar_float_to_lvar_float 212@ = 210@
213@ = 7

:AMBULAN_1911
211@ = get_distance_between_coords_3d 201@ {fromY} 202@ {fromZ} 203@ {toX} 1578.446 {toY} 1770.682 {toZ} 9.8358
if 
  is_float_lvar_greater_than_float_lvar 212@ > 211@
goto_if_false @AMBULAN_1974
set_lvar_float_to_lvar_float 212@ = 211@
213@ = 8

:AMBULAN_1974
switch_start 213@ {numCases} 8 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_2958 {caseNum1} 1 {caseLabel1} @AMBULAN_2102 {caseNum2} 2 {caseLabel2} @AMBULAN_2209 {caseNum3} 3 {caseLabel3} @AMBULAN_2316 {caseNum4} 4 {caseLabel4} @AMBULAN_2423 {caseNum5} 5 {caseLabel5} @AMBULAN_2530 {caseNum6} 6 {caseLabel6} @AMBULAN_2637 {caseNum7} 7 {caseLabel7} @AMBULAN_2744
switch_continued 8 {caseLabel1} @AMBULAN_2851 {caseNum2} -1 {caseLabel2} @AMBULAN_3065 {caseNum3} -1 {caseLabel3} @AMBULAN_3065 {caseNum4} -1 {caseLabel4} @AMBULAN_3065 {caseNum5} -1 {caseLabel5} @AMBULAN_3065 {caseNum6} -1 {caseLabel6} @AMBULAN_3065 {caseNum7} -1 {caseLabel7} @AMBULAN_3065 {caseNum8} -1 {caseLabel8} @AMBULAN_3065 {caseNum9} -1 {caseLabel9} @AMBULAN_3065

:AMBULAN_2102
167@ = 2004.96
168@ = -1442.96
169@ = 12.56
173@ = 2026.0
174@ = -1423.0
175@ = 17.0
197@ = 1200.0
198@ = 2930.0
199@ = -2213.0
200@ = -1012.0
goto @AMBULAN_3065

:AMBULAN_2209
167@ = 1180.85
168@ = -1325.5699
169@ = 12.58
173@ = 1172.0
174@ = -1324.0
175@ = 15.0
197@ = 450.0
198@ = 1800.0
199@ = -1900.0
200@ = -870.0
goto @AMBULAN_3065

:AMBULAN_2316
167@ = -316.3832
168@ = 1056.045
169@ = 18.7344
173@ = -316.0
174@ = 1050.0
175@ = 20.0
197@ = -860.0
198@ = 185.0
199@ = 749.0
200@ = 1616.0
goto @AMBULAN_3065

:AMBULAN_2423
167@ = -1514.006
168@ = 2532.0129
169@ = 54.7443
173@ = -1515.0
174@ = 2520.0
175@ = 56.0
197@ = -1684.0
198@ = -702.0
199@ = 1465.0
200@ = 2749.8999
goto @AMBULAN_3065

:AMBULAN_2530
167@ = 1225.0
168@ = 302.0
169@ = 20.0
173@ = 1227.0
174@ = 289.5
175@ = 22.64
197@ = 100.0
198@ = 2604.0
199@ = -720.0
200@ = 465.0
goto @AMBULAN_3065

:AMBULAN_2637
167@ = -2198.6931
168@ = -2290.105
169@ = 29.625
173@ = -2204.728
174@ = -2296.302
175@ = 29.6181
197@ = -2598.0
198@ = -1500.0
199@ = -2700.0
200@ = -1700.0
goto @AMBULAN_3065

:AMBULAN_2744
167@ = -2670.2849
168@ = 616.4364
169@ = 13.4531
173@ = -2677.0
174@ = 632.0
175@ = 14.0
197@ = -2820.0
198@ = -1784.0
199@ = 29.0
200@ = 1180.0
goto @AMBULAN_3065

:AMBULAN_2851
167@ = 1578.446
168@ = 1770.682
169@ = 9.8358
173@ = 1582.0
174@ = 1765.0
175@ = 11.0
197@ = 1000.0
198@ = 2600.0
199@ = 772.0
200@ = 2400.0
goto @AMBULAN_3065

:AMBULAN_2958
167@ = 2004.96
168@ = -1442.96
169@ = 12.56
173@ = 2026.0
174@ = -1423.0
175@ = 17.0
197@ = 1200.0
198@ = 2930.0
199@ = -2213.0
200@ = -1012.0
goto @AMBULAN_3065

:AMBULAN_3065
display_nth_onscreen_counter_with_string $amb_free_seats {display} CounterDisplay.Number {slot} 2 {text} 'AMBSEAT'
display_nth_onscreen_counter_with_string $db_ambulance_level {display} CounterDisplay.Number {slot} 1 {text} 'ALEV'
if 
  $onmission == 0
goto_if_false @AMBULAN_3133
47@ = add_blip_for_coord 167@ {y} 168@ {z} 169@

:AMBULAN_3133
clear_onscreen_timer $ped_time_limit

:AMBULAN_3138
if 
  is_int_lvar_greater_than_int_lvar 37@ > 36@
goto_if_false @AMBULAN_3339
gosub @AMBULAN_7797
set_lvar_float_to_lvar_float 113@(36@,13f) = 176@
set_lvar_float_to_lvar_float 126@(36@,13f) = 177@
set_lvar_float_to_lvar_float 139@(36@,13f) = 178@
if 
  79@ == 1
goto_if_false @AMBULAN_3225
goto @AMBULAN_13127

:AMBULAN_3225
gosub @AMBULAN_10905
set_lvar_int_to_lvar_int 152@(36@,13i) = 35@
if 
  152@(36@,13i) > 45000
goto_if_false @AMBULAN_3290
152@(36@,13i) = 45000
goto @AMBULAN_3325

:AMBULAN_3290
if 
  15000 > 152@(36@,13i)
goto_if_false @AMBULAN_3325
152@(36@,13i) = 15000

:AMBULAN_3325
36@ += 1
goto @AMBULAN_3138

:AMBULAN_3339
gosub @AMBULAN_3715
if 
  37@ > 3
goto_if_false @AMBULAN_3378
45@ = 1
goto @AMBULAN_3385

:AMBULAN_3378
45@ = 0

:AMBULAN_3385
51@ = 0
if 
  2 > 37@
goto_if_false @AMBULAN_3521
set_lvar_int_to_lvar_int 48@ = 35@
div_int_lvar_by_int_lvar 48@ /= 37@
48@ /= 2
set_lvar_int_to_lvar_int 38@ = 37@
38@ += 1
mult_int_lvar_by_int_lvar 48@ *= 38@
add_int_lvar_to_int_var $ped_time_limit += 48@
div_int_var_by_int_lvar $ped_time_limit /= 37@
set_lvar_int_to_lvar_int 48@ = 35@
48@ /= 3
if 
  48@ > 15000
goto_if_false @AMBULAN_3514
48@ = 15000

:AMBULAN_3514
goto @AMBULAN_3598

:AMBULAN_3521
set_lvar_int_to_var_int 48@ = $ped_time_limit
div_int_lvar_by_int_lvar 48@ /= 37@
48@ /= 2
set_lvar_int_to_lvar_int 38@ = 37@
38@ += 1
mult_int_lvar_by_int_lvar 48@ *= 38@
add_int_lvar_to_int_var $ped_time_limit += 48@
div_int_var_by_int_lvar $ped_time_limit /= 37@
set_lvar_int_to_var_int 48@ = $ped_time_limit
48@ /= 3

:AMBULAN_3598
if 
  60000 > $ped_time_limit
goto_if_false @AMBULAN_3629
$ped_time_limit = 60000

:AMBULAN_3629
if 
  25000 > 48@
goto_if_false @AMBULAN_3663
48@ = 25000
goto @AMBULAN_3694

:AMBULAN_3663
if 
  48@ > 60000
goto_if_false @AMBULAN_3694
48@ = 60000

:AMBULAN_3694
239@ = 0
240@ = 0
goto @AMBULAN_11058

:AMBULAN_3715
if 
  37@ > 0
goto_if_false @AMBULAN_3842
81@ = create_random_char 113@ {y} 126@ {z} 139@
freeze_char_position_and_dont_load_collision 81@ {state} True
set_load_collision_for_char_flag 81@ {state} False
83@ = 1
set_char_decision_maker 81@ {handleOrTemplate} 235@
set_char_bleeding 81@ {state} True
set_char_only_damaged_by_player 81@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 81@ {heading} 188@
82@ = add_blip_for_char 81@
set_blip_as_friendly 82@ {state} True
change_blip_scale 82@ {size} 2
100@ = 1

:AMBULAN_3842
if 
  37@ > 1
goto_if_false @AMBULAN_3969
84@ = create_random_char 114@ {y} 127@ {z} 140@
86@ = 1
set_char_decision_maker 84@ {handleOrTemplate} 235@
set_char_bleeding 84@ {state} True
set_char_only_damaged_by_player 84@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 84@ {heading} 188@
85@ = add_blip_for_char 84@
set_blip_as_friendly 85@ {state} True
change_blip_scale 85@ {size} 2
freeze_char_position_and_dont_load_collision 84@ {state} True
set_load_collision_for_char_flag 84@ {state} False
101@ = 1

:AMBULAN_3969
if 
  37@ > 2
goto_if_false @AMBULAN_4096
87@ = create_random_char 115@ {y} 128@ {z} 141@
89@ = 1
set_char_decision_maker 87@ {handleOrTemplate} 235@
set_char_bleeding 87@ {state} True
set_char_only_damaged_by_player 87@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 87@ {heading} 188@
88@ = add_blip_for_char 87@
set_blip_as_friendly 88@ {state} True
change_blip_scale 88@ {size} 2
freeze_char_position_and_dont_load_collision 87@ {state} True
set_load_collision_for_char_flag 87@ {state} False
102@ = 1

:AMBULAN_4096
if 
  37@ > 3
goto_if_false @AMBULAN_4223
90@ = create_random_char 116@ {y} 129@ {z} 142@
92@ = 1
set_char_decision_maker 90@ {handleOrTemplate} 235@
set_char_bleeding 90@ {state} True
set_char_only_damaged_by_player 90@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 90@ {heading} 188@
91@ = add_blip_for_char 90@
set_blip_as_friendly 91@ {state} True
change_blip_scale 91@ {size} 2
freeze_char_position_and_dont_load_collision 90@ {state} True
set_load_collision_for_char_flag 90@ {state} False
103@ = 1

:AMBULAN_4223
if 
  37@ > 4
goto_if_false @AMBULAN_4350
93@ = create_random_char 117@ {y} 130@ {z} 143@
95@ = 1
set_char_decision_maker 93@ {handleOrTemplate} 235@
set_char_bleeding 93@ {state} True
set_char_only_damaged_by_player 93@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 93@ {heading} 188@
94@ = add_blip_for_char 93@
set_blip_as_friendly 94@ {state} True
change_blip_scale 94@ {size} 2
freeze_char_position_and_dont_load_collision 93@ {state} True
set_load_collision_for_char_flag 93@ {state} False
104@ = 1

:AMBULAN_4350
if 
  37@ > 5
goto_if_false @AMBULAN_4477
56@ = create_random_char 118@ {y} 131@ {z} 144@
58@ = 1
set_char_decision_maker 56@ {handleOrTemplate} 235@
set_char_bleeding 56@ {state} True
set_char_only_damaged_by_player 56@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 56@ {heading} 188@
57@ = add_blip_for_char 56@
set_blip_as_friendly 57@ {state} True
change_blip_scale 57@ {size} 2
freeze_char_position_and_dont_load_collision 56@ {state} True
set_load_collision_for_char_flag 56@ {state} False
105@ = 1

:AMBULAN_4477
if 
  37@ > 6
goto_if_false @AMBULAN_4604
59@ = create_random_char 119@ {y} 132@ {z} 145@
61@ = 1
set_char_decision_maker 59@ {handleOrTemplate} 235@
set_char_bleeding 59@ {state} True
set_char_only_damaged_by_player 59@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 59@ {heading} 188@
60@ = add_blip_for_char 59@
set_blip_as_friendly 60@ {state} True
change_blip_scale 60@ {size} 2
freeze_char_position_and_dont_load_collision 59@ {state} True
set_load_collision_for_char_flag 59@ {state} False
106@ = 1

:AMBULAN_4604
if 
  37@ > 7
goto_if_false @AMBULAN_4731
62@ = create_random_char 120@ {y} 133@ {z} 146@
64@ = 1
set_char_decision_maker 62@ {handleOrTemplate} 235@
set_char_bleeding 62@ {state} True
set_char_only_damaged_by_player 62@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 62@ {heading} 188@
63@ = add_blip_for_char 62@
set_blip_as_friendly 63@ {state} True
change_blip_scale 63@ {size} 2
freeze_char_position_and_dont_load_collision 62@ {state} True
set_load_collision_for_char_flag 62@ {state} False
107@ = 1

:AMBULAN_4731
if 
  37@ > 8
goto_if_false @AMBULAN_4858
65@ = create_random_char 121@ {y} 134@ {z} 147@
67@ = 1
set_char_decision_maker 65@ {handleOrTemplate} 235@
set_char_bleeding 65@ {state} True
set_char_only_damaged_by_player 65@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 65@ {heading} 188@
66@ = add_blip_for_char 65@
set_blip_as_friendly 66@ {state} True
change_blip_scale 66@ {size} 2
freeze_char_position_and_dont_load_collision 65@ {state} True
set_load_collision_for_char_flag 65@ {state} False
108@ = 1

:AMBULAN_4858
if 
  37@ > 9
goto_if_false @AMBULAN_4985
68@ = create_random_char 122@ {y} 135@ {z} 148@
70@ = 1
set_char_decision_maker 68@ {handleOrTemplate} 235@
set_char_bleeding 68@ {state} True
set_char_only_damaged_by_player 68@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 68@ {heading} 188@
69@ = add_blip_for_char 68@
set_blip_as_friendly 69@ {state} True
change_blip_scale 69@ {size} 2
freeze_char_position_and_dont_load_collision 68@ {state} True
set_load_collision_for_char_flag 68@ {state} False
109@ = 1

:AMBULAN_4985
if 
  37@ > 10
goto_if_false @AMBULAN_5112
71@ = create_random_char 123@ {y} 136@ {z} 149@
73@ = 1
set_char_decision_maker 71@ {handleOrTemplate} 235@
set_char_bleeding 71@ {state} True
set_char_only_damaged_by_player 71@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 71@ {heading} 188@
72@ = add_blip_for_char 71@
set_blip_as_friendly 72@ {state} True
change_blip_scale 72@ {size} 2
freeze_char_position_and_dont_load_collision 71@ {state} True
set_load_collision_for_char_flag 71@ {state} False
110@ = 1

:AMBULAN_5112
if 
  37@ > 11
goto_if_false @AMBULAN_5239
74@ = create_random_char 124@ {y} 137@ {z} 150@
76@ = 1
set_char_decision_maker 74@ {handleOrTemplate} 235@
set_char_bleeding 74@ {state} True
set_char_only_damaged_by_player 74@ {state} True
188@ = generate_random_float_in_range 0.0 {max} 359.9
set_char_heading 74@ {heading} 188@
75@ = add_blip_for_char 74@
set_blip_as_friendly 75@ {state} True
change_blip_scale 75@ {size} 2
freeze_char_position_and_dont_load_collision 74@ {state} True
set_load_collision_for_char_flag 74@ {state} False
111@ = 1

:AMBULAN_5239
return 

:AMBULAN_5241
switch_start 239@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_7781 {caseNum1} 0 {caseLabel1} @AMBULAN_5369 {caseNum2} 1 {caseLabel2} @AMBULAN_5570 {caseNum3} 2 {caseLabel3} @AMBULAN_5771 {caseNum4} 3 {caseLabel4} @AMBULAN_5972 {caseNum5} 4 {caseLabel5} @AMBULAN_6173 {caseNum6} 5 {caseLabel6} @AMBULAN_6374 {caseNum7} 6 {caseLabel7} @AMBULAN_6575
switch_continued 7 {caseLabel1} @AMBULAN_6776 {caseNum2} 8 {caseLabel2} @AMBULAN_6977 {caseNum3} 9 {caseLabel3} @AMBULAN_7178 {caseNum4} 10 {caseLabel4} @AMBULAN_7379 {caseNum5} 11 {caseLabel5} @AMBULAN_7580 {caseNum6} -1 {caseLabel6} @AMBULAN_7795 {caseNum7} -1 {caseLabel7} @AMBULAN_7795 {caseNum8} -1 {caseLabel8} @AMBULAN_7795 {caseNum9} -1 {caseLabel9} @AMBULAN_7795

:AMBULAN_5369
if 
  37@ > 0
goto_if_false @AMBULAN_5556
if 
  3 > 83@
goto_if_false @AMBULAN_5556
if 
  not is_char_dead 81@
goto_if_false @AMBULAN_5556
if 
  locate_char_in_car_char_3d $scplayer {target} 81@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_5517
if 
  100@ == 1
goto_if_false @AMBULAN_5510
freeze_char_position_and_dont_load_collision 81@ {state} False
set_load_collision_for_char_flag 81@ {state} True
set_char_coordinates 81@ {x} 113@ {y} 126@ {z} 139@
100@ = 0

:AMBULAN_5510
goto @AMBULAN_5556

:AMBULAN_5517
if 
  100@ == 0
goto_if_false @AMBULAN_5556
freeze_char_position_and_dont_load_collision 81@ {state} True
set_load_collision_for_char_flag 81@ {state} False
100@ = 1

:AMBULAN_5556
239@ += 1
goto @AMBULAN_7795

:AMBULAN_5570
if 
  37@ > 1
goto_if_false @AMBULAN_5757
if 
  3 > 86@
goto_if_false @AMBULAN_5757
if 
  not is_char_dead 84@
goto_if_false @AMBULAN_5757
if 
  locate_char_in_car_char_3d $scplayer {target} 84@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_5718
if 
  101@ == 1
goto_if_false @AMBULAN_5711
freeze_char_position_and_dont_load_collision 84@ {state} False
set_load_collision_for_char_flag 84@ {state} True
set_char_coordinates 84@ {x} 114@ {y} 127@ {z} 140@
101@ = 0

:AMBULAN_5711
goto @AMBULAN_5757

:AMBULAN_5718
if 
  101@ == 0
goto_if_false @AMBULAN_5757
freeze_char_position_and_dont_load_collision 84@ {state} True
set_load_collision_for_char_flag 84@ {state} False
101@ = 1

:AMBULAN_5757
239@ += 1
goto @AMBULAN_7795

:AMBULAN_5771
if 
  37@ > 2
goto_if_false @AMBULAN_5958
if 
  3 > 89@
goto_if_false @AMBULAN_5958
if 
  not is_char_dead 87@
goto_if_false @AMBULAN_5958
if 
  locate_char_in_car_char_3d $scplayer {target} 87@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_5919
if 
  102@ == 1
goto_if_false @AMBULAN_5912
freeze_char_position_and_dont_load_collision 87@ {state} False
set_load_collision_for_char_flag 87@ {state} True
set_char_coordinates 87@ {x} 115@ {y} 128@ {z} 141@
102@ = 0

:AMBULAN_5912
goto @AMBULAN_5958

:AMBULAN_5919
if 
  102@ == 0
goto_if_false @AMBULAN_5958
freeze_char_position_and_dont_load_collision 87@ {state} True
set_load_collision_for_char_flag 87@ {state} False
102@ = 1

:AMBULAN_5958
239@ += 1
goto @AMBULAN_7795

:AMBULAN_5972
if 
  37@ > 3
goto_if_false @AMBULAN_6159
if 
  3 > 92@
goto_if_false @AMBULAN_6159
if 
  not is_char_dead 90@
goto_if_false @AMBULAN_6159
if 
  locate_char_in_car_char_3d $scplayer {target} 90@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6120
if 
  103@ == 1
goto_if_false @AMBULAN_6113
freeze_char_position_and_dont_load_collision 90@ {state} False
set_load_collision_for_char_flag 90@ {state} True
set_char_coordinates 90@ {x} 116@ {y} 129@ {z} 142@
103@ = 0

:AMBULAN_6113
goto @AMBULAN_6159

:AMBULAN_6120
if 
  103@ == 0
goto_if_false @AMBULAN_6159
freeze_char_position_and_dont_load_collision 90@ {state} True
set_load_collision_for_char_flag 90@ {state} False
103@ = 1

:AMBULAN_6159
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6173
if 
  37@ > 4
goto_if_false @AMBULAN_6360
if 
  3 > 95@
goto_if_false @AMBULAN_6360
if 
  not is_char_dead 93@
goto_if_false @AMBULAN_6360
if 
  locate_char_in_car_char_3d $scplayer {target} 93@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6321
if 
  104@ == 1
goto_if_false @AMBULAN_6314
freeze_char_position_and_dont_load_collision 93@ {state} False
set_load_collision_for_char_flag 93@ {state} True
set_char_coordinates 93@ {x} 117@ {y} 130@ {z} 143@
104@ = 0

:AMBULAN_6314
goto @AMBULAN_6360

:AMBULAN_6321
if 
  104@ == 0
goto_if_false @AMBULAN_6360
freeze_char_position_and_dont_load_collision 93@ {state} True
set_load_collision_for_char_flag 93@ {state} False
104@ = 1

:AMBULAN_6360
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6374
if 
  37@ > 5
goto_if_false @AMBULAN_6561
if 
  3 > 58@
goto_if_false @AMBULAN_6561
if 
  not is_char_dead 56@
goto_if_false @AMBULAN_6561
if 
  locate_char_in_car_char_3d $scplayer {target} 56@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6522
if 
  105@ == 1
goto_if_false @AMBULAN_6515
freeze_char_position_and_dont_load_collision 56@ {state} False
set_load_collision_for_char_flag 56@ {state} True
set_char_coordinates 56@ {x} 118@ {y} 131@ {z} 144@
105@ = 0

:AMBULAN_6515
goto @AMBULAN_6561

:AMBULAN_6522
if 
  105@ == 0
goto_if_false @AMBULAN_6561
freeze_char_position_and_dont_load_collision 56@ {state} True
set_load_collision_for_char_flag 56@ {state} False
105@ = 1

:AMBULAN_6561
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6575
if 
  37@ > 6
goto_if_false @AMBULAN_6762
if 
  3 > 61@
goto_if_false @AMBULAN_6762
if 
  not is_char_dead 59@
goto_if_false @AMBULAN_6762
if 
  locate_char_in_car_char_3d $scplayer {target} 59@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6723
if 
  106@ == 1
goto_if_false @AMBULAN_6716
freeze_char_position_and_dont_load_collision 59@ {state} False
set_load_collision_for_char_flag 59@ {state} True
set_char_coordinates 59@ {x} 119@ {y} 132@ {z} 145@
106@ = 0

:AMBULAN_6716
goto @AMBULAN_6762

:AMBULAN_6723
if 
  106@ == 0
goto_if_false @AMBULAN_6762
freeze_char_position_and_dont_load_collision 59@ {state} True
set_load_collision_for_char_flag 59@ {state} False
106@ = 1

:AMBULAN_6762
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6776
if 
  37@ > 7
goto_if_false @AMBULAN_6963
if 
  3 > 64@
goto_if_false @AMBULAN_6963
if 
  not is_char_dead 62@
goto_if_false @AMBULAN_6963
if 
  locate_char_in_car_char_3d $scplayer {target} 62@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_6924
if 
  107@ == 1
goto_if_false @AMBULAN_6917
freeze_char_position_and_dont_load_collision 62@ {state} False
set_load_collision_for_char_flag 62@ {state} True
set_char_coordinates 62@ {x} 120@ {y} 133@ {z} 146@
107@ = 0

:AMBULAN_6917
goto @AMBULAN_6963

:AMBULAN_6924
if 
  107@ == 0
goto_if_false @AMBULAN_6963
freeze_char_position_and_dont_load_collision 62@ {state} True
set_load_collision_for_char_flag 62@ {state} False
107@ = 1

:AMBULAN_6963
239@ += 1
goto @AMBULAN_7795

:AMBULAN_6977
if 
  37@ > 8
goto_if_false @AMBULAN_7164
if 
  3 > 67@
goto_if_false @AMBULAN_7164
if 
  not is_char_dead 65@
goto_if_false @AMBULAN_7164
if 
  locate_char_in_car_char_3d $scplayer {target} 65@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7125
if 
  108@ == 1
goto_if_false @AMBULAN_7118
freeze_char_position_and_dont_load_collision 65@ {state} False
set_load_collision_for_char_flag 65@ {state} True
set_char_coordinates 65@ {x} 121@ {y} 134@ {z} 147@
108@ = 0

:AMBULAN_7118
goto @AMBULAN_7164

:AMBULAN_7125
if 
  108@ == 0
goto_if_false @AMBULAN_7164
freeze_char_position_and_dont_load_collision 65@ {state} True
set_load_collision_for_char_flag 65@ {state} False
108@ = 1

:AMBULAN_7164
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7178
if 
  37@ > 9
goto_if_false @AMBULAN_7365
if 
  3 > 70@
goto_if_false @AMBULAN_7365
if 
  not is_char_dead 68@
goto_if_false @AMBULAN_7365
if 
  locate_char_in_car_char_3d $scplayer {target} 68@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7326
if 
  109@ == 1
goto_if_false @AMBULAN_7319
freeze_char_position_and_dont_load_collision 68@ {state} False
set_load_collision_for_char_flag 68@ {state} True
set_char_coordinates 68@ {x} 122@ {y} 135@ {z} 148@
109@ = 0

:AMBULAN_7319
goto @AMBULAN_7365

:AMBULAN_7326
if 
  109@ == 0
goto_if_false @AMBULAN_7365
freeze_char_position_and_dont_load_collision 68@ {state} True
set_load_collision_for_char_flag 68@ {state} False
109@ = 1

:AMBULAN_7365
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7379
if 
  37@ > 10
goto_if_false @AMBULAN_7566
if 
  3 > 73@
goto_if_false @AMBULAN_7566
if 
  not is_char_dead 71@
goto_if_false @AMBULAN_7566
if 
  locate_char_in_car_char_3d $scplayer {target} 71@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7527
if 
  110@ == 1
goto_if_false @AMBULAN_7520
freeze_char_position_and_dont_load_collision 71@ {state} False
set_load_collision_for_char_flag 71@ {state} True
set_char_coordinates 71@ {x} 123@ {y} 136@ {z} 149@
110@ = 0

:AMBULAN_7520
goto @AMBULAN_7566

:AMBULAN_7527
if 
  110@ == 0
goto_if_false @AMBULAN_7566
freeze_char_position_and_dont_load_collision 71@ {state} True
set_load_collision_for_char_flag 71@ {state} False
110@ = 1

:AMBULAN_7566
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7580
if 
  37@ > 11
goto_if_false @AMBULAN_7767
if 
  3 > 76@
goto_if_false @AMBULAN_7767
if 
  not is_char_dead 74@
goto_if_false @AMBULAN_7767
if 
  locate_char_in_car_char_3d $scplayer {target} 74@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_7728
if 
  111@ == 1
goto_if_false @AMBULAN_7721
freeze_char_position_and_dont_load_collision 74@ {state} False
set_load_collision_for_char_flag 74@ {state} True
set_char_coordinates 74@ {x} 124@ {y} 137@ {z} 150@
111@ = 0

:AMBULAN_7721
goto @AMBULAN_7767

:AMBULAN_7728
if 
  111@ == 0
goto_if_false @AMBULAN_7767
freeze_char_position_and_dont_load_collision 74@ {state} True
set_load_collision_for_char_flag 74@ {state} False
111@ = 1

:AMBULAN_7767
239@ += 1
goto @AMBULAN_7795

:AMBULAN_7781
239@ = 0
goto @AMBULAN_7795

:AMBULAN_7795
return 

:AMBULAN_7797
wait 0
170@, 171@, 172@ = get_char_coordinates $scplayer
set_lvar_float_to_lvar_float 190@ = 167@
set_lvar_float_to_lvar_float 193@ = 167@
set_lvar_float_to_lvar_float 191@ = 168@
set_lvar_float_to_lvar_float 194@ = 168@
set_lvar_float_to_lvar_float 192@ = 169@
set_lvar_float_to_lvar_float 195@ = 169@
96@ = get_city_from_coords 170@ {y} 171@ {z} 172@
cset_lvar_float_to_var_int 237@ =# $db_ambulance_level
237@ *= 60.0
add_float_lvar_to_float_lvar 237@ += 238@
if 
  96@ == 0
goto_if_false @AMBULAN_7938
238@ += 15.0
goto @AMBULAN_7948

:AMBULAN_7938
238@ += 1.0

:AMBULAN_7948
if 
  100.0 > 237@
goto_if_false @AMBULAN_7979
237@ = 100.0

:AMBULAN_7979
if 
  238@ > 10000.0
goto_if_false @AMBULAN_8045
if 
  $db_ambulance_level == 1
goto_if_false @AMBULAN_8045
clear_this_print 'ALEVEL'
print_now 'A_CANC' {time} 3000 {flag} 1

:AMBULAN_8045
sub_float_lvar_from_float_lvar 190@ -= 237@
add_float_lvar_to_float_lvar 193@ += 237@
sub_float_lvar_from_float_lvar 191@ -= 237@
add_float_lvar_to_float_lvar 194@ += 237@
if 
  8 > $db_ambulance_level
goto_if_false @AMBULAN_8210
if 
  is_float_lvar_greater_than_float_lvar 197@ > 190@
goto_if_false @AMBULAN_8122
set_lvar_float_to_lvar_float 190@ = 197@

:AMBULAN_8122
if 
  is_float_lvar_greater_than_float_lvar 193@ > 198@
goto_if_false @AMBULAN_8149
set_lvar_float_to_lvar_float 193@ = 198@

:AMBULAN_8149
if 
  is_float_lvar_greater_than_float_lvar 199@ > 191@
goto_if_false @AMBULAN_8176
set_lvar_float_to_lvar_float 191@ = 199@

:AMBULAN_8176
if 
  is_float_lvar_greater_than_float_lvar 166@ > 200@
goto_if_false @AMBULAN_8203
set_lvar_float_to_lvar_float 194@ = 200@

:AMBULAN_8203
goto @AMBULAN_8242

:AMBULAN_8210
set_lvar_float_to_lvar_float 190@ = 197@
set_lvar_float_to_lvar_float 193@ = 198@
set_lvar_float_to_lvar_float 191@ = 199@
set_lvar_float_to_lvar_float 194@ = 200@

:AMBULAN_8242
165@ = generate_random_float_in_range 190@ {max} 193@
166@ = generate_random_float_in_range 191@ {max} 194@
$controlmode = get_controller_mode 
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_8293
53@ = 1

:AMBULAN_8293
if 
  53@ == 1
goto_if_false @AMBULAN_8394
if 
  $controlmode <> 3
goto_if_false @AMBULAN_8389
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_8382
clear_this_print 'ALEVEL'
print_now 'A_CANC' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_8382
goto @AMBULAN_8394

:AMBULAN_8389
$controlmode = get_controller_mode 

:AMBULAN_8394
if 
  not is_char_dead $scplayer
goto_if_false @AMBULAN_8465
if 
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @AMBULAN_8465
clear_this_print 'ALEVEL'
print_now 'A_CANC' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_8465
176@, 177@, 178@ = get_closest_char_node 165@ {y} 166@ {z} 169@
if 
  is_float_lvar_greater_than_float_lvar 197@ > 176@
goto_if_false @AMBULAN_8518
goto @AMBULAN_7797
goto @AMBULAN_8610

:AMBULAN_8518
if 
  is_float_lvar_greater_than_float_lvar 176@ > 198@
goto_if_false @AMBULAN_8551
goto @AMBULAN_7797
goto @AMBULAN_8610

:AMBULAN_8551
if 
  is_float_lvar_greater_than_float_lvar 199@ > 177@
goto_if_false @AMBULAN_8584
goto @AMBULAN_7797
goto @AMBULAN_8610

:AMBULAN_8584
if 
  is_float_lvar_greater_than_float_lvar 177@ > 200@
goto_if_false @AMBULAN_8610
goto @AMBULAN_7797

:AMBULAN_8610
if 
  6.0 > 178@
goto_if_false @AMBULAN_8638
goto @AMBULAN_7797

:AMBULAN_8638
185@ = get_distance_between_coords_3d 170@ {fromY} 171@ {fromZ} 172@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  50.0 > 185@
goto_if_false @AMBULAN_8689
goto @AMBULAN_7797

:AMBULAN_8689
186@ = get_distance_between_coords_3d 167@ {fromY} 168@ {fromZ} 169@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  30.0 > 186@
goto_if_false @AMBULAN_8740
goto @AMBULAN_7797

:AMBULAN_8740
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @AMBULAN_9202
if 
  $Return_cities_passed == 0
goto_if_false @AMBULAN_9016
if and
  78.4427 > 176@
  -699.519 > 177@
goto_if_false @AMBULAN_8826
wait 0
goto @AMBULAN_7797

:AMBULAN_8826
if and
  -252.6557 > 176@
  -285.766 > 177@
goto_if_false @AMBULAN_8868
wait 0
goto @AMBULAN_7797

:AMBULAN_8868
if 
  -948.3447 > 176@
goto_if_false @AMBULAN_8900
wait 0
goto @AMBULAN_7797

:AMBULAN_8900
if and
  176@ > 1473.448
  177@ > 403.7353
goto_if_false @AMBULAN_8942
wait 0
goto @AMBULAN_7797

:AMBULAN_8942
if 
  177@ > 578.6325
goto_if_false @AMBULAN_8974
wait 0
goto @AMBULAN_7797

:AMBULAN_8974
if and
  837.5551 > 176@
  177@ > 347.4097
goto_if_false @AMBULAN_9016
wait 0
goto @AMBULAN_7797

:AMBULAN_9016
if 
  $Return_cities_passed == 1
goto_if_false @AMBULAN_9202
if and
  176@ > 1473.448
  177@ > 403.7353
goto_if_false @AMBULAN_9076
wait 0
goto @AMBULAN_7797

:AMBULAN_9076
if and
  177@ > 578.6325
  176@ > -1528.498
goto_if_false @AMBULAN_9118
wait 0
goto @AMBULAN_7797

:AMBULAN_9118
if and
  837.5551 > 176@
  176@ > -1528.498
  177@ > 347.4097
goto_if_false @AMBULAN_9170
wait 0
goto @AMBULAN_7797

:AMBULAN_9170
if 
  177@ > 1380.0
goto_if_false @AMBULAN_9202
wait 0
goto @AMBULAN_7797

:AMBULAN_9202
if 
  37@ > 0
goto_if_false @AMBULAN_9271
212@ = get_distance_between_coords_3d 113@ {fromY} 126@ {fromZ} 139@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9271
goto @AMBULAN_7797

:AMBULAN_9271
if 
  37@ > 1
goto_if_false @AMBULAN_9340
212@ = get_distance_between_coords_3d 113@ {fromY} 126@ {fromZ} 139@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9340
goto @AMBULAN_7797

:AMBULAN_9340
if 
  37@ > 2
goto_if_false @AMBULAN_9409
212@ = get_distance_between_coords_3d 114@ {fromY} 127@ {fromZ} 140@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9409
goto @AMBULAN_7797

:AMBULAN_9409
if 
  37@ > 3
goto_if_false @AMBULAN_9478
212@ = get_distance_between_coords_3d 115@ {fromY} 128@ {fromZ} 141@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9478
goto @AMBULAN_7797

:AMBULAN_9478
if 
  37@ > 4
goto_if_false @AMBULAN_9547
212@ = get_distance_between_coords_3d 116@ {fromY} 129@ {fromZ} 142@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9547
goto @AMBULAN_7797

:AMBULAN_9547
if 
  37@ > 5
goto_if_false @AMBULAN_9616
212@ = get_distance_between_coords_3d 117@ {fromY} 130@ {fromZ} 143@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9616
goto @AMBULAN_7797

:AMBULAN_9616
if 
  37@ > 6
goto_if_false @AMBULAN_9685
212@ = get_distance_between_coords_3d 118@ {fromY} 131@ {fromZ} 144@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9685
goto @AMBULAN_7797

:AMBULAN_9685
if 
  37@ > 7
goto_if_false @AMBULAN_9754
212@ = get_distance_between_coords_3d 119@ {fromY} 132@ {fromZ} 145@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9754
goto @AMBULAN_7797

:AMBULAN_9754
if 
  37@ > 8
goto_if_false @AMBULAN_9823
212@ = get_distance_between_coords_3d 120@ {fromY} 133@ {fromZ} 146@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9823
goto @AMBULAN_7797

:AMBULAN_9823
if 
  37@ > 9
goto_if_false @AMBULAN_9892
212@ = get_distance_between_coords_3d 121@ {fromY} 134@ {fromZ} 147@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9892
goto @AMBULAN_7797

:AMBULAN_9892
if 
  37@ > 10
goto_if_false @AMBULAN_9961
212@ = get_distance_between_coords_3d 122@ {fromY} 135@ {fromZ} 148@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_9961
goto @AMBULAN_7797

:AMBULAN_9961
if 
  37@ > 11
goto_if_false @AMBULAN_10030
212@ = get_distance_between_coords_3d 123@ {fromY} 136@ {fromZ} 149@ {toX} 176@ {toY} 177@ {toZ} 178@
if 
  25.0 > 212@
goto_if_false @AMBULAN_10030
goto @AMBULAN_7797

:AMBULAN_10030
if 
  is_point_obscured_by_a_mission_entity 176@ {y} 177@ {z} 177@ {radiusX} 25.0 {radiusY} 25.0 {radiusZ} 10.0
goto_if_false @AMBULAN_10074
goto @AMBULAN_7797

:AMBULAN_10074
if 
  1186.0 > 176@
goto_if_false @AMBULAN_10165
if 
  176@ > 1047.0
goto_if_false @AMBULAN_10165
if 
  -1406.0 > 177@
goto_if_false @AMBULAN_10165
if 
  177@ > -1567.0
goto_if_false @AMBULAN_10165
goto @AMBULAN_7797

:AMBULAN_10165
if 
  1444.0 > 176@
goto_if_false @AMBULAN_10256
if 
  176@ > 1339.0
goto_if_false @AMBULAN_10256
if 
  -1450.0 > 177@
goto_if_false @AMBULAN_10256
if 
  177@ > -1504.0
goto_if_false @AMBULAN_10256
goto @AMBULAN_7797

:AMBULAN_10256
if 
  2041.979 > 176@
goto_if_false @AMBULAN_10347
if 
  176@ > 1999.387
goto_if_false @AMBULAN_10347
if 
  -1408.708 > 177@
goto_if_false @AMBULAN_10347
if 
  177@ > -1445.462
goto_if_false @AMBULAN_10347
goto @AMBULAN_7797

:AMBULAN_10347
if 
  1202.0 > 176@
goto_if_false @AMBULAN_10438
if 
  176@ > 1162.0
goto_if_false @AMBULAN_10438
if 
  -1238.0 > 177@
goto_if_false @AMBULAN_10438
if 
  177@ > -1250.0
goto_if_false @AMBULAN_10438
goto @AMBULAN_7797

:AMBULAN_10438
if 
  1176.0 > 176@
goto_if_false @AMBULAN_10529
if 
  176@ > 1158.0
goto_if_false @AMBULAN_10529
if 
  1364.0 > 177@
goto_if_false @AMBULAN_10529
if 
  177@ > 1345.0
goto_if_false @AMBULAN_10529
goto @AMBULAN_7797

:AMBULAN_10529
if 
  -2307.0 > 176@
goto_if_false @AMBULAN_10620
if 
  176@ > -2333.0
goto_if_false @AMBULAN_10620
if 
  1100.0 > 177@
goto_if_false @AMBULAN_10620
if 
  177@ > 1036.0
goto_if_false @AMBULAN_10620
goto @AMBULAN_7797

:AMBULAN_10620
if 
  2009.0 > 176@
goto_if_false @AMBULAN_10711
if 
  176@ > 1989.0
goto_if_false @AMBULAN_10711
if 
  1571.0 > 177@
goto_if_false @AMBULAN_10711
if 
  177@ > 1513.0
goto_if_false @AMBULAN_10711
goto @AMBULAN_7797

:AMBULAN_10711
if 
  2632.8181 > 176@
goto_if_false @AMBULAN_10802
if 
  176@ > 2546.4629
goto_if_false @AMBULAN_10802
if 
  -1129.673 > 177@
goto_if_false @AMBULAN_10802
if 
  177@ > -1144.012
goto_if_false @AMBULAN_10802
goto @AMBULAN_7797

:AMBULAN_10802
if 
  -222.5044 > 176@
goto_if_false @AMBULAN_10893
if 
  176@ > -229.096
goto_if_false @AMBULAN_10893
if 
  1412.0861 > 177@
goto_if_false @AMBULAN_10893
if 
  177@ > 1393.817
goto_if_false @AMBULAN_10893
goto @AMBULAN_7797

:AMBULAN_10893
238@ = 0.0
return 

:AMBULAN_10905
if 
  2 > 37@
goto_if_false @AMBULAN_11014
if 
  is_float_lvar_greater_than_float_lvar 185@ > 186@
goto_if_false @AMBULAN_10965
set_lvar_float_to_lvar_float 187@ = 185@
div_float_lvar_by_float_lvar 187@ /= 189@
goto @AMBULAN_10981

:AMBULAN_10965
set_lvar_float_to_lvar_float 187@ = 186@
div_float_lvar_by_float_lvar 187@ /= 189@

:AMBULAN_10981
187@ *= 1000.0
cset_lvar_int_to_lvar_float 35@ =# 187@
add_int_lvar_to_int_var $ped_time_limit += 35@
goto @AMBULAN_11056

:AMBULAN_11014
set_lvar_float_to_lvar_float 187@ = 186@
div_float_lvar_by_float_lvar 187@ /= 189@
187@ *= 1000.0
cset_lvar_int_to_lvar_float 35@ =# 187@
add_int_lvar_to_int_var $ped_time_limit += 35@

:AMBULAN_11056
return 

:AMBULAN_11058
wait 0
if 
  $ped_time_limit == 0
goto_if_false @AMBULAN_11110
print_now 'A_FAIL2' {time} 3000 {flag} 1
79@ = 1
goto @AMBULAN_13127

:AMBULAN_11110
$controlmode = get_controller_mode 
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_11139
53@ = 1

:AMBULAN_11139
if 
  53@ == 1
goto_if_false @AMBULAN_11197
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @AMBULAN_11197
print_now 'A_CANC' {time} 3000 {flag} 1
goto @AMBULAN_13127

:AMBULAN_11197
if 
  not is_char_in_model $scplayer {modelId} 416
goto_if_false @AMBULAN_11246
print_now 'A_CANC' {time} 3000 {flag} 1
goto @AMBULAN_13127
goto @AMBULAN_11302

:AMBULAN_11246
34@ = store_car_char_is_in_no_save $scplayer
if 
  not is_car_dead 34@
goto_if_false @AMBULAN_11302
43@ = get_number_of_passengers 34@
42@ = get_maximum_number_of_passengers 34@
set_var_int_to_lvar_int $amb_free_seats = 42@
sub_int_lvar_from_int_var $amb_free_seats -= 43@

:AMBULAN_11302
if and
  37@ > 6
  45@ == 2
  51@ == 0
goto_if_false @AMBULAN_11348
45@ = 1
51@ += 1

:AMBULAN_11348
if and
  37@ > 9
  45@ == 2
  51@ == 1
goto_if_false @AMBULAN_11394
45@ = 1
51@ += 1

:AMBULAN_11394
if and
  37@ > 12
  45@ == 2
  51@ == 2
goto_if_false @AMBULAN_11440
45@ = 1
51@ += 1

:AMBULAN_11440
gosub @AMBULAN_5241
if 
  52@ == 1
goto_if_false @AMBULAN_11496
  locate_stopped_char_in_car_3d $scplayer {x} 167@ {y} 168@ {z} 169@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} True

:AMBULAN_11496
switch_start 240@ {numCases} 12 {hasDefaultCase} 1 {defaultLabel} @AMBULAN_12776 {caseNum1} 0 {caseLabel1} @AMBULAN_11624 {caseNum2} 1 {caseLabel2} @AMBULAN_11720 {caseNum3} 2 {caseLabel3} @AMBULAN_11816 {caseNum4} 3 {caseLabel4} @AMBULAN_11912 {caseNum5} 4 {caseLabel5} @AMBULAN_12008 {caseNum6} 5 {caseLabel6} @AMBULAN_12104 {caseNum7} 6 {caseLabel7} @AMBULAN_12200
switch_continued 7 {caseLabel1} @AMBULAN_12296 {caseNum2} 8 {caseLabel2} @AMBULAN_12392 {caseNum3} 9 {caseLabel3} @AMBULAN_12488 {caseNum4} 10 {caseLabel4} @AMBULAN_12584 {caseNum5} 11 {caseLabel5} @AMBULAN_12680 {caseNum6} -1 {caseLabel6} @AMBULAN_12790 {caseNum7} -1 {caseLabel7} @AMBULAN_12790 {caseNum8} -1 {caseLabel8} @AMBULAN_12790 {caseNum9} -1 {caseLabel9} @AMBULAN_12790

:AMBULAN_11624
if 
  83@ > 0
goto_if_false @AMBULAN_11706
set_lvar_int_to_lvar_int 77@ = 81@
set_lvar_int_to_lvar_int 80@ = 83@
set_lvar_int_to_lvar_int 78@ = 82@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11698
goto @AMBULAN_13127

:AMBULAN_11698
set_lvar_int_to_lvar_int 83@ = 80@

:AMBULAN_11706
240@ += 1
goto @AMBULAN_12790

:AMBULAN_11720
if 
  86@ > 0
goto_if_false @AMBULAN_11802
set_lvar_int_to_lvar_int 77@ = 84@
set_lvar_int_to_lvar_int 80@ = 86@
set_lvar_int_to_lvar_int 78@ = 85@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11794
goto @AMBULAN_13127

:AMBULAN_11794
set_lvar_int_to_lvar_int 86@ = 80@

:AMBULAN_11802
240@ += 1
goto @AMBULAN_12790

:AMBULAN_11816
if 
  89@ > 0
goto_if_false @AMBULAN_11898
set_lvar_int_to_lvar_int 77@ = 87@
set_lvar_int_to_lvar_int 80@ = 89@
set_lvar_int_to_lvar_int 78@ = 88@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11890
goto @AMBULAN_13127

:AMBULAN_11890
set_lvar_int_to_lvar_int 89@ = 80@

:AMBULAN_11898
240@ += 1
goto @AMBULAN_12790

:AMBULAN_11912
if 
  92@ > 0
goto_if_false @AMBULAN_11994
set_lvar_int_to_lvar_int 77@ = 90@
set_lvar_int_to_lvar_int 80@ = 92@
set_lvar_int_to_lvar_int 78@ = 91@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_11986
goto @AMBULAN_13127

:AMBULAN_11986
set_lvar_int_to_lvar_int 92@ = 80@

:AMBULAN_11994
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12008
if 
  95@ > 0
goto_if_false @AMBULAN_12090
set_lvar_int_to_lvar_int 77@ = 93@
set_lvar_int_to_lvar_int 80@ = 95@
set_lvar_int_to_lvar_int 78@ = 94@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12082
goto @AMBULAN_13127

:AMBULAN_12082
set_lvar_int_to_lvar_int 95@ = 80@

:AMBULAN_12090
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12104
if 
  58@ > 0
goto_if_false @AMBULAN_12186
set_lvar_int_to_lvar_int 77@ = 56@
set_lvar_int_to_lvar_int 80@ = 58@
set_lvar_int_to_lvar_int 78@ = 57@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12178
goto @AMBULAN_13127

:AMBULAN_12178
set_lvar_int_to_lvar_int 58@ = 80@

:AMBULAN_12186
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12200
if 
  61@ > 0
goto_if_false @AMBULAN_12282
set_lvar_int_to_lvar_int 77@ = 59@
set_lvar_int_to_lvar_int 80@ = 61@
set_lvar_int_to_lvar_int 78@ = 60@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12274
goto @AMBULAN_13127

:AMBULAN_12274
set_lvar_int_to_lvar_int 61@ = 80@

:AMBULAN_12282
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12296
if 
  64@ > 0
goto_if_false @AMBULAN_12378
set_lvar_int_to_lvar_int 77@ = 62@
set_lvar_int_to_lvar_int 80@ = 64@
set_lvar_int_to_lvar_int 78@ = 63@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12370
goto @AMBULAN_13127

:AMBULAN_12370
set_lvar_int_to_lvar_int 64@ = 80@

:AMBULAN_12378
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12392
if 
  67@ > 0
goto_if_false @AMBULAN_12474
set_lvar_int_to_lvar_int 77@ = 65@
set_lvar_int_to_lvar_int 80@ = 67@
set_lvar_int_to_lvar_int 78@ = 66@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12466
goto @AMBULAN_13127

:AMBULAN_12466
set_lvar_int_to_lvar_int 67@ = 80@

:AMBULAN_12474
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12488
if 
  70@ > 0
goto_if_false @AMBULAN_12570
set_lvar_int_to_lvar_int 77@ = 68@
set_lvar_int_to_lvar_int 80@ = 70@
set_lvar_int_to_lvar_int 78@ = 69@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12562
goto @AMBULAN_13127

:AMBULAN_12562
set_lvar_int_to_lvar_int 70@ = 80@

:AMBULAN_12570
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12584
if 
  73@ > 0
goto_if_false @AMBULAN_12666
set_lvar_int_to_lvar_int 77@ = 71@
set_lvar_int_to_lvar_int 80@ = 73@
set_lvar_int_to_lvar_int 78@ = 72@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12658
goto @AMBULAN_13127

:AMBULAN_12658
set_lvar_int_to_lvar_int 73@ = 80@

:AMBULAN_12666
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12680
if 
  76@ > 0
goto_if_false @AMBULAN_12762
set_lvar_int_to_lvar_int 77@ = 74@
set_lvar_int_to_lvar_int 80@ = 76@
set_lvar_int_to_lvar_int 78@ = 75@
gosub @AMBULAN_13961
if 
  79@ == 1
goto_if_false @AMBULAN_12754
goto @AMBULAN_13127

:AMBULAN_12754
set_lvar_int_to_lvar_int 76@ = 80@

:AMBULAN_12762
240@ += 1
goto @AMBULAN_12790

:AMBULAN_12776
240@ = 0
goto @AMBULAN_12790

:AMBULAN_12790
if 
  is_int_lvar_equal_to_int_lvar 46@ == 37@
goto_if_false @AMBULAN_13120
set_lvar_int_to_var_int 44@ = $db_ambulance_level
mult_int_lvar_by_int_var 44@ *= $db_ambulance_level
44@ *= 50
force_big_message_and_counter True
print_with_number_big 'REWARD' {num} 44@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_int_lvar_to_int_var $total_saved_peds += 46@
add_int_lvar_to_int_lvar 55@ += 46@
37@ += 1
46@ = 0
36@ = 0
add_score $player1 {money} 44@
52@ = 0
remove_blip 47@
remove_blip 82@
remove_blip 85@
remove_blip 88@
remove_blip 91@
remove_blip 94@
remove_blip 57@
remove_blip 60@
remove_blip 63@
remove_blip 66@
remove_blip 69@
remove_blip 72@
remove_blip 75@
register_int_stat StatId.AmbulanceLevel {value} $db_ambulance_level
$db_ambulance_level += 1
if 
  $db_ambulance_level == 13
goto_if_false @AMBULAN_13113
force_big_message_and_counter True
print_with_number_big 'A_COMP1' {num} 5000 {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 5000
play_mission_passed_tune 2
if 
  $done_ambulance_progress == 0
goto_if_false @AMBULAN_13111
player_made_progress 1
print 'A_COMP3' {time} 5000 {flag} 1
196@ = get_float_stat StatId.MaxHealth
196@ *= 1.5
increment_float_stat_no_message StatId.MaxHealth {value} 196@
register_oddjob_mission_passed 
$done_ambulance_progress = 1

:AMBULAN_13111
return 

:AMBULAN_13113
goto @AMBULAN_3133

:AMBULAN_13120
goto @AMBULAN_11058

:AMBULAN_13127
clear_onscreen_timer $ped_time_limit
clear_onscreen_counter $db_ambulance_level
clear_onscreen_counter $amb_free_seats
clear_this_print 'ALEVEL'
if 
  $db_ambulance_level <> 13
goto_if_false @AMBULAN_13206
print_big 'A_FAIL1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_number_big 'A_SAVES' {num} 55@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller

:AMBULAN_13206
if 
  $db_ambulance_level <> 13
goto_if_false @AMBULAN_13620
if 
  not is_char_dead 81@
goto_if_false @AMBULAN_13257
set_char_only_damaged_by_player 81@ {state} False
explode_char_head 81@
remove_char_elegantly 81@

:AMBULAN_13257
if 
  not is_char_dead 84@
goto_if_false @AMBULAN_13290
set_char_only_damaged_by_player 84@ {state} False
explode_char_head 84@
remove_char_elegantly 84@

:AMBULAN_13290
if 
  not is_char_dead 87@
goto_if_false @AMBULAN_13323
set_char_only_damaged_by_player 87@ {state} False
explode_char_head 87@
remove_char_elegantly 87@

:AMBULAN_13323
if 
  not is_char_dead 90@
goto_if_false @AMBULAN_13356
set_char_only_damaged_by_player 90@ {state} False
explode_char_head 90@
remove_char_elegantly 90@

:AMBULAN_13356
if 
  not is_char_dead 93@
goto_if_false @AMBULAN_13389
set_char_only_damaged_by_player 93@ {state} False
explode_char_head 93@
remove_char_elegantly 93@

:AMBULAN_13389
if 
  not is_char_dead 56@
goto_if_false @AMBULAN_13422
set_char_only_damaged_by_player 56@ {state} False
explode_char_head 56@
remove_char_elegantly 56@

:AMBULAN_13422
if 
  not is_char_dead 59@
goto_if_false @AMBULAN_13455
set_char_only_damaged_by_player 59@ {state} False
explode_char_head 59@
remove_char_elegantly 59@

:AMBULAN_13455
if 
  not is_char_dead 62@
goto_if_false @AMBULAN_13488
set_char_only_damaged_by_player 62@ {state} False
explode_char_head 62@
remove_char_elegantly 62@

:AMBULAN_13488
if 
  not is_char_dead 65@
goto_if_false @AMBULAN_13521
set_char_only_damaged_by_player 65@ {state} False
explode_char_head 65@
remove_char_elegantly 65@

:AMBULAN_13521
if 
  not is_char_dead 68@
goto_if_false @AMBULAN_13554
set_char_only_damaged_by_player 68@ {state} False
explode_char_head 68@
remove_char_elegantly 68@

:AMBULAN_13554
if 
  not is_char_dead 71@
goto_if_false @AMBULAN_13587
set_char_only_damaged_by_player 71@ {state} False
explode_char_head 71@
remove_char_elegantly 71@

:AMBULAN_13587
if 
  not is_char_dead 74@
goto_if_false @AMBULAN_13620
set_char_only_damaged_by_player 74@ {state} False
explode_char_head 74@
remove_char_elegantly 74@

:AMBULAN_13620
mark_char_as_no_longer_needed 81@
mark_char_as_no_longer_needed 84@
mark_char_as_no_longer_needed 87@
mark_char_as_no_longer_needed 90@
mark_char_as_no_longer_needed 93@
mark_char_as_no_longer_needed 56@
mark_char_as_no_longer_needed 59@
mark_char_as_no_longer_needed 62@
mark_char_as_no_longer_needed 65@
mark_char_as_no_longer_needed 68@
mark_char_as_no_longer_needed 71@
mark_char_as_no_longer_needed 74@
52@ = 0
remove_blip 47@
remove_blip 82@
remove_blip 85@
remove_blip 88@
remove_blip 91@
remove_blip 94@
remove_blip 57@
remove_blip 60@
remove_blip 63@
remove_blip 66@
remove_blip 69@
remove_blip 72@
remove_blip 75@
remove_decision_maker 235@
set_wanted_multiplier 1.0
$timer_mobile_start = get_game_timer 
99@ = 0

:AMBULAN_13776
if 
  10 > 99@
goto_if_false @AMBULAN_13906
if 
  224@(99@,10i) == 1
goto_if_false @AMBULAN_13843
set_relationship RelationshipType.Hate {ofPedType} 99@ {toPedType} PedType.Player1
234@ -= 1
224@(99@,10i) = 0

:AMBULAN_13843
if 
  214@(99@,10i) == 1
goto_if_false @AMBULAN_13892
set_relationship RelationshipType.Dislike {ofPedType} 99@ {toPedType} PedType.Player1
234@ -= 1
214@(99@,10i) = 0

:AMBULAN_13892
99@ += 1
goto @AMBULAN_13776

:AMBULAN_13906
$onmission = 0
$flag_player_on_ambulance_mission = 0
mission_has_finished 
if 
  $done_ambulance_progress == 1
goto_if_false @AMBULAN_13959
$done_ambulance_progress = 2
show_update_stats False
start_new_script @BACKON 

:AMBULAN_13959
return 

:AMBULAN_13961
if 
  is_char_dead 77@
goto_if_false @AMBULAN_14002
print_now 'A_FAIL3' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_14002
if 
  $ped_time_limit == 0
goto_if_false @AMBULAN_14055
explode_char_head 77@
remove_char_elegantly 77@
print_now 'A_FAIL2' {time} 3000 {flag} 1
79@ = 1
return 

:AMBULAN_14055
if 
  80@ == 3
goto_if_false @AMBULAN_14223
179@, 180@, 181@ = get_char_coordinates 77@
40@ = get_car_health 34@
if 
  is_int_lvar_greater_than_int_lvar 39@ > 40@
goto_if_false @AMBULAN_14223
set_lvar_int_to_lvar_int 41@ = 39@
sub_int_lvar_from_int_lvar 41@ -= 40@
41@ *= 50
set_lvar_int_to_var_int 35@ = $ped_time_limit
sub_int_lvar_from_int_lvar 35@ -= 41@
if 
  35@ > 10
goto_if_false @AMBULAN_14179
sub_int_lvar_from_int_var $ped_time_limit -= 41@

:AMBULAN_14179
236@ = set_char_say_context 77@ {phrase} SpeechId.PainHigh
if 
  0 > $ped_time_limit
goto_if_false @AMBULAN_14215
$ped_time_limit = 0

:AMBULAN_14215
set_lvar_int_to_lvar_int 39@ = 40@

:AMBULAN_14223
if 
  80@ == 1
goto_if_false @AMBULAN_14508
if 
  locate_char_in_car_char_3d $scplayer {target} 77@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @AMBULAN_14508
43@ = get_number_of_passengers 34@
42@ = get_maximum_number_of_passengers 34@
if 
  is_int_lvar_equal_to_int_lvar 43@ == 42@
goto_if_false @AMBULAN_14360
if 
  50@ == 0
goto_if_false @AMBULAN_14346
print_now 'A_FULL' {time} 5000 {flag} 1

:AMBULAN_14346
50@ = 1
goto @AMBULAN_14367

:AMBULAN_14360
50@ = 0

:AMBULAN_14367
39@ = get_car_health 34@
if 
  50@ == 0
goto_if_false @AMBULAN_14485
if 
  97@ == 0
goto_if_false @AMBULAN_14437
task_enter_car_as_passenger 77@ {vehicle} 34@ {time} -2 {seat} -1
97@ = 1
goto @AMBULAN_14478

:AMBULAN_14437
98@ = get_script_task_status 77@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 98@ == 7
goto_if_false @AMBULAN_14478
task_enter_car_as_passenger 77@ {vehicle} 34@ {time} -2 {seat} -1

:AMBULAN_14478
goto @AMBULAN_14501

:AMBULAN_14485
print_now 'A_FULL' {time} 5000 {flag} 1

:AMBULAN_14501
80@ = 2

:AMBULAN_14508
if 
  80@ == 2
goto_if_false @AMBULAN_14587
if 
  not locate_char_in_car_char_2d $scplayer {otherChar} 77@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @AMBULAN_14564
80@ = 1

:AMBULAN_14564
if 
  not is_char_sitting_in_any_car 77@
goto_if_false @AMBULAN_14587
80@ = 1

:AMBULAN_14587
if 
  80@ == 2
goto_if_false @AMBULAN_14730
if 
  is_char_sitting_in_any_car 77@
goto_if_false @AMBULAN_14730
97@ = 0
remove_blip 78@
if 
  52@ == 0
goto_if_false @AMBULAN_14672
47@ = add_blip_for_coord 167@ {y} 168@ {z} 169@
52@ = 1

:AMBULAN_14672
set_lvar_int_to_lvar_int 49@ = 152@(240@,13i)
49@ /= 1000
print_with_number_big 'A_TIME' {num} 49@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_int_lvar_to_int_var $ped_time_limit += 152@(240@,13i)
80@ = 3

:AMBULAN_14730
if 
  80@ == 3
goto_if_false @AMBULAN_14815
if 
  locate_stopped_char_in_car_3d $scplayer {x} 167@ {y} 168@ {z} 169@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @AMBULAN_14815
task_go_straight_to_coord 77@ {x} 173@ {y} 174@ {z} 175@ {speed} MoveState.Run {time} -1
80@ = 4

:AMBULAN_14815
if 
  80@ == 4
goto_if_false @AMBULAN_15046
if 
  not is_char_sitting_in_any_car 77@
goto_if_false @AMBULAN_15046
task_go_straight_to_coord 77@ {x} 173@ {y} 174@ {z} 175@ {speed} MoveState.Run {time} -1
force_big_message_and_counter True
print_big 'A_PASS' {time} 3000 {style} TextStyle.MiddleSmallerHigher
if 
  45@ == 1
goto_if_false @AMBULAN_14986
set_lvar_int_to_lvar_int 49@ = 48@
49@ /= 1000
print_with_number_big 'A_TIME' {num} 49@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
34@ = store_car_char_is_in_no_save $scplayer
54@ = get_car_health 34@
54@ += 110
set_car_health 34@ {health} 54@
add_int_lvar_to_int_var $ped_time_limit += 48@
45@ += 1

:AMBULAN_14986
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
46@ += 1
increment_int_stat StatId.LivesSaved {value} 1
80@ = 0
set_char_bleeding 77@ {state} False
set_char_keep_task 77@ {state} True
mark_char_as_no_longer_needed 77@

:AMBULAN_15046
return 

//-------------Mission 123---------------
// Originally: Firefighter Sub-Mission

:FIRETRU
gosub @FIRETRU_16
gosub @FIRETRU_10441
terminate_this_script 

:FIRETRU_16
$onmission = 1
$flag_player_on_fire_mission = 1
script_name 'FIRETRU'
wait 0
if 
  $done_firetruck_progress == 0
goto_if_false @FIRETRU_65
register_mission_given 

:FIRETRU_65
165@ = load_char_decision_maker DecisionMakerType.Empty
load_mission_text 'FIRETRK'
show_update_stats False
162@ = 0.0
$fire_time_limit = 0
79@ = 0
80@ = 0
$db_fires_extinguished = 0
81@ = 0
83@ = 0
82@ = 0
121@ = 7.0
$db_firetruck_level = 1
77@ = 0
126@ = 0
78@ = 0
84@ = 0
35@ = -1
35@ = -1
35@ = -1
87@ = 0
54@ = 0
55@ = 0
56@ = 0
57@ = 0
58@ = 0
59@ = 0
60@ = 0
61@ = 0
62@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
$car_numer_flag = 0
$car_or_ped_flag = 0
set_wanted_multiplier 0.5
if 
  $onmission == 0
goto_if_false @FIRETRU_789
63@ = add_blip_for_coord $x {y} $y {z} $z
64@ = add_blip_for_coord $x {y} $y {z} $z
65@ = add_blip_for_coord $x {y} $y {z} $z
66@ = add_blip_for_coord $x {y} $y {z} $z
67@ = add_blip_for_coord $x {y} $y {z} $z
68@ = add_blip_for_coord $x {y} $y {z} $z
69@ = add_blip_for_coord $x {y} $y {z} $z
70@ = add_blip_for_coord $x {y} $y {z} $z
71@ = add_blip_for_coord $x {y} $y {z} $z
72@ = add_blip_for_coord $x {y} $y {z} $z
73@ = add_blip_for_coord $x {y} $y {z} $z
74@ = add_blip_for_coord $x {y} $y {z} $z
75@ = add_blip_for_coord $x {y} $y {z} $z
76@ = add_blip_for_coord $x {y} $y {z} $z
35@ = create_car 470 {x} 0.0 {y} 0.0 {z} 0.0
39@ = create_char PedType.Mission1 {modelId} 280 {x} 0.0 {y} 0.0 {z} 0.0
49@ = start_car_fire 35@
50@ = start_car_fire 35@
51@ = start_car_fire 35@
52@ = start_car_fire 35@
53@ = start_char_fire 39@
54@ = start_char_fire 39@
55@ = start_char_fire 39@
56@ = start_char_fire 39@
57@ = start_char_fire 39@
58@ = start_char_fire 39@
59@ = start_char_fire 39@
60@ = start_char_fire 39@
61@ = start_char_fire 39@
62@ = start_char_fire 39@

:FIRETRU_789
88@ = 0
89@ = 0
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = 0
103@ = 0
104@ = 0
105@ = 0
106@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
111@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
125@ = generate_random_int_in_range 25 {max} 44
if 
  125@ == 25
goto_if_false @FIRETRU_1027
set_lvar_int_to_constant 126@ = 405

:FIRETRU_1027
if 
  125@ == 26
goto_if_false @FIRETRU_1053
set_lvar_int_to_constant 126@ = 418

:FIRETRU_1053
if 
  125@ == 27
goto_if_false @FIRETRU_1079
set_lvar_int_to_constant 126@ = 421

:FIRETRU_1079
if 
  125@ == 28
goto_if_false @FIRETRU_1105
set_lvar_int_to_constant 126@ = 400

:FIRETRU_1105
if 
  125@ == 29
goto_if_false @FIRETRU_1131
set_lvar_int_to_constant 126@ = 404

:FIRETRU_1131
if 
  125@ == 30
goto_if_false @FIRETRU_1157
set_lvar_int_to_constant 126@ = 445

:FIRETRU_1157
if 
  125@ == 31
goto_if_false @FIRETRU_1183
set_lvar_int_to_constant 126@ = 466

:FIRETRU_1183
if 
  125@ == 32
goto_if_false @FIRETRU_1209
set_lvar_int_to_constant 126@ = 467

:FIRETRU_1209
if 
  125@ == 33
goto_if_false @FIRETRU_1235
set_lvar_int_to_constant 126@ = 479

:FIRETRU_1235
if 
  125@ == 34
goto_if_false @FIRETRU_1261
set_lvar_int_to_constant 126@ = 413

:FIRETRU_1261
if 
  125@ == 35
goto_if_false @FIRETRU_1287
set_lvar_int_to_constant 126@ = 420

:FIRETRU_1287
if 
  125@ == 36
goto_if_false @FIRETRU_1313
set_lvar_int_to_constant 126@ = 438

:FIRETRU_1313
if 
  125@ == 37
goto_if_false @FIRETRU_1339
set_lvar_int_to_constant 126@ = 440

:FIRETRU_1339
if 
  125@ == 38
goto_if_false @FIRETRU_1365
set_lvar_int_to_constant 126@ = 551

:FIRETRU_1365
if 
  125@ == 39
goto_if_false @FIRETRU_1391
set_lvar_int_to_constant 126@ = 470

:FIRETRU_1391
if 
  125@ == 40
goto_if_false @FIRETRU_1417
set_lvar_int_to_constant 126@ = 482

:FIRETRU_1417
if 
  125@ == 41
goto_if_false @FIRETRU_1443
set_lvar_int_to_constant 126@ = 546

:FIRETRU_1443
if 
  125@ == 42
goto_if_false @FIRETRU_1469
set_lvar_int_to_constant 126@ = 492

:FIRETRU_1469
if 
  125@ == 43
goto_if_false @FIRETRU_1495
set_lvar_int_to_constant 126@ = 560

:FIRETRU_1495
request_model 126@
wait 0
gosub @FIRETRU_8332
if 
  77@ == 1
goto_if_false @FIRETRU_1536
goto @FIRETRU_10441

:FIRETRU_1536
if 
  not has_model_loaded 126@
goto_if_false @FIRETRU_1600
wait 0
request_model 126@
gosub @FIRETRU_8332
if 
  77@ == 1
goto_if_false @FIRETRU_1593
goto @FIRETRU_10441

:FIRETRU_1593
goto @FIRETRU_1536

:FIRETRU_1600
119@ = 0
gosub @FIRETRU_5955
set_lvar_float_to_lvar_float 127@ = 153@
set_lvar_float_to_lvar_float 128@ = 154@
set_lvar_float_to_lvar_float 129@ = 155@
clear_area 127@ {y} 128@ {z} 129@ {radius} 5.0 {clearParticles} False
35@ = create_car 126@ {x} 127@ {y} 128@ {z} 129@
freeze_car_position_and_dont_load_collision 35@ {state} True
set_car_heading 35@ {heading} 160@
set_load_collision_for_car_flag 35@ {state} False
set_car_proofs 35@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
123@ = generate_random_float_in_range 0.0 {max} 359.9
set_car_heading 35@ {heading} 123@
50@ = start_car_fire 35@
remove_blip 64@
64@ = add_blip_for_car 35@
set_blip_as_friendly 64@ {state} True
change_blip_display 64@ {display} BlipDisplay.BlipOnly
set_upsidedown_car_not_damaged 35@ {state} True
119@ = 1
88@ += 1
40@ = create_random_char_as_driver 35@
set_char_decision_maker 40@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 40@ {state} False
set_char_only_damaged_by_player 40@ {state} True
set_char_proofs 40@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1
if 
  $db_firetruck_level > 2
goto_if_false @FIRETRU_1913
41@ = create_random_char_as_passenger 35@ {seat} SeatId.BikeRear
set_char_decision_maker 41@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 41@ {state} False
set_char_only_damaged_by_player 41@ {state} True
set_char_proofs 41@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_1913
if 
  $db_firetruck_level > 3
goto_if_false @FIRETRU_1985
42@ = create_random_char_as_passenger 35@ {seat} SeatId.RearLeft
set_char_decision_maker 42@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 42@ {state} False
set_char_only_damaged_by_player 42@ {state} True
set_char_proofs 42@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_1985
if 
  $db_firetruck_level > 4
goto_if_false @FIRETRU_2176
gosub @FIRETRU_5955
set_lvar_float_to_lvar_float 130@ = 153@
set_lvar_float_to_lvar_float 131@ = 154@
set_lvar_float_to_lvar_float 132@ = 155@
clear_area 130@ {y} 131@ {z} 132@ {radius} 5.0 {clearParticles} False
36@ = create_car 126@ {x} 130@ {y} 131@ {z} 132@
freeze_car_position_and_dont_load_collision 36@ {state} True
set_car_heading 36@ {heading} 160@
set_load_collision_for_car_flag 36@ {state} False
set_car_proofs 36@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
turn_car_to_face_coord 36@ {x} 127@ {y} 128@
51@ = start_car_fire 36@
set_car_forward_speed 36@ {forwardSpeed} 20.0
remove_blip 65@
65@ = add_blip_for_car 36@
set_blip_as_friendly 65@ {state} True
change_blip_display 65@ {display} BlipDisplay.BlipOnly
set_upsidedown_car_not_damaged 36@ {state} True
88@ += 1

:FIRETRU_2176
if 
  $db_firetruck_level > 5
goto_if_false @FIRETRU_2246
43@ = create_random_char_as_driver 36@
set_char_decision_maker 43@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 43@ {state} False
set_char_only_damaged_by_player 43@ {state} True
set_char_proofs 43@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2246
if 
  $db_firetruck_level > 6
goto_if_false @FIRETRU_2318
44@ = create_random_char_as_passenger 36@ {seat} SeatId.BikeRear
set_char_decision_maker 44@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 44@ {state} False
set_char_only_damaged_by_player 44@ {state} True
set_char_proofs 44@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2318
if 
  $db_firetruck_level > 7
goto_if_false @FIRETRU_2390
45@ = create_random_char_as_passenger 36@ {seat} SeatId.RearLeft
set_char_decision_maker 45@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 45@ {state} False
set_char_only_damaged_by_player 45@ {state} True
set_char_proofs 45@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2390
if 
  $db_firetruck_level > 8
goto_if_false @FIRETRU_2581
gosub @FIRETRU_5955
set_lvar_float_to_lvar_float 133@ = 153@
set_lvar_float_to_lvar_float 134@ = 154@
set_lvar_float_to_lvar_float 135@ = 155@
clear_area 133@ {y} 134@ {z} 135@ {radius} 5.0 {clearParticles} False
37@ = create_car 126@ {x} 133@ {y} 134@ {z} 135@
freeze_car_position_and_dont_load_collision 37@ {state} True
set_car_heading 37@ {heading} 160@
set_load_collision_for_car_flag 37@ {state} False
set_car_proofs 37@ {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
turn_car_to_face_coord 37@ {x} 127@ {y} 128@
52@ = start_car_fire 37@
set_car_forward_speed 37@ {forwardSpeed} 20.0
remove_blip 66@
66@ = add_blip_for_car 37@
set_blip_as_friendly 66@ {state} True
change_blip_display 66@ {display} BlipDisplay.BlipOnly
set_upsidedown_car_not_damaged 37@ {state} True
88@ += 1

:FIRETRU_2581
mark_model_as_no_longer_needed 126@
if 
  $db_firetruck_level > 9
goto_if_false @FIRETRU_2656
46@ = create_random_char_as_driver 37@
set_char_decision_maker 46@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 46@ {state} False
set_char_only_damaged_by_player 46@ {state} True
set_char_proofs 46@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2656
if 
  $db_firetruck_level > 10
goto_if_false @FIRETRU_2728
47@ = create_random_char_as_passenger 37@ {seat} SeatId.BikeRear
set_char_decision_maker 47@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 47@ {state} False
set_char_only_damaged_by_player 47@ {state} True
set_char_proofs 47@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2728
if 
  $db_firetruck_level > 11
goto_if_false @FIRETRU_2800
48@ = create_random_char_as_passenger 37@ {seat} SeatId.RearLeft
set_char_decision_maker 48@ {handleOrTemplate} 165@
set_load_collision_for_char_flag 48@ {state} False
set_char_only_damaged_by_player 48@ {state} True
set_char_proofs 48@ {bulletProof} False {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} False
88@ += 1

:FIRETRU_2800
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_2823
set_car_mission 35@ {carMission} CarMission.StopForever

:FIRETRU_2823
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_2846
set_car_mission 36@ {carMission} CarMission.StopForever

:FIRETRU_2846
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_2869
set_car_mission 37@ {carMission} CarMission.StopForever

:FIRETRU_2869
gosub @FIRETRU_8332
if 
  77@ == 1
goto_if_false @FIRETRU_2901
goto @FIRETRU_10441

:FIRETRU_2901
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_3008
146@, 147@, 148@ = get_char_coordinates 40@
s$fire_zone_name = get_name_of_zone 146@ {y} 147@ {z} 148@
if 
  5 > $db_firetruck_level
goto_if_false @FIRETRU_2989
print_string_in_string_now 'F_START' {replacementKey} s$fire_zone_name {duration} 5000 {style} TextStyle.Middle
goto @FIRETRU_3008

:FIRETRU_2989
print_string_in_string_now 'F_STAR1' {replacementKey} s$fire_zone_name {duration} 5000 {style} TextStyle.Middle

:FIRETRU_3008
if 
  $db_firetruck_level == 1
goto_if_false @FIRETRU_3038
88@ -= 1
delete_char 40@

:FIRETRU_3038
if 
  80@ == 0
goto_if_false @FIRETRU_3088
display_nth_onscreen_counter_with_string $db_firetruck_level {display} CounterDisplay.Number {slot} 1 {text} 'FLEV'
80@ = 1
goto @FIRETRU_3092

:FIRETRU_3088
freeze_onscreen_timer False

:FIRETRU_3092
set_lvar_int_to_var_int 85@ = $db_firetruck_level
85@ -= 4
$game_timer = get_game_timer 
set_lvar_int_to_var_int 87@ = $game_timer
87@ += 3000

:FIRETRU_3128
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @FIRETRU_3153
$fire_time_limit = 300000

:FIRETRU_3153
if 
is_ps2_keyboard_key_pressed 137
goto_if_false @FIRETRU_3295
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_3199
set_car_can_be_damaged 35@ {state} False
set_car_can_be_damaged 35@ {state} True

:FIRETRU_3199
if 
  $db_firetruck_level > 4
goto_if_false @FIRETRU_3247
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_3247
set_car_can_be_damaged 36@ {state} False
set_car_can_be_damaged 36@ {state} True

:FIRETRU_3247
if 
  $db_firetruck_level > 8
goto_if_false @FIRETRU_3295
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_3295
set_car_can_be_damaged 37@ {state} False
set_car_can_be_damaged 37@ {state} True

:FIRETRU_3295
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @FIRETRU_3331
$done_firetruck_progress = 0
$db_firetruck_level = 12
goto @FIRETRU_9884

:FIRETRU_3331
if 
is_ps2_keyboard_key_pressed 90
goto_if_false @FIRETRU_3499
clear_onscreen_timer $fire_time_limit
clear_onscreen_counter $db_fires_extinguished
clear_onscreen_counter $db_firetruck_level
clear_this_print 'F_START'
clear_this_print 'F_STAR1'
clear_this_print 'FIRELVL'
print_big 'F_PASS1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
set_lvar_int_to_var_int 79@ = $db_firetruck_level
mult_int_lvar_by_int_var 79@ *= $db_firetruck_level
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
print_with_number_big 'REWARD' {num} 79@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
add_score $player1 {money} 79@
print_with_number_big 'F_COMP1' {num} 5000 {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 5000
play_mission_passed_tune 2

:FIRETRU_3499
if 
  77@ == 1
goto_if_false @FIRETRU_3524
goto @FIRETRU_10441

:FIRETRU_3524
wait 0
$game_timer = get_game_timer 
gosub @FIRETRU_8332
if 
  77@ == 1
goto_if_false @FIRETRU_3565
goto @FIRETRU_10441

:FIRETRU_3565
if 
  2 > $got_siren_help_before
goto_if_false @FIRETRU_3762
if 
  $got_siren_help_before == 0
goto_if_false @FIRETRU_3685
if 
  not is_help_message_being_displayed 
goto_if_false @FIRETRU_3678
if 
  not is_message_being_displayed 
goto_if_false @FIRETRU_3671
if 
  TIMERA > 1000
goto_if_false @FIRETRU_3664
print_help 'SPRAY_1'
$got_siren_help_before = 1

:FIRETRU_3664
goto @FIRETRU_3678

:FIRETRU_3671
TIMERA = 0

:FIRETRU_3678
goto @FIRETRU_3762

:FIRETRU_3685
if 
  not is_help_message_being_displayed 
goto_if_false @FIRETRU_3762
if 
  not is_message_being_displayed 
goto_if_false @FIRETRU_3755
if 
  TIMERA > 1000
goto_if_false @FIRETRU_3748
print_help 'SIREN_1'
$got_siren_help_before = 2

:FIRETRU_3748
goto @FIRETRU_3762

:FIRETRU_3755
TIMERA = 0

:FIRETRU_3762
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_4145
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 35@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FIRETRU_3983
if 
  104@ == 0
goto_if_false @FIRETRU_3976
set_load_collision_for_car_flag 35@ {state} True
freeze_car_position_and_dont_load_collision 35@ {state} False
104@ = 1
if 
  $db_firetruck_level > 1
goto_if_false @FIRETRU_3894
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_3894
set_load_collision_for_char_flag 40@ {state} True

:FIRETRU_3894
if 
  $db_firetruck_level > 2
goto_if_false @FIRETRU_3935
if 
  not is_char_dead 41@
goto_if_false @FIRETRU_3935
set_load_collision_for_char_flag 41@ {state} True

:FIRETRU_3935
if 
  $db_firetruck_level > 3
goto_if_false @FIRETRU_3976
if 
  not is_char_dead 42@
goto_if_false @FIRETRU_3976
set_load_collision_for_char_flag 42@ {state} True

:FIRETRU_3976
goto @FIRETRU_4145

:FIRETRU_3983
if 
  104@ == 1
goto_if_false @FIRETRU_4145
set_load_collision_for_car_flag 35@ {state} False
freeze_car_position_and_dont_load_collision 35@ {state} True
104@ = 0
if 
  $db_firetruck_level > 1
goto_if_false @FIRETRU_4063
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_4063
set_load_collision_for_char_flag 40@ {state} False

:FIRETRU_4063
if 
  $db_firetruck_level > 2
goto_if_false @FIRETRU_4104
if 
  not is_char_dead 41@
goto_if_false @FIRETRU_4104
set_load_collision_for_char_flag 41@ {state} False

:FIRETRU_4104
if 
  $db_firetruck_level > 3
goto_if_false @FIRETRU_4145
if 
  not is_char_dead 42@
goto_if_false @FIRETRU_4145
set_load_collision_for_char_flag 42@ {state} False

:FIRETRU_4145
if 
  $db_firetruck_level > 4
goto_if_false @FIRETRU_4947
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_4546
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 36@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FIRETRU_4384
if 
  105@ == 0
goto_if_false @FIRETRU_4377
set_load_collision_for_car_flag 36@ {state} True
freeze_car_position_and_dont_load_collision 36@ {state} False
105@ = 1
if 
  $db_firetruck_level > 5
goto_if_false @FIRETRU_4295
if 
  not is_char_dead 43@
goto_if_false @FIRETRU_4295
set_load_collision_for_char_flag 43@ {state} True

:FIRETRU_4295
if 
  $db_firetruck_level > 6
goto_if_false @FIRETRU_4336
if 
  not is_char_dead 44@
goto_if_false @FIRETRU_4336
set_load_collision_for_char_flag 44@ {state} True

:FIRETRU_4336
if 
  $db_firetruck_level > 7
goto_if_false @FIRETRU_4377
if 
  not is_char_dead 45@
goto_if_false @FIRETRU_4377
set_load_collision_for_char_flag 45@ {state} True

:FIRETRU_4377
goto @FIRETRU_4546

:FIRETRU_4384
if 
  105@ == 1
goto_if_false @FIRETRU_4546
set_load_collision_for_car_flag 36@ {state} False
freeze_car_position_and_dont_load_collision 36@ {state} True
105@ = 0
if 
  $db_firetruck_level > 5
goto_if_false @FIRETRU_4464
if 
  not is_char_dead 43@
goto_if_false @FIRETRU_4464
set_load_collision_for_char_flag 43@ {state} False

:FIRETRU_4464
if 
  $db_firetruck_level > 6
goto_if_false @FIRETRU_4505
if 
  not is_char_dead 44@
goto_if_false @FIRETRU_4505
set_load_collision_for_char_flag 44@ {state} False

:FIRETRU_4505
if 
  $db_firetruck_level > 7
goto_if_false @FIRETRU_4546
if 
  not is_char_dead 45@
goto_if_false @FIRETRU_4546
set_load_collision_for_char_flag 45@ {state} False

:FIRETRU_4546
if 
  $db_firetruck_level > 8
goto_if_false @FIRETRU_4947
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_4947
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 37@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @FIRETRU_4785
if 
  106@ == 0
goto_if_false @FIRETRU_4778
set_load_collision_for_car_flag 37@ {state} True
freeze_car_position_and_dont_load_collision 37@ {state} False
if 
  $db_firetruck_level > 9
goto_if_false @FIRETRU_4689
if 
  not is_char_dead 46@
goto_if_false @FIRETRU_4689
set_load_collision_for_char_flag 46@ {state} True

:FIRETRU_4689
if 
  $db_firetruck_level > 10
goto_if_false @FIRETRU_4730
if 
  not is_char_dead 47@
goto_if_false @FIRETRU_4730
set_load_collision_for_char_flag 47@ {state} True

:FIRETRU_4730
if 
  $db_firetruck_level > 11
goto_if_false @FIRETRU_4771
if 
  not is_char_dead 48@
goto_if_false @FIRETRU_4771
set_load_collision_for_char_flag 48@ {state} True

:FIRETRU_4771
106@ = 1

:FIRETRU_4778
goto @FIRETRU_4947

:FIRETRU_4785
if 
  106@ == 1
goto_if_false @FIRETRU_4947
set_load_collision_for_car_flag 37@ {state} False
freeze_car_position_and_dont_load_collision 37@ {state} True
106@ = 0
if 
  $db_firetruck_level > 9
goto_if_false @FIRETRU_4865
if 
  not is_char_dead 46@
goto_if_false @FIRETRU_4865
set_load_collision_for_char_flag 46@ {state} False

:FIRETRU_4865
if 
  $db_firetruck_level > 10
goto_if_false @FIRETRU_4906
if 
  not is_char_dead 47@
goto_if_false @FIRETRU_4906
set_load_collision_for_char_flag 47@ {state} False

:FIRETRU_4906
if 
  $db_firetruck_level > 11
goto_if_false @FIRETRU_4947
if 
  not is_char_dead 48@
goto_if_false @FIRETRU_4947
set_load_collision_for_char_flag 48@ {state} False

:FIRETRU_4947
set_lvar_int_to_lvar_int 34@ = 35@
set_lvar_int_to_lvar_int 49@ = 50@
set_lvar_int_to_lvar_int 90@ = 92@
set_lvar_int_to_lvar_int 63@ = 64@
$car_numer_flag = 1
gosub @FIRETRU_8668
set_lvar_int_to_lvar_int 50@ = 49@
set_lvar_int_to_lvar_int 92@ = 90@
set_lvar_int_to_lvar_int 64@ = 63@
if 
  $db_firetruck_level > 1
goto_if_false @FIRETRU_5098
set_lvar_int_to_lvar_int 39@ = 40@
set_lvar_int_to_lvar_int 91@ = 95@
set_lvar_int_to_lvar_int 53@ = 54@
set_lvar_int_to_lvar_int 67@ = 68@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 95@ = 91@
set_lvar_int_to_lvar_int 54@ = 53@
set_lvar_int_to_lvar_int 68@ = 67@

:FIRETRU_5098
if 
  $db_firetruck_level > 2
goto_if_false @FIRETRU_5179
set_lvar_int_to_lvar_int 39@ = 41@
set_lvar_int_to_lvar_int 91@ = 96@
set_lvar_int_to_lvar_int 53@ = 55@
set_lvar_int_to_lvar_int 67@ = 69@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 96@ = 91@
set_lvar_int_to_lvar_int 55@ = 53@
set_lvar_int_to_lvar_int 69@ = 67@

:FIRETRU_5179
if 
  $db_firetruck_level > 3
goto_if_false @FIRETRU_5260
set_lvar_int_to_lvar_int 39@ = 42@
set_lvar_int_to_lvar_int 91@ = 97@
set_lvar_int_to_lvar_int 53@ = 56@
set_lvar_int_to_lvar_int 67@ = 70@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 97@ = 91@
set_lvar_int_to_lvar_int 56@ = 53@
set_lvar_int_to_lvar_int 70@ = 67@

:FIRETRU_5260
if 
  $db_firetruck_level > 4
goto_if_false @FIRETRU_5348
set_lvar_int_to_lvar_int 34@ = 36@
set_lvar_int_to_lvar_int 49@ = 51@
set_lvar_int_to_lvar_int 90@ = 93@
set_lvar_int_to_lvar_int 63@ = 65@
$car_numer_flag = 2
gosub @FIRETRU_8668
set_lvar_int_to_lvar_int 51@ = 49@
set_lvar_int_to_lvar_int 93@ = 90@
set_lvar_int_to_lvar_int 65@ = 63@

:FIRETRU_5348
if 
  $db_firetruck_level > 5
goto_if_false @FIRETRU_5429
set_lvar_int_to_lvar_int 39@ = 43@
set_lvar_int_to_lvar_int 91@ = 98@
set_lvar_int_to_lvar_int 53@ = 57@
set_lvar_int_to_lvar_int 67@ = 71@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 98@ = 91@
set_lvar_int_to_lvar_int 57@ = 53@
set_lvar_int_to_lvar_int 71@ = 67@

:FIRETRU_5429
if 
  $db_firetruck_level > 6
goto_if_false @FIRETRU_5510
set_lvar_int_to_lvar_int 39@ = 44@
set_lvar_int_to_lvar_int 91@ = 99@
set_lvar_int_to_lvar_int 53@ = 58@
set_lvar_int_to_lvar_int 67@ = 72@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 99@ = 91@
set_lvar_int_to_lvar_int 58@ = 53@
set_lvar_int_to_lvar_int 72@ = 67@

:FIRETRU_5510
if 
  $db_firetruck_level > 7
goto_if_false @FIRETRU_5591
set_lvar_int_to_lvar_int 39@ = 45@
set_lvar_int_to_lvar_int 91@ = 100@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 67@ = 73@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 100@ = 91@
set_lvar_int_to_lvar_int 59@ = 53@
set_lvar_int_to_lvar_int 73@ = 67@

:FIRETRU_5591
if 
  $db_firetruck_level > 8
goto_if_false @FIRETRU_5679
set_lvar_int_to_lvar_int 34@ = 37@
set_lvar_int_to_lvar_int 49@ = 52@
set_lvar_int_to_lvar_int 90@ = 94@
set_lvar_int_to_lvar_int 63@ = 66@
$car_numer_flag = 3
gosub @FIRETRU_8668
set_lvar_int_to_lvar_int 52@ = 49@
set_lvar_int_to_lvar_int 94@ = 90@
set_lvar_int_to_lvar_int 66@ = 63@

:FIRETRU_5679
if 
  $db_firetruck_level > 9
goto_if_false @FIRETRU_5760
set_lvar_int_to_lvar_int 39@ = 46@
set_lvar_int_to_lvar_int 91@ = 101@
set_lvar_int_to_lvar_int 53@ = 60@
set_lvar_int_to_lvar_int 67@ = 74@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 101@ = 91@
set_lvar_int_to_lvar_int 60@ = 53@
set_lvar_int_to_lvar_int 74@ = 67@

:FIRETRU_5760
if 
  $db_firetruck_level > 10
goto_if_false @FIRETRU_5841
set_lvar_int_to_lvar_int 39@ = 47@
set_lvar_int_to_lvar_int 91@ = 102@
set_lvar_int_to_lvar_int 53@ = 61@
set_lvar_int_to_lvar_int 67@ = 75@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 102@ = 91@
set_lvar_int_to_lvar_int 61@ = 53@
set_lvar_int_to_lvar_int 75@ = 67@

:FIRETRU_5841
if 
  $db_firetruck_level > 11
goto_if_false @FIRETRU_5922
set_lvar_int_to_lvar_int 39@ = 48@
set_lvar_int_to_lvar_int 91@ = 103@
set_lvar_int_to_lvar_int 53@ = 62@
set_lvar_int_to_lvar_int 67@ = 76@
gosub @FIRETRU_9196
set_lvar_int_to_lvar_int 103@ = 91@
set_lvar_int_to_lvar_int 62@ = 53@
set_lvar_int_to_lvar_int 76@ = 67@

:FIRETRU_5922
if 
  is_int_lvar_greater_or_equal_to_int_lvar 89@ >= 88@
goto_if_false @FIRETRU_5948
goto @FIRETRU_9884

:FIRETRU_5948
goto @FIRETRU_3128

:FIRETRU_5955
wait 0
120@ = 0
TIMERA = 0

:FIRETRU_5973
if 
  120@ == 0
goto_if_false @FIRETRU_8063
120@ = 1
163@ = 1
162@ += 1.0
if 
  not is_char_dead $scplayer
goto_if_false @FIRETRU_6082
if 
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @FIRETRU_6075
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1

:FIRETRU_6075
goto @FIRETRU_6089

:FIRETRU_6082
77@ = 1

:FIRETRU_6089
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @FIRETRU_6143
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_6136
82@ = 1

:FIRETRU_6136
goto @FIRETRU_6167

:FIRETRU_6143
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_6167
82@ = 1

:FIRETRU_6167
if 
  82@ == 1
goto_if_false @FIRETRU_6294
if 
  $controlmode <> 3
goto_if_false @FIRETRU_6252
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_6245
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1

:FIRETRU_6245
goto @FIRETRU_6294

:FIRETRU_6252
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_6294
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1

:FIRETRU_6294
if 
  77@ == 1
goto_if_false @FIRETRU_6319
goto @FIRETRU_10441

:FIRETRU_6319
143@, 144@, 145@ = get_char_coordinates $scplayer
cset_lvar_float_to_var_int 156@ =# $db_firetruck_level
156@ *= 60.0
add_float_lvar_to_float_lvar 156@ += 162@
if 
  170.0 > 156@
goto_if_false @FIRETRU_6390
156@ = 170.0

:FIRETRU_6390
set_lvar_float_to_lvar_float 149@ = 143@
add_float_lvar_to_float_lvar 149@ += 156@
set_lvar_float_to_lvar_float 151@ = 143@
sub_float_lvar_from_float_lvar 151@ -= 156@
set_lvar_float_to_lvar_float 150@ = 144@
add_float_lvar_to_float_lvar 150@ += 156@
set_lvar_float_to_lvar_float 152@ = 144@
sub_float_lvar_from_float_lvar 152@ -= 156@
153@ = generate_random_float_in_range 151@ {max} 149@
154@ = generate_random_float_in_range 152@ {max} 150@
153@, 154@, 155@, 157@, 158@, 159@, 160@ = get_closest_straight_road 153@ {y} 154@ {z} 145@ {minDist} 10.0 {maxDist} 500.0
if 
  153@ == 0.0
goto_if_false @FIRETRU_6609
if 
  154@ == 0.0
goto_if_false @FIRETRU_6609
if 
  157@ == 0.0
goto_if_false @FIRETRU_6609
if 
  158@ == 0.0
goto_if_false @FIRETRU_6609
120@ = 0

:FIRETRU_6609
if 
  120@ == 1
goto_if_false @FIRETRU_6778
124@ = get_distance_between_coords_3d 143@ {fromY} 144@ {fromZ} 145@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  140.0 > 124@
goto_if_false @FIRETRU_6678
120@ = 0

:FIRETRU_6678
if 
  119@ == 1
goto_if_false @FIRETRU_6764
if 
  35.0 > 162@
goto_if_false @FIRETRU_6757
s$fire_zone_name2 = get_name_of_zone 153@ {y} 154@ {z} 155@
if 
  not is_var_text_label_equal_to_text_label s$fire_zone_name2 == s$fire_zone_name
goto_if_false @FIRETRU_6757
120@ = 0

:FIRETRU_6757
goto @FIRETRU_6778

:FIRETRU_6764
s$fire_zone_name = get_name_of_zone 153@ {y} 154@ {z} 155@

:FIRETRU_6778
if 
  120@ == 1
goto_if_false @FIRETRU_7380
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  2 > $Return_cities_passed
goto_if_false @FIRETRU_7380
if 
  $Return_cities_passed == 0
goto_if_false @FIRETRU_7138
if and
  78.4427 > 153@
  -699.519 > 154@
goto_if_false @FIRETRU_6878
120@ = 0

:FIRETRU_6878
if 
  120@ == 1
goto_if_false @FIRETRU_7138
if and
  -252.6557 > 153@
  -285.766 > 154@
goto_if_false @FIRETRU_6934
120@ = 0

:FIRETRU_6934
if 
  120@ == 1
goto_if_false @FIRETRU_7138
if 
  -948.3447 > 153@
goto_if_false @FIRETRU_6980
120@ = 0

:FIRETRU_6980
if 
  120@ == 1
goto_if_false @FIRETRU_7138
if and
  153@ > 1473.448
  154@ > 403.7353
goto_if_false @FIRETRU_7036
120@ = 0

:FIRETRU_7036
if 
  120@ == 1
goto_if_false @FIRETRU_7138
if 
  154@ > 578.6325
goto_if_false @FIRETRU_7082
120@ = 0

:FIRETRU_7082
if 
  120@ == 1
goto_if_false @FIRETRU_7138
if and
  837.5551 > 153@
  154@ > 347.4097
goto_if_false @FIRETRU_7138
120@ = 0

:FIRETRU_7138
if 
  120@ == 1
goto_if_false @FIRETRU_7380
if 
  $Return_cities_passed == 1
goto_if_false @FIRETRU_7380
if and
  153@ > 1473.448
  154@ > 403.7353
goto_if_false @FIRETRU_7212
120@ = 0

:FIRETRU_7212
if 
  120@ == 1
goto_if_false @FIRETRU_7380
if and
  154@ > 578.6325
  153@ > -1528.498
goto_if_false @FIRETRU_7268
120@ = 0

:FIRETRU_7268
if 
  120@ == 1
goto_if_false @FIRETRU_7380
if and
  837.5551 > 153@
  153@ > -1528.498
  154@ > 347.4097
goto_if_false @FIRETRU_7334
120@ = 0

:FIRETRU_7334
if 
  120@ == 1
goto_if_false @FIRETRU_7380
if 
  154@ > 1380.0
goto_if_false @FIRETRU_7380
120@ = 0

:FIRETRU_7380
if 
  120@ == 1
goto_if_false @FIRETRU_7580
if 
  2150.0 > 153@
goto_if_false @FIRETRU_7489
if 
  153@ > 1970.0
goto_if_false @FIRETRU_7489
if 
  -2274.0 > 154@
goto_if_false @FIRETRU_7489
if 
  154@ > -2670.0
goto_if_false @FIRETRU_7489
120@ = 0

:FIRETRU_7489
if 
  2150.0 > 153@
goto_if_false @FIRETRU_7580
if 
  153@ > 1590.0
goto_if_false @FIRETRU_7580
if 
  -2397.0 > 154@
goto_if_false @FIRETRU_7580
if 
  154@ > -2670.0
goto_if_false @FIRETRU_7580
120@ = 0

:FIRETRU_7580
if 
  120@ == 1
goto_if_false @FIRETRU_7780
if 
  -1070.0 > 153@
goto_if_false @FIRETRU_7689
if 
  153@ > -1737.0
goto_if_false @FIRETRU_7689
if 
  -185.0 > 154@
goto_if_false @FIRETRU_7689
if 
  154@ > -590.0
goto_if_false @FIRETRU_7689
120@ = 0

:FIRETRU_7689
if 
  -1081.0 > 153@
goto_if_false @FIRETRU_7780
if 
  153@ > -1600.0
goto_if_false @FIRETRU_7780
if 
  415.0 > 154@
goto_if_false @FIRETRU_7780
if 
  154@ > -185.0
goto_if_false @FIRETRU_7780
120@ = 0

:FIRETRU_7780
if 
  120@ == 1
goto_if_false @FIRETRU_7889
if 
  1733.0 > 153@
goto_if_false @FIRETRU_7889
if 
  153@ > 1500.0
goto_if_false @FIRETRU_7889
if 
  1702.0 > 154@
goto_if_false @FIRETRU_7889
if 
  154@ > 1529.0
goto_if_false @FIRETRU_7889
120@ = 0

:FIRETRU_7889
if 
  120@ == 1
goto_if_false @FIRETRU_8052
if 
  $db_firetruck_level > 4
goto_if_false @FIRETRU_8052
161@ = get_distance_between_coords_3d 127@ {fromY} 128@ {fromZ} 129@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  20.0 > 161@
goto_if_false @FIRETRU_7983
120@ = 0
goto @FIRETRU_8052

:FIRETRU_7983
if 
  $db_firetruck_level > 8
goto_if_false @FIRETRU_8052
161@ = get_distance_between_coords_3d 130@ {fromY} 131@ {fromZ} 132@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  20.0 > 161@
goto_if_false @FIRETRU_8052
120@ = 0

:FIRETRU_8052
wait 0
goto @FIRETRU_5973

:FIRETRU_8063
if 
  $db_firetruck_level > 4
goto_if_false @FIRETRU_8195
161@ = get_distance_between_coords_3d 127@ {fromY} 128@ {fromZ} 129@ {toX} 153@ {toY} 154@ {toZ} 155@
if 
  $db_firetruck_level > 8
goto_if_false @FIRETRU_8170
161@ = get_distance_between_coords_3d 130@ {fromY} 131@ {fromZ} 132@ {toX} 153@ {toY} 154@ {toZ} 155@
161@ /= 4.0
add_float_lvar_to_float_lvar 124@ += 161@
goto @FIRETRU_8188

:FIRETRU_8170
add_float_lvar_to_float_lvar 124@ += 161@
161@ /= 8.0

:FIRETRU_8188
goto @FIRETRU_8195

:FIRETRU_8195
if 
  9 > $db_firetruck_level
goto_if_false @FIRETRU_8238
set_lvar_float_to_lvar_float 122@ = 124@
122@ /= 8.0
goto @FIRETRU_8256

:FIRETRU_8238
set_lvar_float_to_lvar_float 122@ = 124@
122@ /= 10.0

:FIRETRU_8256
122@ *= 1000.0
cset_lvar_int_to_lvar_float 78@ =# 122@
add_int_lvar_to_int_var $fire_time_limit += 78@
if 
  60000 > $fire_time_limit
goto_if_false @FIRETRU_8313
$fire_time_limit = 60000

:FIRETRU_8313
163@ = 0
162@ = 0.0
return 

:FIRETRU_8332
if 
  80@ == 1
goto_if_false @FIRETRU_8395
if 
  1 > $fire_time_limit
goto_if_false @FIRETRU_8395
clear_prints 
print_now 'F_FAIL2' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_8395
if 
  not is_char_dead $scplayer
goto_if_false @FIRETRU_8457
if 
  not is_char_in_model $scplayer {modelId} 407
goto_if_false @FIRETRU_8457
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1
return 

:FIRETRU_8457
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @FIRETRU_8511
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_8504
82@ = 1

:FIRETRU_8504
goto @FIRETRU_8535

:FIRETRU_8511
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_8535
82@ = 1

:FIRETRU_8535
if 
  82@ == 1
goto_if_false @FIRETRU_8666
if 
  $controlmode <> 3
goto_if_false @FIRETRU_8622
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FIRETRU_8615
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1
return 

:FIRETRU_8615
goto @FIRETRU_8666

:FIRETRU_8622
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @FIRETRU_8666
clear_prints 
print_now 'F_CANC' {time} 3000 {flag} 1
77@ = 1
return 

:FIRETRU_8666
return 

:FIRETRU_8668
if 
  90@ <> 10
goto_if_false @FIRETRU_9194
if 
  not is_car_dead 34@
goto_if_false @FIRETRU_9018
$car_or_ped_flag = 1
if 
  does_script_fire_exist 49@
goto_if_false @FIRETRU_8887
if 
  not is_script_fire_extinguished 49@
goto_if_false @FIRETRU_8756
86@ = get_car_health 34@
goto @FIRETRU_8880

:FIRETRU_8756
if 
  90@ <> 10
goto_if_false @FIRETRU_8880
remove_blip 63@
task_everyone_leave_car 34@
remove_script_fire 49@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_8839
display_nth_onscreen_counter_with_string $db_fires_extinguished {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_8839
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
90@ = 10
$db_fires_extinguished += 1
89@ += 1

:FIRETRU_8880
goto @FIRETRU_9011

:FIRETRU_8887
if 
  90@ <> 10
goto_if_false @FIRETRU_9011
remove_blip 63@
task_everyone_leave_car 34@
remove_script_fire 49@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_8970
display_nth_onscreen_counter_with_string $db_fires_extinguished {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_8970
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
90@ = 10
$db_fires_extinguished += 1
89@ += 1

:FIRETRU_9011
goto @FIRETRU_9187

:FIRETRU_9018
if 
  is_car_in_water 34@
goto_if_false @FIRETRU_9160
if 
  90@ <> 10
goto_if_false @FIRETRU_9153
remove_blip 63@
task_everyone_leave_car 34@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9112
display_nth_onscreen_counter_with_string $db_fires_extinguished {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9112
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
90@ = 10
$db_fires_extinguished += 1
89@ += 1

:FIRETRU_9153
goto @FIRETRU_9187

:FIRETRU_9160
clear_prints 
print_now 'F_FAIL4' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_9187
goto @FIRETRU_9194

:FIRETRU_9194
return 

:FIRETRU_9196
if 
  2 > 91@
goto_if_false @FIRETRU_9882
if 
  not is_char_dead 39@
goto_if_false @FIRETRU_9679
if 
  91@ == 0
goto_if_false @FIRETRU_9411
if 
  not is_char_in_any_car 39@
goto_if_false @FIRETRU_9343
53@ = start_char_fire 39@
138@, 139@, 140@ = get_char_coordinates 39@
task_flee_point 39@ {x} 138@ {y} 139@ {z} 140@ {radius} 20.0 {time} -1
67@ = add_blip_for_char 39@
set_blip_as_friendly 67@ {state} True
change_blip_display 67@ {display} BlipDisplay.BlipOnly
91@ = 1
goto @FIRETRU_9411

:FIRETRU_9343
if 
  90@ == 10
goto_if_false @FIRETRU_9411
if 
  is_char_in_any_car 39@
goto_if_false @FIRETRU_9411
164@ = get_script_task_status 39@ {taskId} 1587
if 
  is_int_lvar_equal_to_constant 164@ == 7
goto_if_false @FIRETRU_9411
task_leave_any_car 39@

:FIRETRU_9411
if 
  91@ == 1
goto_if_false @FIRETRU_9672
$car_or_ped_flag = 2
if 
  does_script_fire_exist 53@
goto_if_false @FIRETRU_9576
if 
  is_script_fire_extinguished 53@
goto_if_false @FIRETRU_9569
remove_script_fire 53@
remove_blip 67@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9528
display_nth_onscreen_counter_with_string $db_fires_extinguished {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9528
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
$db_fires_extinguished += 1
89@ += 1
91@ = 2

:FIRETRU_9569
goto @FIRETRU_9672

:FIRETRU_9576
remove_blip 67@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9631
display_nth_onscreen_counter_with_string $db_fires_extinguished {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9631
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
$db_fires_extinguished += 1
89@ += 1
91@ = 2

:FIRETRU_9672
goto @FIRETRU_9882

:FIRETRU_9679
if 
  is_char_in_water 39@
goto_if_false @FIRETRU_9855
if 
  91@ == 1
goto_if_false @FIRETRU_9821
remove_script_fire 53@
remove_blip 67@
increment_int_stat StatId.FiresExtinguished {value} 1
if 
  81@ == 0
goto_if_false @FIRETRU_9773
display_nth_onscreen_counter_with_string $db_fires_extinguished {display} CounterDisplay.Number {slot} 2 {text} 'F_EXTIN'
81@ = 1

:FIRETRU_9773
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
$db_fires_extinguished += 1
89@ += 1
91@ = 2
goto @FIRETRU_9848

:FIRETRU_9821
clear_prints 
print_now 'F_FAIL2' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_9848
goto @FIRETRU_9882

:FIRETRU_9855
clear_prints 
print_now 'F_FAIL3' {time} 5000 {flag} 1
77@ = 1
return 

:FIRETRU_9882
return 

:FIRETRU_9884
freeze_onscreen_timer True
remove_all_script_fires 
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
if 
  is_char_in_any_car $scplayer
goto_if_false @FIRETRU_10008
38@ = store_car_char_is_in_no_save $scplayer
84@ = get_car_health 38@
84@ += 150
set_car_health 38@ {health} 84@

:FIRETRU_10008
mark_car_as_no_longer_needed 35@
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_10036
set_car_only_damaged_by_player 35@ {state} False

:FIRETRU_10036
mark_car_as_no_longer_needed 36@
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_10064
set_car_only_damaged_by_player 36@ {state} False

:FIRETRU_10064
mark_car_as_no_longer_needed 37@
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_10092
set_car_only_damaged_by_player 37@ {state} False

:FIRETRU_10092
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_model_as_no_longer_needed 126@
register_int_stat StatId.FirefighterLevel {value} $db_firetruck_level
$db_firetruck_level += 1
if 
  $db_firetruck_level == 13
goto_if_false @FIRETRU_10360
clear_onscreen_timer $fire_time_limit
clear_onscreen_counter $db_fires_extinguished
clear_onscreen_counter $db_firetruck_level
clear_this_print 'F_START'
clear_this_print 'F_STAR1'
clear_this_print 'FIRELVL'
print_big 'F_PASS1' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_var_int 79@ = $db_firetruck_level
mult_int_lvar_by_int_var 79@ *= $db_firetruck_level
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
79@ += 5000
print_with_number_big 'F_COMP1' {num} 13450 {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 79@
play_mission_passed_tune 2
if 
  $done_firetruck_progress == 0
goto_if_false @FIRETRU_10344
show_update_stats False
player_made_progress 1
register_oddjob_mission_passed 
$done_firetruck_progress = 1

:FIRETRU_10344
77@ = 1
return 
goto @FIRETRU_10434

:FIRETRU_10360
print_big 'F_PASS1' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
set_lvar_int_to_var_int 79@ = $db_firetruck_level
mult_int_lvar_by_int_var 79@ *= $db_firetruck_level
79@ *= 50
add_int_lvar_to_int_lvar 83@ += 79@
print_with_number_big 'REWARD' {num} 79@ {duration} 6000 {style} TextStyle.LightBlueTop
add_score $player1 {money} 79@

:FIRETRU_10434
goto @FIRETRU_789

:FIRETRU_10441
clear_onscreen_timer $fire_time_limit
clear_onscreen_counter $db_fires_extinguished
clear_onscreen_counter $db_firetruck_level
clear_this_print 'F_START'
clear_this_print 'F_STAR1'
clear_this_print 'FIRELVL'
if 
  $db_firetruck_level <> 13
goto_if_false @FIRETRU_10549
print_big 'F_FAIL1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_number_big 'TSCORE' {num} 83@ {duration} 6000 {style} TextStyle.WhiteMiddleSmaller
goto @FIRETRU_10549

:FIRETRU_10549
set_wanted_multiplier 1.0
remove_blip 63@
remove_blip 64@
remove_blip 65@
remove_blip 66@
remove_blip 67@
remove_blip 68@
remove_blip 69@
remove_blip 70@
remove_blip 71@
remove_blip 72@
remove_blip 73@
remove_blip 74@
remove_blip 75@
remove_blip 76@
if 
  $db_firetruck_level <> 13
goto_if_false @FIRETRU_11226
if 
  not is_char_dead 40@
goto_if_false @FIRETRU_10689
set_char_only_damaged_by_player 40@ {state} False
set_char_health 40@ {health} 10
set_char_proofs 40@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10689
if 
  not is_char_dead 41@
goto_if_false @FIRETRU_10734
set_char_only_damaged_by_player 41@ {state} False
set_char_health 41@ {health} 10
set_char_proofs 41@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10734
if 
  not is_char_dead 42@
goto_if_false @FIRETRU_10779
set_char_only_damaged_by_player 42@ {state} False
set_char_health 42@ {health} 10
set_char_proofs 42@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10779
if 
  not is_char_dead 43@
goto_if_false @FIRETRU_10824
set_char_only_damaged_by_player 43@ {state} False
set_char_health 43@ {health} 10
set_char_proofs 43@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10824
if 
  not is_char_dead 44@
goto_if_false @FIRETRU_10869
set_char_only_damaged_by_player 44@ {state} False
set_char_health 44@ {health} 10
set_char_proofs 44@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10869
if 
  not is_char_dead 45@
goto_if_false @FIRETRU_10914
set_char_only_damaged_by_player 45@ {state} False
set_char_health 45@ {health} 10
set_char_proofs 45@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10914
if 
  not is_char_dead 46@
goto_if_false @FIRETRU_10959
set_char_only_damaged_by_player 46@ {state} False
set_char_health 46@ {health} 10
set_char_proofs 46@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_10959
if 
  not is_char_dead 47@
goto_if_false @FIRETRU_11004
set_char_only_damaged_by_player 47@ {state} False
set_char_health 47@ {health} 10
set_char_proofs 47@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_11004
if 
  not is_char_dead 48@
goto_if_false @FIRETRU_11049
set_char_only_damaged_by_player 48@ {state} False
set_char_health 48@ {health} 10
set_char_proofs 48@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:FIRETRU_11049
if 
  not is_car_dead 35@
goto_if_false @FIRETRU_11108
set_car_only_damaged_by_player 35@ {state} False
set_car_proofs 35@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_car_on_fire 35@
goto_if_false @FIRETRU_11108
explode_car 35@

:FIRETRU_11108
if 
  not is_car_dead 36@
goto_if_false @FIRETRU_11167
set_car_only_damaged_by_player 36@ {state} False
set_car_proofs 36@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_car_on_fire 36@
goto_if_false @FIRETRU_11167
explode_car 36@

:FIRETRU_11167
if 
  not is_car_dead 37@
goto_if_false @FIRETRU_11226
set_car_only_damaged_by_player 37@ {state} False
set_car_proofs 37@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  is_car_on_fire 37@
goto_if_false @FIRETRU_11226
explode_car 37@

:FIRETRU_11226
mark_char_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_char_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_car_as_no_longer_needed 35@
mark_car_as_no_longer_needed 36@
mark_car_as_no_longer_needed 37@
mark_model_as_no_longer_needed 126@
$timer_mobile_start = get_game_timer 
$onmission = 0
$flag_player_on_fire_mission = 0
clear_all_script_fire_flags 
remove_decision_maker 165@
mission_has_finished 
if 
  $done_firetruck_progress == 1
goto_if_false @FIRETRU_11369
clear_help 
print_help 'FIREPRO'
$done_firetruck_progress = 2
show_update_stats False
start_new_script @BACKON 

:FIRETRU_11369
return 

//-------------Mission 124---------------
// Originally: Vigilante Sub-Mission

:COPCAR
gosub @COPCAR_52
if 
  has_deatharrest_been_executed 
goto_if_false @COPCAR_43
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
gosub @COPCAR_14740

:COPCAR_43
gosub @COPCAR_14742
terminate_this_script 

:COPCAR_52
$onmission = 1
script_name 'COPCAR'
wait 0
if 
  $done_copcar_progress == 0
goto_if_false @COPCAR_94
register_mission_given 

:COPCAR_94
load_mission_text 'COPCAR'
51@ = 0
$cop_time_limit = -100
58@ = 0
$total_criminals_killed = 0
65@ = 0
62@ = 0
52@ = 0
53@ = 0
64@ = 0
54@ = 0
55@ = 0
56@ = 0
57@ = 0
59@ = 0
60@ = 0
61@ = 0
63@ = 0
90@ = 0
142@ = 4.0
144@ = 0.0
143@ = 0.9
91@ = 0
$heading = 0.0
124@ = 0.0
145@ = 0.0
146@ = 0.0
147@ = 0.0
148@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
170@ = 0.0
171@ = 0.0
172@ = 0.0
173@ = 0.0
set_lvar_int_to_constant 176@ = 521
set_lvar_int_to_constant 177@ = 522
set_lvar_int_to_constant 178@ = 461
set_lvar_int_to_constant 179@ = 462
set_lvar_int_to_constant 180@ = 463
set_lvar_int_to_constant 181@ = 468
set_lvar_int_to_constant 182@ = 581
set_lvar_int_to_constant 183@ = 586
set_lvar_int_to_constant 184@ = 411
set_lvar_int_to_constant 185@ = 415
set_lvar_int_to_constant 186@ = 429
set_lvar_int_to_constant 187@ = 451
set_lvar_int_to_constant 188@ = 477
set_lvar_int_to_constant 189@ = 480
set_lvar_int_to_constant 190@ = 506
set_lvar_int_to_constant 191@ = 541
set_lvar_int_to_constant 192@ = 603
set_lvar_int_to_constant 193@ = 400
set_lvar_int_to_constant 194@ = 401
set_lvar_int_to_constant 195@ = 402
set_lvar_int_to_constant 196@ = 410
set_lvar_int_to_constant 197@ = 412
set_lvar_int_to_constant 198@ = 413
set_lvar_int_to_constant 199@ = 419
set_lvar_int_to_constant 200@ = 422
set_lvar_int_to_constant 201@ = 424
set_lvar_int_to_constant 202@ = 434
set_lvar_int_to_constant 203@ = 436
set_lvar_int_to_constant 204@ = 439
set_lvar_int_to_constant 205@ = 440
set_lvar_int_to_constant 206@ = 474
set_lvar_int_to_constant 207@ = 475
set_lvar_int_to_constant 208@ = 478
set_lvar_int_to_constant 209@ = 482
set_lvar_int_to_constant 210@ = 483
set_lvar_int_to_constant 211@ = 489
set_lvar_int_to_constant 212@ = 491
set_lvar_int_to_constant 213@ = 496
set_lvar_int_to_constant 214@ = 500
set_lvar_int_to_constant 215@ = 517
set_lvar_int_to_constant 216@ = 518
set_lvar_int_to_constant 217@ = 526
set_lvar_int_to_constant 218@ = 527
set_lvar_int_to_constant 219@ = 533
set_lvar_int_to_constant 220@ = 534
set_lvar_int_to_constant 221@ = 535
set_lvar_int_to_constant 222@ = 536
set_lvar_int_to_constant 223@ = 542
set_lvar_int_to_constant 224@ = 543
set_lvar_int_to_constant 225@ = 545
set_lvar_int_to_constant 226@ = 549
set_lvar_int_to_constant 227@ = 554
set_lvar_int_to_constant 228@ = 555
set_lvar_int_to_constant 229@ = 558
set_lvar_int_to_constant 230@ = 559
set_lvar_int_to_constant 231@ = 562
set_lvar_int_to_constant 232@ = 565
set_lvar_int_to_constant 233@ = 567
set_lvar_int_to_constant 234@ = 575
set_lvar_int_to_constant 235@ = 576
set_lvar_int_to_constant 236@ = 579
set_lvar_int_to_constant 237@ = 587
set_lvar_int_to_constant 238@ = 589
set_lvar_int_to_constant 239@ = 600
set_lvar_int_to_constant 240@ = 602
set_lvar_int_to_constant 241@ = 605
set_lvar_int_to_constant 242@ = 442
set_lvar_int_to_constant 243@ = 404
set_lvar_int_to_constant 244@ = 405
set_lvar_int_to_constant 245@ = 418
set_lvar_int_to_constant 246@ = 421
set_lvar_int_to_constant 247@ = 426
set_lvar_int_to_constant 248@ = 445
set_lvar_int_to_constant 249@ = 458
set_lvar_int_to_constant 250@ = 466
set_lvar_int_to_constant 251@ = 467
set_lvar_int_to_constant 252@ = 479
set_lvar_int_to_constant 253@ = 492
set_lvar_int_to_constant 254@ = 507
set_lvar_int_to_constant 255@ = 516
set_lvar_int_to_constant 256@ = 529
set_lvar_int_to_constant 257@ = 540
set_lvar_int_to_constant 258@ = 546
set_lvar_int_to_constant 259@ = 547
set_lvar_int_to_constant 260@ = 550
set_lvar_int_to_constant 261@ = 551
set_lvar_int_to_constant 262@ = 560
set_lvar_int_to_constant 263@ = 561
set_lvar_int_to_constant 264@ = 580
set_lvar_int_to_constant 265@ = 585
set_lvar_int_to_constant 266@ = 604
request_model 346
request_model 352
request_model 355
request_model 349
request_model 336
load_all_models_now 

:COPCAR_1163
if or
  not has_model_loaded 346
  not has_model_loaded 352
  not has_model_loaded 355
  not has_model_loaded 349
goto_if_false @COPCAR_1205
wait 0
goto @COPCAR_1163

:COPCAR_1205
if 
  not has_model_loaded 336
goto_if_false @COPCAR_1232
wait 0
goto @COPCAR_1205

:COPCAR_1232
if 
  is_char_in_any_car $scplayer
goto_if_false @COPCAR_1263
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False

:COPCAR_1263
267@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 267@ {event} Event.VehicleDamageWeapon
268@ = copy_group_decision_maker -1
clear_group_decision_maker_event_response 268@ {event} Event.VehicleDamageWeapon

:COPCAR_1291
73@ = 0
82@ = 0
89@ = 0
52@ = 0
269@ = 0
66@ = 0
67@ = 0
68@ = 0
69@ = 0
70@ = 0
71@ = 0
74@ = 0
75@ = 0
76@ = 0
77@ = 0
78@ = 0
79@ = 0
80@ = 0
83@ = 0
174@ = 0
175@ = 0
84@ = 0
85@ = 0
86@ = 0
87@ = 0
128@ = 0.0
129@ = 0.0
130@ = 0.0
131@ = 0.0
270@ = 0
gosub @COPCAR_14883
271@ = generate_random_int_in_range 9 {max} 255

:COPCAR_1530
if or
  is_int_lvar_equal_to_constant 271@ == 105
  is_int_lvar_equal_to_constant 271@ == 106
  is_int_lvar_equal_to_constant 271@ == 107
goto_if_false @COPCAR_1579
271@ = generate_random_int_in_range 9 {max} 255
goto @COPCAR_1530

:COPCAR_1579
if 
  not is_model_in_cdimage 271@
goto_if_false @COPCAR_1661
271@ = generate_random_int_in_range 9 {max} 255

:COPCAR_1605
if or
  is_int_lvar_equal_to_constant 271@ == 105
  is_int_lvar_equal_to_constant 271@ == 106
  is_int_lvar_equal_to_constant 271@ == 107
goto_if_false @COPCAR_1654
271@ = generate_random_int_in_range 9 {max} 255
goto @COPCAR_1605

:COPCAR_1654
goto @COPCAR_1579

:COPCAR_1661
request_model 271@

:COPCAR_1666
gosub @COPCAR_18525
if 
  58@ == 1
goto_if_false @COPCAR_1698
goto @COPCAR_14740

:COPCAR_1698
$player_x, $player_y, $z = get_char_coordinates $scplayer
set_var_float_to_var_float $x = $player_x
$x -= 800.0
set_lvar_float_to_var_float 272@ = $player_x
272@ += 800.0
104@ = generate_random_float_in_range $x {max} 272@
set_var_float_to_var_float $y = $player_y
$y -= 800.0
set_lvar_float_to_var_float 273@ = $player_y
273@ += 800.0
105@ = generate_random_float_in_range $y {max} 273@
106@ = 10.0
if 
  4 > 51@
goto_if_false @COPCAR_1867
104@, 105@, 106@, 113@ = get_closest_car_node_with_heading 104@ {y} 105@ {z} 106@
106@ += 0.5

:COPCAR_1867
if and
  51@ > 3
  8 > 51@
goto_if_false @COPCAR_2252
104@, 105@, 106@, 107@, 108@, 109@, 113@ = get_closest_straight_road 104@ {y} 105@ {z} 106@ {minDist} 8.0 {maxDist} 500.0
if and
  104@ == 0.0
  105@ == 0.0
  107@ == 0.0
  108@ == 0.0
goto_if_false @COPCAR_1996
wait 0
goto @COPCAR_1666

:COPCAR_1996
set_lvar_float_to_lvar_float 125@ = 107@
sub_float_lvar_from_float_lvar 125@ -= 104@
set_lvar_float_to_lvar_float 126@ = 108@
sub_float_lvar_from_float_lvar 126@ -= 105@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 125@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 126@
set_lvar_float_to_lvar_float 127@ = 140@
add_float_lvar_to_float_lvar 127@ += 141@
127@ = sqrt 127@
149@ = 8.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
set_lvar_float_to_lvar_float 107@ = 104@
add_float_lvar_to_float_lvar 107@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
set_lvar_float_to_lvar_float 108@ = 105@
add_float_lvar_to_float_lvar 108@ += 141@
149@ = 2.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
add_float_lvar_to_float_lvar 104@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
add_float_lvar_to_float_lvar 105@ += 141@
106@ += 0.5
109@ += 0.5

:COPCAR_2252
if 
  51@ > 7
goto_if_false @COPCAR_2742
104@, 105@, 106@, 110@, 111@, 112@, 113@ = get_closest_straight_road 104@ {y} 105@ {z} 106@ {minDist} 13.0 {maxDist} 500.0
if and
  104@ == 0.0
  105@ == 0.0
  110@ == 0.0
  111@ == 0.0
goto_if_false @COPCAR_2374
wait 0
goto @COPCAR_1666

:COPCAR_2374
set_lvar_float_to_lvar_float 125@ = 110@
sub_float_lvar_from_float_lvar 125@ -= 104@
set_lvar_float_to_lvar_float 126@ = 111@
sub_float_lvar_from_float_lvar 126@ -= 105@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 125@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 126@
set_lvar_float_to_lvar_float 127@ = 140@
add_float_lvar_to_float_lvar 127@ += 141@
127@ = sqrt 127@
149@ = 13.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
set_lvar_float_to_lvar_float 110@ = 104@
add_float_lvar_to_float_lvar 110@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
set_lvar_float_to_lvar_float 111@ = 105@
add_float_lvar_to_float_lvar 111@ += 141@
149@ = 2.0
div_float_lvar_by_float_lvar 149@ /= 127@
set_lvar_float_to_lvar_float 140@ = 125@
mult_float_lvar_by_float_lvar 140@ *= 149@
add_float_lvar_to_float_lvar 104@ += 140@
set_lvar_float_to_lvar_float 141@ = 126@
mult_float_lvar_by_float_lvar 141@ *= 149@
add_float_lvar_to_float_lvar 105@ += 141@
set_lvar_float_to_lvar_float 107@ = 104@
sub_float_lvar_from_float_lvar 107@ -= 110@
107@ /= 2.0
add_float_lvar_to_float_lvar 107@ += 110@
set_lvar_float_to_lvar_float 108@ = 105@
sub_float_lvar_from_float_lvar 108@ -= 111@
108@ /= 2.0
add_float_lvar_to_float_lvar 108@ += 111@
set_lvar_float_to_lvar_float 109@ = 106@
sub_float_lvar_from_float_lvar 109@ -= 112@
109@ /= 2.0
add_float_lvar_to_float_lvar 109@ += 112@
106@ += 0.5
109@ += 0.5
112@ += 0.5

:COPCAR_2742
if 
  1.0 > 106@
goto_if_false @COPCAR_2774
wait 0
goto @COPCAR_1666

:COPCAR_2774
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
115@ = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} 104@ {toZ} 105@
if or
  150.0 > 115@
  115@ > 800.0
goto_if_false @COPCAR_2847
wait 0
goto @COPCAR_1666

:COPCAR_2847
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed == 0
goto_if_false @COPCAR_3105
if and
  78.4427 > 104@
  -699.519 > 105@
goto_if_false @COPCAR_2915
wait 0
goto @COPCAR_1666

:COPCAR_2915
if and
  -252.6557 > 104@
  -285.766 > 105@
goto_if_false @COPCAR_2957
wait 0
goto @COPCAR_1666

:COPCAR_2957
if 
  -948.3447 > 104@
goto_if_false @COPCAR_2989
wait 0
goto @COPCAR_1666

:COPCAR_2989
if and
  104@ > 1473.448
  105@ > 403.7353
goto_if_false @COPCAR_3031
wait 0
goto @COPCAR_1666

:COPCAR_3031
if 
  105@ > 578.6325
goto_if_false @COPCAR_3063
wait 0
goto @COPCAR_1666

:COPCAR_3063
if and
  837.5551 > 104@
  105@ > 347.4097
goto_if_false @COPCAR_3105
wait 0
goto @COPCAR_1666

:COPCAR_3105
if 
  2 > $Return_cities_passed
goto_if_false @COPCAR_3353
if and
  104@ > 1473.448
  105@ > 403.7353
goto_if_false @COPCAR_3165
wait 0
goto @COPCAR_1666

:COPCAR_3165
if and
  105@ > 578.6325
  104@ > -1528.498
goto_if_false @COPCAR_3207
wait 0
goto @COPCAR_1666

:COPCAR_3207
if and
  837.5551 > 104@
  104@ > -1528.498
  105@ > 347.4097
goto_if_false @COPCAR_3259
wait 0
goto @COPCAR_1666

:COPCAR_3259
if 
  105@ > 1380.0
goto_if_false @COPCAR_3291
wait 0
goto @COPCAR_1666

:COPCAR_3291
if and
  104@ > -2702.72
  105@ > 1225.6689
  -2663.146 > 104@
  1654.808 > 105@
goto_if_false @COPCAR_3353
wait 0
goto @COPCAR_1666

:COPCAR_3353
if and
  104@ > -1735.751
  105@ > -696.0117
  -1192.817 > 104@
  286.3584 > 105@
goto_if_false @COPCAR_3415
wait 0
goto @COPCAR_1666

:COPCAR_3415
if and
  104@ > -1192.817
  105@ > -521.9908
  -1125.656 > 104@
  536.9476 > 105@
goto_if_false @COPCAR_3477
wait 0
goto @COPCAR_1666

:COPCAR_3477
if and
  104@ > -1125.656
  105@ > -329.59
  -1020.189 > 104@
  536.9476 > 105@
goto_if_false @COPCAR_3539
wait 0
goto @COPCAR_1666

:COPCAR_3539
$random_seed = generate_random_int 

:COPCAR_3544
if 
  $random_seed == 0
goto_if_false @COPCAR_3574
$random_seed = generate_random_int 
goto @COPCAR_3544

:COPCAR_3574
if or
  not has_model_loaded 90@
  not has_model_loaded 271@
goto_if_false @COPCAR_3638
wait 0
gosub @COPCAR_18525
if 
  58@ == 1
goto_if_false @COPCAR_3631
goto @COPCAR_14740

:COPCAR_3631
goto @COPCAR_3574

:COPCAR_3638
35@ = create_car 90@ {x} 104@ {y} 105@ {z} 106@
set_car_health 35@ {health} 800
set_car_driving_style 35@ {drivingStyle} DrivingMode.AvoidCars
if 
  51@ > 3
goto_if_false @COPCAR_3696
set_car_random_route_seed 35@ {routeSeed} $random_seed

:COPCAR_3696
mark_car_as_convoy_car 35@ {state} True
set_car_heading 35@ {heading} 113@
set_car_avoid_level_transitions 35@ {state} True

:COPCAR_3718
if 
  is_car_waiting_for_world_collision 35@
goto_if_false @COPCAR_3800
wait 0
if 
  is_car_dead 35@
goto_if_false @COPCAR_3761
goto @COPCAR_14740

:COPCAR_3761
gosub @COPCAR_18525
if 
  58@ == 1
goto_if_false @COPCAR_3793
goto @COPCAR_14740

:COPCAR_3793
goto @COPCAR_3718

:COPCAR_3800
36@ = create_char_inside_car 35@ {pedType} PedType.Mission1 {modelId} 271@
if 
  $onmission == 0
goto_if_false @COPCAR_4020
92@ = add_blip_for_coord $x {y} $y {z} $z
93@ = add_blip_for_coord $x {y} $y {z} $z
94@ = add_blip_for_coord $x {y} $y {z} $z
95@ = add_blip_for_coord $x {y} $y {z} $z
96@ = add_blip_for_coord $x {y} $y {z} $z
97@ = add_blip_for_coord $x {y} $y {z} $z
98@ = add_blip_for_coord $x {y} $y {z} $z
99@ = add_blip_for_coord $x {y} $y {z} $z
100@ = add_blip_for_coord $x {y} $y {z} $z
101@ = add_blip_for_coord $x {y} $y {z} $z
102@ = add_blip_for_coord $x {y} $y {z} $z
103@ = add_blip_for_coord $x {y} $y {z} $z
274@ = create_group DefaultTaskAllocator.FollowAnyMeans
275@ = create_group DefaultTaskAllocator.FollowAnyMeans
276@ = create_group DefaultTaskAllocator.FollowAnyMeans

:COPCAR_4020
remove_blip 92@
92@ = add_blip_for_char 36@
set_lvar_int_to_lvar_int 50@ = 36@
gosub @COPCAR_18022
if 
  51@ > 0
goto_if_false @COPCAR_4144
remove_group 274@
274@ = create_group DefaultTaskAllocator.SitInLeaderCar
set_group_leader 274@ {handle} 36@
set_group_decision_maker 274@ {handleOrTemplate} 268@
37@ = create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.BikeRear
remove_blip 95@
95@ = add_blip_for_char 37@
set_lvar_int_to_lvar_int 50@ = 37@
gosub @COPCAR_18022
goto @COPCAR_4151

:COPCAR_4144
69@ = 1

:COPCAR_4151
if 
  51@ > 1
goto_if_false @COPCAR_4219
38@ = create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearLeft
remove_blip 96@
96@ = add_blip_for_char 38@
set_lvar_int_to_lvar_int 50@ = 38@
gosub @COPCAR_18022
goto @COPCAR_4226

:COPCAR_4219
70@ = 1

:COPCAR_4226
if 
  51@ > 2
goto_if_false @COPCAR_4294
39@ = create_char_as_passenger 35@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearRight
remove_blip 97@
97@ = add_blip_for_char 39@
set_lvar_int_to_lvar_int 50@ = 39@
gosub @COPCAR_18022
goto @COPCAR_4301

:COPCAR_4294
71@ = 1

:COPCAR_4301
if 
  51@ > 3
goto_if_false @COPCAR_4511
40@ = create_car 90@ {x} 107@ {y} 108@ {z} 109@
mark_car_as_convoy_car 40@ {state} True
set_car_heading 40@ {heading} 113@
set_car_avoid_level_transitions 40@ {state} True
set_car_driving_style 40@ {drivingStyle} DrivingMode.AvoidCars
set_car_health 40@ {health} 800
set_car_random_route_seed 40@ {routeSeed} $random_seed

:COPCAR_4381
if 
  is_car_waiting_for_world_collision 40@
goto_if_false @COPCAR_4463
wait 0
if 
  is_car_dead 40@
goto_if_false @COPCAR_4424
goto @COPCAR_14740

:COPCAR_4424
gosub @COPCAR_18525
if 
  58@ == 1
goto_if_false @COPCAR_4456
goto @COPCAR_14740

:COPCAR_4456
goto @COPCAR_4381

:COPCAR_4463
41@ = create_char_inside_car 40@ {pedType} PedType.Mission1 {modelId} 271@
set_lvar_int_to_lvar_int 50@ = 41@
gosub @COPCAR_18022
remove_blip 93@
93@ = add_blip_for_char 41@
goto @COPCAR_4525

:COPCAR_4511
82@ = 1
77@ = 1

:COPCAR_4525
if 
  51@ > 4
goto_if_false @COPCAR_4621
remove_group 275@
275@ = create_group DefaultTaskAllocator.SitInLeaderCar
set_group_leader 275@ {handle} 41@
set_group_decision_maker 275@ {handleOrTemplate} 268@
42@ = create_char_as_passenger 40@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.BikeRear
remove_blip 98@
98@ = add_blip_for_char 42@
set_lvar_int_to_lvar_int 50@ = 42@
gosub @COPCAR_18022
goto @COPCAR_4628

:COPCAR_4621
78@ = 1

:COPCAR_4628
if 
  51@ > 5
goto_if_false @COPCAR_4696
43@ = create_char_as_passenger 40@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearLeft
remove_blip 99@
99@ = add_blip_for_char 43@
set_lvar_int_to_lvar_int 50@ = 43@
gosub @COPCAR_18022
goto @COPCAR_4703

:COPCAR_4696
79@ = 1

:COPCAR_4703
if 
  51@ > 6
goto_if_false @COPCAR_4771
44@ = create_char_as_passenger 40@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearRight
remove_blip 100@
100@ = add_blip_for_char 44@
set_lvar_int_to_lvar_int 50@ = 44@
gosub @COPCAR_18022
goto @COPCAR_4778

:COPCAR_4771
80@ = 1

:COPCAR_4778
if 
  51@ > 7
goto_if_false @COPCAR_4988
45@ = create_car 90@ {x} 110@ {y} 111@ {z} 112@
mark_car_as_convoy_car 45@ {state} True
set_car_heading 45@ {heading} 113@
set_car_avoid_level_transitions 45@ {state} True
set_car_driving_style 45@ {drivingStyle} DrivingMode.AvoidCars
set_car_health 45@ {health} 800
set_car_random_route_seed 45@ {routeSeed} $random_seed

:COPCAR_4858
if 
  is_car_waiting_for_world_collision 45@
goto_if_false @COPCAR_4940
wait 0
if 
  is_car_dead 45@
goto_if_false @COPCAR_4901
goto @COPCAR_14740

:COPCAR_4901
gosub @COPCAR_18525
if 
  58@ == 1
goto_if_false @COPCAR_4933
goto @COPCAR_14740

:COPCAR_4933
goto @COPCAR_4858

:COPCAR_4940
46@ = create_char_inside_car 45@ {pedType} PedType.Mission1 {modelId} 271@
set_lvar_int_to_lvar_int 50@ = 46@
gosub @COPCAR_18022
remove_blip 94@
94@ = add_blip_for_char 46@
goto @COPCAR_5002

:COPCAR_4988
89@ = 1
84@ = 1

:COPCAR_5002
if 
  51@ > 8
goto_if_false @COPCAR_5098
remove_group 276@
276@ = create_group DefaultTaskAllocator.SitInLeaderCar
set_group_leader 276@ {handle} 46@
set_group_decision_maker 276@ {handleOrTemplate} 268@
47@ = create_char_as_passenger 45@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.BikeRear
remove_blip 101@
101@ = add_blip_for_char 47@
set_lvar_int_to_lvar_int 50@ = 47@
gosub @COPCAR_18022
goto @COPCAR_5105

:COPCAR_5098
85@ = 1

:COPCAR_5105
if 
  51@ > 9
goto_if_false @COPCAR_5173
48@ = create_char_as_passenger 45@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearLeft
remove_blip 102@
102@ = add_blip_for_char 48@
set_lvar_int_to_lvar_int 50@ = 48@
gosub @COPCAR_18022
goto @COPCAR_5180

:COPCAR_5173
86@ = 1

:COPCAR_5180
if 
  51@ > 10
goto_if_false @COPCAR_5248
49@ = create_char_as_passenger 45@ {pedType} PedType.Mission1 {modelId} 271@ {seat} SeatId.RearRight
remove_blip 103@
103@ = add_blip_for_char 49@
set_lvar_int_to_lvar_int 50@ = 49@
gosub @COPCAR_18022
goto @COPCAR_5255

:COPCAR_5248
87@ = 1

:COPCAR_5255
mark_model_as_no_longer_needed 90@
mark_model_as_no_longer_needed 271@
if 
  not is_char_dead 36@
goto_if_false @COPCAR_5295
116@, 117@, $z = get_char_coordinates 36@

:COPCAR_5295
s$criminal_zone = get_name_of_zone 116@ {y} 117@ {z} $z
if 
  51@ == 0
goto_if_false @COPCAR_5353
print_string_in_string_now 'C_BREIF' {replacementKey} s$criminal_zone {duration} 5000 {style} TextStyle.Middle
goto @COPCAR_5372

:COPCAR_5353
print_string_in_string_now 'C_BREIS' {replacementKey} s$criminal_zone {duration} 5000 {style} TextStyle.Middle

:COPCAR_5372
police_radio_message 116@ {_p2} 117@ {_p3} $z
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_var_float_to_var_float $x_temp = $player_x
sub_float_lvar_from_float_var $x_temp -= 116@
set_var_float_to_var_float $y_temp = $player_y
sub_float_lvar_from_float_var $y_temp -= 117@
mult_float_var_by_float_var $x_temp *= $x_temp
mult_float_var_by_float_var $y_temp *= $y_temp
set_lvar_float_to_var_float 114@ = $y_temp
add_float_var_to_float_lvar 114@ += $y_temp
114@ = sqrt 114@
if 
  is_char_in_model $scplayer {modelId} 425
goto_if_false @COPCAR_5505
142@ = 8.0
goto @COPCAR_5515

:COPCAR_5505
142@ = 4.0

:COPCAR_5515
add_float_lvar_to_float_lvar 142@ += 144@
div_float_lvar_by_float_lvar 114@ /= 142@
114@ *= 1000.0
cset_lvar_int_to_lvar_float 63@ =# 114@
if 
  40000 > 63@
goto_if_false @COPCAR_5580
63@ = 40000

:COPCAR_5580
add_int_lvar_to_int_var $cop_time_limit += 63@
63@ /= 1000
set_var_int_to_lvar_int $copcar_print_level = 51@
$copcar_print_level += 1
if 
  65@ == 1
goto_if_false @COPCAR_5640
force_big_message_and_counter True
goto @COPCAR_5722

:COPCAR_5640
if 
  45000 > $cop_time_limit
goto_if_false @COPCAR_5671
$cop_time_limit = 45000

:COPCAR_5671
$cop_time_limit += 30000
65@ = 1
display_nth_onscreen_counter_with_string $copcar_print_level {display} CounterDisplay.Number {slot} 1 {text} 'COPLEVL'
display_nth_onscreen_counter_with_string $total_criminals_killed {display} CounterDisplay.Number {slot} 2 {text} 'KILLS'

:COPCAR_5722
set_lvar_int_to_var_int 72@ = $game_timer
set_lvar_int_to_var_int 81@ = $game_timer
set_lvar_int_to_var_int 88@ = $game_timer
if 
  13 > 51@
goto_if_false @COPCAR_5774
144@ += 0.1

:COPCAR_5774
freeze_onscreen_timer False

:COPCAR_5778
wait 0
$game_timer = get_game_timer 
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @COPCAR_18525
if 
  58@ == 1
goto_if_false @COPCAR_5833
goto @COPCAR_14740

:COPCAR_5833
if or
  269@ == -1
  74@ == -1
  83@ == -1
goto_if_false @COPCAR_5872
52@ = 1

:COPCAR_5872
270@ += 1
if 
  270@ > 2
goto_if_false @COPCAR_5904
270@ = 0

:COPCAR_5904
if 
  270@ == 0
goto_if_false @COPCAR_8220
if 
  not is_char_dead 36@
goto_if_false @COPCAR_7290
if 
  is_char_sitting_in_any_car 36@
goto_if_false @COPCAR_6744
mark_car_as_no_longer_needed 35@
35@ = store_car_char_is_in_no_save 36@
if 
  269@ == -1
goto_if_false @COPCAR_6072
55@ = get_number_of_followers 36@
if 
  55@ > 0
goto_if_false @COPCAR_6057
if 
  does_group_exist 274@
goto_if_false @COPCAR_6034
set_group_default_task_allocator 274@ {defaultTaskAllocator} DefaultTaskAllocator.SitInLeaderCar

:COPCAR_6034
set_lvar_int_to_var_int 72@ = $game_timer
72@ += 2000
goto @COPCAR_6065

:COPCAR_6057
set_lvar_int_to_var_int 72@ = $game_timer

:COPCAR_6065
269@ = 0

:COPCAR_6072
if 
  269@ == 0
goto_if_false @COPCAR_6161
if or
  is_int_var_greater_than_int_lvar $game_timer > 72@
  is_int_lvar_equal_to_int_var 72@ == $game_timer
goto_if_false @COPCAR_6161
set_car_cruise_speed 35@ {maxSpeed} 100.0
set_car_driving_style 35@ {drivingStyle} DrivingMode.AvoidCars
car_wander_randomly 35@
set_lvar_int_to_var_int 66@ = $game_timer
269@ = 1
67@ = 0

:COPCAR_6161
if 
  269@ > 0
goto_if_false @COPCAR_6737
if 
  is_char_in_car $scplayer {vehicle} 35@
goto_if_false @COPCAR_6235
$task_status = get_script_task_status 36@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6235
task_kill_char_on_foot 36@ {target} $scplayer

:COPCAR_6235
set_lvar_int_to_lvar_int 153@ = 35@
set_lvar_int_to_lvar_int 154@ = 67@
set_lvar_int_to_lvar_int 155@ = 66@
set_lvar_float_to_lvar_float 150@ = 145@
set_lvar_float_to_lvar_float 151@ = 146@
set_lvar_float_to_lvar_float 152@ = 147@
if 
  148@ > 0.0
goto_if_false @COPCAR_6311
gosub @COPCAR_16050

:COPCAR_6311
set_lvar_int_to_lvar_int 67@ = 154@
set_lvar_int_to_lvar_int 66@ = 155@
set_lvar_float_to_lvar_float 145@ = 150@
set_lvar_float_to_lvar_float 146@ = 151@
set_lvar_float_to_lvar_float 147@ = 152@
if 
  67@ == -9
goto_if_false @COPCAR_6441
$task_status = get_script_task_status 36@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6434
$x, $y, $z = get_char_coordinates 36@
task_flee_point 36@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_6434
67@ = 0

:COPCAR_6441
if 
  not is_car_health_greater 35@ {health} 251
goto_if_false @COPCAR_6548
$task_status = get_script_task_status 36@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6525
$x, $y, $z = get_char_coordinates 36@
task_flee_point 36@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_6525
set_lvar_int_to_var_int 72@ = $game_timer
72@ += 2000
goto @COPCAR_6556

:COPCAR_6548
set_lvar_int_to_var_int 72@ = $game_timer

:COPCAR_6556
gosub @COPCAR_16687
116@, 117@, $z = get_char_coordinates 36@
set_var_float_to_var_float $x_temp = $player_x
sub_float_lvar_from_float_var $x_temp -= 116@
set_var_float_to_var_float $y_temp = $player_y
sub_float_lvar_from_float_var $y_temp -= 117@
mult_float_var_by_float_var $x_temp *= $x_temp
mult_float_var_by_float_var $y_temp *= $y_temp
set_lvar_float_to_var_float 149@ = $x_temp
add_float_var_to_float_lvar 149@ += $y_temp
149@ = sqrt 149@
148@ = 1000.0
div_float_lvar_by_float_lvar 148@ /= 149@
if 
  148@ > 100.0
goto_if_false @COPCAR_6698
148@ = 100.0

:COPCAR_6698
if 
  15.0 > 148@
goto_if_false @COPCAR_6729
148@ = 15.0

:COPCAR_6729
set_car_cruise_speed 35@ {maxSpeed} 148@

:COPCAR_6737
goto @COPCAR_7283

:COPCAR_6744
if 
  does_group_exist 274@
goto_if_false @COPCAR_6767
set_group_default_task_allocator 274@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:COPCAR_6767
269@ = -1
gosub @COPCAR_16687
if 
  is_int_var_greater_than_int_lvar $game_timer > 72@
goto_if_false @COPCAR_7283
if 
  locate_char_any_means_char_2d $scplayer {target} 36@ {xRadius} 45.0 {yRadius} 45.0 {drawSphere} False
goto_if_false @COPCAR_7128
if 
  not is_char_in_any_car $scplayer
goto_if_false @COPCAR_6891
$task_status = get_script_task_status 36@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6884
task_kill_char_on_foot 36@ {target} $scplayer

:COPCAR_6884
goto @COPCAR_7121

:COPCAR_6891
if 
  locate_char_any_means_char_2d $scplayer {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_6966
$task_status = get_script_task_status 36@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_6959
task_kill_char_on_foot 36@ {target} $scplayer

:COPCAR_6959
goto @COPCAR_7121

:COPCAR_6966
set_lvar_int_to_lvar_int 156@ = 36@
if 
  not is_car_dead 35@
goto_if_false @COPCAR_7114
if 
  is_car_health_greater 35@ {health} 400
goto_if_false @COPCAR_7100
if 
  locate_char_any_means_car_2d 36@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_7086
$task_status = get_script_task_status 36@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7079
task_enter_car_as_driver 36@ {vehicle} 35@ {time} -2

:COPCAR_7079
goto @COPCAR_7093

:COPCAR_7086
gosub @COPCAR_15260

:COPCAR_7093
goto @COPCAR_7107

:COPCAR_7100
gosub @COPCAR_15260

:COPCAR_7107
goto @COPCAR_7121

:COPCAR_7114
gosub @COPCAR_15260

:COPCAR_7121
goto @COPCAR_7283

:COPCAR_7128
set_lvar_int_to_lvar_int 156@ = 36@
if 
  not is_car_dead 35@
goto_if_false @COPCAR_7276
if 
  is_car_health_greater 35@ {health} 400
goto_if_false @COPCAR_7262
if 
  locate_char_any_means_car_2d 36@ {vehicle} 35@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_7248
$task_status = get_script_task_status 36@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7241
task_enter_car_as_driver 36@ {vehicle} 35@ {time} -2

:COPCAR_7241
goto @COPCAR_7255

:COPCAR_7248
gosub @COPCAR_15260

:COPCAR_7255
goto @COPCAR_7269

:COPCAR_7262
gosub @COPCAR_15260

:COPCAR_7269
goto @COPCAR_7283

:COPCAR_7276
gosub @COPCAR_15260

:COPCAR_7283
goto @COPCAR_7880

:COPCAR_7290
remove_blip 92@
mark_char_as_no_longer_needed 36@
36@ = -1
if 
  68@ == 0
goto_if_false @COPCAR_7366
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
68@ = 1

:COPCAR_7366
if 
  does_group_exist 274@
goto_if_false @COPCAR_7880
if 
  not is_char_dead 37@
goto_if_false @COPCAR_7531
if 
  not is_group_member 37@ {handle} 274@
goto_if_false @COPCAR_7461
$task_status = get_script_task_status 37@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7454
task_kill_char_on_foot 37@ {target} $scplayer

:COPCAR_7454
goto @COPCAR_7524

:COPCAR_7461
if 
  is_group_leader 37@ {handle} 274@
goto_if_false @COPCAR_7524
set_lvar_int_to_lvar_int 36@ = 37@
37@ = -1
68@ = 0
69@ = 1
set_lvar_int_to_lvar_int 92@ = 95@
95@ = -1

:COPCAR_7524
goto @COPCAR_7548

:COPCAR_7531
remove_blip 95@
mark_char_as_no_longer_needed 37@
37@ = -1

:COPCAR_7548
if 
  not is_char_dead 38@
goto_if_false @COPCAR_7697
if 
  not is_group_member 38@ {handle} 274@
goto_if_false @COPCAR_7627
$task_status = get_script_task_status 38@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7620
task_kill_char_on_foot 38@ {target} $scplayer

:COPCAR_7620
goto @COPCAR_7690

:COPCAR_7627
if 
  is_group_leader 38@ {handle} 274@
goto_if_false @COPCAR_7690
set_lvar_int_to_lvar_int 36@ = 38@
38@ = -1
68@ = 0
70@ = 1
set_lvar_int_to_lvar_int 92@ = 96@
96@ = -1

:COPCAR_7690
goto @COPCAR_7714

:COPCAR_7697
remove_blip 96@
mark_char_as_no_longer_needed 38@
38@ = -1

:COPCAR_7714
if 
  not is_char_dead 39@
goto_if_false @COPCAR_7863
if 
  not is_group_member 39@ {handle} 274@
goto_if_false @COPCAR_7793
$task_status = get_script_task_status 39@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_7786
task_kill_char_on_foot 39@ {target} $scplayer

:COPCAR_7786
goto @COPCAR_7856

:COPCAR_7793
if 
  is_group_leader 39@ {handle} 274@
goto_if_false @COPCAR_7856
set_lvar_int_to_lvar_int 36@ = 39@
39@ = -1
68@ = 0
71@ = 1
set_lvar_int_to_lvar_int 92@ = 97@
97@ = -1

:COPCAR_7856
goto @COPCAR_7880

:COPCAR_7863
remove_blip 97@
mark_char_as_no_longer_needed 39@
39@ = -1

:COPCAR_7880
if 
  is_char_dead 37@
goto_if_false @COPCAR_7972
if 
  69@ == 0
goto_if_false @COPCAR_7972
mark_char_as_no_longer_needed 37@
37@ = -1
remove_blip 95@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
69@ = 1

:COPCAR_7972
if 
  is_char_dead 38@
goto_if_false @COPCAR_8064
if 
  70@ == 0
goto_if_false @COPCAR_8064
mark_char_as_no_longer_needed 38@
38@ = -1
remove_blip 96@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
70@ = 1

:COPCAR_8064
if 
  is_char_dead 39@
goto_if_false @COPCAR_8156
if 
  71@ == 0
goto_if_false @COPCAR_8156
mark_char_as_no_longer_needed 39@
39@ = -1
remove_blip 97@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
71@ = 1

:COPCAR_8156
if 
  73@ == 0
goto_if_false @COPCAR_8220
if and
  68@ == 1
  69@ == 1
  70@ == 1
  71@ == 1
goto_if_false @COPCAR_8220
73@ = 1

:COPCAR_8220
if 
  270@ == 1
goto_if_false @COPCAR_11051
if 
  not is_char_dead 41@
goto_if_false @COPCAR_10121
if 
  is_char_sitting_in_any_car 41@
goto_if_false @COPCAR_9575
mark_car_as_no_longer_needed 40@
40@ = store_car_char_is_in_no_save 41@
if 
  74@ == -1
goto_if_false @COPCAR_8388
55@ = get_number_of_followers 41@
if 
  55@ > 0
goto_if_false @COPCAR_8373
if 
  does_group_exist 275@
goto_if_false @COPCAR_8350
set_group_default_task_allocator 275@ {defaultTaskAllocator} DefaultTaskAllocator.SitInLeaderCar

:COPCAR_8350
set_lvar_int_to_var_int 81@ = $game_timer
81@ += 2000
goto @COPCAR_8381

:COPCAR_8373
set_lvar_int_to_var_int 81@ = $game_timer

:COPCAR_8381
74@ = 0

:COPCAR_8388
if 
  74@ == 0
goto_if_false @COPCAR_8547
if 
  is_int_var_greater_than_int_lvar $game_timer > 81@
goto_if_false @COPCAR_8547
set_car_cruise_speed 40@ {maxSpeed} 100.0
set_car_driving_style 40@ {drivingStyle} DrivingMode.AvoidCars
if 
  52@ == 0
goto_if_false @COPCAR_8495
if 
  not is_car_dead 35@
goto_if_false @COPCAR_8488
car_wander_randomly 40@
goto @COPCAR_8495

:COPCAR_8488
52@ = 1

:COPCAR_8495
if 
  52@ == 1
goto_if_false @COPCAR_8525
mark_car_as_convoy_car 40@ {state} False
car_wander_randomly 40@

:COPCAR_8525
set_lvar_int_to_var_int 75@ = $game_timer
74@ = 1
76@ = 0

:COPCAR_8547
if 
  74@ > 0
goto_if_false @COPCAR_9568
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @COPCAR_8621
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8621
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_8621
set_lvar_int_to_lvar_int 153@ = 40@
set_lvar_int_to_lvar_int 154@ = 76@
set_lvar_int_to_lvar_int 155@ = 75@
set_lvar_float_to_lvar_float 150@ = 164@
set_lvar_float_to_lvar_float 151@ = 165@
set_lvar_float_to_lvar_float 152@ = 166@
if 
  167@ > 0.0
goto_if_false @COPCAR_8697
gosub @COPCAR_16050

:COPCAR_8697
set_lvar_int_to_lvar_int 76@ = 154@
set_lvar_int_to_lvar_int 75@ = 155@
set_lvar_float_to_lvar_float 164@ = 150@
set_lvar_float_to_lvar_float 165@ = 151@
set_lvar_float_to_lvar_float 166@ = 152@
if 
  76@ == -9
goto_if_false @COPCAR_8827
$task_status = get_script_task_status 41@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8820
$x, $y, $z = get_char_coordinates 41@
task_flee_point 41@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_8820
76@ = 0

:COPCAR_8827
if 
  not is_car_health_greater 40@ {health} 400
goto_if_false @COPCAR_8883
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8883
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_8883
if 
  not is_car_health_greater 40@ {health} 251
goto_if_false @COPCAR_8990
$task_status = get_script_task_status 41@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_8967
$x, $y, $z = get_char_coordinates 41@
task_flee_point 41@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_8967
set_lvar_int_to_var_int 81@ = $game_timer
81@ += 2000
goto @COPCAR_8998

:COPCAR_8990
set_lvar_int_to_var_int 81@ = $game_timer

:COPCAR_8998
gosub @COPCAR_17132
162@, 163@, $z = get_char_coordinates 41@
set_var_float_to_var_float $x_temp = $player_x
sub_float_lvar_from_float_var $x_temp -= 162@
set_var_float_to_var_float $y_temp = $player_y
sub_float_lvar_from_float_var $y_temp -= 163@
mult_float_var_by_float_var $x_temp *= $x_temp
mult_float_var_by_float_var $y_temp *= $y_temp
set_lvar_float_to_var_float 149@ = $x_temp
add_float_var_to_float_lvar 149@ += $y_temp
149@ = sqrt 149@
167@ = 1000.0
div_float_lvar_by_float_lvar 167@ /= 149@
if 
  167@ > 100.0
goto_if_false @COPCAR_9140
167@ = 100.0

:COPCAR_9140
if 
  15.0 > 167@
goto_if_false @COPCAR_9171
167@ = 15.0

:COPCAR_9171
if 
  52@ == 0
goto_if_false @COPCAR_9523
if 
  not is_car_dead 35@
goto_if_false @COPCAR_9511
set_lvar_int_to_lvar_int 157@ = 40@
set_lvar_int_to_lvar_int 158@ = 35@
gosub @COPCAR_15047
set_lvar_float_to_lvar_float 167@ = 124@
138@ = get_car_forward_x 40@
139@ = get_car_forward_y 40@
132@, 133@, $z = get_car_coordinates 35@
134@, 135@, $z = get_car_coordinates 40@
set_lvar_float_to_lvar_float 120@ = 134@
sub_float_lvar_from_float_lvar 120@ -= 132@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 135@
sub_float_lvar_from_float_lvar 121@ -= 133@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 128@ = 138@
add_float_lvar_to_float_lvar 128@ += 139@
138@ = get_car_forward_x 35@
139@ = get_car_forward_y 35@
134@, 135@, $z = get_car_coordinates 40@
132@, 133@, $z = get_car_coordinates 35@
set_lvar_float_to_lvar_float 120@ = 132@
sub_float_lvar_from_float_lvar 120@ -= 134@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 133@
sub_float_lvar_from_float_lvar 121@ -= 135@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 129@ = 138@
add_float_lvar_to_float_lvar 129@ += 139@
if 
  128@ > 0.0
goto_if_false @COPCAR_9504
if 
  0.0 > 129@
goto_if_false @COPCAR_9504
167@ = 0.0

:COPCAR_9504
goto @COPCAR_9523

:COPCAR_9511
car_wander_randomly 40@
52@ = 1

:COPCAR_9523
if 
  167@ == 0.0
goto_if_false @COPCAR_9560
set_car_temp_action 40@ {actionId} TempAction.Wait {time} 17
goto @COPCAR_9568

:COPCAR_9560
set_car_cruise_speed 40@ {maxSpeed} 167@

:COPCAR_9568
goto @COPCAR_10114

:COPCAR_9575
if 
  does_group_exist 275@
goto_if_false @COPCAR_9598
set_group_default_task_allocator 275@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:COPCAR_9598
74@ = -1
gosub @COPCAR_17132
if 
  is_int_var_greater_than_int_lvar $game_timer > 81@
goto_if_false @COPCAR_10114
if 
  locate_char_any_means_char_2d $scplayer {target} 41@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_9959
if 
  not is_char_in_any_car $scplayer
goto_if_false @COPCAR_9722
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9715
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_9715
goto @COPCAR_9952

:COPCAR_9722
if 
  locate_char_any_means_char_2d $scplayer {target} 41@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @COPCAR_9797
$task_status = get_script_task_status 41@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9790
task_kill_char_on_foot 41@ {target} $scplayer

:COPCAR_9790
goto @COPCAR_9952

:COPCAR_9797
set_lvar_int_to_lvar_int 156@ = 41@
if 
  not is_car_dead 40@
goto_if_false @COPCAR_9945
if 
  is_car_health_greater 40@ {health} 400
goto_if_false @COPCAR_9931
if 
  locate_char_any_means_car_2d 41@ {vehicle} 40@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_9917
$task_status = get_script_task_status 41@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_9910
task_enter_car_as_driver 41@ {vehicle} 40@ {time} -2

:COPCAR_9910
goto @COPCAR_9924

:COPCAR_9917
gosub @COPCAR_15260

:COPCAR_9924
goto @COPCAR_9938

:COPCAR_9931
gosub @COPCAR_15260

:COPCAR_9938
goto @COPCAR_9952

:COPCAR_9945
gosub @COPCAR_15260

:COPCAR_9952
goto @COPCAR_10114

:COPCAR_9959
set_lvar_int_to_lvar_int 156@ = 41@
if 
  not is_car_dead 40@
goto_if_false @COPCAR_10107
if 
  is_car_health_greater 40@ {health} 400
goto_if_false @COPCAR_10093
if 
  locate_char_any_means_car_2d 41@ {vehicle} 40@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_10079
$task_status = get_script_task_status 41@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10072
task_enter_car_as_driver 41@ {vehicle} 40@ {time} -2

:COPCAR_10072
goto @COPCAR_10086

:COPCAR_10079
gosub @COPCAR_15260

:COPCAR_10086
goto @COPCAR_10100

:COPCAR_10093
gosub @COPCAR_15260

:COPCAR_10100
goto @COPCAR_10114

:COPCAR_10107
gosub @COPCAR_15260

:COPCAR_10114
goto @COPCAR_10711

:COPCAR_10121
remove_blip 93@
mark_char_as_no_longer_needed 41@
41@ = -1
if 
  77@ == 0
goto_if_false @COPCAR_10197
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
77@ = 1

:COPCAR_10197
if 
  does_group_exist 275@
goto_if_false @COPCAR_10711
if 
  not is_char_dead 42@
goto_if_false @COPCAR_10362
if 
  not is_group_member 42@ {handle} 275@
goto_if_false @COPCAR_10292
$task_status = get_script_task_status 42@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10285
task_kill_char_on_foot 42@ {target} $scplayer

:COPCAR_10285
goto @COPCAR_10355

:COPCAR_10292
if 
  is_group_leader 42@ {handle} 275@
goto_if_false @COPCAR_10355
set_lvar_int_to_lvar_int 41@ = 42@
42@ = -1
77@ = 0
78@ = 1
set_lvar_int_to_lvar_int 93@ = 98@
98@ = -1

:COPCAR_10355
goto @COPCAR_10379

:COPCAR_10362
remove_blip 98@
mark_char_as_no_longer_needed 42@
42@ = -1

:COPCAR_10379
if 
  not is_char_dead 43@
goto_if_false @COPCAR_10528
if 
  not is_group_member 43@ {handle} 275@
goto_if_false @COPCAR_10458
$task_status = get_script_task_status 43@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10451
task_kill_char_on_foot 43@ {target} $scplayer

:COPCAR_10451
goto @COPCAR_10521

:COPCAR_10458
if 
  is_group_leader 43@ {handle} 275@
goto_if_false @COPCAR_10521
set_lvar_int_to_lvar_int 41@ = 43@
43@ = -1
77@ = 0
79@ = 1
set_lvar_int_to_lvar_int 93@ = 99@
99@ = -1

:COPCAR_10521
goto @COPCAR_10545

:COPCAR_10528
remove_blip 99@
mark_char_as_no_longer_needed 43@
43@ = -1

:COPCAR_10545
if 
  not is_char_dead 44@
goto_if_false @COPCAR_10694
if 
  not is_group_member 44@ {handle} 275@
goto_if_false @COPCAR_10624
$task_status = get_script_task_status 44@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_10617
task_kill_char_on_foot 44@ {target} $scplayer

:COPCAR_10617
goto @COPCAR_10687

:COPCAR_10624
if 
  is_group_leader 44@ {handle} 275@
goto_if_false @COPCAR_10687
set_lvar_int_to_lvar_int 41@ = 44@
44@ = -1
77@ = 0
80@ = 1
set_lvar_int_to_lvar_int 93@ = 100@
100@ = -1

:COPCAR_10687
goto @COPCAR_10711

:COPCAR_10694
remove_blip 100@
mark_char_as_no_longer_needed 44@
44@ = -1

:COPCAR_10711
if 
  is_char_dead 42@
goto_if_false @COPCAR_10803
if 
  78@ == 0
goto_if_false @COPCAR_10803
mark_char_as_no_longer_needed 42@
42@ = -1
remove_blip 98@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
78@ = 1

:COPCAR_10803
if 
  is_char_dead 43@
goto_if_false @COPCAR_10895
if 
  79@ == 0
goto_if_false @COPCAR_10895
mark_char_as_no_longer_needed 43@
43@ = -1
remove_blip 99@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
79@ = 1

:COPCAR_10895
if 
  is_char_dead 44@
goto_if_false @COPCAR_10987
if 
  80@ == 0
goto_if_false @COPCAR_10987
mark_char_as_no_longer_needed 44@
44@ = -1
remove_blip 100@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
80@ = 1

:COPCAR_10987
if 
  82@ == 0
goto_if_false @COPCAR_11051
if and
  77@ == 1
  78@ == 1
  79@ == 1
  80@ == 1
goto_if_false @COPCAR_11051
82@ = 1

:COPCAR_11051
if 
  270@ == 2
goto_if_false @COPCAR_13882
if 
  not is_char_dead 46@
goto_if_false @COPCAR_12952
if 
  is_char_sitting_in_any_car 46@
goto_if_false @COPCAR_12406
mark_car_as_no_longer_needed 45@
45@ = store_car_char_is_in_no_save 46@
if 
  83@ == -1
goto_if_false @COPCAR_11219
55@ = get_number_of_followers 46@
if 
  55@ > 0
goto_if_false @COPCAR_11204
if 
  does_group_exist 276@
goto_if_false @COPCAR_11181
set_group_default_task_allocator 276@ {defaultTaskAllocator} DefaultTaskAllocator.SitInLeaderCar

:COPCAR_11181
set_lvar_int_to_var_int 88@ = $game_timer
88@ += 2000
goto @COPCAR_11212

:COPCAR_11204
set_lvar_int_to_var_int 88@ = $game_timer

:COPCAR_11212
83@ = 0

:COPCAR_11219
if 
  83@ == 0
goto_if_false @COPCAR_11378
if 
  is_int_var_greater_than_int_lvar $game_timer > 88@
goto_if_false @COPCAR_11378
set_car_cruise_speed 45@ {maxSpeed} 100.0
set_car_driving_style 45@ {drivingStyle} DrivingMode.AvoidCars
if 
  52@ == 0
goto_if_false @COPCAR_11326
if 
  not is_car_dead 40@
goto_if_false @COPCAR_11319
car_wander_randomly 45@
goto @COPCAR_11326

:COPCAR_11319
52@ = 1

:COPCAR_11326
if 
  52@ == 1
goto_if_false @COPCAR_11356
mark_car_as_convoy_car 45@ {state} False
car_wander_randomly 45@

:COPCAR_11356
set_lvar_int_to_var_int 174@ = $game_timer
83@ = 1
175@ = 0

:COPCAR_11378
if 
  83@ > 0
goto_if_false @COPCAR_12399
if 
  is_char_in_car $scplayer {vehicle} 45@
goto_if_false @COPCAR_11452
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11452
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_11452
set_lvar_int_to_lvar_int 153@ = 45@
set_lvar_int_to_lvar_int 154@ = 175@
set_lvar_int_to_lvar_int 155@ = 174@
set_lvar_float_to_lvar_float 150@ = 170@
set_lvar_float_to_lvar_float 151@ = 171@
set_lvar_float_to_lvar_float 152@ = 172@
if 
  173@ > 0.0
goto_if_false @COPCAR_11528
gosub @COPCAR_16050

:COPCAR_11528
set_lvar_int_to_lvar_int 175@ = 154@
set_lvar_int_to_lvar_int 174@ = 155@
set_lvar_float_to_lvar_float 170@ = 150@
set_lvar_float_to_lvar_float 171@ = 151@
set_lvar_float_to_lvar_float 172@ = 152@
if 
  175@ == -9
goto_if_false @COPCAR_11658
$task_status = get_script_task_status 46@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11651
$x, $y, $z = get_char_coordinates 46@
task_flee_point 46@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_11651
175@ = 0

:COPCAR_11658
if 
  not is_car_health_greater 45@ {health} 400
goto_if_false @COPCAR_11714
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11714
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_11714
if 
  not is_car_health_greater 45@ {health} 251
goto_if_false @COPCAR_11821
$task_status = get_script_task_status 46@ {taskId} 1498
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_11798
$x, $y, $z = get_char_coordinates 46@
task_flee_point 46@ {x} $x {y} $y {z} $z {radius} 15.0 {time} 1500

:COPCAR_11798
set_lvar_int_to_var_int 88@ = $game_timer
88@ += 2000
goto @COPCAR_11829

:COPCAR_11821
set_lvar_int_to_var_int 88@ = $game_timer

:COPCAR_11829
gosub @COPCAR_17577
168@, 169@, $z = get_char_coordinates 46@
set_var_float_to_var_float $x_temp = $player_x
sub_float_lvar_from_float_var $x_temp -= 168@
set_var_float_to_var_float $y_temp = $player_y
sub_float_lvar_from_float_var $y_temp -= 169@
mult_float_var_by_float_var $x_temp *= $x_temp
mult_float_var_by_float_var $y_temp *= $y_temp
set_lvar_float_to_var_float 149@ = $x_temp
add_float_var_to_float_lvar 149@ += $y_temp
149@ = sqrt 149@
173@ = 1000.0
div_float_lvar_by_float_lvar 173@ /= 149@
if 
  173@ > 100.0
goto_if_false @COPCAR_11971
173@ = 100.0

:COPCAR_11971
if 
  15.0 > 173@
goto_if_false @COPCAR_12002
173@ = 15.0

:COPCAR_12002
if 
  52@ == 0
goto_if_false @COPCAR_12354
if 
  not is_car_dead 40@
goto_if_false @COPCAR_12342
set_lvar_int_to_lvar_int 157@ = 45@
set_lvar_int_to_lvar_int 158@ = 40@
gosub @COPCAR_15047
set_lvar_float_to_lvar_float 173@ = 124@
138@ = get_car_forward_x 45@
139@ = get_car_forward_y 45@
134@, 135@, $z = get_car_coordinates 40@
136@, 137@, $z = get_car_coordinates 45@
set_lvar_float_to_lvar_float 120@ = 136@
sub_float_lvar_from_float_lvar 120@ -= 134@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 137@
sub_float_lvar_from_float_lvar 121@ -= 135@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 130@ = 138@
add_float_lvar_to_float_lvar 130@ += 139@
138@ = get_car_forward_x 40@
139@ = get_car_forward_y 40@
136@, 137@, $z = get_car_coordinates 45@
134@, 135@, $z = get_car_coordinates 40@
set_lvar_float_to_lvar_float 120@ = 134@
sub_float_lvar_from_float_lvar 120@ -= 136@
mult_float_lvar_by_float_lvar 138@ *= 120@
set_lvar_float_to_lvar_float 121@ = 135@
sub_float_lvar_from_float_lvar 121@ -= 137@
mult_float_lvar_by_float_lvar 139@ *= 121@
set_lvar_float_to_lvar_float 131@ = 138@
add_float_lvar_to_float_lvar 131@ += 139@
if 
  130@ > 0.0
goto_if_false @COPCAR_12335
if 
  0.0 > 131@
goto_if_false @COPCAR_12335
173@ = 0.0

:COPCAR_12335
goto @COPCAR_12354

:COPCAR_12342
car_wander_randomly 45@
52@ = 1

:COPCAR_12354
if 
  173@ == 0.0
goto_if_false @COPCAR_12391
set_car_temp_action 45@ {actionId} TempAction.Wait {time} 17
goto @COPCAR_12399

:COPCAR_12391
set_car_cruise_speed 45@ {maxSpeed} 173@

:COPCAR_12399
goto @COPCAR_12945

:COPCAR_12406
if 
  does_group_exist 276@
goto_if_false @COPCAR_12429
set_group_default_task_allocator 276@ {defaultTaskAllocator} DefaultTaskAllocator.FollowAnyMeans

:COPCAR_12429
83@ = -1
gosub @COPCAR_17577
if 
  is_int_var_greater_than_int_lvar $game_timer > 88@
goto_if_false @COPCAR_12945
if 
  locate_char_any_means_char_2d $scplayer {target} 46@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_12790
if 
  not is_char_in_any_car $scplayer
goto_if_false @COPCAR_12553
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12546
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_12546
goto @COPCAR_12783

:COPCAR_12553
if 
  locate_char_any_means_char_2d $scplayer {target} 46@ {xRadius} 25.0 {yRadius} 25.0 {drawSphere} False
goto_if_false @COPCAR_12628
$task_status = get_script_task_status 46@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12621
task_kill_char_on_foot 46@ {target} $scplayer

:COPCAR_12621
goto @COPCAR_12783

:COPCAR_12628
set_lvar_int_to_lvar_int 156@ = 46@
if 
  not is_car_dead 45@
goto_if_false @COPCAR_12776
if 
  is_car_health_greater 45@ {health} 400
goto_if_false @COPCAR_12762
if 
  locate_char_any_means_car_2d 46@ {vehicle} 45@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_12748
$task_status = get_script_task_status 46@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12741
task_enter_car_as_driver 46@ {vehicle} 45@ {time} -2

:COPCAR_12741
goto @COPCAR_12755

:COPCAR_12748
gosub @COPCAR_15260

:COPCAR_12755
goto @COPCAR_12769

:COPCAR_12762
gosub @COPCAR_15260

:COPCAR_12769
goto @COPCAR_12783

:COPCAR_12776
gosub @COPCAR_15260

:COPCAR_12783
goto @COPCAR_12945

:COPCAR_12790
set_lvar_int_to_lvar_int 156@ = 46@
if 
  not is_car_dead 45@
goto_if_false @COPCAR_12938
if 
  is_car_health_greater 45@ {health} 400
goto_if_false @COPCAR_12924
if 
  locate_char_any_means_car_2d 46@ {vehicle} 45@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_12910
$task_status = get_script_task_status 46@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_12903
task_enter_car_as_driver 46@ {vehicle} 45@ {time} -2

:COPCAR_12903
goto @COPCAR_12917

:COPCAR_12910
gosub @COPCAR_15260

:COPCAR_12917
goto @COPCAR_12931

:COPCAR_12924
gosub @COPCAR_15260

:COPCAR_12931
goto @COPCAR_12945

:COPCAR_12938
gosub @COPCAR_15260

:COPCAR_12945
goto @COPCAR_13542

:COPCAR_12952
remove_blip 94@
mark_char_as_no_longer_needed 46@
46@ = -1
if 
  84@ == 0
goto_if_false @COPCAR_13028
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
84@ = 1

:COPCAR_13028
if 
  does_group_exist 276@
goto_if_false @COPCAR_13542
if 
  not is_char_dead 47@
goto_if_false @COPCAR_13193
if 
  not is_group_member 47@ {handle} 276@
goto_if_false @COPCAR_13123
$task_status = get_script_task_status 47@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13116
task_kill_char_on_foot 47@ {target} $scplayer

:COPCAR_13116
goto @COPCAR_13186

:COPCAR_13123
if 
  is_group_leader 47@ {handle} 276@
goto_if_false @COPCAR_13186
set_lvar_int_to_lvar_int 46@ = 47@
47@ = -1
84@ = 0
85@ = 1
set_lvar_int_to_lvar_int 94@ = 101@
101@ = -1

:COPCAR_13186
goto @COPCAR_13210

:COPCAR_13193
remove_blip 101@
mark_char_as_no_longer_needed 47@
47@ = -1

:COPCAR_13210
if 
  not is_char_dead 48@
goto_if_false @COPCAR_13359
if 
  not is_group_member 48@ {handle} 276@
goto_if_false @COPCAR_13289
$task_status = get_script_task_status 48@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13282
task_kill_char_on_foot 48@ {target} $scplayer

:COPCAR_13282
goto @COPCAR_13352

:COPCAR_13289
if 
  is_group_leader 48@ {handle} 276@
goto_if_false @COPCAR_13352
set_lvar_int_to_lvar_int 46@ = 48@
48@ = -1
84@ = 0
86@ = 1
set_lvar_int_to_lvar_int 94@ = 102@
102@ = -1

:COPCAR_13352
goto @COPCAR_13376

:COPCAR_13359
remove_blip 102@
mark_char_as_no_longer_needed 48@
48@ = -1

:COPCAR_13376
if 
  not is_char_dead 49@
goto_if_false @COPCAR_13525
if 
  not is_group_member 49@ {handle} 276@
goto_if_false @COPCAR_13455
$task_status = get_script_task_status 49@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_13448
task_kill_char_on_foot 49@ {target} $scplayer

:COPCAR_13448
goto @COPCAR_13518

:COPCAR_13455
if 
  is_group_leader 49@ {handle} 276@
goto_if_false @COPCAR_13518
set_lvar_int_to_lvar_int 46@ = 49@
49@ = -1
84@ = 0
87@ = 1
set_lvar_int_to_lvar_int 94@ = 103@
103@ = -1

:COPCAR_13518
goto @COPCAR_13542

:COPCAR_13525
remove_blip 103@
mark_char_as_no_longer_needed 49@
49@ = -1

:COPCAR_13542
if 
  is_char_dead 47@
goto_if_false @COPCAR_13634
if 
  85@ == 0
goto_if_false @COPCAR_13634
remove_blip 101@
mark_char_as_no_longer_needed 47@
47@ = -1
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
85@ = 1

:COPCAR_13634
if 
  is_char_dead 48@
goto_if_false @COPCAR_13726
if 
  86@ == 0
goto_if_false @COPCAR_13726
mark_char_as_no_longer_needed 48@
48@ = -1
remove_blip 102@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
86@ = 1

:COPCAR_13726
if 
  is_char_dead 49@
goto_if_false @COPCAR_13818
if 
  87@ == 0
goto_if_false @COPCAR_13818
mark_char_as_no_longer_needed 49@
49@ = -1
remove_blip 103@
$total_criminals_killed += 1
increment_int_stat StatId.CriminalsCaught {value} 1
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
87@ = 1

:COPCAR_13818
if 
  89@ == 0
goto_if_false @COPCAR_13882
if and
  84@ == 1
  85@ == 1
  86@ == 1
  87@ == 1
goto_if_false @COPCAR_13882
89@ = 1

:COPCAR_13882
if and
  73@ == 1
  82@ == 1
  89@ == 1
goto_if_false @COPCAR_13921
goto @COPCAR_13928

:COPCAR_13921
goto @COPCAR_5778

:COPCAR_13928
register_int_stat StatId.VigilanteLevel {value} $copcar_print_level
51@ += 1
if or
  is_char_in_any_police_vehicle $scplayer
  is_char_in_model $scplayer {modelId} 425
goto_if_false @COPCAR_14005
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False
64@ = get_car_health 34@
64@ += 100
set_car_health 34@ {health} 64@

:COPCAR_14005
mark_car_as_no_longer_needed 35@
mark_char_as_no_longer_needed 36@
mark_char_as_no_longer_needed 37@
mark_char_as_no_longer_needed 38@
mark_char_as_no_longer_needed 39@
mark_car_as_no_longer_needed 40@
mark_char_as_no_longer_needed 41@
mark_char_as_no_longer_needed 42@
mark_char_as_no_longer_needed 43@
mark_char_as_no_longer_needed 44@
mark_car_as_no_longer_needed 45@
mark_char_as_no_longer_needed 46@
mark_char_as_no_longer_needed 47@
mark_char_as_no_longer_needed 48@
mark_char_as_no_longer_needed 49@
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_blip 95@
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_group 274@
remove_group 275@
remove_group 276@
set_lvar_int_to_lvar_int 54@ = 51@
mult_int_lvar_by_int_lvar 54@ *= 51@
54@ *= 50
force_big_message_and_counter True
print_with_number_big 'C_PASS' {num} 54@ {duration} 5000 {style} TextStyle.MiddleSmallerHigher
add_score $player1 {money} 54@
if 
  $done_copcar_progress == 0
goto_if_false @COPCAR_14273
if 
  51@ == 12
goto_if_false @COPCAR_14273
print_help 'C_COMP1'
player_made_progress 1
register_oddjob_mission_passed 
play_mission_passed_tune 2
$done_copcar_progress = 1

:COPCAR_14273
if -1
goto_if_false @COPCAR_14610
if 
  57@ == 0
goto_if_false @COPCAR_14360
53@ = get_game_timer 
if 
  $cop_time_limit > 60000
goto_if_false @COPCAR_14345
56@ = 60000
goto @COPCAR_14353

:COPCAR_14345
set_lvar_int_to_var_int 56@ = $cop_time_limit

:COPCAR_14353
57@ = 1

:COPCAR_14360
59@ = get_game_timer 
set_lvar_int_to_lvar_int 60@ = 59@
sub_int_lvar_from_int_lvar 60@ -= 53@
sub_int_lvar_from_int_lvar 56@ -= 60@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 61@ = 56@
61@ /= 1000
if 
  1 > 61@
goto_if_false @COPCAR_14494
61@ = 0
if 
  is_int_lvar_greater_than_int_lvar 59@ > 91@
goto_if_false @COPCAR_14487
print_now 'C_TIME' {time} 3000 {flag} 1
58@ = 1
goto @COPCAR_14740

:COPCAR_14487
goto @COPCAR_14510

:COPCAR_14494
set_lvar_int_to_lvar_int 91@ = 59@
91@ += 1000

:COPCAR_14510
if 
  61@ > -1
goto_if_false @COPCAR_14599
if 
  61@ == 1
goto_if_false @COPCAR_14576
add_next_message_to_previous_briefs False
print_with_number_now 'COPCA_T' {num} 61@ {duration} 200 {flag} 1
goto @COPCAR_14599

:COPCAR_14576
add_next_message_to_previous_briefs False
print_with_number_now 'COPCART' {num} 61@ {duration} 200 {flag} 1

:COPCAR_14599
wait 0
goto @COPCAR_14273

:COPCAR_14610
freeze_onscreen_timer True
if 
  is_char_in_any_car $scplayer
goto_if_false @COPCAR_14669
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False
64@ = get_car_health 34@
64@ += 200
set_car_health 34@ {health} 64@

:COPCAR_14669
if 
  13 > 51@
goto_if_false @COPCAR_14733
143@ -= 0.075
if 
  0.0 > 143@
goto_if_false @COPCAR_14728
143@ = 0.0

:COPCAR_14728
set_wanted_multiplier 143@

:COPCAR_14733
goto @COPCAR_1291

:COPCAR_14740
return 

:COPCAR_14742
$onmission = 0
remove_blip 92@
remove_blip 93@
remove_blip 94@
remove_blip 95@
remove_blip 96@
remove_blip 97@
remove_blip 98@
remove_blip 99@
remove_blip 100@
remove_blip 101@
remove_blip 102@
remove_blip 103@
remove_group 274@
remove_group 275@
remove_group 276@
clear_onscreen_timer $cop_time_limit
clear_onscreen_counter $copcar_print_level
clear_onscreen_counter $total_criminals_killed
mark_model_as_no_longer_needed 90@
mark_model_as_no_longer_needed 271@
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 336
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:COPCAR_14883
if 
  51@ == 0
goto_if_false @COPCAR_14951
159@ = generate_random_int_in_range 0 {max} 91
if and
  159@ > 7
  17 > 159@
goto_if_false @COPCAR_14944
159@ = generate_random_int_in_range 0 {max} 91

:COPCAR_14944
goto @COPCAR_15028

:COPCAR_14951
if 
  51@ == 1
goto_if_false @COPCAR_15019
159@ = generate_random_int_in_range 2 {max} 91
if and
  159@ > 7
  17 > 159@
goto_if_false @COPCAR_15012
159@ = generate_random_int_in_range 2 {max} 91

:COPCAR_15012
goto @COPCAR_15028

:COPCAR_15019
159@ = generate_random_int_in_range 67 {max} 91

:COPCAR_15028
set_lvar_int_to_lvar_int 90@ = 176@(159@,91i)
request_model 90@
return 

:COPCAR_15047
if 
  158@ == -1
goto_if_false @COPCAR_15086
122@, 123@, 120@ = get_char_coordinates $scplayer
goto @COPCAR_15100

:COPCAR_15086
122@, 123@, 120@ = get_car_coordinates 158@

:COPCAR_15100
118@, 119@, 120@ = get_car_coordinates 157@
set_lvar_float_to_lvar_float 120@ = 118@
sub_float_lvar_from_float_lvar 120@ -= 122@
set_lvar_float_to_lvar_float 121@ = 119@
sub_float_lvar_from_float_lvar 121@ -= 123@
mult_float_lvar_by_float_lvar 120@ *= 120@
mult_float_lvar_by_float_lvar 121@ *= 121@
add_float_lvar_to_float_lvar 120@ += 121@
120@ = sqrt 120@
set_lvar_float_to_lvar_float 124@ = 120@
124@ += 3.0
if 
  124@ > 100.0
goto_if_false @COPCAR_15227
124@ = 100.0

:COPCAR_15227
if 
  0.0 > 124@
goto_if_false @COPCAR_15258
124@ = 0.0

:COPCAR_15258
return 

:COPCAR_15260
if 
  not is_char_dead 156@
goto_if_false @COPCAR_16048
$coord_1_x, $coord_1_y, $coord_1_z = get_char_coordinates 156@
if 
  $heading == 919.9
goto_if_false @COPCAR_15328
$car = create_car 90@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z

:COPCAR_15328
if 
  locate_char_any_means_char_2d $scplayer {target} 156@ {xRadius} 40.0 {yRadius} 40.0 {drawSphere} False
goto_if_false @COPCAR_15733
set_var_float_to_var_float $coord_2_x = $coord_1_x
$coord_2_x += 40.0
set_var_float_to_var_float $coord_2_y = $coord_1_y
$coord_2_y += 40.0
$coord_1_x -= 40.0
$coord_1_y -= 40.0
mark_car_as_no_longer_needed $car
$car = -1
$car = get_random_car_of_type_in_area $coord_1_x {leftBottomY} $coord_1_y {rightTopX} $coord_2_x {rightTopY} $coord_2_y {modelId} -1
if or
  $car == -1
  is_int_lvar_equal_to_int_var 35@ == $car
goto_if_false @COPCAR_15516
$task_status = get_script_task_status 156@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15509
task_kill_char_on_foot 156@ {target} $scplayer

:COPCAR_15509
goto @COPCAR_15726

:COPCAR_15516
if 
  is_car_health_greater $car {health} 400
goto_if_false @COPCAR_15677
55@ = get_number_of_followers 156@
160@ = get_maximum_number_of_passengers $car
if 
  not is_int_lvar_greater_than_int_lvar 55@ > 160@
goto_if_false @COPCAR_15633
$task_status = get_script_task_status 156@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15626
lock_car_doors $car {lockStatus} CarLock.Unlocked
set_car_cruise_speed $car {maxSpeed} 0.0
task_enter_car_as_driver 156@ {vehicle} $car {time} -2

:COPCAR_15626
goto @COPCAR_15670

:COPCAR_15633
$task_status = get_script_task_status 156@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15670
task_kill_char_on_foot 156@ {target} $scplayer

:COPCAR_15670
goto @COPCAR_15726

:COPCAR_15677
$task_status = get_script_task_status 156@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15714
task_kill_char_on_foot 156@ {target} $scplayer

:COPCAR_15714
mark_car_as_no_longer_needed $car
$car = -1

:COPCAR_15726
goto @COPCAR_16048

:COPCAR_15733
$coord_1_x, $coord_1_y, $coord_1_z, $heading = get_closest_car_node_with_heading $coord_1_x {y} $coord_1_y {z} $coord_1_z
if 
  not is_point_on_screen $coord_1_x {y} $coord_1_y {z} $coord_1_z {radius} 3.0
goto_if_false @COPCAR_16048
if 
  not is_point_obscured_by_a_mission_entity $coord_1_x {y} $coord_1_y {z} $coord_1_z {radiusX} 3.0 {radiusY} 3.0 {radiusZ} 2.0
goto_if_false @COPCAR_15939
if 
  has_model_loaded 90@
goto_if_false @COPCAR_15932
$task_status = get_script_task_status 156@ {taskId} 1483
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_15932
mark_car_as_no_longer_needed $car
$car = create_car 90@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z
if 
  is_car_health_greater $car {health} 800
goto_if_false @COPCAR_15914
set_car_health $car {health} 800

:COPCAR_15914
set_car_heading $car {heading} $heading
task_enter_car_as_driver 156@ {vehicle} $car {time} -2

:COPCAR_15932
goto @COPCAR_16048

:COPCAR_15939
if 
  locate_char_on_foot_3d 156@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @COPCAR_16048
$task_status = get_script_task_status 156@ {taskId} 1491
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16048
$coord_1_x, $coord_1_y, $coord_1_z = get_closest_char_node $coord_1_x {y} $coord_1_y {z} $coord_1_z
task_go_straight_to_coord 156@ {x} $coord_1_x {y} $coord_1_y {z} $coord_1_z {speed} MoveState.Run {time} -2

:COPCAR_16048
return 

:COPCAR_16050
161@ = get_game_timer 
$temp_integer_1 = get_area_visible 
if 
  $temp_integer_1 == 0
goto_if_false @COPCAR_16674
if 
  not is_car_dead 153@
goto_if_false @COPCAR_16674
if and
  is_car_upsidedown 153@
  is_car_stopped 153@
goto_if_false @COPCAR_16276
52@ = 1
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 153@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @COPCAR_16174
set_upsidedown_car_not_damaged 153@ {state} False
154@ = -9
goto @COPCAR_16276

:COPCAR_16174
if 
  not is_car_on_screen 153@
goto_if_false @COPCAR_16276
$coord_c1_x, $coord_c1_y, $coord_c1_z = get_car_coordinates 153@
$coord_c1_x, $coord_c1_y, $coord_c1_z, $heading = get_closest_car_node_with_heading $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
if 
  not is_point_on_screen $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z {radius} 4.0
goto_if_false @COPCAR_16276
set_car_coordinates 153@ {x} $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
set_car_heading 153@ {heading} $heading

:COPCAR_16276
if 
  locate_car_3d 153@ {x} 150@ {y} 151@ {z} 152@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @COPCAR_16611
if 
  154@ == 0
goto_if_false @COPCAR_16351
set_lvar_int_to_lvar_int 155@ = 161@
154@ = 1

:COPCAR_16351
sub_int_lvar_from_int_lvar 161@ -= 155@
if 
  154@ == 1
goto_if_false @COPCAR_16611
if 
  161@ > 8000
goto_if_false @COPCAR_16611
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 153@ {xRadius} 90.0 {yRadius} 90.0 {drawSphere} False
goto_if_false @COPCAR_16453
set_upsidedown_car_not_damaged 153@ {state} False
155@ = get_game_timer 
154@ = -9
goto @COPCAR_16611

:COPCAR_16453
if 
  not is_car_on_screen 153@
goto_if_false @COPCAR_16611
$coord_c1_x, $coord_c1_y, $coord_c1_z = get_car_coordinates 153@
$coord_c1_x, $coord_c1_y, $coord_c1_z, $heading = get_closest_car_node_with_heading $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
if 
  not is_point_obscured_by_a_mission_entity $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @COPCAR_16611
if 
  not is_point_on_screen $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z {radius} 4.0
goto_if_false @COPCAR_16611
set_car_coordinates 153@ {x} $coord_c1_x {y} $coord_c1_y {z} $coord_c1_z
set_car_heading 153@ {heading} $heading
155@ = get_game_timer 
154@ = 0
52@ = 1

:COPCAR_16611
if 
  not locate_car_3d 153@ {x} 150@ {y} 151@ {z} 152@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @COPCAR_16674
150@, 151@, 152@ = get_car_coordinates 153@
154@ = 0

:COPCAR_16674
return 
$game_timer = get_game_timer 
return 
return 
return 

:COPCAR_16687
if 
  not is_char_dead 36@
goto_if_false @COPCAR_17130
if 
  does_group_exist 274@
goto_if_false @COPCAR_17130
if 
  not is_char_dead 37@
goto_if_false @COPCAR_16844
if 
  not is_group_member 37@ {handle} 274@
goto_if_false @COPCAR_16837
if 
  locate_char_any_means_char_2d 37@ {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_16800
set_group_member 274@ {handle} 37@
goto @COPCAR_16837

:COPCAR_16800
$task_status = get_script_task_status 37@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16837
task_kill_char_on_foot 37@ {target} $scplayer

:COPCAR_16837
goto @COPCAR_16856

:COPCAR_16844
mark_char_as_no_longer_needed 37@
37@ = -1

:COPCAR_16856
if 
  not is_char_dead 38@
goto_if_false @COPCAR_16981
if 
  not is_group_member 38@ {handle} 274@
goto_if_false @COPCAR_16974
if 
  locate_char_any_means_char_2d 38@ {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_16937
set_group_member 274@ {handle} 38@
goto @COPCAR_16974

:COPCAR_16937
$task_status = get_script_task_status 38@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_16974
task_kill_char_on_foot 38@ {target} $scplayer

:COPCAR_16974
goto @COPCAR_16993

:COPCAR_16981
mark_char_as_no_longer_needed 38@
38@ = -1

:COPCAR_16993
if 
  not is_char_dead 39@
goto_if_false @COPCAR_17118
if 
  not is_group_member 39@ {handle} 274@
goto_if_false @COPCAR_17111
if 
  locate_char_any_means_char_2d 39@ {target} 36@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17074
set_group_member 274@ {handle} 39@
goto @COPCAR_17111

:COPCAR_17074
$task_status = get_script_task_status 39@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17111
task_kill_char_on_foot 39@ {target} $scplayer

:COPCAR_17111
goto @COPCAR_17130

:COPCAR_17118
mark_char_as_no_longer_needed 39@
39@ = -1

:COPCAR_17130
return 

:COPCAR_17132
if 
  not is_char_dead 41@
goto_if_false @COPCAR_17575
if 
  does_group_exist 275@
goto_if_false @COPCAR_17575
if 
  not is_char_dead 42@
goto_if_false @COPCAR_17289
if 
  not is_group_member 42@ {handle} 275@
goto_if_false @COPCAR_17282
if 
  locate_char_any_means_char_2d 42@ {target} 41@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17245
set_group_member 275@ {handle} 42@
goto @COPCAR_17282

:COPCAR_17245
$task_status = get_script_task_status 42@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17282
task_kill_char_on_foot 42@ {target} $scplayer

:COPCAR_17282
goto @COPCAR_17301

:COPCAR_17289
mark_char_as_no_longer_needed 42@
42@ = -1

:COPCAR_17301
if 
  not is_char_dead 43@
goto_if_false @COPCAR_17426
if 
  not is_group_member 43@ {handle} 275@
goto_if_false @COPCAR_17419
if 
  locate_char_any_means_char_2d 43@ {target} 41@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17382
set_group_member 275@ {handle} 43@
goto @COPCAR_17419

:COPCAR_17382
$task_status = get_script_task_status 43@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17419
task_kill_char_on_foot 43@ {target} $scplayer

:COPCAR_17419
goto @COPCAR_17438

:COPCAR_17426
mark_char_as_no_longer_needed 43@
43@ = -1

:COPCAR_17438
if 
  not is_char_dead 44@
goto_if_false @COPCAR_17563
if 
  not is_group_member 44@ {handle} 275@
goto_if_false @COPCAR_17556
if 
  locate_char_any_means_char_2d 44@ {target} 41@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17519
set_group_member 275@ {handle} 44@
goto @COPCAR_17556

:COPCAR_17519
$task_status = get_script_task_status 44@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17556
task_kill_char_on_foot 44@ {target} $scplayer

:COPCAR_17556
goto @COPCAR_17575

:COPCAR_17563
mark_char_as_no_longer_needed 44@
44@ = -1

:COPCAR_17575
return 

:COPCAR_17577
if 
  not is_char_dead 46@
goto_if_false @COPCAR_18020
if 
  does_group_exist 276@
goto_if_false @COPCAR_18020
if 
  not is_char_dead 47@
goto_if_false @COPCAR_17734
if 
  not is_group_member 47@ {handle} 276@
goto_if_false @COPCAR_17727
if 
  locate_char_any_means_char_2d 47@ {target} 46@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17690
set_group_member 276@ {handle} 47@
goto @COPCAR_17727

:COPCAR_17690
$task_status = get_script_task_status 47@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17727
task_kill_char_on_foot 47@ {target} $scplayer

:COPCAR_17727
goto @COPCAR_17746

:COPCAR_17734
mark_char_as_no_longer_needed 47@
47@ = -1

:COPCAR_17746
if 
  not is_char_dead 48@
goto_if_false @COPCAR_17871
if 
  not is_group_member 48@ {handle} 276@
goto_if_false @COPCAR_17864
if 
  locate_char_any_means_char_2d 48@ {target} 46@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17827
set_group_member 276@ {handle} 48@
goto @COPCAR_17864

:COPCAR_17827
$task_status = get_script_task_status 48@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_17864
task_kill_char_on_foot 48@ {target} $scplayer

:COPCAR_17864
goto @COPCAR_17883

:COPCAR_17871
mark_char_as_no_longer_needed 48@
48@ = -1

:COPCAR_17883
if 
  not is_char_dead 49@
goto_if_false @COPCAR_18008
if 
  not is_group_member 49@ {handle} 276@
goto_if_false @COPCAR_18001
if 
  locate_char_any_means_char_2d 49@ {target} 46@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @COPCAR_17964
set_group_member 276@ {handle} 49@
goto @COPCAR_18001

:COPCAR_17964
$task_status = get_script_task_status 49@ {taskId} 1506
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @COPCAR_18001
task_kill_char_on_foot 49@ {target} $scplayer

:COPCAR_18001
goto @COPCAR_18020

:COPCAR_18008
mark_char_as_no_longer_needed 49@
49@ = -1

:COPCAR_18020
return 

:COPCAR_18022
set_char_decision_maker 50@ {handleOrTemplate} 267@
set_char_is_chris_criminal 50@ {state} True
set_char_only_damaged_by_player 50@ {state} True
set_char_force_die_in_car 50@ {state} True
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.CivMale
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.CivFemale
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Cop
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang1
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang2
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang8
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang3
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang5
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang7
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Gang6
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Dealer
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Emergency
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Fireman
set_char_relationship 50@ {relationshipType} RelationshipType.Hate {pedType} PedType.Bum
if 
  51@ == 0
goto_if_false @COPCAR_18213
159@ = generate_random_int_in_range 0 {max} 2

:COPCAR_18213
if 
  51@ > 1
goto_if_false @COPCAR_18240
159@ = generate_random_int_in_range 0 {max} 3

:COPCAR_18240
if 
  51@ > 4
goto_if_false @COPCAR_18267
159@ = generate_random_int_in_range 0 {max} 4

:COPCAR_18267
if 
  51@ > 6
goto_if_false @COPCAR_18294
159@ = generate_random_int_in_range 0 {max} 5

:COPCAR_18294
if 
  51@ > 8
goto_if_false @COPCAR_18321
159@ = generate_random_int_in_range 0 {max} 6

:COPCAR_18321
if 
  159@ == 0
goto_if_false @COPCAR_18404
159@ = generate_random_int_in_range 10 {max} 13
if 
  159@ == 10
goto_if_false @COPCAR_18376
give_weapon_to_char 50@ {weaponType} WeaponType.BaseballBat {ammo} 9999

:COPCAR_18376
if 
  159@ == 11
goto_if_false @COPCAR_18404
give_weapon_to_char 50@ {weaponType} WeaponType.BaseballBat {ammo} 9999

:COPCAR_18404
if 
  159@ == 1
goto_if_false @COPCAR_18432
give_weapon_to_char 50@ {weaponType} WeaponType.Pistol {ammo} 9999

:COPCAR_18432
if 
  159@ == 2
goto_if_false @COPCAR_18460
give_weapon_to_char 50@ {weaponType} WeaponType.MicroUzi {ammo} 9999

:COPCAR_18460
if 
  159@ == 3
goto_if_false @COPCAR_18488
give_weapon_to_char 50@ {weaponType} WeaponType.Ak47 {ammo} 9999

:COPCAR_18488
if or
  159@ == 4
  159@ == 5
goto_if_false @COPCAR_18523
give_weapon_to_char 50@ {weaponType} WeaponType.Shotgun {ammo} 9999

:COPCAR_18523
return 

:COPCAR_18525
if 
  $cop_time_limit <> -100
goto_if_false @COPCAR_18602
if 
  1 > $cop_time_limit
goto_if_false @COPCAR_18602
58@ = 1
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'C_TIME' {time} 3000 {flag} 1
return 

:COPCAR_18602
if -1
goto_if_false @COPCAR_18927
freeze_onscreen_timer False
if 
  57@ == 0
goto_if_false @COPCAR_18693
53@ = get_game_timer 
if 
  $cop_time_limit > 60000
goto_if_false @COPCAR_18678
56@ = 60000
goto @COPCAR_18686

:COPCAR_18678
set_lvar_int_to_var_int 56@ = $cop_time_limit

:COPCAR_18686
57@ = 1

:COPCAR_18693
59@ = get_game_timer 
set_lvar_int_to_lvar_int 60@ = 59@
sub_int_lvar_from_int_lvar 60@ -= 53@
sub_int_lvar_from_int_lvar 56@ -= 60@
set_lvar_int_to_lvar_int 53@ = 59@
set_lvar_int_to_lvar_int 61@ = 56@
61@ /= 1000
if 
  1 > 61@
goto_if_false @COPCAR_18822
61@ = 0
if 
  is_int_lvar_greater_than_int_lvar 59@ > 91@
goto_if_false @COPCAR_18815
print_now 'C_TIME' {time} 3000 {flag} 1
58@ = 1
return 

:COPCAR_18815
goto @COPCAR_18838

:COPCAR_18822
set_lvar_int_to_lvar_int 91@ = 59@
91@ += 1000

:COPCAR_18838
if 
  61@ > -1
goto_if_false @COPCAR_18927
if 
  61@ == 1
goto_if_false @COPCAR_18904
add_next_message_to_previous_briefs False
print_with_number_now 'COPCA_T' {num} 61@ {duration} 200 {flag} 1
goto @COPCAR_18927

:COPCAR_18904
add_next_message_to_previous_briefs False
print_with_number_now 'COPCART' {num} 61@ {duration} 200 {flag} 1

:COPCAR_18927
$controlmode = get_controller_mode 
if or
  is_char_in_any_police_vehicle $scplayer
  is_char_in_model $scplayer {modelId} 425
goto_if_false @COPCAR_19151
34@ = store_car_char_is_in_no_save $scplayer
set_can_burst_car_tyres 34@ {state} False
if 
  $controlmode <> 3
goto_if_false @COPCAR_19070
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @COPCAR_19038
if 
  62@ == 1
goto_if_false @COPCAR_19031
62@ = 2

:COPCAR_19031
goto @COPCAR_19063

:COPCAR_19038
if 
  62@ == 0
goto_if_false @COPCAR_19063
62@ = 1

:COPCAR_19063
goto @COPCAR_19144

:COPCAR_19070
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @COPCAR_19119
if 
  62@ == 1
goto_if_false @COPCAR_19112
62@ = 2

:COPCAR_19112
goto @COPCAR_19144

:COPCAR_19119
if 
  62@ == 0
goto_if_false @COPCAR_19144
62@ = 1

:COPCAR_19144
57@ = 0

:COPCAR_19151
if 
  62@ == 2
goto_if_false @COPCAR_19278
if 
  $controlmode <> 3
goto_if_false @COPCAR_19236
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @COPCAR_19229
print_now 'C_CANC' {time} 3000 {flag} 1
58@ = 1
return 

:COPCAR_19229
goto @COPCAR_19278

:COPCAR_19236
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @COPCAR_19278
print_now 'C_CANC' {time} 3000 {flag} 1
58@ = 1
return 

:COPCAR_19278
return 

//-------------Mission 125---------------
// Originally: Burglary Sub-Mission

:BURGJB
script_name 'BURGJB'
gosub @BURGJB_65
if 
  has_deatharrest_been_executed 
goto_if_false @BURGJB_38
gosub @BURGJB_8285

:BURGJB_38
gosub @BURGJB_8390
terminate_this_script 
if 
  $done_burglary_progress == 0
goto_if_false @BURGJB_65

:BURGJB_65
$onmission = 1
register_mission_given 
wait 0
set_fading_colour 0 {g} 0 {b} 0
load_mission_text 'BURGLAR'
enable_burglary_houses True
92@ = 0
93@ = 0
94@ = 0
95@ = 0
96@ = 0
97@ = 0
101@ = 0
98@ = 0
99@ = 0
100@ = 0
103@ = 0
102@ = 0
107@ = 0
108@ = 0
109@ = 0
110@ = 0
112@ = 0
47@ = 0
$burglary_session_made = 0
90@ = 0
89@ = 0
106@ = 0
$burglary_time_to_get_out = 10
$burglary_time_to_lockup = 300000
91@ = 0
105@ = 0
41@ = 0.0
$burglary_noise = 0.0
42@ = 9999999.0
43@ = 9999999.0
54@ = 2741.0
57@ = -2006.807
60@ = 14.0
set_var_text_label s$burglary_garage[0] = 'BURG_LK'
76@ = 2741.241
79@ = -2011.274
82@ = 13.5869
55@ = -2102.54
58@ = -15.5931
61@ = 34.3203
set_var_text_label s$burglary_garage[1] = 'BRGSFSE'
77@ = -2109.3201
80@ = -15.7967
83@ = 34.3203
56@ = 2609.248
59@ = 1439.347
62@ = 9.8203
set_var_text_label s$burglary_garage[2] = 'VGELOCK'
78@ = 2609.012
81@ = 1445.936
84@ = 9.8203
34@ = 0
48@ = 0
$burglary_player_spotted = 0
111@ = 0
$burglary_player_stealth = 0
$disable_mod_garage = 1
38@ = store_score $player1
39@ = store_score $player1
if 
  48@ == 99
goto_if_false @BURGJB_687
49@ = create_object #BRIEFCASE {x} 0.0 {y} 0.0 {z} 0.0
51@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0
53@ = add_blip_for_coord 0.0 {y} 0.0 {z} 0.0

:BURGJB_687
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_791
draw_oddjob_title_before_fade False
do_fade 1000 {direction} Fade.Out

:BURGJB_727
if 
  get_fading_status 
goto_if_false @BURGJB_751
wait 0
goto @BURGJB_727

:BURGJB_751
build_player_model $player1
do_fade 1000 {direction} Fade.In

:BURGJB_763
if 
  get_fading_status 
goto_if_false @BURGJB_787
wait 0
goto @BURGJB_763

:BURGJB_787
draw_oddjob_title_before_fade True

:BURGJB_791
$hours, $minutes = get_time_of_day 
if 
  $hours >= 20
goto_if_false @BURGJB_880
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 1440
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 360
36@ *= 1000
set_var_int_to_lvar_int $burglary_time_to_daylight = 36@

:BURGJB_880
if 
  6 > $hours
goto_if_false @BURGJB_953
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 360
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ *= 1000
set_var_int_to_lvar_int $burglary_time_to_daylight = 36@

:BURGJB_953
display_onscreen_timer_with_string $burglary_time_to_daylight {direction} TimerDirection.Down {text} 'BURG52'
display_nth_onscreen_counter_with_string $burglary_session_made {display} CounterDisplay.Number {slot} 1 {text} 'BURG51'
wait 0
if 
  is_char_in_any_car $scplayer
goto_if_false @BURGJB_1015
50@ = store_car_char_is_in $scplayer

:BURGJB_1015
wait 0
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @BURGJB_1044
$burglary_time_to_daylight = 10000000

:BURGJB_1044
if 
is_ps2_keyboard_key_pressed 49
goto_if_false @BURGJB_1089
set_char_coordinates $scplayer {x} 2741.928 {y} -1993.231 {z} 12.3669
set_char_heading $scplayer {heading} 173.5173

:BURGJB_1089
if 
is_ps2_keyboard_key_pressed 50
goto_if_false @BURGJB_1124
set_char_coordinates $scplayer {x} 2639.0 {y} 2039.911 {z} 9.8052

:BURGJB_1124
if 
is_ps2_keyboard_key_pressed 99
goto_if_false @BURGJB_1147
$burglary_time_to_daylight = 5000

:BURGJB_1147
if 
is_ps2_keyboard_key_pressed 48
goto_if_false @BURGJB_1170
$burglary_time_to_lockup = 5000

:BURGJB_1170
if 
is_ps2_keyboard_key_pressed 53
goto_if_false @BURGJB_1193
$burglary_total_made = 11000

:BURGJB_1193
if 
is_ps2_keyboard_key_pressed 54
goto_if_false @BURGJB_1215
48@ = 3

:BURGJB_1215
if 
  110@ == 0
goto_if_false @BURGJB_2124
if 
  $burglary_time_to_daylight == 0
goto_if_false @BURGJB_1941
clear_prints 
enable_burglary_houses False
if 
  92@ == 1
goto_if_false @BURGJB_1541
set_player_control $player1 {state} False
do_fade 1000 {direction} Fade.Out

:BURGJB_1289
if 
  get_fading_status 
goto_if_false @BURGJB_1313
wait 0
goto @BURGJB_1289

:BURGJB_1313
clear_help 
set_area_visible 0
request_collision 69@ {y} 70@
load_scene 69@ {y} 70@ {z} 71@
set_char_coordinates_no_offset $scplayer {x} 69@ {y} 70@ {z} 71@
shut_char_up $scplayer {state} False
72@ += 180.0
set_char_heading $scplayer {heading} 72@
set_char_has_used_entry_exit $scplayer {x} 73@ {y} 74@ {radius} 5.0
load_scene 69@ {y} 70@ {z} 71@
if 
  48@ == 0
goto_if_false @BURGJB_1467
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_1467
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_1467
92@ = 0
93@ = 0
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_1496
restore_camera_jumpcut 

:BURGJB_1496
do_fade 1000 {direction} Fade.In

:BURGJB_1503
if 
  get_fading_status 
goto_if_false @BURGJB_1527
wait 0
goto @BURGJB_1503

:BURGJB_1527
set_player_control $player1 {state} True
goto @BURGJB_1704

:BURGJB_1541
if 
  48@ == 0
goto_if_false @BURGJB_1704
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_1704
if 
  is_player_control_on $player1
goto_if_false @BURGJB_1611
set_player_control $player1 {state} False

:BURGJB_1611
do_fade 1000 {direction} Fade.Out

:BURGJB_1618
if 
  get_fading_status 
goto_if_false @BURGJB_1642
wait 0
goto @BURGJB_1618

:BURGJB_1642
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_1673
restore_camera_jumpcut 

:BURGJB_1673
do_fade 1000 {direction} Fade.In

:BURGJB_1680
if 
  get_fading_status 
goto_if_false @BURGJB_1704
wait 0
goto @BURGJB_1680

:BURGJB_1704
clear_onscreen_timer $burglary_time_to_daylight
if 
  48@ > 0
goto_if_false @BURGJB_1887
display_onscreen_timer_with_string $burglary_time_to_lockup {direction} TimerDirection.Down {text} 'BURG3'
clear_prints 
print 'BURG2' {time} 5000 {flag} 1
if 
  93@ == 1
goto_if_false @BURGJB_1809
print 'BURG26' {time} 5000 {flag} 1
102@ = 2
goto @BURGJB_1880

:BURGJB_1809
if 
  94@ == 1
goto_if_false @BURGJB_1857
print 'BURG27' {time} 5000 {flag} 1
102@ = 1
goto @BURGJB_1880

:BURGJB_1857
print 'BURG1' {time} 5000 {flag} 1
102@ = 3

:BURGJB_1880
goto @BURGJB_1927

:BURGJB_1887
$burglary_time_to_lockup = 0
delete_object 49@
mark_object_as_no_longer_needed 49@
print 'BURG53' {time} 5000 {flag} 1
goto @BURGJB_8285

:BURGJB_1927
110@ = 1
goto @BURGJB_2117

:BURGJB_1941
$hours, $minutes = get_time_of_day 
if 
  $hours >= 20
goto_if_false @BURGJB_2037
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 1440
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 360
36@ += 1
36@ *= 1000
set_var_int_to_lvar_int $burglary_time_to_daylight = 36@

:BURGJB_2037
if 
  6 > $hours
goto_if_false @BURGJB_2117
set_lvar_int_to_var_int 88@ = $hours
88@ *= 60
add_int_var_to_int_lvar 88@ += $minutes
36@ = 360
sub_int_lvar_from_int_lvar 36@ -= 88@
36@ += 1
36@ *= 1000
set_var_int_to_lvar_int $burglary_time_to_daylight = 36@

:BURGJB_2117
goto @BURGJB_2322

:BURGJB_2124
if 
  $burglary_time_to_lockup == 0
goto_if_false @BURGJB_2322
clear_prints 
if 
  is_player_control_on $player1
goto_if_false @BURGJB_2167
set_player_control $player1 {state} False

:BURGJB_2167
do_fade 1000 {direction} Fade.Out

:BURGJB_2174
if 
  get_fading_status 
goto_if_false @BURGJB_2198
wait 0
goto @BURGJB_2174

:BURGJB_2198
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_2243
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_2243
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_2258
restore_camera_jumpcut 

:BURGJB_2258
do_fade 1000 {direction} Fade.In

:BURGJB_2265
if 
  get_fading_status 
goto_if_false @BURGJB_2289
wait 0
goto @BURGJB_2265

:BURGJB_2289
print 'BURG53' {time} 5000 {flag} 1
delete_object 49@
mark_object_as_no_longer_needed 49@
goto @BURGJB_8285

:BURGJB_2322
if 
  95@ == 0
goto_if_false @BURGJB_7785
gosub @BURGJB_7906
37@ = get_area_visible 
if 
  37@ == 0
goto_if_false @BURGJB_2404
if 
goto_if_false @BURGJB_2404
print 'BURG62' {time} 5000 {flag} 1
goto @BURGJB_8285

:BURGJB_2404
if 
  93@ == 1
goto_if_false @BURGJB_2647
if and
  is_wanted_level_greater $player1 {wantedLevel} 0
  48@ > 0
goto_if_false @BURGJB_2497
if 
  102@ <> 5
goto_if_false @BURGJB_2490
clear_prints 
print 'BURG50' {time} 5000 {flag} 1
102@ = 5

:BURGJB_2490
goto @BURGJB_2640

:BURGJB_2497
if 
  102@ <> 2
goto_if_false @BURGJB_2640
clear_prints 
if 
  48@ > 0
goto_if_false @BURGJB_2599
if 
  110@ == 0
goto_if_false @BURGJB_2576
print 'BURG4' {time} 5000 {flag} 1
goto @BURGJB_2592

:BURGJB_2576
print 'BURG26' {time} 5000 {flag} 1

:BURGJB_2592
goto @BURGJB_2633

:BURGJB_2599
if 
  110@ == 0
goto_if_false @BURGJB_2633
print 'BURG29' {time} 5000 {flag} 1

:BURGJB_2633
102@ = 2

:BURGJB_2640
goto @BURGJB_3037

:BURGJB_2647
if 
  110@ == 0
goto_if_false @BURGJB_2910
if 
  94@ == 1
goto_if_false @BURGJB_2751
if 
  102@ <> 1
goto_if_false @BURGJB_2744
if 
  92@ == 0
goto_if_false @BURGJB_2744
clear_prints 
print 'BURG27' {time} 5000 {flag} 1
102@ = 1

:BURGJB_2744
goto @BURGJB_2903

:BURGJB_2751
if 
  92@ == 1
goto_if_false @BURGJB_2819
if 
  102@ <> 4
goto_if_false @BURGJB_2812
clear_prints 
print 'BURG30' {time} 5000 {flag} 1
102@ = 4

:BURGJB_2812
goto @BURGJB_2903

:BURGJB_2819
if 
  102@ <> 3
goto_if_false @BURGJB_2903
clear_prints 
if 
  48@ == 0
goto_if_false @BURGJB_2880
print 'BURG29' {time} 5000 {flag} 1
goto @BURGJB_2896

:BURGJB_2880
print 'BURG31' {time} 5000 {flag} 1

:BURGJB_2896
102@ = 3

:BURGJB_2903
goto @BURGJB_3037

:BURGJB_2910
if 
  94@ == 1
goto_if_false @BURGJB_2996
if 
  102@ <> 1
goto_if_false @BURGJB_2989
if 
  92@ == 0
goto_if_false @BURGJB_2989
clear_prints 
print 'BURG27' {time} 5000 {flag} 1
102@ = 1

:BURGJB_2989
goto @BURGJB_3037

:BURGJB_2996
if 
  102@ <> 3
goto_if_false @BURGJB_3037
print 'BURG1' {time} 5000 {flag} 1
102@ = 3

:BURGJB_3037
if 
  not is_car_dead 50@
goto_if_false @BURGJB_7634
if 
  92@ == 0
goto_if_false @BURGJB_3349
if 
  not is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_3181
93@ = 0
if 
  99@ == 1
goto_if_false @BURGJB_3127
remove_blip 51@
99@ = 0

:BURGJB_3127
if 
  97@ == 0
goto_if_false @BURGJB_3174
52@ = add_blip_for_car 50@
change_blip_display 52@ {display} BlipDisplay.BlipOnly
set_blip_as_friendly 52@ {state} True
97@ = 1

:BURGJB_3174
goto @BURGJB_3349

:BURGJB_3181
93@ = 1
if 
  97@ == 1
goto_if_false @BURGJB_3225
108@ = 0
remove_blip 52@
97@ = 0

:BURGJB_3225
if 
  48@ > 0
goto_if_false @BURGJB_3349
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @BURGJB_3298
if 
  99@ == 1
goto_if_false @BURGJB_3291
remove_blip 51@
99@ = 0

:BURGJB_3291
goto @BURGJB_3349

:BURGJB_3298
if 
  99@ == 0
goto_if_false @BURGJB_3349
51@ = add_blip_for_coord 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f)
99@ = 1

:BURGJB_3349
if 
  108@ == 0
goto_if_false @BURGJB_3801
$Return_cities_passed = get_int_stat StatId.CitiesPassed
if 
  $Return_cities_passed == 0
goto_if_false @BURGJB_3407
35@ = 0
goto @BURGJB_3783

:BURGJB_3407
if 
  $Return_cities_passed == 1
goto_if_false @BURGJB_3579
63@, 64@, 65@ = get_char_coordinates $scplayer
35@ = get_city_from_coords 63@ {y} 64@ {z} 65@
if 
  35@ > 0
goto_if_false @BURGJB_3485
35@ -= 1
goto @BURGJB_3572

:BURGJB_3485
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 54@ {toY} 57@ {toZ} 60@
35@ = 0
set_lvar_float_to_lvar_float 43@ = 42@
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 55@ {toY} 58@ {toZ} 61@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3572
35@ = 1

:BURGJB_3572
goto @BURGJB_3783

:BURGJB_3579
63@, 64@, 65@ = get_char_coordinates $scplayer
35@ = get_city_from_coords 63@ {y} 64@ {z} 65@
if 
  35@ > 0
goto_if_false @BURGJB_3639
35@ -= 1
goto @BURGJB_3783

:BURGJB_3639
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 54@ {toY} 57@ {toZ} 60@
35@ = 0
set_lvar_float_to_lvar_float 43@ = 42@
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 55@ {toY} 58@ {toZ} 61@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3734
35@ = 1
set_lvar_float_to_lvar_float 43@ = 42@

:BURGJB_3734
42@ = get_distance_between_coords_3d 63@ {fromY} 64@ {fromZ} 65@ {toX} 56@ {toY} 59@ {toZ} 62@
if 
  is_float_lvar_greater_than_float_lvar 43@ > 42@
goto_if_false @BURGJB_3783
35@ = 2

:BURGJB_3783
change_garage_type $burglary_garage(35@,3s) {type} GarageType.ForScriptToOpenAndClose
108@ = 1

:BURGJB_3801
if 
  not is_car_dead 50@
goto_if_false @BURGJB_5248
if or
  locate_char_any_means_3d $scplayer {x} 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 4.0 {drawSphere} False
  locate_car_3d 50@ {x} 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @BURGJB_5219
if 
  not is_garage_open $burglary_garage(35@,3s)
goto_if_false @BURGJB_3943
open_garage $burglary_garage(35@,3s)

:BURGJB_3943
if 
  108@ == 1
goto_if_false @BURGJB_5212
if 
  93@ == 1
goto_if_false @BURGJB_5212
if 
  48@ > 0
goto_if_false @BURGJB_5212
if 
  is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @BURGJB_4070
if 
  99@ == 1
goto_if_false @BURGJB_4063
clear_prints 
print 'BURG50' {time} 5000 {flag} 1
remove_blip 51@
99@ = 0

:BURGJB_4063
goto @BURGJB_5212

:BURGJB_4070
if 
  99@ == 0
goto_if_false @BURGJB_4146
clear_prints 
print 'BURG26' {time} 5000 {flag} 1
51@ = add_blip_for_coord 54@(35@,3f) {y} 57@(35@,3f) {z} 60@(35@,3f)
99@ = 1
goto @BURGJB_5212

:BURGJB_4146
print 'BURG40' {time} 1000 {flag} 1
if 
  locate_char_in_car_3d $scplayer {x} 76@(35@,3f) {y} 79@(35@,3f) {z} 82@(35@,3f) {xRadius} 2.9 {yRadius} 3.2 {zRadius} 5.0 {drawSphere} True
goto_if_false @BURGJB_5212
set_player_control $player1 {state} False
set_police_ignore_player $player1 {state} True
clear_prints 
clear_area 76@(35@,3f) {y} 79@(35@,3f) {z} 82@(35@,3f) {radius} 10.0 {clearParticles} True
if 
  110@ == 1
goto_if_false @BURGJB_4295
clear_onscreen_timer $burglary_time_to_lockup
$burglary_time_to_lockup = 999999

:BURGJB_4295
if 
  not is_garage_closed $burglary_garage(35@,3s)
goto_if_false @BURGJB_4324
close_garage $burglary_garage(35@,3s)

:BURGJB_4324
104@ = 0

:BURGJB_4331
if 
  104@ == 0
goto_if_false @BURGJB_4387
wait 0
if 
  is_garage_closed $burglary_garage(35@,3s)
goto_if_false @BURGJB_4380
104@ = 1

:BURGJB_4380
goto @BURGJB_4331

:BURGJB_4387
remove_blip 51@
set_lvar_int_to_lvar_int 34@ = 48@
34@ *= 20
mult_int_lvar_by_int_lvar 34@ *= 48@
add_int_lvar_to_int_var $burglary_total_items += 48@
add_int_lvar_to_int_var $burglary_total_made += 34@
cset_lvar_float_to_var_int 45@ =# $burglary_total_made
cset_lvar_float_to_lvar_int 46@ =# 34@
add_int_lvar_to_int_lvar 47@ += 48@
add_int_lvar_to_int_var $burglary_session_made += 34@
register_float_stat StatId.LargestBurglarySwag {value} 46@
increment_float_stat StatId.MoneyMadeBurglary {value} 46@
increment_int_stat StatId.StolenItemsSold {value} 48@
if 
  110@ == 1
goto_if_false @BURGJB_4653
if 
  is_player_control_on $player1
goto_if_false @BURGJB_4526
set_player_control $player1 {state} False

:BURGJB_4526
do_fade 1000 {direction} Fade.Out

:BURGJB_4533
if 
  get_fading_status 
goto_if_false @BURGJB_4557
wait 0
goto @BURGJB_4533

:BURGJB_4557
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_4602
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_4602
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_4615

:BURGJB_4615
do_fade 1000 {direction} Fade.In

:BURGJB_4622
if 
  get_fading_status 
goto_if_false @BURGJB_4646
wait 0
goto @BURGJB_4622

:BURGJB_4646
goto @BURGJB_4822

:BURGJB_4653
if and
  $burglary_total_made >= 10000
  $done_burglary_progress == 0
goto_if_false @BURGJB_4822
if 
  is_player_control_on $player1
goto_if_false @BURGJB_4702
set_player_control $player1 {state} False

:BURGJB_4702
do_fade 1000 {direction} Fade.Out

:BURGJB_4709
if 
  get_fading_status 
goto_if_false @BURGJB_4733
wait 0
goto @BURGJB_4709

:BURGJB_4733
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_4778
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:BURGJB_4778
if 
  not is_minigame_in_progress 
goto_if_false @BURGJB_4791

:BURGJB_4791
do_fade 1000 {direction} Fade.In

:BURGJB_4798
if 
  get_fading_status 
goto_if_false @BURGJB_4822
wait 0
goto @BURGJB_4798

:BURGJB_4822
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
if 
  2 > 48@
goto_if_false @BURGJB_4889
print_with_2_numbers_big 'BURG39' {num1} 48@ {num2} 34@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @BURGJB_4911

:BURGJB_4889
print_with_2_numbers_big 'BURG36' {num1} 48@ {num2} 34@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:BURGJB_4911
add_score $player1 {money} 34@
TIMERA = 0

:BURGJB_4926
if or
  is_message_being_displayed 
  4000 > TIMERA
goto_if_false @BURGJB_4958
wait 0
goto @BURGJB_4926

:BURGJB_4958
if 
  not is_garage_open $burglary_garage(35@,3s)
goto_if_false @BURGJB_4987
open_garage $burglary_garage(35@,3s)

:BURGJB_4987
104@ = 0

:BURGJB_4994
if 
  104@ == 0
goto_if_false @BURGJB_5050
wait 0
if 
  is_garage_open $burglary_garage(35@,3s)
goto_if_false @BURGJB_5043
104@ = 1

:BURGJB_5043
goto @BURGJB_4994

:BURGJB_5050
if and
  $burglary_total_made >= 10000
  $done_burglary_progress == 0
goto_if_false @BURGJB_5104
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
goto @BURGJB_8325
goto @BURGJB_5166

:BURGJB_5104
if 
  110@ == 0
goto_if_false @BURGJB_5138
print 'BURG29' {time} 5000 {flag} 1

:BURGJB_5138
99@ = 0
34@ = 0
48@ = 0
105@ = 0

:BURGJB_5166
set_player_control $player1 {state} True
set_police_ignore_player $player1 {state} False
if 
  110@ == 1
goto_if_false @BURGJB_5212
goto @BURGJB_8285
$burglary_time_to_lockup = 0

:BURGJB_5212
goto @BURGJB_5248

:BURGJB_5219
if 
  not is_garage_closed $burglary_garage(35@,3s)
goto_if_false @BURGJB_5248
close_garage $burglary_garage(35@,3s)

:BURGJB_5248
if 
  93@ == 0
goto_if_false @BURGJB_5683
if 
  is_procedural_interior_active 0
goto_if_false @BURGJB_5423
if 
  107@ == 0
goto_if_false @BURGJB_5409
69@, 70@, 71@, 72@ = get_position_of_entry_exit_char_used $scplayer
73@, 74@, 75@ = get_char_coordinates $scplayer
if 
  does_object_exist 49@
goto_if_false @BURGJB_5378
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_5378
37@ = get_area_visible 
set_object_area_visible 49@ {areaId} 37@

:BURGJB_5378
remove_blip 52@
shut_char_up $scplayer {state} True
set_radar_zoom 90
39@ = store_score $player1
107@ = 1

:BURGJB_5409
92@ = 1
goto @BURGJB_5683

:BURGJB_5423
if 
  107@ == 1
goto_if_false @BURGJB_5676
shut_char_up $scplayer {state} False
if 
  does_object_exist 49@
goto_if_false @BURGJB_5496
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_5496
37@ = get_area_visible 
set_object_area_visible 49@ {areaId} 37@

:BURGJB_5496
if 
  not is_car_dead 50@
goto_if_false @BURGJB_5527
52@ = add_blip_for_car 50@
set_blip_as_friendly 52@ {state} True

:BURGJB_5527
set_radar_zoom 0
107@ = 0
if 
  94@ == 1
goto_if_false @BURGJB_5676
112@ = 1
if 
  is_float_lvar_equal_to_float_lvar 85@ == 69@
goto_if_false @BURGJB_5627
if 
  is_float_lvar_equal_to_float_lvar 86@ == 70@
goto_if_false @BURGJB_5627
if 
  is_float_lvar_equal_to_float_lvar 87@ == 71@
goto_if_false @BURGJB_5627
112@ = 0

:BURGJB_5627
if 
  112@ == 1
goto_if_false @BURGJB_5676
set_lvar_float_to_lvar_float 85@ = 69@
set_lvar_float_to_lvar_float 86@ = 70@
set_lvar_float_to_lvar_float 87@ = 71@
increment_int_stat StatId.HousesBurgled {value} 1

:BURGJB_5676
92@ = 0

:BURGJB_5683
if 
  93@ == 0
goto_if_false @BURGJB_6459
if 
  92@ == 0
goto_if_false @BURGJB_6459
if 
  94@ == 0
goto_if_false @BURGJB_5961
63@, 64@, 65@ = get_char_coordinates $scplayer
49@ = get_closest_stealable_object 63@ {y} 64@ {z} 65@ {radius} 5.0
if 
  49@ <> -1
goto_if_false @BURGJB_5954
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_5848
if 
  100@ == 1
goto_if_false @BURGJB_5834
clear_help 
100@ = 0

:BURGJB_5834
94@ = 1
goto @BURGJB_5954

:BURGJB_5848
if 
  locate_char_on_foot_object_3d $scplayer {object} 49@ {xRadius} 1.7 {yRadius} 1.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BURGJB_5927
if 
  100@ == 0
goto_if_false @BURGJB_5920
print_help_forever 'BURG23'
100@ = 1

:BURGJB_5920
goto @BURGJB_5954

:BURGJB_5927
if 
  100@ == 1
goto_if_false @BURGJB_5954
clear_help 
100@ = 0

:BURGJB_5954
goto @BURGJB_6017

:BURGJB_5961
if 
  does_object_exist 49@
goto_if_false @BURGJB_6010
if 
  not is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_6003
94@ = 0

:BURGJB_6003
goto @BURGJB_6017

:BURGJB_6010
94@ = 0

:BURGJB_6017
if or
  $burglary_player_spotted == 1
  98@ == 1
goto_if_false @BURGJB_6075
$burglary_player_spotted = 0
98@ = 0
clear_onscreen_counter $burglary_time_to_get_out
$burglary_time_to_get_out = 10
109@ = 0

:BURGJB_6075
if 
  101@ == 1
goto_if_false @BURGJB_6132
clear_onscreen_counter $burglary_player_stealth
$burglary_noise = 0.0
41@ = 0.0
$burglary_player_stealth = 0
101@ = 0

:BURGJB_6132
if 
  94@ == 1
goto_if_false @BURGJB_6459
66@, 67@, 68@ = get_offset_from_car_in_world_coords 50@ {xOffset} 0.0 {yOffset} -6.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} 66@ {y} 67@ {z} 68@ {xRadius} 3.5 {yRadius} 3.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @BURGJB_6432
if 
  100@ == 0
goto_if_false @BURGJB_6257
print_help_forever 'BURG24'
100@ = 1

:BURGJB_6257
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BURGJB_6425
clear_help 
48@ += 1
TIMERB = 0
104@ = 0
if 
  does_object_exist 49@
goto_if_false @BURGJB_6418

:BURGJB_6313
if 
  104@ == 0
goto_if_false @BURGJB_6381
if or
  not is_char_holding_object $scplayer {handle} 49@
  is_char_dead $scplayer
  TIMERB > 5000
goto_if_false @BURGJB_6370
104@ = 1

:BURGJB_6370
wait 0
goto @BURGJB_6313

:BURGJB_6381
delete_object 49@
mark_object_as_no_longer_needed 49@
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
94@ = 0

:BURGJB_6418
100@ = 0

:BURGJB_6425
goto @BURGJB_6459

:BURGJB_6432
if 
  100@ == 1
goto_if_false @BURGJB_6459
clear_help 
100@ = 0

:BURGJB_6459
if 
  92@ == 1
goto_if_false @BURGJB_7627
if and
  98@ == 0
  $burglary_player_spotted == 0
goto_if_false @BURGJB_6932
if 
  101@ == 0
goto_if_false @BURGJB_6584
111@ = get_number_of_instances_of_streamed_script 23
if 
  111@ > 0
goto_if_false @BURGJB_6577
display_nth_onscreen_counter_with_string $burglary_player_stealth {display} CounterDisplay.Bar {slot} 2 {text} 'BURG25'
shut_char_up $scplayer {state} True
101@ = 1

:BURGJB_6577
goto @BURGJB_6925

:BURGJB_6584
111@ = get_number_of_instances_of_streamed_script 23
if 
  111@ <> 0
goto_if_false @BURGJB_6879
63@, 64@, 65@ = get_char_coordinates $scplayer
$burglary_noise = get_sound_level_at_coords -1 {x} 63@ {y} 64@ {z} 65@
$burglary_noise *= 1.6
if 
  $burglary_noise > 20.0
goto_if_false @BURGJB_6688
$burglary_noise -= 20.0
add_float_var_to_float_lvar 41@ += $burglary_noise

:BURGJB_6688
41@ *= 0.99
cset_var_int_to_lvar_float $burglary_player_stealth =# 41@
if 
  $burglary_player_stealth >= 100
goto_if_false @BURGJB_6768
$burglary_player_stealth = 100
if 
  106@ == 0
goto_if_false @BURGJB_6761
89@ = get_game_timer 
106@ = 1

:BURGJB_6761
goto @BURGJB_6800

:BURGJB_6768
if 
  0 > $burglary_player_stealth
goto_if_false @BURGJB_6793
$burglary_player_stealth = 0

:BURGJB_6793
106@ = 0

:BURGJB_6800
if 
  106@ == 1
goto_if_false @BURGJB_6872
90@ = get_game_timer 
set_lvar_int_to_lvar_int 91@ = 90@
sub_int_lvar_from_int_lvar 91@ -= 89@
if 
  91@ > 200
goto_if_false @BURGJB_6872
98@ = 1
105@ += 1

:BURGJB_6872
goto @BURGJB_6925

:BURGJB_6879
clear_onscreen_counter $burglary_player_stealth
$burglary_noise = 0.0
41@ = 0.0
$burglary_player_stealth = 0
101@ = 0
shut_char_up $scplayer {state} False

:BURGJB_6925
goto @BURGJB_7289

:BURGJB_6932
if 
  101@ == 1
goto_if_false @BURGJB_7044
clear_onscreen_counter $burglary_player_stealth
$burglary_time_to_get_out = 10
clear_prints 
print 'BURG55' {time} 5000 {flag} 1
display_nth_onscreen_counter_with_string $burglary_time_to_get_out {display} CounterDisplay.Number {slot} 2 {text} 'BURG61'
89@ = get_game_timer 
$burglary_noise = 0.0
41@ = 0.0
$burglary_player_stealth = 0
101@ = 0
goto @BURGJB_7289

:BURGJB_7044
if 
  109@ == 0
goto_if_false @BURGJB_7289
90@ = get_game_timer 
set_lvar_int_to_lvar_int 91@ = 90@
sub_int_lvar_from_int_lvar 91@ -= 89@
91@ /= 1000
$burglary_time_to_get_out = 10
sub_int_lvar_from_int_var $burglary_time_to_get_out -= 91@
if or
  0 > $burglary_time_to_get_out
  $burglary_time_to_get_out == 0
goto_if_false @BURGJB_7200
$burglary_time_to_get_out = 0
if 
  not is_wanted_level_greater $player1 {wantedLevel} 4
goto_if_false @BURGJB_7163
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:BURGJB_7163
109@ = 1
clear_prints 
print 'BURG60' {time} 5000 {flag} 1
clear_onscreen_counter $burglary_time_to_get_out
goto @BURGJB_7289

:BURGJB_7200
clear_this_print 'BURG58'
clear_this_print 'BURG59'
add_next_message_to_previous_briefs False
if 
  $burglary_time_to_get_out > 1
goto_if_false @BURGJB_7270
print_with_number 'BURG58' {num} $burglary_time_to_get_out {duration} 1000 {flag} 1
goto @BURGJB_7289

:BURGJB_7270
print_with_number 'BURG59' {num} $burglary_time_to_get_out {duration} 1000 {flag} 1

:BURGJB_7289
if 
  94@ == 0
goto_if_false @BURGJB_7549
63@, 64@, 65@ = get_char_coordinates $scplayer
49@ = get_closest_stealable_object 63@ {y} 64@ {z} 65@ {radius} 5.0
if 
  49@ <> -1
goto_if_false @BURGJB_7542
if 
  is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_7436
if 
  100@ == 1
goto_if_false @BURGJB_7422
clear_prints 
print 'BURG57' {time} 5000 {flag} 1
clear_help 
100@ = 0

:BURGJB_7422
94@ = 1
goto @BURGJB_7542

:BURGJB_7436
if 
  locate_char_on_foot_object_3d $scplayer {object} 49@ {xRadius} 1.7 {yRadius} 1.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BURGJB_7515
if 
  100@ == 0
goto_if_false @BURGJB_7508
print_help_forever 'BURG23'
100@ = 1

:BURGJB_7508
goto @BURGJB_7542

:BURGJB_7515
if 
  100@ == 1
goto_if_false @BURGJB_7542
clear_help 
100@ = 0

:BURGJB_7542
goto @BURGJB_7627

:BURGJB_7549
if 
  does_object_exist 49@
goto_if_false @BURGJB_7627
if 
  not is_char_holding_object $scplayer {handle} 49@
goto_if_false @BURGJB_7627
if 
  94@ == 1
goto_if_false @BURGJB_7620
clear_prints 
print 'BURG30' {time} 5000 {flag} 1

:BURGJB_7620
94@ = 0

:BURGJB_7627
goto @BURGJB_7778

:BURGJB_7634
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_7764
if 
  is_player_control_on $player1
goto_if_false @BURGJB_7686
set_player_control $player1 {state} False

:BURGJB_7686
do_fade 1000 {direction} Fade.Out

:BURGJB_7693
if 
  get_fading_status 
goto_if_false @BURGJB_7717
wait 0
goto @BURGJB_7693

:BURGJB_7717
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:BURGJB_7740
if 
  get_fading_status 
goto_if_false @BURGJB_7764
wait 0
goto @BURGJB_7740

:BURGJB_7764
goto @BURGJB_8285
95@ = 1

:BURGJB_7778
goto @BURGJB_7899

:BURGJB_7785
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "BALACLAVA"
goto_if_false @BURGJB_7892
do_fade 1000 {direction} Fade.Out

:BURGJB_7821
if 
  get_fading_status 
goto_if_false @BURGJB_7845
wait 0
goto @BURGJB_7821

:BURGJB_7845
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1
do_fade 1000 {direction} Fade.In

:BURGJB_7868
if 
  get_fading_status 
goto_if_false @BURGJB_7892
wait 0
goto @BURGJB_7868

:BURGJB_7892
goto @BURGJB_8285

:BURGJB_7899
goto @BURGJB_1015

:BURGJB_7906
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @BURGJB_7995
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BURGJB_7988
if 
  not is_car_dead 50@
goto_if_false @BURGJB_7988
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_7988
96@ = 1

:BURGJB_7988
goto @BURGJB_8054

:BURGJB_7995
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BURGJB_8054
if 
  not is_car_dead 50@
goto_if_false @BURGJB_8054
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_8054
96@ = 1

:BURGJB_8054
if 
  96@ == 1
goto_if_false @BURGJB_8283
if 
  $controlmode <> 3
goto_if_false @BURGJB_8190
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BURGJB_8183
if 
  not is_car_dead 50@
goto_if_false @BURGJB_8183
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_8174
clear_prints 
print_now 'BURG41' {time} 5000 {flag} 1
95@ = 1
goto @BURGJB_8181

:BURGJB_8174
96@ = 0

:BURGJB_8181
return 

:BURGJB_8183
goto @BURGJB_8283

:BURGJB_8190
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BURGJB_8283
if 
  not is_car_dead 50@
goto_if_false @BURGJB_8283
if 
  is_char_in_car $scplayer {vehicle} 50@
goto_if_false @BURGJB_8274
clear_prints 
print_now 'BURG41' {time} 5000 {flag} 1
95@ = 1
goto @BURGJB_8281

:BURGJB_8274
96@ = 0

:BURGJB_8281
return 

:BURGJB_8283
return 

:BURGJB_8285
print_big 'B_FAIL1' {time} 5000 {style} TextStyle.MiddleSmallerHigher
print_with_2_numbers_big 'BURG37' {num1} 47@ {num2} $burglary_session_made {duration} 5000 {style} TextStyle.Middle
return 

:BURGJB_8325
if 
  $done_burglary_progress == 0
goto_if_false @BURGJB_8386
print_with_number_big 'BURG54' {num} 3000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 3000
clear_wanted_level $player1
play_mission_passed_tune 2
$done_burglary_progress = 1

:BURGJB_8386
return 
return 

:BURGJB_8390
$disable_mod_garage = 0
if 
  is_player_playing $player1
goto_if_false @BURGJB_8420
shut_char_up $scplayer {state} False

:BURGJB_8420
draw_oddjob_title_before_fade True
enable_burglary_houses False
change_garage_type s$burglary_garage[0] {type} GarageType.Burglary
change_garage_type s$burglary_garage[1] {type} GarageType.Burglary
change_garage_type s$burglary_garage[2] {type} GarageType.Burglary
mark_car_as_no_longer_needed 50@
remove_blip 52@
remove_blip 51@
clear_onscreen_counter $burglary_player_stealth
clear_onscreen_timer $burglary_time_to_daylight
clear_onscreen_timer $burglary_time_to_lockup
clear_onscreen_counter $burglary_session_made
clear_onscreen_counter $burglary_time_to_get_out
$flag_player_on_burglary_mission = 0
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

//-------------Mission 126---------------
// Originally: Freight Train Sub-Mission

:FREIGHT
script_name 'FREIGHT'
gosub @FREIGHT_80
if 
  has_deatharrest_been_executed 
goto_if_false @FREIGHT_38
gosub @FREIGHT_2803

:FREIGHT_38
gosub @FREIGHT_3162
if 
  $flag_freight_passed_1stime == 1
goto_if_false @FREIGHT_78
start_new_script @FRTEXT 
$flag_freight_passed_1stime = 2

:FREIGHT_78
terminate_this_script 

:FREIGHT_80
clear_wanted_level $player1
set_wanted_multiplier 0.0
135@ = 999999.0
$onmission = 1
$flag_player_on_freight_mission = 1
130@ = 0
126@ = 0
125@ = 0
if 
  $ft_train_level == 0
goto_if_false @FREIGHT_162
$ft_train_level = 1

:FREIGHT_162
45@ = 1698.826
65@ = -1953.75
85@ = 12.5469
34@ = 150000
39@ = 60000
46@ = 789.4952
66@ = -1343.796
86@ = -2.5794
35@ = 60000
40@ = 140000
47@ = -1943.241
67@ = 159.585
87@ = 24.7186
36@ = 140000
41@ = 150000
48@ = 1463.359
68@ = 2632.25
88@ = 9.8203
37@ = 150000
42@ = 105000
49@ = 2864.623
69@ = 1248.266
89@ = 9.8203
38@ = 105000
43@ = 150000
if 
  $ft_train_level == 1
goto_if_false @FREIGHT_438
127@ = 15000

:FREIGHT_438
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_464
127@ = 10000

:FREIGHT_464
if 
  $ft_train_level == 3
goto_if_false @FREIGHT_489
127@ = 0

:FREIGHT_489
129@ = 0

:FREIGHT_496
add_int_lvar_to_int_lvar 34@(129@,5i) += 127@
add_int_lvar_to_int_lvar 39@(129@,5i) += 127@
129@ += 1
  129@ >= 5
goto_if_false @FREIGHT_496
set_fading_colour 0 {g} 0 {b} 0
$onmission = 1
if 
  $flag_freight_passed_1stime == 0
goto_if_false @FREIGHT_576
register_mission_given 

:FREIGHT_576
load_mission_text 'FTRAIN'
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_627
if 
  is_char_in_any_car $scplayer
goto_if_false @FREIGHT_627
$car = store_car_char_is_in $scplayer

:FREIGHT_627
if 
  $flag_freight_passed_1stime == 0
goto_if_false @FREIGHT_671
print_with_number_big 'FREI_04' {num} $ft_train_level {duration} 5000 {style} TextStyle.MiddleSmaller
goto @FREIGHT_687

:FREIGHT_671
print_big 'FREI_X' {time} 5000 {style} TextStyle.MiddleSmaller

:FREIGHT_687
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_721
$x, $y, $z = get_char_coordinates $scplayer

:FREIGHT_721
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 1698.826 {toZ} -1953.75
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_776
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 0

:FREIGHT_776
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 789.4952 {toZ} -1343.796
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_831
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 1

:FREIGHT_831
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} -1943.241 {toZ} 159.585
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_886
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 2

:FREIGHT_886
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 1463.359 {toZ} 2632.25
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_941
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 3

:FREIGHT_941
134@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2864.623 {toZ} 1248.266
if 
  is_float_lvar_greater_than_float_lvar 135@ > 134@
goto_if_false @FREIGHT_996
set_lvar_float_to_lvar_float 135@ = 134@
125@ = 4

:FREIGHT_996
request_model 590
request_model 570
request_model 569
request_model 538
request_model 537

:FREIGHT_1021
if or
  not has_model_loaded 590
  not has_model_loaded 570
  not has_model_loaded 569
  not has_model_loaded 538
  not has_model_loaded 537
goto_if_false @FREIGHT_1068
wait 0
goto @FREIGHT_1021

:FREIGHT_1068
TIMERA = 0
TIMERB = 0
delete_all_trains 
switch_random_trains False
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_1128
if 
  is_char_in_any_car $scplayer
goto_if_false @FREIGHT_1128
$car = store_car_char_is_in_no_save $scplayer

:FREIGHT_1128
if 
  not is_car_dead $car
goto_if_false @FREIGHT_1195
if 
  find_train_direction $car
goto_if_false @FREIGHT_1181
125@ += 1
133@ = 0
goto @FREIGHT_1195

:FREIGHT_1181
125@ -= 1
133@ = 1

:FREIGHT_1195
if 
  125@ == 5
goto_if_false @FREIGHT_1220
125@ = 0

:FREIGHT_1220
if 
  125@ == -1
goto_if_false @FREIGHT_1245
125@ = 4

:FREIGHT_1245
gosub @FREIGHT_3337
add_blip_for_coord 45@(125@,20f) {y} 65@(125@,20f) {z} 85@(125@,20f) {var_handle} 105@(125@,20i)
if 
  133@ == 0
goto_if_false @FREIGHT_1319
set_var_int_to_lvar_int $freight_remaining = 34@(125@,5i)
goto @FREIGHT_1331

:FREIGHT_1319
set_var_int_to_lvar_int $freight_remaining = 39@(125@,5i)

:FREIGHT_1331
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_2750
wait 0
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @FREIGHT_1373
goto @FREIGHT_2242

:FREIGHT_1373
if or
  is_char_in_model $scplayer {modelId} 538
  is_char_in_model $scplayer {modelId} 537
goto_if_false @FREIGHT_1442
$car = store_car_char_is_in_no_save $scplayer
if 
  not is_car_upright $car
goto_if_false @FREIGHT_1435
clear_prints 
clear_help 
goto @FREIGHT_2757

:FREIGHT_1435
goto @FREIGHT_1453

:FREIGHT_1442
clear_prints 
clear_help 
goto @FREIGHT_2757

:FREIGHT_1453
137@ = get_car_speed $car
cset_var_int_to_lvar_float $ft_speed =# 137@
if and
  TIMERB > 3000
  126@ == 0
goto_if_false @FREIGHT_1515
126@ = 1
clear_prints 
print_help 'FREI_03'

:FREIGHT_1515
if and
  TIMERB > 8000
  126@ == 1
goto_if_false @FREIGHT_1603
126@ = 2
clear_prints 
clear_help 
if 
  $ft_help_been_displayed == 0
goto_if_false @FREIGHT_1588
print_help 'FREI_12'
goto @FREIGHT_1603

:FREIGHT_1588
TIMERB = 18000
126@ = 3

:FREIGHT_1603
if and
  TIMERB > 12000
  126@ == 2
goto_if_false @FREIGHT_1691
126@ = 3
clear_prints 
clear_help 
if 
  $ft_help_been_displayed == 0
goto_if_false @FREIGHT_1676
print_help 'FREI_13'
goto @FREIGHT_1691

:FREIGHT_1676
TIMERB = 18000
126@ = 3

:FREIGHT_1691
if and
  TIMERB > 16000
  126@ == 3
goto_if_false @FREIGHT_2022
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_1747
$x, $y, $z = get_char_coordinates $scplayer

:FREIGHT_1747
136@ = 0.0
$freight_remaining = 0
136@ = get_distance_between_coords_2d $x {fromY} $y {toX} 45@(125@,20f) {toZ} 65@(125@,20f)
cset_var_int_to_lvar_float $ft_distance =# 136@
if 
  136@ > 3000.0
goto_if_false @FREIGHT_1835
136@ /= 0.021
goto @FREIGHT_1845

:FREIGHT_1835
136@ /= 0.019

:FREIGHT_1845
if 
  10000.0 > 136@
goto_if_false @FREIGHT_1876
136@ = 10000.0

:FREIGHT_1876
cset_var_int_to_lvar_float $freight_remaining =# 136@
if 
  $ft_train_level == 1
goto_if_false @FREIGHT_1910
127@ = 15000

:FREIGHT_1910
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_1935
127@ = 0

:FREIGHT_1935
if 
  $ft_train_level == 3
goto_if_false @FREIGHT_1960
127@ = 0

:FREIGHT_1960
add_int_lvar_to_int_var $freight_remaining += 127@
126@ = 4
$ft_help_been_displayed = 1
display_nth_onscreen_counter_with_string $ft_distance {display} CounterDisplay.Number {slot} 1 {text} 'FREI_10'
display_nth_onscreen_counter_with_string $ft_speed {display} CounterDisplay.Number {slot} 2 {text} 'FREI_11'
clear_prints 
clear_help 

:FREIGHT_2022
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_2052
$x, $y, $z = get_char_coordinates $scplayer

:FREIGHT_2052
136@ = get_distance_between_coords_2d $x {fromY} $y {toX} 45@(125@,20f) {toZ} 65@(125@,20f)
cset_var_int_to_lvar_float $ft_distance =# 136@
if 
  has_train_derailed $car
goto_if_false @FREIGHT_2108
goto @FREIGHT_2803

:FREIGHT_2108
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @FREIGHT_2136
clear_prints 
clear_help 
goto @FREIGHT_2757

:FREIGHT_2136
if 
  0 >= $freight_remaining
goto_if_false @FREIGHT_2161
goto @FREIGHT_2803

:FREIGHT_2161
if 
  locate_stopped_char_any_means_3d $scplayer {x} 45@(125@,20f) {y} 65@(125@,20f) {z} 85@(125@,20f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} True
goto_if_false @FREIGHT_2506
if or
  is_char_in_model $scplayer {modelId} 538
  is_char_in_model $scplayer {modelId} 537
goto_if_false @FREIGHT_2506

:FREIGHT_2242
if 
  does_blip_exist 105@(125@,20i)
goto_if_false @FREIGHT_2271
remove_blip 105@(125@,20i)

:FREIGHT_2271
130@ += 1
set_lvar_int_to_var_int 127@ = $freight_remaining
clear_onscreen_timer $freight_remaining
clear_onscreen_counter $ft_distance
clear_onscreen_counter $ft_speed
if 
  130@ == 5
goto_if_false @FREIGHT_2326
goto @FREIGHT_2889

:FREIGHT_2326
if 
  133@ == 0
goto_if_false @FREIGHT_2358
125@ += 1
goto @FREIGHT_2365

:FREIGHT_2358
125@ -= 1

:FREIGHT_2365
if 
  125@ == 5
goto_if_false @FREIGHT_2390
125@ = 0

:FREIGHT_2390
if 
  125@ == -1
goto_if_false @FREIGHT_2415
125@ = 4

:FREIGHT_2415
if 
  127@ > 15000
goto_if_false @FREIGHT_2442
127@ = 15000

:FREIGHT_2442
set_lvar_int_to_lvar_int 128@ = 127@
128@ /= 100
mult_int_lvar_by_int_var 128@ *= $ft_train_level
print_with_number_big 'FREI_07' {num} 128@ {duration} 3000 {style} TextStyle.Middle
add_score $player1 {money} 128@
TIMERA = 0
132@ = 1

:FREIGHT_2506
if and
  132@ == 1
  TIMERA > 6000
goto_if_false @FREIGHT_2743
set_lvar_int_to_lvar_int 128@ = 127@
128@ /= 1000
print_with_number_big 'FREI_05' {num} 128@ {duration} 4000 {style} TextStyle.WhiteMiddleSmaller
$freight_remaining = 0
if 
  133@ == 0
goto_if_false @FREIGHT_2619
set_var_int_to_lvar_int $freight_remaining = 34@(125@,5i)
add_int_lvar_to_int_var $freight_remaining += 127@
goto @FREIGHT_2639

:FREIGHT_2619
set_var_int_to_lvar_int $freight_remaining = 39@(125@,5i)
add_int_lvar_to_int_var $freight_remaining += 127@

:FREIGHT_2639
clear_onscreen_timer $freight_remaining
clear_onscreen_counter $ft_distance
clear_onscreen_counter $ft_speed
display_onscreen_timer_with_string $freight_remaining {direction} TimerDirection.Down {text} 'FREI_14'
display_nth_onscreen_counter_with_string $ft_distance {display} CounterDisplay.Number {slot} 1 {text} 'FREI_10'
display_nth_onscreen_counter_with_string $ft_speed {display} CounterDisplay.Number {slot} 2 {text} 'FREI_11'
add_blip_for_coord 45@(125@,20f) {y} 65@(125@,20f) {z} 85@(125@,20f) {var_handle} 105@(125@,20i)
132@ = 0

:FREIGHT_2743
goto @FREIGHT_1331

:FREIGHT_2750
goto @FREIGHT_2803

:FREIGHT_2757
set_camera_behind_player 
restore_camera_jumpcut 
clear_prints 
clear_help 
print_big 'FREI_02' {time} 5000 {style} TextStyle.Middle
clear_onscreen_timer $freight_remaining
clear_onscreen_counter $ft_distance
clear_onscreen_counter $ft_speed
wait 2000
return 

:FREIGHT_2803
if 
  does_blip_exist 105@(125@,20i)
goto_if_false @FREIGHT_2832
remove_blip 105@(125@,20i)

:FREIGHT_2832
clear_onscreen_timer $freight_remaining
clear_onscreen_counter $ft_distance
clear_onscreen_counter $ft_speed
set_camera_behind_player 
restore_camera_jumpcut 
clear_help 
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'FREI_06' {time} 4000 {flag} 1
return 

:FREIGHT_2889
if 
  $ft_train_level == 2
goto_if_false @FREIGHT_3016
if 
  $flag_freight_passed_1stime == 0
goto_if_false @FREIGHT_2960
print_with_number_big 'M_PASS' {num} 50000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 50000
play_mission_passed_tune 2

:FREIGHT_2960
if 
  $flag_freight_passed_1stime == 2
goto_if_false @FREIGHT_3009
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
play_mission_passed_tune 2

:FREIGHT_3009
goto @FREIGHT_3035

:FREIGHT_3016
print_with_number_big 'FREI_15' {num} $ft_train_level {duration} 5000 {style} TextStyle.Middle

:FREIGHT_3035
if and
  $flag_freight_passed_0stime == 0
  $ft_train_level == 1
goto_if_false @FREIGHT_3069
register_oddjob_mission_passed 
$flag_freight_passed_0stime = 1

:FREIGHT_3069
if and
  $flag_freight_passed_1stime == 0
  $ft_train_level == 2
goto_if_false @FREIGHT_3107
register_oddjob_mission_passed 
player_made_progress 1
$flag_freight_passed_1stime = 1

:FREIGHT_3107
clear_onscreen_timer $freight_remaining
clear_onscreen_counter $ft_distance
clear_onscreen_counter $ft_speed
clear_wanted_level $player1
set_camera_behind_player 
restore_camera_jumpcut 
play_mission_passed_tune 1
if 
  $ft_train_level <> 2
goto_if_false @FREIGHT_3160
$ft_train_level += 1

:FREIGHT_3160
return 

:FREIGHT_3162
if 
  does_blip_exist 105@(125@,20i)
goto_if_false @FREIGHT_3191
remove_blip 105@(125@,20i)

:FREIGHT_3191
mark_model_as_no_longer_needed 590
mark_model_as_no_longer_needed 570
mark_model_as_no_longer_needed 569
mark_model_as_no_longer_needed 538
mark_model_as_no_longer_needed 537
$onmission = 0
$flag_player_on_freight_mission = 0
clear_wanted_level $player1
clear_onscreen_counter $ft_distance
clear_onscreen_counter $ft_speed
clear_onscreen_timer $freight_remaining
clear_wanted_level $player1
set_wanted_multiplier 1.0
mission_has_finished 
return 
switch_widescreen True
set_player_control $player1 {state} False
return 
set_camera_behind_player 
switch_widescreen False
set_player_control $player1 {state} True
restore_camera_jumpcut 
return 
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:FREIGHT_3311
if 
  get_fading_status 
goto_if_false @FREIGHT_3335
wait 0
goto @FREIGHT_3311

:FREIGHT_3335
return 

:FREIGHT_3337
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.In

:FREIGHT_3352
if 
  get_fading_status 
goto_if_false @FREIGHT_3376
wait 0
goto @FREIGHT_3352

:FREIGHT_3376
return 
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @FREIGHT_3393

:FREIGHT_3393
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @FREIGHT_3408

:FREIGHT_3408
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @FREIGHT_3423

:FREIGHT_3423
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @FREIGHT_3438

:FREIGHT_3438
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @FREIGHT_3474
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_3474
task_die $scplayer

:FREIGHT_3474
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @FREIGHT_3519
if 
  not is_char_dead $scplayer
goto_if_false @FREIGHT_3519
add_armour_to_char $scplayer {amount} 100
increase_player_max_health $player1 {value} 100

:FREIGHT_3519
return 

//-------------Mission 127---------------
// Originally: Pimping Sub-Mission

:PIMP
script_name 'PIMP'
gosub @PIMP_47
if 
  has_deatharrest_been_executed 
goto_if_false @PIMP_38
gosub @PIMP_37351

:PIMP_38
gosub @PIMP_37762
terminate_this_script 

:PIMP_47
if 
  $pimp_passed_once == 0
goto_if_false @PIMP_67
register_mission_given 

:PIMP_67
$flag_player_on_pimp_mission = 1
$onmission = 1
wait 0
wait 0
load_mission_text 'PIMP'
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In
if 
  not is_char_dead $scplayer
goto_if_false @PIMP_138
set_player_control $player1 {state} True

:PIMP_138
541@ = 0
34@ = 0
537@ = 0
538@ = 0
$pimp_bikeostimer = 0
514@ = 0
516@ = 0
517@ = 0
520@ = 0
531@ = 0
41@ = 0
42@ = 0
47@ = 0
44@ = 0
46@ = 0
45@ = 0
43@ = 0
48@ = 0
49@ = 0
147@ = 0
52@ = 0
56@ = 0
55@ = 0
511@ = 0
512@ = 0
37@ = 0
521@ = 0
525@ = 0
524@ = 0
523@ = 0
57@ = 1
175@ = 2286.79
203@ = -2312.8359
231@ = 12.557
259@ = 301.0
176@ = 1537.2679
204@ = -2314.27
232@ = 12.5469
260@ = 280.2771
177@ = 2307.9031
205@ = -1998.647
233@ = 12.5529
261@ = 321.3693
178@ = 1239.282
206@ = -1918.819
234@ = 30.3478
262@ = 284.1407
179@ = 1685.3199
207@ = -1585.244
235@ = 12.5469
263@ = 233.3592
180@ = 1749.745
208@ = -1455.778
236@ = 12.5547
264@ = 8.5912
181@ = 1959.5389
209@ = -1452.5601
237@ = 12.5495
265@ = 186.4147
182@ = 1793.708
210@ = -1600.12
238@ = 12.5387
266@ = 74.0619
183@ = 2259.7029
211@ = -1339.907
239@ = 22.9832
267@ = 267.1747
184@ = 2350.009
212@ = -1504.599
240@ = 23.0
268@ = 113.9031
185@ = 2745.374
213@ = -1188.6801
241@ = 68.3986
269@ = 109.0182
186@ = 2833.886
214@ = -1585.979
242@ = 10.086
270@ = 223.6582
187@ = 1282.429
215@ = -1666.13
243@ = 12.5547
271@ = 202.373
188@ = 899.8489
216@ = -1823.877
244@ = 11.2302
272@ = 215.4203
189@ = 447.2084
217@ = -1761.314
245@ = 4.7837
273@ = 230.4552
190@ = 765.7432
218@ = -1541.3199
246@ = 12.5536
274@ = 264.2591
191@ = 1269.592
219@ = -1560.462
247@ = 12.5643
275@ = 186.3764
192@ = 557.9569
220@ = -1509.402
248@ = 13.5557
276@ = 94.5521
193@ = 434.0113
221@ = -1555.667
249@ = 26.5851
277@ = 273.0415
194@ = 403.0965
222@ = -1256.665
250@ = 51.2
278@ = 29.0138
195@ = 1147.13
223@ = -898.4011
251@ = 41.7814
279@ = 234.2193
196@ = 1020.802
224@ = -911.898
252@ = 41.2395
280@ = 222.6945
197@ = 828.6284
225@ = -1056.4449
253@ = 24.2484
281@ = 22.838
198@ = 971.1776
226@ = -1107.744
254@ = 22.8672
282@ = 83.3249
199@ = 1893.3621
227@ = -1741.244
255@ = 12.5468
283@ = 177.218
200@ = 2333.625
228@ = -1764.6591
256@ = 12.5534
284@ = 333.4691
201@ = 1775.942
229@ = -1895.623
257@ = 12.3865
285@ = 248.6633
202@ = 1707.121
230@ = -1804.755
258@ = 12.5391
286@ = 172.0678
287@ = -2020.2729
315@ = 932.0927
343@ = 44.5639
371@ = 221.8539
288@ = -2399.2981
316@ = 1071.83
344@ = 54.7266
372@ = 327.6848
289@ = -2400.6521
317@ = 922.1189
345@ = 44.4453
373@ = 283.5361
290@ = -2301.292
318@ = 1373.105
346@ = 6.1961
374@ = 124.8329
293@ = -2576.948
321@ = 1144.234
349@ = 54.7266
377@ = 124.6449
294@ = -2694.1509
322@ = 1204.6281
350@ = 54.1953
378@ = 357.2611
295@ = -2244.2351
323@ = 643.8406
351@ = 48.4375
379@ = 99.8674
296@ = -1923.351
324@ = 563.4099
352@ = 34.1972
380@ = 44.6685
297@ = -1736.431
325@ = 809.515
353@ = 23.8904
381@ = 333.3014
298@ = -1504.571
326@ = 1083.0
354@ = 6.1846
382@ = 156.5032
299@ = -2400.051
327@ = 556.1022
355@ = 23.8906
383@ = 18.535
300@ = -2490.2549
328@ = 6.0292
356@ = 24.6238
384@ = 56.3408
301@ = -2757.469
329@ = 168.1762
357@ = 6.0408
385@ = 196.6891
302@ = -2779.791
330@ = -319.9682
358@ = 6.1875
386@ = 123.0427
303@ = -2192.0229
331@ = 309.7259
359@ = 34.1172
387@ = 7.9069
304@ = -2195.7891
332@ = 197.3115
360@ = 34.3203
388@ = 9.4354
305@ = -2108.647
333@ = 217.1542
361@ = 34.3045
389@ = 133.6119
306@ = -1545.449
334@ = 560.5441
362@ = 6.1797
390@ = 165.7533
307@ = -2779.8
335@ = -500.7523
363@ = 6.2925
391@ = 37.7744
308@ = -1974.475
336@ = -975.055
364@ = 31.2266
392@ = 138.4206
309@ = -1587.119
337@ = -482.9532
365@ = 5.1484
393@ = 117.5313
310@ = -2838.1121
338@ = 846.8309
366@ = 42.5804
394@ = 288.0701
311@ = -2566.241
339@ = 918.7418
367@ = 63.9765
395@ = 178.9968
312@ = -2601.5911
340@ = 688.1887
368@ = 26.8125
396@ = 34.6082
313@ = -2758.551
341@ = 394.18
369@ = 3.3359
397@ = 315.443
399@ = 2009.313
427@ = 1167.793
455@ = 9.813
483@ = 266.731
400@ = 1959.998
428@ = 945.6432
456@ = 9.8203
484@ = 225.7712
401@ = 2202.7371
429@ = 1254.45
457@ = 9.8203
485@ = 110.1904
402@ = 2186.8401
430@ = 998.9764
458@ = 9.8203
486@ = 202.3453
403@ = 2031.976
431@ = 1539.9
459@ = 9.8203
487@ = 224.9353
404@ = 2139.4619
432@ = 1516.045
460@ = 9.8203
488@ = 351.7
405@ = 2150.364
433@ = 1675.969
461@ = 9.8203
489@ = 217.8727
406@ = 1939.55
434@ = 1389.756
462@ = 8.2578
490@ = 271.8136
407@ = 2595.79
435@ = 1793.637
463@ = 9.9692
491@ = 105.7608
408@ = 2185.686
436@ = 1885.912
464@ = 9.8203
492@ = 4.9185
409@ = 2159.8911
437@ = 1931.016
465@ = 9.8203
493@ = 94.0854
410@ = 2057.374
438@ = 1957.522
466@ = 10.7324
494@ = 218.8441
411@ = 2181.532
439@ = 2353.4839
467@ = 9.8203
495@ = 186.4606
412@ = 2437.6069
440@ = 2376.5811
468@ = 9.8203
496@ = 87.5329
413@ = 2335.3911
441@ = 2076.146
469@ = 9.8125
497@ = 261.0065
414@ = 2217.564
442@ = 1787.844
470@ = 9.8203
498@ = 36.1247
415@ = 1540.7321
443@ = 748.3782
471@ = 9.8203
499@ = 259.5982
416@ = 1011.96
444@ = 1104.625
472@ = 9.8203
500@ = 4.436
417@ = 1723.9041
445@ = 1541.124
473@ = 9.8203
501@ = 317.5323
418@ = 1958.822
446@ = 706.9632
474@ = 9.8199
502@ = 216.0597
$pimp_runtimer = 180000
clear_area 1918.988 {y} -1791.854 {z} 12.3828 {radius} 30.0 {clearParticles} False
set_char_cant_be_dragged_out $scplayer {state} True
if 
  not is_player_playing $player1
goto_if_false @PIMP_3339
goto @PIMP_37351

:PIMP_3339
if 
  is_char_in_any_car $scplayer
goto_if_false @PIMP_3370
40@ = store_car_char_is_in $scplayer
goto @PIMP_3377

:PIMP_3370
goto @PIMP_37351

:PIMP_3377
if 
  not is_car_dead 40@
goto_if_false @PIMP_3401
set_car_health 40@ {health} 2000

:PIMP_3401
518@ = load_char_decision_maker DecisionMakerType.Empty
set_relationship RelationshipType.Like {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
get_random_char_in_zone 'BLUFF' {civilian} True {gang} False {criminalOrProstitute} True {var_handle} 35@(37@,2i)
delete_char 35@(37@,2i)
get_random_char_in_zone 'BLUFF' {civilian} True {gang} False {criminalOrProstitute} True {var_handle} 91@(51@,28i)
delete_char 91@(51@,28i)
if 
  47@ == -13
goto_if_false @PIMP_3505
clear_onscreen_timer $pimp_runtimer

:PIMP_3505
if 
  not is_char_dead $scplayer
goto_if_false @PIMP_3529
531@ = get_city_player_is_in $player1

:PIMP_3529
if 
  not is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_3749
if 
  not is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_3749
if 
  not is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_3749
532@, 533@, 534@ = get_char_coordinates $scplayer
536@ = get_distance_between_coords_3d 532@ {fromY} 533@ {fromZ} 534@ {toX} 200@ {toY} 228@ {toZ} 256@
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 1
536@ = get_distance_between_coords_3d 532@ {fromY} 533@ {fromZ} 534@ {toX} 287@ {toY} 315@ {toZ} 343@
if 
  is_float_lvar_greater_than_float_lvar 535@ > 536@
goto_if_false @PIMP_3692
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 2

:PIMP_3692
536@ = get_distance_between_coords_3d 532@ {fromY} 533@ {fromZ} 534@ {toX} 399@ {toY} 427@ {toZ} 455@
if 
  is_float_lvar_greater_than_float_lvar 535@ > 536@
goto_if_false @PIMP_3749
set_lvar_float_to_lvar_float 535@ = 536@
set_lvar_int_to_constant 531@ = 3

:PIMP_3749
wait 0
if 
  541@ == 1
goto_if_false @PIMP_3789
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 31400
541@ = 2

:PIMP_3789
if 
  541@ == 2
goto_if_false @PIMP_3829
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @PIMP_3829
541@ = 3

:PIMP_3829
if 
  537@ == 1
goto_if_false @PIMP_3890
if 
  1 > $pimp_runtimer
goto_if_false @PIMP_3890
clear_prints 
print_now 'PIMP_92' {time} 6000 {flag} 1
goto @PIMP_37351

:PIMP_3890
if 
  537@ == 2
goto_if_false @PIMP_3951
if 
  1 > $pimp_runtimer
goto_if_false @PIMP_3951
clear_prints 
print_now 'PIMP_91' {time} 6000 {flag} 1
goto @PIMP_37351

:PIMP_3951
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @PIMP_3976
$pimp_runtimer += 60000

:PIMP_3976
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @PIMP_3999
$pimp_runtimer -= 30000

:PIMP_3999
if 
  not is_player_playing $player1
goto_if_false @PIMP_4022
goto @PIMP_37351

:PIMP_4022
if 
  is_car_dead 40@
goto_if_false @PIMP_4045
goto @PIMP_37351

:PIMP_4045
if 
is_ps2_keyboard_key_pressed 80
goto_if_false @PIMP_4067
alter_wanted_level $player1 {wantedLevel} 2

:PIMP_4067
if 
is_ps2_keyboard_key_pressed 79
goto_if_false @PIMP_4089
alter_wanted_level $player1 {wantedLevel} 0

:PIMP_4089
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @PIMP_4300
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
  $flag_player_on_pimp_mission == 1
goto_if_false @PIMP_4293
clear_small_prints 
print_now 'PIMP_59' {time} 6000 {flag} 1
if 
  not is_char_dead 35@
goto_if_false @PIMP_4220
if 
  not is_car_dead 40@
goto_if_false @PIMP_4215
if 
  is_char_sitting_in_car 35@ {vehicle} 40@
goto_if_false @PIMP_4215
clear_char_tasks 35@
task_leave_any_car 35@

:PIMP_4215
mark_char_as_no_longer_needed 35@

:PIMP_4220
if 
  not is_char_dead 36@
goto_if_false @PIMP_4286
if 
  not is_car_dead 40@
goto_if_false @PIMP_4281
if 
  is_char_sitting_in_car 36@ {vehicle} 40@
goto_if_false @PIMP_4281
clear_char_tasks 36@
task_leave_any_car 36@

:PIMP_4281
mark_char_as_no_longer_needed 36@

:PIMP_4286
goto @PIMP_37212

:PIMP_4293
goto @PIMP_4481

:PIMP_4300
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
  $flag_player_on_pimp_mission == 1
goto_if_false @PIMP_4481
clear_prints 
print_now 'PIMP_59' {time} 6000 {flag} 1
if 
  not is_char_dead 35@
goto_if_false @PIMP_4408
if 
  not is_car_dead 40@
goto_if_false @PIMP_4403
if 
  is_char_sitting_in_car 35@ {vehicle} 40@
goto_if_false @PIMP_4403
clear_char_tasks 35@
task_leave_any_car 35@

:PIMP_4403
mark_char_as_no_longer_needed 35@

:PIMP_4408
if 
  not is_char_dead 36@
goto_if_false @PIMP_4474
if 
  not is_car_dead 40@
goto_if_false @PIMP_4469
if 
  is_char_sitting_in_car 36@ {vehicle} 40@
goto_if_false @PIMP_4469
clear_char_tasks 36@
task_leave_any_car 36@

:PIMP_4469
mark_char_as_no_longer_needed 36@

:PIMP_4474
goto @PIMP_37212

:PIMP_4481
530@ = 0

:PIMP_4488
if 
  28 > 530@
goto_if_false @PIMP_4651
if 
  119@(530@,28i) == 1
goto_if_false @PIMP_4637
if 
  does_char_exist 91@(530@,28i)
goto_if_false @PIMP_4637
if 
  has_char_been_damaged_by_char 91@(530@,28i) {handle} $scplayer
goto_if_false @PIMP_4594
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_4594
if 
  is_char_dead 91@(530@,28i)
goto_if_false @PIMP_4637
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_4637
530@ += 1
goto @PIMP_4488

:PIMP_4651
if 
  516@ == 0
goto_if_false @PIMP_4737
if 
  not is_car_dead 40@
goto_if_false @PIMP_4737
if 
goto_if_false @PIMP_4737
TIMERB = 0
517@ = 1
set_lvar_int_to_var_int 515@ = $pimp_runtimer
515@ /= 1000
516@ = 1
clear_prints 
clear_help 

:PIMP_4737
if 
  516@ == 1
goto_if_false @PIMP_4820
if 
  not is_car_dead 40@
goto_if_false @PIMP_4820
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_4820
TIMERB = 0
516@ = 0
517@ = 0
538@ = 0
clear_prints 

:PIMP_4820
if 
  517@ == 1
goto_if_false @PIMP_5103
set_lvar_int_to_lvar_int 514@ = TIMERB
514@ /= 1000
if 
  538@ == 0
goto_if_false @PIMP_4905
if and
  21000 > $pimp_runtimer
  $pimp_runtimer > 1
goto_if_false @PIMP_4905
538@ = 1

:PIMP_4905
if 
  538@ == 0
goto_if_false @PIMP_4949
if 
  $pimp_runtimer > 20099
goto_if_false @PIMP_4949
538@ = 2

:PIMP_4949
if 
  538@ == 1
goto_if_false @PIMP_4983
set_var_int_to_var_int $pimp_bikeostimer = $pimp_runtimer
$pimp_bikeostimer /= 1000

:PIMP_4983
if 
  538@ == 2
goto_if_false @PIMP_5016
$pimp_bikeostimer = 20
sub_int_lvar_from_int_var $pimp_bikeostimer -= 514@

:PIMP_5016
clear_prints 
if 
  $pimp_bikeostimer > 0
goto_if_false @PIMP_5059
add_next_message_to_previous_briefs False
print_with_number_now 'PIMP_1' {num} $pimp_bikeostimer {duration} 4000 {flag} 1

:PIMP_5059
if 
  TIMERB > 21000
goto_if_false @PIMP_5103
clear_prints 
print_now 'PIMP_59' {time} 6000 {flag} 1
goto @PIMP_37351

:PIMP_5103
if 
  41@ == -13
goto_if_false @PIMP_5178
create_char PedType.Prostitute {modelId} 152 {x} 1954.348 {y} -1867.1639 {z} 12.5391 {var_handle} 35@(37@,2i)
88@ = add_blip_for_char 35@(37@,2i)
89@ = add_blip_for_char $scplayer
90@ = add_blip_for_char $scplayer

:PIMP_5178
if 
  41@ == 0
goto_if_false @PIMP_5210
gosub @PIMP_35614
41@ = 1

:PIMP_5210
if 
  41@ == 1
goto_if_false @PIMP_11842
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_7619
request_model 63
request_model 64

:PIMP_5254
if or
  not has_model_loaded 63
  not has_model_loaded 64
goto_if_false @PIMP_5284
wait 0
goto @PIMP_5254

:PIMP_5284
if 
  42@ == 0
goto_if_false @PIMP_5368
if 
  is_char_in_zone $scplayer {zone} 'IWD'
goto_if_false @PIMP_5368
create_char PedType.Prostitute {modelId} 64 {x} 202@ {y} 230@ {z} 258@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 286@
gosub @PIMP_35486

:PIMP_5368
if 
  42@ == 0
goto_if_false @PIMP_5452
if 
  is_char_in_zone $scplayer {zone} 'GAN'
goto_if_false @PIMP_5452
create_char PedType.Prostitute {modelId} 64 {x} 201@ {y} 229@ {z} 257@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 285@
gosub @PIMP_35486

:PIMP_5452
if 
  42@ == 0
goto_if_false @PIMP_5536
if 
  is_char_in_zone $scplayer {zone} 'ELCO'
goto_if_false @PIMP_5536
create_char PedType.Prostitute {modelId} 63 {x} 200@ {y} 228@ {z} 256@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 284@
gosub @PIMP_35486

:PIMP_5536
if 
  42@ == 0
goto_if_false @PIMP_5620
if 
  is_char_in_zone $scplayer {zone} 'LMEX'
goto_if_false @PIMP_5620
create_char PedType.Prostitute {modelId} 63 {x} 199@ {y} 227@ {z} 255@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 283@
gosub @PIMP_35486

:PIMP_5620
if 
  42@ == 0
goto_if_false @PIMP_5704
if 
  is_char_in_zone $scplayer {zone} 'LDOC'
goto_if_false @PIMP_5704
create_char PedType.Prostitute {modelId} 63 {x} 176@ {y} 204@ {z} 232@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 260@
gosub @PIMP_35486

:PIMP_5704
if 
  42@ == 0
goto_if_false @PIMP_5788
if 
  is_char_in_zone $scplayer {zone} 'LAIR'
goto_if_false @PIMP_5788
create_char PedType.Prostitute {modelId} 63 {x} 177@ {y} 205@ {z} 233@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 261@
gosub @PIMP_35486

:PIMP_5788
if 
  42@ == 0
goto_if_false @PIMP_5872
if 
  is_char_in_zone $scplayer {zone} 'LIND'
goto_if_false @PIMP_5872
create_char PedType.Prostitute {modelId} 64 {x} 175@ {y} 203@ {z} 231@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 259@
gosub @PIMP_35486

:PIMP_5872
if 
  42@ == 0
goto_if_false @PIMP_5956
if 
  is_char_in_zone $scplayer {zone} 'BLUF'
goto_if_false @PIMP_5956
create_char PedType.Prostitute {modelId} 64 {x} 176@ {y} 204@ {z} 232@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 260@
gosub @PIMP_35486

:PIMP_5956
if 
  42@ == 0
goto_if_false @PIMP_6040
if 
  is_char_in_zone $scplayer {zone} 'COM'
goto_if_false @PIMP_6040
create_char PedType.Prostitute {modelId} 64 {x} 180@ {y} 208@ {z} 236@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 264@
gosub @PIMP_35486

:PIMP_6040
if 
  42@ == 0
goto_if_false @PIMP_6124
if 
  is_char_in_zone $scplayer {zone} 'LDT'
goto_if_false @PIMP_6124
create_char PedType.Prostitute {modelId} 64 {x} 179@ {y} 207@ {z} 235@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 263@
gosub @PIMP_35486

:PIMP_6124
if 
  42@ == 0
goto_if_false @PIMP_6208
if 
  is_char_in_zone $scplayer {zone} 'GLN'
goto_if_false @PIMP_6208
create_char PedType.Prostitute {modelId} 64 {x} 182@ {y} 210@ {z} 238@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 266@
gosub @PIMP_35486

:PIMP_6208
if 
  42@ == 0
goto_if_false @PIMP_6292
if 
  is_char_in_zone $scplayer {zone} 'CHC'
goto_if_false @PIMP_6292
create_char PedType.Prostitute {modelId} 63 {x} 181@ {y} 209@ {z} 237@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 265@
gosub @PIMP_35486

:PIMP_6292
if 
  42@ == 0
goto_if_false @PIMP_6376
if 
  is_char_in_zone $scplayer {zone} 'JEF'
goto_if_false @PIMP_6376
create_char PedType.Prostitute {modelId} 64 {x} 184@ {y} 212@ {z} 240@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 268@
gosub @PIMP_35486

:PIMP_6376
if 
  42@ == 0
goto_if_false @PIMP_6460
if 
  is_char_in_zone $scplayer {zone} 'ELS'
goto_if_false @PIMP_6460
create_char PedType.Prostitute {modelId} 63 {x} 183@ {y} 211@ {z} 239@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 267@
gosub @PIMP_35486

:PIMP_6460
if 
  42@ == 0
goto_if_false @PIMP_6544
if 
  is_char_in_zone $scplayer {zone} 'LFL'
goto_if_false @PIMP_6544
create_char PedType.Prostitute {modelId} 63 {x} 186@ {y} 214@ {z} 242@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 270@
gosub @PIMP_35486

:PIMP_6544
if 
  42@ == 0
goto_if_false @PIMP_6628
if 
  is_char_in_zone $scplayer {zone} 'EBE'
goto_if_false @PIMP_6628
create_char PedType.Prostitute {modelId} 64 {x} 185@ {y} 213@ {z} 241@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 269@
gosub @PIMP_35486

:PIMP_6628
if 
  42@ == 0
goto_if_false @PIMP_6712
if 
  is_char_in_zone $scplayer {zone} 'CONF'
goto_if_false @PIMP_6712
create_char PedType.Prostitute {modelId} 63 {x} 188@ {y} 216@ {z} 244@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 272@
gosub @PIMP_35486

:PIMP_6712
if 
  42@ == 0
goto_if_false @PIMP_6796
if 
  is_char_in_zone $scplayer {zone} 'VERO'
goto_if_false @PIMP_6796
create_char PedType.Prostitute {modelId} 63 {x} 187@ {y} 215@ {z} 243@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 271@
gosub @PIMP_35486

:PIMP_6796
if 
  42@ == 0
goto_if_false @PIMP_6880
if 
  is_char_in_zone $scplayer {zone} 'MKT'
goto_if_false @PIMP_6880
create_char PedType.Prostitute {modelId} 63 {x} 190@ {y} 218@ {z} 246@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 274@
gosub @PIMP_35486

:PIMP_6880
if 
  42@ == 0
goto_if_false @PIMP_6964
if 
  is_char_in_zone $scplayer {zone} 'MAR'
goto_if_false @PIMP_6964
create_char PedType.Prostitute {modelId} 63 {x} 189@ {y} 217@ {z} 245@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 273@
gosub @PIMP_35486

:PIMP_6964
if 
  42@ == 0
goto_if_false @PIMP_7048
if 
  is_char_in_zone $scplayer {zone} 'SMB'
goto_if_false @PIMP_7048
create_char PedType.Prostitute {modelId} 63 {x} 190@ {y} 218@ {z} 246@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 274@
gosub @PIMP_35486

:PIMP_7048
if 
  42@ == 0
goto_if_false @PIMP_7132
if 
  is_char_in_zone $scplayer {zone} 'PLS'
goto_if_false @PIMP_7132
create_char PedType.Prostitute {modelId} 64 {x} 193@ {y} 221@ {z} 249@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 277@
gosub @PIMP_35486

:PIMP_7132
if 
  42@ == 0
goto_if_false @PIMP_7216
if 
  is_char_in_zone $scplayer {zone} 'ROD'
goto_if_false @PIMP_7216
create_char PedType.Prostitute {modelId} 63 {x} 194@ {y} 222@ {z} 250@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 278@
gosub @PIMP_35486

:PIMP_7216
if 
  42@ == 0
goto_if_false @PIMP_7300
if 
  is_char_in_zone $scplayer {zone} 'RIH'
goto_if_false @PIMP_7300
create_char PedType.Prostitute {modelId} 63 {x} 192@ {y} 220@ {z} 248@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 276@
gosub @PIMP_35486

:PIMP_7300
if 
  42@ == 0
goto_if_false @PIMP_7384
if 
  is_char_in_zone $scplayer {zone} 'VIN'
goto_if_false @PIMP_7384
create_char PedType.Prostitute {modelId} 63 {x} 195@ {y} 223@ {z} 251@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 279@
gosub @PIMP_35486

:PIMP_7384
if 
  42@ == 0
goto_if_false @PIMP_7468
if 
  is_char_in_zone $scplayer {zone} 'MUL'
goto_if_false @PIMP_7468
create_char PedType.Prostitute {modelId} 63 {x} 198@ {y} 226@ {z} 254@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 282@
gosub @PIMP_35486

:PIMP_7468
if 
  42@ == 0
goto_if_false @PIMP_7552
if 
  is_char_in_zone $scplayer {zone} 'SUN'
goto_if_false @PIMP_7552
create_char PedType.Prostitute {modelId} 64 {x} 196@ {y} 224@ {z} 252@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 280@
gosub @PIMP_35486

:PIMP_7552
if 
  42@ == 0
goto_if_false @PIMP_7611
create_char PedType.Prostitute {modelId} 64 {x} 180@ {y} 208@ {z} 236@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 264@
gosub @PIMP_35486

:PIMP_7611
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 64

:PIMP_7619
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_10026
request_model 75
request_model 152

:PIMP_7646
if or
  not has_model_loaded 75
  not has_model_loaded 152
goto_if_false @PIMP_7677
wait 0
goto @PIMP_7646

:PIMP_7677
if 
  42@ == 0
goto_if_false @PIMP_7762
if 
  is_char_in_zone $scplayer {zone} 'CALT'
goto_if_false @PIMP_7762
create_char PedType.Prostitute {modelId} 152 {x} 288@ {y} 316@ {z} 344@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 372@
gosub @PIMP_35486

:PIMP_7762
if 
  42@ == 0
goto_if_false @PIMP_7846
if 
  is_char_in_zone $scplayer {zone} 'JUNIHO'
goto_if_false @PIMP_7846
create_char PedType.Prostitute {modelId} 75 {x} 287@ {y} 315@ {z} 343@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 371@
gosub @PIMP_35486

:PIMP_7846
if 
  42@ == 0
goto_if_false @PIMP_7930
if 
  is_char_in_zone $scplayer {zone} 'ESPN'
goto_if_false @PIMP_7930
create_char PedType.Prostitute {modelId} 75 {x} 289@ {y} 317@ {z} 345@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 373@
gosub @PIMP_35486

:PIMP_7930
if 
  42@ == 0
goto_if_false @PIMP_8015
if 
  is_char_in_zone $scplayer {zone} 'JUNIHI'
goto_if_false @PIMP_8015
create_char PedType.Prostitute {modelId} 152 {x} 290@ {y} 318@ {z} 346@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 374@
gosub @PIMP_35486

:PIMP_8015
if 
  42@ == 0
goto_if_false @PIMP_8100
if 
  is_char_in_zone $scplayer {zone} 'SUNMA'
goto_if_false @PIMP_8100
create_char PedType.Prostitute {modelId} 152 {x} 292@ {y} 320@ {z} 348@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 376@
gosub @PIMP_35486

:PIMP_8100
if 
  42@ == 0
goto_if_false @PIMP_8184
if 
  is_char_in_zone $scplayer {zone} 'SUNNN'
goto_if_false @PIMP_8184
create_char PedType.Prostitute {modelId} 75 {x} 291@ {y} 319@ {z} 347@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 375@
gosub @PIMP_35486

:PIMP_8184
if 
  42@ == 0
goto_if_false @PIMP_8268
if 
  is_char_in_zone $scplayer {zone} 'BATTP'
goto_if_false @PIMP_8268
create_char PedType.Prostitute {modelId} 75 {x} 294@ {y} 322@ {z} 350@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 378@
gosub @PIMP_35486

:PIMP_8268
if 
  42@ == 0
goto_if_false @PIMP_8353
if 
  is_char_in_zone $scplayer {zone} 'GANTB'
goto_if_false @PIMP_8353
create_char PedType.Prostitute {modelId} 152 {x} 293@ {y} 321@ {z} 349@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 377@
gosub @PIMP_35486

:PIMP_8353
if 
  42@ == 0
goto_if_false @PIMP_8438
if 
  is_char_in_zone $scplayer {zone} 'CHINA'
goto_if_false @PIMP_8438
create_char PedType.Prostitute {modelId} 152 {x} 296@ {y} 324@ {z} 352@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 380@
gosub @PIMP_35486

:PIMP_8438
if 
  42@ == 0
goto_if_false @PIMP_8522
if 
  is_char_in_zone $scplayer {zone} 'SFDWT'
goto_if_false @PIMP_8522
create_char PedType.Prostitute {modelId} 75 {x} 295@ {y} 323@ {z} 351@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 379@
gosub @PIMP_35486

:PIMP_8522
if 
  42@ == 0
goto_if_false @PIMP_8606
if 
  is_char_in_zone $scplayer {zone} 'FINA'
goto_if_false @PIMP_8606
create_char PedType.Prostitute {modelId} 75 {x} 298@ {y} 326@ {z} 354@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 382@
gosub @PIMP_35486

:PIMP_8606
if 
  42@ == 0
goto_if_false @PIMP_8691
if 
  is_char_in_zone $scplayer {zone} 'ESPE'
goto_if_false @PIMP_8691
create_char PedType.Prostitute {modelId} 152 {x} 297@ {y} 325@ {z} 353@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 381@
gosub @PIMP_35486

:PIMP_8691
if 
  42@ == 0
goto_if_false @PIMP_8776
if 
  is_char_in_zone $scplayer {zone} 'WESTP'
goto_if_false @PIMP_8776
create_char PedType.Prostitute {modelId} 152 {x} 300@ {y} 328@ {z} 356@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 384@
gosub @PIMP_35486

:PIMP_8776
if 
  42@ == 0
goto_if_false @PIMP_8860
if 
  is_char_in_zone $scplayer {zone} 'HASH'
goto_if_false @PIMP_8860
create_char PedType.Prostitute {modelId} 75 {x} 299@ {y} 327@ {z} 355@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 383@
gosub @PIMP_35486

:PIMP_8860
if 
  42@ == 0
goto_if_false @PIMP_8945
if 
  is_char_in_zone $scplayer {zone} 'OCEAF'
goto_if_false @PIMP_8945
create_char PedType.Prostitute {modelId} 152 {x} 302@ {y} 330@ {z} 358@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 386@
gosub @PIMP_35486

:PIMP_8945
if 
  42@ == 0
goto_if_false @PIMP_9029
if 
  is_char_in_zone $scplayer {zone} 'CUNTC'
goto_if_false @PIMP_9029
create_char PedType.Prostitute {modelId} 75 {x} 301@ {y} 329@ {z} 357@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 385@
gosub @PIMP_35486

:PIMP_9029
if 
  42@ == 0
goto_if_false @PIMP_9114
if 
  is_char_in_zone $scplayer {zone} 'THEA'
goto_if_false @PIMP_9114
create_char PedType.Prostitute {modelId} 152 {x} 304@ {y} 332@ {z} 360@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 388@
gosub @PIMP_35486

:PIMP_9114
if 
  42@ == 0
goto_if_false @PIMP_9198
if 
  is_char_in_zone $scplayer {zone} 'GARC'
goto_if_false @PIMP_9198
create_char PedType.Prostitute {modelId} 75 {x} 303@ {y} 331@ {z} 359@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 387@
gosub @PIMP_35486

:PIMP_9198
if 
  42@ == 0
goto_if_false @PIMP_9283
if 
  is_char_in_zone $scplayer {zone} 'DOH'
goto_if_false @PIMP_9283
create_char PedType.Prostitute {modelId} 152 {x} 306@ {y} 334@ {z} 362@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 390@
gosub @PIMP_35486

:PIMP_9283
if 
  42@ == 0
goto_if_false @PIMP_9367
if 
  is_char_in_zone $scplayer {zone} 'EASB'
goto_if_false @PIMP_9367
create_char PedType.Prostitute {modelId} 75 {x} 305@ {y} 333@ {z} 361@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 389@
gosub @PIMP_35486

:PIMP_9367
if 
  42@ == 0
goto_if_false @PIMP_9451
if 
  is_char_in_zone $scplayer {zone} 'HILLP'
goto_if_false @PIMP_9451
create_char PedType.Prostitute {modelId} 75 {x} 308@ {y} 336@ {z} 364@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 392@
gosub @PIMP_35486

:PIMP_9451
if 
  42@ == 0
goto_if_false @PIMP_9536
if 
  is_char_in_zone $scplayer {zone} 'SILLY'
goto_if_false @PIMP_9536
create_char PedType.Prostitute {modelId} 152 {x} 309@ {y} 337@ {z} 365@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 393@
gosub @PIMP_35486

:PIMP_9536
if 
  42@ == 0
goto_if_false @PIMP_9620
if 
  is_char_in_zone $scplayer {zone} 'SFAIR'
goto_if_false @PIMP_9620
create_char PedType.Prostitute {modelId} 75 {x} 307@ {y} 335@ {z} 363@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 391@
gosub @PIMP_35486

:PIMP_9620
if 
  42@ == 0
goto_if_false @PIMP_9704
if 
  is_char_in_zone $scplayer {zone} 'BAYV'
goto_if_false @PIMP_9704
create_char PedType.Prostitute {modelId} 75 {x} 311@ {y} 339@ {z} 367@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 395@
gosub @PIMP_35486

:PIMP_9704
if 
  42@ == 0
goto_if_false @PIMP_9789
if 
  is_char_in_zone $scplayer {zone} 'PARA'
goto_if_false @PIMP_9789
create_char PedType.Prostitute {modelId} 152 {x} 310@ {y} 338@ {z} 366@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 394@
gosub @PIMP_35486

:PIMP_9789
if 
  42@ == 0
goto_if_false @PIMP_9874
if 
  is_char_in_zone $scplayer {zone} 'CIVI'
goto_if_false @PIMP_9874
create_char PedType.Prostitute {modelId} 152 {x} 313@ {y} 341@ {z} 369@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 397@
gosub @PIMP_35486

:PIMP_9874
if 
  42@ == 0
goto_if_false @PIMP_9958
if 
  is_char_in_zone $scplayer {zone} 'CITYS'
goto_if_false @PIMP_9958
create_char PedType.Prostitute {modelId} 75 {x} 312@ {y} 340@ {z} 368@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 396@
gosub @PIMP_35486

:PIMP_9958
if 
  42@ == 0
goto_if_false @PIMP_10017
create_char PedType.Prostitute {modelId} 75 {x} 287@ {y} 315@ {z} 343@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 371@
gosub @PIMP_35486

:PIMP_10017
mark_model_as_no_longer_needed 75
mark_model_as_no_longer_needed 152

:PIMP_10026
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_11842
request_model 85
request_model 245

:PIMP_10053
if or
  not has_model_loaded 85
  not has_model_loaded 245
goto_if_false @PIMP_10084
wait 0
goto @PIMP_10053

:PIMP_10084
if 
  42@ == 0
goto_if_false @PIMP_10168
if 
  is_char_in_zone $scplayer {zone} 'PINK'
goto_if_false @PIMP_10168
create_char PedType.Prostitute {modelId} 85 {x} 400@ {y} 428@ {z} 456@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 484@
gosub @PIMP_35486

:PIMP_10168
if 
  42@ == 0
goto_if_false @PIMP_10252
if 
  is_char_in_zone $scplayer {zone} 'DRAG'
goto_if_false @PIMP_10252
create_char PedType.Prostitute {modelId} 85 {x} 399@ {y} 427@ {z} 455@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 483@
gosub @PIMP_35486

:PIMP_10252
if 
  42@ == 0
goto_if_false @PIMP_10337
if 
  is_char_in_zone $scplayer {zone} 'CAM'
goto_if_false @PIMP_10337
create_char PedType.Prostitute {modelId} 245 {x} 402@ {y} 430@ {z} 458@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 486@
gosub @PIMP_35486

:PIMP_10337
if 
  42@ == 0
goto_if_false @PIMP_10422
if 
  is_char_in_zone $scplayer {zone} 'LOT'
goto_if_false @PIMP_10422
create_char PedType.Prostitute {modelId} 245 {x} 401@ {y} 429@ {z} 457@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 485@
gosub @PIMP_35486

:PIMP_10422
if 
  42@ == 0
goto_if_false @PIMP_10506
if 
  is_char_in_zone $scplayer {zone} 'PIRA'
goto_if_false @PIMP_10506
create_char PedType.Prostitute {modelId} 85 {x} 404@ {y} 432@ {z} 460@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 488@
gosub @PIMP_35486

:PIMP_10506
if 
  42@ == 0
goto_if_false @PIMP_10590
if 
  is_char_in_zone $scplayer {zone} 'ROY'
goto_if_false @PIMP_10590
create_char PedType.Prostitute {modelId} 85 {x} 403@ {y} 431@ {z} 459@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 487@
gosub @PIMP_35486

:PIMP_10590
if 
  42@ == 0
goto_if_false @PIMP_10675
if 
  is_char_in_zone $scplayer {zone} 'CALI'
goto_if_false @PIMP_10675
create_char PedType.Prostitute {modelId} 245 {x} 406@ {y} 434@ {z} 462@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 490@
gosub @PIMP_35486

:PIMP_10675
if 
  42@ == 0
goto_if_false @PIMP_10760
if 
  is_char_in_zone $scplayer {zone} 'HIGH'
goto_if_false @PIMP_10760
create_char PedType.Prostitute {modelId} 245 {x} 405@ {y} 433@ {z} 461@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 489@
gosub @PIMP_35486

:PIMP_10760
if 
  42@ == 0
goto_if_false @PIMP_10844
if 
  is_char_in_zone $scplayer {zone} 'PILG'
goto_if_false @PIMP_10844
create_char PedType.Prostitute {modelId} 85 {x} 408@ {y} 436@ {z} 464@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 492@
gosub @PIMP_35486

:PIMP_10844
if 
  42@ == 0
goto_if_false @PIMP_10928
if 
  is_char_in_zone $scplayer {zone} 'STAR'
goto_if_false @PIMP_10928
create_char PedType.Prostitute {modelId} 85 {x} 407@ {y} 435@ {z} 463@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 491@
gosub @PIMP_35486

:PIMP_10928
if 
  42@ == 0
goto_if_false @PIMP_11013
if 
  is_char_in_zone $scplayer {zone} 'STRIP'
goto_if_false @PIMP_11013
create_char PedType.Prostitute {modelId} 245 {x} 410@ {y} 438@ {z} 466@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 494@
gosub @PIMP_35486

:PIMP_11013
if 
  42@ == 0
goto_if_false @PIMP_11098
if 
  is_char_in_zone $scplayer {zone} 'VISA'
goto_if_false @PIMP_11098
create_char PedType.Prostitute {modelId} 245 {x} 409@ {y} 437@ {z} 465@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 493@
gosub @PIMP_35486

:PIMP_11098
if 
  42@ == 0
goto_if_false @PIMP_11182
if 
  is_char_in_zone $scplayer {zone} 'ISLE'
goto_if_false @PIMP_11182
create_char PedType.Prostitute {modelId} 85 {x} 412@ {y} 440@ {z} 468@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 496@
gosub @PIMP_35486

:PIMP_11182
if 
  42@ == 0
goto_if_false @PIMP_11266
if 
  is_char_in_zone $scplayer {zone} 'ROCE'
goto_if_false @PIMP_11266
create_char PedType.Prostitute {modelId} 85 {x} 411@ {y} 439@ {z} 467@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 495@
gosub @PIMP_35486

:PIMP_11266
if 
  42@ == 0
goto_if_false @PIMP_11351
if 
  is_char_in_zone $scplayer {zone} 'OVS'
goto_if_false @PIMP_11351
create_char PedType.Prostitute {modelId} 245 {x} 414@ {y} 442@ {z} 470@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 498@
gosub @PIMP_35486

:PIMP_11351
if 
  42@ == 0
goto_if_false @PIMP_11436
if 
  is_char_in_zone $scplayer {zone} 'RING'
goto_if_false @PIMP_11436
create_char PedType.Prostitute {modelId} 245 {x} 413@ {y} 441@ {z} 469@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 497@
gosub @PIMP_35486

:PIMP_11436
if 
  42@ == 0
goto_if_false @PIMP_11520
if 
  is_char_in_zone $scplayer {zone} 'BFC'
goto_if_false @PIMP_11520
create_char PedType.Prostitute {modelId} 85 {x} 416@ {y} 444@ {z} 472@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 500@
gosub @PIMP_35486

:PIMP_11520
if 
  42@ == 0
goto_if_false @PIMP_11604
if 
  is_char_in_zone $scplayer {zone} 'GGC'
goto_if_false @PIMP_11604
create_char PedType.Prostitute {modelId} 85 {x} 415@ {y} 443@ {z} 471@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 499@
gosub @PIMP_35486

:PIMP_11604
if 
  42@ == 0
goto_if_false @PIMP_11689
if 
  is_char_in_zone $scplayer {zone} 'VAIR'
goto_if_false @PIMP_11689
create_char PedType.Prostitute {modelId} 245 {x} 418@ {y} 446@ {z} 474@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 502@
gosub @PIMP_35486

:PIMP_11689
if 
  42@ == 0
goto_if_false @PIMP_11774
if 
  is_char_in_zone $scplayer {zone} 'LDM'
goto_if_false @PIMP_11774
create_char PedType.Prostitute {modelId} 245 {x} 417@ {y} 445@ {z} 473@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 501@
gosub @PIMP_35486

:PIMP_11774
if 
  42@ == 0
goto_if_false @PIMP_11833
create_char PedType.Prostitute {modelId} 85 {x} 399@ {y} 427@ {z} 455@ {var_handle} 35@(37@,2i)
set_char_heading 35@(37@,2i) {heading} 483@
gosub @PIMP_35486

:PIMP_11833
mark_model_as_no_longer_needed 85
mark_model_as_no_longer_needed 245

:PIMP_11842
if 
  42@ == 1
goto_if_false @PIMP_12057
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12057
task_stand_still 35@(37@,2i) {time} -1
remove_blip 88@
88@ = add_blip_for_char 35@(37@,2i)
set_char_decision_maker 35@(37@,2i) {handleOrTemplate} 518@
set_char_only_damaged_by_player 35@(37@,2i) {state} True
set_char_cant_be_dragged_out 35@(37@,2i) {state} True
set_blip_as_friendly 88@ {state} True
if 
  37@ == 0
goto_if_false @PIMP_11996
clear_prints 
print_now 'PIMP_2' {time} 6000 {flag} 1
set_char_cant_be_dragged_out 35@(37@,2i) {state} True

:PIMP_11996
if 
  37@ == 1
goto_if_false @PIMP_12043
clear_prints 
print_now 'PIMP_30' {time} 6000 {flag} 1
set_char_cant_be_dragged_out 35@(37@,2i) {state} True

:PIMP_12043
42@ = 2
43@ = 1

:PIMP_12057
if 
  43@ == 1
goto_if_false @PIMP_12203
if 
  does_char_exist 35@
goto_if_false @PIMP_12130
if 
  is_char_dead 35@
goto_if_false @PIMP_12130
print_now 'PIMP_51' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_12130
if 
  52@ == 1
goto_if_false @PIMP_12203
if 
  does_char_exist 36@
goto_if_false @PIMP_12203
if 
  is_char_dead 36@
goto_if_false @PIMP_12203
print_now 'PIMP_51' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_12203
if 
  42@ == 2
goto_if_false @PIMP_12845
if 
  523@ == 1
goto_if_false @PIMP_12281
if 
  TIMERA > 4000
goto_if_false @PIMP_12281
print_now 'PIMP_57' {time} 6000 {flag} 1
523@ = 99

:PIMP_12281
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12845
if 
  not is_car_dead 40@
goto_if_false @PIMP_12845
if 
  521@ == 0
goto_if_false @PIMP_12381
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_12381
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 88@
521@ = 1

:PIMP_12381
if 
  521@ == 1
goto_if_false @PIMP_12477
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_12477
remove_blip 522@
521@ = 0
remove_blip 88@
88@ = add_blip_for_char 35@(37@,2i)
set_blip_as_friendly 88@ {state} True
print_now 'PIMP_54' {time} 6000 {flag} 1
521@ = 0

:PIMP_12477
if 
  44@ == 0
goto_if_false @PIMP_12664
if 
  521@ == 0
goto_if_false @PIMP_12664
if 
  locate_char_in_car_char_2d $scplayer {otherChar} 35@(37@,2i) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @PIMP_12664
if 
  45@ == 0
goto_if_false @PIMP_12613
38@ = open_sequence_task 
task_turn_char_to_face_char -1 {target} $scplayer
task_stand_still -1 {time} -1
close_sequence_task 38@
perform_sequence_task 35@(37@,2i) {sequence} 38@
clear_sequence_task 38@
45@ = 1

:PIMP_12613
if 
  is_car_stopped 40@
goto_if_false @PIMP_12664
clear_char_tasks 35@(37@,2i)
task_enter_car_as_passenger 35@(37@,2i) {vehicle} 40@ {time} 60000 {seat} -1
44@ = 1

:PIMP_12664
if 
  not is_car_dead 40@
goto_if_false @PIMP_12845
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12845
if 
  is_char_sitting_in_car 35@(37@,2i) {vehicle} 40@
goto_if_false @PIMP_12845
if 
  2 > 56@
goto_if_false @PIMP_12755
56@ += 1
increment_int_stat StatId.NumGirlsPimped {value} 1

:PIMP_12755
44@ = 2
remove_blip 88@
42@ = 99
47@ = 1
gosub @PIMP_35614
520@ = 1
TIMERA = 0
if 
  49@ == 10
goto_if_false @PIMP_12845
clear_prints 
print_now 'SEXGOD' {time} 6000 {flag} 1
goto @PIMP_37693

:PIMP_12845
if 
  44@ == 1
goto_if_false @PIMP_12983
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_12983
if 
  not is_car_dead 40@
goto_if_false @PIMP_12983
539@ = get_script_task_status 35@(37@,2i) {taskId} 1482
if 
  is_int_lvar_equal_to_constant 539@ == 7
goto_if_false @PIMP_12983
if 
  not is_char_in_car 35@(37@,2i) {vehicle} 40@
goto_if_false @PIMP_12983
clear_char_tasks 35@(37@,2i)
task_enter_car_as_passenger 35@(37@,2i) {vehicle} 40@ {time} 60000 {seat} -1

:PIMP_12983
if 
  47@ == 1
goto_if_false @PIMP_29154
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_19017
if 
  58@ == 1
goto_if_false @PIMP_13873
if 
  60@ == 1
goto_if_false @PIMP_13116
if 
  61@ == 1
goto_if_false @PIMP_13116
if 
  62@ == 1
goto_if_false @PIMP_13116
if 
  63@ == 1
goto_if_false @PIMP_13116
58@ = 2

:PIMP_13116
50@ = generate_random_int_in_range 0 {max} 4
if 
  50@ == 0
goto_if_false @PIMP_13312
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13312
request_model 72

:PIMP_13169
if 
  not has_model_loaded 72
goto_if_false @PIMP_13195
wait 0
goto @PIMP_13169

:PIMP_13195
create_char PedType.CivMale {modelId} 72 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_10' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13312
if 
  50@ == 1
goto_if_false @PIMP_13499
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13499
request_model 72

:PIMP_13356
if 
  not has_model_loaded 72
goto_if_false @PIMP_13382
wait 0
goto @PIMP_13356

:PIMP_13382
create_char PedType.CivMale {modelId} 72 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_11' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13499
if 
  50@ == 2
goto_if_false @PIMP_13686
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13686
request_model 72

:PIMP_13543
if 
  not has_model_loaded 72
goto_if_false @PIMP_13569
wait 0
goto @PIMP_13543

:PIMP_13569
create_char PedType.CivMale {modelId} 72 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_12' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13686
if 
  50@ == 3
goto_if_false @PIMP_13873
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_13873
request_model 22

:PIMP_13730
if 
  not has_model_loaded 22
goto_if_false @PIMP_13756
wait 0
goto @PIMP_13730

:PIMP_13756
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_13' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_13873
if 
  58@ == 2
goto_if_false @PIMP_14731
if 
  64@ == 1
goto_if_false @PIMP_13970
if 
  65@ == 1
goto_if_false @PIMP_13970
if 
  66@ == 1
goto_if_false @PIMP_13970
if 
  67@ == 1
goto_if_false @PIMP_13970
58@ = 3

:PIMP_13970
50@ = generate_random_int_in_range 4 {max} 8
if 
  50@ == 4
goto_if_false @PIMP_14166
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14166
request_model 22

:PIMP_14023
if 
  not has_model_loaded 22
goto_if_false @PIMP_14049
wait 0
goto @PIMP_14023

:PIMP_14049
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_14' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14166
if 
  50@ == 5
goto_if_false @PIMP_14357
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14357
request_model 147

:PIMP_14211
if 
  not has_model_loaded 147
goto_if_false @PIMP_14238
wait 0
goto @PIMP_14211

:PIMP_14238
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_15' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14357
if 
  50@ == 6
goto_if_false @PIMP_14544
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14544
request_model 22

:PIMP_14401
if 
  not has_model_loaded 22
goto_if_false @PIMP_14427
wait 0
goto @PIMP_14401

:PIMP_14427
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_16' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14544
if 
  50@ == 7
goto_if_false @PIMP_14731
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_14731
request_model 22

:PIMP_14588
if 
  not has_model_loaded 22
goto_if_false @PIMP_14614
wait 0
goto @PIMP_14588

:PIMP_14614
create_char PedType.CivMale {modelId} 22 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_17' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_14731
if 
  58@ == 3
goto_if_false @PIMP_15589
if 
  68@ == 1
goto_if_false @PIMP_14828
if 
  69@ == 1
goto_if_false @PIMP_14828
if 
  70@ == 1
goto_if_false @PIMP_14828
if 
  71@ == 1
goto_if_false @PIMP_14828
58@ = 4

:PIMP_14828
50@ = generate_random_int_in_range 8 {max} 12
if 
  50@ == 8
goto_if_false @PIMP_15024
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15024
request_model 68

:PIMP_14881
if 
  not has_model_loaded 68
goto_if_false @PIMP_14907
wait 0
goto @PIMP_14881

:PIMP_14907
create_char PedType.CivMale {modelId} 68 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 68
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_18' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15024
if 
  50@ == 9
goto_if_false @PIMP_15211
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15211
request_model 48

:PIMP_15068
if 
  not has_model_loaded 48
goto_if_false @PIMP_15094
wait 0
goto @PIMP_15068

:PIMP_15094
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_19' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15211
if 
  50@ == 10
goto_if_false @PIMP_15398
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15398
request_model 48

:PIMP_15255
if 
  not has_model_loaded 48
goto_if_false @PIMP_15281
wait 0
goto @PIMP_15255

:PIMP_15281
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_20' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15398
if 
  50@ == 11
goto_if_false @PIMP_15589
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15589
request_model 147

:PIMP_15443
if 
  not has_model_loaded 147
goto_if_false @PIMP_15470
wait 0
goto @PIMP_15443

:PIMP_15470
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_21' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15589
if 
  58@ == 4
goto_if_false @PIMP_16447
if 
  72@ == 1
goto_if_false @PIMP_15686
if 
  73@ == 1
goto_if_false @PIMP_15686
if 
  74@ == 1
goto_if_false @PIMP_15686
if 
  75@ == 1
goto_if_false @PIMP_15686
58@ = 5

:PIMP_15686
50@ = generate_random_int_in_range 12 {max} 16
if 
  50@ == 12
goto_if_false @PIMP_15886
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_15886
request_model 147

:PIMP_15740
if 
  not has_model_loaded 147
goto_if_false @PIMP_15767
wait 0
goto @PIMP_15740

:PIMP_15767
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_22' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_15886
if 
  50@ == 13
goto_if_false @PIMP_16073
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16073
request_model 23

:PIMP_15930
if 
  not has_model_loaded 23
goto_if_false @PIMP_15956
wait 0
goto @PIMP_15930

:PIMP_15956
create_char PedType.CivMale {modelId} 23 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 23
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_23' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16073
if 
  50@ == 14
goto_if_false @PIMP_16260
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16260
request_model 17

:PIMP_16117
if 
  not has_model_loaded 17
goto_if_false @PIMP_16143
wait 0
goto @PIMP_16117

:PIMP_16143
create_char PedType.CivMale {modelId} 17 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_24' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16260
if 
  50@ == 15
goto_if_false @PIMP_16447
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16447
request_model 50

:PIMP_16304
if 
  not has_model_loaded 50
goto_if_false @PIMP_16330
wait 0
goto @PIMP_16304

:PIMP_16330
create_char PedType.CivMale {modelId} 50 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_25' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16447
if 
  58@ == 5
goto_if_false @PIMP_17305
if 
  76@ == 1
goto_if_false @PIMP_16544
if 
  77@ == 1
goto_if_false @PIMP_16544
if 
  78@ == 1
goto_if_false @PIMP_16544
if 
  79@ == 1
goto_if_false @PIMP_16544
58@ = 6

:PIMP_16544
50@ = generate_random_int_in_range 16 {max} 20
if 
  50@ == 16
goto_if_false @PIMP_16744
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16744
request_model 147

:PIMP_16598
if 
  not has_model_loaded 147
goto_if_false @PIMP_16625
wait 0
goto @PIMP_16598

:PIMP_16625
create_char PedType.CivMale {modelId} 147 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_26' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16744
if 
  50@ == 17
goto_if_false @PIMP_16931
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_16931
request_model 48

:PIMP_16788
if 
  not has_model_loaded 48
goto_if_false @PIMP_16814
wait 0
goto @PIMP_16788

:PIMP_16814
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_27' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_16931
if 
  50@ == 18
goto_if_false @PIMP_17118
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17118
request_model 23

:PIMP_16975
if 
  not has_model_loaded 23
goto_if_false @PIMP_17001
wait 0
goto @PIMP_16975

:PIMP_17001
create_char PedType.CivMale {modelId} 23 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 23
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_28' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17118
if 
  50@ == 19
goto_if_false @PIMP_17305
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17305
request_model 17

:PIMP_17162
if 
  not has_model_loaded 17
goto_if_false @PIMP_17188
wait 0
goto @PIMP_17162

:PIMP_17188
create_char PedType.CivMale {modelId} 17 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_29' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17305
if 
  58@ == 6
goto_if_false @PIMP_18159
if 
  80@ == 1
goto_if_false @PIMP_17402
if 
  81@ == 1
goto_if_false @PIMP_17402
if 
  82@ == 1
goto_if_false @PIMP_17402
if 
  83@ == 1
goto_if_false @PIMP_17402
58@ = 7

:PIMP_17402
50@ = generate_random_int_in_range 20 {max} 24
if 
  50@ == 20
goto_if_false @PIMP_17598
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17598
request_model 36

:PIMP_17455
if 
  not has_model_loaded 36
goto_if_false @PIMP_17481
wait 0
goto @PIMP_17455

:PIMP_17481
create_char PedType.CivMale {modelId} 36 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 36
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_80' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17598
if 
  50@ == 21
goto_if_false @PIMP_17785
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17785
request_model 50

:PIMP_17642
if 
  not has_model_loaded 50
goto_if_false @PIMP_17668
wait 0
goto @PIMP_17642

:PIMP_17668
create_char PedType.CivMale {modelId} 50 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_81' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17785
if 
  50@ == 22
goto_if_false @PIMP_17972
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_17972
request_model 48

:PIMP_17829
if 
  not has_model_loaded 48
goto_if_false @PIMP_17855
wait 0
goto @PIMP_17829

:PIMP_17855
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_82' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_17972
if 
  50@ == 23
goto_if_false @PIMP_18159
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18159
request_model 68

:PIMP_18016
if 
  not has_model_loaded 68
goto_if_false @PIMP_18042
wait 0
goto @PIMP_18016

:PIMP_18042
create_char PedType.CivMale {modelId} 68 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 68
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_83' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18159
if 
  58@ == 7
goto_if_false @PIMP_19017
if 
  84@ == 1
goto_if_false @PIMP_18256
if 
  85@ == 1
goto_if_false @PIMP_18256
if 
  86@ == 1
goto_if_false @PIMP_18256
if 
  87@ == 1
goto_if_false @PIMP_18256
58@ = 1

:PIMP_18256
50@ = generate_random_int_in_range 24 {max} 28
if 
  50@ == 24
goto_if_false @PIMP_18456
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18456
request_model 163

:PIMP_18310
if 
  not has_model_loaded 163
goto_if_false @PIMP_18337
wait 0
goto @PIMP_18310

:PIMP_18337
create_char PedType.CivMale {modelId} 163 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 163
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_84' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18456
if 
  50@ == 25
goto_if_false @PIMP_18643
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18643
request_model 19

:PIMP_18500
if 
  not has_model_loaded 19
goto_if_false @PIMP_18526
wait 0
goto @PIMP_18500

:PIMP_18526
create_char PedType.CivMale {modelId} 19 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 19
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_85' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18643
if 
  50@ == 26
goto_if_false @PIMP_18830
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_18830
request_model 29

:PIMP_18687
if 
  not has_model_loaded 29
goto_if_false @PIMP_18713
wait 0
goto @PIMP_18687

:PIMP_18713
create_char PedType.CivMale {modelId} 29 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_86' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_18830
if 
  50@ == 27
goto_if_false @PIMP_19017
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19017
request_model 48

:PIMP_18874
if 
  not has_model_loaded 48
goto_if_false @PIMP_18900
wait 0
goto @PIMP_18874

:PIMP_18900
create_char PedType.CivMale {modelId} 48 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 259@(50@,28f)
mark_model_as_no_longer_needed 48
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP_87' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19017
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_24854
if 
  58@ == 1
goto_if_false @PIMP_19889
if 
  60@ == 1
goto_if_false @PIMP_19132
if 
  61@ == 1
goto_if_false @PIMP_19132
if 
  62@ == 1
goto_if_false @PIMP_19132
if 
  63@ == 1
goto_if_false @PIMP_19132
58@ = 2

:PIMP_19132
50@ = generate_random_int_in_range 0 {max} 4
if 
  50@ == 0
goto_if_false @PIMP_19328
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19328
request_model 72

:PIMP_19185
if 
  not has_model_loaded 72
goto_if_false @PIMP_19211
wait 0
goto @PIMP_19185

:PIMP_19211
create_char PedType.CivMale {modelId} 72 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP200' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19328
if 
  50@ == 1
goto_if_false @PIMP_19515
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19515
request_model 72

:PIMP_19372
if 
  not has_model_loaded 72
goto_if_false @PIMP_19398
wait 0
goto @PIMP_19372

:PIMP_19398
create_char PedType.CivMale {modelId} 72 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP201' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19515
if 
  50@ == 2
goto_if_false @PIMP_19702
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19702
request_model 50

:PIMP_19559
if 
  not has_model_loaded 50
goto_if_false @PIMP_19585
wait 0
goto @PIMP_19559

:PIMP_19585
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP202' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19702
if 
  50@ == 3
goto_if_false @PIMP_19889
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_19889
request_model 50

:PIMP_19746
if 
  not has_model_loaded 50
goto_if_false @PIMP_19772
wait 0
goto @PIMP_19746

:PIMP_19772
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP203' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_19889
if 
  58@ == 2
goto_if_false @PIMP_20769
if 
  64@ == 1
goto_if_false @PIMP_19986
if 
  65@ == 1
goto_if_false @PIMP_19986
if 
  66@ == 1
goto_if_false @PIMP_19986
if 
  67@ == 1
goto_if_false @PIMP_19986
58@ = 3

:PIMP_19986
50@ = generate_random_int_in_range 4 {max} 8
if 
  50@ == 4
goto_if_false @PIMP_20193
60@(50@,28i) = 1
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20193
request_model 17

:PIMP_20050
if 
  not has_model_loaded 17
goto_if_false @PIMP_20076
wait 0
goto @PIMP_20050

:PIMP_20076
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP204' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20193
if 
  50@ == 5
goto_if_false @PIMP_20395
60@(50@,28i) = 1
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20395
request_model 147

:PIMP_20249
if 
  not has_model_loaded 147
goto_if_false @PIMP_20276
wait 0
goto @PIMP_20249

:PIMP_20276
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP205' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20395
if 
  50@ == 6
goto_if_false @PIMP_20582
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20582
request_model 50

:PIMP_20439
if 
  not has_model_loaded 50
goto_if_false @PIMP_20465
wait 0
goto @PIMP_20439

:PIMP_20465
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP206' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20582
if 
  50@ == 7
goto_if_false @PIMP_20769
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_20769
request_model 22

:PIMP_20626
if 
  not has_model_loaded 22
goto_if_false @PIMP_20652
wait 0
goto @PIMP_20626

:PIMP_20652
create_char PedType.CivMale {modelId} 22 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP207' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_20769
if 
  58@ == 3
goto_if_false @PIMP_21627
if 
  68@ == 1
goto_if_false @PIMP_20866
if 
  69@ == 1
goto_if_false @PIMP_20866
if 
  70@ == 1
goto_if_false @PIMP_20866
if 
  71@ == 1
goto_if_false @PIMP_20866
58@ = 4

:PIMP_20866
50@ = generate_random_int_in_range 8 {max} 12
if 
  50@ == 8
goto_if_false @PIMP_21062
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21062
request_model 58

:PIMP_20919
if 
  not has_model_loaded 58
goto_if_false @PIMP_20945
wait 0
goto @PIMP_20919

:PIMP_20945
create_char PedType.CivMale {modelId} 58 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 58
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP208' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21062
if 
  50@ == 9
goto_if_false @PIMP_21253
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21253
request_model 147

:PIMP_21107
if 
  not has_model_loaded 147
goto_if_false @PIMP_21134
wait 0
goto @PIMP_21107

:PIMP_21134
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP209' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21253
if 
  50@ == 10
goto_if_false @PIMP_21440
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21440
request_model 17

:PIMP_21297
if 
  not has_model_loaded 17
goto_if_false @PIMP_21323
wait 0
goto @PIMP_21297

:PIMP_21323
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP210' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21440
if 
  50@ == 11
goto_if_false @PIMP_21627
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21627
request_model 22

:PIMP_21484
if 
  not has_model_loaded 22
goto_if_false @PIMP_21510
wait 0
goto @PIMP_21484

:PIMP_21510
create_char PedType.CivMale {modelId} 22 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 22
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP211' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21627
if 
  58@ == 4
goto_if_false @PIMP_22485
if 
  72@ == 1
goto_if_false @PIMP_21724
if 
  73@ == 1
goto_if_false @PIMP_21724
if 
  74@ == 1
goto_if_false @PIMP_21724
if 
  75@ == 1
goto_if_false @PIMP_21724
58@ = 5

:PIMP_21724
50@ = generate_random_int_in_range 12 {max} 16
if 
  50@ == 12
goto_if_false @PIMP_21924
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_21924
request_model 147

:PIMP_21778
if 
  not has_model_loaded 147
goto_if_false @PIMP_21805
wait 0
goto @PIMP_21778

:PIMP_21805
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP212' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_21924
if 
  50@ == 13
goto_if_false @PIMP_22111
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22111
request_model 29

:PIMP_21968
if 
  not has_model_loaded 29
goto_if_false @PIMP_21994
wait 0
goto @PIMP_21968

:PIMP_21994
create_char PedType.CivMale {modelId} 29 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP213' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22111
if 
  50@ == 14
goto_if_false @PIMP_22298
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22298
request_model 17

:PIMP_22155
if 
  not has_model_loaded 17
goto_if_false @PIMP_22181
wait 0
goto @PIMP_22155

:PIMP_22181
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP214' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22298
if 
  50@ == 15
goto_if_false @PIMP_22485
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22485
request_model 36

:PIMP_22342
if 
  not has_model_loaded 36
goto_if_false @PIMP_22368
wait 0
goto @PIMP_22342

:PIMP_22368
create_char PedType.CivMale {modelId} 36 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 36
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP215' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22485
if 
  58@ == 5
goto_if_false @PIMP_23343
if 
  76@ == 1
goto_if_false @PIMP_22582
if 
  77@ == 1
goto_if_false @PIMP_22582
if 
  78@ == 1
goto_if_false @PIMP_22582
if 
  79@ == 1
goto_if_false @PIMP_22582
58@ = 6

:PIMP_22582
50@ = generate_random_int_in_range 16 {max} 20
if 
  50@ == 16
goto_if_false @PIMP_22782
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22782
request_model 147

:PIMP_22636
if 
  not has_model_loaded 147
goto_if_false @PIMP_22663
wait 0
goto @PIMP_22636

:PIMP_22663
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP216' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22782
if 
  50@ == 17
goto_if_false @PIMP_22969
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_22969
request_model 29

:PIMP_22826
if 
  not has_model_loaded 29
goto_if_false @PIMP_22852
wait 0
goto @PIMP_22826

:PIMP_22852
create_char PedType.CivMale {modelId} 29 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP217' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_22969
if 
  50@ == 18
goto_if_false @PIMP_23156
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23156
request_model 27

:PIMP_23013
if 
  not has_model_loaded 27
goto_if_false @PIMP_23039
wait 0
goto @PIMP_23013

:PIMP_23039
create_char PedType.CivMale {modelId} 27 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 27
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP218' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23156
if 
  50@ == 19
goto_if_false @PIMP_23343
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23343
request_model 50

:PIMP_23200
if 
  not has_model_loaded 50
goto_if_false @PIMP_23226
wait 0
goto @PIMP_23200

:PIMP_23226
create_char PedType.CivMale {modelId} 50 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP219' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23343
if 
  58@ == 6
goto_if_false @PIMP_23996
if 
  80@ == 1
goto_if_false @PIMP_23422
if 
  81@ == 1
goto_if_false @PIMP_23422
if 
  82@ == 1
goto_if_false @PIMP_23422
58@ = 7

:PIMP_23422
50@ = generate_random_int_in_range 20 {max} 23
if 
  50@ == 20
goto_if_false @PIMP_23622
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23622
request_model 147

:PIMP_23476
if 
  not has_model_loaded 147
goto_if_false @PIMP_23503
wait 0
goto @PIMP_23476

:PIMP_23503
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP220' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23622
if 
  50@ == 21
goto_if_false @PIMP_23809
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23809
request_model 17

:PIMP_23666
if 
  not has_model_loaded 17
goto_if_false @PIMP_23692
wait 0
goto @PIMP_23666

:PIMP_23692
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP221' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23809
if 
  50@ == 22
goto_if_false @PIMP_23996
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_23996
request_model 71

:PIMP_23853
if 
  not has_model_loaded 71
goto_if_false @PIMP_23879
wait 0
goto @PIMP_23853

:PIMP_23879
create_char PedType.CivMale {modelId} 71 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 71
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP222' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_23996
if 
  58@ == 7
goto_if_false @PIMP_24854
if 
  83@ == 1
goto_if_false @PIMP_24093
if 
  84@ == 1
goto_if_false @PIMP_24093
if 
  85@ == 1
goto_if_false @PIMP_24093
if 
  86@ == 1
goto_if_false @PIMP_24093
58@ = 1

:PIMP_24093
50@ = generate_random_int_in_range 23 {max} 27
if 
  50@ == 23
goto_if_false @PIMP_24293
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24293
request_model 147

:PIMP_24147
if 
  not has_model_loaded 147
goto_if_false @PIMP_24174
wait 0
goto @PIMP_24147

:PIMP_24174
create_char PedType.CivMale {modelId} 147 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP223' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24293
if 
  50@ == 24
goto_if_false @PIMP_24480
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24480
request_model 29

:PIMP_24337
if 
  not has_model_loaded 29
goto_if_false @PIMP_24363
wait 0
goto @PIMP_24337

:PIMP_24363
create_char PedType.CivMale {modelId} 29 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP224' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24480
if 
  50@ == 25
goto_if_false @PIMP_24667
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24667
request_model 23

:PIMP_24524
if 
  not has_model_loaded 23
goto_if_false @PIMP_24550
wait 0
goto @PIMP_24524

:PIMP_24550
create_char PedType.CivMale {modelId} 23 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 23
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP225' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24667
if 
  50@ == 26
goto_if_false @PIMP_24854
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_24854
request_model 17

:PIMP_24711
if 
  not has_model_loaded 17
goto_if_false @PIMP_24737
wait 0
goto @PIMP_24711

:PIMP_24737
create_char PedType.CivMale {modelId} 17 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 371@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP226' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_24854
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_29154
if 
  58@ == 1
goto_if_false @PIMP_25730
if 
  60@ == 1
goto_if_false @PIMP_24969
if 
  61@ == 1
goto_if_false @PIMP_24969
if 
  62@ == 1
goto_if_false @PIMP_24969
if 
  63@ == 1
goto_if_false @PIMP_24969
58@ = 2

:PIMP_24969
50@ = generate_random_int_in_range 0 {max} 4
if 
  50@ == 0
goto_if_false @PIMP_25165
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25165
request_model 72

:PIMP_25022
if 
  not has_model_loaded 72
goto_if_false @PIMP_25048
wait 0
goto @PIMP_25022

:PIMP_25048
create_char PedType.CivMale {modelId} 72 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP300' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25165
if 
  50@ == 1
goto_if_false @PIMP_25352
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25352
request_model 72

:PIMP_25209
if 
  not has_model_loaded 72
goto_if_false @PIMP_25235
wait 0
goto @PIMP_25209

:PIMP_25235
create_char PedType.CivMale {modelId} 72 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 72
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP301' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25352
if 
  50@ == 2
goto_if_false @PIMP_25539
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25539
request_model 17

:PIMP_25396
if 
  not has_model_loaded 17
goto_if_false @PIMP_25422
wait 0
goto @PIMP_25396

:PIMP_25422
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP302' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25539
if 
  50@ == 3
goto_if_false @PIMP_25730
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_25730
request_model 147

:PIMP_25584
if 
  not has_model_loaded 147
goto_if_false @PIMP_25611
wait 0
goto @PIMP_25584

:PIMP_25611
create_char PedType.CivMale {modelId} 147 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP303' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_25730
if 
  58@ == 2
goto_if_false @PIMP_26588
if 
  64@ == 1
goto_if_false @PIMP_25827
if 
  65@ == 1
goto_if_false @PIMP_25827
if 
  66@ == 1
goto_if_false @PIMP_25827
if 
  67@ == 1
goto_if_false @PIMP_25827
58@ = 3

:PIMP_25827
50@ = generate_random_int_in_range 4 {max} 8
if 
  50@ == 4
goto_if_false @PIMP_26023
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26023
request_model 32

:PIMP_25880
if 
  not has_model_loaded 32
goto_if_false @PIMP_25906
wait 0
goto @PIMP_25880

:PIMP_25906
create_char PedType.CivMale {modelId} 32 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 32
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP304' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26023
if 
  50@ == 5
goto_if_false @PIMP_26210
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26210
request_model 33

:PIMP_26067
if 
  not has_model_loaded 33
goto_if_false @PIMP_26093
wait 0
goto @PIMP_26067

:PIMP_26093
create_char PedType.CivMale {modelId} 33 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 33
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP305' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26210
if 
  50@ == 6
goto_if_false @PIMP_26397
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26397
request_model 17

:PIMP_26254
if 
  not has_model_loaded 17
goto_if_false @PIMP_26280
wait 0
goto @PIMP_26254

:PIMP_26280
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP306' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26397
if 
  50@ == 7
goto_if_false @PIMP_26588
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26588
request_model 147

:PIMP_26442
if 
  not has_model_loaded 147
goto_if_false @PIMP_26469
wait 0
goto @PIMP_26442

:PIMP_26469
create_char PedType.CivMale {modelId} 147 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP307' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26588
if 
  58@ == 3
goto_if_false @PIMP_27446
if 
  68@ == 1
goto_if_false @PIMP_26685
if 
  69@ == 1
goto_if_false @PIMP_26685
if 
  70@ == 1
goto_if_false @PIMP_26685
if 
  71@ == 1
goto_if_false @PIMP_26685
58@ = 4

:PIMP_26685
50@ = generate_random_int_in_range 8 {max} 12
if 
  50@ == 8
goto_if_false @PIMP_26881
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_26881
request_model 32

:PIMP_26738
if 
  not has_model_loaded 32
goto_if_false @PIMP_26764
wait 0
goto @PIMP_26738

:PIMP_26764
create_char PedType.CivMale {modelId} 32 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 32
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP308' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_26881
if 
  50@ == 9
goto_if_false @PIMP_27068
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27068
request_model 33

:PIMP_26925
if 
  not has_model_loaded 33
goto_if_false @PIMP_26951
wait 0
goto @PIMP_26925

:PIMP_26951
create_char PedType.CivMale {modelId} 33 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 33
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP309' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27068
if 
  50@ == 10
goto_if_false @PIMP_27255
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27255
request_model 17

:PIMP_27112
if 
  not has_model_loaded 17
goto_if_false @PIMP_27138
wait 0
goto @PIMP_27112

:PIMP_27138
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP310' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27255
if 
  50@ == 11
goto_if_false @PIMP_27446
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27446
request_model 147

:PIMP_27300
if 
  not has_model_loaded 147
goto_if_false @PIMP_27327
wait 0
goto @PIMP_27300

:PIMP_27327
create_char PedType.CivMale {modelId} 147 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 147
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP311' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27446
if 
  58@ == 4
goto_if_false @PIMP_28300
if 
  72@ == 1
goto_if_false @PIMP_27543
if 
  73@ == 1
goto_if_false @PIMP_27543
if 
  74@ == 1
goto_if_false @PIMP_27543
if 
  75@ == 1
goto_if_false @PIMP_27543
58@ = 5

:PIMP_27543
50@ = generate_random_int_in_range 12 {max} 16
if 
  50@ == 12
goto_if_false @PIMP_27739
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27739
request_model 50

:PIMP_27596
if 
  not has_model_loaded 50
goto_if_false @PIMP_27622
wait 0
goto @PIMP_27596

:PIMP_27622
create_char PedType.CivMale {modelId} 50 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 50
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP312' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27739
if 
  50@ == 13
goto_if_false @PIMP_27926
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_27926
request_model 34

:PIMP_27783
if 
  not has_model_loaded 34
goto_if_false @PIMP_27809
wait 0
goto @PIMP_27783

:PIMP_27809
create_char PedType.CivMale {modelId} 34 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 34
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP313' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_27926
if 
  50@ == 14
goto_if_false @PIMP_28113
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28113
request_model 17

:PIMP_27970
if 
  not has_model_loaded 17
goto_if_false @PIMP_27996
wait 0
goto @PIMP_27970

:PIMP_27996
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP314' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28113
if 
  50@ == 15
goto_if_false @PIMP_28300
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28300
request_model 29

:PIMP_28157
if 
  not has_model_loaded 29
goto_if_false @PIMP_28183
wait 0
goto @PIMP_28157

:PIMP_28183
create_char PedType.CivMale {modelId} 29 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 29
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP315' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28300
if 
  58@ == 5
goto_if_false @PIMP_29154
if 
  76@ == 1
goto_if_false @PIMP_28397
if 
  77@ == 1
goto_if_false @PIMP_28397
if 
  78@ == 1
goto_if_false @PIMP_28397
if 
  79@ == 1
goto_if_false @PIMP_28397
58@ = 1

:PIMP_28397
50@ = generate_random_int_in_range 16 {max} 20
if 
  50@ == 16
goto_if_false @PIMP_28593
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28593
request_model 68

:PIMP_28450
if 
  not has_model_loaded 68
goto_if_false @PIMP_28476
wait 0
goto @PIMP_28450

:PIMP_28476
create_char PedType.CivMale {modelId} 68 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 68
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP316' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28593
if 
  50@ == 17
goto_if_false @PIMP_28780
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28780
request_model 101

:PIMP_28637
if 
  not has_model_loaded 101
goto_if_false @PIMP_28663
wait 0
goto @PIMP_28637

:PIMP_28663
create_char PedType.CivMale {modelId} 101 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 101
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP317' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28780
if 
  50@ == 18
goto_if_false @PIMP_28967
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_28967
request_model 17

:PIMP_28824
if 
  not has_model_loaded 17
goto_if_false @PIMP_28850
wait 0
goto @PIMP_28824

:PIMP_28850
create_char PedType.CivMale {modelId} 17 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 17
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP318' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_28967
if 
  50@ == 19
goto_if_false @PIMP_29154
if 
  60@(50@,28i) == 0
goto_if_false @PIMP_29154
request_model 34

:PIMP_29011
if 
  not has_model_loaded 34
goto_if_false @PIMP_29037
wait 0
goto @PIMP_29011

:PIMP_29037
create_char PedType.CivMale {modelId} 34 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {var_handle} 91@(50@,28i)
set_char_heading 91@(50@,28i) {heading} 483@(50@,28f)
mark_model_as_no_longer_needed 34
set_char_only_damaged_by_player 91@(50@,28i) {state} True
print_now 'PIMP319' {time} 4000 {flag} 1
47@ = 2
TIMERA = 0
60@(50@,28i) = 1
119@(50@,28i) = 1

:PIMP_29154
if 
  520@ == 1
goto_if_false @PIMP_29711
if 
  TIMERA > 5000
goto_if_false @PIMP_29711
if 
  1 > 49@
goto_if_false @PIMP_29277
if 
  37@ == 0
goto_if_false @PIMP_29243
print_now 'PIMP_3' {time} 6000 {flag} 1

:PIMP_29243
if 
  37@ == 1
goto_if_false @PIMP_29277
print_now 'PIMP_31' {time} 6000 {flag} 1

:PIMP_29277
if 
  49@ > 0
goto_if_false @PIMP_29697
541@ = 1
if 
  513@ <> 1
goto_if_false @PIMP_29697
529@ = create_menu 'PIMP_70' {topLeftX} 31.0 {topLeftY} 80.0 {width} 89.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
34@ = 1
set_menu_column 529@ {column} 0 {title} 'PIMP_71' {row0} 'PIMP_72' {row1} 'PIMP_73' {row2} 'PIMP_74' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation 529@ {column} 1 {alignment} Align.Right
528@ = 300
set_lvar_int_to_lvar_int 526@ = 49@
mult_int_lvar_by_int_lvar 526@ *= 528@
set_menu_item_with_number 529@ {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 528@
set_menu_item_with_number 529@ {column} 1 {row} 1 {gxt} 'PIMP_75' {number} 49@
set_menu_item_with_number 529@ {column} 1 {row} 2 {gxt} 'DOLLAR' {number} 526@
set_active_menu_item 529@ {row} 2
cset_lvar_float_to_lvar_int 527@ =# 526@
if 
  37@ == 0
goto_if_false @PIMP_29648
print_now 'PIMP_7' {time} 6000 {flag} 1
add_score $player1 {money} 526@
increment_float_stat StatId.MoneyMadePimping {value} 527@

:PIMP_29648
if 
  37@ == 1
goto_if_false @PIMP_29697
print_now 'PIMP_32' {time} 6000 {flag} 1
add_score $player1 {money} 526@
increment_float_stat StatId.MoneyMadePimping {value} 527@

:PIMP_29697
520@ = 2
TIMERA = 0

:PIMP_29711
if 
  520@ == 2
goto_if_false @PIMP_29785
if 
  TIMERA > 6000
goto_if_false @PIMP_29785
if 
  34@ == 1
goto_if_false @PIMP_29778
delete_menu 529@
34@ = 0

:PIMP_29778
520@ = 3

:PIMP_29785
if 
  47@ == 2
goto_if_false @PIMP_29942
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_29875
if 
  37@ == 0
goto_if_false @PIMP_29849
set_lvar_int_to_lvar_int 511@ = 50@

:PIMP_29849
if 
  37@ == 1
goto_if_false @PIMP_29875
set_lvar_int_to_lvar_int 512@ = 50@

:PIMP_29875
remove_blip 89@
89@ = add_blip_for_char 91@(50@,28i)
change_blip_colour 89@ {color} BlipColor.Yellow
$pimp_runtimer = 180000
clear_onscreen_timer $pimp_runtimer
537@ = 0
537@ = 1
47@ = 3
48@ = 0

:PIMP_29942
if 
  47@ == 3
goto_if_false @PIMP_30698
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_30698
if 
  not is_car_dead 40@
goto_if_false @PIMP_30698
if 
  521@ == 0
goto_if_false @PIMP_30060
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_30060
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 89@
521@ = 1

:PIMP_30060
if 
  521@ == 1
goto_if_false @PIMP_30156
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_30156
remove_blip 522@
521@ = 0
remove_blip 89@
89@ = add_blip_for_char 91@(50@,28i)
change_blip_colour 89@ {color} BlipColor.Yellow
print_now 'PIMP_53' {time} 6000 {flag} 1
521@ = 0

:PIMP_30156
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_30202
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_30202
if 
  not is_car_dead 40@
goto_if_false @PIMP_30698
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_30698
if 
  46@ == 0
goto_if_false @PIMP_30698
if 
  521@ == 0
goto_if_false @PIMP_30698
if 
  locate_char_in_car_char_2d $scplayer {otherChar} 91@(50@,28i) {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @PIMP_30698
if 
  48@ == 0
goto_if_false @PIMP_30409
if 
  37@ == 0
goto_if_false @PIMP_30368
print_now 'PIMP_6' {time} 4000 {flag} 1
48@ = 1

:PIMP_30368
if 
  37@ == 1
goto_if_false @PIMP_30409
print_now 'PIMP_33' {time} 4000 {flag} 1
48@ = 1

:PIMP_30409
set_lvar_int_to_lvar_int 53@ = 37@
if 
  is_car_stopped 40@
goto_if_false @PIMP_30698
task_turn_char_to_face_char 91@(50@,28i) {target} 35@(53@,2i)
clear_char_tasks 35@(53@,2i)
set_lvar_int_to_lvar_int 54@ = 50@
537@ = 0
clear_onscreen_timer $pimp_runtimer
$pimp_runtimer = 180000
39@ = open_sequence_task 
task_leave_car -1 {vehicle} 40@
clear_mission_audio MissionAudioSlot.Slot4
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_30552
task_go_straight_to_coord -1 {x} 175@(50@,28f) {y} 203@(50@,28f) {z} 231@(50@,28f) {speed} MoveState.Run {time} 10000

:PIMP_30552
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_30600
task_go_straight_to_coord -1 {x} 287@(50@,28f) {y} 315@(50@,28f) {z} 343@(50@,28f) {speed} MoveState.Run {time} 10000

:PIMP_30600
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_30648
task_go_straight_to_coord -1 {x} 399@(50@,28f) {y} 427@(50@,28f) {z} 455@(50@,28f) {speed} MoveState.Run {time} 10000

:PIMP_30648
close_sequence_task 39@
perform_sequence_task 35@(53@,2i) {sequence} 39@
clear_sequence_task 39@
46@ = 1
55@ = 1
47@ = 4
TIMERA = 0

:PIMP_30698
if 
  55@ == 1
goto_if_false @PIMP_30860
if 
  not is_char_dead 35@(53@,2i)
goto_if_false @PIMP_30860
if 
  not is_char_dead 91@(54@,28i)
goto_if_false @PIMP_30860
if 
  locate_char_any_means_char_2d 35@(53@,2i) {target} 91@(54@,28i) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @PIMP_30860
clear_char_tasks 35@(53@,2i)
clear_char_tasks 91@(54@,28i)
task_chat_with_char 35@(53@,2i) {other} 91@(54@,28i) {leadSpeaker} True {_p4} 1
task_chat_with_char 91@(54@,28i) {other} 35@(53@,2i) {leadSpeaker} False {_p4} 1
55@ = 0

:PIMP_30860
if 
  47@ == 4
goto_if_false @PIMP_31086
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_30924
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_30924
if 
  not is_char_dead 35@(53@,2i)
goto_if_false @PIMP_31086
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_31086
if 
  52@ == 1
goto_if_false @PIMP_30989
47@ = 15

:PIMP_30989
if 
  52@ == 0
goto_if_false @PIMP_31086
if 
  37@ == 0
goto_if_false @PIMP_31086
42@ = 0
41@ = 0
37@ = 1
47@ = 99
remove_blip 89@
45@ = 0
44@ = 0
46@ = 0
52@ = 1

:PIMP_31086
if 
  47@ == 15
goto_if_false @PIMP_31190
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_31150
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_31150
remove_blip 89@
45@ = 0
44@ = 0
46@ = 0
gosub @PIMP_35556
47@ = 20

:PIMP_31190
if 
  47@ == 20
goto_if_false @PIMP_31261
if 
  has_char_been_damaged_by_char 91@(50@,28i) {handle} $scplayer
goto_if_false @PIMP_31254
print_now 'PIMP_52' {time} 8000 {flag} 1
goto @PIMP_37351

:PIMP_31254
47@ = 25

:PIMP_31261
if 
  47@ == 25
goto_if_false @PIMP_31995
513@ = generate_random_int_in_range 0 {max} 4
if 
  2 > 49@
goto_if_false @PIMP_31313
513@ = 3

:PIMP_31313
if 
  513@ == 0
goto_if_false @PIMP_31580
47@ = 30
print_now 'PIMP_35' {time} 6000 {flag} 1
524@ = 1
TIMERA = 0
if 
  37@ == 0
goto_if_false @PIMP_31474
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_31474
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
set_char_is_target_priority 91@(511@,28i) {state} True
119@(511@,28i) = 0
change_blip_colour 90@ {color} BlipColor.Red
clear_onscreen_timer $pimp_runtimer
$pimp_runtimer = 180000
537@ = 2

:PIMP_31474
if 
  37@ == 1
goto_if_false @PIMP_31580
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_31580
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
set_char_is_target_priority 91@(512@,28i) {state} True
119@(512@,28i) = 0
change_blip_colour 90@ {color} BlipColor.Red
clear_onscreen_timer $pimp_runtimer
$pimp_runtimer = 180000
537@ = 2

:PIMP_31580
if 
  513@ == 1
goto_if_false @PIMP_31871
47@ = 40
print_now 'PIMP_39' {time} 6000 {flag} 1
525@ = 1
TIMERA = 0
if 
  37@ == 0
goto_if_false @PIMP_31753
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_31753
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
set_char_is_target_priority 91@(511@,28i) {state} True
119@(511@,28i) = 0
set_char_money 91@(511@,28i) {amount} 250
change_blip_colour 90@ {color} BlipColor.Red
clear_onscreen_timer $pimp_runtimer
$pimp_runtimer = 180000
537@ = 2

:PIMP_31753
if 
  37@ == 1
goto_if_false @PIMP_31871
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_31871
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
set_char_is_target_priority 91@(512@,28i) {state} True
119@(512@,28i) = 0
change_blip_colour 90@ {color} BlipColor.Red
set_char_money 91@(512@,28i) {amount} 250
clear_onscreen_timer $pimp_runtimer
$pimp_runtimer = 180000
537@ = 2

:PIMP_31871
if 
  513@ == 2
goto_if_false @PIMP_31933
523@ = 0
47@ = 50
print_now 'PIMP_56' {time} 4000 {flag} 1
TIMERA = 0
523@ = 1

:PIMP_31933
if 
  513@ == 3
goto_if_false @PIMP_31995
523@ = 0
47@ = 50
print_now 'PIMP_56' {time} 4000 {flag} 1
TIMERA = 0
523@ = 1

:PIMP_31995
if 
  47@ == 30
goto_if_false @PIMP_32866
if 
  525@ == 1
goto_if_false @PIMP_32073
if 
  TIMERA > 4000
goto_if_false @PIMP_32073
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_32073
if 
  524@ == 1
goto_if_false @PIMP_32133
if 
  TIMERA > 4000
goto_if_false @PIMP_32133
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_32133
if 
  not is_car_dead 40@
goto_if_false @PIMP_32402
if 
  521@ == 0
goto_if_false @PIMP_32213
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_32213
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 90@
521@ = 1

:PIMP_32213
if 
  521@ == 1
goto_if_false @PIMP_32402
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_32402
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_32317
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_32317
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_32317
if 
  37@ == 1
goto_if_false @PIMP_32379
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_32379
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_32379
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_32402
if 
  521@ == 0
goto_if_false @PIMP_32734
if 
  37@ == 0
goto_if_false @PIMP_32577
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_32577
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @PIMP_32577
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_32577
clear_char_tasks 35@(37@,2i)
task_kill_char_on_foot 35@(37@,2i) {target} 91@(511@,28i)
task_kill_char_on_foot 91@(511@,28i) {target} 35@(37@,2i)
print_now 'PIMP_55' {time} 6000 {flag} 1
47@ = 35

:PIMP_32577
if 
  37@ == 1
goto_if_false @PIMP_32734
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_32734
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @PIMP_32734
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_32734
task_kill_char_on_foot 91@(512@,28i) {target} 35@(37@,2i)
clear_char_tasks 35@(37@,2i)
task_kill_char_on_foot 35@(37@,2i) {target} 91@(512@,28i)
print_now 'PIMP_55' {time} 6000 {flag} 1
47@ = 35

:PIMP_32734
if 
  37@ == 0
goto_if_false @PIMP_32800
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_32800
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_32800
if 
  37@ == 1
goto_if_false @PIMP_32866
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_32866
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_32866
if 
  47@ == 35
goto_if_false @PIMP_33407
516@ = 99
if 
  525@ == 1
goto_if_false @PIMP_32951
if 
  TIMERA > 4000
goto_if_false @PIMP_32951
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_32951
if 
  524@ == 1
goto_if_false @PIMP_33011
if 
  TIMERA > 4000
goto_if_false @PIMP_33011
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_33011
if 
  not is_car_dead 40@
goto_if_false @PIMP_33275
if 
  521@ == 0
goto_if_false @PIMP_33086
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33086
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
521@ = 1

:PIMP_33086
if 
  521@ == 1
goto_if_false @PIMP_33275
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33275
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_33190
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33190
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33190
if 
  37@ == 1
goto_if_false @PIMP_33252
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_33252
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33252
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_33275
if 
  37@ == 0
goto_if_false @PIMP_33341
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33341
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
47@ = 50

:PIMP_33341
if 
  37@ == 1
goto_if_false @PIMP_33407
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_33407
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
47@ = 50

:PIMP_33407
if 
  47@ == 40
goto_if_false @PIMP_34234
if 
  525@ == 1
goto_if_false @PIMP_33485
if 
  TIMERA > 4000
goto_if_false @PIMP_33485
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_33485
if 
  524@ == 1
goto_if_false @PIMP_33545
if 
  TIMERA > 4000
goto_if_false @PIMP_33545
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_33545
if 
  not is_car_dead 40@
goto_if_false @PIMP_33814
if 
  521@ == 0
goto_if_false @PIMP_33625
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33625
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
remove_blip 90@
521@ = 1

:PIMP_33625
if 
  521@ == 1
goto_if_false @PIMP_33814
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_33814
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_33729
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33729
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33729
if 
  37@ == 1
goto_if_false @PIMP_33791
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_33791
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_33791
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_33814
if 
  521@ == 0
goto_if_false @PIMP_34102
if 
  37@ == 0
goto_if_false @PIMP_33967
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_33967
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @PIMP_33967
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_33967
task_smart_flee_char 91@(511@,28i) {threat} $scplayer {radius} 100.0 {time} -1
print_now 'PIMP_37' {time} 6000 {flag} 1
47@ = 45

:PIMP_33967
if 
  37@ == 1
goto_if_false @PIMP_34102
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_34102
if 
  locate_char_any_means_char_2d $scplayer {target} 35@(37@,2i) {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @PIMP_34102
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34102
task_smart_flee_char 91@(512@,28i) {threat} $scplayer {radius} 100.0 {time} -1
print_now 'PIMP_37' {time} 6000 {flag} 1
47@ = 45

:PIMP_34102
if 
  37@ == 0
goto_if_false @PIMP_34168
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34168
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_34168
if 
  37@ == 1
goto_if_false @PIMP_34234
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34234
remove_blip 90@
print_now 'PIMP_38' {time} 4000 {flag} 1
47@ = 50

:PIMP_34234
if 
  47@ == 45
goto_if_false @PIMP_34785
516@ = 99
if 
  525@ == 1
goto_if_false @PIMP_34319
if 
  TIMERA > 4000
goto_if_false @PIMP_34319
print_now 'PIMP_37' {time} 6000 {flag} 1
525@ = 99

:PIMP_34319
if 
  524@ == 1
goto_if_false @PIMP_34379
if 
  TIMERA > 4000
goto_if_false @PIMP_34379
print_now 'PIMP_36' {time} 6000 {flag} 1
524@ = 99

:PIMP_34379
if 
  not is_car_dead 40@
goto_if_false @PIMP_34643
if 
  521@ == 0
goto_if_false @PIMP_34454
if 
  not is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_34454
522@ = add_blip_for_car 40@
set_blip_as_friendly 522@ {state} True
521@ = 1

:PIMP_34454
if 
  521@ == 1
goto_if_false @PIMP_34643
if 
  is_char_in_car $scplayer {vehicle} 40@
goto_if_false @PIMP_34643
remove_blip 522@
if 
  37@ == 0
goto_if_false @PIMP_34558
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34558
remove_blip 90@
90@ = add_blip_for_char 91@(511@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_34558
if 
  37@ == 1
goto_if_false @PIMP_34620
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34620
remove_blip 90@
90@ = add_blip_for_char 91@(512@,28i)
change_blip_colour 90@ {color} BlipColor.Red

:PIMP_34620
print_now 'PIMP_55' {time} 6000 {flag} 1
521@ = 0

:PIMP_34643
if 
  37@ == 0
goto_if_false @PIMP_34714
if 
  is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34714
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
wait 2000
47@ = 50

:PIMP_34714
if 
  37@ == 1
goto_if_false @PIMP_34785
if 
  is_char_dead 91@(512@,28i)
goto_if_false @PIMP_34785
print_now 'PIMP_38' {time} 4000 {flag} 1
remove_blip 90@
wait 2000
47@ = 50

:PIMP_34785
if 
  47@ == 50
goto_if_false @PIMP_35066
537@ = 0
clear_onscreen_timer $pimp_runtimer
$pimp_runtimer = 180000
516@ = 0
if 
  not is_char_dead 35@(37@,2i)
goto_if_false @PIMP_35010
clear_prints 
clear_char_tasks 35@(37@,2i)
remove_blip 88@
88@ = add_blip_for_char 35@(37@,2i)
set_blip_as_friendly 88@ {state} True
47@ = 25
if 
  37@ == 0
goto_if_false @PIMP_34952
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_34952
mark_char_as_no_longer_needed 91@(511@,28i)
119@(511@,28i) = 0

:PIMP_34952
if 
  37@ == 1
goto_if_false @PIMP_35010
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_35010
mark_char_as_no_longer_needed 91@(512@,28i)
119@(512@,28i) = 0

:PIMP_35010
47@ = 99
42@ = 2
49@ += 1
540@ = get_int_stat StatId.PimpingLevel
if 
  not is_int_lvar_greater_than_int_lvar 540@ > 49@
goto_if_false @PIMP_35066
set_int_stat StatId.PimpingLevel {value} 49@

:PIMP_35066
if 
  not is_char_dead 91@(50@,28i)
goto_if_false @PIMP_35155
if 
  locate_char_any_means_char_3d $scplayer {target} 91@(50@,28i) {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35144
freeze_char_position_and_dont_load_collision 91@(50@,28i) {state} False
goto @PIMP_35155

:PIMP_35144
freeze_char_position_and_dont_load_collision 91@(50@,28i) {state} True

:PIMP_35155
if 
  not is_char_dead 91@(511@,28i)
goto_if_false @PIMP_35244
if 
  locate_char_any_means_char_3d $scplayer {target} 91@(511@,28i) {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35233
freeze_char_position_and_dont_load_collision 91@(511@,28i) {state} False
goto @PIMP_35244

:PIMP_35233
freeze_char_position_and_dont_load_collision 91@(511@,28i) {state} True

:PIMP_35244
if 
  not is_char_dead 91@(512@,28i)
goto_if_false @PIMP_35333
if 
  locate_char_any_means_char_3d $scplayer {target} 91@(512@,28i) {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35322
freeze_char_position_and_dont_load_collision 91@(512@,28i) {state} False
goto @PIMP_35333

:PIMP_35322
freeze_char_position_and_dont_load_collision 91@(512@,28i) {state} True

:PIMP_35333
if 
  not is_char_dead 35@
goto_if_false @PIMP_35406
if 
  locate_char_any_means_char_3d $scplayer {target} 35@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35399
freeze_char_position_and_dont_load_collision 35@ {state} False
goto @PIMP_35406

:PIMP_35399
freeze_char_position_and_dont_load_collision 35@ {state} True

:PIMP_35406
if 
  not is_char_dead 36@
goto_if_false @PIMP_35479
if 
  locate_char_any_means_char_3d $scplayer {target} 36@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @PIMP_35472
freeze_char_position_and_dont_load_collision 36@ {state} False
goto @PIMP_35479

:PIMP_35472
freeze_char_position_and_dont_load_collision 36@ {state} True

:PIMP_35479
goto @PIMP_3749

:PIMP_35486
if 
  35@(37@,2i) <> -1
goto_if_false @PIMP_35554
519@ = get_ped_type 35@(37@,2i)
if 
  not is_char_male 35@(37@,2i)
goto_if_false @PIMP_35554
41@ = 99
42@ = 1

:PIMP_35554
return 

:PIMP_35556
if 
  37@ == 0
goto_if_false @PIMP_35583
37@ = 1
return 

:PIMP_35583
if 
  37@ == 1
goto_if_false @PIMP_35610
37@ = 0
return 

:PIMP_35610
return 
return 

:PIMP_35614
if 
  is_int_lvar_equal_to_constant 531@ == 1
goto_if_false @PIMP_36200
if or
  is_char_in_zone $scplayer {zone} 'IWD'
  is_char_in_zone $scplayer {zone} 'GAN'
  is_char_in_zone $scplayer {zone} 'ELCO'
  is_char_in_zone $scplayer {zone} 'LMEX'
goto_if_false @PIMP_35706
58@ = 1

:PIMP_35706
if or
  is_char_in_zone $scplayer {zone} 'LDOC'
  is_char_in_zone $scplayer {zone} 'LAIR'
  is_char_in_zone $scplayer {zone} 'LIND'
  is_char_in_zone $scplayer {zone} 'BLUF'
goto_if_false @PIMP_35780
58@ = 2

:PIMP_35780
if or
  is_char_in_zone $scplayer {zone} 'COM'
  is_char_in_zone $scplayer {zone} 'LDT'
  is_char_in_zone $scplayer {zone} 'GLN'
  is_char_in_zone $scplayer {zone} 'LMEX'
goto_if_false @PIMP_35854
58@ = 3

:PIMP_35854
if or
  is_char_in_zone $scplayer {zone} 'JEF'
  is_char_in_zone $scplayer {zone} 'ELS'
  is_char_in_zone $scplayer {zone} 'LFL'
  is_char_in_zone $scplayer {zone} 'EBE'
goto_if_false @PIMP_35928
58@ = 4

:PIMP_35928
if or
  is_char_in_zone $scplayer {zone} 'CONF'
  is_char_in_zone $scplayer {zone} 'VERO'
  is_char_in_zone $scplayer {zone} 'SMB'
  is_char_in_zone $scplayer {zone} 'MAR'
  is_char_in_zone $scplayer {zone} 'MKT'
goto_if_false @PIMP_36016
58@ = 5

:PIMP_36016
if or
  is_char_in_zone $scplayer {zone} 'SMB'
  is_char_in_zone $scplayer {zone} 'PLS'
  is_char_in_zone $scplayer {zone} 'ROD'
  is_char_in_zone $scplayer {zone} 'RIH'
goto_if_false @PIMP_36090
58@ = 6

:PIMP_36090
if or
  is_char_in_zone $scplayer {zone} 'VIN'
  is_char_in_zone $scplayer {zone} 'MUL'
  is_char_in_zone $scplayer {zone} 'SUN'
goto_if_false @PIMP_36150
58@ = 7

:PIMP_36150
if 
  1 > 58@
goto_if_false @PIMP_36175
58@ = 1

:PIMP_36175
if 
  58@ > 7
goto_if_false @PIMP_36200
58@ = 1

:PIMP_36200
if 
  is_int_lvar_equal_to_constant 531@ == 2
goto_if_false @PIMP_36772
if or
  is_char_in_zone $scplayer {zone} 'BAYV'
  is_char_in_zone $scplayer {zone} 'PARA'
  is_char_in_zone $scplayer {zone} 'CIVI'
  is_char_in_zone $scplayer {zone} 'CITYS'
goto_if_false @PIMP_36292
58@ = 1

:PIMP_36292
if or
  is_char_in_zone $scplayer {zone} 'CALT'
  is_char_in_zone $scplayer {zone} 'JUNIHO'
  is_char_in_zone $scplayer {zone} 'JUNIHI'
  is_char_in_zone $scplayer {zone} 'ESPN'
goto_if_false @PIMP_36366
58@ = 2

:PIMP_36366
if or
  is_char_in_zone $scplayer {zone} 'SUNMA'
  is_char_in_zone $scplayer {zone} 'SUNNN'
  is_char_in_zone $scplayer {zone} 'GANTB'
  is_char_in_zone $scplayer {zone} 'BATTP'
goto_if_false @PIMP_36440
58@ = 3

:PIMP_36440
if or
  is_char_in_zone $scplayer {zone} 'CHINA'
  is_char_in_zone $scplayer {zone} 'SFDWT'
  is_char_in_zone $scplayer {zone} 'FINA'
  is_char_in_zone $scplayer {zone} 'ESPE'
goto_if_false @PIMP_36514
58@ = 4

:PIMP_36514
if or
  is_char_in_zone $scplayer {zone} 'WESTP'
  is_char_in_zone $scplayer {zone} 'HASH'
  is_char_in_zone $scplayer {zone} 'OCEAF'
  is_char_in_zone $scplayer {zone} 'CUNTC'
goto_if_false @PIMP_36588
58@ = 5

:PIMP_36588
if or
  is_char_in_zone $scplayer {zone} 'THEA'
  is_char_in_zone $scplayer {zone} 'GARC'
  is_char_in_zone $scplayer {zone} 'DOH'
  is_char_in_zone $scplayer {zone} 'EASB'
goto_if_false @PIMP_36662
58@ = 6

:PIMP_36662
if or
  is_char_in_zone $scplayer {zone} 'HILLP'
  is_char_in_zone $scplayer {zone} 'SILLY'
  is_char_in_zone $scplayer {zone} 'SFAIR'
goto_if_false @PIMP_36722
58@ = 7

:PIMP_36722
if 
  1 > 58@
goto_if_false @PIMP_36747
58@ = 1

:PIMP_36747
if 
  58@ > 7
goto_if_false @PIMP_36772
58@ = 1

:PIMP_36772
if 
  is_int_lvar_equal_to_constant 531@ == 3
goto_if_false @PIMP_37210
if or
  is_char_in_zone $scplayer {zone} 'BFC'
  is_char_in_zone $scplayer {zone} 'GGC'
  is_char_in_zone $scplayer {zone} 'VAIR'
  is_char_in_zone $scplayer {zone} 'LDM'
goto_if_false @PIMP_36864
58@ = 1

:PIMP_36864
if or
  is_char_in_zone $scplayer {zone} 'PINK'
  is_char_in_zone $scplayer {zone} 'DRAG'
  is_char_in_zone $scplayer {zone} 'CAM'
  is_char_in_zone $scplayer {zone} 'LOT'
goto_if_false @PIMP_36938
58@ = 2

:PIMP_36938
if or
  is_char_in_zone $scplayer {zone} 'PIRA'
  is_char_in_zone $scplayer {zone} 'ROY'
  is_char_in_zone $scplayer {zone} 'CALI'
  is_char_in_zone $scplayer {zone} 'HIGH'
goto_if_false @PIMP_37012
58@ = 3

:PIMP_37012
if or
  is_char_in_zone $scplayer {zone} 'PILG'
  is_char_in_zone $scplayer {zone} 'STAR'
  is_char_in_zone $scplayer {zone} 'STRIP'
  is_char_in_zone $scplayer {zone} 'VISA'
goto_if_false @PIMP_37086
58@ = 4

:PIMP_37086
if or
  is_char_in_zone $scplayer {zone} 'ISLE'
  is_char_in_zone $scplayer {zone} 'ROCE'
  is_char_in_zone $scplayer {zone} 'OVS'
  is_char_in_zone $scplayer {zone} 'RING'
goto_if_false @PIMP_37160
58@ = 5

:PIMP_37160
if 
  1 > 58@
goto_if_false @PIMP_37185
58@ = 1

:PIMP_37185
if 
  58@ > 5
goto_if_false @PIMP_37210
58@ = 1

:PIMP_37210
return 

:PIMP_37212
$controlmode = get_controller_mode 
if 
  $controlmode <> 3
goto_if_false @PIMP_37293

:PIMP_37235
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @PIMP_37286
wait 0
if 
  not is_player_playing $player1
goto_if_false @PIMP_37279
goto @PIMP_37351

:PIMP_37279
goto @PIMP_37235

:PIMP_37286
goto @PIMP_37344

:PIMP_37293
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @PIMP_37344
wait 0
if 
  not is_player_playing $player1
goto_if_false @PIMP_37337
goto @PIMP_37351

:PIMP_37337
goto @PIMP_37293

:PIMP_37344
goto @PIMP_37351

:PIMP_37351
if 
  49@ == 0
goto_if_false @PIMP_37385
print_big 'PIMP_40' {time} 5000 {style} TextStyle.Middle

:PIMP_37385
if 
  49@ == 1
goto_if_false @PIMP_37419
print_big 'PIMP_41' {time} 5000 {style} TextStyle.Middle

:PIMP_37419
if 
  49@ == 2
goto_if_false @PIMP_37453
print_big 'PIMP_42' {time} 5000 {style} TextStyle.Middle

:PIMP_37453
if 
  49@ == 3
goto_if_false @PIMP_37487
print_big 'PIMP_43' {time} 5000 {style} TextStyle.Middle

:PIMP_37487
if 
  49@ == 4
goto_if_false @PIMP_37521
print_big 'PIMP_44' {time} 5000 {style} TextStyle.Middle

:PIMP_37521
if 
  49@ == 5
goto_if_false @PIMP_37555
print_big 'PIMP_45' {time} 5000 {style} TextStyle.Middle

:PIMP_37555
if 
  49@ == 6
goto_if_false @PIMP_37589
print_big 'PIMP_46' {time} 5000 {style} TextStyle.Middle

:PIMP_37589
if 
  49@ == 7
goto_if_false @PIMP_37623
print_big 'PIMP_47' {time} 5000 {style} TextStyle.Middle

:PIMP_37623
if 
  49@ == 8
goto_if_false @PIMP_37657
print_big 'PIMP_48' {time} 5000 {style} TextStyle.Middle

:PIMP_37657
if 
  49@ == 9
goto_if_false @PIMP_37691
print_big 'PIMP_49' {time} 5000 {style} TextStyle.Middle

:PIMP_37691
return 

:PIMP_37693
print_with_number_big 'PIMP_50' {num} 1000 {duration} 5000 {style} TextStyle.Middle
play_mission_passed_tune 2
add_score $player1 {money} 1000
clear_wanted_level $player1
if 
  $pimp_passed_once == 0
goto_if_false @PIMP_37760
register_oddjob_mission_passed 
player_made_progress 1
$pimp_passed_once = 1

:PIMP_37760
return 

:PIMP_37762
clear_mission_audio MissionAudioSlot.Slot4
clear_onscreen_timer $pimp_runtimer
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 147
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 36
mark_model_as_no_longer_needed 29
mark_model_as_no_longer_needed 33
mark_model_as_no_longer_needed 34
mark_model_as_no_longer_needed 32
mark_model_as_no_longer_needed 152
mark_model_as_no_longer_needed 75
mark_model_as_no_longer_needed 63
mark_model_as_no_longer_needed 64
mark_model_as_no_longer_needed 85
mark_model_as_no_longer_needed 245
mark_model_as_no_longer_needed 71
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 68
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 72
mark_model_as_no_longer_needed 48
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 19
if 
  not is_char_dead $scplayer
goto_if_false @PIMP_37894
set_char_cant_be_dragged_out $scplayer {state} False

:PIMP_37894
remove_blip 88@
remove_blip 89@
remove_blip 90@
remove_blip 522@
if 
  34@ == 1
goto_if_false @PIMP_37937
delete_menu 529@

:PIMP_37937
set_relationship RelationshipType.Dislike {ofPedType} PedType.Gang1 {toPedType} PedType.Player1
$timer_mobile_start = get_game_timer 
$flag_player_on_pimp_mission = 0
$onmission = 0
mission_has_finished 
return 

//-------------Mission 128---------------
// Originally: Arena Mission: Blood Ring

:BLOOD
script_name 'BLOOD'
gosub @BLOOD_47
if 
  has_deatharrest_been_executed 
goto_if_false @BLOOD_38
gosub @BLOOD_13095

:BLOOD_38
gosub @BLOOD_13200
terminate_this_script 

:BLOOD_47
$onmission = 1
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_74
register_mission_given 

:BLOOD_74
load_mission_text 'BLOOD'
if 
  $onmission == 0
goto_if_false @BLOOD_202
90@ = add_blip_for_coord 158@ {y} 159@ {z} 160@
87@ = create_object #BB_PICKUP {x} 170@ {y} 171@ {z} 172@
84@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
85@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
86@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
95@ = create_car 504 {x} 154@ {y} 155@ {z} 156@

:BLOOD_202
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
clear_this_print_big_now TextStyle.Middle
wait 0
91@ = 0
92@ = 0
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_269
$blood_best_time = 60
$blood_time_to_beat = 60000

:BLOOD_269
93@ = 0
94@ = 0
95@ = 0
$blood_players_current_time = 30000
96@ = 0
97@ = 0
98@ = 0
99@ = 0
100@ = 0
101@ = 0
102@ = -1
154@ = -1280.9
155@ = 994.8
156@ = 1037.0
157@ = 90.0
158@ = 0.0
159@ = 0.0
160@ = 0.0
161@ = 0.0
162@ = 0.0
163@ = 0.0
164@ = 0.0
165@ = 0.0
166@ = 0.0
167@ = 0.0
168@ = 0.0
169@ = 0.0
170@ = 0.0
171@ = 0.0
172@ = 0.0
173@ = 0.0
174@ = 0.0
175@ = 0.0
176@ = 0.0
177@ = 0.0
178@ = 0.0
179@ = 0.0
180@ = 0.0
181@ = 0.0
182@ = 0.0
183@ = 0.0
184@ = 0.0
103@ = 0
111@ = 0
104@ = 0
105@ = 0
112@ = 0
113@ = 0
114@ = 0
115@ = 0
116@ = 0
117@ = 0
118@ = 0
119@ = 0
120@ = 0
121@ = 0
122@ = 0
123@ = 0
124@ = 0
125@ = 0
126@ = 0
127@ = 0
106@ = 0.0
set_lvar_int_to_constant 131@ = 36200
set_lvar_int_to_constant 132@ = 36202
set_lvar_int_to_constant 133@ = 36205
set_lvar_int_to_constant 134@ = 36200
set_lvar_int_to_constant 135@ = 36202
set_lvar_int_to_constant 136@ = 36205
set_lvar_int_to_constant 137@ = 36200
set_lvar_int_to_constant 138@ = 36202
set_lvar_int_to_constant 139@ = 36205
set_lvar_int_to_constant 140@ = 36200
set_lvar_int_to_constant 141@ = 36202
set_lvar_int_to_constant 142@ = 36205
set_lvar_int_to_constant 143@ = 36200
set_lvar_int_to_constant 144@ = 36202
set_lvar_int_to_constant 145@ = 36205
set_lvar_int_to_constant 146@ = 36200
set_lvar_int_to_constant 147@ = 36202
set_lvar_int_to_constant 148@ = 36205
set_lvar_int_to_constant 149@ = 36200
set_lvar_int_to_constant 150@ = 36202
set_lvar_int_to_constant 151@ = 36205
set_lvar_int_to_constant 152@ = 36200
set_lvar_int_to_constant 153@ = 36202
107@ = 0
108@ = 0
wait 0
do_fade 500 {direction} Fade.Out

:BLOOD_1062
if 
  get_fading_status 
goto_if_false @BLOOD_1086
wait 0
goto @BLOOD_1062

:BLOOD_1086
request_model 504
request_model 439
request_model 353
request_model #BB_PICKUP
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1827

:BLOOD_1113
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BLOOD_1139
wait 0
goto @BLOOD_1113

:BLOOD_1139
load_all_models_now 
override_next_restart -2126.3 {y} -440.6 {z} 34.5 {heading} 82.7
force_all_vehicle_lights_off True
suppress_car_model 403
suppress_car_model 408
suppress_car_model 409
suppress_car_model 413
suppress_car_model 414
suppress_car_model 418
suppress_car_model 423
suppress_car_model 428
suppress_car_model 431
suppress_car_model 433
suppress_car_model 437
suppress_car_model 440
suppress_car_model 442
suppress_car_model 443
suppress_car_model 444
suppress_car_model 455
suppress_car_model 456
suppress_car_model 458
suppress_car_model 470
suppress_car_model 482
suppress_car_model 483
suppress_car_model 486
suppress_car_model 489
suppress_car_model 498
suppress_car_model 499
suppress_car_model 508
suppress_car_model 514
suppress_car_model 515
suppress_car_model 524
suppress_car_model 525
suppress_car_model 578
suppress_car_model 582
suppress_car_model 588
set_player_control $player1 {state} False
185@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
hide_all_frontend_blips True
set_free_health_care $player1 {state} True
switch_rubbish 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
shut_player_up $player1 {_p2} 1
set_char_coordinates $scplayer {x} -1398.4611 {y} 995.641 {z} 1024.462
set_area_visible 15
set_char_area_visible $scplayer {areaId} 15
set_extra_colours 2 {fade} False
request_collision 154@ {y} 155@
load_scene 154@ {y} 155@ {z} 156@
clear_area -1280.9 {y} 994.8 {z} 1037.0 {radius} 300.0 {clearParticles} True
load_scene_in_direction -1280.8 {y} 994.7 {z} 1036.0 {heading} 90.0
103@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Mp5
give_weapon_to_char $scplayer {weaponType} WeaponType.Mp5 {ammo} 30000
set_lvar_int_to_constant 108@ = 504
gosub @BLOOD_15527
34@ = create_car 504 {x} 154@ {y} 155@ {z} 156@
set_load_collision_for_car_flag 34@ {state} True
set_vehicle_area_visible 34@ {interiorId} 15
set_car_heading 34@ {heading} 157@
lock_car_doors 34@ {lockStatus} CarLock.LockedPlayerInside
warp_char_into_car $scplayer {vehicle} 34@
set_current_char_weapon $scplayer {weaponType} WeaponType.Mp5
set_car_strong 34@ {state} True
set_upsidedown_car_not_damaged 34@ {state} True
set_can_burst_car_tyres 34@ {state} False
set_car_health 34@ {health} 1249
83@ = create_random_char_as_passenger 34@ {seat} SeatId.BikeRear
set_char_area_visible 83@ {areaId} 15
set_char_decision_maker 83@ {handleOrTemplate} 185@
give_weapon_to_char 83@ {weaponType} WeaponType.Mp5 {ammo} 30000
set_char_proofs 83@ {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:BLOOD_1662
if 
  16 > 93@
goto_if_false @BLOOD_2121
wait 0
gosub @BLOOD_13324
104@, 105@ = get_random_car_model_in_memory True
if 
  104@ >= 0
goto_if_false @BLOOD_1755
set_lvar_int_to_lvar_int 108@ = 104@
gosub @BLOOD_15527
create_car 104@ {x} 154@ {y} 155@ {z} 156@ {var_handle} 35@(93@,16i)

:BLOOD_1755
if 
  104@ == -1
goto_if_false @BLOOD_1809
set_lvar_int_to_constant 108@ = 439
gosub @BLOOD_15527
create_car 439 {x} 154@ {y} 155@ {z} 156@ {var_handle} 35@(93@,16i)

:BLOOD_1809
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_2107
set_car_heading 35@(93@,16i) {heading} 157@
set_load_collision_for_car_flag 35@(93@,16i) {state} True
set_car_straight_line_distance 35@(93@,16i) {distance} 255
set_can_burst_car_tyres 35@(93@,16i) {state} False
create_random_char_as_driver 35@(93@,16i) {var_handle} 51@(93@,16i)
set_char_area_visible 51@(93@,16i) {areaId} 15
set_char_decision_maker 51@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 51@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
101@ = get_maximum_number_of_passengers 35@(93@,16i)
if 
  101@ > 0
goto_if_false @BLOOD_2026
create_random_char_as_passenger 35@(93@,16i) {seat} SeatId.BikeRear {var_handle} 67@(93@,16i)
set_char_decision_maker 67@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 67@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
give_weapon_to_char 67@(93@,16i) {weaponType} WeaponType.Mp5 {ammo} 30000

:BLOOD_2026
if 
  is_char_on_any_bike 51@(93@,16i)
goto_if_false @BLOOD_2068
set_char_can_be_knocked_off_bike 51@(93@,16i) {stayOnBike} True
set_char_can_be_knocked_off_bike 67@(93@,16i) {stayOnBike} True

:BLOOD_2068
add_stuck_car_check 35@(93@,16i) {distance} 1.0 {time} 3000
set_upsidedown_car_not_damaged 35@(93@,16i) {state} True
set_vehicle_area_visible 35@(93@,16i) {interiorId} 15

:BLOOD_2107
93@ += 1
goto @BLOOD_1662

:BLOOD_2121
switch_widescreen True
set_fixed_camera_position -1273.2 {y} 992.4 {z} 1038.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1307.9 {y} 995.3 {z} 1034.2 {switchStyle} SwitchType.JumpCut
89@ = create_checkpoint CheckpointType.Tube {x} -1432.6 {y} 1016.1 {z} 1024.1 {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
set_fading_colour 0 {g} 0 {b} 0
wait 500
do_fade 1500 {direction} Fade.In

:BLOOD_2238
if 
  get_fading_status 
goto_if_false @BLOOD_2262
wait 0
goto @BLOOD_2238

:BLOOD_2262
skip_cutscene_start_internal @BLOOD_2988
print_now 'BLOD_10' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2292
if 
  5000 > TIMERA
goto_if_false @BLOOD_2322
wait 0
goto @BLOOD_2292

:BLOOD_2322
set_fixed_camera_position -1441.9 {y} 1054.6 {z} 1040.5 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1432.0 {y} 1012.6 {z} 1034.7 {switchStyle} SwitchType.JumpCut
print_now 'BLOD_01' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2396
if 
  5000 > TIMERA
goto_if_false @BLOOD_2426
wait 0
goto @BLOOD_2396

:BLOOD_2426
set_fixed_camera_position -1464.6 {y} 943.6 {z} 1036.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1436.1 {y} 923.4 {z} 1040.2 {switchStyle} SwitchType.JumpCut
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_2518
print_now 'BLOD_11' {time} 5000 {flag} 1
goto @BLOOD_2537

:BLOOD_2518
print_with_number_now 'BLOD_12' {num} $blood_attempt {duration} 5000 {flag} 1

:BLOOD_2537
TIMERA = 0

:BLOOD_2544
if 
  5000 > TIMERA
goto_if_false @BLOOD_2574
wait 0
goto @BLOOD_2544

:BLOOD_2574
set_fixed_camera_position -1492.7 {y} 1029.5 {z} 1038.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1539.1 {y} 1032.3 {z} 1038.9 {switchStyle} SwitchType.JumpCut
print_now 'BLOD_03' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2648
if 
  5000 > TIMERA
goto_if_false @BLOOD_2678
wait 0
goto @BLOOD_2648

:BLOOD_2678
set_fixed_camera_position -1314.1 {y} 1040.6 {z} 1038.7 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1373.1 {y} 1047.2 {z} 1034.5 {switchStyle} SwitchType.JumpCut
print_now 'BLOD_02' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2752
if 
  5000 > TIMERA
goto_if_false @BLOOD_2782
wait 0
goto @BLOOD_2752

:BLOOD_2782
87@ = create_object #BB_PICKUP {x} -1345.2 {y} 978.7 {z} 1024.9
set_object_area_visible 87@ {areaId} 15
set_fixed_camera_position -1342.1 {y} 975.2 {z} 1026.6 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1345.2 {y} 979.7 {z} 1026.4 {switchStyle} SwitchType.JumpCut
print_now 'SPANNER' {time} 5000 {flag} 1
TIMERA = 0

:BLOOD_2886
if 
  5000 > TIMERA
goto_if_false @BLOOD_2988
wait 0
if 
  does_object_exist 87@
goto_if_false @BLOOD_2981
if 
  358.0 > 106@
goto_if_false @BLOOD_2971
106@ += 3.0
set_object_heading 87@ {heading} 106@
goto @BLOOD_2981

:BLOOD_2971
106@ = 0.0

:BLOOD_2981
goto @BLOOD_2886

:BLOOD_2988
skip_cutscene_end 
do_fade 500 {direction} Fade.Out

:BLOOD_2997
if 
  get_fading_status 
goto_if_false @BLOOD_3093
wait 0
if 
  does_object_exist 87@
goto_if_false @BLOOD_3086
if 
  358.0 > 106@
goto_if_false @BLOOD_3076
106@ += 3.0
set_object_heading 87@ {heading} 106@
goto @BLOOD_3086

:BLOOD_3076
106@ = 0.0

:BLOOD_3086
goto @BLOOD_2997

:BLOOD_3093
delete_checkpoint 89@
158@ = -1432.6
159@ = 1016.1
160@ = 1024.1
89@ = create_checkpoint CheckpointType.Tube {x} 158@ {y} 159@ {z} 160@ {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
90@ = add_blip_for_coord 158@ {y} 159@ {z} 160@
delete_object 87@
gosub @BLOOD_14433
clear_prints 
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:BLOOD_3207
if 
  get_fading_status 
goto_if_false @BLOOD_3231
wait 0
goto @BLOOD_3207

:BLOOD_3231
print_big 'RACE2' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
wait 1000
print_big 'RACE3' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
wait 1000
print_big 'RACE4' {time} 1100 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRace321
wait 1000
print_big 'RACE5' {time} 800 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAirHorn
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRaceGo
wait 800
clear_prints 
set_player_control $player1 {state} True
display_onscreen_timer $blood_players_current_time {direction} TimerDirection.Down
93@ = 0

:BLOOD_3438
if 
  16 > 93@
goto_if_false @BLOOD_3563
wait 0
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_3549
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_3549
set_car_forward_speed 35@(93@,16i) {forwardSpeed} 10.0
set_car_cruise_speed 35@(93@,16i) {maxSpeed} 100.0
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.GoForward {time} 5000

:BLOOD_3549
93@ += 1
goto @BLOOD_3438

:BLOOD_3563
wait 0
clear_wanted_level $player1
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @BLOOD_3594
goto @BLOOD_13113

:BLOOD_3594
if 
  91@ == 0
goto_if_false @BLOOD_12351
if 
  not is_car_dead 34@
goto_if_false @BLOOD_12351
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1530.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 923.0 {drawSphere} False
goto_if_false @BLOOD_3803
if 
  97@ == 0
goto_if_false @BLOOD_3796
if 
  not is_char_dead 52@
goto_if_false @BLOOD_3705
clear_char_tasks 52@

:BLOOD_3705
if 
  not is_char_dead 53@
goto_if_false @BLOOD_3726
clear_char_tasks 53@

:BLOOD_3726
if 
  not is_char_dead 67@
goto_if_false @BLOOD_3747
clear_char_tasks 67@

:BLOOD_3747
if 
  not is_char_dead 68@
goto_if_false @BLOOD_3768
clear_char_tasks 68@

:BLOOD_3768
if 
  not is_char_dead 69@
goto_if_false @BLOOD_3789
clear_char_tasks 69@

:BLOOD_3789
97@ = 1

:BLOOD_3796
goto @BLOOD_3933

:BLOOD_3803
if 
  97@ == 1
goto_if_false @BLOOD_3933
if 
  not is_char_dead 52@
goto_if_false @BLOOD_3842
clear_char_tasks 52@

:BLOOD_3842
if 
  not is_char_dead 53@
goto_if_false @BLOOD_3863
clear_char_tasks 53@

:BLOOD_3863
if 
  not is_char_dead 67@
goto_if_false @BLOOD_3884
clear_char_tasks 67@

:BLOOD_3884
if 
  not is_char_dead 68@
goto_if_false @BLOOD_3905
clear_char_tasks 68@

:BLOOD_3905
if 
  not is_char_dead 69@
goto_if_false @BLOOD_3926
clear_char_tasks 69@

:BLOOD_3926
97@ = 0

:BLOOD_3933
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1530.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 1076.0 {drawSphere} False
goto_if_false @BLOOD_4108
if 
  98@ == 0
goto_if_false @BLOOD_4101
if 
  not is_char_dead 55@
goto_if_false @BLOOD_4010
clear_char_tasks 55@

:BLOOD_4010
if 
  not is_char_dead 56@
goto_if_false @BLOOD_4031
clear_char_tasks 56@

:BLOOD_4031
if 
  not is_char_dead 70@
goto_if_false @BLOOD_4052
clear_char_tasks 70@

:BLOOD_4052
if 
  not is_char_dead 71@
goto_if_false @BLOOD_4073
clear_char_tasks 71@

:BLOOD_4073
if 
  not is_char_dead 72@
goto_if_false @BLOOD_4094
clear_char_tasks 72@

:BLOOD_4094
98@ = 1

:BLOOD_4101
goto @BLOOD_4238

:BLOOD_4108
if 
  98@ == 1
goto_if_false @BLOOD_4238
if 
  not is_char_dead 55@
goto_if_false @BLOOD_4147
clear_char_tasks 55@

:BLOOD_4147
if 
  not is_char_dead 56@
goto_if_false @BLOOD_4168
clear_char_tasks 56@

:BLOOD_4168
if 
  not is_char_dead 70@
goto_if_false @BLOOD_4189
clear_char_tasks 70@

:BLOOD_4189
if 
  not is_char_dead 71@
goto_if_false @BLOOD_4210
clear_char_tasks 71@

:BLOOD_4210
if 
  not is_char_dead 72@
goto_if_false @BLOOD_4231
clear_char_tasks 72@

:BLOOD_4231
98@ = 0

:BLOOD_4238
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1265.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 923.0 {drawSphere} False
goto_if_false @BLOOD_4413
if 
  99@ == 0
goto_if_false @BLOOD_4406
if 
  not is_char_dead 58@
goto_if_false @BLOOD_4315
clear_char_tasks 58@

:BLOOD_4315
if 
  not is_char_dead 59@
goto_if_false @BLOOD_4336
clear_char_tasks 59@

:BLOOD_4336
if 
  not is_char_dead 73@
goto_if_false @BLOOD_4357
clear_char_tasks 73@

:BLOOD_4357
if 
  not is_char_dead 74@
goto_if_false @BLOOD_4378
clear_char_tasks 74@

:BLOOD_4378
if 
  not is_char_dead 75@
goto_if_false @BLOOD_4399
clear_char_tasks 75@

:BLOOD_4399
99@ = 1

:BLOOD_4406
goto @BLOOD_4543

:BLOOD_4413
if 
  99@ == 1
goto_if_false @BLOOD_4543
if 
  not is_char_dead 58@
goto_if_false @BLOOD_4452
clear_char_tasks 58@

:BLOOD_4452
if 
  not is_char_dead 59@
goto_if_false @BLOOD_4473
clear_char_tasks 59@

:BLOOD_4473
if 
  not is_char_dead 73@
goto_if_false @BLOOD_4494
clear_char_tasks 73@

:BLOOD_4494
if 
  not is_char_dead 74@
goto_if_false @BLOOD_4515
clear_char_tasks 74@

:BLOOD_4515
if 
  not is_char_dead 75@
goto_if_false @BLOOD_4536
clear_char_tasks 75@

:BLOOD_4536
99@ = 0

:BLOOD_4543
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1265.0 {leftBottomY} 995.0 {rightTopX} -1384.0 {rightTopY} 1076.0 {drawSphere} False
goto_if_false @BLOOD_4718
if 
  100@ == 0
goto_if_false @BLOOD_4711
if 
  not is_char_dead 61@
goto_if_false @BLOOD_4620
clear_char_tasks 61@

:BLOOD_4620
if 
  not is_char_dead 62@
goto_if_false @BLOOD_4641
clear_char_tasks 62@

:BLOOD_4641
if 
  not is_char_dead 76@
goto_if_false @BLOOD_4662
clear_char_tasks 76@

:BLOOD_4662
if 
  not is_char_dead 77@
goto_if_false @BLOOD_4683
clear_char_tasks 77@

:BLOOD_4683
if 
  not is_char_dead 78@
goto_if_false @BLOOD_4704
clear_char_tasks 78@

:BLOOD_4704
100@ = 1

:BLOOD_4711
goto @BLOOD_4848

:BLOOD_4718
if 
  100@ == 1
goto_if_false @BLOOD_4848
if 
  not is_char_dead 61@
goto_if_false @BLOOD_4757
clear_char_tasks 61@

:BLOOD_4757
if 
  not is_char_dead 62@
goto_if_false @BLOOD_4778
clear_char_tasks 62@

:BLOOD_4778
if 
  not is_char_dead 76@
goto_if_false @BLOOD_4799
clear_char_tasks 76@

:BLOOD_4799
if 
  not is_char_dead 77@
goto_if_false @BLOOD_4820
clear_char_tasks 77@

:BLOOD_4820
if 
  not is_char_dead 78@
goto_if_false @BLOOD_4841
clear_char_tasks 78@

:BLOOD_4841
100@ = 0

:BLOOD_4848
if 
  16 > 93@
goto_if_false @BLOOD_11472
if 
  93@ == 0
goto_if_false @BLOOD_5608
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_5608
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_5327
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_5271
if 
  97@ == 0
goto_if_false @BLOOD_5152
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5152
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5152
173@ = generate_random_float_in_range -1530.0 {max} -1384.0
174@ = generate_random_float_in_range 995.0 {max} 923.0
175@ = get_ground_z_for_3d_coord 173@ {y} 174@ {z} 1078.7
if 
  1034.1 > 175@
goto_if_false @BLOOD_5152
if 
  175@ > 1022.8
goto_if_false @BLOOD_5152
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 173@ {y} 174@ {z} 175@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5152
if 
  97@ == 1
goto_if_false @BLOOD_5264
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5264
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5264
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5264
goto @BLOOD_5327

:BLOOD_5271
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5327
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_5327
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_5608
if 
  97@ == 0
goto_if_false @BLOOD_5517
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5517
if 
  not is_car_dead 36@
goto_if_false @BLOOD_5461
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 36@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_5517

:BLOOD_5461
if 
  not is_car_dead 37@
goto_if_false @BLOOD_5517
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 37@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_5517
if 
  97@ == 1
goto_if_false @BLOOD_5608
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5608
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_5608
if or
  93@ == 1
  93@ == 2
goto_if_false @BLOOD_6214
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_6214
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_5996
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_5940
if 
  97@ == 0
goto_if_false @BLOOD_5821
if 
  not is_car_dead 35@
goto_if_false @BLOOD_5821
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5821
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5821
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 35@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5821
if 
  97@ == 1
goto_if_false @BLOOD_5933
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5933
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5933
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_5933
goto @BLOOD_5996

:BLOOD_5940
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_5996
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_5996
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_6214
if 
  97@ == 0
goto_if_false @BLOOD_6123
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6123
if 
  not is_car_dead 35@
goto_if_false @BLOOD_6123
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 35@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_6123
if 
  97@ == 1
goto_if_false @BLOOD_6214
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6214
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_6214
if 
  93@ == 3
goto_if_false @BLOOD_6956
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_6956
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_6675
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_6619
if 
  98@ == 0
goto_if_false @BLOOD_6500
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6500
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6500
176@ = generate_random_float_in_range -1530.0 {max} -1384.0
177@ = generate_random_float_in_range 995.0 {max} 1056.0
178@ = get_ground_z_for_3d_coord 176@ {y} 177@ {z} 1078.7
if 
  1034.1 > 178@
goto_if_false @BLOOD_6500
if 
  178@ > 1022.8
goto_if_false @BLOOD_6500
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 176@ {y} 177@ {z} 178@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_6500
if 
  98@ == 1
goto_if_false @BLOOD_6612
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6612
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6612
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_6612
goto @BLOOD_6675

:BLOOD_6619
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6675
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_6675
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_6956
if 
  98@ == 0
goto_if_false @BLOOD_6865
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6865
if 
  not is_car_dead 39@
goto_if_false @BLOOD_6809
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 39@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_6865

:BLOOD_6809
if 
  not is_car_dead 40@
goto_if_false @BLOOD_6865
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 40@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_6865
if 
  98@ == 1
goto_if_false @BLOOD_6956
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_6956
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_6956
if or
  93@ == 4
  93@ == 5
goto_if_false @BLOOD_7562
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_7562
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_7344
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_7288
if 
  98@ == 0
goto_if_false @BLOOD_7169
if 
  not is_car_dead 38@
goto_if_false @BLOOD_7169
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7169
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7169
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 38@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7169
if 
  98@ == 1
goto_if_false @BLOOD_7281
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7281
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7281
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7281
goto @BLOOD_7344

:BLOOD_7288
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7344
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_7344
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_7562
if 
  98@ == 0
goto_if_false @BLOOD_7471
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7471
if 
  not is_car_dead 38@
goto_if_false @BLOOD_7471
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 38@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_7471
if 
  98@ == 1
goto_if_false @BLOOD_7562
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7562
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_7562
if 
  93@ == 6
goto_if_false @BLOOD_8304
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_8304
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_8023
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_7967
if 
  99@ == 0
goto_if_false @BLOOD_7848
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7848
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7848
179@ = generate_random_float_in_range -1265.0 {max} -1384.0
180@ = generate_random_float_in_range 995.0 {max} 923.0
181@ = get_ground_z_for_3d_coord 179@ {y} 180@ {z} 1078.7
if 
  1034.1 > 181@
goto_if_false @BLOOD_7848
if 
  181@ > 1022.8
goto_if_false @BLOOD_7848
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 179@ {y} 180@ {z} 181@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7848
if 
  99@ == 1
goto_if_false @BLOOD_7960
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7960
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_7960
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_7960
goto @BLOOD_8023

:BLOOD_7967
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8023
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_8023
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_8304
if 
  99@ == 0
goto_if_false @BLOOD_8213
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8213
if 
  not is_car_dead 42@
goto_if_false @BLOOD_8157
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 42@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_8213

:BLOOD_8157
if 
  not is_car_dead 43@
goto_if_false @BLOOD_8213
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 43@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_8213
if 
  99@ == 1
goto_if_false @BLOOD_8304
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8304
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_8304
if or
  93@ == 7
  93@ == 8
goto_if_false @BLOOD_8910
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_8910
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_8692
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_8636
if 
  99@ == 0
goto_if_false @BLOOD_8517
if 
  not is_car_dead 41@
goto_if_false @BLOOD_8517
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8517
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8517
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 41@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_8517
if 
  99@ == 1
goto_if_false @BLOOD_8629
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8629
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8629
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_8629
goto @BLOOD_8692

:BLOOD_8636
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8692
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_8692
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_8910
if 
  99@ == 0
goto_if_false @BLOOD_8819
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8819
if 
  not is_car_dead 41@
goto_if_false @BLOOD_8819
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 41@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_8819
if 
  99@ == 1
goto_if_false @BLOOD_8910
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_8910
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_8910
if 
  93@ == 9
goto_if_false @BLOOD_9652
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_9652
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_9371
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_9315
if 
  100@ == 0
goto_if_false @BLOOD_9196
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9196
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9196
182@ = generate_random_float_in_range -1265.0 {max} -1384.0
183@ = generate_random_float_in_range 995.0 {max} 1056.0
184@ = get_ground_z_for_3d_coord 182@ {y} 183@ {z} 1078.7
if 
  1034.1 > 184@
goto_if_false @BLOOD_9196
if 
  184@ > 1022.8
goto_if_false @BLOOD_9196
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 182@ {y} 183@ {z} 184@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9196
if 
  100@ == 1
goto_if_false @BLOOD_9308
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9308
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9308
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9308
goto @BLOOD_9371

:BLOOD_9315
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9371
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_9371
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_9652
if 
  100@ == 0
goto_if_false @BLOOD_9561
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9561
if 
  not is_car_dead 45@
goto_if_false @BLOOD_9505
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 45@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50
goto @BLOOD_9561

:BLOOD_9505
if 
  not is_car_dead 46@
goto_if_false @BLOOD_9561
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 46@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_9561
if 
  100@ == 1
goto_if_false @BLOOD_9652
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9652
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_9652
if or
  93@ == 10
  93@ == 11
goto_if_false @BLOOD_10258
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_10258
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_10040
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_9984
if 
  100@ == 0
goto_if_false @BLOOD_9865
if 
  not is_car_dead 44@
goto_if_false @BLOOD_9865
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9865
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9865
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 44@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9865
if 
  100@ == 1
goto_if_false @BLOOD_9977
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9977
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_9977
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_9977
goto @BLOOD_10040

:BLOOD_9984
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10040
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_10040
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_10258
if 
  100@ == 0
goto_if_false @BLOOD_10167
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10167
if 
  not is_car_dead 44@
goto_if_false @BLOOD_10167
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 44@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_10167
if 
  100@ == 1
goto_if_false @BLOOD_10258
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10258
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 25

:BLOOD_10258
if or
  93@ == 12
  93@ == 13
goto_if_false @BLOOD_10593
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_10593
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_10500
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_10444
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1761
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10437
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10437
task_car_mission 51@(93@,16i) {vehicle} 35@(93@,16i) {targetVehicle} 34@ {missionId} CarMission.BlockCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_10437
goto @BLOOD_10500

:BLOOD_10444
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10500
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_10500
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_10593
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10593
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 34@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 40

:BLOOD_10593
if or
  93@ == 14
  93@ == 15
goto_if_false @BLOOD_11090
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_11090
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_10843
if 
  not is_car_on_fire 35@(93@,16i)
goto_if_false @BLOOD_10787
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1489
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10780
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10780
task_car_drive_to_coord 51@(93@,16i) {vehicle} 35@(93@,16i) {x} 158@ {y} 159@ {z} 160@ {speed} 100.0 {driveStyle} DriveMode.Straightline {modelId} 0 {drivingStyle} DrivingMode.PloughThrough

:BLOOD_10780
goto @BLOOD_10843

:BLOOD_10787
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_10843
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:BLOOD_10843
if 
  not is_char_dead 67@(93@,16i)
goto_if_false @BLOOD_11090
$task_status = get_script_task_status 67@(93@,16i) {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_11090
set_lvar_int_to_lvar_int 88@ = 35@(93@,16i)
if 
  93@ == 14
goto_if_false @BLOOD_10999
gosub @BLOOD_16758
set_lvar_int_to_lvar_int 84@ = 95@
if 
  84@ <> -1
goto_if_false @BLOOD_10999
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 84@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_10999
if 
  93@ == 15
goto_if_false @BLOOD_11090
gosub @BLOOD_16758
set_lvar_int_to_lvar_int 85@ = 95@
if 
  85@ <> -1
goto_if_false @BLOOD_11090
task_drive_by 67@(93@,16i) {targetChar} -1 {targetVehicle} 85@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 50

:BLOOD_11090
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_11199
if 
  not is_char_dead 83@
goto_if_false @BLOOD_11199
if or
  has_car_been_damaged_by_char 35@(93@,16i) {handle} 83@
  has_car_been_damaged_by_char 35@(93@,16i) {handle} $scplayer
goto_if_false @BLOOD_11179
112@(93@,16i) = 1
goto @BLOOD_11190

:BLOOD_11179
112@(93@,16i) = 0

:BLOOD_11190
clear_car_last_damage_entity 35@(93@,16i)

:BLOOD_11199
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_11411
if 
  not is_char_dead 51@(93@,16i)
goto_if_false @BLOOD_11404
if 
  is_car_upsidedown 35@(93@,16i)
goto_if_false @BLOOD_11330
if 
  not locate_char_any_means_car_2d $scplayer {vehicle} 35@(93@,16i) {xRadius} 7.0 {yRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11330
167@, 168@, 169@ = get_car_coordinates 35@(93@,16i)
set_car_coordinates 35@(93@,16i) {x} 167@ {y} 168@ {z} 169@

:BLOOD_11330
if 
  is_car_stuck 35@(93@,16i)
goto_if_false @BLOOD_11404
$task_status = get_script_task_status 51@(93@,16i) {taskId} 1735
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_11404
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.Reverse {time} 3000

:BLOOD_11404
goto @BLOOD_11458

:BLOOD_11411
if 
  112@(93@,16i) == 1
goto_if_false @BLOOD_11440
111@ += 1

:BLOOD_11440
112@(93@,16i) = 0
gosub @BLOOD_14585

:BLOOD_11458
93@ += 1
goto @BLOOD_11479

:BLOOD_11472
93@ = 0

:BLOOD_11479
if 
  not is_car_dead 47@
goto_if_false @BLOOD_11544
if 
  locate_car_3d 47@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11544
gosub @BLOOD_14254

:BLOOD_11544
if 
  not is_car_dead 48@
goto_if_false @BLOOD_11609
if 
  locate_car_3d 48@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11609
gosub @BLOOD_14254

:BLOOD_11609
if 
  not is_car_dead 49@
goto_if_false @BLOOD_11674
if 
  locate_car_3d 49@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11674
gosub @BLOOD_14254

:BLOOD_11674
if 
  not is_car_dead 50@
goto_if_false @BLOOD_11739
if 
  locate_car_3d 50@ {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_11739
gosub @BLOOD_14254

:BLOOD_11739
if 
  does_object_exist 87@
goto_if_false @BLOOD_11927
if 
  locate_char_any_means_object_2d $scplayer {object} 87@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @BLOOD_11864
delete_object 87@
96@ = get_car_health 34@
if 
  999 > 96@
goto_if_false @BLOOD_11841
96@ += 500
set_car_health 34@ {health} 96@
goto @BLOOD_11857

:BLOOD_11841
96@ = 1500
set_car_health 34@ {health} 96@

:BLOOD_11857
goto @BLOOD_11920

:BLOOD_11864
if 
  358.0 > 106@
goto_if_false @BLOOD_11910
106@ += 3.0
set_object_heading 87@ {heading} 106@
goto @BLOOD_11920

:BLOOD_11910
106@ = 0.0

:BLOOD_11920
goto @BLOOD_11934

:BLOOD_11927
gosub @BLOOD_14433

:BLOOD_11934
if 
  locate_char_any_means_3d $scplayer {x} 158@ {y} 159@ {z} 160@ {xRadius} 7.0 {yRadius} 7.0 {zRadius} 7.0 {drawSphere} False
goto_if_false @BLOOD_12095
if 
  $blood_players_current_time > 0
goto_if_false @BLOOD_12095
96@ = get_car_health 34@
if 
  1199 > 96@
goto_if_false @BLOOD_12044
96@ += 300
set_car_health 34@ {health} 96@
goto @BLOOD_12060

:BLOOD_12044
96@ = 1500
set_car_health 34@ {health} 96@

:BLOOD_12060
$blood_players_current_time += 15000
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
gosub @BLOOD_14254

:BLOOD_12095
if 
  is_car_upsidedown 34@
goto_if_false @BLOOD_12171
if 
  is_car_stopped 34@
goto_if_false @BLOOD_12171
167@, 168@, 169@ = get_car_coordinates 34@
157@ = get_car_heading 34@
set_car_coordinates 34@ {x} 167@ {y} 168@ {z} 169@
set_car_heading 34@ {heading} 157@

:BLOOD_12171
if 
  not is_char_dead 83@
goto_if_false @BLOOD_12293
$task_status = get_script_task_status 83@ {taskId} 1811
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @BLOOD_12293
set_lvar_int_to_lvar_int 88@ = 34@
gosub @BLOOD_16758
set_lvar_int_to_lvar_int 86@ = 95@
if 
  86@ <> -1
goto_if_false @BLOOD_12293
task_drive_by 83@ {targetChar} -1 {targetVehicle} 86@ {x} 0.0 {y} 0.0 {z} 0.0 {radius} 30.0 {type} DriveByType.Ai {rightHandCarSeat} False {fireRate} 100

:BLOOD_12293
gosub @BLOOD_17486
if 
  is_int_var_greater_than_int_var $blood_players_current_time > $blood_time_to_beat
goto_if_false @BLOOD_12326
91@ = 1

:BLOOD_12326
if 
  0 >= $blood_players_current_time
goto_if_false @BLOOD_12351
91@ = 2

:BLOOD_12351
if 
  91@ == 1
goto_if_false @BLOOD_12754
set_player_control $player1 {state} False
switch_widescreen True
play_mission_passed_tune 1
93@ = 0

:BLOOD_12391
if 
  16 > 93@
goto_if_false @BLOOD_12458
wait 0
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_12444
freeze_car_position 35@(93@,16i) {state} True

:BLOOD_12444
93@ += 1
goto @BLOOD_12391

:BLOOD_12458
gosub @BLOOD_17032
set_lvar_int_to_var_int 109@ = $blood_attempt
109@ *= 60
increment_int_stat StatId.BloodringTime {value} 109@
increment_int_stat StatId.BloodringKills {value} 111@
$blood_attempt += 1
$blood_time_to_beat += 60000
TIMERA = 0

:BLOOD_12520
if 
  5000 > TIMERA
goto_if_false @BLOOD_12550
wait 0
goto @BLOOD_12520

:BLOOD_12550
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:BLOOD_12565
if 
  get_fading_status 
goto_if_false @BLOOD_12589
wait 0
goto @BLOOD_12565

:BLOOD_12589
switch_widescreen False
delete_menu 110@
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
request_collision -2126.3 {y} -440.6
load_scene_in_direction -2119.0 {y} -440.7 {z} 34.5 {heading} 82.6
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2126.3 {y} -440.6 {z} 34.5
set_char_heading $scplayer {heading} 82.7
clear_onscreen_timer $blood_players_current_time
remove_blip 90@
delete_checkpoint 89@
hide_all_frontend_blips False
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In

:BLOOD_12716
if 
  get_fading_status 
goto_if_false @BLOOD_12740
wait 0
goto @BLOOD_12716

:BLOOD_12740
set_player_control $player1 {state} True
goto @BLOOD_13113

:BLOOD_12754
if 
  91@ == 2
goto_if_false @BLOOD_13088
set_player_control $player1 {state} False
93@ = 0

:BLOOD_12786
if 
  16 > 93@
goto_if_false @BLOOD_12853
wait 0
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_12839
freeze_car_position 35@(93@,16i) {state} True

:BLOOD_12839
93@ += 1
goto @BLOOD_12786

:BLOOD_12853
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:BLOOD_12868
if 
  get_fading_status 
goto_if_false @BLOOD_12892
wait 0
goto @BLOOD_12868

:BLOOD_12892
switch_widescreen False
clear_prints 
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
print_now 'BLOD_05' {time} 5000 {flag} 1
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
request_collision -2126.3 {y} -440.6
load_scene_in_direction -2119.0 {y} -440.7 {z} 34.5 {heading} 82.6
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} -2126.3 {y} -440.6 {z} 34.5
set_char_heading $scplayer {heading} 82.7
clear_onscreen_timer $blood_players_current_time
remove_blip 90@
delete_checkpoint 89@
hide_all_frontend_blips False
cancel_override_restart 
set_camera_behind_player 
restore_camera_jumpcut 
set_fading_colour 0 {g} 0 {b} 0
do_fade 500 {direction} Fade.In

:BLOOD_13050
if 
  get_fading_status 
goto_if_false @BLOOD_13074
wait 0
goto @BLOOD_13050

:BLOOD_13074
set_player_control $player1 {state} True
goto @BLOOD_13095

:BLOOD_13088
goto @BLOOD_3563

:BLOOD_13095
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:BLOOD_13113
cancel_override_restart 
set_free_health_care $player1 {state} False
clear_prints 
clear_wanted_level $player1
if 
  $blood_passed_once == 0
goto_if_false @BLOOD_13198
register_oddjob_mission_passed 
player_made_progress 1
switch_car_generator $f1_blood_car_gen {amount} 101
play_mission_passed_tune 2
print_with_number_big 'M_PASS' {num} 10000 {duration} 5000 {style} TextStyle.Middle
add_score $player1 {money} 10000
$blood_passed_once = 1

:BLOOD_13198
return 

:BLOOD_13200
if 
  is_var_text_label_empty s$shop_name
goto_if_false @BLOOD_13218
restore_camera_jumpcut 

:BLOOD_13218
clear_extra_colours False
remove_blip 90@
clear_onscreen_timer $blood_players_current_time
if 
  not is_char_dead $scplayer
goto_if_false @BLOOD_13255
shut_char_up_for_scripted_speech $scplayer {state} False

:BLOOD_13255
shut_all_chars_up False
use_text_commands False
mark_model_as_no_longer_needed 504
mark_model_as_no_longer_needed 439
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed #BB_PICKUP
set_char_ammo $scplayer {weaponType} WeaponType.Mp5 {ammo} 103@
delete_checkpoint 89@
dont_suppress_any_car_models 
force_all_vehicle_lights_off False
hide_all_frontend_blips False
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

:BLOOD_13324
if 
  93@ == 0
goto_if_false @BLOOD_13382
154@ = -1285.77
155@ = 1014.54
156@ = 1036.5
157@ = 104.4

:BLOOD_13382
if 
  93@ == 1
goto_if_false @BLOOD_13440
154@ = -1299.5
155@ = 1030.74
156@ = 1036.8
157@ = 132.6

:BLOOD_13440
if 
  93@ == 2
goto_if_false @BLOOD_13498
154@ = -1319.3
155@ = 1042.8199
156@ = 1037.1
157@ = 135.4

:BLOOD_13498
if 
  93@ == 3
goto_if_false @BLOOD_13556
154@ = -1349.33
155@ = 1054.47
156@ = 1037.3
157@ = 155.4

:BLOOD_13556
if 
  93@ == 4
goto_if_false @BLOOD_13614
154@ = -1384.33
155@ = 1058.55
156@ = 1037.5
157@ = 173.2

:BLOOD_13614
if 
  93@ == 5
goto_if_false @BLOOD_13672
154@ = -1296.7
155@ = 960.2
156@ = 1035.6
157@ = 60.5

:BLOOD_13672
if 
  93@ == 6
goto_if_false @BLOOD_13730
154@ = -1418.77
155@ = 1057.54
156@ = 1037.5
157@ = 180.4

:BLOOD_13730
if 
  93@ == 7
goto_if_false @BLOOD_13788
154@ = -1460.3
155@ = 1050.3
156@ = 1037.5
157@ = 203.9

:BLOOD_13788
if 
  93@ == 8
goto_if_false @BLOOD_13846
154@ = -1499.77
155@ = 1029.54
156@ = 1037.2
157@ = 242.4

:BLOOD_13846
if 
  93@ == 9
goto_if_false @BLOOD_13904
154@ = -1513.77
155@ = 986.54
156@ = 1036.5
157@ = 271.4

:BLOOD_13904
if 
  93@ == 10
goto_if_false @BLOOD_13962
154@ = -1496.77
155@ = 959.54
156@ = 1036.0
157@ = 293.4

:BLOOD_13962
if 
  93@ == 11
goto_if_false @BLOOD_14020
154@ = -1461.84
155@ = 938.32
156@ = 1035.3
157@ = 345.6

:BLOOD_14020
if 
  93@ == 12
goto_if_false @BLOOD_14078
154@ = -1424.36
155@ = 931.29
156@ = 1035.2
157@ = 0.0

:BLOOD_14078
if 
  93@ == 13
goto_if_false @BLOOD_14136
154@ = -1363.77
155@ = 932.44
156@ = 1035.3
157@ = 17.85

:BLOOD_14136
if 
  93@ == 14
goto_if_false @BLOOD_14194
154@ = -1332.77
155@ = 940.3
156@ = 1037.0
157@ = 39.98

:BLOOD_14194
if 
  93@ == 15
goto_if_false @BLOOD_14252
154@ = -1443.29
155@ = 933.86
156@ = 1035.3
157@ = 351.4

:BLOOD_14252
return 

:BLOOD_14254
158@ = generate_random_float_in_range -1290.0 {max} -1508.0
159@ = generate_random_float_in_range 939.0 {max} 1052.0
160@ = get_ground_z_for_3d_coord 158@ {y} 159@ {z} 1056.7
if 
  160@ > 1034.1
goto_if_false @BLOOD_14328
goto @BLOOD_14254

:BLOOD_14328
if 
  1022.8 > 160@
goto_if_false @BLOOD_14356
goto @BLOOD_14254

:BLOOD_14356
remove_blip 90@
90@ = add_blip_for_coord 158@ {y} 159@ {z} 160@
if 
  not is_char_dead 65@
goto_if_false @BLOOD_14396
clear_char_tasks 65@

:BLOOD_14396
if 
  not is_char_dead 66@
goto_if_false @BLOOD_14417
clear_char_tasks 66@

:BLOOD_14417
set_checkpoint_coords 89@ {x} 158@ {y} 159@ {z} 160@
return 

:BLOOD_14433
170@ = generate_random_float_in_range -1290.0 {max} -1508.0
171@ = generate_random_float_in_range 939.0 {max} 1052.0
172@ = get_ground_z_for_3d_coord 170@ {y} 171@ {z} 1056.7
if 
  172@ > 1034.1
goto_if_false @BLOOD_14507
goto @BLOOD_14433

:BLOOD_14507
if 
  1022.8 > 172@
goto_if_false @BLOOD_14535
goto @BLOOD_14433

:BLOOD_14535
172@ += 0.5
87@ = create_object #BB_PICKUP {x} 170@ {y} 171@ {z} 172@
set_object_area_visible 87@ {areaId} 15
set_object_collision 87@ {state} False
set_object_dynamic 87@ {state} False
return 

:BLOOD_14585
gosub @BLOOD_15056
if 
  102@ <> -1
goto_if_false @BLOOD_15054
remove_stuck_car_check 35@(93@,16i)
mark_car_as_no_longer_needed 35@(93@,16i)
mark_char_as_no_longer_needed 51@(93@,16i)
mark_char_as_no_longer_needed 67@(93@,16i)
104@, 105@ = get_random_car_model_in_memory True
if 
  104@ >= 0
goto_if_false @BLOOD_14722
set_lvar_int_to_lvar_int 108@ = 104@
gosub @BLOOD_15527
create_car 104@ {x} 154@ {y} 155@ {z} 156@ {var_handle} 35@(93@,16i)
set_car_heading 35@(93@,16i) {heading} 157@

:BLOOD_14722
if 
  not is_car_dead 35@(93@,16i)
goto_if_false @BLOOD_15054
set_load_collision_for_car_flag 35@(93@,16i) {state} True
set_car_straight_line_distance 35@(93@,16i) {distance} 255
set_can_burst_car_tyres 35@(93@,16i) {state} False
create_random_char_as_driver 35@(93@,16i) {var_handle} 51@(93@,16i)
set_char_area_visible 51@(93@,16i) {areaId} 15
set_char_decision_maker 51@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 51@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_load_collision_for_char_flag 51@(93@,16i) {state} True
101@ = get_maximum_number_of_passengers 35@(93@,16i)
if 
  101@ > 0
goto_if_false @BLOOD_14938
create_random_char_as_passenger 35@(93@,16i) {seat} SeatId.BikeRear {var_handle} 67@(93@,16i)
set_char_decision_maker 67@(93@,16i) {handleOrTemplate} 185@
set_char_proofs 67@(93@,16i) {bulletProof} True {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
give_weapon_to_char 67@(93@,16i) {weaponType} WeaponType.Mp5 {ammo} 30000

:BLOOD_14938
if 
  is_char_on_any_bike 51@(93@,16i)
goto_if_false @BLOOD_14980
set_char_can_be_knocked_off_bike 51@(93@,16i) {stayOnBike} True
set_char_can_be_knocked_off_bike 67@(93@,16i) {stayOnBike} True

:BLOOD_14980
add_stuck_car_check 35@(93@,16i) {distance} 1.0 {time} 3000
set_upsidedown_car_not_damaged 35@(93@,16i) {state} True
set_vehicle_area_visible 35@(93@,16i) {interiorId} 15
set_car_forward_speed 35@(93@,16i) {forwardSpeed} 25.0
task_car_temp_action 51@(93@,16i) {vehicle} 35@(93@,16i) {actionId} TempAction.GoForward {time} 3000

:BLOOD_15054
return 

:BLOOD_15056
102@ = generate_random_int_in_range 1 {max} 4
if 
  102@ == 1
goto_if_false @BLOOD_15180
if 
  not is_point_obscured_by_a_mission_entity -1461.84 {y} 938.32 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15173
154@ = -1461.84
155@ = 938.32
156@ = 1035.0
157@ = 345.6
goto @BLOOD_15180

:BLOOD_15173
102@ = 2

:BLOOD_15180
if 
  102@ == 2
goto_if_false @BLOOD_15295
if 
  not is_point_obscured_by_a_mission_entity -1424.36 {y} 933.86 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15288
154@ = -1424.36
155@ = 933.86
156@ = 1035.0
157@ = 0.0
goto @BLOOD_15295

:BLOOD_15288
102@ = 3

:BLOOD_15295
if 
  102@ == 3
goto_if_false @BLOOD_15410
if 
  not is_point_obscured_by_a_mission_entity -1443.29 {y} 931.29 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15403
154@ = -1443.29
155@ = 931.29
156@ = 1035.0
157@ = 351.4
goto @BLOOD_15410

:BLOOD_15403
102@ = 1

:BLOOD_15410
if 
  102@ == 1
goto_if_false @BLOOD_15525
if 
  not is_point_obscured_by_a_mission_entity -1461.84 {y} 938.32 {z} 1035.0 {radiusX} 5.0 {radiusY} 5.0 {radiusZ} 5.0
goto_if_false @BLOOD_15518
154@ = -1461.84
155@ = 938.32
156@ = 1035.0
157@ = 345.6
goto @BLOOD_15525

:BLOOD_15518
102@ = -1

:BLOOD_15525
return 

:BLOOD_15527
107@ = generate_random_int_in_range 1 {max} 37
if 
  107@ == 1
goto_if_false @BLOOD_15569
custom_plate_for_next_car 108@ {text} "GOT_M00_"

:BLOOD_15569
if 
  107@ == 2
goto_if_false @BLOOD_15602
custom_plate_for_next_car 108@ {text} "M00TV_4U"

:BLOOD_15602
if 
  107@ == 3
goto_if_false @BLOOD_15635
custom_plate_for_next_car 108@ {text} "MATHEW_2"

:BLOOD_15635
if 
  107@ == 4
goto_if_false @BLOOD_15668
custom_plate_for_next_car 108@ {text} "D4_DEW0R"

:BLOOD_15668
if 
  107@ == 5
goto_if_false @BLOOD_15701
custom_plate_for_next_car 108@ {text} "D0DE_777"

:BLOOD_15701
if 
  107@ == 6
goto_if_false @BLOOD_15734
custom_plate_for_next_car 108@ {text} "DAM0_666"

:BLOOD_15734
if 
  107@ == 7
goto_if_false @BLOOD_15767
custom_plate_for_next_car 108@ {text} "C0NEY_88"

:BLOOD_15767
if 
  107@ == 8
goto_if_false @BLOOD_15800
custom_plate_for_next_car 108@ {text} "PRE4CHER"

:BLOOD_15800
if 
  107@ == 9
goto_if_false @BLOOD_15833
custom_plate_for_next_car 108@ {text} "DBP_4NDY"

:BLOOD_15833
if 
  107@ == 10
goto_if_false @BLOOD_15866
custom_plate_for_next_car 108@ {text} "EV1L_SLY"

:BLOOD_15866
if 
  107@ == 11
goto_if_false @BLOOD_15899
custom_plate_for_next_car 108@ {text} "N1_R4V3N"

:BLOOD_15899
if 
  107@ == 12
goto_if_false @BLOOD_15932
custom_plate_for_next_car 108@ {text} "D1VX_Z00"

:BLOOD_15932
if 
  107@ == 13
goto_if_false @BLOOD_15964
custom_plate_for_next_car 108@ {text} "MR_B3NN"

:BLOOD_15964
if 
  107@ == 14
goto_if_false @BLOOD_15997
custom_plate_for_next_car 108@ {text} "R3D_R4SP"

:BLOOD_15997
if 
  107@ == 15
goto_if_false @BLOOD_16030
custom_plate_for_next_car 108@ {text} "LA_B0MBA"

:BLOOD_16030
if 
  107@ == 16
goto_if_false @BLOOD_16063
custom_plate_for_next_car 108@ {text} "L3337_0G"

:BLOOD_16063
if 
  107@ == 17
goto_if_false @BLOOD_16096
custom_plate_for_next_car 108@ {text} "BUDD4H_X"

:BLOOD_16096
if 
  107@ == 18
goto_if_false @BLOOD_16129
custom_plate_for_next_car 108@ {text} "T3H_BUCK"

:BLOOD_16129
if 
  107@ == 19
goto_if_false @BLOOD_16162
custom_plate_for_next_car 108@ {text} "CHUNKY_1"

:BLOOD_16162
if 
  107@ == 20
goto_if_false @BLOOD_16195
custom_plate_for_next_car 108@ {text} "EV1L_BNZ"

:BLOOD_16195
if 
  107@ == 21
goto_if_false @BLOOD_16228
custom_plate_for_next_car 108@ {text} "S4ND_M4N"

:BLOOD_16228
if 
  107@ == 22
goto_if_false @BLOOD_16261
custom_plate_for_next_car 108@ {text} "RKK_DBP1"

:BLOOD_16261
if 
  107@ == 23
goto_if_false @BLOOD_16294
custom_plate_for_next_car 108@ {text} "RE1_K0KU"

:BLOOD_16294
if 
  107@ == 24
goto_if_false @BLOOD_16327
custom_plate_for_next_car 108@ {text} "S3XY_JUD"

:BLOOD_16327
if 
  107@ == 25
goto_if_false @BLOOD_16360
custom_plate_for_next_car 108@ {text} "SUNRA_93"

:BLOOD_16360
if 
  107@ == 26
goto_if_false @BLOOD_16393
custom_plate_for_next_car 108@ {text} "UG_FUX69"

:BLOOD_16393
if 
  107@ == 27
goto_if_false @BLOOD_16426
custom_plate_for_next_car 108@ {text} "LI0N_CUM"

:BLOOD_16426
if 
  107@ == 28
goto_if_false @BLOOD_16459
custom_plate_for_next_car 108@ {text} "RKK_PWND"

:BLOOD_16459
if 
  107@ == 29
goto_if_false @BLOOD_16492
custom_plate_for_next_car 108@ {text} "HAZE_B0B"

:BLOOD_16492
if 
  107@ == 30
goto_if_false @BLOOD_16525
custom_plate_for_next_car 108@ {text} "T3H_FLUF"

:BLOOD_16525
if 
  107@ == 31
goto_if_false @BLOOD_16558
custom_plate_for_next_car 108@ {text} "BM_4NDY_"

:BLOOD_16558
if 
  107@ == 32
goto_if_false @BLOOD_16591
custom_plate_for_next_car 108@ {text} "BM_D34N_"

:BLOOD_16591
if 
  107@ == 33
goto_if_false @BLOOD_16624
custom_plate_for_next_car 108@ {text} "BM_L4C3Y"

:BLOOD_16624
if 
  107@ == 34
goto_if_false @BLOOD_16657
custom_plate_for_next_car 108@ {text} "BM_D3V__"

:BLOOD_16657
if 
  107@ == 35
goto_if_false @BLOOD_16690
custom_plate_for_next_car 108@ {text} "NU_SK00L"

:BLOOD_16690
if 
  107@ == 36
goto_if_false @BLOOD_16723
custom_plate_for_next_car 108@ {text} "G4L_AVET"

:BLOOD_16723
if 
  107@ == 37
goto_if_false @BLOOD_16756
custom_plate_for_next_car 108@ {text} "M0J0_J0J"

:BLOOD_16756
return 

:BLOOD_16758
161@, 162@, $z = get_car_coordinates 88@
94@ = 0
165@ = 99999.0
95@ = -1

:BLOOD_16796
if 
  16 > 94@
goto_if_false @BLOOD_16945
if 
  not is_int_lvar_equal_to_int_lvar 88@ == 35@(94@,16i)
goto_if_false @BLOOD_16931
if 
  not is_car_dead 35@(94@,16i)
goto_if_false @BLOOD_16931
163@, 164@, $z = get_car_coordinates 35@(94@,16i)
166@ = get_distance_between_coords_2d 161@ {fromY} 162@ {toX} 163@ {toZ} 164@
if 
  is_float_lvar_greater_than_float_lvar 165@ > 166@
goto_if_false @BLOOD_16931
set_lvar_float_to_lvar_float 165@ = 166@
set_lvar_int_to_lvar_int 95@ = 35@(94@,16i)

:BLOOD_16931
94@ += 1
goto @BLOOD_16796

:BLOOD_16945
if 
  not is_int_lvar_equal_to_int_lvar 88@ == 34@
goto_if_false @BLOOD_17030
163@, 164@, $z = get_car_coordinates 34@
166@ = get_distance_between_coords_2d 161@ {fromY} 162@ {toX} 163@ {toZ} 164@
if 
  is_float_lvar_greater_than_float_lvar 165@ > 166@
goto_if_false @BLOOD_17030
set_lvar_float_to_lvar_float 165@ = 166@
set_lvar_int_to_lvar_int 95@ = 34@

:BLOOD_17030
return 

:BLOOD_17032
if 
  not is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BLOOD_17094
110@ = create_menu 'BLOD_06' {topLeftX} 190.0 {topLeftY} 141.0 {width} 120.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BLOOD_17131

:BLOOD_17094
110@ = create_menu 'BLOD_06' {topLeftX} 190.0 {topLeftY} 141.0 {width} 150.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:BLOOD_17131
set_menu_column 110@ {column} 0 {title} 'DUMMY' {row0} 'BLOD_07' {row1} 'BLOD_08' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column 110@ {column} 1 {title} 'DUMMY' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number 110@ {column} 1 {row} 0 {gxt} 'BLOD_09' {number} $blood_attempt
set_menu_item_with_number 110@ {column} 1 {row} 1 {gxt} 'BLOD_09' {number} 111@
if 
  not is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BLOOD_17465
set_menu_column_width 110@ {column} 0 {width} 200
set_menu_column_width 110@ {column} 1 {width} 40
goto @BLOOD_17484

:BLOOD_17465
set_menu_column_width 110@ {column} 0 {width} 260
set_menu_column_width 110@ {column} 1 {width} 40

:BLOOD_17484
return 

:BLOOD_17486
if 
  129@ == 0
goto_if_false @BLOOD_17549
128@ = generate_random_int_in_range 8000 {max} 16000
130@ = generate_random_int_in_range 1 {max} 22
load_mission_audio MissionAudioSlot.Slot4 {audioId} 131@(130@,23i)
TIMERB = 0
129@ = 1

:BLOOD_17549
if 
  129@ == 1
goto_if_false @BLOOD_17589
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BLOOD_17589
129@ = 2

:BLOOD_17589
if 
  129@ == 2
goto_if_false @BLOOD_17637
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 128@
goto_if_false @BLOOD_17637
play_mission_audio MissionAudioSlot.Slot4
129@ = 3

:BLOOD_17637
if 
  129@ == 3
goto_if_false @BLOOD_17677
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @BLOOD_17677
129@ = 0

:BLOOD_17677
return 

//-------------Mission 129---------------
// Originally: Arena Mission: Kickstart

:KICKSTA
script_name 'KICKSTA'
gosub @KICKSTA_54
if 
  has_deatharrest_been_executed 
goto_if_false @KICKSTA_38
gosub @KICKSTA_7448

:KICKSTA_38
gosub @KICKSTA_7590
terminate_this_script 
49@ = 0

:KICKSTA_54
clear_this_print_big_now TextStyle.Middle
$onmission = 1
48@ = 0
249@ = 1.5
253@ = 0
254@ = 0
$score_kickstart = 0
257@ = 0
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_130
register_mission_given 

:KICKSTA_130
$player_checkpoint_kickstart = 0
$race_timer_kickstart = 240000
$time_left_to_find_bike_ks = 30000
50@ = -1376.437
83@ = 1562.29
116@ = 1059.0
182@ = 0
215@ = 0
51@ = -1354.842
84@ = 1585.201
117@ = 1057.885
183@ = 0
216@ = 0
52@ = -1408.025
85@ = 1568.736
118@ = 1055.838
184@ = 0
217@ = 0
53@ = -1451.728
86@ = 1571.0649
119@ = 1059.0
185@ = 0
218@ = 1
54@ = -1487.554
87@ = 1564.278
120@ = 1056.457
186@ = 0
219@ = 1
55@ = -1466.286
88@ = 1595.355
121@ = 1057.325
187@ = 0
220@ = 2
56@ = -1387.597
89@ = 1572.125
122@ = 1053.929
188@ = 0
221@ = 0
57@ = -1362.579
90@ = 1614.624
123@ = 1055.33
189@ = 0
222@ = 1
58@ = -1359.51
91@ = 1638.219
124@ = 1056.035
190@ = 0
223@ = 2
59@ = -1371.351
92@ = 1623.274
125@ = 1054.6591
191@ = 0
224@ = 1
60@ = -1369.52
93@ = 1634.025
126@ = 1055.772
192@ = 0
225@ = 2
61@ = -1384.616
94@ = 1603.547
127@ = 1053.595
193@ = 0
226@ = 0
62@ = -1398.996
95@ = 1603.275
128@ = 1055.156
194@ = 0
227@ = 0
63@ = -1403.911
96@ = 1645.158
129@ = 1071.462
195@ = 0
228@ = 1
64@ = -1443.392
97@ = 1648.548
130@ = 1054.287
196@ = 0
229@ = 0
65@ = -1457.0031
98@ = 1648.714
131@ = 1054.937
197@ = 0
230@ = 0
66@ = -1486.931
99@ = 1630.226
132@ = 1056.626
198@ = 0
231@ = 0
67@ = -1482.813
100@ = 1642.205
133@ = 1060.704
199@ = 0
232@ = 2
68@ = -1484.813
101@ = 1597.116
134@ = 1061.382
200@ = 0
233@ = 1
69@ = -1431.399
102@ = 1598.063
135@ = 1054.752
201@ = 0
234@ = 0
70@ = -1420.682
103@ = 1598.275
136@ = 1054.9561
202@ = 0
235@ = 0
71@ = -1408.1071
104@ = 1585.364
137@ = 1055.691
203@ = 0
236@ = 0
72@ = -1408.217
105@ = 1593.302
138@ = 1055.6169
204@ = 0
237@ = 0
73@ = -1462.244
106@ = 1622.424
139@ = 1054.313
205@ = 0
238@ = 1
74@ = -1461.74
107@ = 1635.7531
140@ = 1054.007
206@ = 0
239@ = 1
75@ = -1453.8929
108@ = 1636.028
141@ = 1056.1801
207@ = 0
240@ = 1
76@ = -1454.0551
109@ = 1628.601
142@ = 1054.298
208@ = 0
241@ = 2
77@ = -1454.067
110@ = 1617.637
143@ = 1055.999
209@ = 0
242@ = 2
78@ = -1450.026
111@ = 1620.467
144@ = 1056.421
210@ = 0
243@ = 2
79@ = -1407.7321
112@ = 1617.416
145@ = 1054.797
211@ = 0
244@ = 1
80@ = -1414.1591
113@ = 1607.16
146@ = 1054.843
212@ = 0
245@ = 1
81@ = -1388.309
114@ = 1620.99
147@ = 1054.951
213@ = 0
246@ = 2
82@ = -1431.09
115@ = 1580.832
148@ = 1055.759
214@ = 0
247@ = 1
$race_timer_seconds_kickstart = 0
$race_timer_seconds2_kickstart = 0
$race_timer_mins_kickstart = 0
35@ = 0
$player_taken_too_long_kickstart = 0
$number_of_checkpoints_kickstart = 33
37@ = 0.0
38@ = 0.0
39@ = 0.0
40@ = 0.0
41@ = 0.0
42@ = 0.0
43@ = 0
45@ = 0
46@ = 0
47@ = 0
255@ = 0
wait 0
load_mission_text 'KICKSTT'
set_player_control $player1 {state} False
set_fading_colour 0 {g} 0 {b} 0
do_fade 2000 {direction} Fade.Out

:KICKSTA_1781
if 
  get_fading_status 
goto_if_false @KICKSTA_1805
wait 0
goto @KICKSTA_1781

:KICKSTA_1805
set_respawn_point_for_duration_of_mission 1579.5699 {y} 1769.011 {z} 9.828
set_player_is_in_stadium True
set_area_visible 14
request_collision -1473.187 {y} 1565.173
set_char_coordinates $scplayer {x} -1473.187 {y} 1565.173 {z} 1051.589
set_char_area_visible $scplayer {areaId} 14
display_radar True
set_char_heading $scplayer {heading} 266.488
load_scene -1473.187 {y} 1565.173 {z} 1051.7889
set_camera_behind_player 
restore_camera_jumpcut 
set_extra_colours 2 {fade} False
request_model 468

:KICKSTA_1915
if 
  not has_model_loaded 468
goto_if_false @KICKSTA_1942
wait 0
goto @KICKSTA_1915

:KICKSTA_1942
34@ = create_car 468 {x} -1472.38 {y} 1563.576 {z} 1051.417
set_vehicle_area_visible 34@ {interiorId} 14
set_car_heading 34@ {heading} 266.488
set_car_proofs 34@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
36@ = add_blip_for_car 34@
set_blip_as_friendly 36@ {state} True
set_car_strong 34@ {state} True
44@ = add_sphere -1464.3199 {y} 1556.6899 {z} 1051.75 {radius} 3.0
256@ = 0

:KICKSTA_2051
if 
  33 > 256@
goto_if_false @KICKSTA_2300
if 
  215@(256@,33i) == 0
goto_if_false @KICKSTA_2113
250@ = 0
251@ = 255
252@ = 0

:KICKSTA_2113
if 
  215@(256@,33i) == 1
goto_if_false @KICKSTA_2158
250@ = 255
251@ = 150
252@ = 0

:KICKSTA_2158
if 
  215@(256@,33i) == 2
goto_if_false @KICKSTA_2202
250@ = 255
251@ = 0
252@ = 0

:KICKSTA_2202
draw_corona 50@(256@,33f) {y} 50@(256@,33f) {z} 50@(256@,33f) {size} 249@ {coronaType} CoronaType.Normal {flareType} FlareType.None {r} 250@ {g} 251@ {b} 252@
add_blip_for_coord_old 50@(256@,33f) {y} 50@(256@,33f) {z} 50@(256@,33f) {colour} BlipColor.Red {display} BlipDisplay.BlipOnly {var_handle} 149@(256@,33i)
change_blip_scale 149@(256@,33i) {size} 1
256@ += 1
goto @KICKSTA_2051

:KICKSTA_2300
wait 1000
switch_widescreen True
set_police_ignore_player $player1 {state} True
set_everyone_ignore_player $player1 {state} True
set_player_control $player1 {state} False
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 36205

:KICKSTA_2343
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @KICKSTA_2369
wait 0
goto @KICKSTA_2343

:KICKSTA_2369
set_fading_colour 0 {g} 0 {b} 0
do_fade 1500 {direction} Fade.In
set_fixed_camera_position -1461.084 {y} 1558.448 {z} 1054.46 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1460.135 {y} 1558.761 {z} 1054.429 {switchStyle} SwitchType.JumpCut
camera_reset_new_scriptables 
camera_persist_track True
camera_persist_pos True
camera_set_vector_move -1461.084 {fromY} 1558.448 {fromZ} 1054.46 {toX} -1474.255 {toY} 1561.567 {toZ} 1052.553 {time} 6000 {ease} True
camera_set_vector_track -1460.135 {fromY} 1558.761 {fromZ} 1054.429 {toX} -1473.741 {toY} 1562.424 {toZ} 1052.533 {time} 6000 {ease} True
play_mission_audio MissionAudioSlot.Slot1

:KICKSTA_2523
if 
  get_fading_status 
goto_if_false @KICKSTA_2766
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_2744
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_2594
if 
  get_fading_status 
goto_if_false @KICKSTA_2618
wait 0
goto @KICKSTA_2594

:KICKSTA_2618
set_area_visible 0
load_scene 1105.21 {y} 1604.649 {z} 12.51
if 
  is_player_playing $player1
goto_if_false @KICKSTA_2662
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_2662
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_2705
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_2725

:KICKSTA_2705
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_2725
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_2752

:KICKSTA_2744
set_car_health 34@ {health} 1000

:KICKSTA_2752
gosub @KICKSTA_7904
goto @KICKSTA_2523

:KICKSTA_2766
print_now 'KICK_10' {time} 10000 {flag} 1
TIMERA = 0
skip_cutscene_start_internal @KICKSTA_3415

:KICKSTA_2796
if 
  7000 > TIMERA
goto_if_false @KICKSTA_3045
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3023
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_2873
if 
  get_fading_status 
goto_if_false @KICKSTA_2897
wait 0
goto @KICKSTA_2873

:KICKSTA_2897
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_2941
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_2941
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_2984
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3004

:KICKSTA_2984
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3004
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3031

:KICKSTA_3023
set_car_health 34@ {health} 1000

:KICKSTA_3031
gosub @KICKSTA_7904
goto @KICKSTA_2796

:KICKSTA_3045
clear_this_print 'KICK_10'
camera_reset_new_scriptables 
set_fixed_camera_position -1474.91 {y} 1564.625 {z} 1052.952 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1473.948 {y} 1564.3669 {z} 1053.041 {switchStyle} SwitchType.JumpCut
print_now 'KICK_11' {time} 10000 {flag} 1
task_look_at_coord $scplayer {x} -1464.3199 {y} 1556.6899 {z} 1051.75 {time} 6000
TIMERA = 0

:KICKSTA_3155
if 
  7000 > TIMERA
goto_if_false @KICKSTA_3404
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3382
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_3232
if 
  get_fading_status 
goto_if_false @KICKSTA_3256
wait 0
goto @KICKSTA_3232

:KICKSTA_3256
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_3300
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_3300
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_3343
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3363

:KICKSTA_3343
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3363
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3390

:KICKSTA_3382
set_car_health 34@ {health} 1000

:KICKSTA_3390
gosub @KICKSTA_7904
goto @KICKSTA_3155

:KICKSTA_3404
clear_this_print 'KICK_11'

:KICKSTA_3415
skip_cutscene_end 
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3621
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_3471
if 
  get_fading_status 
goto_if_false @KICKSTA_3495
wait 0
goto @KICKSTA_3471

:KICKSTA_3495
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_3539
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_3539
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_3582
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3602

:KICKSTA_3582
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3602
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3629

:KICKSTA_3621
set_car_health 34@ {health} 1000

:KICKSTA_3629
set_camera_behind_player 
restore_camera_jumpcut 
set_radio_channel RadioChannel.UserTracks
set_police_ignore_player $player1 {state} False
set_everyone_ignore_player $player1 {state} False
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
camera_reset_new_scriptables 
display_radar False
print_now 'KICK1_8' {time} 5000 {flag} 1

:KICKSTA_3688
if 
  not is_char_in_car $scplayer {vehicle} 34@
goto_if_false @KICKSTA_4392
wait 0
if 
  is_car_dead 34@
goto_if_false @KICKSTA_3915
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_3765
if 
  get_fading_status 
goto_if_false @KICKSTA_3789
wait 0
goto @KICKSTA_3765

:KICKSTA_3789
set_area_visible 0
load_scene 1105.21 {y} 1604.649 {z} 12.51
if 
  is_player_playing $player1
goto_if_false @KICKSTA_3833
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_3833
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_3876
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_3896

:KICKSTA_3876
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_3896
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_3923

:KICKSTA_3915
set_car_health 34@ {health} 1000

:KICKSTA_3923
if or
  $race_timer_kickstart >= 3600000
  $player_taken_too_long_kickstart == 1
goto_if_false @KICKSTA_4137
set_player_control $player1 {state} False
print_now 'KICK_13' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
wait 1500
do_fade 1000 {direction} Fade.Out

:KICKSTA_3994
if 
  get_fading_status 
goto_if_false @KICKSTA_4018
wait 0
goto @KICKSTA_3994

:KICKSTA_4018
set_area_visible 0
load_scene 1105.21 {y} 1604.649 {z} 12.51
if 
  is_player_playing $player1
goto_if_false @KICKSTA_4062
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_4062
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_4105
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_4125

:KICKSTA_4105
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_4125
wait 1500
goto @KICKSTA_7448

:KICKSTA_4137
if or
  locate_char_on_foot_3d $scplayer {x} -1464.3199 {y} 1556.6899 {z} 1051.75 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  43@ == 1
goto_if_false @KICKSTA_4378
set_player_control $player1 {state} False
print_now 'KICK_12' {time} 5000 {flag} 1
remove_sphere 44@
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_4235
if 
  get_fading_status 
goto_if_false @KICKSTA_4259
wait 0
goto @KICKSTA_4235

:KICKSTA_4259
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_4303
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_4303
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_4346
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_4366

:KICKSTA_4346
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_4366
wait 1500
goto @KICKSTA_7448

:KICKSTA_4378
gosub @KICKSTA_7904
goto @KICKSTA_3688

:KICKSTA_4392
switch_widescreen True
set_player_control $player1 {state} False
set_camera_behind_player 
clear_this_print 'KICK1_8'
257@ = 0
TIMERA = 0
TIMERB = 0

:KICKSTA_4437
if 
  257@ <> 10
goto_if_false @KICKSTA_4886
wait 0
if 
  257@ == 0
goto_if_false @KICKSTA_4581
if 
  TIMERB > 900
goto_if_false @KICKSTA_4581
print_big 'KICK_17' {time} 1000 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1827

:KICKSTA_4541
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @KICKSTA_4567
wait 0
goto @KICKSTA_4541

:KICKSTA_4567
257@ += 1
TIMERB = 0

:KICKSTA_4581
if 
  257@ == 1
goto_if_false @KICKSTA_4670
if 
  TIMERB > 900
goto_if_false @KICKSTA_4670
print_big 'KICK_18' {time} 1000 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
257@ += 1
TIMERB = 0

:KICKSTA_4670
if 
  257@ == 2
goto_if_false @KICKSTA_4759
if 
  TIMERB > 900
goto_if_false @KICKSTA_4759
print_big 'KICK_19' {time} 1000 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
257@ += 1
TIMERB = 0

:KICKSTA_4759
if 
  257@ == 3
goto_if_false @KICKSTA_4846
if 
  TIMERB > 900
goto_if_false @KICKSTA_4846
print_big 'KICK_20' {time} 800 {style} TextStyle.MiddleSmaller
report_mission_audio_event_at_position -1462.0 {y} 1558.6899 {z} 1055.02 {soundId} ScriptSound.SoundAirHorn
257@ = 10
TIMERB = 0

:KICKSTA_4846
if 
  TIMERA > 4000
goto_if_false @KICKSTA_4872
257@ = 10

:KICKSTA_4872
gosub @KICKSTA_7904
goto @KICKSTA_4437

:KICKSTA_4886
switch_widescreen False
remove_blip 36@
set_player_control $player1 {state} True
print_now 'KICK_26' {time} 5000 {flag} 1
display_onscreen_counter_with_string $score_kickstart {display} CounterDisplay.Number {text} 'KICK1_9'
display_onscreen_timer_with_string $race_timer_kickstart {direction} TimerDirection.Down {text} 'KICK1_T'
TIMERA = 0
TIMERB = 0

:KICKSTA_4964
if 
  $player_checkpoint_kickstart <> 33
goto_if_false @KICKSTA_6929
wait 0
gosub @KICKSTA_7904
if 
  48@ == 1
goto_if_false @KICKSTA_5033
if 
  has_mission_audio_loaded MissionAudioSlot.Slot1
goto_if_false @KICKSTA_5033
48@ = 2

:KICKSTA_5033
if 
  48@ == 2
goto_if_false @KICKSTA_5062
play_mission_audio MissionAudioSlot.Slot1
48@ = 3

:KICKSTA_5062
if 
  48@ == 3
goto_if_false @KICKSTA_5106
if 
  has_mission_audio_finished MissionAudioSlot.Slot1
goto_if_false @KICKSTA_5106
clear_mission_audio MissionAudioSlot.Slot1
48@ = 0

:KICKSTA_5106
if or
  0 >= $race_timer_kickstart
  $player_taken_too_long_kickstart == 1
goto_if_false @KICKSTA_5673
set_player_control $player1 {state} False
clear_onscreen_timer $race_timer_kickstart
clear_onscreen_counter $score_kickstart
if 
  is_int_var_greater_than_int_var $score_kickstart > $current_highest_score_kickstart
goto_if_false @KICKSTA_5417
set_var_int_to_var_int $current_highest_score_kickstart = $score_kickstart
print_with_number_big 'KICK_22' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.Middle
print_now 'KICK_23' {time} 5000 {flag} 1
register_int_stat StatId.KickstartBestScore {value} $current_highest_score_kickstart
play_mission_passed_tune 2
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_5247
switch_car_generator $car_gen_duneride_kickstart {amount} 101

:KICKSTA_5247
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_5267
if 
  get_fading_status 
goto_if_false @KICKSTA_5291
wait 0
goto @KICKSTA_5267

:KICKSTA_5291
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_5335
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_5335
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_5378
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_5398

:KICKSTA_5378
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_5398
wait 1500
goto @KICKSTA_7510
goto @KICKSTA_5673

:KICKSTA_5417
print_with_number_big 'KICK1_9' {num} $score_kickstart {duration} 5000 {style} TextStyle.Middle
print_with_number_big 'KICK_21' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
print_now 'KICK_24' {time} 5000 {flag} 1
248@ = get_int_stat StatId.KickstartBestScore
if 
  is_int_var_greater_than_int_lvar $score_kickstart > 248@
goto_if_false @KICKSTA_5506
register_int_stat StatId.KickstartBestScore {value} $score_kickstart

:KICKSTA_5506
play_mission_passed_tune 1
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_5530
if 
  get_fading_status 
goto_if_false @KICKSTA_5554
wait 0
goto @KICKSTA_5530

:KICKSTA_5554
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_5598
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_5598
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_5641
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_5661

:KICKSTA_5641
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_5661
wait 1500
goto @KICKSTA_7448

:KICKSTA_5673
if or
  locate_char_on_foot_3d $scplayer {x} -1464.3199 {y} 1556.6899 {z} 1051.75 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
  43@ == 1
goto_if_false @KICKSTA_5914
set_player_control $player1 {state} False
print_now 'KICK_12' {time} 5000 {flag} 1
remove_sphere 44@
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_5771
if 
  get_fading_status 
goto_if_false @KICKSTA_5795
wait 0
goto @KICKSTA_5771

:KICKSTA_5795
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_5839
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_5839
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_5882
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_5902

:KICKSTA_5882
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_5902
wait 1500
goto @KICKSTA_7448

:KICKSTA_5914
37@, 38@, 39@ = get_char_coordinates $scplayer
if 
  1050.0 > 39@
goto_if_false @KICKSTA_5979
set_char_coordinates $scplayer {x} -1473.187 {y} 1565.173 {z} 1051.7889
set_char_heading $scplayer {heading} 266.488

:KICKSTA_5979
if 
  is_car_dead 34@
goto_if_false @KICKSTA_6183
set_player_control $player1 {state} False
print_now 'KICK1_7' {time} 5000 {flag} 1
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_6033
if 
  get_fading_status 
goto_if_false @KICKSTA_6057
wait 0
goto @KICKSTA_6033

:KICKSTA_6057
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_6101
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_6101
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_6144
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_6164

:KICKSTA_6144
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_6164
wait 1500
goto @KICKSTA_7448
goto @KICKSTA_6922

:KICKSTA_6183
set_car_health 34@ {health} 1000
40@, 41@, 42@ = get_car_coordinates 34@
if 
  1050.0 > 42@
goto_if_false @KICKSTA_6259
34@ = create_car 468 {x} -1472.38 {y} 1563.576 {z} 1051.417
set_car_heading 34@ {heading} 266.488

:KICKSTA_6259
if 
  not is_char_in_model $scplayer {modelId} 468
goto_if_false @KICKSTA_6874
if 
  254@ == 0
goto_if_false @KICKSTA_6450
if 
  35@ == 0
goto_if_false @KICKSTA_6361
36@ = add_blip_for_car 34@
set_blip_as_friendly 36@ {state} True
if 
  47@ == 2
goto_if_false @KICKSTA_6354
47@ = 3

:KICKSTA_6354
35@ = 1

:KICKSTA_6361
$time_bailed_ks = get_game_timer 
$time_left_to_find_bike_ks = 30000
if 
  $race_timer_kickstart >= 30000
goto_if_false @KICKSTA_6408
$time_left_to_find_bike_ks = 30000
goto @KICKSTA_6416

:KICKSTA_6408
set_var_int_to_var_int $time_left_to_find_bike_ks = $race_timer_kickstart

:KICKSTA_6416
254@ = 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 36200
48@ = 1
goto @KICKSTA_6867

:KICKSTA_6450
if 
  $time_left_to_find_bike_ks > 0
goto_if_false @KICKSTA_6643
$time_now_ks = get_game_timer 
set_var_int_to_var_int $time_off_bike_ks = $time_now_ks
sub_int_var_from_int_var $time_off_bike_ks -= $time_bailed_ks
set_var_int_to_var_int $time_bailed_ks = $time_now_ks
sub_int_var_from_int_var $time_left_to_find_bike_ks -= $time_off_bike_ks
set_var_int_to_var_int $time_left_to_find_bike_secs_ks = $time_left_to_find_bike_ks
$time_left_to_find_bike_secs_ks /= 1000
add_next_message_to_previous_briefs False
if 
  $time_left_to_find_bike_secs_ks <> 1
goto_if_false @KICKSTA_6569
print_with_number_now 'KICK_27' {num} $time_left_to_find_bike_secs_ks {duration} 1000 {flag} 1
goto @KICKSTA_6588

:KICKSTA_6569
print_with_number_now 'KICK_28' {num} $time_left_to_find_bike_secs_ks {duration} 1000 {flag} 1

:KICKSTA_6588
if 
  is_char_in_model $scplayer {modelId} 468
goto_if_false @KICKSTA_6636
clear_this_print 'GETBIKE'
clear_this_print 'GETBIK2'
$time_left_to_find_bike_ks = 1

:KICKSTA_6636
goto @KICKSTA_6867

:KICKSTA_6643
if 
  0 >= $time_left_to_find_bike_ks
goto_if_false @KICKSTA_6867
print_now 'KICK1_2' {time} 5000 {flag} 1
set_player_control $player1 {state} False
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 36200
48@ = 1
wait 1500
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_6724
if 
  get_fading_status 
goto_if_false @KICKSTA_6748
wait 0
goto @KICKSTA_6724

:KICKSTA_6748
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_6792
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_6792
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_6835
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_6855

:KICKSTA_6835
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_6855
wait 1500
goto @KICKSTA_7448

:KICKSTA_6867
goto @KICKSTA_6922

:KICKSTA_6874
clear_this_print 'KICK_27'
if 
  35@ == 1
goto_if_false @KICKSTA_6915
remove_blip 36@
35@ = 0

:KICKSTA_6915
254@ = 0

:KICKSTA_6922
goto @KICKSTA_4964

:KICKSTA_6929
clear_onscreen_timer $race_timer_kickstart
clear_onscreen_counter $score_kickstart
if 
  is_int_var_greater_than_int_var $score_kickstart > $current_highest_score_kickstart
goto_if_false @KICKSTA_7208
set_var_int_to_var_int $current_highest_score_kickstart = $score_kickstart
print_with_number_big 'KICK_22' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.Middle
print_now 'KICK_23' {time} 5000 {flag} 1
register_int_stat StatId.KickstartBestScore {value} $current_highest_score_kickstart
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_7034
switch_car_generator $car_gen_duneride_kickstart {amount} 101

:KICKSTA_7034
play_mission_passed_tune 2
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_7058
if 
  get_fading_status 
goto_if_false @KICKSTA_7082
wait 0
goto @KICKSTA_7058

:KICKSTA_7082
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_7126
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_7126
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_7169
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_7189

:KICKSTA_7169
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_7189
wait 1500
goto @KICKSTA_7510
goto @KICKSTA_7448

:KICKSTA_7208
play_mission_passed_tune 1
248@ = get_int_stat StatId.KickstartBestScore
if 
  is_int_var_greater_than_int_lvar $score_kickstart > 248@
goto_if_false @KICKSTA_7247
register_int_stat StatId.KickstartBestScore {value} $score_kickstart

:KICKSTA_7247
print_with_number_big 'KICK1_9' {num} $score_kickstart {duration} 5000 {style} TextStyle.Middle
print_with_number_big 'KICK_21' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out

:KICKSTA_7305
if 
  get_fading_status 
goto_if_false @KICKSTA_7329
wait 0
goto @KICKSTA_7305

:KICKSTA_7329
load_scene 1105.21 {y} 1604.649 {z} 12.51
set_area_visible 0
if 
  is_player_playing $player1
goto_if_false @KICKSTA_7373
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_7373
if 
  is_char_in_any_car $scplayer
goto_if_false @KICKSTA_7416
warp_char_from_car_to_coord $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546
goto @KICKSTA_7436

:KICKSTA_7416
set_char_coordinates $scplayer {x} 1105.21 {y} 1604.649 {z} 12.0546

:KICKSTA_7436
wait 1500
goto @KICKSTA_7448

:KICKSTA_7448
print_with_number_big 'KICK1_9' {num} 15 {duration} $score_kickstart {style} TextStyle.Middle
print_with_number_now 'KICK_21' {num} $current_highest_score_kickstart {duration} 5000 {flag} 1
set_lvar_int_to_var_int 258@ = $score_kickstart
258@ *= 100
add_score $player1 {money} 258@
return 

:KICKSTA_7510
if 
  $flag_kickstart_passed_1stime == 0
goto_if_false @KICKSTA_7541
register_oddjob_mission_passed 
player_made_progress 1
$flag_kickstart_passed_1stime = 1

:KICKSTA_7541
clear_wanted_level $player1
print_with_number_big 'KICK_22' {num} $current_highest_score_kickstart {duration} 5000 {style} TextStyle.Middle
set_lvar_int_to_var_int 258@ = $score_kickstart
258@ *= 100
add_score $player1 {money} 258@
return 

:KICKSTA_7590
display_radar True
clear_extra_colours False
$onmission = 0
clear_prints 
clear_extra_colours False
remove_sphere 44@
camera_reset_new_scriptables 
remove_blip 149@
remove_blip 150@
remove_blip 151@
remove_blip 152@
remove_blip 153@
remove_blip 154@
remove_blip 155@
remove_blip 156@
remove_blip 157@
remove_blip 158@
remove_blip 159@
remove_blip 160@
remove_blip 161@
remove_blip 162@
remove_blip 163@
remove_blip 164@
remove_blip 165@
remove_blip 166@
remove_blip 167@
remove_blip 168@
remove_blip 169@
remove_blip 170@
remove_blip 171@
remove_blip 172@
remove_blip 173@
remove_blip 174@
remove_blip 175@
remove_blip 176@
remove_blip 177@
remove_blip 178@
remove_blip 179@
remove_blip 180@
remove_blip 181@
remove_blip 36@
mark_model_as_no_longer_needed 468
clear_onscreen_timer $race_timer_kickstart
clear_onscreen_counter $score_kickstart
if or
  not has_deatharrest_been_executed 
  $flag_kickstart_mission1_passed == 1
goto_if_false @KICKSTA_7859
set_char_heading $scplayer {heading} 1.0
restore_camera_jumpcut 
set_camera_behind_player 
set_fading_colour 0 {g} 0 {b} 0
do_fade 3000 {direction} Fade.In
set_player_control $player1 {state} True

:KICKSTA_7859
if 
  is_player_playing $player1
goto_if_false @KICKSTA_7882
set_char_area_visible $scplayer {areaId} 0

:KICKSTA_7882
display_radar True
mark_car_as_no_longer_needed 34@
set_player_is_in_stadium False
$timer_mobile_start = get_game_timer 
mission_has_finished 
return 

:KICKSTA_7904
253@ = 0

:KICKSTA_7911
if 
  33 > 253@
goto_if_false @KICKSTA_8439
if 
  182@(253@,33i) == 0
goto_if_false @KICKSTA_8425
if 
  215@(253@,33i) == 0
goto_if_false @KICKSTA_7995
250@ = 0
251@ = 255
252@ = 0

:KICKSTA_7995
if 
  215@(253@,33i) == 1
goto_if_false @KICKSTA_8040
250@ = 255
251@ = 150
252@ = 0

:KICKSTA_8040
if 
  215@(253@,33i) == 2
goto_if_false @KICKSTA_8084
250@ = 255
251@ = 0
252@ = 0

:KICKSTA_8084
draw_corona 50@(253@,33f) {y} 83@(253@,33f) {z} 116@(253@,33f) {size} 249@ {coronaType} CoronaType.Normal {flareType} FlareType.None {r} 250@ {g} 251@ {b} 252@
if 
  locate_char_any_means_3d $scplayer {x} 50@(253@,33f) {y} 83@(253@,33f) {z} 116@(253@,33f) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @KICKSTA_8425
if 
  is_char_in_model $scplayer {modelId} 468
goto_if_false @KICKSTA_8425
if 
  215@(253@,33i) == 0
goto_if_false @KICKSTA_8261
$score_kickstart += 1
print_now 'KICK_14' {time} 1000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 36202
48@ = 1

:KICKSTA_8261
if 
  215@(253@,33i) == 1
goto_if_false @KICKSTA_8326
$score_kickstart += 2
print_now 'KICK_15' {time} 1000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 36202
48@ = 1

:KICKSTA_8326
if 
  215@(253@,33i) == 2
goto_if_false @KICKSTA_8391
$score_kickstart += 3
print_now 'KICK_16' {time} 1000 {flag} 1
clear_mission_audio MissionAudioSlot.Slot1
load_mission_audio MissionAudioSlot.Slot1 {audioId} 36205
48@ = 1

:KICKSTA_8391
remove_blip 149@(253@,33i)
$player_checkpoint_kickstart += 1
$number_of_checkpoints_kickstart -= 1
182@(253@,33i) = 1

:KICKSTA_8425
253@ += 1
goto @KICKSTA_7911

:KICKSTA_8439
return 

//-------------Mission 130---------------
// Originally: Beat the Cock!

:TRIA
gosub @TRIA_36
if 
  has_deatharrest_been_executed 
goto_if_false @TRIA_27
gosub @TRIA_22646

:TRIA_27
gosub @TRIA_22887
terminate_this_script 

:TRIA_36
clear_this_print_big_now TextStyle.Middle
$onmission = 1
if 
  $flag_triathalon_passed_1stime == 0
goto_if_false @TRIA_67
register_mission_given 

:TRIA_67
script_name 'TRIA'
load_mission_text 'RACETOR'
set_message_formatting True {margin} 355 {width} 370
wait 0
use_text_commands True
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_130
set_player_control $player1 {state} False

:TRIA_130
do_fade 1000 {direction} Fade.Out

:TRIA_137
if 
  get_fading_status 
goto_if_false @TRIA_161
wait 0
goto @TRIA_137

:TRIA_161
816@ = load_char_decision_maker DecisionMakerType.Empty
802@ = 0
817@ = 0
782@ = 0
783@ = 0
34@ = 582.7242
46@ = 356.2812
58@ = 52.2072
70@ = 52.2072
35@ = 584.0833
47@ = 329.3647
59@ = 0.5427
71@ = 2.0841
36@ = 572.9216
48@ = 323.5937
60@ = 1.0585
72@ = 4.8106
37@ = 585.724
49@ = 345.6341
61@ = 0.4929
73@ = 1.8511
38@ = 582.7242
50@ = 359.0323
62@ = 0.4993
74@ = 2.637
39@ = 582.7242
51@ = 356.2812
63@ = 56.2072
75@ = 56.2072
40@ = 582.7242
52@ = 356.2812
64@ = 58.2072
76@ = 58.2072
if 
  $triathalon_selection == 1
goto_if_false @TRIA_501
goto @TRIA_526

:TRIA_501
if 
  $triathalon_selection == 2
goto_if_false @TRIA_526
goto @TRIA_3828

:TRIA_526
819@ = 0
820@ = 1
821@ = 7
822@ = 8
823@ = 8
824@ = 37
825@ = 37
826@ = 38
827@ = 62
792@ = -243.9
793@ = -1719.3101
794@ = 2.35
143@ = 181.3364
263@ = -1885.854
383@ = 3.5158
503@ = 194.886
144@ = 187.69
264@ = -1915.42
384@ = 0.0
504@ = 187.4411
145@ = 190.3243
265@ = -1965.0699
385@ = -1.09
505@ = 122.2256
146@ = 129.4773
266@ = -2001.432
386@ = -0.5606
506@ = 44.5101
147@ = 24.1326
267@ = -1872.092
387@ = -0.1744
507@ = 46.3064
148@ = -38.8038
268@ = -1799.4
388@ = -0.4976
508@ = 29.2224
149@ = -132.8051
269@ = -1809.788
389@ = -1.1548
509@ = 74.9425
150@ = -228.93
270@ = -1726.7
390@ = -0.01
510@ = 70.775
151@ = -248.1052
271@ = -1716.78
391@ = 1.9372
511@ = 157.2827
152@ = -262.3395
272@ = -1787.277
392@ = 8.7655
512@ = 167.5477
153@ = -277.3514
273@ = -1855.098
393@ = 21.3005
513@ = 168.3277
154@ = -280.5171
274@ = -1887.12
394@ = 24.786
514@ = 176.1066
155@ = -281.7469
275@ = -2087.8269
395@ = 38.443
515@ = 141.1524
156@ = -464.7682
276@ = -2179.8149
396@ = 58.8239
516@ = 68.1063
157@ = -641.5079
277@ = -2196.429
397@ = 11.5282
517@ = 129.7469
158@ = -783.5144
278@ = -2459.2939
398@ = 73.7524
518@ = 140.2978
159@ = -871.3914
279@ = -2407.9871
399@ = 54.4911
519@ = 51.7369
160@ = -942.5181
280@ = -2368.063
400@ = 58.8718
520@ = 85.4252
161@ = -1056.249
281@ = -2378.2429
401@ = 48.5923
521@ = 94.4035
162@ = -1238.965
282@ = -2327.3149
402@ = 18.2458
522@ = 58.7494
163@ = -1403.78
283@ = -2165.124
403@ = 17.4059
523@ = 77.2286
164@ = -1659.6851
284@ = -2190.1299
404@ = 32.3572
524@ = 144.7275
165@ = -1732.8311
285@ = -2312.709
405@ = 45.225
525@ = 109.6972
166@ = -1826.058
286@ = -2340.271
406@ = 33.7243
526@ = 125.1071
167@ = -1917.6801
287@ = -2432.147
407@ = 29.6249
527@ = 124.1505
168@ = -1972.515
288@ = -2478.3259
408@ = 29.6259
528@ = 117.8682
169@ = -2025.629
289@ = -2500.3911
409@ = 31.0671
529@ = 73.6687
170@ = -2119.1069
290@ = -2431.2649
410@ = 29.4766
530@ = 50.8121
171@ = -2188.5701
291@ = -2377.5381
411@ = 29.6172
531@ = 0.0
172@ = -2215.8899
292@ = -2352.6011
412@ = 29.6981
532@ = 61.4763
173@ = -2341.21
293@ = -2256.627
413@ = 16.8759
533@ = 39.8273
174@ = -2430.1799
294@ = -2278.3779
414@ = 13.7817
534@ = 45.7545
175@ = -2498.637
295@ = -2208.573
415@ = 27.9284
535@ = 50.0042
176@ = -2619.8391
296@ = -2067.5359
416@ = 38.1676
536@ = 55.7597
176@ = -2867.7839
296@ = -1824.571
416@ = 36.6821
536@ = 16.2011
177@ = -2923.241
297@ = -1561.889
417@ = 10.0017
537@ = 7.7626
178@ = -2899.031
298@ = -1152.584
418@ = 8.32
538@ = 351.8611
179@ = -2858.125
299@ = -835.5231
419@ = 8.4844
539@ = 352.7365
180@ = -2814.01
300@ = -529.22
420@ = 6.1876
540@ = 343.4993
181@ = -2779.95
301@ = -489.85
421@ = 6.33
541@ = 305.3686
182@ = -2708.981
302@ = -529.5283
422@ = 10.196
542@ = 276.1151
183@ = -2670.157
303@ = -481.2506
423@ = 21.3104
543@ = 345.938
184@ = -2666.6631
304@ = -406.0401
424@ = 31.3067
544@ = 324.8106
185@ = -2583.74
305@ = -369.7502
425@ = 46.2653
545@ = 275.6224
186@ = -2515.9709
306@ = -367.1822
426@ = 58.2571
546@ = 272.1555
186@ = -2411.156
306@ = -371.7223
426@ = 72.2992
546@ = 236.1908
187@ = -2340.564
307@ = -416.5017
427@ = 78.5669
547@ = 230.3644
188@ = -2338.824
308@ = -463.832
428@ = 79.0233
548@ = 107.323
189@ = -2387.6899
309@ = -423.99
429@ = 82.4307
549@ = 46.7979
190@ = -2496.3789
310@ = -446.1119
430@ = 75.3116
550@ = 79.2676
191@ = -2544.498
311@ = -465.218
431@ = 68.9665
551@ = 119.0487
191@ = -2556.8521
311@ = -466.8922
431@ = 69.2275
551@ = 116.1301
192@ = -2580.532
312@ = -468.6765
432@ = 67.3814
552@ = 105.1953
193@ = -2612.064
313@ = -475.2015
433@ = 67.8512
553@ = 102.5922
194@ = -2623.105
314@ = -500.2463
434@ = 69.917
554@ = 197.9217
195@ = -2613.75
315@ = -497.1339
435@ = 71.9272
555@ = 288.9547
196@ = -2579.7329
316@ = -492.6317
436@ = 75.158
556@ = 278.9598
197@ = -2542.8
317@ = -490.87
437@ = 80.34
557@ = 280.2745
198@ = -2497.678
318@ = -480.3432
438@ = 94.0158
558@ = 282.4144
199@ = -2466.4009
319@ = -497.2612
439@ = 104.2728
559@ = 198.2153
200@ = -2452.0801
320@ = -544.5864
440@ = 120.5837
560@ = 197.1636
201@ = -2469.5139
321@ = -618.502
441@ = 131.3831
561@ = 208.6952
202@ = -2471.0601
322@ = -618.73
442@ = 131.73
562@ = 85.5749
203@ = -2498.3679
323@ = -617.9995
443@ = 131.5625
563@ = 94.5939
204@ = -2498.981
324@ = -653.2845
444@ = 137.3194
564@ = 168.6758
205@ = -2501.356
325@ = -695.9691
445@ = 138.3174
565@ = 180.3733
743@ = -2500.0
744@ = -710.0
745@ = 138.49
828@ = 63
118@ = 9
set_lvar_int_to_constant 829@ = 154
set_lvar_int_to_constant 830@ = 18
set_lvar_int_to_constant 831@ = 45
set_lvar_int_to_constant 832@ = 18
set_lvar_int_to_constant 833@ = 45
set_lvar_int_to_constant 834@ = 154
set_lvar_int_to_constant 835@ = 154
set_lvar_int_to_constant 836@ = 167
set_lvar_int_to_constant 837@ = 167
set_lvar_int_to_constant 838@ = 167
set_lvar_int_to_constant 839@ = 167
set_lvar_int_to_constant 840@ = 167
set_lvar_int_to_constant 841@ = 510
set_lvar_int_to_constant 842@ = 510
set_lvar_int_to_constant 843@ = 510
set_lvar_int_to_constant 844@ = 510
set_lvar_int_to_constant 845@ = 510
set_lvar_int_to_constant 846@ = 510
set_lvar_int_to_constant 847@ = 510
set_lvar_int_to_constant 848@ = 510
set_lvar_int_to_constant 849@ = 510
set_lvar_int_to_constant 850@ = 510
set_lvar_int_to_constant 851@ = 510
set_lvar_int_to_constant 852@ = 510
770@ = 60.0
771@ = 40.0
772@ = 25.0
773@ = 2.25
774@ = 2.0
775@ = 1.8
776@ = 1.3
777@ = 1.25
778@ = 1.16
695@ = 2.3
707@ = -6.0
696@ = 3.0
708@ = 8.0
697@ = 5.0
709@ = -4.0
698@ = 2.6
710@ = -1.0
699@ = 5.0
711@ = 9.0
700@ = 0.0
712@ = -4.0
701@ = -4.0
713@ = 0.0
702@ = 0.0
714@ = 0.9
703@ = 3.1
715@ = -4.0
704@ = 3.0
716@ = -5.0
705@ = -5.0
717@ = -3.0
706@ = -2.0
718@ = 9.0
goto @TRIA_8781

:TRIA_3828
819@ = 0
820@ = 1
821@ = 9
822@ = 10
823@ = 10
824@ = 96
825@ = 96
826@ = 97
827@ = 103
792@ = 1408.9
793@ = -298.31
794@ = 1.14
143@ = 2135.4319
263@ = -67.9555
383@ = 5.4915
503@ = 66.3885
144@ = 2113.189
264@ = -61.7735
384@ = -1.6317
504@ = 79.829
145@ = 2042.62
265@ = -68.5141
385@ = -1.9576
505@ = 105.8667
146@ = 1914.295
266@ = -82.3669
386@ = -1.573
506@ = 101.7482
147@ = 1844.035
267@ = -62.2716
387@ = -1.6096
507@ = 84.9519
148@ = 1742.236
268@ = -20.0478
388@ = -1.287
508@ = 79.6055
149@ = 1618.168
269@ = -15.6618
389@ = -1.6797
509@ = 156.9966
150@ = 1599.854
270@ = -118.7409
390@ = -1.4099
510@ = 164.6305
151@ = 1533.974
271@ = -213.8303
391@ = -1.8143
511@ = 126.3196
152@ = 1426.781
272@ = -284.0623
392@ = 0.4372
512@ = 144.5477
153@ = 1398.955
273@ = -320.351
393@ = 4.0182
513@ = 153.3551
154@ = 1358.093
274@ = -336.8423
394@ = 1.9089
514@ = 116.3511
155@ = 1289.739
275@ = -376.0291
395@ = 1.8575
515@ = 115.9818
156@ = 1226.153
276@ = -418.5785
396@ = 4.1044
516@ = 98.6074
157@ = 1042.313
277@ = -450.289
397@ = 50.3135
517@ = 101.4914
158@ = 955.7357
278@ = -394.1266
398@ = 62.9355
518@ = 78.1451
159@ = 862.81
279@ = -348.28
399@ = 35.11
519@ = 56.0
160@ = 735.1562
280@ = -269.1867
400@ = 8.7576
520@ = 73.8366
161@ = 469.2164
281@ = -284.2076
401@ = 9.4602
521@ = 112.1922
162@ = 251.8701
282@ = -371.7388
402@ = 7.7356
522@ = 68.255
163@ = 223.9637
283@ = -281.344
403@ = 0.4297
523@ = 271.1071
164@ = 232.8023
284@ = -147.7986
404@ = 0.4375
524@ = 357.6566
165@ = 212.8295
285@ = 51.8381
405@ = 1.0781
525@ = 109.6694
166@ = -68.0222
286@ = 199.2302
406@ = 1.1111
526@ = 65.8208
167@ = -214.4978
287@ = 242.3661
407@ = 10.9924
527@ = 77.1542
168@ = -474.3636
288@ = 283.1361
408@ = 1.0859
528@ = 87.3102
169@ = -704.3909
289@ = 237.3473
409@ = 1.2298
529@ = 125.775
170@ = -753.5148
290@ = 113.9041
410@ = 13.0728
530@ = 238.8586
171@ = -774.6131
291@ = 19.818
411@ = 32.2693
531@ = 99.2499
172@ = -882.6287
292@ = -30.0806
412@ = 32.3448
532@ = 159.807
173@ = -693.5931
293@ = 14.1184
413@ = 64.7495
533@ = 274.7533
174@ = -747.8843
294@ = -87.2834
414@ = 65.6724
534@ = 116.1896
175@ = -914.7136
295@ = -149.6012
415@ = 52.8499
535@ = 134.4302
176@ = -962.9247
296@ = -326.8087
416@ = 35.2353
536@ = 168.4629
177@ = -1053.014
297@ = -459.1835
417@ = 34.307
537@ = 115.9967
178@ = -1192.145
298@ = -713.6215
418@ = 54.6026
538@ = 156.9905
179@ = -1487.715
299@ = -817.6843
419@ = 64.4213
539@ = 92.4112
180@ = -1740.777
300@ = -724.1766
420@ = 30.4857
540@ = 49.0549
181@ = -1781.205
301@ = -583.264
421@ = 15.3359
541@ = 100.3213
182@ = -1823.7
302@ = -529.5533
422@ = 13.9686
542@ = 4.2211
183@ = -1799.017
303@ = -273.0101
423@ = 20.3398
543@ = 354.7032
184@ = -1800.123
304@ = -65.1682
424@ = 10.9423
544@ = 359.6422
185@ = -1725.062
305@ = 327.4661
425@ = 6.039
545@ = 315.311
186@ = -1557.097
306@ = 578.606
426@ = 6.028
546@ = 0.4208
187@ = -1541.106
307@ = 769.1249
427@ = 6.0391
547@ = 353.7148
188@ = -1583.3781
308@ = 1116.991
428@ = 6.0468
548@ = 1.1392
189@ = -1809.283
309@ = 1378.625
429@ = 6.0391
549@ = 81.656
190@ = -2100.2129
310@ = 1275.833
430@ = 15.1271
550@ = 95.1487
191@ = -2350.208
311@ = 1176.574
431@ = 41.5671
551@ = 90.0114
192@ = -2510.877
312@ = 1187.856
432@ = 39.1262
552@ = 85.252
193@ = -2669.6799
313@ = 1245.1429
433@ = 54.4297
553@ = 8.9025
194@ = -2673.8931
314@ = 1643.3521
434@ = 65.0251
554@ = 0.2767
195@ = -2674.0471
315@ = 2075.5439
435@ = 54.4218
555@ = 359.5528
196@ = -2738.813
316@ = 2389.167
436@ = 71.7769
556@ = 13.6254
197@ = -2547.9309
317@ = 2616.4619
437@ = 59.9948
557@ = 274.8428
198@ = -2291.8879
318@ = 2639.561
438@ = 54.2564
558@ = 274.3506
199@ = -1943.441
319@ = 2477.7959
439@ = 53.9877
559@ = 203.7195
200@ = -1773.83
320@ = 2183.4089
440@ = 15.1278
560@ = 244.4939
201@ = -1671.4351
321@ = 1994.474
441@ = 18.605
561@ = 169.1263
202@ = -1665.7
322@ = 1828.964
442@ = 24.836
562@ = 278.2649
203@ = -1515.527
323@ = 1841.554
443@ = 28.9903
563@ = 271.1894
204@ = -1264.993
324@ = 1827.301
444@ = 39.4348
564@ = 234.95
205@ = -1121.385
325@ = 1807.5389
445@ = 41.2592
565@ = 284.4989
206@ = -988.9796
326@ = 1847.639
446@ = 61.9118
566@ = 237.4219
207@ = -855.0579
327@ = 1858.897
447@ = 59.216
567@ = 15.0168
208@ = -827.7874
328@ = 2022.61
448@ = 59.1866
568@ = 302.1424
209@ = -643.984
329@ = 2054.752
449@ = 59.3829
569@ = 252.3283
210@ = -460.4977
330@ = 2022.137
450@ = 59.1932
570@ = 314.0172
211@ = -385.3306
331@ = 2052.0591
451@ = 61.1139
571@ = 121.3349
212@ = -471.1979
332@ = 1868.452
452@ = 81.3094
572@ = 185.3215
213@ = -424.8187
333@ = 1785.552
453@ = 69.9688
573@ = 353.9297
214@ = -392.5027
334@ = 1899.678
454@ = 56.3096
574@ = 190.7471
215@ = -437.5663
335@ = 1639.054
455@ = 34.5544
575@ = 155.0889
216@ = -419.9048
336@ = 1375.7111
456@ = 29.3441
576@ = 198.0373
217@ = -254.2456
337@ = 1241.245
457@ = 22.9055
577@ = 262.7647
218@ = -17.3116
338@ = 1265.996
458@ = 7.1868
578@ = 269.9033
219@ = 207.218
339@ = 1174.193
459@ = 13.9973
579@ = 316.9584
220@ = 339.0704
340@ = 1382.287
460@ = 6.1753
580@ = 342.3971
221@ = 388.3414
341@ = 1547.929
461@ = 13.8468
581@ = 343.6689
222@ = 633.4001
342@ = 1754.8669
462@ = 3.9566
582@ = 317.1131
223@ = 669.8152
343@ = 2168.323
463@ = 20.5117
583@ = 358.9947
224@ = 689.647
344@ = 2565.1599
464@ = 27.2334
584@ = 311.5221
225@ = 891.8608
345@ = 2603.7539
465@ = 9.595
585@ = 247.505
226@ = 1044.021
346@ = 2515.8569
466@ = 9.6323
586@ = 231.5339
227@ = 1244.597
347@ = 2379.124
467@ = 12.6162
587@ = 243.279
228@ = 1443.869
348@ = 2448.9451
468@ = 5.7498
588@ = 288.6619
229@ = 1666.8929
349@ = 2445.9929
469@ = 6.0409
589@ = 251.8771
230@ = 1788.89
350@ = 2302.6411
470@ = 4.9096
590@ = 178.4221
231@ = 1787.288
351@ = 2020.553
471@ = 2.9839
591@ = 180.0315
232@ = 1757.569
352@ = 1803.75
472@ = 6.6726
592@ = 151.3169
233@ = 1719.6591
353@ = 1733.205
473@ = 9.6719
593@ = 76.1769
234@ = 1647.86
354@ = 1740.389
474@ = 9.6719
594@ = 353.7883
235@ = 1666.322
355@ = 1871.767
475@ = 9.6797
595@ = 276.203
236@ = 1707.177
356@ = 1939.953
476@ = 9.6719
596@ = 1.2039
237@ = 1736.212
357@ = 2053.1389
477@ = 9.6797
597@ = 263.9626
238@ = 1897.3199
358@ = 2044.712
478@ = 9.6719
598@ = 254.9706
239@ = 1994.816
359@ = 2022.869
479@ = 9.6797
599@ = 270.1811
240@ = 2126.0049
360@ = 2014.889
480@ = 9.6719
600@ = 199.0654
241@ = 2126.7981
361@ = 1885.59
481@ = 9.6797
601@ = 178.0925
242@ = 2098.335
362@ = 1802.86
482@ = 9.6797
602@ = 156.4693
243@ = 2056.644
363@ = 1720.575
483@ = 9.6719
603@ = 156.0535
244@ = 2049.26
364@ = 1554.7889
484@ = 9.6719
604@ = 179.2217
245@ = 2050.8269
365@ = 1403.3621
485@ = 9.6719
605@ = 179.9112
246@ = 2048.7
366@ = 1089.746
486@ = 9.6641
606@ = 179.8144
743@ = 2046.0
744@ = 979.0
745@ = 9.49
828@ = 104
118@ = 9
set_lvar_int_to_constant 829@ = 154
set_lvar_int_to_constant 830@ = 18
set_lvar_int_to_constant 831@ = 45
set_lvar_int_to_constant 832@ = 18
set_lvar_int_to_constant 833@ = 45
set_lvar_int_to_constant 834@ = 154
set_lvar_int_to_constant 835@ = 154
set_lvar_int_to_constant 836@ = 167
set_lvar_int_to_constant 837@ = 167
set_lvar_int_to_constant 838@ = 167
set_lvar_int_to_constant 839@ = 167
set_lvar_int_to_constant 840@ = 167
set_lvar_int_to_constant 841@ = 510
set_lvar_int_to_constant 842@ = 510
set_lvar_int_to_constant 843@ = 510
set_lvar_int_to_constant 844@ = 510
set_lvar_int_to_constant 845@ = 510
set_lvar_int_to_constant 846@ = 510
set_lvar_int_to_constant 847@ = 510
set_lvar_int_to_constant 848@ = 510
set_lvar_int_to_constant 849@ = 510
set_lvar_int_to_constant 850@ = 510
set_lvar_int_to_constant 851@ = 510
set_lvar_int_to_constant 852@ = 510
770@ = 50.0
771@ = 40.0
772@ = 30.0
773@ = 2.23
774@ = 2.1
775@ = 1.8
776@ = 1.33
777@ = 1.3
778@ = 1.25
695@ = 2.3
707@ = -6.0
696@ = 3.0
708@ = -4.0
697@ = 5.0
709@ = -4.0
698@ = 2.6
710@ = -1.0
699@ = 5.0
711@ = 5.0
700@ = 0.0
712@ = -4.0
701@ = -4.0
713@ = 0.0
702@ = 0.0
714@ = 0.9
703@ = 3.1
715@ = -4.0
704@ = 3.0
716@ = -5.0
705@ = -5.0
717@ = -3.0
706@ = -2.0
718@ = 4.0
746@ = 0
747@ = 0
748@ = 0
749@ = 0
750@ = 0
751@ = 0
752@ = 0
753@ = 0
754@ = 0
755@ = 0
756@ = 0
757@ = 0
goto @TRIA_8781
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0
delete_checkpoint 963@

:TRIA_8781
set_lvar_float_to_lvar_float 779@ = 770@
set_lvar_float_to_lvar_float 780@ = 773@
set_lvar_float_to_lvar_float 781@ = 776@

:TRIA_8805
if 
  not is_player_playing $player1
goto_if_false @TRIA_8832
wait 0
goto @TRIA_8805

:TRIA_8832
clear_area 143@ {y} 263@ {z} 383@ {radius} 1000001.0 {clearParticles} False
load_scene 143@ {y} 263@ {z} 383@
disable_all_entry_exits True
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_lvar_int_to_lvar_int 853@ = 828@
853@ -= 1
758@ = 0
759@ = 0
760@ = 0
761@ = 0
set_lvar_int_to_lvar_int 926@ = 118@

:TRIA_8930
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_8974
927@(759@,12i) = 0
759@ += 1
goto @TRIA_8930

:TRIA_8974
939@ = add_blip_for_coord 143@ {y} 263@ {z} 383@
940@ = 0

:TRIA_8995
wait 0
$game_timer = get_game_timer 
942@ = 0
759@ = 0
if 
  940@ == 0
goto_if_false @TRIA_9234
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_9234
set_char_coordinates $scplayer {x} 143@ {y} 263@ {z} 383@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
build_player_model $player1
if 
  locate_char_any_means_2d $scplayer {x} 144@ {y} 264@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @TRIA_9234
758@ = 0
set_var_float_to_lvar_float $x = 143@
$x += 4.0
set_var_float_to_lvar_float $y = 263@
$y += 4.0
set_var_float_to_lvar_float $z = 383@
$z += 6.0
set_lvar_float_to_lvar_float 785@ = 143@
785@ -= 7.0
set_lvar_float_to_lvar_float 786@ = 263@
786@ -= 7.0
set_lvar_float_to_lvar_float 787@ = 383@
787@ -= 7.0
940@ += 1

:TRIA_9234
if 
  940@ == 1
goto_if_false @TRIA_9327
request_model 154
request_model 18
request_model 45
request_model 167
request_model 510

:TRIA_9275
if or
  not has_model_loaded 154
  not has_model_loaded 18
  not has_model_loaded 45
  not has_model_loaded 167
  not has_model_loaded 510
goto_if_false @TRIA_9320
wait 0
goto @TRIA_9275

:TRIA_9320
940@ = 2

:TRIA_9327
if 
  940@ == 2
goto_if_false @TRIA_11267
768@ = create_car 841@ {x} 143@ {y} 263@ {z} 383@
turn_car_to_face_coord 768@ {x} 144@ {y} 264@
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
769@ = create_car 841@ {x} 143@(822@,120f) {y} 263@(822@,120f) {z} -100.0
set_car_heading 769@ {heading} 503@(822@,120f)
785@, 786@, 787@ = get_offset_from_car_in_world_coords 769@ {xOffset} 785@ {yOffset} 786@ {zOffset} 787@
791@ = get_car_heading 769@
set_lvar_float_to_lvar_float 787@ = 383@
759@ = 0

:TRIA_9473
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_11027
set_lvar_int_to_lvar_int 760@ = 759@
760@ /= 2
760@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 760@ == 759@
goto_if_false @TRIA_9591
$x = 1.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@
goto @TRIA_9649

:TRIA_9591
$x = -1.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ -= 1
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@

:TRIA_9649
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} $x {yOffset} $y {zOffset} $z
789@ = get_car_heading 768@
set_var_float_to_lvar_float $z = 383@
set_lvar_float_to_var_float 854@(759@,12f) = $x
set_lvar_float_to_var_float 866@(759@,12f) = $y
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_var_float 878@(759@,12f) = $z
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_10271
create_char PedType.CivMale {modelId} 829@(759@,12i) {x} $x {y} $y {z} -100.0 {var_handle} 914@(759@,12i)
set_char_only_damaged_by_player 914@(759@,12i) {state} True
set_char_decision_maker 914@(759@,12i) {handleOrTemplate} 816@
131@(759@,12i) = 0
804@(759@,12i) = 0
set_char_heading 914@(759@,12i) {heading} 503@
set_char_drowns_in_water 914@(759@,12i) {state} False
clear_char_last_damage_entity 914@(759@,12i)
set_char_can_be_shot_in_vehicle 914@(759@,12i) {state} False
if 
  131@(759@,12i) == 0
goto_if_false @TRIA_10264
set_lvar_int_to_lvar_int 760@ = 759@
760@ /= 2
760@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 760@ == 759@
goto_if_false @TRIA_9995
$x = 3.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@
goto @TRIA_10053

:TRIA_9995
$x = -3.5
set_lvar_int_to_lvar_int 761@ = 759@
761@ -= 1
761@ *= 2
cset_lvar_float_to_lvar_int 788@ =# 761@
788@ *= -1.0
set_var_float_to_lvar_float $y = 788@

:TRIA_10053
$x, $y, $z = get_offset_from_car_in_world_coords 769@ {xOffset} $x {yOffset} $y {zOffset} $z
create_car 841@(759@,12i) {x} $x {y} $y {z} -100.0 {var_handle} 902@(759@,12i)
improve_car_by_cheating 902@(759@,12i) {state} True
set_car_traction 902@(759@,12i) {traction} 1.5
131@(759@,12i) = 1
add_stuck_car_check_with_warp 902@(759@,12i) {distance} 0.5 {time} 5000 {stuck} True {flipped} False {inWater} True {numNodesToCheck} 1
set_car_heading 902@(759@,12i) {heading} 175.0
set_car_proofs 902@(759@,12i) {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_health 902@(759@,12i) {health} 2000
set_car_watertight 902@(759@,12i) {state} True
set_car_strong 902@(759@,12i) {state} True
set_upsidedown_car_not_damaged 902@(759@,12i) {state} True
set_car_straight_line_distance 902@(759@,12i) {distance} 5
set_can_burst_car_tyres 902@(759@,12i) {state} False

:TRIA_10264
goto @TRIA_11013

:TRIA_10271
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} -0.8
954@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 954@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} -0.8
943@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 943@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} -0.8
944@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 944@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} -0.8
945@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 945@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} -0.8
946@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 946@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} -0.8
947@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 947@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} -0.8
948@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 948@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} -0.8
949@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 949@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} -0.8
950@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 950@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} -0.8
951@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 951@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} -0.8
952@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 952@ {x} 143@ {y} 263@ {z} 383@
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} -0.8
953@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 953@ {x} 143@ {y} 263@ {z} 383@
remove_blip 939@
939@ = add_blip_for_coord 854@(762@,12f) {y} 866@(762@,12f) {z} 878@(762@,12f)
set_car_density_multiplier 0.5
set_lvar_int_to_var_int 914@(759@,12i) = $scplayer
set_lvar_int_to_lvar_int 941@ = 759@

:TRIA_11013
759@ += 1
goto @TRIA_9473

:TRIA_11027
940@ += 1
delete_car 768@
delete_car 769@
769@ = create_car 841@ {x} 143@(822@,120f) {y} 263@(822@,120f) {z} 383@(822@,120f)
set_car_heading 769@ {heading} 503@(822@,120f)
795@, 796@, 797@ = get_offset_from_car_in_world_coords 769@ {xOffset} 5.0 {yOffset} -15.0 {zOffset} 0.0
set_car_heading 769@ {heading} 791@
create_car 510 {x} 795@ {y} 796@ {z} -100.0 {var_handle} 902@(941@,12i)
set_car_heading 902@(941@,12i) {heading} 791@
set_car_watertight 902@(941@,12i) {state} True
delete_car 769@
if 
  is_player_playing $player1
goto_if_false @TRIA_11225
set_char_coordinates $scplayer {x} 854@(941@,12f) {y} 866@(941@,12f) {z} 878@(941@,12f)
set_char_heading $scplayer {heading} 503@
set_camera_behind_player 

:TRIA_11225
switch_widescreen True
wait 500
do_fade 3000 {direction} Fade.In

:TRIA_11241
if 
  get_fading_status 
goto_if_false @TRIA_11265
wait 0
goto @TRIA_11241

:TRIA_11265
clear_prints 

:TRIA_11267
if 
  940@ == 3
goto_if_false @TRIA_11478
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_11478
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
print_big 'RACES_4' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
759@ = 0

:TRIA_11379
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_11455
if 
  is_char_dead 914@(759@,12i)
goto_if_false @TRIA_11441
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_11441
759@ += 1
goto @TRIA_11379

:TRIA_11455
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11478
if 
  940@ == 4
goto_if_false @TRIA_11576
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11576
print_big 'RACES_5' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11576
if 
  940@ == 5
goto_if_false @TRIA_11674
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11674
print_big 'RACES_6' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 955@ = $game_timer
955@ += 999
940@ += 1

:TRIA_11674
if 
  940@ == 6
goto_if_false @TRIA_11901
if 
  is_int_var_greater_than_int_lvar $game_timer > 955@
goto_if_false @TRIA_11901
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_11901
print_big 'RACES_7' {time} 800 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
restore_camera 
switch_widescreen False
display_car_names False
set_lvar_int_to_var_int 767@ = $game_timer
set_lvar_int_to_lvar_int 762@ = 926@
762@ -= 1
759@ = 0

:TRIA_11823
if 
  is_int_lvar_greater_than_int_lvar 762@ > 759@
goto_if_false @TRIA_11887
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_11873
set_car_only_damaged_by_player 902@(759@,12i) {state} False

:TRIA_11873
759@ += 1
goto @TRIA_11823

:TRIA_11887
955@ = 0
940@ += 1

:TRIA_11901
if 
  940@ > 6
goto_if_false @TRIA_19640

:TRIA_11919
if 
  is_int_lvar_greater_than_int_lvar 926@ > 759@
goto_if_false @TRIA_18580
if 
  not is_char_dead $scplayer
goto_if_false @TRIA_18566
if 
  not is_char_dead 914@(759@,12i)
goto_if_false @TRIA_14917
if 
  940@ == 8
goto_if_false @TRIA_14910
if 
  not is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_14910
if 
  is_int_lvar_equal_to_int_lvar 927@(941@,12i) == 927@(759@,12i)
goto_if_false @TRIA_12157
$x, $y, $z = get_char_coordinates 914@(759@,12i)
957@ = get_distance_between_coords_2d $x {fromY} $y {toX} 854@(759@,12f) {toZ} 866@(759@,12f)
$x, $y, $z = get_char_coordinates $scplayer
790@ = get_distance_between_coords_2d $x {fromY} $y {toX} 854@(759@,12f) {toZ} 866@(759@,12f)
if 
  is_float_lvar_greater_than_float_lvar 790@ > 957@
goto_if_false @TRIA_12150
942@ += 1

:TRIA_12150
goto @TRIA_12191

:TRIA_12157
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 927@(941@,12i)
goto_if_false @TRIA_12191
942@ += 1

:TRIA_12191
if 
  not locate_char_any_means_2d 914@(759@,12i) {x} 82@(759@,12f) {y} 94@(759@,12f) {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @TRIA_12407
get_char_coordinates 914@(759@,12i) {var_x} 82@(759@,12f) {var_y} 94@(759@,12f) {var_z} $z
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_12329
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 1500
goto @TRIA_12407

:TRIA_12329
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 822@
goto_if_false @TRIA_12383
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 1500
goto @TRIA_12407

:TRIA_12383
set_lvar_int_to_var_int 119@(759@,12i) = $game_timer
119@(759@,12i) += 4000

:TRIA_12407
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_12608
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "SPRINT_PANIC"
goto_if_false @TRIA_12502
set_char_anim_speed 914@(759@,12i) {animName} "SPRINT_PANIC" {animSpeed} 781@

:TRIA_12502
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "RUN_CIVI"
goto_if_false @TRIA_12554
set_char_anim_speed 914@(759@,12i) {animName} "RUN_CIVI" {animSpeed} 781@

:TRIA_12554
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "WALK_CIVI"
goto_if_false @TRIA_12608
set_char_anim_speed 914@(759@,12i) {animName} "WALK_CIVI" {animSpeed} 781@

:TRIA_12608
if 
  locate_char_any_means_2d 914@(759@,12i) {x} 82@(759@,12f) {y} 94@(759@,12f) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @TRIA_14169
if 
  is_int_var_greater_than_int_lvar $game_timer > 119@(759@,12i)
goto_if_false @TRIA_14169
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_13188
if 
  is_char_in_water 914@(759@,12i)
goto_if_false @TRIA_13165
set_lvar_float_to_lvar_float 785@ = 854@(759@,12f)
add_float_lvar_to_float_lvar 785@ += 695@(759@,12f)
set_lvar_float_to_lvar_float 786@ = 866@(759@,12f)
add_float_lvar_to_float_lvar 786@ += 707@(759@,12f)
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 819@
goto_if_false @TRIA_12950
if 
  3 <= 927@(759@,12i)
goto_if_false @TRIA_12907
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_12900
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 780@

:TRIA_12900
goto @TRIA_12943

:TRIA_12907
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 2.2

:TRIA_12943
goto @TRIA_13158

:TRIA_12950
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_13158
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_13158
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
set_char_heading 914@(759@,12i) {heading} 503@(759@,120f)
clear_char_tasks 914@(759@,12i)
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_13158
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 780@

:TRIA_13158
goto @TRIA_13188

:TRIA_13165
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 821@
goto_if_false @TRIA_13188

:TRIA_13188
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_14026
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_14026
switch_start 804@(759@,12i) {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @TRIA_13635 {caseNum1} 0 {caseLabel1} @TRIA_13310 {caseNum2} 1 {caseLabel2} @TRIA_13385 {caseNum3} -1 {caseLabel3} @TRIA_14026 {caseNum4} -1 {caseLabel4} @TRIA_14026 {caseNum5} -1 {caseLabel5} @TRIA_14026 {caseNum6} -1 {caseLabel6} @TRIA_14026 {caseNum7} -1 {caseLabel7} @TRIA_14026

:TRIA_13310
803@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 792@ {y} 793@ {z} 794@ {speed} MoveState.Sprint {time} -2
task_enter_car_as_driver -1 {vehicle} 902@(759@,12i) {time} -2
close_sequence_task 803@
perform_sequence_task 914@(759@,12i) {sequence} 803@
clear_sequence_task 803@
804@(759@,12i) = 1
goto @TRIA_14026

:TRIA_13385
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_13628
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_13628
if 
  not is_char_in_car 914@(759@,12i) {vehicle} 902@(759@,12i)
goto_if_false @TRIA_13628
if 
  not is_car_on_screen 902@(759@,12i)
goto_if_false @TRIA_13628
if 
  not is_char_in_any_car 914@(759@,12i)
goto_if_false @TRIA_13628
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_13628
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
warp_char_into_car 914@(759@,12i) {vehicle} 902@(759@,12i)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
804@(759@,12i) = 2

:TRIA_13628
goto @TRIA_14026

:TRIA_13635
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_14019
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_14019
if 
  not is_car_on_screen 902@(759@,12i)
goto_if_false @TRIA_14019
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_14019
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_14019
if 
  not is_char_in_car 914@(759@,12i) {vehicle} 902@(759@,12i)
goto_if_false @TRIA_13925
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_13918
warp_char_into_car 914@(759@,12i) {vehicle} 902@(759@,12i)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_13918
goto @TRIA_14019

:TRIA_13925
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
turn_car_to_face_coord 902@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_14019
goto @TRIA_14026

:TRIA_14026
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_14169
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_14169
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 10.0
goto_if_false @TRIA_14169
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)

:TRIA_14169
if 
  is_char_in_any_car 914@(759@,12i)
goto_if_false @TRIA_14220
set_lvar_int_to_lvar_int 762@ = 927@(941@,12i)
762@ += 5
768@ = store_car_char_is_in_no_save 914@(759@,12i)

:TRIA_14220
758@ = 0
761@ = 0

:TRIA_14234
if 
  is_int_lvar_greater_than_int_lvar 926@ > 758@
goto_if_false @TRIA_14316
set_lvar_int_to_lvar_int 958@ = 927@(758@,12i)
958@ -= 2
if 
  is_int_lvar_greater_than_int_lvar 958@ > 927@(759@,12i)
goto_if_false @TRIA_14302
761@ += 1

:TRIA_14302
758@ += 1
goto @TRIA_14234

:TRIA_14316
if 
  761@ > 0
goto_if_false @TRIA_14910
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not is_char_dead 914@(759@,12i)
goto_if_false @TRIA_14910
if 
  not locate_char_any_means_char_3d $scplayer {target} 914@(759@,12i) {xRadius} 30.0 {yRadius} 30.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @TRIA_14910
if 
  not is_char_on_screen 914@(759@,12i)
goto_if_false @TRIA_14910
if 
  not is_point_obscured_by_a_mission_entity 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 3.0
goto_if_false @TRIA_14910
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 4.0
goto_if_false @TRIA_14910
set_char_coordinates 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
clear_char_tasks 914@(759@,12i)
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_14910
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_14910
if 
  is_char_in_any_car 914@(759@,12i)
goto_if_false @TRIA_14728
768@ = store_car_char_is_in_no_save 914@(759@,12i)
set_car_heading 768@ {heading} 503@(759@,120f)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @TRIA_14910

:TRIA_14728
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_14910
if 
  not is_char_in_car 914@(759@,12i) {vehicle} 902@(759@,12i)
goto_if_false @TRIA_14910
if 
  not is_char_in_car $scplayer {vehicle} 902@(759@,12i)
goto_if_false @TRIA_14910
798@ = get_driver_of_car 902@(759@,12i)
if 
  798@ == -1
goto_if_false @TRIA_14910
clear_char_tasks 914@(759@,12i)
warp_char_into_car 914@(759@,12i) {vehicle} 902@(759@,12i)
set_car_heading 902@(759@,12i) {heading} 503@(759@,120f)
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_14910
goto @TRIA_15019

:TRIA_14917
if and
  has_char_been_damaged_by_char 914@(759@,12i) {handle} $scplayer
  is_char_dead 914@(759@,12i)
goto_if_false @TRIA_15019
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_15019
if 
  not has_char_been_damaged_by_car 914@(759@,12i) {handle} 902@(941@,12i)
goto_if_false @TRIA_15019
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_15019
if 
  not is_char_dead 914@(759@,12i)
goto_if_false @TRIA_16413
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_15161
if 
  782@ == 0
goto_if_false @TRIA_15161
if 
  not locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 600.0 {yRadius} 600.0 {zRadius} 600.0 {drawSphere} False
goto_if_false @TRIA_15161
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_15161
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 827@
goto_if_false @TRIA_15267
if 
  746@(759@,12i) == 0
goto_if_false @TRIA_15267
803@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 743@ {y} 744@ {z} 745@ {speed} MoveState.Sprint {time} -2
task_tired -1 {time} -2
close_sequence_task 803@
perform_sequence_task 914@(759@,12i) {sequence} 803@
clear_sequence_task 803@
746@(759@,12i) = 1

:TRIA_15267
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_15671
if 
  locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @TRIA_15671
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_15397
goto @TRIA_19715
goto @TRIA_15445

:TRIA_15397
get_script_task_status 914@(759@,12i) {taskId} 2606 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_15445
goto @TRIA_19715

:TRIA_15445
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 828@
goto_if_false @TRIA_15671
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_15560
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_15530
goto @TRIA_22664
goto @TRIA_15553

:TRIA_15530
print_now 'RACES_8' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_15553
goto @TRIA_15671

:TRIA_15560
task_car_temp_action 914@(759@,12i) {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 2000000
set_lvar_int_to_lvar_int 784@ = 927@(759@,12i)
784@ -= 1
if 
  not is_point_on_screen 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {radius} 30.0
goto_if_false @TRIA_15671
if 
  not is_car_dead 768@
goto_if_false @TRIA_15671
turn_car_to_face_coord 768@ {x} 143@(759@,120f) {y} 263@(759@,120f)

:TRIA_15671
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 821@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_16236
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_16078
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_15929
if 
  locate_char_in_car_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @TRIA_15922
set_lvar_int_to_lvar_int 765@ = 823@
765@ += 1
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 765@
goto_if_false @TRIA_15915
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_15908
goto @TRIA_19715

:TRIA_15908
goto @TRIA_15922

:TRIA_15915
goto @TRIA_19715

:TRIA_15922
goto @TRIA_16071

:TRIA_15929
if 
  locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @TRIA_16071
if 
  2 > 927@(759@,12i)
goto_if_false @TRIA_16064
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16057
goto @TRIA_19715

:TRIA_16057
goto @TRIA_16071

:TRIA_16064
goto @TRIA_19715

:TRIA_16071
goto @TRIA_16236

:TRIA_16078
if 
  locate_char_in_car_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 40.0 {yRadius} 40.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @TRIA_16236
set_lvar_int_to_lvar_int 765@ = 823@
765@ += 1
if 
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 765@
goto_if_false @TRIA_16229
get_script_task_status 914@(759@,12i) {taskId} 1489 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16222
goto @TRIA_19715

:TRIA_16222
goto @TRIA_16236

:TRIA_16229
goto @TRIA_19715

:TRIA_16236
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 819@
  is_int_lvar_greater_than_int_lvar 821@ > 927@(759@,12i)
goto_if_false @TRIA_16413
if 
  locate_char_any_means_3d 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @TRIA_16413
if 
  2 > 927@(759@,12i)
goto_if_false @TRIA_16406
get_script_task_status 914@(759@,12i) {taskId} 2017 {var_status} 731@(759@,12i)
if 
  is_int_lvar_equal_to_constant 731@(759@,12i) == 7
goto_if_false @TRIA_16399
goto @TRIA_19715

:TRIA_16399
goto @TRIA_16413

:TRIA_16406
goto @TRIA_19715

:TRIA_16413
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_18566
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_17226
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_17201
if 
  not is_char_in_car $scplayer {vehicle} 902@(941@,12i)
goto_if_false @TRIA_16901
if 
  782@ == 0
goto_if_false @TRIA_16626
delete_checkpoint 963@
remove_blip 939@
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_16581
939@ = add_blip_for_car 902@(941@,12i)
set_blip_as_friendly 939@ {state} True

:TRIA_16581
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 25400
782@ = 1

:TRIA_16626
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_16675
764@ = 0

:TRIA_16675
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_16719
print_now 'RACES20' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_16719
add_next_message_to_previous_briefs False
if 
  764@ == 1
goto_if_false @TRIA_16767
print_with_number_now 'RACE_51' {num} 764@ {duration} 200 {flag} 1
goto @TRIA_16786

:TRIA_16767
print_with_number_now 'RACES50' {num} 764@ {duration} 200 {flag} 1

:TRIA_16786
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 828@
goto_if_false @TRIA_16894
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_16894
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_16871
goto @TRIA_22664
goto @TRIA_16894

:TRIA_16871
print_now 'RACES_8' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_16894
goto @TRIA_17194

:TRIA_16901
if 
  782@ == 1
goto_if_false @TRIA_17194
clear_this_print 'RACES50'
remove_blip 939@
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = add_blip_for_coord 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17096
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @TRIA_17187

:TRIA_17096
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17145
762@ = 1

:TRIA_17145
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_17187
782@ = 0

:TRIA_17194
goto @TRIA_17226

:TRIA_17201
print_now 'RACES24' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_17226
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 1
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_than_int_lvar 765@ > 927@(759@,12i)
goto_if_false @TRIA_17896
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_17896
if 
  is_char_in_any_car $scplayer
goto_if_false @TRIA_17603
if 
  782@ == 0
goto_if_false @TRIA_17436
store_car_char_is_in $scplayer {var_handle} 902@(941@,12i)
delete_checkpoint 963@
remove_blip 939@
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_17391
939@ = add_blip_for_car 902@(941@,12i)
set_blip_as_friendly 939@ {state} True

:TRIA_17391
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 25400
782@ = 1

:TRIA_17436
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_17485
764@ = 0

:TRIA_17485
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_17529
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_17529
add_next_message_to_previous_briefs False
if 
  764@ == 1
goto_if_false @TRIA_17577
print_with_number_now 'RACE_49' {num} 764@ {duration} 200 {flag} 1
goto @TRIA_17596

:TRIA_17577
print_with_number_now 'RACES48' {num} 764@ {duration} 200 {flag} 1

:TRIA_17596
goto @TRIA_17896

:TRIA_17603
if 
  782@ == 1
goto_if_false @TRIA_17896
clear_this_print 'RACES48'
remove_blip 939@
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = add_blip_for_coord 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17798
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @TRIA_17889

:TRIA_17798
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_17847
762@ = 1

:TRIA_17847
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_17889
782@ = 0

:TRIA_17896
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 1
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 765@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_18566
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_18566
if 
  is_char_in_any_car $scplayer
goto_if_false @TRIA_18273
if 
  782@ == 0
goto_if_false @TRIA_18106
store_car_char_is_in $scplayer {var_handle} 902@(941@,12i)
delete_checkpoint 963@
remove_blip 939@
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_18061
939@ = add_blip_for_car 902@(941@,12i)
set_blip_as_friendly 939@ {state} True

:TRIA_18061
set_lvar_int_to_lvar_int 799@ = 759@
866@(759@,12f) += 1000.0
set_lvar_int_to_var_int 800@ = $game_timer
800@ += 5000
782@ = 1

:TRIA_18106
set_lvar_int_to_lvar_int 764@ = 800@
sub_int_var_from_int_lvar 764@ -= $game_timer
764@ /= 1000
if 
  1 > 764@
goto_if_false @TRIA_18155
764@ = 0

:TRIA_18155
if 
  is_int_var_greater_than_int_lvar $game_timer > 800@
goto_if_false @TRIA_18199
print_now 'RACES25' {time} 5000 {flag} 1
goto @TRIA_22646
return 

:TRIA_18199
add_next_message_to_previous_briefs False
if 
  764@ == 1
goto_if_false @TRIA_18247
print_with_number_now 'RACE_49' {num} 764@ {duration} 200 {flag} 1
goto @TRIA_18266

:TRIA_18247
print_with_number_now 'RACES48' {num} 764@ {duration} 200 {flag} 1

:TRIA_18266
goto @TRIA_18566

:TRIA_18273
if 
  782@ == 1
goto_if_false @TRIA_18566
clear_this_print 'RACES48'
remove_blip 939@
866@(759@,12f) -= 1000.0
760@ = 0
set_lvar_int_to_lvar_int 762@ = 118@
762@ -= 1
939@ = add_blip_for_coord 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_18468
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @TRIA_18559

:TRIA_18468
set_lvar_int_to_lvar_int 762@ = 927@(799@,12i)
762@ += 1
if 
  is_int_lvar_equal_to_int_lvar 927@(799@,12i) == 853@
goto_if_false @TRIA_18517
762@ = 1

:TRIA_18517
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(799@,12f) {y} 866@(799@,12f) {z} 878@(799@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_18559
782@ = 0

:TRIA_18566
759@ += 1
goto @TRIA_11919

:TRIA_18580
draw_rect 40@ {y} 52@ {width} 64@ {height} 76@ {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 39@ {y} 51@ {width} 63@ {height} 75@ {r} 134 {g} 155 {b} 184 {a} 255
draw_rect 34@ {y} 46@ {width} 58@ {height} 70@ {r} 0 {g} 0 {b} 0 {a} 255
942@ += 1
gosub @TRIA_19647
set_text_scale 59@ {heightScale} 71@
if 
  942@ == 1
goto_if_false @TRIA_18709
display_text 35@ {offsetTop} 47@ {key} 'ST'

:TRIA_18709
if 
  942@ == 2
goto_if_false @TRIA_18744
display_text 35@ {offsetTop} 47@ {key} 'ND'

:TRIA_18744
if 
  942@ == 3
goto_if_false @TRIA_18779
display_text 35@ {offsetTop} 47@ {key} 'RD'

:TRIA_18779
if 
  942@ > 3
goto_if_false @TRIA_18814
display_text 35@ {offsetTop} 47@ {key} 'TH'

:TRIA_18814
if 
  7 >= 942@
goto_if_false @TRIA_19083
set_lvar_float_to_lvar_float 779@ = 770@
set_lvar_float_to_lvar_float 780@ = 773@
set_lvar_float_to_lvar_float 781@ = 776@
if 
  $triathalon_selection == 2
goto_if_false @TRIA_18939
if or
  927@(759@,12i) == 19
  927@(759@,12i) == 20
  927@(759@,12i) == 37
  927@(759@,12i) == 38
goto_if_false @TRIA_18939
779@ = 20.0

:TRIA_18939
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19011
if or
  927@(759@,12i) == 69
  927@(759@,12i) == 70
  927@(759@,12i) == 71
goto_if_false @TRIA_19011
779@ = 20.0

:TRIA_19011
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19083
if or
  927@(759@,12i) == 89
  927@(759@,12i) == 90
  927@(759@,12i) == 91
goto_if_false @TRIA_19083
779@ = 20.0

:TRIA_19083
if and
  942@ > 7
  9 > 942@
goto_if_false @TRIA_19359
set_lvar_float_to_lvar_float 779@ = 771@
set_lvar_float_to_lvar_float 780@ = 774@
set_lvar_float_to_lvar_float 781@ = 777@
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19215
if or
  927@(759@,12i) == 19
  927@(759@,12i) == 20
  927@(759@,12i) == 37
  927@(759@,12i) == 38
goto_if_false @TRIA_19215
779@ = 20.0

:TRIA_19215
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19287
if or
  927@(759@,12i) == 69
  927@(759@,12i) == 70
  927@(759@,12i) == 71
goto_if_false @TRIA_19287
779@ = 20.0

:TRIA_19287
if 
  $triathalon_selection == 2
goto_if_false @TRIA_19359
if or
  927@(759@,12i) == 91
  927@(759@,12i) == 92
  927@(759@,12i) == 93
goto_if_false @TRIA_19359
779@ = 20.0

:TRIA_19359
if 
  942@ == 9
goto_if_false @TRIA_19401
set_lvar_float_to_lvar_float 779@ = 772@
set_lvar_float_to_lvar_float 780@ = 775@
set_lvar_float_to_lvar_float 781@ = 778@

:TRIA_19401
gosub @TRIA_19647
set_text_scale 60@ {heightScale} 72@
set_text_centre True
display_text_with_number 36@ {offsetTop} 48@ {key} 'NUMBER' {num} 942@
gosub @TRIA_19647
set_text_scale 61@ {heightScale} 73@
display_text_with_number 37@ {offsetTop} 49@ {key} 'OUT_OF' {num} 118@
$game_timer = get_game_timer 
set_lvar_int_to_var_int 959@ = $game_timer
sub_int_lvar_from_int_lvar 959@ -= 767@
959@ /= 1000
set_lvar_int_to_lvar_int 763@ = 959@
763@ /= 60
set_lvar_int_to_lvar_int 762@ = 763@
762@ *= 60
set_lvar_int_to_lvar_int 764@ = 959@
sub_int_lvar_from_int_lvar 764@ -= 762@
gosub @TRIA_19647
set_text_centre True
set_text_scale 62@ {heightScale} 74@
if 
  764@ > 9
goto_if_false @TRIA_19617
display_text_with_2_numbers 38@ {offsetTop} 50@ {key} 'TIME' {num1} 763@ {num2} 764@
goto @TRIA_19640

:TRIA_19617
display_text_with_2_numbers 38@ {offsetTop} 50@ {key} 'TIME_0' {num1} 763@ {num2} 764@

:TRIA_19640
goto @TRIA_8995

:TRIA_19647
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:TRIA_19715
if 
  940@ == 7
goto_if_false @TRIA_19740
940@ = 8

:TRIA_19740
927@(759@,12i) += 1
set_lvar_int_to_lvar_int 762@ = 927@(759@,12i)
set_lvar_float_to_lvar_float 854@(759@,12f) = 143@(762@,120f)
set_lvar_float_to_lvar_float 866@(759@,12f) = 263@(762@,120f)
set_lvar_float_to_lvar_float 878@(759@,12f) = 383@(762@,120f)
if 
  is_int_lvar_equal_to_int_var 914@(759@,12i) == $scplayer
goto_if_false @TRIA_21781
if 
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 828@
goto_if_false @TRIA_19919
942@ += 1
if 
  1 >= 942@
goto_if_false @TRIA_19896
goto @TRIA_22664
goto @TRIA_19919

:TRIA_19896
print_now 'RACES_8' {time} 5000 {flag} 1
goto @TRIA_22646

:TRIA_19919
if 
  817@ == 0
goto_if_false @TRIA_19978
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 820@
goto_if_false @TRIA_19978
print_help 'TRAI2'
817@ = 1

:TRIA_19978
if 
  817@ == 1
goto_if_false @TRIA_20037
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 822@
goto_if_false @TRIA_20037
print_help 'TRAI3'
817@ = 2

:TRIA_20037
if 
  817@ == 2
goto_if_false @TRIA_20096
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_20096
print_help 'TRAI4'
817@ = 3

:TRIA_20096
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 939@
762@ += 1
set_lvar_float_to_lvar_float 960@ = 143@(762@,120f)
set_lvar_float_to_lvar_float 961@ = 263@(762@,120f)
set_lvar_float_to_lvar_float 962@ = 383@(762@,120f)
939@ = add_blip_for_coord 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f)
change_blip_colour 939@ {color} BlipColor.Red
change_blip_display 939@ {display} BlipDisplay.BlipOnly
change_blip_scale 939@ {size} 3
if 
  940@ == 1
goto_if_false @TRIA_20271
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_20271
delete_checkpoint 963@
if 
  is_int_lvar_greater_than_int_lvar 853@ > 927@(759@,12i)
goto_if_false @TRIA_20348
963@ = create_checkpoint CheckpointType.TubeArrow {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0
goto @TRIA_20390

:TRIA_20348
963@ = create_checkpoint CheckpointType.TubeEnd {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {pointX} 960@ {pointY} 961@ {pointZ} 962@ {radius} 6.0

:TRIA_20390
if 
  927@(759@,12i) == 3
goto_if_false @TRIA_20472
delete_char 954@
delete_char 943@
delete_char 944@
delete_char 945@
delete_char 946@
delete_char 947@
delete_char 948@
delete_char 949@
delete_char 950@
delete_char 951@
delete_char 952@
delete_char 953@

:TRIA_20472
set_lvar_int_to_lvar_int 762@ = 824@
762@ -= 3
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 762@
goto_if_false @TRIA_21387
768@ = create_car 841@ {x} 143@(825@,120f) {y} 263@(825@,120f) {z} 383@(825@,120f)
set_lvar_int_to_lvar_int 762@ = 824@
762@ -= 1
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} 0.8
954@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 954@ {x} 143@(762@,120f) {y} 263@(824@,120f) {z} 383@(824@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} 0.8
943@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 943@ {x} 143@(762@,120f) {y} 263@(824@,120f) {z} 383@(824@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} 0.8
944@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 944@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} 0.8
945@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 945@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} 0.8
946@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 946@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} 0.8
947@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 947@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} 0.8
948@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 948@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} 0.8
949@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 949@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} 0.8
950@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 950@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} 0.8
951@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 951@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} 0.8
952@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 952@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
$x, $y, $z = get_offset_from_car_in_world_coords 768@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} 0.8
953@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 953@ {x} 143@(762@,120f) {y} 263@(762@,120f) {z} 383@(762@,120f)
delete_car 768@

:TRIA_21387
set_lvar_int_to_lvar_int 765@ = 824@
765@ += 2
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 765@
goto_if_false @TRIA_21485
mark_char_as_no_longer_needed 954@
mark_char_as_no_longer_needed 943@
mark_char_as_no_longer_needed 944@
mark_char_as_no_longer_needed 945@
mark_char_as_no_longer_needed 946@
mark_char_as_no_longer_needed 947@
mark_char_as_no_longer_needed 948@
mark_char_as_no_longer_needed 949@
mark_char_as_no_longer_needed 950@
mark_char_as_no_longer_needed 951@
mark_char_as_no_longer_needed 952@
mark_char_as_no_longer_needed 953@

:TRIA_21485
if 
  927@(759@,12i) == 21
goto_if_false @TRIA_21538
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_21538
set_car_watertight 902@(941@,12i) {state} True

:TRIA_21538
if 
  927@(759@,12i) == 22
goto_if_false @TRIA_21591
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_21591
set_car_watertight 902@(941@,12i) {state} False

:TRIA_21591
set_lvar_int_to_lvar_int 765@ = 826@
765@ += 2
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 765@
goto_if_false @TRIA_21689
mark_char_as_no_longer_needed 954@
mark_char_as_no_longer_needed 943@
mark_char_as_no_longer_needed 944@
mark_char_as_no_longer_needed 945@
mark_char_as_no_longer_needed 946@
mark_char_as_no_longer_needed 947@
mark_char_as_no_longer_needed 948@
mark_char_as_no_longer_needed 949@
mark_char_as_no_longer_needed 950@
mark_char_as_no_longer_needed 951@
mark_char_as_no_longer_needed 952@
mark_char_as_no_longer_needed 953@

:TRIA_21689
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_21774
if 
  not is_car_dead 902@(941@,12i)
goto_if_false @TRIA_21774
if 
  is_char_in_car $scplayer {vehicle} 902@(941@,12i)
goto_if_false @TRIA_21774
task_car_temp_action $scplayer {vehicle} 902@(941@,12i) {actionId} TempAction.HandbrakeStraight {time} 2000000

:TRIA_21774
goto @TRIA_22639

:TRIA_21781
if 
  not is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 828@
goto_if_false @TRIA_22639
clear_char_tasks 914@(759@,12i)
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 820@
goto_if_false @TRIA_22039
task_go_straight_to_coord 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@ {speed} MoveState.Sprint {time} -2
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "SPRINT_PANIC"
goto_if_false @TRIA_21926
set_char_anim_speed 914@(759@,12i) {animName} "SPRINT_PANIC" {animSpeed} 781@

:TRIA_21926
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "RUN_CIVI"
goto_if_false @TRIA_21978
set_char_anim_speed 914@(759@,12i) {animName} "RUN_CIVI" {animSpeed} 781@

:TRIA_21978
if 
  is_char_playing_anim 914@(759@,12i) {animationName} "WALK_CIVI"
goto_if_false @TRIA_22032
set_char_anim_speed 914@(759@,12i) {animName} "WALK_CIVI" {animSpeed} 781@

:TRIA_22032
goto @TRIA_16413

:TRIA_22039
if and
  is_int_lvar_greater_than_int_lvar 927@(759@,12i) > 820@
  is_int_lvar_greater_or_equal_to_int_lvar 821@ >= 927@(759@,12i)
goto_if_false @TRIA_22375
if 
  is_char_in_water 914@(759@,12i)
goto_if_false @TRIA_22316
set_lvar_float_to_lvar_float 785@ = 854@(759@,12f)
add_float_lvar_to_float_lvar 785@ += 695@(759@,12f)
set_lvar_float_to_lvar_float 786@ = 866@(759@,12f)
add_float_lvar_to_float_lvar 786@ += 707@(759@,12f)
task_swim_to_coord 914@(759@,12i) {x} 785@ {y} 786@ {z} 878@(759@,12f)
set_swim_speed 914@(759@,12i) {speed} 780@
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 821@
goto_if_false @TRIA_22309
if 
  804@(759@,12i) == 0
goto_if_false @TRIA_22309
if 
  not is_car_dead 902@(759@,12i)
goto_if_false @TRIA_22309
803@ = open_sequence_task 
task_go_straight_to_coord -1 {x} 792@ {y} 793@ {z} 794@ {speed} MoveState.Sprint {time} -2
task_enter_car_as_driver -1 {vehicle} 902@(759@,12i) {time} -2
close_sequence_task 803@
perform_sequence_task 914@(759@,12i) {sequence} 803@
clear_sequence_task 803@
804@(759@,12i) = 1

:TRIA_22309
goto @TRIA_22368

:TRIA_22316
if 
  927@(759@,12i) == 2
goto_if_false @TRIA_22368
task_go_straight_to_coord 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@ {speed} MoveState.Sprint {time} -2

:TRIA_22368
goto @TRIA_16413

:TRIA_22375
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 823@
  is_int_lvar_greater_or_equal_to_int_lvar 824@ >= 927@(759@,12i)
goto_if_false @TRIA_22480
if 
  804@(759@,12i) > 0
goto_if_false @TRIA_22473
task_car_drive_to_coord 914@(759@,12i) {vehicle} -1 {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} 779@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:TRIA_22473
goto @TRIA_16413

:TRIA_22480
if and
  is_int_lvar_greater_or_equal_to_int_lvar 927@(759@,12i) >= 826@
  is_int_lvar_greater_or_equal_to_int_lvar 827@ >= 927@(759@,12i)
goto_if_false @TRIA_22639
if 
  is_int_lvar_equal_to_int_lvar 927@(759@,12i) == 826@
goto_if_false @TRIA_22579
task_go_straight_to_coord 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} MoveState.Sprint {time} -2
goto @TRIA_22632

:TRIA_22579
set_follow_node_threshold_distance 914@(759@,12i) {range} 20.0
task_follow_path_nodes_to_coord_with_radius 914@(759@,12i) {x} 854@(759@,12f) {y} 866@(759@,12f) {z} 878@(759@,12f) {speed} MoveState.Sprint {time} -2 {radius} 8.0

:TRIA_22632
goto @TRIA_16413

:TRIA_22639
goto @TRIA_16413

:TRIA_22646
print_big 'RACEFA' {time} 5000 {style} TextStyle.Middle
return 

:TRIA_22664
clear_wanted_level $player1
play_mission_passed_tune 2
print_big 'RACES18' {time} 5000 {style} TextStyle.Middle
if 
  $triathalon_selection == 1
goto_if_false @TRIA_22734
print_with_number 'TRAI1' {num} 10000 {duration} 5000 {flag} 2
add_score $player1 {money} 10000

:TRIA_22734
if 
  $triathalon_selection == 2
goto_if_false @TRIA_22779
print_with_number 'TRAI1' {num} 20000 {duration} 5000 {flag} 2
add_score $player1 {money} 20000

:TRIA_22779
955@ /= 1000
set_lvar_int_to_lvar_int 763@ = 955@
763@ /= 60
set_lvar_int_to_lvar_int 762@ = 763@
762@ *= 60
set_lvar_int_to_lvar_int 764@ = 955@
sub_int_lvar_from_int_lvar 764@ -= 762@
if 
  $flag_triathalon_passed_1stime == 0
goto_if_false @TRIA_22885
if 
  $triathalon_selection == 2
goto_if_false @TRIA_22876
set_int_stat StatId.Stamina {value} 1000

:TRIA_22876
register_oddjob_mission_passed 
$flag_triathalon_passed_1stime = 1

:TRIA_22885
return 

:TRIA_22887
$onmission = 0
mark_model_as_no_longer_needed 829@
mark_model_as_no_longer_needed 830@
mark_model_as_no_longer_needed 831@
mark_model_as_no_longer_needed 832@
mark_model_as_no_longer_needed 833@
mark_model_as_no_longer_needed 834@
mark_model_as_no_longer_needed 835@
mark_model_as_no_longer_needed 836@
mark_model_as_no_longer_needed 837@
mark_model_as_no_longer_needed 838@
mark_model_as_no_longer_needed 839@
mark_model_as_no_longer_needed 840@
mark_model_as_no_longer_needed 154
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 45
mark_model_as_no_longer_needed 167
mark_model_as_no_longer_needed 510
mark_char_as_no_longer_needed 954@
mark_char_as_no_longer_needed 943@
mark_char_as_no_longer_needed 944@
mark_char_as_no_longer_needed 945@
mark_char_as_no_longer_needed 946@
mark_char_as_no_longer_needed 947@
mark_char_as_no_longer_needed 948@
mark_char_as_no_longer_needed 949@
mark_char_as_no_longer_needed 950@
mark_char_as_no_longer_needed 951@
mark_char_as_no_longer_needed 952@
mark_char_as_no_longer_needed 953@
display_car_names True
remove_blip 939@
$timer_mobile_start = get_game_timer 
disable_all_entry_exits False
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_message_formatting False {margin} 380 {width} 464
use_text_commands False
mission_has_finished 
return 

//-------------Mission 131---------------
// Originally: Courier

:BCOUR
script_name 'BCOUR'
gosub @BCOUR_47
if 
  has_deatharrest_been_executed 
goto_if_false @BCOUR_38
gosub @BCOUR_14263

:BCOUR_38
gosub @BCOUR_16219
terminate_this_script 

:BCOUR_47
if 
  not is_char_dead $scplayer
goto_if_false @BCOUR_71
872@ = get_city_player_is_in $player1

:BCOUR_71
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_109
if 
  $courierLA_passed_once == 0
goto_if_false @BCOUR_109
register_mission_given 

:BCOUR_109
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_147
if 
  $courierLV_passed_once == 0
goto_if_false @BCOUR_147
register_mission_given 

:BCOUR_147
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_185
if 
  $courierSF_passed_once == 0
goto_if_false @BCOUR_185
register_mission_given 

:BCOUR_185
$onmission = 1
wait 0
wait 0
load_mission_text 'BCOU'
set_fading_colour 0 {g} 0 {b} 0
37@ = create_object #KMB_PACKET {x} -2492.5081 {y} 0.5813 {z} 24.7593
if 
  746@ == -13
goto_if_false @BCOUR_284
38@ = create_char PedType.Mission1 {modelId} 29 {x} -2455.6621 {y} -105.3974 {z} 26.5568

:BCOUR_284
request_model 586
request_model 29
request_animation "SMOKING"
load_all_models_now 

:BCOUR_306
if or
  not has_model_loaded 586
  not has_model_loaded 29
  not has_animation_loaded "SMOKING"
goto_if_false @BCOUR_348
wait 0
goto @BCOUR_306

:BCOUR_348
if 
  not is_char_dead $scplayer
goto_if_false @BCOUR_371
set_player_control $player1 {state} True

:BCOUR_371
875@ = 0
882@ = 0
879@ = 0
880@ = 0
866@ = 0
867@ = 0
34@ = 0
869@ = 0
870@ = 0
871@ = 0
744@ = 0
745@ = 0
743@ = 0
746@ = 0
747@ = 0
748@ = 0
749@ = 0
868@ = 0
760@ = 0
761@ = 0
762@ = 0
383@ = -2594.8159
413@ = 52.5992
443@ = 3.3359
103@ = -2797.9519
133@ = 209.7299
163@ = 6.1963
104@ = -2492.771
134@ = -196.6625
164@ = 24.6236
105@ = -2611.989
135@ = -110.7328
165@ = 3.331
106@ = -2176.3921
136@ = -41.7131
166@ = 34.3125
107@ = -2243.896
137@ = 603.6998
167@ = 40.1216
108@ = -1569.994
138@ = 662.3286
168@ = 6.1874
109@ = -2756.3711
139@ = 379.1574
169@ = 3.3281
110@ = -2609.9021
140@ = 131.9432
170@ = 3.326
111@ = -2743.8579
141@ = 761.4077
171@ = 53.3828
112@ = -2600.543
142@ = 980.7458
172@ = 77.2676
113@ = -2153.959
143@ = 716.1611
173@ = 68.5511
114@ = -2153.604
144@ = 251.9152
174@ = 34.3125
115@ = -2808.2849
145@ = -340.2412
175@ = 6.1797
116@ = -2428.8459
146@ = -164.1249
176@ = 34.3125
117@ = -1984.213
147@ = 128.7572
177@ = 26.6797
118@ = -1888.46
148@ = 819.6346
178@ = 34.1797
119@ = -1503.329
149@ = 919.9264
179@ = 6.1776
120@ = -2533.885
150@ = 987.9146
180@ = 77.3017
473@ = 1346.019
503@ = -1741.781
533@ = 12.397
193@ = 1286.769
223@ = -1676.166
253@ = 12.5625
194@ = 1544.063
224@ = -1675.754
254@ = 12.56
195@ = 1320.097
225@ = -1795.099
255@ = 12.5391
196@ = 1614.261
226@ = -1885.756
256@ = 12.5536
197@ = 2009.173
227@ = -1716.913
257@ = 12.5469
198@ = 1256.5129
228@ = -1010.974
258@ = 32.9002
199@ = 1016.673
229@ = -1508.782
259@ = 12.541
200@ = 1286.769
230@ = -1676.166
260@ = 12.5625
201@ = 1544.063
231@ = -1675.754
261@ = 12.56
202@ = 1320.097
232@ = -1795.099
262@ = 12.5391
203@ = 1614.261
233@ = -1885.756
263@ = 12.5536
204@ = 2009.173
234@ = -1716.913
264@ = 12.5469
205@ = 2865.3889
235@ = -1438.957
265@ = 9.9659
206@ = 2740.561
236@ = -2103.4419
266@ = 11.1221
207@ = 1346.455
237@ = -989.3849
267@ = 28.0294
208@ = 150.4926
238@ = -1945.385
268@ = 2.7657
209@ = 378.0941
239@ = -2053.585
269@ = 7.0156
210@ = 804.5734
240@ = -1020.714
270@ = 25.6819
563@ = 1904.681
593@ = 2096.1699
623@ = 9.8203
283@ = 1698.4041
313@ = 2054.8979
343@ = 9.8203
284@ = 2159.833
314@ = 2066.728
344@ = 9.8125
285@ = 1935.701
315@ = 2158.4641
345@ = 9.8203
286@ = 1654.3311
316@ = 1803.812
346@ = 9.8125
287@ = 2083.325
317@ = 1503.754
347@ = 9.8125
288@ = 1720.11
318@ = 1298.548
348@ = 9.8203
289@ = 2233.8369
319@ = 1282.1949
349@ = 9.8203
290@ = 1698.4041
320@ = 2063.969
350@ = 9.8203
291@ = 2159.833
321@ = 2066.728
351@ = 9.8125
292@ = 1935.701
322@ = 2158.4641
352@ = 9.8203
293@ = 1654.3311
323@ = 1803.812
353@ = 9.8125
294@ = 2083.325
324@ = 1503.754
354@ = 9.8125
295@ = 1917.762
325@ = 2768.874
355@ = 9.8203
296@ = 2344.5691
326@ = 2779.9651
356@ = 9.8203
297@ = 973.123
327@ = 1782.238
357@ = 7.6562
298@ = 2346.52
328@ = 2296.9729
358@ = 7.1478
299@ = 1488.175
329@ = 2148.4741
359@ = 9.8203
300@ = 1104.697
330@ = 1648.064
360@ = 4.8273
653@ = 0
654@ = 0
655@ = 0
656@ = 0
657@ = 0
658@ = 0
659@ = 0
660@ = 0
661@ = 0
662@ = 0
663@ = 0
664@ = 0
665@ = 0
666@ = 0
667@ = 0
668@ = 0
669@ = 0
670@ = 0
671@ = 0
672@ = 0
673@ = 0
674@ = 0
675@ = 0
676@ = 0
677@ = 0
678@ = 0
679@ = 0
680@ = 0
681@ = 0
753@ = 99
set_player_can_do_drive_by $player1 {state} False
if 
  not is_player_playing $player1
goto_if_false @BCOUR_2468
goto @BCOUR_14263

:BCOUR_2468
if 
  is_char_in_any_car $scplayer
goto_if_false @BCOUR_2492
36@ = store_car_char_is_in $scplayer

:BCOUR_2492
753@ = 99
754@ = 0
755@ = 0
758@ = 0
756@ = 0
757@ = 0
857@ = 0
862@ = 0
881@ = 0

:BCOUR_2555
wait 0
if 
  882@ == 0
goto_if_false @BCOUR_2591
load_mission_audio MissionAudioSlot.Slot3 {audioId} 5600
882@ = 1

:BCOUR_2591
if 
  882@ == 1
goto_if_false @BCOUR_2631
if 
  has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BCOUR_2631
882@ = 2

:BCOUR_2631
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @BCOUR_2656
$bcou_timelimit += 60000

:BCOUR_2656
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @BCOUR_2681
$bcou_timelimit -= 45000

:BCOUR_2681
if 
is_ps2_keyboard_key_pressed 80
goto_if_false @BCOUR_2703
alter_wanted_level $player1 {wantedLevel} 2

:BCOUR_2703
if 
is_ps2_keyboard_key_pressed 79
goto_if_false @BCOUR_2725
alter_wanted_level $player1 {wantedLevel} 0

:BCOUR_2725
if 
is_ps2_keyboard_key_pressed 88
goto_if_false @BCOUR_2765
if 
  881@ == 0
goto_if_false @BCOUR_2765
881@ = 1

:BCOUR_2765
if 
is_ps2_keyboard_key_pressed 90
goto_if_false @BCOUR_2787
881@ = 0

:BCOUR_2787
if 
  862@ == 1
goto_if_false @BCOUR_2838
clear_onscreen_timer $bcou_timelimit
clear_onscreen_counter $bags_on_bike
print_now 'BCOU_11' {time} 6000 {flag} 1
goto @BCOUR_14263

:BCOUR_2838
if 
  not is_player_playing $player1
goto_if_false @BCOUR_2861
goto @BCOUR_14263

:BCOUR_2861
if 
  is_car_dead 36@
goto_if_false @BCOUR_2884
goto @BCOUR_14263

:BCOUR_2884
if 
  not is_car_dead 36@
goto_if_false @BCOUR_2959
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_2959
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BCOUR_2959
print_now 'BCOU_35' {time} 6000 {flag} 1
goto @BCOUR_14263

:BCOUR_2959
if 
  743@ == 10
goto_if_false @BCOUR_2984
goto @BCOUR_15142

:BCOUR_2984
if 
  743@ == -99
goto_if_false @BCOUR_3074
create_object_no_offset #KMB_PACKET {x} 0.0 {y} 0.0 {z} 100.0 {var_handle} 763@(793@,30i)
create_fx_system_on_object "COKE_TRAIL" {object} 763@(793@,30i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True {var_handle} 827@(793@,30i)

:BCOUR_3074
if 
  749@ == 1
goto_if_false @BCOUR_3116
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCOUR_3116
748@ = 50

:BCOUR_3116
if 
  868@ == 1
goto_if_false @BCOUR_3172
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BCOUR_3172
866@ = 2
set_player_control $player1 {state} True
868@ = 0

:BCOUR_3172
if 
  753@ == 0
goto_if_false @BCOUR_3289
if 
  not is_car_dead 36@
goto_if_false @BCOUR_3289
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_3289
TIMERB = 0
754@ = 1
set_lvar_int_to_var_int 752@ = $bcou_timelimit
752@ /= 1000
753@ = 1
clear_prints 
add_next_message_to_previous_briefs False
print_with_number_now 'BCOU_37' {num} $bcou_bikeostimer {duration} 4000 {flag} 1
clear_help 

:BCOUR_3289
if 
  753@ == 1
goto_if_false @BCOUR_3442
if 
  not is_car_dead 36@
goto_if_false @BCOUR_3442
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_3442
TIMERB = 0
753@ = 0
754@ = 0
875@ = 0
clear_prints 
clear_help 
if 
  746@ > 9
goto_if_false @BCOUR_3408
print_now 'BCOU_6' {time} 4000 {flag} 1

:BCOUR_3408
if 
  10 > 746@
goto_if_false @BCOUR_3442
print_now 'BCOU_3' {time} 4000 {flag} 1

:BCOUR_3442
if 
  754@ == 1
goto_if_false @BCOUR_3725
set_lvar_int_to_lvar_int 751@ = TIMERB
751@ /= 1000
if 
  875@ == 0
goto_if_false @BCOUR_3527
if and
  21000 > $bcou_timelimit
  $bcou_timelimit > 1
goto_if_false @BCOUR_3527
875@ = 1

:BCOUR_3527
if 
  875@ == 0
goto_if_false @BCOUR_3571
if 
  $bcou_timelimit > 20099
goto_if_false @BCOUR_3571
875@ = 2

:BCOUR_3571
if 
  875@ == 1
goto_if_false @BCOUR_3605
set_var_int_to_var_int $bcou_bikeostimer = $bcou_timelimit
$bcou_bikeostimer /= 1000

:BCOUR_3605
if 
  875@ == 2
goto_if_false @BCOUR_3638
$bcou_bikeostimer = 20
sub_int_lvar_from_int_var $bcou_bikeostimer -= 751@

:BCOUR_3638
clear_prints 
if 
  $bcou_bikeostimer > 0
goto_if_false @BCOUR_3681
add_next_message_to_previous_briefs False
print_with_number_now 'BCOU_37' {num} $bcou_bikeostimer {duration} 4000 {flag} 1

:BCOUR_3681
if 
  TIMERB > 21000
goto_if_false @BCOUR_3725
clear_prints 
print_now 'BCOU_35' {time} 6000 {flag} 1
goto @BCOUR_14263

:BCOUR_3725
if 
  746@ == -1
goto_if_false @BCOUR_4823
if 
  748@ == 0
goto_if_false @BCOUR_4010
39@ = load_char_decision_maker DecisionMakerType.Empty
delete_char 38@
clear_area -2455.6621 {y} -105.3974 {z} 26.5568 {radius} 10.0 {clearParticles} True
38@ = create_char PedType.Mission1 {modelId} 29 {x} -2455.6621 {y} -105.3974 {z} 26.5568
set_char_heading 38@ {heading} 176.0958
set_char_decision_maker 38@ {handleOrTemplate} 39@
set_player_control $player1 {state} False
switch_widescreen True
set_fixed_camera_position -2468.3931 {y} -96.8149 {z} 26.1614 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2467.6931 {y} -97.5246 {z} 26.0805 {switchStyle} SwitchType.JumpCut
if 
  not is_char_dead 38@
goto_if_false @BCOUR_3989
flush_route 
extend_route -2457.04 {y} -110.2905 {z} 25.0058
extend_route -2460.845 {y} -108.7783 {z} 24.9517
extend_route -2462.3711 {y} -106.9304 {z} 24.9069
task_follow_point_route 38@ {speed} MoveState.Run {mode} RouteMode.Once
set_follow_node_threshold_distance 38@ {range} 150.0

:BCOUR_3989
748@ = 10
749@ = 1
TIMERB = 0

:BCOUR_4010
if 
  748@ == 10
goto_if_false @BCOUR_4093
if 
  TIMERB > 4000
goto_if_false @BCOUR_4093
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4093
print_now 'BCOU_2' {time} 4000 {flag} 1
748@ = 15
TIMERB = 0

:BCOUR_4093
if 
  748@ == 15
goto_if_false @BCOUR_4160
if 
  TIMERB > 1000
goto_if_false @BCOUR_4160
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4160
748@ = 20
TIMERB = 0

:BCOUR_4160
if 
  748@ == 20
goto_if_false @BCOUR_4211
if 
  TIMERB > 1000
goto_if_false @BCOUR_4211
TIMERB = 0
748@ = 25

:BCOUR_4211
if 
  748@ == 25
goto_if_false @BCOUR_4283
if 
  TIMERB > 200
goto_if_false @BCOUR_4283
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4283
clear_char_tasks 38@
TIMERB = 0
748@ = 40

:BCOUR_4283
if 
  748@ == 40
goto_if_false @BCOUR_4433
if 
  TIMERB > 1000
goto_if_false @BCOUR_4336
print_now 'BCOU_3' {time} 4000 {flag} 1

:BCOUR_4336
if 
  TIMERB > 4000
goto_if_false @BCOUR_4433
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4401
clear_char_tasks 38@
task_go_straight_to_coord 38@ {x} -2457.0859 {y} -126.3415 {z} 25.013 {speed} MoveState.Run {time} 5000

:BCOUR_4401
TIMERB = 0
clear_prints 
print_now 'BCOU_1' {time} 4000 {flag} 1
748@ = 45

:BCOUR_4433
if 
  748@ == 45
goto_if_false @BCOUR_4477
if 
  TIMERB > 4000
goto_if_false @BCOUR_4477
748@ = 50

:BCOUR_4477
if 
  748@ == 50
goto_if_false @BCOUR_4713
clear_prints 
749@ = 0
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4560
clear_char_tasks 38@
set_char_coordinates 38@ {x} -2457.0859 {y} -126.3415 {z} 25.013
set_char_heading 38@ {heading} 180.0
delete_object 37@

:BCOUR_4560
switch_widescreen False
delete_object 37@
restore_camera_jumpcut 
set_player_control $player1 {state} True
748@ = 60
TIMERB = 0
746@ = 1
if 
  not is_car_dead 36@
goto_if_false @BCOUR_4622
force_car_lights 36@ {lightMode} CarLights.NoOverride

:BCOUR_4622
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4669
clear_char_tasks 38@
task_achieve_heading 38@ {heading} 100.0
print_now 'BCOU_4' {time} 6000 {flag} 1

:BCOUR_4669
753@ = 0
37@ = create_object #KMB_PACKET {x} -2458.249 {y} -98.5704 {z} 28.1875
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True

:BCOUR_4713
if 
  748@ == 60
goto_if_false @BCOUR_4823
if 
  TIMERB > 2000
goto_if_false @BCOUR_4823
if 
  not is_char_dead 38@
goto_if_false @BCOUR_4823
clear_char_tasks 38@
task_play_anim 38@ {animationName} "M_SMKSTND_LOOP" {animationFile} "SMOKING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
748@ = 99

:BCOUR_4823
if 
  746@ == 0
goto_if_false @BCOUR_5065
872@ = get_city_player_is_in $player1
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_4904
37@ = create_object #KMB_PACKET {x} 1361.558 {y} -1764.276 {z} 18.0781
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True

:BCOUR_4904
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_4966
37@ = create_object #KMB_PACKET {x} -2584.613 {y} 60.3094 {z} 3.9701
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True
switch_car_generator $gen_car21 {amount} 0

:BCOUR_4966
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_5021
37@ = create_object #KMB_PACKET {x} 1884.329 {y} 2078.7209 {z} 15.0869
set_object_collision 37@ {state} True
set_object_dynamic 37@ {state} True

:BCOUR_5021
print_now 'BCOU_4' {time} 6000 {flag} 1
TIMERA = 0
34@ = 1
753@ = 0
746@ = 1

:BCOUR_5065
if 
  34@ == 1
goto_if_false @BCOUR_5120
if 
  TIMERA > 7000
goto_if_false @BCOUR_5120
34@ = 0
print_help 'BCOU_84'

:BCOUR_5120
if 
  746@ == 1
goto_if_false @BCOUR_5808
755@ = 4
758@ = 3
756@ = 3
744@ = 0
759@ = 0
$bags_on_bike = 6
861@ = 0
867@ = 0

:BCOUR_5194
if 
  7 > 861@
goto_if_false @BCOUR_5237
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_5194

:BCOUR_5237
if 
  not is_car_dead 36@
goto_if_false @BCOUR_5808
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_5808
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_5435

:BCOUR_5290
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5435
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5290

:BCOUR_5435
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_5598

:BCOUR_5453
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5598
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5453

:BCOUR_5598
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_5761

:BCOUR_5616
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_5761
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5616

:BCOUR_5761
747@ = 0
746@ = 9
757@ = 0
$bcou_timelimit = 180000
display_onscreen_counter_with_string $bags_on_bike {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_5808
if 
  746@ == 2
goto_if_false @BCOUR_6496
755@ = 8
758@ = 7
756@ = 4
744@ = 3
759@ = 3
$bags_on_bike = 6
861@ = 0
867@ = 0

:BCOUR_5882
if 
  7 > 861@
goto_if_false @BCOUR_5925
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_5882

:BCOUR_5925
if 
  not is_car_dead 36@
goto_if_false @BCOUR_6496
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_6496
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_6123

:BCOUR_5978
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6123
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_5978

:BCOUR_6123
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_6286

:BCOUR_6141
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6286
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6141

:BCOUR_6286
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_6449

:BCOUR_6304
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6449
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6304

:BCOUR_6449
747@ = 0
746@ = 9
757@ = 0
$bcou_timelimit = 300000
display_onscreen_counter_with_string $bags_on_bike {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_6496
if 
  746@ == 3
goto_if_false @BCOUR_7184
755@ = 13
758@ = 12
756@ = 5
744@ = 7
759@ = 7
$bags_on_bike = 7
861@ = 0
867@ = 0

:BCOUR_6570
if 
  8 > 861@
goto_if_false @BCOUR_6613
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_6570

:BCOUR_6613
if 
  not is_car_dead 36@
goto_if_false @BCOUR_7184
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_7184
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_6811

:BCOUR_6666
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6811
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6666

:BCOUR_6811
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_6974

:BCOUR_6829
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_6974
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6829

:BCOUR_6974
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7137

:BCOUR_6992
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7137
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_6992

:BCOUR_7137
747@ = 0
746@ = 9
757@ = 0
$bcou_timelimit = 300000
display_onscreen_counter_with_string $bags_on_bike {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_7184
if 
  746@ == 4
goto_if_false @BCOUR_7946
755@ = 19
758@ = 18
756@ = 6
744@ = 12
759@ = 12
$bags_on_bike = 8
861@ = 0
867@ = 0

:BCOUR_7258
if 
  9 > 861@
goto_if_false @BCOUR_7301
797@(861@,30i) = 0
861@ += 1
goto @BCOUR_7258

:BCOUR_7301
if 
  not is_car_dead 36@
goto_if_false @BCOUR_7946
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_7946
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_7499

:BCOUR_7354
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7499
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 163@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_7354

:BCOUR_7499
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_7662

:BCOUR_7517
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7662
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 253@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} -2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_7517

:BCOUR_7662
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7825

:BCOUR_7680
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_7825
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)
set_lvar_float_to_lvar_float 713@(744@,30f) = 343@(744@,30f)
713@(744@,30f) += 2.2
create_checkpoint CheckpointType.TorusNoFade {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {pointX} -2000.0 {pointY} 2000.0 {pointZ} 0.0 {radius} 1.8 {var_handle} 683@(744@,30i)
744@ += 1
goto @BCOUR_7680

:BCOUR_7825
747@ = 0
746@ = 9
757@ = 0
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_7874
$bcou_timelimit = 600000

:BCOUR_7874
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_7902
$bcou_timelimit = 420000

:BCOUR_7902
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_7930
$bcou_timelimit = 480000

:BCOUR_7930
display_onscreen_counter_with_string $bags_on_bike {display} CounterDisplay.Number {text} 'BCOU_83'

:BCOUR_7946
if 
  746@ == 9
goto_if_false @BCOUR_9554
if 
  867@ == 0
goto_if_false @BCOUR_8046
if 
  not is_char_dead 38@
goto_if_false @BCOUR_8046
if 
  not locate_char_any_means_char_3d $scplayer {target} 38@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 100.0 {drawSphere} False
goto_if_false @BCOUR_8046
delete_char 38@
867@ = 1

:BCOUR_8046
if 
  not is_car_dead 36@
goto_if_false @BCOUR_9554
if 
  747@ == 0
goto_if_false @BCOUR_8297
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @BCOUR_8135
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BCOUR_8135
879@ = 0
gosub @BCOUR_12067
gosub @BCOUR_14183

:BCOUR_8135
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder2
goto_if_false @BCOUR_8190
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BCOUR_8190
879@ = 0
gosub @BCOUR_13125
gosub @BCOUR_14183

:BCOUR_8190
if 
  not is_car_dead 36@
goto_if_false @BCOUR_8297
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_8297
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True

:BCOUR_8240
if 
  is_int_lvar_greater_than_int_lvar 755@ > 744@
goto_if_false @BCOUR_8282
remove_blip 42@(744@,30i)
744@ += 1
goto @BCOUR_8240

:BCOUR_8282
set_lvar_int_to_lvar_int 744@ = 759@
747@ = 1

:BCOUR_8297
if 
  747@ == 1
goto_if_false @BCOUR_8553
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_8553
remove_blip 40@

:BCOUR_8339
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_8538
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_8524
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_8428
add_blip_for_coord 103@(744@,30f) {y} 133@(744@,30f) {z} 163@(744@,30f) {var_handle} 42@(744@,30i)

:BCOUR_8428
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_8476
add_blip_for_coord 193@(744@,30f) {y} 223@(744@,30f) {z} 253@(744@,30f) {var_handle} 42@(744@,30i)

:BCOUR_8476
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_8524
add_blip_for_coord 283@(744@,30f) {y} 313@(744@,30f) {z} 343@(744@,30f) {var_handle} 42@(744@,30i)

:BCOUR_8524
744@ += 1
goto @BCOUR_8339

:BCOUR_8538
747@ = 0
set_lvar_int_to_lvar_int 744@ = 759@

:BCOUR_8553
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_9477
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_8871

:BCOUR_8590
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_8871
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_8857
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_8857
if 
  locate_object_3d 763@(793@,30i) {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {xRadius} 0.7 {yRadius} 1.7 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCOUR_8857
remove_blip 42@(744@,30i)
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
increment_int_stat StatId.PizzasDelivered {value} 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 683@(744@,30i)
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_8841
clear_prints 
print_now 'BCOU_6' {time} 6000 {flag} 1
746@ = 10
goto @BCOUR_8857

:BCOUR_8841
print_now 'BCOU_5' {time} 6000 {flag} 1

:BCOUR_8857
744@ += 1
goto @BCOUR_8590

:BCOUR_8871
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_9170

:BCOUR_8889
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_9170
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_9156
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_9156
if 
  locate_object_3d 763@(793@,30i) {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {xRadius} 1.2 {yRadius} 1.7 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCOUR_9156
remove_blip 42@(744@,30i)
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
increment_int_stat StatId.PizzasDelivered {value} 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 683@(744@,30i)
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_9140
clear_prints 
print_now 'BCOU_6' {time} 6000 {flag} 1
746@ = 10
goto @BCOUR_9156

:BCOUR_9140
print_now 'BCOU_5' {time} 6000 {flag} 1

:BCOUR_9156
744@ += 1
goto @BCOUR_8889

:BCOUR_9170
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_9469

:BCOUR_9188
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_9469
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_9455
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_9455
if 
  locate_object_3d 763@(793@,30i) {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {xRadius} 1.2 {yRadius} 1.7 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCOUR_9455
remove_blip 42@(744@,30i)
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
increment_int_stat StatId.PizzasDelivered {value} 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundPartMissionComplete
delete_checkpoint 683@(744@,30i)
653@(744@,30i) = 1
757@ += 1
if 
  is_int_lvar_equal_to_int_lvar 757@ == 756@
goto_if_false @BCOUR_9439
clear_prints 
print_now 'BCOU_6' {time} 6000 {flag} 1
746@ = 10
goto @BCOUR_9455

:BCOUR_9439
print_now 'BCOU_5' {time} 6000 {flag} 1

:BCOUR_9455
744@ += 1
goto @BCOUR_9188

:BCOUR_9469
set_lvar_int_to_lvar_int 744@ = 759@

:BCOUR_9477
set_lvar_int_to_lvar_int 874@ = 756@
sub_int_lvar_from_int_lvar 874@ -= 757@
set_lvar_int_to_var_int 873@ = $bags_on_bike
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_9528
873@ += 1

:BCOUR_9528
if 
  is_int_lvar_greater_than_int_lvar 874@ > 873@
goto_if_false @BCOUR_9554
862@ = 1

:BCOUR_9554
if 
  746@ > 8
goto_if_false @BCOUR_9638
if 
  25 > 746@
goto_if_false @BCOUR_9638
if 
  1 > $bcou_timelimit
goto_if_false @BCOUR_9638
clear_prints 
print_now 'BCOU_33' {time} 6000 {flag} 1
clear_onscreen_timer $bcou_timelimit
goto @BCOUR_14263

:BCOUR_9638
if 
  746@ == 10
goto_if_false @BCOUR_9795
746@ = 20
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_9707
72@ = add_blip_for_coord 383@(745@,30f) {y} 413@(745@,30f) {z} 443@(745@,30f)

:BCOUR_9707
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_9751
72@ = add_blip_for_coord 473@(745@,30f) {y} 503@(745@,30f) {z} 533@(745@,30f)

:BCOUR_9751
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_9795
72@ = add_blip_for_coord 563@(745@,30f) {y} 593@(745@,30f) {z} 623@(745@,30f)

:BCOUR_9795
if 
  746@ == 20
goto_if_false @BCOUR_10546
35@ = get_area_visible 
if 
  35@ == 0
goto_if_false @BCOUR_9856
if 
  not is_minigame_in_progress 
goto_if_false @BCOUR_9856
set_player_control $player1 {state} True

:BCOUR_9856
if 
  not is_car_dead 36@
goto_if_false @BCOUR_10546
if 
  747@ == 0
goto_if_false @BCOUR_9936
if 
  not is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_9936
40@ = add_blip_for_car 36@
set_blip_as_friendly 40@ {state} True
remove_blip 72@
747@ = 1

:BCOUR_9936
if 
  747@ == 1
goto_if_false @BCOUR_10117
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10117
remove_blip 40@
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10022
72@ = add_blip_for_coord 383@(745@,30f) {y} 413@(745@,30f) {z} 443@(745@,30f)

:BCOUR_10022
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10066
72@ = add_blip_for_coord 563@(745@,30f) {y} 593@(745@,30f) {z} 623@(745@,30f)

:BCOUR_10066
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10110
72@ = add_blip_for_coord 473@(745@,30f) {y} 503@(745@,30f) {z} 533@(745@,30f)

:BCOUR_10110
747@ = 0

:BCOUR_10117
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10260
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10260
if 
  locate_char_in_car_3d $scplayer {x} 383@(745@,30f) {y} 413@(745@,30f) {z} 443@(745@,30f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCOUR_10260
set_player_control $player1 {state} False
if 
  is_car_stopped 36@
goto_if_false @BCOUR_10260
remove_blip 72@
clear_onscreen_timer $bcou_timelimit
clear_onscreen_counter $bags_on_bike
760@ += 1
746@ = 50

:BCOUR_10260
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10403
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10403
if 
  locate_char_in_car_3d $scplayer {x} 473@(745@,30f) {y} 503@(745@,30f) {z} 533@(745@,30f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCOUR_10403
set_player_control $player1 {state} False
if 
  is_car_stopped 36@
goto_if_false @BCOUR_10403
remove_blip 72@
clear_onscreen_timer $bcou_timelimit
clear_onscreen_counter $bags_on_bike
761@ += 1
746@ = 50

:BCOUR_10403
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10546
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_10546
if 
  locate_char_in_car_3d $scplayer {x} 563@(745@,30f) {y} 593@(745@,30f) {z} 623@(745@,30f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BCOUR_10546
set_player_control $player1 {state} False
if 
  is_car_stopped 36@
goto_if_false @BCOUR_10546
remove_blip 72@
clear_onscreen_timer $bcou_timelimit
clear_onscreen_counter $bags_on_bike
762@ += 1
746@ = 50

:BCOUR_10546
if 
  746@ == 50
goto_if_false @BCOUR_11105
set_player_control $player1 {state} True
868@ = 0
clear_prints 
print_now 'BCOU_12' {time} 4000 {flag} 1
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_10674
863@ = create_menu 'BCOU_81' {topLeftX} 31.0 {topLeftY} 80.0 {width} 99.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_lvar_int_to_var_int 869@ = $bcou_timelimit
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 761@

:BCOUR_10674
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_10752
863@ = create_menu 'BCOU_82' {topLeftX} 31.0 {topLeftY} 80.0 {width} 99.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_lvar_int_to_var_int 869@ = $bcou_timelimit
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 762@

:BCOUR_10752
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_10830
863@ = create_menu 'BCOU_80' {topLeftX} 31.0 {topLeftY} 80.0 {width} 99.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_lvar_int_to_var_int 869@ = $bcou_timelimit
869@ /= 100
mult_int_lvar_by_int_lvar 869@ *= 760@

:BCOUR_10830
set_menu_column 863@ {column} 0 {title} 'BCOU_21' {row0} 'BCOU_22' {row1} 'BCOU_23' {row2} 'BCOU_24' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation 863@ {column} 1 {alignment} Align.Right
865@ = 0
set_lvar_int_to_var_int 870@ = $bags_on_bike
870@ *= 100
set_lvar_int_to_lvar_int 871@ = 869@
add_int_lvar_to_int_lvar 871@ += 870@
set_menu_item_with_number 863@ {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 869@
set_menu_item_with_number 863@ {column} 1 {row} 1 {gxt} 'DOLLAR' {number} 870@
set_menu_item_with_number 863@ {column} 1 {row} 2 {gxt} 'DOLLAR' {number} 871@
set_active_menu_item 863@ {row} 2
TIMERA = 0
866@ = 1
add_score $player1 {money} 871@
delete_object 37@
746@ = 55

:BCOUR_11105
if 
  866@ == 1
goto_if_false @BCOUR_11327
if 
  TIMERA > 2000
goto_if_false @BCOUR_11149
868@ = 1

:BCOUR_11149
if 
  761@ == 4
goto_if_false @BCOUR_11198
if 
  TIMERA > 4000
goto_if_false @BCOUR_11198
delete_menu 863@
866@ = 2

:BCOUR_11198
if 
  760@ == 4
goto_if_false @BCOUR_11247
if 
  TIMERA > 4000
goto_if_false @BCOUR_11247
delete_menu 863@
866@ = 2

:BCOUR_11247
if 
  762@ == 4
goto_if_false @BCOUR_11296
if 
  TIMERA > 4000
goto_if_false @BCOUR_11296
delete_menu 863@
866@ = 2

:BCOUR_11296
if 
  TIMERA > 6000
goto_if_false @BCOUR_11327
delete_menu 863@
866@ = 2

:BCOUR_11327
if 
  866@ == 2
goto_if_false @BCOUR_11945
if 
  not is_car_dead 36@
goto_if_false @BCOUR_11945
if 
  is_char_in_car $scplayer {vehicle} 36@
goto_if_false @BCOUR_11945
delete_menu 863@
868@ = 0
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_11574
clear_prints 
set_player_control $player1 {state} True
if 
  760@ == 1
goto_if_false @BCOUR_11460
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 2

:BCOUR_11460
if 
  760@ == 2
goto_if_false @BCOUR_11501
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 3

:BCOUR_11501
if 
  760@ == 3
goto_if_false @BCOUR_11542
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 4

:BCOUR_11542
if 
  760@ == 4
goto_if_false @BCOUR_11574
goto @BCOUR_15142
746@ = 5

:BCOUR_11574
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_11756
clear_prints 
set_player_control $player1 {state} True
if 
  761@ == 1
goto_if_false @BCOUR_11642
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 2

:BCOUR_11642
if 
  761@ == 2
goto_if_false @BCOUR_11683
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 3

:BCOUR_11683
if 
  761@ == 3
goto_if_false @BCOUR_11724
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 4

:BCOUR_11724
if 
  761@ == 4
goto_if_false @BCOUR_11756
goto @BCOUR_15142
746@ = 5

:BCOUR_11756
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_11938
clear_prints 
set_player_control $player1 {state} True
if 
  762@ == 1
goto_if_false @BCOUR_11824
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 2

:BCOUR_11824
if 
  762@ == 2
goto_if_false @BCOUR_11865
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 3

:BCOUR_11865
if 
  762@ == 3
goto_if_false @BCOUR_11906
print_now 'BCOU_4' {time} 6000 {flag} 1
746@ = 4

:BCOUR_11906
if 
  762@ == 4
goto_if_false @BCOUR_11938
goto @BCOUR_15142
746@ = 5

:BCOUR_11938
866@ = 0

:BCOUR_11945
if 
  does_object_exist 763@(793@,30i)
goto_if_false @BCOUR_12060
if 
  locate_char_any_means_object_3d $scplayer {object} 763@(793@,30i) {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @BCOUR_12060
if 
  TIMERA > 3000
goto_if_false @BCOUR_12060
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
$bags_on_bike += 1
797@($bags_on_bike,30i) = 0

:BCOUR_12060
goto @BCOUR_2555

:BCOUR_12067
if 
  not is_car_dead 36@
goto_if_false @BCOUR_13123
if 
  $bags_on_bike > 0
goto_if_false @BCOUR_13123
if 
  797@($bags_on_bike,30i) == 0
goto_if_false @BCOUR_13123
if 
  857@ > 0
goto_if_false @BCOUR_12159
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)

:BCOUR_12159
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_12340

:BCOUR_12177
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12325
if 
  880@ == 0
goto_if_false @BCOUR_12311
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12311
if 
  locate_char_any_means_3d $scplayer {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_12311
880@ = 1
879@ = 1
goto @BCOUR_12311

:BCOUR_12311
744@ += 1
goto @BCOUR_12177

:BCOUR_12325
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12340
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_12521

:BCOUR_12358
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12506
if 
  880@ == 0
goto_if_false @BCOUR_12492
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12492
if 
  locate_char_any_means_3d $scplayer {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_12492
880@ = 1
879@ = 1
goto @BCOUR_12492

:BCOUR_12492
744@ += 1
goto @BCOUR_12358

:BCOUR_12506
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12521
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_12702

:BCOUR_12539
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_12687
if 
  880@ == 0
goto_if_false @BCOUR_12673
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_12673
if 
  locate_char_any_means_3d $scplayer {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_12673
880@ = 1
879@ = 1
goto @BCOUR_12673

:BCOUR_12673
744@ += 1
goto @BCOUR_12539

:BCOUR_12687
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_12702
876@, 877@, 878@ = get_car_coordinates 36@
create_object_no_offset #KMB_PACKET {x} 876@ {y} 877@ {z} 878@ {var_handle} 763@($bags_on_bike,30i)
set_object_collision 763@($bags_on_bike,30i) {state} True
set_object_dynamic 763@($bags_on_bike,30i) {state} True
create_fx_system_on_object "COKE_PUFF" {object} 763@($bags_on_bike,30i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.5 {ignoreBoundingChecks} True {var_handle} 827@($bags_on_bike,30i)
play_fx_system 827@($bags_on_bike,30i)
858@, 859@, 860@ = get_char_coordinates $scplayer
if 
  882@ == 2
goto_if_false @BCOUR_12848
play_mission_audio MissionAudioSlot.Slot3

:BCOUR_12848
if 
  879@ == 1
goto_if_false @BCOUR_12900
place_object_relative_to_car 763@($bags_on_bike,30i) {vehicle} 36@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 1.3
goto @BCOUR_12927

:BCOUR_12900
place_object_relative_to_car 763@($bags_on_bike,30i) {vehicle} 36@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.7

:BCOUR_12927
794@ = get_char_heading $scplayer
795@ -= 30.0
796@ -= 30.0
795@ = cos 794@
796@ = sin 794@
if 
  879@ == 1
goto_if_false @BCOUR_13036
795@ *= 15.0
796@ *= 15.0
add_to_object_velocity 763@($bags_on_bike,30i) {x} 795@ {y} 796@ {z} 1.0
goto @BCOUR_13076

:BCOUR_13036
795@ *= 30.0
796@ *= 30.0
add_to_object_velocity 763@($bags_on_bike,30i) {x} 795@ {y} 796@ {z} 8.5

:BCOUR_13076
879@ = 0
857@ += 1
797@($bags_on_bike,30i) = 1
set_lvar_int_to_var_int 793@ = $bags_on_bike
$bags_on_bike -= 1
TIMERA = 0

:BCOUR_13123
return 

:BCOUR_13125
if 
  $bags_on_bike > 0
goto_if_false @BCOUR_14181
if 
  not is_car_dead 36@
goto_if_false @BCOUR_14181
if 
  797@($bags_on_bike,30i) == 0
goto_if_false @BCOUR_14181
if 
  857@ > 0
goto_if_false @BCOUR_13217
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)

:BCOUR_13217
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_13398

:BCOUR_13235
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13383
if 
  880@ == 0
goto_if_false @BCOUR_13369
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13369
if 
  locate_char_any_means_3d $scplayer {x} 193@(744@,30f) {y} 223@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_13369
880@ = 1
879@ = 1
goto @BCOUR_13369

:BCOUR_13369
744@ += 1
goto @BCOUR_13235

:BCOUR_13383
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13398
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_13579

:BCOUR_13416
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13564
if 
  880@ == 0
goto_if_false @BCOUR_13550
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13550
if 
  locate_char_any_means_3d $scplayer {x} 103@(744@,30f) {y} 133@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_13550
880@ = 1
879@ = 1
goto @BCOUR_13550

:BCOUR_13550
744@ += 1
goto @BCOUR_13416

:BCOUR_13564
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13579
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_13760

:BCOUR_13597
if 
  is_int_lvar_greater_than_int_lvar 758@ > 744@
goto_if_false @BCOUR_13745
if 
  880@ == 0
goto_if_false @BCOUR_13731
if 
  653@(744@,30i) == 0
goto_if_false @BCOUR_13731
if 
  locate_char_any_means_3d $scplayer {x} 283@(744@,30f) {y} 313@(744@,30f) {z} 713@(744@,30f) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @BCOUR_13731
880@ = 1
879@ = 1
goto @BCOUR_13731

:BCOUR_13731
744@ += 1
goto @BCOUR_13597

:BCOUR_13745
set_lvar_int_to_lvar_int 744@ = 759@
880@ = 0

:BCOUR_13760
876@, 877@, 878@ = get_car_coordinates 36@
create_object_no_offset #KMB_PACKET {x} 876@ {y} 877@ {z} 878@ {var_handle} 763@($bags_on_bike,30i)
set_object_collision 763@($bags_on_bike,30i) {state} True
set_object_dynamic 763@($bags_on_bike,30i) {state} True
create_fx_system_on_object "COKE_PUFF" {object} 763@($bags_on_bike,30i) {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True {var_handle} 827@($bags_on_bike,30i)
play_fx_system 827@($bags_on_bike,30i)
858@, 859@, 860@ = get_char_coordinates $scplayer
if 
  882@ == 2
goto_if_false @BCOUR_13906
play_mission_audio MissionAudioSlot.Slot3

:BCOUR_13906
if 
  879@ == 1
goto_if_false @BCOUR_13958
place_object_relative_to_car 763@($bags_on_bike,30i) {vehicle} 36@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 1.3
goto @BCOUR_13985

:BCOUR_13958
place_object_relative_to_car 763@($bags_on_bike,30i) {vehicle} 36@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.7

:BCOUR_13985
794@ = get_char_heading $scplayer
795@ -= 330.0
796@ -= 330.0
795@ = cos 794@
796@ = sin 794@
if 
  879@ == 1
goto_if_false @BCOUR_14094
795@ *= -15.0
796@ *= -15.0
add_to_object_velocity 763@($bags_on_bike,30i) {x} 795@ {y} 796@ {z} 1.0
goto @BCOUR_14134

:BCOUR_14094
795@ *= -30.0
796@ *= -30.0
add_to_object_velocity 763@($bags_on_bike,30i) {x} 795@ {y} 796@ {z} 8.5

:BCOUR_14134
879@ = 0
857@ += 1
797@($bags_on_bike,30i) = 1
set_lvar_int_to_var_int 793@ = $bags_on_bike
$bags_on_bike -= 1
TIMERA = 0

:BCOUR_14181
return 

:BCOUR_14183
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BCOUR_14211
wait 0
goto @BCOUR_14183

:BCOUR_14211
return 

:BCOUR_14213
if 
  3000 > TIMERB
goto_if_false @BCOUR_14243
wait 0
goto @BCOUR_14213

:BCOUR_14243
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
return 

:BCOUR_14263
set_player_can_do_drive_by $player1 {state} True
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_14560
if 
  760@ == 0
goto_if_false @BCOUR_14322
print_big 'BCOU_40' {time} 5000 {style} TextStyle.Middle

:BCOUR_14322
if 
  760@ == 1
goto_if_false @BCOUR_14356
print_big 'BCOU_41' {time} 5000 {style} TextStyle.Middle

:BCOUR_14356
if 
  760@ == 2
goto_if_false @BCOUR_14390
print_big 'BCOU_42' {time} 5000 {style} TextStyle.Middle

:BCOUR_14390
if 
  760@ == 3
goto_if_false @BCOUR_14424
print_big 'BCOU_43' {time} 5000 {style} TextStyle.Middle

:BCOUR_14424
if 
  760@ == 4
goto_if_false @BCOUR_14458
print_big 'BCOU_44' {time} 5000 {style} TextStyle.Middle

:BCOUR_14458
if 
  760@ == 5
goto_if_false @BCOUR_14492
print_big 'BCOU_45' {time} 5000 {style} TextStyle.Middle

:BCOUR_14492
if 
  760@ == 6
goto_if_false @BCOUR_14526
print_big 'BCOU_46' {time} 5000 {style} TextStyle.Middle

:BCOUR_14526
if 
  760@ == 7
goto_if_false @BCOUR_14560
print_big 'BCOU_47' {time} 5000 {style} TextStyle.Middle

:BCOUR_14560
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_14850
if 
  762@ == 0
goto_if_false @BCOUR_14612
print_big 'BCOU_40' {time} 5000 {style} TextStyle.Middle

:BCOUR_14612
if 
  762@ == 1
goto_if_false @BCOUR_14646
print_big 'BCOU_41' {time} 5000 {style} TextStyle.Middle

:BCOUR_14646
if 
  762@ == 2
goto_if_false @BCOUR_14680
print_big 'BCOU_42' {time} 5000 {style} TextStyle.Middle

:BCOUR_14680
if 
  762@ == 3
goto_if_false @BCOUR_14714
print_big 'BCOU_43' {time} 5000 {style} TextStyle.Middle

:BCOUR_14714
if 
  762@ == 4
goto_if_false @BCOUR_14748
print_big 'BCOU_44' {time} 5000 {style} TextStyle.Middle

:BCOUR_14748
if 
  762@ == 5
goto_if_false @BCOUR_14782
print_big 'BCOU_45' {time} 5000 {style} TextStyle.Middle

:BCOUR_14782
if 
  762@ == 6
goto_if_false @BCOUR_14816
print_big 'BCOU_46' {time} 5000 {style} TextStyle.Middle

:BCOUR_14816
if 
  762@ == 7
goto_if_false @BCOUR_14850
print_big 'BCOU_47' {time} 5000 {style} TextStyle.Middle

:BCOUR_14850
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_15140
if 
  761@ == 0
goto_if_false @BCOUR_14902
print_big 'BCOU_40' {time} 5000 {style} TextStyle.Middle

:BCOUR_14902
if 
  761@ == 1
goto_if_false @BCOUR_14936
print_big 'BCOU_41' {time} 5000 {style} TextStyle.Middle

:BCOUR_14936
if 
  761@ == 2
goto_if_false @BCOUR_14970
print_big 'BCOU_42' {time} 5000 {style} TextStyle.Middle

:BCOUR_14970
if 
  761@ == 3
goto_if_false @BCOUR_15004
print_big 'BCOU_43' {time} 5000 {style} TextStyle.Middle

:BCOUR_15004
if 
  761@ == 4
goto_if_false @BCOUR_15038
print_big 'BCOU_44' {time} 5000 {style} TextStyle.Middle

:BCOUR_15038
if 
  761@ == 5
goto_if_false @BCOUR_15072
print_big 'BCOU_45' {time} 5000 {style} TextStyle.Middle

:BCOUR_15072
if 
  761@ == 6
goto_if_false @BCOUR_15106
print_big 'BCOU_46' {time} 5000 {style} TextStyle.Middle

:BCOUR_15106
if 
  761@ == 7
goto_if_false @BCOUR_15140
print_big 'BCOU_47' {time} 5000 {style} TextStyle.Middle

:BCOUR_15140
return 

:BCOUR_15142
clear_mission_audio MissionAudioSlot.Slot3
if 
  is_int_lvar_equal_to_constant 872@ == 3
goto_if_false @BCOUR_15500
if 
  $courierLV_passed_once == 0
goto_if_false @BCOUR_15500
register_oddjob_mission_passed 
player_made_progress 1
$courierLV_passed_once = 1
$courierLV_cash_pickup = create_protection_pickup 1887.9969 {y} 2073.0081 {z} 10.5547 {revenueLimit} $courierLV_revenue {revenueRate} $courierLV_revenue
clear_prints 
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:BCOUR_15237
if 
  get_fading_status 
goto_if_false @BCOUR_15261
wait 0
goto @BCOUR_15237

:BCOUR_15261
switch_widescreen True
load_scene_in_direction 1895.53 {y} 2063.094 {z} 15.8639 {heading} 47.0
set_fixed_camera_position 1895.53 {y} 2063.094 {z} 15.8639 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1894.813 {y} 2063.7749 {z} 15.7175 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:BCOUR_15345
if 
  get_fading_status 
goto_if_false @BCOUR_15369
wait 0
goto @BCOUR_15345

:BCOUR_15369
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position 1890.1639 {y} 2070.478 {z} 11.8641 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1889.516 {y} 2071.2129 {z} 11.6633 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $courierLV_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:BCOUR_15476
if 
  get_fading_status 
goto_if_false @BCOUR_15500
wait 0
goto @BCOUR_15476

:BCOUR_15500
if 
  is_int_lvar_equal_to_constant 872@ == 1
goto_if_false @BCOUR_15854
if 
  $courierLA_passed_once == 0
goto_if_false @BCOUR_15854
register_oddjob_mission_passed 
player_made_progress 1
$courierLA_passed_once = 1
$courierLA_cash_pickup = create_protection_pickup 1345.859 {y} -1757.432 {z} 13.0078 {revenueLimit} $courierLA_revenue {revenueRate} $courierLA_revenue
clear_prints 
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:BCOUR_15591
if 
  get_fading_status 
goto_if_false @BCOUR_15615
wait 0
goto @BCOUR_15591

:BCOUR_15615
switch_widescreen True
load_scene_in_direction 1358.5959 {y} -1741.184 {z} 18.431 {heading} 223.0
set_fixed_camera_position 1358.5959 {y} -1741.184 {z} 18.431 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1358.3719 {y} -1742.135 {z} 18.2203 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:BCOUR_15699
if 
  get_fading_status 
goto_if_false @BCOUR_15723
wait 0
goto @BCOUR_15699

:BCOUR_15723
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position 1345.5649 {y} -1753.368 {z} 15.2186 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1345.567 {y} -1754.218 {z} 14.692 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $courierLA_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:BCOUR_15830
if 
  get_fading_status 
goto_if_false @BCOUR_15854
wait 0
goto @BCOUR_15830

:BCOUR_15854
if 
  is_int_lvar_equal_to_constant 872@ == 2
goto_if_false @BCOUR_16208
if 
  $courierSF_passed_once == 0
goto_if_false @BCOUR_16208
player_made_progress 1
register_oddjob_mission_passed 
$courierSF_passed_once = 1
$courierSF_cash_pickup = create_protection_pickup -2593.8821 {y} 59.2467 {z} 3.8359 {revenueLimit} $courierSF_revenue {revenueRate} $courierSF_revenue
set_player_control $player1 {state} False
clear_prints 
do_fade 500 {direction} Fade.Out

:BCOUR_15945
if 
  get_fading_status 
goto_if_false @BCOUR_15969
wait 0
goto @BCOUR_15945

:BCOUR_15969
switch_widescreen True
load_scene_in_direction -2603.114 {y} 51.3338 {z} 10.1663 {heading} 275.0
set_fixed_camera_position -2603.98 {y} 54.4522 {z} 7.5275 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2603.0139 {y} 54.7055 {z} 7.4818 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:BCOUR_16053
if 
  get_fading_status 
goto_if_false @BCOUR_16077
wait 0
goto @BCOUR_16053

:BCOUR_16077
play_mission_passed_tune 1
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -2598.8999 {y} 59.0635 {z} 4.8343 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2597.905 {y} 59.0525 {z} 4.7405 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} $courierSF_revenue {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:BCOUR_16184
if 
  get_fading_status 
goto_if_false @BCOUR_16208
wait 0
goto @BCOUR_16184

:BCOUR_16208
clear_wanted_level $player1
set_camera_behind_player 
restore_camera_jumpcut 
return 

:BCOUR_16219
clear_help 
clear_mission_audio MissionAudioSlot.Slot3
if 
  is_player_playing $player1
goto_if_false @BCOUR_16255
set_player_can_do_drive_by $player1 {state} True
set_player_control $player1 {state} True

:BCOUR_16255
clear_onscreen_timer $bcou_timelimit
clear_onscreen_counter $bags_on_bike
delete_menu 863@
delete_object 37@
kill_fx_system 827@(793@,30i)
delete_object 763@(793@,30i)
mark_char_as_no_longer_needed 38@
mark_model_as_no_longer_needed 586
mark_model_as_no_longer_needed 29
remove_animation "SMOKING"
remove_blip 40@
remove_blip 72@
744@ = 0

:BCOUR_16335
if 
  30 > 744@
goto_if_false @BCOUR_16376
remove_blip 42@(744@,30i)
744@ += 1
goto @BCOUR_16335

:BCOUR_16376
switch_car_generator $gen_car21 {amount} 101
$timer_mobile_start = get_game_timer 
$onmission = 0
mission_has_finished 
return 

//-------------Mission 132---------------
// Originally: The Chiliad Challenge

:MTBIKER
gosub @MTBIKER_36
if 
  has_deatharrest_been_executed 
goto_if_false @MTBIKER_27
gosub @MTBIKER_14361

:MTBIKER_27
gosub @MTBIKER_14662
terminate_this_script 

:MTBIKER_36
$onmission = 1
clear_this_print_big_now TextStyle.Middle
if 
  $flag_mtbike_passed_1stime == 0
goto_if_false @MTBIKER_67
register_mission_given 

:MTBIKER_67
script_name 'MTBIKER'
load_mission_text 'RACETOR'
set_message_formatting True {margin} 355 {width} 370
wait 0
use_text_commands True
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_130
set_player_control $player1 {state} False

:MTBIKER_130
do_fade 1000 {direction} Fade.Out

:MTBIKER_137
if 
  get_fading_status 
goto_if_false @MTBIKER_161
wait 0
goto @MTBIKER_137

:MTBIKER_161
669@ = load_char_decision_maker DecisionMakerType.Empty
647@ = 0

:MTBIKER_175
if 
  9 > 647@
goto_if_false @MTBIKER_229
690@(647@,10i) = 0
670@(647@,10i) = 0
647@ += 1
goto @MTBIKER_175

:MTBIKER_229
656@ = 0
657@ = 0
34@ = 582.7242
41@ = 356.2812
48@ = 52.2072
55@ = 52.2072
35@ = 584.0833
42@ = 329.3647
49@ = 0.5427
56@ = 2.0841
36@ = 572.9216
43@ = 323.5937
50@ = 1.0585
57@ = 4.8106
37@ = 585.724
44@ = 345.6341
51@ = 0.4929
58@ = 1.8511
38@ = 582.7242
45@ = 359.0323
52@ = 0.4993
59@ = 2.637
39@ = 582.7242
46@ = 356.2812
53@ = 56.2072
60@ = 56.2072
40@ = 582.7242
47@ = 356.2812
54@ = 58.2072
61@ = 58.2072
build_player_model $player1
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_553
goto @MTBIKER_603

:MTBIKER_553
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_578
goto @MTBIKER_1538

:MTBIKER_578
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_603
goto @MTBIKER_2993

:MTBIKER_603
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_637
print_big 'MTROUT1' {time} 3000 {style} TextStyle.MiddleSmallerHigher

:MTBIKER_637
103@ = -2304.344
223@ = -1667.125
343@ = 483.386
463@ = 208.0
104@ = -2280.48
224@ = -1730.3149
344@ = 467.8242
464@ = 178.6093
105@ = -2357.1819
225@ = -1815.429
345@ = 431.4012
465@ = 64.067
106@ = -2447.4031
226@ = -1718.4351
346@ = 430.9626
466@ = 148.4592
107@ = -2446.6521
227@ = -1810.658
347@ = 409.0582
467@ = 93.195
108@ = -2527.5859
228@ = -1711.376
348@ = 401.175
468@ = 16.0889
109@ = -2552.845
229@ = -1668.842
349@ = 398.455
469@ = 155.2717
110@ = -2534.5171
230@ = -1802.53
350@ = 374.7244
470@ = 127.1514
111@ = -2595.25
231@ = -1631.995
351@ = 342.7061
471@ = 176.454
112@ = -2526.4299
232@ = -1888.459
352@ = 292.5149
472@ = 77.3269
113@ = -2652.8589
233@ = -1739.147
353@ = 255.1567
473@ = 189.6474
114@ = -2491.229
234@ = -2034.597
354@ = 150.1413
474@ = 225.1505
115@ = -2428.644
235@ = -2088.887
355@ = 121.97
475@ = 243.2365
116@ = -2322.0591
236@ = -2097.6399
356@ = 114.0331
476@ = 292.4177
117@ = -2218.1311
237@ = -2047.089
357@ = 118.8139
477@ = 315.497
118@ = -2168.4199
238@ = -1991.8719
358@ = 117.8448
478@ = 314.2462
119@ = -2102.5449
239@ = -1895.2271
359@ = 108.4655
479@ = 174.3973
120@ = -2162.365
240@ = -2039.522
360@ = 91.2074
480@ = 135.1339
121@ = -2373.667
241@ = -2195.0891
361@ = 32.3837
481@ = 112.827
700@ = 19
92@ = 6
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 51
set_lvar_int_to_constant 704@ = 52
set_lvar_int_to_constant 705@ = 23
set_lvar_int_to_constant 706@ = 51
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
set_lvar_int_to_constant 710@ = 510
set_lvar_int_to_constant 711@ = 510
set_lvar_int_to_constant 712@ = 510
652@ = 38.0
653@ = 27.0
654@ = 23.0
goto @MTBIKER_4212

:MTBIKER_1538
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_1572
print_big 'MTROUT2' {time} 3000 {style} TextStyle.MiddleSmallerHigher

:MTBIKER_1572
103@ = -2304.344
223@ = -1667.125
343@ = 483.586
463@ = 208.0
104@ = -2279.8569
224@ = -1732.752
344@ = 466.799
464@ = 163.4517
105@ = -2355.6089
225@ = -1815.324
345@ = 431.5401
465@ = 90.1409
106@ = -2458.843
226@ = -1733.434
346@ = 426.432
466@ = 187.8666
107@ = -2460.9041
227@ = -1807.384
347@ = 406.6599
467@ = 60.8579
108@ = -2521.292
228@ = -1707.7531
348@ = 401.2728
468@ = 2.4494
109@ = -2467.126
229@ = -1467.868
349@ = 388.9202
469@ = 270.5872
110@ = -2324.3669
230@ = -1455.149
350@ = 380.9767
470@ = 233.5233
111@ = -2251.9221
231@ = -1492.653
351@ = 377.8563
471@ = 196.094
112@ = -2191.949
232@ = -1713.993
352@ = 375.5497
472@ = 322.9377
113@ = -2206.7781
233@ = -1528.34
353@ = 359.6156
473@ = 20.0752
114@ = -2280.6831
234@ = -1426.188
354@ = 355.6379
474@ = 58.5606
115@ = -2419.2219
235@ = -1392.925
355@ = 358.1968
475@ = 98.4498
116@ = -2569.7671
236@ = -1460.698
356@ = 357.2175
476@ = 325.2711
117@ = -2440.8889
237@ = -1368.257
357@ = 337.413
477@ = 304.5745
118@ = -2357.0701
238@ = -1286.3621
358@ = 306.1062
478@ = 103.378
119@ = -2508.1531
239@ = -1273.621
359@ = 271.7476
479@ = 103.6739
120@ = -2595.4919
240@ = -1360.244
360@ = 264.5467
480@ = 100.454
121@ = -2671.155
241@ = -1378.1899
361@ = 252.3816
481@ = 352.7671
122@ = -2608.5
242@ = -1285.22
362@ = 219.88
482@ = 335.6836
123@ = -2537.2939
243@ = -1121.297
363@ = 175.3035
483@ = 140.5565
124@ = -2634.553
244@ = -1169.384
364@ = 166.8249
484@ = 128.43
125@ = -2747.937
245@ = -1377.943
365@ = 143.0419
485@ = 168.2364
126@ = -2773.78
246@ = -1670.301
366@ = 140.4944
486@ = 169.7697
127@ = -2733.364
247@ = -1876.022
367@ = 138.8912
487@ = 269.3722
128@ = -2620.5791
248@ = -2066.7461
368@ = 129.5185
488@ = 201.5526
129@ = -2438.3789
249@ = -2086.928
369@ = 123.3899
489@ = 257.1008
130@ = -2335.7839
250@ = -2102.4419
370@ = 112.9194
490@ = 283.7088
131@ = -2101.0049
251@ = -1893.245
371@ = 108.8372
491@ = 174.9563
132@ = -2156.2161
252@ = -2031.774
372@ = 91.9901
492@ = 145.72
133@ = -2236.1111
253@ = -2118.7671
373@ = 66.3876
493@ = 131.2891
134@ = -2374.958
254@ = -2195.4541
374@ = 32.3626
494@ = 113.8008
700@ = 32
92@ = 6
set_lvar_int_to_constant 701@ = 23
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 51
set_lvar_int_to_constant 704@ = 52
set_lvar_int_to_constant 705@ = 23
set_lvar_int_to_constant 706@ = 51
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
set_lvar_int_to_constant 710@ = 510
set_lvar_int_to_constant 711@ = 510
set_lvar_int_to_constant 712@ = 510
652@ = 35.0
653@ = 30.0
654@ = 28.0
goto @MTBIKER_4212

:MTBIKER_2993
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_3027
print_big 'MTROUT3' {time} 3000 {style} TextStyle.MiddleSmallerHigher

:MTBIKER_3027
103@ = -2432.876
223@ = -1939.6541
343@ = 303.7731
463@ = 273.0
104@ = -2339.998
224@ = -1941.224
344@ = 295.8086
464@ = 269.6869
105@ = -2286.782
225@ = -1940.24
345@ = 268.8093
465@ = 245.1214
106@ = -2234.8911
226@ = -1925.067
346@ = 242.4752
466@ = 300.1313
107@ = -2205.429
227@ = -1914.0291
347@ = 239.2782
467@ = 269.1174
108@ = -2204.8611
228@ = -1914.031
348@ = 239.1954
468@ = 269.4709
109@ = -2173.895
229@ = -1903.88
349@ = 233.6897
469@ = 314.003
110@ = -2169.728
230@ = -1885.136
350@ = 231.1551
470@ = 8.2283
111@ = -2173.511
231@ = -1861.948
351@ = 222.7416
471@ = 13.9626
112@ = -2173.6411
232@ = -1843.246
352@ = 217.9074
472@ = 13.6434
113@ = -2148.4309
233@ = -1792.73
353@ = 210.1444
473@ = 294.9009
114@ = -2129.241
234@ = -1775.973
354@ = 207.5088
474@ = 313.3039
115@ = -2109.7241
235@ = -1755.573
355@ = 195.2899
475@ = 332.9617
116@ = -2101.7561
236@ = -1744.009
356@ = 195.9091
476@ = 324.6714
117@ = -2072.0801
237@ = -1644.9
357@ = 174.3308
477@ = 357.332
118@ = -2050.7
238@ = -1571.491
358@ = 137.474
478@ = 272.8463
119@ = -2041.665
239@ = -1509.007
359@ = 124.2398
479@ = 16.1558
120@ = -2033.5601
240@ = -1438.604
360@ = 93.2658
480@ = 210.8019
121@ = -1991.328
241@ = -1596.526
361@ = 86.5936
481@ = 182.1263
122@ = -2027.707
242@ = -1789.3311
362@ = 96.554
482@ = 160.6694
123@ = -2099.854
243@ = -1890.88
363@ = 109.2095
483@ = 175.6702
124@ = -2118.301
244@ = -1948.25
364@ = 99.0724
484@ = 162.0987
125@ = -2233.6489
245@ = -2117.0459
365@ = 67.2467
485@ = 134.1193
126@ = -2373.8921
246@ = -2194.998
366@ = 32.3799
486@ = 115.9183
700@ = 24
92@ = 3
set_lvar_int_to_constant 701@ = 51
set_lvar_int_to_constant 702@ = 52
set_lvar_int_to_constant 703@ = 23
set_lvar_int_to_constant 707@ = 510
set_lvar_int_to_constant 708@ = 510
set_lvar_int_to_constant 709@ = 510
652@ = 40.0
653@ = 30.0
654@ = 25.0
request_car_recording 829
request_car_recording 830
request_car_recording 831
request_car_recording 832
request_car_recording 833
request_car_recording 834

:MTBIKER_4106
if or
  not has_car_recording_been_loaded 829
  not has_car_recording_been_loaded 830
  not has_car_recording_been_loaded 831
  not has_car_recording_been_loaded 832
  not has_car_recording_been_loaded 833
  not has_car_recording_been_loaded 834
goto_if_false @MTBIKER_4158
wait 0
goto @MTBIKER_4106

:MTBIKER_4158
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0
delete_checkpoint 780@
goto @MTBIKER_4212

:MTBIKER_4212
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_4220
if 
  not is_player_playing $player1
goto_if_false @MTBIKER_4247
wait 0
goto @MTBIKER_4220

:MTBIKER_4247
clear_area 103@ {y} 223@ {z} 343@ {radius} 0.5 {clearParticles} False
load_scene 103@ {y} 223@ {z} 343@
set_lvar_int_to_lvar_int 713@ = 700@
713@ -= 1
643@ = 0
644@ = 0
645@ = 0
646@ = 0
set_lvar_int_to_lvar_int 744@ = 92@

:MTBIKER_4327
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_4371
745@(644@,10i) = 0
644@ += 1
goto @MTBIKER_4327

:MTBIKER_4371
755@ = add_blip_for_coord 103@ {y} 223@ {z} 343@
756@ = 0

:MTBIKER_4392
wait 0
$game_timer = get_game_timer 
758@ = 0
644@ = 0
if 
  756@ == 0
goto_if_false @MTBIKER_4619
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_4619
set_char_coordinates $scplayer {x} 103@ {y} 223@ {z} 343@
if 
  locate_char_any_means_2d $scplayer {x} 104@ {y} 224@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @MTBIKER_4619
643@ = 0
set_var_float_to_lvar_float $x = 103@
$x += 7.0
set_var_float_to_lvar_float $y = 223@
$y += 7.0
set_var_float_to_lvar_float $z = 343@
$z += 4.0
set_lvar_float_to_lvar_float 659@ = 103@
659@ -= 7.0
set_lvar_float_to_lvar_float 660@ = 223@
660@ -= 7.0
set_lvar_float_to_lvar_float 661@ = 343@
661@ -= 4.0
756@ += 1

:MTBIKER_4619
if 
  756@ == 1
goto_if_false @MTBIKER_4739
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
if and
  has_model_loaded 701@(643@,6i)
  has_model_loaded 707@(643@,6i)
goto_if_false @MTBIKER_4695
643@ += 1
goto @MTBIKER_4713

:MTBIKER_4695
request_model 701@(643@,6i)
request_model 707@(643@,6i)

:MTBIKER_4713
if 
  is_int_lvar_equal_to_int_lvar 643@ == 647@
goto_if_false @MTBIKER_4739
756@ += 1

:MTBIKER_4739
if 
  756@ == 2
goto_if_false @MTBIKER_6378
774@ = create_car 707@ {x} 103@ {y} 223@ {z} 343@
turn_car_to_face_coord 774@ {x} 104@ {y} 224@
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_4807
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_6138
set_lvar_int_to_lvar_int 645@ = 644@
645@ /= 2
645@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 645@ == 644@
goto_if_false @MTBIKER_4925
$x = 2.0
set_lvar_int_to_lvar_int 646@ = 644@
646@ *= 4
cset_lvar_float_to_lvar_int 662@ =# 646@
662@ *= -3.0
set_var_float_to_lvar_float $y = 662@
goto @MTBIKER_4983

:MTBIKER_4925
$x = -2.0
set_lvar_int_to_lvar_int 646@ = 644@
646@ -= 1
646@ *= 4
cset_lvar_float_to_lvar_int 662@ =# 646@
662@ *= -1.2
set_var_float_to_lvar_float $y = 662@

:MTBIKER_4983
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} $x {yOffset} $y {zOffset} $z
663@ = get_car_heading 774@
set_var_float_to_lvar_float $z = 343@
set_lvar_float_to_var_float 714@(644@,6f) = $x
set_lvar_float_to_var_float 720@(644@,6f) = $y
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_lvar_float_to_var_float 726@(644@,6f) = $z
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_5377
create_car 707@(644@,6i) {x} $x {y} $y {z} $z {var_handle} 732@(644@,6i)
add_stuck_car_check_with_warp 732@(644@,6i) {distance} 0.5 {time} 5000 {stuck} True {flipped} False {inWater} True {numNodesToCheck} 1
set_car_traction 732@(644@,6i) {traction} 1.5
mark_model_as_no_longer_needed 707@(644@,6i)
set_car_heading 732@(644@,6i) {heading} 663@
set_car_proofs 732@(644@,6i) {bulletProof} False {fireProof} True {explosionProof} False {collisionProof} False {meleeProof} False
set_car_watertight 732@(644@,6i) {state} True
set_car_strong 732@(644@,6i) {state} True
set_upsidedown_car_not_damaged 732@(644@,6i) {state} True
set_car_straight_line_distance 732@(644@,6i) {distance} 5
set_can_burst_car_tyres 732@(644@,6i) {state} False
create_char_inside_car 732@(644@,6i) {pedType} PedType.CivMale {modelId} 701@(644@,6i) {var_handle} 738@(644@,6i)
clear_char_last_damage_entity 738@(644@,6i)
mark_model_as_no_longer_needed 701@(644@,6i)
set_char_can_be_shot_in_vehicle 738@(644@,6i) {state} False
set_char_decision_maker 738@(644@,6i) {handleOrTemplate} 669@
improve_car_by_cheating 732@(644@,6i) {state} True
car_set_idle 732@(644@,6i)
set_car_driving_style 732@(644@,6i) {drivingStyle} DrivingMode.AvoidCars
set_car_cruise_speed 732@(644@,6i) {maxSpeed} 655@
set_car_only_damaged_by_player 732@(644@,6i) {state} True
goto @MTBIKER_6124

:MTBIKER_5377
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -4.0435 {yOffset} 6.5755 {zOffset} -0.8
770@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 770@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -5.6392 {yOffset} 2.9435 {zOffset} -0.8
759@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 759@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -6.0071 {yOffset} -2.0778 {zOffset} -0.8
760@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 760@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -7.6039 {yOffset} -5.0807 {zOffset} -0.8
761@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 761@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -7.0724 {yOffset} -6.4057 {zOffset} -0.8
762@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 762@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} -5.9988 {yOffset} -13.553 {zOffset} -0.8
763@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 763@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 6.073 {yOffset} -15.2059 {zOffset} -0.8
764@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 764@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 7.2639 {yOffset} -12.9933 {zOffset} -0.8
765@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 765@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 5.8429 {yOffset} -7.7069 {zOffset} -0.8
766@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 766@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 8.4135 {yOffset} -3.7971 {zOffset} -0.8
767@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 767@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 6.2507 {yOffset} 0.3634 {zOffset} -0.8
768@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 768@ {x} 103@ {y} 223@ {z} 343@
$x, $y, $z = get_offset_from_car_in_world_coords 774@ {xOffset} 8.6397 {yOffset} 2.419 {zOffset} -0.8
769@ = create_random_char $x {y} $y {z} $z
task_turn_char_to_face_coord 769@ {x} 103@ {y} 223@ {z} 343@
delete_car 774@
remove_blip 755@
755@ = add_blip_for_coord 714@(647@,6f) {y} 720@(647@,6f) {z} 726@(647@,6f)
set_car_density_multiplier 0.5
set_lvar_int_to_var_int 738@(644@,6i) = $scplayer
set_lvar_int_to_lvar_int 757@ = 644@

:MTBIKER_6124
644@ += 1
goto @MTBIKER_4807

:MTBIKER_6138
756@ += 1
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_6234
store_car_char_is_in $scplayer {var_handle} 732@(757@,6i)
set_car_health 732@(757@,6i) {health} 500
clear_car_last_damage_entity 732@(757@,6i)
set_char_coordinates $scplayer {x} 714@(757@,6f) {y} 720@(757@,6f) {z} 726@(757@,6f)
set_car_heading 732@(757@,6i) {heading} 463@
set_camera_behind_player 

:MTBIKER_6234
switch_widescreen True
wait 500
do_fade 1000 {direction} Fade.In
clear_prints 

:MTBIKER_6252
if 
  get_fading_status 
goto_if_false @MTBIKER_6276
wait 0
goto @MTBIKER_6252

:MTBIKER_6276
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_6310
print_now 'MTROUT1' {time} 3000 {flag} 6

:MTBIKER_6310
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_6344
print_now 'MTROUT2' {time} 3000 {flag} 6

:MTBIKER_6344
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_6378
print_now 'MTROUT3' {time} 3000 {flag} 6

:MTBIKER_6378
if 
  756@ == 3
goto_if_false @MTBIKER_6704
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_6704
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_6434
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_6625
if or
  is_car_dead 732@(644@,6i)
  is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_6505
print_now 'RACES25' {time} 5000 {flag} 1
goto @MTBIKER_14361

:MTBIKER_6505
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_6611
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_6611
if or
  not is_car_health_greater 732@(644@,6i) {health} 999
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_6611
print_big 'RACES_3' {time} 1200 {style} TextStyle.MiddleSmaller
display_car_names False
756@ = 7

:MTBIKER_6611
644@ += 1
goto @MTBIKER_6434

:MTBIKER_6625
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
print_big 'RACES_4' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6704
if 
  756@ == 4
goto_if_false @MTBIKER_6802
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_6802
print_big 'RACES_5' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6802
if 
  756@ == 5
goto_if_false @MTBIKER_6900
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_6900
print_big 'RACES_6' {time} 1100 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_lvar_int_to_var_int 771@ = $game_timer
771@ += 999
756@ += 1

:MTBIKER_6900
if 
  756@ == 6
goto_if_false @MTBIKER_7127
if 
  is_int_var_greater_than_int_lvar $game_timer > 771@
goto_if_false @MTBIKER_7127
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_7127
print_big 'RACES_7' {time} 800 {style} TextStyle.MiddleSmaller
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} 65535
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
restore_camera 
switch_widescreen False
display_car_names False
set_lvar_int_to_var_int 651@ = $game_timer
set_lvar_int_to_lvar_int 647@ = 744@
647@ -= 1
644@ = 0

:MTBIKER_7049
if 
  is_int_lvar_greater_than_int_lvar 647@ > 644@
goto_if_false @MTBIKER_7113
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_7099
set_car_only_damaged_by_player 732@(644@,6i) {state} False

:MTBIKER_7099
644@ += 1
goto @MTBIKER_7049

:MTBIKER_7113
771@ = 0
756@ += 1

:MTBIKER_7127
if 
  756@ > 6
goto_if_false @MTBIKER_12434

:MTBIKER_7145
if 
  is_int_lvar_greater_than_int_lvar 744@ > 644@
goto_if_false @MTBIKER_11758
if 
  not is_char_dead $scplayer
goto_if_false @MTBIKER_11744
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_9450
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_7316
if 
  has_char_been_damaged_by_char 738@(644@,6i) {handle} $scplayer
goto_if_false @MTBIKER_7316
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_7316
if 
  not has_char_been_damaged_by_car 738@(644@,6i) {handle} 732@(757@,6i)
goto_if_false @MTBIKER_7316
print_now 'RACES25' {time} 5000 {flag} 1
goto @MTBIKER_14361

:MTBIKER_7316
if 
  756@ == 8
goto_if_false @MTBIKER_9061
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9061
if 
  is_int_lvar_equal_to_int_lvar 745@(757@,10i) == 745@(644@,10i)
goto_if_false @MTBIKER_7499
$x, $y, $z = get_char_coordinates 738@(644@,6i)
773@ = get_distance_between_coords_2d $x {fromY} $y {toX} 714@(644@,6f) {toZ} 720@(644@,6f)
$x, $y, $z = get_char_coordinates $scplayer
664@ = get_distance_between_coords_2d $x {fromY} $y {toX} 714@(644@,6f) {toZ} 720@(644@,6f)
if 
  is_float_lvar_greater_than_float_lvar 664@ > 773@
goto_if_false @MTBIKER_7492
758@ += 1

:MTBIKER_7492
goto @MTBIKER_7533

:MTBIKER_7499
if 
  is_int_lvar_greater_than_int_lvar 745@(644@,10i) > 745@(757@,10i)
goto_if_false @MTBIKER_7533
758@ += 1

:MTBIKER_7533
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_7649
if 
  not locate_char_any_means_2d 738@(644@,6i) {x} 62@(644@,10f) {y} 72@(644@,10f) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MTBIKER_7649
get_char_coordinates 738@(644@,6i) {var_x} 62@(644@,10f) {var_y} 72@(644@,10f) {var_z} $z
set_lvar_int_to_var_int 93@(644@,10i) = $game_timer
93@(644@,10i) += 2000

:MTBIKER_7649
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_8492
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_7859
if 
  670@(644@,10i) == 0
goto_if_false @MTBIKER_7749
if 
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_7749
670@(644@,10i) = 1

:MTBIKER_7749
if 
  670@(644@,10i) == 1
goto_if_false @MTBIKER_7859
if 
  is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_7859
clear_char_tasks 738@(644@,6i)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
670@(644@,10i) = 0

:MTBIKER_7859
if 
  locate_char_any_means_2d 738@(644@,6i) {x} 62@(644@,10f) {y} 72@(644@,10f) {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @MTBIKER_8492
if 
  is_int_var_greater_than_int_lvar $game_timer > 93@(644@,10i)
goto_if_false @MTBIKER_8492
if 
  not is_char_on_screen 738@(644@,6i)
goto_if_false @MTBIKER_8492
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_8169
if 
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_8162
665@ = get_driver_of_car 732@(644@,6i)
if 
  665@ == -1
goto_if_false @MTBIKER_8048
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto @MTBIKER_8162

:MTBIKER_8048
mark_car_as_no_longer_needed 732@(644@,6i)
create_car 707@(644@,6i) {x} $x {y} $y {z} $z {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
turn_car_to_face_coord 732@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_8162
goto @MTBIKER_8283

:MTBIKER_8169
delete_car 732@(644@,6i)
create_car 707@(644@,6i) {x} $x {y} $y {z} $z {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
turn_car_to_face_coord 732@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_8283
$x, $y, $z = get_char_coordinates 738@(644@,6i)
$x, $y, $z = get_closest_car_node $x {y} $y {z} $z
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 10.0 {radiusY} 10.0 {radiusZ} 10.0
goto_if_false @MTBIKER_8492
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @MTBIKER_8492
set_char_coordinates 738@(644@,6i) {x} $x {y} $y {z} $z
if 
  is_char_in_any_car 738@(644@,6i)
goto_if_false @MTBIKER_8492
774@ = store_car_char_is_in_no_save 738@(644@,6i)
set_char_heading 738@(644@,6i) {heading} 463@(644@,120f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_8492
if 
  is_char_in_any_car 738@(644@,6i)
goto_if_false @MTBIKER_8543
set_lvar_int_to_lvar_int 647@ = 745@(757@,10i)
647@ += 5
774@ = store_car_char_is_in_no_save 738@(644@,6i)

:MTBIKER_8543
643@ = 0
646@ = 0

:MTBIKER_8557
if 
  is_int_lvar_greater_than_int_lvar 744@ > 643@
goto_if_false @MTBIKER_8639
set_lvar_int_to_lvar_int 775@ = 745@(643@,10i)
775@ -= 3
if 
  is_int_lvar_greater_than_int_lvar 775@ > 745@(644@,10i)
goto_if_false @MTBIKER_8625
646@ += 1

:MTBIKER_8625
643@ += 1
goto @MTBIKER_8557

:MTBIKER_8639
if 
  646@ > 0
goto_if_false @MTBIKER_9061
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_9061
if 
  not locate_char_any_means_char_3d $scplayer {target} 738@(644@,6i) {xRadius} 30.0 {yRadius} 30.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MTBIKER_9061
if 
  not is_char_on_screen 738@(644@,6i)
goto_if_false @MTBIKER_9061
if 
  not is_point_obscured_by_a_mission_entity 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {radiusX} 10.0 {radiusY} 10.0 {radiusZ} 10.0
goto_if_false @MTBIKER_9061
if 
  not is_point_on_screen 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {radius} 4.0
goto_if_false @MTBIKER_9061
set_char_coordinates 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f)
if 
  is_char_in_any_car 738@(644@,6i)
goto_if_false @MTBIKER_8951
774@ = store_car_char_is_in_no_save 738@(644@,6i)
set_char_heading 738@(644@,6i) {heading} 463@(644@,120f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9061

:MTBIKER_8951
create_car 707@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
set_char_heading 738@(644@,6i) {heading} 463@(644@,120f)
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_9061
if 
  656@ == 0
goto_if_false @MTBIKER_9183
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9183
if 
  not locate_char_any_means_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 500.0 {yRadius} 500.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @MTBIKER_9183
print_now 'RACES25' {time} 5000 {flag} 1
goto @MTBIKER_14361

:MTBIKER_9183
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_9378
if and
  13 > 745@(644@,10i)
  745@(644@,10i) > 4
goto_if_false @MTBIKER_9306
if 
  locate_char_in_car_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.5 {drawSphere} False
goto_if_false @MTBIKER_9299
goto @MTBIKER_12441

:MTBIKER_9299
goto @MTBIKER_9371

:MTBIKER_9306
if 
  locate_char_in_car_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MTBIKER_9371
goto @MTBIKER_12441

:MTBIKER_9371
goto @MTBIKER_9443

:MTBIKER_9378
if 
  locate_char_in_car_3d 738@(644@,6i) {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {xRadius} 15.0 {yRadius} 15.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @MTBIKER_9443
goto @MTBIKER_12441

:MTBIKER_9443
goto @MTBIKER_9504

:MTBIKER_9450
if 
  not is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_9504
if 
  not is_char_in_water 738@(644@,6i)
goto_if_false @MTBIKER_9504
745@(644@,10i) = 0

:MTBIKER_9504
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_11350
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_11318
get_char_coordinates 738@(757@,6i) {var_x} 583@(644@,10f) {var_y} 593@(644@,10f) {var_z} 603@(644@,10f)
613@, 623@, 633@ = get_car_coordinates 732@(757@,6i)
sub_float_lvar_from_float_lvar 603@(644@,10f) -= 726@(644@,6f)
sub_float_lvar_from_float_lvar 633@ -= 726@(644@,6f)
if or
  -24.5 > 603@(644@,10f)
  -24.5 > 633@
goto_if_false @MTBIKER_10089
if 
  657@ == 0
goto_if_false @MTBIKER_9699
657@ = 1
set_lvar_int_to_var_int 668@ = $game_timer
668@ += 1500

:MTBIKER_9699
if 
  657@ == 1
goto_if_false @MTBIKER_10082
set_lvar_int_to_lvar_int 649@ = 668@
sub_int_var_from_int_lvar 649@ -= $game_timer
649@ /= 1000
if 
  1 > 649@
goto_if_false @MTBIKER_9766
649@ = 0

:MTBIKER_9766
if 
  is_int_var_greater_than_int_lvar $game_timer > 668@
goto_if_false @MTBIKER_10082
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
if 
  2 >= $player_fall_state
goto_if_false @MTBIKER_10059
if 
  $player_fall_state > 0
goto_if_false @MTBIKER_9847
$player_fall_state = 6

:MTBIKER_9847
set_player_control $player1 {state} False
set_player_control $player1 {state} False
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out

:MTBIKER_9875
if 
  get_fading_status 
goto_if_false @MTBIKER_9899
wait 0
goto @MTBIKER_9875

:MTBIKER_9899
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_10008
if 
  not is_char_in_car 738@(644@,6i) {vehicle} 732@(757@,6i)
goto_if_false @MTBIKER_9962
warp_char_into_car 738@(644@,6i) {vehicle} 732@(757@,6i)

:MTBIKER_9962
set_car_coordinates 732@(757@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f)
set_car_heading 732@(757@,6i) {heading} 463@(658@,120f)

:MTBIKER_10008
do_fade 500 {direction} Fade.In
set_camera_behind_player 
restore_camera_jumpcut 

:MTBIKER_10019
if 
  get_fading_status 
goto_if_false @MTBIKER_10043
wait 0
goto @MTBIKER_10019

:MTBIKER_10043
set_camera_behind_player 
set_player_control $player1 {state} True
goto @MTBIKER_10082

:MTBIKER_10059
print_now 'RACES25' {time} 5000 {flag} 1
goto @MTBIKER_14361

:MTBIKER_10082
goto @MTBIKER_10114

:MTBIKER_10089
if 
  657@ == 1
goto_if_false @MTBIKER_10114
657@ = 0

:MTBIKER_10114
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_11311
if 
  not is_char_in_car $scplayer {vehicle} 732@(757@,6i)
goto_if_false @MTBIKER_11018
if 
  656@ == 0
goto_if_false @MTBIKER_10269
delete_checkpoint 780@
remove_blip 755@
if 
  not is_car_dead 732@(757@,6i)
goto_if_false @MTBIKER_10224
755@ = add_blip_for_car 732@(757@,6i)
set_blip_as_friendly 755@ {state} True

:MTBIKER_10224
set_lvar_int_to_lvar_int 666@ = 644@
720@(644@,6f) += 1000.0
set_lvar_int_to_var_int 667@ = $game_timer
667@ += 25400
656@ = 1

:MTBIKER_10269
set_lvar_int_to_lvar_int 649@ = 667@
sub_int_var_from_int_lvar 649@ -= $game_timer
649@ /= 1000
if 
  1 > 649@
goto_if_false @MTBIKER_10318
649@ = 0

:MTBIKER_10318
if 
  is_int_var_greater_than_int_lvar $game_timer > 667@
goto_if_false @MTBIKER_10362
print_now 'RACES20' {time} 5000 {flag} 1
goto @MTBIKER_14361
return 

:MTBIKER_10362
if 
  649@ == 1
goto_if_false @MTBIKER_10410
add_next_message_to_previous_briefs False
print_with_number_now 'RACE_51' {num} 649@ {duration} 200 {flag} 1
goto @MTBIKER_10433

:MTBIKER_10410
add_next_message_to_previous_briefs False
print_with_number_now 'RACES50' {num} 649@ {duration} 200 {flag} 1

:MTBIKER_10433
if 
  is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_11011
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_11011
if 
  is_int_var_greater_than_int_var $game_timer > $mtbikerace_best_times($mtbikerace_selection,5i)
goto_if_false @MTBIKER_10683
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
register_fastest_time StatId.Longest2WheelDist {value} $mtbikerace_best_times($mtbikerace_selection,5i)
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10654
print_with_2_numbers_big 'LAPMTB2' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_10676

:MTBIKER_10654
print_with_2_numbers_big 'LAPMTB' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_10676
goto @MTBIKER_10965

:MTBIKER_10683
set_lvar_int_to_var_int 776@ = $mtbikerace_best_times($mtbikerace_selection,5i)
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10804
print_with_2_numbers_big 'RACES08' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_10826

:MTBIKER_10804
print_with_2_numbers_big 'RACES22' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_10826
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_10943
print_with_2_numbers_big 'RACE_52' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller
goto @MTBIKER_10965

:MTBIKER_10943
print_with_2_numbers_big 'RACE_53' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller

:MTBIKER_10965
758@ += 1
if 
  758@ == 1
goto_if_false @MTBIKER_11004
goto @MTBIKER_14379
goto @MTBIKER_11011

:MTBIKER_11004
goto @MTBIKER_14361

:MTBIKER_11011
goto @MTBIKER_11311

:MTBIKER_11018
if 
  656@ == 1
goto_if_false @MTBIKER_11311
clear_this_print 'RACES50'
remove_blip 755@
720@(644@,6f) -= 1000.0
645@ = 0
set_lvar_int_to_lvar_int 647@ = 92@
647@ -= 1
755@ = add_blip_for_coord 714@(666@,6f) {y} 720@(666@,6f) {z} 726@(666@,6f)
change_blip_colour 755@ {color} BlipColor.Red
change_blip_display 755@ {display} BlipDisplay.BlipOnly
change_blip_scale 755@ {size} 3
if 
  is_int_lvar_equal_to_int_lvar 745@(666@,10i) == 713@
goto_if_false @MTBIKER_11213
780@ = create_checkpoint CheckpointType.TubeEnd {x} 714@(666@,6f) {y} 720@(666@,6f) {z} 726@(666@,6f) {pointX} 0.0 {pointY} 0.0 {pointZ} 0.0 {radius} 6.0
goto @MTBIKER_11304

:MTBIKER_11213
set_lvar_int_to_lvar_int 647@ = 745@(666@,10i)
647@ += 1
if 
  is_int_lvar_equal_to_int_lvar 745@(666@,10i) == 713@
goto_if_false @MTBIKER_11262
647@ = 1

:MTBIKER_11262
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(666@,6f) {y} 720@(666@,6f) {z} 726@(666@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0

:MTBIKER_11304
656@ = 0

:MTBIKER_11311
goto @MTBIKER_11343

:MTBIKER_11318
print_now 'RACES24' {time} 5000 {flag} 1
goto @MTBIKER_14361
return 

:MTBIKER_11343
goto @MTBIKER_11744

:MTBIKER_11350
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_11744
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_11744
get_char_coordinates 738@(644@,6i) {var_x} 583@(644@,10f) {var_y} 593@(644@,10f) {var_z} 603@(644@,10f)
sub_float_lvar_from_float_lvar 603@(644@,10f) -= 726@(644@,6f)
if 
  -15.5 > 603@(644@,10f)
goto_if_false @MTBIKER_11744
if 
  not is_point_on_screen 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f) {radius} 10.0
goto_if_false @MTBIKER_11744
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
if 
  is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_11599
set_car_coordinates 732@(644@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f)
set_car_heading 732@(644@,6i) {heading} 463@(644@,120f)
goto @MTBIKER_11744

:MTBIKER_11599
665@ = get_driver_of_car 732@(644@,6i)
if 
  665@ == -1
goto_if_false @MTBIKER_11682
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)
set_car_coordinates 732@(644@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f)
goto @MTBIKER_11744

:MTBIKER_11682
mark_car_as_no_longer_needed 732@(644@,6i)
create_car 707@(644@,6i) {x} 103@(658@,120f) {y} 223@(658@,120f) {z} 343@(658@,120f) {var_handle} 732@(644@,6i)
warp_char_into_car 738@(644@,6i) {vehicle} 732@(644@,6i)

:MTBIKER_11744
644@ += 1
goto @MTBIKER_7145

:MTBIKER_11758
draw_rect 40@ {y} 47@ {width} 54@ {height} 61@ {r} 0 {g} 0 {b} 0 {a} 255
draw_rect 39@ {y} 46@ {width} 53@ {height} 60@ {r} 134 {g} 155 {b} 184 {a} 255
draw_rect 34@ {y} 41@ {width} 48@ {height} 55@ {r} 0 {g} 0 {b} 0 {a} 255
758@ += 1
gosub @MTBIKER_14293
set_text_scale 49@ {heightScale} 56@
if 
  758@ == 1
goto_if_false @MTBIKER_11887
display_text 35@ {offsetTop} 42@ {key} 'ST'

:MTBIKER_11887
if 
  758@ == 2
goto_if_false @MTBIKER_11922
display_text 35@ {offsetTop} 42@ {key} 'ND'

:MTBIKER_11922
if 
  758@ == 3
goto_if_false @MTBIKER_11957
display_text 35@ {offsetTop} 42@ {key} 'RD'

:MTBIKER_11957
if 
  758@ > 3
goto_if_false @MTBIKER_11992
display_text 35@ {offsetTop} 42@ {key} 'TH'

:MTBIKER_11992
if 
  2 >= 758@
goto_if_false @MTBIKER_12077
set_lvar_float_to_lvar_float 655@ = 652@
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_12077
if or
  745@(644@,10i) == 17
  745@(644@,10i) == 16
goto_if_false @MTBIKER_12077
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12077
if and
  758@ > 2
  4 > 758@
goto_if_false @MTBIKER_12169
set_lvar_float_to_lvar_float 655@ = 653@
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_12169
if or
  745@(644@,10i) == 17
  745@(644@,10i) == 16
goto_if_false @MTBIKER_12169
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12169
if 
  758@ == 6
goto_if_false @MTBIKER_12195
set_lvar_float_to_lvar_float 655@ = 654@

:MTBIKER_12195
gosub @MTBIKER_14293
set_text_scale 50@ {heightScale} 57@
set_text_centre True
display_text_with_number 36@ {offsetTop} 43@ {key} 'NUMBER' {num} 758@
gosub @MTBIKER_14293
set_text_scale 51@ {heightScale} 58@
display_text_with_number 37@ {offsetTop} 44@ {key} 'OUT_OF' {num} 92@
$game_timer = get_game_timer 
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
gosub @MTBIKER_14293
set_text_centre True
set_text_scale 52@ {heightScale} 59@
if 
  649@ > 9
goto_if_false @MTBIKER_12411
display_text_with_2_numbers 38@ {offsetTop} 45@ {key} 'TIME' {num1} 648@ {num2} 649@
goto @MTBIKER_12434

:MTBIKER_12411
display_text_with_2_numbers 38@ {offsetTop} 45@ {key} 'TIME_0' {num1} 648@ {num2} 649@

:MTBIKER_12434
goto @MTBIKER_4392

:MTBIKER_12441
if 
  756@ == 7
goto_if_false @MTBIKER_12466
756@ = 8

:MTBIKER_12466
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_12514
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundPartMissionComplete
remove_blip 755@

:MTBIKER_12514
745@(644@,10i) += 1
if 
  is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_13221
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_13110
if 
  is_int_var_greater_than_int_var $game_timer > $mtbikerace_best_times($mtbikerace_selection,5i)
goto_if_false @MTBIKER_12775
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
set_var_int_to_var_int $mtbikerace_best_times($mtbikerace_selection,5i) = $game_timer
register_fastest_time StatId.Longest2WheelDist {value} $mtbikerace_best_times($mtbikerace_selection,5i)
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_12746
print_with_2_numbers_big 'LAPMTB2' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_12768

:MTBIKER_12746
print_with_2_numbers_big 'LAPMTB' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_12768
goto @MTBIKER_13057

:MTBIKER_12775
set_lvar_int_to_var_int 776@ = $mtbikerace_best_times($mtbikerace_selection,5i)
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_12896
print_with_2_numbers_big 'RACES08' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller
goto @MTBIKER_12918

:MTBIKER_12896
print_with_2_numbers_big 'RACES22' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.WhiteMiddleSmaller

:MTBIKER_12918
set_lvar_int_to_var_int 776@ = $game_timer
sub_int_lvar_from_int_lvar 776@ -= 651@
776@ /= 1000
set_lvar_int_to_lvar_int 648@ = 776@
648@ /= 60
set_lvar_int_to_lvar_int 647@ = 648@
647@ *= 60
set_lvar_int_to_lvar_int 649@ = 776@
sub_int_lvar_from_int_lvar 649@ -= 647@
if 
  649@ > 9
goto_if_false @MTBIKER_13035
print_with_2_numbers_big 'TIME' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller
goto @MTBIKER_13057

:MTBIKER_13035
print_with_2_numbers_big 'TIME_0' {num1} 648@ {num2} 649@ {duration} 5000 {style} TextStyle.MiddleSmaller

:MTBIKER_13057
758@ += 1
if 
  758@ == 1
goto_if_false @MTBIKER_13096
goto @MTBIKER_14379
goto @MTBIKER_13103

:MTBIKER_13096
goto @MTBIKER_14361

:MTBIKER_13103
goto @MTBIKER_13221

:MTBIKER_13110
task_car_temp_action 738@(644@,6i) {vehicle} -1 {actionId} TempAction.HandbrakeStraight {time} 2000000
set_lvar_int_to_lvar_int 658@ = 745@(644@,10i)
658@ -= 1
if 
  not is_point_on_screen 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {radius} 30.0
goto_if_false @MTBIKER_13221
if 
  not is_car_dead 774@
goto_if_false @MTBIKER_13221
turn_car_to_face_coord 774@ {x} 103@(658@,120f) {y} 223@(658@,120f)

:MTBIKER_13221
set_lvar_int_to_lvar_int 647@ = 745@(644@,10i)
set_lvar_float_to_lvar_float 714@(644@,6f) = 103@(647@,120f)
set_lvar_float_to_lvar_float 720@(644@,6f) = 223@(647@,120f)
set_lvar_float_to_lvar_float 726@(644@,6f) = 343@(647@,120f)
if 
  is_int_lvar_equal_to_int_var 738@(644@,6i) == $scplayer
goto_if_false @MTBIKER_13662
647@ += 1
set_lvar_float_to_lvar_float 777@ = 103@(647@,120f)
set_lvar_float_to_lvar_float 778@ = 223@(647@,120f)
set_lvar_float_to_lvar_float 779@ = 343@(647@,120f)
755@ = add_blip_for_coord 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f)
change_blip_colour 755@ {color} BlipColor.Red
change_blip_display 755@ {display} BlipDisplay.BlipOnly
change_blip_scale 755@ {size} 3
if 
  756@ == 1
goto_if_false @MTBIKER_13454
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0

:MTBIKER_13454
delete_checkpoint 780@
if 
  is_int_lvar_greater_than_int_lvar 713@ > 745@(644@,10i)
goto_if_false @MTBIKER_13531
780@ = create_checkpoint CheckpointType.TubeArrow {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0
goto @MTBIKER_13573

:MTBIKER_13531
780@ = create_checkpoint CheckpointType.TubeEnd {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {pointX} 777@ {pointY} 778@ {pointZ} 779@ {radius} 6.0

:MTBIKER_13573
if 
  745@(644@,10i) == 3
goto_if_false @MTBIKER_13655
mark_char_as_no_longer_needed 770@
mark_char_as_no_longer_needed 759@
mark_char_as_no_longer_needed 760@
mark_char_as_no_longer_needed 761@
mark_char_as_no_longer_needed 762@
mark_char_as_no_longer_needed 763@
mark_char_as_no_longer_needed 764@
mark_char_as_no_longer_needed 765@
mark_char_as_no_longer_needed 766@
mark_char_as_no_longer_needed 767@
mark_char_as_no_longer_needed 768@
mark_char_as_no_longer_needed 769@

:MTBIKER_13655
goto @MTBIKER_14286

:MTBIKER_13662
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_14048
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_14041
if 
  745@(644@,10i) == 1
goto_if_false @MTBIKER_13826
if 
  644@ == 0
goto_if_false @MTBIKER_13774
$random_number_mtbike = generate_random_int_in_range 832 {max} 835
start_playback_recorded_car 732@(644@,6i) {path} $random_number_mtbike
set_char_can_be_knocked_off_bike 738@(644@,6i) {stayOnBike} True

:MTBIKER_13774
if 
  644@ == 1
goto_if_false @MTBIKER_13826
$random_number_mtbike = generate_random_int_in_range 829 {max} 832
start_playback_recorded_car 732@(644@,6i) {path} $random_number_mtbike
set_char_can_be_knocked_off_bike 738@(644@,6i) {stayOnBike} True

:MTBIKER_13826
if 
  745@(644@,10i) == 13
goto_if_false @MTBIKER_13948
  is_playback_going_on_for_car 732@(644@,6i)
stop_playback_recorded_car 732@(644@,6i)
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_13948
set_char_can_be_knocked_off_bike 738@(644@,6i) {stayOnBike} False
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9504

:MTBIKER_13948
if 
  745@(644@,10i) > 13
goto_if_false @MTBIKER_14041
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_14041
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9504

:MTBIKER_14041
goto @MTBIKER_14286

:MTBIKER_14048
if 
  not is_int_lvar_equal_to_int_lvar 745@(644@,10i) == 700@
goto_if_false @MTBIKER_14119
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} 714@(644@,6f) {y} 720@(644@,6f) {z} 726@(644@,6f) {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars
goto @MTBIKER_9504

:MTBIKER_14119
if 
  is_int_lvar_greater_or_equal_to_int_lvar 745@(644@,10i) >= 700@
goto_if_false @MTBIKER_14286
if 
  not is_car_dead 732@(644@,6i)
goto_if_false @MTBIKER_14286
if 
  not is_char_dead 738@(644@,6i)
goto_if_false @MTBIKER_14286
if 
  is_char_in_car 738@(644@,6i) {vehicle} 732@(644@,6i)
goto_if_false @MTBIKER_14286
if 
  690@(644@,10i) == 0
goto_if_false @MTBIKER_14286
clear_char_tasks 738@(644@,6i)
690@(644@,10i) = 1
task_car_drive_to_coord 738@(644@,6i) {vehicle} -1 {x} -2399.863 {y} -2206.5491 {z} 32.5652 {speed} 655@ {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.SlowDownForCars

:MTBIKER_14286
goto @MTBIKER_9504

:MTBIKER_14293
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.6146 {heightScale} 2.4961
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 180
return 

:MTBIKER_14361
print_big 'RACES_8' {time} 5000 {style} TextStyle.Middle
return 

:MTBIKER_14379
set_lvar_int_to_var_int 646@ = $mtbikerace_selection
646@ += 1
646@ *= 10000
clear_wanted_level $player1
play_mission_passed_tune 1
if 
  $mtbikerace_selection == 1
goto_if_false @MTBIKER_14473
print_big 'RACES18' {time} 500 {style} TextStyle.Middle
add_score $player1 {money} 500
print_now 'MTWIN1' {time} 5000 {flag} 1
play_mission_passed_tune 1

:MTBIKER_14473
if 
  $mtbikerace_selection == 2
goto_if_false @MTBIKER_14535
print_now 'MTWIN2' {time} 5000 {flag} 1
print_big 'RACES18' {time} 1000 {style} TextStyle.Middle
add_score $player1 {money} 1000
play_mission_passed_tune 1

:MTBIKER_14535
if 
  $mtbikerace_selection == 3
goto_if_false @MTBIKER_14597
print_big 'RACES18' {time} 2000 {style} TextStyle.Middle
add_score $player1 {money} 2000
print_now 'MTWIN3' {time} 5000 {flag} 1
play_mission_passed_tune 2

:MTBIKER_14597
$mtbikerace_selection += 1
if 
  $mtbikerace_selection > 3
goto_if_false @MTBIKER_14660
if 
  $flag_mtbike_passed_1stime == 0
goto_if_false @MTBIKER_14653
register_oddjob_mission_passed 
player_made_progress 1
$flag_mtbike_passed_1stime = 1

:MTBIKER_14653
$mtbikerace_selection = 1

:MTBIKER_14660
return 

:MTBIKER_14662
$onmission = 0
if 
  not is_car_dead 732@
goto_if_false @MTBIKER_14706
if 
is_recording_going_on_for_car 732@
goto_if_false @MTBIKER_14706
stop_playback_recorded_car 732@

:MTBIKER_14706
if 
  not is_car_dead 733@
goto_if_false @MTBIKER_14743
if 
is_recording_going_on_for_car 733@
goto_if_false @MTBIKER_14743
stop_playback_recorded_car 733@

:MTBIKER_14743
remove_car_recording 829
remove_car_recording 830
remove_car_recording 831
remove_car_recording 832
remove_car_recording 833
remove_car_recording 834
mark_model_as_no_longer_needed 701@
mark_model_as_no_longer_needed 702@
mark_model_as_no_longer_needed 703@
mark_model_as_no_longer_needed 704@
mark_model_as_no_longer_needed 705@
mark_model_as_no_longer_needed 706@
mark_model_as_no_longer_needed 707@
mark_model_as_no_longer_needed 708@
mark_model_as_no_longer_needed 709@
mark_model_as_no_longer_needed 710@
mark_model_as_no_longer_needed 711@
mark_model_as_no_longer_needed 712@
mark_char_as_no_longer_needed 770@
mark_char_as_no_longer_needed 759@
mark_char_as_no_longer_needed 760@
mark_char_as_no_longer_needed 761@
mark_char_as_no_longer_needed 762@
mark_char_as_no_longer_needed 763@
mark_char_as_no_longer_needed 764@
mark_char_as_no_longer_needed 765@
mark_char_as_no_longer_needed 766@
mark_char_as_no_longer_needed 767@
mark_char_as_no_longer_needed 768@
mark_char_as_no_longer_needed 769@
display_car_names True
remove_blip 755@
$timer_mobile_start = get_game_timer 
set_message_formatting False {margin} 380 {width} 464
use_text_commands False
mission_has_finished 
return 

//-------------Mission 133---------------
// Originally: BMX / NRG-500 STUNT Mission

:STUNT
gosub @STUNT_36
if 
  has_deatharrest_been_executed 
goto_if_false @STUNT_27
gosub @STUNT_1602

:STUNT_27
gosub @STUNT_2028
terminate_this_script 

:STUNT_36
$onmission = 1
if 
  $done_bmx_stunt_progress == 0
goto_if_false @STUNT_63
register_mission_given 

:STUNT_63
script_name 'STUNT'
wait 0
load_mission_text 'STUNT'

:STUNT_89
if 
  not is_player_playing $player1
goto_if_false @STUNT_116
wait 0
goto @STUNT_89

:STUNT_116
34@ = store_car_char_is_in $scplayer
set_car_health 34@ {health} 3000
gosub @STUNT_2129
35@ = 1
56@ = 0

:STUNT_153
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_197
36@(56@,20i) = 0
56@ += 1
goto @STUNT_153

:STUNT_197
if 
  $onmission == 0
goto_if_false @STUNT_229
57@ = add_blip_for_coord $x {y} $y {z} $z

:STUNT_229
58@ = 0
59@ = 0
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_fixed_camera_position 188@ {y} 189@ {z} 190@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 191@ {y} 192@ {z} 193@ {switchStyle} SwitchType.JumpCut
$game_timer = get_game_timer 
set_var_int_to_var_int $stunt_timer = $game_timer
$stunt_timer += 5000
print_now 'STUNT_6' {time} 5000 {flag} 1
80@ = 0

:STUNT_355
wait 0
$game_timer = get_game_timer 
if 
  58@ == 0
goto_if_false @STUNT_510
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @STUNT_503
if 
  80@ == 1
goto_if_false @STUNT_496
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
$stunt_timer = 11000
display_onscreen_timer_with_string $stunt_timer {direction} TimerDirection.Down {text} 'STUNT_2'
set_lvar_int_to_var_int 81@ = $game_timer
58@ = 1
80@ = 0

:STUNT_496
goto @STUNT_510

:STUNT_503
80@ = 1

:STUNT_510
if 
  58@ == 0
goto_if_false @STUNT_619
if 
  is_int_var_greater_than_int_var $game_timer > $stunt_timer
goto_if_false @STUNT_619
set_player_control $player1 {state} True
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
$stunt_timer = 11000
display_onscreen_timer_with_string $stunt_timer {direction} TimerDirection.Down {text} 'STUNT_2'
set_lvar_int_to_var_int 81@ = $game_timer
58@ = 1

:STUNT_619
if 
  not is_car_dead 34@
goto_if_false @STUNT_1505
if 
  is_char_in_car $scplayer {vehicle} 34@
goto_if_false @STUNT_1180
if 
  35@ == 1
goto_if_false @STUNT_856
clear_this_print 'STUNT_1'
remove_blip 57@
56@ = 0

:STUNT_695
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_849
if 
  36@(56@,20i) == 0
goto_if_false @STUNT_835
add_blip_for_coord 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {var_handle} 82@(56@,20i)
change_blip_colour 82@(56@,20i) {color} BlipColor.Red
create_checkpoint CheckpointType.Torus {x} 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {pointX} 127@(56@,20f) {pointY} 147@(56@,20f) {pointZ} 167@(56@,20f) {radius} 0.8 {var_handle} 102@(56@,20i)

:STUNT_835
56@ += 1
goto @STUNT_695

:STUNT_849
35@ = 0

:STUNT_856
56@ = 0

:STUNT_863
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_1173
if 
  36@(56@,20i) == 0
goto_if_false @STUNT_1159
set_checkpoint_heading 102@(56@,20i) {heading} 60@(56@,20f)
draw_shadow ShadowTextureType.Ped {x} 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {angle} 0.0 {length} 1.0 {intensity} 150 {r} 0 {g} 0 {b} 0
60@(56@,20f) += 10.0
if 
  60@(56@,20f) > 360.0
goto_if_false @STUNT_1017
60@(56@,20f) -= 360.0

:STUNT_1017
if 
  locate_char_in_car_3d $scplayer {x} 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @STUNT_1159
remove_blip 82@(56@,20i)
delete_checkpoint 102@(56@,20i)
report_mission_audio_event_at_position 127@(56@,20f) {y} 147@(56@,20f) {z} 167@(56@,20f) {soundId} ScriptSound.SoundPartMissionComplete
$stunt_timer += 10000
print_with_number_now 'STUNT_3' {num} 10 {duration} 1500 {flag} 1
59@ += 1
36@(56@,20i) += 1

:STUNT_1159
56@ += 1
goto @STUNT_863

:STUNT_1173
goto @STUNT_1498

:STUNT_1180
if 
  35@ == 0
goto_if_false @STUNT_1336
56@ = 0

:STUNT_1205
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_1256
remove_blip 82@(56@,20i)
delete_checkpoint 102@(56@,20i)
56@ += 1
goto @STUNT_1205

:STUNT_1256
57@ = add_blip_for_car 34@
set_blip_as_friendly 57@ {state} True
if 
  $stunt_timer > 25400
goto_if_false @STUNT_1313
set_lvar_int_to_var_int 122@ = $game_timer
122@ += 25400
goto @STUNT_1329

:STUNT_1313
set_lvar_int_to_var_int 122@ = $game_timer
add_int_var_to_int_lvar 122@ += $stunt_timer

:STUNT_1329
35@ = 1

:STUNT_1336
set_lvar_int_to_lvar_int 123@ = 122@
sub_int_var_from_int_lvar 123@ -= $game_timer
123@ /= 1000
if 
  1 > 123@
goto_if_false @STUNT_1385
123@ = 0

:STUNT_1385
if 
  is_int_var_greater_than_int_lvar $game_timer > 122@
goto_if_false @STUNT_1427
print_now 'STUNT_4' {time} 5000 {flag} 1
goto @STUNT_1602

:STUNT_1427
if 
  123@ == 1
goto_if_false @STUNT_1475
add_next_message_to_previous_briefs False
print_with_number_now 'STUNT_8' {num} 123@ {duration} 200 {flag} 1
goto @STUNT_1498

:STUNT_1475
add_next_message_to_previous_briefs False
print_with_number_now 'STUNT_1' {num} 123@ {duration} 200 {flag} 1

:STUNT_1498
goto @STUNT_1528

:STUNT_1505
print_now 'STUNT_5' {time} 5000 {flag} 1
goto @STUNT_1602

:STUNT_1528
if 
  is_int_lvar_equal_to_int_lvar 59@ == 187@
goto_if_false @STUNT_1554
goto @STUNT_1620

:STUNT_1554
if 
  $stunt_timer == 0
goto_if_false @STUNT_1595
print_now 'STUNT_7' {time} 5000 {flag} 1
goto @STUNT_1602

:STUNT_1595
goto @STUNT_355

:STUNT_1602
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle
return 

:STUNT_1620
add_score $player1 {money} 1000
clear_wanted_level $player1
play_mission_passed_tune 1
set_lvar_int_to_var_int 124@ = $game_timer
sub_int_lvar_from_int_lvar 124@ -= 81@
124@ /= 1000
if 
  $stunt_course == 0
goto_if_false @STUNT_1730
if 
  $done_bmx_stunt_progress == 0
goto_if_false @STUNT_1723
player_made_progress 1
register_mission_passed 'BMX'
play_mission_passed_tune 2
$done_bmx_stunt_progress = 1

:STUNT_1723
register_fastest_time StatId.BestTimeBmx {value} 124@

:STUNT_1730
if 
  $stunt_course == 1
goto_if_false @STUNT_1800
if 
  $done_nrg500_stunt_progress == 0
goto_if_false @STUNT_1792
player_made_progress 1
register_mission_passed 'NRG500'
play_mission_passed_tune 2
$done_nrg500_stunt_progress = 1

:STUNT_1792
register_fastest_time StatId.BestTimeNrg {value} 124@

:STUNT_1800
set_lvar_int_to_lvar_int 125@ = 124@
125@ /= 60
set_lvar_int_to_lvar_int 126@ = 125@
126@ *= 60
set_lvar_int_to_lvar_int 123@ = 124@
sub_int_lvar_from_int_lvar 123@ -= 126@
if 
  is_int_var_greater_than_int_lvar $stunt_best_time($stunt_course,2i) > 124@
goto_if_false @STUNT_1957
if 
  10 > 123@
goto_if_false @STUNT_1916
print_with_2_numbers_big 'STUNTN0' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle
goto @STUNT_1938

:STUNT_1916
print_with_2_numbers_big 'STUNTPN' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle

:STUNT_1938
set_var_int_to_lvar_int $stunt_best_time($stunt_course,2i) = 124@
goto @STUNT_2026

:STUNT_1957
if 
  10 > 123@
goto_if_false @STUNT_2004
print_with_2_numbers_big 'STUNTT0' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle
goto @STUNT_2026

:STUNT_2004
print_with_2_numbers_big 'STUNTPT' {num1} 125@ {num2} 123@ {duration} 5000 {style} TextStyle.Middle

:STUNT_2026
return 

:STUNT_2028
clear_this_print 'STUNT_1'
clear_this_print 'STUNT_3'
56@ = 0

:STUNT_2057
if 
  is_int_lvar_greater_than_int_lvar 187@ > 56@
goto_if_false @STUNT_2108
remove_blip 82@(56@,20i)
delete_checkpoint 102@(56@,20i)
56@ += 1
goto @STUNT_2057

:STUNT_2108
remove_blip 57@
clear_onscreen_timer $stunt_timer
$onmission = 0
mission_has_finished 
return 

:STUNT_2129
switch_start $stunt_course {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @STUNT_3450 {caseNum1} 0 {caseLabel1} @STUNT_2192 {caseNum2} 1 {caseLabel2} @STUNT_2836 {caseNum3} -1 {caseLabel3} @STUNT_3450 {caseNum4} -1 {caseLabel4} @STUNT_3450 {caseNum5} -1 {caseLabel5} @STUNT_3450 {caseNum6} -1 {caseLabel6} @STUNT_3450 {caseNum7} -1 {caseLabel7} @STUNT_3450

:STUNT_2192
127@ = 1955.012
147@ = -1367.72
167@ = 24.7354
128@ = 1954.609
148@ = -1376.964
168@ = 24.2187
129@ = 1887.392
149@ = -1362.954
169@ = 19.4329
130@ = 1914.137
150@ = -1427.099
170@ = 15.5805
131@ = 1908.552
151@ = -1388.389
171@ = 10.3294
132@ = 1882.3621
152@ = -1427.686
172@ = 10.3294
133@ = 1953.349
153@ = -1426.5861
173@ = 10.3294
134@ = 1878.189
154@ = -1388.8101
174@ = 15.2464
135@ = 1878.184
155@ = -1388.839
175@ = 18.1461
136@ = 1872.327
156@ = -1451.051
176@ = 15.7645
137@ = 1905.178
157@ = -1413.675
177@ = 13.5322
138@ = 1949.5031
158@ = -1411.546
178@ = 15.1837
139@ = 1867.153
159@ = -1410.007
179@ = 13.5322
140@ = 1909.3409
160@ = -1369.8459
180@ = 16.7966
141@ = 1939.243
161@ = -1388.132
181@ = 19.2615
142@ = 1904.8879
162@ = -1360.6219
182@ = 13.5322
143@ = 1930.234
163@ = -1398.62
183@ = 16.8554
144@ = 1888.765
164@ = -1399.326
184@ = 17.2408
145@ = 1900.948
165@ = -1397.83
185@ = 15.6868
187@ = 19
188@ = 1964.7531
189@ = -1368.3621
190@ = 29.6217
191@ = 1963.934
192@ = -1368.818
193@ = 29.2725
goto @STUNT_3450

:STUNT_2836
127@ = -1632.058
147@ = 143.152
167@ = 3.4111
128@ = -1632.021
148@ = 83.0413
168@ = 7.5331
129@ = -1689.1479
149@ = 53.3936
169@ = 11.7703
130@ = -1606.423
150@ = 133.4396
170@ = -10.9911
131@ = -1680.386
151@ = 87.0915
171@ = 8.2325
132@ = -1666.295
152@ = 102.0489
172@ = -1.5025
133@ = -1654.692
153@ = 60.7782
173@ = 7.6501
134@ = -1684.8669
154@ = 74.6374
174@ = -7.0328
135@ = -1583.797
155@ = 126.1577
175@ = 4.157
136@ = -1667.705
156@ = 49.5191
176@ = 6.5634
137@ = -1611.585
157@ = 106.3131
177@ = -3.6465
138@ = -1590.556
158@ = 148.9676
178@ = 4.113
139@ = -1671.959
159@ = 98.6
179@ = 8.9263
140@ = -1693.3199
160@ = 65.1187
180@ = 8.7997
141@ = -1660.951
161@ = 107.6739
181@ = -2.1545
142@ = -1654.071
162@ = 77.2629
182@ = -10.2893
143@ = -1645.494
163@ = 107.2477
183@ = -10.6617
144@ = -1673.735
164@ = 56.9287
184@ = -10.674
187@ = 18
188@ = -1681.464
189@ = 27.2091
190@ = 9.6606
191@ = -1681.252
192@ = 28.183
193@ = 9.5773
goto @STUNT_3450

:STUNT_3450
return 

//-------------Mission 134---------------
// Originally: Buy Properties Mission

:BUYPRO1
script_name 'BUYPRO1'
$onmission = 1
wait 0
34@ = 0
set_fading_colour 0 {g} 0 {b} 1
set_player_control $player1 {state} False
switch_widescreen True
switch_start $buying_property_switch {numCases} 32 {hasDefaultCase} 0 {defaultLabel} @BUYPRO1_4201 {caseNum1} 0 {caseLabel1} @BUYPRO1_306 {caseNum2} 1 {caseLabel2} @BUYPRO1_410 {caseNum3} 2 {caseLabel3} @BUYPRO1_504 {caseNum4} 3 {caseLabel4} @BUYPRO1_688 {caseNum5} 4 {caseLabel5} @BUYPRO1_814 {caseNum6} 5 {caseLabel6} @BUYPRO1_940 {caseNum7} 6 {caseLabel7} @BUYPRO1_1066
switch_continued 7 {caseLabel1} @BUYPRO1_1192 {caseNum2} 8 {caseLabel2} @BUYPRO1_1318 {caseNum3} 9 {caseLabel3} @BUYPRO1_1444 {caseNum4} 10 {caseLabel4} @BUYPRO1_1570 {caseNum5} 11 {caseLabel5} @BUYPRO1_1696 {caseNum6} 12 {caseLabel6} @BUYPRO1_1822 {caseNum7} 13 {caseLabel7} @BUYPRO1_1948 {caseNum8} 14 {caseLabel8} @BUYPRO1_2074 {caseNum9} 15 {caseLabel9} @BUYPRO1_2200
switch_continued 16 {caseLabel1} @BUYPRO1_2315 {caseNum2} 17 {caseLabel2} @BUYPRO1_2437 {caseNum3} 18 {caseLabel3} @BUYPRO1_2559 {caseNum4} 19 {caseLabel4} @BUYPRO1_2674 {caseNum5} 20 {caseLabel5} @BUYPRO1_2789 {caseNum6} 21 {caseLabel6} @BUYPRO1_2904 {caseNum7} 22 {caseLabel7} @BUYPRO1_3026 {caseNum8} 23 {caseLabel8} @BUYPRO1_3141 {caseNum9} 24 {caseLabel9} @BUYPRO1_3256
switch_continued 25 {caseLabel1} @BUYPRO1_3371 {caseNum2} 26 {caseLabel2} @BUYPRO1_3497 {caseNum3} 27 {caseLabel3} @BUYPRO1_3612 {caseNum4} 28 {caseLabel4} @BUYPRO1_3734 {caseNum5} 29 {caseLabel5} @BUYPRO1_3856 {caseNum6} 30 {caseLabel6} @BUYPRO1_3971 {caseNum7} 31 {caseLabel7} @BUYPRO1_4086 {caseNum8} -1 {caseLabel8} @BUYPRO1_4201 {caseNum9} -1 {caseLabel9} @BUYPRO1_4201

:BUYPRO1_306
set_fixed_camera_position -1990.969 {y} 292.2734 {z} 35.1049 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1990.053 {y} 291.9333 {z} 35.3176 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $save_houseprice
start_new_script @STEAL 
remove_blip $steal_contact_blip
$steal_contact_blip = add_sprite_blip_for_contact_point $stealX {y} $stealY {z} $stealZ {sprite} $steal_blip_icon
remove_blip $showroom_contact_blip
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_410
set_fixed_camera_position -2255.7051 {y} 131.9585 {z} 38.5998 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2254.7161 {y} 132.0048 {z} 38.4589 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1654
remove_blip $zero_contact_blip
switch_entry_exit 'RCPLAY' {state} True
$zeros_property_bought = 1
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_504
set_fixed_camera_position 445.128 {y} 2540.436 {z} 25.6202 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 444.1882 {y} 2540.1421 {z} 25.4462 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1655
remove_blip $airstrip_contact_blip
start_new_script @PSCH 
remove_blip $desert2_contact_blip
remove_blip $1719
$1719 = add_short_range_sprite_blip_for_contact_point $save_pickupX[2] {y} $save_pickupY[2] {z} $save_pickupZ[2] {sprite} RadarSprite.SaveGame
change_blip_display $1719 {display} BlipDisplay.BlipOnly
remove_blip $pilot_contact_blip
$pilot_contact_blip = add_sprite_blip_for_contact_point $pilotx {y} $piloty {z} $pilotz {sprite} $pilot_blip_icon
change_blip_display $pilot_contact_blip {display} BlipDisplay.BlipOnly
activate_garage 'CN2GAR2'
activate_garage 'DHANGAR'
set_closest_entry_exit_flag $propertyX[2] {y} $propertyY[2] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_688
set_fixed_camera_position 316.0747 {y} -1786.757 {z} 5.0712 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 316.1206 {y} -1785.778 {z} 5.2692 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1656
remove_blip $1624
$1624 = add_short_range_sprite_blip_for_contact_point $propertyX[3] {y} $propertyY[3] {z} $propertyZ[3] {sprite} RadarSprite.SaveGame
change_blip_display $1624 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[3] {y} $propertyY[3] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BEACSV'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_814
set_fixed_camera_position 2430.8689 {y} 698.3348 {z} 12.9763 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2431.7891 {y} 697.9644 {z} 12.843 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1657
remove_blip $1625
$1625 = add_short_range_sprite_blip_for_contact_point $propertyX[4] {y} $propertyY[4] {z} $propertyZ[4] {sprite} RadarSprite.SaveGame
change_blip_display $1625 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[4] {y} $propertyY[4] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'VESVGRG'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_940
set_fixed_camera_position -362.3164 {y} 1152.6639 {z} 21.4821 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -362.6989 {y} 1153.587 {z} 21.5142 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1658
remove_blip $1626
$1626 = add_short_range_sprite_blip_for_contact_point $propertyX[5] {y} $propertyY[5] {z} $propertyZ[5] {sprite} RadarSprite.SaveGame
change_blip_display $1626 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[5] {y} $propertyY[5] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'CN2GAR1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1066
set_fixed_camera_position 1295.9821 {y} 2525.5701 {z} 14.1002 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1294.994 {y} 2525.7241 {z} 14.0597 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1659
remove_blip $1627
$1627 = add_short_range_sprite_blip_for_contact_point $propertyX[6] {y} $propertyY[6] {z} $propertyZ[6] {sprite} RadarSprite.SaveGame
change_blip_display $1627 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[6] {y} $propertyY[6] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BLOB69'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1192
set_fixed_camera_position 908.9885 {y} 2006.151 {z} 17.7914 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 909.9134 {y} 2006.1429 {z} 17.4113 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1660
remove_blip $1628
$1628 = add_short_range_sprite_blip_for_contact_point $propertyX[7] {y} $propertyY[7] {z} $propertyZ[7] {sprite} RadarSprite.SaveGame
change_blip_display $1628 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[7] {y} $propertyY[7] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BLOB7'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1318
set_fixed_camera_position 2233.1399 {y} 152.5748 {z} 33.5239 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2233.1599 {y} 153.5324 {z} 33.2366 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1661
remove_blip $1629
$1629 = add_short_range_sprite_blip_for_contact_point $propertyX[8] {y} $propertyY[8] {z} $propertyZ[8] {sprite} RadarSprite.SaveGame
change_blip_display $1629 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[8] {y} $propertyY[8] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BURBDOO'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1444
set_fixed_camera_position 1385.519 {y} 1901.313 {z} 14.5901 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1386.472 {y} 1901.076 {z} 14.4041 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1662
remove_blip $1630
$1630 = add_short_range_sprite_blip_for_contact_point $propertyX[9] {y} $propertyY[9] {z} $propertyZ[9] {sprite} RadarSprite.SaveGame
change_blip_display $1630 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[9] {y} $propertyY[9] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BLOB6'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1570
set_fixed_camera_position 1689.118 {y} -2120.165 {z} 18.6369 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1689.188 {y} -2119.187 {z} 18.4393 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1663
remove_blip $1631
$1631 = add_short_range_sprite_blip_for_contact_point $propertyX[10] {y} $propertyY[10] {z} $propertyZ[10] {sprite} RadarSprite.SaveGame
change_blip_display $1631 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[10] {y} $propertyY[10] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'CARLAS1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1696
set_fixed_camera_position -2098.967 {y} 923.2947 {z} 80.2446 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2098.9861 {y} 922.2994 {z} 80.3401 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1664
remove_blip $1632
$1632 = add_short_range_sprite_blip_for_contact_point $propertyX[11] {y} $propertyY[11] {z} $propertyZ[11] {sprite} RadarSprite.SaveGame
change_blip_display $1632 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[11] {y} $propertyY[11] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'SAV1SFE'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1822
set_fixed_camera_position 1325.974 {y} -598.7552 {z} 116.1597 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1326.254 {y} -599.7052 {z} 116.0219 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1665
remove_blip $1633
$1633 = add_short_range_sprite_blip_for_contact_point $propertyX[12] {y} $propertyY[12] {z} $propertyZ[12] {sprite} RadarSprite.SaveGame
change_blip_display $1633 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[12] {y} $propertyY[12] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'CESAFE1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_1948
set_fixed_camera_position -2700.657 {y} 791.45 {z} 70.2223 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2700.6609 {y} 792.4032 {z} 69.9203 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1666
remove_blip $1634
$1634 = add_short_range_sprite_blip_for_contact_point $propertyX[13] {y} $propertyY[13] {z} $propertyZ[13] {sprite} RadarSprite.SaveGame
change_blip_display $1634 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[13] {y} $propertyY[13] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'SAV1SFW'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2074
set_fixed_camera_position -2476.4319 {y} -127.2039 {z} 26.6779 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2475.458 {y} -127.2469 {z} 26.8974 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1667
remove_blip $1635
$1635 = add_short_range_sprite_blip_for_contact_point $propertyX[14] {y} $propertyY[14] {z} $propertyZ[14] {sprite} RadarSprite.SaveGame
change_blip_display $1635 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[14] {y} $propertyY[14] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'SVGSFS1'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2200
set_fixed_camera_position 894.7908 {y} -1663.996 {z} 20.202 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 894.803 {y} -1663.0031 {z} 20.0891 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1668
remove_blip $1636
$1636 = add_short_range_sprite_blip_for_contact_point $propertyX[15] {y} $propertyY[15] {z} $propertyZ[15] {sprite} RadarSprite.SaveGame
change_blip_display $1636 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[15] {y} $propertyY[15] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2315
set_fixed_camera_position 2036.76 {y} 1623.074 {z} 13.4128 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2035.8 {y} 1623.087 {z} 13.6921 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1669
remove_blip $1637
$1637 = add_short_range_sprite_blip_for_contact_point $propertyX[16] {y} $propertyY[16] {z} $propertyZ[16] {sprite} RadarSprite.SaveGame
change_blip_display $1637 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[16] {y} $propertyY[16] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_2437
set_fixed_camera_position 2146.165 {y} 1286.25 {z} 33.6386 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2147.1641 {y} 1286.218 {z} 33.5943 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1670
remove_blip $1638
$1638 = add_short_range_sprite_blip_for_contact_point $propertyX[17] {y} $propertyY[17] {z} $propertyZ[17] {sprite} RadarSprite.SaveGame
change_blip_display $1638 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[17] {y} $propertyY[17] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_2559
set_fixed_camera_position -2213.188 {y} 744.9976 {z} 50.024 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2213.2729 {y} 744.0281 {z} 50.254 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1671
remove_blip $1639
$1639 = add_short_range_sprite_blip_for_contact_point $propertyX[18] {y} $propertyY[18] {z} $propertyZ[18] {sprite} RadarSprite.SaveGame
change_blip_display $1639 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[18] {y} $propertyY[18] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2674
set_fixed_camera_position -1437.184 {y} -1507.7321 {z} 103.8198 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1437.047 {y} -1508.7111 {z} 103.9666 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1672
remove_blip $1640
$1640 = add_short_range_sprite_blip_for_contact_point $propertyX[19] {y} $propertyY[19] {z} $propertyZ[19] {sprite} RadarSprite.SaveGame
change_blip_display $1640 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[19] {y} $propertyY[19] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2789
set_fixed_camera_position -2000.427 {y} -64.4142 {z} 40.0479 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2001.257 {y} -63.8685 {z} 40.1625 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1673
remove_blip $1641
$1641 = add_short_range_sprite_blip_for_contact_point $propertyX[20] {y} $propertyY[20] {z} $propertyZ[20] {sprite} RadarSprite.SaveGame
change_blip_display $1641 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[20] {y} $propertyY[20] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_2904
set_fixed_camera_position -2379.854 {y} 312.8534 {z} 34.2136 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2380.6831 {y} 313.311 {z} 34.5349 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1674
remove_blip $1642
$1642 = add_short_range_sprite_blip_for_contact_point $propertyX[21] {y} $propertyY[21] {z} $propertyZ[21] {sprite} RadarSprite.SaveGame
change_blip_display $1642 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[21] {y} $propertyY[21] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3026
set_fixed_camera_position -2079.061 {y} -2298.0559 {z} 35.15 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -2078.8799 {y} -2299.0291 {z} 35.0066 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1675
remove_blip $1643
$1643 = add_short_range_sprite_blip_for_contact_point $propertyX[22] {y} $propertyY[22] {z} $propertyZ[22] {sprite} RadarSprite.SaveGame
change_blip_display $1643 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[22] {y} $propertyY[22] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3141
set_fixed_camera_position -1545.093 {y} 2663.0559 {z} 61.0133 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1544.282 {y} 2662.509 {z} 60.8075 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1676
remove_blip $1644
$1644 = add_short_range_sprite_blip_for_contact_point $propertyX[23] {y} $propertyY[23] {z} $propertyZ[23] {sprite} RadarSprite.SaveGame
change_blip_display $1644 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[23] {y} $propertyY[23] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3256
set_fixed_camera_position -1035.191 {y} 1568.4561 {z} 39.7221 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1035.9709 {y} 1567.886 {z} 39.4659 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1677
remove_blip $1645
$1645 = add_short_range_sprite_blip_for_contact_point $propertyX[24] {y} $propertyY[24] {z} $propertyZ[24] {sprite} RadarSprite.SaveGame
change_blip_display $1645 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[24] {y} $propertyY[24] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3371
set_fixed_camera_position 789.7151 {y} -529.9901 {z} 20.74 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 789.8545 {y} -529.0045 {z} 20.6445 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1678
remove_blip $1646
$1646 = add_short_range_sprite_blip_for_contact_point $propertyX[25] {y} $propertyY[25] {z} $propertyZ[25] {sprite} RadarSprite.SaveGame
change_blip_display $1646 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[25] {y} $propertyY[25] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
activate_garage 'BURBDO2'
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3497
set_fixed_camera_position 2114.3789 {y} -1299.7419 {z} 32.8721 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2114.3049 {y} -1298.833 {z} 32.4622 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1679
remove_blip $1647
$1647 = add_short_range_sprite_blip_for_contact_point $propertyX[26] {y} $propertyY[26] {z} $propertyZ[26] {sprite} RadarSprite.SaveGame
change_blip_display $1647 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[26] {y} $propertyY[26] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3612
set_fixed_camera_position 2342.4961 {y} 2140.6621 {z} 11.3215 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2343.2429 {y} 2141.272 {z} 11.5827 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1680
remove_blip $1648
$1648 = add_short_range_sprite_blip_for_contact_point $propertyX[27] {y} $propertyY[27] {z} $propertyZ[27] {sprite} RadarSprite.SaveGame
change_blip_display $1648 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[27] {y} $propertyY[27] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3734
set_fixed_camera_position 2119.739 {y} 1767.835 {z} 26.2058 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2120.53 {y} 1768.447 {z} 26.1978 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1681
remove_blip $1649
$1649 = add_short_range_sprite_blip_for_contact_point $propertyX[28] {y} $propertyY[28] {z} $propertyZ[28] {sprite} RadarSprite.SaveGame
change_blip_display $1649 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[28] {y} $propertyY[28] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
34@ = 1
goto @BUYPRO1_4201

:BUYPRO1_3856
set_fixed_camera_position 2820.3611 {y} 2174.8301 {z} 19.0746 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2820.384 {y} 2173.834 {z} 18.9889 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1682
remove_blip $1650
$1650 = add_short_range_sprite_blip_for_contact_point $propertyX[29] {y} $propertyY[29] {z} $propertyZ[29] {sprite} RadarSprite.SaveGame
change_blip_display $1650 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[29] {y} $propertyY[29] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_3971
set_fixed_camera_position 2484.9709 {y} -2013.007 {z} 17.5718 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 2484.96 {y} -2012.031 {z} 17.3533 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1683
remove_blip $1651
$1651 = add_short_range_sprite_blip_for_contact_point $propertyX[30] {y} $propertyY[30] {z} $propertyZ[30] {sprite} RadarSprite.SaveGame
change_blip_display $1651 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[30] {y} $propertyY[30] {radius} 10.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_4086
set_fixed_camera_position 189.8908 {y} -107.1989 {z} 5.7226 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 190.8559 {y} -107.2361 {z} 5.4634 {switchStyle} SwitchType.JumpCut
increment_int_stat StatId.PropertyBudget {value} $1684
remove_blip $1652
$1652 = add_short_range_sprite_blip_for_contact_point $propertyX[31] {y} $propertyY[31] {z} $propertyZ[31] {sprite} RadarSprite.SaveGame
change_blip_display $1652 {display} BlipDisplay.BlipOnly
set_closest_entry_exit_flag $propertyX[31] {y} $propertyY[31] {radius} 5.0 {flag} EntryexitsFlag.Enabled {state} True
player_made_progress 1
goto @BUYPRO1_4201

:BUYPRO1_4201
if 
  34@ == 0
goto_if_false @BUYPRO1_4242
print_big 'BUYPRO' {time} 5000 {style} TextStyle.BottomRight
goto @BUYPRO1_4258

:BUYPRO1_4242
print_big 'HSUITE' {time} 5000 {style} TextStyle.BottomRight

:BUYPRO1_4258
play_mission_passed_tune 2
wait 5000
if 
  not is_player_playing $player1
goto_if_false @BUYPRO1_4285
terminate_this_script 

:BUYPRO1_4285
clear_prints 
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
$onmission = 0
$timer_mobile_start = get_game_timer 
mission_has_finished 
terminate_this_script 
return 

//-------------External script 0 (PLAYER_PARACHUTE)---------------

:PLCHUTE
script_name 'PLCHUTE'
request_model 371

:PLCHUTE_16
if 
  not has_model_loaded 371
goto_if_false @PLCHUTE_43
wait 0
goto @PLCHUTE_16

:PLCHUTE_43
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_59

:PLCHUTE_59
$player_landed = 0
$player_fall_state = 0
$player_has_parachute = 0
if 
  $player_landed == 999
goto_if_false @PLCHUTE_118
$para_pickup = create_pickup 371 {pickupType} PickupType.Once {x} $player_x {y} $player_y {z} $player_z

:PLCHUTE_118
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_5455
if 
  not is_2player_game_going_on 
goto_if_false @PLCHUTE_5455
if 
  $player_fall_state <> 0
goto_if_false @PLCHUTE_176
set_player_cycle_weapon_button $player1 {enabled} False

:PLCHUTE_176
if 
  $player_has_parachute > 0
goto_if_false @PLCHUTE_219
if 
  not has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @PLCHUTE_219
gosub @PLCHUTE_5521

:PLCHUTE_219
if 
  $player_has_parachute == 0
goto_if_false @PLCHUTE_274
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Parachute
goto_if_false @PLCHUTE_274
request_model #PARACHUTE
$player_has_parachute = 1
$player_landed = 0

:PLCHUTE_274
if 
  $player_has_parachute == 1
goto_if_false @PLCHUTE_377
if 
  has_model_loaded #PARACHUTE
goto_if_false @PLCHUTE_377
17@ = create_object #PARACHUTE {x} $player_x {y} $player_y {z} $player_z
attach_object_to_char 17@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_visible 17@ {state} False
$player_has_parachute = 2

:PLCHUTE_377
if and
  $player_has_parachute == 2
  $player_fall_state == 1
goto_if_false @PLCHUTE_409
$player_has_parachute = 3

:PLCHUTE_409
if and
  $player_fall_state == 0
  $player_has_parachute > 0
goto_if_false @PLCHUTE_565
if 
  is_char_in_air $scplayer
goto_if_false @PLCHUTE_565
$para_Vx, $para_Vy, $para_Vz = get_char_velocity $scplayer
if 
  -10.0 > $para_Vz
goto_if_false @PLCHUTE_565
7@ = get_char_height_above_ground $scplayer
if 
  7@ > 20.0
goto_if_false @PLCHUTE_565
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundFreefallStart
$player_fall_state = 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
0@ = 0
$para_max_Vz = 0.0

:PLCHUTE_565
if 
  $player_fall_state == 1
goto_if_false @PLCHUTE_2386
if 
  0@ == 0
goto_if_false @PLCHUTE_608
0@ = 2

:PLCHUTE_608
if 
  0@ == 2
goto_if_false @PLCHUTE_729
27@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @PLCHUTE_729
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
request_animation "PARACHUTE"
15@ = 1
1@ = get_char_heading $scplayer
0@ = 3

:PLCHUTE_729
if 
  0@ == 3
goto_if_false @PLCHUTE_2386
27@ = get_script_task_status $scplayer {taskId} 2066
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @PLCHUTE_815
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PLCHUTE_815
7@ = get_char_height_above_ground $scplayer
if and
  100.0 > 7@
  7@ > 60.0
goto_if_false @PLCHUTE_912
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_912
if 
  $onmission == 0
goto_if_false @PLCHUTE_912
print_now 'PARA_01' {time} 1000 {flag} 1

:PLCHUTE_912
10@, 11@, 12@, 12@ = get_position_of_analogue_sticks PadId.Pad1
if 
  $para_control_off == 1
goto_if_false @PLCHUTE_960
10@ = 0
11@ = 0

:PLCHUTE_960
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 4.267
sub_float_lvar_from_float_lvar 21@ -= 2@
21@ /= 20.0
add_float_lvar_to_float_lvar 2@ += 21@
set_lvar_float_to_lvar_float 21@ = 2@
21@ /= 5.0
sub_float_lvar_from_float_lvar 1@ -= 21@
if 
  1@ > 180.0
goto_if_false @PLCHUTE_1061
1@ -= 360.0

:PLCHUTE_1061
if 
  -180.0 > 1@
goto_if_false @PLCHUTE_1092
1@ += 360.0

:PLCHUTE_1092
cset_lvar_float_to_lvar_int 22@ =# 11@
22@ /= 4.267
sub_float_lvar_from_float_lvar 22@ -= 3@
22@ /= 20.0
add_float_lvar_to_float_lvar 3@ += 22@
8@, 9@, $para_Vz = get_char_velocity $scplayer
if 
  is_float_var_greater_than_float_var $para_freefall_Vz > $para_Vz
goto_if_false @PLCHUTE_1177
set_var_float_to_var_float $para_Vz = $para_freefall_Vz

:PLCHUTE_1177
if 
  is_float_var_greater_than_float_var $para_max_Vz > $para_Vz
goto_if_false @PLCHUTE_1204
set_var_float_to_var_float $para_max_Vz = $para_Vz

:PLCHUTE_1204
if 
  is_float_var_greater_than_float_var $para_freefall_Vz > $para_max_Vz
goto_if_false @PLCHUTE_1231
set_var_float_to_var_float $para_max_Vz = $para_freefall_Vz

:PLCHUTE_1231
if and
  is_float_var_greater_than_float_var $para_Vz > $para_max_Vz
  $player_fall_safe <> 1
goto_if_false @PLCHUTE_1407
if 
  not is_char_in_water $scplayer
goto_if_false @PLCHUTE_1361
if 
  -20.0 > $para_max_Vz
goto_if_false @PLCHUTE_1308
$player_fall_state = 2
goto @PLCHUTE_1354

:PLCHUTE_1308
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 100
$player_fall_state = 7

:PLCHUTE_1354
goto @PLCHUTE_1407

:PLCHUTE_1361
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 100
$player_fall_state = 7

:PLCHUTE_1407
set_lvar_float_to_lvar_float 4@ = 3@
4@ /= 30.0
mult_float_lvar_by_float_var 4@ *= $para_freefall_Vy
$para_Vx = sin 1@
$para_Vy = cos 1@
mult_float_var_by_float_lvar $para_Vx *= 4@
mult_float_var_by_float_lvar $para_Vy *= 4@
$para_Vy *= -1.0
add_float_var_to_float_var $para_Vy += $para_default_Vy
set_lvar_float_to_lvar_float 21@ = 8@
sub_float_var_from_float_lvar 21@ -= $para_Vx
21@ *= 0.01
set_var_float_to_lvar_float $para_Vx = 8@
sub_float_lvar_from_float_var $para_Vx -= 21@
set_lvar_float_to_lvar_float 21@ = 9@
sub_float_var_from_float_lvar 21@ -= $para_Vy
21@ *= 0.01
set_var_float_to_lvar_float $para_Vy = 9@
sub_float_lvar_from_float_var $para_Vy -= 21@
set_lvar_int_to_lvar_int 12@ = 10@
set_lvar_int_to_lvar_int 13@ = 11@
abs_lvar_int 12@
abs_lvar_int 13@
if or
  12@ > 40
  13@ > 40
goto_if_false @PLCHUTE_2109
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @PLCHUTE_1872
if 
  10@ >= 0
goto_if_false @PLCHUTE_1751
if 
  15@ <> 2
goto_if_false @PLCHUTE_1751
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_1744
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE_R" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_1744
15@ = 2

:PLCHUTE_1751
if 
  0 > 10@
goto_if_false @PLCHUTE_1865
if 
  15@ <> 3
goto_if_false @PLCHUTE_1865
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_1858
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE_L" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_1858
15@ = 3

:PLCHUTE_1865
goto @PLCHUTE_2102

:PLCHUTE_1872
if 
  11@ >= 0
goto_if_false @PLCHUTE_1984
if 
  15@ <> 4
goto_if_false @PLCHUTE_1984
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_1977
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_1977
15@ = 4

:PLCHUTE_1984
if 
  0 > 11@
goto_if_false @PLCHUTE_2102
if 
  15@ <> 5
goto_if_false @PLCHUTE_2102
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2095
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE_ACCEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PLCHUTE_2095
15@ = 5

:PLCHUTE_2102
goto @PLCHUTE_2203

:PLCHUTE_2109
if 
  15@ <> 1
goto_if_false @PLCHUTE_2203
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2203
task_play_anim_non_interruptable $scplayer {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
15@ = 1

:PLCHUTE_2203
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  $para_force_chute_open == 1
goto_if_false @PLCHUTE_2386
if 
  $player_fall_safe <> 1
goto_if_false @PLCHUTE_2386
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2386
if and
  $player_has_parachute == 3
  $para_control_off == 0
goto_if_false @PLCHUTE_2386
task_play_anim_non_interruptable $scplayer {animationName} "PARA_OPEN" {animationFile} "PARACHUTE" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundFreefallStop
set_var_int_to_lvar_int $play_open_timer = TIMERA
$play_open_timer += 1100
$player_fall_state = 3
0@ = 0

:PLCHUTE_2386
if 
  $player_fall_state == 2
goto_if_false @PLCHUTE_2504
if 
  has_animation_loaded "PARACHUTE"
goto_if_false @PLCHUTE_2492
set_char_heading $scplayer {heading} 1@
task_die_named_anim $scplayer {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundPedDeathCrunch
goto @PLCHUTE_2497

:PLCHUTE_2492
task_die $scplayer

:PLCHUTE_2497
gosub @PLCHUTE_5521

:PLCHUTE_2504
if 
  $player_fall_state == 3
goto_if_false @PLCHUTE_4781
if 
  $play_open_timer > 0
goto_if_false @PLCHUTE_2586
if 
  is_int_lvar_greater_than_int_var TIMERA > $play_open_timer
goto_if_false @PLCHUTE_2586
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundParachuteOpen
$play_open_timer = 0

:PLCHUTE_2586
if 
  0@ == 0
goto_if_false @PLCHUTE_2689
set_lvar_float_to_lvar_float 25@ = 3@
25@ /= 500.0
set_lvar_float_to_lvar_float 26@ = 2@
26@ /= 500.0
set_lvar_int_to_lvar_int 18@ = TIMERA
set_lvar_int_to_lvar_int 19@ = TIMERA
set_lvar_float_to_lvar_float 5@ = 4@
5@ *= -1.0
set_lvar_float_to_var_float 6@ = $para_Vz
0@ = 1

:PLCHUTE_2689
if 
  0@ == 1
goto_if_false @PLCHUTE_2856
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 19@
if 
  500 > 10@
goto_if_false @PLCHUTE_2829
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 18@
set_lvar_int_to_lvar_int 18@ = TIMERA
cset_lvar_float_to_lvar_int 21@ =# 10@
set_lvar_float_to_lvar_float 22@ = 25@
mult_float_lvar_by_float_lvar 22@ *= 21@
set_lvar_float_to_lvar_float 23@ = 26@
mult_float_lvar_by_float_lvar 23@ *= 21@
sub_float_lvar_from_float_lvar 3@ -= 22@
sub_float_lvar_from_float_lvar 2@ -= 23@
goto @PLCHUTE_2856

:PLCHUTE_2829
2@ = 0.0
3@ = 0.0
0@ = 2

:PLCHUTE_2856
if 
  0@ == 2
goto_if_false @PLCHUTE_2964
if 
  does_object_exist 17@
goto_if_false @PLCHUTE_2964
set_object_visible 17@ {state} True
set_object_scale 17@ {scale} 0.0
set_lvar_int_to_lvar_int 19@ = TIMERA
wait 0
play_object_anim 17@ {animationName} "PARA_OPEN_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
0@ = 3

:PLCHUTE_2964
if 
  0@ == 3
goto_if_false @PLCHUTE_3067
set_lvar_int_to_lvar_int 10@ = TIMERA
sub_int_lvar_from_int_lvar 10@ -= 19@
if 
  500 > 10@
goto_if_false @PLCHUTE_3050
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 500.0
set_object_scale 17@ {scale} 21@
goto @PLCHUTE_3067

:PLCHUTE_3050
set_object_scale 17@ {scale} 1.0
0@ = 4

:PLCHUTE_3067
if 
  0@ == 5
goto_if_false @PLCHUTE_3136
20@ = create_object #PARA_COLLISION {x} 0.0 {y} 0.0 {z} 0.0
set_object_visible 20@ {state} False
set_object_dynamic 20@ {state} True
set_object_records_collisions 20@ {state} True
0@ = 6

:PLCHUTE_3136
if 
  0@ == 6
goto_if_false @PLCHUTE_4354
10@, 11@, 12@, 12@ = get_position_of_analogue_sticks PadId.Pad1
if 
  $para_control_off == 1
goto_if_false @PLCHUTE_3202
10@ = 0
11@ = 0

:PLCHUTE_3202
cset_lvar_float_to_lvar_int 21@ =# 10@
21@ /= 4.267
sub_float_lvar_from_float_lvar 21@ -= 2@
21@ /= 20.0
add_float_lvar_to_float_lvar 2@ += 21@
set_lvar_float_to_lvar_float 21@ = 2@
21@ /= 15.0
sub_float_lvar_from_float_lvar 1@ -= 21@
if 
  1@ > 180.0
goto_if_false @PLCHUTE_3303
1@ -= 360.0

:PLCHUTE_3303
if 
  -180.0 > 1@
goto_if_false @PLCHUTE_3334
1@ += 360.0

:PLCHUTE_3334
$para_Vx = sin 1@
$para_Vy = cos 1@
mult_float_var_by_float_var $para_Vx *= $para_float_Vy
mult_float_var_by_float_var $para_Vy *= $para_float_Vy
$para_Vx *= -1.0
set_lvar_int_to_lvar_int 12@ = 10@
set_lvar_int_to_lvar_int 13@ = 11@
abs_lvar_int 12@
abs_lvar_int 13@
if or
  12@ > 40
  13@ > 40
goto_if_false @PLCHUTE_4066
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @PLCHUTE_3741
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  10@ >= 0
goto_if_false @PLCHUTE_3607
if 
  15@ <> 2
goto_if_false @PLCHUTE_3607
task_play_anim_non_interruptable $scplayer {animationName} "PARA_STEERR" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_STEERR_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 2

:PLCHUTE_3607
if 
  0 > 10@
goto_if_false @PLCHUTE_3734
if 
  15@ <> 3
goto_if_false @PLCHUTE_3734
task_play_anim_non_interruptable $scplayer {animationName} "PARA_STEERL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_STEERL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 3

:PLCHUTE_3734
goto @PLCHUTE_4059

:PLCHUTE_3741
if 
  11@ >= 0
goto_if_false @PLCHUTE_3900
set_lvar_float_to_var_float 21@ = $para_flare_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 4
goto_if_false @PLCHUTE_3900
task_play_anim_non_interruptable $scplayer {animationName} "PARA_DECEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_DECEL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 4

:PLCHUTE_3900
if 
  0 > 11@
goto_if_false @PLCHUTE_4059
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 5
goto_if_false @PLCHUTE_4059
task_play_anim_non_interruptable $scplayer {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 5

:PLCHUTE_4059
goto @PLCHUTE_4225

:PLCHUTE_4066
set_lvar_float_to_var_float 21@ = $para_float_Vz
sub_float_var_from_float_lvar 21@ -= $para_Vz
21@ /= 20.0
add_float_lvar_to_float_var $para_Vz += 21@
if 
  15@ <> 5
goto_if_false @PLCHUTE_4225
if 
  15@ <> 1
goto_if_false @PLCHUTE_4225
task_play_anim_non_interruptable $scplayer {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 17@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True
15@ = 1

:PLCHUTE_4225
$x, $y, $z = get_object_coordinates 17@
set_object_coordinates_and_velocity 20@ {x} $x {y} $y {z} $z
if 
  has_object_collided_with_anything 20@
goto_if_false @PLCHUTE_4318
play_object_anim 17@ {animationName} "PARA_RIP_LOOP_O" {animationFile} "PARACHUTE" {frameDelta} 8.0 {lockF} True {loop} True
0@ = 7

:PLCHUTE_4318
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @PLCHUTE_4354
clear_char_tasks_immediately $scplayer
$player_fall_state = 6
$player_landed = 3

:PLCHUTE_4354
if 
  does_object_exist 17@
goto_if_false @PLCHUTE_4593
if 
  is_object_playing_anim 17@ {animationName} "PARA_OPEN_O"
goto_if_false @PLCHUTE_4593
21@ = get_object_anim_current_time 17@ {animationName} "PARA_OPEN_O"
set_lvar_float_to_lvar_float 22@ = 6@
sub_float_var_from_float_lvar 22@ -= $para_float_Vz
set_lvar_float_to_lvar_float 23@ = 22@
mult_float_lvar_by_float_lvar 23@ *= 21@
set_var_float_to_lvar_float $para_Vz = 6@
sub_float_lvar_from_float_var $para_Vz -= 23@
set_lvar_float_to_lvar_float 22@ = 5@
sub_float_var_from_float_lvar 22@ -= $para_float_Vy
set_lvar_float_to_lvar_float 23@ = 22@
mult_float_lvar_by_float_lvar 23@ *= 21@
set_lvar_float_to_lvar_float 4@ = 5@
sub_float_lvar_from_float_lvar 4@ -= 23@
$para_Vx = sin 1@
$para_Vy = cos 1@
mult_float_var_by_float_lvar $para_Vx *= 4@
mult_float_var_by_float_lvar $para_Vy *= 4@
$para_Vx *= -1.0
if and
  21@ == 1.0
  0@ == 4
goto_if_false @PLCHUTE_4593
0@ = 5

:PLCHUTE_4593
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_4781
if 
  is_char_in_water $scplayer
goto_if_false @PLCHUTE_4732
task_play_anim_non_interruptable $scplayer {animationName} "PARA_LAND_WATER" {animationFile} "PARACHUTE" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} False {keepLastFrame} False {time} 1000
play_object_anim 17@ {animationName} "PARA_LAND_WATER_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
$player_fall_state = 5
0@ = 0

:PLCHUTE_4732
21@, 21@, 23@ = get_char_velocity $scplayer
if 
  23@ > -0.1
goto_if_false @PLCHUTE_4781
$player_fall_state = 4
0@ = 0

:PLCHUTE_4781
if 
  $player_fall_state == 4
goto_if_false @PLCHUTE_5271
if 
  0@ == 0
goto_if_false @PLCHUTE_5168
$player_landed = 1
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$player_z -= 1.0
set_char_coordinates $scplayer {x} $player_x {y} $player_y {z} $player_z
set_char_rotation $scplayer {x} 0.0 {y} 0.0 {z} 1@
if 
  -10.0 > $para_Vz
goto_if_false @PLCHUTE_4922
$player_fall_state = 2
0@ = 0
goto @PLCHUTE_5092

:PLCHUTE_4922
if 
  -4.0 > $para_Vz
goto_if_false @PLCHUTE_5047
14@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "FALL_FRONT" {animationFile} "PED" {blendSpeed} 20.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 700
task_play_anim_non_interruptable -1 {animationName} "GETUP_FRONT" {animationFile} "PED" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} False {keepLastFrame} False {time} -2
close_sequence_task 14@
perform_sequence_task $scplayer {sequence} 14@
clear_sequence_task 14@
goto @PLCHUTE_5085

:PLCHUTE_5047
task_play_anim_non_interruptable $scplayer {animationName} "RUN_PLAYER" {animationFile} "PED" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} False {keepLastFrame} False {time} 1000

:PLCHUTE_5085
0@ = 1

:PLCHUTE_5092
play_object_anim 17@ {animationName} "PARA_LAND_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
detach_object 17@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
set_lvar_int_to_lvar_int 18@ = TIMERA
18@ += 1000

:PLCHUTE_5168
if 
  0@ == 1
goto_if_false @PLCHUTE_5271
if 
  is_object_playing_anim 17@ {animationName} "PARA_LAND_O"
goto_if_false @PLCHUTE_5271
21@ = get_object_anim_current_time 17@ {animationName} "PARA_LAND_O"
if 
  21@ == 1.0
goto_if_false @PLCHUTE_5271
$player_landed = 2
gosub @PLCHUTE_5521

:PLCHUTE_5271
if 
  $player_fall_state == 5
goto_if_false @PLCHUTE_5328
$player_landed = 1
if 
  0@ == 0
goto_if_false @PLCHUTE_5328
$player_landed = 2
gosub @PLCHUTE_5521

:PLCHUTE_5328
if and
  $player_fall_state > 0
  4 > $player_fall_state
goto_if_false @PLCHUTE_5405
if 
  not is_char_dead $scplayer
goto_if_false @PLCHUTE_5405
set_char_velocity $scplayer {x} $para_Vx {y} $para_Vy {z} $para_Vz
set_char_heading $scplayer {heading} 1@
set_char_rotation $scplayer {x} 3@ {y} 2@ {z} 1@

:PLCHUTE_5405
if 
  $player_fall_state == 6
goto_if_false @PLCHUTE_5430
gosub @PLCHUTE_5521

:PLCHUTE_5430
if 
  $player_fall_state == 7
goto_if_false @PLCHUTE_5455
gosub @PLCHUTE_5462

:PLCHUTE_5455
goto @PLCHUTE_118

:PLCHUTE_5462
$player_fall_state = 0
0@ = 0
mark_model_as_no_longer_needed #PARACHUTE
remove_animation "PARACHUTE"
set_char_rotation $scplayer {x} 0.0 {y} 0.0 {z} 1@
set_player_cycle_weapon_button $player1 {enabled} True
return 

:PLCHUTE_5521
detach_object 17@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
remove_object_elegantly 17@
delete_object 20@
remove_weapon_from_char $scplayer {weaponType} WeaponType.Parachute
$player_fall_state = 0
$player_has_parachute = 0
0@ = 0
mark_model_as_no_longer_needed #PARACHUTE
remove_animation "PARACHUTE"
mark_model_as_no_longer_needed 371
set_char_rotation $scplayer {x} 0.0 {y} 0.0 {z} 1@
set_player_cycle_weapon_button $player1 {enabled} True
terminate_this_script 

//-------------External script 1 (PARACHUTE)---------------

:PARACH
script_name 'PARACH'
$has_freefall_started = 0
31@ = generate_random_int_in_range 0 {max} 6
11@ = 10
17@ = 0
12@ = 0
$ai_landed = 0
if 
  12@ == 100
goto_if_false @PARACH_122
0@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} 32.1527 {y} 2239.7261 {z} 125.672
8@ = create_char PedType.CivMale {modelId} 61 {x} 32.1527 {y} 2239.7261 {z} 125.672

:PARACH_122
if 
  not is_char_dead 8@
goto_if_false @PARACH_146
30@ = get_char_height_above_ground 8@

:PARACH_146
wait 0
set_var_int_to_lvar_int $player_freefall = 17@
if 
  $ai_landed == 2
goto_if_false @PARACH_202
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_202
gosub @PARACH_6417

:PARACH_202
if 
  0@ <> -1
goto_if_false @PARACH_293
if 
  11@ == 10
goto_if_false @PARACH_293
if 
  0@ <> -1
goto_if_false @PARACH_286
if 
  has_pickup_been_collected 0@
goto_if_false @PARACH_279
11@ = 0

:PARACH_279
goto @PARACH_293

:PARACH_286
11@ = 0

:PARACH_293
if 
  0@ == -1
goto_if_false @PARACH_336
if 
  11@ == 10
goto_if_false @PARACH_336
11@ = 0

:PARACH_336
if 
  11@ == 0
goto_if_false @PARACH_384
request_animation "PARACHUTE"
request_model #PARACHUTE
request_model #PARA_PACK
11@ = 1

:PARACH_384
if 
  11@ == 1
goto_if_false @PARACH_443
if and
  has_animation_loaded "PARACHUTE"
  has_model_loaded #PARACHUTE
  has_model_loaded #PARA_PACK
goto_if_false @PARACH_443
11@ = 2

:PARACH_443
if 
  11@ == 2
goto_if_false @PARACH_654
if 
  not is_char_dead 8@
goto_if_false @PARACH_491
$player_x, $player_y, $player_z = get_char_coordinates 8@

:PARACH_491
9@ = create_object #PARACHUTE {x} $player_x {y} $player_y {z} $player_z
10@ = create_object #PARA_PACK {x} $player_x {y} $player_y {z} $player_z
set_object_visible 9@ {state} False
if 
  not is_char_dead 8@
goto_if_false @PARACH_647
attach_object_to_char 9@ {handle} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_rotation 10@ {x} 90.0 {y} 90.0 {z} 90.0
task_pick_up_object 8@ {object} 10@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:PARACH_647
11@ = 3

:PARACH_654
if 
  11@ == 3
goto_if_false @PARACH_6053
if 
  not is_char_dead 8@
goto_if_false @PARACH_6053
if 
  31@ == 0
goto_if_false @PARACH_756
30@ = get_char_height_above_ground 8@
if 
  5.0 > 30@
goto_if_false @PARACH_749
31@ = 2
goto @PARACH_756

:PARACH_749
31@ = 5

:PARACH_756
31@ -= 1
if 
  not is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_789
gosub @PARACH_6503

:PARACH_789
if 
  is_char_in_any_car 8@
goto_if_false @PARACH_819
$p_in_air = 1
goto @PARACH_826

:PARACH_819
$p_in_air = 0

:PARACH_826
if 
  not is_char_dead 8@
goto_if_false @PARACH_1186
if or
  is_char_in_air 8@
  $p_in_air == 0
goto_if_false @PARACH_1186
if and
  17@ == 0
  14@ == 0
  30@ > 5.0
goto_if_false @PARACH_1186
if 
  $p_in_air == 0
goto_if_false @PARACH_988
$x_car_speed = sin $para_give_heading
mult_float_var_by_float_var $x_car_speed *= $para_give_speed
$x_car_speed *= -1.0
$y_car_speed = cos $para_give_heading
mult_float_var_by_float_var $y_car_speed *= $para_give_speed
$tempf1, $tempf1, $tempf1 = get_char_velocity 8@
set_char_velocity 8@ {x} $x_car_speed {y} $y_car_speed {z} $tempf1

:PARACH_988
17@ = 1
$has_freefall_started = 1
set_lvar_int_to_lvar_int 18@ = TIMERA
27@ = get_char_heading 8@
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_1071
$end_cam_z = 3.0
$end_cam_y = -2.0
16@ = 0
gosub @PARACH_6083

:PARACH_1071
if 
  7@ == 0
goto_if_false @PARACH_1141
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @PARACH_1186

:PARACH_1141
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PARACH_1186
if 
  17@ == 1
goto_if_false @PARACH_2838
if 
  is_char_in_water 8@
goto_if_false @PARACH_1268
task_die_named_anim 8@ {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
17@ = 2

:PARACH_1268
if 
  3.0 > 30@
goto_if_false @PARACH_1337
task_die_named_anim 8@ {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
17@ = 2

:PARACH_1337
$tempf1, $tempf1, $tempf2 = get_char_velocity 8@
if 
  is_float_lvar_greater_than_float_var 1@ > $tempf2
goto_if_false @PARACH_1378
set_var_float_to_lvar_float $tempf2 = 1@

:PARACH_1378
set_var_int_to_lvar_int $tempv1 = TIMERA
sub_int_lvar_from_int_var $tempv1 -= 18@
cset_lvar_float_to_var_int 28@ =# $tempv1
28@ /= 2000.0
if 
  28@ > 1.0
goto_if_false @PARACH_1443
28@ = 1.0

:PARACH_1443
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_1490
if 
  1.0 >= 28@
goto_if_false @PARACH_1490
gosub @PARACH_6307

:PARACH_1490
if 
  28@ == 1.0
goto_if_false @PARACH_2431
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2413
$tempv1, $tempv2, $tempv3, $tempv3 = get_position_of_analogue_sticks PadId.Pad1
cset_var_float_to_var_int $tempf4 =# $tempv1
$tempf4 /= 256.0
add_float_var_to_float_lvar 25@ += $tempf4
set_var_float_to_lvar_float $tempf5 = 25@
$tempf5 /= 30.0
if 
  -1.6 > $tempf5
goto_if_false @PARACH_1621
$tempf5 = -1.6

:PARACH_1621
if 
  $tempf5 > 1.6
goto_if_false @PARACH_1652
$tempf5 = 1.6

:PARACH_1652
sub_float_var_from_float_lvar 27@ -= $tempf5
if 
  $tempf4 == 0.0
goto_if_false @PARACH_1712
if 
  25@ <> 0.0
goto_if_false @PARACH_1712
25@ *= 0.95

:PARACH_1712
set_var_float_to_lvar_float $tempf3 = 26@
$tempf3 *= 6.0
cset_var_float_to_var_int $para_turny_rate =# $tempv2
sub_float_var_from_float_var $para_turny_rate -= $tempf3
$para_turny_rate /= 256.0
add_float_var_to_float_lvar 26@ += $para_turny_rate
if 
  -30.0 > 26@
goto_if_false @PARACH_1795
26@ = -30.0

:PARACH_1795
if 
  26@ > 30.0
goto_if_false @PARACH_1826
26@ = 30.0

:PARACH_1826
if 
  $para_turny_rate == 0.0
goto_if_false @PARACH_1878
if 
  26@ <> 0.0
goto_if_false @PARACH_1878
26@ *= 0.97

:PARACH_1878
$x = sin 27@
$y = cos 27@
set_var_float_to_lvar_float $tempf4 = 26@
$tempf4 /= -5.0
mult_float_var_by_float_lvar $x *= 2@
mult_float_var_by_float_var $x *= $tempf4
$x *= -1.0
mult_float_var_by_float_lvar $y *= 2@
mult_float_var_by_float_var $y *= $tempf4
$tempf3, $tempf4, $tempf1 = get_char_velocity 8@
$x *= -1.0
add_float_var_to_float_var $x += $tempf3
$x *= 0.1
sub_float_var_from_float_var $tempf3 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf4
$y *= 0.1
sub_float_var_from_float_var $tempf4 -= $y
set_char_velocity 8@ {x} $tempf3 {y} $tempf4 {z} $tempf2
set_char_rotation 8@ {x} 26@ {y} 0.0 {z} 27@
if 
  -100 > $tempv2
goto_if_false @PARACH_2171
if 
  15@ <> 4
goto_if_false @PARACH_2164
15@ = 4
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE_ACCEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2164
goto @PARACH_2406

:PARACH_2171
if and
  $tempv1 == 0
  15@ <> 0
goto_if_false @PARACH_2248
15@ = 0
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2248
if and
  0 > $tempv1
  15@ <> -1
goto_if_false @PARACH_2327
15@ = -1
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE_L" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2327
if and
  $tempv1 > 0
  15@ <> 1
goto_if_false @PARACH_2406
15@ = 1
task_play_anim_non_interruptable 8@ {animationName} "FALL_SKYDIVE_R" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2

:PARACH_2406
goto @PARACH_2431

:PARACH_2413
set_char_velocity 8@ {x} 0.0 {y} 0.0 {z} 1@

:PARACH_2431
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  $force_chute_open == 1
goto_if_false @PARACH_2652
if 
  $force_chute_open <> 2
goto_if_false @PARACH_2652
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2652
17@ = 0
15@ = 0
14@ = 1
set_object_visible 9@ {state} True
wait 0
if 
  not is_char_dead 8@
goto_if_false @PARACH_2652
task_play_anim_non_interruptable 8@ {animationName} "PARA_OPEN" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_OPEN_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
$tempf1, $tempf1, 24@ = get_char_velocity 8@
set_var_float_to_lvar_float $para_vel_change = 24@
$para_vel_change += 5.0

:PARACH_2652
if and
  12@ == 1
  not is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_2838
17@ = 0
15@ = 0
14@ = 1
set_object_visible 9@ {state} True
wait 0
if 
  not is_char_dead 8@
goto_if_false @PARACH_2838
task_play_anim_non_interruptable 8@ {animationName} "PARA_OPEN" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_OPEN_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True
$tempf1, $tempf1, 24@ = get_char_velocity 8@
set_var_float_to_lvar_float $para_vel_change = 24@
$para_vel_change += 5.0

:PARACH_2838
if 
  14@ == 1
goto_if_false @PARACH_3568
if 
  not is_char_dead 8@
goto_if_false @PARACH_3540
if 
  is_char_playing_anim 8@ {animationName} "PARA_OPEN"
goto_if_false @PARACH_3540
$para_anim_time = get_char_anim_current_time 8@ {animationName} "PARA_OPEN"
$player_x, $player_y, $player_z = get_char_coordinates 8@
$para_anim_time *= 2.0
$para_anim_time -= 0.5
if 
  $para_anim_time > 1.0
goto_if_false @PARACH_2983
$para_anim_time = 1.0

:PARACH_2983
if 
  0.0 > $para_anim_time
goto_if_false @PARACH_3014
$para_anim_time = 0.0

:PARACH_3014
if and
  0.25 >= $para_anim_time
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3120
$end_cam_z = -2.0
$end_cam_y = -2.0
set_lvar_float_to_var_float 28@ = $para_anim_time
28@ *= 4.0
if 
  16@ == 1
goto_if_false @PARACH_3113
16@ = 2
gosub @PARACH_6083

:PARACH_3113
gosub @PARACH_6307

:PARACH_3120
if and
  $para_anim_time > 0.25
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3236
$end_cam_z = 5.0
$end_cam_y = -5.0
set_lvar_float_to_var_float 28@ = $para_anim_time
28@ -= 0.25
28@ *= 1.333
if 
  16@ == 2
goto_if_false @PARACH_3229
16@ = 3
gosub @PARACH_6083

:PARACH_3229
gosub @PARACH_6307

:PARACH_3236
set_var_float_to_var_float $tempf1 = $para_vel_change
mult_float_var_by_float_var $tempf1 *= $para_anim_time
$tempf1 *= -1.0
add_float_lvar_to_float_var $tempf1 += 24@
$tempf3, $tempf4, $tempf2 = get_char_velocity 8@
$x = sin 27@
$y = cos 27@
mult_float_var_by_float_lvar $x *= 5@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 5@
$x *= -1.0
add_float_var_to_float_var $x += $tempf3
$x *= 0.01
sub_float_var_from_float_var $tempf3 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf4
$y *= 0.01
sub_float_var_from_float_var $tempf4 -= $y
set_char_velocity 8@ {x} $tempf3 {y} $tempf4 {z} $tempf1
if 
  $para_anim_time == 1.0
goto_if_false @PARACH_3540
task_play_anim_non_interruptable 8@ {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 2.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 2.0 {lockF} True {loop} True
14@ = 2
set_lvar_float_to_var_float 29@ = $tempf1
25@ = 0.0

:PARACH_3540
if 
  3.0 > 30@
goto_if_false @PARACH_3568
14@ = 3

:PARACH_3568
if 
  14@ == 2
goto_if_false @PARACH_5824
if and
  13@ <> 5
  is_char_in_water 8@
goto_if_false @PARACH_3616
13@ = 4

:PARACH_3616
if 
  13@ == 0
goto_if_false @PARACH_4766
$x = sin 27@
$y = cos 27@
$tempv3 = 0
$tempv4 = 0
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_3706
$tempv1, $tempv2, $tempv3, $tempv4 = get_position_of_analogue_sticks PadId.Pad1
goto @PARACH_3728

:PARACH_3706
set_var_int_to_lvar_int $tempv1 = 22@
$tempv2 = 0
$tempv3 = 0

:PARACH_3728
if and
  $tempv3 <> 0
  $tempv4 <> 0
goto_if_false @PARACH_3753

:PARACH_3753
if or
  $tempv2 > 100
  12@ == 2
goto_if_false @PARACH_3811
mult_float_var_by_float_lvar $x *= 6@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 6@
goto @PARACH_3837

:PARACH_3811
mult_float_var_by_float_lvar $x *= 5@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 5@

:PARACH_3837
set_var_int_to_var_int $tempv4 = $tempv2
set_char_rotation 8@ {x} 0.0 {y} 25@ {z} 27@
if 
  30@ > 3.0
goto_if_false @PARACH_4574
cset_var_float_to_var_int $para_turny_rate =# $tempv1
$para_turny_rate /= 128.0
add_float_var_to_float_lvar 25@ += $para_turny_rate
if 
  25@ > 45.0
goto_if_false @PARACH_3939
25@ = 45.0

:PARACH_3939
if 
  -45.0 > 25@
goto_if_false @PARACH_3970
25@ = -45.0

:PARACH_3970
set_var_float_to_lvar_float $tempf5 = 25@
$tempf5 /= 15.0
sub_float_var_from_float_lvar 27@ -= $tempf5
if 
  $para_turny_rate == 0.0
goto_if_false @PARACH_4048
if 
  25@ <> 0.0
goto_if_false @PARACH_4048
25@ *= 0.95

:PARACH_4048
set_char_rotation 8@ {x} 0.0 {y} 25@ {z} 27@
if or
  $tempv2 > 100
  12@ == 2
goto_if_false @PARACH_4211
set_var_float_to_lvar_float $z = 4@
if 
  15@ <> 4
goto_if_false @PARACH_4204
15@ = 4
task_play_anim_non_interruptable 8@ {animationName} "PARA_DECEL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_DECEL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4204
goto @PARACH_4574

:PARACH_4211
set_var_float_to_lvar_float $z = 3@
if and
  $para_turny_rate == 0.0
  15@ <> 0
goto_if_false @PARACH_4336
15@ = 0
task_play_anim_non_interruptable 8@ {animationName} "PARA_FLOAT" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_FLOAT_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4336
if and
  0.0 > $para_turny_rate
  15@ <> -1
goto_if_false @PARACH_4455
15@ = -1
task_play_anim_non_interruptable 8@ {animationName} "PARA_STEERL" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_STEERL_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4455
if and
  $para_turny_rate > 0.0
  15@ <> 1
goto_if_false @PARACH_4574
15@ = 1
task_play_anim_non_interruptable 8@ {animationName} "PARA_STEERR" {animationFile} "PARACHUTE" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_STEERR_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} True {loop} True

:PARACH_4574
$tempf3, $tempf4, $tempf1 = get_char_velocity 8@
$x *= -1.0
add_float_var_to_float_var $x += $tempf3
$x *= 0.1
sub_float_var_from_float_var $tempf3 -= $x
$y *= -1.0
add_float_var_to_float_var $y += $tempf4
$y *= 0.1
sub_float_var_from_float_var $tempf4 -= $y
$z *= -1.0
add_float_lvar_to_float_var $z += 29@
$z *= 0.2
set_var_float_to_lvar_float $tempf1 = 29@
sub_float_var_from_float_var $tempf1 -= $z
set_lvar_float_to_var_float 29@ = $tempf1
set_char_velocity 8@ {x} $tempf3 {y} $tempf4 {z} $tempf1
mult_float_var_by_float_var $tempf3 *= $tempf3
mult_float_var_by_float_var $tempf4 *= $tempf4
set_var_float_to_var_float $tempf5 = $tempf3
add_float_var_to_float_var $tempf5 += $tempf4
$tempf5 = sqrt $tempf5

:PARACH_4766
if 
  3.0 > 30@
goto_if_false @PARACH_5104
set_char_heading 8@ {heading} 27@
25@ = 0.0
$x = sin 27@
$y = cos 27@
mult_float_var_by_float_lvar $x *= 6@
$x *= -1.0
mult_float_var_by_float_lvar $y *= 6@
set_char_velocity 8@ {x} $x {y} $y {z} -2.0
if 
  13@ == 0
goto_if_false @PARACH_5012
13@ = 1
task_play_anim_non_interruptable 8@ {animationName} "PARA_DECEL" {animationFile} "PARACHUTE" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_DECEL_O" {animationFile} "PARACHUTE" {frameDelta} 4.0 {lockF} True {loop} True
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5012
set_var_float_to_var_float $end_cam_z = $initial_z
set_var_float_to_var_float $end_cam_y = $initial_y
gosub @PARACH_6083

:PARACH_5012
if and
  13@ == 1
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5104
28@ = 3.0
sub_float_lvar_from_float_lvar 28@ -= 30@
28@ *= 0.75
if 
  28@ > 1.0
goto_if_false @PARACH_5097
28@ = 1.0

:PARACH_5097
gosub @PARACH_6307

:PARACH_5104
if and
  1.5 > 30@
  13@ == 1
goto_if_false @PARACH_5219
13@ = 2
task_play_anim_non_interruptable 8@ {animationName} "PARA_LAND" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_LAND_O" {animationFile} "PARACHUTE" {frameDelta} 1000.0 {lockF} False {loop} True

:PARACH_5219
if 
  13@ == 2
goto_if_false @PARACH_5496
if 
  is_char_playing_anim 8@ {animationName} "PARA_LAND"
goto_if_false @PARACH_5496
$para_anim_time = get_char_anim_current_time 8@ {animationName} "PARA_LAND"
if 
  $para_anim_time == 1.0
goto_if_false @PARACH_5496
delete_object 9@
delete_object 10@
$player_x, $player_y, $player_z = get_dead_char_pickup_coords 8@
if 
  0@ <> -1
goto_if_false @PARACH_5351
remove_pickup 0@

:PARACH_5351
task_pause 8@ {time} 1
clear_char_tasks_immediately 8@
14@ = 3
set_char_rotation 8@ {x} 0.0 {y} 0.0 {z} 0.0
set_char_heading 8@ {heading} 27@
$player_x, $player_y, $player_z = get_char_coordinates 8@
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5438
$ai_landed = 1

:PARACH_5438
if 
  $onmission == 1
goto_if_false @PARACH_5463
gosub @PARACH_6417

:PARACH_5463
0@ = 0
0@ = create_pickup #BRIEFCASE {pickupType} PickupType.Once {x} $player_x {y} $player_y {z} $player_z
13@ = 3

:PARACH_5496
if 
  13@ == 4
goto_if_false @PARACH_5623
task_play_anim_non_interruptable 8@ {animationName} "PARA_LAND_WATER" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {loop} False {lockX} True {lockY} False {keepLastFrame} True {time} -2
play_object_anim 9@ {animationName} "PARA_LAND_WATER_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} False {loop} True
13@ = 5
$para_anim_time = 0.0

:PARACH_5623
if 
  13@ == 5
goto_if_false @PARACH_5824
if 
  is_char_playing_anim 8@ {animationName} "PARA_LAND_WATER"
goto_if_false @PARACH_5699
$para_anim_time = get_char_anim_current_time 8@ {animationName} "PARA_LAND_WATER"

:PARACH_5699
if 
  $para_anim_time == 1.0
goto_if_false @PARACH_5824
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_5746
$ai_landed = 1

:PARACH_5746
delete_object 9@
delete_object 10@
13@ = 3
task_pause 8@ {time} 1
clear_char_tasks_immediately 8@
14@ = 3
set_char_rotation 8@ {x} 0.0 {y} 0.0 {z} 0.0
set_char_heading 8@ {heading} 27@
$player_x, $player_y, $player_z = get_char_coordinates 8@

:PARACH_5824
if and
  14@ == 3
  13@ == 0
goto_if_false @PARACH_5935
play_object_anim 9@ {animationName} "PARA_LAND_O" {animationFile} "PARACHUTE" {frameDelta} 1.0 {lockF} False {loop} True
task_die_named_anim 8@ {animationName} "FALL_SKYDIVE_DIE" {animationFile} "PARACHUTE" {blendSpeed} 1000.0 {time} 0
13@ = 1

:PARACH_5935
if 
  14@ == 3
goto_if_false @PARACH_6053
if 
  has_pickup_been_collected 0@
goto_if_false @PARACH_6004
11@ = 10
17@ = 0
14@ = 0
7@ = 0
13@ = 0

:PARACH_6004
if 
  not locate_char_any_means_3d 8@ {x} $player_x {y} $player_y {z} $player_z {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @PARACH_6053
goto @PARACH_6417

:PARACH_6053
if 
  is_char_dead 8@
goto_if_false @PARACH_6076
goto @PARACH_6417

:PARACH_6076
goto @PARACH_146

:PARACH_6083
$x, $y, $z = get_active_camera_coordinates 
$player_x, $player_y, $player_z = get_char_coordinates 8@
set_var_float_to_var_float $tempf3 = $player_x
sub_float_var_from_float_var $tempf3 -= $x
set_var_float_to_var_float $tempf4 = $player_y
sub_float_var_from_float_var $tempf4 -= $y
set_var_float_to_var_float $start_cam_z = $z
sub_float_var_from_float_var $start_cam_z -= $player_z
set_var_float_to_var_float $tempf1 = $tempf3
mult_float_var_by_float_var $tempf1 *= $tempf3
set_var_float_to_var_float $tempf2 = $tempf4
mult_float_var_by_float_var $tempf2 *= $tempf4
set_var_float_to_var_float $start_cam_y = $tempf1
add_float_var_to_float_var $start_cam_y += $tempf2
$start_cam_y *= -1.0
$start_cam_y = sqrt $start_cam_y
set_var_float_to_var_float $para_cam_z_change = $end_cam_z
sub_float_var_from_float_var $para_cam_z_change -= $start_cam_z
$start_cam_y *= -1.0
set_var_float_to_var_float $para_cam_y_change = $end_cam_y
sub_float_var_from_float_var $para_cam_y_change -= $start_cam_y
if 
  16@ == 0
goto_if_false @PARACH_6305
16@ = 1
set_var_float_to_var_float $initial_y = $start_cam_y
set_var_float_to_var_float $initial_z = $start_cam_z

:PARACH_6305
return 

:PARACH_6307
$player_x, $player_y, $player_z = get_char_coordinates 8@
set_var_float_to_lvar_float $tempf3 = 28@
$tempf3 *= 180.0
$tempf3 = cos $tempf3
$tempf3 -= 1.0
$tempf3 *= -0.5
set_var_float_to_var_float $z = $para_cam_z_change
mult_float_var_by_float_var $z *= $tempf3
add_float_var_to_float_var $z += $start_cam_z
set_var_float_to_var_float $y = $para_cam_y_change
mult_float_var_by_float_var $y *= $tempf3
add_float_var_to_float_var $y += $start_cam_y
return 

:PARACH_6417
remove_animation "PARACHUTE"
mark_model_as_no_longer_needed #PARACHUTE
mark_model_as_no_longer_needed #PARA_PACK
if 
  0@ <> -1
goto_if_false @PARACH_6463
remove_pickup 0@

:PARACH_6463
delete_object 9@
delete_object 10@
if 
  is_int_lvar_equal_to_int_var 8@ == $scplayer
goto_if_false @PARACH_6499
$force_chute_open = 0

:PARACH_6499
terminate_this_script 
return 

:PARACH_6503
$player_x, $player_y, $player_z = get_char_coordinates 8@
set_var_float_to_var_float $x = $ai_target_x
sub_float_var_from_float_var $x -= $player_x
set_var_float_to_var_float $y = $ai_target_y
sub_float_var_from_float_var $y -= $player_y
set_var_float_to_var_float $z = $player_z
sub_float_var_from_float_var $z -= $ai_target_z
if 
  17@ == 1
goto_if_false @PARACH_6683
mult_float_var_by_float_var $x *= $x
mult_float_var_by_float_var $y *= $y
add_float_var_to_float_var $x += $y
$x = sqrt $x
set_var_float_to_var_float $tempf1 = $z
div_float_var_by_float_var $tempf1 /= $x
set_var_float_to_lvar_float $tempf2 = 3@
div_float_var_by_float_lvar $tempf2 /= 5@
$tempf2 *= -1.2
if 
  is_float_var_greater_than_float_var $tempf2 > $tempf1
goto_if_false @PARACH_6683
12@ = 1

:PARACH_6683
if 
  14@ == 2
goto_if_false @PARACH_7350
20@ = get_heading_from_vector_2d $x {y} $y
19@ = get_char_heading 8@
3@ -= 1.0
4@ -= 1.0
set_lvar_float_to_lvar_float 21@ = 20@
sub_float_lvar_from_float_lvar 21@ -= 19@
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 23@
goto_if_false @PARACH_7137
set_lvar_int_to_lvar_int 23@ = TIMERA
23@ += 3000
$left_angle_check = generate_random_float_in_range -20.0 {max} 0.0
$right_angle_check = generate_random_float_in_range 0.0 {max} 20.0
mult_float_var_by_float_var $x *= $x
mult_float_var_by_float_var $y *= $y
add_float_var_to_float_var $x += $y
$x = sqrt $x
set_var_float_to_var_float $tempf2 = $x
div_float_var_by_float_lvar $tempf2 /= 5@
set_var_float_to_var_float $tempf1 = $z
div_float_var_by_float_var $tempf1 /= $tempf2
set_var_float_to_lvar_float $tempf2 = 3@
add_float_lvar_to_float_var $tempf2 += 4@
$tempf2 /= 2.0
set_var_float_to_lvar_float $tempf3 = 3@
sub_float_lvar_from_float_var $tempf3 -= 4@
$tempf3 /= 4.0
add_float_var_to_float_var $tempf3 += $tempf2
set_var_float_to_lvar_float $tempf4 = 3@
sub_float_lvar_from_float_var $tempf4 -= 4@
$tempf4 /= -4.0
add_float_var_to_float_var $tempf4 += $tempf2
$tempf3 *= -1.0
$tempf4 *= -1.0
if and
  is_float_var_greater_than_float_var $tempf3 > $tempf1
  is_float_var_greater_than_float_var $tempf1 > $tempf4
goto_if_false @PARACH_7085
$tempv1 = generate_random_int_in_range 0 {max} 2
if 
  $tempv1 == 0
goto_if_false @PARACH_7060
12@ = 2

:PARACH_7060
if 
  $tempv1 == 1
goto_if_false @PARACH_7085
12@ = 0

:PARACH_7085
if 
  is_float_var_greater_or_equal_to_float_var $tempf1 >= $tempf3
goto_if_false @PARACH_7111
12@ = 0

:PARACH_7111
if 
  is_float_var_greater_or_equal_to_float_var $tempf4 >= $tempf1
goto_if_false @PARACH_7137
12@ = 2

:PARACH_7137
if or
  is_float_var_greater_than_float_lvar $left_angle_check > 21@
  is_float_lvar_greater_than_float_var 21@ > $right_angle_check
goto_if_false @PARACH_7323
if 
  -180.0 > 21@
goto_if_false @PARACH_7195
21@ += 360.0

:PARACH_7195
if 
  21@ > 180.0
goto_if_false @PARACH_7226
21@ -= 360.0

:PARACH_7226
21@ /= 180.0
if 
  21@ > 1.0
goto_if_false @PARACH_7267
21@ = 1.0

:PARACH_7267
if 
  -1.0 > 21@
goto_if_false @PARACH_7298
21@ = -1.0

:PARACH_7298
21@ *= -128.0
cset_lvar_int_to_lvar_float 22@ =# 21@
goto @PARACH_7330

:PARACH_7323
22@ = 0

:PARACH_7330
3@ += 1.0
4@ += 1.0

:PARACH_7350
return 
terminate_this_script 

//-------------External script 2 (BCESAR2)---------------

:BCESAR2
script_name 'BCESAR2'
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @BCESAR2_50
goto @BCESAR2_6142

:BCESAR2_50
if 
  $flag_synd_mission_counter >= 10
goto_if_false @BCESAR2_75
goto @BCESAR2_6142

:BCESAR2_75
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @BCESAR2_107
goto @BCESAR2_6142

:BCESAR2_107
set_deatharrest_state 0
if 
  $flag_bce2_passed_1stime == 0
goto_if_false @BCESAR2_131
register_mission_given 

:BCESAR2_131
$bcesar2_mission_flag = 1
$flag_on_courier_mission = 1
wait 0
0@ = 0
1@ = 5
21@ = 0
3@ = 0
4@ = 0
23@ = 0
$bce2_audio_playing = 0
$bce2_counter = 0
$bce2_ahead_counter = 1
$bce2_mobile = 0
$bce2_audio_slot = 1
$bce2_alt_slot = 2
$bce2_response = 0
$bce2_crate_status[0] = 0
$bce2_crate_status[1] = 0
$bce2_crate_status[2] = 0
$bce2_crate_status[3] = 0
$bce2_crate_status[4] = 0
$bce2_crate_status[5] = 0
$bce2_crate_blip[0] = 0
$bce2_crate_blip[1] = 0
$bce2_crate_blip[2] = 0
$bce2_crate_blip[3] = 0
$bce2_crate_blip[4] = 0
$bce2_crate_blip[5] = 0
10@ = 0
11@ = 1
19@ = 1000
31@ = 40.0
$bce2_random = generate_random_int_in_range 0 {max} 2
if 
  $bce2_random == 0
goto_if_false @BCESAR2_390
9@ = 114

:BCESAR2_390
if 
  $bce2_random == 1
goto_if_false @BCESAR2_415
9@ = 96

:BCESAR2_415
if 
  $bce2_random == 2
goto_if_false @BCESAR2_440
9@ = 115

:BCESAR2_440
if 
  $bce2_random == 0
goto_if_false @BCESAR2_489
set_var_float_to_var_float $bce2_track_x = $bce2_route1_x[0]
set_var_float_to_var_float $bce2_track_y = $bce2_route1_y[0]
set_var_float_to_var_float $bce2_track_z = $bce2_route1_z[0]
goto @BCESAR2_562

:BCESAR2_489
if 
  $bce2_random == 1
goto_if_false @BCESAR2_538
set_var_float_to_var_float $bce2_track_x = $bce2_route2_x[0]
set_var_float_to_var_float $bce2_track_y = $bce2_route2_y[0]
set_var_float_to_var_float $bce2_track_z = $bce2_route2_z[0]
goto @BCESAR2_562

:BCESAR2_538
set_var_float_to_var_float $bce2_track_x = $bce2_route3_x[0]
set_var_float_to_var_float $bce2_track_y = $bce2_route3_y[0]
set_var_float_to_var_float $bce2_track_z = $bce2_route3_z[0]

:BCESAR2_562
request_model 107
request_model 470
request_model 352
request_model 330

:BCESAR2_581
if or
  not has_model_loaded 107
  not has_model_loaded 470
  not has_model_loaded 352
  not has_model_loaded 330
goto_if_false @BCESAR2_622
wait 0
goto @BCESAR2_581

:BCESAR2_622
set_car_model_components 470 {component1} 2 {component2} 2
custom_plate_for_next_car 470 {text} "_ASSMAN_"
26@ = create_car 470 {x} $bce2_track_x {y} $bce2_track_y {z} $bce2_track_z
set_load_collision_for_car_flag 26@ {state} False
25@ = create_char_inside_car 26@ {pedType} PedType.CivMale {modelId} 107
set_char_suffers_critical_hits 25@ {state} False
set_char_proofs 25@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
set_car_proofs 26@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} False {meleeProof} True
set_car_cruise_speed 26@ {maxSpeed} 40.0
add_stuck_car_check_with_warp 26@ {distance} 2.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
lock_car_doors 26@ {lockStatus} CarLock.LockoutPlayerOnly
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $bce2_route1_x(10@,116f) {y} $bce2_route1_y(10@,116f) {z} $bce2_route1_z(10@,116f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
27@ = add_blip_for_car 26@
set_car_only_damaged_by_player 26@ {state} True
if 
  $bce2_played > 0
goto_if_false @BCESAR2_978
28@ = create_char_as_passenger 26@ {pedType} PedType.CivMale {modelId} 107 {seat} SeatId.BikeRear
give_weapon_to_char 28@ {weaponType} WeaponType.MicroUzi {ammo} 16000
set_current_char_weapon 28@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 28@ {accuracy} 90
if 
  $bce2_played > 1
goto_if_false @BCESAR2_978
29@ = create_char_as_passenger 26@ {pedType} PedType.CivMale {modelId} 107 {seat} SeatId.RearLeft
give_weapon_to_char 29@ {weaponType} WeaponType.MicroUzi {ammo} 16000
set_current_char_weapon 29@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 29@ {accuracy} 90
if 
  $bce2_played > 2
goto_if_false @BCESAR2_978
30@ = create_char_as_passenger 26@ {pedType} PedType.CivMale {modelId} 107 {seat} SeatId.RearRight
give_weapon_to_char 30@ {weaponType} WeaponType.MicroUzi {ammo} 16000
set_current_char_weapon 30@ {weaponType} WeaponType.MicroUzi
set_char_accuracy 30@ {accuracy} 90

:BCESAR2_978
if 
  10@ == 0
goto_if_false @BCESAR2_1022
turn_car_to_face_coord 26@ {x} $bce2_route1_x(11@,116f) {y} $bce2_route1_y(11@,116f)
goto @BCESAR2_1041

:BCESAR2_1022
turn_car_to_face_coord 26@ {x} $bce2_route1_x(10@,116f) {y} $bce2_route1_y(10@,116f)

:BCESAR2_1041
$bce2_crate_x[0] = -0.65
$bce2_crate_y[0] = -2.307
$bce2_crate_z[0] = 0.26
$bce2_crate_x[1] = -0.047
$bce2_crate_y[1] = -2.307
$bce2_crate_z[1] = 0.26
$bce2_crate_x[2] = 0.554
$bce2_crate_y[2] = -2.307
$bce2_crate_z[2] = 0.26
$bce2_crate_x[3] = 0.554
$bce2_crate_y[3] = -1.808
$bce2_crate_z[3] = 0.26
$bce2_crate_x[4] = -0.65
$bce2_crate_y[4] = -1.808
$bce2_crate_z[4] = 0.26
$bce2_crate_x[5] = -0.047
$bce2_crate_y[5] = -1.808
$bce2_crate_z[5] = 0.26

:BCESAR2_1221
if 
  0@ <> 6
goto_if_false @BCESAR2_1471
wait 0
if 
  not is_car_dead 26@
goto_if_false @BCESAR2_1464
if 
  $bce2_crate_status(0@,6i) == 0
goto_if_false @BCESAR2_1457
$bce2_random_rot = generate_random_float_in_range 0.0 {max} 19.9
if and
  20.0 > $bce2_random_rot
  $bce2_random_rot > 10.0
goto_if_false @BCESAR2_1337
$bce2_random_rot += 340.0

:BCESAR2_1337
create_object #CM_BOX {x} $bce2_crate_x(0@,6f) {y} $bce2_crate_y(0@,6f) {z} $bce2_crate_z(0@,6f) {var_handle} $bce2_crate(0@,6i)
attach_object_to_car $bce2_crate(0@,6i) {handle} 26@ {xOffset} $bce2_crate_x(0@,6f) {yOffset} $bce2_crate_y(0@,6f) {zOffset} $bce2_crate_z(0@,6f) {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
  rotate_object $bce2_crate(0@,6i) {fromAngle} $bce2_random_rot {toAngle} $bce2_random_rot {collisionCheck} True
set_object_collision $bce2_crate(0@,6i) {state} False
set_object_dynamic $bce2_crate(0@,6i) {state} False

:BCESAR2_1457
0@ += 1

:BCESAR2_1464
goto @BCESAR2_1221

:BCESAR2_1471
12@ = get_game_timer 
wait 0
if 
  is_player_playing $player1
goto_if_false @BCESAR2_1503
set_player_group_recruitment $player1 {state} False

:BCESAR2_1503
set_var_text_label s$bce2_text[1] = 'MCES07A'
set_var_text_label s$bce2_text[2] = 'MCES07B'
set_var_text_label s$bce2_text[3] = 'MCES07C'
set_var_text_label s$bce2_text[4] = 'MCES06A'
set_var_text_label s$bce2_text[5] = 'MCES06B'
set_var_text_label s$bce2_text[6] = 'MCES06C'
set_var_text_label s$bce2_text[7] = 'MCES06D'
set_var_text_label s$bce2_text[8] = 'MCES06E'
set_var_text_label s$bce2_text[9] = 'MCES06F'
set_var_text_label s$bce2_text[10] = 'MCES06G'
set_var_text_label s$bce2_text[11] = 'MCES07D'
set_var_int_to_constant $bce2_audio[1] = 25280
set_var_int_to_constant $bce2_audio[2] = 25281
set_var_int_to_constant $bce2_audio[3] = 25282
set_var_int_to_constant $bce2_audio[4] = 25273
set_var_int_to_constant $bce2_audio[5] = 25274
set_var_int_to_constant $bce2_audio[6] = 25275
set_var_int_to_constant $bce2_audio[7] = 25276
set_var_int_to_constant $bce2_audio[8] = 25277
set_var_int_to_constant $bce2_audio[9] = 25278
set_var_int_to_constant $bce2_audio[10] = 25279
set_var_int_to_constant $bce2_audio[11] = 25283
request_model 330
load_all_models_now 
load_mission_audio MissionAudioSlot.Slot3 {audioId} 20804

:BCESAR2_1759
if or
  not has_model_loaded 330
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @BCESAR2_1790
wait 0
goto @BCESAR2_1759

:BCESAR2_1790
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @BCESAR2_1822
goto @BCESAR2_6142

:BCESAR2_1822
task_use_mobile_phone $scplayer {start} True
play_mission_audio MissionAudioSlot.Slot3
wait 2000
clear_mission_audio MissionAudioSlot.Slot3

:BCESAR2_1842
wait 0
if 
  $bce2_counter <> 0
goto_if_false @BCESAR2_2185
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_1910
if 
  has_mission_audio_loaded $bce2_alt_slot
goto_if_false @BCESAR2_1903
clear_mission_audio $bce2_alt_slot

:BCESAR2_1903
$bce2_audio_playing = 1

:BCESAR2_1910
if 
  $bce2_audio_playing == 1
goto_if_false @BCESAR2_1947
load_mission_audio $bce2_audio_slot {audioId} $bce2_audio($bce2_counter,12i)
$bce2_audio_playing = 2

:BCESAR2_1947
if 
  $bce2_audio_playing == 2
goto_if_false @BCESAR2_2007
if 
  has_mission_audio_loaded $bce2_audio_slot
goto_if_false @BCESAR2_2007
play_mission_audio $bce2_audio_slot
print_now $bce2_text($bce2_counter,12s) {time} 10000 {flag} 1
$bce2_audio_playing = 3

:BCESAR2_2007
if 
  $bce2_audio_playing == 3
goto_if_false @BCESAR2_2185
if 
  has_mission_audio_finished $bce2_audio_slot
goto_if_false @BCESAR2_2124
clear_this_print $bce2_text($bce2_counter,12s)
if 
  $bce2_audio_slot == 1
goto_if_false @BCESAR2_2089
$bce2_audio_slot = 2
$bce2_alt_slot = 1
goto @BCESAR2_2103

:BCESAR2_2089
$bce2_audio_slot = 1
$bce2_alt_slot = 2

:BCESAR2_2103
$bce2_counter = 0
$bce2_audio_playing = 0
goto @BCESAR2_2185

:BCESAR2_2124
if 
  not has_mission_audio_loaded $bce2_alt_slot
goto_if_false @BCESAR2_2185
if 
  10 > $bce2_counter
goto_if_false @BCESAR2_2185
set_var_int_to_var_int $bce2_ahead_counter = $bce2_counter
$bce2_ahead_counter += 1
load_mission_audio $bce2_alt_slot {audioId} $bce2_audio($bce2_ahead_counter,12i)

:BCESAR2_2185
if 
  $bce2_played > 0
goto_if_false @BCESAR2_2676
if 
  $bce2_mobile == 0
goto_if_false @BCESAR2_2258
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_2258
$bce2_counter = 1
$bce2_mobile = 1
$bce2_text_timer_start = get_game_timer 

:BCESAR2_2258
if 
  $bce2_mobile == 1
goto_if_false @BCESAR2_2373
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_2373
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_2373
$bce2_counter = 2
$bce2_mobile = 2
$bce2_response = 0
$bce2_text_timer_start = get_game_timer 
clear_help 
print_help_forever 'TALK_1'

:BCESAR2_2373
if 
  $bce2_mobile == 2
goto_if_false @BCESAR2_2443
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @BCESAR2_2417
clear_help 
$bce2_response = 2

:BCESAR2_2417
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @BCESAR2_2443
clear_help 
$bce2_response = 1

:BCESAR2_2443
if 
  $bce2_response == 1
goto_if_false @BCESAR2_2556
if 
  $bce2_mobile == 2
goto_if_false @BCESAR2_2556
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_2556
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_2556
$bce2_counter = 3
$bce2_mobile = 7
$bce2_text_timer_start = get_game_timer 

:BCESAR2_2556
if 
  $bce2_response == 2
goto_if_false @BCESAR2_2669
if 
  $bce2_mobile == 2
goto_if_false @BCESAR2_2669
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_2669
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_2669
$bce2_counter = 11
$bce2_mobile = 7
$bce2_text_timer_start = get_game_timer 

:BCESAR2_2669
goto @BCESAR2_3301

:BCESAR2_2676
if 
  $bce2_mobile == 0
goto_if_false @BCESAR2_2731
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_2731
$bce2_counter = 4
$bce2_mobile = 1
$bce2_text_timer_start = get_game_timer 

:BCESAR2_2731
if 
  $bce2_mobile == 1
goto_if_false @BCESAR2_2826
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_2826
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_2826
$bce2_counter = 5
$bce2_mobile = 2
$bce2_text_timer_start = get_game_timer 

:BCESAR2_2826
if 
  $bce2_mobile == 2
goto_if_false @BCESAR2_2921
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_2921
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_2921
$bce2_counter = 6
$bce2_mobile = 3
$bce2_text_timer_start = get_game_timer 

:BCESAR2_2921
if 
  $bce2_mobile == 3
goto_if_false @BCESAR2_3016
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_3016
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_3016
$bce2_counter = 7
$bce2_mobile = 4
$bce2_text_timer_start = get_game_timer 

:BCESAR2_3016
if 
  $bce2_mobile == 4
goto_if_false @BCESAR2_3111
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_3111
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_3111
$bce2_counter = 8
$bce2_mobile = 5
$bce2_text_timer_start = get_game_timer 

:BCESAR2_3111
if 
  $bce2_mobile == 5
goto_if_false @BCESAR2_3206
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_3206
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_3206
$bce2_counter = 9
$bce2_mobile = 6
$bce2_text_timer_start = get_game_timer 

:BCESAR2_3206
if 
  $bce2_mobile == 6
goto_if_false @BCESAR2_3301
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_3301
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_3301
$bce2_counter = 10
$bce2_mobile = 7
$bce2_text_timer_start = get_game_timer 

:BCESAR2_3301
if or
  $bce2_mobile == 7
  $bce2_mobile == 8
goto_if_false @BCESAR2_3475
$bce2_text_timer_end = get_game_timer 
set_var_int_to_var_int $bce2_text_timer_diff = $bce2_text_timer_end
sub_int_var_from_int_var $bce2_text_timer_diff -= $bce2_text_timer_start
if 
  $bce2_text_timer_diff > 1000
goto_if_false @BCESAR2_3475
if 
  $bce2_audio_playing == 0
goto_if_false @BCESAR2_3475
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_3475
24@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BCESAR2_3436
task_use_mobile_phone $scplayer {start} False

:BCESAR2_3436
if 
  2 > $bce2_response
goto_if_false @BCESAR2_3468
goto @BCESAR2_3531
goto @BCESAR2_3475

:BCESAR2_3468
goto @BCESAR2_6142

:BCESAR2_3475
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BCESAR2_3524
if 
  $bce2_played > 0
goto_if_false @BCESAR2_3517
$bce2_response = 2

:BCESAR2_3517
$bce2_mobile = 8

:BCESAR2_3524
goto @BCESAR2_1842

:BCESAR2_3531
wait 0
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @BCESAR2_3564
1@ = 0
3@ = 6

:BCESAR2_3564
if 
  $onmission == 1
goto_if_false @BCESAR2_3596
1@ = 0
3@ = 6

:BCESAR2_3596
if 
  is_player_playing $player1
goto_if_false @BCESAR2_3718
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_3718
if 
  23@ == 0
goto_if_false @BCESAR2_3677
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR2_3677
22@ = store_car_char_is_in_no_save $scplayer
23@ = 1

:BCESAR2_3677
if 
  23@ == 1
goto_if_false @BCESAR2_3718
if 
  not is_char_in_any_car $scplayer
goto_if_false @BCESAR2_3718
23@ = 0

:BCESAR2_3718
if 
  is_player_playing $player1
goto_if_false @BCESAR2_5271
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_5264
if 
  4@ == 0
goto_if_false @BCESAR2_3833
if 
  locate_char_any_means_3d $scplayer {x} $bce2_track_x {y} $bce2_track_y {z} $bce2_track_z {xRadius} 100.0 {yRadius} 100.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @BCESAR2_3833
print_now 'BCE2_02' {time} 5000 {flag} 1
4@ = 1

:BCESAR2_3833
if 
  is_car_dead 26@
goto_if_false @BCESAR2_3856
goto @BCESAR2_6142

:BCESAR2_3856
if 
  $bce2_played > 0
goto_if_false @BCESAR2_4174
if 
  not is_char_dead 28@
goto_if_false @BCESAR2_3962
5@ = get_script_task_status 28@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BCESAR2_3962
task_drive_by 28@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
set_current_char_weapon 28@ {weaponType} WeaponType.MicroUzi

:BCESAR2_3962
if 
  $bce2_played > 1
goto_if_false @BCESAR2_4174
if 
  not is_char_dead 29@
goto_if_false @BCESAR2_4068
6@ = get_script_task_status 29@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 6@ == 7
goto_if_false @BCESAR2_4068
task_drive_by 29@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
set_current_char_weapon 29@ {weaponType} WeaponType.MicroUzi

:BCESAR2_4068
if 
  $bce2_played > 2
goto_if_false @BCESAR2_4174
if 
  not is_char_dead 30@
goto_if_false @BCESAR2_4174
7@ = get_script_task_status 30@ {taskId} 1811
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @BCESAR2_4174
task_drive_by 30@ {targetChar} $scplayer {targetVehicle} -1 {x} 0.0 {y} 0.0 {z} 0.0 {radius} 50.0 {type} DriveByType.Ai {rightHandCarSeat} True {fireRate} 30
set_current_char_weapon 30@ {weaponType} WeaponType.MicroUzi

:BCESAR2_4174
if and
  not is_char_dead 25@
  not is_car_dead 26@
goto_if_false @BCESAR2_5264
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 26@ {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @BCESAR2_4269
if 
  31@ > 30.0
goto_if_false @BCESAR2_4262
31@ -= 0.1

:BCESAR2_4262
goto @BCESAR2_4300

:BCESAR2_4269
if 
  50.0 > 31@
goto_if_false @BCESAR2_4300
31@ += 0.1

:BCESAR2_4300
if 
  4@ == 1
goto_if_false @BCESAR2_4361
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} 26@ {xRadius} 500.0 {yRadius} 500.0 {zRadius} 500.0 {drawSphere} False
goto_if_false @BCESAR2_4361
goto @BCESAR2_6142

:BCESAR2_4361
$bce2_track_x, $bce2_track_y, $bce2_track_z = get_car_coordinates 26@
if 
  is_int_lvar_greater_than_int_lvar 9@ > 10@
goto_if_false @BCESAR2_4772
if 
  $bce2_random == 0
goto_if_false @BCESAR2_4526
if 
  locate_char_in_car_3d 25@ {x} $bce2_route1_x(10@,116f) {y} $bce2_route1_y(10@,116f) {z} $bce2_route1_z(10@,116f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCESAR2_4519
set_car_cruise_speed 26@ {maxSpeed} 31@
10@ += 1
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $bce2_route1_x(10@,116f) {y} $bce2_route1_y(10@,116f) {z} $bce2_route1_z(10@,116f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_4519
goto @BCESAR2_4765

:BCESAR2_4526
if 
  $bce2_random == 1
goto_if_false @BCESAR2_4658
if 
  locate_char_in_car_3d 25@ {x} $bce2_route2_x(10@,98f) {y} $bce2_route2_y(10@,98f) {z} $bce2_route2_z(10@,98f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCESAR2_4651
set_car_cruise_speed 26@ {maxSpeed} 31@
10@ += 1
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $bce2_route2_x(10@,98f) {y} $bce2_route2_y(10@,98f) {z} $bce2_route2_z(10@,98f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_4651
goto @BCESAR2_4765

:BCESAR2_4658
if 
  locate_char_in_car_3d 25@ {x} $bce2_route3_x(10@,117f) {y} $bce2_route3_y(10@,117f) {z} $bce2_route3_z(10@,117f) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @BCESAR2_4765
set_car_cruise_speed 26@ {maxSpeed} 31@
10@ += 1
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $bce2_route3_x(10@,117f) {y} $bce2_route3_y(10@,117f) {z} $bce2_route3_z(10@,117f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_4765
goto @BCESAR2_5071

:BCESAR2_4772
if 
  $bce2_random == 0
goto_if_false @BCESAR2_4866
if 
  locate_char_in_car_3d 25@ {x} $bce2_route1_x(10@,116f) {y} $bce2_route1_y(10@,116f) {z} $bce2_route1_z(10@,116f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCESAR2_4859
task_car_drive_wander 25@ {vehicle} 26@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars

:BCESAR2_4859
goto @BCESAR2_5029

:BCESAR2_4866
if 
  $bce2_random == 1
goto_if_false @BCESAR2_4960
if 
  locate_char_in_car_3d 25@ {x} $bce2_route2_x(10@,98f) {y} $bce2_route2_y(10@,98f) {z} $bce2_route2_z(10@,98f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCESAR2_4953
task_car_drive_wander 25@ {vehicle} 26@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars

:BCESAR2_4953
goto @BCESAR2_5029

:BCESAR2_4960
if 
  locate_char_in_car_3d 25@ {x} $bce2_route3_x(10@,117f) {y} $bce2_route3_y(10@,117f) {z} $bce2_route3_z(10@,117f) {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @BCESAR2_5029
task_car_drive_wander 25@ {vehicle} 26@ {speed} 50.0 {drivingMode} DrivingMode.AvoidCars

:BCESAR2_5029
if 
  is_int_lvar_equal_to_int_lvar 10@ == 9@
goto_if_false @BCESAR2_5071
if 
  not is_car_on_screen 26@
goto_if_false @BCESAR2_5071
goto @BCESAR2_6142

:BCESAR2_5071
8@ = get_script_task_status 25@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 8@ == 7
goto_if_false @BCESAR2_5264
if 
  $bce2_random == 0
goto_if_false @BCESAR2_5163
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $bce2_route1_x(10@,116f) {y} $bce2_route1_y(10@,116f) {z} $bce2_route1_z(10@,116f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @BCESAR2_5264

:BCESAR2_5163
if 
  $bce2_random == 1
goto_if_false @BCESAR2_5226
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $bce2_route2_x(10@,98f) {y} $bce2_route2_y(10@,98f) {z} $bce2_route2_z(10@,98f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
goto @BCESAR2_5264

:BCESAR2_5226
task_car_drive_to_coord 25@ {vehicle} 26@ {x} $bce2_route3_x(10@,117f) {y} $bce2_route3_y(10@,117f) {z} $bce2_route3_z(10@,117f) {speed} 31@ {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:BCESAR2_5264
goto @BCESAR2_5278

:BCESAR2_5271
goto @BCESAR2_6142

:BCESAR2_5278
if 
  not is_car_dead 26@
goto_if_false @BCESAR2_5759
13@ = get_game_timer 
set_lvar_int_to_lvar_int 14@ = 13@
sub_int_lvar_from_int_lvar 14@ -= 12@
20@ = get_car_health 26@
if 
  14@ > 1000
goto_if_false @BCESAR2_5759
if 
  is_int_lvar_greater_than_int_lvar 19@ > 20@
goto_if_false @BCESAR2_5759
if 
  $bce2_crate_status(1@,6i) == 0
goto_if_false @BCESAR2_5751
if 
  is_object_attached $bce2_crate(1@,6i)
goto_if_false @BCESAR2_5751
if 
  not is_car_dead 26@
goto_if_false @BCESAR2_5751
if or
  not is_car_upsidedown 26@
  not is_car_in_water 26@
goto_if_false @BCESAR2_5751
get_object_coordinates $bce2_crate(1@,6i) {var_x} $bce2_crate_x(1@,6f) {var_y} $bce2_crate_y(1@,6f) {var_z} $bce2_crate_z(1@,6f)
$bce2_crate_z(1@,6f) += 0.5
set_object_coordinates $bce2_crate(1@,6i) {x} $bce2_crate_x(1@,6f) {y} $bce2_crate_y(1@,6f) {z} $bce2_crate_z(1@,6f)
detach_object $bce2_crate(1@,6i) {x} 90.0 {y} 180.0 {z} 1.5 {collisionDetection} True
add_blip_for_object $bce2_crate(1@,6i) {var_handle} $bce2_crate_blip(1@,6i)
add_to_object_velocity $bce2_crate(1@,6i) {x} 0.0 {y} -5.0 {z} 20.0
set_object_collision $bce2_crate(1@,6i) {state} True
set_object_dynamic $bce2_crate(1@,6i) {state} True
if 
  is_player_playing $player1
goto_if_false @BCESAR2_5662
if 
  is_char_in_any_car $scplayer
goto_if_false @BCESAR2_5662
if 
  not is_car_dead 22@
goto_if_false @BCESAR2_5662
sort_out_object_collision_with_car $bce2_crate(1@,6i) {handle} 22@

:BCESAR2_5662
12@ = get_game_timer 
print_now 'BCE2_03' {time} 5000 {flag} 1
$bce2_crate_status(1@,6i) = 2
if 
  1@ > 0
goto_if_false @BCESAR2_5726
1@ -= 1
goto @BCESAR2_5751

:BCESAR2_5726
if 
  3@ == 6
goto_if_false @BCESAR2_5751
goto @BCESAR2_6142

:BCESAR2_5751
set_lvar_int_to_lvar_int 19@ = 20@

:BCESAR2_5759
if 
  1@ == 0
goto_if_false @BCESAR2_5802
if 
  3@ == 6
goto_if_false @BCESAR2_5802
goto @BCESAR2_6142

:BCESAR2_5802
2@ = 0

:BCESAR2_5809
if 
  2@ <> 6
goto_if_false @BCESAR2_6135
wait 0
if 
  $bce2_crate_status(2@,6i) == 2
goto_if_false @BCESAR2_6121
if 
  is_player_playing $player1
goto_if_false @BCESAR2_6121
if 
  not is_char_dead $scplayer
goto_if_false @BCESAR2_6121
16@, 17@, 18@ = get_char_coordinates $scplayer
if 
  does_object_exist $bce2_crate(2@,6i)
goto_if_false @BCESAR2_6025
if 
  locate_char_any_means_object_3d $scplayer {object} $bce2_crate(2@,6i) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @BCESAR2_6025
remove_blip $bce2_crate_blip(2@,6i)
delete_object $bce2_crate(2@,6i)
add_one_off_sound 16@ {y} 17@ {z} 18@ {soundId} ScriptSound.SoundPartMissionComplete
add_score $player1 {money} 300
21@ += 300
$bce2_crate_status(2@,6i) = 3
3@ += 1

:BCESAR2_6025
if 
  does_object_exist $bce2_crate(2@,6i)
goto_if_false @BCESAR2_6121
if 
  not locate_char_any_means_object_3d $scplayer {object} $bce2_crate(2@,6i) {xRadius} 75.0 {yRadius} 75.0 {zRadius} 75.0 {drawSphere} False
goto_if_false @BCESAR2_6121
remove_blip $bce2_crate_blip(2@,6i)
delete_object $bce2_crate(2@,6i)
$bce2_crate_status(2@,6i) = 3
3@ += 1

:BCESAR2_6121
2@ += 1
goto @BCESAR2_5809

:BCESAR2_6135
goto @BCESAR2_3531

:BCESAR2_6142
if 
  $flag_on_courier_mission == 1
goto_if_false @BCESAR2_6202
print_with_number_big 'BCE2_04' {num} 21@ {duration} 7500 {style} TextStyle.MiddleSmallerHigher
print_now 'BCE2_05' {time} 7500 {flag} 1
$bce2_played += 1

:BCESAR2_6202
remove_blip 27@
remove_blip $bce2_crate_blip[0]
remove_blip $bce2_crate_blip[1]
remove_blip $bce2_crate_blip[2]
remove_blip $bce2_crate_blip[3]
remove_blip $bce2_crate_blip[4]
remove_blip $bce2_crate_blip[5]
mark_car_as_no_longer_needed 26@
mark_char_as_no_longer_needed 25@
mark_char_as_no_longer_needed 28@
mark_char_as_no_longer_needed 29@
mark_char_as_no_longer_needed 30@
mark_object_as_no_longer_needed $bce2_crate[0]
mark_object_as_no_longer_needed $bce2_crate[1]
mark_object_as_no_longer_needed $bce2_crate[2]
mark_object_as_no_longer_needed $bce2_crate[3]
mark_object_as_no_longer_needed $bce2_crate[4]
mark_object_as_no_longer_needed $bce2_crate[5]
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 470
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 330
$timer_mobile_start = get_game_timer 
clear_help 
clear_mission_audio MissionAudioSlot.Slot3
$timer_mobile_start = get_game_timer 
if 
  $flag_on_courier_mission == 1
goto_if_false @BCESAR2_6372
if 
  $flag_bce2_passed_1stime == 0
goto_if_false @BCESAR2_6372
register_oddjob_mission_passed 
$flag_bce2_passed_1stime = 1

:BCESAR2_6372
$flag_on_courier_mission = 0
terminate_this_script 
terminate_this_script 

//-------------External script 3 (BCESAR3)---------------

:COKEC
script_name 'COKEC'
15@ = 0
0@ = 0
1@ = 0
12@ = 0
13@ = 0
14@ = 0
16@ = 0
$phone_conversation_choice = 0
$phone_conversation_answer = 0

:COKEC_74
if or
  $weekday == 1
  $weekday == 3
  $weekday == 5
goto_if_false @COKEC_120
goto @COKEC_5527
16@ = 1

:COKEC_120
if 
  $bce2_played == 0
goto_if_false @COKEC_152
goto @COKEC_5527
16@ = 1

:COKEC_152
if 
  $flag_synd_mission_counter >= 10
goto_if_false @COKEC_184
goto @COKEC_5527
16@ = 1

:COKEC_184
$current_visible_area_cell = get_area_visible 
if 
  is_player_playing $player1
goto_if_false @COKEC_333
if 
  $current_visible_area_cell == 0
goto_if_false @COKEC_322
if and
  is_char_on_foot $scplayer
  not is_char_in_air $scplayer
  $onmission == 0
  $player_fall_state == 0
goto_if_false @COKEC_304
if and
  not is_char_in_water $scplayer
  not is_char_shooting $scplayer
goto_if_false @COKEC_286
goto @COKEC_297

:COKEC_286
wait 0
goto @COKEC_74

:COKEC_297
goto @COKEC_315

:COKEC_304
wait 0
goto @COKEC_74

:COKEC_315
goto @COKEC_333

:COKEC_322
wait 0
goto @COKEC_74

:COKEC_333
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 0
goto_if_false @COKEC_369
wait 0
goto @COKEC_74

:COKEC_369
if 
  $bcesar3_passed_mission == 0
goto_if_false @COKEC_389
register_mission_given 

:COKEC_389
14@ = 1
$flag_on_courier_mission = 1

:COKEC_403
wait 0
3@ = get_game_timer 
set_lvar_int_to_lvar_int 2@ = 3@
sub_int_lvar_from_int_lvar 2@ -= 9@
set_lvar_int_to_lvar_int 9@ = 3@
27@ = get_area_visible 
if 
  27@ == 0
goto_if_false @COKEC_475
add_int_lvar_to_int_lvar 10@ += 2@
add_int_lvar_to_int_lvar 11@ += 2@

:COKEC_475
if 
is_ps2_keyboard_key_just_pressed 98
goto_if_false @COKEC_497
goto @COKEC_5527

:COKEC_497
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @COKEC_519
goto @COKEC_5527

:COKEC_519
if 
  $onmission == 1
goto_if_false @COKEC_551
16@ = 1
goto @COKEC_5527

:COKEC_551
if 
  not is_player_playing $player1
goto_if_false @COKEC_574
goto @COKEC_5527

:COKEC_574
if 
  has_deatharrest_been_executed 
goto_if_false @COKEC_601
16@ = 1
goto @COKEC_5527

:COKEC_601
if 
  0@ == 0
goto_if_false @COKEC_675
23@ = -1
21@ = 0
24@ = 0
25@ = 0
26@ = 0
28@ = 0
0@ += 1
1@ = 0

:COKEC_675
if 
  0@ == 1
goto_if_false @COKEC_5520
if 
  1@ == 0
goto_if_false @COKEC_806
request_model 23
request_model 468
request_model 346
request_model 330
request_car_recording 556
load_mission_audio MissionAudioSlot.Slot3 {audioId} 20804

:COKEC_742
if or
  not has_model_loaded 23
  not has_model_loaded 468
  not has_model_loaded 346
  not has_model_loaded 330
  not has_car_recording_been_loaded 556
  not has_mission_audio_loaded MissionAudioSlot.Slot3
goto_if_false @COKEC_792
wait 0
goto @COKEC_742

:COKEC_792
29@ = load_char_decision_maker DecisionMakerType.Tough
1@ += 1

:COKEC_806
if 
  1@ == 1
goto_if_false @COKEC_882
gosub @ENTEXT_214
if 
  $player_is_completely_safe_for_mobile == 1
goto_if_false @COKEC_882
play_mission_audio MissionAudioSlot.Slot3
task_use_mobile_phone $scplayer {start} True
TIMERA = -1500
12@ = 0
1@ += 1

:COKEC_882
if 
  1@ >= 2
goto_if_false @COKEC_1565
if 
  5 > 12@
goto_if_false @COKEC_1565
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @COKEC_963
12@ = 4
$phone_conversation_choice = 3
$phone_conversation_answer = 2
16@ = 1

:COKEC_963
if and
  $phone_conversation_choice == 1
  $audio_line_is_active == 0
  not is_message_being_displayed 
goto_if_false @COKEC_1008
print_help_forever 'TALK_1'
$phone_conversation_choice += 1

:COKEC_1008
if 
  $phone_conversation_choice == 2
goto_if_false @COKEC_1099
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @COKEC_1066
$phone_conversation_answer = 1
$phone_conversation_choice += 1
clear_help 
goto @COKEC_1099

:COKEC_1066
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @COKEC_1099
$phone_conversation_answer = 2
$phone_conversation_choice += 1
clear_help 

:COKEC_1099
if or
  $phone_conversation_choice == 0
  $phone_conversation_choice == 3
goto_if_false @COKEC_1565
if and
  $audio_line_is_active == 0
  TIMERA > 1000
goto_if_false @COKEC_1565
switch_start 12@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COKEC_1551 {caseNum1} 0 {caseLabel1} @COKEC_1213 {caseNum2} 1 {caseLabel2} @COKEC_1264 {caseNum3} 2 {caseLabel3} @COKEC_1312 {caseNum4} 3 {caseLabel4} @COKEC_1366 {caseNum5} 4 {caseLabel5} @COKEC_1480 {caseNum6} -1 {caseLabel6} @COKEC_1551 {caseNum7} -1 {caseLabel7} @COKEC_1551

:COKEC_1213
clear_mission_audio MissionAudioSlot.Slot3
set_var_text_label s$audio_string = 'MCES08A'
set_var_int_to_constant $audio_sound_file = 25285
start_new_script @AUDIOL -1 0 1 1 0 
goto @COKEC_1551

:COKEC_1264
set_var_text_label s$audio_string = 'MCES08B'
set_var_int_to_constant $audio_sound_file = 25286
start_new_script @AUDIOL $scplayer 0 1 1 0 
goto @COKEC_1551

:COKEC_1312
set_var_text_label s$audio_string = 'MCES08C'
set_var_int_to_constant $audio_sound_file = 25287
start_new_script @AUDIOL -1 0 1 1 0 
$phone_conversation_choice += 1
goto @COKEC_1551

:COKEC_1366
if 
  $phone_conversation_answer == 1
goto_if_false @COKEC_1432
set_var_text_label s$audio_string = 'MCES08D'
set_var_int_to_constant $audio_sound_file = 25288
start_new_script @AUDIOL $scplayer 0 1 1 0 
goto @COKEC_1473

:COKEC_1432
set_var_text_label s$audio_string = 'VOFFE2N'
set_var_int_to_constant $audio_sound_file = 21447
start_new_script @AUDIOL $scplayer 0 1 1 0 

:COKEC_1473
goto @COKEC_1551

:COKEC_1480
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
if 
  is_player_playing $player1
goto_if_false @COKEC_1519
task_use_mobile_phone $scplayer {start} False

:COKEC_1519
if 
  $phone_conversation_answer <> 1
goto_if_false @COKEC_1544
goto @COKEC_5527

:COKEC_1544
goto @COKEC_1551

:COKEC_1551
12@ += 1
TIMERA = 0

:COKEC_1565
if 
  1@ == 2
goto_if_false @COKEC_2214
if 
  15@ == 0
goto_if_false @COKEC_1991
26@ = generate_random_int_in_range 0 {max} 60

:COKEC_1610
if 
  2@ == 0
goto_if_false @COKEC_1732
if 
  is_player_playing $player1
goto_if_false @COKEC_1725
if 
  locate_char_any_means_3d $scplayer {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f) {xRadius} 150.0 {yRadius} 150.0 {zRadius} 150.0 {drawSphere} False
goto_if_false @COKEC_1718
26@ = generate_random_int_in_range 0 {max} 60
wait 0
goto @COKEC_1725

:COKEC_1718
2@ = 1

:COKEC_1725
goto @COKEC_1610

:COKEC_1732
17@ = create_car 468 {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f)
18@ = create_char PedType.CivMale {modelId} 23 {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f)
22@ = create_object #PARA_PACK {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f)
warp_char_into_car 18@ {vehicle} 17@
task_pick_up_object 18@ {object} 22@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
set_load_collision_for_car_flag 17@ {state} False
set_lvar_int_to_lvar_int 2@ = 26@
2@ += 1
set_var_float_to_var_float $x = $bce2_CHECKPOINTS_x(2@,85f)
sub_float_var_from_float_var $x -= $bce2_CHECKPOINTS_x(26@,85f)
set_var_float_to_var_float $y = $bce2_CHECKPOINTS_y(2@,85f)
sub_float_var_from_float_var $y -= $bce2_CHECKPOINTS_y(26@,85f)
5@ = get_heading_from_vector_2d $x {y} $y
set_car_heading 17@ {heading} 5@
car_goto_coordinates_racing 17@ {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f)
goto @COKEC_1991

:COKEC_1991
set_char_only_damaged_by_player 18@ {state} True
set_char_accuracy 18@ {accuracy} 95
set_char_decision_maker 18@ {handleOrTemplate} 29@
task_toggle_ped_threat_scanner 18@ {onFoot} False {inCar} False {duringScriptTask} True
give_weapon_to_char 18@ {weaponType} WeaponType.Pistol {ammo} 99999
set_char_max_health 18@ {maxHealth} 300
set_char_health 18@ {health} 300
set_car_only_damaged_by_player 17@ {state} True
set_car_cruise_speed 17@ {maxSpeed} 25.0
set_car_driving_style 17@ {drivingStyle} DrivingMode.AvoidCars
add_stuck_car_check_with_warp 17@ {distance} 2.0 {time} 2000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} 2
set_char_proofs 18@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs 17@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_drowns_in_water 18@ {state} False
set_char_can_be_knocked_off_bike 18@ {stayOnBike} True
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 346
if 
  not is_char_dead 18@
goto_if_false @COKEC_2179
19@ = add_blip_for_char 18@

:COKEC_2179
24@ = 0
TIMERB = 0
11@ = 0
10@ = 0
1@ += 1

:COKEC_2214
if 
  1@ == 3
goto_if_false @COKEC_3295
if 
  is_player_playing $player1
goto_if_false @COKEC_3295
if 
  25@ == 0
goto_if_false @COKEC_2311
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @COKEC_2304
if 
  not is_char_dead 18@
goto_if_false @COKEC_2304
25@ = 1

:COKEC_2304
goto @COKEC_2337

:COKEC_2311
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @COKEC_2337
restore_camera_jumpcut 
set_camera_behind_player 
25@ = 0

:COKEC_2337
if 
  25@ == 1
goto_if_false @COKEC_2497
if 
  not is_char_dead 18@
goto_if_false @COKEC_2497
$x, $y, $z = get_char_coordinates 18@
$x += -15.0
$y += 12.0
$z += 15.0
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_char_coordinates 18@
$x, $y, $z = get_offset_from_char_in_world_coords 18@ {xOffset} 0.0 {yOffset} 2.0 {zOffset} 0.0
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:COKEC_2497
if 
is_ps2_keyboard_key_just_pressed 70
goto_if_false @COKEC_2571
if 
  not is_char_dead 18@
goto_if_false @COKEC_2571
if 
  not is_car_dead 17@
goto_if_false @COKEC_2571
if 
  is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_2571
task_leave_car_immediately 18@ {vehicle} 17@

:COKEC_2571
if 
is_ps2_keyboard_key_just_pressed 74
goto_if_false @COKEC_2671
if 
  not is_char_dead 18@
goto_if_false @COKEC_2671
$x, $y, $z = get_offset_from_char_in_world_coords 18@ {xOffset} 0.0 {yOffset} -20.0 {zOffset} 0.0
$z += 10.0
if 
  is_player_playing $player1
goto_if_false @COKEC_2671
set_char_coordinates $scplayer {x} $x {y} $y {z} $z

:COKEC_2671
if 
  15@ == 0
goto_if_false @COKEC_2891
if 
  24@ == 0
goto_if_false @COKEC_2884
if 
  is_player_playing $player1
goto_if_false @COKEC_2884
if 
  not is_char_dead 18@
goto_if_false @COKEC_2884
if 
  locate_char_any_means_char_3d $scplayer {target} 18@ {xRadius} 80.0 {yRadius} 80.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @COKEC_2856
set_char_can_be_knocked_off_bike 18@ {stayOnBike} False
set_char_proofs 18@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
if 
  not is_car_dead 17@
goto_if_false @COKEC_2828
set_car_proofs 17@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:COKEC_2828
set_char_drowns_in_water 18@ {state} True
set_char_can_be_knocked_off_bike 18@ {stayOnBike} False
24@ = 1
goto @COKEC_2884

:COKEC_2856
if 
  11@ > 600000
goto_if_false @COKEC_2884
goto @COKEC_5527

:COKEC_2884
goto @COKEC_2891

:COKEC_2891
if 
  is_player_playing $player1
goto_if_false @COKEC_3042
if 
  24@ == 1
goto_if_false @COKEC_3042
if 
  not is_char_dead 18@
goto_if_false @COKEC_3042
if 
  is_player_playing $player1
goto_if_false @COKEC_3000
if or
  locate_char_any_means_char_2d $scplayer {target} 18@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
  is_char_on_screen 18@
goto_if_false @COKEC_3000
10@ = 0

:COKEC_3000
if 
  10@ > 20000
goto_if_false @COKEC_3042
print 'BCR3_02' {time} 4000 {flag} 1
goto @COKEC_5527

:COKEC_3042
if 
  23@ == -1
goto_if_false @COKEC_3221
if 
  not is_char_dead 18@
goto_if_false @COKEC_3214
if 
  is_player_playing $player1
goto_if_false @COKEC_3214
if 
  has_char_been_damaged_by_char 18@ {handle} $scplayer
goto_if_false @COKEC_3214
if 
  does_object_exist 22@
goto_if_false @COKEC_3184
20@ = create_fx_system_on_object_with_direction "COKE_TRAIL" {object} 22@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} -0.1 {xDirection} 0.0 {yDirection} 0.0 {zDirection} -1.0 {ignoreBoundingChecks} True
play_fx_system 20@

:COKEC_3184
print 'BCR3_04' {time} 5000 {flag} 1
23@ = 1
TIMERA = 0

:COKEC_3214
goto @COKEC_3272

:COKEC_3221
if 
  TIMERA > 180000
goto_if_false @COKEC_3272
if 
  23@ > 0
goto_if_false @COKEC_3272
stop_fx_system 20@
23@ = 0

:COKEC_3272
if 
  is_char_dead 18@
goto_if_false @COKEC_3295
1@ += 1

:COKEC_3295
if 
  1@ == 4
goto_if_false @COKEC_3554
if 
  is_player_playing $player1
goto_if_false @COKEC_3554
if 
  is_char_dead 18@
goto_if_false @COKEC_3554
stop_fx_system 20@
cset_lvar_float_to_lvar_int 5@ =# TIMERA
if 
  5@ > 180000.0
goto_if_false @COKEC_3389
5@ = 180000.0

:COKEC_3389
5@ /= 180000.0
5@ -= 1.0
5@ *= -1.0
5@ *= 2000.0
cset_lvar_int_to_lvar_float 23@ =# 5@
remove_blip 19@
if 
  does_object_exist 22@
goto_if_false @COKEC_3463
delete_object 22@

:COKEC_3463
$x, $y, $z = get_dead_char_pickup_coords 18@
21@ = create_pickup #PARA_PACK {pickupType} PickupType.Once {x} $x {y} $y {z} $z
19@ = add_blip_for_coord $x {y} $y {z} $z
change_blip_colour 19@ {color} BlipColor.Green
print_now 'BCR3_05' {time} 4000 {flag} 1
$checked_coke_pickup_z = 0
TIMERA = 0
1@ += 1

:COKEC_3554
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @COKEC_3590
if 
  not is_char_dead 18@
goto_if_false @COKEC_3590
task_die 18@

:COKEC_3590
if 
  $checked_coke_pickup_z == 0
goto_if_false @COKEC_3777
if 
  not has_pickup_been_collected 21@
goto_if_false @COKEC_3777
$x, $y, $z = get_pickup_coordinates 21@
if 
  is_player_playing $player1
goto_if_false @COKEC_3777
if 
  locate_char_any_means_2d $scplayer {x} $x {y} $y {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @COKEC_3777
5@ = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_var_float_to_lvar_float $z = 5@
$z += 1.0
remove_pickup 21@
remove_blip 19@
21@ = create_pickup #PARA_PACK {pickupType} PickupType.Once {x} $x {y} $y {z} $z
19@ = add_blip_for_coord $x {y} $y {z} $z
change_blip_colour 19@ {color} BlipColor.Green
$checked_coke_pickup_z = 1

:COKEC_3777
if 
  1@ == 5
goto_if_false @COKEC_4019
if 
  is_player_playing $player1
goto_if_false @COKEC_4019
$x, $y, $z = get_pickup_coordinates 21@
if 
  locate_char_any_means_2d $scplayer {x} $x {y} $y {xRadius} 300.0 {yRadius} 300.0 {drawSphere} False
goto_if_false @COKEC_4010
if 
  180000 > TIMERA
goto_if_false @COKEC_3994
if 
  21@ <> 0
goto_if_false @COKEC_3978
if 
  has_pickup_been_collected 21@
goto_if_false @COKEC_3971
if 
  23@ > 0
goto_if_false @COKEC_3948
clear_prints 
13@ = 1
goto @COKEC_3964

:COKEC_3948
print_now 'BCR3_06' {time} 7500 {flag} 1

:COKEC_3964
goto @COKEC_5527

:COKEC_3971
goto @COKEC_3987

:COKEC_3978
clear_prints 
goto @COKEC_5527

:COKEC_3987
goto @COKEC_4003

:COKEC_3994
clear_prints 
goto @COKEC_5527

:COKEC_4003
goto @COKEC_4019

:COKEC_4010
clear_prints 
goto @COKEC_5527

:COKEC_4019
if 
  24@ <> 0
goto_if_false @COKEC_4226
if 
  15@ == 0
goto_if_false @COKEC_4226
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_4219
if 
  not is_car_dead 17@
goto_if_false @COKEC_4219
if 
  is_player_playing $player1
goto_if_false @COKEC_4219
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 17@ {xRadius} 50.0 {yRadius} 50.0 {zRadius} 50.0 {drawSphere} False
goto_if_false @COKEC_4209
if 
  locate_char_any_means_car_3d $scplayer {vehicle} 17@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @COKEC_4192
set_car_cruise_speed 17@ {maxSpeed} 45.0
goto @COKEC_4202

:COKEC_4192
set_car_cruise_speed 17@ {maxSpeed} 30.0

:COKEC_4202
goto @COKEC_4219

:COKEC_4209
set_car_cruise_speed 17@ {maxSpeed} 20.0

:COKEC_4219
goto @COKEC_4226

:COKEC_4226
if 
  15@ == 0
goto_if_false @COKEC_4613
if 
  not is_char_dead 18@
goto_if_false @COKEC_4613
if 
  26@ <> -1
goto_if_false @COKEC_4613
if 
  not is_car_dead 17@
goto_if_false @COKEC_4613
if 
  is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_4613
if 
  locate_char_in_car_3d 18@ {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f) {xRadius} 25.0 {yRadius} 25.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @COKEC_4468
26@ += 1
if 
  85 > 26@
goto_if_false @COKEC_4439
task_car_drive_to_coord 18@ {vehicle} 17@ {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f) {speed} 25.0 {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.AvoidCars
goto @COKEC_4461

:COKEC_4439
task_car_drive_wander 18@ {vehicle} 17@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
26@ = -1

:COKEC_4461
goto @COKEC_4613

:COKEC_4468
if 
  85 > 26@
goto_if_false @COKEC_4562
2@ = get_script_task_status 18@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_4555
task_car_drive_to_coord 18@ {vehicle} 17@ {x} $bce2_CHECKPOINTS_x(26@,85f) {y} $bce2_CHECKPOINTS_y(26@,85f) {z} $bce2_CHECKPOINTS_z(26@,85f) {speed} 25.0 {driveStyle} DriveMode.Racing {modelId} 1 {drivingStyle} DrivingMode.AvoidCars

:COKEC_4555
goto @COKEC_4613

:COKEC_4562
2@ = get_script_task_status 18@ {taskId} 1490
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_4613
task_car_drive_wander 18@ {vehicle} 17@ {speed} 25.0 {drivingMode} DrivingMode.AvoidCars
26@ = -1

:COKEC_4613
if 
  not is_char_dead 18@
goto_if_false @COKEC_4728
if 
  not does_object_exist 22@
goto_if_false @COKEC_4668
22@ = create_object #PARA_PACK {x} 0.0 {y} 0.0 {z} 0.0

:COKEC_4668
if 
  not is_char_holding_object 18@ {handle} 22@
goto_if_false @COKEC_4728
task_pick_up_object 18@ {object} 22@ {xOffset} -0.11 {yOffset} -0.05 {zOffset} 0.0 {bone} PedBoneId.Torso {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0

:COKEC_4728
if 
  27@ <> 0
goto_if_false @COKEC_4824
if 
  28@ == 0
goto_if_false @COKEC_4817
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_4787
freeze_car_position 17@ {state} True

:COKEC_4787
if 
  does_char_exist 18@
goto_if_false @COKEC_4810
freeze_char_position 18@ {state} True

:COKEC_4810
28@ = 1

:COKEC_4817
goto @COKEC_4895

:COKEC_4824
if 
  28@ == 1
goto_if_false @COKEC_4895
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_4865
freeze_car_position 17@ {state} False

:COKEC_4865
if 
  does_char_exist 18@
goto_if_false @COKEC_4888
freeze_char_position 18@ {state} False

:COKEC_4888
28@ = 0

:COKEC_4895
if 
  does_vehicle_exist 17@
goto_if_false @COKEC_5520
if 
  not is_char_dead 18@
goto_if_false @COKEC_5520
if 
  24@ == 1
goto_if_false @COKEC_5477
if 
  not is_car_dead 17@
goto_if_false @COKEC_5395
if 
  not is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_5388
if 
  is_player_playing $player1
goto_if_false @COKEC_5388
if 
  not locate_char_on_foot_char_3d $scplayer {target} 18@ {xRadius} 20.0 {yRadius} 20.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @COKEC_5239
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5121
clear_char_tasks 18@
8@ = open_sequence_task 
task_goto_car -1 {vehicle} 17@ {time} 10000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 17@ {time} 10000
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@
goto @COKEC_5232

:COKEC_5121
2@ = get_script_task_status 18@ {taskId} 1506
if 
  not is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5232
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5232
clear_char_tasks 18@
8@ = open_sequence_task 
task_goto_car -1 {vehicle} 17@ {time} 10000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 17@ {time} 10000
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@

:COKEC_5232
goto @COKEC_5388

:COKEC_5239
if 
  23@ == 1
goto_if_false @COKEC_5306
2@ = get_script_task_status 18@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5299
clear_char_tasks 18@
task_kill_char_on_foot 18@ {target} $scplayer

:COKEC_5299
goto @COKEC_5388

:COKEC_5306
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5388
clear_char_tasks 18@
8@ = open_sequence_task 
task_goto_car -1 {vehicle} 17@ {time} 10000 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 17@ {time} 10000
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@

:COKEC_5388
goto @COKEC_5470

:COKEC_5395
2@ = get_script_task_status 18@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COKEC_5470
8@ = open_sequence_task 
if 
  is_player_playing $player1
goto_if_false @COKEC_5452
task_kill_char_on_foot -1 {target} $scplayer

:COKEC_5452
close_sequence_task 8@
perform_sequence_task 18@ {sequence} 8@
clear_sequence_task 8@

:COKEC_5470
goto @COKEC_5520

:COKEC_5477
if 
  not is_car_dead 17@
goto_if_false @COKEC_5520
if 
  not is_char_in_car 18@ {vehicle} 17@
goto_if_false @COKEC_5520
warp_char_into_car 18@ {vehicle} 17@

:COKEC_5520
goto @COKEC_403

:COKEC_5527
if 
  14@ == 1
goto_if_false @COKEC_5844
if 
  is_player_playing $player1
goto_if_false @COKEC_5568
task_use_mobile_phone $scplayer {start} False

:COKEC_5568
start_new_script @CLEANAU 
clear_mission_audio MissionAudioSlot.Slot1
clear_mission_audio MissionAudioSlot.Slot2
wait 1
clear_help 
if 
  13@ == 0
goto_if_false @COKEC_5615
23@ = 0

:COKEC_5615
if 
  16@ == 0
goto_if_false @COKEC_5681
if 
  not is_message_being_displayed 
goto_if_false @COKEC_5662
print_now 'BCR3_08' {time} 7500 {flag} 1

:COKEC_5662
print_with_number_big 'BCE2_04' {num} 23@ {duration} 7500 {style} TextStyle.MiddleSmallerHigher

:COKEC_5681
if 
  13@ == 1
goto_if_false @COKEC_5759
if 
  is_player_playing $player1
goto_if_false @COKEC_5723
add_score $player1 {money} 23@

:COKEC_5723
if 
  $bcesar3_passed_mission == 0
goto_if_false @COKEC_5750
register_oddjob_mission_passed 
$bcesar3_passed_mission += 1

:COKEC_5750
play_mission_passed_tune 1
clear_wanted_level $player1

:COKEC_5759
mark_char_as_no_longer_needed 18@
mark_car_as_no_longer_needed 17@
mark_object_as_no_longer_needed 22@
remove_blip 19@
kill_fx_system 20@
remove_pickup 21@
remove_decision_maker 29@
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 468
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 330
remove_car_recording 556
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
mark_model_as_no_longer_needed 330
14@ = 0

:COKEC_5844
$flag_on_courier_mission = 0
terminate_this_script 
set_var_int_to_var_int $start_line_point = $bce_point_to_edit
$start_line_point -= 2
set_var_int_to_var_int $end_line_point = $bce_point_to_edit
$end_line_point += 2
if 
  0 > $start_line_point
goto_if_false @COKEC_5908
$start_line_point = 0

:COKEC_5908
if 
  $end_line_point > 84
goto_if_false @COKEC_5933
$end_line_point = 84

:COKEC_5933
set_lvar_int_to_var_int 2@ = $start_line_point

:COKEC_5941
if 
  is_int_var_greater_than_int_lvar $end_line_point > 2@
goto_if_false @COKEC_6051
set_lvar_int_to_lvar_int 3@ = 2@
3@ += 1
if 
  85 > 3@
goto_if_false @COKEC_6037
line $bce2_CHECKPOINTS_x(2@,85f) {f2} $bce2_CHECKPOINTS_y(2@,85f) {f3} $bce2_CHECKPOINTS_z(2@,85f) {f4} $bce2_CHECKPOINTS_x(3@,85f) {f5} $bce2_CHECKPOINTS_y(3@,85f) {f6} $bce2_CHECKPOINTS_z(3@,85f)

:COKEC_6037
2@ += 1
goto @COKEC_5941

:COKEC_6051
if 
is_ps2_keyboard_key_just_pressed 124
goto_if_false @COKEC_6122
$bce_point_to_edit += 1
if 
  $bce_point_to_edit > 84
goto_if_false @COKEC_6098
$bce_point_to_edit = 0

:COKEC_6098
write_debug_with_int "BCE_POINT_TO_EDIT" {number} $bce_point_to_edit

:COKEC_6122
if 
is_ps2_keyboard_key_just_pressed 127
goto_if_false @COKEC_6193
$bce_point_to_edit -= 1
if 
  0 > $bce_point_to_edit
goto_if_false @COKEC_6169
$bce_point_to_edit = 84

:COKEC_6169
write_debug_with_int "BCE_POINT_TO_EDIT" {number} $bce_point_to_edit

:COKEC_6193
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @COKEC_6223
$bce2_CHECKPOINTS_y($bce_point_to_edit,85f) += 0.5

:COKEC_6223
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @COKEC_6253
$bce2_CHECKPOINTS_y($bce_point_to_edit,85f) += -0.5

:COKEC_6253
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @COKEC_6283
$bce2_CHECKPOINTS_x($bce_point_to_edit,85f) += 0.5

:COKEC_6283
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @COKEC_6313
$bce2_CHECKPOINTS_x($bce_point_to_edit,85f) += -0.5

:COKEC_6313
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @COKEC_6343
$bce2_CHECKPOINTS_z($bce_point_to_edit,85f) += 0.5

:COKEC_6343
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @COKEC_6373
$bce2_CHECKPOINTS_z($bce_point_to_edit,85f) += -0.5

:COKEC_6373
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @COKEC_6402
$bce2_CHECKPOINTS_y($bce_point_to_edit,85f) += 10.0

:COKEC_6402
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @COKEC_6431
$bce2_CHECKPOINTS_y($bce_point_to_edit,85f) += -10.0

:COKEC_6431
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @COKEC_6460
$bce2_CHECKPOINTS_x($bce_point_to_edit,85f) += 10.0

:COKEC_6460
if 
is_ps2_keyboard_key_just_pressed 65
goto_if_false @COKEC_6489
$bce2_CHECKPOINTS_x($bce_point_to_edit,85f) += -10.0

:COKEC_6489
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @COKEC_7511
save_newline_to_debug_file 
save_string_to_debug_file "COKE COURIER ROUTE - EDIT POINT -"
save_int_to_debug_file $bce_point_to_edit
save_newline_to_debug_file 
2@ = 0

:COKEC_6651
if 
  85 > 2@
goto_if_false @COKEC_7511
save_string_to_debug_file "BCE2_CHECKPOINTS_X["
save_int_to_debug_file 2@
save_string_to_debug_file "] = "
save_float_to_debug_file $bce2_CHECKPOINTS_x(2@,85f)
save_newline_to_debug_file 
save_string_to_debug_file "BCE2_CHECKPOINTS_Y["
save_int_to_debug_file 2@
save_string_to_debug_file "] = "
save_float_to_debug_file $bce2_CHECKPOINTS_y(2@,85f)
save_newline_to_debug_file 
save_string_to_debug_file "BCE2_CHECKPOINTS_Z["
save_int_to_debug_file 2@
save_string_to_debug_file "] = "
save_float_to_debug_file $bce2_CHECKPOINTS_z(2@,85f)
save_newline_to_debug_file 
2@ += 1
goto @COKEC_6651

:COKEC_7511
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @COKEC_7614
set_lvar_int_to_var_int 2@ = $bce_point_to_edit
2@ -= 1
if 
  0 > 2@
goto_if_false @COKEC_7566
2@ = 0

:COKEC_7566
set_var_float_to_var_float $bce2_CHECKPOINTS_x($bce_point_to_edit,85f) = $bce2_CHECKPOINTS_x(2@,85f)
set_var_float_to_var_float $bce2_CHECKPOINTS_y($bce_point_to_edit,85f) = $bce2_CHECKPOINTS_y(2@,85f)
set_var_float_to_var_float $bce2_CHECKPOINTS_z($bce_point_to_edit,85f) = $bce2_CHECKPOINTS_z(2@,85f)

:COKEC_7614
if 
  is_player_playing $player1
goto_if_false @COKEC_7716
  locate_char_any_means_3d $scplayer {x} $bce2_CHECKPOINTS_x($bce_point_to_edit,85f) {y} $bce2_CHECKPOINTS_y($bce_point_to_edit,85f) {z} $bce2_CHECKPOINTS_z($bce_point_to_edit,85f) {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} False
  locate_char_any_means_3d $scplayer {x} $bce2_CHECKPOINTS_x($bce_point_to_edit,85f) {y} $bce2_CHECKPOINTS_y($bce_point_to_edit,85f) {z} $bce2_CHECKPOINTS_z($bce_point_to_edit,85f) {xRadius} 0.5 {yRadius} 0.5 {zRadius} 0.5 {drawSphere} False

:COKEC_7716
return 
terminate_this_script 

//-------------External script 4 (SLOT_MACHINE)---------------

:BANDIT
script_name 'BANDIT'
4@ = 0
6@ = 0
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0
14@ = generate_random_int_in_range 0 {max} 5
if 
  14@ == 1
goto_if_false @BANDIT_96
14@ = 5

:BANDIT_96
if 
  14@ == 0
goto_if_false @BANDIT_121
14@ = 1

:BANDIT_121
if 
  14@ == 2
goto_if_false @BANDIT_146
14@ = 10

:BANDIT_146
if 
  14@ == 3
goto_if_false @BANDIT_171
14@ = 20

:BANDIT_171
if 
  14@ == 4
goto_if_false @BANDIT_196
14@ = 50

:BANDIT_196
if 
  4@ == 1
goto_if_false @BANDIT_253
0@ = create_object_no_offset #KB_BANDIT_U {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object_no_offset #CJ_WHEEL_1 {x} $x {y} $y {z} $z

:BANDIT_253
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @BANDIT_2859
if 
  is_object_within_brain_activation_range 0@
goto_if_false @BANDIT_2845
if 
  is_player_playing $player1
goto_if_false @BANDIT_2831
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BANDIT_2824 {caseNum1} 0 {caseLabel1} @BANDIT_373 {caseNum2} 1 {caseLabel2} @BANDIT_590 {caseNum3} 2 {caseLabel3} @BANDIT_792 {caseNum4} 3 {caseLabel4} @BANDIT_1356 {caseNum5} 4 {caseLabel5} @BANDIT_1595 {caseNum6} 5 {caseLabel6} @BANDIT_1943 {caseNum7} 6 {caseLabel7} @BANDIT_2549

:BANDIT_373
15@ = get_object_model 0@
if 
  has_model_loaded 15@
goto_if_false @BANDIT_583
$heading = get_object_heading 0@
if 
  not does_object_exist 1@
goto_if_false @BANDIT_462
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1
1@ = create_object_no_offset #CJ_WHEEL_1 {x} $x {y} $y {z} $z
set_object_heading 1@ {heading} $heading

:BANDIT_462
if 
  not does_object_exist 2@
goto_if_false @BANDIT_519
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 2
2@ = create_object_no_offset #CJ_WHEEL_02 {x} $x {y} $y {z} $z
set_object_heading 2@ {heading} $heading

:BANDIT_519
if 
  not does_object_exist 3@
goto_if_false @BANDIT_576
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 3
3@ = create_object_no_offset #CJ_WHEEL_03 {x} $x {y} $y {z} $z
set_object_heading 3@ {heading} $heading

:BANDIT_576
4@ += 1

:BANDIT_583
goto @BANDIT_2824

:BANDIT_590
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} -0.5
16@ = get_user_of_closest_map_attractor $x {y} $y {z} $z {radius} 1.5 {modelId} #KB_BANDIT_U {attractorName} "PEDSLOT"
if 
  16@ == -1
goto_if_false @BANDIT_785
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @BANDIT_758
print_help_forever_with_number 'SLOT_02' {number} 14@
set_player_enter_car_button $player1 {enabled} False
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
gosub @BANDIT_2873
4@ += 1
goto @BANDIT_785

:BANDIT_758
if 
  13@ == 1
goto_if_false @BANDIT_785
remove_texture_dictionary 
13@ = 0

:BANDIT_785
goto @BANDIT_2824

:BANDIT_792
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} -0.5
16@ = get_user_of_closest_map_attractor $x {y} $y {z} $z {radius} 1.5 {modelId} #KB_BANDIT_U {attractorName} "PEDSLOT"
if 
  16@ == -1
goto_if_false @BANDIT_1306
request_animation "CASINO"
if 
  has_animation_loaded "CASINO"
goto_if_false @BANDIT_1299
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @BANDIT_1256
17@ = get_random_char_in_area_offset_no_save $x {y} $y {z} $z {radiusX} 0.6 {radiusY} 0.6 {radiusZ} 1.0
if 
  17@ == -1
goto_if_false @BANDIT_1249
if 
  not is_minigame_in_progress 
goto_if_false @BANDIT_1249
gosub @BANDIT_2873
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BANDIT_1249
set_var_int_to_lvar_int $temp_integer_1 = 14@
$temp_integer_1 -= 1
if 
  is_score_greater $player1 {money} $temp_integer_1
goto_if_false @BANDIT_1229
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
$heading = get_object_heading 0@
task_char_slide_to_coord_and_play_anim $scplayer {x} $x {y} $y {z} $z {heading} $heading {radius} 0.4 {animationName} "SLOT_PLYR" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
set_var_int_to_lvar_int $temp_integer_1 = 14@
$temp_integer_1 *= -1
add_score $player1 {money} $temp_integer_1
increment_int_stat StatId.MoneySpentGambling {value} 14@
cset_var_float_to_lvar_int $temp_float_1 =# 14@
$temp_float_1 *= 0.001
increment_float_stat StatId.Gambling {value} $temp_float_1
clear_help 
set_minigame_in_progress True
set_lvar_int_to_var_int 5@ = $game_timer
5@ += 750
4@ += 1
goto @BANDIT_1249

:BANDIT_1229
add_one_off_sound 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied

:BANDIT_1249
goto @BANDIT_1299

:BANDIT_1256
if 
  13@ == 1
goto_if_false @BANDIT_1283
remove_texture_dictionary 
13@ = 0

:BANDIT_1283
clear_help 
set_player_enter_car_button $player1 {enabled} True
4@ = 1

:BANDIT_1299
goto @BANDIT_1349

:BANDIT_1306
if 
  13@ == 1
goto_if_false @BANDIT_1333
remove_texture_dictionary 
13@ = 0

:BANDIT_1333
clear_help 
set_player_enter_car_button $player1 {enabled} True
4@ = 1

:BANDIT_1349
goto @BANDIT_2824

:BANDIT_1356
gosub @BANDIT_2873
if 
  is_int_var_greater_than_int_lvar $game_timer > 5@
goto_if_false @BANDIT_1588
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_1424
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditInsertCoin

:BANDIT_1424
set_player_enter_car_button $player1 {enabled} True
use_text_commands True
if 
  13@ == 0
goto_if_false @BANDIT_1539
load_texture_dictionary 'LD_SLOT'
load_sprite 1 {spriteName} "CHERRY"
load_sprite 2 {spriteName} "GRAPES"
load_sprite 3 {spriteName} "R_69"
load_sprite 4 {spriteName} "BELL"
load_sprite 5 {spriteName} "BAR1_O"
load_sprite 6 {spriteName} "BAR2_O"
13@ = 1

:BANDIT_1539
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_1581
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStart

:BANDIT_1581
4@ += 1

:BANDIT_1588
goto @BANDIT_2824

:BANDIT_1595
add_timed_val_to_float_lvar 10@ +=@ 1.0
if 
  10@ > 10.0
goto_if_false @BANDIT_1682
10@ = 10.0
$temp_integer_1 = generate_random_int_in_range 2000 {max} 3000
6@ = 0
set_lvar_int_to_var_int 5@ = $game_timer
add_int_var_to_int_lvar 5@ += $temp_integer_1
clear_char_tasks $scplayer
4@ += 1

:BANDIT_1682
add_timed_val_to_float_lvar 11@ +=@ 1.1
if 
  11@ > 10.0
goto_if_false @BANDIT_1723
11@ = 10.0

:BANDIT_1723
add_timed_val_to_float_lvar 12@ +=@ 1.05
if 
  12@ > 10.0
goto_if_false @BANDIT_1764
12@ = 10.0

:BANDIT_1764
$heading = get_object_heading 0@
$an = 0

:BANDIT_1779
if 
  3 > $an
goto_if_false @BANDIT_1929
if 
  10@($an,3f) > 0.0
goto_if_false @BANDIT_1915
add_timed_float_lvar_to_float_lvar 7@($an,3f) +=@ 10@($an,3f)
if or
  7@($an,3f) > 360.0
  7@($an,3f) == 360.0
goto_if_false @BANDIT_1891
7@($an,3f) -= 360.0

:BANDIT_1891
set_object_rotation 1@($an,3i) {x} 7@($an,3f) {y} 0.0 {z} $heading

:BANDIT_1915
$an += 1
goto @BANDIT_1779

:BANDIT_1929
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_1943
if 
  is_int_var_greater_than_int_lvar $game_timer > 5@
goto_if_false @BANDIT_2370
sub_timed_val_from_float_lvar 10@(6@,3f) -=@ 0.3
if 
  0.6 > 10@(6@,3f)
goto_if_false @BANDIT_2370
set_var_float_to_lvar_float $temp_float_1 = 7@(6@,3f)
$temp_float_1 /= 20.0
cset_var_int_to_var_float $temp_integer_1 =# $temp_float_1
$temp_integer_1 *= 20
cset_var_float_to_var_int $temp_float_1 =# $temp_integer_1
set_var_float_to_lvar_float $temp_float_2 = 7@(6@,3f)
sub_float_var_from_float_var $temp_float_2 -= $temp_float_1
if 
  10.0 > $temp_float_2
goto_if_false @BANDIT_2356
10@(6@,3f) = 0.0
set_var_float_to_lvar_float $temp_float_1 = 7@(6@,3f)
$temp_float_1 /= 20.0
cset_var_int_to_var_float $temp_integer_1 =# $temp_float_1
cset_lvar_float_to_var_int 7@(6@,3f) =# $temp_integer_1
7@(6@,3f) *= 20.0
$temp_integer_1 = generate_random_int_in_range 750 {max} 1000
set_lvar_int_to_var_int 5@ = $game_timer
add_int_var_to_int_lvar 5@ += $temp_integer_1
if 
  2 > 6@
goto_if_false @BANDIT_2300
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2244
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStop

:BANDIT_2244
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2286
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStart

:BANDIT_2286
6@ += 1
goto @BANDIT_2349

:BANDIT_2300
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2342
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditWheelStop

:BANDIT_2342
4@ += 1

:BANDIT_2349
goto @BANDIT_2370

:BANDIT_2356
10@(6@,3f) = 0.6

:BANDIT_2370
$heading = get_object_heading 0@
$an = 0

:BANDIT_2385
if 
  3 > $an
goto_if_false @BANDIT_2535
if 
  10@($an,3f) > 0.0
goto_if_false @BANDIT_2521
add_timed_float_lvar_to_float_lvar 7@($an,3f) +=@ 10@($an,3f)
if or
  7@($an,3f) > 360.0
  7@($an,3f) == 360.0
goto_if_false @BANDIT_2497
7@($an,3f) -= 360.0

:BANDIT_2497
set_object_rotation 1@($an,3i) {x} 7@($an,3f) {y} 0.0 {z} $heading

:BANDIT_2521
$an += 1
goto @BANDIT_2385

:BANDIT_2535
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_2549
set_var_float_to_lvar_float $temp_float_1 = 7@
$temp_float_1 /= 20.0
cset_var_int_to_var_float $temp_integer_1 =# $temp_float_1
set_var_float_to_lvar_float $temp_float_1 = 8@
$temp_float_1 /= 20.0
cset_var_int_to_var_float $temp_integer_2 =# $temp_float_1
set_var_float_to_lvar_float $temp_float_1 = 9@
$temp_float_1 /= 20.0
cset_var_int_to_var_float $temp_integer_3 =# $temp_float_1
if and
  is_int_var_equal_to_int_var $reel1_winnings($temp_integer_1,18i) == $reel2_winnings($temp_integer_2,18i)
  is_int_var_equal_to_int_var $reel1_winnings($temp_integer_1,18i) == $reel3_winnings($temp_integer_3,18i)
goto_if_false @BANDIT_2772
set_var_int_to_lvar_int $temp_integer_4 = 14@
mult_int_var_by_int_var $temp_integer_4 *= $reel1_winnings($temp_integer_1,18i)
start_new_script @CASHWIN $temp_integer_4 
add_score $player1 {money} $temp_integer_4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1814
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BANDIT_2751
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundBanditPayout

:BANDIT_2751
increment_int_stat StatId.MoneyWonGambling {value} $temp_integer_4
register_int_stat StatId.BiggestGamblingWin {value} $temp_integer_4
goto @BANDIT_2792

:BANDIT_2772
start_new_script @CASHWIN 0 2500 
register_int_stat StatId.BiggestGamblingLoss {value} 14@

:BANDIT_2792
set_player_control $player1 {state} True
set_minigame_in_progress False
4@ = 1
gosub @BANDIT_2873
goto @BANDIT_2824

:BANDIT_2824
goto @BANDIT_2838

:BANDIT_2831
goto @BANDIT_3455

:BANDIT_2838
goto @BANDIT_2852

:BANDIT_2845
goto @BANDIT_3455

:BANDIT_2852
goto @BANDIT_2866

:BANDIT_2859
goto @BANDIT_3455

:BANDIT_2866
goto @BANDIT_253

:BANDIT_2873
if 
  13@ == 1
goto_if_false @BANDIT_3453
set_sprites_draw_before_fade True
draw_window $3468 {leftTopY} $3473 {rightBottomX} $3469 {rightBottomY} $3474 {header} 'DUMMY' {zIndex} 0
$an = 0

:BANDIT_2927
if 
  3 > $an
goto_if_false @BANDIT_3453
set_var_float_to_lvar_float $temp_float_1 = 7@($an,3f)
$temp_float_1 /= 20.0
cset_var_int_to_var_float $temp_integer_1 =# $temp_float_1
if 
  $an == 0
goto_if_false @BANDIT_3013
set_var_int_to_var_int $temp_integer_2 = $reel1_winnings($temp_integer_1,18i)
set_var_float_to_var_float $x_temp = $reel_sprite_x

:BANDIT_3013
if 
  $an == 1
goto_if_false @BANDIT_3061
set_var_int_to_var_int $temp_integer_2 = $reel2_winnings($temp_integer_1,18i)
set_var_float_to_var_float $x_temp = $reel_sprite_x
$x_temp += 64.0

:BANDIT_3061
if 
  $an == 2
goto_if_false @BANDIT_3109
set_var_int_to_var_int $temp_integer_2 = $reel3_winnings($temp_integer_1,18i)
set_var_float_to_var_float $x_temp = $reel_sprite_x
$x_temp += 128.0

:BANDIT_3109
if 
  is_int_var_equal_to_int_var $temp_integer_2 == $cherry
goto_if_false @BANDIT_3164
set_sprites_draw_before_fade True
draw_sprite 1 {offsetLeft} $x_temp {offsetTop} $reel_sprite_y {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3164
if 
  is_int_var_equal_to_int_var $temp_integer_2 == $grape
goto_if_false @BANDIT_3219
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} $x_temp {offsetTop} $reel_sprite_y {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3219
if 
  is_int_var_equal_to_int_var $temp_integer_2 == $r_69
goto_if_false @BANDIT_3274
set_sprites_draw_before_fade True
draw_sprite 3 {offsetLeft} $x_temp {offsetTop} $reel_sprite_y {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3274
if 
  is_int_var_equal_to_int_var $temp_integer_2 == $bell
goto_if_false @BANDIT_3329
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} $x_temp {offsetTop} $reel_sprite_y {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3329
if 
  is_int_var_equal_to_int_var $temp_integer_2 == $bar1_o
goto_if_false @BANDIT_3384
set_sprites_draw_before_fade True
draw_sprite 5 {offsetLeft} $x_temp {offsetTop} $reel_sprite_y {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3384
if 
  is_int_var_equal_to_int_var $temp_integer_2 == $bar2_o
goto_if_false @BANDIT_3439
set_sprites_draw_before_fade True
draw_sprite 6 {offsetLeft} $x_temp {offsetTop} $reel_sprite_y {width} 64.0 {height} 64.0 {r} 200 {g} 200 {b} 200 {a} 255

:BANDIT_3439
$an += 1
goto @BANDIT_2927

:BANDIT_3453
return 

:BANDIT_3455
if 
  4@ > 0
goto_if_false @BANDIT_3550
if 
  4@ > 1
goto_if_false @BANDIT_3500
clear_help 
set_player_enter_car_button $player1 {enabled} True

:BANDIT_3500
if 
  4@ > 2
goto_if_false @BANDIT_3528
remove_animation "CASINO"

:BANDIT_3528
delete_object 1@
delete_object 2@
delete_object 3@
4@ = 0

:BANDIT_3550
if 
  13@ == 1
goto_if_false @BANDIT_3577
remove_texture_dictionary 
13@ = 0

:BANDIT_3577
terminate_this_script 
return 
terminate_this_script 

//-------------External script 5 (ROULETTE)---------------

:ROULETE
script_name 'ROULETE'
1@ = 0
if 
  1@ == 1
goto_if_false @ROULETE_90
0@ = create_object_no_offset #ROULETTE_TBL {x} 0.0 {y} 0.0 {z} 0.0
create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z {var_handle} $placed_chips($i,151i)
write_debug "AAAAAAA"

:ROULETE_90
4@ = 0
5@ = 0
8@ = 0
9@ = 0
7@ = 0
10@ = 500
11@ = 500
12@ = 0
13@ = 0
14@ = 0
15@ = 0
16@ = get_float_stat StatId.Gambling
18@ = generate_random_int_in_range 0 {max} 19
$total_roulette_tables += 1
if 
  1.0 > 16@
goto_if_false @ROULETE_252
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_245
18@ = 0

:ROULETE_245
goto @ROULETE_464

:ROULETE_252
if 
  10.0 > 16@
goto_if_false @ROULETE_312
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_305
18@ = 5

:ROULETE_305
goto @ROULETE_464

:ROULETE_312
if 
  100.0 > 16@
goto_if_false @ROULETE_372
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_365
18@ = 10

:ROULETE_365
goto @ROULETE_464

:ROULETE_372
if 
  1000.0 > 16@
goto_if_false @ROULETE_432
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_425
18@ = 14

:ROULETE_425
goto @ROULETE_464

:ROULETE_432
if or
  $total_roulette_tables == 1
  $total_roulette_tables == 5
goto_if_false @ROULETE_464
18@ = 17

:ROULETE_464
if or
  18@ == 0
  18@ == 1
  18@ == 2
  18@ == 3
  18@ == 4
goto_if_false @ROULETE_525
17@ = 2
19@ = -340

:ROULETE_525
if or
  18@ == 5
  18@ == 6
  18@ == 7
  18@ == 8
  18@ == 9
goto_if_false @ROULETE_586
17@ = 20
19@ = -341

:ROULETE_586
if or
  18@ == 10
  18@ == 11
  18@ == 12
  18@ == 13
goto_if_false @ROULETE_641
17@ = 200
19@ = -342

:ROULETE_641
if or
  18@ == 14
  18@ == 15
  18@ == 16
goto_if_false @ROULETE_689
17@ = 2000
19@ = -343

:ROULETE_689
if or
  18@ == 17
  18@ == 18
goto_if_false @ROULETE_730
17@ = 20000
19@ = -344

:ROULETE_730
18@ = 0
20@ = 0
set_lvar_int_to_lvar_int 21@ = 17@
21@ *= 50
22@ = 0
$temp_integer_1 = generate_random_int_in_range 0 {max} 2
if 
  $temp_integer_1 == 0
goto_if_false @ROULETE_807
set_lvar_int_to_constant 23@ = 11
goto @ROULETE_815

:ROULETE_807
set_lvar_int_to_constant 23@ = 172

:ROULETE_815
$i = 0

:ROULETE_822
if 
  151 > $i
goto_if_false @ROULETE_866
$spot_bets($i,151i) = 0
$i += 1
goto @ROULETE_822

:ROULETE_866
$winnings_this_round = 0
$total_stake_this_round = 0
if 
  22@ == 1
goto_if_false @ROULETE_907
22@ = 0
return 

:ROULETE_907
24@ = 0.0
25@ = 0.0

:ROULETE_927
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @ROULETE_7879
if 
  is_object_within_brain_activation_range 0@
goto_if_false @ROULETE_7735
if 
  $iTerminateAllAmbience == 0
goto_if_false @ROULETE_7591
if 
  is_player_playing $player1
goto_if_false @ROULETE_7456
if 
  1@ == 0
goto_if_false @ROULETE_1032
request_model 23@
1@ += 1

:ROULETE_1032
if 
  1@ == 1
goto_if_false @ROULETE_1167
request_model 23@
if 
  has_model_loaded 23@
goto_if_false @ROULETE_1167
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.208 {yOffset} 0.571 {zOffset} -1.144
26@ = create_char PedType.CivFemale {modelId} 23@ {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
$heading += 90.0
set_char_heading 26@ {heading} $heading
set_char_decision_maker 26@ {handleOrTemplate} $iGlobalPedPanicDM
enable_disabled_attractors_on_object 0@ {state} True
1@ += 1

:ROULETE_1167
if 
  1@ == 2
goto_if_false @ROULETE_1269
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @ROULETE_1269
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.215 {yOffset} 1.34 {zOffset} -0.086
27@ = create_object_no_offset #WHEEL_WEE {x} $x {y} $y {z} $z
1@ += 1

:ROULETE_1269
if 
  1@ == 3
goto_if_false @ROULETE_1592
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @ROULETE_1592
if 
  $iSetCasinoPanic == 0
goto_if_false @ROULETE_1592
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.839 {yOffset} -2.4444 {zOffset} -0.6
$x_temp, $y_temp, $z_temp = get_offset_from_object_in_world_coords 0@ {xOffset} 0.761 {yOffset} 0.9556 {zOffset} 0.6
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} $x {leftBottomY} $y {leftBottomZ} $z {rightTopX} $x_temp {rightTopY} $y_temp {rightTopZ} $z_temp {drawSphere} False
goto_if_false @ROULETE_1592
if 
  17@ == 2
goto_if_false @ROULETE_1459
print_help_forever 'SLOT_06'

:ROULETE_1459
if 
  17@ == 20
goto_if_false @ROULETE_1488
print_help_forever 'SLOT_07'

:ROULETE_1488
if 
  17@ == 200
goto_if_false @ROULETE_1518
print_help_forever 'SLOT_08'

:ROULETE_1518
if 
  17@ == 2000
goto_if_false @ROULETE_1548
print_help_forever 'SLOT_09'

:ROULETE_1548
if 
  17@ == 20000
goto_if_false @ROULETE_1578
print_help_forever 'SLOT_10'

:ROULETE_1578
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
1@ += 1

:ROULETE_1592
if 
  1@ == 4
goto_if_false @ROULETE_2950
if 
  $roulette_triggered == 0
goto_if_false @ROULETE_2950
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @ROULETE_2950
if 
  $iSetCasinoPanic == 0
goto_if_false @ROULETE_2941
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.839 {yOffset} -2.4444 {zOffset} -0.6
$x_temp, $y_temp, $z_temp = get_offset_from_object_in_world_coords 0@ {xOffset} 0.761 {yOffset} 0.9556 {zOffset} 0.6
if 
  is_char_in_area_on_foot_3d $scplayer {leftBottomX} $x {leftBottomY} $y {leftBottomZ} $z {rightTopX} $x_temp {rightTopY} $y_temp {rightTopZ} $z_temp {drawSphere} False
goto_if_false @ROULETE_2925
if 
  can_player_start_mission $player1
goto_if_false @ROULETE_2918
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @ROULETE_2911
if 
  9@ == 0
goto_if_false @ROULETE_2904
$gambling_stat = get_int_stat StatId.Gambling
if 
  17@ == 20
goto_if_false @ROULETE_1974
if 
  $gambling_stat < 1
goto_if_false @ROULETE_1974
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_1967
$an = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_1949
set_char_say_script 26@ {_p2} $gambling_stat_too_low_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_1967

:ROULETE_1949
set_char_say_script 26@ {_p2} $gambling_stat_too_low_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_1967
goto @ROULETE_927

:ROULETE_1974
if 
  17@ == 200
goto_if_false @ROULETE_2120
if 
  $gambling_stat < 10
goto_if_false @ROULETE_2120
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2113
$an = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2095
set_char_say_script 26@ {_p2} $gambling_stat_too_low_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2113

:ROULETE_2095
set_char_say_script 26@ {_p2} $gambling_stat_too_low_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_2113
goto @ROULETE_927

:ROULETE_2120
if 
  17@ == 2000
goto_if_false @ROULETE_2266
if 
  $gambling_stat < 100
goto_if_false @ROULETE_2266
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2259
$an = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2241
set_char_say_script 26@ {_p2} $gambling_stat_too_low_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2259

:ROULETE_2241
set_char_say_script 26@ {_p2} $gambling_stat_too_low_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_2259
goto @ROULETE_927

:ROULETE_2266
if 
  17@ == 20000
goto_if_false @ROULETE_2413
if 
  $gambling_stat <= 999
goto_if_false @ROULETE_2413
print_now 'GAMBSTA' {time} 4000 {flag} 1
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2406
$an = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2388
set_char_say_script 26@ {_p2} $gambling_stat_too_low_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2406

:ROULETE_2388
set_char_say_script 26@ {_p2} $gambling_stat_too_low_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_2406
goto @ROULETE_927

:ROULETE_2413
clear_help 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
$x, $y, $z = get_object_coordinates 0@
task_turn_char_to_face_coord $scplayer {x} $x {y} $y {z} $z
if 
  is_widescreen_on_in_options 
goto_if_false @ROULETE_2578
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.632 {yOffset} -1.9669 {zOffset} 1.9144
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.5003 {yOffset} -1.3914 {zOffset} 1.1073
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.Interpolation
goto @ROULETE_2675

:ROULETE_2578
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.5689 {yOffset} -1.5476 {zOffset} 1.8759
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.4106 {yOffset} -1.0626 {zOffset} 1.0159
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.Interpolation

:ROULETE_2675
set_near_clip 0.1
use_text_commands True
load_texture_dictionary 'LD_ROUL'
if 
  not is_char_dead 26@
goto_if_false @ROULETE_2783
$an = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_2765
set_char_say_script 26@ {_p2} $place_bets_b($an,2i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_2783

:ROULETE_2765
set_char_say_script 26@ {_p2} $place_bets_w($an,2i) {_p3} True {_p4} True {_p5} False

:ROULETE_2783
load_sprite 1 {spriteName} "ROULBLA"
load_sprite 2 {spriteName} "ROULRED"
load_sprite 3 {spriteName} "ROULGRE"
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $spot1_x {yOffset} $spot1_y {zOffset} $spot1_z
$z += 0.01
$chips_stack = create_object_no_offset #ROULETTE_MARKER {x} $x {y} $y {z} $z
set_minigame_in_progress True
$roulette_triggered = 1
28@ = 0
1@ += 1
9@ = 1

:ROULETE_2904
goto @ROULETE_2918

:ROULETE_2911
9@ = 0

:ROULETE_2918
goto @ROULETE_2934

:ROULETE_2925
clear_help 
1@ = 3

:ROULETE_2934
goto @ROULETE_2950

:ROULETE_2941
clear_help 
1@ = 3

:ROULETE_2950
if 
  1@ == 5
goto_if_false @ROULETE_7449
display_radar False
if 
  $roulette_flag > 0
goto_if_false @ROULETE_3503
$sprite_x += 2.0
$sprite_y += 2.0
draw_sprite 1 {offsetLeft} $sprite_x {offsetTop} $sprite_y {width} 64.0 {height} 64.0 {r} 0 {g} 0 {b} 0 {a} 255
$sprite_x -= 2.0
$sprite_y -= 2.0
if 
  18@ == 0
goto_if_false @ROULETE_3116
draw_sprite 3 {offsetLeft} $sprite_x {offsetTop} $sprite_y {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3116
if or
  18@ == 1
  18@ == 3
  18@ == 5
  18@ == 7
  18@ == 9
  18@ == 12
goto_if_false @ROULETE_3208
draw_sprite 2 {offsetLeft} $sprite_x {offsetTop} $sprite_y {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3208
if or
  18@ == 14
  18@ == 16
  18@ == 18
  18@ == 19
  18@ == 21
  18@ == 23
goto_if_false @ROULETE_3300
draw_sprite 2 {offsetLeft} $sprite_x {offsetTop} $sprite_y {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3300
if or
  18@ == 25
  18@ == 27
  18@ == 30
  18@ == 32
  18@ == 34
  18@ == 36
goto_if_false @ROULETE_3392
draw_sprite 2 {offsetLeft} $sprite_x {offsetTop} $sprite_y {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255
goto @ROULETE_3424

:ROULETE_3392
draw_sprite 1 {offsetLeft} $sprite_x {offsetTop} $sprite_y {width} 64.0 {height} 64.0 {r} 180 {g} 180 {b} 180 {a} 255

:ROULETE_3424
set_var_float_to_var_float $text_positionn_x = $sprite_x
$text_positionn_x += -1.6679
set_var_float_to_var_float $text_positionn_y = $sprite_y
$text_positionn_y += -30.0255
gosub @ROULETE_18193
set_text_scale 0.9423 {heightScale} 4.2306
set_text_centre True
display_text_with_number $text_positionn_x {offsetTop} $text_positionn_y {key} 'NUMBER' {num} 18@

:ROULETE_3503
draw_window $3479 {leftTopY} $3483 {rightBottomX} $3480 {rightBottomY} $3484 {header} 'ROUWAGE' {zIndex} 2
gosub @ROULETE_18193
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @ROULETE_3579
set_text_scale 0.42 {heightScale} 2.5077

:ROULETE_3579
display_text $rou_text_x {offsetTop} $rou_text_y {key} 'ROU_MAX'
set_var_float_to_var_float $text_positionn_y = $rou_text_y
add_float_var_to_float_var $text_positionn_y += $3482
gosub @ROULETE_18193
set_text_scale $3486 {heightScale} $3488
display_text_with_number $rou_text_x {offsetTop} $text_positionn_y {key} 'DOLLAR' {num} 21@
add_float_var_to_float_var $text_positionn_y += $3478
gosub @ROULETE_18193
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $rou_text_x {offsetTop} $text_positionn_y {key} 'ROUYOUR'
add_float_var_to_float_var $text_positionn_y += $3482
gosub @ROULETE_18193
set_text_scale $3486 {heightScale} $3488
display_text_with_number $rou_text_x {offsetTop} $text_positionn_y {key} 'DOLLAR' {num} $total_stake_this_round
add_float_var_to_float_var $text_positionn_y += $3478
gosub @ROULETE_18193
if 
  $roulette_flag > 0
goto_if_false @ROULETE_3850
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $rou_text_x {offsetTop} $text_positionn_y {key} 'ROU_WON'
add_float_var_to_float_var $text_positionn_y += $3482
gosub @ROULETE_18193
set_text_scale $3486 {heightScale} $3488
display_text_with_number $rou_text_x {offsetTop} $text_positionn_y {key} 'DOLLAR' {num} $winnings_this_round
goto @ROULETE_3924

:ROULETE_3850
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $rou_text_x {offsetTop} $text_positionn_y {key} 'ROUTHIS'
add_float_var_to_float_var $text_positionn_y += $3482
gosub @ROULETE_18193
set_text_scale $3486 {heightScale} $3488
display_text_with_number $rou_text_x {offsetTop} $text_positionn_y {key} 'DOLLAR' {num} 20@

:ROULETE_3924
if 
  $roulette_flag == 0
goto_if_false @ROULETE_4536
print_help_forever 'ROUHELP'
set_object_visible $chips_stack {state} True
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ROULETE_4238
if 
  7@ == 0
goto_if_false @ROULETE_4231
if 
  $total_stake_this_round > 0
goto_if_false @ROULETE_4189
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  not is_char_dead 26@
goto_if_false @ROULETE_4106
$an = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4088
set_char_say_script 26@ {_p2} $no_more_bets_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_4106

:ROULETE_4088
set_char_say_script 26@ {_p2} $no_more_bets_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_4106
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_4141
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteSpin

:ROULETE_4141
increment_int_stat StatId.MoneySpentGambling {value} $total_stake_this_round
cset_var_float_to_var_int $temp_float_1 =# $total_stake_this_round
$temp_float_1 *= 0.001
clear_help 
increment_float_stat StatId.Gambling {value} $temp_float_1
$roulette_flag += 1
goto @ROULETE_4224

:ROULETE_4189
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_4224
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteNoCash

:ROULETE_4224
7@ += 1

:ROULETE_4231
goto @ROULETE_4245

:ROULETE_4238
7@ = 0

:ROULETE_4245
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @ROULETE_4522
if 
  9@ == 0
goto_if_false @ROULETE_4515
9@ += 1
$roulette_flag = 0
1@ = 3
if 
  not is_char_dead 26@
goto_if_false @ROULETE_4387
$an = generate_random_int_in_range 0 {max} 2
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4369
set_char_say_script 26@ {_p2} $player_leaves_b($an,2i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_4387

:ROULETE_4369
set_char_say_script 26@ {_p2} $player_leaves_w($an,2i) {_p3} True {_p4} True {_p5} False

:ROULETE_4387
display_radar True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
use_text_commands False
remove_texture_dictionary 
clear_help 
delete_object $chips_stack
add_score $player1 {money} $total_stake_this_round
22@ = 1
gosub @ROULETE_815
$i = 0

:ROULETE_4455
if 
  151 > $i
goto_if_false @ROULETE_4497
delete_object $placed_chips($i,151i)
$i += 1
goto @ROULETE_4455

:ROULETE_4497
set_minigame_in_progress False
$roulette_triggered = 0
goto @ROULETE_927

:ROULETE_4515
goto @ROULETE_4529

:ROULETE_4522
9@ = 0

:ROULETE_4529
gosub @ROULETE_8023

:ROULETE_4536
if 
  $roulette_flag == 1
goto_if_false @ROULETE_4625
set_object_visible $chips_stack {state} False
add_timed_val_to_float_lvar 24@ +=@ 0.5
if or
  24@ > 20.0
  24@ == 20.0
goto_if_false @ROULETE_4625
set_var_int_to_var_int $wheel_rotation_timer = $game_timer
$wheel_rotation_timer += 1500
$roulette_flag += 1

:ROULETE_4625
if 
  $roulette_flag == 2
goto_if_false @ROULETE_4803
if 
  is_int_var_greater_than_int_var $game_timer > $wheel_rotation_timer
goto_if_false @ROULETE_4803
sub_timed_val_from_float_lvar 24@ -=@ 0.08
if or
  0.0 > 24@
  24@ == 0.0
goto_if_false @ROULETE_4803
18@ = generate_random_int_in_range 0 {max} 37
if 
  not is_char_dead 26@
goto_if_false @ROULETE_4789
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_4771
set_char_say_script 26@ {_p2} $roulette_result_b(18@,37i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_4789

:ROULETE_4771
set_char_say_script 26@ {_p2} $roulette_result_w(18@,37i) {_p3} True {_p4} True {_p5} False

:ROULETE_4789
gosub @ROULETE_9703
$roulette_flag += 1

:ROULETE_4803
if 
  $roulette_flag == 3
goto_if_false @ROULETE_5553
print_help_forever 'X_CONT'
set_var_int_to_var_int $temp_integer_1 = $winnings_this_round
sub_int_var_from_int_var $temp_integer_1 -= $total_stake_this_round
if 
  $temp_integer_1 == 0
goto_if_false @ROULETE_4934
gosub @ROULETE_18193
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
display_text 320.0 {offsetTop} 180.333 {key} 'NOWIN'
goto @ROULETE_5138

:ROULETE_4934
if 
  $temp_integer_1 > 0
goto_if_false @ROULETE_5060
gosub @ROULETE_18193
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
$temp_integer_2, $temp_integer_3, $temp_integer_4, $an = get_hud_colour 6
set_text_colour $temp_integer_2 {green} $temp_integer_3 {blue} $temp_integer_4 {alpha} 255
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'WINNER' {num} $temp_integer_1
register_int_stat StatId.BiggestGamblingWin {value} $temp_integer_1
goto @ROULETE_5138

:ROULETE_5060
$temp_integer_1 *= -1
gosub @ROULETE_18193
set_text_scale 1.3 {heightScale} 3.36
set_text_centre True
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Pricedown
display_text_with_number 320.0 {offsetTop} 155.333 {key} 'LOSER' {num} $temp_integer_1
register_int_stat StatId.BiggestGamblingLoss {value} $temp_integer_1

:ROULETE_5138
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @ROULETE_5546
if 
  7@ == 0
goto_if_false @ROULETE_5539
set_lvar_int_to_var_int 7@ = $game_timer
7@ += 999999
add_score $player1 {money} $winnings_this_round
increment_int_stat StatId.MoneyWonGambling {value} $winnings_this_round
set_var_int_to_var_int $temp_integer_1 = $winnings_this_round
sub_int_var_from_int_var $temp_integer_1 -= $total_stake_this_round
$winning_streak += 1
if 
  $temp_integer_1 > 0
goto_if_false @ROULETE_5425
$an = generate_random_int_in_range 0 {max} 3
if or
  $an == 0
  $an == 1
goto_if_false @ROULETE_5408
if 
  $winning_streak > 1
goto_if_false @ROULETE_5315
$an = generate_random_int_in_range 3 {max} 6
goto @ROULETE_5324

:ROULETE_5315
$an = generate_random_int_in_range 0 {max} 3

:ROULETE_5324
if 
  not is_char_dead 26@
goto_if_false @ROULETE_5401
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_5383
set_char_say_script 26@ {_p2} $player_wins_b($an,6i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_5401

:ROULETE_5383
set_char_say_script 26@ {_p2} $player_wins_w($an,6i) {_p3} True {_p4} True {_p5} False

:ROULETE_5401
goto @ROULETE_5418

:ROULETE_5408
$temp_integer_4 = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoWin

:ROULETE_5418
goto @ROULETE_5469

:ROULETE_5425
$temp_integer_2 = generate_random_int_in_range 0 {max} 2
if 
  $temp_integer_2 == 0
goto_if_false @ROULETE_5462
$temp_integer_4 = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoLose

:ROULETE_5462
$winning_streak = 0

:ROULETE_5469
22@ = 1
gosub @ROULETE_815
$i = 0

:ROULETE_5490
if 
  151 > $i
goto_if_false @ROULETE_5532
delete_object $placed_chips($i,151i)
$i += 1
goto @ROULETE_5490

:ROULETE_5532
$roulette_flag = 0

:ROULETE_5539
goto @ROULETE_5553

:ROULETE_5546
7@ = 0

:ROULETE_5553
if and
  $roulette_flag > 0
  3 > $roulette_flag
goto_if_false @ROULETE_5613
add_timed_float_lvar_to_float_lvar 25@ +=@ 24@
set_object_rotation 27@ {x} 0.0 {y} 0.0 {z} 25@
18@ = generate_random_int_in_range 0 {max} 37

:ROULETE_5613
$pad1_left_stick_x, $pad1_left_stick_y, $pad1_right_stick_x, $pad1_right_stick_y = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -80 > $pad1_left_stick_x
goto_if_false @ROULETE_6087
if 
  2@ == 0
goto_if_false @ROULETE_6054
set_lvar_int_to_var_int 12@ = $game_timer
12@ += 80
if 
  0.0 > $spot_selection_x
goto_if_false @ROULETE_5804
if 
  $spot_selection_y <> 2.0
goto_if_false @ROULETE_5797
if 
  $spot_selection_x <> 0.0
goto_if_false @ROULETE_5797
if 
  $spot_selection_y == -24.0
goto_if_false @ROULETE_5787
$spot_selection_x += 2.0
goto @ROULETE_5797

:ROULETE_5787
$spot_selection_x += 1.0

:ROULETE_5797
goto @ROULETE_6040

:ROULETE_5804
if 
  $spot_selection_x == 0.0
goto_if_false @ROULETE_5999
if and
  2.0 > $spot_selection_y
  $spot_selection_y > -7.0
goto_if_false @ROULETE_5883
$spot_selection_x += 2.0
$spot_selection_y = -3.0
goto @ROULETE_5992

:ROULETE_5883
if and
  -6.0 > $spot_selection_y
  $spot_selection_y > -15.0
goto_if_false @ROULETE_5941
$spot_selection_x += 2.0
$spot_selection_y = -11.0
goto @ROULETE_5992

:ROULETE_5941
if and
  -14.0 > $spot_selection_y
  $spot_selection_y > -24.0
goto_if_false @ROULETE_5992
$spot_selection_x += 2.0
$spot_selection_y = -19.0

:ROULETE_5992
goto @ROULETE_6040

:ROULETE_5999
if 
  $spot_selection_x == 2.0
goto_if_false @ROULETE_6040
$spot_selection_x += 2.0
$spot_selection_y += 2.0

:ROULETE_6040
2@ += 1
goto @ROULETE_6080

:ROULETE_6054
if 
  is_int_var_greater_than_int_lvar $game_timer > 12@
goto_if_false @ROULETE_6080
2@ = 0

:ROULETE_6080
goto @ROULETE_6094

:ROULETE_6087
2@ = 0

:ROULETE_6094
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $pad1_left_stick_x > 80
goto_if_false @ROULETE_6521
if 
  3@ == 0
goto_if_false @ROULETE_6488
set_lvar_int_to_var_int 13@ = $game_timer
13@ += 80
if 
  $spot_selection_x > -4.0
goto_if_false @ROULETE_6412
if 
  $spot_selection_y <> 2.0
goto_if_false @ROULETE_6405
if 
  $spot_selection_x <> -4.0
goto_if_false @ROULETE_6405
if or
  $spot_selection_y == -24.0
  $spot_selection_x == 2.0
  $spot_selection_x == 4.0
goto_if_false @ROULETE_6395
if or
  $spot_selection_y == -1.0
  $spot_selection_y == -5.0
goto_if_false @ROULETE_6296
$spot_selection_y = -3.0

:ROULETE_6296
if or
  $spot_selection_y == -9.0
  $spot_selection_y == -13.0
goto_if_false @ROULETE_6337
$spot_selection_y = -11.0

:ROULETE_6337
if or
  $spot_selection_y == -17.0
  $spot_selection_y == -21.0
goto_if_false @ROULETE_6378
$spot_selection_y = -19.0

:ROULETE_6378
$spot_selection_x += -2.0
goto @ROULETE_6405

:ROULETE_6395
$spot_selection_x += -1.0

:ROULETE_6405
goto @ROULETE_6474

:ROULETE_6412
if 
  $spot_selection_x == -4.0
goto_if_false @ROULETE_6474
if and
  $spot_selection_y > -23.0
  1.0 > $spot_selection_y
goto_if_false @ROULETE_6474
$spot_selection_x += -1.0

:ROULETE_6474
3@ += 1
goto @ROULETE_6514

:ROULETE_6488
if 
  is_int_var_greater_than_int_lvar $game_timer > 13@
goto_if_false @ROULETE_6514
3@ = 0

:ROULETE_6514
goto @ROULETE_6528

:ROULETE_6521
3@ = 0

:ROULETE_6528
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -80 > $pad1_left_stick_y
goto_if_false @ROULETE_6867
if 
  4@ == 0
goto_if_false @ROULETE_6834
set_lvar_int_to_var_int 14@ = $game_timer
14@ += 80
if 
  0.0 > $spot_selection_y
goto_if_false @ROULETE_6779
if 
  $spot_selection_y == -24.0
goto_if_false @ROULETE_6644
$spot_selection_y += 2.0
goto @ROULETE_6772

:ROULETE_6644
if 
  $spot_selection_x == 2.0
goto_if_false @ROULETE_6703
if 
  $spot_selection_y <> -3.0
goto_if_false @ROULETE_6696
$spot_selection_y += 8.0

:ROULETE_6696
goto @ROULETE_6772

:ROULETE_6703
if 
  $spot_selection_x == 4.0
goto_if_false @ROULETE_6762
if 
  $spot_selection_y <> -1.0
goto_if_false @ROULETE_6755
$spot_selection_y += 4.0

:ROULETE_6755
goto @ROULETE_6772

:ROULETE_6762
$spot_selection_y += 1.0

:ROULETE_6772
goto @ROULETE_6820

:ROULETE_6779
if 
  $spot_selection_y == 0.0
goto_if_false @ROULETE_6820
$spot_selection_y += 2.0
$spot_selection_x = -2.0

:ROULETE_6820
4@ += 1
goto @ROULETE_6860

:ROULETE_6834
if 
  is_int_var_greater_than_int_lvar $game_timer > 14@
goto_if_false @ROULETE_6860
4@ = 0

:ROULETE_6860
goto @ROULETE_6874

:ROULETE_6867
4@ = 0

:ROULETE_6874
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $pad1_left_stick_y > 80
goto_if_false @ROULETE_7331
if 
  5@ == 0
goto_if_false @ROULETE_7298
set_lvar_int_to_var_int 15@ = $game_timer
15@ += 80
if 
  $spot_selection_y > -22.0
goto_if_false @ROULETE_7125
if 
  $spot_selection_y == 2.0
goto_if_false @ROULETE_6990
$spot_selection_y += -2.0
goto @ROULETE_7118

:ROULETE_6990
if 
  $spot_selection_x == 2.0
goto_if_false @ROULETE_7049
if 
  $spot_selection_y <> -19.0
goto_if_false @ROULETE_7042
$spot_selection_y += -8.0

:ROULETE_7042
goto @ROULETE_7118

:ROULETE_7049
if 
  $spot_selection_x == 4.0
goto_if_false @ROULETE_7108
if 
  $spot_selection_y <> -21.0
goto_if_false @ROULETE_7101
$spot_selection_y += -4.0

:ROULETE_7101
goto @ROULETE_7118

:ROULETE_7108
$spot_selection_y += -1.0

:ROULETE_7118
goto @ROULETE_7284

:ROULETE_7125
if 
  $spot_selection_x == -4.0
goto_if_false @ROULETE_7184
if 
  $spot_selection_y <> -24.0
goto_if_false @ROULETE_7177
$spot_selection_y += -2.0

:ROULETE_7177
goto @ROULETE_7284

:ROULETE_7184
if 
  $spot_selection_x == 0.0
goto_if_false @ROULETE_7243
if 
  $spot_selection_y <> -24.0
goto_if_false @ROULETE_7236
$spot_selection_y += -2.0

:ROULETE_7236
goto @ROULETE_7284

:ROULETE_7243
if 
  $spot_selection_y <> -24.0
goto_if_false @ROULETE_7284
$spot_selection_x = -2.0
$spot_selection_y += -2.0

:ROULETE_7284
5@ += 1
goto @ROULETE_7324

:ROULETE_7298
if 
  is_int_var_greater_than_int_lvar $game_timer > 15@
goto_if_false @ROULETE_7324
5@ = 0

:ROULETE_7324
goto @ROULETE_7338

:ROULETE_7331
5@ = 0

:ROULETE_7338
set_var_float_to_var_float $spot_increment_x = $spot_selection_x
mult_float_var_by_float_var $spot_increment_x *= $spot_size_x
set_var_float_to_var_float $spot_increment_y = $spot_selection_y
mult_float_var_by_float_var $spot_increment_y *= $spot_size_y
set_var_float_to_var_float $chip_position_x = $spot1_x
add_float_var_to_float_var $chip_position_x += $spot_increment_x
set_var_float_to_var_float $chip_position_y = $spot1_y
add_float_var_to_float_var $chip_position_y += $spot_increment_y
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $chip_position_x {yOffset} $chip_position_y {zOffset} $spot1_z
$z += 0.01
set_object_coordinates $chips_stack {x} $x {y} $y {z} $z

:ROULETE_7449
goto @ROULETE_7584

:ROULETE_7456
if 
  1@ > 0
goto_if_false @ROULETE_7584
if 
  1@ > 3
goto_if_false @ROULETE_7494
clear_help 

:ROULETE_7494
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_815
$i = 0

:ROULETE_7525
if 
  151 > $i
goto_if_false @ROULETE_7567
delete_object $placed_chips($i,151i)
$i += 1
goto @ROULETE_7525

:ROULETE_7567
delete_object $chips_stack
delete_object 27@
1@ = 0

:ROULETE_7584
goto @ROULETE_7728

:ROULETE_7591
if 
  1@ > 0
goto_if_false @ROULETE_7719
if 
  1@ > 3
goto_if_false @ROULETE_7629
clear_help 

:ROULETE_7629
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_815
$i = 0

:ROULETE_7660
if 
  151 > $i
goto_if_false @ROULETE_7702
delete_object $placed_chips($i,151i)
$i += 1
goto @ROULETE_7660

:ROULETE_7702
delete_object $chips_stack
delete_object 27@
1@ = 0

:ROULETE_7719
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_7728
goto @ROULETE_7872

:ROULETE_7735
if 
  1@ > 0
goto_if_false @ROULETE_7863
if 
  1@ > 3
goto_if_false @ROULETE_7773
clear_help 

:ROULETE_7773
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_815
$i = 0

:ROULETE_7804
if 
  151 > $i
goto_if_false @ROULETE_7846
delete_object $placed_chips($i,151i)
$i += 1
goto @ROULETE_7804

:ROULETE_7846
delete_object $chips_stack
delete_object 27@
1@ = 0

:ROULETE_7863
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_7872
goto @ROULETE_8016

:ROULETE_7879
if 
  1@ > 0
goto_if_false @ROULETE_8007
if 
  1@ > 3
goto_if_false @ROULETE_7917
clear_help 

:ROULETE_7917
delete_char 26@
mark_model_as_no_longer_needed 23@
22@ = 1
gosub @ROULETE_815
$i = 0

:ROULETE_7948
if 
  151 > $i
goto_if_false @ROULETE_7990
delete_object $placed_chips($i,151i)
$i += 1
goto @ROULETE_7948

:ROULETE_7990
delete_object $chips_stack
delete_object 27@
1@ = 0

:ROULETE_8007
$total_roulette_tables -= 1
terminate_this_script 

:ROULETE_8016
goto @ROULETE_927

:ROULETE_8023
$i = 0

:ROULETE_8030
if 
  151 > $i
goto_if_false @ROULETE_9701
if 
  is_float_var_equal_to_float_var $spot_selection_x == $selected_spot_x($i,151f)
goto_if_false @ROULETE_9687
if 
  is_float_var_equal_to_float_var $spot_selection_y == $selected_spot_y($i,151f)
goto_if_false @ROULETE_9687
set_lvar_int_to_var_int 20@ = $spot_bets($i,151i)
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @ROULETE_9317
if 
  is_int_var_greater_than_int_lvar $game_timer > 8@
goto_if_false @ROULETE_9310
$temp_int_roulette = store_score $player1
$temp_int_roulette += 1
$gambling_stat = get_int_stat StatId.Gambling
if 
  $gambling_stat > 999
goto_if_false @ROULETE_8338
set_var_int_to_lvar_int $temp_integer_4 = 17@
$temp_integer_4 -= 1000000
if 
  1 > $temp_int_roulette
goto_if_false @ROULETE_8331
if 
  28@ == 0
goto_if_false @ROULETE_8331
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8324
$an = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8306
set_char_say_script 26@ {_p2} $player_gets_credit_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8324

:ROULETE_8306
set_char_say_script 26@ {_p2} $player_gets_credit_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8324
28@ = 1

:ROULETE_8331
goto @ROULETE_8858

:ROULETE_8338
if 
  $gambling_stat > 100
goto_if_false @ROULETE_8510
set_var_int_to_lvar_int $temp_integer_4 = 17@
$temp_integer_4 -= 100000
if 
  1 > $temp_int_roulette
goto_if_false @ROULETE_8503
if 
  28@ == 0
goto_if_false @ROULETE_8503
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8496
$an = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8478
set_char_say_script 26@ {_p2} $player_gets_credit_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8496

:ROULETE_8478
set_char_say_script 26@ {_p2} $player_gets_credit_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8496
28@ = 1

:ROULETE_8503
goto @ROULETE_8858

:ROULETE_8510
if 
  $gambling_stat > 10
goto_if_false @ROULETE_8680
set_var_int_to_lvar_int $temp_integer_4 = 17@
$temp_integer_4 -= 10000
if 
  1 > $temp_int_roulette
goto_if_false @ROULETE_8673
if 
  28@ == 0
goto_if_false @ROULETE_8673
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8666
$an = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8648
set_char_say_script 26@ {_p2} $player_gets_credit_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8666

:ROULETE_8648
set_char_say_script 26@ {_p2} $player_gets_credit_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8666
28@ = 1

:ROULETE_8673
goto @ROULETE_8858

:ROULETE_8680
if 
  $gambling_stat > 1
goto_if_false @ROULETE_8850
set_var_int_to_lvar_int $temp_integer_4 = 17@
$temp_integer_4 -= 1000
if 
  1 > $temp_int_roulette
goto_if_false @ROULETE_8843
if 
  28@ == 0
goto_if_false @ROULETE_8843
if 
  not is_char_dead 26@
goto_if_false @ROULETE_8836
$an = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_8818
set_char_say_script 26@ {_p2} $player_gets_credit_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_8836

:ROULETE_8818
set_char_say_script 26@ {_p2} $player_gets_credit_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_8836
28@ = 1

:ROULETE_8843
goto @ROULETE_8858

:ROULETE_8850
set_var_int_to_lvar_int $temp_integer_4 = 17@

:ROULETE_8858
if and
  is_int_lvar_greater_than_int_var 21@ > $total_stake_this_round
  is_int_var_greater_than_int_var $temp_int_roulette > $temp_integer_4
goto_if_false @ROULETE_9145
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_8927
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteAddCash

:ROULETE_8927
add_int_lvar_to_int_lvar 20@ += 17@
set_var_int_to_lvar_int $temp_int_roulette = 17@
$temp_int_roulette *= -1
add_score $player1 {money} $temp_int_roulette
add_int_lvar_to_int_var $total_stake_this_round += 17@
set_var_int_to_lvar_int $temp_int_roulette = 17@
$temp_int_roulette *= 26
if 
  is_int_var_greater_than_int_lvar $temp_int_roulette > 20@
goto_if_false @ROULETE_9096
$x, $y, $z = get_object_coordinates $chips_stack
$z += -0.14
set_var_int_to_lvar_int $temp_int_roulette = 20@
div_int_var_by_int_lvar $temp_int_roulette /= 17@
cset_var_float_to_var_int $temp_float_1 =# $temp_int_roulette
$temp_float_1 *= 0.005
add_float_var_to_float_var $z += $temp_float_1
delete_object $placed_chips($i,151i)
create_object_no_offset 19@ {x} $x {y} $y {z} $z {var_handle} $placed_chips($i,151i)

:ROULETE_9096
set_lvar_int_to_var_int 8@ = $game_timer
add_int_lvar_to_int_lvar 8@ += 10@
if 
  10@ == 500
goto_if_false @ROULETE_9138
10@ = 80

:ROULETE_9138
goto @ROULETE_9310

:ROULETE_9145
if 
  is_int_var_greater_or_equal_to_int_var $temp_integer_4 >= $temp_int_roulette
goto_if_false @ROULETE_9250
if 
  not is_char_dead 26@
goto_if_false @ROULETE_9250
$an = generate_random_int_in_range 0 {max} 3
if 
  is_int_lvar_equal_to_constant 23@ == 11
goto_if_false @ROULETE_9232
set_char_say_script 26@ {_p2} $no_money_b($an,3i) {_p3} True {_p4} True {_p5} False
goto @ROULETE_9250

:ROULETE_9232
set_char_say_script 26@ {_p2} $no_money_w($an,3i) {_p3} True {_p4} True {_p5} False

:ROULETE_9250
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_9292
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteNoCash

:ROULETE_9292
set_lvar_int_to_var_int 8@ = $game_timer
8@ += 6000000

:ROULETE_9310
goto @ROULETE_9675

:ROULETE_9317
set_lvar_int_to_var_int 8@ = $game_timer
10@ = 500
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @ROULETE_9659
if 
  is_int_var_greater_than_int_lvar $game_timer > 6@
goto_if_false @ROULETE_9652
if or
  is_int_lvar_greater_than_int_lvar 20@ > 17@
  is_int_lvar_equal_to_int_lvar 20@ == 17@
goto_if_false @ROULETE_9610
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1813
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @ROULETE_9438
report_mission_audio_event_at_position 0.0 {y} 0.0 {z} 0.0 {soundId} ScriptSound.SoundRouletteRemoveCash

:ROULETE_9438
sub_int_lvar_from_int_lvar 20@ -= 17@
sub_int_lvar_from_int_var $total_stake_this_round -= 17@
add_score $player1 {money} 17@
set_var_int_to_lvar_int $temp_int_roulette = 17@
$temp_int_roulette *= 26
if 
  is_int_var_greater_than_int_lvar $temp_int_roulette > 20@
goto_if_false @ROULETE_9610
$x, $y, $z = get_object_coordinates $chips_stack
$z += -0.14
set_var_int_to_lvar_int $temp_int_roulette = 20@
div_int_var_by_int_lvar $temp_int_roulette /= 17@
cset_var_float_to_var_int $temp_float_1 =# $temp_int_roulette
$temp_float_1 *= 0.005
add_float_var_to_float_var $z += $temp_float_1
delete_object $placed_chips($i,151i)
if 
  20@ > 0
goto_if_false @ROULETE_9610
create_object_no_offset 19@ {x} $x {y} $y {z} $z {var_handle} $placed_chips($i,151i)

:ROULETE_9610
set_lvar_int_to_var_int 6@ = $game_timer
add_int_lvar_to_int_lvar 6@ += 11@
if 
  11@ == 500
goto_if_false @ROULETE_9652
11@ = 80

:ROULETE_9652
goto @ROULETE_9675

:ROULETE_9659
set_lvar_int_to_var_int 6@ = $game_timer
11@ = 500

:ROULETE_9675
set_var_int_to_lvar_int $spot_bets($i,151i) = 20@

:ROULETE_9687
$i += 1
goto @ROULETE_8030

:ROULETE_9701
return 

:ROULETE_9703
if 
  18@ == 0
goto_if_false @ROULETE_9743
$spot_bets[0] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[0]
$spot_bets[0] = 0

:ROULETE_9743
if 
  18@ == 1
goto_if_false @ROULETE_9926
$spot_bets[1] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[1]
$spot_bets[37] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[37]
$spot_bets[61] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[61]
$spot_bets[94] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[94]
$spot_bets[106] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[106]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[140] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[140]

:ROULETE_9926
if 
  18@ == 2
goto_if_false @ROULETE_10139
$spot_bets[2] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[2]
$spot_bets[37] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[37]
$spot_bets[38] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[38]
$spot_bets[62] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[62]
$spot_bets[94] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[94]
$spot_bets[106] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[106]
$spot_bets[107] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[106]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[140] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[140]

:ROULETE_10139
if 
  18@ == 3
goto_if_false @ROULETE_10322
$spot_bets[3] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[3]
$spot_bets[38] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[38]
$spot_bets[63] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[63]
$spot_bets[94] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[94]
$spot_bets[107] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[106]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[140] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[140]

:ROULETE_10322
if 
  18@ == 4
goto_if_false @ROULETE_10550
$spot_bets[4] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[4]
$spot_bets[61] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[61]
$spot_bets[39] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[39]
$spot_bets[64] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[64]
$spot_bets[95] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[95]
$spot_bets[106] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[106]
$spot_bets[108] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[108]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[140] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[140]
$spot_bets[141] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[141]

:ROULETE_10550
if 
  18@ == 5
goto_if_false @ROULETE_10823
$spot_bets[5] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[5]
$spot_bets[62] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[62]
$spot_bets[39] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[39]
$spot_bets[40] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[40]
$spot_bets[65] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[65]
$spot_bets[95] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[95]
$spot_bets[106] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[106]
$spot_bets[107] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[107]
$spot_bets[108] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[108]
$spot_bets[109] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[109]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[140] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[140]
$spot_bets[141] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[141]

:ROULETE_10823
if 
  18@ == 6
goto_if_false @ROULETE_11051
$spot_bets[6] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[6]
$spot_bets[63] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[63]
$spot_bets[40] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[40]
$spot_bets[66] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[66]
$spot_bets[95] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[95]
$spot_bets[107] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[107]
$spot_bets[109] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[109]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[140] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[140]
$spot_bets[141] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[141]

:ROULETE_11051
if 
  18@ == 7
goto_if_false @ROULETE_11279
$spot_bets[7] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[7]
$spot_bets[64] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[64]
$spot_bets[41] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[41]
$spot_bets[67] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[67]
$spot_bets[96] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[96]
$spot_bets[108] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[108]
$spot_bets[110] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[110]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[141] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[141]
$spot_bets[142] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[142]

:ROULETE_11279
if 
  18@ == 8
goto_if_false @ROULETE_11552
$spot_bets[8] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[8]
$spot_bets[65] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[65]
$spot_bets[41] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[41]
$spot_bets[42] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[42]
$spot_bets[68] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[68]
$spot_bets[96] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[96]
$spot_bets[108] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[108]
$spot_bets[109] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[109]
$spot_bets[110] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[110]
$spot_bets[111] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[111]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[141] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[141]
$spot_bets[142] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[142]

:ROULETE_11552
if 
  18@ == 9
goto_if_false @ROULETE_11780
$spot_bets[9] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[9]
$spot_bets[66] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[66]
$spot_bets[42] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[42]
$spot_bets[69] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[69]
$spot_bets[96] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[96]
$spot_bets[109] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[109]
$spot_bets[111] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[111]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[141] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[141]
$spot_bets[142] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[142]

:ROULETE_11780
if 
  18@ == 10
goto_if_false @ROULETE_12008
$spot_bets[10] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[10]
$spot_bets[67] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[67]
$spot_bets[43] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[43]
$spot_bets[70] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[70]
$spot_bets[97] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[97]
$spot_bets[110] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[110]
$spot_bets[112] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[112]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[142] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[142]
$spot_bets[143] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[143]

:ROULETE_12008
if 
  18@ == 11
goto_if_false @ROULETE_12281
$spot_bets[11] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[11]
$spot_bets[68] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[68]
$spot_bets[43] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[43]
$spot_bets[44] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[44]
$spot_bets[71] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[71]
$spot_bets[97] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[97]
$spot_bets[110] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[110]
$spot_bets[111] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[111]
$spot_bets[112] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[112]
$spot_bets[113] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[113]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[142] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[142]
$spot_bets[143] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[143]

:ROULETE_12281
if 
  18@ == 12
goto_if_false @ROULETE_12509
$spot_bets[12] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[12]
$spot_bets[69] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[69]
$spot_bets[44] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[44]
$spot_bets[72] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[72]
$spot_bets[97] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[97]
$spot_bets[111] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[111]
$spot_bets[113] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[113]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[131] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[131]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[142] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[142]
$spot_bets[143] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[143]

:ROULETE_12509
if 
  18@ == 13
goto_if_false @ROULETE_12737
$spot_bets[13] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[13]
$spot_bets[70] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[70]
$spot_bets[45] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[45]
$spot_bets[73] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[73]
$spot_bets[98] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[98]
$spot_bets[112] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[112]
$spot_bets[114] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[114]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[143] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[143]
$spot_bets[144] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[144]

:ROULETE_12737
if 
  18@ == 14
goto_if_false @ROULETE_13010
$spot_bets[14] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[14]
$spot_bets[71] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[71]
$spot_bets[45] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[45]
$spot_bets[46] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[46]
$spot_bets[74] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[74]
$spot_bets[98] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[98]
$spot_bets[112] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[112]
$spot_bets[113] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[113]
$spot_bets[114] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[114]
$spot_bets[115] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[115]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[143] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[143]
$spot_bets[144] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[144]

:ROULETE_13010
if 
  18@ == 15
goto_if_false @ROULETE_13238
$spot_bets[15] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[15]
$spot_bets[72] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[72]
$spot_bets[46] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[46]
$spot_bets[75] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[75]
$spot_bets[98] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[98]
$spot_bets[113] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[113]
$spot_bets[115] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[115]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[143] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[143]
$spot_bets[144] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[144]

:ROULETE_13238
if 
  18@ == 16
goto_if_false @ROULETE_13466
$spot_bets[16] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[16]
$spot_bets[73] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[73]
$spot_bets[47] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[47]
$spot_bets[76] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[76]
$spot_bets[99] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[99]
$spot_bets[114] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[114]
$spot_bets[116] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[116]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[144] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[144]
$spot_bets[145] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[145]

:ROULETE_13466
if 
  18@ == 17
goto_if_false @ROULETE_13739
$spot_bets[17] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[17]
$spot_bets[74] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[74]
$spot_bets[47] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[47]
$spot_bets[48] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[48]
$spot_bets[77] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[77]
$spot_bets[99] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[99]
$spot_bets[114] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[114]
$spot_bets[115] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[115]
$spot_bets[116] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[116]
$spot_bets[117] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[117]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[144] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[144]
$spot_bets[145] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[145]

:ROULETE_13739
if 
  18@ == 18
goto_if_false @ROULETE_13967
$spot_bets[18] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[18]
$spot_bets[75] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[75]
$spot_bets[48] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[48]
$spot_bets[78] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[78]
$spot_bets[99] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[99]
$spot_bets[115] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[115]
$spot_bets[117] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[117]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[134] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[134]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[144] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[144]
$spot_bets[145] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[145]

:ROULETE_13967
if 
  18@ == 19
goto_if_false @ROULETE_14195
$spot_bets[19] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[19]
$spot_bets[76] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[76]
$spot_bets[49] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[49]
$spot_bets[79] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[79]
$spot_bets[100] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[100]
$spot_bets[116] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[116]
$spot_bets[118] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[118]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[145] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[145]
$spot_bets[146] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[146]

:ROULETE_14195
if 
  18@ == 20
goto_if_false @ROULETE_14468
$spot_bets[20] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[20]
$spot_bets[77] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[77]
$spot_bets[49] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[49]
$spot_bets[50] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[50]
$spot_bets[80] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[80]
$spot_bets[100] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[100]
$spot_bets[116] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[116]
$spot_bets[117] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[117]
$spot_bets[118] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[118]
$spot_bets[119] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[119]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[145] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[145]
$spot_bets[146] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[146]

:ROULETE_14468
if 
  18@ == 21
goto_if_false @ROULETE_14696
$spot_bets[21] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[21]
$spot_bets[78] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[78]
$spot_bets[50] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[50]
$spot_bets[81] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[81]
$spot_bets[100] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[100]
$spot_bets[117] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[117]
$spot_bets[119] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[119]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[145] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[145]
$spot_bets[146] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[146]

:ROULETE_14696
if 
  18@ == 22
goto_if_false @ROULETE_14924
$spot_bets[22] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[22]
$spot_bets[79] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[79]
$spot_bets[51] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[51]
$spot_bets[82] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[82]
$spot_bets[101] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[101]
$spot_bets[118] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[118]
$spot_bets[120] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[120]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[146] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[146]
$spot_bets[147] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[147]

:ROULETE_14924
if 
  18@ == 23
goto_if_false @ROULETE_15197
$spot_bets[23] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[23]
$spot_bets[80] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[80]
$spot_bets[51] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[51]
$spot_bets[52] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[52]
$spot_bets[83] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[83]
$spot_bets[101] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[101]
$spot_bets[118] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[118]
$spot_bets[119] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[119]
$spot_bets[120] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[120]
$spot_bets[121] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[121]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[146] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[146]
$spot_bets[147] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[147]

:ROULETE_15197
if 
  18@ == 24
goto_if_false @ROULETE_15425
$spot_bets[24] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[24]
$spot_bets[81] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[81]
$spot_bets[52] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[52]
$spot_bets[84] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[84]
$spot_bets[101] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[101]
$spot_bets[119] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[119]
$spot_bets[121] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[121]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[132] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[132]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[146] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[146]
$spot_bets[147] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[147]

:ROULETE_15425
if 
  18@ == 25
goto_if_false @ROULETE_15653
$spot_bets[25] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[25]
$spot_bets[82] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[82]
$spot_bets[53] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[53]
$spot_bets[85] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[85]
$spot_bets[102] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[102]
$spot_bets[120] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[120]
$spot_bets[122] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[122]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[147] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[147]
$spot_bets[148] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[148]

:ROULETE_15653
if 
  18@ == 26
goto_if_false @ROULETE_15926
$spot_bets[26] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[26]
$spot_bets[83] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[83]
$spot_bets[53] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[53]
$spot_bets[54] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[54]
$spot_bets[86] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[86]
$spot_bets[102] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[102]
$spot_bets[120] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[120]
$spot_bets[121] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[121]
$spot_bets[122] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[122]
$spot_bets[123] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[123]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[147] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[147]
$spot_bets[148] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[148]

:ROULETE_15926
if 
  18@ == 27
goto_if_false @ROULETE_16154
$spot_bets[27] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[27]
$spot_bets[84] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[84]
$spot_bets[54] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[54]
$spot_bets[87] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[87]
$spot_bets[102] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[102]
$spot_bets[121] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[121]
$spot_bets[123] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[123]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[147] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[147]
$spot_bets[148] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[148]

:ROULETE_16154
if 
  18@ == 28
goto_if_false @ROULETE_16382
$spot_bets[28] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[28]
$spot_bets[85] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[85]
$spot_bets[55] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[55]
$spot_bets[88] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[88]
$spot_bets[103] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[103]
$spot_bets[122] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[122]
$spot_bets[124] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[124]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[148] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[148]
$spot_bets[149] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[149]

:ROULETE_16382
if 
  18@ == 29
goto_if_false @ROULETE_16655
$spot_bets[29] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[29]
$spot_bets[86] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[86]
$spot_bets[55] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[55]
$spot_bets[56] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[56]
$spot_bets[89] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[89]
$spot_bets[103] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[103]
$spot_bets[122] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[122]
$spot_bets[123] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[123]
$spot_bets[124] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[124]
$spot_bets[125] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[125]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[148] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[148]
$spot_bets[149] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[149]

:ROULETE_16655
if 
  18@ == 30
goto_if_false @ROULETE_16883
$spot_bets[30] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[30]
$spot_bets[87] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[87]
$spot_bets[56] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[56]
$spot_bets[90] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[90]
$spot_bets[103] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[103]
$spot_bets[123] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[123]
$spot_bets[125] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[125]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[148] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[148]
$spot_bets[149] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[149]

:ROULETE_16883
if 
  18@ == 31
goto_if_false @ROULETE_17111
$spot_bets[31] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[31]
$spot_bets[88] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[88]
$spot_bets[57] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[57]
$spot_bets[91] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[91]
$spot_bets[104] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[104]
$spot_bets[124] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[124]
$spot_bets[126] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[126]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[149] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[149]
$spot_bets[150] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[150]

:ROULETE_17111
if 
  18@ == 32
goto_if_false @ROULETE_17384
$spot_bets[32] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[32]
$spot_bets[89] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[89]
$spot_bets[57] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[57]
$spot_bets[58] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[58]
$spot_bets[92] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[92]
$spot_bets[104] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[104]
$spot_bets[124] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[124]
$spot_bets[125] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[125]
$spot_bets[126] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[126]
$spot_bets[127] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[127]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[149] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[149]
$spot_bets[150] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[150]

:ROULETE_17384
if 
  18@ == 33
goto_if_false @ROULETE_17612
$spot_bets[33] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[33]
$spot_bets[90] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[90]
$spot_bets[58] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[58]
$spot_bets[93] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[93]
$spot_bets[104] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[104]
$spot_bets[125] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[125]
$spot_bets[127] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[127]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[149] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[149]
$spot_bets[150] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[150]

:ROULETE_17612
if 
  18@ == 34
goto_if_false @ROULETE_17795
$spot_bets[34] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[34]
$spot_bets[91] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[91]
$spot_bets[59] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[59]
$spot_bets[105] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[105]
$spot_bets[126] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[126]
$spot_bets[128] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[128]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[150] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[150]

:ROULETE_17795
if 
  18@ == 35
goto_if_false @ROULETE_18008
$spot_bets[35] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[35]
$spot_bets[92] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[92]
$spot_bets[59] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[59]
$spot_bets[60] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[60]
$spot_bets[105] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[105]
$spot_bets[126] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[126]
$spot_bets[127] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[127]
$spot_bets[129] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[129]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[137] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[137]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[139] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[139]
$spot_bets[150] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[150]

:ROULETE_18008
if 
  18@ == 36
goto_if_false @ROULETE_18191
$spot_bets[36] *= 36
add_int_var_to_int_var $winnings_this_round += $spot_bets[36]
$spot_bets[93] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[93]
$spot_bets[60] *= 18
add_int_var_to_int_var $winnings_this_round += $spot_bets[60]
$spot_bets[105] *= 12
add_int_var_to_int_var $winnings_this_round += $spot_bets[105]
$spot_bets[127] *= 9
add_int_var_to_int_var $winnings_this_round += $spot_bets[127]
$spot_bets[130] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[130]
$spot_bets[133] *= 3
add_int_var_to_int_var $winnings_this_round += $spot_bets[133]
$spot_bets[136] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[136]
$spot_bets[135] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[135]
$spot_bets[138] *= 2
add_int_var_to_int_var $winnings_this_round += $spot_bets[138]
$spot_bets[150] *= 6
add_int_var_to_int_var $winnings_this_round += $spot_bets[150]

:ROULETE_18191
return 

:ROULETE_18193
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale $rou_x_scale {heightScale} $rou_y_scale
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 
terminate_this_script 

//-------------External script 6 (OTB_SCRIPT)---------------

:OTB_MSC
script_name 'OTB_MSC'
1@ = 0
if 
  1@ == -1
goto_if_false @OTB_MSC_58
0@ = create_object #OTB_MACHINE {x} 0.0 {y} 0.0 {z} 0.0

:OTB_MSC_58
wait 0
if 
  does_object_exist 0@
goto_if_false @OTB_MSC_625
if 
  is_object_within_brain_activation_range 0@
goto_if_false @OTB_MSC_589
if 
  is_player_playing $player1
goto_if_false @OTB_MSC_555
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @OTB_MSC_521
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @OTB_MSC_478
if 
  1@ == 1
goto_if_false @OTB_MSC_471
clear_help 
1@ = 0
if 
  $onmission == 0
goto_if_false @OTB_MSC_455
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @OTB_MSC_432
if 
  can_player_start_mission $player1
goto_if_false @OTB_MSC_425
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 500 {direction} Fade.Out

:OTB_MSC_298
if 
  get_fading_status 
goto_if_false @OTB_MSC_322
wait 0
goto @OTB_MSC_298

:OTB_MSC_322
$load_and_launch_mission_if_poss = 4
wait 0
wait 0
wait 0
if 
  is_player_playing $player1
goto_if_false @OTB_MSC_425
if 
  $onmission == 0
goto_if_false @OTB_MSC_382
set_player_control $player1 {state} True

:OTB_MSC_382
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -2.0 {yOffset} 0.0 {zOffset} -1.0
set_char_coordinates $scplayer {x} $x {y} $y {z} $z

:OTB_MSC_425
goto @OTB_MSC_448

:OTB_MSC_432
print_now 'BUSY' {time} 3000 {flag} 1

:OTB_MSC_448
goto @OTB_MSC_471

:OTB_MSC_455
print_now 'BUSY' {time} 3000 {flag} 1

:OTB_MSC_471
goto @OTB_MSC_514

:OTB_MSC_478
if 
  1@ == 0
goto_if_false @OTB_MSC_514
print_help_forever 'OTB_A'
1@ = 1

:OTB_MSC_514
goto @OTB_MSC_548

:OTB_MSC_521
if 
  1@ == 1
goto_if_false @OTB_MSC_548
clear_help 
1@ = 0

:OTB_MSC_548
goto @OTB_MSC_582

:OTB_MSC_555
if 
  1@ == 1
goto_if_false @OTB_MSC_582
clear_help 
1@ = 0

:OTB_MSC_582
goto @OTB_MSC_618

:OTB_MSC_589
if 
  1@ == 1
goto_if_false @OTB_MSC_616
clear_help 
1@ = 0

:OTB_MSC_616
terminate_this_script 

:OTB_MSC_618
goto @OTB_MSC_654

:OTB_MSC_625
if 
  1@ == 1
goto_if_false @OTB_MSC_652
clear_help 
1@ = 0

:OTB_MSC_652
terminate_this_script 

:OTB_MSC_654
goto @OTB_MSC_58
terminate_this_script 

//-------------External script 7 (ARCADE)---------------

:ARCADE
script_name 'ARCADE'
1@ = 0
if 
  1@ == -1
goto_if_false @ARCADE_58
0@ = create_object #CJ_COIN_OP_2 {x} 0.0 {y} 0.0 {z} 0.0

:ARCADE_58
wait 0
if 
  does_object_exist 0@
goto_if_false @ARCADE_749
if 
  is_object_within_brain_activation_range 0@
goto_if_false @ARCADE_713
if 
  is_player_playing $player1
goto_if_false @ARCADE_679
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 1.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @ARCADE_645
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @ARCADE_602
if 
  1@ == 1
goto_if_false @ARCADE_595
clear_help 
1@ = 0
if 
  $onmission == 0
goto_if_false @ARCADE_563
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @ARCADE_524
if 
  can_player_start_mission $player1
goto_if_false @ARCADE_517
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
do_fade 500 {direction} Fade.Out

:ARCADE_298
if 
  get_fading_status 
goto_if_false @ARCADE_322
wait 0
goto @ARCADE_298

:ARCADE_322
if 
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP_2
goto_if_false @ARCADE_354
$load_and_launch_mission_if_poss = 1
goto @ARCADE_464

:ARCADE_354
if or
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP_3
  does_object_have_this_model 0@ {modelId} #SWANK_CONSOLE
goto_if_false @ARCADE_393
$load_and_launch_mission_if_poss = 0
goto @ARCADE_464

:ARCADE_393
if or
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP_1
  does_object_have_this_model 0@ {modelId} #SNESISH
goto_if_false @ARCADE_432
$load_and_launch_mission_if_poss = 3
goto @ARCADE_464

:ARCADE_432
if or
  does_object_have_this_model 0@ {modelId} #CJ_COIN_OP
  does_object_have_this_model 0@ {modelId} #LOW_CONSOLE
goto_if_false @ARCADE_464
$load_and_launch_mission_if_poss = 2

:ARCADE_464
wait 0
wait 0
wait 0
if 
  is_player_playing $player1
goto_if_false @ARCADE_517
if 
  $onmission == 0
goto_if_false @ARCADE_517
set_player_control $player1 {state} True

:ARCADE_517
goto @ARCADE_556

:ARCADE_524
if 
  is_player_control_on $player1
goto_if_false @ARCADE_556
print_now 'BUSY' {time} 3000 {flag} 1

:ARCADE_556
goto @ARCADE_595

:ARCADE_563
if 
  is_player_control_on $player1
goto_if_false @ARCADE_595
print_now 'BUSY' {time} 3000 {flag} 1

:ARCADE_595
goto @ARCADE_638

:ARCADE_602
if 
  1@ == 0
goto_if_false @ARCADE_638
print_help_forever 'DUAL_A'
1@ = 1

:ARCADE_638
goto @ARCADE_672

:ARCADE_645
if 
  1@ == 1
goto_if_false @ARCADE_672
clear_help 
1@ = 0

:ARCADE_672
goto @ARCADE_706

:ARCADE_679
if 
  1@ == 1
goto_if_false @ARCADE_706
clear_help 
1@ = 0

:ARCADE_706
goto @ARCADE_742

:ARCADE_713
if 
  1@ == 1
goto_if_false @ARCADE_740
clear_help 
1@ = 0

:ARCADE_740
terminate_this_script 

:ARCADE_742
goto @ARCADE_778

:ARCADE_749
if 
  1@ == 1
goto_if_false @ARCADE_776
clear_help 
1@ = 0

:ARCADE_776
terminate_this_script 

:ARCADE_778
goto @ARCADE_58
terminate_this_script 

//-------------External script 8 (VENDING_MACHINE)---------------

:VENDING
script_name 'VENDING'
1@ = 0
if 
  1@ == 1
goto_if_false @VENDING_80
0@ = create_object_no_offset #VENDMACHFD {x} 0.0 {y} 0.0 {z} 0.0
3@ = create_object_no_offset #KB_BEER {x} 0.0 {y} 0.0 {z} 0.0

:VENDING_80
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @VENDING_1579
if 
  is_object_within_brain_activation_range 0@
goto_if_false @VENDING_1484
if 
  is_player_playing $player1
goto_if_false @VENDING_1391
if 
  1@ == 0
goto_if_false @VENDING_173
request_animation "VENDING"
1@ += 1

:VENDING_173
if 
  1@ == 1
goto_if_false @VENDING_395
if 
  has_animation_loaded "VENDING"
goto_if_false @VENDING_384
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.5
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @VENDING_377
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_343
load_mission_audio MissionAudioSlot.Slot4 {audioId} 42601
print_help_forever 'SLOT_04'
goto @VENDING_363

:VENDING_343
load_mission_audio MissionAudioSlot.Slot4 {audioId} 42600
print_help_forever 'SLOT_05'

:VENDING_363
set_player_enter_car_button $player1 {enabled} False
1@ += 1

:VENDING_377
goto @VENDING_395

:VENDING_384
request_animation "VENDING"

:VENDING_395
if 
  1@ == 2
goto_if_false @VENDING_1210
if 
  has_animation_loaded "VENDING"
goto_if_false @VENDING_1199
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.5
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_512
load_mission_audio MissionAudioSlot.Slot4 {audioId} 42601
goto @VENDING_521

:VENDING_512
load_mission_audio MissionAudioSlot.Slot4 {audioId} 42600

:VENDING_521
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @VENDING_1176
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VENDING_1169
if 
  can_player_start_mission $player1
goto_if_false @VENDING_1169
if 
  is_score_greater $player1 {money} 0
goto_if_false @VENDING_1141
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @VENDING_1134
$heading = get_object_heading 0@
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} 0.6
3@ = create_object_no_offset #CJ_JUICE_CAN {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
$sequence_task_obj = open_sequence_task 
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.2 {yOffset} -1.0 {zOffset} 0.0
task_char_slide_to_coord_and_play_anim -1 {x} $x {y} $y {z} $z {heading} $heading {radius} 0.4 {animationName} "VEND_USE" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_859
task_play_anim_secondary -1 {animationName} "VEND_EAT_P" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @VENDING_1001

:VENDING_859
$x, $y, $z, $x, $y, $z = get_model_dimensions #CJ_JUICE_CAN
$y /= 2.0
$y += 0.027
task_pick_up_object -1 {object} 3@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_USE_PT2" {animationFile} "VENDING" {time} 0
task_pick_up_object -1 {object} 3@ {xOffset} 0.062 {yOffset} $y {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {time} 0

:VENDING_1001
close_sequence_task $sequence_task_obj
perform_sequence_task $scplayer {sequence} $sequence_task_obj
clear_sequence_task $sequence_task_obj
add_score $player1 {money} -1
clear_help 
if or
  does_object_have_this_model 0@ {modelId} #VENDIN3
  does_object_have_this_model 0@ {modelId} #CJ_CANDYVENDOR
  does_object_have_this_model 0@ {modelId} #CJ_EXT_CANDY
goto_if_false @VENDING_1076
load_mission_audio MissionAudioSlot.Slot4 {audioId} 42601
goto @VENDING_1085

:VENDING_1076
load_mission_audio MissionAudioSlot.Slot4 {audioId} 42600

:VENDING_1085
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @VENDING_1111
attach_mission_audio_to_char MissionAudioSlot.Slot4 {handle} $scplayer
play_mission_audio MissionAudioSlot.Slot4

:VENDING_1111
set_lvar_int_to_var_int 2@ = $game_timer
2@ += 3000
1@ += 1

:VENDING_1134
goto @VENDING_1169

:VENDING_1141
$x, $y, $z = get_char_coordinates $scplayer
add_one_off_sound $x {y} $y {z} $z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied

:VENDING_1169
goto @VENDING_1192

:VENDING_1176
clear_help 
set_player_enter_car_button $player1 {enabled} True
1@ = 1

:VENDING_1192
goto @VENDING_1210

:VENDING_1199
request_animation "VENDING"

:VENDING_1210
if 
  1@ == 3
goto_if_false @VENDING_1324
$task_status = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @VENDING_1324
increment_int_stat StatId.Calories {value} 5
$temp_integer_1 = get_char_health $scplayer
$temp_integer_1 += 30
set_char_health $scplayer {health} $temp_integer_1
mark_object_as_no_longer_needed 3@
clear_help 
set_player_enter_car_button $player1 {enabled} True
set_lvar_int_to_var_int 2@ = $game_timer
2@ += 1500
1@ += 1

:VENDING_1324
if 
  1@ == 4
goto_if_false @VENDING_1384
if 
  is_int_var_greater_than_int_lvar $game_timer > 2@
goto_if_false @VENDING_1384
clear_char_tasks $scplayer
remove_animation "VENDING"
1@ = 0

:VENDING_1384
goto @VENDING_1477

:VENDING_1391
if 
  1@ > 0
goto_if_false @VENDING_1477
if 
  1@ > 1
goto_if_false @VENDING_1436
clear_help 
set_player_enter_car_button $player1 {enabled} True

:VENDING_1436
if 
  1@ > 2
goto_if_false @VENDING_1459
mark_object_as_no_longer_needed 3@

:VENDING_1459
remove_animation "VENDING"
1@ = 0

:VENDING_1477
goto @VENDING_1572

:VENDING_1484
if 
  1@ > 0
goto_if_false @VENDING_1570
if 
  1@ > 1
goto_if_false @VENDING_1529
clear_help 
set_player_enter_car_button $player1 {enabled} True

:VENDING_1529
if 
  1@ > 2
goto_if_false @VENDING_1552
mark_object_as_no_longer_needed 3@

:VENDING_1552
remove_animation "VENDING"
1@ = 0

:VENDING_1570
terminate_this_script 

:VENDING_1572
goto @VENDING_1667

:VENDING_1579
if 
  1@ > 0
goto_if_false @VENDING_1665
if 
  1@ > 1
goto_if_false @VENDING_1624
clear_help 
set_player_enter_car_button $player1 {enabled} True

:VENDING_1624
if 
  1@ > 2
goto_if_false @VENDING_1647
mark_object_as_no_longer_needed 3@

:VENDING_1647
remove_animation "VENDING"
1@ = 0

:VENDING_1665
terminate_this_script 

:VENDING_1667
goto @VENDING_80
terminate_this_script 

//-------------External script 9 (FOOD_VENDOR)---------------

:FODVEND
script_name 'FODVEND'
1@ = 0
if 
  1@ == 1
goto_if_false @FODVEND_58
0@ = create_object_no_offset #ICESCART_PROP {x} 0.0 {y} 0.0 {z} 0.0

:FODVEND_58
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @FODVEND_1130
if 
  is_object_within_brain_activation_range 0@
goto_if_false @FODVEND_1075
if 
  is_player_playing $player1
goto_if_false @FODVEND_1022
if 
  not has_object_been_uprooted 0@
goto_if_false @FODVEND_924
if 
  1@ == 0
goto_if_false @FODVEND_469
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} -1.0
set_var_float_to_var_float $x_temp = $x
$x_temp -= 0.5
set_var_float_to_var_float $y_temp = $y
$y_temp -= 0.5
set_var_float_to_var_float $z_temp = $z
set_var_float_to_var_float $temp_float_1 = $x
$temp_float_1 += 0.5
set_var_float_to_var_float $temp_float_2 = $y
$temp_float_2 += 0.5
set_var_float_to_var_float $temp_float_3 = $z
$temp_float_3 += 2.0
if 
  not is_area_occupied $x_temp {leftBottomY} $y_temp {leftBottomZ} $z_temp {rightTopX} $temp_float_1 {rightTopY} $temp_float_2 {rightTopZ} $temp_float_3 {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FODVEND_462
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 1.0
goto_if_false @FODVEND_455
request_model 168
if 
  has_model_loaded 168
goto_if_false @FODVEND_455
2@ = create_char PedType.CivMale {modelId} 168 {x} $x {y} $y {z} $z
$x_temp, $y_temp, $z_temp = get_offset_from_object_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
sub_float_var_from_float_var $x_temp -= $x
sub_float_var_from_float_var $y_temp -= $y
$heading = get_heading_from_vector_2d $x_temp {y} $y_temp
set_char_heading 2@ {heading} $heading
1@ += 1

:FODVEND_455
goto @FODVEND_469

:FODVEND_462
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_469
if 
  1@ == 1
goto_if_false @FODVEND_742
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 8.0 {yRadius} 8.0 {drawSphere} False
goto_if_false @FODVEND_742
request_animation "VENDING"
if 
  has_animation_loaded "VENDING"
goto_if_false @FODVEND_742
if 
  is_score_greater $player1 {money} 0
goto_if_false @FODVEND_742
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @FODVEND_742
$temp_integer_1 = get_char_health $scplayer
$temp_integer_1 += 50
set_char_health $scplayer {health} $temp_integer_1
task_play_anim_secondary $scplayer {animationName} "VEND_EAT1_P" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
increment_int_stat StatId.Calories {value} 10
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
add_score $player1 {money} -1
1@ += 1

:FODVEND_742
if 
  1@ == 2
goto_if_false @FODVEND_802
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @FODVEND_802
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 27000
1@ += 1

:FODVEND_802
if 
  1@ == 3
goto_if_false @FODVEND_917
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @FODVEND_917
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  not locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @FODVEND_917
1@ = 1

:FODVEND_917
goto @FODVEND_1015

:FODVEND_924
if 
  1@ > 0
goto_if_false @FODVEND_1008
mark_char_as_no_longer_needed 2@
if 
  is_player_playing $player1
goto_if_false @FODVEND_990
if 
  not is_char_dead 2@
goto_if_false @FODVEND_990
task_kill_char_on_foot_timed 2@ {target} $scplayer {time} 10000

:FODVEND_990
remove_animation "VENDING"
1@ = 0

:FODVEND_1008
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_1015
goto @FODVEND_1068

:FODVEND_1022
if 
  1@ > 0
goto_if_false @FODVEND_1063
mark_char_as_no_longer_needed 2@
remove_animation "VENDING"
1@ = 0

:FODVEND_1063
mark_model_as_no_longer_needed 168

:FODVEND_1068
goto @FODVEND_1123

:FODVEND_1075
if 
  1@ > 0
goto_if_false @FODVEND_1116
mark_char_as_no_longer_needed 2@
remove_animation "VENDING"
1@ = 0

:FODVEND_1116
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_1123
goto @FODVEND_1178

:FODVEND_1130
if 
  1@ > 0
goto_if_false @FODVEND_1171
mark_char_as_no_longer_needed 2@
remove_animation "VENDING"
1@ = 0

:FODVEND_1171
mark_model_as_no_longer_needed 168
terminate_this_script 

:FODVEND_1178
goto @FODVEND_58
terminate_this_script 

//-------------External script 10 (GATES_SCRIPT)---------------

:GATEOS
script_name 'GATEOS'
1@ = 0
if 
  1@ == 1
goto_if_false @GATEOS_80
0@ = create_object_no_offset #GATE_AUTOL {x} 0.0 {y} 0.0 {z} 0.0
0@ = create_object_no_offset #GATE_AUTOR {x} 0.0 {y} 0.0 {z} 0.0

:GATEOS_80
wait 0
$game_timer = get_game_timer 
if 
  does_object_exist 0@
goto_if_false @GATEOS_997
if 
  is_object_within_brain_activation_range 0@
goto_if_false @GATEOS_988
if 
  1@ == 0
goto_if_false @GATEOS_502
if 
  is_player_playing $player1
goto_if_false @GATEOS_502
9@ = get_object_model 0@
if 
  has_model_loaded 9@
goto_if_false @GATEOS_502
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @GATEOS_477
if or
  is_char_in_model $scplayer {modelId} 433
  is_char_in_model $scplayer {modelId} 470
  is_char_in_model $scplayer {modelId} 432
goto_if_false @GATEOS_366
$temp_float_1, $temp_float_2, $temp_float_3 = get_level_design_coords_for_object 0@ {nth} 5
$x_temp, $y_temp, $z_temp = get_level_design_coords_for_object 0@ {nth} 6
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 7
$z = get_distance_between_coords_2d $x_temp {fromY} $y_temp {toX} $x {toZ} $y
$z *= -1.0
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} $temp_float_1 {leftBottomY} $temp_float_2 {leftBottomZ} $temp_float_3 {rightTopX} $x_temp {rightTopY} $y_temp {rightTopZ} $z_temp {angle} $z {drawSphere} False
goto_if_false @GATEOS_366
1@ = 1

:GATEOS_366
$temp_float_1, $temp_float_2, $temp_float_3 = get_level_design_coords_for_object 0@ {nth} 1
$x_temp, $y_temp, $z_temp = get_level_design_coords_for_object 0@ {nth} 2
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 3
$z = get_distance_between_coords_2d $x_temp {fromY} $y_temp {toX} $x {toZ} $y
if 
  is_char_in_angled_area_3d $scplayer {leftBottomX} $temp_float_1 {leftBottomY} $temp_float_2 {leftBottomZ} $temp_float_3 {rightTopX} $x_temp {rightTopY} $y_temp {rightTopZ} $z_temp {angle} $z {drawSphere} False
goto_if_false @GATEOS_477
1@ = 1

:GATEOS_477
if 
  $open_gate_now_flag == 1
goto_if_false @GATEOS_502
1@ = 1

:GATEOS_502
if 
  1@ == 1
goto_if_false @GATEOS_589
9@ = get_object_model 0@
if 
  has_model_loaded 9@
goto_if_false @GATEOS_589
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
5@, 6@, 7@ = get_object_coordinates 0@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart
1@ += 1

:GATEOS_589
if 
  1@ == 2
goto_if_false @GATEOS_727
if 
  slide_object 0@ {posX} 2@ {posY} 3@ {posZ} 4@ {speedX} 0.1 {speedY} 0.1 {speedZ} 0.1 {collisionCheck} True
goto_if_false @GATEOS_727
if 
  locate_object_3d 0@ {x} 2@ {y} 3@ {z} 4@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @GATEOS_727
set_object_coordinates 0@ {x} 2@ {y} 3@ {z} 4@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop
$open_gate_now_flag += 1
1@ += 1

:GATEOS_727
if 
  1@ == 3
goto_if_false @GATEOS_770
if 
  $gate_stay_open == 0
goto_if_false @GATEOS_770
1@ += 1

:GATEOS_770
if 
  1@ == 4
goto_if_false @GATEOS_850
if 
  is_player_playing $player1
goto_if_false @GATEOS_850
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 20.0 {yRadius} 20.0 {drawSphere} False
goto_if_false @GATEOS_850
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStart
1@ += 1

:GATEOS_850
if 
  1@ == 5
goto_if_false @GATEOS_981
if 
  slide_object 0@ {posX} 5@ {posY} 6@ {posZ} 7@ {speedX} 0.1 {speedY} 0.1 {speedZ} 0.1 {collisionCheck} True
goto_if_false @GATEOS_981
if 
  locate_object_3d 0@ {x} 5@ {y} 6@ {z} 7@ {xRadius} 0.1 {yRadius} 0.1 {zRadius} 0.1 {drawSphere} False
goto_if_false @GATEOS_981
set_object_coordinates 0@ {x} 5@ {y} 6@ {z} 7@
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundMeshGateOpenStop
1@ = 0

:GATEOS_981
goto @GATEOS_990

:GATEOS_988
terminate_this_script 

:GATEOS_990
goto @GATEOS_999

:GATEOS_997
terminate_this_script 

:GATEOS_999
goto @GATEOS_80
terminate_this_script 

//-------------External script 11 (GYMBIKE)---------------

:GYMBIKE
script_name 'GYMBIKE'
$bike_start_sound = 0
$temp_ply_z = 0.0
$bike_shake_speed = 0
$bike_TIMERC = 0
$bike_has_KD = 0
5@ = 0.0
6@ = 0.0
7@ = 0.0
8@ = 0.0
9@ = 0.0
10@ = 0.0
11@ = 0.0
12@ = 0.0
13@ = 0.0
14@ = 0.0
15@ = 0.0
$ply_exbikex = 0.0
$ply_exbikey = 0.0
16@ = 0.0
17@ = 0.0
19@ = 0.0
$bike_speed_level = 0
20@ = 0
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
28@ = 0
$ply_exbikex = 0.0
$ply_exbikey = 0.0
$speedbar_bike = 0
$levelbar_bike = 0
$distanceon_bike = 0
$distancetoaddbike_gym = 0.0
$distanceon_bikefloat = 0.0
20@ = 0
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
28@ = 0
$levelbar_bike = 0
30@ = 0
29@ = 0
$bike_txt = 0
TIMERA = 0
TIMERB = 0
if 
  30@ == 1
goto_if_false @GYMBIKE_486
0@ = create_object_no_offset #CM_BOX {x} 0.0 {y} 0.0 {z} 0.0

:GYMBIKE_486
if 
  does_object_exist 0@
goto_if_false @GYMBIKE_538
5@, 6@, 7@ = get_object_coordinates 0@
11@, 12@, 13@ = get_object_coordinates 0@
4@ = get_object_heading 0@

:GYMBIKE_538
set_var_float_to_lvar_float $bike_pedals_z = 7@
$bike_pedals_z += 0.15
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 90.0
1@ = sin 3@
2@ = cos 3@
1@ *= 0.05
2@ *= 0.05
set_var_float_to_lvar_float $expedalsx = 5@
add_float_lvar_to_float_var $expedalsx += 2@
set_var_float_to_lvar_float $expedalsy = 6@
add_float_lvar_to_float_var $expedalsy += 1@
$bike_pedals = create_object #PEDALS {x} $expedalsx {y} $expedalsy {z} $bike_pedals_z
set_object_heading $bike_pedals {heading} 4@
set_lvar_float_to_lvar_float 10@ = 7@
10@ += 0.9
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 45.0
1@ = sin 3@
2@ = cos 3@
1@ *= 2.8
2@ *= 2.8
set_lvar_float_to_lvar_float 8@ = 5@
add_float_lvar_to_float_lvar 8@ += 2@
set_lvar_float_to_lvar_float 9@ = 6@
add_float_lvar_to_float_lvar 9@ += 1@
4@ -= 180.0
3@ += 45.0
1@ = sin 3@
2@ = cos 3@
1@ *= 0.5
2@ *= 0.5
add_float_lvar_to_float_lvar 5@ += 2@
add_float_lvar_to_float_lvar 6@ += 1@
set_lvar_float_to_lvar_float 3@ = 4@
3@ -= 90.0
1@ = sin 3@
2@ = cos 3@
1@ *= 0.5
2@ *= 0.5
set_var_float_to_lvar_float $ply_exbikex = 5@
add_float_lvar_to_float_var $ply_exbikex += 2@
set_var_float_to_lvar_float $ply_exbikey = 6@
add_float_lvar_to_float_var $ply_exbikey += 1@
7@ += 0.05
$speedbar_bike = 0
$distanceon_bike = 0
$are_anims_loaded = 0

:GYMBIKE_960
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMBIKE_987
delete_object $bike_pedals
terminate_this_script 

:GYMBIKE_987
if 
  not is_object_within_brain_activation_range 0@
goto_if_false @GYMBIKE_1010
delete_object $bike_pedals
terminate_this_script 

:GYMBIKE_1010
if 
  is_player_playing $player1
goto_if_false @GYMBIKE_6332
if 
  20@ == 0
goto_if_false @GYMBIKE_1371
if and
  28@ == 0
  not is_player_using_jetpack $player1
goto_if_false @GYMBIKE_1330
if 
  locate_char_on_foot_3d $scplayer {x} 5@ {y} 6@ {z} 7@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMBIKE_1296
if 
  29@ == 0
goto_if_false @GYMBIKE_1145
print_help_forever 'GYM1_81'
29@ = 1

:GYMBIKE_1145
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMBIKE_1289
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMBIKE_1273
$gym_day, $gym_month = get_current_date 
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @GYMBIKE_1250
20@ = 1
$playerexercising_flag = 1
$gym_TIMERC = 0
goto @GYMBIKE_1266

:GYMBIKE_1250
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMBIKE_1266
goto @GYMBIKE_1289

:GYMBIKE_1273
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMBIKE_1289
goto @GYMBIKE_1323

:GYMBIKE_1296
if 
  29@ == 1
goto_if_false @GYMBIKE_1323
clear_help 
29@ = 0

:GYMBIKE_1323
goto @GYMBIKE_1371

:GYMBIKE_1330
if 
  not locate_char_on_foot_2d $scplayer {x} 5@ {y} 6@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMBIKE_1371
28@ = 0

:GYMBIKE_1371
if 
  20@ == 1
goto_if_false @GYMBIKE_6332
if and
  $playerexercising_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_1501
set_char_collision $scplayer {state} False
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} $ply_exbikex {y} $ply_exbikey {z} 7@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} 4@
point_camera_at_point 11@ {y} 12@ {z} 10@ {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2

:GYMBIKE_1501
if 
  $are_anims_loaded == 0
goto_if_false @GYMBIKE_1611
request_animation "GYMNASIUM"

:GYMBIKE_1532
if 
  not has_animation_loaded "GYMNASIUM"
goto_if_false @GYMBIKE_1567
wait 0
goto @GYMBIKE_1532

:GYMBIKE_1567
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMBIKE_1578
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_1604
wait 0
goto @GYMBIKE_1578

:GYMBIKE_1604
$are_anims_loaded = 1

:GYMBIKE_1611
if and
  $playerexercising_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2197
clear_char_tasks_immediately $scplayer
task_play_anim $scplayer {animationName} "GYM_BIKE_GETON" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
print_help_forever 'GYM1_60'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMBIKE_1890
$main_menu_bike = create_menu 'GYM1_D' {topLeftX} 31.0 {topLeftY} 180.0 {width} 178.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_bike {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMBIKE_2051

:GYMBIKE_1890
$main_menu_bike = create_menu 'GYM1_D' {topLeftX} 31.0 {topLeftY} 150.0 {width} 178.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_bike {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMBIKE_2051
set_active_menu_item $main_menu_bike {row} 0

:GYMBIKE_2058
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2183
wait 0
$gym_TIMERC += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_TIMERC > 20
goto_if_false @GYMBIKE_2130
clear_help 
delete_menu $main_menu_bike
$levelbar_bike = 0
goto @GYMBIKE_5327

:GYMBIKE_2130
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_2176
clear_help 
$levelbar_bike = get_menu_item_selected $main_menu_bike
$levelbar_bike += 1
delete_menu $main_menu_bike
goto @GYMBIKE_2183

:GYMBIKE_2176
goto @GYMBIKE_2058

:GYMBIKE_2183
$playerexercising_flag = 3
TIMERB = 0

:GYMBIKE_2197
if and
  $playerexercising_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2388
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_GETON"
goto_if_false @GYMBIKE_2388
15@ = get_char_anim_current_time $scplayer {animationName} "GYM_BIKE_GETON"
if 
  15@ == 1.0
goto_if_false @GYMBIKE_2388
task_play_anim $scplayer {animationName} "GYM_BIKE_SLOW" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $bike_pedals {animationName} "PEDALS_SLOW" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
$playerexercising_flag = 4

:GYMBIKE_2388
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_2583
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_SLOW"
goto_if_false @GYMBIKE_2583
15@ = get_char_anim_current_time $scplayer {animationName} "GYM_BIKE_SLOW"
if 
  15@ == 0.0
goto_if_false @GYMBIKE_2583
set_char_anim_playing_flag $scplayer {animationName} "GYM_BIKE_SLOW" {flag} False
display_nth_onscreen_counter_with_string $speedbar_bike {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $levelbar_bike {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_4'
display_nth_onscreen_counter_with_string $distanceon_bike {display} CounterDisplay.Number {slot} 3 {text} 'GYM1_3'
21@ = 1
$playerexercising_flag = 5
TIMERB = 0

:GYMBIKE_2583
if and
  $playerexercising_flag == 5
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_6332
if 
  $bike_txt == 0
goto_if_false @GYMBIKE_2642
print_help_forever 'GYM1_40'
$bike_txt = 1

:GYMBIKE_2642
if and
  TIMERB > 4000
  $bike_txt == 1
goto_if_false @GYMBIKE_2688
clear_help 
print_help_forever 'GYM1_41'
$bike_txt = 2

:GYMBIKE_2688
if and
  TIMERB > 8000
  $bike_txt == 2
goto_if_false @GYMBIKE_2723
clear_help 
$bike_txt = 101

:GYMBIKE_2723
19@ = get_float_stat StatId.Stamina
19@ /= 100.0
set_lvar_float_to_lvar_float 16@ = 17@
add_float_lvar_to_float_lvar 16@ += 19@
sub_timed_val_from_float_lvar 14@ -=@ 0.35
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_2816
if 
  22@ == 0
goto_if_false @GYMBIKE_2816
add_float_lvar_to_float_lvar 14@ += 16@
22@ = 1

:GYMBIKE_2816
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_2858
if 
  22@ == 1
goto_if_false @GYMBIKE_2858
22@ = 0

:GYMBIKE_2858
if 
  0.0 > 14@
goto_if_false @GYMBIKE_2889
14@ = 0.0

:GYMBIKE_2889
if 
  14@ > 100.0
goto_if_false @GYMBIKE_2920
14@ = 100.0

:GYMBIKE_2920
if 
  21@ == 1
goto_if_false @GYMBIKE_3053
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_SLOW"
goto_if_false @GYMBIKE_3053
set_char_anim_playing_flag $scplayer {animationName} "GYM_BIKE_SLOW" {flag} True
set_char_anim_speed $scplayer {animName} "GYM_BIKE_SLOW" {animSpeed} 0.5
set_object_anim_speed $bike_pedals {animationName} "PEDALS_SLOW" {speed} 0.5
TIMERA = 0
21@ = 2

:GYMBIKE_3053
if and
  21@ == 2
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_6228
19@ = get_float_stat StatId.Stamina
19@ /= 200.0
if 
  0.0 > 19@
goto_if_false @GYMBIKE_3124
19@ = 0.0

:GYMBIKE_3124
cset_var_int_to_lvar_float $bike_speed_level =# 19@
set_var_int_to_var_int $levelbar_bike_1 = $levelbar_bike
sub_int_var_from_int_var $levelbar_bike_1 -= $bike_speed_level
if 
  14@ == 0.0
goto_if_false @GYMBIKE_3301
if 
  23@ == 0
goto_if_false @GYMBIKE_3301
task_play_anim $scplayer {animationName} "GYM_BIKE_STILL" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $bike_pedals {animationName} "PEDALS_STILL" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 0
25@ = 0
26@ = 0
23@ = 1

:GYMBIKE_3301
if 
  24@ == 0
goto_if_false @GYMBIKE_3459
if and
  3 > $levelbar_bike_1
  14@ <> 0.0
goto_if_false @GYMBIKE_3459
task_play_anim $scplayer {animationName} "GYM_BIKE_SLOW" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $bike_pedals {animationName} "PEDALS_SLOW" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 1
25@ = 0
26@ = 0
23@ = 0

:GYMBIKE_3459
if 
  25@ == 0
goto_if_false @GYMBIKE_3623
if and
  $levelbar_bike_1 > 2
  7 > $levelbar_bike_1
  14@ <> 0.0
goto_if_false @GYMBIKE_3623
task_play_anim $scplayer {animationName} "GYM_BIKE_FAST" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $bike_pedals {animationName} "PEDALS_MED" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 0
26@ = 0
25@ = 1
23@ = 0

:GYMBIKE_3623
if 
  26@ == 0
goto_if_false @GYMBIKE_3790
if and
  $levelbar_bike_1 > 6
  11 > $levelbar_bike_1
  14@ <> 0.0
goto_if_false @GYMBIKE_3790
task_play_anim $scplayer {animationName} "GYM_BIKE_FASTER" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_object_anim $bike_pedals {animationName} "PEDALS_FAST" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} True {loop} -1
24@ = 0
25@ = 0
26@ = 1
23@ = 0

:GYMBIKE_3790
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMBIKE_3928
if 
  27@ == 0
goto_if_false @GYMBIKE_3928
if and
  $levelbar_bike > 0
  10 > $levelbar_bike
goto_if_false @GYMBIKE_3928
$levelbar_bike += 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_3880
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMBIKE_3880
14@ -= 20.0
if 
  0.0 > 14@
goto_if_false @GYMBIKE_3921
14@ = 0.0

:GYMBIKE_3921
27@ = 1

:GYMBIKE_3928
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMBIKE_4025
if 
  27@ == 0
goto_if_false @GYMBIKE_4025
if and
  $levelbar_bike > 1
  11 > $levelbar_bike
goto_if_false @GYMBIKE_4025
$levelbar_bike -= 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_4018
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMBIKE_4018
27@ = 2

:GYMBIKE_4025
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMBIKE_4067
if 
  27@ == 1
goto_if_false @GYMBIKE_4067
27@ = 0

:GYMBIKE_4067
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMBIKE_4109
if 
  27@ == 2
goto_if_false @GYMBIKE_4109
27@ = 0

:GYMBIKE_4109
if 
  $levelbar_bike == 1
goto_if_false @GYMBIKE_4137
17@ = 6.5

:GYMBIKE_4137
if 
  $levelbar_bike == 2
goto_if_false @GYMBIKE_4165
17@ = 5.9

:GYMBIKE_4165
if 
  $levelbar_bike == 3
goto_if_false @GYMBIKE_4193
17@ = 5.0

:GYMBIKE_4193
if 
  $levelbar_bike == 4
goto_if_false @GYMBIKE_4221
17@ = 4.3

:GYMBIKE_4221
if 
  $levelbar_bike == 5
goto_if_false @GYMBIKE_4249
17@ = 3.7

:GYMBIKE_4249
if 
  $levelbar_bike == 6
goto_if_false @GYMBIKE_4277
17@ = 2.9

:GYMBIKE_4277
if 
  $levelbar_bike == 7
goto_if_false @GYMBIKE_4305
17@ = 2.2

:GYMBIKE_4305
if 
  $levelbar_bike == 8
goto_if_false @GYMBIKE_4333
17@ = 1.5

:GYMBIKE_4333
if 
  $levelbar_bike == 9
goto_if_false @GYMBIKE_4361
17@ = 1.1

:GYMBIKE_4361
if 
  $levelbar_bike == 10
goto_if_false @GYMBIKE_4389
17@ = 0.7

:GYMBIKE_4389
if 
  14@ >= 0.0
goto_if_false @GYMBIKE_4441
if 
  10.0 >= 14@
goto_if_false @GYMBIKE_4441
18@ = 0.9

:GYMBIKE_4441
if 
  14@ >= 11.0
goto_if_false @GYMBIKE_4493
if 
  20.0 >= 14@
goto_if_false @GYMBIKE_4493
18@ = 1.0

:GYMBIKE_4493
if 
  14@ >= 21.0
goto_if_false @GYMBIKE_4545
if 
  30.0 >= 14@
goto_if_false @GYMBIKE_4545
18@ = 1.1

:GYMBIKE_4545
if 
  14@ >= 31.0
goto_if_false @GYMBIKE_4597
if 
  40.0 >= 14@
goto_if_false @GYMBIKE_4597
18@ = 1.2

:GYMBIKE_4597
if 
  14@ >= 41.0
goto_if_false @GYMBIKE_4649
if 
  50.0 >= 14@
goto_if_false @GYMBIKE_4649
18@ = 1.3

:GYMBIKE_4649
if 
  14@ >= 51.0
goto_if_false @GYMBIKE_4701
if 
  60.0 >= 14@
goto_if_false @GYMBIKE_4701
18@ = 1.4

:GYMBIKE_4701
if 
  14@ >= 61.0
goto_if_false @GYMBIKE_4753
if 
  70.0 >= 14@
goto_if_false @GYMBIKE_4753
18@ = 1.5

:GYMBIKE_4753
if 
  14@ >= 71.0
goto_if_false @GYMBIKE_4805
if 
  80.0 >= 14@
goto_if_false @GYMBIKE_4805
18@ = 1.6

:GYMBIKE_4805
if 
  14@ >= 81.0
goto_if_false @GYMBIKE_4857
if 
  90.0 >= 14@
goto_if_false @GYMBIKE_4857
18@ = 1.7

:GYMBIKE_4857
if 
  14@ >= 91.0
goto_if_false @GYMBIKE_4909
if 
  100.0 >= 14@
goto_if_false @GYMBIKE_4909
18@ = 1.8

:GYMBIKE_4909
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_SLOW"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_4968
set_char_anim_speed $scplayer {animName} "GYM_BIKE_SLOW" {animSpeed} 18@

:GYMBIKE_4968
if and
  is_object_playing_anim $bike_pedals {animationName} "PEDALS_SLOW"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5023
set_object_anim_speed $bike_pedals {animationName} "PEDALS_SLOW" {speed} 18@

:GYMBIKE_5023
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_FAST"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5082
set_char_anim_speed $scplayer {animName} "GYM_BIKE_FAST" {animSpeed} 18@

:GYMBIKE_5082
if and
  is_object_playing_anim $bike_pedals {animationName} "PEDALS_MED"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5135
set_object_anim_speed $bike_pedals {animationName} "PEDALS_MED" {speed} 18@

:GYMBIKE_5135
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BIKE_FASTER"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5198
set_char_anim_speed $scplayer {animName} "GYM_BIKE_FASTER" {animSpeed} 18@

:GYMBIKE_5198
if and
  is_object_playing_anim $bike_pedals {animationName} "PEDALS_FAST"
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5253
set_object_anim_speed $bike_pedals {animationName} "PEDALS_FAST" {speed} 18@

:GYMBIKE_5253
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_day_fitness > 200.0
goto_if_false @GYMBIKE_5787
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMBIKE_5311
$gym_day_fitness = 0.0

:GYMBIKE_5311
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5787

:GYMBIKE_5327
shake_pad PadId.Pad1 {time} 1 {intensity} 1
increment_int_stat StatId.DistExerciseBike {value} $distanceon_bike
set_lvar_int_to_lvar_int 31@ = TIMERB
31@ /= 1000
increment_int_stat StatId.LongestExerciseBikeTime {value} 31@
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5468
task_play_anim $scplayer {animationName} "GYM_BIKE_GETOFF" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
play_object_anim $bike_pedals {animationName} "PEDALS_STILL" {animationFile} "GYMNASIUM" {frameDelta} 4.0 {lockF} False {loop} -1

:GYMBIKE_5468
21@ = 0
22@ = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
20@ = 0
$playerexercising_flag = 0
$levelbar_bike = 0
$distanceon_bike = 0
$distanceon_bikefloat = 0.0
$distancetoaddbike_gym = 0.0
$speedbar_bike = 0
14@ = 0.0
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMBIKE_5619
set_float_stat StatId.Fat {value} 0.0

:GYMBIKE_5619
if 
  does_object_exist 0@
goto_if_false @GYMBIKE_5642
set_object_collision 0@ {state} True

:GYMBIKE_5642
$animstate_flag = 0
$playernextset_flag = 0
$are_anims_loaded = 0
remove_animation "GYMNASIUM"
clear_mission_audio MissionAudioSlot.Slot4
clear_onscreen_counter $speedbar_bike
clear_onscreen_counter $levelbar_bike
clear_onscreen_counter $distanceon_bike
restore_camera_jumpcut 
set_player_control $player1 {state} False
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBIKE_5731
set_player_control $player1 {state} True

:GYMBIKE_5731
28@ = 1
delete_menu $main_menu_bike
clear_help 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:GYMBIKE_5759
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBIKE_5787
wait 0
goto @GYMBIKE_5759

:GYMBIKE_5787
if 
  does_object_exist 0@
goto_if_false @GYMBIKE_5912
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBIKE_5912
if 
  14@ > 10.0
goto_if_false @GYMBIKE_5879
if 
  $bike_start_sound == 0
goto_if_false @GYMBIKE_5872
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymBikeStart
$bike_start_sound = 1

:GYMBIKE_5872
goto @GYMBIKE_5912

:GYMBIKE_5879
if 
  $bike_start_sound == 1
goto_if_false @GYMBIKE_5912
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymBikeStop
$bike_start_sound = 0

:GYMBIKE_5912
if 
  TIMERA > 250
goto_if_false @GYMBIKE_6228
TIMERA -= 250
set_var_float_to_lvar_float $distancetoaddbike_gym = 14@
$distancetoaddbike_gym /= 10.0
cset_var_float_to_var_int $statbike_temp =# $levelbar_bike
$statbike_temp /= 10.0
$statbike_temp += 1.0
mult_float_var_by_float_var $statbike_temp *= $distancetoaddbike_gym
add_float_var_to_float_var $statbikestamina_ctr += $statbike_temp
if 
  $statbikestamina_ctr >= 400.0
goto_if_false @GYMBIKE_6146
$statbikestamina_ctr -= 400.0
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMBIKE_6069
decrement_float_stat StatId.Fat {value} 8.0

:GYMBIKE_6069
if 
  $bike_show_stat == 3
goto_if_false @GYMBIKE_6120
$bike_show_stat = 0
increment_float_stat StatId.Stamina {value} 4.0
$gym_day_fitness += 4.0
goto @GYMBIKE_6146

:GYMBIKE_6120
increment_float_stat_no_message StatId.Stamina {value} 4.0
$gym_day_fitness += 4.0
$bike_show_stat += 1

:GYMBIKE_6146
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMBIKE_6191
$gym_final_day, $gym_final_month = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMBIKE_6191
if 
  $distanceon_bike < 999999
goto_if_false @GYMBIKE_6228
add_float_var_to_float_var $distanceon_bikefloat += $distancetoaddbike_gym
cset_var_int_to_var_float $distanceon_bike =# $distanceon_bikefloat

:GYMBIKE_6228
$bike_TIMERC += 1
set_var_int_to_var_int $bike_shake_speed = $speedbar_bike
$bike_shake_speed -= 100
if 
  $bike_shake_speed > -40
goto_if_false @GYMBIKE_6275
$bike_shake_speed = -40

:GYMBIKE_6275
if 
  is_int_var_greater_or_equal_to_int_var $bike_TIMERC >= $bike_shake_speed
goto_if_false @GYMBIKE_6324
$bike_TIMERC = 0
$speedbar_bike *= 12
$speedbar_bike /= 10
shake_pad PadId.Pad1 {time} 100 {intensity} $speedbar_bike

:GYMBIKE_6324
cset_var_int_to_lvar_float $speedbar_bike =# 14@

:GYMBIKE_6332
goto @GYMBIKE_960
terminate_this_script 

//-------------External script 12 (GYMBENCH)---------------

:GYMBENC
script_name 'GYMBENC'
$bpress_resistance = 0.0
$temp_muscle_stat = 0.0
$bench_playing = 2
$play_bench_once = 0
23@ = 0
24@ = 0
25@ = 0
26@ = 0
27@ = 0
$bench_has_KD = 0
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
$animframe_freepickup = 0.0
$animframe_freegetoff = 0.0
21@ = 1
$reps_bpress = 0
$bench_txt = 0
22@ = 0
29@ = 0
TIMERA = 0
TIMERB = 0
if 
  29@ == 1
goto_if_false @GYMBENC_217
0@ = create_object_no_offset #BEACHTOWEL01 {x} 0.0 {y} 0.0 {z} 0.0

:GYMBENC_217
if 
  does_object_exist 0@
goto_if_false @GYMBENC_277
5@, 6@, 7@ = get_object_coordinates 0@
8@, 9@, 10@ = get_object_coordinates 0@
11@ = get_object_heading 0@
3@ = get_object_heading 0@

:GYMBENC_277
1@ = 0.0
2@ = 0.0
12@ = 0.0
13@ = 0.0
14@ = 0.0
21@ = 1
$reps_bpress = 0
set_lvar_float_to_lvar_float 14@ = 7@
14@ += 1.7
3@ -= 180.0
set_lvar_float_to_lvar_float 4@ = 3@
4@ -= 270.0
1@ = sin 4@
2@ = cos 4@
1@ *= 1.0
2@ *= 1.0
add_float_lvar_to_float_lvar 5@ += 2@
add_float_lvar_to_float_lvar 6@ += 1@
1@ *= 3.0
2@ *= 3.0
set_lvar_float_to_lvar_float 12@ = 5@
add_float_lvar_to_float_lvar 12@ += 2@
set_lvar_float_to_lvar_float 13@ = 6@
add_float_lvar_to_float_lvar 13@ += 1@
11@ += 90.0
1@ = sin 11@
2@ = cos 11@
1@ *= 1.0
2@ *= 1.0
sub_float_lvar_from_float_lvar 8@ -= 2@
sub_float_lvar_from_float_lvar 9@ -= 1@
30@ = create_object #KMB_BPRESS {x} 8@ {y} 9@ {z} 10@
attach_object_to_object 30@ {handle} 0@ {xOffset} -0.45 {yOffset} 0.45 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 180.0 {zRotation} 270.0
3@ -= 180.0
$levelbar_bike = 1
$are_anims_loaded = 0

:GYMBENC_632
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMBENC_659
delete_object 30@
terminate_this_script 

:GYMBENC_659
if 
  not is_object_within_brain_activation_range 0@
goto_if_false @GYMBENC_682
delete_object 30@
terminate_this_script 

:GYMBENC_682
if 
  is_player_playing $player1
goto_if_false @GYMBENC_8093
if and
  $playerexercising_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_1102
if and
  23@ == 0
  not is_player_using_jetpack $player1
goto_if_false @GYMBENC_1102
if 
  27@ == 0
goto_if_false @GYMBENC_1061
if 
  locate_char_on_foot_3d $scplayer {x} 5@ {y} 6@ {z} 7@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMBENC_1027
if 
  22@ == 0
goto_if_false @GYMBENC_840
print_help_forever 'GYM1_81'
22@ = 1

:GYMBENC_840
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMBENC_1020
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMBENC_1004
$gym_day, $gym_month = get_current_date 
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @GYMBENC_981
23@ = 1
$playerexercising_flag = 1
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 5@ {y} 6@ {z} 7@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_heading $scplayer {heading} 3@
$gym_TIMERC = 0
goto @GYMBENC_997

:GYMBENC_981
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMBENC_997
goto @GYMBENC_1020

:GYMBENC_1004
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMBENC_1020
goto @GYMBENC_1054

:GYMBENC_1027
if 
  22@ == 1
goto_if_false @GYMBENC_1054
clear_help 
22@ = 0

:GYMBENC_1054
goto @GYMBENC_1102

:GYMBENC_1061
if 
  not locate_char_on_foot_2d $scplayer {x} 5@ {y} 6@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMBENC_1102
27@ = 0

:GYMBENC_1102
if and
  23@ == 1
  not is_char_dead $scplayer
goto_if_false @GYMBENC_8093
if 
  $playerexercising_flag == 1
goto_if_false @GYMBENC_1221
set_char_collision $scplayer {state} False
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 5@ {y} 6@ {z} 7@
set_fixed_camera_position 12@ {y} 13@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} 3@
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2

:GYMBENC_1221
if 
  $are_anims_loaded == 0
goto_if_false @GYMBENC_1311
request_animation "BENCHPRESS"
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMBENC_1264
if or
  not has_animation_loaded "BENCHPRESS"
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBENC_1304
wait 0
goto @GYMBENC_1264

:GYMBENC_1304
$are_anims_loaded = 1

:GYMBENC_1311
if and
  $playerexercising_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2547
print_help_forever 'GYM1_71'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMBENC_1538
$main_menu_bench = create_menu 'GYM1_E' {topLeftX} 31.0 {topLeftY} 180.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_bench {column} 0 {title} 'GYM1_72' {row0} 'GYM1_8' {row1} 'GYM1_9' {row2} 'GYM1_10' {row3} 'GYM1_11' {row4} 'GYM1_12' {row5} 'GYM1_13' {row6} 'GYM1_14' {row7} 'GYM1_15' {row8} 'GYM1_16' {row9} 'GYM1_17' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMBENC_1699

:GYMBENC_1538
$main_menu_bench = create_menu 'GYM1_E' {topLeftX} 31.0 {topLeftY} 150.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_bench {column} 0 {title} 'GYM1_72' {row0} 'GYM1_8' {row1} 'GYM1_9' {row2} 'GYM1_10' {row3} 'GYM1_11' {row4} 'GYM1_12' {row5} 'GYM1_13' {row6} 'GYM1_14' {row7} 'GYM1_15' {row8} 'GYM1_16' {row9} 'GYM1_17' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMBENC_1699
set_active_menu_item $main_menu_bench {row} 0

:GYMBENC_1706
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_1824
wait 0
$gym_TIMERC += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_TIMERC > 20
goto_if_false @GYMBENC_1771
clear_help 
delete_menu $main_menu_bench
goto @GYMBENC_7348

:GYMBENC_1771
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_1817
clear_help 
21@ = get_menu_item_selected $main_menu_bench
21@ += 1
delete_menu $main_menu_bench
goto @GYMBENC_1824

:GYMBENC_1817
goto @GYMBENC_1706

:GYMBENC_1824
if 
  21@ == 1
goto_if_false @GYMBENC_1862
$weightbp = 1.0
20@ = 5.0

:GYMBENC_1862
if 
  21@ == 2
goto_if_false @GYMBENC_1900
20@ = 5.2
$weightbp = 2.0

:GYMBENC_1900
if 
  21@ == 3
goto_if_false @GYMBENC_1938
20@ = 5.3
$weightbp = 3.0

:GYMBENC_1938
if 
  21@ == 4
goto_if_false @GYMBENC_1976
20@ = 5.5
$weightbp = 4.0

:GYMBENC_1976
if 
  21@ == 5
goto_if_false @GYMBENC_2014
20@ = 6.0
$weightbp = 5.0

:GYMBENC_2014
if 
  21@ == 6
goto_if_false @GYMBENC_2052
20@ = 6.5
$weightbp = 6.0

:GYMBENC_2052
if 
  21@ == 7
goto_if_false @GYMBENC_2090
20@ = 7.0
$weightbp = 7.0

:GYMBENC_2090
if 
  21@ == 8
goto_if_false @GYMBENC_2128
20@ = 7.5
$weightbp = 8.0

:GYMBENC_2128
if 
  21@ == 9
goto_if_false @GYMBENC_2166
20@ = 8.0
$weightbp = 9.0

:GYMBENC_2166
if 
  21@ == 10
goto_if_false @GYMBENC_2204
20@ = 8.5
$weightbp = 10.0

:GYMBENC_2204
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2266
task_play_anim $scplayer {animationName} "GYM_BP_GETON" {animationFile} "BENCHPRESS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_2266
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2540
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETON"
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2540
$animframe_bppickup = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETON"

:GYMBENC_2343
if 
  $animframe_bppickup <= 0.75
goto_if_false @GYMBENC_2413
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2406
$animframe_bppickup = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETON"

:GYMBENC_2406
goto @GYMBENC_2343

:GYMBENC_2413
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMBENC_2436
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRestWeights

:GYMBENC_2436
freeze_object_position 30@ {state} False
detach_object 30@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_2526
task_pick_up_object $scplayer {object} 30@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} -0.1 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:GYMBENC_2526
$playerexercising_flag = 4
TIMERA = 0

:GYMBENC_2540
$playerexercising_flag = 4

:GYMBENC_2547
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBENC_3225
if 
  $bench_txt == 0
goto_if_false @GYMBENC_2608
clear_help 
print_help_forever 'GYM1_37'
$bench_txt = 1

:GYMBENC_2608
if and
  TIMERA > 6000
  $bench_txt == 1
goto_if_false @GYMBENC_2654
clear_help 
print_help_forever 'GYM1_25'
$bench_txt = 2

:GYMBENC_2654
if and
  TIMERA > 9000
  $bench_txt == 2
goto_if_false @GYMBENC_2689
clear_help 
$bench_txt = 101

:GYMBENC_2689
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETON"
goto_if_false @GYMBENC_2776
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETON"
if 
  $animframe == 1.0
goto_if_false @GYMBENC_2769
goto @GYMBENC_2830

:GYMBENC_2769
goto @GYMBENC_3225

:GYMBENC_2776
if and
  $playernextset_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMBENC_3225
$reps_bpress = 0
$powerbar = 0
clear_onscreen_counter $reps_bpress
clear_onscreen_counter $powerbar
goto @GYMBENC_2830

:GYMBENC_2830
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMBENC_2878
$upperbodymusclestat_gym = 0.0

:GYMBENC_2878
set_var_float_to_var_float $bpress_resistance = $upperbodymusclestat_gym
$bpress_resistance += 30.0
if 
  $bpress_resistance > 75.0
goto_if_false @GYMBENC_2927
$bpress_resistance = 75.0

:GYMBENC_2927
cset_lvar_float_to_var_int 19@ =# $reps_bpress
set_var_float_to_var_float $animationtobeplayed = $bpress_resistance
sub_float_var_from_float_var $animationtobeplayed -= $weightbp
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMBENC_3017
task_play_anim $scplayer {animationName} "GYM_BP_UP_B" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_3017
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMBENC_3104
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMBENC_3104
task_play_anim $scplayer {animationName} "GYM_BP_UP_A" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_3104
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMBENC_3175
task_play_anim $scplayer {animationName} "GYM_BP_UP_SMOOTH" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_3175
display_nth_onscreen_counter_with_string $powerbar {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $reps_bpress {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_2'
$animstate_flag = 1
$playerexercising_flag = 5

:GYMBENC_3225
if and
  $playerexercising_flag == 5
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6956
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMBENC_3296
$upperbodymusclestat_gym = 0.0

:GYMBENC_3296
set_var_float_to_var_float $bpress_resistance = $upperbodymusclestat_gym
$bpress_resistance += 20.0
if 
  $bpress_resistance > 75.0
goto_if_false @GYMBENC_3345
$bpress_resistance = 75.0

:GYMBENC_3345
if 
  $bench_txt == 0
goto_if_false @GYMBENC_3383
clear_help 
print_help_forever 'GYM1_37'
$bench_txt = 1

:GYMBENC_3383
if and
  TIMERA > 6000
  $bench_txt == 1
goto_if_false @GYMBENC_3429
clear_help 
print_help_forever 'GYM1_25'
$bench_txt = 2

:GYMBENC_3429
if and
  TIMERA > 9000
  $bench_txt == 2
goto_if_false @GYMBENC_3464
clear_help 
$bench_txt = 101

:GYMBENC_3464
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMBENC_3517
$weightdb /= 2.0
sub_timed_float_var_from_float_lvar 18@ -=@ $weightbp
$weightdb *= 2.0

:GYMBENC_3517
if 
  $animstate_flag == 4
goto_if_false @GYMBENC_3545
sub_timed_val_from_float_lvar 18@ -=@ 2.0

:GYMBENC_3545
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_3587
if 
  26@ == 1
goto_if_false @GYMBENC_3587
26@ = 2

:GYMBENC_3587
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMBENC_3629
if 
  26@ == 3
goto_if_false @GYMBENC_3629
26@ = 0

:GYMBENC_3629
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMBENC_3766
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMBENC_3710
if 
  26@ == 0
goto_if_false @GYMBENC_3710
add_float_var_to_float_lvar 18@ += $bpress_resistance
26@ = 1

:GYMBENC_3710
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_3766
if 
  26@ == 2
goto_if_false @GYMBENC_3766
add_float_var_to_float_lvar 18@ += $bpress_resistance
26@ = 3

:GYMBENC_3766
if 
  0.0 > 18@
goto_if_false @GYMBENC_3797
18@ = 0.0

:GYMBENC_3797
if 
  18@ > 25.0
goto_if_false @GYMBENC_3829
$bench_sfx = set_char_say_context $scplayer {phrase} SpeechId.PainCjStrain

:GYMBENC_3829
if 
  18@ >= 100.0
goto_if_false @GYMBENC_3885
18@ = 100.0
if 
  $animstate_flag == 1
goto_if_false @GYMBENC_3885
$animstate_flag = 2

:GYMBENC_3885
if and
  $animstate_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMBENC_3950
if 
  $animvalue == 1.0
goto_if_false @GYMBENC_3950
26@ = 0
$animstate_flag = 3
TIMERB = 0

:GYMBENC_3950
if and
  $animstate_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6050
switch_start 21@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GYMBENC_4246 {caseNum1} 1 {caseLabel1} @GYMBENC_4101 {caseNum2} 2 {caseLabel2} @GYMBENC_4115 {caseNum3} 3 {caseLabel3} @GYMBENC_4129 {caseNum4} 4 {caseLabel4} @GYMBENC_4143 {caseNum5} 5 {caseLabel5} @GYMBENC_4157 {caseNum6} 6 {caseLabel6} @GYMBENC_4171 {caseNum7} 7 {caseLabel7} @GYMBENC_4186
switch_continued 8 {caseLabel1} @GYMBENC_4201 {caseNum2} 9 {caseLabel2} @GYMBENC_4216 {caseNum3} 10 {caseLabel3} @GYMBENC_4231 {caseNum4} -1 {caseLabel4} @GYMBENC_4246 {caseNum5} -1 {caseLabel5} @GYMBENC_4246 {caseNum6} -1 {caseLabel6} @GYMBENC_4246 {caseNum7} -1 {caseLabel7} @GYMBENC_4246 {caseNum8} -1 {caseLabel8} @GYMBENC_4246 {caseNum9} -1 {caseLabel9} @GYMBENC_4246

:GYMBENC_4101
$bench_weight = 40
goto @GYMBENC_4246

:GYMBENC_4115
$bench_weight = 60
goto @GYMBENC_4246

:GYMBENC_4129
$bench_weight = 80
goto @GYMBENC_4246

:GYMBENC_4143
$bench_weight = 100
goto @GYMBENC_4246

:GYMBENC_4157
$bench_weight = 120
goto @GYMBENC_4246

:GYMBENC_4171
$bench_weight = 160
goto @GYMBENC_4246

:GYMBENC_4186
$bench_weight = 200
goto @GYMBENC_4246

:GYMBENC_4201
$bench_weight = 240
goto @GYMBENC_4246

:GYMBENC_4216
$bench_weight = 280
goto @GYMBENC_4246

:GYMBENC_4231
$bench_weight = 320
goto @GYMBENC_4246

:GYMBENC_4246
$temp_bench_weight = get_int_stat StatId.HeaviestWeightBenchPress
if 
  is_int_var_greater_than_int_var $bench_weight > $temp_bench_weight
goto_if_false @GYMBENC_4279
set_int_stat StatId.HeaviestWeightBenchPress {value} $bench_weight

:GYMBENC_4279
shake_pad PadId.Pad1 {time} 200 {intensity} 200
if 
  $reps_bpress < 999999
goto_if_false @GYMBENC_4317
$reps_bpress += 1

:GYMBENC_4317
$temp_muscle_stat = get_float_stat StatId.BodyMuscle
if 
  1000.0 > $temp_muscle_stat
goto_if_false @GYMBENC_4625
if 
  21@ == 1
goto_if_false @GYMBENC_4373
20@ = 1.0

:GYMBENC_4373
if 
  21@ == 2
goto_if_false @GYMBENC_4401
20@ = 1.2

:GYMBENC_4401
if 
  21@ == 3
goto_if_false @GYMBENC_4429
20@ = 1.3

:GYMBENC_4429
if 
  21@ == 4
goto_if_false @GYMBENC_4457
20@ = 1.5

:GYMBENC_4457
if 
  21@ == 5
goto_if_false @GYMBENC_4485
20@ = 2.0

:GYMBENC_4485
if 
  21@ == 6
goto_if_false @GYMBENC_4513
20@ = 2.5

:GYMBENC_4513
if 
  21@ == 7
goto_if_false @GYMBENC_4541
20@ = 3.0

:GYMBENC_4541
if 
  21@ == 8
goto_if_false @GYMBENC_4569
20@ = 4.0

:GYMBENC_4569
if 
  21@ == 9
goto_if_false @GYMBENC_4597
20@ = 5.0

:GYMBENC_4597
if 
  21@ == 10
goto_if_false @GYMBENC_4625
20@ = 6.0

:GYMBENC_4625
if 
  800.0 > $temp_muscle_stat
goto_if_false @GYMBENC_4926
if 
  21@ == 1
goto_if_false @GYMBENC_4674
20@ = 2.0

:GYMBENC_4674
if 
  21@ == 2
goto_if_false @GYMBENC_4702
20@ = 2.2

:GYMBENC_4702
if 
  21@ == 3
goto_if_false @GYMBENC_4730
20@ = 2.3

:GYMBENC_4730
if 
  21@ == 4
goto_if_false @GYMBENC_4758
20@ = 2.5

:GYMBENC_4758
if 
  21@ == 5
goto_if_false @GYMBENC_4786
20@ = 3.0

:GYMBENC_4786
if 
  21@ == 6
goto_if_false @GYMBENC_4814
20@ = 3.5

:GYMBENC_4814
if 
  21@ == 7
goto_if_false @GYMBENC_4842
20@ = 4.0

:GYMBENC_4842
if 
  21@ == 8
goto_if_false @GYMBENC_4870
20@ = 5.0

:GYMBENC_4870
if 
  21@ == 9
goto_if_false @GYMBENC_4898
20@ = 6.0

:GYMBENC_4898
if 
  21@ == 10
goto_if_false @GYMBENC_4926
20@ = 7.0

:GYMBENC_4926
if 
  600.0 > $temp_muscle_stat
goto_if_false @GYMBENC_5227
if 
  21@ == 1
goto_if_false @GYMBENC_4975
20@ = 3.0

:GYMBENC_4975
if 
  21@ == 2
goto_if_false @GYMBENC_5003
20@ = 3.2

:GYMBENC_5003
if 
  21@ == 3
goto_if_false @GYMBENC_5031
20@ = 3.3

:GYMBENC_5031
if 
  21@ == 4
goto_if_false @GYMBENC_5059
20@ = 3.5

:GYMBENC_5059
if 
  21@ == 5
goto_if_false @GYMBENC_5087
20@ = 4.0

:GYMBENC_5087
if 
  21@ == 6
goto_if_false @GYMBENC_5115
20@ = 4.5

:GYMBENC_5115
if 
  21@ == 7
goto_if_false @GYMBENC_5143
20@ = 5.0

:GYMBENC_5143
if 
  21@ == 8
goto_if_false @GYMBENC_5171
20@ = 6.0

:GYMBENC_5171
if 
  21@ == 9
goto_if_false @GYMBENC_5199
20@ = 7.0

:GYMBENC_5199
if 
  21@ == 10
goto_if_false @GYMBENC_5227
20@ = 8.0

:GYMBENC_5227
if 
  400.0 > $temp_muscle_stat
goto_if_false @GYMBENC_5528
if 
  21@ == 1
goto_if_false @GYMBENC_5276
20@ = 4.0

:GYMBENC_5276
if 
  21@ == 2
goto_if_false @GYMBENC_5304
20@ = 4.2

:GYMBENC_5304
if 
  21@ == 3
goto_if_false @GYMBENC_5332
20@ = 4.3

:GYMBENC_5332
if 
  21@ == 4
goto_if_false @GYMBENC_5360
20@ = 4.5

:GYMBENC_5360
if 
  21@ == 5
goto_if_false @GYMBENC_5388
20@ = 5.0

:GYMBENC_5388
if 
  21@ == 6
goto_if_false @GYMBENC_5416
20@ = 5.5

:GYMBENC_5416
if 
  21@ == 7
goto_if_false @GYMBENC_5444
20@ = 6.0

:GYMBENC_5444
if 
  21@ == 8
goto_if_false @GYMBENC_5472
20@ = 7.0

:GYMBENC_5472
if 
  21@ == 9
goto_if_false @GYMBENC_5500
20@ = 8.0

:GYMBENC_5500
if 
  21@ == 10
goto_if_false @GYMBENC_5528
20@ = 9.0

:GYMBENC_5528
if 
  200.0 > $temp_muscle_stat
goto_if_false @GYMBENC_5829
if 
  21@ == 1
goto_if_false @GYMBENC_5577
20@ = 5.0

:GYMBENC_5577
if 
  21@ == 2
goto_if_false @GYMBENC_5605
20@ = 5.2

:GYMBENC_5605
if 
  21@ == 3
goto_if_false @GYMBENC_5633
20@ = 5.3

:GYMBENC_5633
if 
  21@ == 4
goto_if_false @GYMBENC_5661
20@ = 5.5

:GYMBENC_5661
if 
  21@ == 5
goto_if_false @GYMBENC_5689
20@ = 6.0

:GYMBENC_5689
if 
  21@ == 6
goto_if_false @GYMBENC_5717
20@ = 6.5

:GYMBENC_5717
if 
  21@ == 7
goto_if_false @GYMBENC_5745
20@ = 7.0

:GYMBENC_5745
if 
  21@ == 8
goto_if_false @GYMBENC_5773
20@ = 7.5

:GYMBENC_5773
if 
  21@ == 9
goto_if_false @GYMBENC_5801
20@ = 8.0

:GYMBENC_5801
if 
  21@ == 10
goto_if_false @GYMBENC_5829
20@ = 8.5

:GYMBENC_5829
if 
  $bench_show_stat == 8
goto_if_false @GYMBENC_5876
$bench_show_stat = 0
increment_float_stat StatId.BodyMuscle {value} 20@
add_float_lvar_to_float_var $gym_day_fitness += 20@
goto @GYMBENC_5898

:GYMBENC_5876
increment_float_stat_no_message StatId.BodyMuscle {value} 20@
$bench_show_stat += 1
add_float_lvar_to_float_var $gym_day_fitness += 20@

:GYMBENC_5898
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMBENC_5943
$gym_final_day, $gym_final_month = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMBENC_5943
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMBENC_5980
decrement_float_stat StatId.Fat {value} 1.0

:GYMBENC_5980
$powerbar = 0
$bench_sfx = set_char_say_context $scplayer {phrase} SpeechId.PainCjStrainExhale
task_play_anim $scplayer {animationName} "GYM_BP_DOWN" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$animstate_flag = 4

:GYMBENC_6050
if and
  $animstate_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6390
if and
  18@ == 0.0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6390
if 
  $animvalue == 0.0
goto_if_false @GYMBENC_6390
cset_lvar_float_to_var_int 19@ =# $reps_bpress
set_var_float_to_var_float $animationtobeplayed = $bpress_resistance
sub_float_var_from_float_var $animationtobeplayed -= $weightbp
if and
  18.0 >= $animationtobeplayed
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6215
task_play_anim $scplayer {animationName} "GYM_BP_UP_B" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_6215
if and
  $animationtobeplayed > 18.0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6307
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMBENC_6307
task_play_anim $scplayer {animationName} "GYM_BP_UP_A" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_6307
if and
  $animationtobeplayed > 24.0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6383
task_play_anim $scplayer {animationName} "GYM_BP_UP_SMOOTH" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMBENC_6383
$animstate_flag = 1

:GYMBENC_6390
set_var_float_to_lvar_float $bar_animvalue = 18@
$bar_animvalue /= 100.0
if and
  $animstate_flag > 0
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6769
set_var_float_to_var_float $diffgym = $bar_animvalue
sub_float_var_from_float_var $diffgym -= $animvalue
$diffgym /= 2.0
if and
  0.05 > $diffgym
  $diffgym > -0.05
goto_if_false @GYMBENC_6503
set_var_float_to_var_float $animvalue = $bar_animvalue
goto @GYMBENC_6511

:GYMBENC_6503
add_float_var_to_float_var $animvalue += $diffgym

:GYMBENC_6511
if and
  $animstate_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6609
$tempfloat_gym = 1.0
sub_float_var_from_float_var $tempfloat_gym -= $animvalue
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_DOWN"
goto_if_false @GYMBENC_6602
set_char_anim_current_time $scplayer {animationName} "GYM_BP_DOWN" {time} $tempfloat_gym

:GYMBENC_6602
goto @GYMBENC_6769

:GYMBENC_6609
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_UP_A"
goto_if_false @GYMBENC_6659
set_char_anim_current_time $scplayer {animationName} "GYM_BP_UP_A" {time} $animvalue

:GYMBENC_6659
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_UP_B"
goto_if_false @GYMBENC_6709
set_char_anim_current_time $scplayer {animationName} "GYM_BP_UP_B" {time} $animvalue

:GYMBENC_6709
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_UP_SMOOTH"
goto_if_false @GYMBENC_6769
set_char_anim_current_time $scplayer {animationName} "GYM_BP_UP_SMOOTH" {time} $animvalue

:GYMBENC_6769
cset_var_int_to_lvar_float $powerbar =# 18@
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_day_fitness > 200.0
goto_if_false @GYMBENC_6956
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6956

:GYMBENC_6820
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMBENC_6848
wait 0
goto @GYMBENC_6820

:GYMBENC_6848
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_6911
task_play_anim $scplayer {animationName} "GYM_BP_GETOFF" {animationFile} "BENCHPRESS" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMBENC_6911
$powerbar = 0
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMBENC_6949
$gym_day_fitness = 0.0

:GYMBENC_6949
$playerexercising_flag = 6

:GYMBENC_6956
if and
  $playerexercising_flag == 6
  not is_char_dead $scplayer
goto_if_false @GYMBENC_8093
if 
  $reps_bpress > 4
goto_if_false @GYMBENC_7613
if and
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETOFF"
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7606
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7056
if 
  $animframe_bpgetoff <= 0.26
goto_if_false @GYMBENC_7127
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7120
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7120
goto @GYMBENC_7056

:GYMBENC_7127
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  $play_bench_once == 0
goto_if_false @GYMBENC_7164
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRestWeights
$play_bench_once = 1

:GYMBENC_7164
drop_object $scplayer {state} False
freeze_object_position 30@ {state} True
delete_object 30@
30@ = create_object #KMB_BPRESS {x} 8@ {y} 9@ {z} 10@
attach_object_to_object 30@ {handle} 0@ {xOffset} -0.45 {yOffset} 0.45 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 180.0 {zRotation} 270.0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7277
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7277
if 
  $animframe == 1.0
goto_if_false @GYMBENC_7606
task_play_anim $scplayer {animationName} "GYM_BP_CELEBRATE" {animationFile} "BENCHPRESS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMBENC_7348
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7606
23@ = 0
$animstate_flag = 0
27@ = 1
21@ = 1
$reps_bpress = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
18@ = 0.0
21@ = 1
$reps_bpress = 0
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMBENC_7484
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMBENC_7484
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMBENC_7521
set_float_stat StatId.Fat {value} 0.0

:GYMBENC_7521
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
clear_onscreen_counter $reps_bpress
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
remove_animation "BENCHPRESS"
clear_mission_audio MissionAudioSlot.Slot4
clear_help 
delete_menu $main_menu_bench
$bench_txt = 0
$are_anims_loaded = 0

:GYMBENC_7606
goto @GYMBENC_8093

:GYMBENC_7613
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_8093
if 
  is_char_playing_anim $scplayer {animationName} "GYM_BP_GETOFF"
goto_if_false @GYMBENC_8093
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7683
if 
  $animframe_bpgetoff <= 0.26
goto_if_false @GYMBENC_7754
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7747
$animframe_bpgetoff = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7747
goto @GYMBENC_7683

:GYMBENC_7754
if and
  has_mission_audio_loaded MissionAudioSlot.Slot4
  $play_bench_once == 0
goto_if_false @GYMBENC_7791
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRestWeights
$play_bench_once = 1

:GYMBENC_7791
drop_object $scplayer {state} False
freeze_object_position 30@ {state} True
delete_object 30@
30@ = create_object #KMB_BPRESS {x} 8@ {y} 9@ {z} 10@
attach_object_to_object 30@ {handle} 0@ {xOffset} -0.45 {yOffset} 0.45 {zOffset} 0.9 {xRotation} 90.0 {yRotation} 180.0 {zRotation} 270.0
if 
  not is_char_dead $scplayer
goto_if_false @GYMBENC_7904
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_BP_GETOFF"

:GYMBENC_7904
if 
  $animframe == 1.0
goto_if_false @GYMBENC_8093
$animframe_bppickup = 0.0
$animframe_bpgetoff = 0.0
23@ = 0
$animstate_flag = 0
27@ = 1
21@ = 1
$reps_bpress = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
18@ = 0.0
21@ = 1
$reps_bpress = 0
clear_onscreen_counter $reps_bpress
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
remove_animation "BENCHPRESS"
clear_mission_audio MissionAudioSlot.Slot4
clear_help 
delete_menu $main_menu_bench
$bench_txt = 0
$are_anims_loaded = 0

:GYMBENC_8093
goto @GYMBENC_632
terminate_this_script 

//-------------External script 13 (GYMTREAD)---------------

:GYMTREA
script_name 'GYMTREA'
$tread_shake_speed = 0
$tread_start_sound = 0
$tread_TIMERC = 0
$levelbar_tread = 0
$speed_treadbar = 0
$incline_tread = 0
$distanceon_tread = 0
$tread_has_KD = 0
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$levelbar_tread = 1
$incline_tread = 1
$playerexercising_flag = 0
$distanceon_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
$finishedtread_flag = 1
27@ = 0
TIMERA = 0
TIMERB = 0
28@ = 0
if 
  28@ == 1
goto_if_false @GYMTREA_278
0@ = create_object_no_offset #BEACHTOWEL03 {x} 0.0 {y} 0.0 {z} 0.0

:GYMTREA_278
if 
  does_object_exist 0@
goto_if_false @GYMTREA_330
1@, 2@, 3@ = get_object_coordinates 0@
7@, 8@, 9@ = get_object_coordinates 0@
10@ = get_object_heading 0@

:GYMTREA_330
19@ = 1.0
$levelbar_tread = 1
$incline_tread = 1
26@ = 1.0
set_lvar_float_to_lvar_float 6@ = 3@
6@ += 1.5
set_lvar_float_to_lvar_float 9@ = 3@
9@ += 0.75
set_lvar_float_to_lvar_float 11@ = 10@
11@ -= 60.0
12@ = sin 11@
13@ = cos 11@
12@ *= 3.0
13@ *= 3.0
set_lvar_float_to_lvar_float 4@ = 1@
sub_float_lvar_from_float_lvar 4@ -= 13@
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_lvar_from_float_lvar 5@ -= 12@
set_lvar_float_to_lvar_float 11@ = 10@
11@ += 90.0
12@ = sin 11@
13@ = cos 11@
12@ *= 1.5
13@ *= 1.5
sub_float_lvar_from_float_lvar 1@ -= 13@
sub_float_lvar_from_float_lvar 2@ -= 12@
3@ += 0.1
$are_anims_loaded = 0

:GYMTREA_573
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMTREA_595
terminate_this_script 

:GYMTREA_595
if 
  is_player_playing $player1
goto_if_false @GYMTREA_5900
if and
  $playerexercising_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_979
if and
  $starttreadmill_flag == 0
  not is_player_using_jetpack $player1
goto_if_false @GYMTREA_979
if 
  $finishedtread_flag == 0
goto_if_false @GYMTREA_938
if 
  locate_char_on_foot_3d $scplayer {x} 1@ {y} 2@ {z} 3@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMTREA_904
if 
  27@ == 0
goto_if_false @GYMTREA_753
print_help_forever 'GYM1_81'
27@ = 1

:GYMTREA_753
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMTREA_897
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMTREA_881
$gym_day, $gym_month = get_current_date 
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @GYMTREA_858
$starttreadmill_flag = 1
$playerexercising_flag = 1
$gym_TIMERC = 0
goto @GYMTREA_874

:GYMTREA_858
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMTREA_874
goto @GYMTREA_897

:GYMTREA_881
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMTREA_897
goto @GYMTREA_931

:GYMTREA_904
if 
  27@ == 1
goto_if_false @GYMTREA_931
clear_help 
27@ = 0

:GYMTREA_931
goto @GYMTREA_979

:GYMTREA_938
if 
  not locate_char_on_foot_2d $scplayer {x} 1@ {y} 2@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMTREA_979
$finishedtread_flag = 0

:GYMTREA_979
if and
  $starttreadmill_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5900
if and
  $playerexercising_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMTREA_1114
set_char_collision $scplayer {state} False
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 1@ {y} 2@ {z} 3@
set_char_heading $scplayer {heading} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position 4@ {y} 5@ {z} 6@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 7@ {y} 8@ {z} 9@ {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2

:GYMTREA_1114
if 
  $are_anims_loaded == 0
goto_if_false @GYMTREA_1224
request_animation "GYMNASIUM"

:GYMTREA_1145
if 
  not has_animation_loaded "GYMNASIUM"
goto_if_false @GYMTREA_1180
wait 0
goto @GYMTREA_1145

:GYMTREA_1180
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMTREA_1191
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_1217
wait 0
goto @GYMTREA_1191

:GYMTREA_1217
$are_anims_loaded = 1

:GYMTREA_1224
if 
  $playerexercising_flag == 2
goto_if_false @GYMTREA_1944
print_help_forever 'GYM1_60'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMTREA_1446
$main_menu_tread = create_menu 'GYM1_F' {topLeftX} 31.0 {topLeftY} 180.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_tread {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMTREA_1607

:GYMTREA_1446
$main_menu_tread = create_menu 'GYM1_F' {topLeftX} 31.0 {topLeftY} 150.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_tread {column} 0 {title} 'GYM1_89' {row0} 'GYM1_61' {row1} 'GYM1_62' {row2} 'GYM1_63' {row3} 'GYM1_64' {row4} 'GYM1_65' {row5} 'GYM1_66' {row6} 'GYM1_67' {row7} 'GYM1_68' {row8} 'GYM1_69' {row9} 'GYM1_70' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMTREA_1607
set_active_menu_item $main_menu_tread {row} 0

:GYMTREA_1614
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_1739
wait 0
$gym_TIMERC += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_TIMERC > 20
goto_if_false @GYMTREA_1679
clear_help 
delete_menu $main_menu_tread
goto @GYMTREA_5443

:GYMTREA_1679
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMTREA_1732
clear_help 
$levelbar_tread = get_menu_item_selected $main_menu_tread
$levelbar_tread += 1
delete_menu $main_menu_tread
TIMERA = 0
goto @GYMTREA_1739

:GYMTREA_1732
goto @GYMTREA_1614

:GYMTREA_1739
if 
  $tread_helpflag == 0
goto_if_false @GYMTREA_1780
print_help 'GYM1_42'
wait 4000
$tread_helpflag = 1

:GYMTREA_1780
if 
  $tread_helpflag == 1
goto_if_false @GYMTREA_1821
print_help 'GYM1_43'
wait 5000
$tread_helpflag = 2

:GYMTREA_1821
if 
  $tread_helpflag == 2
goto_if_false @GYMTREA_1869
print_help 'GYM1_45'
wait 4000
$tread_helpflag = 4
TIMERA = 0

:GYMTREA_1869
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_1933
task_play_anim $scplayer {animationName} "GYM_TREAD_GETON" {animationFile} "GYMNASIUM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMTREA_1933
wait 0
$playerexercising_flag = 3

:GYMTREA_1944
if and
  $playerexercising_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMTREA_2164
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_GETON"
goto_if_false @GYMTREA_2164
14@ = get_char_anim_current_time $scplayer {animationName} "GYM_TREAD_GETON"
if 
  14@ == 1.0
goto_if_false @GYMTREA_2164
task_play_anim $scplayer {animationName} "GYM_TREAD_WALK" {animationFile} "GYMNASIUM" {blendSpeed} 8.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
display_nth_onscreen_counter_with_string $speed_treadbar {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $levelbar_tread {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_4'
display_nth_onscreen_counter_with_string $distanceon_tread {display} CounterDisplay.Number {slot} 3 {text} 'GYM1_3'
17@ = 30.0
$playerexercising_flag = 4

:GYMTREA_2164
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5900
23@ /= 500.0
$lowerbodymusclestat_gym /= 750.0
add_float_var_to_float_lvar 23@ += $lowerbodymusclestat_gym
set_lvar_float_to_lvar_float 18@ = 20@
add_float_lvar_to_float_lvar 18@ += 23@
19@ /= 2.0
sub_timed_float_lvar_from_float_lvar 17@ -=@ 19@
19@ *= 2.0
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMTREA_2309
if 
  $reptread_flag == 0
goto_if_false @GYMTREA_2309
add_float_lvar_to_float_lvar 17@ += 18@
$reptread_flag = 1

:GYMTREA_2309
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMTREA_2351
if 
  $reptread_flag == 1
goto_if_false @GYMTREA_2351
$reptread_flag = 0

:GYMTREA_2351
if 
  0.0 > 17@
goto_if_false @GYMTREA_2382
17@ = 0.0

:GYMTREA_2382
if 
  17@ > 100.0
goto_if_false @GYMTREA_2413
17@ = 100.0

:GYMTREA_2413
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GYMTREA_2430

:GYMTREA_2430
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GYMTREA_2447

:GYMTREA_2447
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GYMTREA_2489
if 
  $inclinebutton_flag == 1
goto_if_false @GYMTREA_2489
$inclinebutton_flag = 0

:GYMTREA_2489
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GYMTREA_2531
if 
  $inclinebutton_flag == 2
goto_if_false @GYMTREA_2531
$inclinebutton_flag = 0

:GYMTREA_2531
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMTREA_2669
if 
  $buttonpressgymtread_flag == 0
goto_if_false @GYMTREA_2669
if and
  $levelbar_tread > 0
  10 > $levelbar_tread
goto_if_false @GYMTREA_2669
$levelbar_tread += 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_2621
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMTREA_2621
17@ -= 10.0
if 
  0.0 > 17@
goto_if_false @GYMTREA_2662
17@ = 0.0

:GYMTREA_2662
$buttonpressgymtread_flag = 1

:GYMTREA_2669
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMTREA_2766
if 
  $buttonpressgymtread_flag == 0
goto_if_false @GYMTREA_2766
if and
  $levelbar_tread > 1
  11 > $levelbar_tread
goto_if_false @GYMTREA_2766
$levelbar_tread -= 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_2759
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymIncreaseDifficulty

:GYMTREA_2759
$buttonpressgymtread_flag = 2

:GYMTREA_2766
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GYMTREA_2808
if 
  $buttonpressgymtread_flag == 1
goto_if_false @GYMTREA_2808
$buttonpressgymtread_flag = 0

:GYMTREA_2808
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GYMTREA_2850
if 
  $buttonpressgymtread_flag == 2
goto_if_false @GYMTREA_2850
$buttonpressgymtread_flag = 0

:GYMTREA_2850
if 
  $levelbar_tread == 1
goto_if_false @GYMTREA_2888
26@ = 1.0
20@ = 9.5

:GYMTREA_2888
if 
  $levelbar_tread == 2
goto_if_false @GYMTREA_2926
26@ = 2.0
20@ = 8.5

:GYMTREA_2926
if 
  $levelbar_tread == 3
goto_if_false @GYMTREA_2964
26@ = 3.0
20@ = 7.5

:GYMTREA_2964
if 
  $levelbar_tread == 4
goto_if_false @GYMTREA_3002
26@ = 4.0
20@ = 6.5

:GYMTREA_3002
if 
  $levelbar_tread == 5
goto_if_false @GYMTREA_3040
26@ = 5.0
20@ = 5.5

:GYMTREA_3040
if 
  $levelbar_tread == 6
goto_if_false @GYMTREA_3078
26@ = 6.0
20@ = 4.5

:GYMTREA_3078
if 
  $levelbar_tread == 7
goto_if_false @GYMTREA_3116
26@ = 7.0
20@ = 3.5

:GYMTREA_3116
if 
  $levelbar_tread == 8
goto_if_false @GYMTREA_3154
26@ = 8.0
20@ = 2.5

:GYMTREA_3154
if 
  $levelbar_tread == 9
goto_if_false @GYMTREA_3192
26@ = 9.0
20@ = 1.5

:GYMTREA_3192
if 
  $levelbar_tread == 10
goto_if_false @GYMTREA_3230
26@ = 10.0
20@ = 0.5

:GYMTREA_3230
if 
  $playerstarttread_flag == 0
goto_if_false @GYMTREA_3299
if 
  17@ > 0.0
goto_if_false @GYMTREA_3299
add_one_off_sound 1@ {y} 2@ {z} 3@ {soundId} 65535
TIMERB = 0
$playerstarttread_flag = 1

:GYMTREA_3299
if and
  0.0 >= 17@
  not is_char_dead $scplayer
goto_if_false @GYMTREA_3803
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_WALK"
goto_if_false @GYMTREA_3406
task_play_anim $scplayer {animationName} "GYM_WALK_FALLOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_3406
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_JOG"
goto_if_false @GYMTREA_3485
task_play_anim $scplayer {animationName} "GYM_JOG_FALLOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_3485
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_SPRINT"
goto_if_false @GYMTREA_3569
task_play_anim $scplayer {animationName} "GYM_TREAD_FALLOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_3569
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMTREA_3606
set_float_stat StatId.Fat {value} 0.0

:GYMTREA_3606
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$levelbar_tread = 0
$incline_tread = 1
$playerexercising_flag = 0
$distanceon_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
clear_onscreen_counter $speed_treadbar
clear_onscreen_counter $levelbar_tread
clear_onscreen_counter $distanceon_tread
set_player_control $player1 {state} True
restore_camera_jumpcut 
$finishedtread_flag = 1
set_char_collision $scplayer {state} True
remove_animation "GYMNASIUM"
clear_mission_audio MissionAudioSlot.Slot4
delete_menu $main_menu_tread
clear_help 

:GYMTREA_3803
if 
  $starttreadmill_flag == 1
goto_if_false @GYMTREA_4170
if and
  $playwalkanim_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_3937
if and
  $levelbar_tread > 0
  3 > $levelbar_tread
goto_if_false @GYMTREA_3937
task_play_anim $scplayer {animationName} "GYM_TREAD_WALK" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
$playwalkanim_flag = 1
$playjoganim_flag = 0
$playsprintanim_flag = 0

:GYMTREA_3937
if and
  $playjoganim_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_4052
if and
  $levelbar_tread > 2
  7 > $levelbar_tread
goto_if_false @GYMTREA_4052
task_play_anim $scplayer {animationName} "GYM_TREAD_JOG" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
$playwalkanim_flag = 0
$playsprintanim_flag = 0
$playjoganim_flag = 1

:GYMTREA_4052
if and
  $playsprintanim_flag == 0
  not is_char_dead $scplayer
goto_if_false @GYMTREA_4170
if and
  $levelbar_tread > 6
  11 > $levelbar_tread
goto_if_false @GYMTREA_4170
task_play_anim $scplayer {animationName} "GYM_TREAD_SPRINT" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 1

:GYMTREA_4170
if 
  17@ >= 0.0
goto_if_false @GYMTREA_4222
if 
  10.0 >= 17@
goto_if_false @GYMTREA_4222
15@ = 0.9

:GYMTREA_4222
if 
  17@ >= 11.0
goto_if_false @GYMTREA_4274
if 
  20.0 >= 17@
goto_if_false @GYMTREA_4274
15@ = 0.97

:GYMTREA_4274
if 
  17@ >= 21.0
goto_if_false @GYMTREA_4326
if 
  30.0 >= 17@
goto_if_false @GYMTREA_4326
15@ = 1.04

:GYMTREA_4326
if 
  17@ >= 31.0
goto_if_false @GYMTREA_4378
if 
  40.0 >= 17@
goto_if_false @GYMTREA_4378
15@ = 1.11

:GYMTREA_4378
if 
  17@ >= 41.0
goto_if_false @GYMTREA_4430
if 
  50.0 >= 17@
goto_if_false @GYMTREA_4430
15@ = 1.18

:GYMTREA_4430
if 
  17@ >= 51.0
goto_if_false @GYMTREA_4482
if 
  60.0 >= 17@
goto_if_false @GYMTREA_4482
15@ = 1.25

:GYMTREA_4482
if 
  17@ >= 61.0
goto_if_false @GYMTREA_4534
if 
  70.0 >= 17@
goto_if_false @GYMTREA_4534
15@ = 1.32

:GYMTREA_4534
if 
  17@ >= 71.0
goto_if_false @GYMTREA_4586
if 
  80.0 >= 17@
goto_if_false @GYMTREA_4586
15@ = 1.39

:GYMTREA_4586
if 
  17@ >= 81.0
goto_if_false @GYMTREA_4638
if 
  90.0 >= 17@
goto_if_false @GYMTREA_4638
15@ = 1.46

:GYMTREA_4638
if 
  17@ >= 91.0
goto_if_false @GYMTREA_4690
if 
  100.0 >= 17@
goto_if_false @GYMTREA_4690
15@ = 1.53

:GYMTREA_4690
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_4876
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_WALK"
goto_if_false @GYMTREA_4762
set_char_anim_speed $scplayer {animName} "GYM_TREAD_WALK" {animSpeed} 15@

:GYMTREA_4762
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_JOG"
goto_if_false @GYMTREA_4816
set_char_anim_speed $scplayer {animName} "GYM_TREAD_JOG" {animSpeed} 15@

:GYMTREA_4816
if 
  is_char_playing_anim $scplayer {animationName} "GYM_TREAD_SPRINT"
goto_if_false @GYMTREA_4876
set_char_anim_speed $scplayer {animName} "GYM_TREAD_SPRINT" {animSpeed} 15@

:GYMTREA_4876
if 
  does_object_exist 0@
goto_if_false @GYMTREA_5001
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMTREA_5001
if 
  17@ > 10.0
goto_if_false @GYMTREA_4968
if 
  $tread_start_sound == 0
goto_if_false @GYMTREA_4961
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRunningMachineStart
$tread_start_sound = 1

:GYMTREA_4961
goto @GYMTREA_5001

:GYMTREA_4968
if 
  $tread_start_sound == 1
goto_if_false @GYMTREA_5001
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundGymRunningMachineStop
$tread_start_sound = 0

:GYMTREA_5001
if 
  TIMERB > 250
goto_if_false @GYMTREA_5320
TIMERB -= 250
set_lvar_float_to_lvar_float 21@ = 17@
mult_float_lvar_by_float_lvar 21@ *= 26@
21@ /= 80.0
cset_var_float_to_var_int $stattread_temp =# $levelbar_tread
$stattread_temp /= 10.0
$stattread_temp += 1.0
mult_float_var_by_float_lvar $stattread_temp *= 21@
add_float_var_to_float_var $stattreadstamina_ctr += $stattread_temp
if 
  $stattreadstamina_ctr >= 170.0
goto_if_false @GYMTREA_5243
$stattreadstamina_ctr -= 170.0
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMTREA_5166
decrement_float_stat StatId.Fat {value} 8.0

:GYMTREA_5166
if 
  $tread_show_stat == 3
goto_if_false @GYMTREA_5217
$tread_show_stat = 0
increment_float_stat StatId.Stamina {value} 4.0
$gym_day_fitness += 4.0
goto @GYMTREA_5243

:GYMTREA_5217
increment_float_stat_no_message StatId.Stamina {value} 4.0
$gym_day_fitness += 4.0
$tread_show_stat += 1

:GYMTREA_5243
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMTREA_5288
$gym_final_day, $gym_final_month = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMTREA_5288
cset_lvar_float_to_var_int 25@ =# $incline_tread
mult_float_var_by_float_lvar $stattread_temp *= 25@
add_float_lvar_to_float_lvar 22@ += 21@
cset_var_int_to_lvar_float $distanceon_tread =# 22@

:GYMTREA_5320
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_day_fitness > 200.0
goto_if_false @GYMTREA_5796
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMTREA_5378
$gym_day_fitness = 0.0

:GYMTREA_5378
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5796
task_play_anim $scplayer {animationName} "GYM_TREAD_GETOFF" {animationFile} "GYMNASIUM" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMTREA_5443
shake_pad PadId.Pad1 {time} 1 {intensity} 1
increment_int_stat StatId.DistTreadmill {value} $distanceon_tread
set_lvar_int_to_lvar_int 29@ = TIMERA
29@ /= 1000
increment_int_stat StatId.LongestTreadmillTime {value} 29@
clear_help 
delete_menu $main_menu_tread
$starttreadmill_flag = 0
$incline_tread_flag = 0
$inclinebutton_flag = 0
$reptread_flag = 0
$buttonpressgymtread_flag = 0
$playerstarttread_flag = 0
$playwalkanim_flag = 0
$playjoganim_flag = 0
$playsprintanim_flag = 0
$finishedtread_flag = 0
19@ = 1.0
$levelbar_tread = 1
$incline_tread = 1
$playerexercising_flag = 0
$distanceon_tread = 0
22@ = 0.0
21@ = 0.0
$are_anims_loaded = 0
clear_onscreen_counter $speed_treadbar
clear_onscreen_counter $levelbar_tread
clear_onscreen_counter $distanceon_tread
if 
  not is_char_dead $scplayer
goto_if_false @GYMTREA_5668
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:GYMTREA_5668
remove_animation "GYMNASIUM"
clear_mission_audio MissionAudioSlot.Slot4
restore_camera_jumpcut 
$finishedtread_flag = 1
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMTREA_5731
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMTREA_5731
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMTREA_5768
set_float_stat StatId.Fat {value} 0.0

:GYMTREA_5768
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMTREA_5796
wait 0
goto @GYMTREA_5768

:GYMTREA_5796
$tread_TIMERC += 1
set_var_int_to_var_int $tread_shake_speed = $speed_treadbar
$tread_shake_speed -= 100
if 
  $tread_shake_speed > -40
goto_if_false @GYMTREA_5843
$tread_shake_speed = -40

:GYMTREA_5843
if 
  is_int_var_greater_or_equal_to_int_var $tread_TIMERC >= $tread_shake_speed
goto_if_false @GYMTREA_5892
$tread_TIMERC = 0
$speed_treadbar *= 12
$speed_treadbar /= 10
shake_pad PadId.Pad1 {time} 100 {intensity} $speed_treadbar

:GYMTREA_5892
cset_var_int_to_lvar_float $speed_treadbar =# 17@

:GYMTREA_5900
goto @GYMTREA_573
terminate_this_script 

//-------------External script 14 (GYMDUMB)---------------

:GYMDUMB
script_name 'GYMDUMB'
$weight_dumbell = 1
$reps_dumbell = 0
27@ = 0
$dumb_has_KD = 0
$temp_muscle_stat_dumb = 0.0
TIMERA = 0
TIMERB = 0
23@ = 0
if 
  23@ == 1
goto_if_false @GYMDUMB_111
0@ = create_object_no_offset #BEACHTOWEL04 {x} 0.0 {y} 0.0 {z} 0.0

:GYMDUMB_111
if 
  does_object_exist 0@
goto_if_false @GYMDUMB_149
4@, 5@, 6@ = get_object_coordinates 0@
12@ = get_object_heading 0@

:GYMDUMB_149
set_lvar_float_to_lvar_float 2@ = 4@
set_lvar_float_to_lvar_float 3@ = 5@
set_var_float_to_lvar_float $dumbellx1 = 4@
set_var_float_to_lvar_float $dumbelly1 = 5@
set_lvar_float_to_lvar_float 9@ = 6@
9@ += 1.7
set_lvar_float_to_lvar_float 13@ = 12@
set_lvar_float_to_lvar_float 1@ = 12@
1@ -= 90.0
set_var_float_to_lvar_float $dumbell_player_heading = 12@
$dumbell_player_heading -= 90.0
set_var_float_to_lvar_float $dumbell_player_heading1 = 12@
$dumbell_player_heading1 += 90.0
10@ = sin 13@
11@ = cos 13@
10@ *= 0.95
11@ *= 0.95
sub_float_lvar_from_float_lvar 4@ -= 11@
sub_float_lvar_from_float_lvar 5@ -= 10@
10@ *= 3.5
11@ *= 3.5
set_lvar_float_to_lvar_float 7@ = 4@
add_float_lvar_to_float_lvar 7@ += 11@
set_lvar_float_to_lvar_float 8@ = 5@
add_float_lvar_to_float_lvar 8@ += 10@
10@ = sin 13@
11@ = cos 13@
10@ *= 0.95
11@ *= 0.95
add_float_lvar_to_float_var $dumbellx1 += 11@
add_float_lvar_to_float_var $dumbelly1 += 10@
10@ *= 3.5
11@ *= 3.5
set_var_float_to_var_float $dumbellcamx1 = $dumbellx1
sub_float_lvar_from_float_var $dumbellcamx1 -= 11@
set_var_float_to_var_float $dumbellcamy1 = $dumbelly1
sub_float_lvar_from_float_var $dumbellcamy1 -= 10@
12@ += 180.0
set_lvar_float_to_lvar_float 13@ = 12@
13@ += 90.0
10@ = sin 13@
11@ = cos 13@
10@ *= 0.2
11@ *= 0.2
add_float_lvar_to_float_lvar 2@ += 11@
add_float_lvar_to_float_lvar 3@ += 10@
25@ = create_object #KMB_DUMBBELL_R {x} 2@ {y} 3@ {z} 6@
attach_object_to_object 25@ {handle} 0@ {xOffset} 0.05 {yOffset} 0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
26@ = create_object #KMB_DUMBBELL_L {x} 2@ {y} 3@ {z} 6@
attach_object_to_object 26@ {handle} 0@ {xOffset} 0.05 {yOffset} -0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
6@ += 0.1
$levelbar_bike = 1
$are_anims_loaded = 0

:GYMDUMB_683
wait 0
if 
  not does_object_exist 0@
goto_if_false @GYMDUMB_715
delete_object 25@
delete_object 26@
terminate_this_script 

:GYMDUMB_715
if 
  not is_object_within_brain_activation_range 0@
goto_if_false @GYMDUMB_743
delete_object 25@
delete_object 26@
terminate_this_script 

:GYMDUMB_743
if 
  is_player_playing $player1
goto_if_false @GYMDUMB_7917
if 
  $playerexercising_flag == 0
goto_if_false @GYMDUMB_1253
if and
  17@ == 0
  not is_player_using_jetpack $player1
goto_if_false @GYMDUMB_1253
if 
  21@ == 0
goto_if_false @GYMDUMB_1189
if or
  locate_char_on_foot_3d $scplayer {x} 4@ {y} 5@ {z} 6@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
  locate_char_on_foot_3d $scplayer {x} $dumbellx1 {y} $dumbelly1 {z} 6@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMDUMB_1155
if 
  locate_char_on_foot_3d $scplayer {x} 4@ {y} 5@ {z} 6@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 4.0 {drawSphere} False
goto_if_false @GYMDUMB_947
$dumb_front_back = 0
goto @GYMDUMB_954

:GYMDUMB_947
$dumb_front_back = 1

:GYMDUMB_954
if 
  27@ == 0
goto_if_false @GYMDUMB_990
print_help_forever 'GYM1_85'
27@ = 1

:GYMDUMB_990
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GYMDUMB_1148
if or
  $onmission == 0
  $gym_is_running == 1
goto_if_false @GYMDUMB_1132
$gym_day, $gym_month = get_current_date 
if or
  is_int_var_greater_than_int_var $gym_day > $gym_final_day
  is_int_var_greater_than_int_var $gym_month > $gym_final_month
goto_if_false @GYMDUMB_1109
17@ = 1
$playerexercising_flag = 1
set_char_collision $scplayer {state} False
set_player_control $player1 {state} False
$gym_TIMERC = 0
goto @GYMDUMB_1125

:GYMDUMB_1109
print_now 'GYM1_1A' {time} 4000 {flag} 1

:GYMDUMB_1125
goto @GYMDUMB_1148

:GYMDUMB_1132
print_now 'GYM1_90' {time} 4000 {flag} 1

:GYMDUMB_1148
goto @GYMDUMB_1182

:GYMDUMB_1155
if 
  27@ == 1
goto_if_false @GYMDUMB_1182
clear_help 
27@ = 0

:GYMDUMB_1182
goto @GYMDUMB_1253

:GYMDUMB_1189
if or
  not locate_char_on_foot_2d $scplayer {x} 4@ {y} 5@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
  not locate_char_on_foot_2d $scplayer {x} $dumbellx1 {y} $dumbelly1 {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GYMDUMB_1253
21@ = 0

:GYMDUMB_1253
if 
  17@ == 1
goto_if_false @GYMDUMB_7917
if and
  $playerexercising_flag == 1
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_1459
set_char_collision $scplayer {state} False
if 
  $dumb_front_back == 0
goto_if_false @GYMDUMB_1381
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} 4@ {y} 5@ {z} 6@
set_fixed_camera_position 7@ {y} 8@ {z} 9@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} $dumbell_player_heading
goto @GYMDUMB_1436

:GYMDUMB_1381
set_player_control $player1 {state} False
set_char_coordinates_dont_warp_gang $scplayer {x} $dumbellx1 {y} $dumbelly1 {z} 6@
set_fixed_camera_position $dumbellcamx1 {y} $dumbellcamy1 {z} 9@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
set_char_heading $scplayer {heading} $dumbell_player_heading1

:GYMDUMB_1436
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
$playerexercising_flag = 2
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed

:GYMDUMB_1459
if 
  $are_anims_loaded == 0
goto_if_false @GYMDUMB_1584
request_animation "FREEWEIGHTS"
load_mission_text 'GYM'

:GYMDUMB_1503
if 
  not has_animation_loaded "FREEWEIGHTS"
goto_if_false @GYMDUMB_1540
wait 0
goto @GYMDUMB_1503

:GYMDUMB_1540
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1820

:GYMDUMB_1551
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @GYMDUMB_1577
wait 0
goto @GYMDUMB_1551

:GYMDUMB_1577
$are_anims_loaded = 1

:GYMDUMB_1584
if and
  $playerexercising_flag == 2
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2111
print_help_forever 'GYM1_71'
if or
  $current_Language == 4
  $current_Language == 2
goto_if_false @GYMDUMB_1811
$main_menu_bell = create_menu 'GYM1_G' {topLeftX} 31.0 {topLeftY} 180.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_bell {column} 0 {title} 'GYM1_72' {row0} 'GYM1_26' {row1} 'GYM1_27' {row2} 'GYM1_28' {row3} 'GYM1_29' {row4} 'GYM1_30' {row5} 'GYM1_31' {row6} 'GYM1_32' {row7} 'GYM1_33' {row8} 'GYM1_34' {row9} 'GYM1_35' {row10} 'DUMMY' {row11} 'DUMMY'
goto @GYMDUMB_1972

:GYMDUMB_1811
$main_menu_bell = create_menu 'GYM1_G' {topLeftX} 31.0 {topLeftY} 150.0 {width} 184.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Center
set_menu_column $main_menu_bell {column} 0 {title} 'GYM1_72' {row0} 'GYM1_26' {row1} 'GYM1_27' {row2} 'GYM1_28' {row3} 'GYM1_29' {row4} 'GYM1_30' {row5} 'GYM1_31' {row6} 'GYM1_32' {row7} 'GYM1_33' {row8} 'GYM1_34' {row9} 'GYM1_35' {row10} 'DUMMY' {row11} 'DUMMY'

:GYMDUMB_1972
set_active_menu_item $main_menu_bell {row} 0

:GYMDUMB_1979
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2090
wait 0
$gym_TIMERC += 1
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_TIMERC > 20
goto_if_false @GYMDUMB_2044
clear_help 
delete_menu $main_menu_bell
goto @GYMDUMB_7441

:GYMDUMB_2044
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_2083
clear_help 
$weight_dumbell = get_menu_item_selected $main_menu_bell
delete_menu $main_menu_bell
goto @GYMDUMB_2090

:GYMDUMB_2083
goto @GYMDUMB_1979

:GYMDUMB_2090
19@ = 1
18@ = 1
$playerexercising_flag = 3

:GYMDUMB_2111
if and
  $playerexercising_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2868
if 
  $weight_dumbell == 0
goto_if_false @GYMDUMB_2172
$weightdb = 1.0
$incmusclestatdb = 5.0

:GYMDUMB_2172
if 
  $weight_dumbell == 1
goto_if_false @GYMDUMB_2210
$weightdb = 2.0
$incmusclestatdb = 5.2

:GYMDUMB_2210
if 
  $weight_dumbell == 2
goto_if_false @GYMDUMB_2248
$weightdb = 3.0
$incmusclestatdb = 5.3

:GYMDUMB_2248
if 
  $weight_dumbell == 3
goto_if_false @GYMDUMB_2286
$weightdb = 4.0
$incmusclestatdb = 5.5

:GYMDUMB_2286
if 
  $weight_dumbell == 4
goto_if_false @GYMDUMB_2324
$weightdb = 5.0
$incmusclestatdb = 6.0

:GYMDUMB_2324
if 
  $weight_dumbell == 5
goto_if_false @GYMDUMB_2362
$weightdb = 6.0
$incmusclestatdb = 6.5

:GYMDUMB_2362
if 
  $weight_dumbell == 6
goto_if_false @GYMDUMB_2400
$weightdb = 7.0
$incmusclestatdb = 7.0

:GYMDUMB_2400
if 
  $weight_dumbell == 7
goto_if_false @GYMDUMB_2438
$weightdb = 8.0
$incmusclestatdb = 7.5

:GYMDUMB_2438
if 
  $weight_dumbell == 8
goto_if_false @GYMDUMB_2476
$weightdb = 9.0
$incmusclestatdb = 8.0

:GYMDUMB_2476
if 
  $weight_dumbell == 9
goto_if_false @GYMDUMB_2514
$weightdb = 10.0
$incmusclestatdb = 8.5

:GYMDUMB_2514
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2580
task_play_anim $scplayer {animationName} "GYM_FREE_PICKUP" {animationFile} "FREEWEIGHTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_2580
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2868
if and
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_PICKUP"
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2868
$animframe_freepickup = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PICKUP"

:GYMDUMB_2663
if 
  $animframe_freepickup <= 0.7789
goto_if_false @GYMDUMB_2736
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2729
$animframe_freepickup = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PICKUP"

:GYMDUMB_2729
goto @GYMDUMB_2663

:GYMDUMB_2736
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2854
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_2854
task_pick_up_object $scplayer {object} 25@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_pick_up_second_object $scplayer {object} 26@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {boneId} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:GYMDUMB_2854
$playerexercising_flag = 4
TIMERA = 0

:GYMDUMB_2868
if and
  $playerexercising_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_3404
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_PICKUP"
goto_if_false @GYMDUMB_3404
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PICKUP"
if 
  $animframe == 1.0
goto_if_false @GYMDUMB_3404
if 
  $DUMBELL_TXT == 0
goto_if_false @GYMDUMB_3006
print_help_forever 'GYM1_36'
$DUMBELL_TXT = 1

:GYMDUMB_3006
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMDUMB_3054
$upperbodymusclestat_gym = 0.0

:GYMDUMB_3054
set_var_float_to_var_float $dumbell_resistance = $upperbodymusclestat_gym
$dumbell_resistance += 30.0
if 
  $dumbell_resistance > 75.0
goto_if_false @GYMDUMB_3103
$dumbell_resistance = 75.0

:GYMDUMB_3103
cset_var_float_to_var_int $reps_dumbellfloat =# $reps_dumbell
set_var_float_to_var_float $animationtobeplayed = $dumbell_resistance
sub_float_var_from_float_var $animationtobeplayed -= $weightdb
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_3193
task_play_anim $scplayer {animationName} "GYM_FREE_B" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_3193
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMDUMB_3280
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_3280
task_play_anim $scplayer {animationName} "GYM_FREE_A" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_3280
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMDUMB_3354
task_play_anim $scplayer {animationName} "GYM_FREE_UP_SMOOTH" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_3354
display_nth_onscreen_counter_with_string $powerbar {display} CounterDisplay.Bar {slot} 1 {text} 'GYM1_1'
display_nth_onscreen_counter_with_string $reps_dumbell {display} CounterDisplay.Number {slot} 2 {text} 'GYM1_2'
$animstate_flag = 1
$playerexercising_flag = 5

:GYMDUMB_3404
if and
  $playerexercising_flag == 5
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7053
if and
  TIMERA > 4000
  $DUMBELL_TXT == 1
goto_if_false @GYMDUMB_3473
clear_help 
print_help_forever 'GYM1_25'
$DUMBELL_TXT = 2

:GYMDUMB_3473
if and
  TIMERA > 8000
  $DUMBELL_TXT == 2
goto_if_false @GYMDUMB_3508
clear_help 
$DUMBELL_TXT = 101

:GYMDUMB_3508
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
$upperbodymusclestat_gym /= 30.0
if 
  0.0 > $upperbodymusclestat_gym
goto_if_false @GYMDUMB_3556
$upperbodymusclestat_gym = 0.0

:GYMDUMB_3556
set_var_float_to_var_float $dumbell_resistance = $upperbodymusclestat_gym
$dumbell_resistance += 20.0
if 
  $dumbell_resistance > 75.0
goto_if_false @GYMDUMB_3605
$dumbell_resistance = 75.0

:GYMDUMB_3605
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMDUMB_3658
$weightdb /= 2.0
sub_timed_float_var_from_float_var $powerdumbell -=@ $weightdb
$weightdb *= 2.0

:GYMDUMB_3658
if 
  $animstate_flag == 4
goto_if_false @GYMDUMB_3686
sub_timed_val_from_float_var $powerdumbell -=@ 2.0

:GYMDUMB_3686
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMDUMB_3728
if 
  20@ == 3
goto_if_false @GYMDUMB_3728
20@ = 0

:GYMDUMB_3728
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_3770
if 
  20@ == 1
goto_if_false @GYMDUMB_3770
20@ = 2

:GYMDUMB_3770
if or
  $animstate_flag == 1
  $animstate_flag == 3
goto_if_false @GYMDUMB_3907
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GYMDUMB_3851
if 
  20@ == 0
goto_if_false @GYMDUMB_3851
add_float_var_to_float_var $powerdumbell += $dumbell_resistance
20@ = 1

:GYMDUMB_3851
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_3907
if 
  20@ == 2
goto_if_false @GYMDUMB_3907
add_float_var_to_float_var $powerdumbell += $dumbell_resistance
20@ = 3

:GYMDUMB_3907
if 
  0.0 > $powerdumbell
goto_if_false @GYMDUMB_3938
$powerdumbell = 0.0

:GYMDUMB_3938
if 
  $powerdumbell >= 100.0
goto_if_false @GYMDUMB_3994
$powerdumbell = 100.0
if 
  $animstate_flag == 1
goto_if_false @GYMDUMB_3994
$animstate_flag = 2

:GYMDUMB_3994
if 
  $powerdumbell > 25.0
goto_if_false @GYMDUMB_4026
$dumb_sfx = set_char_say_context $scplayer {phrase} SpeechId.PainCjStrain

:GYMDUMB_4026
if 
  $animstate_flag == 2
goto_if_false @GYMDUMB_4086
if 
  $animvalue == 1.0
goto_if_false @GYMDUMB_4086
20@ = 0
$animstate_flag = 3
TIMERB = 0

:GYMDUMB_4086
if and
  $animstate_flag == 3
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_6177
if 
  $reps_dumbell < 999999
goto_if_false @GYMDUMB_4137
$reps_dumbell += 1

:GYMDUMB_4137
switch_start $weight_dumbell {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GYMDUMB_4405 {caseNum1} 0 {caseLabel1} @GYMDUMB_4265 {caseNum2} 1 {caseLabel2} @GYMDUMB_4279 {caseNum3} 2 {caseLabel3} @GYMDUMB_4293 {caseNum4} 3 {caseLabel4} @GYMDUMB_4307 {caseNum5} 4 {caseLabel5} @GYMDUMB_4321 {caseNum6} 5 {caseLabel6} @GYMDUMB_4335 {caseNum7} 6 {caseLabel7} @GYMDUMB_4349
switch_continued 7 {caseLabel1} @GYMDUMB_4363 {caseNum2} 8 {caseLabel2} @GYMDUMB_4377 {caseNum3} 9 {caseLabel3} @GYMDUMB_4391 {caseNum4} -1 {caseLabel4} @GYMDUMB_4405 {caseNum5} -1 {caseLabel5} @GYMDUMB_4405 {caseNum6} -1 {caseLabel6} @GYMDUMB_4405 {caseNum7} -1 {caseLabel7} @GYMDUMB_4405 {caseNum8} -1 {caseLabel8} @GYMDUMB_4405 {caseNum9} -1 {caseLabel9} @GYMDUMB_4405

:GYMDUMB_4265
$dumb_weight = 20
goto @GYMDUMB_4405

:GYMDUMB_4279
$dumb_weight = 30
goto @GYMDUMB_4405

:GYMDUMB_4293
$dumb_weight = 40
goto @GYMDUMB_4405

:GYMDUMB_4307
$dumb_weight = 50
goto @GYMDUMB_4405

:GYMDUMB_4321
$dumb_weight = 60
goto @GYMDUMB_4405

:GYMDUMB_4335
$dumb_weight = 70
goto @GYMDUMB_4405

:GYMDUMB_4349
$dumb_weight = 80
goto @GYMDUMB_4405

:GYMDUMB_4363
$dumb_weight = 90
goto @GYMDUMB_4405

:GYMDUMB_4377
$dumb_weight = 100
goto @GYMDUMB_4405

:GYMDUMB_4391
$dumb_weight = 110
goto @GYMDUMB_4405

:GYMDUMB_4405
$temp_dumb_weight = get_int_stat StatId.HeaviestWeightDumbells
if 
  is_int_var_greater_than_int_var $dumb_weight > $temp_dumb_weight
goto_if_false @GYMDUMB_4438
set_int_stat StatId.HeaviestWeightDumbells {value} $dumb_weight

:GYMDUMB_4438
$temp_muscle_stat_dumb = get_float_stat StatId.BodyMuscle
if 
  1000.0 > $temp_muscle_stat_dumb
goto_if_false @GYMDUMB_4746
if 
  $weight_dumbell == 1
goto_if_false @GYMDUMB_4494
$incmusclestatdb = 1.0

:GYMDUMB_4494
if 
  $weight_dumbell == 2
goto_if_false @GYMDUMB_4522
$incmusclestatdb = 1.2

:GYMDUMB_4522
if 
  $weight_dumbell == 3
goto_if_false @GYMDUMB_4550
$incmusclestatdb = 1.3

:GYMDUMB_4550
if 
  $weight_dumbell == 4
goto_if_false @GYMDUMB_4578
$incmusclestatdb = 1.5

:GYMDUMB_4578
if 
  $weight_dumbell == 5
goto_if_false @GYMDUMB_4606
$incmusclestatdb = 2.0

:GYMDUMB_4606
if 
  $weight_dumbell == 6
goto_if_false @GYMDUMB_4634
$incmusclestatdb = 2.5

:GYMDUMB_4634
if 
  $weight_dumbell == 7
goto_if_false @GYMDUMB_4662
$incmusclestatdb = 3.0

:GYMDUMB_4662
if 
  $weight_dumbell == 8
goto_if_false @GYMDUMB_4690
$incmusclestatdb = 4.0

:GYMDUMB_4690
if 
  $weight_dumbell == 9
goto_if_false @GYMDUMB_4718
$incmusclestatdb = 5.0

:GYMDUMB_4718
if 
  $weight_dumbell == 10
goto_if_false @GYMDUMB_4746
$incmusclestatdb = 6.0

:GYMDUMB_4746
if 
  800.0 > $temp_muscle_stat_dumb
goto_if_false @GYMDUMB_5047
if 
  $weight_dumbell == 1
goto_if_false @GYMDUMB_4795
$incmusclestatdb = 2.0

:GYMDUMB_4795
if 
  $weight_dumbell == 2
goto_if_false @GYMDUMB_4823
$incmusclestatdb = 2.2

:GYMDUMB_4823
if 
  $weight_dumbell == 3
goto_if_false @GYMDUMB_4851
$incmusclestatdb = 2.3

:GYMDUMB_4851
if 
  $weight_dumbell == 4
goto_if_false @GYMDUMB_4879
$incmusclestatdb = 2.5

:GYMDUMB_4879
if 
  $weight_dumbell == 5
goto_if_false @GYMDUMB_4907
$incmusclestatdb = 3.0

:GYMDUMB_4907
if 
  $weight_dumbell == 6
goto_if_false @GYMDUMB_4935
$incmusclestatdb = 3.5

:GYMDUMB_4935
if 
  $weight_dumbell == 7
goto_if_false @GYMDUMB_4963
$incmusclestatdb = 4.0

:GYMDUMB_4963
if 
  $weight_dumbell == 8
goto_if_false @GYMDUMB_4991
$incmusclestatdb = 5.0

:GYMDUMB_4991
if 
  $weight_dumbell == 9
goto_if_false @GYMDUMB_5019
$incmusclestatdb = 6.0

:GYMDUMB_5019
if 
  $weight_dumbell == 10
goto_if_false @GYMDUMB_5047
$incmusclestatdb = 7.0

:GYMDUMB_5047
if 
  600.0 > $temp_muscle_stat_dumb
goto_if_false @GYMDUMB_5348
if 
  $weight_dumbell == 1
goto_if_false @GYMDUMB_5096
$incmusclestatdb = 3.0

:GYMDUMB_5096
if 
  $weight_dumbell == 2
goto_if_false @GYMDUMB_5124
$incmusclestatdb = 3.2

:GYMDUMB_5124
if 
  $weight_dumbell == 3
goto_if_false @GYMDUMB_5152
$incmusclestatdb = 3.3

:GYMDUMB_5152
if 
  $weight_dumbell == 4
goto_if_false @GYMDUMB_5180
$incmusclestatdb = 3.5

:GYMDUMB_5180
if 
  $weight_dumbell == 5
goto_if_false @GYMDUMB_5208
$incmusclestatdb = 4.0

:GYMDUMB_5208
if 
  $weight_dumbell == 6
goto_if_false @GYMDUMB_5236
$incmusclestatdb = 4.5

:GYMDUMB_5236
if 
  $weight_dumbell == 7
goto_if_false @GYMDUMB_5264
$incmusclestatdb = 5.0

:GYMDUMB_5264
if 
  $weight_dumbell == 8
goto_if_false @GYMDUMB_5292
$incmusclestatdb = 6.0

:GYMDUMB_5292
if 
  $weight_dumbell == 9
goto_if_false @GYMDUMB_5320
$incmusclestatdb = 7.0

:GYMDUMB_5320
if 
  $weight_dumbell == 10
goto_if_false @GYMDUMB_5348
$incmusclestatdb = 8.0

:GYMDUMB_5348
if 
  400.0 > $temp_muscle_stat_dumb
goto_if_false @GYMDUMB_5649
if 
  $weight_dumbell == 1
goto_if_false @GYMDUMB_5397
$incmusclestatdb = 4.0

:GYMDUMB_5397
if 
  $weight_dumbell == 2
goto_if_false @GYMDUMB_5425
$incmusclestatdb = 4.2

:GYMDUMB_5425
if 
  $weight_dumbell == 3
goto_if_false @GYMDUMB_5453
$incmusclestatdb = 4.3

:GYMDUMB_5453
if 
  $weight_dumbell == 4
goto_if_false @GYMDUMB_5481
$incmusclestatdb = 4.5

:GYMDUMB_5481
if 
  $weight_dumbell == 5
goto_if_false @GYMDUMB_5509
$incmusclestatdb = 5.0

:GYMDUMB_5509
if 
  $weight_dumbell == 6
goto_if_false @GYMDUMB_5537
$incmusclestatdb = 5.5

:GYMDUMB_5537
if 
  $weight_dumbell == 7
goto_if_false @GYMDUMB_5565
$incmusclestatdb = 6.0

:GYMDUMB_5565
if 
  $weight_dumbell == 8
goto_if_false @GYMDUMB_5593
$incmusclestatdb = 7.0

:GYMDUMB_5593
if 
  $weight_dumbell == 9
goto_if_false @GYMDUMB_5621
$incmusclestatdb = 8.0

:GYMDUMB_5621
if 
  $weight_dumbell == 10
goto_if_false @GYMDUMB_5649
$incmusclestatdb = 9.0

:GYMDUMB_5649
if 
  200.0 > $temp_muscle_stat_dumb
goto_if_false @GYMDUMB_5950
if 
  $weight_dumbell == 1
goto_if_false @GYMDUMB_5698
$incmusclestatdb = 5.0

:GYMDUMB_5698
if 
  $weight_dumbell == 2
goto_if_false @GYMDUMB_5726
$incmusclestatdb = 5.2

:GYMDUMB_5726
if 
  $weight_dumbell == 3
goto_if_false @GYMDUMB_5754
$incmusclestatdb = 5.3

:GYMDUMB_5754
if 
  $weight_dumbell == 4
goto_if_false @GYMDUMB_5782
$incmusclestatdb = 5.5

:GYMDUMB_5782
if 
  $weight_dumbell == 5
goto_if_false @GYMDUMB_5810
$incmusclestatdb = 6.0

:GYMDUMB_5810
if 
  $weight_dumbell == 6
goto_if_false @GYMDUMB_5838
$incmusclestatdb = 6.5

:GYMDUMB_5838
if 
  $weight_dumbell == 7
goto_if_false @GYMDUMB_5866
$incmusclestatdb = 7.0

:GYMDUMB_5866
if 
  $weight_dumbell == 8
goto_if_false @GYMDUMB_5894
$incmusclestatdb = 7.5

:GYMDUMB_5894
if 
  $weight_dumbell == 9
goto_if_false @GYMDUMB_5922
$incmusclestatdb = 8.0

:GYMDUMB_5922
if 
  $weight_dumbell == 10
goto_if_false @GYMDUMB_5950
$incmusclestatdb = 8.5

:GYMDUMB_5950
if 
  $dumb_show_stat == 8
goto_if_false @GYMDUMB_5997
$dumb_show_stat = 0
increment_float_stat StatId.BodyMuscle {value} $incmusclestatdb
add_float_var_to_float_var $gym_day_fitness += $incmusclestatdb
goto @GYMDUMB_6019

:GYMDUMB_5997
increment_float_stat_no_message StatId.BodyMuscle {value} $incmusclestatdb
$dumb_show_stat += 1
add_float_var_to_float_var $gym_day_fitness += $incmusclestatdb

:GYMDUMB_6019
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMDUMB_6064
$gym_final_day, $gym_final_month = get_current_date 
print_now 'GYM1_1B' {time} 4000 {flag} 1

:GYMDUMB_6064
$fatstat_gym = get_float_stat StatId.Fat
if 
  $fatstat_gym >= 1.0
goto_if_false @GYMDUMB_6101
decrement_float_stat StatId.Fat {value} 1.0

:GYMDUMB_6101
shake_pad PadId.Pad1 {time} 200 {intensity} 200
$dumb_sfx = set_char_say_context $scplayer {phrase} SpeechId.PainCjStrainExhale
task_play_anim $scplayer {animationName} "GYM_FREE_DOWN" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$animstate_flag = 4

:GYMDUMB_6177
if and
  $animstate_flag == 4
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_6500
if 
  $powerdumbell == 0.0
goto_if_false @GYMDUMB_6500
if 
  $animvalue == 0.0
goto_if_false @GYMDUMB_6500
cset_var_float_to_var_int $reps_dumbellfloat =# $reps_dumbell
set_var_float_to_var_float $animationtobeplayed = $dumbell_resistance
sub_float_var_from_float_var $animationtobeplayed -= $weightdb
if 
  18.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_6332
task_play_anim $scplayer {animationName} "GYM_FREE_B" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_6332
if 
  $animationtobeplayed > 18.0
goto_if_false @GYMDUMB_6419
if 
  24.0 >= $animationtobeplayed
goto_if_false @GYMDUMB_6419
task_play_anim $scplayer {animationName} "GYM_FREE_A" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_6419
if 
  $animationtobeplayed > 24.0
goto_if_false @GYMDUMB_6493
task_play_anim $scplayer {animationName} "GYM_FREE_UP_SMOOTH" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:GYMDUMB_6493
$animstate_flag = 1

:GYMDUMB_6500
set_var_float_to_var_float $bar_animvalue = $powerdumbell
$bar_animvalue /= 100.0
if and
  $animstate_flag > 0
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_6878
set_var_float_to_var_float $diffgym = $bar_animvalue
sub_float_var_from_float_var $diffgym -= $animvalue
$diffgym /= 2.0
if and
  0.05 > $diffgym
  $diffgym > -0.05
goto_if_false @GYMDUMB_6613
set_var_float_to_var_float $animvalue = $bar_animvalue
goto @GYMDUMB_6621

:GYMDUMB_6613
add_float_var_to_float_var $animvalue += $diffgym

:GYMDUMB_6621
if 
  $animstate_flag == 4
goto_if_false @GYMDUMB_6718
$tempfloat_gym = 1.0
sub_float_var_from_float_var $tempfloat_gym -= $animvalue
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_DOWN"
goto_if_false @GYMDUMB_6711
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_DOWN" {time} $tempfloat_gym

:GYMDUMB_6711
goto @GYMDUMB_6878

:GYMDUMB_6718
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_A"
goto_if_false @GYMDUMB_6766
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_A" {time} $animvalue

:GYMDUMB_6766
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_B"
goto_if_false @GYMDUMB_6814
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_B" {time} $animvalue

:GYMDUMB_6814
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_UP_SMOOTH"
goto_if_false @GYMDUMB_6878
set_char_anim_current_time $scplayer {animationName} "GYM_FREE_UP_SMOOTH" {time} $animvalue

:GYMDUMB_6878
cset_var_int_to_var_float $powerbar =# $powerdumbell
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $gym_day_fitness > 200.0
goto_if_false @GYMDUMB_7053
$powerbar = 0

:GYMDUMB_6920
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GYMDUMB_6948
wait 0
goto @GYMDUMB_6920

:GYMDUMB_6948
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7015
task_play_anim $scplayer {animationName} "GYM_FREE_PUTDOWN" {animationFile} "FREEWEIGHTS" {blendSpeed} 100.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMDUMB_7015
if 
  $gym_day_fitness > 200.0
goto_if_false @GYMDUMB_7046
$gym_day_fitness = 0.0

:GYMDUMB_7046
$playerexercising_flag = 6

:GYMDUMB_7053
if and
  $playerexercising_flag == 6
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7917
if 
  $reps_dumbell >= 0
goto_if_false @GYMDUMB_7700
if 
  is_char_playing_anim $scplayer {animationName} "GYM_FREE_PUTDOWN"
goto_if_false @GYMDUMB_7693
$animframe_freegetoff = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PUTDOWN"

:GYMDUMB_7154
if 
  $animframe_freegetoff <= 0.3
goto_if_false @GYMDUMB_7228
wait 0
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7221
$animframe_freegetoff = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PUTDOWN"

:GYMDUMB_7221
goto @GYMDUMB_7154

:GYMDUMB_7228
drop_object $scplayer {state} False
drop_second_object $scplayer {state} False
attach_object_to_object 25@ {handle} 0@ {xOffset} 0.0 {yOffset} 0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
attach_object_to_object 26@ {handle} 0@ {xOffset} 0.0 {yOffset} -0.2 {zOffset} 0.3 {xRotation} 0.0 {yRotation} 90.0 {zRotation} 90.0
$animframe = get_char_anim_current_time $scplayer {animationName} "GYM_FREE_PUTDOWN"
if and
  $animframe == 1.0
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7693
if 
  $reps_dumbell > 4
goto_if_false @GYMDUMB_7441
task_play_anim $scplayer {animationName} "GYM_FREE_CELEBRATE" {animationFile} "FREEWEIGHTS" {blendSpeed} 8.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:GYMDUMB_7441
17@ = 0
$animstate_flag = 0
21@ = 1
$weight_dumbell = 1
$reps_dumbell = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
$powerdumbell = 0.0
$weight_dumbell = 1
$reps_dumbell = 0
$animframe = 0.0
$animframe_freepickup = 0.0
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMDUMB_7581
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMDUMB_7581
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMDUMB_7618
set_float_stat StatId.Fat {value} 0.0

:GYMDUMB_7618
if 
  not is_char_dead $scplayer
goto_if_false @GYMDUMB_7660
clear_onscreen_counter $reps_dumbell
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True

:GYMDUMB_7660
remove_animation "FREEWEIGHTS"
clear_mission_audio MissionAudioSlot.Slot4
delete_menu $main_menu_bell
clear_help 
$are_anims_loaded = 0

:GYMDUMB_7693
goto @GYMDUMB_7917

:GYMDUMB_7700
17@ = 0
$animstate_flag = 0
21@ = 1
$weight_dumbell = 1
$reps_dumbell = 0
$powerbar = 0
$animationtobeplayed = 0.0
$playerexercising_flag = 0
$powerdumbell = 0.0
$weight_dumbell = 1
$reps_dumbell = 0
$animframe = 0.0
$animframe_freepickup = 0.0
$upperbodymusclestat_gym = get_float_stat StatId.BodyMuscle
if 
  $upperbodymusclestat_gym >= 1000.0
goto_if_false @GYMDUMB_7840
set_float_stat StatId.BodyMuscle {value} 1000.0

:GYMDUMB_7840
$fatstat_gym = get_float_stat StatId.Fat
if 
  0.0 >= $fatstat_gym
goto_if_false @GYMDUMB_7877
set_float_stat StatId.Fat {value} 0.0

:GYMDUMB_7877
clear_onscreen_counter $reps_dumbell
clear_onscreen_counter $powerbar
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_char_collision $scplayer {state} True
delete_menu $main_menu_bell
clear_help 
$are_anims_loaded = 0

:GYMDUMB_7917
goto @GYMDUMB_683
terminate_this_script 

//-------------External script 15 (BASKETB)---------------

:BBALL
script_name 'BBALL'
if 
  $bball_active <> 0
goto_if_false @BBALL_31
terminate_this_script 

:BBALL_31
16@ = 0
17@ = 0
18@ = 0
20@ = 0
22@ = 0
$bball_camera_type = 0
19@ = 0
21@ = 0
$bball_help = 0
if 
  16@ == -1
goto_if_false @BBALL_178
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$char_obj = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:BBALL_178
24@ = 0
if 
  $bball_unlocked <> 0
goto_if_false @BBALL_451
if 
  does_object_exist 0@
goto_if_false @BBALL_451
if and
  is_player_playing $player1
  $onmission == 0
goto_if_false @BBALL_451
if 
  does_object_have_this_model 0@ {modelId} #BSKBALL_LAX
goto_if_false @BBALL_296
if 
  has_model_loaded #BSKBALL_LAX
goto_if_false @BBALL_289
23@ = -30
24@ = 1

:BBALL_289
goto @BBALL_451

:BBALL_296
if 
  does_object_have_this_model 0@ {modelId} #BSKBALLHUB_LAX01
goto_if_false @BBALL_350
if 
  has_model_loaded #BSKBALLHUB_LAX01
goto_if_false @BBALL_343
23@ = -31
24@ = 1

:BBALL_343
goto @BBALL_451

:BBALL_350
if 
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET
goto_if_false @BBALL_404
if 
  has_model_loaded #VGSXREFBBALLNET
goto_if_false @BBALL_397
23@ = -32
24@ = 1

:BBALL_397
goto @BBALL_451

:BBALL_404
if 
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET2
goto_if_false @BBALL_451
if 
  has_model_loaded #VGSXREFBBALLNET2
goto_if_false @BBALL_451
23@ = -33
24@ = 1

:BBALL_451
if 
  24@ == 1
goto_if_false @BBALL_2377
switch_start 16@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBALL_2370 {caseNum1} 0 {caseLabel1} @BBALL_532 {caseNum2} 1 {caseLabel2} @BBALL_777 {caseNum3} 2 {caseLabel3} @BBALL_1293 {caseNum4} 3 {caseLabel4} @BBALL_1866 {caseNum5} -1 {caseLabel5} @BBALL_2370 {caseNum6} -1 {caseLabel6} @BBALL_2370 {caseNum7} -1 {caseLabel7} @BBALL_2370

:BBALL_532
if 
  $bball_active == 0
goto_if_false @BBALL_763
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BBALL_756
if 
  not does_object_exist 1@
goto_if_false @BBALL_756
if 
  has_model_loaded 23@
goto_if_false @BBALL_756
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 2.0
goto_if_false @BBALL_756
$z += 1.0
clear_area $x {y} $y {z} $z {radius} 0.5 {clearParticles} False
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
19@ = 1
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
$bball_active = 1
16@ += 1

:BBALL_756
goto @BBALL_770

:BBALL_763
gosub @BBALL_2402

:BBALL_770
goto @BBALL_2370

:BBALL_777
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BBALL_1267
if 
  does_object_exist 1@
goto_if_false @BBALL_1260
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_1260
if 
  has_model_loaded 23@
goto_if_false @BBALL_1260
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  is_object_in_area_3d 1@ {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_1220
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 0.7 {yRadius} 0.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_1213
$x, $y, $z = get_object_coordinates 1@
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.71
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.71
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.71
set_lvar_float_to_var_float 5@ = $x
5@ += 0.71
set_lvar_float_to_var_float 6@ = $y
6@ += 0.71
set_lvar_float_to_var_float 7@ = $z
7@ += 2.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_1213
if 
  not is_player_using_jetpack $player1
goto_if_false @BBALL_1213
24@ = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_1213
set_player_enter_car_button $player1 {enabled} False
print_help_forever 'BB_01'
16@ += 1

:BBALL_1213
goto @BBALL_1260

:BBALL_1220
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1
$z += 1.0
set_object_coordinates 1@ {x} $x {y} $y {z} $z

:BBALL_1260
goto @BBALL_1286

:BBALL_1267
mark_object_as_no_longer_needed 1@
16@ = 0
$bball_active = 0

:BBALL_1286
goto @BBALL_2370

:BBALL_1293
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 50.0 {yRadius} 50.0 {drawSphere} False
goto_if_false @BBALL_1833
if 
  does_object_exist 1@
goto_if_false @BBALL_1826
if 
  not is_player_using_jetpack $player1
goto_if_false @BBALL_1826
24@ = get_script_task_status $scplayer {taskId} 1833
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_1826
if 
  has_model_loaded 23@
goto_if_false @BBALL_1826
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  is_object_in_area_3d 1@ {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_1810
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 0.7 {yRadius} 0.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_1787
$x, $y, $z = get_object_coordinates 1@
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.71
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.71
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.71
set_lvar_float_to_var_float 5@ = $x
5@ += 0.71
set_lvar_float_to_var_float 6@ = $y
6@ += 0.71
set_lvar_float_to_var_float 7@ = $z
7@ += 2.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_1764
if 
  20@ == 0
goto_if_false @BBALL_1733
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_1726
20@ = 1
clear_help 
gosub @BBALL_3690
16@ += 1

:BBALL_1726
goto @BBALL_1757

:BBALL_1733
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_1757
20@ = 0

:BBALL_1757
goto @BBALL_1780

:BBALL_1764
set_player_enter_car_button $player1 {enabled} True
clear_help 
16@ += -1

:BBALL_1780
goto @BBALL_1803

:BBALL_1787
set_player_enter_car_button $player1 {enabled} True
clear_help 
16@ += -1

:BBALL_1803
goto @BBALL_1826

:BBALL_1810
set_player_enter_car_button $player1 {enabled} True
clear_help 
16@ += -1

:BBALL_1826
goto @BBALL_1859

:BBALL_1833
set_player_enter_car_button $player1 {enabled} True
mark_object_as_no_longer_needed 1@
$bball_active = 0
16@ = 0

:BBALL_1859
goto @BBALL_2370

:BBALL_1866
if 
  has_model_loaded 23@
goto_if_false @BBALL_2363
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  not is_char_in_area_3d $scplayer {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_2049
if 
  6000 > TIMERB
goto_if_false @BBALL_2028
if and
  TIMERB > 0
  1000 > TIMERB
goto_if_false @BBALL_2014
print_help_forever 'BB_03'
TIMERB = 1000

:BBALL_2014
gosub @BBALL_4421
goto @BBALL_2042

:BBALL_2028
gosub @BBALL_5022
16@ = 1

:BBALL_2042
goto @BBALL_2084

:BBALL_2049
if 
  TIMERB > 1000
goto_if_false @BBALL_2070
clear_help 

:BBALL_2070
gosub @BBALL_4421
TIMERB = 0

:BBALL_2084
if 
  is_player_playing $player1
goto_if_false @BBALL_2132
if 
  has_char_been_damaged_by_weapon $scplayer {weaponType} WeaponType.AnyWeapon
goto_if_false @BBALL_2132
gosub @BBALL_5022
16@ = 1

:BBALL_2132
if 
  is_player_playing $player1
goto_if_false @BBALL_2178
if 
  is_player_using_jetpack $player1
goto_if_false @BBALL_2178
gosub @BBALL_5022
16@ = 1

:BBALL_2178
if 
  is_player_playing $player1
goto_if_false @BBALL_2237
24@ = get_script_task_status $scplayer {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_2237
gosub @BBALL_5022
16@ = 1

:BBALL_2237
if and
  17@ <> 10
  17@ <> 16
  17@ <> 17
  17@ <> 4
goto_if_false @BBALL_2363
if 
  20@ == 0
goto_if_false @BBALL_2339
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_2332
20@ = 1
gosub @BBALL_5022
16@ = 1

:BBALL_2332
goto @BBALL_2363

:BBALL_2339
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BBALL_2363
20@ = 0

:BBALL_2363
goto @BBALL_2370

:BBALL_2370
goto @BBALL_2391

:BBALL_2377
$bball_active = 0
gosub @BBALL_2402

:BBALL_2391
wait 0
goto @BBALL_178

:BBALL_2402
mark_object_as_no_longer_needed 1@
if 
  is_player_playing $player1
goto_if_false @BBALL_2448
if 
  $onmission == 0
goto_if_false @BBALL_2448
set_player_enter_car_button $player1 {enabled} True

:BBALL_2448
terminate_this_script 
return 
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BBALL_2478
$anim_release_time += 0.01

:BBALL_2478
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BBALL_2504
$anim_release_time += -0.01

:BBALL_2504
return 

:BBALL_2506
if 
  does_object_exist 1@
goto_if_false @BBALL_2860
if 
  is_object_attached 1@
goto_if_false @BBALL_2729
if 
  19@ == 1
goto_if_false @BBALL_2722
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
$x, $y, $z = get_object_coordinates 1@
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_INGAME {x} $x {y} $y {z} $z
attach_object_to_char 1@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_velocity 1@ {xSpeed} 2@ {ySpeed} 3@ {zSpeed} 4@
5@, 6@, 7@ = get_object_rotation_velocity 1@
set_object_collision 1@ {state} True
19@ = 0

:BBALL_2722
goto @BBALL_2860

:BBALL_2729
if 
  19@ == 0
goto_if_false @BBALL_2860
$x, $y, $z = get_object_coordinates 1@
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 2@ {ySpeed} 3@ {zSpeed} 4@
5@, 6@, 7@ = get_object_rotation_velocity 1@
19@ = 1

:BBALL_2860
return 

:BBALL_2862
if 
  does_object_exist 1@
goto_if_false @BBALL_3688
if 
  is_object_attached 1@
goto_if_false @BBALL_3085
if 
  19@ == 1
goto_if_false @BBALL_3078
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
$x, $y, $z = get_object_coordinates 1@
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_INGAME {x} $x {y} $y {z} $z
attach_object_to_char 1@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
set_object_velocity 1@ {xSpeed} 2@ {ySpeed} 3@ {zSpeed} 4@
5@, 6@, 7@ = get_object_rotation_velocity 1@
set_object_collision 1@ {state} True
19@ = 0

:BBALL_3078
goto @BBALL_3688

:BBALL_3085
if 
  19@ == 0
goto_if_false @BBALL_3688
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.1
set_lvar_float_to_var_float 5@ = $x
5@ += 0.1
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.1
set_lvar_float_to_var_float 6@ = $y
6@ += 0.1
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.5
set_lvar_float_to_var_float 7@ = $z
7@ += 1.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_3393
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
5@, 6@, 7@ = get_object_rotation_velocity 1@
19@ = 1
goto @BBALL_3688

:BBALL_3393
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -2.0 {zOffset} -0.3
set_lvar_float_to_var_float 2@ = $x
2@ -= 0.1
set_lvar_float_to_var_float 5@ = $x
5@ += 0.1
set_lvar_float_to_var_float 3@ = $y
3@ -= 0.1
set_lvar_float_to_var_float 6@ = $y
6@ += 0.1
set_lvar_float_to_var_float 4@ = $z
4@ -= 0.5
set_lvar_float_to_var_float 7@ = $z
7@ += 1.0
if 
  not is_area_occupied 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @BBALL_3683
2@, 3@, 4@ = get_object_velocity 1@
5@, 6@, 7@ = get_object_rotation_velocity 1@
delete_object 1@
1@ = create_object_no_offset #BBALL_COL {x} $x {y} $y {z} $z
set_object_dynamic 1@ {state} True
set_object_collision 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
5@, 6@, 7@ = get_object_rotation_velocity 1@
19@ = 1
goto @BBALL_3688

:BBALL_3683
delete_object 1@

:BBALL_3688
return 

:BBALL_3690
set_minigame_in_progress True
display_non_minigame_help_messages True
$anim_release_time = 0.4
set_player_enter_car_button $player1 {enabled} False
if 
  is_player_playing $player1
goto_if_false @BBALL_3863
set_player_control $player1 {state} False
clear_char_tasks $scplayer
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_last_weapon_damage $scplayer
$bball_stored_weapon = get_current_char_weapon $scplayer
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.BrassKnuckles
goto_if_false @BBALL_3842
remove_weapon_from_char $scplayer {weaponType} WeaponType.BrassKnuckles
$bball_player_has_brassknuckle = 1
request_model 331

:BBALL_3808
if 
  not has_model_loaded 331
goto_if_false @BBALL_3835
wait 0
goto @BBALL_3808

:BBALL_3835
goto @BBALL_3849

:BBALL_3842
$bball_player_has_brassknuckle = 0

:BBALL_3849
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_player_cycle_weapon_button $player1 {enabled} False

:BBALL_3863
if 
  does_object_exist 1@
goto_if_false @BBALL_3886
freeze_object_position 1@ {state} True

:BBALL_3886
request_animation "BSKTBALL"
request_model #BBALL_INGAME
request_model #BBALL_COL
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1811

:BBALL_3915
if or
  not has_animation_loaded "BSKTBALL"
  not has_model_loaded #BBALL_INGAME
  not has_model_loaded #BBALL_COL
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @BBALL_3963
wait 0
goto @BBALL_3915

:BBALL_3963
10@, 11@, 12@ = get_active_camera_coordinates 
13@, 14@, 15@ = get_active_camera_point_at 
set_var_float_to_lvar_float $x = 13@
sub_float_lvar_from_float_var $x -= 10@
set_var_float_to_lvar_float $y = 14@
sub_float_lvar_from_float_var $y -= 11@
set_var_float_to_lvar_float $z = 15@
sub_float_lvar_from_float_var $z -= 12@
$distance = get_distance_between_coords_3d 13@ {fromY} 14@ {fromZ} 15@ {toX} 10@ {toY} 11@ {toZ} 12@
div_float_var_by_float_var $x /= $distance
div_float_var_by_float_var $y /= $distance
div_float_var_by_float_var $z /= $distance
$x *= 10.0
$y *= 10.0
$z *= 10.0
set_lvar_float_to_lvar_float 13@ = 10@
add_float_var_to_float_lvar 13@ += $x
set_lvar_float_to_lvar_float 14@ = 11@
add_float_var_to_float_lvar 14@ += $y
set_lvar_float_to_lvar_float 15@ = 12@
add_float_var_to_float_lvar 15@ += $z
TIMERA = 0
$bball_help = 0
17@ = 10
$bball_camera_type = 1
if 
  is_player_playing $player1
goto_if_false @BBALL_4238
$x, $y, $z = get_char_coordinates $scplayer
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_var_float_to_var_float $bball_court_z = $z

:BBALL_4238
8@ = get_object_heading 0@
if or
  10.0 > 8@
  8@ > 350.0
goto_if_false @BBALL_4284
$hoop_direction = 1

:BBALL_4284
if and
  8@ > 80.0
  100.0 > 8@
goto_if_false @BBALL_4322
$hoop_direction = 2

:BBALL_4322
if and
  8@ > 170.0
  190.0 > 8@
goto_if_false @BBALL_4360
$hoop_direction = 3

:BBALL_4360
if and
  8@ > 260.0
  280.0 > 8@
goto_if_false @BBALL_4398
$hoop_direction = 4

:BBALL_4398
set_ped_density_multiplier 0.2
set_car_density_multiplier 0.2
$bball_is_active = 1
return 

:BBALL_4421
$bball_frame_count += 1
if 
  $bball_frame_count >= 30
goto_if_false @BBALL_4453
$bball_frame_count = 0

:BBALL_4453
gosub @BBALL_16392
gosub @BBALL_17991
gosub @BBALL_5427
gosub @BBALL_12253
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @BBALL_4503
gosub @BBALL_20949

:BBALL_4503
if 
  3 > $bball_help
goto_if_false @BBALL_4746
if 
  $bball_help == 0
goto_if_false @BBALL_4582
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4568
print_help 'BB_02'

:BBALL_4568
$bball_help += 1
TIMERA = 0

:BBALL_4582
if and
  $bball_help == 1
  TIMERA > 10000
goto_if_false @BBALL_4651
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4637
print_help 'BB_07'

:BBALL_4637
TIMERA = 0
$bball_help += 1

:BBALL_4651
if and
  $bball_help == 2
  TIMERA > 5000
goto_if_false @BBALL_4746
if or
  does_object_have_this_model 0@ {modelId} #BSKBALL_LAX
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET
goto_if_false @BBALL_4731
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4731
print_help 'BB_09'

:BBALL_4731
TIMERA = 12000
$bball_help += 1

:BBALL_4746
if or
  does_object_have_this_model 0@ {modelId} #BSKBALL_LAX
  does_object_have_this_model 0@ {modelId} #VGSXREFBBALLNET
goto_if_false @BBALL_4873
if 
  $bball_challenge_active == 0
goto_if_false @BBALL_4873
if 
  $bball_r3_is_pressed == 0
goto_if_false @BBALL_4849
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBALL_4842
$bball_r3_is_pressed = 1
start_new_script @BBCHAL 0@ 

:BBALL_4842
goto @BBALL_4873

:BBALL_4849
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Rightshock
goto_if_false @BBALL_4873
$bball_r3_is_pressed = 0

:BBALL_4873
if 
  $bball_frame_count == 0
goto_if_false @BBALL_5020
if 
  does_object_exist 1@
goto_if_false @BBALL_5020
if 
  not is_object_attached 1@
goto_if_false @BBALL_5020
if 
  has_model_loaded 23@
goto_if_false @BBALL_5020
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 1
$x, $y, $z = get_object_coordinates 1@
set_lvar_float_to_lvar_float 8@ = 4@
8@ -= 0.7
if 
  is_float_lvar_greater_than_float_var 8@ > $z
goto_if_false @BBALL_5020
set_object_coordinates 1@ {x} 2@ {y} 3@ {z} 4@

:BBALL_5020
return 

:BBALL_5022
if 
  is_player_playing $player1
goto_if_false @BBALL_5425
if 
  $bball_player_has_brassknuckle == 1
goto_if_false @BBALL_5077
give_weapon_to_char $scplayer {weaponType} WeaponType.BrassKnuckles {ammo} 1
$bball_player_has_brassknuckle = 0
mark_model_as_no_longer_needed 331

:BBALL_5077
set_current_char_weapon $scplayer {weaponType} $bball_stored_weapon
set_player_cycle_weapon_button $player1 {enabled} True
clear_char_tasks $scplayer
set_player_control $player1 {state} True
set_player_enter_car_button $player1 {enabled} True
if 
  does_object_exist 1@
goto_if_false @BBALL_5172
if 
  is_object_attached 1@
goto_if_false @BBALL_5172
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} True
gosub @BBALL_2862

:BBALL_5172
if 
  does_object_exist 1@
goto_if_false @BBALL_5312
if 
  has_model_loaded 23@
goto_if_false @BBALL_5252
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 1
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3

:BBALL_5252
if 
  not is_object_in_area_3d 1@ {leftBottomX} 2@ {leftBottomY} 3@ {leftBottomZ} 4@ {rightTopX} 5@ {rightTopY} 6@ {rightTopZ} 7@ {drawSphere} False
goto_if_false @BBALL_5312
$z += 1.0
set_object_coordinates 1@ {x} $x {y} $y {z} $z

:BBALL_5312
if 
  does_object_exist $char_obj
goto_if_false @BBALL_5363
if 
  22@ == 1
goto_if_false @BBALL_5358
detach_char_from_car $scplayer
22@ = 0

:BBALL_5358
delete_object $char_obj

:BBALL_5363
restore_camera 
$bball_camera_type = 0
remove_animation "BSKTBALL"
mark_model_as_no_longer_needed #BBALL_INGAME
mark_model_as_no_longer_needed #BBALL_COL
clear_mission_audio MissionAudioSlot.Slot4
clear_help 
$bball_is_active = 0
set_ped_density_multiplier 1.0
set_car_density_multiplier 1.0
set_minigame_in_progress False

:BBALL_5425
return 

:BBALL_5427
if and
  is_player_playing $player1
  has_model_loaded 23@
goto_if_false @BBALL_12243
switch_start 17@ {numCases} 17 {hasDefaultCase} 1 {defaultLabel} @BBALL_12243 {caseNum1} 1 {caseLabel1} @BBALL_6511 {caseNum2} 2 {caseLabel2} @BBALL_7044 {caseNum3} 3 {caseLabel3} @BBALL_7454 {caseNum4} 4 {caseLabel4} @BBALL_8450 {caseNum5} 5 {caseLabel5} @BBALL_8941 {caseNum6} 6 {caseLabel6} @BBALL_9115 {caseNum7} 7 {caseLabel7} @BBALL_11357
switch_continued 8 {caseLabel1} @BBALL_11547 {caseNum2} 9 {caseLabel2} @BBALL_11747 {caseNum3} 10 {caseLabel3} @BBALL_11761 {caseNum4} 11 {caseLabel4} @BBALL_8260 {caseNum5} 12 {caseLabel5} @BBALL_11754 {caseNum6} 13 {caseLabel6} @BBALL_9065 {caseNum7} 14 {caseLabel7} @BBALL_5641 {caseNum8} 15 {caseLabel8} @BBALL_6075 {caseNum9} 16 {caseLabel9} @BBALL_9667
switch_continued 17 {caseLabel1} @BBALL_10656 {caseNum2} -1 {caseLabel2} @BBALL_12243 {caseNum3} -1 {caseLabel3} @BBALL_12243 {caseNum4} -1 {caseLabel4} @BBALL_12243 {caseNum5} -1 {caseLabel5} @BBALL_12243 {caseNum6} -1 {caseLabel6} @BBALL_12243 {caseNum7} -1 {caseLabel7} @BBALL_12243 {caseNum8} -1 {caseLabel8} @BBALL_12243 {caseNum9} -1 {caseLabel9} @BBALL_12243

:BBALL_5641
if 
  18@ <> 14
goto_if_false @BBALL_5905
24@ = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_5757
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLELOOP"
if 
  8@ > 0.9
goto_if_false @BBALL_5757
24@ = 1
$roll_along_back_flag = 0

:BBALL_5757
if 
  24@ == 1
goto_if_false @BBALL_5891
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLE" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_5898

:BBALL_5891
goto @BBALL_12251

:BBALL_5898
goto @BBALL_6068

:BBALL_5905
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_5955
17@ = 11
goto @BBALL_5427
goto @BBALL_6068

:BBALL_5955
if 
  $roll_along_back_flag == 0
goto_if_false @BBALL_6015
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE"
goto_if_false @BBALL_6008
$roll_along_back_flag += 1

:BBALL_6008
goto @BBALL_6068

:BBALL_6015
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_6068
17@ = 11
$roll_along_back_flag = 0
goto @BBALL_5427

:BBALL_6068
goto @BBALL_12243

:BBALL_6075
if 
  18@ <> 15
goto_if_false @BBALL_6340
24@ = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_6191
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLELOOP"
if 
  8@ > 0.9
goto_if_false @BBALL_6191
$spin_on_finger_flag = 0
24@ = 1

:BBALL_6191
if 
  24@ == 1
goto_if_false @BBALL_6326
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLE2" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_6333

:BBALL_6326
goto @BBALL_12251

:BBALL_6333
goto @BBALL_6504

:BBALL_6340
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_6390
17@ = 11
goto @BBALL_5427
goto @BBALL_6504

:BBALL_6390
if 
  $spin_on_finger_flag == 0
goto_if_false @BBALL_6451
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE2"
goto_if_false @BBALL_6444
$spin_on_finger_flag += 1

:BBALL_6444
goto @BBALL_6504

:BBALL_6451
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_6504
17@ = 11
$spin_on_finger_flag = 0
goto @BBALL_5427

:BBALL_6504
goto @BBALL_12243

:BBALL_6511
if or
  18@ == 11
  18@ == 2
  18@ == 3
  18@ == 10
goto_if_false @BBALL_6944
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_PICKUP"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_R"
goto_if_false @BBALL_6930
$walk_with_ball_flag = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_6725
$walk_with_ball_start_position = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"

:BBALL_6725
26@ = open_sequence_task 
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_6864
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALK_START" {animationFile} "BSKTBALL" {blendSpeed} 8.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALK" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
$walk_with_ball_flag = 1
goto @BBALL_6905

:BBALL_6864
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALK" {animationFile} "BSKTBALL" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1

:BBALL_6905
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_6937

:BBALL_6930
goto @BBALL_12251

:BBALL_6937
goto @BBALL_7037

:BBALL_6944
if 
  $walk_with_ball_flag == 0
goto_if_false @BBALL_7037
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_7037
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"
set_char_anim_current_time $scplayer {animationName} "BBALL_WALK" {time} $walk_with_ball_start_position
$walk_with_ball_flag += 1

:BBALL_7037
goto @BBALL_12243

:BBALL_7044
if or
  18@ == 11
  18@ == 1
  18@ == 3
  18@ == 10
goto_if_false @BBALL_7376
if 
  18@ == 11
goto_if_false @BBALL_7115
17@ = 1
goto @BBALL_5427

:BBALL_7115
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_PICKUP"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_R"
goto_if_false @BBALL_7362
$run_with_ball_flag = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_7292
$run_with_ball_start_position = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"

:BBALL_7292
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_RUN" {animationFile} "BSKTBALL" {blendSpeed} 8.0 {loop} True {lockX} True {lockY} True {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_7369

:BBALL_7362
goto @BBALL_12251

:BBALL_7369
goto @BBALL_7447

:BBALL_7376
if 
  $run_with_ball_flag == 0
goto_if_false @BBALL_7447
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_7447
set_char_anim_current_time $scplayer {animationName} "BBALL_RUN" {time} $run_with_ball_start_position
$run_with_ball_flag += 1

:BBALL_7447
goto @BBALL_12243

:BBALL_7454
if 
  18@ <> 3
goto_if_false @BBALL_8157
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_7735
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_7735
26@ = open_sequence_task 
if 
  0.5 > 8@
goto_if_false @BBALL_7625
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_R" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
goto @BBALL_7672

:BBALL_7625
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:BBALL_7672
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_7735
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_8001
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_8001
26@ = open_sequence_task 
if 
  0.5 > 8@
goto_if_false @BBALL_7891
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALKSTOP_R" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
goto @BBALL_7938

:BBALL_7891
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALKSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:BBALL_7938
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_8001
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK_START"
goto_if_false @BBALL_8150
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_WALKSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_8150
goto @BBALL_8253

:BBALL_8157
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_8207
17@ = 11
goto @BBALL_12251
goto @BBALL_8253

:BBALL_8207
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_8253
17@ = 11
goto @BBALL_12251

:BBALL_8253
goto @BBALL_12243

:BBALL_8260
if 
  18@ <> 11
goto_if_false @BBALL_8346
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_8346
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_8443
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_8443
goto @BBALL_12243

:BBALL_8450
if 
  18@ <> 4
goto_if_false @BBALL_8843
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_var_from_float_lvar 5@ -= $x
set_lvar_float_to_lvar_float 6@ = 3@
sub_float_var_from_float_lvar 6@ -= $y
$heading = get_heading_from_vector_2d 5@ {y} 6@
set_var_float_to_var_float $p_desired_heading = $heading
26@ = open_sequence_task 
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
task_look_at_coord -1 {x} $x {y} $y {z} $z {time} 2000
if 
  18@ == 2
goto_if_false @BBALL_8772
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_8650
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"

:BBALL_8650
if 
  0.5 > 8@
goto_if_false @BBALL_8725
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_L" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
goto @BBALL_8772

:BBALL_8725
task_play_anim_non_interruptable -1 {animationName} "BBALL_SKIDSTOP_R" {animationFile} "BSKTBALL" {blendSpeed} 6.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1

:BBALL_8772
task_play_anim_non_interruptable -1 {animationName} "BBALL_JUMP_SHOT" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_8934

:BBALL_8843
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_8934
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
if 
  is_float_lvar_greater_than_float_var 8@ > $anim_release_time
goto_if_false @BBALL_8934
17@ = 6
goto @BBALL_12251

:BBALL_8934
goto @BBALL_12243

:BBALL_8941
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_END"
goto_if_false @BBALL_9058
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_JUMP_CANCEL" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
17@ = 13
goto @BBALL_12251

:BBALL_9058
goto @BBALL_12243

:BBALL_9065
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_9108
17@ = 11
goto @BBALL_12251

:BBALL_9108
goto @BBALL_12243

:BBALL_9115
if 
  18@ <> 6
goto_if_false @BBALL_9577
if 
  is_object_attached 1@
goto_if_false @BBALL_9570
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
gosub @BBALL_2506
$x, $y, $z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.04 {yOffset} 0.694 {zOffset} 1.75
set_object_coordinates 1@ {x} $x {y} $y {z} $z
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
cset_var_int_to_lvar_float $bball_shot_dist =# 8@
set_lvar_float_to_var_float 7@ = $z
cset_lvar_float_to_var_int 7@ =# $bball_shot_dist
set_lvar_float_to_lvar_float 9@ = 8@
sub_float_lvar_from_float_lvar 9@ -= 7@
9@ *= 10.0
cset_var_int_to_lvar_float $bball_shot_dist_decimal =# 9@
if 
  8@ > 20.0
goto_if_false @BBALL_9343
8@ = 20.0

:BBALL_9343
8@ /= 20.0
8@ *= 5.0
9@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
if 
  9@ > 15.0
goto_if_false @BBALL_9411
9@ = 15.0

:BBALL_9411
mult_float_var_by_float_lvar $release_time *= 9@
$x, $y, $z = get_object_coordinates 1@
9@ = get_float_stat StatId.BodyMuscle
9@ /= 1000.0
9@ += 1.0
9@ *= 0.15
if 
  is_float_lvar_greater_than_float_var 9@ > $release_time
goto_if_false @BBALL_9533
start_new_script @PROJECT 1@ $x $y $z 2@ 3@ 4@ 8@ 0 0@ 
goto @BBALL_9570

:BBALL_9533
start_new_script @PROJECT 1@ $x $y $z 2@ 3@ 4@ 8@ 1 0@ 

:BBALL_9570
goto @BBALL_9660

:BBALL_9577
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_9660
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_9660
set_player_control $player1 {state} True
17@ = 12
goto @BBALL_12251

:BBALL_9660
goto @BBALL_12243

:BBALL_9667
if 
  18@ <> 16
goto_if_false @BBALL_10147
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
if 
  8@ > 0.01
goto_if_false @BBALL_9801
div_float_lvar_by_float_lvar 5@ /= 8@
div_float_lvar_by_float_lvar 6@ /= 8@

:BBALL_9801
5@ *= 0.01
6@ *= 0.01
set_var_float_to_lvar_float $x = 2@
add_float_lvar_to_float_var $x += 5@
set_var_float_to_lvar_float $y = 3@
add_float_lvar_to_float_var $y += 6@
set_var_float_to_lvar_float $z = 4@
$z -= 1.9
set_var_float_to_var_float $bb_desired_x = $x
set_var_float_to_var_float $bb_desired_y = $y
set_var_float_to_var_float $bb_desired_z = $z
5@ *= -1.0
6@ *= -1.0
$heading = get_heading_from_vector_2d 5@ {y} 6@
set_var_float_to_var_float $p_desired_heading = $heading
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK_LNCH" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK_GLI" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK_LND" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
$dunc_glide_percent = 0.0
goto @BBALL_10649

:BBALL_10147
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_10344
if 
  not does_object_exist $char_obj
goto_if_false @BBALL_10344
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 0
$dunk_slide_distance = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
$dunc_glide_percent = 0.0
$heading = get_char_heading $scplayer
$char_obj = create_object_no_offset #BBALL_INGAME {x} $x {y} $y {z} $z
set_object_heading $char_obj {heading} $heading
set_object_collision $char_obj {state} False
set_object_visible $char_obj {state} False
freeze_object_position $char_obj {state} True
attach_char_to_object $scplayer {handle} $char_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed
22@ = 1

:BBALL_10344
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
goto_if_false @BBALL_10392
17@ = 17
goto @BBALL_12251
goto @BBALL_10469

:BBALL_10392
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_10469
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LNCH"
goto_if_false @BBALL_10469
17@ = 17
goto @BBALL_12251

:BBALL_10469
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_10649
if 
  does_object_exist $char_obj
goto_if_false @BBALL_10649
if 
  $dunc_glide_percent > 1.0
goto_if_false @BBALL_10649
clear_char_tasks_immediately $scplayer
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_DNK_LND" {animationFile} "BSKTBALL" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_10649
goto @BBALL_12243

:BBALL_10656
if 
  18@ <> 17
goto_if_false @BBALL_11064
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
goto_if_false @BBALL_11043
if 
  is_object_attached 1@
goto_if_false @BBALL_11036
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_O"
goto_if_false @BBALL_10926
8@ = get_object_anim_current_time 1@ {animationName} "BBALL_DNK_O"
if 
  8@ > 0.9
goto_if_false @BBALL_10905
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
gosub @BBALL_2506
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
$z += -0.5
set_object_coordinates 1@ {x} $x {y} $y {z} $z
freeze_object_position 1@ {state} False
set_object_collision 1@ {state} True
set_object_dynamic 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1
goto @BBALL_10919

:BBALL_10905
18@ = 0
goto @BBALL_12251

:BBALL_10919
goto @BBALL_11036

:BBALL_10926
detach_object 1@ {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False
gosub @BBALL_2506
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
$z += -0.5
set_object_coordinates 1@ {x} $x {y} $y {z} $z
freeze_object_position 1@ {state} False
set_object_collision 1@ {state} True
set_object_dynamic 1@ {state} True
set_object_velocity 1@ {xSpeed} 0.0 {ySpeed} 0.0 {zSpeed} -0.1

:BBALL_11036
goto @BBALL_11057

:BBALL_11043
$bb_desired_z = get_ground_z_for_3d_coord $bb_desired_x {y} $bb_desired_y {z} $bb_desired_z

:BBALL_11057
goto @BBALL_11350

:BBALL_11064
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LNCH"
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
  not is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LND"
goto_if_false @BBALL_11242
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11235
if 
  does_object_exist $char_obj
goto_if_false @BBALL_11214
detach_char_from_car $scplayer
delete_object $char_obj
22@ = 0

:BBALL_11214
set_player_control $player1 {state} True
17@ = 12
goto @BBALL_12251

:BBALL_11235
goto @BBALL_11350

:BBALL_11242
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LND"
goto_if_false @BBALL_11350
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 1.0
set_var_float_to_var_float $bb_desired_x = $x
set_var_float_to_var_float $bb_desired_y = $y
set_var_float_to_var_float $bb_desired_z = $z

:BBALL_11350
goto @BBALL_12243

:BBALL_11357
if 
  18@ <> 7
goto_if_false @BBALL_11443
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_LOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_11443
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11540
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_LOOP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_11540
goto @BBALL_12243

:BBALL_11547
if 
  18@ <> 8
goto_if_false @BBALL_11638
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_JUMP_SHOT" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_11638
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_11740
26@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BBALL_DEF_JUMP_SHOT" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@

:BBALL_11740
goto @BBALL_12243

:BBALL_11747
goto @BBALL_12243

:BBALL_11754
goto @BBALL_12243

:BBALL_11761
if 
  18@ <> 10
goto_if_false @BBALL_12140
set_player_control $player1 {state} False
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist 1@
goto_if_false @BBALL_11845
2@, 3@, 4@ = get_object_coordinates 1@

:BBALL_11845
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
div_float_lvar_by_float_lvar 5@ /= 8@
div_float_lvar_by_float_lvar 6@ /= 8@
5@ *= 0.5
6@ *= 0.5
set_var_float_to_lvar_float $x = 2@
add_float_lvar_to_float_var $x += 5@
set_var_float_to_lvar_float $y = 3@
add_float_lvar_to_float_var $y += 6@
set_lvar_float_to_lvar_float 5@ = 2@
sub_float_var_from_float_lvar 5@ -= $x
set_lvar_float_to_lvar_float 6@ = 3@
sub_float_var_from_float_lvar 6@ -= $y
$heading = get_heading_from_vector_2d 5@ {y} 6@
26@ = open_sequence_task 
task_char_slide_to_coord_and_play_anim -1 {x} $x {y} $y {z} $z {heading} $heading {radius} -1.0 {animationName} "BBALL_PICKUP" {animationFile} "BSKTBALL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable -1 {animationName} "BBALL_IDLELOOP" {animationFile} "BSKTBALL" {blendSpeed} 10000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
close_sequence_task 26@
perform_sequence_task $scplayer {sequence} 26@
clear_sequence_task 26@
goto @BBALL_12236

:BBALL_12140
24@ = get_script_task_status $scplayer {taskId} 1560
if 
  is_int_lvar_equal_to_constant 24@ == 7
goto_if_false @BBALL_12190
17@ = 11
goto @BBALL_12251
goto @BBALL_12236

:BBALL_12190
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_12236
17@ = 11
goto @BBALL_12251

:BBALL_12236
goto @BBALL_12243

:BBALL_12243
set_lvar_int_to_lvar_int 18@ = 17@

:BBALL_12251
return 

:BBALL_12253
if 
  is_player_playing $player1
goto_if_false @BBALL_16390
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLELOOP"
goto_if_false @BBALL_12603
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLELOOP"
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_12438
if 
  8@ > 0.45
goto_if_false @BBALL_12413
if 
  27@ <> 1
goto_if_false @BBALL_12406
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 1

:BBALL_12406
goto @BBALL_12438

:BBALL_12413
if 
  27@ == 1
goto_if_false @BBALL_12438
27@ = 0

:BBALL_12438
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_12603
if 
  is_object_playing_anim 1@ {animationName} "BBALL_IDLELOOP_O"
goto_if_false @BBALL_12524
set_object_anim_current_time 1@ {animationName} "BBALL_IDLELOOP_O" {time} 8@
goto @BBALL_12603

:BBALL_12524
if 
play_object_anim 1@ {animationName} "BBALL_IDLELOOP_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} True {loop} False
goto_if_false @BBALL_12603
set_object_anim_current_time 1@ {animationName} "BBALL_IDLELOOP_O" {time} 8@

:BBALL_12603
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE"
goto_if_false @BBALL_12886
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLE"
if 
  8@ > 0.8767
goto_if_false @BBALL_12712
if 
  27@ <> 2
goto_if_false @BBALL_12705
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 2

:BBALL_12705
goto @BBALL_12737

:BBALL_12712
if 
  27@ == 2
goto_if_false @BBALL_12737
27@ = 0

:BBALL_12737
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_12886
if 
  is_object_playing_anim 1@ {animationName} "BBALL_IDLE_O"
goto_if_false @BBALL_12815
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE_O" {time} 8@
goto @BBALL_12886

:BBALL_12815
if 
play_object_anim 1@ {animationName} "BBALL_IDLE_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_12886
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE_O" {time} 8@

:BBALL_12886
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_IDLE2"
goto_if_false @BBALL_13089
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_IDLE2"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_13089
if 
  is_object_playing_anim 1@ {animationName} "BBALL_IDLE2_O"
goto_if_false @BBALL_13016
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE2_O" {time} 8@
goto @BBALL_13089

:BBALL_13016
if 
play_object_anim 1@ {animationName} "BBALL_IDLE2_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_13089
set_object_anim_current_time 1@ {animationName} "BBALL_IDLE2_O" {time} 8@

:BBALL_13089
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_13278
if 
  is_object_attached 1@
goto_if_false @BBALL_13278
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_13278
if 
  is_object_playing_anim 1@ {animationName} "BBALL_JUMP_SHOT_O"
goto_if_false @BBALL_13224
goto @BBALL_13278

:BBALL_13224
if 
play_object_anim 1@ {animationName} "BBALL_JUMP_SHOT_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_13278

:BBALL_13278
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_CANCEL"
goto_if_false @BBALL_13517
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_CANCEL"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_13517
if 
  is_object_playing_anim 1@ {animationName} "BBALL_JUMP_CANCEL_O"
goto_if_false @BBALL_13432
set_object_anim_current_time 1@ {animationName} "BBALL_JUMP_CANCEL_O" {time} 8@
goto @BBALL_13517

:BBALL_13432
if 
play_object_anim 1@ {animationName} "BBALL_JUMP_CANCEL_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_13517
set_object_anim_current_time 1@ {animationName} "BBALL_JUMP_CANCEL_O" {time} 8@

:BBALL_13517
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_PICKUP"
goto_if_false @BBALL_13880
if 
  not is_object_attached 1@
goto_if_false @BBALL_13615
attach_object_to_char 1@ {handle} $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0
gosub @BBALL_2506
goto @BBALL_13880

:BBALL_13615
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_PICKUP"
if 
  8@ > 0.836
goto_if_false @BBALL_13698
if 
  27@ <> 3
goto_if_false @BBALL_13691
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 3

:BBALL_13691
goto @BBALL_13723

:BBALL_13698
if 
  27@ == 3
goto_if_false @BBALL_13723
27@ = 0

:BBALL_13723
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_13880
if 
  is_object_playing_anim 1@ {animationName} "BBALL_PICKUP_O"
goto_if_false @BBALL_13805
set_object_anim_current_time 1@ {animationName} "BBALL_PICKUP_O" {time} 8@
goto @BBALL_13880

:BBALL_13805
if 
play_object_anim 1@ {animationName} "BBALL_PICKUP_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_13880
set_object_anim_current_time 1@ {animationName} "BBALL_PICKUP_O" {time} 8@

:BBALL_13880
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_14225
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_RUN"
if 
  8@ > 0.222
goto_if_false @BBALL_14048
if 
  0.74 > 8@
goto_if_false @BBALL_14008
if 
  27@ <> 4
goto_if_false @BBALL_14001
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 4

:BBALL_14001
goto @BBALL_14041

:BBALL_14008
if 
  27@ <> 5
goto_if_false @BBALL_14041
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 5

:BBALL_14041
goto @BBALL_14080

:BBALL_14048
if or
  27@ == 4
  27@ == 5
goto_if_false @BBALL_14080
27@ = 0

:BBALL_14080
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_14225
if 
  is_object_playing_anim 1@ {animationName} "BBALL_RUN_O"
goto_if_false @BBALL_14156
set_object_anim_current_time 1@ {animationName} "BBALL_RUN_O" {time} 8@
goto @BBALL_14225

:BBALL_14156
if 
play_object_anim 1@ {animationName} "BBALL_RUN_O" {animationFile} "BSKTBALL" {frameDelta} 8.0 {lockF} True {loop} False
goto_if_false @BBALL_14225
set_object_anim_current_time 1@ {animationName} "BBALL_RUN_O" {time} 8@

:BBALL_14225
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
goto_if_false @BBALL_14458
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_SKIDSTOP_L"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_14458
if 
  is_object_playing_anim 1@ {animationName} "BBALL_SKIDSTOP_L_O"
goto_if_false @BBALL_14375
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_L_O" {time} 8@
goto @BBALL_14458

:BBALL_14375
if 
play_object_anim 1@ {animationName} "BBALL_SKIDSTOP_L_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_14458
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_L_O" {time} 8@

:BBALL_14458
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
goto_if_false @BBALL_14691
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_SKIDSTOP_R"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_14691
if 
  is_object_playing_anim 1@ {animationName} "BBALL_SKIDSTOP_R_O"
goto_if_false @BBALL_14608
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_R_O" {time} 8@
goto @BBALL_14691

:BBALL_14608
if 
play_object_anim 1@ {animationName} "BBALL_SKIDSTOP_R_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_14691
set_object_anim_current_time 1@ {animationName} "BBALL_SKIDSTOP_R_O" {time} 8@

:BBALL_14691
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_L"
goto_if_false @BBALL_14924
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALKSTOP_L"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_14924
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALKSTOP_L_O"
goto_if_false @BBALL_14841
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_L_O" {time} 8@
goto @BBALL_14924

:BBALL_14841
if 
play_object_anim 1@ {animationName} "BBALL_WALKSTOP_L_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_14924
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_L_O" {time} 8@

:BBALL_14924
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALKSTOP_R"
goto_if_false @BBALL_15157
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALKSTOP_R"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15157
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALKSTOP_R_O"
goto_if_false @BBALL_15074
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_R_O" {time} 8@
goto @BBALL_15157

:BBALL_15074
if 
play_object_anim 1@ {animationName} "BBALL_WALKSTOP_R_O" {animationFile} "BSKTBALL" {frameDelta} 6.0 {lockF} False {loop} True
goto_if_false @BBALL_15157
set_object_anim_current_time 1@ {animationName} "BBALL_WALKSTOP_R_O" {time} 8@

:BBALL_15157
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK"
goto_if_false @BBALL_15535
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK"
if 
  not is_char_playing_anim $scplayer {animationName} "BBALL_RUN"
goto_if_false @BBALL_15386
if 
  8@ > 0.218
goto_if_false @BBALL_15354
if 
  0.718 > 8@
goto_if_false @BBALL_15314
if 
  27@ <> 6
goto_if_false @BBALL_15307
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 6

:BBALL_15307
goto @BBALL_15347

:BBALL_15314
if 
  27@ <> 7
goto_if_false @BBALL_15347
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundBasketballBounce
27@ = 7

:BBALL_15347
goto @BBALL_15386

:BBALL_15354
if or
  27@ == 6
  27@ == 7
goto_if_false @BBALL_15386
27@ = 0

:BBALL_15386
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15535
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALK_O"
goto_if_false @BBALL_15464
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_O" {time} 8@
goto @BBALL_15535

:BBALL_15464
if 
play_object_anim 1@ {animationName} "BBALL_WALK_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} True {loop} False
goto_if_false @BBALL_15535
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_O" {time} 8@

:BBALL_15535
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_WALK_START"
goto_if_false @BBALL_15768
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_WALK_START"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15768
if 
  is_object_playing_anim 1@ {animationName} "BBALL_WALK_START_O"
goto_if_false @BBALL_15685
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_START_O" {time} 8@
goto @BBALL_15768

:BBALL_15685
if 
play_object_anim 1@ {animationName} "BBALL_WALK_START_O" {animationFile} "BSKTBALL" {frameDelta} 8.0 {lockF} False {loop} True
goto_if_false @BBALL_15768
set_object_anim_current_time 1@ {animationName} "BBALL_WALK_START_O" {time} 8@

:BBALL_15768
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LNCH"
goto_if_false @BBALL_15989
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_DNK_LNCH"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_15989
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_LNCH_O"
goto_if_false @BBALL_15910
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_LNCH_O" {time} 8@
goto @BBALL_15989

:BBALL_15910
if 
play_object_anim 1@ {animationName} "BBALL_DNK_LNCH_O" {animationFile} "BSKTBALL" {frameDelta} 4.0 {lockF} False {loop} True
goto_if_false @BBALL_15989
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_LNCH_O" {time} 8@

:BBALL_15989
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_16204
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_DNK_GLI"
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_16204
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_GLI_O"
goto_if_false @BBALL_16127
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_GLI_O" {time} 8@
goto @BBALL_16204

:BBALL_16127
if 
play_object_anim 1@ {animationName} "BBALL_DNK_GLI_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_16204
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_GLI_O" {time} 8@

:BBALL_16204
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
goto_if_false @BBALL_16390
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_DNK"
if 
  0.2 > 8@
goto_if_false @BBALL_16390
if 
  does_object_have_this_model 1@ {modelId} #BBALL_INGAME
goto_if_false @BBALL_16390
if 
  is_object_attached 1@
goto_if_false @BBALL_16390
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_O"
goto_if_false @BBALL_16342
goto @BBALL_16390

:BBALL_16342
if 
play_object_anim 1@ {animationName} "BBALL_DNK_O" {animationFile} "BSKTBALL" {frameDelta} 1000.0 {lockF} False {loop} True
goto_if_false @BBALL_16390

:BBALL_16390
return 

:BBALL_16392
if and
  is_player_playing $player1
  has_model_loaded 23@
goto_if_false @BBALL_17989
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_object_coordinates 0@
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
8@, 8@, $bb_new_camera_z = get_level_design_coords_for_object 0@ {nth} 0
$bb_new_camera_z += -1.0
switch_start $hoop_direction {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BBALL_17326 {caseNum1} 1 {caseLabel1} @BBALL_16546 {caseNum2} 2 {caseLabel2} @BBALL_16741 {caseNum3} 3 {caseLabel3} @BBALL_16936 {caseNum4} 4 {caseLabel4} @BBALL_17131 {caseNum5} -1 {caseLabel5} @BBALL_17326 {caseNum6} -1 {caseLabel6} @BBALL_17326 {caseNum7} -1 {caseLabel7} @BBALL_17326

:BBALL_16546
set_var_float_to_lvar_float $bb_new_camera_x = 2@
$bb_new_camera_x += 0.2
set_var_float_to_var_float $bb_new_camera_y = $y
$bb_new_camera_y += 5.0
6@ += 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_y > 6@
goto_if_false @BBALL_16619
set_var_float_to_lvar_float $bb_new_camera_y = 6@

:BBALL_16619
set_lvar_float_to_lvar_float 8@ = 3@
8@ += 5.0
if 
  is_float_lvar_greater_than_float_var 8@ > $bb_new_camera_y
goto_if_false @BBALL_16664
set_var_float_to_lvar_float $bb_new_camera_y = 8@

:BBALL_16664
set_lvar_float_to_lvar_float 8@ = 6@
sub_float_lvar_from_float_lvar 8@ -= 3@
8@ += -5.0
set_lvar_float_to_lvar_float 9@ = 6@
sub_float_var_from_float_lvar 9@ -= $bb_new_camera_y
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_17326

:BBALL_16741
set_var_float_to_var_float $bb_new_camera_x = $x
$bb_new_camera_x -= 5.0
set_var_float_to_lvar_float $bb_new_camera_y = 3@
$bb_new_camera_y += 0.2
5@ += -5.0
if 
  is_float_lvar_greater_than_float_var 5@ > $bb_new_camera_x
goto_if_false @BBALL_16814
set_var_float_to_lvar_float $bb_new_camera_x = 5@

:BBALL_16814
set_lvar_float_to_lvar_float 8@ = 2@
8@ -= 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_x > 8@
goto_if_false @BBALL_16859
set_var_float_to_lvar_float $bb_new_camera_x = 8@

:BBALL_16859
set_lvar_float_to_lvar_float 8@ = 2@
sub_float_lvar_from_float_lvar 8@ -= 5@
8@ += -5.0
set_lvar_float_to_var_float 9@ = $bb_new_camera_x
sub_float_lvar_from_float_lvar 9@ -= 5@
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_17326

:BBALL_16936
set_var_float_to_lvar_float $bb_new_camera_x = 2@
$bb_new_camera_x -= 0.2
set_var_float_to_var_float $bb_new_camera_y = $y
$bb_new_camera_y -= 5.0
6@ += -5.0
if 
  is_float_lvar_greater_than_float_var 6@ > $bb_new_camera_y
goto_if_false @BBALL_17009
set_var_float_to_lvar_float $bb_new_camera_y = 6@

:BBALL_17009
set_lvar_float_to_lvar_float 8@ = 3@
8@ -= 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_y > 8@
goto_if_false @BBALL_17054
set_var_float_to_lvar_float $bb_new_camera_y = 8@

:BBALL_17054
set_lvar_float_to_lvar_float 8@ = 3@
sub_float_lvar_from_float_lvar 8@ -= 6@
8@ += -5.0
set_lvar_float_to_var_float 9@ = $bb_new_camera_y
sub_float_lvar_from_float_lvar 9@ -= 6@
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_17326

:BBALL_17131
set_var_float_to_var_float $bb_new_camera_x = $x
$bb_new_camera_x += 5.0
set_var_float_to_lvar_float $bb_new_camera_y = 3@
$bb_new_camera_y -= 0.2
5@ += 5.0
if 
  is_float_var_greater_than_float_lvar $bb_new_camera_x > 5@
goto_if_false @BBALL_17204
set_var_float_to_lvar_float $bb_new_camera_x = 5@

:BBALL_17204
set_lvar_float_to_lvar_float 8@ = 2@
8@ += 5.0
if 
  is_float_lvar_greater_than_float_var 8@ > $bb_new_camera_x
goto_if_false @BBALL_17249
set_var_float_to_lvar_float $bb_new_camera_x = 8@

:BBALL_17249
set_lvar_float_to_lvar_float 8@ = 5@
sub_float_lvar_from_float_lvar 8@ -= 2@
8@ += -5.0
set_lvar_float_to_lvar_float 9@ = 5@
sub_float_var_from_float_lvar 9@ -= $bb_new_camera_x
div_float_lvar_by_float_lvar 9@ /= 8@
9@ *= 0.29
9@ += 0.34
goto @BBALL_17326

:BBALL_17326
set_var_float_to_lvar_float $bb_cam_vec_x = 2@
sub_float_var_from_float_var $bb_cam_vec_x -= $x
set_var_float_to_lvar_float $bb_cam_vec_y = 3@
sub_float_var_from_float_var $bb_cam_vec_y -= $y
set_var_float_to_lvar_float $bb_cam_vec_z = 4@
sub_float_var_from_float_var $bb_cam_vec_z -= $z
mult_float_var_by_float_lvar $bb_cam_vec_x *= 9@
mult_float_var_by_float_lvar $bb_cam_vec_y *= 9@
mult_float_var_by_float_lvar $bb_cam_vec_z *= 9@
set_var_float_to_var_float $bb_new_look_x = $x
add_float_var_to_float_var $bb_new_look_x += $bb_cam_vec_x
set_var_float_to_var_float $bb_new_look_y = $y
add_float_var_to_float_var $bb_new_look_y += $bb_cam_vec_y
set_var_float_to_var_float $bb_new_look_z = $z
add_float_var_to_float_var $bb_new_look_z += $bb_cam_vec_z
2@, 3@, 4@ = get_level_design_coords_for_object 0@ {nth} 2
5@, 6@, 7@ = get_level_design_coords_for_object 0@ {nth} 3
if 
  is_float_lvar_greater_than_float_lvar 2@ > 5@
goto_if_false @BBALL_17558
if 
  is_float_var_greater_than_float_lvar $bb_new_look_x > 2@
goto_if_false @BBALL_17524
set_var_float_to_lvar_float $bb_new_look_x = 2@

:BBALL_17524
if 
  is_float_lvar_greater_than_float_var 5@ > $bb_new_look_x
goto_if_false @BBALL_17551
set_var_float_to_lvar_float $bb_new_look_x = 5@

:BBALL_17551
goto @BBALL_17612

:BBALL_17558
if 
  is_float_var_greater_than_float_lvar $bb_new_look_x > 5@
goto_if_false @BBALL_17585
set_var_float_to_lvar_float $bb_new_look_x = 5@

:BBALL_17585
if 
  is_float_lvar_greater_than_float_var 2@ > $bb_new_look_x
goto_if_false @BBALL_17612
set_var_float_to_lvar_float $bb_new_look_x = 2@

:BBALL_17612
if 
  is_float_lvar_greater_than_float_lvar 3@ > 6@
goto_if_false @BBALL_17692
if 
  is_float_var_greater_than_float_lvar $bb_new_look_y > 3@
goto_if_false @BBALL_17658
set_var_float_to_lvar_float $bb_new_look_y = 3@

:BBALL_17658
if 
  is_float_lvar_greater_than_float_var 6@ > $bb_new_look_y
goto_if_false @BBALL_17685
set_var_float_to_lvar_float $bb_new_look_y = 6@

:BBALL_17685
goto @BBALL_17746

:BBALL_17692
if 
  is_float_var_greater_than_float_lvar $bb_new_look_y > 6@
goto_if_false @BBALL_17719
set_var_float_to_lvar_float $bb_new_look_y = 6@

:BBALL_17719
if 
  is_float_lvar_greater_than_float_var 3@ > $bb_new_look_y
goto_if_false @BBALL_17746
set_var_float_to_lvar_float $bb_new_look_y = 3@

:BBALL_17746
set_var_float_to_var_float $bb_cam_vec_x = $bb_new_camera_x
sub_float_lvar_from_float_var $bb_cam_vec_x -= 10@
set_var_float_to_var_float $bb_cam_vec_y = $bb_new_camera_y
sub_float_lvar_from_float_var $bb_cam_vec_y -= 11@
set_var_float_to_var_float $bb_cam_vec_z = $bb_new_camera_z
sub_float_lvar_from_float_var $bb_cam_vec_z -= 12@
$bb_cam_vec_x *= 0.25
$bb_cam_vec_y *= 0.25
$bb_cam_vec_z *= 0.25
add_float_var_to_float_lvar 10@ += $bb_cam_vec_x
add_float_var_to_float_lvar 11@ += $bb_cam_vec_y
add_float_var_to_float_lvar 12@ += $bb_cam_vec_z
set_var_float_to_var_float $bb_cam_vec_x = $bb_new_look_x
sub_float_lvar_from_float_var $bb_cam_vec_x -= 13@
set_var_float_to_var_float $bb_cam_vec_y = $bb_new_look_y
sub_float_lvar_from_float_var $bb_cam_vec_y -= 14@
set_var_float_to_var_float $bb_cam_vec_z = $bb_new_look_z
sub_float_lvar_from_float_var $bb_cam_vec_z -= 15@
$bb_cam_vec_x *= 0.1
$bb_cam_vec_y *= 0.1
$bb_cam_vec_z *= 0.1
add_float_var_to_float_lvar 13@ += $bb_cam_vec_x
add_float_var_to_float_lvar 14@ += $bb_cam_vec_y
add_float_var_to_float_lvar 15@ += $bb_cam_vec_z
set_fixed_camera_position 10@ {y} 11@ {z} 12@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 13@ {y} 14@ {z} 15@ {switchStyle} SwitchType.JumpCut

:BBALL_17989
return 

:BBALL_17991
if and
  is_object_attached 1@
  has_model_loaded 23@
goto_if_false @BBALL_19704
24@ = 1
if or
  17@ == 10
  17@ == 4
  17@ == 6
  17@ == 16
  17@ == 17
goto_if_false @BBALL_18072
24@ = 0

:BBALL_18072
if or
  17@ == 14
  17@ == 15
goto_if_false @BBALL_18104
24@ = 0

:BBALL_18104
if 
  24@ == 1
goto_if_false @BBALL_19330
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @BBALL_18532
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_var_float_to_var_int $x =# $LStickX
cset_var_float_to_var_int $y =# $LStickY
$x /= 128.0
$y /= -128.0
set_lvar_float_to_var_float 8@ = $x
mult_float_lvar_by_float_var 8@ *= $x
set_lvar_float_to_var_float 9@ = $y
mult_float_lvar_by_float_var 9@ *= $y
add_float_lvar_to_float_lvar 8@ += 9@
8@ = sqrt 8@
$p_desired_heading = get_heading_from_vector_2d $x {y} $y
if 
  $bball_camera_type == 1
goto_if_false @BBALL_18313
set_var_float_to_lvar_float $x = 13@
sub_float_lvar_from_float_var $x -= 10@
set_var_float_to_lvar_float $y = 14@
sub_float_lvar_from_float_var $y -= 11@
goto @BBALL_18383

:BBALL_18313
2@, 3@, 4@ = get_active_camera_coordinates 
5@, 6@, 7@ = get_active_camera_point_at 
set_var_float_to_lvar_float $x = 5@
sub_float_lvar_from_float_var $x -= 2@
set_var_float_to_lvar_float $y = 6@
sub_float_lvar_from_float_var $y -= 3@
set_var_float_to_lvar_float $z = 7@
sub_float_lvar_from_float_var $z -= 4@

:BBALL_18383
9@ = get_heading_from_vector_2d $x {y} $y
add_float_lvar_to_float_var $p_desired_heading += 9@
if 
  8@ > 0.3
goto_if_false @BBALL_18472
if 
  0.8 > 8@
goto_if_false @BBALL_18458
17@ = 1
goto @BBALL_18465

:BBALL_18458
17@ = 2

:BBALL_18465
goto @BBALL_18525

:BBALL_18472
if or
  18@ == 2
  18@ == 1
  17@ == 2
  17@ == 1
goto_if_false @BBALL_18525
17@ = 3
18@ = 0

:BBALL_18525
goto @BBALL_18585

:BBALL_18532
if or
  18@ == 2
  18@ == 1
  17@ == 2
  17@ == 1
goto_if_false @BBALL_18585
17@ = 3
18@ = 0

:BBALL_18585
if 
  21@ == 0
goto_if_false @BBALL_19225
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_19186
if 
  18@ <> 6
goto_if_false @BBALL_19179
$x, $y, $z = get_level_design_coords_for_object 0@ {nth} 0
if 
  is_player_playing $player1
goto_if_false @BBALL_18684
2@, 3@, 4@ = get_char_coordinates $scplayer

:BBALL_18684
set_lvar_float_to_var_float 5@ = $x
sub_float_lvar_from_float_lvar 5@ -= 2@
set_lvar_float_to_var_float 6@ = $y
sub_float_lvar_from_float_lvar 6@ -= 3@
$x, $y, $z = get_object_coordinates 0@
2@, 3@, 4@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
set_lvar_float_to_lvar_float 8@ = 2@
sub_float_var_from_float_lvar 8@ -= $x
set_lvar_float_to_lvar_float 9@ = 3@
sub_float_var_from_float_lvar 9@ -= $y
set_lvar_float_to_lvar_float 2@ = 8@
set_lvar_float_to_lvar_float 3@ = 9@
8@ = get_angle_between_2d_vectors 5@ {y1} 6@ {x2} 2@ {y2} 3@
24@ = 0
if 
  90.0 > 8@
goto_if_false @BBALL_19179
24@ = 0
if 
  18@ == 2
goto_if_false @BBALL_19133
8@ = get_float_stat StatId.Fat
if 
  400.0 > 8@
goto_if_false @BBALL_19133
$x, $y, $z = get_char_coordinates $scplayer
2@, 3@, 4@ = get_object_coordinates 0@
5@, 6@, 7@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 2@ {toZ} 3@
if and
  8@ > 2.4
  3.5 > 8@
goto_if_false @BBALL_19133
set_var_float_to_lvar_float $bb_cam_vec_x = 5@
sub_float_var_from_float_var $bb_cam_vec_x -= $x
set_var_float_to_lvar_float $bb_cam_vec_y = 6@
sub_float_var_from_float_var $bb_cam_vec_y -= $y
set_lvar_float_to_lvar_float 8@ = 2@
sub_float_var_from_float_lvar 8@ -= $x
set_lvar_float_to_lvar_float 9@ = 3@
sub_float_var_from_float_lvar 9@ -= $y
$z = get_angle_between_2d_vectors $bb_cam_vec_x {y1} $bb_cam_vec_y {x2} 8@ {y2} 9@
if 
  90.0 > $z
goto_if_false @BBALL_19126
24@ = 1
goto @BBALL_19133

:BBALL_19126
24@ = 0

:BBALL_19133
if 
  24@ == 1
goto_if_false @BBALL_19165
17@ = 16
goto @BBALL_19172

:BBALL_19165
17@ = 4

:BBALL_19172
21@ = 1

:BBALL_19179
goto @BBALL_19218

:BBALL_19186
if and
  18@ == 4
  17@ <> 6
goto_if_false @BBALL_19218
21@ = 1

:BBALL_19218
goto @BBALL_19225

:BBALL_19225
if and
  17@ == 11
  18@ == 11
goto_if_false @BBALL_19274
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BBALL_19274
17@ = 14

:BBALL_19274
if and
  17@ == 11
  18@ == 11
goto_if_false @BBALL_19323
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BBALL_19323
17@ = 15

:BBALL_19323
goto @BBALL_19697

:BBALL_19330
if 
  21@ == 1
goto_if_false @BBALL_19697
if or
  17@ == 4
  17@ == 6
goto_if_false @BBALL_19673
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_19537
21@ = 0
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_19520
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
if 
  is_float_lvar_greater_than_float_var 8@ > $anim_release_time
goto_if_false @BBALL_19497
set_var_float_to_lvar_float $release_time = 8@
sub_float_var_from_float_var $release_time -= $anim_release_time
goto @BBALL_19513

:BBALL_19497
set_var_float_to_var_float $release_time = $anim_release_time
sub_float_lvar_from_float_var $release_time -= 8@

:BBALL_19513
goto @BBALL_19530

:BBALL_19520
$release_time = 1.0

:BBALL_19530
goto @BBALL_19666

:BBALL_19537
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_JUMP_SHOT"
goto_if_false @BBALL_19656
8@ = get_char_anim_current_time $scplayer {animationName} "BBALL_JUMP_SHOT"
set_lvar_float_to_var_float 9@ = $anim_release_time
9@ += 0.1
if 
  is_float_lvar_greater_than_float_lvar 8@ > 9@
goto_if_false @BBALL_19649
$release_time = 1.0
21@ = 0

:BBALL_19649
goto @BBALL_19666

:BBALL_19656
$release_time = 1.0

:BBALL_19666
goto @BBALL_19697

:BBALL_19673
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_19697
21@ = 0

:BBALL_19697
goto @BBALL_19844

:BBALL_19704
if 
  18@ == 12
goto_if_false @BBALL_19844
if 
  21@ == 0
goto_if_false @BBALL_19820
if 
  does_object_exist 1@
goto_if_false @BBALL_19813
$x, $y, $z = get_object_coordinates 1@
if 
  locate_char_on_foot_object_3d $scplayer {object} 1@ {xRadius} 0.7 {yRadius} 0.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @BBALL_19813
17@ = 10

:BBALL_19813
goto @BBALL_19844

:BBALL_19820
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BBALL_19844
21@ = 0

:BBALL_19844
24@ = 0
if or
  17@ == 1
  17@ == 2
  17@ == 8
  17@ == 4
  17@ == 6
goto_if_false @BBALL_19904
24@ = 1

:BBALL_19904
if or
  17@ == 16
  17@ == 17
goto_if_false @BBALL_19936
24@ = 1

:BBALL_19936
if 
  24@ == 1
goto_if_false @BBALL_20231
if 
  not is_char_dead $scplayer
goto_if_false @BBALL_19978
29@ = get_char_heading $scplayer

:BBALL_19978
if 
  $p_desired_heading > 360.0
goto_if_false @BBALL_20016
$p_desired_heading += -360.0
goto @BBALL_19978

:BBALL_20016
if 
  -360.0 > $p_desired_heading
goto_if_false @BBALL_20054
$p_desired_heading += 360.0
goto @BBALL_20016

:BBALL_20054
set_lvar_float_to_var_float 30@ = $p_desired_heading
sub_float_lvar_from_float_lvar 30@ -= 29@
if 
  30@ > 180.0
goto_if_false @BBALL_20101
30@ += -360.0

:BBALL_20101
if 
  -180.0 > 30@
goto_if_false @BBALL_20132
30@ += 360.0

:BBALL_20132
30@ /= 10.0
add_timed_float_lvar_to_float_lvar 29@ +=@ 30@
if 
  not is_char_dead $scplayer
goto_if_false @BBALL_20231
if and
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_L"
  not is_char_playing_anim $scplayer {animationName} "BBALL_SKIDSTOP_R"
goto_if_false @BBALL_20231
set_char_heading $scplayer {heading} 29@

:BBALL_20231
if or
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK"
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_LND"
goto_if_false @BBALL_20849
if 
  does_object_exist $char_obj
goto_if_false @BBALL_20849
$x, $y, $z = get_object_coordinates $char_obj
8@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} $bb_desired_x {toY} $bb_desired_y {toZ} $bb_desired_z
if 
  1.0 >= $dunc_glide_percent
goto_if_false @BBALL_20818
if 
  8@ > 0.07
goto_if_false @BBALL_20651
set_lvar_float_to_var_float 2@ = $bb_desired_x
sub_float_var_from_float_lvar 2@ -= $x
set_lvar_float_to_var_float 3@ = $bb_desired_y
sub_float_var_from_float_lvar 3@ -= $y
set_lvar_float_to_var_float 4@ = $bb_desired_z
sub_float_var_from_float_lvar 4@ -= $z
div_float_lvar_by_float_lvar 2@ /= 8@
div_float_lvar_by_float_lvar 3@ /= 8@
div_float_lvar_by_float_lvar 4@ /= 8@
if 
  8@ > 0.065
goto_if_false @BBALL_20620
2@ *= 0.065
3@ *= 0.065
4@ *= 0.065
add_timed_float_lvar_to_float_var $x +=@ 2@
add_timed_float_lvar_to_float_var $y +=@ 3@
add_timed_float_lvar_to_float_var $z +=@ 4@
set_object_coordinates $char_obj {x} $x {y} $y {z} $z
8@ = get_distance_between_coords_3d $x {fromY} $y {fromZ} $z {toX} $bb_desired_x {toY} $bb_desired_y {toZ} $bb_desired_z
set_var_float_to_lvar_float $dunc_glide_percent = 8@
div_float_var_by_float_var $dunc_glide_percent /= $dunk_slide_distance
$dunc_glide_percent += -1.0
$dunc_glide_percent *= -1.0
goto @BBALL_20644

:BBALL_20620
set_object_coordinates $char_obj {x} $bb_desired_x {y} $bb_desired_y {z} $bb_desired_z
$dunc_glide_percent = 1.0

:BBALL_20644
goto @BBALL_20675

:BBALL_20651
set_object_coordinates $char_obj {x} $bb_desired_x {y} $bb_desired_y {z} $bb_desired_z
$dunc_glide_percent = 1.0

:BBALL_20675
if 
  is_char_playing_anim $scplayer {animationName} "BBALL_DNK_GLI"
goto_if_false @BBALL_20818
if and
  $dunc_glide_percent >= 0.0
  1.0 >= $dunc_glide_percent
goto_if_false @BBALL_20818
set_char_anim_current_time $scplayer {animationName} "BBALL_DNK_GLI" {time} $dunc_glide_percent
if 
  is_object_playing_anim 1@ {animationName} "BBALL_DNK_GLI_O"
goto_if_false @BBALL_20818
set_object_anim_current_time 1@ {animationName} "BBALL_DNK_GLI_O" {time} $dunc_glide_percent

:BBALL_20818
if 
  $dunc_glide_percent == 1.0
goto_if_false @BBALL_20849
$dunc_glide_percent = 1.01

:BBALL_20849
return 
set_var_float_to_var_float $x = $intrp_dest_x
sub_float_var_from_float_var $x -= $intrp_start_x
set_var_float_to_var_float $y = $intrp_dest_y
sub_float_var_from_float_var $y -= $intrp_start_y
set_var_float_to_var_float $z = $intrp_dest_z
sub_float_var_from_float_var $z -= $intrp_start_z
mult_float_var_by_float_var $x *= $intrp_speed
mult_float_var_by_float_var $y *= $intrp_speed
mult_float_var_by_float_var $z *= $intrp_speed
add_float_var_to_float_var $intrp_start_x += $x
add_float_var_to_float_var $intrp_start_y += $y
add_float_var_to_float_var $intrp_start_z += $z
return 

:BBALL_20949
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 0@
goto_if_false @BBALL_20998
2@, 3@, 4@ = get_object_coordinates 0@
$heading = get_object_heading 0@

:BBALL_20998
$heading *= -1.0
8@ = cos $heading
9@ = sin $heading
set_var_float_to_var_float $bb_vec_x = $x
sub_float_lvar_from_float_var $bb_vec_x -= 2@
set_var_float_to_var_float $bb_vec_y = $y
sub_float_lvar_from_float_var $bb_vec_y -= 3@
set_var_float_to_var_float $bb_vec_z = $z
sub_float_lvar_from_float_var $bb_vec_z -= 4@
set_var_float_to_var_float $bb_vec2_x = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_x *= 8@
set_var_float_to_var_float $bb_temp_float3 = $bb_vec_y
mult_float_var_by_float_lvar $bb_temp_float3 *= 9@
sub_float_var_from_float_var $bb_vec2_x -= $bb_temp_float3
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 9@
set_var_float_to_var_float $bb_temp_float3 = $bb_vec_y
mult_float_var_by_float_lvar $bb_temp_float3 *= 8@
add_float_var_to_float_var $bb_vec2_y += $bb_temp_float3
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM BBHOOP = "
save_float_to_debug_file $bb_vec2_x
save_float_to_debug_file $bb_vec2_y
save_float_to_debug_file $bb_vec_z
$x, $y, $z = get_debug_camera_point_at 
set_var_float_to_var_float $bb_vec_x = $x
sub_float_lvar_from_float_var $bb_vec_x -= 2@
set_var_float_to_var_float $bb_vec_y = $y
sub_float_lvar_from_float_var $bb_vec_y -= 3@
set_var_float_to_var_float $bb_vec_z = $z
sub_float_lvar_from_float_var $bb_vec_z -= 4@
set_var_float_to_var_float $bb_vec2_x = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_x *= 8@
set_var_float_to_var_float $bb_temp_float3 = $bb_vec_y
mult_float_var_by_float_lvar $bb_temp_float3 *= 9@
sub_float_var_from_float_var $bb_vec2_x -= $bb_temp_float3
set_var_float_to_var_float $bb_vec2_y = $bb_vec_x
mult_float_var_by_float_lvar $bb_vec2_y *= 9@
set_var_float_to_var_float $bb_temp_float3 = $bb_vec_y
mult_float_var_by_float_lvar $bb_temp_float3 *= 8@
add_float_var_to_float_var $bb_vec2_y += $bb_temp_float3
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM BBHOOP = "
save_float_to_debug_file $bb_vec2_x
save_float_to_debug_file $bb_vec2_y
save_float_to_debug_file $bb_vec_z
return 
terminate_this_script 

//-------------External script 16 (VIDPOK)---------------

:VIDPOK
script_name 'VIDPOK'
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
if 
  4@ == -1
goto_if_false @VIDPOK_110
0@ = create_object #KMB_ROCK {x} 0.0 {y} 0.0 {z} 0.0
$active_vidpok_machine = create_object #KMB_ROCK {x} 0.0 {y} 0.0 {z} 0.0

:VIDPOK_110
if 
  is_player_playing $player1
goto_if_false @VIDPOK_134
12@ = store_score $player1

:VIDPOK_134
if 
  100 > 12@
goto_if_false @VIDPOK_166
13@ = 5
goto @VIDPOK_309

:VIDPOK_166
if 
  1000 > 12@
goto_if_false @VIDPOK_199
13@ = 6
goto @VIDPOK_309

:VIDPOK_199
if 
  10000 > 12@
goto_if_false @VIDPOK_232
13@ = 7
goto @VIDPOK_309

:VIDPOK_232
if 
  50000 > 12@
goto_if_false @VIDPOK_267
13@ = 8
goto @VIDPOK_309

:VIDPOK_267
if 
  100000 > 12@
goto_if_false @VIDPOK_302
13@ = 9
goto @VIDPOK_309

:VIDPOK_302
13@ = 10

:VIDPOK_309
12@ = generate_random_int_in_range 0 {max} 13@
switch_start 12@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_591 {caseNum1} 0 {caseLabel1} @VIDPOK_447 {caseNum2} 1 {caseLabel2} @VIDPOK_461 {caseNum3} 2 {caseLabel3} @VIDPOK_475 {caseNum4} 3 {caseLabel4} @VIDPOK_489 {caseNum5} 4 {caseLabel5} @VIDPOK_503 {caseNum6} 5 {caseLabel6} @VIDPOK_517 {caseNum7} 6 {caseLabel7} @VIDPOK_531
switch_continued 7 {caseLabel1} @VIDPOK_546 {caseNum2} 8 {caseLabel2} @VIDPOK_561 {caseNum3} 9 {caseLabel3} @VIDPOK_576 {caseNum4} -1 {caseLabel4} @VIDPOK_591 {caseNum5} -1 {caseLabel5} @VIDPOK_591 {caseNum6} -1 {caseLabel6} @VIDPOK_591 {caseNum7} -1 {caseLabel7} @VIDPOK_591 {caseNum8} -1 {caseLabel8} @VIDPOK_591 {caseNum9} -1 {caseLabel9} @VIDPOK_591

:VIDPOK_447
1@ = 1
goto @VIDPOK_591

:VIDPOK_461
1@ = 5
goto @VIDPOK_591

:VIDPOK_475
1@ = 10
goto @VIDPOK_591

:VIDPOK_489
1@ = 25
goto @VIDPOK_591

:VIDPOK_503
1@ = 50
goto @VIDPOK_591

:VIDPOK_517
1@ = 100
goto @VIDPOK_591

:VIDPOK_531
1@ = 500
goto @VIDPOK_591

:VIDPOK_546
1@ = 1000
goto @VIDPOK_591

:VIDPOK_561
1@ = 5000
goto @VIDPOK_591

:VIDPOK_576
1@ = 10000
goto @VIDPOK_591

:VIDPOK_591
wait 0
if 
  does_object_exist 0@
goto_if_false @VIDPOK_1657
if 
  $active_vidpok_machine == 0
goto_if_false @VIDPOK_1569
if 
  is_player_playing $player1
goto_if_false @VIDPOK_1533
if 
  $iSetCasinoPanic == 0
goto_if_false @VIDPOK_1497
if 
  locate_char_on_foot_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @VIDPOK_1461
12@ = 0
13@ = get_object_model 0@
19@, 20@, 21@, 22@, 23@, 24@ = get_model_dimensions 13@
set_lvar_float_to_lvar_float 15@ = 22@
sub_float_lvar_from_float_lvar 15@ -= 19@
if 
  15@ > 4.0
goto_if_false @VIDPOK_1166
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_847
12@ = 1

:VIDPOK_847
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.838 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_925
12@ = 1

:VIDPOK_925
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -1.676 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1003
12@ = 1

:VIDPOK_1003
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.838 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1081
12@ = 1

:VIDPOK_1081
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 1.676 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1159
12@ = 1

:VIDPOK_1159
goto @VIDPOK_1244

:VIDPOK_1166
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.3 {yRadius} 0.3 {zRadius} 1.5 {drawSphere} False
goto_if_false @VIDPOK_1244
12@ = 1

:VIDPOK_1244
if 
  12@ == 1
goto_if_false @VIDPOK_1427
if 
  $vp_triangle_is_pressed == 0
goto_if_false @VIDPOK_1396
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VIDPOK_1353
if 
  2@ == 1
goto_if_false @VIDPOK_1324
clear_help 
2@ = 0

:VIDPOK_1324
3@ = 0
4@ = 0
set_var_int_to_lvar_int $active_vidpok_machine = 0@
goto @VIDPOK_1389

:VIDPOK_1353
if 
  2@ == 0
goto_if_false @VIDPOK_1389
print_help_forever 'VP01'
2@ = 1

:VIDPOK_1389
goto @VIDPOK_1420

:VIDPOK_1396
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VIDPOK_1420
$vp_triangle_is_pressed = 0

:VIDPOK_1420
goto @VIDPOK_1454

:VIDPOK_1427
if 
  2@ == 1
goto_if_false @VIDPOK_1454
clear_help 
2@ = 0

:VIDPOK_1454
goto @VIDPOK_1490

:VIDPOK_1461
if 
  2@ == 1
goto_if_false @VIDPOK_1488
clear_help 
2@ = 0

:VIDPOK_1488
terminate_this_script 

:VIDPOK_1490
goto @VIDPOK_1526

:VIDPOK_1497
if 
  2@ == 1
goto_if_false @VIDPOK_1524
clear_help 
2@ = 0

:VIDPOK_1524
terminate_this_script 

:VIDPOK_1526
goto @VIDPOK_1562

:VIDPOK_1533
if 
  2@ == 1
goto_if_false @VIDPOK_1560
clear_help 
2@ = 0

:VIDPOK_1560
terminate_this_script 

:VIDPOK_1562
goto @VIDPOK_1650

:VIDPOK_1569
if 
  is_int_var_equal_to_int_lvar $active_vidpok_machine == 0@
goto_if_false @VIDPOK_1650
if 
  is_player_playing $player1
goto_if_false @VIDPOK_1650
if 
  7@ == 0
goto_if_false @VIDPOK_1636
gosub @VIDPOK_1695
goto @VIDPOK_1650

:VIDPOK_1636
gosub @VIDPOK_35039
$active_vidpok_machine = 0

:VIDPOK_1650
goto @VIDPOK_1686

:VIDPOK_1657
if 
  2@ == 1
goto_if_false @VIDPOK_1684
clear_help 
2@ = 0

:VIDPOK_1684
terminate_this_script 

:VIDPOK_1686
goto @VIDPOK_591
return 

:VIDPOK_1695
if 
is_ps2_keyboard_key_pressed 32
goto_if_false @VIDPOK_1717
25@ = 1

:VIDPOK_1717
if 
  25@ == 1
goto_if_false @VIDPOK_1801
set_var_int_to_lvar_int $VIDPOK_view_debug = 3@
set_var_int_to_lvar_int $8904 = 4@
view_integer_variable $VIDPOK_view_debug {_p2} "M_STAGE"
view_integer_variable $8904 {_p2} "M_GOALS"
view_integer_variable $high_cards_held {_p2} "HIGH_CARDS_HELD"

:VIDPOK_1801
8@ += 1
if 
  8@ > 9
goto_if_false @VIDPOK_1833
8@ = 0

:VIDPOK_1833
9@ = get_game_timer 
set_lvar_int_to_lvar_int 11@ = 9@
sub_int_lvar_from_int_lvar 11@ -= 10@
set_lvar_int_to_lvar_int 10@ = 9@
if 
  3@ == 0
goto_if_false @VIDPOK_4544
if 
  4@ == 0
goto_if_false @VIDPOK_3662
set_minigame_in_progress True
if 
  does_object_exist 0@
goto_if_false @VIDPOK_1926
$heading = get_object_heading 0@

:VIDPOK_1926
set_player_control $player1 {state} False
task_achieve_heading $scplayer {heading} $heading
display_hud False
$vp_yellow = 200
$vp_screen_x[0] = 529.0
$vp_screen_y[0] = 57.0
$vp_screen_x[1] = 565.0
$vp_screen_y[1] = 384.0
$vp_screen_x[2] = 527.0
$vp_screen_y[2] = 133.0
$vp_screen_x[3] = 323.0
$vp_screen_y[3] = 291.0
$vp_screen_x[4] = 180.0
$vp_screen_y[4] = 413.0
$vp_screen_x[5] = 79.0
$vp_screen_y[5] = 34.0
$vp_screen_x[6] = 531.0
$vp_screen_y[6] = 79.0
$vp_screen_x[7] = 527.0
$vp_screen_y[7] = 157.0
$card_x[0] = 122.0
$card_y[0] = 314.0
$card_x[1] = 222.0
$card_y[1] = 314.0
$card_x[2] = 320.0
$card_y[2] = 314.0
$card_x[3] = 419.0
$card_y[3] = 314.0
$card_x[4] = 517.0
$card_y[4] = 314.0
$vp_card_width = 91.0
$vp_card_height = 137.0
$row_y[0] = 33.0
$row_y[1] = 61.0
$row_y[2] = 76.0
$row_y[3] = 92.0
$row_y[4] = 108.0
$row_y[5] = 124.0
$row_y[6] = 140.0
$row_y[7] = 156.0
$row_y[8] = 172.0
$row_y[9] = 188.0
$col_x[0] = 86.0
$col_x[1] = 239.0
$col_x[2] = 286.0
$col_x[3] = 330.0
$col_x[4] = 378.0
$col_x[5] = 450.0
$vp_hold_button_offset = -86.0
$vp_hold_width = 49.0
$vp_hold_height = 18.0
$bet_one_x = 123.0
$bet_one_y = 401.0
$vp_bet_one_width = 81.0
$vp_bet_one_height = 18.0
$deal_x = 222.0
$deal_y = 401.0
$vp_deal_width = 87.0
$vp_deal_height = 18.0
$vp_border_thickness = 4.0
$vp_line_x[0] = 384.0
$vp_line_y[0] = 131.0
$vp_line_width[0] = 2.0
$vp_line_height[0] = 152.0
$vp_line_x[1] = 458.0
$vp_line_y[1] = 131.0
$vp_line_width[1] = 2.0
$vp_line_height[1] = 154.0
$vp_line_x[2] = 267.0
$vp_line_y[2] = 207.0
$vp_line_width[2] = 382.0
$vp_line_height[2] = 2.0
$vp_line_x[3] = 77.0
$vp_line_y[3] = 131.0
$vp_line_width[3] = 2.0
$vp_line_height[3] = 152.0
$vp_line_x[4] = 267.0
$vp_line_y[4] = 54.0
$vp_line_width[4] = 383.0
$vp_line_height[4] = 2.0
$vp_line_x[5] = 199.0
$vp_line_y[5] = 131.0
$vp_line_width[5] = 2.0
$vp_line_height[5] = 152.0
$vp_line_x[6] = 246.0
$vp_line_y[6] = 131.0
$vp_line_width[6] = 2.0
$vp_line_height[6] = 152.0
$vp_line_x[7] = 292.0
$vp_line_y[7] = 131.0
$vp_line_width[7] = 2.0
$vp_line_height[7] = 153.0
$vp_line_x[8] = 338.0
$vp_line_y[8] = 131.0
$vp_line_width[8] = 2.0
$vp_line_height[8] = 153.0
$text_scale_x[0] = 0.82
$text_scale_y[0] = 3.02
$text_colour_r[0] = 128
$text_colour_g[0] = 0
$text_colour_b[0] = 0
$text_font[0] = 1
$text_centre[0] = 1
$text_edge[0] = 1
set_var_int_to_var_int $text_edge_r[0] = $vp_yellow
set_var_int_to_var_int $text_edge_g[0] = $vp_yellow
$text_edge_b[0] = 0
$text_scale_x[1] = 0.52
$text_scale_y[1] = 2.39
$text_colour_r[1] = 128
$text_colour_g[1] = 0
$text_colour_b[1] = 0
$text_font[1] = 1
$text_centre[1] = 0
$text_edge[1] = 1
set_var_int_to_var_int $text_edge_r[1] = $vp_yellow
set_var_int_to_var_int $text_edge_g[1] = $vp_yellow
$text_edge_b[1] = 0
$text_scale_x[2] = 0.36
$text_scale_y[2] = 1.53
set_var_int_to_var_int $text_colour_r[2] = $vp_yellow
set_var_int_to_var_int $text_colour_g[2] = $vp_yellow
$text_colour_b[2] = 0
$text_font[2] = 1
$text_centre[2] = 0
$text_edge[2] = 1
$text_edge_r[2] = 0
$text_edge_g[2] = 0
$text_edge_b[2] = 0
$text_scale_x[3] = 0.36
$text_scale_y[3] = 1.72
set_var_int_to_var_int $text_colour_r[3] = $vp_yellow
set_var_int_to_var_int $text_colour_g[3] = $vp_yellow
$text_colour_b[3] = 0
$text_font[3] = 1
$text_centre[3] = 0
$text_edge[3] = 1
$text_edge_r[3] = 0
$text_edge_g[3] = 0
$text_edge_b[3] = 0
$text_scale_x[4] = 0.42
$text_scale_y[4] = 1.6
set_var_int_to_var_int $text_colour_r[4] = $vp_yellow
set_var_int_to_var_int $text_colour_g[4] = $vp_yellow
$text_colour_b[4] = 0
$text_font[4] = 1
$text_centre[4] = 0
$text_edge[4] = 1
$text_edge_r[4] = 0
$text_edge_g[4] = 0
$text_edge_b[4] = 0
$text_scale_x[5] = 0.44
$text_scale_y[5] = 1.35
set_var_int_to_var_int $text_colour_r[5] = $vp_yellow
set_var_int_to_var_int $text_colour_g[5] = $vp_yellow
$text_colour_b[5] = 0
$text_font[5] = 1
$text_centre[5] = 1
$text_edge[5] = 1
$text_edge_r[5] = 0
$text_edge_g[5] = 0
$text_edge_b[5] = 0
$TILE_HEIGHT = 81.0
$TILE_WIDTH = 63.0
$vp_table_x = 268.0
$vp_table_y = 130.0
$vp_table_width = 384.0
$vp_table_height = 152.0
$vp_highl_x[0] = 222.0
$vp_highl_y[0] = 130.0
$vp_highl_width[0] = 49.0
$vp_highl_height[0] = 152.0
$vp_highl_x[1] = 269.0
$vp_highl_y[1] = 130.0
$vp_highl_width[1] = 46.0
$vp_highl_height[1] = 152.0
$vp_highl_x[2] = 314.0
$vp_highl_y[2] = 130.0
$vp_highl_width[2] = 48.0
$vp_highl_height[2] = 152.0
$vp_highl_x[3] = 360.0
$vp_highl_y[3] = 130.0
$vp_highl_width[3] = 46.0
$vp_highl_height[3] = 152.0
$vp_highl_x[4] = 421.0
$vp_highl_y[4] = 130.0
$vp_highl_width[4] = 72.0
$vp_highl_height[4] = 152.0
$button_text_offset = 2.5
4@ += 1

:VIDPOK_3662
if 
  4@ == 1
goto_if_false @VIDPOK_3694
do_fade 500 {direction} Fade.Out
4@ += 1

:VIDPOK_3694
if 
  4@ == 2
goto_if_false @VIDPOK_3732
if 
  not get_fading_status 
goto_if_false @VIDPOK_3732
4@ += 1

:VIDPOK_3732
if 
  4@ == 3
goto_if_false @VIDPOK_4505
use_text_commands True
load_texture_dictionary 'LD_POKE'
load_sprite 1 {spriteName} "CD1C"
load_sprite 2 {spriteName} "CD2C"
load_sprite 3 {spriteName} "CD3C"
load_sprite 4 {spriteName} "CD4C"
load_sprite 5 {spriteName} "CD5C"
load_sprite 6 {spriteName} "CD6C"
load_sprite 7 {spriteName} "CD7C"
load_sprite 8 {spriteName} "CD8C"
load_sprite 9 {spriteName} "CD9C"
load_sprite 10 {spriteName} "CD10C"
load_sprite 11 {spriteName} "CD11C"
load_sprite 12 {spriteName} "CD12C"
load_sprite 13 {spriteName} "CD13C"
load_sprite 14 {spriteName} "CD1D"
load_sprite 15 {spriteName} "CD2D"
load_sprite 16 {spriteName} "CD3D"
load_sprite 17 {spriteName} "CD4D"
load_sprite 18 {spriteName} "CD5D"
load_sprite 19 {spriteName} "CD6D"
load_sprite 20 {spriteName} "CD7D"
load_sprite 21 {spriteName} "CD8D"
load_sprite 22 {spriteName} "CD9D"
load_sprite 23 {spriteName} "CD10D"
load_sprite 24 {spriteName} "CD11D"
load_sprite 25 {spriteName} "CD12D"
load_sprite 26 {spriteName} "CD13D"
load_sprite 27 {spriteName} "CD1S"
load_sprite 28 {spriteName} "CD2S"
load_sprite 29 {spriteName} "CD3S"
load_sprite 30 {spriteName} "CD4S"
load_sprite 31 {spriteName} "CD5S"
load_sprite 32 {spriteName} "CD6S"
load_sprite 33 {spriteName} "CD7S"
load_sprite 34 {spriteName} "CD8S"
load_sprite 35 {spriteName} "CD9S"
load_sprite 36 {spriteName} "CD10S"
load_sprite 37 {spriteName} "CD11S"
load_sprite 38 {spriteName} "CD12S"
load_sprite 39 {spriteName} "CD13S"
load_sprite 40 {spriteName} "CD1H"
load_sprite 41 {spriteName} "CD2H"
load_sprite 42 {spriteName} "CD3H"
load_sprite 43 {spriteName} "CD4H"
load_sprite 44 {spriteName} "CD5H"
load_sprite 45 {spriteName} "CD6H"
load_sprite 46 {spriteName} "CD7H"
load_sprite 47 {spriteName} "CD8H"
load_sprite 48 {spriteName} "CD9H"
load_sprite 49 {spriteName} "CD10H"
load_sprite 50 {spriteName} "CD11H"
load_sprite 51 {spriteName} "CD12H"
load_sprite 52 {spriteName} "CD13H"
load_sprite 53 {spriteName} "CDBACK"
load_sprite 54 {spriteName} "ADDCOIN"
load_sprite 57 {spriteName} "DEAL"
load_sprite 60 {spriteName} "HOLDOFF"
load_sprite 61 {spriteName} "HOLDMID"
load_sprite 62 {spriteName} "HOLDON"
load_sprite 63 {spriteName} "TVCORN"
load_sprite 64 {spriteName} "BACKRED"
load_sprite 65 {spriteName} "BACKCYAN"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1800

:VIDPOK_4420
if 
  not has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @VIDPOK_4446
wait 0
goto @VIDPOK_4420

:VIDPOK_4446
if 
  is_player_playing $player1
goto_if_false @VIDPOK_4492
12@ = store_score $player1
gosub @VIDPOK_34875
add_int_var_to_int_lvar 12@ += $casino_credit
$no_of_coins = 1

:VIDPOK_4492
do_fade 0 {direction} Fade.In
4@ = 99

:VIDPOK_4505
if 
  4@ == 99
goto_if_false @VIDPOK_4544
$highlighted_button = 0
3@ += 1
4@ = 0

:VIDPOK_4544
if 
  3@ == 1
goto_if_false @VIDPOK_5712
if 
  4@ == 0
goto_if_false @VIDPOK_4727
$deal_value = 2
$bet_one_value = 2
12@ = 0

:VIDPOK_4601
if 
  5 > 12@
goto_if_false @VIDPOK_4655
$card_value(12@,5i) = 0
$hold_value(12@,5i) = 0
12@ += 1
goto @VIDPOK_4601

:VIDPOK_4655
12@ = store_score $player1
gosub @VIDPOK_34875
add_int_var_to_int_lvar 12@ += $casino_credit
set_lvar_int_to_var_int 13@ = $no_of_coins
mult_int_lvar_by_int_lvar 13@ *= 1@
if 
  is_int_lvar_greater_than_int_lvar 13@ > 12@
goto_if_false @VIDPOK_4720
$no_of_coins = 1

:VIDPOK_4720
4@ += 1

:VIDPOK_4727
if 
  4@ == 1
goto_if_false @VIDPOK_5237
if 
  $highlighted_button == 0
goto_if_false @VIDPOK_4784
$bet_one_value = 3
$deal_value = 2
goto @VIDPOK_4798

:VIDPOK_4784
$bet_one_value = 2
$deal_value = 3

:VIDPOK_4798
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 64
goto_if_false @VIDPOK_4916
if 
  $vp_dpad_is_pressed == 0
goto_if_false @VIDPOK_4909
if 
  $highlighted_button == 0
goto_if_false @VIDPOK_4888
$highlighted_button = 1
goto @VIDPOK_4895

:VIDPOK_4888
$highlighted_button = 0

:VIDPOK_4895
$vp_dpad_is_pressed += 1
goto @VIDPOK_5237

:VIDPOK_4909
goto @VIDPOK_5050

:VIDPOK_4916
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -64 > $LStickX
goto_if_false @VIDPOK_5018
if 
  $vp_dpad_is_pressed == 0
goto_if_false @VIDPOK_5011
if 
  $highlighted_button == 1
goto_if_false @VIDPOK_4990
$highlighted_button = 0
goto @VIDPOK_4997

:VIDPOK_4990
$highlighted_button = 1

:VIDPOK_4997
$vp_dpad_is_pressed += 1
goto @VIDPOK_5237

:VIDPOK_5011
goto @VIDPOK_5050

:VIDPOK_5018
if and
  $LStickX > -64
  64 > $LStickX
goto_if_false @VIDPOK_5050
$vp_dpad_is_pressed = 0

:VIDPOK_5050
if 
  $vp_cross_is_pressed == 0
goto_if_false @VIDPOK_5213
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_5206
if 
  $highlighted_button == 0
goto_if_false @VIDPOK_5151
$vp_cross_is_pressed += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
4@ += 1
goto @VIDPOK_5237
goto @VIDPOK_5206

:VIDPOK_5151
$vp_cross_is_pressed += 1
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
$deal_value = 2
TIMERA = 0
4@ += 3
goto @VIDPOK_5237

:VIDPOK_5206
goto @VIDPOK_5237

:VIDPOK_5213
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_5237
$vp_cross_is_pressed = 0

:VIDPOK_5237
if 
  4@ == 2
goto_if_false @VIDPOK_5373
if 
  5 > $no_of_coins
goto_if_false @VIDPOK_5287
$no_of_coins += 1
goto @VIDPOK_5294

:VIDPOK_5287
$no_of_coins = 1

:VIDPOK_5294
set_lvar_int_to_var_int 12@ = $no_of_coins
mult_int_lvar_by_int_lvar 12@ *= 1@
13@ = store_score $player1
gosub @VIDPOK_34875
add_int_var_to_int_lvar 13@ += $casino_credit
if 
  is_int_lvar_greater_than_int_lvar 12@ > 13@
goto_if_false @VIDPOK_5359
$no_of_coins = 1

:VIDPOK_5359
TIMERA = 0
4@ += 1

:VIDPOK_5373
if 
  4@ == 3
goto_if_false @VIDPOK_5398
4@ = 1

:VIDPOK_5398
if 
  4@ == 4
goto_if_false @VIDPOK_5495
12@ = store_score $player1
gosub @VIDPOK_34875
add_int_var_to_int_lvar 12@ += $casino_credit
set_lvar_int_to_var_int 13@ = $no_of_coins
mult_int_lvar_by_int_lvar 13@ *= 1@
if 
  is_int_lvar_greater_than_int_lvar 13@ > 12@
goto_if_false @VIDPOK_5488
4@ = 1
goto @VIDPOK_5495

:VIDPOK_5488
4@ = 99

:VIDPOK_5495
if 
  4@ == 99
goto_if_false @VIDPOK_5705
if 
  $no_of_coins == 6
goto_if_false @VIDPOK_5538
$no_of_coins = 4

:VIDPOK_5538
if 
  $no_of_coins == 7
goto_if_false @VIDPOK_5563
$no_of_coins = 3

:VIDPOK_5563
if 
  $no_of_coins == 8
goto_if_false @VIDPOK_5588
$no_of_coins = 2

:VIDPOK_5588
if 
  $no_of_coins == 9
goto_if_false @VIDPOK_5613
$no_of_coins = 1

:VIDPOK_5613
set_lvar_int_to_var_int 12@ = $no_of_coins
mult_int_lvar_by_int_lvar 12@ *= 1@
increment_int_stat_no_message StatId.MoneySpentGambling {value} 12@
cset_lvar_float_to_lvar_int 15@ =# 12@
15@ *= 0.001
increment_float_stat_no_message StatId.Gambling {value} 15@
set_var_int_to_lvar_int $vp_initial_stake = 12@
12@ *= -1
add_score $player1 {money} 12@
4@ = 0
3@ += 1
goto @VIDPOK_5712

:VIDPOK_5705
gosub @VIDPOK_26530

:VIDPOK_5712
if 
  3@ == 2
goto_if_false @VIDPOK_6360
if 
  4@ == 0
goto_if_false @VIDPOK_5834
$deal_value = 0
$bet_one_value = 0
12@ = 0

:VIDPOK_5769
if 
  5 > 12@
goto_if_false @VIDPOK_5823
$card_value(12@,5i) = 0
$hold_value(12@,5i) = 0
12@ += 1
goto @VIDPOK_5769

:VIDPOK_5823
shuffle_card_decks 1
4@ += 1

:VIDPOK_5834
if 
  4@ == 1
goto_if_false @VIDPOK_5886
12@ = fetch_next_card 
gosub @VIDPOK_33633
set_var_int_to_lvar_int $card_value[0] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_5886
if 
  4@ == 2
goto_if_false @VIDPOK_5930
if 
  TIMERA > 400
goto_if_false @VIDPOK_5930
4@ += 1

:VIDPOK_5930
if 
  4@ == 3
goto_if_false @VIDPOK_5982
12@ = fetch_next_card 
gosub @VIDPOK_33633
set_var_int_to_lvar_int $card_value[1] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_5982
if 
  4@ == 4
goto_if_false @VIDPOK_6026
if 
  TIMERA > 400
goto_if_false @VIDPOK_6026
4@ += 1

:VIDPOK_6026
if 
  4@ == 5
goto_if_false @VIDPOK_6078
12@ = fetch_next_card 
gosub @VIDPOK_33633
set_var_int_to_lvar_int $card_value[2] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6078
if 
  4@ == 6
goto_if_false @VIDPOK_6122
if 
  TIMERA > 400
goto_if_false @VIDPOK_6122
4@ += 1

:VIDPOK_6122
if 
  4@ == 7
goto_if_false @VIDPOK_6174
12@ = fetch_next_card 
gosub @VIDPOK_33633
set_var_int_to_lvar_int $card_value[3] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6174
if 
  4@ == 8
goto_if_false @VIDPOK_6218
if 
  TIMERA > 400
goto_if_false @VIDPOK_6218
4@ += 1

:VIDPOK_6218
if 
  4@ == 9
goto_if_false @VIDPOK_6270
12@ = fetch_next_card 
gosub @VIDPOK_33633
set_var_int_to_lvar_int $card_value[4] = 12@
TIMERA = 0
4@ += 1

:VIDPOK_6270
if 
  4@ == 10
goto_if_false @VIDPOK_6314
if 
  TIMERA > 800
goto_if_false @VIDPOK_6314
4@ = 99

:VIDPOK_6314
if 
  4@ == 99
goto_if_false @VIDPOK_6353
4@ = 0
3@ += 1
goto @VIDPOK_6360

:VIDPOK_6353
gosub @VIDPOK_26530

:VIDPOK_6360
if 
  3@ == 3
goto_if_false @VIDPOK_7501
if 
  4@ == 0
goto_if_false @VIDPOK_6485
$deal_value = 2
$bet_one_value = 0
12@ = 0

:VIDPOK_6417
if 
  5 > 12@
goto_if_false @VIDPOK_6471
$hold_value(12@,5i) = 2
$hold_status(12@,5i) = 0
12@ += 1
goto @VIDPOK_6417

:VIDPOK_6471
$highlighted_button = 0
4@ += 1

:VIDPOK_6485
if 
  4@ == 1
goto_if_false @VIDPOK_7405
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 64
goto_if_false @VIDPOK_6646
if 
  $vp_dpad_is_pressed == 0
goto_if_false @VIDPOK_6639
if 
  5 > $highlighted_button
goto_if_false @VIDPOK_6639
$highlighted_button += 1
if 
  $highlighted_button == 5
goto_if_false @VIDPOK_6611
$highlighted_button = 0

:VIDPOK_6611
4@ += 1
TIMERA = 0
$vp_dpad_is_pressed += 1
goto @VIDPOK_7173

:VIDPOK_6639
goto @VIDPOK_6812

:VIDPOK_6646
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -64 > $LStickX
goto_if_false @VIDPOK_6780
if 
  $vp_dpad_is_pressed == 0
goto_if_false @VIDPOK_6773
if and
  $highlighted_button > -1
  5 > $highlighted_button
goto_if_false @VIDPOK_6773
$highlighted_button -= 1
if 
  $highlighted_button == -1
goto_if_false @VIDPOK_6745
$highlighted_button = 4

:VIDPOK_6745
4@ += 1
$vp_dpad_is_pressed += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6773
goto @VIDPOK_6812

:VIDPOK_6780
if and
  $LStickX > -64
  64 > $LStickX
goto_if_false @VIDPOK_6812
$vp_dpad_is_pressed = 0

:VIDPOK_6812
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $LStickY > 64
goto_if_false @VIDPOK_6864
$highlighted_button = 5
4@ += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6864
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -64 > $LStickY
goto_if_false @VIDPOK_6934
if 
  $highlighted_button == 5
goto_if_false @VIDPOK_6934
$highlighted_button = 1
4@ += 1
TIMERA = 0
goto @VIDPOK_7173

:VIDPOK_6934
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_7148
if 
  $vp_cross_is_pressed == 0
goto_if_false @VIDPOK_7141
if 
  5 > $highlighted_button
goto_if_false @VIDPOK_7093
if 
  $hold_status($highlighted_button,5i) == 0
goto_if_false @VIDPOK_7027
$hold_status($highlighted_button,5i) = 1
goto @VIDPOK_7038

:VIDPOK_7027
$hold_status($highlighted_button,5i) = 0

:VIDPOK_7038
TIMERA = 0
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
4@ += 1
$vp_cross_is_pressed += 1
goto @VIDPOK_7173
goto @VIDPOK_7141

:VIDPOK_7093
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerButton
TIMERA = 0
4@ += 2
$vp_cross_is_pressed += 1
goto @VIDPOK_7173

:VIDPOK_7141
goto @VIDPOK_7173

:VIDPOK_7148
if 
  $vp_cross_is_pressed <> 0
goto_if_false @VIDPOK_7173
$vp_cross_is_pressed = 0

:VIDPOK_7173
12@ = 0

:VIDPOK_7180
if 
  6 > 12@
goto_if_false @VIDPOK_7405
if 
  5 > 12@
goto_if_false @VIDPOK_7351
if 
  not is_int_lvar_equal_to_int_var 12@ == $highlighted_button
goto_if_false @VIDPOK_7293
if 
  $hold_status(12@,5i) == 0
goto_if_false @VIDPOK_7275
$hold_value(12@,5i) = 2
goto @VIDPOK_7286

:VIDPOK_7275
$hold_value(12@,5i) = 4

:VIDPOK_7286
goto @VIDPOK_7344

:VIDPOK_7293
if 
  $hold_status(12@,5i) == 0
goto_if_false @VIDPOK_7333
$hold_value(12@,5i) = 3
goto @VIDPOK_7344

:VIDPOK_7333
$hold_value(12@,5i) = 5

:VIDPOK_7344
goto @VIDPOK_7391

:VIDPOK_7351
if 
  not is_int_lvar_equal_to_int_var 12@ == $highlighted_button
goto_if_false @VIDPOK_7384
$deal_value = 2
goto @VIDPOK_7391

:VIDPOK_7384
$deal_value = 3

:VIDPOK_7391
12@ += 1
goto @VIDPOK_7180

:VIDPOK_7405
if 
  4@ == 2
goto_if_false @VIDPOK_7430
4@ = 1

:VIDPOK_7430
if 
  4@ == 3
goto_if_false @VIDPOK_7455
4@ = 99

:VIDPOK_7455
if 
  4@ == 99
goto_if_false @VIDPOK_7494
4@ = 0
3@ += 1
goto @VIDPOK_7501

:VIDPOK_7494
gosub @VIDPOK_26530

:VIDPOK_7501
if 
  3@ == 4
goto_if_false @VIDPOK_8619
if 
  4@ == 0
goto_if_false @VIDPOK_7741
$deal_value = 0
$bet_one_value = 0
12@ = 0

:VIDPOK_7558
if 
  5 > 12@
goto_if_false @VIDPOK_7601
$hold_value(12@,5i) = 0
12@ += 1
goto @VIDPOK_7558

:VIDPOK_7601
$high_cards_held = 0
12@ = 0

:VIDPOK_7615
if 
  5 > 12@
goto_if_false @VIDPOK_7734
if 
  $hold_status(12@,5i) <> 0
goto_if_false @VIDPOK_7720
set_var_int_to_var_int $vp_in_card_value = $card_value(12@,5i)
gosub @VIDPOK_33380
if or
  $vp_out_card_value == 1
  $vp_out_card_value == 11
  $vp_out_card_value == 12
  $vp_out_card_value == 13
goto_if_false @VIDPOK_7720
$high_cards_held += 1

:VIDPOK_7720
12@ += 1
goto @VIDPOK_7615

:VIDPOK_7734
4@ += 1

:VIDPOK_7741
if 
  4@ == 1
goto_if_false @VIDPOK_7845
12@ = 0

:VIDPOK_7766
if 
  5 > 12@
goto_if_false @VIDPOK_7831
if 
  $hold_status(12@,5i) == 0
goto_if_false @VIDPOK_7817
$card_value(12@,5i) = 0

:VIDPOK_7817
12@ += 1
goto @VIDPOK_7766

:VIDPOK_7831
TIMERA = 0
4@ += 1

:VIDPOK_7845
if 
  4@ == 2
goto_if_false @VIDPOK_7889
if 
  TIMERA > 500
goto_if_false @VIDPOK_7889
4@ += 1

:VIDPOK_7889
if 
  4@ == 3
goto_if_false @VIDPOK_7973
if 
  $hold_status[0] == 0
goto_if_false @VIDPOK_7966
12@ = fetch_next_card 
gosub @VIDPOK_33635
set_var_int_to_lvar_int $card_value[0] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_7973

:VIDPOK_7966
4@ += 2

:VIDPOK_7973
if 
  4@ == 4
goto_if_false @VIDPOK_8017
if 
  TIMERA > 400
goto_if_false @VIDPOK_8017
4@ += 1

:VIDPOK_8017
if 
  4@ == 5
goto_if_false @VIDPOK_8101
if 
  $hold_status[1] == 0
goto_if_false @VIDPOK_8094
12@ = fetch_next_card 
gosub @VIDPOK_33635
set_var_int_to_lvar_int $card_value[1] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8101

:VIDPOK_8094
4@ += 2

:VIDPOK_8101
if 
  4@ == 6
goto_if_false @VIDPOK_8145
if 
  TIMERA > 400
goto_if_false @VIDPOK_8145
4@ += 1

:VIDPOK_8145
if 
  4@ == 7
goto_if_false @VIDPOK_8229
if 
  $hold_status[2] == 0
goto_if_false @VIDPOK_8222
12@ = fetch_next_card 
gosub @VIDPOK_33635
set_var_int_to_lvar_int $card_value[2] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8229

:VIDPOK_8222
4@ += 2

:VIDPOK_8229
if 
  4@ == 8
goto_if_false @VIDPOK_8273
if 
  TIMERA > 400
goto_if_false @VIDPOK_8273
4@ += 1

:VIDPOK_8273
if 
  4@ == 9
goto_if_false @VIDPOK_8357
if 
  $hold_status[3] == 0
goto_if_false @VIDPOK_8350
12@ = fetch_next_card 
gosub @VIDPOK_33635
set_var_int_to_lvar_int $card_value[3] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8357

:VIDPOK_8350
4@ += 2

:VIDPOK_8357
if 
  4@ == 10
goto_if_false @VIDPOK_8401
if 
  TIMERA > 400
goto_if_false @VIDPOK_8401
4@ += 1

:VIDPOK_8401
if 
  4@ == 11
goto_if_false @VIDPOK_8485
if 
  $hold_status[4] == 0
goto_if_false @VIDPOK_8478
12@ = fetch_next_card 
gosub @VIDPOK_33635
set_var_int_to_lvar_int $card_value[4] = 12@
TIMERA = 0
4@ += 1
goto @VIDPOK_8485

:VIDPOK_8478
4@ += 2

:VIDPOK_8485
if 
  4@ == 12
goto_if_false @VIDPOK_8529
if 
  TIMERA > 400
goto_if_false @VIDPOK_8529
4@ += 1

:VIDPOK_8529
if 
  4@ == 13
goto_if_false @VIDPOK_8573
if 
  TIMERA > 800
goto_if_false @VIDPOK_8573
4@ = 99

:VIDPOK_8573
if 
  4@ == 99
goto_if_false @VIDPOK_8612
4@ = 0
3@ += 1
goto @VIDPOK_8619

:VIDPOK_8612
gosub @VIDPOK_26530

:VIDPOK_8619
if 
  3@ == 5
goto_if_false @VIDPOK_10143
if 
  4@ == 0
goto_if_false @VIDPOK_8739
$hand_is_royal_flush = 0
$hand_is_straight_flush = 0
$hand_is_four_of_kind = 0
$hand_is_full_house = 0
$hand_is_flush = 0
$hand_is_straight = 0
$hand_is_three_of_kind = 0
$hand_is_two_pairs = 0
$hand_is_jacks_or_better = 0
$pair1 = 0
$pair2 = 0
4@ += 1

:VIDPOK_8739
if 
  4@ == 1
goto_if_false @VIDPOK_10065
12@ = 0

:VIDPOK_8764
if 
  5 > 12@
goto_if_false @VIDPOK_8858
set_var_int_to_var_int $vp_in_card_value = $card_value(12@,5i)
gosub @VIDPOK_33380
set_var_int_to_var_int $card_value_number(12@,5i) = $vp_out_card_value
set_var_int_to_var_int $vp_in_card_value = $card_value(12@,5i)
gosub @VIDPOK_33528
set_var_int_to_var_int $card_value_suit(12@,5i) = $vp_out_card_value
12@ += 1
goto @VIDPOK_8764

:VIDPOK_8858
save_newline_to_debug_file 
14@ = 1

:VIDPOK_8867
if 
  14@ > 0
goto_if_false @VIDPOK_9052
12@ = 0
13@ = 0
14@ = 0

:VIDPOK_8906
if 
  5 > 12@
goto_if_false @VIDPOK_9045
set_lvar_int_to_lvar_int 13@ = 12@
13@ += 1
if 
  5 > 13@
goto_if_false @VIDPOK_9031
if 
  is_int_var_greater_than_int_var $card_value_number(12@,5i) > $card_value_number(13@,5i)
goto_if_false @VIDPOK_9031
set_lvar_int_to_var_int 26@ = $card_value_number(13@,5i)
set_var_int_to_var_int $card_value_number(13@,5i) = $card_value_number(12@,5i)
set_var_int_to_lvar_int $card_value_number(12@,5i) = 26@
14@ += 1

:VIDPOK_9031
12@ += 1
goto @VIDPOK_8906

:VIDPOK_9045
goto @VIDPOK_8867

:VIDPOK_9052
if and
  is_int_var_equal_to_int_var $card_value_suit[0] == $card_value_suit[1]
  is_int_var_equal_to_int_var $card_value_suit[1] == $card_value_suit[2]
  is_int_var_equal_to_int_var $card_value_suit[2] == $card_value_suit[3]
  is_int_var_equal_to_int_var $card_value_suit[3] == $card_value_suit[4]
goto_if_false @VIDPOK_9102
$hand_is_flush = 1

:VIDPOK_9102
set_lvar_int_to_var_int 12@ = $card_value_number[0]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $card_value_number[1]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $card_value_number[1]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $card_value_number[2]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $card_value_number[2]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $card_value_number[3]
goto_if_false @VIDPOK_9270
set_lvar_int_to_var_int 12@ = $card_value_number[3]
12@ += 1
if 
  is_int_lvar_equal_to_int_var 12@ == $card_value_number[4]
goto_if_false @VIDPOK_9270
$hand_is_straight = 1
if 
  $hand_is_flush == 1
goto_if_false @VIDPOK_9270
$hand_is_straight_flush = 1

:VIDPOK_9270
if and
  $card_value_number[0] == 1
  $card_value_number[1] == 10
  $card_value_number[2] == 11
  $card_value_number[3] == 12
  $card_value_number[4] == 13
goto_if_false @VIDPOK_9355
$hand_is_straight = 1
if 
  $hand_is_flush == 1
goto_if_false @VIDPOK_9355
$hand_is_straight_flush = 1
$hand_is_royal_flush = 1

:VIDPOK_9355
12@ = 0
13@ = 0
14@ = 0

:VIDPOK_9376
if 
  5 > 12@
goto_if_false @VIDPOK_9649
set_lvar_int_to_lvar_int 13@ = 12@
13@ += 1
if 
  5 > 13@
goto_if_false @VIDPOK_9635
if 
  is_int_var_equal_to_int_var $card_value_number(12@,5i) == $card_value_number(13@,5i)
goto_if_false @VIDPOK_9493
14@ += 1
if 
  13@ == 4
goto_if_false @VIDPOK_9486
goto @VIDPOK_9493

:VIDPOK_9486
goto @VIDPOK_9635

:VIDPOK_9493
if 
  14@ > 0
goto_if_false @VIDPOK_9635
if 
  14@ == 1
goto_if_false @VIDPOK_9578
if 
  $pair1 == 0
goto_if_false @VIDPOK_9566
set_var_int_to_var_int $pair1 = $card_value_number(12@,5i)
goto @VIDPOK_9578

:VIDPOK_9566
set_var_int_to_var_int $pair2 = $card_value_number(12@,5i)

:VIDPOK_9578
if 
  14@ == 2
goto_if_false @VIDPOK_9603
$hand_is_three_of_kind = 1

:VIDPOK_9603
if 
  14@ == 3
goto_if_false @VIDPOK_9628
$hand_is_four_of_kind = 1

:VIDPOK_9628
14@ = 0

:VIDPOK_9635
12@ += 1
goto @VIDPOK_9376

:VIDPOK_9649
if and
  $hand_is_three_of_kind == 1
  $pair1 <> 0
goto_if_false @VIDPOK_9681
$hand_is_full_house = 1

:VIDPOK_9681
if and
  $pair1 <> 0
  $pair2 <> 0
goto_if_false @VIDPOK_9713
$hand_is_two_pairs = 1

:VIDPOK_9713
if 
  $pair1 <> 0
goto_if_false @VIDPOK_9763
if or
  $pair1 > 10
  $pair1 == 1
goto_if_false @VIDPOK_9763
$hand_is_jacks_or_better = 1

:VIDPOK_9763
if 
  $hand_is_royal_flush == 1
goto_if_false @VIDPOK_9795
$hand_result = 9
goto @VIDPOK_10058

:VIDPOK_9795
if 
  $hand_is_straight_flush == 1
goto_if_false @VIDPOK_9827
$hand_result = 8
goto @VIDPOK_10058

:VIDPOK_9827
if 
  $hand_is_four_of_kind == 1
goto_if_false @VIDPOK_9859
$hand_result = 7
goto @VIDPOK_10058

:VIDPOK_9859
if 
  $hand_is_full_house == 1
goto_if_false @VIDPOK_9891
$hand_result = 6
goto @VIDPOK_10058

:VIDPOK_9891
if 
  $hand_is_flush == 1
goto_if_false @VIDPOK_9923
$hand_result = 5
goto @VIDPOK_10058

:VIDPOK_9923
if 
  $hand_is_straight == 1
goto_if_false @VIDPOK_9955
$hand_result = 4
goto @VIDPOK_10058

:VIDPOK_9955
if 
  $hand_is_three_of_kind == 1
goto_if_false @VIDPOK_9987
$hand_result = 3
goto @VIDPOK_10058

:VIDPOK_9987
if 
  $hand_is_two_pairs == 1
goto_if_false @VIDPOK_10019
$hand_result = 2
goto @VIDPOK_10058

:VIDPOK_10019
if 
  $hand_is_jacks_or_better == 1
goto_if_false @VIDPOK_10051
$hand_result = 1
goto @VIDPOK_10058

:VIDPOK_10051
$hand_result = 0

:VIDPOK_10058
4@ += 1

:VIDPOK_10065
if 
  4@ == 2
goto_if_false @VIDPOK_10090
4@ = 99

:VIDPOK_10090
if 
  4@ == 99
goto_if_false @VIDPOK_10136
3@ += 1
4@ = 0
TIMERA = 0
goto @VIDPOK_10143

:VIDPOK_10136
gosub @VIDPOK_26530

:VIDPOK_10143
if 
  3@ == 6
goto_if_false @VIDPOK_12154
if 
  4@ == 0
goto_if_false @VIDPOK_11921
set_lvar_int_to_lvar_int 12@ = 1@
if 
  $hand_result == 9
goto_if_false @VIDPOK_10383
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10383 {caseNum1} 1 {caseLabel1} @VIDPOK_10268 {caseNum2} 2 {caseLabel2} @VIDPOK_10291 {caseNum3} 3 {caseLabel3} @VIDPOK_10314 {caseNum4} 4 {caseLabel4} @VIDPOK_10337 {caseNum5} 5 {caseLabel5} @VIDPOK_10360 {caseNum6} -1 {caseLabel6} @VIDPOK_10383 {caseNum7} -1 {caseLabel7} @VIDPOK_10383

:VIDPOK_10268
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 250
goto @VIDPOK_10383

:VIDPOK_10291
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 500
goto @VIDPOK_10383

:VIDPOK_10314
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 750
goto @VIDPOK_10383

:VIDPOK_10337
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 1000
goto @VIDPOK_10383

:VIDPOK_10360
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4000
goto @VIDPOK_10383

:VIDPOK_10383
if 
  $hand_result == 8
goto_if_false @VIDPOK_10577
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10577 {caseNum1} 1 {caseLabel1} @VIDPOK_10464 {caseNum2} 2 {caseLabel2} @VIDPOK_10486 {caseNum3} 3 {caseLabel3} @VIDPOK_10508 {caseNum4} 4 {caseLabel4} @VIDPOK_10531 {caseNum5} 5 {caseLabel5} @VIDPOK_10554 {caseNum6} -1 {caseLabel6} @VIDPOK_10577 {caseNum7} -1 {caseLabel7} @VIDPOK_10577

:VIDPOK_10464
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 50
goto @VIDPOK_10577

:VIDPOK_10486
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 100
goto @VIDPOK_10577

:VIDPOK_10508
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 150
goto @VIDPOK_10577

:VIDPOK_10531
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 200
goto @VIDPOK_10577

:VIDPOK_10554
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 250
goto @VIDPOK_10577

:VIDPOK_10577
if 
  $hand_result == 7
goto_if_false @VIDPOK_10768
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10768 {caseNum1} 1 {caseLabel1} @VIDPOK_10658 {caseNum2} 2 {caseLabel2} @VIDPOK_10680 {caseNum3} 3 {caseLabel3} @VIDPOK_10702 {caseNum4} 4 {caseLabel4} @VIDPOK_10724 {caseNum5} 5 {caseLabel5} @VIDPOK_10746 {caseNum6} -1 {caseLabel6} @VIDPOK_10768 {caseNum7} -1 {caseLabel7} @VIDPOK_10768

:VIDPOK_10658
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 25
goto @VIDPOK_10768

:VIDPOK_10680
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 50
goto @VIDPOK_10768

:VIDPOK_10702
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 75
goto @VIDPOK_10768

:VIDPOK_10724
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 100
goto @VIDPOK_10768

:VIDPOK_10746
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 125
goto @VIDPOK_10768

:VIDPOK_10768
if 
  $hand_result == 6
goto_if_false @VIDPOK_10959
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_10959 {caseNum1} 1 {caseLabel1} @VIDPOK_10849 {caseNum2} 2 {caseLabel2} @VIDPOK_10871 {caseNum3} 3 {caseLabel3} @VIDPOK_10893 {caseNum4} 4 {caseLabel4} @VIDPOK_10915 {caseNum5} 5 {caseLabel5} @VIDPOK_10937 {caseNum6} -1 {caseLabel6} @VIDPOK_10959 {caseNum7} -1 {caseLabel7} @VIDPOK_10959

:VIDPOK_10849
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 9
goto @VIDPOK_10959

:VIDPOK_10871
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 18
goto @VIDPOK_10959

:VIDPOK_10893
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 27
goto @VIDPOK_10959

:VIDPOK_10915
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 36
goto @VIDPOK_10959

:VIDPOK_10937
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 45
goto @VIDPOK_10959

:VIDPOK_10959
if 
  $hand_result == 5
goto_if_false @VIDPOK_11150
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11150 {caseNum1} 1 {caseLabel1} @VIDPOK_11040 {caseNum2} 2 {caseLabel2} @VIDPOK_11062 {caseNum3} 3 {caseLabel3} @VIDPOK_11084 {caseNum4} 4 {caseLabel4} @VIDPOK_11106 {caseNum5} 5 {caseLabel5} @VIDPOK_11128 {caseNum6} -1 {caseLabel6} @VIDPOK_11150 {caseNum7} -1 {caseLabel7} @VIDPOK_11150

:VIDPOK_11040
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11150

:VIDPOK_11062
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11150

:VIDPOK_11084
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 18
goto @VIDPOK_11150

:VIDPOK_11106
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 24
goto @VIDPOK_11150

:VIDPOK_11128
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 30
goto @VIDPOK_11150

:VIDPOK_11150
if 
  $hand_result == 4
goto_if_false @VIDPOK_11341
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11341 {caseNum1} 1 {caseLabel1} @VIDPOK_11231 {caseNum2} 2 {caseLabel2} @VIDPOK_11253 {caseNum3} 3 {caseLabel3} @VIDPOK_11275 {caseNum4} 4 {caseLabel4} @VIDPOK_11297 {caseNum5} 5 {caseLabel5} @VIDPOK_11319 {caseNum6} -1 {caseLabel6} @VIDPOK_11341 {caseNum7} -1 {caseLabel7} @VIDPOK_11341

:VIDPOK_11231
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11341

:VIDPOK_11253
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 8
goto @VIDPOK_11341

:VIDPOK_11275
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11341

:VIDPOK_11297
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 16
goto @VIDPOK_11341

:VIDPOK_11319
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 20
goto @VIDPOK_11341

:VIDPOK_11341
if 
  $hand_result == 3
goto_if_false @VIDPOK_11532
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11532 {caseNum1} 1 {caseLabel1} @VIDPOK_11422 {caseNum2} 2 {caseLabel2} @VIDPOK_11444 {caseNum3} 3 {caseLabel3} @VIDPOK_11466 {caseNum4} 4 {caseLabel4} @VIDPOK_11488 {caseNum5} 5 {caseLabel5} @VIDPOK_11510 {caseNum6} -1 {caseLabel6} @VIDPOK_11532 {caseNum7} -1 {caseLabel7} @VIDPOK_11532

:VIDPOK_11422
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 3
goto @VIDPOK_11532

:VIDPOK_11444
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11532

:VIDPOK_11466
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 9
goto @VIDPOK_11532

:VIDPOK_11488
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 12
goto @VIDPOK_11532

:VIDPOK_11510
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 15
goto @VIDPOK_11532

:VIDPOK_11532
if 
  $hand_result == 2
goto_if_false @VIDPOK_11723
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11723 {caseNum1} 1 {caseLabel1} @VIDPOK_11613 {caseNum2} 2 {caseLabel2} @VIDPOK_11635 {caseNum3} 3 {caseLabel3} @VIDPOK_11657 {caseNum4} 4 {caseLabel4} @VIDPOK_11679 {caseNum5} 5 {caseLabel5} @VIDPOK_11701 {caseNum6} -1 {caseLabel6} @VIDPOK_11723 {caseNum7} -1 {caseLabel7} @VIDPOK_11723

:VIDPOK_11613
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 2
goto @VIDPOK_11723

:VIDPOK_11635
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11723

:VIDPOK_11657
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 6
goto @VIDPOK_11723

:VIDPOK_11679
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 8
goto @VIDPOK_11723

:VIDPOK_11701
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 10
goto @VIDPOK_11723

:VIDPOK_11723
if 
  $hand_result == 1
goto_if_false @VIDPOK_11914
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_11914 {caseNum1} 1 {caseLabel1} @VIDPOK_11804 {caseNum2} 2 {caseLabel2} @VIDPOK_11826 {caseNum3} 3 {caseLabel3} @VIDPOK_11848 {caseNum4} 4 {caseLabel4} @VIDPOK_11870 {caseNum5} 5 {caseLabel5} @VIDPOK_11892 {caseNum6} -1 {caseLabel6} @VIDPOK_11914 {caseNum7} -1 {caseLabel7} @VIDPOK_11914

:VIDPOK_11804
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 1
goto @VIDPOK_11914

:VIDPOK_11826
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 2
goto @VIDPOK_11914

:VIDPOK_11848
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 3
goto @VIDPOK_11914

:VIDPOK_11870
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 4
goto @VIDPOK_11914

:VIDPOK_11892
set_lvar_int_to_lvar_int 14@ = 12@
14@ *= 5
goto @VIDPOK_11914

:VIDPOK_11914
4@ += 1

:VIDPOK_11921
if 
  $hand_result <> 0
goto_if_false @VIDPOK_12072
if or
  TIMERA > 4000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_12065
report_mission_audio_event_at_position -1000.0 {y} -1000.0 {z} -1000.0 {soundId} ScriptSound.SoundVideoPokerPayout
add_score $player1 {money} 14@
set_lvar_int_to_lvar_int 12@ = 14@
sub_int_var_from_int_lvar 12@ -= $vp_initial_stake
increment_int_stat_no_message StatId.MoneyWonGambling {value} 12@
show_update_stats False
register_int_stat StatId.BiggestGamblingWin {value} 12@
show_update_stats True
3@ = 1
4@ = 0
$highlighted_button = 1
$vp_cross_is_pressed = 1
$vp_initial_stake = 0

:VIDPOK_12065
goto @VIDPOK_12147

:VIDPOK_12072
if or
  TIMERA > 4000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @VIDPOK_12147
show_update_stats False
register_int_stat StatId.BiggestGamblingLoss {value} $vp_initial_stake
show_update_stats True
$vp_initial_stake = 0
$vp_cross_is_pressed = 1
3@ = 1
4@ = 0
$highlighted_button = 1

:VIDPOK_12147
gosub @VIDPOK_26530

:VIDPOK_12154
gosub @VIDPOK_12212
if 
  3@ > 0
goto_if_false @VIDPOK_12210
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @VIDPOK_12210
7@ = 1
$vp_triangle_is_pressed = 1

:VIDPOK_12210
return 

:VIDPOK_12212
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @VIDPOK_12778
$vp_edit_mode += 1
if 
  $vp_edit_mode > 13
goto_if_false @VIDPOK_12259
$vp_edit_mode = 0

:VIDPOK_12259
if 
  $vp_edit_mode == 1
goto_if_false @VIDPOK_12297
write_debug "EDIT_BET_DETAILS"

:VIDPOK_12297
if 
  $vp_edit_mode == 2
goto_if_false @VIDPOK_12335
write_debug "EDIT_SHIFT_CARDS"

:VIDPOK_12335
if 
  $vp_edit_mode == 3
goto_if_false @VIDPOK_12390
write_debug "EDIT_SHIFT_TABLE_ROWS_AND_COLUMNS"

:VIDPOK_12390
if 
  $vp_edit_mode == 4
goto_if_false @VIDPOK_12429
write_debug "EDIT_HOLD_BUTTONS"

:VIDPOK_12429
if 
  $vp_edit_mode == 5
goto_if_false @VIDPOK_12463
write_debug "EDIT_BET_ONE"

:VIDPOK_12463
if 
  $vp_edit_mode == 6
goto_if_false @VIDPOK_12494
write_debug "EDIT_DEAL"

:VIDPOK_12494
if 
  $vp_edit_mode == 7
goto_if_false @VIDPOK_12537
write_debug "EDIT_BORDER_THICKNESS"

:VIDPOK_12537
if 
  $vp_edit_mode == 8
goto_if_false @VIDPOK_12575
write_debug "EDIT_TABLE_LINES"

:VIDPOK_12575
if 
  $vp_edit_mode == 9
goto_if_false @VIDPOK_12606
write_debug "EDIT_TEXT"

:VIDPOK_12606
if 
  $vp_edit_mode == 10
goto_if_false @VIDPOK_12638
write_debug "EDIT_TILES"

:VIDPOK_12638
if 
  $vp_edit_mode == 11
goto_if_false @VIDPOK_12681
write_debug "EDIT_TABLE_BACKGROUND"

:VIDPOK_12681
if 
  $vp_edit_mode == 12
goto_if_false @VIDPOK_12733
write_debug "EDIT_TABLE_HIGHLIGHTED_COLUMNS"

:VIDPOK_12733
if 
  $vp_edit_mode == 13
goto_if_false @VIDPOK_12778
write_debug "EDIT_BUTTON_TEXT_OFFSET"

:VIDPOK_12778
if 
  $vp_edit_mode == 1
goto_if_false @VIDPOK_12982
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_12862
$vp_edit_counter += 1
if 
  $vp_edit_counter > 7
goto_if_false @VIDPOK_12843
$vp_edit_counter = 0

:VIDPOK_12843
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_counter

:VIDPOK_12862
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_12892
$vp_screen_y($vp_edit_counter,8f) += -1.0

:VIDPOK_12892
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_12922
$vp_screen_y($vp_edit_counter,8f) += 1.0

:VIDPOK_12922
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_12952
$vp_screen_x($vp_edit_counter,8f) += 1.0

:VIDPOK_12952
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_12982
$vp_screen_x($vp_edit_counter,8f) += -1.0

:VIDPOK_12982
if 
  $vp_edit_mode == 2
goto_if_false @VIDPOK_13290
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_13066
$vp_edit_counter += 1
if 
  $vp_edit_counter > 4
goto_if_false @VIDPOK_13047
$vp_edit_counter = 0

:VIDPOK_13047
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_counter

:VIDPOK_13066
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_13096
$card_y($vp_edit_counter,5f) += -1.0

:VIDPOK_13096
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_13126
$card_y($vp_edit_counter,5f) += 1.0

:VIDPOK_13126
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_13156
$card_x($vp_edit_counter,5f) += 1.0

:VIDPOK_13156
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_13186
$card_x($vp_edit_counter,5f) += -1.0

:VIDPOK_13186
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @VIDPOK_13212
$vp_card_width += 1.0

:VIDPOK_13212
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @VIDPOK_13238
$vp_card_width += -1.0

:VIDPOK_13238
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_13264
$vp_card_height += 1.0

:VIDPOK_13264
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_13290
$vp_card_height += -1.0

:VIDPOK_13290
if 
  $vp_edit_mode == 3
goto_if_false @VIDPOK_13544
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_13374
$vp_edit_counter += 1
if 
  $vp_edit_counter > 9
goto_if_false @VIDPOK_13355
$vp_edit_counter = 0

:VIDPOK_13355
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_counter

:VIDPOK_13374
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_13404
$row_y($vp_edit_counter,10f) += -1.0

:VIDPOK_13404
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_13434
$row_y($vp_edit_counter,10f) += 1.0

:VIDPOK_13434
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_13489
if 
  $vp_edit_counter > 5
goto_if_false @VIDPOK_13475
$vp_edit_counter = 0

:VIDPOK_13475
$col_x($vp_edit_counter,6f) += 1.0

:VIDPOK_13489
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_13544
if 
  $vp_edit_counter > 5
goto_if_false @VIDPOK_13530
$vp_edit_counter = 0

:VIDPOK_13530
$col_x($vp_edit_counter,6f) += -1.0

:VIDPOK_13544
if 
  $vp_edit_mode == 4
goto_if_false @VIDPOK_13731
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_13577

:VIDPOK_13577
if 
is_ps2_keyboard_key_just_pressed 87
goto_if_false @VIDPOK_13602
$vp_hold_button_offset += -1.0

:VIDPOK_13602
if 
is_ps2_keyboard_key_just_pressed 83
goto_if_false @VIDPOK_13627
$vp_hold_button_offset += 1.0

:VIDPOK_13627
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @VIDPOK_13653
$vp_hold_width += 1.0

:VIDPOK_13653
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @VIDPOK_13679
$vp_hold_width += -1.0

:VIDPOK_13679
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_13705
$vp_hold_height += 1.0

:VIDPOK_13705
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_13731
$vp_hold_height += -1.0

:VIDPOK_13731
if 
  $vp_edit_mode == 5
goto_if_false @VIDPOK_13972
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_13764

:VIDPOK_13764
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_13790
$bet_one_y += -1.0

:VIDPOK_13790
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_13816
$bet_one_y += 1.0

:VIDPOK_13816
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_13842
$bet_one_x += 1.0

:VIDPOK_13842
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_13868
$bet_one_x += -1.0

:VIDPOK_13868
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @VIDPOK_13894
$vp_bet_one_width += 1.0

:VIDPOK_13894
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @VIDPOK_13920
$vp_bet_one_width += -1.0

:VIDPOK_13920
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_13946
$vp_bet_one_height += 1.0

:VIDPOK_13946
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_13972
$vp_bet_one_height += -1.0

:VIDPOK_13972
if 
  $vp_edit_mode == 6
goto_if_false @VIDPOK_14213
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_14005

:VIDPOK_14005
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_14031
$deal_y += -1.0

:VIDPOK_14031
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_14057
$deal_y += 1.0

:VIDPOK_14057
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_14083
$deal_x += 1.0

:VIDPOK_14083
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_14109
$deal_x += -1.0

:VIDPOK_14109
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @VIDPOK_14135
$vp_deal_width += 1.0

:VIDPOK_14135
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @VIDPOK_14161
$vp_deal_width += -1.0

:VIDPOK_14161
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_14187
$vp_deal_height += 1.0

:VIDPOK_14187
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_14213
$vp_deal_height += -1.0

:VIDPOK_14213
if 
  $vp_edit_mode == 7
goto_if_false @VIDPOK_14283
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_14257
$vp_border_thickness += 0.1

:VIDPOK_14257
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_14283
$vp_border_thickness += -0.1

:VIDPOK_14283
if 
  $vp_edit_mode == 8
goto_if_false @VIDPOK_14663
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_14367
$vp_edit_counter += 1
if 
  $vp_edit_counter > 8
goto_if_false @VIDPOK_14348
$vp_edit_counter = 0

:VIDPOK_14348
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_counter

:VIDPOK_14367
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_14397
$vp_line_y($vp_edit_counter,9f) += -1.0

:VIDPOK_14397
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_14427
$vp_line_y($vp_edit_counter,9f) += 1.0

:VIDPOK_14427
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_14457
$vp_line_x($vp_edit_counter,9f) += 1.0

:VIDPOK_14457
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_14487
$vp_line_x($vp_edit_counter,9f) += -1.0

:VIDPOK_14487
if 
is_ps2_keyboard_key_just_pressed 142
goto_if_false @VIDPOK_14543
set_lvar_float_to_var_float 15@ = $vp_line_width($vp_edit_counter,9f)
set_var_float_to_var_float $vp_line_width($vp_edit_counter,9f) = $vp_line_height($vp_edit_counter,9f)
set_var_float_to_lvar_float $vp_line_height($vp_edit_counter,9f) = 15@

:VIDPOK_14543
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @VIDPOK_14573
$vp_line_width($vp_edit_counter,9f) += -1.0

:VIDPOK_14573
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @VIDPOK_14603
$vp_line_width($vp_edit_counter,9f) += 1.0

:VIDPOK_14603
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_14633
$vp_line_height($vp_edit_counter,9f) += 1.0

:VIDPOK_14633
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_14663
$vp_line_height($vp_edit_counter,9f) += -1.0

:VIDPOK_14663
if 
  $vp_edit_mode == 9
goto_if_false @VIDPOK_15600
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_14747
$vp_edit_counter += 1
if 
  $vp_edit_counter > 5
goto_if_false @VIDPOK_14728
$vp_edit_counter = 0

:VIDPOK_14728
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_counter

:VIDPOK_14747
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_14777
$text_scale_y($vp_edit_counter,6f) += -0.01

:VIDPOK_14777
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_14807
$text_scale_y($vp_edit_counter,6f) += 0.01

:VIDPOK_14807
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_14837
$text_scale_x($vp_edit_counter,6f) += 0.01

:VIDPOK_14837
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_14867
$text_scale_x($vp_edit_counter,6f) += -0.01

:VIDPOK_14867
if 
is_ps2_keyboard_key_just_pressed 82
goto_if_false @VIDPOK_14907
$text_colour_r($vp_edit_counter,6i) += 1
write_debug_with_int "RED" {number} $text_colour_r($vp_edit_counter,6i)

:VIDPOK_14907
if 
is_ps2_keyboard_key_just_pressed 86
goto_if_false @VIDPOK_14947
$text_colour_r($vp_edit_counter,6i) += -1
write_debug_with_int "RED" {number} $text_colour_r($vp_edit_counter,6i)

:VIDPOK_14947
if 
is_ps2_keyboard_key_just_pressed 84
goto_if_false @VIDPOK_14989
$text_colour_g($vp_edit_counter,6i) += 1
write_debug_with_int "GREEN" {number} $text_colour_g($vp_edit_counter,6i)

:VIDPOK_14989
if 
is_ps2_keyboard_key_just_pressed 71
goto_if_false @VIDPOK_15031
$text_colour_g($vp_edit_counter,6i) += -1
write_debug_with_int "GREEN" {number} $text_colour_g($vp_edit_counter,6i)

:VIDPOK_15031
if 
is_ps2_keyboard_key_just_pressed 89
goto_if_false @VIDPOK_15072
$text_colour_b($vp_edit_counter,6i) += 1
write_debug_with_int "BLUE" {number} $text_colour_b($vp_edit_counter,6i)

:VIDPOK_15072
if 
is_ps2_keyboard_key_just_pressed 72
goto_if_false @VIDPOK_15113
$text_colour_b($vp_edit_counter,6i) += -1
write_debug_with_int "BLUE" {number} $text_colour_b($vp_edit_counter,6i)

:VIDPOK_15113
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @VIDPOK_15153
$text_edge_r($vp_edit_counter,6i) += 1
write_debug_with_int "RED" {number} $text_edge_r($vp_edit_counter,6i)

:VIDPOK_15153
if 
is_ps2_keyboard_key_just_pressed 74
goto_if_false @VIDPOK_15193
$text_edge_r($vp_edit_counter,6i) += -1
write_debug_with_int "RED" {number} $text_edge_r($vp_edit_counter,6i)

:VIDPOK_15193
if 
is_ps2_keyboard_key_just_pressed 73
goto_if_false @VIDPOK_15235
$text_edge_g($vp_edit_counter,6i) += 1
write_debug_with_int "GREEN" {number} $text_edge_g($vp_edit_counter,6i)

:VIDPOK_15235
if 
is_ps2_keyboard_key_just_pressed 75
goto_if_false @VIDPOK_15277
$text_edge_g($vp_edit_counter,6i) += -1
write_debug_with_int "GREEN" {number} $text_edge_g($vp_edit_counter,6i)

:VIDPOK_15277
if 
is_ps2_keyboard_key_just_pressed 79
goto_if_false @VIDPOK_15318
$text_edge_b($vp_edit_counter,6i) += 1
write_debug_with_int "BLUE" {number} $text_edge_b($vp_edit_counter,6i)

:VIDPOK_15318
if 
is_ps2_keyboard_key_just_pressed 76
goto_if_false @VIDPOK_15359
$text_edge_b($vp_edit_counter,6i) += -1
write_debug_with_int "BLUE" {number} $text_edge_b($vp_edit_counter,6i)

:VIDPOK_15359
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_15386
$text_edge($vp_edit_counter,6i) += 1

:VIDPOK_15386
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_15413
$text_edge($vp_edit_counter,6i) += -1

:VIDPOK_15413
if 
is_ps2_keyboard_key_just_pressed 136
goto_if_false @VIDPOK_15473
$text_font($vp_edit_counter,6i) += 1
if 
  $text_font($vp_edit_counter,6i) > 3
goto_if_false @VIDPOK_15473
$text_font($vp_edit_counter,6i) = 0

:VIDPOK_15473
if 
is_ps2_keyboard_key_just_pressed 135
goto_if_false @VIDPOK_15533
$text_font($vp_edit_counter,6i) += -1
if 
  0 > $text_font($vp_edit_counter,6i)
goto_if_false @VIDPOK_15533
$text_font($vp_edit_counter,6i) = 3

:VIDPOK_15533
if 
is_ps2_keyboard_key_just_pressed 133
goto_if_false @VIDPOK_15600
if 
  $text_centre($vp_edit_counter,6i) == 0
goto_if_false @VIDPOK_15589
$text_centre($vp_edit_counter,6i) = 1
goto @VIDPOK_15600

:VIDPOK_15589
$text_centre($vp_edit_counter,6i) = 0

:VIDPOK_15600
if 
  $vp_edit_mode == 10
goto_if_false @VIDPOK_15788
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_15644
$TILE_HEIGHT += -1.0

:VIDPOK_15644
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_15670
$TILE_HEIGHT += 1.0

:VIDPOK_15670
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_15696
$TILE_WIDTH += 1.0

:VIDPOK_15696
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_15722
$TILE_WIDTH += -1.0

:VIDPOK_15722
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_15788
$vp_tile_type += 1
if 
  $vp_tile_type > 3
goto_if_false @VIDPOK_15769
$vp_tile_type = 0

:VIDPOK_15769
write_debug_with_int "VP_TILE_TYPE" {number} $vp_tile_type

:VIDPOK_15788
if 
  $vp_edit_mode == 11
goto_if_false @VIDPOK_16014
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_15832
$vp_table_y += -1.0

:VIDPOK_15832
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_15858
$vp_table_y += 1.0

:VIDPOK_15858
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_15884
$vp_table_x += 1.0

:VIDPOK_15884
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_15910
$vp_table_x += -1.0

:VIDPOK_15910
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_15936
$vp_table_height += 1.0

:VIDPOK_15936
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_15962
$vp_table_height += -1.0

:VIDPOK_15962
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @VIDPOK_15988
$vp_table_width += 1.0

:VIDPOK_15988
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @VIDPOK_16014
$vp_table_width += -1.0

:VIDPOK_16014
if 
  $vp_edit_mode == 12
goto_if_false @VIDPOK_16338
if 
is_ps2_keyboard_key_just_pressed 97
goto_if_false @VIDPOK_16098
$vp_edit_counter += 1
if 
  $vp_edit_counter > 4
goto_if_false @VIDPOK_16079
$vp_edit_counter = 0

:VIDPOK_16079
write_debug_with_int "EDIT_COUNTER" {number} $vp_edit_counter

:VIDPOK_16098
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_16128
$vp_highl_y($vp_edit_counter,5f) += -1.0

:VIDPOK_16128
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_16158
$vp_highl_y($vp_edit_counter,5f) += 1.0

:VIDPOK_16158
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @VIDPOK_16188
$vp_highl_x($vp_edit_counter,5f) += 1.0

:VIDPOK_16188
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @VIDPOK_16218
$vp_highl_x($vp_edit_counter,5f) += -1.0

:VIDPOK_16218
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @VIDPOK_16248
$vp_highl_height($vp_edit_counter,5f) += 1.0

:VIDPOK_16248
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @VIDPOK_16278
$vp_highl_height($vp_edit_counter,5f) += -1.0

:VIDPOK_16278
if 
is_ps2_keyboard_key_just_pressed 143
goto_if_false @VIDPOK_16308
$vp_highl_width($vp_edit_counter,5f) += 1.0

:VIDPOK_16308
if 
is_ps2_keyboard_key_just_pressed 141
goto_if_false @VIDPOK_16338
$vp_highl_width($vp_edit_counter,5f) += -1.0

:VIDPOK_16338
if 
  $vp_edit_mode == 13
goto_if_false @VIDPOK_16408
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @VIDPOK_16382
$button_text_offset += 0.05

:VIDPOK_16382
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @VIDPOK_16408
$button_text_offset += -0.05

:VIDPOK_16408
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @VIDPOK_26528
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_16435
if 
  8 > 12@
goto_if_false @VIDPOK_17019
save_newline_to_debug_file 
save_string_to_debug_file "VP_SCREEN_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_screen_x(12@,8f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_SCREEN_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_screen_y(12@,8f)
12@ += 1
goto @VIDPOK_16435

:VIDPOK_17019
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_17030
if 
  5 > 12@
goto_if_false @VIDPOK_17614
save_newline_to_debug_file 
save_string_to_debug_file "CARD_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $card_x(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "CARD_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $card_y(12@,5f)
12@ += 1
goto @VIDPOK_17030

:VIDPOK_17614
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_CARD_WIDTH = "
save_float_to_debug_file $vp_card_width
save_newline_to_debug_file 
save_string_to_debug_file "VP_CARD_HEIGHT = "
save_float_to_debug_file $vp_card_height
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_17903
if 
  10 > 12@
goto_if_false @VIDPOK_18211
save_newline_to_debug_file 
save_string_to_debug_file "ROW_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $row_y(12@,10f)
12@ += 1
goto @VIDPOK_17903

:VIDPOK_18211
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_18222
if 
  6 > 12@
goto_if_false @VIDPOK_18530
save_newline_to_debug_file 
save_string_to_debug_file "COL_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $col_x(12@,6f)
12@ += 1
goto @VIDPOK_18222

:VIDPOK_18530
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_HOLD_BUTTON_OFFSET = "
save_float_to_debug_file $vp_hold_button_offset
save_newline_to_debug_file 
save_string_to_debug_file "VP_HOLD_WIDTH = "
save_float_to_debug_file $vp_hold_width
save_newline_to_debug_file 
save_string_to_debug_file "VP_HOLD_HEIGHT = "
save_float_to_debug_file $vp_hold_height
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "BET_ONE_X = "
save_float_to_debug_file $bet_one_x
save_newline_to_debug_file 
save_string_to_debug_file "BET_ONE_Y = "
save_float_to_debug_file $bet_one_y
save_newline_to_debug_file 
save_string_to_debug_file "VP_BET_ONE_WIDTH = "
save_float_to_debug_file $vp_bet_one_width
save_newline_to_debug_file 
save_string_to_debug_file "VP_BET_ONE_HEIGHT = "
save_float_to_debug_file $vp_bet_one_height
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "DEAL_X = "
save_float_to_debug_file $deal_x
save_newline_to_debug_file 
save_string_to_debug_file "DEAL_Y = "
save_float_to_debug_file $deal_y
save_newline_to_debug_file 
save_string_to_debug_file "VP_DEAL_WIDTH = "
save_float_to_debug_file $vp_deal_width
save_newline_to_debug_file 
save_string_to_debug_file "VP_DEAL_HEIGHT = "
save_float_to_debug_file $vp_deal_height
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_BORDER_THICKNESS = "
save_float_to_debug_file $vp_border_thickness
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_20201
if 
  9 > 12@
goto_if_false @VIDPOK_21337
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_line_x(12@,9f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_line_y(12@,9f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_WIDTH["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_line_width(12@,9f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_LINE_HEIGHT["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_line_height(12@,9f)
12@ += 1
goto @VIDPOK_20201

:VIDPOK_21337
12@ = 0

:VIDPOK_21344
if 
  6 > 12@
goto_if_false @VIDPOK_24412
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_SCALE_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $text_scale_x(12@,6f)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_SCALE_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $text_scale_y(12@,6f)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_COLOUR_R["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_colour_r(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_COLOUR_G["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_colour_g(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_COLOUR_B["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_colour_b(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_FONT["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_font(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_CENTRE["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_centre(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_edge(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE_R["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_edge_r(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE_G["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_edge_g(12@,6i)
save_newline_to_debug_file 
save_string_to_debug_file "TEXT_EDGE_B["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_int_to_debug_file $text_edge_b(12@,6i)
12@ += 1
goto @VIDPOK_21344

:VIDPOK_24412
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "TILE_HEIGHT = "
save_float_to_debug_file $TILE_HEIGHT
save_newline_to_debug_file 
save_string_to_debug_file "TILE_WIDTH = "
save_float_to_debug_file $TILE_WIDTH
save_newline_to_debug_file 
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_X = "
save_float_to_debug_file $vp_table_x
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_Y = "
save_float_to_debug_file $vp_table_y
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_WIDTH = "
save_float_to_debug_file $vp_table_width
save_newline_to_debug_file 
save_string_to_debug_file "VP_TABLE_HEIGHT = "
save_float_to_debug_file $vp_table_height
save_newline_to_debug_file 
save_newline_to_debug_file 
12@ = 0

:VIDPOK_25253
if 
  5 > 12@
goto_if_false @VIDPOK_26389
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_X["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_highl_x(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_Y["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_highl_y(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_WIDTH["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_highl_width(12@,5f)
save_newline_to_debug_file 
save_string_to_debug_file "VP_HIGHL_HEIGHT["
save_int_to_debug_file 12@
save_string_to_debug_file "] = "
save_float_to_debug_file $vp_highl_height(12@,5f)
12@ += 1
goto @VIDPOK_25253

:VIDPOK_26389
save_newline_to_debug_file 
save_newline_to_debug_file 
save_string_to_debug_file "BUTTON_TEXT_OFFSET = "
save_float_to_debug_file $button_text_offset

:VIDPOK_26528
return 

:VIDPOK_26530
if 
  $vp_selected_colour_direction == 0
goto_if_false @VIDPOK_26596
$vp_selected_colour += 10
if 
  $vp_selected_colour >= 255
goto_if_false @VIDPOK_26589
$vp_selected_colour = 255
$vp_selected_colour_direction = 1

:VIDPOK_26589
goto @VIDPOK_26635

:VIDPOK_26596
$vp_selected_colour += -10
if 
  0 >= $vp_selected_colour
goto_if_false @VIDPOK_26635
$vp_selected_colour = 0
$vp_selected_colour_direction = 0

:VIDPOK_26635
if 
  $vp_tile_type <> 0
goto_if_false @VIDPOK_26906
12@ = 0
set_var_float_to_var_float $x = $TILE_WIDTH
$x /= 2.0
set_var_float_to_var_float $y = $TILE_HEIGHT
$y /= 2.0

:VIDPOK_26696
if and
  480.0 > $y
  100 > 12@
goto_if_false @VIDPOK_26899

:VIDPOK_26724
if and
  640.0 > $x
  100 > 12@
goto_if_false @VIDPOK_26866
if 
  $vp_tile_type == 1
goto_if_false @VIDPOK_26798
draw_sprite 64 {offsetLeft} $x {offsetTop} $y {width} $TILE_WIDTH {height} $TILE_HEIGHT {r} 150 {g} 150 {b} 150 {a} 255

:VIDPOK_26798
if 
  $vp_tile_type == 2
goto_if_false @VIDPOK_26844
draw_sprite 65 {offsetLeft} $x {offsetTop} $y {width} $TILE_WIDTH {height} $TILE_HEIGHT {r} 150 {g} 150 {b} 150 {a} 255

:VIDPOK_26844
12@ += 1
add_float_var_to_float_var $x += $TILE_WIDTH
goto @VIDPOK_26724

:VIDPOK_26866
add_float_var_to_float_var $y += $TILE_HEIGHT
set_var_float_to_var_float $x = $TILE_WIDTH
$x /= 2.0
goto @VIDPOK_26696

:VIDPOK_26899
goto @VIDPOK_26938

:VIDPOK_26906
draw_rect 320.0 {y} 240.0 {width} 640.0 {height} 480.0 {r} 6 {g} 16 {b} 140 {a} 255

:VIDPOK_26938
draw_sprite 63 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 63 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 63 {offsetLeft} 480.0 {offsetTop} 336.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
draw_sprite 63 {offsetLeft} 160.0 {offsetTop} 336.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
gosub @VIDPOK_33829
set_text_right_justify False
set_text_centre True
display_text $vp_screen_x[0] {offsetTop} $vp_screen_y[0] {key} 'VP02'
gosub @VIDPOK_33637
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_screen_x[6] {offsetTop} $vp_screen_y[6] {key} 'DOLLAR' {num} 1@
12@ = store_score $player1
gosub @VIDPOK_34875
gosub @VIDPOK_33637
set_text_right_justify True
set_lvar_int_to_var_int 13@ = $casino_credit
13@ *= -1
if 
  is_int_lvar_greater_or_equal_to_int_lvar 13@ >= 12@
goto_if_false @VIDPOK_27233
display_text $vp_screen_x[1] {offsetTop} $vp_screen_y[1] {key} 'VP18'
goto @VIDPOK_27253

:VIDPOK_27233
display_text_with_number $vp_screen_x[1] {offsetTop} $vp_screen_y[1] {key} 'VP16' {num} 12@

:VIDPOK_27253
gosub @VIDPOK_33829
set_text_right_justify False
set_text_centre True
set_lvar_int_to_var_int 12@ = $no_of_coins
mult_int_lvar_by_int_lvar 12@ *= 1@
display_text $vp_screen_x[2] {offsetTop} $vp_screen_y[2] {key} 'VP03'
gosub @VIDPOK_33637
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_screen_x[7] {offsetTop} $vp_screen_y[7] {key} 'DOLLAR' {num} 12@
gosub @VIDPOK_34213
set_text_centre True
display_text 320.0 {offsetTop} $vp_screen_y[4] {key} 'VP17'
draw_rect $vp_table_x {y} $vp_table_y {width} $vp_table_width {height} $vp_table_height {r} 0 {g} 0 {b} 0 {a} 255
if 
  3@ <> 6
goto_if_false @VIDPOK_27635
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_27635 {caseNum1} 1 {caseLabel1} @VIDPOK_27470 {caseNum2} 2 {caseLabel2} @VIDPOK_27503 {caseNum3} 3 {caseLabel3} @VIDPOK_27536 {caseNum4} 4 {caseLabel4} @VIDPOK_27569 {caseNum5} 5 {caseLabel5} @VIDPOK_27602 {caseNum6} -1 {caseLabel6} @VIDPOK_27635 {caseNum7} -1 {caseLabel7} @VIDPOK_27635

:VIDPOK_27470
draw_rect $vp_highl_x[0] {y} $vp_highl_y[0] {width} $vp_highl_width[0] {height} $vp_highl_height[0] {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
goto @VIDPOK_27635

:VIDPOK_27503
draw_rect $vp_highl_x[1] {y} $vp_highl_y[1] {width} $vp_highl_width[1] {height} $vp_highl_height[1] {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
goto @VIDPOK_27635

:VIDPOK_27536
draw_rect $vp_highl_x[2] {y} $vp_highl_y[2] {width} $vp_highl_width[2] {height} $vp_highl_height[2] {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
goto @VIDPOK_27635

:VIDPOK_27569
draw_rect $vp_highl_x[3] {y} $vp_highl_y[3] {width} $vp_highl_width[3] {height} $vp_highl_height[3] {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
goto @VIDPOK_27635

:VIDPOK_27602
draw_rect $vp_highl_x[4] {y} $vp_highl_y[4] {width} $vp_highl_width[4] {height} $vp_highl_height[4] {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
goto @VIDPOK_27635

:VIDPOK_27635
if and
  3@ == 6
  $hand_result <> 0
goto_if_false @VIDPOK_27972
12@ = 10
sub_int_var_from_int_lvar 12@ -= $hand_result
set_lvar_float_to_var_float 15@ = $row_y(12@,10f)
15@ += 9.0
switch_start $no_of_coins {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @VIDPOK_27930 {caseNum1} 1 {caseLabel1} @VIDPOK_27760 {caseNum2} 2 {caseLabel2} @VIDPOK_27794 {caseNum3} 3 {caseLabel3} @VIDPOK_27828 {caseNum4} 4 {caseLabel4} @VIDPOK_27862 {caseNum5} 5 {caseLabel5} @VIDPOK_27896 {caseNum6} -1 {caseLabel6} @VIDPOK_27930 {caseNum7} -1 {caseLabel7} @VIDPOK_27930

:VIDPOK_27760
draw_rect $vp_highl_x[0] {y} 15@ {width} $vp_highl_width[0] {height} 18.0 {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
goto @VIDPOK_27930

:VIDPOK_27794
draw_rect $vp_highl_x[1] {y} 15@ {width} $vp_highl_width[1] {height} 18.0 {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
goto @VIDPOK_27930

:VIDPOK_27828
draw_rect $vp_highl_x[2] {y} 15@ {width} $vp_highl_width[2] {height} 18.0 {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
goto @VIDPOK_27930

:VIDPOK_27862
draw_rect $vp_highl_x[3] {y} 15@ {width} $vp_highl_width[3] {height} 18.0 {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
goto @VIDPOK_27930

:VIDPOK_27896
draw_rect $vp_highl_x[4] {y} 15@ {width} $vp_highl_width[4] {height} 18.0 {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
goto @VIDPOK_27930

:VIDPOK_27930
gosub @VIDPOK_33637
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_screen_x[3] {offsetTop} $vp_screen_y[3] {key} 'VP04' {num} 14@
goto @VIDPOK_28039

:VIDPOK_27972
if and
  3@ == 6
  $hand_result == 0
goto_if_false @VIDPOK_28039
14@ = 0
gosub @VIDPOK_33637
set_text_right_justify False
set_text_centre True
display_text_with_number $vp_screen_x[3] {offsetTop} $vp_screen_y[3] {key} 'VP04' {num} 14@

:VIDPOK_28039
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[1] {key} 'VP06'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[2] {key} 'VP07'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[3] {key} 'VP08'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[4] {key} 'VP09'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[5] {key} 'VP10'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[6] {key} 'VP11'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[7] {key} 'VP12'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[8] {key} 'VP13'
gosub @VIDPOK_34021
display_text $col_x[0] {offsetTop} $row_y[9] {key} 'VP14'
gosub @VIDPOK_34213
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text $vp_screen_x[5] {offsetTop} $vp_screen_y[5] {key} 'VP05'
gosub @VIDPOK_34213
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $col_x[1] {offsetTop} $row_y[0] {key} 'VP15' {num} 1
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[1] {key} 'VP15' {num} 250
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[2] {key} 'VP15' {num} 50
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[3] {key} 'VP15' {num} 25
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[4] {key} 'VP15' {num} 9
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[5] {key} 'VP15' {num} 6
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[6] {key} 'VP15' {num} 4
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[7] {key} 'VP15' {num} 3
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[8] {key} 'VP15' {num} 2
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[1] {offsetTop} $row_y[9] {key} 'VP15' {num} 1
gosub @VIDPOK_34213
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $col_x[2] {offsetTop} $row_y[0] {key} 'VP15' {num} 2
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[1] {key} 'VP15' {num} 500
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[2] {key} 'VP15' {num} 100
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[3] {key} 'VP15' {num} 50
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[4] {key} 'VP15' {num} 18
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[5] {key} 'VP15' {num} 12
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[6] {key} 'VP15' {num} 8
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[7] {key} 'VP15' {num} 6
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[8] {key} 'VP15' {num} 4
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[2] {offsetTop} $row_y[9] {key} 'VP15' {num} 2
gosub @VIDPOK_34213
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $col_x[3] {offsetTop} $row_y[0] {key} 'VP15' {num} 3
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[1] {key} 'VP15' {num} 750
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[2] {key} 'VP15' {num} 150
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[3] {key} 'VP15' {num} 75
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[4] {key} 'VP15' {num} 27
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[5] {key} 'VP15' {num} 18
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[6] {key} 'VP15' {num} 12
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[7] {key} 'VP15' {num} 9
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[8] {key} 'VP15' {num} 6
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[3] {offsetTop} $row_y[9] {key} 'VP15' {num} 3
gosub @VIDPOK_34213
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $col_x[4] {offsetTop} $row_y[0] {key} 'VP15' {num} 4
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[1] {key} 'VP15' {num} 1000
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[2] {key} 'VP15' {num} 200
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[3] {key} 'VP15' {num} 100
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[4] {key} 'VP15' {num} 36
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[5] {key} 'VP15' {num} 24
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[6] {key} 'VP15' {num} 16
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[7] {key} 'VP15' {num} 12
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[8] {key} 'VP15' {num} 8
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[4] {offsetTop} $row_y[9] {key} 'VP15' {num} 4
gosub @VIDPOK_34213
set_text_right_justify True
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number $col_x[5] {offsetTop} $row_y[0] {key} 'VP15' {num} 5
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[1] {key} 'VP15' {num} 4000
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[2] {key} 'VP15' {num} 250
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[3] {key} 'VP15' {num} 125
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[4] {key} 'VP15' {num} 45
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[5] {key} 'VP15' {num} 30
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[6] {key} 'VP15' {num} 20
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[7] {key} 'VP15' {num} 15
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[8] {key} 'VP15' {num} 10
gosub @VIDPOK_34405
set_text_right_justify True
display_text_with_number $col_x[5] {offsetTop} $row_y[9] {key} 'VP15' {num} 5
draw_rect $vp_line_x[0] {y} $vp_line_y[0] {width} $vp_line_width[0] {height} $vp_line_height[0] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[1] {y} $vp_line_y[1] {width} $vp_line_width[1] {height} $vp_line_height[1] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[2] {y} $vp_line_y[2] {width} $vp_line_width[2] {height} $vp_line_height[2] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[3] {y} $vp_line_y[3] {width} $vp_line_width[3] {height} $vp_line_height[3] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[4] {y} $vp_line_y[4] {width} $vp_line_width[4] {height} $vp_line_height[4] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[5] {y} $vp_line_y[5] {width} $vp_line_width[5] {height} $vp_line_height[5] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[6] {y} $vp_line_y[6] {width} $vp_line_width[6] {height} $vp_line_height[6] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[7] {y} $vp_line_y[7] {width} $vp_line_width[7] {height} $vp_line_height[7] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
draw_rect $vp_line_x[8] {y} $vp_line_y[8] {width} $vp_line_width[8] {height} $vp_line_height[8] {r} $text_edge_r[0] {g} $text_edge_g[0] {b} $text_edge_b[0] {a} 255
$vphud_int = 0

:VIDPOK_30112
if 
  5 > $vphud_int
goto_if_false @VIDPOK_31298
if 
  $card_value($vphud_int,5i) == 0
goto_if_false @VIDPOK_30195
draw_sprite 53 {offsetLeft} $card_x($vphud_int,5f) {offsetTop} $card_y($vphud_int,5f) {width} $vp_card_width {height} $vp_card_height {r} 128 {g} 128 {b} 128 {a} 255
goto @VIDPOK_30236

:VIDPOK_30195
draw_sprite $card_value($vphud_int,5i) {offsetLeft} $card_x($vphud_int,5f) {offsetTop} $card_y($vphud_int,5f) {width} $vp_card_width {height} $vp_card_height {r} 128 {g} 128 {b} 128 {a} 255

:VIDPOK_30236
set_var_float_to_var_float $x = $card_x($vphud_int,5f)
set_var_float_to_var_float $y = $card_y($vphud_int,5f)
add_float_var_to_float_var $y += $vp_hold_button_offset
if 
  $hold_value($vphud_int,5i) == 0
goto_if_false @VIDPOK_30447
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_hold_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $x {y} $y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 128
draw_rect $x {y} $y {width} $vp_hold_width {height} $vp_hold_height {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34597
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $text_edge[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_hold_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30447
if 
  $hold_value($vphud_int,5i) == 1
goto_if_false @VIDPOK_30628
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_hold_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $x {y} $y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 128
draw_rect $x {y} $y {width} $vp_hold_width {height} $vp_hold_height {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34597
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $text_edge[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_hold_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30628
if 
  $hold_value($vphud_int,5i) == 2
goto_if_false @VIDPOK_30789
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_hold_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $x {y} $y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_width {height} $vp_hold_height {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34597
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30789
if 
  $hold_value($vphud_int,5i) == 3
goto_if_false @VIDPOK_30954
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_hold_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $x {y} $y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_width {height} $vp_hold_height {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34597
set_text_colour $text_colour_r[5] {green} $vp_selected_colour {blue} $text_colour_b[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_30954
if 
  $hold_value($vphud_int,5i) == 4
goto_if_false @VIDPOK_31117
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_hold_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $x {y} $y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_width {height} $vp_hold_height {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
gosub @VIDPOK_34597
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_31117
if 
  $hold_value($vphud_int,5i) == 5
goto_if_false @VIDPOK_31284
set_var_float_to_var_float $vp_border_width = $vp_hold_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_hold_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $x {y} $y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
draw_rect $x {y} $y {width} $vp_hold_width {height} $vp_hold_height {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
gosub @VIDPOK_34597
set_text_colour $text_colour_r[5] {green} $vp_selected_colour {blue} $text_colour_b[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_hold_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
sub_float_lvar_from_float_var $y -= 15@
display_text $x {offsetTop} $y {key} 'VP19'

:VIDPOK_31284
$vphud_int += 1
goto @VIDPOK_30112

:VIDPOK_31298
if 
  $bet_one_value == 0
goto_if_false @VIDPOK_31481
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_bet_one_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 128
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_bet_one_width {height} $vp_bet_one_height {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34597
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $text_edge[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_bet_one_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $bet_one_y
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_x {offsetTop} $y {key} 'VP20'

:VIDPOK_31481
if 
  $bet_one_value == 1
goto_if_false @VIDPOK_31666
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_bet_one_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 128
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_bet_one_width {height} $vp_bet_one_height {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34597
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $text_edge[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_bet_one_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $bet_one_y
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_x {offsetTop} $y {key} 'VP20'

:VIDPOK_31666
if 
  $bet_one_value == 2
goto_if_false @VIDPOK_31831
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_bet_one_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_bet_one_width {height} $vp_bet_one_height {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34597
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $bet_one_y
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_x {offsetTop} $y {key} 'VP20'

:VIDPOK_31831
if 
  $bet_one_value == 3
goto_if_false @VIDPOK_32000
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_bet_one_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_bet_one_width {height} $vp_bet_one_height {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34597
set_text_colour $text_colour_r[5] {green} $vp_selected_colour {blue} $text_colour_b[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $bet_one_y
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_x {offsetTop} $y {key} 'VP20'

:VIDPOK_32000
if 
  $bet_one_value == 4
goto_if_false @VIDPOK_32167
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_bet_one_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_bet_one_width {height} $vp_bet_one_height {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
gosub @VIDPOK_34597
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $bet_one_y
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_x {offsetTop} $y {key} 'VP20'

:VIDPOK_32167
if 
  $bet_one_value == 5
goto_if_false @VIDPOK_32338
set_var_float_to_var_float $vp_border_width = $vp_bet_one_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_bet_one_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
draw_rect $bet_one_x {y} $bet_one_y {width} $vp_bet_one_width {height} $vp_bet_one_height {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
gosub @VIDPOK_34597
set_text_colour $text_colour_r[5] {green} $vp_selected_colour {blue} $text_colour_b[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_bet_one_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $bet_one_y
sub_float_lvar_from_float_var $y -= 15@
display_text $bet_one_x {offsetTop} $y {key} 'VP20'

:VIDPOK_32338
if 
  $deal_value == 0
goto_if_false @VIDPOK_32521
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_deal_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $deal_x {y} $deal_y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 128
draw_rect $deal_x {y} $deal_y {width} $vp_deal_width {height} $vp_deal_height {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34597
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $text_edge[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_deal_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $deal_y
sub_float_lvar_from_float_var $y -= 15@
display_text $deal_x {offsetTop} $y {key} 'VP21'

:VIDPOK_32521
if 
  $deal_value == 1
goto_if_false @VIDPOK_32706
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_deal_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $deal_x {y} $deal_y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 128
draw_rect $deal_x {y} $deal_y {width} $vp_deal_width {height} $vp_deal_height {r} 128 {g} 128 {b} 128 {a} 255
gosub @VIDPOK_34597
set_text_colour 128 {green} 128 {blue} 128 {alpha} 255
set_text_edge $text_edge[5] {red} 0 {green} 0 {blue} 0 {alpha} 128
set_lvar_float_to_var_float 15@ = $vp_deal_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $deal_y
sub_float_lvar_from_float_var $y -= 15@
display_text $deal_x {offsetTop} $y {key} 'VP21'

:VIDPOK_32706
if 
  $deal_value == 2
goto_if_false @VIDPOK_32871
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_deal_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $deal_x {y} $deal_y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $deal_x {y} $deal_y {width} $vp_deal_width {height} $vp_deal_height {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34597
set_text_colour 0 {green} 255 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $deal_y
sub_float_lvar_from_float_var $y -= 15@
display_text $deal_x {offsetTop} $y {key} 'VP21'

:VIDPOK_32871
if 
  $deal_value == 3
goto_if_false @VIDPOK_33040
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_deal_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $deal_x {y} $deal_y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
draw_rect $deal_x {y} $deal_y {width} $vp_deal_width {height} $vp_deal_height {r} 0 {g} 128 {b} 0 {a} 255
gosub @VIDPOK_34597
set_text_colour $text_colour_r[5] {green} $vp_selected_colour {blue} $text_colour_b[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $deal_y
sub_float_lvar_from_float_var $y -= 15@
display_text $deal_x {offsetTop} $y {key} 'VP21'

:VIDPOK_33040
if 
  $deal_value == 4
goto_if_false @VIDPOK_33207
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_deal_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $deal_x {y} $deal_y {width} $vp_border_width {height} $vp_border_height {r} 0 {g} 0 {b} 0 {a} 255
draw_rect $deal_x {y} $deal_y {width} $vp_deal_width {height} $vp_deal_height {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
gosub @VIDPOK_34597
set_text_colour 255 {green} 0 {blue} 0 {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $deal_y
sub_float_lvar_from_float_var $y -= 15@
display_text $deal_x {offsetTop} $y {key} 'VP21'

:VIDPOK_33207
if 
  $deal_value == 5
goto_if_false @VIDPOK_33378
set_var_float_to_var_float $vp_border_width = $vp_deal_width
add_float_var_to_float_var $vp_border_width += $vp_border_thickness
set_var_float_to_var_float $vp_border_height = $vp_deal_height
add_float_var_to_float_var $vp_border_height += $vp_border_thickness
draw_rect $deal_x {y} $deal_y {width} $vp_border_width {height} $vp_border_height {r} 255 {g} $vp_selected_colour {b} 0 {a} 255
draw_rect $deal_x {y} $deal_y {width} $vp_deal_width {height} $vp_deal_height {r} $text_colour_r[1] {g} $text_colour_g[1] {b} $text_colour_b[1] {a} 255
gosub @VIDPOK_34597
set_text_colour $text_colour_r[5] {green} $vp_selected_colour {blue} $text_colour_b[5] {alpha} 255
set_lvar_float_to_var_float 15@ = $vp_deal_height
div_float_lvar_by_float_var 15@ /= $button_text_offset
set_var_float_to_var_float $y = $deal_y
sub_float_lvar_from_float_var $y -= 15@
display_text $deal_x {offsetTop} $y {key} 'VP21'

:VIDPOK_33378
return 

:VIDPOK_33380
if and
  27 > $vp_in_card_value
  $vp_in_card_value > 13
goto_if_false @VIDPOK_33420
set_var_int_to_var_int $vp_out_card_value = $vp_in_card_value
$vp_out_card_value -= 13

:VIDPOK_33420
if and
  40 > $vp_in_card_value
  $vp_in_card_value > 26
goto_if_false @VIDPOK_33460
set_var_int_to_var_int $vp_out_card_value = $vp_in_card_value
$vp_out_card_value -= 26

:VIDPOK_33460
if and
  53 > $vp_in_card_value
  $vp_in_card_value > 39
goto_if_false @VIDPOK_33500
set_var_int_to_var_int $vp_out_card_value = $vp_in_card_value
$vp_out_card_value -= 39

:VIDPOK_33500
if 
  13 >= $vp_in_card_value
goto_if_false @VIDPOK_33526
set_var_int_to_var_int $vp_out_card_value = $vp_in_card_value

:VIDPOK_33526
return 

:VIDPOK_33528
if 
  14 > $vp_in_card_value
goto_if_false @VIDPOK_33560
$vp_out_card_value = 1
goto @VIDPOK_33631

:VIDPOK_33560
if 
  27 > $vp_in_card_value
goto_if_false @VIDPOK_33592
$vp_out_card_value = 2
goto @VIDPOK_33631

:VIDPOK_33592
if 
  40 > $vp_in_card_value
goto_if_false @VIDPOK_33624
$vp_out_card_value = 3
goto @VIDPOK_33631

:VIDPOK_33624
$vp_out_card_value = 4

:VIDPOK_33631
return 

:VIDPOK_33633
return 

:VIDPOK_33635
return 

:VIDPOK_33637
set_text_scale $text_scale_x[0] {heightScale} $text_scale_y[0]
set_text_colour $text_colour_r[0] {green} $text_colour_g[0] {blue} $text_colour_b[0] {alpha} 255
if 
  $text_centre[0] == 1
goto_if_false @VIDPOK_33681
set_text_centre True

:VIDPOK_33681
switch_start $text_font[0] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_33788 {caseNum1} 0 {caseLabel1} @VIDPOK_33744 {caseNum2} 1 {caseLabel2} @VIDPOK_33755 {caseNum3} 2 {caseLabel3} @VIDPOK_33766 {caseNum4} 3 {caseLabel4} @VIDPOK_33777 {caseNum5} -1 {caseLabel5} @VIDPOK_33799 {caseNum6} -1 {caseLabel6} @VIDPOK_33799 {caseNum7} -1 {caseLabel7} @VIDPOK_33799

:VIDPOK_33744
set_text_font Font.Gothic
goto @VIDPOK_33799

:VIDPOK_33755
set_text_font Font.Subtitles
goto @VIDPOK_33799

:VIDPOK_33766
set_text_font Font.Menu
goto @VIDPOK_33799

:VIDPOK_33777
set_text_font Font.Pricedown
goto @VIDPOK_33799

:VIDPOK_33788
set_text_font Font.Gothic
goto @VIDPOK_33799

:VIDPOK_33799
set_text_edge $text_edge[0] {red} $text_edge_r[0] {green} $text_edge_g[0] {blue} $text_edge_b[0] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_33829
set_text_scale $text_scale_x[1] {heightScale} $text_scale_y[1]
set_text_colour $text_colour_r[1] {green} $text_colour_g[1] {blue} $text_colour_b[1] {alpha} 255
if 
  $text_centre[1] == 1
goto_if_false @VIDPOK_33873
set_text_centre True

:VIDPOK_33873
switch_start $text_font[1] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_33980 {caseNum1} 0 {caseLabel1} @VIDPOK_33936 {caseNum2} 1 {caseLabel2} @VIDPOK_33947 {caseNum3} 2 {caseLabel3} @VIDPOK_33958 {caseNum4} 3 {caseLabel4} @VIDPOK_33969 {caseNum5} -1 {caseLabel5} @VIDPOK_33991 {caseNum6} -1 {caseLabel6} @VIDPOK_33991 {caseNum7} -1 {caseLabel7} @VIDPOK_33991

:VIDPOK_33936
set_text_font Font.Gothic
goto @VIDPOK_33991

:VIDPOK_33947
set_text_font Font.Subtitles
goto @VIDPOK_33991

:VIDPOK_33958
set_text_font Font.Menu
goto @VIDPOK_33991

:VIDPOK_33969
set_text_font Font.Pricedown
goto @VIDPOK_33991

:VIDPOK_33980
set_text_font Font.Gothic
goto @VIDPOK_33991

:VIDPOK_33991
set_text_edge $text_edge[1] {red} $text_edge_r[1] {green} $text_edge_g[1] {blue} $text_edge_b[1] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34021
set_text_scale $text_scale_x[2] {heightScale} $text_scale_y[2]
set_text_colour $text_colour_r[2] {green} $text_colour_g[2] {blue} $text_colour_b[2] {alpha} 255
if 
  $text_centre[2] == 1
goto_if_false @VIDPOK_34065
set_text_centre True

:VIDPOK_34065
switch_start $text_font[2] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34172 {caseNum1} 0 {caseLabel1} @VIDPOK_34128 {caseNum2} 1 {caseLabel2} @VIDPOK_34139 {caseNum3} 2 {caseLabel3} @VIDPOK_34150 {caseNum4} 3 {caseLabel4} @VIDPOK_34161 {caseNum5} -1 {caseLabel5} @VIDPOK_34183 {caseNum6} -1 {caseLabel6} @VIDPOK_34183 {caseNum7} -1 {caseLabel7} @VIDPOK_34183

:VIDPOK_34128
set_text_font Font.Gothic
goto @VIDPOK_34183

:VIDPOK_34139
set_text_font Font.Subtitles
goto @VIDPOK_34183

:VIDPOK_34150
set_text_font Font.Menu
goto @VIDPOK_34183

:VIDPOK_34161
set_text_font Font.Pricedown
goto @VIDPOK_34183

:VIDPOK_34172
set_text_font Font.Gothic
goto @VIDPOK_34183

:VIDPOK_34183
set_text_edge $text_edge[2] {red} $text_edge_r[2] {green} $text_edge_g[2] {blue} $text_edge_b[2] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34213
set_text_scale $text_scale_x[3] {heightScale} $text_scale_y[3]
set_text_colour $text_colour_r[3] {green} $text_colour_g[3] {blue} $text_colour_b[3] {alpha} 255
if 
  $text_centre[3] == 1
goto_if_false @VIDPOK_34257
set_text_centre True

:VIDPOK_34257
switch_start $text_font[3] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34364 {caseNum1} 0 {caseLabel1} @VIDPOK_34320 {caseNum2} 1 {caseLabel2} @VIDPOK_34331 {caseNum3} 2 {caseLabel3} @VIDPOK_34342 {caseNum4} 3 {caseLabel4} @VIDPOK_34353 {caseNum5} -1 {caseLabel5} @VIDPOK_34375 {caseNum6} -1 {caseLabel6} @VIDPOK_34375 {caseNum7} -1 {caseLabel7} @VIDPOK_34375

:VIDPOK_34320
set_text_font Font.Gothic
goto @VIDPOK_34375

:VIDPOK_34331
set_text_font Font.Subtitles
goto @VIDPOK_34375

:VIDPOK_34342
set_text_font Font.Menu
goto @VIDPOK_34375

:VIDPOK_34353
set_text_font Font.Pricedown
goto @VIDPOK_34375

:VIDPOK_34364
set_text_font Font.Gothic
goto @VIDPOK_34375

:VIDPOK_34375
set_text_edge $text_edge[3] {red} $text_edge_r[3] {green} $text_edge_g[3] {blue} $text_edge_b[3] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34405
set_text_scale $text_scale_x[4] {heightScale} $text_scale_y[4]
set_text_colour $text_colour_r[4] {green} $text_colour_g[4] {blue} $text_colour_b[4] {alpha} 255
if 
  $text_centre[4] == 1
goto_if_false @VIDPOK_34449
set_text_centre True

:VIDPOK_34449
switch_start $text_font[4] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34556 {caseNum1} 0 {caseLabel1} @VIDPOK_34512 {caseNum2} 1 {caseLabel2} @VIDPOK_34523 {caseNum3} 2 {caseLabel3} @VIDPOK_34534 {caseNum4} 3 {caseLabel4} @VIDPOK_34545 {caseNum5} -1 {caseLabel5} @VIDPOK_34567 {caseNum6} -1 {caseLabel6} @VIDPOK_34567 {caseNum7} -1 {caseLabel7} @VIDPOK_34567

:VIDPOK_34512
set_text_font Font.Gothic
goto @VIDPOK_34567

:VIDPOK_34523
set_text_font Font.Subtitles
goto @VIDPOK_34567

:VIDPOK_34534
set_text_font Font.Menu
goto @VIDPOK_34567

:VIDPOK_34545
set_text_font Font.Pricedown
goto @VIDPOK_34567

:VIDPOK_34556
set_text_font Font.Gothic
goto @VIDPOK_34567

:VIDPOK_34567
set_text_edge $text_edge[4] {red} $text_edge_r[4] {green} $text_edge_g[4] {blue} $text_edge_b[4] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34597
set_text_scale $text_scale_x[5] {heightScale} $text_scale_y[5]
set_text_colour $text_colour_r[5] {green} $text_colour_g[5] {blue} $text_colour_b[5] {alpha} 255
if 
  $text_centre[5] == 1
goto_if_false @VIDPOK_34641
set_text_centre True

:VIDPOK_34641
switch_start $text_font[5] {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @VIDPOK_34748 {caseNum1} 0 {caseLabel1} @VIDPOK_34704 {caseNum2} 1 {caseLabel2} @VIDPOK_34715 {caseNum3} 2 {caseLabel3} @VIDPOK_34726 {caseNum4} 3 {caseLabel4} @VIDPOK_34737 {caseNum5} -1 {caseLabel5} @VIDPOK_34759 {caseNum6} -1 {caseLabel6} @VIDPOK_34759 {caseNum7} -1 {caseLabel7} @VIDPOK_34759

:VIDPOK_34704
set_text_font Font.Gothic
goto @VIDPOK_34759

:VIDPOK_34715
set_text_font Font.Subtitles
goto @VIDPOK_34759

:VIDPOK_34726
set_text_font Font.Menu
goto @VIDPOK_34759

:VIDPOK_34737
set_text_font Font.Pricedown
goto @VIDPOK_34759

:VIDPOK_34748
set_text_font Font.Gothic
goto @VIDPOK_34759

:VIDPOK_34759
set_text_edge $text_edge[5] {red} $text_edge_r[5] {green} $text_edge_g[5] {blue} $text_edge_b[5] {alpha} 255
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 
set_text_scale 0.54 {heightScale} 1.44
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_centre True
set_text_wrapx 2000.0
set_text_proportional True
return 

:VIDPOK_34875
15@ = get_float_stat StatId.Gambling
if 
  50.0 > 15@
goto_if_false @VIDPOK_34917
$casino_credit = 100
goto @VIDPOK_35037

:VIDPOK_34917
if 
  150.0 > 15@
goto_if_false @VIDPOK_34953
$casino_credit = 1000
goto @VIDPOK_35037

:VIDPOK_34953
if 
  350.0 > 15@
goto_if_false @VIDPOK_34989
$casino_credit = 10000
goto @VIDPOK_35037

:VIDPOK_34989
if 
  1000.0 > 15@
goto_if_false @VIDPOK_35027
$casino_credit = 100000
goto @VIDPOK_35037

:VIDPOK_35027
$casino_credit = 1000000

:VIDPOK_35037
return 

:VIDPOK_35039
set_minigame_in_progress False
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
terminate_all_scripts_with_this_name 'CASHWIN'
clear_prints 
clear_help 
clear_mission_audio MissionAudioSlot.Slot4
remove_texture_dictionary 
use_text_commands False
set_player_control $player1 {state} True
display_hud True
set_camera_behind_player 
restore_camera_jumpcut 
return 
terminate_this_script 

//-------------External script 17 (BLACKJ)---------------

:BLACKJ
script_name 'BLACKJ'
2@ = 0
3@ = 0
4@ = 0
5@ = 0
22@ = 0
23@ = 0
24@ = 0
if 
  3@ == -1
goto_if_false @BLACKJ_193
0@ = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$active_bj_table = create_object #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$active_bj_croupier = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$bj_chip_set[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0

:BLACKJ_193
29@ = -99

:BLACKJ_200
wait 0
if 
  $iTerminateAllAmbience == 0
goto_if_false @BLACKJ_2463
if 
  does_object_exist 0@
goto_if_false @BLACKJ_2447
if 
  is_object_within_brain_activation_range 0@
goto_if_false @BLACKJ_2431
if 
  $active_bj_table == 0
goto_if_false @BLACKJ_2343
if 
  is_player_playing $player1
goto_if_false @BLACKJ_2327
if 
  2@ == 0
goto_if_false @BLACKJ_1076
if 
  3@ == 0
goto_if_false @BLACKJ_869
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_366
set_lvar_int_to_constant 26@ = 171
goto @BLACKJ_374

:BLACKJ_366
set_lvar_int_to_constant 26@ = 171

:BLACKJ_374
if 
  not has_model_loaded 26@
goto_if_false @BLACKJ_395
request_model 26@

:BLACKJ_395
if 
  not has_animation_loaded "CASINO"
goto_if_false @BLACKJ_426
request_animation "CASINO"

:BLACKJ_426
if 
  29@ == -99
goto_if_false @BLACKJ_862
13@ = get_float_stat StatId.Gambling
if 
  $total_bj_tables == 0
goto_if_false @BLACKJ_675
if 
  1.0 > 13@
goto_if_false @BLACKJ_511
29@ = 100
30@ = 1
goto @BLACKJ_661

:BLACKJ_511
if 
  10.0 > 13@
goto_if_false @BLACKJ_554
29@ = 1000
30@ = 10
goto @BLACKJ_661

:BLACKJ_554
if 
  100.0 > 13@
goto_if_false @BLACKJ_597
29@ = 10000
30@ = 100
goto @BLACKJ_661

:BLACKJ_597
if 
  1000.0 > 13@
goto_if_false @BLACKJ_643
29@ = 100000
30@ = 1000
goto @BLACKJ_661

:BLACKJ_643
29@ = 1000000
30@ = 10000

:BLACKJ_661
$total_bj_tables += 1
goto @BLACKJ_862

:BLACKJ_675
10@ = generate_random_int_in_range 0 {max} 5
switch_start 10@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_862 {caseNum1} 0 {caseLabel1} @BLACKJ_747 {caseNum2} 1 {caseLabel2} @BLACKJ_768 {caseNum3} 2 {caseLabel3} @BLACKJ_790 {caseNum4} 3 {caseLabel4} @BLACKJ_812 {caseNum5} 4 {caseLabel5} @BLACKJ_837 {caseNum6} -1 {caseLabel6} @BLACKJ_862 {caseNum7} -1 {caseLabel7} @BLACKJ_862

:BLACKJ_747
29@ = 100
30@ = 1
goto @BLACKJ_862

:BLACKJ_768
29@ = 1000
30@ = 10
goto @BLACKJ_862

:BLACKJ_790
29@ = 10000
30@ = 100
goto @BLACKJ_862

:BLACKJ_812
29@ = 100000
30@ = 1000
goto @BLACKJ_862

:BLACKJ_837
29@ = 1000000
30@ = 10000
goto @BLACKJ_862

:BLACKJ_862
3@ += 1

:BLACKJ_869
if 
  3@ == 1
goto_if_false @BLACKJ_920
if and
  has_model_loaded 26@
  has_animation_loaded "CASINO"
goto_if_false @BLACKJ_920
3@ += 1

:BLACKJ_920
if 
  3@ == 2
goto_if_false @BLACKJ_1076
if 
  not does_char_exist 1@
goto_if_false @BLACKJ_1062
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.4 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
1@ = create_char PedType.CivMale {modelId} 26@ {x} $x {y} $y {z} $z
set_char_decision_maker 1@ {handleOrTemplate} $iGlobalPedPanicDM
$heading = get_object_heading 0@
$heading += 180.0
set_char_heading 1@ {heading} $heading
mark_model_as_no_longer_needed 26@
enable_disabled_attractors_on_object 0@ {state} True

:BLACKJ_1062
2@ += 1
3@ = 0

:BLACKJ_1076
if 
  2@ == 1
goto_if_false @BLACKJ_2320
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_2320
if 
  $iSetCasinoPanic == 0
goto_if_false @BLACKJ_2271
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.4 {zOffset} 0.0
if 
  locate_char_on_foot_3d 1@ {x} $x {y} $y {z} $z {xRadius} 0.4 {yRadius} 0.4 {zRadius} 2.0 {drawSphere} False
goto_if_false @BLACKJ_2215
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -1.5 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @BLACKJ_2159
if 
  is_char_on_foot $scplayer
goto_if_false @BLACKJ_2152
if 
  22@ == 0
goto_if_false @BLACKJ_2128
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BLACKJ_1875
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_lvar $bj_players_cash > 30@
goto_if_false @BLACKJ_1845
10@ = 0
13@ = get_float_stat StatId.Gambling
if 
  29@ == 1000000
goto_if_false @BLACKJ_1449
if 
  1000.0 > 13@
goto_if_false @BLACKJ_1442
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1442
goto @BLACKJ_1654

:BLACKJ_1449
if 
  29@ == 100000
goto_if_false @BLACKJ_1521
if 
  100.0 > 13@
goto_if_false @BLACKJ_1514
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1514
goto @BLACKJ_1654

:BLACKJ_1521
if 
  29@ == 10000
goto_if_false @BLACKJ_1591
if 
  10.0 > 13@
goto_if_false @BLACKJ_1584
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1584
goto @BLACKJ_1654

:BLACKJ_1591
if 
  29@ == 1000
goto_if_false @BLACKJ_1654
if 
  1.0 > 13@
goto_if_false @BLACKJ_1654
print_now 'GAMBSTA' {time} 5000 {flag} 1
10@ = 1

:BLACKJ_1654
if 
  10@ == 0
goto_if_false @BLACKJ_1744
if 
  21@ == 1
goto_if_false @BLACKJ_1701
clear_prints 
clear_help 
21@ = 0

:BLACKJ_1701
2@ = 0
3@ = 0
set_var_int_to_lvar_int $active_bj_table = 0@
$bj_initial_last_bet = 0
22@ = 1
goto @BLACKJ_1838

:BLACKJ_1744
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_1838
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_1816
set_char_say_script 1@ {_p2} 5850 {_p3} True {_p4} True {_p5} False
start_char_facial_talk 1@ {duration} 2000
goto @BLACKJ_1838

:BLACKJ_1816
set_char_say_script 1@ {_p2} 5851 {_p3} True {_p4} True {_p5} False
start_char_facial_talk 1@ {duration} 2000

:BLACKJ_1838
goto @BLACKJ_1868

:BLACKJ_1845
print_now 'BJ_2' {time} 5000 {flag} 1
gosub @BLACKJ_18303

:BLACKJ_1868
goto @BLACKJ_2121

:BLACKJ_1875
if 
  21@ <> 1
goto_if_false @BLACKJ_2121
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_2121
set_help_message_box_size 200
switch_start 29@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_2114 {caseNum1} 100 {caseLabel1} @BLACKJ_2024 {caseNum2} 1000 {caseLabel2} @BLACKJ_2042 {caseNum3} 10000 {caseLabel3} @BLACKJ_2060 {caseNum4} 100000 {caseLabel4} @BLACKJ_2078 {caseNum5} 1000000 {caseLabel5} @BLACKJ_2096 {caseNum6} -1 {caseLabel6} @BLACKJ_2114 {caseNum7} -1 {caseLabel7} @BLACKJ_2114

:BLACKJ_2024
print_help_forever 'BJ_1A'
goto @BLACKJ_2114

:BLACKJ_2042
print_help_forever 'BJ_1B'
goto @BLACKJ_2114

:BLACKJ_2060
print_help_forever 'BJ_1C'
goto @BLACKJ_2114

:BLACKJ_2078
print_help_forever 'BJ_1D'
goto @BLACKJ_2114

:BLACKJ_2096
print_help_forever 'BJ_1E'
goto @BLACKJ_2114

:BLACKJ_2114
21@ = 1

:BLACKJ_2121
goto @BLACKJ_2152

:BLACKJ_2128
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BLACKJ_2152
22@ = 0

:BLACKJ_2152
goto @BLACKJ_2208

:BLACKJ_2159
if 
  21@ == 1
goto_if_false @BLACKJ_2208
clear_this_print 'BJ_2'
clear_this_print 'GAMBSTA'
clear_help 
21@ = 0

:BLACKJ_2208
goto @BLACKJ_2264

:BLACKJ_2215
if 
  21@ == 1
goto_if_false @BLACKJ_2264
clear_this_print 'BJ_2'
clear_this_print 'GAMBSTA'
clear_help 
21@ = 0

:BLACKJ_2264
goto @BLACKJ_2320

:BLACKJ_2271
if 
  21@ == 1
goto_if_false @BLACKJ_2320
clear_this_print 'BJ_2'
clear_this_print 'GAMBSTA'
clear_help 
21@ = 0

:BLACKJ_2320
goto @BLACKJ_2336

:BLACKJ_2327
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2336
goto @BLACKJ_2424

:BLACKJ_2343
if 
  is_int_var_equal_to_int_lvar $active_bj_table == 0@
goto_if_false @BLACKJ_2424
if 
  is_player_playing $player1
goto_if_false @BLACKJ_2424
if 
  5@ == 0
goto_if_false @BLACKJ_2410
gosub @BLACKJ_2533
goto @BLACKJ_2424

:BLACKJ_2410
gosub @BLACKJ_34567
$active_bj_table = 0

:BLACKJ_2424
goto @BLACKJ_2440

:BLACKJ_2431
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2440
goto @BLACKJ_2456

:BLACKJ_2447
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2456
goto @BLACKJ_2472

:BLACKJ_2463
gosub @BLACKJ_2479
terminate_this_script 

:BLACKJ_2472
goto @BLACKJ_200

:BLACKJ_2479
if 
  does_object_exist 0@
goto_if_false @BLACKJ_2502
enable_disabled_attractors_on_object 0@ {state} False

:BLACKJ_2502
mark_char_as_no_longer_needed 1@
remove_animation "CASINO"
$total_bj_tables -= 1
2@ = 0
return 

:BLACKJ_2533
if 
is_ps2_keyboard_key_just_pressed 32
goto_if_false @BLACKJ_2582
31@ += 1
if 
  31@ > 5
goto_if_false @BLACKJ_2580
31@ = 0

:BLACKJ_2580
clear_all_view_variables 

:BLACKJ_2582
if 
  31@ == 1
goto_if_false @BLACKJ_2838
set_var_int_to_lvar_int $BLACKJ_view_debug = 2@
set_var_int_to_lvar_int $9220 = 3@
set_var_int_to_lvar_int $9221 = 4@
set_var_int_to_var_int $9222 = $player_total1
set_var_int_to_var_int $9223 = $player_total1_b
set_var_int_to_var_int $9224 = $player_total2
set_var_int_to_var_int $9225 = $player_total2_b
set_var_int_to_var_int $9226 = $dealer_total
set_var_int_to_var_int $9227 = $dealer_total2
view_integer_variable $BLACKJ_view_debug {_p2} "M_STAGE"
view_integer_variable $9220 {_p2} "M_GOALS"
view_integer_variable $9221 {_p2} "M_GOALS2"
view_integer_variable $9222 {_p2} "PLAYER_TOTAL1"
view_integer_variable $9223 {_p2} "PLAYER_TOTAL1_B"
view_integer_variable $9224 {_p2} "PLAYER_TOTAL2"
view_integer_variable $9225 {_p2} "PLAYER_TOTAL2_B"
view_integer_variable $9226 {_p2} "DEALER_TOTAL"
view_integer_variable $9227 {_p2} "DEALER_TOTAL2"

:BLACKJ_2838
if 
  31@ == 2
goto_if_false @BLACKJ_3148
set_var_int_to_var_int $BLACKJ_view_debug = $player_cannot_split
set_var_int_to_var_int $9220 = $player_has_split
set_var_int_to_var_int $9221 = $player_cannot_double
set_var_int_to_var_int $9222 = $player_has_doubled1
set_var_int_to_var_int $9223 = $player_has_doubled2
set_var_int_to_var_int $9224 = $player_has_stuck1
set_var_int_to_var_int $9225 = $player_has_stuck2
set_var_int_to_var_int $9226 = $player_has_hit
set_var_int_to_var_int $9227 = $dealer_has_stuck
view_integer_variable $BLACKJ_view_debug {_p2} "PLAYER_CANNOT_SPLIT"
view_integer_variable $9220 {_p2} "PLAYER_HAS_SPLIT"
view_integer_variable $9221 {_p2} "PLAYER_CANNOT_DOUBLE"
view_integer_variable $9222 {_p2} "PLAYER_HAS_DOUBLED1"
view_integer_variable $9223 {_p2} "PLAYER_HAS_DOUBLED2"
view_integer_variable $9224 {_p2} "PLAYER_HAS_STUCK1"
view_integer_variable $9225 {_p2} "PLAYER_HAS_STUCK2"
view_integer_variable $9226 {_p2} "PLAYER_HAS_HIT"
view_integer_variable $9227 {_p2} "DEALER_HAS_STUCK"

:BLACKJ_3148
if 
  31@ == 3
goto_if_false @BLACKJ_3441
set_var_int_to_var_int $BLACKJ_view_debug = $player_has_quit
set_var_int_to_var_int $9220 = $player_has_won1
set_var_int_to_var_int $9221 = $player_has_won2
set_var_int_to_var_int $9222 = $player_has_input
set_var_int_to_var_int $9223 = $dealer_wins_by_default
set_var_int_to_var_int $9224 = $dealer_got_ace
set_var_int_to_var_int $9225 = $player_got_ace1
set_var_int_to_var_int $9226 = $player_got_ace2
set_var_int_to_var_int $9227 = $player_got_bj
view_integer_variable $BLACKJ_view_debug {_p2} "PLAYER_HAS_QUIT"
view_integer_variable $9220 {_p2} "PLAYER_HAS_WON1"
view_integer_variable $9221 {_p2} "PLAYER_HAS_WON2"
view_integer_variable $9222 {_p2} "PLAYER_HAS_INPUT"
view_integer_variable $9223 {_p2} "DEALER_WINS_BY_DEFAULT"
view_integer_variable $9224 {_p2} "DEALER_GOT_ACE"
view_integer_variable $9225 {_p2} "PLAYER_GOT_ACE1"
view_integer_variable $9226 {_p2} "PLAYER_GOT_ACE2"
view_integer_variable $9227 {_p2} "PLAYER_GOT_BJ"

:BLACKJ_3441
if 
  31@ == 4
goto_if_false @BLACKJ_3679
set_var_int_to_var_int $BLACKJ_view_debug = $bj_players_cash
set_var_int_to_lvar_int $9220 = 30@
set_var_int_to_lvar_int $9221 = 29@
set_var_int_to_var_int $9222 = $bj_last_bet
set_var_int_to_var_int $9223 = $bj_bet1
set_var_int_to_var_int $9224 = $bj_bet2
set_var_int_to_var_int $9225 = $bj_bet_step
set_var_int_to_var_int $9226 = $bj_half_bet
set_var_int_to_var_int $9227 = $bj_refund
view_integer_variable $BLACKJ_view_debug {_p2} "BJ_PLAYERS_CASH"
view_integer_variable $9220 {_p2} "MIN_BET"
view_integer_variable $9221 {_p2} "MAX_BET"
view_integer_variable $9222 {_p2} "BJ_LAST_BET"
view_integer_variable $9223 {_p2} "BJ_BET1"
view_integer_variable $9224 {_p2} "BJ_BET2"
view_integer_variable $9225 {_p2} "BJ_BET_STEP"
view_integer_variable $9226 {_p2} "BJ_HALF_BET"
view_integer_variable $9227 {_p2} "BJ_REFUND"

:BLACKJ_3679
if 
  31@ == 5
goto_if_false @BLACKJ_3780
set_var_int_to_var_int $BLACKJ_view_debug = $player_got_bj
set_var_int_to_var_int $9220 = $bj_payout
set_var_int_to_var_int $9221 = $bj_initial_stake
view_integer_variable $BLACKJ_view_debug {_p2} "PLAYER_GOT_BJ"
view_integer_variable $9220 {_p2} "BJ_PAYOUT"
view_integer_variable $9221 {_p2} "BJ_INITIAL_STAKE"

:BLACKJ_3780
6@ += 1
if 
  6@ > 9
goto_if_false @BLACKJ_3812
6@ = 0

:BLACKJ_3812
7@ = get_game_timer 
set_lvar_int_to_lvar_int 9@ = 7@
sub_int_lvar_from_int_lvar 9@ -= 8@
set_lvar_int_to_lvar_int 8@ = 7@
if or
  is_this_help_message_being_displayed 'SGPUNT'
  is_this_help_message_being_displayed 'SGGAMB'
  is_this_help_message_being_displayed 'SGPROF'
  is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_4365
if 
  $bj_offering_credit <> 1
goto_if_false @BLACKJ_4079
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_4065
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_4065 {caseNum1} 0 {caseLabel1} @BLACKJ_4002 {caseNum2} 1 {caseLabel2} @BLACKJ_4023 {caseNum3} 2 {caseLabel3} @BLACKJ_4044 {caseNum4} -1 {caseLabel4} @BLACKJ_4065 {caseNum5} -1 {caseLabel5} @BLACKJ_4065 {caseNum6} -1 {caseLabel6} @BLACKJ_4065 {caseNum7} -1 {caseLabel7} @BLACKJ_4065

:BLACKJ_4002
set_char_say_script 1@ {_p2} 5820 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4065

:BLACKJ_4023
set_char_say_script 1@ {_p2} 5821 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4065

:BLACKJ_4044
set_char_say_script 1@ {_p2} 5822 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4065

:BLACKJ_4065
$bj_offering_credit = 1
TIMERA = 0

:BLACKJ_4079
if 
  23@ == 0
goto_if_false @BLACKJ_4130
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_4123
clear_help 
23@ = 1

:BLACKJ_4123
goto @BLACKJ_4172

:BLACKJ_4130
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_4172
if 
  23@ <> 0
goto_if_false @BLACKJ_4172
23@ = 0

:BLACKJ_4172
if 
  25@ == 0
goto_if_false @BLACKJ_4223
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_4216
clear_help 
25@ = 1

:BLACKJ_4216
goto @BLACKJ_4265

:BLACKJ_4223
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_4265
if 
  25@ <> 0
goto_if_false @BLACKJ_4265
25@ = 0

:BLACKJ_4265
if 
  24@ == 0
goto_if_false @BLACKJ_4316
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_4309
clear_help 
24@ = 1

:BLACKJ_4309
goto @BLACKJ_4358

:BLACKJ_4316
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_4358
if 
  24@ <> 0
goto_if_false @BLACKJ_4358
24@ = 0

:BLACKJ_4358
goto @BLACKJ_4390

:BLACKJ_4365
if 
  $bj_offering_credit <> 0
goto_if_false @BLACKJ_4390
$bj_offering_credit = 0

:BLACKJ_4390
switch_start 2@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_4551 {caseNum1} 0 {caseLabel1} @BLACKJ_4453 {caseNum2} 1 {caseLabel2} @BLACKJ_4467 {caseNum3} 2 {caseLabel3} @BLACKJ_4481 {caseNum4} 3 {caseLabel4} @BLACKJ_4495 {caseNum5} 4 {caseLabel5} @BLACKJ_4509 {caseNum6} 5 {caseLabel6} @BLACKJ_4523 {caseNum7} 6 {caseLabel7} @BLACKJ_4537

:BLACKJ_4453
gosub @BLACKJ_5015
goto @BLACKJ_4551

:BLACKJ_4467
gosub @BLACKJ_7716
goto @BLACKJ_4551

:BLACKJ_4481
gosub @BLACKJ_9615
goto @BLACKJ_4551

:BLACKJ_4495
gosub @BLACKJ_10189
goto @BLACKJ_4551

:BLACKJ_4509
gosub @BLACKJ_10622
goto @BLACKJ_4551

:BLACKJ_4523
gosub @BLACKJ_15357
goto @BLACKJ_4551

:BLACKJ_4537
gosub @BLACKJ_15879
goto @BLACKJ_4551

:BLACKJ_4551
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @BLACKJ_4646
$card_cheat_on += 1
if 
  $card_cheat_on > 1
goto_if_false @BLACKJ_4626
$card_cheat_on = 0
write_debug_with_int "CARD_CHEAT_OFF" {number} $card_cheat_on
goto @BLACKJ_4646

:BLACKJ_4626
write_debug_with_int "CARD_CHEAT_ON" {number} $card_cheat_on

:BLACKJ_4646
if 
  $card_cheat_on <> 0
goto_if_false @BLACKJ_4792
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_4728
$card_cheat_value += 1
if 
  $card_cheat_value > 52
goto_if_false @BLACKJ_4712
$card_cheat_value = 1

:BLACKJ_4712
write_debug_with_int "NEXT_CARD" {number} $card_cheat_value

:BLACKJ_4728
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_4792
$card_cheat_value -= 1
if 
  1 > $card_cheat_value
goto_if_false @BLACKJ_4776
$card_cheat_value = 52

:BLACKJ_4776
write_debug_with_int "NEXT_CARD" {number} $card_cheat_value

:BLACKJ_4792
if 
  22@ == 0
goto_if_false @BLACKJ_4966
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  2@ <> 2
goto_if_false @BLACKJ_4959
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_4912
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_4898
set_char_say_script 1@ {_p2} 5852 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_4912

:BLACKJ_4898
set_char_say_script 1@ {_p2} 5853 {_p3} True {_p4} True {_p5} False

:BLACKJ_4912
5@ = 1
22@ = 1
if 
  $bj_refund <> 0
goto_if_false @BLACKJ_4952
add_score $player1 {money} $bj_refund

:BLACKJ_4952
$bj_last_bet = 0

:BLACKJ_4959
goto @BLACKJ_4990

:BLACKJ_4966
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BLACKJ_4990
22@ = 0

:BLACKJ_4990
if 
  is_char_dead 1@
goto_if_false @BLACKJ_5013
5@ = 1

:BLACKJ_5013
return 

:BLACKJ_5015
if 
  3@ == 0
goto_if_false @BLACKJ_5950
set_minigame_in_progress True
set_player_control $player1 {state} False
$winning_streak = 0
$card_width = 51.0
$card_height = 64.0
$player_sprite1_x[0] = 233.0
$player_sprite1_y[0] = 381.0
$player_sprite1b_x[0] = 233.0
$player_sprite1b_y[0] = 311.0
$player_sprite2_x[0] = 233.0
$player_sprite2_y[0] = 381.0
$dealer_sprite_x[0] = 226.0
$dealer_sprite_y[0] = 60.0
$border_width = 6.0
$screen_pos_x[0] = 29.0
$screen_pos_y[0] = 220.0
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_5271 {caseNum1} 3 {caseLabel1} @BLACKJ_5244 {caseNum2} -1 {caseLabel2} @BLACKJ_5298 {caseNum3} -1 {caseLabel3} @BLACKJ_5298 {caseNum4} -1 {caseLabel4} @BLACKJ_5298 {caseNum5} -1 {caseLabel5} @BLACKJ_5298 {caseNum6} -1 {caseLabel6} @BLACKJ_5298 {caseNum7} -1 {caseLabel7} @BLACKJ_5298

:BLACKJ_5244
$screen_pos_x[1] = 173.9799
$screen_pos_y[1] = 409.0
goto @BLACKJ_5298

:BLACKJ_5271
$screen_pos_x[1] = 157.0
$screen_pos_y[1] = 409.0
goto @BLACKJ_5298

:BLACKJ_5298
$screen_pos_x[2] = 36.0
$screen_pos_y[2] = 240.0
$screen_pos_x[3] = 36.0
$screen_pos_y[3] = 260.0
$screen_pos_x[4] = 36.0
$screen_pos_y[4] = 290.0
$screen_pos_x[5] = 36.0
$screen_pos_y[5] = 310.0
$screen_pos_x[6] = 36.0
$screen_pos_y[6] = 340.0
$screen_pos_x[7] = 36.0
$screen_pos_y[7] = 360.0
$screen_pos_x[8] = 29.0
$screen_pos_y[8] = 220.0
switch_start $current_Language {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_5555 {caseNum1} 1 {caseLabel1} @BLACKJ_5528 {caseNum2} 2 {caseLabel2} @BLACKJ_5501 {caseNum3} 3 {caseLabel3} @BLACKJ_5501 {caseNum4} 4 {caseLabel4} @BLACKJ_5501 {caseNum5} -1 {caseLabel5} @BLACKJ_5582 {caseNum6} -1 {caseLabel6} @BLACKJ_5582 {caseNum7} -1 {caseLabel7} @BLACKJ_5582

:BLACKJ_5501
$screen_pos_x[9] = 169.0
$screen_pos_y[9] = 409.0
goto @BLACKJ_5582

:BLACKJ_5528
$screen_pos_x[9] = 177.0
$screen_pos_y[9] = 409.0
goto @BLACKJ_5582

:BLACKJ_5555
$screen_pos_x[9] = 157.0
$screen_pos_y[9] = 409.0
goto @BLACKJ_5582

:BLACKJ_5582
$screen_pos_x[10] = 36.0
$screen_pos_y[10] = 240.0
$screen_pos_x[11] = 36.0
$screen_pos_y[11] = 260.0
$screen_pos_x[12] = 36.0
$screen_pos_y[12] = 290.0
$screen_pos_x[13] = 40.0
$screen_pos_y[13] = 310.0
$screen_pos_x[14] = 40.0
$screen_pos_y[14] = 310.0
$screen_pos_x[15] = 36.0
$screen_pos_y[15] = 340.0
$screen_pos_x[16] = 40.0
$screen_pos_y[16] = 360.0
$screen_pos_x[17] = 40.0
$screen_pos_y[17] = 360.0
$screen_pos_x[18] = 40.0
$screen_pos_y[18] = 360.0
$screen_pos_x[19] = 40.0
$screen_pos_y[19] = 360.0
$screen_pos_x[20] = 40.0
$screen_pos_y[20] = 382.0
$screen_pos_x[21] = 40.0
$screen_pos_y[21] = 382.0
$screen_pos_x[22] = 209.0
$screen_pos_y[22] = 293.0
$screen_pos_x[23] = 209.0
$screen_pos_y[23] = 361.0
$screen_pos_x[24] = 1.0
$screen_pos_y[24] = 4.0
$screen_pos_x[25] = 320.0
$screen_pos_y[25] = 197.0
$screen_pos_x[26] = 320.0
$screen_pos_y[26] = 233.0
gosub @BLACKJ_32389
request_model #BLCK_JACK
request_animation "CASINO"
3@ += 1

:BLACKJ_5950
if 
  3@ == 1
goto_if_false @BLACKJ_6000
if and
  has_model_loaded #BLCK_JACK
  has_animation_loaded "CASINO"
goto_if_false @BLACKJ_6000
3@ += 1

:BLACKJ_6000
if 
  3@ == 2
goto_if_false @BLACKJ_7552
use_text_commands True
load_texture_dictionary 'LD_CARD'
load_sprite 1 {spriteName} "CD1C"
load_sprite 2 {spriteName} "CD2C"
load_sprite 3 {spriteName} "CD3C"
load_sprite 4 {spriteName} "CD4C"
load_sprite 5 {spriteName} "CD5C"
load_sprite 6 {spriteName} "CD6C"
load_sprite 7 {spriteName} "CD7C"
load_sprite 8 {spriteName} "CD8C"
load_sprite 9 {spriteName} "CD9C"
load_sprite 10 {spriteName} "CD10C"
load_sprite 11 {spriteName} "CD11C"
load_sprite 12 {spriteName} "CD12C"
load_sprite 13 {spriteName} "CD13C"
load_sprite 14 {spriteName} "CD1D"
load_sprite 15 {spriteName} "CD2D"
load_sprite 16 {spriteName} "CD3D"
load_sprite 17 {spriteName} "CD4D"
load_sprite 18 {spriteName} "CD5D"
load_sprite 19 {spriteName} "CD6D"
load_sprite 20 {spriteName} "CD7D"
load_sprite 21 {spriteName} "CD8D"
load_sprite 22 {spriteName} "CD9D"
load_sprite 23 {spriteName} "CD10D"
load_sprite 24 {spriteName} "CD11D"
load_sprite 25 {spriteName} "CD12D"
load_sprite 26 {spriteName} "CD13D"
load_sprite 27 {spriteName} "CD1S"
load_sprite 28 {spriteName} "CD2S"
load_sprite 29 {spriteName} "CD3S"
load_sprite 30 {spriteName} "CD4S"
load_sprite 31 {spriteName} "CD5S"
load_sprite 32 {spriteName} "CD6S"
load_sprite 33 {spriteName} "CD7S"
load_sprite 34 {spriteName} "CD8S"
load_sprite 35 {spriteName} "CD9S"
load_sprite 36 {spriteName} "CD10S"
load_sprite 37 {spriteName} "CD11S"
load_sprite 38 {spriteName} "CD12S"
load_sprite 39 {spriteName} "CD13S"
load_sprite 40 {spriteName} "CD1H"
load_sprite 41 {spriteName} "CD2H"
load_sprite 42 {spriteName} "CD3H"
load_sprite 43 {spriteName} "CD4H"
load_sprite 44 {spriteName} "CD5H"
load_sprite 45 {spriteName} "CD6H"
load_sprite 46 {spriteName} "CD7H"
load_sprite 47 {spriteName} "CD8H"
load_sprite 48 {spriteName} "CD9H"
load_sprite 49 {spriteName} "CD10H"
load_sprite 50 {spriteName} "CD11H"
load_sprite 51 {spriteName} "CD12H"
load_sprite 52 {spriteName} "CD13H"
load_sprite 53 {spriteName} "CDBACK"
shuffle_card_decks 6
display_radar False
switch_rubbish 0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.4 {zOffset} 0.0
$heading = get_object_heading 0@
$heading += 180.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += -0.4
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_6707
clear_char_tasks_immediately 1@
set_char_coordinates 1@ {x} $x {y} $y {z} $z
set_char_heading 1@ {heading} $heading

:BLACKJ_6707
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.3192 {yOffset} -1.6334 {zOffset} 0.1415
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += -0.4
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_6798
task_turn_char_to_face_char $scplayer {target} 1@

:BLACKJ_6798
if 
  does_object_exist 0@
goto_if_false @BLACKJ_6911
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.4379 {yOffset} -2.243 {zOffset} 1.16
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.2822 {yOffset} -1.3256 {zOffset} 0.7939
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut

:BLACKJ_6911
if 
  does_object_exist 0@
goto_if_false @BLACKJ_7545
$bj_chip_set_default_z = -0.14
$bj_chip_off_x[0] = 0.0
$bj_chip_off_y[0] = -0.885
set_var_float_to_var_float $bj_chip_off_z[0] = $bj_chip_set_default_z
$bj_chip_off_x[1] = 0.045
$bj_chip_off_y[1] = -0.935
set_var_float_to_var_float $bj_chip_off_z[1] = $bj_chip_set_default_z
$bj_chip_off_x[2] = -0.05
$bj_chip_off_y[2] = -0.93
set_var_float_to_var_float $bj_chip_off_z[2] = $bj_chip_set_default_z
$bj_chip_off_x[3] = -0.01
$bj_chip_off_y[3] = -0.98
set_var_float_to_var_float $bj_chip_off_z[3] = $bj_chip_set_default_z
$bj_chip_off_x[4] = 0.06
$bj_chip_off_y[4] = -0.995
set_var_float_to_var_float $bj_chip_off_z[4] = $bj_chip_set_default_z
$bj_chip_off_x[5] = 0.02
$bj_chip_off_y[5] = -1.075
set_var_float_to_var_float $bj_chip_off_z[5] = $bj_chip_set_default_z
$bj_chip_off_x[6] = -0.07
$bj_chip_off_y[6] = -1.03
set_var_float_to_var_float $bj_chip_off_z[6] = $bj_chip_set_default_z
$bj_chip_off_x[7] = 0.065
$bj_chip_off_y[7] = -1.05
set_var_float_to_var_float $bj_chip_off_z[7] = $bj_chip_set_default_z
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[0] {yOffset} $bj_chip_off_y[0] {zOffset} $bj_chip_set_default_z
$bj_chip_set[0] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[0] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[1] {yOffset} $bj_chip_off_y[1] {zOffset} $bj_chip_set_default_z
$bj_chip_set[1] = create_object_no_offset #CHIP_STACK08 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[1] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[2] {yOffset} $bj_chip_off_y[2] {zOffset} $bj_chip_set_default_z
$bj_chip_set[2] = create_object_no_offset #CHIP_STACK09 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[2] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[3] {yOffset} $bj_chip_off_y[3] {zOffset} $bj_chip_set_default_z
$bj_chip_set[3] = create_object_no_offset #CHIP_STACK10 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[3] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[4] {yOffset} $bj_chip_off_y[4] {zOffset} $bj_chip_set_default_z
$bj_chip_set[4] = create_object_no_offset #CHIP_STACK11 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[4] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[5] {yOffset} $bj_chip_off_y[5] {zOffset} $bj_chip_set_default_z
$bj_chip_set[5] = create_object_no_offset #CHIP_STACK12 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[5] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[6] {yOffset} $bj_chip_off_y[6] {zOffset} $bj_chip_set_default_z
$bj_chip_set[6] = create_object_no_offset #CHIP_STACK13 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[6] {heading} $heading
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x[7] {yOffset} $bj_chip_off_y[7] {zOffset} $bj_chip_set_default_z
$bj_chip_set[7] = create_object_no_offset #CHIP_STACK14 {x} $x {y} $y {z} $z
set_object_heading $bj_chip_set[7] {heading} $heading

:BLACKJ_7545
3@ = 99

:BLACKJ_7552
if 
  3@ == 99
goto_if_false @BLACKJ_7714
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_7700
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_7700 {caseNum1} 0 {caseLabel1} @BLACKJ_7658 {caseNum2} 1 {caseLabel2} @BLACKJ_7679 {caseNum3} -1 {caseLabel3} @BLACKJ_7700 {caseNum4} -1 {caseLabel4} @BLACKJ_7700 {caseNum5} -1 {caseLabel5} @BLACKJ_7700 {caseNum6} -1 {caseLabel6} @BLACKJ_7700 {caseNum7} -1 {caseLabel7} @BLACKJ_7700

:BLACKJ_7658
set_char_say_script 1@ {_p2} 5809 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_7700

:BLACKJ_7679
set_char_say_script 1@ {_p2} 5810 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_7700

:BLACKJ_7700
2@ += 1
3@ = 0

:BLACKJ_7714
return 

:BLACKJ_7716
if 
  3@ == 0
goto_if_false @BLACKJ_8323
$next_card = 0
10@ = 0

:BLACKJ_7748
if 
  8 > 10@
goto_if_false @BLACKJ_7813
$dealers_cards(10@,8i) = 0
$players_cards1(10@,8i) = 0
$players_cards2(10@,8i) = 0
10@ += 1
goto @BLACKJ_7748

:BLACKJ_7813
$player_cannot_split = 0
$player_has_split = 0
$player_cannot_double = 0
$player_has_doubled1 = 0
$player_has_doubled2 = 0
$player_has_stuck1 = 0
$player_has_stuck2 = 0
$player_has_hit = 0
$dealer_has_stuck = 0
$player_has_quit = 0
$player_has_won1 = 0
$player_has_won2 = 0
$player_has_input = 0
$dealer_wins_by_default = 0
$player_total1 = 0
$player_total1_b = 0
$player_total2 = 0
$player_total2_b = 0
$dealer_total = 0
$dealer_total2 = 0
$dealer_got_ace = 0
$player_got_ace1 = 0
$player_got_ace2 = 0
$bj_refund = 0
if 
  is_int_lvar_greater_than_int_var 30@ > $bj_initial_last_bet
goto_if_false @BLACKJ_8008
set_var_int_to_lvar_int $bj_initial_last_bet = 30@

:BLACKJ_8008
set_var_int_to_var_int $bj_bet1 = $bj_initial_last_bet
$bj_bet2 = 0
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_bet1 > $bj_players_cash
goto_if_false @BLACKJ_8073
set_var_int_to_lvar_int $bj_bet1 = 30@

:BLACKJ_8073
if 
  is_int_var_greater_than_int_var $bj_bet1 > $bj_players_cash
goto_if_false @BLACKJ_8136
print_now 'BJ_2' {time} 5000 {flag} 1
gosub @BLACKJ_18303
5@ = 1
goto @BLACKJ_9613
goto @BLACKJ_8305

:BLACKJ_8136
set_lvar_int_to_var_int 10@ = $bj_bet1
10@ *= -1
add_score $player1 {money} 10@
set_var_int_to_var_int $bj_refund = $bj_bet1
set_var_int_to_var_int $bj_initial_stake = $bj_bet1
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_8305
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_8305 {caseNum1} 0 {caseLabel1} @BLACKJ_8263 {caseNum2} 1 {caseLabel2} @BLACKJ_8284 {caseNum3} -1 {caseLabel3} @BLACKJ_8305 {caseNum4} -1 {caseLabel4} @BLACKJ_8305 {caseNum5} -1 {caseLabel5} @BLACKJ_8305 {caseNum6} -1 {caseLabel6} @BLACKJ_8305 {caseNum7} -1 {caseLabel7} @BLACKJ_8305

:BLACKJ_8263
set_char_say_script 1@ {_p2} 5809 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_8305

:BLACKJ_8284
set_char_say_script 1@ {_p2} 5810 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_8305

:BLACKJ_8305
terminate_all_scripts_with_this_name 'CASHWIN'
3@ += 1

:BLACKJ_8323
if 
  3@ == 1
goto_if_false @BLACKJ_9542
if 
  not is_message_being_displayed 
goto_if_false @BLACKJ_9467
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_8438
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_8438
set_help_message_box_size 200
print_help_forever 'BJ_H1'

:BLACKJ_8438
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_8887
if and
  24@ <> 1
  24@ <> -1
goto_if_false @BLACKJ_8836
if 
  $bj_bet1 >= 10000
goto_if_false @BLACKJ_8537
$bj_bet_step = 1000
goto @BLACKJ_8641

:BLACKJ_8537
if 
  $bj_bet1 >= 1000
goto_if_false @BLACKJ_8570
$bj_bet_step = 100
goto @BLACKJ_8641

:BLACKJ_8570
if 
  $bj_bet1 >= 100
goto_if_false @BLACKJ_8602
$bj_bet_step = 10
goto @BLACKJ_8641

:BLACKJ_8602
if 
  $bj_bet1 == 0
goto_if_false @BLACKJ_8634
$bj_bet_step = 2
goto @BLACKJ_8641

:BLACKJ_8634
$bj_bet_step = 1

:BLACKJ_8641
if 
  is_int_var_greater_than_int_var $bj_bet_step > $bj_players_cash
goto_if_false @BLACKJ_8668
set_var_int_to_var_int $bj_bet_step = $bj_players_cash

:BLACKJ_8668
set_lvar_int_to_var_int 10@ = $bj_bet1
add_int_var_to_int_lvar 10@ += $bj_bet_step
if 
  is_int_lvar_greater_than_int_lvar 10@ > 29@
goto_if_false @BLACKJ_8719
set_var_int_to_lvar_int $bj_bet_step = 29@
sub_int_var_from_int_var $bj_bet_step -= $bj_bet1

:BLACKJ_8719
if 
  0 > $bj_bet_step
goto_if_false @BLACKJ_8744
$bj_bet_step *= -1

:BLACKJ_8744
add_int_var_to_int_var $bj_bet1 += $bj_bet_step
add_int_var_to_int_var $bj_refund += $bj_bet_step
add_int_var_to_int_var $bj_initial_stake += $bj_bet_step
$bj_bet_step *= -1
add_score $player1 {money} $bj_bet_step
24@ += 1
if 
  24@ > 1
goto_if_false @BLACKJ_8822
24@ = 2
goto @BLACKJ_8829

:BLACKJ_8822
TIMERA = 0

:BLACKJ_8829
goto @BLACKJ_8880

:BLACKJ_8836
if 
  24@ == 1
goto_if_false @BLACKJ_8880
if 
  TIMERA > 500
goto_if_false @BLACKJ_8880
24@ = 2

:BLACKJ_8880
goto @BLACKJ_9286

:BLACKJ_8887
if 
  25@ <> 0
goto_if_false @BLACKJ_8912
25@ = 0

:BLACKJ_8912
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_9261
if 
  25@ <> 1
goto_if_false @BLACKJ_9228
if 
  $bj_bet1 > 10000
goto_if_false @BLACKJ_8981
$bj_bet_step = -1000
goto @BLACKJ_9053

:BLACKJ_8981
if 
  $bj_bet1 > 1000
goto_if_false @BLACKJ_9014
$bj_bet_step = -100
goto @BLACKJ_9053

:BLACKJ_9014
if 
  $bj_bet1 > 100
goto_if_false @BLACKJ_9046
$bj_bet_step = -10
goto @BLACKJ_9053

:BLACKJ_9046
$bj_bet_step = -1

:BLACKJ_9053
set_lvar_int_to_var_int 10@ = $bj_bet1
add_int_var_to_int_var $bj_bet1 += $bj_bet_step
if 
  is_int_lvar_greater_than_int_var 30@ > $bj_bet1
goto_if_false @BLACKJ_9110
$bj_bet1 = 0
set_var_int_to_lvar_int $bj_bet_step = 10@
$bj_bet_step *= -1

:BLACKJ_9110
if 
  is_int_lvar_greater_than_int_var 30@ > $bj_bet1
goto_if_false @BLACKJ_9144
set_var_int_to_lvar_int $bj_bet1 = 30@
goto @BLACKJ_9175

:BLACKJ_9144
$bj_bet_step *= -1
sub_int_var_from_int_var $bj_refund -= $bj_bet_step
sub_int_var_from_int_var $bj_initial_stake -= $bj_bet_step
add_score $player1 {money} $bj_bet_step

:BLACKJ_9175
25@ += 1
if 
  25@ > 1
goto_if_false @BLACKJ_9214
25@ = 2
goto @BLACKJ_9221

:BLACKJ_9214
TIMERA = 0

:BLACKJ_9221
goto @BLACKJ_9254

:BLACKJ_9228
if 
  TIMERA > 500
goto_if_false @BLACKJ_9254
25@ = 2

:BLACKJ_9254
goto @BLACKJ_9286

:BLACKJ_9261
if 
  25@ <> 0
goto_if_false @BLACKJ_9286
25@ = 0

:BLACKJ_9286
if 
  23@ == 0
goto_if_false @BLACKJ_9404
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9397
set_var_int_to_var_int $bj_initial_last_bet = $bj_bet1
increment_int_stat StatId.MoneySpentGambling {value} $bj_bet1
cset_lvar_float_to_var_int 13@ =# $bj_bet1
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_refund = 0
set_var_int_to_var_int $bj_last_bet = $bj_bet1
gosub @BLACKJ_24857
23@ = 1
3@ = 99

:BLACKJ_9397
goto @BLACKJ_9428

:BLACKJ_9404
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9428
23@ = 0

:BLACKJ_9428
gosub @BLACKJ_23204
if 
  3@ <> 99
goto_if_false @BLACKJ_9460
3@ += 1

:BLACKJ_9460
goto @BLACKJ_9542

:BLACKJ_9467
if 
  23@ == 0
goto_if_false @BLACKJ_9518
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9511
23@ = 1
clear_prints 

:BLACKJ_9511
goto @BLACKJ_9542

:BLACKJ_9518
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_9542
23@ = 0

:BLACKJ_9542
if 
  3@ == 2
goto_if_false @BLACKJ_9574
gosub @BLACKJ_24857
3@ = 1

:BLACKJ_9574
if 
  3@ == 99
goto_if_false @BLACKJ_9613
gosub @BLACKJ_10563
3@ = 0
2@ += 1

:BLACKJ_9613
return 

:BLACKJ_9615
if 
  3@ == 0
goto_if_false @BLACKJ_9673
gosub @BLACKJ_29764
if 
  $next_card <> 0
goto_if_false @BLACKJ_9666
set_var_int_to_var_int $players_cards1[0] = $next_card

:BLACKJ_9666
3@ += 1

:BLACKJ_9673
if 
  3@ == 1
goto_if_false @BLACKJ_9743
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_9743
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9743
3@ += 1

:BLACKJ_9743
if 
  3@ == 2
goto_if_false @BLACKJ_9801
gosub @BLACKJ_29764
if 
  $next_card <> 0
goto_if_false @BLACKJ_9794
set_var_int_to_var_int $dealers_cards[0] = $next_card

:BLACKJ_9794
3@ += 1

:BLACKJ_9801
if 
  3@ == 3
goto_if_false @BLACKJ_9871
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_9871
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9871
3@ += 1

:BLACKJ_9871
if 
  3@ == 4
goto_if_false @BLACKJ_9929
gosub @BLACKJ_29764
if 
  $next_card <> 0
goto_if_false @BLACKJ_9922
set_var_int_to_var_int $players_cards1[1] = $next_card

:BLACKJ_9922
3@ += 1

:BLACKJ_9929
if 
  3@ == 5
goto_if_false @BLACKJ_9999
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_9999
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_9999
3@ += 1

:BLACKJ_9999
if 
  3@ == 6
goto_if_false @BLACKJ_10057
gosub @BLACKJ_29764
if 
  $next_card <> 0
goto_if_false @BLACKJ_10050
set_var_int_to_var_int $dealers_cards[1] = $next_card

:BLACKJ_10050
3@ += 1

:BLACKJ_10057
if 
  3@ == 7
goto_if_false @BLACKJ_10127
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_10127
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_10127
3@ = 99

:BLACKJ_10127
if 
  3@ == 99
goto_if_false @BLACKJ_10166
21@ = 0
3@ = 0
2@ += 1

:BLACKJ_10166
gosub @BLACKJ_31220
gosub @BLACKJ_29865
gosub @BLACKJ_25143
return 

:BLACKJ_10189
gosub @BLACKJ_10563
if 
  3@ == 0
goto_if_false @BLACKJ_10352
gosub @BLACKJ_31220
$player_got_bj = 0
$dealer_got_bj = 0
if or
  $player_total1 == 21
  $dealer_total == 21
goto_if_false @BLACKJ_10345
if 
  $player_total1 == 21
goto_if_false @BLACKJ_10285
$player_got_bj = 1

:BLACKJ_10285
if 
  $dealer_total == 21
goto_if_false @BLACKJ_10310
$dealer_got_bj = 1

:BLACKJ_10310
$player_has_stuck1 = 1
$dealer_has_stuck = 1
2@ += 2
3@ = 0
goto @BLACKJ_10352

:BLACKJ_10345
3@ = 99

:BLACKJ_10352
if 
  3@ == 99
goto_if_false @BLACKJ_10398
3@ = 0
4@ = 0
21@ = 0
2@ += 1

:BLACKJ_10398
gosub @BLACKJ_31220
gosub @BLACKJ_29865
gosub @BLACKJ_25143
if 
  $player_got_bj == 0
goto_if_false @BLACKJ_10451
gosub @BLACKJ_18456
goto @BLACKJ_10561

:BLACKJ_10451
if 
  $dealer_total <> 21
goto_if_false @BLACKJ_10554
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_10547
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_10533
set_char_say_script 1@ {_p2} 5811 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_10547

:BLACKJ_10533
set_char_say_script 1@ {_p2} 5812 {_p3} True {_p4} True {_p5} False

:BLACKJ_10547
goto @BLACKJ_10561

:BLACKJ_10554
gosub @BLACKJ_18456

:BLACKJ_10561
return 

:BLACKJ_10563
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_10620
clear_help 

:BLACKJ_10620
return 

:BLACKJ_10622
if 
  3@ == 0
goto_if_false @BLACKJ_12235
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_10808
set_var_int_to_var_int $in_card_value = $players_cards1[0]
gosub @BLACKJ_32241
set_lvar_int_to_var_int 10@ = $out_card_value
set_var_int_to_var_int $in_card_value = $players_cards1[1]
gosub @BLACKJ_32241
set_lvar_int_to_var_int 11@ = $out_card_value
if 
  is_int_lvar_equal_to_int_lvar 10@ == 11@
goto_if_false @BLACKJ_10762
if 
  $players_cards1[2] <> 0
goto_if_false @BLACKJ_10755
gosub @BLACKJ_10563
$player_cannot_split = 1

:BLACKJ_10755
goto @BLACKJ_10776

:BLACKJ_10762
gosub @BLACKJ_10563
$player_cannot_split = 1

:BLACKJ_10776
if 
  $player_has_split <> 0
goto_if_false @BLACKJ_10808
gosub @BLACKJ_10563
$player_cannot_split = 1

:BLACKJ_10808
if 
  $player_cannot_double == 0
goto_if_false @BLACKJ_11140
if 
  $player_has_split == 0
goto_if_false @BLACKJ_10939
if 
  $players_cards1[2] <> 0
goto_if_false @BLACKJ_10876
gosub @BLACKJ_10563
$player_cannot_double = 1

:BLACKJ_10876
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_bet1 > $bj_players_cash
goto_if_false @BLACKJ_10932
gosub @BLACKJ_10563
$player_cannot_double = 1

:BLACKJ_10932
goto @BLACKJ_11140

:BLACKJ_10939
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_11052
if 
  $players_cards1[2] <> 0
goto_if_false @BLACKJ_10989
gosub @BLACKJ_10563
$player_cannot_double = 1

:BLACKJ_10989
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_bet1 > $bj_players_cash
goto_if_false @BLACKJ_11045
gosub @BLACKJ_10563
$player_cannot_double = 1

:BLACKJ_11045
goto @BLACKJ_11140

:BLACKJ_11052
if 
  $players_cards2[2] <> 0
goto_if_false @BLACKJ_11084
gosub @BLACKJ_10563
$player_cannot_double = 1

:BLACKJ_11084
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_bet2 > $bj_players_cash
goto_if_false @BLACKJ_11140
gosub @BLACKJ_10563
$player_cannot_double = 1

:BLACKJ_11140
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_11744
if and
  $player_cannot_split == 0
  $player_cannot_double == 0
goto_if_false @BLACKJ_11256
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11249
set_help_message_box_size 128
print_help_forever 'BJ_H3'

:BLACKJ_11249
21@ = 1

:BLACKJ_11256
if and
  $player_cannot_split == 1
  $player_cannot_double == 0
goto_if_false @BLACKJ_11317
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11310
set_help_message_box_size 128
print_help_forever 'BJ_H2'

:BLACKJ_11310
21@ = 2

:BLACKJ_11317
if and
  $player_cannot_split == 1
  $player_cannot_double == 1
goto_if_false @BLACKJ_11378
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11371
set_help_message_box_size 128
print_help_forever 'BJ_H5'

:BLACKJ_11371
21@ = 3

:BLACKJ_11378
if and
  $player_cannot_split == 1
  $player_cannot_double == 0
goto_if_false @BLACKJ_11439
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11432
set_help_message_box_size 128
print_help_forever 'BJ_H2'

:BLACKJ_11432
21@ = 2

:BLACKJ_11439
if and
  $player_cannot_split == 1
  $player_cannot_double == 1
goto_if_false @BLACKJ_11500
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11493
set_help_message_box_size 128
print_help_forever 'BJ_H5'

:BLACKJ_11493
21@ = 3

:BLACKJ_11500
if and
  $player_cannot_split == 0
  $player_cannot_double == 0
goto_if_false @BLACKJ_11561
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11554
set_help_message_box_size 128
print_help_forever 'BJ_H3'

:BLACKJ_11554
21@ = 1

:BLACKJ_11561
if and
  $player_cannot_split == 1
  $player_cannot_double == 1
goto_if_false @BLACKJ_11622
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11615
set_help_message_box_size 128
print_help_forever 'BJ_H5'

:BLACKJ_11615
21@ = 3

:BLACKJ_11622
if and
  $player_cannot_split == 0
  $player_cannot_double == 0
goto_if_false @BLACKJ_11683
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11676
set_help_message_box_size 128
print_help_forever 'BJ_H3'

:BLACKJ_11676
21@ = 1

:BLACKJ_11683
if and
  $player_cannot_split == 1
  $player_cannot_double == 0
goto_if_false @BLACKJ_11744
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_11737
set_help_message_box_size 128
print_help_forever 'BJ_H2'

:BLACKJ_11737
21@ = 2

:BLACKJ_11744
if 
  not is_message_being_displayed 
goto_if_false @BLACKJ_12160
if 
  25@ == 0
goto_if_false @BLACKJ_11834
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_11827
$player_has_hit = 1
4@ = 0
3@ += 1
25@ = 1
goto @BLACKJ_12235

:BLACKJ_11827
goto @BLACKJ_11858

:BLACKJ_11834
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_11858
25@ = 0

:BLACKJ_11858
if 
  $player_cannot_split == 0
goto_if_false @BLACKJ_11939
if 
  $player_has_split == 0
goto_if_false @BLACKJ_11939
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder2
goto_if_false @BLACKJ_11939
$player_has_split = 1
3@ += 1
4@ = 0
goto @BLACKJ_12235

:BLACKJ_11939
if 
  $player_cannot_double == 0
goto_if_false @BLACKJ_12027
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @BLACKJ_12027
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_12006
$player_has_doubled1 = 1
goto @BLACKJ_12013

:BLACKJ_12006
$player_has_doubled2 = 1

:BLACKJ_12013
3@ += 1
goto @BLACKJ_12235

:BLACKJ_12027
if 
  23@ == 0
goto_if_false @BLACKJ_12129
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_12122
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_12094
$player_has_stuck1 = 1
goto @BLACKJ_12101

:BLACKJ_12094
$player_has_stuck2 = 1

:BLACKJ_12101
23@ = 1
3@ += 1
goto @BLACKJ_12235

:BLACKJ_12122
goto @BLACKJ_12153

:BLACKJ_12129
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_12153
23@ = 0

:BLACKJ_12153
goto @BLACKJ_12235

:BLACKJ_12160
if 
  25@ == 0
goto_if_false @BLACKJ_12211
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_12204
25@ = 1
clear_prints 

:BLACKJ_12204
goto @BLACKJ_12235

:BLACKJ_12211
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @BLACKJ_12235
25@ = 0

:BLACKJ_12235
if 
  3@ == 1
goto_if_false @BLACKJ_15204
if 
  $player_has_hit == 1
goto_if_false @BLACKJ_12734
if 
  4@ == 0
goto_if_false @BLACKJ_12303
gosub @BLACKJ_29764
4@ += 1

:BLACKJ_12303
if 
  4@ == 1
goto_if_false @BLACKJ_12373
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_12373
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_12373
4@ += 1

:BLACKJ_12373
if 
  4@ == 2
goto_if_false @BLACKJ_12702
if 
  $player_has_split == 0
goto_if_false @BLACKJ_12503
10@ = 0

:BLACKJ_12416
if 
  8 > 10@
goto_if_false @BLACKJ_12496
if 
  $players_cards1(10@,8i) == 0
goto_if_false @BLACKJ_12482
set_var_int_to_var_int $players_cards1(10@,8i) = $next_card
10@ = 8
4@ = 99

:BLACKJ_12482
10@ += 1
goto @BLACKJ_12416

:BLACKJ_12496
goto @BLACKJ_12702

:BLACKJ_12503
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_12615
10@ = 0

:BLACKJ_12528
if 
  8 > 10@
goto_if_false @BLACKJ_12608
if 
  $players_cards1(10@,8i) == 0
goto_if_false @BLACKJ_12594
set_var_int_to_var_int $players_cards1(10@,8i) = $next_card
10@ = 8
4@ = 99

:BLACKJ_12594
10@ += 1
goto @BLACKJ_12528

:BLACKJ_12608
goto @BLACKJ_12702

:BLACKJ_12615
10@ = 0

:BLACKJ_12622
if 
  8 > 10@
goto_if_false @BLACKJ_12702
if 
  $players_cards2(10@,8i) == 0
goto_if_false @BLACKJ_12688
set_var_int_to_var_int $players_cards2(10@,8i) = $next_card
10@ = 8
4@ = 99

:BLACKJ_12688
10@ += 1
goto @BLACKJ_12622

:BLACKJ_12702
if 
  4@ == 99
goto_if_false @BLACKJ_12734
$player_has_hit = 0
gosub @BLACKJ_18456

:BLACKJ_12734
10@ = 0
if 
  $player_has_split == 1
goto_if_false @BLACKJ_12791
if or
  $players_cards2[0] == 0
  $players_cards1[1] == 0
goto_if_false @BLACKJ_12791
10@ = 1

:BLACKJ_12791
if and
  $player_has_split == 1
  10@ == 1
goto_if_false @BLACKJ_13266
if 
  4@ == 0
goto_if_false @BLACKJ_12943
cset_var_float_to_var_int $bj_half_bet_f =# $bj_bet1
cset_var_int_to_var_float $bj_half_bet =# $bj_half_bet_f
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_half_bet > $bj_players_cash
goto_if_false @BLACKJ_12936
$player_has_split = 0
4@ = 99
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18303
goto @BLACKJ_12943

:BLACKJ_12936
4@ += 1

:BLACKJ_12943
if 
  4@ == 1
goto_if_false @BLACKJ_13045
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet
cset_lvar_float_to_var_int 13@ =# $bj_half_bet
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet *= -1
add_score $player1 {money} $bj_half_bet
$bj_half_bet *= -1
add_int_var_to_int_var $bj_bet1 += $bj_half_bet
add_int_var_to_int_var $bj_initial_stake += $bj_half_bet
gosub @BLACKJ_23204
4@ += 1

:BLACKJ_13045
if 
  4@ == 2
goto_if_false @BLACKJ_13100
set_var_int_to_var_int $players_cards2[0] = $players_cards1[0]
set_var_int_to_var_int $players_cards1[0] = $players_cards1[1]
$players_cards1[1] = 0
gosub @BLACKJ_29764
4@ += 1

:BLACKJ_13100
if 
  4@ == 3
goto_if_false @BLACKJ_13178
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_13178
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13178
set_var_int_to_var_int $players_cards1[1] = $next_card
4@ += 1

:BLACKJ_13178
if 
  4@ == 4
goto_if_false @BLACKJ_13266
cset_var_float_to_var_int $bj_half_bet_f =# $bj_bet1
$bj_half_bet_f /= 2.0
cset_var_int_to_var_float $bj_half_bet =# $bj_half_bet_f
set_var_int_to_var_int $bj_bet1 = $bj_half_bet
set_var_int_to_var_int $bj_bet2 = $bj_half_bet
$player_cannot_double = 0
gosub @BLACKJ_10563
gosub @BLACKJ_18456
4@ = 99

:BLACKJ_13266
if and
  $player_has_split == 1
  $player_has_stuck1 == 1
  $players_cards2[1] == 0
goto_if_false @BLACKJ_13472
if 
  4@ == 0
goto_if_false @BLACKJ_13330
gosub @BLACKJ_29764
4@ += 1

:BLACKJ_13330
if 
  4@ == 1
goto_if_false @BLACKJ_13400
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_13400
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13400
4@ += 1

:BLACKJ_13400
if 
  4@ == 2
goto_if_false @BLACKJ_13454
set_var_int_to_var_int $players_cards2[1] = $next_card
$player_cannot_double = 0
gosub @BLACKJ_10563
gosub @BLACKJ_18456
4@ = 99

:BLACKJ_13454
if 
  4@ == 99
goto_if_false @BLACKJ_13472

:BLACKJ_13472
if 
  $player_has_split == 0
goto_if_false @BLACKJ_13875
if and
  $player_has_doubled1 == 1
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_13868
if 
  4@ == 0
goto_if_false @BLACKJ_13642
cset_var_float_to_var_int $bj_half_bet_f =# $bj_bet1
cset_var_int_to_var_float $bj_half_bet =# $bj_half_bet_f
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_half_bet > $bj_players_cash
goto_if_false @BLACKJ_13635
$player_has_doubled1 = 0
4@ = 99
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18303
goto @BLACKJ_13642

:BLACKJ_13635
4@ += 1

:BLACKJ_13642
if 
  4@ == 1
goto_if_false @BLACKJ_13751
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet
cset_lvar_float_to_var_int 13@ =# $bj_half_bet
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet *= -1
add_score $player1 {money} $bj_half_bet
$bj_half_bet *= -1
add_int_var_to_int_var $bj_bet1 += $bj_half_bet
add_int_var_to_int_var $bj_initial_stake += $bj_half_bet
gosub @BLACKJ_23204
gosub @BLACKJ_29764
4@ += 1

:BLACKJ_13751
if 
  4@ == 2
goto_if_false @BLACKJ_13821
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_13821
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_13821
4@ += 1

:BLACKJ_13821
if 
  4@ == 3
goto_if_false @BLACKJ_13868
set_var_int_to_var_int $players_cards1[2] = $next_card
$player_has_stuck1 = 1
gosub @BLACKJ_18456
4@ = 99

:BLACKJ_13868
goto @BLACKJ_14638

:BLACKJ_13875
if and
  $player_has_doubled1 == 1
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_14260
if 
  4@ == 0
goto_if_false @BLACKJ_14027
cset_var_float_to_var_int $bj_half_bet_f =# $bj_bet1
cset_var_int_to_var_float $bj_half_bet =# $bj_half_bet_f
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_half_bet > $bj_players_cash
goto_if_false @BLACKJ_14020
$player_has_doubled1 = 0
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18303
4@ = 99
goto @BLACKJ_14027

:BLACKJ_14020
4@ += 1

:BLACKJ_14027
if 
  4@ == 1
goto_if_false @BLACKJ_14136
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet
cset_lvar_float_to_var_int 13@ =# $bj_half_bet
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet *= -1
add_score $player1 {money} $bj_half_bet
$bj_half_bet *= -1
add_int_var_to_int_var $bj_bet1 += $bj_half_bet
add_int_var_to_int_var $bj_initial_stake += $bj_half_bet
gosub @BLACKJ_23204
gosub @BLACKJ_29764
4@ += 1

:BLACKJ_14136
if 
  4@ == 2
goto_if_false @BLACKJ_14206
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_14206
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_14206
4@ += 1

:BLACKJ_14206
if 
  4@ == 3
goto_if_false @BLACKJ_14260
set_var_int_to_var_int $players_cards1[2] = $next_card
$player_has_stuck1 = 1
gosub @BLACKJ_18456
4@ = 0
goto @BLACKJ_13266

:BLACKJ_14260
if and
  $player_has_doubled2 == 1
  $player_has_stuck2 == 0
goto_if_false @BLACKJ_14638
if 
  4@ == 0
goto_if_false @BLACKJ_14412
cset_var_float_to_var_int $bj_half_bet_f =# $bj_bet1
cset_var_int_to_var_float $bj_half_bet =# $bj_half_bet_f
$bj_players_cash = store_score $player1
gosub @BLACKJ_33768
add_int_var_to_int_var $bj_players_cash += $casino_credit
if 
  is_int_var_greater_than_int_var $bj_half_bet > $bj_players_cash
goto_if_false @BLACKJ_14405
$player_has_doubled2 = 0
4@ = 99
print_now 'BJ_3' {time} 5000 {flag} 1
gosub @BLACKJ_18303
goto @BLACKJ_14412

:BLACKJ_14405
4@ += 1

:BLACKJ_14412
if 
  4@ == 1
goto_if_false @BLACKJ_14521
increment_int_stat StatId.MoneySpentGambling {value} $bj_half_bet
cset_lvar_float_to_var_int 13@ =# $bj_half_bet
13@ *= 0.001
increment_float_stat StatId.Gambling {value} 13@
$bj_half_bet *= -1
add_score $player1 {money} $bj_half_bet
$bj_half_bet *= -1
add_int_var_to_int_var $bj_bet2 += $bj_half_bet
add_int_var_to_int_var $bj_initial_stake += $bj_half_bet
gosub @BLACKJ_23204
gosub @BLACKJ_29764
4@ += 1

:BLACKJ_14521
if 
  4@ == 2
goto_if_false @BLACKJ_14591
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_14591
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_14591
4@ += 1

:BLACKJ_14591
if 
  4@ == 3
goto_if_false @BLACKJ_14638
set_var_int_to_var_int $players_cards2[2] = $next_card
$player_has_stuck2 = 1
gosub @BLACKJ_18456
4@ = 99

:BLACKJ_14638
gosub @BLACKJ_31220
if 
  $player_has_split == 0
goto_if_false @BLACKJ_14720
if 
  $player_total1 > 20
goto_if_false @BLACKJ_14688
$player_has_stuck1 = 1

:BLACKJ_14688
if 
  $players_cards1[4] <> 0
goto_if_false @BLACKJ_14713
$player_has_stuck1 = 1

:BLACKJ_14713
goto @BLACKJ_14866

:BLACKJ_14720
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_14816
if 
  $player_total1 > 20
goto_if_false @BLACKJ_14777
$player_has_stuck1 = 1
4@ = 0
goto @BLACKJ_13266

:BLACKJ_14777
if 
  $players_cards1[4] <> 0
goto_if_false @BLACKJ_14816
$player_has_stuck1 = 1
4@ = 0
goto @BLACKJ_13266

:BLACKJ_14816
if 
  $player_total2 > 20
goto_if_false @BLACKJ_14841
$player_has_stuck2 = 1

:BLACKJ_14841
if 
  $players_cards2[4] <> 0
goto_if_false @BLACKJ_14866
$player_has_stuck2 = 1

:BLACKJ_14866
if 
  $player_has_split == 1
goto_if_false @BLACKJ_15044
if and
  $player_has_stuck1 == 1
  $player_has_stuck2 == 1
goto_if_false @BLACKJ_15044
if and
  $player_total1 == 21
  $players_cards1[2] == 0
goto_if_false @BLACKJ_15012
if or
  $player_total2 <> 21
  $players_cards2[2] <> 0
goto_if_false @BLACKJ_14973
$player_got_bj = 2
goto @BLACKJ_15005

:BLACKJ_14973
if and
  $player_total2 == 21
  $players_cards2[2] == 0
goto_if_false @BLACKJ_15005
$player_got_bj = 4

:BLACKJ_15005
goto @BLACKJ_15044

:BLACKJ_15012
if and
  $player_total2 == 21
  $players_cards2[2] == 0
goto_if_false @BLACKJ_15044
$player_got_bj = 3

:BLACKJ_15044
if 
  $player_has_split == 0
goto_if_false @BLACKJ_15133
if 
  $player_has_stuck1 == 1
goto_if_false @BLACKJ_15094
3@ = 99
goto @BLACKJ_15126

:BLACKJ_15094
if 
  4@ == 99
goto_if_false @BLACKJ_15126
3@ = 0
4@ = 0

:BLACKJ_15126
goto @BLACKJ_15204

:BLACKJ_15133
if and
  $player_has_stuck1 == 1
  $player_has_stuck2 == 1
goto_if_false @BLACKJ_15172
3@ = 99
goto @BLACKJ_15204

:BLACKJ_15172
if 
  4@ == 99
goto_if_false @BLACKJ_15204
3@ = 0
4@ = 0

:BLACKJ_15204
if 
  $player_has_split == 1
goto_if_false @BLACKJ_15295
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_15271
gosub @BLACKJ_34152
display_text $screen_pos_x[22] {offsetTop} $screen_pos_y[22] {key} 'BJ_ARR'
goto @BLACKJ_15295

:BLACKJ_15271
gosub @BLACKJ_34152
display_text $screen_pos_x[23] {offsetTop} $screen_pos_y[23] {key} 'BJ_ARR'

:BLACKJ_15295
if 
  3@ == 99
goto_if_false @BLACKJ_15334
gosub @BLACKJ_10563
3@ = 0
2@ += 1

:BLACKJ_15334
gosub @BLACKJ_31220
gosub @BLACKJ_29865
gosub @BLACKJ_25143
return 

:BLACKJ_15357
if 
  3@ == 0
goto_if_false @BLACKJ_15510
if 
  $player_has_split == 0
goto_if_false @BLACKJ_15439
if 
  $player_total1 > 21
goto_if_false @BLACKJ_15432
$dealer_has_stuck = 1
$dealer_wins_by_default = 1
3@ = 99

:BLACKJ_15432
goto @BLACKJ_15485

:BLACKJ_15439
if and
  $player_total1 > 21
  $player_total2 > 21
goto_if_false @BLACKJ_15485
$dealer_has_stuck = 1
$dealer_wins_by_default = 1
3@ = 99

:BLACKJ_15485
if 
  3@ <> 99
goto_if_false @BLACKJ_15510
3@ += 1

:BLACKJ_15510
if 
  3@ == 1
goto_if_false @BLACKJ_15617
if 
  $dealer_total > 16
goto_if_false @BLACKJ_15560
$dealer_has_stuck = 1
goto @BLACKJ_15567

:BLACKJ_15560
3@ += 1

:BLACKJ_15567
if 
  $dealers_cards[4] <> 0
goto_if_false @BLACKJ_15592
$dealer_has_stuck = 1

:BLACKJ_15592
if 
  $dealer_has_stuck == 1
goto_if_false @BLACKJ_15617
3@ = 99

:BLACKJ_15617
if 
  3@ == 2
goto_if_false @BLACKJ_15649
gosub @BLACKJ_29764
3@ += 1

:BLACKJ_15649
if 
  3@ == 3
goto_if_false @BLACKJ_15719
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_15719
10@ = get_script_task_status 1@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BLACKJ_15719
3@ += 1

:BLACKJ_15719
if 
  3@ == 4
goto_if_false @BLACKJ_15824
10@ = 0

:BLACKJ_15744
if 
  8 > 10@
goto_if_false @BLACKJ_15817
if 
  $dealers_cards(10@,8i) == 0
goto_if_false @BLACKJ_15803
set_var_int_to_var_int $dealers_cards(10@,8i) = $next_card
10@ = 8

:BLACKJ_15803
10@ += 1
goto @BLACKJ_15744

:BLACKJ_15817
3@ = 0

:BLACKJ_15824
if 
  3@ == 99
goto_if_false @BLACKJ_15856
2@ += 1
3@ = 0

:BLACKJ_15856
gosub @BLACKJ_31220
gosub @BLACKJ_29865
gosub @BLACKJ_25143
return 

:BLACKJ_15879
if 
  3@ == 0
goto_if_false @BLACKJ_17945
if 
  $player_has_split == 0
goto_if_false @BLACKJ_16141
if 
  $player_total1 <= 21
goto_if_false @BLACKJ_16134
if 
  $dealer_total > 21
goto_if_false @BLACKJ_15965
$player_has_won1 = 1
goto @BLACKJ_16134

:BLACKJ_15965
if 
  is_int_var_greater_than_int_var $player_total1 > $dealer_total
goto_if_false @BLACKJ_15998
$player_has_won1 = 1
goto @BLACKJ_16134

:BLACKJ_15998
if 
  is_int_var_equal_to_int_var $player_total1 == $dealer_total
goto_if_false @BLACKJ_16127
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16081
if 
  $dealer_got_bj == 1
goto_if_false @BLACKJ_16067
$player_has_won1 = 2
goto @BLACKJ_16074

:BLACKJ_16067
$player_has_won1 = 1

:BLACKJ_16074
goto @BLACKJ_16120

:BLACKJ_16081
if 
  $dealer_got_bj == 1
goto_if_false @BLACKJ_16113
$player_has_won1 = 0
goto @BLACKJ_16120

:BLACKJ_16113
$player_has_won1 = 2

:BLACKJ_16120
goto @BLACKJ_16134

:BLACKJ_16127
$player_has_won1 = 0

:BLACKJ_16134
goto @BLACKJ_16593

:BLACKJ_16141
if 
  $player_total1 <= 21
goto_if_false @BLACKJ_16367
if 
  $dealer_total > 21
goto_if_false @BLACKJ_16191
$player_has_won1 = 1
goto @BLACKJ_16367

:BLACKJ_16191
if 
  is_int_var_greater_than_int_var $player_total1 > $dealer_total
goto_if_false @BLACKJ_16224
$player_has_won1 = 1
goto @BLACKJ_16367

:BLACKJ_16224
if 
  is_int_var_equal_to_int_var $player_total1 == $dealer_total
goto_if_false @BLACKJ_16360
if or
  $player_got_bj == 2
  $player_got_bj == 4
goto_if_false @BLACKJ_16314
if 
  $dealer_got_bj == 1
goto_if_false @BLACKJ_16300
$player_has_won1 = 2
goto @BLACKJ_16307

:BLACKJ_16300
$player_has_won1 = 1

:BLACKJ_16307
goto @BLACKJ_16353

:BLACKJ_16314
if 
  $dealer_got_bj == 1
goto_if_false @BLACKJ_16346
$player_has_won1 = 0
goto @BLACKJ_16353

:BLACKJ_16346
$player_has_won1 = 2

:BLACKJ_16353
goto @BLACKJ_16367

:BLACKJ_16360
$player_has_won1 = 0

:BLACKJ_16367
if 
  $player_total2 <= 21
goto_if_false @BLACKJ_16593
if 
  $dealer_total > 21
goto_if_false @BLACKJ_16417
$player_has_won2 = 1
goto @BLACKJ_16593

:BLACKJ_16417
if 
  is_int_var_greater_than_int_var $player_total2 > $dealer_total
goto_if_false @BLACKJ_16450
$player_has_won2 = 1
goto @BLACKJ_16593

:BLACKJ_16450
if 
  is_int_var_equal_to_int_var $player_total2 == $dealer_total
goto_if_false @BLACKJ_16586
if or
  $player_got_bj == 3
  $player_got_bj == 4
goto_if_false @BLACKJ_16540
if 
  $dealer_got_bj == 1
goto_if_false @BLACKJ_16526
$player_has_won2 = 2
goto @BLACKJ_16533

:BLACKJ_16526
$player_has_won2 = 1

:BLACKJ_16533
goto @BLACKJ_16579

:BLACKJ_16540
if 
  $dealer_got_bj == 1
goto_if_false @BLACKJ_16572
$player_has_won2 = 0
goto @BLACKJ_16579

:BLACKJ_16572
$player_has_won2 = 2

:BLACKJ_16579
goto @BLACKJ_16593

:BLACKJ_16586
$player_has_won2 = 0

:BLACKJ_16593
TIMERA = 0
$bj_payout = 0
if 
  $player_has_split == 0
goto_if_false @BLACKJ_16738
if 
  $player_has_won1 == 1
goto_if_false @BLACKJ_16705
if 
  $player_got_bj == 1
goto_if_false @BLACKJ_16683
$bj_payout = 3
mult_int_var_by_int_var $bj_payout *= $bj_bet1
goto @BLACKJ_16698

:BLACKJ_16683
$bj_payout = 2
mult_int_var_by_int_var $bj_payout *= $bj_bet1

:BLACKJ_16698
goto @BLACKJ_16731

:BLACKJ_16705
if 
  $player_has_won1 == 2
goto_if_false @BLACKJ_16731
set_var_int_to_var_int $bj_payout = $bj_bet1

:BLACKJ_16731
goto @BLACKJ_16980

:BLACKJ_16738
if 
  $player_has_won1 == 1
goto_if_false @BLACKJ_16825
if or
  $player_got_bj == 2
  $player_got_bj == 4
goto_if_false @BLACKJ_16803
$bj_payout = 3
mult_int_var_by_int_var $bj_payout *= $bj_bet1
goto @BLACKJ_16818

:BLACKJ_16803
$bj_payout = 2
mult_int_var_by_int_var $bj_payout *= $bj_bet1

:BLACKJ_16818
goto @BLACKJ_16851

:BLACKJ_16825
if 
  $player_has_won1 == 2
goto_if_false @BLACKJ_16851
set_var_int_to_var_int $bj_payout = $bj_bet1

:BLACKJ_16851
if 
  $player_has_won2 == 1
goto_if_false @BLACKJ_16954
if or
  $player_got_bj == 3
  $player_got_bj == 4
goto_if_false @BLACKJ_16924
set_lvar_int_to_var_int 10@ = $bj_bet2
10@ *= 3
add_int_lvar_to_int_var $bj_payout += 10@
goto @BLACKJ_16947

:BLACKJ_16924
set_lvar_int_to_var_int 10@ = $bj_bet2
10@ *= 2
add_int_lvar_to_int_var $bj_payout += 10@

:BLACKJ_16947
goto @BLACKJ_16980

:BLACKJ_16954
if 
  $player_has_won2 == 2
goto_if_false @BLACKJ_16980
add_int_var_to_int_var $bj_payout += $bj_bet2

:BLACKJ_16980
set_lvar_int_to_var_int 10@ = $bj_payout
sub_int_var_from_int_lvar 10@ -= $bj_initial_stake
increment_int_stat StatId.MoneyWonGambling {value} 10@
add_score $player1 {money} $bj_payout
start_new_script @CASHWIN 10@ 3000 69 
show_update_stats False
if 
  10@ > 0
goto_if_false @BLACKJ_17498
register_int_stat StatId.BiggestGamblingWin {value} 10@
cset_lvar_float_to_lvar_int 13@ =# 10@
cset_lvar_float_to_lvar_int 14@ =# 29@
div_float_lvar_by_float_lvar 13@ /= 14@
$winning_streak += 1
if 
  5 > $winning_streak
goto_if_false @BLACKJ_17333
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_17326
if 
  13@ > 0.8
goto_if_false @BLACKJ_17158
10@ = generate_random_int_in_range 0 {max} 4
goto @BLACKJ_17167

:BLACKJ_17158
10@ = generate_random_int_in_range 0 {max} 3

:BLACKJ_17167
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17326 {caseNum1} 0 {caseLabel1} @BLACKJ_17230 {caseNum2} 1 {caseLabel2} @BLACKJ_17251 {caseNum3} 2 {caseLabel3} @BLACKJ_17272 {caseNum4} 3 {caseLabel4} @BLACKJ_17293 {caseNum5} -1 {caseLabel5} @BLACKJ_17326 {caseNum6} -1 {caseLabel6} @BLACKJ_17326 {caseNum7} -1 {caseLabel7} @BLACKJ_17326

:BLACKJ_17230
set_char_say_script 1@ {_p2} 5847 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17326

:BLACKJ_17251
set_char_say_script 1@ {_p2} 5848 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17326

:BLACKJ_17272
set_char_say_script 1@ {_p2} 5849 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17326

:BLACKJ_17293
if 
  is_player_playing $player1
goto_if_false @BLACKJ_17319
10@ = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoWin

:BLACKJ_17319
goto @BLACKJ_17326

:BLACKJ_17326
goto @BLACKJ_17491

:BLACKJ_17333
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_17484
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17484 {caseNum1} 0 {caseLabel1} @BLACKJ_17421 {caseNum2} 1 {caseLabel2} @BLACKJ_17442 {caseNum3} 2 {caseLabel3} @BLACKJ_17463 {caseNum4} -1 {caseLabel4} @BLACKJ_17484 {caseNum5} -1 {caseLabel5} @BLACKJ_17484 {caseNum6} -1 {caseLabel6} @BLACKJ_17484 {caseNum7} -1 {caseLabel7} @BLACKJ_17484

:BLACKJ_17421
set_char_say_script 1@ {_p2} 5854 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17484

:BLACKJ_17442
set_char_say_script 1@ {_p2} 5855 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17484

:BLACKJ_17463
set_char_say_script 1@ {_p2} 5856 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17484

:BLACKJ_17484
$winning_streak = 0

:BLACKJ_17491
goto @BLACKJ_17920

:BLACKJ_17498
10@ *= -1
register_int_stat StatId.BiggestGamblingLoss {value} 10@
10@ *= -1
$winning_streak = 0
cset_lvar_float_to_lvar_int 13@ =# 10@
13@ *= -1.0
cset_lvar_float_to_lvar_int 14@ =# 29@
div_float_lvar_by_float_lvar 13@ /= 14@
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_17920
if 
  0 > 10@
goto_if_false @BLACKJ_17806
if 
  13@ > 0.8
goto_if_false @BLACKJ_17631
10@ = generate_random_int_in_range 0 {max} 4
goto @BLACKJ_17640

:BLACKJ_17631
10@ = generate_random_int_in_range 0 {max} 3

:BLACKJ_17640
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17799 {caseNum1} 0 {caseLabel1} @BLACKJ_17703 {caseNum2} 1 {caseLabel2} @BLACKJ_17724 {caseNum3} 2 {caseLabel3} @BLACKJ_17745 {caseNum4} 3 {caseLabel4} @BLACKJ_17766 {caseNum5} -1 {caseLabel5} @BLACKJ_17799 {caseNum6} -1 {caseLabel6} @BLACKJ_17799 {caseNum7} -1 {caseLabel7} @BLACKJ_17799

:BLACKJ_17703
set_char_say_script 1@ {_p2} 5817 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17799

:BLACKJ_17724
set_char_say_script 1@ {_p2} 5818 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17799

:BLACKJ_17745
set_char_say_script 1@ {_p2} 5819 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17799

:BLACKJ_17766
if 
  is_player_playing $player1
goto_if_false @BLACKJ_17792
10@ = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoLose

:BLACKJ_17792
goto @BLACKJ_17799

:BLACKJ_17799
goto @BLACKJ_17920

:BLACKJ_17806
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_17920 {caseNum1} 0 {caseLabel1} @BLACKJ_17878 {caseNum2} 1 {caseLabel2} @BLACKJ_17899 {caseNum3} -1 {caseLabel3} @BLACKJ_17920 {caseNum4} -1 {caseLabel4} @BLACKJ_17920 {caseNum5} -1 {caseLabel5} @BLACKJ_17920 {caseNum6} -1 {caseLabel6} @BLACKJ_17920 {caseNum7} -1 {caseLabel7} @BLACKJ_17920

:BLACKJ_17878
set_char_say_script 1@ {_p2} 5815 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17920

:BLACKJ_17899
set_char_say_script 1@ {_p2} 5816 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_17920

:BLACKJ_17920
show_update_stats True
$bj_initial_stake = 0
gosub @BLACKJ_23204
3@ += 1

:BLACKJ_17945
if 
  3@ == 1
goto_if_false @BLACKJ_18076
if 
  TIMERA > 3000
goto_if_false @BLACKJ_17996
3@ += 1
goto @BLACKJ_18076

:BLACKJ_17996
if 
  23@ == 0
goto_if_false @BLACKJ_18052
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_18045
23@ = 1
3@ += 1

:BLACKJ_18045
goto @BLACKJ_18076

:BLACKJ_18052
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_18076
23@ = 0

:BLACKJ_18076
if 
  3@ == 2
goto_if_false @BLACKJ_18108
TIMERA = 0
3@ += 1

:BLACKJ_18108
if 
  3@ == 3
goto_if_false @BLACKJ_18248
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BLACKJ_18164
23@ = 1
3@ = 99
goto @BLACKJ_18248

:BLACKJ_18164
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_18248
if 
  not is_help_message_being_displayed 
goto_if_false @BLACKJ_18248
set_help_message_box_size 128
print_help_forever 'BJ_H4'

:BLACKJ_18248
if 
  3@ == 99
goto_if_false @BLACKJ_18287
gosub @BLACKJ_10563
2@ = 1
3@ = 0

:BLACKJ_18287
gosub @BLACKJ_29865
gosub @BLACKJ_25143
return 

:BLACKJ_18303
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_18454
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BLACKJ_18454 {caseNum1} 0 {caseLabel1} @BLACKJ_18391 {caseNum2} 1 {caseLabel2} @BLACKJ_18412 {caseNum3} 2 {caseLabel3} @BLACKJ_18433 {caseNum4} -1 {caseLabel4} @BLACKJ_18454 {caseNum5} -1 {caseLabel5} @BLACKJ_18454 {caseNum6} -1 {caseLabel6} @BLACKJ_18454 {caseNum7} -1 {caseLabel7} @BLACKJ_18454

:BLACKJ_18391
set_char_say_script 1@ {_p2} 5823 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_18454

:BLACKJ_18412
set_char_say_script 1@ {_p2} 5824 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_18454

:BLACKJ_18433
set_char_say_script 1@ {_p2} 5825 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_18454

:BLACKJ_18454
return 

:BLACKJ_18456
gosub @BLACKJ_31220
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_21799
if 
  $player_has_split == 0
goto_if_false @BLACKJ_19594
if 
  $player_total1_b == 0
goto_if_false @BLACKJ_19170
switch_start $player_total1 {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_19086 {caseNum1} 4 {caseLabel1} @BLACKJ_18708 {caseNum2} 5 {caseLabel2} @BLACKJ_18729 {caseNum3} 6 {caseLabel3} @BLACKJ_18750 {caseNum4} 7 {caseLabel4} @BLACKJ_18771 {caseNum5} 8 {caseLabel5} @BLACKJ_18792 {caseNum6} 9 {caseLabel6} @BLACKJ_18813 {caseNum7} 10 {caseLabel7} @BLACKJ_18834
switch_continued 11 {caseLabel1} @BLACKJ_18855 {caseNum2} 12 {caseLabel2} @BLACKJ_18876 {caseNum3} 13 {caseLabel3} @BLACKJ_18897 {caseNum4} 14 {caseLabel4} @BLACKJ_18918 {caseNum5} 15 {caseLabel5} @BLACKJ_18939 {caseNum6} 16 {caseLabel6} @BLACKJ_18960 {caseNum7} 17 {caseLabel7} @BLACKJ_18981 {caseNum8} 18 {caseLabel8} @BLACKJ_19002 {caseNum9} 19 {caseLabel9} @BLACKJ_19023
switch_continued 20 {caseLabel1} @BLACKJ_19044 {caseNum2} 21 {caseLabel2} @BLACKJ_19065 {caseNum3} -1 {caseLabel3} @BLACKJ_19155 {caseNum4} -1 {caseLabel4} @BLACKJ_19155 {caseNum5} -1 {caseLabel5} @BLACKJ_19155 {caseNum6} -1 {caseLabel6} @BLACKJ_19155 {caseNum7} -1 {caseLabel7} @BLACKJ_19155 {caseNum8} -1 {caseLabel8} @BLACKJ_19155 {caseNum9} -1 {caseLabel9} @BLACKJ_19155

:BLACKJ_18708
set_char_say_script 1@ {_p2} 5841 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18729
set_char_say_script 1@ {_p2} 5842 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18750
set_char_say_script 1@ {_p2} 5843 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18771
set_char_say_script 1@ {_p2} 5844 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18792
set_char_say_script 1@ {_p2} 5845 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18813
set_char_say_script 1@ {_p2} 5846 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18834
set_char_say_script 1@ {_p2} 5829 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18855
set_char_say_script 1@ {_p2} 5830 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18876
set_char_say_script 1@ {_p2} 5831 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18897
set_char_say_script 1@ {_p2} 5832 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18918
set_char_say_script 1@ {_p2} 5833 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18939
set_char_say_script 1@ {_p2} 5834 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18960
set_char_say_script 1@ {_p2} 5835 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_18981
set_char_say_script 1@ {_p2} 5836 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_19002
set_char_say_script 1@ {_p2} 5837 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_19023
set_char_say_script 1@ {_p2} 5838 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_19044
set_char_say_script 1@ {_p2} 5839 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_19065
set_char_say_script 1@ {_p2} 5840 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19155

:BLACKJ_19086
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_19134
set_char_say_script 1@ {_p2} 5813 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19148

:BLACKJ_19134
set_char_say_script 1@ {_p2} 5814 {_p3} True {_p4} True {_p5} False

:BLACKJ_19148
goto @BLACKJ_19155

:BLACKJ_19155
start_char_facial_talk 1@ {duration} 1500
goto @BLACKJ_19587

:BLACKJ_19170
switch_start $player_total1 {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_19510 {caseNum1} 12 {caseLabel1} @BLACKJ_19298 {caseNum2} 13 {caseLabel2} @BLACKJ_19319 {caseNum3} 14 {caseLabel3} @BLACKJ_19340 {caseNum4} 15 {caseLabel4} @BLACKJ_19361 {caseNum5} 16 {caseLabel5} @BLACKJ_19382 {caseNum6} 17 {caseLabel6} @BLACKJ_19403 {caseNum7} 18 {caseLabel7} @BLACKJ_19424
switch_continued 19 {caseLabel1} @BLACKJ_19445 {caseNum2} 20 {caseLabel2} @BLACKJ_19466 {caseNum3} 21 {caseLabel3} @BLACKJ_19487 {caseNum4} -1 {caseLabel4} @BLACKJ_19579 {caseNum5} -1 {caseLabel5} @BLACKJ_19579 {caseNum6} -1 {caseLabel6} @BLACKJ_19579 {caseNum7} -1 {caseLabel7} @BLACKJ_19579 {caseNum8} -1 {caseLabel8} @BLACKJ_19579 {caseNum9} -1 {caseLabel9} @BLACKJ_19579

:BLACKJ_19298
set_char_say_script 1@ {_p2} 5801 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19319
set_char_say_script 1@ {_p2} 5802 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19340
set_char_say_script 1@ {_p2} 5803 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19361
set_char_say_script 1@ {_p2} 5804 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19382
set_char_say_script 1@ {_p2} 5805 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19403
set_char_say_script 1@ {_p2} 5806 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19424
set_char_say_script 1@ {_p2} 5807 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19445
set_char_say_script 1@ {_p2} 5808 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19466
set_char_say_script 1@ {_p2} 5800 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19487
set_char_say_script 1@ {_p2} 65535 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19579

:BLACKJ_19510
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_19558
set_char_say_script 1@ {_p2} 5813 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_19572

:BLACKJ_19558
set_char_say_script 1@ {_p2} 5814 {_p3} True {_p4} True {_p5} False

:BLACKJ_19572
goto @BLACKJ_19579

:BLACKJ_19579
start_char_facial_talk 1@ {duration} 3000

:BLACKJ_19587
goto @BLACKJ_21799

:BLACKJ_19594
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_20709
if 
  $player_total1_b == 0
goto_if_false @BLACKJ_20285
switch_start $player_total1 {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_20201 {caseNum1} 4 {caseLabel1} @BLACKJ_19823 {caseNum2} 5 {caseLabel2} @BLACKJ_19844 {caseNum3} 6 {caseLabel3} @BLACKJ_19865 {caseNum4} 7 {caseLabel4} @BLACKJ_19886 {caseNum5} 8 {caseLabel5} @BLACKJ_19907 {caseNum6} 9 {caseLabel6} @BLACKJ_19928 {caseNum7} 10 {caseLabel7} @BLACKJ_19949
switch_continued 11 {caseLabel1} @BLACKJ_19970 {caseNum2} 12 {caseLabel2} @BLACKJ_19991 {caseNum3} 13 {caseLabel3} @BLACKJ_20012 {caseNum4} 14 {caseLabel4} @BLACKJ_20033 {caseNum5} 15 {caseLabel5} @BLACKJ_20054 {caseNum6} 16 {caseLabel6} @BLACKJ_20075 {caseNum7} 17 {caseLabel7} @BLACKJ_20096 {caseNum8} 18 {caseLabel8} @BLACKJ_20117 {caseNum9} 19 {caseLabel9} @BLACKJ_20138
switch_continued 20 {caseLabel1} @BLACKJ_20159 {caseNum2} 21 {caseLabel2} @BLACKJ_20180 {caseNum3} -1 {caseLabel3} @BLACKJ_20270 {caseNum4} -1 {caseLabel4} @BLACKJ_20270 {caseNum5} -1 {caseLabel5} @BLACKJ_20270 {caseNum6} -1 {caseLabel6} @BLACKJ_20270 {caseNum7} -1 {caseLabel7} @BLACKJ_20270 {caseNum8} -1 {caseLabel8} @BLACKJ_20270 {caseNum9} -1 {caseLabel9} @BLACKJ_20270

:BLACKJ_19823
set_char_say_script 1@ {_p2} 5841 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19844
set_char_say_script 1@ {_p2} 5842 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19865
set_char_say_script 1@ {_p2} 5843 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19886
set_char_say_script 1@ {_p2} 5844 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19907
set_char_say_script 1@ {_p2} 5845 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19928
set_char_say_script 1@ {_p2} 5846 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19949
set_char_say_script 1@ {_p2} 5829 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19970
set_char_say_script 1@ {_p2} 5830 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_19991
set_char_say_script 1@ {_p2} 5831 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20012
set_char_say_script 1@ {_p2} 5832 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20033
set_char_say_script 1@ {_p2} 5833 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20054
set_char_say_script 1@ {_p2} 5834 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20075
set_char_say_script 1@ {_p2} 5835 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20096
set_char_say_script 1@ {_p2} 5836 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20117
set_char_say_script 1@ {_p2} 5837 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20138
set_char_say_script 1@ {_p2} 5838 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20159
set_char_say_script 1@ {_p2} 5839 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20180
set_char_say_script 1@ {_p2} 5840 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20270

:BLACKJ_20201
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_20249
set_char_say_script 1@ {_p2} 5813 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20263

:BLACKJ_20249
set_char_say_script 1@ {_p2} 5814 {_p3} True {_p4} True {_p5} False

:BLACKJ_20263
goto @BLACKJ_20270

:BLACKJ_20270
start_char_facial_talk 1@ {duration} 1500
goto @BLACKJ_20702

:BLACKJ_20285
switch_start $player_total1 {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_20625 {caseNum1} 12 {caseLabel1} @BLACKJ_20413 {caseNum2} 13 {caseLabel2} @BLACKJ_20434 {caseNum3} 14 {caseLabel3} @BLACKJ_20455 {caseNum4} 15 {caseLabel4} @BLACKJ_20476 {caseNum5} 16 {caseLabel5} @BLACKJ_20497 {caseNum6} 17 {caseLabel6} @BLACKJ_20518 {caseNum7} 18 {caseLabel7} @BLACKJ_20539
switch_continued 19 {caseLabel1} @BLACKJ_20560 {caseNum2} 20 {caseLabel2} @BLACKJ_20581 {caseNum3} 21 {caseLabel3} @BLACKJ_20602 {caseNum4} -1 {caseLabel4} @BLACKJ_20694 {caseNum5} -1 {caseLabel5} @BLACKJ_20694 {caseNum6} -1 {caseLabel6} @BLACKJ_20694 {caseNum7} -1 {caseLabel7} @BLACKJ_20694 {caseNum8} -1 {caseLabel8} @BLACKJ_20694 {caseNum9} -1 {caseLabel9} @BLACKJ_20694

:BLACKJ_20413
set_char_say_script 1@ {_p2} 5801 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20434
set_char_say_script 1@ {_p2} 5802 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20455
set_char_say_script 1@ {_p2} 5803 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20476
set_char_say_script 1@ {_p2} 5804 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20497
set_char_say_script 1@ {_p2} 5805 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20518
set_char_say_script 1@ {_p2} 5806 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20539
set_char_say_script 1@ {_p2} 5807 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20560
set_char_say_script 1@ {_p2} 5808 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20581
set_char_say_script 1@ {_p2} 5800 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20602
set_char_say_script 1@ {_p2} 65535 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20694

:BLACKJ_20625
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_20673
set_char_say_script 1@ {_p2} 5813 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_20687

:BLACKJ_20673
set_char_say_script 1@ {_p2} 5814 {_p3} True {_p4} True {_p5} False

:BLACKJ_20687
goto @BLACKJ_20694

:BLACKJ_20694
start_char_facial_talk 1@ {duration} 3000

:BLACKJ_20702
goto @BLACKJ_21799

:BLACKJ_20709
if 
  $player_total2_b == 0
goto_if_false @BLACKJ_21382
switch_start $player_total2 {numCases} 18 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_21298 {caseNum1} 4 {caseLabel1} @BLACKJ_20920 {caseNum2} 5 {caseLabel2} @BLACKJ_20941 {caseNum3} 6 {caseLabel3} @BLACKJ_20962 {caseNum4} 7 {caseLabel4} @BLACKJ_20983 {caseNum5} 8 {caseLabel5} @BLACKJ_21004 {caseNum6} 9 {caseLabel6} @BLACKJ_21025 {caseNum7} 10 {caseLabel7} @BLACKJ_21046
switch_continued 11 {caseLabel1} @BLACKJ_21067 {caseNum2} 12 {caseLabel2} @BLACKJ_21088 {caseNum3} 13 {caseLabel3} @BLACKJ_21109 {caseNum4} 14 {caseLabel4} @BLACKJ_21130 {caseNum5} 15 {caseLabel5} @BLACKJ_21151 {caseNum6} 16 {caseLabel6} @BLACKJ_21172 {caseNum7} 17 {caseLabel7} @BLACKJ_21193 {caseNum8} 18 {caseLabel8} @BLACKJ_21214 {caseNum9} 19 {caseLabel9} @BLACKJ_21235
switch_continued 20 {caseLabel1} @BLACKJ_21256 {caseNum2} 21 {caseLabel2} @BLACKJ_21277 {caseNum3} -1 {caseLabel3} @BLACKJ_21367 {caseNum4} -1 {caseLabel4} @BLACKJ_21367 {caseNum5} -1 {caseLabel5} @BLACKJ_21367 {caseNum6} -1 {caseLabel6} @BLACKJ_21367 {caseNum7} -1 {caseLabel7} @BLACKJ_21367 {caseNum8} -1 {caseLabel8} @BLACKJ_21367 {caseNum9} -1 {caseLabel9} @BLACKJ_21367

:BLACKJ_20920
set_char_say_script 1@ {_p2} 5841 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_20941
set_char_say_script 1@ {_p2} 5842 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_20962
set_char_say_script 1@ {_p2} 5843 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_20983
set_char_say_script 1@ {_p2} 5844 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21004
set_char_say_script 1@ {_p2} 5845 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21025
set_char_say_script 1@ {_p2} 5846 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21046
set_char_say_script 1@ {_p2} 5829 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21067
set_char_say_script 1@ {_p2} 5830 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21088
set_char_say_script 1@ {_p2} 5831 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21109
set_char_say_script 1@ {_p2} 5832 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21130
set_char_say_script 1@ {_p2} 5833 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21151
set_char_say_script 1@ {_p2} 5834 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21172
set_char_say_script 1@ {_p2} 5835 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21193
set_char_say_script 1@ {_p2} 5836 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21214
set_char_say_script 1@ {_p2} 5837 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21235
set_char_say_script 1@ {_p2} 5838 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21256
set_char_say_script 1@ {_p2} 5839 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21277
set_char_say_script 1@ {_p2} 5840 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21367

:BLACKJ_21298
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_21346
set_char_say_script 1@ {_p2} 5813 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21360

:BLACKJ_21346
set_char_say_script 1@ {_p2} 5814 {_p3} True {_p4} True {_p5} False

:BLACKJ_21360
goto @BLACKJ_21367

:BLACKJ_21367
start_char_facial_talk 1@ {duration} 1500
goto @BLACKJ_21799

:BLACKJ_21382
switch_start $player_total2 {numCases} 10 {hasDefaultCase} 1 {defaultLabel} @BLACKJ_21722 {caseNum1} 12 {caseLabel1} @BLACKJ_21510 {caseNum2} 13 {caseLabel2} @BLACKJ_21531 {caseNum3} 14 {caseLabel3} @BLACKJ_21552 {caseNum4} 15 {caseLabel4} @BLACKJ_21573 {caseNum5} 16 {caseLabel5} @BLACKJ_21594 {caseNum6} 17 {caseLabel6} @BLACKJ_21615 {caseNum7} 18 {caseLabel7} @BLACKJ_21636
switch_continued 19 {caseLabel1} @BLACKJ_21657 {caseNum2} 20 {caseLabel2} @BLACKJ_21678 {caseNum3} 21 {caseLabel3} @BLACKJ_21699 {caseNum4} -1 {caseLabel4} @BLACKJ_21791 {caseNum5} -1 {caseLabel5} @BLACKJ_21791 {caseNum6} -1 {caseLabel6} @BLACKJ_21791 {caseNum7} -1 {caseLabel7} @BLACKJ_21791 {caseNum8} -1 {caseLabel8} @BLACKJ_21791 {caseNum9} -1 {caseLabel9} @BLACKJ_21791

:BLACKJ_21510
set_char_say_script 1@ {_p2} 5801 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21531
set_char_say_script 1@ {_p2} 5802 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21552
set_char_say_script 1@ {_p2} 5803 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21573
set_char_say_script 1@ {_p2} 5804 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21594
set_char_say_script 1@ {_p2} 5805 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21615
set_char_say_script 1@ {_p2} 5806 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21636
set_char_say_script 1@ {_p2} 5807 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21657
set_char_say_script 1@ {_p2} 5808 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21678
set_char_say_script 1@ {_p2} 5800 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21699
set_char_say_script 1@ {_p2} 65535 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21791

:BLACKJ_21722
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @BLACKJ_21770
set_char_say_script 1@ {_p2} 5813 {_p3} True {_p4} True {_p5} False
goto @BLACKJ_21784

:BLACKJ_21770
set_char_say_script 1@ {_p2} 5814 {_p3} True {_p4} True {_p5} False

:BLACKJ_21784
goto @BLACKJ_21791

:BLACKJ_21791
start_char_facial_talk 1@ {duration} 3000

:BLACKJ_21799
return 
if 
is_ps2_keyboard_key_just_pressed 67
goto_if_false @BLACKJ_21866
$bj_chip_num += 1
if 
  $bj_chip_num > 7
goto_if_false @BLACKJ_21848
$bj_chip_num = 0

:BLACKJ_21848
write_debug_with_int "BJ_CHIP_NUM" {number} $bj_chip_num

:BLACKJ_21866
if 
  does_object_exist 0@
goto_if_false @BLACKJ_22185
if 
  does_object_exist $bj_chip_set($bj_chip_num,8i)
goto_if_false @BLACKJ_22185
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} $bj_chip_off_x($bj_chip_num,8f) {yOffset} $bj_chip_off_y($bj_chip_num,8f) {zOffset} $bj_chip_off_z($bj_chip_num,8f)
set_object_coordinates $bj_chip_set($bj_chip_num,8i) {x} $x {y} $y {z} $z
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_21985
$bj_chip_off_z($bj_chip_num,8f) += 0.005

:BLACKJ_21985
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_22015
$bj_chip_off_z($bj_chip_num,8f) += -0.005

:BLACKJ_22015
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @BLACKJ_22045
$bj_chip_off_x($bj_chip_num,8f) += 0.005

:BLACKJ_22045
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @BLACKJ_22075
$bj_chip_off_x($bj_chip_num,8f) += -0.005

:BLACKJ_22075
if 
is_ps2_keyboard_key_just_pressed 139
goto_if_false @BLACKJ_22105
$bj_chip_off_y($bj_chip_num,8f) += 0.005

:BLACKJ_22105
if 
is_ps2_keyboard_key_just_pressed 145
goto_if_false @BLACKJ_22135
$bj_chip_off_y($bj_chip_num,8f) += -0.005

:BLACKJ_22135
if 
is_ps2_keyboard_key_just_pressed 69
goto_if_false @BLACKJ_22160
$bj_chip_set_default_z += 0.005

:BLACKJ_22160
if 
is_ps2_keyboard_key_just_pressed 68
goto_if_false @BLACKJ_22185
$bj_chip_set_default_z += -0.005

:BLACKJ_22185
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @BLACKJ_23202
save_newline_to_debug_file 
save_string_to_debug_file "// ------ BJ CHIP OFFSETS -------"
save_newline_to_debug_file 
10@ = 0

:BLACKJ_22342
if 
  8 > 10@
goto_if_false @BLACKJ_23202
save_string_to_debug_file "BJ_CHIP_OFF_X["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $bj_chip_off_x(10@,8f)
save_newline_to_debug_file 
save_string_to_debug_file "BJ_CHIP_OFF_Y["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $bj_chip_off_y(10@,8f)
save_newline_to_debug_file 
save_string_to_debug_file "BJ_CHIP_OFF_Z["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $bj_chip_off_z(10@,8f)
save_newline_to_debug_file 
10@ += 1
goto @BLACKJ_22342

:BLACKJ_23202
return 

:BLACKJ_23204
set_lvar_int_to_var_int 12@ = $bj_initial_stake
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 1.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23261
13@ = 10.0

:BLACKJ_23261
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23315
14@ += 0.0

:BLACKJ_23315
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -1
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[0]
goto_if_false @BLACKJ_23417
$x, $y, $z = get_object_coordinates $bj_chip_set[0]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[0] {x} $x {y} $y {z} $z

:BLACKJ_23417
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 5.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23466
13@ = 10.0

:BLACKJ_23466
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23520
14@ += 0.0

:BLACKJ_23520
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -5
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[1]
goto_if_false @BLACKJ_23622
$x, $y, $z = get_object_coordinates $bj_chip_set[1]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[1] {x} $x {y} $y {z} $z

:BLACKJ_23622
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 10.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23671
13@ = 10.0

:BLACKJ_23671
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23725
14@ += 0.0

:BLACKJ_23725
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -10
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[2]
goto_if_false @BLACKJ_23827
$x, $y, $z = get_object_coordinates $bj_chip_set[2]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[2] {x} $x {y} $y {z} $z

:BLACKJ_23827
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 50.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_23876
13@ = 10.0

:BLACKJ_23876
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_23930
14@ += 0.0

:BLACKJ_23930
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -50
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[3]
goto_if_false @BLACKJ_24032
$x, $y, $z = get_object_coordinates $bj_chip_set[3]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[3] {x} $x {y} $y {z} $z

:BLACKJ_24032
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 100.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24081
13@ = 10.0

:BLACKJ_24081
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24135
14@ += 0.0

:BLACKJ_24135
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -100
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[4]
goto_if_false @BLACKJ_24237
$x, $y, $z = get_object_coordinates $bj_chip_set[4]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[4] {x} $x {y} $y {z} $z

:BLACKJ_24237
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 200.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24286
13@ = 10.0

:BLACKJ_24286
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24340
14@ += 0.0

:BLACKJ_24340
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -200
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[5]
goto_if_false @BLACKJ_24443
$x, $y, $z = get_object_coordinates $bj_chip_set[5]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[5] {x} $x {y} $y {z} $z

:BLACKJ_24443
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 500.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24492
13@ = 10.0

:BLACKJ_24492
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24546
14@ += 0.0

:BLACKJ_24546
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -500
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[6]
goto_if_false @BLACKJ_24649
$x, $y, $z = get_object_coordinates $bj_chip_set[6]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[6] {x} $x {y} $y {z} $z

:BLACKJ_24649
cset_lvar_float_to_lvar_int 13@ =# 12@
13@ /= 1000.0
if 
  13@ > 10.0
goto_if_false @BLACKJ_24698
13@ = 10.0

:BLACKJ_24698
cset_lvar_int_to_lvar_float 11@ =# 13@
cset_lvar_float_to_lvar_int 14@ =# 11@
14@ *= 0.0126
if 
  11@ > 0
goto_if_false @BLACKJ_24752
14@ += 0.0

:BLACKJ_24752
set_lvar_float_to_var_float 13@ = $bj_chip_set_default_z
add_float_lvar_to_float_lvar 13@ += 14@
11@ *= -1000
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $bj_chip_set[7]
goto_if_false @BLACKJ_24855
$x, $y, $z = get_object_coordinates $bj_chip_set[7]
13@, 13@, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 13@
set_object_coordinates $bj_chip_set[7] {x} $x {y} $y {z} $z

:BLACKJ_24855
return 

:BLACKJ_24857
set_sprites_draw_before_fade False
draw_window $screen_pos_x[0] {leftTopY} $screen_pos_y[0] {rightBottomX} $screen_pos_x[1] {rightBottomY} $screen_pos_y[1] {header} 'BJ_TITL' {zIndex} 2
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $screen_pos_x[2] {offsetTop} $screen_pos_y[2] {key} 'BJ_01'
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $screen_pos_x[3] {offsetTop} $screen_pos_y[3] {key} 'DOLLAR' {num} $bj_initial_stake
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $screen_pos_x[4] {offsetTop} $screen_pos_y[4] {key} 'BJ_02'
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $screen_pos_x[5] {offsetTop} $screen_pos_y[5] {key} 'DOLLAR' {num} 30@
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $screen_pos_x[6] {offsetTop} $screen_pos_y[6] {key} 'BJ_03'
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $screen_pos_x[7] {offsetTop} $screen_pos_y[7] {key} 'DOLLAR' {num} 29@
return 

:BLACKJ_25143
set_sprites_draw_before_fade False
draw_window $screen_pos_x[8] {leftTopY} $screen_pos_y[8] {rightBottomX} $screen_pos_x[9] {rightBottomY} $screen_pos_y[9] {header} 'BJ_TITL' {zIndex} 2
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $screen_pos_x[10] {offsetTop} $screen_pos_y[10] {key} 'BJ_01'
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number $screen_pos_x[11] {offsetTop} $screen_pos_y[11] {key} 'DOLLAR' {num} $bj_initial_stake
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $screen_pos_x[12] {offsetTop} $screen_pos_y[12] {key} 'BJ_04'
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  2@ > 4
goto_if_false @BLACKJ_25457
if 
  $dealer_total2 == 0
goto_if_false @BLACKJ_25427
if 
  $dealer_total > 21
goto_if_false @BLACKJ_25400
display_text $screen_pos_x[13] {offsetTop} $screen_pos_y[13] {key} 'BJ_BUST'
goto @BLACKJ_25420

:BLACKJ_25400
display_text_with_number $screen_pos_x[13] {offsetTop} $screen_pos_y[13] {key} 'BJ_0' {num} $dealer_total

:BLACKJ_25420
goto @BLACKJ_25450

:BLACKJ_25427
display_text_with_2_numbers $screen_pos_x[14] {offsetTop} $screen_pos_y[14] {key} 'BJ_OR2' {num1} $dealer_total {num2} $dealer_total2

:BLACKJ_25450
goto @BLACKJ_25474

:BLACKJ_25457
display_text $screen_pos_x[13] {offsetTop} $screen_pos_y[13] {key} 'BJ_HIDE'

:BLACKJ_25474
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text $screen_pos_x[15] {offsetTop} $screen_pos_y[15] {key} 'BJ_05'
if 
  $player_total2 == 0
goto_if_false @BLACKJ_25674
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  $player_total1_b == 0
goto_if_false @BLACKJ_25644
if 
  $player_total1 > 21
goto_if_false @BLACKJ_25617
display_text $screen_pos_x[16] {offsetTop} $screen_pos_y[16] {key} 'BJ_BUST'
goto @BLACKJ_25637

:BLACKJ_25617
display_text_with_number $screen_pos_x[16] {offsetTop} $screen_pos_y[16] {key} 'BJ_0' {num} $player_total1

:BLACKJ_25637
goto @BLACKJ_25667

:BLACKJ_25644
display_text_with_2_numbers $screen_pos_x[17] {offsetTop} $screen_pos_y[17] {key} 'BJ_OR2' {num1} $player_total1 {num2} $player_total1_b

:BLACKJ_25667
goto @BLACKJ_25940

:BLACKJ_25674
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  $player_total1_b == 0
goto_if_false @BLACKJ_25784
if 
  $player_total1 > 21
goto_if_false @BLACKJ_25757
display_text $screen_pos_x[18] {offsetTop} $screen_pos_y[18] {key} 'BJ_BUST'
goto @BLACKJ_25777

:BLACKJ_25757
display_text_with_number $screen_pos_x[18] {offsetTop} $screen_pos_y[18] {key} 'BJ_0' {num} $player_total1

:BLACKJ_25777
goto @BLACKJ_25807

:BLACKJ_25784
display_text_with_2_numbers $screen_pos_x[19] {offsetTop} $screen_pos_y[19] {key} 'BJ_OR2' {num1} $player_total1 {num2} $player_total1_b

:BLACKJ_25807
gosub @BLACKJ_34042
set_sprites_draw_before_fade False
set_text_scale 0.6253 {heightScale} 2.7876
if 
  $player_total2_b == 0
goto_if_false @BLACKJ_25917
if 
  $player_total2 > 21
goto_if_false @BLACKJ_25890
display_text $screen_pos_x[20] {offsetTop} $screen_pos_y[20] {key} 'BJ_BUST'
goto @BLACKJ_25910

:BLACKJ_25890
display_text_with_number $screen_pos_x[20] {offsetTop} $screen_pos_y[20] {key} 'BJ_0' {num} $player_total2

:BLACKJ_25910
goto @BLACKJ_25940

:BLACKJ_25917
display_text_with_2_numbers $screen_pos_x[21] {offsetTop} $screen_pos_y[21] {key} 'BJ_OR2' {num1} $player_total2 {num2} $player_total2_b

:BLACKJ_25940
return 
if 
is_ps2_keyboard_key_just_pressed 76
goto_if_false @BLACKJ_26016
$screen_pos += 1
if 
  $screen_pos > 26
goto_if_false @BLACKJ_25989
$screen_pos = -1

:BLACKJ_25989
write_debug_with_int "SCREEN_POSITION_EDIT" {number} $screen_pos

:BLACKJ_26016
if 
  $screen_pos > -1
goto_if_false @BLACKJ_26154
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @BLACKJ_26064
$screen_pos_x($screen_pos,27f) += 1.0

:BLACKJ_26064
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @BLACKJ_26094
$screen_pos_x($screen_pos,27f) += -1.0

:BLACKJ_26094
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_26124
$screen_pos_y($screen_pos,27f) += -1.0

:BLACKJ_26124
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_26154
$screen_pos_y($screen_pos,27f) += 1.0

:BLACKJ_26154
if 
  $screen_pos > -1
goto_if_false @BLACKJ_26913
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @BLACKJ_26913
save_newline_to_debug_file 
save_string_to_debug_file "------ SCREEN COORDS ------"
10@ = 0

:BLACKJ_26327
if 
  27 > 10@
goto_if_false @BLACKJ_26911
save_newline_to_debug_file 
save_string_to_debug_file "SCREEN_POS_X["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $screen_pos_x(10@,27f)
save_newline_to_debug_file 
save_string_to_debug_file "SCREEN_POS_Y["
save_int_to_debug_file 10@
save_string_to_debug_file "] = "
save_float_to_debug_file $screen_pos_y(10@,27f)
10@ += 1
goto @BLACKJ_26327

:BLACKJ_26911
save_newline_to_debug_file 

:BLACKJ_26913
return 
if 
is_ps2_keyboard_key_just_pressed 66
goto_if_false @BLACKJ_27279
$bj_adjust_mode += 1
if 
  $bj_adjust_mode > 7
goto_if_false @BLACKJ_26962
$bj_adjust_mode = 0

:BLACKJ_26962
if 
  $bj_adjust_mode == 1
goto_if_false @BLACKJ_26998
write_debug "EDIT_CARD_SIZE"

:BLACKJ_26998
if 
  $bj_adjust_mode == 2
goto_if_false @BLACKJ_27041
write_debug "EDIT_CARD_POSITIONS_X"

:BLACKJ_27041
if 
  $bj_adjust_mode == 3
goto_if_false @BLACKJ_27091
write_debug "EDIT_PLAYERS_CARD_POSITION_1"

:BLACKJ_27091
if 
  $bj_adjust_mode == 4
goto_if_false @BLACKJ_27142
write_debug "EDIT_PLAYERS_CARD_POSITION_1B"

:BLACKJ_27142
if 
  $bj_adjust_mode == 5
goto_if_false @BLACKJ_27192
write_debug "EDIT_PLAYERS_CARD_POSITION_2"

:BLACKJ_27192
if 
  $bj_adjust_mode == 6
goto_if_false @BLACKJ_27240
write_debug "EDIT_DEALERS_CARD_POSITION"

:BLACKJ_27240
if 
  $bj_adjust_mode == 7
goto_if_false @BLACKJ_27279
write_debug "EDIT_BORDER_WIDTH"

:BLACKJ_27279
if 
  $bj_adjust_mode == 1
goto_if_false @BLACKJ_27491
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_27330
$card_height += 1.0
gosub @BLACKJ_32389

:BLACKJ_27330
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_27394
$card_height += -1.0
if 
  1.0 > $card_height
goto_if_false @BLACKJ_27387
$card_height = 1.0

:BLACKJ_27387
gosub @BLACKJ_32389

:BLACKJ_27394
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @BLACKJ_27427
$card_width += 1.0
gosub @BLACKJ_32389

:BLACKJ_27427
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @BLACKJ_27491
$card_width += -1.0
if 
  1.0 > $card_width
goto_if_false @BLACKJ_27484
$card_width = 1.0

:BLACKJ_27484
gosub @BLACKJ_32389

:BLACKJ_27491
if 
  $bj_adjust_mode == 2
goto_if_false @BLACKJ_27615
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @BLACKJ_27562
$player_sprite1_x[0] += 1.0
$player_sprite1b_x[0] += 1.0
$player_sprite2_x[0] += 1.0
gosub @BLACKJ_32389

:BLACKJ_27562
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @BLACKJ_27615
$player_sprite1_x[0] += -1.0
$player_sprite1b_x[0] += -1.0
$player_sprite2_x[0] += -1.0
gosub @BLACKJ_32389

:BLACKJ_27615
if 
  $bj_adjust_mode == 3
goto_if_false @BLACKJ_27699
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_27666
$player_sprite1_y[0] += -1.0
gosub @BLACKJ_32389

:BLACKJ_27666
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_27699
$player_sprite1_y[0] += 1.0
gosub @BLACKJ_32389

:BLACKJ_27699
if 
  $bj_adjust_mode == 4
goto_if_false @BLACKJ_27783
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_27750
$player_sprite1b_y[0] += -1.0
gosub @BLACKJ_32389

:BLACKJ_27750
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_27783
$player_sprite1b_y[0] += 1.0
gosub @BLACKJ_32389

:BLACKJ_27783
if 
  $bj_adjust_mode == 5
goto_if_false @BLACKJ_27867
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_27834
$player_sprite2_y[0] += -1.0
gosub @BLACKJ_32389

:BLACKJ_27834
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_27867
$player_sprite2_y[0] += 1.0
gosub @BLACKJ_32389

:BLACKJ_27867
if 
  $bj_adjust_mode == 6
goto_if_false @BLACKJ_28017
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @BLACKJ_27918
$dealer_sprite_x[0] += 1.0
gosub @BLACKJ_32389

:BLACKJ_27918
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @BLACKJ_27951
$dealer_sprite_x[0] += -1.0
gosub @BLACKJ_32389

:BLACKJ_27951
if 
is_ps2_keyboard_key_just_pressed 131
goto_if_false @BLACKJ_27984
$dealer_sprite_y[0] += -1.0
gosub @BLACKJ_32389

:BLACKJ_27984
if 
is_ps2_keyboard_key_just_pressed 130
goto_if_false @BLACKJ_28017
$dealer_sprite_y[0] += 1.0
gosub @BLACKJ_32389

:BLACKJ_28017
if 
  $bj_adjust_mode == 7
goto_if_false @BLACKJ_28087
if 
is_ps2_keyboard_key_just_pressed 128
goto_if_false @BLACKJ_28061
$border_width += 1.0

:BLACKJ_28061
if 
is_ps2_keyboard_key_just_pressed 129
goto_if_false @BLACKJ_28087
$border_width += -1.0

:BLACKJ_28087
if 
  $bj_adjust_mode > 0
goto_if_false @BLACKJ_29762
if 
is_ps2_keyboard_key_just_pressed 137
goto_if_false @BLACKJ_29762
save_newline_to_debug_file 
save_string_to_debug_file "----- BLACKJACK SCREEN COORDS ------"
save_newline_to_debug_file 
save_string_to_debug_file "CARD_WIDTH = "
save_float_to_debug_file $card_width
save_newline_to_debug_file 
save_string_to_debug_file "CARD_HEIGHT = "
save_float_to_debug_file $card_height
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1_X[0] = "
save_float_to_debug_file $player_sprite1_x[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1_Y[0] = "
save_float_to_debug_file $player_sprite1_y[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1B_X[0] = "
save_float_to_debug_file $player_sprite1b_x[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE1B_Y[0] = "
save_float_to_debug_file $player_sprite1b_y[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE2_X[0] = "
save_float_to_debug_file $player_sprite2_x[0]
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_SPRITE2_Y[0] = "
save_float_to_debug_file $player_sprite2_y[0]
save_newline_to_debug_file 
save_string_to_debug_file "DEALER_SPRITE_X[0] = "
save_float_to_debug_file $dealer_sprite_x[0]
save_newline_to_debug_file 
save_string_to_debug_file "DEALER_SPRITE_Y[0] = "
save_float_to_debug_file $dealer_sprite_y[0]
save_newline_to_debug_file 
save_string_to_debug_file "BORDER_WIDTH = "
save_float_to_debug_file $border_width
save_newline_to_debug_file 

:BLACKJ_29762
return 

:BLACKJ_29764
if 
  $card_cheat_on == 0
goto_if_false @BLACKJ_29801
$next_card = 0
$next_card = fetch_next_card 
goto @BLACKJ_29809

:BLACKJ_29801
set_var_int_to_var_int $next_card = $card_cheat_value

:BLACKJ_29809
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_29863
task_play_anim 1@ {animationName} "DEALONE" {animationFile} "CASINO" {blendSpeed} 6.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 500

:BLACKJ_29863
return 

:BLACKJ_29865
if 
  not is_message_being_displayed 
goto_if_false @BLACKJ_31218
if 
  $player_has_split == 0
goto_if_false @BLACKJ_30100
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $x = $player_sprite1_x[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $border_width
set_lvar_float_to_var_float 13@ = $card_height
13@ /= 2.0
set_var_float_to_var_float $y = $player_sprite1_y[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $border_width
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $player_sprite1_x[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $border_width
set_lvar_float_to_var_float 13@ = $card_height
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $player_sprite1_y[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $border_width
set_sprites_draw_before_fade True
draw_window $x {leftTopY} $y {rightBottomX} 17@ {rightBottomY} 18@ {header} 'DUMMY' {zIndex} 0
goto @BLACKJ_30297

:BLACKJ_30100
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $x = $player_sprite1b_x[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $border_width
set_lvar_float_to_var_float 13@ = $card_height
13@ /= 2.0
set_var_float_to_var_float $y = $player_sprite1b_y[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $border_width
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $player_sprite2_x[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $border_width
set_lvar_float_to_var_float 13@ = $card_height
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $player_sprite2_y[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $border_width
set_sprites_draw_before_fade True
draw_window $x {leftTopY} $y {rightBottomX} 17@ {rightBottomY} 18@ {header} 'DUMMY' {zIndex} 0

:BLACKJ_30297
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_30549
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_var_float_to_var_float $x = $dealer_sprite_x[0]
sub_float_lvar_from_float_var $x -= 13@
sub_float_var_from_float_var $x -= $border_width
set_lvar_float_to_var_float 13@ = $card_height
13@ /= 2.0
set_var_float_to_var_float $y = $dealer_sprite_y[0]
sub_float_lvar_from_float_var $y -= 13@
sub_float_var_from_float_var $y -= $border_width
set_lvar_float_to_var_float 13@ = $card_width
13@ /= 2.0
set_lvar_float_to_var_float 17@ = $dealer_sprite_x[4]
add_float_lvar_to_float_lvar 17@ += 13@
add_float_var_to_float_lvar 17@ += $border_width
set_lvar_float_to_var_float 13@ = $card_height
13@ /= 2.0
set_lvar_float_to_var_float 18@ = $dealer_sprite_y[4]
add_float_lvar_to_float_lvar 18@ += 13@
add_float_var_to_float_lvar 18@ += $border_width
set_sprites_draw_before_fade True
draw_window $x {leftTopY} $y {rightBottomX} 17@ {rightBottomY} 18@ {header} 'DUMMY' {zIndex} 0

:BLACKJ_30549
$counter_disp = 0

:BLACKJ_30556
if 
  8 > $counter_disp
goto_if_false @BLACKJ_31218
if 
  $player_has_split == 0
goto_if_false @BLACKJ_30666
if 
  $players_cards1($counter_disp,8i) <> 0
goto_if_false @BLACKJ_30659
set_sprites_draw_before_fade True
draw_sprite $players_cards1($counter_disp,8i) {offsetLeft} $player_sprite1_x($counter_disp,8f) {offsetTop} $player_sprite1_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_30659
goto @BLACKJ_30800

:BLACKJ_30666
if 
  $players_cards1($counter_disp,8i) <> 0
goto_if_false @BLACKJ_30733
set_sprites_draw_before_fade True
draw_sprite $players_cards1($counter_disp,8i) {offsetLeft} $player_sprite1b_x($counter_disp,8f) {offsetTop} $player_sprite1b_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_30733
if 
  $players_cards2($counter_disp,8i) <> 0
goto_if_false @BLACKJ_30800
set_sprites_draw_before_fade True
draw_sprite $players_cards2($counter_disp,8i) {offsetLeft} $player_sprite2_x($counter_disp,8f) {offsetTop} $player_sprite2_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_30800
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_31199
if 
  $dealers_cards($counter_disp,8i) <> 0
goto_if_false @BLACKJ_31192
if 
  $counter_disp == 0
goto_if_false @BLACKJ_31147
if 
  $player_has_split == 0
goto_if_false @BLACKJ_31030
if 
  $player_has_stuck1 == 0
goto_if_false @BLACKJ_30978
set_sprites_draw_before_fade True
draw_sprite 53 {offsetLeft} $dealer_sprite_x($counter_disp,8f) {offsetTop} $dealer_sprite_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255
goto @BLACKJ_31023

:BLACKJ_30978
set_sprites_draw_before_fade True
draw_sprite $dealers_cards($counter_disp,8i) {offsetLeft} $dealer_sprite_x($counter_disp,8f) {offsetTop} $dealer_sprite_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_31023
goto @BLACKJ_31140

:BLACKJ_31030
if 
  $player_has_stuck2 == 0
goto_if_false @BLACKJ_31095
set_sprites_draw_before_fade True
draw_sprite 53 {offsetLeft} $dealer_sprite_x($counter_disp,8f) {offsetTop} $dealer_sprite_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255
goto @BLACKJ_31140

:BLACKJ_31095
set_sprites_draw_before_fade True
draw_sprite $dealers_cards($counter_disp,8i) {offsetLeft} $dealer_sprite_x($counter_disp,8f) {offsetTop} $dealer_sprite_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_31140
goto @BLACKJ_31192

:BLACKJ_31147
set_sprites_draw_before_fade True
draw_sprite $dealers_cards($counter_disp,8i) {offsetLeft} $dealer_sprite_x($counter_disp,8f) {offsetTop} $dealer_sprite_y($counter_disp,8f) {width} $card_width {height} $card_height {r} 128 {g} 128 {b} 128 {a} 255

:BLACKJ_31192
goto @BLACKJ_31204

:BLACKJ_31199
set_help_message_box_size 200

:BLACKJ_31204
$counter_disp += 1
goto @BLACKJ_30556

:BLACKJ_31218
return 

:BLACKJ_31220
$dealer_total = 0
$dealer_total2 = 0
$player_total1 = 0
$player_total1_b = 0
$player_total2 = 0
$player_total2_b = 0
$dealer_got_ace = 0
$player_got_ace1 = 0
$player_got_ace2 = 0
$ct_temp_int = 0

:BLACKJ_31290
if 
  8 > $ct_temp_int
goto_if_false @BLACKJ_31775
if 
  $dealers_cards($ct_temp_int,8i) <> 0
goto_if_false @BLACKJ_31459
set_var_int_to_var_int $ct_this_card_value = $dealers_cards($ct_temp_int,8i)
set_var_int_to_var_int $in_card_value = $ct_this_card_value
gosub @BLACKJ_32050
set_var_int_to_var_int $ct_this_card_value = $out_card_value
if 
  $ct_this_card_value == 1
goto_if_false @BLACKJ_31443
if 
  $dealer_got_ace == 0
goto_if_false @BLACKJ_31422
$dealer_total += 11
$dealer_got_ace = 1
goto @BLACKJ_31429

:BLACKJ_31422
$dealer_total += 1

:BLACKJ_31429
$dealer_total2 += 1
goto @BLACKJ_31459

:BLACKJ_31443
add_int_var_to_int_var $dealer_total += $ct_this_card_value
add_int_var_to_int_var $dealer_total2 += $ct_this_card_value

:BLACKJ_31459
if 
  $players_cards1($ct_temp_int,8i) <> 0
goto_if_false @BLACKJ_31610
set_var_int_to_var_int $ct_this_card_value = $players_cards1($ct_temp_int,8i)
set_var_int_to_var_int $in_card_value = $ct_this_card_value
gosub @BLACKJ_32050
set_var_int_to_var_int $ct_this_card_value = $out_card_value
if 
  $ct_this_card_value == 1
goto_if_false @BLACKJ_31594
if 
  $player_got_ace1 == 0
goto_if_false @BLACKJ_31573
$player_total1 += 11
$player_got_ace1 = 1
goto @BLACKJ_31580

:BLACKJ_31573
$player_total1 += 1

:BLACKJ_31580
$player_total1_b += 1
goto @BLACKJ_31610

:BLACKJ_31594
add_int_var_to_int_var $player_total1 += $ct_this_card_value
add_int_var_to_int_var $player_total1_b += $ct_this_card_value

:BLACKJ_31610
if 
  $players_cards2($ct_temp_int,8i) <> 0
goto_if_false @BLACKJ_31761
set_var_int_to_var_int $ct_this_card_value = $players_cards2($ct_temp_int,8i)
set_var_int_to_var_int $in_card_value = $ct_this_card_value
gosub @BLACKJ_32050
set_var_int_to_var_int $ct_this_card_value = $out_card_value
if 
  $ct_this_card_value == 1
goto_if_false @BLACKJ_31745
if 
  $player_got_ace2 == 0
goto_if_false @BLACKJ_31724
$player_total2 += 11
$player_got_ace2 = 1
goto @BLACKJ_31731

:BLACKJ_31724
$player_total2 += 1

:BLACKJ_31731
$player_total2_b += 1
goto @BLACKJ_31761

:BLACKJ_31745
add_int_var_to_int_var $player_total2 += $ct_this_card_value
add_int_var_to_int_var $player_total2_b += $ct_this_card_value

:BLACKJ_31761
$ct_temp_int += 1
goto @BLACKJ_31290

:BLACKJ_31775
if 
  is_int_var_greater_than_int_var $dealer_total > $dealer_total2
goto_if_false @BLACKJ_31859
if 
  $dealer_total > 21
goto_if_false @BLACKJ_31827
set_var_int_to_var_int $dealer_total = $dealer_total2
$dealer_total2 = 0

:BLACKJ_31827
if 
  $dealer_total == 21
goto_if_false @BLACKJ_31852
$dealer_total2 = 0

:BLACKJ_31852
goto @BLACKJ_31866

:BLACKJ_31859
$dealer_total2 = 0

:BLACKJ_31866
if 
  is_int_var_greater_than_int_var $player_total1 > $player_total1_b
goto_if_false @BLACKJ_31950
if 
  $player_total1 > 21
goto_if_false @BLACKJ_31918
set_var_int_to_var_int $player_total1 = $player_total1_b
$player_total1_b = 0

:BLACKJ_31918
if 
  $player_total1 == 21
goto_if_false @BLACKJ_31943
$player_total1_b = 0

:BLACKJ_31943
goto @BLACKJ_31957

:BLACKJ_31950
$player_total1_b = 0

:BLACKJ_31957
if 
  is_int_var_greater_than_int_var $player_total2 > $player_total2_b
goto_if_false @BLACKJ_32041
if 
  $player_total2 > 21
goto_if_false @BLACKJ_32009
set_var_int_to_var_int $player_total2 = $player_total2_b
$player_total2_b = 0

:BLACKJ_32009
if 
  $player_total2 == 21
goto_if_false @BLACKJ_32034
$player_total2_b = 0

:BLACKJ_32034
goto @BLACKJ_32048

:BLACKJ_32041
$player_total2_b = 0

:BLACKJ_32048
return 

:BLACKJ_32050
if 
  14 > $in_card_value
goto_if_false @BLACKJ_32076
set_var_int_to_var_int $out_card_value = $in_card_value

:BLACKJ_32076
if and
  27 > $in_card_value
  $in_card_value > 13
goto_if_false @BLACKJ_32116
set_var_int_to_var_int $out_card_value = $in_card_value
$out_card_value -= 13

:BLACKJ_32116
if and
  40 > $in_card_value
  $in_card_value > 26
goto_if_false @BLACKJ_32156
set_var_int_to_var_int $out_card_value = $in_card_value
$out_card_value -= 26

:BLACKJ_32156
if and
  53 > $in_card_value
  $in_card_value > 39
goto_if_false @BLACKJ_32196
set_var_int_to_var_int $out_card_value = $in_card_value
$out_card_value -= 39

:BLACKJ_32196
if 
  14 > $out_card_value
goto_if_false @BLACKJ_32239
if 
  $out_card_value > 10
goto_if_false @BLACKJ_32239
$out_card_value = 10

:BLACKJ_32239
return 

:BLACKJ_32241
if 
  14 > $in_card_value
goto_if_false @BLACKJ_32267
set_var_int_to_var_int $out_card_value = $in_card_value

:BLACKJ_32267
if and
  27 > $in_card_value
  $in_card_value > 13
goto_if_false @BLACKJ_32307
set_var_int_to_var_int $out_card_value = $in_card_value
$out_card_value -= 13

:BLACKJ_32307
if and
  40 > $in_card_value
  $in_card_value > 26
goto_if_false @BLACKJ_32347
set_var_int_to_var_int $out_card_value = $in_card_value
$out_card_value -= 26

:BLACKJ_32347
if and
  53 > $in_card_value
  $in_card_value > 39
goto_if_false @BLACKJ_32387
set_var_int_to_var_int $out_card_value = $in_card_value
$out_card_value -= 39

:BLACKJ_32387
return 

:BLACKJ_32389
set_var_float_to_var_float $player_sprite2_x[0] = $player_sprite1_x[0]
set_var_float_to_var_float $player_sprite2_y[0] = $player_sprite1_y[0]
set_var_float_to_var_float $player_sprite1b_x[0] = $player_sprite1_x[0]
set_var_float_to_var_float $player_sprite1b_y[0] = $player_sprite1_y[0]
sub_float_var_from_float_var $player_sprite1b_y[0] -= $card_height
sub_float_var_from_float_var $player_sprite1b_y[0] -= $border_width
10@ = 0

:BLACKJ_32444
if 
  8 > 10@
goto_if_false @BLACKJ_32773
if 
  5 > 10@
goto_if_false @BLACKJ_32663
set_var_float_to_var_float $spacing_x = $card_width
add_float_var_to_float_var $spacing_x += $border_width
cset_var_float_to_lvar_int $multiplier =# 10@
mult_float_var_by_float_var $multiplier *= $spacing_x
set_var_float_to_var_float $player_sprite1_x(10@,8f) = $player_sprite1_x[0]
add_float_var_to_float_var $player_sprite1_x(10@,8f) += $multiplier
set_var_float_to_var_float $player_sprite1_y(10@,8f) = $player_sprite1_y[0]
set_var_float_to_var_float $player_sprite1b_x(10@,8f) = $player_sprite1b_x[0]
add_float_var_to_float_var $player_sprite1b_x(10@,8f) += $multiplier
set_var_float_to_var_float $player_sprite1b_y(10@,8f) = $player_sprite1b_y[0]
set_var_float_to_var_float $player_sprite2_x(10@,8f) = $player_sprite2_x[0]
add_float_var_to_float_var $player_sprite2_x(10@,8f) += $multiplier
set_var_float_to_var_float $player_sprite2_y(10@,8f) = $player_sprite2_y[0]
set_var_float_to_var_float $dealer_sprite_x(10@,8f) = $dealer_sprite_x[0]
add_float_var_to_float_var $dealer_sprite_x(10@,8f) += $multiplier
set_var_float_to_var_float $dealer_sprite_y(10@,8f) = $dealer_sprite_y[0]
goto @BLACKJ_32759

:BLACKJ_32663
set_var_float_to_var_float $player_sprite1_x(10@,8f) = $player_sprite1_x[4]
set_var_float_to_var_float $player_sprite1_y(10@,8f) = $player_sprite1_y[4]
set_var_float_to_var_float $player_sprite1b_x(10@,8f) = $player_sprite1b_x[4]
set_var_float_to_var_float $player_sprite1b_y(10@,8f) = $player_sprite1b_y[4]
set_var_float_to_var_float $player_sprite2_x(10@,8f) = $player_sprite2_x[4]
set_var_float_to_var_float $player_sprite2_y(10@,8f) = $player_sprite2_y[4]
set_var_float_to_var_float $dealer_sprite_x(10@,8f) = $dealer_sprite_x[4]
set_var_float_to_var_float $dealer_sprite_y(10@,8f) = $dealer_sprite_y[4]

:BLACKJ_32759
10@ += 1
goto @BLACKJ_32444

:BLACKJ_32773
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 0@
goto_if_false @BLACKJ_32824
$bj_x2, $bj_y2, $bj_z2 = get_object_coordinates 0@
$heading = get_object_heading 0@

:BLACKJ_32824
$heading *= -1.0
13@ = cos $heading
14@ = sin $heading
set_var_float_to_var_float $bj_vec_x = $x
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $y
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $z
sub_float_var_from_float_var $bj_vec_z -= $bj_z2
set_var_float_to_var_float $bj_vec2_x = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_x *= 13@
set_var_float_to_var_float $bj_temp_float3 = $bj_vec_y
mult_float_var_by_float_lvar $bj_temp_float3 *= 14@
sub_float_var_from_float_var $bj_vec2_x -= $bj_temp_float3
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
set_var_float_to_var_float $bj_temp_float3 = $bj_vec_y
mult_float_var_by_float_lvar $bj_temp_float3 *= 13@
add_float_var_to_float_var $bj_vec2_y += $bj_temp_float3
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM TABLE = "
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec2_y
save_float_to_debug_file $bj_vec_z
$x, $y, $z = get_debug_camera_point_at 
set_var_float_to_var_float $bj_vec_x = $x
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $y
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $z
sub_float_var_from_float_var $bj_vec_z -= $bj_z2
set_var_float_to_var_float $bj_vec2_x = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_x *= 13@
set_var_float_to_var_float $bj_temp_float3 = $bj_vec_y
mult_float_var_by_float_lvar $bj_temp_float3 *= 14@
sub_float_var_from_float_var $bj_vec2_x -= $bj_temp_float3
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
set_var_float_to_var_float $bj_temp_float3 = $bj_vec_y
mult_float_var_by_float_lvar $bj_temp_float3 *= 13@
add_float_var_to_float_var $bj_vec2_y += $bj_temp_float3
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM TABLE = "
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec2_y
save_float_to_debug_file $bj_vec_z
return 
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist 0@
goto_if_false @BLACKJ_33465
$bj_x2, $bj_y2, $bj_z2 = get_object_coordinates 0@
$heading = get_object_heading 0@

:BLACKJ_33465
$heading *= -1.0
13@ = cos $heading
14@ = sin $heading
set_var_float_to_var_float $bj_vec_x = $x
sub_float_var_from_float_var $bj_vec_x -= $bj_x2
set_var_float_to_var_float $bj_vec_y = $y
sub_float_var_from_float_var $bj_vec_y -= $bj_y2
set_var_float_to_var_float $bj_vec_z = $z
sub_float_var_from_float_var $bj_vec_z -= $bj_z2
set_var_float_to_var_float $bj_vec2_x = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_x *= 13@
set_var_float_to_var_float $bj_temp_float3 = $bj_vec_y
mult_float_var_by_float_lvar $bj_temp_float3 *= 14@
sub_float_var_from_float_var $bj_vec2_x -= $bj_temp_float3
set_var_float_to_var_float $bj_vec2_y = $bj_vec_x
mult_float_var_by_float_lvar $bj_vec2_y *= 14@
set_var_float_to_var_float $bj_temp_float3 = $bj_vec_y
mult_float_var_by_float_lvar $bj_temp_float3 *= 13@
add_float_var_to_float_var $bj_vec2_y += $bj_temp_float3
save_newline_to_debug_file 
save_string_to_debug_file "PLAYER_COORDINATES - OFFSET FROM TABLE = "
save_float_to_debug_file $bj_vec2_x
save_float_to_debug_file $bj_vec2_y
save_float_to_debug_file $bj_vec_z
return 

:BLACKJ_33768
13@ = get_float_stat StatId.Gambling
if 
  1.0 > 13@
goto_if_false @BLACKJ_33810
$casino_credit = 100
goto @BLACKJ_33930

:BLACKJ_33810
if 
  10.0 > 13@
goto_if_false @BLACKJ_33846
$casino_credit = 1000
goto @BLACKJ_33930

:BLACKJ_33846
if 
  100.0 > 13@
goto_if_false @BLACKJ_33882
$casino_credit = 10000
goto @BLACKJ_33930

:BLACKJ_33882
if 
  1000.0 > 13@
goto_if_false @BLACKJ_33920
$casino_credit = 100000
goto @BLACKJ_33930

:BLACKJ_33920
$casino_credit = 1000000

:BLACKJ_33930
return 
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_justify False
set_text_right_justify False
set_text_wrapx 2000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.6 {heightScale} 1.6
return 
set_text_colour 255 {green} 180 {blue} 180 {alpha} 255
set_text_justify False
set_text_right_justify False
set_text_wrapx 2000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 2.0 {heightScale} 3.0
return 

:BLACKJ_34042
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:BLACKJ_34152
set_text_colour 255 {green} 255 {blue} 0 {alpha} 255
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale $screen_pos_x[24] {heightScale} $screen_pos_y[24]
set_text_right_justify False
set_text_justify False
set_text_centre True
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour 6
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour 0
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour HudObject.Health
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour HudObject.Health
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Menu
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 0.52 {heightScale} 1.45
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 

:BLACKJ_34567
set_minigame_in_progress False
2@ = 0
3@ = 0
4@ = 0
5@ = 0
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @BLACKJ_34656
clear_help 

:BLACKJ_34656
restore_camera 
10@ = 0

:BLACKJ_34665
if 
  8 > 10@
goto_if_false @BLACKJ_34726
if 
  does_object_exist $bj_chip_set(10@,8i)
goto_if_false @BLACKJ_34712
delete_object $bj_chip_set(10@,8i)

:BLACKJ_34712
10@ += 1
goto @BLACKJ_34665

:BLACKJ_34726
if 
  not is_char_dead 1@
goto_if_false @BLACKJ_34749
task_stay_in_same_place 1@ {state} True

:BLACKJ_34749
terminate_all_scripts_with_this_name 'CASHWIN'
set_player_control $player1 {state} True
restore_camera_jumpcut 
remove_animation "CASINO"
remove_texture_dictionary 
use_text_commands False
display_radar True
switch_rubbish 1
set_help_message_box_size 200
return 
terminate_this_script 

//-------------External script 18 (WHEELO)---------------

:WOF
script_name 'WOF'
5@ = 0
6@ = 0
22@ = 0.0
23@ = 0.0
13@ = 0
15@ = 0
16@ = 0
25@ = -1
27@ = 0
generate_random_int_in_range 0 {max} 30000 {var_result} TIMERA
goto @WOF_438
0@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
4@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
3@ = create_object #WHEEL_O_FORTUNE {x} 0.0 {y} 0.0 {z} 0.0
7@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_1[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_2[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_3[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_4[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_5[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_6[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_7[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$chip_set_8[0] = create_object #CHIP_STACK07 {x} 0.0 {y} 0.0 {z} 0.0
$marker = create_object #ROULETTE_MARKER {x} 0.0 {y} 0.0 {z} 0.0

:WOF_438
wait 0
if 
  $iTerminateAllAmbience == 0
goto_if_false @WOF_2376
if 
  does_object_exist 0@
goto_if_false @WOF_2362
if 
  is_object_within_brain_activation_range 0@
goto_if_false @WOF_2348
if 
  $active_wheel == 0
goto_if_false @WOF_2253
if 
  is_player_playing $player1
goto_if_false @WOF_2239
if 
  5@ == 0
goto_if_false @WOF_1066
if 
  6@ == 0
goto_if_false @WOF_583
request_model 11
request_animation "CASINO"
6@ += 1

:WOF_583
if 
  6@ == 1
goto_if_false @WOF_633
if and
  has_model_loaded 11
  has_animation_loaded "CASINO"
goto_if_false @WOF_633
6@ += 1

:WOF_633
if 
  6@ == 2
goto_if_false @WOF_1029
if 
  not does_char_exist 7@
goto_if_false @WOF_781
20@ = get_object_heading 0@
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.5 {yOffset} -0.3974 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
7@ = create_char PedType.CivFemale {modelId} 11 {x} $x {y} $y {z} $z
set_char_decision_maker 7@ {handleOrTemplate} $iGlobalPedPanicDM
set_var_float_to_lvar_float $heading = 20@
$heading += 180.0
set_char_heading 7@ {heading} $heading
freeze_char_position 7@ {state} True
mark_model_as_no_longer_needed 11

:WOF_781
if 
  not does_object_exist 4@
goto_if_false @WOF_851
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.159 {zOffset} 0.0
4@ = create_object_no_offset #WHEEL_SUPPORT {x} $x {y} $y {z} $z
set_object_heading 4@ {heading} 20@

:WOF_851
if 
  not does_object_exist 2@
goto_if_false @WOF_952
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} -0.132 {yOffset} -1.0492 {zOffset} -0.8342
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
$z += 1.0
2@ = create_object_no_offset #WHEEL_TABLE {x} $x {y} $y {z} $z
set_object_heading 2@ {heading} 20@
gosub @WOF_15505

:WOF_952
if 
  not does_object_exist 1@
goto_if_false @WOF_1022
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.05
1@ = create_object_no_offset #CLICKER {x} $x {y} $y {z} $z
set_object_heading 1@ {heading} 20@

:WOF_1022
6@ += 1

:WOF_1029
if 
  6@ == 3
goto_if_false @WOF_1066
generate_random_int_in_range 0 {max} 50000 {var_result} TIMERA
5@ += 1

:WOF_1066
if 
  5@ == 1
goto_if_false @WOF_2189
if 
  not is_char_dead 7@
goto_if_false @WOF_1309
if 
  TIMERA > 50000
goto_if_false @WOF_1309
task_play_anim 7@ {animationName} "WOF" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_1295 {caseNum1} 0 {caseLabel1} @WOF_1226 {caseNum2} 1 {caseLabel2} @WOF_1249 {caseNum3} 2 {caseLabel3} @WOF_1272 {caseNum4} -1 {caseLabel4} @WOF_1295 {caseNum5} -1 {caseLabel5} @WOF_1295 {caseNum6} -1 {caseLabel6} @WOF_1295 {caseNum7} -1 {caseLabel7} @WOF_1295

:WOF_1226
set_char_say_script 7@ {_p2} 43608 {_p3} True {_p4} True {_p5} False
goto @WOF_1295

:WOF_1249
set_char_say_script 7@ {_p2} 43609 {_p3} True {_p4} True {_p5} False
goto @WOF_1295

:WOF_1272
set_char_say_script 7@ {_p2} 43610 {_p3} True {_p4} True {_p5} False
goto @WOF_1295

:WOF_1295
25@ = 0
TIMERA = 0

:WOF_1309
if 
  not is_char_dead 7@
goto_if_false @WOF_2189
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} -1.0 {zOffset} 0.0
if 
  $iSetCasinoPanic == 0
goto_if_false @WOF_2189
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.5 {yRadius} 0.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @WOF_2162
if 
  is_char_on_foot $scplayer
goto_if_false @WOF_2155
if 
  15@ == 0
goto_if_false @WOF_2131
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_1865
10@ = 0
8@ = get_float_stat StatId.Gambling
if 
  19@ == 1000000
goto_if_false @WOF_1558
if 
  1000.0 > 8@
goto_if_false @WOF_1551
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1551
goto @WOF_1784

:WOF_1558
if 
  19@ == 100000
goto_if_false @WOF_1637
if 
  100.0 > 8@
goto_if_false @WOF_1630
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1630
goto @WOF_1784

:WOF_1637
if 
  19@ == 10000
goto_if_false @WOF_1714
if 
  10.0 > 8@
goto_if_false @WOF_1707
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1707
goto @WOF_1784

:WOF_1714
if 
  19@ == 1000
goto_if_false @WOF_1784
if 
  1.0 > 8@
goto_if_false @WOF_1784
print_now 'GAMBSTA' {time} 5000 {flag} 1
gosub @WOF_2390
10@ = 1

:WOF_1784
if 
  10@ == 0
goto_if_false @WOF_1858
if 
  14@ == 1
goto_if_false @WOF_1829
clear_help 
14@ = 0

:WOF_1829
5@ = 0
6@ = 0
set_var_int_to_lvar_int $active_wheel = 0@
15@ = 1

:WOF_1858
goto @WOF_2124

:WOF_1865
if 
  14@ == 0
goto_if_false @WOF_2124
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @WOF_2124
switch_start 19@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @WOF_2099 {caseNum1} 100 {caseLabel1} @WOF_2009 {caseNum2} 1000 {caseLabel2} @WOF_2027 {caseNum3} 10000 {caseLabel3} @WOF_2045 {caseNum4} 100000 {caseLabel4} @WOF_2063 {caseNum5} 1000000 {caseLabel5} @WOF_2081 {caseNum6} -1 {caseLabel6} @WOF_2117 {caseNum7} -1 {caseLabel7} @WOF_2117

:WOF_2009
print_help_forever 'WOF_06A'
goto @WOF_2117

:WOF_2027
print_help_forever 'WOF_06B'
goto @WOF_2117

:WOF_2045
print_help_forever 'WOF_06C'
goto @WOF_2117

:WOF_2063
print_help_forever 'WOF_06D'
goto @WOF_2117

:WOF_2081
print_help_forever 'WOF_06E'
goto @WOF_2117

:WOF_2099
print_help_forever 'WOF_06'
goto @WOF_2117

:WOF_2117
14@ = 1

:WOF_2124
goto @WOF_2155

:WOF_2131
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_2155
15@ = 0

:WOF_2155
goto @WOF_2189

:WOF_2162
if 
  14@ == 1
goto_if_false @WOF_2189
clear_help 
14@ = 0

:WOF_2189
if or
  is_object_on_screen 0@
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 5.0 {yRadius} 5.0 {drawSphere} False
goto_if_false @WOF_2232
gosub @WOF_9892

:WOF_2232
goto @WOF_2246

:WOF_2239
gosub @WOF_2465

:WOF_2246
goto @WOF_2341

:WOF_2253
if 
  is_int_var_equal_to_int_lvar $active_wheel == 0@
goto_if_false @WOF_2341
if 
  is_player_playing $player1
goto_if_false @WOF_2341
if 
  13@ == 0
goto_if_false @WOF_2327
gosub @WOF_9892
gosub @WOF_2506
goto @WOF_2341

:WOF_2327
gosub @WOF_11175
$active_wheel = 0

:WOF_2341
goto @WOF_2355

:WOF_2348
gosub @WOF_2465

:WOF_2355
goto @WOF_2369

:WOF_2362
gosub @WOF_2465

:WOF_2369
goto @WOF_2383

:WOF_2376
gosub @WOF_2465

:WOF_2383
goto @WOF_438

:WOF_2390
10@ = 0
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @WOF_2447
set_char_say_script 7@ {_p2} 43651 {_p3} True {_p4} True {_p5} False
goto @WOF_2463

:WOF_2447
set_char_say_script 7@ {_p2} 43651 {_p3} True {_p4} True {_p5} False

:WOF_2463
return 

:WOF_2465
mark_char_as_no_longer_needed 7@
mark_object_as_no_longer_needed 4@
mark_object_as_no_longer_needed 2@
mark_object_as_no_longer_needed 1@
remove_animation "CASINO"
$total_wof_tables -= 1
terminate_this_script 
return 

:WOF_2506
switch_start 5@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WOF_2667 {caseNum1} 0 {caseLabel1} @WOF_2569 {caseNum2} 1 {caseLabel2} @WOF_2583 {caseNum3} 2 {caseLabel3} @WOF_2597 {caseNum4} 3 {caseLabel4} @WOF_2611 {caseNum5} 4 {caseLabel5} @WOF_2625 {caseNum6} 5 {caseLabel6} @WOF_2639 {caseNum7} 6 {caseLabel7} @WOF_2653

:WOF_2569
gosub @WOF_2815
goto @WOF_2667

:WOF_2583
gosub @WOF_4181
goto @WOF_2667

:WOF_2597
gosub @WOF_7344
goto @WOF_2667

:WOF_2611
gosub @WOF_7670
goto @WOF_2667

:WOF_2625
gosub @WOF_7814
goto @WOF_2667

:WOF_2639
gosub @WOF_7848
goto @WOF_2667

:WOF_2653
gosub @WOF_9496
goto @WOF_2667

:WOF_2667
gosub @WOF_13533
if 
  5@ == 1
goto_if_false @WOF_2772
if 
  15@ == 0
goto_if_false @WOF_2748
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_2741
13@ = 1
15@ = 1

:WOF_2741
goto @WOF_2772

:WOF_2748
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WOF_2772
15@ = 0

:WOF_2772
if 
  is_char_dead 7@
goto_if_false @WOF_2813
if 
  5@ > 0
goto_if_false @WOF_2813
13@ = 1

:WOF_2813
return 

:WOF_2815
if 
  6@ == 0
goto_if_false @WOF_4076
if 
  is_player_playing $player1
goto_if_false @WOF_4069
set_minigame_in_progress True
set_player_control $player1 {state} False
$x, $y, $z = get_object_coordinates 0@
task_turn_char_to_face_coord $scplayer {x} $x {y} $y {z} $z
use_text_commands True
display_radar False
request_animation "CASINO"
clear_prints 
10@ = 0

:WOF_2915
if 
  6 > 10@
goto_if_false @WOF_3053
$chip_set_z = -0.118
set_var_float_to_var_float $chip_set_1_z(10@,6f) = $chip_set_z
set_var_float_to_var_float $chip_set_2_z(10@,6f) = $chip_set_z
set_var_float_to_var_float $chip_set_3_z(10@,6f) = $chip_set_z
set_var_float_to_var_float $chip_set_4_z(10@,6f) = $chip_set_z
set_var_float_to_var_float $chip_set_5_z(10@,6f) = $chip_set_z
set_var_float_to_var_float $chip_set_6_z(10@,6f) = $chip_set_z
set_var_float_to_var_float $chip_set_7_z(10@,6f) = $chip_set_z
set_var_float_to_var_float $chip_set_8_z(10@,6f) = $chip_set_z
10@ += 1
goto @WOF_2915

:WOF_3053
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.634 {yOffset} 0.253 {zOffset} $chip_set_1_z[0]
$chip_set_1[0] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $chip_set_1[0] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} 0.253 {zOffset} $chip_set_1_z[1]
$chip_set_1[1] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $chip_set_1[1] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} 0.253 {zOffset} $chip_set_1_z[2]
$chip_set_1[2] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $chip_set_1[2] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} -0.106 {zOffset} $chip_set_1_z[3]
$chip_set_1[3] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $chip_set_1[3] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} -0.106 {zOffset} $chip_set_1_z[4]
$chip_set_1[4] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $chip_set_1[4] {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} -0.106 {zOffset} $chip_set_1_z[5]
$chip_set_1[5] = create_object_no_offset #CHIP_STACK07 {x} $x {y} $y {z} $z
set_object_heading $chip_set_1[5] {heading} 20@
10@ = 0

:WOF_3372
if 
  6 > 10@
goto_if_false @WOF_3458
$x, $y, $z = get_offset_from_object_in_world_coords $chip_set_1(10@,6i) {xOffset} 0.07 {yOffset} 0.0 {zOffset} 0.0
create_object_no_offset #CHIP_STACK08 {x} $x {y} $y {z} $z {var_handle} $chip_set_2(10@,6i)
10@ += 1
goto @WOF_3372

:WOF_3458
10@ = 0

:WOF_3465
if 
  6 > 10@
goto_if_false @WOF_3551
$x, $y, $z = get_offset_from_object_in_world_coords $chip_set_1(10@,6i) {xOffset} -0.07 {yOffset} 0.0 {zOffset} 0.0
create_object_no_offset #CHIP_STACK09 {x} $x {y} $y {z} $z {var_handle} $chip_set_3(10@,6i)
10@ += 1
goto @WOF_3465

:WOF_3551
10@ = 0

:WOF_3558
if 
  6 > 10@
goto_if_false @WOF_3644
$x, $y, $z = get_offset_from_object_in_world_coords $chip_set_1(10@,6i) {xOffset} 0.07 {yOffset} 0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK10 {x} $x {y} $y {z} $z {var_handle} $chip_set_4(10@,6i)
10@ += 1
goto @WOF_3558

:WOF_3644
10@ = 0

:WOF_3651
if 
  6 > 10@
goto_if_false @WOF_3737
$x, $y, $z = get_offset_from_object_in_world_coords $chip_set_1(10@,6i) {xOffset} 0.07 {yOffset} -0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK11 {x} $x {y} $y {z} $z {var_handle} $chip_set_5(10@,6i)
10@ += 1
goto @WOF_3651

:WOF_3737
10@ = 0

:WOF_3744
if 
  6 > 10@
goto_if_false @WOF_3830
$x, $y, $z = get_offset_from_object_in_world_coords $chip_set_1(10@,6i) {xOffset} -0.07 {yOffset} 0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK12 {x} $x {y} $y {z} $z {var_handle} $chip_set_6(10@,6i)
10@ += 1
goto @WOF_3744

:WOF_3830
10@ = 0

:WOF_3837
if 
  6 > 10@
goto_if_false @WOF_3923
$x, $y, $z = get_offset_from_object_in_world_coords $chip_set_1(10@,6i) {xOffset} -0.07 {yOffset} -0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK13 {x} $x {y} $y {z} $z {var_handle} $chip_set_7(10@,6i)
10@ += 1
goto @WOF_3837

:WOF_3923
10@ = 0

:WOF_3930
if 
  6 > 10@
goto_if_false @WOF_4016
$x, $y, $z = get_offset_from_object_in_world_coords $chip_set_1(10@,6i) {xOffset} 0.0 {yOffset} 0.07 {zOffset} 0.0
create_object_no_offset #CHIP_STACK14 {x} $x {y} $y {z} $z {var_handle} $chip_set_8(10@,6i)
10@ += 1
goto @WOF_3930

:WOF_4016
$winning_streak = 0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} 0.253 {zOffset} 0.041
$marker = create_object_no_offset #ROULETTE_MARKER {x} $x {y} $y {z} $z

:WOF_4069
6@ += 1

:WOF_4076
if 
  6@ == 1
goto_if_false @WOF_4122
if 
  has_animation_loaded "CASINO"
goto_if_false @WOF_4122
6@ += 1

:WOF_4122
if 
  6@ == 2
goto_if_false @WOF_4147
6@ = 99

:WOF_4147
if 
  6@ == 99
goto_if_false @WOF_4179
5@ += 1
6@ = 0

:WOF_4179
return 

:WOF_4181
if 
  6@ == 0
goto_if_false @WOF_4648
10@ = 0

:WOF_4206
if 
  6 > 10@
goto_if_false @WOF_4249
$current_bet(10@,6i) = 0
10@ += 1
goto @WOF_4206

:WOF_4249
$total_bet = 0
$current_bet_type = 0
TIMERA = 0
TIMERB = 0
print_help_forever 'WOFHD01'
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} -0.7 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
set_char_heading $scplayer {heading} 20@
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.7734 {yOffset} -0.6326 {zOffset} 0.9882
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.4684 {yOffset} -0.0634 {zOffset} 0.2246
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $marker
goto_if_false @WOF_4473
set_object_visible $marker {state} True

:WOF_4473
23@ = 0.0
24@ = 0.0
$wof_initial_stake = 0
$wof_refund = 0
if 
  not is_char_dead 7@
goto_if_false @WOF_4641
10@ = generate_random_int_in_range 0 {max} 2
switch_start 10@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @WOF_4641 {caseNum1} 0 {caseLabel1} @WOF_4595 {caseNum2} 1 {caseLabel2} @WOF_4618 {caseNum3} -1 {caseLabel3} @WOF_4641 {caseNum4} -1 {caseLabel4} @WOF_4641 {caseNum5} -1 {caseLabel5} @WOF_4641 {caseNum6} -1 {caseLabel6} @WOF_4641 {caseNum7} -1 {caseLabel7} @WOF_4641

:WOF_4595
set_char_say_script 7@ {_p2} 43600 {_p3} True {_p4} True {_p5} False
goto @WOF_4641

:WOF_4618
set_char_say_script 7@ {_p2} 43601 {_p3} True {_p4} True {_p5} False
goto @WOF_4641

:WOF_4641
6@ += 1

:WOF_4648
if 
  6@ == 1
goto_if_false @WOF_7308
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if 
  17@ <> 0
goto_if_false @WOF_4820
10@ = 0
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @WOF_4749
10@ = 1

:WOF_4749
if or
  $LStickY > 100
  -100 > $LStickY
  $LStickX > 100
  -100 > $LStickX
goto_if_false @WOF_4795
10@ = 1

:WOF_4795
if 
  10@ == 0
goto_if_false @WOF_4820
17@ = 0

:WOF_4820
set_lvar_int_to_lvar_int 10@ = 17@
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
  -100 > $LStickY
goto_if_false @WOF_4859
17@ = 1

:WOF_4859
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
  $LStickY > 100
goto_if_false @WOF_4890
17@ = 2

:WOF_4890
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
  -100 > $LStickX
goto_if_false @WOF_4921
17@ = 3

:WOF_4921
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
  $LStickX > 100
goto_if_false @WOF_4952
17@ = 4

:WOF_4952
if 
  not is_int_lvar_equal_to_int_lvar 17@ == 10@
goto_if_false @WOF_5226
if 
  17@ == 4
goto_if_false @WOF_5056
if or
  $current_bet_type == 0
  $current_bet_type == 1
  $current_bet_type == 3
  $current_bet_type == 4
goto_if_false @WOF_5042
$current_bet_type += 1
goto @WOF_5049

:WOF_5042
$current_bet_type += -2

:WOF_5049
TIMERA = 0

:WOF_5056
if 
  17@ == 3
goto_if_false @WOF_5141
if or
  $current_bet_type == 1
  $current_bet_type == 2
  $current_bet_type == 4
  $current_bet_type == 5
goto_if_false @WOF_5127
$current_bet_type += -1
goto @WOF_5134

:WOF_5127
$current_bet_type += 2

:WOF_5134
TIMERA = 0

:WOF_5141
if or
  17@ == 1
  17@ == 2
goto_if_false @WOF_5226
if or
  $current_bet_type == 0
  $current_bet_type == 1
  $current_bet_type == 2
goto_if_false @WOF_5212
$current_bet_type += 3
goto @WOF_5219

:WOF_5212
$current_bet_type += -3

:WOF_5219
TIMERA = 0

:WOF_5226
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @WOF_5817
if and
  16@ <> 1
  16@ <> -1
goto_if_false @WOF_5766
if 
  $current_bet($current_bet_type,6i) >= 100000
goto_if_false @WOF_5308
$betting_step = 10000
goto @WOF_5494

:WOF_5308
if 
  $current_bet($current_bet_type,6i) >= 10000
goto_if_false @WOF_5346
$betting_step = 1000
goto @WOF_5494

:WOF_5346
if 
  $current_bet($current_bet_type,6i) >= 1000
goto_if_false @WOF_5383
$betting_step = 100
goto @WOF_5494

:WOF_5383
if 
  $current_bet($current_bet_type,6i) >= 100
goto_if_false @WOF_5419
$betting_step = 10
goto @WOF_5494

:WOF_5419
if 
  $current_bet($current_bet_type,6i) == 0
goto_if_false @WOF_5487
if 
  $current_bet_type == 2
goto_if_false @WOF_5473
$betting_step = 5
goto @WOF_5480

:WOF_5473
$betting_step = 2

:WOF_5480
goto @WOF_5494

:WOF_5487
$betting_step = 1

:WOF_5494
10@ = store_score $player1
gosub @WOF_11541
add_int_var_to_int_lvar 10@ += $casino_credit
if 
  is_int_var_greater_than_int_lvar $betting_step > 10@
goto_if_false @WOF_5544
set_var_int_to_lvar_int $betting_step = 10@

:WOF_5544
$total_bet = 0
10@ = 0

:WOF_5558
if 
  6 > 10@
goto_if_false @WOF_5602
add_int_var_to_int_var $total_bet += $current_bet(10@,6i)
10@ += 1
goto @WOF_5558

:WOF_5602
set_lvar_int_to_lvar_int 10@ = 19@
sub_int_var_from_int_lvar 10@ -= $total_bet
if 
  is_int_var_greater_than_int_lvar $betting_step > 10@
goto_if_false @WOF_5645
set_var_int_to_lvar_int $betting_step = 10@

:WOF_5645
if 
  0 > $betting_step
goto_if_false @WOF_5670
$betting_step *= -1

:WOF_5670
add_int_var_to_int_var $current_bet($current_bet_type,6i) += $betting_step
add_int_var_to_int_var $wof_initial_stake += $betting_step
add_int_var_to_int_var $wof_refund += $betting_step
$betting_step *= -1
add_score $player1 {money} $betting_step
16@ += 1
if 
  16@ > 1
goto_if_false @WOF_5752
16@ = 2
goto @WOF_5759

:WOF_5752
TIMERA = 0

:WOF_5759
goto @WOF_5810

:WOF_5766
if 
  16@ == 1
goto_if_false @WOF_5810
if 
  TIMERA > 500
goto_if_false @WOF_5810
16@ = 2

:WOF_5810
goto @WOF_6337

:WOF_5817
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @WOF_6312
if 
  18@ <> 1
goto_if_false @WOF_6279
if 
  $current_bet($current_bet_type,6i) > 100000
goto_if_false @WOF_5892
$betting_step = -10000
goto @WOF_6010

:WOF_5892
if 
  $current_bet($current_bet_type,6i) > 10000
goto_if_false @WOF_5930
$betting_step = -1000
goto @WOF_6010

:WOF_5930
if 
  $current_bet($current_bet_type,6i) > 1000
goto_if_false @WOF_5967
$betting_step = -100
goto @WOF_6010

:WOF_5967
if 
  $current_bet($current_bet_type,6i) > 100
goto_if_false @WOF_6003
$betting_step = -10
goto @WOF_6010

:WOF_6003
$betting_step = -1

:WOF_6010
set_lvar_int_to_var_int 10@ = $current_bet($current_bet_type,6i)
add_int_var_to_int_var $current_bet($current_bet_type,6i) += $betting_step
if 
  $current_bet_type == 2
goto_if_false @WOF_6107
if 
  5 > $current_bet($current_bet_type,6i)
goto_if_false @WOF_6100
$current_bet($current_bet_type,6i) = 0
set_var_int_to_lvar_int $betting_step = 10@
$betting_step *= -1

:WOF_6100
goto @WOF_6155

:WOF_6107
if 
  2 > $current_bet($current_bet_type,6i)
goto_if_false @WOF_6155
$current_bet($current_bet_type,6i) = 0
set_var_int_to_lvar_int $betting_step = 10@
$betting_step *= -1

:WOF_6155
if 
  0 > $current_bet($current_bet_type,6i)
goto_if_false @WOF_6195
$current_bet($current_bet_type,6i) = 0
goto @WOF_6226

:WOF_6195
add_int_var_to_int_var $wof_initial_stake += $betting_step
add_int_var_to_int_var $wof_refund += $betting_step
$betting_step *= -1
add_score $player1 {money} $betting_step

:WOF_6226
18@ += 1
if 
  18@ > 1
goto_if_false @WOF_6265
18@ = 2
goto @WOF_6272

:WOF_6265
TIMERA = 0

:WOF_6272
goto @WOF_6305

:WOF_6279
if 
  TIMERA > 500
goto_if_false @WOF_6305
18@ = 2

:WOF_6305
goto @WOF_6337

:WOF_6312
if 
  18@ <> 0
goto_if_false @WOF_6337
18@ = 0

:WOF_6337
$total_bet = 0
10@ = 0

:WOF_6351
if 
  6 > 10@
goto_if_false @WOF_6395
add_int_var_to_int_var $total_bet += $current_bet(10@,6i)
10@ += 1
goto @WOF_6351

:WOF_6395
if 
  $current_bet_type == 0
goto_if_false @WOF_6456
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} 0.253 {zOffset} 0.041
set_object_coordinates $marker {x} $x {y} $y {z} $z

:WOF_6456
if 
  $current_bet_type == 1
goto_if_false @WOF_6517
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} 0.253 {zOffset} 0.041
set_object_coordinates $marker {x} $x {y} $y {z} $z

:WOF_6517
if 
  $current_bet_type == 2
goto_if_false @WOF_6578
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} 0.253 {zOffset} 0.041
set_object_coordinates $marker {x} $x {y} $y {z} $z

:WOF_6578
if 
  $current_bet_type == 3
goto_if_false @WOF_6639
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.635 {yOffset} -0.106 {zOffset} 0.041
set_object_coordinates $marker {x} $x {y} $y {z} $z

:WOF_6639
if 
  $current_bet_type == 4
goto_if_false @WOF_6700
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.201 {yOffset} -0.106 {zOffset} 0.041
set_object_coordinates $marker {x} $x {y} $y {z} $z

:WOF_6700
if 
  $current_bet_type == 5
goto_if_false @WOF_6761
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.243 {yOffset} -0.106 {zOffset} 0.041
set_object_coordinates $marker {x} $x {y} $y {z} $z

:WOF_6761
switch_start $current_Language {numCases} 1 {hasDefaultCase} 1 {defaultLabel} @WOF_6864 {caseNum1} 3 {caseLabel1} @WOF_6824 {caseNum2} -1 {caseLabel2} @WOF_6904 {caseNum3} -1 {caseLabel3} @WOF_6904 {caseNum4} -1 {caseLabel4} @WOF_6904 {caseNum5} -1 {caseLabel5} @WOF_6904 {caseNum6} -1 {caseLabel6} @WOF_6904 {caseNum7} -1 {caseLabel7} @WOF_6904

:WOF_6824
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 173.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @WOF_6904

:WOF_6864
draw_window 29.0 {leftTopY} 220.0 {rightBottomX} 157.0 {rightBottomY} 409.0 {header} 'BJ_TITL' {zIndex} 2
goto @WOF_6904

:WOF_6904
gosub @WOF_11748
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 240.0 {key} 'WOF_04'
gosub @WOF_11748
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 260.0 {key} 'DOLLAR' {num} $current_bet($current_bet_type,6i)
gosub @WOF_11748
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 290.0 {key} 'WOF_05'
gosub @WOF_11748
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 310.0 {key} 'DOLLAR' {num} $total_bet
gosub @WOF_11748
set_text_colour 134 {green} 155 {blue} 184 {alpha} 255
display_text 36.0 {offsetTop} 340.0 {key} 'BJ_03'
gosub @WOF_11748
set_text_scale 0.6253 {heightScale} 2.7876
display_text_with_number 36.0 {offsetTop} 360.0 {key} 'DOLLAR' {num} 19@
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WOF_7283
if 
  16@ == 0
goto_if_false @WOF_7276
if 
  $total_bet > 0
goto_if_false @WOF_7269
increment_int_stat StatId.MoneySpentGambling {value} $total_bet
cset_lvar_float_to_var_int 8@ =# $total_bet
8@ *= 0.001
increment_float_stat StatId.Gambling {value} 8@
TIMERA = 0
$wof_refund = 0
6@ = 99

:WOF_7269
16@ = 1

:WOF_7276
goto @WOF_7308

:WOF_7283
if 
  16@ <> 0
goto_if_false @WOF_7308
16@ = 0

:WOF_7308
if 
  6@ == 99
goto_if_false @WOF_7342
clear_help 
5@ += 1
6@ = 0

:WOF_7342
return 

:WOF_7344
if 
  not is_char_dead 7@
goto_if_false @WOF_7668
task_play_anim 7@ {animationName} "WOF" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_7534 {caseNum1} 0 {caseLabel1} @WOF_7465 {caseNum2} 1 {caseLabel2} @WOF_7488 {caseNum3} 2 {caseLabel3} @WOF_7511 {caseNum4} -1 {caseLabel4} @WOF_7534 {caseNum5} -1 {caseLabel5} @WOF_7534 {caseNum6} -1 {caseLabel6} @WOF_7534 {caseNum7} -1 {caseLabel7} @WOF_7534

:WOF_7465
set_char_say_script 7@ {_p2} 43608 {_p3} True {_p4} True {_p5} False
goto @WOF_7534

:WOF_7488
set_char_say_script 7@ {_p2} 43609 {_p3} True {_p4} True {_p5} False
goto @WOF_7534

:WOF_7511
set_char_say_script 7@ {_p2} 43610 {_p3} True {_p4} True {_p5} False
goto @WOF_7534

:WOF_7534
25@ = 0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -1.3681 {yOffset} -2.0088 {zOffset} 0.7317
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} -0.8154 {yOffset} -1.1754 {zOffset} 0.7401
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.JumpCut
if 
  does_object_exist $marker
goto_if_false @WOF_7661
set_object_visible $marker {state} False

:WOF_7661
5@ += 1

:WOF_7668
return 

:WOF_7670
if and
  2.0 > 23@
  25@ > 1
goto_if_false @WOF_7812
$x, $y, $z = get_offset_from_object_in_world_coords 4@ {xOffset} -0.3059 {yOffset} -0.9385 {zOffset} 0.4225
set_fixed_camera_position $x {y} $y {z} $z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
$x, $y, $z = get_offset_from_object_in_world_coords 4@ {xOffset} -0.0298 {yOffset} -0.0515 {zOffset} 0.7929
set_interpolation_parameters 0.0 {time} 6000
point_camera_at_point $x {y} $y {z} $z {switchStyle} SwitchType.Interpolation
5@ += 1

:WOF_7812
return 

:WOF_7814
if 
  25@ == 4
goto_if_false @WOF_7846
6@ = 0
5@ += 1

:WOF_7846
return 

:WOF_7848
if 
  6@ == 0
goto_if_false @WOF_9049
set_lvar_float_to_lvar_float 8@ = 21@
8@ -= 3.3333
if 
  0.0 > 8@
goto_if_false @WOF_7915
8@ += 360.0

:WOF_7915
8@ /= 6.6667
cset_var_int_to_lvar_float $wheel_position =# 8@
$wheel_position += 1
gosub @WOF_11803
10@ = 0
$wof_winnings = 0
if 
  $wheel_position_value == 1
goto_if_false @WOF_8012
if 
  $current_bet[2] > 0
goto_if_false @WOF_8012
$wof_winnings = 2
mult_int_var_by_int_var $wof_winnings *= $current_bet[2]

:WOF_8012
if 
  $wheel_position_value == 2
goto_if_false @WOF_8063
if 
  $current_bet[4] > 0
goto_if_false @WOF_8063
$wof_winnings = 3
mult_int_var_by_int_var $wof_winnings *= $current_bet[4]

:WOF_8063
if 
  $wheel_position_value == 5
goto_if_false @WOF_8114
if 
  $current_bet[1] > 0
goto_if_false @WOF_8114
$wof_winnings = 6
mult_int_var_by_int_var $wof_winnings *= $current_bet[1]

:WOF_8114
if 
  $wheel_position_value == 10
goto_if_false @WOF_8165
if 
  $current_bet[3] > 0
goto_if_false @WOF_8165
$wof_winnings = 11
mult_int_var_by_int_var $wof_winnings *= $current_bet[3]

:WOF_8165
if 
  $wheel_position_value == 20
goto_if_false @WOF_8216
if 
  $current_bet[0] > 0
goto_if_false @WOF_8216
$wof_winnings = 21
mult_int_var_by_int_var $wof_winnings *= $current_bet[0]

:WOF_8216
if 
  $wheel_position_value == 40
goto_if_false @WOF_8267
if 
  $current_bet[5] > 0
goto_if_false @WOF_8267
$wof_winnings = 41
mult_int_var_by_int_var $wof_winnings *= $current_bet[5]

:WOF_8267
TIMERA = 0
set_lvar_int_to_var_int 10@ = $wof_winnings
sub_int_var_from_int_lvar 10@ -= $wof_initial_stake
add_score $player1 {money} $wof_winnings
if 
  10@ > 0
goto_if_false @WOF_8330
increment_int_stat StatId.MoneyWonGambling {value} 10@
goto @WOF_8330

:WOF_8330
start_new_script @CASHWIN 10@ 3000 
show_update_stats False
if 
  10@ > 0
goto_if_false @WOF_9003
register_int_stat StatId.BiggestGamblingWin {value} 10@
cset_lvar_float_to_lvar_int 8@ =# 10@
cset_lvar_float_to_lvar_int 9@ =# 19@
div_float_lvar_by_float_lvar 8@ /= 9@
$winning_streak += 1
if 
  3 > $winning_streak
goto_if_false @WOF_8832
if 
  8@ > 0.9
goto_if_false @WOF_8654
if 
  is_player_playing $player1
goto_if_false @WOF_8647
if 
  not is_char_dead 7@
goto_if_false @WOF_8647
10@ = generate_random_int_in_range 0 {max} 5
switch_start 10@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @WOF_8633 {caseNum1} 0 {caseLabel1} @WOF_8547 {caseNum2} 1 {caseLabel2} @WOF_8570 {caseNum3} 2 {caseLabel3} @WOF_8593 {caseNum4} 3 {caseLabel4} @WOF_8616 {caseNum5} -1 {caseLabel5} @WOF_8647 {caseNum6} -1 {caseLabel6} @WOF_8647 {caseNum7} -1 {caseLabel7} @WOF_8647

:WOF_8547
set_char_say_script 7@ {_p2} 43648 {_p3} True {_p4} True {_p5} False
goto @WOF_8647

:WOF_8570
set_char_say_script 7@ {_p2} 43649 {_p3} True {_p4} True {_p5} False
goto @WOF_8647

:WOF_8593
set_char_say_script 7@ {_p2} 43650 {_p3} True {_p4} True {_p5} False
goto @WOF_8647

:WOF_8616
10@ = set_char_say_context $scplayer {phrase} SpeechId.GambCasinoWin
goto @WOF_8647

:WOF_8633
gosub @WOF_9227
goto @WOF_8647

:WOF_8647
goto @WOF_8825

:WOF_8654
if 
  not is_char_dead 7@
goto_if_false @WOF_8825
10@ = generate_random_int_in_range 0 {max} 10
switch_start 10@ {numCases} 3 {hasDefaultCase} 1 {defaultLabel} @WOF_8811 {caseNum1} 0 {caseLabel1} @WOF_8742 {caseNum2} 1 {caseLabel2} @WOF_8765 {caseNum3} 2 {caseLabel3} @WOF_8788 {caseNum4} -1 {caseLabel4} @WOF_8825 {caseNum5} -1 {caseLabel5} @WOF_8825 {caseNum6} -1 {caseLabel6} @WOF_8825 {caseNum7} -1 {caseLabel7} @WOF_8825

:WOF_8742
set_char_say_script 7@ {_p2} 43648 {_p3} True {_p4} True {_p5} False
goto @WOF_8825

:WOF_8765
set_char_say_script 7@ {_p2} 43649 {_p3} True {_p4} True {_p5} False
goto @WOF_8825

:WOF_8788
set_char_say_script 7@ {_p2} 43650 {_p3} True {_p4} True {_p5} False
goto @WOF_8825

:WOF_8811
gosub @WOF_9227
goto @WOF_8825

:WOF_8825
goto @WOF_8996

:WOF_8832
if 
  not is_char_dead 7@
goto_if_false @WOF_8989
10@ = generate_random_int_in_range 0 {max} 3
switch_start 10@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @WOF_8989 {caseNum1} 0 {caseLabel1} @WOF_8920 {caseNum2} 1 {caseLabel2} @WOF_8943 {caseNum3} 2 {caseLabel3} @WOF_8966 {caseNum4} -1 {caseLabel4} @WOF_8989 {caseNum5} -1 {caseLabel5} @WOF_8989 {caseNum6} -1 {caseLabel6} @WOF_8989 {caseNum7} -1 {caseLabel7} @WOF_8989

:WOF_8920
set_char_say_script 7@ {_p2} 43662 {_p3} True {_p4} True {_p5} False
goto @WOF_8989

:WOF_8943
set_char_say_script 7@ {_p2} 43663 {_p3} True {_p4} True {_p5} False
goto @WOF_8989

:WOF_8966
set_char_say_script 7@ {_p2} 43664 {_p3} True {_p4} True {_p5} False
goto @WOF_8989

:WOF_8989
$winning_streak = 0

:WOF_8996
goto @WOF_9038

:WOF_9003
10@ *= -1
register_int_stat StatId.BiggestGamblingLoss {value} 10@
10@ *= -1
gosub @WOF_9227
$winning_streak = 0

:WOF_9038
show_update_stats True
6@ += 1

:WOF_9049
if 
  6@ == 1
goto_if_false @WOF_9100
if 
  3000 > TIMERA
goto_if_false @WOF_9093
goto @WOF_9100

:WOF_9093
6@ += 1

:WOF_9100
if 
  6@ == 2
goto_if_false @WOF_9193
print_help_forever 'WOF_09'
10@ = 0

:WOF_9136
if 
  6 > 10@
goto_if_false @WOF_9179
$current_bet(10@,6i) = 0
10@ += 1
goto @WOF_9136

:WOF_9179
TIMERA = 0
6@ = 99

:WOF_9193
if 
  6@ == 99
goto_if_false @WOF_9225
TIMERA = 0
5@ += 1

:WOF_9225
return 

:WOF_9227
if 
  not is_char_dead 7@
goto_if_false @WOF_9494
switch_start $wheel_position_value {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @WOF_9494 {caseNum1} 1 {caseLabel1} @WOF_9306 {caseNum2} 2 {caseLabel2} @WOF_9329 {caseNum3} 5 {caseLabel3} @WOF_9352 {caseNum4} 10 {caseLabel4} @WOF_9375 {caseNum5} 20 {caseLabel5} @WOF_9398 {caseNum6} 40 {caseLabel6} @WOF_9421 {caseNum7} -1 {caseLabel7} @WOF_9494

:WOF_9306
set_char_say_script 7@ {_p2} 43655 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9329
set_char_say_script 7@ {_p2} 43656 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9352
set_char_say_script 7@ {_p2} 43657 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9375
set_char_say_script 7@ {_p2} 43658 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9398
set_char_say_script 7@ {_p2} 43659 {_p3} True {_p4} True {_p5} False
goto @WOF_9494

:WOF_9421
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @WOF_9471
set_char_say_script 7@ {_p2} 43660 {_p3} True {_p4} True {_p5} False
goto @WOF_9487

:WOF_9471
set_char_say_script 7@ {_p2} 43661 {_p3} True {_p4} True {_p5} False

:WOF_9487
goto @WOF_9494

:WOF_9494
return 

:WOF_9496
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WOF_9538
16@ = -1
clear_prints 
clear_help 
5@ = 1
6@ = 0

:WOF_9538
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour 6
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour 0
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour HudObject.Health
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Pricedown
set_text_edge 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 1.2 {heightScale} 4.0
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 
$colour_r, $colour_g, $colour_b, $colour_a = get_hud_colour HudObject.Health
set_text_colour $colour_r {green} $colour_g {blue} $colour_b {alpha} $colour_a
set_text_font Font.Menu
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_scale 0.52 {heightScale} 1.45
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
return 

:WOF_9892
switch_start 25@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WOF_10591 {caseNum1} 0 {caseLabel1} @WOF_9955 {caseNum2} 1 {caseLabel2} @WOF_9991 {caseNum3} 2 {caseLabel3} @WOF_10050 {caseNum4} 3 {caseLabel4} @WOF_10220 {caseNum5} 4 {caseLabel5} @WOF_10584 {caseNum6} -1 {caseLabel6} @WOF_10591 {caseNum7} -1 {caseLabel7} @WOF_10591

:WOF_9955
24@ = generate_random_float_in_range 0.1 {max} 0.15
TIMERB = 0
25@ += 1
goto @WOF_10591

:WOF_9991
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
if 
  TIMERB > 500
goto_if_false @WOF_10043
24@ = -0.005
25@ += 1

:WOF_10043
goto @WOF_10591

:WOF_10050
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
if 
  0.3 > 23@
goto_if_false @WOF_10213
set_lvar_float_to_lvar_float 21@ = 22@
set_lvar_float_to_lvar_float 8@ = 21@
8@ /= 6.6667
cset_lvar_int_to_lvar_float 10@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 10@
sub_float_lvar_from_float_lvar 8@ -= 9@
8@ += -1.0
8@ *= -1.0
8@ *= 6.6667
add_float_lvar_to_float_lvar 21@ += 8@
if 
  21@ > 360.0
goto_if_false @WOF_10206
21@ += -360.0

:WOF_10206
25@ += 1

:WOF_10213
goto @WOF_10591

:WOF_10220
set_lvar_float_to_lvar_float 8@ = 22@
sub_float_lvar_from_float_lvar 8@ -= 21@
if 
  -180.0 > 8@
goto_if_false @WOF_10267
8@ += 360.0

:WOF_10267
if 
  8@ > 180.0
goto_if_false @WOF_10298
8@ += -360.0

:WOF_10298
if 
  23@ > 0.01
goto_if_false @WOF_10416
if 
  8@ > 3.3333
goto_if_false @WOF_10409
set_lvar_float_to_lvar_float 22@ = 21@
22@ += 3.3333
if 
  22@ > 360.0
goto_if_false @WOF_10389
22@ += -360.0

:WOF_10389
23@ *= -1.0
24@ *= -1.0

:WOF_10409
goto @WOF_10561

:WOF_10416
if 
  -0.01 > 23@
goto_if_false @WOF_10534
if 
  -3.3333 > 8@
goto_if_false @WOF_10527
set_lvar_float_to_lvar_float 22@ = 21@
22@ -= 3.3333
if 
  0.0 > 22@
goto_if_false @WOF_10507
22@ += 360.0

:WOF_10507
23@ *= -1.0
24@ *= -1.0

:WOF_10527
goto @WOF_10561

:WOF_10534
23@ = 0.0
24@ = 0.0
25@ += 1

:WOF_10561
add_timed_float_lvar_to_float_lvar 23@ +=@ 24@
add_timed_float_lvar_to_float_lvar 22@ +=@ 23@
goto @WOF_10591

:WOF_10584
goto @WOF_10591

:WOF_10591
if 
  23@ <> 0.0
goto_if_false @WOF_10690
if 
  22@ > 360.0
goto_if_false @WOF_10643
22@ += -360.0

:WOF_10643
if 
  0.0 > 22@
goto_if_false @WOF_10674
22@ += 360.0

:WOF_10674
set_object_rotation 0@ {x} 0.0 {y} 22@ {z} 20@

:WOF_10690
if 
  does_object_exist 1@
goto_if_false @WOF_11173
if 
  23@ > 0.2
goto_if_false @WOF_11095
if 
  0.8 > 23@
goto_if_false @WOF_11032
set_lvar_float_to_lvar_float 8@ = 22@
8@ += 3.3333
8@ /= 6.6667
cset_lvar_int_to_lvar_float 10@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 10@
sub_float_lvar_from_float_lvar 8@ -= 9@
8@ += -1.0
8@ *= -1.0
8@ *= 6.6667
if 
  8@ > 5.0
goto_if_false @WOF_10959
8@ += -5.0
8@ /= 1.6667
8@ += -1.0
8@ *= -1.0
8@ *= 5.0
set_lvar_float_to_lvar_float 26@ = 8@
26@ *= -1.0
if 
  27@ <> 1
goto_if_false @WOF_10952
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundWheelOfFortuneClacker
27@ = 1

:WOF_10952
goto @WOF_11025

:WOF_10959
add_timed_val_to_float_lvar 26@ +=@ 0.5
if 
  26@ > 0.0
goto_if_false @WOF_11000
26@ = 0.0

:WOF_11000
if 
  27@ <> 0
goto_if_false @WOF_11025
27@ = 0

:WOF_11025
goto @WOF_11088

:WOF_11032
if 
  26@ == -5.0
goto_if_false @WOF_11078
26@ = -2.0
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundWheelOfFortuneClacker
goto @WOF_11088

:WOF_11078
26@ = -5.0

:WOF_11088
goto @WOF_11157

:WOF_11095
if 
  0.0 > 26@
goto_if_false @WOF_11157
add_timed_val_to_float_lvar 26@ +=@ 0.5
if 
  26@ > 0.0
goto_if_false @WOF_11157
26@ = 0.0

:WOF_11157
set_object_rotation 1@ {x} 0.0 {y} 26@ {z} 20@

:WOF_11173
return 

:WOF_11175
set_minigame_in_progress False
13@ = 0
5@ = 0
6@ = 0
if 
  $wof_refund > 0
goto_if_false @WOF_11226
add_score $player1 {money} $wof_refund

:WOF_11226
$wof_refund = 0
if 
  not is_char_dead 7@
goto_if_false @WOF_11315
10@ = generate_random_int_in_range 0 {max} 2
if 
  10@ == 0
goto_if_false @WOF_11299
set_char_say_script 7@ {_p2} 43653 {_p3} True {_p4} True {_p5} False
goto @WOF_11315

:WOF_11299
set_char_say_script 7@ {_p2} 43654 {_p3} True {_p4} True {_p5} False

:WOF_11315
if 
  is_player_playing $player1
goto_if_false @WOF_11338
set_player_control $player1 {state} True

:WOF_11338
terminate_all_scripts_with_this_name 'CASHWIN'
use_text_commands False
display_radar True
set_camera_behind_player 
restore_camera_jumpcut 
10@ = 0

:WOF_11368
if 
  6 > 10@
goto_if_false @WOF_11472
delete_object $chip_set_1(10@,6i)
delete_object $chip_set_2(10@,6i)
delete_object $chip_set_3(10@,6i)
delete_object $chip_set_4(10@,6i)
delete_object $chip_set_5(10@,6i)
delete_object $chip_set_6(10@,6i)
delete_object $chip_set_7(10@,6i)
delete_object $chip_set_8(10@,6i)
10@ += 1
goto @WOF_11368

:WOF_11472
delete_object $marker
delete_menu $wof_betting_menu
if and
  not is_this_help_message_being_displayed 'SGPUNT'
  not is_this_help_message_being_displayed 'SGGAMB'
  not is_this_help_message_being_displayed 'SGPROF'
  not is_this_help_message_being_displayed 'SGHIRO'
goto_if_false @WOF_11539
clear_help 

:WOF_11539
return 

:WOF_11541
8@ = get_float_stat StatId.Gambling
if 
  1.0 > 8@
goto_if_false @WOF_11583
$casino_credit = 100
goto @WOF_11703

:WOF_11583
if 
  10.0 > 8@
goto_if_false @WOF_11619
$casino_credit = 1000
goto @WOF_11703

:WOF_11619
if 
  100.0 > 8@
goto_if_false @WOF_11655
$casino_credit = 10000
goto @WOF_11703

:WOF_11655
if 
  1000.0 > 8@
goto_if_false @WOF_11693
$casino_credit = 100000
goto @WOF_11703

:WOF_11693
$casino_credit = 1000000

:WOF_11703
return 
set_text_scale 0.4487 {heightScale} 1.5974
set_text_colour 128 {green} 148 {blue} 178 {alpha} 255
set_text_justify True
set_text_wrapx 2000.0
set_text_proportional True
return 

:WOF_11748
set_text_colour 180 {green} 180 {blue} 180 {alpha} 255
set_text_scale 0.4714 {heightScale} 2.5077
set_text_right_justify False
set_text_justify False
set_text_centre False
set_text_wrapx 640.0
set_text_proportional True
set_text_background False
return 

:WOF_11803
if 
  $wheel_position == 1
goto_if_false @WOF_11835
$wheel_position_value = 40
goto @WOF_13531

:WOF_11835
if 
  $wheel_position == 2
goto_if_false @WOF_11867
$wheel_position_value = 2
goto @WOF_13531

:WOF_11867
if 
  $wheel_position == 3
goto_if_false @WOF_11899
$wheel_position_value = 10
goto @WOF_13531

:WOF_11899
if 
  $wheel_position == 4
goto_if_false @WOF_11931
$wheel_position_value = 1
goto @WOF_13531

:WOF_11931
if 
  $wheel_position == 5
goto_if_false @WOF_11963
$wheel_position_value = 2
goto @WOF_13531

:WOF_11963
if 
  $wheel_position == 6
goto_if_false @WOF_11995
$wheel_position_value = 1
goto @WOF_13531

:WOF_11995
if 
  $wheel_position == 7
goto_if_false @WOF_12027
$wheel_position_value = 5
goto @WOF_13531

:WOF_12027
if 
  $wheel_position == 8
goto_if_false @WOF_12059
$wheel_position_value = 1
goto @WOF_13531

:WOF_12059
if 
  $wheel_position == 9
goto_if_false @WOF_12091
$wheel_position_value = 2
goto @WOF_13531

:WOF_12091
if 
  $wheel_position == 10
goto_if_false @WOF_12123
$wheel_position_value = 10
goto @WOF_13531

:WOF_12123
if 
  $wheel_position == 11
goto_if_false @WOF_12155
$wheel_position_value = 1
goto @WOF_13531

:WOF_12155
if 
  $wheel_position == 12
goto_if_false @WOF_12187
$wheel_position_value = 2
goto @WOF_13531

:WOF_12187
if 
  $wheel_position == 13
goto_if_false @WOF_12219
$wheel_position_value = 1
goto @WOF_13531

:WOF_12219
if 
  $wheel_position == 14
goto_if_false @WOF_12251
$wheel_position_value = 5
goto @WOF_13531

:WOF_12251
if 
  $wheel_position == 15
goto_if_false @WOF_12283
$wheel_position_value = 2
goto @WOF_13531

:WOF_12283
if 
  $wheel_position == 16
goto_if_false @WOF_12315
$wheel_position_value = 1
goto @WOF_13531

:WOF_12315
if 
  $wheel_position == 17
goto_if_false @WOF_12347
$wheel_position_value = 20
goto @WOF_13531

:WOF_12347
if 
  $wheel_position == 18
goto_if_false @WOF_12379
$wheel_position_value = 1
goto @WOF_13531

:WOF_12379
if 
  $wheel_position == 19
goto_if_false @WOF_12411
$wheel_position_value = 2
goto @WOF_13531

:WOF_12411
if 
  $wheel_position == 20
goto_if_false @WOF_12443
$wheel_position_value = 5
goto @WOF_13531

:WOF_12443
if 
  $wheel_position == 21
goto_if_false @WOF_12475
$wheel_position_value = 10
goto @WOF_13531

:WOF_12475
if 
  $wheel_position == 22
goto_if_false @WOF_12507
$wheel_position_value = 1
goto @WOF_13531

:WOF_12507
if 
  $wheel_position == 23
goto_if_false @WOF_12539
$wheel_position_value = 2
goto @WOF_13531

:WOF_12539
if 
  $wheel_position == 24
goto_if_false @WOF_12571
$wheel_position_value = 1
goto @WOF_13531

:WOF_12571
if 
  $wheel_position == 25
goto_if_false @WOF_12603
$wheel_position_value = 5
goto @WOF_13531

:WOF_12603
if 
  $wheel_position == 26
goto_if_false @WOF_12635
$wheel_position_value = 1
goto @WOF_13531

:WOF_12635
if 
  $wheel_position == 27
goto_if_false @WOF_12667
$wheel_position_value = 2
goto @WOF_13531

:WOF_12667
if 
  $wheel_position == 28
goto_if_false @WOF_12699
$wheel_position_value = 1
goto @WOF_13531

:WOF_12699
if 
  $wheel_position == 29
goto_if_false @WOF_12731
$wheel_position_value = 40
goto @WOF_13531

:WOF_12731
if 
  $wheel_position == 30
goto_if_false @WOF_12763
$wheel_position_value = 2
goto @WOF_13531

:WOF_12763
if 
  $wheel_position == 31
goto_if_false @WOF_12795
$wheel_position_value = 1
goto @WOF_13531

:WOF_12795
if 
  $wheel_position == 32
goto_if_false @WOF_12827
$wheel_position_value = 2
goto @WOF_13531

:WOF_12827
if 
  $wheel_position == 33
goto_if_false @WOF_12859
$wheel_position_value = 1
goto @WOF_13531

:WOF_12859
if 
  $wheel_position == 34
goto_if_false @WOF_12891
$wheel_position_value = 2
goto @WOF_13531

:WOF_12891
if 
  $wheel_position == 35
goto_if_false @WOF_12923
$wheel_position_value = 5
goto @WOF_13531

:WOF_12923
if 
  $wheel_position == 36
goto_if_false @WOF_12955
$wheel_position_value = 1
goto @WOF_13531

:WOF_12955
if 
  $wheel_position == 37
goto_if_false @WOF_12987
$wheel_position_value = 2
goto @WOF_13531

:WOF_12987
if 
  $wheel_position == 38
goto_if_false @WOF_13019
$wheel_position_value = 1
goto @WOF_13531

:WOF_13019
if 
  $wheel_position == 39
goto_if_false @WOF_13051
$wheel_position_value = 5
goto @WOF_13531

:WOF_13051
if 
  $wheel_position == 40
goto_if_false @WOF_13083
$wheel_position_value = 1
goto @WOF_13531

:WOF_13083
if 
  $wheel_position == 41
goto_if_false @WOF_13115
$wheel_position_value = 20
goto @WOF_13531

:WOF_13115
if 
  $wheel_position == 42
goto_if_false @WOF_13147
$wheel_position_value = 1
goto @WOF_13531

:WOF_13147
if 
  $wheel_position == 43
goto_if_false @WOF_13179
$wheel_position_value = 10
goto @WOF_13531

:WOF_13179
if 
  $wheel_position == 44
goto_if_false @WOF_13211
$wheel_position_value = 1
goto @WOF_13531

:WOF_13211
if 
  $wheel_position == 45
goto_if_false @WOF_13243
$wheel_position_value = 2
goto @WOF_13531

:WOF_13243
if 
  $wheel_position == 46
goto_if_false @WOF_13275
$wheel_position_value = 1
goto @WOF_13531

:WOF_13275
if 
  $wheel_position == 47
goto_if_false @WOF_13307
$wheel_position_value = 5
goto @WOF_13531

:WOF_13307
if 
  $wheel_position == 48
goto_if_false @WOF_13339
$wheel_position_value = 1
goto @WOF_13531

:WOF_13339
if 
  $wheel_position == 49
goto_if_false @WOF_13371
$wheel_position_value = 2
goto @WOF_13531

:WOF_13371
if 
  $wheel_position == 50
goto_if_false @WOF_13403
$wheel_position_value = 1
goto @WOF_13531

:WOF_13403
if 
  $wheel_position == 51
goto_if_false @WOF_13435
$wheel_position_value = 5
goto @WOF_13531

:WOF_13435
if 
  $wheel_position == 52
goto_if_false @WOF_13467
$wheel_position_value = 1
goto @WOF_13531

:WOF_13467
if 
  $wheel_position == 53
goto_if_false @WOF_13499
$wheel_position_value = 2
goto @WOF_13531

:WOF_13499
if 
  $wheel_position == 54
goto_if_false @WOF_13531
$wheel_position_value = 1
goto @WOF_13531

:WOF_13531
return 

:WOF_13533
if 
is_ps2_keyboard_key_just_pressed 85
goto_if_false @WOF_13575
$chip_set_z += 0.001
write_debug_with_float "CHIP_SET_Z" {number} $chip_set_z

:WOF_13575
if 
is_ps2_keyboard_key_just_pressed 74
goto_if_false @WOF_13617
$chip_set_z += -0.001
write_debug_with_float "CHIP_SET_Z" {number} $chip_set_z

:WOF_13617
10@ = 0

:WOF_13624
if 
  6 > 10@
goto_if_false @WOF_15503
set_lvar_int_to_var_int 12@ = $current_bet(10@,6i)
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 1.0
if 
  8@ > 10.0
goto_if_false @WOF_13703
8@ = 10.0

:WOF_13703
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_13757
9@ += 0.03

:WOF_13757
set_var_float_to_var_float $chip_set_1_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_1_z(10@,6f) += 9@
11@ *= -1
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_1(10@,6i)
goto_if_false @WOF_13883
$x, $y, $z = get_object_coordinates $chip_set_1(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_1_z(10@,6f)
set_object_coordinates $chip_set_1(10@,6i) {x} $x {y} $y {z} $z

:WOF_13883
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 5.0
if 
  8@ > 10.0
goto_if_false @WOF_13932
8@ = 10.0

:WOF_13932
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_13986
9@ += 0.03

:WOF_13986
set_var_float_to_var_float $chip_set_2_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_2_z(10@,6f) += 9@
11@ *= -5
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_2(10@,6i)
goto_if_false @WOF_14112
$x, $y, $z = get_object_coordinates $chip_set_2(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_2_z(10@,6f)
set_object_coordinates $chip_set_2(10@,6i) {x} $x {y} $y {z} $z

:WOF_14112
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 10.0
if 
  8@ > 10.0
goto_if_false @WOF_14161
8@ = 10.0

:WOF_14161
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14215
9@ += 0.03

:WOF_14215
set_var_float_to_var_float $chip_set_3_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_3_z(10@,6f) += 9@
11@ *= -10
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_3(10@,6i)
goto_if_false @WOF_14341
$x, $y, $z = get_object_coordinates $chip_set_3(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_3_z(10@,6f)
set_object_coordinates $chip_set_3(10@,6i) {x} $x {y} $y {z} $z

:WOF_14341
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 50.0
if 
  8@ > 10.0
goto_if_false @WOF_14390
8@ = 10.0

:WOF_14390
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14444
9@ += 0.03

:WOF_14444
set_var_float_to_var_float $chip_set_4_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_4_z(10@,6f) += 9@
11@ *= -50
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_4(10@,6i)
goto_if_false @WOF_14570
$x, $y, $z = get_object_coordinates $chip_set_4(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_4_z(10@,6f)
set_object_coordinates $chip_set_4(10@,6i) {x} $x {y} $y {z} $z

:WOF_14570
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 100.0
if 
  8@ > 10.0
goto_if_false @WOF_14619
8@ = 10.0

:WOF_14619
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14673
9@ += 0.03

:WOF_14673
set_var_float_to_var_float $chip_set_5_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_5_z(10@,6f) += 9@
11@ *= -100
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_5(10@,6i)
goto_if_false @WOF_14799
$x, $y, $z = get_object_coordinates $chip_set_5(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_5_z(10@,6f)
set_object_coordinates $chip_set_5(10@,6i) {x} $x {y} $y {z} $z

:WOF_14799
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 200.0
if 
  8@ > 10.0
goto_if_false @WOF_14848
8@ = 10.0

:WOF_14848
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_14902
9@ += 0.03

:WOF_14902
set_var_float_to_var_float $chip_set_6_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_6_z(10@,6f) += 9@
11@ *= -200
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_6(10@,6i)
goto_if_false @WOF_15029
$x, $y, $z = get_object_coordinates $chip_set_6(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_6_z(10@,6f)
set_object_coordinates $chip_set_6(10@,6i) {x} $x {y} $y {z} $z

:WOF_15029
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 500.0
if 
  8@ > 10.0
goto_if_false @WOF_15078
8@ = 10.0

:WOF_15078
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_15132
9@ += 0.03

:WOF_15132
set_var_float_to_var_float $chip_set_7_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_7_z(10@,6f) += 9@
11@ *= -500
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_7(10@,6i)
goto_if_false @WOF_15259
$x, $y, $z = get_object_coordinates $chip_set_7(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_7_z(10@,6f)
set_object_coordinates $chip_set_7(10@,6i) {x} $x {y} $y {z} $z

:WOF_15259
cset_lvar_float_to_lvar_int 8@ =# 12@
8@ /= 1000.0
if 
  8@ > 10.0
goto_if_false @WOF_15308
8@ = 10.0

:WOF_15308
cset_lvar_int_to_lvar_float 11@ =# 8@
cset_lvar_float_to_lvar_int 9@ =# 11@
9@ *= 0.0126
if 
  11@ > 0
goto_if_false @WOF_15362
9@ += 0.03

:WOF_15362
set_var_float_to_var_float $chip_set_8_z(10@,6f) = $chip_set_z
add_float_lvar_to_float_var $chip_set_8_z(10@,6f) += 9@
11@ *= -1000
add_int_lvar_to_int_lvar 12@ += 11@
if 
  does_object_exist $chip_set_8(10@,6i)
goto_if_false @WOF_15489
$x, $y, $z = get_object_coordinates $chip_set_8(10@,6i)
8@, 8@, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} $chip_set_8_z(10@,6f)
set_object_coordinates $chip_set_8(10@,6i) {x} $x {y} $y {z} $z

:WOF_15489
10@ += 1
goto @WOF_13624

:WOF_15503
return 

:WOF_15505
if 
  does_object_exist 0@
goto_if_false @WOF_15865
8@ = get_float_stat StatId.Gambling
if 
  $total_wof_tables == 0
goto_if_false @WOF_15715
if 
  1.0 > 8@
goto_if_false @WOF_15581
19@ = 100
goto @WOF_15701

:WOF_15581
if 
  10.0 > 8@
goto_if_false @WOF_15617
19@ = 1000
goto @WOF_15701

:WOF_15617
if 
  100.0 > 8@
goto_if_false @WOF_15653
19@ = 10000
goto @WOF_15701

:WOF_15653
if 
  1000.0 > 8@
goto_if_false @WOF_15691
19@ = 100000
goto @WOF_15701

:WOF_15691
19@ = 1000000

:WOF_15701
$total_wof_tables += 1
goto @WOF_15865

:WOF_15715
10@ = generate_random_int_in_range 0 {max} 5
switch_start 10@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @WOF_15865 {caseNum1} 0 {caseLabel1} @WOF_15787 {caseNum2} 1 {caseLabel2} @WOF_15801 {caseNum3} 2 {caseLabel3} @WOF_15816 {caseNum4} 3 {caseLabel4} @WOF_15831 {caseNum5} 4 {caseLabel5} @WOF_15848 {caseNum6} -1 {caseLabel6} @WOF_15865 {caseNum7} -1 {caseLabel7} @WOF_15865

:WOF_15787
19@ = 100
goto @WOF_15865

:WOF_15801
19@ = 1000
goto @WOF_15865

:WOF_15816
19@ = 10000
goto @WOF_15865

:WOF_15831
19@ = 100000
goto @WOF_15865

:WOF_15848
19@ = 1000000
goto @WOF_15865

:WOF_15865
return 
$x, $y, $z = get_debug_camera_coordinates 
if 
  does_object_exist 4@
goto_if_false @WOF_15916
$wof_x2, $wof_y2, $wof_z2 = get_object_coordinates 4@
$heading = get_object_heading 4@

:WOF_15916
$heading *= -1.0
8@ = cos $heading
9@ = sin $heading
set_var_float_to_var_float $wof_vec_x = $x
sub_float_var_from_float_var $wof_vec_x -= $wof_x2
set_var_float_to_var_float $wof_vec_y = $y
sub_float_var_from_float_var $wof_vec_y -= $wof_y2
set_var_float_to_var_float $wof_vec_z = $z
sub_float_var_from_float_var $wof_vec_z -= $wof_z2
set_var_float_to_var_float $wof_vec2_x = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_x *= 8@
set_var_float_to_var_float $wof_temp_float3 = $wof_vec_y
mult_float_var_by_float_lvar $wof_temp_float3 *= 9@
sub_float_var_from_float_var $wof_vec2_x -= $wof_temp_float3
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 9@
set_var_float_to_var_float $wof_temp_float3 = $wof_vec_y
mult_float_var_by_float_lvar $wof_temp_float3 *= 8@
add_float_var_to_float_var $wof_vec2_y += $wof_temp_float3
save_newline_to_debug_file 
save_string_to_debug_file "FIXED_CAMERA_POSITION - OFFSET FROM TABLE = "
save_float_to_debug_file $wof_vec2_x
save_float_to_debug_file $wof_vec2_y
save_float_to_debug_file $wof_vec_z
$x, $y, $z = get_debug_camera_point_at 
set_var_float_to_var_float $wof_vec_x = $x
sub_float_var_from_float_var $wof_vec_x -= $wof_x2
set_var_float_to_var_float $wof_vec_y = $y
sub_float_var_from_float_var $wof_vec_y -= $wof_y2
set_var_float_to_var_float $wof_vec_z = $z
sub_float_var_from_float_var $wof_vec_z -= $wof_z2
set_var_float_to_var_float $wof_vec2_x = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_x *= 8@
set_var_float_to_var_float $wof_temp_float3 = $wof_vec_y
mult_float_var_by_float_lvar $wof_temp_float3 *= 9@
sub_float_var_from_float_var $wof_vec2_x -= $wof_temp_float3
set_var_float_to_var_float $wof_vec2_y = $wof_vec_x
mult_float_var_by_float_lvar $wof_vec2_y *= 9@
set_var_float_to_var_float $wof_temp_float3 = $wof_vec_y
mult_float_var_by_float_lvar $wof_temp_float3 *= 8@
add_float_var_to_float_var $wof_vec2_y += $wof_temp_float3
save_newline_to_debug_file 
save_string_to_debug_file "CAMERA_POINT_AT -       OFFSET FROM TABLE = "
save_float_to_debug_file $wof_vec2_x
save_float_to_debug_file $wof_vec2_y
save_float_to_debug_file $wof_vec_z
return 
terminate_this_script 

//-------------External script 19 (DEALER)---------------

:DEALER
script_name 'DEALER'
13@ = 0
if 
  13@ == 1
goto_if_false @DEALER_60
0@ = create_char PedType.Dealer {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:DEALER_60
1@ = 0
2@ = 0
11@ = -1
14@ = 0
if and
  not is_char_dead 0@
  not is_char_dead $scplayer
goto_if_false @DEALER_338
3@, 4@, 5@ = get_char_coordinates 0@
s$txtGlobalDealerZoneName = get_name_of_info_zone 3@ {y} 4@ {z} 5@
set_lvar_text_label 17@s = s$txtGlobalDealerZoneName
$iMyDM = copy_shared_char_decision_maker DecisionMakerCharTemplate.RandomTough
set_char_decision_maker 0@ {handleOrTemplate} $iMyDM
set_char_money 0@ {amount} 2000
start_setting_up_conversation 0@
set_up_conversation_node_with_speech 'DEAL1' {positiveAnswer} 'DEAL2' {negativeAnswer} 'DEAL3' {questionPhrase} SpeechId.Solicit {positiveAnswerPhrase} SpeechId.DrugDealerDislike {negativeAnswerPhrase} SpeechId.DrugDealerHate
13@ = get_int_stat StatId.RespectTotal
if 
  13@ >= 500
goto_if_false @DEALER_271
set_up_conversation_end_node_with_speech 'DEAL2' {phrase} SpeechId.DrugReasonableHigh
set_up_conversation_end_node_with_speech 'DEAL3' {phrase} SpeechId.DrugAggressiveHigh
goto @DEALER_297

:DEALER_271
set_up_conversation_end_node_with_speech 'DEAL2' {phrase} SpeechId.DrugReasonableLow
set_up_conversation_end_node_with_speech 'DEAL3' {phrase} SpeechId.DrugAggressiveLow

:DEALER_297
13@ = get_current_language 
if 
  is_int_lvar_equal_to_constant 13@ == 0
goto_if_false @DEALER_329
finish_setting_up_conversation_no_subtitles 
goto @DEALER_331

:DEALER_329
finish_setting_up_conversation 

:DEALER_331
goto @DEALER_345

:DEALER_338
gosub @DEALER_3913

:DEALER_345
wait 0
if 
  not is_char_dead 0@
goto_if_false @DEALER_471
if 
  not is_char_dead $scplayer
goto_if_false @DEALER_457
if or
  has_char_been_damaged_by_char 0@ {handle} $scplayer
  is_player_targetting_char $player1 {handle} 0@
goto_if_false @DEALER_429
gosub @DEALER_641
gosub @DEALER_3368
goto @DEALER_450

:DEALER_429
gosub @DEALER_846
gosub @DEALER_485
gosub @DEALER_931

:DEALER_450
goto @DEALER_464

:DEALER_457
gosub @DEALER_3913

:DEALER_464
goto @DEALER_478

:DEALER_471
gosub @DEALER_3913

:DEALER_478
goto @DEALER_345

:DEALER_485
if 
  11@ == -1
goto_if_false @DEALER_604
if 
  TIMERA > 15000
goto_if_false @DEALER_597
3@, 4@, 5@ = get_char_coordinates 0@
11@ = get_random_char_in_sphere_only_drugs_buyers 3@ {y} 4@ {z} 5@ {radius} 5.0
if 
  11@ <> -1
goto_if_false @DEALER_597
if 
  is_char_in_any_car 11@
goto_if_false @DEALER_597
12@ = store_car_char_is_in_no_save 11@

:DEALER_597
goto @DEALER_639

:DEALER_604
if or
  is_char_dead 11@
  not does_char_exist 11@
  is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
goto_if_false @DEALER_639
11@ = -1

:DEALER_639
return 

:DEALER_641
mark_char_as_no_longer_needed 11@
if 
  not is_char_dead 11@
goto_if_false @DEALER_709
if 
  not is_car_dead 12@
goto_if_false @DEALER_709
if 
  not is_car_on_fire 12@
goto_if_false @DEALER_709
task_car_drive_wander 11@ {vehicle} 12@ {speed} 20.0 {drivingMode} DrivingMode.AvoidCars

:DEALER_709
TIMERA = 0
11@ = -1
return 

:DEALER_725
if 
  not is_char_dead 0@
goto_if_false @DEALER_844
if 
  not is_char_dead 11@
goto_if_false @DEALER_844
3@, 4@, 5@ = get_char_coordinates 0@
6@, 7@, 8@ = get_char_coordinates 11@
9@ = get_distance_between_coords_2d 3@ {fromY} 4@ {toX} 6@ {toZ} 7@
if 
  9@ > 2.0
goto_if_false @DEALER_837
13@ = 1
goto @DEALER_844

:DEALER_837
13@ = 0

:DEALER_844
return 

:DEALER_846
if 
  has_model_loaded 346
goto_if_false @DEALER_929
if 
  not has_char_got_weapon 0@ {weaponType} WeaponType.Pistol
goto_if_false @DEALER_929
give_weapon_to_char 0@ {weaponType} WeaponType.Pistol {ammo} 1000
if 
  15@ <> 1
goto_if_false @DEALER_922
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
goto @DEALER_929

:DEALER_922
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol

:DEALER_929
return 

:DEALER_931
switch_start 1@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DEALER_1285 {caseNum1} 0 {caseLabel1} @DEALER_994 {caseNum2} 1 {caseLabel2} @DEALER_1151 {caseNum3} 2 {caseLabel3} @DEALER_1211 {caseNum4} 3 {caseLabel4} @DEALER_1271 {caseNum5} -1 {caseLabel5} @DEALER_1299 {caseNum6} -1 {caseLabel6} @DEALER_1299 {caseNum7} -1 {caseLabel7} @DEALER_1299

:DEALER_994
if 
  is_player_in_position_for_conversation 0@
goto_if_false @DEALER_1038
2@ = 0
1@ = 3
gosub @DEALER_2884
goto @DEALER_1144

:DEALER_1038
if 
  11@ > -1
goto_if_false @DEALER_1137
gosub @DEALER_725
if 
  13@ == 0
goto_if_false @DEALER_1109
2@ = 0
1@ = 2
gosub @DEALER_2636
goto @DEALER_1130

:DEALER_1109
2@ = 0
1@ = 1
gosub @DEALER_1793

:DEALER_1130
goto @DEALER_1144

:DEALER_1137
gosub @DEALER_1301

:DEALER_1144
goto @DEALER_1299

:DEALER_1151
if 
  11@ > -1
goto_if_false @DEALER_1183
gosub @DEALER_1793
goto @DEALER_1204

:DEALER_1183
1@ = 0
2@ = 0
gosub @DEALER_1301

:DEALER_1204
goto @DEALER_1299

:DEALER_1211
if 
  11@ > -1
goto_if_false @DEALER_1243
gosub @DEALER_2636
goto @DEALER_1264

:DEALER_1243
1@ = 0
2@ = 0
gosub @DEALER_1301

:DEALER_1264
goto @DEALER_1299

:DEALER_1271
gosub @DEALER_2884
goto @DEALER_1299

:DEALER_1285
gosub @DEALER_3913
goto @DEALER_1299

:DEALER_1299
return 

:DEALER_1301
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DEALER_1791 {caseNum1} 0 {caseLabel1} @DEALER_1364 {caseNum2} 1 {caseLabel2} @DEALER_1488 {caseNum3} 2 {caseLabel3} @DEALER_1758 {caseNum4} -1 {caseLabel4} @DEALER_1791 {caseNum5} -1 {caseLabel5} @DEALER_1791 {caseNum6} -1 {caseLabel6} @DEALER_1791 {caseNum7} -1 {caseLabel7} @DEALER_1791

:DEALER_1364
if 
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
goto_if_false @DEALER_1481
enable_conversation 0@ {state} True
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1481
task_play_anim 0@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
TIMERB = 0
14@ = 3000
2@ += 1

:DEALER_1481
goto @DEALER_1791

:DEALER_1488
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 14@
goto_if_false @DEALER_1751
set_char_wanted_by_police 0@ {state} False
13@ = generate_random_int_in_range 1 {max} 15
if 
  13@ > 5
goto_if_false @DEALER_1659
if 
  13@ > 10
goto_if_false @DEALER_1610
13@ = get_script_task_status 0@ {taskId} 1481
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1603
task_look_about 0@ {time} -1
14@ = 2000

:DEALER_1603
goto @DEALER_1652

:DEALER_1610
13@ = get_script_task_status 0@ {taskId} 1502
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1652
task_wander_standard 0@
14@ = 1500

:DEALER_1652
goto @DEALER_1737

:DEALER_1659
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_1737
task_play_anim 0@ {animationName} "DEALER_IDLE" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
14@ = 3000

:DEALER_1737
TIMERB = 0
2@ += 1

:DEALER_1751
goto @DEALER_1791

:DEALER_1758
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 14@
goto_if_false @DEALER_1784
2@ = 1

:DEALER_1784
goto @DEALER_1791

:DEALER_1791
return 

:DEALER_1793
switch_start 2@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DEALER_2634 {caseNum1} 0 {caseLabel1} @DEALER_1856 {caseNum2} 1 {caseLabel2} @DEALER_1907 {caseNum3} 2 {caseLabel3} @DEALER_2044 {caseNum4} 3 {caseLabel4} @DEALER_2074 {caseNum5} 4 {caseLabel5} @DEALER_2295 {caseNum6} 5 {caseLabel6} @DEALER_2505 {caseNum7} -1 {caseLabel7} @DEALER_2634

:DEALER_1856
enable_conversation 0@ {state} False
task_look_about 0@ {time} -1
task_goto_char 11@ {target} 0@ {time} 20000 {radius} 1.0
TIMERB = 0
2@ += 1
goto @DEALER_2634

:DEALER_1907
3@, 4@, 5@ = get_char_coordinates 0@
6@, 7@, 8@ = get_char_coordinates 11@
9@ = get_distance_between_coords_2d 3@ {fromY} 4@ {toX} 6@ {toZ} 7@
task_look_at_char 0@ {target} 11@ {time} -1
if 
  1.8 >= 9@
goto_if_false @DEALER_1997
2@ += 1
goto @DEALER_2037

:DEALER_1997
if 
  TIMERB > 20000
goto_if_false @DEALER_2037
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2037
goto @DEALER_2634

:DEALER_2044
task_turn_char_to_face_char 11@ {target} 0@
task_turn_char_to_face_char 0@ {target} 11@
2@ += 1
goto @DEALER_2634

:DEALER_2074
13@ = get_script_task_status 11@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2139
13@ = get_script_task_status 11@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2139
task_stand_still 11@ {time} -1

:DEALER_2139
13@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2288
13@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2204
task_stand_still 0@ {time} -1

:DEALER_2204
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2288
13@ = set_char_say_context 11@ {phrase} SpeechId.DrugsBuy
task_play_anim 11@ {animationName} "SHOP_PAY" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ += 1

:DEALER_2288
goto @DEALER_2634

:DEALER_2295
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2498
clear_look_at 0@
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2404
task_play_anim 11@ {animationName} "DRUGS_BUY" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_wanted_by_police 11@ {state} True

:DEALER_2404
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2498
13@ = set_char_say_context 0@ {phrase} SpeechId.DrugsSell
task_play_anim 0@ {animationName} "DEALER_DEAL" {animationFile} "DEALER" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
set_char_wanted_by_police 0@ {state} True
2@ += 1

:DEALER_2498
goto @DEALER_2634

:DEALER_2505
13@ = get_script_task_status 11@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2570
13@ = get_script_task_status 11@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2570
task_stand_still 11@ {time} -1

:DEALER_2570
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2627
set_char_drugged_up 11@ {state} True
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2627
goto @DEALER_2634

:DEALER_2634
return 

:DEALER_2636
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DEALER_2882 {caseNum1} 0 {caseLabel1} @DEALER_2699 {caseNum2} 1 {caseLabel2} @DEALER_2769 {caseNum3} 2 {caseLabel3} @DEALER_2825 {caseNum4} -1 {caseLabel4} @DEALER_2882 {caseNum5} -1 {caseLabel5} @DEALER_2882 {caseNum6} -1 {caseLabel6} @DEALER_2882 {caseNum7} -1 {caseLabel7} @DEALER_2882

:DEALER_2699
enable_conversation 0@ {state} False
3@, 4@, 5@ = get_char_coordinates 0@
task_look_at_char 0@ {target} 11@ {time} -1
task_follow_footsteps 0@ {target} 11@
13@ = set_char_say_context 0@ {phrase} SpeechId.DrugsSell
TIMERB = 0
2@ += 1
goto @DEALER_2882

:DEALER_2769
if 
  TIMERB > 6000
goto_if_false @DEALER_2818
clear_look_at 0@
task_follow_path_nodes_to_coord 0@ {x} 3@ {y} 4@ {z} 5@ {speed} MoveState.Walk {time} -2
2@ += 1

:DEALER_2818
goto @DEALER_2882

:DEALER_2825
13@ = get_script_task_status 0@ {taskId} 1525
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_2875
gosub @DEALER_641
2@ = 0
1@ = 0

:DEALER_2875
goto @DEALER_2882

:DEALER_2882
return 

:DEALER_2884
switch_start 2@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DEALER_3366 {caseNum1} 0 {caseLabel1} @DEALER_2947 {caseNum2} 1 {caseLabel2} @DEALER_2976 {caseNum3} 2 {caseLabel3} @DEALER_3178 {caseNum4} 3 {caseLabel4} @DEALER_3312 {caseNum5} -1 {caseLabel5} @DEALER_3366 {caseNum6} -1 {caseLabel6} @DEALER_3366 {caseNum7} -1 {caseLabel7} @DEALER_3366

:DEALER_2947
TIMERB = 0
task_turn_char_to_face_char 0@ {target} $scplayer
2@ += 1
goto @DEALER_3366

:DEALER_2976
if 
  not is_help_message_being_displayed 
goto_if_false @DEALER_3039
if and
  not is_conversation_at_node 0@ {speech} 'DEAL2'
  not is_conversation_at_node 0@ {speech} 'DEAL3'
goto_if_false @DEALER_3039
print_help 'TALK_1'

:DEALER_3039
13@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_3128
task_look_at_char 0@ {target} $scplayer {time} -1
13@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @DEALER_3114
task_stand_still 0@ {time} -2

:DEALER_3114
2@ += 1
goto @DEALER_3171

:DEALER_3128
if or
  not is_player_in_position_for_conversation 0@
  TIMERB > 15000
goto_if_false @DEALER_3171
clear_look_at 0@
2@ = 0
1@ = 0

:DEALER_3171
goto @DEALER_3366

:DEALER_3178
if and
  is_conversation_at_node 0@ {speech} 'DEAL3'
  TIMERB > 9000
goto_if_false @DEALER_3220
clear_help 
gosub @DEALER_3368

:DEALER_3220
if and
  is_conversation_at_node 0@ {speech} 'DEAL2'
  TIMERB > 9000
goto_if_false @DEALER_3262
clear_help 
gosub @DEALER_3595

:DEALER_3262
if or
  not is_player_in_position_for_conversation 0@
  TIMERB > 15000
goto_if_false @DEALER_3305
clear_look_at 0@
2@ = 0
1@ = 0

:DEALER_3305
goto @DEALER_3366

:DEALER_3312
if 
  TIMERB > 2000
goto_if_false @DEALER_3359
clear_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedDislike
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
2@ = 0
1@ = 0

:DEALER_3359
goto @DEALER_3366

:DEALER_3366
return 

:DEALER_3368
clear_help 
clear_look_at 0@
enable_conversation 0@ {state} False
if 
  has_char_got_weapon 0@ {weaponType} WeaponType.Pistol
goto_if_false @DEALER_3407
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol

:DEALER_3407
if 
  15@ <> 1
goto_if_false @DEALER_3593
15@ = 1
13@ = get_int_stat StatId.RespectTotal
if 
  13@ > 500
goto_if_false @DEALER_3529
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
clear_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
2@ = 0
1@ = 0
goto @DEALER_3593

:DEALER_3529
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
clear_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedHate
add_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
2@ = 0
1@ = 0

:DEALER_3593
return 

:DEALER_3595
clear_help 
clear_look_at 0@
enable_conversation 0@ {state} False
13@ = get_int_stat StatId.Respect
if 
  15@ <> 2
goto_if_false @DEALER_3868
15@ = 2
if 
  13@ > 500
goto_if_false @DEALER_3738
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
clear_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedDislike
add_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexFleeAnyMeans {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
2@ = 0
1@ = 0
goto @DEALER_3868

:DEALER_3738
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
clear_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedDislike
if 
  has_char_got_weapon 0@ {weaponType} WeaponType.Pistol
goto_if_false @DEALER_3820
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
add_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleGunCtrl {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
goto @DEALER_3854

:DEALER_3820
add_char_decision_maker_event_response $iMyDM {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True

:DEALER_3854
TIMERB = 0
2@ += 1

:DEALER_3868
return 

:DEALER_3870
16@ = get_zone_dealer_strength 17@s
if 
  16@ > 0
goto_if_false @DEALER_3903
16@ -= 1

:DEALER_3903
set_zone_dealer_strength 17@s {strength} 16@
return 

:DEALER_3913
if 
  15@ == 1
goto_if_false @DEALER_3938
gosub @DEALER_3870

:DEALER_3938
clear_conversation_for_char 0@
if 
  11@ > -1
goto_if_false @DEALER_3966
mark_char_as_no_longer_needed 11@

:DEALER_3966
remove_decision_maker $iMyDM
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 1@
write_debug_with_int "SUBSTATESTATUS" {number} 2@
write_debug_with_int "TIMER_B" {number} TIMERB
write_debug_with_int "TIMER_A" {number} TIMERA
return 
terminate_this_script 

//-------------External script 20 (HOME_BRAINS)---------------

:HMLES
script_name 'HMLES'
$homeless_brain_flag = 0
$homeless_waiting_flag = 0
$homeless_number = 0
2@ = 0
12@ = 0
13@ = 0
14@ = 0
11@ = 0
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_109
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:HMLES_109
$homeless_number = generate_random_int_in_range 0 {max} 4
$homeless_number = 3
if 
  $fire_people_created <> 0
goto_if_false @HMLES_159
12@ = 1
terminate_this_script 
goto @HMLES_236

:HMLES_159
if 
  does_char_exist 0@
goto_if_false @HMLES_229
if 
  not is_char_dead 0@
goto_if_false @HMLES_229
clear_char_tasks_immediately 0@
if 
  $homeless_number == 2
goto_if_false @HMLES_229
set_anim_group_for_char 0@ {animGroup} "DRUNKMAN"

:HMLES_229
$fire_people_created = 1

:HMLES_236
wait 0
if and
  does_char_exist 0@
  12@ == 0
goto_if_false @HMLES_3525
if and
  is_player_playing $player1
  not is_char_dead 0@
goto_if_false @HMLES_3518
if 
  is_char_in_any_car $scplayer
goto_if_false @HMLES_322
1@ = store_car_char_is_in_no_save $scplayer
2@ = 1
goto @HMLES_329

:HMLES_322
2@ = 0

:HMLES_329
if 
  $homeless_brain_flag == 0
goto_if_false @HMLES_1945
if 
  $homeless_number == 0
goto_if_false @HMLES_463
if 
  locate_char_any_means_char_3d $scplayer {target} 0@ {xRadius} 10.0 {yRadius} 10.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @HMLES_463
if 
  has_char_spotted_char 0@ {target} $scplayer
goto_if_false @HMLES_463
17@ = set_char_say_context 0@ {phrase} SpeechId.BumLatch
if 
  2@ == 0
goto_if_false @HMLES_456
task_walk_alongside_char 0@ {target} $scplayer

:HMLES_456
$homeless_brain_flag = 1

:HMLES_463
if 
  $homeless_number == 1
goto_if_false @HMLES_1012
if 
  $homeless_waiting_flag == 0
goto_if_false @HMLES_518
request_animation "SUNBATHE"
$homeless_waiting_flag = 1

:HMLES_518
if 
  $homeless_waiting_flag == 1
goto_if_false @HMLES_573
if 
  has_animation_loaded "SUNBATHE"
goto_if_false @HMLES_573
$homeless_waiting_flag = 2
goto @HMLES_573

:HMLES_573
if 
  $homeless_waiting_flag == 2
goto_if_false @HMLES_1012
if 
  has_animation_loaded "SUNBATHE"
goto_if_false @HMLES_1000
7@, 8@, 9@ = get_char_coordinates 0@
3@ = open_sequence_task 
task_play_anim -1 {animationName} "PARKSIT_M_IN" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEB" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEA" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEC" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEB" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_IDLEC" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PARKSIT_M_OUT" {animationFile} "SUNBATHE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 3@
perform_sequence_task 0@ {sequence} 3@
clear_sequence_task 3@
11@ = 0
$homeless_brain_flag = 1
$homeless_waiting_flag = 3
goto @HMLES_1012

:HMLES_1000
request_animation "SUNBATHE"

:HMLES_1012
if 
  $homeless_number == 2
goto_if_false @HMLES_1610
if 
  $homeless_waiting_flag == 0
goto_if_false @HMLES_1079
request_animation "FOOD"
request_animation "VENDING"
request_model #CJ_JUICE_CAN
$homeless_waiting_flag = 1

:HMLES_1079
if 
  $homeless_waiting_flag == 1
goto_if_false @HMLES_1185
if and
  has_animation_loaded "FOOD"
  has_animation_loaded "VENDING"
  has_model_loaded #CJ_JUICE_CAN
goto_if_false @HMLES_1185
7@, 8@, 9@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.3 {zOffset} 0.0
19@ = create_object #CJ_JUICE_CAN {x} 7@ {y} 8@ {z} 9@
$homeless_waiting_flag = 2

:HMLES_1185
if 
  $homeless_waiting_flag == 2
goto_if_false @HMLES_1610
if 
  has_animation_loaded "VENDING"
goto_if_false @HMLES_1599
if 
  has_animation_loaded "FOOD"
goto_if_false @HMLES_1584
7@, 8@, 9@ = get_char_coordinates 0@
3@ = open_sequence_task 
task_pick_up_object -1 {object} 19@ {xOffset} 0.1 {yOffset} 0.1 {zOffset} 0.0 {bone} PedBoneId.HandL {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1
task_play_anim -1 {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "WALK_DRUNK" {animationFile} "PED" {blendSpeed} 1004.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "VEND_DRINK_P" {animationFile} "VENDING" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "WALK_DRUNK" {animationFile} "PED" {blendSpeed} 1004.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "VEND_DRINK2_P" {animationFile} "VENDING" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 1004.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 3@
perform_sequence_task 0@ {sequence} 3@
clear_sequence_task 3@
$homeless_brain_flag = 1
$homeless_waiting_flag = 3
goto @HMLES_1592

:HMLES_1584
request_animation "FOOD"

:HMLES_1592
goto @HMLES_1610

:HMLES_1599
request_animation "VENDING"

:HMLES_1610
if 
  $homeless_number == 3
goto_if_false @HMLES_1945
if 
  $homeless_waiting_flag == 0
goto_if_false @HMLES_1665
request_animation "PAULNMAC"
$homeless_waiting_flag = 1

:HMLES_1665
if 
  $homeless_waiting_flag == 1
goto_if_false @HMLES_1713
if 
  has_animation_loaded "PAULNMAC"
goto_if_false @HMLES_1713
$homeless_waiting_flag = 2

:HMLES_1713
if 
  $homeless_waiting_flag == 2
goto_if_false @HMLES_1945
if 
  has_animation_loaded "PAULNMAC"
goto_if_false @HMLES_1933
7@, 8@, 9@ = get_char_coordinates 0@
3@ = open_sequence_task 
task_play_anim -1 {animationName} "PISS_IN" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_LOOP" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "PISS_OUT" {animationFile} "PAULNMAC" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_wander_standard -1
close_sequence_task 3@
perform_sequence_task 0@ {sequence} 3@
clear_sequence_task 3@
$homeless_brain_flag = 1
$homeless_waiting_flag = 3
goto @HMLES_1945

:HMLES_1933
request_animation "PAULNMAC"

:HMLES_1945
if 
  $homeless_brain_flag == 1
goto_if_false @HMLES_2069
if 
  $homeless_number == 0
goto_if_false @HMLES_1992
17@ = set_char_say_context 0@ {phrase} SpeechId.Solicit

:HMLES_1992
if 
  $homeless_number == 1
goto_if_false @HMLES_2021
17@ = set_char_say_context 0@ {phrase} SpeechId.Solicit

:HMLES_2021
if 
  $homeless_number == 2
goto_if_false @HMLES_2039

:HMLES_2039
if 
  $homeless_number == 3
goto_if_false @HMLES_2057

:HMLES_2057
4@ = get_game_timer 
$homeless_brain_flag = 2

:HMLES_2069
if 
  $homeless_brain_flag == 2
goto_if_false @HMLES_2717
if 
  $homeless_number == 0
goto_if_false @HMLES_2217
if 
  not is_message_being_displayed 
goto_if_false @HMLES_2217
5@ = get_game_timer 
set_lvar_int_to_lvar_int 6@ = 5@
sub_int_lvar_from_int_lvar 6@ -= 4@
if and
  6@ > 8000
  10000 > 6@
goto_if_false @HMLES_2206
17@ = set_char_say_context 0@ {phrase} SpeechId.SolicitUnreasonable
task_kill_char_on_foot 0@ {target} $scplayer
$fire_people_created = 0
12@ = 1
goto @HMLES_2217

:HMLES_2206
17@ = set_char_say_context 0@ {phrase} SpeechId.Solicit

:HMLES_2217
if 
  $homeless_number == 1
goto_if_false @HMLES_2381
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2381
16@ = get_sequence_progress 0@
if 
  16@ > 6
goto_if_false @HMLES_2381
if 
  11@ == 0
goto_if_false @HMLES_2327
11@ = 1
4@ = get_game_timer 
goto @HMLES_2381

:HMLES_2327
5@ = get_game_timer 
set_lvar_int_to_lvar_int 6@ = 5@
sub_int_lvar_from_int_lvar 6@ -= 4@
if 
  6@ > 15000
goto_if_false @HMLES_2381
$homeless_brain_flag = 0
$homeless_waiting_flag = 0

:HMLES_2381
if 
  $homeless_number == 2
goto_if_false @HMLES_2553
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2553
if 
  is_char_playing_anim 0@ {animationName} "EAT_VOMIT_P"
goto_if_false @HMLES_2553
7@, 8@, 9@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.355 {yOffset} -0.116 {zOffset} 0.048
10@ = get_char_anim_current_time 0@ {animationName} "EAT_VOMIT_P"
15@ = create_fx_system "PUKE" {x} 7@ {y} 8@ {z} 9@ {ignoreBoundingChecks} True
10@ = 0.0
11@ = 0
$homeless_brain_flag = 3

:HMLES_2553
if 
  $homeless_number == 3
goto_if_false @HMLES_2717
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_2717
if 
  is_char_playing_anim 0@ {animationName} "PISS_IN"
goto_if_false @HMLES_2717
10@ = get_char_anim_current_time 0@ {animationName} "PISS_IN"
15@ = create_fx_system_on_char_with_direction "PETROLCAN" {char} 0@ {xOffset} 0.0 {yOffset} 0.58 {zOffset} -0.08 {xDirection} 0.0 {yDirection} 0.01 {zDirection} 0.0 {ignoreBoundingChecks} True
10@ = 0.0
11@ = 0
$homeless_brain_flag = 3

:HMLES_2717
if 
  $homeless_brain_flag == 3
goto_if_false @HMLES_3468
if 
  $homeless_number == 0
goto_if_false @HMLES_2753

:HMLES_2753
if 
  $homeless_number == 1
goto_if_false @HMLES_2771

:HMLES_2771
if 
  $homeless_number == 2
goto_if_false @HMLES_2993
if 
  10@ <> 1.0
goto_if_false @HMLES_2969
if 
  not is_char_dead 0@
goto_if_false @HMLES_2883
if 
  is_char_playing_anim 0@ {animationName} "EAT_VOMIT_P"
goto_if_false @HMLES_2876
10@ = get_char_anim_current_time 0@ {animationName} "EAT_VOMIT_P"

:HMLES_2876
goto @HMLES_2893

:HMLES_2883
10@ = 1.0

:HMLES_2893
if 
  11@ == 0
goto_if_false @HMLES_2962
if 
  10@ >= 0.5
goto_if_false @HMLES_2962
if 
  15@ <> -1
goto_if_false @HMLES_2955
play_fx_system 15@

:HMLES_2955
11@ = 1

:HMLES_2962
goto @HMLES_2993

:HMLES_2969
stop_fx_system 15@
kill_fx_system 15@
$fire_people_created = 0
12@ = 1

:HMLES_2993
if 
  $homeless_number == 3
goto_if_false @HMLES_3468
if 
  2 > 11@
goto_if_false @HMLES_3199
16@ = get_script_task_status 0@ {taskId} 1560
if 
  is_int_lvar_equal_to_constant 16@ == 7
goto_if_false @HMLES_3114
if 
  11@ == 1
goto_if_false @HMLES_3093
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3093
$fire_people_created = 0
12@ = 1
goto @HMLES_3199

:HMLES_3114
if 
  is_int_lvar_equal_to_constant 16@ == 1
goto_if_false @HMLES_3182
16@ = get_sequence_progress 0@
if 
  16@ > 2
goto_if_false @HMLES_3175
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3175
goto @HMLES_3199

:HMLES_3182
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3199
if 
  11@ == 0
goto_if_false @HMLES_3368
if 
  not is_char_dead 0@
goto_if_false @HMLES_3282
if 
  is_char_playing_anim 0@ {animationName} "PISS_IN"
goto_if_false @HMLES_3275
10@ = get_char_anim_current_time 0@ {animationName} "PISS_IN"

:HMLES_3275
goto @HMLES_3292

:HMLES_3282
10@ = 1.0

:HMLES_3292
if 
  11@ == 0
goto_if_false @HMLES_3361
if 
  10@ >= 0.6
goto_if_false @HMLES_3361
if 
  15@ <> -1
goto_if_false @HMLES_3354
play_fx_system 15@

:HMLES_3354
11@ = 1

:HMLES_3361
goto @HMLES_3468

:HMLES_3368
if 
  11@ == 1
goto_if_false @HMLES_3468
if 
  is_char_playing_anim 0@ {animationName} "PISS_OUT"
goto_if_false @HMLES_3468
10@ = get_char_anim_current_time 0@ {animationName} "PISS_OUT"
if 
  10@ >= 0.42
goto_if_false @HMLES_3468
stop_fx_system 15@
kill_fx_system 15@
11@ = 2

:HMLES_3468
if 
  not locate_char_any_means_char_3d $scplayer {target} 0@ {xRadius} 30.0 {yRadius} 30.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @HMLES_3518
$fire_people_created = 0
12@ = 1

:HMLES_3518
goto @HMLES_3539

:HMLES_3525
$fire_people_created = 0
12@ = 1

:HMLES_3539
if 
  is_char_dead 0@
goto_if_false @HMLES_3569
12@ = 1
$fire_people_created = 0

:HMLES_3569
if 
  12@ == 1
goto_if_false @HMLES_3694
if 
  does_char_exist 0@
goto_if_false @HMLES_3624
if 
  not is_char_dead 0@
goto_if_false @HMLES_3624
task_wander_standard 0@

:HMLES_3624
stop_fx_system 15@
kill_fx_system 15@
mark_char_as_no_longer_needed 0@
mark_model_as_no_longer_needed #CJ_JUICE_CAN
mark_object_as_no_longer_needed 19@
remove_animation "FOOD"
remove_animation "VENDING"
remove_animation "SUNBATHE"
remove_animation "PAULNMAC"
terminate_this_script 

:HMLES_3694
goto @HMLES_236
terminate_this_script 

//-------------External script 21 (POOL_SCRIPT)---------------

:POOL
script_name 'POOL'
if 
  $active_pool_script == 0
goto_if_false @POOL_84
if 
  $onmission == 0
goto_if_false @POOL_75
$active_pool_script = 1
$active_pool_table = 0
$active_pool_opponent = 0
goto @POOL_77

:POOL_75
terminate_this_script 

:POOL_77
goto @POOL_86

:POOL_84
terminate_this_script 

:POOL_86
3@ = 0

:POOL_93
wait 0
if 
  3@ == -1
goto_if_false @POOL_251
0@ = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_opponent = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
$active_pool_table = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0
$active_initial_cue = create_object #K_POOLTABLESM {x} 0.0 {y} 0.0 {z} 0.0

:POOL_251
if 
  3@ == 0
goto_if_false @POOL_474
if 
  is_player_playing $player1
goto_if_false @POOL_467
if 
  can_player_start_mission $player1
goto_if_false @POOL_453
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @POOL_439
5@ = generate_random_int_in_range 0 {max} 2
if 
  5@ == 0
goto_if_false @POOL_360
set_lvar_int_to_constant 7@ = 66
goto @POOL_367

:POOL_360
set_lvar_int_to_constant 7@ = 67

:POOL_367
request_model 7@
request_animation "POOL"
request_model 338

:POOL_385
if or
  not has_model_loaded 7@
  not has_animation_loaded "POOL"
  not has_model_loaded 338
goto_if_false @POOL_425
wait 0
goto @POOL_385

:POOL_425
3@ += 1
goto @POOL_446

:POOL_439
gosub @POOL_2110

:POOL_446
goto @POOL_460

:POOL_453
gosub @POOL_2110

:POOL_460
goto @POOL_474

:POOL_467
gosub @POOL_2110

:POOL_474
if 
  3@ == 1
goto_if_false @POOL_1183
if 
  is_player_playing $player1
goto_if_false @POOL_1176
if 
  can_player_start_mission $player1
goto_if_false @POOL_1162
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @POOL_1148
if 
  does_object_exist 0@
goto_if_false @POOL_1134
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0219 {yOffset} -1.1236 {zOffset} 0.5363
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
if 
  not does_char_exist 1@
goto_if_false @POOL_804
if 
  not does_char_exist $active_pool_opponent
goto_if_false @POOL_688
1@ = create_char PedType.CivMale {modelId} 7@ {x} $x {y} $y {z} $z
set_char_decision_maker 1@ {handleOrTemplate} $iGlobalPedPanicDM
mark_model_as_no_longer_needed 7@
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading
goto @POOL_797

:POOL_688
if 
  not is_char_dead $active_pool_opponent
goto_if_false @POOL_749
set_lvar_int_to_var_int 1@ = $active_pool_opponent
set_char_coordinates 1@ {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading
goto @POOL_797

:POOL_749
1@ = create_char PedType.CivMale {modelId} 7@ {x} $x {y} $y {z} $z
set_char_decision_maker 1@ {handleOrTemplate} $iGlobalPedPanicDM
mark_model_as_no_longer_needed 7@
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading

:POOL_797
goto @POOL_850

:POOL_804
if 
  not is_char_dead 1@
goto_if_false @POOL_850
set_char_coordinates 1@ {x} $x {y} $y {z} $z
$heading = get_object_heading 0@
set_char_heading 1@ {heading} $heading

:POOL_850
if 
  not does_object_exist 2@
goto_if_false @POOL_888
2@ = create_object #K_POOLQ {x} 0.0 {y} 0.0 {z} 0.0

:POOL_888
if 
  not is_char_dead 1@
goto_if_false @POOL_964
if 
  not is_char_holding_object 1@ {handle} 2@
goto_if_false @POOL_964
task_pick_up_object 1@ {object} 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 1

:POOL_964
6@ = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "POOL_CHALKCUE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  is_player_playing $player1
goto_if_false @POOL_1035
task_look_at_char -1 {target} $scplayer {time} 9000

:POOL_1035
task_play_anim_non_interruptable -1 {animationName} "POOL_IDLE_STANCE" {animationFile} "POOL" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
set_sequence_to_repeat 6@ {state} True
close_sequence_task 6@
if 
  not is_char_dead 1@
goto_if_false @POOL_1115
perform_sequence_task 1@ {sequence} 6@

:POOL_1115
clear_sequence_task 6@
3@ += 1
goto @POOL_1141

:POOL_1134
gosub @POOL_2110

:POOL_1141
goto @POOL_1155

:POOL_1148
gosub @POOL_2110

:POOL_1155
goto @POOL_1169

:POOL_1162
gosub @POOL_2110

:POOL_1169
goto @POOL_1183

:POOL_1176
gosub @POOL_2110

:POOL_1183
if 
  3@ == 2
goto_if_false @POOL_1721
if 
  $onmission == 0
goto_if_false @POOL_1693
if 
  is_player_playing $player1
goto_if_false @POOL_1679
if 
  $iSetCasinoPanic == 0
goto_if_false @POOL_1644
if 
  does_object_exist 0@
goto_if_false @POOL_1630
if 
  not is_char_dead 1@
goto_if_false @POOL_1616
if 
  has_char_been_damaged_by_char 1@ {handle} $scplayer
goto_if_false @POOL_1364
clear_char_tasks 1@
drop_object 1@ {state} False
delete_object 2@
give_weapon_to_char 1@ {weaponType} WeaponType.PoolCue {ammo} 99999
task_kill_char_on_foot 1@ {target} $scplayer
clear_help 
4@ = 0
goto @POOL_2001
goto @POOL_1609

:POOL_1364
if 
  locate_char_on_foot_char_3d 1@ {target} $scplayer {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @POOL_1582
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @POOL_1539
5@ = store_score $player1
if 
  50 > 5@
goto_if_false @POOL_1466
print_now 'NOCASH' {time} 3000 {flag} 1
goto @POOL_1532

:POOL_1466
if 
  4@ == 1
goto_if_false @POOL_1494
clear_help 
set_lvar_int_to_var_int 4@ = $onmission

:POOL_1494
set_var_int_to_lvar_int $active_pool_table = 0@
set_var_int_to_lvar_int $active_pool_opponent = 1@
set_var_int_to_lvar_int $active_initial_cue = 2@
$load_and_launch_mission_if_poss = 5
3@ += 1

:POOL_1532
goto @POOL_1575

:POOL_1539
if 
  4@ == 0
goto_if_false @POOL_1575
print_help_forever 'POOL_A'
4@ = 1

:POOL_1575
goto @POOL_1609

:POOL_1582
if 
  4@ == 1
goto_if_false @POOL_1609
clear_help 
4@ = 0

:POOL_1609
goto @POOL_1623

:POOL_1616
goto @POOL_2001

:POOL_1623
goto @POOL_1637

:POOL_1630
goto @POOL_2001

:POOL_1637
goto @POOL_1672

:POOL_1644
if 
  not is_char_dead 1@
goto_if_false @POOL_1665
clear_char_tasks 1@

:POOL_1665
goto @POOL_2001

:POOL_1672
goto @POOL_1686

:POOL_1679
goto @POOL_2001

:POOL_1686
goto @POOL_1721

:POOL_1693
if 
  not is_char_dead 1@
goto_if_false @POOL_1714
clear_char_tasks 1@

:POOL_1714
goto @POOL_2001

:POOL_1721
if 
  3@ == 3
goto_if_false @POOL_1764
if 
  $onmission == 1
goto_if_false @POOL_1764
3@ += 1

:POOL_1764
if 
  3@ == 4
goto_if_false @POOL_1896
if 
  $onmission == 0
goto_if_false @POOL_1896
if 
  is_player_playing $player1
goto_if_false @POOL_1896
if 
  can_player_start_mission $player1
goto_if_false @POOL_1896
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @POOL_1896
if 
  does_object_exist 0@
goto_if_false @POOL_1896
if 
  not is_char_dead 1@
goto_if_false @POOL_1896
3@ = 1
goto @POOL_474

:POOL_1896
if 
  is_player_playing $player1
goto_if_false @POOL_1987
if 
  does_object_exist 0@
goto_if_false @POOL_1973
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @POOL_1966
goto @POOL_2001

:POOL_1966
goto @POOL_1980

:POOL_1973
goto @POOL_2001

:POOL_1980
goto @POOL_1994

:POOL_1987
goto @POOL_2001

:POOL_1994
goto @POOL_93

:POOL_2001
if 
  is_player_playing $player1
goto_if_false @POOL_2092
if 
  does_object_exist 0@
goto_if_false @POOL_2078
if 
  not locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 80.0 {yRadius} 80.0 {drawSphere} False
goto_if_false @POOL_2071
gosub @POOL_2110

:POOL_2071
goto @POOL_2085

:POOL_2078
gosub @POOL_2110

:POOL_2085
goto @POOL_2099

:POOL_2092
gosub @POOL_2110

:POOL_2099
wait 0
goto @POOL_2001

:POOL_2110
if 
  4@ == 1
goto_if_false @POOL_2130
clear_help 

:POOL_2130
clear_this_print 'NOCASH'
mark_char_as_no_longer_needed 1@
delete_object 2@
mark_model_as_no_longer_needed 7@
remove_animation "POOL"
mark_model_as_no_longer_needed 338
$active_pool_script = 0
$active_pool_table = 0
$active_pool_opponent = 0
terminate_this_script 
return 
terminate_this_script 

//-------------External script 22 (LOWR_CONT)---------------

:LOWRCON
script_name 'LOWRCON'
1@ = 0
if 
  1@ == -1
goto_if_false @LOWRCON_83
0@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
4@ = create_car 413 {x} 0.0 {y} 0.0 {z} 0.0

:LOWRCON_83
2@ = 0

:LOWRCON_90
wait 0
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1747
if or
  $onmission == 0
  2@ == 1
goto_if_false @LOWRCON_1733
if 
  locate_char_any_means_2d $scplayer {x} 1812.369 {y} -1929.922 {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @LOWRCON_1719
if 
  does_char_exist 0@
goto_if_false @LOWRCON_212
if 
  is_char_dead 0@
goto_if_false @LOWRCON_212
goto @LOWRCON_1761

:LOWRCON_212
switch_start 1@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @LOWRCON_1712 {caseNum1} 0 {caseLabel1} @LOWRCON_340 {caseNum2} 1 {caseLabel2} @LOWRCON_480 {caseNum3} 2 {caseLabel3} @LOWRCON_726 {caseNum4} 3 {caseLabel4} @LOWRCON_787 {caseNum5} 4 {caseLabel5} @LOWRCON_902 {caseNum6} 5 {caseLabel6} @LOWRCON_1123 {caseNum7} 6 {caseLabel7} @LOWRCON_1219
switch_continued 7 {caseLabel1} @LOWRCON_1334 {caseNum2} 8 {caseLabel2} @LOWRCON_1500 {caseNum3} 9 {caseLabel3} @LOWRCON_1640 {caseNum4} -1 {caseLabel4} @LOWRCON_1712 {caseNum5} -1 {caseLabel5} @LOWRCON_1712 {caseNum6} -1 {caseLabel6} @LOWRCON_1712 {caseNum7} -1 {caseLabel7} @LOWRCON_1712 {caseNum8} -1 {caseLabel8} @LOWRCON_1712 {caseNum9} -1 {caseLabel9} @LOWRCON_1712

:LOWRCON_340
request_model 50

:LOWRCON_344
if 
  not has_model_loaded 50
goto_if_false @LOWRCON_370
wait 0
goto @LOWRCON_344

:LOWRCON_370
3@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
0@ = create_char PedType.Mission1 {modelId} 50 {x} 1812.369 {y} -1929.922 {z} 12.5486
set_char_heading 0@ {heading} 270.0
set_char_only_damaged_by_player 0@ {state} True
set_char_decision_maker 0@ {handleOrTemplate} 3@
if 
  is_player_playing $player1
goto_if_false @LOWRCON_455
task_look_at_char 0@ {target} $scplayer {time} -2

:LOWRCON_455
mark_model_as_no_longer_needed 50
freeze_char_position 0@ {state} True
1@ += 1
goto @LOWRCON_1712

:LOWRCON_480
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_719
if 
  locate_char_on_foot_3d 0@ {x} 1813.369 {y} -1929.922 {z} 12.5486 {xRadius} 1.2 {yRadius} 1.2 {zRadius} 2.0 {drawSphere} False
goto_if_false @LOWRCON_719
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_589
$x, $y, $z = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0

:LOWRCON_589
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_639
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @LOWRCON_639
task_kill_char_on_foot 0@ {target} $scplayer
goto @LOWRCON_1761

:LOWRCON_639
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.7 {yRadius} 0.7 {zRadius} 1.2 {drawSphere} True
goto_if_false @LOWRCON_719
set_player_control $player1 {state} False
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_712
task_turn_char_to_face_char $scplayer {target} 0@

:LOWRCON_712
1@ += 1

:LOWRCON_719
goto @LOWRCON_1712

:LOWRCON_726
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_780
if 
  is_player_playing $player1
goto_if_false @LOWRCON_768
task_look_at_char 0@ {target} $scplayer {time} -2

:LOWRCON_768
clear_char_tasks 0@
1@ += 1

:LOWRCON_780
goto @LOWRCON_1712

:LOWRCON_787
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_840
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2000

:LOWRCON_840
set_var_text_label s$audio_string = 'MEC_HI'
set_var_int_to_constant $audio_sound_file = 26007
start_new_script @AUDIOL 0@ 0 1 1 0 
TIMERA = 0
1@ += 1
goto @LOWRCON_1712

:LOWRCON_902
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1116
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1116
print_help_forever 'TALK_1'
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @LOWRCON_1040
set_var_text_label s$audio_string = 'SYN2_LO'
set_var_int_to_constant $audio_sound_file = 39072
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_help 
TIMERA = 0
2@ = 1
1@ += 1
goto @LOWRCON_1116

:LOWRCON_1040
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @LOWRCON_1116
set_var_text_label s$audio_string = 'VOFFE1N'
set_var_int_to_constant $audio_sound_file = 21444
start_new_script @AUDIOL $scplayer 0 1 1 0 
clear_help 
TIMERA = 0
restore_camera 
1@ += 2

:LOWRCON_1116
goto @LOWRCON_1712

:LOWRCON_1123
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1212
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1212
do_fade 150 {direction} Fade.Out

:LOWRCON_1167
if 
  get_fading_status 
goto_if_false @LOWRCON_1191
wait 0
goto @LOWRCON_1167

:LOWRCON_1191
$lowrider_meeting_is_loaded = 0
$load_and_launch_mission_if_poss = 6
1@ += 2

:LOWRCON_1212
goto @LOWRCON_1712

:LOWRCON_1219
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1327
if 
  $audio_line_is_active == 0
goto_if_false @LOWRCON_1327
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1279
set_player_control $player1 {state} True

:LOWRCON_1279
set_var_text_label s$audio_string = 'MEC_N'
set_var_int_to_constant $audio_sound_file = 26008
start_new_script @AUDIOL 0@ 1 1 1 0 
goto @LOWRCON_1761

:LOWRCON_1327
goto @LOWRCON_1712

:LOWRCON_1334
if 
  $lowrider_meeting_is_loaded == 1
goto_if_false @LOWRCON_1493
set_fixed_camera_position 1815.894 {y} -1932.708 {z} 15.2576 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 1815.094 {y} -1932.212 {z} 14.9195 {switchStyle} SwitchType.JumpCut
switch_widescreen True
do_fade 150 {direction} Fade.In

:LOWRCON_1414
if 
  get_fading_status 
goto_if_false @LOWRCON_1438
wait 0
goto @LOWRCON_1414

:LOWRCON_1438
set_var_text_label s$audio_string = 'MEC_Y'
set_var_int_to_constant $audio_sound_file = 26009
start_new_script @AUDIOL 0@ 0 1 1 0 
TIMERA = 0
1@ += 1

:LOWRCON_1493
goto @LOWRCON_1712

:LOWRCON_1500
if 
  TIMERA > 1000
goto_if_false @LOWRCON_1633
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1633
camera_reset_new_scriptables 
camera_set_vector_move 1815.894 {fromY} -1932.708 {fromZ} 15.2576 {toX} 1813.444 {toY} -1932.063 {toZ} 18.552 {time} 3000 {ease} True
camera_set_vector_track 1815.094 {fromY} -1932.212 {fromZ} 14.9195 {toX} 1812.689 {toY} -1931.438 {toZ} 18.3523 {time} 3000 {ease} True
camera_persist_track True
camera_persist_pos True
TIMERA = 0
1@ += 1

:LOWRCON_1633
goto @LOWRCON_1712

:LOWRCON_1640
if or
  TIMERA > 5000
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @LOWRCON_1705
if 
  is_player_playing $player1
goto_if_false @LOWRCON_1705
camera_reset_new_scriptables 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
goto @LOWRCON_1761

:LOWRCON_1705
goto @LOWRCON_1712

:LOWRCON_1712
goto @LOWRCON_1726

:LOWRCON_1719
goto @LOWRCON_1761

:LOWRCON_1726
goto @LOWRCON_1740

:LOWRCON_1733
goto @LOWRCON_1761

:LOWRCON_1740
goto @LOWRCON_1754

:LOWRCON_1747
goto @LOWRCON_1761

:LOWRCON_1754
goto @LOWRCON_90

:LOWRCON_1761
if 
  not is_char_dead 0@
goto_if_false @LOWRCON_1794
freeze_char_position 0@ {state} False
clear_look_at 0@
task_wander_standard 0@

:LOWRCON_1794
mark_char_as_no_longer_needed 0@
mark_car_as_no_longer_needed 4@
remove_animation "GANGS"
mark_model_as_no_longer_needed 50
2@ = 0
remove_decision_maker 3@
terminate_this_script 
terminate_this_script 

//-------------External script 23 (BURG_BRAINS)---------------

:BURGLAR
script_name 'BURGLAR'
1@ = 0
5@ = 0
4@ = 0
7@ = 0
8@ = 0
14@ = 0
15@ = 0
if 
  1@ == 1
goto_if_false @BURGLAR_132
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
$burglary_male_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
$burglary_female_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
$burglary_gang_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty

:BURGLAR_132
2@ = generate_random_int_in_range 0 {max} 6
if 
  2@ == 2
goto_if_false @BURGLAR_168
3@ = generate_random_int_in_range 0 {max} 6

:BURGLAR_168
wait 0
if and
  does_char_exist 0@
  5@ == 0
goto_if_false @BURGLAR_5624
if and
  is_player_playing $player1
  not is_char_dead 0@
goto_if_false @BURGLAR_5610
if 
  15@ == 0
goto_if_false @BURGLAR_550
13@ = get_ped_type 0@
14@ = 1
if 
  not is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BURGLAR_527
if 
  not is_int_lvar_equal_to_constant 13@ == 9
goto_if_false @BURGLAR_504
if 
  not is_int_lvar_equal_to_constant 13@ == 10
goto_if_false @BURGLAR_481
if 
  not is_int_lvar_equal_to_constant 13@ == 11
goto_if_false @BURGLAR_458
if 
  not is_int_lvar_equal_to_constant 13@ == 12
goto_if_false @BURGLAR_435
if 
  not is_int_lvar_equal_to_constant 13@ == 13
goto_if_false @BURGLAR_412
if 
  not is_int_lvar_equal_to_constant 13@ == 14
goto_if_false @BURGLAR_389
14@ = 0
goto @BURGLAR_405

:BURGLAR_389
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseRifa {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_405
goto @BURGLAR_428

:BURGLAR_412
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseTriad {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_428
goto @BURGLAR_451

:BURGLAR_435
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseMafia {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_451
goto @BURGLAR_474

:BURGLAR_458
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseDaNang {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_474
goto @BURGLAR_497

:BURGLAR_481
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseGangLsv {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_497
goto @BURGLAR_520

:BURGLAR_504
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseGangVla {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_520
goto @BURGLAR_543

:BURGLAR_527
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AbuseGangBallas {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_543
15@ = 1

:BURGLAR_550
if 
  not is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_2056
if 
  8@ <> 1
goto_if_false @BURGLAR_2049
if 
  14@ == 0
goto_if_false @BURGLAR_1686
if 
  is_char_male 0@
goto_if_false @BURGLAR_1221
remove_decision_maker $burglary_male_decision
$burglary_male_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_male_decision <> -1
goto_if_false @BURGLAR_661
set_char_decision_maker 0@ {handleOrTemplate} $burglary_male_decision

:BURGLAR_661
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 70.0 {dislike} 70.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.ComplexTurnToFaceEntity {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
goto @BURGLAR_1679

:BURGLAR_1221
remove_decision_maker $burglary_female_decision
$burglary_female_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_female_decision <> -1
goto_if_false @BURGLAR_1262
set_char_decision_maker 0@ {handleOrTemplate} $burglary_female_decision

:BURGLAR_1262
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexReactToGunAimedAt {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 60.0 {dislike} 60.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True

:BURGLAR_1679
goto @BURGLAR_2042

:BURGLAR_1686
remove_decision_maker $burglary_gang_decision
$burglary_gang_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_gang_decision <> -1
goto_if_false @BURGLAR_1727
set_char_decision_maker 0@ {handleOrTemplate} $burglary_gang_decision

:BURGLAR_1727
set_char_relationship 0@ {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True

:BURGLAR_2042
8@ = 1

:BURGLAR_2049
goto @BURGLAR_3571

:BURGLAR_2056
if 
  8@ <> 2
goto_if_false @BURGLAR_3571
if 
  14@ == 0
goto_if_false @BURGLAR_3208
if 
  is_char_male 0@
goto_if_false @BURGLAR_2743
remove_decision_maker $burglary_male_decision
$burglary_male_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_male_decision <> -1
goto_if_false @BURGLAR_2149
set_char_decision_maker 0@ {handleOrTemplate} $burglary_male_decision

:BURGLAR_2149
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 40.0 {dislike} 40.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 60.0 {dislike} 60.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.ComplexTurnToFaceEntity {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.ShotFired {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_male_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_male_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} True {onFoot} True
goto @BURGLAR_3201

:BURGLAR_2743
remove_decision_maker $burglary_female_decision
$burglary_female_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_female_decision <> -1
goto_if_false @BURGLAR_2784
set_char_decision_maker 0@ {handleOrTemplate} $burglary_female_decision

:BURGLAR_2784
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexReactToGunAimedAt {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 50.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.GunAimedAt {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleHandsUp {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.AcquaintancePedHate {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.Damage {taskId} TaskId.SimpleDuckForever {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_female_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True

:BURGLAR_3201
goto @BURGLAR_3564

:BURGLAR_3208
remove_decision_maker $burglary_gang_decision
$burglary_gang_decision = copy_shared_char_decision_maker DecisionMakerCharTemplate.Empty
if 
  $burglary_gang_decision <> -1
goto_if_false @BURGLAR_3249
set_char_decision_maker 0@ {handleOrTemplate} $burglary_gang_decision

:BURGLAR_3249
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.AcquaintancePedDislike {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.GunAimedAt {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.AcquaintancePedHate {taskId} TaskId.ComplexKillPedOnFootKindaStandStill {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.Damage {taskId} TaskId.SimpleBeDamaged {respect} 0.0 {hate} 100.0 {like} 10.0 {dislike} 10.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.Damage {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 30.0 {dislike} 30.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.DeadPed {taskId} TaskId.ComplexInvestigateDeadPed {respect} 0.0 {hate} 100.0 {like} 50.0 {dislike} 0.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.ShotFired {taskId} TaskId.ComplexKillPedOnFoot {respect} 0.0 {hate} 100.0 {like} 20.0 {dislike} 20.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response $burglary_gang_decision {event} Event.SoundQuiet {taskId} TaskId.ComplexInvestigateDisturbance {respect} 0.0 {hate} 100.0 {like} 0.0 {dislike} 0.0 {inCar} False {onFoot} True
set_char_relationship 0@ {relationshipType} RelationshipType.Hate {pedType} PedType.Player1

:BURGLAR_3564
8@ = 2

:BURGLAR_3571
if or
  is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
  is_char_responding_to_event 0@ {event} Event.ShotFired
  is_char_responding_to_event 0@ {event} Event.Damage
  is_char_responding_to_event 0@ {event} Event.AcquaintancePedDislike
  $burglary_player_stealth == 100
goto_if_false @BURGLAR_4393
if 
  $burglary_player_spotted == 0
goto_if_false @BURGLAR_4393
if and
  2@ == 4
  14@ == 0
goto_if_false @BURGLAR_3753
if 
  not has_model_loaded 330
goto_if_false @BURGLAR_3688
request_model 330
goto @BURGLAR_3746

:BURGLAR_3688
if 
  not is_char_dead 0@
goto_if_false @BURGLAR_3711
task_use_mobile_phone 0@ {start} True

:BURGLAR_3711
13@ = set_char_say_context_important 0@ {phrase} SpeechId.JackedOnStreet {overrideSilence} True {ignoreMute} False {frontEnd} False
9@ = get_game_timer 
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_3746
goto @BURGLAR_4393

:BURGLAR_3753
if 
  2@ == 2
goto_if_false @BURGLAR_4379
if 
  is_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
goto_if_false @BURGLAR_4305
if 
  3@ == 1
goto_if_false @BURGLAR_3925
if 
  not has_model_loaded 336
goto_if_false @BURGLAR_3835
request_model 336
goto @BURGLAR_3918

:BURGLAR_3835
give_weapon_to_char 0@ {weaponType} WeaponType.BaseballBat {ammo} 0
set_current_char_weapon 0@ {weaponType} WeaponType.BaseballBat
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_3904
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_3904
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_3918
goto @BURGLAR_4298

:BURGLAR_3925
if 
  3@ == 3
goto_if_false @BURGLAR_4078
if 
  not has_model_loaded 346
goto_if_false @BURGLAR_3971
request_model 346
goto @BURGLAR_4071

:BURGLAR_3971
give_weapon_to_char 0@ {weaponType} WeaponType.Pistol {ammo} 40
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4040
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4040
7@ = 1
$burglary_player_spotted = 1
13@ = set_char_say_context_important 0@ {phrase} SpeechId.PullGun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4071
goto @BURGLAR_4298

:BURGLAR_4078
if 
  3@ == 5
goto_if_false @BURGLAR_4231
if 
  not has_model_loaded 350
goto_if_false @BURGLAR_4124
request_model 350
goto @BURGLAR_4224

:BURGLAR_4124
give_weapon_to_char 0@ {weaponType} WeaponType.Sawnoff {ammo} 40
set_current_char_weapon 0@ {weaponType} WeaponType.Sawnoff
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4193
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4193
7@ = 1
$burglary_player_spotted = 1
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Shoot {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4224
goto @BURGLAR_4298

:BURGLAR_4231
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Fight {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4284
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4284
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_4298
goto @BURGLAR_4372

:BURGLAR_4305
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Fight {overrideSilence} True {ignoreMute} False {frontEnd} False
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4358
task_kill_char_on_foot 0@ {target} $scplayer

:BURGLAR_4358
7@ = 1
$burglary_player_spotted = 1

:BURGLAR_4372
goto @BURGLAR_4393

:BURGLAR_4379
$burglary_player_spotted = 1
7@ = 1

:BURGLAR_4393
if or
  7@ == 1
  7@ == 2
goto_if_false @BURGLAR_5603
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_5196
if and
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 0@ {event} Event.ShotFired
  not is_char_responding_to_event 0@ {event} Event.Damage
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedDislike
goto_if_false @BURGLAR_5196
switch_start 2@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @BURGLAR_5092 {caseNum1} 0 {caseLabel1} @BURGLAR_4549 {caseNum2} 1 {caseLabel2} @BURGLAR_4608 {caseNum3} 2 {caseLabel3} @BURGLAR_4709 {caseNum4} 3 {caseLabel4} @BURGLAR_4769 {caseNum5} 4 {caseLabel5} @BURGLAR_4828 {caseNum6} -1 {caseLabel6} @BURGLAR_5196 {caseNum7} -1 {caseLabel7} @BURGLAR_5196

:BURGLAR_4549
12@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4601
task_duck 0@ {time} -2
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Duck {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4601
goto @BURGLAR_5196

:BURGLAR_4608
12@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4702
task_hands_up 0@ {time} -2
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_4686
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Mugged {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_4702

:BURGLAR_4686
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4702
goto @BURGLAR_5196

:BURGLAR_4709
12@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4762
task_kill_char_on_foot 0@ {target} $scplayer
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4762
goto @BURGLAR_5196

:BURGLAR_4769
12@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4821
task_stand_still 0@ {time} -2
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunCool {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4821
goto @BURGLAR_5196

:BURGLAR_4828
if 
  $flag_player_on_burglary_mission == 1
goto_if_false @BURGLAR_5085
if 
  7@ == 1
goto_if_false @BURGLAR_4991
10@ = get_game_timer 
set_lvar_int_to_lvar_int 11@ = 10@
sub_int_lvar_from_int_lvar 11@ -= 9@
if 
  11@ > 8000
goto_if_false @BURGLAR_4984
if 
  not is_char_dead 0@
goto_if_false @BURGLAR_4984
12@ = get_script_task_status 0@ {taskId} 1833
if 
  not is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_4956
task_use_mobile_phone 0@ {start} False

:BURGLAR_4956
mark_model_as_no_longer_needed 330
7@ = 2
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Chased {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_4984
goto @BURGLAR_5085

:BURGLAR_4991
12@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BURGLAR_5085
task_hands_up 0@ {time} -2
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5069
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Mugged {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5085

:BURGLAR_5069
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5085
goto @BURGLAR_5196

:BURGLAR_5092
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5134
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Mugged {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5189

:BURGLAR_5134
if 
  is_char_male 0@
goto_if_false @BURGLAR_5173
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5189

:BURGLAR_5173
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5189
goto @BURGLAR_5196

:BURGLAR_5196
switch_start 2@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @BURGLAR_5499 {caseNum1} 0 {caseLabel1} @BURGLAR_5259 {caseNum2} 1 {caseLabel2} @BURGLAR_5282 {caseNum3} 2 {caseLabel3} @BURGLAR_5347 {caseNum4} 3 {caseLabel4} @BURGLAR_5370 {caseNum5} 4 {caseLabel5} @BURGLAR_5393 {caseNum6} -1 {caseLabel6} @BURGLAR_5603 {caseNum7} -1 {caseLabel7} @BURGLAR_5603

:BURGLAR_5259
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Duck {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5603

:BURGLAR_5282
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5324
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Mugged {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5340

:BURGLAR_5324
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5340
goto @BURGLAR_5603

:BURGLAR_5347
13@ = set_char_say_context_important 0@ {phrase} SpeechId.AttackPlayer {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5603

:BURGLAR_5370
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunCool {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5603

:BURGLAR_5393
if 
  7@ == 1
goto_if_false @BURGLAR_5434
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Chased {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5492

:BURGLAR_5434
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5476
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Mugged {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5492

:BURGLAR_5476
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GunRun {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5492
goto @BURGLAR_5603

:BURGLAR_5499
if 
  is_char_holding_object $scplayer {handle} -1
goto_if_false @BURGLAR_5541
13@ = set_char_say_context_important 0@ {phrase} SpeechId.Mugged {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5596

:BURGLAR_5541
if 
  is_char_male 0@
goto_if_false @BURGLAR_5580
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False
goto @BURGLAR_5596

:BURGLAR_5580
13@ = set_char_say_context_important 0@ {phrase} SpeechId.GenericInsultMale {overrideSilence} True {ignoreMute} False {frontEnd} False

:BURGLAR_5596
goto @BURGLAR_5603

:BURGLAR_5603
goto @BURGLAR_5617

:BURGLAR_5610
5@ = 1

:BURGLAR_5617
goto @BURGLAR_5666

:BURGLAR_5624
remove_decision_maker $burglary_male_decision
remove_decision_maker $burglary_female_decision
remove_decision_maker $burglary_gang_decision
mark_char_as_no_longer_needed 0@
mark_model_as_no_longer_needed 330
mark_model_as_no_longer_needed 336
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 350
terminate_this_script 

:BURGLAR_5666
goto @BURGLAR_168
terminate_this_script 

//-------------External script 24 (GF_MEETING)---------------

:GFMEET
script_name 'GFMEET'
5@ = 0
6@ = 0
7@ = 0
if 
  7@ > 0
goto_if_false @GFMEET_106
15@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
17@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
18@ = add_blip_for_char 15@

:GFMEET_106
gosub @GFMEET_3912
gosub @GFMEET_2883

:GFMEET_120
wait 0
if 
  is_player_playing $player1
goto_if_false @GFMEET_325
if and
  not is_char_dead 15@
  locate_char_any_means_3d $scplayer {x} 1@ {y} 2@ {z} 3@ {xRadius} 100.0 {yRadius} 100.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @GFMEET_311
if 
  has_char_been_damaged_by_char 15@ {handle} $scplayer
goto_if_false @GFMEET_227
set_local_var_bit_const 7@ {bitIndex} 2
5@ = 6
6@ = 0

:GFMEET_227
if 
  8@ == 1
goto_if_false @GFMEET_290
if or
  is_char_dead 17@
  has_char_been_damaged_by_char 17@ {handle} $scplayer
goto_if_false @GFMEET_290
set_local_var_bit_const 7@ {bitIndex} 2
5@ = 6
6@ = 0

:GFMEET_290
gosub @GFMEET_339
gosub @GFMEET_4873
goto @GFMEET_318

:GFMEET_311
gosub @GFMEET_5627

:GFMEET_318
goto @GFMEET_332

:GFMEET_325
gosub @GFMEET_5627

:GFMEET_332
goto @GFMEET_120

:GFMEET_339
switch_start 5@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_486 {caseNum1} 1 {caseLabel1} @GFMEET_402 {caseNum2} 2 {caseLabel2} @GFMEET_416 {caseNum3} 3 {caseLabel3} @GFMEET_430 {caseNum4} 4 {caseLabel4} @GFMEET_444 {caseNum5} 5 {caseLabel5} @GFMEET_458 {caseNum6} 6 {caseLabel6} @GFMEET_472 {caseNum7} -1 {caseLabel7} @GFMEET_486

:GFMEET_402
gosub @GFMEET_488
goto @GFMEET_486

:GFMEET_416
gosub @GFMEET_822
goto @GFMEET_486

:GFMEET_430
gosub @GFMEET_1353
goto @GFMEET_486

:GFMEET_444
gosub @GFMEET_1710
goto @GFMEET_486

:GFMEET_458
gosub @GFMEET_1989
goto @GFMEET_486

:GFMEET_472
gosub @GFMEET_2399
goto @GFMEET_486

:GFMEET_486
return 

:GFMEET_488
switch_start 6@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFMEET_820 {caseNum1} 0 {caseLabel1} @GFMEET_551 {caseNum2} -1 {caseLabel2} @GFMEET_820 {caseNum3} -1 {caseLabel3} @GFMEET_820 {caseNum4} -1 {caseLabel4} @GFMEET_820 {caseNum5} -1 {caseLabel5} @GFMEET_820 {caseNum6} -1 {caseLabel6} @GFMEET_820 {caseNum7} -1 {caseLabel7} @GFMEET_820

:GFMEET_551
if 
  is_player_in_position_for_conversation 15@
goto_if_false @GFMEET_813
if 
  not is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 0@
goto_if_false @GFMEET_742
if 
  locate_char_on_foot_char_2d $scplayer {target} 15@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
goto_if_false @GFMEET_742
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_703
enable_conversation 15@ {state} True
if 
  is_conversation_at_node 15@ {speech} 19@s
goto_if_false @GFMEET_689
5@ = 2
6@ = 0
goto @GFMEET_696

:GFMEET_689
enable_conversation 15@ {state} False

:GFMEET_696
goto @GFMEET_742

:GFMEET_703
if 
  not is_local_var_bit_set_const 7@ {bitIndex} 1
goto_if_false @GFMEET_742
5@ = 3
6@ = 0
enable_conversation 15@ {state} False

:GFMEET_742
13@ = get_script_task_status 15@ {taskId} 1655
14@ = get_script_task_status 17@ {taskId} 1655
if and
  is_int_lvar_equal_to_constant 13@ == 7
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @GFMEET_813
task_chat_with_char 15@ {other} 17@ {leadSpeaker} True {_p4} 1
task_chat_with_char 17@ {other} 15@ {leadSpeaker} False {_p4} 1

:GFMEET_813
goto @GFMEET_820

:GFMEET_820
return 

:GFMEET_822
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1351 {caseNum1} 0 {caseLabel1} @GFMEET_885 {caseNum2} 1 {caseLabel2} @GFMEET_973 {caseNum3} 2 {caseLabel3} @GFMEET_1073 {caseNum4} 3 {caseLabel4} @GFMEET_1304 {caseNum5} -1 {caseLabel5} @GFMEET_1351 {caseNum6} -1 {caseLabel6} @GFMEET_1351 {caseNum7} -1 {caseLabel7} @GFMEET_1351

:GFMEET_885
TIMERB = 0
task_turn_char_to_face_char 15@ {target} $scplayer
if and
  8@ == 1
  not is_char_dead 17@
goto_if_false @GFMEET_959
13@ = get_script_task_status 17@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_959
task_stand_still 17@ {time} -2

:GFMEET_959
6@ += 1
goto @GFMEET_1351

:GFMEET_973
13@ = get_script_task_status 15@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1066
task_look_at_char 15@ {target} $scplayer {time} -1
13@ = get_script_task_status 15@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1048
task_stand_still 15@ {time} -2

:GFMEET_1048
print_help_forever 'TALK_1'
6@ += 1

:GFMEET_1066
goto @GFMEET_1351

:GFMEET_1073
if 
  is_conversation_at_node 15@ {speech} 23@s
goto_if_false @GFMEET_1175
clear_help 
if 
  TIMERB > 9000
goto_if_false @GFMEET_1175
$iGFLikesPlayer(0@,6i) = 0
clear_global_var_bit_lvar $iActiveGF {var_bitIndex} 0@
if 
  does_blip_exist 18@
goto_if_false @GFMEET_1153
remove_blip 18@

:GFMEET_1153
clear_help 
clear_look_at 15@
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1175
if 
  is_conversation_at_node 15@ {speech} 21@s
goto_if_false @GFMEET_1251
clear_help 
if 
  not is_global_var_bit_set_lvar $iActiveGF {var_bitIndex} 0@
goto_if_false @GFMEET_1223
set_global_var_bit_lvar $iActiveGF {var_bitIndex} 0@

:GFMEET_1223
if 
  does_blip_exist 18@
goto_if_false @GFMEET_1244
remove_blip 18@

:GFMEET_1244
6@ += 1

:GFMEET_1251
if and
  not is_player_in_position_for_conversation 15@
  TIMERB > 9000
goto_if_false @GFMEET_1297
clear_help 
clear_look_at 15@
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1297
goto @GFMEET_1351

:GFMEET_1304
if 
  not is_message_being_displayed 
goto_if_false @GFMEET_1344
gosub @GFMEET_3773
clear_look_at 15@
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1344
goto @GFMEET_1351

:GFMEET_1351
return 

:GFMEET_1353
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1708 {caseNum1} 0 {caseLabel1} @GFMEET_1416 {caseNum2} 1 {caseLabel2} @GFMEET_1504 {caseNum3} 2 {caseLabel3} @GFMEET_1593 {caseNum4} 3 {caseLabel4} @GFMEET_1655 {caseNum5} -1 {caseLabel5} @GFMEET_1708 {caseNum6} -1 {caseLabel6} @GFMEET_1708 {caseNum7} -1 {caseLabel7} @GFMEET_1708

:GFMEET_1416
TIMERB = 0
task_turn_char_to_face_char 15@ {target} $scplayer
if and
  8@ == 1
  not is_char_dead 17@
goto_if_false @GFMEET_1490
13@ = get_script_task_status 17@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1490
task_stand_still 17@ {time} -2

:GFMEET_1490
6@ += 1
goto @GFMEET_1708

:GFMEET_1504
13@ = get_script_task_status 15@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1586
task_look_at_char 15@ {target} $scplayer {time} -1
13@ = get_script_task_status 15@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1579
task_stand_still 15@ {time} -2

:GFMEET_1579
6@ += 1

:GFMEET_1586
goto @GFMEET_1708

:GFMEET_1593
if 
  is_local_var_bit_set_const 7@ {bitIndex} 3
goto_if_false @GFMEET_1633
set_var_int_to_constant $iGFSayContext = 317
clear_local_var_bit_const 7@ {bitIndex} 3
goto @GFMEET_1641

:GFMEET_1633
set_var_int_to_constant $iGFSayContext = 316

:GFMEET_1641
6@ += 1
goto @GFMEET_1708

:GFMEET_1655
if 
  TIMERB > 6000
goto_if_false @GFMEET_1701
clear_look_at 15@
set_local_var_bit_const 7@ {bitIndex} 1
6@ = 0
set_lvar_int_to_lvar_int 5@ = 8@

:GFMEET_1701
goto @GFMEET_1708

:GFMEET_1708
return 

:GFMEET_1710
switch_start 6@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFMEET_1987 {caseNum1} 0 {caseLabel1} @GFMEET_1773 {caseNum2} -1 {caseLabel2} @GFMEET_1987 {caseNum3} -1 {caseLabel3} @GFMEET_1987 {caseNum4} -1 {caseLabel4} @GFMEET_1987 {caseNum5} -1 {caseLabel5} @GFMEET_1987 {caseNum6} -1 {caseLabel6} @GFMEET_1987 {caseNum7} -1 {caseLabel7} @GFMEET_1987

:GFMEET_1773
if 
  locate_char_any_means_char_2d $scplayer {target} 15@ {xRadius} 3.0 {yRadius} 3.0 {drawSphere} False
goto_if_false @GFMEET_1929
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_1890
enable_conversation 15@ {state} True
if 
  is_conversation_at_node 15@ {speech} 19@s
goto_if_false @GFMEET_1876
5@ = 2
6@ = 0
goto @GFMEET_1883

:GFMEET_1876
enable_conversation 15@ {state} False

:GFMEET_1883
goto @GFMEET_1929

:GFMEET_1890
if 
  not is_local_var_bit_set_const 7@ {bitIndex} 1
goto_if_false @GFMEET_1929
5@ = 3
6@ = 0
enable_conversation 15@ {state} False

:GFMEET_1929
13@ = get_script_task_status 15@ {taskId} 1640
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_1980
task_shoot_at_coord 15@ {x} 264.0 {y} -155.0 {z} 5.0 {time} -1

:GFMEET_1980
goto @GFMEET_1987

:GFMEET_1987
return 

:GFMEET_1989
switch_start 6@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFMEET_2397 {caseNum1} 0 {caseLabel1} @GFMEET_2052 {caseNum2} 1 {caseLabel2} @GFMEET_2133 {caseNum3} 2 {caseLabel3} @GFMEET_2323 {caseNum4} -1 {caseLabel4} @GFMEET_2397 {caseNum5} -1 {caseLabel5} @GFMEET_2397 {caseNum6} -1 {caseLabel6} @GFMEET_2397 {caseNum7} -1 {caseLabel7} @GFMEET_2397

:GFMEET_2052
13@ = get_script_task_status 15@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2126
task_play_anim 15@ {animationName} "TAI_CHI_IN" {animationFile} "PARK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
6@ += 1

:GFMEET_2126
goto @GFMEET_2397

:GFMEET_2133
13@ = get_script_task_status 15@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2205
task_play_anim 15@ {animationName} "TAI_CHI_LOOP" {animationFile} "PARK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 1215752191

:GFMEET_2205
if and
  is_player_in_position_for_conversation 15@
  locate_char_any_means_char_2d $scplayer {target} 15@ {xRadius} 2.0 {yRadius} 2.0 {drawSphere} False
  is_conversation_at_node 15@ {speech} 19@s
  not is_local_var_bit_set_const 7@ {bitIndex} 1
goto_if_false @GFMEET_2309
task_play_anim 15@ {animationName} "TAI_CHI_OUT" {animationFile} "PARK" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
6@ += 1
goto @GFMEET_2316

:GFMEET_2309
enable_conversation 15@ {state} False

:GFMEET_2316
goto @GFMEET_2397

:GFMEET_2323
gosub @GFMEET_3967
if 
  13@ == 1
goto_if_false @GFMEET_2376
enable_conversation 15@ {state} True
5@ = 2
6@ = 0
goto @GFMEET_2390

:GFMEET_2376
5@ = 3
6@ = 0

:GFMEET_2390
goto @GFMEET_2397

:GFMEET_2397
return 

:GFMEET_2399
switch_start 6@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFMEET_2881 {caseNum1} 0 {caseLabel1} @GFMEET_2462 {caseNum2} 1 {caseLabel2} @GFMEET_2769 {caseNum3} -1 {caseLabel3} @GFMEET_2881 {caseNum4} -1 {caseLabel4} @GFMEET_2881 {caseNum5} -1 {caseLabel5} @GFMEET_2881 {caseNum6} -1 {caseLabel6} @GFMEET_2881 {caseNum7} -1 {caseLabel7} @GFMEET_2881

:GFMEET_2462
if 
  is_local_var_bit_set_const 7@ {bitIndex} 2
goto_if_false @GFMEET_2762
$iGFLikesPlayer(0@,6i) = 0
if 
  0@ == 1
goto_if_false @GFMEET_2526
set_char_decision_maker 15@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors
goto @GFMEET_2536

:GFMEET_2526
set_char_decision_maker 15@ {handleOrTemplate} DecisionMakerCharTemplate.RandomTough

:GFMEET_2536
if 
  not is_char_dead 17@
goto_if_false @GFMEET_2562
set_char_decision_maker 17@ {handleOrTemplate} DecisionMakerCharTemplate.Indoors

:GFMEET_2562
if 
  has_char_got_weapon 15@ {weaponType} WeaponType.Pistol
goto_if_false @GFMEET_2631
set_current_char_weapon 15@ {weaponType} WeaponType.Pistol
13@ = get_script_task_status 15@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2624
task_kill_char_on_foot 15@ {target} $scplayer

:GFMEET_2624
goto @GFMEET_2667

:GFMEET_2631
13@ = get_script_task_status 15@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2667
task_duck 15@ {time} -2

:GFMEET_2667
if 
  does_blip_exist 18@
goto_if_false @GFMEET_2688
remove_blip 18@

:GFMEET_2688
13@ = get_current_day_of_week 
13@ += 1
if 
  13@ > 7
goto_if_false @GFMEET_2725
13@ = 1

:GFMEET_2725
13@ += 22
set_global_var_bit_lvar $iGFDiaryOfBusyHours(0@,6i) {var_bitIndex} 13@
set_global_var_bit_const $iGFDiaryOfBusyHours(0@,6i) {bitIndex} 31
6@ += 1

:GFMEET_2762
goto @GFMEET_2881

:GFMEET_2769
if 
  has_char_got_weapon 15@ {weaponType} WeaponType.Pistol
goto_if_false @GFMEET_2838
set_current_char_weapon 15@ {weaponType} WeaponType.Pistol
13@ = get_script_task_status 15@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2831
task_kill_char_on_foot 15@ {target} $scplayer

:GFMEET_2831
goto @GFMEET_2874

:GFMEET_2838
13@ = get_script_task_status 15@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @GFMEET_2874
task_duck 15@ {time} -2

:GFMEET_2874
goto @GFMEET_2881

:GFMEET_2881
return 

:GFMEET_2883
switch_start 0@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_3401 {caseNum1} 1 {caseLabel1} @GFMEET_2946 {caseNum2} 2 {caseLabel2} @GFMEET_3042 {caseNum3} 3 {caseLabel3} @GFMEET_3170 {caseNum4} 4 {caseLabel4} @GFMEET_3298 {caseNum5} -1 {caseLabel5} @GFMEET_3401 {caseNum6} -1 {caseLabel6} @GFMEET_3401 {caseNum7} -1 {caseLabel7} @GFMEET_3401

:GFMEET_2946
if 
  not has_model_loaded 192
goto_if_false @GFMEET_2978
request_model 192
wait 0
goto @GFMEET_2946

:GFMEET_2978
set_lvar_int_to_constant 13@ = 192
set_lvar_text_label 19@s = 'GF_1A'
set_lvar_text_label 21@s = 'GF_1C'
set_lvar_text_label 23@s = 'GF_1B'
8@ = 1
goto @GFMEET_3401

:GFMEET_3042
if 
  not has_model_loaded 191
goto_if_false @GFMEET_3074
request_model 191
wait 0
goto @GFMEET_3042

:GFMEET_3074
if 
  not has_model_loaded 346
goto_if_false @GFMEET_3106
request_model 346
wait 0
goto @GFMEET_3074

:GFMEET_3106
set_lvar_int_to_constant 13@ = 191
set_lvar_text_label 19@s = 'GF_2A'
set_lvar_text_label 21@s = 'GF_2C'
set_lvar_text_label 23@s = 'GF_2B'
8@ = 4
goto @GFMEET_3401

:GFMEET_3170
if 
  not has_model_loaded 190
goto_if_false @GFMEET_3202
request_model 190
wait 0
goto @GFMEET_3170

:GFMEET_3202
if 
  not has_model_loaded 346
goto_if_false @GFMEET_3234
request_model 346
wait 0
goto @GFMEET_3202

:GFMEET_3234
set_lvar_int_to_constant 13@ = 190
set_lvar_text_label 19@s = 'GF_3A'
set_lvar_text_label 21@s = 'GF_3C'
set_lvar_text_label 23@s = 'GF_3B'
8@ = 1
goto @GFMEET_3401

:GFMEET_3298
if 
  not has_model_loaded 193
goto_if_false @GFMEET_3330
request_model 193
wait 0
goto @GFMEET_3298

:GFMEET_3330
set_lvar_int_to_constant 13@ = 193
set_lvar_text_label 19@s = 'GF_4A'
set_lvar_text_label 21@s = 'GF_4C'
set_lvar_text_label 23@s = 'GF_4B'
8@ = 5
6@ = 0
goto @GFMEET_3401

:GFMEET_3401
15@ = create_char PedType.CivFemale {modelId} 13@ {x} 1@ {y} 2@ {z} 3@
set_char_heading 15@ {heading} 4@
if 
  0@ == 2
goto_if_false @GFMEET_3465
give_weapon_to_char 15@ {weaponType} WeaponType.Pistol {ammo} 999999999
set_char_accuracy 15@ {accuracy} 100

:GFMEET_3465
if 
  0@ == 3
goto_if_false @GFMEET_3509
give_weapon_to_char 15@ {weaponType} WeaponType.Pistol {ammo} 999999999
set_current_char_weapon 15@ {weaponType} WeaponType.Unarmed
set_char_accuracy 15@ {accuracy} 100

:GFMEET_3509
set_char_stay_in_same_place 15@ {state} True
set_char_suffers_critical_hits 15@ {state} False
set_char_never_targetted 15@ {state} True
set_char_proofs 15@ {bulletProof} False {fireProof} False {explosionProof} True {collisionProof} True {meleeProof} False
set_char_health 15@ {health} 200
task_stand_still 15@ {time} -1
set_char_keep_task 15@ {state} True
start_setting_up_conversation 15@
set_up_conversation_node_with_speech 19@s {positiveAnswer} 21@s {negativeAnswer} 23@s {questionPhrase} SpeechId.GfriendIntro {positiveAnswerPhrase} SpeechId.GiveNumberYes {negativeAnswerPhrase} SpeechId.GiveNumberNo
set_up_conversation_end_node_with_speech 21@s {phrase} SpeechId.GfriendPosResponse
set_up_conversation_end_node_with_speech 23@s {phrase} SpeechId.GfriendNegResponse
finish_setting_up_conversation 
enable_conversation 15@ {state} False
18@ = add_blip_for_char 15@
set_blip_as_friendly 18@ {state} True
change_blip_display 18@ {display} BlipDisplay.MarkerOnly
if 
  8@ == 1
goto_if_false @GFMEET_3756
9@, 10@, 11@ = get_offset_from_char_in_world_coords 15@ {xOffset} 0.5 {yOffset} 1.0 {zOffset} 0.0
11@ = get_ground_z_for_3d_coord 9@ {y} 10@ {z} 11@
17@ = create_random_char 9@ {y} 10@ {z} 11@
4@ += 180.0
set_char_heading 17@ {heading} 4@
task_chat_with_char 15@ {other} 17@ {leadSpeaker} True {_p4} 1
task_chat_with_char 17@ {other} 15@ {leadSpeaker} False {_p4} 1

:GFMEET_3756
set_lvar_int_to_lvar_int 5@ = 8@
6@ = 0
return 

:GFMEET_3773
clear_help 
switch_start 0@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFMEET_3910 {caseNum1} 1 {caseLabel1} @GFMEET_3838 {caseNum2} 2 {caseLabel2} @GFMEET_3856 {caseNum3} 3 {caseLabel3} @GFMEET_3874 {caseNum4} 4 {caseLabel4} @GFMEET_3892 {caseNum5} -1 {caseLabel5} @GFMEET_3910 {caseNum6} -1 {caseLabel6} @GFMEET_3910 {caseNum7} -1 {caseLabel7} @GFMEET_3910

:GFMEET_3838
print_help 'GF_H001'
goto @GFMEET_3910

:GFMEET_3856
print_help 'GF_H002'
goto @GFMEET_3910

:GFMEET_3874
print_help 'GF_H003'
goto @GFMEET_3910

:GFMEET_3892
print_help 'GF_H004'
goto @GFMEET_3910

:GFMEET_3910
return 

:GFMEET_3912
request_animation "PARK"

:GFMEET_3920
wait 0
if 
  has_animation_loaded "PARK"
goto_if_false @GFMEET_3952
return 
goto @GFMEET_3967

:GFMEET_3952
request_animation "PARK"
goto @GFMEET_3920

:GFMEET_3967
13@ = 0
13@ = get_int_stat StatId.SexAppeal
13@ /= 10
14@ = get_int_stat StatId.Fat
14@ /= 10
14@ /= 2
if 
  14@ >= 25
goto_if_false @GFMEET_4093
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 2
goto_if_false @GFMEET_4064
add_int_lvar_to_int_lvar 13@ += 14@
goto @GFMEET_4086

:GFMEET_4064
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 11

:GFMEET_4086
goto @GFMEET_4199

:GFMEET_4093
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 2
goto_if_false @GFMEET_4144
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 10
goto @GFMEET_4199

:GFMEET_4144
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 3
goto_if_false @GFMEET_4199
if 
  14@ == 0
goto_if_false @GFMEET_4191
14@ = 5

:GFMEET_4191
add_int_lvar_to_int_lvar 13@ += 14@

:GFMEET_4199
14@ = get_int_stat StatId.BodyMuscle
14@ /= 10
14@ /= 2
if 
  14@ >= 20
goto_if_false @GFMEET_4326
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 1
goto_if_false @GFMEET_4275
add_int_lvar_to_int_lvar 13@ += 14@
goto @GFMEET_4319

:GFMEET_4275
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 3
goto_if_false @GFMEET_4319
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 12

:GFMEET_4319
goto @GFMEET_4432

:GFMEET_4326
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 1
goto_if_false @GFMEET_4377
sub_int_lvar_from_int_lvar 13@ -= 14@
set_local_var_bit_const 7@ {bitIndex} 3
set_local_var_bit_const 7@ {bitIndex} 11
goto @GFMEET_4432

:GFMEET_4377
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits(0@,6i) {bitIndex} 3
goto_if_false @GFMEET_4432
if 
  14@ == 0
goto_if_false @GFMEET_4424
14@ = 5

:GFMEET_4424
add_int_lvar_to_int_lvar 13@ += 14@

:GFMEET_4432
if 
  is_int_lvar_greater_or_equal_to_int_var 13@ >= $iGFDesiredSexAppeal(0@,6i)
goto_if_false @GFMEET_4487
$iGFLikesPlayer(0@,6i) = 15
gosub @GFMEET_4496
13@ = 1
goto @GFMEET_4494

:GFMEET_4487
13@ = -1

:GFMEET_4494
return 

:GFMEET_4496
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_4871 {caseNum1} 0 {caseLabel1} @GFMEET_4559 {caseNum2} 1 {caseLabel2} @GFMEET_4611 {caseNum3} 2 {caseLabel3} @GFMEET_4663 {caseNum4} 3 {caseLabel4} @GFMEET_4715 {caseNum5} 4 {caseLabel5} @GFMEET_4767 {caseNum6} 5 {caseLabel6} @GFMEET_4819 {caseNum7} -1 {caseLabel7} @GFMEET_4871

:GFMEET_4559
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4592
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4592
set_int_stat StatId.GirlfriendDenise {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4611
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4644
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4644
set_int_stat StatId.GirlfriendMichelle {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4663
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4696
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4696
set_int_stat StatId.GirlfriendHelena {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4715
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4748
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4748
set_int_stat StatId.GirlfriendBarbara {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4767
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4800
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4800
set_int_stat StatId.GirlfriendKatie {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4819
if 
  $iGFLikesPlayer(0@,6i) > 100
goto_if_false @GFMEET_4852
$iGFLikesPlayer(0@,6i) = 100

:GFMEET_4852
set_int_stat StatId.GirlfriendMillie {value} $iGFLikesPlayer(0@,6i)
goto @GFMEET_4871

:GFMEET_4871
return 

:GFMEET_4873
switch_start $iGFSpeechStatus {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5405 {caseNum1} 0 {caseLabel1} @GFMEET_4936 {caseNum2} 1 {caseLabel2} @GFMEET_4968 {caseNum3} 2 {caseLabel3} @GFMEET_4980 {caseNum4} 3 {caseLabel4} @GFMEET_4994 {caseNum5} 4 {caseLabel5} @GFMEET_5263 {caseNum6} 5 {caseLabel6} @GFMEET_5363 {caseNum7} 6 {caseLabel7} @GFMEET_5172

:GFMEET_4936
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_4961
$iGFSpeechStatus = 3

:GFMEET_4961
goto @GFMEET_5405

:GFMEET_4968
enable_char_speech 15@
goto @GFMEET_5405

:GFMEET_4980
disable_char_speech 15@ {stopNow} False
goto @GFMEET_5405

:GFMEET_4994
if 
  not is_char_talking 15@
goto_if_false @GFMEET_5165
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_5105
$iGFContextVariation = set_char_say_context_important 15@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFMEET_5407
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFMEET_5091
$iGFSpeechStatus = 6
goto @GFMEET_5098

:GFMEET_5091
$iGFSpeechStatus = 0

:GFMEET_5098
goto @GFMEET_5165

:GFMEET_5105
if 
  $iGFSayContext == -2
goto_if_false @GFMEET_5144
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFMEET_5165

:GFMEET_5144
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFMEET_5165
goto @GFMEET_5405

:GFMEET_5172
if and
  not is_char_talking $scplayer
  not is_char_talking 15@
goto_if_false @GFMEET_5256
if 
  $iCJSayContext > 0
goto_if_false @GFMEET_5249
$iGFContextVariation = set_char_say_context_important $scplayer {phrase} $iCJSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFMEET_5256

:GFMEET_5249
$iGFSpeechStatus = 0

:GFMEET_5256
goto @GFMEET_5405

:GFMEET_5263
disable_char_speech 15@ {stopNow} False
if 
  not is_char_talking 15@
goto_if_false @GFMEET_5356
if 
  $iGFSayContext > 0
goto_if_false @GFMEET_5349
$iGFContextVariation = set_char_say_context_important 15@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFMEET_5407
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFMEET_5356

:GFMEET_5349
$iGFSpeechStatus = 0

:GFMEET_5356
goto @GFMEET_5405

:GFMEET_5363
if 
  not is_char_talking 15@
goto_if_false @GFMEET_5398
enable_char_speech 15@
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFMEET_5398
goto @GFMEET_5405

:GFMEET_5405
return 

:GFMEET_5407
switch_start $iGFSayContext {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5625 {caseNum1} 316 {caseLabel1} @GFMEET_5602 {caseNum2} 317 {caseLabel2} @GFMEET_5472 {caseNum3} -1 {caseLabel3} @GFMEET_5625 {caseNum4} -1 {caseLabel4} @GFMEET_5625 {caseNum5} -1 {caseLabel5} @GFMEET_5625 {caseNum6} -1 {caseLabel6} @GFMEET_5625 {caseNum7} -1 {caseLabel7} @GFMEET_5625

:GFMEET_5472
if 
  is_local_var_bit_set_const 7@ {bitIndex} 10
goto_if_false @GFMEET_5513
print_now 'GF_0074' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5513
if 
  is_local_var_bit_set_const 7@ {bitIndex} 11
goto_if_false @GFMEET_5554
print_now 'GF_0053' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5554
if 
  is_local_var_bit_set_const 7@ {bitIndex} 12
goto_if_false @GFMEET_5595
print_now 'GF_0075' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5595
goto @GFMEET_5625

:GFMEET_5602
print_now 'GF_0052' {time} 5000 {flag} 1
goto @GFMEET_5625

:GFMEET_5625
return 

:GFMEET_5627
mark_char_as_no_longer_needed 15@
mark_char_as_no_longer_needed 17@
remove_animation "PARK"
clear_help 
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFMEET_5782 {caseNum1} 0 {caseLabel1} @GFMEET_5710 {caseNum2} 1 {caseLabel2} @GFMEET_5722 {caseNum3} 2 {caseLabel3} @GFMEET_5734 {caseNum4} 3 {caseLabel4} @GFMEET_5746 {caseNum5} 4 {caseLabel5} @GFMEET_5758 {caseNum6} 5 {caseLabel6} @GFMEET_5770 {caseNum7} -1 {caseLabel7} @GFMEET_5782

:GFMEET_5710
mark_model_as_no_longer_needed 195
goto @GFMEET_5782

:GFMEET_5722
mark_model_as_no_longer_needed 192
goto @GFMEET_5782

:GFMEET_5734
mark_model_as_no_longer_needed 191
goto @GFMEET_5782

:GFMEET_5746
mark_model_as_no_longer_needed 190
goto @GFMEET_5782

:GFMEET_5758
mark_model_as_no_longer_needed 193
goto @GFMEET_5782

:GFMEET_5770
mark_model_as_no_longer_needed 194
goto @GFMEET_5782

:GFMEET_5782
clear_conversation_for_char 15@
if 
  does_blip_exist 18@
goto_if_false @GFMEET_5808
remove_blip 18@

:GFMEET_5808
clear_global_var_bit_const $iDateReport {bitIndex} 20
terminate_this_script 
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "GF_LIKES_PLAYER" {number} $iGFLikesPlayer(0@,6i)
write_debug_with_int "DESIRED_SEX_APPEAL" {number} $iGFDesiredSexAppeal(0@,6i)
write_debug_with_int "ISUBSTATESTATUS" {number} 6@
switch_start 5@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFMEET_6106 {caseNum1} 0 {caseLabel1} @GFMEET_6011 {caseNum2} 1 {caseLabel2} @GFMEET_6030 {caseNum3} 2 {caseLabel3} @GFMEET_6049 {caseNum4} 3 {caseLabel4} @GFMEET_6068 {caseNum5} 4 {caseLabel5} @GFMEET_6087 {caseNum6} -1 {caseLabel6} @GFMEET_6135 {caseNum7} -1 {caseLabel7} @GFMEET_6135

:GFMEET_6011
write_debug "STATE0__"
goto @GFMEET_6135

:GFMEET_6030
write_debug "STATE1__"
goto @GFMEET_6135

:GFMEET_6049
write_debug "STATE2__"
goto @GFMEET_6135

:GFMEET_6068
write_debug "STATE3__"
goto @GFMEET_6135

:GFMEET_6087
write_debug "STATE4__"
goto @GFMEET_6135

:GFMEET_6106
write_debug "UNTRAPPED_STATE___"
goto @GFMEET_6135

:GFMEET_6135
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 25 (GF_DATE)---------------

:GFDATE
script_name 'GFDATE'
1@ = 0
2@ = 0
3@ = 0
24@ = 0
30@ = -1
29@ = -1
$iFun = 30
$fFun = 30.0
if 
  3@ > 0
goto_if_false @GFDATE_120
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
28@ = store_car_char_is_in_no_save 0@

:GFDATE_120
gosub @GFDATE_24076
set_local_var_bit_const 3@ {bitIndex} 1

:GFDATE_134
wait 0
if and
  is_player_playing $player1
  $onmission == 0
goto_if_false @GFDATE_260
if 
  not is_char_dead 0@
goto_if_false @GFDATE_244
gosub @GFDATE_26752
gosub @GFDATE_24246
gosub @GFDATE_283
gosub @GFDATE_3688
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_230
gosub @GFDATE_27210

:GFDATE_230
gosub @GFDATE_30455
goto @GFDATE_253

:GFDATE_244
clear_help 
gosub @GFDATE_32517

:GFDATE_253
goto @GFDATE_276

:GFDATE_260
clear_help 
set_local_var_bit_const 3@ {bitIndex} 9
gosub @GFDATE_32517

:GFDATE_276
goto @GFDATE_134

:GFDATE_283
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 1
goto_if_false @GFDATE_3686
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 26
goto_if_false @GFDATE_342
set_global_var_bit_const $iDateReport {bitIndex} 2
1@ = 3
2@ = 0
return 

:GFDATE_342
gosub @GFDATE_20055
if 
  24@ > -1
goto_if_false @GFDATE_462
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_414
gosub @GFDATE_32407
do_fade 0 {direction} Fade.Out
1@ = 2
2@ = 0
return 

:GFDATE_414
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_455
gosub @GFDATE_32407
1@ = 10
2@ = 0
return 

:GFDATE_455
goto @GFDATE_503

:GFDATE_462
if 
  24@ == -2
goto_if_false @GFDATE_503
gosub @GFDATE_32407
1@ = 3
2@ = 0
return 

:GFDATE_503
switch_start $iTransitionStages {numCases} 17 {hasDefaultCase} 0 {defaultLabel} @GFDATE_3686 {caseNum1} 0 {caseLabel1} @GFDATE_696 {caseNum2} 1 {caseLabel2} @GFDATE_887 {caseNum3} 2 {caseLabel3} @GFDATE_1089 {caseNum4} 3 {caseLabel4} @GFDATE_1375 {caseNum5} 4 {caseLabel5} @GFDATE_1479 {caseNum6} 5 {caseLabel6} @GFDATE_1585 {caseNum7} 6 {caseLabel7} @GFDATE_1698
switch_continued 7 {caseLabel1} @GFDATE_1811 {caseNum2} 8 {caseLabel2} @GFDATE_1869 {caseNum3} 9 {caseLabel3} @GFDATE_1986 {caseNum4} 10 {caseLabel4} @GFDATE_2069 {caseNum5} 11 {caseLabel5} @GFDATE_2373 {caseNum6} 12 {caseLabel6} @GFDATE_2583 {caseNum7} 13 {caseLabel7} @GFDATE_2720 {caseNum8} 14 {caseLabel8} @GFDATE_3163 {caseNum9} 15 {caseLabel9} @GFDATE_3337
switch_continued 16 {caseLabel1} @GFDATE_3544 {caseNum2} -1 {caseLabel2} @GFDATE_3686 {caseNum3} -1 {caseLabel3} @GFDATE_3686 {caseNum4} -1 {caseLabel4} @GFDATE_3686 {caseNum5} -1 {caseLabel5} @GFDATE_3686 {caseNum6} -1 {caseLabel6} @GFDATE_3686 {caseNum7} -1 {caseLabel7} @GFDATE_3686 {caseNum8} -1 {caseLabel8} @GFDATE_3686 {caseNum9} -1 {caseLabel9} @GFDATE_3686

:GFDATE_696
gosub @GFDATE_23696
if 
  25@ > 0
goto_if_false @GFDATE_873
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @GFDATE_866
if and
  1@ == 1
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_local_var_bit_set_const 3@ {bitIndex} 26
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_859
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 3
goto_if_false @GFDATE_859
set_local_var_bit_const 3@ {bitIndex} 3
if 
  25@ == 2
goto_if_false @GFDATE_843
1@ = 11
2@ = 0
return 
goto @GFDATE_859

:GFDATE_843
1@ = 6
2@ = 0
return 

:GFDATE_859
goto @GFDATE_873

:GFDATE_866
clear_local_var_bit_const 3@ {bitIndex} 3

:GFDATE_873
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_887
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_1075
if or
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 16
goto_if_false @GFDATE_1075
4@, 7@, 10@ = get_char_coordinates $scplayer
s$txtCurrZone = get_name_of_info_zone 4@ {y} 7@ {z} 10@
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_1075
25@ = get_ammo_in_char_weapon 0@ {weaponType} WeaponType.MicroUzi
if 
  25@ == 0
goto_if_false @GFDATE_1075
add_ammo_to_char 0@ {weaponType} WeaponType.MicroUzi {ammo} 60
set_var_int_to_constant $iGFSayContext = 280
set_global_var_bit_const $iDateReport {bitIndex} 2
gosub @GFDATE_32407
gosub @GFDATE_19460
set_local_var_bit_const 3@ {bitIndex} 27
set_local_var_bit_const 3@ {bitIndex} 2

:GFDATE_1075
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1089
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_1327
if and
  is_global_var_bit_set_const $iDateReport {bitIndex} 15
  1@ <> 8
goto_if_false @GFDATE_1146
1@ = 8
2@ = 0
return 

:GFDATE_1146
if 
  1@ <> 4
goto_if_false @GFDATE_1187
1@ = 4
2@ = 0
return 
goto @GFDATE_1320

:GFDATE_1187
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_1253
if and
  0 > 29@
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1253
set_local_var_bit_const 3@ {bitIndex} 7
1@ = 5
2@ = 0
return 

:GFDATE_1253
if and
  is_local_var_bit_set_const 3@ {bitIndex} 5
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_local_var_bit_set_const 3@ {bitIndex} 6
  not is_char_on_any_bike $scplayer
  not is_local_var_bit_set_const 3@ {bitIndex} 30
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_1320
1@ = 7
2@ = 0
return 

:GFDATE_1320
goto @GFDATE_1361

:GFDATE_1327
if 
  1@ <> 1
goto_if_false @GFDATE_1361
1@ = 1
2@ = 0
return 

:GFDATE_1361
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1375
if and
  TIMERA > 10000
  not is_group_member 0@ {handle} $Players_Group
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_1465
if or
  1@ == 1
  1@ == 4
goto_if_false @GFDATE_1465
set_local_var_bit_const 3@ {bitIndex} 7
clear_prints 
clear_help 
print_help 'GF_H017'
gosub @GFDATE_32517
return 

:GFDATE_1465
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1479
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @GFDATE_1571
if 
  not is_char_health_greater 0@ {health} 498
goto_if_false @GFDATE_1558
set_local_var_bit_const 3@ {bitIndex} 15
print_help 'GF_H018'
1@ = 9
2@ = 0
return 
goto @GFDATE_1571

:GFDATE_1558
set_var_int_to_constant $iGFSayContext = 313
clear_char_last_damage_entity 0@

:GFDATE_1571
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1585
if and
  TIMERA > 120000
  not is_local_var_bit_set_const 3@ {bitIndex} 26
goto_if_false @GFDATE_1684
if or
  $iGFidx == 3
  $iGFidx == 2
goto_if_false @GFDATE_1675
if 
  TIMERA > 240000
goto_if_false @GFDATE_1668
gosub @GFDATE_23580
return 

:GFDATE_1668
goto @GFDATE_1684

:GFDATE_1675
gosub @GFDATE_23580
return 

:GFDATE_1684
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1698
if and
  TIMERA > 180000
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1797
if or
  $iGFidx == 3
  $iGFidx == 2
goto_if_false @GFDATE_1788
if 
  TIMERA > 300000
goto_if_false @GFDATE_1781
gosub @GFDATE_23680
return 

:GFDATE_1781
goto @GFDATE_1797

:GFDATE_1788
gosub @GFDATE_23680
return 

:GFDATE_1797
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1811
if and
  TIMERA > 360000
  is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1855
1@ = 9
2@ = 0
return 

:GFDATE_1855
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1869
if 
  not is_char_health_greater 0@ {health} 10
goto_if_false @GFDATE_1913
$iGFLikesPlayer($iGFidx,6i) = -999
task_dead 0@
gosub @GFDATE_32517
return 

:GFDATE_1913
if and
  is_wanted_level_greater $player1 {wantedLevel} 2
  not is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_1972
set_local_var_bit_const 3@ {bitIndex} 7
1@ = 5
2@ = 0
return 

:GFDATE_1972
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_1986
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_2055
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_2055
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_2055
gosub @GFDATE_25145

:GFDATE_2055
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_2069
if and
  is_local_var_bit_set_const 3@ {bitIndex} 2
  not is_local_var_bit_set_const 3@ {bitIndex} 12
  not is_local_var_bit_set_const 3@ {bitIndex} 15
  $iGF_TT_Status <> -1
goto_if_false @GFDATE_2295
25@ = get_int_stat StatId.CurrentGirlfriends
if 
  25@ > 1
goto_if_false @GFDATE_2288
25@ = get_area_visible 
if 
  25@ == 0
goto_if_false @GFDATE_2281
if or
  1@ == 1
  1@ == 4
goto_if_false @GFDATE_2281
if and
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
  TIMERA > 7000
goto_if_false @GFDATE_2281
25@ = generate_random_int_in_range 0 {max} 100
if 
  50 >= 25@
goto_if_false @GFDATE_2256
$iGF_TT_Status = 0
set_global_var_bit_const $iDateReport {bitIndex} 22
goto @GFDATE_2281

:GFDATE_2256
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 25
goto_if_false @GFDATE_2281
$iGF_TT_Status = -1

:GFDATE_2281
goto @GFDATE_2295

:GFDATE_2288
$iGF_TT_Status = -1

:GFDATE_2295
if and
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
  TIMERA >= 30000
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_2349
$iTransitionStages += 1
goto @GFDATE_3686
goto @GFDATE_2359

:GFDATE_2349
$fFunTemp = 0.0

:GFDATE_2359
$iTransitionStages = 0
goto @GFDATE_3686

:GFDATE_2373
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
  1@ == 6
goto_if_false @GFDATE_2447
if 
  2@ == 0
goto_if_false @GFDATE_2437
$fFunTemp += 1.5
goto @GFDATE_2447

:GFDATE_2437
$fFunTemp += 0.0

:GFDATE_2447
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
  1@ == 7
goto_if_false @GFDATE_2521
if 
  2@ == 0
goto_if_false @GFDATE_2511
$fFunTemp += 1.5
goto @GFDATE_2521

:GFDATE_2511
$fFunTemp += 0.0

:GFDATE_2521
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
goto_if_false @GFDATE_2569
if 
  is_char_shooting 0@
goto_if_false @GFDATE_2569
$fFunTemp += 4.0

:GFDATE_2569
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_2583
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_2706
25@ = get_car_health 28@
if 
  is_int_lvar_greater_than_int_lvar 29@ > 25@
goto_if_false @GFDATE_2706
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 24
goto_if_false @GFDATE_2688
if 
  has_car_been_damaged_by_car 28@ {other} -1
goto_if_false @GFDATE_2681
$fFunTemp += 1.5
clear_car_last_damage_entity 28@

:GFDATE_2681
goto @GFDATE_2698

:GFDATE_2688
$fFunTemp -= 1.0

:GFDATE_2698
set_lvar_int_to_lvar_int 29@ = 25@

:GFDATE_2706
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_2720
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_3149
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_3149
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 11
goto_if_false @GFDATE_2846
if and
  $passenger_said_jump == 1
  not is_local_var_bit_set_const 3@ {bitIndex} 17
goto_if_false @GFDATE_2821
$fFunTemp += 1.5
set_local_var_bit_const 3@ {bitIndex} 17

:GFDATE_2821
if 
  $passenger_said_jump == 0
goto_if_false @GFDATE_2846
clear_local_var_bit_const 3@ {bitIndex} 17

:GFDATE_2846
14@ = get_car_speed 28@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 12
goto_if_false @GFDATE_2963
if 
  14@ > 22.0
goto_if_false @GFDATE_2921
$fFunTemp += 1.5
clear_local_var_bit_const 3@ {bitIndex} 19
goto @GFDATE_2963

:GFDATE_2921
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 19
goto_if_false @GFDATE_2953
set_local_var_bit_const 3@ {bitIndex} 19
set_var_int_to_constant $iGFSayContext = 39

:GFDATE_2953
$fFunTemp -= 2.5

:GFDATE_2963
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 13
goto_if_false @GFDATE_3149
if and
  14@ > 8.0
  20.0 > 14@
goto_if_false @GFDATE_3047
$fFunTemp += 0.5
clear_local_var_bit_const 3@ {bitIndex} 19
clear_local_var_bit_const 3@ {bitIndex} 18
goto @GFDATE_3149

:GFDATE_3047
if 
  8.0 >= 14@
goto_if_false @GFDATE_3107
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 19
goto_if_false @GFDATE_3100
set_local_var_bit_const 3@ {bitIndex} 19
set_var_int_to_constant $iGFSayContext = 39

:GFDATE_3100
goto @GFDATE_3139

:GFDATE_3107
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 18
goto_if_false @GFDATE_3139
set_local_var_bit_const 3@ {bitIndex} 18
set_var_int_to_constant $iGFSayContext = 32

:GFDATE_3139
$fFunTemp -= 2.5

:GFDATE_3149
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_3163
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_3275
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_3275
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_3275
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 16
goto_if_false @GFDATE_3275
gosub @GFDATE_23458
if 
  25@ > 0
goto_if_false @GFDATE_3275
$fFunTemp += 0.5

:GFDATE_3275
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
goto_if_false @GFDATE_3323
if 
  is_char_shooting 0@
goto_if_false @GFDATE_3323
$fFunTemp += 4.0

:GFDATE_3323
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_3337
if and
  is_char_in_any_car 0@
  not is_car_dead 28@
goto_if_false @GFDATE_3523
if 
  is_car_stopped 28@
goto_if_false @GFDATE_3523
26@ = get_current_population_zone_type 
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 14
goto_if_false @GFDATE_3523
if or
  is_int_lvar_equal_to_constant 26@ == 10
  is_int_lvar_equal_to_constant 26@ == 3
goto_if_false @GFDATE_3523
26@ = get_minutes_to_time_of_day 6 {minutes} 0
if or
  30 >= 25@
  25@ >= 1380
goto_if_false @GFDATE_3478
$fFunTemp += 4.0
goto @GFDATE_3523

:GFDATE_3478
26@ = get_minutes_to_time_of_day 20 {minutes} 0
if or
  30 >= 25@
  25@ >= 1380
goto_if_false @GFDATE_3523
$fFunTemp += 4.0

:GFDATE_3523
gosub @GFDATE_25027
$iTransitionStages += 1
goto @GFDATE_3686

:GFDATE_3544
if and
  $iFun >= 100
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_3607
set_global_var_bit_const $iDateReport {bitIndex} 2
set_var_int_to_constant $iGFSayContext = 280
set_local_var_bit_const 3@ {bitIndex} 2
gosub @GFDATE_32407
return 
goto @GFDATE_3662

:GFDATE_3607
if and
  0 >= $iFun
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_3662
clear_global_var_bit_const $iDateReport {bitIndex} 2
set_local_var_bit_const 3@ {bitIndex} 7
1@ = 5
2@ = 0
return 

:GFDATE_3662
$fFunTemp = 0.0
$iTransitionStages = 0
goto @GFDATE_3686

:GFDATE_3686
return 

:GFDATE_3688
switch_start 1@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @GFDATE_3984 {caseNum1} 0 {caseLabel1} @GFDATE_3816 {caseNum2} 1 {caseLabel2} @GFDATE_3830 {caseNum3} 2 {caseLabel3} @GFDATE_3844 {caseNum4} 3 {caseLabel4} @GFDATE_3858 {caseNum5} 4 {caseLabel5} @GFDATE_3872 {caseNum6} 5 {caseLabel6} @GFDATE_3886 {caseNum7} 6 {caseLabel7} @GFDATE_3900
switch_continued 7 {caseLabel1} @GFDATE_3914 {caseNum2} 8 {caseLabel2} @GFDATE_3928 {caseNum3} 9 {caseLabel3} @GFDATE_3942 {caseNum4} 10 {caseLabel4} @GFDATE_3956 {caseNum5} 11 {caseLabel5} @GFDATE_3970 {caseNum6} -1 {caseLabel6} @GFDATE_3984 {caseNum7} -1 {caseLabel7} @GFDATE_3984 {caseNum8} -1 {caseLabel8} @GFDATE_3984 {caseNum9} -1 {caseLabel9} @GFDATE_3984

:GFDATE_3816
gosub @GFDATE_3986
goto @GFDATE_3984

:GFDATE_3830
gosub @GFDATE_4788
goto @GFDATE_3984

:GFDATE_3844
gosub @GFDATE_5087
goto @GFDATE_3984

:GFDATE_3858
gosub @GFDATE_5819
goto @GFDATE_3984

:GFDATE_3872
gosub @GFDATE_6976
goto @GFDATE_3984

:GFDATE_3886
gosub @GFDATE_7695
goto @GFDATE_3984

:GFDATE_3900
gosub @GFDATE_7817
goto @GFDATE_3984

:GFDATE_3914
gosub @GFDATE_11047
goto @GFDATE_3984

:GFDATE_3928
gosub @GFDATE_12450
goto @GFDATE_3984

:GFDATE_3942
gosub @GFDATE_14647
goto @GFDATE_3984

:GFDATE_3956
gosub @GFDATE_14897
goto @GFDATE_3984

:GFDATE_3970
gosub @GFDATE_15244
goto @GFDATE_3984

:GFDATE_3984
return 

:GFDATE_3986
switch_start 2@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFDATE_4786 {caseNum1} 0 {caseLabel1} @GFDATE_4049 {caseNum2} 1 {caseLabel2} @GFDATE_4328 {caseNum3} 2 {caseLabel3} @GFDATE_4584 {caseNum4} 3 {caseLabel4} @GFDATE_4664 {caseNum5} -1 {caseLabel5} @GFDATE_4786 {caseNum6} -1 {caseLabel6} @GFDATE_4786 {caseNum7} -1 {caseLabel7} @GFDATE_4786

:GFDATE_4049
set_local_var_bit_const 3@ {bitIndex} 1
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_4130
set_local_var_bit_const 3@ {bitIndex} 9
set_global_var_bit_const $iDateReport {bitIndex} 2
set_global_var_bit_const $iDateReport {bitIndex} 3
1@ = 3
2@ = 0
goto @GFDATE_4786

:GFDATE_4130
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
set_char_only_damaged_by_player 0@ {state} True
gosub @GFDATE_22751
clear_area 6@ {y} 9@ {z} 12@ {radius} 2.0 {clearParticles} True
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut
lock_door $iGFdoor($iGFidx,7i) {state} False
gosub @GFDATE_16680
if 
  25@ == -1
goto_if_false @GFDATE_4285
set_local_var_bit_const 3@ {bitIndex} 16
task_goto_char 0@ {target} $scplayer {time} 5000 {radius} 2.5
goto @GFDATE_4307

:GFDATE_4285
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_4307
TIMERB = 0
2@ += 1
goto @GFDATE_4786

:GFDATE_4328
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_char_coordinates 0@
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if 
  TIMERB >= 6000
goto_if_false @GFDATE_4442
5@, 8@, 11@ = get_closest_char_node 5@ {y} 8@ {z} 11@
set_char_coordinates 0@ {x} 5@ {y} 8@ {z} 11@
13@ = 1.0

:GFDATE_4442
if 
  3.0 >= 13@
goto_if_false @GFDATE_4577
point_camera_at_point 4@ {y} 7@ {z} 10@ {switchStyle} SwitchType.Interpolation
lock_door $iGFdoor($iGFidx,7i) {state} True
if 
  is_local_var_bit_set_const 3@ {bitIndex} 16
goto_if_false @GFDATE_4547
set_char_only_damaged_by_player 0@ {state} False
set_local_var_bit_const 3@ {bitIndex} 9
1@ = 3
2@ = 3
goto @GFDATE_4786
goto @GFDATE_4577

:GFDATE_4547
set_var_int_to_constant $iGFSayContext = 298
set_var_int_to_constant $iCJSayContext = 240
TIMERB = 0
2@ += 1

:GFDATE_4577
goto @GFDATE_4786

:GFDATE_4584
if 
  TIMERB >= 3000
goto_if_false @GFDATE_4657
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_char_only_damaged_by_player 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
2@ += 1

:GFDATE_4657
goto @GFDATE_4786

:GFDATE_4664
gosub @GFDATE_17450
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_4700
print_help 'GF_0036'

:GFDATE_4700
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_4729
print_help 'GF_0037'

:GFDATE_4729
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_4758
print_help 'GF_0038'

:GFDATE_4758
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0
goto @GFDATE_4786

:GFDATE_4786
return 

:GFDATE_4788
switch_start 2@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFDATE_5085 {caseNum1} 0 {caseLabel1} @GFDATE_4851 {caseNum2} 1 {caseLabel2} @GFDATE_4879 {caseNum3} 2 {caseLabel3} @GFDATE_4965 {caseNum4} -1 {caseLabel4} @GFDATE_5085 {caseNum5} -1 {caseLabel5} @GFDATE_5085 {caseNum6} -1 {caseLabel6} @GFDATE_5085 {caseNum7} -1 {caseLabel7} @GFDATE_5085

:GFDATE_4851
clear_local_var_bit_const 3@ {bitIndex} 5
clear_local_var_bit_const 3@ {bitIndex} 6
2@ += 1
goto @GFDATE_5085

:GFDATE_4879
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
goto_if_false @GFDATE_4951
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 7
  not is_char_responding_to_event 0@ {event} Event.AcquaintancePedHate
goto_if_false @GFDATE_4951
if 
  is_current_char_weapon 0@ {weaponType} WeaponType.MicroUzi
goto_if_false @GFDATE_4951
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed

:GFDATE_4951
2@ += 1
goto @GFDATE_5085

:GFDATE_4965
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_5071
if and
  is_local_var_bit_set_const 3@ {bitIndex} 29
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_5057
if 
  TIMERB > 25000
goto_if_false @GFDATE_5050
set_var_int_to_constant $iGFSayContext = 273
set_var_int_to_constant $iCJSayContext = 242
clear_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_5050
goto @GFDATE_5071

:GFDATE_5057
TIMERB = 0
set_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_5071
2@ = 0
goto @GFDATE_5085

:GFDATE_5085
return 

:GFDATE_5087
switch_start 2@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GFDATE_5817 {caseNum1} 0 {caseLabel1} @GFDATE_5215 {caseNum2} 1 {caseLabel2} @GFDATE_5253 {caseNum3} 2 {caseLabel3} @GFDATE_5320 {caseNum4} 3 {caseLabel4} @GFDATE_5347 {caseNum5} 4 {caseLabel5} @GFDATE_5385 {caseNum6} 5 {caseLabel6} @GFDATE_5399 {caseNum7} 6 {caseLabel7} @GFDATE_5435
switch_continued 7 {caseLabel1} @GFDATE_5595 {caseNum2} 8 {caseLabel2} @GFDATE_5686 {caseNum3} 9 {caseLabel3} @GFDATE_5754 {caseNum4} -1 {caseLabel4} @GFDATE_5817 {caseNum5} -1 {caseLabel5} @GFDATE_5817 {caseNum6} -1 {caseLabel6} @GFDATE_5817 {caseNum7} -1 {caseLabel7} @GFDATE_5817 {caseNum8} -1 {caseLabel8} @GFDATE_5817 {caseNum9} -1 {caseLabel9} @GFDATE_5817

:GFDATE_5215
set_local_var_bit_const 3@ {bitIndex} 1
do_fade 0 {direction} Fade.Out
gosub @GFDATE_32407
clear_prints 
clear_help 
2@ += 1
goto @GFDATE_5817

:GFDATE_5253
if 
  not get_fading_status 
goto_if_false @GFDATE_5313
make_player_safe_for_cutscene $player1
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
set_char_collision 0@ {state} False
set_char_collision $scplayer {state} False
gosub @GFDATE_20351
gosub @GFDATE_20578
2@ += 1

:GFDATE_5313
goto @GFDATE_5817

:GFDATE_5320
if 
  has_cutscene_loaded 
goto_if_false @GFDATE_5340
2@ += 1

:GFDATE_5340
goto @GFDATE_5817

:GFDATE_5347
set_cutscene_offset 4@ {y} 7@ {z} 10@
do_fade 1000 {direction} Fade.In
switch_rubbish 0
start_cutscene 
2@ += 1
goto @GFDATE_5817

:GFDATE_5385
2@ += 1
goto @GFDATE_5817

:GFDATE_5399
if 
  has_cutscene_finished 
goto_if_false @GFDATE_5428
do_fade 1000 {direction} Fade.Out
clear_prints 
2@ += 1

:GFDATE_5428
goto @GFDATE_5817

:GFDATE_5435
if 
  not get_fading_status 
goto_if_false @GFDATE_5588
clear_cutscene 
clear_extra_colours False
gosub @GFDATE_19460
set_area_visible 0
set_char_area_visible 0@ {areaId} 0
set_char_area_visible $scplayer {areaId} 0
4@, 7@, 10@ = get_char_coordinates $scplayer
clear_area 4@ {y} 7@ {z} 10@ {radius} 2.0 {clearParticles} True
load_scene 4@ {y} 7@ {z} 10@
request_collision 4@ {y} 7@
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 0@
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_5581
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_5581
2@ += 1

:GFDATE_5588
goto @GFDATE_5817

:GFDATE_5595
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
display_radar True
set_char_collision 0@ {state} True
set_char_collision $scplayer {state} True
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
switch_rubbish 1
clear_char_tasks $scplayer
task_pause 0@ {time} 0
do_fade 500 {direction} Fade.In
2@ += 1
goto @GFDATE_5817

:GFDATE_5686
if 
  not get_fading_status 
goto_if_false @GFDATE_5747
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 2
goto_if_false @GFDATE_5732
set_var_int_to_constant $iGFSayContext = 277
goto @GFDATE_5740

:GFDATE_5732
set_var_int_to_constant $iGFSayContext = 278

:GFDATE_5740
2@ += 1

:GFDATE_5747
goto @GFDATE_5817

:GFDATE_5754
if and
  $iGFSayContext == -1
  not is_message_being_displayed 
goto_if_false @GFDATE_5810
set_var_int_to_constant $iGFSayContext = 280
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 2
1@ = 1
2@ = 0

:GFDATE_5810
goto @GFDATE_5817

:GFDATE_5817
return 

:GFDATE_5819
switch_start 2@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFDATE_6974 {caseNum1} 0 {caseLabel1} @GFDATE_5947 {caseNum2} 1 {caseLabel2} @GFDATE_5975 {caseNum3} 2 {caseLabel3} @GFDATE_6163 {caseNum4} 3 {caseLabel4} @GFDATE_6184 {caseNum5} 4 {caseLabel5} @GFDATE_6669 {caseNum6} 5 {caseLabel6} @GFDATE_6732 {caseNum7} 6 {caseLabel7} @GFDATE_6874
switch_continued 7 {caseLabel1} @GFDATE_6921 {caseNum2} -1 {caseLabel2} @GFDATE_6974 {caseNum3} -1 {caseLabel3} @GFDATE_6974 {caseNum4} -1 {caseLabel4} @GFDATE_6974 {caseNum5} -1 {caseLabel5} @GFDATE_6974 {caseNum6} -1 {caseLabel6} @GFDATE_6974 {caseNum7} -1 {caseLabel7} @GFDATE_6974 {caseNum8} -1 {caseLabel8} @GFDATE_6974 {caseNum9} -1 {caseLabel9} @GFDATE_6974

:GFDATE_5947
set_local_var_bit_const 3@ {bitIndex} 1
do_fade 500 {direction} Fade.Out
2@ += 1
goto @GFDATE_6974

:GFDATE_5975
set_local_var_bit_const 3@ {bitIndex} 1
if 
  not get_fading_status 
goto_if_false @GFDATE_6156
gosub @GFDATE_32407
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
if 
  is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_6040
remove_char_from_group 0@

:GFDATE_6040
switch_widescreen True
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
gosub @GFDATE_22751
clear_area 6@ {y} 9@ {z} 12@ {radius} 1.0 {clearParticles} True
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut
clear_char_tasks_immediately 0@
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
task_achieve_heading 0@ {heading} 13@
2@ += 1

:GFDATE_6156
goto @GFDATE_6974

:GFDATE_6163
do_fade 1000 {direction} Fade.In
2@ += 1
goto @GFDATE_6974

:GFDATE_6184
if 
  not get_fading_status 
goto_if_false @GFDATE_6662
if 
  is_local_var_bit_set_const 3@ {bitIndex} 9
goto_if_false @GFDATE_6414
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_6270
set_var_int_to_constant $iGFSayContext = 269
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6974

:GFDATE_6270
if 
  $iGFLikesPlayer($iGFidx,6i) == -99
goto_if_false @GFDATE_6326
$iGFLikesPlayer($iGFidx,6i) = -100
set_var_int_to_constant $iGFSayContext = 314
clear_global_var_bit_var $iActiveGF {var_bitIndex} $iGFidx
goto @GFDATE_6385

:GFDATE_6326
if 
  is_local_var_bit_set_const 3@ {bitIndex} 16
goto_if_false @GFDATE_6385
if 
  is_local_var_bit_set_const 3@ {bitIndex} 23
goto_if_false @GFDATE_6377
set_var_int_to_constant $iGFSayContext = 317
goto @GFDATE_6385

:GFDATE_6377
set_var_int_to_constant $iGFSayContext = 316

:GFDATE_6385
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6662

:GFDATE_6414
if 
  is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_6469
set_var_int_to_constant $iGFSayContext = 296
TIMERB = 0
25@ = 5000
2@ = 6
goto @GFDATE_6662

:GFDATE_6469
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 2
goto_if_false @GFDATE_6595
if 
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_6550
set_var_int_to_constant $iGFSayContext = 282
TIMERB = 0
25@ = 0
2@ += 1
goto @GFDATE_6588

:GFDATE_6550
set_var_int_to_constant $iGFSayContext = 292
set_var_int_to_constant $iCJSayContext = 241
TIMERB = 0
25@ = 5000
2@ = 6

:GFDATE_6588
goto @GFDATE_6662

:GFDATE_6595
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_6632
set_var_int_to_constant $iGFSayContext = 314
goto @GFDATE_6640

:GFDATE_6632
set_var_int_to_constant $iGFSayContext = 296

:GFDATE_6640
TIMERB = 0
25@ = 5000
2@ = 6

:GFDATE_6662
goto @GFDATE_6974

:GFDATE_6669
if 
  TIMERB >= 5000
goto_if_false @GFDATE_6725
print_help_forever 'TALK_1'
if 
  TIMERB > 5100
goto_if_false @GFDATE_6725
2@ += 1

:GFDATE_6725
goto @GFDATE_6974

:GFDATE_6732
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @GFDATE_6803
clear_prints 
clear_help 
set_global_var_bit_const $iDateReport {bitIndex} 3
$iGFSayContext = -2
set_var_int_to_constant $iCJSayContext = 46
TIMERB = 0
25@ = 3500
2@ += 1
goto @GFDATE_6867

:GFDATE_6803
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @GFDATE_6867
clear_prints 
clear_help 
clear_global_var_bit_const $iDateReport {bitIndex} 3
$iGFSayContext = -2
set_var_int_to_constant $iCJSayContext = 47
TIMERB = 0
25@ = 3500
2@ += 1

:GFDATE_6867
goto @GFDATE_6974

:GFDATE_6874
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 25@
goto_if_false @GFDATE_6914
set_global_var_bit_const $iDateReport {bitIndex} 6
do_fade 1000 {direction} Fade.Out
2@ += 1

:GFDATE_6914
goto @GFDATE_6974

:GFDATE_6921
if 
  not get_fading_status 
goto_if_false @GFDATE_6967
switch_widescreen False
display_radar True
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
gosub @GFDATE_32517

:GFDATE_6967
goto @GFDATE_6974

:GFDATE_6974
return 

:GFDATE_6976
switch_start 2@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFDATE_7693 {caseNum1} 0 {caseLabel1} @GFDATE_7039 {caseNum2} 1 {caseLabel2} @GFDATE_7196 {caseNum3} 2 {caseLabel3} @GFDATE_7330 {caseNum4} 3 {caseLabel4} @GFDATE_7479 {caseNum5} 4 {caseLabel5} @GFDATE_7579 {caseNum6} -1 {caseLabel6} @GFDATE_7693 {caseNum7} -1 {caseLabel7} @GFDATE_7693

:GFDATE_7039
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_7182
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_7182
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 27
goto_if_false @GFDATE_7182
gosub @GFDATE_23458
if 
  25@ > 0
goto_if_false @GFDATE_7182
if and
  not is_message_being_displayed 
  not is_char_talking $scplayer
  not is_char_talking 0@
goto_if_false @GFDATE_7182
set_var_int_to_constant $iGFSayContext = 306
set_var_int_to_constant $iCJSayContext = 244
2@ = 4
goto @GFDATE_7693

:GFDATE_7182
2@ += 1
goto @GFDATE_7693

:GFDATE_7196
if 
  not is_car_dead 28@
goto_if_false @GFDATE_7302
if 
  is_car_stopped 28@
goto_if_false @GFDATE_7281
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 5
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_7274
TIMERB = 0
2@ = 3
goto @GFDATE_7693

:GFDATE_7274
goto @GFDATE_7295

:GFDATE_7281
clear_local_var_bit_const 3@ {bitIndex} 30
clear_local_var_bit_const 3@ {bitIndex} 5

:GFDATE_7295
goto @GFDATE_7316

:GFDATE_7302
clear_local_var_bit_const 3@ {bitIndex} 30
clear_local_var_bit_const 3@ {bitIndex} 5

:GFDATE_7316
2@ += 1
goto @GFDATE_7693

:GFDATE_7330
if 
  is_local_var_bit_set_const 3@ {bitIndex} 29
goto_if_false @GFDATE_7433
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_7426
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_7426
if 
  TIMERB > 25000
goto_if_false @GFDATE_7426
set_var_int_to_constant $iGFSayContext = 273
set_var_int_to_constant $iCJSayContext = 242
clear_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_7426
goto @GFDATE_7465

:GFDATE_7433
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 22
goto_if_false @GFDATE_7465
TIMERB = 0
set_local_var_bit_const 3@ {bitIndex} 29

:GFDATE_7465
2@ = 0
goto @GFDATE_7693

:GFDATE_7479
if 
  not is_car_dead 28@
goto_if_false @GFDATE_7565
if 
  not is_car_stopped 28@
goto_if_false @GFDATE_7525
2@ = 0
goto @GFDATE_7558

:GFDATE_7525
if 
  TIMERB > 10000
goto_if_false @GFDATE_7558
set_local_var_bit_const 3@ {bitIndex} 5
2@ = 0

:GFDATE_7558
goto @GFDATE_7572

:GFDATE_7565
2@ = 0

:GFDATE_7572
goto @GFDATE_7693

:GFDATE_7579
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  not is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_7679
if 
  not is_current_char_weapon 0@ {weaponType} WeaponType.MicroUzi
goto_if_false @GFDATE_7633
set_current_char_weapon 0@ {weaponType} WeaponType.MicroUzi

:GFDATE_7633
gosub @GFDATE_23458
if 
  0 >= 25@
goto_if_false @GFDATE_7672
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
2@ = 0

:GFDATE_7672
goto @GFDATE_7686

:GFDATE_7679
2@ = 0

:GFDATE_7686
goto @GFDATE_7693

:GFDATE_7693
return 

:GFDATE_7695
switch_start 2@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @GFDATE_7815 {caseNum1} 0 {caseLabel1} @GFDATE_7758 {caseNum2} -1 {caseLabel2} @GFDATE_7815 {caseNum3} -1 {caseLabel3} @GFDATE_7815 {caseNum4} -1 {caseLabel4} @GFDATE_7815 {caseNum5} -1 {caseLabel5} @GFDATE_7815 {caseNum6} -1 {caseLabel6} @GFDATE_7815 {caseNum7} -1 {caseLabel7} @GFDATE_7815

:GFDATE_7758
clear_global_var_bit_const $iDateReport {bitIndex} 2
set_local_var_bit_const 3@ {bitIndex} 2
set_local_var_bit_const 3@ {bitIndex} 7
set_var_int_to_constant $iGFSayContext = 281
gosub @GFDATE_32407
gosub @GFDATE_19605
$iSwitchOffDanceMiniGame = 1
goto @GFDATE_7815

:GFDATE_7815
return 

:GFDATE_7817
switch_start 2@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFDATE_11045 {caseNum1} 0 {caseLabel1} @GFDATE_7880 {caseNum2} 1 {caseLabel2} @GFDATE_8060 {caseNum3} 2 {caseLabel3} @GFDATE_8568 {caseNum4} 3 {caseLabel4} @GFDATE_9197 {caseNum5} 4 {caseLabel5} @GFDATE_9623 {caseNum6} 5 {caseLabel6} @GFDATE_9870 {caseNum7} 6 {caseLabel7} @GFDATE_10069

:GFDATE_7880
set_local_var_bit_const 3@ {bitIndex} 1
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
task_turn_char_to_face_char $scplayer {target} 0@
task_turn_char_to_face_char 0@ {target} $scplayer
TIMERB = 0
2@ += 1
goto @GFDATE_11045

:GFDATE_8060
25@ = get_script_task_status $scplayer {taskId} 1593
26@ = get_script_task_status 0@ {taskId} 1593
if and
  is_int_lvar_equal_to_constant 25@ == 7
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_8398
set_char_collision $scplayer {state} False
set_char_collision 0@ {state} False
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
11@ = get_ground_z_for_3d_coord 5@ {y} 8@ {z} 11@
6@, 9@, 12@ = get_char_coordinates 0@
12@ = get_ground_z_for_3d_coord 6@ {y} 9@ {z} 12@
set_char_coordinates 0@ {x} 5@ {y} 8@ {z} 11@
13@ = get_char_heading $scplayer
13@ += 180.0
set_char_heading 0@ {heading} 13@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @GFDATE_8370
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut

:GFDATE_8370
task_stand_still $scplayer {time} -1
task_stand_still 0@ {time} -1
2@ += 1
goto @GFDATE_8561

:GFDATE_8398
25@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8463
25@ = get_script_task_status $scplayer {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8463
task_stand_still $scplayer {time} -1

:GFDATE_8463
25@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8528
25@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_8528
task_stand_still 0@ {time} -1

:GFDATE_8528
if 
  TIMERB > 6000
goto_if_false @GFDATE_8561
2@ = 6
goto @GFDATE_11045

:GFDATE_8561
goto @GFDATE_11045

:GFDATE_8568
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
cset_lvar_float_to_var_int 13@ =# $iGFSelfRespect($iGFidx,6i)
13@ /= 1.2
cset_lvar_float_to_var_int 14@ =# $iGFLikesPlayer($iGFidx,6i)
if 
  is_float_lvar_greater_or_equal_to_float_lvar 13@ >= 14@
goto_if_false @GFDATE_8738
task_play_anim $scplayer {animationName} "PLAYA_KISS_01" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GRLFRD_KISS_01" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ = 6
goto @GFDATE_9190

:GFDATE_8738
if 
  is_int_var_greater_or_equal_to_int_var $iGFSelfRespect($iGFidx,6i) >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_8868
task_play_anim $scplayer {animationName} "PLAYA_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GRLFRD_KISS_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ = 6
goto @GFDATE_9190

:GFDATE_8868
task_play_anim $scplayer {animationName} "PLAYA_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GRLFRD_KISS_03" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@, 7@, 10@ = get_char_coordinates 0@
27@ = get_random_char_in_sphere 4@ {y} 7@ {z} 10@ {radius} 20.0 {civilian} True {gang} True {criminal} True
if 
  27@ == -1
goto_if_false @GFDATE_9067
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_9046
2@ += 1
goto @GFDATE_9060

:GFDATE_9046
set_local_var_bit_const 3@ {bitIndex} 25
2@ = 6

:GFDATE_9060
goto @GFDATE_9190

:GFDATE_9067
mark_char_as_no_longer_needed 27@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_9183
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_9169
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_9148
2@ += 1
goto @GFDATE_9162

:GFDATE_9148
set_local_var_bit_const 3@ {bitIndex} 25
2@ = 6

:GFDATE_9162
goto @GFDATE_9176

:GFDATE_9169
2@ = 6

:GFDATE_9176
goto @GFDATE_9190

:GFDATE_9183
2@ = 6

:GFDATE_9190
goto @GFDATE_11045

:GFDATE_9197
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_9224
2@ = 6
goto @GFDATE_11045

:GFDATE_9224
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 25
goto_if_false @GFDATE_9609
25@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_9602
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 2.5 {yOffset} -1.2 {zOffset} 0.5
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.1
if 
  is_line_of_sight_clear 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @GFDATE_9409
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut

:GFDATE_9409
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
11@ = get_ground_z_for_3d_coord 5@ {y} 8@ {z} 11@
set_char_coordinates 0@ {x} 5@ {y} 8@ {z} 11@
13@ = get_char_heading $scplayer
13@ += 180.0
set_char_heading 0@ {heading} 13@
task_play_anim $scplayer {animationName} "BJ_STAND_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim 0@ {animationName} "BJ_STAND_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_local_var_bit_const 3@ {bitIndex} 25
2@ += 1

:GFDATE_9602
goto @GFDATE_9616

:GFDATE_9609
2@ = 6

:GFDATE_9616
goto @GFDATE_11045

:GFDATE_9623
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_9650
2@ = 6
goto @GFDATE_11045

:GFDATE_9650
if 
  is_char_playing_anim $scplayer {animationName} "BJ_STAND_START_P"
goto_if_false @GFDATE_9856
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_STAND_START_P"
if 
  13@ == 1.0
goto_if_false @GFDATE_9849
task_play_anim $scplayer {animationName} "BJ_STAND_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim 0@ {animationName} "BJ_STAND_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
set_var_int_to_constant $iGFSayContext = 285
TIMERB = 0
2@ += 1

:GFDATE_9849
goto @GFDATE_9863

:GFDATE_9856
2@ = 6

:GFDATE_9863
goto @GFDATE_11045

:GFDATE_9870
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_9897
2@ = 6
goto @GFDATE_11045

:GFDATE_9897
if 
  is_char_playing_anim $scplayer {animationName} "BJ_STAND_LOOP_P"
goto_if_false @GFDATE_10055
if 
  TIMERB > 6000
goto_if_false @GFDATE_10048
task_play_anim $scplayer {animationName} "BJ_STAND_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "BJ_STAND_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ += 1

:GFDATE_10048
goto @GFDATE_10062

:GFDATE_10055
2@ = 6

:GFDATE_10062
goto @GFDATE_11045

:GFDATE_10069
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 24
goto_if_false @GFDATE_10334
set_local_var_bit_const 3@ {bitIndex} 24
if and
  is_int_var_greater_than_int_lvar $iGFLikesPlayer($iGFidx,6i) > 25@
  is_int_var_greater_than_int_var $iGFSelfRespect($iGFidx,6i) > $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_10201
if and
  are_any_chars_near_char 0@ {radius} 20.0
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_10183
$iGFLikesPlayer($iGFidx,6i) += 1
goto @GFDATE_10194

:GFDATE_10183
$iGFLikesPlayer($iGFidx,6i) -= 1

:GFDATE_10194
goto @GFDATE_10334

:GFDATE_10201
if and
  is_int_var_greater_than_int_lvar $iGFLikesPlayer($iGFidx,6i) > 25@
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_10334
if and
  are_any_chars_near_char 0@ {radius} 20.0
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_10323
$iGFLikesPlayer($iGFidx,6i) += 1
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_10316
$iGFLikesPlayer($iGFidx,6i) += 1

:GFDATE_10316
goto @GFDATE_10334

:GFDATE_10323
$iGFLikesPlayer($iGFidx,6i) -= 1

:GFDATE_10334
13@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "BJ_STAND_END_P"
goto_if_false @GFDATE_10400
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_STAND_END_P"

:GFDATE_10400
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_01"
goto_if_false @GFDATE_10454
13@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_01"

:GFDATE_10454
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_02"
goto_if_false @GFDATE_10508
13@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_02"

:GFDATE_10508
if 
  is_char_playing_anim $scplayer {animationName} "PLAYA_KISS_03"
goto_if_false @GFDATE_10562
13@ = get_char_anim_current_time $scplayer {animationName} "PLAYA_KISS_03"

:GFDATE_10562
if 
  13@ > -1.0
goto_if_false @GFDATE_10798
if 
  13@ == 1.0
goto_if_false @GFDATE_10791
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_10791
goto @GFDATE_11038

:GFDATE_10798
clear_char_tasks $scplayer
task_pause 0@ {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_11017
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_11017
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_11038
goto @GFDATE_11045

:GFDATE_11045
return 

:GFDATE_11047
switch_start 2@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_12448 {caseNum1} 0 {caseLabel1} @GFDATE_11110 {caseNum2} 1 {caseLabel2} @GFDATE_11470 {caseNum3} 2 {caseLabel3} @GFDATE_11585 {caseNum4} 3 {caseLabel4} @GFDATE_11718 {caseNum5} 4 {caseLabel5} @GFDATE_11957 {caseNum6} 5 {caseLabel6} @GFDATE_12105 {caseNum7} -1 {caseLabel7} @GFDATE_12448

:GFDATE_11110
if 
  $iCensoredVersion == 1
goto_if_false @GFDATE_11170
set_local_var_bit_const 3@ {bitIndex} 30
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 4
2@ = 0
goto @GFDATE_12448
goto @GFDATE_11463

:GFDATE_11170
set_local_var_bit_const 3@ {bitIndex} 1
if and
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
  not is_car_dead 28@
  not is_car_passenger_seat_free 28@ {seat} SeatId.BikeRear
goto_if_false @GFDATE_11435
27@ = get_char_in_car_passenger_seat 28@ {seat} SeatId.BikeRear
if 
  is_int_lvar_equal_to_int_lvar 27@ == 0@
goto_if_false @GFDATE_11400
4@, 7@, 10@ = get_char_coordinates 0@
27@ = get_random_char_in_sphere 4@ {y} 7@ {z} 10@ {radius} 20.0 {civilian} True {gang} True {criminal} True
if 
  27@ == -1
goto_if_false @GFDATE_11316
2@ += 1
goto @GFDATE_11393

:GFDATE_11316
mark_char_as_no_longer_needed 27@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_11357
2@ += 1
goto @GFDATE_11393

:GFDATE_11357
set_var_int_to_constant $iGFSayContext = 302
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 30
1@ = 4
2@ = 0

:GFDATE_11393
goto @GFDATE_11428

:GFDATE_11400
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 30
1@ = 4
2@ = 0

:GFDATE_11428
goto @GFDATE_11463

:GFDATE_11435
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 30
1@ = 4
2@ = 0

:GFDATE_11463
goto @GFDATE_12448

:GFDATE_11470
set_local_var_bit_const 3@ {bitIndex} 6
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
if 
  not is_car_dead 28@
goto_if_false @GFDATE_11571
attach_camera_to_vehicle 28@ {xOffset} 4.0 {yOffset} 4.0 {zOffset} 1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut

:GFDATE_11571
2@ += 1
goto @GFDATE_12448

:GFDATE_11585
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_11612
2@ = 5
goto @GFDATE_12448

:GFDATE_11612
task_play_anim_non_interruptable $scplayer {animationName} "BJ_CAR_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable 0@ {animationName} "BJ_CAR_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
2@ += 1
goto @GFDATE_12448

:GFDATE_11718
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_11745
2@ = 5
goto @GFDATE_12448

:GFDATE_11745
if 
  is_char_playing_anim $scplayer {animationName} "BJ_CAR_START_P"
goto_if_false @GFDATE_11943
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_CAR_START_P"
if 
  13@ == 1.0
goto_if_false @GFDATE_11936
task_play_anim_non_interruptable $scplayer {animationName} "BJ_CAR_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim_non_interruptable 0@ {animationName} "BJ_CAR_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
set_var_int_to_constant $iGFSayContext = 285
TIMERB = 0
2@ += 1

:GFDATE_11936
goto @GFDATE_11950

:GFDATE_11943
2@ = 5

:GFDATE_11950
goto @GFDATE_12448

:GFDATE_11957
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFDATE_11984
2@ = 5
goto @GFDATE_12448

:GFDATE_11984
if 
  TIMERB > 6000
goto_if_false @GFDATE_12098
task_play_anim_non_interruptable $scplayer {animationName} "BJ_CAR_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable 0@ {animationName} "BJ_CAR_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
2@ += 1

:GFDATE_12098
goto @GFDATE_12448

:GFDATE_12105
if 
  is_int_var_greater_or_equal_to_int_var $iGFLikesPlayer($iGFidx,6i) >= $iGFSelfRespect($iGFidx,6i)
goto_if_false @GFDATE_12186
$iGFLikesPlayer($iGFidx,6i) += 1
if and
  are_any_chars_near_char 0@ {radius} 20.0
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_12186
$iGFLikesPlayer($iGFidx,6i) += 1

:GFDATE_12186
if 
  is_char_playing_anim $scplayer {animationName} "BJ_CAR_END_P"
goto_if_false @GFDATE_12327
13@ = get_char_anim_current_time $scplayer {animationName} "BJ_CAR_END_P"
if 
  13@ == 1.0
goto_if_false @GFDATE_12320
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 4
2@ = 0

:GFDATE_12320
goto @GFDATE_12441

:GFDATE_12327
clear_char_tasks $scplayer
task_pause 0@ {time} 0
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_12420
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_12420
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 4
2@ = 0

:GFDATE_12441
goto @GFDATE_12448

:GFDATE_12448
return 

:GFDATE_12450
switch_start 2@ {numCases} 12 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14645 {caseNum1} 0 {caseLabel1} @GFDATE_12578 {caseNum2} 1 {caseLabel2} @GFDATE_12825 {caseNum3} 2 {caseLabel3} @GFDATE_12952 {caseNum4} 3 {caseLabel4} @GFDATE_13023 {caseNum5} 4 {caseLabel5} @GFDATE_13166 {caseNum6} 5 {caseLabel6} @GFDATE_13314 {caseNum7} 6 {caseLabel7} @GFDATE_13375
switch_continued 7 {caseLabel1} @GFDATE_13683 {caseNum2} 9 {caseLabel2} @GFDATE_14114 {caseNum3} 10 {caseLabel3} @GFDATE_14241 {caseNum4} 11 {caseLabel4} @GFDATE_14363 {caseNum5} 12 {caseLabel5} @GFDATE_14460 {caseNum6} -1 {caseLabel6} @GFDATE_14645 {caseNum7} -1 {caseLabel7} @GFDATE_14645 {caseNum8} -1 {caseLabel8} @GFDATE_14645 {caseNum9} -1 {caseLabel9} @GFDATE_14645

:GFDATE_12578
if 
  not is_car_dead 28@
goto_if_false @GFDATE_12780
if and
  not is_char_on_any_bike 0@
  not is_char_in_flying_vehicle 0@
goto_if_false @GFDATE_12735
25@ = get_maximum_number_of_passengers 28@
if 
  25@ > 0
goto_if_false @GFDATE_12690
if and
  is_char_sitting_in_any_car $scplayer
  is_char_sitting_in_any_car 0@
goto_if_false @GFDATE_12683
set_everyone_ignore_player $player1 {state} True
set_local_var_bit_const 3@ {bitIndex} 1
2@ += 1

:GFDATE_12683
goto @GFDATE_12728

:GFDATE_12690
if and
  not is_message_being_displayed 
  not is_local_var_bit_set_const 3@ {bitIndex} 14
goto_if_false @GFDATE_12728
print_help 'GF_0049'
set_local_var_bit_const 3@ {bitIndex} 14

:GFDATE_12728
goto @GFDATE_12773

:GFDATE_12735
if and
  not is_message_being_displayed 
  not is_local_var_bit_set_const 3@ {bitIndex} 14
goto_if_false @GFDATE_12773
print_help 'GF_0049'
set_local_var_bit_const 3@ {bitIndex} 14

:GFDATE_12773
goto @GFDATE_12818

:GFDATE_12780
if and
  not is_message_being_displayed 
  not is_local_var_bit_set_const 3@ {bitIndex} 14
goto_if_false @GFDATE_12818
print_help 'GF_0049'
set_local_var_bit_const 3@ {bitIndex} 14

:GFDATE_12818
goto @GFDATE_14645

:GFDATE_12825
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 0@ {state} True
if 
  not is_car_dead 28@
goto_if_false @GFDATE_12914
set_car_cruise_speed 28@ {maxSpeed} 0.0
attach_camera_to_vehicle 28@ {xOffset} 4.0 {yOffset} 4.0 {zOffset} 1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut

:GFDATE_12914
if 
  is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_12938
remove_char_from_group 0@

:GFDATE_12938
2@ += 1
goto @GFDATE_14645

:GFDATE_12952
if 
  not is_car_dead 28@
goto_if_false @GFDATE_13016
if 
  not is_car_passenger_seat_free 28@ {seat} SeatId.BikeRear
goto_if_false @GFDATE_13001
task_leave_car $scplayer {vehicle} 28@
goto @GFDATE_13009

:GFDATE_13001
task_leave_car 0@ {vehicle} 28@

:GFDATE_13009
2@ += 1

:GFDATE_13016
goto @GFDATE_14645

:GFDATE_13023
25@ = get_script_task_status $scplayer {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_13159
25@ = get_script_task_status 0@ {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_13159
if 
  is_char_in_any_car $scplayer
goto_if_false @GFDATE_13124
28@ = store_car_char_is_in_no_save $scplayer
task_enter_car_as_passenger 0@ {vehicle} 28@ {time} -1 {seat} SeatId.BikeRear
goto @GFDATE_13152

:GFDATE_13124
28@ = store_car_char_is_in_no_save 0@
task_shuffle_to_next_car_seat 0@ {vehicle} 28@
task_enter_car_as_passenger $scplayer {vehicle} 28@ {time} -1 {seat} SeatId.BikeRear

:GFDATE_13152
2@ += 1

:GFDATE_13159
goto @GFDATE_14645

:GFDATE_13166
25@ = get_script_task_status $scplayer {taskId} 1482
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_13307
25@ = get_script_task_status 0@ {taskId} 1482
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_13307
27@ = get_driver_of_car 28@
if 
  is_int_lvar_equal_to_int_var 27@ == $scplayer
goto_if_false @GFDATE_13272
2@ = 2
goto @GFDATE_14645
goto @GFDATE_13307

:GFDATE_13272
task_car_drive_wander 0@ {vehicle} 28@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
add_stuck_car_check 28@ {distance} 1.0 {time} 1000
2@ += 1

:GFDATE_13307
goto @GFDATE_14645

:GFDATE_13314
if 
  not is_car_dead 28@
goto_if_false @GFDATE_13368
point_camera_at_car 28@ {mode} CameraMode.WheelCam {switchStyle} SwitchType.JumpCut
set_cinema_camera True
print_help 'GF_RAD'
set_local_var_bit_const 3@ {bitIndex} 13
2@ += 1

:GFDATE_13368
goto @GFDATE_14645

:GFDATE_13375
if 
  not get_fading_status 
goto_if_false @GFDATE_13676
if 
  is_car_stuck 28@
goto_if_false @GFDATE_13425
do_fade 500 {direction} Fade.Out
2@ = 9
goto @GFDATE_14645

:GFDATE_13425
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GFDATE_13484
25@ = get_radio_channel 
25@ += 1
if 
  25@ > 10
goto_if_false @GFDATE_13479
25@ = 0

:GFDATE_13479
set_radio_channel 25@

:GFDATE_13484
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GFDATE_13543
25@ = get_radio_channel 
25@ -= 1
if 
  0 > 25@
goto_if_false @GFDATE_13538
25@ = 10

:GFDATE_13538
set_radio_channel 25@

:GFDATE_13543
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFDATE_13606
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 12
goto_if_false @GFDATE_13599
2@ = 10
set_local_var_bit_const 3@ {bitIndex} 12
goto @GFDATE_14645

:GFDATE_13599
goto @GFDATE_13613

:GFDATE_13606
clear_local_var_bit_const 3@ {bitIndex} 12

:GFDATE_13613
if 
  TIMERA > 60000
goto_if_false @GFDATE_13676
gosub @GFDATE_19768
task_car_drive_to_coord 0@ {vehicle} 28@ {x} 4@ {y} 7@ {z} 10@ {speed} 30.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars
2@ += 1

:GFDATE_13676
goto @GFDATE_14645

:GFDATE_13683
if 
  is_car_stuck 28@
goto_if_false @GFDATE_13720
do_fade 500 {direction} Fade.Out
2@ = 9
goto @GFDATE_14645

:GFDATE_13720
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadUp
goto_if_false @GFDATE_13779
25@ = get_radio_channel 
25@ += 1
if 
  25@ > 10
goto_if_false @GFDATE_13774
25@ = 0

:GFDATE_13774
set_radio_channel 25@

:GFDATE_13779
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadDown
goto_if_false @GFDATE_13838
25@ = get_radio_channel 
25@ -= 1
if 
  0 > 25@
goto_if_false @GFDATE_13833
25@ = 10

:GFDATE_13833
set_radio_channel 25@

:GFDATE_13838
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFDATE_13901
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 12
goto_if_false @GFDATE_13894
2@ = 10
set_local_var_bit_const 3@ {bitIndex} 12
goto @GFDATE_14645

:GFDATE_13894
goto @GFDATE_13908

:GFDATE_13901
clear_local_var_bit_const 3@ {bitIndex} 12

:GFDATE_13908
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFDATE_13971
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 12
goto_if_false @GFDATE_13964
2@ = 10
set_local_var_bit_const 3@ {bitIndex} 12
goto @GFDATE_14645

:GFDATE_13964
goto @GFDATE_13978

:GFDATE_13971
clear_local_var_bit_const 3@ {bitIndex} 12

:GFDATE_13978
25@ = get_script_task_status 0@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_14107
clear_help 
set_cinema_camera False
if 
  does_car_have_stuck_car_check 28@
goto_if_false @GFDATE_14034
remove_stuck_car_check 28@

:GFDATE_14034
set_global_var_bit_const $iDateReport {bitIndex} 2
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_14082
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_14082
$iGFLikesPlayer($iGFidx,6i) += 5
1@ = 3
2@ = 0

:GFDATE_14107
goto @GFDATE_14645

:GFDATE_14114
if 
  not get_fading_status 
goto_if_false @GFDATE_14234
4@, 7@, 10@ = get_car_coordinates 28@
5@, 8@, 11@ = get_nth_closest_car_node 4@ {fromY} 7@ {fromZ} 10@ {n} 2
set_car_coordinates 28@ {x} 5@ {y} 8@ {z} 11@
do_fade 2000 {direction} Fade.In
25@ = get_script_task_status 0@ {taskId} 1489
if 
  is_int_lvar_equal_to_constant 25@ == 1
goto_if_false @GFDATE_14227
2@ = 7
goto @GFDATE_14234

:GFDATE_14227
2@ = 6

:GFDATE_14234
goto @GFDATE_14645

:GFDATE_14241
clear_help 
if 
  not is_car_dead 28@
goto_if_false @GFDATE_14349
car_set_idle 28@
set_cinema_camera False
if 
  does_car_have_stuck_car_check 28@
goto_if_false @GFDATE_14289
remove_stuck_car_check 28@

:GFDATE_14289
attach_camera_to_vehicle 28@ {xOffset} 4.0 {yOffset} 4.0 {zOffset} 1.0 {xRotation} 0.0 {yRotation} 0.0 {zRotation} 0.0 {tilt} 0.0 {switchStyle} SwitchType.JumpCut
switch_widescreen True
2@ += 1
goto @GFDATE_14356

:GFDATE_14349
2@ += 1

:GFDATE_14356
goto @GFDATE_14645

:GFDATE_14363
if 
  not is_car_dead 28@
goto_if_false @GFDATE_14446
if 
  is_car_stopped 28@
goto_if_false @GFDATE_14439
25@ = get_script_task_status $scplayer {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_14439
task_leave_car $scplayer {vehicle} 28@
2@ += 1

:GFDATE_14439
goto @GFDATE_14453

:GFDATE_14446
2@ += 1

:GFDATE_14453
goto @GFDATE_14645

:GFDATE_14460
25@ = get_script_task_status $scplayer {taskId} 1485
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_14638
28@ = store_car_char_is_in_no_save 0@
if 
  not is_car_dead 28@
goto_if_false @GFDATE_14559
set_car_proofs 28@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
task_car_drive_wander 0@ {vehicle} 28@ {speed} 30.0 {drivingMode} DrivingMode.AvoidCars
set_var_int_to_constant $iGFSayContext = 310
set_var_int_to_constant $iCJSayContext = 246

:GFDATE_14559
clear_char_tasks $scplayer
clear_help 
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
hide_char_weapon_for_scripted_cutscene 0@ {state} False
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_local_var_bit_const 3@ {bitIndex} 7
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
1@ = 9
2@ = 1

:GFDATE_14638
goto @GFDATE_14645

:GFDATE_14645
return 

:GFDATE_14647
switch_start 2@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_14895 {caseNum1} 0 {caseLabel1} @GFDATE_14710 {caseNum2} 1 {caseLabel2} @GFDATE_14799 {caseNum3} -1 {caseLabel3} @GFDATE_14895 {caseNum4} -1 {caseLabel4} @GFDATE_14895 {caseNum5} -1 {caseLabel5} @GFDATE_14895 {caseNum6} -1 {caseLabel6} @GFDATE_14895 {caseNum7} -1 {caseLabel7} @GFDATE_14895

:GFDATE_14710
gosub @GFDATE_32407
set_local_var_bit_const 3@ {bitIndex} 1
clear_global_var_bit_const $iDateReport {bitIndex} 2
remove_char_from_group 0@
clear_char_tasks_immediately 0@
task_flee_char_any_means 0@ {threat} $scplayer {safeDist} 100.0 {time} 36000000 {shoot} False {shootTime} 0 {shootCooldownTime} 0 {stealCarDist} 30.0
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
2@ += 1
goto @GFDATE_14895

:GFDATE_14799
if 
  not is_char_health_greater 0@ {health} 5
goto_if_false @GFDATE_14843
$iGFLikesPlayer($iGFidx,6i) = -999
task_die 0@
gosub @GFDATE_32517
return 

:GFDATE_14843
if 
  not locate_char_any_means_char_3d $scplayer {target} 0@ {xRadius} 70.0 {yRadius} 70.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @GFDATE_14888
gosub @GFDATE_32517
return 

:GFDATE_14888
goto @GFDATE_14895

:GFDATE_14895
return 

:GFDATE_14897
switch_start 2@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_15242 {caseNum1} 0 {caseLabel1} @GFDATE_14960 {caseNum2} 1 {caseLabel2} @GFDATE_15010 {caseNum3} -1 {caseLabel3} @GFDATE_15242 {caseNum4} -1 {caseLabel4} @GFDATE_15242 {caseNum5} -1 {caseLabel5} @GFDATE_15242 {caseNum6} -1 {caseLabel6} @GFDATE_15242 {caseNum7} -1 {caseLabel7} @GFDATE_15242

:GFDATE_14960
set_local_var_bit_const 3@ {bitIndex} 1
set_var_int_to_lvar_int $iDanceGirlfriend = 0@
$iSetBarPanic = 0
$iSwitchOffDanceMiniGame = 0
set_global_var_bit_const $iDanceReport {bitIndex} 31
2@ += 1
goto @GFDATE_15242

:GFDATE_15010
if 
  not is_global_var_bit_set_const $iDanceReport {bitIndex} 31
goto_if_false @GFDATE_15167
$iSwitchOffDanceMiniGame = 1
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_15076
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_15076
if 
  $iDanceScore >= 3000
goto_if_false @GFDATE_15117
set_global_var_bit_const $iDateReport {bitIndex} 2
set_var_int_to_constant $iGFSayContext = 279
goto @GFDATE_15132

:GFDATE_15117
clear_global_var_bit_const $iDateReport {bitIndex} 2
set_var_int_to_constant $iGFSayContext = 278

:GFDATE_15132
clear_local_var_bit_const 3@ {bitIndex} 1
set_local_var_bit_const 3@ {bitIndex} 2
1@ = 1
2@ = 0
goto @GFDATE_15235

:GFDATE_15167
24@ = get_char_area_visible $scplayer
if 
  24@ == 0
goto_if_false @GFDATE_15228
clear_local_var_bit_const 3@ {bitIndex} 1
clear_global_var_bit_const $iDanceReport {bitIndex} 31
1@ = 1
2@ = 0
goto @GFDATE_15235

:GFDATE_15228
set_local_var_bit_const 3@ {bitIndex} 13

:GFDATE_15235
goto @GFDATE_15242

:GFDATE_15242
return 

:GFDATE_15244
switch_start 2@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @GFDATE_16678 {caseNum1} 0 {caseLabel1} @GFDATE_15307 {caseNum2} 1 {caseLabel2} @GFDATE_15473 {caseNum3} 2 {caseLabel3} @GFDATE_15934 {caseNum4} 3 {caseLabel4} @GFDATE_16048 {caseNum5} 4 {caseLabel5} @GFDATE_16115 {caseNum6} -1 {caseLabel6} @GFDATE_16678 {caseNum7} -1 {caseLabel7} @GFDATE_16678

:GFDATE_15307
set_local_var_bit_const 3@ {bitIndex} 1
clear_help 
set_player_control $player1 {state} False
set_player_fire_button $player1 {enabled} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 2.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_off 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
task_turn_char_to_face_char $scplayer {target} 0@
task_turn_char_to_face_char 0@ {target} $scplayer
2@ += 1
goto @GFDATE_16678

:GFDATE_15473
25@ = get_script_task_status $scplayer {taskId} 1593
26@ = get_script_task_status 0@ {taskId} 1593
if and
  is_int_lvar_equal_to_constant 25@ == 7
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_15797
set_char_collision $scplayer {state} False
set_char_collision 0@ {state} False
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
11@ = get_ground_z_for_3d_coord 5@ {y} 8@ {z} 11@
6@, 9@, 12@ = get_char_coordinates 0@
12@ = get_ground_z_for_3d_coord 6@ {y} 9@ {z} 12@
set_char_coordinates 0@ {x} 5@ {y} 8@ {z} 11@
13@ = get_char_heading $scplayer
13@ += 180.0
set_char_heading 0@ {heading} 13@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.2 {yOffset} -1.0 {zOffset} 0.5
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.7 {zOffset} 0.5
if 
  is_line_of_sight_clear 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@ {buildings} True {cars} True {chars} False {objects} True {particles} False
goto_if_false @GFDATE_15783
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.JumpCut

:GFDATE_15783
2@ += 1
goto @GFDATE_15927

:GFDATE_15797
25@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15862
25@ = get_script_task_status $scplayer {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15862
task_stand_still $scplayer {time} -1

:GFDATE_15862
25@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15927
25@ = get_script_task_status 0@ {taskId} 1466
if 
  is_int_lvar_equal_to_constant 25@ == 7
goto_if_false @GFDATE_15927
task_stand_still 0@ {time} -1

:GFDATE_15927
goto @GFDATE_16678

:GFDATE_15934
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
task_play_anim $scplayer {animationName} "GIFT_GIVE" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim 0@ {animationName} "GIFT_GET" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
TIMERB = 0
2@ += 1
goto @GFDATE_16678

:GFDATE_16048
if 
  TIMERB >= 3966
goto_if_false @GFDATE_16108
25@ = get_current_char_weapon $scplayer
remove_weapon_from_char $scplayer {weaponType} 25@
give_weapon_to_char 0@ {weaponType} 25@ {ammo} 0
set_var_int_to_constant $iGFSayContext = 303
2@ = 4

:GFDATE_16108
goto @GFDATE_16678

:GFDATE_16115
13@ = -1.0
if 
  is_char_playing_anim $scplayer {animationName} "GIFT_GIVE"
goto_if_false @GFDATE_16171
13@ = get_char_anim_current_time $scplayer {animationName} "GIFT_GIVE"

:GFDATE_16171
if 
  13@ > -1.0
goto_if_false @GFDATE_16427
if 
  13@ == 1.0
goto_if_false @GFDATE_16420
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_player_fire_button $player1 {enabled} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
25@ = get_current_char_weapon 0@
remove_weapon_from_char 0@ {weaponType} 25@
$iGFLikesPlayer($iGFidx,6i) += 1
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_16420
goto @GFDATE_16671

:GFDATE_16427
clear_char_tasks $scplayer
task_pause 0@ {time} 0
$iGFLikesPlayer($iGFidx,6i) += 1
set_char_coordinates 0@ {x} 6@ {y} 9@ {z} 12@
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 30.0 {yOffset} 30.0 {zOffset} 1.0
5@, 8@, 11@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -30.0 {yOffset} -30.0 {zOffset} -1.0
switch_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
switch_ped_roads_back_to_original 4@ {leftBottomY} 7@ {leftBottomZ} 10@ {rightTopX} 5@ {rightTopY} 8@ {rightTopZ} 11@
set_char_collision $scplayer {state} True
set_char_collision 0@ {state} True
set_player_control $player1 {state} True
set_player_fire_button $player1 {enabled} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_all_cars_can_be_damaged True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_16650
set_group_member $Players_Group {handle} 0@
listen_to_player_group_commands 0@ {state} False
set_player_group_to_follow_always $player1 {state} True

:GFDATE_16650
clear_local_var_bit_const 3@ {bitIndex} 1
1@ = 1
2@ = 0

:GFDATE_16671
goto @GFDATE_16678

:GFDATE_16678
return 

:GFDATE_16680
if 
  -15 >= $iGFLikesPlayer($iGFidx,6i)
goto_if_false @GFDATE_16713
$iGFLikesPlayer($iGFidx,6i) = -99

:GFDATE_16713
if 
  $iGFLikesPlayer($iGFidx,6i) == -99
goto_if_false @GFDATE_16744
25@ = -1
return 

:GFDATE_16744
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_16771
25@ = 1
return 

:GFDATE_16771
25@ = get_int_stat StatId.SexAppeal
25@ /= 10
switch_start $iGFidx {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFDATE_16933 {caseNum1} 2 {caseLabel1} @GFDATE_16848 {caseNum2} 3 {caseLabel2} @GFDATE_16891 {caseNum3} -1 {caseLabel3} @GFDATE_16933 {caseNum4} -1 {caseLabel4} @GFDATE_16933 {caseNum5} -1 {caseLabel5} @GFDATE_16933 {caseNum6} -1 {caseLabel6} @GFDATE_16933 {caseNum7} -1 {caseLabel7} @GFDATE_16933

:GFDATE_16848
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "COUNTRYTR"
goto_if_false @GFDATE_16884
25@ += 25

:GFDATE_16884
goto @GFDATE_16933

:GFDATE_16891
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "POLICETR"
goto_if_false @GFDATE_16926
25@ += 25

:GFDATE_16926
goto @GFDATE_16933

:GFDATE_16933
26@ = get_int_stat StatId.Fat
26@ /= 10
26@ /= 2
if 
  26@ >= 25
goto_if_false @GFDATE_17038
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_17009
add_int_lvar_to_int_lvar 25@ += 26@
goto @GFDATE_17031

:GFDATE_17009
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 21

:GFDATE_17031
goto @GFDATE_17144

:GFDATE_17038
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_17089
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 20
goto @GFDATE_17144

:GFDATE_17089
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_17144
if 
  26@ == 0
goto_if_false @GFDATE_17136
26@ = 5

:GFDATE_17136
add_int_lvar_to_int_lvar 25@ += 26@

:GFDATE_17144
26@ = get_int_stat StatId.BodyMuscle
26@ /= 10
26@ /= 2
if 
  26@ >= 20
goto_if_false @GFDATE_17271
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_17220
add_int_lvar_to_int_lvar 25@ += 26@
goto @GFDATE_17264

:GFDATE_17220
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_17264
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 22

:GFDATE_17264
goto @GFDATE_17377

:GFDATE_17271
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_17322
sub_int_lvar_from_int_lvar 25@ -= 26@
set_local_var_bit_const 3@ {bitIndex} 23
set_local_var_bit_const 3@ {bitIndex} 21
goto @GFDATE_17377

:GFDATE_17322
if 
  is_global_var_bit_set_const $iGFLikesPlayerTraits($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_17377
if 
  26@ == 0
goto_if_false @GFDATE_17369
26@ = 5

:GFDATE_17369
add_int_lvar_to_int_lvar 25@ += 26@

:GFDATE_17377
set_lvar_int_to_var_int 26@ = $iGFLikesPlayer($iGFidx,6i)
26@ /= 2
add_int_lvar_to_int_lvar 25@ += 26@
if 
  is_int_lvar_greater_or_equal_to_int_var 25@ >= $iGFDesiredSexAppeal($iGFidx,6i)
goto_if_false @GFDATE_17441
25@ = 1
goto @GFDATE_17448

:GFDATE_17441
25@ = -1

:GFDATE_17448
return 

:GFDATE_17450
25@ = generate_random_int_in_range 0 {max} 100
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_17557
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17526
set_var_int_to_constant $iGFSayContext = 263
goto @GFDATE_17534

:GFDATE_17526
set_var_int_to_constant $iGFSayContext = 264

:GFDATE_17534
set_var_int_to_constant $iCJSayContext = 10
gosub @GFDATE_18725
gosub @GFDATE_17816
return 

:GFDATE_17557
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_17657
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17624
set_var_int_to_constant $iGFSayContext = 265
goto @GFDATE_17632

:GFDATE_17624
set_var_int_to_constant $iGFSayContext = 266

:GFDATE_17632
set_var_int_to_constant $iCJSayContext = 10
display_onscreen_counter_with_string $iFun {display} CounterDisplay.Bar {text} 'GF_0029'
return 

:GFDATE_17657
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_17755
if and
  is_int_var_greater_than_int_var $iGFLikesPlayer($iGFidx,6i) > $iGFSelfRespect($iGFidx,6i)
  25@ > 50
goto_if_false @GFDATE_17724
set_var_int_to_constant $iGFSayContext = 267
goto @GFDATE_17732

:GFDATE_17724
set_var_int_to_constant $iGFSayContext = 268

:GFDATE_17732
set_var_int_to_constant $iCJSayContext = 10
gosub @GFDATE_18725
gosub @GFDATE_17816
return 

:GFDATE_17755
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 15
goto_if_false @GFDATE_17814
set_var_int_to_constant $iGFSayContext = 309
set_var_int_to_constant $iCJSayContext = 245
if 
  is_player_playing $player1
goto_if_false @GFDATE_17812
set_char_cant_be_dragged_out $scplayer {state} True

:GFDATE_17812
return 

:GFDATE_17814
return 

:GFDATE_17816
if 
  is_player_playing $player1
goto_if_false @GFDATE_18723
gosub @GFDATE_32407
25@ = get_city_player_is_in $player1
if 
  is_int_lvar_equal_to_constant 25@ == 1
goto_if_false @GFDATE_18033
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_17993
15@ = add_short_range_sprite_blip_for_coord 2862.0 {y} -1439.0 {z} 10.0 {sprite} RadarSprite.Diner
16@ = add_short_range_sprite_blip_for_coord 2317.0 {y} -1645.0 {z} 13.0 {sprite} RadarSprite.DateDrink
17@ = add_short_range_sprite_blip_for_coord 1837.0 {y} -1682.0 {z} 14.0 {sprite} RadarSprite.DateDrink
18@ = add_short_range_sprite_blip_for_coord 415.3947 {y} -1431.017 {z} 31.5057 {sprite} RadarSprite.DateFood
19@ = add_short_range_sprite_blip_for_coord 384.6615 {y} -1819.5291 {z} 6.8414 {sprite} RadarSprite.Diner

:GFDATE_17993
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_18033
15@ = add_short_range_sprite_blip_for_coord 1837.0 {y} -1682.0 {z} 14.0 {sprite} RadarSprite.DateDisco

:GFDATE_18033
if 
  is_int_lvar_equal_to_constant 25@ == 2
goto_if_false @GFDATE_18241
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_18201
15@ = add_short_range_sprite_blip_for_coord -2463.0 {y} 132.0 {z} 34.0 {sprite} RadarSprite.DateFood
16@ = add_short_range_sprite_blip_for_coord -1885.0 {y} 747.0 {z} 44.0 {sprite} RadarSprite.DateFood
17@ = add_short_range_sprite_blip_for_coord -1699.0 {y} 1380.0 {z} 6.0 {sprite} RadarSprite.Diner
18@ = add_short_range_sprite_blip_for_coord -2524.0 {y} 1216.0 {z} 37.0 {sprite} RadarSprite.Diner
19@ = add_short_range_sprite_blip_for_coord -2241.0 {y} -88.0 {z} 35.0 {sprite} RadarSprite.DateDrink
20@ = add_short_range_sprite_blip_for_coord -2551.115 {y} 193.657 {z} 5.2 {sprite} RadarSprite.DateDrink

:GFDATE_18201
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_18241
15@ = add_short_range_sprite_blip_for_coord -2551.115 {y} 193.657 {z} 5.2 {sprite} RadarSprite.DateDisco

:GFDATE_18241
if 
  is_int_lvar_equal_to_constant 25@ == 3
goto_if_false @GFDATE_18427
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_18387
15@ = add_short_range_sprite_blip_for_coord 2441.145 {y} 2065.145 {z} 9.847 {sprite} RadarSprite.DateDrink
16@ = add_short_range_sprite_blip_for_coord 1693.0 {y} 2208.0 {z} 9.8 {sprite} RadarSprite.DateFood
17@ = add_short_range_sprite_blip_for_coord 2490.666 {y} 2065.145 {z} 9.847 {sprite} RadarSprite.DateFood
18@ = add_short_range_sprite_blip_for_coord 1376.892 {y} 2327.792 {z} 9.822 {sprite} RadarSprite.Diner
19@ = add_short_range_sprite_blip_for_coord 2368.0581 {y} 1983.1851 {z} 10.003 {sprite} RadarSprite.Diner

:GFDATE_18387
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_18427
15@ = add_short_range_sprite_blip_for_coord 2507.4399 {y} 1242.3101 {z} 9.833 {sprite} RadarSprite.DateDisco

:GFDATE_18427
if 
  is_int_lvar_equal_to_constant 25@ == 0
goto_if_false @GFDATE_18723
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_18639
15@ = add_short_range_sprite_blip_for_coord 292.865 {y} -195.47 {z} 0.852 {sprite} RadarSprite.DateDrink
16@ = add_short_range_sprite_blip_for_coord 681.544 {y} -473.494 {z} 15.592 {sprite} RadarSprite.Diner
17@ = add_short_range_sprite_blip_for_coord -1941.516 {y} 2379.6721 {z} 48.4922 {sprite} RadarSprite.Diner
18@ = add_short_range_sprite_blip_for_coord -857.14 {y} 1537.277 {z} 21.587 {sprite} RadarSprite.DateFood
19@ = add_short_range_sprite_blip_for_coord -85.2583 {y} 1378.991 {z} 9.2812 {sprite} RadarSprite.DateDrink
20@ = add_short_range_sprite_blip_for_coord -53.867 {y} 1189.297 {z} 18.414 {sprite} RadarSprite.Diner
21@ = add_short_range_sprite_blip_for_coord 2317.0 {y} -1645.0 {z} 13.0 {sprite} RadarSprite.DateDrink
22@ = add_short_range_sprite_blip_for_coord 415.3947 {y} -1431.017 {z} 31.5057 {sprite} RadarSprite.DateFood

:GFDATE_18639
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_18723
15@ = add_short_range_sprite_blip_for_coord 1837.0 {y} -1682.0 {z} 14.0 {sprite} RadarSprite.DateDisco
16@ = add_short_range_sprite_blip_for_coord -2551.115 {y} 193.657 {z} 5.2 {sprite} RadarSprite.DateDisco
17@ = add_short_range_sprite_blip_for_coord 2507.4399 {y} 1242.3101 {z} 9.833 {sprite} RadarSprite.DateDisco

:GFDATE_18723
return 

:GFDATE_18725
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_19023
switch_entry_exit 'FDREST1' {state} True
switch_entry_exit 'REST2' {state} True
switch_entry_exit 'DINER1' {state} True
switch_entry_exit 'DINER2' {state} True
switch_entry_exit 'TSDINER' {state} True
set_named_entry_exit_flag 'FDPIZA' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'FDBURG' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'FDCHICK' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'UFOBAR' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'FDREST1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'DINER2' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'TSDINER' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.NoWarp {state} True
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.NoWarp {state} True
goto @GFDATE_19073

:GFDATE_19023
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_19073
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.WarpGroup {state} True
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.WarpGroup {state} True

:GFDATE_19073
return 

:GFDATE_19075
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
switch_entry_exit 'FDPIZA' {state} True
switch_entry_exit 'FDBURG' {state} True
switch_entry_exit 'FDCHICK' {state} True
switch_entry_exit 'BAR1' {state} True
switch_entry_exit 'BAR2' {state} True
switch_entry_exit 'UFOBAR' {state} True
set_named_entry_exit_flag 'FDPIZA' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDBURG' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDCHICK' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDREST1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'REST2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'DINER1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'DINER2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'TSDINER' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'UFOBAR' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.WarpGroup {state} False
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.WarpGroup {state} False
return 

:GFDATE_19460
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
switch_entry_exit 'FDPIZA' {state} False
switch_entry_exit 'FDBURG' {state} False
switch_entry_exit 'FDCHICK' {state} False
switch_entry_exit 'BAR1' {state} False
switch_entry_exit 'BAR2' {state} False
switch_entry_exit 'UFOBAR' {state} False
return 

:GFDATE_19605
switch_entry_exit 'FDREST1' {state} False
switch_entry_exit 'REST2' {state} False
switch_entry_exit 'DINER1' {state} False
switch_entry_exit 'DINER2' {state} False
switch_entry_exit 'TSDINER' {state} False
set_named_entry_exit_flag 'FDPIZA' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDBURG' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'FDCHICK' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR1' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'BAR2' {flag} EntryexitsFlag.NoWarp {state} False
set_named_entry_exit_flag 'UFOBAR' {flag} EntryexitsFlag.NoWarp {state} False
return 

:GFDATE_19768
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_20053 {caseNum1} 0 {caseLabel1} @GFDATE_19831 {caseNum2} 1 {caseLabel2} @GFDATE_19942 {caseNum3} 2 {caseLabel3} @GFDATE_19905 {caseNum4} 3 {caseLabel4} @GFDATE_19868 {caseNum5} 4 {caseLabel5} @GFDATE_19979 {caseNum6} 5 {caseLabel6} @GFDATE_20016 {caseNum7} -1 {caseLabel7} @GFDATE_20053

:GFDATE_19831
4@ = 2402.012
7@ = -1719.6479
10@ = 12.6219
goto @GFDATE_20053

:GFDATE_19868
4@ = -1398.101
7@ = 2636.873
10@ = 54.7031
goto @GFDATE_20053

:GFDATE_19905
4@ = -377.3978
7@ = -1438.692
10@ = 24.7209
goto @GFDATE_20053

:GFDATE_19942
4@ = -1796.952
7@ = 1197.376
10@ = 24.1094
goto @GFDATE_20053

:GFDATE_19979
4@ = -2576.8081
7@ = 1144.744
10@ = 54.8547
goto @GFDATE_20053

:GFDATE_20016
4@ = 2035.3621
7@ = 2732.4109
10@ = 9.8203
goto @GFDATE_20053

:GFDATE_20053
return 

:GFDATE_20055
if 
  is_local_var_bit_set_const 3@ {bitIndex} 2
goto_if_false @GFDATE_20150
gosub @GFDATE_19768
if 
  locate_stopped_char_any_means_3d 0@ {x} 4@ {y} 7@ {z} 10@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} True
goto_if_false @GFDATE_20136
24@ = -2
goto @GFDATE_20143

:GFDATE_20136
24@ = -1

:GFDATE_20143
goto @GFDATE_20349

:GFDATE_20150
24@ = get_area_visible 
if 
  24@ <> 0
goto_if_false @GFDATE_20342
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_20247
v$txtEntryExitName = get_name_of_entry_exit_char_used $scplayer
gosub @GFDATE_22371
if 
  25@ > -1
goto_if_false @GFDATE_20233
return 
goto @GFDATE_20240

:GFDATE_20233
24@ = -1

:GFDATE_20240
goto @GFDATE_20335

:GFDATE_20247
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_20328
v$txtEntryExitName = get_name_of_entry_exit_char_used $scplayer
gosub @GFDATE_22371
if 
  25@ == 8
goto_if_false @GFDATE_20314
set_local_var_bit_const 3@ {bitIndex} 13
return 
goto @GFDATE_20321

:GFDATE_20314
24@ = -1

:GFDATE_20321
goto @GFDATE_20335

:GFDATE_20328
24@ = -1

:GFDATE_20335
goto @GFDATE_20349

:GFDATE_20342
24@ = -1

:GFDATE_20349
return 

:GFDATE_20351
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_20576 {caseNum1} 0 {caseLabel1} @GFDATE_20414 {caseNum2} 1 {caseLabel2} @GFDATE_20495 {caseNum3} 2 {caseLabel3} @GFDATE_20468 {caseNum4} 3 {caseLabel4} @GFDATE_20441 {caseNum5} 4 {caseLabel5} @GFDATE_20522 {caseNum6} 5 {caseLabel6} @GFDATE_20549 {caseNum7} -1 {caseLabel7} @GFDATE_20576

:GFDATE_20414
append_to_next_cutscene 'GANGRL3' {animName} 'GFRIEND'
goto @GFDATE_20576

:GFDATE_20441
append_to_next_cutscene 'COPGRL3' {animName} 'GFRIEND'
goto @GFDATE_20576

:GFDATE_20468
append_to_next_cutscene 'GUNGRL3' {animName} 'GFRIEND'
goto @GFDATE_20576

:GFDATE_20495
append_to_next_cutscene 'MECGRL3' {animName} 'GFRIEND'
goto @GFDATE_20576

:GFDATE_20522
append_to_next_cutscene 'NURGRL3' {animName} 'GFRIEND'
goto @GFDATE_20576

:GFDATE_20549
append_to_next_cutscene 'CROGRL3' {animName} 'GFRIEND'
goto @GFDATE_20576

:GFDATE_20576
return 

:GFDATE_20578
gosub @GFDATE_22371
switch_start 25@ {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @GFDATE_22369 {caseNum1} 1 {caseLabel1} @GFDATE_21201 {caseNum2} 2 {caseLabel2} @GFDATE_21337 {caseNum3} 3 {caseLabel3} @GFDATE_20713 {caseNum4} 4 {caseLabel4} @GFDATE_20929 {caseNum5} 5 {caseLabel5} @GFDATE_21065 {caseNum6} 6 {caseLabel6} @GFDATE_21825 {caseNum7} 7 {caseLabel7} @GFDATE_22097
switch_continued 8 {caseLabel1} @GFDATE_21553 {caseNum2} 9 {caseLabel2} @GFDATE_21689 {caseNum3} 10 {caseLabel3} @GFDATE_22233 {caseNum4} 11 {caseLabel4} @GFDATE_21961 {caseNum5} -1 {caseLabel5} @GFDATE_22369 {caseNum6} -1 {caseLabel6} @GFDATE_22369 {caseNum7} -1 {caseLabel7} @GFDATE_22369 {caseNum8} -1 {caseLabel8} @GFDATE_22369 {caseNum9} -1 {caseLabel9} @GFDATE_22369

:GFDATE_20713
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 370.0
7@ = -125.0
10@ = 1001.52
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_20864
append_to_next_cutscene 'GFPIZ1' {animName} 'GFPIZ1'
append_to_next_cutscene 'GFPIZ2' {animName} 'GFPIZ2'
load_cutscene 'DATE1A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_20922

:GFDATE_20864
append_to_next_cutscene 'GFPIZ1' {animName} 'GFPIZ1'
append_to_next_cutscene 'GFPIZ2' {animName} 'GFPIZ2'
load_cutscene 'DATE1B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_20922
goto @GFDATE_22369

:GFDATE_20929
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 445.381
7@ = -14.147
10@ = 1001.731
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 5
goto_if_false @GFDATE_21040
load_cutscene 'DATE5A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21058

:GFDATE_21040
load_cutscene 'DATE5B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21058
goto @GFDATE_22369

:GFDATE_21065
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 441.871
7@ = -60.839
10@ = 1000.675
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 5
goto_if_false @GFDATE_21176
load_cutscene 'DATE5A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21194

:GFDATE_21176
load_cutscene 'DATE5B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21194
goto @GFDATE_22369

:GFDATE_21201
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 374.478
7@ = -8.415
10@ = 1002.86
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_21312
load_cutscene 'DATE2A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21330

:GFDATE_21312
load_cutscene 'DATE2B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21330
goto @GFDATE_22369

:GFDATE_21337
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 367.891
7@ = -67.591
10@ = 1001.516
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 1
goto_if_false @GFDATE_21488
append_to_next_cutscene 'BURG_PA' {animName} 'GFPIZ1'
append_to_next_cutscene 'BURG_GA' {animName} 'GFPIZ2'
load_cutscene 'DATE1A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21546

:GFDATE_21488
append_to_next_cutscene 'BURG_PA' {animName} 'GFPIZ1'
append_to_next_cutscene 'BURG_GA' {animName} 'GFPIZ2'
load_cutscene 'DATE1B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21546
goto @GFDATE_22369

:GFDATE_21553
set_extra_colours 5 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 20
increment_int_stat StatId.Fat {value} 20
4@ = 498.536
7@ = -18.2
10@ = 1000.651
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_21664
load_cutscene 'DATE6A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21682

:GFDATE_21664
load_cutscene 'DATE6B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21682
goto @GFDATE_22369

:GFDATE_21689
set_extra_colours 6 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 20
increment_int_stat StatId.Fat {value} 20
4@ = 490.718
7@ = -79.168
10@ = 998.76
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_21800
load_cutscene 'DATE6A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21818

:GFDATE_21800
load_cutscene 'DATE6B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21818
goto @GFDATE_22369

:GFDATE_21825
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 449.41
7@ = -86.72
10@ = 1000.53
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_21936
load_cutscene 'DATE3A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_21954

:GFDATE_21936
load_cutscene 'DATE3B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_21954
goto @GFDATE_22369

:GFDATE_21961
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 678.028
7@ = -452.9
10@ = -24.444
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_22072
load_cutscene 'DATE3A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_22090

:GFDATE_22072
load_cutscene 'DATE3B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_22090
goto @GFDATE_22369

:GFDATE_22097
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 40
increment_int_stat StatId.Fat {value} 40
4@ = 449.41
7@ = -108.24
10@ = 1000.528
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 2
goto_if_false @GFDATE_22208
load_cutscene 'DATE4A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_22226

:GFDATE_22208
load_cutscene 'DATE4B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_22226
goto @GFDATE_22369

:GFDATE_22233
set_extra_colours 4 {fade} False
show_update_stats False
increment_int_stat StatId.Calories {value} 20
increment_int_stat StatId.Fat {value} 20
4@ = -226.249
7@ = 1405.448
10@ = 27.7
load_scene 4@ {y} 7@ {z} 10@
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 3
goto_if_false @GFDATE_22344
load_cutscene 'DATE6A'
set_global_var_bit_const $iDateReport {bitIndex} 2
goto @GFDATE_22362

:GFDATE_22344
load_cutscene 'DATE6B'
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_22362
goto @GFDATE_22369

:GFDATE_22369
return 

:GFDATE_22371
25@ = -1
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "FDCHICK"
goto_if_false @GFDATE_22412
25@ = 1
return 

:GFDATE_22412
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "FDBURG"
goto_if_false @GFDATE_22445
25@ = 2
return 

:GFDATE_22445
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "FDPIZA"
goto_if_false @GFDATE_22478
25@ = 3
return 

:GFDATE_22478
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "FDREST1"
goto_if_false @GFDATE_22512
25@ = 4
return 

:GFDATE_22512
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "REST2"
goto_if_false @GFDATE_22544
25@ = 5
return 

:GFDATE_22544
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "DINER1"
goto_if_false @GFDATE_22577
25@ = 6
return 

:GFDATE_22577
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "DINER2"
goto_if_false @GFDATE_22610
25@ = 7
return 

:GFDATE_22610
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "BAR1"
goto_if_false @GFDATE_22641
25@ = 8
return 

:GFDATE_22641
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "BAR2"
goto_if_false @GFDATE_22672
25@ = 9
return 

:GFDATE_22672
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "UFOBAR"
goto_if_false @GFDATE_22705
25@ = 10
return 

:GFDATE_22705
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExitName == "TSDINER"
goto_if_false @GFDATE_22739
25@ = 11
return 

:GFDATE_22739
set_var_text_label16 v$txtEntryExitName = "NIL"
return 

:GFDATE_22751
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_23456 {caseNum1} 0 {caseLabel1} @GFDATE_22814 {caseNum2} 1 {caseLabel2} @GFDATE_23028 {caseNum3} 2 {caseLabel3} @GFDATE_23135 {caseNum4} 3 {caseLabel4} @GFDATE_22921 {caseNum5} 4 {caseLabel5} @GFDATE_23242 {caseNum6} 5 {caseLabel6} @GFDATE_23349 {caseNum7} -1 {caseLabel7} @GFDATE_23456

:GFDATE_22814
4@ = 2394.408
7@ = -1728.215
10@ = 14.2715
5@ = 2395.0659
8@ = -1727.465
11@ = 14.2063
6@ = 2401.9099
9@ = -1715.6331
12@ = 13.0848
13@ = 180.0
goto @GFDATE_23456

:GFDATE_22921
4@ = -1401.494
7@ = 2640.0991
10@ = 59.3883
5@ = -1400.704
8@ = 2639.6411
11@ = 58.9806
6@ = -1390.6
9@ = 2638.3491
12@ = 54.9965
13@ = 90.0
goto @GFDATE_23456

:GFDATE_23028
4@ = -1799.7371
7@ = 1192.863
10@ = 29.6868
5@ = -1799.472
8@ = 1193.683
11@ = 29.1813
6@ = -1799.8101
9@ = 1200.6021
12@ = 24.1194
13@ = 197.0
goto @GFDATE_23456

:GFDATE_23135
4@ = -383.3153
7@ = -1435.266
10@ = 26.695
5@ = -382.5756
8@ = -1435.887
11@ = 26.4366
6@ = -382.0961
9@ = -1438.207
12@ = 24.7209
13@ = 269.3417
goto @GFDATE_23456

:GFDATE_23242
4@ = -2582.293
7@ = 1147.762
10@ = 59.6235
5@ = -2581.406
8@ = 1147.7679
11@ = 59.1605
6@ = -2574.0449
9@ = 1152.397
12@ = 54.7422
13@ = 151.7896
goto @GFDATE_23456

:GFDATE_23349
4@ = 2032.235
7@ = 2734.541
10@ = 13.3226
5@ = 2032.744
8@ = 2733.7141
11@ = 13.0817
6@ = 2037.401
9@ = 2723.283
12@ = 9.8352
13@ = 8.0
goto @GFDATE_23456

:GFDATE_23456
return 

:GFDATE_23458
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Ballas
if 
  25@ > 0
goto_if_false @GFDATE_23488
return 

:GFDATE_23488
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Aztecas
if 
  25@ > 0
goto_if_false @GFDATE_23518
return 

:GFDATE_23518
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Vagos
if 
  25@ > 0
goto_if_false @GFDATE_23548
return 

:GFDATE_23548
25@ = get_zone_gang_strength s$txtCurrZone {gangId} GangType.Rifa
if 
  25@ > 0
goto_if_false @GFDATE_23578
return 

:GFDATE_23578
return 

:GFDATE_23580
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_23638
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 2
  not is_local_var_bit_set_const 3@ {bitIndex} 26
goto_if_false @GFDATE_23631
set_var_int_to_constant $iGFSayContext = 272

:GFDATE_23631
goto @GFDATE_23671

:GFDATE_23638
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 2
  not is_local_var_bit_set_const 3@ {bitIndex} 26
goto_if_false @GFDATE_23671
set_var_int_to_constant $iGFSayContext = 271

:GFDATE_23671
set_local_var_bit_const 3@ {bitIndex} 26
return 

:GFDATE_23680
1@ = 5
2@ = 0
return 

:GFDATE_23696
25@ = 0
if 
  not is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_24074
if and
  not is_char_in_any_car 0@
  not is_player_using_jetpack $player1
  not is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @GFDATE_24074
if 
  is_char_stopped 0@
goto_if_false @GFDATE_24074
4@, 7@, 10@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 4@ {y} 7@ {z} 10@ {xRadius} 1.3 {yRadius} 1.3 {zRadius} 1.0 {drawSphere} False
goto_if_false @GFDATE_24074
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_char_coordinates 0@
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 0.02
set_lvar_float_to_lvar_float 14@ = 11@
14@ += 0.02
if and
  is_float_lvar_greater_than_float_lvar 10@ > 13@
  is_float_lvar_greater_than_float_lvar 14@ > 10@
goto_if_false @GFDATE_24074
if or
  is_current_char_weapon $scplayer {weaponType} WeaponType.Flowers
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo1
  is_current_char_weapon $scplayer {weaponType} WeaponType.Dildo2
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe1
  is_current_char_weapon $scplayer {weaponType} WeaponType.Vibe2
goto_if_false @GFDATE_24027
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 28
  not is_help_message_being_displayed 
goto_if_false @GFDATE_24011
print_help 'GF_H013'
set_local_var_bit_const 3@ {bitIndex} 28

:GFDATE_24011
25@ = 2
return 
goto @GFDATE_24074

:GFDATE_24027
if and
  not is_local_var_bit_set_const 3@ {bitIndex} 4
  not is_help_message_being_displayed 
goto_if_false @GFDATE_24065
print_help 'GF_0021'
set_local_var_bit_const 3@ {bitIndex} 4

:GFDATE_24065
25@ = 1
return 

:GFDATE_24074
return 

:GFDATE_24076
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_24106
request_animation "BLOWJOBZ"

:GFDATE_24106
request_animation "KISSING"

:GFDATE_24117
wait 0
if 
  has_animation_loaded "KISSING"
goto_if_false @GFDATE_24228
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_24219
if 
  has_animation_loaded "BLOWJOBZ"
goto_if_false @GFDATE_24193
return 
goto @GFDATE_24212

:GFDATE_24193
request_animation "BLOWJOBZ"
goto @GFDATE_24117

:GFDATE_24212
goto @GFDATE_24221

:GFDATE_24219
return 

:GFDATE_24221
goto @GFDATE_24246

:GFDATE_24228
request_animation "KISSING"
goto @GFDATE_24117

:GFDATE_24246
if 
  is_local_var_bit_set_const 3@ {bitIndex} 13
goto_if_false @GFDATE_24318
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24297
TIMERA = 30000
goto @GFDATE_24304

:GFDATE_24297
TIMERA = 0

:GFDATE_24304
clear_local_var_bit_const 3@ {bitIndex} 13
goto @GFDATE_25025

:GFDATE_24318
if 
  is_local_var_bit_set_const 3@ {bitIndex} 8
goto_if_false @GFDATE_24416
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24369
TIMERA = 30000
goto @GFDATE_24402

:GFDATE_24369
if 
  30@ == -1
goto_if_false @GFDATE_24395
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24395
TIMERA = 0

:GFDATE_24402
clear_local_var_bit_const 3@ {bitIndex} 8
goto @GFDATE_25025

:GFDATE_24416
switch_start 1@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @GFDATE_25025 {caseNum1} 1 {caseLabel1} @GFDATE_24544 {caseNum2} 2 {caseLabel2} @GFDATE_24625 {caseNum3} 3 {caseLabel3} @GFDATE_24639 {caseNum4} 4 {caseLabel4} @GFDATE_24653 {caseNum5} 5 {caseLabel5} @GFDATE_24734 {caseNum6} 6 {caseLabel6} @GFDATE_24748 {caseNum7} 7 {caseLabel7} @GFDATE_24843
switch_continued 10 {caseLabel1} @GFDATE_24938 {caseNum2} 11 {caseLabel2} @GFDATE_24952 {caseNum3} -1 {caseLabel3} @GFDATE_25025 {caseNum4} -1 {caseLabel4} @GFDATE_25025 {caseNum5} -1 {caseLabel5} @GFDATE_25025 {caseNum6} -1 {caseLabel6} @GFDATE_25025 {caseNum7} -1 {caseLabel7} @GFDATE_25025 {caseNum8} -1 {caseLabel8} @GFDATE_25025 {caseNum9} -1 {caseLabel9} @GFDATE_25025

:GFDATE_24544
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  is_char_shooting 0@
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24585
TIMERA = 0

:GFDATE_24585
if 
  30@ > 0
goto_if_false @GFDATE_24618
set_lvar_int_to_lvar_int TIMERA = 30@
30@ = -1

:GFDATE_24618
goto @GFDATE_25025

:GFDATE_24625
TIMERA = 0
goto @GFDATE_25025

:GFDATE_24639
TIMERA = 0
goto @GFDATE_25025

:GFDATE_24653
if and
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 21
  is_char_shooting 0@
  not is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24694
TIMERA = 0

:GFDATE_24694
if 
  30@ > 0
goto_if_false @GFDATE_24727
set_lvar_int_to_lvar_int TIMERA = 30@
30@ = -1

:GFDATE_24727
goto @GFDATE_25025

:GFDATE_24734
TIMERA = 0
goto @GFDATE_25025

:GFDATE_24748
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 27
goto_if_false @GFDATE_24836
if 
  30@ == -1
goto_if_false @GFDATE_24796
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24796
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24829
TIMERA = 30000
goto @GFDATE_24836

:GFDATE_24829
TIMERA = 0

:GFDATE_24836
goto @GFDATE_25025

:GFDATE_24843
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 28
goto_if_false @GFDATE_24931
if 
  30@ == -1
goto_if_false @GFDATE_24891
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24891
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_24924
TIMERA = 30000
goto @GFDATE_24931

:GFDATE_24924
TIMERA = 0

:GFDATE_24931
goto @GFDATE_25025

:GFDATE_24938
TIMERA = 0
goto @GFDATE_25025

:GFDATE_24952
if 
  30@ == -1
goto_if_false @GFDATE_24978
set_lvar_int_to_lvar_int 30@ = TIMERA

:GFDATE_24978
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_25011
TIMERA = 30000
goto @GFDATE_25018

:GFDATE_25011
TIMERA = 0

:GFDATE_25018
goto @GFDATE_25025

:GFDATE_25025
return 

:GFDATE_25027
if 
  0.0 >= $fFunTemp
goto_if_false @GFDATE_25058
$fFunTemp -= 0.5

:GFDATE_25058
add_float_var_to_float_var $fFun += $fFunTemp
if 
  0.0 > $fFun
goto_if_false @GFDATE_25097
$fFun = 0.0

:GFDATE_25097
if 
  $fFun > 100.0
goto_if_false @GFDATE_25128
$fFun = 100.0

:GFDATE_25128
cset_var_int_to_var_float $iFun =# $fFun
set_local_var_bit_const 3@ {bitIndex} 8
return 

:GFDATE_25145
26@ = get_current_population_zone_type 
switch_start 26@ {numCases} 20 {hasDefaultCase} 0 {defaultLabel} @GFDATE_26510 {caseNum1} 0 {caseLabel1} @GFDATE_25385 {caseNum2} 1 {caseLabel2} @GFDATE_25878 {caseNum3} 2 {caseLabel3} @GFDATE_26352 {caseNum4} 3 {caseLabel4} @GFDATE_25957 {caseNum5} 4 {caseLabel5} @GFDATE_25464 {caseNum6} 5 {caseLabel6} @GFDATE_25371 {caseNum7} 6 {caseLabel7} @GFDATE_25378
switch_continued 7 {caseLabel1} @GFDATE_26431 {caseNum2} 8 {caseLabel2} @GFDATE_25720 {caseNum3} 9 {caseLabel3} @GFDATE_26115 {caseNum4} 10 {caseLabel4} @GFDATE_25622 {caseNum5} 11 {caseLabel5} @GFDATE_25343 {caseNum6} 12 {caseLabel6} @GFDATE_26273 {caseNum7} 13 {caseLabel7} @GFDATE_26194 {caseNum8} 14 {caseLabel8} @GFDATE_26036 {caseNum9} 15 {caseLabel9} @GFDATE_25543
switch_continued 16 {caseLabel1} @GFDATE_25357 {caseNum2} 17 {caseLabel2} @GFDATE_25799 {caseNum3} 18 {caseLabel3} @GFDATE_25350 {caseNum4} 19 {caseLabel4} @GFDATE_25364 {caseNum5} -1 {caseLabel5} @GFDATE_26510 {caseNum6} -1 {caseLabel6} @GFDATE_26510 {caseNum7} -1 {caseLabel7} @GFDATE_26510 {caseNum8} -1 {caseLabel8} @GFDATE_26510 {caseNum9} -1 {caseLabel9} @GFDATE_26510

:GFDATE_25343
goto @GFDATE_26510

:GFDATE_25350
goto @GFDATE_26510

:GFDATE_25357
goto @GFDATE_26510

:GFDATE_25364
goto @GFDATE_26510

:GFDATE_25371
goto @GFDATE_26510

:GFDATE_25378
goto @GFDATE_26510

:GFDATE_25385
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 15
goto_if_false @GFDATE_25450
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25436
$fFunTemp += 0.5

:GFDATE_25436
gosub @GFDATE_26512
goto @GFDATE_25457

:GFDATE_25450
gosub @GFDATE_26632

:GFDATE_25457
goto @GFDATE_26510

:GFDATE_25464
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 15
goto_if_false @GFDATE_25529
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25515
$fFunTemp += 0.5

:GFDATE_25515
gosub @GFDATE_26512
goto @GFDATE_25536

:GFDATE_25529
gosub @GFDATE_26632

:GFDATE_25536
goto @GFDATE_26510

:GFDATE_25543
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 15
goto_if_false @GFDATE_25608
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25594
$fFunTemp += 0.5

:GFDATE_25594
gosub @GFDATE_26512
goto @GFDATE_25615

:GFDATE_25608
gosub @GFDATE_26632

:GFDATE_25615
goto @GFDATE_26510

:GFDATE_25622
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 17
goto_if_false @GFDATE_25706
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25692
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25692
$fFunTemp += 0.5

:GFDATE_25692
gosub @GFDATE_26512
goto @GFDATE_25713

:GFDATE_25706
gosub @GFDATE_26632

:GFDATE_25713
goto @GFDATE_26510

:GFDATE_25720
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 17
goto_if_false @GFDATE_25785
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25771
$fFunTemp += 0.5

:GFDATE_25771
gosub @GFDATE_26512
goto @GFDATE_25792

:GFDATE_25785
gosub @GFDATE_26632

:GFDATE_25792
goto @GFDATE_26510

:GFDATE_25799
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 17
goto_if_false @GFDATE_25864
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25850
$fFunTemp += 0.5

:GFDATE_25850
gosub @GFDATE_26512
goto @GFDATE_25871

:GFDATE_25864
gosub @GFDATE_26632

:GFDATE_25871
goto @GFDATE_26510

:GFDATE_25878
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 18
goto_if_false @GFDATE_25943
if 
  TIMERA >= 30000
goto_if_false @GFDATE_25929
$fFunTemp += 0.5

:GFDATE_25929
gosub @GFDATE_26512
goto @GFDATE_25950

:GFDATE_25943
gosub @GFDATE_26632

:GFDATE_25950
goto @GFDATE_26510

:GFDATE_25957
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 18
goto_if_false @GFDATE_26022
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26008
$fFunTemp += 0.5

:GFDATE_26008
gosub @GFDATE_26512
goto @GFDATE_26029

:GFDATE_26022
gosub @GFDATE_26632

:GFDATE_26029
goto @GFDATE_26510

:GFDATE_26036
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 19
goto_if_false @GFDATE_26101
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26087
$fFunTemp += 0.5

:GFDATE_26087
gosub @GFDATE_26512
goto @GFDATE_26108

:GFDATE_26101
gosub @GFDATE_26632

:GFDATE_26108
goto @GFDATE_26510

:GFDATE_26115
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 19
goto_if_false @GFDATE_26180
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26166
$fFunTemp += 0.5

:GFDATE_26166
gosub @GFDATE_26512
goto @GFDATE_26187

:GFDATE_26180
gosub @GFDATE_26632

:GFDATE_26187
goto @GFDATE_26510

:GFDATE_26194
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 19
goto_if_false @GFDATE_26259
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26245
$fFunTemp += 0.5

:GFDATE_26245
gosub @GFDATE_26512
goto @GFDATE_26266

:GFDATE_26259
gosub @GFDATE_26632

:GFDATE_26266
goto @GFDATE_26510

:GFDATE_26273
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 20
goto_if_false @GFDATE_26338
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26324
$fFunTemp += 0.5

:GFDATE_26324
gosub @GFDATE_26512
goto @GFDATE_26345

:GFDATE_26338
gosub @GFDATE_26632

:GFDATE_26345
goto @GFDATE_26510

:GFDATE_26352
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 20
goto_if_false @GFDATE_26417
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26403
$fFunTemp += 0.5

:GFDATE_26403
gosub @GFDATE_26512
goto @GFDATE_26424

:GFDATE_26417
gosub @GFDATE_26632

:GFDATE_26424
goto @GFDATE_26510

:GFDATE_26431
if 
  is_global_var_bit_set_const $iGFLikesOnDate($iGFidx,6i) {bitIndex} 16
goto_if_false @GFDATE_26496
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26482
$fFunTemp += 0.5

:GFDATE_26482
gosub @GFDATE_26512
goto @GFDATE_26503

:GFDATE_26496
gosub @GFDATE_26632

:GFDATE_26503
goto @GFDATE_26510

:GFDATE_26510
return 

:GFDATE_26512
26@ = get_current_population_zone_type 
if 
  not is_int_lvar_equal_to_int_lvar 26@ == 31@
goto_if_false @GFDATE_26630
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_26595
if 
  $iFun > 0
goto_if_false @GFDATE_26588
set_var_int_to_constant $iGFSayContext = 312
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26588
goto @GFDATE_26630

:GFDATE_26595
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26630
set_var_int_to_constant $iGFSayContext = 312
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26630
return 

:GFDATE_26632
26@ = get_current_population_zone_type 
if 
  not is_int_lvar_equal_to_int_lvar 26@ == 31@
goto_if_false @GFDATE_26750
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_26715
if 
  $iFun > 0
goto_if_false @GFDATE_26708
set_var_int_to_constant $iGFSayContext = 311
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26708
goto @GFDATE_26750

:GFDATE_26715
if 
  TIMERA >= 30000
goto_if_false @GFDATE_26750
set_var_int_to_constant $iGFSayContext = 311
set_lvar_int_to_lvar_int 31@ = 26@

:GFDATE_26750
return 

:GFDATE_26752
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_26817
28@ = store_car_char_is_in_no_save 0@
25@ = get_car_health 28@
if 
  29@ == -1
goto_if_false @GFDATE_26810
set_lvar_int_to_lvar_int 29@ = 25@

:GFDATE_26810
goto @GFDATE_26831

:GFDATE_26817
28@ = -1
29@ = -1

:GFDATE_26831
return 
switch_start $iGFidx {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFDATE_27208 {caseNum1} 0 {caseLabel1} @GFDATE_26896 {caseNum2} 1 {caseLabel2} @GFDATE_26948 {caseNum3} 2 {caseLabel3} @GFDATE_27000 {caseNum4} 3 {caseLabel4} @GFDATE_27052 {caseNum5} 4 {caseLabel5} @GFDATE_27104 {caseNum6} 5 {caseLabel6} @GFDATE_27156 {caseNum7} -1 {caseLabel7} @GFDATE_27208

:GFDATE_26896
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26929
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26929
set_int_stat StatId.GirlfriendDenise {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_27208

:GFDATE_26948
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_26981
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_26981
set_int_stat StatId.GirlfriendMichelle {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_27208

:GFDATE_27000
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_27033
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_27033
set_int_stat StatId.GirlfriendHelena {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_27208

:GFDATE_27052
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_27085
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_27085
set_int_stat StatId.GirlfriendBarbara {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_27208

:GFDATE_27104
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_27137
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_27137
set_int_stat StatId.GirlfriendKatie {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_27208

:GFDATE_27156
if 
  $iGFLikesPlayer($iGFidx,6i) > 100
goto_if_false @GFDATE_27189
$iGFLikesPlayer($iGFidx,6i) = 100

:GFDATE_27189
set_int_stat StatId.GirlfriendMillie {value} $iGFLikesPlayer($iGFidx,6i)
goto @GFDATE_27208

:GFDATE_27208
return 

:GFDATE_27210
switch_start $iGF_TT_Status {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @GFDATE_30453 {caseNum1} -1 {caseLabel1} @GFDATE_27338 {caseNum2} 0 {caseLabel2} @GFDATE_27352 {caseNum3} 1 {caseLabel3} @GFDATE_27613 {caseNum4} 2 {caseLabel4} @GFDATE_27665 {caseNum5} 3 {caseLabel5} @GFDATE_27924 {caseNum6} 4 {caseLabel6} @GFDATE_28078 {caseNum7} 5 {caseLabel7} @GFDATE_28238
switch_continued 6 {caseLabel1} @GFDATE_28294 {caseNum2} 7 {caseLabel2} @GFDATE_28494 {caseNum3} 8 {caseLabel3} @GFDATE_28727 {caseNum4} 9 {caseLabel4} @GFDATE_28831 {caseNum5} 10 {caseLabel5} @GFDATE_29048 {caseNum6} 11 {caseLabel6} @GFDATE_29445 {caseNum7} 12 {caseLabel7} @GFDATE_29716 {caseNum8} 13 {caseLabel8} @GFDATE_29969 {caseNum9} 99 {caseLabel9} @GFDATE_30105

:GFDATE_27338
clear_global_var_bit_const $iDateReport {bitIndex} 22
goto @GFDATE_30453

:GFDATE_27352
$iGF_TT_PedModel = generate_random_int_in_range 0 {max} 6
if and
  6 > $iGF_TT_PedModel
  is_global_var_bit_set_var $iActiveGF {var_bitIndex} $iGF_TT_PedModel
  not is_int_var_equal_to_int_var $iGF_TT_PedModel == $iGFidx
goto_if_false @GFDATE_27606
if 
  $iGF_TT_PedModel == 0
goto_if_false @GFDATE_27429
set_var_int_to_constant $iGF_TT_PedModel = 195
set_var_int_to_constant $iGF_TT_CarModel = 545

:GFDATE_27429
if 
  $iGF_TT_PedModel == 1
goto_if_false @GFDATE_27463
set_var_int_to_constant $iGF_TT_PedModel = 192
set_var_int_to_constant $iGF_TT_CarModel = 557

:GFDATE_27463
if 
  $iGF_TT_PedModel == 3
goto_if_false @GFDATE_27497
set_var_int_to_constant $iGF_TT_PedModel = 190
set_var_int_to_constant $iGF_TT_CarModel = 599

:GFDATE_27497
if 
  $iGF_TT_PedModel == 2
goto_if_false @GFDATE_27531
set_var_int_to_constant $iGF_TT_PedModel = 191
set_var_int_to_constant $iGF_TT_CarModel = 568

:GFDATE_27531
if 
  $iGF_TT_PedModel == 4
goto_if_false @GFDATE_27565
set_var_int_to_constant $iGF_TT_PedModel = 193
set_var_int_to_constant $iGF_TT_CarModel = 442

:GFDATE_27565
if 
  $iGF_TT_PedModel == 5
goto_if_false @GFDATE_27599
set_var_int_to_constant $iGF_TT_PedModel = 194
set_var_int_to_constant $iGF_TT_CarModel = 533

:GFDATE_27599
$iGF_TT_Status = 1

:GFDATE_27606
goto @GFDATE_30453

:GFDATE_27613
if and
  has_model_loaded $iGF_TT_CarModel
  has_model_loaded $iGF_TT_PedModel
goto_if_false @GFDATE_27648
$iGF_TT_Status = 2
goto @GFDATE_27658

:GFDATE_27648
request_model $iGF_TT_CarModel
request_model $iGF_TT_PedModel

:GFDATE_27658
goto @GFDATE_30453

:GFDATE_27665
4@, 7@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 25.0 {zOffset} 0.0
if 
5@, 8@, 11@, 13@ = get_closest_car_node_with_heading 4@ {y} 7@ {z} 10@
goto_if_false @GFDATE_27910
clear_area 5@ {y} 8@ {z} 11@ {radius} 5.0 {clearParticles} True
$iGF_TT_Car = create_car $iGF_TT_CarModel {x} 5@ {y} 8@ {z} 11@
add_stuck_car_check_with_warp $iGF_TT_Car {distance} 1.0 {time} 1000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 545
goto_if_false @GFDATE_27812
change_car_colour $iGF_TT_Car {color1} 83 {color2} 1

:GFDATE_27812
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 442
goto_if_false @GFDATE_27840
change_car_colour $iGF_TT_Car {color1} 1 {color2} 1

:GFDATE_27840
if 
  is_int_var_equal_to_constant $iGF_TT_CarModel == 533
goto_if_false @GFDATE_27868
change_car_colour $iGF_TT_Car {color1} 126 {color2} 1

:GFDATE_27868
$iGF_TT_driver = create_char_inside_car $iGF_TT_Car {pedType} PedType.CivFemale {modelId} $iGF_TT_PedModel
set_char_cant_be_dragged_out $iGF_TT_driver {state} True
set_car_heading $iGF_TT_Car {heading} 13@
$iGF_TT_Status = 3
goto @GFDATE_27917

:GFDATE_27910
$iGF_TT_Status = 99

:GFDATE_27917
goto @GFDATE_30453

:GFDATE_27924
clear_prints 
clear_help 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
if and
  not is_car_dead $iGF_TT_Car
  not is_char_dead $iGF_TT_driver
goto_if_false @GFDATE_28064
attach_camera_to_vehicle_look_at_char $iGF_TT_Car {xOffset} -1.5 {yOffset} 1.5 {zOffset} 1.5 {char} $iGF_TT_driver {tilt} 6.0 {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $iGF_TT_driver {animationName} "GF_CARSPOT" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
print_help 'GF_H014'
$iGF_TT_Status = 4
goto @GFDATE_28071

:GFDATE_28064
$iGF_TT_Status = 99

:GFDATE_28071
goto @GFDATE_30453

:GFDATE_28078
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28224
26@ = get_script_task_status $iGF_TT_driver {taskId} 2066
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_28217
if 
  not is_car_dead 28@
goto_if_false @GFDATE_28180
if and
  is_car_passenger_seat_free 28@ {seat} SeatId.BikeRear
  is_char_in_car $scplayer {vehicle} 28@
goto_if_false @GFDATE_28180
task_warp_char_into_car_as_passenger 0@ {vehicle} 28@ {seatId} 0

:GFDATE_28180
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
$iGF_TT_Blip = add_blip_for_car $iGF_TT_Car
$iGF_TT_Status = 5

:GFDATE_28217
goto @GFDATE_28231

:GFDATE_28224
$iGF_TT_Status = 99

:GFDATE_28231
goto @GFDATE_30453

:GFDATE_28238
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28280
set_car_mission $iGF_TT_Car {carMission} CarMission.RamPlayerClose
$iGF_TT_Status = 6
goto @GFDATE_28287

:GFDATE_28280
$iGF_TT_Status = 99

:GFDATE_28287
goto @GFDATE_30453

:GFDATE_28294
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28480
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_car_coordinates $iGF_TT_Car
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if 
  6.0 >= 13@
goto_if_false @GFDATE_28429
set_car_mission $iGF_TT_Car {carMission} CarMission.None
freeze_car_position $iGF_TT_Car {state} True
set_player_control $player1 {state} False
do_fade 500 {direction} Fade.Out
$iGF_TT_Status = 8
goto @GFDATE_28473

:GFDATE_28429
if 
  13@ > 200.0
goto_if_false @GFDATE_28473
set_lvar_int_to_lvar_int 26@ = TIMERA
26@ += 20000
$iGF_TT_Status = 7

:GFDATE_28473
goto @GFDATE_28487

:GFDATE_28480
$iGF_TT_Status = 99

:GFDATE_28487
goto @GFDATE_30453

:GFDATE_28494
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28713
4@, 7@, 10@ = get_char_coordinates $scplayer
5@, 8@, 11@ = get_car_coordinates $iGF_TT_Car
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if 
  13@ > 180.0
goto_if_false @GFDATE_28699
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 26@
goto_if_false @GFDATE_28692
if 
  does_blip_exist $iGF_TT_Blip
goto_if_false @GFDATE_28627
remove_blip $iGF_TT_Blip

:GFDATE_28627
delete_char $iGF_TT_driver
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28674
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_28669
remove_stuck_car_check $iGF_TT_Car

:GFDATE_28669
delete_car $iGF_TT_Car

:GFDATE_28674
print_help 'GF_H016'
$iGF_TT_Status = 12

:GFDATE_28692
goto @GFDATE_28706

:GFDATE_28699
$iGF_TT_Status = 6

:GFDATE_28706
goto @GFDATE_28720

:GFDATE_28713
$iGF_TT_Status = 99

:GFDATE_28720
goto @GFDATE_30453

:GFDATE_28727
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_28817
if 
  not get_fading_status 
goto_if_false @GFDATE_28810
clear_prints 
clear_help 
set_player_control $player1 {state} False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
set_camera_in_front_of_player 
do_fade 500 {direction} Fade.In
TIMERB = 0
$iGF_TT_Status = 9

:GFDATE_28810
goto @GFDATE_28824

:GFDATE_28817
$iGF_TT_Status = 99

:GFDATE_28824
goto @GFDATE_30453

:GFDATE_28831
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29034
if 
  not get_fading_status 
goto_if_false @GFDATE_29027
4@, 7@, 10@ = get_active_camera_coordinates 
5@, 8@, 11@ = get_char_coordinates $iGF_TT_driver
set_fixed_camera_position 4@ {y} 7@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 1.0
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.Interpolation
set_char_proofs $iGF_TT_driver {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_car_proofs $iGF_TT_Car {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable $iGF_TT_driver {animationName} "GF_CARARGUE_01" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
$iGFSpeechStatus = 7
set_var_int_to_constant $iGFSayContext = 293
$iGF_TT_Status = 10

:GFDATE_29027
goto @GFDATE_29041

:GFDATE_29034
$iGF_TT_Status = 99

:GFDATE_29041
goto @GFDATE_30453

:GFDATE_29048
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29431
26@ = get_script_task_status $iGF_TT_driver {taskId} 2066
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29424
if 
  is_char_in_any_car 0@
goto_if_false @GFDATE_29224
5@, 8@, 11@ = get_char_coordinates 0@
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.Interpolation
set_char_proofs 0@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable 0@ {animationName} "GF_CARARGUE_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
set_var_int_to_constant $iGFSayContext = 294
$iGF_TT_Status = 11
goto @GFDATE_29424

:GFDATE_29224
4@, 7@, 10@ = get_char_coordinates 0@
5@, 8@, 11@ = get_char_coordinates $scplayer
13@ = get_distance_between_coords_3d 4@ {fromY} 7@ {fromZ} 10@ {toX} 5@ {toY} 8@ {toZ} 11@
if or
  5.0 > 13@
  TIMERB > 6000
goto_if_false @GFDATE_29417
5@, 8@, 11@ = get_char_coordinates 0@
point_camera_at_point 5@ {y} 8@ {z} 11@ {switchStyle} SwitchType.Interpolation
set_char_proofs 0@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
task_play_anim_non_interruptable 0@ {animationName} "GF_STREETARGUE_02" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
set_var_int_to_constant $iGFSayContext = 294
$iGF_TT_Status = 11
goto @GFDATE_29424

:GFDATE_29417
goto @GFDATE_30453

:GFDATE_29424
goto @GFDATE_29438

:GFDATE_29431
$iGF_TT_Status = 99

:GFDATE_29438
goto @GFDATE_30453

:GFDATE_29445
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29702
26@ = get_script_task_status 0@ {taskId} 2066
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29695
26@ = get_script_task_status $iGF_TT_driver {taskId} 1490
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29546
freeze_car_position $iGF_TT_Car {state} False
task_car_drive_wander $iGF_TT_driver {vehicle} $iGF_TT_Car {speed} 30.0 {drivingMode} DrivingMode.PloughThrough

:GFDATE_29546
if 
  not is_car_dead 28@
goto_if_false @GFDATE_29681
if 
  is_char_in_car 0@ {vehicle} 28@
goto_if_false @GFDATE_29625
26@ = get_script_task_status 0@ {taskId} 1485
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29618
task_leave_car 0@ {vehicle} 28@

:GFDATE_29618
goto @GFDATE_29681

:GFDATE_29625
26@ = get_script_task_status 0@ {taskId} 1873
if 
  is_int_lvar_equal_to_constant 26@ == 7
goto_if_false @GFDATE_29681
task_flee_char_any_means 0@ {threat} $scplayer {safeDist} 100.0 {time} 5000 {shoot} False {shootTime} 0 {shootCooldownTime} 0 {stealCarDist} 30.0

:GFDATE_29681
TIMERB = 0
$iGF_TT_Status = 12

:GFDATE_29695
goto @GFDATE_29709

:GFDATE_29702
$iGF_TT_Status = 99

:GFDATE_29709
goto @GFDATE_30453

:GFDATE_29716
if and
  not is_char_dead $iGF_TT_driver
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_29955
if 
  TIMERB > 5000
goto_if_false @GFDATE_29948
do_fade 1000 {direction} Fade.Out
$iGFLikesPlayer($iGFidx,6i) -= 4
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 195
goto_if_false @GFDATE_29800
26@ = 0

:GFDATE_29800
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 192
goto_if_false @GFDATE_29826
26@ = 1

:GFDATE_29826
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 190
goto_if_false @GFDATE_29852
26@ = 3

:GFDATE_29852
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 191
goto_if_false @GFDATE_29878
26@ = 2

:GFDATE_29878
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 193
goto_if_false @GFDATE_29904
26@ = 4

:GFDATE_29904
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 194
goto_if_false @GFDATE_29930
26@ = 5

:GFDATE_29930
$iGFLikesPlayer(26@,6i) -= 4
$iGF_TT_Status = 13

:GFDATE_29948
goto @GFDATE_29962

:GFDATE_29955
$iGF_TT_Status = 99

:GFDATE_29962
goto @GFDATE_30453

:GFDATE_29969
if 
  not get_fading_status 
goto_if_false @GFDATE_30098
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_local_var_bit_const 3@ {bitIndex} 7
delete_char $iGF_TT_driver
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_30058
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_30053
remove_stuck_car_check $iGF_TT_Car

:GFDATE_30053
delete_car $iGF_TT_Car

:GFDATE_30058
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
do_fade 1500 {direction} Fade.In
print_help 'GF_H015'
gosub @GFDATE_32517

:GFDATE_30098
goto @GFDATE_30453

:GFDATE_30105
set_player_control $player1 {state} True
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
if 
  not is_char_dead 0@
goto_if_false @GFDATE_30151
set_char_proofs 0@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GFDATE_30151
if 
  not is_char_dead $iGF_TT_driver
goto_if_false @GFDATE_30182
set_char_proofs $iGF_TT_driver {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False

:GFDATE_30182
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_30219
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_30219
remove_stuck_car_check $iGF_TT_Car

:GFDATE_30219
if 
  does_blip_exist $iGF_TT_Blip
goto_if_false @GFDATE_30240
remove_blip $iGF_TT_Blip

:GFDATE_30240
if and
  is_char_dead $iGF_TT_driver
  has_char_been_damaged_by_char $iGF_TT_driver {handle} $scplayer
goto_if_false @GFDATE_30432
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 195
goto_if_false @GFDATE_30290
26@ = 0

:GFDATE_30290
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 192
goto_if_false @GFDATE_30316
26@ = 1

:GFDATE_30316
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 190
goto_if_false @GFDATE_30342
26@ = 3

:GFDATE_30342
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 191
goto_if_false @GFDATE_30368
26@ = 2

:GFDATE_30368
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 193
goto_if_false @GFDATE_30394
26@ = 4

:GFDATE_30394
if 
  is_int_var_equal_to_constant $iGF_TT_PedModel == 194
goto_if_false @GFDATE_30420
26@ = 5

:GFDATE_30420
$iGFLikesPlayer(26@,6i) = -999

:GFDATE_30432
clear_global_var_bit_const $iDateReport {bitIndex} 22
$iGF_TT_Status = -1
goto @GFDATE_30453

:GFDATE_30453
return 

:GFDATE_30455
switch_start $iGFSpeechStatus {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFDATE_31285 {caseNum1} 0 {caseLabel1} @GFDATE_30583 {caseNum2} 1 {caseLabel2} @GFDATE_30654 {caseNum3} 2 {caseLabel3} @GFDATE_30666 {caseNum4} 3 {caseLabel4} @GFDATE_30680 {caseNum5} 4 {caseLabel5} @GFDATE_30949 {caseNum6} 5 {caseLabel6} @GFDATE_31049 {caseNum7} 6 {caseLabel7} @GFDATE_30858
switch_continued 7 {caseLabel1} @GFDATE_31091 {caseNum2} -1 {caseLabel2} @GFDATE_31285 {caseNum3} -1 {caseLabel3} @GFDATE_31285 {caseNum4} -1 {caseLabel4} @GFDATE_31285 {caseNum5} -1 {caseLabel5} @GFDATE_31285 {caseNum6} -1 {caseLabel6} @GFDATE_31285 {caseNum7} -1 {caseLabel7} @GFDATE_31285 {caseNum8} -1 {caseLabel8} @GFDATE_31285 {caseNum9} -1 {caseLabel9} @GFDATE_31285

:GFDATE_30583
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30615
$iGFSpeechStatus = 3
goto @GFDATE_30647

:GFDATE_30615
if and
  $iGFSayContext == -2
  $iCJSayContext > 0
goto_if_false @GFDATE_30647
$iGFSpeechStatus = 3

:GFDATE_30647
goto @GFDATE_31285

:GFDATE_30654
enable_char_speech 0@
goto @GFDATE_31285

:GFDATE_30666
disable_char_speech 0@ {stopNow} False
goto @GFDATE_31285

:GFDATE_30680
if 
  not is_char_talking 0@
goto_if_false @GFDATE_30851
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_30791
$iGFContextVariation = set_char_say_context_important 0@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFDATE_31287
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30777
$iGFSpeechStatus = 6
goto @GFDATE_30784

:GFDATE_30777
$iGFSpeechStatus = 0

:GFDATE_30784
goto @GFDATE_30851

:GFDATE_30791
if 
  $iGFSayContext == -2
goto_if_false @GFDATE_30830
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFDATE_30851

:GFDATE_30830
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_30851
goto @GFDATE_31285

:GFDATE_30858
if and
  not is_char_talking $scplayer
  not is_char_talking 0@
goto_if_false @GFDATE_30942
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_30935
$iGFContextVariation = set_char_say_context_important $scplayer {phrase} $iCJSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFDATE_30942

:GFDATE_30935
$iGFSpeechStatus = 0

:GFDATE_30942
goto @GFDATE_31285

:GFDATE_30949
disable_char_speech 0@ {stopNow} False
if 
  not is_char_talking 0@
goto_if_false @GFDATE_31042
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_31035
$iGFContextVariation = set_char_say_context_important 0@ {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFDATE_31287
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFDATE_31042

:GFDATE_31035
$iGFSpeechStatus = 0

:GFDATE_31042
goto @GFDATE_31285

:GFDATE_31049
if 
  not is_char_talking 0@
goto_if_false @GFDATE_31084
enable_char_speech 0@
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_31084
goto @GFDATE_31285

:GFDATE_31091
if 
  not is_char_dead $iGF_TT_driver
goto_if_false @GFDATE_31278
if 
  not is_char_talking $iGF_TT_driver
goto_if_false @GFDATE_31278
if 
  $iGFSayContext > 0
goto_if_false @GFDATE_31218
$iGFContextVariation = set_char_say_context_important $iGF_TT_driver {phrase} $iGFSayContext {overrideSilence} False {ignoreMute} True {frontEnd} False
gosub @GFDATE_31287
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFDATE_31204
$iGFSpeechStatus = 6
goto @GFDATE_31211

:GFDATE_31204
$iGFSpeechStatus = 0

:GFDATE_31211
goto @GFDATE_31278

:GFDATE_31218
if 
  $iGFSayContext == -2
goto_if_false @GFDATE_31257
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFDATE_31278

:GFDATE_31257
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFDATE_31278
goto @GFDATE_31285

:GFDATE_31285
return 

:GFDATE_31287
switch_start $iGFSayContext {numCases} 29 {hasDefaultCase} 0 {defaultLabel} @GFDATE_32405 {caseNum1} 32 {caseLabel1} @GFDATE_32359 {caseNum2} 39 {caseLabel2} @GFDATE_32382 {caseNum3} 264 {caseLabel3} @GFDATE_31572 {caseNum4} 266 {caseLabel4} @GFDATE_31579 {caseNum5} 268 {caseLabel5} @GFDATE_31586 {caseNum6} 269 {caseLabel6} @GFDATE_31639 {caseNum7} 270 {caseLabel7} @GFDATE_31616
switch_continued 271 {caseLabel1} @GFDATE_31685 {caseNum2} 272 {caseLabel2} @GFDATE_31831 {caseNum3} 277 {caseLabel3} @GFDATE_31877 {caseNum4} 278 {caseLabel4} @GFDATE_31900 {caseNum5} 279 {caseLabel5} @GFDATE_32244 {caseNum6} 280 {caseLabel6} @GFDATE_31662 {caseNum7} 281 {caseLabel7} @GFDATE_32198 {caseNum8} 282 {caseLabel8} @GFDATE_32122 {caseNum9} 292 {caseLabel9} @GFDATE_32145
switch_continued 296 {caseLabel1} @GFDATE_32099 {caseNum2} 298 {caseLabel2} @GFDATE_31854 {caseNum3} 299 {caseLabel3} @GFDATE_32168 {caseNum4} 302 {caseLabel4} @GFDATE_32313 {caseNum5} 306 {caseLabel5} @GFDATE_32175 {caseNum6} 309 {caseLabel6} @GFDATE_31593 {caseNum7} 310 {caseLabel7} @GFDATE_32221 {caseNum8} 311 {caseLabel8} @GFDATE_32290 {caseNum9} 312 {caseLabel9} @GFDATE_32267
switch_continued 313 {caseLabel1} @GFDATE_32336 {caseNum2} 314 {caseLabel2} @GFDATE_31923 {caseNum3} 316 {caseLabel3} @GFDATE_32076 {caseNum4} 317 {caseLabel4} @GFDATE_31946 {caseNum5} -1 {caseLabel5} @GFDATE_32405 {caseNum6} -1 {caseLabel6} @GFDATE_32405 {caseNum7} -1 {caseLabel7} @GFDATE_32405 {caseNum8} -1 {caseLabel8} @GFDATE_32405 {caseNum9} -1 {caseLabel9} @GFDATE_32405

:GFDATE_31572
goto @GFDATE_32405

:GFDATE_31579
goto @GFDATE_32405

:GFDATE_31586
goto @GFDATE_32405

:GFDATE_31593
print_now 'GF_0045' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31616
print_now 'GF_0061' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31639
print_now 'GF_0044' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31662
print_now 'GF_0022' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31685
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 11
goto_if_false @GFDATE_31726
print_now 'GF_0077' {time} 5000 {flag} 1
goto @GFDATE_31824

:GFDATE_31726
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_31767
print_now 'GF_0078' {time} 5000 {flag} 1
goto @GFDATE_31824

:GFDATE_31767
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 13
goto_if_false @GFDATE_31808
print_now 'GF_0079' {time} 5000 {flag} 1
goto @GFDATE_31824

:GFDATE_31808
print_now 'GF_0031' {time} 5000 {flag} 1

:GFDATE_31824
goto @GFDATE_32405

:GFDATE_31831
print_now 'GF_0031' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31854
print_now 'GF_0004' {time} 3000 {flag} 1
goto @GFDATE_32405

:GFDATE_31877
print_now 'GF_0007' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31900
print_now 'GF_0066' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31923
print_now 'GF_0011' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31946
if 
  is_local_var_bit_set_const 3@ {bitIndex} 20
goto_if_false @GFDATE_31987
print_now 'GF_0074' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_31987
if 
  is_local_var_bit_set_const 3@ {bitIndex} 21
goto_if_false @GFDATE_32028
print_now 'GF_0053' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32028
if 
  is_local_var_bit_set_const 3@ {bitIndex} 22
goto_if_false @GFDATE_32069
print_now 'GF_0075' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32069
goto @GFDATE_32405

:GFDATE_32076
print_now 'GF_0052' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32099
print_now 'GF_0034' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32122
print_now 'GF_0014' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32145
print_now 'GF_0033' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32168
goto @GFDATE_32405

:GFDATE_32175
print_now 'GF_0024' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32198
print_now 'GF_0032' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32221
print_now 'GF_0047' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32244
print_now 'GF_0054' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32267
print_now 'GF_0050' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32290
print_now 'GF_0051' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32313
print_now 'GF_0070' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32336
print_now 'GF_0072' {time} 5000 {flag} 1
goto @GFDATE_32405

:GFDATE_32359
print_now 'GF_0073' {time} 2500 {flag} 1
goto @GFDATE_32405

:GFDATE_32382
print_now 'GF_0076' {time} 2500 {flag} 1
goto @GFDATE_32405

:GFDATE_32405
return 

:GFDATE_32407
26@ = 0

:GFDATE_32414
if 
  does_blip_exist 15@(26@,9i)
goto_if_false @GFDATE_32443
remove_blip 15@(26@,9i)

:GFDATE_32443
26@ += 1
  26@ >= 9
goto_if_false @GFDATE_32414
if 
  does_blip_exist $iGF_TT_Blip
goto_if_false @GFDATE_32485
remove_blip $iGF_TT_Blip

:GFDATE_32485
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 12
goto_if_false @GFDATE_32508
clear_onscreen_counter $iFun

:GFDATE_32508
clear_local_var_bit_const 3@ {bitIndex} 11
return 

:GFDATE_32517
gosub @GFDATE_32407
gosub @GFDATE_19075
clear_prints 
if 
  not is_char_dead 0@
goto_if_false @GFDATE_32573
if 
  is_group_member 0@ {handle} $Players_Group
goto_if_false @GFDATE_32573
remove_char_from_group 0@

:GFDATE_32573
if 
  not is_car_dead 28@
goto_if_false @GFDATE_32610
if 
  does_car_have_stuck_car_check 28@
goto_if_false @GFDATE_32610
remove_stuck_car_check 28@

:GFDATE_32610
if 
  $iGF_TT_Status > 0
goto_if_false @GFDATE_32658
if 
  is_player_playing $player1
goto_if_false @GFDATE_32658
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False

:GFDATE_32658
if 
  not is_car_dead $iGF_TT_Car
goto_if_false @GFDATE_32695
if 
  does_car_have_stuck_car_check $iGF_TT_Car
goto_if_false @GFDATE_32695
remove_stuck_car_check $iGF_TT_Car

:GFDATE_32695
mark_model_as_no_longer_needed $iGF_TT_CarModel
mark_model_as_no_longer_needed $iGF_TT_PedModel
mark_char_as_no_longer_needed $iGF_TT_driver
mark_car_as_no_longer_needed $iGF_TT_Car
remove_animation "KISSING"
if 
  $iCensoredVersion == 0
goto_if_false @GFDATE_32756
remove_animation "BLOWJOBZ"

:GFDATE_32756
if 
  is_char_dead 0@
goto_if_false @GFDATE_32816
clear_global_var_bit_const $iDateReport {bitIndex} 2
if 
  is_local_var_bit_set_const 3@ {bitIndex} 15
goto_if_false @GFDATE_32809
$iGFLikesPlayer($iGFidx,6i) = -999

:GFDATE_32809
goto @GFDATE_32889

:GFDATE_32816
if 
  is_local_var_bit_set_const 3@ {bitIndex} 15
goto_if_false @GFDATE_32889
clear_global_var_bit_const $iDateReport {bitIndex} 2
if 
  not is_char_health_greater 0@ {health} 10
goto_if_false @GFDATE_32878
$iGFLikesPlayer($iGFidx,6i) = -999
goto @GFDATE_32889

:GFDATE_32878
$iGFLikesPlayer($iGFidx,6i) -= 10

:GFDATE_32889
if 
  is_local_var_bit_set_const 3@ {bitIndex} 7
goto_if_false @GFDATE_32914
clear_global_var_bit_const $iDateReport {bitIndex} 2

:GFDATE_32914
$iSwitchOffDanceMiniGame = 0
$iDanceGirlfriend = -1
if 
  is_local_var_bit_set_const 3@ {bitIndex} 9
goto_if_false @GFDATE_32978
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 14
goto_if_false @GFDATE_32971
set_global_var_bit_const $iDateReport {bitIndex} 8

:GFDATE_32971
goto @GFDATE_32985

:GFDATE_32978
set_global_var_bit_const $iDateReport {bitIndex} 21

:GFDATE_32985
if 
  is_player_playing $player1
goto_if_false @GFDATE_33033
set_char_cant_be_dragged_out $scplayer {state} False
set_player_control $player1 {state} True
switch_widescreen False
set_player_group_to_follow_always $player1 {state} False
set_player_group_recruitment $player1 {state} True

:GFDATE_33033
show_update_stats True
clear_global_var_bit_const $iDateReport {bitIndex} 1
set_global_var_bit_var $iGFAvailableFor2Player {var_bitIndex} $iGFidx
terminate_this_script 
return 
write_debug_with_int "IGF_TT_STATUS" {number} $iGF_TT_Status
write_debug_with_int v$txtEntryExitName {number} 24@
write_debug_with_int "ICURRENTCARHEALTH" {number} 29@
write_debug_with_float "FTEMP1_SPEED" {number} 14@
write_debug_with_float "FUN_TEMP" {number} $fFunTemp
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "DATE_TIMER" {number} TIMERA
write_debug_with_int "SUBSTATESTATUS" {number} 2@
switch_start 1@ {numCases} 11 {hasDefaultCase} 1 {defaultLabel} @GFDATE_33651 {caseNum1} 0 {caseLabel1} @GFDATE_33321 {caseNum2} 1 {caseLabel2} @GFDATE_33349 {caseNum3} 2 {caseLabel3} @GFDATE_33380 {caseNum4} 3 {caseLabel4} @GFDATE_33411 {caseNum5} 4 {caseLabel5} @GFDATE_33442 {caseNum6} 5 {caseLabel6} @GFDATE_33472 {caseNum7} 6 {caseLabel7} @GFDATE_33502
switch_continued 7 {caseLabel1} @GFDATE_33533 {caseNum2} 8 {caseLabel2} @GFDATE_33566 {caseNum3} 9 {caseLabel3} @GFDATE_33596 {caseNum4} 10 {caseLabel4} @GFDATE_33626 {caseNum5} -1 {caseLabel5} @GFDATE_33683 {caseNum6} -1 {caseLabel6} @GFDATE_33683 {caseNum7} -1 {caseLabel7} @GFDATE_33683 {caseNum8} -1 {caseLabel8} @GFDATE_33683 {caseNum9} -1 {caseLabel9} @GFDATE_33683

:GFDATE_33321
write_debug "STATE0__DATE_INIT"
goto @GFDATE_33683

:GFDATE_33349
write_debug "STATE1__IDLE_ON_FOOT"
goto @GFDATE_33683

:GFDATE_33380
write_debug "STATE2__REACHED_DEST"
goto @GFDATE_33683

:GFDATE_33411
write_debug "STATE3__REACHED_HOME"
goto @GFDATE_33683

:GFDATE_33442
write_debug "STATE4__IDLE_IN_CAR"
goto @GFDATE_33683

:GFDATE_33472
write_debug "STATE5__DUMP_PLAYER"
goto @GFDATE_33683

:GFDATE_33502
write_debug "STATE6__KISS_ON_FOOT"
goto @GFDATE_33683

:GFDATE_33533
write_debug "STATE7__BLOWJOB_IN_CAR"
goto @GFDATE_33683

:GFDATE_33566
write_debug "STATE8__GIRL_DRIVES"
goto @GFDATE_33683

:GFDATE_33596
write_debug "STATE9__FLEE_PLAYER"
goto @GFDATE_33683

:GFDATE_33626
write_debug "STATE10__DANCE"
goto @GFDATE_33683

:GFDATE_33651
write_debug_with_int "UNTRAPPED_STATE___" {number} 1@
goto @GFDATE_33683

:GFDATE_33683
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 26 (GF_SEX)---------------

:GFSEX
script_name 'GFSEX'
set_minigame_in_progress True
7@ = 0
8@ = 0
if 
  1@ > 0
goto_if_false @GFSEX_61
$excitement = 40
goto @GFSEX_68

:GFSEX_61
$excitement = 50

:GFSEX_68
$power = 1
9@ = 0
if 
  9@ > 0
goto_if_false @GFSEX_124
24@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:GFSEX_124
gosub @GFSEX_7565
if 
  $iCensoredVersion == 0
goto_if_false @GFSEX_156
gosub @GFSEX_8036

:GFSEX_156
wait 0
if and
  not is_char_dead $scplayer
  not is_char_dead 24@
  $iGFLikesPlayer(0@,6i) <> -999
  $iGFLikesPlayer(0@,6i) <> -100
  $iGFLikesPlayer(0@,6i) <> -99
goto_if_false @GFSEX_243
gosub @GFSEX_257
gosub @GFSEX_514
gosub @GFSEX_12553
goto @GFSEX_250

:GFSEX_243
gosub @GFSEX_13715

:GFSEX_250
goto @GFSEX_156

:GFSEX_257
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 1
goto_if_false @GFSEX_512
if 
  $iCensoredVersion == 1
goto_if_false @GFSEX_316
set_local_var_bit_const 9@ {bitIndex} 1
7@ = 9
8@ = 0
return 

:GFSEX_316
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
goto_if_false @GFSEX_372
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 2
goto_if_false @GFSEX_365
gosub @GFSEX_9199
set_local_var_bit_const 9@ {bitIndex} 2

:GFSEX_365
goto @GFSEX_379

:GFSEX_372
clear_local_var_bit_const 9@ {bitIndex} 2

:GFSEX_379
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Square
goto_if_false @GFSEX_435
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 3
goto_if_false @GFSEX_428
gosub @GFSEX_9977
set_local_var_bit_const 9@ {bitIndex} 3

:GFSEX_428
goto @GFSEX_442

:GFSEX_435
clear_local_var_bit_const 9@ {bitIndex} 3

:GFSEX_442
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @GFSEX_505
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 4
goto_if_false @GFSEX_498
7@ = 2
8@ = 0
set_local_var_bit_const 9@ {bitIndex} 4

:GFSEX_498
goto @GFSEX_512

:GFSEX_505
clear_local_var_bit_const 9@ {bitIndex} 4

:GFSEX_512
return 

:GFSEX_514
switch_start 7@ {numCases} 10 {hasDefaultCase} 0 {defaultLabel} @GFSEX_782 {caseNum1} 0 {caseLabel1} @GFSEX_642 {caseNum2} 1 {caseLabel2} @GFSEX_656 {caseNum3} 2 {caseLabel3} @GFSEX_670 {caseNum4} 3 {caseLabel4} @GFSEX_684 {caseNum5} 4 {caseLabel5} @GFSEX_698 {caseNum6} 5 {caseLabel6} @GFSEX_712 {caseNum7} 6 {caseLabel7} @GFSEX_726
switch_continued 7 {caseLabel1} @GFSEX_740 {caseNum2} 8 {caseLabel2} @GFSEX_754 {caseNum3} 9 {caseLabel3} @GFSEX_768 {caseNum4} -1 {caseLabel4} @GFSEX_782 {caseNum5} -1 {caseLabel5} @GFSEX_782 {caseNum6} -1 {caseLabel6} @GFSEX_782 {caseNum7} -1 {caseLabel7} @GFSEX_782 {caseNum8} -1 {caseLabel8} @GFSEX_782 {caseNum9} -1 {caseLabel9} @GFSEX_782

:GFSEX_642
gosub @GFSEX_784
goto @GFSEX_782

:GFSEX_656
gosub @GFSEX_958
goto @GFSEX_782

:GFSEX_670
gosub @GFSEX_1707
goto @GFSEX_782

:GFSEX_684
gosub @GFSEX_2013
goto @GFSEX_782

:GFSEX_698
gosub @GFSEX_3126
goto @GFSEX_782

:GFSEX_712
gosub @GFSEX_3555
goto @GFSEX_782

:GFSEX_726
gosub @GFSEX_4116
goto @GFSEX_782

:GFSEX_740
gosub @GFSEX_5343
goto @GFSEX_782

:GFSEX_754
gosub @GFSEX_6084
goto @GFSEX_782

:GFSEX_768
gosub @GFSEX_6686
goto @GFSEX_782

:GFSEX_782
return 

:GFSEX_784
switch_start 8@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFSEX_956 {caseNum1} 0 {caseLabel1} @GFSEX_847 {caseNum2} 1 {caseLabel2} @GFSEX_874 {caseNum3} -1 {caseLabel3} @GFSEX_956 {caseNum4} -1 {caseLabel4} @GFSEX_956 {caseNum5} -1 {caseLabel5} @GFSEX_956 {caseNum6} -1 {caseLabel6} @GFSEX_956 {caseNum7} -1 {caseLabel7} @GFSEX_956

:GFSEX_847
set_local_var_bit_const 9@ {bitIndex} 1
do_fade 0 {direction} Fade.Out
8@ += 1
goto @GFSEX_956

:GFSEX_874
if 
  not get_fading_status 
goto_if_false @GFSEX_949
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
hide_char_weapon_for_scripted_cutscene 24@ {state} True
display_radar False
set_everyone_ignore_player $player1 {state} True
switch_widescreen True
set_all_cars_can_be_damaged False
gosub @GFSEX_8178
set_lvar_int_to_lvar_int 7@ = 21@
8@ = 0

:GFSEX_949
goto @GFSEX_956

:GFSEX_956
return 

:GFSEX_958
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_1705 {caseNum1} 0 {caseLabel1} @GFSEX_1021 {caseNum2} 1 {caseLabel2} @GFSEX_1063 {caseNum3} 2 {caseLabel3} @GFSEX_1186 {caseNum4} 3 {caseLabel4} @GFSEX_1423 {caseNum5} 4 {caseLabel5} @GFSEX_1582 {caseNum6} 5 {caseLabel6} @GFSEX_1632 {caseNum7} -1 {caseLabel7} @GFSEX_1705

:GFSEX_1021
set_local_var_bit_const 9@ {bitIndex} 1
23@ = -1
gosub @GFSEX_9199
do_fade 1500 {direction} Fade.In
8@ += 1
goto @GFSEX_1705

:GFSEX_1063
if 
  not get_fading_status 
goto_if_false @GFSEX_1179
task_play_anim_non_interruptable $scplayer {animationName} "BJ_COUCH_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_COUCH_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
8@ += 1

:GFSEX_1179
goto @GFSEX_1705

:GFSEX_1186
16@ = get_char_anim_current_time $scplayer {animationName} "BJ_COUCH_START_P"
if and
  16@ > 0.5
  1.0 > 16@
goto_if_false @GFSEX_1277
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_1277
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_1705

:GFSEX_1277
if 
  16@ == 1.0
goto_if_false @GFSEX_1416
task_play_anim_non_interruptable $scplayer {animationName} "BJ_COUCH_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim_non_interruptable 24@ {animationName} "BJ_COUCH_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
set_var_int_to_constant $iGFSayContext = 285
TIMERB = 0
8@ += 1

:GFSEX_1416
goto @GFSEX_1705

:GFSEX_1423
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_1457
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_1575

:GFSEX_1457
if 
  TIMERB > 6000
goto_if_false @GFSEX_1575
task_play_anim_non_interruptable $scplayer {animationName} "BJ_COUCH_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_COUCH_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
8@ += 1

:GFSEX_1575
goto @GFSEX_1705

:GFSEX_1582
20@ = get_script_task_status 24@ {taskId} 2066
if 
  is_int_lvar_equal_to_constant 20@ == 7
goto_if_false @GFSEX_1625
do_fade 500 {direction} Fade.Out
8@ += 1

:GFSEX_1625
goto @GFSEX_1705

:GFSEX_1632
if 
  not get_fading_status 
goto_if_false @GFSEX_1698
if 
  1@ > 0
goto_if_false @GFSEX_1684
7@ = 3
8@ = 0
goto @GFSEX_1698

:GFSEX_1684
7@ = 6
8@ = 0

:GFSEX_1698
goto @GFSEX_1705

:GFSEX_1705
return 

:GFSEX_1707
switch_start 8@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_2011 {caseNum1} 0 {caseLabel1} @GFSEX_1770 {caseNum2} 1 {caseLabel2} @GFSEX_1791 {caseNum3} 2 {caseLabel3} @GFSEX_1984 {caseNum4} -1 {caseLabel4} @GFSEX_2011 {caseNum5} -1 {caseLabel5} @GFSEX_2011 {caseNum6} -1 {caseLabel6} @GFSEX_2011 {caseNum7} -1 {caseLabel7} @GFSEX_2011

:GFSEX_1770
do_fade 1000 {direction} Fade.Out
8@ += 1
goto @GFSEX_2011

:GFSEX_1791
if 
  not get_fading_status 
goto_if_false @GFSEX_1977
gosub @GFSEX_8764
if 
  is_local_var_bit_set_const 9@ {bitIndex} 13
goto_if_false @GFSEX_1841
clear_onscreen_counter $excitement
clear_local_var_bit_const 9@ {bitIndex} 13

:GFSEX_1841
if 
  is_local_var_bit_set_const 9@ {bitIndex} 9
goto_if_false @GFSEX_1871
clear_onscreen_counter $power
clear_local_var_bit_const 9@ {bitIndex} 9

:GFSEX_1871
clear_help 
switch_widescreen False
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_everyone_ignore_player $player1 {state} False
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "GIMPLEG"
goto_if_false @GFSEX_1938
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
build_player_model $player1

:GFSEX_1938
if 
  $iCensoredVersion == 0
goto_if_false @GFSEX_1963
set_char_collision $scplayer {state} True

:GFSEX_1963
do_fade 1000 {direction} Fade.In
8@ += 1

:GFSEX_1977
goto @GFSEX_2011

:GFSEX_1984
if 
  not get_fading_status 
goto_if_false @GFSEX_2004
gosub @GFSEX_13715

:GFSEX_2004
goto @GFSEX_2011

:GFSEX_2011
return 

:GFSEX_2013
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_3124 {caseNum1} 0 {caseLabel1} @GFSEX_2076 {caseNum2} 1 {caseLabel2} @GFSEX_2294 {caseNum3} 2 {caseLabel3} @GFSEX_2489 {caseNum4} 3 {caseLabel4} @GFSEX_2706 {caseNum5} 4 {caseLabel5} @GFSEX_2948 {caseNum6} 5 {caseLabel6} @GFSEX_3055 {caseNum7} -1 {caseLabel7} @GFSEX_3124

:GFSEX_2076
if 
  not get_fading_status 
goto_if_false @GFSEX_2287
switch_widescreen False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 24@
gosub @GFSEX_8852
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0
16@ = get_char_heading $scplayer
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
print_help_forever 'GF_0043'
display_nth_onscreen_counter_with_string $excitement {display} CounterDisplay.Bar {slot} 1 {text} 'GF_0017'
display_nth_onscreen_counter_with_string $power {display} CounterDisplay.Bar {slot} 3 {text} 'GF_0040'
set_local_var_bit_const 9@ {bitIndex} 9
set_local_var_bit_const 9@ {bitIndex} 13
23@ = 1
gosub @GFSEX_9199
do_fade 1000 {direction} Fade.In
clear_local_var_bit_const 9@ {bitIndex} 1
8@ += 1

:GFSEX_2287
goto @GFSEX_3124

:GFSEX_2294
task_play_anim_non_interruptable 24@ {animationName} "SPANKING_IDLEW" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SPANKING_IDLEP" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
clear_local_var_bit_const 9@ {bitIndex} 8
gosub @GFSEX_12387
if 
  0 >= $excitement
goto_if_false @GFSEX_2436
7@ = 4
8@ = 0
goto @GFSEX_3124
goto @GFSEX_2475

:GFSEX_2436
if 
  $excitement >= 100
goto_if_false @GFSEX_2475
7@ = 5
8@ = 0
goto @GFSEX_3124

:GFSEX_2475
8@ += 1
goto @GFSEX_3124

:GFSEX_2489
gosub @GFSEX_12387
if 
  $power >= 100
goto_if_false @GFSEX_2521
8@ += 1

:GFSEX_2521
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GFSEX_2607
if and
  not is_local_var_bit_set_const 9@ {bitIndex} 8
  not is_char_playing_anim $scplayer {animationName} "SPANKINGP"
goto_if_false @GFSEX_2600
set_local_var_bit_const 9@ {bitIndex} 8
gosub @GFSEX_11966
8@ = 4
goto @GFSEX_3124

:GFSEX_2600
goto @GFSEX_2614

:GFSEX_2607
clear_local_var_bit_const 9@ {bitIndex} 8

:GFSEX_2614
if 
  0 >= $excitement
goto_if_false @GFSEX_2660
7@ = 4
8@ = 0
goto @GFSEX_3124
goto @GFSEX_2699

:GFSEX_2660
if 
  $excitement == 100
goto_if_false @GFSEX_2699
7@ = 5
8@ = 0
goto @GFSEX_3124

:GFSEX_2699
goto @GFSEX_3124

:GFSEX_2706
gosub @GFSEX_12387
if 
  $power >= 97
goto_if_false @GFSEX_2824
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @GFSEX_2817
if and
  not is_local_var_bit_set_const 9@ {bitIndex} 8
  not is_char_playing_anim $scplayer {animationName} "SPANKINGP"
goto_if_false @GFSEX_2810
set_local_var_bit_const 9@ {bitIndex} 8
gosub @GFSEX_11966
8@ = 4
goto @GFSEX_3124

:GFSEX_2810
goto @GFSEX_2824

:GFSEX_2817
clear_local_var_bit_const 9@ {bitIndex} 8

:GFSEX_2824
if 
  0 >= $power
goto_if_false @GFSEX_2856
gosub @GFSEX_11667
8@ -= 1

:GFSEX_2856
if 
  0 >= $excitement
goto_if_false @GFSEX_2902
7@ = 4
8@ = 0
goto @GFSEX_3124
goto @GFSEX_2941

:GFSEX_2902
if 
  $excitement == 100
goto_if_false @GFSEX_2941
7@ = 5
8@ = 0
goto @GFSEX_3124

:GFSEX_2941
goto @GFSEX_3124

:GFSEX_2948
gosub @GFSEX_12387
gosub @GFSEX_12007
task_play_anim_non_interruptable 24@ {animationName} "SPANKINGW" {animationFile} "SNM" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SPANKINGP" {animationFile} "SNM" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
clear_local_var_bit_const 9@ {bitIndex} 5
8@ += 1
goto @GFSEX_3124

:GFSEX_3055
gosub @GFSEX_12387
gosub @GFSEX_12057
if 
  is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_3117
set_var_int_to_constant $iCJSayContext = 238
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundBankVideoPoker
gosub @GFSEX_12253
8@ = 1

:GFSEX_3117
goto @GFSEX_3124

:GFSEX_3124
return 

:GFSEX_3126
switch_start 8@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_3553 {caseNum1} 0 {caseLabel1} @GFSEX_3189 {caseNum2} 1 {caseLabel2} @GFSEX_3272 {caseNum3} 2 {caseLabel3} @GFSEX_3477 {caseNum4} -1 {caseLabel4} @GFSEX_3553 {caseNum5} -1 {caseLabel5} @GFSEX_3553 {caseNum6} -1 {caseLabel6} @GFSEX_3553 {caseNum7} -1 {caseLabel7} @GFSEX_3553

:GFSEX_3189
if 
  is_local_var_bit_set_const 9@ {bitIndex} 13
goto_if_false @GFSEX_3219
clear_onscreen_counter $excitement
clear_local_var_bit_const 9@ {bitIndex} 13

:GFSEX_3219
if 
  is_local_var_bit_set_const 9@ {bitIndex} 9
goto_if_false @GFSEX_3249
clear_onscreen_counter $power
clear_local_var_bit_const 9@ {bitIndex} 9

:GFSEX_3249
clear_help 
do_fade 1000 {direction} Fade.Out
8@ += 1
goto @GFSEX_3553

:GFSEX_3272
if 
  not get_fading_status 
goto_if_false @GFSEX_3470
gosub @GFSEX_8852
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0
16@ = get_char_heading $scplayer
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
task_play_anim_non_interruptable 24@ {animationName} "SPANKEDW" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 600000
task_play_anim_non_interruptable $scplayer {animationName} "SPANKEDP" {animationFile} "SNM" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 600000
do_fade 1000 {direction} Fade.In
TIMERB = 0
8@ += 1

:GFSEX_3470
goto @GFSEX_3553

:GFSEX_3477
if 
  not get_fading_status 
goto_if_false @GFSEX_3546
set_var_int_to_constant $iGFSayContext = 291
set_var_int_to_constant $iCJSayContext = 237
if 
  TIMERB > 7000
goto_if_false @GFSEX_3546
clear_global_var_bit_const $iDateReport {bitIndex} 4
7@ = 2
8@ = 0

:GFSEX_3546
goto @GFSEX_3553

:GFSEX_3553
return 

:GFSEX_3555
switch_start 8@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFSEX_4114 {caseNum1} 0 {caseLabel1} @GFSEX_3618 {caseNum2} 1 {caseLabel2} @GFSEX_3701 {caseNum3} 2 {caseLabel3} @GFSEX_4000 {caseNum4} 3 {caseLabel4} @GFSEX_4042 {caseNum5} -1 {caseLabel5} @GFSEX_4114 {caseNum6} -1 {caseLabel6} @GFSEX_4114 {caseNum7} -1 {caseLabel7} @GFSEX_4114

:GFSEX_3618
if 
  is_local_var_bit_set_const 9@ {bitIndex} 13
goto_if_false @GFSEX_3648
clear_onscreen_counter $excitement
clear_local_var_bit_const 9@ {bitIndex} 13

:GFSEX_3648
if 
  is_local_var_bit_set_const 9@ {bitIndex} 9
goto_if_false @GFSEX_3678
clear_onscreen_counter $power
clear_local_var_bit_const 9@ {bitIndex} 9

:GFSEX_3678
clear_help 
do_fade 1000 {direction} Fade.Out
8@ += 1
goto @GFSEX_4114

:GFSEX_3701
if 
  not get_fading_status 
goto_if_false @GFSEX_3993
gosub @GFSEX_8852
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 0.5 {zOffset} -1.0
16@ = get_char_heading $scplayer
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.707 {yOffset} 3.136 {zOffset} -0.163
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.427 {yOffset} 0.634 {zOffset} -0.5
set_fixed_camera_position 10@ {y} 12@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 11@ {y} 13@ {z} 15@ {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable 24@ {animationName} "SPANKING_ENDW" {animationFile} "SNM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SPANKING_ENDP" {animationFile} "SNM" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
do_fade 1000 {direction} Fade.In
8@ += 1

:GFSEX_3993
goto @GFSEX_4114

:GFSEX_4000
if 
  not get_fading_status 
goto_if_false @GFSEX_4035
set_var_int_to_constant $iGFSayContext = 289
TIMERB = 0
8@ += 1

:GFSEX_4035
goto @GFSEX_4114

:GFSEX_4042
16@ = get_char_anim_current_time $scplayer {animationName} "SPANKING_ENDP"
if 
  16@ == 1.0
goto_if_false @GFSEX_4107
set_global_var_bit_const $iDateReport {bitIndex} 4
7@ = 2
8@ = 0

:GFSEX_4107
goto @GFSEX_4114

:GFSEX_4114
return 

:GFSEX_4116
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_5341 {caseNum1} 0 {caseLabel1} @GFSEX_4179 {caseNum2} 1 {caseLabel2} @GFSEX_4373 {caseNum3} 2 {caseLabel3} @GFSEX_4954 {caseNum4} 3 {caseLabel4} @GFSEX_5070 {caseNum5} 4 {caseLabel5} @GFSEX_5180 {caseNum6} 5 {caseLabel6} @GFSEX_5278 {caseNum7} -1 {caseLabel7} @GFSEX_5341

:GFSEX_4179
if 
  not get_fading_status 
goto_if_false @GFSEX_4366
switch_widescreen False
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 24@
gosub @GFSEX_8852
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
16@ = get_char_heading $scplayer
16@ += 180.0
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
display_onscreen_counter_with_string $excitement {display} CounterDisplay.Bar {text} 'GF_0017'
set_local_var_bit_const 9@ {bitIndex} 13
gosub @GFSEX_9199
print_help_forever 'GF_0020'
do_fade 500 {direction} Fade.In
clear_local_var_bit_const 9@ {bitIndex} 1
8@ += 1

:GFSEX_4366
goto @GFSEX_5341

:GFSEX_4373
TIMERB = 0
if 
  22@ == 0
goto_if_false @GFSEX_4473
task_play_anim_non_interruptable 24@ {animationName} "SEX_1_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
8@ += 1

:GFSEX_4473
if 
  22@ == 1
goto_if_false @GFSEX_4710
if 
  is_char_playing_anim $scplayer {animationName} "SEX_1TO2_P"
goto_if_false @GFSEX_4635
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_1TO2_P"
if 
  16@ >= 1.0
goto_if_false @GFSEX_4628
task_play_anim_non_interruptable 24@ {animationName} "SEX_2_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4628
goto @GFSEX_4703

:GFSEX_4635
task_play_anim_non_interruptable 24@ {animationName} "SEX_2_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4703
8@ += 1

:GFSEX_4710
if 
  22@ == 2
goto_if_false @GFSEX_4947
if 
  is_char_playing_anim $scplayer {animationName} "SEX_2TO3_P"
goto_if_false @GFSEX_4872
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_2TO3_P"
if 
  16@ >= 1.0
goto_if_false @GFSEX_4865
task_play_anim_non_interruptable 24@ {animationName} "SEX_3_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4865
goto @GFSEX_4940

:GFSEX_4872
task_play_anim_non_interruptable 24@ {animationName} "SEX_3_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 0

:GFSEX_4940
8@ += 1

:GFSEX_4947
goto @GFSEX_5341

:GFSEX_4954
gosub @GFSEX_10324
gosub @GFSEX_10735
if 
  $excitement == 100
goto_if_false @GFSEX_5022
set_var_int_to_constant $iGFSayContext = 286
set_player_control $player1 {state} False
set_local_var_bit_const 9@ {bitIndex} 1
set_global_var_bit_const $iDateReport {bitIndex} 4
8@ += 1

:GFSEX_5022
if 
  $excitement == 0
goto_if_false @GFSEX_5063
clear_global_var_bit_const $iDateReport {bitIndex} 4
clear_help 
7@ = 8
8@ = 0

:GFSEX_5063
goto @GFSEX_5341

:GFSEX_5070
if 
  22@ == 0
goto_if_false @GFSEX_5095
8@ += 1

:GFSEX_5095
if 
  22@ == 1
goto_if_false @GFSEX_5134
gosub @GFSEX_9199
22@ = 0
8@ += 1

:GFSEX_5134
if 
  22@ == 2
goto_if_false @GFSEX_5173
gosub @GFSEX_9199
22@ = 0
8@ += 1

:GFSEX_5173
goto @GFSEX_5341

:GFSEX_5180
task_play_anim_non_interruptable 24@ {animationName} "SEX_1_CUM_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1_CUM_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 289
8@ += 1
goto @GFSEX_5341

:GFSEX_5278
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_1_CUM_P"
if 
  16@ == 1.0
goto_if_false @GFSEX_5334
7@ = 2
8@ = 0

:GFSEX_5334
goto @GFSEX_5341

:GFSEX_5341
return 

:GFSEX_5343
switch_start 8@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_6082 {caseNum1} 0 {caseLabel1} @GFSEX_5406 {caseNum2} 1 {caseLabel2} @GFSEX_5448 {caseNum3} 2 {caseLabel3} @GFSEX_5571 {caseNum4} 3 {caseLabel4} @GFSEX_5800 {caseNum5} 4 {caseLabel5} @GFSEX_5959 {caseNum6} 5 {caseLabel6} @GFSEX_6009 {caseNum7} -1 {caseLabel7} @GFSEX_6082

:GFSEX_5406
set_local_var_bit_const 9@ {bitIndex} 1
23@ = -1
gosub @GFSEX_9199
do_fade 1500 {direction} Fade.In
8@ += 1
goto @GFSEX_6082

:GFSEX_5448
if 
  not get_fading_status 
goto_if_false @GFSEX_5564
task_play_anim_non_interruptable $scplayer {animationName} "BJ_STAND_START_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_STAND_START_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
8@ += 1

:GFSEX_5564
goto @GFSEX_6082

:GFSEX_5571
16@ = get_char_anim_current_time $scplayer {animationName} "BJ_STAND_START_P"
if and
  16@ > 0.5
  1.0 > 16@
goto_if_false @GFSEX_5662
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_5662
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_6082

:GFSEX_5662
if 
  16@ == 1.0
goto_if_false @GFSEX_5793
task_play_anim_non_interruptable $scplayer {animationName} "BJ_STAND_LOOP_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
task_play_anim_non_interruptable 24@ {animationName} "BJ_STAND_LOOP_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 6000
TIMERB = 0
8@ += 1

:GFSEX_5793
goto @GFSEX_6082

:GFSEX_5800
if 
  is_skip_cutscene_button_pressed 
goto_if_false @GFSEX_5834
do_fade 500 {direction} Fade.Out
8@ = 5
goto @GFSEX_5952

:GFSEX_5834
if 
  TIMERB > 6000
goto_if_false @GFSEX_5952
task_play_anim_non_interruptable $scplayer {animationName} "BJ_STAND_END_P" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable 24@ {animationName} "BJ_STAND_END_W" {animationFile} "BLOWJOBZ" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
8@ += 1

:GFSEX_5952
goto @GFSEX_6082

:GFSEX_5959
20@ = get_script_task_status 24@ {taskId} 2066
if 
  is_int_lvar_equal_to_constant 20@ == 7
goto_if_false @GFSEX_6002
do_fade 500 {direction} Fade.Out
8@ += 1

:GFSEX_6002
goto @GFSEX_6082

:GFSEX_6009
if 
  not get_fading_status 
goto_if_false @GFSEX_6075
if 
  1@ > 0
goto_if_false @GFSEX_6061
7@ = 3
8@ = 0
goto @GFSEX_6075

:GFSEX_6061
7@ = 6
8@ = 0

:GFSEX_6075
goto @GFSEX_6082

:GFSEX_6082
return 

:GFSEX_6084
switch_start 8@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @GFSEX_6684 {caseNum1} 0 {caseLabel1} @GFSEX_6147 {caseNum2} 1 {caseLabel2} @GFSEX_6508 {caseNum3} -1 {caseLabel3} @GFSEX_6684 {caseNum4} -1 {caseLabel4} @GFSEX_6684 {caseNum5} -1 {caseLabel5} @GFSEX_6684 {caseNum6} -1 {caseLabel6} @GFSEX_6684 {caseNum7} -1 {caseLabel7} @GFSEX_6684

:GFSEX_6147
if 
  22@ == 0
goto_if_false @GFSEX_6265
task_play_anim_non_interruptable 24@ {animationName} "SEX_1_FAIL_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1_FAIL_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 288
8@ += 1
goto @GFSEX_6684

:GFSEX_6265
if 
  22@ == 1
goto_if_false @GFSEX_6383
task_play_anim_non_interruptable 24@ {animationName} "SEX_2_FAIL_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2_FAIL_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 288
8@ += 1
goto @GFSEX_6684

:GFSEX_6383
if 
  22@ == 2
goto_if_false @GFSEX_6501
task_play_anim_non_interruptable 24@ {animationName} "SEX_3_FAIL_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3_FAIL_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
set_var_int_to_constant $iGFSayContext = 288
8@ += 1
goto @GFSEX_6684

:GFSEX_6501
goto @GFSEX_6684

:GFSEX_6508
if 
  22@ == 0
goto_if_false @GFSEX_6555
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_1_FAIL_P"
goto @GFSEX_6642

:GFSEX_6555
if 
  22@ == 1
goto_if_false @GFSEX_6602
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_2_FAIL_P"
goto @GFSEX_6642

:GFSEX_6602
if 
  22@ == 2
goto_if_false @GFSEX_6642
16@ = get_char_anim_current_time $scplayer {animationName} "SEX_3_FAIL_P"

:GFSEX_6642
if 
  16@ == 1.0
goto_if_false @GFSEX_6677
7@ = 2
8@ = 0

:GFSEX_6677
goto @GFSEX_6684

:GFSEX_6684
return 

:GFSEX_6686
switch_start 8@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFSEX_7563 {caseNum1} 0 {caseLabel1} @GFSEX_6814 {caseNum2} 1 {caseLabel2} @GFSEX_6895 {caseNum3} 2 {caseLabel3} @GFSEX_7180 {caseNum4} 3 {caseLabel4} @GFSEX_7222 {caseNum5} 4 {caseLabel5} @GFSEX_7284 {caseNum6} 5 {caseLabel6} @GFSEX_7385 {caseNum7} 6 {caseLabel7} @GFSEX_7447
switch_continued 7 {caseLabel1} @GFSEX_7509 {caseNum2} -1 {caseLabel2} @GFSEX_7563 {caseNum3} -1 {caseLabel3} @GFSEX_7563 {caseNum4} -1 {caseLabel4} @GFSEX_7563 {caseNum5} -1 {caseLabel5} @GFSEX_7563 {caseNum6} -1 {caseLabel6} @GFSEX_7563 {caseNum7} -1 {caseLabel7} @GFSEX_7563 {caseNum8} -1 {caseLabel8} @GFSEX_7563 {caseNum9} -1 {caseLabel9} @GFSEX_7563

:GFSEX_6814
if 
  is_char_in_any_car $scplayer
goto_if_false @GFSEX_6860
25@ = store_car_char_is_in_no_save $scplayer
set_car_proofs 25@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
goto @GFSEX_6875

:GFSEX_6860
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True

:GFSEX_6875
do_fade 0 {direction} Fade.Out
8@ += 1
goto @GFSEX_7563

:GFSEX_6895
if 
  not get_fading_status 
goto_if_false @GFSEX_7173
set_area_visible 0
set_char_area_visible 24@ {areaId} 0
set_char_area_visible $scplayer {areaId} 0
if 
  is_char_on_foot $scplayer
goto_if_false @GFSEX_6964
set_char_coordinates $scplayer {x} 3@ {y} 4@ {z} 5@
set_char_heading $scplayer {heading} 6@

:GFSEX_6964
load_scene 3@ {y} 4@ {z} 5@
request_collision 3@ {y} 4@
set_char_visible $scplayer {state} False
set_player_control $player1 {state} False
switch_widescreen True
display_radar False
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
gosub @GFSEX_13248
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_collision 24@ {state} False
set_char_visible 24@ {state} False
set_fixed_camera_position 10@ {y} 12@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 11@ {y} 13@ {z} 15@ {switchStyle} SwitchType.JumpCut
camera_set_shake_simulation_simple 5 {timeInMs} 5000.0 {intensity} 10.0
20@, 21@ = get_time_of_day 
21@ += 30
if 
  21@ > 60
goto_if_false @GFSEX_7151
21@ -= 60
20@ += 1

:GFSEX_7151
set_time_of_day 20@ {minutes} 21@
do_fade 1000 {direction} Fade.In
8@ += 1

:GFSEX_7173
goto @GFSEX_7563

:GFSEX_7180
if 
  not get_fading_status 
goto_if_false @GFSEX_7215
set_var_int_to_constant $iGFSayContext = 284
TIMERB = 0
8@ += 1

:GFSEX_7215
goto @GFSEX_7563

:GFSEX_7222
if 
  TIMERB > 3000
goto_if_false @GFSEX_7277
set_var_int_to_constant $iGFSayContext = 284
TIMERB = 0
camera_set_shake_simulation_simple 5 {timeInMs} 3000.0 {intensity} 15.0
8@ += 1

:GFSEX_7277
goto @GFSEX_7563

:GFSEX_7284
if 
  TIMERB > 3000
goto_if_false @GFSEX_7378
$iGFSayContext = -2
if 
  1@ > 0
goto_if_false @GFSEX_7343
set_var_int_to_constant $iCJSayContext = 239
goto @GFSEX_7350

:GFSEX_7343
set_var_int_to_constant $iCJSayContext = 117

:GFSEX_7350
camera_set_shake_simulation_simple 5 {timeInMs} 3000.0 {intensity} 20.0
TIMERB = 0
8@ += 1

:GFSEX_7378
goto @GFSEX_7563

:GFSEX_7385
if 
  TIMERB > 3000
goto_if_false @GFSEX_7440
set_var_int_to_constant $iGFSayContext = 287
camera_set_shake_simulation_simple 5 {timeInMs} 4000.0 {intensity} 30.0
TIMERB = 0
8@ += 1

:GFSEX_7440
goto @GFSEX_7563

:GFSEX_7447
if 
  TIMERB > 4000
goto_if_false @GFSEX_7502
set_var_int_to_constant $iGFSayContext = 290
camera_set_shake_simulation_simple 5 {timeInMs} 3000.0 {intensity} 5.0
TIMERB = 0
8@ += 1

:GFSEX_7502
goto @GFSEX_7563

:GFSEX_7509
if 
  TIMERB > 3000
goto_if_false @GFSEX_7556
set_global_var_bit_const $iDateReport {bitIndex} 2
set_global_var_bit_const $iDateReport {bitIndex} 4
7@ = 2
8@ = 0

:GFSEX_7556
goto @GFSEX_7563

:GFSEX_7563
return 

:GFSEX_7565
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_7982 {caseNum1} 0 {caseLabel1} @GFSEX_7628 {caseNum2} 1 {caseLabel2} @GFSEX_7687 {caseNum3} 2 {caseLabel3} @GFSEX_7746 {caseNum4} 3 {caseLabel4} @GFSEX_7805 {caseNum5} 4 {caseLabel5} @GFSEX_7864 {caseNum6} 5 {caseLabel6} @GFSEX_7923 {caseNum7} -1 {caseLabel7} @GFSEX_7982

:GFSEX_7628
load_special_character 1 {modelName} 'GANGRL2'

:GFSEX_7641
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7680
wait 0
load_special_character 1 {modelName} 'GANGRL2'
goto @GFSEX_7641

:GFSEX_7680
goto @GFSEX_7982

:GFSEX_7687
load_special_character 1 {modelName} 'MECGRL2'

:GFSEX_7700
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7739
wait 0
load_special_character 1 {modelName} 'MECGRL2'
goto @GFSEX_7700

:GFSEX_7739
goto @GFSEX_7982

:GFSEX_7746
load_special_character 1 {modelName} 'GUNGRL2'

:GFSEX_7759
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7798
wait 0
load_special_character 1 {modelName} 'GUNGRL2'
goto @GFSEX_7759

:GFSEX_7798
goto @GFSEX_7982

:GFSEX_7805
load_special_character 1 {modelName} 'COPGRL2'

:GFSEX_7818
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7857
wait 0
load_special_character 1 {modelName} 'COPGRL2'
goto @GFSEX_7818

:GFSEX_7857
goto @GFSEX_7982

:GFSEX_7864
load_special_character 1 {modelName} 'NURGRL2'

:GFSEX_7877
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7916
wait 0
load_special_character 1 {modelName} 'NURGRL2'
goto @GFSEX_7877

:GFSEX_7916
goto @GFSEX_7982

:GFSEX_7923
load_special_character 1 {modelName} 'CROGRL2'

:GFSEX_7936
if 
  not has_special_character_loaded 1
goto_if_false @GFSEX_7975
wait 0
load_special_character 1 {modelName} 'CROGRL2'
goto @GFSEX_7936

:GFSEX_7975
goto @GFSEX_7982

:GFSEX_7982
24@ = create_char PedType.CivFemale {modelId} 290 {x} 0.0 {y} 0.0 {z} 0.0
set_char_proofs 24@ {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
set_char_collision 24@ {state} False
dont_remove_char 24@
return 

:GFSEX_8036
request_animation "BLOWJOBZ"
request_animation "KISSING"
request_animation "SEX"
request_animation "SNM"

:GFSEX_8073
wait 0
if and
  has_animation_loaded "BLOWJOBZ"
  has_animation_loaded "SEX"
  has_animation_loaded "KISSING"
  has_animation_loaded "SNM"
goto_if_false @GFSEX_8134
return 
goto @GFSEX_8178

:GFSEX_8134
request_animation "BLOWJOBZ"
request_animation "KISSING"
request_animation "SEX"
request_animation "SNM"
goto @GFSEX_8073

:GFSEX_8178
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_8607 {caseNum1} 0 {caseLabel1} @GFSEX_8241 {caseNum2} 1 {caseLabel2} @GFSEX_8302 {caseNum3} 2 {caseLabel3} @GFSEX_8363 {caseNum4} 3 {caseLabel4} @GFSEX_8424 {caseNum5} 4 {caseLabel5} @GFSEX_8485 {caseNum6} 5 {caseLabel6} @GFSEX_8546 {caseNum7} -1 {caseLabel7} @GFSEX_8607

:GFSEX_8241
10@ = 245.6252
12@ = 304.1411
14@ = 998.32
16@ = 0.0
20@ = 1
21@ = 1
goto @GFSEX_8607

:GFSEX_8302
10@ = 306.1999
12@ = 305.1225
14@ = 1002.297
16@ = 90.0
20@ = 4
21@ = 1
goto @GFSEX_8607

:GFSEX_8363
10@ = 288.7753
12@ = 308.4772
14@ = 998.1641
16@ = 213.8029
20@ = 3
21@ = 7
goto @GFSEX_8607

:GFSEX_8424
10@ = 324.6405
12@ = 307.4622
14@ = 998.1558
16@ = 175.0
20@ = 5
21@ = 7
goto @GFSEX_8607

:GFSEX_8485
10@ = 271.4699
12@ = 307.2668
14@ = 998.32
16@ = 265.0
20@ = 2
21@ = 1
goto @GFSEX_8607

:GFSEX_8546
10@ = 345.6252
12@ = 304.1411
14@ = 998.25
16@ = 0.0
20@ = 6
21@ = 1
goto @GFSEX_8607

:GFSEX_8607
clear_char_tasks_immediately $scplayer
clear_char_tasks_immediately 24@
set_char_collision 24@ {state} False
set_char_collision $scplayer {state} False
set_char_coordinates $scplayer {x} 10@ {y} 12@ {z} 14@
set_char_heading $scplayer {heading} 16@
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
16@ = get_char_heading $scplayer
16@ += 180.0
set_char_coordinates 24@ {x} 10@ {y} 12@ {z} 14@
set_char_heading 24@ {heading} 16@
set_area_visible 20@
set_char_area_visible 24@ {areaId} 20@
set_char_area_visible $scplayer {areaId} 20@
load_scene 10@ {y} 12@ {z} 14@
request_collision 10@ {y} 12@
return 

:GFSEX_8764
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
clear_area 3@ {y} 4@ {z} 5@ {radius} 3.0 {clearParticles} True
if 
  is_char_on_foot $scplayer
goto_if_false @GFSEX_8831
set_char_coordinates $scplayer {x} 3@ {y} 4@ {z} 5@
set_char_heading $scplayer {heading} 6@

:GFSEX_8831
request_collision 3@ {y} 4@
load_scene 3@ {y} 4@ {z} 5@
return 

:GFSEX_8852
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_9197 {caseNum1} 0 {caseLabel1} @GFSEX_8915 {caseNum2} 1 {caseLabel2} @GFSEX_9009 {caseNum3} 2 {caseLabel3} @GFSEX_9056 {caseNum4} 3 {caseLabel4} @GFSEX_8962 {caseNum5} 4 {caseLabel5} @GFSEX_9103 {caseNum6} 5 {caseLabel6} @GFSEX_9150 {caseNum7} -1 {caseLabel7} @GFSEX_9197

:GFSEX_8915
10@ = 245.617
12@ = 301.507
14@ = 999.046
16@ = 0.0
goto @GFSEX_9197

:GFSEX_8962
10@ = 318.4
12@ = 311.85
14@ = 998.8
16@ = 110.0
goto @GFSEX_9197

:GFSEX_9009
10@ = 308.8862
12@ = 301.9657
14@ = 1003.0
16@ = 0.0
goto @GFSEX_9197

:GFSEX_9056
10@ = 282.5775
12@ = 307.7573
14@ = 1002.391
16@ = 0.0
goto @GFSEX_9197

:GFSEX_9103
10@ = 270.12
12@ = 307.737
14@ = 999.0204
16@ = 180.0
goto @GFSEX_9197

:GFSEX_9150
10@ = 345.617
12@ = 301.507
14@ = 998.8
16@ = 0.0
goto @GFSEX_9197

:GFSEX_9197
return 

:GFSEX_9199
switch_start 23@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFSEX_9803 {caseNum1} -1 {caseLabel1} @GFSEX_9262 {caseNum2} 0 {caseLabel2} @GFSEX_9327 {caseNum3} 1 {caseLabel3} @GFSEX_9446 {caseNum4} 2 {caseLabel4} @GFSEX_9565 {caseNum5} 3 {caseLabel5} @GFSEX_9684 {caseNum6} -1 {caseLabel6} @GFSEX_9929 {caseNum7} -1 {caseLabel7} @GFSEX_9929

:GFSEX_9262
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.8 {yOffset} 2.9 {zOffset} 0.353
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} 0.8701 {zOffset} 0.1828
goto @GFSEX_9929

:GFSEX_9327
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.6375 {yOffset} 2.3043 {zOffset} 0.1065
if 
  7@ == 3
goto_if_false @GFSEX_9410
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} -0.1
goto @GFSEX_9439

:GFSEX_9410
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} -0.2746

:GFSEX_9439
goto @GFSEX_9929

:GFSEX_9446
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.5989 {yOffset} 0.7828 {zOffset} -0.2044
if 
  7@ == 3
goto_if_false @GFSEX_9529
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.6223 {yOffset} 0.6748 {zOffset} -0.2
goto @GFSEX_9558

:GFSEX_9529
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.6223 {yOffset} 0.6748 {zOffset} -0.3904

:GFSEX_9558
goto @GFSEX_9929

:GFSEX_9565
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.9748 {yOffset} -0.1026 {zOffset} 0.7511
if 
  7@ == 3
goto_if_false @GFSEX_9648
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.4155 {yOffset} 0.3026 {zOffset} 0.01
goto @GFSEX_9677

:GFSEX_9648
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.4155 {yOffset} 0.3026 {zOffset} 0.0279

:GFSEX_9677
goto @GFSEX_9929

:GFSEX_9684
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.3103 {yOffset} 1.6396 {zOffset} -0.6208
if 
  7@ == 3
goto_if_false @GFSEX_9767
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.49 {yOffset} 1.0874 {zOffset} -0.2
goto @GFSEX_9796

:GFSEX_9767
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.49 {yOffset} 1.0874 {zOffset} -0.4726

:GFSEX_9796
goto @GFSEX_9929

:GFSEX_9803
23@ = 0
10@, 12@, 14@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.6375 {yOffset} 2.3043 {zOffset} 0.1065
if 
  7@ == 3
goto_if_false @GFSEX_9893
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} 0.0
goto @GFSEX_9922

:GFSEX_9893
11@, 13@, 15@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.3435 {yOffset} 1.4278 {zOffset} -0.2746

:GFSEX_9922
goto @GFSEX_9929

:GFSEX_9929
set_fixed_camera_position 10@ {y} 12@ {z} 14@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 11@ {y} 13@ {z} 15@ {switchStyle} SwitchType.JumpCut
23@ += 1
return 

:GFSEX_9977
if 
  7@ == 6
goto_if_false @GFSEX_10322
22@ += 1
switch_start 22@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_10315 {caseNum1} 1 {caseLabel1} @GFSEX_10065 {caseNum2} 2 {caseLabel2} @GFSEX_10146 {caseNum3} 3 {caseLabel3} @GFSEX_10227 {caseNum4} -1 {caseLabel4} @GFSEX_10315 {caseNum5} -1 {caseLabel5} @GFSEX_10315 {caseNum6} -1 {caseLabel6} @GFSEX_10315 {caseNum7} -1 {caseLabel7} @GFSEX_10315

:GFSEX_10065
task_play_anim_non_interruptable 24@ {animationName} "SEX_1TO2_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_1TO2_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @GFSEX_10315

:GFSEX_10146
task_play_anim_non_interruptable 24@ {animationName} "SEX_2TO3_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_2TO3_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @GFSEX_10315

:GFSEX_10227
22@ = 0
task_play_anim_non_interruptable 24@ {animationName} "SEX_3TO1_W" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
task_play_anim_non_interruptable $scplayer {animationName} "SEX_3TO1_P" {animationFile} "SEX" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
goto @GFSEX_10315

:GFSEX_10315
8@ = 1

:GFSEX_10322
return 

:GFSEX_10324
set_lvar_int_to_var_int 20@ = $excitement
20@ /= 10
if 
  3 > 20@
goto_if_false @GFSEX_10364
20@ = 0

:GFSEX_10364
switch_start 20@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @GFSEX_10733 {caseNum1} 0 {caseLabel1} @GFSEX_10492 {caseNum2} 3 {caseLabel2} @GFSEX_10523 {caseNum3} 4 {caseLabel3} @GFSEX_10554 {caseNum4} 5 {caseLabel4} @GFSEX_10585 {caseNum5} 6 {caseLabel5} @GFSEX_10616 {caseNum6} 7 {caseLabel6} @GFSEX_10647 {caseNum7} 8 {caseLabel7} @GFSEX_10678
switch_continued 9 {caseLabel1} @GFSEX_10709 {caseNum2} -1 {caseLabel2} @GFSEX_10733 {caseNum3} -1 {caseLabel3} @GFSEX_10733 {caseNum4} -1 {caseLabel4} @GFSEX_10733 {caseNum5} -1 {caseLabel5} @GFSEX_10733 {caseNum6} -1 {caseLabel6} @GFSEX_10733 {caseNum7} -1 {caseLabel7} @GFSEX_10733 {caseNum8} -1 {caseLabel8} @GFSEX_10733 {caseNum9} -1 {caseLabel9} @GFSEX_10733

:GFSEX_10492
16@ = 0.035
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10523
16@ = 0.045
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10554
16@ = 0.05
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10585
16@ = 0.055
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10616
16@ = 0.055
clear_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10647
16@ = 0.08
set_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10678
16@ = 0.08
set_local_var_bit_const 9@ {bitIndex} 6
clear_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10709
16@ = 0.09
set_local_var_bit_const 9@ {bitIndex} 7
goto @GFSEX_10733

:GFSEX_10733
return 

:GFSEX_10735
switch_start 22@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @GFSEX_11167 {caseNum1} 0 {caseLabel1} @GFSEX_10798 {caseNum2} 1 {caseLabel2} @GFSEX_10921 {caseNum3} 2 {caseLabel3} @GFSEX_11044 {caseNum4} -1 {caseLabel4} @GFSEX_11167 {caseNum5} -1 {caseLabel5} @GFSEX_11167 {caseNum6} -1 {caseLabel6} @GFSEX_11167 {caseNum7} -1 {caseLabel7} @GFSEX_11167

:GFSEX_10798
if 
  is_char_playing_anim $scplayer {animationName} "SEX_1_P"
goto_if_false @GFSEX_10856
set_char_anim_playing_flag $scplayer {animationName} "SEX_1_P" {flag} False
set_char_anim_current_time $scplayer {animationName} "SEX_1_P" {time} $GF_anim_time

:GFSEX_10856
if 
  is_char_playing_anim 24@ {animationName} "SEX_1_W"
goto_if_false @GFSEX_10914
set_char_anim_playing_flag 24@ {animationName} "SEX_1_W" {flag} False
set_char_anim_current_time 24@ {animationName} "SEX_1_W" {time} $GF_anim_time

:GFSEX_10914
goto @GFSEX_11167

:GFSEX_10921
if 
  is_char_playing_anim $scplayer {animationName} "SEX_2_P"
goto_if_false @GFSEX_10979
set_char_anim_playing_flag $scplayer {animationName} "SEX_2_P" {flag} False
set_char_anim_current_time $scplayer {animationName} "SEX_2_P" {time} $GF_anim_time

:GFSEX_10979
if 
  is_char_playing_anim 24@ {animationName} "SEX_2_W"
goto_if_false @GFSEX_11037
set_char_anim_playing_flag 24@ {animationName} "SEX_2_W" {flag} False
set_char_anim_current_time 24@ {animationName} "SEX_2_W" {time} $GF_anim_time

:GFSEX_11037
goto @GFSEX_11167

:GFSEX_11044
if 
  is_char_playing_anim $scplayer {animationName} "SEX_3_P"
goto_if_false @GFSEX_11102
set_char_anim_playing_flag $scplayer {animationName} "SEX_3_P" {flag} False
set_char_anim_current_time $scplayer {animationName} "SEX_3_P" {time} $GF_anim_time

:GFSEX_11102
if 
  is_char_playing_anim 24@ {animationName} "SEX_3_W"
goto_if_false @GFSEX_11160
set_char_anim_playing_flag 24@ {animationName} "SEX_3_W" {flag} False
set_char_anim_current_time 24@ {animationName} "SEX_3_W" {time} $GF_anim_time

:GFSEX_11160
goto @GFSEX_11167

:GFSEX_11167
if 
  is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_11200
sub_float_lvar_from_float_var $GF_anim_time -= 16@
goto @GFSEX_11208

:GFSEX_11200
add_float_lvar_to_float_var $GF_anim_time += 16@

:GFSEX_11208
if 
  0.0 >= $GF_anim_time
goto_if_false @GFSEX_11253
$GF_anim_time = 0.01
clear_local_var_bit_const 9@ {bitIndex} 5
gosub @GFSEX_11328

:GFSEX_11253
if 
  $GF_anim_time >= 1.0
goto_if_false @GFSEX_11298
$GF_anim_time = 0.99
set_local_var_bit_const 9@ {bitIndex} 5
gosub @GFSEX_11328

:GFSEX_11298
if 
  $GF_anim_time == 0.5
goto_if_false @GFSEX_11326
gosub @GFSEX_11328

:GFSEX_11326
return 

:GFSEX_11328
$GF_left_stick_x, $GF_left_stick_y, $GF_right_stick_x, $GF_right_stick_y = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 17@ =# $GF_left_stick_y
17@ /= 128.0
if 
  $GF_anim_time == 0.5
goto_if_false @GFSEX_11427
if 
  0.0 > 17@
goto_if_false @GFSEX_11418
gosub @GFSEX_11562
goto @GFSEX_11427

:GFSEX_11418
gosub @GFSEX_11667
return 

:GFSEX_11427
if 
  is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_11518
shake_pad PadId.Pad1 {time} 200 {intensity} 100
set_var_int_to_constant $iGFSayContext = 283
set_var_int_to_constant $iCJSayContext = 116
if 
  -0.8 > 17@
goto_if_false @GFSEX_11504
gosub @GFSEX_11562
goto @GFSEX_11511

:GFSEX_11504
gosub @GFSEX_11667

:GFSEX_11511
goto @GFSEX_11560

:GFSEX_11518
if 
  17@ > 0.8
goto_if_false @GFSEX_11553
gosub @GFSEX_11562
goto @GFSEX_11560

:GFSEX_11553
gosub @GFSEX_11667

:GFSEX_11560
return 

:GFSEX_11562
if 
  100 > $excitement
goto_if_false @GFSEX_11658
if 
  is_local_var_bit_set_const 9@ {bitIndex} 6
goto_if_false @GFSEX_11612
$excitement += 5
goto @GFSEX_11651

:GFSEX_11612
if 
  is_local_var_bit_set_const 9@ {bitIndex} 7
goto_if_false @GFSEX_11644
$excitement += 10
goto @GFSEX_11651

:GFSEX_11644
$excitement += 1

:GFSEX_11651
goto @GFSEX_11665

:GFSEX_11658
$excitement = 100

:GFSEX_11665
return 

:GFSEX_11667
if 
  TIMERB > 5000
goto_if_false @GFSEX_11764
if 
  $excitement > 0
goto_if_false @GFSEX_11757
if and
  $excitement > 10
  not is_local_var_bit_set_const 9@ {bitIndex} 6
goto_if_false @GFSEX_11743
$excitement -= 5
goto @GFSEX_11750

:GFSEX_11743
$excitement -= 1

:GFSEX_11750
goto @GFSEX_11764

:GFSEX_11757
$excitement = 0

:GFSEX_11764
return 

:GFSEX_11766
if 
  18@ > 90.0
goto_if_false @GFSEX_11797
18@ = 0.0

:GFSEX_11797
19@ = sin 18@
19@ *= 13.5
cset_lvar_int_to_lvar_float 20@ =# 19@
add_int_var_to_int_lvar 20@ += $power
if 
  20@ >= 100
goto_if_false @GFSEX_11863
$power = 100
goto @GFSEX_11871

:GFSEX_11863
set_var_int_to_lvar_int $power = 20@

:GFSEX_11871
18@ += 1.0
return 

:GFSEX_11883
18@ = 0.0
if 
  $power >= 97
goto_if_false @GFSEX_11925
$power -= 3
goto @GFSEX_11964

:GFSEX_11925
if 
  7 >= $power
goto_if_false @GFSEX_11957
$power = 0
goto @GFSEX_11964

:GFSEX_11957
$power -= 7

:GFSEX_11964
return 

:GFSEX_11966
if 
  $power >= 97
goto_if_false @GFSEX_11998
set_local_var_bit_const 9@ {bitIndex} 10
goto @GFSEX_12005

:GFSEX_11998
clear_local_var_bit_const 9@ {bitIndex} 10

:GFSEX_12005
return 

:GFSEX_12007
16@ = 0.025
if 
  is_local_var_bit_set_const 9@ {bitIndex} 10
goto_if_false @GFSEX_12045
16@ += 0.015

:GFSEX_12045
$GF_anim_time = 0.01
return 

:GFSEX_12057
if 
  is_char_playing_anim $scplayer {animationName} "SPANKINGP"
goto_if_false @GFSEX_12121
set_char_anim_playing_flag $scplayer {animationName} "SPANKINGP" {flag} False
set_char_anim_current_time $scplayer {animationName} "SPANKINGP" {time} $GF_anim_time

:GFSEX_12121
if 
  is_char_playing_anim 24@ {animationName} "SPANKINGW"
goto_if_false @GFSEX_12185
set_char_anim_playing_flag 24@ {animationName} "SPANKINGW" {flag} False
set_char_anim_current_time 24@ {animationName} "SPANKINGW" {time} $GF_anim_time

:GFSEX_12185
if 
  not is_local_var_bit_set_const 9@ {bitIndex} 5
goto_if_false @GFSEX_12211
add_float_lvar_to_float_var $GF_anim_time += 16@

:GFSEX_12211
if 
  $GF_anim_time >= 1.0
goto_if_false @GFSEX_12251
$GF_anim_time = 0.99
set_local_var_bit_const 9@ {bitIndex} 5
return 

:GFSEX_12251
return 

:GFSEX_12253
if 
  is_local_var_bit_set_const 9@ {bitIndex} 10
goto_if_false @GFSEX_12325
set_var_int_to_constant $iGFSayContext = 286
if 
  100 >= $excitement
goto_if_false @GFSEX_12311
$excitement += 10
goto @GFSEX_12318

:GFSEX_12311
$excitement = 100

:GFSEX_12318
goto @GFSEX_12364

:GFSEX_12325
if 
  $excitement >= 10
goto_if_false @GFSEX_12357
$excitement -= 10
goto @GFSEX_12364

:GFSEX_12357
$excitement = 0

:GFSEX_12364
clear_local_var_bit_const 9@ {bitIndex} 10
clear_local_var_bit_const 9@ {bitIndex} 11
clear_local_var_bit_const 9@ {bitIndex} 12
return 

:GFSEX_12387
if and
  100 > $power
  $power > 0
  is_local_var_bit_set_const 9@ {bitIndex} 14
goto_if_false @GFSEX_12428
gosub @GFSEX_11883
return 

:GFSEX_12428
if and
  100 > $power
  $power > 0
  not is_local_var_bit_set_const 9@ {bitIndex} 14
goto_if_false @GFSEX_12469
gosub @GFSEX_11766
return 

:GFSEX_12469
if 
  $power >= 100
goto_if_false @GFSEX_12510
$power = 100
set_local_var_bit_const 9@ {bitIndex} 14
gosub @GFSEX_11883
return 

:GFSEX_12510
if 
  0 >= $power
goto_if_false @GFSEX_12551
$power = 0
clear_local_var_bit_const 9@ {bitIndex} 14
gosub @GFSEX_11766
return 

:GFSEX_12551
return 

:GFSEX_12553
switch_start $iGFSpeechStatus {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @GFSEX_13085 {caseNum1} 0 {caseLabel1} @GFSEX_12616 {caseNum2} 1 {caseLabel2} @GFSEX_12648 {caseNum3} 2 {caseLabel3} @GFSEX_12660 {caseNum4} 3 {caseLabel4} @GFSEX_12674 {caseNum5} 4 {caseLabel5} @GFSEX_12943 {caseNum6} 5 {caseLabel6} @GFSEX_13043 {caseNum7} 6 {caseLabel7} @GFSEX_12852

:GFSEX_12616
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12641
$iGFSpeechStatus = 3

:GFSEX_12641
goto @GFSEX_13085

:GFSEX_12648
enable_char_speech 24@
goto @GFSEX_13085

:GFSEX_12660
disable_char_speech 24@ {stopNow} False
goto @GFSEX_13085

:GFSEX_12674
if 
  not is_char_talking 24@
goto_if_false @GFSEX_12845
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_12785
$iGFContextVariation = set_char_say_context_important 24@ {phrase} $iGFSayContext {overrideSilence} True {ignoreMute} True {frontEnd} True
gosub @GFSEX_13087
$iGFSayContext = -1
if 
  $iCJSayContext > 0
goto_if_false @GFSEX_12771
$iGFSpeechStatus = 6
goto @GFSEX_12778

:GFSEX_12771
$iGFSpeechStatus = 0

:GFSEX_12778
goto @GFSEX_12845

:GFSEX_12785
if 
  $iGFSayContext == -2
goto_if_false @GFSEX_12824
$iGFSayContext = -1
$iGFSpeechStatus = 6
goto @GFSEX_12845

:GFSEX_12824
$iGFSayContext = -1
$iCJSayContext = -1
$iGFSpeechStatus = 0

:GFSEX_12845
goto @GFSEX_13085

:GFSEX_12852
if and
  not is_char_talking $scplayer
  not is_char_talking 24@
goto_if_false @GFSEX_12936
if 
  $iCJSayContext > 0
goto_if_false @GFSEX_12929
$iGFContextVariation = set_char_say_context_important $scplayer {phrase} $iCJSayContext {overrideSilence} True {ignoreMute} True {frontEnd} True
$iCJSayContext = -1
$iGFSpeechStatus = 0
goto @GFSEX_12936

:GFSEX_12929
$iGFSpeechStatus = 0

:GFSEX_12936
goto @GFSEX_13085

:GFSEX_12943
disable_char_speech 24@ {stopNow} False
if 
  not is_char_talking 24@
goto_if_false @GFSEX_13036
if 
  $iGFSayContext > 0
goto_if_false @GFSEX_13029
$iGFContextVariation = set_char_say_context_important 24@ {phrase} $iGFSayContext {overrideSilence} True {ignoreMute} True {frontEnd} True
gosub @GFSEX_13087
$iGFSayContext = -1
$iGFSpeechStatus = 5
goto @GFSEX_13036

:GFSEX_13029
$iGFSpeechStatus = 0

:GFSEX_13036
goto @GFSEX_13085

:GFSEX_13043
if 
  not is_char_talking 24@
goto_if_false @GFSEX_13078
enable_char_speech 24@
$iGFSayContext = -1
$iGFSpeechStatus = 0

:GFSEX_13078
goto @GFSEX_13085

:GFSEX_13085
return 

:GFSEX_13087
switch_start $iGFSayContext {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @GFSEX_13246 {caseNum1} 286 {caseLabel1} @GFSEX_13154 {caseNum2} 288 {caseLabel2} @GFSEX_13177 {caseNum3} 289 {caseLabel3} @GFSEX_13200 {caseNum4} 291 {caseLabel4} @GFSEX_13223 {caseNum5} -1 {caseLabel5} @GFSEX_13246 {caseNum6} -1 {caseLabel6} @GFSEX_13246 {caseNum7} -1 {caseLabel7} @GFSEX_13246

:GFSEX_13154
print_now 'GF_0019' {time} 5000 {flag} 1
goto @GFSEX_13246

:GFSEX_13177
print_now 'GF_0067' {time} 5000 {flag} 1
goto @GFSEX_13246

:GFSEX_13200
print_now 'GF_0042' {time} 5000 {flag} 1
goto @GFSEX_13246

:GFSEX_13223
print_now 'GF_0067' {time} 5000 {flag} 1
goto @GFSEX_13246

:GFSEX_13246
return 

:GFSEX_13248
switch_start 0@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @GFSEX_13713 {caseNum1} 0 {caseLabel1} @GFSEX_13311 {caseNum2} 1 {caseLabel2} @GFSEX_13445 {caseNum3} 2 {caseLabel3} @GFSEX_13512 {caseNum4} 3 {caseLabel4} @GFSEX_13378 {caseNum5} 4 {caseLabel5} @GFSEX_13579 {caseNum6} 5 {caseLabel6} @GFSEX_13646 {caseNum7} -1 {caseLabel7} @GFSEX_13713

:GFSEX_13311
10@ = 2394.408
12@ = -1728.215
14@ = 14.2715
11@ = 2395.0659
13@ = -1727.465
15@ = 14.2063
goto @GFSEX_13713

:GFSEX_13378
10@ = -1401.494
12@ = 2640.0991
14@ = 59.3883
11@ = -1400.704
13@ = 2639.6411
15@ = 58.9806
goto @GFSEX_13713

:GFSEX_13445
10@ = -1799.7371
12@ = 1192.863
14@ = 29.6868
11@ = -1799.472
13@ = 1193.683
15@ = 29.1813
goto @GFSEX_13713

:GFSEX_13512
10@ = -383.3153
12@ = -1435.266
14@ = 26.695
11@ = -382.5756
13@ = -1435.887
15@ = 26.4366
goto @GFSEX_13713

:GFSEX_13579
10@ = -2582.293
12@ = 1147.762
14@ = 59.6235
11@ = -2581.406
13@ = 1147.7679
15@ = 59.1605
goto @GFSEX_13713

:GFSEX_13646
10@ = 2032.235
12@ = 2734.541
14@ = 13.3226
11@ = 2032.744
13@ = 2733.7141
15@ = 13.0817
goto @GFSEX_13713

:GFSEX_13713
return 

:GFSEX_13715
remove_animation "SNM"
remove_animation "SEX"
remove_animation "BLOWJOBZ"
remove_animation "KISSING"
unload_special_character 1
delete_char 24@
if 
  not is_car_dead 25@
goto_if_false @GFSEX_13797
set_car_proofs 25@ {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
mark_car_as_no_longer_needed 25@

:GFSEX_13797
if 
  is_player_playing $player1
goto_if_false @GFSEX_13851
set_char_visible $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
clear_char_tasks $scplayer
set_player_control $player1 {state} True
switch_widescreen False

:GFSEX_13851
display_radar True
set_global_var_bit_const $iDateReport {bitIndex} 21
clear_global_var_bit_const $iDateReport {bitIndex} 5
set_minigame_in_progress False
terminate_this_script 
return 
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug_with_float "STICK_POSITION" {number} 17@
write_debug_with_int "SHAGGIN_POSITION" {number} 22@
write_debug_with_int "I_EXCITEMENT" {number} $excitement
write_debug_with_float "ANIM_TIME" {number} $GF_anim_time
write_debug_with_int "SUBSTATESTATUS" {number} 8@
switch_start 7@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @GFSEX_14177 {caseNum1} 0 {caseLabel1} @GFSEX_14082 {caseNum2} 1 {caseLabel2} @GFSEX_14101 {caseNum3} 2 {caseLabel3} @GFSEX_14120 {caseNum4} 3 {caseLabel4} @GFSEX_14139 {caseNum5} 4 {caseLabel5} @GFSEX_14158 {caseNum6} -1 {caseLabel6} @GFSEX_14206 {caseNum7} -1 {caseLabel7} @GFSEX_14206

:GFSEX_14082
write_debug "STATE0__"
goto @GFSEX_14206

:GFSEX_14101
write_debug "STATE1__"
goto @GFSEX_14206

:GFSEX_14120
write_debug "STATE2__"
goto @GFSEX_14206

:GFSEX_14139
write_debug "STATE3__"
goto @GFSEX_14206

:GFSEX_14158
write_debug "STATE4__"
goto @GFSEX_14206

:GFSEX_14177
write_debug "UNTRAPPED_STATE___"
goto @GFSEX_14206

:GFSEX_14206
write_debug "I__________________________I"
return 
terminate_this_script 

//-------------External script 27 (CASINO_AMBIENCE)---------------

:CASAMB
script_name 'CASAMB'
if 
  $onmission == 0
goto_if_false @CASAMB_43
$iSetCasinoPanic = 0
$iBouncerAction = 0

:CASAMB_43
1@ = 1
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_91
request_model 124
request_model 126
request_model 125
request_model 214

:CASAMB_91
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_130
request_model 163
request_model 164
request_model 263

:CASAMB_130
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_170
request_model 163
request_model 164
request_model 172

:CASAMB_170
request_animation "BAR"

:CASAMB_177
if 
  not has_animation_loaded "BAR"
goto_if_false @CASAMB_206
wait 0
goto @CASAMB_177

:CASAMB_206
2@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_IN" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BARSERVE_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 2@
3@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_BOTTLE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 3@
4@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 4@
if 
  is_player_playing $player1
goto_if_false @CASAMB_1779
reset_num_of_models_killed_by_player $player1
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_928
5@ = add_attractor 1953.774 {y} 1018.197 {z} 991.4766 {angle} 260.0 {_p5} 90.0 {sequence} 2@
6@ = add_attractor 1952.286 {y} 1025.58 {z} 991.4745 {angle} 260.0 {_p5} 90.0 {sequence} 2@
7@ = add_attractor 1952.3 {y} 1010.296 {z} 991.4745 {angle} 260.0 {_p5} 90.0 {sequence} 2@
8@ = add_attractor 1952.25 {y} 1017.92 {z} 991.4766 {angle} 90.0 {_p5} 260.0 {sequence} 3@
9@ = add_attractor 1948.073 {y} 1016.505 {z} 991.4766 {angle} 90.0 {_p5} 180.0 {sequence} 2@
10@ = add_attractor 1948.564 {y} 1022.182 {z} 991.4766 {angle} 90.0 {_p5} 180.0 {sequence} 2@
11@ = add_attractor 1949.246 {y} 1013.613 {z} 991.4766 {angle} 90.0 {_p5} 180.0 {sequence} 2@
12@ = add_attractor 1949.0 {y} 1015.8 {z} 991.4766 {angle} 275.0 {_p5} 85.0 {sequence} 3@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 263 {taskId} 5@ {attractor} 1466
17@ = create_char_at_attractor PedType.CivFemale {modelId} 263 {taskId} 9@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 5@ 6@ 7@ 8@ 2.5 
start_new_streamed_script 38 {args} 17@ 9@ 10@ 11@ 12@ 2.5 
stream_script 38
13@ = add_attractor 1966.5389 {y} 984.8237 {z} 993.4688 {angle} 270.0 {_p5} 270.0 {sequence} 4@
14@ = add_attractor 1932.395 {y} 1033.886 {z} 993.4688 {angle} 60.0 {_p5} 300.0 {sequence} 4@
15@ = add_attractor 1959.094 {y} 993.7656 {z} 991.4766 {angle} 240.0 {_p5} 240.0 {sequence} 4@
18@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 13@ {attractor} 1502
19@ = create_char_at_attractor PedType.Cop {modelId} 164 {taskId} 14@ {attractor} 1502
20@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
start_new_streamed_script 39 {args} 19@ 
start_new_streamed_script 39 {args} 20@ 
stream_script 39

:CASAMB_928
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_1474
5@ = add_attractor 2195.73 {y} 1600.786 {z} 1004.063 {angle} 206.0 {_p5} -206.0 {sequence} 2@
6@ = add_attractor 2197.012 {y} 1602.8521 {z} 1004.063 {angle} 253.0 {_p5} -253.0 {sequence} 2@
7@ = add_attractor 2195.7859 {y} 1606.363 {z} 1004.063 {angle} 349.0 {_p5} -349.0 {sequence} 2@
8@ = add_attractor 2196.137 {y} 1603.521 {z} 1004.063 {angle} 98.0 {_p5} -98.0 {sequence} 3@
9@ = add_attractor 2191.592 {y} 1601.286 {z} 1004.063 {angle} 151.0 {_p5} -151.0 {sequence} 2@
10@ = add_attractor 2191.176 {y} 1604.874 {z} 1004.063 {angle} 58.0 {_p5} -58.0 {sequence} 2@
11@ = add_attractor 2192.425 {y} 1606.9709 {z} 1004.063 {angle} 40.0 {_p5} -40.0 {sequence} 2@
12@ = add_attractor 2192.9541 {y} 1605.687 {z} 1004.069 {angle} 207.0 {_p5} -207.0 {sequence} 3@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 214 {taskId} 5@ {attractor} 1466
17@ = create_char_at_attractor PedType.CivFemale {modelId} 214 {taskId} 9@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 5@ 6@ 7@ 8@ 3.5 
start_new_streamed_script 38 {args} 17@ 9@ 10@ 11@ 12@ 3.5 
stream_script 38
13@ = add_attractor 2247.8689 {y} 1624.467 {z} 1007.367 {angle} 152.0 {_p5} -152.0 {sequence} 4@
14@ = add_attractor 2247.3491 {y} 1583.257 {z} 1007.366 {angle} 358.0 {_p5} -358.0 {sequence} 4@
15@ = add_attractor 2164.6431 {y} 1582.151 {z} 1007.359 {angle} 13.0 {_p5} -13.0 {sequence} 4@
18@ = create_char_at_attractor PedType.Cop {modelId} 124 {taskId} 13@ {attractor} 1502
19@ = create_char_at_attractor PedType.Cop {modelId} 125 {taskId} 14@ {attractor} 1502
20@ = create_char_at_attractor PedType.Cop {modelId} 126 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
start_new_streamed_script 39 {args} 19@ 
start_new_streamed_script 39 {args} 20@ 
stream_script 39

:CASAMB_1474
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_1779
5@ = add_attractor 1141.2061 {y} -5.9198 {z} 999.6719 {angle} 81.0 {_p5} -81.0 {sequence} 2@
6@ = add_attractor 1141.8311 {y} -8.994 {z} 999.6797 {angle} 94.0 {_p5} -94.0 {sequence} 2@
7@ = add_attractor 1141.161 {y} 1.224 {z} 999.6719 {angle} 110.0 {_p5} -110.0 {sequence} 2@
8@ = add_attractor 1141.1591 {y} -3.9906 {z} 999.6797 {angle} 93.0 {_p5} -93.0 {sequence} 3@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 5@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 5@ 6@ 7@ 8@ 2.0 
stream_script 38
9@ = -1
10@ = -1
11@ = -1
12@ = -1
13@ = add_attractor 1143.677 {y} 6.4929 {z} 999.6797 {angle} 71.0 {_p5} -71.0 {sequence} 4@
18@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 13@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
stream_script 39
14@ = -1
15@ = -1

:CASAMB_1779
if 
  is_player_playing $player1
goto_if_false @CASAMB_3006
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @CASAMB_1835
goto @CASAMB_3017

:CASAMB_1835
if 
  is_char_shooting $scplayer
goto_if_false @CASAMB_1865
$iSetCasinoPanic = 1
$iBouncerAction = 1

:CASAMB_1865
0@ = get_total_number_of_peds_killed_by_player $player1
if 
  0@ > 0
goto_if_false @CASAMB_1898
$iBouncerAction = 1

:CASAMB_1898
if 
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @CASAMB_1924
$iBouncerAction = 1

:CASAMB_1924
0@ = 0

:CASAMB_1931
if 
  not is_char_dead 16@(0@,11i)
goto_if_false @CASAMB_2039
if and
  is_player_targetting_char $player1 {handle} 16@(0@,11i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @CASAMB_2002
$iSetCasinoPanic = 1
$iBouncerAction = 1
goto @CASAMB_2039

:CASAMB_2002
if 
  has_char_been_damaged_by_char 16@(0@,11i) {handle} $scplayer
goto_if_false @CASAMB_2039
$iSetCasinoPanic = 1
$iBouncerAction = 1

:CASAMB_2039
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_1931
if 
  $iSetCasinoPanic == 1
goto_if_false @CASAMB_2144
$iBouncerAction = 1
0@ = get_random_char_in_sphere_no_brain 27@ {y} 28@ {z} 29@ {radius} 50.0
if 
  0@ > -1
goto_if_false @CASAMB_2144
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:CASAMB_2144
if 
  $iBouncerAction == 1
goto_if_false @CASAMB_3006
if and
  is_char_dead 18@
  13@ <> -1
goto_if_false @CASAMB_2480
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2239
27@ = 1966.5389
28@ = 984.8237
29@ = 993.4688

:CASAMB_2239
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2293
27@ = 2247.8689
28@ = 1624.467
29@ = 1007.367

:CASAMB_2293
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "CASINO2"
goto_if_false @CASAMB_2348
27@ = 1143.677
28@ = 6.4929
29@ = 999.6797

:CASAMB_2348
if and
  not locate_char_any_means_3d $scplayer {x} 27@ {y} 28@ {z} 29@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 27@ {y} 28@ {z} 29@ {radius} 3.0
goto_if_false @CASAMB_2480
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2452
18@ = create_char_at_attractor PedType.CivMale {modelId} 124 {taskId} 13@ {attractor} 1502
goto @CASAMB_2468

:CASAMB_2452
18@ = create_char_at_attractor PedType.Cop {modelId} 163 {taskId} 13@ {attractor} 1502

:CASAMB_2468
start_new_streamed_script 39 {args} 18@ 
stream_script 39

:CASAMB_2480
if and
  is_char_dead 19@
  14@ <> -1
goto_if_false @CASAMB_2743
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2557
27@ = 1932.395
28@ = 1033.886
29@ = 993.4688

:CASAMB_2557
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2611
27@ = 2247.3491
28@ = 1583.257
29@ = 1007.366

:CASAMB_2611
if and
  not locate_char_any_means_3d $scplayer {x} 27@ {y} 28@ {z} 29@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 27@ {y} 28@ {z} 29@ {radius} 3.0
goto_if_false @CASAMB_2743
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2715
19@ = create_char_at_attractor PedType.Cop {modelId} 125 {taskId} 14@ {attractor} 1502
goto @CASAMB_2731

:CASAMB_2715
19@ = create_char_at_attractor PedType.Cop {modelId} 164 {taskId} 14@ {attractor} 1502

:CASAMB_2731
start_new_streamed_script 39 {args} 19@ 
stream_script 39

:CASAMB_2743
if and
  is_char_dead 20@
  15@ <> -1
goto_if_false @CASAMB_3006
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "TRICAS"
goto_if_false @CASAMB_2820
27@ = 1959.094
28@ = 993.7656
29@ = 991.4766

:CASAMB_2820
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2874
27@ = 2164.6431
28@ = 1582.151
29@ = 1007.359

:CASAMB_2874
if and
  not locate_char_any_means_3d $scplayer {x} 27@ {y} 28@ {z} 29@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 27@ {y} 28@ {z} 29@ {radius} 3.0
goto_if_false @CASAMB_3006
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "MAFCAS"
goto_if_false @CASAMB_2978
20@ = create_char_at_attractor PedType.CivMale {modelId} 126 {taskId} 15@ {attractor} 1502
goto @CASAMB_2994

:CASAMB_2978
20@ = create_char_at_attractor PedType.Cop {modelId} 164 {taskId} 15@ {attractor} 1502

:CASAMB_2994
start_new_streamed_script 39 {args} 20@ 
stream_script 39

:CASAMB_3006
wait 0
goto @CASAMB_1779

:CASAMB_3017
0@ = 0

:CASAMB_3024
mark_char_as_no_longer_needed 16@(0@,11i)
delete_char 16@(0@,11i)
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_3024
0@ = 0

:CASAMB_3070
if 
  5@(0@,11i) <> -1
goto_if_false @CASAMB_3101
clear_attractor 5@(0@,11i)

:CASAMB_3101
0@ += 1
  0@ >= 11
goto_if_false @CASAMB_3070
remove_animation "BAR"
mark_model_as_no_longer_needed 214
mark_model_as_no_longer_needed 263
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
mark_model_as_no_longer_needed 124
mark_model_as_no_longer_needed 125
mark_model_as_no_longer_needed 126
clear_sequence_task 2@
clear_sequence_task 3@
clear_sequence_task 4@
terminate_this_script 
terminate_this_script 

//-------------External script 28 (BAR_AMBIENCE)---------------

:BAR
script_name 'BAR'
if and
  $onmission == 0
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @BAR_50
$iSetBarPanic = 0
$iSwitchOffDanceMiniGame = 0

:BAR_50
0@ = 0
if 
  0@ > 0
goto_if_false @BAR_99
$iDanceGirlfriend = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BAR_99
1@ = 1
2@ = 0
0@ = get_int_stat StatId.LatestDanceScore
if 
  0@ >= 7500
goto_if_false @BAR_154
15@ = 3
goto @BAR_161

:BAR_154
15@ = 0

:BAR_161
gosub @BAR_2146
4@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_IN" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BARSERVE_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 4@
5@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_BOTTLE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 5@
if 
  is_player_playing $player1
goto_if_false @BAR_944
v$txtEntryExit = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_534
6@ = add_attractor 502.2242 {y} -19.8799 {z} 999.6797 {angle} 107.0 {_p5} -107.0 {sequence} 4@
7@ = add_attractor 502.0665 {y} -24.1488 {z} 999.6797 {angle} 94.0 {_p5} -94.0 {sequence} 4@
8@ = add_attractor 502.0757 {y} -17.2798 {z} 999.6719 {angle} 85.0 {_p5} -85.0 {sequence} 4@
9@ = add_attractor 502.3116 {y} -19.8236 {z} 999.6797 {angle} 278.6 {_p5} -278.6 {sequence} 5@
10@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 6@ {attractor} 1466
start_new_streamed_script 38 {args} 10@ 6@ 7@ 8@ 9@ 2.5 20.0 
stream_script 38

:BAR_534
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR2"
goto_if_false @BAR_738
6@ = add_attractor 497.9362 {y} -78.0533 {z} 997.7651 {angle} 1.0 {_p5} -1.0 {sequence} 4@
7@ = add_attractor 493.9349 {y} -77.9233 {z} 997.7651 {angle} 100.5 {_p5} -100.5 {sequence} 4@
8@ = add_attractor 501.2002 {y} -77.739 {z} 997.7651 {angle} 19.0 {_p5} -19.0 {sequence} 4@
9@ = add_attractor 496.5553 {y} -78.7725 {z} 997.7651 {angle} 194.5 {_p5} -194.5 {sequence} 5@
10@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 6@ {attractor} 1466
start_new_streamed_script 38 {args} 10@ 6@ 7@ 8@ 9@ 2.5 20.0 
stream_script 38

:BAR_738
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "UFOBAR"
goto_if_false @BAR_944
6@ = add_attractor -223.2594 {y} 1405.634 {z} 26.7656 {angle} 86.9 {_p5} 262.0 {sequence} 4@
7@ = add_attractor -223.26 {y} 1402.984 {z} 26.7656 {angle} 145.4 {_p5} 327.0 {sequence} 4@
8@ = add_attractor -223.2956 {y} 1407.486 {z} 26.7656 {angle} 26.0 {_p5} 184.0 {sequence} 4@
9@ = add_attractor -222.6826 {y} 1405.787 {z} 26.7656 {angle} 275.7 {_p5} 97.0 {sequence} 5@
10@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 6@ {attractor} 1466
start_new_streamed_script 38 {args} 10@ 6@ 7@ 8@ 9@ 2.5 20.0 
stream_script 38

:BAR_944
wait 0
if 
  is_player_playing $player1
goto_if_false @BAR_2139
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @BAR_1004
goto @BAR_2225

:BAR_1004
if and
  $iSwitchOffDanceMiniGame == 0
  $onmission == 0
  2@ == 0
goto_if_false @BAR_1462
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_1455
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 488.0048 {y} -14.0754 {z} 999.6797 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @BAR_1455
clear_help 
clear_prints 
if 
  is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @BAR_1286
0@ = get_int_stat StatId.LatestDanceScore
if 
  0@ >= 3500
goto_if_false @BAR_1169
3@ = 3
goto @BAR_1244

:BAR_1169
if 
  0@ >= 6000
goto_if_false @BAR_1202
3@ = 4
goto @BAR_1244

:BAR_1202
if 
  0@ >= 7500
goto_if_false @BAR_1237
3@ = generate_random_int_in_range 1 {max} 5
goto @BAR_1244

:BAR_1237
3@ = 2

:BAR_1244
start_new_streamed_script 35 {args} 488.0048 -14.0754 999.6797 180.0 3@ $iDanceGirlfriend 
stream_script 35
goto @BAR_1441

:BAR_1286
switch_start 15@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BAR_1407 {caseNum1} 0 {caseLabel1} @BAR_1349 {caseNum2} 1 {caseLabel2} @BAR_1363 {caseNum3} 2 {caseLabel3} @BAR_1377 {caseNum4} 3 {caseLabel4} @BAR_1391 {caseNum5} -1 {caseLabel5} @BAR_1407 {caseNum6} -1 {caseLabel6} @BAR_1407 {caseNum7} -1 {caseLabel7} @BAR_1407

:BAR_1349
3@ = 2
goto @BAR_1407

:BAR_1363
3@ = 3
goto @BAR_1407

:BAR_1377
3@ = 4
goto @BAR_1407

:BAR_1391
3@ = generate_random_int_in_range 1 {max} 5
goto @BAR_1407

:BAR_1407
start_new_streamed_script 35 {args} 488.0048 -14.0754 999.6797 180.0 3@ 0 
stream_script 35

:BAR_1441
2@ = 1
16@ = 0

:BAR_1455
goto @BAR_1884

:BAR_1462
if and
  $iSwitchOffDanceMiniGame == 0
  $onmission == 0
  2@ == 1
goto_if_false @BAR_1884
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BAR_1884
if 
  not locate_char_on_foot_3d $scplayer {x} 488.0048 {y} -14.0754 {z} 999.6797 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
goto_if_false @BAR_1578
2@ = 0
goto @BAR_1884

:BAR_1578
if and
  not is_minigame_in_progress 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
  16@ == 0
goto_if_false @BAR_1884
switch_start 15@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BAR_1884 {caseNum1} 0 {caseLabel1} @BAR_1668 {caseNum2} 1 {caseLabel2} @BAR_1740 {caseNum3} 2 {caseLabel3} @BAR_1812 {caseNum4} -1 {caseLabel4} @BAR_1884 {caseNum5} -1 {caseLabel5} @BAR_1884 {caseNum6} -1 {caseLabel6} @BAR_1884 {caseNum7} -1 {caseLabel7} @BAR_1884

:BAR_1668
if 
  $iDanceScore >= 3500
goto_if_false @BAR_1733
print_big 'DNC_P1' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DNC_P2' {time} 10000 {flag} 1
16@ = 1
15@ += 1

:BAR_1733
goto @BAR_1884

:BAR_1740
if 
  $iDanceScore >= 6000
goto_if_false @BAR_1805
print_big 'DNC_P1' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DNC_P2' {time} 10000 {flag} 1
16@ = 1
15@ += 1

:BAR_1805
goto @BAR_1884

:BAR_1812
if 
  $iDanceScore >= 7500
goto_if_false @BAR_1877
print_big 'DNC_P1' {time} 5000 {style} TextStyle.MiddleSmaller
print_now 'DNC_P3' {time} 10000 {flag} 1
16@ = 1
15@ += 1

:BAR_1877
goto @BAR_1884

:BAR_1884
if 
  is_char_shooting $scplayer
goto_if_false @BAR_1907
$iSetBarPanic = 1

:BAR_1907
if 
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @BAR_1933
$iSetBarPanic = 1

:BAR_1933
0@ = 0

:BAR_1940
if 
  not is_char_dead 10@(0@,2i)
goto_if_false @BAR_2034
if and
  is_player_targetting_char $player1 {handle} 10@(0@,2i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @BAR_2004
$iSetBarPanic = 1
goto @BAR_2034

:BAR_2004
if 
  has_char_been_damaged_by_char 10@(0@,2i) {handle} $scplayer
goto_if_false @BAR_2034
$iSetBarPanic = 1

:BAR_2034
0@ += 1
  0@ >= 2
goto_if_false @BAR_1940
if 
  $iSetBarPanic == 1
goto_if_false @BAR_2139
$iSwitchOffDanceMiniGame = 1
0@ = get_random_char_in_sphere_no_brain 12@ {y} 13@ {z} 14@ {radius} 50.0
if 
  0@ > -1
goto_if_false @BAR_2139
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:BAR_2139
goto @BAR_944

:BAR_2146
request_model 172
request_animation "BAR"
request_animation "DANCING"
if and
  has_model_loaded 172
  has_animation_loaded "BAR"
  has_animation_loaded "DANCING"
goto_if_false @BAR_2212
return 
goto @BAR_2223

:BAR_2212
wait 0
goto @BAR_2146

:BAR_2223
return 

:BAR_2225
0@ = 0

:BAR_2232
mark_char_as_no_longer_needed 10@(0@,2i)
delete_char 10@(0@,2i)
0@ += 1
  0@ >= 2
goto_if_false @BAR_2232
0@ = 0

:BAR_2278
if 
  6@(0@,4i) <> -1
goto_if_false @BAR_2309
clear_attractor 6@(0@,4i)

:BAR_2309
0@ += 1
  0@ >= 4
goto_if_false @BAR_2278
mark_model_as_no_longer_needed 172
clear_sequence_task 4@
clear_sequence_task 5@
remove_animation "BAR"
remove_animation "DANCING"
terminate_this_script 
terminate_this_script 

//-------------External script 29 (FOODBRAINS)---------------

:PSHOP
script_name 'PSHOP'
$iSetPizzaPanic = 0
switch_start 0@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PSHOP_552 {caseNum1} 0 {caseLabel1} @PSHOP_81 {caseNum2} 1 {caseLabel2} @PSHOP_238 {caseNum3} 2 {caseLabel3} @PSHOP_395 {caseNum4} -1 {caseLabel4} @PSHOP_552 {caseNum5} -1 {caseLabel5} @PSHOP_552 {caseNum6} -1 {caseLabel6} @PSHOP_552 {caseNum7} -1 {caseLabel7} @PSHOP_552

:PSHOP_81
3@ = 377.3
4@ = -117.182
5@ = 1000.637
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 155
request_model 11@
request_model #PIZZAHIGH
request_model #CJ_PIZZA_2

:PSHOP_152
if 
  not has_model_loaded 11@
goto_if_false @PSHOP_179
wait 0
goto @PSHOP_152

:PSHOP_179
if 
  not has_model_loaded #PIZZAHIGH
goto_if_false @PSHOP_205
wait 0
goto @PSHOP_179

:PSHOP_205
if 
  not has_model_loaded #CJ_PIZZA_2
goto_if_false @PSHOP_231
wait 0
goto @PSHOP_205

:PSHOP_231
goto @PSHOP_552

:PSHOP_238
3@ = 371.5365
4@ = -4.4935
5@ = 1000.859
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 167
request_model 11@
request_model #BURGERHIGH
request_model #CJ_BURG_2

:PSHOP_309
if 
  not has_model_loaded 11@
goto_if_false @PSHOP_336
wait 0
goto @PSHOP_309

:PSHOP_336
if 
  not has_model_loaded #BURGERHIGH
goto_if_false @PSHOP_362
wait 0
goto @PSHOP_336

:PSHOP_362
if 
  not has_model_loaded #CJ_BURG_2
goto_if_false @PSHOP_388
wait 0
goto @PSHOP_362

:PSHOP_388
goto @PSHOP_552

:PSHOP_395
3@ = 378.4146
4@ = -65.8567
5@ = 1000.508
6@ = 180.0
7@ = 360.0
set_lvar_int_to_constant 11@ = 205
request_model 11@
request_model #BURGERHIGH
request_model #CJ_BURG_2

:PSHOP_466
if 
  not has_model_loaded 11@
goto_if_false @PSHOP_493
wait 0
goto @PSHOP_466

:PSHOP_493
if 
  not has_model_loaded #BURGERHIGH
goto_if_false @PSHOP_519
wait 0
goto @PSHOP_493

:PSHOP_519
if 
  not has_model_loaded #CJ_BURG_2
goto_if_false @PSHOP_545
wait 0
goto @PSHOP_519

:PSHOP_545
goto @PSHOP_552

:PSHOP_552
8@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_stand_still -1 {time} -2
close_sequence_task 8@
9@ = add_attractor 3@ {y} 4@ {z} 5@ {angle} 6@ {_p5} 7@ {sequence} 8@
10@ = create_char_at_attractor PedType.CivMale {modelId} 11@ {taskId} 9@ {attractor} 1466
start_new_streamed_script 36 {args} 10@ 9@ 
stream_script 36

:PSHOP_628
if 
  is_player_playing $player1
goto_if_false @PSHOP_873
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @PSHOP_684
gosub @PSHOP_884

:PSHOP_684
if 
  is_char_shooting $scplayer
goto_if_false @PSHOP_707
$iSetPizzaPanic = 1

:PSHOP_707
if 
  not is_char_dead 10@
goto_if_false @PSHOP_782
if 
  is_player_targetting_char $player1 {handle} 10@
goto_if_false @PSHOP_756
$iSetPizzaPanic = 1
goto @PSHOP_782

:PSHOP_756
if 
  has_char_been_damaged_by_char 10@ {handle} $scplayer
goto_if_false @PSHOP_782
$iSetPizzaPanic = 1

:PSHOP_782
if 
  $iSetPizzaPanic == 1
goto_if_false @PSHOP_873
3@, 4@, 5@ = get_char_coordinates $scplayer
1@ = get_random_char_in_sphere_no_brain 3@ {y} 4@ {z} 5@ {radius} 20.0
if 
  1@ > -1
goto_if_false @PSHOP_873
2@ += 1
start_new_streamed_script 37 {args} 1@ 2@ 
stream_script 37

:PSHOP_873
wait 0
goto @PSHOP_628

:PSHOP_884
$iSetPizzaPanic = 0
mark_char_as_no_longer_needed 10@
mark_model_as_no_longer_needed 155
mark_model_as_no_longer_needed 167
mark_model_as_no_longer_needed 205
mark_model_as_no_longer_needed #PIZZAHIGH
mark_model_as_no_longer_needed #BURGERHIGH
mark_model_as_no_longer_needed #CJ_PIZZA_2
mark_model_as_no_longer_needed #CJ_BURG_2
delete_char 10@
clear_attractor 9@
clear_sequence_task 8@
terminate_this_script 
terminate_this_script 

//-------------External script 30 (OTB_AMBIENCE)---------------

:OTBSHP
script_name 'OTBSHP'
if 
  $onmission == 0
goto_if_false @OTBSHP_36
$iSetOTBPanic = 0

:OTBSHP_36
1@ = 1
request_model 11
request_model 172

:OTBSHP_52
if 
  not has_model_loaded 172
goto_if_false @OTBSHP_79
wait 0
goto @OTBSHP_52

:OTBSHP_79
if 
  not has_model_loaded 11
goto_if_false @OTBSHP_105
wait 0
goto @OTBSHP_79

:OTBSHP_105
2@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_stand_still -1 {time} -2
close_sequence_task 2@
3@ = add_attractor 820.3698 {y} -0.3935 {z} 1003.18 {angle} 270.0 {_p5} 90.0 {sequence} 2@
4@ = add_attractor 820.133 {y} 4.2015 {z} 1003.18 {angle} 270.0 {_p5} 90.0 {sequence} 2@
5@ = add_attractor 820.3185 {y} 6.4021 {z} 1003.18 {angle} 270.0 {_p5} 90.0 {sequence} 2@
6@ = add_attractor 820.0 {y} 2.0 {z} 1003.0 {angle} 270.0 {_p5} 90.0 {sequence} 2@
7@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 3@ {attractor} 1466
8@ = create_char_at_attractor PedType.CivFemale {modelId} 11 {taskId} 4@ {attractor} 1466
9@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 5@ {attractor} 1466
10@ = create_char_at_attractor PedType.CivFemale {modelId} 11 {taskId} 6@ {attractor} 1466
start_new_streamed_script 40 {args} 7@ 3@ 
start_new_streamed_script 40 {args} 8@ 4@ 
start_new_streamed_script 40 {args} 9@ 5@ 
start_new_streamed_script 40 {args} 10@ 6@ 
stream_script 40

:OTBSHP_369
if 
  is_player_playing $player1
goto_if_false @OTBSHP_655
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @OTBSHP_425
goto @OTBSHP_666

:OTBSHP_425
if or
  is_char_shooting $scplayer
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @OTBSHP_456
$iSetOTBPanic = 1

:OTBSHP_456
0@ = 0

:OTBSHP_463
if 
  not is_char_dead 7@(0@,4i)
goto_if_false @OTBSHP_557
if and
  is_player_targetting_char $player1 {handle} 7@(0@,4i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @OTBSHP_527
$iSetOTBPanic = 1
goto @OTBSHP_557

:OTBSHP_527
if 
  has_char_been_damaged_by_char 7@(0@,4i) {handle} $scplayer
goto_if_false @OTBSHP_557
$iSetOTBPanic = 1

:OTBSHP_557
0@ += 1
  0@ >= 4
goto_if_false @OTBSHP_463
if 
  $iSetOTBPanic == 1
goto_if_false @OTBSHP_655
0@ = get_random_char_in_sphere_no_brain 11@ {y} 12@ {z} 13@ {radius} 20.0
if 
  0@ > -1
goto_if_false @OTBSHP_655
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:OTBSHP_655
wait 0
goto @OTBSHP_369

:OTBSHP_666
0@ = 0

:OTBSHP_673
mark_char_as_no_longer_needed 7@(0@,4i)
delete_char 7@(0@,4i)
clear_attractor 3@(0@,4i)
0@ += 1
  0@ >= 4
goto_if_false @OTBSHP_673
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 11
clear_sequence_task 2@
terminate_this_script 
terminate_this_script 

//-------------External script 31 (STRIP_AMBIENCE)---------------

:STRIP
script_name 'STRIP'
if 
  $onmission == 0
goto_if_false @STRIP_43
$iSetSTRIPPanic = 0
$iBouncerAction = 0

:STRIP_43
0@ = 0
if 
  0@ == 1
goto_if_false @STRIP_114
$iStripperPed = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
$iPlayerMoney = create_object 0 {x} 0.0 {y} 0.0 {z} 0.0

:STRIP_114
1@ = 1
$iThrowMoneyState = 0
$iPrintStripperHelp = 0
gosub @STRIP_2509
7@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_IN" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim -1 {animationName} "BARSERVE_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 10000
close_sequence_task 7@
8@ = open_sequence_task 
task_play_anim -1 {animationName} "BARSERVE_BOTTLE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task 8@
9@ = open_sequence_task 
task_wander_standard -1
close_sequence_task 9@
if 
  is_player_playing $player1
goto_if_false @STRIP_881
reset_num_of_models_killed_by_player $player1
v$txtString = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_650
10@ = add_attractor 1214.859 {y} -15.4637 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 7@
11@ = add_attractor 1217.084 {y} -15.4657 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 7@
12@ = add_attractor 1213.234 {y} -15.4087 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 7@
13@ = add_attractor 1214.085 {y} -15.4395 {z} 999.9219 {angle} 0.0 {_p5} 180.0 {sequence} 8@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 10@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 10@ 11@ 12@ 13@ 2.5 15.0 1 
stream_script 38
14@ = add_attractor 1220.042 {y} -15.3365 {z} 999.9219 {angle} 341.7 {_p5} -341.7 {sequence} 9@
15@ = add_attractor 1222.0081 {y} 4.4324 {z} 999.9219 {angle} 93.3 {_p5} -93.3 {sequence} 9@
17@ = create_char_at_attractor PedType.CivMale {modelId} 163 {taskId} 14@ {attractor} 1502
18@ = create_char_at_attractor PedType.CivMale {modelId} 164 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 17@ 
start_new_streamed_script 39 {args} 18@ 
stream_script 39

:STRIP_650
if 
  is_var_text_label16_equal_to_text_label v$txtString == "STRIP2"
goto_if_false @STRIP_881
10@ = -1
11@ = add_attractor 1206.2 {y} -30.6012 {z} 999.9531 {angle} 180.0 {_p5} 0.0 {sequence} 7@
12@ = -1
13@ = add_attractor 1206.2 {y} -29.1414 {z} 999.9531 {angle} 270.0 {_p5} 0.0 {sequence} 8@
16@ = create_char_at_attractor PedType.CivFemale {modelId} 172 {taskId} 11@ {attractor} 1466
start_new_streamed_script 38 {args} 16@ 11@ 11@ 11@ 13@ 1.5 15.0 1 
stream_script 38
14@ = add_attractor 1216.871 {y} -24.1246 {z} 999.9531 {angle} 146.8 {_p5} -146.8 {sequence} 9@
15@ = -1
17@ = create_char_at_attractor PedType.CivMale {modelId} 163 {taskId} 14@ {attractor} 1502
18@ = -1
start_new_streamed_script 39 {args} 17@ 
stream_script 39

:STRIP_881
wait 0
if 
  is_player_playing $player1
goto_if_false @STRIP_2502
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @STRIP_941
goto @STRIP_2586

:STRIP_941
if 
  4@ > 0
goto_if_false @STRIP_973
gosub @STRIP_2766
goto @STRIP_881

:STRIP_973
if 
  $iThrowMoneyState <> 0
goto_if_false @STRIP_1042
if 
  not is_char_dead $iStripperPed
goto_if_false @STRIP_1021
gosub @STRIP_5426
goto @STRIP_1042

:STRIP_1021
set_player_control $player1 {state} True
$iThrowMoneyState = 0
$iStripperPed = -1

:STRIP_1042
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_1326
if and
  $iSetSTRIPPanic == 0
  $iBouncerAction == 0
goto_if_false @STRIP_1326
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 1204.85 {y} 11.8 {z} 999.9219 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @STRIP_1312
if 
  is_score_greater $player1 {money} 99
goto_if_false @STRIP_1298
if 
  2@ == 0
goto_if_false @STRIP_1291
3@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @STRIP_1291
add_score $player1 {money} -100
increment_float_stat StatId.StripClubBudget {value} 100.0
2@ = 1
3@ = 0
19@ = 1204.326
20@ = 17.709
21@ = 998.925
22@ = 0.0
do_fade 500 {direction} Fade.Out
4@ = 1
gosub @STRIP_2766

:STRIP_1291
goto @STRIP_1305

:STRIP_1298
3@ = 2

:STRIP_1305
goto @STRIP_1326

:STRIP_1312
3@ = 0
2@ = 0

:STRIP_1326
if 
  is_var_text_label16_equal_to_text_label v$txtString == "STRIP2"
goto_if_false @STRIP_1624
if and
  $iSetSTRIPPanic == 0
  $iBouncerAction == 0
goto_if_false @STRIP_1624
if 
  locate_stopped_char_on_foot_3d $scplayer {x} 1207.59 {y} -40.646 {z} 999.9531 {xRadius} 1.0 {yRadius} 1.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @STRIP_1610
if 
  is_score_greater $player1 {money} 99
goto_if_false @STRIP_1596
if 
  2@ == 0
goto_if_false @STRIP_1589
3@ = 1
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @STRIP_1589
add_score $player1 {money} -100
22@ = get_float_stat StatId.StripClubBudget
22@ += 100.0
22@ = get_float_stat StatId.StripClubBudget
2@ = 1
3@ = 0
19@ = 1207.366
20@ = -43.595
21@ = 998.925
22@ = 0.0
do_fade 500 {direction} Fade.Out
4@ = 1
gosub @STRIP_2766

:STRIP_1589
goto @STRIP_1603

:STRIP_1596
3@ = 2

:STRIP_1603
goto @STRIP_1624

:STRIP_1610
3@ = 0
2@ = 0

:STRIP_1624
if and
  $iSetSTRIPPanic == 0
  $iBouncerAction == 0
goto_if_false @STRIP_1784
if 
  3@ == 1
goto_if_false @STRIP_1685
print_help_forever 'STR_01'
goto @STRIP_1777

:STRIP_1685
if 
  3@ == 2
goto_if_false @STRIP_1721
print_help_forever 'STR_03'
goto @STRIP_1777

:STRIP_1721
if 
  $iPrintStripperHelp > 0
goto_if_false @STRIP_1757
print_help_forever 'STR_00'
goto @STRIP_1777

:STRIP_1757
if 
  4@ == 0
goto_if_false @STRIP_1777
clear_help 

:STRIP_1777
goto @STRIP_1786

:STRIP_1784
clear_help 

:STRIP_1786
if 
  is_char_shooting $scplayer
goto_if_false @STRIP_1816
$iSetSTRIPPanic = 1
$iBouncerAction = 1

:STRIP_1816
if 
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @STRIP_1849
$iSetSTRIPPanic = 1
$iBouncerAction = 1

:STRIP_1849
0@ = get_total_number_of_peds_killed_by_player $player1
if 
  0@ > 0
goto_if_false @STRIP_1882
$iBouncerAction = 1

:STRIP_1882
0@ = 0

:STRIP_1889
if 
  not is_char_dead 16@(0@,3i)
goto_if_false @STRIP_1997
if and
  is_player_targetting_char $player1 {handle} 16@(0@,3i)
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @STRIP_1960
$iSetSTRIPPanic = 1
$iBouncerAction = 1
goto @STRIP_1997

:STRIP_1960
if 
  has_char_been_damaged_by_char 16@(0@,3i) {handle} $scplayer
goto_if_false @STRIP_1997
$iSetSTRIPPanic = 1
$iBouncerAction = 1

:STRIP_1997
0@ += 1
  0@ >= 3
goto_if_false @STRIP_1889
if 
  $iSetSTRIPPanic == 1
goto_if_false @STRIP_2102
$iBouncerAction = 1
0@ = get_random_char_in_sphere_no_brain 19@ {y} 20@ {z} 21@ {radius} 50.0
if 
  0@ > -1
goto_if_false @STRIP_2102
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:STRIP_2102
if 
  $iBouncerAction == 1
goto_if_false @STRIP_2502
if and
  is_char_dead 17@
  14@ <> -1
goto_if_false @STRIP_2338
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_2198
19@ = 1220.042
20@ = -15.3365
21@ = 999.9219

:STRIP_2198
if 
  is_var_text_label16_equal_to_text_label v$txtString == "STRIP2"
goto_if_false @STRIP_2252
19@ = 1216.871
20@ = -24.1246
21@ = 999.9531

:STRIP_2252
if and
  not locate_char_any_means_3d $scplayer {x} 19@ {y} 20@ {z} 21@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 19@ {y} 20@ {z} 21@ {radius} 3.0
goto_if_false @STRIP_2338
17@ = create_char_at_attractor PedType.CivMale {modelId} 163 {taskId} 14@ {attractor} 1502
start_new_streamed_script 39 {args} 17@ 
stream_script 39

:STRIP_2338
if and
  is_char_dead 18@
  15@ <> -1
goto_if_false @STRIP_2502
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_2416
19@ = 1222.0081
20@ = 4.4324
21@ = 999.9219

:STRIP_2416
if and
  not locate_char_any_means_3d $scplayer {x} 19@ {y} 20@ {z} 21@ {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
  not is_point_on_screen 19@ {y} 20@ {z} 21@ {radius} 3.0
goto_if_false @STRIP_2502
18@ = create_char_at_attractor PedType.CivMale {modelId} 164 {taskId} 15@ {attractor} 1502
start_new_streamed_script 39 {args} 18@ 
stream_script 39

:STRIP_2502
goto @STRIP_881

:STRIP_2509
request_model 163
request_model 164
request_model 172
request_animation "BAR"
if and
  has_model_loaded 163
  has_model_loaded 164
  has_model_loaded 172
  has_animation_loaded "BAR"
goto_if_false @STRIP_2573
return 
goto @STRIP_2584

:STRIP_2573
wait 0
goto @STRIP_2509

:STRIP_2584
return 

:STRIP_2586
0@ = 0

:STRIP_2593
mark_char_as_no_longer_needed 16@(0@,3i)
delete_char 16@(0@,3i)
0@ += 1
  0@ >= 3
goto_if_false @STRIP_2593
0@ = 0

:STRIP_2639
if 
  10@(0@,6i) <> -1
goto_if_false @STRIP_2670
clear_attractor 10@(0@,6i)

:STRIP_2670
0@ += 1
  0@ >= 6
goto_if_false @STRIP_2639
mark_model_as_no_longer_needed 172
mark_model_as_no_longer_needed 163
mark_model_as_no_longer_needed 164
clear_sequence_task 7@
clear_sequence_task 8@
remove_animation "STRIP"
remove_animation "BAR"
$iBouncerAction = 0
clear_help 
if 
  is_player_playing $player1
goto_if_false @STRIP_2764
set_player_control $player1 {state} True

:STRIP_2764
terminate_this_script 

:STRIP_2766
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @STRIP_3923 {caseNum1} 1 {caseLabel1} @STRIP_2829 {caseNum2} 2 {caseLabel2} @STRIP_3053 {caseNum3} 3 {caseLabel3} @STRIP_3194 {caseNum4} 4 {caseLabel4} @STRIP_3320 {caseNum5} 5 {caseLabel5} @STRIP_3653 {caseNum6} 6 {caseLabel6} @STRIP_3887 {caseNum7} -1 {caseLabel7} @STRIP_3923

:STRIP_2829
if 
  not get_fading_status 
goto_if_false @STRIP_3046
clear_help 
set_player_control $player1 {state} False
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
display_hud False
display_radar False
clear_char_tasks_immediately $scplayer
set_char_collision $scplayer {state} False
set_char_coordinates $scplayer {x} 19@ {y} 20@ {z} 21@
set_char_heading $scplayer {heading} 22@
set_camera_in_front_of_player 
if 
  $iLapDancesWatched == 0
goto_if_false @STRIP_2956
set_lvar_int_to_constant 5@ = 256
set_lvar_text_label16 28@v = "LAPDAN1"
$iLapDancesWatched += 1
goto @STRIP_3039

:STRIP_2956
if 
  $iLapDancesWatched == 1
goto_if_false @STRIP_3010
set_lvar_int_to_constant 5@ = 257
set_lvar_text_label16 28@v = "LAPDAN2"
$iLapDancesWatched += 1
goto @STRIP_3039

:STRIP_3010
set_lvar_int_to_constant 5@ = 246
set_lvar_text_label16 28@v = "LAPDAN3"
$iLapDancesWatched = 0

:STRIP_3039
4@ += 1

:STRIP_3046
goto @STRIP_3923

:STRIP_3053
if 
  not has_animation_loaded 28@v
goto_if_false @STRIP_3081
request_animation 28@v
goto @STRIP_3187

:STRIP_3081
if 
  not has_model_loaded 5@
goto_if_false @STRIP_3109
request_model 5@
goto @STRIP_3187

:STRIP_3109
19@, 20@, 21@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} -1.0 {zOffset} -1.0
22@ = get_char_heading $scplayer
5@ = create_char PedType.CivFemale {modelId} 5@ {x} 19@ {y} 20@ {z} 21@
set_char_collision 5@ {state} False
set_char_heading 5@ {heading} 22@
4@ += 1

:STRIP_3187
goto @STRIP_3923

:STRIP_3194
task_play_anim_non_interruptable $scplayer {animationName} "LAPDAN_P" {animationFile} 28@v {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
if 
  not is_char_dead 5@
goto_if_false @STRIP_3290
task_play_anim_non_interruptable 5@ {animationName} "LAPDAN_D" {animationFile} 28@v {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
6@ = -1
gosub @STRIP_3925

:STRIP_3290
do_fade 1500 {direction} Fade.In
TIMERB = 0
clear_help 
4@ += 1
goto @STRIP_3923

:STRIP_3320
if 
  not get_fading_status 
goto_if_false @STRIP_3646
if 
  not is_char_dead 5@
goto_if_false @STRIP_3639
if 
  is_char_playing_anim $scplayer {animationName} "LAPDAN_P"
goto_if_false @STRIP_3432
23@ = get_char_anim_total_time $scplayer {animationName} "LAPDAN_P"
cset_lvar_int_to_lvar_float 25@ =# 23@
25@ -= 800
set_lvar_int_to_lvar_int 26@ = 25@
26@ -= 2200
goto @STRIP_3439

:STRIP_3432
25@ = 0

:STRIP_3439
if and
  TIMERB > 2500
  2600 > TIMERB
goto_if_false @STRIP_3499
if 
  not is_this_help_message_being_displayed 'STR_02'
goto_if_false @STRIP_3499
print_help 'STR_02'

:STRIP_3499
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 25@
goto_if_false @STRIP_3539
do_fade 500 {direction} Fade.Out
4@ += 1
goto @STRIP_3923

:STRIP_3539
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Circle
  TIMERA >= 500
  TIMERB > 2500
  is_int_lvar_greater_than_int_lvar 26@ > TIMERB
goto_if_false @STRIP_3594
gosub @STRIP_3925
TIMERA = 0

:STRIP_3594
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @STRIP_3632
do_fade 500 {direction} Fade.Out
4@ += 1
goto @STRIP_3923

:STRIP_3632
goto @STRIP_3646

:STRIP_3639
4@ += 1

:STRIP_3646
goto @STRIP_3923

:STRIP_3653
if 
  not get_fading_status 
goto_if_false @STRIP_3880
if 
  not is_char_dead 5@
goto_if_false @STRIP_3873
clear_help 
0@ = get_char_model 5@
mark_model_as_no_longer_needed 0@
remove_animation 28@v
delete_char 5@
clear_char_tasks_immediately $scplayer
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
display_hud True
display_radar True
clear_char_tasks_immediately $scplayer
set_char_collision $scplayer {state} True
set_camera_behind_player 
restore_camera_jumpcut 
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_3798
set_char_coordinates $scplayer {x} 1204.991 {y} 12.6603 {z} 999.9219
set_char_heading $scplayer {heading} 180.0

:STRIP_3798
if 
  is_var_text_label16_equal_to_text_label v$txtString == "STRIP2"
goto_if_false @STRIP_3852
set_char_coordinates $scplayer {x} 1207.59 {y} -40.646 {z} 999.9531
set_char_heading $scplayer {heading} 360.0

:STRIP_3852
do_fade 500 {direction} Fade.In
4@ += 1
goto @STRIP_3880

:STRIP_3873
4@ += 1

:STRIP_3880
goto @STRIP_3923

:STRIP_3887
if 
  not get_fading_status 
goto_if_false @STRIP_3916
set_player_control $player1 {state} True
4@ = 0
return 

:STRIP_3916
goto @STRIP_3923

:STRIP_3923
return 

:STRIP_3925
switch_start 6@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @STRIP_5173 {caseNum1} -1 {caseLabel1} @STRIP_3988 {caseNum2} 0 {caseLabel2} @STRIP_4225 {caseNum3} 1 {caseLabel3} @STRIP_4462 {caseNum4} 2 {caseLabel4} @STRIP_4699 {caseNum5} 3 {caseLabel5} @STRIP_4936 {caseNum6} -1 {caseLabel6} @STRIP_5417 {caseNum7} -1 {caseLabel7} @STRIP_5417

:STRIP_3988
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_4119
19@ = 1204.562
20@ = 15.6486
21@ = 1001.333
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.437
20@ = 16.5805
21@ = 1000.992
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.JumpCut
goto @STRIP_4218

:STRIP_4119
19@ = 1208.3199
20@ = -45.8672
21@ = 1001.066
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.847
20@ = -44.9985
21@ = 1000.919
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.JumpCut

:STRIP_4218
goto @STRIP_5417

:STRIP_4225
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_4356
19@ = 1202.6541
20@ = 16.7123
21@ = 1001.302
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1203.589
20@ = 16.9879
21@ = 1001.08
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_4455

:STRIP_4356
19@ = 1205.649
20@ = -44.5486
21@ = 1001.344
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1206.541
20@ = -44.2188
21@ = 1001.035
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_4455
goto @STRIP_5417

:STRIP_4462
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_4593
19@ = 1203.5291
20@ = 18.3118
21@ = 1001.391
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.11
20@ = 17.5609
21@ = 1001.078
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_4692

:STRIP_4593
19@ = 1206.434
20@ = -43.1812
21@ = 1001.705
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.0439
20@ = -43.796
21@ = 1001.204
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_4692
goto @STRIP_5417

:STRIP_4699
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_4830
19@ = 1204.712
20@ = 18.3221
21@ = 1000.941
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.4091
20@ = 17.369
21@ = 1000.95
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_4929

:STRIP_4830
19@ = 1207.472
20@ = -43.1042
21@ = 1001.054
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.325
20@ = -44.0841
21@ = 1000.919
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_4929
goto @STRIP_5417

:STRIP_4936
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_5067
19@ = 1205.856
20@ = 17.3141
21@ = 1002.26
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1205.0959
20@ = 17.1228
21@ = 1001.64
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_5166

:STRIP_5067
19@ = 1207.8459
20@ = -43.4954
21@ = 1001.964
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.427
20@ = -43.9585
21@ = 1001.184
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_5166
goto @STRIP_5417

:STRIP_5173
6@ = -1
if 
  is_var_text_label16_equal_to_text_label v$txtString == "LASTRIP"
goto_if_false @STRIP_5311
19@ = 1204.562
20@ = 15.6486
21@ = 1001.333
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1204.437
20@ = 16.5805
21@ = 1000.992
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation
goto @STRIP_5410

:STRIP_5311
19@ = 1207.978
20@ = -46.1248
21@ = 1001.215
set_fixed_camera_position 19@ {y} 20@ {z} 21@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
19@ = 1207.757
20@ = -45.1702
21@ = 1001.016
point_camera_at_point 19@ {y} 20@ {z} 21@ {switchStyle} SwitchType.Interpolation

:STRIP_5410
goto @STRIP_5417

:STRIP_5417
6@ += 1
return 

:STRIP_5426
switch_start $iThrowMoneyState {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @STRIP_5877 {caseNum1} 1 {caseLabel1} @STRIP_5489 {caseNum2} 2 {caseLabel2} @STRIP_5518 {caseNum3} 3 {caseLabel3} @STRIP_5598 {caseNum4} 4 {caseLabel4} @STRIP_5770 {caseNum5} -1 {caseLabel5} @STRIP_5877 {caseNum6} -1 {caseLabel6} @STRIP_5877 {caseNum7} -1 {caseLabel7} @STRIP_5877

:STRIP_5489
set_player_control $player1 {state} False
task_turn_char_to_face_char $scplayer {target} $iStripperPed
$iThrowMoneyState = 2
goto @STRIP_5877

:STRIP_5518
27@ = get_script_task_status $scplayer {taskId} 1593
if 
  is_int_lvar_equal_to_constant 27@ == 7
goto_if_false @STRIP_5591
task_play_anim_non_interruptable $scplayer {animationName} "PLY_CASH" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
$iThrowMoneyState = 3

:STRIP_5591
goto @STRIP_5877

:STRIP_5598
if 
  is_char_playing_anim $scplayer {animationName} "PLY_CASH"
goto_if_false @STRIP_5756
24@ = get_char_anim_current_time $scplayer {animationName} "PLY_CASH"
if and
  24@ >= 0.35
  1.0 > 24@
goto_if_false @STRIP_5749
19@, 20@, 21@ = get_offset_from_char_in_world_coords $iStripperPed {xOffset} 0.0 {yOffset} 0.5 {zOffset} -0.5
$iPlayerMoney = create_object_no_offset #MONEY {x} 19@ {y} 20@ {z} 21@
set_object_collision $iPlayerMoney {state} False
add_score $player1 {money} -20
increment_float_stat StatId.StripClubBudget {value} 20.0
$iThrowMoneyState = 4

:STRIP_5749
goto @STRIP_5763

:STRIP_5756
$iThrowMoneyState = 4

:STRIP_5763
goto @STRIP_5877

:STRIP_5770
if 
  is_char_playing_anim $scplayer {animationName} "PLY_CASH"
goto_if_false @STRIP_5856
24@ = get_char_anim_current_time $scplayer {animationName} "PLY_CASH"
if 
  24@ >= 1.0
goto_if_false @STRIP_5849
set_player_control $player1 {state} True
$iThrowMoneyState = 0

:STRIP_5849
goto @STRIP_5870

:STRIP_5856
set_player_control $player1 {state} True
$iThrowMoneyState = 0

:STRIP_5870
goto @STRIP_5877

:STRIP_5877
return 
terminate_this_script 

//-------------External script 32 (PLANES)---------------

:PLANES
script_name 'PLANES'
set_var_text_label s$pl_days[1] = 'PLA_9'
set_var_text_label s$pl_days[2] = 'PLA_3'
set_var_text_label s$pl_days[3] = 'PLA_4'
set_var_text_label s$pl_days[4] = 'PLA_5'
set_var_text_label s$pl_days[5] = 'PLA_6'
set_var_text_label s$pl_days[6] = 'PLA_7'
set_var_text_label s$pl_days[7] = 'PLA_8'
$pl_days_flag = 0
$pl_which_city_select = 0
$pl_which_car_recording = 0
$pl_ticket_price = 500
$pl_players_money = 0
$pl_denied_flag = 0
$pl_control_flag = 0
$pl_game_timer_start = 0
$pl_game_timer_end = 0
$pl_game_timer_diff = 0
$pl_which_recording = 0
$pl_has_player_skipped = 0
$pl_undercarriage_flag = 0
$pl_undercarriage_up_time = 0
$pl_undercarriage_down_time = 0
$pl_skip_in_how_much = 0.0
$pl_playerx = 0.0
$pl_playery = 0.0
$pl_playerz = 0.0
$pl_player_heading = 0.0
$pl_planex = 0.0
$pl_planey = 0.0
$pl_planez = 0.0
$pl_plane_heading = 0.0
$pl_print_flag_11 = 0
$pl_stop_player_skipping_flag = 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_342
goto @PLANES_3712

:PLANES_342
set_player_control $player1 {state} False
set_deatharrest_state 0
store_clock 
$pl_days_flag = get_current_day_of_week 
if 
  $pl_days_flag == 7
goto_if_false @PLANES_392
$pl_days_flag = 1
goto @PLANES_399

:PLANES_392
$pl_days_flag += 1

:PLANES_399
$pl_city_open = get_int_stat StatId.CitiesPassed
gosub @PLANES_3818
switch_widescreen False
set_fading_colour 0 {g} 0 {b} 0
clear_prints 
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_455
goto @PLANES_3712

:PLANES_455
do_fade 500 {direction} Fade.Out

:PLANES_462
if 
  get_fading_status 
goto_if_false @PLANES_509
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_502
goto @PLANES_3712

:PLANES_502
goto @PLANES_462

:PLANES_509
load_texture_dictionary 'LD_PLAN'
load_sprite 1 {spriteName} "AIRLOGO"
load_sprite 2 {spriteName} "TVCORN"
load_sprite 3 {spriteName} "TVBASE"
load_sprite 4 {spriteName} "BLKDOT"
load_all_models_now 
clear_help 
clear_prints 
use_text_commands True
display_hud False
display_radar False
show_update_stats False
do_fade 500 {direction} Fade.In
gosub @PLANES_4363

:PLANES_605
if 
  get_fading_status 
goto_if_false @PLANES_659
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_645
goto @PLANES_3712

:PLANES_645
gosub @PLANES_4363
goto @PLANES_605

:PLANES_659
gosub @PLANES_4363

:PLANES_666
wait 0
gosub @PLANES_4363
if 
  not is_player_playing $player1
goto_if_false @PLANES_700
goto @PLANES_3712

:PLANES_700
restore_clock 
if 
  $pl_city_open > 1
goto_if_false @PLANES_805
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @PLANES_767
$pl_which_city_select = 0

:PLANES_767
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @PLANES_798
$pl_which_city_select = 1

:PLANES_798
goto @PLANES_812

:PLANES_805
$pl_which_city_select = 0

:PLANES_812
if 
  $pl_city_open > 0
goto_if_false @PLANES_1281
if 
  $pl_control_flag == 0
goto_if_false @PLANES_879
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @PLANES_879
$pl_denied_flag = 0
$pl_control_flag = 1

:PLANES_879
if 
  $pl_control_flag == 1
goto_if_false @PLANES_921
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @PLANES_921
$pl_control_flag = 2

:PLANES_921
if 
  $pl_control_flag == 2
goto_if_false @PLANES_1134
$pl_players_money = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $pl_players_money >= $pl_ticket_price
goto_if_false @PLANES_1069
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRouletteAddCash
gosub @PLANES_4363
do_fade 500 {direction} Fade.Out

:PLANES_994
if 
  get_fading_status 
goto_if_false @PLANES_1055
gosub @PLANES_4363
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_1041
goto @PLANES_3712

:PLANES_1041
gosub @PLANES_4363
goto @PLANES_994

:PLANES_1055
goto @PLANES_1437
goto @PLANES_1134

:PLANES_1069
if 
  $pl_denied_flag == 0
goto_if_false @PLANES_1134
$pl_game_timer_start = get_game_timer 
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRouletteNoCash
$pl_denied_flag = 1
$pl_control_flag = 0

:PLANES_1134
$pl_game_timer_end = get_game_timer 
set_var_int_to_var_int $pl_game_timer_diff = $pl_game_timer_end
sub_int_var_from_int_var $pl_game_timer_diff -= $pl_game_timer_start
if 
  5000 > $pl_game_timer_diff
goto_if_false @PLANES_1281
gosub @PLANES_7954
set_text_scale 0.41 {heightScale} 1.84
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if or
  is_int_var_equal_to_constant $current_Language == 3
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_1260
display_text 40.0 {offsetTop} 337.0 {key} 'SHOPNO'
goto @PLANES_1281

:PLANES_1260
display_text 93.0 {offsetTop} 337.0 {key} 'SHOPNO'

:PLANES_1281
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @PLANES_1430
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRouletteNoCash
gosub @PLANES_4363
do_fade 500 {direction} Fade.Out

:PLANES_1326
if 
  get_fading_status 
goto_if_false @PLANES_1387
gosub @PLANES_4363
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_1373
goto @PLANES_3712

:PLANES_1373
gosub @PLANES_4363
goto @PLANES_1326

:PLANES_1387
gosub @PLANES_3818
set_char_coordinates $scplayer {x} $pl_playerx {y} $pl_playery {z} $pl_playerz
set_char_heading $scplayer {heading} $pl_player_heading
do_fade 500 {direction} Fade.In
goto @PLANES_3712

:PLANES_1430
goto @PLANES_666

:PLANES_1437
if 
  not is_player_playing $player1
goto_if_false @PLANES_1460
goto @PLANES_3712

:PLANES_1460
set_time_one_day_forward 
add_score $player1 {money} -500
remove_texture_dictionary 
request_model 577
request_model 371
load_all_models_now 
allow_pause_in_widescreen True
gosub @PLANES_3818
request_collision $pl_planex {y} $pl_planey
clear_area $pl_planex {y} $pl_planey {z} $pl_planez {radius} 100.0 {clearParticles} True
$pl_plane = create_car 577 {x} $pl_planex {y} $pl_planey {z} $pl_planez
set_car_heading $pl_plane {heading} $pl_plane_heading
warp_char_into_car $scplayer {vehicle} $pl_plane
load_scene $pl_planex {y} $pl_planey {z} $pl_planez
switch_widescreen True
restore_camera_jumpcut 
set_camera_behind_player 
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_1709
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_1650
set_time_of_day 10 {minutes} 30
$pl_skip_in_how_much = 9500.0
$pl_undercarriage_up_time = 20000
$pl_undercarriage_down_time = 150000
$pl_which_recording = 42

:PLANES_1650
if 
  $pl_which_city_select == 1
goto_if_false @PLANES_1709
set_time_of_day 17 {minutes} 50
$pl_skip_in_how_much = 5000.0
$pl_undercarriage_up_time = 30000
$pl_undercarriage_down_time = 110000
$pl_which_recording = 46

:PLANES_1709
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_1845
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_1786
set_time_of_day 11 {minutes} 20
$pl_skip_in_how_much = 6000.0
$pl_undercarriage_up_time = 20000
$pl_undercarriage_down_time = 120000
$pl_which_recording = 49

:PLANES_1786
if 
  $pl_which_city_select == 1
goto_if_false @PLANES_1845
set_time_of_day 14 {minutes} 40
$pl_skip_in_how_much = 8000.0
$pl_undercarriage_up_time = 20000
$pl_undercarriage_down_time = 160000
$pl_which_recording = 44

:PLANES_1845
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_1981
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_1922
set_time_of_day 19 {minutes} 10
$pl_skip_in_how_much = 6600.0
$pl_undercarriage_up_time = 20000
$pl_undercarriage_down_time = 120000
$pl_which_recording = 48

:PLANES_1922
if 
  $pl_which_city_select == 1
goto_if_false @PLANES_1981
set_time_of_day 14 {minutes} 30
$pl_skip_in_how_much = 3800.0
$pl_undercarriage_up_time = 20000
$pl_undercarriage_down_time = 70000
$pl_which_recording = 43

:PLANES_1981
request_car_recording $pl_which_recording

:PLANES_1986
if 
  not has_car_recording_been_loaded $pl_which_recording
goto_if_false @PLANES_2036
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_2029
goto @PLANES_3712

:PLANES_2029
goto @PLANES_1986

:PLANES_2036
$pl_game_timer_start = get_game_timer 
$pl_control_flag = 0
do_fade 500 {direction} Fade.In

:PLANES_2055
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_2082
goto @PLANES_3712

:PLANES_2082
if 
  is_player_playing $player1
goto_if_false @PLANES_2103
clear_wanted_level $player1

:PLANES_2103
$pl_game_timer_end = get_game_timer 
set_var_int_to_var_int $pl_game_timer_diff = $pl_game_timer_end
sub_int_var_from_int_var $pl_game_timer_diff -= $pl_game_timer_start
if 
  not is_car_dead $pl_plane
goto_if_false @PLANES_3705
if 
  $pl_control_flag == 0
goto_if_false @PLANES_2196
if 
  $pl_game_timer_diff > 2000
goto_if_false @PLANES_2196
start_playback_recorded_car $pl_plane {path} $pl_which_recording
set_cinema_camera True
$pl_control_flag = 1

:PLANES_2196
if 
  $pl_control_flag > 0
goto_if_false @PLANES_2343
if 
  $pl_has_player_skipped == 0
goto_if_false @PLANES_2343
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  $player_z > 150.0
goto_if_false @PLANES_2343
clear_this_print 'PLA_11'
if 
  $pl_print_flag_11 == 0
goto_if_false @PLANES_2319
print_now 'PLA_12' {time} 20000 {flag} 1
$pl_print_flag_11 = 1

:PLANES_2319
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @PLANES_2343
$pl_control_flag = 2

:PLANES_2343
if 
  $pl_control_flag > 0
goto_if_false @PLANES_2467
if 
  $pl_stop_player_skipping_flag == 0
goto_if_false @PLANES_2421
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
if 
  $player_z > 150.0
goto_if_false @PLANES_2421
$pl_stop_player_skipping_flag = 1

:PLANES_2421
if 
  $pl_stop_player_skipping_flag == 1
goto_if_false @PLANES_2467
if 
  150.0 > $player_z
goto_if_false @PLANES_2467
$pl_stop_player_skipping_flag = 2

:PLANES_2467
if 
  $pl_control_flag == 1
goto_if_false @PLANES_3342
if 
  $pl_has_player_skipped == 0
goto_if_false @PLANES_3112
if 
  150.0 >= $player_z
goto_if_false @PLANES_2569
clear_this_print 'PLA_12'
if 
  $pl_print_flag_11 == 0
goto_if_false @PLANES_2569
print_now 'PLA_11' {time} 5000 {flag} 1

:PLANES_2569
if 
  2 > $pl_stop_player_skipping_flag
goto_if_false @PLANES_3112
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @PLANES_3112
do_fade 500 {direction} Fade.Out

:PLANES_2611
if 
  get_fading_status 
goto_if_false @PLANES_2658
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_2651
goto @PLANES_3712

:PLANES_2651
goto @PLANES_2611

:PLANES_2658
if 
  not is_car_dead $pl_plane
goto_if_false @PLANES_3056
if 
  is_playback_going_on_for_car $pl_plane
goto_if_false @PLANES_3056
if 
  $pl_undercarriage_flag == 1
goto_if_false @PLANES_2715
set_plane_undercarriage_up $pl_plane {state} False

:PLANES_2715
skip_in_playback_recorded_car $pl_plane {amount} -10000000.0
skip_in_playback_recorded_car $pl_plane {amount} $pl_skip_in_how_much
set_cinema_camera False
if or
  $pl_which_recording == 48
  $pl_which_recording == 49
goto_if_false @PLANES_2841
set_fixed_camera_position 1774.9 {y} -2529.3 {z} 30.9 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead $pl_plane
goto_if_false @PLANES_2819
point_camera_at_car $pl_plane {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:PLANES_2819
load_scene_in_direction 1774.9 {y} -2529.3 {z} 13.9 {heading} 48.0

:PLANES_2841
if or
  $pl_which_recording == 42
  $pl_which_recording == 43
goto_if_false @PLANES_2945
set_fixed_camera_position -1268.5 {y} 106.9 {z} 37.1 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead $pl_plane
goto_if_false @PLANES_2923
point_camera_at_car $pl_plane {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:PLANES_2923
load_scene_in_direction -1268.5 {y} 106.9 {z} 13.0 {heading} 350.0

:PLANES_2945
if or
  $pl_which_recording == 46
  $pl_which_recording == 44
goto_if_false @PLANES_3049
set_fixed_camera_position 1396.1 {y} 1382.3 {z} 25.4 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
if 
  not is_car_dead $pl_plane
goto_if_false @PLANES_3027
point_camera_at_car $pl_plane {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut

:PLANES_3027
load_scene_in_direction 1396.1 {y} 1382.3 {z} 10.0 {heading} 264.0

:PLANES_3049
$pl_has_player_skipped = 1

:PLANES_3056
clear_prints 
do_fade 2500 {direction} Fade.In

:PLANES_3065
if 
  get_fading_status 
goto_if_false @PLANES_3112
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3105
goto @PLANES_3712

:PLANES_3105
goto @PLANES_3065

:PLANES_3112
if 
  not is_car_dead $pl_plane
goto_if_false @PLANES_3342
if 
  not is_playback_going_on_for_car $pl_plane
goto_if_false @PLANES_3342
do_fade 2000 {direction} Fade.Out

:PLANES_3151
if 
  get_fading_status 
goto_if_false @PLANES_3198
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3191
goto @PLANES_3712

:PLANES_3191
goto @PLANES_3151

:PLANES_3198
gosub @PLANES_3818
set_cinema_camera False
request_collision $pl_playerx {y} $pl_playery
clear_area $pl_playerx {y} $pl_playery {z} $pl_playerz {radius} 100.0 {clearParticles} True
clear_char_tasks_immediately $scplayer
set_char_coordinates $scplayer {x} $pl_playerx {y} $pl_playery {z} $pl_playerz
set_char_heading $scplayer {heading} $pl_player_heading
load_scene $pl_playerx {y} $pl_playery {z} $pl_playerz
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:PLANES_3288
if 
  get_fading_status 
goto_if_false @PLANES_3335
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3328
goto @PLANES_3712

:PLANES_3328
goto @PLANES_3288

:PLANES_3335
goto @PLANES_3712

:PLANES_3342
if 
  $pl_control_flag == 2
goto_if_false @PLANES_3585
do_fade 500 {direction} Fade.Out

:PLANES_3367
if 
  get_fading_status 
goto_if_false @PLANES_3414
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3407
goto @PLANES_3712

:PLANES_3407
goto @PLANES_3367

:PLANES_3414
give_weapon_to_char $scplayer {weaponType} WeaponType.Parachute {ammo} 1
set_current_char_weapon $scplayer {weaponType} WeaponType.Parachute
set_cinema_camera False
task_leave_any_car $scplayer
clear_this_print 'PLA_11'
clear_this_print 'PLA_12'

:PLANES_3461
if 
  is_char_in_any_car $scplayer
goto_if_false @PLANES_3511
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3504
goto @PLANES_3712

:PLANES_3504
goto @PLANES_3461

:PLANES_3511
delete_car $pl_plane
restore_camera_jumpcut 
set_camera_behind_player 
switch_widescreen False
do_fade 500 {direction} Fade.In

:PLANES_3531
if 
  get_fading_status 
goto_if_false @PLANES_3578
wait 0
if 
  not is_player_playing $player1
goto_if_false @PLANES_3571
goto @PLANES_3712

:PLANES_3571
goto @PLANES_3531

:PLANES_3578
goto @PLANES_3712

:PLANES_3585
if 
  $pl_has_player_skipped == 0
goto_if_false @PLANES_3705
if 
  $pl_undercarriage_flag == 0
goto_if_false @PLANES_3654
if 
  is_int_var_greater_than_int_var $pl_game_timer_diff > $pl_undercarriage_up_time
goto_if_false @PLANES_3654
set_plane_undercarriage_up $pl_plane {state} True
$pl_undercarriage_flag = 1

:PLANES_3654
if 
  $pl_undercarriage_flag == 1
goto_if_false @PLANES_3705
if 
  is_int_var_greater_than_int_var $pl_game_timer_diff > $pl_undercarriage_down_time
goto_if_false @PLANES_3705
set_plane_undercarriage_up $pl_plane {state} False
$pl_undercarriage_flag = 2

:PLANES_3705
goto @PLANES_2055

:PLANES_3712
clear_this_print 'PLA_11'
clear_this_print 'PLA_12'
if 
  is_var_text_label_empty s$shop_name
goto_if_false @PLANES_3752
restore_camera_jumpcut 

:PLANES_3752
if 
  is_player_playing $player1
goto_if_false @PLANES_3775
set_player_control $player1 {state} True

:PLANES_3775
set_cinema_camera False
allow_pause_in_widescreen False
use_text_commands False
mark_car_as_no_longer_needed $pl_plane
mark_model_as_no_longer_needed 577
mark_model_as_no_longer_needed 371
remove_texture_dictionary 
display_hud True
display_radar True
show_update_stats True
terminate_this_script 

:PLANES_3818
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_3999
$pl_playerx = 1682.7
$pl_playery = -2244.8999
$pl_playerz = 12.5
$pl_player_heading = 178.9
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_3934
$pl_planex = 2052.0
$pl_planey = -2497.5
$pl_planez = 12.4
$pl_plane_heading = 89.9

:PLANES_3934
if 
  $pl_which_city_select == 1
goto_if_false @PLANES_3992
$pl_planex = 1580.0
$pl_planey = -2493.5
$pl_planez = 12.4
$pl_plane_heading = 270.0

:PLANES_3992
$pl_which_car_recording = 18

:PLANES_3999
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_4180
$pl_playerx = -1431.6
$pl_playery = -283.9
$pl_playerz = 13.1
$pl_player_heading = 149.9
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_4115
$pl_planex = -1626.0
$pl_planey = -137.3
$pl_planez = 13.0
$pl_plane_heading = 315.6

:PLANES_4115
if 
  $pl_which_city_select == 1
goto_if_false @PLANES_4173
$pl_planex = -1590.9
$pl_planey = -103.5
$pl_planez = 13.0
$pl_plane_heading = 315.3

:PLANES_4173
$pl_which_car_recording = 19

:PLANES_4180
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_4361
$pl_playerx = 1669.8
$pl_playery = 1422.1
$pl_playerz = 9.7
$pl_player_heading = 263.9
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_4296
$pl_planex = 1479.7
$pl_planey = 1716.1
$pl_planez = 9.7
$pl_plane_heading = 180.0

:PLANES_4296
if 
  $pl_which_city_select == 1
goto_if_false @PLANES_4354
$pl_planex = 1475.7
$pl_planey = 1636.0
$pl_planez = 9.7
$pl_plane_heading = 180.0

:PLANES_4354
$pl_which_car_recording = 20

:PLANES_4361
return 

:PLANES_4363
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 320.0 {offsetTop} 225.0 {width} 612.0 {height} 438.0 {r} 0 {g} 0 {b} 0 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 320.0 {offsetTop} 430.0 {width} 640.0 {height} 250.0 {r} 0 {g} 0 {b} 0 {a} 255
set_sprites_draw_before_fade True
draw_sprite 1 {offsetLeft} 321.0 {offsetTop} 246.0 {width} 356.0 {height} 246.0 {r} 160 {g} 160 {b} 160 {a} 255
set_sprites_draw_before_fade True
draw_sprite 4 {offsetLeft} 326.0 {offsetTop} 84.0 {width} 602.0 {height} 58.0 {r} 73 {g} 73 {b} 73 {a} 255
gosub @PLANES_7879
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_4574
display_text 269.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4574
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_4625
set_text_scale 0.9 {heightScale} 3.4
display_text 327.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4625
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_4664
display_text 269.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4664
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_4715
set_text_scale 0.91 {heightScale} 3.43
display_text 322.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4715
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_4766
set_text_scale 0.9 {heightScale} 3.4
display_text 322.0 {offsetTop} 65.0 {key} 'PLA_1'

:PLANES_4766
if 
  $pl_city_open == 0
goto_if_false @PLANES_4987
gosub @PLANES_7879
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_4863
set_text_scale 1.21 {heightScale} 6.23
display_text 320.0 {offsetTop} 204.0 {key} 'PLA_25'
goto @PLANES_4896

:PLANES_4863
set_text_scale 1.41 {heightScale} 6.23
display_text 316.0 {offsetTop} 204.0 {key} 'PLA_25'

:PLANES_4896
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 210.0 {offsetTop} 368.0 {key} 'PLA_23'
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 298.0 {offsetTop} 368.0 {key} 'PLA_21'
goto @PLANES_7637

:PLANES_4987
gosub @PLANES_7954
set_text_colour 138 {green} 138 {blue} 138 {alpha} 255
display_text 92.0 {offsetTop} 144.0 {key} 'PLA_2'
gosub @PLANES_7954
set_text_colour 138 {green} 138 {blue} 138 {alpha} 255
display_text 92.0 {offsetTop} 207.0 {key} 'PLA_13'
gosub @PLANES_7954
set_text_colour 138 {green} 138 {blue} 138 {alpha} 255
display_text 92.0 {offsetTop} 267.0 {key} 'PLA_17'
if 
  $pl_city_open > 1
goto_if_false @PLANES_6446
gosub @PLANES_8029
set_text_scale 0.62 {heightScale} 1.54
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5203
display_text 92.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5203
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5242
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5242
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5281
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5281
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5320
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5320
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5359
display_text 52.0 {offsetTop} 372.0 {key} 'PLA_22'

:PLANES_5359
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5419
display_text 124.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5419
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5458
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5458
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5497
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5497
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5536
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5536
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5575
display_text 84.0 {offsetTop} 368.0 {key} 'PLA_19'

:PLANES_5575
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5635
display_text 252.0 {offsetTop} 368.0 {key} 'PLA_24'

:PLANES_5635
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5674
display_text 294.0 {offsetTop} 354.0 {key} 'PLA_24'

:PLANES_5674
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5713
display_text 294.0 {offsetTop} 354.0 {key} 'PLA_24'

:PLANES_5713
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5752
display_text 255.0 {offsetTop} 354.0 {key} 'PLA_24'

:PLANES_5752
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_5791
display_text 294.0 {offsetTop} 354.0 {key} 'PLA_24'

:PLANES_5791
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_5851
display_text 337.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_5851
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_5890
display_text 294.0 {offsetTop} 373.0 {key} 'PLA_20'

:PLANES_5890
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_5929
display_text 294.0 {offsetTop} 373.0 {key} 'PLA_20'

:PLANES_5929
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_5968
display_text 255.0 {offsetTop} 373.0 {key} 'PLA_20'

:PLANES_5968
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6007
display_text 294.0 {offsetTop} 373.0 {key} 'PLA_20'

:PLANES_6007
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6067
display_text 423.0 {offsetTop} 368.0 {key} 'PLA_23'

:PLANES_6067
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_6106
display_text 457.0 {offsetTop} 354.0 {key} 'PLA_23'

:PLANES_6106
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_6145
display_text 457.0 {offsetTop} 354.0 {key} 'PLA_23'

:PLANES_6145
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_6184
display_text 457.0 {offsetTop} 354.0 {key} 'PLA_23'

:PLANES_6184
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6223
display_text 457.0 {offsetTop} 354.0 {key} 'PLA_23'

:PLANES_6223
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6283
display_text 507.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6283
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @PLANES_6322
display_text 457.0 {offsetTop} 373.0 {key} 'PLA_21'

:PLANES_6322
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @PLANES_6361
display_text 457.0 {offsetTop} 373.0 {key} 'PLA_21'

:PLANES_6361
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @PLANES_6400
display_text 457.0 {offsetTop} 373.0 {key} 'PLA_21'

:PLANES_6400
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @PLANES_6439
display_text 457.0 {offsetTop} 373.0 {key} 'PLA_21'

:PLANES_6439
goto @PLANES_6706

:PLANES_6446
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6513
display_text 155.0 {offsetTop} 368.0 {key} 'PLA_24'
goto @PLANES_6534

:PLANES_6513
display_text 105.0 {offsetTop} 368.0 {key} 'PLA_24'

:PLANES_6534
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @PLANES_6601
display_text 241.0 {offsetTop} 368.0 {key} 'PLA_20'
goto @PLANES_6622

:PLANES_6601
display_text 191.0 {offsetTop} 368.0 {key} 'PLA_20'

:PLANES_6622
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 328.0 {offsetTop} 368.0 {key} 'PLA_23'
gosub @PLANES_8029
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 412.0 {offsetTop} 368.0 {key} 'PLA_21'

:PLANES_6706
gosub @PLANES_7954
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text 92.0 {offsetTop} 167.0 {key} $pl_days($pl_days_flag,8s)
gosub @PLANES_7954
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
display_text_with_number 92.0 {offsetTop} 290.0 {key} 'PLA_18' {num} $pl_ticket_price
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @PLANES_7079
gosub @PLANES_7954
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_6855
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @PLANES_6866

:PLANES_6855
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255

:PLANES_6866
display_text 92.0 {offsetTop} 230.0 {key} 'PLA_15'
if 
  $pl_city_open > 1
goto_if_false @PLANES_6983
gosub @PLANES_7954
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_6948
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255
goto @PLANES_6962

:PLANES_6948
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:PLANES_6962
display_text 282.0 {offsetTop} 230.0 {key} 'PLA_14'

:PLANES_6983
gosub @PLANES_7954
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_7054
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 10 {num2} 30
goto @PLANES_7079

:PLANES_7054
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 17 {num2} 50

:PLANES_7079
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @PLANES_7367
gosub @PLANES_7954
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_7143
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @PLANES_7154

:PLANES_7143
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255

:PLANES_7154
display_text 92.0 {offsetTop} 230.0 {key} 'PLA_16'
if 
  $pl_city_open > 1
goto_if_false @PLANES_7271
gosub @PLANES_7954
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_7236
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255
goto @PLANES_7250

:PLANES_7236
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:PLANES_7250
display_text 282.0 {offsetTop} 230.0 {key} 'PLA_14'

:PLANES_7271
gosub @PLANES_7954
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_7342
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 11 {num2} 20
goto @PLANES_7367

:PLANES_7342
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 14 {num2} 40

:PLANES_7367
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @PLANES_7637
gosub @PLANES_7954
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_7431
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
goto @PLANES_7442

:PLANES_7431
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255

:PLANES_7442
display_text 92.0 {offsetTop} 230.0 {key} 'PLA_16'
gosub @PLANES_7954
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_7506
set_text_colour 40 {green} 40 {blue} 40 {alpha} 255
goto @PLANES_7520

:PLANES_7506
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255

:PLANES_7520
display_text 282.0 {offsetTop} 230.0 {key} 'PLA_15'
gosub @PLANES_7954
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
if 
  $pl_which_city_select == 0
goto_if_false @PLANES_7612
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 19 {num2} 10
goto @PLANES_7637

:PLANES_7612
display_text_with_2_numbers 281.0 {offsetTop} 167.0 {key} 'PLA_10' {num1} 14 {num2} 30

:PLANES_7637
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 112.0 {width} 320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 160.0 {offsetTop} 317.0 {width} 320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 112.0 {width} -320.0 {height} 224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 2 {offsetLeft} 480.0 {offsetTop} 317.0 {width} -320.0 {height} -224.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 3 {offsetLeft} 160.0 {offsetTop} 435.0 {width} 320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
set_sprites_draw_before_fade True
draw_sprite 3 {offsetLeft} 480.0 {offsetTop} 435.0 {width} -320.0 {height} 17.0 {r} 150 {g} 150 {b} 150 {a} 255
return 

:PLANES_7879
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre True
set_text_background False
set_text_scale 1.0 {heightScale} 3.4
set_text_dropshadow 3 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:PLANES_7954
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.62 {heightScale} 2.34
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 

:PLANES_8029
set_text_draw_before_fade True
set_text_justify True
set_text_right_justify False
set_text_wrapx 1000.0
set_text_proportional True
set_text_centre False
set_text_background False
set_text_scale 0.42 {heightScale} 2.24
set_text_dropshadow 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
set_text_font Font.Menu
return 
terminate_this_script 

//-------------External script 33 (TRAINS)---------------

:TRAINS
script_name 'TRAINS'
$train_speed = 0.0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_44
goto @TRAINS_768

:TRAINS_44
set_deatharrest_state 0

:TRAINS_48
wait 0
if 
  is_player_playing $player1
goto_if_false @TRAINS_754
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_740
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_726
$train_car = store_car_char_is_in_no_save $scplayer
if 
  $train_control_flag == 0
goto_if_false @TRAINS_181
$train_speed = get_car_speed $train_car
if 
  $train_speed > 0.0
goto_if_false @TRAINS_181
print_now 'TRAINS' {time} 20000 {flag} 1
$train_control_flag = 1

:TRAINS_181
if 
  $train_control_flag == 1
goto_if_false @TRAINS_619
if 
  is_next_station_allowed $train_car
goto_if_false @TRAINS_429
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TRAINS_422
do_fade 1000 {direction} Fade.Out

:TRAINS_239
if 
  get_fading_status 
goto_if_false @TRAINS_286
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_279
goto @TRAINS_768

:TRAINS_279
goto @TRAINS_239

:TRAINS_286
if 
  is_player_playing $player1
goto_if_false @TRAINS_361
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_361
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_361
$train_car = store_car_char_is_in_no_save $scplayer
skip_to_next_allowed_station $train_car
clear_this_print 'TRAINS'

:TRAINS_361
do_fade 1000 {direction} Fade.In

:TRAINS_368
if 
  get_fading_status 
goto_if_false @TRAINS_415
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_408
goto @TRAINS_768

:TRAINS_408
goto @TRAINS_368

:TRAINS_415
$train_control_flag = 2

:TRAINS_422
goto @TRAINS_619

:TRAINS_429
do_fade 1000 {direction} Fade.Out

:TRAINS_436
if 
  get_fading_status 
goto_if_false @TRAINS_483
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_476
goto @TRAINS_768

:TRAINS_476
goto @TRAINS_436

:TRAINS_483
if 
  is_player_playing $player1
goto_if_false @TRAINS_558
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_558
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_558
$train_car = store_car_char_is_in_no_save $scplayer
skip_to_next_allowed_station $train_car
clear_this_print 'TRAINS'

:TRAINS_558
do_fade 1000 {direction} Fade.In

:TRAINS_565
if 
  get_fading_status 
goto_if_false @TRAINS_612
wait 0
if 
  not is_player_playing $player1
goto_if_false @TRAINS_605
goto @TRAINS_768

:TRAINS_605
goto @TRAINS_565

:TRAINS_612
$train_control_flag = 2

:TRAINS_619
if 
  $train_control_flag == 2
goto_if_false @TRAINS_719
if 
  is_player_playing $player1
goto_if_false @TRAINS_719
if 
  is_char_sitting_in_any_car $scplayer
goto_if_false @TRAINS_719
if 
  is_char_in_model $scplayer {modelId} 570
goto_if_false @TRAINS_719
$train_car = store_car_char_is_in_no_save $scplayer
if 
  is_car_stopped $train_car
goto_if_false @TRAINS_719
$train_control_flag = 0

:TRAINS_719
goto @TRAINS_733

:TRAINS_726
goto @TRAINS_768

:TRAINS_733
goto @TRAINS_747

:TRAINS_740
goto @TRAINS_768

:TRAINS_747
goto @TRAINS_761

:TRAINS_754
goto @TRAINS_768

:TRAINS_761
goto @TRAINS_48

:TRAINS_768
$train_control_flag = 0
clear_this_print 'TRAINS'
terminate_this_script 
terminate_this_script 

//-------------External script 34 (ZERO_AMBIENCE)---------------

:RCSHOP
script_name 'RCSHOP'
$iSetRCPanic = 0
2@ = -2237.291
3@ = 128.5856
4@ = 1034.422
5@ = 0.0
6@ = 360.0
set_lvar_int_to_constant 10@ = 217
request_model 10@

:RCSHOP_81
if 
  not has_model_loaded 10@
goto_if_false @RCSHOP_108
wait 0
goto @RCSHOP_81

:RCSHOP_108
7@ = open_sequence_task 
task_stay_in_same_place -1 {state} True
task_stand_still -1 {time} -2
close_sequence_task 7@
8@ = add_attractor 2@ {y} 3@ {z} 4@ {angle} 5@ {_p5} 6@ {sequence} 7@
9@ = create_char_at_attractor PedType.CivMale {modelId} 10@ {taskId} 8@ {attractor} 1466

:RCSHOP_169
if 
  is_player_playing $player1
goto_if_false @RCSHOP_509
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @RCSHOP_225
gosub @RCSHOP_520

:RCSHOP_225
if and
  $flag_zero_mission_counter == 3
  $onmission == 0
goto_if_false @RCSHOP_305
if 
  locate_stopped_char_on_foot_3d $scplayer {x} -2219.2871 {y} 133.8895 {z} 1034.641 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} True
goto_if_false @RCSHOP_305
$load_and_launch_mission_if_poss = 7

:RCSHOP_305
if or
  is_char_shooting $scplayer
  is_wanted_level_greater $player1 {wantedLevel} $iWantedOnEntry
goto_if_false @RCSHOP_336
$iSetRCPanic = 1

:RCSHOP_336
if 
  not is_char_dead 9@
goto_if_false @RCSHOP_418
if and
  is_player_targetting_char $player1 {handle} 9@
  not is_current_char_weapon $scplayer {weaponType} WeaponType.AnyMelee
goto_if_false @RCSHOP_392
$iSetRCPanic = 1
goto @RCSHOP_418

:RCSHOP_392
if 
  has_char_been_damaged_by_char 9@ {handle} $scplayer
goto_if_false @RCSHOP_418
$iSetRCPanic = 1

:RCSHOP_418
if 
  $iSetRCPanic == 1
goto_if_false @RCSHOP_509
2@, 3@, 4@ = get_char_coordinates $scplayer
0@ = get_random_char_in_sphere_no_brain 2@ {y} 3@ {z} 4@ {radius} 20.0
if 
  0@ > -1
goto_if_false @RCSHOP_509
1@ += 1
start_new_streamed_script 37 {args} 0@ 1@ 
stream_script 37

:RCSHOP_509
wait 0
goto @RCSHOP_169

:RCSHOP_520
$iSetRCPanic = 0
mark_char_as_no_longer_needed 9@
mark_model_as_no_longer_needed 10@
delete_char 9@
clear_attractor 8@
clear_sequence_task 7@
terminate_this_script 
terminate_this_script 

//-------------External script 35 (DANCE)---------------

:DANCE
script_name 'DANCE'
set_global_var_bit_const $iDanceReport {bitIndex} 31
set_minigame_in_progress True
use_text_commands True
force_big_message_and_counter True
if 
  13@ > 0
goto_if_false @DANCE_72
5@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:DANCE_72
18@ = 5
23@ = 5
16@ = -1
24@ = -1
17@ = -1
13@ = 0
$iDanceScore = 0
$iDance_SpeechState = 0
$iDance_SpeechRequest = -1
$iDance_SpeechCounter = 1
22@ = 5
TIMERA = 10000

:DANCE_157
wait 0
if 
  is_player_playing $player1
goto_if_false @DANCE_367
if 
  6@ > 0
goto_if_false @DANCE_353
if 
  $iTerminateDanceMiniGame == 1
goto_if_false @DANCE_245
if 
  6@ <> 2
goto_if_false @DANCE_245
6@ = 2
7@ = 0

:DANCE_245
if 
  5@ == -1
goto_if_false @DANCE_302
if 
  22@ <> 5
goto_if_false @DANCE_288
gosub @DANCE_9479

:DANCE_288
gosub @DANCE_381
goto @DANCE_346

:DANCE_302
if 
  not is_char_dead 5@
goto_if_false @DANCE_339
gosub @DANCE_9479
gosub @DANCE_381
goto @DANCE_346

:DANCE_339
gosub @DANCE_16653

:DANCE_346
goto @DANCE_360

:DANCE_353
gosub @DANCE_381

:DANCE_360
goto @DANCE_374

:DANCE_367
gosub @DANCE_16653

:DANCE_374
goto @DANCE_157

:DANCE_381
switch_start 6@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_500 {caseNum1} 0 {caseLabel1} @DANCE_444 {caseNum2} 1 {caseLabel2} @DANCE_458 {caseNum3} 2 {caseLabel3} @DANCE_472 {caseNum4} 3 {caseLabel4} @DANCE_486 {caseNum5} -1 {caseLabel5} @DANCE_500 {caseNum6} -1 {caseLabel6} @DANCE_500 {caseNum7} -1 {caseLabel7} @DANCE_500

:DANCE_444
gosub @DANCE_502
goto @DANCE_500

:DANCE_458
gosub @DANCE_1090
goto @DANCE_500

:DANCE_472
gosub @DANCE_2086
goto @DANCE_500

:DANCE_486
gosub @DANCE_2412
goto @DANCE_500

:DANCE_500
return 

:DANCE_502
switch_start 7@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_1088 {caseNum1} 0 {caseLabel1} @DANCE_565 {caseNum2} 1 {caseLabel2} @DANCE_646 {caseNum3} 2 {caseLabel3} @DANCE_803 {caseNum4} 3 {caseLabel4} @DANCE_948 {caseNum5} -1 {caseLabel5} @DANCE_1088 {caseNum6} -1 {caseLabel6} @DANCE_1088 {caseNum7} -1 {caseLabel7} @DANCE_1088

:DANCE_565
set_player_control $player1 {state} False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
hide_char_weapon_for_scripted_cutscene $scplayer {state} True
set_everyone_ignore_player $player1 {state} True
set_all_cars_can_be_damaged False
display_hud False
display_radar False
if 
  5@ <> -1
goto_if_false @DANCE_625
store_clock 

:DANCE_625
do_fade 500 {direction} Fade.Out
7@ += 1
goto @DANCE_1088

:DANCE_646
if 
  not get_fading_status 
goto_if_false @DANCE_796
gosub @DANCE_2764
request_animation v$txtCURR_DANCE_BLOCK
if 
  not has_animation_loaded v$txtCURR_DANCE_BLOCK
goto_if_false @DANCE_694
goto @DANCE_1088

:DANCE_694
if 
  5@ <> -1
goto_if_false @DANCE_718
set_time_of_day 0 {minutes} 0

:DANCE_718
clear_char_tasks_immediately $scplayer
clear_area 0@ {y} 1@ {z} 2@ {radius} 1.5 {clearParticles} True
set_char_coordinates $scplayer {x} 0@ {y} 1@ {z} 2@
set_char_heading $scplayer {heading} 3@
gosub @DANCE_6883
gosub @DANCE_5828
17@ = 0
preload_beat_track 4@
7@ += 1

:DANCE_796
goto @DANCE_1088

:DANCE_803
13@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 13@ == 2
goto_if_false @DANCE_941
play_beat_track 
task_play_anim_non_interruptable $scplayer {animationName} "DANCE_LOOP" {animationFile} v$txtCURR_DANCE_BLOCK {blendSpeed} 99.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 1215752191
if 
  not is_char_dead 5@
goto_if_false @DANCE_920
task_play_anim_non_interruptable 5@ {animationName} "DANCE_LOOP" {animationFile} v$txtCURR_DANCE_BLOCK {blendSpeed} 99.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 1215752191

:DANCE_920
do_fade 500 {direction} Fade.In
TIMERB = 0
7@ += 1

:DANCE_941
goto @DANCE_1088

:DANCE_948
if 
  not get_fading_status 
goto_if_false @DANCE_1081
if 
  5@ == -1
goto_if_false @DANCE_1043
if 
  TIMERB >= 10000
goto_if_false @DANCE_1036
start_new_script @BDISPLY 
display_onscreen_counter_with_string $iDanceScore {display} CounterDisplay.Number {text} 'DNC_001'
6@ = 1
7@ = 1

:DANCE_1036
goto @DANCE_1081

:DANCE_1043
start_new_script @BDISPLY 
display_onscreen_counter_with_string $iDanceScore {display} CounterDisplay.Number {text} 'DNC_001'
6@ = 1
7@ = 1

:DANCE_1081
goto @DANCE_1088

:DANCE_1088
return 

:DANCE_1090
switch_start 7@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DANCE_2084 {caseNum1} 1 {caseLabel1} @DANCE_1153 {caseNum2} -1 {caseLabel2} @DANCE_2084 {caseNum3} -1 {caseLabel3} @DANCE_2084 {caseNum4} -1 {caseLabel4} @DANCE_2084 {caseNum5} -1 {caseLabel5} @DANCE_2084 {caseNum6} -1 {caseLabel6} @DANCE_2084 {caseNum7} -1 {caseLabel7} @DANCE_2084

:DANCE_1153
gosub @DANCE_5692
gosub @DANCE_8068
gosub @DANCE_5723
gosub @DANCE_5504
gosub @DANCE_2932
if 
  6@ == 3
goto_if_false @DANCE_1213
goto @DANCE_2084

:DANCE_1213
gosub @DANCE_3662
gosub @DANCE_5367
gosub @DANCE_5828
gosub @DANCE_8952
gosub @DANCE_9617
if 
  22@ == 3
goto_if_false @DANCE_1387
if 
  99999999 > $iDanceScore
goto_if_false @DANCE_1341
if 
  29@ == 2
goto_if_false @DANCE_1334
30@ = 10
30@ *= 2
add_int_lvar_to_int_var $iDanceScore += 30@
goto @DANCE_1341

:DANCE_1334
$iDanceScore += 10

:DANCE_1341
26@ += 1
gosub @DANCE_8131
if 
  31@ <> -1
goto_if_false @DANCE_1380
gosub @DANCE_4113

:DANCE_1380
goto @DANCE_2084

:DANCE_1387
if 
  22@ == 1
goto_if_false @DANCE_1526
if 
  99999999 > $iDanceScore
goto_if_false @DANCE_1480
if 
  29@ == 2
goto_if_false @DANCE_1473
30@ = 50
30@ *= 2
add_int_lvar_to_int_var $iDanceScore += 30@
goto @DANCE_1480

:DANCE_1473
$iDanceScore += 50

:DANCE_1480
28@ += 1
gosub @DANCE_8131
if 
  31@ <> -1
goto_if_false @DANCE_1519
gosub @DANCE_4113

:DANCE_1519
goto @DANCE_2084

:DANCE_1526
if 
  22@ == 2
goto_if_false @DANCE_1665
if 
  99999999 > $iDanceScore
goto_if_false @DANCE_1619
if 
  29@ == 2
goto_if_false @DANCE_1612
30@ = 20
30@ *= 2
add_int_lvar_to_int_var $iDanceScore += 30@
goto @DANCE_1619

:DANCE_1612
$iDanceScore += 20

:DANCE_1619
26@ += 1
gosub @DANCE_8131
if 
  31@ <> -1
goto_if_false @DANCE_1658
gosub @DANCE_4113

:DANCE_1658
goto @DANCE_2084

:DANCE_1665
if 
  22@ == 0
goto_if_false @DANCE_1768
if 
  $iDanceScore > 0
goto_if_false @DANCE_1715
$iDanceScore -= 0
goto @DANCE_1722

:DANCE_1715
$iDanceScore = 0

:DANCE_1722
27@ += 1
gosub @DANCE_8131
if 
  31@ <> -1
goto_if_false @DANCE_1761
gosub @DANCE_4740

:DANCE_1761
goto @DANCE_2084

:DANCE_1768
if 
  22@ == 4
goto_if_false @DANCE_1871
if 
  $iDanceScore > 0
goto_if_false @DANCE_1818
$iDanceScore -= 0
goto @DANCE_1825

:DANCE_1818
$iDanceScore = 0

:DANCE_1825
27@ += 1
gosub @DANCE_8131
if 
  31@ <> -1
goto_if_false @DANCE_1864
gosub @DANCE_4740

:DANCE_1864
goto @DANCE_2084

:DANCE_1871
if 
  22@ == 10
goto_if_false @DANCE_1974
if 
  $iDanceScore > 0
goto_if_false @DANCE_1921
$iDanceScore -= 0
goto @DANCE_1928

:DANCE_1921
$iDanceScore = 0

:DANCE_1928
27@ += 1
gosub @DANCE_8131
if 
  31@ <> -1
goto_if_false @DANCE_1967
gosub @DANCE_4740

:DANCE_1967
goto @DANCE_2084

:DANCE_1974
if 
  22@ == 11
goto_if_false @DANCE_2077
if 
  $iDanceScore > 0
goto_if_false @DANCE_2024
$iDanceScore -= 0
goto @DANCE_2031

:DANCE_2024
$iDanceScore = 0

:DANCE_2031
27@ += 1
gosub @DANCE_8131
if 
  31@ <> -1
goto_if_false @DANCE_2070
gosub @DANCE_4740

:DANCE_2070
goto @DANCE_2084

:DANCE_2077
goto @DANCE_2084

:DANCE_2084
return 

:DANCE_2086
switch_start 7@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @DANCE_2410 {caseNum1} 0 {caseLabel1} @DANCE_2149 {caseNum2} 1 {caseLabel2} @DANCE_2170 {caseNum3} 2 {caseLabel3} @DANCE_2222 {caseNum4} 3 {caseLabel4} @DANCE_2396 {caseNum5} -1 {caseLabel5} @DANCE_2410 {caseNum6} -1 {caseLabel6} @DANCE_2410 {caseNum7} -1 {caseLabel7} @DANCE_2410

:DANCE_2149
do_fade 500 {direction} Fade.Out
7@ += 1
goto @DANCE_2410

:DANCE_2170
if 
  not get_fading_status 
goto_if_false @DANCE_2215
13@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 13@ == 3
goto_if_false @DANCE_2208
stop_beat_track 

:DANCE_2208
7@ += 1

:DANCE_2215
goto @DANCE_2410

:DANCE_2222
clear_onscreen_counter $iDanceScore
hide_char_weapon_for_scripted_cutscene $scplayer {state} False
set_all_cars_can_be_damaged True
display_hud True
display_radar True
clear_help 
set_camera_behind_player 
restore_camera_jumpcut 
set_everyone_ignore_player $player1 {state} False
clear_char_tasks_immediately $scplayer
task_play_anim_non_interruptable $scplayer {animationName} "DANCE_LOOP" {animationFile} v$txtCURR_DANCE_BLOCK {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
if 
  not is_char_dead 5@
goto_if_false @DANCE_2355
clear_char_tasks_immediately 5@
task_play_anim_non_interruptable 5@ {animationName} "DANCE_LOOP" {animationFile} v$txtCURR_DANCE_BLOCK {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:DANCE_2355
if 
  5@ <> -1
goto_if_false @DANCE_2375
restore_clock 

:DANCE_2375
do_fade 1500 {direction} Fade.In
7@ += 1
goto @DANCE_2410

:DANCE_2396
gosub @DANCE_16653
goto @DANCE_2410

:DANCE_2410
return 

:DANCE_2412
switch_start 7@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @DANCE_2762 {caseNum1} 0 {caseLabel1} @DANCE_2475 {caseNum2} 1 {caseLabel2} @DANCE_2567 {caseNum3} -1 {caseLabel3} @DANCE_2762 {caseNum4} -1 {caseLabel4} @DANCE_2762 {caseNum5} -1 {caseLabel5} @DANCE_2762 {caseNum6} -1 {caseLabel6} @DANCE_2762 {caseNum7} -1 {caseLabel7} @DANCE_2762

:DANCE_2475
pause_current_beat_track True
if 
  is_char_playing_anim $scplayer {animationName} v$txtCURR_DANCE_MOVE
goto_if_false @DANCE_2508
set_char_anim_playing_flag $scplayer {animationName} v$txtCURR_DANCE_MOVE {flag} False

:DANCE_2508
if 
  not is_char_dead 5@
goto_if_false @DANCE_2553
if 
  is_char_playing_anim 5@ {animationName} v$txtCURR_DANCE_MOVE_P
goto_if_false @DANCE_2553
set_char_anim_playing_flag 5@ {animationName} v$txtCURR_DANCE_MOVE_P {flag} False

:DANCE_2553
7@ += 1
goto @DANCE_2762

:DANCE_2567
gosub @DANCE_2932
if 
  18@ == 100
goto_if_false @DANCE_2620
$iDanceScore = 0
6@ = 2
7@ = 0
goto @DANCE_2762

:DANCE_2620
if 
  18@ == 99
goto_if_false @DANCE_2755
if 
  6@ > 0
goto_if_false @DANCE_2755
pause_current_beat_track False
if 
  is_char_playing_anim $scplayer {animationName} v$txtCURR_DANCE_MOVE
goto_if_false @DANCE_2689
set_char_anim_playing_flag $scplayer {animationName} v$txtCURR_DANCE_MOVE {flag} True

:DANCE_2689
if 
  not is_char_dead 5@
goto_if_false @DANCE_2734
if 
  is_char_playing_anim 5@ {animationName} v$txtCURR_DANCE_MOVE_P
goto_if_false @DANCE_2734
set_char_anim_playing_flag 5@ {animationName} v$txtCURR_DANCE_MOVE_P {flag} True

:DANCE_2734
6@ = 1
7@ = 1
goto @DANCE_2762

:DANCE_2755
goto @DANCE_2762

:DANCE_2762
return 

:DANCE_2764
switch_start 4@ {numCases} 4 {hasDefaultCase} 1 {defaultLabel} @DANCE_2906 {caseNum1} 1 {caseLabel1} @DANCE_2827 {caseNum2} 2 {caseLabel2} @DANCE_2846 {caseNum3} 3 {caseLabel3} @DANCE_2865 {caseNum4} 4 {caseLabel4} @DANCE_2889 {caseNum5} -1 {caseLabel5} @DANCE_2930 {caseNum6} -1 {caseLabel6} @DANCE_2930 {caseNum7} -1 {caseLabel7} @DANCE_2930

:DANCE_2827
set_var_text_label16 v$txtCURR_DANCE_BLOCK = "GFUNK"
goto @DANCE_2930

:DANCE_2846
set_var_text_label16 v$txtCURR_DANCE_BLOCK = "GFUNK"
goto @DANCE_2930

:DANCE_2865
set_var_text_label16 v$txtCURR_DANCE_BLOCK = "RUNNINGMAN"
goto @DANCE_2930

:DANCE_2889
set_var_text_label16 v$txtCURR_DANCE_BLOCK = "WOP"
goto @DANCE_2930

:DANCE_2906
set_var_text_label16 v$txtCURR_DANCE_BLOCK = "WOP"
4@ = 4
goto @DANCE_2930

:DANCE_2930
return 

:DANCE_2932
gosub @DANCE_16964
switch_start 23@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @DANCE_3660 {caseNum1} 1 {caseLabel1} @DANCE_3386 {caseNum2} 2 {caseLabel2} @DANCE_3340 {caseNum3} 3 {caseLabel3} @DANCE_3294 {caseNum4} 4 {caseLabel4} @DANCE_3248 {caseNum5} 5 {caseLabel5} @DANCE_3002 {caseNum6} 99 {caseLabel6} @DANCE_3432 {caseNum7} 100 {caseLabel7} @DANCE_3615

:DANCE_3002
if 
  $d_player_stick_position == 10
goto_if_false @DANCE_3041
18@ = 4
23@ = 4
goto @DANCE_3660

:DANCE_3041
if 
  $d_player_stick_position == 13
goto_if_false @DANCE_3080
18@ = 3
23@ = 3
goto @DANCE_3660

:DANCE_3080
if 
  $d_player_stick_position == 9
goto_if_false @DANCE_3119
18@ = 2
23@ = 2
goto @DANCE_3660

:DANCE_3119
if 
  $d_player_stick_position == 14
goto_if_false @DANCE_3158
18@ = 1
23@ = 1
goto @DANCE_3660

:DANCE_3158
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DANCE_3203
18@ = 99
23@ = 99
TIMERB = 0
goto @DANCE_3660

:DANCE_3203
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DANCE_3241
18@ = 100
23@ = 100
goto @DANCE_3660

:DANCE_3241
goto @DANCE_3660

:DANCE_3248
18@ = 5
if 
  $d_player_stick_position == 0
goto_if_false @DANCE_3287
23@ = 5
goto @DANCE_3660

:DANCE_3287
goto @DANCE_3660

:DANCE_3294
18@ = 5
if 
  $d_player_stick_position == 0
goto_if_false @DANCE_3333
23@ = 5
goto @DANCE_3660

:DANCE_3333
goto @DANCE_3660

:DANCE_3340
18@ = 5
if 
  $d_player_stick_position == 0
goto_if_false @DANCE_3379
23@ = 5
goto @DANCE_3660

:DANCE_3379
goto @DANCE_3660

:DANCE_3386
18@ = 5
if 
  $d_player_stick_position == 0
goto_if_false @DANCE_3425
23@ = 5
goto @DANCE_3660

:DANCE_3425
goto @DANCE_3660

:DANCE_3432
18@ = 5
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @DANCE_3477
23@ = 5
goto @DANCE_3660
goto @DANCE_3608

:DANCE_3477
if 
  5@ == -1
goto_if_false @DANCE_3564
if 
  22@ <> 5
goto_if_false @DANCE_3557
if and
  6@ <> 3
  TIMERB >= 800
goto_if_false @DANCE_3557
clear_help 
6@ = 3
7@ = 0
return 

:DANCE_3557
goto @DANCE_3608

:DANCE_3564
if and
  6@ <> 3
  TIMERB >= 800
goto_if_false @DANCE_3608
clear_help 
6@ = 3
7@ = 0
return 

:DANCE_3608
goto @DANCE_3660

:DANCE_3615
18@ = 5
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @DANCE_3653
23@ = 5
goto @DANCE_3660

:DANCE_3653
goto @DANCE_3660

:DANCE_3660
return 

:DANCE_3662
14@, 13@, 15@ = get_beat_proximity 0
if 
  14@ > 3000
goto_if_false @DANCE_3708
22@ = 5
goto @DANCE_4111

:DANCE_3708
if 
  is_int_lvar_greater_than_int_lvar 15@ > 16@
goto_if_false @DANCE_4022
if 
  18@ == 5
goto_if_false @DANCE_3787
if 
  -110 > 14@
goto_if_false @DANCE_3780
22@ = 0
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3780
goto @DANCE_4015

:DANCE_3787
$BD_RenderHit = 1
if 
  is_int_lvar_equal_to_int_lvar 18@ == 13@
goto_if_false @DANCE_3998
if and
  35 >= 14@
  14@ >= -35
goto_if_false @DANCE_3869
22@ = 1
$BD_RenderHit = 3
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3991

:DANCE_3869
if and
  60 >= 14@
  14@ >= -60
goto_if_false @DANCE_3925
22@ = 2
$BD_RenderHit = 2
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3991

:DANCE_3925
if and
  110 >= 14@
  14@ >= -110
goto_if_false @DANCE_3974
22@ = 3
set_lvar_int_to_lvar_int 16@ = 15@
return 
goto @DANCE_3991

:DANCE_3974
22@ = 11
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_3991
goto @DANCE_4015

:DANCE_3998
22@ = 10
set_lvar_int_to_lvar_int 16@ = 15@
return 

:DANCE_4015
goto @DANCE_4111

:DANCE_4022
if or
  22@ == 1
  22@ == 2
  22@ == 3
goto_if_false @DANCE_4063
22@ = 8
return 

:DANCE_4063
if or
  22@ == 0
  22@ == 4
  22@ == 10
  22@ == 11
goto_if_false @DANCE_4111
22@ = 9
return 

:DANCE_4111
return 

:DANCE_4113
switch_start 17@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_4241 {caseNum1} 2 {caseLabel1} @DANCE_4270 {caseNum2} 3 {caseLabel2} @DANCE_4299 {caseNum3} 4 {caseLabel3} @DANCE_4328 {caseNum4} 5 {caseLabel4} @DANCE_4357 {caseNum5} 6 {caseLabel5} @DANCE_4386 {caseNum6} 7 {caseLabel6} @DANCE_4415 {caseNum7} 8 {caseLabel7} @DANCE_4444
switch_continued 9 {caseLabel1} @DANCE_4473 {caseNum2} 10 {caseLabel2} @DANCE_4502 {caseNum3} 11 {caseLabel3} @DANCE_4532 {caseNum4} 12 {caseLabel4} @DANCE_4562 {caseNum5} 13 {caseLabel5} @DANCE_4592 {caseNum6} 14 {caseLabel6} @DANCE_4622 {caseNum7} 15 {caseLabel7} @DANCE_4652 {caseNum8} 16 {caseLabel8} @DANCE_4682 {caseNum9} -1 {caseLabel9} @DANCE_4712

:DANCE_4241
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G1"
17@ = 2
goto @DANCE_4712

:DANCE_4270
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G2"
17@ += 1
goto @DANCE_4712

:DANCE_4299
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G3"
17@ += 1
goto @DANCE_4712

:DANCE_4328
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G4"
17@ += 1
goto @DANCE_4712

:DANCE_4357
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G5"
17@ += 1
goto @DANCE_4712

:DANCE_4386
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G6"
17@ += 1
goto @DANCE_4712

:DANCE_4415
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G7"
17@ += 1
goto @DANCE_4712

:DANCE_4444
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G8"
17@ += 1
goto @DANCE_4712

:DANCE_4473
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G9"
17@ += 1
goto @DANCE_4712

:DANCE_4502
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G10"
17@ += 1
goto @DANCE_4712

:DANCE_4532
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G11"
17@ += 1
goto @DANCE_4712

:DANCE_4562
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G12"
17@ += 1
goto @DANCE_4712

:DANCE_4592
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G13"
17@ += 1
goto @DANCE_4712

:DANCE_4622
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G14"
17@ += 1
goto @DANCE_4712

:DANCE_4652
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G15"
17@ += 1
goto @DANCE_4712

:DANCE_4682
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_G16"
17@ += 1
goto @DANCE_4712

:DANCE_4712
task_play_anim_non_interruptable $scplayer {animationName} v$txtCURR_DANCE_MOVE {animationFile} v$txtCURR_DANCE_BLOCK {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
return 

:DANCE_4740
switch_start 17@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_4868 {caseNum1} 2 {caseLabel1} @DANCE_4897 {caseNum2} 3 {caseLabel2} @DANCE_4926 {caseNum3} 4 {caseLabel3} @DANCE_4955 {caseNum4} 5 {caseLabel4} @DANCE_4984 {caseNum5} 6 {caseLabel5} @DANCE_5013 {caseNum6} 7 {caseLabel6} @DANCE_5042 {caseNum7} 8 {caseLabel7} @DANCE_5071
switch_continued 9 {caseLabel1} @DANCE_5100 {caseNum2} 10 {caseLabel2} @DANCE_5129 {caseNum3} 11 {caseLabel3} @DANCE_5159 {caseNum4} 12 {caseLabel4} @DANCE_5189 {caseNum5} 13 {caseLabel5} @DANCE_5219 {caseNum6} 14 {caseLabel6} @DANCE_5249 {caseNum7} 15 {caseLabel7} @DANCE_5279 {caseNum8} 16 {caseLabel8} @DANCE_5309 {caseNum9} -1 {caseLabel9} @DANCE_5339

:DANCE_4868
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B1"
17@ = 2
goto @DANCE_5339

:DANCE_4897
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B2"
17@ += 1
goto @DANCE_5339

:DANCE_4926
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B3"
17@ += 1
goto @DANCE_5339

:DANCE_4955
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B4"
17@ += 1
goto @DANCE_5339

:DANCE_4984
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B5"
17@ += 1
goto @DANCE_5339

:DANCE_5013
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B6"
17@ += 1
goto @DANCE_5339

:DANCE_5042
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B7"
17@ += 1
goto @DANCE_5339

:DANCE_5071
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B8"
17@ += 1
goto @DANCE_5339

:DANCE_5100
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B9"
17@ += 1
goto @DANCE_5339

:DANCE_5129
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B10"
17@ += 1
goto @DANCE_5339

:DANCE_5159
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B11"
17@ += 1
goto @DANCE_5339

:DANCE_5189
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B12"
17@ += 1
goto @DANCE_5339

:DANCE_5219
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B13"
17@ += 1
goto @DANCE_5339

:DANCE_5249
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B14"
17@ += 1
goto @DANCE_5339

:DANCE_5279
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B15"
17@ += 1
goto @DANCE_5339

:DANCE_5309
set_var_text_label16 v$txtCURR_DANCE_MOVE = "DANCE_B16"
17@ += 1
goto @DANCE_5339

:DANCE_5339
task_play_anim_non_interruptable $scplayer {animationName} v$txtCURR_DANCE_MOVE {animationFile} v$txtCURR_DANCE_BLOCK {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
return 

:DANCE_5367
if 
  is_char_playing_anim $scplayer {animationName} v$txtCURR_DANCE_MOVE
goto_if_false @DANCE_5493
12@ = get_char_anim_total_time $scplayer {animationName} v$txtCURR_DANCE_MOVE
11@ = get_char_anim_current_time $scplayer {animationName} v$txtCURR_DANCE_MOVE
cset_lvar_float_to_lvar_int 8@ =# 21@
set_lvar_float_to_lvar_float 0@ = 8@
div_float_lvar_by_float_lvar 0@ /= 12@
add_float_lvar_to_float_lvar 11@ += 0@
if 
  11@ >= 1.0
goto_if_false @DANCE_5477
31@ = 1
return 
goto @DANCE_5486

:DANCE_5477
31@ = -1
return 

:DANCE_5486
goto @DANCE_5502

:DANCE_5493
31@ = 0
return 

:DANCE_5502
return 

:DANCE_5504
if 
  5@ > -1
goto_if_false @DANCE_5690
if 
  is_char_playing_anim 5@ {animationName} v$txtCURR_DANCE_MOVE_P
goto_if_false @DANCE_5632
12@ = get_char_anim_total_time 5@ {animationName} v$txtCURR_DANCE_MOVE_P
11@ = get_char_anim_current_time 5@ {animationName} v$txtCURR_DANCE_MOVE_P
cset_lvar_float_to_lvar_int 8@ =# 21@
set_lvar_float_to_lvar_float 0@ = 8@
div_float_lvar_by_float_lvar 0@ /= 12@
add_float_lvar_to_float_lvar 11@ += 0@
if 
  11@ >= 1.0
goto_if_false @DANCE_5625
gosub @DANCE_7066
return 

:DANCE_5625
goto @DANCE_5690

:DANCE_5632
14@, 13@, 15@ = get_beat_proximity 0
if 
  15@ == 0
goto_if_false @DANCE_5690
if 
  25 >= 14@
goto_if_false @DANCE_5690
gosub @DANCE_7066
return 

:DANCE_5690
return 

:DANCE_5692
19@ = get_game_timer 
set_lvar_int_to_lvar_int 21@ = 19@
sub_int_lvar_from_int_lvar 21@ -= 20@
set_lvar_int_to_lvar_int 20@ = 19@
return 

:DANCE_5723
gosub @DANCE_5367
if 
  31@ == 1
goto_if_false @DANCE_5826
if or
  22@ == 1
  22@ == 2
  22@ == 3
  22@ == 8
goto_if_false @DANCE_5810
gosub @DANCE_4113
31@ = -1
return 
goto @DANCE_5826

:DANCE_5810
gosub @DANCE_4740
31@ = -1
return 

:DANCE_5826
return 

:DANCE_5828
switch_start 17@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_6881 {caseNum1} -1 {caseLabel1} @DANCE_5891 {caseNum2} 4 {caseLabel2} @DANCE_6089 {caseNum3} 8 {caseLabel3} @DANCE_6287 {caseNum4} 12 {caseLabel4} @DANCE_6485 {caseNum5} 16 {caseLabel5} @DANCE_6683 {caseNum6} -1 {caseLabel6} @DANCE_6881 {caseNum7} -1 {caseLabel7} @DANCE_6881

:DANCE_5891
if and
  5@ == -1
  $fDanceCameraX[0] > 0.0
goto_if_false @DANCE_5965
set_fixed_camera_position $fDanceCameraX[0] {y} $fDanceCameraY[0] {z} $fDanceCameraZ[0] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $fDanceTargetX[0] {y} $fDanceTargetY[0] {z} $fDanceTargetZ[0] {switchStyle} SwitchType.JumpCut
goto @DANCE_6082

:DANCE_5965
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -2.3176 {yOffset} 0.9635 {zOffset} 0.5141
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.3381 {yOffset} 0.8235 {zOffset} 0.6587
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6082
goto @DANCE_6881

:DANCE_6089
if and
  5@ == -1
  $fDanceCameraX[1] > 0.0
goto_if_false @DANCE_6163
set_fixed_camera_position $fDanceCameraX[1] {y} $fDanceCameraY[1] {z} $fDanceCameraZ[1] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $fDanceTargetX[1] {y} $fDanceTargetY[1] {z} $fDanceTargetZ[1] {switchStyle} SwitchType.JumpCut
goto @DANCE_6280

:DANCE_6163
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 3.5814 {yOffset} 0.8987 {zOffset} 0.6651
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 2.6071 {yOffset} 0.853 {zOffset} 0.8857
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6280
goto @DANCE_6881

:DANCE_6287
if and
  5@ == -1
  $fDanceCameraX[2] > 0.0
goto_if_false @DANCE_6361
set_fixed_camera_position $fDanceCameraX[2] {y} $fDanceCameraY[2] {z} $fDanceCameraZ[2] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $fDanceTargetX[2] {y} $fDanceTargetY[2] {z} $fDanceTargetZ[2] {switchStyle} SwitchType.JumpCut
goto @DANCE_6478

:DANCE_6361
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.3843 {yOffset} 2.9502 {zOffset} 1.8476
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.461 {yOffset} 2.0089 {zOffset} 1.5188
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6478
goto @DANCE_6881

:DANCE_6485
if and
  5@ == -1
  $fDanceCameraX[3] > 0.0
goto_if_false @DANCE_6559
set_fixed_camera_position $fDanceCameraX[3] {y} $fDanceCameraY[3] {z} $fDanceCameraZ[3] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $fDanceTargetX[3] {y} $fDanceTargetY[3] {z} $fDanceTargetZ[3] {switchStyle} SwitchType.JumpCut
goto @DANCE_6676

:DANCE_6559
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -2.2621 {yOffset} 0.1226 {zOffset} 0.6863
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.2706 {yOffset} 0.1649 {zOffset} 0.8096
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6676
goto @DANCE_6881

:DANCE_6683
if and
  5@ == -1
  $fDanceCameraX[4] > 0.0
goto_if_false @DANCE_6757
set_fixed_camera_position $fDanceCameraX[4] {y} $fDanceCameraY[4] {z} $fDanceCameraZ[4] {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $fDanceTargetX[4] {y} $fDanceTargetY[4] {z} $fDanceTargetZ[4] {switchStyle} SwitchType.JumpCut
goto @DANCE_6874

:DANCE_6757
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -1.6647 {yOffset} 1.7322 {zOffset} 2.3217
0@, 1@, 2@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.8677 {yOffset} 1.3108 {zOffset} 1.889
10@ -= 1.0
2@ -= 1.0
set_fixed_camera_position 8@ {y} 9@ {z} 10@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 0@ {y} 1@ {z} 2@ {switchStyle} SwitchType.JumpCut

:DANCE_6874
goto @DANCE_6881

:DANCE_6881
return 

:DANCE_6883
if 
  5@ <> -1
goto_if_false @DANCE_7064
8@, 9@, 10@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 1.0 {yOffset} 1.3 {zOffset} 0.0
10@ = get_ground_z_for_3d_coord 8@ {y} 9@ {z} 10@
if 
  is_char_dead 5@
goto_if_false @DANCE_6974
gosub @DANCE_7709
goto @DANCE_7017

:DANCE_6974
if 
  is_group_member 5@ {handle} $Players_Group
goto_if_false @DANCE_6998
remove_char_from_group 5@

:DANCE_6998
clear_char_tasks_immediately 5@
set_char_coordinates 5@ {x} 8@ {y} 9@ {z} 10@

:DANCE_7017
if and
  not is_char_dead 5@
  not is_char_dead $scplayer
goto_if_false @DANCE_7064
11@ = get_char_heading $scplayer
11@ += 180.0
set_char_heading 5@ {heading} 11@

:DANCE_7064
return 

:DANCE_7066
switch_start 25@ {numCases} 15 {hasDefaultCase} 1 {defaultLabel} @DANCE_7194 {caseNum1} 2 {caseLabel1} @DANCE_7223 {caseNum2} 3 {caseLabel2} @DANCE_7252 {caseNum3} 4 {caseLabel3} @DANCE_7281 {caseNum4} 5 {caseLabel4} @DANCE_7310 {caseNum5} 6 {caseLabel5} @DANCE_7339 {caseNum6} 7 {caseLabel6} @DANCE_7368 {caseNum7} 8 {caseLabel7} @DANCE_7397
switch_continued 9 {caseLabel1} @DANCE_7426 {caseNum2} 10 {caseLabel2} @DANCE_7455 {caseNum3} 11 {caseLabel3} @DANCE_7485 {caseNum4} 12 {caseLabel4} @DANCE_7515 {caseNum5} 13 {caseLabel5} @DANCE_7545 {caseNum6} 14 {caseLabel6} @DANCE_7575 {caseNum7} 15 {caseLabel7} @DANCE_7605 {caseNum8} 16 {caseLabel8} @DANCE_7635 {caseNum9} -1 {caseLabel9} @DANCE_7665

:DANCE_7194
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G1"
25@ = 2
goto @DANCE_7665

:DANCE_7223
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G2"
25@ += 1
goto @DANCE_7665

:DANCE_7252
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G3"
25@ += 1
goto @DANCE_7665

:DANCE_7281
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G4"
25@ += 1
goto @DANCE_7665

:DANCE_7310
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G5"
25@ += 1
goto @DANCE_7665

:DANCE_7339
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G6"
25@ += 1
goto @DANCE_7665

:DANCE_7368
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G7"
25@ += 1
goto @DANCE_7665

:DANCE_7397
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G8"
25@ += 1
goto @DANCE_7665

:DANCE_7426
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G9"
25@ += 1
goto @DANCE_7665

:DANCE_7455
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G10"
25@ += 1
goto @DANCE_7665

:DANCE_7485
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G11"
25@ += 1
goto @DANCE_7665

:DANCE_7515
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G12"
25@ += 1
goto @DANCE_7665

:DANCE_7545
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G13"
25@ += 1
goto @DANCE_7665

:DANCE_7575
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G14"
25@ += 1
goto @DANCE_7665

:DANCE_7605
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G15"
25@ += 1
goto @DANCE_7665

:DANCE_7635
set_var_text_label16 v$txtCURR_DANCE_MOVE_P = "DANCE_G16"
25@ += 1
goto @DANCE_7665

:DANCE_7665
if 
  not is_char_dead 5@
goto_if_false @DANCE_7707
task_play_anim_non_interruptable 5@ {animationName} v$txtCURR_DANCE_MOVE_P {animationFile} v$txtCURR_DANCE_BLOCK {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:DANCE_7707
return 

:DANCE_7709
13@ = generate_random_int_in_range 1 {max} 5
switch_start 13@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @DANCE_8066 {caseNum1} 1 {caseLabel1} @DANCE_7781 {caseNum2} 2 {caseLabel2} @DANCE_7838 {caseNum3} 3 {caseLabel3} @DANCE_7895 {caseNum4} 4 {caseLabel4} @DANCE_7952 {caseNum5} 5 {caseLabel5} @DANCE_8009 {caseNum6} -1 {caseLabel6} @DANCE_8066 {caseNum7} -1 {caseLabel7} @DANCE_8066

:DANCE_7781
if 
  not has_model_loaded 12
goto_if_false @DANCE_7811
request_model 12
wait 0
goto @DANCE_7781

:DANCE_7811
5@ = create_char PedType.CivFemale {modelId} 12 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_8066

:DANCE_7838
if 
  not has_model_loaded 56
goto_if_false @DANCE_7868
request_model 56
wait 0
goto @DANCE_7838

:DANCE_7868
5@ = create_char PedType.CivFemale {modelId} 56 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_8066

:DANCE_7895
if 
  not has_model_loaded 93
goto_if_false @DANCE_7925
request_model 93
wait 0
goto @DANCE_7895

:DANCE_7925
5@ = create_char PedType.CivFemale {modelId} 93 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_8066

:DANCE_7952
if 
  not has_model_loaded 40
goto_if_false @DANCE_7982
request_model 40
wait 0
goto @DANCE_7952

:DANCE_7982
5@ = create_char PedType.CivFemale {modelId} 40 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_8066

:DANCE_8009
if 
  not has_model_loaded 91
goto_if_false @DANCE_8039
request_model 91
wait 0
goto @DANCE_8009

:DANCE_8039
5@ = create_char PedType.CivFemale {modelId} 91 {x} 8@ {y} 9@ {z} 10@
return 
goto @DANCE_8066

:DANCE_8066
return 

:DANCE_8068
if 
  not is_var_text_label16_empty v$txtCURR_DANCE_MOVE
goto_if_false @DANCE_8129
14@, 13@, 15@ = get_beat_proximity 0
if 
  13@ == 33
goto_if_false @DANCE_8129
6@ = 2
7@ = 0

:DANCE_8129
return 

:DANCE_8131
switch_start 24@ {numCases} 2 {hasDefaultCase} 1 {defaultLabel} @DANCE_8194 {caseNum1} 2 {caseLabel1} @DANCE_8446 {caseNum2} 3 {caseLabel2} @DANCE_8698 {caseNum3} -1 {caseLabel3} @DANCE_8950 {caseNum4} -1 {caseLabel4} @DANCE_8950 {caseNum5} -1 {caseLabel5} @DANCE_8950 {caseNum6} -1 {caseLabel6} @DANCE_8950 {caseNum7} -1 {caseLabel7} @DANCE_8950

:DANCE_8194
if 
  22@ == 1
goto_if_false @DANCE_8228
print_big 'DNC_005' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8228
if 
  22@ == 2
goto_if_false @DANCE_8262
print_big 'DNC_006' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8262
if 
  22@ == 3
goto_if_false @DANCE_8296
print_big 'DNC_007' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8296
if 
  22@ == 0
goto_if_false @DANCE_8330
print_big 'DNC_008' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8330
if 
  22@ == 4
goto_if_false @DANCE_8364
print_big 'DNC_009' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8364
if 
  22@ == 10
goto_if_false @DANCE_8398
print_big 'DNC_010' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8398
if 
  22@ == 11
goto_if_false @DANCE_8432
print_big 'DNC_011' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8432
24@ = 2
goto @DANCE_8950

:DANCE_8446
if 
  22@ == 1
goto_if_false @DANCE_8480
print_big 'DNC_012' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8480
if 
  22@ == 2
goto_if_false @DANCE_8514
print_big 'DNC_013' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8514
if 
  22@ == 3
goto_if_false @DANCE_8548
print_big 'DNC_014' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8548
if 
  22@ == 0
goto_if_false @DANCE_8582
print_big 'DNC_015' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8582
if 
  22@ == 4
goto_if_false @DANCE_8616
print_big 'DNC_016' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8616
if 
  22@ == 10
goto_if_false @DANCE_8650
print_big 'DNC_017' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8650
if 
  22@ == 11
goto_if_false @DANCE_8684
print_big 'DNC_018' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8684
24@ += 1
goto @DANCE_8950

:DANCE_8698
if 
  22@ == 1
goto_if_false @DANCE_8732
print_big 'DNC_019' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8732
if 
  22@ == 2
goto_if_false @DANCE_8766
print_big 'DNC_020' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8766
if 
  22@ == 3
goto_if_false @DANCE_8800
print_big 'DNC_021' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8800
if 
  22@ == 0
goto_if_false @DANCE_8834
print_big 'DNC_022' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8834
if 
  22@ == 4
goto_if_false @DANCE_8868
print_big 'DNC_023' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8868
if 
  22@ == 10
goto_if_false @DANCE_8902
print_big 'DNC_024' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8902
if 
  22@ == 11
goto_if_false @DANCE_8936
print_big 'DNC_025' {time} 1000 {style} TextStyle.MiddleSmallerHigher

:DANCE_8936
24@ += 1
goto @DANCE_8950

:DANCE_8950
return 

:DANCE_8952
set_lvar_int_to_lvar_int 13@ = 26@
add_int_lvar_to_int_lvar 13@ += 27@
add_int_lvar_to_int_lvar 13@ += 28@
if 
  13@ > 0
goto_if_false @DANCE_9477
if 
  13@ >= 4
goto_if_false @DANCE_9477
if 
  28@ == 4
goto_if_false @DANCE_9147
if or
  29@ == 1
  29@ == 2
goto_if_false @DANCE_9101
$iDance_SpeechRequest = 2
TIMERA = 0
print_big 'DNC_002' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 2
goto @DANCE_9140

:DANCE_9101
$iDance_SpeechRequest = 2
TIMERA = 0
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 1

:DANCE_9140
goto @DANCE_9456

:DANCE_9147
if 
  is_int_lvar_greater_than_int_lvar 26@ > 27@
goto_if_false @DANCE_9270
if 
  29@ <> 1
goto_if_false @DANCE_9205
$iDance_SpeechRequest = 4
TIMERA = 0
goto @DANCE_9238

:DANCE_9205
if 
  TIMERA >= 10000
goto_if_false @DANCE_9238
$iDance_SpeechRequest = 4
TIMERA = 0

:DANCE_9238
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 1
goto @DANCE_9456

:DANCE_9270
if 
  29@ == 2
goto_if_false @DANCE_9334
$iDance_SpeechRequest = 3
TIMERA = 0
print_big 'DNC_004' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 1
goto @DANCE_9456

:DANCE_9334
if 
  29@ == 1
goto_if_false @DANCE_9398
$iDance_SpeechRequest = 5
TIMERA = 0
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 0
goto @DANCE_9456

:DANCE_9398
if 
  TIMERA >= 10000
goto_if_false @DANCE_9431
$iDance_SpeechRequest = 5
TIMERA = 0

:DANCE_9431
print_big 'DNC_003' {time} 50000 {style} TextStyle.LightBlueTop
29@ = 0

:DANCE_9456
28@ = 0
26@ = 0
27@ = 0

:DANCE_9477
return 

:DANCE_9479
set_text_right_justify False
set_text_proportional True
set_text_background True
set_text_scale 0.5014 {heightScale} 1.8889
set_text_edge 2 {red} 0 {green} 0 {blue} 0 {alpha} 255
if 
  6@ == 3
goto_if_false @DANCE_9569
set_text_wrapx 240.0
display_text 32.0 {offsetTop} 32.0 {key} 'DNC_H2'
goto @DANCE_9615

:DANCE_9569
if 
  6@ <> 2
goto_if_false @DANCE_9615
set_text_wrapx 220.0
display_text 32.0 {offsetTop} 32.0 {key} 'DNC_H1'

:DANCE_9615
return 

:DANCE_9617
switch_start $iDance_SpeechState {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @DANCE_10043 {caseNum1} 0 {caseLabel1} @DANCE_9680 {caseNum2} 1 {caseLabel2} @DANCE_10003 {caseNum3} 6 {caseLabel3} @DANCE_9843 {caseNum4} 8 {caseLabel4} @DANCE_9883 {caseNum5} 9 {caseLabel5} @DANCE_9923 {caseNum6} 10 {caseLabel6} @DANCE_9963 {caseNum7} -1 {caseLabel7} @DANCE_10043

:DANCE_9680
if 
  $iDance_SpeechRequest == 2
goto_if_false @DANCE_9719
$iDance_SpeechState = 6
$iDance_SpeechRequest = -1
goto @DANCE_10043

:DANCE_9719
if 
  $iDance_SpeechRequest == 3
goto_if_false @DANCE_9758
$iDance_SpeechState = 8
$iDance_SpeechRequest = -1
goto @DANCE_10043

:DANCE_9758
if 
  $iDance_SpeechRequest == 4
goto_if_false @DANCE_9797
$iDance_SpeechState = 9
$iDance_SpeechRequest = -1
goto @DANCE_10043

:DANCE_9797
if 
  $iDance_SpeechRequest == 5
goto_if_false @DANCE_9836
$iDance_SpeechState = 10
$iDance_SpeechRequest = -1
goto @DANCE_10043

:DANCE_9836
goto @DANCE_10043

:DANCE_9843
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9876
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_10045
$iDance_SpeechState = 1

:DANCE_9876
goto @DANCE_10043

:DANCE_9883
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9916
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_11697
$iDance_SpeechState = 1

:DANCE_9916
goto @DANCE_10043

:DANCE_9923
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9956
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_13349
$iDance_SpeechState = 1

:DANCE_9956
goto @DANCE_10043

:DANCE_9963
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @DANCE_9996
clear_mission_audio MissionAudioSlot.Slot4
gosub @DANCE_15001
$iDance_SpeechState = 1

:DANCE_9996
goto @DANCE_10043

:DANCE_10003
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @DANCE_10036
attach_mission_audio_to_char MissionAudioSlot.Slot4 {handle} $scplayer
play_mission_audio MissionAudioSlot.Slot4
$iDance_SpeechState = 0

:DANCE_10036
goto @DANCE_10043

:DANCE_10043
return 

:DANCE_10045
switch_start $iDance_SpeechCounter {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_10498 {caseNum1} 1 {caseLabel1} @DANCE_10519 {caseNum2} 2 {caseLabel2} @DANCE_10540 {caseNum3} 3 {caseLabel3} @DANCE_10561 {caseNum4} 4 {caseLabel4} @DANCE_10582 {caseNum5} 5 {caseLabel5} @DANCE_10603 {caseNum6} 6 {caseLabel6} @DANCE_10624 {caseNum7} 7 {caseLabel7} @DANCE_10645
switch_continued 8 {caseLabel1} @DANCE_10666 {caseNum2} 9 {caseLabel2} @DANCE_10687 {caseNum3} 10 {caseLabel3} @DANCE_10708 {caseNum4} 11 {caseLabel4} @DANCE_10729 {caseNum5} 12 {caseLabel5} @DANCE_10750 {caseNum6} 13 {caseLabel6} @DANCE_10771 {caseNum7} 14 {caseLabel7} @DANCE_10792 {caseNum8} 15 {caseLabel8} @DANCE_10813 {caseNum9} 16 {caseLabel9} @DANCE_10834
switch_continued 17 {caseLabel1} @DANCE_10855 {caseNum2} 18 {caseLabel2} @DANCE_10876 {caseNum3} 19 {caseLabel3} @DANCE_10897 {caseNum4} 20 {caseLabel4} @DANCE_10918 {caseNum5} 21 {caseLabel5} @DANCE_10939 {caseNum6} 22 {caseLabel6} @DANCE_10960 {caseNum7} 23 {caseLabel7} @DANCE_10981 {caseNum8} 24 {caseLabel8} @DANCE_11002 {caseNum9} 25 {caseLabel9} @DANCE_11023
switch_continued 26 {caseLabel1} @DANCE_11044 {caseNum2} 27 {caseLabel2} @DANCE_11065 {caseNum3} 28 {caseLabel3} @DANCE_11086 {caseNum4} 29 {caseLabel4} @DANCE_11107 {caseNum5} 30 {caseLabel5} @DANCE_11128 {caseNum6} 31 {caseLabel6} @DANCE_11149 {caseNum7} 32 {caseLabel7} @DANCE_11170 {caseNum8} 33 {caseLabel8} @DANCE_11191 {caseNum9} 34 {caseLabel9} @DANCE_11212
switch_continued 35 {caseLabel1} @DANCE_11233 {caseNum2} 36 {caseLabel2} @DANCE_11254 {caseNum3} 37 {caseLabel3} @DANCE_11275 {caseNum4} 38 {caseLabel4} @DANCE_11296 {caseNum5} 39 {caseLabel5} @DANCE_11317 {caseNum6} 40 {caseLabel6} @DANCE_11338 {caseNum7} 41 {caseLabel7} @DANCE_11359 {caseNum8} 42 {caseLabel8} @DANCE_11380 {caseNum9} 43 {caseLabel9} @DANCE_11401
switch_continued 44 {caseLabel1} @DANCE_11422 {caseNum2} 45 {caseLabel2} @DANCE_11443 {caseNum3} 46 {caseLabel3} @DANCE_11464 {caseNum4} 47 {caseLabel4} @DANCE_11485 {caseNum5} 48 {caseLabel5} @DANCE_11506 {caseNum6} 49 {caseLabel6} @DANCE_11527 {caseNum7} 50 {caseLabel7} @DANCE_11548 {caseNum8} 51 {caseLabel8} @DANCE_11569 {caseNum9} 52 {caseLabel9} @DANCE_11590
switch_continued 53 {caseLabel1} @DANCE_11611 {caseNum2} 54 {caseLabel2} @DANCE_11632 {caseNum3} 55 {caseLabel3} @DANCE_11653 {caseNum4} 56 {caseLabel4} @DANCE_11674 {caseNum5} -1 {caseLabel5} @DANCE_11695 {caseNum6} -1 {caseLabel6} @DANCE_11695 {caseNum7} -1 {caseLabel7} @DANCE_11695 {caseNum8} -1 {caseLabel8} @DANCE_11695 {caseNum9} -1 {caseLabel9} @DANCE_11695

:DANCE_10498
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11455
$iDance_SpeechCounter = 1
goto @DANCE_11695

:DANCE_10519
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11400
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10540
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11401
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10561
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11402
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10582
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11403
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10603
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11404
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10624
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11405
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10645
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11406
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10666
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11407
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10687
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11408
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10708
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11409
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10729
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11410
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10750
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11411
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10771
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11412
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10792
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11413
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10813
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11414
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10834
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11415
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10855
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11416
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10876
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11417
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10897
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11418
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10918
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11419
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10939
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11420
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10960
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11421
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_10981
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11422
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11002
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11423
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11023
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11424
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11044
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11425
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11065
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11426
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11086
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11427
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11107
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11428
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11128
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11429
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11149
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11430
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11170
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11431
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11191
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11432
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11212
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11433
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11233
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11434
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11254
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11435
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11275
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11436
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11296
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11437
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11317
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11438
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11338
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11439
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11359
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11440
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11380
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11441
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11401
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11442
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11422
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11443
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11443
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11444
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11464
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11445
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11485
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11446
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11506
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11447
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11527
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11448
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11548
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11449
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11569
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11450
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11590
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11451
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11611
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11452
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11632
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11453
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11653
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11454
$iDance_SpeechCounter += 1
goto @DANCE_11695

:DANCE_11674
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11455
$iDance_SpeechCounter = 1
goto @DANCE_11695

:DANCE_11695
return 

:DANCE_11697
switch_start $iDance_SpeechCounter {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_12150 {caseNum1} 1 {caseLabel1} @DANCE_12171 {caseNum2} 2 {caseLabel2} @DANCE_12192 {caseNum3} 3 {caseLabel3} @DANCE_12213 {caseNum4} 4 {caseLabel4} @DANCE_12234 {caseNum5} 5 {caseLabel5} @DANCE_12255 {caseNum6} 6 {caseLabel6} @DANCE_12276 {caseNum7} 7 {caseLabel7} @DANCE_12297
switch_continued 8 {caseLabel1} @DANCE_12318 {caseNum2} 9 {caseLabel2} @DANCE_12339 {caseNum3} 10 {caseLabel3} @DANCE_12360 {caseNum4} 11 {caseLabel4} @DANCE_12381 {caseNum5} 12 {caseLabel5} @DANCE_12402 {caseNum6} 13 {caseLabel6} @DANCE_12423 {caseNum7} 14 {caseLabel7} @DANCE_12444 {caseNum8} 15 {caseLabel8} @DANCE_12465 {caseNum9} 16 {caseLabel9} @DANCE_12486
switch_continued 17 {caseLabel1} @DANCE_12507 {caseNum2} 18 {caseLabel2} @DANCE_12528 {caseNum3} 19 {caseLabel3} @DANCE_12549 {caseNum4} 20 {caseLabel4} @DANCE_12570 {caseNum5} 21 {caseLabel5} @DANCE_12591 {caseNum6} 22 {caseLabel6} @DANCE_12612 {caseNum7} 23 {caseLabel7} @DANCE_12633 {caseNum8} 24 {caseLabel8} @DANCE_12654 {caseNum9} 25 {caseLabel9} @DANCE_12675
switch_continued 26 {caseLabel1} @DANCE_12696 {caseNum2} 27 {caseLabel2} @DANCE_12717 {caseNum3} 28 {caseLabel3} @DANCE_12738 {caseNum4} 29 {caseLabel4} @DANCE_12759 {caseNum5} 30 {caseLabel5} @DANCE_12780 {caseNum6} 31 {caseLabel6} @DANCE_12801 {caseNum7} 32 {caseLabel7} @DANCE_12822 {caseNum8} 33 {caseLabel8} @DANCE_12843 {caseNum9} 34 {caseLabel9} @DANCE_12864
switch_continued 35 {caseLabel1} @DANCE_12885 {caseNum2} 36 {caseLabel2} @DANCE_12906 {caseNum3} 37 {caseLabel3} @DANCE_12927 {caseNum4} 38 {caseLabel4} @DANCE_12948 {caseNum5} 39 {caseLabel5} @DANCE_12969 {caseNum6} 40 {caseLabel6} @DANCE_12990 {caseNum7} 41 {caseLabel7} @DANCE_13011 {caseNum8} 42 {caseLabel8} @DANCE_13032 {caseNum9} 43 {caseLabel9} @DANCE_13053
switch_continued 44 {caseLabel1} @DANCE_13074 {caseNum2} 45 {caseLabel2} @DANCE_13095 {caseNum3} 46 {caseLabel3} @DANCE_13116 {caseNum4} 47 {caseLabel4} @DANCE_13137 {caseNum5} 48 {caseLabel5} @DANCE_13158 {caseNum6} 49 {caseLabel6} @DANCE_13179 {caseNum7} 50 {caseLabel7} @DANCE_13200 {caseNum8} 51 {caseLabel8} @DANCE_13221 {caseNum9} 52 {caseLabel9} @DANCE_13242
switch_continued 53 {caseLabel1} @DANCE_13263 {caseNum2} 54 {caseLabel2} @DANCE_13284 {caseNum3} 55 {caseLabel3} @DANCE_13305 {caseNum4} 56 {caseLabel4} @DANCE_13326 {caseNum5} -1 {caseLabel5} @DANCE_13347 {caseNum6} -1 {caseLabel6} @DANCE_13347 {caseNum7} -1 {caseLabel7} @DANCE_13347 {caseNum8} -1 {caseLabel8} @DANCE_13347 {caseNum9} -1 {caseLabel9} @DANCE_13347

:DANCE_12150
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11655
$iDance_SpeechCounter = 1
goto @DANCE_13347

:DANCE_12171
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11600
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12192
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11601
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12213
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11602
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12234
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11603
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12255
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11604
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12276
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11605
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12297
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11606
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12318
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11607
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12339
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11608
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12360
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11609
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12381
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11610
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12402
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11611
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12423
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11612
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12444
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11613
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12465
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11614
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12486
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11615
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12507
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11616
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12528
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11617
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12549
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11618
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12570
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11619
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12591
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11620
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12612
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11621
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12633
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11622
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12654
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11623
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12675
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11624
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12696
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11625
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12717
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11626
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12738
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11627
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12759
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11628
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12780
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11629
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12801
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11630
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12822
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11631
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12843
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11632
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12864
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11633
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12885
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11634
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12906
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11635
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12927
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11636
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12948
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11637
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12969
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11638
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_12990
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11639
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13011
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11640
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13032
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11641
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13053
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11642
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13074
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11643
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13095
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11644
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13116
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11645
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13137
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11646
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13158
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11647
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13179
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11648
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13200
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11649
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13221
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11650
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13242
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11651
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13263
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11652
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13284
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11653
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13305
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11654
$iDance_SpeechCounter += 1
goto @DANCE_13347

:DANCE_13326
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11655
$iDance_SpeechCounter = 1
goto @DANCE_13347

:DANCE_13347
return 

:DANCE_13349
switch_start $iDance_SpeechCounter {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_13802 {caseNum1} 1 {caseLabel1} @DANCE_13823 {caseNum2} 2 {caseLabel2} @DANCE_13844 {caseNum3} 3 {caseLabel3} @DANCE_13865 {caseNum4} 4 {caseLabel4} @DANCE_13886 {caseNum5} 5 {caseLabel5} @DANCE_13907 {caseNum6} 6 {caseLabel6} @DANCE_13928 {caseNum7} 7 {caseLabel7} @DANCE_13949
switch_continued 8 {caseLabel1} @DANCE_13970 {caseNum2} 9 {caseLabel2} @DANCE_13991 {caseNum3} 10 {caseLabel3} @DANCE_14012 {caseNum4} 11 {caseLabel4} @DANCE_14033 {caseNum5} 12 {caseLabel5} @DANCE_14054 {caseNum6} 13 {caseLabel6} @DANCE_14075 {caseNum7} 14 {caseLabel7} @DANCE_14096 {caseNum8} 15 {caseLabel8} @DANCE_14117 {caseNum9} 16 {caseLabel9} @DANCE_14138
switch_continued 17 {caseLabel1} @DANCE_14159 {caseNum2} 18 {caseLabel2} @DANCE_14180 {caseNum3} 19 {caseLabel3} @DANCE_14201 {caseNum4} 20 {caseLabel4} @DANCE_14222 {caseNum5} 21 {caseLabel5} @DANCE_14243 {caseNum6} 22 {caseLabel6} @DANCE_14264 {caseNum7} 23 {caseLabel7} @DANCE_14285 {caseNum8} 24 {caseLabel8} @DANCE_14306 {caseNum9} 25 {caseLabel9} @DANCE_14327
switch_continued 26 {caseLabel1} @DANCE_14348 {caseNum2} 27 {caseLabel2} @DANCE_14369 {caseNum3} 28 {caseLabel3} @DANCE_14390 {caseNum4} 29 {caseLabel4} @DANCE_14411 {caseNum5} 30 {caseLabel5} @DANCE_14432 {caseNum6} 31 {caseLabel6} @DANCE_14453 {caseNum7} 32 {caseLabel7} @DANCE_14474 {caseNum8} 33 {caseLabel8} @DANCE_14495 {caseNum9} 34 {caseLabel9} @DANCE_14516
switch_continued 35 {caseLabel1} @DANCE_14537 {caseNum2} 36 {caseLabel2} @DANCE_14558 {caseNum3} 37 {caseLabel3} @DANCE_14579 {caseNum4} 38 {caseLabel4} @DANCE_14600 {caseNum5} 39 {caseLabel5} @DANCE_14621 {caseNum6} 40 {caseLabel6} @DANCE_14642 {caseNum7} 41 {caseLabel7} @DANCE_14663 {caseNum8} 42 {caseLabel8} @DANCE_14684 {caseNum9} 43 {caseLabel9} @DANCE_14705
switch_continued 44 {caseLabel1} @DANCE_14726 {caseNum2} 45 {caseLabel2} @DANCE_14747 {caseNum3} 46 {caseLabel3} @DANCE_14768 {caseNum4} 47 {caseLabel4} @DANCE_14789 {caseNum5} 48 {caseLabel5} @DANCE_14810 {caseNum6} 49 {caseLabel6} @DANCE_14831 {caseNum7} 50 {caseLabel7} @DANCE_14852 {caseNum8} 51 {caseLabel8} @DANCE_14873 {caseNum9} 52 {caseLabel9} @DANCE_14894
switch_continued 53 {caseLabel1} @DANCE_14915 {caseNum2} 54 {caseLabel2} @DANCE_14936 {caseNum3} 55 {caseLabel3} @DANCE_14957 {caseNum4} 56 {caseLabel4} @DANCE_14978 {caseNum5} -1 {caseLabel5} @DANCE_14999 {caseNum6} -1 {caseLabel6} @DANCE_14999 {caseNum7} -1 {caseLabel7} @DANCE_14999 {caseNum8} -1 {caseLabel8} @DANCE_14999 {caseNum9} -1 {caseLabel9} @DANCE_14999

:DANCE_13802
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11855
$iDance_SpeechCounter = 1
goto @DANCE_14999

:DANCE_13823
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11800
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13844
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11801
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13865
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11802
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13886
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11803
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13907
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11804
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13928
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11805
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13949
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11806
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13970
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11807
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_13991
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11808
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14012
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11809
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14033
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11810
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14054
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11811
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14075
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11812
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14096
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11813
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14117
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11814
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14138
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11815
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14159
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11816
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14180
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11817
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14201
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11818
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14222
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11819
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14243
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11820
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14264
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11821
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14285
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11822
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14306
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11823
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14327
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11824
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14348
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11825
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14369
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11826
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14390
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11827
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14411
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11828
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14432
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11829
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14453
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11830
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14474
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11831
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14495
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11832
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14516
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11833
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14537
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11834
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14558
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11835
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14579
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11836
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14600
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11837
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14621
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11838
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14642
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11839
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14663
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11840
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14684
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11841
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14705
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11842
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14726
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11843
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14747
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11844
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14768
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11845
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14789
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11846
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14810
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11847
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14831
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11848
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14852
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11849
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14873
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11850
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14894
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11851
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14915
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11852
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14936
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11853
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14957
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11854
$iDance_SpeechCounter += 1
goto @DANCE_14999

:DANCE_14978
load_mission_audio MissionAudioSlot.Slot4 {audioId} 11855
$iDance_SpeechCounter = 1
goto @DANCE_14999

:DANCE_14999
return 

:DANCE_15001
switch_start $iDance_SpeechCounter {numCases} 56 {hasDefaultCase} 1 {defaultLabel} @DANCE_15454 {caseNum1} 1 {caseLabel1} @DANCE_15475 {caseNum2} 2 {caseLabel2} @DANCE_15496 {caseNum3} 3 {caseLabel3} @DANCE_15517 {caseNum4} 4 {caseLabel4} @DANCE_15538 {caseNum5} 5 {caseLabel5} @DANCE_15559 {caseNum6} 6 {caseLabel6} @DANCE_15580 {caseNum7} 7 {caseLabel7} @DANCE_15601
switch_continued 8 {caseLabel1} @DANCE_15622 {caseNum2} 9 {caseLabel2} @DANCE_15643 {caseNum3} 10 {caseLabel3} @DANCE_15664 {caseNum4} 11 {caseLabel4} @DANCE_15685 {caseNum5} 12 {caseLabel5} @DANCE_15706 {caseNum6} 13 {caseLabel6} @DANCE_15727 {caseNum7} 14 {caseLabel7} @DANCE_15748 {caseNum8} 15 {caseLabel8} @DANCE_15769 {caseNum9} 16 {caseLabel9} @DANCE_15790
switch_continued 17 {caseLabel1} @DANCE_15811 {caseNum2} 18 {caseLabel2} @DANCE_15832 {caseNum3} 19 {caseLabel3} @DANCE_15853 {caseNum4} 20 {caseLabel4} @DANCE_15874 {caseNum5} 21 {caseLabel5} @DANCE_15895 {caseNum6} 22 {caseLabel6} @DANCE_15916 {caseNum7} 23 {caseLabel7} @DANCE_15937 {caseNum8} 24 {caseLabel8} @DANCE_15958 {caseNum9} 25 {caseLabel9} @DANCE_15979
switch_continued 26 {caseLabel1} @DANCE_16000 {caseNum2} 27 {caseLabel2} @DANCE_16021 {caseNum3} 28 {caseLabel3} @DANCE_16042 {caseNum4} 29 {caseLabel4} @DANCE_16063 {caseNum5} 30 {caseLabel5} @DANCE_16084 {caseNum6} 31 {caseLabel6} @DANCE_16105 {caseNum7} 32 {caseLabel7} @DANCE_16126 {caseNum8} 33 {caseLabel8} @DANCE_16147 {caseNum9} 34 {caseLabel9} @DANCE_16168
switch_continued 35 {caseLabel1} @DANCE_16189 {caseNum2} 36 {caseLabel2} @DANCE_16210 {caseNum3} 37 {caseLabel3} @DANCE_16231 {caseNum4} 38 {caseLabel4} @DANCE_16252 {caseNum5} 39 {caseLabel5} @DANCE_16273 {caseNum6} 40 {caseLabel6} @DANCE_16294 {caseNum7} 41 {caseLabel7} @DANCE_16315 {caseNum8} 42 {caseLabel8} @DANCE_16336 {caseNum9} 43 {caseLabel9} @DANCE_16357
switch_continued 44 {caseLabel1} @DANCE_16378 {caseNum2} 45 {caseLabel2} @DANCE_16399 {caseNum3} 46 {caseLabel3} @DANCE_16420 {caseNum4} 47 {caseLabel4} @DANCE_16441 {caseNum5} 48 {caseLabel5} @DANCE_16462 {caseNum6} 49 {caseLabel6} @DANCE_16483 {caseNum7} 50 {caseLabel7} @DANCE_16504 {caseNum8} 51 {caseLabel8} @DANCE_16525 {caseNum9} 52 {caseLabel9} @DANCE_16546
switch_continued 53 {caseLabel1} @DANCE_16567 {caseNum2} 54 {caseLabel2} @DANCE_16588 {caseNum3} 55 {caseLabel3} @DANCE_16609 {caseNum4} 56 {caseLabel4} @DANCE_16630 {caseNum5} -1 {caseLabel5} @DANCE_16651 {caseNum6} -1 {caseLabel6} @DANCE_16651 {caseNum7} -1 {caseLabel7} @DANCE_16651 {caseNum8} -1 {caseLabel8} @DANCE_16651 {caseNum9} -1 {caseLabel9} @DANCE_16651

:DANCE_15454
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12055
$iDance_SpeechCounter = 1
goto @DANCE_16651

:DANCE_15475
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12000
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15496
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12001
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15517
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12002
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15538
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12003
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15559
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12004
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15580
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12005
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15601
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12006
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15622
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12007
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15643
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12008
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15664
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12009
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15685
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12010
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15706
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12011
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15727
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12012
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15748
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12013
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15769
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12014
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15790
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12015
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15811
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12016
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15832
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12017
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15853
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12018
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15874
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12019
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15895
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12020
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15916
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12021
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15937
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12022
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15958
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12023
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_15979
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12024
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16000
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12025
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16021
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12026
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16042
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12027
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16063
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12028
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16084
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12029
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16105
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12030
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16126
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12031
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16147
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12032
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16168
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12033
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16189
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12034
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16210
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12035
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16231
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12036
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16252
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12037
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16273
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12038
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16294
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12039
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16315
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12040
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16336
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12041
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16357
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12042
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16378
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12043
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16399
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12044
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16420
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12045
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16441
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12046
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16462
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12047
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16483
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12048
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16504
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12049
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16525
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12050
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16546
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12051
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16567
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12052
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16588
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12053
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16609
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12054
$iDance_SpeechCounter += 1
goto @DANCE_16651

:DANCE_16630
load_mission_audio MissionAudioSlot.Slot4 {audioId} 12055
$iDance_SpeechCounter = 1
goto @DANCE_16651

:DANCE_16651
return 

:DANCE_16653
$bd_terminate_script = 1
$iTerminateDanceMiniGame = 0
remove_animation v$txtCURR_DANCE_BLOCK
clear_prints 
if 
  not is_char_dead 5@
goto_if_false @DANCE_16767
if and
  not is_char_model 5@ {modelId} 195
  not is_char_model 5@ {modelId} 192
  not is_char_model 5@ {modelId} 191
  not is_char_model 5@ {modelId} 190
  not is_char_model 5@ {modelId} 193
  not is_char_model 5@ {modelId} 194
goto_if_false @DANCE_16767
13@ = get_char_model 5@
mark_model_as_no_longer_needed 13@
delete_char 5@

:DANCE_16767
13@ = get_beat_track_status 
if 
  is_int_lvar_equal_to_constant 13@ == 3
goto_if_false @DANCE_16792
stop_beat_track 

:DANCE_16792
13@ = 0

:DANCE_16799
$fDanceCameraX(13@,5f) = 0.0
$fDanceCameraY(13@,5f) = 0.0
$fDanceCameraZ(13@,5f) = 0.0
$fDanceTargetX(13@,5f) = 0.0
$fDanceTargetY(13@,5f) = 0.0
$fDanceTargetZ(13@,5f) = 0.0
13@ += 1
  13@ >= 5
goto_if_false @DANCE_16799
force_big_message_and_counter False
use_text_commands False
if 
  $iDanceScore >= 0
goto_if_false @DANCE_16938
set_int_stat StatId.LatestDanceScore {value} $iDanceScore

:DANCE_16938
clear_mission_audio MissionAudioSlot.Slot4
set_player_control $player1 {state} True
clear_global_var_bit_const $iDanceReport {bitIndex} 31
set_minigame_in_progress False
terminate_this_script 
return 

:DANCE_16964
$d_lstickx, $d_lsticky, $d_rstickx, $d_rsticky = get_position_of_analogue_sticks PadId.Pad1
cset_var_float_to_var_int $d_temp_float =# $d_lstickx
set_var_float_to_var_float $d_vec_x = $d_temp_float
cset_var_float_to_var_int $d_temp_float =# $d_lsticky
set_var_float_to_var_float $d_vec_y = $d_temp_float
$d_temp_float = get_distance_between_coords_2d 0.0 {fromY} 0.0 {toX} $d_vec_x {toZ} $d_vec_y
$d_player_stick_position = 0
if 
  $d_temp_float > 64.0
goto_if_false @DANCE_17325
$d_temp_float = get_angle_between_2d_vectors $d_vec_x {y1} $d_vec_y {x2} 0.0 {y2} -1.0
if 
  15.0 > $d_temp_float
goto_if_false @DANCE_17117
$d_player_stick_position = 13
goto @DANCE_17325

:DANCE_17117
if 
  75.0 > $d_temp_float
goto_if_false @DANCE_17184
if 
  $d_lstickx > 0
goto_if_false @DANCE_17170
$d_player_stick_position = 11
goto @DANCE_17177

:DANCE_17170
$d_player_stick_position = 15

:DANCE_17177
goto @DANCE_17325

:DANCE_17184
if 
  105.0 > $d_temp_float
goto_if_false @DANCE_17251
if 
  $d_lstickx > 0
goto_if_false @DANCE_17237
$d_player_stick_position = 10
goto @DANCE_17244

:DANCE_17237
$d_player_stick_position = 9

:DANCE_17244
goto @DANCE_17325

:DANCE_17251
if 
  165.0 > $d_temp_float
goto_if_false @DANCE_17318
if 
  $d_lstickx > 0
goto_if_false @DANCE_17304
$d_player_stick_position = 16
goto @DANCE_17311

:DANCE_17304
$d_player_stick_position = 12

:DANCE_17311
goto @DANCE_17325

:DANCE_17318
$d_player_stick_position = 14

:DANCE_17325
return 
write_debug v$txtCURR_DANCE_MOVE
13@, 13@, 13@ = get_beat_proximity 1
write_debug_with_int "NEXT_BEAT_NUMBER" {number} 13@
return 
terminate_this_script 

//-------------External script 36 (SHOPKEEPER)---------------

:SKBRAIN
script_name 'SKBRAIN'
2@ = 0
if 
  2@ == 1
goto_if_false @SKBRAIN_114
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
1@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
6@ = create_object 0 {x} 0.0 {y} 0.0 {z} 0.0

:SKBRAIN_114
if 
  not is_char_dead 0@
goto_if_false @SKBRAIN_138
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalShopkeeperDM

:SKBRAIN_138
request_animation "FOOD"

:SKBRAIN_146
if 
  not has_animation_loaded "FOOD"
goto_if_false @SKBRAIN_176
wait 0
goto @SKBRAIN_146

:SKBRAIN_176
3@ = 1
4@ = 0
5@ = 0
7@ = 0

:SKBRAIN_204
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @SKBRAIN_377
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @SKBRAIN_283
gosub @SKBRAIN_1552
goto @SKBRAIN_370

:SKBRAIN_283
if or
  is_player_targetting_char $player1 {handle} 0@
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @SKBRAIN_331
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_331
delete_object 6@

:SKBRAIN_331
if 
  $iSetPizzaPanic == 0
goto_if_false @SKBRAIN_363
gosub @SKBRAIN_391
goto @SKBRAIN_370

:SKBRAIN_363
goto @SKBRAIN_1590

:SKBRAIN_370
goto @SKBRAIN_384

:SKBRAIN_377
gosub @SKBRAIN_1552

:SKBRAIN_384
goto @SKBRAIN_204

:SKBRAIN_391
switch_start 3@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_496 {caseNum1} 1 {caseLabel1} @SKBRAIN_454 {caseNum2} 2 {caseLabel2} @SKBRAIN_468 {caseNum3} 3 {caseLabel3} @SKBRAIN_482 {caseNum4} -1 {caseLabel4} @SKBRAIN_496 {caseNum5} -1 {caseLabel5} @SKBRAIN_496 {caseNum6} -1 {caseLabel6} @SKBRAIN_496 {caseNum7} -1 {caseLabel7} @SKBRAIN_496

:SKBRAIN_454
gosub @SKBRAIN_498
goto @SKBRAIN_496

:SKBRAIN_468
gosub @SKBRAIN_841
goto @SKBRAIN_496

:SKBRAIN_482
gosub @SKBRAIN_1185
goto @SKBRAIN_496

:SKBRAIN_496
return 

:SKBRAIN_498
switch_start 4@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_839 {caseNum1} 0 {caseLabel1} @SKBRAIN_561 {caseNum2} 1 {caseLabel2} @SKBRAIN_737 {caseNum3} -1 {caseLabel3} @SKBRAIN_839 {caseNum4} -1 {caseLabel4} @SKBRAIN_839 {caseNum5} -1 {caseLabel5} @SKBRAIN_839 {caseNum6} -1 {caseLabel6} @SKBRAIN_839 {caseNum7} -1 {caseLabel7} @SKBRAIN_839

:SKBRAIN_561
13@, 14@, 15@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 13@ {y} 14@ {z} 15@ {radius} 20.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ > -1
goto_if_false @SKBRAIN_730
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} -5.0 {yOffset} -5.0 {zOffset} -5.0
6@ = create_object #PIZZAHIGH {x} 10@ {y} 11@ {z} 12@
task_play_anim 0@ {animationName} "SHP_TRAY_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:SKBRAIN_730
goto @SKBRAIN_839

:SKBRAIN_737
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHP_TRAY_IN"
goto_if_false @SKBRAIN_832
9@ = get_char_anim_current_time 0@ {animationName} "SHP_TRAY_IN"
if 
  9@ == 1.0
goto_if_false @SKBRAIN_832
4@ = 0
3@ += 1

:SKBRAIN_832
goto @SKBRAIN_839

:SKBRAIN_839
return 

:SKBRAIN_841
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_1183 {caseNum1} 0 {caseLabel1} @SKBRAIN_904 {caseNum2} 1 {caseLabel2} @SKBRAIN_1044 {caseNum3} 2 {caseLabel3} @SKBRAIN_1143 {caseNum4} -1 {caseLabel4} @SKBRAIN_1183 {caseNum5} -1 {caseLabel5} @SKBRAIN_1183 {caseNum6} -1 {caseLabel6} @SKBRAIN_1183 {caseNum7} -1 {caseLabel7} @SKBRAIN_1183

:SKBRAIN_904
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_1023
task_pick_up_object 0@ {object} 6@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim_non_interruptable 0@ {animationName} "SHP_TRAY_LIFT" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
TIMERB = 0
4@ += 1
goto @SKBRAIN_1037

:SKBRAIN_1023
4@ = 0
3@ += 1

:SKBRAIN_1037
goto @SKBRAIN_1183

:SKBRAIN_1044
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHP_TRAY_LIFT"
goto_if_false @SKBRAIN_1136
9@ = get_char_anim_current_time 0@ {animationName} "SHP_TRAY_LIFT"
if 
  9@ == 1.0
goto_if_false @SKBRAIN_1136
4@ += 1

:SKBRAIN_1136
goto @SKBRAIN_1183

:SKBRAIN_1143
if 
  TIMERB > 2000
goto_if_false @SKBRAIN_1176
4@ = 0
3@ += 1

:SKBRAIN_1176
goto @SKBRAIN_1183

:SKBRAIN_1183
return 

:SKBRAIN_1185
switch_start 4@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @SKBRAIN_1550 {caseNum1} 0 {caseLabel1} @SKBRAIN_1248 {caseNum2} 1 {caseLabel2} @SKBRAIN_1340 {caseNum3} 2 {caseLabel3} @SKBRAIN_1397 {caseNum4} 3 {caseLabel4} @SKBRAIN_1529 {caseNum5} -1 {caseLabel5} @SKBRAIN_1550 {caseNum6} -1 {caseLabel6} @SKBRAIN_1550 {caseNum7} -1 {caseLabel7} @SKBRAIN_1550

:SKBRAIN_1248
13@, 14@, 15@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 13@ {y} 14@ {z} 15@ {radius} 20.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ == -1
goto_if_false @SKBRAIN_1333
4@ += 1

:SKBRAIN_1333
goto @SKBRAIN_1550

:SKBRAIN_1340
task_play_anim_non_interruptable 0@ {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @SKBRAIN_1550

:SKBRAIN_1397
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHP_TRAY_RETURN"
goto_if_false @SKBRAIN_1522
9@ = get_char_anim_current_time 0@ {animationName} "SHP_TRAY_RETURN"
if 
  9@ == 1.0
goto_if_false @SKBRAIN_1522
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_1507
delete_object 6@

:SKBRAIN_1507
task_use_attractor 0@ {attractor} 1@
4@ += 1

:SKBRAIN_1522
goto @SKBRAIN_1550

:SKBRAIN_1529
4@ = 0
3@ = 1
goto @SKBRAIN_1550

:SKBRAIN_1550
return 

:SKBRAIN_1552
remove_animation "FOOD"
mark_object_as_no_longer_needed 6@
if 
  not is_char_dead 0@
goto_if_false @SKBRAIN_1586
clear_char_tasks_immediately 0@

:SKBRAIN_1586
terminate_this_script 
return 

:SKBRAIN_1590
wait 0
if and
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @SKBRAIN_1762
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @SKBRAIN_1664
gosub @SKBRAIN_1552
goto @SKBRAIN_1755

:SKBRAIN_1664
if 
  not is_char_dead 0@
goto_if_false @SKBRAIN_1755
7@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @SKBRAIN_1755
task_hands_up 0@ {time} -2
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @SKBRAIN_1755
if 
  does_object_exist 6@
goto_if_false @SKBRAIN_1755
delete_object 6@

:SKBRAIN_1755
goto @SKBRAIN_1769

:SKBRAIN_1762
gosub @SKBRAIN_1552

:SKBRAIN_1769
goto @SKBRAIN_1590
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 37 (CUSTOMER_PANIC)---------------

:FFPNC
script_name 'FFPNC'
2@ = 0
if 
  2@ == 1
goto_if_false @FFPNC_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:FFPNC_60
if 
  not is_char_dead 0@
goto_if_false @FFPNC_84
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM

:FFPNC_84
wait 0
if and
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @FFPNC_308
$iAreaCode = get_char_area_visible $scplayer
if or
  $iAreaCode == 0
  $iTerminateAllAmbience == 1
goto_if_false @FFPNC_151
gosub @FFPNC_322

:FFPNC_151
if 
  not is_char_dead 0@
goto_if_false @FFPNC_294
set_lvar_int_to_lvar_int 2@ = 1@
2@ /= 2
2@ *= 2
if 
  is_int_lvar_greater_than_int_lvar 1@ > 2@
goto_if_false @FFPNC_251
3@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @FFPNC_244
task_duck 0@ {time} -2

:FFPNC_244
goto @FFPNC_287

:FFPNC_251
3@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @FFPNC_287
task_hands_up 0@ {time} -2

:FFPNC_287
goto @FFPNC_301

:FFPNC_294
gosub @FFPNC_322

:FFPNC_301
goto @FFPNC_315

:FFPNC_308
gosub @FFPNC_322

:FFPNC_315
goto @FFPNC_84

:FFPNC_322
mark_char_as_no_longer_needed 0@
mark_streamed_script_as_no_longer_needed 37
terminate_this_script 
return 
terminate_this_script 

//-------------External script 38 (BAR_STAFF)---------------

:BARSTAF
script_name 'BARSTAF'
8@ = 0
if 
  8@ == 1
goto_if_false @BARSTAF_212
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
8@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
1@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
2@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
3@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1
4@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1

:BARSTAF_212
if 
  not is_char_dead 0@
goto_if_false @BARSTAF_236
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalShopkeeperDM

:BARSTAF_236
request_animation "BAR"

:BARSTAF_243
if 
  not has_animation_loaded "BAR"
goto_if_false @BARSTAF_279
request_animation "BAR"
wait 0
goto @BARSTAF_243

:BARSTAF_279
9@ = 1
10@ = 0
12@ = 0
if 
  0.0 >= 6@
goto_if_false @BARSTAF_331
6@ = 6.0

:BARSTAF_331
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BARSTAF_540
if 
  9@ == 2
goto_if_false @BARSTAF_480
if 
  not is_char_dead 8@
goto_if_false @BARSTAF_452
if or
  $iSetCasinoPanic == 1
  $iSetBarPanic == 1
  $iSetSTRIPPanic == 1
goto_if_false @BARSTAF_438
goto @BARSTAF_2200
goto @BARSTAF_445

:BARSTAF_438
gosub @BARSTAF_554

:BARSTAF_445
goto @BARSTAF_473

:BARSTAF_452
9@ = 1
10@ = 0
gosub @BARSTAF_554

:BARSTAF_473
goto @BARSTAF_533

:BARSTAF_480
if or
  $iSetCasinoPanic == 1
  $iSetBarPanic == 1
  $iSetSTRIPPanic == 1
goto_if_false @BARSTAF_526
goto @BARSTAF_2200
goto @BARSTAF_533

:BARSTAF_526
gosub @BARSTAF_554

:BARSTAF_533
goto @BARSTAF_547

:BARSTAF_540
gosub @BARSTAF_2287

:BARSTAF_547
goto @BARSTAF_331

:BARSTAF_554
switch_start 9@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_659 {caseNum1} 1 {caseLabel1} @BARSTAF_617 {caseNum2} 2 {caseLabel2} @BARSTAF_631 {caseNum3} 3 {caseLabel3} @BARSTAF_645 {caseNum4} -1 {caseLabel4} @BARSTAF_659 {caseNum5} -1 {caseLabel5} @BARSTAF_659 {caseNum6} -1 {caseLabel6} @BARSTAF_659 {caseNum7} -1 {caseLabel7} @BARSTAF_659

:BARSTAF_617
gosub @BARSTAF_661
goto @BARSTAF_659

:BARSTAF_631
gosub @BARSTAF_1390
goto @BARSTAF_659

:BARSTAF_645
gosub @BARSTAF_2085
goto @BARSTAF_659

:BARSTAF_659
return 

:BARSTAF_661
switch_start 10@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_1388 {caseNum1} 0 {caseLabel1} @BARSTAF_724 {caseNum2} 1 {caseLabel2} @BARSTAF_767 {caseNum3} 2 {caseLabel3} @BARSTAF_974 {caseNum4} 3 {caseLabel4} @BARSTAF_1181 {caseNum5} -1 {caseLabel5} @BARSTAF_1388 {caseNum6} -1 {caseLabel6} @BARSTAF_1388 {caseNum7} -1 {caseLabel7} @BARSTAF_1388

:BARSTAF_724
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_760
10@ += 1

:BARSTAF_760
goto @BARSTAF_1388

:BARSTAF_767
14@, 15@, 16@ = get_char_coordinates 0@
8@ = get_user_of_closest_map_attractor 14@ {y} 15@ {z} 16@ {radius} 6@ {modelId} 0 {attractorName} "BARGUY"
if 
  8@ > -1
goto_if_false @BARSTAF_923
13@ = get_char_health 8@
if 
  13@ == 99
goto_if_false @BARSTAF_866
8@ = -1
goto @BARSTAF_923

:BARSTAF_866
13@ = get_script_task_status 8@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_916
9@ += 1
10@ = 0
goto @BARSTAF_923

:BARSTAF_916
8@ = -1

:BARSTAF_923
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_967
task_use_attractor 0@ {attractor} 2@
10@ += 1

:BARSTAF_967
goto @BARSTAF_1388

:BARSTAF_974
14@, 15@, 16@ = get_char_coordinates 0@
8@ = get_user_of_closest_map_attractor 14@ {y} 15@ {z} 16@ {radius} 6@ {modelId} 0 {attractorName} "BARGUY"
if 
  8@ > -1
goto_if_false @BARSTAF_1130
13@ = get_char_health 8@
if 
  13@ == 99
goto_if_false @BARSTAF_1073
8@ = -1
goto @BARSTAF_1130

:BARSTAF_1073
13@ = get_script_task_status 8@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1123
9@ += 1
10@ = 0
goto @BARSTAF_1130

:BARSTAF_1123
8@ = -1

:BARSTAF_1130
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1174
task_use_attractor 0@ {attractor} 3@
10@ += 1

:BARSTAF_1174
goto @BARSTAF_1388

:BARSTAF_1181
14@, 15@, 16@ = get_char_coordinates 0@
8@ = get_user_of_closest_map_attractor 14@ {y} 15@ {z} 16@ {radius} 6@ {modelId} 0 {attractorName} "BARGUY"
if 
  8@ > -1
goto_if_false @BARSTAF_1337
13@ = get_char_health 8@
if 
  13@ == 99
goto_if_false @BARSTAF_1280
8@ = -1
goto @BARSTAF_1337

:BARSTAF_1280
13@ = get_script_task_status 8@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1330
9@ += 1
10@ = 0
goto @BARSTAF_1337

:BARSTAF_1330
8@ = -1

:BARSTAF_1337
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1381
task_use_attractor 0@ {attractor} 1@
10@ = 0

:BARSTAF_1381
goto @BARSTAF_1388

:BARSTAF_1388
return 

:BARSTAF_1390
switch_start 10@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_2083 {caseNum1} 0 {caseLabel1} @BARSTAF_1518 {caseNum2} 1 {caseLabel2} @BARSTAF_1577 {caseNum3} 2 {caseLabel3} @BARSTAF_1628 {caseNum4} 3 {caseLabel4} @BARSTAF_1720 {caseNum5} 4 {caseLabel5} @BARSTAF_1771 {caseNum6} 5 {caseLabel6} @BARSTAF_1873 {caseNum7} 6 {caseLabel7} @BARSTAF_1934
switch_continued 7 {caseLabel1} @BARSTAF_1985 {caseNum2} -1 {caseLabel2} @BARSTAF_2083 {caseNum3} -1 {caseLabel3} @BARSTAF_2083 {caseNum4} -1 {caseLabel4} @BARSTAF_2083 {caseNum5} -1 {caseLabel5} @BARSTAF_2083 {caseNum6} -1 {caseLabel6} @BARSTAF_2083 {caseNum7} -1 {caseLabel7} @BARSTAF_2083 {caseNum8} -1 {caseLabel8} @BARSTAF_2083 {caseNum9} -1 {caseLabel9} @BARSTAF_2083

:BARSTAF_1518
14@, 15@, 16@ = get_offset_from_char_in_world_coords 8@ {xOffset} 0.0 {yOffset} 5@ {zOffset} 0.0
task_go_straight_to_coord 0@ {x} 14@ {y} 15@ {z} 16@ {speed} MoveState.Walk {time} -2
10@ += 1
goto @BARSTAF_2083

:BARSTAF_1577
13@ = get_script_task_status 0@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1621
task_turn_char_to_face_char 0@ {target} 8@
10@ += 1

:BARSTAF_1621
goto @BARSTAF_2083

:BARSTAF_1628
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1713
set_char_health 8@ {health} 99
task_play_anim 0@ {animationName} "BARSERVE_ORDER" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3000
10@ += 1

:BARSTAF_1713
goto @BARSTAF_2083

:BARSTAF_1720
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1764
task_use_attractor 0@ {attractor} 4@
10@ += 1

:BARSTAF_1764
goto @BARSTAF_2083

:BARSTAF_1771
13@ = get_script_task_status 0@ {taskId} 1868
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1866
if 
  7@ == 0
goto_if_false @BARSTAF_1859
task_play_anim 0@ {animationName} "BARSERVE_GLASS" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:BARSTAF_1859
10@ += 1

:BARSTAF_1866
goto @BARSTAF_2083

:BARSTAF_1873
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1927
task_go_straight_to_coord 0@ {x} 14@ {y} 15@ {z} 16@ {speed} MoveState.Walk {time} -2
10@ += 1

:BARSTAF_1927
goto @BARSTAF_2083

:BARSTAF_1934
13@ = get_script_task_status 0@ {taskId} 1491
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_1978
task_turn_char_to_face_char 0@ {target} 8@
10@ += 1

:BARSTAF_1978
goto @BARSTAF_2083

:BARSTAF_1985
13@ = get_script_task_status 0@ {taskId} 1593
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_2076
set_char_health 8@ {health} 99
task_play_anim 0@ {animationName} "BARSERVE_GIVE" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 3000
9@ += 1
10@ = 0

:BARSTAF_2076
goto @BARSTAF_2083

:BARSTAF_2083
return 

:BARSTAF_2085
switch_start 10@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BARSTAF_2198 {caseNum1} 0 {caseLabel1} @BARSTAF_2148 {caseNum2} -1 {caseLabel2} @BARSTAF_2198 {caseNum3} -1 {caseLabel3} @BARSTAF_2198 {caseNum4} -1 {caseLabel4} @BARSTAF_2198 {caseNum5} -1 {caseLabel5} @BARSTAF_2198 {caseNum6} -1 {caseLabel6} @BARSTAF_2198 {caseNum7} -1 {caseLabel7} @BARSTAF_2198

:BARSTAF_2148
13@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 13@ == 7
goto_if_false @BARSTAF_2191
9@ = 1
10@ = 0

:BARSTAF_2191
goto @BARSTAF_2198

:BARSTAF_2198
return 

:BARSTAF_2200
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BARSTAF_2273
12@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 12@ == 7
goto_if_false @BARSTAF_2266
task_hands_up 0@ {time} 60000

:BARSTAF_2266
goto @BARSTAF_2280

:BARSTAF_2273
gosub @BARSTAF_2287

:BARSTAF_2280
goto @BARSTAF_2200

:BARSTAF_2287
remove_animation "BAR"
mark_char_as_no_longer_needed 0@
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 9@
write_debug_with_int "SUBSTATESTATUS" {number} 10@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 39 (BOUNCER)---------------

:BOUNCER
script_name 'BOUNCER'
2@ = 0
if 
  2@ == 1
goto_if_false @BOUNCER_60
0@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BOUNCER_60
if 
  not has_model_loaded 346
goto_if_false @BOUNCER_88
request_model 346
goto @BOUNCER_60

:BOUNCER_88
if 
  not is_char_dead 0@
goto_if_false @BOUNCER_187
give_weapon_to_char 0@ {weaponType} WeaponType.Pistol {ammo} 99999999
set_current_char_weapon 0@ {weaponType} WeaponType.Unarmed
if 
  has_char_got_weapon 0@ {weaponType} WeaponType.NightStick
goto_if_false @BOUNCER_148
remove_weapon_from_char 0@ {weaponType} WeaponType.NightStick

:BOUNCER_148
set_char_accuracy 0@ {accuracy} 80
$iBouncerDM = copy_shared_char_decision_maker DecisionMakerCharTemplate.Cop
clear_char_decision_maker_event_response $iBouncerDM {event} Event.Attractor
clear_char_decision_maker_event_response $iBouncerDM {event} Event.ScriptedAttractor
set_char_decision_maker 0@ {handleOrTemplate} $iBouncerDM

:BOUNCER_187
3@ = 0
4@ = 0

:BOUNCER_201
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BOUNCER_279
if 
  $iBouncerAction == 0
goto_if_false @BOUNCER_265
gosub @BOUNCER_293
goto @BOUNCER_272

:BOUNCER_265
goto @BOUNCER_693

:BOUNCER_272
goto @BOUNCER_286

:BOUNCER_279
gosub @BOUNCER_864

:BOUNCER_286
goto @BOUNCER_201

:BOUNCER_293
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BOUNCER_370 {caseNum1} 0 {caseLabel1} @BOUNCER_356 {caseNum2} -1 {caseLabel2} @BOUNCER_370 {caseNum3} -1 {caseLabel3} @BOUNCER_370 {caseNum4} -1 {caseLabel4} @BOUNCER_370 {caseNum5} -1 {caseLabel5} @BOUNCER_370 {caseNum6} -1 {caseLabel6} @BOUNCER_370 {caseNum7} -1 {caseLabel7} @BOUNCER_370

:BOUNCER_356
gosub @BOUNCER_372
goto @BOUNCER_370

:BOUNCER_370
return 

:BOUNCER_372
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @BOUNCER_691 {caseNum1} 0 {caseLabel1} @BOUNCER_435 {caseNum2} 1 {caseLabel2} @BOUNCER_498 {caseNum3} 2 {caseLabel3} @BOUNCER_658 {caseNum4} -1 {caseLabel4} @BOUNCER_691 {caseNum5} -1 {caseLabel5} @BOUNCER_691 {caseNum6} -1 {caseLabel6} @BOUNCER_691 {caseNum7} -1 {caseLabel7} @BOUNCER_691

:BOUNCER_435
2@ = get_script_task_status 0@ {taskId} 1502
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_491
task_wander_standard 0@
TIMERB = 0
6@ = 5000
4@ += 1

:BOUNCER_491
goto @BOUNCER_691

:BOUNCER_498
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 6@
goto_if_false @BOUNCER_651
2@ = generate_random_int_in_range 1 {max} 10
if 
  2@ > 5
goto_if_false @BOUNCER_595
2@ = get_script_task_status 0@ {taskId} 1481
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_588
task_look_about 0@ {time} -1
6@ = 5000

:BOUNCER_588
goto @BOUNCER_637

:BOUNCER_595
2@ = get_script_task_status 0@ {taskId} 1502
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BOUNCER_637
task_wander_standard 0@
6@ = 5000

:BOUNCER_637
TIMERB = 0
4@ += 1

:BOUNCER_651
goto @BOUNCER_691

:BOUNCER_658
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 6@
goto_if_false @BOUNCER_684
4@ = 1

:BOUNCER_684
goto @BOUNCER_691

:BOUNCER_691
return 

:BOUNCER_693
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BOUNCER_850
if 
  is_char_shooting $scplayer
goto_if_false @BOUNCER_799
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
5@ = get_script_task_status 0@ {taskId} 1588
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BOUNCER_792
task_kill_char_on_foot_while_ducking 0@ {target} $scplayer {flags} 1 {actionDelay} 4000 {actionChance} 60

:BOUNCER_792
goto @BOUNCER_843

:BOUNCER_799
set_current_char_weapon 0@ {weaponType} WeaponType.Pistol
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BOUNCER_843
task_kill_char_on_foot 0@ {target} $scplayer

:BOUNCER_843
goto @BOUNCER_857

:BOUNCER_850
gosub @BOUNCER_864

:BOUNCER_857
goto @BOUNCER_693

:BOUNCER_864
remove_decision_maker $iBouncerDM
mark_char_as_no_longer_needed 0@
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 40 (OTB_STAFF)---------------

:OTBSTAF
script_name 'OTBSTAF'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBSTAF_92
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0
1@ = add_attractor 0.0 {y} 0.0 {z} 0.0 {angle} 0.0 {_p5} 0.0 {sequence} -1

:OTBSTAF_92
request_animation "INT_SHOP"

:OTBSTAF_104
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @OTBSTAF_138
wait 0
goto @OTBSTAF_104

:OTBSTAF_138
if 
  not is_char_dead 0@
goto_if_false @OTBSTAF_162
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalShopkeeperDM

:OTBSTAF_162
3@ = 1
4@ = 0
6@ = 0

:OTBSTAF_183
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSTAF_256
if 
  $iSetOTBPanic == 0
goto_if_false @OTBSTAF_242
gosub @OTBSTAF_270
goto @OTBSTAF_249

:OTBSTAF_242
goto @OTBSTAF_848

:OTBSTAF_249
goto @OTBSTAF_263

:OTBSTAF_256
gosub @OTBSTAF_832

:OTBSTAF_263
goto @OTBSTAF_183

:OTBSTAF_270
switch_start 3@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_361 {caseNum1} 1 {caseLabel1} @OTBSTAF_333 {caseNum2} 2 {caseLabel2} @OTBSTAF_347 {caseNum3} -1 {caseLabel3} @OTBSTAF_361 {caseNum4} -1 {caseLabel4} @OTBSTAF_361 {caseNum5} -1 {caseLabel5} @OTBSTAF_361 {caseNum6} -1 {caseLabel6} @OTBSTAF_361 {caseNum7} -1 {caseLabel7} @OTBSTAF_361

:OTBSTAF_333
gosub @OTBSTAF_363
goto @OTBSTAF_361

:OTBSTAF_347
gosub @OTBSTAF_668
goto @OTBSTAF_361

:OTBSTAF_361
return 

:OTBSTAF_363
switch_start 4@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_666 {caseNum1} 0 {caseLabel1} @OTBSTAF_426 {caseNum2} 1 {caseLabel2} @OTBSTAF_562 {caseNum3} -1 {caseLabel3} @OTBSTAF_666 {caseNum4} -1 {caseLabel4} @OTBSTAF_666 {caseNum5} -1 {caseLabel5} @OTBSTAF_666 {caseNum6} -1 {caseLabel6} @OTBSTAF_666 {caseNum7} -1 {caseLabel7} @OTBSTAF_666

:OTBSTAF_426
9@, 10@, 11@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 9@ {y} 10@ {z} 11@ {radius} 3.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ > -1
goto_if_false @OTBSTAF_555
task_play_anim 0@ {animationName} "SHOP_CASHIER" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:OTBSTAF_555
goto @OTBSTAF_666

:OTBSTAF_562
8@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "SHOP_CASHIER"
goto_if_false @OTBSTAF_659
8@ = get_char_anim_current_time 0@ {animationName} "SHOP_CASHIER"
if 
  8@ == 1.0
goto_if_false @OTBSTAF_659
4@ = 0
3@ += 1

:OTBSTAF_659
goto @OTBSTAF_666

:OTBSTAF_666
return 

:OTBSTAF_668
switch_start 4@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBSTAF_830 {caseNum1} 0 {caseLabel1} @OTBSTAF_731 {caseNum2} -1 {caseLabel2} @OTBSTAF_830 {caseNum3} -1 {caseLabel3} @OTBSTAF_830 {caseNum4} -1 {caseLabel4} @OTBSTAF_830 {caseNum5} -1 {caseLabel5} @OTBSTAF_830 {caseNum6} -1 {caseLabel6} @OTBSTAF_830 {caseNum7} -1 {caseLabel7} @OTBSTAF_830

:OTBSTAF_731
9@, 10@, 11@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 3.0 {zOffset} 3.0
2@ = get_user_of_closest_map_attractor 9@ {y} 10@ {z} 11@ {radius} 3.0 {modelId} #CJ_FF_TILL_QUE {attractorName} "PCUSTOM"
if 
  2@ == -1
goto_if_false @OTBSTAF_823
4@ = 0
3@ = 1

:OTBSTAF_823
goto @OTBSTAF_830

:OTBSTAF_830
return 

:OTBSTAF_832
remove_animation "INT_SHOP"
terminate_this_script 
return 

:OTBSTAF_848
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSTAF_918
6@ = get_script_task_status 0@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 6@ == 7
goto_if_false @OTBSTAF_911
task_hands_up 0@ {time} -2

:OTBSTAF_911
goto @OTBSTAF_925

:OTBSTAF_918
gosub @OTBSTAF_832

:OTBSTAF_925
goto @OTBSTAF_848
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 41 (PCHAIR)---------------

:PCHAIR
script_name 'PCHAIR'
2@ = 0
if 
  2@ == 1
goto_if_false @PCHAIR_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PCHAIR_60
request_animation "FOOD"

:PCHAIR_68
if 
  not has_animation_loaded "FOOD"
goto_if_false @PCHAIR_98
wait 0
goto @PCHAIR_68

:PCHAIR_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @PCHAIR_154
5@ = 0
4@ = 1
goto @PCHAIR_168

:PCHAIR_154
5@ = -2
4@ = 2

:PCHAIR_168
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @PCHAIR_215
set_char_suffers_critical_hits 0@ {state} False
6@ = 1800000
goto @PCHAIR_222

:PCHAIR_215
6@ = 0

:PCHAIR_222
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @PCHAIR_345
if 
  is_char_using_map_attractor 0@
goto_if_false @PCHAIR_331
if or
  $iSetPizzaPanic == 1
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PCHAIR_317
$iSetPizzaPanic = 1
goto @PCHAIR_3035
goto @PCHAIR_324

:PCHAIR_317
gosub @PCHAIR_359

:PCHAIR_324
goto @PCHAIR_338

:PCHAIR_331
gosub @PCHAIR_2959

:PCHAIR_338
goto @PCHAIR_352

:PCHAIR_345
gosub @PCHAIR_2959

:PCHAIR_352
goto @PCHAIR_222

:PCHAIR_359
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_492 {caseNum1} 1 {caseLabel1} @PCHAIR_422 {caseNum2} 2 {caseLabel2} @PCHAIR_436 {caseNum3} 3 {caseLabel3} @PCHAIR_450 {caseNum4} 4 {caseLabel4} @PCHAIR_464 {caseNum5} 5 {caseLabel5} @PCHAIR_478 {caseNum6} -1 {caseLabel6} @PCHAIR_492 {caseNum7} -1 {caseLabel7} @PCHAIR_492

:PCHAIR_422
gosub @PCHAIR_494
goto @PCHAIR_492

:PCHAIR_436
gosub @PCHAIR_715
goto @PCHAIR_492

:PCHAIR_450
gosub @PCHAIR_2157
goto @PCHAIR_492

:PCHAIR_464
gosub @PCHAIR_2959
goto @PCHAIR_492

:PCHAIR_478
gosub @PCHAIR_2526
goto @PCHAIR_492

:PCHAIR_492
return 

:PCHAIR_494
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_713 {caseNum1} 0 {caseLabel1} @PCHAIR_557 {caseNum2} 1 {caseLabel2} @PCHAIR_615 {caseNum3} -1 {caseLabel3} @PCHAIR_713 {caseNum4} -1 {caseLabel4} @PCHAIR_713 {caseNum5} -1 {caseLabel5} @PCHAIR_713 {caseNum6} -1 {caseLabel6} @PCHAIR_713 {caseNum7} -1 {caseLabel7} @PCHAIR_713

:PCHAIR_557
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @PCHAIR_713

:PCHAIR_615
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_IN"
goto_if_false @PCHAIR_671
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_IN"

:PCHAIR_671
if 
  9@ == 1.0
goto_if_false @PCHAIR_706
5@ = 0
4@ += 1

:PCHAIR_706
goto @PCHAIR_713

:PCHAIR_713
return 

:PCHAIR_715
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2155 {caseNum1} -2 {caseLabel1} @PCHAIR_778 {caseNum2} 0 {caseLabel2} @PCHAIR_1103 {caseNum3} 1 {caseLabel3} @PCHAIR_1560 {caseNum4} 2 {caseLabel4} @PCHAIR_1858 {caseNum5} 3 {caseLabel5} @PCHAIR_2061 {caseNum6} -1 {caseLabel6} @PCHAIR_2155 {caseNum7} -1 {caseLabel7} @PCHAIR_2155

:PCHAIR_778
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @PCHAIR_848
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1089

:PCHAIR_848
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCHAIR_925
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @PCHAIR_941

:PCHAIR_925
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:PCHAIR_941
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @PCHAIR_1047
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1089

:PCHAIR_1047
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:PCHAIR_1089
5@ = 1
goto @PCHAIR_2155

:PCHAIR_1103
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @PCHAIR_1235
if 
  is_char_male 0@
goto_if_false @PCHAIR_1186
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1228

:PCHAIR_1186
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:PCHAIR_1228
goto @PCHAIR_1546

:PCHAIR_1235
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @PCHAIR_1305
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1546

:PCHAIR_1305
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCHAIR_1382
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @PCHAIR_1398

:PCHAIR_1382
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:PCHAIR_1398
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @PCHAIR_1504
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @PCHAIR_1546

:PCHAIR_1504
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:PCHAIR_1546
5@ += 1
goto @PCHAIR_2155

:PCHAIR_1560
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.5 {yOffset} -0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -0.65
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @PCHAIR_1727
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_BURG_CHAIR {state} False {target} 0@
goto @PCHAIR_1751

:PCHAIR_1727
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} False {target} 0@

:PCHAIR_1751
if or
  is_char_playing_anim 0@ {animationName} "FF_SIT_LOOK"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT1"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT2"
goto_if_false @PCHAIR_1851
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:PCHAIR_1851
goto @PCHAIR_2155

:PCHAIR_1858
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PCHAIR_1910
clear_char_last_damage_entity 0@
6@ = 0
4@ = 5
5@ = 0
goto @PCHAIR_2155

:PCHAIR_1910
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @PCHAIR_2054
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @PCHAIR_1991
5@ = 0
4@ += 1
goto @PCHAIR_2054

:PCHAIR_1991
if 
  $iSetPizzaPanic == 1
goto_if_false @PCHAIR_2054
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
5@ += 1

:PCHAIR_2054
goto @PCHAIR_2155

:PCHAIR_2061
if 
  is_char_health_greater 0@ {health} 0
goto_if_false @PCHAIR_2141
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @PCHAIR_2134
5@ = 0
4@ += 1

:PCHAIR_2134
goto @PCHAIR_2148

:PCHAIR_2141
set_char_never_targetted 0@ {state} True

:PCHAIR_2148
goto @PCHAIR_2155

:PCHAIR_2155
return 

:PCHAIR_2157
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2524 {caseNum1} 0 {caseLabel1} @PCHAIR_2220 {caseNum2} 1 {caseLabel2} @PCHAIR_2301 {caseNum3} 2 {caseLabel3} @PCHAIR_2336 {caseNum4} -1 {caseLabel4} @PCHAIR_2524 {caseNum5} -1 {caseLabel5} @PCHAIR_2524 {caseNum6} -1 {caseLabel6} @PCHAIR_2524 {caseNum7} -1 {caseLabel7} @PCHAIR_2524

:PCHAIR_2220
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @PCHAIR_2245
drop_object 0@ {state} True

:PCHAIR_2245
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_OUT_180" {animationFile} "FOOD" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @PCHAIR_2524

:PCHAIR_2301
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @PCHAIR_2524

:PCHAIR_2336
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_OUT_180"
goto_if_false @PCHAIR_2517
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_OUT_180"
if 
  9@ == 1.0
goto_if_false @PCHAIR_2517
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @PCHAIR_2479
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_BURG_CHAIR {state} True {target} 0@
goto @PCHAIR_2503

:PCHAIR_2479
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} True {target} 0@

:PCHAIR_2503
5@ = 0
4@ += 1

:PCHAIR_2517
goto @PCHAIR_2524

:PCHAIR_2524
return 

:PCHAIR_2526
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @PCHAIR_2957 {caseNum1} 0 {caseLabel1} @PCHAIR_2589 {caseNum2} 1 {caseLabel2} @PCHAIR_2641 {caseNum3} 2 {caseLabel3} @PCHAIR_2797 {caseNum4} -1 {caseLabel4} @PCHAIR_2957 {caseNum5} -1 {caseLabel5} @PCHAIR_2957 {caseNum6} -1 {caseLabel6} @PCHAIR_2957 {caseNum7} -1 {caseLabel7} @PCHAIR_2957

:PCHAIR_2589
task_play_anim_non_interruptable 0@ {animationName} "FF_DAM_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
5@ += 1
goto @PCHAIR_2957

:PCHAIR_2641
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_DAM_FWD"
goto_if_false @PCHAIR_2727
9@ = get_char_anim_current_time 0@ {animationName} "FF_DAM_FWD"
if 
  9@ == 1.0
goto_if_false @PCHAIR_2727
5@ += 1

:PCHAIR_2727
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @PCHAIR_2790
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @PCHAIR_2959

:PCHAIR_2790
goto @PCHAIR_2957

:PCHAIR_2797
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @PCHAIR_2867
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @PCHAIR_2959
goto @PCHAIR_2950

:PCHAIR_2867
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @PCHAIR_2936
4@ = 3
5@ = 0
gosub @PCHAIR_3035
goto @PCHAIR_2950

:PCHAIR_2936
4@ = 2
5@ = 2

:PCHAIR_2950
goto @PCHAIR_2957

:PCHAIR_2957
return 

:PCHAIR_2959
mark_object_as_no_longer_needed 8@
remove_animation "FOOD"
if 
  not is_char_dead 0@
goto_if_false @PCHAIR_3031
set_char_suffers_critical_hits 0@ {state} True
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCUSTOM"

:PCHAIR_3031
terminate_this_script 
return 

:PCHAIR_3035
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @PCHAIR_3376
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @PCHAIR_3369
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @PCHAIR_3355 {caseNum1} 1 {caseLabel1} @PCHAIR_3146 {caseNum2} 2 {caseLabel2} @PCHAIR_3228 {caseNum3} 3 {caseLabel3} @PCHAIR_3277 {caseNum4} 4 {caseLabel4} @PCHAIR_3291 {caseNum5} 5 {caseLabel5} @PCHAIR_3341 {caseNum6} -1 {caseLabel6} @PCHAIR_3369 {caseNum7} -1 {caseLabel7} @PCHAIR_3369

:PCHAIR_3146
if 
  5@ > 1
goto_if_false @PCHAIR_3178
gosub @PCHAIR_359
goto @PCHAIR_3221

:PCHAIR_3178
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @PCHAIR_3221
task_duck 0@ {time} -2
gosub @PCHAIR_2959

:PCHAIR_3221
goto @PCHAIR_3369

:PCHAIR_3228
if 
  5@ == 2
goto_if_false @PCHAIR_3263
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:PCHAIR_3263
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3277
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3291
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @PCHAIR_3334
task_duck 0@ {time} -2
gosub @PCHAIR_2959

:PCHAIR_3334
goto @PCHAIR_3369

:PCHAIR_3341
gosub @PCHAIR_359
goto @PCHAIR_3369

:PCHAIR_3355
gosub @PCHAIR_2959
goto @PCHAIR_3369

:PCHAIR_3369
goto @PCHAIR_3383

:PCHAIR_3376
gosub @PCHAIR_2959

:PCHAIR_3383
goto @PCHAIR_3035
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 42 (PCUSTOM)---------------

:PCUSTOM
script_name 'PCUSTOM'
2@ = 0
if 
  2@ == 1
goto_if_false @PCUSTOM_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PCUSTOM_60
request_animation "INT_SHOP"

:PCUSTOM_72
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @PCUSTOM_106
wait 0
goto @PCUSTOM_72

:PCUSTOM_106
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:PCUSTOM_134
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PCUSTOM_237
if 
  is_char_using_map_attractor 0@
goto_if_false @PCUSTOM_223
if 
  $iSetPizzaPanic == 0
goto_if_false @PCUSTOM_209
gosub @PCUSTOM_251
goto @PCUSTOM_216

:PCUSTOM_209
goto @PCUSTOM_804

:PCUSTOM_216
goto @PCUSTOM_230

:PCUSTOM_223
gosub @PCUSTOM_727

:PCUSTOM_230
goto @PCUSTOM_244

:PCUSTOM_237
gosub @PCUSTOM_727

:PCUSTOM_244
goto @PCUSTOM_134

:PCUSTOM_251
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PCUSTOM_328 {caseNum1} 1 {caseLabel1} @PCUSTOM_314 {caseNum2} -1 {caseLabel2} @PCUSTOM_328 {caseNum3} -1 {caseLabel3} @PCUSTOM_328 {caseNum4} -1 {caseLabel4} @PCUSTOM_328 {caseNum5} -1 {caseLabel5} @PCUSTOM_328 {caseNum6} -1 {caseLabel6} @PCUSTOM_328 {caseNum7} -1 {caseLabel7} @PCUSTOM_328

:PCUSTOM_314
gosub @PCUSTOM_330
goto @PCUSTOM_328

:PCUSTOM_328
return 

:PCUSTOM_330
switch_start 4@ {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @PCUSTOM_725 {caseNum1} 0 {caseLabel1} @PCUSTOM_393 {caseNum2} 1 {caseLabel2} @PCUSTOM_451 {caseNum3} 2 {caseLabel3} @PCUSTOM_534 {caseNum4} 3 {caseLabel4} @PCUSTOM_711 {caseNum5} -1 {caseLabel5} @PCUSTOM_725 {caseNum6} -1 {caseLabel6} @PCUSTOM_725 {caseNum7} -1 {caseLabel7} @PCUSTOM_725

:PCUSTOM_393
5@ = 1
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
4@ += 1
goto @PCUSTOM_725

:PCUSTOM_451
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PCUSTOM_527
task_play_anim 0@ {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:PCUSTOM_527
goto @PCUSTOM_725

:PCUSTOM_534
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PCUSTOM_704
7@, 8@, 9@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.1 {zOffset} 1.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @PCUSTOM_640
12@ = create_object #CJ_PIZZA_2 {x} 7@ {y} 8@ {z} 9@
goto @PCUSTOM_656

:PCUSTOM_640
12@ = create_object #CJ_BURG_2 {x} 7@ {y} 8@ {z} 9@

:PCUSTOM_656
task_pick_up_object 0@ {object} 12@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
4@ += 1

:PCUSTOM_704
goto @PCUSTOM_725

:PCUSTOM_711
gosub @PCUSTOM_727
goto @PCUSTOM_725

:PCUSTOM_725
return 

:PCUSTOM_727
remove_animation "INT_SHOP"
mark_object_as_no_longer_needed 12@
if 
  not is_char_dead 0@
goto_if_false @PCUSTOM_800
clear_char_tasks_immediately 0@
task_use_closest_map_attractor 0@ {radius} 20.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCHAIR"

:PCUSTOM_800
terminate_this_script 
return 

:PCUSTOM_804
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @PCUSTOM_890
if 
  not is_char_dead 0@
goto_if_false @PCUSTOM_883
11@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @PCUSTOM_883
task_duck 0@ {time} -2

:PCUSTOM_883
goto @PCUSTOM_897

:PCUSTOM_890
gosub @PCUSTOM_727

:PCUSTOM_897
goto @PCUSTOM_804
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 43 (OTBWTCH)---------------

:OTBWTCH
script_name 'OTBWTCH'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBWTCH_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:OTBWTCH_60
request_animation "OTB"

:OTBWTCH_67
if 
  not has_animation_loaded "OTB"
goto_if_false @OTBWTCH_96
wait 0
goto @OTBWTCH_67

:OTBWTCH_96
3@ = 1
4@ = 0

:OTBWTCH_110
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBWTCH_221
if 
  is_char_using_map_attractor 0@
goto_if_false @OTBWTCH_207
if 
  $iSetOTBPanic == 0
goto_if_false @OTBWTCH_185
gosub @OTBWTCH_235
goto @OTBWTCH_200

:OTBWTCH_185
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @OTBWTCH_1122

:OTBWTCH_200
goto @OTBWTCH_214

:OTBWTCH_207
gosub @OTBWTCH_1060

:OTBWTCH_214
goto @OTBWTCH_228

:OTBWTCH_221
gosub @OTBWTCH_1060

:OTBWTCH_228
goto @OTBWTCH_110

:OTBWTCH_235
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBWTCH_312 {caseNum1} 1 {caseLabel1} @OTBWTCH_298 {caseNum2} -1 {caseLabel2} @OTBWTCH_312 {caseNum3} -1 {caseLabel3} @OTBWTCH_312 {caseNum4} -1 {caseLabel4} @OTBWTCH_312 {caseNum5} -1 {caseLabel5} @OTBWTCH_312 {caseNum6} -1 {caseLabel6} @OTBWTCH_312 {caseNum7} -1 {caseLabel7} @OTBWTCH_312

:OTBWTCH_298
gosub @OTBWTCH_314
goto @OTBWTCH_312

:OTBWTCH_312
return 

:OTBWTCH_314
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @OTBWTCH_1058 {caseNum1} 0 {caseLabel1} @OTBWTCH_377 {caseNum2} 1 {caseLabel2} @OTBWTCH_429 {caseNum3} 2 {caseLabel3} @OTBWTCH_524 {caseNum4} 3 {caseLabel4} @OTBWTCH_682 {caseNum5} 4 {caseLabel5} @OTBWTCH_777 {caseNum6} 5 {caseLabel6} @OTBWTCH_933 {caseNum7} 6 {caseLabel7} @OTBWTCH_1015

:OTBWTCH_377
task_play_anim 0@ {animationName} "WTCHRACE_IN" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @OTBWTCH_1058

:OTBWTCH_429
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_517
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "WTCHRACE_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBWTCH_517
goto @OTBWTCH_1058

:OTBWTCH_524
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_675
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @OTBWTCH_627
task_play_anim 0@ {animationName} "WTCHRACE_CMON" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @OTBWTCH_668

:OTBWTCH_627
task_play_anim 0@ {animationName} "WTCHRACE_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000

:OTBWTCH_668
4@ += 1

:OTBWTCH_675
goto @OTBWTCH_1058

:OTBWTCH_682
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_770
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "WTCHRACE_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBWTCH_770
goto @OTBWTCH_1058

:OTBWTCH_777
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_926
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @OTBWTCH_879
task_play_anim 0@ {animationName} "WTCHRACE_WIN" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @OTBWTCH_919

:OTBWTCH_879
task_play_anim 0@ {animationName} "WTCHRACE_LOSE" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:OTBWTCH_919
4@ += 1

:OTBWTCH_926
goto @OTBWTCH_1058

:OTBWTCH_933
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_1008
task_play_anim 0@ {animationName} "WTCHRACE_OUT" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:OTBWTCH_1008
goto @OTBWTCH_1058

:OTBWTCH_1015
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBWTCH_1051
gosub @OTBWTCH_1060

:OTBWTCH_1051
goto @OTBWTCH_1058

:OTBWTCH_1058
return 

:OTBWTCH_1060
remove_animation "OTB"
if 
  not is_char_dead 0@
goto_if_false @OTBWTCH_1118
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "OTBSLP"

:OTBWTCH_1118
terminate_this_script 
return 

:OTBWTCH_1122
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBWTCH_1192
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @OTBWTCH_1185
task_duck 0@ {time} -2

:OTBWTCH_1185
goto @OTBWTCH_1199

:OTBWTCH_1192
gosub @OTBWTCH_1060

:OTBWTCH_1199
goto @OTBWTCH_1122
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 44 (OTBSLP)---------------

:OTBSLP
script_name 'OTBSLP'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBSLP_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:OTBSLP_60
request_animation "OTB"

:OTBSLP_67
if 
  not has_animation_loaded "OTB"
goto_if_false @OTBSLP_96
wait 0
goto @OTBSLP_67

:OTBSLP_96
3@ = 1
4@ = 0

:OTBSLP_110
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSLP_221
if 
  is_char_using_map_attractor 0@
goto_if_false @OTBSLP_207
if 
  $iSetOTBPanic == 0
goto_if_false @OTBSLP_185
gosub @OTBSLP_235
goto @OTBSLP_200

:OTBSLP_185
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @OTBSLP_902

:OTBSLP_200
goto @OTBSLP_214

:OTBSLP_207
gosub @OTBSLP_891

:OTBSLP_214
goto @OTBSLP_228

:OTBSLP_221
gosub @OTBSLP_891

:OTBSLP_228
goto @OTBSLP_110

:OTBSLP_235
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBSLP_312 {caseNum1} 1 {caseLabel1} @OTBSLP_298 {caseNum2} -1 {caseLabel2} @OTBSLP_312 {caseNum3} -1 {caseLabel3} @OTBSLP_312 {caseNum4} -1 {caseLabel4} @OTBSLP_312 {caseNum5} -1 {caseLabel5} @OTBSLP_312 {caseNum6} -1 {caseLabel6} @OTBSLP_312 {caseNum7} -1 {caseLabel7} @OTBSLP_312

:OTBSLP_298
gosub @OTBSLP_314
goto @OTBSLP_312

:OTBSLP_312
return 

:OTBSLP_314
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @OTBSLP_889 {caseNum1} 0 {caseLabel1} @OTBSLP_377 {caseNum2} 1 {caseLabel2} @OTBSLP_427 {caseNum3} 2 {caseLabel3} @OTBSLP_520 {caseNum4} 3 {caseLabel4} @OTBSLP_673 {caseNum5} 4 {caseLabel5} @OTBSLP_766 {caseNum6} 5 {caseLabel6} @OTBSLP_846 {caseNum7} -1 {caseLabel7} @OTBSLP_889

:OTBSLP_377
task_play_anim 0@ {animationName} "BETSLP_IN" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @OTBSLP_889

:OTBSLP_427
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_513
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "BETSLP_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBSLP_513
goto @OTBSLP_889

:OTBSLP_520
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_666
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @OTBSLP_622
task_play_anim 0@ {animationName} "BETSLP_LKABT" {animationFile} "OTB" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @OTBSLP_659

:OTBSLP_622
task_play_anim 0@ {animationName} "BETSLP_TNK" {animationFile} "OTB" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:OTBSLP_659
4@ += 1

:OTBSLP_666
goto @OTBSLP_889

:OTBSLP_673
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_759
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "BETSLP_LOOP" {animationFile} "OTB" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:OTBSLP_759
goto @OTBSLP_889

:OTBSLP_766
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_839
task_play_anim 0@ {animationName} "BETSLP_OUT" {animationFile} "OTB" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:OTBSLP_839
goto @OTBSLP_889

:OTBSLP_846
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @OTBSLP_882
gosub @OTBSLP_891

:OTBSLP_882
goto @OTBSLP_889

:OTBSLP_889
return 

:OTBSLP_891
remove_animation "OTB"
terminate_this_script 
return 

:OTBSLP_902
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBSLP_972
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @OTBSLP_965
task_duck 0@ {time} -2

:OTBSLP_965
goto @OTBSLP_979

:OTBSLP_972
gosub @OTBSLP_891

:OTBSLP_979
goto @OTBSLP_902
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 45 (OTBTILL)---------------

:OTBTILL
script_name 'OTBTILL'
2@ = 0
if 
  2@ == 1
goto_if_false @OTBTILL_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:OTBTILL_60
request_animation "INT_SHOP"

:OTBTILL_72
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @OTBTILL_106
wait 0
goto @OTBTILL_72

:OTBTILL_106
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:OTBTILL_134
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBTILL_245
if 
  is_char_using_map_attractor 0@
goto_if_false @OTBTILL_231
if 
  $iSetOTBPanic == 0
goto_if_false @OTBTILL_209
gosub @OTBTILL_259
goto @OTBTILL_224

:OTBTILL_209
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @OTBTILL_655

:OTBTILL_224
goto @OTBTILL_238

:OTBTILL_231
gosub @OTBTILL_587

:OTBTILL_238
goto @OTBTILL_252

:OTBTILL_245
gosub @OTBTILL_587

:OTBTILL_252
goto @OTBTILL_134

:OTBTILL_259
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @OTBTILL_336 {caseNum1} 1 {caseLabel1} @OTBTILL_322 {caseNum2} -1 {caseLabel2} @OTBTILL_336 {caseNum3} -1 {caseLabel3} @OTBTILL_336 {caseNum4} -1 {caseLabel4} @OTBTILL_336 {caseNum5} -1 {caseLabel5} @OTBTILL_336 {caseNum6} -1 {caseLabel6} @OTBTILL_336 {caseNum7} -1 {caseLabel7} @OTBTILL_336

:OTBTILL_322
gosub @OTBTILL_338
goto @OTBTILL_336

:OTBTILL_336
return 

:OTBTILL_338
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @OTBTILL_585 {caseNum1} 0 {caseLabel1} @OTBTILL_401 {caseNum2} 1 {caseLabel2} @OTBTILL_459 {caseNum3} 2 {caseLabel3} @OTBTILL_542 {caseNum4} -1 {caseLabel4} @OTBTILL_585 {caseNum5} -1 {caseLabel5} @OTBTILL_585 {caseNum6} -1 {caseLabel6} @OTBTILL_585 {caseNum7} -1 {caseLabel7} @OTBTILL_585

:OTBTILL_401
5@ = 1
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
4@ += 1
goto @OTBTILL_585

:OTBTILL_459
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @OTBTILL_535
task_play_anim 0@ {animationName} "SHOP_PAY" {animationFile} "INT_SHOP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:OTBTILL_535
goto @OTBTILL_585

:OTBTILL_542
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @OTBTILL_578
gosub @OTBTILL_587

:OTBTILL_578
goto @OTBTILL_585

:OTBTILL_585
return 

:OTBTILL_587
remove_animation "INT_SHOP"
if 
  not is_char_dead 0@
goto_if_false @OTBTILL_651
task_use_closest_map_attractor 0@ {radius} 50.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "OTBWTCH"

:OTBTILL_651
terminate_this_script 
return 

:OTBTILL_655
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @OTBTILL_725
11@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @OTBTILL_718
task_duck 0@ {time} -2

:OTBTILL_718
goto @OTBTILL_732

:OTBTILL_725
gosub @OTBTILL_587

:OTBTILL_732
goto @OTBTILL_655
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 46 (FBOOTHR)---------------

:FBOOTHR
script_name 'FBOOTHR'
2@ = 0
if 
  2@ == 1
goto_if_false @FBOOTHR_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:FBOOTHR_60
request_animation "FOOD"

:FBOOTHR_68
if 
  not has_animation_loaded "FOOD"
goto_if_false @FBOOTHR_98
wait 0
goto @FBOOTHR_68

:FBOOTHR_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @FBOOTHR_154
5@ = 0
4@ = 1
goto @FBOOTHR_168

:FBOOTHR_154
5@ = -2
4@ = 2

:FBOOTHR_168
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @FBOOTHR_215
set_char_suffers_critical_hits 0@ {state} False
6@ = 1800000
goto @FBOOTHR_222

:FBOOTHR_215
6@ = 0

:FBOOTHR_222
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHR_356
if 
  is_char_using_map_attractor 0@
goto_if_false @FBOOTHR_342
if 
  $iSetPizzaPanic == 0
goto_if_false @FBOOTHR_302
gosub @FBOOTHR_370
goto @FBOOTHR_335

:FBOOTHR_302
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHR_328
$iSetPizzaPanic = 1

:FBOOTHR_328
goto @FBOOTHR_2971

:FBOOTHR_335
goto @FBOOTHR_349

:FBOOTHR_342
gosub @FBOOTHR_2895

:FBOOTHR_349
goto @FBOOTHR_363

:FBOOTHR_356
gosub @FBOOTHR_2895

:FBOOTHR_363
goto @FBOOTHR_222

:FBOOTHR_370
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_503 {caseNum1} 1 {caseLabel1} @FBOOTHR_433 {caseNum2} 2 {caseLabel2} @FBOOTHR_447 {caseNum3} 3 {caseLabel3} @FBOOTHR_461 {caseNum4} 4 {caseLabel4} @FBOOTHR_475 {caseNum5} 5 {caseLabel5} @FBOOTHR_489 {caseNum6} -1 {caseLabel6} @FBOOTHR_503 {caseNum7} -1 {caseLabel7} @FBOOTHR_503

:FBOOTHR_433
gosub @FBOOTHR_505
goto @FBOOTHR_503

:FBOOTHR_447
gosub @FBOOTHR_732
goto @FBOOTHR_503

:FBOOTHR_461
gosub @FBOOTHR_2118
goto @FBOOTHR_503

:FBOOTHR_475
gosub @FBOOTHR_2895
goto @FBOOTHR_503

:FBOOTHR_489
gosub @FBOOTHR_2455
goto @FBOOTHR_503

:FBOOTHR_503
return 

:FBOOTHR_505
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_730 {caseNum1} 0 {caseLabel1} @FBOOTHR_568 {caseNum2} 1 {caseLabel2} @FBOOTHR_628 {caseNum3} -1 {caseLabel3} @FBOOTHR_730 {caseNum4} -1 {caseLabel4} @FBOOTHR_730 {caseNum5} -1 {caseLabel5} @FBOOTHR_730 {caseNum6} -1 {caseLabel6} @FBOOTHR_730 {caseNum7} -1 {caseLabel7} @FBOOTHR_730

:FBOOTHR_568
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_IN_R" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @FBOOTHR_730

:FBOOTHR_628
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_IN_R"
goto_if_false @FBOOTHR_688
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_IN_R"

:FBOOTHR_688
if 
  9@ == 1.0
goto_if_false @FBOOTHR_723
5@ = 0
4@ += 1

:FBOOTHR_723
goto @FBOOTHR_730

:FBOOTHR_730
return 

:FBOOTHR_732
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2116 {caseNum1} -2 {caseLabel1} @FBOOTHR_795 {caseNum2} 0 {caseLabel2} @FBOOTHR_1120 {caseNum3} 1 {caseLabel3} @FBOOTHR_1577 {caseNum4} 2 {caseLabel4} @FBOOTHR_1819 {caseNum5} 3 {caseLabel5} @FBOOTHR_2022 {caseNum6} -1 {caseLabel6} @FBOOTHR_2116 {caseNum7} -1 {caseLabel7} @FBOOTHR_2116

:FBOOTHR_795
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHR_865
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1106

:FBOOTHR_865
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHR_942
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHR_958

:FBOOTHR_942
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHR_958
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHR_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1106

:FBOOTHR_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHR_1106
5@ = 1
goto @FBOOTHR_2116

:FBOOTHR_1120
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHR_1252
if 
  is_char_male 0@
goto_if_false @FBOOTHR_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1245

:FBOOTHR_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHR_1245
goto @FBOOTHR_1563

:FBOOTHR_1252
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHR_1322
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1563

:FBOOTHR_1322
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHR_1399
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHR_1415

:FBOOTHR_1399
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHR_1415
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHR_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHR_1563

:FBOOTHR_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHR_1563
5@ += 1
goto @FBOOTHR_2116

:FBOOTHR_1577
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.1 {yOffset} 0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} 1.0 {yOffset} -0.5 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} -1.0 {yOffset} 0.0 {zOffset} -0.65
if or
  is_char_playing_anim 0@ {animationName} "FF_SIT_LOOK"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT1"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT2"
goto_if_false @FBOOTHR_1812
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False {target} 0@
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:FBOOTHR_1812
goto @FBOOTHR_2116

:FBOOTHR_1819
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHR_1871
clear_char_last_damage_entity 0@
6@ = 0
4@ = 5
5@ = 0
goto @FBOOTHR_2116

:FBOOTHR_1871
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @FBOOTHR_2015
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHR_1952
5@ = 0
4@ += 1
goto @FBOOTHR_2015

:FBOOTHR_1952
if 
  $iSetPizzaPanic == 1
goto_if_false @FBOOTHR_2015
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
5@ += 1

:FBOOTHR_2015
goto @FBOOTHR_2116

:FBOOTHR_2022
if 
  is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHR_2102
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHR_2095
5@ = 0
4@ += 1

:FBOOTHR_2095
goto @FBOOTHR_2109

:FBOOTHR_2102
set_char_never_targetted 0@ {state} True

:FBOOTHR_2109
goto @FBOOTHR_2116

:FBOOTHR_2116
return 

:FBOOTHR_2118
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2453 {caseNum1} 0 {caseLabel1} @FBOOTHR_2181 {caseNum2} 1 {caseLabel2} @FBOOTHR_2264 {caseNum3} 2 {caseLabel3} @FBOOTHR_2299 {caseNum4} -1 {caseLabel4} @FBOOTHR_2453 {caseNum5} -1 {caseLabel5} @FBOOTHR_2453 {caseNum6} -1 {caseLabel6} @FBOOTHR_2453 {caseNum7} -1 {caseLabel7} @FBOOTHR_2453

:FBOOTHR_2181
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHR_2206
drop_object 0@ {state} True

:FBOOTHR_2206
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_OUT_R_180" {animationFile} "FOOD" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @FBOOTHR_2453

:FBOOTHR_2264
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @FBOOTHR_2453

:FBOOTHR_2299
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_OUT_R_180"
goto_if_false @FBOOTHR_2446
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_OUT_R_180"
if 
  9@ == 1.0
goto_if_false @FBOOTHR_2446
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR3 {state} True
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False
5@ = 0
4@ += 1

:FBOOTHR_2446
goto @FBOOTHR_2453

:FBOOTHR_2453
return 

:FBOOTHR_2455
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHR_2893 {caseNum1} 0 {caseLabel1} @FBOOTHR_2518 {caseNum2} 1 {caseLabel2} @FBOOTHR_2570 {caseNum3} 2 {caseLabel3} @FBOOTHR_2726 {caseNum4} -1 {caseLabel4} @FBOOTHR_2893 {caseNum5} -1 {caseLabel5} @FBOOTHR_2893 {caseNum6} -1 {caseLabel6} @FBOOTHR_2893 {caseNum7} -1 {caseLabel7} @FBOOTHR_2893

:FBOOTHR_2518
task_play_anim_non_interruptable 0@ {animationName} "FF_DAM_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
5@ += 1
goto @FBOOTHR_2893

:FBOOTHR_2570
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_DAM_FWD"
goto_if_false @FBOOTHR_2656
9@ = get_char_anim_current_time 0@ {animationName} "FF_DAM_FWD"
if 
  9@ == 1.0
goto_if_false @FBOOTHR_2656
5@ += 1

:FBOOTHR_2656
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHR_2719
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHR_2895

:FBOOTHR_2719
goto @FBOOTHR_2893

:FBOOTHR_2726
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHR_2796
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHR_2895
goto @FBOOTHR_2879

:FBOOTHR_2796
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHR_2865
4@ = 3
5@ = 0
gosub @FBOOTHR_2971
goto @FBOOTHR_2879

:FBOOTHR_2865
4@ = 2
5@ = 2

:FBOOTHR_2879
$iSetPizzaPanic = 1
goto @FBOOTHR_2893

:FBOOTHR_2893
return 

:FBOOTHR_2895
mark_object_as_no_longer_needed 8@
remove_animation "FOOD"
if 
  not is_char_dead 0@
goto_if_false @FBOOTHR_2967
set_char_suffers_critical_hits 0@ {state} True
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCUSTOM"

:FBOOTHR_2967
terminate_this_script 
return 

:FBOOTHR_2971
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHR_3312
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @FBOOTHR_3305
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @FBOOTHR_3291 {caseNum1} 1 {caseLabel1} @FBOOTHR_3082 {caseNum2} 2 {caseLabel2} @FBOOTHR_3164 {caseNum3} 3 {caseLabel3} @FBOOTHR_3213 {caseNum4} 4 {caseLabel4} @FBOOTHR_3227 {caseNum5} 5 {caseLabel5} @FBOOTHR_3277 {caseNum6} -1 {caseLabel6} @FBOOTHR_3305 {caseNum7} -1 {caseLabel7} @FBOOTHR_3305

:FBOOTHR_3082
if 
  5@ > 1
goto_if_false @FBOOTHR_3114
gosub @FBOOTHR_370
goto @FBOOTHR_3157

:FBOOTHR_3114
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHR_3157
task_duck 0@ {time} -2
gosub @FBOOTHR_2895

:FBOOTHR_3157
goto @FBOOTHR_3305

:FBOOTHR_3164
if 
  5@ == 2
goto_if_false @FBOOTHR_3199
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:FBOOTHR_3199
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3213
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3227
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHR_3270
task_duck 0@ {time} -2
gosub @FBOOTHR_2895

:FBOOTHR_3270
goto @FBOOTHR_3305

:FBOOTHR_3277
gosub @FBOOTHR_370
goto @FBOOTHR_3305

:FBOOTHR_3291
gosub @FBOOTHR_2895
goto @FBOOTHR_3305

:FBOOTHR_3305
goto @FBOOTHR_3319

:FBOOTHR_3312
gosub @FBOOTHR_2895

:FBOOTHR_3319
goto @FBOOTHR_2971
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 47 (FBOOTHL)---------------

:FBOOTHL
script_name 'FBOOTHL'
2@ = 0
if 
  2@ == 1
goto_if_false @FBOOTHL_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:FBOOTHL_60
request_animation "FOOD"

:FBOOTHL_68
if 
  not has_animation_loaded "FOOD"
goto_if_false @FBOOTHL_98
wait 0
goto @FBOOTHL_68

:FBOOTHL_98
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @FBOOTHL_154
5@ = 0
4@ = 1
goto @FBOOTHL_168

:FBOOTHL_154
5@ = -2
4@ = 2

:FBOOTHL_168
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @FBOOTHL_215
set_char_suffers_critical_hits 0@ {state} False
6@ = 1800000
goto @FBOOTHL_222

:FBOOTHL_215
6@ = 0

:FBOOTHL_222
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHL_356
if 
  is_char_using_map_attractor 0@
goto_if_false @FBOOTHL_342
if 
  $iSetPizzaPanic == 0
goto_if_false @FBOOTHL_302
gosub @FBOOTHL_370
goto @FBOOTHL_335

:FBOOTHL_302
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHL_328
$iSetPizzaPanic = 1

:FBOOTHL_328
goto @FBOOTHL_2971

:FBOOTHL_335
goto @FBOOTHL_349

:FBOOTHL_342
gosub @FBOOTHL_2895

:FBOOTHL_349
goto @FBOOTHL_363

:FBOOTHL_356
gosub @FBOOTHL_2895

:FBOOTHL_363
goto @FBOOTHL_222

:FBOOTHL_370
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_503 {caseNum1} 1 {caseLabel1} @FBOOTHL_433 {caseNum2} 2 {caseLabel2} @FBOOTHL_447 {caseNum3} 3 {caseLabel3} @FBOOTHL_461 {caseNum4} 4 {caseLabel4} @FBOOTHL_475 {caseNum5} 5 {caseLabel5} @FBOOTHL_489 {caseNum6} -1 {caseLabel6} @FBOOTHL_503 {caseNum7} -1 {caseLabel7} @FBOOTHL_503

:FBOOTHL_433
gosub @FBOOTHL_505
goto @FBOOTHL_503

:FBOOTHL_447
gosub @FBOOTHL_732
goto @FBOOTHL_503

:FBOOTHL_461
gosub @FBOOTHL_2118
goto @FBOOTHL_503

:FBOOTHL_475
gosub @FBOOTHL_2895
goto @FBOOTHL_503

:FBOOTHL_489
gosub @FBOOTHL_2455
goto @FBOOTHL_503

:FBOOTHL_503
return 

:FBOOTHL_505
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_730 {caseNum1} 0 {caseLabel1} @FBOOTHL_568 {caseNum2} 1 {caseLabel2} @FBOOTHL_628 {caseNum3} -1 {caseLabel3} @FBOOTHL_730 {caseNum4} -1 {caseLabel4} @FBOOTHL_730 {caseNum5} -1 {caseLabel5} @FBOOTHL_730 {caseNum6} -1 {caseLabel6} @FBOOTHL_730 {caseNum7} -1 {caseLabel7} @FBOOTHL_730

:FBOOTHL_568
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_IN_L" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @FBOOTHL_730

:FBOOTHL_628
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_IN_L"
goto_if_false @FBOOTHL_688
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_IN_L"

:FBOOTHL_688
if 
  9@ == 1.0
goto_if_false @FBOOTHL_723
5@ = 0
4@ += 1

:FBOOTHL_723
goto @FBOOTHL_730

:FBOOTHL_730
return 

:FBOOTHL_732
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2116 {caseNum1} -2 {caseLabel1} @FBOOTHL_795 {caseNum2} 0 {caseLabel2} @FBOOTHL_1120 {caseNum3} 1 {caseLabel3} @FBOOTHL_1577 {caseNum4} 2 {caseLabel4} @FBOOTHL_1819 {caseNum5} 3 {caseLabel5} @FBOOTHL_2022 {caseNum6} -1 {caseLabel6} @FBOOTHL_2116 {caseNum7} -1 {caseLabel7} @FBOOTHL_2116

:FBOOTHL_795
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHL_865
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1106

:FBOOTHL_865
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHL_942
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHL_958

:FBOOTHL_942
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHL_958
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHL_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1106

:FBOOTHL_1064
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHL_1106
5@ = 1
goto @FBOOTHL_2116

:FBOOTHL_1120
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHL_1252
if 
  is_char_male 0@
goto_if_false @FBOOTHL_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1245

:FBOOTHL_1203
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHL_1245
goto @FBOOTHL_1563

:FBOOTHL_1252
if 
  are_any_chars_near_char 0@ {radius} 2.2
goto_if_false @FBOOTHL_1322
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_LOOK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1563

:FBOOTHL_1322
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @FBOOTHL_1399
8@ = create_object #CJ_PIZZA_2 {x} 10@ {y} 11@ {z} 12@
goto @FBOOTHL_1415

:FBOOTHL_1399
8@ = create_object #CJ_BURG_2 {x} 10@ {y} 11@ {z} 12@

:FBOOTHL_1415
task_pick_up_object 0@ {object} 8@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
if 
  is_char_male 0@
goto_if_false @FBOOTHL_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT1" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @FBOOTHL_1563

:FBOOTHL_1521
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_EAT2" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:FBOOTHL_1563
5@ += 1
goto @FBOOTHL_2116

:FBOOTHL_1577
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} -0.1 {yOffset} 0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} -1.0 {yOffset} -0.5 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} -0.65
if or
  is_char_playing_anim 0@ {animationName} "FF_SIT_LOOK"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT1"
  is_char_playing_anim 0@ {animationName} "FF_SIT_EAT2"
goto_if_false @FBOOTHL_1812
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False {target} 0@
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:FBOOTHL_1812
goto @FBOOTHL_2116

:FBOOTHL_1819
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @FBOOTHL_1871
clear_char_last_damage_entity 0@
6@ = 0
4@ = 5
5@ = 0
goto @FBOOTHL_2116

:FBOOTHL_1871
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @FBOOTHL_2015
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHL_1952
5@ = 0
4@ += 1
goto @FBOOTHL_2015

:FBOOTHL_1952
if 
  $iSetPizzaPanic == 1
goto_if_false @FBOOTHL_2015
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
5@ += 1

:FBOOTHL_2015
goto @FBOOTHL_2116

:FBOOTHL_2022
if 
  is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHL_2102
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHL_2095
5@ = 0
4@ += 1

:FBOOTHL_2095
goto @FBOOTHL_2109

:FBOOTHL_2102
set_char_never_targetted 0@ {state} True

:FBOOTHL_2109
goto @FBOOTHL_2116

:FBOOTHL_2116
return 

:FBOOTHL_2118
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2453 {caseNum1} 0 {caseLabel1} @FBOOTHL_2181 {caseNum2} 1 {caseLabel2} @FBOOTHL_2264 {caseNum3} 2 {caseLabel3} @FBOOTHL_2299 {caseNum4} -1 {caseLabel4} @FBOOTHL_2453 {caseNum5} -1 {caseLabel5} @FBOOTHL_2453 {caseNum6} -1 {caseLabel6} @FBOOTHL_2453 {caseNum7} -1 {caseLabel7} @FBOOTHL_2453

:FBOOTHL_2181
if 
  is_char_holding_object 0@ {handle} -1
goto_if_false @FBOOTHL_2206
drop_object 0@ {state} True

:FBOOTHL_2206
task_play_anim_non_interruptable 0@ {animationName} "FF_SIT_OUT_L_180" {animationFile} "FOOD" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @FBOOTHL_2453

:FBOOTHL_2264
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @FBOOTHL_2453

:FBOOTHL_2299
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_SIT_OUT_L_180"
goto_if_false @FBOOTHL_2446
9@ = get_char_anim_current_time 0@ {animationName} "FF_SIT_OUT_L_180"
if 
  9@ == 1.0
goto_if_false @FBOOTHL_2446
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR3 {state} True
set_uses_collision_of_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR2 {state} False
5@ = 0
4@ += 1

:FBOOTHL_2446
goto @FBOOTHL_2453

:FBOOTHL_2453
return 

:FBOOTHL_2455
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @FBOOTHL_2893 {caseNum1} 0 {caseLabel1} @FBOOTHL_2518 {caseNum2} 1 {caseLabel2} @FBOOTHL_2570 {caseNum3} 2 {caseLabel3} @FBOOTHL_2726 {caseNum4} -1 {caseLabel4} @FBOOTHL_2893 {caseNum5} -1 {caseLabel5} @FBOOTHL_2893 {caseNum6} -1 {caseLabel6} @FBOOTHL_2893 {caseNum7} -1 {caseLabel7} @FBOOTHL_2893

:FBOOTHL_2518
task_play_anim_non_interruptable 0@ {animationName} "FF_DAM_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
5@ += 1
goto @FBOOTHL_2893

:FBOOTHL_2570
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "FF_DAM_FWD"
goto_if_false @FBOOTHL_2656
9@ = get_char_anim_current_time 0@ {animationName} "FF_DAM_FWD"
if 
  9@ == 1.0
goto_if_false @FBOOTHL_2656
5@ += 1

:FBOOTHL_2656
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHL_2719
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHL_2895

:FBOOTHL_2719
goto @FBOOTHL_2893

:FBOOTHL_2726
if 
  not is_char_health_greater 0@ {health} 0
goto_if_false @FBOOTHL_2796
task_play_anim_non_interruptable 0@ {animationName} "FF_DIE_FWD" {animationFile} "FOOD" {blendSpeed} 16.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} 0
gosub @FBOOTHL_2895
goto @FBOOTHL_2879

:FBOOTHL_2796
if 
  not is_area_occupied 16@ {leftBottomY} 17@ {leftBottomZ} 18@ {rightTopX} 19@ {rightTopY} 20@ {rightTopZ} 21@ {solid} False {car} False {char} True {object} False {particle} False
goto_if_false @FBOOTHL_2865
4@ = 3
5@ = 0
gosub @FBOOTHL_2971
goto @FBOOTHL_2879

:FBOOTHL_2865
4@ = 2
5@ = 2

:FBOOTHL_2879
$iSetPizzaPanic = 1
goto @FBOOTHL_2893

:FBOOTHL_2893
return 

:FBOOTHL_2895
mark_object_as_no_longer_needed 8@
remove_animation "FOOD"
if 
  not is_char_dead 0@
goto_if_false @FBOOTHL_2967
set_char_suffers_critical_hits 0@ {state} True
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "PCUSTOM"

:FBOOTHL_2967
terminate_this_script 
return 

:FBOOTHL_2971
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @FBOOTHL_3312
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @FBOOTHL_3305
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @FBOOTHL_3291 {caseNum1} 1 {caseLabel1} @FBOOTHL_3082 {caseNum2} 2 {caseLabel2} @FBOOTHL_3164 {caseNum3} 3 {caseLabel3} @FBOOTHL_3213 {caseNum4} 4 {caseLabel4} @FBOOTHL_3227 {caseNum5} 5 {caseLabel5} @FBOOTHL_3277 {caseNum6} -1 {caseLabel6} @FBOOTHL_3305 {caseNum7} -1 {caseLabel7} @FBOOTHL_3305

:FBOOTHL_3082
if 
  5@ > 1
goto_if_false @FBOOTHL_3114
gosub @FBOOTHL_370
goto @FBOOTHL_3157

:FBOOTHL_3114
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHL_3157
task_duck 0@ {time} -2
gosub @FBOOTHL_2895

:FBOOTHL_3157
goto @FBOOTHL_3305

:FBOOTHL_3164
if 
  5@ == 2
goto_if_false @FBOOTHL_3199
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:FBOOTHL_3199
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3213
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3227
7@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @FBOOTHL_3270
task_duck 0@ {time} -2
gosub @FBOOTHL_2895

:FBOOTHL_3270
goto @FBOOTHL_3305

:FBOOTHL_3277
gosub @FBOOTHL_370
goto @FBOOTHL_3305

:FBOOTHL_3291
gosub @FBOOTHL_2895
goto @FBOOTHL_3305

:FBOOTHL_3305
goto @FBOOTHL_3319

:FBOOTHL_3312
gosub @FBOOTHL_2895

:FBOOTHL_3319
goto @FBOOTHL_2971
write_debug "I__________________________I"
write_debug "H"
write_debug "G"
write_debug "F"
write_debug "E"
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 48 (BARGUY)---------------

:BARGUY
script_name 'BARGUY'
2@ = 0
if 
  2@ == 1
goto_if_false @BARGUY_60
0@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BARGUY_60
request_animation "BAR"

:BARGUY_67
if 
  not has_animation_loaded "BAR"
goto_if_false @BARGUY_96
wait 0
goto @BARGUY_67

:BARGUY_96
3@ = 1
4@ = 0
5@ = 0
11@ = 0

:BARGUY_124
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BARGUY_272
if 
  is_char_using_map_attractor 0@
goto_if_false @BARGUY_258
if 
  $iSetCasinoPanic == 0
goto_if_false @BARGUY_244
if 
  not has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @BARGUY_223
gosub @BARGUY_286
goto @BARGUY_237

:BARGUY_223
$iSetCasinoPanic = 1
goto @BARGUY_1067

:BARGUY_237
goto @BARGUY_251

:BARGUY_244
goto @BARGUY_1067

:BARGUY_251
goto @BARGUY_265

:BARGUY_258
gosub @BARGUY_1035

:BARGUY_265
goto @BARGUY_279

:BARGUY_272
gosub @BARGUY_1035

:BARGUY_279
goto @BARGUY_124

:BARGUY_286
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BARGUY_363 {caseNum1} 1 {caseLabel1} @BARGUY_349 {caseNum2} -1 {caseLabel2} @BARGUY_363 {caseNum3} -1 {caseLabel3} @BARGUY_363 {caseNum4} -1 {caseLabel4} @BARGUY_363 {caseNum5} -1 {caseLabel5} @BARGUY_363 {caseNum6} -1 {caseLabel6} @BARGUY_363 {caseNum7} -1 {caseLabel7} @BARGUY_363

:BARGUY_349
gosub @BARGUY_365
goto @BARGUY_363

:BARGUY_363
return 

:BARGUY_365
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BARGUY_1033 {caseNum1} 0 {caseLabel1} @BARGUY_428 {caseNum2} 1 {caseLabel2} @BARGUY_488 {caseNum3} 2 {caseLabel3} @BARGUY_577 {caseNum4} 3 {caseLabel4} @BARGUY_674 {caseNum5} 4 {caseLabel5} @BARGUY_754 {caseNum6} 5 {caseLabel6} @BARGUY_826 {caseNum7} 6 {caseLabel7} @BARGUY_947

:BARGUY_428
10@ = get_script_task_status 0@ {taskId} 1481
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_481
task_look_about 0@ {time} -2
10@ = set_char_say_context 0@ {phrase} SpeechId.BarChat
4@ += 1

:BARGUY_481
goto @BARGUY_1033

:BARGUY_488
10@ = get_char_health 0@
if 
  10@ == 99
goto_if_false @BARGUY_570
set_char_health 0@ {health} 100
task_play_anim 0@ {animationName} "BARCUSTOM_ORDER" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:BARGUY_570
goto @BARGUY_1033

:BARGUY_577
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_667
task_play_anim 0@ {animationName} "BARCUSTOM_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 600000
10@ = set_char_say_context 0@ {phrase} SpeechId.BarChat
4@ += 1

:BARGUY_667
goto @BARGUY_1033

:BARGUY_674
10@ = get_char_health 0@
if 
  10@ == 99
goto_if_false @BARGUY_747
task_play_anim 0@ {animationName} "BARCUSTOM_GET" {animationFile} "BAR" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
4@ += 1

:BARGUY_747
goto @BARGUY_1033

:BARGUY_754
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_819
7@, 8@, 9@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.1 {zOffset} 1.0
4@ += 1

:BARGUY_819
goto @BARGUY_1033

:BARGUY_826
if 
  is_char_male 0@
goto_if_false @BARGUY_891
task_play_anim 0@ {animationName} "DNK_STNDM_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 15000
goto @BARGUY_933

:BARGUY_891
task_play_anim 0@ {animationName} "DNK_STNDF_LOOP" {animationFile} "BAR" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 15000

:BARGUY_933
4@ += 1
goto @BARGUY_1033

:BARGUY_947
10@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @BARGUY_1026
set_char_health 0@ {health} 100
if 
  is_var_text_label16_equal_to_text_label v$txtEntryExit == "BAR1"
goto_if_false @BARGUY_1019
4@ = 0
goto @BARGUY_1026

:BARGUY_1019
gosub @BARGUY_1035

:BARGUY_1026
goto @BARGUY_1033

:BARGUY_1033
return 

:BARGUY_1035
remove_animation "BAR"
if 
  not is_char_dead 0@
goto_if_false @BARGUY_1063
clear_char_tasks_immediately 0@

:BARGUY_1063
terminate_this_script 
return 

:BARGUY_1067
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BARGUY_1137
11@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 11@ == 7
goto_if_false @BARGUY_1130
task_duck 0@ {time} -2

:BARGUY_1130
goto @BARGUY_1144

:BARGUY_1137
gosub @BARGUY_1035

:BARGUY_1144
goto @BARGUY_1067
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 49 (PEDROUL)---------------

:PEDROUL
script_name 'PEDROUL'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDROUL_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PEDROUL_60
request_animation "CASINO"

:PEDROUL_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @PEDROUL_102
wait 0
goto @PEDROUL_70

:PEDROUL_102
3@ = 1
4@ = 0

:PEDROUL_116
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDROUL_227
if 
  is_char_using_map_attractor 0@
goto_if_false @PEDROUL_213
if 
  $iSetCasinoPanic == 0
goto_if_false @PEDROUL_191
gosub @PEDROUL_241
goto @PEDROUL_206

:PEDROUL_191
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PEDROUL_998

:PEDROUL_206
goto @PEDROUL_220

:PEDROUL_213
gosub @PEDROUL_984

:PEDROUL_220
goto @PEDROUL_234

:PEDROUL_227
gosub @PEDROUL_984

:PEDROUL_234
goto @PEDROUL_116

:PEDROUL_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDROUL_318 {caseNum1} 1 {caseLabel1} @PEDROUL_304 {caseNum2} -1 {caseLabel2} @PEDROUL_318 {caseNum3} -1 {caseLabel3} @PEDROUL_318 {caseNum4} -1 {caseLabel4} @PEDROUL_318 {caseNum5} -1 {caseLabel5} @PEDROUL_318 {caseNum6} -1 {caseLabel6} @PEDROUL_318 {caseNum7} -1 {caseLabel7} @PEDROUL_318

:PEDROUL_304
gosub @PEDROUL_320
goto @PEDROUL_318

:PEDROUL_318
return 

:PEDROUL_320
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @PEDROUL_982 {caseNum1} 0 {caseLabel1} @PEDROUL_383 {caseNum2} 1 {caseLabel2} @PEDROUL_438 {caseNum3} 2 {caseLabel3} @PEDROUL_533 {caseNum4} 3 {caseLabel4} @PEDROUL_631 {caseNum5} 4 {caseLabel5} @PEDROUL_813 {caseNum6} 5 {caseLabel6} @PEDROUL_939 {caseNum7} -1 {caseLabel7} @PEDROUL_982

:PEDROUL_383
task_play_anim 0@ {animationName} "ROULETTE_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @PEDROUL_982

:PEDROUL_438
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_526
task_play_anim 0@ {animationName} "ROULETTE_BET" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambRoulChat
4@ += 1

:PEDROUL_526
goto @PEDROUL_982

:PEDROUL_533
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_624
2@ = generate_random_int_in_range 8000 {max} 15000
task_play_anim 0@ {animationName} "ROULETTE_LOOP" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:PEDROUL_624
goto @PEDROUL_982

:PEDROUL_631
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_806
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDROUL_746
task_play_anim 0@ {animationName} "ROULETTE_WIN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambCasinoWin
goto @PEDROUL_799

:PEDROUL_746
task_play_anim 0@ {animationName} "ROULETTE_LOSE" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambCasinoLose

:PEDROUL_799
4@ += 1

:PEDROUL_806
goto @PEDROUL_982

:PEDROUL_813
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_932
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDROUL_883
4@ = 1
goto @PEDROUL_932

:PEDROUL_883
task_play_anim 0@ {animationName} "ROULETTE_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PEDROUL_932
goto @PEDROUL_982

:PEDROUL_939
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDROUL_975
gosub @PEDROUL_984

:PEDROUL_975
goto @PEDROUL_982

:PEDROUL_982
return 

:PEDROUL_984
remove_animation "CASINO"
terminate_this_script 
return 

:PEDROUL_998
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDROUL_1068
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDROUL_1061
task_duck 0@ {time} -2

:PEDROUL_1061
goto @PEDROUL_1075

:PEDROUL_1068
gosub @PEDROUL_984

:PEDROUL_1075
goto @PEDROUL_998
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 50 (PEDCARD)---------------

:PEDCARD
script_name 'PEDCARD'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDCARD_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PEDCARD_60
request_animation "CASINO"

:PEDCARD_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @PEDCARD_102
wait 0
goto @PEDCARD_70

:PEDCARD_102
3@ = 1
4@ = 0

:PEDCARD_116
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDCARD_227
if 
  is_char_using_map_attractor 0@
goto_if_false @PEDCARD_213
if 
  $iSetCasinoPanic == 0
goto_if_false @PEDCARD_191
gosub @PEDCARD_241
goto @PEDCARD_206

:PEDCARD_191
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PEDCARD_1335

:PEDCARD_206
goto @PEDCARD_220

:PEDCARD_213
gosub @PEDCARD_1321

:PEDCARD_220
goto @PEDCARD_234

:PEDCARD_227
gosub @PEDCARD_1321

:PEDCARD_234
goto @PEDCARD_116

:PEDCARD_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDCARD_318 {caseNum1} 1 {caseLabel1} @PEDCARD_304 {caseNum2} -1 {caseLabel2} @PEDCARD_318 {caseNum3} -1 {caseLabel3} @PEDCARD_318 {caseNum4} -1 {caseLabel4} @PEDCARD_318 {caseNum5} -1 {caseLabel5} @PEDCARD_318 {caseNum6} -1 {caseLabel6} @PEDCARD_318 {caseNum7} -1 {caseLabel7} @PEDCARD_318

:PEDCARD_304
gosub @PEDCARD_320
goto @PEDCARD_318

:PEDCARD_318
return 

:PEDCARD_320
switch_start 4@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @PEDCARD_1319 {caseNum1} 0 {caseLabel1} @PEDCARD_448 {caseNum2} 1 {caseLabel2} @PEDCARD_510 {caseNum3} 2 {caseLabel3} @PEDCARD_596 {caseNum4} 3 {caseLabel4} @PEDCARD_691 {caseNum5} 4 {caseLabel5} @PEDCARD_872 {caseNum6} 5 {caseLabel6} @PEDCARD_977 {caseNum7} 6 {caseLabel7} @PEDCARD_1153
switch_continued 7 {caseLabel1} @PEDCARD_1276 {caseNum2} -1 {caseLabel2} @PEDCARD_1319 {caseNum3} -1 {caseLabel3} @PEDCARD_1319 {caseNum4} -1 {caseLabel4} @PEDCARD_1319 {caseNum5} -1 {caseLabel5} @PEDCARD_1319 {caseNum6} -1 {caseLabel6} @PEDCARD_1319 {caseNum7} -1 {caseLabel7} @PEDCARD_1319 {caseNum8} -1 {caseLabel8} @PEDCARD_1319 {caseNum9} -1 {caseLabel9} @PEDCARD_1319

:PEDCARD_448
task_play_anim 0@ {animationName} "CARDS_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjHit
4@ += 1
goto @PEDCARD_1319

:PEDCARD_510
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_589
task_play_anim 0@ {animationName} "CARDS_PICK_01" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PEDCARD_589
goto @PEDCARD_1319

:PEDCARD_596
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_684
2@ = generate_random_int_in_range 8000 {max} 15000
task_play_anim 0@ {animationName} "CARDS_LOOP" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:PEDCARD_684
goto @PEDCARD_1319

:PEDCARD_691
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_865
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDCARD_805
task_play_anim 0@ {animationName} "CARDS_RAISE" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjDouble
goto @PEDCARD_858

:PEDCARD_805
task_play_anim 0@ {animationName} "CARDS_PICK_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjHit

:PEDCARD_858
4@ += 1

:PEDCARD_865
goto @PEDCARD_1319

:PEDCARD_872
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_970
2@ = generate_random_int_in_range 1500 {max} 5000
task_play_anim 0@ {animationName} "CARDS_LOOP" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjStay
4@ += 1

:PEDCARD_970
goto @PEDCARD_1319

:PEDCARD_977
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1146
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDCARD_1089
task_play_anim 0@ {animationName} "CARDS_WIN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjWin
goto @PEDCARD_1139

:PEDCARD_1089
task_play_anim 0@ {animationName} "CARDS_LOSE" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambBjLose

:PEDCARD_1139
4@ += 1

:PEDCARD_1146
goto @PEDCARD_1319

:PEDCARD_1153
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1269
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDCARD_1223
4@ = 1
goto @PEDCARD_1269

:PEDCARD_1223
task_play_anim 0@ {animationName} "CARDS_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PEDCARD_1269
goto @PEDCARD_1319

:PEDCARD_1276
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDCARD_1312
gosub @PEDCARD_1321

:PEDCARD_1312
goto @PEDCARD_1319

:PEDCARD_1319
return 

:PEDCARD_1321
remove_animation "CASINO"
terminate_this_script 
return 

:PEDCARD_1335
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDCARD_1405
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDCARD_1398
task_duck 0@ {time} -2

:PEDCARD_1398
goto @PEDCARD_1412

:PEDCARD_1405
gosub @PEDCARD_1321

:PEDCARD_1412
goto @PEDCARD_1335
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 51 (PEDSLOT)---------------

:PEDSLOT
script_name 'PEDSLOT'
2@ = 0
if 
  2@ == 1
goto_if_false @PEDSLOT_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PEDSLOT_60
request_animation "CASINO"

:PEDSLOT_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @PEDSLOT_102
wait 0
goto @PEDSLOT_70

:PEDSLOT_102
3@ = 1
4@ = 0

:PEDSLOT_116
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDSLOT_227
if 
  is_char_using_map_attractor 0@
goto_if_false @PEDSLOT_213
if 
  $iSetCasinoPanic == 0
goto_if_false @PEDSLOT_191
gosub @PEDSLOT_241
goto @PEDSLOT_206

:PEDSLOT_191
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PEDSLOT_1042

:PEDSLOT_206
goto @PEDSLOT_220

:PEDSLOT_213
gosub @PEDSLOT_1028

:PEDSLOT_220
goto @PEDSLOT_234

:PEDSLOT_227
gosub @PEDSLOT_1028

:PEDSLOT_234
goto @PEDSLOT_116

:PEDSLOT_241
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PEDSLOT_318 {caseNum1} 1 {caseLabel1} @PEDSLOT_304 {caseNum2} -1 {caseLabel2} @PEDSLOT_318 {caseNum3} -1 {caseLabel3} @PEDSLOT_318 {caseNum4} -1 {caseLabel4} @PEDSLOT_318 {caseNum5} -1 {caseLabel5} @PEDSLOT_318 {caseNum6} -1 {caseLabel6} @PEDSLOT_318 {caseNum7} -1 {caseLabel7} @PEDSLOT_318

:PEDSLOT_304
gosub @PEDSLOT_320
goto @PEDSLOT_318

:PEDSLOT_318
return 

:PEDSLOT_320
switch_start 4@ {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @PEDSLOT_1026 {caseNum1} 0 {caseLabel1} @PEDSLOT_383 {caseNum2} 1 {caseLabel2} @PEDSLOT_434 {caseNum3} 2 {caseLabel3} @PEDSLOT_519 {caseNum4} 3 {caseLabel4} @PEDSLOT_613 {caseNum5} 4 {caseLabel5} @PEDSLOT_770 {caseNum6} 5 {caseLabel6} @PEDSLOT_942 {caseNum7} -1 {caseLabel7} @PEDSLOT_1026

:PEDSLOT_383
task_play_anim 0@ {animationName} "SLOT_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @PEDSLOT_1026

:PEDSLOT_434
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_512
task_play_anim 0@ {animationName} "SLOT_BET_01" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2@
4@ += 1

:PEDSLOT_512
goto @PEDSLOT_1026

:PEDSLOT_519
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_606
2@ = generate_random_int_in_range 1500 {max} 5000
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:PEDSLOT_606
goto @PEDSLOT_1026

:PEDSLOT_613
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_763
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDSLOT_717
task_play_anim 0@ {animationName} "SLOT_BET_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @PEDSLOT_756

:PEDSLOT_717
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PEDSLOT_756
4@ += 1

:PEDSLOT_763
goto @PEDSLOT_1026

:PEDSLOT_770
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_935
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDSLOT_885
task_play_anim 0@ {animationName} "SLOT_WIN_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
2@ = set_char_say_context 0@ {phrase} SpeechId.GambSlotWin
goto @PEDSLOT_928

:PEDSLOT_885
task_play_anim 0@ {animationName} "SLOT_LOSE_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:PEDSLOT_928
4@ += 1

:PEDSLOT_935
goto @PEDSLOT_1026

:PEDSLOT_942
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @PEDSLOT_1019
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PEDSLOT_1012
4@ = 0
goto @PEDSLOT_1019

:PEDSLOT_1012
gosub @PEDSLOT_1028

:PEDSLOT_1019
goto @PEDSLOT_1026

:PEDSLOT_1026
return 

:PEDSLOT_1028
remove_animation "CASINO"
terminate_this_script 
return 

:PEDSLOT_1042
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PEDSLOT_1112
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PEDSLOT_1105
task_duck 0@ {time} -2

:PEDSLOT_1105
goto @PEDSLOT_1119

:PEDSLOT_1112
gosub @PEDSLOT_1028

:PEDSLOT_1119
goto @PEDSLOT_1042
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 52 (DANCER)---------------

:DANCER
script_name 'DANCER'
2@ = 0
if 
  2@ == 1
goto_if_false @DANCER_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:DANCER_60
request_animation "DANCING"

:DANCER_71
if 
  not has_animation_loaded "DANCING"
goto_if_false @DANCER_104
wait 0
goto @DANCER_71

:DANCER_104
if 
  not is_char_dead 0@
goto_if_false @DANCER_317
2@ = get_char_model 0@
if 
  10 > 2@
goto_if_false @DANCER_169
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 1500
goto @DANCER_225

:DANCER_169
if 
  100 > 2@
goto_if_false @DANCER_210
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 150
goto @DANCER_225

:DANCER_210
set_lvar_int_to_lvar_int 7@ = 2@
7@ *= 15

:DANCER_225
set_lvar_int_to_lvar_int 3@ = 2@
3@ /= 2
3@ *= 2
if 
  is_int_lvar_equal_to_int_lvar 2@ == 3@
goto_if_false @DANCER_310
if 
  is_char_male 0@
goto_if_false @DANCER_296
8@ = 1
goto @DANCER_303

:DANCER_296
8@ = 2

:DANCER_303
goto @DANCER_317

:DANCER_310
8@ = 3

:DANCER_317
3@ = 1
4@ = 0

:DANCER_331
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @DANCER_442
if 
  is_char_using_map_attractor 0@
goto_if_false @DANCER_428
if 
  $iSetBarPanic == 0
goto_if_false @DANCER_406
gosub @DANCER_456
goto @DANCER_421

:DANCER_406
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @DANCER_1424

:DANCER_421
goto @DANCER_435

:DANCER_428
gosub @DANCER_1358

:DANCER_435
goto @DANCER_449

:DANCER_442
gosub @DANCER_1358

:DANCER_449
goto @DANCER_331

:DANCER_456
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @DANCER_540 {caseNum1} 1 {caseLabel1} @DANCER_519 {caseNum2} -1 {caseLabel2} @DANCER_540 {caseNum3} -1 {caseLabel3} @DANCER_540 {caseNum4} -1 {caseLabel4} @DANCER_540 {caseNum5} -1 {caseLabel5} @DANCER_540 {caseNum6} -1 {caseLabel6} @DANCER_540 {caseNum7} -1 {caseLabel7} @DANCER_540

:DANCER_519
gosub @DANCER_1246
gosub @DANCER_542
goto @DANCER_540

:DANCER_540
return 

:DANCER_542
switch_start 4@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @DANCER_1244 {caseNum1} 0 {caseLabel1} @DANCER_605 {caseNum2} 1 {caseLabel2} @DANCER_818 {caseNum3} 2 {caseLabel3} @DANCER_1031 {caseNum4} -1 {caseLabel4} @DANCER_1244 {caseNum5} -1 {caseLabel5} @DANCER_1244 {caseNum6} -1 {caseLabel6} @DANCER_1244 {caseNum7} -1 {caseLabel7} @DANCER_1244

:DANCER_605
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_811
if 
  8@ == 1
goto_if_false @DANCER_699
task_play_anim 0@ {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_804

:DANCER_699
if 
  8@ == 2
goto_if_false @DANCER_764
task_play_anim 0@ {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_804

:DANCER_764
task_play_anim 0@ {animationName} "DNCE_M_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@

:DANCER_804
4@ += 1

:DANCER_811
goto @DANCER_1244

:DANCER_818
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_1024
if 
  8@ == 1
goto_if_false @DANCER_912
task_play_anim 0@ {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1017

:DANCER_912
if 
  8@ == 2
goto_if_false @DANCER_977
task_play_anim 0@ {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1017

:DANCER_977
task_play_anim 0@ {animationName} "DNCE_M_B" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@

:DANCER_1017
4@ += 1

:DANCER_1024
goto @DANCER_1244

:DANCER_1031
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @DANCER_1237
if 
  8@ == 1
goto_if_false @DANCER_1125
task_play_anim 0@ {animationName} "DNCE_M_A" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1230

:DANCER_1125
if 
  8@ == 2
goto_if_false @DANCER_1190
task_play_anim 0@ {animationName} "DNCE_M_D" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@
goto @DANCER_1230

:DANCER_1190
task_play_anim 0@ {animationName} "DNCE_M_C" {animationFile} "DANCING" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 7@

:DANCER_1230
4@ = 0

:DANCER_1237
goto @DANCER_1244

:DANCER_1244
return 

:DANCER_1246
if 
  is_global_var_bit_set_const $iDanceReport {bitIndex} 31
goto_if_false @DANCER_1278
9@ = 1
goto @DANCER_1356

:DANCER_1278
if 
  9@ == 1
goto_if_false @DANCER_1356
if 
  $iDanceScore > 3000
goto_if_false @DANCER_1339
2@ = set_char_say_context 0@ {phrase} SpeechId.DanceImprHigh
9@ = 0
goto @DANCER_1356

:DANCER_1339
2@ = set_char_say_context 0@ {phrase} SpeechId.DanceImprNot
9@ = 0

:DANCER_1356
return 

:DANCER_1358
remove_animation "DANCING"
if 
  not is_char_dead 0@
goto_if_false @DANCER_1420
task_use_closest_map_attractor 0@ {radius} 100.0 {modelId} 0 {fromX} 0.0 {fromY} 0.0 {fromZ} 0.0 {name} "DANCER"

:DANCER_1420
terminate_this_script 
return 

:DANCER_1424
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @DANCER_1494
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @DANCER_1487
task_duck 0@ {time} -2

:DANCER_1487
goto @DANCER_1501

:DANCER_1494
gosub @DANCER_1358

:DANCER_1501
goto @DANCER_1424
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 53 (STRIPW)---------------

:STRIPW
script_name 'STRIPW'
2@ = 0
if 
  2@ == 1
goto_if_false @STRIPW_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:STRIPW_60
request_animation "STRIP"

:STRIPW_69
if 
  not has_animation_loaded "STRIP"
goto_if_false @STRIPW_109
wait 0
request_animation "STRIP"
goto @STRIPW_69

:STRIPW_109
3@ = 1
4@ = 0
if 
  is_player_playing $player1
goto_if_false @STRIPW_198
v$txtString = get_name_of_entry_exit_char_used $scplayer
if 
  is_var_text_label16_equal_to_text_label v$txtString == "STRIP2"
goto_if_false @STRIPW_188
10@ = 3.0
goto @STRIPW_198

:STRIPW_188
10@ = 4.0

:STRIPW_198
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @STRIPW_382
if 
  is_char_using_map_attractor 0@
goto_if_false @STRIPW_332
if 
  $iSetSTRIPPanic == 0
goto_if_false @STRIPW_318
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @STRIPW_304
$iSetSTRIPPanic = 1
goto @STRIPW_3515
goto @STRIPW_311

:STRIPW_304
gosub @STRIPW_396

:STRIPW_311
goto @STRIPW_325

:STRIPW_318
goto @STRIPW_3515

:STRIPW_325
goto @STRIPW_375

:STRIPW_332
$iBouncerAction = 1
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPW_375
task_duck 0@ {time} -1

:STRIPW_375
goto @STRIPW_389

:STRIPW_382
gosub @STRIPW_3497

:STRIPW_389
goto @STRIPW_198

:STRIPW_396
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @STRIPW_473 {caseNum1} 1 {caseLabel1} @STRIPW_459 {caseNum2} -1 {caseLabel2} @STRIPW_473 {caseNum3} -1 {caseLabel3} @STRIPW_473 {caseNum4} -1 {caseLabel4} @STRIPW_473 {caseNum5} -1 {caseLabel5} @STRIPW_473 {caseNum6} -1 {caseLabel6} @STRIPW_473 {caseNum7} -1 {caseLabel7} @STRIPW_473

:STRIPW_459
gosub @STRIPW_475
goto @STRIPW_473

:STRIPW_473
return 

:STRIPW_475
switch_start 4@ {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @STRIPW_3266 {caseNum1} 0 {caseLabel1} @STRIPW_603 {caseNum2} 1 {caseLabel2} @STRIPW_772 {caseNum3} 2 {caseLabel3} @STRIPW_1133 {caseNum4} 3 {caseLabel4} @STRIPW_1470 {caseNum5} 4 {caseLabel5} @STRIPW_1835 {caseNum6} 5 {caseLabel6} @STRIPW_2056 {caseNum7} 6 {caseLabel7} @STRIPW_2642
switch_continued 7 {caseLabel1} @STRIPW_2850 {caseNum2} 8 {caseLabel2} @STRIPW_3058 {caseNum3} -1 {caseLabel3} @STRIPW_3266 {caseNum4} -1 {caseLabel4} @STRIPW_3266 {caseNum5} -1 {caseLabel5} @STRIPW_3266 {caseNum6} -1 {caseLabel6} @STRIPW_3266 {caseNum7} -1 {caseLabel7} @STRIPW_3266 {caseNum8} -1 {caseLabel8} @STRIPW_3266 {caseNum9} -1 {caseLabel9} @STRIPW_3266

:STRIPW_603
if 
  is_char_playing_anim 0@ {animationName} "STR_B2A"
goto_if_false @STRIPW_719
9@ = get_char_anim_current_time 0@ {animationName} "STR_B2A"
if 
  9@ >= 1.0
goto_if_false @STRIPW_712
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_712
goto @STRIPW_765

:STRIPW_719
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_765
goto @STRIPW_3266

:STRIPW_772
gosub @STRIPW_3268
if 
  is_char_playing_anim 0@ {animationName} "STR_LOOP_A"
goto_if_false @STRIPW_1087
9@ = get_char_anim_current_time 0@ {animationName} "STR_LOOP_A"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1080
if and
  does_object_exist $iPlayerMoney
  is_int_var_equal_to_int_lvar $iStripperPed == 0@
goto_if_false @STRIPW_922
task_play_anim 0@ {animationName} "STR_A2B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1080

:STRIPW_922
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
if 
  is_money_pickup_at_coords 6@ {y} 7@ {z} 8@
goto_if_false @STRIPW_1041
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
task_play_anim 0@ {animationName} "STR_A2B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1080

:STRIPW_1041
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_1080
goto @STRIPW_1126

:STRIPW_1087
task_play_anim 0@ {animationName} "STR_LOOP_A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_1126
goto @STRIPW_3266

:STRIPW_1133
if 
  is_char_playing_anim 0@ {animationName} "STR_A2B"
goto_if_false @STRIPW_1301
delete_object $iPlayerMoney
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_A2B"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1294
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1294
goto @STRIPW_1463

:STRIPW_1301
if 
  is_char_playing_anim 0@ {animationName} "STR_C2B"
goto_if_false @STRIPW_1417
9@ = get_char_anim_current_time 0@ {animationName} "STR_C2B"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1410
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1410
goto @STRIPW_1463

:STRIPW_1417
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1463
goto @STRIPW_3266

:STRIPW_1470
gosub @STRIPW_3268
if 
  is_char_playing_anim 0@ {animationName} "STR_LOOP_B"
goto_if_false @STRIPW_1789
9@ = get_char_anim_current_time 0@ {animationName} "STR_LOOP_B"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1782
if and
  does_object_exist $iPlayerMoney
  is_int_var_equal_to_int_lvar $iStripperPed == 0@
goto_if_false @STRIPW_1620
task_play_anim 0@ {animationName} "STR_B2C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1782

:STRIPW_1620
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
if 
  is_money_pickup_at_coords 6@ {y} 7@ {z} 8@
goto_if_false @STRIPW_1739
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
task_play_anim 0@ {animationName} "STR_B2C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @STRIPW_1782

:STRIPW_1739
task_play_anim 0@ {animationName} "STR_B2A" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 0

:STRIPW_1782
goto @STRIPW_1828

:STRIPW_1789
task_play_anim 0@ {animationName} "STR_LOOP_B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_1828
goto @STRIPW_3266

:STRIPW_1835
if 
  is_char_playing_anim 0@ {animationName} "STR_B2C"
goto_if_false @STRIPW_2003
delete_object $iPlayerMoney
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_B2C"
if 
  9@ >= 1.0
goto_if_false @STRIPW_1996
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_1996
goto @STRIPW_2049

:STRIPW_2003
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:STRIPW_2049
goto @STRIPW_3266

:STRIPW_2056
gosub @STRIPW_3268
if 
  is_char_playing_anim 0@ {animationName} "STR_LOOP_C"
goto_if_false @STRIPW_2596
9@ = get_char_anim_current_time 0@ {animationName} "STR_LOOP_C"
if 
  9@ >= 1.0
goto_if_false @STRIPW_2589
if and
  does_object_exist $iPlayerMoney
  is_int_var_equal_to_int_lvar $iStripperPed == 0@
goto_if_false @STRIPW_2431
6@, 7@, 8@ = get_char_coordinates 0@
9@ = get_char_heading $scplayer
9@ += 180.0
2@ = generate_random_int_in_range 35 {max} 100
if 
  33 > 2@
goto_if_false @STRIPW_2281
task_char_slide_to_coord_and_play_anim 0@ {x} 6@ {y} 7@ {z} 8@ {heading} 9@ {radius} -1.0 {animationName} "STR_C3" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 6
goto @STRIPW_2424

:STRIPW_2281
if 
  2@ > 66
goto_if_false @STRIPW_2365
task_char_slide_to_coord_and_play_anim 0@ {x} 6@ {y} 7@ {z} 8@ {heading} 9@ {radius} -1.0 {animationName} "STR_C2" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 7
goto @STRIPW_2424

:STRIPW_2365
task_char_slide_to_coord_and_play_anim 0@ {x} 6@ {y} 7@ {z} 8@ {heading} 9@ {radius} -1.0 {animationName} "STR_C1" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 8

:STRIPW_2424
goto @STRIPW_2589

:STRIPW_2431
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
if 
  is_money_pickup_at_coords 6@ {y} 7@ {z} 8@
goto_if_false @STRIPW_2546
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
goto @STRIPW_2589

:STRIPW_2546
task_play_anim 0@ {animationName} "STR_C2B" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 2

:STRIPW_2589
goto @STRIPW_2635

:STRIPW_2596
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_2635
goto @STRIPW_3266

:STRIPW_2642
if 
  is_char_playing_anim 0@ {animationName} "STR_C3"
goto_if_false @STRIPW_2808
delete_object $iPlayerMoney
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_C3"
if 
  9@ >= 1.0
goto_if_false @STRIPW_2801
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 5

:STRIPW_2801
goto @STRIPW_2843

:STRIPW_2808
task_play_anim 0@ {animationName} "STR_C3" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_2843
goto @STRIPW_3266

:STRIPW_2850
if 
  is_char_playing_anim 0@ {animationName} "STR_C2"
goto_if_false @STRIPW_3016
delete_object $iPlayerMoney
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_C2"
if 
  9@ >= 1.0
goto_if_false @STRIPW_3009
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 5

:STRIPW_3009
goto @STRIPW_3051

:STRIPW_3016
task_play_anim 0@ {animationName} "STR_C2" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_3051
goto @STRIPW_3266

:STRIPW_3058
if 
  is_char_playing_anim 0@ {animationName} "STR_C1"
goto_if_false @STRIPW_3224
delete_object $iPlayerMoney
6@, 7@, 8@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
clear_area 6@ {y} 7@ {z} 8@ {radius} 0.3 {clearParticles} False
9@ = get_char_anim_current_time 0@ {animationName} "STR_C1"
if 
  9@ >= 1.0
goto_if_false @STRIPW_3217
task_play_anim 0@ {animationName} "STR_LOOP_C" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 5

:STRIPW_3217
goto @STRIPW_3259

:STRIPW_3224
task_play_anim 0@ {animationName} "STR_C1" {animationFile} "STRIP" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1

:STRIPW_3259
goto @STRIPW_3266

:STRIPW_3266
return 

:STRIPW_3268
if and
  is_char_stopped $scplayer
  is_score_greater $player1 {money} 19
goto_if_false @STRIPW_3463
if 
  not does_object_exist $iPlayerMoney
goto_if_false @STRIPW_3456
if and
  locate_char_on_foot_char_3d $scplayer {target} 0@ {xRadius} 10@ {yRadius} 10@ {zRadius} 1.0 {drawSphere} False
  $iThrowMoneyState == 0
goto_if_false @STRIPW_3424
if 
  11@ == 0
goto_if_false @STRIPW_3378
$iPrintStripperHelp += 1
11@ = 1

:STRIPW_3378
if and
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
  $iThrowMoneyState == 0
goto_if_false @STRIPW_3417
set_var_int_to_lvar_int $iStripperPed = 0@
$iThrowMoneyState = 1

:STRIPW_3417
goto @STRIPW_3456

:STRIPW_3424
if 
  11@ == 1
goto_if_false @STRIPW_3456
$iPrintStripperHelp -= 1
11@ = 0

:STRIPW_3456
goto @STRIPW_3495

:STRIPW_3463
if 
  11@ == 1
goto_if_false @STRIPW_3495
$iPrintStripperHelp -= 1
11@ = 0

:STRIPW_3495
return 

:STRIPW_3497
remove_animation "STRIP"
delete_object $iPlayerMoney
terminate_this_script 
return 

:STRIPW_3515
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @STRIPW_3585
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPW_3578
task_duck 0@ {time} -2

:STRIPW_3578
goto @STRIPW_3592

:STRIPW_3585
gosub @STRIPW_3497

:STRIPW_3592
goto @STRIPW_3515
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 54 (STRIPM)---------------

:STRIPM
script_name 'STRIPM'
2@ = 0
if 
  2@ == 1
goto_if_false @STRIPM_60
0@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:STRIPM_60
request_animation "STRIP"

:STRIPM_69
if 
  not has_animation_loaded "STRIP"
goto_if_false @STRIPM_100
wait 0
goto @STRIPM_69

:STRIPM_100
3@ = 1
4@ = 0

:STRIPM_114
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @STRIPM_298
if 
  is_char_using_map_attractor 0@
goto_if_false @STRIPM_284
if 
  $iSetSTRIPPanic == 0
goto_if_false @STRIPM_262
7@, 8@, 9@ = get_char_coordinates 0@
10@ = get_user_of_closest_map_attractor 7@ {y} 8@ {z} 9@ {radius} 15.0 {modelId} 0 {attractorName} "STRIPW"
if 
  not is_char_dead 10@
goto_if_false @STRIPM_248
gosub @STRIPM_312
goto @STRIPM_255

:STRIPM_248
gosub @STRIPM_1075

:STRIPM_255
goto @STRIPM_277

:STRIPM_262
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @STRIPM_1088

:STRIPM_277
goto @STRIPM_291

:STRIPM_284
gosub @STRIPM_1075

:STRIPM_291
goto @STRIPM_305

:STRIPM_298
gosub @STRIPM_1075

:STRIPM_305
goto @STRIPM_114

:STRIPM_312
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @STRIPM_389 {caseNum1} 1 {caseLabel1} @STRIPM_375 {caseNum2} -1 {caseLabel2} @STRIPM_389 {caseNum3} -1 {caseLabel3} @STRIPM_389 {caseNum4} -1 {caseLabel4} @STRIPM_389 {caseNum5} -1 {caseLabel5} @STRIPM_389 {caseNum6} -1 {caseLabel6} @STRIPM_389 {caseNum7} -1 {caseLabel7} @STRIPM_389

:STRIPM_375
gosub @STRIPM_391
goto @STRIPM_389

:STRIPM_389
return 

:STRIPM_391
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @STRIPM_1073 {caseNum1} 0 {caseLabel1} @STRIPM_454 {caseNum2} 1 {caseLabel2} @STRIPM_597 {caseNum3} 2 {caseLabel3} @STRIPM_679 {caseNum4} 3 {caseLabel4} @STRIPM_771 {caseNum5} 4 {caseLabel5} @STRIPM_1030 {caseNum6} -1 {caseLabel6} @STRIPM_1073 {caseNum7} -1 {caseLabel7} @STRIPM_1073

:STRIPM_454
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_590
set_lvar_int_to_lvar_int 2@ = 0@
if 
  2@ > 10000
goto_if_false @STRIPM_518
2@ /= 10000

:STRIPM_518
if 
  1000 > 2@
goto_if_false @STRIPM_545
2@ += 2000

:STRIPM_545
task_play_anim 0@ {animationName} "PUN_LOOP" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:STRIPM_590
goto @STRIPM_1073

:STRIPM_597
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_672
task_play_anim 0@ {animationName} "PUN_HOLLER" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:STRIPM_672
goto @STRIPM_1073

:STRIPM_679
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_764
2@ = generate_random_int_in_range 2000 {max} 5000
task_play_anim 0@ {animationName} "PUN_LOOP" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:STRIPM_764
goto @STRIPM_1073

:STRIPM_771
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_1023
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ >= 50
goto_if_false @STRIPM_977
task_play_anim 0@ {animationName} "PUN_CASH" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
7@, 8@, 9@ = get_char_coordinates 0@
10@ = get_user_of_closest_map_attractor 7@ {y} 8@ {z} 9@ {radius} 15.0 {modelId} 0 {attractorName} "STRIPW"
if 
  not is_char_dead 10@
goto_if_false @STRIPM_970
7@, 8@, 9@ = get_offset_from_char_in_world_coords 10@ {xOffset} 0.3 {yOffset} 0.5 {zOffset} -0.5
11@ = create_money_pickup 7@ {y} 8@ {z} 9@ {cashAmount} 100 {permanent} False

:STRIPM_970
goto @STRIPM_1016

:STRIPM_977
task_play_anim 0@ {animationName} "PUN_HOLLER" {animationFile} "STRIP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:STRIPM_1016
4@ += 1

:STRIPM_1023
goto @STRIPM_1073

:STRIPM_1030
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @STRIPM_1066
4@ = 0

:STRIPM_1066
goto @STRIPM_1073

:STRIPM_1073
return 

:STRIPM_1075
remove_animation "STRIP"
terminate_this_script 
return 

:STRIPM_1088
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @STRIPM_1158
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @STRIPM_1151
task_duck 0@ {time} -2

:STRIPM_1151
goto @STRIPM_1165

:STRIPM_1158
gosub @STRIPM_1075

:STRIPM_1165
goto @STRIPM_1088
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 55 (BROWSE)---------------

:BROWSE
script_name 'BROWSE'
2@ = 0
if 
  2@ == 1
goto_if_false @BROWSE_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:BROWSE_60
request_animation "COP_AMBIENT"

:BROWSE_75
if 
  not has_animation_loaded "COP_AMBIENT"
goto_if_false @BROWSE_112
wait 0
goto @BROWSE_75

:BROWSE_112
3@ = 1
4@ = 0

:BROWSE_126
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @BROWSE_235
if 
  is_char_using_map_attractor 0@
goto_if_false @BROWSE_221
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @BROWSE_207
goto @BROWSE_1166
goto @BROWSE_214

:BROWSE_207
gosub @BROWSE_249

:BROWSE_214
goto @BROWSE_228

:BROWSE_221
gosub @BROWSE_1147

:BROWSE_228
goto @BROWSE_242

:BROWSE_235
gosub @BROWSE_1147

:BROWSE_242
goto @BROWSE_126

:BROWSE_249
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @BROWSE_326 {caseNum1} 1 {caseLabel1} @BROWSE_312 {caseNum2} -1 {caseLabel2} @BROWSE_326 {caseNum3} -1 {caseLabel3} @BROWSE_326 {caseNum4} -1 {caseLabel4} @BROWSE_326 {caseNum5} -1 {caseLabel5} @BROWSE_326 {caseNum6} -1 {caseLabel6} @BROWSE_326 {caseNum7} -1 {caseLabel7} @BROWSE_326

:BROWSE_312
gosub @BROWSE_328
goto @BROWSE_326

:BROWSE_326
return 

:BROWSE_328
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @BROWSE_1145 {caseNum1} 0 {caseLabel1} @BROWSE_391 {caseNum2} 1 {caseLabel2} @BROWSE_452 {caseNum3} 2 {caseLabel3} @BROWSE_556 {caseNum4} 3 {caseLabel4} @BROWSE_732 {caseNum5} 4 {caseLabel5} @BROWSE_836 {caseNum6} 5 {caseLabel6} @BROWSE_1011 {caseNum7} 6 {caseLabel7} @BROWSE_1102

:BROWSE_391
task_play_anim 0@ {animationName} "COPBROWSE_IN" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @BROWSE_1145

:BROWSE_452
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_549
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPBROWSE_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:BROWSE_549
goto @BROWSE_1145

:BROWSE_556
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_725
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @BROWSE_667
task_play_anim 0@ {animationName} "COPBROWSE_NOD" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @BROWSE_718

:BROWSE_667
task_play_anim 0@ {animationName} "COPBROWSE_SHAKE" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000

:BROWSE_718
4@ += 1

:BROWSE_725
goto @BROWSE_1145

:BROWSE_732
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_829
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPBROWSE_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:BROWSE_829
goto @BROWSE_1145

:BROWSE_836
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1004
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @BROWSE_947
task_play_anim 0@ {animationName} "COPBROWSE_NOD" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @BROWSE_997

:BROWSE_947
task_play_anim 0@ {animationName} "COPBROWSE_SHAKE" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:BROWSE_997
4@ += 1

:BROWSE_1004
goto @BROWSE_1145

:BROWSE_1011
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1095
task_play_anim 0@ {animationName} "COPBROWSE_OUT" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:BROWSE_1095
goto @BROWSE_1145

:BROWSE_1102
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @BROWSE_1138
gosub @BROWSE_1147

:BROWSE_1138
goto @BROWSE_1145

:BROWSE_1145
return 

:BROWSE_1147
remove_animation "COP_AMBIENT"
terminate_this_script 
return 

:BROWSE_1166
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @BROWSE_1237
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @BROWSE_1230
task_kill_char_on_foot 0@ {target} $scplayer

:BROWSE_1230
goto @BROWSE_1244

:BROWSE_1237
gosub @BROWSE_1147

:BROWSE_1244
goto @BROWSE_1166
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 56 (COPSIT)---------------

:COPSIT
script_name 'COPSIT'
2@ = 0
if 
  2@ == 1
goto_if_false @COPSIT_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:COPSIT_60
request_animation "INT_OFFICE"

:COPSIT_74
if 
  not has_animation_loaded "INT_OFFICE"
goto_if_false @COPSIT_110
wait 0
goto @COPSIT_74

:COPSIT_110
9@ = 0.0
3@ = 0
if 
  1@ == 0
goto_if_false @COPSIT_166
5@ = 0
4@ = 1
goto @COPSIT_180

:COPSIT_166
5@ = -2
4@ = 2

:COPSIT_180
7@ = 0
if 
  not is_char_dead 0@
goto_if_false @COPSIT_236
set_char_suffers_critical_hits 0@ {state} False
$iCopDM = copy_shared_char_decision_maker DecisionMakerCharTemplate.Cop
set_char_decision_maker 0@ {handleOrTemplate} $iCopDM
6@ = 15000

:COPSIT_236
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @COPSIT_345
if 
  is_char_using_map_attractor 0@
goto_if_false @COPSIT_331
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @COPSIT_317
goto @COPSIT_2292
goto @COPSIT_324

:COPSIT_317
gosub @COPSIT_359

:COPSIT_324
goto @COPSIT_338

:COPSIT_331
gosub @COPSIT_2239

:COPSIT_338
goto @COPSIT_352

:COPSIT_345
gosub @COPSIT_2239

:COPSIT_352
goto @COPSIT_236

:COPSIT_359
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COPSIT_492 {caseNum1} 1 {caseLabel1} @COPSIT_422 {caseNum2} 2 {caseLabel2} @COPSIT_436 {caseNum3} 3 {caseLabel3} @COPSIT_450 {caseNum4} 4 {caseLabel4} @COPSIT_464 {caseNum5} 5 {caseLabel5} @COPSIT_478 {caseNum6} -1 {caseLabel6} @COPSIT_492 {caseNum7} -1 {caseLabel7} @COPSIT_492

:COPSIT_422
gosub @COPSIT_494
goto @COPSIT_492

:COPSIT_436
gosub @COPSIT_724
goto @COPSIT_492

:COPSIT_450
gosub @COPSIT_1843
goto @COPSIT_492

:COPSIT_464
gosub @COPSIT_2239
goto @COPSIT_492

:COPSIT_478
gosub @COPSIT_2146
goto @COPSIT_492

:COPSIT_492
return 

:COPSIT_494
switch_start 5@ {numCases} 2 {hasDefaultCase} 0 {defaultLabel} @COPSIT_722 {caseNum1} 0 {caseLabel1} @COPSIT_557 {caseNum2} 1 {caseLabel2} @COPSIT_622 {caseNum3} -1 {caseLabel3} @COPSIT_722 {caseNum4} -1 {caseLabel4} @COPSIT_722 {caseNum5} -1 {caseLabel5} @COPSIT_722 {caseNum6} -1 {caseLabel6} @COPSIT_722 {caseNum7} -1 {caseLabel7} @COPSIT_722

:COPSIT_557
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IN" {animationFile} "INT_OFFICE" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
3@ = 1
5@ += 1
goto @COPSIT_722

:COPSIT_622
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "OFF_SIT_IN"
goto_if_false @COPSIT_680
9@ = get_char_anim_current_time 0@ {animationName} "OFF_SIT_IN"

:COPSIT_680
if 
  9@ == 1.0
goto_if_false @COPSIT_715
5@ = 0
4@ += 1

:COPSIT_715
goto @COPSIT_722

:COPSIT_722
return 

:COPSIT_724
switch_start 5@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @COPSIT_1841 {caseNum1} -2 {caseLabel1} @COPSIT_787 {caseNum2} 0 {caseLabel2} @COPSIT_1023 {caseNum3} 1 {caseLabel3} @COPSIT_1259 {caseNum4} 2 {caseLabel4} @COPSIT_1520 {caseNum5} 3 {caseLabel5} @COPSIT_1598 {caseNum6} -1 {caseLabel6} @COPSIT_1841 {caseNum7} -1 {caseLabel7} @COPSIT_1841

:COPSIT_787
8@ = generate_random_int_in_range 0 {max} 100
if 
  8@ > 66
goto_if_false @COPSIT_955
if 
  8@ > 33
goto_if_false @COPSIT_893
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_TYPE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @COPSIT_948

:COPSIT_893
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_BORED_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_948
goto @COPSIT_1009

:COPSIT_955
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IDLE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1009
5@ = 1
goto @COPSIT_1841

:COPSIT_1023
8@ = generate_random_int_in_range 0 {max} 100
if 
  8@ > 66
goto_if_false @COPSIT_1191
if 
  8@ > 33
goto_if_false @COPSIT_1129
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_TYPE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @COPSIT_1184

:COPSIT_1129
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_BORED_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1184
goto @COPSIT_1245

:COPSIT_1191
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IDLE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1245
5@ += 1
goto @COPSIT_1841

:COPSIT_1259
13@, 14@, 15@ = get_char_coordinates 0@
15@ -= 1.04
16@, 17@, 18@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.5 {yOffset} -0.5 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords 0@ {xOffset} -0.5 {yOffset} -1.0 {zOffset} 0.0
10@, 11@, 12@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 1.0 {zOffset} -1.0
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} False {target} 0@
if or
  is_char_playing_anim 0@ {animationName} "OFF_SIT_TYPE_LOOP"
  is_char_playing_anim 0@ {animationName} "OFF_SIT_BORED_LOOP"
  is_char_playing_anim 0@ {animationName} "OFF_SIT_IDLE_LOOP"
goto_if_false @COPSIT_1513
set_char_coordinates 0@ {x} 10@ {y} 11@ {z} 12@
freeze_char_position 0@ {state} True
TIMERB = 0
5@ += 1

:COPSIT_1513
goto @COPSIT_1841

:COPSIT_1520
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @COPSIT_1565
clear_char_last_damage_entity 0@
4@ = 5
5@ = 0
goto @COPSIT_1841

:COPSIT_1565
if 
  is_int_lvar_greater_than_int_lvar TIMERB > 6@
goto_if_false @COPSIT_1591
5@ += 1

:COPSIT_1591
goto @COPSIT_1841

:COPSIT_1598
8@ = generate_random_int_in_range 0 {max} 100
if 
  8@ > 66
goto_if_false @COPSIT_1766
if 
  8@ > 33
goto_if_false @COPSIT_1704
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_TYPE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000
goto @COPSIT_1759

:COPSIT_1704
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_BORED_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1759
goto @COPSIT_1820

:COPSIT_1766
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_IDLE_LOOP" {animationFile} "INT_OFFICE" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 50000000

:COPSIT_1820
TIMERB = 0
5@ -= 1
goto @COPSIT_1841

:COPSIT_1841
return 

:COPSIT_1843
switch_start 5@ {numCases} 3 {hasDefaultCase} 0 {defaultLabel} @COPSIT_2144 {caseNum1} 0 {caseLabel1} @COPSIT_1906 {caseNum2} 1 {caseLabel2} @COPSIT_1971 {caseNum3} 2 {caseLabel3} @COPSIT_2006 {caseNum4} -1 {caseLabel4} @COPSIT_2144 {caseNum5} -1 {caseLabel5} @COPSIT_2144 {caseNum6} -1 {caseLabel6} @COPSIT_2144 {caseNum7} -1 {caseLabel7} @COPSIT_2144

:COPSIT_1906
task_play_anim_non_interruptable 0@ {animationName} "OFF_SIT_2IDLE_180" {animationFile} "INT_OFFICE" {blendSpeed} 99.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
5@ += 1
goto @COPSIT_2144

:COPSIT_1971
set_char_coordinates 0@ {x} 13@ {y} 14@ {z} 15@
freeze_char_position 0@ {state} False
5@ += 1
goto @COPSIT_2144

:COPSIT_2006
9@ = 0.0
if 
  is_char_playing_anim 0@ {animationName} "OFF_SIT_2IDLE_180"
goto_if_false @COPSIT_2137
9@ = get_char_anim_current_time 0@ {animationName} "OFF_SIT_2IDLE_180"
if 
  9@ == 1.0
goto_if_false @COPSIT_2137
set_char_uses_collision_closest_object_of_type 13@ {y} 14@ {z} 15@ {radius} 1.5 {modelId} #CJ_PIZZA_CHAIR {state} True {target} 0@
5@ = 0
4@ += 1

:COPSIT_2137
goto @COPSIT_2144

:COPSIT_2144
return 

:COPSIT_2146
switch_start 5@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @COPSIT_2237 {caseNum1} 0 {caseLabel1} @COPSIT_2209 {caseNum2} -1 {caseLabel2} @COPSIT_2237 {caseNum3} -1 {caseLabel3} @COPSIT_2237 {caseNum4} -1 {caseLabel4} @COPSIT_2237 {caseNum5} -1 {caseLabel5} @COPSIT_2237 {caseNum6} -1 {caseLabel6} @COPSIT_2237 {caseNum7} -1 {caseLabel7} @COPSIT_2237

:COPSIT_2209
4@ = 3
5@ = 0
gosub @COPSIT_2292
goto @COPSIT_2237

:COPSIT_2237
return 

:COPSIT_2239
remove_animation "INT_OFFICE"
remove_decision_maker $iCopDM
if 
  not is_char_dead 0@
goto_if_false @COPSIT_2288
freeze_char_position 0@ {state} False
set_char_suffers_critical_hits 0@ {state} True

:COPSIT_2288
terminate_this_script 
return 

:COPSIT_2292
wait 0
if and
  not is_var_text_label_empty s$shop_name
  $iTerminateAllAmbience == 0
goto_if_false @COPSIT_2635
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @COPSIT_2628
switch_start 4@ {numCases} 5 {hasDefaultCase} 1 {defaultLabel} @COPSIT_2614 {caseNum1} 1 {caseLabel1} @COPSIT_2403 {caseNum2} 2 {caseLabel2} @COPSIT_2486 {caseNum3} 3 {caseLabel3} @COPSIT_2535 {caseNum4} 4 {caseLabel4} @COPSIT_2549 {caseNum5} 5 {caseLabel5} @COPSIT_2600 {caseNum6} -1 {caseLabel6} @COPSIT_2628 {caseNum7} -1 {caseLabel7} @COPSIT_2628

:COPSIT_2403
if 
  5@ > 1
goto_if_false @COPSIT_2435
gosub @COPSIT_359
goto @COPSIT_2479

:COPSIT_2435
7@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @COPSIT_2479
task_kill_char_on_foot 0@ {target} $scplayer
gosub @COPSIT_2239

:COPSIT_2479
goto @COPSIT_2628

:COPSIT_2486
if 
  5@ == 2
goto_if_false @COPSIT_2521
6@ = generate_random_int_in_range 0 {max} 5
6@ *= 500

:COPSIT_2521
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2535
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2549
7@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 7@ == 7
goto_if_false @COPSIT_2593
task_kill_char_on_foot 0@ {target} $scplayer
gosub @COPSIT_2239

:COPSIT_2593
goto @COPSIT_2628

:COPSIT_2600
gosub @COPSIT_359
goto @COPSIT_2628

:COPSIT_2614
gosub @COPSIT_2239
goto @COPSIT_2628

:COPSIT_2628
goto @COPSIT_2642

:COPSIT_2635
gosub @COPSIT_2239

:COPSIT_2642
goto @COPSIT_2292
write_debug_with_int "PEDSTATE" {number} 4@
write_debug_with_int "SUBSTATESTATUS" {number} 5@
write_debug_with_int "TIMERB" {number} TIMERB
write_debug_with_int "TIMERA" {number} TIMERA
return 
terminate_this_script 

//-------------External script 57 (COPLOOK)---------------

:COPLOOK
script_name 'COPLOOK'
2@ = 0
if 
  2@ == 1
goto_if_false @COPLOOK_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:COPLOOK_60
request_animation "COP_AMBIENT"

:COPLOOK_75
if 
  not has_animation_loaded "COP_AMBIENT"
goto_if_false @COPLOOK_112
wait 0
goto @COPLOOK_75

:COPLOOK_112
3@ = 1
4@ = 0

:COPLOOK_126
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @COPLOOK_235
if 
  is_char_using_map_attractor 0@
goto_if_false @COPLOOK_221
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @COPLOOK_207
goto @COPLOOK_1319
goto @COPLOOK_214

:COPLOOK_207
gosub @COPLOOK_249

:COPLOOK_214
goto @COPLOOK_228

:COPLOOK_221
gosub @COPLOOK_1300

:COPLOOK_228
goto @COPLOOK_242

:COPLOOK_235
gosub @COPLOOK_1300

:COPLOOK_242
goto @COPLOOK_126

:COPLOOK_249
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @COPLOOK_326 {caseNum1} 1 {caseLabel1} @COPLOOK_312 {caseNum2} -1 {caseLabel2} @COPLOOK_326 {caseNum3} -1 {caseLabel3} @COPLOOK_326 {caseNum4} -1 {caseLabel4} @COPLOOK_326 {caseNum5} -1 {caseLabel5} @COPLOOK_326 {caseNum6} -1 {caseLabel6} @COPLOOK_326 {caseNum7} -1 {caseLabel7} @COPLOOK_326

:COPLOOK_312
gosub @COPLOOK_328
goto @COPLOOK_326

:COPLOOK_326
return 

:COPLOOK_328
switch_start 4@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @COPLOOK_1298 {caseNum1} 0 {caseLabel1} @COPLOOK_456 {caseNum2} 1 {caseLabel2} @COPLOOK_515 {caseNum3} 2 {caseLabel3} @COPLOOK_617 {caseNum4} 3 {caseLabel4} @COPLOOK_789 {caseNum5} 4 {caseLabel5} @COPLOOK_891 {caseNum6} 5 {caseLabel6} @COPLOOK_1064 {caseNum7} 6 {caseLabel7} @COPLOOK_1166
switch_continued 7 {caseLabel1} @COPLOOK_1255 {caseNum2} -1 {caseLabel2} @COPLOOK_1298 {caseNum3} -1 {caseLabel3} @COPLOOK_1298 {caseNum4} -1 {caseLabel4} @COPLOOK_1298 {caseNum5} -1 {caseLabel5} @COPLOOK_1298 {caseNum6} -1 {caseLabel6} @COPLOOK_1298 {caseNum7} -1 {caseLabel7} @COPLOOK_1298 {caseNum8} -1 {caseLabel8} @COPLOOK_1298 {caseNum9} -1 {caseLabel9} @COPLOOK_1298

:COPLOOK_456
task_play_anim 0@ {animationName} "COPLOOK_IN" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @COPLOOK_1298

:COPLOOK_515
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_610
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPLOOK_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:COPLOOK_610
goto @COPLOOK_1298

:COPLOOK_617
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_782
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @COPLOOK_726
task_play_anim 0@ {animationName} "COPLOOK_NOD" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @COPLOOK_775

:COPLOOK_726
task_play_anim 0@ {animationName} "COPLOOK_SHAKE" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 1000

:COPLOOK_775
4@ += 1

:COPLOOK_782
goto @COPLOOK_1298

:COPLOOK_789
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_884
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPLOOK_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:COPLOOK_884
goto @COPLOOK_1298

:COPLOOK_891
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1057
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @COPLOOK_1002
task_play_anim 0@ {animationName} "COPLOOK_THINK" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @COPLOOK_1050

:COPLOOK_1002
task_play_anim 0@ {animationName} "COPLOOK_WATCH" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:COPLOOK_1050
4@ += 1

:COPLOOK_1057
goto @COPLOOK_1298

:COPLOOK_1064
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1159
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "COPLOOK_LOOP" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:COPLOOK_1159
goto @COPLOOK_1298

:COPLOOK_1166
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1248
task_play_anim 0@ {animationName} "COPLOOK_OUT" {animationFile} "COP_AMBIENT" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:COPLOOK_1248
goto @COPLOOK_1298

:COPLOOK_1255
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @COPLOOK_1291
gosub @COPLOOK_1300

:COPLOOK_1291
goto @COPLOOK_1298

:COPLOOK_1298
return 

:COPLOOK_1300
remove_animation "COP_AMBIENT"
terminate_this_script 
return 

:COPLOOK_1319
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @COPLOOK_1390
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @COPLOOK_1383
task_kill_char_on_foot 0@ {target} $scplayer

:COPLOOK_1383
goto @COPLOOK_1397

:COPLOOK_1390
gosub @COPLOOK_1300

:COPLOOK_1397
goto @COPLOOK_1319
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 58 (TICKET)---------------

:TICKET
script_name 'TICKET'
2@ = 0
if 
  2@ == 1
goto_if_false @TICKET_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:TICKET_60
request_animation "CASINO"

:TICKET_70
if 
  not has_animation_loaded "CASINO"
goto_if_false @TICKET_102
wait 0
goto @TICKET_70

:TICKET_102
3@ = 1
4@ = 0

:TICKET_116
wait 0
if 
  not is_char_dead 0@
goto_if_false @TICKET_180
if 
  is_char_using_map_attractor 0@
goto_if_false @TICKET_166
gosub @TICKET_194
goto @TICKET_173

:TICKET_166
gosub @TICKET_875

:TICKET_173
goto @TICKET_187

:TICKET_180
gosub @TICKET_875

:TICKET_187
goto @TICKET_116

:TICKET_194
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @TICKET_271 {caseNum1} 1 {caseLabel1} @TICKET_257 {caseNum2} -1 {caseLabel2} @TICKET_271 {caseNum3} -1 {caseLabel3} @TICKET_271 {caseNum4} -1 {caseLabel4} @TICKET_271 {caseNum5} -1 {caseLabel5} @TICKET_271 {caseNum6} -1 {caseLabel6} @TICKET_271 {caseNum7} -1 {caseLabel7} @TICKET_271

:TICKET_257
gosub @TICKET_273
goto @TICKET_271

:TICKET_271
return 

:TICKET_273
switch_start 4@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @TICKET_873 {caseNum1} 0 {caseLabel1} @TICKET_336 {caseNum2} 1 {caseLabel2} @TICKET_387 {caseNum3} 2 {caseLabel3} @TICKET_472 {caseNum4} 3 {caseLabel4} @TICKET_566 {caseNum5} 4 {caseLabel5} @TICKET_650 {caseNum6} 5 {caseLabel6} @TICKET_736 {caseNum7} 6 {caseLabel7} @TICKET_830

:TICKET_336
task_play_anim 0@ {animationName} "SLOT_IN" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @TICKET_873

:TICKET_387
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_465
task_play_anim 0@ {animationName} "SLOT_BET_01" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 2@
4@ += 1

:TICKET_465
goto @TICKET_873

:TICKET_472
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_559
2@ = generate_random_int_in_range 5000 {max} 10000
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:TICKET_559
goto @TICKET_873

:TICKET_566
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_643
task_play_anim 0@ {animationName} "SLOT_BET_02" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:TICKET_643
goto @TICKET_873

:TICKET_650
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_729
task_play_anim 0@ {animationName} "SLOT_LOSE_OUT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:TICKET_729
goto @TICKET_873

:TICKET_736
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_823
2@ = generate_random_int_in_range 4000 {max} 8000
task_play_anim 0@ {animationName} "SLOT_WAIT" {animationFile} "CASINO" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:TICKET_823
goto @TICKET_873

:TICKET_830
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @TICKET_866
gosub @TICKET_875

:TICKET_866
goto @TICKET_873

:TICKET_873
return 

:TICKET_875
remove_animation "CASINO"
terminate_this_script 
return 
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 59 (SHOPPER)---------------

:SHOPPER
script_name 'SHOPPER'
2@ = 0
if 
  2@ == 1
goto_if_false @SHOPPER_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:SHOPPER_60
request_animation "INT_SHOP"

:SHOPPER_72
if 
  not has_animation_loaded "INT_SHOP"
goto_if_false @SHOPPER_106
wait 0
goto @SHOPPER_72

:SHOPPER_106
3@ = 1
4@ = 0

:SHOPPER_120
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @SHOPPER_289
if 
  is_char_using_map_attractor 0@
goto_if_false @SHOPPER_275
if or
  has_char_been_damaged_by_char 0@ {handle} $scplayer
  is_char_shooting $scplayer
goto_if_false @SHOPPER_221
$iSetClothesPanic = 1
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @SHOPPER_1073
goto @SHOPPER_268

:SHOPPER_221
if 
  $iSetClothesPanic == 1
goto_if_false @SHOPPER_261
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @SHOPPER_1073
goto @SHOPPER_268

:SHOPPER_261
gosub @SHOPPER_303

:SHOPPER_268
goto @SHOPPER_282

:SHOPPER_275
gosub @SHOPPER_1057

:SHOPPER_282
goto @SHOPPER_296

:SHOPPER_289
gosub @SHOPPER_1057

:SHOPPER_296
goto @SHOPPER_120

:SHOPPER_303
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @SHOPPER_380 {caseNum1} 1 {caseLabel1} @SHOPPER_366 {caseNum2} -1 {caseLabel2} @SHOPPER_380 {caseNum3} -1 {caseLabel3} @SHOPPER_380 {caseNum4} -1 {caseLabel4} @SHOPPER_380 {caseNum5} -1 {caseLabel5} @SHOPPER_380 {caseNum6} -1 {caseLabel6} @SHOPPER_380 {caseNum7} -1 {caseLabel7} @SHOPPER_380

:SHOPPER_366
gosub @SHOPPER_382
goto @SHOPPER_380

:SHOPPER_380
return 

:SHOPPER_382
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @SHOPPER_1055 {caseNum1} 0 {caseLabel1} @SHOPPER_445 {caseNum2} 1 {caseLabel2} @SHOPPER_527 {caseNum3} 2 {caseLabel3} @SHOPPER_674 {caseNum4} 3 {caseLabel4} @SHOPPER_835 {caseNum5} 4 {caseLabel5} @SHOPPER_1012 {caseNum6} -1 {caseLabel6} @SHOPPER_1055 {caseNum7} -1 {caseLabel7} @SHOPPER_1055

:SHOPPER_445
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_520
task_play_anim 0@ {animationName} "SHOP_IN" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:SHOPPER_520
goto @SHOPPER_1055

:SHOPPER_527
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_667
set_lvar_int_to_lvar_int 2@ = 0@
if 
  2@ > 10000
goto_if_false @SHOPPER_591
2@ /= 10000

:SHOPPER_591
if 
  1000 > 2@
goto_if_false @SHOPPER_618
2@ += 2000

:SHOPPER_618
task_play_anim 0@ {animationName} "SHOP_LOOP" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ += 1

:SHOPPER_667
goto @SHOPPER_1055

:SHOPPER_674
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_828
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @SHOPPER_779
task_play_anim 0@ {animationName} "SHOP_LOOKA" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @SHOPPER_821

:SHOPPER_779
task_play_anim 0@ {animationName} "SHOP_LOOKB" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:SHOPPER_821
4@ += 1

:SHOPPER_828
goto @SHOPPER_1055

:SHOPPER_835
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_1005
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @SHOPPER_945
task_play_anim 0@ {animationName} "SHOP_OUT" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1
goto @SHOPPER_1005

:SHOPPER_945
2@ = generate_random_int_in_range 3000 {max} 6000
task_play_anim 0@ {animationName} "SHOP_LOOP" {animationFile} "INT_SHOP" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
4@ = 1

:SHOPPER_1005
goto @SHOPPER_1055

:SHOPPER_1012
2@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 2@ == 7
goto_if_false @SHOPPER_1048
gosub @SHOPPER_1057

:SHOPPER_1048
goto @SHOPPER_1055

:SHOPPER_1055
return 

:SHOPPER_1057
remove_animation "INT_SHOP"
terminate_this_script 
return 

:SHOPPER_1073
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @SHOPPER_1143
5@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @SHOPPER_1136
task_duck 0@ {time} -2

:SHOPPER_1136
goto @SHOPPER_1150

:SHOPPER_1143
gosub @SHOPPER_1057

:SHOPPER_1150
goto @SHOPPER_1073
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 60 (AMMU)---------------

:AMUNAT
$weapon_on_counterX_shops = 0.0
$weapon_on_counterY_shops = 0.0
$weapon_on_counterZ_shops = 0.0
$ammu_offX = 0.0
$ammu_offY = 0.0
$ammu_offZ = 0.0
$cam_offx = 0.0
$cam_offy = 0.0
$cam_offz = 0.0
$ammu_camera_pointX = 0.0
$ammu_camera_pointY = 0.0
$ammu_camera_pointZ = 0.0
$return_animation_time_ammunation = 0.0
$shop_keep_heading_ammunation = 0.0
$cost_menu_drawn_shops = 0
$ammuX = 0.0
$ammuY = 0.0
$ammuZ = 0.0
$flag_attacked_ammu_keeper = 0
$flag_ammu = 0
$weapon_offX = 0.0
$weapon_offY = 0.0
$weapon_offZ = 0.0
$player_weapontype = 0
$player_ammo = 0
$player_weapon_model = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$player_max_armour = 0
$player_armour = 0
$flag_buy_ammo_flag = 0
$no_of_different_type_weapons = 0
$weapon_count_ammu = 0
$temp_var_shops = 0
$no_of_pistols = 0
$no_of_shotguns = 0
$no_of_microSMG = 0
$no_of_SMG = 0
$no_of_assault = 0
$no_of_thrown = 0
$no_of_rifle = 0
$no_of_armour = 0
$no_of_heavy = 0
$pistol_name_menu = 0
$shotgun_name_menu = 0
$microSMG_name_menu = 0
$SMG_name_menu = 0
$assault_name_menu = 0
$rifle_name_menu = 0
$thrown_name_menu = 0
$armour_name_menu = 0
$heavy_name_menu = 0
$temp_var_ammu = 0
$main_menu_selection_ammu = 0
$sub_menu_selection_ammu = 0
goto @AMUNAT_525
add_continuous_sound $ammuX {_p2} $ammuY {_p3} $ammuZ {_p4} 65535 {_p5} $shop_alarm_ammu
$shop_item_ammu = create_object $model_index_ammu {x} 1659.635 {y} -1576.514 {z} 15.585
$weapon_obj = create_object $model_index_ammu {x} $weapon_offX {y} $weapon_offY {z} $weapon_offZ

:AMUNAT_525
set_var_int_to_constant $shopkeeper_model_shops = 179
request_model $shopkeeper_model_shops
request_model 346
request_model 372
request_model 352
request_model 349
request_model 342
request_model 373
request_model 353
request_model 350
request_model 347
request_model 363
request_model 364
request_model 357
request_model 358
request_model 355
request_model 356
request_model 348
request_model 351
load_all_models_now 
set_deatharrest_state 0
script_name 'AMUNAT'

:AMUNAT_640
wait 0
if 
  is_player_playing $player1
goto_if_false @AMUNAT_7618
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @AMUNAT_7604
if 
  $flag_ammu > 0
goto_if_false @AMUNAT_762
if 
  has_language_changed 
goto_if_false @AMUNAT_762
clear_help 
delete_menu $main_menu_shops
delete_menu $sub_menu_shops
delete_menu $bought_menu_shops
delete_menu $cost_menu_shops
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = get_current_language 

:AMUNAT_762
if 
  $flag_ammu == 0
goto_if_false @AMUNAT_1286
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN1'
goto_if_false @AMUNAT_884
$ammu_offX = 0.0
$ammu_offY = 0.0
$ammu_offZ = 0.0
$player_heading_ammunation = 180.0
$shop_keep_heading_ammunation = 0.0
$blob_flag_shop = 1
set_var_text_label s$stored_weapon_shop = s$shop_name
$shop_progress_ammunation = 0
$flag_ammu = 1

:AMUNAT_884
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN2'
goto_if_false @AMUNAT_988
$ammu_offX = -0.765
$ammu_offY = -42.311
$ammu_offZ = -0.013
$player_heading_ammunation = 180.0
$shop_keep_heading_ammunation = 0.0
$blob_flag_shop = 1
set_var_text_label s$stored_weapon_shop = s$shop_name
$shop_progress_ammunation = 0
$flag_ammu = 1

:AMUNAT_988
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN3'
goto_if_false @AMUNAT_1092
$ammu_offX = -6.264
$ammu_offY = -71.34
$ammu_offZ = -0.002
$player_heading_ammunation = 180.0
$shop_keep_heading_ammunation = 0.0
$blob_flag_shop = 1
set_var_text_label s$stored_weapon_shop = s$shop_name
$shop_progress_ammunation = 0
$flag_ammu = 1

:AMUNAT_1092
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN4'
goto_if_false @AMUNAT_1189
$ammu_offX = 11.642
$ammu_offY = -102.936
$ammu_offZ = -1.929
$player_heading_ammunation = 180.0
$shop_keep_heading_ammunation = 0.0
$blob_flag_shop = 1
set_var_text_label s$stored_weapon_shop = s$shop_name
$flag_ammu = 1

:AMUNAT_1189
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'AMMUN5'
goto_if_false @AMUNAT_1286
$ammu_offX = 16.285
$ammu_offY = -127.781
$ammu_offZ = -1.929
$player_heading_ammunation = 180.0
$shop_keep_heading_ammunation = 0.0
$blob_flag_shop = 1
set_var_text_label s$stored_weapon_shop = s$shop_name
$flag_ammu = 1

:AMUNAT_1286
if 
  $flag_ammu == 1
goto_if_false @AMUNAT_2318
use_text_commands True
show_update_stats False
$keep_offX = 296.506
add_float_var_to_float_var $keep_offX += $ammu_offX
$keep_offY = -38.168
add_float_var_to_float_var $keep_offY += $ammu_offY
$keep_offZ = 1000.547
add_float_var_to_float_var $keep_offZ += $ammu_offZ
$ammuX = 296.506
add_float_var_to_float_var $ammuX += $ammu_offX
$ammuY = -40.35
add_float_var_to_float_var $ammuY += $ammu_offY
$ammuZ = 1000.54
add_float_var_to_float_var $ammuZ += $ammu_offZ
$cam_offx = 296.585
add_float_var_to_float_var $cam_offx += $ammu_offX
$cam_offy = -38.345
add_float_var_to_float_var $cam_offy += $ammu_offY
$cam_offz = 1002.236
add_float_var_to_float_var $cam_offz += $ammu_offZ
$ammu_camera_pointX = 296.501
add_float_var_to_float_var $ammu_camera_pointX += $ammu_offX
$ammu_camera_pointY = -39.298
add_float_var_to_float_var $ammu_camera_pointY += $ammu_offY
$ammu_camera_pointZ = 1001.943
add_float_var_to_float_var $ammu_camera_pointZ += $ammu_offZ
$shop_keep_ammunation = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $ammuX {y} $ammuY {z} $ammuZ
set_char_heading $shop_keep_ammunation {heading} $shop_keep_heading_ammunation
set_char_only_damaged_by_player $shop_keep_ammunation {state} True
set_char_decision_maker $shop_keep_ammunation {handleOrTemplate} DecisionMakerCharTemplate.Empty
if 
  $flag_casino_mission_counter > 2
goto_if_false @AMUNAT_1638
$num_of_weapons = get_number_of_items_in_shop 
if 
  $flag_16weapons_open == 0
goto_if_false @AMUNAT_1631
print_help 'NEWWEAP'
$flag_16weapons_open = 1

:AMUNAT_1631
goto @AMUNAT_2311

:AMUNAT_1638
if 
  $flag_desert_mission_counter > 7
goto_if_false @AMUNAT_1706
$num_of_weapons = 15
if 
  $flag_15weapons_open == 0
goto_if_false @AMUNAT_1699
print_help 'NEWWEAP'
$flag_15weapons_open = 1

:AMUNAT_1699
goto @AMUNAT_2311

:AMUNAT_1706
if 
  $flag_synd_mission_counter > 9
goto_if_false @AMUNAT_1774
$num_of_weapons = 14
if 
  $flag_14weapons_open == 0
goto_if_false @AMUNAT_1767
print_help 'NEWWEAP'
$flag_14weapons_open = 1

:AMUNAT_1767
goto @AMUNAT_2311

:AMUNAT_1774
if 
  $flag_wuzi_mission_counter > 0
goto_if_false @AMUNAT_1842
$num_of_weapons = 13
if 
  $flag_13weapons_open == 0
goto_if_false @AMUNAT_1835
print_help 'NEWWEAP'
$flag_13weapons_open = 1

:AMUNAT_1835
goto @AMUNAT_2311

:AMUNAT_1842
if 
  $flag_synd_mission_counter > 7
goto_if_false @AMUNAT_1910
$num_of_weapons = 12
if 
  $flag_12weapons_open == 0
goto_if_false @AMUNAT_1903
print_help 'NEWWEAP'
$flag_12weapons_open = 1

:AMUNAT_1903
goto @AMUNAT_2311

:AMUNAT_1910
if 
  $flag_truth_mission_counter > 0
goto_if_false @AMUNAT_1978
$num_of_weapons = 11
if 
  $flag_11weapons_open == 0
goto_if_false @AMUNAT_1971
print_help 'NEWWEAP'
$flag_11weapons_open = 1

:AMUNAT_1971
goto @AMUNAT_2311

:AMUNAT_1978
if 
  $flag_cat_mission4_passed == 1
goto_if_false @AMUNAT_2046
$num_of_weapons = 10
if 
  $flag_10weapons_open == 0
goto_if_false @AMUNAT_2039
print_help 'NEWWEAP'
$flag_10weapons_open = 1

:AMUNAT_2039
goto @AMUNAT_2311

:AMUNAT_2046
if 
  $flag_strap_mission_counter > 4
goto_if_false @AMUNAT_2114
$num_of_weapons = 9
if 
  $flag_9weapons_open == 0
goto_if_false @AMUNAT_2107
print_help 'NEWWEAP'
$flag_9weapons_open = 1

:AMUNAT_2107
goto @AMUNAT_2311

:AMUNAT_2114
if 
  $flag_smoke_mission_counter > 3
goto_if_false @AMUNAT_2182
$num_of_weapons = 8
if 
  $flag_8weapons_open == 0
goto_if_false @AMUNAT_2175
print_help 'NEWWEAP'
$flag_8weapons_open = 1

:AMUNAT_2175
goto @AMUNAT_2311

:AMUNAT_2182
if 
  $flag_ryder_mission_counter > 2
goto_if_false @AMUNAT_2250
$num_of_weapons = 7
if 
  $flag_7weapons_open == 0
goto_if_false @AMUNAT_2243
print_help 'NEWWEAP'
$flag_7weapons_open = 1

:AMUNAT_2243
goto @AMUNAT_2311

:AMUNAT_2250
if 
  2 > $flag_la1fin1_mission_counter
goto_if_false @AMUNAT_2311
$num_of_weapons = 6
if 
  $flag_6weapons_open == 0
goto_if_false @AMUNAT_2311
print_help 'NEWWEAP'
$flag_6weapons_open = 1

:AMUNAT_2311
$flag_ammu = 2

:AMUNAT_2318
if 
  $flag_ammu == 2
goto_if_false @AMUNAT_2978
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_weapon_shop
goto_if_false @AMUNAT_2367
gosub @AMUNAT_8535

:AMUNAT_2367
if 
  not is_char_dead $shop_keep_ammunation
goto_if_false @AMUNAT_2933
if 
  $flag_attacked_ammu_keeper == 0
goto_if_false @AMUNAT_2881
if 
  $shop_progress_ammunation == 0
goto_if_false @AMUNAT_2480
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} "SHP_TRAY_POSE" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_ammunation = 0.0
$shop_progress_ammunation = 1

:AMUNAT_2480
if 
  $flag_shooting_range_mission == 0
goto_if_false @AMUNAT_2700
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_ammunation
  has_char_been_damaged_by_weapon $shop_keep_ammunation {weaponType} WeaponType.AnyWeapon
goto_if_false @AMUNAT_2613
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.ShopClosed {overrideSilence} False {ignoreMute} False {frontEnd} True
task_stand_still $shop_keep_ammunation {time} 5
set_char_weapon_skill $shop_keep_ammunation {skill} WeaponSkill.Pro
give_weapon_to_char $shop_keep_ammunation {weaponType} WeaponType.Pistol {ammo} 30000
set_char_accuracy $shop_keep_ammunation {accuracy} 80
task_stay_in_same_place $shop_keep_ammunation {state} True
task_kill_char_on_foot $shop_keep_ammunation {target} $scplayer
$blob_flag_shop = 0
$flag_attacked_ammu_keeper = 1
goto @AMUNAT_2693

:AMUNAT_2613
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @AMUNAT_2693
if 
  can_player_start_mission $player1
goto_if_false @AMUNAT_2693
$shop_progress_ammunation = 0
$flag_ammu = 3

:AMUNAT_2693
goto @AMUNAT_2874

:AMUNAT_2700
if or
  is_player_targetting_char $player1 {handle} $shop_keep_ammunation
  has_char_been_damaged_by_weapon $shop_keep_ammunation {weaponType} WeaponType.AnyWeapon
goto_if_false @AMUNAT_2810
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.ShopClosed {overrideSilence} False {ignoreMute} False {frontEnd} True
task_stand_still $shop_keep_ammunation {time} 5
set_char_weapon_skill $shop_keep_ammunation {skill} WeaponSkill.Pro
give_weapon_to_char $shop_keep_ammunation {weaponType} WeaponType.Pistol {ammo} 30000
set_char_accuracy $shop_keep_ammunation {accuracy} 80
task_stay_in_same_place $shop_keep_ammunation {state} True
task_kill_char_on_foot $shop_keep_ammunation {target} $scplayer
$blob_flag_shop = 0
$flag_attacked_ammu_keeper = 1
goto @AMUNAT_2874

:AMUNAT_2810
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @AMUNAT_2874
$shop_progress_ammunation = 0
$flag_ammu = 3

:AMUNAT_2874
goto @AMUNAT_2926

:AMUNAT_2881
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_weapon_shop
goto_if_false @AMUNAT_2919
gosub @AMUNAT_8535

:AMUNAT_2919
goto @AMUNAT_640

:AMUNAT_2926
goto @AMUNAT_2978

:AMUNAT_2933
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_weapon_shop
goto_if_false @AMUNAT_2971
gosub @AMUNAT_8535

:AMUNAT_2971
goto @AMUNAT_640

:AMUNAT_2978
if 
  $flag_ammu == 3
goto_if_false @AMUNAT_3062
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
clear_this_print 'SHOPNO'
TIMERA = 0
$flag_ammu = 4

:AMUNAT_3062
if 
  $flag_ammu == 4
goto_if_false @AMUNAT_3421
if 
  is_char_dead $shop_keep_ammunation
goto_if_false @AMUNAT_3141
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_weapon_shop
goto_if_false @AMUNAT_3134
gosub @AMUNAT_8535

:AMUNAT_3134
goto @AMUNAT_640

:AMUNAT_3141
if 
  $shop_progress_ammunation == 0
goto_if_false @AMUNAT_3421
if 
  TIMERA >= 300
goto_if_false @AMUNAT_3421
set_char_coordinates_dont_warp_gang $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
set_char_heading $scplayer {heading} $player_heading_ammunation
$temp_shopX, $temp_shopY, $temp_shopZ = get_char_coordinates $shop_keep_ammunation
if or
  not is_float_var_equal_to_float_var $temp_shopX == $ammuX
  not is_float_var_equal_to_float_var $temp_shopY == $ammuY
  not is_float_var_equal_to_float_var $temp_shopZ == $ammuZ
goto_if_false @AMUNAT_3271
set_char_coordinates $shop_keep_ammunation {x} $ammuX {y} $ammuY {z} $ammuZ
set_char_heading $shop_keep_ammunation {heading} $shop_keep_heading_ammunation

:AMUNAT_3271
set_fixed_camera_position $cam_offx {y} $cam_offy {z} $cam_offz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $ammu_camera_pointX {y} $ammu_camera_pointY {z} $ammu_camera_pointZ {switchStyle} SwitchType.JumpCut
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.WhatWant {overrideSilence} False {ignoreMute} False {frontEnd} True
if 
  $flag_on_doberman_mission == 1
goto_if_false @AMUNAT_3352
$flag_bought_gun_for_doberman = 1

:AMUNAT_3352
if 
  is_player_playing $player1
goto_if_false @AMUNAT_3389
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
goto @AMUNAT_3403

:AMUNAT_3389
gosub @AMUNAT_8535
goto @AMUNAT_640

:AMUNAT_3403
display_radar False
$flag_ammu = 5
$shop_progress_ammunation = 0

:AMUNAT_3421
if 
  $flag_ammu == 5
goto_if_false @AMUNAT_4241
if 
  is_char_dead $shop_keep_ammunation
goto_if_false @AMUNAT_3500
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_weapon_shop
goto_if_false @AMUNAT_3493
gosub @AMUNAT_8535

:AMUNAT_3493
goto @AMUNAT_640

:AMUNAT_3500
if 
  1 > $shop_progress_ammunation
goto_if_false @AMUNAT_3550
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_3550
gosub @AMUNAT_9980
gosub @AMUNAT_10986

:AMUNAT_3550
if 
  $shop_progress_ammunation == 0
goto_if_false @AMUNAT_3616
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_3592
$shop_progress_ammunation = 3

:AMUNAT_3592
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_3616
$shop_progress_ammunation = 1

:AMUNAT_3616
if 
  $shop_progress_ammunation == 1
goto_if_false @AMUNAT_3862
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_3862
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_3683
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_3683
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_3715
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_3715
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_3747
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_3747
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_3777
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_3777
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.ThanksForCustom {overrideSilence} False {ignoreMute} False {frontEnd} True
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_minigame_in_progress False
display_radar True
$shop_progress_ammunation = 2

:AMUNAT_3862
if 
  $shop_progress_ammunation == 2
goto_if_false @AMUNAT_4090
if 
  $flag_attacked_ammu_keeper == 0
goto_if_false @AMUNAT_3999
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_ammunation
  has_char_been_damaged_by_weapon $shop_keep_ammunation {weaponType} WeaponType.AnyWeapon
goto_if_false @AMUNAT_3999
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.ShopClosed {overrideSilence} False {ignoreMute} False {frontEnd} True
task_stand_still $shop_keep_ammunation {time} 5
set_char_weapon_skill $shop_keep_ammunation {skill} WeaponSkill.Pro
give_weapon_to_char $shop_keep_ammunation {weaponType} WeaponType.Pistol {ammo} 30000
set_char_accuracy $shop_keep_ammunation {accuracy} 80
task_stay_in_same_place $shop_keep_ammunation {state} True
task_kill_char_on_foot $shop_keep_ammunation {target} $scplayer
$flag_attacked_ammu_keeper = 1

:AMUNAT_3999
if 
  not locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @AMUNAT_4090
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$created_this_weapon = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_ammu = 2
$shop_progress_ammunation = 0

:AMUNAT_4090
if 
  $shop_progress_ammunation == 3
goto_if_false @AMUNAT_4241
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_4241
$main_menu_selection_ammu = get_menu_item_accepted $main_menu_shops
set_var_text_label s$section_selected_ammu = $item_text_label($main_menu_selection_ammu,12s)
if 
  0 > $main_menu_selection_ammu
goto_if_false @AMUNAT_4170
$main_menu_selection_ammu = 0

:AMUNAT_4170
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_4202
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_4202
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_4227
gosub @AMUNAT_11388

:AMUNAT_4227
$shop_progress_ammunation = 0
$flag_ammu = 6

:AMUNAT_4241
if 
  $flag_ammu == 6
goto_if_false @AMUNAT_5565
if 
  is_char_dead $shop_keep_ammunation
goto_if_false @AMUNAT_4320
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_weapon_shop
goto_if_false @AMUNAT_4313
gosub @AMUNAT_8535

:AMUNAT_4313
goto @AMUNAT_640

:AMUNAT_4320
if 
  1 > $shop_progress_ammunation
goto_if_false @AMUNAT_4363
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_4363
gosub @AMUNAT_11388

:AMUNAT_4363
if 
  $shop_progress_ammunation == 0
goto_if_false @AMUNAT_4429
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_4405
$shop_progress_ammunation = 2

:AMUNAT_4405
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_4429
$shop_progress_ammunation = 1

:AMUNAT_4429
if 
  $shop_progress_ammunation == 1
goto_if_false @AMUNAT_4542
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_4542
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_4496
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_4496
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_4528
gosub @AMUNAT_9980
gosub @AMUNAT_10986

:AMUNAT_4528
$shop_progress_ammunation = 0
$flag_ammu = 5

:AMUNAT_4542
if 
  $shop_progress_ammunation == 2
goto_if_false @AMUNAT_4834
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_4834
$sub_menu_selection_ammu = get_menu_item_accepted $sub_menu_shops
if 
  0 > $sub_menu_selection_ammu
goto_if_false @AMUNAT_4610
$sub_menu_selection_ammu = 0

:AMUNAT_4610
set_var_int_to_var_int $weapon_ammu = $second_menu_weapon($sub_menu_selection_ammu,3i)
s$weapon_name = get_name_of_item $weapon_ammu
$weapon_price = get_price_of_item $weapon_ammu
if 
  not is_int_var_equal_to_constant $weapon_ammu == 48
goto_if_false @AMUNAT_4679
$what_slot = get_weapontype_slot $weapon_ammu
$model_index_ammu = get_weapontype_model $weapon_ammu
goto @AMUNAT_4687

:AMUNAT_4679
set_var_int_to_constant $model_index_ammu = 373

:AMUNAT_4687
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_4719
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_4719
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} "SHP_G_LIFT_IN" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_ammunation = 0.0
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} "SHP_G_LIFT_IN"
goto_if_false @AMUNAT_4827
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} "SHP_G_LIFT_IN"

:AMUNAT_4827
$shop_progress_ammunation = 3

:AMUNAT_4834
if 
  $shop_progress_ammunation == 3
goto_if_false @AMUNAT_4934
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} "SHP_G_LIFT_IN"
goto_if_false @AMUNAT_4906
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} "SHP_G_LIFT_IN"

:AMUNAT_4906
if 
  $return_animation_time_ammunation == 1.0
goto_if_false @AMUNAT_4934
$shop_progress_ammunation = 4

:AMUNAT_4934
if 
  $shop_progress_ammunation == 4
goto_if_false @AMUNAT_5110
$weapon_obj = create_object $model_index_ammu {x} $ammuX {y} $ammuY {z} $ammuZ
gosub @AMUNAT_8960
gosub @AMUNAT_9615
task_pick_up_object $shop_keep_ammunation {object} $weapon_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
freeze_object_position $weapon_obj {state} False
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} v$anim_name_lift_ammu {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_ammunation = 0.0
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_lift_ammu
goto_if_false @AMUNAT_5103
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_lift_ammu

:AMUNAT_5103
$shop_progress_ammunation = 5

:AMUNAT_5110
if 
  $shop_progress_ammunation == 5
goto_if_false @AMUNAT_5300
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_lift_ammu
goto_if_false @AMUNAT_5158
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_lift_ammu

:AMUNAT_5158
if 
  $return_animation_time_ammunation == 1.0
goto_if_false @AMUNAT_5300
drop_object $shop_keep_ammunation {state} False
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationGunCollision
set_object_coordinates $weapon_obj {x} $weapon_on_counterX_shops {y} $weapon_on_counterY_shops {z} $weapon_on_counterZ_shops
freeze_object_position $weapon_obj {state} True
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} v$anim_name_lift_end_ammu {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_ammunation = 0.0
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_lift_end_ammu
goto_if_false @AMUNAT_5293
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_lift_end_ammu

:AMUNAT_5293
$shop_progress_ammunation = 6

:AMUNAT_5300
if 
  $shop_progress_ammunation == 6
goto_if_false @AMUNAT_5565
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_lift_end_ammu
goto_if_false @AMUNAT_5348
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_lift_end_ammu

:AMUNAT_5348
if 
  $return_animation_time_ammunation == 1.0
goto_if_false @AMUNAT_5565
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} "SHP_TRAY_POSE" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_ammunation = 0.0
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_5448
gosub @AMUNAT_7632

:AMUNAT_5448
if 
  not is_int_var_equal_to_constant $weapon_ammu == 48
goto_if_false @AMUNAT_5551
set_var_int_to_var_int $temp_slot = $what_slot
$temp_slot += 1
$player_weapontype, $player_ammo, $player_weapon_model = get_char_weapon_in_slot $scplayer {weaponSlotId} $temp_slot
if 
  not is_int_var_equal_to_int_var $player_weapontype == $weapon_ammu
goto_if_false @AMUNAT_5551
if 
  $player_ammo > 0
goto_if_false @AMUNAT_5551
print_now 'AMMUA' {time} 5000 {flag} 1

:AMUNAT_5551
$flag_ammu = 7
$shop_progress_ammunation = 0

:AMUNAT_5565
if 
  $flag_ammu == 7
goto_if_false @AMUNAT_7597
if 
  is_char_dead $shop_keep_ammunation
goto_if_false @AMUNAT_5644
gosub @AMUNAT_8273
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_weapon_shop
goto_if_false @AMUNAT_5637
gosub @AMUNAT_8535

:AMUNAT_5637
goto @AMUNAT_640

:AMUNAT_5644
if 
  1 > $shop_progress_ammunation
goto_if_false @AMUNAT_5687
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_5687
gosub @AMUNAT_7632

:AMUNAT_5687
if 
  $shop_progress_ammunation == 0
goto_if_false @AMUNAT_5753
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_5729
$shop_progress_ammunation = 5

:AMUNAT_5729
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_5753
$shop_progress_ammunation = 1

:AMUNAT_5753
if 
  $shop_progress_ammunation == 1
goto_if_false @AMUNAT_5899
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @AMUNAT_5899
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_5820
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_5820
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} v$anim_name_return_start_ammu {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_ammunation = 0.0
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_return_start_ammu
goto_if_false @AMUNAT_5892
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_return_start_ammu

:AMUNAT_5892
$shop_progress_ammunation = 2

:AMUNAT_5899
if 
  $shop_progress_ammunation == 2
goto_if_false @AMUNAT_6095
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_return_start_ammu
goto_if_false @AMUNAT_5947
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_return_start_ammu

:AMUNAT_5947
if 
  $return_animation_time_ammunation == 1.0
goto_if_false @AMUNAT_6095
task_pick_up_object $shop_keep_ammunation {object} $weapon_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
freeze_object_position $weapon_obj {state} False
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} v$anim_name_return_ammu {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_ammunation = 0.0
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_return_ammu
goto_if_false @AMUNAT_6088
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_return_ammu

:AMUNAT_6088
$shop_progress_ammunation = 3

:AMUNAT_6095
if 
  $shop_progress_ammunation == 3
goto_if_false @AMUNAT_6317
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} v$anim_name_return_ammu
goto_if_false @AMUNAT_6143
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} v$anim_name_return_ammu

:AMUNAT_6143
if 
  $return_animation_time_ammunation == 1.0
goto_if_false @AMUNAT_6317
drop_object $shop_keep_ammunation {state} False
set_object_coordinates $weapon_obj {x} $weapon_on_counterX_shops {y} $weapon_on_counterY_shops {z} $weapon_on_counterZ_shops
freeze_object_position $weapon_obj {state} True
gosub @AMUNAT_8953
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} "SHP_G_LIFT_OUT" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_ammunation = 0.0
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} "SHP_G_LIFT_OUT"
goto_if_false @AMUNAT_6310
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} "SHP_G_LIFT_OUT"

:AMUNAT_6310
$shop_progress_ammunation = 4

:AMUNAT_6317
if 
  $shop_progress_ammunation == 4
goto_if_false @AMUNAT_6480
if 
  is_char_playing_anim $shop_keep_ammunation {animationName} "SHP_G_LIFT_OUT"
goto_if_false @AMUNAT_6391
$return_animation_time_ammunation = get_char_anim_current_time $shop_keep_ammunation {animationName} "SHP_G_LIFT_OUT"

:AMUNAT_6391
if 
  $return_animation_time_ammunation == 1.0
goto_if_false @AMUNAT_6480
task_play_anim_non_interruptable $shop_keep_ammunation {animationName} "SHP_TRAY_POSE" {animationFile} "WEAPONS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_ammunation = 0.0
$shop_progress_ammunation = 0
$flag_ammu = 6

:AMUNAT_6480
if 
  $shop_progress_ammunation == 5
goto_if_false @AMUNAT_7048
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @AMUNAT_7048
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$flag_no_money_shops = 0
$flag_buy_ammo_flag = 0
$players_money = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $players_money >= $weapon_price
goto_if_false @AMUNAT_6969
if 
  not is_int_var_equal_to_constant $weapon_ammu == 48
goto_if_false @AMUNAT_6791
$player_ammo = get_ammo_in_char_weapon $scplayer {weaponType} $weapon_ammu
if 
  9999 > $player_ammo
goto_if_false @AMUNAT_6705
buy_item $weapon_ammu
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.GiveProduct {overrideSilence} False {ignoreMute} False {frontEnd} True
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeapon
$shop_progress_ammunation = 6
TIMERB = 0
goto @AMUNAT_6784

:AMUNAT_6705
if 
  $flag_buy_ammo_flag == 0
goto_if_false @AMUNAT_6784
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied
print_now 'AMMUC' {time} 5000 {flag} 1
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.BoughtEnough {overrideSilence} False {ignoreMute} False {frontEnd} True
$shop_progress_ammunation = 0
$flag_buy_ammo_flag = 1

:AMUNAT_6784
goto @AMUNAT_6962

:AMUNAT_6791
$player_armour = get_char_armour $scplayer
$player_max_armour = get_player_max_armour $player1
if 
  is_int_var_greater_than_int_var $player_max_armour > $player_armour
goto_if_false @AMUNAT_6883
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.GiveProduct {overrideSilence} False {ignoreMute} False {frontEnd} True
buy_item $weapon_ammu
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeapon
$shop_progress_ammunation = 6
TIMERB = 0
goto @AMUNAT_6962

:AMUNAT_6883
if 
  $flag_buy_ammo_flag == 0
goto_if_false @AMUNAT_6962
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.BoughtEnough {overrideSilence} False {ignoreMute} False {frontEnd} True
print_now 'AMMUD' {time} 5000 {flag} 1
$shop_progress_ammunation = 0
$flag_buy_ammo_flag = 1

:AMUNAT_6962
goto @AMUNAT_7048

:AMUNAT_6969
if 
  $flag_no_money_shops == 0
goto_if_false @AMUNAT_7048
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundAmmunationBuyWeaponDenied
$sample_name_shops = set_char_say_context_important $shop_keep_ammunation {phrase} SpeechId.NoMoney {overrideSilence} False {ignoreMute} False {frontEnd} True
print_now 'SHOPNO' {time} 5000 {flag} 1
$shop_progress_ammunation = 0
$flag_no_money_shops = 1

:AMUNAT_7048
if 
  $shop_progress_ammunation == 6
goto_if_false @AMUNAT_7480
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_7098
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:AMUNAT_7098
if 
  $bought_menu_drawn_shops == 0
goto_if_false @AMUNAT_7466
$bought_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 20.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'WEAPON' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Center
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $weapon_price
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:AMUNAT_7466
TIMERB = 0
$shop_progress_ammunation = 7

:AMUNAT_7480
if 
  $shop_progress_ammunation == 7
goto_if_false @AMUNAT_7597
if 
  TIMERB >= 1000
goto_if_false @AMUNAT_7597
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_7547
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_7547
$shop_progress_ammunation = 0
if 
  1 > $shop_progress_ammunation
goto_if_false @AMUNAT_7597
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_7597
gosub @AMUNAT_7632

:AMUNAT_7597
goto @AMUNAT_7611

:AMUNAT_7604
gosub @AMUNAT_8535

:AMUNAT_7611
goto @AMUNAT_7625

:AMUNAT_7618
gosub @AMUNAT_8535

:AMUNAT_7625
goto @AMUNAT_640

:AMUNAT_7632
if 
  $cost_menu_drawn_shops == 0
goto_if_false @AMUNAT_8271
print_help_forever 'AMMU_H3'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_7723
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7723
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_7785
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7785
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_7847
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7847
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_7909
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @AMUNAT_7964

:AMUNAT_7909
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_7964
$cost_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:AMUNAT_7964
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'WEAPON' {row0} s$weapon_name {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Center
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $weapon_price
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:AMUNAT_8271
return 

:AMUNAT_8273
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_8305
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_8305
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_8337
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_8337
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_8369
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_8369
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_8399
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_8399
if 
  $flag_ammu >= 1
goto_if_false @AMUNAT_8419
clear_help 

:AMUNAT_8419
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$created_this_weapon = 0
$shop_progress_ammunation = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_buy_ammo_flag = 0
$flag_ammu = 2
return 

:AMUNAT_8535
if 
  $main_menu_drawn_shops == 1
goto_if_false @AMUNAT_8567
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:AMUNAT_8567
if 
  $sub_menu_drawn_shops == 1
goto_if_false @AMUNAT_8599
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:AMUNAT_8599
if 
  $cost_menu_drawn_shops == 1
goto_if_false @AMUNAT_8631
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:AMUNAT_8631
if 
  $bought_menu_drawn_shops == 1
goto_if_false @AMUNAT_8661
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:AMUNAT_8661
if 
  $flag_ammu >= 1
goto_if_false @AMUNAT_8681
clear_help 

:AMUNAT_8681
clear_this_print 'AMMUA'
clear_this_print 'SHOPNO'
clear_this_print 'AMMUC'
clear_this_print 'AMMUD'
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$flag_attacked_ammu_keeper = 0
$created_this_weapon = 0
$shop_progress_ammunation = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_buy_ammo_flag = 0
$flag_ammu = 0
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed 347
mark_model_as_no_longer_needed 348
mark_model_as_no_longer_needed 349
mark_model_as_no_longer_needed 350
mark_model_as_no_longer_needed 351
mark_model_as_no_longer_needed 342
mark_model_as_no_longer_needed 352
mark_model_as_no_longer_needed 353
mark_model_as_no_longer_needed 372
mark_model_as_no_longer_needed 355
mark_model_as_no_longer_needed 356
mark_model_as_no_longer_needed 357
mark_model_as_no_longer_needed 358
mark_model_as_no_longer_needed 373
mark_model_as_no_longer_needed 363
mark_model_as_no_longer_needed 364
use_text_commands False
mark_model_as_no_longer_needed $shopkeeper_model_shops
delete_char $shop_keep_ammunation
show_update_stats True
display_radar True
set_minigame_in_progress False
if 
  $trigger_new_range_level == 1
goto_if_false @AMUNAT_8949
print_help 'ANR_56'
$trigger_new_range_level = 0

:AMUNAT_8949
terminate_this_script 
return 

:AMUNAT_8953
delete_object $weapon_obj
return 

:AMUNAT_8960
if or
  is_int_var_equal_to_constant $model_index_ammu == 349
  is_int_var_equal_to_constant $model_index_ammu == 351
  is_int_var_equal_to_constant $model_index_ammu == 355
  is_int_var_equal_to_constant $model_index_ammu == 356
  is_int_var_equal_to_constant $model_index_ammu == 358
  is_int_var_equal_to_constant $model_index_ammu == 357
goto_if_false @AMUNAT_9113
set_var_text_label16 v$anim_name_lift_ammu = "SHP_2H_LIFT"
set_var_text_label16 v$anim_name_lift_end_ammu = "SHP_2H_LIFT_END"
set_var_float_to_var_float $weapon_on_counterX_shops = $ammuX
$weapon_on_counterX_shops += 0.231
set_var_float_to_var_float $weapon_on_counterY_shops = $ammuY
$weapon_on_counterY_shops += 0.636
set_var_float_to_var_float $weapon_on_counterZ_shops = $ammuZ
$weapon_on_counterZ_shops += 1.053

:AMUNAT_9113
if 
  is_int_var_equal_to_constant $model_index_ammu == 350
goto_if_false @AMUNAT_9226
set_var_text_label16 v$anim_name_lift_ammu = "SHP_2H_LIFT"
set_var_text_label16 v$anim_name_lift_end_ammu = "SHP_2H_LIFT_END"
set_var_float_to_var_float $weapon_on_counterX_shops = $ammuX
$weapon_on_counterX_shops += 0.231
set_var_float_to_var_float $weapon_on_counterY_shops = $ammuY
$weapon_on_counterY_shops += 0.636
set_var_float_to_var_float $weapon_on_counterZ_shops = $ammuZ
$weapon_on_counterZ_shops += 1.053

:AMUNAT_9226
if or
  is_int_var_equal_to_constant $model_index_ammu == 346
  is_int_var_equal_to_constant $model_index_ammu == 347
  is_int_var_equal_to_constant $model_index_ammu == 348
  is_int_var_equal_to_constant $model_index_ammu == 342
  is_int_var_equal_to_constant $model_index_ammu == 352
  is_int_var_equal_to_constant $model_index_ammu == 353
goto_if_false @AMUNAT_9379
set_var_text_label16 v$anim_name_lift_ammu = "SHP_1H_LIFT"
set_var_text_label16 v$anim_name_lift_end_ammu = "SHP_1H_LIFT_END"
set_var_float_to_var_float $weapon_on_counterX_shops = $ammuX
$weapon_on_counterX_shops += 0.108
set_var_float_to_var_float $weapon_on_counterY_shops = $ammuY
$weapon_on_counterY_shops += 0.654
set_var_float_to_var_float $weapon_on_counterZ_shops = $ammuZ
$weapon_on_counterZ_shops += 1.053

:AMUNAT_9379
if or
  is_int_var_equal_to_constant $model_index_ammu == 363
  is_int_var_equal_to_constant $model_index_ammu == 372
goto_if_false @AMUNAT_9500
set_var_text_label16 v$anim_name_lift_ammu = "SHP_1H_LIFT"
set_var_text_label16 v$anim_name_lift_end_ammu = "SHP_1H_LIFT_END"
set_var_float_to_var_float $weapon_on_counterX_shops = $ammuX
$weapon_on_counterX_shops += 0.108
set_var_float_to_var_float $weapon_on_counterY_shops = $ammuY
$weapon_on_counterY_shops += 0.654
set_var_float_to_var_float $weapon_on_counterZ_shops = $ammuZ
$weapon_on_counterZ_shops += 1.053

:AMUNAT_9500
if 
  is_int_var_equal_to_constant $model_index_ammu == 373
goto_if_false @AMUNAT_9613
set_var_text_label16 v$anim_name_lift_ammu = "SHP_AR_LIFT"
set_var_text_label16 v$anim_name_lift_end_ammu = "SHP_AR_LIFT_END"
set_var_float_to_var_float $weapon_on_counterX_shops = $ammuX
$weapon_on_counterX_shops += 0.175
set_var_float_to_var_float $weapon_on_counterY_shops = $ammuY
$weapon_on_counterY_shops += 0.676
set_var_float_to_var_float $weapon_on_counterZ_shops = $ammuZ
$weapon_on_counterZ_shops += 1.5

:AMUNAT_9613
return 

:AMUNAT_9615
if or
  is_int_var_equal_to_constant $model_index_ammu == 349
  is_int_var_equal_to_constant $model_index_ammu == 351
  is_int_var_equal_to_constant $model_index_ammu == 355
  is_int_var_equal_to_constant $model_index_ammu == 356
  is_int_var_equal_to_constant $model_index_ammu == 358
  is_int_var_equal_to_constant $model_index_ammu == 357
goto_if_false @AMUNAT_9710
set_var_text_label16 v$anim_name_return_start_ammu = "SHP_2H_RET_S"
set_var_text_label16 v$anim_name_return_ammu = "SHP_2H_RET"

:AMUNAT_9710
if 
  is_int_var_equal_to_constant $model_index_ammu == 350
goto_if_false @AMUNAT_9765
set_var_text_label16 v$anim_name_return_start_ammu = "SHP_2H_RET_S"
set_var_text_label16 v$anim_name_return_ammu = "SHP_2H_RET"

:AMUNAT_9765
if or
  is_int_var_equal_to_constant $model_index_ammu == 346
  is_int_var_equal_to_constant $model_index_ammu == 347
  is_int_var_equal_to_constant $model_index_ammu == 348
  is_int_var_equal_to_constant $model_index_ammu == 342
  is_int_var_equal_to_constant $model_index_ammu == 352
  is_int_var_equal_to_constant $model_index_ammu == 353
goto_if_false @AMUNAT_9860
set_var_text_label16 v$anim_name_return_start_ammu = "SHP_1H_RET_S"
set_var_text_label16 v$anim_name_return_ammu = "SHP_1H_RET"

:AMUNAT_9860
if or
  is_int_var_equal_to_constant $model_index_ammu == 363
  is_int_var_equal_to_constant $model_index_ammu == 372
goto_if_false @AMUNAT_9923
set_var_text_label16 v$anim_name_return_start_ammu = "SHP_1H_RET_S"
set_var_text_label16 v$anim_name_return_ammu = "SHP_1H_RET"

:AMUNAT_9923
if 
  is_int_var_equal_to_constant $model_index_ammu == 373
goto_if_false @AMUNAT_9978
set_var_text_label16 v$anim_name_return_start_ammu = "SHP_AR_RET_S"
set_var_text_label16 v$anim_name_return_ammu = "SHP_AR_RET"

:AMUNAT_9978
return 

:AMUNAT_9980
$weapon_count_ammu = 0
$no_of_different_type_weapons = 0
$temp_var_shops = 0
$no_of_pistols = 0
$no_of_shotguns = 0
$no_of_microSMG = 0
$no_of_SMG = 0
$no_of_assault = 0
$no_of_thrown = 0
$no_of_rifle = 0
$no_of_armour = 0
$no_of_heavy = 0
$pistol_name_menu = 0
$shotgun_name_menu = 0
$microSMG_name_menu = 0
$SMG_name_menu = 0
$assault_name_menu = 0
$rifle_name_menu = 0
$thrown_name_menu = 0
$armour_name_menu = 0
$heavy_name_menu = 0

:AMUNAT_10127
if 
  is_int_var_greater_than_int_var $num_of_weapons > $weapon_count_ammu
goto_if_false @AMUNAT_10904
$weapon_ammu = get_item_in_shop $weapon_count_ammu
switch_start $weapon_ammu {numCases} 16 {hasDefaultCase} 0 {defaultLabel} @AMUNAT_10890 {caseNum1} 16 {caseLabel1} @AMUNAT_10738 {caseNum2} 22 {caseLabel2} @AMUNAT_10282 {caseNum3} 23 {caseLabel3} @AMUNAT_10282 {caseNum4} 24 {caseLabel4} @AMUNAT_10282 {caseNum5} 25 {caseLabel5} @AMUNAT_10358 {caseNum6} 26 {caseLabel6} @AMUNAT_10358 {caseNum7} 27 {caseLabel7} @AMUNAT_10358
switch_continued 28 {caseLabel1} @AMUNAT_10434 {caseNum2} 29 {caseLabel2} @AMUNAT_10510 {caseNum3} 30 {caseLabel3} @AMUNAT_10586 {caseNum4} 31 {caseLabel4} @AMUNAT_10586 {caseNum5} 32 {caseLabel5} @AMUNAT_10434 {caseNum6} 33 {caseLabel6} @AMUNAT_10662 {caseNum7} 34 {caseLabel7} @AMUNAT_10662 {caseNum8} 39 {caseLabel8} @AMUNAT_10738 {caseNum9} 48 {caseLabel9} @AMUNAT_10814

:AMUNAT_10282
set_var_int_to_var_int $pistol_array($no_of_pistols,3i) = $weapon_ammu
$no_of_pistols += 1
if 
  $pistol_name_menu == 0
goto_if_false @AMUNAT_10351
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN1'
$no_of_different_type_weapons += 1
$pistol_name_menu = 1

:AMUNAT_10351
goto @AMUNAT_10890

:AMUNAT_10358
set_var_int_to_var_int $shotgun_array($no_of_shotguns,3i) = $weapon_ammu
$no_of_shotguns += 1
if 
  $shotgun_name_menu == 0
goto_if_false @AMUNAT_10427
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN2'
$no_of_different_type_weapons += 1
$shotgun_name_menu = 1

:AMUNAT_10427
goto @AMUNAT_10890

:AMUNAT_10434
set_var_int_to_var_int $microSMG_array($no_of_microSMG,2i) = $weapon_ammu
$no_of_microSMG += 1
if 
  $microSMG_name_menu == 0
goto_if_false @AMUNAT_10503
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN3'
$no_of_different_type_weapons += 1
$microSMG_name_menu = 1

:AMUNAT_10503
goto @AMUNAT_10890

:AMUNAT_10510
set_var_int_to_var_int $SMG_array($no_of_SMG,1i) = $weapon_ammu
$no_of_SMG += 1
if 
  $SMG_name_menu == 0
goto_if_false @AMUNAT_10579
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN4'
$no_of_different_type_weapons += 1
$SMG_name_menu = 1

:AMUNAT_10579
goto @AMUNAT_10890

:AMUNAT_10586
set_var_int_to_var_int $assault_array($no_of_assault,2i) = $weapon_ammu
$no_of_assault += 1
if 
  $assault_name_menu == 0
goto_if_false @AMUNAT_10655
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN5'
$no_of_different_type_weapons += 1
$assault_name_menu = 1

:AMUNAT_10655
goto @AMUNAT_10890

:AMUNAT_10662
set_var_int_to_var_int $rifle_array($no_of_rifle,2i) = $weapon_ammu
$no_of_rifle += 1
if 
  $rifle_name_menu == 0
goto_if_false @AMUNAT_10731
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN6'
$no_of_different_type_weapons += 1
$rifle_name_menu = 1

:AMUNAT_10731
goto @AMUNAT_10890

:AMUNAT_10738
set_var_int_to_var_int $thrown_array($no_of_thrown,2i) = $weapon_ammu
$no_of_thrown += 1
if 
  $thrown_name_menu == 0
goto_if_false @AMUNAT_10807
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN7'
$no_of_different_type_weapons += 1
$thrown_name_menu = 1

:AMUNAT_10807
goto @AMUNAT_10890

:AMUNAT_10814
set_var_int_to_var_int $armour_array($no_of_armour,1i) = $weapon_ammu
$no_of_armour += 1
if 
  $armour_name_menu == 0
goto_if_false @AMUNAT_10883
set_var_text_label $item_text_label($no_of_different_type_weapons,12s) = 'GUN8'
$no_of_different_type_weapons += 1
$armour_name_menu = 1

:AMUNAT_10883
goto @AMUNAT_10890

:AMUNAT_10890
$weapon_count_ammu += 1
goto @AMUNAT_10127

:AMUNAT_10904
set_var_int_to_var_int $temp_var_shops = $no_of_different_type_weapons

:AMUNAT_10912
if 
  12 > $temp_var_shops
goto_if_false @AMUNAT_10984
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @AMUNAT_10912

:AMUNAT_10984
return 

:AMUNAT_10986
if 
  $main_menu_drawn_shops == 0
goto_if_false @AMUNAT_11386
print_help_forever 'AMMU_H'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_11077
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11077
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_11139
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11139
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_11201
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11201
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_11263
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_11318

:AMUNAT_11263
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_11318
$main_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:AMUNAT_11318
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$main_menu_drawn_shops = 1

:AMUNAT_11386
return 

:AMUNAT_11388
$temp_var_ammu = 0
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN1'
goto_if_false @AMUNAT_11493

:AMUNAT_11420
if 
  is_int_var_greater_than_int_var $no_of_pistols > $temp_var_ammu
goto_if_false @AMUNAT_11493
s$weapon_name = get_name_of_item $pistol_array($temp_var_ammu,3i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $pistol_array($temp_var_ammu,3i)
$temp_var_ammu += 1
goto @AMUNAT_11420

:AMUNAT_11493
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN2'
goto_if_false @AMUNAT_11591

:AMUNAT_11518
if 
  is_int_var_greater_than_int_var $no_of_shotguns > $temp_var_ammu
goto_if_false @AMUNAT_11591
s$weapon_name = get_name_of_item $shotgun_array($temp_var_ammu,3i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $shotgun_array($temp_var_ammu,3i)
$temp_var_ammu += 1
goto @AMUNAT_11518

:AMUNAT_11591
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN3'
goto_if_false @AMUNAT_11689

:AMUNAT_11616
if 
  is_int_var_greater_than_int_var $no_of_microSMG > $temp_var_ammu
goto_if_false @AMUNAT_11689
s$weapon_name = get_name_of_item $microSMG_array($temp_var_ammu,2i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $microSMG_array($temp_var_ammu,2i)
$temp_var_ammu += 1
goto @AMUNAT_11616

:AMUNAT_11689
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN4'
goto_if_false @AMUNAT_11787

:AMUNAT_11714
if 
  is_int_var_greater_than_int_var $no_of_SMG > $temp_var_ammu
goto_if_false @AMUNAT_11787
s$weapon_name = get_name_of_item $SMG_array($temp_var_ammu,1i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $SMG_array($temp_var_ammu,1i)
$temp_var_ammu += 1
goto @AMUNAT_11714

:AMUNAT_11787
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN5'
goto_if_false @AMUNAT_11885

:AMUNAT_11812
if 
  is_int_var_greater_than_int_var $no_of_assault > $temp_var_ammu
goto_if_false @AMUNAT_11885
s$weapon_name = get_name_of_item $assault_array($temp_var_ammu,2i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $assault_array($temp_var_ammu,2i)
$temp_var_ammu += 1
goto @AMUNAT_11812

:AMUNAT_11885
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN6'
goto_if_false @AMUNAT_11983

:AMUNAT_11910
if 
  is_int_var_greater_than_int_var $no_of_rifle > $temp_var_ammu
goto_if_false @AMUNAT_11983
s$weapon_name = get_name_of_item $rifle_array($temp_var_ammu,2i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $rifle_array($temp_var_ammu,2i)
$temp_var_ammu += 1
goto @AMUNAT_11910

:AMUNAT_11983
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN7'
goto_if_false @AMUNAT_12081

:AMUNAT_12008
if 
  is_int_var_greater_than_int_var $no_of_thrown > $temp_var_ammu
goto_if_false @AMUNAT_12081
s$weapon_name = get_name_of_item $thrown_array($temp_var_ammu,2i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $thrown_array($temp_var_ammu,2i)
$temp_var_ammu += 1
goto @AMUNAT_12008

:AMUNAT_12081
if 
  is_var_text_label_equal_to_text_label s$section_selected_ammu == 'GUN8'
goto_if_false @AMUNAT_12179

:AMUNAT_12106
if 
  is_int_var_greater_than_int_var $no_of_armour > $temp_var_ammu
goto_if_false @AMUNAT_12179
s$weapon_name = get_name_of_item $armour_array($temp_var_ammu,1i)
set_var_text_label $item_text_label($temp_var_ammu,12s) = s$weapon_name
set_var_int_to_var_int $second_menu_weapon($temp_var_ammu,3i) = $armour_array($temp_var_ammu,1i)
$temp_var_ammu += 1
goto @AMUNAT_12106

:AMUNAT_12179
set_var_int_to_var_int $temp_var_shops = $temp_var_ammu

:AMUNAT_12187
if 
  12 > $temp_var_shops
goto_if_false @AMUNAT_12259
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @AMUNAT_12187

:AMUNAT_12259
if 
  $sub_menu_drawn_shops == 0
goto_if_false @AMUNAT_12659
print_help_forever 'AMMU_H2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @AMUNAT_12350
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12350
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @AMUNAT_12412
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12412
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @AMUNAT_12474
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12474
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @AMUNAT_12536
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @AMUNAT_12591

:AMUNAT_12536
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @AMUNAT_12591
$sub_menu_shops = create_menu 'AMMUN' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:AMUNAT_12591
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$sub_menu_drawn_shops = 1

:AMUNAT_12659
return 
terminate_this_script 

//-------------External script 61 (TATTOO)---------------

:TATTO
$number_of_tats_in_shop = 0
$number_of_tattoos_in_area = 0
$area_looked_for_shops = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$shop_progress_tattoo = 0
$shop_keep_tattooX = 0.0
$shop_keep_tattooY = 0.0
$shop_keep_tattooZ = 0.0
$shop_keep_heading_tattoo = 0.0
$tattoo_heading = 0.0
$return_animation_time_tattoo = 0.0
$shop_keep_animation_time_tattoo = 0.0
$object_animation_time_tattoo = 0.0
$tattoo_needleX = 0.0
$tattoo_needleY = 0.0
$tattoo_needleZ = 0.0
$tattoo_needle_heading = 0.0
$flag_tattoo = 0
$player_in_view_mode_tattoo = 0
$shopkeeper_attacked_tattoo = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$stored_item_picked_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$menu_two_item_hilighted = 0
$previous_menu_two_item_hilighted = 500
$temp_var_shops2 = 0
$number_of_tats_player_has = 0
$flag_in_remove_tattoo_section = 0
$remove_tats_menu_drawn = 0
$menu_item_no_tats = 0
$remove_menu_item_selected = 0
$keep_offX = 0.0
$keep_offY = 0.0
$keep_offZ = 0.0
$shop_keep_tattooX = 0.0
$shop_keep_tattooY = 0.0
$shop_keep_tattooZ = 0.0
$cam_offx = 0.0
$cam_offy = 0.0
$cam_offz = 0.0
$cam_point_tattooX = 0.0
$cam_point_tattooY = 0.0
$cam_point_tattooZ = 0.0
$tattoo_offsetX = 0.0
$tattoo_offsetY = 0.0
$tattoo_offsetZ = 0.0
set_var_int_to_constant $shopkeeper_model_shops = 180
request_model #TATTOO_KIT
load_texture_dictionary 'LD_TATT'
request_model $shopkeeper_model_shops
load_mission_audio MissionAudioSlot.Slot4 {audioId} 40000
load_all_models_now 
set_deatharrest_state 0
script_name 'TATTO'

:TATTO_515
wait 0
if 
  is_player_playing $player1
goto_if_false @TATTO_7605
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @TATTO_7591
if 
  $flag_tattoo > 0
goto_if_false @TATTO_637
if 
  has_language_changed 
goto_if_false @TATTO_637
clear_help 
delete_menu $bought_menu_shops
delete_menu $sub_menu_shops
delete_menu $main_menu_shops
delete_menu $remove_menu_tattoo
$main_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$remove_tats_menu_drawn = 0
$current_Language = get_current_language 

:TATTO_637
if 
  $flag_tattoo == 0
goto_if_false @TATTO_940
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTO2'
goto_if_false @TATTO_750
$tattoo_offsetX = 0.0
$tattoo_offsetY = 0.0
$tattoo_offsetZ = 0.0
$tattoo_heading = 125.0
$shop_keep_heading_tattoo = 155.0
set_var_text_label s$stored_tattoo_shop = s$shop_name
$number_of_tats_in_shop = get_number_of_items_in_shop 
$flag_tattoo = 1

:TATTO_750
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTOO'
goto_if_false @TATTO_845
$tattoo_offsetX = 0.0
$tattoo_offsetY = -18.266
$tattoo_offsetZ = 0.0
$tattoo_heading = 125.0
$shop_keep_heading_tattoo = 155.0
set_var_text_label s$stored_tattoo_shop = s$shop_name
$number_of_tats_in_shop = get_number_of_items_in_shop 
$flag_tattoo = 1

:TATTO_845
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'TATTO3'
goto_if_false @TATTO_940
$tattoo_offsetX = 0.0
$tattoo_offsetY = -35.32
$tattoo_offsetZ = 0.0
$tattoo_heading = 125.0
$shop_keep_heading_tattoo = 155.0
set_var_text_label s$stored_tattoo_shop = s$shop_name
$number_of_tats_in_shop = get_number_of_items_in_shop 
$flag_tattoo = 1

:TATTO_940
if 
  $flag_tattoo == 1
goto_if_false @TATTO_1579
if 
  $shop_progress_tattoo == 0
goto_if_false @TATTO_1462
$keep_offX = -203.318
add_float_var_to_float_var $keep_offX += $tattoo_offsetX
$keep_offY = -7.062
add_float_var_to_float_var $keep_offY += $tattoo_offsetY
$keep_offZ = 1001.28
add_float_var_to_float_var $keep_offZ += $tattoo_offsetZ
$shop_keep_tattooX = -201.668
add_float_var_to_float_var $shop_keep_tattooX += $tattoo_offsetX
$shop_keep_tattooY = -6.217
add_float_var_to_float_var $shop_keep_tattooY += $tattoo_offsetY
$shop_keep_tattooZ = 1001.28
add_float_var_to_float_var $shop_keep_tattooZ += $tattoo_offsetZ
$cam_offx = -203.2045
add_float_var_to_float_var $cam_offx += $tattoo_offsetX
$cam_offy = -5.3316
add_float_var_to_float_var $cam_offy += $tattoo_offsetY
$cam_offz = 1002.432
add_float_var_to_float_var $cam_offz += $tattoo_offsetZ
$cam_point_tattooX = -202.2993
add_float_var_to_float_var $cam_point_tattooX += $tattoo_offsetX
$cam_point_tattooY = -5.7376
add_float_var_to_float_var $cam_point_tattooY += $tattoo_offsetY
$cam_point_tattooZ = 1002.306
add_float_var_to_float_var $cam_point_tattooZ += $tattoo_offsetZ
set_var_float_to_var_float $tattoo_needleX = $shop_keep_tattooX
set_var_float_to_var_float $tattoo_needleY = $shop_keep_tattooY
set_var_float_to_var_float $tattoo_needleZ = $shop_keep_tattooZ
$tattoo_needleZ += 1.0
set_var_float_to_var_float $tattoo_needle_heading = $shop_keep_heading_tattoo
use_text_commands True
show_update_stats False
$shop_keep_tattoo = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $shop_keep_tattooX {y} $shop_keep_tattooY {z} $shop_keep_tattooZ
set_char_only_damaged_by_player $shop_keep_tattoo {state} True
set_char_decision_maker $shop_keep_tattoo {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_char_heading $shop_keep_tattoo {heading} $shop_keep_heading_tattoo
set_char_uses_collision_closest_object_of_type $shop_keep_tattooX {y} $shop_keep_tattooY {z} $shop_keep_tattooZ {radius} 1.5 {modelId} #CJ_BARSTOOL {state} False {target} $shop_keep_tattoo
$shopkeeper_attacked_tattoo = 0
$tattoo_needle = create_object_no_offset #TATTOO_KIT {x} $tattoo_needleX {y} $tattoo_needleY {z} $tattoo_needleZ
set_object_heading $tattoo_needle {heading} $tattoo_needle_heading
attach_char_to_object $shop_keep_tattoo {handle} $tattoo_needle {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {heading} Facing.Forward {headingRange} 180.0 {weaponType} WeaponType.Unarmed
$blob_flag_shop = 1
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
TIMERA = 0
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.TakeASeat
$shop_progress_tattoo = 1

:TATTO_1462
if 
  $shop_progress_tattoo == 1
goto_if_false @TATTO_1579
if 
  TIMERA >= 300
goto_if_false @TATTO_1579
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_1565
play_object_anim $tattoo_needle {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 4.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_1565
$shop_progress_tattoo = 0
$flag_tattoo = 2

:TATTO_1579
if 
  $flag_tattoo == 2
goto_if_false @TATTO_1963
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_1628
gosub @TATTO_7873

:TATTO_1628
if 
  not is_char_dead $shop_keep_tattoo
goto_if_false @TATTO_1918
if 
  $shopkeeper_attacked_tattoo == 0
goto_if_false @TATTO_1866
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_tattoo
  has_char_been_damaged_by_weapon $shop_keep_tattoo {weaponType} WeaponType.AnyWeapon
goto_if_false @TATTO_1786
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.ShopClosed
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_1765
play_object_anim $tattoo_needle {animationName} "TAT_DROP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$object_animation_time_tattoo = 0.0

:TATTO_1765
task_hands_up $shop_keep_tattoo {time} -2
$shopkeeper_attacked_tattoo = 1
goto @TATTO_1859

:TATTO_1786
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @TATTO_1859
if 
  can_player_start_mission $player1
goto_if_false @TATTO_1859
$flag_tattoo = 3

:TATTO_1859
goto @TATTO_1911

:TATTO_1866
gosub @TATTO_7619
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_1904
gosub @TATTO_7873

:TATTO_1904
goto @TATTO_515

:TATTO_1911
goto @TATTO_1963

:TATTO_1918
gosub @TATTO_7619
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_1956
gosub @TATTO_7873

:TATTO_1956
goto @TATTO_515

:TATTO_1963
if 
  $flag_tattoo == 3
goto_if_false @TATTO_2098
if 
  is_player_playing $player1
goto_if_false @TATTO_2084
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
display_radar False
TIMERA = 0
$shop_progress_tattoo = 0
$flag_tattoo = 4
goto @TATTO_2098

:TATTO_2084
gosub @TATTO_7873
goto @TATTO_515

:TATTO_2098
if 
  $flag_tattoo == 4
goto_if_false @TATTO_2930
if 
  is_char_dead $shop_keep_tattoo
goto_if_false @TATTO_2177
gosub @TATTO_7619
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_2170
gosub @TATTO_7873

:TATTO_2170
goto @TATTO_515

:TATTO_2177
if 
  $shop_progress_tattoo == 0
goto_if_false @TATTO_2639
if 
  TIMERA >= 300
goto_if_false @TATTO_2639
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_coordinates_dont_warp_gang $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
set_char_heading $scplayer {heading} $tattoo_heading
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$temp_shopX, $temp_shopY, $temp_shopZ = get_char_coordinates $shop_keep_tattoo
if or
  not is_float_var_equal_to_float_var $temp_shopX == $shop_keep_tattooX
  not is_float_var_equal_to_float_var $temp_shopY == $shop_keep_tattooY
  not is_float_var_equal_to_float_var $temp_shopZ == $shop_keep_tattooZ
goto_if_false @TATTO_2328
set_char_coordinates $shop_keep_tattoo {x} $shop_keep_tattooX {y} $shop_keep_tattooY {z} $shop_keep_tattooZ
set_char_heading $shop_keep_tattoo {heading} $shop_keep_heading_tattoo

:TATTO_2328
set_fixed_camera_position $cam_offx {y} $cam_offy {z} $cam_offz {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_point_tattooX {y} $cam_point_tattooY {z} $cam_point_tattooZ {switchStyle} SwitchType.JumpCut
store_clothes_state 
$tex_tattoo, $model_tattoo = get_clothes_item $player1 {bodyPart} BodyPart.Torso
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Torso
build_player_model $player1
store_clothes_state 
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_IN_P" {animationFile} "TATTOOS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_tattoo = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_SIT_IN_P"
goto_if_false @TATTO_2516
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_SIT_IN_P"

:TATTO_2516
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_2579
play_object_anim $tattoo_needle {animationName} "TAT_SIT_IN_O" {animationFile} "TATTOOS" {frameDelta} 4.0 {lockF} False {loop} True
$object_animation_time_tattoo = 0.0

:TATTO_2579
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_SIT_IN_T" {animationFile} "TATTOOS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_animation_time_tattoo = 0.0
$shop_progress_tattoo = 1

:TATTO_2639
if 
  $shop_progress_tattoo == 1
goto_if_false @TATTO_2930
if 
  is_char_playing_anim $scplayer {animationName} "TAT_SIT_IN_P"
goto_if_false @TATTO_2709
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_SIT_IN_P"

:TATTO_2709
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_2930
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_2850
play_object_anim $tattoo_needle {animationName} "TAT_SIT_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_2850
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_SIT_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.WhatWant
$shop_progress_tattoo = 0
$flag_tattoo = 5

:TATTO_2930
if 
  $flag_tattoo == 5
goto_if_false @TATTO_4725
if 
  is_char_dead $shop_keep_tattoo
goto_if_false @TATTO_3009
gosub @TATTO_7619
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_3002
gosub @TATTO_7873

:TATTO_3002
goto @TATTO_515

:TATTO_3009
if 
  2 > $shop_progress_tattoo
goto_if_false @TATTO_3041
gosub @TATTO_12073
gosub @TATTO_10776

:TATTO_3041
$blob_flag_shop = 0
if 
  $shop_progress_tattoo == 0
goto_if_false @TATTO_3114
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_3090
$shop_progress_tattoo = 1

:TATTO_3090
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_3114
$shop_progress_tattoo = 4

:TATTO_3114
if 
  $shop_progress_tattoo == 1
goto_if_false @TATTO_3306
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_3306
$shop_main_item_picked_shops = get_menu_item_accepted $main_menu_shops
if 
  0 > $shop_main_item_picked_shops
goto_if_false @TATTO_3182
$shop_main_item_picked_shops = 0

:TATTO_3182
if 
  $shop_main_item_picked_shops == 9
goto_if_false @TATTO_3278
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3232
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_3232
if 
  $remove_tats_menu_drawn == 0
goto_if_false @TATTO_3257
gosub @TATTO_12175

:TATTO_3257
$shop_progress_tattoo = 0
$flag_tattoo = 8
goto @TATTO_3306

:TATTO_3278
gosub @TATTO_8186
gosub @TATTO_8413
$flag_in_remove_tattoo_section = 0
gosub @TATTO_13314

:TATTO_3306
if 
  $shop_progress_tattoo == 2
goto_if_false @TATTO_3338
$flag_in_remove_tattoo_section = 0
gosub @TATTO_13835

:TATTO_3338
if 
  $shop_progress_tattoo == 3
goto_if_false @TATTO_3418
set_var_int_to_var_int $stored_item_picked_shops = $shop_main_item_picked_shops
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3396
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:TATTO_3396
$previous_menu_two_item_hilighted = 500
$flag_tattoo = 6
$shop_progress_tattoo = 0

:TATTO_3418
if 
  $shop_progress_tattoo == 4
goto_if_false @TATTO_3524
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_3524
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_3485
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_3485
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_3517
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_3517
$shop_progress_tattoo = 5

:TATTO_3524
if 
  $shop_progress_tattoo == 5
goto_if_false @TATTO_3838
$flag_in_remove_tattoo_section = 0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_LOOP_P"
goto_if_false @TATTO_3659
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_tattoo = 0.0
$shop_progress_tattoo = 6
goto @TATTO_3838

:TATTO_3659
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_3777
play_object_anim $tattoo_needle {animationName} "TAT_SIT_OUT_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$object_animation_time_tattoo = 0.0

:TATTO_3777
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_animation_time_tattoo = 0.0
$shop_progress_tattoo = 7

:TATTO_3838
if 
  $shop_progress_tattoo == 6
goto_if_false @TATTO_4131
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_OUT_P"
goto_if_false @TATTO_3920
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_OUT_P"

:TATTO_3920
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_4131
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_4059
play_object_anim $tattoo_needle {animationName} "TAT_SIT_OUT_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$object_animation_time_tattoo = 0.0

:TATTO_4059
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.ThanksForCustom
$shop_keep_animation_time_tattoo = 0.0
$shop_progress_tattoo = 7

:TATTO_4131
if 
  $shop_progress_tattoo == 7
goto_if_false @TATTO_4442
if 
  is_char_playing_anim $scplayer {animationName} "TAT_SIT_OUT_P"
goto_if_false @TATTO_4203
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_SIT_OUT_P"

:TATTO_4203
if 
  is_char_playing_anim $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T"
goto_if_false @TATTO_4257
$shop_keep_animation_time_tattoo = get_char_anim_current_time $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T"

:TATTO_4257
if 
  $shop_keep_animation_time_tattoo == 1.0
goto_if_false @TATTO_4400
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_4400
play_object_anim $tattoo_needle {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_4400
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_4442
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$shop_progress_tattoo = 8

:TATTO_4442
if 
  $shop_progress_tattoo == 8
goto_if_false @TATTO_4725
give_player_clothes $player1 {textureHash} $tex_tattoo {modelHash} $model_tattoo {bodyPart} BodyPart.Torso
build_player_model $player1
store_clothes_state 
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 
display_radar True
if 
  is_char_playing_anim $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T"
goto_if_false @TATTO_4575
$shop_keep_animation_time_tattoo = get_char_anim_current_time $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T"

:TATTO_4575
if 
  $shop_keep_animation_time_tattoo == 1.0
goto_if_false @TATTO_4718
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_4718
play_object_anim $tattoo_needle {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_4718
$flag_tattoo = 7

:TATTO_4725
if 
  $flag_tattoo == 6
goto_if_false @TATTO_6147
if 
  is_char_dead $shop_keep_tattoo
goto_if_false @TATTO_4804
gosub @TATTO_7619
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_4797
gosub @TATTO_7873

:TATTO_4797
goto @TATTO_515

:TATTO_4804
$blob_flag_shop = 0
if 
  1 > $shop_progress_tattoo
goto_if_false @TATTO_4836
gosub @TATTO_11385

:TATTO_4836
if 
  $shop_progress_tattoo == 0
goto_if_false @TATTO_5032
$menu_two_item_hilighted = get_menu_item_selected $sub_menu_shops
if 
  0 > $menu_two_item_hilighted
goto_if_false @TATTO_4887
$menu_two_item_hilighted = 0

:TATTO_4887
if 
  not is_int_var_equal_to_int_var $previous_menu_two_item_hilighted == $menu_two_item_hilighted
goto_if_false @TATTO_4921
gosub @TATTO_12060
set_var_int_to_var_int $previous_menu_two_item_hilighted = $menu_two_item_hilighted

:TATTO_4921
gosub @TATTO_15460
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_4980
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$bought_menu_drawn_shops = 0
gosub @TATTO_15460
$shop_progress_tattoo = 1

:TATTO_4980
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_5032
gosub @TATTO_10503
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$bought_menu_drawn_shops = 0
$shop_progress_tattoo = 8

:TATTO_5032
if 
  $shop_progress_tattoo == 8
goto_if_false @TATTO_5127
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_5127
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5099
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:TATTO_5099
gosub @TATTO_12073
gosub @TATTO_10776
$shop_progress_tattoo = 0
$flag_tattoo = 5

:TATTO_5127
if 
  $shop_progress_tattoo == 1
goto_if_false @TATTO_5248
gosub @TATTO_15460
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_5248
gosub @TATTO_15460
$shop_sub_item_picked_shops = get_menu_item_accepted $sub_menu_shops
if 
  0 > $shop_sub_item_picked_shops
goto_if_false @TATTO_5209
$shop_sub_item_picked_shops = 0

:TATTO_5209
set_var_int_to_var_int $model_index = $item_model_index($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $tattoo_price = $item_price($shop_sub_item_picked_shops,12i)
$players_money = store_score $player1
$shop_progress_tattoo = 2

:TATTO_5248
if 
  $shop_progress_tattoo == 2
goto_if_false @TATTO_5950
gosub @TATTO_15460
if 
  is_int_var_greater_or_equal_to_int_var $players_money >= $tattoo_price
goto_if_false @TATTO_5877
gosub @TATTO_15460
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @TATTO_5808
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5350
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_5350
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.GiveProduct
buy_item $model_index
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_5412
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_5412
if 
  $bought_menu_drawn_shops == 0
goto_if_false @TATTO_5780
$bought_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'TATTO' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $tattoo_price
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:TATTO_5780
$flag_in_remove_tattoo_section = 0
gosub @TATTO_14230
$shop_progress_tattoo = 3
goto @TATTO_5870

:TATTO_5808
if 
  $flag_bought_item_already_shops == 0
goto_if_false @TATTO_5870
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'CLTHNO2' {time} 5000 {flag} 1
$shop_progress_tattoo = 0
$flag_bought_item_already_shops = 1

:TATTO_5870
goto @TATTO_5950

:TATTO_5877
if 
  $flag_no_money_shops == 0
goto_if_false @TATTO_5950
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.NoMoney
print_now 'SHOPNO' {time} 5000 {flag} 1
$shop_progress_tattoo = 0
$flag_no_money_shops = 1

:TATTO_5950
if 
  $shop_progress_tattoo == 3
goto_if_false @TATTO_5982
$flag_in_remove_tattoo_section = 0
gosub @TATTO_14372

:TATTO_5982
if 
  $shop_progress_tattoo == 4
goto_if_false @TATTO_6021
$flag_in_remove_tattoo_section = 0
gosub @TATTO_14704
$shop_progress_tattoo = 5

:TATTO_6021
if 
  $shop_progress_tattoo == 5
goto_if_false @TATTO_6053
$flag_in_remove_tattoo_section = 0
gosub @TATTO_14842

:TATTO_6053
if 
  $shop_progress_tattoo == 6
goto_if_false @TATTO_6147
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_6101
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:TATTO_6101
$shop_progress_tattoo = 0
$flag_tattoo = 5
if 
  2 > $shop_progress_tattoo
goto_if_false @TATTO_6147
gosub @TATTO_12073
gosub @TATTO_10776

:TATTO_6147
if 
  $flag_tattoo == 7
goto_if_false @TATTO_6714
if 
  is_char_dead $shop_keep_tattoo
goto_if_false @TATTO_6226
gosub @TATTO_7619
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_6219
gosub @TATTO_7873

:TATTO_6219
goto @TATTO_515

:TATTO_6226
if 
  $shopkeeper_attacked_tattoo == 0
goto_if_false @TATTO_6361
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_tattoo
  has_char_been_damaged_by_weapon $shop_keep_tattoo {weaponType} WeaponType.AnyWeapon
goto_if_false @TATTO_6361
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.ShopClosed
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_6347
play_object_anim $tattoo_needle {animationName} "TAT_DROP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$object_animation_time_tattoo = 0.0

:TATTO_6347
task_hands_up $shop_keep_tattoo {time} -2
$shopkeeper_attacked_tattoo = 1

:TATTO_6361
if 
  is_char_playing_anim $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T"
goto_if_false @TATTO_6415
$shop_keep_animation_time_tattoo = get_char_anim_current_time $shop_keep_tattoo {animationName} "TAT_SIT_OUT_T"

:TATTO_6415
if 
  $shop_keep_animation_time_tattoo == 1.0
goto_if_false @TATTO_6558
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_IDLE_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_6558
play_object_anim $tattoo_needle {animationName} "TAT_IDLE_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_6558
if 
  not locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @TATTO_6714
$flag_tattoo = 2
$shop_progress_tattoo = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$stored_item_picked_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$remove_menu_item_selected = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
$blob_flag_shop = 1

:TATTO_6714
if 
  $flag_tattoo == 8
goto_if_false @TATTO_7584
if 
  is_char_dead $shop_keep_tattoo
goto_if_false @TATTO_6793
gosub @TATTO_7619
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_tattoo_shop
goto_if_false @TATTO_6786
gosub @TATTO_7873

:TATTO_6786
goto @TATTO_515

:TATTO_6793
if 
  1 > $shop_progress_tattoo
goto_if_false @TATTO_6836
if 
  $remove_tats_menu_drawn == 0
goto_if_false @TATTO_6836
gosub @TATTO_12175

:TATTO_6836
if 
  $shop_progress_tattoo == 0
goto_if_false @TATTO_6916
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_6885
$flag_no_money_shops = 0
$shop_progress_tattoo = 1

:TATTO_6885
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_6916
$flag_no_money_shops = 0
$shop_progress_tattoo = 2

:TATTO_6916
if 
  $shop_progress_tattoo == 1
goto_if_false @TATTO_7036
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @TATTO_7036
if 
  $remove_tats_menu_drawn == 1
goto_if_false @TATTO_6983
delete_menu $remove_menu_tattoo
clear_help 
$remove_tats_menu_drawn = 0

:TATTO_6983
if 
  $main_menu_drawn_shops == 0
goto_if_false @TATTO_7015
gosub @TATTO_12073
gosub @TATTO_10776

:TATTO_7015
$flag_no_money_shops = 0
$shop_progress_tattoo = 0
$flag_tattoo = 5

:TATTO_7036
if 
  $shop_progress_tattoo == 2
goto_if_false @TATTO_7302
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @TATTO_7302
$players_money = store_score $player1
if 
  $players_money >= 400
goto_if_false @TATTO_7229
$remove_menu_item_selected = get_menu_item_accepted $remove_menu_tattoo
if 
  0 > $remove_menu_item_selected
goto_if_false @TATTO_7131
$remove_menu_item_selected = 0

:TATTO_7131
if 
  $remove_tats_menu_drawn == 1
goto_if_false @TATTO_7163
delete_menu $remove_menu_tattoo
clear_help 
$remove_tats_menu_drawn = 0

:TATTO_7163
set_var_int_to_var_int $area_to_look_at_shops = $player_has_tattoo_in_area($remove_menu_item_selected,9i)
gosub @TATTO_8413
add_score $player1 {money} -400
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.RemoveTattoo
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
$shop_progress_tattoo = 3
goto @TATTO_7302

:TATTO_7229
if 
  $flag_no_money_shops == 0
goto_if_false @TATTO_7302
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$sample_name_shops = set_char_say_context $shop_keep_tattoo {phrase} SpeechId.NoMoney
print_now 'SHOPNO' {time} 5000 {flag} 1
$shop_progress_tattoo = 0
$flag_no_money_shops = 1

:TATTO_7302
if 
  $shop_progress_tattoo == 3
goto_if_false @TATTO_7334
$flag_in_remove_tattoo_section = 1
gosub @TATTO_13314

:TATTO_7334
if 
  $shop_progress_tattoo == 4
goto_if_false @TATTO_7366
$flag_in_remove_tattoo_section = 1
gosub @TATTO_13835

:TATTO_7366
if 
  $shop_progress_tattoo == 5
goto_if_false @TATTO_7417
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} $area_to_look_at_shops
$flag_in_remove_tattoo_section = 1
gosub @TATTO_14230
$shop_progress_tattoo = 6

:TATTO_7417
if 
  $shop_progress_tattoo == 6
goto_if_false @TATTO_7449
$flag_in_remove_tattoo_section = 1
gosub @TATTO_14372

:TATTO_7449
if 
  $shop_progress_tattoo == 7
goto_if_false @TATTO_7488
$flag_in_remove_tattoo_section = 1
gosub @TATTO_14704
$shop_progress_tattoo = 8

:TATTO_7488
if 
  $shop_progress_tattoo == 8
goto_if_false @TATTO_7520
$flag_in_remove_tattoo_section = 1
gosub @TATTO_14842

:TATTO_7520
if 
  $shop_progress_tattoo == 9
goto_if_false @TATTO_7584
$shop_progress_tattoo = 0
$flag_tattoo = 5
if 
  2 > $shop_progress_tattoo
goto_if_false @TATTO_7584
gosub @TATTO_12073
gosub @TATTO_10776

:TATTO_7584
goto @TATTO_7598

:TATTO_7591
gosub @TATTO_7873

:TATTO_7598
goto @TATTO_7612

:TATTO_7605
gosub @TATTO_7873

:TATTO_7612
goto @TATTO_515

:TATTO_7619
if 
  $flag_tattoo >= 1
goto_if_false @TATTO_7639
clear_help 

:TATTO_7639
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_7693
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_7693
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_7725
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_7725
if 
  $remove_tats_menu_drawn == 1
goto_if_false @TATTO_7757
delete_menu $remove_menu_tattoo
clear_help 
$remove_tats_menu_drawn = 0

:TATTO_7757
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_7787
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:TATTO_7787
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$stored_item_picked_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$remove_menu_item_selected = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_tattoo = 2
$shop_progress_tattoo = 0
return 

:TATTO_7873
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
$blob_flag_shop = 1
$shopkeeper_attacked_tattoo = 0
$flag_tattoo = 0
$shop_progress_tattoo = 0
if 
  $main_menu_drawn_shops == 1
goto_if_false @TATTO_7955
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:TATTO_7955
if 
  $sub_menu_drawn_shops == 1
goto_if_false @TATTO_7987
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:TATTO_7987
if 
  $remove_tats_menu_drawn == 1
goto_if_false @TATTO_8019
delete_menu $remove_menu_tattoo
clear_help 
$remove_tats_menu_drawn = 0

:TATTO_8019
if 
  $bought_menu_drawn_shops == 1
goto_if_false @TATTO_8049
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:TATTO_8049
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$stored_item_picked_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$remove_menu_item_selected = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
if 
  not is_char_dead $shop_keep_tattoo
goto_if_false @TATTO_8140
detach_char_from_car $shop_keep_tattoo

:TATTO_8140
delete_object $tattoo_needle
mark_model_as_no_longer_needed #TATTOO_KIT
delete_char $shop_keep_tattoo
mark_model_as_no_longer_needed $shopkeeper_model_shops
remove_texture_dictionary 
use_text_commands False
display_radar True
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
terminate_this_script 
return 

:TATTO_8186
if 
  $shop_main_item_picked_shops == 0
goto_if_false @TATTO_8211
set_var_int_to_constant $area_to_look_at_shops = 4

:TATTO_8211
if 
  $shop_main_item_picked_shops == 1
goto_if_false @TATTO_8236
set_var_int_to_constant $area_to_look_at_shops = 5

:TATTO_8236
if 
  $shop_main_item_picked_shops == 2
goto_if_false @TATTO_8261
set_var_int_to_constant $area_to_look_at_shops = 6

:TATTO_8261
if 
  $shop_main_item_picked_shops == 3
goto_if_false @TATTO_8286
set_var_int_to_constant $area_to_look_at_shops = 7

:TATTO_8286
if 
  $shop_main_item_picked_shops == 4
goto_if_false @TATTO_8311
set_var_int_to_constant $area_to_look_at_shops = 8

:TATTO_8311
if 
  $shop_main_item_picked_shops == 5
goto_if_false @TATTO_8336
set_var_int_to_constant $area_to_look_at_shops = 9

:TATTO_8336
if 
  $shop_main_item_picked_shops == 6
goto_if_false @TATTO_8361
set_var_int_to_constant $area_to_look_at_shops = 10

:TATTO_8361
if 
  $shop_main_item_picked_shops == 7
goto_if_false @TATTO_8386
set_var_int_to_constant $area_to_look_at_shops = 11

:TATTO_8386
if 
  $shop_main_item_picked_shops == 8
goto_if_false @TATTO_8411
set_var_int_to_constant $area_to_look_at_shops = 12

:TATTO_8411
return 

:TATTO_8413
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 4
goto_if_false @TATTO_8648
$area_looked_for_shops = 4
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_ARML_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_ARML_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_ARML_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_ARML_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_ARML_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_ARML_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_ARML_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_ARML_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_ARML_OUT_O"

:TATTO_8648
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 5
goto_if_false @TATTO_8883
$area_looked_for_shops = 5
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_ARML_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_ARML_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_ARML_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_ARML_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_ARML_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_ARML_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_ARML_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_ARML_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_ARML_OUT_O"

:TATTO_8883
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 6
goto_if_false @TATTO_9118
$area_looked_for_shops = 6
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_ARMR_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_ARMR_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_ARMR_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_ARMR_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_ARMR_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_ARMR_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_ARMR_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_ARMR_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_ARMR_OUT_O"

:TATTO_9118
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 7
goto_if_false @TATTO_9353
$area_looked_for_shops = 7
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_ARMR_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_ARMR_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_ARMR_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_ARMR_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_ARMR_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_ARMR_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_ARMR_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_ARMR_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_ARMR_OUT_O"

:TATTO_9353
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
goto_if_false @TATTO_9588
$area_looked_for_shops = 8
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_BACK_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_BACK_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_BACK_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_BACK_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_BACK_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_BACK_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_BACK_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_BACK_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_BACK_OUT_O"

:TATTO_9588
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 9
goto_if_false @TATTO_9814
$area_looked_for_shops = 9
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_CHE_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_CHE_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_CHE_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_CHE_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_CHE_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_CHE_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_CHE_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_CHE_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_CHE_OUT_O"

:TATTO_9814
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 10
goto_if_false @TATTO_10040
$area_looked_for_shops = 10
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_CHE_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_CHE_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_CHE_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_CHE_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_CHE_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_CHE_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_CHE_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_CHE_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_CHE_OUT_O"

:TATTO_10040
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 11
goto_if_false @TATTO_10266
$area_looked_for_shops = 11
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_CHE_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_BEL_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_BEL_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_CHE_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_BEL_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_BEL_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_CHE_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_BEL_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_BEL_OUT_O"

:TATTO_10266
if 
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_10501
$area_looked_for_shops = 12
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @TATTO_10503
set_var_text_label16 v$name_of_player_in_anim_tattoo = "TAT_BACK_IN_P"
set_var_text_label16 v$name_of_shop_in_anim_tattoo = "TAT_BACK_IN_T"
set_var_text_label16 v$name_of_object_in_anim_tattoo = "TAT_BACK_IN_O"
set_var_text_label16 v$name_of_player_pose_anim_tattoo = "TAT_BACK_POSE_P"
set_var_text_label16 v$name_of_shop_pose_anim_tattoo = "TAT_BACK_POSE_T"
set_var_text_label16 v$name_of_object_pose_anim_tattoo = "TAT_BACK_POSE_O"
set_var_text_label16 v$name_of_player_out_anim_tattoo = "TAT_BACK_OUT_P"
set_var_text_label16 v$name_of_shop_out_anim_tattoo = "TAT_BACK_OUT_T"
set_var_text_label16 v$name_of_object_out_anim_tattoo = "TAT_BACK_OUT_O"

:TATTO_10501
return 

:TATTO_10503
$item_no_shops = 0
$number_of_tattoos_in_area = 0

:TATTO_10517
if 
  is_int_var_greater_than_int_var $number_of_tats_in_shop > $item_no_shops
goto_if_false @TATTO_10694
$model_index = get_item_in_shop $item_no_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
if 
  is_int_var_equal_to_int_var $modelid_shops == $area_looked_for_shops
goto_if_false @TATTO_10680
set_var_int_to_var_int $item_model_index($number_of_tattoos_in_area,12i) = $model_index
s$tattoo_name = get_name_of_item $model_index
$tattoo_price = get_price_of_item $model_index
set_var_int_to_var_int $item_price($number_of_tattoos_in_area,12i) = $tattoo_price
set_var_text_label $item_text_label($number_of_tattoos_in_area,12s) = s$tattoo_name
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @TATTO_10662
$item_hilight_shops($number_of_tattoos_in_area,12i) = 0
goto @TATTO_10673

:TATTO_10662
$item_hilight_shops($number_of_tattoos_in_area,12i) = 1

:TATTO_10673
$number_of_tattoos_in_area += 1

:TATTO_10680
$item_no_shops += 1
goto @TATTO_10517

:TATTO_10694
set_var_int_to_var_int $temp_var_shops = $number_of_tattoos_in_area

:TATTO_10702
if 
  12 > $temp_var_shops
goto_if_false @TATTO_10774
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @TATTO_10702

:TATTO_10774
return 

:TATTO_10776
if 
  $main_menu_drawn_shops == 0
goto_if_false @TATTO_11383
print_help_forever 'TATTA'
set_var_text_label s$ITEM1 = 'LARMTP'
set_var_text_label s$ITEM2 = 'LARMLW'
set_var_text_label s$ITEM3 = 'RARMTP'
set_var_text_label s$ITEM4 = 'RARMLW'
set_var_text_label s$ITEM5 = 'BACK'
set_var_text_label s$ITEM6 = 'LCHEST'
set_var_text_label s$ITEM7 = 'RCHEST'
set_var_text_label s$ITEM8 = 'BELLY'
set_var_text_label s$ITEM9 = 'LBACK'
if 
  $number_of_tats_player_has > 0
goto_if_false @TATTO_10970
set_var_text_label s$ITEM10 = 'TATREM'
goto @TATTO_10984

:TATTO_10970
set_var_text_label s$ITEM10 = 'DUMMY'

:TATTO_10984
set_var_text_label s$ITEM11 = 'DUMMY'
set_var_text_label s$ITEM12 = 'DUMMY'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_11074
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11315

:TATTO_11074
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_11136
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11315

:TATTO_11136
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_11198
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11315

:TATTO_11198
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_11260
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11315

:TATTO_11260
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_11315
$main_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:TATTO_11315
set_menu_column_orientation $main_menu_shops {column} 1 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$ITEM1 {row1} s$ITEM2 {row2} s$ITEM3 {row3} s$ITEM4 {row4} s$ITEM5 {row5} s$ITEM6 {row6} s$ITEM7 {row7} s$ITEM8 {row8} s$ITEM9 {row9} s$ITEM10 {row10} s$ITEM11 {row11} s$ITEM12
$main_menu_drawn_shops = 1

:TATTO_11383
return 

:TATTO_11385
if 
  $sub_menu_drawn_shops == 0
goto_if_false @TATTO_12058
print_help_forever 'TATTB'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_11476
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11717

:TATTO_11476
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_11538
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11717

:TATTO_11538
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_11600
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11717

:TATTO_11600
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_11662
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_11717

:TATTO_11662
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_11717
$sub_menu_shops = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:TATTO_11717
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'TATTO' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
set_menu_column_orientation $sub_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $sub_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
$price_counter = 0

:TATTO_11918
if 
  is_int_var_greater_than_int_var $number_of_tattoos_in_area > $price_counter
goto_if_false @TATTO_11977
set_menu_item_with_number $sub_menu_shops {column} 1 {row} $price_counter {gxt} 'DOLLAR' {number} $item_price($price_counter,12i)
$price_counter += 1
goto @TATTO_11918

:TATTO_11977
$temp_var_shops = 0

:TATTO_11984
if 
  is_int_var_greater_than_int_var $number_of_tattoos_in_area > $temp_var_shops
goto_if_false @TATTO_12032
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @TATTO_11984

:TATTO_12032
set_menu_column_width $sub_menu_shops {column} 0 {width} 140
set_menu_column_width $sub_menu_shops {column} 1 {width} 46
$sub_menu_drawn_shops = 1

:TATTO_12058
return 

:TATTO_12060
load_sprite 1 {spriteName} $item_text_label($menu_two_item_hilighted,12s)
return 

:TATTO_12073
$temp_var_shops = 0
$number_of_tats_player_has = 0

:TATTO_12087
if 
  9 > $temp_var_shops
goto_if_false @TATTO_12173
set_var_int_to_constant $temp_var_shops2 = 4
add_int_var_to_int_var $temp_var_shops2 += $temp_var_shops
$tex_tattoo2, $model_tattoo2 = get_clothes_item $player1 {bodyPart} $temp_var_shops2
if 
  $tex_tattoo2 <> 0
goto_if_false @TATTO_12159
$number_of_tats_player_has += 1

:TATTO_12159
$temp_var_shops += 1
goto @TATTO_12087

:TATTO_12173
return 

:TATTO_12175
if 
  $remove_tats_menu_drawn == 0
goto_if_false @TATTO_13312
$menu_item_no_tats = 0
$temp_var_shops = 0

:TATTO_12207
if 
  9 > $temp_var_shops
goto_if_false @TATTO_12658
set_var_int_to_constant $temp_var_shops2 = 4
add_int_var_to_int_var $temp_var_shops2 += $temp_var_shops
$tex_tattoo2, $model_tattoo2 = get_clothes_item $player1 {bodyPart} $temp_var_shops2
if 
  $tex_tattoo2 <> 0
goto_if_false @TATTO_12644
set_var_int_to_var_int $player_has_tattoo_in_area($menu_item_no_tats,9i) = $temp_var_shops2
switch_start $temp_var_shops2 {numCases} 9 {hasDefaultCase} 0 {defaultLabel} @TATTO_12637 {caseNum1} 4 {caseLabel1} @TATTO_12412 {caseNum2} 5 {caseLabel2} @TATTO_12437 {caseNum3} 6 {caseLabel3} @TATTO_12462 {caseNum4} 7 {caseLabel4} @TATTO_12487 {caseNum5} 8 {caseLabel5} @TATTO_12512 {caseNum6} 9 {caseLabel6} @TATTO_12537 {caseNum7} 10 {caseLabel7} @TATTO_12562
switch_continued 11 {caseLabel1} @TATTO_12587 {caseNum2} 12 {caseLabel2} @TATTO_12612 {caseNum3} -1 {caseLabel3} @TATTO_12637 {caseNum4} -1 {caseLabel4} @TATTO_12637 {caseNum5} -1 {caseLabel5} @TATTO_12637 {caseNum6} -1 {caseLabel6} @TATTO_12637 {caseNum7} -1 {caseLabel7} @TATTO_12637 {caseNum8} -1 {caseLabel8} @TATTO_12637 {caseNum9} -1 {caseLabel9} @TATTO_12637

:TATTO_12412
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'LARMTP'
goto @TATTO_12637

:TATTO_12437
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'LARMLW'
goto @TATTO_12637

:TATTO_12462
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'RARMTP'
goto @TATTO_12637

:TATTO_12487
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'RARMLW'
goto @TATTO_12637

:TATTO_12512
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'BACK'
goto @TATTO_12637

:TATTO_12537
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'LCHEST'
goto @TATTO_12637

:TATTO_12562
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'RCHEST'
goto @TATTO_12637

:TATTO_12587
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'BELLY'
goto @TATTO_12637

:TATTO_12612
set_var_text_label $item_text_label($menu_item_no_tats,12s) = 'LBACK'
goto @TATTO_12637

:TATTO_12637
$menu_item_no_tats += 1

:TATTO_12644
$temp_var_shops += 1
goto @TATTO_12207

:TATTO_12658
set_var_int_to_var_int $temp_var_shops = $menu_item_no_tats

:TATTO_12666
if 
  12 > $temp_var_shops
goto_if_false @TATTO_12716
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @TATTO_12666

:TATTO_12716
print_help_forever 'TATTA'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @TATTO_12789
$remove_menu_tattoo = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13030

:TATTO_12789
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @TATTO_12851
$remove_menu_tattoo = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13030

:TATTO_12851
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @TATTO_12913
$remove_menu_tattoo = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13030

:TATTO_12913
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @TATTO_12975
$remove_menu_tattoo = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @TATTO_13030

:TATTO_12975
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @TATTO_13030
$remove_menu_tattoo = create_menu 'TATTO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:TATTO_13030
set_menu_column_orientation $remove_menu_tattoo {column} 0 {alignment} Align.Left
set_menu_column $remove_menu_tattoo {column} 0 {title} 'TATTO' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
set_menu_column_orientation $remove_menu_tattoo {column} 1 {alignment} Align.Right
set_menu_column $remove_menu_tattoo {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
$price_counter = 0

:TATTO_13231
if 
  is_int_var_greater_than_int_var $menu_item_no_tats > $price_counter
goto_if_false @TATTO_13286
set_menu_item_with_number $sub_menu_shops {column} 1 {row} $price_counter {gxt} 'DOLLAR' {number} 400
$price_counter += 1
goto @TATTO_13231

:TATTO_13286
set_menu_column_width $remove_menu_tattoo {column} 0 {width} 140
set_menu_column_width $remove_menu_tattoo {column} 1 {width} 46
$remove_tats_menu_drawn = 1

:TATTO_13312
return 

:TATTO_13314
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_13588
if 
  not is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_LOOP_P"
goto_if_false @TATTO_13542
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_IN_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_tattoo = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_IN_P"
goto_if_false @TATTO_13496
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_IN_P"

:TATTO_13496
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_13528
$shop_progress_tattoo = 4
goto @TATTO_13535

:TATTO_13528
$shop_progress_tattoo = 2

:TATTO_13535
goto @TATTO_13581

:TATTO_13542
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_13574
$shop_progress_tattoo = 5
goto @TATTO_13581

:TATTO_13574
$shop_progress_tattoo = 3

:TATTO_13581
goto @TATTO_13833

:TATTO_13588
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_LOOP_P"
goto_if_false @TATTO_13794
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_OUT_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_tattoo = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_OUT_P"
goto_if_false @TATTO_13748
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_OUT_P"

:TATTO_13748
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_13780
$shop_progress_tattoo = 4
goto @TATTO_13787

:TATTO_13780
$shop_progress_tattoo = 2

:TATTO_13787
goto @TATTO_13833

:TATTO_13794
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_13826
$shop_progress_tattoo = 5
goto @TATTO_13833

:TATTO_13826
$shop_progress_tattoo = 3

:TATTO_13833
return 

:TATTO_13835
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 8
  is_int_var_equal_to_constant $area_to_look_at_shops == 12
goto_if_false @TATTO_14049
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_IN_P"
goto_if_false @TATTO_13922
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_IN_P"

:TATTO_13922
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_14042
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_14035
$shop_progress_tattoo = 5
goto @TATTO_14042

:TATTO_14035
$shop_progress_tattoo = 3

:TATTO_14042
goto @TATTO_14228

:TATTO_14049
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_SIT_OUT_P"
goto_if_false @TATTO_14113
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} "TAT_BACK_SIT_OUT_P"

:TATTO_14113
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_14228
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_14221
$shop_progress_tattoo = 5
goto @TATTO_14228

:TATTO_14221
$shop_progress_tattoo = 3

:TATTO_14228
return 

:TATTO_14230
task_play_anim_non_interruptable $scplayer {animationName} v$name_of_player_in_anim_tattoo {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot4
$return_animation_time_tattoo = 0.0
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} v$name_of_shop_in_anim_tattoo {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_14370
play_object_anim $tattoo_needle {animationName} v$name_of_object_in_anim_tattoo {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$object_animation_time_tattoo = 0.0

:TATTO_14370
return 

:TATTO_14372
if 
  is_char_playing_anim $scplayer {animationName} v$name_of_player_in_anim_tattoo
goto_if_false @TATTO_14402
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} v$name_of_player_in_anim_tattoo

:TATTO_14402
if 
  is_char_playing_anim $shop_keep_tattoo {animationName} v$name_of_shop_in_anim_tattoo
goto_if_false @TATTO_14432
$return_animation_time_tattoo = get_char_anim_current_time $shop_keep_tattoo {animationName} v$name_of_shop_in_anim_tattoo

:TATTO_14432
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_14478
if 
  is_object_playing_anim $tattoo_needle {animationName} v$name_of_object_in_anim_tattoo
goto_if_false @TATTO_14478
$object_animation_time_tattoo = get_object_anim_current_time $tattoo_needle {animationName} v$name_of_object_in_anim_tattoo

:TATTO_14478
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_14702
task_play_anim_non_interruptable $scplayer {animationName} v$name_of_player_pose_anim_tattoo {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} v$name_of_shop_pose_anim_tattoo {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_14635
play_object_anim $tattoo_needle {animationName} v$name_of_object_pose_anim_tattoo {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_14635
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_14688
$shop_progress_tattoo = 7
goto @TATTO_14702

:TATTO_14688
gosub @TATTO_10503
$shop_progress_tattoo = 4

:TATTO_14702
return 

:TATTO_14704
task_play_anim_non_interruptable $scplayer {animationName} v$name_of_player_out_anim_tattoo {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_tattoo = 0.0
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} v$name_of_shop_out_anim_tattoo {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_14840
play_object_anim $tattoo_needle {animationName} v$name_of_object_out_anim_tattoo {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} False {loop} True
$object_animation_time_tattoo = 0.0

:TATTO_14840
return 

:TATTO_14842
if 
  is_char_playing_anim $scplayer {animationName} v$name_of_player_out_anim_tattoo
goto_if_false @TATTO_14872
$return_animation_time_tattoo = get_char_anim_current_time $scplayer {animationName} v$name_of_player_out_anim_tattoo

:TATTO_14872
if 
  is_char_playing_anim $shop_keep_tattoo {animationName} v$name_of_shop_out_anim_tattoo
goto_if_false @TATTO_14902
$shop_keep_animation_time_tattoo = get_char_anim_current_time $shop_keep_tattoo {animationName} v$name_of_shop_out_anim_tattoo

:TATTO_14902
if 
  is_char_playing_anim $scplayer {animationName} "TAT_BACK_OUT_P"
goto_if_false @TATTO_15202
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_15054
task_play_anim_non_interruptable $scplayer {animationName} "TAT_BACK_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_15047
$shop_progress_tattoo = 9
goto @TATTO_15054

:TATTO_15047
$shop_progress_tattoo = 6

:TATTO_15054
if 
  $shop_keep_animation_time_tattoo == 1.0
goto_if_false @TATTO_15195
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_SIT_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_15195
play_object_anim $tattoo_needle {animationName} "TAT_SIT_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_15195
goto @TATTO_15458

:TATTO_15202
if 
  $return_animation_time_tattoo == 1.0
goto_if_false @TATTO_15317
task_play_anim_non_interruptable $scplayer {animationName} "TAT_SIT_LOOP_P" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_tattoo = 0.0
if 
  $flag_in_remove_tattoo_section == 1
goto_if_false @TATTO_15310
$shop_progress_tattoo = 9
goto @TATTO_15317

:TATTO_15310
$shop_progress_tattoo = 6

:TATTO_15317
if 
  $shop_keep_animation_time_tattoo == 1.0
goto_if_false @TATTO_15458
task_play_anim_non_interruptable $shop_keep_tattoo {animationName} "TAT_SIT_LOOP_T" {animationFile} "TATTOOS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$shop_keep_animation_time_tattoo = 0.0
if 
  does_object_exist $tattoo_needle
goto_if_false @TATTO_15458
play_object_anim $tattoo_needle {animationName} "TAT_SIT_LOOP_O" {animationFile} "TATTOOS" {frameDelta} 1000.0 {lockF} True {loop} False
$object_animation_time_tattoo = 0.0

:TATTO_15458
return 

:TATTO_15460
set_sprites_draw_before_fade True
draw_rect 280.0 {y} 58.0 {width} 70.0 {height} 70.0 {r} 0 {g} 0 {b} 0 {a} 255
set_sprites_draw_before_fade True
draw_sprite 1 {offsetLeft} 280.0 {offsetTop} 58.0 {width} 64.0 {height} 64.0 {r} 255 {g} 255 {b} 255 {a} 200
return 
terminate_this_script 

//-------------External script 62 (BARBER)---------------

:BARB
$getin_chaircam_offX = 0.0
$getin_chaircam_offY = 0.0
$getin_chaircam_offZ = 0.0
$getin_chaircam_lookat_offX = 0.0
$getin_chaircam_lookat_offY = 0.0
$getin_chaircam_lookat_offZ = 0.0
$chaircam_offX = 0.0
$chaircam_offY = 0.0
$chaircam_offZ = 0.0
$chaircam_lookat_offX = 0.0
$chaircam_lookat_offY = 0.0
$chaircam_lookat_offZ = 0.0
$hairstyle_cam_offX = 0.0
$hairstyle_cam_offY = 0.0
$hairstyle_cam_offZ = 0.0
$hairstyle_cam_lookat_offX = 0.0
$hairstyle_cam_lookat_offY = 0.0
$hairstyle_cam_lookat_offZ = 0.0
$getout_chair_cam_offX = 0.0
$getout_chair_cam_offY = 0.0
$getout_chair_cam_offZ = 0.0
$getout_chair_cam_lookat_offX = 0.0
$getout_chair_cam_lookat_offY = 0.0
$getout_chair_cam_lookat_offZ = 0.0
$leave_barb_cam_offX = 0.0
$leave_barb_cam_offY = 0.0
$leave_barb_cam_offZ = 0.0
$leave_barb_cam_lookat_offX = 0.0
$leave_barb_cam_lookat_offY = 0.0
$leave_barb_cam_lookat_offZ = 0.0
$player_heading_barbers = 0.0
$player_task_progress_barber = 0
$walk_offX_barbers = 0.0
$walk_offY_barbers = 0.0
$walk_offZ_barbers = 0.0
$walk2_offX_barbers = 0.0
$walk2_offY_barbers = 0.0
$walk2_offZ_barbers = 0.0
$flag_viewed_hair = 0
$haircut_picked_barbers = 0
$return_animation_time_barbers = 0.0
$random_number_barbers = 0
$flag_barber = 0
$barberX = 0.0
$barberY = 0.0
$barberZ = 0.0
$barber_heading = 0.0
$unk9747 = 0
$shop_item_price = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$control_flag_barbers = 0
$item_no_hairstyles = 0
$number_of_hairstyles_in_area = 0
$barber_look_shops = 0
$flag_restored_camera_barbers = 0
$cut_hair_flag_barber = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_558
set_var_int_to_constant $shopkeeper_model_shops = 156

:BARB_558
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_591
set_var_int_to_constant $shopkeeper_model_shops = 177

:BARB_591
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_624
set_var_int_to_constant $shopkeeper_model_shops = 176

:BARB_624
request_model $shopkeeper_model_shops
load_mission_audio MissionAudioSlot.Slot4 {audioId} 4400
load_all_models_now 
set_deatharrest_state 0
script_name 'BARB'

:BARB_653
wait 0
if 
  is_player_playing $player1
goto_if_false @BARB_7278
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @BARB_7264
if 
  $flag_barber > 0
goto_if_false @BARB_751
if 
  has_language_changed 
goto_if_false @BARB_751
clear_help 
delete_menu $cost_menu_shops
delete_menu $main_menu_shops
$cost_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$current_Language = get_current_language 

:BARB_751
if 
  $flag_barber == 0
goto_if_false @BARB_1015
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_851
$barber_shop_offsetX = 0.0
$barber_shop_offsetY = 0.0
$barber_shop_offsetZ = 0.0
set_var_text_label s$stored_barbers_shop = s$shop_name
$num_of_hairstyles = get_number_of_items_in_shop 
$control_flag_barbers = 0
$flag_barber = 1

:BARB_851
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_933
$barber_shop_offsetX = 6.987
$barber_shop_offsetY = -61.401
$barber_shop_offsetZ = 0.0
set_var_text_label s$stored_barbers_shop = s$shop_name
$num_of_hairstyles = get_number_of_items_in_shop 
$control_flag_barbers = 0
$flag_barber = 1

:BARB_933
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_1015
$barber_shop_offsetX = 0.371
$barber_shop_offsetY = -31.421
$barber_shop_offsetZ = 0.0
set_var_text_label s$stored_barbers_shop = s$shop_name
$num_of_hairstyles = get_number_of_items_in_shop 
$control_flag_barbers = 0
$flag_barber = 1

:BARB_1015
if 
  $flag_barber == 1
goto_if_false @BARB_2030
use_text_commands True
show_update_stats False
store_clothes_state 
$keep_offX = 414.3
add_float_var_to_float_var $keep_offX += $barber_shop_offsetX
$keep_offY = -19.9
add_float_var_to_float_var $keep_offY += $barber_shop_offsetY
$keep_offZ = 1000.806
add_float_var_to_float_var $keep_offZ += $barber_shop_offsetZ
$player_heading_barbers = 90.0
$barberX = 414.3
$barberX -= 0.027
add_float_var_to_float_var $barberX += $barber_shop_offsetX
$barberY = -19.9
$barberY += 1.898
add_float_var_to_float_var $barberY += $barber_shop_offsetY
$barberZ = 1000.86
$barber_heading = 180.0
$getin_chaircam_offX = 412.0009
add_float_var_to_float_var $getin_chaircam_offX += $barber_shop_offsetX
$getin_chaircam_offY = -19.8018
add_float_var_to_float_var $getin_chaircam_offY += $barber_shop_offsetY
$getin_chaircam_offZ = 1001.765
add_float_var_to_float_var $getin_chaircam_offZ += $barber_shop_offsetZ
$getin_chaircam_lookat_offX = 412.8502
add_float_var_to_float_var $getin_chaircam_lookat_offX += $barber_shop_offsetX
$getin_chaircam_lookat_offY = -19.2749
add_float_var_to_float_var $getin_chaircam_lookat_offY += $barber_shop_offsetY
$getin_chaircam_lookat_offZ = 1001.797
add_float_var_to_float_var $getin_chaircam_lookat_offZ += $barber_shop_offsetZ
$chaircam_offX = 414.9329
add_float_var_to_float_var $chaircam_offX += $barber_shop_offsetX
$chaircam_offY = -18.4475
add_float_var_to_float_var $chaircam_offY += $barber_shop_offsetY
$chaircam_offZ = 1002.286
add_float_var_to_float_var $chaircam_offZ += $barber_shop_offsetZ
$chaircam_lookat_offX = 414.0564
add_float_var_to_float_var $chaircam_lookat_offX += $barber_shop_offsetX
$chaircam_lookat_offY = -18.7965
add_float_var_to_float_var $chaircam_lookat_offY += $barber_shop_offsetY
$chaircam_lookat_offZ = 1001.955
add_float_var_to_float_var $chaircam_lookat_offZ += $barber_shop_offsetZ
$hairstyle_cam_offX = 412.649
add_float_var_to_float_var $hairstyle_cam_offX += $barber_shop_offsetX
$hairstyle_cam_offY = -19.7078
add_float_var_to_float_var $hairstyle_cam_offY += $barber_shop_offsetY
$hairstyle_cam_offZ = 1001.992
add_float_var_to_float_var $hairstyle_cam_offZ += $barber_shop_offsetZ
$hairstyle_cam_lookat_offX = 413.3581
add_float_var_to_float_var $hairstyle_cam_lookat_offX += $barber_shop_offsetX
$hairstyle_cam_lookat_offY = -19.0046
add_float_var_to_float_var $hairstyle_cam_lookat_offY += $barber_shop_offsetY
$hairstyle_cam_lookat_offZ = 1002.043
add_float_var_to_float_var $hairstyle_cam_lookat_offZ += $barber_shop_offsetZ
$getout_chair_cam_offX = 414.5509
add_float_var_to_float_var $getout_chair_cam_offX += $barber_shop_offsetX
$getout_chair_cam_offY = -20.8773
add_float_var_to_float_var $getout_chair_cam_offY += $barber_shop_offsetY
$getout_chair_cam_offZ = 1001.405
add_float_var_to_float_var $getout_chair_cam_offZ += $barber_shop_offsetZ
$getout_chair_cam_lookat_offX = 414.0572
add_float_var_to_float_var $getout_chair_cam_lookat_offX += $barber_shop_offsetX
$getout_chair_cam_lookat_offY = -20.025
add_float_var_to_float_var $getout_chair_cam_lookat_offY += $barber_shop_offsetY
$getout_chair_cam_lookat_offZ = 1001.578
add_float_var_to_float_var $getout_chair_cam_lookat_offZ += $barber_shop_offsetZ
$leave_barb_cam_offX = 412.5159
add_float_var_to_float_var $leave_barb_cam_offX += $barber_shop_offsetX
$leave_barb_cam_offY = -21.7447
add_float_var_to_float_var $leave_barb_cam_offY += $barber_shop_offsetY
$leave_barb_cam_offZ = 1001.946
add_float_var_to_float_var $leave_barb_cam_offZ += $barber_shop_offsetZ
$leave_barb_cam_lookat_offX = 412.9438
add_float_var_to_float_var $leave_barb_cam_lookat_offX += $barber_shop_offsetX
$leave_barb_cam_lookat_offY = -20.8411
add_float_var_to_float_var $leave_barb_cam_lookat_offY += $barber_shop_offsetY
$leave_barb_cam_lookat_offZ = 1001.963
add_float_var_to_float_var $leave_barb_cam_lookat_offZ += $barber_shop_offsetZ
$walk_offX_barbers = 411.957
add_float_var_to_float_var $walk_offX_barbers += $barber_shop_offsetX
$walk_offY_barbers = -19.779
add_float_var_to_float_var $walk_offY_barbers += $barber_shop_offsetY
$walk_offZ_barbers = 1000.836
add_float_var_to_float_var $walk_offZ_barbers += $barber_shop_offsetZ
$walk2_offX_barbers = 411.795
add_float_var_to_float_var $walk2_offX_barbers += $barber_shop_offsetX
$walk2_offY_barbers = -23.3
add_float_var_to_float_var $walk2_offY_barbers += $barber_shop_offsetY
$walk2_offZ_barbers = 1000.836
add_float_var_to_float_var $walk2_offZ_barbers += $barber_shop_offsetZ
$shop_keep_barbers = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $barberX {y} $barberY {z} $barberZ
set_char_heading $shop_keep_barbers {heading} $barber_heading
set_char_decision_maker $shop_keep_barbers {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_char_only_damaged_by_player $shop_keep_barbers {state} True
$barber_movein_barbers = open_sequence_task 
task_play_anim_non_interruptable -1 {animationName} "BRB_IN" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
task_play_anim_non_interruptable -1 {animationName} "BRB_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
close_sequence_task $barber_movein_barbers
$player_walk_barbers = open_sequence_task 
task_go_straight_to_coord -1 {x} $walk_offX_barbers {y} $walk_offY_barbers {z} $walk_offZ_barbers {speed} MoveState.Walk {time} 8000
task_go_straight_to_coord -1 {x} $walk2_offX_barbers {y} $walk2_offY_barbers {z} $walk2_offZ_barbers {speed} MoveState.Walk {time} 8000
task_achieve_heading -1 {heading} 180.0
close_sequence_task $player_walk_barbers
$control_flag_barbers = 0
$flag_barber = 2

:BARB_2030
if 
  $flag_barber == 2
goto_if_false @BARB_2439
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_barbers_shop
goto_if_false @BARB_2079
gosub @BARB_7498

:BARB_2079
if 
  not is_char_dead $shop_keep_barbers
goto_if_false @BARB_2394
if 
  $flag_attacked_barber == 0
goto_if_false @BARB_2342
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_barbers
  has_char_been_damaged_by_weapon $shop_keep_barbers {weaponType} WeaponType.AnyWeapon
goto_if_false @BARB_2181
clear_look_at $shop_keep_barbers
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.ShopClosed
task_hands_up $shop_keep_barbers {time} -2
$flag_attacked_barber = 1
goto @BARB_2335

:BARB_2181
if 
  $barber_look_shops == 0
goto_if_false @BARB_2250
$visible_area_shops = get_area_visible 
if 
  $visible_area_shops <> 0
goto_if_false @BARB_2250
task_look_at_char $shop_keep_barbers {target} $scplayer {time} -2
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.TakeASeat
$barber_look_shops = 1

:BARB_2250
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @BARB_2335
if 
  can_player_start_mission $player1
goto_if_false @BARB_2335
clear_look_at $shop_keep_barbers
$control_flag_barbers = 0
$flag_barber = 3

:BARB_2335
goto @BARB_2387

:BARB_2342
gosub @BARB_7292
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_barbers_shop
goto_if_false @BARB_2380
gosub @BARB_7498

:BARB_2380
goto @BARB_653

:BARB_2387
goto @BARB_2439

:BARB_2394
gosub @BARB_7292
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_barbers_shop
goto_if_false @BARB_2432
gosub @BARB_7498

:BARB_2432
goto @BARB_653

:BARB_2439
if 
  $flag_barber == 3
goto_if_false @BARB_2537
set_player_control $player1 {state} False
set_minigame_in_progress True
display_radar False
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
TIMERA = 0
$control_flag_barbers = 0
$flag_barber = 4

:BARB_2537
if 
  $flag_barber == 4
goto_if_false @BARB_2925
if 
  is_char_dead $shop_keep_barbers
goto_if_false @BARB_2616
gosub @BARB_7292
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_barbers_shop
goto_if_false @BARB_2609
gosub @BARB_7498

:BARB_2609
goto @BARB_653

:BARB_2616
if 
  TIMERA >= 300
goto_if_false @BARB_2925
$temp_shopX, $temp_shopY, $temp_shopZ = get_char_coordinates $shop_keep_barbers
if or
  not is_float_var_equal_to_float_var $temp_shopX == $barberX
  not is_float_var_equal_to_float_var $temp_shopY == $barberY
  not is_float_var_equal_to_float_var $temp_shopZ == $barberZ
goto_if_false @BARB_2706
set_char_coordinates $shop_keep_barbers {x} $barberX {y} $barberY {z} $barberZ
set_char_heading $shop_keep_barbers {heading} $barber_heading

:BARB_2706
set_char_coordinates_dont_warp_gang $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
set_char_heading $scplayer {heading} $player_heading_barbers
store_clothes_state 
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Head
set_fixed_camera_position $getin_chaircam_offX {y} $getin_chaircam_offY {z} $getin_chaircam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $getin_chaircam_lookat_offX {y} $getin_chaircam_lookat_offY {z} $getin_chaircam_lookat_offZ {switchStyle} SwitchType.JumpCut
$return_animation_time_barbers = 0.0
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_IN" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$players_money = store_score $player1
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @BARB_2903
if 
  $flag_player_on_menace_mission == 1
goto_if_false @BARB_2903
if 
  50 > $players_money
goto_if_false @BARB_2903
add_score $player1 {money} 52

:BARB_2903
perform_sequence_task $shop_keep_barbers {sequence} $barber_movein_barbers
$control_flag_barbers = 0
$flag_barber = 5

:BARB_2925
if 
  $flag_barber == 5
goto_if_false @BARB_3194
if 
  is_char_dead $shop_keep_barbers
goto_if_false @BARB_3004
gosub @BARB_7292
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_barbers_shop
goto_if_false @BARB_2997
gosub @BARB_7498

:BARB_2997
goto @BARB_653

:BARB_3004
if 
  is_char_playing_anim $scplayer {animationName} "BRB_SIT_IN"
goto_if_false @BARB_3052
$return_animation_time_barbers = get_char_anim_current_time $scplayer {animationName} "BRB_SIT_IN"

:BARB_3052
if 
  $return_animation_time_barbers == 1.0
goto_if_false @BARB_3194
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
set_fixed_camera_position $chaircam_offX {y} $chaircam_offY {z} $chaircam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $chaircam_lookat_offX {y} $chaircam_lookat_offY {z} $chaircam_lookat_offZ {switchStyle} SwitchType.JumpCut
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.WhatWant
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Head
$control_flag_barbers = 0
$flag_barber = 6

:BARB_3194
if 
  $flag_barber == 6
goto_if_false @BARB_5429
if 
  is_char_dead $shop_keep_barbers
goto_if_false @BARB_3273
gosub @BARB_7292
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_barbers_shop
goto_if_false @BARB_3266
gosub @BARB_7498

:BARB_3266
goto @BARB_653

:BARB_3273
if 
  1 > $control_flag_barbers
goto_if_false @BARB_3323
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_3323
gosub @BARB_8401
gosub @BARB_8689

:BARB_3323
if 
  $control_flag_barbers == 0
goto_if_false @BARB_3389
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_3365
$control_flag_barbers = 10

:BARB_3365
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_3389
$control_flag_barbers = 1

:BARB_3389
if 
  $control_flag_barbers == 1
goto_if_false @BARB_3559
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_3559
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_3456
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_3456
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_3488
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_3488
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_3520
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_3520
if 
  $flag_viewed_hair == 1
goto_if_false @BARB_3552
$control_flag_barbers = 2
goto @BARB_3559

:BARB_3552
$control_flag_barbers = 5

:BARB_3559
if 
  $control_flag_barbers == 2
goto_if_false @BARB_3640
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_CUT_IN" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
play_mission_audio MissionAudioSlot.Slot4
$return_animation_time_barbers = 0.0
$control_flag_barbers = 3

:BARB_3640
if 
  $control_flag_barbers == 3
goto_if_false @BARB_3900
if 
  is_char_playing_anim $shop_keep_barbers {animationName} "BRB_CUT_IN"
goto_if_false @BARB_3706
$return_animation_time_barbers = get_char_anim_current_time $shop_keep_barbers {animationName} "BRB_CUT_IN"

:BARB_3706
if 
  $return_animation_time_barbers == 1.0
goto_if_false @BARB_3800
if 
  $cut_hair_flag_barber == 0
goto_if_false @BARB_3800
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_CUT" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
restore_clothes_state 
build_player_model $player1
store_clothes_state 
$cut_hair_flag_barber = 1

:BARB_3800
if 
  $cut_hair_flag_barber == 1
goto_if_false @BARB_3900
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @BARB_3900
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_CUT_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_barbers = 0.0
$control_flag_barbers = 4
$cut_hair_flag_barber = 0

:BARB_3900
if 
  $control_flag_barbers == 4
goto_if_false @BARB_3996
if 
  is_char_playing_anim $shop_keep_barbers {animationName} "BRB_CUT_OUT"
goto_if_false @BARB_3968
$return_animation_time_barbers = get_char_anim_current_time $shop_keep_barbers {animationName} "BRB_CUT_OUT"

:BARB_3968
if 
  $return_animation_time_barbers == 1.0
goto_if_false @BARB_3996
$control_flag_barbers = 5

:BARB_3996
if 
  $control_flag_barbers == 5
goto_if_false @BARB_4162
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_barbers = 0.0
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_look_at_char $shop_keep_barbers {target} $scplayer {time} -2
set_fixed_camera_position $getout_chair_cam_offX {y} $getout_chair_cam_offY {z} $getout_chair_cam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $getout_chair_cam_lookat_offX {y} $getout_chair_cam_lookat_offY {z} $getout_chair_cam_lookat_offZ {switchStyle} SwitchType.JumpCut
$control_flag_barbers = 6

:BARB_4162
if 
  $control_flag_barbers == 6
goto_if_false @BARB_4323
if 
  is_char_playing_anim $scplayer {animationName} "BRB_SIT_OUT"
goto_if_false @BARB_4230
$return_animation_time_barbers = get_char_anim_current_time $scplayer {animationName} "BRB_SIT_OUT"

:BARB_4230
if 
  $return_animation_time_barbers >= 0.8
goto_if_false @BARB_4323
perform_sequence_task $scplayer {sequence} $player_walk_barbers
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.ThanksForCustom
set_fixed_camera_position $leave_barb_cam_offX {y} $leave_barb_cam_offY {z} $leave_barb_cam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $leave_barb_cam_lookat_offX {y} $leave_barb_cam_lookat_offY {z} $leave_barb_cam_lookat_offZ {switchStyle} SwitchType.JumpCut
TIMERA = 0
$control_flag_barbers = 7

:BARB_4323
if 
  $control_flag_barbers == 7
goto_if_false @BARB_4463
if 
  $flag_restored_camera_barbers == 0
goto_if_false @BARB_4389
if 
  TIMERA >= 1500
goto_if_false @BARB_4389
set_camera_behind_player 
restore_camera_jumpcut 
$flag_restored_camera_barbers = 1

:BARB_4389
if 
  $flag_barber > 2
goto_if_false @BARB_4409
clear_help 

:BARB_4409
$player_task_progress_barber = get_script_task_status $scplayer {taskId} 1560
if 
  not is_int_var_equal_to_constant $player_task_progress_barber == 7
goto_if_false @BARB_4456
$player_task_progress_barber = get_script_task_status $scplayer {taskId} 1560
goto @BARB_4463

:BARB_4456
$control_flag_barbers = 8

:BARB_4463
if 
  $control_flag_barbers == 8
goto_if_false @BARB_4529
clear_look_at $shop_keep_barbers
set_char_heading $scplayer {heading} 180.0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $player1 {state} True
set_minigame_in_progress False
display_radar True
$flag_restored_camera_barbers = 0
$control_flag_barbers = 9

:BARB_4529
if 
  $control_flag_barbers == 9
goto_if_false @BARB_4719
if 
  not locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @BARB_4645
$unk9728 = 0
$unk9747 = 0
$flag_viewed_hair = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_restored_camera_barbers = 0
$control_flag_barbers = 0
$flag_barber = 2

:BARB_4645
if 
  $flag_attacked_barber == 0
goto_if_false @BARB_4719
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_barbers
  has_char_been_damaged_by_weapon $shop_keep_barbers {weaponType} WeaponType.AnyWeapon
goto_if_false @BARB_4719
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.ShopClosed
task_hands_up $shop_keep_barbers {time} -2
$flag_attacked_barber = 1

:BARB_4719
if 
  $control_flag_barbers == 10
goto_if_false @BARB_5013
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_5013
$haircut_picked_barbers = get_menu_item_accepted $main_menu_shops
if 
  0 > $haircut_picked_barbers
goto_if_false @BARB_4787
$haircut_picked_barbers = 0

:BARB_4787
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_4819
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_4819
$model_index_barbers = get_item_in_shop $haircut_picked_barbers
s$hairstyle_name = get_name_of_item $model_index_barbers
$hair_price = get_price_of_item $model_index_barbers
$modelid_barber = get_shopping_extra_info $model_index_barbers {flag} 0
$component_barber = get_shopping_extra_info $model_index_barbers {flag} 1
set_var_int_to_var_int $shop_item_price = $hair_price
set_var_text_label s$shop_item_label = s$hairstyle_name
set_fixed_camera_position $chaircam_offX {y} $chaircam_offY {z} $chaircam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $chaircam_lookat_offX {y} $chaircam_lookat_offY {z} $chaircam_lookat_offZ {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_CUT_IN" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$player_item_texture_audio_shops, $player_item_model_audio_shops = get_clothes_item $player1 {bodyPart} BodyPart.Head
if 
  not is_int_var_equal_to_int_var $player_item_texture_audio_shops == $model_index_barbers
goto_if_false @BARB_4996
play_mission_audio MissionAudioSlot.Slot4

:BARB_4996
$return_animation_time_barbers = 0.0
$control_flag_barbers = 11

:BARB_5013
if 
  $control_flag_barbers == 11
goto_if_false @BARB_5183
if 
  is_char_playing_anim $shop_keep_barbers {animationName} "BRB_CUT_IN"
goto_if_false @BARB_5079
$return_animation_time_barbers = get_char_anim_current_time $shop_keep_barbers {animationName} "BRB_CUT_IN"

:BARB_5079
if 
  $return_animation_time_barbers == 1.0
goto_if_false @BARB_5183
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_CUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.Hat
give_player_clothes $player1 {textureHash} $model_index_barbers {modelHash} $modelid_barber {bodyPart} $component_barber
build_player_model $player1
$flag_viewed_hair = 1
$control_flag_barbers = 12

:BARB_5183
if 
  $control_flag_barbers == 12
goto_if_false @BARB_5276
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @BARB_5276
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_CUT_OUT" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_barbers = 0.0
$control_flag_barbers = 13

:BARB_5276
if 
  $control_flag_barbers == 13
goto_if_false @BARB_5429
if 
  is_char_playing_anim $shop_keep_barbers {animationName} "BRB_CUT_OUT"
goto_if_false @BARB_5344
$return_animation_time_barbers = get_char_anim_current_time $shop_keep_barbers {animationName} "BRB_CUT_OUT"

:BARB_5344
if 
  $return_animation_time_barbers == 1.0
goto_if_false @BARB_5429
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_barbers = 0.0
$control_flag_barbers = 0
$flag_barber = 7

:BARB_5429
if 
  $flag_barber == 7
goto_if_false @BARB_7257
if 
  is_char_dead $shop_keep_barbers
goto_if_false @BARB_5508
gosub @BARB_7292
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_barbers_shop
goto_if_false @BARB_5501
gosub @BARB_7498

:BARB_5501
goto @BARB_653

:BARB_5508
if 
  $cost_menu_drawn_shops == 0
goto_if_false @BARB_5551
if 
  1 > $control_flag_barbers
goto_if_false @BARB_5551
gosub @BARB_7760

:BARB_5551
if 
  $control_flag_barbers == 0
goto_if_false @BARB_5675
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_5629
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$control_flag_barbers = 2

:BARB_5629
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_5675
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
$control_flag_barbers = 1

:BARB_5675
if 
  $control_flag_barbers == 1
goto_if_false @BARB_5788
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @BARB_5788
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_5742
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:BARB_5742
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_5774
gosub @BARB_8401
gosub @BARB_8689

:BARB_5774
$control_flag_barbers = 0
$flag_barber = 6

:BARB_5788
if 
  $control_flag_barbers == 2
goto_if_false @BARB_6912
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @BARB_6912
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$players_money = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $players_money >= $hair_price
goto_if_false @BARB_6839
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index_barbers
goto_if_false @BARB_6759
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_5915
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_5915
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.GiveProduct
buy_item $model_index_barbers
$unk9747 = 1
$flag_viewed_hair = 0
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
store_clothes_state 
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Head
set_fixed_camera_position $hairstyle_cam_offX {y} $hairstyle_cam_offY {z} $hairstyle_cam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $hairstyle_cam_lookat_offX {y} $hairstyle_cam_lookat_offY {z} $hairstyle_cam_lookat_offZ {switchStyle} SwitchType.JumpCut
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBERS'
goto_if_false @BARB_6284
if or
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'TASH'
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'GOATEE'
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'BEARD'
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'AFROT'
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'AFROB'
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'AFROGOT'
goto_if_false @BARB_6159
set_var_text_label16 v$name_of_anim_barbers = "BRB_BEARD_01"
goto @BARB_6284

:BARB_6159
if 
  $random_number_barbers > 1
goto_if_false @BARB_6184
$random_number_barbers = 0

:BARB_6184
if 
  0 > $random_number_barbers
goto_if_false @BARB_6209
$random_number_barbers = 0

:BARB_6209
if 
  $random_number_barbers == 0
goto_if_false @BARB_6259
set_var_text_label16 v$name_of_anim_barbers = "BRB_HAIR_01"
$random_number_barbers += 1
goto @BARB_6284

:BARB_6259
set_var_text_label16 v$name_of_anim_barbers = "BRB_HAIR_02"
$random_number_barbers -= 1

:BARB_6284
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER2'
goto_if_false @BARB_6434
if 
  $random_number_barbers > 1
goto_if_false @BARB_6334
$random_number_barbers = 0

:BARB_6334
if 
  0 > $random_number_barbers
goto_if_false @BARB_6359
$random_number_barbers = 0

:BARB_6359
if 
  $random_number_barbers == 0
goto_if_false @BARB_6409
set_var_text_label16 v$name_of_anim_barbers = "BRB_HAIR_01"
$random_number_barbers += 1
goto @BARB_6434

:BARB_6409
set_var_text_label16 v$name_of_anim_barbers = "BRB_HAIR_02"
$random_number_barbers -= 1

:BARB_6434
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'BARBER3'
goto_if_false @BARB_6663
if or
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'BLADBEA'
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'BALDTSH'
  is_var_text_label_equal_to_text_label s$hairstyle_name == 'BALDGOT'
goto_if_false @BARB_6538
set_var_text_label16 v$name_of_anim_barbers = "BRB_BEARD_01"
goto @BARB_6663

:BARB_6538
if 
  $random_number_barbers > 1
goto_if_false @BARB_6563
$random_number_barbers = 0

:BARB_6563
if 
  0 > $random_number_barbers
goto_if_false @BARB_6588
$random_number_barbers = 0

:BARB_6588
if 
  $random_number_barbers == 0
goto_if_false @BARB_6638
set_var_text_label16 v$name_of_anim_barbers = "BRB_HAIR_01"
$random_number_barbers += 1
goto @BARB_6663

:BARB_6638
set_var_text_label16 v$name_of_anim_barbers = "BRB_HAIR_02"
$random_number_barbers -= 1

:BARB_6663
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_BUY" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $scplayer {animationName} v$name_of_anim_barbers {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_barbers = 0.0
$control_flag_barbers = 3
goto @BARB_6832

:BARB_6759
if 
  $flag_bought_item_already_shops == 0
goto_if_false @BARB_6832
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.BoughtEnough
print_now 'BARBNO' {time} 5000 {flag} 1
$control_flag_barbers = 0
$flag_bought_item_already_shops = 1

:BARB_6832
goto @BARB_6912

:BARB_6839
if 
  $flag_no_money_shops == 0
goto_if_false @BARB_6912
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$sample_name_shops = set_char_say_context $shop_keep_barbers {phrase} SpeechId.NoMoney
print_now 'SHOPNO' {time} 5000 {flag} 1
$control_flag_barbers = 0
$flag_no_money_shops = 1

:BARB_6912
if 
  $control_flag_barbers == 3
goto_if_false @BARB_7257
if 
  is_char_playing_anim $scplayer {animationName} v$name_of_anim_barbers
goto_if_false @BARB_6960
$return_animation_time_barbers = get_char_anim_current_time $scplayer {animationName} v$name_of_anim_barbers

:BARB_6960
if 
  $return_animation_time_barbers == 1.0
goto_if_false @BARB_7257
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_7013
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_7013
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_7045
clear_help 
delete_menu $cost_menu_shops
$cost_menu_drawn_shops = 0

:BARB_7045
task_play_anim_non_interruptable $scplayer {animationName} "BRB_SIT_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} -1
task_play_anim_non_interruptable $shop_keep_barbers {animationName} "BRB_LOOP" {animationFile} "HAIRCUTS" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
if 
  $flag_changed_hair_intro2 == 0
goto_if_false @BARB_7172
if 
  $onmission == 1
goto_if_false @BARB_7172
$flag_changed_hair_intro2 = 1

:BARB_7172
set_fixed_camera_position $chaircam_offX {y} $chaircam_offY {z} $chaircam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $chaircam_lookat_offX {y} $chaircam_lookat_offY {z} $chaircam_lookat_offZ {switchStyle} SwitchType.JumpCut
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_7243
gosub @BARB_8401
gosub @BARB_8689

:BARB_7243
$control_flag_barbers = 0
$flag_barber = 6

:BARB_7257
goto @BARB_7271

:BARB_7264
gosub @BARB_7498

:BARB_7271
goto @BARB_7285

:BARB_7278
gosub @BARB_7498

:BARB_7285
goto @BARB_653

:BARB_7292
if 
  $flag_barber > 0
goto_if_false @BARB_7312
clear_help 

:BARB_7312
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_7344
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_7344
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_7376
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_7376
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_7408
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_7408
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
$flag_barber = 2
$flag_restored_camera_barbers = 0
$unk9728 = 0
$unk9747 = 0
$return_animation_time_barbers = 0.0
$flag_viewed_hair = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$cut_hair_flag_barber = 0
return 

:BARB_7498
clear_this_print 'SHOPNO'
clear_this_print 'BARBNO'
if 
  $flag_barber > 0
goto_if_false @BARB_7540
clear_help 

:BARB_7540
if 
  $cost_menu_drawn_shops == 1
goto_if_false @BARB_7572
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:BARB_7572
if 
  $bought_menu_drawn_shops == 1
goto_if_false @BARB_7604
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:BARB_7604
if 
  $main_menu_drawn_shops == 1
goto_if_false @BARB_7636
clear_help 
delete_menu $main_menu_shops
$main_menu_drawn_shops = 0

:BARB_7636
$barber_look_shops = 0
$unk9728 = 0
$flag_attacked_barber = 0
$flag_barber = 0
$unk9747 = 0
$return_animation_time_barbers = 0.0
$flag_viewed_hair = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_restored_camera_barbers = 0
clear_sequence_task $barber_movein_barbers
clear_sequence_task $player_walk_barbers
mark_model_as_no_longer_needed $shopkeeper_model_shops
delete_char $shop_keep_barbers
display_radar True
use_text_commands False
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
$cut_hair_flag_barber = 0
terminate_this_script 
return 

:BARB_7760
if 
  $cost_menu_drawn_shops == 0
goto_if_false @BARB_8399
print_help_forever 'BARB_H2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @BARB_7851
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_8092

:BARB_7851
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BARB_7913
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_8092

:BARB_7913
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @BARB_7975
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_8092

:BARB_7975
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @BARB_8037
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @BARB_8092

:BARB_8037
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BARB_8092
$cost_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:BARB_8092
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'HAIRSTY' {row0} s$hairstyle_name {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $hair_price
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:BARB_8399
return 

:BARB_8401
$item_no_hairstyles = 0
$number_of_hairstyles_in_area = 0

:BARB_8415
if 
  is_int_var_greater_than_int_var $num_of_hairstyles > $item_no_hairstyles
goto_if_false @BARB_8607
$model_index = get_item_in_shop $item_no_hairstyles
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
set_var_int_to_var_int $item_model_index($number_of_hairstyles_in_area,12i) = $model_index
s$hairstyle_name = get_name_of_item $model_index
$hair_price = get_price_of_item $model_index
set_var_int_to_var_int $item_price($number_of_hairstyles_in_area,12i) = $hair_price
set_var_text_label $item_text_label($number_of_hairstyles_in_area,12s) = s$hairstyle_name
set_var_int_to_var_int $item_modelid($number_of_hairstyles_in_area,12i) = $modelid_shops
set_var_int_to_var_int $item_component($number_of_hairstyles_in_area,12i) = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @BARB_8575
$item_hilight_shops($number_of_hairstyles_in_area,12i) = 0
goto @BARB_8586

:BARB_8575
$item_hilight_shops($number_of_hairstyles_in_area,12i) = 1

:BARB_8586
$number_of_hairstyles_in_area += 1
$item_no_hairstyles += 1
goto @BARB_8415

:BARB_8607
set_var_int_to_var_int $temp_var_shops = $number_of_hairstyles_in_area

:BARB_8615
if 
  12 > $temp_var_shops
goto_if_false @BARB_8687
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @BARB_8615

:BARB_8687
return 

:BARB_8689
if 
  $main_menu_drawn_shops == 0
goto_if_false @BARB_9362
print_help_forever 'BARB_H1'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @BARB_8780
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_9021

:BARB_8780
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @BARB_8842
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_9021

:BARB_8842
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @BARB_8904
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_9021

:BARB_8904
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @BARB_8966
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @BARB_9021

:BARB_8966
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @BARB_9021
$main_menu_shops = create_menu 'HAIRCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:BARB_9021
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'HAIRSTY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
set_menu_column_orientation $main_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $main_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
$temp_var_shops = 0

:BARB_9222
if 
  is_int_var_greater_than_int_var $number_of_hairstyles_in_area > $temp_var_shops
goto_if_false @BARB_9281
set_menu_item_with_number $main_menu_shops {column} 1 {row} $temp_var_shops {gxt} 'DOLLAR' {number} $item_price($temp_var_shops,12i)
$temp_var_shops += 1
goto @BARB_9222

:BARB_9281
$temp_var_shops = 0

:BARB_9288
if 
  is_int_var_greater_than_int_var $number_of_hairstyles_in_area > $temp_var_shops
goto_if_false @BARB_9336
activate_menu_item $main_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @BARB_9288

:BARB_9336
set_menu_column_width $main_menu_shops {column} 0 {width} 140
set_menu_column_width $main_menu_shops {column} 1 {width} 46
$main_menu_drawn_shops = 1

:BARB_9362
return 
terminate_this_script 

//-------------External script 63 (WARDROBE)---------------

:WARROBE
$shop_progress_wardrobe = 0
$shop_main_item_picked_wardrobe = 0
$main_menu_drawn_wardrobe = 0
$number_of_wardrobe_in_shop = 0
$number_of_wardrobe_in_area = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$wardrobe_door_heading = 0.0
$wardrobe_offX = 0.0
$wardrobe_offY = 0.0
$wardrobe_offZ = 0.0
$wardrobe_door_heading = 0.0
$wardrobe_locateX = 0.0
$wardrobe_locateY = 0.0
$wardrobe_locateZ = 0.0
$wardrobe_heading = 0.0
$wardrobe_camX = 0.0
$wardrobe_camY = 0.0
$wardrobe_camZ = 0.0
$wardrobe_cam_pointX = 0.0
$wardrobe_cam_pointY = 0.0
$wardrobe_cam_pointZ = 0.0
$wardrobe_hat_camX = 0.0
$wardrobe_hat_camY = 0.0
$wardrobe_hat_camZ = 0.0
$wardrobe_hat_cam_pointX = 0.0
$wardrobe_hat_cam_pointY = 0.0
$wardrobe_hat_cam_pointZ = 0.0
$number_of_items_wardrobe = 0
$flag_player_in_changing_room_wardrobe = 0
$wardrobe_heading = 0.0
$wardrobe_cam_pointX = 0.0
$wardrobe_cam_pointY = 0.0
$wardrobe_cam_pointZ = 0.0
$return_animation_time_wardrobe = 0.0
$object_animation_time_wardrobe = 0.0
$flag_wardrobe = 0
$flag_player_use_changing_room_wardrobe = 0
$player_in_view_mode_wardrobe = 0
$main_menu_drawn_wardrobe = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$area_to_look_at_shops = 0
$number_of_torso_wardrobe = 0
$number_of_legs_wardrobe = 0
$number_of_feet_wardrobe = 0
$number_of_chains_wardrobe = 0
$number_of_watches_wardrobe = 0
$number_of_glasses_wardrobe = 0
$number_of_hats_wardrobe = 0
$number_of_special_wardrobe = 0
$second_menu_item_picked_wardrobe = 0
$second_menu_drawn_wardrobe = 0
$number_bought_items_in_area = 0
$third_menu_drawn_wardrobe = 0
$third_menu_item_picked_wardrobe = 0
$flag_got_special_clothes_wardrobe = 0
$flag_remove_menu_drawn_wardrobe = 0
$draw_remove_option_wardrobe = 0
$player_in_changeroom_wardrobe = 0
$player_using_wardrobe = 0
$flag_bought_something_wardrobe = 0
$shop_door_model_wardrobe = -370
request_model $shop_door_model_wardrobe
request_animation "CLOTHES"
load_mission_audio MissionAudioSlot.Slot4 {audioId} 20800
load_all_models_now 
set_deatharrest_state 0
script_name 'WARROBE'

:WARROBE_584
wait 0
if 
  is_player_playing $player1
goto_if_false @WARROBE_6450
$visible_area_wardrobe = get_area_visible 
if 
  $visible_area_wardrobe == 14
goto_if_false @WARROBE_6436
if 
  $flag_wardrobe > 0
goto_if_false @WARROBE_737
if 
  has_language_changed 
goto_if_false @WARROBE_737
clear_help 
delete_menu $main_menu_wardrobe
delete_menu $second_menu_wardrobe
delete_menu $third_menu_wardrobe
delete_menu $remove_menu_wardrobe
delete_menu $cost_menu_shops
delete_menu $bought_menu_shops
$main_menu_drawn_wardrobe = 0
$second_menu_drawn_wardrobe = 0
$third_menu_drawn_wardrobe = 0
$flag_remove_menu_drawn_wardrobe = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = get_current_language 

:WARROBE_737
if 
  $flag_wardrobe == 0
goto_if_false @WARROBE_819
$player_using_wardrobe = 1
$wardrobe_offX = 43.529
$wardrobe_offY = 0.694
$wardrobe_offZ = 0.012
$wardrobe_heading = 90.0
$wardrobe_door_heading = 0.0
$flag_wardrobe = 1

:WARROBE_819
if 
  $flag_wardrobe == 1
goto_if_false @WARROBE_1280
if 
  $shop_progress_wardrobe == 0
goto_if_false @WARROBE_1226
use_text_commands True
show_update_stats False
$wardrobe_camX = 212.8715
add_float_var_to_float_var $wardrobe_camX += $wardrobe_offX
$wardrobe_camY = -42.8156
add_float_var_to_float_var $wardrobe_camY += $wardrobe_offY
$wardrobe_camZ = 1002.116
add_float_var_to_float_var $wardrobe_camZ += $wardrobe_offZ
$wardrobe_cam_pointX = 213.4791
add_float_var_to_float_var $wardrobe_cam_pointX += $wardrobe_offX
$wardrobe_cam_pointY = -42.0238
add_float_var_to_float_var $wardrobe_cam_pointY += $wardrobe_offY
$wardrobe_cam_pointZ = 1002.053
add_float_var_to_float_var $wardrobe_cam_pointZ += $wardrobe_offZ
$wardrobe_hat_camX = 214.5148
add_float_var_to_float_var $wardrobe_hat_camX += $wardrobe_offX
$wardrobe_hat_camY = -41.6106
add_float_var_to_float_var $wardrobe_hat_camY += $wardrobe_offY
$wardrobe_hat_camZ = 1002.494
add_float_var_to_float_var $wardrobe_hat_camZ += $wardrobe_offZ
$wardrobe_hat_cam_pointX = 214.5367
add_float_var_to_float_var $wardrobe_hat_cam_pointX += $wardrobe_offX
$wardrobe_hat_cam_pointY = -40.6175
add_float_var_to_float_var $wardrobe_hat_cam_pointY += $wardrobe_offY
$wardrobe_hat_cam_pointZ = 1002.609
add_float_var_to_float_var $wardrobe_hat_cam_pointZ += $wardrobe_offZ
$wardrobe_locateX = 214.622
add_float_var_to_float_var $wardrobe_locateX += $wardrobe_offX
$wardrobe_locateY = -40.652
add_float_var_to_float_var $wardrobe_locateY += $wardrobe_offY
$wardrobe_locateZ = 1001.033
add_float_var_to_float_var $wardrobe_locateZ += $wardrobe_offZ
$change_doorX = 213.874
add_float_var_to_float_var $change_doorX += $wardrobe_offX
$change_doorY = -39.811
add_float_var_to_float_var $change_doorY += $wardrobe_offY
$change_doorZ = 1002.2
add_float_var_to_float_var $change_doorZ += $wardrobe_offZ
$changing_room_door_wardrobe = create_object_no_offset $shop_door_model_wardrobe {x} $change_doorX {y} $change_doorY {z} $change_doorZ
set_object_heading $changing_room_door_wardrobe {heading} $wardrobe_door_heading
$blob_flag_shop = 1
$shop_progress_wardrobe = 1

:WARROBE_1226
if 
  $shop_progress_wardrobe == 1
goto_if_false @WARROBE_1280
if 
  has_animation_loaded "CLOTHES"
goto_if_false @WARROBE_1280
$shop_progress_wardrobe = 0
$flag_wardrobe = 2

:WARROBE_1280
if 
  $flag_wardrobe == 2
goto_if_false @WARROBE_1364
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $wardrobe_locateX {y} $wardrobe_locateY {z} $wardrobe_locateZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @WARROBE_1364
if 
  can_player_start_mission $player1
goto_if_false @WARROBE_1364
$flag_wardrobe = 3

:WARROBE_1364
if 
  $flag_wardrobe == 3
goto_if_false @WARROBE_1499
if 
  is_player_playing $player1
goto_if_false @WARROBE_1485
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
display_radar False
TIMERA = 0
$shop_progress_wardrobe = 0
$flag_wardrobe = 4
goto @WARROBE_1499

:WARROBE_1485
gosub @WARROBE_6798
goto @WARROBE_584

:WARROBE_1499
if 
  $flag_wardrobe == 4
goto_if_false @WARROBE_1880
if 
  $shop_progress_wardrobe == 0
goto_if_false @WARROBE_1785
if 
  TIMERA >= 300
goto_if_false @WARROBE_1785
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_coordinates_dont_warp_gang $scplayer {x} $wardrobe_locateX {y} $wardrobe_locateY {z} $wardrobe_locateZ
set_char_heading $scplayer {heading} $wardrobe_heading
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_fixed_camera_position $wardrobe_camX {y} $wardrobe_camY {z} $wardrobe_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $wardrobe_cam_pointX {y} $wardrobe_cam_pointY {z} $wardrobe_cam_pointZ {switchStyle} SwitchType.JumpCut
task_play_anim_non_interruptable $scplayer {animationName} "CLO_IN" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_wardrobe = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @WARROBE_1723
$return_animation_time_wardrobe = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:WARROBE_1723
if 
  does_object_exist $changing_room_door_wardrobe
goto_if_false @WARROBE_1778
play_object_anim $changing_room_door_wardrobe {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 4.0 {lockF} False {loop} True

:WARROBE_1778
$shop_progress_wardrobe = 1

:WARROBE_1785
if 
  $shop_progress_wardrobe == 1
goto_if_false @WARROBE_1880
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @WARROBE_1843
$return_animation_time_wardrobe = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:WARROBE_1843
if 
  $return_animation_time_wardrobe == 1.0
goto_if_false @WARROBE_1880
store_clothes_state 
$shop_progress_wardrobe = 0
$flag_wardrobe = 5

:WARROBE_1880
if 
  $flag_wardrobe == 5
goto_if_false @WARROBE_2617
if 
  $main_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_1941
if 
  1 > $shop_progress_wardrobe
goto_if_false @WARROBE_1941
gosub @WARROBE_9292

:WARROBE_1941
$blob_flag_shop = 0
if 
  $shop_progress_wardrobe == 0
goto_if_false @WARROBE_2014
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_1990
$shop_progress_wardrobe = 1

:WARROBE_1990
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2014
$shop_progress_wardrobe = 2

:WARROBE_2014
if 
  $shop_progress_wardrobe == 1
goto_if_false @WARROBE_2249
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_2249
$shop_main_item_picked_wardrobe = get_menu_item_accepted $main_menu_wardrobe
if 
  0 > $shop_main_item_picked_wardrobe
goto_if_false @WARROBE_2082
$shop_main_item_picked_wardrobe = 0

:WARROBE_2082
if 
  $main_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_2114
delete_menu $main_menu_wardrobe
clear_help 
$main_menu_drawn_wardrobe = 0

:WARROBE_2114
if or
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'UNIFORM'
goto_if_false @WARROBE_2203
set_var_text_label16 v$current_name_of_anim_wardrobe = "CLO_POSE_TORSO"
$shop_progress_wardrobe = 0
$flag_wardrobe = 7
goto @WARROBE_2249

:WARROBE_2203
gosub @WARROBE_7198
if 
  $second_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_2235
gosub @WARROBE_8122

:WARROBE_2235
$shop_progress_wardrobe = 0
$flag_wardrobe = 6

:WARROBE_2249
if 
  $shop_progress_wardrobe == 2
goto_if_false @WARROBE_2457
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2457
if 
  $main_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_2316
delete_menu $main_menu_wardrobe
clear_help 
$main_menu_drawn_wardrobe = 0

:WARROBE_2316
if 
  $second_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_2348
delete_menu $second_menu_wardrobe
clear_help 
$second_menu_drawn_wardrobe = 0

:WARROBE_2348
task_play_anim_non_interruptable $scplayer {animationName} "CLO_OUT" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_wardrobe = 0.0
if 
  does_object_exist $changing_room_door_wardrobe
goto_if_false @WARROBE_2450
play_object_anim $changing_room_door_wardrobe {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:WARROBE_2450
$shop_progress_wardrobe = 5

:WARROBE_2457
if 
  $shop_progress_wardrobe == 5
goto_if_false @WARROBE_2545
if 
  is_char_playing_anim $scplayer {animationName} "CLO_OUT"
goto_if_false @WARROBE_2517
$return_animation_time_wardrobe = get_char_anim_current_time $scplayer {animationName} "CLO_OUT"

:WARROBE_2517
if 
  $return_animation_time_wardrobe == 1.0
goto_if_false @WARROBE_2545
$shop_progress_wardrobe = 6

:WARROBE_2545
if 
  $shop_progress_wardrobe == 6
goto_if_false @WARROBE_2617
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 
display_radar True
$player_in_changeroom_wardrobe = 0
$main_menu_drawn_wardrobe = 0
$second_menu_drawn_wardrobe = 0
$third_menu_drawn_wardrobe = 0
$flag_wardrobe = 11

:WARROBE_2617
if 
  $flag_wardrobe == 6
goto_if_false @WARROBE_3004
if 
  $second_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_2667
gosub @WARROBE_7198
gosub @WARROBE_8122

:WARROBE_2667
$blob_flag_shop = 0
if 
  $shop_progress_wardrobe == 0
goto_if_false @WARROBE_2792
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2716
$shop_progress_wardrobe = 1

:WARROBE_2716
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_2792
$second_menu_item_picked_wardrobe = get_menu_item_selected $second_menu_wardrobe
if 
  0 > $second_menu_item_picked_wardrobe
goto_if_false @WARROBE_2766
$second_menu_item_picked_wardrobe = 0

:WARROBE_2766
set_var_text_label16 v$current_name_of_anim_wardrobe = $name_of_anim_wardrobe($second_menu_item_picked_wardrobe,12v)
gosub @WARROBE_8524
$shop_progress_wardrobe = 2

:WARROBE_2792
if 
  $shop_progress_wardrobe == 1
goto_if_false @WARROBE_2898
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_2898
$shop_progress_wardrobe = 0
$flag_wardrobe = 5
if 
  $second_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_2873
clear_help 
delete_menu $second_menu_wardrobe
$second_menu_drawn_wardrobe = 0

:WARROBE_2873
if 
  $main_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_2898
gosub @WARROBE_9292

:WARROBE_2898
if 
  $shop_progress_wardrobe == 2
goto_if_false @WARROBE_3004
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_3004
if 
  $second_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_2965
clear_help 
delete_menu $second_menu_wardrobe
$second_menu_drawn_wardrobe = 0

:WARROBE_2965
if 
  $third_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_2990
gosub @WARROBE_8835

:WARROBE_2990
$shop_progress_wardrobe = 0
$flag_wardrobe = 7

:WARROBE_3004
if 
  $flag_wardrobe == 7
goto_if_false @WARROBE_3711
if 
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
goto_if_false @WARROBE_3154
if 
  $flag_remove_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_3147
gosub @WARROBE_11522
if 
  $row_number_wardrobe == 0
goto_if_false @WARROBE_3147
if 
  $flag_remove_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_3126
delete_menu $remove_menu_wardrobe
clear_help 
$flag_remove_menu_drawn_wardrobe = 0

:WARROBE_3126
$shop_progress_wardrobe = 0
$flag_wardrobe = 5
goto @WARROBE_584

:WARROBE_3147
goto @WARROBE_3254

:WARROBE_3154
if 
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'UNIFORM'
goto_if_false @WARROBE_3222
if 
  $third_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_3215
gosub @WARROBE_10908
gosub @WARROBE_8835

:WARROBE_3215
goto @WARROBE_3254

:WARROBE_3222
if 
  $third_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_3254
gosub @WARROBE_8524
gosub @WARROBE_8835

:WARROBE_3254
if 
  $shop_progress_wardrobe == 0
goto_if_false @WARROBE_3353
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_3296
$shop_progress_wardrobe = 1

:WARROBE_3296
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_3353
$third_menu_item_picked_wardrobe = get_menu_item_selected $third_menu_wardrobe
if 
  0 > $third_menu_item_picked_wardrobe
goto_if_false @WARROBE_3346
$third_menu_item_picked_wardrobe = 0

:WARROBE_3346
$shop_progress_wardrobe = 2

:WARROBE_3353
if 
  $shop_progress_wardrobe == 1
goto_if_false @WARROBE_3591
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_3591
if 
  $third_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_3420
delete_menu $third_menu_wardrobe
clear_help 
$third_menu_drawn_wardrobe = 0

:WARROBE_3420
if 
  $flag_remove_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_3452
delete_menu $remove_menu_wardrobe
clear_help 
$flag_remove_menu_drawn_wardrobe = 0

:WARROBE_3452
if or
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'UNIFORM'
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
goto_if_false @WARROBE_3545
if 
  $main_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_3524
gosub @WARROBE_9292

:WARROBE_3524
$flag_wardrobe = 5
$shop_progress_wardrobe = 0
goto @WARROBE_3591

:WARROBE_3545
if 
  $second_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_3577
gosub @WARROBE_7198
gosub @WARROBE_8122

:WARROBE_3577
$shop_progress_wardrobe = 0
$flag_wardrobe = 6

:WARROBE_3591
if 
  $shop_progress_wardrobe == 2
goto_if_false @WARROBE_3711
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_3711
if 
  $third_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_3658
delete_menu $third_menu_wardrobe
clear_help 
$third_menu_drawn_wardrobe = 0

:WARROBE_3658
if 
  $flag_remove_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_3690
delete_menu $remove_menu_wardrobe
clear_help 
$flag_remove_menu_drawn_wardrobe = 0

:WARROBE_3690
$player_in_changeroom_wardrobe = 0
$shop_progress_wardrobe = 0
$flag_wardrobe = 8

:WARROBE_3711
if 
  $flag_wardrobe == 8
goto_if_false @WARROBE_4589
if 
  $shop_progress_wardrobe == 0
goto_if_false @WARROBE_4203
if 
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
goto_if_false @WARROBE_3835
$model_index = 0
$modelid_shops = 0
set_var_int_to_var_int $component_shops = $item_component($third_menu_item_picked_wardrobe,12i)
set_var_text_label s$wardrobe_name = $menu_item($third_menu_item_picked_wardrobe,12s)
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $component_shops
goto @WARROBE_3879

:WARROBE_3835
set_var_int_to_var_int $model_index = $item_model_index($third_menu_item_picked_wardrobe,12i)
set_var_int_to_var_int $modelid_shops = $item_modelid($third_menu_item_picked_wardrobe,12i)
set_var_int_to_var_int $component_shops = $area_to_look_at_shops
set_var_text_label s$wardrobe_name = $menu_item($third_menu_item_picked_wardrobe,12s)

:WARROBE_3879
if or
  is_int_var_equal_to_constant $component_shops == 13
  is_int_var_equal_to_constant $component_shops == 14
  is_int_var_equal_to_constant $component_shops == 15
  is_int_var_equal_to_constant $component_shops == 16
goto_if_false @WARROBE_3964
set_fixed_camera_position $wardrobe_hat_camX {y} $wardrobe_hat_camY {z} $wardrobe_hat_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $wardrobe_hat_cam_pointX {y} $wardrobe_hat_cam_pointY {z} $wardrobe_hat_cam_pointZ {switchStyle} SwitchType.JumpCut
goto @WARROBE_4026

:WARROBE_3964
set_fixed_camera_position $wardrobe_camX {y} $wardrobe_camY {z} $wardrobe_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $wardrobe_cam_pointX {y} $wardrobe_cam_pointY {z} $wardrobe_cam_pointZ {switchStyle} SwitchType.JumpCut
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_4026
play_mission_audio MissionAudioSlot.Slot4

:WARROBE_4026
if or
  is_int_var_equal_to_constant $component_shops == 0
  is_int_var_equal_to_constant $component_shops == 2
  is_int_var_equal_to_constant $component_shops == 3
goto_if_false @WARROBE_4071
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
store_clothes_state 

:WARROBE_4071
give_player_clothes $player1 {textureHash} $model_index {modelHash} $modelid_shops {bodyPart} $component_shops
build_player_model $player1
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_IN" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_wardrobe = 0.0
if 
  does_object_exist $changing_room_door_wardrobe
goto_if_false @WARROBE_4196
play_object_anim $changing_room_door_wardrobe {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:WARROBE_4196
$shop_progress_wardrobe = 1

:WARROBE_4203
if 
  $shop_progress_wardrobe == 1
goto_if_false @WARROBE_4445
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_IN"
goto_if_false @WARROBE_4271
$return_animation_time_wardrobe = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_IN"

:WARROBE_4271
if 
  $return_animation_time_wardrobe == 1.0
goto_if_false @WARROBE_4445
if 
  not is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
goto_if_false @WARROBE_4377
task_play_anim_non_interruptable $scplayer {animationName} v$current_name_of_anim_wardrobe {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_wardrobe = 0.0
$shop_progress_wardrobe = 2
goto @WARROBE_4445

:WARROBE_4377
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_wardrobe = 0.0
$flag_wardrobe = 9
$shop_progress_wardrobe = 0

:WARROBE_4445
if 
  $shop_progress_wardrobe == 2
goto_if_false @WARROBE_4589
if 
  is_char_playing_anim $scplayer {animationName} v$current_name_of_anim_wardrobe
goto_if_false @WARROBE_4493
$return_animation_time_wardrobe = get_char_anim_current_time $scplayer {animationName} v$current_name_of_anim_wardrobe

:WARROBE_4493
if 
  $return_animation_time_wardrobe == 1.0
goto_if_false @WARROBE_4589
gosub @WARROBE_10424
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_wardrobe = 0.0
$flag_wardrobe = 9
$shop_progress_wardrobe = 0

:WARROBE_4589
if 
  $flag_wardrobe == 9
goto_if_false @WARROBE_6277
$blob_flag_shop = 0
if 
  $shop_progress_wardrobe == 0
goto_if_false @WARROBE_4867
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_4699
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$flag_bought_something_wardrobe = 0
$shop_progress_wardrobe = 1

:WARROBE_4699
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @WARROBE_4867
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$flag_bought_something_wardrobe = 0
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_4791
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_4791
if 
  $player_in_changeroom_wardrobe == 0
goto_if_false @WARROBE_4823
$shop_progress_wardrobe = 3
goto @WARROBE_4867

:WARROBE_4823
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_4853
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:WARROBE_4853
$shop_progress_wardrobe = 0
$flag_wardrobe = 7

:WARROBE_4867
if 
  2 > $shop_progress_wardrobe
goto_if_false @WARROBE_4892
gosub @WARROBE_10424

:WARROBE_4892
if 
  $shop_progress_wardrobe == 1
goto_if_false @WARROBE_5427
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @WARROBE_5427
if 
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
goto_if_false @WARROBE_5186
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_5117
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5006
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_5006
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
gosub @WARROBE_10692
$flag_bought_something_wardrobe = 1
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $component_shops
task_play_anim_non_interruptable $scplayer {animationName} "CLO_BUY" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_wardrobe = 0.0
$shop_progress_wardrobe = 2
goto @WARROBE_5179

:WARROBE_5117
if 
  $flag_bought_item_already_shops == 0
goto_if_false @WARROBE_5179
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'WARDNO2' {time} 5000 {flag} 1
$shop_progress_wardrobe = 0
$flag_bought_item_already_shops = 1

:WARROBE_5179
goto @WARROBE_5427

:WARROBE_5186
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_5365
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5237
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_5237
add_price_modifier $model_index {price} 0
buy_item $model_index
$flag_bought_something_wardrobe = 1
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
remove_price_modifier $model_index
gosub @WARROBE_10692
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
task_play_anim_non_interruptable $scplayer {animationName} "CLO_BUY" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_wardrobe = 0.0
$shop_progress_wardrobe = 2
goto @WARROBE_5427

:WARROBE_5365
if 
  $flag_bought_item_already_shops == 0
goto_if_false @WARROBE_5427
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'WARDNO' {time} 5000 {flag} 1
$shop_progress_wardrobe = 0
$flag_bought_item_already_shops = 1

:WARROBE_5427
if 
  $shop_progress_wardrobe == 2
goto_if_false @WARROBE_5569
if 
  is_char_playing_anim $scplayer {animationName} "CLO_BUY"
goto_if_false @WARROBE_5487
$return_animation_time_wardrobe = get_char_anim_current_time $scplayer {animationName} "CLO_BUY"

:WARROBE_5487
if 
  $return_animation_time_wardrobe == 1.0
goto_if_false @WARROBE_5569
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_wardrobe = 0.0
$shop_progress_wardrobe = 3

:WARROBE_5569
if 
  $shop_progress_wardrobe == 3
goto_if_false @WARROBE_5702
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_OUT" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_wardrobe = 0.0
if 
  does_object_exist $changing_room_door_wardrobe
goto_if_false @WARROBE_5695
play_object_anim $changing_room_door_wardrobe {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:WARROBE_5695
$shop_progress_wardrobe = 4

:WARROBE_5702
if 
  $shop_progress_wardrobe == 4
goto_if_false @WARROBE_6277
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_OUT"
goto_if_false @WARROBE_5772
$return_animation_time_wardrobe = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_OUT"

:WARROBE_5772
if 
  $return_animation_time_wardrobe == 1.0
goto_if_false @WARROBE_6277
restore_clothes_state 
build_player_model $player1
store_clothes_state 
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_5834
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_5834
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_5864
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:WARROBE_5864
$player_in_changeroom_wardrobe = 1
if 
  $flag_bought_something_wardrobe == 1
goto_if_false @WARROBE_5953
$shop_progress_wardrobe = 0
$flag_wardrobe = 5
if 
  $main_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_5946
if 
  1 > $shop_progress_wardrobe
goto_if_false @WARROBE_5946
gosub @WARROBE_9292

:WARROBE_5946
goto @WARROBE_6277

:WARROBE_5953
if 
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
goto_if_false @WARROBE_6149
if 
  $flag_remove_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_6142
gosub @WARROBE_11522
if 
  $row_number_wardrobe == 0
goto_if_false @WARROBE_6128
if 
  $flag_remove_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6057
delete_menu $remove_menu_wardrobe
clear_help 
$flag_remove_menu_drawn_wardrobe = 0

:WARROBE_6057
$shop_progress_wardrobe = 0
$flag_wardrobe = 5
if 
  $main_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_6114
if 
  1 > $shop_progress_wardrobe
goto_if_false @WARROBE_6114
gosub @WARROBE_9292

:WARROBE_6114
goto @WARROBE_584
goto @WARROBE_6142

:WARROBE_6128
$shop_progress_wardrobe = 0
$flag_wardrobe = 7

:WARROBE_6142
goto @WARROBE_6277

:WARROBE_6149
if 
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'UNIFORM'
goto_if_false @WARROBE_6231
if 
  $third_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_6210
gosub @WARROBE_10908
gosub @WARROBE_8835

:WARROBE_6210
$shop_progress_wardrobe = 0
$flag_wardrobe = 7
goto @WARROBE_6277

:WARROBE_6231
if 
  $third_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_6263
gosub @WARROBE_8524
gosub @WARROBE_8835

:WARROBE_6263
$shop_progress_wardrobe = 0
$flag_wardrobe = 7

:WARROBE_6277
if 
  $flag_wardrobe == 11
goto_if_false @WARROBE_6429
if 
  not locate_char_on_foot_3d $scplayer {x} $wardrobe_locateX {y} $wardrobe_locateY {z} $wardrobe_locateZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @WARROBE_6429
$main_menu_drawn_wardrobe = 0
$second_menu_drawn_wardrobe = 0
$third_menu_drawn_wardrobe = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_remove_menu_drawn_wardrobe = 0
$shop_main_item_picked_wardrobe = 0
$shop_sub_item_picked_shops = 0
$flag_bought_something_wardrobe = 0
$flag_wardrobe = 2
$shop_progress_wardrobe = 0
$flag_bought_item_already_shops = 0
$blob_flag_shop = 1

:WARROBE_6429
goto @WARROBE_6443

:WARROBE_6436
gosub @WARROBE_6798

:WARROBE_6443
goto @WARROBE_6457

:WARROBE_6450
gosub @WARROBE_6798

:WARROBE_6457
goto @WARROBE_584
if 
  $flag_wardrobe >= 1
goto_if_false @WARROBE_6484
clear_help 

:WARROBE_6484
if 
  $main_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6516
delete_menu $main_menu_wardrobe
clear_help 
$main_menu_drawn_wardrobe = 0

:WARROBE_6516
if 
  $second_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6548
delete_menu $second_menu_wardrobe
clear_help 
$second_menu_drawn_wardrobe = 0

:WARROBE_6548
if 
  $third_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6580
delete_menu $third_menu_wardrobe
clear_help 
$third_menu_drawn_wardrobe = 0

:WARROBE_6580
if 
  $flag_remove_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6612
delete_menu $remove_menu_wardrobe
clear_help 
$flag_remove_menu_drawn_wardrobe = 0

:WARROBE_6612
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_6644
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_6644
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_6676
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:WARROBE_6676
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$main_menu_drawn_wardrobe = 0
$second_menu_drawn_wardrobe = 0
$third_menu_drawn_wardrobe = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_remove_menu_drawn_wardrobe = 0
$shop_main_item_picked_wardrobe = 0
$shop_sub_item_picked_shops = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$flag_bought_something_wardrobe = 0
$shop_progress_wardrobe = 0
$player_in_changeroom_wardrobe = 0
$flag_wardrobe = 2
return 

:WARROBE_6798
if 
  $main_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6830
delete_menu $main_menu_wardrobe
clear_help 
$main_menu_drawn_wardrobe = 0

:WARROBE_6830
if 
  $second_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6862
delete_menu $second_menu_wardrobe
clear_help 
$second_menu_drawn_wardrobe = 0

:WARROBE_6862
if 
  $third_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6894
delete_menu $third_menu_wardrobe
clear_help 
$third_menu_drawn_wardrobe = 0

:WARROBE_6894
if 
  $flag_remove_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_6926
delete_menu $remove_menu_wardrobe
clear_help 
$flag_remove_menu_drawn_wardrobe = 0

:WARROBE_6926
if 
  $cost_menu_drawn_shops == 1
goto_if_false @WARROBE_6958
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:WARROBE_6958
if 
  $bought_menu_drawn_shops == 1
goto_if_false @WARROBE_6990
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:WARROBE_6990
if 
  $flag_wardrobe >= 1
goto_if_false @WARROBE_7010
clear_help 

:WARROBE_7010
clear_this_print 'WARDNO'
clear_this_print 'WARDNO2'
$main_menu_drawn_wardrobe = 0
$second_menu_drawn_wardrobe = 0
$third_menu_drawn_wardrobe = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_remove_menu_drawn_wardrobe = 0
$shop_main_item_picked_wardrobe = 0
$shop_sub_item_picked_shops = 0
$flag_bought_something_wardrobe = 0
$blob_flag_shop = 1
$flag_player_use_changing_room_wardrobe = 0
$flag_bought_item_already_shops = 0
$flag_player_owned_item_shops = 0
$shop_progress_wardrobe = 0
$flag_wardrobe = 0
$player_in_changeroom_wardrobe = 0
delete_object $changing_room_door_wardrobe
mark_model_as_no_longer_needed $shop_door_model_wardrobe
remove_animation "CLOTHES"
clear_loaded_shop 
use_text_commands False
display_radar True
show_update_stats True
set_minigame_in_progress False
$player_using_wardrobe = 0
clear_mission_audio MissionAudioSlot.Slot4
terminate_this_script 
return 

:WARROBE_7198
$number_of_torso_wardrobe = 0
$number_of_legs_wardrobe = 0
$number_of_feet_wardrobe = 0
$number_of_chains_wardrobe = 0
$number_of_watches_wardrobe = 0
$number_of_glasses_wardrobe = 0
$number_of_hats_wardrobe = 0
load_shop $shop_section($shop_main_item_picked_wardrobe,12s)
load_prices "CLOTHES"
$number_of_wardrobe_in_shop = get_number_of_items_in_shop 
$temp_var_shops = 0
$row_number_wardrobe = 0

:WARROBE_7286
if 
  is_int_var_greater_than_int_var $number_of_wardrobe_in_shop > $temp_var_shops
goto_if_false @WARROBE_8062
$model_index = get_item_in_shop $temp_var_shops
$component_shops = get_shopping_extra_info $model_index {flag} 1
if 
  has_player_bought_item $model_index
goto_if_false @WARROBE_8048
switch_start $component_shops {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @WARROBE_8048 {caseNum1} 0 {caseLabel1} @WARROBE_7402 {caseNum2} 2 {caseLabel2} @WARROBE_7495 {caseNum3} 3 {caseLabel3} @WARROBE_7587 {caseNum4} 13 {caseLabel4} @WARROBE_7680 {caseNum5} 14 {caseLabel5} @WARROBE_7773 {caseNum6} 15 {caseLabel6} @WARROBE_7866 {caseNum7} 16 {caseLabel7} @WARROBE_7957

:WARROBE_7402
if 
  $number_of_torso_wardrobe == 0
goto_if_false @WARROBE_7488
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'TORSO'
set_var_int_to_constant $body_part_wardrobe($row_number_wardrobe,12i) = 0
set_var_text_label16 $name_of_anim_wardrobe($row_number_wardrobe,12v) = "CLO_POSE_TORSO"
$row_number_wardrobe += 1
$number_of_torso_wardrobe = 1

:WARROBE_7488
goto @WARROBE_8048

:WARROBE_7495
if 
  $number_of_legs_wardrobe == 0
goto_if_false @WARROBE_7580
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'LEGS'
set_var_int_to_constant $body_part_wardrobe($row_number_wardrobe,12i) = 2
set_var_text_label16 $name_of_anim_wardrobe($row_number_wardrobe,12v) = "CLO_POSE_LEGS"
$row_number_wardrobe += 1
$number_of_legs_wardrobe = 1

:WARROBE_7580
goto @WARROBE_8048

:WARROBE_7587
if 
  $number_of_feet_wardrobe == 0
goto_if_false @WARROBE_7673
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'FEET'
set_var_int_to_constant $body_part_wardrobe($row_number_wardrobe,12i) = 3
set_var_text_label16 $name_of_anim_wardrobe($row_number_wardrobe,12v) = "CLO_POSE_SHOES"
$row_number_wardrobe += 1
$number_of_feet_wardrobe = 1

:WARROBE_7673
goto @WARROBE_8048

:WARROBE_7680
if 
  $number_of_chains_wardrobe == 0
goto_if_false @WARROBE_7766
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'CHAINS'
set_var_int_to_constant $body_part_wardrobe($row_number_wardrobe,12i) = 13
set_var_text_label16 $name_of_anim_wardrobe($row_number_wardrobe,12v) = "CLO_POSE_TORSO"
$row_number_wardrobe += 1
$number_of_chains_wardrobe = 1

:WARROBE_7766
goto @WARROBE_8048

:WARROBE_7773
if 
  $number_of_watches_wardrobe == 0
goto_if_false @WARROBE_7859
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'WATCHES'
set_var_int_to_constant $body_part_wardrobe($row_number_wardrobe,12i) = 14
set_var_text_label16 $name_of_anim_wardrobe($row_number_wardrobe,12v) = "CLO_POSE_WATCH"
$row_number_wardrobe += 1
$number_of_watches_wardrobe = 1

:WARROBE_7859
goto @WARROBE_8048

:WARROBE_7866
if 
  $number_of_glasses_wardrobe == 0
goto_if_false @WARROBE_7950
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHADES'
set_var_int_to_constant $body_part_wardrobe($row_number_wardrobe,12i) = 15
set_var_text_label16 $name_of_anim_wardrobe($row_number_wardrobe,12v) = "CLO_POSE_HAT"
$row_number_wardrobe += 1
$number_of_glasses_wardrobe = 1

:WARROBE_7950
goto @WARROBE_8048

:WARROBE_7957
if 
  $number_of_hats_wardrobe == 0
goto_if_false @WARROBE_8041
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'HATS'
set_var_int_to_constant $body_part_wardrobe($row_number_wardrobe,12i) = 16
set_var_text_label16 $name_of_anim_wardrobe($row_number_wardrobe,12v) = "CLO_POSE_HAT"
$row_number_wardrobe += 1
$number_of_hats_wardrobe = 1

:WARROBE_8041
goto @WARROBE_8048

:WARROBE_8048
$temp_var_shops += 1
goto @WARROBE_7286

:WARROBE_8062
set_var_int_to_var_int $temp_var_shops = $row_number_wardrobe

:WARROBE_8070
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_8120
set_var_text_label $menu_item($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_8070

:WARROBE_8120
return 

:WARROBE_8122
if 
  $second_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_8522
print_help_forever 'WARDH2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_8213
$second_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8213
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_8275
$second_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8275
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_8337
$second_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8337
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_8399
$second_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_8454

:WARROBE_8399
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_8454
$second_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_8454
set_menu_column_orientation $second_menu_wardrobe {column} 0 {alignment} Align.Left
set_menu_column $second_menu_wardrobe {column} 0 {title} 'DUMMY' {row0} s$menu_item[0] {row1} s$menu_item[1] {row2} s$menu_item[2] {row3} s$menu_item[3] {row4} s$menu_item[4] {row5} s$menu_item[5] {row6} s$menu_item[6] {row7} s$menu_item[7] {row8} s$menu_item[8] {row9} s$menu_item[9] {row10} s$menu_item[10] {row11} s$menu_item[11]
$second_menu_drawn_wardrobe = 1

:WARROBE_8522
return 

:WARROBE_8524
$temp_var_shops = 0
$row_number_wardrobe = 0
$number_bought_items_in_area = 0
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $body_part_wardrobe($second_menu_item_picked_wardrobe,12i)
$number_of_wardrobe_in_shop = get_number_of_items_in_shop 

:WARROBE_8568
if 
  is_int_var_greater_than_int_var $number_of_wardrobe_in_shop > $temp_var_shops
goto_if_false @WARROBE_8775
$model_index = get_item_in_shop $temp_var_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
if 
  has_player_bought_item $model_index
goto_if_false @WARROBE_8761
if 
  is_int_var_equal_to_int_var $component_shops == $body_part_wardrobe($second_menu_item_picked_wardrobe,12i)
goto_if_false @WARROBE_8761
set_var_int_to_var_int $item_model_index($number_bought_items_in_area,12i) = $model_index
s$wardrobe_name = get_name_of_item $model_index
set_var_text_label $menu_item($number_bought_items_in_area,12s) = s$wardrobe_name
set_var_int_to_var_int $item_modelid($number_bought_items_in_area,12i) = $modelid_shops
set_var_int_to_var_int $area_to_look_at_shops = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_8743
$item_hilight_shops($number_bought_items_in_area,12i) = 0
goto @WARROBE_8754

:WARROBE_8743
$item_hilight_shops($number_bought_items_in_area,12i) = 1

:WARROBE_8754
$number_bought_items_in_area += 1

:WARROBE_8761
$temp_var_shops += 1
goto @WARROBE_8568

:WARROBE_8775
set_var_int_to_var_int $temp_var_shops = $number_bought_items_in_area

:WARROBE_8783
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_8833
set_var_text_label $menu_item($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_8783

:WARROBE_8833
return 

:WARROBE_8835
if 
  $third_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_9290
print_help_forever 'WARDH3'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_8926
$third_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_8926
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_8988
$third_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_8988
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_9050
$third_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_9050
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_9112
$third_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9167

:WARROBE_9112
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_9167
$third_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_9167
set_menu_column_orientation $third_menu_wardrobe {column} 0 {alignment} Align.Left
set_menu_column $third_menu_wardrobe {column} 0 {title} 'DUMMY' {row0} s$menu_item[0] {row1} s$menu_item[1] {row2} s$menu_item[2] {row3} s$menu_item[3] {row4} s$menu_item[4] {row5} s$menu_item[5] {row6} s$menu_item[6] {row7} s$menu_item[7] {row8} s$menu_item[8] {row9} s$menu_item[9] {row10} s$menu_item[10] {row11} s$menu_item[11]
$temp_var_shops = 0

:WARROBE_9235
if 
  is_int_var_greater_than_int_var $number_bought_items_in_area > $temp_var_shops
goto_if_false @WARROBE_9283
activate_menu_item $third_menu_wardrobe {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @WARROBE_9235

:WARROBE_9283
$third_menu_drawn_wardrobe = 1

:WARROBE_9290
return 

:WARROBE_9292
if 
  $main_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_10422
gosub @WARROBE_11522
if 
  $flag_remove_menu_drawn_wardrobe == 1
goto_if_false @WARROBE_9349
delete_menu $remove_menu_wardrobe
clear_help 
$flag_remove_menu_drawn_wardrobe = 0

:WARROBE_9349
if 
  $row_number_wardrobe == 0
goto_if_false @WARROBE_9381
$draw_remove_option_wardrobe = 0
goto @WARROBE_9388

:WARROBE_9381
$draw_remove_option_wardrobe = 1

:WARROBE_9388
$row_number_wardrobe = 0
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_9457
$main_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9457
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_9519
$main_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9519
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_9581
$main_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9581
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_9643
$main_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_9698

:WARROBE_9643
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_9698
$main_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_9698
set_menu_column_orientation $main_menu_wardrobe {column} 0 {alignment} Align.Left
if 
  $flag_bought_from_binco == 1
goto_if_false @WARROBE_9768
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP1'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'CSCHP'
$row_number_wardrobe += 1

:WARROBE_9768
if 
  $flag_bought_from_prolapse == 1
goto_if_false @WARROBE_9829
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP2'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'CSSPRT'
$row_number_wardrobe += 1

:WARROBE_9829
if 
  $flag_bought_from_suburban == 1
goto_if_false @WARROBE_9890
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP3'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'LACS1'
$row_number_wardrobe += 1

:WARROBE_9890
if 
  $flag_bought_from_zip == 1
goto_if_false @WARROBE_9951
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP4'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'CLOTHGP'
$row_number_wardrobe += 1

:WARROBE_9951
if 
  $flag_bought_from_victim == 1
goto_if_false @WARROBE_10012
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP5'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'CSDESGN'
$row_number_wardrobe += 1

:WARROBE_10012
if 
  $flag_bought_from_didiessachs == 1
goto_if_false @WARROBE_10073
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP6'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'CSEXL'
$row_number_wardrobe += 1

:WARROBE_10073
$flag_got_special_clothes_wardrobe = 0
if or
  $flag_player_got_gimp_suit == 1
  $flag_player_got_valet_uniform == 1
  $flag_player_got_casino_uniform == 1
  $flag_got_mechanic_clothes == 1
  $flag_player_got_police_uniform == 1
  $flag_player_got_country_clothes == 1
goto_if_false @WARROBE_10140
$flag_got_special_clothes_wardrobe = 1

:WARROBE_10140
if or
  $flag_got_medic_clothes == 1
  $flag_got_pimp_clothes == 1
goto_if_false @WARROBE_10172
$flag_got_special_clothes_wardrobe = 1

:WARROBE_10172
if 
  $flag_got_special_clothes_wardrobe == 1
goto_if_false @WARROBE_10233
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP7'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'UNIFORM'
$row_number_wardrobe += 1

:WARROBE_10233
if 
  $draw_remove_option_wardrobe == 1
goto_if_false @WARROBE_10294
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'REMCLT'
set_var_text_label $shop_section($row_number_wardrobe,12s) = 'REMOVE'
$row_number_wardrobe += 1

:WARROBE_10294
set_var_int_to_var_int $temp_var_shops = $row_number_wardrobe

:WARROBE_10302
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_10352
set_var_text_label $menu_item($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_10302

:WARROBE_10352
print_help_forever 'WARDH1'
set_menu_column $main_menu_wardrobe {column} 0 {title} 'DUMMY' {row0} s$menu_item[0] {row1} s$menu_item[1] {row2} s$menu_item[2] {row3} s$menu_item[3] {row4} s$menu_item[4] {row5} s$menu_item[5] {row6} s$menu_item[6] {row7} s$menu_item[7] {row8} s$menu_item[8] {row9} s$menu_item[9] {row10} s$menu_item[10] {row11} s$menu_item[11]
$main_menu_drawn_wardrobe = 1

:WARROBE_10422
return 

:WARROBE_10424
if 
  $cost_menu_drawn_shops == 0
goto_if_false @WARROBE_10690
if 
  is_var_text_label_equal_to_text_label $shop_section($shop_main_item_picked_wardrobe,12s) == 'REMOVE'
goto_if_false @WARROBE_10489
print_help_forever 'REMOH2'
goto @WARROBE_10500

:WARROBE_10489
print_help_forever 'WARDH4'

:WARROBE_10500
$cost_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'DUMMY' {row0} s$wardrobe_name {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:WARROBE_10690
return 

:WARROBE_10692
if 
  $bought_menu_drawn_shops == 0
goto_if_false @WARROBE_10906
$bought_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'DUMMY' {row0} 'CHANGED' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:WARROBE_10906
return 

:WARROBE_10908
load_shop "UNIFORM"
load_prices "CLOTHES"
$number_of_wardrobe_in_shop = get_number_of_items_in_shop 
$temp_var_shops = 0
$row_number_wardrobe = 0
$number_bought_items_in_area = 0

:WARROBE_10956
if 
  is_int_var_greater_than_int_var $number_of_wardrobe_in_shop > $temp_var_shops
goto_if_false @WARROBE_11462
$model_index = get_item_in_shop $temp_var_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
set_var_int_to_var_int $item_model_index($number_bought_items_in_area,12i) = $model_index
s$wardrobe_name = get_name_of_item $model_index
set_var_text_label $menu_item($number_bought_items_in_area,12s) = s$wardrobe_name
set_var_int_to_var_int $item_modelid($number_bought_items_in_area,12i) = $modelid_shops
set_var_int_to_constant $area_to_look_at_shops = 17
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.SpecialCostume
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @WARROBE_11104
$item_hilight_shops($number_bought_items_in_area,12i) = 0
goto @WARROBE_11115

:WARROBE_11104
$item_hilight_shops($number_bought_items_in_area,12i) = 1

:WARROBE_11115
if and
  $flag_player_got_gimp_suit == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'GIMP'
goto_if_false @WARROBE_11154
$number_bought_items_in_area += 1

:WARROBE_11154
if and
  $flag_player_got_valet_uniform == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'VALETU'
goto_if_false @WARROBE_11193
$number_bought_items_in_area += 1

:WARROBE_11193
if and
  $flag_player_got_country_clothes == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'COUNTRY'
goto_if_false @WARROBE_11232
$number_bought_items_in_area += 1

:WARROBE_11232
if and
  $flag_player_got_casino_uniform == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'CROUP'
goto_if_false @WARROBE_11271
$number_bought_items_in_area += 1

:WARROBE_11271
if and
  $flag_player_got_police_uniform == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'POLICE'
goto_if_false @WARROBE_11310
$number_bought_items_in_area += 1

:WARROBE_11310
if and
  $flag_got_medic_clothes == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'PAMEDIC'
goto_if_false @WARROBE_11349
$number_bought_items_in_area += 1

:WARROBE_11349
if and
  $flag_got_pimp_clothes == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'PIMPSUT'
goto_if_false @WARROBE_11388
$number_bought_items_in_area += 1

:WARROBE_11388
if and
  $flag_got_mechanic_clothes == 1
  is_var_text_label_equal_to_text_label s$wardrobe_name == 'RDRIVER'
goto_if_false @WARROBE_11427
$number_bought_items_in_area += 1

:WARROBE_11427
set_var_text_label16 v$current_name_of_anim_wardrobe = "CLO_POSE_TORSO"
$temp_var_shops += 1
goto @WARROBE_10956

:WARROBE_11462
set_var_int_to_var_int $temp_var_shops = $number_bought_items_in_area

:WARROBE_11470
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_11520
set_var_text_label $menu_item($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_11470

:WARROBE_11520
return 

:WARROBE_11522
$temp_var_shops = 0
$row_number_wardrobe = 0
if 
  $flag_remove_menu_drawn_wardrobe == 0
goto_if_false @WARROBE_12530
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @WARROBE_11616
$remove_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11616
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @WARROBE_11678
$remove_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11678
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @WARROBE_11740
$remove_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11740
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @WARROBE_11802
$remove_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @WARROBE_11857

:WARROBE_11802
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @WARROBE_11857
$remove_menu_wardrobe = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:WARROBE_11857
set_menu_column_orientation $remove_menu_wardrobe {column} 0 {alignment} Align.Left
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Torso
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_11933
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'TORSO'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 0
$row_number_wardrobe += 1

:WARROBE_11933
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Legs
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12000
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'LEGS'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 2
$row_number_wardrobe += 1

:WARROBE_12000
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Shoes
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12067
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'FEET'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 3
$row_number_wardrobe += 1

:WARROBE_12067
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Necklace
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12134
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'CHAINS'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 13
$row_number_wardrobe += 1

:WARROBE_12134
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.WatchOrBracelet
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12201
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'WATCHES'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 14
$row_number_wardrobe += 1

:WARROBE_12201
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Glasses
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12268
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHADES'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 15
$row_number_wardrobe += 1

:WARROBE_12268
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.Hat
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12335
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'HATS'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 16
$row_number_wardrobe += 1

:WARROBE_12335
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} BodyPart.SpecialCostume
if 
  $player_item_texture_shops <> 0
goto_if_false @WARROBE_12402
set_var_text_label $menu_item($row_number_wardrobe,12s) = 'SHOP7'
set_var_int_to_constant $item_component($row_number_wardrobe,12i) = 17
$row_number_wardrobe += 1

:WARROBE_12402
set_var_int_to_var_int $temp_var_shops = $row_number_wardrobe

:WARROBE_12410
if 
  12 > $temp_var_shops
goto_if_false @WARROBE_12460
set_var_text_label $menu_item($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @WARROBE_12410

:WARROBE_12460
print_help_forever 'REMOH1'
set_menu_column $remove_menu_wardrobe {column} 0 {title} 'DUMMY' {row0} s$menu_item[0] {row1} s$menu_item[1] {row2} s$menu_item[2] {row3} s$menu_item[3] {row4} s$menu_item[4] {row5} s$menu_item[5] {row6} s$menu_item[6] {row7} s$menu_item[7] {row8} s$menu_item[8] {row9} s$menu_item[9] {row10} s$menu_item[10] {row11} s$menu_item[11]
$flag_remove_menu_drawn_wardrobe = 1

:WARROBE_12530
return 
terminate_this_script 

//-------------External script 64 (CLOTHES)---------------

:CLOTH
$number_of_clothes_in_shop = 0
$number_of_clothes_in_area = 0
$area_looked_for_shops = 0
$price_counter = 0
$item_no_shops = 0
$temp_var_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$shop_progress_clothes = 0
$change_doorX = 0.0
$change_doorY = 0.0
$change_doorZ = 0.0
$change_room_door_heading = 0.0
$clothes_offX = 0.0
$clothes_offY = 0.0
$clothes_offZ = 0.0
$change_room_door_heading = 0.0
$clothes_locateX = 0.0
$clothes_locateY = 0.0
$clothes_locateZ = 0.0
$clothes_heading = 0.0
$clothes_camX = 0.0
$clothes_camY = 0.0
$clothes_camZ = 0.0
$clothes_cam_pointX = 0.0
$clothes_cam_pointY = 0.0
$clothes_cam_pointZ = 0.0
$clothes_hat_camX = 0.0
$clothes_hat_camY = 0.0
$clothes_hat_camZ = 0.0
$clothes_hat_cam_pointX = 0.0
$clothes_hat_cam_pointY = 0.0
$clothes_hat_cam_pointZ = 0.0
$shop_keep_clothX = 0.0
$shop_keep_clothY = 0.0
$shop_keep_clothZ = 0.0
$shop_keep_heading_clothes = 0.0
$number_of_items_clothes = 0
$flag_player_in_changing_room = 0
$clothes_heading = 0.0
$clothes_cam_pointX = 0.0
$clothes_cam_pointY = 0.0
$clothes_cam_pointZ = 0.0
$return_animation_time_clothes = 0.0
$object_animation_time_clothes = 0.0
$flag_clothes = 0
$flag_player_use_changing_room = 0
$player_in_view_mode = 0
$shopkeeper_attacked_clothes = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$area_to_look_at_shops = 0
$player_in_changeroom_clothes = 0
$flag_bought_something_clothes = 0
$hash_key_clothes = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_577
set_var_int_to_constant $shopkeeper_model_shops = 211
$shop_door_model_clothes = -371

:CLOTH_577
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_618
set_var_int_to_constant $shopkeeper_model_shops = 211
$shop_door_model_clothes = -370

:CLOTH_618
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_659
set_var_int_to_constant $shopkeeper_model_shops = 217
$shop_door_model_clothes = -372

:CLOTH_659
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_700
set_var_int_to_constant $shopkeeper_model_shops = 211
$shop_door_model_clothes = -373

:CLOTH_700
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_741
set_var_int_to_constant $shopkeeper_model_shops = 211
$shop_door_model_clothes = -374

:CLOTH_741
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_782
set_var_int_to_constant $shopkeeper_model_shops = 217
$shop_door_model_clothes = -375

:CLOTH_782
request_model $shop_door_model_clothes
request_model $shopkeeper_model_shops
load_mission_audio MissionAudioSlot.Slot4 {audioId} 20802
load_all_models_now 
set_deatharrest_state 0
script_name 'CLOTH'

:CLOTH_816
wait 0
if 
  is_player_playing $player1
goto_if_false @CLOTH_6946
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @CLOTH_6932
if 
  $flag_clothes > 0
goto_if_false @CLOTH_945
shut_char_up $scplayer {state} True
if 
  has_language_changed 
goto_if_false @CLOTH_945
clear_help 
delete_menu $main_menu_shops
delete_menu $sub_menu_shops
delete_menu $bought_menu_shops
delete_menu $cost_menu_shops
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$current_Language = get_current_language 

:CLOTH_945
if 
  $flag_clothes == 0
goto_if_false @CLOTH_1900
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_1098
$clothes_offX = 0.0
$clothes_offY = 0.0
$clothes_offZ = 0.0
$shop_keep_clothX = 203.528
$shop_keep_clothY = -41.644
$shop_keep_clothZ = 1000.852
$shop_keep_heading_clothes = 180.0
$clothes_heading = 90.0
$change_room_door_heading = 0.0
set_var_text_label s$stored_clothes_shop = s$shop_name
$number_of_clothes_in_shop = get_number_of_items_in_shop 
$flag_clothes = 1

:CLOTH_1098
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_1233
$clothes_offX = 2.85
$clothes_offY = -57.534
$clothes_offZ = 3.26
$shop_keep_clothX = 208.806
$shop_keep_clothY = -98.713
$shop_keep_clothZ = 1004.297
$shop_keep_heading_clothes = 180.0
$clothes_heading = 90.0
$change_room_door_heading = 0.0
set_var_text_label s$stored_clothes_shop = s$shop_name
$number_of_clothes_in_shop = get_number_of_items_in_shop 
$flag_clothes = 1

:CLOTH_1233
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_1368
$clothes_offX = -12.653
$clothes_offY = -90.758
$clothes_offZ = 1.477
$shop_keep_clothX = 207.018
$shop_keep_clothY = -127.782
$shop_keep_clothZ = 1002.555
$shop_keep_heading_clothes = 180.0
$clothes_heading = 90.0
$change_room_door_heading = 0.0
set_var_text_label s$stored_clothes_shop = s$shop_name
$number_of_clothes_in_shop = get_number_of_items_in_shop 
$flag_clothes = 1

:CLOTH_1368
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_1503
$clothes_offX = -33.204
$clothes_offY = -46.245
$clothes_offZ = 0.0
$shop_keep_clothX = 161.56
$shop_keep_clothY = -81.369
$shop_keep_clothZ = 1000.859
$shop_keep_heading_clothes = 180.0
$clothes_heading = 90.0
$change_room_door_heading = 0.0
set_var_text_label s$stored_clothes_shop = s$shop_name
$number_of_clothes_in_shop = get_number_of_items_in_shop 
$flag_clothes = 1

:CLOTH_1503
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_1765
if 
  $flag_mansion_mission_counter > 3
goto_if_false @CLOTH_1655
$hash_key_clothes = get_hash_key "TSHIRTLOCGREY"
add_price_modifier $hash_key_clothes {price} 15
$hash_key_clothes = get_hash_key "BASKBALLLOC"
add_price_modifier $hash_key_clothes {price} 20
$hash_key_clothes = get_hash_key "TSHIRTMADDGREY"
add_price_modifier $hash_key_clothes {price} 300
$hash_key_clothes = get_hash_key "TSHIRTMADDGRN"
add_price_modifier $hash_key_clothes {price} 300

:CLOTH_1655
$clothes_offX = -5.806
$clothes_offY = 36.733
$clothes_offZ = -0.815
$shop_keep_clothX = 204.836
$shop_keep_clothY = -7.328
$shop_keep_clothZ = 1000.258
$shop_keep_heading_clothes = 270.0
$clothes_heading = 90.0
$change_room_door_heading = 0.0
set_var_text_label s$stored_clothes_shop = s$shop_name
$number_of_clothes_in_shop = get_number_of_items_in_shop 
$flag_clothes = 1

:CLOTH_1765
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_1900
$clothes_offX = 1.2
$clothes_offY = -114.524
$clothes_offZ = -1.51
$shop_keep_clothX = 204.366
$shop_keep_clothY = -157.789
$shop_keep_clothZ = 999.563
$shop_keep_heading_clothes = 180.0
$clothes_heading = 90.0
$change_room_door_heading = 0.0
set_var_text_label s$stored_clothes_shop = s$shop_name
$number_of_clothes_in_shop = get_number_of_items_in_shop 
$flag_clothes = 1

:CLOTH_1900
if 
  $flag_clothes == 1
goto_if_false @CLOTH_2351
use_text_commands True
show_update_stats False
$clothes_camX = 212.8715
add_float_var_to_float_var $clothes_camX += $clothes_offX
$clothes_camY = -42.8156
add_float_var_to_float_var $clothes_camY += $clothes_offY
$clothes_camZ = 1002.116
add_float_var_to_float_var $clothes_camZ += $clothes_offZ
$clothes_cam_pointX = 213.4791
add_float_var_to_float_var $clothes_cam_pointX += $clothes_offX
$clothes_cam_pointY = -42.0238
add_float_var_to_float_var $clothes_cam_pointY += $clothes_offY
$clothes_cam_pointZ = 1002.053
add_float_var_to_float_var $clothes_cam_pointZ += $clothes_offZ
$clothes_hat_camX = 214.5148
add_float_var_to_float_var $clothes_hat_camX += $clothes_offX
$clothes_hat_camY = -41.6106
add_float_var_to_float_var $clothes_hat_camY += $clothes_offY
$clothes_hat_camZ = 1002.494
add_float_var_to_float_var $clothes_hat_camZ += $clothes_offZ
$clothes_hat_cam_pointX = 214.5367
add_float_var_to_float_var $clothes_hat_cam_pointX += $clothes_offX
$clothes_hat_cam_pointY = -40.6175
add_float_var_to_float_var $clothes_hat_cam_pointY += $clothes_offY
$clothes_hat_cam_pointZ = 1002.609
add_float_var_to_float_var $clothes_hat_cam_pointZ += $clothes_offZ
$clothes_locateX = 214.622
add_float_var_to_float_var $clothes_locateX += $clothes_offX
$clothes_locateY = -40.652
add_float_var_to_float_var $clothes_locateY += $clothes_offY
$clothes_locateZ = 1001.033
add_float_var_to_float_var $clothes_locateZ += $clothes_offZ
$change_doorX = 213.874
add_float_var_to_float_var $change_doorX += $clothes_offX
$change_doorY = -39.811
add_float_var_to_float_var $change_doorY += $clothes_offY
$change_doorZ = 1002.2
add_float_var_to_float_var $change_doorZ += $clothes_offZ
$shop_keep_clothes = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $shop_keep_clothX {y} $shop_keep_clothY {z} $shop_keep_clothZ
set_char_only_damaged_by_player $shop_keep_clothes {state} True
set_char_decision_maker $shop_keep_clothes {handleOrTemplate} DecisionMakerCharTemplate.Empty
set_char_heading $shop_keep_clothes {heading} $shop_keep_heading_clothes
$shopkeeper_attacked_clothes = 0
$changing_room_door = create_object_no_offset $shop_door_model_clothes {x} $change_doorX {y} $change_doorY {z} $change_doorZ
set_object_heading $changing_room_door {heading} $change_room_door_heading
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.WelcomeToShop
$blob_flag_shop = 1
$flag_clothes = 2

:CLOTH_2351
if 
  $flag_clothes == 2
goto_if_false @CLOTH_2767
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_2400
gosub @CLOTH_7234

:CLOTH_2400
if 
  not is_char_dead $shop_keep_clothes
goto_if_false @CLOTH_2722
if 
  $shopkeeper_attacked_clothes == 0
goto_if_false @CLOTH_2670
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_clothes
  has_char_been_damaged_by_weapon $shop_keep_clothes {weaponType} WeaponType.AnyWeapon
  $iSetClothesPanic == 1
goto_if_false @CLOTH_2504
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.ShopClosed
task_hands_up $shop_keep_clothes {time} -2
$shopkeeper_attacked_clothes = 1
goto @CLOTH_2577

:CLOTH_2504
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $clothes_locateX {y} $clothes_locateY {z} $clothes_locateZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @CLOTH_2577
if 
  can_player_start_mission $player1
goto_if_false @CLOTH_2577
$flag_clothes = 3

:CLOTH_2577
if 
  $flag_player_use_changing_room == 0
goto_if_false @CLOTH_2663
if 
  locate_char_on_foot_char_3d $scplayer {target} $shop_keep_clothes {xRadius} 8.0 {yRadius} 8.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @CLOTH_2656
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.ShowChangingroom
$flag_player_use_changing_room = 1
goto @CLOTH_2663

:CLOTH_2656
$flag_player_use_changing_room = 0

:CLOTH_2663
goto @CLOTH_2715

:CLOTH_2670
gosub @CLOTH_6960
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_2708
gosub @CLOTH_7234

:CLOTH_2708
goto @CLOTH_816

:CLOTH_2715
goto @CLOTH_2767

:CLOTH_2722
gosub @CLOTH_6960
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_2760
gosub @CLOTH_7234

:CLOTH_2760
goto @CLOTH_816

:CLOTH_2767
if 
  $flag_clothes == 3
goto_if_false @CLOTH_2902
if 
  is_player_playing $player1
goto_if_false @CLOTH_2888
set_player_control $player1 {state} False
set_minigame_in_progress True
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
display_radar False
TIMERA = 0
$shop_progress_clothes = 0
$flag_clothes = 4
goto @CLOTH_2902

:CLOTH_2888
gosub @CLOTH_7234
goto @CLOTH_816

:CLOTH_2902
if 
  $flag_clothes == 4
goto_if_false @CLOTH_3415
if 
  is_char_dead $shop_keep_clothes
goto_if_false @CLOTH_2981
gosub @CLOTH_6960
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_2974
gosub @CLOTH_7234

:CLOTH_2974
goto @CLOTH_816

:CLOTH_2981
if 
  $shop_progress_clothes == 0
goto_if_false @CLOTH_3322
if 
  TIMERA >= 300
goto_if_false @CLOTH_3322
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_char_coordinates_dont_warp_gang $scplayer {x} $clothes_locateX {y} $clothes_locateY {z} $clothes_locateZ
set_char_heading $scplayer {heading} $clothes_heading
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$temp_shopX, $temp_shopY, $temp_shopZ = get_char_coordinates $shop_keep_clothes
if or
  not is_float_var_equal_to_float_var $temp_shopX == $shop_keep_clothX
  not is_float_var_equal_to_float_var $temp_shopY == $shop_keep_clothY
  not is_float_var_equal_to_float_var $temp_shopZ == $shop_keep_clothZ
goto_if_false @CLOTH_3132
set_char_coordinates $shop_keep_clothes {x} $shop_keep_clothX {y} $shop_keep_clothY {z} $shop_keep_clothZ
set_char_heading $shop_keep_clothes {heading} $shop_keep_heading_clothes

:CLOTH_3132
set_fixed_camera_position $clothes_camX {y} $clothes_camY {z} $clothes_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $clothes_cam_pointX {y} $clothes_cam_pointY {z} $clothes_cam_pointZ {switchStyle} SwitchType.JumpCut
store_clothes_state 
task_play_anim_non_interruptable $scplayer {animationName} "CLO_IN" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_clothes = 0.0
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @CLOTH_3260
$return_animation_time_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:CLOTH_3260
if 
  does_object_exist $changing_room_door
goto_if_false @CLOTH_3315
play_object_anim $changing_room_door {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 4.0 {lockF} False {loop} True

:CLOTH_3315
$shop_progress_clothes = 1

:CLOTH_3322
if 
  $shop_progress_clothes == 1
goto_if_false @CLOTH_3415
if 
  is_char_playing_anim $scplayer {animationName} "CLO_IN"
goto_if_false @CLOTH_3380
$return_animation_time_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_IN"

:CLOTH_3380
if 
  $return_animation_time_clothes == 1.0
goto_if_false @CLOTH_3415
$shop_progress_clothes = 0
$flag_clothes = 5

:CLOTH_3415
if 
  $flag_clothes == 5
goto_if_false @CLOTH_4103
if 
  is_char_dead $shop_keep_clothes
goto_if_false @CLOTH_3494
gosub @CLOTH_6960
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_3487
gosub @CLOTH_7234

:CLOTH_3487
goto @CLOTH_816

:CLOTH_3494
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_3537
if 
  1 > $shop_progress_clothes
goto_if_false @CLOTH_3537
gosub @CLOTH_8450

:CLOTH_3537
$blob_flag_shop = 0
if 
  $shop_progress_clothes == 0
goto_if_false @CLOTH_3610
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_3586
$shop_progress_clothes = 1

:CLOTH_3586
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_3610
$shop_progress_clothes = 2

:CLOTH_3610
if 
  $shop_progress_clothes == 1
goto_if_false @CLOTH_3731
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_3731
$shop_main_item_picked_shops = get_menu_item_accepted $main_menu_shops
if 
  0 > $shop_main_item_picked_shops
goto_if_false @CLOTH_3678
$shop_main_item_picked_shops = 0

:CLOTH_3678
gosub @CLOTH_7594
$flag_clothes = 6
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_3724
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_3724
$shop_progress_clothes = 0

:CLOTH_3731
if 
  $shop_progress_clothes == 2
goto_if_false @CLOTH_3939
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_3939
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_3798
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_3798
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_3830
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_3830
task_play_anim_non_interruptable $scplayer {animationName} "CLO_OUT" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_clothes = 0.0
if 
  does_object_exist $changing_room_door
goto_if_false @CLOTH_3932
play_object_anim $changing_room_door {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:CLOTH_3932
$shop_progress_clothes = 5

:CLOTH_3939
if 
  $shop_progress_clothes == 5
goto_if_false @CLOTH_4027
if 
  is_char_playing_anim $scplayer {animationName} "CLO_OUT"
goto_if_false @CLOTH_3999
$return_animation_time_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_OUT"

:CLOTH_3999
if 
  $return_animation_time_clothes == 1.0
goto_if_false @CLOTH_4027
$shop_progress_clothes = 6

:CLOTH_4027
if 
  $shop_progress_clothes == 6
goto_if_false @CLOTH_4103
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 
display_radar True
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.ThanksForCustom
$player_in_changeroom_clothes = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$flag_clothes = 8

:CLOTH_4103
if 
  $flag_clothes == 6
goto_if_false @CLOTH_5223
if 
  is_char_dead $shop_keep_clothes
goto_if_false @CLOTH_4182
gosub @CLOTH_6960
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_4175
gosub @CLOTH_7234

:CLOTH_4175
goto @CLOTH_816

:CLOTH_4182
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_4225
if 
  2 > $shop_progress_clothes
goto_if_false @CLOTH_4225
gosub @CLOTH_9020

:CLOTH_4225
$blob_flag_shop = 0
if 
  $shop_progress_clothes == 0
goto_if_false @CLOTH_4583
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_4274
$shop_progress_clothes = 1

:CLOTH_4274
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_4583
$player_in_changeroom_clothes = 0
$shop_sub_item_picked_shops = get_menu_item_selected $sub_menu_shops
if 
  0 > $shop_sub_item_picked_shops
goto_if_false @CLOTH_4331
$shop_sub_item_picked_shops = 0

:CLOTH_4331
set_var_int_to_var_int $model_index = $item_model_index($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $clothes_price = $item_price($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $modelid_shops = $item_modelid($shop_sub_item_picked_shops,12i)
set_var_int_to_var_int $component_shops = $item_component($shop_sub_item_picked_shops,12i)
set_var_text_label s$clothes_name = $item_text_label($shop_sub_item_picked_shops,12s)
if or
  is_int_var_equal_to_constant $component_shops == 13
  is_int_var_equal_to_constant $component_shops == 14
  is_int_var_equal_to_constant $component_shops == 15
  is_int_var_equal_to_constant $component_shops == 16
goto_if_false @CLOTH_4476
set_fixed_camera_position $clothes_hat_camX {y} $clothes_hat_camY {z} $clothes_hat_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $clothes_hat_cam_pointX {y} $clothes_hat_cam_pointY {z} $clothes_hat_cam_pointZ {switchStyle} SwitchType.JumpCut
goto @CLOTH_4544

:CLOTH_4476
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 0
  is_int_var_equal_to_constant $area_to_look_at_shops == 2
goto_if_false @CLOTH_4505
play_mission_audio MissionAudioSlot.Slot4

:CLOTH_4505
set_fixed_camera_position $clothes_camX {y} $clothes_camY {z} $clothes_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $clothes_cam_pointX {y} $clothes_cam_pointY {z} $clothes_cam_pointZ {switchStyle} SwitchType.JumpCut

:CLOTH_4544
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_4576
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_4576
$shop_progress_clothes = 2

:CLOTH_4583
if 
  $shop_progress_clothes == 1
goto_if_false @CLOTH_4689
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_4689
$shop_progress_clothes = 0
$flag_clothes = 5
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_4664
clear_help 
delete_menu $sub_menu_shops
$sub_menu_drawn_shops = 0

:CLOTH_4664
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_4689
gosub @CLOTH_8450

:CLOTH_4689
if 
  $shop_progress_clothes == 2
goto_if_false @CLOTH_4746
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @CLOTH_4746
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_4746
$shop_progress_clothes = 3

:CLOTH_4746
if 
  $shop_progress_clothes == 3
goto_if_false @CLOTH_4941
if or
  is_int_var_equal_to_constant $area_to_look_at_shops == 0
  is_int_var_equal_to_constant $area_to_look_at_shops == 2
  is_int_var_equal_to_constant $area_to_look_at_shops == 3
goto_if_false @CLOTH_4809
give_player_clothes $player1 {textureHash} 0 {modelHash} 0 {bodyPart} BodyPart.SpecialCostume
store_clothes_state 

:CLOTH_4809
give_player_clothes $player1 {textureHash} $model_index {modelHash} $modelid_shops {bodyPart} $component_shops
build_player_model $player1
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_IN" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_clothes = 0.0
if 
  does_object_exist $changing_room_door
goto_if_false @CLOTH_4934
play_object_anim $changing_room_door {animationName} "CLO_POSE_IN_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:CLOTH_4934
$shop_progress_clothes = 4

:CLOTH_4941
if 
  $shop_progress_clothes == 4
goto_if_false @CLOTH_5079
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_IN"
goto_if_false @CLOTH_5009
$return_animation_time_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_IN"

:CLOTH_5009
if 
  $return_animation_time_clothes == 1.0
goto_if_false @CLOTH_5079
task_play_anim_non_interruptable $scplayer {animationName} v$name_of_anim_clothes {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_clothes = 0.0
$shop_progress_clothes = 5

:CLOTH_5079
if 
  $shop_progress_clothes == 5
goto_if_false @CLOTH_5223
if 
  is_char_playing_anim $scplayer {animationName} v$name_of_anim_clothes
goto_if_false @CLOTH_5127
$return_animation_time_clothes = get_char_anim_current_time $scplayer {animationName} v$name_of_anim_clothes

:CLOTH_5127
if 
  $return_animation_time_clothes == 1.0
goto_if_false @CLOTH_5223
gosub @CLOTH_9570
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_clothes = 0.0
$flag_clothes = 7
$shop_progress_clothes = 0

:CLOTH_5223
if 
  $flag_clothes == 7
goto_if_false @CLOTH_6638
if 
  is_char_dead $shop_keep_clothes
goto_if_false @CLOTH_5302
gosub @CLOTH_6960
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_5295
gosub @CLOTH_7234

:CLOTH_5295
goto @CLOTH_816

:CLOTH_5302
$blob_flag_shop = 0
if 
  $shop_progress_clothes == 0
goto_if_false @CLOTH_5607
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_5412
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$flag_bought_something_clothes = 0
$shop_progress_clothes = 1

:CLOTH_5412
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CLOTH_5607
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$flag_bought_something_clothes = 0
gosub @CLOTH_8109
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_5529
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_5529
if 
  $player_in_changeroom_clothes == 0
goto_if_false @CLOTH_5561
$shop_progress_clothes = 3
goto @CLOTH_5607

:CLOTH_5561
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_5593
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_5593
$shop_progress_clothes = 0
$flag_clothes = 6

:CLOTH_5607
if 
  2 > $shop_progress_clothes
goto_if_false @CLOTH_5632
gosub @CLOTH_9570

:CLOTH_5632
if 
  $shop_progress_clothes == 1
goto_if_false @CLOTH_6032
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CLOTH_6032
$players_money = store_score $player1
if 
  is_int_var_greater_or_equal_to_int_var $players_money >= $clothes_price
goto_if_false @CLOTH_5959
if 
  not is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @CLOTH_5879
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_5745
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_5745
buy_item $model_index
$flag_bought_something_clothes = 1
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.GiveProduct
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
gosub @CLOTH_9945
gosub @CLOTH_10315
store_clothes_state 
build_player_model $player1
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
task_play_anim_non_interruptable $scplayer {animationName} "CLO_BUY" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_clothes = 0.0
$shop_progress_clothes = 2
goto @CLOTH_5952

:CLOTH_5879
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CLOTH_5952
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.BoughtEnough
print_now 'CLTHNO2' {time} 5000 {flag} 1
$shop_progress_clothes = 0
$flag_bought_item_already_shops = 1

:CLOTH_5952
goto @CLOTH_6032

:CLOTH_5959
if 
  $flag_no_money_shops == 0
goto_if_false @CLOTH_6032
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.NoMoney
print_now 'SHOPNO' {time} 5000 {flag} 1
$shop_progress_clothes = 0
$flag_no_money_shops = 1

:CLOTH_6032
if 
  $shop_progress_clothes == 2
goto_if_false @CLOTH_6174
if 
  is_char_playing_anim $scplayer {animationName} "CLO_BUY"
goto_if_false @CLOTH_6092
$return_animation_time_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_BUY"

:CLOTH_6092
if 
  $return_animation_time_clothes == 1.0
goto_if_false @CLOTH_6174
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_LOOP" {animationFile} "CLOTHES" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_clothes = 0.0
$shop_progress_clothes = 3

:CLOTH_6174
if 
  $shop_progress_clothes == 3
goto_if_false @CLOTH_6307
task_play_anim_non_interruptable $scplayer {animationName} "CLO_POSE_OUT" {animationFile} "CLOTHES" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_clothes = 0.0
if 
  does_object_exist $changing_room_door
goto_if_false @CLOTH_6300
play_object_anim $changing_room_door {animationName} "CLO_POSE_OUT_O" {animationFile} "CLOTHES" {frameDelta} 1000.0 {lockF} False {loop} True

:CLOTH_6300
$shop_progress_clothes = 4

:CLOTH_6307
if 
  $shop_progress_clothes == 4
goto_if_false @CLOTH_6638
if 
  is_char_playing_anim $scplayer {animationName} "CLO_POSE_OUT"
goto_if_false @CLOTH_6377
$return_animation_time_clothes = get_char_anim_current_time $scplayer {animationName} "CLO_POSE_OUT"

:CLOTH_6377
if 
  $return_animation_time_clothes == 1.0
goto_if_false @CLOTH_6638
restore_clothes_state 
build_player_model $player1
store_clothes_state 
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_6439
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_6439
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_6471
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_6471
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_6503
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_6503
$player_in_changeroom_clothes = 1
if 
  $flag_bought_something_clothes == 1
goto_if_false @CLOTH_6592
$shop_progress_clothes = 0
$flag_clothes = 5
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_6585
if 
  1 > $shop_progress_clothes
goto_if_false @CLOTH_6585
gosub @CLOTH_8450

:CLOTH_6585
goto @CLOTH_6638

:CLOTH_6592
$shop_progress_clothes = 0
$flag_clothes = 6
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_6638
gosub @CLOTH_8109
gosub @CLOTH_9020

:CLOTH_6638
if 
  $flag_clothes == 8
goto_if_false @CLOTH_6925
if 
  is_char_dead $shop_keep_clothes
goto_if_false @CLOTH_6717
gosub @CLOTH_6960
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_clothes_shop
goto_if_false @CLOTH_6710
gosub @CLOTH_7234

:CLOTH_6710
goto @CLOTH_816

:CLOTH_6717
if 
  $shopkeeper_attacked_clothes == 0
goto_if_false @CLOTH_6798
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_clothes
  has_char_been_damaged_by_weapon $shop_keep_clothes {weaponType} WeaponType.AnyWeapon
  $iSetClothesPanic == 1
goto_if_false @CLOTH_6798
$sample_name_shops = set_char_say_context $shop_keep_clothes {phrase} SpeechId.ShopClosed
task_hands_up $shop_keep_clothes {time} -2
$shopkeeper_attacked_clothes = 1

:CLOTH_6798
if 
  not locate_char_on_foot_3d $scplayer {x} $clothes_locateX {y} $clothes_locateY {z} $clothes_locateZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @CLOTH_6925
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$flag_clothes = 2
$shop_progress_clothes = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_bought_something_clothes = 0
$blob_flag_shop = 1

:CLOTH_6925
goto @CLOTH_6939

:CLOTH_6932
gosub @CLOTH_7234

:CLOTH_6939
goto @CLOTH_6953

:CLOTH_6946
gosub @CLOTH_7234

:CLOTH_6953
goto @CLOTH_816

:CLOTH_6960
if 
  $flag_clothes >= 1
goto_if_false @CLOTH_6980
clear_help 

:CLOTH_6980
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_7012
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_7012
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_7044
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_7044
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_7076
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_7076
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_7108
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_7108
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$shop_progress_clothes = 0
$player_in_changeroom_clothes = 0
$flag_bought_something_clothes = 0
$flag_clothes = 2
return 

:CLOTH_7234
if 
  $main_menu_drawn_shops == 1
goto_if_false @CLOTH_7266
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CLOTH_7266
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CLOTH_7298
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CLOTH_7298
if 
  $bought_menu_drawn_shops == 1
goto_if_false @CLOTH_7330
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:CLOTH_7330
if 
  $cost_menu_drawn_shops == 1
goto_if_false @CLOTH_7362
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:CLOTH_7362
if 
  $flag_clothes >= 1
goto_if_false @CLOTH_7382
clear_help 

:CLOTH_7382
clear_this_print 'SHOPNO'
clear_this_print 'CLTHNO2'
clear_this_print 'CLTHNO1'
$player_in_changeroom_clothes = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$shop_main_item_picked_shops = 0
$shop_sub_item_picked_shops = 0
$blob_flag_shop = 1
$flag_player_use_changing_room = 0
$shopkeeper_attacked_clothes = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_player_owned_item_shops = 0
$flag_bought_something_clothes = 0
$shop_progress_clothes = 0
$flag_clothes = 0
delete_object $changing_room_door
mark_model_as_no_longer_needed $shop_door_model_clothes
delete_char $shop_keep_clothes
mark_model_as_no_longer_needed $shopkeeper_model_shops
use_text_commands False
display_radar True
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
if 
  is_player_playing $player1
goto_if_false @CLOTH_7590
shut_char_up $scplayer {state} False

:CLOTH_7590
terminate_this_script 
return 

:CLOTH_7594
if 
  $shop_main_item_picked_shops == 0
goto_if_false @CLOTH_7668
$area_looked_for_shops = 0
set_var_int_to_constant $area_to_look_at_shops = 0
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8109
set_var_text_label16 v$name_of_anim_clothes = "CLO_POSE_TORSO"

:CLOTH_7668
if 
  $shop_main_item_picked_shops == 1
goto_if_false @CLOTH_7741
$area_looked_for_shops = 2
set_var_int_to_constant $area_to_look_at_shops = 2
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8109
set_var_text_label16 v$name_of_anim_clothes = "CLO_POSE_LEGS"

:CLOTH_7741
if 
  $shop_main_item_picked_shops == 2
goto_if_false @CLOTH_7815
$area_looked_for_shops = 3
set_var_int_to_constant $area_to_look_at_shops = 3
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8109
set_var_text_label16 v$name_of_anim_clothes = "CLO_POSE_SHOES"

:CLOTH_7815
if 
  $shop_main_item_picked_shops == 3
goto_if_false @CLOTH_7889
$area_looked_for_shops = 13
set_var_int_to_constant $area_to_look_at_shops = 13
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8109
set_var_text_label16 v$name_of_anim_clothes = "CLO_POSE_TORSO"

:CLOTH_7889
if 
  $shop_main_item_picked_shops == 4
goto_if_false @CLOTH_7963
$area_looked_for_shops = 14
set_var_int_to_constant $area_to_look_at_shops = 14
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8109
set_var_text_label16 v$name_of_anim_clothes = "CLO_POSE_WATCH"

:CLOTH_7963
if 
  $shop_main_item_picked_shops == 5
goto_if_false @CLOTH_8035
$area_looked_for_shops = 15
set_var_int_to_constant $area_to_look_at_shops = 15
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8109
set_var_text_label16 v$name_of_anim_clothes = "CLO_POSE_HAT"

:CLOTH_8035
if 
  $shop_main_item_picked_shops == 6
goto_if_false @CLOTH_8107
$area_looked_for_shops = 16
set_var_int_to_constant $area_to_look_at_shops = 16
$player_item_texture_shops, $player_item_model_shops = get_clothes_item $player1 {bodyPart} $area_to_look_at_shops
gosub @CLOTH_8109
set_var_text_label16 v$name_of_anim_clothes = "CLO_POSE_HAT"

:CLOTH_8107
return 

:CLOTH_8109
$item_no_shops = 0
$number_of_clothes_in_area = 0

:CLOTH_8123
if 
  is_int_var_greater_than_int_var $number_of_clothes_in_shop > $item_no_shops
goto_if_false @CLOTH_8368
$model_index = get_item_in_shop $item_no_shops
$modelid_shops = get_shopping_extra_info $model_index {flag} 0
$component_shops = get_shopping_extra_info $model_index {flag} 1
if 
  is_int_var_equal_to_int_var $component_shops == $area_looked_for_shops
goto_if_false @CLOTH_8354
set_var_int_to_var_int $item_model_index($number_of_clothes_in_area,12i) = $model_index
s$clothes_name = get_name_of_item $model_index
$clothes_price = get_price_of_item $model_index
set_var_int_to_var_int $item_price($number_of_clothes_in_area,12i) = $clothes_price
set_var_text_label $item_text_label($number_of_clothes_in_area,12s) = s$clothes_name
set_var_int_to_var_int $item_modelid($number_of_clothes_in_area,12i) = $modelid_shops
set_var_int_to_var_int $item_component($number_of_clothes_in_area,12i) = $component_shops
if 
  is_int_var_equal_to_int_var $player_item_texture_shops == $model_index
goto_if_false @CLOTH_8302
$item_hilight_shops($number_of_clothes_in_area,12i) = 0
goto @CLOTH_8347

:CLOTH_8302
if 
  has_player_bought_item $model_index
goto_if_false @CLOTH_8336
$item_hilight_shops($number_of_clothes_in_area,12i) = 1
goto @CLOTH_8347

:CLOTH_8336
$item_hilight_shops($number_of_clothes_in_area,12i) = 2

:CLOTH_8347
$number_of_clothes_in_area += 1

:CLOTH_8354
$item_no_shops += 1
goto @CLOTH_8123

:CLOTH_8368
set_var_int_to_var_int $temp_var_shops = $number_of_clothes_in_area

:CLOTH_8376
if 
  12 > $temp_var_shops
goto_if_false @CLOTH_8448
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @CLOTH_8376

:CLOTH_8448
return 

:CLOTH_8450
if 
  $main_menu_drawn_shops == 0
goto_if_false @CLOTH_9018
print_help_forever 'CLOTHA'
set_var_text_label s$ITEM1 = 'TORSO'
set_var_text_label s$ITEM2 = 'LEGS'
set_var_text_label s$ITEM3 = 'FEET'
set_var_text_label s$ITEM4 = 'CHAINS'
set_var_text_label s$ITEM5 = 'WATCHES'
set_var_text_label s$ITEM6 = 'SHADES'
set_var_text_label s$ITEM7 = 'HATS'
set_var_text_label s$ITEM8 = 'DUMMY'
set_var_text_label s$ITEM9 = 'DUMMY'
set_var_text_label s$ITEM10 = 'DUMMY'
set_var_text_label s$ITEM11 = 'DUMMY'
set_var_text_label s$ITEM12 = 'DUMMY'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CLOTH_8709
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8950

:CLOTH_8709
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CLOTH_8771
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8950

:CLOTH_8771
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CLOTH_8833
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8950

:CLOTH_8833
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CLOTH_8895
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_8950

:CLOTH_8895
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CLOTH_8950
$main_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CLOTH_8950
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$ITEM1 {row1} s$ITEM2 {row2} s$ITEM3 {row3} s$ITEM4 {row4} s$ITEM5 {row5} s$ITEM6 {row6} s$ITEM7 {row7} s$ITEM8 {row8} s$ITEM9 {row9} s$ITEM10 {row10} s$ITEM11 {row11} s$ITEM12
$main_menu_drawn_shops = 1

:CLOTH_9018
return 

:CLOTH_9020
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CLOTH_9568
print_help_forever 'CLOTHB'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CLOTH_9111
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9352

:CLOTH_9111
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CLOTH_9173
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9352

:CLOTH_9173
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CLOTH_9235
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9352

:CLOTH_9235
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CLOTH_9297
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CLOTH_9352

:CLOTH_9297
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CLOTH_9352
$sub_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CLOTH_9352
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$temp_var_shops = 0

:CLOTH_9420
if 
  is_int_var_greater_than_int_var $number_of_clothes_in_area > $temp_var_shops
goto_if_false @CLOTH_9561
if 
  $item_hilight_shops($temp_var_shops,12i) == 0
goto_if_false @CLOTH_9488
highlight_menu_item $sub_menu_shops {row} $temp_var_shops {state} False
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} False
goto @CLOTH_9547

:CLOTH_9488
if 
  $item_hilight_shops($temp_var_shops,12i) == 1
goto_if_false @CLOTH_9527
highlight_menu_item $sub_menu_shops {row} $temp_var_shops {state} True
goto @CLOTH_9547

:CLOTH_9527
highlight_menu_item $sub_menu_shops {row} $temp_var_shops {state} False
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} True

:CLOTH_9547
$temp_var_shops += 1
goto @CLOTH_9420

:CLOTH_9561
$sub_menu_drawn_shops = 1

:CLOTH_9568
return 

:CLOTH_9570
if 
  $cost_menu_drawn_shops == 0
goto_if_false @CLOTH_9943
print_help_forever 'CLOTHC'
$cost_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 95.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'CLOTCHO' {row0} s$clothes_name {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $clothes_price
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:CLOTH_9943
return 

:CLOTH_9945
if 
  $bought_menu_drawn_shops == 0
goto_if_false @CLOTH_10313
$bought_menu_shops = create_menu 'CLOTCHO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'CLOTCHO' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $clothes_price
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:CLOTH_10313
return 

:CLOTH_10315
if 
  $flag_bought_from_binco == 0
goto_if_false @CLOTH_10365
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSCHP'
goto_if_false @CLOTH_10365
$flag_bought_from_binco = 1

:CLOTH_10365
if 
  $flag_bought_from_prolapse == 0
goto_if_false @CLOTH_10415
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSSPRT'
goto_if_false @CLOTH_10415
$flag_bought_from_prolapse = 1

:CLOTH_10415
if 
  $flag_bought_from_suburban == 0
goto_if_false @CLOTH_10465
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'LACS1'
goto_if_false @CLOTH_10465
$flag_bought_from_suburban = 1

:CLOTH_10465
if 
  $flag_bought_from_zip == 0
goto_if_false @CLOTH_10515
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CLOTHGP'
goto_if_false @CLOTH_10515
$flag_bought_from_zip = 1

:CLOTH_10515
if 
  $flag_bought_from_victim == 0
goto_if_false @CLOTH_10565
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSDESGN'
goto_if_false @CLOTH_10565
$flag_bought_from_victim = 1

:CLOTH_10565
if 
  $flag_bought_from_didiessachs == 0
goto_if_false @CLOTH_10615
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'CSEXL'
goto_if_false @CLOTH_10615
$flag_bought_from_didiessachs = 1

:CLOTH_10615
return 
terminate_this_script 

//-------------External script 65 (JUNKFUD)---------------

:JFUD
$junkfud_offsetX = 0.0
$junkfud_offsetY = 0.0
$junkfud_offsetZ = 0.0
$junkfud_heading_offset = 0.0
$junkfud_cam_offX = 0.0
$junkfud_cam_offY = 0.0
$junkfud_cam_offZ = 0.0
$cam_point_junkfudX = 0.0
$cam_point_junkfudY = 0.0
$cam_point_junnkfudZ = 0.0
$vomit_camX = 0.0
$vomit_camY = 0.0
$vomit_camZ = 0.0
$vomit_cam_point_junkfudX = 0.0
$vomit_cam_point_junkfudY = 0.0
$vomit_cam_point_junnkfudZ = 0.0
$flag_vomit_playing_food = 0
$food_heading = 0.0
$shop_item_price = 0
$vomitX = 0.0
$vomitY = 0.0
$vomitZ = 0.0
$pish_flag = 0
$skip_shopping_wait = 0
$found_a_food_shop = 0
$flag_ate_too_much_food = 0
$flag_bought_some_food = 0
$flag_attacked_keeper_food = 0
$return_animation_time_food = 0.0
$blob_flag_shop = 1
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_no_money_shops = 0
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_358
set_var_int_to_constant $shopkeeper_model_shops = 155
$foodsmall_junkfud = -376
$foodmed_junkfud = -377
$foodlarge_junkfud = -57
$foodhealthy_junkfud = -378

:JFUD_358
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_423
set_var_int_to_constant $shopkeeper_model_shops = 167
$foodsmall_junkfud = -379
$foodmed_junkfud = -380
$foodlarge_junkfud = -381
$foodhealthy_junkfud = -382

:JFUD_423
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_487
set_var_int_to_constant $shopkeeper_model_shops = 205
$foodsmall_junkfud = -383
$foodmed_junkfud = -384
$foodlarge_junkfud = -60
$foodhealthy_junkfud = -385

:JFUD_487
request_model $foodsmall_junkfud
request_model $foodmed_junkfud
request_model $foodlarge_junkfud
request_model $foodhealthy_junkfud
load_mission_audio MissionAudioSlot.Slot4 {audioId} 1828
request_model $shopkeeper_model_shops
load_all_models_now 
set_deatharrest_state 0
if 
  $pish_flag == 1000000
goto_if_false @JFUD_563
$ffood_obj = create_object $model_index {x} $tray_offX {y} $tray_offY {z} $tray_offZ

:JFUD_563
script_name 'JFUD'

:JFUD_574
wait 0
if 
  is_player_playing $player1
goto_if_false @JFUD_9696
if 
  not is_var_text_label_empty s$shop_name
goto_if_false @JFUD_9682
if 
  $flag_food > 0
goto_if_false @JFUD_672
if 
  has_language_changed 
goto_if_false @JFUD_672
clear_help 
delete_menu $cost_menu_shops
delete_menu $bought_menu_shops
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$current_Language = get_current_language 

:JFUD_672
if 
  $flag_food == 0
goto_if_false @JFUD_1005
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_795
$num_of_food_stuffs = get_number_of_items_in_shop 
$junkfud_offsetX = 0.0
$junkfud_offsetY = 0.0
$junkfud_offsetZ = 0.0
$junkfud_heading_offset = 0.0
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
set_var_text_label s$stored_shop = s$shop_name
$flag_food = 1

:JFUD_795
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_900
$num_of_food_stuffs = get_number_of_items_in_shop 
$junkfud_offsetX = -5.211
$junkfud_offsetY = 112.784
$junkfud_offsetZ = 0.3
$junkfud_heading_offset = 0.0
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
set_var_text_label s$stored_shop = s$shop_name
$flag_food = 1

:JFUD_900
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_1005
$num_of_food_stuffs = get_number_of_items_in_shop 
$keep_off_dirX = 0.0
$keep_off_dirY = 2.5
$junkfud_offsetX = 1.566
$junkfud_offsetY = 51.419
$junkfud_offsetZ = 0.01
$junkfud_heading_offset = 0.0
set_var_text_label s$stored_shop = s$shop_name
$flag_food = 1

:JFUD_1005
if 
  $flag_food == 1
goto_if_false @JFUD_1427
use_text_commands True
show_update_stats False
$junkfudX = 374.0
add_float_var_to_float_var $junkfudX += $junkfud_offsetX
$junkfudY = -117.141
add_float_var_to_float_var $junkfudY += $junkfud_offsetY
$junkfudZ = 1000.539
add_float_var_to_float_var $junkfudZ += $junkfud_offsetZ
$junkfud_heading = 180.0
add_float_var_to_float_var $junkfud_heading += $junkfud_heading_offset
$junkfud_cam_offX = 374.0
add_float_var_to_float_var $junkfud_cam_offX += $junkfud_offsetX
$junkfud_cam_offY = -119.1869
add_float_var_to_float_var $junkfud_cam_offY += $junkfud_offsetY
$junkfud_cam_offZ = 1002.019
add_float_var_to_float_var $junkfud_cam_offZ += $junkfud_offsetZ
$cam_point_junkfudX = 373.9532
add_float_var_to_float_var $cam_point_junkfudX += $junkfud_offsetX
$cam_point_junkfudY = -118.189
add_float_var_to_float_var $cam_point_junkfudY += $junkfud_offsetY
$cam_point_junnkfudZ = 1001.975
add_float_var_to_float_var $cam_point_junnkfudZ += $junkfud_offsetZ
$vomit_camX = 374.717
add_float_var_to_float_var $vomit_camX += $junkfud_offsetX
$vomit_camY = -122.55
add_float_var_to_float_var $vomit_camY += $junkfud_offsetY
$vomit_camZ = 1002.572
add_float_var_to_float_var $vomit_camZ += $junkfud_offsetZ
$vomit_cam_point_junkfudX = 374.599
add_float_var_to_float_var $vomit_cam_point_junkfudX += $junkfud_offsetX
$vomit_cam_point_junkfudY = -121.608
add_float_var_to_float_var $vomit_cam_point_junkfudY += $junkfud_offsetY
$vomit_cam_point_junnkfudZ = 1002.256
add_float_var_to_float_var $vomit_cam_point_junnkfudZ += $junkfud_offsetZ
if 
  $jfud_keep_created == 0
goto_if_false @JFUD_1420
$shop_keep_junkfud = create_char PedType.CivMale {modelId} $shopkeeper_model_shops {x} $junkfudX {y} $junkfudY {z} $junkfudZ
set_char_heading $shop_keep_junkfud {heading} $junkfud_heading
set_char_only_damaged_by_player $shop_keep_junkfud {state} True
set_char_decision_maker $shop_keep_junkfud {handleOrTemplate} DecisionMakerCharTemplate.Empty
$keep_offX, $keep_offY, $keep_offZ = get_offset_from_char_in_world_coords $shop_keep_junkfud {xOffset} $keep_off_dirX {yOffset} $keep_off_dirY {zOffset} 0.0
$flag_attacked_keeper_food = 0
$jfud_keep_created = 1

:JFUD_1420
$flag_food = 2

:JFUD_1427
if 
  $flag_food == 2
goto_if_false @JFUD_2034
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_1476
gosub @JFUD_9887

:JFUD_1476
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_1989
if 
  $flag_attacked_keeper_food == 0
goto_if_false @JFUD_1937
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_junkfud
  has_char_been_damaged_by_weapon $shop_keep_junkfud {weaponType} WeaponType.AnyWeapon
  $iSetPizzaPanic == 1
goto_if_false @JFUD_1587
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.ShopClosed
task_hands_up $shop_keep_junkfud {time} -2
$iSetPizzaPanic = 1
$flag_attacked_keeper_food = 1
goto @JFUD_1930

:JFUD_1587
if 
  11 > $total_food_bought_per_day_shops
goto_if_false @JFUD_1765
$blob_flag_shop = 1
if 
  locate_stopped_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} $blob_flag_shop
goto_if_false @JFUD_1758
if 
  can_player_start_mission $player1
goto_if_false @JFUD_1758
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.WhatWant
$players_money = store_score $player1
if 
  2 > $flag_menace_buyfood
goto_if_false @JFUD_1751
if 
  $flag_player_on_menace_mission == 1
goto_if_false @JFUD_1751
if 
  2 > $players_money
goto_if_false @JFUD_1751
add_score $player1 {money} 2

:JFUD_1751
$flag_food = 3

:JFUD_1758
goto @JFUD_1930

:JFUD_1765
if 
  $flag_ate_too_much_food == 0
goto_if_false @JFUD_1899
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_1847
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.BoughtEnough
print_now 'FOOD1' {time} 5000 {flag} 1
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
goto @JFUD_1892

:JFUD_1847
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_1885
gosub @JFUD_9887

:JFUD_1885
goto @JFUD_574

:JFUD_1892
$flag_ate_too_much_food = 1

:JFUD_1899
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_1930
gosub @JFUD_9887

:JFUD_1930
goto @JFUD_1982

:JFUD_1937
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_1975
gosub @JFUD_9887

:JFUD_1975
goto @JFUD_574

:JFUD_1982
goto @JFUD_2034

:JFUD_1989
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_2027
gosub @JFUD_9887

:JFUD_2027
goto @JFUD_574

:JFUD_2034
if 
  $flag_food == 3
goto_if_false @JFUD_4339
set_player_control $player1 {state} False
set_minigame_in_progress True
set_char_coordinates_dont_warp_gang_no_offset $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_char_heading $scplayer {heading} $food_heading
$players_health = get_char_health $scplayer
$players_fat = get_float_stat StatId.Fat
clear_char_tasks_immediately $scplayer
clear_area $player_x {y} $player_y {z} $player_z {radius} 1.0 {clearParticles} True
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_2401
$temp_shopX, $temp_shopY, $temp_shopZ = get_char_coordinates $shop_keep_junkfud
if or
  not is_float_var_equal_to_float_var $temp_shopX == $junkfudX
  not is_float_var_equal_to_float_var $temp_shopY == $junkfudY
  not is_float_var_equal_to_float_var $temp_shopZ == $junkfudZ
goto_if_false @JFUD_2224
set_char_coordinates $shop_keep_junkfud {x} $junkfudX {y} $junkfudY {z} $junkfudZ
set_char_heading $shop_keep_junkfud {heading} $junkfud_heading

:JFUD_2224
$tray_offX, $tray_offY, $tray_offZ = get_offset_from_char_in_world_coords $shop_keep_junkfud {xOffset} 0.0 {yOffset} 0.8 {zOffset} 0.1
if 
  not is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_2333
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0

:JFUD_2333
$sample_name_shops = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.WhatWant
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_IN"
goto_if_false @JFUD_2394
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_IN"

:JFUD_2394
goto @JFUD_2446

:JFUD_2401
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_2439
gosub @JFUD_9887

:JFUD_2439
goto @JFUD_574

:JFUD_2446
TIMERA = 0

:JFUD_2453
if 
  TIMERA >= 600
goto_if_false @JFUD_2631
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_2506
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2506
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_2574
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_2560
gosub @JFUD_9887

:JFUD_2560
goto @JFUD_574
goto @JFUD_2624

:JFUD_2574
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_IN"
goto_if_false @JFUD_2624
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_IN"

:JFUD_2624
goto @JFUD_2453

:JFUD_2631
if 
  is_player_playing $player1
goto_if_false @JFUD_2700
set_current_char_weapon $scplayer {weaponType} WeaponType.Unarmed
set_fixed_camera_position $junkfud_cam_offX {y} $junkfud_cam_offY {z} $junkfud_cam_offZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_point_junkfudX {y} $cam_point_junkfudY {z} $cam_point_junnkfudZ {switchStyle} SwitchType.JumpCut
goto @JFUD_2714

:JFUD_2700
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2714
if 
  not is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_2925

:JFUD_2745
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_2925
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_2800
gosub @JFUD_9887
goto @JFUD_574

:JFUD_2800
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_2868
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_2854
gosub @JFUD_9887

:JFUD_2854
goto @JFUD_574
goto @JFUD_2918

:JFUD_2868
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_IN"
goto_if_false @JFUD_2918
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_IN"

:JFUD_2918
goto @JFUD_2745

:JFUD_2925
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_3053
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_POSE" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_3046
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"

:JFUD_3046
goto @JFUD_3098

:JFUD_3053
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_3091
gosub @JFUD_9887

:JFUD_3091
goto @JFUD_574

:JFUD_3098
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_3282
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_3153
gosub @JFUD_9887
goto @JFUD_574

:JFUD_3153
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_3221
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_3207
gosub @JFUD_9887

:JFUD_3207
goto @JFUD_574
goto @JFUD_3275

:JFUD_3221
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_3275
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"

:JFUD_3275
goto @JFUD_3098

:JFUD_3282
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_3419
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_IN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_IN"
goto_if_false @JFUD_3412
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_IN"

:JFUD_3412
goto @JFUD_3464

:JFUD_3419
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_3457
gosub @JFUD_9887

:JFUD_3457
goto @JFUD_574

:JFUD_3464
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_3654
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_3519
gosub @JFUD_9887
goto @JFUD_574

:JFUD_3519
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_3587
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_3573
gosub @JFUD_9887

:JFUD_3573
goto @JFUD_574
goto @JFUD_3647

:JFUD_3587
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_IN"
goto_if_false @JFUD_3647
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_IN"

:JFUD_3647
goto @JFUD_3464

:JFUD_3654
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRestaurantTrayCollision
$current_food_item = 0
$created_this_food = 0
$model_index = get_item_in_shop $current_food_item
$ffood_obj = create_object $model_index {x} $tray_offX {y} $tray_offY {z} $tray_offZ
$food_price = get_price_of_item $model_index
s$food_name = get_name_of_item $model_index
set_var_int_to_var_int $shop_item_price = $food_price
set_var_text_label s$shop_item_label = s$food_name
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_3915
task_pick_up_object $shop_keep_junkfud {object} $ffood_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
$created_this_food = 1
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_3908
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"

:JFUD_3908
goto @JFUD_3960

:JFUD_3915
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_3953
gosub @JFUD_9887

:JFUD_3953
goto @JFUD_574

:JFUD_3960
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_4144
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_4015
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4015
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_4083
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_4069
gosub @JFUD_9887

:JFUD_4069
goto @JFUD_574
goto @JFUD_4137

:JFUD_4083
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_4137
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"

:JFUD_4137
goto @JFUD_3960

:JFUD_4144
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_4287
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_LOOP" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_LOOP"
goto_if_false @JFUD_4280
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_LOOP"

:JFUD_4280
goto @JFUD_4332

:JFUD_4287
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_4325
gosub @JFUD_9887

:JFUD_4325
goto @JFUD_574

:JFUD_4332
$flag_food = 4

:JFUD_4339
if 
  $flag_food == 4
goto_if_false @JFUD_9675
if 
  $flag_ate_too_much_food == 0
goto_if_false @JFUD_9668
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
if or
  -100 > $LStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadLeft
goto_if_false @JFUD_4603
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_4447
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_4447
$flag_no_money_shops = 0
$current_food_item -= 1
TIMERA = 0

:JFUD_4468
if 
  150 > TIMERA
goto_if_false @JFUD_4589
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_4521
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4521
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_4582
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_4575
gosub @JFUD_9887

:JFUD_4575
goto @JFUD_574

:JFUD_4582
goto @JFUD_4468

:JFUD_4589
$flag_bought_some_food = 0
$created_this_food = 0

:JFUD_4603
if or
  $LStickX > 100
  is_button_pressed PadId.Pad1 {buttonId} Button.DpadRight
goto_if_false @JFUD_4815
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_4659
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_4659
$flag_no_money_shops = 0
$current_food_item += 1
TIMERA = 0

:JFUD_4680
if 
  150 > TIMERA
goto_if_false @JFUD_4801
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_4733
gosub @JFUD_9887
goto @JFUD_574

:JFUD_4733
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_4794
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_4787
gosub @JFUD_9887

:JFUD_4787
goto @JFUD_574

:JFUD_4794
goto @JFUD_4680

:JFUD_4801
$created_this_food = 0
$flag_bought_some_food = 0

:JFUD_4815
if 
  0 > $current_food_item
goto_if_false @JFUD_4848
set_var_int_to_var_int $current_food_item = $num_of_food_stuffs
$current_food_item -= 1

:JFUD_4848
if 
  is_int_var_equal_to_int_var $current_food_item == $num_of_food_stuffs
goto_if_false @JFUD_4874
$current_food_item = 0

:JFUD_4874
if 
  $created_this_food == 0
goto_if_false @JFUD_5930
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_5026
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_5019
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"

:JFUD_5019
goto @JFUD_5071

:JFUD_5026
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_5064
gosub @JFUD_9887

:JFUD_5064
goto @JFUD_574

:JFUD_5071
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_5259
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_5126
gosub @JFUD_9887
goto @JFUD_574

:JFUD_5126
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_5194
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_5180
gosub @JFUD_9887

:JFUD_5180
goto @JFUD_574
goto @JFUD_5252

:JFUD_5194
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_5252
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"

:JFUD_5252
goto @JFUD_5071

:JFUD_5259
gosub @JFUD_12993
$model_index = get_item_in_shop $current_food_item
$ffood_obj = create_object $model_index {x} $tray_offX {y} $tray_offY {z} $tray_offZ
$food_price = get_price_of_item $model_index
s$food_name = get_name_of_item $model_index
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundRestaurantTrayCollision
set_var_int_to_var_int $shop_item_price = $food_price
set_var_text_label s$shop_item_label = s$food_name
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_5506
task_pick_up_object $shop_keep_junkfud {object} $ffood_obj {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} 0
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_5499
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"

:JFUD_5499
goto @JFUD_5551

:JFUD_5506
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_5544
gosub @JFUD_9887

:JFUD_5544
goto @JFUD_574

:JFUD_5551
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_5735
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_5606
gosub @JFUD_9887
goto @JFUD_574

:JFUD_5606
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_5674
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_5660
gosub @JFUD_9887

:JFUD_5660
goto @JFUD_574
goto @JFUD_5728

:JFUD_5674
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"
goto_if_false @JFUD_5728
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT"

:JFUD_5728
goto @JFUD_5551

:JFUD_5735
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_5878
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_LOOP" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_LOOP"
goto_if_false @JFUD_5871
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_LOOP"

:JFUD_5871
goto @JFUD_5923

:JFUD_5878
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_5916
gosub @JFUD_9887

:JFUD_5916
goto @JFUD_574

:JFUD_5923
$created_this_food = 1

:JFUD_5930
if 
  $flag_ate_too_much_food == 0
goto_if_false @JFUD_5955
gosub @JFUD_12352

:JFUD_5955
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @JFUD_9668

:JFUD_5972
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @JFUD_6091
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_6023
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6023
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_6084
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_6077
gosub @JFUD_9887

:JFUD_6077
goto @JFUD_574

:JFUD_6084
goto @JFUD_5972

:JFUD_6091
$flag_no_money_shops = 0
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  is_player_playing $player1
goto_if_false @JFUD_6151
$players_money = store_score $player1
goto @JFUD_6165

:JFUD_6151
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6165
if 
  is_int_var_greater_or_equal_to_int_var $players_money >= $food_price
goto_if_false @JFUD_9534
if 
  11 > $total_food_bought_per_day_shops
goto_if_false @JFUD_6997
buy_item $model_index
$flag_bought_some_food = 1
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @JFUD_6252
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @JFUD_6252
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjEat

:JFUD_6252
if 
  $flag_store_day_food == 0
goto_if_false @JFUD_6282
$stored_shop_time = get_game_timer 
$flag_store_day_food = 1

:JFUD_6282
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuy
$total_food_bought_per_day_shops += 1
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_6337
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.GiveProduct
goto @JFUD_6382

:JFUD_6337
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_6375
gosub @JFUD_9887

:JFUD_6375
goto @JFUD_574

:JFUD_6382
TIMERA = 0
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_6421
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_6421
if 
  $bought_menu_drawn_shops == 0
goto_if_false @JFUD_6789
$bought_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 25.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
set_menu_column_orientation $bought_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $bought_menu_shops {column} 0 {title} 'MEAL' {row0} 'BOUGHT' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $bought_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $bought_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $bought_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $food_price
set_menu_column_width $bought_menu_shops {column} 0 {width} 140
set_menu_column_width $bought_menu_shops {column} 1 {width} 46
$bought_menu_drawn_shops = 1

:JFUD_6789
if 
  1000 >= TIMERA
goto_if_false @JFUD_6910
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_6842
gosub @JFUD_9887
goto @JFUD_574

:JFUD_6842
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_6903
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_6896
gosub @JFUD_9887

:JFUD_6896
goto @JFUD_574

:JFUD_6903
goto @JFUD_6789

:JFUD_6910
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_6940
delete_menu $bought_menu_shops
$bought_menu_drawn_shops = 0

:JFUD_6940
if 
  $cost_menu_drawn_shops == 0
goto_if_false @JFUD_6965
gosub @JFUD_12352

:JFUD_6965
if 
  $flag_menace_buyfood == 1
goto_if_false @JFUD_6990
$flag_menace_buyfood = 2

:JFUD_6990
goto @JFUD_9527

:JFUD_6997
if 
  $flag_ate_too_much_food == 0
goto_if_false @JFUD_9527
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_7079
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.BoughtEnough
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'FOOD1' {time} 5000 {flag} 1
goto @JFUD_7124

:JFUD_7079
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_7117
gosub @JFUD_9887

:JFUD_7117
goto @JFUD_574

:JFUD_7124
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_7156
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_7156
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_7188
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_7188
if 
  $flag_menace_buyfood == 2
goto_if_false @JFUD_7314
set_fading_colour 0 {g} 0 {b} 0
set_music_does_fade False
do_fade 0 {direction} Fade.Out
gosub @JFUD_12993
delete_char $shop_keep_junkfud
$flag_menace_buyfood = 3
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_no_money_shops = 0
$created_this_food = 0
$current_food_item = 0
$flag_food = 2
set_char_health $scplayer {health} $players_health
set_float_stat StatId.Fat {value} $players_fat
$cj_vomits_for_menace = 1
goto @JFUD_574

:JFUD_7314
if 
  $total_food_bought_per_day_shops >= 11
goto_if_false @JFUD_8116
gosub @JFUD_9710
gosub @JFUD_12993
if 
  10 > $players_health
goto_if_false @JFUD_7379
set_var_int_to_var_int $players_health = $players_health
goto @JFUD_7411

:JFUD_7379
$players_health -= 10
if 
  10 > $players_health
goto_if_false @JFUD_7411
$players_health = 10

:JFUD_7411
set_char_health $scplayer {health} $players_health
set_float_stat StatId.Fat {value} $players_fat
set_fixed_camera_position $vomit_camX {y} $vomit_camY {z} $vomit_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $vomit_cam_point_junkfudX {y} $vomit_cam_point_junkfudY {z} $vomit_cam_point_junnkfudZ {switchStyle} SwitchType.JumpCut
if 
  is_player_playing $player1
goto_if_false @JFUD_7638
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
set_var_float_to_var_float $vomitX = $player_x
$vomitX += 0.355
set_var_float_to_var_float $vomitY = $player_y
$vomitY -= 0.116
set_var_float_to_var_float $vomitZ = $player_z
$vomitZ -= 0.048
$vomit_foodshop = create_fx_system "PUKE" {x} $vomitX {y} $vomitY {z} $vomitZ {ignoreBoundingChecks} True
task_play_anim_non_interruptable $scplayer {animationName} "EAT_VOMIT_P" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$return_animation_time_food = 0.0
$sample_name_shop = set_char_say_context $scplayer {phrase} SpeechId.PainCjPuke
goto @JFUD_7652

:JFUD_7638
gosub @JFUD_9887
goto @JFUD_574

:JFUD_7652
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_7726
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "EAT_VOMIT_SK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.PlayerSick
goto @JFUD_7771

:JFUD_7726
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_7764
gosub @JFUD_9887

:JFUD_7764
goto @JFUD_574

:JFUD_7771
if 
  is_char_playing_anim $scplayer {animationName} "EAT_VOMIT_P"
goto_if_false @JFUD_7821
$return_animation_time_food = get_char_anim_current_time $scplayer {animationName} "EAT_VOMIT_P"

:JFUD_7821
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_8099
wait 0
if 
  $flag_vomit_playing_food == 0
goto_if_false @JFUD_7915
if 
  $return_animation_time_food >= 0.463
goto_if_false @JFUD_7915
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @JFUD_7908
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjPuke

:JFUD_7908
$flag_vomit_playing_food = 1

:JFUD_7915
if 
  $flag_vomit_playing_food == 1
goto_if_false @JFUD_7966
if 
  $return_animation_time_food >= 0.52
goto_if_false @JFUD_7966
play_fx_system $vomit_foodshop
$flag_vomit_playing_food = 2

:JFUD_7966
if 
  is_player_playing $player1
goto_if_false @JFUD_8010
$return_animation_time_food = get_char_anim_current_time $scplayer {animationName} "EAT_VOMIT_P"
goto @JFUD_8024

:JFUD_8010
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8024
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_8047
goto @JFUD_8092

:JFUD_8047
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_8085
gosub @JFUD_9887

:JFUD_8085
goto @JFUD_574

:JFUD_8092
goto @JFUD_7821

:JFUD_8099
stop_fx_system $vomit_foodshop
kill_fx_system $vomit_foodshop
goto @JFUD_8867

:JFUD_8116
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_8250
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_8243
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"

:JFUD_8243
goto @JFUD_8295

:JFUD_8250
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_8288
gosub @JFUD_9887

:JFUD_8288
goto @JFUD_574

:JFUD_8295
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_8483
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_8350
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8350
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_8418
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_8404
gosub @JFUD_9887

:JFUD_8404
goto @JFUD_574
goto @JFUD_8476

:JFUD_8418
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_8476
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"

:JFUD_8476
goto @JFUD_8295

:JFUD_8483
gosub @JFUD_12993
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_8630
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_8623
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_8623
goto @JFUD_8675

:JFUD_8630
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_8668
gosub @JFUD_9887

:JFUD_8668
goto @JFUD_574

:JFUD_8675
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_8867
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_8730
gosub @JFUD_9887
goto @JFUD_574

:JFUD_8730
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_8798
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_8784
gosub @JFUD_9887

:JFUD_8784
goto @JFUD_574
goto @JFUD_8860

:JFUD_8798
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_8860
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_8860
goto @JFUD_8675

:JFUD_8867
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_8995
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_POSE" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_8988
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"

:JFUD_8988
goto @JFUD_9040

:JFUD_8995
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_9033
gosub @JFUD_9887

:JFUD_9033
goto @JFUD_574

:JFUD_9040
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_9231
wait 0
if 
  is_player_playing $player1
goto_if_false @JFUD_9088
goto @JFUD_9102

:JFUD_9088
gosub @JFUD_9887
goto @JFUD_574

:JFUD_9102
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_9179
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_9172
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"

:JFUD_9172
goto @JFUD_9224

:JFUD_9179
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_9217
gosub @JFUD_9887

:JFUD_9217
goto @JFUD_574

:JFUD_9224
goto @JFUD_9040

:JFUD_9231
set_player_control $player1 {state} True
set_minigame_in_progress False
set_camera_behind_player 
restore_camera_jumpcut 

:JFUD_9246
if 
  locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @JFUD_9485
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_9322
gosub @JFUD_9887
goto @JFUD_574

:JFUD_9322
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_9390
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_9376
gosub @JFUD_9887

:JFUD_9376
goto @JFUD_574
goto @JFUD_9478

:JFUD_9390
if 
  $flag_attacked_keeper_food == 0
goto_if_false @JFUD_9478
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_junkfud
  has_char_been_damaged_by_weapon $shop_keep_junkfud {weaponType} WeaponType.AnyWeapon
  $iSetPizzaPanic == 1
goto_if_false @JFUD_9478
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.ShopClosed
task_hands_up $shop_keep_junkfud {time} -2
$iSetPizzaPanic = 1
$flag_attacked_keeper_food = 1

:JFUD_9478
goto @JFUD_9246

:JFUD_9485
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$created_this_food = 0
$current_food_item = 0
$flag_food = 2
$flag_ate_too_much_food = 1

:JFUD_9527
goto @JFUD_9668

:JFUD_9534
if 
  $flag_no_money_shops == 0
goto_if_false @JFUD_9668
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_9616
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
$sample_name_shops = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.NoMoney
print_now 'SHOPNO' {time} 5000 {flag} 1
goto @JFUD_9661

:JFUD_9616
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_9654
gosub @JFUD_9887

:JFUD_9654
goto @JFUD_574

:JFUD_9661
$flag_no_money_shops = 1

:JFUD_9668
gosub @JFUD_10132

:JFUD_9675
goto @JFUD_9689

:JFUD_9682
gosub @JFUD_9887

:JFUD_9689
goto @JFUD_9703

:JFUD_9696
gosub @JFUD_9887

:JFUD_9703
goto @JFUD_574

:JFUD_9710
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_9764
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_9764
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_9796
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_9796
$created_this_food = 0
$current_food_item = 0
$flag_bought_some_food = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_food = 2
$flag_no_money_shops = 0
mark_model_as_no_longer_needed $foodsmall_junkfud
mark_model_as_no_longer_needed $foodmed_junkfud
mark_model_as_no_longer_needed $foodlarge_junkfud
mark_model_as_no_longer_needed $foodhealthy_junkfud
if 
  $jfud_keep_created == 1
goto_if_false @JFUD_9885
clear_help 

:JFUD_9885
return 

:JFUD_9887
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  $jfud_keep_created == 1
goto_if_false @JFUD_9929
clear_help 

:JFUD_9929
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_9961
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_9961
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_9993
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_9993
$jfud_keep_created = 0
$found_a_food_shop = 0
$current_food_item = 0
$created_this_food = 0
$flag_ate_too_much_food = 0
$flag_bought_some_food = 0
$flag_attacked_keeper_food = 0
$flag_vomit_playing_food = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_food = 0
$flag_no_money_shops = 0
kill_fx_system $vomit_foodshop
delete_char $shop_keep_junkfud
mark_model_as_no_longer_needed $shopkeeper_model_shops
mark_model_as_no_longer_needed $foodsmall_junkfud
mark_model_as_no_longer_needed $foodmed_junkfud
mark_model_as_no_longer_needed $foodlarge_junkfud
mark_model_as_no_longer_needed $foodhealthy_junkfud
use_text_commands False
show_update_stats True
set_minigame_in_progress False
clear_mission_audio MissionAudioSlot.Slot4
terminate_this_script 
return 

:JFUD_10132
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @JFUD_12350
if 
  $cost_menu_drawn_shops == 1
goto_if_false @JFUD_10181
delete_menu $cost_menu_shops
clear_help 
$cost_menu_drawn_shops = 0

:JFUD_10181
if 
  $bought_menu_drawn_shops == 1
goto_if_false @JFUD_10213
delete_menu $bought_menu_shops
clear_help 
$bought_menu_drawn_shops = 0

:JFUD_10213
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @JFUD_10332
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_10264
gosub @JFUD_9887
goto @JFUD_574

:JFUD_10264
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_10325
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_10318
gosub @JFUD_9887

:JFUD_10318
goto @JFUD_574

:JFUD_10325
goto @JFUD_10213

:JFUD_10332
clear_this_print 'SHOPNO'
clear_this_print 'FOOD1'
if 
  $flag_menace_buyfood == 2
goto_if_false @JFUD_10454
set_fading_colour 0 {g} 0 {b} 0
do_fade 0 {direction} Fade.Out
gosub @JFUD_12993
delete_char $shop_keep_junkfud
$flag_menace_buyfood = 3
$created_this_food = 0
$current_food_item = 0
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_food = 2
$flag_no_money_shops = 0
goto @JFUD_12350

:JFUD_10454
$blob_flag_shop = 0
s$shop_name = get_loaded_shop 
if 
  $flag_bought_some_food == 1
goto_if_false @JFUD_10687
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDBURG'
goto_if_false @JFUD_10554
task_play_anim $scplayer {animationName} "EAT_BURGER" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @JFUD_10687

:JFUD_10554
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDPIZA'
goto_if_false @JFUD_10623
task_play_anim $scplayer {animationName} "EAT_PIZZA" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
goto @JFUD_10687

:JFUD_10623
if 
  is_var_text_label_equal_to_text_label s$shop_name == 'FDCHICK'
goto_if_false @JFUD_10687
task_play_anim $scplayer {animationName} "EAT_CHICKEN" {animationFile} "FOOD" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1

:JFUD_10687
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_10832
$sample_name_shops = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.ThanksForCustom
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_10825
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"

:JFUD_10825
goto @JFUD_10877

:JFUD_10832
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_10870
gosub @JFUD_9887

:JFUD_10870
goto @JFUD_574

:JFUD_10877
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_11065
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_10932
gosub @JFUD_9887
goto @JFUD_574

:JFUD_10932
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_11000
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_10986
gosub @JFUD_9887

:JFUD_10986
goto @JFUD_574
goto @JFUD_11058

:JFUD_11000
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"
goto_if_false @JFUD_11058
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_RETURN"

:JFUD_11058
goto @JFUD_10877

:JFUD_11065
gosub @JFUD_12993
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_11212
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_11205
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_11205
goto @JFUD_11257

:JFUD_11212
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_11250
gosub @JFUD_9887

:JFUD_11250
goto @JFUD_574

:JFUD_11257
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_11449
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_11312
gosub @JFUD_9887
goto @JFUD_574

:JFUD_11312
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_11380
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_11366
gosub @JFUD_9887

:JFUD_11366
goto @JFUD_574
goto @JFUD_11442

:JFUD_11380
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"
goto_if_false @JFUD_11442
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_LIFT_OUT"

:JFUD_11442
goto @JFUD_11257

:JFUD_11449
if 
  $flag_bought_some_food == 1
goto_if_false @JFUD_11505
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @JFUD_11505
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @JFUD_11505
report_mission_audio_event_at_char $scplayer {soundId} ScriptSound.SoundRestaurantCjEat

:JFUD_11505
$created_this_food = 0
$current_food_item = 0
$flag_food = 2
$cost_menu_drawn_shops = 0
$bought_menu_drawn_shops = 0
$flag_bought_some_food = 0
set_player_control $player1 {state} True
restore_camera_jumpcut 
if 
  $jfud_keep_created == 1
goto_if_false @JFUD_11576
clear_help 

:JFUD_11576
gosub @JFUD_12993
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_11710
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_THANK" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
$sample_name_shops = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.ThanksForCustom
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_THANK"
goto_if_false @JFUD_11703
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_THANK"

:JFUD_11703
goto @JFUD_11755

:JFUD_11710
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_11748
gosub @JFUD_9887

:JFUD_11748
goto @JFUD_574

:JFUD_11755
if 
  $return_animation_time_food <> 1.0
goto_if_false @JFUD_11931
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_11810
gosub @JFUD_9887
goto @JFUD_574

:JFUD_11810
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_11878
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_11864
gosub @JFUD_9887

:JFUD_11864
goto @JFUD_574
goto @JFUD_11924

:JFUD_11878
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_THANK"
goto_if_false @JFUD_11924
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_THANK"

:JFUD_11924
goto @JFUD_11755

:JFUD_11931
if 
  not is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_12059
task_play_anim_non_interruptable $shop_keep_junkfud {animationName} "SHP_TRAY_POSE" {animationFile} "FOOD" {blendSpeed} 1000.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
$return_animation_time_food = 0.0
if 
  is_char_playing_anim $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"
goto_if_false @JFUD_12052
$return_animation_time_food = get_char_anim_current_time $shop_keep_junkfud {animationName} "SHP_TRAY_POSE"

:JFUD_12052
goto @JFUD_12104

:JFUD_12059
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_12097
gosub @JFUD_9887

:JFUD_12097
goto @JFUD_574

:JFUD_12104
if 
  locate_char_on_foot_3d $scplayer {x} $keep_offX {y} $keep_offY {z} $keep_offZ {xRadius} 1.0 {yRadius} 1.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @JFUD_12343
wait 0
if 
  not is_player_playing $player1
goto_if_false @JFUD_12180
gosub @JFUD_9887
goto @JFUD_574

:JFUD_12180
if 
  is_char_dead $shop_keep_junkfud
goto_if_false @JFUD_12248
gosub @JFUD_9710
s$shop_name = get_loaded_shop 
if 
  not is_var_text_label_equal_to_text_label s$shop_name == s$stored_shop
goto_if_false @JFUD_12234
gosub @JFUD_9887

:JFUD_12234
goto @JFUD_574
goto @JFUD_12336

:JFUD_12248
if 
  $flag_attacked_keeper_food == 0
goto_if_false @JFUD_12336
if or
  is_char_shooting $scplayer
  is_player_targetting_char $player1 {handle} $shop_keep_junkfud
  has_char_been_damaged_by_weapon $shop_keep_junkfud {weaponType} WeaponType.AnyWeapon
  $iSetPizzaPanic == 1
goto_if_false @JFUD_12336
$sample_name_shop = set_char_say_context $shop_keep_junkfud {phrase} SpeechId.ShopClosed
task_hands_up $shop_keep_junkfud {time} -2
$iSetPizzaPanic = 1
$flag_attacked_keeper_food = 1

:JFUD_12336
goto @JFUD_12104

:JFUD_12343
$blob_flag_shop = 1

:JFUD_12350
return 

:JFUD_12352
if 
  $cost_menu_drawn_shops == 0
goto_if_false @JFUD_12991
print_help_forever 'FOOD_H'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @JFUD_12443
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12443
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @JFUD_12505
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12505
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @JFUD_12567
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12567
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @JFUD_12629
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @JFUD_12684

:JFUD_12629
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @JFUD_12684
$cost_menu_shops = create_menu 'FOODCHO' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:JFUD_12684
set_menu_column_orientation $cost_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $cost_menu_shops {column} 0 {title} 'MEAL' {row0} s$shop_item_label {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_column_orientation $cost_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $cost_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $cost_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $shop_item_price
set_menu_column_width $cost_menu_shops {column} 0 {width} 140
set_menu_column_width $cost_menu_shops {column} 1 {width} 46
$cost_menu_drawn_shops = 1

:JFUD_12991
return 

:JFUD_12993
delete_object $ffood_obj
return 
terminate_this_script 

//-------------External script 66 (CARMOD1)---------------

:CARMOD
$number_of_colours = 0
$stored_paintjob_number = 0
$paintjob_number = 0
$paintjob_number_menu = 0
$cam_general_modX = 0.0
$cam_general_modY = 0.0
$cam_general_modZ = 0.0
$cam_general_look_at_modX = 0.0
$cam_general_look_at_modY = 0.0
$cam_general_look_at_modZ = 0.0
$wheel_cam_modX = 0.0
$wheel_cam_modY = 0.0
$wheel_cam_modZ = 0.0
$wheel_cam_look_at_modX = 0.0
$wheel_cam_look_at_modY = 0.0
$wheel_cam_look_at_modZ = 0.0
$spoiler_cam_modX = 0.0
$spoiler_cam_modY = 0.0
$spoiler_cam_modZ = 0.0
$spoiler_cam_look_at_modX = 0.0
$spoiler_cam_look_at_modY = 0.0
$spoiler_cam_look_at_modZ = 0.0
$wing_cam_modX = 0.0
$wing_cam_modY = 0.0
$wing_cam_modZ = 0.0
$wing_cam_look_at_modX = 0.0
$wing_cam_look_at_modY = 0.0
$wing_cam_look_at_modZ = 0.0
$roof_cam_modX = 0.0
$roof_cam_modY = 0.0
$roof_cam_modZ = 0.0
$roof_cam_look_at_modX = 0.0
$roof_cam_look_at_modY = 0.0
$roof_cam_look_at_modZ = 0.0
$bonnet_cam_modX = 0.0
$bonnet_cam_modY = 0.0
$bonnet_cam_modZ = 0.0
$bonnet_cam_look_at_modX = 0.0
$bonnet_cam_look_at_modY = 0.0
$bonnet_cam_look_at_modZ = 0.0
$exhaust_cam_modX = 0.0
$exhaust_cam_modY = 0.0
$exhaust_cam_modZ = 0.0
$exhaust_look_at_cam_modX = 0.0
$exhaust_look_at_cam_modY = 0.0
$exhaust_look_at_cam_modZ = 0.0
$front_fender_cam_modX = 0.0
$front_fender_cam_modY = 0.0
$front_fender_cam_modZ = 0.0
$front_fender_look_at_cam_modX = 0.0
$front_fender_look_at_cam_modY = 0.0
$front_fender_look_at_cam_modZ = 0.0
$rear_fender_cam_modX = 0.0
$rear_fender_cam_modY = 0.0
$rear_fender_cam_modZ = 0.0
$rear_fender_look_at_cam_modX = 0.0
$rear_fender_look_at_cam_modY = 0.0
$rear_fender_look_at_cam_modZ = 0.0
$lights_cam_modX = 0.0
$lights_cam_modY = 0.0
$lights_cam_modZ = 0.0
$lights_look_at_cam_modX = 0.0
$lights_look_at_cam_modY = 0.0
$lights_look_at_cam_modZ = 0.0
$front_bullbar_cam_modX = 0.0
$front_bullbar_cam_modY = 0.0
$front_bullbar_cam_modZ = 0.0
$front_bullbar_look_at_cam_modX = 0.0
$front_bullbar_look_at_cam_modY = 0.0
$front_bullbar_look_at_cam_modZ = 0.0
$rear_bullbar_cam_modX = 0.0
$rear_bullbar_cam_modY = 0.0
$rear_bullbar_cam_modZ = 0.0
$rear_bullbar_look_at_cam_modX = 0.0
$rear_bullbar_look_at_cam_modY = 0.0
$rear_bullbar_look_at_cam_modZ = 0.0
$nitro_cam_modX = 0.0
$nitro_cam_modY = 0.0
$nitro_cam_modZ = 0.0
$nitro_look_at_modX = 0.0
$nitro_look_at_modY = 0.0
$nitro_look_at_modZ = 0.0
$custom_paint_cam_modX = 0.0
$custom_paint_cam_modY = 0.0
$custom_paint_cam_modZ = 0.0
$custom_paint_cam_look_at_modX = 0.0
$custom_paint_cam_look_at_modY = 0.0
$custom_paint_cam_look_at_modZ = 0.0
$misc_cam_modX = 0.0
$misc_cam_modY = 0.0
$misc_cam_modZ = 0.0
$misc_cam_look_at_modX = 0.0
$misc_cam_look_at_modY = 0.0
$misc_cam_look_at_modZ = 0.0
$mod_garage_offsetX = 0.0
$mod_garage_offsetY = 0.0
$mod_garage_offsetZ = 0.0
$mod_swap_camX = 0.0
$mod_swap_camY = 0.0
$mod_swap_camZ = 0.0
$mod_swap_look_at_camX = 0.0
$mod_swap_look_at_camY = 0.0
$mod_swap_look_at_camZ = 0.0
$mod_flag = 0
$no_of_mods_for_vehicle = 0
$wheel_mod_counter = 0
$wing_mod_counter = 0
$roof_mod_counter = 0
$exhaust_mod_counter = 0
$nitro_mod_counter = 0
$spolier_mod_counter = 0
$bonnet_mod_counter = 0
$bonnetLR_mod_counter = 0
$front_bumper_mod_counter = 0
$rear_bumper_mod_counter = 0
$lights_mod_counter = 0
$front_bullbar_mod_counter = 0
$rear_bullbar_mod_counter = 0
$misc_mod_counter = 0
$paintjob_mod_counter = 0
$stereo_mod_counter = 0
$hydraulics_mod_counter = 0
$upgrade_meun1_selected = 0
$upgrade_meun2_selected = 0
$mod_counter = 0
$flag_car_same_colour = 0
$flag_cant_mod = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$unk10416 = 0
$unk10417 = 0
$third_menu_drawn_shops = 0
$colour_menu_drawn_shops = 0
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$car_locate_modX = 0.0
$car_locate_modY = 0.0
$car_locate_modZ = 0.0
$forth_menu_drawn_shops = 0
$upgrade_meun4_selected = 0
$selected_car_colour_mods = 0
$upgrade_colour_selected = 0
$car_colour1_change_mods = 0
$car_colour2_change_mods = 0
$flag_no_of_car_colours = 0
$car_name_mod = 0
$shop_counter = 0
$number_of_paintjobs = 0
$flag_car_lowrider_carmods = 0
$car_lock_state_mod_garage = 0
$can_car_be_modded_counter = 0
$flag_car_normal_carmod = 0
$flag_car_lowrider_carmod = 0
$flag_car_racer_carmod = 0
$car_model_carmod1 = 0
set_deatharrest_state 0
script_name 'CARMOD'

:CARMOD_1406
wait 0
if 
  is_player_playing $player1
goto_if_false @CARMOD_13876
if 
  $disable_mod_garage == 0
goto_if_false @CARMOD_13869
if 
  $mod_flag > 0
goto_if_false @CARMOD_1542
if 
  has_language_changed 
goto_if_false @CARMOD_1542
clear_help 
delete_menu $main_menu_shops
delete_menu $sub_menu_shops
delete_menu $colour_menu_shops
delete_menu $third_menu_shops
delete_menu $forth_menu_shops
$main_menu_drawn_shops = 0
$sub_menu_drawn_shops = 0
$colour_menu_drawn_shops = 0
$third_menu_drawn_shops = 0
$forth_menu_drawn_shops = 0
$current_Language = get_current_language 

:CARMOD_1542
if 
  is_char_in_any_car $scplayer
goto_if_false @CARMOD_13869
$stored_mod_garage_car = store_car_char_is_in_no_save $scplayer
if 
  $mod_flag == 0
goto_if_false @CARMOD_3883
if or
  locate_stopped_char_in_car_3d $scplayer {x} 1042.0129 {y} -1019.927 {z} 31.127 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_stopped_char_in_car_3d $scplayer {x} -1935.528 {y} 247.029 {z} 33.561 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
  locate_stopped_char_in_car_3d $scplayer {x} 2387.075 {y} 1050.511 {z} 9.812 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @CARMOD_2528
$stored_mod_garage_car = store_car_char_is_in_no_save $scplayer
if 
  is_char_sitting_in_car $scplayer {vehicle} $stored_mod_garage_car
goto_if_false @CARMOD_2501
if -1
goto_if_false @CARMOD_2446
gosub @CARMOD_23627
if 
  $can_car_be_modded_counter <> 0
goto_if_false @CARMOD_2391
if and
  not is_car_street_racer $stored_mod_garage_car
  not is_car_low_rider $stored_mod_garage_car
goto_if_false @CARMOD_2336
if 
  $control_flag_mod == 0
goto_if_false @CARMOD_1850
set_player_control $player1 {state} False
set_minigame_in_progress True
set_radio_to_players_favourite_station 
$car_lock_state_mod_garage = get_car_door_lock_status $stored_mod_garage_car
lock_car_doors $stored_mod_garage_car {lockStatus} CarLock.LockedPlayerInside
do_fade 1000 {direction} Fade.Out
$control_flag_mod = 1

:CARMOD_1850
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_1899
if 
  not get_fading_status 
goto_if_false @CARMOD_1899
set_area_name 'CARMOD1'
$control_flag_mod = 2

:CARMOD_1899
if 
  $control_flag_mod == 2
goto_if_false @CARMOD_2329
if 
  locate_stopped_char_in_car_3d $scplayer {x} 1042.0129 {y} -1019.927 {z} 31.127 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CARMOD_2002
$car_locate_modX = 1042.0129
$car_locate_modY = -1019.927
$car_locate_modZ = 31.127
goto @CARMOD_2165

:CARMOD_2002
if 
  locate_stopped_char_in_car_3d $scplayer {x} -1935.528 {y} 247.029 {z} 33.561 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CARMOD_2087
$car_locate_modX = -1935.9255
$car_locate_modY = 228.65
$car_locate_modZ = 33.8182
goto @CARMOD_2165

:CARMOD_2087
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2387.075 {y} 1050.511 {z} 9.812 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @CARMOD_2165
$car_locate_modX = 2386.5205
$car_locate_modY = 1037.7972
$car_locate_modZ = 10.7

:CARMOD_2165
$mod_garage_offsetX = 0.0
$mod_garage_offsetY = 0.0
$mod_garage_offsetZ = 0.0
set_area_visible 1
set_char_area_visible $scplayer {areaId} 1
set_vehicle_area_visible $stored_mod_garage_car {interiorId} 1
load_shop "CARMOD1"
load_prices "CARMODS"
request_collision 617.536 {y} -1.99
load_scene 617.536 {y} -1.99 {z} 999.98
set_car_coordinates $stored_mod_garage_car {x} 617.536 {y} -1.99 {z} 999.98
set_car_heading $stored_mod_garage_car {heading} 90.0
$flag_car_normal_carmod = 1
$flag_car_lowrider_carmods = 0
$flag_cant_mod = 0
$control_flag_mod = 0
$mod_flag = 1

:CARMOD_2329
goto @CARMOD_2384

:CARMOD_2336
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_2384
print_now 'MODNO' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_2384
goto @CARMOD_2439

:CARMOD_2391
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_2439
print_now 'MODNO2' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_2439
goto @CARMOD_2494

:CARMOD_2446
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_2494
print_now 'MODNO2' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_2494
goto @CARMOD_2521

:CARMOD_2501
switch_entry_exit 'CARMOD1' {state} False
$flag_cant_mod = 0

:CARMOD_2521
goto @CARMOD_2548

:CARMOD_2528
switch_entry_exit 'CARMOD1' {state} False
$flag_cant_mod = 0

:CARMOD_2548
if 
  locate_stopped_char_in_car_3d $scplayer {x} 2645.1121 {y} -2045.745 {z} 12.607 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @CARMOD_3196
$stored_mod_garage_car = store_car_char_is_in_no_save $scplayer
if 
  is_char_sitting_in_car $scplayer {vehicle} $stored_mod_garage_car
goto_if_false @CARMOD_3169
if -1
goto_if_false @CARMOD_3121
gosub @CARMOD_23627
if 
  $can_car_be_modded_counter <> 0
goto_if_false @CARMOD_3066
if 
  is_car_low_rider $stored_mod_garage_car
goto_if_false @CARMOD_3011
if 
  $control_flag_mod == 0
goto_if_false @CARMOD_2743
set_player_control $player1 {state} False
set_minigame_in_progress True
set_radio_to_players_favourite_station 
$car_lock_state_mod_garage = get_car_door_lock_status $stored_mod_garage_car
lock_car_doors $stored_mod_garage_car {lockStatus} CarLock.LockedPlayerInside
$car_name_mod_garage = get_car_model $stored_mod_garage_car
do_fade 1000 {direction} Fade.Out
$control_flag_mod = 1

:CARMOD_2743
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_2792
if 
  not get_fading_status 
goto_if_false @CARMOD_2792
set_area_name 'CARMOD2'
$control_flag_mod = 2

:CARMOD_2792
if 
  $control_flag_mod == 2
goto_if_false @CARMOD_3004
$flag_car_lowrider_carmods = 1
$car_locate_modX = 2645.1121
$car_locate_modY = -2045.745
$car_locate_modZ = 12.607
set_area_visible 2
set_char_area_visible $scplayer {areaId} 2
set_vehicle_area_visible $stored_mod_garage_car {interiorId} 2
load_shop "CARMOD2"
load_prices "CARMODS"
request_collision 616.783 {y} -74.815
load_scene 616.783 {y} -74.815 {z} 997.014
set_car_coordinates $stored_mod_garage_car {x} 616.783 {y} -74.815 {z} 997.014
set_car_heading $stored_mod_garage_car {heading} 90.0
$flag_car_lowrider_carmod = 1
$mod_garage_offsetX = 0.0
$mod_garage_offsetY = 0.0
$mod_garage_offsetZ = 0.0
$flag_cant_mod = 0
$control_flag_mod = 0
$mod_flag = 1

:CARMOD_3004
goto @CARMOD_3059

:CARMOD_3011
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_3059
print_now 'MODNO' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_3059
goto @CARMOD_3114

:CARMOD_3066
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_3114
print_now 'MODNO2' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_3114
goto @CARMOD_3162

:CARMOD_3121
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_3162
print_now 'MODNO2' {time} 5000 {flag} 1
$mod_flag = 0

:CARMOD_3162
goto @CARMOD_3189

:CARMOD_3169
switch_entry_exit 'CARMOD2' {state} False
$flag_cant_mod = 0

:CARMOD_3189
goto @CARMOD_3216

:CARMOD_3196
switch_entry_exit 'CARMOD2' {state} False
$flag_cant_mod = 0

:CARMOD_3216
if 
  locate_stopped_char_in_car_3d $scplayer {x} -2723.845 {y} 217.804 {z} 3.585 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 1.0 {drawSphere} True
goto_if_false @CARMOD_3863
$stored_mod_garage_car = store_car_char_is_in_no_save $scplayer
if 
  is_char_sitting_in_car $scplayer {vehicle} $stored_mod_garage_car
goto_if_false @CARMOD_3836
if -1
goto_if_false @CARMOD_3781
gosub @CARMOD_23627
if 
  $can_car_be_modded_counter <> 0
goto_if_false @CARMOD_3726
if 
  is_car_street_racer $stored_mod_garage_car
goto_if_false @CARMOD_3671
if 
  $control_flag_mod == 0
goto_if_false @CARMOD_3403
set_player_control $player1 {state} False
set_minigame_in_progress True
set_radio_to_players_favourite_station 
$car_lock_state_mod_garage = get_car_door_lock_status $stored_mod_garage_car
lock_car_doors $stored_mod_garage_car {lockStatus} CarLock.LockedPlayerInside
do_fade 1000 {direction} Fade.Out
$control_flag_mod = 1

:CARMOD_3403
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_3452
if 
  not get_fading_status 
goto_if_false @CARMOD_3452
set_area_name 'CARMOD3'
$control_flag_mod = 2

:CARMOD_3452
if 
  $control_flag_mod == 2
goto_if_false @CARMOD_3664
$mod_garage_offsetX = 0.0
$mod_garage_offsetY = 0.0
$mod_garage_offsetZ = 0.0
$car_locate_modX = -2723.845
$car_locate_modY = 217.804
$car_locate_modZ = 3.585
set_area_visible 3
set_char_area_visible $scplayer {areaId} 3
set_vehicle_area_visible $stored_mod_garage_car {interiorId} 3
$flag_car_lowrider_carmods = 0
$flag_car_racer_carmod = 1
load_shop "CARMOD3"
load_prices "CARMODS"
request_collision 615.286 {y} -124.239
load_scene 615.286 {y} -124.239 {z} 996.995
set_car_coordinates $stored_mod_garage_car {x} 615.286 {y} -124.239 {z} 996.995
set_car_heading $stored_mod_garage_car {heading} 90.0
$flag_cant_mod = 0
$control_flag_mod = 0
$mod_flag = 1

:CARMOD_3664
goto @CARMOD_3719

:CARMOD_3671
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_3719
print_now 'MODNO' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_3719
goto @CARMOD_3774

:CARMOD_3726
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_3774
print_now 'MODNO2' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_3774
goto @CARMOD_3829

:CARMOD_3781
if 
  $flag_cant_mod == 0
goto_if_false @CARMOD_3829
print_now 'MODNO2' {time} 5000 {flag} 1
$flag_cant_mod = 1
$mod_flag = 0

:CARMOD_3829
goto @CARMOD_3856

:CARMOD_3836
switch_entry_exit 'CARMOD3' {state} False
$flag_cant_mod = 0

:CARMOD_3856
goto @CARMOD_3883

:CARMOD_3863
switch_entry_exit 'CARMOD3' {state} False
$flag_cant_mod = 0

:CARMOD_3883
if 
  $mod_flag == 1
goto_if_false @CARMOD_9020
s$shop_name = get_loaded_shop 
set_extra_colours 4 {fade} False
if 
  is_car_street_racer $stored_mod_garage_car
goto_if_false @CARMOD_5555
$cam_general_modX = 611.2935
add_float_var_to_float_var $cam_general_modX += $mod_garage_offsetX
$cam_general_modY = -121.2534
add_float_var_to_float_var $cam_general_modY += $mod_garage_offsetY
$cam_general_modZ = 999.0341
add_float_var_to_float_var $cam_general_modZ += $mod_garage_offsetZ
$cam_general_look_at_modX = 612.0599
add_float_var_to_float_var $cam_general_look_at_modX += $mod_garage_offsetX
$cam_general_look_at_modY = -121.7974
add_float_var_to_float_var $cam_general_look_at_modY += $mod_garage_offsetY
$cam_general_look_at_modZ = 998.6927
add_float_var_to_float_var $cam_general_look_at_modZ += $mod_garage_offsetZ
$wheel_cam_modX = 612.551
add_float_var_to_float_var $wheel_cam_modX += $mod_garage_offsetX
$wheel_cam_modY = -126.8767
add_float_var_to_float_var $wheel_cam_modY += $mod_garage_offsetY
$wheel_cam_modZ = 997.6746
add_float_var_to_float_var $wheel_cam_modZ += $mod_garage_offsetZ
$wheel_cam_look_at_modX = 613.1689
add_float_var_to_float_var $wheel_cam_look_at_modX += $mod_garage_offsetX
$wheel_cam_look_at_modY = -126.0916
add_float_var_to_float_var $wheel_cam_look_at_modY += $mod_garage_offsetY
$wheel_cam_look_at_modZ = 997.6324
add_float_var_to_float_var $wheel_cam_look_at_modZ += $mod_garage_offsetZ
$spoiler_cam_modX = 615.7711
add_float_var_to_float_var $spoiler_cam_modX += $mod_garage_offsetX
$spoiler_cam_modY = -126.8826
add_float_var_to_float_var $spoiler_cam_modY += $mod_garage_offsetY
$spoiler_cam_modZ = 998.7869
add_float_var_to_float_var $spoiler_cam_modZ += $mod_garage_offsetZ
$spoiler_cam_look_at_modX = 616.1115
add_float_var_to_float_var $spoiler_cam_look_at_modX += $mod_garage_offsetX
$spoiler_cam_look_at_modY = -125.981
add_float_var_to_float_var $spoiler_cam_look_at_modY += $mod_garage_offsetY
$spoiler_cam_look_at_modZ = 998.52
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $mod_garage_offsetZ
$wing_cam_modX = 612.551
add_float_var_to_float_var $wing_cam_modX += $mod_garage_offsetX
$wing_cam_modY = -126.8767
add_float_var_to_float_var $wing_cam_modY += $mod_garage_offsetY
$wing_cam_modZ = 997.6746
add_float_var_to_float_var $wing_cam_modZ += $mod_garage_offsetZ
$wing_cam_look_at_modX = 613.1689
add_float_var_to_float_var $wing_cam_look_at_modX += $mod_garage_offsetX
$wing_cam_look_at_modY = -126.0916
add_float_var_to_float_var $wing_cam_look_at_modY += $mod_garage_offsetY
$wing_cam_look_at_modZ = 997.6324
add_float_var_to_float_var $wing_cam_look_at_modZ += $mod_garage_offsetZ
$roof_cam_modX = 611.6899
add_float_var_to_float_var $roof_cam_modX += $mod_garage_offsetX
$roof_cam_modY = -124.1341
add_float_var_to_float_var $roof_cam_modY += $mod_garage_offsetY
$roof_cam_modZ = 998.957
add_float_var_to_float_var $roof_cam_modZ += $mod_garage_offsetZ
$roof_cam_look_at_modX = 612.6635
add_float_var_to_float_var $roof_cam_look_at_modX += $mod_garage_offsetX
$roof_cam_look_at_modY = -124.0004
add_float_var_to_float_var $roof_cam_look_at_modY += $mod_garage_offsetY
$roof_cam_look_at_modZ = 998.772
add_float_var_to_float_var $roof_cam_look_at_modZ += $mod_garage_offsetZ
$bonnet_cam_modX = 610.8686
add_float_var_to_float_var $bonnet_cam_modX += $mod_garage_offsetX
$bonnet_cam_modY = -123.9456
add_float_var_to_float_var $bonnet_cam_modY += $mod_garage_offsetY
$bonnet_cam_modZ = 998.8293
add_float_var_to_float_var $bonnet_cam_modZ += $mod_garage_offsetZ
$bonnet_cam_look_at_modX = 611.8196
add_float_var_to_float_var $bonnet_cam_look_at_modX += $mod_garage_offsetX
$bonnet_cam_look_at_modY = -123.8469
add_float_var_to_float_var $bonnet_cam_look_at_modY += $mod_garage_offsetY
$bonnet_cam_look_at_modZ = 998.5366
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $mod_garage_offsetZ
$exhaust_cam_modX = 618.9148
add_float_var_to_float_var $exhaust_cam_modX += $mod_garage_offsetX
$exhaust_cam_modY = -125.9082
add_float_var_to_float_var $exhaust_cam_modY += $mod_garage_offsetY
$exhaust_cam_modZ = 997.2668
add_float_var_to_float_var $exhaust_cam_modZ += $mod_garage_offsetZ
$exhaust_look_at_cam_modX = 618.0776
add_float_var_to_float_var $exhaust_look_at_cam_modX += $mod_garage_offsetX
$exhaust_look_at_cam_modY = -125.3645
add_float_var_to_float_var $exhaust_look_at_cam_modY += $mod_garage_offsetY
$exhaust_look_at_cam_modZ = 997.3261
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $mod_garage_offsetZ
$front_fender_cam_modX = 611.384
add_float_var_to_float_var $front_fender_cam_modX += $mod_garage_offsetX
$front_fender_cam_modY = -122.4332
add_float_var_to_float_var $front_fender_cam_modY += $mod_garage_offsetY
$front_fender_cam_modZ = 997.4291
add_float_var_to_float_var $front_fender_cam_modZ += $mod_garage_offsetZ
$front_fender_look_at_cam_modX = 612.2263
add_float_var_to_float_var $front_fender_look_at_cam_modX += $mod_garage_offsetX
$front_fender_look_at_cam_modY = -122.972
add_float_var_to_float_var $front_fender_look_at_cam_modY += $mod_garage_offsetY
$front_fender_look_at_cam_modZ = 997.4357
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $mod_garage_offsetZ
$rear_fender_cam_modX = 618.9148
add_float_var_to_float_var $rear_fender_cam_modX += $mod_garage_offsetX
$rear_fender_cam_modY = -125.9082
add_float_var_to_float_var $rear_fender_cam_modY += $mod_garage_offsetY
$rear_fender_cam_modZ = 997.2668
add_float_var_to_float_var $rear_fender_cam_modZ += $mod_garage_offsetZ
$rear_fender_look_at_cam_modX = 618.0776
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $mod_garage_offsetX
$rear_fender_look_at_cam_modY = -125.3645
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $mod_garage_offsetY
$rear_fender_look_at_cam_modZ = 997.3261
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $mod_garage_offsetZ
$lights_cam_modX = 611.1373
add_float_var_to_float_var $lights_cam_modX += $mod_garage_offsetX
$lights_cam_modY = -124.2795
add_float_var_to_float_var $lights_cam_modY += $mod_garage_offsetY
$lights_cam_modZ = 998.1324
add_float_var_to_float_var $lights_cam_modZ += $mod_garage_offsetZ
$lights_look_at_cam_modX = 612.1359
add_float_var_to_float_var $lights_look_at_cam_modX += $mod_garage_offsetX
$lights_look_at_cam_modY = -124.2299
add_float_var_to_float_var $lights_look_at_cam_modY += $mod_garage_offsetY
$lights_look_at_cam_modZ = 998.1481
add_float_var_to_float_var $lights_look_at_cam_modZ += $mod_garage_offsetZ
$front_bullbar_cam_modX = 610.8206
add_float_var_to_float_var $front_bullbar_cam_modX += $mod_garage_offsetX
$front_bullbar_cam_modY = -126.0154
add_float_var_to_float_var $front_bullbar_cam_modY += $mod_garage_offsetY
$front_bullbar_cam_modZ = 997.3317
add_float_var_to_float_var $front_bullbar_cam_modZ += $mod_garage_offsetZ
$front_bullbar_look_at_cam_modX = 611.6263
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $mod_garage_offsetX
$front_bullbar_look_at_cam_modY = -125.4232
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $mod_garage_offsetY
$front_bullbar_look_at_cam_modZ = 997.3185
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $mod_garage_offsetZ
$rear_bullbar_cam_modX = 619.0011
add_float_var_to_float_var $rear_bullbar_cam_modX += $mod_garage_offsetX
$rear_bullbar_cam_modY = -126.195
add_float_var_to_float_var $rear_bullbar_cam_modY += $mod_garage_offsetY
$rear_bullbar_cam_modZ = 997.444
add_float_var_to_float_var $rear_bullbar_cam_modZ += $mod_garage_offsetZ
$rear_bullbar_look_at_cam_modX = 618.3423
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $mod_garage_offsetX
$rear_bullbar_look_at_cam_modY = -125.4429
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $mod_garage_offsetY
$rear_bullbar_look_at_cam_modZ = 997.461
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $mod_garage_offsetZ
$nitro_cam_modX = 617.8134
add_float_var_to_float_var $nitro_cam_modX += $mod_garage_offsetX
$nitro_cam_modY = -126.8104
add_float_var_to_float_var $nitro_cam_modY += $mod_garage_offsetY
$nitro_cam_modZ = 999.6476
add_float_var_to_float_var $nitro_cam_modZ += $mod_garage_offsetZ
$nitro_look_at_modX = 617.3374
add_float_var_to_float_var $nitro_look_at_modX += $mod_garage_offsetX
$nitro_look_at_modY = -126.1012
add_float_var_to_float_var $nitro_look_at_modY += $mod_garage_offsetY
$nitro_look_at_modZ = 999.1275
add_float_var_to_float_var $nitro_look_at_modZ += $mod_garage_offsetZ
$custom_paint_cam_modX = 611.2935
add_float_var_to_float_var $custom_paint_cam_modX += $mod_garage_offsetX
$custom_paint_cam_modY = -121.2534
add_float_var_to_float_var $custom_paint_cam_modY += $mod_garage_offsetY
$custom_paint_cam_modZ = 999.0341
add_float_var_to_float_var $custom_paint_cam_modZ += $mod_garage_offsetZ
$custom_paint_cam_look_at_modX = 612.0599
add_float_var_to_float_var $custom_paint_cam_look_at_modX += $mod_garage_offsetX
$custom_paint_cam_look_at_modY = -121.7974
add_float_var_to_float_var $custom_paint_cam_look_at_modY += $mod_garage_offsetY
$custom_paint_cam_look_at_modZ = 998.6927
add_float_var_to_float_var $custom_paint_cam_look_at_modZ += $mod_garage_offsetZ
$misc_cam_modX = 611.2935
add_float_var_to_float_var $misc_cam_modX += $mod_garage_offsetX
$misc_cam_modY = -121.2534
add_float_var_to_float_var $misc_cam_modY += $mod_garage_offsetY
$misc_cam_modZ = 999.0341
add_float_var_to_float_var $misc_cam_modZ += $mod_garage_offsetZ
$misc_cam_look_at_modX = 612.0599
add_float_var_to_float_var $misc_cam_look_at_modX += $mod_garage_offsetX
$misc_cam_look_at_modY = -121.7974
add_float_var_to_float_var $misc_cam_look_at_modY += $mod_garage_offsetY
$misc_cam_look_at_modZ = 998.6927
add_float_var_to_float_var $misc_cam_look_at_modZ += $mod_garage_offsetZ
goto @CARMOD_8952

:CARMOD_5555
if 
  is_car_low_rider $stored_mod_garage_car
goto_if_false @CARMOD_7332
$cam_general_modX = 611.9196
add_float_var_to_float_var $cam_general_modX += $mod_garage_offsetX
$cam_general_modY = -71.983
add_float_var_to_float_var $cam_general_modY += $mod_garage_offsetY
$cam_general_modZ = 998.9867
add_float_var_to_float_var $cam_general_modZ += $mod_garage_offsetZ
$cam_general_look_at_modX = 612.8176
add_float_var_to_float_var $cam_general_look_at_modX += $mod_garage_offsetX
$cam_general_look_at_modY = -72.3798
add_float_var_to_float_var $cam_general_look_at_modY += $mod_garage_offsetY
$cam_general_look_at_modZ = 998.7969
add_float_var_to_float_var $cam_general_look_at_modZ += $mod_garage_offsetZ
$wheel_cam_modX = 613.5045
add_float_var_to_float_var $wheel_cam_modX += $mod_garage_offsetX
$wheel_cam_modY = -77.61
add_float_var_to_float_var $wheel_cam_modY += $mod_garage_offsetY
$wheel_cam_modZ = 997.6773
add_float_var_to_float_var $wheel_cam_modZ += $mod_garage_offsetZ
$wheel_cam_look_at_modX = 614.0041
add_float_var_to_float_var $wheel_cam_look_at_modX += $mod_garage_offsetX
$wheel_cam_look_at_modY = -76.7527
add_float_var_to_float_var $wheel_cam_look_at_modY += $mod_garage_offsetY
$wheel_cam_look_at_modZ = 997.8019
add_float_var_to_float_var $wheel_cam_look_at_modZ += $mod_garage_offsetZ
$spoiler_cam_modX = 617.6616
add_float_var_to_float_var $spoiler_cam_modX += $mod_garage_offsetX
$spoiler_cam_modY = -77.5803
add_float_var_to_float_var $spoiler_cam_modY += $mod_garage_offsetY
$spoiler_cam_modZ = 998.5854
add_float_var_to_float_var $spoiler_cam_modZ += $mod_garage_offsetZ
$spoiler_cam_look_at_modX = 618.0117
add_float_var_to_float_var $spoiler_cam_look_at_modX += $mod_garage_offsetX
$spoiler_cam_look_at_modY = -76.6793
add_float_var_to_float_var $spoiler_cam_look_at_modY += $mod_garage_offsetY
$spoiler_cam_look_at_modZ = 998.329
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $mod_garage_offsetZ
$wing_cam_modX = 616.0645
add_float_var_to_float_var $wing_cam_modX += $mod_garage_offsetX
$wing_cam_modY = -77.4652
add_float_var_to_float_var $wing_cam_modY += $mod_garage_offsetY
$wing_cam_modZ = 998.1566
add_float_var_to_float_var $wing_cam_modZ += $mod_garage_offsetZ
$wing_cam_look_at_modX = 616.6523
add_float_var_to_float_var $wing_cam_look_at_modX += $mod_garage_offsetX
$wing_cam_look_at_modY = -76.6904
add_float_var_to_float_var $wing_cam_look_at_modY += $mod_garage_offsetY
$wing_cam_look_at_modZ = 997.9242
add_float_var_to_float_var $wing_cam_look_at_modZ += $mod_garage_offsetZ
$roof_cam_modX = 615.7546
add_float_var_to_float_var $roof_cam_modX += $mod_garage_offsetX
$roof_cam_modY = -77.9771
add_float_var_to_float_var $roof_cam_modY += $mod_garage_offsetY
$roof_cam_modZ = 999.3472
add_float_var_to_float_var $roof_cam_modZ += $mod_garage_offsetZ
$roof_cam_look_at_modX = 616.0991
add_float_var_to_float_var $roof_cam_look_at_modX += $mod_garage_offsetX
$roof_cam_look_at_modY = -77.1049
add_float_var_to_float_var $roof_cam_look_at_modY += $mod_garage_offsetY
$roof_cam_look_at_modZ = 998.9999
add_float_var_to_float_var $roof_cam_look_at_modZ += $mod_garage_offsetZ
$bonnet_cam_modX = 612.3392
add_float_var_to_float_var $bonnet_cam_modX += $mod_garage_offsetX
$bonnet_cam_modY = -74.6454
add_float_var_to_float_var $bonnet_cam_modY += $mod_garage_offsetY
$bonnet_cam_modZ = 998.7184
add_float_var_to_float_var $bonnet_cam_modZ += $mod_garage_offsetZ
$bonnet_cam_look_at_modX = 613.3315
add_float_var_to_float_var $bonnet_cam_look_at_modX += $mod_garage_offsetX
$bonnet_cam_look_at_modY = -74.5934
add_float_var_to_float_var $bonnet_cam_look_at_modY += $mod_garage_offsetY
$bonnet_cam_look_at_modZ = 998.6063
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $mod_garage_offsetZ
$exhaust_cam_modX = 620.7762
add_float_var_to_float_var $exhaust_cam_modX += $mod_garage_offsetX
$exhaust_cam_modY = -76.6076
add_float_var_to_float_var $exhaust_cam_modY += $mod_garage_offsetY
$exhaust_cam_modZ = 997.2366
add_float_var_to_float_var $exhaust_cam_modZ += $mod_garage_offsetZ
$exhaust_look_at_cam_modX = 620.051
add_float_var_to_float_var $exhaust_look_at_cam_modX += $mod_garage_offsetX
$exhaust_look_at_cam_modY = -75.9492
add_float_var_to_float_var $exhaust_look_at_cam_modY += $mod_garage_offsetY
$exhaust_look_at_cam_modZ = 997.4383
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $mod_garage_offsetZ
$front_fender_cam_modX = 612.1144
add_float_var_to_float_var $front_fender_cam_modX += $mod_garage_offsetX
$front_fender_cam_modY = -74.4962
add_float_var_to_float_var $front_fender_cam_modY += $mod_garage_offsetY
$front_fender_cam_modZ = 997.7816
add_float_var_to_float_var $front_fender_cam_modZ += $mod_garage_offsetZ
$front_fender_look_at_cam_modX = 613.111
add_float_var_to_float_var $front_fender_look_at_cam_modX += $mod_garage_offsetX
$front_fender_look_at_cam_modY = -74.4536
add_float_var_to_float_var $front_fender_look_at_cam_modY += $mod_garage_offsetY
$front_fender_look_at_cam_modZ = 997.7114
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $mod_garage_offsetZ
$rear_fender_cam_modX = 620.7762
add_float_var_to_float_var $rear_fender_cam_modX += $mod_garage_offsetX
$rear_fender_cam_modY = -76.6076
add_float_var_to_float_var $rear_fender_cam_modY += $mod_garage_offsetY
$rear_fender_cam_modZ = 997.2366
add_float_var_to_float_var $rear_fender_cam_modZ += $mod_garage_offsetZ
$rear_fender_look_at_cam_modX = 620.051
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $mod_garage_offsetX
$rear_fender_look_at_cam_modY = -75.9492
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $mod_garage_offsetY
$rear_fender_look_at_cam_modZ = 997.4383
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $mod_garage_offsetZ
$lights_cam_modX = 612.1144
add_float_var_to_float_var $lights_cam_modX += $mod_garage_offsetX
$lights_cam_modY = -74.4962
add_float_var_to_float_var $lights_cam_modY += $mod_garage_offsetY
$lights_cam_modZ = 997.7816
add_float_var_to_float_var $lights_cam_modZ += $mod_garage_offsetZ
$lights_look_at_cam_modX = 613.111
add_float_var_to_float_var $lights_look_at_cam_modX += $mod_garage_offsetX
$lights_look_at_cam_modY = -74.4536
add_float_var_to_float_var $lights_look_at_cam_modY += $mod_garage_offsetY
$lights_look_at_cam_modZ = 997.7114
add_float_var_to_float_var $lights_look_at_cam_modZ += $mod_garage_offsetZ
$front_bullbar_cam_modX = 612.1144
add_float_var_to_float_var $front_bullbar_cam_modX += $mod_garage_offsetX
$front_bullbar_cam_modY = -74.4962
add_float_var_to_float_var $front_bullbar_cam_modY += $mod_garage_offsetY
$front_bullbar_cam_modZ = 997.7816
add_float_var_to_float_var $front_bullbar_cam_modZ += $mod_garage_offsetZ
$front_bullbar_look_at_cam_modX = 613.111
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $mod_garage_offsetX
$front_bullbar_look_at_cam_modY = -74.4536
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $mod_garage_offsetY
$front_bullbar_look_at_cam_modZ = 997.7114
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $mod_garage_offsetZ
$rear_bullbar_cam_modX = 620.8461
add_float_var_to_float_var $rear_bullbar_cam_modX += $mod_garage_offsetX
$rear_bullbar_cam_modY = -76.8773
add_float_var_to_float_var $rear_bullbar_cam_modY += $mod_garage_offsetY
$rear_bullbar_cam_modZ = 997.3512
add_float_var_to_float_var $rear_bullbar_cam_modZ += $mod_garage_offsetZ
$rear_bullbar_look_at_cam_modX = 620.2133
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $mod_garage_offsetX
$rear_bullbar_look_at_cam_modY = -76.1111
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $mod_garage_offsetY
$rear_bullbar_look_at_cam_modZ = 997.4626
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $mod_garage_offsetZ
$nitro_cam_modX = 621.0414
add_float_var_to_float_var $nitro_cam_modX += $mod_garage_offsetX
$nitro_cam_modY = -74.9455
add_float_var_to_float_var $nitro_cam_modY += $mod_garage_offsetY
$nitro_cam_modZ = 998.9329
add_float_var_to_float_var $nitro_cam_modZ += $mod_garage_offsetZ
$nitro_look_at_modX = 620.0759
add_float_var_to_float_var $nitro_look_at_modX += $mod_garage_offsetX
$nitro_look_at_modY = -74.9535
add_float_var_to_float_var $nitro_look_at_modY += $mod_garage_offsetY
$nitro_look_at_modZ = 998.6727
add_float_var_to_float_var $nitro_look_at_modZ += $mod_garage_offsetZ
$custom_paint_cam_modX = 612.2584
add_float_var_to_float_var $custom_paint_cam_modX += $mod_garage_offsetX
$custom_paint_cam_modY = -72.1851
add_float_var_to_float_var $custom_paint_cam_modY += $mod_garage_offsetY
$custom_paint_cam_modZ = 998.8818
add_float_var_to_float_var $custom_paint_cam_modZ += $mod_garage_offsetZ
$custom_paint_cam_look_at_modX = 613.1286
add_float_var_to_float_var $custom_paint_cam_look_at_modX += $mod_garage_offsetX
$custom_paint_cam_look_at_modY = -72.6701
add_float_var_to_float_var $custom_paint_cam_look_at_modY += $mod_garage_offsetY
$custom_paint_cam_look_at_modZ = 998.7961
add_float_var_to_float_var $custom_paint_cam_look_at_modZ += $mod_garage_offsetZ
if 
  is_int_var_equal_to_constant $car_name_mod_garage == 534
goto_if_false @CARMOD_7217
$misc_cam_modX = 612.1144
add_float_var_to_float_var $misc_cam_modX += $mod_garage_offsetX
$misc_cam_modY = -74.4962
add_float_var_to_float_var $misc_cam_modY += $mod_garage_offsetY
$misc_cam_modZ = 997.7816
add_float_var_to_float_var $misc_cam_modZ += $mod_garage_offsetZ
$misc_cam_look_at_modX = 613.111
add_float_var_to_float_var $misc_cam_look_at_modX += $mod_garage_offsetX
$misc_cam_look_at_modY = -74.4536
add_float_var_to_float_var $misc_cam_look_at_modY += $mod_garage_offsetY
$misc_cam_look_at_modZ = 997.7114
add_float_var_to_float_var $misc_cam_look_at_modZ += $mod_garage_offsetZ
goto @CARMOD_7325

:CARMOD_7217
$misc_cam_modX = 615.7372
add_float_var_to_float_var $misc_cam_modX += $mod_garage_offsetX
$misc_cam_modY = -77.2556
add_float_var_to_float_var $misc_cam_modY += $mod_garage_offsetY
$misc_cam_modZ = 998.6337
add_float_var_to_float_var $misc_cam_modZ += $mod_garage_offsetZ
$misc_cam_look_at_modX = 616.2341
add_float_var_to_float_var $misc_cam_look_at_modX += $mod_garage_offsetX
$misc_cam_look_at_modY = -76.4031
add_float_var_to_float_var $misc_cam_look_at_modY += $mod_garage_offsetY
$misc_cam_look_at_modZ = 998.4717
add_float_var_to_float_var $misc_cam_look_at_modZ += $mod_garage_offsetZ

:CARMOD_7325
goto @CARMOD_8952

:CARMOD_7332
$cam_general_modX = 612.7667
add_float_var_to_float_var $cam_general_modX += $mod_garage_offsetX
$cam_general_modY = 0.5696
add_float_var_to_float_var $cam_general_modY += $mod_garage_offsetY
$cam_general_modZ = 1002.114
add_float_var_to_float_var $cam_general_modZ += $mod_garage_offsetZ
$cam_general_look_at_modX = 613.6664
add_float_var_to_float_var $cam_general_look_at_modX += $mod_garage_offsetX
$cam_general_look_at_modY = 0.1645
add_float_var_to_float_var $cam_general_look_at_modY += $mod_garage_offsetY
$cam_general_look_at_modZ = 1001.951
add_float_var_to_float_var $cam_general_look_at_modZ += $mod_garage_offsetZ
$wheel_cam_modX = 614.4382
add_float_var_to_float_var $wheel_cam_modX += $mod_garage_offsetX
$wheel_cam_modY = -4.5756
add_float_var_to_float_var $wheel_cam_modY += $mod_garage_offsetY
$wheel_cam_modZ = 1000.632
add_float_var_to_float_var $wheel_cam_modZ += $mod_garage_offsetZ
$wheel_cam_look_at_modX = 614.9804
add_float_var_to_float_var $wheel_cam_look_at_modX += $mod_garage_offsetX
$wheel_cam_look_at_modY = -3.7381
add_float_var_to_float_var $wheel_cam_look_at_modY += $mod_garage_offsetY
$wheel_cam_look_at_modZ = 1000.565
add_float_var_to_float_var $wheel_cam_look_at_modZ += $mod_garage_offsetZ
$spoiler_cam_modX = 618.1872
add_float_var_to_float_var $spoiler_cam_modX += $mod_garage_offsetX
$spoiler_cam_modY = -5.3884
add_float_var_to_float_var $spoiler_cam_modY += $mod_garage_offsetY
$spoiler_cam_modZ = 1002.423
add_float_var_to_float_var $spoiler_cam_modZ += $mod_garage_offsetZ
$spoiler_cam_look_at_modX = 618.4805
add_float_var_to_float_var $spoiler_cam_look_at_modX += $mod_garage_offsetX
$spoiler_cam_look_at_modY = -4.4899
add_float_var_to_float_var $spoiler_cam_look_at_modY += $mod_garage_offsetY
$spoiler_cam_look_at_modZ = 1002.097
add_float_var_to_float_var $spoiler_cam_look_at_modZ += $mod_garage_offsetZ
$wing_cam_modX = 615.6667
add_float_var_to_float_var $wing_cam_modX += $mod_garage_offsetX
$wing_cam_modY = -4.5419
add_float_var_to_float_var $wing_cam_modY += $mod_garage_offsetY
$wing_cam_modZ = 1000.27
add_float_var_to_float_var $wing_cam_modZ += $mod_garage_offsetZ
$wing_cam_look_at_modX = 616.2391
add_float_var_to_float_var $wing_cam_look_at_modX += $mod_garage_offsetX
$wing_cam_look_at_modY = -3.7425
add_float_var_to_float_var $wing_cam_look_at_modY += $mod_garage_offsetY
$wing_cam_look_at_modZ = 1000.452
add_float_var_to_float_var $wing_cam_look_at_modZ += $mod_garage_offsetZ
$roof_cam_modX = 613.6697
add_float_var_to_float_var $roof_cam_modX += $mod_garage_offsetX
$roof_cam_modY = -1.4788
add_float_var_to_float_var $roof_cam_modY += $mod_garage_offsetY
$roof_cam_modZ = 1002.232
add_float_var_to_float_var $roof_cam_modZ += $mod_garage_offsetZ
$roof_cam_look_at_modX = 614.647
add_float_var_to_float_var $roof_cam_look_at_modX += $mod_garage_offsetX
$roof_cam_look_at_modY = -1.5313
add_float_var_to_float_var $roof_cam_look_at_modY += $mod_garage_offsetY
$roof_cam_look_at_modZ = 1002.027
add_float_var_to_float_var $roof_cam_look_at_modZ += $mod_garage_offsetZ
$bonnet_cam_modX = 613.5347
add_float_var_to_float_var $bonnet_cam_modX += $mod_garage_offsetX
$bonnet_cam_modY = -1.7916
add_float_var_to_float_var $bonnet_cam_modY += $mod_garage_offsetY
$bonnet_cam_modZ = 1002.526
add_float_var_to_float_var $bonnet_cam_modZ += $mod_garage_offsetZ
$bonnet_cam_look_at_modX = 614.4059
add_float_var_to_float_var $bonnet_cam_look_at_modX += $mod_garage_offsetX
$bonnet_cam_look_at_modY = -1.7952
add_float_var_to_float_var $bonnet_cam_look_at_modY += $mod_garage_offsetY
$bonnet_cam_look_at_modZ = 1002.035
add_float_var_to_float_var $bonnet_cam_look_at_modZ += $mod_garage_offsetZ
$exhaust_cam_modX = 621.9104
add_float_var_to_float_var $exhaust_cam_modX += $mod_garage_offsetX
$exhaust_cam_modY = -3.6269
add_float_var_to_float_var $exhaust_cam_modY += $mod_garage_offsetY
$exhaust_cam_modZ = 1000.408
add_float_var_to_float_var $exhaust_cam_modZ += $mod_garage_offsetZ
$exhaust_look_at_cam_modX = 621.0475
add_float_var_to_float_var $exhaust_look_at_cam_modX += $mod_garage_offsetX
$exhaust_look_at_cam_modY = -3.1303
add_float_var_to_float_var $exhaust_look_at_cam_modY += $mod_garage_offsetY
$exhaust_look_at_cam_modZ = 1000.314
add_float_var_to_float_var $exhaust_look_at_cam_modZ += $mod_garage_offsetZ
$front_fender_cam_modX = 611.6121
add_float_var_to_float_var $front_fender_cam_modX += $mod_garage_offsetX
$front_fender_cam_modY = -1.4851
add_float_var_to_float_var $front_fender_cam_modY += $mod_garage_offsetY
$front_fender_cam_modZ = 1001.777
add_float_var_to_float_var $front_fender_cam_modZ += $mod_garage_offsetZ
$front_fender_look_at_cam_modX = 612.6027
add_float_var_to_float_var $front_fender_look_at_cam_modX += $mod_garage_offsetX
$front_fender_look_at_cam_modY = -1.507
add_float_var_to_float_var $front_fender_look_at_cam_modY += $mod_garage_offsetY
$front_fender_look_at_cam_modZ = 1001.642
add_float_var_to_float_var $front_fender_look_at_cam_modZ += $mod_garage_offsetZ
$rear_fender_cam_modX = 621.4796
add_float_var_to_float_var $rear_fender_cam_modX += $mod_garage_offsetX
$rear_fender_cam_modY = -3.4952
add_float_var_to_float_var $rear_fender_cam_modY += $mod_garage_offsetY
$rear_fender_cam_modZ = 1000.33
add_float_var_to_float_var $rear_fender_cam_modZ += $mod_garage_offsetZ
$rear_fender_look_at_cam_modX = 620.5905
add_float_var_to_float_var $rear_fender_look_at_cam_modX += $mod_garage_offsetX
$rear_fender_look_at_cam_modY = -3.0499
add_float_var_to_float_var $rear_fender_look_at_cam_modY += $mod_garage_offsetY
$rear_fender_look_at_cam_modZ = 1000.435
add_float_var_to_float_var $rear_fender_look_at_cam_modZ += $mod_garage_offsetZ
$lights_cam_modX = 612.6115
add_float_var_to_float_var $lights_cam_modX += $mod_garage_offsetX
$lights_cam_modY = -1.7655
add_float_var_to_float_var $lights_cam_modY += $mod_garage_offsetY
$lights_cam_modZ = 1001.3
add_float_var_to_float_var $lights_cam_modZ += $mod_garage_offsetZ
$lights_look_at_cam_modX = 613.5665
add_float_var_to_float_var $lights_look_at_cam_modX += $mod_garage_offsetX
$lights_look_at_cam_modY = -1.6304
add_float_var_to_float_var $lights_look_at_cam_modY += $mod_garage_offsetY
$lights_look_at_cam_modZ = 1001.036
add_float_var_to_float_var $lights_look_at_cam_modZ += $mod_garage_offsetZ
$front_bullbar_cam_modX = 611.6121
add_float_var_to_float_var $front_bullbar_cam_modX += $mod_garage_offsetX
$front_bullbar_cam_modY = -1.4851
add_float_var_to_float_var $front_bullbar_cam_modY += $mod_garage_offsetY
$front_bullbar_cam_modZ = 1001.777
add_float_var_to_float_var $front_bullbar_cam_modZ += $mod_garage_offsetZ
$front_bullbar_look_at_cam_modX = 612.6027
add_float_var_to_float_var $front_bullbar_look_at_cam_modX += $mod_garage_offsetX
$front_bullbar_look_at_cam_modY = -1.507
add_float_var_to_float_var $front_bullbar_look_at_cam_modY += $mod_garage_offsetY
$front_bullbar_look_at_cam_modZ = 1001.642
add_float_var_to_float_var $front_bullbar_look_at_cam_modZ += $mod_garage_offsetZ
$rear_bullbar_cam_modX = 621.4796
add_float_var_to_float_var $rear_bullbar_cam_modX += $mod_garage_offsetX
$rear_bullbar_cam_modY = -3.4952
add_float_var_to_float_var $rear_bullbar_cam_modY += $mod_garage_offsetY
$rear_bullbar_cam_modZ = 1000.33
add_float_var_to_float_var $rear_bullbar_cam_modZ += $mod_garage_offsetZ
$rear_bullbar_look_at_cam_modX = 620.5905
add_float_var_to_float_var $rear_bullbar_look_at_cam_modX += $mod_garage_offsetX
$rear_bullbar_look_at_cam_modY = -3.0499
add_float_var_to_float_var $rear_bullbar_look_at_cam_modY += $mod_garage_offsetY
$rear_bullbar_look_at_cam_modZ = 1000.435
add_float_var_to_float_var $rear_bullbar_look_at_cam_modZ += $mod_garage_offsetZ
$nitro_cam_modX = 622.5965
add_float_var_to_float_var $nitro_cam_modX += $mod_garage_offsetX
$nitro_cam_modY = -2.014
add_float_var_to_float_var $nitro_cam_modY += $mod_garage_offsetY
$nitro_cam_modZ = 1003.019
add_float_var_to_float_var $nitro_cam_modZ += $mod_garage_offsetZ
$nitro_look_at_modX = 621.7657
add_float_var_to_float_var $nitro_look_at_modX += $mod_garage_offsetX
$nitro_look_at_modY = -2.0174
add_float_var_to_float_var $nitro_look_at_modY += $mod_garage_offsetY
$nitro_look_at_modZ = 1002.462
add_float_var_to_float_var $nitro_look_at_modZ += $mod_garage_offsetZ
$custom_paint_cam_modX = 612.7667
add_float_var_to_float_var $custom_paint_cam_modX += $mod_garage_offsetX
$custom_paint_cam_modY = 0.5696
add_float_var_to_float_var $custom_paint_cam_modY += $mod_garage_offsetY
$custom_paint_cam_modZ = 1002.114
add_float_var_to_float_var $custom_paint_cam_modZ += $mod_garage_offsetZ
$custom_paint_cam_look_at_modX = 613.6664
add_float_var_to_float_var $custom_paint_cam_look_at_modX += $mod_garage_offsetX
$custom_paint_cam_look_at_modY = 0.1645
add_float_var_to_float_var $custom_paint_cam_look_at_modY += $mod_garage_offsetY
$custom_paint_cam_look_at_modZ = 1001.951
add_float_var_to_float_var $custom_paint_cam_look_at_modZ += $mod_garage_offsetZ
$misc_cam_modX = 613.5844
add_float_var_to_float_var $misc_cam_modX += $mod_garage_offsetX
$misc_cam_modY = -0.7127
add_float_var_to_float_var $misc_cam_modY += $mod_garage_offsetY
$misc_cam_modZ = 1002.031
add_float_var_to_float_var $misc_cam_modZ += $mod_garage_offsetZ
$misc_cam_look_at_modX = 614.5616
add_float_var_to_float_var $misc_cam_look_at_modX += $mod_garage_offsetX
$misc_cam_look_at_modY = -0.84
add_float_var_to_float_var $misc_cam_look_at_modY += $mod_garage_offsetY
$misc_cam_look_at_modZ = 1001.862
add_float_var_to_float_var $misc_cam_look_at_modZ += $mod_garage_offsetZ

:CARMOD_8952
TIMERA = 0
display_radar False
show_update_stats False
set_fixed_camera_position $cam_general_modX {y} $cam_general_modY {z} $cam_general_modZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_general_look_at_modX {y} $cam_general_look_at_modY {z} $cam_general_look_at_modZ {switchStyle} SwitchType.JumpCut
$control_flag_mod = 0
$mod_flag = 2

:CARMOD_9020
if 
  $mod_flag == 2
goto_if_false @CARMOD_9209
if 
  $control_flag_mod == 0
goto_if_false @CARMOD_9109
set_car_density_multiplier 0.0
$item_no_shops = get_number_of_items_in_shop 
$stored_car_colour1, $stored_car_colour2 = get_car_colours $stored_mod_garage_car
$stored_paintjob_number = get_current_vehicle_paintjob $stored_mod_garage_car
$car_model_carmod1 = get_car_model $stored_mod_garage_car
reset_vehicle_hydraulics $stored_mod_garage_car
store_car_mod_state 
$control_flag_mod = 1

:CARMOD_9109
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_9160
if 
  TIMERA > 2000
goto_if_false @CARMOD_9160
do_fade 1000 {direction} Fade.In
$control_flag_mod = 2

:CARMOD_9160
if 
  $control_flag_mod == 2
goto_if_false @CARMOD_9209
if 
  not get_fading_status 
goto_if_false @CARMOD_9209
set_player_is_in_stadium True
$control_flag_mod = 0
$mod_flag = 3

:CARMOD_9209
if 
  $mod_flag == 3
goto_if_false @CARMOD_10138
if 
  $control_flag_mod == 0
goto_if_false @CARMOD_9535
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_9277
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_9277
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_9511
$car_colour1_change_mods = 0
$car_colour2_change_mods = 0
$upgrade_meun1_selected = get_menu_item_selected $main_menu_shops
if 
  0 > $upgrade_meun1_selected
goto_if_false @CARMOD_9341
$upgrade_meun1_selected = 0

:CARMOD_9341
if 
  $upgradetype($upgrade_meun1_selected,12i) <> 101
goto_if_false @CARMOD_9429
if 
  $upgradetype($upgrade_meun1_selected,12i) <> 100
goto_if_false @CARMOD_9407
$original_car_mod = get_current_car_mod $stored_mod_garage_car {slot} $upgradetype($upgrade_meun1_selected,12i)
goto @CARMOD_9415

:CARMOD_9407
$stored_paintjob_number = get_current_vehicle_paintjob $stored_mod_garage_car

:CARMOD_9415
gosub @CARMOD_17346
goto @CARMOD_9504

:CARMOD_9429
set_var_float_to_var_float $mod_swap_camX = $cam_general_modX
set_var_float_to_var_float $mod_swap_camY = $cam_general_modY
set_var_float_to_var_float $mod_swap_camZ = $cam_general_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $cam_general_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $cam_general_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $cam_general_look_at_modZ
$item_price($mod_counter,12i) = 150
$car_name_mod = get_car_model $stored_mod_garage_car
gosub @CARMOD_22277

:CARMOD_9504
$control_flag_mod = 5

:CARMOD_9511
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_9535
$control_flag_mod = 1

:CARMOD_9535
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_9624
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_9624
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_9602
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CARMOD_9602
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.Out
$control_flag_mod = 2

:CARMOD_9624
if 
  $control_flag_mod == 2
goto_if_false @CARMOD_9837
if 
  not get_fading_status 
goto_if_false @CARMOD_9837
set_area_visible 0
set_char_area_visible $scplayer {areaId} 0
set_vehicle_area_visible $stored_mod_garage_car {interiorId} 0
clear_extra_colours False
restore_car_mod_state 
$flag_car_lowrider_carmods = 0
request_collision $car_locate_modX {y} $car_locate_modY
load_scene $car_locate_modX {y} $car_locate_modY {z} $car_locate_modZ
set_car_coordinates $stored_mod_garage_car {x} $car_locate_modX {y} $car_locate_modY {z} $car_locate_modZ
if 
  $flag_car_normal_carmod == 1
goto_if_false @CARMOD_9749
set_car_heading $stored_mod_garage_car {heading} 0.0
set_camera_behind_player 

:CARMOD_9749
if 
  $flag_car_lowrider_carmod == 1
goto_if_false @CARMOD_9779
set_car_heading $stored_mod_garage_car {heading} 180.0
set_camera_behind_player 

:CARMOD_9779
if 
  $flag_car_racer_carmod == 1
goto_if_false @CARMOD_9809
set_car_heading $stored_mod_garage_car {heading} 90.0
set_camera_behind_player 

:CARMOD_9809
manage_all_population 
restore_camera_jumpcut 
clear_loaded_shop 
set_fading_colour 0 {g} 0 {b} 0
do_fade 1000 {direction} Fade.In
$control_flag_mod = 3

:CARMOD_9837
if 
  $control_flag_mod == 3
goto_if_false @CARMOD_9902
if 
  not get_fading_status 
goto_if_false @CARMOD_9902
set_player_control $player1 {state} True
set_minigame_in_progress False
lock_car_doors $stored_mod_garage_car {lockStatus} $car_lock_state_mod_garage
display_radar True
set_player_is_in_stadium False
$control_flag_mod = 4

:CARMOD_9902
if 
  $control_flag_mod == 4
goto_if_false @CARMOD_10018
if 
  not locate_char_in_car_3d $scplayer {x} $car_locate_modX {y} $car_locate_modY {z} $car_locate_modZ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @CARMOD_10018
set_car_density_multiplier 1.0
$flag_cant_mod = 0
$mod_flag = 0
$control_flag_mod = 0
$flag_car_normal_carmod = 0
$flag_car_lowrider_carmod = 0
$flag_car_racer_carmod = 0
gosub @CARMOD_13890

:CARMOD_10018
if 
  $control_flag_mod == 5
goto_if_false @CARMOD_10138
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_10138
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_10085
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CARMOD_10085
set_fixed_camera_position $mod_swap_camX {y} $mod_swap_camY {z} $mod_swap_camZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $mod_swap_look_at_camX {y} $mod_swap_look_at_camY {z} $mod_swap_look_at_camZ {switchStyle} SwitchType.JumpCut
$mod_flag = 4
$control_flag_mod = 0

:CARMOD_10138
if 
  $mod_flag == 4
goto_if_false @CARMOD_10787
if 
  is_car_dead $stored_mod_garage_car
goto_if_false @CARMOD_10186
gosub @CARMOD_13890
goto @CARMOD_1406

:CARMOD_10186
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_10240
if 
  $forth_menu_drawn_shops == 0
goto_if_false @CARMOD_10233
gosub @CARMOD_21361

:CARMOD_10233
goto @CARMOD_10265

:CARMOD_10240
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_10265
gosub @CARMOD_14601

:CARMOD_10265
if 
  $control_flag_mod == 0
goto_if_false @CARMOD_10564
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_10328
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$flag_car_same_colour = 0
$control_flag_mod = 1

:CARMOD_10328
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_10564
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_10446
$upgrade_meun4_selected = get_menu_item_selected $forth_menu_shops
if 
  0 > $upgrade_meun4_selected
goto_if_false @CARMOD_10400
$upgrade_meun4_selected = 0

:CARMOD_10400
if 
  $upgrade_meun4_selected == 0
goto_if_false @CARMOD_10432
$car_colour1_change_mods = 1
goto @CARMOD_10439

:CARMOD_10432
$car_colour2_change_mods = 1

:CARMOD_10439
goto @CARMOD_10529

:CARMOD_10446
$upgrade_meun2_selected = get_menu_item_selected $sub_menu_shops
if 
  0 > $upgrade_meun2_selected
goto_if_false @CARMOD_10479
$upgrade_meun2_selected = 0

:CARMOD_10479
if and
  $upgradetype($upgrade_meun1_selected,12i) <> 100
  $upgradetype($upgrade_meun1_selected,12i) <> 101
goto_if_false @CARMOD_10529
set_var_int_to_var_int $mod_model_index = $item_model_index($upgrade_meun2_selected,12i)
request_vehicle_mod $mod_model_index

:CARMOD_10529
$flag_no_money_shops = 0
$flag_bought_item_already_shops = 0
$flag_car_same_colour = 0
$control_flag_mod = 0
$mod_flag = 5

:CARMOD_10564
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_10787
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_10787
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_10631
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_10631
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_10663
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_10663
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_10695
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_10695
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_10727
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_10727
set_fixed_camera_position $cam_general_modX {y} $cam_general_modY {z} $cam_general_modZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_general_look_at_modX {y} $cam_general_look_at_modY {z} $cam_general_look_at_modZ {switchStyle} SwitchType.JumpCut
$flag_cant_mod = 0
$control_flag_mod = 0
$mod_flag = 3

:CARMOD_10787
if 
  $mod_flag == 5
goto_if_false @CARMOD_13869
if 
  is_car_dead $stored_mod_garage_car
goto_if_false @CARMOD_10835
gosub @CARMOD_13890
goto @CARMOD_1406

:CARMOD_10835
if 
  $control_flag_mod == 0
goto_if_false @CARMOD_11015
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_11015
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_10906
$control_flag_mod = 1
goto @CARMOD_10965

:CARMOD_10906
if 
  $upgradetype($upgrade_meun1_selected,12i) <> 100
goto_if_false @CARMOD_10958
if 
  has_vehicle_mod_loaded $mod_model_index
goto_if_false @CARMOD_10951
$control_flag_mod = 1

:CARMOD_10951
goto @CARMOD_10965

:CARMOD_10958
$control_flag_mod = 1

:CARMOD_10965
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_11015
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_11015
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_11015
if 
  $control_flag_mod == 1
goto_if_false @CARMOD_11209
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_11119
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_11087
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_11087
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_11112
gosub @CARMOD_15219

:CARMOD_11112
goto @CARMOD_11202

:CARMOD_11119
if 
  $upgradetype($upgrade_meun1_selected,12i) == 100
goto_if_false @CARMOD_11179
set_var_int_to_var_int $paintjob_number = $upgrade_meun2_selected
set_var_int_to_var_int $paintjob_number_menu = $upgrade_meun2_selected
$paintjob_number_menu += 1
give_vehicle_paintjob $stored_mod_garage_car {paintjobId} $paintjob_number
goto @CARMOD_11195

:CARMOD_11179
$just_replaced_car_mod = add_vehicle_mod $stored_mod_garage_car {modelId} $mod_model_index
mark_vehicle_mod_as_no_longer_needed $mod_model_index

:CARMOD_11195
gosub @CARMOD_23723

:CARMOD_11202
$control_flag_mod = 2

:CARMOD_11209
if 
  $control_flag_mod == 2
goto_if_false @CARMOD_11552
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_11425
$upgrade_colour_selected = get_menu_item_selected $colour_menu_shops
if 
  0 > $upgrade_colour_selected
goto_if_false @CARMOD_11282
$upgrade_colour_selected = 0

:CARMOD_11282
if 
  $car_colour1_change_mods == 1
goto_if_false @CARMOD_11380
if or
  $car_model_carmod1 == 542
  $car_model_carmod1 == 549
goto_if_false @CARMOD_11360
change_car_colour_from_menu $colour_menu_shops {vehicle} $stored_mod_garage_car {colorSlot} 1 {row} $upgrade_colour_selected
change_car_colour_from_menu $colour_menu_shops {vehicle} $stored_mod_garage_car {colorSlot} 2 {row} $upgrade_colour_selected
goto @CARMOD_11373

:CARMOD_11360
change_car_colour_from_menu $colour_menu_shops {vehicle} $stored_mod_garage_car {colorSlot} 1 {row} $upgrade_colour_selected

:CARMOD_11373
goto @CARMOD_11393

:CARMOD_11380
change_car_colour_from_menu $colour_menu_shops {vehicle} $stored_mod_garage_car {colorSlot} 2 {row} $upgrade_colour_selected

:CARMOD_11393
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_11418
gosub @CARMOD_15219

:CARMOD_11418
goto @CARMOD_11450

:CARMOD_11425
if 
  $third_menu_drawn_shops == 0
goto_if_false @CARMOD_11450
gosub @CARMOD_23723

:CARMOD_11450
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_11474
$control_flag_mod = 3

:CARMOD_11474
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_11552
clear_this_print 'CLTHNO2'
clear_this_print 'COLORNO'
clear_this_print 'SHOPNO'
$flag_bought_item_already_shops = 0
$flag_car_same_colour = 0
$flag_no_money_shops = 0
$control_flag_mod = 4

:CARMOD_11552
if 
  $control_flag_mod == 3
goto_if_false @CARMOD_11963
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CARMOD_11963
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_11671
if 
  $stored_paintjob_number > -1
goto_if_false @CARMOD_11653
change_car_colour $stored_mod_garage_car {color1} $stored_car_colour1 {color2} $stored_car_colour2
give_vehicle_paintjob $stored_mod_garage_car {paintjobId} $stored_paintjob_number
goto @CARMOD_11664

:CARMOD_11653
change_car_colour $stored_mod_garage_car {color1} $stored_car_colour1 {color2} $stored_car_colour2

:CARMOD_11664
goto @CARMOD_11785

:CARMOD_11671
if 
  $upgradetype($upgrade_meun1_selected,12i) == 100
goto_if_false @CARMOD_11751
if 
  0 > $stored_paintjob_number
goto_if_false @CARMOD_11736
give_vehicle_paintjob $stored_mod_garage_car {paintjobId} -1
change_car_colour $stored_mod_garage_car {color1} $stored_car_colour1 {color2} $stored_car_colour2
goto @CARMOD_11744

:CARMOD_11736
give_vehicle_paintjob $stored_mod_garage_car {paintjobId} $stored_paintjob_number

:CARMOD_11744
goto @CARMOD_11753

:CARMOD_11751
restore_car_mod_state 

:CARMOD_11753
if 
  $third_menu_drawn_shops == 1
goto_if_false @CARMOD_11785
delete_menu $third_menu_shops
clear_help 
$third_menu_drawn_shops = 0

:CARMOD_11785
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_11817
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_11817
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_11849
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_11849
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_11903
if 
  $forth_menu_drawn_shops == 0
goto_if_false @CARMOD_11896
gosub @CARMOD_21361

:CARMOD_11896
goto @CARMOD_11935

:CARMOD_11903
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_11935
gosub @CARMOD_17346
gosub @CARMOD_14601

:CARMOD_11935
$car_colour1_change_mods = 0
$car_colour2_change_mods = 0
$control_flag_mod = 0
$mod_flag = 4

:CARMOD_11963
if 
  $control_flag_mod == 4
goto_if_false @CARMOD_13869
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CARMOD_13869
$players_money = store_score $player1
if 
  $upgradetype($upgrade_meun1_selected,12i) == 101
goto_if_false @CARMOD_12872
if 
  $players_money >= 150
goto_if_false @CARMOD_12803
if 
  $car_colour1_change_mods == 1
goto_if_false @CARMOD_12434
if 
  not is_int_var_equal_to_int_var $stored_car_colour1 == $upgrade_colour_selected
goto_if_false @CARMOD_12365
add_score $player1 {money} -150
increment_float_stat StatId.CarModBudget {value} 150.0
clear_wanted_level_in_garage 
set_vehicle_dirt_level $stored_mod_garage_car {level} 0.0
$stored_car_colour1, $stored_car_colour2 = get_car_colours $stored_mod_garage_car
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarRespray
fix_car $stored_mod_garage_car
store_car_mod_state 
$control_flag_mod = 0
$mod_flag = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_12191
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_12191
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_12223
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_12223
if 
  $third_menu_drawn_shops == 1
goto_if_false @CARMOD_12255
delete_menu $third_menu_shops
clear_help 
$third_menu_drawn_shops = 0

:CARMOD_12255
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_12287
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_12287
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_12319
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_12319
set_fixed_camera_position $cam_general_modX {y} $cam_general_modY {z} $cam_general_modZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_general_look_at_modX {y} $cam_general_look_at_modY {z} $cam_general_look_at_modZ {switchStyle} SwitchType.JumpCut
goto @CARMOD_12427

:CARMOD_12365
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_12427
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'COLORNO' {time} 3000 {flag} 1
$control_flag_mod = 2
$flag_car_same_colour = 1

:CARMOD_12427
goto @CARMOD_12796

:CARMOD_12434
if 
  not is_int_var_equal_to_int_var $stored_car_colour2 == $upgrade_colour_selected
goto_if_false @CARMOD_12734
add_score $player1 {money} -150
increment_float_stat StatId.CarModBudget {value} 150.0
clear_wanted_level_in_garage 
set_vehicle_dirt_level $stored_mod_garage_car {level} 0.0
$stored_car_colour1, $stored_car_colour2 = get_car_colours $stored_mod_garage_car
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarRespray
fix_car $stored_mod_garage_car
store_car_mod_state 
$control_flag_mod = 0
$mod_flag = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_12560
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_12560
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_12592
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_12592
if 
  $third_menu_drawn_shops == 1
goto_if_false @CARMOD_12624
delete_menu $third_menu_shops
clear_help 
$third_menu_drawn_shops = 0

:CARMOD_12624
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_12656
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_12656
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_12688
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_12688
set_fixed_camera_position $cam_general_modX {y} $cam_general_modY {z} $cam_general_modZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_general_look_at_modX {y} $cam_general_look_at_modY {z} $cam_general_look_at_modZ {switchStyle} SwitchType.JumpCut
goto @CARMOD_12796

:CARMOD_12734
if 
  $flag_car_same_colour == 0
goto_if_false @CARMOD_12796
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'COLORNO' {time} 3000 {flag} 1
$control_flag_mod = 2
$flag_car_same_colour = 1

:CARMOD_12796
goto @CARMOD_12865

:CARMOD_12803
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_12865
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'SHOPNO' {time} 3000 {flag} 1
$control_flag_mod = 2
$flag_no_money_shops = 1

:CARMOD_12865
goto @CARMOD_13869

:CARMOD_12872
if 
  $upgradetype($upgrade_meun1_selected,12i) == 100
goto_if_false @CARMOD_13359
if 
  $players_money >= 500
goto_if_false @CARMOD_13290
if 
  is_int_var_equal_to_int_var $paintjob_number == $stored_paintjob_number
goto_if_false @CARMOD_13001
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CARMOD_12994
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'CLTHNO2' {time} 3000 {flag} 1
$control_flag_mod = 2
$flag_bought_item_already_shops = 1

:CARMOD_12994
goto @CARMOD_13283

:CARMOD_13001
add_score $player1 {money} -500
increment_float_stat StatId.CarModBudget {value} 500.0
clear_wanted_level_in_garage 
set_vehicle_dirt_level $stored_mod_garage_car {level} 0.0
fix_car $stored_mod_garage_car
store_car_mod_state 
set_var_int_to_var_int $stored_paintjob_number = $paintjob_number
$stored_car_colour1, $stored_car_colour2 = get_car_colours $stored_mod_garage_car
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarRespray
$control_flag_mod = 0
$mod_flag = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13116
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_13116
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_13148
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_13148
if 
  $third_menu_drawn_shops == 1
goto_if_false @CARMOD_13180
delete_menu $third_menu_shops
clear_help 
$third_menu_drawn_shops = 0

:CARMOD_13180
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_13212
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_13212
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_13244
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_13244
set_fixed_camera_position $cam_general_modX {y} $cam_general_modY {z} $cam_general_modZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_general_look_at_modX {y} $cam_general_look_at_modY {z} $cam_general_look_at_modZ {switchStyle} SwitchType.JumpCut

:CARMOD_13283
goto @CARMOD_13352

:CARMOD_13290
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_13352
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'SHOPNO' {time} 3000 {flag} 1
$control_flag_mod = 2
$flag_no_money_shops = 1

:CARMOD_13352
goto @CARMOD_13869

:CARMOD_13359
if 
  is_int_var_greater_or_equal_to_int_var $players_money >= $item_price($upgrade_meun2_selected,12i)
goto_if_false @CARMOD_13807
if 
  not is_int_var_equal_to_int_var $original_car_mod == $mod_model_index
goto_if_false @CARMOD_13738
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundBuyCarMod
buy_item $mod_model_index
set_vehicle_dirt_level $stored_mod_garage_car {level} 0.0
store_car_mod_state 
set_var_int_to_var_int $original_car_mod = $mod_model_index
if 
  $flag_1st_time_nitro_shop == 0
goto_if_false @CARMOD_13518
if or
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBSM'
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBTN'
  is_var_text_label_equal_to_text_label s$item_text_label[0] == 'BMBLN'
goto_if_false @CARMOD_13518
$flag_1st_time_nitro_shop = 1

:CARMOD_13518
$control_flag_mod = 0
$mod_flag = 3
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13564
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_13564
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_13596
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_13596
if 
  $third_menu_drawn_shops == 1
goto_if_false @CARMOD_13628
delete_menu $third_menu_shops
clear_help 
$third_menu_drawn_shops = 0

:CARMOD_13628
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_13660
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_13660
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_13692
gosub @CARMOD_15560
gosub @CARMOD_14199

:CARMOD_13692
set_fixed_camera_position $cam_general_modX {y} $cam_general_modY {z} $cam_general_modZ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_general_look_at_modX {y} $cam_general_look_at_modY {z} $cam_general_look_at_modZ {switchStyle} SwitchType.JumpCut
goto @CARMOD_13800

:CARMOD_13738
if 
  $flag_bought_item_already_shops == 0
goto_if_false @CARMOD_13800
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'CLTHNO2' {time} 3000 {flag} 1
$control_flag_mod = 2
$flag_bought_item_already_shops = 1

:CARMOD_13800
goto @CARMOD_13869

:CARMOD_13807
if 
  $flag_no_money_shops == 0
goto_if_false @CARMOD_13869
report_mission_audio_event_at_position $player_x {y} $player_y {z} $player_z {soundId} ScriptSound.SoundShopBuyDenied
print_now 'SHOPNO' {time} 3000 {flag} 1
$control_flag_mod = 2
$flag_no_money_shops = 1

:CARMOD_13869
goto @CARMOD_13883

:CARMOD_13876
gosub @CARMOD_13890

:CARMOD_13883
goto @CARMOD_1406

:CARMOD_13890
if 
  $main_menu_drawn_shops == 1
goto_if_false @CARMOD_13922
delete_menu $main_menu_shops
clear_help 
$main_menu_drawn_shops = 0

:CARMOD_13922
if 
  $sub_menu_drawn_shops == 1
goto_if_false @CARMOD_13954
delete_menu $sub_menu_shops
clear_help 
$sub_menu_drawn_shops = 0

:CARMOD_13954
if 
  $colour_menu_drawn_shops == 1
goto_if_false @CARMOD_13986
delete_menu $colour_menu_shops
clear_help 
$colour_menu_drawn_shops = 0

:CARMOD_13986
if 
  $third_menu_drawn_shops == 1
goto_if_false @CARMOD_14018
delete_menu $third_menu_shops
clear_help 
$third_menu_drawn_shops = 0

:CARMOD_14018
if 
  $forth_menu_drawn_shops == 1
goto_if_false @CARMOD_14050
delete_menu $forth_menu_shops
clear_help 
$forth_menu_drawn_shops = 0

:CARMOD_14050
if 
  $mod_flag >= 1
goto_if_false @CARMOD_14070
clear_help 

:CARMOD_14070
$car_colour1_change_mods = 0
$car_colour2_change_mods = 0
$flag_cant_mod = 0
$flag_bought_item_already_shops = 0
$flag_no_money_shops = 0
$flag_car_same_colour = 0
$flag_car_normal_carmod = 0
$flag_car_lowrider_carmod = 0
$flag_car_racer_carmod = 0
$mod_flag = 0
$control_flag_mod = 0
set_player_is_in_stadium False
show_update_stats True
set_minigame_in_progress False
if 
  $flag_1st_time_nitro_shop == 1
goto_if_false @CARMOD_14195
print_help 'NITROH1'
$flag_1st_time_nitro_shop = 2

:CARMOD_14195
terminate_this_script 
return 

:CARMOD_14199
if 
  $main_menu_drawn_shops == 0
goto_if_false @CARMOD_14599
print_help_forever 'MODH1'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_14290
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14290
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_14352
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14352
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_14414
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14414
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_14476
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14531

:CARMOD_14476
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_14531
$main_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CARMOD_14531
set_menu_column_orientation $main_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $main_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
$main_menu_drawn_shops = 1

:CARMOD_14599
return 

:CARMOD_14601
if 
  $sub_menu_drawn_shops == 0
goto_if_false @CARMOD_15217
print_help_forever 'MODH3'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_14692
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14692
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_14754
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14754
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_14816
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14816
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_14878
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_14933

:CARMOD_14878
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_14933
$sub_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 186.0 {numColumns} 1 {interactive} True {background} True {alignment} Align.Left

:CARMOD_14933
set_menu_column_orientation $sub_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $sub_menu_shops {column} 0 {title} 'DUMMY' {row0} s$item_text_label[0] {row1} s$item_text_label[1] {row2} s$item_text_label[2] {row3} s$item_text_label[3] {row4} s$item_text_label[4] {row5} s$item_text_label[5] {row6} s$item_text_label[6] {row7} s$item_text_label[7] {row8} s$item_text_label[8] {row9} s$item_text_label[9] {row10} s$item_text_label[10] {row11} s$item_text_label[11]
if 
  $upgradetype($upgrade_meun1_selected,12i) == 100
goto_if_false @CARMOD_15155
$temp_var_shops = 0

:CARMOD_15023
if 
  is_int_var_greater_than_int_var $number_of_paintjobs > $temp_var_shops
goto_if_false @CARMOD_15093
set_var_int_to_var_int $paintjob_number_menu = $temp_var_shops
$paintjob_number_menu += 1
set_menu_item_with_number $sub_menu_shops {column} 0 {row} $temp_var_shops {gxt} 'PJOB' {number} $paintjob_number_menu
$temp_var_shops += 1
goto @CARMOD_15023

:CARMOD_15093
$temp_var_shops = 0

:CARMOD_15100
if 
  is_int_var_greater_than_int_var $number_of_paintjobs > $temp_var_shops
goto_if_false @CARMOD_15148
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @CARMOD_15100

:CARMOD_15148
goto @CARMOD_15210

:CARMOD_15155
$temp_var_shops = 0

:CARMOD_15162
if 
  is_int_var_greater_than_int_var $number_of_mods_in_section > $temp_var_shops
goto_if_false @CARMOD_15210
activate_menu_item $sub_menu_shops {row} $temp_var_shops {state} $item_hilight_shops($temp_var_shops,12i)
$temp_var_shops += 1
goto @CARMOD_15162

:CARMOD_15210
$sub_menu_drawn_shops = 1

:CARMOD_15217
return 

:CARMOD_15219
if 
  $colour_menu_drawn_shops == 0
goto_if_false @CARMOD_15558
print_help_forever 'MODH6'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_15310
$colour_menu_shops = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15310
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_15372
$colour_menu_shops = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15372
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_15434
$colour_menu_shops = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 155.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15434
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_15496
$colour_menu_shops = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_15551

:CARMOD_15496
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_15551
$colour_menu_shops = create_menu_grid 'CARM1' {topLeftX} 29.0 {topLeftY} 145.0 {width} 25.7 {numColumns} 8 {interactive} True {background} True {alignment} Align.Left

:CARMOD_15551
$colour_menu_drawn_shops = 1

:CARMOD_15558
return 

:CARMOD_15560
$no_of_mods_for_vehicle = 0
$wing_mod_counter = 0
$roof_mod_counter = 0
$exhaust_mod_counter = 0
$nitro_mod_counter = 0
$spolier_mod_counter = 0
$bonnet_mod_counter = 0
$bonnetLR_mod_counter = 0
$front_bumper_mod_counter = 0
$rear_bumper_mod_counter = 0
$lights_mod_counter = 0
$front_bullbar_mod_counter = 0
$rear_bullbar_mod_counter = 0
$misc_mod_counter = 0
$wheel_mod_counter = 0
$number_of_paintjobs = 0
$number_of_colours = 0
$hydraulics_mod_counter = 0
$stereo_mod_counter = 0
$shop_counter = 0
$number_of_paintjobs = get_num_available_paintjobs $stored_mod_garage_car
if 
  $number_of_paintjobs <> 0
goto_if_false @CARMOD_15762
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM11'
$upgradetype($no_of_mods_for_vehicle,12i) = 100
$no_of_mods_for_vehicle += 1

:CARMOD_15762
$number_of_colours = get_num_car_colours $stored_mod_garage_car
if 
  $number_of_colours <> 0
goto_if_false @CARMOD_15824
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM1'
$upgradetype($no_of_mods_for_vehicle,12i) = 101
$no_of_mods_for_vehicle += 1

:CARMOD_15824
if 
  is_int_var_greater_than_int_var $item_no_shops > $shop_counter
goto_if_false @CARMOD_17329
$new_mod_index_wil = get_item_in_shop $shop_counter
$upgradetype_mod = get_vehicle_mod_type $new_mod_index_wil
if 
  is_int_var_equal_to_constant $upgradetype_mod == 12
goto_if_false @CARMOD_15950
if 
  $wheel_mod_counter == 0
goto_if_false @CARMOD_15931
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM12'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 12
$no_of_mods_for_vehicle += 1

:CARMOD_15931
set_var_int_to_var_int $wheel_mod_model_index($wheel_mod_counter,12i) = $new_mod_index_wil
$wheel_mod_counter += 1

:CARMOD_15950
if 
  is_int_var_equal_to_constant $upgradetype_mod == 3
goto_if_false @CARMOD_16041
if 
  $wing_mod_counter == 0
goto_if_false @CARMOD_16022
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM4'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 3
$no_of_mods_for_vehicle += 1

:CARMOD_16022
set_var_int_to_var_int $wing_mod_model_index($wing_mod_counter,12i) = $new_mod_index_wil
$wing_mod_counter += 1

:CARMOD_16041
if 
  is_int_var_equal_to_constant $upgradetype_mod == 7
goto_if_false @CARMOD_16132
if 
  $roof_mod_counter == 0
goto_if_false @CARMOD_16113
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM10'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 7
$no_of_mods_for_vehicle += 1

:CARMOD_16113
set_var_int_to_var_int $roof_mod_model_index($roof_mod_counter,12i) = $new_mod_index_wil
$roof_mod_counter += 1

:CARMOD_16132
if 
  is_int_var_equal_to_constant $upgradetype_mod == 13
goto_if_false @CARMOD_16223
if 
  $exhaust_mod_counter == 0
goto_if_false @CARMOD_16204
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM5'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 13
$no_of_mods_for_vehicle += 1

:CARMOD_16204
set_var_int_to_var_int $exhaust_mod_model_index($exhaust_mod_counter,12i) = $new_mod_index_wil
$exhaust_mod_counter += 1

:CARMOD_16223
if 
  is_int_var_equal_to_constant $upgradetype_mod == 8
goto_if_false @CARMOD_16314
if 
  $nitro_mod_counter == 0
goto_if_false @CARMOD_16295
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM6'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 8
$no_of_mods_for_vehicle += 1

:CARMOD_16295
set_var_int_to_var_int $nitro_mod_model_index($nitro_mod_counter,12i) = $new_mod_index_wil
$nitro_mod_counter += 1

:CARMOD_16314
if 
  is_int_var_equal_to_constant $upgradetype_mod == 2
goto_if_false @CARMOD_16405
if 
  $spolier_mod_counter == 0
goto_if_false @CARMOD_16386
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM2'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 2
$no_of_mods_for_vehicle += 1

:CARMOD_16386
set_var_int_to_var_int $spolier_mod_model_index($spolier_mod_counter,12i) = $new_mod_index_wil
$spolier_mod_counter += 1

:CARMOD_16405
if 
  is_int_var_equal_to_constant $upgradetype_mod == 0
goto_if_false @CARMOD_16496
if 
  $bonnet_mod_counter == 0
goto_if_false @CARMOD_16477
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM3'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 0
$no_of_mods_for_vehicle += 1

:CARMOD_16477
set_var_int_to_var_int $bonnet_mod_model_index($bonnet_mod_counter,12i) = $new_mod_index_wil
$bonnet_mod_counter += 1

:CARMOD_16496
if 
  is_int_var_equal_to_constant $upgradetype_mod == 1
goto_if_false @CARMOD_16587
if 
  $bonnetLR_mod_counter == 0
goto_if_false @CARMOD_16568
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM17'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 1
$no_of_mods_for_vehicle += 1

:CARMOD_16568
set_var_int_to_var_int $bonnetLR_mod_model_index($bonnetLR_mod_counter,12i) = $new_mod_index_wil
$bonnetLR_mod_counter += 1

:CARMOD_16587
if 
  is_int_var_equal_to_constant $upgradetype_mod == 14
goto_if_false @CARMOD_16678
if 
  $front_bumper_mod_counter == 0
goto_if_false @CARMOD_16659
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM7'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 14
$no_of_mods_for_vehicle += 1

:CARMOD_16659
set_var_int_to_var_int $front_bumper_mod_model_index($front_bumper_mod_counter,12i) = $new_mod_index_wil
$front_bumper_mod_counter += 1

:CARMOD_16678
if 
  is_int_var_equal_to_constant $upgradetype_mod == 15
goto_if_false @CARMOD_16769
if 
  $rear_bumper_mod_counter == 0
goto_if_false @CARMOD_16750
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM8'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 15
$no_of_mods_for_vehicle += 1

:CARMOD_16750
set_var_int_to_var_int $rear_bumper_mod_model_index($rear_bumper_mod_counter,12i) = $new_mod_index_wil
$rear_bumper_mod_counter += 1

:CARMOD_16769
if 
  is_int_var_equal_to_constant $upgradetype_mod == 6
goto_if_false @CARMOD_16860
if 
  $lights_mod_counter == 0
goto_if_false @CARMOD_16841
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM9'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 6
$no_of_mods_for_vehicle += 1

:CARMOD_16841
set_var_int_to_var_int $lights_mod_model_index($lights_mod_counter,12i) = $new_mod_index_wil
$lights_mod_counter += 1

:CARMOD_16860
if 
  is_int_var_equal_to_constant $upgradetype_mod == 4
goto_if_false @CARMOD_16951
if 
  $front_bullbar_mod_counter == 0
goto_if_false @CARMOD_16932
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM13'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 4
$no_of_mods_for_vehicle += 1

:CARMOD_16932
set_var_int_to_var_int $front_bullbar_mod_model_index($front_bullbar_mod_counter,12i) = $new_mod_index_wil
$front_bullbar_mod_counter += 1

:CARMOD_16951
if 
  is_int_var_equal_to_constant $upgradetype_mod == 5
goto_if_false @CARMOD_17042
if 
  $rear_bullbar_mod_counter == 0
goto_if_false @CARMOD_17023
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM14'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 5
$no_of_mods_for_vehicle += 1

:CARMOD_17023
set_var_int_to_var_int $rear_bullbar_mod_model_index($rear_bullbar_mod_counter,12i) = $new_mod_index_wil
$rear_bullbar_mod_counter += 1

:CARMOD_17042
if 
  is_int_var_equal_to_constant $upgradetype_mod == 16
goto_if_false @CARMOD_17133
if 
  $misc_mod_counter == 0
goto_if_false @CARMOD_17114
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM15'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 16
$no_of_mods_for_vehicle += 1

:CARMOD_17114
set_var_int_to_var_int $misc_mod_model_index($misc_mod_counter,12i) = $new_mod_index_wil
$misc_mod_counter += 1

:CARMOD_17133
if 
  is_int_var_equal_to_constant $upgradetype_mod == 9
goto_if_false @CARMOD_17224
if 
  $hydraulics_mod_counter == 0
goto_if_false @CARMOD_17205
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM18'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 9
$no_of_mods_for_vehicle += 1

:CARMOD_17205
set_var_int_to_var_int $hydraulics_mod_model_index($hydraulics_mod_counter,12i) = $new_mod_index_wil
$hydraulics_mod_counter += 1

:CARMOD_17224
if 
  is_int_var_equal_to_constant $upgradetype_mod == 10
goto_if_false @CARMOD_17315
if 
  $stereo_mod_counter == 0
goto_if_false @CARMOD_17296
set_var_text_label $item_text_label($no_of_mods_for_vehicle,12s) = 'CARM16'
set_var_int_to_constant $upgradetype($no_of_mods_for_vehicle,12i) = 10
$no_of_mods_for_vehicle += 1

:CARMOD_17296
set_var_int_to_var_int $stereo_mod_model_index($stereo_mod_counter,12i) = $new_mod_index_wil
$stereo_mod_counter += 1

:CARMOD_17315
$shop_counter += 1
goto @CARMOD_15824

:CARMOD_17329
set_var_int_to_var_int $temp_var_shops = $no_of_mods_for_vehicle
gosub @CARMOD_21287
return 

:CARMOD_17346
if 
  $upgradetype($upgrade_meun1_selected,12i) == 100
goto_if_false @CARMOD_17557
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $number_of_paintjobs

:CARMOD_17383
if 
  is_int_var_greater_than_int_var $number_of_paintjobs > $mod_counter
goto_if_false @CARMOD_17494
set_var_text_label $item_text_label($mod_counter,12s) = 'PAINTJB'
$item_price($mod_counter,12i) = 500
if 
  is_int_var_equal_to_int_var $stored_paintjob_number == $mod_counter
goto_if_false @CARMOD_17469
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_17480

:CARMOD_17469
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_17480
$mod_counter += 1
goto @CARMOD_17383

:CARMOD_17494
set_var_int_to_var_int $temp_var_shops = $number_of_paintjobs
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $custom_paint_cam_modX
set_var_float_to_var_float $mod_swap_camY = $custom_paint_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $custom_paint_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $custom_paint_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $custom_paint_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $custom_paint_cam_look_at_modZ

:CARMOD_17557
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 12
goto_if_false @CARMOD_17790
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $wheel_mod_counter

:CARMOD_17594
if 
  is_int_var_greater_than_int_var $wheel_mod_counter > $mod_counter
goto_if_false @CARMOD_17727
get_name_of_item $wheel_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $wheel_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $wheel_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $wheel_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_17702
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_17713

:CARMOD_17702
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_17713
$mod_counter += 1
goto @CARMOD_17594

:CARMOD_17727
set_var_int_to_var_int $temp_var_shops = $wheel_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $wheel_cam_modX
set_var_float_to_var_float $mod_swap_camY = $wheel_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $wheel_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $wheel_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $wheel_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $wheel_cam_look_at_modZ

:CARMOD_17790
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 3
goto_if_false @CARMOD_18023
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $wing_mod_counter

:CARMOD_17827
if 
  is_int_var_greater_than_int_var $wing_mod_counter > $mod_counter
goto_if_false @CARMOD_17960
get_name_of_item $wing_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $wing_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $wing_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $wing_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_17935
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_17946

:CARMOD_17935
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_17946
$mod_counter += 1
goto @CARMOD_17827

:CARMOD_17960
set_var_int_to_var_int $temp_var_shops = $wing_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $wing_cam_modX
set_var_float_to_var_float $mod_swap_camY = $wing_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $wing_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $wing_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $wing_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $wing_cam_look_at_modZ

:CARMOD_18023
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 7
goto_if_false @CARMOD_18256
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $roof_mod_counter

:CARMOD_18060
if 
  is_int_var_greater_than_int_var $roof_mod_counter > $mod_counter
goto_if_false @CARMOD_18193
get_name_of_item $roof_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $roof_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $roof_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $roof_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_18168
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_18179

:CARMOD_18168
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_18179
$mod_counter += 1
goto @CARMOD_18060

:CARMOD_18193
set_var_int_to_var_int $temp_var_shops = $roof_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $roof_cam_modX
set_var_float_to_var_float $mod_swap_camY = $roof_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $roof_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $roof_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $roof_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $roof_cam_look_at_modZ

:CARMOD_18256
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 13
goto_if_false @CARMOD_18489
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $exhaust_mod_counter

:CARMOD_18293
if 
  is_int_var_greater_than_int_var $exhaust_mod_counter > $mod_counter
goto_if_false @CARMOD_18426
get_name_of_item $exhaust_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $exhaust_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $exhaust_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $exhaust_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_18401
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_18412

:CARMOD_18401
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_18412
$mod_counter += 1
goto @CARMOD_18293

:CARMOD_18426
set_var_int_to_var_int $temp_var_shops = $exhaust_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $exhaust_cam_modX
set_var_float_to_var_float $mod_swap_camY = $exhaust_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $exhaust_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $exhaust_look_at_cam_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $exhaust_look_at_cam_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $exhaust_look_at_cam_modZ

:CARMOD_18489
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 8
goto_if_false @CARMOD_18722
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $nitro_mod_counter

:CARMOD_18526
if 
  is_int_var_greater_than_int_var $nitro_mod_counter > $mod_counter
goto_if_false @CARMOD_18659
get_name_of_item $nitro_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $nitro_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $nitro_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $nitro_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_18634
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_18645

:CARMOD_18634
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_18645
$mod_counter += 1
goto @CARMOD_18526

:CARMOD_18659
set_var_int_to_var_int $temp_var_shops = $nitro_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $nitro_cam_modX
set_var_float_to_var_float $mod_swap_camY = $nitro_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $nitro_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $nitro_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $nitro_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $nitro_look_at_modZ

:CARMOD_18722
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 2
goto_if_false @CARMOD_18955
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $spolier_mod_counter

:CARMOD_18759
if 
  is_int_var_greater_than_int_var $spolier_mod_counter > $mod_counter
goto_if_false @CARMOD_18892
get_name_of_item $spolier_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $spolier_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $spolier_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $spolier_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_18867
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_18878

:CARMOD_18867
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_18878
$mod_counter += 1
goto @CARMOD_18759

:CARMOD_18892
set_var_int_to_var_int $temp_var_shops = $spolier_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $spoiler_cam_modX
set_var_float_to_var_float $mod_swap_camY = $spoiler_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $spoiler_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $spoiler_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $spoiler_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $spoiler_cam_look_at_modZ

:CARMOD_18955
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 0
goto_if_false @CARMOD_19188
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $bonnet_mod_counter

:CARMOD_18992
if 
  is_int_var_greater_than_int_var $bonnet_mod_counter > $mod_counter
goto_if_false @CARMOD_19125
get_name_of_item $bonnet_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $bonnet_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $bonnet_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $bonnet_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_19100
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_19111

:CARMOD_19100
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_19111
$mod_counter += 1
goto @CARMOD_18992

:CARMOD_19125
set_var_int_to_var_int $temp_var_shops = $bonnet_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $bonnet_cam_modX
set_var_float_to_var_float $mod_swap_camY = $bonnet_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $bonnet_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $bonnet_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $bonnet_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $bonnet_cam_look_at_modZ

:CARMOD_19188
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 1
goto_if_false @CARMOD_19421
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $bonnetLR_mod_counter

:CARMOD_19225
if 
  is_int_var_greater_than_int_var $bonnetLR_mod_counter > $mod_counter
goto_if_false @CARMOD_19358
get_name_of_item $bonnetLR_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $bonnetLR_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $bonnetLR_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $bonnetLR_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_19333
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_19344

:CARMOD_19333
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_19344
$mod_counter += 1
goto @CARMOD_19225

:CARMOD_19358
set_var_int_to_var_int $temp_var_shops = $bonnetLR_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $bonnet_cam_modX
set_var_float_to_var_float $mod_swap_camY = $bonnet_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $bonnet_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $bonnet_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $bonnet_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $bonnet_cam_look_at_modZ

:CARMOD_19421
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 14
goto_if_false @CARMOD_19654
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $front_bumper_mod_counter

:CARMOD_19458
if 
  is_int_var_greater_than_int_var $front_bumper_mod_counter > $mod_counter
goto_if_false @CARMOD_19591
get_name_of_item $front_bumper_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $front_bumper_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $front_bumper_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $front_bumper_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_19566
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_19577

:CARMOD_19566
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_19577
$mod_counter += 1
goto @CARMOD_19458

:CARMOD_19591
set_var_int_to_var_int $temp_var_shops = $front_bumper_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $front_fender_cam_modX
set_var_float_to_var_float $mod_swap_camY = $front_fender_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $front_fender_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $front_fender_look_at_cam_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $front_fender_look_at_cam_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $front_fender_look_at_cam_modZ

:CARMOD_19654
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 15
goto_if_false @CARMOD_19887
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $rear_bumper_mod_counter

:CARMOD_19691
if 
  is_int_var_greater_than_int_var $rear_bumper_mod_counter > $mod_counter
goto_if_false @CARMOD_19824
get_name_of_item $rear_bumper_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $rear_bumper_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $rear_bumper_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $rear_bumper_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_19799
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_19810

:CARMOD_19799
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_19810
$mod_counter += 1
goto @CARMOD_19691

:CARMOD_19824
set_var_int_to_var_int $temp_var_shops = $rear_bumper_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $rear_fender_cam_modX
set_var_float_to_var_float $mod_swap_camY = $rear_fender_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $rear_fender_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $rear_fender_look_at_cam_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $rear_fender_look_at_cam_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $rear_fender_look_at_cam_modZ

:CARMOD_19887
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 6
goto_if_false @CARMOD_20120
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $lights_mod_counter

:CARMOD_19924
if 
  is_int_var_greater_than_int_var $lights_mod_counter > $mod_counter
goto_if_false @CARMOD_20057
get_name_of_item $lights_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $lights_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $lights_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $lights_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_20032
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_20043

:CARMOD_20032
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_20043
$mod_counter += 1
goto @CARMOD_19924

:CARMOD_20057
set_var_int_to_var_int $temp_var_shops = $lights_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $lights_cam_modX
set_var_float_to_var_float $mod_swap_camY = $lights_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $lights_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $lights_look_at_cam_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $lights_look_at_cam_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $lights_look_at_cam_modZ

:CARMOD_20120
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 4
goto_if_false @CARMOD_20353
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $front_bullbar_mod_counter

:CARMOD_20157
if 
  is_int_var_greater_than_int_var $front_bullbar_mod_counter > $mod_counter
goto_if_false @CARMOD_20290
get_name_of_item $front_bullbar_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $front_bullbar_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $front_bullbar_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $front_bullbar_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_20265
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_20276

:CARMOD_20265
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_20276
$mod_counter += 1
goto @CARMOD_20157

:CARMOD_20290
set_var_int_to_var_int $temp_var_shops = $front_bullbar_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $front_bullbar_cam_modX
set_var_float_to_var_float $mod_swap_camY = $front_bullbar_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $front_bullbar_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $front_bullbar_look_at_cam_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $front_bullbar_look_at_cam_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $front_bullbar_look_at_cam_modZ

:CARMOD_20353
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 5
goto_if_false @CARMOD_20586
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $rear_bullbar_mod_counter

:CARMOD_20390
if 
  is_int_var_greater_than_int_var $rear_bullbar_mod_counter > $mod_counter
goto_if_false @CARMOD_20523
get_name_of_item $rear_bullbar_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $rear_bullbar_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $rear_bullbar_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $rear_bullbar_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_20498
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_20509

:CARMOD_20498
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_20509
$mod_counter += 1
goto @CARMOD_20390

:CARMOD_20523
set_var_int_to_var_int $temp_var_shops = $rear_bullbar_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $rear_bullbar_cam_modX
set_var_float_to_var_float $mod_swap_camY = $rear_bullbar_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $rear_bullbar_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $rear_bullbar_look_at_cam_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $rear_bullbar_look_at_cam_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $rear_bullbar_look_at_cam_modZ

:CARMOD_20586
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 16
goto_if_false @CARMOD_20819
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $misc_mod_counter

:CARMOD_20623
if 
  is_int_var_greater_than_int_var $misc_mod_counter > $mod_counter
goto_if_false @CARMOD_20756
get_name_of_item $misc_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $misc_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $misc_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $misc_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_20731
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_20742

:CARMOD_20731
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_20742
$mod_counter += 1
goto @CARMOD_20623

:CARMOD_20756
set_var_int_to_var_int $temp_var_shops = $misc_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $misc_cam_modX
set_var_float_to_var_float $mod_swap_camY = $misc_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $misc_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $misc_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $misc_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $misc_cam_look_at_modZ

:CARMOD_20819
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 9
goto_if_false @CARMOD_21052
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $hydraulics_mod_counter

:CARMOD_20856
if 
  is_int_var_greater_than_int_var $hydraulics_mod_counter > $mod_counter
goto_if_false @CARMOD_20989
get_name_of_item $hydraulics_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $hydraulics_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $hydraulics_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $hydraulics_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_20964
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_20975

:CARMOD_20964
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_20975
$mod_counter += 1
goto @CARMOD_20856

:CARMOD_20989
set_var_int_to_var_int $temp_var_shops = $hydraulics_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $custom_paint_cam_modX
set_var_float_to_var_float $mod_swap_camY = $custom_paint_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $custom_paint_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $custom_paint_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $custom_paint_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $custom_paint_cam_look_at_modZ

:CARMOD_21052
if 
  is_int_var_equal_to_constant $upgradetype($upgrade_meun1_selected,12i) == 10
goto_if_false @CARMOD_21285
$mod_counter = 0
set_var_int_to_var_int $number_of_mods_in_section = $stereo_mod_counter

:CARMOD_21089
if 
  is_int_var_greater_than_int_var $stereo_mod_counter > $mod_counter
goto_if_false @CARMOD_21222
get_name_of_item $stereo_mod_model_index($mod_counter,12i) {var_name} $item_text_label($mod_counter,12s)
get_price_of_item $stereo_mod_model_index($mod_counter,12i) {var_price} $item_price($mod_counter,12i)
set_var_int_to_var_int $item_model_index($mod_counter,12i) = $stereo_mod_model_index($mod_counter,12i)
if 
  is_int_var_equal_to_int_var $original_car_mod == $stereo_mod_model_index($mod_counter,12i)
goto_if_false @CARMOD_21197
$item_hilight_shops($mod_counter,12i) = 0
goto @CARMOD_21208

:CARMOD_21197
$item_hilight_shops($mod_counter,12i) = 1

:CARMOD_21208
$mod_counter += 1
goto @CARMOD_21089

:CARMOD_21222
set_var_int_to_var_int $temp_var_shops = $stereo_mod_counter
gosub @CARMOD_21287
set_var_float_to_var_float $mod_swap_camX = $custom_paint_cam_modX
set_var_float_to_var_float $mod_swap_camY = $custom_paint_cam_modY
set_var_float_to_var_float $mod_swap_camZ = $custom_paint_cam_modZ
set_var_float_to_var_float $mod_swap_look_at_camX = $custom_paint_cam_look_at_modX
set_var_float_to_var_float $mod_swap_look_at_camY = $custom_paint_cam_look_at_modY
set_var_float_to_var_float $mod_swap_look_at_camZ = $custom_paint_cam_look_at_modZ

:CARMOD_21285
return 

:CARMOD_21287
if 
  12 > $temp_var_shops
goto_if_false @CARMOD_21359
$item_model_index($temp_var_shops,12i) = -1
$item_price($temp_var_shops,12i) = 0
set_var_text_label $item_text_label($temp_var_shops,12s) = 'DUMMY'
$temp_var_shops += 1
goto @CARMOD_21287

:CARMOD_21359
return 

:CARMOD_21361
if 
  $forth_menu_drawn_shops == 0
goto_if_false @CARMOD_22275
if 
  $flag_no_of_car_colours == 1
goto_if_false @CARMOD_21432
set_var_text_label s$forth_menu_item1 = 'CARCOL1'
set_var_text_label s$forth_menu_item2 = 'DUMMY'
goto @CARMOD_21460

:CARMOD_21432
set_var_text_label s$forth_menu_item1 = 'CARCOL1'
set_var_text_label s$forth_menu_item2 = 'CARCOL2'

:CARMOD_21460
print_help_forever 'MODH5'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_21533
$forth_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21533
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_21595
$forth_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21595
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_21657
$forth_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21657
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_21719
$forth_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left
goto @CARMOD_21774

:CARMOD_21719
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_21774
$forth_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} True {background} True {alignment} Align.Left

:CARMOD_21774
set_menu_column_orientation $forth_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $forth_menu_shops {column} 0 {title} 'UPGRADE' {row0} s$forth_menu_item1 {row1} s$forth_menu_item2 {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
if 
  $flag_no_of_car_colours == 1
goto_if_false @CARMOD_22074
set_menu_column_orientation $forth_menu_shops {column} 1 {alignment} Align.Left
set_menu_column $forth_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $forth_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 150
goto @CARMOD_22249

:CARMOD_22074
set_menu_column_orientation $forth_menu_shops {column} 1 {alignment} Align.Left
set_menu_column $forth_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $forth_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} 150
set_menu_item_with_number $forth_menu_shops {column} 1 {row} 1 {gxt} 'DOLLAR' {number} 150

:CARMOD_22249
set_menu_column_width $forth_menu_shops {column} 0 {width} 140
set_menu_column_width $forth_menu_shops {column} 1 {width} 46
$forth_menu_drawn_shops = 1

:CARMOD_22275
return 

:CARMOD_22277
if or
  is_int_var_equal_to_constant $car_name_mod == 401
  is_int_var_equal_to_constant $car_name_mod == 402
  is_int_var_equal_to_constant $car_name_mod == 404
  is_int_var_equal_to_constant $car_name_mod == 405
  is_int_var_equal_to_constant $car_name_mod == 409
  is_int_var_equal_to_constant $car_name_mod == 410
goto_if_false @CARMOD_22343
$flag_no_of_car_colours = 2

:CARMOD_22343
if or
  is_int_var_equal_to_constant $car_name_mod == 411
  is_int_var_equal_to_constant $car_name_mod == 412
  is_int_var_equal_to_constant $car_name_mod == 413
  is_int_var_equal_to_constant $car_name_mod == 415
  is_int_var_equal_to_constant $car_name_mod == 418
  is_int_var_equal_to_constant $car_name_mod == 419
goto_if_false @CARMOD_22409
$flag_no_of_car_colours = 2

:CARMOD_22409
if or
  is_int_var_equal_to_constant $car_name_mod == 421
  is_int_var_equal_to_constant $car_name_mod == 426
  is_int_var_equal_to_constant $car_name_mod == 434
  is_int_var_equal_to_constant $car_name_mod == 436
  is_int_var_equal_to_constant $car_name_mod == 440
goto_if_false @CARMOD_22467
$flag_no_of_car_colours = 2

:CARMOD_22467
if or
  is_int_var_equal_to_constant $car_name_mod == 444
  is_int_var_equal_to_constant $car_name_mod == 445
  is_int_var_equal_to_constant $car_name_mod == 451
  is_int_var_equal_to_constant $car_name_mod == 457
  is_int_var_equal_to_constant $car_name_mod == 458
  is_int_var_equal_to_constant $car_name_mod == 461
goto_if_false @CARMOD_22533
$flag_no_of_car_colours = 2

:CARMOD_22533
if or
  is_int_var_equal_to_constant $car_name_mod == 462
  is_int_var_equal_to_constant $car_name_mod == 463
  is_int_var_equal_to_constant $car_name_mod == 468
  is_int_var_equal_to_constant $car_name_mod == 474
  is_int_var_equal_to_constant $car_name_mod == 475
  is_int_var_equal_to_constant $car_name_mod == 477
goto_if_false @CARMOD_22599
$flag_no_of_car_colours = 2

:CARMOD_22599
if or
  is_int_var_equal_to_constant $car_name_mod == 478
  is_int_var_equal_to_constant $car_name_mod == 481
  is_int_var_equal_to_constant $car_name_mod == 482
  is_int_var_equal_to_constant $car_name_mod == 500
  is_int_var_equal_to_constant $car_name_mod == 506
goto_if_false @CARMOD_22657
$flag_no_of_car_colours = 2

:CARMOD_22657
if or
  is_int_var_equal_to_constant $car_name_mod == 507
  is_int_var_equal_to_constant $car_name_mod == 510
  is_int_var_equal_to_constant $car_name_mod == 516
  is_int_var_equal_to_constant $car_name_mod == 518
  is_int_var_equal_to_constant $car_name_mod == 521
  is_int_var_equal_to_constant $car_name_mod == 526
goto_if_false @CARMOD_22723
$flag_no_of_car_colours = 2

:CARMOD_22723
if or
  is_int_var_equal_to_constant $car_name_mod == 527
  is_int_var_equal_to_constant $car_name_mod == 529
  is_int_var_equal_to_constant $car_name_mod == 530
  is_int_var_equal_to_constant $car_name_mod == 531
  is_int_var_equal_to_constant $car_name_mod == 533
  is_int_var_equal_to_constant $car_name_mod == 534
goto_if_false @CARMOD_22789
$flag_no_of_car_colours = 2

:CARMOD_22789
if or
  is_int_var_equal_to_constant $car_name_mod == 539
  is_int_var_equal_to_constant $car_name_mod == 540
  is_int_var_equal_to_constant $car_name_mod == 543
  is_int_var_equal_to_constant $car_name_mod == 545
  is_int_var_equal_to_constant $car_name_mod == 546
goto_if_false @CARMOD_22847
$flag_no_of_car_colours = 2

:CARMOD_22847
if or
  is_int_var_equal_to_constant $car_name_mod == 547
  is_int_var_equal_to_constant $car_name_mod == 550
  is_int_var_equal_to_constant $car_name_mod == 551
  is_int_var_equal_to_constant $car_name_mod == 552
  is_int_var_equal_to_constant $car_name_mod == 555
  is_int_var_equal_to_constant $car_name_mod == 556
goto_if_false @CARMOD_22913
$flag_no_of_car_colours = 2

:CARMOD_22913
if or
  is_int_var_equal_to_constant $car_name_mod == 559
  is_int_var_equal_to_constant $car_name_mod == 560
  is_int_var_equal_to_constant $car_name_mod == 561
  is_int_var_equal_to_constant $car_name_mod == 509
  is_int_var_equal_to_constant $car_name_mod == 562
  is_int_var_equal_to_constant $car_name_mod == 558
goto_if_false @CARMOD_22979
$flag_no_of_car_colours = 2

:CARMOD_22979
if or
  is_int_var_equal_to_constant $car_name_mod == 565
  is_int_var_equal_to_constant $car_name_mod == 571
  is_int_var_equal_to_constant $car_name_mod == 572
  is_int_var_equal_to_constant $car_name_mod == 574
  is_int_var_equal_to_constant $car_name_mod == 579
  is_int_var_equal_to_constant $car_name_mod == 580
goto_if_false @CARMOD_23045
$flag_no_of_car_colours = 2

:CARMOD_23045
if or
  is_int_var_equal_to_constant $car_name_mod == 581
  is_int_var_equal_to_constant $car_name_mod == 582
  is_int_var_equal_to_constant $car_name_mod == 585
  is_int_var_equal_to_constant $car_name_mod == 586
  is_int_var_equal_to_constant $car_name_mod == 589
  is_int_var_equal_to_constant $car_name_mod == 543
goto_if_false @CARMOD_23111
$flag_no_of_car_colours = 2

:CARMOD_23111
if or
  is_int_var_equal_to_constant $car_name_mod == 587
  is_int_var_equal_to_constant $car_name_mod == 600
  is_int_var_equal_to_constant $car_name_mod == 602
  is_int_var_equal_to_constant $car_name_mod == 420
  is_int_var_equal_to_constant $car_name_mod == 400
  is_int_var_equal_to_constant $car_name_mod == 439
goto_if_false @CARMOD_23177
$flag_no_of_car_colours = 2

:CARMOD_23177
if or
  is_int_var_equal_to_constant $car_name_mod == 535
  is_int_var_equal_to_constant $car_name_mod == 542
  is_int_var_equal_to_constant $car_name_mod == 549
  is_int_var_equal_to_constant $car_name_mod == 438
goto_if_false @CARMOD_23227
$flag_no_of_car_colours = 2

:CARMOD_23227
if or
  is_int_var_equal_to_constant $car_name_mod == 422
  is_int_var_equal_to_constant $car_name_mod == 423
  is_int_var_equal_to_constant $car_name_mod == 424
  is_int_var_equal_to_constant $car_name_mod == 429
  is_int_var_equal_to_constant $car_name_mod == 442
  is_int_var_equal_to_constant $car_name_mod == 536
goto_if_false @CARMOD_23293
$flag_no_of_car_colours = 2

:CARMOD_23293
if or
  is_int_var_equal_to_constant $car_name_mod == 466
  is_int_var_equal_to_constant $car_name_mod == 467
  is_int_var_equal_to_constant $car_name_mod == 471
  is_int_var_equal_to_constant $car_name_mod == 479
  is_int_var_equal_to_constant $car_name_mod == 483
  is_int_var_equal_to_constant $car_name_mod == 489
goto_if_false @CARMOD_23359
$flag_no_of_car_colours = 2

:CARMOD_23359
if or
  is_int_var_equal_to_constant $car_name_mod == 491
  is_int_var_equal_to_constant $car_name_mod == 492
  is_int_var_equal_to_constant $car_name_mod == 494
  is_int_var_equal_to_constant $car_name_mod == 495
  is_int_var_equal_to_constant $car_name_mod == 496
  is_int_var_equal_to_constant $car_name_mod == 502
goto_if_false @CARMOD_23425
$flag_no_of_car_colours = 2

:CARMOD_23425
if or
  is_int_var_equal_to_constant $car_name_mod == 503
  is_int_var_equal_to_constant $car_name_mod == 504
  is_int_var_equal_to_constant $car_name_mod == 517
  is_int_var_equal_to_constant $car_name_mod == 522
  is_int_var_equal_to_constant $car_name_mod == 525
  is_int_var_equal_to_constant $car_name_mod == 480
goto_if_false @CARMOD_23491
$flag_no_of_car_colours = 2

:CARMOD_23491
if or
  is_int_var_equal_to_constant $car_name_mod == 541
  is_int_var_equal_to_constant $car_name_mod == 517
  is_int_var_equal_to_constant $car_name_mod == 554
  is_int_var_equal_to_constant $car_name_mod == 567
goto_if_false @CARMOD_23541
$flag_no_of_car_colours = 2

:CARMOD_23541
if or
  is_int_var_equal_to_constant $car_name_mod == 573
  is_int_var_equal_to_constant $car_name_mod == 575
  is_int_var_equal_to_constant $car_name_mod == 576
  is_int_var_equal_to_constant $car_name_mod == 583
  is_int_var_equal_to_constant $car_name_mod == 603
goto_if_false @CARMOD_23599
$flag_no_of_car_colours = 2

:CARMOD_23599
if 
  is_int_var_equal_to_constant $car_name_mod == 557
goto_if_false @CARMOD_23625
$flag_no_of_car_colours = 2

:CARMOD_23625
return 

:CARMOD_23627
$temp_var_shops = 0
$can_car_be_modded_counter = 0

:CARMOD_23641
if 
  16 > $temp_var_shops
goto_if_false @CARMOD_23721
get_available_vehicle_mod $stored_mod_garage_car {slotId} $car_mod_number($temp_var_shops,16i) {var_modelId} $can_car_have_mod($temp_var_shops,16i)
if 
  $can_car_have_mod($temp_var_shops,16i) <> -1
goto_if_false @CARMOD_23707
$can_car_be_modded_counter += 1

:CARMOD_23707
$temp_var_shops += 1
goto @CARMOD_23641

:CARMOD_23721
return 

:CARMOD_23723
if 
  $third_menu_drawn_shops == 0
goto_if_false @CARMOD_24413
print_help_forever 'MODH2'
if 
  is_int_var_equal_to_constant $current_Language == 0
goto_if_false @CARMOD_23814
$third_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_23814
if 
  is_int_var_equal_to_constant $current_Language == 1
goto_if_false @CARMOD_23876
$third_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_23876
if 
  is_int_var_equal_to_constant $current_Language == 2
goto_if_false @CARMOD_23938
$third_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 165.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_23938
if 
  is_int_var_equal_to_constant $current_Language == 3
goto_if_false @CARMOD_24000
$third_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left
goto @CARMOD_24055

:CARMOD_24000
if 
  is_int_var_equal_to_constant $current_Language == 4
goto_if_false @CARMOD_24055
$third_menu_shops = create_menu 'UPGRADE' {topLeftX} 29.0 {topLeftY} 145.0 {width} 93.0 {numColumns} 2 {interactive} False {background} True {alignment} Align.Left

:CARMOD_24055
set_menu_column_orientation $third_menu_shops {column} 0 {alignment} Align.Left
set_menu_column $third_menu_shops {column} 0 {title} 'UPGRADE' {row0} $item_text_label($upgrade_meun2_selected,12s) {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
if 
  $upgradetype($upgrade_meun1_selected,12i) == 100
goto_if_false @CARMOD_24229
set_menu_item_with_number $third_menu_shops {column} 0 {row} 0 {gxt} 'PJOB' {number} $paintjob_number_menu

:CARMOD_24229
set_menu_column_orientation $third_menu_shops {column} 1 {alignment} Align.Right
set_menu_column $third_menu_shops {column} 1 {title} 'COST' {row0} 'DUMMY' {row1} 'DUMMY' {row2} 'DUMMY' {row3} 'DUMMY' {row4} 'DUMMY' {row5} 'DUMMY' {row6} 'DUMMY' {row7} 'DUMMY' {row8} 'DUMMY' {row9} 'DUMMY' {row10} 'DUMMY' {row11} 'DUMMY'
set_menu_item_with_number $third_menu_shops {column} 1 {row} 0 {gxt} 'DOLLAR' {number} $item_price($upgrade_meun2_selected,12i)
set_menu_column_width $third_menu_shops {column} 0 {width} 140
set_menu_column_width $third_menu_shops {column} 1 {width} 46
$third_menu_drawn_shops = 1

:CARMOD_24413
return 
terminate_this_script 

//-------------External script 67 (CRANE1)---------------

:CRANE1
script_name 'CRANE1'
5@ = 0
if 
  5@ == 1
goto_if_false @CRANE1_102
0@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANE1_102
if 
  does_object_exist 0@
goto_if_false @CRANE1_258
if 
  locate_object_2d 0@ {x} -2080.4409 {y} 256.015 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANE1_188
set_lvar_int_to_var_int 1@ = $sf_crane1_arm
set_lvar_int_to_var_int 2@ = $sf_crane1_trolley
set_lvar_int_to_var_int 3@ = $sf_crane1_arm_LOD
set_lvar_int_to_var_int 4@ = $sf_crane1_base_LOD

:CRANE1_188
if 
  locate_object_2d 0@ {x} 2399.2019 {y} 1879.139 {xRadius} 10.0 {yRadius} 10.0 {drawSphere} False
goto_if_false @CRANE1_258
set_lvar_int_to_var_int 1@ = $lv_arm
set_lvar_int_to_var_int 2@ = $lv_trolley
set_lvar_int_to_var_int 3@ = $lv_arm_LOD
set_lvar_int_to_var_int 4@ = $lv_base_LOD

:CRANE1_258
$crane_help1 = 0
21@ = 0

:CRANE1_272
wait 0
if 
  does_object_exist 0@
goto_if_false @CRANE1_2496
if 
  is_player_playing $player1
goto_if_false @CRANE1_2489
if 
  $disable_all_cranes == 0
goto_if_false @CRANE1_2489
if 
  $reset_crane_camera == 1
goto_if_false @CRANE1_351
gosub @CRANE1_2512

:CRANE1_351
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE1_2487
if 
  $player_is_in_crane == 1
goto_if_false @CRANE1_407
gosub @CRANE1_2512

:CRANE1_407
if 
  5@ == 0
goto_if_false @CRANE1_461
9@, 10@, 11@ = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} -7.2092 {zOffset} -31.7581
5@ += 1

:CRANE1_461
if 
  5@ == 1
goto_if_false @CRANE1_646
if 
  locate_char_on_foot_3d $scplayer {x} 9@ {y} 10@ {z} 11@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} True
goto_if_false @CRANE1_619
if 
  is_char_on_foot $scplayer
goto_if_false @CRANE1_612
if 
  $crane_help1 == 0
goto_if_false @CRANE1_573
print_help_forever 'CR_2'
$crane_help1 = 1

:CRANE1_573
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE1_612
5@ += 1
TIMERA = 6000
$crane_help1 = 0

:CRANE1_612
goto @CRANE1_646

:CRANE1_619
if 
  $crane_help1 <> 0
goto_if_false @CRANE1_646
clear_help 
$crane_help1 = 0

:CRANE1_646
if 
  5@ == 2
goto_if_false @CRANE1_1068
if 
  does_object_exist 1@
goto_if_false @CRANE1_688
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneEnter

:CRANE1_688
set_player_control $player1 {state} False
set_minigame_in_progress True
do_fade 500 {direction} Fade.Out

:CRANE1_706
if 
  get_fading_status 
goto_if_false @CRANE1_730
wait 0
goto @CRANE1_706

:CRANE1_730
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_arm
goto_if_false @CRANE1_758
player_entered_buildingsite_crane 
goto @CRANE1_760

:CRANE1_758
player_entered_las_vegas_crane 

:CRANE1_760
display_non_minigame_help_messages True
7@ = get_object_heading 1@
$x, $y, $z = get_object_coordinates 1@
12@, 13@, 14@ = get_object_coordinates 2@
8@ = get_distance_between_coords_2d $x {fromY} $y {toX} 12@ {toZ} 13@
if 
  8@ > 47.5
goto_if_false @CRANE1_848
8@ = 47.5

:CRANE1_848
if 
  10.0 > 8@
goto_if_false @CRANE1_879
8@ = 10.0

:CRANE1_879
if 
  does_object_exist 1@
goto_if_false @CRANE1_943
if 
  is_player_playing $player1
goto_if_false @CRANE1_943
attach_char_to_object $scplayer {handle} 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 34.5 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:CRANE1_943
if 
  is_player_playing $player1
goto_if_false @CRANE1_1016
freeze_char_position $scplayer {state} True
set_char_visible $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$player_is_in_crane = 1
22@ = 0

:CRANE1_1016
set_everyone_ignore_player $player1 {state} False
gosub @CRANE1_2512
do_fade 500 {direction} Fade.In

:CRANE1_1037
if 
  get_fading_status 
goto_if_false @CRANE1_1061
wait 0
goto @CRANE1_1037

:CRANE1_1061
5@ += 1

:CRANE1_1068
if 
  5@ == 3
goto_if_false @CRANE1_2277
if 
  TIMERA > 6000
goto_if_false @CRANE1_1468
$crane_help1 += 1
if 
  7 > $crane_help1
goto_if_false @CRANE1_1461
switch_start $crane_help1 {numCases} 6 {hasDefaultCase} 0 {defaultLabel} @CRANE1_1461 {caseNum1} 1 {caseLabel1} @CRANE1_1193 {caseNum2} 2 {caseLabel2} @CRANE1_1250 {caseNum3} 3 {caseLabel3} @CRANE1_1307 {caseNum4} 4 {caseLabel4} @CRANE1_1364 {caseNum5} 5 {caseLabel5} @CRANE1_1421 {caseNum6} 6 {caseLabel6} @CRANE1_1441 {caseNum7} -1 {caseLabel7} @CRANE1_1461

:CRANE1_1193
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_arm
goto_if_false @CRANE1_1232
print_help_forever 'CONS_1'
goto @CRANE1_1243

:CRANE1_1232
print_help_forever 'CONS_1B'

:CRANE1_1243
goto @CRANE1_1461

:CRANE1_1250
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_arm
goto_if_false @CRANE1_1289
print_help_forever 'CONS_2'
goto @CRANE1_1300

:CRANE1_1289
print_help_forever 'CONS_2B'

:CRANE1_1300
goto @CRANE1_1461

:CRANE1_1307
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_arm
goto_if_false @CRANE1_1346
print_help_forever 'CONS_3'
goto @CRANE1_1357

:CRANE1_1346
print_help_forever 'CONS_3B'

:CRANE1_1357
goto @CRANE1_1461

:CRANE1_1364
clear_help 
if 
  is_int_lvar_equal_to_int_var 1@ == $sf_crane1_arm
goto_if_false @CRANE1_1403
print_help_forever 'CONS_4'
goto @CRANE1_1414

:CRANE1_1403
print_help_forever 'CONS_4B'

:CRANE1_1414
goto @CRANE1_1461

:CRANE1_1421
clear_help 
print_help_forever 'CONS_5'
goto @CRANE1_1461

:CRANE1_1441
clear_help 
print_help 'CR_3'
goto @CRANE1_1461

:CRANE1_1461
TIMERA = 0

:CRANE1_1468
if 
  is_player_playing $player1
goto_if_false @CRANE1_2277
if 
is_ps2_keyboard_key_pressed 81
goto_if_false @CRANE1_1509
$cammy_off_X += 0.1

:CRANE1_1509
if 
is_ps2_keyboard_key_pressed 65
goto_if_false @CRANE1_1534
$cammy_off_X += -0.1

:CRANE1_1534
if 
is_ps2_keyboard_key_pressed 87
goto_if_false @CRANE1_1559
$cammy_off_Y += 0.1

:CRANE1_1559
if 
is_ps2_keyboard_key_pressed 83
goto_if_false @CRANE1_1584
$cammy_off_Y += -0.1

:CRANE1_1584
if 
is_ps2_keyboard_key_pressed 69
goto_if_false @CRANE1_1609
$cammy_off_Z += 0.1

:CRANE1_1609
if 
is_ps2_keyboard_key_pressed 68
goto_if_false @CRANE1_1634
$cammy_off_Z += -0.1

:CRANE1_1634
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
goto_if_false @CRANE1_1749
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 6@ =# $LStickX
6@ /= 500.0
sub_timed_float_lvar_from_float_lvar 7@ -=@ 6@
if 
  is_player_playing $player1
goto_if_false @CRANE1_1742
if 
  22@ <> 1
goto_if_false @CRANE1_1742
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneMoveStart
22@ = 1

:CRANE1_1742
goto @CRANE1_1798

:CRANE1_1749
if 
  is_player_playing $player1
goto_if_false @CRANE1_1798
if 
  22@ <> 0
goto_if_false @CRANE1_1798
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneMoveStop
22@ = 0

:CRANE1_1798
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @CRANE1_2000
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 6@ =# $LStickY
6@ /= 128.0
if or
  6@ > 0.6
  -0.6 > 6@
goto_if_false @CRANE1_1993
6@ *= 0.15
sub_timed_float_lvar_from_float_lvar 8@ -=@ 6@
if 
  8@ > 47.5
goto_if_false @CRANE1_1929
8@ = 47.5

:CRANE1_1929
if 
  10.0 > 8@
goto_if_false @CRANE1_1960
8@ = 10.0

:CRANE1_1960
if 
  23@ <> 1
goto_if_false @CRANE1_1993
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStart
23@ = 1

:CRANE1_1993
goto @CRANE1_2033

:CRANE1_2000
if 
  23@ <> 0
goto_if_false @CRANE1_2033
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStop
23@ = 0

:CRANE1_2033
if 
  does_object_exist 2@
goto_if_false @CRANE1_2071
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Cross
goto_if_false @CRANE1_2071
release_entity_from_rope_for_object 2@

:CRANE1_2071
if 
  does_object_exist 1@
goto_if_false @CRANE1_2172
if 
  does_object_exist 0@
goto_if_false @CRANE1_2172
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 32.521
set_object_heading 1@ {heading} 7@
if 
  does_object_exist 3@
goto_if_false @CRANE1_2164
set_object_heading 3@ {heading} 7@

:CRANE1_2164
set_char_heading $scplayer {heading} 7@

:CRANE1_2172
if 
  does_object_exist 1@
goto_if_false @CRANE1_2253
if 
  does_object_exist 2@
goto_if_false @CRANE1_2253
$x, $y, $z = get_offset_from_object_in_world_coords 1@ {xOffset} 0.0 {yOffset} 8@ {zOffset} 3.453
set_object_coordinates_and_velocity 2@ {x} $x {y} $y {z} $z
set_object_heading 2@ {heading} 7@

:CRANE1_2253
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE1_2277
5@ += 1

:CRANE1_2277
if 
  5@ == 4
goto_if_false @CRANE1_2480
if 
  is_player_playing $player1
goto_if_false @CRANE1_2480
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist 1@
goto_if_false @CRANE1_2349
report_mission_audio_event_at_object 1@ {soundId} ScriptSound.SoundCraneExit

:CRANE1_2349
clear_help 
player_left_crane 
set_minigame_in_progress False
$x, $y, $z = get_offset_from_object_in_world_coords 0@ {xOffset} 2.0 {yOffset} -7.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} False
set_char_visible $scplayer {state} True
set_char_collision $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
restore_camera_jumpcut 
$player_is_in_crane = 0
5@ = 0
terminate_this_script 

:CRANE1_2480
goto @CRANE1_2489

:CRANE1_2487
terminate_this_script 

:CRANE1_2489
goto @CRANE1_2505

:CRANE1_2496
5@ = 0
terminate_this_script 

:CRANE1_2505
goto @CRANE1_272

:CRANE1_2512
if 
  $do_not_update_camera_crane1 == 0
goto_if_false @CRANE1_3074
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @CRANE1_2619
if 
  24@ == 0
goto_if_false @CRANE1_2612
21@ += 1
if 
  21@ > 2
goto_if_false @CRANE1_2597
21@ = 0

:CRANE1_2597
set_var_int_to_lvar_int $crane1_cam_mode = 21@
24@ += 1

:CRANE1_2612
goto @CRANE1_2644

:CRANE1_2619
if 
  24@ <> 0
goto_if_false @CRANE1_2644
24@ = 0

:CRANE1_2644
if 
  $player_is_in_crane == 1
goto_if_false @CRANE1_2695
if 
  $reset_crane_camera == 1
goto_if_false @CRANE1_2695
set_var_int_to_var_int $crane1_cam_mode = $crane1_cam_mode
$reset_crane_camera = 0

:CRANE1_2695
if 
  21@ == 0
goto_if_false @CRANE1_2758
if 
  does_object_exist 1@
goto_if_false @CRANE1_2758
15@, 16@, 17@ = get_offset_from_object_in_world_coords 1@ {xOffset} -7.18 {yOffset} -6.42 {zOffset} 15.79

:CRANE1_2758
if 
  21@ == 1
goto_if_false @CRANE1_2920
if 
  does_object_exist 1@
goto_if_false @CRANE1_2920
15@, 16@, 17@ = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} -4.5 {zOffset} 20.1999
if 
  does_object_exist 2@
goto_if_false @CRANE1_2920
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 20.1999
6@ = get_rope_height_for_object 2@
6@ += -1.0
6@ *= -1.0
6@ *= 72.0
sub_float_lvar_from_float_var $z -= 6@
set_lvar_float_to_var_float 17@ = $z

:CRANE1_2920
if 
  does_object_exist 2@
goto_if_false @CRANE1_3035
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0
6@ = get_rope_height_for_object 2@
6@ += -1.0
6@ *= -1.0
6@ *= 72.0
sub_float_lvar_from_float_var $z -= 6@
set_lvar_float_to_var_float 18@ = $x
set_lvar_float_to_var_float 19@ = $y
set_lvar_float_to_var_float 20@ = $z

:CRANE1_3035
set_fixed_camera_position 15@ {y} 16@ {z} 17@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 18@ {y} 19@ {z} 20@ {switchStyle} SwitchType.JumpCut

:CRANE1_3074
return 
terminate_this_script 

//-------------External script 68 (CRANE2)---------------

:CRANE2
script_name 'CRANE2'
0@ = 0
if 
  0@ == 1
goto_if_false @CRANE2_102
$magno_base = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$magno_cabin = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
$magno_arm = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANE2_102
$crane_help2 = 0
$crane_arm_length = 33.7
$magno_arm_rotate_y = 15.0
28@ = 0
27@ = 1
$magno_camera_type = 0

:CRANE2_150
wait 0
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4700
if 
  is_player_playing $player1
goto_if_false @CRANE2_4693
if 
  $disable_all_cranes == 0
goto_if_false @CRANE2_4693
if 
  locate_char_any_means_object_2d $scplayer {object} $magno_base {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE2_4691
if 
  $reset_crane_camera == 1
goto_if_false @CRANE2_260
gosub @CRANE2_4716

:CRANE2_260
if and
  is_player_playing $player1
  $disable_crane == 0
goto_if_false @CRANE2_4684
if 
  locate_char_any_means_object_2d $scplayer {object} $magno_base {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE2_4659
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_339
gosub @CRANE2_4716

:CRANE2_339
if 
  0@ == 0
goto_if_false @CRANE2_393
1@, 2@, 3@ = get_offset_from_object_in_world_coords $magno_base {xOffset} -1.7837 {yOffset} 2.4699 {zOffset} -24.1519
0@ += 1

:CRANE2_393
if 
  0@ == 1
goto_if_false @CRANE2_691
if 
  locate_char_on_foot_3d $scplayer {x} 1@ {y} 2@ {z} 3@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} True
goto_if_false @CRANE2_538
if 
  is_char_on_foot $scplayer
goto_if_false @CRANE2_531
if 
  $crane_help2 == 0
goto_if_false @CRANE2_505
print_help_forever 'CR_2'
$crane_help2 = 1

:CRANE2_505
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE2_531
clear_help 
0@ += 1

:CRANE2_531
goto @CRANE2_565

:CRANE2_538
if 
  $crane_help2 <> 0
goto_if_false @CRANE2_565
clear_help 
$crane_help2 = 0

:CRANE2_565
if 
  15.0 > $magno_arm_rotate_y
goto_if_false @CRANE2_628
$magno_arm_rotate_y = 15.0
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_628
set_object_rotation $magno_arm {x} $magno_arm_rotate_y {y} 0.0 {z} $magno_arm_h

:CRANE2_628
if 
  $magno_arm_rotate_y > 30.0
goto_if_false @CRANE2_691
$magno_arm_rotate_y = 30.0
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_691
set_object_rotation $magno_arm {x} $magno_arm_rotate_y {y} 0.0 {z} $magno_arm_h

:CRANE2_691
if 
  0@ == 2
goto_if_false @CRANE2_1309
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_733
report_mission_audio_event_at_object $magno_cabin {soundId} ScriptSound.SoundCraneEnter

:CRANE2_733
set_player_control $player1 {state} False
set_minigame_in_progress True
$player_is_in_crane = 2
do_fade 500 {direction} Fade.Out

:CRANE2_758
if 
  get_fading_status 
goto_if_false @CRANE2_782
wait 0
goto @CRANE2_758

:CRANE2_782
player_entered_dock_crane 
display_non_minigame_help_messages True
$magno_cabin_h = get_object_heading $magno_cabin
$magno_arm_h = get_object_heading $magno_arm
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_882
if 
  is_player_playing $player1
goto_if_false @CRANE2_882
$magno_base_x, $magno_base_y, $magno_base_z = get_object_coordinates $magno_base
attach_char_to_object $scplayer {handle} $magno_base {xOffset} 0.0 {yOffset} 0.0 {zOffset} 2.0 {heading} Facing.Forward {headingRange} 360.0 {weaponType} WeaponType.Unarmed

:CRANE2_882
if 
  is_player_playing $player1
goto_if_false @CRANE2_948
freeze_char_position $scplayer {state} True
set_char_visible $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
$crane2_sound_flag = 0

:CRANE2_948
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_978
21@, 22@, $z = get_object_coordinates $magno_base

:CRANE2_978
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_1002
25@ = get_object_heading $magno_arm

:CRANE2_1002
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_1204
$cam_look_x, $cam_look_y, $cam_look_z = get_offset_from_object_in_world_coords $magno_arm {xOffset} 0.0 {yOffset} $crane_arm_length {zOffset} -3.0
4@ = get_rope_height_for_object $magno_arm
4@ += -1.0
4@ *= -1.0
4@ *= 50.0
sub_float_lvar_from_float_var $cam_look_z -= 4@
set_var_float_to_var_float $x = $cam_look_x
sub_float_var_from_float_var $x -= $magno_base_x
set_var_float_to_var_float $y = $cam_look_y
sub_float_var_from_float_var $y -= $magno_base_y
4@ = get_distance_between_coords_2d $cam_look_x {fromY} $cam_look_y {toX} $magno_base_x {toZ} $magno_base_y
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
mult_float_var_by_float_var $x *= $crane_arm_length
mult_float_var_by_float_var $y *= $crane_arm_length
set_var_float_to_var_float $cam_look_x = $magno_base_x
add_float_var_to_float_var $cam_look_x += $x
set_var_float_to_var_float $cam_look_y = $magno_base_y
add_float_var_to_float_var $cam_look_y += $y

:CRANE2_1204
set_lvar_float_to_var_float 10@ = $cam_look_x
set_lvar_float_to_var_float 11@ = $cam_look_y
$dock_crane_speed = 0.0
$dock_crane_accel = 0.0
$dock_crane_max_speed = 0.3
set_everyone_ignore_player $player1 {state} False
gosub @CRANE2_4716
do_fade 500 {direction} Fade.In

:CRANE2_1271
if 
  get_fading_status 
goto_if_false @CRANE2_1302
wait 0
gosub @CRANE2_4716
goto @CRANE2_1271

:CRANE2_1302
0@ += 1

:CRANE2_1309
if 
  0@ == 3
goto_if_false @CRANE2_4430
if 
  is_player_playing $player1
goto_if_false @CRANE2_4430
if 
is_ps2_keyboard_key_pressed 131
goto_if_false @CRANE2_1369
$crane_arm_length += 0.1

:CRANE2_1369
if 
is_ps2_keyboard_key_pressed 130
goto_if_false @CRANE2_1395
$crane_arm_length += -0.1

:CRANE2_1395
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_3930
if or
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @CRANE2_2947
if 
  $crane2_sound_flag <> 1
goto_if_false @CRANE2_1485
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_1478
report_mission_audio_event_at_object $magno_cabin {soundId} ScriptSound.SoundCraneMoveStart

:CRANE2_1478
$crane2_sound_flag = 1

:CRANE2_1485
if 
  $disable_manual_control == 0
goto_if_false @CRANE2_2940
28@ = 1
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 6@ =# $LStickX
cset_lvar_float_to_var_int 7@ =# $LStickY
6@ /= 128.0
7@ /= 128.0
6@ *= 0.15
7@ *= 0.15
set_lvar_float_to_var_float 12@ = $cam_vec_x
set_lvar_float_to_var_float 13@ = $cam_vec_y
set_lvar_float_to_lvar_float 15@ = 13@
set_lvar_float_to_lvar_float 16@ = 12@
16@ *= -1.0
mult_float_lvar_by_float_lvar 12@ *= 7@
mult_float_lvar_by_float_lvar 13@ *= 7@
12@ *= -1.0
13@ *= -1.0
add_timed_float_lvar_to_float_lvar 10@ +=@ 12@
add_timed_float_lvar_to_float_lvar 11@ +=@ 13@
mult_float_lvar_by_float_lvar 15@ *= 6@
mult_float_lvar_by_float_lvar 16@ *= 6@
add_timed_float_lvar_to_float_lvar 10@ +=@ 15@
add_timed_float_lvar_to_float_lvar 11@ +=@ 16@
4@ = get_distance_between_coords_2d 10@ {fromY} 11@ {toX} $new_cam_look_x {toZ} $new_cam_look_y
if 
  4@ > 0.3
goto_if_false @CRANE2_1846
set_var_float_to_lvar_float $x = 10@
sub_float_var_from_float_var $x -= $new_cam_look_x
set_var_float_to_lvar_float $y = 11@
sub_float_var_from_float_var $y -= $new_cam_look_y
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
$x *= 0.3
$y *= 0.3
set_lvar_float_to_var_float 10@ = $new_cam_look_x
add_float_var_to_float_lvar 10@ += $x
set_lvar_float_to_var_float 11@ = $new_cam_look_y
add_float_var_to_float_lvar 11@ += $y

:CRANE2_1846
$z = 0.0
set_var_float_to_lvar_float $y = 11@
set_var_float_to_var_float $x = $y
$x -= 1671.5
set_lvar_float_to_lvar_float 8@ = 10@
set_lvar_float_to_lvar_float 9@ = 8@
9@ += 1671.5
add_float_lvar_to_float_var $x += 8@
add_float_lvar_to_float_var $y += 9@
$x /= 2.0
$y /= 2.0
if 
  -1648.057 > $x
goto_if_false @CRANE2_2116
4@ = get_distance_between_coords_2d -1648.057 {fromY} 23.852 {toX} 10@ {toZ} 11@
if 
  is_float_lvar_greater_than_float_var 4@ > $crane_arm_length
goto_if_false @CRANE2_2109
set_lvar_float_to_lvar_float 12@ = 10@
12@ += 1648.057
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 23.852
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $crane_arm_length
mult_float_lvar_by_float_var 13@ *= $crane_arm_length
10@ = -1648.057
add_float_lvar_to_float_lvar 10@ += 12@
11@ = 23.852
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2109
goto @CRANE2_2420

:CRANE2_2116
if 
  $x > -1532.7419
goto_if_false @CRANE2_2288
4@ = get_distance_between_coords_2d -1532.7419 {fromY} 138.719 {toX} 10@ {toZ} 11@
if 
  is_float_lvar_greater_than_float_var 4@ > $crane_arm_length
goto_if_false @CRANE2_2281
set_lvar_float_to_lvar_float 12@ = 10@
12@ += 1532.7419
set_lvar_float_to_lvar_float 13@ = 11@
13@ -= 138.719
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $crane_arm_length
mult_float_lvar_by_float_var 13@ *= $crane_arm_length
10@ = -1532.7419
add_float_lvar_to_float_lvar 10@ += 12@
11@ = 138.719
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2281
goto @CRANE2_2420

:CRANE2_2288
4@ = get_distance_between_coords_2d $x {fromY} $y {toX} 10@ {toZ} 11@
if 
  is_float_lvar_greater_than_float_var 4@ > $crane_arm_length
goto_if_false @CRANE2_2420
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_var_from_float_lvar 12@ -= $x
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_var_from_float_lvar 13@ -= $y
div_float_lvar_by_float_lvar 12@ /= 4@
div_float_lvar_by_float_lvar 13@ /= 4@
mult_float_lvar_by_float_var 12@ *= $crane_arm_length
mult_float_lvar_by_float_var 13@ *= $crane_arm_length
set_lvar_float_to_var_float 10@ = $x
add_float_lvar_to_float_lvar 10@ += 12@
set_lvar_float_to_var_float 11@ = $y
add_float_lvar_to_float_lvar 11@ += 13@

:CRANE2_2420
18@ = get_distance_between_coords_2d $x {fromY} $y {toX} 10@ {toZ} 11@
set_lvar_float_to_var_float 4@ = $crane_arm_length
mult_float_lvar_by_float_var 4@ *= $crane_arm_length
set_lvar_float_to_lvar_float 5@ = 18@
mult_float_lvar_by_float_lvar 5@ *= 18@
set_lvar_float_to_lvar_float 19@ = 4@
sub_float_lvar_from_float_lvar 19@ -= 5@
set_lvar_float_to_lvar_float 20@ = 19@
20@ /= 2.0
20@ = sqrt 20@
set_lvar_float_to_var_float 21@ = $x
sub_float_lvar_from_float_lvar 21@ -= 20@
set_lvar_float_to_var_float 22@ = $y
sub_float_lvar_from_float_lvar 22@ -= 20@
set_lvar_float_to_var_float 23@ = $x
add_float_lvar_to_float_lvar 23@ += 20@
set_lvar_float_to_var_float 24@ = $y
add_float_lvar_to_float_lvar 24@ += 20@
26@ = 0
if and
  -1532.7419 > 21@
  21@ > -1648.057
goto_if_false @CRANE2_2620
26@ += 1

:CRANE2_2620
if and
  -1532.7419 > 23@
  23@ > -1648.057
goto_if_false @CRANE2_2658
26@ += 2

:CRANE2_2658
if 
  26@ <> 0
goto_if_false @CRANE2_2881
if 
  26@ == 1
goto_if_false @CRANE2_2694

:CRANE2_2694
if 
  26@ == 2
goto_if_false @CRANE2_2728
set_lvar_float_to_lvar_float 21@ = 23@
set_lvar_float_to_lvar_float 22@ = 24@

:CRANE2_2728
if 
  26@ == 3
goto_if_false @CRANE2_2831
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_2831
4@ = get_distance_between_coords_2d $magno_base_x {fromY} $magno_base_y {toX} 21@ {toZ} 22@
5@ = get_distance_between_coords_2d $magno_base_x {fromY} $magno_base_y {toX} 23@ {toZ} 24@
if 
  is_float_lvar_greater_than_float_lvar 4@ > 5@
goto_if_false @CRANE2_2831
set_lvar_float_to_lvar_float 21@ = 23@
set_lvar_float_to_lvar_float 22@ = 24@

:CRANE2_2831
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_lvar_from_float_lvar 12@ -= 21@
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_lvar_from_float_lvar 13@ -= 22@
25@ = get_heading_from_vector_2d 12@ {y} 13@
goto @CRANE2_2940

:CRANE2_2881
set_lvar_float_to_var_float 21@ = $magno_base_x
set_lvar_float_to_var_float 22@ = $magno_base_y
set_lvar_float_to_lvar_float 12@ = 10@
sub_float_var_from_float_lvar 12@ -= $magno_base_x
set_lvar_float_to_lvar_float 13@ = 11@
sub_float_var_from_float_lvar 13@ -= $magno_base_y
25@ = get_heading_from_vector_2d 12@ {y} 13@

:CRANE2_2940
goto @CRANE2_3246

:CRANE2_2947
if 
  $crane2_sound_flag <> 0
goto_if_false @CRANE2_2996
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_2989
report_mission_audio_event_at_object $magno_cabin {soundId} ScriptSound.SoundCraneMoveStop

:CRANE2_2989
$crane2_sound_flag = 0

:CRANE2_2996
if 
  28@ <> 0
goto_if_false @CRANE2_3246
if 
  28@ == 1
goto_if_false @CRANE2_3107
set_var_float_to_var_float $x = $cam_look_x
set_var_float_to_var_float $y = $cam_look_y
set_lvar_float_to_var_float 12@ = $x
sub_float_var_from_float_lvar 12@ -= $magno_base_x
set_lvar_float_to_var_float 13@ = $y
sub_float_var_from_float_lvar 13@ -= $magno_base_y
25@ = get_heading_from_vector_2d 12@ {y} 13@
set_lvar_float_to_var_float 12@ = $dock_crane_travel_vec_x
set_lvar_float_to_var_float 13@ = $dock_crane_travel_vec_y

:CRANE2_3107
if 
  $dock_crane_speed > 0.0
goto_if_false @CRANE2_3246
$dock_crane_accel = -0.007
add_timed_float_var_to_float_var $dock_crane_speed +=@ $dock_crane_accel
if 
  0.0 > $dock_crane_speed
goto_if_false @CRANE2_3191
$dock_crane_speed = 0.0
28@ = 0
goto @CRANE2_3198

:CRANE2_3191
28@ = 2

:CRANE2_3198
set_var_float_to_var_float $x = $dock_crane_speed
mult_float_var_by_float_lvar $x *= 12@
set_var_float_to_var_float $y = $dock_crane_speed
mult_float_var_by_float_lvar $y *= 13@
add_float_var_to_float_var $magno_base_x += $x
add_float_var_to_float_var $magno_base_y += $y

:CRANE2_3246
if 
  28@ == 1
goto_if_false @CRANE2_3530
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_3530
4@ = get_distance_between_coords_2d $magno_base_x {fromY} $magno_base_y {toX} 21@ {toZ} 22@
if 
  4@ > 0.01
goto_if_false @CRANE2_3366
set_var_float_to_lvar_float $dock_crane_travel_vec_x = 21@
sub_float_var_from_float_var $dock_crane_travel_vec_x -= $magno_base_x
set_var_float_to_lvar_float $dock_crane_travel_vec_y = 22@
sub_float_var_from_float_var $dock_crane_travel_vec_y -= $magno_base_y
div_float_var_by_float_lvar $dock_crane_travel_vec_x /= 4@
div_float_var_by_float_lvar $dock_crane_travel_vec_y /= 4@

:CRANE2_3366
if 
  4@ > 0.01
goto_if_false @CRANE2_3530
$dock_crane_accel = 0.003
add_timed_float_var_to_float_var $dock_crane_speed +=@ $dock_crane_accel
if 
  is_float_var_greater_than_float_var $dock_crane_speed > $dock_crane_max_speed
goto_if_false @CRANE2_3432
set_var_float_to_var_float $dock_crane_speed = $dock_crane_max_speed

:CRANE2_3432
set_lvar_float_to_var_float 12@ = $dock_crane_travel_vec_x
set_lvar_float_to_var_float 13@ = $dock_crane_travel_vec_y
if 
  is_float_lvar_greater_than_float_var 4@ > $dock_crane_speed
goto_if_false @CRANE2_3490
mult_float_lvar_by_float_var 12@ *= $dock_crane_speed
mult_float_lvar_by_float_var 13@ *= $dock_crane_speed
goto @CRANE2_3514

:CRANE2_3490
mult_float_lvar_by_float_lvar 12@ *= 4@
mult_float_lvar_by_float_lvar 13@ *= 4@
set_var_float_to_lvar_float $dock_crane_speed = 4@

:CRANE2_3514
add_float_lvar_to_float_var $magno_base_x += 12@
add_float_lvar_to_float_var $magno_base_y += 13@

:CRANE2_3530
if 
  28@ == 1
goto_if_false @CRANE2_3888
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_3888
if 
  25@ > 180.0
goto_if_false @CRANE2_3595
25@ += -360.0

:CRANE2_3595
if 
  -180.0 > 25@
goto_if_false @CRANE2_3626
25@ += 360.0

:CRANE2_3626
set_var_float_to_var_float $heading = $magno_arm_h
if 
  $heading > 180.0
goto_if_false @CRANE2_3665
$heading += -360.0

:CRANE2_3665
if 
  -180.0 > $heading
goto_if_false @CRANE2_3696
$heading += 360.0

:CRANE2_3696
set_lvar_float_to_lvar_float 4@ = 25@
sub_float_var_from_float_lvar 4@ -= $heading
if 
  4@ > 180.0
goto_if_false @CRANE2_3743
4@ += -360.0

:CRANE2_3743
if 
  -180.0 > 4@
goto_if_false @CRANE2_3774
4@ += 360.0

:CRANE2_3774
if 
  4@ >= 0.0
goto_if_false @CRANE2_3833
if 
  4@ > 0.2
goto_if_false @CRANE2_3826
4@ = 0.2

:CRANE2_3826
goto @CRANE2_3864

:CRANE2_3833
if 
  -0.2 > 4@
goto_if_false @CRANE2_3864
4@ = -0.2

:CRANE2_3864
add_timed_float_lvar_to_float_var $heading +=@ 4@
set_var_float_to_var_float $magno_cabin_h = $heading
set_var_float_to_var_float $magno_arm_h = $heading

:CRANE2_3888
if 
  $disable_crane_exit == 0
goto_if_false @CRANE2_3930
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE2_3930
0@ += 1

:CRANE2_3930
if and
  -1532.7419 > $magno_base_x
  $magno_base_x > -1648.057
goto_if_false @CRANE2_3998
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_3991
set_object_coordinates_and_velocity $magno_base {x} $magno_base_x {y} $magno_base_y {z} $magno_base_z

:CRANE2_3991
goto @CRANE2_4028

:CRANE2_3998
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4028
$magno_base_x, $magno_base_y, $magno_base_z = get_object_coordinates $magno_base

:CRANE2_4028
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4104
if 
  does_object_exist $magno_base_LOD
goto_if_false @CRANE2_4104
$x, $y, $z = get_object_coordinates $magno_base
$heading = get_object_heading $magno_base
set_object_coordinates $magno_base_LOD {x} $x {y} $y {z} $z
set_object_heading $magno_base_LOD {heading} $heading

:CRANE2_4104
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_4255
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_4195
$x, $y, $z = get_offset_from_object_in_world_coords $magno_base {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0
set_object_heading $magno_cabin {heading} $magno_cabin_h
set_object_coordinates_and_velocity $magno_cabin {x} $x {y} $y {z} $z
set_char_heading $scplayer {heading} $magno_cabin_h

:CRANE2_4195
if 
  does_object_exist $magno_cabin_LOD
goto_if_false @CRANE2_4255
$x, $y, $z = get_object_coordinates $magno_cabin
$heading = get_object_heading $magno_cabin
set_object_coordinates $magno_cabin_LOD {x} $x {y} $y {z} $z
set_object_heading $magno_cabin_LOD {heading} $heading

:CRANE2_4255
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_4430
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_4354
$x, $y, $z = get_offset_from_object_in_world_coords $magno_cabin {xOffset} 0.0 {yOffset} -2.185 {zOffset} 8.51
$magno_arm_h = get_object_heading $magno_cabin
set_object_coordinates_and_velocity $magno_arm {x} $x {y} $y {z} $z
set_object_rotation $magno_arm {x} $magno_arm_rotate_y {y} 0.0 {z} $magno_arm_h

:CRANE2_4354
if 
  does_object_exist $magno_arm_LOD
goto_if_false @CRANE2_4430
$x, $y, $z = get_object_coordinates $magno_arm
$heading = get_object_heading $magno_arm
set_object_coordinates $magno_arm_LOD {x} $x {y} $y {z} $z
set_object_heading $magno_arm_LOD {heading} $heading
set_object_rotation $magno_arm_LOD {x} $magno_arm_rotate_y {y} 0.0 {z} $magno_arm_h

:CRANE2_4430
if or
  0@ == 4
  $remove_player_from_crane == 1
goto_if_false @CRANE2_4652
if 
  is_player_playing $player1
goto_if_false @CRANE2_4652
$x, $y, $z = get_char_coordinates $scplayer
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_4509
report_mission_audio_event_at_object $magno_cabin {soundId} ScriptSound.SoundCraneExit

:CRANE2_4509
clear_help 
player_left_crane 
set_minigame_in_progress False
$x, $y, $z = get_offset_from_object_in_world_coords $magno_base {xOffset} 2.0 {yOffset} -4.0 {zOffset} 0.0
$z = get_ground_z_for_3d_coord $x {y} $y {z} $z
set_char_coordinates $scplayer {x} $x {y} $y {z} $z
detach_char_from_car $scplayer
freeze_char_position $scplayer {state} False
set_char_visible $scplayer {state} True
set_char_collision $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
clear_char_tasks_immediately $scplayer
set_camera_behind_player 
restore_camera_jumpcut 
$player_is_in_crane = 0
$remove_player_from_crane = 0
0@ = 0

:CRANE2_4652
goto @CRANE2_4684

:CRANE2_4659
if 
  0@ <> 0
goto_if_false @CRANE2_4684
0@ = 0

:CRANE2_4684
goto @CRANE2_4693

:CRANE2_4691
terminate_this_script 

:CRANE2_4693
goto @CRANE2_4709

:CRANE2_4700
0@ = 0
terminate_this_script 

:CRANE2_4709
goto @CRANE2_150

:CRANE2_4716
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Select
goto_if_false @CRANE2_4805
if 
  29@ == 0
goto_if_false @CRANE2_4798
27@ += 1
if 
  27@ > 2
goto_if_false @CRANE2_4783
27@ = 0

:CRANE2_4783
set_var_int_to_lvar_int $magno_camera_type = 27@
29@ += 1

:CRANE2_4798
goto @CRANE2_4830

:CRANE2_4805
if 
  29@ <> 0
goto_if_false @CRANE2_4830
29@ = 0

:CRANE2_4830
if 
  $player_is_in_crane == 2
goto_if_false @CRANE2_4881
if 
  $reset_crane_camera == 1
goto_if_false @CRANE2_4881
set_lvar_int_to_var_int 27@ = $magno_camera_type
$reset_crane_camera = 0

:CRANE2_4881
if 
  not is_int_var_equal_to_int_lvar $magno_camera_type == 27@
goto_if_false @CRANE2_4908
set_var_int_to_lvar_int $magno_camera_type = 27@

:CRANE2_4908
if 
  27@ == 0
goto_if_false @CRANE2_4978
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_4971
$cam_pos_x, $cam_pos_y, $cam_pos_z = get_offset_from_object_in_world_coords $magno_cabin {xOffset} 6.1 {yOffset} 15.0 {zOffset} 5.1

:CRANE2_4971
goto @CRANE2_5093

:CRANE2_4978
if 
  27@ == 1
goto_if_false @CRANE2_5048
if 
  does_object_exist $magno_base
goto_if_false @CRANE2_5041
$cam_pos_x, $cam_pos_y, $cam_pos_z = get_offset_from_object_in_world_coords $magno_base {xOffset} -4.0 {yOffset} 17.3 {zOffset} 35.0

:CRANE2_5041
goto @CRANE2_5093

:CRANE2_5048
if 
  does_object_exist $magno_cabin
goto_if_false @CRANE2_5093
$cam_pos_x, $cam_pos_y, $cam_pos_z = get_offset_from_object_in_world_coords $magno_cabin {xOffset} 3.0 {yOffset} 45.0 {zOffset} 0.0

:CRANE2_5093
if 
  does_object_exist $magno_arm
goto_if_false @CRANE2_5730
$new_cam_look_x, $new_cam_look_y, $new_cam_look_z = get_offset_from_object_in_world_coords $magno_arm {xOffset} 0.0 {yOffset} $crane_arm_length {zOffset} -3.0
4@ = get_rope_height_for_object $magno_arm
4@ += -1.0
4@ *= -1.0
4@ *= 50.0
sub_float_lvar_from_float_var $new_cam_look_z -= 4@
set_var_float_to_var_float $x = $new_cam_look_x
sub_float_var_from_float_var $x -= $magno_base_x
set_var_float_to_var_float $y = $new_cam_look_y
sub_float_var_from_float_var $y -= $magno_base_y
4@ = get_distance_between_coords_2d $new_cam_look_x {fromY} $new_cam_look_y {toX} $magno_base_x {toZ} $magno_base_y
div_float_var_by_float_lvar $x /= 4@
div_float_var_by_float_lvar $y /= 4@
mult_float_var_by_float_var $x *= $crane_arm_length
mult_float_var_by_float_var $y *= $crane_arm_length
set_var_float_to_var_float $new_cam_look_x = $magno_base_x
add_float_var_to_float_var $new_cam_look_x += $x
set_var_float_to_var_float $new_cam_look_y = $magno_base_y
add_float_var_to_float_var $new_cam_look_y += $y
4@ = get_distance_between_coords_3d $new_cam_look_x {fromY} $new_cam_look_y {fromZ} $new_cam_look_z {toX} $cam_look_x {toY} $cam_look_y {toZ} $cam_look_z
if 
  4@ > 0.3
goto_if_false @CRANE2_5441
set_var_float_to_var_float $cam_vec_x = $new_cam_look_x
sub_float_var_from_float_var $cam_vec_x -= $cam_look_x
set_var_float_to_var_float $cam_vec_y = $new_cam_look_y
sub_float_var_from_float_var $cam_vec_y -= $cam_look_y
set_var_float_to_var_float $cam_vec_z = $new_cam_look_z
sub_float_var_from_float_var $cam_vec_z -= $cam_look_z
$cam_vec_x *= 0.05
$cam_vec_y *= 0.05
$cam_vec_z *= 0.05
add_float_var_to_float_var $cam_look_x += $cam_vec_x
add_float_var_to_float_var $cam_look_y += $cam_vec_y
add_float_var_to_float_var $cam_look_z += $cam_vec_z

:CRANE2_5441
$x, $y, $z = get_active_camera_coordinates 
if 
  $disable_crane == 0
goto_if_false @CRANE2_5596
set_lvar_float_to_var_float 12@ = $cam_pos_x
sub_float_var_from_float_lvar 12@ -= $x
set_lvar_float_to_var_float 13@ = $cam_pos_y
sub_float_var_from_float_lvar 13@ -= $y
set_lvar_float_to_var_float 14@ = $cam_pos_z
sub_float_var_from_float_lvar 14@ -= $z
12@ *= 0.2
13@ *= 0.2
14@ *= 0.2
set_var_float_to_var_float $cam_pos_x = $x
add_float_lvar_to_float_var $cam_pos_x += 12@
set_var_float_to_var_float $cam_pos_y = $y
add_float_lvar_to_float_var $cam_pos_y += 13@
set_var_float_to_var_float $cam_pos_z = $z
add_float_lvar_to_float_var $cam_pos_z += 14@

:CRANE2_5596
set_fixed_camera_position $cam_pos_x {y} $cam_pos_y {z} $cam_pos_z {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point $cam_look_x {y} $cam_look_y {z} $cam_look_z {switchStyle} SwitchType.JumpCut
set_var_float_to_var_float $cam_vec_x = $cam_look_x
sub_float_var_from_float_var $cam_vec_x -= $cam_pos_x
set_var_float_to_var_float $cam_vec_y = $cam_look_y
sub_float_var_from_float_var $cam_vec_y -= $cam_pos_y
set_var_float_to_var_float $cam_vec_z = $cam_look_z
sub_float_var_from_float_var $cam_vec_z -= $cam_pos_z
4@ = get_distance_between_coords_3d $cam_pos_x {fromY} $cam_pos_y {fromZ} $cam_pos_z {toX} $cam_look_x {toY} $cam_look_y {toZ} $cam_look_z
div_float_var_by_float_lvar $cam_vec_x /= 4@
div_float_var_by_float_lvar $cam_vec_y /= 4@
div_float_var_by_float_lvar $cam_vec_z /= 4@

:CRANE2_5730
return 
terminate_this_script 

//-------------External script 69 (CRANE3)---------------

:CRANE3
script_name 'CRANE3'
3@ = 0
if 
  3@ == 1
goto_if_false @CRANE3_124
0@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
2@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0
3@ = create_object_no_offset #WOODENBOX {x} 0.0 {y} 0.0 {z} 0.0

:CRANE3_124
$crane_help3 = 0

:CRANE3_131
wait 0
if 
  does_object_exist 0@
goto_if_false @CRANE3_1554
if 
  is_player_playing $player1
goto_if_false @CRANE3_1547
if 
  $disable_all_cranes == 0
goto_if_false @CRANE3_1547
if 
  locate_char_any_means_object_2d $scplayer {object} 0@ {xRadius} 100.0 {yRadius} 100.0 {drawSphere} False
goto_if_false @CRANE3_1538
if 
  3@ == 0
goto_if_false @CRANE3_270
5@, 6@, 7@ = get_offset_from_object_in_world_coords 0@ {xOffset} 3.0899 {yOffset} 2.9792 {zOffset} 0.0081
3@ += 1

:CRANE3_270
if 
  3@ == 1
goto_if_false @CRANE3_440
if 
  locate_char_on_foot_3d $scplayer {x} 5@ {y} 6@ {z} 7@ {xRadius} 1.2 {yRadius} 1.2 {zRadius} 1.5 {drawSphere} True
goto_if_false @CRANE3_413
if 
  is_char_on_foot $scplayer
goto_if_false @CRANE3_406
if 
  $crane_help3 == 0
goto_if_false @CRANE3_382
print_help_forever 'CR_2'
$crane_help3 = 1

:CRANE3_382
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE3_406
3@ += 1

:CRANE3_406
goto @CRANE3_440

:CRANE3_413
if 
  $crane_help3 <> 0
goto_if_false @CRANE3_440
clear_help 
$crane_help3 = 0

:CRANE3_440
if 
  3@ == 2
goto_if_false @CRANE3_719
if 
  does_object_exist 0@
goto_if_false @CRANE3_482
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneEnter

:CRANE3_482
set_player_control $player1 {state} False
set_minigame_in_progress True
do_fade 500 {direction} Fade.Out

:CRANE3_500
if 
  get_fading_status 
goto_if_false @CRANE3_524
wait 0
goto @CRANE3_500

:CRANE3_524
player_entered_quarry_crane 
display_non_minigame_help_messages True
4@ = get_object_heading 1@
if 
  does_object_exist 0@
goto_if_false @CRANE3_570
if 
  is_player_playing $player1
goto_if_false @CRANE3_570

:CRANE3_570
if 
  is_player_playing $player1
goto_if_false @CRANE3_656
freeze_char_position $scplayer {state} True
set_char_coordinates $scplayer {x} 713.5652 {y} 906.2935 {z} -18.0674
set_char_visible $scplayer {state} False
set_player_control $player1 {state} True
set_char_collision $scplayer {state} False
set_char_proofs $scplayer {bulletProof} True {fireProof} True {explosionProof} True {collisionProof} True {meleeProof} True
15@ = 0

:CRANE3_656
print_help_forever 'QUAR_1'
gosub @CRANE3_1570
set_everyone_ignore_player $player1 {state} False
do_fade 500 {direction} Fade.In

:CRANE3_688
if 
  get_fading_status 
goto_if_false @CRANE3_712
wait 0
goto @CRANE3_688

:CRANE3_712
3@ += 1

:CRANE3_719
if 
  3@ == 3
goto_if_false @CRANE3_1383
if 
  is_player_playing $player1
goto_if_false @CRANE3_1383
gosub @CRANE3_1570
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickX
goto_if_false @CRANE3_875
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 8@ =# $LStickX
8@ /= 500.0
sub_timed_float_lvar_from_float_lvar 4@ -=@ 8@
if 
  15@ <> 1
goto_if_false @CRANE3_868
if 
  does_object_exist 0@
goto_if_false @CRANE3_868
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneMoveStart
15@ = 1

:CRANE3_868
goto @CRANE3_924

:CRANE3_875
if 
  15@ <> 0
goto_if_false @CRANE3_924
if 
  does_object_exist 0@
goto_if_false @CRANE3_924
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneMoveStop
15@ = 0

:CRANE3_924
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftStickY
goto_if_false @CRANE3_1187
$LStickX, $LStickY, $RStickX, $RStickY = get_position_of_analogue_sticks PadId.Pad1
cset_lvar_float_to_var_int 8@ =# $LStickY
8@ /= 1000.0
8@ *= 1.5
sub_timed_float_lvar_from_float_var $arm_rotate_y -=@ 8@

:CRANE3_993
if 
  0.0 > $arm_rotate_y
goto_if_false @CRANE3_1031
$arm_rotate_y += 360.0
goto @CRANE3_993

:CRANE3_1031
if 
  $arm_rotate_y > 360.0
goto_if_false @CRANE3_1069
$arm_rotate_y += -360.0
goto @CRANE3_1031

:CRANE3_1069
if 
  $arm_rotate_y > 70.0
goto_if_false @CRANE3_1100
$arm_rotate_y = 70.0

:CRANE3_1100
if 
  10.0 > $arm_rotate_y
goto_if_false @CRANE3_1131
$arm_rotate_y = 10.0

:CRANE3_1131
if 
  16@ <> 1
goto_if_false @CRANE3_1180
if 
  does_object_exist 0@
goto_if_false @CRANE3_1180
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStart
16@ = 1

:CRANE3_1180
goto @CRANE3_1236

:CRANE3_1187
if 
  16@ <> 0
goto_if_false @CRANE3_1236
if 
  does_object_exist 0@
goto_if_false @CRANE3_1236
report_mission_audio_event_at_object 2@ {soundId} ScriptSound.SoundCraneMoveStop
16@ = 0

:CRANE3_1236
if 
  does_object_exist 1@
goto_if_false @CRANE3_1268
set_object_heading 1@ {heading} 4@
set_char_heading $scplayer {heading} 4@

:CRANE3_1268
if 
  does_object_exist 2@
goto_if_false @CRANE3_1359
if 
  does_object_exist 1@
goto_if_false @CRANE3_1359
$x, $y, $z = get_offset_from_object_in_world_coords 1@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 1.0206
set_object_coordinates_and_velocity 2@ {x} $x {y} $y {z} $z
set_object_rotation 2@ {x} 0.0 {y} $arm_rotate_y {z} 4@

:CRANE3_1359
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CRANE3_1383
3@ += 1

:CRANE3_1383
if 
  3@ == 4
goto_if_false @CRANE3_1531
if 
  is_player_playing $player1
goto_if_false @CRANE3_1531
clear_help 
if 
  does_object_exist 0@
goto_if_false @CRANE3_1443
report_mission_audio_event_at_object 0@ {soundId} ScriptSound.SoundCraneExit

:CRANE3_1443
player_left_crane 
set_minigame_in_progress False
freeze_char_position $scplayer {state} False
set_char_visible $scplayer {state} True
set_char_collision $scplayer {state} True
set_char_proofs $scplayer {bulletProof} False {fireProof} False {explosionProof} False {collisionProof} False {meleeProof} False
set_player_control $player1 {state} True
set_char_coordinates $scplayer {x} 706.2595 {y} 918.6275 {z} -19.6407
set_char_heading $scplayer {heading} 127.184
restore_camera_jumpcut 
3@ = 0

:CRANE3_1531
goto @CRANE3_1547

:CRANE3_1538
3@ = 0
terminate_this_script 

:CRANE3_1547
goto @CRANE3_1563

:CRANE3_1554
3@ = 0
terminate_this_script 

:CRANE3_1563
goto @CRANE3_131

:CRANE3_1570
if 
  does_object_exist 1@
goto_if_false @CRANE3_1615
9@, 10@, 11@ = get_offset_from_object_in_world_coords 1@ {xOffset} -9.0 {yOffset} -6.8 {zOffset} 6.0

:CRANE3_1615
if 
  does_object_exist 2@
goto_if_false @CRANE3_1730
$x, $y, $z = get_offset_from_object_in_world_coords 2@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 59.0
8@ = get_rope_height_for_object 2@
8@ += -1.0
8@ *= -1.0
8@ *= 72.0
sub_float_lvar_from_float_var $z -= 8@
set_lvar_float_to_var_float 12@ = $x
set_lvar_float_to_var_float 13@ = $y
set_lvar_float_to_var_float 14@ = $z

:CRANE3_1730
set_fixed_camera_position 9@ {y} 10@ {z} 11@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point 12@ {y} 13@ {z} 14@ {switchStyle} SwitchType.JumpCut
return 
terminate_this_script 

//-------------External script 70 (CARPARK1)---------------

:CARPRK1
script_name 'CARPRK1'
set_deatharrest_state 0
0@ = 0
1@ = 0
2@ = 0
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
8@ = 0
9@ = 0

:CARPRK1_85
wait 0
if 
  is_player_playing $player1
goto_if_false @CARPRK1_2769
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2037.568 {leftBottomY} 2366.1521 {leftBottomZ} 9.8203 {rightTopX} 2119.283 {rightTopY} 2472.418 {rightTopZ} 14.1172 {drawSphere} False
goto_if_false @CARPRK1_251
if 
  0@ == 0
goto_if_false @CARPRK1_244
create_random_car_for_car_park 2077.8721 {y} 2398.657 {z} 9.8203 {heading} 89.6383
create_random_car_for_car_park 2087.0991 {y} 2414.177 {z} 9.8203 {heading} 90.4575
create_random_car_for_car_park 2104.8589 {y} 2416.439 {z} 9.8203 {heading} 270.7819
0@ = 1

:CARPRK1_244
goto @CARPRK1_308

:CARPRK1_251
if 
  0@ == 1
goto_if_false @CARPRK1_308
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 9.8203 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 14.1172
0@ = 0

:CARPRK1_308
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 13.1172 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 18.4219 {drawSphere} False
goto_if_false @CARPRK1_520
if 
  1@ == 0
goto_if_false @CARPRK1_513
create_random_car_for_car_park 2104.5371 {y} 2412.3 {z} 14.1172 {heading} 89.9851
create_random_car_for_car_park 2095.321 {y} 2398.5591 {z} 14.1172 {heading} 90.1384
create_random_car_for_car_park 2087.071 {y} 2405.5249 {z} 14.1172 {heading} 267.6596
create_random_car_for_car_park 2087.187 {y} 2420.887 {z} 14.1172 {heading} 90.4995
create_random_car_for_car_park 2078.3601 {y} 2410.1389 {z} 14.1172 {heading} 270.9704
create_random_car_for_car_park 2069.168 {y} 2396.7781 {z} 14.1172 {heading} 98.3338
1@ = 1

:CARPRK1_513
goto @CARPRK1_577

:CARPRK1_520
if 
  1@ == 1
goto_if_false @CARPRK1_577
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 14.1172 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 18.4219
1@ = 0

:CARPRK1_577
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 17.4219 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 22.7188 {drawSphere} False
goto_if_false @CARPRK1_789
if 
  2@ == 0
goto_if_false @CARPRK1_782
create_random_car_for_car_park 2104.5171 {y} 2405.886 {z} 18.4219 {heading} 92.3912
create_random_car_for_car_park 2095.688 {y} 2396.1951 {z} 18.4219 {heading} 270.3566
create_random_car_for_car_park 2087.0 {y} 2416.4419 {z} 18.4219 {heading} 89.9821
create_random_car_for_car_park 2086.925 {y} 2402.896 {z} 18.4219 {heading} 270.2662
create_random_car_for_car_park 2069.071 {y} 2409.6509 {z} 18.4219 {heading} 89.1894
create_random_car_for_car_park 2078.146 {y} 2416.5 {z} 18.4219 {heading} 270.7297
2@ = 1

:CARPRK1_782
goto @CARPRK1_846

:CARPRK1_789
if 
  2@ == 1
goto_if_false @CARPRK1_846
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 18.4219 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 22.7188
2@ = 0

:CARPRK1_846
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 21.7188 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 27.0234 {drawSphere} False
goto_if_false @CARPRK1_1058
if 
  3@ == 0
goto_if_false @CARPRK1_1051
create_random_car_for_car_park 2104.499 {y} 2411.8521 {z} 22.7188 {heading} 90.7897
create_random_car_for_car_park 2104.4829 {y} 2407.6179 {z} 22.7188 {heading} 91.9516
create_random_car_for_car_park 2087.2419 {y} 2400.854 {z} 22.7188 {heading} 269.9636
create_random_car_for_car_park 2078.313 {y} 2412.0769 {z} 22.7188 {heading} 267.6149
create_random_car_for_car_park 2069.1379 {y} 2396.251 {z} 22.7188 {heading} 92.2442
create_random_car_for_car_park 2078.179 {y} 2392.021 {z} 22.7188 {heading} 87.7661
3@ = 1

:CARPRK1_1051
goto @CARPRK1_1115

:CARPRK1_1058
if 
  3@ == 1
goto_if_false @CARPRK1_1115
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 22.7188 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 27.0234
3@ = 0

:CARPRK1_1115
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 24.7815 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 31.3203 {drawSphere} False
goto_if_false @CARPRK1_1327
if 
  4@ == 0
goto_if_false @CARPRK1_1320
create_random_car_for_car_park 2069.6609 {y} 2416.4221 {z} 27.0234 {heading} 268.612
create_random_car_for_car_park 2077.8721 {y} 2398.657 {z} 27.0234 {heading} 89.6383
create_random_car_for_car_park 2087.1951 {y} 2394.364 {z} 27.0234 {heading} 271.5008
create_random_car_for_car_park 2087.0991 {y} 2414.177 {z} 27.0234 {heading} 90.4575
create_random_car_for_car_park 2095.8181 {y} 2398.686 {z} 27.0234 {heading} 268.2181
create_random_car_for_car_park 2104.8589 {y} 2416.439 {z} 27.0234 {heading} 270.7819
4@ = 1

:CARPRK1_1320
goto @CARPRK1_1384

:CARPRK1_1327
if 
  4@ == 1
goto_if_false @CARPRK1_1384
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 27.0234 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 31.3203
4@ = 0

:CARPRK1_1384
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 30.3203 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 35.6172 {drawSphere} False
goto_if_false @CARPRK1_1596
if 
  5@ == 0
goto_if_false @CARPRK1_1589
create_random_car_for_car_park 2104.5371 {y} 2412.3 {z} 31.3203 {heading} 89.9851
create_random_car_for_car_park 2095.321 {y} 2398.5591 {z} 31.3203 {heading} 90.1384
create_random_car_for_car_park 2087.071 {y} 2405.5249 {z} 31.3203 {heading} 267.6596
create_random_car_for_car_park 2087.187 {y} 2420.887 {z} 31.3203 {heading} 90.4995
create_random_car_for_car_park 2078.3601 {y} 2410.1389 {z} 31.3203 {heading} 270.9704
create_random_car_for_car_park 2069.168 {y} 2396.7781 {z} 31.3203 {heading} 98.3338
5@ = 1

:CARPRK1_1589
goto @CARPRK1_1653

:CARPRK1_1596
if 
  5@ == 1
goto_if_false @CARPRK1_1653
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 31.3203 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 35.6172
5@ = 0

:CARPRK1_1653
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 34.6172 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 39.9219 {drawSphere} False
goto_if_false @CARPRK1_1865
if 
  6@ == 0
goto_if_false @CARPRK1_1858
create_random_car_for_car_park 2104.5171 {y} 2405.886 {z} 35.6172 {heading} 92.3912
create_random_car_for_car_park 2095.688 {y} 2396.1951 {z} 35.6172 {heading} 270.3566
create_random_car_for_car_park 2087.0 {y} 2416.4419 {z} 35.6172 {heading} 89.9821
create_random_car_for_car_park 2086.925 {y} 2402.896 {z} 35.6172 {heading} 270.2662
create_random_car_for_car_park 2069.071 {y} 2409.6509 {z} 35.6172 {heading} 89.1894
create_random_car_for_car_park 2078.146 {y} 2416.5 {z} 35.6172 {heading} 270.7297
6@ = 1

:CARPRK1_1858
goto @CARPRK1_1922

:CARPRK1_1865
if 
  6@ == 1
goto_if_false @CARPRK1_1922
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 35.6172 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 39.9219
6@ = 0

:CARPRK1_1922
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 38.9219 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 44.2188 {drawSphere} False
goto_if_false @CARPRK1_2134
if 
  7@ == 0
goto_if_false @CARPRK1_2127
create_random_car_for_car_park 2104.499 {y} 2411.8521 {z} 39.9219 {heading} 90.7897
create_random_car_for_car_park 2104.4829 {y} 2407.6179 {z} 39.9219 {heading} 91.9516
create_random_car_for_car_park 2087.2419 {y} 2400.854 {z} 39.9219 {heading} 269.9636
create_random_car_for_car_park 2078.313 {y} 2412.0769 {z} 39.9219 {heading} 267.6149
create_random_car_for_car_park 2069.1379 {y} 2396.251 {z} 39.9219 {heading} 92.2442
create_random_car_for_car_park 2078.179 {y} 2392.021 {z} 39.9219 {heading} 87.7661
7@ = 1

:CARPRK1_2127
goto @CARPRK1_2191

:CARPRK1_2134
if 
  7@ == 1
goto_if_false @CARPRK1_2191
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 39.9219 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 44.2188
7@ = 0

:CARPRK1_2191
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 43.2188 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 48.5234 {drawSphere} False
goto_if_false @CARPRK1_2403
if 
  8@ == 0
goto_if_false @CARPRK1_2396
create_random_car_for_car_park 2069.6609 {y} 2416.4221 {z} 44.2188 {heading} 268.612
create_random_car_for_car_park 2077.8721 {y} 2398.657 {z} 44.2188 {heading} 89.6383
create_random_car_for_car_park 2087.1951 {y} 2394.364 {z} 44.2188 {heading} 271.5008
create_random_car_for_car_park 2087.0991 {y} 2414.177 {z} 44.2188 {heading} 90.4575
create_random_car_for_car_park 2095.8181 {y} 2398.686 {z} 44.2188 {heading} 268.2181
create_random_car_for_car_park 2104.8589 {y} 2416.439 {z} 44.2188 {heading} 270.7819
8@ = 1

:CARPRK1_2396
goto @CARPRK1_2460

:CARPRK1_2403
if 
  8@ == 1
goto_if_false @CARPRK1_2460
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 44.2188 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 48.5234
8@ = 0

:CARPRK1_2460
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 44.5234 {rightTopX} 2119.283 {rightTopY} 2441.002 {rightTopZ} 55.9123 {drawSphere} False
goto_if_false @CARPRK1_2672
if 
  9@ == 0
goto_if_false @CARPRK1_2665
create_random_car_for_car_park 2104.5371 {y} 2412.3 {z} 48.5234 {heading} 89.9851
create_random_car_for_car_park 2095.321 {y} 2398.5591 {z} 48.5234 {heading} 90.1384
create_random_car_for_car_park 2087.071 {y} 2405.5249 {z} 48.5234 {heading} 267.6596
create_random_car_for_car_park 2087.187 {y} 2420.887 {z} 48.5234 {heading} 90.4995
create_random_car_for_car_park 2078.3601 {y} 2410.1389 {z} 48.5234 {heading} 270.9704
create_random_car_for_car_park 2069.168 {y} 2396.7781 {z} 48.5234 {heading} 98.3338
9@ = 1

:CARPRK1_2665
goto @CARPRK1_2729

:CARPRK1_2672
if 
  9@ == 1
goto_if_false @CARPRK1_2729
clear_area_of_cars 2052.4319 {leftBottomY} 2366.1521 {leftBottomZ} 48.5234 {rightTopX} 2117.283 {rightTopY} 2441.002 {rightTopZ} 52.9123
9@ = 0

:CARPRK1_2729
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 2037.536 {leftBottomY} 2365.373 {rightTopX} 2119.8999 {rightTopY} 2483.9221 {drawSphere} False
goto_if_false @CARPRK1_2769
terminate_this_script 

:CARPRK1_2769
goto @CARPRK1_85
terminate_this_script 

//-------------External script 71 (IMPOUND)---------------

:IMPND
script_name 'IMPND'
$player_is_threat[0] = 0
$player_is_threat[1] = 0
$player_is_threat[2] = 0
$player_is_threat[3] = 0
$player_is_threat[4] = 0
$player_is_threat[5] = 0
$player_is_threat[6] = 0
$player_is_threat[7] = 0
$10559 = 1540.632
$10563 = -1603.163
$10567 = 17.6564
$10571 = 1607.27
$10575 = -1637.528
$10579 = 12.774
$10583 = 1613.319
$10587 = -1633.6121
$10591 = 12.077
$10595 = 1522.73
$10599 = -1721.3979
$10603 = 4.2191
$10560 = -1572.807
$10564 = 646.8937
$10568 = 10.5019
$10572 = -1641.4091
$10576 = 687.6273
$10580 = 4.8704
$10584 = -1700.933
$10588 = 680.025
$10592 = 27.7313
$10596 = -1638.9821
$10600 = 699.3646
$10604 = 5.0489
$10561 = 2238.01
$10565 = 2430.8911
$10569 = 11.764
$10573 = 2304.2891
$10577 = 2502.322
$10581 = -9.0538
$10585 = 2238.01
$10589 = 2430.8911
$10593 = 11.764
$10597 = 2304.2891
$10601 = 2502.322
$10605 = -9.0538
$imp_barrier_x1[1] = 1544.691
$imp_barrier_y1[1] = -1630.75
$imp_barrier_z1[1] = 13.043
$imp_barrier_h1[1] = 0.0
$imp_barrier_x2[1] = 0.0
$imp_barrier_y2[1] = 0.0
$imp_barrier_z2[1] = 0.0
$imp_barrier_h2[1] = 0.0
$imp_barrier_x1[2] = -1572.203
$imp_barrier_y1[2] = 658.7618
$imp_barrier_z1[2] = 6.8916
$imp_barrier_h1[2] = 0.0
$imp_barrier_x2[2] = -1701.4301
$imp_barrier_y2[2] = 687.7184
$imp_barrier_z2[2] = 24.6525
$imp_barrier_h2[2] = 180.0
$imp_barrier_x1[3] = 2238.199
$imp_barrier_y1[3] = 2450.3391
$imp_barrier_z1[3] = 10.5829
$imp_barrier_h1[3] = 0.0
$imp_barrier_x2[3] = 0.0
$imp_barrier_y2[3] = 0.0
$imp_barrier_z2[3] = 0.0
$imp_barrier_h2[3] = 0.0
$imp_shutter_x1[1] = 1588.5031
$imp_shutter_y1[1] = -1637.8719
$imp_shutter_z1[1] = 14.5641
$imp_shutter_h1[1] = 0.0
$imp_shutter_x2[1] = 0.0
$imp_shutter_y2[1] = 0.0
$imp_shutter_z2[1] = 0.0
$imp_shutter_h2[1] = 0.0
$imp_shutter_x1[2] = -1631.767
$imp_shutter_y1[2] = 688.4075
$imp_shutter_z1[2] = 8.5436
$imp_shutter_h1[2] = 90.0
$imp_shutter_x2[2] = 0.0
$imp_shutter_y2[2] = 0.0
$imp_shutter_z2[2] = 0.0
$imp_shutter_h2[2] = 0.0
$imp_shutter_x1[3] = 2293.8301
$imp_shutter_y1[3] = 2498.804
$imp_shutter_z1[3] = 4.4414
$imp_shutter_h1[3] = 90.0
$imp_shutter_x2[3] = 2335.178
$imp_shutter_y2[3] = 2443.6211
$imp_shutter_z2[3] = 6.9743
$imp_shutter_h2[3] = 59.9993
$door_control = 0
$10731 = 0
$10732 = 0
$10733 = 0
if 
  8@ == 90
goto_if_false @IMPND_1039
9@ = create_object #POLICE_BARRIER {x} 0.0 {y} 0.0 {z} 0.0
6@ = create_object #KMB_SHUTTER {x} 0.0 {y} 0.0 {z} 0.0
24@ = create_random_char 0.0 {y} 0.0 {z} 0.0
19@ = create_random_char 0.0 {y} 0.0 {z} 0.0

:IMPND_1039
wait 0
if 
  is_player_playing $player1
goto_if_false @IMPND_4118
if 
  0@ == 0
goto_if_false @IMPND_2453
if 
  1@ == 0
goto_if_false @IMPND_1289
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_1144
request_model 280
request_model 346
request_model 596
set_var_int_to_constant $cop_model = 280
set_var_int_to_constant $car_model = 596

:IMPND_1144
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_1193
request_model 281
request_model 346
request_model 597
set_var_int_to_constant $cop_model = 281
set_var_int_to_constant $car_model = 597

:IMPND_1193
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_1242
request_model 282
request_model 346
request_model 598
set_var_int_to_constant $cop_model = 282
set_var_int_to_constant $car_model = 598

:IMPND_1242
if 
  $onmission == 0
goto_if_false @IMPND_1282
22@ = 1
request_model #POLICE_BARRIER
request_model #SFCOPDR
request_model #KMB_SHUTTER

:IMPND_1282
1@ = 2

:IMPND_1289
if 
  1@ == 2
goto_if_false @IMPND_2453
if and
  has_model_loaded $cop_model
  has_model_loaded 346
  has_model_loaded $car_model
goto_if_false @IMPND_2453
1@ = 0
if 
  $onmission <> 1
goto_if_false @IMPND_1358

:IMPND_1358
2@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
add_char_decision_maker_event_response 2@ {event} Event.ShotFired {taskId} TaskId.SimpleLookAtEntityOrCoord {respect} 100.0 {hate} 100.0 {like} 100.0 {dislike} 0.0 {inCar} False {onFoot} True
9@ = create_object_no_offset #POLICE_BARRIER {x} $imp_barrier_x1($impound_area,4f) {y} $imp_barrier_y1($impound_area,4f) {z} $imp_barrier_z1($impound_area,4f)
set_object_rotation 9@ {x} -90.0 {y} 0.0 {z} $imp_barrier_h1($impound_area,4f)
if 
  $imp_barrier_x2($impound_area,4f) <> 0.0
goto_if_false @IMPND_1529
10@ = create_object_no_offset #POLICE_BARRIER {x} $imp_barrier_x2($impound_area,4f) {y} $imp_barrier_y2($impound_area,4f) {z} $imp_barrier_z2($impound_area,4f)
set_object_rotation 10@ {x} -90.0 {y} 0.0 {z} $imp_barrier_h2($impound_area,4f)

:IMPND_1529
if 
  $impound_area == 2
goto_if_false @IMPND_1562
11@ = -388
goto @IMPND_1570

:IMPND_1562
11@ = -387

:IMPND_1570
6@ = create_object_no_offset 11@ {x} $imp_shutter_x1($impound_area,4f) {y} $imp_shutter_y1($impound_area,4f) {z} $imp_shutter_z1($impound_area,4f)
set_object_rotation 6@ {x} 0.0 {y} 0.0 {z} $imp_shutter_h1($impound_area,4f)
if 
  $imp_shutter_x2($impound_area,4f) <> 0.0
goto_if_false @IMPND_1697
7@ = create_object_no_offset 11@ {x} $imp_shutter_x2($impound_area,4f) {y} $imp_shutter_y2($impound_area,4f) {z} $imp_shutter_z2($impound_area,4f)
set_object_rotation 7@ {x} 0.0 {y} 0.0 {z} $imp_shutter_h2($impound_area,4f)

:IMPND_1697
if 
  $impound_area == 1
goto_if_false @IMPND_1885
$imp_cop[0] = create_char PedType.Mission1 {modelId} $cop_model {x} 1544.3831 {y} -1631.849 {z} 12.3905
set_char_heading $imp_cop[0] {heading} 45.0
$imp_cop[2] = create_char PedType.Mission1 {modelId} $cop_model {x} 1578.957 {y} -1634.127 {z} 12.5547
set_char_heading $imp_cop[2] {heading} 0.0
$cop_x = 1544.3831
$cop_y = -1631.849
$cop_z = 12.3905
$cop_h = 45.0
$10672 = 1544.3831
$10682 = 1578.957
$10692 = -1634.127
$10702 = 12.554
$door_rotation = -90.0
$10736 = 0.0

:IMPND_1885
if 
  $impound_area == 2
goto_if_false @IMPND_2158
$imp_cop[1] = create_char PedType.Mission1 {modelId} $cop_model {x} -1700.839 {y} 688.9841 {z} 23.9032
set_char_heading $imp_cop[1] {heading} 134.0
$imp_cop[0] = create_char PedType.Mission1 {modelId} $cop_model {x} -1572.705 {y} 657.5745 {z} 6.2446
set_char_heading $imp_cop[0] {heading} 304.0
$imp_cop[2] = create_char PedType.Mission1 {modelId} $cop_model {x} -1616.822 {y} 679.9485 {z} 6.1901
set_char_heading $imp_cop[2] {heading} 188.0
$cop_x = -1572.705
$cop_y = 657.5745
$cop_z = 6.2446
$cop_h = 304.0
$10671 = -1700.839
$10681 = 688.9841
$10691 = 23.9032
$10701 = 134.0
$10672 = -1616.822
$10682 = 679.9485
$10692 = 6.1901
$10702 = 188.0
$door_rotation = -90.0
$10735 = -90.0
$10736 = 0.0

:IMPND_2158
if 
  $impound_area == 3
goto_if_false @IMPND_2326
$imp_cop[0] = create_char PedType.Mission1 {modelId} $cop_model {x} 2238.5691 {y} 2449.417 {z} 10.0372
set_char_heading $imp_cop[0] {heading} 90.0
$imp_cop[2] = create_char PedType.Mission1 {modelId} $cop_model {x} 2250.2771 {y} 2489.333 {z} 9.8203
set_char_heading $imp_cop[2] {heading} 90.0
$cop_x = 2238.5691
$cop_y = 2449.417
$cop_z = 10.0372
$cop_h = 90.0
$10672 = 2250.2771
$10682 = 2489.333
$10692 = 9.8203
$10702 = 90.0

:IMPND_2326
12@ = 0

:IMPND_2333
if 
  3 > 12@
goto_if_false @IMPND_2446
if 
  not is_char_dead $imp_cop(12@,8i)
goto_if_false @IMPND_2432
set_char_decision_maker $imp_cop(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $imp_cop(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $imp_cop(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1
$cop_task_flag(12@,8i) = 0
$last_cop_task(12@,8i) = 5

:IMPND_2432
12@ += 1
goto @IMPND_2333

:IMPND_2446
0@ = 2

:IMPND_2453
if 
  0@ == 2
goto_if_false @IMPND_4111
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
gosub @IMPND_5547
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 4@
goto_if_false @IMPND_2583
set_lvar_int_to_lvar_int 4@ = TIMERA
4@ += 90
gosub @IMPND_21068
if 
  $impound_cops_created == 0
goto_if_false @IMPND_2583
if 
  $player_in_impound == 1
goto_if_false @IMPND_2583
$impound_cops_created = 1
gosub @IMPND_4150

:IMPND_2583
if 
  $onmission == 1
goto_if_false @IMPND_2641
if 
  22@ == 1
goto_if_false @IMPND_2641
22@ = 0
mark_model_as_no_longer_needed #POLICE_BARRIER
mark_model_as_no_longer_needed #SFCOPDR
mark_model_as_no_longer_needed #KMB_SHUTTER

:IMPND_2641
if 
  20@ == 1
goto_if_false @IMPND_2754
clear_mission_audio MissionAudioSlot.Slot4
8@ = generate_random_int_in_range 0 {max} 4
if 
  8@ == 0
goto_if_false @IMPND_2697
load_mission_audio MissionAudioSlot.Slot4 {audioId} 10204

:IMPND_2697
if 
  8@ == 1
goto_if_false @IMPND_2722
load_mission_audio MissionAudioSlot.Slot4 {audioId} 10205

:IMPND_2722
if 
  8@ == 2
goto_if_false @IMPND_2747
load_mission_audio MissionAudioSlot.Slot4 {audioId} 10206

:IMPND_2747
20@ = 2

:IMPND_2754
if 
  20@ == 2
goto_if_false @IMPND_2851
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @IMPND_2851
if 
  not is_char_dead 19@
goto_if_false @IMPND_2851
attach_mission_audio_to_char MissionAudioSlot.Slot4 {handle} 19@
shut_char_up 19@ {state} True
disable_char_speech 19@ {stopNow} True
play_mission_audio MissionAudioSlot.Slot4
20@ = 3
set_lvar_int_to_lvar_int 21@ = TIMERA
21@ += 10000

:IMPND_2851
if 
  20@ == 3
goto_if_false @IMPND_2925
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 21@
goto_if_false @IMPND_2925
20@ = 0
if 
  not is_char_dead 19@
goto_if_false @IMPND_2925
shut_char_up 19@ {state} False
disable_char_speech 19@ {stopNow} False

:IMPND_2925
if 
  20@ == 4
goto_if_false @IMPND_3038
clear_mission_audio MissionAudioSlot.Slot4
8@ = generate_random_int_in_range 0 {max} 4
if 
  8@ == 0
goto_if_false @IMPND_2981
load_mission_audio MissionAudioSlot.Slot4 {audioId} 10200

:IMPND_2981
if 
  8@ == 1
goto_if_false @IMPND_3006
load_mission_audio MissionAudioSlot.Slot4 {audioId} 10201

:IMPND_3006
if 
  8@ == 2
goto_if_false @IMPND_3031
load_mission_audio MissionAudioSlot.Slot4 {audioId} 10202

:IMPND_3031
20@ = 2

:IMPND_3038
if 
  20@ == 5
goto_if_false @IMPND_3076
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 36000
20@ = 2

:IMPND_3076
if 
  $alarm_on == 1
goto_if_false @IMPND_3407
if 
  has_mission_audio_finished MissionAudioSlot.Slot4
goto_if_false @IMPND_3407
if 
  has_mission_audio_loaded MissionAudioSlot.Slot4
goto_if_false @IMPND_3407
if 
  $impound_area == 1
goto_if_false @IMPND_3199
attach_mission_audio_to_object MissionAudioSlot.Slot4 {handle} 6@
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 1589.0601 {y} -1694.729 {z} 10.4887
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 1541.5129 {y} -1685.943 {z} 10.1571
play_mission_audio MissionAudioSlot.Slot4

:IMPND_3199
if 
  $impound_area == 2
goto_if_false @IMPND_3297
attach_mission_audio_to_object MissionAudioSlot.Slot4 {handle} 6@
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} -1619.873 {y} 742.786 {z} -2.1389
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} -1594.0959 {y} 716.011 {z} -3.1454
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} -1605.5179 {y} 672.6205 {z} -3.2395
play_mission_audio MissionAudioSlot.Slot4

:IMPND_3297
if 
  $impound_area == 3
goto_if_false @IMPND_3407
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2296.4331 {y} 2444.2949 {z} 7.0111
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2255.4041 {y} 2446.676 {z} 5.6601
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2243.1069 {y} 2498.2251 {z} 8.5154
play_mission_audio MissionAudioSlot.Slot4
set_mission_audio_position MissionAudioSlot.Slot4 {x} 2296.927 {y} 2492.9021 {z} 0.2841
play_mission_audio MissionAudioSlot.Slot4

:IMPND_3407
16@ = 0

:IMPND_3414
if 
  8 > 16@
goto_if_false @IMPND_3682
if 
  not is_char_dead $imp_cop(16@,8i)
goto_if_false @IMPND_3668
if 
  0 <= $cop_event(16@,8i)
goto_if_false @IMPND_3668
get_char_highest_priority_event $imp_cop(16@,8i) {var_event} $cop_event(16@,8i)
if 
  $cop_event(16@,8i) <> 0
goto_if_false @IMPND_3668
if or
  is_int_var_equal_to_constant $cop_event(16@,8i) == 15
  is_int_var_equal_to_constant $cop_event(16@,8i) == 49
  is_int_var_equal_to_constant $cop_event(16@,8i) == 9
goto_if_false @IMPND_3581
$cop_event(16@,8i) = -2
$last_player_x, $last_player_y, $last_player_z = get_char_coordinates $scplayer

:IMPND_3581
if 
  is_int_var_equal_to_constant $cop_event(16@,8i) == 62
goto_if_false @IMPND_3668
if 
  locate_char_any_means_char_3d $imp_cop(16@,8i) {target} $scplayer {xRadius} 5.0 {yRadius} 5.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @IMPND_3668
$cop_event(16@,8i) = -1
$last_player_x, $last_player_y, $last_player_z = get_char_coordinates $scplayer

:IMPND_3668
16@ += 1
goto @IMPND_3414

:IMPND_3682
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 3@
goto_if_false @IMPND_3892
set_lvar_int_to_lvar_int 3@ = TIMERA
3@ += 100
if 
  not is_char_dead $imp_cop(12@,8i)
goto_if_false @IMPND_3794
$i_see_you = 0
23@ = 0
set_lvar_int_to_var_int 13@ = $last_cop_task(12@,8i)
gosub @IMPND_21725
gosub @IMPND_10480
$cop_event(12@,8i) = 0
goto @IMPND_3860

:IMPND_3794
if 
  is_int_lvar_equal_to_int_var 19@ == $imp_cop(12@,8i)
goto_if_false @IMPND_3860
if and
  20@ <> 0
  $alarm_on == 0
goto_if_false @IMPND_3846
clear_mission_audio MissionAudioSlot.Slot4

:IMPND_3846
20@ = 0
19@ = 0

:IMPND_3860
12@ += 1
if 
  12@ > 7
goto_if_false @IMPND_3892
12@ = 0

:IMPND_3892
if 
  is_int_var_equal_to_constant $im_players_city == 1
goto_if_false @IMPND_3965
if 
  not locate_char_any_means_3d $scplayer {x} 1579.425 {y} -1636.463 {z} 14.5812 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_3965
gosub @IMPND_22003

:IMPND_3965
if 
  is_int_var_equal_to_constant $im_players_city == 2
goto_if_false @IMPND_4038
if 
  not locate_char_any_means_3d $scplayer {x} -1624.771 {y} 679.6637 {z} 8.569 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_4038
gosub @IMPND_22003

:IMPND_4038
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @IMPND_4111
if 
  not locate_char_any_means_3d $scplayer {x} 2284.592 {y} 2466.8379 {z} 12.2306 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 80.0 {drawSphere} False
goto_if_false @IMPND_4111
gosub @IMPND_22003

:IMPND_4111
goto @IMPND_4143

:IMPND_4118
if 
  0@ == 2
goto_if_false @IMPND_4143
gosub @IMPND_22003

:IMPND_4143
goto @IMPND_1039

:IMPND_4150
if 
  $impound_area == 3
goto_if_false @IMPND_4580
$cop_car[0] = create_car $car_model {x} 2285.502 {y} 2473.748 {z} 2.266
$cop_car[1] = create_car $car_model {x} 2314.3579 {y} 2475.845 {z} 2.266
$cop_car[2] = create_car $car_model {x} 2240.9709 {y} 2476.4851 {z} -8.4476
$cop_car[3] = create_car $car_model {x} 2303.053 {y} 2431.7119 {z} -8.4531
set_car_heading $cop_car[0] {heading} 179.4722
set_car_heading $cop_car[1] {heading} 268.529
set_car_heading $cop_car[2] {heading} 92.5631
set_car_heading $cop_car[3] {heading} 180.0971
lock_car_doors $cop_car[0] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $cop_car[1] {lockStatus} CarLock.Unlocked
lock_car_doors $cop_car[2] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $cop_car[3] {lockStatus} CarLock.Unlocked
$imp_cop[3] = create_char_inside_car $cop_car[0] {pedType} PedType.Mission1 {modelId} $cop_model
$imp_cop[4] = create_char_as_passenger $cop_car[0] {pedType} PedType.Mission1 {modelId} $cop_model {seat} SeatId.BikeRear
$imp_cop[5] = create_char PedType.Mission1 {modelId} $cop_model {x} 2278.1001 {y} 2425.4529 {z} 2.4766
$imp_cop[6] = create_char PedType.Mission1 {modelId} $cop_model {x} 2268.906 {y} 2449.2461 {z} -8.1953
set_char_heading $imp_cop[5] {heading} 187.5721
set_char_heading $imp_cop[6] {heading} 228.3262
$last_cop_task[3] = 5
$last_cop_task[4] = 5
$last_cop_task[5] = 5
$last_cop_task[6] = 5
$cop_task_flag[3] = 0
$cop_task_flag[4] = 0
$cop_task_flag[5] = 0
$cop_task_flag[6] = 0
12@ = 3

:IMPND_4489
if 
  7 > 12@
goto_if_false @IMPND_4580
if 
  not is_char_dead $imp_cop(12@,8i)
goto_if_false @IMPND_4566
set_char_decision_maker $imp_cop(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $imp_cop(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $imp_cop(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1

:IMPND_4566
12@ += 1
goto @IMPND_4489

:IMPND_4580
if 
  $impound_area == 2
goto_if_false @IMPND_5017
$cop_car[0] = create_car $car_model {x} -1600.142 {y} 748.2594 {z} -6.2344
$cop_car[1] = create_car $car_model {x} -1616.233 {y} 691.9449 {z} -6.2422
$cop_car[2] = create_car $car_model {x} -1574.061 {y} 717.9744 {z} -6.2344
$cop_car[3] = create_car $car_model {x} -1574.3051 {y} 726.8611 {z} -6.2344
set_car_heading $cop_car[0] {heading} 359.8067
set_car_heading $cop_car[1] {heading} 358.8804
set_car_heading $cop_car[2] {heading} 268.0333
set_car_heading $cop_car[3] {heading} 268.3534
lock_car_doors $cop_car[0] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $cop_car[1] {lockStatus} CarLock.Unlocked
lock_car_doors $cop_car[2] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $cop_car[3] {lockStatus} CarLock.Unlocked
$imp_cop[3] = create_char_inside_car $cop_car[0] {pedType} PedType.Mission1 {modelId} $cop_model
$imp_cop[4] = create_char_as_passenger $cop_car[0] {pedType} PedType.Mission1 {modelId} $cop_model {seat} SeatId.BikeRear
$imp_cop[5] = create_char PedType.Mission1 {modelId} $cop_model {x} -1606.067 {y} 701.3859 {z} -5.9062
$imp_cop[6] = create_char PedType.Mission1 {modelId} $cop_model {x} -1615.934 {y} 695.0814 {z} -6.2422
set_char_heading $imp_cop[5] {heading} 270.5721
set_char_heading $imp_cop[6] {heading} 180.3262
$last_cop_task[3] = 5
$last_cop_task[4] = 5
$last_cop_task[5] = 5
$last_cop_task[6] = 5
$cop_task_flag[3] = 0
$cop_task_flag[4] = 0
$cop_task_flag[5] = 0
$cop_task_flag[6] = 0
12@ = 3

:IMPND_4919
if 
  8 > 12@
goto_if_false @IMPND_5010
if 
  not is_char_dead $imp_cop(12@,8i)
goto_if_false @IMPND_4996
set_char_decision_maker $imp_cop(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $imp_cop(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $imp_cop(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1

:IMPND_4996
12@ += 1
goto @IMPND_4919

:IMPND_5010
12@ = 0

:IMPND_5017
if 
  $impound_area == 1
goto_if_false @IMPND_5545
$cop_car[0] = create_car $car_model {x} 1586.254 {y} -1671.7321 {z} 4.8916
$cop_car[1] = create_car $car_model {x} 1601.52 {y} -1699.925 {z} 4.8984
$cop_car[2] = create_car $car_model {x} 1565.429 {y} -1710.8101 {z} 4.8984
$cop_car[3] = create_car $car_model {x} 1529.675 {y} -1688.105 {z} 4.897
set_car_heading $cop_car[0] {heading} 90.8726
set_car_heading $cop_car[1] {heading} 268.6337
set_car_heading $cop_car[2] {heading} 177.2788
set_car_heading $cop_car[3] {heading} 270.141
lock_car_doors $cop_car[0] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $cop_car[1] {lockStatus} CarLock.Unlocked
lock_car_doors $cop_car[2] {lockStatus} CarLock.LockoutPlayerOnly
lock_car_doors $cop_car[3] {lockStatus} CarLock.Unlocked
$imp_cop[3] = create_char_inside_car $cop_car[0] {pedType} PedType.Mission1 {modelId} $cop_model
$imp_cop[4] = create_char_as_passenger $cop_car[0] {pedType} PedType.Mission1 {modelId} $cop_model {seat} SeatId.BikeRear
$imp_cop[5] = create_char PedType.Mission1 {modelId} $cop_model {x} 1527.145 {y} -1675.299 {z} 4.8984
$imp_cop[6] = create_char PedType.Mission1 {modelId} $cop_model {x} 1603.7111 {y} -1714.2939 {z} 5.2187
$imp_cop[1] = create_char PedType.Mission1 {modelId} $cop_model {x} 1608.285 {y} -1715.7791 {z} 5.2187
$imp_cop[7] = create_char PedType.Mission1 {modelId} $cop_model {x} 1532.631 {y} -1688.01 {z} 4.8984
set_char_heading $imp_cop[5] {heading} 90.5721
set_char_heading $imp_cop[6] {heading} 242.3262
set_char_heading $imp_cop[1] {heading} 225.3262
set_char_heading $imp_cop[7] {heading} 90.3262
$last_cop_task[1] = 5
$last_cop_task[3] = 5
$last_cop_task[4] = 5
$last_cop_task[5] = 5
$last_cop_task[6] = 5
$last_cop_task[7] = 5
$cop_task_flag[3] = 0
$cop_task_flag[4] = 0
$cop_task_flag[5] = 0
$cop_task_flag[6] = 0
$cop_task_flag[7] = 0
12@ = 0

:IMPND_5447
if 
  8 > 12@
goto_if_false @IMPND_5538
if 
  not is_char_dead $imp_cop(12@,8i)
goto_if_false @IMPND_5524
set_char_decision_maker $imp_cop(12@,8i) {handleOrTemplate} 2@
give_weapon_to_char $imp_cop(12@,8i) {weaponType} WeaponType.Pistol {ammo} 9999
set_char_relationship $imp_cop(12@,8i) {relationshipType} RelationshipType.Dislike {pedType} PedType.Player1

:IMPND_5524
12@ += 1
goto @IMPND_5447

:IMPND_5538
12@ = 0

:IMPND_5545
return 

:IMPND_5547
if 
  $impound_area == 1
goto_if_false @IMPND_6873
switch_start $door_control {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_6147 {caseNum1} 0 {caseLabel1} @IMPND_5628 {caseNum2} 1 {caseLabel2} @IMPND_5887 {caseNum3} 2 {caseLabel3} @IMPND_5950 {caseNum4} 3 {caseLabel4} @IMPND_6017 {caseNum5} -1 {caseLabel5} @IMPND_6147 {caseNum6} -1 {caseLabel6} @IMPND_6147 {caseNum7} -1 {caseLabel7} @IMPND_6147

:IMPND_5628
if 
  $player_is_threat[0] == 0
goto_if_false @IMPND_5801
if 
  is_cop_vehicle_in_area_3d_no_save 1554.3199 {leftBottomY} -1632.6689 {leftBottomZ} 13.9475 {rightTopX} 1535.271 {rightTopY} -1620.762 {rightTopZ} 11.8805
goto_if_false @IMPND_5801
if 
  not is_char_dead $imp_cop[0]
goto_if_false @IMPND_5801
if 
  is_char_in_area_2d $imp_cop[0] {leftBottomX} 1543.595 {leftBottomY} -1631.2791 {rightTopX} 1545.022 {rightTopY} -1632.704 {drawSphere} False
goto_if_false @IMPND_5801
$door_control = 1
if 
  $alarm_on == 0
goto_if_false @IMPND_5801
if 
  20@ == 0
goto_if_false @IMPND_5801
20@ = 1
set_lvar_int_to_var_int 19@ = $imp_cop[0]

:IMPND_5801
if 
  $activate_doors == 1
goto_if_false @IMPND_5880
if 
  not is_car_dead $cop_car[1]
goto_if_false @IMPND_5880
if 
  is_car_in_area_2d $cop_car[1] {leftBottomX} 1544.988 {leftBottomY} -1622.29 {rightTopX} 1556.178 {rightTopY} -1632.62 {drawSphere} False
goto_if_false @IMPND_5880
$door_control = 1

:IMPND_5880
goto @IMPND_6147

:IMPND_5887
$door_rotation += 0.5
set_object_rotation 9@ {x} $door_rotation {y} 0.0 {z} 0.0
if 
  $door_rotation >= 0.0
goto_if_false @IMPND_5943
$door_control = 2

:IMPND_5943
goto @IMPND_6147

:IMPND_5950
if 
  not is_area_occupied 1554.3199 {leftBottomY} -1632.6689 {leftBottomZ} 13.9475 {rightTopX} 1535.271 {rightTopY} -1620.762 {rightTopZ} 11.8805 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6010
$door_control = 3

:IMPND_6010
goto @IMPND_6147

:IMPND_6017
if 
  is_area_occupied 1540.938 {leftBottomY} -1623.681 {leftBottomZ} 14.3551 {rightTopX} 1550.887 {rightTopY} -1631.6479 {rightTopZ} 12.1949 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6084
$door_control = 1
goto @IMPND_6140

:IMPND_6084
$door_rotation -= 0.5
set_object_rotation 9@ {x} $door_rotation {y} 0.0 {z} 0.0
if 
  -90.0 >= $door_rotation
goto_if_false @IMPND_6140
$door_control = 0

:IMPND_6140
goto @IMPND_6147

:IMPND_6147
switch_start $10732 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_6873 {caseNum1} 0 {caseLabel1} @IMPND_6210 {caseNum2} 1 {caseLabel2} @IMPND_6484 {caseNum3} 2 {caseLabel3} @IMPND_6611 {caseNum4} 3 {caseLabel4} @IMPND_6686 {caseNum5} -1 {caseLabel5} @IMPND_6873 {caseNum6} -1 {caseLabel6} @IMPND_6873 {caseNum7} -1 {caseLabel7} @IMPND_6873

:IMPND_6210
if 
  $player_in_impound == 1
goto_if_false @IMPND_6409
if 
  is_cop_vehicle_in_area_3d_no_save 1592.251 {leftBottomY} -1637.59 {leftBottomZ} 17.1898 {rightTopX} 1578.344 {rightTopY} -1624.2729 {rightTopZ} 11.9866
goto_if_false @IMPND_6409
if 
  $player_is_threat[2] == 0
goto_if_false @IMPND_6409
if 
  not is_char_dead $imp_cop[2]
goto_if_false @IMPND_6409
if 
  is_char_in_area_2d $imp_cop[2] {leftBottomX} 1582.153 {leftBottomY} -1637.67 {rightTopX} 1577.585 {rightTopY} -1633.235 {drawSphere} False
goto_if_false @IMPND_6409
$10732 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart
if 
  $alarm_on == 0
goto_if_false @IMPND_6409
if 
  20@ == 0
goto_if_false @IMPND_6409
20@ = 1
set_lvar_int_to_var_int 19@ = $imp_cop[2]

:IMPND_6409
if 
  is_area_occupied 1581.7321 {leftBottomY} -1639.463 {leftBottomZ} 16.4817 {rightTopX} 1599.936 {rightTopY} -1652.072 {rightTopZ} 7.8825 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6477
$10732 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_6477
goto @IMPND_6873

:IMPND_6484
$x, $y, $10740 = get_object_coordinates 6@
$10740 += 0.0173
$10736 += 0.9
if 
  $10740 >= 16.425
goto_if_false @IMPND_6574
$10732 = 2
$10740 = 16.425
$10736 = 90.0
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_6574
set_object_coordinates 6@ {x} $x {y} $y {z} $10740
set_object_rotation 6@ {x} $10736 {y} 0.0 {z} $imp_shutter_h1[1]
goto @IMPND_6873

:IMPND_6611
if 
  not is_area_occupied 1602.079 {leftBottomY} -1655.913 {leftBottomZ} 6.5685 {rightTopX} 1582.7791 {rightTopY} -1631.262 {rightTopZ} 17.1606 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6679
$10732 = 3
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_6679
goto @IMPND_6873

:IMPND_6686
$x, $y, $10740 = get_object_coordinates 6@
$10740 -= 0.0155
$10736 -= 0.9
if 
  14.5641 >= $10740
goto_if_false @IMPND_6776
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop
$10732 = 0
$10736 = 0.0
$10740 = 14.5641

:IMPND_6776
set_object_coordinates 6@ {x} $x {y} $y {z} $10740
set_object_rotation 6@ {x} $10736 {y} 0.0 {z} $imp_shutter_h1[1]
if 
  is_area_occupied 1602.079 {leftBottomY} -1655.913 {leftBottomZ} 6.5685 {rightTopX} 1582.7791 {rightTopY} -1631.262 {rightTopZ} 17.1606 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_6866
$10732 = 1

:IMPND_6866
goto @IMPND_6873

:IMPND_6873
if 
  $impound_area == 2
goto_if_false @IMPND_8639
switch_start $door_control {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_7394 {caseNum1} 0 {caseLabel1} @IMPND_6954 {caseNum2} 1 {caseLabel2} @IMPND_7134 {caseNum3} 2 {caseLabel3} @IMPND_7197 {caseNum4} 3 {caseLabel4} @IMPND_7264 {caseNum5} -1 {caseLabel5} @IMPND_7394 {caseNum6} -1 {caseLabel6} @IMPND_7394 {caseNum7} -1 {caseLabel7} @IMPND_7394

:IMPND_6954
if 
  $player_is_threat[0] == 0
goto_if_false @IMPND_7127
if 
  is_cop_vehicle_in_area_3d_no_save -1566.137 {leftBottomY} 666.7503 {leftBottomZ} 5.775 {rightTopX} -1577.6021 {rightTopY} 658.2418 {rightTopZ} 9.2455
goto_if_false @IMPND_7127
if 
  not is_char_dead $imp_cop[0]
goto_if_false @IMPND_7127
if 
  is_char_in_area_2d $imp_cop[0] {leftBottomX} -1573.406 {leftBottomY} 656.8607 {rightTopX} -1572.033 {rightTopY} 658.196 {drawSphere} False
goto_if_false @IMPND_7076
$door_control = 1

:IMPND_7076
if 
  $alarm_on == 0
goto_if_false @IMPND_7127
if 
  20@ == 0
goto_if_false @IMPND_7127
20@ = 1
set_lvar_int_to_var_int 19@ = $imp_cop[0]

:IMPND_7127
goto @IMPND_7394

:IMPND_7134
$door_rotation += 0.5
set_object_rotation 9@ {x} $door_rotation {y} 0.0 {z} 0.0
if 
  $door_rotation >= 0.0
goto_if_false @IMPND_7190
$door_control = 2

:IMPND_7190
goto @IMPND_7394

:IMPND_7197
if 
  not is_area_occupied -1566.137 {leftBottomY} 666.7503 {leftBottomZ} 5.775 {rightTopX} -1577.6021 {rightTopY} 658.2418 {rightTopZ} 9.2455 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7257
$door_control = 3

:IMPND_7257
goto @IMPND_7394

:IMPND_7264
if 
  is_area_occupied -1566.137 {leftBottomY} 666.7503 {leftBottomZ} 5.775 {rightTopX} -1577.6021 {rightTopY} 658.2418 {rightTopZ} 9.2455 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7331
$door_control = 1
goto @IMPND_7387

:IMPND_7331
$door_rotation -= 0.5
set_object_rotation 9@ {x} $door_rotation {y} 0.0 {z} 0.0
if 
  -90.0 >= $door_rotation
goto_if_false @IMPND_7387
$door_control = 0

:IMPND_7387
goto @IMPND_7394

:IMPND_7394
switch_start $10731 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_7897 {caseNum1} 0 {caseLabel1} @IMPND_7457 {caseNum2} 1 {caseLabel2} @IMPND_7637 {caseNum3} 2 {caseLabel3} @IMPND_7700 {caseNum4} 3 {caseLabel4} @IMPND_7767 {caseNum5} -1 {caseLabel5} @IMPND_7897 {caseNum6} -1 {caseLabel6} @IMPND_7897 {caseNum7} -1 {caseLabel7} @IMPND_7897

:IMPND_7457
if 
  $player_is_threat[1] == 0
goto_if_false @IMPND_7630
if 
  is_cop_vehicle_in_area_3d_no_save -1688.231 {leftBottomY} 679.8141 {leftBottomZ} 20.5924 {rightTopX} -1710.483 {rightTopY} 687.937 {rightTopZ} 28.4141
goto_if_false @IMPND_7630
if 
  not is_char_dead $imp_cop[1]
goto_if_false @IMPND_7630
if 
  is_char_in_area_2d $imp_cop[1] {leftBottomX} -1701.6479 {leftBottomY} 689.5652 {rightTopX} -1700.0861 {rightTopY} 688.274 {drawSphere} False
goto_if_false @IMPND_7579
$10731 = 1

:IMPND_7579
if 
  $alarm_on == 0
goto_if_false @IMPND_7630
if 
  20@ == 0
goto_if_false @IMPND_7630
20@ = 1
set_lvar_int_to_var_int 19@ = $imp_cop[1]

:IMPND_7630
goto @IMPND_7897

:IMPND_7637
$10735 += 0.5
set_object_rotation 10@ {x} $10735 {y} 0.0 {z} 180.0
if 
  $10735 >= 0.0
goto_if_false @IMPND_7693
$10731 = 2

:IMPND_7693
goto @IMPND_7897

:IMPND_7700
if 
  not is_area_occupied -1688.231 {leftBottomY} 679.8141 {leftBottomZ} 20.5924 {rightTopX} -1710.483 {rightTopY} 687.937 {rightTopZ} 28.4141 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7760
$10731 = 3

:IMPND_7760
goto @IMPND_7897

:IMPND_7767
if 
  is_area_occupied -1688.231 {leftBottomY} 679.8141 {leftBottomZ} 20.5924 {rightTopX} -1710.483 {rightTopY} 687.937 {rightTopZ} 28.4141 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_7834
$10731 = 1
goto @IMPND_7890

:IMPND_7834
$10735 -= 0.5
set_object_rotation 10@ {x} $10735 {y} 0.0 {z} 180.0
if 
  -90.0 >= $10735
goto_if_false @IMPND_7890
$10731 = 0

:IMPND_7890
goto @IMPND_7897

:IMPND_7897
switch_start $10732 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_8639 {caseNum1} 0 {caseLabel1} @IMPND_7960 {caseNum2} 1 {caseLabel2} @IMPND_8312 {caseNum3} 2 {caseLabel3} @IMPND_8403 {caseNum4} 3 {caseLabel4} @IMPND_8478 {caseNum5} -1 {caseLabel5} @IMPND_8639 {caseNum6} -1 {caseLabel6} @IMPND_8639 {caseNum7} -1 {caseLabel7} @IMPND_8639

:IMPND_7960
if 
  $player_in_impound == 1
goto_if_false @IMPND_8159
if 
  is_cop_vehicle_in_area_3d_no_save -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401
goto_if_false @IMPND_8159
if 
  $player_is_threat[2] == 0
goto_if_false @IMPND_8159
if 
  not is_char_dead $imp_cop[2]
goto_if_false @IMPND_8159
if 
  is_char_in_area_2d $imp_cop[2] {leftBottomX} -1613.2531 {leftBottomY} 679.4489 {rightTopX} -1618.76 {rightTopY} 688.0851 {drawSphere} False
goto_if_false @IMPND_8159
$10732 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart
if 
  $alarm_on == 0
goto_if_false @IMPND_8159
if 
  20@ == 0
goto_if_false @IMPND_8159
20@ = 1
set_lvar_int_to_var_int 19@ = $imp_cop[2]

:IMPND_8159
if 
  $activate_doors == 1
goto_if_false @IMPND_8245
if 
  is_area_occupied -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8245
$10732 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_8245
if 
  is_area_occupied -1620.061 {leftBottomY} 715.371 {leftBottomZ} -4.554 {rightTopX} -1640.881 {rightTopY} 691.9899 {rightTopZ} 11.1863 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8305
$10732 = 1

:IMPND_8305
goto @IMPND_8639

:IMPND_8312
$x, $y, $10740 = get_object_coordinates 6@
$10740 += 0.0155
if 
  $10740 >= 13.2513
goto_if_false @IMPND_8382
$10732 = 2
$10740 = 13.2513
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_8382
set_object_coordinates 6@ {x} $x {y} $y {z} $10740
goto @IMPND_8639

:IMPND_8403
if 
  not is_area_occupied -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8471
$10732 = 3
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_8471
goto @IMPND_8639

:IMPND_8478
$x, $y, $10740 = get_object_coordinates 6@
$10740 -= 0.0155
if 
  8.5436 >= $10740
goto_if_false @IMPND_8558
$10732 = 0
$10736 = 0.0
$10740 = 8.5436
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_8558
set_object_coordinates 6@ {x} $x {y} $y {z} $10740
if 
  is_area_occupied -1639.599 {leftBottomY} 674.9066 {leftBottomZ} 10.3898 {rightTopX} -1622.298 {rightTopY} 710.0969 {rightTopZ} 0.8401 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_8632
$10732 = 1

:IMPND_8632
goto @IMPND_8639

:IMPND_8639
if 
  $impound_area == 3
goto_if_false @IMPND_10478
switch_start $door_control {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_9276 {caseNum1} 0 {caseLabel1} @IMPND_8720 {caseNum2} 1 {caseLabel2} @IMPND_9016 {caseNum3} 2 {caseLabel3} @IMPND_9079 {caseNum4} 3 {caseLabel4} @IMPND_9146 {caseNum5} -1 {caseLabel5} @IMPND_9276 {caseNum6} -1 {caseLabel6} @IMPND_9276 {caseNum7} -1 {caseLabel7} @IMPND_9276

:IMPND_8720
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPND_8930
if 
  is_char_in_any_police_vehicle $scplayer
goto_if_false @IMPND_8930
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2250.323 {leftBottomY} 2449.5559 {leftBottomZ} 8.4616 {rightTopX} 2230.4109 {rightTopY} 2461.791 {rightTopZ} 17.8394 {drawSphere} False
goto_if_false @IMPND_8930
if 
  $player_is_threat[0] == 0
goto_if_false @IMPND_8930
if 
  not is_char_dead $imp_cop[0]
goto_if_false @IMPND_8930
if 
  is_char_in_area_2d $imp_cop[0] {leftBottomX} 2237.854 {leftBottomY} 2448.6079 {rightTopX} 2239.385 {rightTopY} 2450.0139 {drawSphere} False
goto_if_false @IMPND_8930
$door_control = 1
if 
  $alarm_on == 0
goto_if_false @IMPND_8930
if 
  20@ == 0
goto_if_false @IMPND_8930
20@ = 1
set_lvar_int_to_var_int 19@ = $imp_cop[0]

:IMPND_8930
if 
  $activate_doors == 1
goto_if_false @IMPND_9009
if 
  not is_car_dead $cop_car[0]
goto_if_false @IMPND_9009
if 
  is_car_in_area_2d $cop_car[0] {leftBottomX} 2222.3159 {leftBottomY} 2432.012 {rightTopX} 2246.9561 {rightTopY} 2467.6531 {drawSphere} False
goto_if_false @IMPND_9009
$door_control = 1

:IMPND_9009
goto @IMPND_9276

:IMPND_9016
$door_rotation += 0.5
set_object_rotation 9@ {x} $door_rotation {y} 0.0 {z} 0.0
if 
  $door_rotation >= 0.0
goto_if_false @IMPND_9072
$door_control = 2

:IMPND_9072
goto @IMPND_9276

:IMPND_9079
if 
  not is_area_occupied 2250.323 {leftBottomY} 2449.5559 {leftBottomZ} 8.4616 {rightTopX} 2230.4109 {rightTopY} 2461.791 {rightTopZ} 17.8394 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9139
$door_control = 3

:IMPND_9139
goto @IMPND_9276

:IMPND_9146
if 
  is_area_occupied 2250.323 {leftBottomY} 2449.5559 {leftBottomZ} 8.4616 {rightTopX} 2230.4109 {rightTopY} 2461.791 {rightTopZ} 17.8394 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9213
$door_control = 1
goto @IMPND_9269

:IMPND_9213
$door_rotation -= 0.5
set_object_rotation 9@ {x} $door_rotation {y} 0.0 {z} 0.0
if 
  -90.0 >= $door_rotation
goto_if_false @IMPND_9269
$door_control = 0

:IMPND_9269
goto @IMPND_9276

:IMPND_9276
switch_start $10732 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_9995 {caseNum1} 0 {caseLabel1} @IMPND_9339 {caseNum2} 1 {caseLabel2} @IMPND_9668 {caseNum3} 2 {caseLabel3} @IMPND_9759 {caseNum4} 3 {caseLabel4} @IMPND_9834 {caseNum5} -1 {caseLabel5} @IMPND_9995 {caseNum6} -1 {caseLabel6} @IMPND_9995 {caseNum7} -1 {caseLabel7} @IMPND_9995

:IMPND_9339
if 
  $player_in_impound == 1
goto_if_false @IMPND_9575
if 
  is_char_in_any_car $scplayer
goto_if_false @IMPND_9575
if 
  is_char_in_any_police_vehicle $scplayer
goto_if_false @IMPND_9575
if 
  is_char_in_area_3d $scplayer {leftBottomX} 2237.8081 {leftBottomY} 2486.7639 {leftBottomZ} 12.7579 {rightTopX} 2280.2109 {rightTopY} 2502.595 {rightTopZ} 6.2211 {drawSphere} False
goto_if_false @IMPND_9575
if 
  $player_is_threat[2] == 0
goto_if_false @IMPND_9575
if 
  not is_char_dead $imp_cop[2]
goto_if_false @IMPND_9575
if 
  is_char_in_area_2d $imp_cop[2] {leftBottomX} 2253.5149 {leftBottomY} 2485.2749 {rightTopX} 2248.8999 {rightTopY} 2492.416 {drawSphere} False
goto_if_false @IMPND_9575
$10732 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart
if 
  $alarm_on == 0
goto_if_false @IMPND_9575
if 
  20@ == 0
goto_if_false @IMPND_9575
20@ = 1
set_lvar_int_to_var_int 19@ = $imp_cop[2]

:IMPND_9575
if 
  $activate_doors == 1
goto_if_false @IMPND_9661
if 
  is_area_occupied 2294.3711 {leftBottomY} 2493.447 {leftBottomZ} 6.6617 {rightTopX} 2305.78 {rightTopY} 2504.3301 {rightTopZ} 2.1808 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9661
$10732 = 1
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_9661
goto @IMPND_9995

:IMPND_9668
$x, $y, $10740 = get_object_coordinates 6@
$10740 += 0.0155
if 
  $10740 >= 8.8513
goto_if_false @IMPND_9738
$10732 = 2
$10740 = 8.8513
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_9738
set_object_coordinates 6@ {x} $x {y} $y {z} $10740
goto @IMPND_9995

:IMPND_9759
if 
  not is_area_occupied 2286.1479 {leftBottomY} 2503.084 {leftBottomZ} 7.8689 {rightTopX} 2302.4319 {rightTopY} 2491.353 {rightTopZ} 1.8459 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9827
$10732 = 3
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_9827
goto @IMPND_9995

:IMPND_9834
$x, $y, $10740 = get_object_coordinates 6@
$10740 -= 0.0155
if 
  4.4414 >= $10740
goto_if_false @IMPND_9914
$10732 = 0
$10736 = 0.0
$10740 = 4.4414
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_9914
set_object_coordinates 6@ {x} $x {y} $y {z} $10740
if 
  is_area_occupied 2286.1479 {leftBottomY} 2503.084 {leftBottomZ} 7.8689 {rightTopX} 2302.4319 {rightTopY} 2491.353 {rightTopZ} 1.8459 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_9988
$10732 = 1

:IMPND_9988
goto @IMPND_9995

:IMPND_9995
switch_start $10733 {numCases} 4 {hasDefaultCase} 0 {defaultLabel} @IMPND_10478 {caseNum1} 0 {caseLabel1} @IMPND_10058 {caseNum2} 1 {caseLabel2} @IMPND_10151 {caseNum3} 2 {caseLabel3} @IMPND_10242 {caseNum4} 3 {caseLabel4} @IMPND_10317 {caseNum5} -1 {caseLabel5} @IMPND_10478 {caseNum6} -1 {caseLabel6} @IMPND_10478 {caseNum7} -1 {caseLabel7} @IMPND_10478

:IMPND_10058
if 
  $player_in_impound == 1
goto_if_false @IMPND_10144
if 
  is_area_occupied 2333.481 {leftBottomY} 2439.5759 {leftBottomZ} 8.8878 {rightTopX} 2319.688 {rightTopY} 2452.0 {rightTopZ} 2.1724 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_10144
$10733 = 1
report_mission_audio_event_at_object 7@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_10144
goto @IMPND_10478

:IMPND_10151
$x, $y, $10741 = get_object_coordinates 7@
$10741 += 0.0155
if 
  $10741 >= 11.6441
goto_if_false @IMPND_10221
$10733 = 2
$10741 = 11.6441
report_mission_audio_event_at_object 7@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_10221
set_object_coordinates 7@ {x} $x {y} $y {z} $10741
goto @IMPND_10478

:IMPND_10242
if 
  not is_area_occupied 2338.707 {leftBottomY} 2434.458 {leftBottomZ} 11.8518 {rightTopX} 2330.938 {rightTopY} 2452.4551 {rightTopZ} 3.5886 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_10310
$10733 = 3
report_mission_audio_event_at_object 7@ {soundId} ScriptSound.SoundGarageDoorStart

:IMPND_10310
goto @IMPND_10478

:IMPND_10317
$x, $y, $10741 = get_object_coordinates 7@
$10741 -= 0.0155
if 
  6.9743 >= $10741
goto_if_false @IMPND_10397
$10733 = 0
$10737 = 0.0
$10741 = 6.9743
report_mission_audio_event_at_object 6@ {soundId} ScriptSound.SoundGarageDoorStop

:IMPND_10397
set_object_coordinates 7@ {x} $x {y} $y {z} $10741
if 
  is_area_occupied 2338.707 {leftBottomY} 2434.458 {leftBottomZ} 11.8518 {rightTopX} 2330.938 {rightTopY} 2452.4551 {rightTopZ} 3.5886 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @IMPND_10471
$10733 = 1

:IMPND_10471
goto @IMPND_10478

:IMPND_10478
return 

:IMPND_10480
switch_start 13@ {numCases} 7 {hasDefaultCase} 0 {defaultLabel} @IMPND_12863 {caseNum1} 1 {caseLabel1} @IMPND_12316 {caseNum2} 2 {caseLabel2} @IMPND_10853 {caseNum3} 3 {caseLabel3} @IMPND_11228 {caseNum4} 4 {caseLabel4} @IMPND_11920 {caseNum5} 5 {caseLabel5} @IMPND_10543 {caseNum6} 6 {caseLabel6} @IMPND_12714 {caseNum7} 9 {caseLabel7} @IMPND_11530

:IMPND_10543
gosub @IMPND_12865
if and
  $i_see_you == 1
  $player_in_impound == 1
goto_if_false @IMPND_10597
$last_cop_task(12@,8i) = 2
$cop_task_flag(12@,8i) = 0

:IMPND_10597
if 
  $cop_event(12@,8i) == -2
goto_if_false @IMPND_10707
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
set_var_float_to_var_float $imp_f = $player_z
sub_float_var_from_float_var $imp_f -= $z
if 
  3.0 > $imp_f
goto_if_false @IMPND_10707
$last_cop_task(12@,8i) = 9
$player_is_threat(12@,8i) = 1
$cop_task_flag(12@,8i) = 0

:IMPND_10707
if 
  $cop_event(12@,8i) == -1
goto_if_false @IMPND_10806
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
set_var_float_to_var_float $imp_f = $player_z
sub_float_var_from_float_var $imp_f -= $z
if 
  3.0 > $imp_f
goto_if_false @IMPND_10806
$last_cop_task(12@,8i) = 9
$cop_task_flag(12@,8i) = 0

:IMPND_10806
if 
  $alarm_on == 1
goto_if_false @IMPND_10846
$last_cop_task(12@,8i) = 6
$cop_task_flag(12@,8i) = 0

:IMPND_10846
goto @IMPND_12863

:IMPND_10853
gosub @IMPND_19919
if 
  23@ == 0
goto_if_false @IMPND_11166
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_11012
if 
  $alarm_on == 0
goto_if_false @IMPND_10955
if 
  20@ == 0
goto_if_false @IMPND_10955
set_lvar_int_to_var_int 19@ = $imp_cop(12@,8i)
20@ = 4

:IMPND_10955
task_goto_char_aiming $imp_cop(12@,8i) {target} $scplayer {radiusFrom} 5.0 {radiusTo} 10.0
set_var_int_to_lvar_int $cop_timer(12@,8i) = TIMERA
$cop_timer(12@,8i) += 6000
$cop_task_flag(12@,8i) = 1

:IMPND_11012
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_11166
if 
  is_int_lvar_greater_than_int_var TIMERA > $cop_timer(12@,8i)
goto_if_false @IMPND_11166
if 
  $alarm_on == 0
goto_if_false @IMPND_11133
if 
  20@ == 0
goto_if_false @IMPND_11126
$last_cop_task(12@,8i) = 1
$player_is_threat(12@,8i) = 1
$cop_task_flag(12@,8i) = 0

:IMPND_11126
goto @IMPND_11166

:IMPND_11133
$last_cop_task(12@,8i) = 3
$player_is_threat(12@,8i) = 1
$cop_task_flag(12@,8i) = 0

:IMPND_11166
if 
  $cop_event(12@,8i) == -2
goto_if_false @IMPND_11221
$last_cop_task(12@,8i) = 3
$player_is_threat(12@,8i) = 1
$cop_task_flag(12@,8i) = 0

:IMPND_11221
goto @IMPND_12863

:IMPND_11228
gosub @IMPND_19919
if 
  23@ == 0
goto_if_false @IMPND_11476
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_11322
set_var_int_to_lvar_int $cop_timer(12@,8i) = TIMERA
$cop_timer(12@,8i) += 7000
task_kill_char_on_foot $imp_cop(12@,8i) {target} $scplayer
$cop_task_flag(12@,8i) = 1

:IMPND_11322
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_11476
if 
  is_int_lvar_greater_than_int_var TIMERA > $cop_timer(12@,8i)
goto_if_false @IMPND_11476
if 
  $alarm_on == 0
goto_if_false @IMPND_11443
if 
  20@ == 0
goto_if_false @IMPND_11436
$last_cop_task(12@,8i) = 1
$player_is_threat(12@,8i) = 1
$cop_task_flag(12@,8i) = 0

:IMPND_11436
goto @IMPND_11476

:IMPND_11443
$last_cop_task(12@,8i) = 3
$player_is_threat(12@,8i) = 1
$cop_task_flag(12@,8i) = 0

:IMPND_11476
if 
  $i_see_you == 0
goto_if_false @IMPND_11523
$blah += 1
$last_cop_task(12@,8i) = 4
$cop_task_flag(12@,8i) = 0

:IMPND_11523
goto @IMPND_12863

:IMPND_11530
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_11617
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_11617
task_aim_gun_at_coord $imp_cop(12@,8i) {x} $last_player_x {y} $last_player_y {z} $last_player_z {time} 5000
$cop_task_flag(12@,8i) = 1

:IMPND_11617
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_11760
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_11760
if 
  $player_is_threat(12@,8i) == 0
goto_if_false @IMPND_11716
$last_cop_task(12@,8i) = 8
$cop_task_flag(12@,8i) = 0

:IMPND_11716
if 
  $player_is_threat(12@,8i) == 1
goto_if_false @IMPND_11760
$last_cop_task(12@,8i) = 6
$cop_task_flag(12@,8i) = 0

:IMPND_11760
if and
  $i_see_you == 1
  $player_in_impound == 1
goto_if_false @IMPND_11858
if 
  $player_is_threat(12@,8i) == 0
goto_if_false @IMPND_11836
$last_cop_task(12@,8i) = 2
$cop_task_flag(12@,8i) = 0
goto @IMPND_11858

:IMPND_11836
$last_cop_task(12@,8i) = 3
$cop_task_flag(12@,8i) = 0

:IMPND_11858
if 
  $cop_event(12@,8i) == -2
goto_if_false @IMPND_11913
$last_cop_task(12@,8i) = 9
$player_is_threat(12@,8i) = 1
$cop_task_flag(12@,8i) = 0

:IMPND_11913
goto @IMPND_12863

:IMPND_11920
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_12019
gosub @IMPND_19919
if 
  23@ == 0
goto_if_false @IMPND_12008
task_go_to_coord_while_aiming $imp_cop(12@,8i) {x} $last_player_x {y} $last_player_y {z} $last_player_z {speed} MoveState.Run {turnRadius} 1.0 {stopRadius} 5.0 {target} -1 {xOffset} $last_player_x {yOffset} $last_player_y {zOffset} $last_player_z

:IMPND_12008
$cop_task_flag(12@,8i) = 1

:IMPND_12019
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_12097
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1730
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12097
task_pause $imp_cop(12@,8i) {time} 2000
$cop_task_flag(12@,8i) = 2

:IMPND_12097
if 
  $cop_task_flag(12@,8i) == 2
goto_if_false @IMPND_12174
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1465
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12174
$last_cop_task(12@,8i) = 6
$cop_task_flag(12@,8i) = 0

:IMPND_12174
if and
  $i_see_you == 1
  $player_in_impound == 1
goto_if_false @IMPND_12221
$last_cop_task(12@,8i) = 3
$cop_task_flag(12@,8i) = 0

:IMPND_12221
if 
  $cop_event(12@,8i) == -2
goto_if_false @IMPND_12265
$last_cop_task(12@,8i) = 9
$cop_task_flag(12@,8i) = 0

:IMPND_12265
if 
  $cop_event(12@,8i) == -1
goto_if_false @IMPND_12309
$last_cop_task(12@,8i) = 9
$cop_task_flag(12@,8i) = 0

:IMPND_12309
goto @IMPND_12863

:IMPND_12316
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_12437
if 
  20@ == 0
goto_if_false @IMPND_12437
clear_char_tasks_immediately $imp_cop(12@,8i)
task_play_anim_non_interruptable $imp_cop(12@,8i) {animationName} "PHONE_TALK" {animationFile} "PED" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 4000
20@ = 5
set_lvar_int_to_var_int 19@ = $imp_cop(12@,8i)
$cop_task_flag(12@,8i) = 1

:IMPND_12437
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_12707
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 2066
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_12707
if 
  $alarm_on == 0
goto_if_false @IMPND_12685
$alarm_on = 1
if 
  not is_char_dead 24@
goto_if_false @IMPND_12545
freeze_char_position 24@ {state} False
task_cower 24@

:IMPND_12545
clear_mission_audio MissionAudioSlot.Slot4
load_mission_audio MissionAudioSlot.Slot4 {audioId} 41800
$player_is_threat[0] = 1
$player_is_threat[1] = 1
$player_is_threat[2] = 1
$player_is_threat[3] = 1
$player_is_threat[4] = 1
$player_is_threat[5] = 1
$player_is_threat[6] = 1
$player_is_threat[7] = 1
if 
  not is_char_dead $imp_cop[1]
goto_if_false @IMPND_12637
set_current_char_weapon $imp_cop[1] {weaponType} WeaponType.Pistol

:IMPND_12637
if 
  not is_char_dead $imp_cop[6]
goto_if_false @IMPND_12660
set_current_char_weapon $imp_cop[6] {weaponType} WeaponType.Pistol

:IMPND_12660
if 
  $onmission == 0
goto_if_false @IMPND_12685
alter_wanted_level_no_drop $player1 {wantedLevel} 3

:IMPND_12685
$last_cop_task(12@,8i) = 3
$cop_task_flag(12@,8i) = 0

:IMPND_12707
goto @IMPND_12863

:IMPND_12714
gosub @IMPND_15737
if and
  $i_see_you == 1
  $player_in_impound == 1
goto_if_false @IMPND_12768
$last_cop_task(12@,8i) = 3
$cop_task_flag(12@,8i) = 0

:IMPND_12768
if 
  $cop_event(12@,8i) == -2
goto_if_false @IMPND_12812
$last_cop_task(12@,8i) = 9
$cop_task_flag(12@,8i) = 0

:IMPND_12812
if 
  $cop_event(12@,8i) == -1
goto_if_false @IMPND_12856
$last_cop_task(12@,8i) = 9
$cop_task_flag(12@,8i) = 0

:IMPND_12856
goto @IMPND_12863

:IMPND_12863
return 

:IMPND_12865
if 
  $impound_area == 1
goto_if_false @IMPND_13978
if 
  $player_in_impound == 1
goto_if_false @IMPND_13630
if 
  $impound_cops_created == 1
goto_if_false @IMPND_13630
if 
  12.0 > $player_z
goto_if_false @IMPND_13630
$activate_doors = 1
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_13630
if 
  12@ == 3
goto_if_false @IMPND_13102
flush_route 
extend_route 1583.321 {y} -1691.575 {z} 5.2252
extend_route 1555.105 {y} -1692.137 {z} 5.2252
extend_route 1526.5341 {y} -1676.968 {z} 4.8984
$imp_sequence = open_sequence_task 
task_pause -1 {time} 3500
task_leave_any_car -1
task_pause -1 {time} 700
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 63.3988
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence

:IMPND_13102
if 
  12@ == 4
goto_if_false @IMPND_13238
flush_route 
extend_route 1582.722 {y} -1669.5601 {z} 4.8942
extend_route 1581.765 {y} -1690.743 {z} 5.2187
extend_route 1556.016 {y} -1690.699 {z} 5.2252
extend_route 1525.97 {y} -1674.655 {z} 4.8984
$imp_sequence = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 92.6125
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence

:IMPND_13238
if 
  12@ == 5
goto_if_false @IMPND_13493
$imp_seq2 = open_sequence_task 
if 
  not is_car_dead $cop_car[2]
goto_if_false @IMPND_13350
task_car_drive_to_coord -1 {vehicle} $cop_car[2] {x} 1589.8781 {y} -1644.1429 {z} 11.2316 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_pause -1 {time} 2000
task_car_drive_to_coord -1 {vehicle} $cop_car[2] {x} 1549.443 {y} -1627.994 {z} 12.3905 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:IMPND_13350
close_sequence_task $imp_seq2
flush_route 
extend_route 1567.392 {y} -1706.847 {z} 4.8984
extend_route 1566.885 {y} -1710.162 {z} 4.8984
$imp_sequence = open_sequence_task 
task_pause -1 {time} 10000
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead $cop_car[2]
goto_if_false @IMPND_13455
task_enter_car_as_driver -1 {vehicle} $cop_car[2] {time} -1
task_car_temp_action -1 {vehicle} $cop_car[2] {actionId} TempAction.ReverseRight {time} 1000
perform_sequence_task -1 {sequence} $imp_seq2

:IMPND_13455
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence
clear_sequence_task $imp_seq2
$cop_task_flag(12@,8i) = 1

:IMPND_13493
if 
  12@ == 6
goto_if_false @IMPND_13578
24@ = create_random_char 1610.446 {y} -1720.474 {z} 5.2252
set_char_heading 24@ {heading} 45.0
task_hands_up 24@ {time} -2
freeze_char_position 24@ {state} True
set_current_char_weapon $imp_cop(12@,8i) {weaponType} WeaponType.Unarmed
task_kill_char_on_foot $imp_cop(12@,8i) {target} 24@

:IMPND_13578
if 
  12@ == 7
goto_if_false @IMPND_13619
if 
  not is_car_dead $cop_car[3]
goto_if_false @IMPND_13619
open_car_door $cop_car[3] {door} CarDoor.Hood

:IMPND_13619
$cop_task_flag(12@,8i) = 1

:IMPND_13630
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_13978
if 
  12@ == 5
goto_if_false @IMPND_13853
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_13853
if 
  not is_char_dead $imp_cop[5]
goto_if_false @IMPND_13853
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} -1
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_13853
if 
  locate_char_in_car_3d $imp_cop(12@,8i) {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @IMPND_13853
mark_char_as_no_longer_needed $imp_cop[5]
mark_car_as_no_longer_needed $cop_car[1]
if 
  $door_rotation > -25.0
goto_if_false @IMPND_13853
task_car_drive_wander $imp_cop(12@,8i) {vehicle} $cop_car[1] {speed} 20.0 {drivingMode} DrivingMode.StopForCars
$cop_task_flag(12@,8i) = 2

:IMPND_13853
if 
  12@ == 6
goto_if_false @IMPND_13978
if 
  not is_char_dead 24@
goto_if_false @IMPND_13978
set_char_health 24@ {health} 100
14@ = get_script_task_status 24@ {taskId} 1476
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_13978
task_hands_up 24@ {time} -2
if 
  not is_char_dead $imp_cop[1]
goto_if_false @IMPND_13978
task_play_anim $imp_cop[1] {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2

:IMPND_13978
if 
  $impound_area == 2
goto_if_false @IMPND_14838
if 
  $impound_cops_created == 1
goto_if_false @IMPND_14838
if 
  -0.7114 > $player_z
goto_if_false @IMPND_14633
$activate_doors = 1
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_14633
if 
  12@ == 3
goto_if_false @IMPND_14190
flush_route 
extend_route -1601.988 {y} 744.1652 {z} -6.2422
extend_route -1593.343 {y} 729.7554 {z} -5.9062
extend_route -1593.4399 {y} 718.5184 {z} -6.2344
$imp_sequence = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 146.3988
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence

:IMPND_14190
if 
  12@ == 4
goto_if_false @IMPND_14292
flush_route 
extend_route -1592.119 {y} 729.1914 {z} -5.9062
extend_route -1592.7531 {y} 715.295 {z} -6.2344
$imp_sequence = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 103.6125
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence

:IMPND_14292
if 
  12@ == 5
goto_if_false @IMPND_14581
$imp_seq2 = open_sequence_task 
if 
  not is_car_dead $cop_car[3]
goto_if_false @IMPND_14404
task_car_drive_to_coord -1 {vehicle} $cop_car[3] {x} -1629.925 {y} 694.9102 {z} 5.8578 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_pause -1 {time} 8000
task_car_drive_to_coord -1 {vehicle} $cop_car[3] {x} -1578.795 {y} 662.8546 {z} 6.1874 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:IMPND_14404
close_sequence_task $imp_seq2
flush_route 
extend_route -1595.7111 {y} 698.4703 {z} -5.9062
extend_route -1587.208 {y} 701.9536 {z} -5.914
extend_route -1577.201 {y} 720.1028 {z} -6.2344
extend_route -1574.4139 {y} 720.1995 {z} -6.2344
$imp_sequence = open_sequence_task 
task_pause -1 {time} 10000
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead $cop_car[3]
goto_if_false @IMPND_14543
task_enter_car_as_driver -1 {vehicle} $cop_car[3] {time} -1
task_car_temp_action -1 {vehicle} $cop_car[3] {actionId} TempAction.ReverseRight {time} 1000
perform_sequence_task -1 {sequence} $imp_seq2

:IMPND_14543
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence
clear_sequence_task $imp_seq2
$cop_task_flag(12@,8i) = 1

:IMPND_14581
if 
  12@ == 6
goto_if_false @IMPND_14622
if 
  not is_car_dead $cop_car[1]
goto_if_false @IMPND_14622
open_car_door $cop_car[1] {door} CarDoor.Hood

:IMPND_14622
$cop_task_flag(12@,8i) = 1

:IMPND_14633
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_14838
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_14827
if 
  not is_char_dead $imp_cop[5]
goto_if_false @IMPND_14827
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} -1
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_14827
if 
  locate_char_in_car_3d $imp_cop(12@,8i) {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @IMPND_14827
mark_char_as_no_longer_needed $imp_cop[5]
mark_car_as_no_longer_needed $cop_car[1]
if 
  $door_rotation > -25.0
goto_if_false @IMPND_14827
task_car_drive_wander $imp_cop(12@,8i) {vehicle} $cop_car[1] {speed} 20.0 {drivingMode} DrivingMode.StopForCars

:IMPND_14827
$cop_task_flag(12@,8i) = 2

:IMPND_14838
if 
  $impound_area == 3
goto_if_false @IMPND_15735
if 
  $impound_cops_created == 1
goto_if_false @IMPND_15735
if and
  4.3 > $player_z
  $player_x > 2292.0
goto_if_false @IMPND_15530
$activate_doors = 1
if 
  $cop_task_flag(12@,8i) == 0
goto_if_false @IMPND_15530
if 
  12@ == 3
goto_if_false @IMPND_15094
flush_route 
extend_route 2292.4131 {y} 2466.8589 {z} 2.5313
extend_route 2292.5491 {y} 2448.623 {z} 2.5313
extend_route 2290.439 {y} 2446.9451 {z} 2.5313
extend_route 2271.2471 {y} 2446.7991 {z} 2.5313
extend_route 2266.6179 {y} 2449.1541 {z} 2.5313
$imp_sequence = open_sequence_task 
task_pause -1 {time} 1000
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 337.3988
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence

:IMPND_15094
if 
  12@ == 4
goto_if_false @IMPND_15230
flush_route 
extend_route 2283.3779 {y} 2469.562 {z} 2.5313
extend_route 2290.2229 {y} 2466.8879 {z} 2.5313
extend_route 2290.4871 {y} 2449.4009 {z} 2.5313
extend_route 2269.623 {y} 2448.8 {z} 2.5313
$imp_sequence = open_sequence_task 
task_leave_any_car -1
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
task_achieve_heading -1 {heading} 25.6125
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence

:IMPND_15230
if 
  12@ == 5
goto_if_false @IMPND_15519
$imp_seq2 = open_sequence_task 
if 
  not is_car_dead $cop_car[1]
goto_if_false @IMPND_15342
task_car_drive_to_coord -1 {vehicle} $cop_car[1] {x} 2300.103 {y} 2494.479 {z} 2.266 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
task_pause -1 {time} 8000
task_car_drive_to_coord -1 {vehicle} $cop_car[1] {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {speed} 10.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:IMPND_15342
close_sequence_task $imp_seq2
flush_route 
extend_route 2258.9141 {y} 2447.821 {z} 2.5313
extend_route 2258.3459 {y} 2467.5801 {z} 2.5313
extend_route 2298.0691 {y} 2467.792 {z} 2.266
extend_route 2313.553 {y} 2474.0449 {z} 2.266
$imp_sequence = open_sequence_task 
task_pause -1 {time} 10000
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
if 
  not is_car_dead $cop_car[1]
goto_if_false @IMPND_15481
task_enter_car_as_driver -1 {vehicle} $cop_car[1] {time} -1
task_car_temp_action -1 {vehicle} $cop_car[1] {actionId} TempAction.ReverseRight {time} 1000
perform_sequence_task -1 {sequence} $imp_seq2

:IMPND_15481
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence
clear_sequence_task $imp_seq2
$cop_task_flag(12@,8i) = 1

:IMPND_15519
$cop_task_flag(12@,8i) = 1

:IMPND_15530
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_15735
if 
  $cop_task_flag(12@,8i) == 1
goto_if_false @IMPND_15724
if 
  not is_char_dead $imp_cop[5]
goto_if_false @IMPND_15724
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} -1
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_15724
if 
  locate_char_in_car_3d $imp_cop(12@,8i) {x} 2242.1731 {y} 2461.9651 {z} 9.8203 {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @IMPND_15724
mark_char_as_no_longer_needed $imp_cop[5]
mark_car_as_no_longer_needed $cop_car[1]
if 
  $door_rotation > -25.0
goto_if_false @IMPND_15724
task_car_drive_wander $imp_cop(12@,8i) {vehicle} $cop_car[1] {speed} 20.0 {drivingMode} DrivingMode.StopForCars

:IMPND_15724
$cop_task_flag(12@,8i) = 2

:IMPND_15735
return 

:IMPND_15737
if 
  $impound_area == 1
goto_if_false @IMPND_16699
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
if 
  $z > 16.3914
goto_if_false @IMPND_16011
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 1553.0 {y} -1627.837 {z} 12.3905 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_15923
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_15916
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 1553.0 {y} -1627.837 {z} 12.3905 {speed} MoveState.Run {time} -2

:IMPND_15916
goto @IMPND_16004

:IMPND_15923
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16004
if 
  $last_player_z > 15.0
goto_if_false @IMPND_16004
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 1566.329 {y} -1628.917 {z} 13.7858 {time} 8000

:IMPND_16004
goto @IMPND_16699

:IMPND_16011
if and
  $x > 1580.8199
  $y > -1678.5179
goto_if_false @IMPND_16293
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 1596.3879 {y} -1665.798 {z} 4.8604 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16171
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16164
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 1596.3879 {y} -1665.798 {z} 4.8604 {speed} MoveState.Run {time} -2

:IMPND_16164
goto @IMPND_16286

:IMPND_16171
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16286
if 
  $last_player_z > 10.5
goto_if_false @IMPND_16259
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 1588.92 {y} -1643.827 {z} 13.2958 {time} 8000
goto @IMPND_16286

:IMPND_16259
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 1551.462 {y} -1625.453 {z} 12.3905 {time} 8000

:IMPND_16286
goto @IMPND_16699

:IMPND_16293
if 
  $x > 1565.101
goto_if_false @IMPND_16510
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 1593.21 {y} -1702.36 {z} 4.897 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16443
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16436
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 1593.21 {y} -1702.36 {z} 4.897 {speed} MoveState.Run {time} -2

:IMPND_16436
goto @IMPND_16503

:IMPND_16443
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16503
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 1589.4659 {y} -1699.136 {z} 5.6059 {time} 8000

:IMPND_16503
goto @IMPND_16699

:IMPND_16510
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 1542.683 {y} -1706.7469 {z} 4.8984 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16639
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16632
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 1542.683 {y} -1706.7469 {z} 4.8984 {speed} MoveState.Run {time} -2

:IMPND_16632
goto @IMPND_16699

:IMPND_16639
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16699
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 1550.058 {y} -1696.444 {z} 6.4232 {time} 8000

:IMPND_16699
if 
  $impound_area == 2
goto_if_false @IMPND_18601
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
if 
  $z > 1.6789
goto_if_false @IMPND_17702
if 
  -1667.059 > $x
goto_if_false @IMPND_17056
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} -1697.1851 {y} 684.1302 {z} 23.01 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_16906
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_16899
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} -1697.1851 {y} 684.1302 {z} 23.01 {speed} MoveState.Run {time} -2

:IMPND_16899
goto @IMPND_17049

:IMPND_16906
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17049
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_17011
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1706.2531 {y} 683.8111 {z} 25.3122 {time} 16@
goto @IMPND_17049

:IMPND_17011
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1685.691 {y} 683.6411 {z} 20.7149 {time} 16@

:IMPND_17049
goto @IMPND_17695

:IMPND_17056
if 
  $x > -1604.599
goto_if_false @IMPND_17356
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} -1576.953 {y} 661.7159 {z} 6.1901 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_17206
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17199
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} -1576.953 {y} 661.7159 {z} 6.1901 {speed} MoveState.Run {time} -2

:IMPND_17199
goto @IMPND_17349

:IMPND_17206
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17349
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_17311
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1584.874 {y} 663.152 {z} 7.414 {time} 16@
goto @IMPND_17349

:IMPND_17311
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1566.207 {y} 664.1497 {z} 8.621 {time} 16@

:IMPND_17349
goto @IMPND_17695

:IMPND_17356
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} -1629.609 {y} 683.5222 {z} 6.1901 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_17485
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17478
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} -1629.609 {y} 683.5222 {z} 6.1901 {speed} MoveState.Run {time} -2

:IMPND_17478
goto @IMPND_17695

:IMPND_17485
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17695
16@ = generate_random_int_in_range 0 {max} 3
if 
  16@ == 0
goto_if_false @IMPND_17583
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1629.298 {y} 694.5806 {z} 6.6079 {time} 16@

:IMPND_17583
if 
  16@ == 1
goto_if_false @IMPND_17639
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1617.505 {y} 677.6022 {z} 7.9235 {time} 16@

:IMPND_17639
if 
  16@ == 2
goto_if_false @IMPND_17695
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1648.488 {y} 682.1654 {z} 10.8535 {time} 16@

:IMPND_17695
goto @IMPND_18601

:IMPND_17702
if and
  -1598.681 > $x
  $y > 707.923
goto_if_false @IMPND_18005
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} -1618.067 {y} 742.9348 {z} -6.2344 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_17862
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_17855
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} -1618.067 {y} 742.9348 {z} -6.2344 {speed} MoveState.Run {time} -2

:IMPND_17855
goto @IMPND_18005

:IMPND_17862
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18005
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_17967
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1627.667 {y} 738.323 {z} -5.0193 {time} 16@
goto @IMPND_18005

:IMPND_17967
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1601.436 {y} 739.188 {z} -4.696 {time} 16@

:IMPND_18005
if and
  $x > -1598.681
  $y > 707.923
goto_if_false @IMPND_18308
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} -1581.8879 {y} 738.4942 {z} -6.2422 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_18165
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18158
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} -1581.8879 {y} 738.4942 {z} -6.2422 {speed} MoveState.Run {time} -2

:IMPND_18158
goto @IMPND_18308

:IMPND_18165
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18308
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_18270
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1594.033 {y} 741.5932 {z} -4.9811 {time} 16@
goto @IMPND_18308

:IMPND_18270
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1583.25 {y} 724.5026 {z} -5.0768 {time} 16@

:IMPND_18308
if 
  707.923 > $y
goto_if_false @IMPND_18601
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} -1591.093 {y} 688.555 {z} -6.2422 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_18458
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18451
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} -1591.093 {y} 688.555 {z} -6.2422 {speed} MoveState.Run {time} -2

:IMPND_18451
goto @IMPND_18601

:IMPND_18458
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18601
16@ = generate_random_int_in_range 0 {max} 2
if 
  16@ == 0
goto_if_false @IMPND_18563
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1602.085 {y} 687.7857 {z} -4.6028 {time} 16@
goto @IMPND_18601

:IMPND_18563
16@ = generate_random_int_in_range 5000 {max} 8000
task_aim_gun_at_coord $imp_cop(12@,8i) {x} -1582.9611 {y} 717.1259 {z} -4.2141 {time} 16@

:IMPND_18601
if 
  $impound_area == 3
goto_if_false @IMPND_19852
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
if 
  $z > 8.9783
goto_if_false @IMPND_19229
if 
  2484.5979 > $y
goto_if_false @IMPND_18932
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 2241.8789 {y} 2453.603 {z} 9.82 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_18808
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18801
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2241.8789 {y} 2453.603 {z} 9.82 {speed} MoveState.Run {time} -2

:IMPND_18801
goto @IMPND_18925

:IMPND_18808
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_18925
16@ = generate_random_int_in_range 5000 {max} 8000
if 
  13@ == 6
goto_if_false @IMPND_18904
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 2242.116 {y} 2478.98 {z} 10.8203 {time} 8000
goto @IMPND_18925

:IMPND_18904
task_aim_gun_at_coord $imp_cop(12@,8i) {x} $last_player_x {y} $last_player_y {z} $last_player_z {time} 8000

:IMPND_18925
goto @IMPND_19222

:IMPND_18932
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 2243.24 {y} 2495.0991 {z} 9.8203 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19061
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19054
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2243.24 {y} 2495.0991 {z} 9.8203 {speed} MoveState.Run {time} -2

:IMPND_19054
goto @IMPND_19222

:IMPND_19061
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19222
if 
  13@ == 6
goto_if_false @IMPND_19201
if 
  $last_player_z > 5.0
goto_if_false @IMPND_19167
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 2242.4529 {y} 2487.0601 {z} 11.7533 {time} 8000
goto @IMPND_19194

:IMPND_19167
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 2268.113 {y} 2498.4561 {z} 7.7616 {time} 8000

:IMPND_19194
goto @IMPND_19222

:IMPND_19201
task_aim_gun_at_coord $imp_cop(12@,8i) {x} $last_player_x {y} $last_player_y {z} $last_player_z {time} 8000

:IMPND_19222
goto @IMPND_19852

:IMPND_19229
if 
  $z > 2.1249
goto_if_false @IMPND_19663
if 
  $y > 2458.3269
goto_if_false @IMPND_19467
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 2306.376 {y} 2495.541 {z} 2.266 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19400
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19393
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2306.376 {y} 2495.541 {z} 2.266 {speed} MoveState.Run {time} -2

:IMPND_19393
goto @IMPND_19460

:IMPND_19400
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19460
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 2295.177 {y} 2471.76 {z} 3.955 {time} 8000

:IMPND_19460
goto @IMPND_19656

:IMPND_19467
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 2316.0601 {y} 2446.9121 {z} 2.266 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19596
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19589
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2316.0601 {y} 2446.9121 {z} 2.266 {speed} MoveState.Run {time} -2

:IMPND_19589
goto @IMPND_19656

:IMPND_19596
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19656
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 2295.2161 {y} 2451.0879 {z} 4.3783 {time} 8000

:IMPND_19656
goto @IMPND_19852

:IMPND_19663
if 
  not locate_char_any_means_3d $imp_cop(12@,8i) {x} 2238.7529 {y} 2457.8311 {z} -8.4531 {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @IMPND_19792
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19785
clear_char_tasks $imp_cop(12@,8i)
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2238.7529 {y} 2457.8311 {z} -8.4531 {speed} MoveState.Run {time} -2

:IMPND_19785
goto @IMPND_19852

:IMPND_19792
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1639
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19852
task_aim_gun_at_coord $imp_cop(12@,8i) {x} 2251.7991 {y} 2465.2361 {z} -7.2173 {time} 8000

:IMPND_19852
return 
if 
  $impound_area == 3
goto_if_false @IMPND_19917
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_19917
task_kill_char_on_foot $imp_cop(12@,8i) {target} $scplayer

:IMPND_19917
return 

:IMPND_19919
if 
  $impound_area == 3
goto_if_false @IMPND_20411
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20411
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20411
if 
  $z > 8.9783
goto_if_false @IMPND_20411
if 
  2481.7959 > $y
goto_if_false @IMPND_20178
if 
  is_char_in_area_2d $imp_cop(12@,8i) {leftBottomX} 2237.854 {leftBottomY} 2448.6079 {rightTopX} 2239.385 {rightTopY} 2450.0139 {drawSphere} False
goto_if_false @IMPND_20178
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 2239.573 {leftBottomY} 2448.616 {rightTopX} 2242.363 {rightTopY} 2449.8511 {drawSphere} False
goto_if_false @IMPND_20178
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2240.0339 {y} 2449.418 {z} 9.8203 {speed} MoveState.Walk {time} -2
23@ = 1

:IMPND_20178
if 
  $y >= 2481.7959
goto_if_false @IMPND_20411
if 
  is_char_in_area_2d $imp_cop(12@,8i) {leftBottomX} 2253.5149 {leftBottomY} 2485.2749 {rightTopX} 2248.8999 {rightTopY} 2492.416 {drawSphere} False
goto_if_false @IMPND_20411
if and
  not is_char_in_area_2d $scplayer {leftBottomX} 2253.5149 {leftBottomY} 2485.2749 {rightTopX} 2248.8999 {rightTopY} 2492.416 {drawSphere} False
  not locate_char_any_means_char_3d $imp_cop(12@,8i) {target} $scplayer {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPND_20411
$imp_sequence = open_sequence_task 
task_go_straight_to_coord -1 {x} 2250.155 {y} 2486.405 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2247.823 {y} 2487.0559 {z} 9.8203 {speed} MoveState.Walk {time} -2
task_go_straight_to_coord -1 {x} 2246.22 {y} 2488.3201 {z} 9.8203 {speed} MoveState.Walk {time} -2
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence
23@ = 1

:IMPND_20411
if 
  $impound_area == 1
goto_if_false @IMPND_20881
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1491
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20881
14@ = get_script_task_status $imp_cop(12@,8i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 14@ == 7
goto_if_false @IMPND_20881
if 
  $z > 12.0
goto_if_false @IMPND_20881
if 
  1569.0 > $x
goto_if_false @IMPND_20677
if 
  is_char_in_area_2d $imp_cop(12@,8i) {leftBottomX} 1543.749 {leftBottomY} -1632.588 {rightTopX} 1544.821 {rightTopY} -1631.425 {drawSphere} False
goto_if_false @IMPND_20670
if 
  not is_char_in_area_2d $scplayer {leftBottomX} 1544.9659 {leftBottomY} -1632.88 {rightTopX} 1546.495 {rightTopY} -1630.646 {drawSphere} False
goto_if_false @IMPND_20670
task_go_straight_to_coord $imp_cop(12@,8i) {x} 1545.881 {y} -1631.918 {z} 12.3905 {speed} MoveState.Walk {time} -2
23@ = 1

:IMPND_20670
goto @IMPND_20881

:IMPND_20677
if 
  is_char_in_area_2d $imp_cop(12@,8i) {leftBottomX} 1581.953 {leftBottomY} -1637.569 {rightTopX} 1577.376 {rightTopY} -1632.9919 {drawSphere} False
goto_if_false @IMPND_20881
if and
  not is_char_in_area_2d $scplayer {leftBottomX} 1581.953 {leftBottomY} -1637.569 {rightTopX} 1577.376 {rightTopY} -1632.9919 {drawSphere} False
  not locate_char_any_means_char_3d $imp_cop(12@,8i) {target} $scplayer {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @IMPND_20881
flush_route 
extend_route 1578.517 {y} -1636.495 {z} 12.5545
extend_route 1576.366 {y} -1636.395 {z} 12.5539
extend_route 1573.981 {y} -1632.764 {z} 12.3905
$imp_sequence = open_sequence_task 
task_follow_point_route -1 {speed} MoveState.Walk {mode} RouteMode.Once
close_sequence_task $imp_sequence
perform_sequence_task $imp_cop(12@,8i) {sequence} $imp_sequence
clear_sequence_task $imp_sequence
23@ = 1

:IMPND_20881
return 
if 
  $impound_area == 3
goto_if_false @IMPND_21066
if 
  12@ == 0
goto_if_false @IMPND_21066
if 
  not is_char_in_area_2d $imp_cop(12@,8i) {leftBottomX} 2237.854 {leftBottomY} 2448.6079 {rightTopX} 2239.385 {rightTopY} 2450.0139 {drawSphere} False
goto_if_false @IMPND_21066
if 
  not is_char_in_area_2d $imp_cop(12@,8i) {leftBottomX} 2239.573 {leftBottomY} 2448.616 {rightTopX} 2242.363 {rightTopY} 2449.8511 {drawSphere} False
goto_if_false @IMPND_21038
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2240.0339 {y} 2449.418 {z} 9.8203 {speed} MoveState.Walk {time} -2
goto @IMPND_21066

:IMPND_21038
task_go_straight_to_coord $imp_cop(12@,8i) {x} 2238.5691 {y} 2449.417 {z} 10.0372 {speed} MoveState.Walk {time} -2

:IMPND_21066
return 

:IMPND_21068
$player_in_impound = 0
if 
  $impound_area == 3
goto_if_false @IMPND_21221
if and
  $player_z > 3.9517
  14.0 > $player_z
goto_if_false @IMPND_21193
if and
  $player_x > 2238.0
  2299.0 > $player_x
goto_if_false @IMPND_21193
if and
  $player_y > 2430.916
  2502.6809 > $player_y
goto_if_false @IMPND_21193
$player_in_impound = 1

:IMPND_21193
if 
  3.9517 >= $player_z
goto_if_false @IMPND_21221
$player_in_impound = 1

:IMPND_21221
if 
  $impound_area == 2
goto_if_false @IMPND_21439
if and
  $player_x > -1645.533
  -1572.785 > $player_x
goto_if_false @IMPND_21339
if and
  $player_y > 646.8482
  761.5287 > $player_y
goto_if_false @IMPND_21339
if and
  11.4577 > $player_z
  $player_z > -7.3486
goto_if_false @IMPND_21339
$player_in_impound = 1

:IMPND_21339
if and
  $player_x > -1701.0129
  -1640.991 > $player_x
goto_if_false @IMPND_21439
if and
  $player_y > 674.5198
  697.4974 > $player_y
goto_if_false @IMPND_21439
if and
  $player_z > 6.096
  26.5941 > $player_z
goto_if_false @IMPND_21439
$player_in_impound = 1

:IMPND_21439
if 
  $impound_area == 1
goto_if_false @IMPND_21723
if 
  11.7746 > $player_z
goto_if_false @IMPND_21554
if and
  $player_x > 1524.017
  1612.4041 > $player_x
goto_if_false @IMPND_21547
if and
  -1633.573 > $player_y
  $player_y > -1722.036
goto_if_false @IMPND_21547
$player_in_impound = 1

:IMPND_21547
goto @IMPND_21623

:IMPND_21554
if and
  $player_x > 1544.427
  1607.588 > $player_x
goto_if_false @IMPND_21623
if and
  -1603.015 > $player_y
  $player_y > -1637.697
goto_if_false @IMPND_21623
$player_in_impound = 1

:IMPND_21623
if and
  $player_x > 1581.407
  1605.203 > $player_x
goto_if_false @IMPND_21723
if and
  $player_y > -1666.734
  -1637.67 > $player_y
goto_if_false @IMPND_21723
if and
  $player_z > 4.8451
  13.6917 > $player_z
goto_if_false @IMPND_21723
$player_in_impound = 1

:IMPND_21723
return 

:IMPND_21725
if or
  not is_char_in_any_police_vehicle $scplayer
  $player_is_threat(12@,8i) == 1
goto_if_false @IMPND_22001
if 
  has_char_spotted_char $imp_cop(12@,8i) {target} $scplayer
goto_if_false @IMPND_22001
$x, $y, $z = get_char_coordinates $imp_cop(12@,8i)
28@ = get_char_heading $imp_cop(12@,8i)
set_lvar_float_to_var_float 25@ = $player_x
sub_float_var_from_float_lvar 25@ -= $x
set_lvar_float_to_var_float 26@ = $player_y
sub_float_var_from_float_lvar 26@ -= $y
27@ = get_heading_from_vector_2d 25@ {y} 26@
sub_float_lvar_from_float_lvar 28@ -= 27@
if 
  -180.0 > 28@
goto_if_false @IMPND_21887
28@ += 360.0

:IMPND_21887
28@ = abs_lvar_float 
if 
  5@ == 0
goto_if_false @IMPND_21959
if 
  90.0 > 28@
goto_if_false @IMPND_21952
$last_player_x, $last_player_y, $last_player_z = get_char_coordinates $scplayer
$i_see_you = 1

:IMPND_21952
goto @IMPND_22001

:IMPND_21959
if 
  120.0 > 28@
goto_if_false @IMPND_22001
$last_player_x, $last_player_y, $last_player_z = get_char_coordinates $scplayer
$i_see_you = 1

:IMPND_22001
return 

:IMPND_22003
$impound_cops_created = 0
$player_in_impound = 0
$activate_doors = 0
$player_is_threat[0] = 0
$player_is_threat[1] = 0
$player_is_threat[2] = 0
$player_is_threat[3] = 0
$player_is_threat[4] = 0
$player_is_threat[5] = 0
$player_is_threat[6] = 0
$player_is_threat[7] = 0
0@ = 0
1@ = 0
clear_mission_audio MissionAudioSlot.Slot4
mark_model_as_no_longer_needed $cop_model
mark_model_as_no_longer_needed $car_model
mark_model_as_no_longer_needed 346
mark_model_as_no_longer_needed #POLICE_BARRIER
mark_model_as_no_longer_needed #SFCOPDR
mark_model_as_no_longer_needed #KMB_SHUTTER
remove_decision_maker 2@
delete_object 9@
delete_object 10@
delete_object 6@
delete_object 7@
16@ = 0

:IMPND_22160
if 
  8 > 16@
goto_if_false @IMPND_22243
if 
  does_char_exist $imp_cop(16@,8i)
goto_if_false @IMPND_22207
delete_char $imp_cop(16@,8i)

:IMPND_22207
$cop_event(16@,8i) = 0
$last_cop_task(16@,8i) = 0
16@ += 1
goto @IMPND_22160

:IMPND_22243
16@ = 0

:IMPND_22250
if 
  4 > 16@
goto_if_false @IMPND_22311
if 
  not is_car_dead $cop_car(16@,4i)
goto_if_false @IMPND_22297
mark_car_as_no_longer_needed $cop_car(16@,4i)

:IMPND_22297
16@ += 1
goto @IMPND_22250

:IMPND_22311
mark_char_as_no_longer_needed 24@
$door_control = 0
$10731 = 0
$10732 = 0
$10733 = 0
$alarm_on = 0
terminate_this_script 
return 
terminate_this_script 

//-------------External script 72 (VALET)---------------

:VALET
script_name 'VALET'
8@ = 0
5@ = 1
$can_script_be_cleaned = 1
$valet_scene_running = 0
$valet_can_be_created[0] = 1
$valet_can_be_created[1] = 1
$valet_can_be_created[2] = 1
4@ = 0
if 
  8@ == 99
goto_if_false @VALET_400
create_char PedType.CivMale {modelId} 189 {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {var_handle} $valet(6@,3i)
$a_thief = create_char PedType.CivMale {modelId} 189 {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f)
$valet_pickup_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$valet_car[1] = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$drop_off_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$valet_mission_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$sc3_missioncar = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$mission_drop_off_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
$a_pickup_car = create_car 415 {x} 0.0 {y} 0.0 {z} 0.0
19@ = add_blip_for_car $valet_pickup_car
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
7@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@

:VALET_400
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_421
delete_char $valet[0]

:VALET_421
set_var_int_to_constant $valet_task[0] = 1
$valet_can_be_created[0] = 1
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_456
delete_char $valet[1]

:VALET_456
set_var_int_to_constant $valet_task[1] = 1
$valet_can_be_created[1] = 1
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_491
delete_char $valet[2]

:VALET_491
set_var_int_to_constant $valet_task[2] = 1
$valet_can_be_created[2] = 1
$valet_la_x[0] = 330.4229
$valet_la_x[1] = 328.9663
$valet_la_x[2] = 326.4376
$valet_la_y[0] = -1510.783
$valet_la_y[1] = -1512.467
$valet_la_y[2] = -1515.406
$valet_la_z[0] = 35.0247
$valet_la_z[1] = 35.0247
$valet_la_z[2] = 35.0313
$valet_la_h[0] = 222.0
$valet_la_h[1] = 222.0
$valet_la_h[2] = 222.0
$valet_sf_x[0] = -1761.0291
$valet_sf_x[1] = -1759.9139
$valet_sf_x[2] = -1749.713
$valet_sf_y[0] = 959.5504
$valet_sf_y[1] = 960.2669
$valet_sf_y[2] = 960.1956
$valet_sf_z[0] = 23.8828
$valet_sf_z[1] = 23.8828
$valet_sf_z[2] = 23.8906
$valet_sf_h[0] = 204.3268
$valet_sf_h[1] = 199.167
$valet_sf_h[2] = 142.3291
$valet_vg_x[0] = 2029.7581
$valet_vg_x[1] = 2027.666
$valet_vg_x[2] = 2026.394
$valet_vg_y[0] = 1905.943
$valet_drop_off_area_x1[1] = 336.9336
$valet_drop_off_area_x2[1] = 323.919
$valet_drop_off_area_y1[1] = -1531.027
$valet_drop_off_area_y2[1] = -1504.174
$valet_drop_off_area_x1[2] = -1768.295
$valet_drop_off_area_x2[2] = -1729.094
$valet_drop_off_area_y1[2] = 958.9591
$valet_drop_off_area_y2[2] = 942.184
$valet_drop_off_area_x1[3] = 2050.8811
$valet_drop_off_area_x2[3] = 2016.906
$valet_drop_off_area_y1[3] = 1958.541
$valet_drop_off_area_y2[3] = 1871.0649
$car_park_area_x1[1] = 336.0477
$car_park_area_y1[1] = -1452.225
$car_park_area_z1[1] = 31.9445
$car_park_area_x2[1] = 271.6679
$car_park_area_y2[1] = -1550.2419
$car_park_area_z2[1] = 23.1681
$car_park_area_x1[2] = -1760.178
$car_park_area_y1[2] = 972.2405
$car_park_area_z1[2] = 16.1633
$car_park_area_x2[2] = -1679.605
$car_park_area_y2[2] = 1064.293
$car_park_area_z2[2] = 24.8629
$car_park_area_x1[3] = 1968.502
$car_park_area_y1[3] = 1755.079
$car_park_area_z1[3] = 11.4898
$car_park_area_x2[3] = 1917.811
$car_park_area_y2[3] = 1788.146
$car_park_area_z2[3] = 17.3118
$find_drop_off_car_x1[1] = 363.3463
$find_drop_off_car_y1[1] = -1522.373
$find_drop_off_car_x2[1] = 393.1729
$find_drop_off_car_y2[1] = -1479.321
$find_drop_off_car_h1[1] = 125.0
$find_drop_off_car_x3[1] = 324.8593
$find_drop_off_car_y3[1] = -1591.327
$find_drop_off_car_x4[1] = 324.8593
$find_drop_off_car_y4[1] = -1591.327
$find_drop_off_car_h2[1] = 338.0
$find_drop_off_car_x3[2] = -1743.524
$find_drop_off_car_y3[2] = 930.9304
$find_drop_off_car_x4[2] = -1780.0811
$find_drop_off_car_y4[2] = 908.4018
$find_drop_off_car_h2[2] = 270.0
$find_drop_off_car_x1[2] = -1737.715
$find_drop_off_car_y1[2] = 943.7812
$find_drop_off_car_x2[2] = -1704.2159
$find_drop_off_car_y2[2] = 911.4586
$find_drop_off_car_h1[2] = 45.0
$find_drop_off_car_x1[3] = 2067.5291
$find_drop_off_car_y1[3] = 1957.2889
$find_drop_off_car_x2[3] = 2097.2629
$find_drop_off_car_y2[3] = 1976.0
$find_drop_off_car_h1[3] = 120.0
$find_drop_off_car_x3[3] = 2051.5359
$find_drop_off_car_y3[3] = 1933.6851
$find_drop_off_car_x4[3] = 2062.8181
$find_drop_off_car_y4[3] = 1905.085
$find_drop_off_car_h2[3] = 7.0
$drop_off_point_x[1] = 332.8306
$drop_off_point_y[1] = -1516.251
$drop_off_point_z[1] = 34.8606
$drop_off_point_x[2] = -1754.514
$drop_off_point_y[2] = 953.5991
$drop_off_point_z[2] = 23.75
$drop_off_point_x[3] = 2035.729
$drop_off_point_y[3] = 1912.09
$drop_off_point_z[3] = 11.1751
$valet_exit_x[0] = -1748.376
$valet_exit_y[0] = 985.3066
$valet_exit_z[0] = 17.9009
$valet_exit_x[1] = 330.7534
$valet_exit_y[1] = -1474.608
$valet_exit_z[1] = 24.9126
$valet_exit_x[2] = -1738.28
$valet_exit_y[2] = 985.5498
$valet_exit_z[2] = 16.6718
$valet_exit_x[3] = 2061.3369
$valet_exit_y[3] = 1808.9561
$valet_exit_z[3] = 9.6719
$valet_spawn_x[1] = 403.2297
$valet_spawn_y[1] = -1475.298
$valet_spawn_z[1] = 30.0032
$valet_spawn_h[1] = 128.9467
$valet_spawn_x2[1] = 341.1339
$valet_spawn_y2[1] = -1556.116
$valet_spawn_z2[1] = 31.9903
$valet_spawn_h2[1] = 328.7578
$valet_spawn_x[2] = -1717.204
$valet_spawn_y[2] = 962.7901
$valet_spawn_z[2] = 23.7474
$valet_spawn_h[2] = 179.9692
$valet_spawn_x2[2] = -1791.269
$valet_spawn_y2[2] = 886.3627
$valet_spawn_z2[2] = 23.75
$valet_spawn_h2[2] = 359.2426
$valet_spawn_x[3] = 2073.563
$valet_spawn_y[3] = 1879.736
$valet_spawn_z[3] = 10.4288
$valet_spawn_h[3] = 45.5873
$valet_spawn_x2[3] = 2084.156
$valet_spawn_y2[3] = 1965.573
$valet_spawn_z2[3] = 9.9974
$valet_spawn_h2[3] = 117.4401
remove_decision_maker 7@
7@ = copy_char_decision_maker DecisionMakerCharTemplate.Empty
add_char_decision_maker_event_response 7@ {event} Event.Damage {taskId} TaskId.None {respect} 0.0 {hate} 100.0 {like} 100.0 {dislike} 100.0 {inCar} True {onFoot} True
add_char_decision_maker_event_response 7@ {event} Event.ShotFired {taskId} TaskId.SimpleDuck {respect} 0.0 {hate} 20.0 {like} 20.0 {dislike} 20.0 {inCar} False {onFoot} True
add_char_decision_maker_event_response 7@ {event} Event.ShotFired {taskId} TaskId.None {respect} 0.0 {hate} 80.0 {like} 80.0 {dislike} 80.0 {inCar} True {onFoot} True
$valet_scene_running = 1

:VALET_1959
wait 0
if 
  is_player_playing $player1
goto_if_false @VALET_2291
if 
  $force_valet_cleanup == 1
goto_if_false @VALET_2004
gosub @VALET_16838

:VALET_2004
if 
  $pause_valet_script <> 1
goto_if_false @VALET_2284
if 
  not is_char_dead $scplayer
goto_if_false @VALET_2284
if 
  5@ == 1
goto_if_false @VALET_2095
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_2088
5@ = 0

:VALET_2088
goto @VALET_2127

:VALET_2095
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_2127
5@ = 1

:VALET_2127
gosub @VALET_2371
if 
  $valet_scene_running == 1
goto_if_false @VALET_2284
gosub @VALET_3854
gosub @VALET_7826
gosub @VALET_13005
gosub @VALET_16055
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 8@
goto_if_false @VALET_2215
set_lvar_int_to_lvar_int 8@ = TIMERA
8@ += 2300

:VALET_2215
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_2249
set_lvar_int_to_lvar_int 9@ = TIMERA
9@ += 100

:VALET_2249
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 10@
goto_if_false @VALET_2284
set_lvar_int_to_lvar_int 10@ = TIMERA
10@ += 900

:VALET_2284
goto @VALET_2364

:VALET_2291
if 
  $valet_scene_running == 1
goto_if_false @VALET_2364
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_2357
$player_on_valet_mission = 0
$onmission = 0
print_big 'M_FAIL' {time} 5000 {style} TextStyle.Middle

:VALET_2357
gosub @VALET_16838

:VALET_2364
goto @VALET_1959

:VALET_2371
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 16@
goto_if_false @VALET_3353
set_lvar_int_to_lvar_int 16@ = TIMERA
16@ += 1000
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$val_Area = 0
if 
  is_char_in_area_2d $scplayer {leftBottomX} -1893.4189 {leftBottomY} 1119.2271 {rightTopX} -1617.915 {rightTopY} 828.85 {drawSphere} False
goto_if_false @VALET_2472
$val_Area = 2

:VALET_2472
if 
  $val_Area == 0
goto_if_false @VALET_3118
$area_visible = get_area_visible 
if 
  $area_visible == 0
goto_if_false @VALET_2894
if 
  $frozen_peds == 0
goto_if_false @VALET_2887
if 
  $dont_clear_valets == 0
goto_if_false @VALET_2670
if 
  $valet_scene_running == 1
goto_if_false @VALET_2663
if 
  $force_valet_on_mission <> 1
goto_if_false @VALET_2663
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_2649
$player_on_valet_mission = 0
$onmission = 0
print 'VAL_A9' {time} 4000 {flag} 1
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle

:VALET_2649
gosub @VALET_16838
$valet_scene_running = 0

:VALET_2663
goto @VALET_2887

:VALET_2670
$frozen_peds = 1
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_2747
freeze_char_position $valet[0] {state} True
if 
  is_char_in_any_car $valet[0]
goto_if_false @VALET_2747
$car = get_car_char_is_using $valet[0]
if 
  not is_car_dead $car
goto_if_false @VALET_2747
freeze_car_position $car {state} True

:VALET_2747
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_2817
freeze_char_position $valet[1] {state} True
if 
  is_char_in_any_car $valet[1]
goto_if_false @VALET_2817
$car = get_car_char_is_using $valet[1]
if 
  not is_car_dead $car
goto_if_false @VALET_2817
freeze_car_position $car {state} True

:VALET_2817
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_2887
freeze_char_position $valet[2] {state} True
if 
  is_char_in_any_car $valet[2]
goto_if_false @VALET_2887
$car = get_car_char_is_using $valet[2]
if 
  not is_car_dead $car
goto_if_false @VALET_2887
freeze_car_position $car {state} True

:VALET_2887
goto @VALET_3111

:VALET_2894
$frozen_peds = 1
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_2971
freeze_char_position $valet[0] {state} True
if 
  is_char_in_any_car $valet[0]
goto_if_false @VALET_2971
$car = get_car_char_is_using $valet[0]
if 
  not is_car_dead $car
goto_if_false @VALET_2971
freeze_car_position $car {state} True

:VALET_2971
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_3041
freeze_char_position $valet[1] {state} True
if 
  is_char_in_any_car $valet[1]
goto_if_false @VALET_3041
$car = get_car_char_is_using $valet[1]
if 
  not is_car_dead $car
goto_if_false @VALET_3041
freeze_car_position $car {state} True

:VALET_3041
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_3111
freeze_char_position $valet[2] {state} True
if 
  is_char_in_any_car $valet[2]
goto_if_false @VALET_3111
$car = get_car_char_is_using $valet[2]
if 
  not is_car_dead $car
goto_if_false @VALET_3111
freeze_car_position $car {state} True

:VALET_3111
goto @VALET_3353

:VALET_3118
if 
  $frozen_peds == 1
goto_if_false @VALET_3353
$frozen_peds = 0
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_3213
freeze_char_position $valet[0] {state} False
if 
  is_char_in_any_car $valet[0]
goto_if_false @VALET_3213
$car = get_car_char_is_using $valet[0]
if 
  not is_car_dead $car
goto_if_false @VALET_3213
freeze_car_position $car {state} False

:VALET_3213
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_3283
freeze_char_position $valet[1] {state} False
if 
  is_char_in_any_car $valet[1]
goto_if_false @VALET_3283
$car = get_car_char_is_using $valet[1]
if 
  not is_car_dead $car
goto_if_false @VALET_3283
freeze_car_position $car {state} False

:VALET_3283
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_3353
freeze_char_position $valet[2] {state} False
if 
  is_char_in_any_car $valet[2]
goto_if_false @VALET_3353
$car = get_car_char_is_using $valet[2]
if 
  not is_car_dead $car
goto_if_false @VALET_3353
freeze_car_position $car {state} False

:VALET_3353
if 
  $play_was_on_valet_oddjob == 1
goto_if_false @VALET_3597
if 
  $val_Area == 1
goto_if_false @VALET_3444
if 
  not locate_char_any_means_3d $scplayer {x} 328.1585 {y} -1512.8879 {z} 35.0247 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_3444
$play_was_on_valet_oddjob = 0

:VALET_3444
if 
  $val_Area == 2
goto_if_false @VALET_3517
if 
  not locate_char_any_means_3d $scplayer {x} -1753.936 {y} 961.8587 {z} 23.8906 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_3517
$play_was_on_valet_oddjob = 0

:VALET_3517
if 
  $val_Area == 3
goto_if_false @VALET_3590
if 
  not locate_char_any_means_3d $scplayer {x} 2021.337 {y} 1918.236 {z} 11.3438 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_3590
$play_was_on_valet_oddjob = 0

:VALET_3590
goto @VALET_3852

:VALET_3597
if 
  $onmission <> 1
goto_if_false @VALET_3852
if 
  $valet_oddjob_opened == 1
goto_if_false @VALET_3852
if 
  $player_on_valet_mission == 0
goto_if_false @VALET_3852
if 
  not is_char_dead $scplayer
goto_if_false @VALET_3852
if 
  $val_Area == 2
goto_if_false @VALET_3852
if 
  locate_char_on_foot_3d $scplayer {x} -1753.936 {y} 961.8587 {z} 23.8906 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} True
goto_if_false @VALET_3852
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_3836
if 
  not is_wanted_level_greater $player1 {wantedLevel} 0
goto_if_false @VALET_3813
print_now 'VAL_A7' {time} 5000 {flag} 1
$player_on_valet_mission = 1
$onmission = 1
goto @VALET_3829

:VALET_3813
print_now 'VAL_C1' {time} 1000 {flag} 1

:VALET_3829
goto @VALET_3852

:VALET_3836
print_now 'VAL_90' {time} 1000 {flag} 1

:VALET_3852
return 

:VALET_3854
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_7824
if 
  is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @VALET_3894
switch_emergency_services True

:VALET_3894
if 
  not is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_3958
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
print 'VAL_B1' {time} 5000 {flag} 1
$valet_mission_flag = 8

:VALET_3958
if 
  $valet_mission_car <> 0
goto_if_false @VALET_4102
if 
  not does_vehicle_exist $valet_mission_car
goto_if_false @VALET_4047
if 
  $valet_time_bonus > 0
goto_if_false @VALET_4033
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
$valet_mission_flag = 8

:VALET_4033
$valet_mission_car = 0
goto @VALET_4102

:VALET_4047
if 
  is_car_dead $valet_mission_car
goto_if_false @VALET_4102
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
print 'VAL_B6' {time} 5000 {flag} 1
$valet_mission_flag = 8

:VALET_4102
if 
  $tell_player_to_kill_valet == 0
goto_if_false @VALET_4152
if 
  not is_car_dead $mission_drop_off_car
goto_if_false @VALET_4152
$a_Car = get_car_blocking_car $mission_drop_off_car
set_var_int_to_var_int $steal_this_car = $a_Car

:VALET_4152
if 
  $valet_mission_flag == 0
goto_if_false @VALET_4575
if 
  has_model_loaded 189
goto_if_false @VALET_4570
if 
  is_char_dead $valet[0]
goto_if_false @VALET_4263
$valet[0] = create_char PedType.CivMale {modelId} 189 {x} -1783.804 {y} 968.6431 {z} 23.7343
set_char_decision_maker $valet[0] {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet[0] {state} True
set_char_suffers_critical_hits $valet[0] {state} False
$valet_task[0] = 2
0@ = 2

:VALET_4263
if 
  is_char_dead $valet[1]
goto_if_false @VALET_4340
$valet[1] = create_char PedType.CivMale {modelId} 189 {x} -1782.65 {y} 965.0251 {z} 23.8906
set_char_decision_maker $valet[1] {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet[1] {state} True
set_char_suffers_critical_hits $valet[1] {state} False
$valet_task[1] = 2
1@ = 2

:VALET_4340
if 
  is_char_dead $valet[2]
goto_if_false @VALET_4417
$valet[2] = create_char PedType.CivMale {modelId} 189 {x} -1783.731 {y} 965.4009 {z} 23.8961
set_char_decision_maker $valet[2] {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet[2] {state} True
set_char_suffers_critical_hits $valet[2] {state} False
$valet_task[2] = 2
2@ = 2

:VALET_4417
set_ped_density_multiplier 0.3
switch_emergency_services False
$valet_mission_car = 0
load_mission_text 'VALET1'
clear_prints 
print_big 'VAL_A7' {time} 3000 {style} TextStyle.Middle
$total_cars_parked = 0
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 4000
$valet_mission_flag = 1
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_4517
set_char_cant_be_dragged_out $valet[0] {state} True

:VALET_4517
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_4540
set_char_cant_be_dragged_out $valet[1] {state} True

:VALET_4540
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_4563
set_char_cant_be_dragged_out $valet[2] {state} True

:VALET_4563
goto @VALET_4575

:VALET_4570
request_model 189

:VALET_4575
if 
  $valet_mission_flag == 1
goto_if_false @VALET_4642
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4642
$valet_cars_to_park = 3
$valet_countdown = 2
18@ = 1
clear_prints 
$valet_mission_flag = 2

:VALET_4642
if 
  $valet_mission_flag == 2
goto_if_false @VALET_4931
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4931
clear_prints 
print_with_number_big 'VAL_60' {num} 18@ {duration} 4000 {style} TextStyle.Middle
print_with_2_numbers_now 'VAL_76' {num1} $valet_cars_to_park {num2} $valet_countdown {duration} 4000 {style} TextStyle.Middle
$valet_countdown *= 60000
clear_onscreen_counter $valet_countdown
clear_onscreen_counter $valet_cars_to_park
display_nth_onscreen_counter_with_string $valet_cars_to_park {display} CounterDisplay.Number {slot} 1 {text} 'VAL_A3'
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 5000
$valet_mission_flag = 4
if 
  $valet_task[0] == 6
goto_if_false @VALET_4815
$valet_task[0] = 1
$valet_mission_dead = 0

:VALET_4815
if 
  $valet_task[1] == 6
goto_if_false @VALET_4847
$valet_task[1] = 1
$1898 = 0

:VALET_4847
if 
  $valet_task[2] == 6
goto_if_false @VALET_4879
$valet_task[2] = 1
$1899 = 0

:VALET_4879
if 
  $drop_off_car <> 0
goto_if_false @VALET_4905
set_var_int_to_var_int $mission_drop_off_car = $drop_off_car

:VALET_4905
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_4931
set_var_int_to_var_int $mission_drop_off_car = $valet_pickup_car

:VALET_4931
if 
  $valet_mission_flag == 3
goto_if_false @VALET_4975
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 17@
goto_if_false @VALET_4975
$valet_mission_flag = 4

:VALET_4975
if and
  is_char_dead $valet[0]
  $valet_mission_dead == 0
  $valet_task[0] == 6
goto_if_false @VALET_5061
$valet_mission_dead = 1
$valet_countdown -= 20000
if 
  0 > $valet_countdown
goto_if_false @VALET_5045
$valet_countdown = 0

:VALET_5045
print 'VAL_A19' {time} 4000 {flag} 1

:VALET_5061
if and
  is_char_dead $valet[1]
  $1898 == 0
  $valet_task[1] == 6
goto_if_false @VALET_5147
$1898 = 1
$valet_countdown -= 20000
if 
  0 > $valet_countdown
goto_if_false @VALET_5131
$valet_countdown = 0

:VALET_5131
print 'VAL_A19' {time} 4000 {flag} 1

:VALET_5147
if and
  is_char_dead $valet[2]
  $1899 == 0
  $valet_task[2] == 6
goto_if_false @VALET_5233
$1899 = 1
$valet_countdown -= 20000
if 
  0 > $valet_countdown
goto_if_false @VALET_5217
$valet_countdown = 0

:VALET_5217
print 'VAL_A19' {time} 4000 {flag} 1

:VALET_5233
if 
  $valet_mission_flag > 3
goto_if_false @VALET_5310
if 
  $valet_countdown == 0
goto_if_false @VALET_5310
clear_prints 
print 'VAL_47' {time} 4000 {flag} 1
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
$valet_mission_flag = 8

:VALET_5310
if 
  $valet_mission_flag == 4
goto_if_false @VALET_5460
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_5460
if 
  not is_car_dead $valet_pickup_car
goto_if_false @VALET_5460
if 
  is_int_var_equal_to_int_var $valet_pickup_car == $mission_drop_off_car
goto_if_false @VALET_5460
$a_ped = get_driver_of_car $valet_pickup_car
if 
  $a_ped == -1
goto_if_false @VALET_5460
$valet_mission_flag = 20
print 'VAL_84' {time} 4000 {flag} 1
19@ = add_blip_for_car $valet_pickup_car
set_blip_as_friendly 19@ {state} True
set_var_int_to_var_int $valet_mission_car = $valet_pickup_car
$valet_mission_flag = 5

:VALET_5460
if 
  $valet_mission_flag == 5
goto_if_false @VALET_5859
if 
  not is_car_dead $valet_mission_car
goto_if_false @VALET_5833
$a_ped = get_driver_of_car $valet_mission_car
if 
  $a_ped <> -1
goto_if_false @VALET_5826
if 
  is_int_var_equal_to_int_var $a_ped == $scplayer
goto_if_false @VALET_5749
clear_prints 
print 'VAL_25' {time} 4000 {flag} 1
remove_blip 19@
$valet_time_bonus = 60
set_car_health $valet_mission_car {health} 1000
clear_onscreen_counter $valet_time_bonus
display_nth_onscreen_counter_with_string $valet_time_bonus {display} CounterDisplay.Number {slot} 2 {text} 'VAL_A17'
21@, 22@, 23@ = get_parking_node_in_area $car_park_area_x1($val_Area,4f) {leftBottomY} $car_park_area_y1($val_Area,4f) {leftBottomZ} $car_park_area_z1($val_Area,4f) {rightTopX} $car_park_area_x2($val_Area,4f) {rightTopY} $car_park_area_y2($val_Area,4f) {rightTopZ} $car_park_area_z2($val_Area,4f)
if 
  21@ <> 0.0
goto_if_false @VALET_5742
clear_area 21@ {y} 22@ {z} 23@ {radius} 5.0 {clearParticles} False
set_var_float_to_lvar_float $parking_x = 21@
set_var_float_to_lvar_float $parking_y = 22@
set_var_float_to_lvar_float $parking_z = 23@
remove_blip 20@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
$valet_mission_flag = 6

:VALET_5742
goto @VALET_5826

:VALET_5749
if or
  is_int_var_equal_to_int_var $a_ped == $valet[0]
  is_int_var_equal_to_int_var $a_ped == $valet[1]
  is_int_var_equal_to_int_var $a_ped == $valet[2]
goto_if_false @VALET_5826
remove_blip 19@
print 'VAL_79' {time} 4000 {flag} 1
$valet_mission_flag = 4
$valet_mission_car = 0
$mission_drop_off_car = 0

:VALET_5826
goto @VALET_5859

:VALET_5833
remove_blip 19@
$valet_mission_flag = 4
$valet_mission_car = 0
$mission_drop_off_car = 0

:VALET_5859
if 
  $valet_mission_flag == 6
goto_if_false @VALET_7414
if 
  not is_char_dead $scplayer
goto_if_false @VALET_7414
if 
  not is_car_dead $valet_mission_car
goto_if_false @VALET_7391
$valet_time_bonus = get_car_health $valet_mission_car
$a_int = 17
sub_int_lvar_from_int_var $a_int -= 18@
$a_int *= 20
$valet_time_bonus += -1000
abs_var_int $valet_time_bonus
cset_lvar_float_to_var_int 13@ =# $valet_time_bonus
cset_lvar_float_to_var_int 27@ =# $a_int
set_lvar_float_to_lvar_float 28@ = 13@
div_float_lvar_by_float_lvar 28@ /= 27@
if 
  28@ > 1.0
goto_if_false @VALET_6015
28@ = 1.0

:VALET_6015
28@ -= 1.0
28@ = abs_lvar_float 
28@ *= 45.0
cset_var_int_to_lvar_float $valet_time_bonus =# 28@
if 
  $valet_time_bonus > 45
goto_if_false @VALET_6073
$valet_time_bonus = 45

:VALET_6073
if 
  0 > $valet_time_bonus
goto_if_false @VALET_6098
$valet_time_bonus = 0

:VALET_6098
$a_ped = get_driver_of_car $valet_mission_car
if 
  not is_int_var_equal_to_int_var $a_ped == $scplayer
goto_if_false @VALET_6157
remove_blip 20@
19@ = add_blip_for_car $valet_mission_car
set_blip_as_friendly 19@ {state} True
clear_onscreen_counter $valet_time_bonus
$valet_mission_flag = 7

:VALET_6157
if and
  $a_ped <> -1
  not is_int_var_equal_to_int_var $a_ped == $scplayer
  not is_int_var_equal_to_int_var $a_ped == $valet[0]
  not is_int_var_equal_to_int_var $a_ped == $valet[1]
  not is_int_var_equal_to_int_var $a_ped == $valet[2]
goto_if_false @VALET_6247
$valet_mission_car = 0
remove_blip 19@
clear_onscreen_counter $valet_time_bonus
$valet_mission_flag = 4
print 'VAL_A4' {time} 4000 {flag} 1

:VALET_6247
if 
  is_char_in_any_car $scplayer
goto_if_false @VALET_6298
if 
  not is_char_in_car $scplayer {vehicle} $valet_mission_car
goto_if_false @VALET_6298
print_now 'VAL_A18' {time} 1000 {flag} 1

:VALET_6298
if 
  locate_stopped_car_3d $valet_mission_car {x} 21@ {y} 22@ {z} 23@ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 4.0 {drawSphere} True
goto_if_false @VALET_7384
remove_blip 20@
set_car_engine_broken $valet_mission_car {state} True
mark_car_as_no_longer_needed $valet_mission_car
clear_onscreen_counter $valet_time_bonus
set_lvar_int_to_var_int 6@ = $valet_countdown
$x, $y, $z, 24@ = get_closest_car_node_with_heading 21@ {y} 22@ {z} 23@
$x, $y, $z = get_car_coordinates $valet_mission_car
26@ = get_distance_between_coords_2d $x {fromY} $y {toX} 21@ {toZ} 22@
25@ = get_car_heading $valet_mission_car
24@ = abs_lvar_float 
if 
  24@ > 180.0
goto_if_false @VALET_6468
24@ -= 180.0

:VALET_6468
25@ = abs_lvar_float 
if 
  25@ > 180.0
goto_if_false @VALET_6504
25@ -= 180.0

:VALET_6504
set_lvar_float_to_lvar_float 27@ = 24@
sub_float_lvar_from_float_lvar 27@ -= 25@
27@ = abs_lvar_float 
cset_lvar_float_to_lvar_int 13@ =# 18@
13@ *= 2.0
29@ = 45.0
sub_float_lvar_from_float_lvar 29@ -= 13@
set_lvar_float_to_lvar_float 28@ = 27@
div_float_lvar_by_float_lvar 28@ /= 29@
13@ = 1.0
sub_float_lvar_from_float_lvar 13@ -= 28@
if 
  0.0 > 13@
goto_if_false @VALET_6626
13@ = 0.0

:VALET_6626
13@ *= 10.0
cset_var_int_to_lvar_float $angle_bonus =# 13@
cset_var_int_to_lvar_float $parking_bonus =# 13@
cset_lvar_float_to_lvar_int 13@ =# 18@
13@ -= 20.0
13@ = abs_lvar_float 
13@ /= 6.0
set_lvar_float_to_lvar_float 27@ = 26@
div_float_lvar_by_float_lvar 27@ /= 13@
28@ = 1.0
sub_float_lvar_from_float_lvar 28@ -= 27@
if 
  0.0 > 28@
goto_if_false @VALET_6750
28@ = 0.0

:VALET_6750
28@ *= 5.0
cset_var_int_to_lvar_float $a_int =# 28@
set_var_int_to_var_int $distance_bonus = $a_int
add_int_var_to_int_var $parking_bonus += $a_int
if and
  $parking_bonus <> 1
  $valet_time_bonus <> 1
goto_if_false @VALET_6831
print_with_2_numbers_now 'VAL_A10' {num1} $parking_bonus {num2} $valet_time_bonus {duration} 2500 {style} TextStyle.Middle

:VALET_6831
if and
  $parking_bonus == 1
  $valet_time_bonus <> 1
goto_if_false @VALET_6878
print_with_2_numbers_now 'VAL_A12' {num1} $parking_bonus {num2} $valet_time_bonus {duration} 2500 {style} TextStyle.Middle

:VALET_6878
if and
  $parking_bonus <> 1
  $valet_time_bonus == 1
goto_if_false @VALET_6925
print_with_2_numbers_now 'VAL_A11' {num1} $parking_bonus {num2} $valet_time_bonus {duration} 2500 {style} TextStyle.Middle

:VALET_6925
if and
  $parking_bonus == 0
  $valet_time_bonus == 0
goto_if_false @VALET_6972
print_with_2_numbers_now 'VAL_A13' {num1} $parking_bonus {num2} $valet_time_bonus {duration} 2500 {style} TextStyle.Middle

:VALET_6972
set_var_int_to_var_int $a_int = $parking_bonus
add_int_var_to_int_var $a_int += $valet_time_bonus
if 
  $a_int <> 1
goto_if_false @VALET_7032
print_with_number 'VAL_A14' {num} $a_int {duration} 2500 {flag} 1
goto @VALET_7051

:VALET_7032
print_with_number 'VAL_A15' {num} $a_int {duration} 2500 {flag} 1

:VALET_7051
print 'VAL_A16' {time} 3000 {flag} 1
$valet_time_bonus *= 1000
$parking_bonus *= 1000
add_int_var_to_int_var $valet_countdown += $valet_time_bonus
add_int_var_to_int_var $valet_countdown += $parking_bonus
$valet_time_bonus = 0
$valet_mission_car = 0
$valet_cars_to_park -= 1
$total_cars_parked += 1
$a_int = get_int_stat StatId.ValetCarsParked
if 
  is_int_var_greater_than_int_var $total_cars_parked > $a_int
goto_if_false @VALET_7162
set_int_stat StatId.ValetCarsParked {value} $total_cars_parked

:VALET_7162
if 
  $valet_cars_to_park == 0
goto_if_false @VALET_7377
clear_prints 
clear_onscreen_timer $valet_countdown
clear_onscreen_counter $valet_cars_to_park
18@ += 1
$valet_mission_flag = 2
set_var_int_to_lvar_int $valet_cars_to_park = 18@
$valet_cars_to_park += 2
$valet_countdown = 2
if 
  6 > 18@
goto_if_false @VALET_7345
set_var_int_to_lvar_int $a_int = 18@
$a_int -= 1
print_with_number_big 'VAL_62' {num} $a_int {duration} 3000 {style} TextStyle.Middle
set_var_int_to_lvar_int $a_int = 18@
$a_int *= 100
$a_int -= 100
print_with_number 'VAL_65' {num} $a_int {duration} 4000 {flag} 1
add_score $player1 {money} $a_int
set_lvar_int_to_lvar_int 17@ = TIMERA
17@ += 5000

:VALET_7345
if 
  18@ == 6
goto_if_false @VALET_7370
gosub @VALET_16426

:VALET_7370
goto @VALET_7384

:VALET_7377
$valet_mission_flag = 4

:VALET_7384
goto @VALET_7414

:VALET_7391
print_big 'VAL_A6' {time} 4000 {style} TextStyle.Middle
$valet_mission_flag = 8

:VALET_7414
if 
  $valet_mission_flag == 7
goto_if_false @VALET_7659
if 
  not is_car_dead $valet_mission_car
goto_if_false @VALET_7633
$a_ped = get_driver_of_car $valet_mission_car
if 
  $a_ped <> -1
goto_if_false @VALET_7626
if 
  is_int_var_equal_to_int_var $a_ped == $scplayer
goto_if_false @VALET_7549
remove_blip 19@
20@ = add_blip_for_coord 21@ {y} 22@ {z} 23@
clear_onscreen_counter $valet_time_bonus
display_nth_onscreen_counter_with_string $valet_time_bonus {display} CounterDisplay.Number {slot} 2 {text} 'VAL_A17'
$valet_mission_flag = 6
goto @VALET_7626

:VALET_7549
if or
  is_int_var_equal_to_int_var $a_ped == $valet[0]
  is_int_var_equal_to_int_var $a_ped == $valet[1]
  is_int_var_equal_to_int_var $a_ped == $valet[2]
goto_if_false @VALET_7626
remove_blip 19@
print 'VAL_79' {time} 4000 {flag} 1
$valet_mission_flag = 4
$valet_mission_car = 0
$mission_drop_off_car = 0

:VALET_7626
goto @VALET_7659

:VALET_7633
remove_blip 19@
$valet_mission_flag = 4
$valet_mission_car = 0
$mission_drop_off_car = 0

:VALET_7659
if 
  $valet_mission_flag == 8
goto_if_false @VALET_7824
remove_blip 19@
remove_blip 20@
clear_onscreen_counter $valet_time_bonus
clear_onscreen_timer $valet_countdown
clear_onscreen_counter $valet_cars_to_park
set_ped_density_multiplier 1.0
switch_emergency_services True
$player_on_valet_mission = 0
$onmission = 0
$valet_mission_flag = 0
$valet_mission_car = 0
$play_was_on_valet_oddjob = 1
set_wanted_multiplier 1.0
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_7778
set_char_cant_be_dragged_out $valet[0] {state} False

:VALET_7778
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_7801
set_char_cant_be_dragged_out $valet[1] {state} False

:VALET_7801
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_7824
set_char_cant_be_dragged_out $valet[2] {state} False

:VALET_7824
return 

:VALET_7826
6@ = 0

:VALET_7833
if 
  3 > 6@
goto_if_false @VALET_13003
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_7969
if 
  is_char_stuck_under_car $valet(6@,3i)
goto_if_false @VALET_7969
3@ = get_script_task_status $valet(6@,3i) {taskId} 2089
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_7969
clear_char_tasks_immediately $valet(6@,3i)
task_die_named_anim $valet(6@,3i) {animationName} "KO_SKID_FRONT" {animationFile} "PED" {blendSpeed} 1000.0 {time} 0

:VALET_7969
if and
  $valet_task(6@,3i) <> 4
  $valet_task(6@,3i) <> 5
goto_if_false @VALET_8379
if and
  not is_char_dead $valet(6@,3i)
  not is_char_dead $scplayer
goto_if_false @VALET_8379
if 
  is_char_responding_to_event $valet(6@,3i) {event} Event.Damage
goto_if_false @VALET_8328
if or
  locate_char_any_means_char_3d $scplayer {target} $valet(6@,3i) {xRadius} 5.0 {yRadius} 5.0 {zRadius} 5.0 {drawSphere} False
  has_char_been_damaged_by_char $valet(6@,3i) {handle} $scplayer
goto_if_false @VALET_8312
$valet_task(6@,3i) = 5
$this_a += 1
clear_char_tasks $valet(6@,3i)
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_8187
if 
  locate_char_any_means_char_3d $scplayer {target} $valet[0] {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8187
$valet_task[0] = 5

:VALET_8187
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_8246
if 
  locate_char_any_means_char_3d $scplayer {target} $valet[1] {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8246
$valet_task[1] = 5

:VALET_8246
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_8305
if 
  locate_char_any_means_char_3d $scplayer {target} $valet[2] {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8305
$valet_task[2] = 5

:VALET_8305
goto @VALET_8328

:VALET_8312
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_8328
if 
  $valet_task(6@,3i) <> 9
goto_if_false @VALET_8379
if 
  is_int_var_equal_to_constant $valet_event == 7
goto_if_false @VALET_8379
$valet_task(6@,3i) = 9

:VALET_8379
if 
  $valet_task(6@,3i) <> 1
goto_if_false @VALET_8688
if 
  does_char_exist $valet(6@,3i)
goto_if_false @VALET_8688
if 
  is_char_dead $valet(6@,3i)
goto_if_false @VALET_8688
$x, $y, $z = get_dead_char_coordinates $valet(6@,3i)
if 
  $valet_task(6@,3i) <> 6
goto_if_false @VALET_8668
if 
  not is_char_dead $scplayer
goto_if_false @VALET_8560
if 
  locate_char_any_means_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
goto_if_false @VALET_8560
$valet_task[0] = 5
$valet_task[1] = 5
$valet_task[2] = 5

:VALET_8560
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_8668
if or
  is_float_var_greater_than_float_var $car_park_area_x1($val_Area,4f) > $x
  is_float_var_greater_than_float_var $car_park_area_y1($val_Area,4f) > $y
  is_float_var_greater_than_float_var $car_park_area_z1($val_Area,4f) > $z
  is_float_var_greater_than_float_var $x > $car_park_area_x2($val_Area,4f)
  is_float_var_greater_than_float_var $y > $car_park_area_y2($val_Area,4f)
  is_float_var_greater_than_float_var $z > $car_park_area_z2($val_Area,4f)
goto_if_false @VALET_8668
alter_wanted_level_no_drop $player1 {wantedLevel} 1

:VALET_8668
$valet_task(6@,3i) = 6
mark_char_as_no_longer_needed $valet(6@,3i)

:VALET_8688
switch_start $valet_task(6@,3i) {numCases} 11 {hasDefaultCase} 0 {defaultLabel} @VALET_12989 {caseNum1} 1 {caseLabel1} @VALET_8820 {caseNum2} 2 {caseLabel2} @VALET_9133 {caseNum3} 3 {caseLabel3} @VALET_9747 {caseNum4} 4 {caseLabel4} @VALET_10490 {caseNum5} 5 {caseLabel5} @VALET_10598 {caseNum6} 6 {caseLabel6} @VALET_12982 {caseNum7} 7 {caseLabel7} @VALET_11095
switch_continued 8 {caseLabel1} @VALET_12269 {caseNum2} 9 {caseLabel2} @VALET_12591 {caseNum3} 10 {caseLabel3} @VALET_10309 {caseNum4} 11 {caseLabel4} @VALET_12776 {caseNum5} -1 {caseLabel5} @VALET_12989 {caseNum6} -1 {caseLabel6} @VALET_12989 {caseNum7} -1 {caseLabel7} @VALET_12989 {caseNum8} -1 {caseLabel8} @VALET_12989 {caseNum9} -1 {caseLabel9} @VALET_12989

:VALET_8820
if 
  $valet_can_be_created(6@,3i) == 1
goto_if_false @VALET_9126
request_model 189
if 
  has_model_loaded 189
goto_if_false @VALET_9126
if 
  $val_Area == 1
goto_if_false @VALET_8932
create_char PedType.Mission1 {modelId} 189 {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {var_handle} $valet(6@,3i)
set_char_heading $valet(6@,3i) {heading} $valet_la_h(6@,3f)

:VALET_8932
if 
  $val_Area == 2
goto_if_false @VALET_9001
create_char PedType.Mission1 {modelId} 189 {x} $valet_sf_x(6@,3f) {y} $valet_sf_y(6@,3f) {z} $valet_sf_z(6@,3f) {var_handle} $valet(6@,3i)
set_char_heading $valet(6@,3i) {heading} $valet_sf_h(6@,3f)

:VALET_9001
if 
  $val_Area == 3
goto_if_false @VALET_9070
create_char PedType.Mission1 {modelId} 189 {x} $valet_vg_x(6@,3f) {y} $valet_vg_y(6@,3f) {z} $valet_vg_z(6@,3f) {var_handle} $valet(6@,3i)
set_char_heading $valet(6@,3i) {heading} $valet_vg_h(6@,3f)

:VALET_9070
set_char_decision_maker $valet(6@,3i) {handleOrTemplate} 7@
set_char_only_damaged_by_player $valet(6@,3i) {state} True
set_char_suffers_critical_hits $valet(6@,3i) {state} False
$valet_task(6@,3i) = 2
0@(6@,3i) = 2

:VALET_9126
goto @VALET_12989

:VALET_9133
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 8@
goto_if_false @VALET_9740
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_9740
if 
  $val_Area == 1
goto_if_false @VALET_9326
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VALET_9326
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $valet_la_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
$valet_task(6@,3i) = 3

:VALET_9326
if 
  $val_Area == 2
goto_if_false @VALET_9586
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_sf_x(6@,3f) {y} $valet_sf_y(6@,3f) {z} $valet_sf_z(6@,3f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VALET_9487
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $valet_sf_x(6@,3f) {y} $valet_sf_y(6@,3f) {z} $valet_sf_z(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $valet_sf_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
$valet_task(6@,3i) = 3
goto @VALET_9586

:VALET_9487
3@ = get_script_task_status $valet(6@,3i) {taskId} 1492
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_9586
$val_h = get_char_heading $valet(6@,3i)
sub_float_var_from_float_var $val_h -= $valet_sf_h(6@,3f)
abs_var_float $val_h
if 
  10.0 <= $val_h
goto_if_false @VALET_9586
task_achieve_heading $valet(6@,3i) {heading} $valet_sf_h(6@,3f)

:VALET_9586
if 
  $val_Area == 3
goto_if_false @VALET_9740
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_vg_x(6@,3f) {y} $valet_vg_y(6@,3f) {z} $valet_vg_z(6@,3f) {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @VALET_9740
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $valet_vg_x(6@,3f) {y} $valet_vg_y(6@,3f) {z} $valet_vg_z(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $valet_vg_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
$valet_task(6@,3i) = 3

:VALET_9740
goto @VALET_12989

:VALET_9747
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_10302
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_10302
3@ = get_script_task_status $valet(6@,3i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10302
if 
  $val_Area == 1
goto_if_false @VALET_9980
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_9969
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $valet_la_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
goto @VALET_9980

:VALET_9969
$valet_task(6@,3i) = 2

:VALET_9980
if 
  $val_Area == 2
goto_if_false @VALET_10141
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_sf_x(6@,3f) {y} $valet_sf_y(6@,3f) {z} $valet_sf_z(6@,3f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_10130
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $valet_sf_x(6@,3f) {y} $valet_sf_y(6@,3f) {z} $valet_sf_z(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $valet_sf_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
goto @VALET_10141

:VALET_10130
$valet_task(6@,3i) = 2

:VALET_10141
if 
  $val_Area == 3
goto_if_false @VALET_10302
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_vg_x(6@,3f) {y} $valet_vg_y(6@,3f) {z} $valet_vg_z(6@,3f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_10291
11@ = open_sequence_task 
task_follow_path_nodes_to_coord -1 {x} $valet_vg_x(6@,3f) {y} $valet_vg_y(6@,3f) {z} $valet_vg_z(6@,3f) {speed} MoveState.Run {time} -2
task_achieve_heading -1 {heading} $valet_vg_h(6@,3f)
close_sequence_task 11@
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@
goto @VALET_10302

:VALET_10291
$valet_task(6@,3i) = 2

:VALET_10302
goto @VALET_12989

:VALET_10309
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_10483
3@ = get_script_task_status $valet(6@,3i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10483
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_exit_x($val_Area,4f) {y} $valet_exit_y($val_Area,4f) {z} $valet_exit_z($val_Area,4f) {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @VALET_10461
task_follow_path_nodes_to_coord $valet(6@,3i) {x} $valet_exit_x($val_Area,4f) {y} $valet_exit_y($val_Area,4f) {z} $valet_exit_z($val_Area,4f) {speed} MoveState.Run {time} -2
goto @VALET_10483

:VALET_10461
0@(6@,3i) = 3
$valet_task(6@,3i) = 3

:VALET_10483
goto @VALET_12989

:VALET_10490
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_10591
if 
  not is_char_responding_to_event $valet(6@,3i) {event} Event.Damage
goto_if_false @VALET_10575
task_play_anim_non_interruptable $valet(6@,3i) {animationName} "FUCKU" {animationFile} "PED" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -2
4@ += 1

:VALET_10575
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10591
goto @VALET_12989

:VALET_10598
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_11088
3@ = get_script_task_status $valet(6@,3i) {taskId} 1506
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_10663
task_kill_char_on_foot $valet(6@,3i) {target} $scplayer

:VALET_10663
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_11088
if 
  not is_char_dead $scplayer
goto_if_false @VALET_11088
if 
  $val_Area == 1
goto_if_false @VALET_10828
if or
  not locate_char_any_means_char_3d $valet(6@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_10828
clear_char_tasks $valet(6@,3i)
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10828
if 
  $val_Area == 2
goto_if_false @VALET_10958
if or
  not locate_char_any_means_char_3d $valet(6@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_sf_x(6@,3f) {y} $valet_sf_y(6@,3f) {z} $valet_sf_z(6@,3f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_10958
clear_char_tasks $valet(6@,3i)
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_10958
if 
  $val_Area == 3
goto_if_false @VALET_11088
if or
  not locate_char_any_means_char_3d $valet(6@,3i) {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {zRadius} 15.0 {drawSphere} False
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_vg_x(6@,3f) {y} $valet_vg_y(6@,3f) {z} $valet_vg_z(6@,3f) {xRadius} 10.0 {yRadius} 10.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @VALET_11088
clear_char_tasks $valet(6@,3i)
set_var_int_to_lvar_int $valet_task(6@,3i) = 0@(6@,3i)

:VALET_11088
goto @VALET_12989

:VALET_11095
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_12262
if 
  $val_Area == 1
goto_if_false @VALET_11224
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_la_x(6@,3f) {y} $valet_la_y(6@,3f) {z} $valet_la_z(6@,3f) {xRadius} 23.0 {yRadius} 23.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_11224
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11224
if 
  $val_Area == 2
goto_if_false @VALET_11333
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_sf_x(6@,3f) {y} $valet_sf_y(6@,3f) {z} $valet_sf_z(6@,3f) {xRadius} 23.0 {yRadius} 23.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_11333
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11333
if 
  $val_Area == 3
goto_if_false @VALET_11442
if 
  not locate_char_any_means_3d $valet(6@,3i) {x} $valet_vg_x(6@,3f) {y} $valet_vg_y(6@,3f) {z} $valet_vg_z(6@,3f) {xRadius} 23.0 {yRadius} 23.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_11442
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11442
if 
  $valet_task(6@,3i) <> 2
goto_if_false @VALET_12262
3@ = get_script_task_status $valet(6@,3i) {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12017
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_11977
if 
  is_char_in_car $valet(6@,3i) {vehicle} $valet_car(6@,3i)
goto_if_false @VALET_11812
$x, $y, $z = get_parking_node_in_area $car_park_area_x1($val_Area,4f) {leftBottomY} $car_park_area_y1($val_Area,4f) {leftBottomZ} $car_park_area_z1($val_Area,4f) {rightTopX} $car_park_area_x2($val_Area,4f) {rightTopY} $car_park_area_y2($val_Area,4f) {rightTopZ} $car_park_area_z2($val_Area,4f)
if 
  $x <> 0.0
goto_if_false @VALET_11805
if 
  is_int_var_equal_to_int_var $valet_car(6@,3i) == $valet_pickup_car
goto_if_false @VALET_11648
$valet_pickup_car = 0

:VALET_11648
set_var_float_to_var_float $parking_x = $x
set_var_float_to_var_float $parking_y = $y
set_var_float_to_var_float $parking_z = $z
if 
  is_vehicle_attached $valet_car(6@,3i)
goto_if_false @VALET_11718
detach_car $valet_car(6@,3i) {x} 0.0 {y} 0.0 {z} 0.0 {collisionDetection} False

:VALET_11718
task_car_drive_to_coord $valet(6@,3i) {vehicle} $valet_car(6@,3i) {x} $x {y} $y {z} $z {speed} 15.0 {driveStyle} DriveMode.Accurate {modelId} 0 {drivingStyle} DrivingMode.StopForCars
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_11783
set_char_cant_be_dragged_out $valet(6@,3i) {state} True

:VALET_11783
$valet_task(6@,3i) = 8
0@(6@,3i) = 7

:VALET_11805
goto @VALET_11970

:VALET_11812
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_11937
if 
  locate_char_any_means_car_3d $valet(6@,3i) {vehicle} $valet_car(6@,3i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @VALET_11930
11@ = open_sequence_task 
task_pause -1 {time} 3000
task_enter_car_as_driver -1 {vehicle} $valet_car(6@,3i) {time} -2
close_sequence_task 11@
$this_b += 1
perform_sequence_task $valet(6@,3i) {sequence} 11@
clear_sequence_task 11@

:VALET_11930
goto @VALET_11970

:VALET_11937
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_11970
goto @VALET_12010

:VALET_11977
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_12010
goto @VALET_12262

:VALET_12017
if and
  not is_car_dead $valet_car(6@,3i)
  not is_char_dead $scplayer
goto_if_false @VALET_12262
$a_Car = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_var $a_Car == $valet_car(6@,3i)
goto_if_false @VALET_12158
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_12158
if and
  not is_char_getting_in_to_a_car $valet(6@,3i)
  not is_char_in_any_car $valet(6@,3i)
goto_if_false @VALET_12158
clear_char_tasks $valet(6@,3i)
$valet_task(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_12158
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_12255
if 
  not locate_char_any_means_car_3d $valet(6@,3i) {vehicle} $valet_car(6@,3i) {xRadius} 20.0 {yRadius} 20.0 {zRadius} 20.0 {drawSphere} False
goto_if_false @VALET_12255
$valet_task(6@,3i) = 2
0@(6@,3i) = 2
$valet_car(6@,3i) = 0

:VALET_12255
goto @VALET_12262

:VALET_12262
goto @VALET_12989

:VALET_12269
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_12584
3@ = get_script_task_status $valet(6@,3i) {taskId} 1489
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12444
if 
  is_char_in_area_3d $valet(6@,3i) {leftBottomX} $car_park_area_x1($val_Area,4f) {leftBottomY} $car_park_area_y1($val_Area,4f) {leftBottomZ} $car_park_area_z1($val_Area,4f) {rightTopX} $car_park_area_x2($val_Area,4f) {rightTopY} $car_park_area_y2($val_Area,4f) {rightTopZ} $car_park_area_z2($val_Area,4f) {drawSphere} False
goto_if_false @VALET_12415
$valet_task(6@,3i) = 3
0@(6@,3i) = 3
goto @VALET_12437

:VALET_12415
$valet_task(6@,3i) = 3
0@(6@,3i) = 3

:VALET_12437
goto @VALET_12584

:VALET_12444
if or
  $onmission == 0
  $player_on_valet_mission == 1
  $force_valet_on_mission > 0
goto_if_false @VALET_12584
if 
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_12584
$a_Car = get_car_blocking_car $valet_car(6@,3i)
if 
  not is_car_dead $a_Car
goto_if_false @VALET_12584
$a_ped = get_driver_of_car $a_Car
if or
  is_int_var_equal_to_int_var $a_ped == $scplayer
  $a_ped == -1
goto_if_false @VALET_12584
if 
  $a_Car <> -1
goto_if_false @VALET_12584
set_var_int_to_var_int $steal_this_car = $a_Car

:VALET_12584
goto @VALET_12989

:VALET_12591
if and
  not is_char_dead $valet(6@,3i)
  not is_car_dead $valet_car(6@,3i)
goto_if_false @VALET_12769
if 
  not is_char_in_car $valet(6@,3i) {vehicle} $valet_car(6@,3i)
goto_if_false @VALET_12769
$a_char = get_driver_of_car $valet_car(6@,3i)
if 
  $a_char <> -1
goto_if_false @VALET_12769
$a_Car = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_var $a_Car == $valet_car(6@,3i)
goto_if_false @VALET_12758
if 
  is_player_wearing $player1 {bodyPart} BodyPart.SpecialCostume {modelName} "VALET"
goto_if_false @VALET_12740
goto @VALET_12751

:VALET_12740
$valet_task(6@,3i) = 2

:VALET_12751
goto @VALET_12769

:VALET_12758
$valet_task(6@,3i) = 2

:VALET_12769
goto @VALET_12989

:VALET_12776
if 
  not is_char_dead $valet(6@,3i)
goto_if_false @VALET_12975
3@ = get_script_task_status $valet(6@,3i) {taskId} 1655
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12975
if 
  6@ == 0
goto_if_false @VALET_12975
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_12975
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_12975
3@ = get_script_task_status $valet[1] {taskId} 1655
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12975
3@ = get_script_task_status $valet[0] {taskId} 1655
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_12975
task_chat_with_char $valet[0] {other} $valet[1] {leadSpeaker} True {_p4} 1
task_chat_with_char $valet[1] {other} $valet[0] {leadSpeaker} False {_p4} 1
0@ = 11
1@ = 11

:VALET_12975
goto @VALET_12989

:VALET_12982
goto @VALET_12989

:VALET_12989
6@ += 1
goto @VALET_7833

:VALET_13003
return 

:VALET_13005
if or
  $freeze_creating_drop_off_cars == 0
  $force_a_one_off_car > 0
goto_if_false @VALET_13219
if 
  $create_drop_off_car_now == 0
goto_if_false @VALET_13219
if 
  $drop_off_car == 0
goto_if_false @VALET_13219
if 
  not is_area_occupied $valet_drop_off_area_x1($val_Area,4f) {leftBottomY} $valet_drop_off_area_y1($val_Area,4f) {leftBottomZ} 0.0 {rightTopX} $valet_drop_off_area_x2($val_Area,4f) {rightTopY} $valet_drop_off_area_y2($val_Area,4f) {rightTopZ} 80.0 {solid} False {car} True {char} False {object} False {particle} False
goto_if_false @VALET_13148
$force_a_one_off_car -= 1
$create_drop_off_car_now = 1
15@ = 0

:VALET_13148
if 
  $create_drop_off_car_now == 0
goto_if_false @VALET_13219
if and
  $valet_mission_car == 0
  $valet_pickup_car == 0
  $drop_off_car == 0
goto_if_false @VALET_13219
$force_a_one_off_car -= 1
$create_drop_off_car_now = 1
15@ = 0

:VALET_13219
if 
  $drop_off_car <> 0
goto_if_false @VALET_13376
if 
  is_car_dead $drop_off_car
goto_if_false @VALET_13267
$debug_this = 1
$drop_off_car = 0

:VALET_13267
if 
  not is_car_dead $drop_off_car
goto_if_false @VALET_13376
$a_ped = get_driver_of_car $drop_off_car
if 
  not is_char_dead $a_ped
goto_if_false @VALET_13331
if 
  not is_char_sitting_in_car $a_ped {vehicle} $drop_off_car
goto_if_false @VALET_13331
mark_car_as_no_longer_needed $drop_off_car

:VALET_13331
if or
  $a_ped == -1
  is_int_var_equal_to_int_var $a_ped == $scplayer
goto_if_false @VALET_13376
mark_car_as_no_longer_needed $drop_off_car
$debug_this = 2
$drop_off_car = 0

:VALET_13376
if 
  $valet_pickup_car <> 0
goto_if_false @VALET_13491
if 
  is_car_dead $valet_pickup_car
goto_if_false @VALET_13417
$valet_pickup_car = 0

:VALET_13417
if 
  not is_car_dead $valet_pickup_car
goto_if_false @VALET_13491
$a_ped = get_driver_of_car $valet_pickup_car
if 
  is_int_var_equal_to_int_var $a_ped == $scplayer
goto_if_false @VALET_13491
if 
  not is_int_var_equal_to_int_var $valet_pickup_car == $sc3_missioncar
goto_if_false @VALET_13484
mark_car_as_no_longer_needed $valet_pickup_car

:VALET_13484
$valet_pickup_car = 0

:VALET_13491
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 9@
goto_if_false @VALET_14625
if or
  $valet_task[0] == 2
  $valet_task[1] == 2
  $valet_task[2] == 2
  $player_on_valet_mission == 1
  $onmission == 1
goto_if_false @VALET_14625
if and
  $valet_task[0] <> 7
  $valet_task[1] <> 7
  $valet_task[2] <> 7
goto_if_false @VALET_14625
$a_pickup_car = get_random_car_of_type_in_area_no_save $valet_drop_off_area_x1($val_Area,4f) {leftBottomY} $valet_drop_off_area_y1($val_Area,4f) {rightTopX} $valet_drop_off_area_x2($val_Area,4f) {rightTopY} $valet_drop_off_area_y2($val_Area,4f) {modelId} -1
if 
  not is_car_dead $sc3_missioncar
goto_if_false @VALET_13693
if 
  is_car_in_area_2d $sc3_missioncar {leftBottomX} $valet_drop_off_area_x1($val_Area,4f) {leftBottomY} $valet_drop_off_area_y1($val_Area,4f) {rightTopX} $valet_drop_off_area_x2($val_Area,4f) {rightTopY} $valet_drop_off_area_y2($val_Area,4f) {drawSphere} False
goto_if_false @VALET_13693
set_var_int_to_var_int $a_pickup_car = $sc3_missioncar

:VALET_13693
if 
  $a_pickup_car == -1
goto_if_false @VALET_13781
if 
  not is_car_dead $drop_off_car
goto_if_false @VALET_13781
if 
  is_car_in_area_2d $drop_off_car {leftBottomX} $valet_drop_off_area_x1($val_Area,4f) {leftBottomY} $valet_drop_off_area_y1($val_Area,4f) {rightTopX} $valet_drop_off_area_x2($val_Area,4f) {rightTopY} $valet_drop_off_area_y2($val_Area,4f) {drawSphere} False
goto_if_false @VALET_13781
set_var_int_to_var_int $a_pickup_car = $drop_off_car

:VALET_13781
if 
  $a_pickup_car == -1
goto_if_false @VALET_13869
if 
  not is_car_dead $mission_drop_off_car
goto_if_false @VALET_13869
if 
  is_car_in_area_2d $mission_drop_off_car {leftBottomX} $valet_drop_off_area_x1($val_Area,4f) {leftBottomY} $valet_drop_off_area_y1($val_Area,4f) {rightTopX} $valet_drop_off_area_x2($val_Area,4f) {rightTopY} $valet_drop_off_area_y2($val_Area,4f) {drawSphere} False
goto_if_false @VALET_13869
set_var_int_to_var_int $a_pickup_car = $mission_drop_off_car

:VALET_13869
$blah = 0
if 
  $a_pickup_car <> -1
goto_if_false @VALET_14006
set_var_int_to_var_int $blahb = $a_pickup_car
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_14006
$a_ped = get_driver_of_car $a_pickup_car
if 
  $a_ped == -1
goto_if_false @VALET_14006
12@ = get_vehicle_class $a_pickup_car
if and
  not is_int_lvar_equal_to_constant 12@ == 0
  not is_int_lvar_equal_to_constant 12@ == 1
  not is_int_lvar_equal_to_constant 12@ == 2
  not is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_14006
set_var_int_to_var_int $steal_this_car = $a_pickup_car
$a_pickup_car = -1

:VALET_14006
if 
  $a_pickup_car <> -1
goto_if_false @VALET_14071
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_14071
if 
  is_emergency_services_vehicle $a_pickup_car
goto_if_false @VALET_14071
set_var_int_to_var_int $steal_this_car = $a_pickup_car
$a_pickup_car = -1

:VALET_14071
if 
  $a_pickup_car <> -1
goto_if_false @VALET_14625
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_14251
$a_ped = get_driver_of_car $a_pickup_car
if 
  $a_ped <> -1
goto_if_false @VALET_14251
if 
  not is_char_dead $a_ped
goto_if_false @VALET_14251
if 
  not is_char_sitting_in_car $a_ped {vehicle} $a_pickup_car
goto_if_false @VALET_14181
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
set_car_straight_line_distance $valet_pickup_car {distance} 1

:VALET_14181
3@ = get_script_task_status $a_ped {taskId} 1560
if 
  is_int_lvar_equal_to_constant 3@ == 1
goto_if_false @VALET_14251
3@ = get_sequence_progress $a_ped
if 
  3@ == 1
goto_if_false @VALET_14251
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
set_car_straight_line_distance $valet_pickup_car {distance} 1

:VALET_14251
if 
  $a_ped == -1
goto_if_false @VALET_14284
set_var_int_to_var_int $valet_pickup_car = $a_pickup_car
set_car_straight_line_distance $valet_pickup_car {distance} 1

:VALET_14284
$a_Car = get_car_char_is_using $scplayer
if 
  is_int_var_equal_to_int_var $a_Car == $valet_pickup_car
goto_if_false @VALET_14318
$valet_pickup_car = 0

:VALET_14318
if 
  is_int_var_equal_to_int_var $valet_pickup_car == $a_pickup_car
goto_if_false @VALET_14618
if 
  not is_car_dead $a_pickup_car
goto_if_false @VALET_14505
30@ = get_maximum_number_of_passengers $a_pickup_car
6@ = 0

:VALET_14368
if 
  is_int_lvar_greater_than_int_lvar 30@ > 6@
goto_if_false @VALET_14505
if 
  not is_car_passenger_seat_free $a_pickup_car {seat} 6@
goto_if_false @VALET_14491
$a_char = get_char_in_car_passenger_seat $a_pickup_car {seat} 6@
if 
  not is_char_dead $a_char
goto_if_false @VALET_14491
if 
  is_char_sitting_in_car $a_char {vehicle} $a_pickup_car
goto_if_false @VALET_14491
3@ = get_script_task_status $a_char {taskId} 1502
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_14491
mark_char_as_no_longer_needed $a_char
task_wander_standard $a_char

:VALET_14491
6@ += 1
goto @VALET_14368

:VALET_14505
if 
  $valet_task[0] == 2
goto_if_false @VALET_14545
$valet_task[0] = 7
set_var_int_to_var_int $valet_car[0] = $valet_pickup_car
goto @VALET_14618

:VALET_14545
if 
  $valet_task[1] == 2
goto_if_false @VALET_14585
$valet_task[1] = 7
set_var_int_to_var_int $valet_car[1] = $valet_pickup_car
goto @VALET_14618

:VALET_14585
if 
  $valet_task[2] == 2
goto_if_false @VALET_14618
$valet_task[2] = 7
set_var_int_to_var_int $valet_car[2] = $valet_pickup_car

:VALET_14618
$a_pickup_car = 0

:VALET_14625
if 
  $create_drop_off_car_now == 1
goto_if_false @VALET_16053
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 10@
goto_if_false @VALET_16053
$debug_this = 3
$drop_off_car = 0
$a_Car = get_random_car_of_type_in_area_no_save $find_drop_off_car_x1($val_Area,4f) {leftBottomY} $find_drop_off_car_y1($val_Area,4f) {rightTopX} $find_drop_off_car_x2($val_Area,4f) {rightTopY} $find_drop_off_car_y2($val_Area,4f) {modelId} -1
if 
  $a_Car <> -1
goto_if_false @VALET_14967
if 
  not is_car_dead $a_Car
goto_if_false @VALET_14967
24@ = get_car_heading $a_Car
set_lvar_float_to_lvar_float 13@ = 24@
sub_float_var_from_float_lvar 13@ -= $find_drop_off_car_h1($val_Area,4f)
13@ = abs_lvar_float 
if 
  45.0 > 13@
goto_if_false @VALET_14967
12@ = get_vehicle_class $a_Car
if or
  is_int_lvar_equal_to_constant 12@ == 0
  is_int_lvar_equal_to_constant 12@ == 1
  is_int_lvar_equal_to_constant 12@ == 2
  is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_14967
12@ = get_car_model $a_Car
if or
  not is_int_lvar_equal_to_constant 12@ == 596
  not is_int_lvar_equal_to_constant 12@ == 420
goto_if_false @VALET_14967
$a_driver = get_driver_of_car $a_Car
if 
  $a_driver <> -1
goto_if_false @VALET_14967
if 
  not is_char_dead $a_driver
goto_if_false @VALET_14967
3@ = get_script_task_status $a_driver {taskId} 1490
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_14967
set_var_int_to_var_int $drop_off_car = $a_Car
set_car_can_go_against_traffic $drop_off_car {state} False

:VALET_14967
if 
  $drop_off_car == 0
goto_if_false @VALET_15276
$a_Car = get_random_car_of_type_in_area_no_save $find_drop_off_car_x3($val_Area,4f) {leftBottomY} $find_drop_off_car_y3($val_Area,4f) {rightTopX} $find_drop_off_car_x4($val_Area,4f) {rightTopY} $find_drop_off_car_y4($val_Area,4f) {modelId} -1
if 
  $a_Car <> -1
goto_if_false @VALET_15276
if 
  not is_car_dead $a_Car
goto_if_false @VALET_15276
24@ = get_car_heading $a_Car
set_lvar_float_to_lvar_float 13@ = 24@
sub_float_var_from_float_lvar 13@ -= $find_drop_off_car_h2($val_Area,4f)
13@ = abs_lvar_float 
if 
  45.0 > 13@
goto_if_false @VALET_15276
12@ = get_vehicle_class $a_Car
if or
  is_int_lvar_equal_to_constant 12@ == 0
  is_int_lvar_equal_to_constant 12@ == 1
  is_int_lvar_equal_to_constant 12@ == 2
  is_int_lvar_equal_to_constant 12@ == 3
goto_if_false @VALET_15276
12@ = get_car_model $a_Car
if or
  not is_int_lvar_equal_to_constant 12@ == 596
  not is_int_lvar_equal_to_constant 12@ == 420
goto_if_false @VALET_15276
$a_driver = get_driver_of_car $a_Car
if 
  $a_driver <> -1
goto_if_false @VALET_15276
if 
  not is_char_dead $a_driver
goto_if_false @VALET_15276
3@ = get_script_task_status $a_driver {taskId} 1490
if 
  is_int_lvar_equal_to_constant 3@ == 7
goto_if_false @VALET_15276
set_var_int_to_var_int $drop_off_car = $a_Car
set_car_can_go_against_traffic $drop_off_car {state} False

:VALET_15276
if or
  $player_on_valet_mission == 1
  $force_valet_on_mission > 0
goto_if_false @VALET_15755
if 
  $drop_off_car == 0
goto_if_false @VALET_15755
15@ += 1
if 
  15@ == 6
goto_if_false @VALET_15446
6@ = generate_random_int_in_range 0 {max} 3
if 
  6@ == 0
goto_if_false @VALET_15384
request_model 436
set_lvar_int_to_constant 14@ = 436

:VALET_15384
if 
  6@ == 1
goto_if_false @VALET_15415
request_model 533
set_lvar_int_to_constant 14@ = 533

:VALET_15415
if 
  6@ == 2
goto_if_false @VALET_15446
request_model 507
set_lvar_int_to_constant 14@ = 507

:VALET_15446
if 
  15@ >= 6
goto_if_false @VALET_15755
if 
  14@ <> 0
goto_if_false @VALET_15755
if 
  has_model_loaded 14@
goto_if_false @VALET_15755
if 
  not is_point_on_screen $valet_spawn_x($val_Area,4f) {y} $valet_spawn_y($val_Area,4f) {z} $valet_spawn_z($val_Area,4f) {radius} 5.0
goto_if_false @VALET_15630
clear_area $valet_spawn_x($val_Area,4f) {y} $valet_spawn_y($val_Area,4f) {z} $valet_spawn_z($val_Area,4f) {radius} 5.0 {clearParticles} False
$drop_off_car = create_car 14@ {x} $valet_spawn_x($val_Area,4f) {y} $valet_spawn_y($val_Area,4f) {z} $valet_spawn_z($val_Area,4f)
set_car_heading $drop_off_car {heading} $valet_spawn_h($val_Area,4f)
$a_driver = create_random_char_as_driver $drop_off_car
set_car_can_go_against_traffic $drop_off_car {state} False
goto @VALET_15755

:VALET_15630
if 
  not is_point_on_screen $valet_spawn_x2($val_Area,4f) {y} $valet_spawn_y2($val_Area,4f) {z} $valet_spawn_z2($val_Area,4f) {radius} 5.0
goto_if_false @VALET_15755
clear_area $valet_spawn_x2($val_Area,4f) {y} $valet_spawn_y2($val_Area,4f) {z} $valet_spawn_z2($val_Area,4f) {radius} 5.0 {clearParticles} False
$drop_off_car = create_car 14@ {x} $valet_spawn_x2($val_Area,4f) {y} $valet_spawn_y2($val_Area,4f) {z} $valet_spawn_z2($val_Area,4f)
set_car_heading $drop_off_car {heading} $valet_spawn_h2($val_Area,4f)
$a_driver = create_random_char_as_driver $drop_off_car
set_car_can_go_against_traffic $drop_off_car {state} False

:VALET_15755
if 
  $drop_off_car <> 0
goto_if_false @VALET_16053
$create_drop_off_car_now = 0
if and
  not is_char_dead $a_driver
  not is_car_dead $drop_off_car
goto_if_false @VALET_16023
if 
  $sc3_missioncar_alive == 1
goto_if_false @VALET_15828
change_car_colour $drop_off_car {color1} 3 {color2} 3

:VALET_15828
mark_char_as_no_longer_needed $a_driver
11@ = open_sequence_task 
if 
  $onmission == 0
goto_if_false @VALET_15895
task_car_drive_to_coord -1 {vehicle} $drop_off_car {x} $drop_off_point_x($val_Area,4f) {y} $drop_off_point_y($val_Area,4f) {z} $drop_off_point_z($val_Area,4f) {speed} 17.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.StopForCars

:VALET_15895
if 
  $onmission == 1
goto_if_false @VALET_15952
task_car_drive_to_coord -1 {vehicle} $drop_off_car {x} $drop_off_point_x($val_Area,4f) {y} $drop_off_point_y($val_Area,4f) {z} $drop_off_point_z($val_Area,4f) {speed} 17.0 {driveStyle} DriveMode.Normal {modelId} 0 {drivingStyle} DrivingMode.AvoidCars

:VALET_15952
task_wander_standard -1
close_sequence_task 11@
if 
  not is_char_dead $a_driver
goto_if_false @VALET_15984
set_char_cant_be_dragged_out $a_driver {state} True

:VALET_15984
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_16010
set_var_int_to_var_int $mission_drop_off_car = $drop_off_car

:VALET_16010
perform_sequence_task $a_driver {sequence} 11@
clear_sequence_task 11@

:VALET_16023
if 
  14@ <> 0
goto_if_false @VALET_16053
mark_model_as_no_longer_needed 14@
14@ = 0

:VALET_16053
return 

:VALET_16055
if or
  $player_on_valet_mission == 1
  $playing_scrash1 == 1
goto_if_false @VALET_16424
if and
  $steal_this_car <> -1
  not is_int_var_equal_to_int_var $steal_this_car == $sc3_missioncar
  not is_int_var_equal_to_int_var $steal_this_car == $valet_mission_car
goto_if_false @VALET_16424
if 
  not is_int_var_equal_to_int_var $last_steal_Car == $steal_this_car
goto_if_false @VALET_16424
if 
  not is_car_dead $steal_this_car
goto_if_false @VALET_16424
$x, $y, $z = get_car_coordinates $steal_this_car
if or
  -1760.178 > $x
  972.2405 > $y
  16.1633 > $z
  $x > -1679.605
  $y > 1064.293
  $z > 24.8629
goto_if_false @VALET_16424
if 
  not is_char_in_car $scplayer {vehicle} $steal_this_car
goto_if_false @VALET_16424
if 
  not is_car_on_screen $steal_this_car
goto_if_false @VALET_16281
delete_car $steal_this_car
goto @VALET_16424

:VALET_16281
$a_char = get_driver_of_car $steal_this_car
if 
  $a_char == -1
goto_if_false @VALET_16424
if 
  not locate_char_any_means_car_3d $scplayer {vehicle} $steal_this_car {xRadius} 8.0 {yRadius} 8.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @VALET_16424
$a_char = create_random_char 0.0 {y} 0.0 {z} 0.0
mark_char_as_no_longer_needed $a_char
mark_car_as_no_longer_needed $steal_this_car
if and
  not is_char_dead $a_char
  not is_car_dead $steal_this_car
goto_if_false @VALET_16424
warp_char_into_car $a_char {vehicle} $steal_this_car
task_car_drive_wander $a_char {vehicle} $steal_this_car {speed} 20.0 {drivingMode} DrivingMode.AvoidCars
$steal_this_car = 0

:VALET_16424
return 

:VALET_16426
if 
  $valet_mission_completed == 0
goto_if_false @VALET_16813
player_made_progress 1
play_mission_passed_tune 1
$valet_mission_completed = 1
do_fade 500 {direction} Fade.Out

:VALET_16466
if 
  get_fading_status 
goto_if_false @VALET_16490
wait 0
goto @VALET_16466

:VALET_16490
clear_prints 
if 
  is_player_playing $player1
goto_if_false @VALET_16775
set_player_control $player1 {state} False
switch_widescreen True
$valet_cash_pickup = create_protection_pickup -1757.668 {y} 961.7819 {z} 24.3828 {revenueLimit} 2000 {revenueRate} 2000
load_scene -1757.668 {y} 961.7819 {z} 24.3828
set_fixed_camera_position -1761.832 {y} 910.2675 {z} 30.7224 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1761.689 {y} 911.2571 {z} 30.7291 {switchStyle} SwitchType.JumpCut
do_fade 500 {direction} Fade.In

:VALET_16620
if 
  get_fading_status 
goto_if_false @VALET_16644
wait 0
goto @VALET_16620

:VALET_16644
play_mission_passed_tune 2
print_big 'ASS_ACQ' {time} 5000 {style} TextStyle.WhiteMiddleSmaller
wait 5000
set_fixed_camera_position -1748.38 {y} 951.821 {z} 27.5455 {upVecOffsetX} 0.0 {upVecOffsetY} 0.0 {upVecOffsetZ} 0.0
point_camera_at_point -1748.938 {y} 952.5872 {z} 27.2272 {switchStyle} SwitchType.JumpCut
print_with_number_now 'ASS_LUV' {num} 2000 {duration} 6000 {flag} 1
wait 6000
do_fade 500 {direction} Fade.Out

:VALET_16751
if 
  get_fading_status 
goto_if_false @VALET_16775
wait 0
goto @VALET_16751

:VALET_16775
if 
  is_player_playing $player1
goto_if_false @VALET_16813
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen False
set_player_control $player1 {state} True
do_fade 500 {direction} Fade.In

:VALET_16813
print_big 'VAL_A33' {time} 5000 {style} TextStyle.Middle
$valet_mission_flag = 8
return 

:VALET_16838
mark_model_as_no_longer_needed 189
mark_char_as_no_longer_needed $valet[0]
mark_char_as_no_longer_needed $valet[1]
mark_char_as_no_longer_needed $valet[2]
clear_onscreen_counter $valet_time_bonus
clear_onscreen_timer $valet_countdown
clear_onscreen_counter $valet_cars_to_park
remove_decision_maker 7@
if 
  not is_char_dead $valet[0]
goto_if_false @VALET_16899
delete_char $valet[0]

:VALET_16899
if 
  not is_char_dead $valet[1]
goto_if_false @VALET_16920
delete_char $valet[1]

:VALET_16920
if 
  not is_char_dead $valet[2]
goto_if_false @VALET_16941
delete_char $valet[2]

:VALET_16941
if 
  $player_on_valet_mission == 1
goto_if_false @VALET_16970
set_ped_density_multiplier 1.0
switch_emergency_services True

:VALET_16970
$valet_task[0] = 1
$valet_task[1] = 1
$valet_task[2] = 1
4@ = 0
$dont_clear_valets = 0
if 
  not is_car_dead $valet_mission_car
goto_if_false @VALET_17061
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17061
if 
  not is_char_in_car $scplayer {vehicle} $valet_mission_car
goto_if_false @VALET_17061
delete_car $valet_mission_car

:VALET_17061
if 
  not is_car_dead $valet_car[0]
goto_if_false @VALET_17117
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17117
if 
  not is_char_in_car $scplayer {vehicle} $valet_car[0]
goto_if_false @VALET_17117
delete_car $valet_car[0]

:VALET_17117
if 
  not is_car_dead $valet_car[1]
goto_if_false @VALET_17173
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17173
if 
  not is_char_in_car $scplayer {vehicle} $valet_car[1]
goto_if_false @VALET_17173
delete_car $valet_car[1]

:VALET_17173
if 
  not is_car_dead $valet_car[2]
goto_if_false @VALET_17229
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17229
if 
  not is_char_in_car $scplayer {vehicle} $valet_car[2]
goto_if_false @VALET_17229
delete_car $valet_car[2]

:VALET_17229
if 
  not is_car_dead $valet_pickup_car
goto_if_false @VALET_17285
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17285
if 
  not is_char_in_car $scplayer {vehicle} $valet_pickup_car
goto_if_false @VALET_17285
delete_car $valet_pickup_car

:VALET_17285
if 
  not is_car_dead $drop_off_car
goto_if_false @VALET_17341
if 
  not is_char_dead $scplayer
goto_if_false @VALET_17341
if 
  not is_char_in_car $scplayer {vehicle} $drop_off_car
goto_if_false @VALET_17341
delete_car $drop_off_car

:VALET_17341
$valet_mission_dead = 0
$1898 = 0
$1899 = 0
$valet_mission_car = 0
$valet_car[0] = 0
$valet_car[1] = 0
$valet_car[2] = 0
$valet_pickup_car = 0
$debug_this = 4
$drop_off_car = 0
$valet_mission_flag = 0
$pause_valet_script = 0
$force_valet_cleanup = 0
$valet_scene_running = 0
remove_blip 20@
remove_blip 19@
terminate_this_script 
return 
terminate_this_script 

//-------------External script 73 (PHOTO)---------------

:PHOTO
script_name 'PHOTO'
2@ = 0
if 
  2@ == 1
goto_if_false @PHOTO_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PHOTO_60
request_animation "CAMERA"
request_model 367

:PHOTO_75
if 
  not has_model_loaded 367
goto_if_false @PHOTO_117
request_animation "CAMERA"
request_model 367
wait 0
goto @PHOTO_75

:PHOTO_117
if 
  not has_animation_loaded "CAMERA"
goto_if_false @PHOTO_164
request_animation "CAMERA"
request_model 367
wait 0
goto @PHOTO_117

:PHOTO_164
3@ = 1
4@ = 0
if 
  not is_char_dead 0@
goto_if_false @PHOTO_204
give_weapon_to_char 0@ {weaponType} WeaponType.Camera {ammo} 1000

:PHOTO_204
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
goto_if_false @PHOTO_306
if 
  is_char_using_map_attractor 0@
goto_if_false @PHOTO_292
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PHOTO_278
goto @PHOTO_2447
goto @PHOTO_285

:PHOTO_278
gosub @PHOTO_320

:PHOTO_285
goto @PHOTO_299

:PHOTO_292
gosub @PHOTO_2405

:PHOTO_299
goto @PHOTO_313

:PHOTO_306
gosub @PHOTO_2405

:PHOTO_313
goto @PHOTO_204

:PHOTO_320
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PHOTO_397 {caseNum1} 1 {caseLabel1} @PHOTO_383 {caseNum2} -1 {caseLabel2} @PHOTO_397 {caseNum3} -1 {caseLabel3} @PHOTO_397 {caseNum4} -1 {caseLabel4} @PHOTO_397 {caseNum5} -1 {caseLabel5} @PHOTO_397 {caseNum6} -1 {caseLabel6} @PHOTO_397 {caseNum7} -1 {caseLabel7} @PHOTO_397

:PHOTO_383
gosub @PHOTO_399
goto @PHOTO_397

:PHOTO_397
return 

:PHOTO_399
switch_start 4@ {numCases} 13 {hasDefaultCase} 0 {defaultLabel} @PHOTO_2403 {caseNum1} 0 {caseLabel1} @PHOTO_527 {caseNum2} 1 {caseLabel2} @PHOTO_587 {caseNum3} 2 {caseLabel3} @PHOTO_744 {caseNum4} 3 {caseLabel4} @PHOTO_912 {caseNum5} 4 {caseLabel5} @PHOTO_1047 {caseNum6} 5 {caseLabel6} @PHOTO_1172 {caseNum7} 6 {caseLabel7} @PHOTO_1414
switch_continued 7 {caseLabel1} @PHOTO_1540 {caseNum2} 8 {caseLabel2} @PHOTO_1704 {caseNum3} 9 {caseLabel3} @PHOTO_1777 {caseNum4} 10 {caseLabel4} @PHOTO_1902 {caseNum5} 11 {caseLabel5} @PHOTO_2144 {caseNum6} 12 {caseLabel6} @PHOTO_2277 {caseNum7} -1 {caseLabel7} @PHOTO_2403 {caseNum8} -1 {caseLabel8} @PHOTO_2403 {caseNum9} -1 {caseLabel9} @PHOTO_2403

:PHOTO_527
task_play_anim 0@ {animationName} "CAMSTND_IDLELOOP" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1
goto @PHOTO_2403

:PHOTO_587
if 
  is_char_playing_anim 0@ {animationName} "CAMSTND_IDLELOOP"
goto_if_false @PHOTO_737
7@ = get_char_anim_current_time 0@ {animationName} "CAMSTND_IDLELOOP"
if 
  7@ >= 1.0
goto_if_false @PHOTO_737
2@ = generate_random_int_in_range 5000 {max} 8000
task_play_anim 0@ {animationName} "CAMSTND_LKABT" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
TIMERB = 0
4@ += 1

:PHOTO_737
goto @PHOTO_2403

:PHOTO_744
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 2@
goto_if_false @PHOTO_905
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PHOTO_852
task_play_anim 0@ {animationName} "CAMSTND_TO_CAMCRCH" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 7
goto @PHOTO_905

:PHOTO_852
task_play_anim 0@ {animationName} "CAMSTND_IDLELOOP" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ = 3

:PHOTO_905
goto @PHOTO_2403

:PHOTO_912
if 
  is_char_playing_anim 0@ {animationName} "CAMSTND_IDLELOOP"
goto_if_false @PHOTO_1040
7@ = get_char_anim_current_time 0@ {animationName} "CAMSTND_IDLELOOP"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1040
task_play_anim 0@ {animationName} "PICSTND_IN" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1040
goto @PHOTO_2403

:PHOTO_1047
if 
  is_char_playing_anim 0@ {animationName} "PICSTND_IN"
goto_if_false @PHOTO_1165
7@ = get_char_anim_current_time 0@ {animationName} "PICSTND_IN"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1165
task_play_anim 0@ {animationName} "PICSTND_TAKE" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1165
goto @PHOTO_2403

:PHOTO_1172
if 
  is_char_playing_anim 0@ {animationName} "PICSTND_TAKE"
goto_if_false @PHOTO_1407
7@ = get_char_anim_current_time 0@ {animationName} "PICSTND_TAKE"
if and
  7@ > 0.5
  1.0 > 7@
  6@ == 0
goto_if_false @PHOTO_1331
8@, 9@, 10@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.5 {zOffset} 0.0
draw_light_with_range 8@ {y} 9@ {z} 10@ {red} 255 {green} 255 {blue} 255 {radius} 50.0
report_mission_audio_event_at_char 0@ {soundId} ScriptSound.SoundCameraShot
6@ = 1

:PHOTO_1331
if 
  7@ >= 1.0
goto_if_false @PHOTO_1407
task_play_anim 0@ {animationName} "PICSTND_OUT" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
6@ = 0
4@ += 1

:PHOTO_1407
goto @PHOTO_2403

:PHOTO_1414
if 
  is_char_playing_anim 0@ {animationName} "PICSTND_OUT"
goto_if_false @PHOTO_1533
7@ = get_char_anim_current_time 0@ {animationName} "PICSTND_OUT"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1533
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PHOTO_1526
4@ = 0
goto @PHOTO_1533

:PHOTO_1526
gosub @PHOTO_2405

:PHOTO_1533
goto @PHOTO_2403

:PHOTO_1540
if 
  is_char_playing_anim 0@ {animationName} "CAMSTND_TO_CAMCRCH"
goto_if_false @PHOTO_1697
7@ = get_char_anim_current_time 0@ {animationName} "CAMSTND_TO_CAMCRCH"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1697
2@ = generate_random_int_in_range 5000 {max} 8000
task_play_anim 0@ {animationName} "CAMCRCH_IDLELOOP" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} True {lockX} False {lockY} False {keepLastFrame} True {time} 2@
TIMERB = 0
4@ += 1

:PHOTO_1697
goto @PHOTO_2403

:PHOTO_1704
if 
  is_int_lvar_greater_or_equal_to_int_lvar TIMERB >= 2@
goto_if_false @PHOTO_1770
task_play_anim 0@ {animationName} "PICCRCH_IN" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1770
goto @PHOTO_2403

:PHOTO_1777
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_IN"
goto_if_false @PHOTO_1895
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_IN"
if 
  7@ >= 1.0
goto_if_false @PHOTO_1895
task_play_anim 0@ {animationName} "PICCRCH_TAKE" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
4@ += 1

:PHOTO_1895
goto @PHOTO_2403

:PHOTO_1902
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_TAKE"
goto_if_false @PHOTO_2137
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_TAKE"
if and
  7@ > 0.5
  1.0 > 7@
  6@ == 0
goto_if_false @PHOTO_2061
8@, 9@, 10@ = get_offset_from_char_in_world_coords 0@ {xOffset} 0.0 {yOffset} 0.6 {zOffset} 0.0
draw_light_with_range 8@ {y} 9@ {z} 10@ {red} 255 {green} 255 {blue} 255 {radius} 50.0
report_mission_audio_event_at_char 0@ {soundId} ScriptSound.SoundCameraShot
6@ = 1

:PHOTO_2061
if 
  7@ >= 1.0
goto_if_false @PHOTO_2137
task_play_anim 0@ {animationName} "PICCRCH_OUT" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} True {time} -1
6@ = 0
4@ += 1

:PHOTO_2137
goto @PHOTO_2403

:PHOTO_2144
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_OUT"
goto_if_false @PHOTO_2270
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_OUT"
if 
  7@ >= 1.0
goto_if_false @PHOTO_2270
task_play_anim 0@ {animationName} "CAMCRCH_TO_CAMSTND" {animationFile} "CAMERA" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
4@ += 1

:PHOTO_2270
goto @PHOTO_2403

:PHOTO_2277
if 
  is_char_playing_anim 0@ {animationName} "PICCRCH_OUT"
goto_if_false @PHOTO_2396
7@ = get_char_anim_current_time 0@ {animationName} "PICCRCH_OUT"
if 
  7@ >= 1.0
goto_if_false @PHOTO_2396
2@ = generate_random_int_in_range 0 {max} 100
if 
  2@ > 50
goto_if_false @PHOTO_2389
4@ = 0
goto @PHOTO_2396

:PHOTO_2389
gosub @PHOTO_2405

:PHOTO_2396
goto @PHOTO_2403

:PHOTO_2403
return 

:PHOTO_2405
remove_animation "CAMERA"
if 
  not is_char_dead 0@
goto_if_false @PHOTO_2438
remove_weapon_from_char 0@ {weaponType} WeaponType.Camera

:PHOTO_2438
mark_model_as_no_longer_needed 367
terminate_this_script 
return 

:PHOTO_2447
wait 0
if 
  not is_char_dead 0@
goto_if_false @PHOTO_2511
5@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 5@ == 7
goto_if_false @PHOTO_2504
task_kill_char_on_foot 0@ {target} $scplayer

:PHOTO_2504
goto @PHOTO_2518

:PHOTO_2511
gosub @PHOTO_2405

:PHOTO_2518
goto @PHOTO_2447
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 74 (PRISONR)---------------

:PRISONR
script_name 'PRISONR'
2@ = 0
if 
  2@ == 1
goto_if_false @PRISONR_60
0@ = create_char PedType.CivFemale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:PRISONR_60
if 
  not is_char_dead 0@
goto_if_false @PRISONR_109
9@ = get_ped_type 0@
if 
  is_int_lvar_equal_to_constant 9@ == 6
goto_if_false @PRISONR_109
delete_char 0@
terminate_this_script 

:PRISONR_109
request_animation "GANGS"
request_model #CIGAR

:PRISONR_122
if 
  not has_animation_loaded "GANGS"
goto_if_false @PRISONR_153
wait 0
goto @PRISONR_122

:PRISONR_153
if 
  not has_model_loaded #CIGAR
goto_if_false @PRISONR_179
wait 0
goto @PRISONR_153

:PRISONR_179
if 
  not is_char_dead 0@
goto_if_false @PRISONR_266
6@, 7@, 8@ = get_char_coordinates 0@
12@ = create_object #CIGAR {x} 6@ {y} 7@ {z} 8@
task_pick_up_object 0@ {object} 12@ {xOffset} 0.0 {yOffset} 0.1 {zOffset} -0.02 {bone} PedBoneId.HandR {orientation} HoldOrientation.Bone {animationName} "NULL" {animationFile} "NULL" {time} -1

:PRISONR_266
3@ = 1
4@ = 0
10@ = 0

:PRISONR_287
wait 0
if and
  not is_char_dead 0@
  is_player_playing $player1
  $iTerminateAllAmbience == 0
goto_if_false @PRISONR_374
if 
  has_char_been_damaged_by_char 0@ {handle} $scplayer
goto_if_false @PRISONR_360
set_char_decision_maker 0@ {handleOrTemplate} $iGlobalPedPanicDM
goto @PRISONR_1286
goto @PRISONR_367

:PRISONR_360
gosub @PRISONR_388

:PRISONR_367
goto @PRISONR_381

:PRISONR_374
gosub @PRISONR_1259

:PRISONR_381
goto @PRISONR_287

:PRISONR_388
switch_start 3@ {numCases} 1 {hasDefaultCase} 0 {defaultLabel} @PRISONR_465 {caseNum1} 1 {caseLabel1} @PRISONR_451 {caseNum2} -1 {caseLabel2} @PRISONR_465 {caseNum3} -1 {caseLabel3} @PRISONR_465 {caseNum4} -1 {caseLabel4} @PRISONR_465 {caseNum5} -1 {caseLabel5} @PRISONR_465 {caseNum6} -1 {caseLabel6} @PRISONR_465 {caseNum7} -1 {caseLabel7} @PRISONR_465

:PRISONR_451
gosub @PRISONR_467
goto @PRISONR_465

:PRISONR_465
return 

:PRISONR_467
switch_start 4@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @PRISONR_1257 {caseNum1} 0 {caseLabel1} @PRISONR_530 {caseNum2} 1 {caseLabel2} @PRISONR_943 {caseNum3} 2 {caseLabel3} @PRISONR_986 {caseNum4} 3 {caseLabel4} @PRISONR_1029 {caseNum5} 4 {caseLabel5} @PRISONR_1148 {caseNum6} -1 {caseLabel6} @PRISONR_1257 {caseNum7} -1 {caseLabel7} @PRISONR_1257

:PRISONR_530
9@ = generate_random_int_in_range 0 {max} 100
if 
  9@ >= 80
goto_if_false @PRISONR_753
6@, 7@, 8@ = get_char_coordinates 0@
11@ = get_random_char_in_sphere 6@ {y} 7@ {z} 8@ {radius} 2.0 {civilian} True {gang} True {criminal} True
if and
  not is_char_dead 11@
  not is_int_lvar_equal_to_int_lvar 11@ == 0@
goto_if_false @PRISONR_649
task_kill_char_on_foot 0@ {target} 11@
4@ = 2
goto @PRISONR_1257
goto @PRISONR_746

:PRISONR_649
task_play_anim 0@ {animationName} "SMKCIG_PRTL" {animationFile} "GANGS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
13@ = create_fx_system_on_char "EXHALE" {char} 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 13@ {handle} 0@ {pedBone} PedBone.Neck
4@ = 3
goto @PRISONR_1257

:PRISONR_746
goto @PRISONR_936

:PRISONR_753
if 
  9@ >= 30
goto_if_false @PRISONR_839
task_play_anim 0@ {animationName} "IDLE_CHAT" {animationFile} "PED" {blendSpeed} 1.0 {loop} True {lockX} False {lockY} False {keepLastFrame} False {time} 5000
9@ = set_char_say_context 0@ {phrase} SpeechId.Chat
4@ = 1
goto @PRISONR_1257
goto @PRISONR_936

:PRISONR_839
task_play_anim 0@ {animationName} "SMKCIG_PRTL" {animationFile} "GANGS" {blendSpeed} 1.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0
13@ = create_fx_system_on_char "EXHALE" {char} 0@ {xOffset} 0.0 {yOffset} 0.0 {zOffset} 0.0 {ignoreBoundingChecks} True
attach_fx_system_to_char_bone 13@ {handle} 0@ {pedBone} PedBone.Neck
4@ = 3
goto @PRISONR_1257

:PRISONR_936
goto @PRISONR_1257

:PRISONR_943
9@ = get_script_task_status 0@ {taskId} 1541
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @PRISONR_979
4@ = 0

:PRISONR_979
goto @PRISONR_1257

:PRISONR_986
9@ = get_script_task_status 0@ {taskId} 1506
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @PRISONR_1022
4@ = 0

:PRISONR_1022
goto @PRISONR_1257

:PRISONR_1029
if 
  is_char_playing_anim 0@ {animationName} "SMKCIG_PRTL"
goto_if_false @PRISONR_1129
6@ = get_char_anim_current_time 0@ {animationName} "SMKCIG_PRTL"
if and
  6@ >= 0.5
  1.0 > 6@
goto_if_false @PRISONR_1122
play_fx_system 13@
4@ += 1

:PRISONR_1122
goto @PRISONR_1141

:PRISONR_1129
4@ = 0
kill_fx_system 13@

:PRISONR_1141
goto @PRISONR_1257

:PRISONR_1148
if 
  is_char_playing_anim 0@ {animationName} "SMKCIG_PRTL"
goto_if_false @PRISONR_1238
6@ = get_char_anim_current_time 0@ {animationName} "SMKCIG_PRTL"
if 
  6@ >= 1.0
goto_if_false @PRISONR_1231
kill_fx_system 13@
4@ = 0

:PRISONR_1231
goto @PRISONR_1250

:PRISONR_1238
4@ = 0
kill_fx_system 13@

:PRISONR_1250
goto @PRISONR_1257

:PRISONR_1257
return 

:PRISONR_1259
remove_animation "GANGS"
mark_model_as_no_longer_needed #CIGAR
delete_object 12@
kill_fx_system 13@
terminate_this_script 
return 

:PRISONR_1286
wait 0
if and
  not is_char_dead 0@
  $iTerminateAllAmbience == 0
goto_if_false @PRISONR_1356
10@ = get_script_task_status 0@ {taskId} 1477
if 
  is_int_lvar_equal_to_constant 10@ == 7
goto_if_false @PRISONR_1349
task_duck 0@ {time} -2

:PRISONR_1349
goto @PRISONR_1363

:PRISONR_1356
gosub @PRISONR_1259

:PRISONR_1363
goto @PRISONR_1286
write_debug_with_int "PEDSTATE" {number} 3@
write_debug_with_int "SUBSTATESTATUS" {number} 4@
write_debug_with_int "LOOP_TIMER" {number} TIMERB
write_debug_with_int "SCRIPT_TIMER" {number} TIMERA
return 
terminate_this_script 

//-------------External script 75 (CAMERA)---------------

:CAMERA
script_name 'CAMERA'
if 
  0@ == -100
goto_if_false @CAMERA_53
8@ = create_char PedType.CivMale {modelId} 0 {x} 0.0 {y} 0.0 {z} 0.0

:CAMERA_53
3@ = 0
2@ = 0
1@ = 0
12@ = 0.0
13@ = 25.0
14@ = -25.0
set_photo_camera_effect False

:CAMERA_108
wait 3@
if 
  is_player_playing $player1
goto_if_false @CAMERA_819
if 
  has_char_got_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @CAMERA_722
gosub @CAMERA_3382
if 
  11@ == 1
goto_if_false @CAMERA_557
if 
  is_char_stopped $scplayer
goto_if_false @CAMERA_473
if 
  is_current_char_weapon $scplayer {weaponType} WeaponType.Camera
goto_if_false @CAMERA_385
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.RightShoulder1
goto_if_false @CAMERA_306
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_247
clear_help 

:CAMERA_247
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_271
clear_help 

:CAMERA_271
3@ = 0
2@ = 0
4@ = 0
gosub @CAMERA_833
goto @CAMERA_378

:CAMERA_306
1@ = 0
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 1
goto_if_false @CAMERA_338
gosub @CAMERA_1963

:CAMERA_338
if 
  2@ > 0
goto_if_false @CAMERA_370
3@ = 0
goto @CAMERA_378

:CAMERA_370
3@ = 500

:CAMERA_378
goto @CAMERA_466

:CAMERA_385
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_409
clear_help 

:CAMERA_409
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_433
clear_help 

:CAMERA_433
set_photo_camera_effect False
3@ = 500
1@ = 0
2@ = 0
4@ = 0

:CAMERA_466
goto @CAMERA_550

:CAMERA_473
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_497
clear_help 

:CAMERA_497
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_521
clear_help 

:CAMERA_521
3@ = 500
1@ = 0
2@ = 0
4@ = 0

:CAMERA_550
goto @CAMERA_715

:CAMERA_557
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_581
clear_help 

:CAMERA_581
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_605
clear_help 

:CAMERA_605
set_photo_camera_effect False
3@ = 500
1@ = 0
2@ = 0
4@ = 0
if 
  2@ >= 3
goto_if_false @CAMERA_715
if 
  not is_char_dead 8@
goto_if_false @CAMERA_715
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True
if and
  $onmission == 0
  5@ == 0
goto_if_false @CAMERA_715
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_715
goto @CAMERA_812

:CAMERA_722
if 
  2@ >= 3
goto_if_false @CAMERA_805
request_model 367
3@ = 0
gosub @CAMERA_3382
if 
  11@ == 1
goto_if_false @CAMERA_791
gosub @CAMERA_1963
goto @CAMERA_798

:CAMERA_791
gosub @CAMERA_3556

:CAMERA_798
goto @CAMERA_812

:CAMERA_805
gosub @CAMERA_3556

:CAMERA_812
goto @CAMERA_826

:CAMERA_819
gosub @CAMERA_3556

:CAMERA_826
goto @CAMERA_108

:CAMERA_833
switch_start 1@ {numCases} 5 {hasDefaultCase} 0 {defaultLabel} @CAMERA_1961 {caseNum1} 0 {caseLabel1} @CAMERA_896 {caseNum2} 1 {caseLabel2} @CAMERA_998 {caseNum3} 2 {caseLabel3} @CAMERA_1361 {caseNum4} 3 {caseLabel4} @CAMERA_1542 {caseNum5} 4 {caseLabel5} @CAMERA_1730 {caseNum6} -1 {caseLabel6} @CAMERA_1961 {caseNum7} -1 {caseLabel7} @CAMERA_1961

:CAMERA_896
6@, 7@ = get_group_size $Players_Group
if 
  7@ > 0
goto_if_false @CAMERA_991
if 
  7@ > 3
goto_if_false @CAMERA_950
7@ = 3

:CAMERA_950
6@ = 0
7@ -= 1
15@ = 3.0
15@ += 0.2
1@ += 1

:CAMERA_991
goto @CAMERA_1961

:CAMERA_998
19@, 20@, 21@ = get_char_coordinates $scplayer
16@, 17@, 18@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 3.0 {zOffset} 0.0
18@ = get_ground_z_for_3d_coord 16@ {y} 17@ {z} 18@
sub_float_lvar_from_float_lvar 21@ -= 18@
if or
  21@ > 2.5
  -2.5 > 21@
goto_if_false @CAMERA_1108
1@ = -1
goto @CAMERA_1961

:CAMERA_1108
19@, 20@, 21@ = get_char_coordinates $scplayer
16@, 17@, 18@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 6.0 {zOffset} 0.0
18@ = get_ground_z_for_3d_coord 16@ {y} 17@ {z} 18@
sub_float_lvar_from_float_lvar 21@ -= 18@
if or
  21@ > 2.5
  -2.5 > 21@
goto_if_false @CAMERA_1218
1@ = -1
goto @CAMERA_1961

:CAMERA_1218
16@, 17@, 18@ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.5 {yOffset} 0.0 {zOffset} 0.0
19@, 20@, 21@ = get_offset_from_char_in_world_coords $scplayer {xOffset} -0.5 {yOffset} 0.0 {zOffset} 0.0
if 
  not is_flame_in_angled_area_2d 16@ {leftBottomY} 17@ {rightTopX} 19@ {rightTopY} 20@ {angle} 7.0 {drawSphere} False
goto_if_false @CAMERA_1340
6@ = set_char_say_context $scplayer {phrase} SpeechId.PhotoCheese
6@ = 0
1@ += 1
goto @CAMERA_1354

:CAMERA_1340
1@ = -1
goto @CAMERA_1961

:CAMERA_1354
goto @CAMERA_1961

:CAMERA_1361
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1408
6@ = 0
10@ = 0
1@ += 1
goto @CAMERA_1535

:CAMERA_1408
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_1528
if and
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedDislike
  not is_char_shooting 8@
goto_if_false @CAMERA_1528
if 
  3 > 6@
goto_if_false @CAMERA_1511
task_goto_char_offset 8@ {target} $scplayer {time} 20000 {radius} 15@ {heading} 12@(6@,3f)
goto @CAMERA_1528

:CAMERA_1511
task_goto_char_offset 8@ {target} $scplayer {time} 20000 {radius} 15@ {heading} 12@

:CAMERA_1528
6@ += 1

:CAMERA_1535
goto @CAMERA_1961

:CAMERA_1542
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1615
6@ = 0
if 
  is_int_lvar_greater_than_int_lvar 10@ > 7@
goto_if_false @CAMERA_1608
6@ = 0
10@ = 0
1@ += 1

:CAMERA_1608
goto @CAMERA_1723

:CAMERA_1615
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_1716
if and
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedHate
  not is_char_responding_to_event 8@ {event} Event.AcquaintancePedDislike
  not is_char_shooting 8@
goto_if_false @CAMERA_1716
9@ = get_script_task_status 8@ {taskId} 1704
if 
  is_int_lvar_equal_to_constant 9@ == 7
goto_if_false @CAMERA_1716
task_stand_still 8@ {time} 5000
10@ += 1

:CAMERA_1716
6@ += 1

:CAMERA_1723
goto @CAMERA_1961

:CAMERA_1730
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_1770
6@ = 0
1@ = -1
goto @CAMERA_1954

:CAMERA_1770
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_1947
if 
  is_char_on_screen 8@
goto_if_false @CAMERA_1947
if or
  is_char_model 8@ {modelId} 195
  is_char_model 8@ {modelId} 192
  is_char_model 8@ {modelId} 191
  is_char_model 8@ {modelId} 190
  is_char_model 8@ {modelId} 193
  is_char_model 8@ {modelId} 194
goto_if_false @CAMERA_1939
if 
  has_animation_loaded "KISSING"
goto_if_false @CAMERA_1932
task_play_anim 8@ {animationName} "GFWAVE2" {animationFile} "KISSING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} 0

:CAMERA_1932
goto @CAMERA_1947

:CAMERA_1939
task_hand_gesture 8@ {target} $scplayer

:CAMERA_1947
6@ += 1

:CAMERA_1954
goto @CAMERA_1961

:CAMERA_1961
return 

:CAMERA_1963
switch_start 2@ {numCases} 8 {hasDefaultCase} 0 {defaultLabel} @CAMERA_3380 {caseNum1} 0 {caseLabel1} @CAMERA_2091 {caseNum2} 1 {caseLabel2} @CAMERA_2155 {caseNum3} 2 {caseLabel3} @CAMERA_2310 {caseNum4} 3 {caseLabel4} @CAMERA_2445 {caseNum5} 4 {caseLabel5} @CAMERA_2569 {caseNum6} 5 {caseLabel6} @CAMERA_2820 {caseNum7} 6 {caseLabel7} @CAMERA_3231
switch_continued 7 {caseLabel1} @CAMERA_3261 {caseNum2} -1 {caseLabel2} @CAMERA_3380 {caseNum3} -1 {caseLabel3} @CAMERA_3380 {caseNum4} -1 {caseLabel4} @CAMERA_3380 {caseNum5} -1 {caseLabel5} @CAMERA_3380 {caseNum6} -1 {caseLabel6} @CAMERA_3380 {caseNum7} -1 {caseLabel7} @CAMERA_3380 {caseNum8} -1 {caseLabel8} @CAMERA_3380 {caseNum9} -1 {caseLabel9} @CAMERA_3380

:CAMERA_2091
6@, 7@ = get_group_size $Players_Group
if 
  7@ > 0
goto_if_false @CAMERA_2148
6@ = 0
7@ -= 1
2@ += 1
3@ = 0

:CAMERA_2148
goto @CAMERA_3380

:CAMERA_2155
if 
  is_int_lvar_greater_than_int_lvar 6@ > 7@
goto_if_false @CAMERA_2188
6@ = 0
goto @CAMERA_2303

:CAMERA_2188
8@ = get_group_member $Players_Group {slotId} 6@
if 
  not is_char_dead 8@
goto_if_false @CAMERA_2296
if 
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 1.5 {yRadius} 1.5 {zRadius} 1.5 {drawSphere} False
goto_if_false @CAMERA_2296
if and
  not is_help_message_being_displayed 
  4@ == 0
goto_if_false @CAMERA_2289
print_help 'CAM_001'
4@ = 1

:CAMERA_2289
2@ += 1

:CAMERA_2296
6@ += 1

:CAMERA_2303
goto @CAMERA_3380

:CAMERA_2310
if and
  not is_char_dead 8@
  is_group_member 8@ {handle} $Players_Group
goto_if_false @CAMERA_2431
if and
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
  is_char_on_foot $scplayer
goto_if_false @CAMERA_2417
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CAMERA_2410
6@ = set_char_say_context $scplayer {phrase} SpeechId.PhotoCarl
2@ += 1

:CAMERA_2410
goto @CAMERA_2424

:CAMERA_2417
2@ = 0

:CAMERA_2424
goto @CAMERA_2438

:CAMERA_2431
2@ = 0

:CAMERA_2438
goto @CAMERA_3380

:CAMERA_2445
if and
  not is_char_dead 8@
  is_group_member 8@ {handle} $Players_Group
goto_if_false @CAMERA_2555
if and
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 2.5 {yRadius} 2.5 {zRadius} 2.5 {drawSphere} False
  is_char_on_foot $scplayer
goto_if_false @CAMERA_2541
if 
  not is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CAMERA_2534
2@ += 1

:CAMERA_2534
goto @CAMERA_2548

:CAMERA_2541
2@ = 0

:CAMERA_2548
goto @CAMERA_2562

:CAMERA_2555
2@ = 0

:CAMERA_2562
goto @CAMERA_3380

:CAMERA_2569
if 
  not is_char_dead 8@
goto_if_false @CAMERA_2806
if and
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 3.0 {yRadius} 3.0 {zRadius} 2.0 {drawSphere} False
  is_char_on_foot $scplayer
  is_group_member 8@ {handle} $Players_Group
goto_if_false @CAMERA_2792
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_2658
clear_help 

:CAMERA_2658
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_2682
clear_help 

:CAMERA_2682
clear_prints 
freeze_char_position 8@ {state} True
set_char_visible 8@ {state} False
16@, 17@, 18@ = get_char_coordinates 8@
18@ += 0.8
set_fixed_camera_position 16@ {y} 17@ {z} 18@ {upVecOffsetX} 0.0 {upVecOffsetY} 0.2 {upVecOffsetZ} 0.0
point_camera_at_char $scplayer {mode} CameraMode.Fixed {switchStyle} SwitchType.JumpCut
set_photo_camera_effect True
10@ = get_ammo_in_char_weapon $scplayer {weaponType} WeaponType.Camera
remove_weapon_from_char $scplayer {weaponType} WeaponType.Camera
2@ += 1
goto @CAMERA_2799

:CAMERA_2792
2@ = 0

:CAMERA_2799
goto @CAMERA_2813

:CAMERA_2806
2@ = 0

:CAMERA_2813
goto @CAMERA_3380

:CAMERA_2820
if 
  not is_char_dead 8@
goto_if_false @CAMERA_3098
if and
  is_group_member 8@ {handle} $Players_Group
  locate_char_any_means_char_3d $scplayer {target} 8@ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 2.0 {drawSphere} False
  is_char_on_foot $scplayer
goto_if_false @CAMERA_2951
print_help_forever 'CAM_002'
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.LeftShoulder1
goto_if_false @CAMERA_2920
2@ += 1

:CAMERA_2920
if 
  is_button_pressed PadId.Pad1 {buttonId} Button.Triangle
goto_if_false @CAMERA_2944
2@ = 7

:CAMERA_2944
goto @CAMERA_3091

:CAMERA_2951
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_2975
clear_help 

:CAMERA_2975
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_2999
clear_help 

:CAMERA_2999
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True
set_photo_camera_effect False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Camera
19@, 20@, 21@ = get_active_camera_coordinates 
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3084
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3084
2@ = 0

:CAMERA_3091
goto @CAMERA_3224

:CAMERA_3098
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_3122
clear_help 

:CAMERA_3122
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_3146
clear_help 

:CAMERA_3146
19@, 20@, 21@ = get_active_camera_coordinates 
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3196
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3196
set_photo_camera_effect False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Camera
2@ = 0

:CAMERA_3224
goto @CAMERA_3380

:CAMERA_3231
clear_help 
clear_prints 
set_photo_camera_effect False
take_photo True
wait 100
2@ += 1
goto @CAMERA_3380

:CAMERA_3261
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_3285
clear_help 

:CAMERA_3285
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_3309
clear_help 

:CAMERA_3309
clear_prints 
if 
  not is_char_dead 8@
goto_if_false @CAMERA_3341
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True

:CAMERA_3341
set_camera_behind_player 
restore_camera_jumpcut 
set_photo_camera_effect False
give_weapon_to_char $scplayer {weaponType} WeaponType.Camera {ammo} 10@
set_current_char_weapon $scplayer {weaponType} WeaponType.Camera
2@ = 0
goto @CAMERA_3380

:CAMERA_3380
return 

:CAMERA_3382
11@ = 0
if 
  $onmission == 0
goto_if_false @CAMERA_3554
if 
  $flag_cell_nation == 0
goto_if_false @CAMERA_3554
if 
  $player_fall_state == 0
goto_if_false @CAMERA_3554
if 
  not is_global_var_bit_set_const $iDateReport {bitIndex} 20
goto_if_false @CAMERA_3554
if 
  not is_minigame_in_progress 
goto_if_false @CAMERA_3554
if 
  is_char_on_foot $scplayer
goto_if_false @CAMERA_3554
if 
  not is_gang_war_fighting_going_on 
goto_if_false @CAMERA_3554
if 
  not get_fading_status 
goto_if_false @CAMERA_3554
if 
  $iAreaCode == 0
goto_if_false @CAMERA_3554
if 
  not has_cutscene_loaded 
goto_if_false @CAMERA_3554
11@ = 1

:CAMERA_3554
return 

:CAMERA_3556
if 
  is_this_help_message_being_displayed 'CAM_001'
goto_if_false @CAMERA_3580
clear_help 

:CAMERA_3580
if 
  is_this_help_message_being_displayed 'CAM_002'
goto_if_false @CAMERA_3604
clear_help 

:CAMERA_3604
if 
  not is_char_dead 8@
goto_if_false @CAMERA_3634
freeze_char_position 8@ {state} False
set_char_visible 8@ {state} True

:CAMERA_3634
if 
  $onmission == 0
goto_if_false @CAMERA_3731
if 
  2@ >= 3
goto_if_false @CAMERA_3727
19@, 20@, 21@ = get_active_camera_coordinates 
if and
  is_float_lvar_equal_to_float_lvar 19@ == 16@
  is_float_lvar_equal_to_float_lvar 20@ == 17@
  is_float_lvar_equal_to_float_lvar 21@ == 18@
goto_if_false @CAMERA_3720
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3720
goto @CAMERA_3731

:CAMERA_3727
set_camera_behind_player 
restore_camera_jumpcut 

:CAMERA_3731
6@ = 0

:CAMERA_3738
8@ = get_group_member $Players_Group {slotId} 6@
mark_char_as_no_longer_needed 8@
6@ += 1
  6@ >= 3
goto_if_false @CAMERA_3738
set_photo_camera_effect False
mark_model_as_no_longer_needed 367
terminate_this_script 
return 
return 
terminate_this_script 

//-------------External script 76 (DEBT)---------------

:DEBT
script_name 'DEBT'
0@ = 0
1@ = 0
2@ = 0
3@ = 0
4@ = 0
5@ = 0
6@ = 0
7@ = 0
8@ = 0
$game_timer = get_game_timer 
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 50
set_lvar_int_to_var_int 10@ = $game_timer
10@ -= 10

:DEBT_109
wait 250
$game_timer = get_game_timer 
if 
  0@ == 0
goto_if_false @DEBT_644
if 
  $onmission == 0
goto_if_false @DEBT_607
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_600
if 
  is_player_playing $player1
goto_if_false @DEBT_563
11@ = get_area_visible 
if 
  11@ == 0
goto_if_false @DEBT_519
if 
  not is_wanted_level_greater $player1 {wantedLevel} 1
goto_if_false @DEBT_475
if 
  not is_char_in_flying_vehicle $scplayer
goto_if_false @DEBT_431
if 
  is_int_var_equal_to_constant $im_players_city == 3
goto_if_false @DEBT_387
11@ = store_score $player1
if 
  11@ > -1
goto_if_false @DEBT_291

:DEBT_291
if 
  -5000 > 11@
goto_if_false @DEBT_317
1@ = 1

:DEBT_317
if 
  -50000 > 11@
goto_if_false @DEBT_345
1@ = 2

:DEBT_345
if 
  -500000 > 11@
goto_if_false @DEBT_373
1@ = 3

:DEBT_373
0@ += 1
goto @DEBT_424

:DEBT_387
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_424
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_424
goto @DEBT_468

:DEBT_431
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_468
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_468
goto @DEBT_512

:DEBT_475
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_512
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_512
goto @DEBT_556

:DEBT_519
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_556
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000

:DEBT_556
goto @DEBT_600

:DEBT_563
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_600
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_600
goto @DEBT_644

:DEBT_607
if 
  is_int_var_greater_than_int_lvar $game_timer > 9@
goto_if_false @DEBT_644
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000

:DEBT_644
if 
  0@ == 1
goto_if_false @DEBT_977

:DEBT_662
$game_timer = get_game_timer 
if 
  is_player_playing $player1
goto_if_false @DEBT_945
$player_x, $player_y, $z = get_char_coordinates $scplayer
set_var_float_to_var_float $x = $player_x
$x -= 200.0
$player_x += 200.0
$x = generate_random_float_in_range $x {max} $player_x
set_var_float_to_var_float $y = $player_y
$y -= 200.0
$player_y += 200.0
$y = generate_random_float_in_range $y {max} $player_y
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
$player_x, $player_y, $player_z = get_char_coordinates $scplayer
$distance = get_distance_between_coords_2d $player_x {fromY} $player_y {toX} $x {toZ} $y
if 
  1.0 > $z
goto_if_false @DEBT_861
wait 0
goto @DEBT_662

:DEBT_861
if 
  50.0 > $distance
goto_if_false @DEBT_893
wait 0
goto @DEBT_662

:DEBT_893
if 
  is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @DEBT_931
wait 0
goto @DEBT_662

:DEBT_931
0@ += 1
goto @DEBT_977

:DEBT_945
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_977
if 
  0@ == 2
goto_if_false @DEBT_1931
if and
  has_model_loaded 540
  has_model_loaded 181
  has_model_loaded 183
  has_model_loaded 206
  has_model_loaded 47
  has_model_loaded 352
goto_if_false @DEBT_1737
if 
  has_model_loaded 355
goto_if_false @DEBT_1702
12@ = create_car 540 {x} $x {y} $y {z} $z
set_car_heading 12@ {heading} $heading
change_car_colour 12@ {color1} 75 {color2} 0
set_car_health 12@ {health} 1500
set_car_driving_style 12@ {drivingStyle} DrivingMode.AvoidCars
add_stuck_car_check_with_warp 12@ {distance} 4.0 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1
if 
  2@ == 1
goto_if_false @DEBT_1151
mark_model_as_no_longer_needed 540
2@ = 0

:DEBT_1151
13@ = create_char_inside_car 12@ {pedType} PedType.Mission1 {modelId} 181
if 
  3@ == 1
goto_if_false @DEBT_1194
mark_model_as_no_longer_needed 181
3@ = 0

:DEBT_1194
if 
  1@ > 0
goto_if_false @DEBT_1418
17@ = create_group DefaultTaskAllocator.FollowAnyMeans
set_group_leader 17@ {handle} 13@
18@ = copy_group_decision_maker -1
clear_group_decision_maker_event_response 18@ {event} Event.VehicleDamageWeapon
set_group_decision_maker 17@ {handleOrTemplate} 18@
14@ = create_char_as_passenger 12@ {pedType} PedType.Mission1 {modelId} 183 {seat} SeatId.BikeRear
if 
  4@ == 1
goto_if_false @DEBT_1294
mark_model_as_no_longer_needed 183
4@ = 0

:DEBT_1294
if 
  1@ > 1
goto_if_false @DEBT_1357
15@ = create_char_as_passenger 12@ {pedType} PedType.Mission1 {modelId} 206 {seat} SeatId.RearLeft
if 
  5@ == 1
goto_if_false @DEBT_1357
mark_model_as_no_longer_needed 206
5@ = 0

:DEBT_1357
if 
  1@ > 2
goto_if_false @DEBT_1418
16@ = create_char_as_passenger 12@ {pedType} PedType.Mission1 {modelId} 47 {seat} SeatId.RearRight
if 
  6@ == 1
goto_if_false @DEBT_1418
mark_model_as_no_longer_needed 47
6@ = 0

:DEBT_1418
19@ = copy_char_decision_maker -1
clear_char_decision_maker_event_response 19@ {event} Event.VehicleDamageWeapon
$an = 0

:DEBT_1439
if 
  4 > $an
goto_if_false @DEBT_1628
if 
  not is_char_dead 13@($an,4i)
goto_if_false @DEBT_1614
set_char_decision_maker 13@($an,4i) {handleOrTemplate} 19@
set_char_only_damaged_by_player 13@($an,4i) {state} True
set_char_relationship 13@($an,4i) {relationshipType} RelationshipType.Hate {pedType} PedType.Player1
set_char_money 13@($an,4i) {amount} 10000
set_char_keep_task 13@($an,4i) {state} True
if or
  $an == 0
  $an == 2
goto_if_false @DEBT_1575
give_weapon_to_char 13@($an,4i) {weaponType} WeaponType.MicroUzi {ammo} 9999

:DEBT_1575
if or
  $an == 1
  $an == 3
goto_if_false @DEBT_1614
give_weapon_to_char 13@($an,4i) {weaponType} WeaponType.Ak47 {ammo} 9999

:DEBT_1614
$an += 1
goto @DEBT_1439

:DEBT_1628
if 
  7@ == 1
goto_if_false @DEBT_1658
mark_model_as_no_longer_needed 352
7@ = 0

:DEBT_1658
if 
  8@ == 1
goto_if_false @DEBT_1688
mark_model_as_no_longer_needed 355
8@ = 0

:DEBT_1688
0@ += 1
goto @DEBT_1730

:DEBT_1702
if 
  not has_model_loaded 355
goto_if_false @DEBT_1730
request_model 355
8@ = 1

:DEBT_1730
goto @DEBT_1931

:DEBT_1737
if 
  not has_model_loaded 540
goto_if_false @DEBT_1765
request_model 540
2@ = 1

:DEBT_1765
if 
  not has_model_loaded 181
goto_if_false @DEBT_1793
request_model 181
3@ = 1

:DEBT_1793
if 
  not has_model_loaded 183
goto_if_false @DEBT_1821
request_model 183
4@ = 1

:DEBT_1821
if 
  not has_model_loaded 206
goto_if_false @DEBT_1849
request_model 206
5@ = 1

:DEBT_1849
if 
  not has_model_loaded 47
goto_if_false @DEBT_1875
request_model 47
6@ = 1

:DEBT_1875
if 
  not has_model_loaded 352
goto_if_false @DEBT_1903
request_model 352
7@ = 1

:DEBT_1903
if 
  not has_model_loaded 355
goto_if_false @DEBT_1931
request_model 355
8@ = 1

:DEBT_1931
if 
  0@ == 3
goto_if_false @DEBT_3778
if 
  $onmission == 0
goto_if_false @DEBT_3683
if 
  is_player_playing $player1
goto_if_false @DEBT_3644
if 
  not is_score_greater $player1 {money} -1
goto_if_false @DEBT_3621
11@ = get_area_visible 
if 
  11@ == 0
goto_if_false @DEBT_3582
if 
  not is_char_dead 13@
goto_if_false @DEBT_3169
if 
  locate_char_any_means_char_2d $scplayer {target} 13@ {xRadius} 500.0 {yRadius} 500.0 {drawSphere} False
goto_if_false @DEBT_3130
if 
  is_char_sitting_in_any_car 13@
goto_if_false @DEBT_2690
if 
  not is_car_dead 12@
goto_if_false @DEBT_2678
if 
  is_int_var_greater_than_int_lvar $game_timer > 10@
goto_if_false @DEBT_2349
if 
  is_char_in_any_car $scplayer
goto_if_false @DEBT_2314
11@ = generate_random_int_in_range 0 {max} 4
$car = store_car_char_is_in_no_save $scplayer
if 
  11@ == 0
goto_if_false @DEBT_2193
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.RamCarFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2193
if 
  11@ == 1
goto_if_false @DEBT_2231
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.BlockCarHandbrakeStop {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2231
if 
  11@ == 2
goto_if_false @DEBT_2269
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.EscortLeft {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2269
if 
  11@ == 3
goto_if_false @DEBT_2307
task_car_mission 13@ {vehicle} 12@ {targetVehicle} $car {missionId} CarMission.EscortRight {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2307
goto @DEBT_2333

:DEBT_2314
task_car_mission 13@ {vehicle} 12@ {targetVehicle} -1 {missionId} CarMission.RamPlayerFaraway {cruiseSpeed} 100.0 {drivingStyle} DrivingMode.AvoidCars

:DEBT_2333
set_lvar_int_to_var_int 10@ = $game_timer
10@ += 8000

:DEBT_2349
$distance = get_char_speed $scplayer
if or
  is_char_on_foot $scplayer
  5.0 > $distance
goto_if_false @DEBT_2558
if 
  locate_char_any_means_char_2d 13@ {target} $scplayer {xRadius} 15.0 {yRadius} 15.0 {drawSphere} False
goto_if_false @DEBT_2558
$task_status = get_script_task_status 13@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2558
20@ = open_sequence_task 
11@ = generate_random_int_in_range 0 {max} 2
if 
  11@ == 0
goto_if_false @DEBT_2506
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.TurnLeft {time} 200
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.HandbrakeTurnLeft {time} 1000
goto @DEBT_2530

:DEBT_2506
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.TurnRight {time} 200
task_car_temp_action -1 {vehicle} 12@ {actionId} TempAction.HandbrakeTurnRight {time} 1000

:DEBT_2530
task_kill_char_on_foot_timed -1 {target} $scplayer {time} 5000
close_sequence_task 20@
perform_sequence_task 13@ {sequence} 20@
clear_sequence_task 20@

:DEBT_2558
if and
  is_car_stuck 12@
  15.0 > $distance
goto_if_false @DEBT_2671
if 
  locate_char_any_means_car_2d $scplayer {vehicle} 12@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @DEBT_2671
if 
  is_car_on_screen 12@
goto_if_false @DEBT_2671
$task_status = get_script_task_status 13@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2671
task_kill_char_on_foot_timed 13@ {target} $scplayer {time} 5000

:DEBT_2671
goto @DEBT_2683

:DEBT_2678
mark_car_as_no_longer_needed 12@

:DEBT_2683
goto @DEBT_3123

:DEBT_2690
if 
  locate_char_any_means_char_2d 13@ {target} $scplayer {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @DEBT_2768
$task_status = get_script_task_status 13@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2761
task_kill_char_on_foot_timed 13@ {target} $scplayer {time} 5000

:DEBT_2761
goto @DEBT_3123

:DEBT_2768
if 
  not is_car_dead 12@
goto_if_false @DEBT_2869
$task_status = get_script_task_status 13@ {taskId} 1560
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_2862
20@ = open_sequence_task 
task_goto_car -1 {vehicle} 12@ {time} 99999 {radius} 5.0
task_enter_car_as_driver -1 {vehicle} 12@ {time} -2
close_sequence_task 20@
perform_sequence_task 13@ {sequence} 20@
clear_sequence_task 20@

:DEBT_2862
goto @DEBT_3123

:DEBT_2869
mark_car_as_no_longer_needed 12@
if 
  not locate_char_any_means_char_2d $scplayer {target} 13@ {xRadius} 60.0 {yRadius} 60.0 {drawSphere} False
goto_if_false @DEBT_3083
$x, $y, $z = get_char_coordinates 13@
$x, $y, $z, $heading = get_closest_car_node_with_heading $x {y} $y {z} $z
if 
  not is_point_obscured_by_a_mission_entity $x {y} $y {z} $z {radiusX} 4.0 {radiusY} 4.0 {radiusZ} 4.0
goto_if_false @DEBT_3076
if 
  not is_point_on_screen $x {y} $y {z} $z {radius} 4.0
goto_if_false @DEBT_3076
12@ = create_car 540 {x} $x {y} $y {z} $z
set_car_heading 12@ {heading} $heading
change_car_colour 12@ {color1} 75 {color2} 0
set_car_health 12@ {health} 1500
set_car_driving_style 12@ {drivingStyle} DrivingMode.AvoidCars
add_stuck_car_check_with_warp 12@ {distance} 4.0 {time} 4000 {stuck} True {flipped} True {inWater} True {numNodesToCheck} -1

:DEBT_3076
goto @DEBT_3123

:DEBT_3083
$task_status = get_script_task_status 13@ {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_3123
task_kill_char_on_foot_timed 13@ {target} $scplayer {time} 5000

:DEBT_3123
goto @DEBT_3162

:DEBT_3130
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000
0@ = 0

:DEBT_3162
goto @DEBT_3334

:DEBT_3169
mark_char_as_no_longer_needed 13@
$an = 1

:DEBT_3181
if 
  4 > $an
goto_if_false @DEBT_3334
if 
  not is_char_dead 13@($an,4i)
goto_if_false @DEBT_3311
if 
  does_group_exist 17@
goto_if_false @DEBT_3304
if 
  is_group_member 13@($an,4i) {handle} 17@
goto_if_false @DEBT_3304
if 
  is_group_leader 13@($an,4i) {handle} 17@
goto_if_false @DEBT_3304
set_lvar_int_to_lvar_int 13@ = 13@($an,4i)
13@($an,4i) = -1

:DEBT_3304
goto @DEBT_3320

:DEBT_3311
mark_char_as_no_longer_needed 13@($an,4i)

:DEBT_3320
$an += 1
goto @DEBT_3181

:DEBT_3334
$an = 1

:DEBT_3341
if 
  4 > $an
goto_if_false @DEBT_3575
if 
  not is_char_dead 13@
goto_if_false @DEBT_3561
if 
  not is_char_dead 13@($an,4i)
goto_if_false @DEBT_3552
if 
  does_group_exist 17@
goto_if_false @DEBT_3545
if 
  not is_group_member 13@($an,4i) {handle} 17@
goto_if_false @DEBT_3545
if 
  locate_char_any_means_char_2d 13@($an,4i) {target} 13@ {xRadius} 30.0 {yRadius} 30.0 {drawSphere} False
goto_if_false @DEBT_3488
set_group_member 17@ {handle} 13@($an,4i)
goto @DEBT_3545

:DEBT_3488
$task_status = get_script_task_status 13@($an,4i) {taskId} 1957
if 
  is_int_var_equal_to_constant $task_status == 7
goto_if_false @DEBT_3545
mark_char_as_no_longer_needed 13@($an,4i)
task_kill_char_on_foot_timed 13@($an,4i) {target} $scplayer {time} 5000

:DEBT_3545
goto @DEBT_3561

:DEBT_3552
mark_char_as_no_longer_needed 13@($an,4i)

:DEBT_3561
$an += 1
goto @DEBT_3341

:DEBT_3575
goto @DEBT_3614

:DEBT_3582
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 60000
0@ = 0

:DEBT_3614
goto @DEBT_3637

:DEBT_3621
gosub @DEBT_3801
$1376 = 0
terminate_this_script 

:DEBT_3637
goto @DEBT_3676

:DEBT_3644
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3676
goto @DEBT_3715

:DEBT_3683
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3715
if and
  is_char_dead 13@
  is_char_dead 14@
  is_char_dead 15@
  is_char_dead 16@
goto_if_false @DEBT_3778
gosub @DEBT_3801
set_lvar_int_to_var_int 9@ = $game_timer
9@ += 120000
0@ = 0

:DEBT_3778
goto @DEBT_109
if 
  not is_car_on_screen 12@
goto_if_false @DEBT_3801

:DEBT_3801
mark_char_as_no_longer_needed 13@
mark_char_as_no_longer_needed 14@
mark_char_as_no_longer_needed 15@
mark_char_as_no_longer_needed 16@
mark_car_as_no_longer_needed 12@
remove_decision_maker 19@
remove_decision_maker 18@
remove_group 17@
if 
  2@ == 1
goto_if_false @DEBT_3871
mark_model_as_no_longer_needed 540
2@ = 0

:DEBT_3871
if 
  3@ == 1
goto_if_false @DEBT_3901
mark_model_as_no_longer_needed 181
3@ = 0

:DEBT_3901
if 
  4@ == 1
goto_if_false @DEBT_3931
mark_model_as_no_longer_needed 183
4@ = 0

:DEBT_3931
if 
  5@ == 1
goto_if_false @DEBT_3961
mark_model_as_no_longer_needed 206
5@ = 0

:DEBT_3961
if 
  6@ == 1
goto_if_false @DEBT_3990
mark_model_as_no_longer_needed 47
6@ = 0

:DEBT_3990
if 
  7@ == 1
goto_if_false @DEBT_4020
mark_model_as_no_longer_needed 352
7@ = 0

:DEBT_4020
if 
  8@ == 1
goto_if_false @DEBT_4050
mark_model_as_no_longer_needed 355
8@ = 0

:DEBT_4050
return 
terminate_this_script 

//-------------External script 77 (HOTDOG)---------------

:HOTDOGV
script_name 'HOTDOGV'
2@ = 0
if 
  2@ == 1
goto_if_false @HOTDOGV_77
0@ = create_char PedType.CivMale {modelId} 7 {x} 0.0 {y} 0.0 {z} 0.0
1@ = create_car 588 {x} $x {y} $y {z} $z

:HOTDOGV_77
wait 0
$game_timer = get_game_timer 
if 
  not is_char_dead 0@
goto_if_false @HOTDOGV_698
if 
  is_player_playing $player1
goto_if_false @HOTDOGV_673
if 
  is_char_attached_to_any_car 0@
goto_if_false @HOTDOGV_648
1@ = store_car_char_is_attached_to_no_save 0@
if 
  not is_char_in_car $scplayer {vehicle} 1@
goto_if_false @HOTDOGV_616
if 
  2@ == 0
goto_if_false @HOTDOGV_434
if 
  locate_char_on_foot_car_2d $scplayer {vehicle} 1@ {xRadius} 12.0 {yRadius} 12.0 {drawSphere} False
goto_if_false @HOTDOGV_434
request_animation "VENDING"
if 
  has_animation_loaded "VENDING"
goto_if_false @HOTDOGV_434
if 
  is_score_greater $player1 {money} 0
goto_if_false @HOTDOGV_434
$x, $y, $z = get_offset_from_car_in_world_coords 1@ {xOffset} 2.0 {yOffset} 0.0 {zOffset} 0.0
if 
  locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} True
goto_if_false @HOTDOGV_434
$temp_integer_1 = get_char_health $scplayer
$temp_integer_1 += 50
set_char_health $scplayer {health} $temp_integer_1
task_play_anim_secondary $scplayer {animationName} "VEND_EAT1_P" {animationFile} "VENDING" {blendSpeed} 4.0 {loop} False {lockX} False {lockY} False {keepLastFrame} False {time} -1
increment_int_stat StatId.Calories {value} 10
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 3000
add_score $player1 {money} -1
2@ += 1

:HOTDOGV_434
if 
  2@ == 1
goto_if_false @HOTDOGV_494
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @HOTDOGV_494
set_lvar_int_to_var_int 3@ = $game_timer
3@ += 27000
2@ += 1

:HOTDOGV_494
if 
  2@ == 2
goto_if_false @HOTDOGV_609
if 
  is_int_var_greater_than_int_lvar $game_timer > 3@
goto_if_false @HOTDOGV_609
$x, $y, $z = get_offset_from_car_in_world_coords 1@ {xOffset} 1.0 {yOffset} 0.0 {zOffset} 0.0
if 
  not locate_char_on_foot_3d $scplayer {x} $x {y} $y {z} $z {xRadius} 0.6 {yRadius} 0.6 {zRadius} 1.0 {drawSphere} False
goto_if_false @HOTDOGV_609
2@ = 0

:HOTDOGV_609
goto @HOTDOGV_641

:HOTDOGV_616
mark_char_as_no_longer_needed 0@
task_duck 0@ {time} -2
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_641
goto @HOTDOGV_666

:HOTDOGV_648
mark_char_as_no_longer_needed 0@
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_666
goto @HOTDOGV_691

:HOTDOGV_673
mark_char_as_no_longer_needed 0@
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_691
goto @HOTDOGV_716

:HOTDOGV_698
mark_char_as_no_longer_needed 0@
remove_animation "VENDING"
terminate_this_script 

:HOTDOGV_716
goto @HOTDOGV_77
terminate_this_script 
